1"use strict";(self.webpackChunkubc_consumer_main=self.webpackChunkubc_consumer_main||[]).push([[2119],{32119:(N,h,i)=>{i.r(h),i.d(h,{CheckoutAddonsModule:()=>P});var c=i(60177),m=i(89125),C=i(73955),t=i(54438);let I=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[c.MD,m.oW]})}}return n})();var g=i(7901),k=i(98300),f=i(92427),d=i(99227),r=i(27876),T=i(21462),v=i(31635),O=i(49894),A=i(86369);function S(n,s){if(1&n){const e=t.RV6();t.j41(0,"div",2)(1,"lla-add-on",3),t.bIt("addOnUpdatedStepperValue",function(a){const u=t.eBV(e).$implicit,_=t.XpG(2);return t.Njj(_.updateBasketContent(a.value,u,a.isIncrement))}),t.k0s()()}if(2&n){const e=s.$implicit,o=t.XpG(2);t.R7$(),t.Y8G("imgUrl",(null==e.images[0]?null:e.images[0].url)||"")("altTag",(null==e.images[0]?null:e.images[0].altText)||"")("addOnName",e.name)("addOnPrice",e.discountedPrice?e.formattedDiscountedPrice:e.formattedPrice)("addOnAdditionalInfo",e.discountedPeriod?o.descBefore+e.discountedPeriod+o.descAfter:o.descNull)("addOnDescription",e.additionalDescriptionInclude?e.description+"\n"+e.additionalDescriptionInclude:e.description)("stepperId",e.code)("stepperDisabled",!1)("stepperCurrentValue",e.quantity||0)("stepperRangeValue",1)("stepperMaxLimit",e.maxOrderQuantity)("stepperMinLimit",0)}}function D(n,s){if(1&n&&(t.qex(0),t.DNE(1,S,2,12,"div",1),t.bVm()),2&n){const e=s.ngIf;t.R7$(),t.Y8G("ngForOf",e)}}let l=class p{constructor(s,e){this.checkoutService=s,this.translateService=e,this.descBefore="",this.descAfter="",this.descNull=""}ngOnInit(){this.checkoutService.loadAddons(),this.addonList$=this.checkoutService.retrieveBuiltAddonList(),this.descBefore=this.translateService.getTranslation("ADDON_LIST.PERIOD_DESCRIPTION_BEFORE"),this.descAfter=this.translateService.getTranslation("ADDON_LIST.PERIOD_DESCRIPTION_AFTER"),this.descNull=this.translateService.getTranslation("ADDON_LIST.PERIOD_NULL_DESCRIPTION")}updateBasketContent(s,e,o=!1){this.checkoutService.updateAddons({...e,quantity:s}),this.checkoutService.addOrRemoveProductData(o,e.code,e.name,e.price)}static{this.\u0275fac=function(e){return new(e||p)(t.rXU(r._),t.rXU(d.vXy))}}static{this.\u0275cmp=t.VBU({type:p,selectors:[["lla-checkout-addon-list"]],standalone:!1,decls:2,vars:3,consts:[[4,"ngIf"],["class","llac-addon-container",4,"ngFor","ngForOf"],[1,"llac-addon-container"],[3,"addOnUpdatedStepperValue","imgUrl","altTag","addOnName","addOnPrice","addOnAdditionalInfo","addOnDescription","stepperId","stepperDisabled","stepperCurrentValue","stepperRangeValue","stepperMaxLimit","stepperMinLimit"]],template:function(e,o){1&e&&(t.DNE(0,D,2,1,"ng-container",0),t.nI1(1,"async")),2&e&&t.Y8G("ngIf",t.bMT(1,1,o.addonList$))},dependencies:[c.Sq,c.bT,A.Q,c.Jj],styles:[".llac-addon-container{padding-bottom:32px}.llac-add-on__desc{white-space:pre-line}\n"],encapsulation:2})}};l=(0,v.__decorate)([(0,O.d)(),(0,v.__metadata)("design:paramtypes",[r._,d.vXy])],l);var y=i(73284);const L=[{path:"",component:(()=>{class n extends d.oqW{constructor(e,o){super(),this.checkoutService=e,this.checkoutProgressService=o}ngOnInit(){this.checkoutConfig=this.checkoutProgressService.checkoutConfiguration(f.XHp.Addons,!0)}handleSubmitClick(){this.checkoutProgressService.continueToStep(this.checkoutService.getCheckoutStepsDetails(f.XHp.Addons).nextStep)}static{this.\u0275fac=function(o){return new(o||n)(t.rXU(r._),t.rXU(T.p))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["lla-checkout-addons"]],standalone:!1,features:[t.Vt3],decls:10,vars:9,consts:[[1,"llac-step3-container"],[1,"llac-step3-container__title","h4"],[1,"llac-step3-container__buttons"],["types","primary","buttonSize","large",3,"clickHandler","text"],["types","link","buttonSize","large",3,"clickHandler","text"]],template:function(o,a){1&o&&(t.j41(0,"div",0)(1,"h4",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"lla-checkout-addon-list"),t.j41(5,"div",2)(6,"lla-button",3),t.nI1(7,"translate"),t.bIt("clickHandler",function(){return a.handleSubmitClick()}),t.k0s(),t.j41(8,"lla-button",4),t.nI1(9,"translate"),t.bIt("clickHandler",function(){return a.handleSubmitClick()}
1),t.k0s()()()),2&o&&(t.R7$(2),t.SpI(" ",t.bMT(3,3,"CHECKOUT_ADDITIONAL.TITLE")," "),t.R7$(4),t.Y8G("text",t.bMT(7,5,"CHECKOUT_ADDITIONAL.CONFIRM_BTN_TEXT")),t.R7$(2),t.Y8G("text",t.bMT(9,7,"CHECKOUT_ADDITIONAL.SKIP_BTN_TEXT")))},dependencies:[l,y.X,C.D9],styles:[".llac-step3-container__title[_ngcontent-%COMP%]{margin:32px 0;line-height:40px;color:#000}@media only screen and (max-width: 767px){.llac-step3-container__title[_ngcontent-%COMP%]{text-align:center;font-size:24px;line-height:32px}}.llac-step3-container__buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.llac-step3-container__buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:first-child){margin-top:10px}"]})}}return n})(),canLoad:[k.uk]}];let x=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[g.iI.forChild(L),g.iI]})}}return n})(),P=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[c.MD,I,m.oW,C.h,x]})}}return n})()}}]);
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.