PageSourceSearch

https://startbootstrap.com/src_modules_shop_shop-routing_module_ts.d5197cdf5f6a45ad.js

js startbootstrap.com collected 2026-09-24 08:24:40 UTC 81,321 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkwebsite_angular=self.webpackChunkwebsite_angular||[]).push([["src_modules_shop_shop-routing_module_ts"],{4505:(Zn,U,c)=>{c.r(U),c.d(U,{ROUTES:()=>B,ShopRoutingModule:()=>hn});var p=c(9209),d=c(4666),s=c(6803),R=c(8944),j=c(9599),I=c(745),t=c(2560);const $=[(()=>{class n{canActivate(){return(0,I.of)(!0)}static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac})}return n})()],H=[(()=>{class n{constructor(){}getShop$(){return(0,I.of)({})}static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac})}return n})()];var w=c(1670),y=c(1609),O=c(7714),q=c(6317),G=c(6562),V=c(8611),g=c(5474),m=c(3158),u=c(2879),f=c(3505),C=c(2464),b=c(9035);function K(n,r){1&n&&(t.TgZ(0,"div",41),t._uU(1,"Name required"),t.qZA())}function z(n,r){1&n&&(t.TgZ(0,"div",41),t._uU(1,"Email required"),t.qZA())}function W(n,r){1&n&&(t.TgZ(0,"div",41),t._uU(1,"Email is not valid"),t.qZA())}function X(n,r){1&n&&(t.TgZ(0,"div",41),t._uU(1,"You must accept the terms & conditions."),t.qZA())}function tt(n,r){1&n&&(t.TgZ(0,"span"),t._uU(1,"Pay"),t.qZA())}function et(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",42)(2,"span",43),t._uU(3,"Processing..."),t.qZA()(),t._uU(4," Processing..."),t.BQk())}const k=function(n){return{active:n}},nt=function(){return["fad","credit-card-front"]},ot=function(){return["fab","paypal"]},it=function(n){return{disabled:n}},rt=function(){return["fad","lock-alt"]},at=function(n){return{"disabled-overlay":n}};function ct(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span")(1,"nav",15)(2,"a",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.paymentForm="STRIPE")}),t._UZ(3,"fa-icon",11),t._uU(4,"Pay with Credit Card"),t.qZA(),t.TgZ(5,"a",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.paymentForm="PAYPAL")}),t._UZ(6,"fa-icon",11),t._uU(7,"Pay with PayPal"),t.qZA()(),t.TgZ(8,"form",18)(9,"div",19)(10,"label",20),t._uU(11,"Billing Details"),t.qZA(),t._UZ(12,"input",21),t.YNc(13,K,2,0,"div",22),t.qZA(),t.TgZ(14,"div",19),t._UZ(15,"input",23),t.YNc(16,z,2,0,"div",22),t.YNc(17,W,2,0,"div",22),t.qZA(),t.TgZ(18,"div",19)(19,"label",24),t._uU(20,"Payment Information"),t.qZA(),t._UZ(21,"div",25),t.qZA(),t.TgZ(22,"div",19)(23,"div",26),t._uU(24),t.qZA()(),t.TgZ(25,"div",27)(26,"div",28),t._UZ(27,"input",29),t.TgZ(28,"label",30),t._uU(29,"I have read and agree to the website "),t.TgZ(30,"a",31),t._uU(31,"terms & conditions"),t.qZA(),t._uU(32,"."),t.qZA(),t.YNc(33,X,2,0,"div",22),t.qZA()(),t.TgZ(34,"div",32)(35,"button",33),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.startStripePaymentProcess())}),t.YNc(36,tt,2,0,"span",13),t.YNc(37,et,5,0,"ng-container",13),t.qZA()(),t.TgZ(38,"span",34)(39,"div",35),t._UZ(40,"fa-icon",36),t.TgZ(41,"div",37),t._uU(42,"Secure Checkout"),t.qZA()(),t.TgZ(43,"div",38),t._UZ(44,"img",39),t.qZA()()(),t.TgZ(45,"span",34),t._UZ(46,"div",40),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngClass",t.VKq(35,k,"STRIPE"===e.paymentForm)),t.xp6(1),t.Q6J("icon",t.DdM(37,nt)),t.xp6(2),t.Q6J("ngClass",t.VKq(38,k,"PAYPAL"===e.paymentForm)),t.xp6(1),t.Q6J("icon",t.DdM(40,ot)),t.xp6(2),t.Q6J("formGroup",e.checkoutForm),t.xp6(1),t.Q6J("hidden","PAYPAL"===e.paymentForm),t.xp6(3),t.ekj("is-valid",e.nameControlValid)("is-invalid",e.nameControlInvalid),t.xp6(1),t.Q6J("ngIf",e.nameControl.hasError("required")),t.xp6(1),t.Q6J("hidden","PAYPAL"===e.paymentForm),t.xp6(1),t.ekj("is-valid",e.emailControlValid)("is-invalid",e.emailControlInvalid),t.xp6(1),t.Q6J("ngIf",e.emailControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.emailControl.hasError("email")),t.xp6(1),t.Q6J("hidden","PAYPAL"===e.paymentForm),t.xp6(3),t.Q6J("ngClass",t.VKq(41,it,e.processing)),t.xp6(1),t.Q6J("hidden","PAYPAL"===e.paymentForm),t.xp6(2),t.Oqu(e.cardErrorMessage),t.xp6(3),t.ekj("is-valid",e.termsAndConditionsControlValid)("is-invalid",e.termsAndConditionsControlInvalid),t.xp6(6),t.Q6J("ngIf",e.termsAndConditionsControl.hasError("required")),t.xp6(2),t.Q6J("hidden","PAYPAL"===e.paymentForm)("disabled",!0===e.processing||e.checkoutForm.invali
1d),t.xp6(1),t.Q6J("ngIf",!e.processing||e.updating),t.xp6(1),t.Q6J("ngIf",e.processing&&!e.updating),t.xp6(1),t.Q6J("hidden","PAYPAL"===e.paymentForm),t.xp6(2),t.Q6J("icon",t.DdM(43,rt)),t.xp6(5),t.Q6J("hidden","STRIPE"===e.paymentForm),t.xp6(1),t.Q6J("ngClass",t.VKq(44,at,!0===e.processing||e.termsAndConditionsControl.invalid))}}function st(n,r){1&n&&(t.TgZ(0,"div",41),t._uU(1,"Name required"),t.qZA())}function dt(n,r){1&n&&(t.TgZ(0,"div",41),t._uU(1,"Email required"),t.qZA())}function lt(n,r){1&n&&(t.TgZ(0,"div",41),t._uU(1,"Email is not valid"),t.qZA())}function ut(n,r){1&n&&(t.TgZ(0,"div",41),t._uU(1,"You must accept the terms & conditions."),t.qZA())}function pt(n,r){1&n&&(t.TgZ(0,"span"),t._uU(1,"Process Order"),t.qZA())}function _t(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",42)(2,"span",43),t._uU(3,"Processing..."),t.qZA()(),t._uU(4," Processing..."),t.BQk())}function gt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span")(1,"form",18)(2,"div",27)(3,"label",20),t._uU(4,"Order Details"),t.qZA(),t._UZ(5,"input",21),t.YNc(6,st,2,0,"div",22),t.qZA(),t.TgZ(7,"div",27),t._UZ(8,"input",23),t.YNc(9,dt,2,0,"div",22),t.YNc(10,lt,2,0,"div",22),t.qZA(),t.TgZ(11,"div",27)(12,"div",28),t._UZ(13,"input",29),t.TgZ(14,"label",30),t._uU(15,"I have read and agree to the website "),t.TgZ(16,"a",44),t._uU(17,"terms & conditions"),t.qZA(),t._uU(18,"."),t.qZA(),t.YNc(19,ut,2,0,"div",22),t.qZA()(),t.TgZ(20,"div",32)(21,"button",45),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.processFreeOrder())}),t.YNc(22,pt,2,0,"span",13),t.YNc(23,_t,5,0,"ng-container",13),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.checkoutForm),t.xp6(4),t.ekj("is-valid",e.nameControlValid)("is-invalid",e.nameControlInvalid),t.xp6(1),t.Q6J("ngIf",e.nameControl.hasError("required")),t.xp6(2),t.ekj("is-valid",e.emailControlValid)("is-invalid",e.emailControlInvalid),t.xp6(1),t.Q6J("ngIf",e.emailControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.emailControl.hasError("email")),t.xp6(3),t.ekj("is-valid",e.termsAndConditionsControlValid)("is-invalid",e.termsAndConditionsControlInvalid),t.xp6(6),t.Q6J("ngIf",e.termsAndConditionsControl.hasError("required")),t.xp6(2),t.Q6J("disabled",!0===e.processing||e.checkoutForm.invali
1d),t.xp6(1),t.Q6J("ngIf",!e.processing||e.updating),t.xp6(1),t.Q6J("ngIf",e.processing&&!e.updating)}}function mt(n,r){if(1&n&&(t.TgZ(0,"div",14),t.YNc(1,ct,47,46,"span",13),t.YNc(2,gt,24,20,"span",13),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",0!==(null==e.assemblingOrder?null:e.assemblingOrder.total)),t.xp6(1),t.Q6J("ngIf",0===(null==e.assemblingOrder?null:e.assemblingOrder.total)&&0!==e.assemblingOrder.lineItems.length)}}function ft(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"SalePrice"),t.xp6(1),t.Oqu(t.gM2(2,2,i.salePrice/100*i.quantity,"USD","symbol","1.0"))}}function ht(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"Price"),t.xp6(1),t.Oqu(t.gM2(2,2,i.price/100*i.quantity,"USD","symbol","1.0"))}}function vt(n,r){if(1&n&&(t.TgZ(0,"div",58)(1,"div",59)(2,"div",60)(3,"picture"),t._UZ(4,"source",61),t.ALo(5,"safe"),t.ALo(6,"webpExt"),t._UZ(7,"source",62),t.ALo(8,"safe"),t._UZ(9,"img",63),t.ALo(10,"safe"),t.qZA(),t.TgZ(11,"div",64),t._uU(12),t.qZA()(),t.TgZ(13,"div",65)(14,"div",66),t._uU(15),t.qZA(),t.TgZ(16,"div",67),t._uU(17),t.ALo(18,"titlecase"),t.qZA()()(),t.TgZ(19,"div",68),t.YNc(20,ft,3,7,"span",13),t.YNc(21,ht,3,7,"span",13),t.qZA()()),2&n){const e=r.$implicit,o=r.index;t.xp6(4),t.Q6J("srcset",t.Dn7(5,11,t.xi3(6,15,null==e.pricing.product.images?null:e.pricing.product.images.primaryImage.medium,"medium"),"resourceURL","NONE")),t.xp6(3),t.Q6J("srcset",t.Dn7(8,18,null==e.pricing.product.images?null:e.pricing.product.images.primaryImage.medium,"resourceURL","NONE")),t.xp6(2),t.Q6J("src",t.Dn7(10,22,null==e.pricing.product.images?null:e.pricing.product.images.primaryImage.medium,"resourceURL","NONE"),t.LSH)("alt",null==e.pricing.product.images?null:e.pricing.product.images.primaryImage.alt),t.xp6(2),t.uIk("data-cy","item"+o+"Quantity"),t.xp6(1),t.Oqu(e.quantity),t.xp6(3),t.Oqu(e.pricing.product.displayName),t.xp6(2),t.hij("License: ",t.lcZ(18,26,e.licenseType),""),t.xp6(2),t.uIk("data-cy","line-item-price-"+o),t.xp6(1),t.Q6J("ngIf",e.salePrice),t.xp6(1),t.Q6J("ngIf",!e.salePrice)}}function xt(n,r){1&n&&(t.TgZ(0,"div",76),t._uU(1,"Unknown coupon code"),t.qZA())}function Zt(n,r){1&n&&(t.TgZ(0,"div",77),t._uU(1,"Unauthorized coupon code"),t.qZA())}function yt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"form",69)(1,"div",27)(2,"div",70),t._UZ(3,"input",71,72),t.TgZ(5,"button",73),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.applyCoupon(i.assemblingOrder.id))}),t._uU(6,"Apply"),t.qZA(),t.YNc(7,xt,2,0,"div",74),t.YNc(8,Zt,2,0,"div",75),t.qZA()()()}if(2&n){const e=t.oxw(2);t.Q6J("formGroup",e.couponForm),t.xp6(3),t.ekj("is-invalid",e.couponCodeControlInvalid),t.xp6(2),t.Q6J("disabled",!0===e.processing),t.xp6(2),t.Q6J("ngIf",e.couponCodeControl.hasError("unknownCode")),t.xp6(1),t.Q6J("ngIf",e.couponCodeControl.hasError("unauthorizedCode"))}}const Ct=function(){return["far","times"]};function bt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",78)(1,"div",79)(2,"div",80),t._uU(3,"Code Applied:"),t.qZA(),t.TgZ(4,"div",81),t._uU(5),t.qZA()(),t.TgZ(6,"button",82),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.removeCoupon(i.assemblingOrder.id,i.assemblingOrder.coupons[0].id))}),t._UZ(7,"fa-icon",83),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(5),t.Oqu(e.assemblingOrder.coupons[0].code),t.xp6(2),t.Q6J("icon",t.DdM(2,Ct))}}function Tt(n,r){if(1&n&&(t.TgZ(0,"div",52)(1,"div"),t._uU(2,"Discounts"),t.qZA(),t.TgZ(3,"div",84),t._uU(4),t.ALo(5,"currency"),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(t.gM2(5,1,e.assemblingOrder.discount/100,"USD","symbol","1.0"))}}function At(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"div",46)(2,"div",47),t.YNc(3,vt,22,28,"div",48),t.qZA(),t.YNc(4,yt,9,6,"form",49),t.YNc(5,bt,8,3,"ng-template",null,50,t.W1O),t.qZA(),t._UZ(7,"hr"),t.TgZ(8,"div",46)(9,"div",51)(10,"div",52)(11,"div"),t._uU(12,"Subtotal"),t.qZA(),t.TgZ(13,"div",53),t._uU(14),t.ALo(15,"currency"),t.qZA()(),t.YNc(16,Tt,6,6,"div",54),t.TgZ(17,"div",55)(18,"div",56),t._uU(19,"Total"),t.qZA(),t.TgZ(20,"div",57),t._uU(21),t.ALo(22,"currency"),t.qZA()()()(),t._UZ(23,"hr"),t.BQk()),2&n){const e=t.MAs(6),o=t.oxw();
1t.xp6(3),t.Q6J("ngForOf",o.assemblingOrder.lineItems)("ngForTrackBy",o.trackByFn),t.xp6(1),t.Q6J("ngIf",0===(null==o.assemblingOrder.coupons?null:o.assemblingOrder.coupons.length))("ngIfElse",e),t.xp6(10),t.Oqu(t.gM2(15,7,o.assemblingOrder.subtotal/100,"USD","symbol","1.0")),t.xp6(2),t.Q6J("ngIf",o.assemblingOrder.discount),t.xp6(5),t.Oqu(t.gM2(22,12,o.assemblingOrder.total/100,"USD","symbol","1.0"))}}const Ut=function(){return["far","long-arrow-left"]};let P=(()=>{class n{constructor(e,o,i,a,l,T,A,vn,xn){this.fb=e,this.scriptService=o,this.changeDetectorRef=i,this.orderService=a,this.paymentService=l,this.router=T,this.utilityService=A,this.analyticsService=vn,this.envService=xn,this.mainClasses=["loading"],this.processing=!1,this.updating=!1,this.unknownCode=!1,this.unauthorizedCode=!1,this.stripeLoaded=!1,this.subscription=new O.w0,this.paymentForm="STRIPE",this._stripLoaded$=new q.X(!1),this._payPalLoaded$=new q.X(!1),this.checkoutForm=this.fb.group({name:[{value:"",disabled:!1},[s.kI.required]],email:[{value:"",disabled:!1},[s.kI.required,s.kI.email]],termsAndConditions:[!1,[s.kI.requiredTrue]]}),this.couponForm=this.fb.group({code:[{value:"",disabled:!1},[s.kI.required,this.unknownCodeValidator(),this.unauthorizedCodeValidator()]]})}ngOnInit(){this.scriptService.loadScript("stripe").then(e=>this._stripLoaded$.next(e)),this.scriptService.loadScript("payPal").then(e=>this._payPalLoaded$.next(e)),this.subscription.add(this.orderService.assemblingOrder$.subscribe(e=>{e&&(this.assemblingOrder=e,this.changeDetectorRef.detectChanges())}))}ngAfterViewInit(){this.stripePayPalAssemblingOrderSubscription=(0,G.a)([this._stripLoaded$,this._payPalLoaded$,this.orderService.assemblingOrder$]).subscribe(([e,o,i])=>{!i||0===i.total||e&&o&&(this.stripePayPalAssemblingOrderSubscription.unsubscribe(),this._initPayments())}),this.subscription.add(this.stripePayPalAssemblingOrderSubscription)}_initPayments(){this._initStripe(),this._initPayPal()}_initPayPal(){var o,e=this;console.log("### INFO: Initializing PayPal"),this.utilityService.window.paypal.Buttons({createOrder:(o=(0,w.Z)(function*(i,a){return(yield(0,V.n)(e.paymentService.startPayPalPayment$({orderID:e.assemblingOrder.id},e.assemblingOrder))).payPalOrderID}),function(a,l){return o.apply(this,arguments)}),onApprove:function(){var o=(0,w.Z)(function*(i,a){e.processingBegin(),e.paymentService.capturePayPalPayment$({orderID:e.assemblingOrder.id}).pipe((0,m.K)(l=>(e.processingEnd(),(0,g._)(()=>l)))).subscribe(l=>{e.processingEnd(),e.orderService.assemblingOrderCompleted(),e.analyticsService.sendEventPurchase("paypal",e.assemblingOrder),e.router.navigate([`/shop/order-info/${e.assemblingOrder.id}`])})});return function(a,l){return o.apply(this,arguments)}}()}).render("#paypal-button-container")}_initStripe(){console.log("### INFO: Initializing Stripe"),this.stripe=this.utilityService.window.Stripe(this.envService.stripePublishableKey),this.elements=this.stripe.elements({fonts:[{family:"Metropolis",src:'url("https://storage.googleapis.com/assets.startbootstrap.com/fonts/metropolis/Metropolis-Regular.otf")'}]}),this.card=this.elements.create("card",{style:It}),this.card.mount("#card-element"),this.card.on("change",e=>{e?.error?(this.cardErrorMessage=e.error.message,this.changeDetectorRef.detectChanges()):(this.cardErrorMessage=void 0,this.changeDetectorRef.detectChanges())}),this.mainClasses=["checkout"],this.changeDetectorRef.detectChanges()}ngOnDestroy(){this.subscription.unsubscribe()}processFreeOrder(){const e=this.orderService.assemblingOrder;if(!e)throw new Error("assembling order does not exist");this.unauthorizedCode=!1,this.processingBegin(),this.paymentService.processFreeOrder$({name:this.nameControl.value,email:this.emailControl.value,orderID:e.id}).pipe((0,m.K)(o=>(this.unauthorizedCode=!0,this.removeCoupon(e.id,e.coupons[0].id),(0,g._)(()=>o)))).subscribe(o=>{this.processingEnd(),this.orderService.assemblingOrderCompleted(),this.router.navigate([`/shop/order-info/${e.id}`])})}startStripePaymentProcess(){if("VALID"===this.checkoutForm.status)return this.utilityService.localStorage.getItem("sb-testing")?this._startStripePayment("TESTING"):void this.utilityService.window.grecaptcha.ready(()=>{this.utilityService.window.grecaptcha.execute(this.envService.recaptchaSiteKey,{action:"checkout"}).then(e=>{this._startStripePayment(e)})});(0,y.Z)(this.checkoutForm.controls,e=>{e.markAllAsTouched()})}_startStripePayment(e){const o=this.orderService.assemblingOrder;if(!o)throw new Error("assembling order does not exist");this.processingBegin(),this.card.update({disabled:!0}),this.paymentService.startStripePayment$({name:this.nameControl.value,email:this.emailControl.value,orderID:o.id,grToken:e}
1,this.assemblingOrder).pipe((0,m.K)(i=>(this.processingEnd(),(0,g._)(()=>i)))).subscribe(i=>{this.stripe.confirmCardPayment(i.clientSecret,{payment_method:{card:this.card,billing_details:{name:this.nameControl.value,email:this.emailControl.value}}}).then(a=>{a.error?(this.processingEnd(),this.card.update({disabled:!1}),this.changeDetectorRef.detectChanges(),(0,y.Z)(this.checkoutForm.controls,l=>{l.markAllAsTouched()})):"succeeded"===a.paymentIntent?.status&&(this.orderService.assemblingOrderCompleted(),this.analyticsService.sendEventPurchase("stripe",this.assemblingOrder),this.router.navigate([`/shop/order-info/${o.id}`]))})})}processingBegin(){this.processing=!0,this.checkoutForm.disable(),this.couponForm.disable(),this.changeDetectorRef.detectChanges()}processingEnd(){this.processing=!1,this.checkoutForm.enable(),this.couponForm.enable(),this.changeDetectorRef.detectChanges()}applyCoupon(e){this.unknownCode=!1,this.unauthorizedCode=!1,this.processingBegin(),this.updating=!0,this.orderService.addCoupon({orderID:e,couponCode:this.couponCodeControl.value}).pipe((0,m.K)(o=>("COUPON_UNKNOWN"===o.error.message.replace(/:.*/,"")&&(this.unknownCode=!0),this.couponCodeControl.updateValueAndValidity(),this.processingEnd(),this.updating=!1,this.changeDetectorRef.detectChanges(),(0,g._)(()=>o)))).subscribe(()=>{this.processingEnd(),this.updating=!1,this.changeDetectorRef.detectChanges()})}removeCoupon(e,o){this.processingBegin(),this.updating=!0,this.orderService.removeCoupon({orderID:e,couponID:o}).pipe((0,m.K)(i=>(this.processingEnd(),this.updating=!1,this.changeDetectorRef.detectChanges(),(0,g._)(()=>i)))).subscribe(()=>{this.processingEnd(),this.updating=!1,this.changeDetectorRef.detectChanges()})}trackByFn(e,o){return o.id}get nameControl(){return this.checkoutForm.get("name")}get nameControlValid(){return this.nameControl.touched&&!this.nameControlInvalid}get nameControlInvalid(){return this.nameControl.touched&&this.nameControl.hasError("required")}get emailControl(){return this.checkoutForm.get("email")}get emailControlValid(){return this.emailControl.touched&&!this.emailControlInvalid}get emailControlInvalid(){return this.emailControl.touched&&(this.emailControl.hasError("required")||this.emailControl.hasError("email"))}get couponCodeControl(){return this.couponForm.get("code")}get couponCodeControlValid(){return this.couponCodeControl.touched&&!this.couponCodeControlInvalid}get couponCodeControlInvalid(){return this.couponCodeControl.touched&&(this.couponCodeControl.hasError("required")||this.couponCodeControl.hasError("unknownCode")||this.couponCodeControl.hasError("unauthorizedCode"))}get termsAndConditionsControl(){return this.checkoutForm.get("termsAndConditions")}get termsAndConditionsControlValid(){return this.termsAndConditionsControl.touched&&!this.termsAndConditionsControlInvalid}get termsAndConditionsControlInvalid(){return this.termsAndConditionsControl.touched&&this.termsAndConditionsControl.hasError("required")}unknownCodeValidator(){return e=>this.unknownCode?{unknownCode:{value:"unknown"}}:null}unauthorizedCodeValidator(){return e=>this.unauthorizedCode?{unauthorizedCode:{value:"unauthorized"}}:null}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(s.qu),t.Y36(u.YI),t.Y36(t.sBO),t.Y36(u.px),t.Y36(u.te),t.Y36(p.F0),t.Y36(u.tI),t.Y36(u.yD),t.Y36(u.DJ))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["sbw-checkout"]],decls:17,vars:4,consts:[["id","layoutCheckout"],["id","layoutCheckout_content"],[1,"container","d-flex","flex-column","my-4","dynamic-top-padding"],[1,"row","justify-content-center"],["class","col-lg-6 col-md-8 col-sm-10",4,"ngIf"],["id","layoutCheckout_summary",1,"bg-white"],[1,"container","px-lg-0","my-4"],[1,"col-xl-12","col-lg-6","col-md-8","col-sm-10"],[1,"d-flex","align-items-center","justify-content-between","px-4"],[1,"mb-0"],["routerLink","/shop/cart",1,"btn","btn-link","btn-sm"],[1,"me-2",3,"icon"],[1,"mt-4"],[4,"ngIf"],[1,"col-lg-6","col-md-8","col-sm-10"],[1,"nav","nav-borders","nav-fill","nav-payments","small","mb-4"],["data-cy","payWithStripe",1,"nav-link","pointer","ms-0",3,"ngClass","click"],["data-cy","payWithPayPal",1,"nav-link","pointer",3,"ngClass","click"],["id","payment-form","data-cy","paymentForm",3,"formGroup"],[1,"mb-3",3,"hidden"],["for","name",1,"small","mb-1"],["
1id","name","data-cy","nameInput","type","text","placeholder","Jane Doe","required","","autocomplete","name","formControlName","name",1,"form-control"],["class","invalid-feedback",4,"ngIf"],["id","email","data-cy","emailInput","type","email","placeholder","[email protected]","required","","autocomplete","email","formControlName","email",1,"form-control"],["for","credit",1,"small","mb-1"],["id","card-element","data-cy","stripeCardElement",1,"form-control","form-control-card",3,"ngClass"],["id","card-errors","data-cy","cardErrors",1,"small","text-danger"],[1,"mb-3"],[1,"form-check","custom-checkbox"],["id","termsCheckbox","data-cy","termsAndConditionsInput","type","checkbox","formControlName","termsAndConditions",1,"form-check-input"],["for","termsCheckbox",1,"form-check-label","small","terms-label"],["routerLink","/terms-and-conditions","target","_blank",1,"text-reset","fw-bold"],[1,"d-grid"],["data-cy","payStripeButton",1,"btn","btn-primary","btn-lg","fw-500",3,"hidden","disabled","click"],[3,"hidden"],[1,"d-flex","align-items-center","justify-content-center","text-xs","mt-4","mb-1"],[1,"me-1","text-gray-500","text-xs",3,"icon"],[1,"line-height-normal"],[1,"text-center"],["src","assets/img/brand-logos/powered_by_stripe.svg","alt",""],["id","paypal-button-container","data-cy","payPalContainer",3,"ngClass"],[1,"invalid-feedback"],["role","status",1,"spinner-border","spinner-border-sm","me-1"],[1,"sr-only"],["routerLink","/terms",1,"text-reset","fw-bold"],["data-cy","processFreeOrder",1,"btn","btn-primary","fw-500","py-3","px-4",3,"disabled","click"],[1,"px-4"],["id","order-items","data-cy","orderItems"],["class","d-flex justify-content-between align-items-center mb-4",4,"ngFor","ngForOf","ngForTrackBy"],[3,"formGroup",4,"ngIf","ngIfElse"],["hasCoupon",""],["id","order-total"],[1,"d-flex","justify-content-between","mb-2","text-gray-500"],["data-cy","subtotal"],["class","d-flex justify-content-between mb-2 text-gray-500",4,"ngIf"],[1,"d-flex","justify-content-between","text-gray-700"],[1,"fw-500"],["data-cy","total",1,"fw-500"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],[1,"product","d-flex","align-items-center"],[1,"product-image","me-3"],["type","image/webp",3,"srcset"],["type","image/jpeg",3,"srcset"],[1,"img-fluid","product-img",3,"src","alt"],[1,"product-image-quantity"],[1,"product-name"],[1,"product-name-title"],[1,"product-name-license"],[1,"price","fw-500","text-gray-500"],[3,"formGroup"],[1,"input-group","input-group-coupon"],["data-cy","couponCodeInput","type","text","placeholder","Gift card or coupon code","formControlName","code",1,"form-control"],["couponCode",""],["data-cy","applyCoupon","type","submit",1,"btn","btn-primary","fw-500",3,"disabled","click"],["class","invalid-feedback","data-cy","unknownCodeError",4,"ngIf"],["class","invalid-feedback","data-cy","unauthorizedCodeError",4,"ngIf"],["data-cy","unknownCodeError",1,"invalid-feedback"],["data-cy","unauthorizedCodeError",1,"invalid-feedback"],[1,"d-flex","align-items-center","justify-content-between","mb-2","text-gray-500"],["data-cy","coupon"],[1,"text-xs"],[1,"text-monospace"],["data-cy","removeCoupon",1,"btn","btn-icon","btn-transparent-dark",3,"click"],[1,"text-red",3,"icon"],["data-cy","discount"]],template:function(o,i){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,mt,3,2,"div",4),t.qZA()()(),t.TgZ(5,"div",5)(6,"div",6)(7,"div",3)(8,"div",7)(9,"div",8)(10,"h1",9),t._uU(11,"Order Summary"),t.qZA(),t.TgZ(12,"button",10),t._UZ(13,"fa-icon",11),t._uU(14,"Back to Cart"),t.qZA()(),t._UZ(15,"hr",12),t.YNc(16,At,24,17,"ng-container",13),t.qZA()()()()()),2&o&&(t.xp6(4),t.Q6J("ngIf",i.assemblingOrder),t.xp6(9),t.Q6J("icon",t.DdM(3,Ut)),t.xp6(3),t.Q6J("ngIf",i.assemblingOrder))},dependencies:[d.mk,d.sg,d.O5,p.rH,s._Y,s.Fj,s.Wl,s.JJ,s.JL,s.Q7,s.sg,s.u,f.BN,d.rS,d.H9,C.y,b.r],styles:['#layoutCheckout[_ngcontent-%COMP%]{min-height:calc(100vh - 93px);display:flex;flex-direction:column}#layoutCheckout[_ngcontent-%COMP%]   #layoutCheckout_content[_ngcontent-%COMP%]{background-color:#f2f6fc;position:relative;display:flex;min-width:0;flex-grow:1}#layoutCheckout[_ngcontent-%COMP%]   #layoutCheckout_summary[_ngcontent-%COMP%]{flex-basis:25rem;flex-shrink:0;border-top:1px solid #e0e5ec}@media (min-width: 1200px){#layoutCheckout[_ngcontent-%COMP%]{flex-direction:row}#layoutCheckout[_ngcontent-%COMP%]   #layoutCheckout_content[_ngcontent-%COMP%]   .dynamic-top-padding[_ngcontent-%COMP%]{padding-top:calc((100vh - 693px)*.15)}#layoutCheckout[_ngcontent-%COMP%]   #layoutCheckout_summary[_ngcontent-%COMP%]{border-top:none;border-left:1px solid #e0e5ec;max-width:25rem}}.product[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]{display:inline-flex;position:relative}.product[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{box-shadow:0 .125rem .25rem #21283233;max-width:4rem}.product[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]   .product-image-quantity[_ngcontent-%COMP%]{position:absolute;top:-.5rem;right:-.5rem;height:1.25rem;width:1.25rem;display:inline-flex;align-items:center;justify-content:center;background-color:#69707a;color:#fff;border-radius:100%;font-size:.75rem;font-weight:600}
1.product[_ngcontent-%COMP%]   .product-name[_ngcontent-%COMP%]   .product-name-title[_ngcontent-%COMP%]{font-size:.85rem;font-weight:500}.product[_ngcontent-%COMP%]   .product-name[_ngcontent-%COMP%]   .product-name-license[_ngcontent-%COMP%]{font-size:.75rem}.price[_ngcontent-%COMP%]{font-size:.875rem}.separator[_ngcontent-%COMP%]{display:flex;align-items:center;text-align:center;font-size:.875rem;color:#69707a;font-style:italic}.separator[_ngcontent-%COMP%]:before, .separator[_ngcontent-%COMP%]:after{content:"";flex:1;border-bottom:1px solid #e0e5ec}.separator[_ngcontent-%COMP%]:before{margin-right:.5em}.separator[_ngcontent-%COMP%]:after{margin-left:.5em}.input-group-coupon[_ngcontent-%COMP%]   .input-group-append[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{border-top-right-radius:.35rem!important;border-bottom-right-radius:.35rem!important}.terms-label[_ngcontent-%COMP%]:before, .terms-label[_ngcontent-%COMP%]:after{top:1px}#card-element.disabled[_ngcontent-%COMP%]{background-color:#e0e5ec}.nav-payments[_ngcontent-%COMP%]{border-bottom-width:.125rem;border-bottom-style:solid;border-bottom-color:#e0e5ec}.nav-payments[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{margin-bottom:-.125rem}.nav-payments[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]:not(.active):hover{color:#212832}.disabled-overlay[_ngcontent-%COMP%]{position:relative;margin-bottom:-8px}.disabled-overlay[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fff;opacity:.3;z-index:1000;cursor:not-allowed}'],changeDetection:0})}return n})();const It={base:{iconColor:"#6c737d",lineHeight:"1.1",color:"#6c737d",fontWeight:400,fontFamily:'"Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',fontSmoothing:"antialiased",fontSize:"14px","::placeholder":{color:"#a7aeb8"},":-webkit-autofill":{color:"#6c737d"}}};function wt(n,r){1&n&&(t.TgZ(0,"div",11),t._UZ(1,"img",12),t.TgZ(2,"h4"),t._uU(3,"It looks like your cart is empty"),t.qZA(),t.TgZ(4,"p"),t._uU(5,"Once you've added some items to your cart they will appear here"),t.qZA(),t.TgZ(6,"a",13),t._uU(7,"Browse Products"),t.qZA()())}function Ot(n,r){if(1&n&&(t.TgZ(0,"div",45),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"SalePrice"),t.xp6(1),t.Oqu(t.gM2(2,2,i.salePrice/100,"USD","symbol","1.0"))}}function qt(n,r){if(1&n&&(t.TgZ(0,"div",45),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"Price"),t.xp6(1),t.Oqu(t.gM2(2,2,i.price/100,"USD","symbol","1.0"))}}function kt(n,r){if(1&n&&(t.TgZ(0,"td",46),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"SalePrice"),t.xp6(1),t.Oqu(t.gM2(2,2,i.salePrice/100,"USD","symbol","1.0"))}}function Pt(n,r){if(1&n&&(t.TgZ(0,"td",46),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"Price"),t.xp6(1),t.Oqu(t.gM2(2,2,i.price/100,"USD","symbol","1.0"))}}function St(n,r){1&n&&(t.TgZ(0,"div")(1,"div",47)(2,"span",48),t._uU(3,"Updating..."),t.qZA()()())}function Mt(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.quantity)}}function Qt(n,r){if(1&n&&(t.TgZ(0,"td",46),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.gM2(2,1,e.salePrice/100*e.quantity,"USD","symbol","1.0"))}}function Jt(n,r){if(1&n&&(t.TgZ(0,"td",46),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.gM2(2,1,e.price/100*e.quantity,"USD","symbol","1.0"))}}function Dt(n,r){1&n&&(t.TgZ(0,"div",49)(1,"span",48),t._uU(2,"Updating..."),t.qZA()())}const Nt=function(){return["far","times"]};function Lt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,a=t.oxw(3);return t.KtG(a.deleteLineItem(i.id,i.pricing))}),t._UZ(1,"fa-icon",51),t.qZA()}if(2&n){const e=t.oxw().index;t.uIk("data-cy","item"+e+"Delete"),t.xp6(1),t.Q6J("icon",t.DdM(2,Nt))}}const S=function(){return["far","minus"]},M=function(){return["far","plus"]};function Yt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",25)(1,"td",26)(2,"div",27)(3,"picture"),t._UZ(4,"source",28),t.ALo(5,"safe"),t.ALo(6,"webpExt"),t._UZ(7,"source",29),t.ALo(8,"safe"),t._UZ(9,"
1img",30),t.ALo(10,"safe"),t.qZA(),t.TgZ(11,"div",31)(12,"div",32),t._uU(13),t.qZA(),t.TgZ(14,"div",20),t._uU(15),t.ALo(16,"titlecase"),t.qZA()()(),t.TgZ(17,"div",33),t.YNc(18,Ot,3,7,"div",34),t.YNc(19,qt,3,7,"div",34),t.TgZ(20,"div",35)(21,"div",20),t._uU(22,"Quantity:"),t.qZA(),t.TgZ(23,"button",36),t.NdJ("click",function(){const a=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.updateQuantity(a.id,a.quantity-1))}),t._UZ(24,"fa-icon",37),t.qZA(),t.TgZ(25,"div",38),t._uU(26),t.qZA(),t.TgZ(27,"button",36),t.NdJ("click",function(){const a=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.updateQuantity(a.id,a.quantity+1))}),t._UZ(28,"fa-icon",37),t.qZA()(),t.TgZ(29,"button",39),t.NdJ("click",function(){const a=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.deleteLineItem(a.id,a.pricing))}),t._uU(30,"Remove"),t.qZA()()(),t.YNc(31,kt,3,7,"td",40),t.YNc(32,Pt,3,7,"td",40),t.TgZ(33,"td",41)(34,"button",36),t.NdJ("click",function(){const a=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.updateQuantity(a.id,a.quantity-1))}),t._UZ(35,"fa-icon",37),t.qZA(),t.TgZ(36,"div",38),t.YNc(37,St,4,0,"div",10),t.YNc(38,Mt,2,1,"span",10),t.qZA(),t.TgZ(39,"button",36),t.NdJ("click",function(){const a=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.updateQuantity(a.id,a.quantity+1))}),t._UZ(40,"fa-icon",37),t.qZA()(),t.YNc(41,Qt,3,6,"td",40),t.YNc(42,Jt,3,6,"td",40),t.TgZ(43,"td",42),t.YNc(44,Dt,3,0,"div",43),t.YNc(45,Lt,2,3,"button",44),t.qZA()()}if(2&n){const e=r.$implicit,o=r.index,i=t.oxw(3);t.xp6(4),t.Q6J("srcset",t.Dn7(5,33,t.xi3(6,37,null==e.pricing.product.images?null:e.pricing.product.images.primaryImage.medium,"medium"),"resourceURL","NONE")),t.xp6(3),t.Q6J("srcset",t.Dn7(8,40,null==e.pricing.product.images?null:e.pricing.product.images.primaryImage.medium,"resourceURL","NONE")),t.xp6(2),t.Q6J("src",t.Dn7(10,44,null==e.pricing.product.images?null:e.pricing.product.images.primaryImage.medium,"resourceURL","NONE"),t.LSH)("alt",null==e.pricing.product.images?null:e.pricing.product.images.primaryImage.alt),t.xp6(4),t.Oqu(e.pricing.product.displayName),t.xp6(2),t.hij("License: ",t.lcZ(16,48,e.licenseType),""),t.xp6(3),t.Q6J("ngIf",e.salePrice),t.xp6(1),t.Q6J("ngIf",!e.salePrice),t.xp6(4),t.Q6J("disabled",!0===i.updating),t.uIk("data-cy","item"+o+"RemoveQuantityResponsive"),t.xp6(1),t.Q6J("icon",t.DdM(50,S)),t.xp6(1),t.uIk("data-cy","item"+o+"QuantityResponsive"),t.xp6(1),t.Oqu(e.quantity),t.xp6(1),t.Q6J("disabled",!0===i.updating),t.uIk("data-cy","item"+o+"AddQuantityResponsive"),t.xp6(1),t.Q6J("icon",t.DdM(51,M)),t.xp6(1),t.Q6J("disabled",!0===i.updating),t.uIk("data-cy","item"+o+"DeleteResponsive"),t.xp6(2),t.Q6J("ngIf",e.salePrice),t.xp6(1),t.Q6J("ngIf",!e.salePrice),t.xp6(2),t.Q6J("disabled",!0===i.updating),t.uIk("data-cy","item"+o+"RemoveQuantity"),t.xp6(1),t.Q6J("icon",t.DdM(52,S)),t.xp6(1),t.uIk("data-cy","item"+o+"Quantity"),t.xp6(1),t.Q6J("ngIf",i.updating),t.xp6(1),t.Q6J("ngIf",!i.updating),t.xp6(1),t.Q6J("disabled",!0===i.updating),t.uIk("data-cy","item"+o+"AddQuantity"),t.xp6(1),t.Q6J("icon",t.DdM(53,M)),t.xp6(1),t.Q6J("ngIf",e.salePrice),t.xp6(1),t.Q6J("ngIf",!e.salePrice),t.xp6(2),t.Q6J("ngIf",i.updating),t.xp6(1),t.Q6J("ngIf",!i.updating)}}const Ft=function(){return{"disabled-content":!1}},Et=function(){return["far","long-arrow-right"]};function Bt(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"table",14)(2,"thead")(3,"tr")(4,"th",15),t._uU(5,"Product"),t.qZA(),t.TgZ(6,"th",16),t._uU(7,"Price"),t.qZA(),t.TgZ(8,"th",16),t._uU(9,"Quantity"),t.qZA(),t.TgZ(10,"th",16),t._uU(11,"Subtotal"),t.qZA(),t._UZ(12,"th",15),t.qZA()(),t.TgZ(13,"tbody",17),t.YNc(14,Yt,46,54,"tr",18),t.qZA()(),t._UZ(15,"hr"),t.TgZ(16,"div",19)(17,"div",20),t._uU(18,"Total:"),t.qZA(),t.TgZ(19,"div",21),t._uU(20),t.ALo(21,"currency"),t.qZA(),t.TgZ(22,"button",22),t._uU(23,"Continue Shopping"),t.qZA(),t.TgZ(24,"button",23),t._uU(25,"Checkout"),t._UZ(26,"fa-icon",24),t.qZA()(),t.BQk()),2&n){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("ngClass",t.DdM(11,Ft)),t.xp6(13),t.Q6J("ngForOf",e.lineItems)("ngForTrackBy",o.trackByFn),t.xp6(6),t.Oqu(t.gM2(21,6,e.total/100,"USD","symbol","1.0")),t.xp6(4),t.Q6J("disabled",!0===o.updating),t.xp6(2),t.Q6J("icon",t.DdM(12,Et))}}const Rt=function(){return["fad","shopping-cart"]};function jt(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"div",4)(2,"div",5),t._UZ(3,"fa-icon",6),t.TgZ(4,"h1",7),t._uU(5,"Shopping Cart"),t.qZA()(),t.TgZ(6,"div",8),t._uU(7),t.ALo(8,"i18nPlural"),t.qZA()(),t._UZ(9,"hr"),t.YNc(10,wt,8,0,"div",9),t.YNc(11,Bt,27,13,"ng-container",10),t.BQk()),2&n){const e=r.ngIf,o=t.oxw();
1t.xp6(3),t.Q6J("icon",t.DdM(7,Rt)),t.xp6(4),t.Oqu(t.xi3(8,4,e.lineItems.length,o.itemsPluralMap)),t.xp6(3),t.Q6J("ngIf",0===e.lineItems.length),t.xp6(1),t.Q6J("ngIf",e.lineItems.length>0)}}function $t(n,r){1&n&&(t.TgZ(0,"div",11),t._UZ(1,"img",12),t.TgZ(2,"h4"),t._uU(3,"It looks like your cart is empty"),t.qZA(),t.TgZ(4,"p"),t._uU(5,"Once you've added some items to your cart they will appear here"),t.qZA(),t.TgZ(6,"a",13),t._uU(7,"Browse Products"),t.qZA()())}let Q=(()=>{class n{constructor(e,o,i){this.orderService=e,this.changeDetectorRef=o,this.analyticsService=i,this.updating=!1,this.itemsPluralMap={"=0":"No Items","=1":"1 Item",other:"# Items"}}ngOnInit(){}updateQuantity(e,o){this.updating||0!==o&&(this.updating=!0,this.changeDetectorRef.detectChanges(),this.orderService.updateLineItem$(e,o).subscribe(()=>{this.updating=!1,this.changeDetectorRef.detectChanges()}))}deleteLineItem(e,o){this.orderService.deleteLineItem$(e).subscribe(()=>{this.updating=!1,this.changeDetectorRef.detectChanges(),this.analyticsService.removeFromCart(o)})}trackByFn(e,o){return o.id}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(u.px),t.Y36(t.sBO),t.Y36(u.yD))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["sbw-cart"]],decls:6,vars:4,consts:[[1,"my-4"],[1,"container"],[4,"ngIf","ngIfElse"],["emptyCart",""],[1,"d-flex","justify-content-between","align-items-center","py-2"],[1,"d-flex","align-items-center"],[1,"me-2","text-primary",3,"icon"],[1,"mb-0"],[1,"small","fst-italic"],["class","text-center mt-5","data-cy","emptyCart",4,"ngIf"],[4,"ngIf"],["data-cy","emptyCart",1,"text-center","mt-5"],["src","assets/img/freepik/windows-pana.svg","alt","",1,"img-fluid","mb
1-4",2,"max-width","25rem"],["routerLink","/",1,"btn","btn-primary","fw-500"],[1,"table","table-borderless","table-cart","mb-0",3,"ngClass"],["scope","col"],["scope","col",1,"text-center"],["data-cy","cartItems"],["class","cart-item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"text-center","text-lg-end","pb-4"],[1,"small"],["data-cy","cartTotal",1,"display-4","fw-600","text-gray-800","mb-3"],["data-cy","continueShopping","routerLink","/",1,"btn","btn-link","fw-500","me-2"],["data-cy","checkout","routerLink","/shop/checkout",1,"btn","btn-primary","shadow","fw-500",3,"disabled"],[1,"ms-2",3,"icon"],[1,"cart-item"],[1,"cart-item-product"],[1,"d-flex","align-items-center","flex-column","flex-lg-row"],["type","image/webp",3,"srcset"],["type","image/jpeg",3,"srcset"],[1,"cart-item-product-img","me-lg-3","mb-2","mb-lg-0",3,"src","alt"],[1,"text-center","text-lg-left"],[1,"fw-600"],[1,"d-flex","flex-column","align-items-center","d-lg-none","text-center"],["class","fw-600 mb-3",4,"ngIf"],[1,"cart-item-quantity","mb-3"],[1,"btn","btn-icon","btn-transparent-dark",3,"disabled","click"],[3,"icon"],[1,"cart-item-quantity-number"],[1,"btn","btn-link",3,"disabled","click"],["class","text-center d-none d-lg-table-cell",4,"ngIf"],[1,"text-center","d-none","d-lg-table-cell","cart-item-quantity"],[1,"d-none","d-lg-table-cell","cart-item-del"],["class","spinner-border spinner-border-sm text-red","role","status",4,"ngIf"],["class","btn btn-icon btn-transparent-dark",3,"click",4,"ngIf"],[1,"fw-600","mb-3"],[1,"text-center","d-none","d-lg-table-cell"],["role","status",1,"spinner-border","spinner-border-sm"],[1,"sr-only"],["role","status",1,"spinner-border","spinner-border-sm","text-red"],[1,"btn","btn-icon","btn-transparent-dark",3,"click"],[1,"text-red",3,"icon"]],template:function(o,i){if(1&o&&(t.TgZ(0,"section",0)(1,"div",1),t.YNc(2,jt,12,8,"ng-container",2),t.ALo(3,"async"),t.qZA()(),t.YNc(4,$t,8,0,"ng-template",null,3,t.W1O)),2&o){const a=t.MAs(5);t.xp6(2),t.Q6J("ngIf",t.lcZ(3,2,i.orderService.assemblingOrder$))("ngIfElse",a)}},dependencies:[d.mk,d.sg,d.O5,p.rH,f.BN,d.Ov,d.rS,d.H9,d.Gx,C.y,b.r],styles:['.disabled-content[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.7}.table-cart[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{display:none;position:relative}.table-cart[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;color:#a7aeb8;vertical-align:middle}.table-cart[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:first-child{padding-left:0}.table-cart[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.cart-item[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{vertical-align:middle}.table-cart[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.cart-item[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{padding-left:0}.table-cart[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.cart-item[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{padding-right:0}.table-cart[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.cart-item[_ngcontent-%COMP%]   .cart-item-product[_ngcontent-%COMP%]   .cart-item-product-img[_ngcontent-%COMP%]{width:10rem;max-width:100%;border-radius:.35rem;box-shadow:0 .15rem 1.75rem #21283226}.table-cart[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.cart-item[_ngcontent-%COMP%]   .cart-item-del[_ngcontent-%COMP%]{width:54px!important;text-align:center;vertical-align:middle}.table-cart[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.cart-item[_ngcontent-%COMP%]   .cart-item-quantity[_ngcontent-%COMP%]   .cart-item-quantity-number[_ngcontent-%COMP%]{width:1.25rem;display:inline-flex;justify-content:center;align-items:center;margin-left:1rem;margin-right:1rem}@media (min-width: 992px){.table-cart[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{display:table-header-group}}'],changeDetection:0})}return n})();var _=c(3126),Ht=c(726),Gt=c(9130),Vt=c(9405),Kt=c(5168),zt=c(2796),Wt=c(1172),Xt=c(2677);let te=(()=>{class n{constructor(){}transform(e){return e.freelancer?e.freelancer:e.developer}static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275pipe=t.Yjl({name:"cheapest",type:n,pure:!0})}return n})();function ee(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",13),t._uU(2,"$XX"),t.qZA(),t.BQk())}function ne(n,r){if(1&n&&(t.TgZ(0,"div",13),t._uU(1),t.ALo(2,"currency"),t.ALo(3,"cheapest"),t.qZA()),2&n){const e=t.oxw(2).$implicit;let o;t.xp6(1),t.Oqu(t.gM2(2,1,(null==(o=t.lcZ(3,6,null==e?null:e.pricingsMapped))?null:o.salePrice)/100,"USD","symbol","1.0"))}}function oe(n,r){if(1&n&&(t.TgZ(0,"div",13),t._uU(1),t.ALo(2,"currency"),t.ALo(3,"cheapest"),t.qZA()),2&n){const e=t.oxw(2).$implicit;let o;t.xp6(1),t.Oqu(t.gM2(2,1,(null==(o=t.lcZ(3,6,null==e?null:e.pricingsMapped))?null:o.price)/100,"USD","symbol","1.0"))}}function ie(n,r){if(1&n&&(t.ynx(0),t.YNc(1,ne,4,8,"div",14),t.ALo(2,"cheapest"),t.YNc(3,oe,4,8,"div",14),t.ALo(4,"cheapest"),t.BQk()),2&n){const e=t.oxw().$implicit;let o,i;t.xp6(1),t.Q6J("ngIf",null==(o=t.lcZ(2,2,null==e?null:e.pricingsMapped))?null:o.salePrice),t.xp6(2),t.Q6J("ngIf",!(null!=(i=t.lcZ(4,4,null==e?null:e.pricingsMapped))&&i.salePrice))}}const h=function(){return["fas","star"]};function re(n,r){if(1&n&&(t.TgZ(0,"div",1)(1,"a",2),t.ALo(2,"lowercase"),t.TgZ(3,"picture"),t._UZ(4,"source",3),t.ALo(5,"safe"),t.ALo(6,"webpExt"),t._UZ(7,"source",4),t.ALo(8,"safe"),t._UZ(9,"
1img",5),t.ALo(10,"safe"),t.qZA()(),t.TgZ(11,"div",6)(12,"div")(13,"div",7),t._uU(14),t.qZA(),t.TgZ(15,"div",8),t._uU(16),t.qZA()(),t.TgZ(17,"div",9),t.YNc(18,ee,3,0,"ng-container",10),t.YNc(19,ie,5,6,"ng-container",10),t.TgZ(20,"div",11),t._UZ(21,"fa-icon",12)(22,"fa-icon",12)(23,"fa-icon",12)(24,"fa-icon",12)(25,"fa-icon",12),t.qZA()()()()),2&n){const e=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("routerLink","/"+t.lcZ(2,14,e.productType)+"/"+e.slug),t.xp6(3),t.Q6J("srcset",t.Dn7(5,16,t.xi3(6,20,null==e||null==e.images?null:e.images.primaryImage.medium,"medium"),"resourceURL","NONE")),t.xp6(3),t.Q6J("srcset",t.Dn7(8,23,null==e||null==e.images?null:e.images.primaryImage.medium,"resourceURL","NONE")),t.xp6(2),t.Q6J("src",t.Dn7(10,27,null==e||null==e.images?null:e.images.primaryImage.medium,"resourceURL","NONE"),t.LSH)("alt",e.displayName),t.xp6(5),t.Oqu(e.displayName),t.xp6(2),t.Oqu(e.description.bump),t.xp6(2),t.Q6J("ngIf",!o.prerenderDynamicProductGroupingLoaded),t.xp6(1),t.Q6J("ngIf",o.prerenderDynamicProductGroupingLoaded),t.xp6(2),t.Q6J("icon",t.DdM(31,h)),t.xp6(1),t.Q6J("icon",t.DdM(32,h)),t.xp6(1),t.Q6J("icon",t.DdM(33,h)),t.xp6(1),t.Q6J("icon",t.DdM(34,h)),t.xp6(1),t.Q6J("icon",t.DdM(35,h))}}let ae=(()=>{class n{constructor(e,o){this.platformService=e,this.changeDetectorRef=o,this.prerenderDynamicProductGroupingLoaded=!1}ngOnInit(){}ngAfterViewInit(){this.platformService.isServer||(this.prerenderDynamicProductGroupingLoaded=!0,this.changeDetectorRef.detectChanges())}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(u.mi),t.Y36(t.sBO))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["sbw-product-grouping"]],inputs:{products:"products"},decls:1,vars:1,consts:[["class","col-md-6 px-3 mb-3",4,"ngFor","ngForOf"],[1,"col-md-6","px-3","mb-3"],["href","javascript:void(0);",1,"d-block","rounded-3","lift","lift-lg","mb-3","pointer",2,"--aspect-ratio","1.5",3,"routerLink"],["type","image/webp",3,"srcset"],["type","image/jpeg",3,"srcset"],[1,"img-fluid","rounded-3",3,"src","alt"],[1,"d-flex","justify-content-between","align-items-center"],[1,"h6","mb-0"],[1,"small"],[1,"text-end","flex-shrink-0"],[4,"ngIf"],[1,"text-xs","text-yellow","mt-1"],[3,"icon"],[1,"badge","bg-blue-soft","text-blue"],["class","badge bg-blue-soft text-blue",4,"ngIf"]],template:function(o,i){1&o&&t.YNc(0,re,26,36,"div",0),2&o&&t.Q6J("ngForOf",i.products)},dependencies:[d.sg,d.O5,p.rH,f.BN,d.i8,d.H9,te,C.y,b.r],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return n})();const v=function(n){return{active:n}},ce=function(){return["fab","bootstrap"]},se=function(){return["fab","angular"]},de=function(){return["fab","vuejs"]},le=function(){return["fad","boxes"]};function ue(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"div",13)(2,"div",14)(3,"nav",15)(4,"a",16),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(21),a=t.oxw();return t.KtG(a.scrollTo(i))}),t._UZ(5,"fa-icon",17),t._uU(6,"Bootstrap Themes"),t.qZA(),t.TgZ(7,"a",18),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(32),a=t.oxw();return t.KtG(a.scrollTo(i))}),t._UZ(8,"fa-icon",19),t._uU(9,"Angular Templates"),t.qZA(),t.TgZ(10,"a",20),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(43),a=t.oxw();return t.KtG(a.scrollTo(i))}),t._UZ(11,"fa-icon",21),t._uU(12,"Vue.js"),t.qZA(),t.TgZ(13,"a",22),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(54),a=t.oxw();return t.KtG(a.scrollTo(i))}),t.TgZ(14,"span"),t._UZ(15,"fa-icon",23),t._uU(16,"Product Bundles"),t.qZA(),t.TgZ(17,"span",24),t._uU(18,"Sale!"),t.qZA()()()(),t.TgZ(19,"div",25)(20,"span",26,27)(22,"h2",28),t._uU(23,"Premium Bootstrap HTML Themes"),t.qZA(),t.TgZ(24,"p",29),t._uU(25,"Fully styled, easy to use, and ready to integrate into any project"),t.qZA(),t._UZ(26,"hr",30),t.TgZ(27,"p",31),t._uU(28,"Our Bootstrap HTML themes come equipped with the HTML and CSS files you need to get your project started. Our development approach for these HTML based themes prioritizes HTML and CSS over JS to make them more approachable to developers of all levels and easier to integrate with any framework you choose to build out your project."),t.qZA(),t.TgZ(29,"div",13),t._UZ(30,"sbw-product-grouping",32),t.qZA()(),t.TgZ(31,"span",33,34)(33,"h2",28),t._uU(34,"Premium Angular Templates"),t.qZA(),t.TgZ(35,"p",29),t._uU(36,"
1Save months of development time with deployment-ready Angular templates"),t.qZA(),t._UZ(37,"hr",30),t.TgZ(38,"p",31),t._uU(39,"Our premium Angular themes are built with Angular 9+, and include lightning fast, intricate routing with tiny payloads and lazy loaded modules. We don't stop there. When purchasing an Angular theme from Start Bootstrap, we also include a full suite of custom page examples and components, detailed documentation, and a full suite of functional tests and unit tests with 100% code coverage."),t.qZA(),t.TgZ(40,"div",13),t._UZ(41,"sbw-product-grouping",32),t.qZA()(),t.TgZ(42,"span",35,36)(44,"h2",28),t._uU(45,"Premium Vue.js Templates"),t.qZA(),t.TgZ(46,"p",29),t._uU(47,"Bootstrap based templates built with the progressive JavaScript framework"),t.qZA(),t._UZ(48,"hr",30),t.TgZ(49,"p",31),t._uU(50,"Approachable and versatile, our Vue.js based templates are a flexible starting point for creating progressive user interfaces and web applications."),t.qZA(),t.TgZ(51,"div",13),t._UZ(52,"sbw-product-grouping",32),t.qZA()(),t.TgZ(53,"span",37,38)(55,"h2",28),t._uU(56,"Premium Bundles"),t.qZA(),t.TgZ(57,"p",29),t._uU(58,"Bundle and save when you purchase our most popular products!"),t.qZA(),t._UZ(59,"hr",39),t.TgZ(60,"div",13),t._UZ(61,"sbw-product-grouping",32),t.qZA()()()()()}if(2&n){const e=t.oxw();
1t.xp6(4),t.Q6J("ngClass",t.VKq(16,v,"premiumBootstrapHtmlThemes"===e.activeIdentifier)),t.xp6(1),t.Q6J("icon",t.DdM(18,ce))("fixedWidth",!0),t.xp6(2),t.Q6J("ngClass",t.VKq(19,v,"premiumAngularTemplates"===e.activeIdentifier)),t.xp6(1),t.Q6J("icon",t.DdM(21,se))("fixedWidth",!0),t.xp6(2),t.Q6J("ngClass",t.VKq(22,v,"premiumVueJSTemplates"===e.activeIdentifier)),t.xp6(1),t.Q6J("icon",t.DdM(24,de))("fixedWidth",!0),t.xp6(2),t.Q6J("ngClass",t.VKq(25,v,"premiumBundles"===e.activeIdentifier)),t.xp6(2),t.Q6J("icon",t.DdM(27,le))("fixedWidth",!0),t.xp6(15),t.Q6J("products",e.allHTMLThemes),t.xp6(11),t.Q6J("products",e.allAngularThemes),t.xp6(11),t.Q6J("products",e.allVueThemes),t.xp6(9),t.Q6J("products",e.allBundles)}}let J=(()=>{class n{constructor(e,o,i,a){this.scrollSpyService=e,this.changeDetectorRef=o,this.productsService=i,this.utilityService=a,this.activeIdentifier="premiumBootstrapHtmlThemes",this.subscription=new O.w0,this.productsLoaded=!1}ngOnInit(){this.scrollSpyService.reset(),this.subscription.add(this.scrollSpyService.activeScrollSpyNavItems$.subscribe(e=>{this.activeIdentifier=e[0]?.identifier,this.changeDetectorRef.markForCheck()})),this.subscription.add(this.productsService.products$.subscribe(e=>{const o=e.filter(a=>!a.free);this.allBundles=o.filter(a=>a.productType===_.ProductType.bundle);const i=o.filter(a=>a.productType!==_.ProductType.bundle);this.allHTMLThemes=i.filter(a=>a.primaryTechnology===_.ProductTechnology.html),this.allAngularThemes=i.filter(a=>a.primaryTechnology===_.ProductTechnology.angular),this.allVueThemes=i.filter(a=>a.primaryTechnology===_.ProductTechnology.vue),this.productsLoaded=!0,this.changeDetectorRef.markForCheck()}))}ngOnDestroy(){this.subscription.unsubscribe()}scrollTo(e){const o=e.getBoundingClientRect().top+this.utilityService.window.pageYOffset-116;console.log(o),this.utilityService.window.scrollTo({top:o,behavior:"smooth"})}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(u.f_),t.Y36(t.sBO),t.Y36(Ht.su),t.Y36(u.tI))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["sbw-shop-landing"]],decls:15,vars:1,consts:[["footerClasses","bg-light footer-light"],["topNavClasses","bg-white navbar-light fixed-top","brandClasses","text-black","buttonClasses","btn-teal"],["headerClasses","bg-light page-header-ui-light pt-0","borderType","angled","borderClasses","text-white"],[1,"page-header-ui-content","pb-4"],[1,"container"],[1,"row","align-items-center"],[1,"col-lg-8","mb-4","mb-lg-0"],[1,"page-header-ui-title"],[1,"page-header-ui-text","mb-0"],[1,"col-lg-4"],["adSense","",1,"carbon-container","carbon-inverse"],["sectionClasses","pt-10 pb-5 bg-white","borderType","angled","borderClasses","text-light"],["class","container",4,"ngIf"],[1,"row"],[1,"col-lg-3"],[1,"nav","flex-column","nav-pills","mb-5","sticky-top","shop-landing-nav"],["data-cy","htmlSidenavLink","href","javascript:void(0);",1,"nav-link","py-3","px-4","mb-1",3,"ngClass","click"],[1,"text-bootstrap","me-1",3,"icon","fixedWidth"],["data-cy","angularSidenavLink","href","javascript:void(0);",1,"nav-link","py-3","px-4","mb-1",3,"ngClass","click"],[1,"text-angular","me-1",3,"icon","fixedWidth"],["data-cy","vueSidenavLink","href","javascript:void(0);",1,"nav-link","py-3","px-4","mb-1",3,"ngClass","click"],[1,"text-vue","me-1",3,"icon","fixedWidth"],["data-cy","bundleSidenavLink","href","javascript:void(0);",1,"nav-link","py-3","px-4","mb-1","d-flex","align-items-center","justify-content-between",3,"ngClass","click"],[1,"text-blue","me-1",3,"icon","fixedWidth"],[1,"badge","bg-green-soft","text-green"],[1,"col-lg-8"],["sbwScrollSpy","premiumBootstrapHtmlThemes","level","0",1,"mb-5"],["premiumBootstrapHtmlThemes",""],[1,"mb-0"],[1,"text-muted"],[1,"mt-0"],[1,"mb-5"],[3,"products"],["sbwScrollSpy","premiumAngularTemplates","level","0",1,"mb-5"],["premiumAngularTemplates",""],["sbwScrollSpy","premiumVueJSTemplates","level","0",1,"mb-5"],["premiumVueJSTemplates",""],["sbwScrollSpy","premiumBundles","level","0",1,"mb-5"],["premiumBundles",""],[1,"mt-0","mb-4"]],template:function(o,i){1&o&&(t.TgZ(0,"sbw-layout-site",0),t._UZ(1,"sb-top-nav",1),t.TgZ(2,"sbpro-page-header",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h1",7),t._uU(8,"Premium Bootstrap Themes"),t.qZA(),t.TgZ(9,"p",8),t._uU(10,"At Start Bootstrap, all of our pro products are built in-house by developers with years of experience in working with and extending the Bootstrap framework."),t.qZA()(),t.TgZ(11,"div",9),t._UZ(12,"div",10),t.qZA()()()()(),t.TgZ(13,"sbpro-page-section",11),t.YNc(14,ue,62,28,"div",12),t.qZA()()),2&o&&(t.xp6(14),t.Q6J("ngIf",i.productsLoaded))},dependencies:[d.mk,d.O5,Gt.q,Vt.g,Kt.Z,zt.j,f.BN,Wt.E,Xt.K,ae],styles:[".shop-landing-nav[_ngcontent-%COMP%]{top:calc(93px + 1.5rem);font-size:.875em}.shop-landing-nav[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{color:#363d47;border-left:.25rem solid transparent}.shop-landing-nav[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%]{border-left-color:#d4dae3;background-color:#f2f6fc}"],changeDetection:0})}return n})();var pe=c(9197),_e=c(116),ge=c(635),me=c(9337),fe=c(1179),he=c(2040),ve=c(4137);function xe(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",1)(2,"div",2)(3,"sbpro-page-card",3)(4,"div",4),t._uU(5,"Order not found. Please try again."),t.qZA()()()(),t.BQk())}function Ze(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"div",5)(2,"div",2)(3,"sbpro-page-card",3)(4,"div",4),t._uU(5,"Unable to load your order information. Please try again by refreshing this page."),t._UZ(6,"br")(7,"br"),t._uU(8,"If you need help please contact: "),t.TgZ(9,"a",6),t._uU(10,"[email protected] "),t.qZA(),t._UZ(11,"br")(12,"br"),t._uU(13),t.qZA()()()(),t.BQk()),2&n){const e=t.oxw();
1t.xp6(9),t.Q6J("href","mailto:[email protected]?subject=Order%20info%20for%20"+e.orderID,t.LSH),t.xp6(4),t.hij("Order ID: ",e.orderID,"")}}function ye(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10),t._UZ(5,"img",11),t.qZA(),t.TgZ(6,"div",12)(7,"h1",13),t._uU(8,"Order Pending..."),t.qZA(),t.TgZ(9,"p",14),t._uU(10,"Thank you for your purchase! Your order is pending, and you will receive an email notification after it has completed."),t.qZA()()()()(),t.BQk())}function Ce(n,r){1&n&&(t.TgZ(0,"div",24),t._uU(1,"Password required."),t.qZA())}function be(n,r){1&n&&(t.TgZ(0,"div",24),t._uU(1,"Password must be at least 8 characters."),t.qZA())}function Te(n,r){1&n&&(t.TgZ(0,"div",24),t._uU(1,"Confirm Password required."),t.qZA())}function Ae(n,r){1&n&&(t.TgZ(0,"div",24),t._uU(1,"Passwords do not match."),t.qZA())}function Ue(n,r){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10),t._UZ(5,"img",11),t.qZA(),t.TgZ(6,"div",12)(7,"h1",13),t._uU(8,"Order Pending..."),t.qZA(),t.TgZ(9,"p",14),t._uU(10,"Thank you for your purchase! Your order is pending, and you will receive an email notification after it has completed. In the meantime, we recommend that you create an account so you can have future access to your purchase when it's ready!"),t.qZA(),t.TgZ(11,"div",14)(12,"h2"),t._uU(13,"Create an account:"),t.qZA(),t.TgZ(14,"p"),t._uU(15,"If you want future access to your purchase and future updates, create an account by setting a password below."),t.qZA(),t.TgZ(16,"form",15),t.NdJ("ngSubmit",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSubmit())}),t.TgZ(17,"div",16)(18,"div",17),t._UZ(19,"input",18),t.TgZ(20,"div",19),t._uU(21,"Looks good!"),t.qZA(),t.YNc(22,Ce,2,0,"div",20),t.YNc(23,be,2,0,"div",20),t.qZA(),t.TgZ(24,"div",17),t._UZ(25,"input",21),t.TgZ(26,"div",19),t._uU(27,"Looks good!"),t.qZA(),t.YNc(28,Te,2,0,"div",20),t.YNc(29,Ae,2,0,"div",20),t.qZA(),t.TgZ(30,"div",22)(31,"button",23),t._uU(32,"Create Account"),t.qZA()()()()()()()()(),t.BQk()}if(2&n){const e=t.oxw(3);t.xp6(16),t.Q6J("formGroup",e.registerAfterOrderForm),t.xp6(3),t.ekj("is-valid",e.passwordControlValid)("is-invalid",e.passwordControlInvalid),t.xp6(3),t.Q6J("ngIf",e.passwordControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.passwordControl.hasError("minlength")),t.xp6(2),t.ekj("is-valid",e.confirmPasswordControlValid)("is-invalid",e.confirmPasswordControlInvalid),t.xp6(3),t.Q6J("ngIf",e.confirmPasswordControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.registerAfterOrderForm.hasError("passwordMismatch")),t.xp6(2),t.Q6J("disabled",e.registerAfterOrderForm.invali
1d)}}function Ie(n,r){if(1&n&&(t.ynx(0),t.YNc(1,ye,11,0,"ng-container",0),t.YNc(2,Ue,33,14,"ng-container",0),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.order.user),t.xp6(1),t.Q6J("ngIf",!e.order.user)}}function we(n,r){1&n&&t._UZ(0,"hr")}const D=function(){return["fad","download"]};function Oe(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"div",52)(2,"div",60)(3,"div",61),t._uU(4),t.qZA(),t.TgZ(5,"div",42),t._uU(6),t.ALo(7,"titlecase"),t.qZA()(),t.TgZ(8,"a",62),t._UZ(9,"fa-icon",40),t._uU(10,"Go to Download"),t.qZA()(),t.YNc(11,we,1,0,"hr",0),t.BQk()),2&n){const e=r.$implicit,o=r.last,i=r.index;t.xp6(4),t.Oqu(e.displayName),t.xp6(2),t.hij("License: ",t.lcZ(7,5,e.licenseType),""),t.xp6(2),t.uIk("data-cy","goToDownload-"+i),t.xp6(1),t.Q6J("icon",t.DdM(7,D)),t.xp6(2),t.Q6J("ngIf",!o)}}function qe(n,r){if(1&n&&(t.TgZ(0,"div",42),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"SalePrice"),t.xp6(1),t.Oqu(t.gM2(2,2,i.salePrice/100*i.quantity,"USD","symbol","1.0"))}}function ke(n,r){if(1&n&&(t.TgZ(0,"div",42),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"Price"),t.xp6(1),t.Oqu(t.gM2(2,2,i.price/100*i.quantity,"USD","symbol","1.0"))}}function Pe(n,r){if(1&n&&(t.TgZ(0,"div",63)(1,"div",64)(2,"div",42),t._uU(3),t.qZA(),t.TgZ(4,"div",43),t._uU(5,"License: "),t.TgZ(6,"a",65),t.ALo(7,"lowercase"),t._uU(8),t.ALo(9,"titlecase"),t.qZA()()(),t.YNc(10,qe,3,7,"div",50),t.YNc(11,ke,3,7,"div",50),t.qZA()),2&n){const e=r.$implicit;t.xp6(3),t.AsE("",e.pricing.product.displayName," x ",e.quantity,""),t.xp6(3),t.Q6J("routerLink",t.lcZ(7,6,"/licenses/"+e.licenseType)),t.xp6(2),t.Oqu(t.lcZ(9,8,e.licenseType)),t.xp6(2),t.Q6J("ngIf",e.salePrice),t.xp6(1),t.Q6J("ngIf",!e.salePrice)}}function Se(n,r){1&n&&(t.TgZ(0,"div",42),t._uU(1,"PayPal"),t.qZA())}function Me(n,r){1&n&&(t.TgZ(0,"div",42),t._uU(1,"Credit Card"),t.qZA())}function Qe(n,r){if(1&n&&(t.TgZ(0,"div",52)(1,"div",49),t._uU(2,"SubTotal:"),t.qZA(),t.TgZ(3,"div",66),t._uU(4),t.ALo(5,"currency"),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(4),t.Oqu(t.gM2(5,1,e.order.subtotal/100,"USD","symbol","1.0"))}}function Je(n,r){if(1&n&&(t.TgZ(0,"div",52)(1,"div",49),t._uU(2,"Discount:"),t.qZA(),t.TgZ(3,"div",67),t._uU(4),t.ALo(5,"currency"),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(4),t.hij("-",t.gM2(5,1,e.order.discount/100,"USD","symbol","1.0"),"")}}const N=function(){return["fad","check-circle"]},L=function(){return["fad","print"]};function De(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"div",7)(2,"div",25)(3,"div",2)(4,"div",26),t._UZ(5,"img",27),t.qZA(),t.TgZ(6,"div",28)(7,"div",29)(8,"div",30),t._UZ(9,"fa-icon",31),t.qZA(),t.TgZ(10,"div")(11,"h1",32),t._uU(12,"Order Complete!"),t.qZA(),t.TgZ(13,"p",33),t._uU(14,"Thank you for your purchase! Your item has been added to your account and is now ready to download from your account dashboard."),t.qZA()()(),t.TgZ(15,"div",34)(16,"div",35),t._uU(17,"Downloads"),t.qZA(),t.TgZ(18,"div",36),t.YNc(19,Oe,12,8,"ng-container",37),t.qZA()(),t.TgZ(20,"div",38)(21,"div",35),t._uU(22," Purchase Receipt"),t.TgZ(23,"a",39),t._UZ(24,"fa-icon",40),t._uU(25,"Print"),t.qZA()(),t.TgZ(26,"div",36)(27,"div",41)(28,"div",42),t._uU(29),t.qZA(),t.TgZ(30,"div",43),t._uU(31),t.ALo(32,"receiptDateFormat"),t.qZA()(),t.TgZ(33,"div",44)(34,"div",45)(35,"div",42),t._uU(36,"Item"),t.qZA(),t.TgZ(37,"div",42),t._uU(38,"Price"),t.qZA()()(),t._UZ(39,"hr",46),t.YNc(40,Pe,12,10,"div",47),t._UZ(41,"hr"),t.TgZ(42,"div",48)(43,"div",49),t._uU(44,"Payment Method:"),t.qZA(),t.YNc(45,Se,2,0,"div",50),t.YNc(46,Me,2,0,"div",50),t.qZA(),t.YNc(47,Qe,6,6,"div",51),t.YNc(48,Je,6,6,"div",51),t.TgZ(49,"div",52)(50,"div",49),t._uU(51,"Total:"),t.qZA(),t.TgZ(52,"div",53),t._uU(53),t.ALo(54,"currency"),t.qZA()()(),t.TgZ(55,"div",54)(56,"div",52)(57,"div",55)(58,"div",56),t._uU(59,"Customer Details:"),t.qZA(),t._uU(60),t._UZ(61,"br"),t._uU(62),t.qZA(),t.TgZ(63,"div",57)(64,"div",56),t._uU(65,"Seller Information:"),t.qZA(),t._uU(66," Start Bootstrap LLC"),t._UZ(67,"br"),t._uU(68,"https://startbootstrap.com "),t.qZA()()()(),t.TgZ(69,"p",58),t._uU(70,"Need an invoice? Visit your "),t.TgZ(71,"a",59),t._uU(72,"account dashboard"),t.qZA(),t._uU(73,"."),t.qZA()()()()(),t.BQk()),2&n){const e=t.oxw(3);t.xp6(9),t.Q6J("icon",t.DdM(20,N)),t.xp6(10),t.Q6J("ngForOf",e.mappedDownloads),t.xp6(5),t.Q6J("icon",t.DdM(21,L)),t.xp6(5),t.hij("Order ID: ",e.order.id,""),t.xp6(2),t.Oqu(t.lcZ(32,13,e.order.completedDate)),t.xp6(9),t.Q6J("ngForOf",e.order.lineItems),t.xp6(5),t.Q6J("ngIf","PAYPAL"===e.order.completedPaymentMethod),t.xp6(1),t.Q6J("ngIf","STRIPE"===e.order.completedPaymentMethod),t.xp6(1),t.Q6J("ngIf",e.order.discount),t.xp6(1),t.Q6J("ngIf",e.order.discount),t.xp6(5),t.Oqu(t.gM2(54,15,e.order.total/100,"USD","symbol","1.0")),t.xp6(7),t.hij(" ",e.order.name,""),t.xp6(2),t.hij("",e.order.email," ")}}function Ne(n,r){1&n&&(t.TgZ(0,"div",24),t._uU(1,"Password required."),t.qZA())}function Le(n,r){1&n&&(t.TgZ(0,"div",24),t._uU(1,"Password must be at least 8 characters."),t.qZA())}function Ye(n,r){1&n&&(t.TgZ(0,"div",24),t._uU(1,"Confirm Password required."),t.qZA())}function Fe(n,r){1&n&&(t.TgZ(0,"div",24),t._uU(1,"Passwords do not match."),t.qZA())}const Ee=function(n){return{orderid:n}};function Be(n,r){if(1&n&&(t.TgZ(0,"div",73),t._uU(1,"The email used for this order already has an account."),t._UZ(2,"br")(3,"br"),t._uU(4,"You can log into your account and then link this order by clicking -> "),t.TgZ(5,"a",74),t._uU(6,"HERE"),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(5),t.Q6J("queryParams",t.VKq(1,Ee,e.orderID))}}function Re(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",76)(1,"div",77),t._uU(2,"1 Download Remaining"),t._UZ(3,"br"),t._uU(4,"Want more? Create an account!"),t.qZA(),t.TgZ(5,"button",78),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,a=t.oxw(4);return t.KtG(a.download(i.id,i.downloadFilename))}),t._UZ(6,"fa-icon",40),t._uU(7,"Download"),t.qZA()()}if(2&n){const e=t.oxw(),o=e.$implicit,i=e.index;t.xp6(5),t.uIk("data-download-id",o.id)("data-cy","productDownload-"+i),t.xp6(1),t.Q6J("icon",t.DdM(3,D))}}function je(n,r){if(1&n&&(t.TgZ(0,"div",76)(1,"div",77),t._uU(2,"This item has already been downloaded."),t._UZ(3,"br"),t._uU(4,"Create an account above to re-download."),t.qZA()()),2&n){const e=t.oxw().index;t.uIk("data-cy","productAlreadyDownloaded-"+e)}}function $e(n,r){1&n&&t._UZ(0,"hr")}function He(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"div",52)(2,"div",60)(3,"div",61),t._uU(4),t.qZA(),t.TgZ(5,"div",42),t._uU(6),t.ALo(7,"titlecase"),t.qZA()(),t.YNc(8,Re,8,4,"div",75),t.YNc(9,je,5,1,"div",75),t.qZA(),t.YNc(10,$e,1,0,"hr",0),t.BQk()),2&n){const e=r.$implicit,o=r.last;
1t.xp6(4),t.Oqu(e.displayName),t.xp6(2),t.hij("License: ",t.lcZ(7,5,e.licenseType),""),t.xp6(2),t.Q6J("ngIf",0===e.totalDownloads),t.xp6(1),t.Q6J("ngIf",e.totalDownloads>0),t.xp6(1),t.Q6J("ngIf",!o)}}function Ge(n,r){if(1&n&&(t.TgZ(0,"div",42),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"SalePrice"),t.xp6(1),t.Oqu(t.gM2(2,2,i.salePrice/100*i.quantity,"USD","symbol","1.0"))}}function Ve(n,r){if(1&n&&(t.TgZ(0,"div",42),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&n){const e=t.oxw(),i=e.$implicit;t.uIk("data-cy","item"+e.index+"Price"),t.xp6(1),t.Oqu(t.gM2(2,2,i.price/100*i.quantity,"USD","symbol","1.0"))}}function Ke(n,r){if(1&n&&(t.TgZ(0,"div",63)(1,"div",64)(2,"div",42),t._uU(3),t.qZA(),t.TgZ(4,"div",43),t._uU(5,"License: "),t.TgZ(6,"a",65),t.ALo(7,"lowercase"),t._uU(8),t.ALo(9,"titlecase"),t.qZA()()(),t.YNc(10,Ge,3,7,"div",50),t.YNc(11,Ve,3,7,"div",50),t.qZA()),2&n){const e=r.$implicit;t.xp6(3),t.AsE("",e.pricing.product.displayName," x ",e.quantity,""),t.xp6(3),t.Q6J("routerLink",t.lcZ(7,6,"/licenses/"+e.licenseType)),t.xp6(2),t.Oqu(t.lcZ(9,8,e.licenseType)),t.xp6(2),t.Q6J("ngIf",e.salePrice),t.xp6(1),t.Q6J("ngIf",!e.salePrice)}}function ze(n,r){1&n&&(t.TgZ(0,"div",42),t._uU(1,"PayPal"),t.qZA())}function We(n,r){1&n&&(t.TgZ(0,"div",42),t._uU(1,"Credit Card"),t.qZA())}function Xe(n,r){if(1&n&&(t.TgZ(0,"div",52)(1,"div",49),t._uU(2,"SubTotal:"),t.qZA(),t.TgZ(3,"div",66),t._uU(4),t.ALo(5,"currency"),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(4),t.Oqu(t.gM2(5,1,e.order.subtotal/100,"USD","symbol","1.0"))}}function tn(n,r){if(1&n&&(t.TgZ(0,"div",52)(1,"div",49),t._uU(2,"Discount:"),t.qZA(),t.TgZ(3,"div",67),t._uU(4),t.ALo(5,"currency"),t.qZA()()),2&n){const e=t.oxw(4);t.xp6(4),t.hij("-",t.gM2(5,1,e.order.discount/100,"USD","symbol","1.0"),"")}}function en(n,r){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",7)(2,"div",68)(3,"div",2)(4,"div",69),t._UZ(5,"img",27),t.qZA(),t.TgZ(6,"div",28)(7,"div",70)(8,"div",30),t._UZ(9,"fa-icon",31),t.qZA(),t.TgZ(10,"div")(11,"h1",32),t._uU(12,"Order Complete!"),t.qZA(),t.TgZ(13,"p",33),t._uU(14,"Thank you for your purchase! Your item is now ready to download."),t.qZA()()(),t.TgZ(15,"div",14)(16,"h2"),t._uU(17,"Create an account:"),t.qZA(),t.TgZ(18,"p"),t._uU(19,"The download link(s) below can "),t.TgZ(20,"strong"),t._uU(21,"only be used once"),t.qZA(),t._uU(22,". If you want future access to your purchase and future updates, create an account by choosing a password below."),t.qZA(),t.TgZ(23,"form",15),t.NdJ("ngSubmit",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.onSubmit())}),t.TgZ(24,"div",16)(25,"div",17),t._UZ(26,"input",18),t.TgZ(27,"div",19),t._uU(28,"Looks good!"),t.qZA(),t.YNc(29,Ne,2,0,"div",20),t.YNc(30,Le,2,0,"div",20),t.qZA(),t.TgZ(31,"div",17),t._UZ(32,"input",21),t.TgZ(33,"div",19),t._uU(34,"Looks good!"),t.qZA(),t.YNc(35,Ye,2,0,"div",20),t.YNc(36,Fe,2,0,"div",20),t.qZA(),t.TgZ(37,"div",22)(38,"button",23),t._uU(39,"Create Account"),t.qZA()()()(),t.YNc(40,Be,7,3,"div",71),t.qZA(),t.TgZ(41,"div",72)(42,"div",35),t._uU(43,"Downloads"),t.qZA(),t.TgZ(44,"div",36),t.YNc(45,He,11,7,"ng-container",37),t.qZA()(),t.TgZ(46,"div",38)(47,"div",35),t._uU(48," Purchase Receipt"),t.TgZ(49,"a",39),t._UZ(50,"fa-icon",40),t._uU(51,"Print"),t.qZA()(),t.TgZ(52,"div",36)(53,"div",41)(54,"div",42),t._uU(55),t.qZA(),t.TgZ(56,"div",43),t._uU(57),t.ALo(58,"receiptDateFormat"),t.qZA()(),t.TgZ(59,"div",44)(60,"div",45)(61,"div",42),t._uU(62,"Item"),t.qZA(),t.TgZ(63,"div",42),t._uU(64,"Price"),t.qZA()()(),t._UZ(65,"hr",46),t.YNc(66,Ke,12,10,"div",47),t._UZ(67,"hr"),t.TgZ(68,"div",48)(69,"div",49),t._uU(70,"Payment Method:"),t.qZA(),t.YNc(71,ze,2,0,"div",50),t.YNc(72,We,2,0,"div",50),t.qZA(),t.YNc(73,Xe,6,6,"div",51),t.YNc(74,tn,6,6,"div",51),t.TgZ(75,"div",52)(76,"div",49),t._uU(77,"Total:"),t.qZA(),t.TgZ(78,"div",53),t._uU(79),t.ALo(80,"currency"),t.qZA()()(),t.TgZ(81,"div",54)(82,"div",52)(83,"div",55)(84,"div",56),t._uU(85,"Customer Details:"),t.qZA(),t._uU(86),t._UZ(87,"br"),t._uU(88),t.qZA(),t.TgZ(89,"div",57)(90,"div",56),t._uU(91,"Seller Information:"),t.qZA(),t._uU(92," Start Bootstrap LLC"),t._UZ(93,"br"),t._uU(94,"https://startbootstrap.com "),t.qZA()()()()()()()(),t.BQk()}if(2&n){const e=t.oxw(3);t.xp6(9),t.Q6J("icon",t.DdM(35,N)),t.xp6(14),t.Q6J("formGroup",e.registerAfterOrderForm),t.xp6(3),t.ekj("is-valid",e.passwordControlValid)("is-invalid",e.passwordControlInvalid),t.xp6(3),t.Q6J("ngIf",e.passwordControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.passwordControl.hasError("minlength")),t.xp6(2),t.ekj("is-valid",e.confirmPasswordControlValid)("is-invalid",e.confirmPasswordControlInvalid),t.xp6(3),t.Q6J("ngIf",e.confirmPasswordControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.registerAfterOrderForm.hasError("passwordMismatch")),t.xp6(2),t.Q6J("disabled",e.registerAfterOrderForm.invali
1d),t.xp6(2),t.Q6J("ngIf",e.emailInUse),t.xp6(5),t.Q6J("ngForOf",e.mappedDownloads),t.xp6(5),t.Q6J("icon",t.DdM(36,L)),t.xp6(5),t.hij("Order ID: ",e.order.id,""),t.xp6(2),t.Oqu(t.lcZ(58,28,e.order.completedDate)),t.xp6(9),t.Q6J("ngForOf",e.order.lineItems),t.xp6(5),t.Q6J("ngIf","PAYPAL"===e.order.completedPaymentMethod),t.xp6(1),t.Q6J("ngIf","STRIPE"===e.order.completedPaymentMethod),t.xp6(1),t.Q6J("ngIf",e.order.discount),t.xp6(1),t.Q6J("ngIf",e.order.discount),t.xp6(5),t.Oqu(t.gM2(80,30,e.order.total/100,"USD","symbol","1.0")),t.xp6(7),t.hij(" ",e.order.name,""),t.xp6(2),t.hij("",e.order.email," ")}}function nn(n,r){if(1&n&&(t.ynx(0),t.YNc(1,De,74,22,"ng-container",0),t.YNc(2,en,95,37,"ng-container",0),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.order.user),t.xp6(1),t.Q6J("ngIf",!e.order.user)}}const x=function(){return["far","long-arrow-left"]};function on(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10),t._UZ(5,"img",79),t.qZA(),t.TgZ(6,"div",12)(7,"h1",80),t._uU(8,"Order Cancelled"),t.qZA(),t.TgZ(9,"p"),t._uU(10,"Say it aint so! You have cancelled this order. If you would like to try again, please return to checkout."),t.qZA(),t.TgZ(11,"a",81),t._UZ(12,"fa-icon",40),t._uU(13,"Return to Checkout"),t.qZA()()()()(),t.BQk()),2&n&&(t.xp6(12),t.Q6J("icon",t.DdM(1,x)))}function rn(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10),t._UZ(5,"img",79),t.qZA(),t.TgZ(6,"div",12)(7,"h1",80),t._uU(8,"Order Cancelled"),t.qZA(),t.TgZ(9,"p"),t._uU(10,"Say it aint so! You have cancelled this order. If you would like to try again, please return to checkout."),t.qZA(),t.TgZ(11,"a",81),t._UZ(12,"fa-icon",40),t._uU(13,"Return to Checkout"),t.qZA()()()()(),t.BQk()),2&n&&(t.xp6(12),t.Q6J("icon",t.DdM(1,x)))}function an(n,r){if(1&n&&(t.ynx(0),t.YNc(1,on,14,2,"ng-container",0),t.YNc(2,rn,14,2,"ng-container",0),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.order.user),t.xp6(1),t.Q6J("ngIf",!e.order.user)}}function cn(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10),t._UZ(5,"img",82),t.qZA(),t.TgZ(6,"div",12)(7,"h1",13),t._uU(8,"Order Refunded"),t.qZA(),t.TgZ(9,"p",14),t._uU(10,"Your order has been successfully refuned. You should see your money returning to your account soon!"),t.qZA()()()()(),t.BQk())}function sn(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10),t._UZ(5,"img",82),t.qZA(),t.TgZ(6,"div",12)(7,"h1",13),t._uU(8,"Order Refunded"),t.qZA(),t.TgZ(9,"p",14),t._uU(10,"Your order has been successfully refuned. You should see your money returning to your account soon!"),t.qZA()()()()(),t.BQk())}function dn(n,r){if(1&n&&(t.ynx(0),t.YNc(1,cn,11,0,"ng-container",0),t.YNc(2,sn,11,0,"ng-container",0),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.order.user),t.xp6(1),t.Q6J("ngIf",!e.order.user)}}function ln(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10),t._UZ(5,"img",83),t.qZA(),t.TgZ(6,"div",12)(7,"h1",80),t._uU(8,"Order Failed!"),t.qZA(),t.TgZ(9,"p"),t._uU(10,"Something went wrong when attempting to complete this transaction. You can return to checkout to try again."),t.qZA(),t.TgZ(11,"a",81),t._UZ(12,"fa-icon",40),t._uU(13,"Return to Checkout"),t.qZA()()()()(),t.BQk()),2&n&&(t.xp6(12),t.Q6J("icon",t.DdM(1,x)))}function un(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10),t._UZ(5,"img",83),t.qZA(),t.TgZ(6,"div",12)(7,"h1",80),t._uU(8,"Order Failed!"),t.qZA(),t.TgZ(9,"p"),t._uU(10,"Something went wrong when attempting to complete this transaction. You can return to checkout to try again."),t.qZA(),t.TgZ(11,"a",81),t._UZ(12,"fa-icon",40),t._uU(13,"Return to Checkout"),t.qZA()()()()(),t.BQk()),2&n&&(t.xp6(12),t.Q6J("icon",t.DdM(1,x)))}function pn(n,r){if(1&n&&(t.ynx(0),t.YNc(1,ln,14,2,"ng-container",0),t.YNc(2,un,14,2,"ng-container",0),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.order.user),t.xp6(1),t.Q6J("ngIf",!e.order.user)}}function _n(n,r){if(1&n&&(t.ynx(0),t.YNc(1,Ie,3,2,"ng-container",0),t.YNc(2,nn,3,2,"ng-container",0),t.YNc(3,an,3,2,"ng-container",0),t.YNc(4,dn,3,2,"ng-container",0),t.YNc(5,pn,3,2,"ng-container",0),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf","PENDING"===e.order.status),t.xp6(1),t.Q6J("ngIf","COMPLETED"===e.order.status),t.xp6(1),t.Q6J("ngIf","CANCELLED"===e.order.status),t.xp6(1),t.Q6J("ngIf","REFUNDED"===e.order.status),t.xp6(1),t.Q6J("ngIf","FAILED"===e.order.status)}}function gn(n,r){1&n&&(t.ynx(0),t.TgZ(1,"div",84)(2,"div",2)(3,"sbpro-page-card",3)(4,"div",4)(5,"div",85),t._uU(6,"Please wait while we retreive your order..."),t.qZA(),t.TgZ(7,"div",86)(8,"span",87),t._uU(9,"Loading..."),t.qZA()()()()()(),t.BQk())}let Y=(()=>{class n{constructor(e,o,i,a,l,T,A){this.route=e,this.orderService=o,this.changeDetectorRef=i,this.paymentService=a,this.overlayService=l,this.authService=T,this.fb=A,this.notFound=!1,this.unableToLoad=!1,this.reloadAttempts=0,this.loading=!0,this.emailInUse=!1,this.registerAfterOrderForm=this.fb.group({password:["",[s.kI.required,s.kI.minLength(8)]],confirmPassword:["",[s.kI.required]]},{validator:this._checkPasswords})}ngOnInit(){this.loadOrder();const e=this.route.snapshot.paramMap.get("orderID");if(!e)throw new Error("ORDER_ID_PARAMETER_NOT_SET");this.orderID=e}loadOrder(){this._loadOrder$().subscribe(e=>this._handleLoadOrder(e))}_loadOrder$(){return this.orderService.loadOrder$(this.route.snapshot.paramMap.get("orderID")).pipe((0,_e.h)(e=>!!e),(0,ge.U)(e=>e),(0,m.K)(e=>(this.notFound=!0,this.loading=!1,this.changeDetectorRef.detectChanges(),(0,g._)(()=>e))))}_handleLoadOrder(e){this.order=e,this.route.snapshot.queryParams.status&&this._setStatus(this.route.snapshot.queryParams.status),this.order.status===_.OrderStatus.assembling?this.reloadAttempts>10?(this.unableToLoad=!0,this.loading=!1):(this.reloadAttempts++,setTimeout(()=>{this.loadOrder()},1e3)):(this.loading=!1,this.mappedDownloads=this.orderService.mapDownloads(e)),this.changeDetectorRef.detectChanges()}download(e,o){this.overlayService.show(pe.n.download,"",this.paymentService.downloadItem$({orderID:this.orderID,downloadID:e},o).pipe((0,me.b)(i=>{"DONE"===i.state&&this.loadOrder()}),(0,m.K)(i=>(this.overlayService.hide(),(0,g._)(()=>i)))))}onSubmit(){return"VALID"===this.registerAfterOrderForm.status&&this.authService.registerAfterOrder$({orderID:this.order.id,password:this.registerAfterOrderForm.value.password}).subscribe(e=>console.log(e),e=>{"EMAIL_IN_USE"===e.error.message&&(this.emailInUse=!0,this.changeDetectorRef.markForCheck())}),(0,y.Z)(this.registerAfterOrderForm.controls,e=>{e.markAllAsTouched()})}_checkPasswords(e){return e.controls.password.value===e.controls.confirmPassword.value?null:{passwordMismatch:!0}}_setStatus(e){switch(e.toLowerCase()){case"pending":this.order.status=_.OrderStatus.pending;break;case"completed":this.order.status=_.OrderStatus.completed;break;case"cancelled":this.order.status=_.OrderStatus.cancelled;break;case"refunded":this.order.status=_.OrderStatus.refunded;break;case"failed":this.order.status=_.OrderStatus.failed;break;default:console.log(`Order Stats: ${e} not recognized`)}}get passwordControl(){return this.registerAfterOrderForm.get("password")}get passwordControlValid(){return this.passwordControl.touched&&!this.passwordControlInvalid}get passwordControlInvalid(){return this.passwordControl.touched&&(this.passwordControl.hasError("required")||this.passwordControl.hasError("minlength"))}get confirmPasswordControl(){return this.registerAfterOrderForm.get("confirmPassword")}get confirmPasswordControlValid(){return this.confirmPasswordControl.touched&&!this.confirmPasswordControlInvalid}get confirmPasswordControlInvalid(){return this.confirmPasswordControl.touched&&(this.confirmPasswordControl.hasError("required")||this.confirmPasswordControl.hasError("minlength")||this.registerAfterOrderForm.hasError("passwordMismatch"))}static#t=this.\u0275fac=function(o){return new(o||n)(t.Y36(p.gz),t.Y36(u.px),t.Y36(t.sBO),t.Y36(u.te),t.Y36(u.F0),t.Y36(fe.e8),t.Y36(s.qu))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["sbw-order-info"]],decls:4,vars:4,consts:[[4,"ngIf"],["data-cy","orderNotFound",1,"container","pt-5"],[1,"row","justify-content-center"],["size","medium"],[1,"card-body","p-5","text-center"],["data-cy","unabelToLoadOrder",1,"container","pt-5"],[3,"href"],[1,"mt-4"],[1,"container"],[1,"row","align-items-center"],[1,"col-lg-4","d-none","d-lg-block"],["src","/assets/img/freepik/time-pana.svg","alt","",1,"img-fluid","mb
1-4",2,"max-width","20rem"],[1,"col-lg-8"],[1,"mb-1"],[1,"mb-4"],[3,"formGroup","ngSubmit"],[1,"row","mb-2"],[1,"col-12","col-md","mb-3","mb-md-0"],["data-cy","passwordInput","type","password","placeholder","Enter a password...","formControlName","password",1,"form-control"],[1,"valid-feedback"],["class","invalid-feedback",4,"ngIf"],["data-cy","confirmPasswordInput","type","password","placeholder","Confirm password...","formControlName","confirmPassword",1,"form-control"],[1,"col-12","col-md-auto"],["data-cy","registerAfterOrderButton","type","submit",1,"btn","btn-primary","fw-500",3,"disabled"],[1,"invalid-feedback"],["data-cy","orderCompletedUser",1,"container"],[1,"col-xl-4","d-none","d-xl-block","d-print-none"],["src","/assets/img/freepik/winners-pana.svg","alt","",1,"img-fluid","mb-4",2,"max-width","20rem"],[1,"col-xl-8","col-lg-10"],[1,"mb-4","d-flex","align-items-center","d-print-none"],[1,"me-3"],["size","2x",1,"text-success",3,"icon"],[1,"mb-0","text-success"],[1,"text-success","mb-0"],[1,"card","border","mb-4","d-print-none"],[1,"card-header"],[1,"card-body"],[4,"ngFor","ngForOf"],[1,"card","card-header-actions","border","mb-4"],["href","javascript:window.print()",1,"btn","btn-primary-soft","btn-sm","text-primary","fw-500","d-print-none"],[1,"me-2",3,"icon"],[1,"text-center","mb-4"],[1,"small"],[1,"text-xs"],[1,"d-none","d-lg-block","text-muted","fst-italic"],[1,"d-flex","justify-content-between","align-items-center"],[1,"mt-1","d-none","d-lg-block"],["class","d-flex flex-column flex-lg-row justify-content-between align-items-lg-center mb-4",4,"ngFor","ngForOf"],[1,"d-flex","flex-column","flex-lg-row","justify-content-between","align-items-lg-center","mb-2"],[1,"small","mb-2","mb-lg-0","fst-italic","text-muted"],["class","small",4,"ngIf"],["class","d-flex flex-column flex-lg-row justify-content-between align-items-lg-center",4,"ngIf"],[1,"d-flex","flex-column","flex-lg-row","justify-content-between","align-items-lg-center"],["data-cy","currentOrderTotal",1,"small","fw-600"],[1,"card-footer"],[1,"small","mb-2","mb-lg-0"],[1,"text-xs","text-muted","mb-1"],[1,"small","text-lg-end"],[1,"text-center","mb-5","d-print-none","small"],["routerLink","/account/invoices"],[1,"mb-3","mb-lg-0"],[1,"fw-500"],["routerLink","/account/downloads",1,"btn","btn-primary","fw-500","flex-shrink-0"],[1,"d-flex","flex-column","flex-lg-row","justify-content-between","align-items-lg-center","mb-4"],[1,"mb-2","mb-lg-0"],[3,"routerLink"],["data-cy","currentOrderSubTotal",1,"small","fw-600"],["data-cy","currentOrderDiscount",1,"small","fw-600"],["data-cy","orderCompletedAnonymous",1,"container"],[1,"col-xl-4","d-none","d-xl-block"],[1,"mb-4","d-flex","align-items-center"],["class","text-red text-start mb-4",4,"ngIf"],[1,"card","border","mb-4"],[1,"text-red","text-start","mb-4"],["data-cy","linkOrderHREF","routerLink","/account/orders",1,"fw-bold",3,"queryParams"],["class","d-flex flex-column flex-lg-row align-items-lg-center",4,"ngIf"],[1,"d-flex","flex-column","flex-lg-row","align-items-lg-center"],[1,"text-lg-end","small","me-3","mb-3","mb-lg-0"],[1,"btn","btn-primary-soft","text-primary","fw-500","flex-shrink-0",3,"click"],["src","/assets/img/freepik/cancelled-pana.svg","alt","",1,"img-fluid","mb
1-4","me-4",2,"max-width","20rem"],[1,"mb-1","text-danger"],["routerLink","/shop/checkout",1,"btn","btn-primary","fw-500"],["src","/assets/img/freepik/refund-pana.svg","alt","",1,"img-fluid","mb-4",2,"max-width","20rem"],["src","/assets/img/freepik/error-pana.svg","alt","",1,"img-fluid","mb-4","me-4",2,"max-width","20rem"],["data-cy","retrievingOrder",1,"container","pt-5"],[1,"small","mb-3"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(o,i){1&o&&(t.YNc(0,xe,6,0,"ng-container",0),t.YNc(1,Ze,14,2,"ng-container",0),t.YNc(2,_n,6,5,"ng-container",0),t.YNc(3,gn,10,0,"ng-container",0)),2&o&&(t.Q6J("ngIf",i.notFound),t.xp6(1),t.Q6J("ngIf",i.unableToLoad),t.xp6(1),t.Q6J("ngIf",i.order),t.xp6(1),t.Q6J("ngIf",i.loading))},dependencies:[d.sg,d.O5,p.rH,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,he.$,f.BN,d.i8,d.rS,d.H9,ve.QL],changeDetection:0})}return n})(),mn=(()=>{class n{static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({providers:[...H,...$],imports:[d.ez,p.Bz,s.UX,s.u5,R.nC,j.A]})}return n})(),F=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["sbw-shop"]],decls:8,vars:0,consts:[[1,"page-header-shop"],[1,"container"],[1,"d-flex","align-items-center","justify-content-center"],["routerLink","/",1,"brand"],["src","/assets/img/sb-logo.svg","alt","Start Bootstrap Logo",1,"brand-img"],[1,"brand-name","ms-2"]],template:function(o,i){1&o&&(t.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"a",3),t._UZ(4,"img",4),t.TgZ(5,"span",5),t._uU(6,"Start Bootstrap"),t.qZA()()()()(),t._UZ(7,"router-outlet"))},dependencies:[p.lC,p.rH],styles:["[_nghost-%COMP%]{position:relative;background-color:#f2f6fc;display:block;min-height:100vh}.page-header-shop[_ngcontent-%COMP%]{height:93px;border-bottom:1px solid #e0e5ec;display:flex;align-items:center;position:relative;z-index:1;background-color:#fff}.page-header-shop[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]{display:block;text-decoration:none}.page-header-shop[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]   .brand-img[_ngcontent-%COMP%]{height:3.5rem}.page-header-shop[_ngcontent-%COMP%]   .brand[_ngcontent-%COMP%]   .brand-name[_ngcontent-%COMP%]{color:#000;font-size:1.2rem;font-weight:600}"],changeDetection:0})}return n})();var fn=c(2723),E=c(1676),Z=c(8592);const B=[{path:"",canActivate:[],canActivateChild:[E.Lq,fn.a],component:F,children:[{path:"",canActivate:[E.XT],component:J,resolve:{dynamicRouteData:Z.c}},{path:"checkout",canActivate:[],component:P,resolve:{dynamicRouteData:Z.c}},{path:"cart",canActivate:[],component:Q,resolve:{dynamicRouteData:Z.c}},{path:"order-info/:orderID",canActivate:[],component:Y,resolve:{dynamicRouteData:Z.c},data:{dynamicRouteDataKey:"shopOrderInfo"}}]}];let hn=(()=>{class n{static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({imports:[mn,p.Bz.forChild(B),p.Bz]})}return n})()}}]);
2//# sourceMappingURL=src_modules_shop_shop-routing_module_ts.d5197cdf5f6a45ad.js.map

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.