1import{a as dt,b as ut,c as mt,d as gt}from"./chunk-SIM67O3T.js";import{a as pt}from"./chunk-C6IDSRMJ.js";import{a as rt}from"./chunk-FRKIJOCI.js";import{a as ct}from"./chunk-MDUQBHLH.js";import{a as lt}from"./chunk-FSKBPWGY.js";import{b as oe,c as st}from"./chunk-Z4U7P5WN.js";import"./chunk-2TAWK5BM.js";import{a as at}from"./chunk-SOTJAFJ4.js";import{a as tt}from"./chunk-KLTUES4U.js";import{a as it}from"./chunk-V4IFKKOY.js";import"./chunk-GLMEDGOH.js";import"./chunk-XZ7Z6ERF.js";import"./chunk-WKGN24GM.js";import{a as ot}from"./chunk-IEV3AVEC.js";import"./chunk-KFFZK36I.js";import"./chunk-WMW4IAL2.js";import"./chunk-EMCE6EVZ.js";import"./chunk-2IE75TAM.js";import"./chunk-ORXUEFFS.js";import{a as nt}from"./chunk-RUT6FD7O.js";import"./chunk-5RR4SEXR.js";import"./chunk-DFG22IZU.js";import"./chunk-ATNOAVDW.js";import"./chunk-HCIVBWAH.js";import{a as Ke}from"./chunk-7AJKFOEE.js";import{b as et}from"./chunk-YJWTAT44.js";import"./chunk-XG66ELLA.js";import"./chunk-WQOYCJCN.js";import{a as Ye}from"./chunk-MUUT3CMA.js";import"./chunk-7QESONWS.js";import{h as Xe}from"./chunk-JEH3B2MD.js";import"./chunk-HL27X4PX.js";import{c as Ze,d as Je}from"./chunk-QPVJBQNK.js";import{g as ze}from"./chunk-KRKLOAW6.js";import{a as Ae,c as Ve,e as X,f as Re,g as je,h as We,m as Qe,n as He,p as qe,s as Ue,t as $e,w as Ge,y as Le}from"./chunk-2R4AZB5W.js";import"./chunk-OFX755BC.js";import"./chunk-BYXBJQAS.js";import"./chunk-NMGI7OHJ.js";import"./chunk-HT2STO7B.js";import{a as De,b as Me,c as Be,d as Z,e as Ne,f as J,h as Oe,i as O}from"./chunk-JCPUWVFC.js";import{b as Ee}from"./chunk-MCQML6YT.js";import{a as k,b as K}from"./chunk-XNXLFDZX.js";import"./chunk-KELMSLCR.js";import"./chunk-N6W3AF2G.js";import"./chunk-IENL4UJA.js";import{b as Fe,d as z,e as N}from"./chunk-JLWCQ6UT.js";import{H as G,K as Te,V as L}from"./chunk-P4C42LQP.js";import"./chunk-RZZCZ2VH.js";import{k as Ie,l as be,m as B,q as xe,u as we,w as F}from"./chunk-Z7IUSDSQ.js";import{Ac as V,C as se,Cf as W,Db as U,Ee as P,Fa as h,Fe as fe,H as le,He as R,Ie as j,Je as r,Jh as ke,Kd as g,Ke as a,Le as v,Pe as w,Qa as q,Ra as T,Sa as ue,Vf as d,Wf as _,Xf as f,Yf as $,fe as E,ff as C,fi as ie,gi as ye,hf as c,hg as Ce,ic as ge,ig as M,ka as ce,kb as y,lb as I,ma as pe,oa as de,og as ee,pe as l,pg as _e,re as S,te as Y,ub as me,vf as ve,vg as u,wf as Se,wg as m,xd as he,xf as Pe,xg as Q,yg as te,zc as n}from"./chunk-SRTQBDBP.js";import{a as yt}from"./chunk-EJD3L6HM.js";import{a as ae,g as kt}from"./chunk-T7NDVU76.js";var ft=kt(yt());function It(i,s){i&1&&v(0,"app-delivery-methods",null,0)}var vt=(()=>{class i{constructor(){this.subscriptions=[],this.steps=[],this.individGeneralService=h(J),this.activatedRoute=h(G),this.router=h(L),this.sessionStorageService=h(K),this.stepsService=h(Z),this.sharedService=h(O)}ngOnInit(){this.ShowOrHideDeliveryMethodPopUp(),this.getStepId(),this.setServiceTypeInSessionStorage(),this.getAllStepsForStepsHeader(),this.sharedService.setActiveComponent("IndividualContract.IndividualTitle")}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.sharedService.setCurrentStep(""),this.removeStepInfoFromSessionStorage(),this.sharedService.setActiveComponent("")}removeStepInfoFromSessionStorage(){this.sessionStorageService.removeItem(k.currentStep),this.sessionStorageService.removeItem(k.stepId)}setServiceTypeInSessionStorage(){this.sessionStorageService.ServiceType=Be.IndividualContractReq}getSteps(e){if(!Array.isArray(e)){console.error("Expected an array but received:",e);return}e=e.filter(t=>t.isVisible).sort((t,o)=>t.stepOrder-o.stepOrder),e.forEach(t=>{t.stepKeyword&&this.steps.push(t.stepKeyword)}),this.steps=[...new Set(this.steps)]}getAllStepsForStepsHeader(){this.subscriptions.push(this.stepsService.getSteps().subscribe({next:e=>{this.getSteps(e)},error:e=>{ft.default.fire({icon:"info",text:e.error.message}).then(()=>{this.router.navigate(["/"])})}}))}getStepDetailsAndOpenNextStep(){this.sessionStorageService.indvContractObject||this.subscriptions.push(this.stepsService.getStepDetailsByActionName(this.sessionStorageService.ServiceType||1,this.currentStep,this.stepId
1).subscribe(e=>{e&&this.sharedService.openNextStep({stepId:this.stepId,stepDetailsVm:e})}))}getStepId(){this.subscriptions.push(this.activatedRoute.queryParams.subscribe(e=>{this.stepId=e.stepId,this.stepId&&(this.sessionStorageService.stepId=this.stepId),this.stepId&&this.resolveCurrentStepAndOpenNextOnce()}))}resolveCurrentStepAndOpenNextOnce(){let e=this.sessionStorageService.currentStep;if(e){this.applyCurrentStep(e),this.getStepDetailsAndOpenNextStep();return}this.subscriptions.push(this.sharedService.currentStepSubject$.pipe(se(t=>!!t&&t!==""),le(1)).subscribe(t=>{this.applyCurrentStep(t),this.getStepDetailsAndOpenNextStep()}))}applyCurrentStep(e){if(typeof e=="string"&&e.startsWith("U2FsdGVkX1"))try{this.currentStep=this.sessionStorageService.decrypt(e)||e}catch{this.currentStep=e}else this.currentStep=e}ShowOrHideDeliveryMethodPopUp(){this.subscriptions.push(this.individGeneralService.getRenderDeliverMethod().subscribe(e=>{this.showDeliveryMethodPopUp=e}))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=T({type:i,selectors:[["app-individual"]],standalone:!0,features:[M],decls:7,vars:2,consts:[["deliveryMethod",""],[1,"individual"],[1,"my-5"],[1,"container"],[3,"currentStep","data"],[1,"mt-4"]],template:function(t,o){t&1&&(r(0,"div",1)(1,"div",2)(2,"div",3)(3,"app-steps-header",4),C("currentStep",function(b){return o.currentStep=b}),a(),r(4,"div",5),v(5,"router-outlet"),g(6,It,2,0,"app-delivery-methods"),a()()()()),t&2&&(n(3),l("data",o.steps),n(3),P(6,o.showDeliveryMethodPopUp?6:-1))},dependencies:[pt,Te,N,F,lt]})}}return i})();var A=function(i){return i[i.MonthlyQuotas=0]="MonthlyQuotas",i[i.WeeklyQuotas=11111]="WeeklyQuotas",i}(A||{});function bt(i,s){if(i&1&&(r(0,"div",22),d(1),a()),i&2){let e=c(2);n(),f(" ",e.package.individualDiscount.description," ")}}function xt(i,s){if(i&1&&(r(0,"div",21),g(1,bt,2,1,"div",22),r(2,"div",23),d(3),u(4,"translate"),u(5,"fixedNumber"),u(6,"number"),r(7,"span"),d(8),u(9,"translate"),a()()()),i&2){let e=c();n(),P(1,e.package.individualDiscount!=null&&e.package.individualDiscount.description&&e.isPromotion?1:-1),n(2),$(" ",m(4,4,"hourly.saveAmount")," ",Q(6,8,m(5,6,e.package.discount),"1.2-2")," "),n(5),_(m(9,11,"hourly.sar"))}}function wt(i,s){if(i&1&&(r(0,"div",15)(1,"span",24),d(2),u(3,"translate"),a(),r(4,"span",25),d(5),u(6,"fixedNumber"),u(7,"number"),a()()),i&2){let e=c();n(2),f(" ",m(3,2,"instead of")," "),n(3),f(" ",Q(7,6,m(6,4,e.package.packagePriceWithVat),"1.2-2"),"")}}function Tt(i,s){if(i&1&&(r(0,"span",30),d(1),u(2,"numberFormat"),a()),i&2){let e=c(3).$implicit,t=c(2);S("textColor",t.isPromotion)("text-black",!t.isPromotion),n(),f("",te(2,5,t.package[e],"round",t.packageProperties[e].round)," ")}}
1function Ft(i,s){if(i&1&&(r(0,"span",30),d(1),u(2,"numberFormat"),a()),i&2){let e=c(3).$implicit,t=c(2);S("textColor",t.isPromotion)("text-black",!t.isPromotion),n(),_(te(2,5,t.package[e],"floor",t.packageProperties[e].floor))}}function Et(i,s){if(i&1&&(r(0,"span",30),d(1),u(2,"number"),a()),i&2){let e=c(3).$implicit,t=c(2);S("textColor",t.isPromotion)("text-black",!t.isPromotion),n(),_(Q(2,5,t.package[e],"1.2-2"))}}function Dt(i,s){if(i&1&&(r(0,"span",30),d(1),a()),i&2){let e=c(3).$implicit,t=c(2);S("textColor",t.isPromotion)("text-black",!t.isPromotion),n(),_(t.package[e])}}function Mt(i,s){if(i&1&&(r(0,"span",30),d(1),u(2,"translate"),a()),i&2){let e=c(5);S("textColor",e.isPromotion)("text-black",!e.isPromotion),n(),_(m(2,5,"IndividualContractReq.ChoosePricing.day"))}}function Bt(i,s){if(i&1&&(r(0,"span",30),d(1),u(2,"translate"),a()),i&2){let e=c(3).$implicit,t=c(2);S("textColor",t.isPromotion)("text-black",!t.isPromotion)("props",e!="finalPriceToPay"),n(),f("",m(2,7,"sar")," ")}}function Nt(i,s){if(i&1&&(r(0,"span",30),d(1," %"),a()),i&2){let e=c(3).$implicit,t=c(2);S("textColor",t.isPromotion)("text-black",!t.isPromotion)("props",e!="finalPriceToPay")("line",e=="packagePriceWithVat"&&t.package.discount)}}function Ot(i,s){if(i&1&&(r(0,"div",28)(1,"div",29)(2,"span",30),d(3),u(4,"translate"),a(),r(5,"span"),d(6,":"),a()(),r(7,"div")(8,"span",30),g(9,Tt,3,9,"span",31)(10,Ft,3,9,"span",31)(11,Et,3,8,"span",31)(12,Dt,2,5,"span",31)(13,Mt,3,7,"span",31),a(),g(14,Bt,3,9,"span",32)(15,Nt,2,8,"span",33),a()()),i&2){let e=c(2).$implicit,t=c(2);n(),S("textColor",t.isPromotion)("text-black",!t.isPromotion),n(),S("textColor",t.isPromotion)("text-black",!t.isPromotion),n(),_(m(4,24,"IndividualContractReq.ChoosePricing."+e)),n(5),S("props",e!="finalPriceToPay")("line-through",e=="packagePriceWithVat"&&t.package.discount)("textColor",t.isPromotion)("text-black",!t.isPromotion),n(),P(9,(t.packageProperties[e]==null?null:t.packageProperties[e].type)=="currency"&&t.package[e]!=null&&t.packageProperties[e].round?9:-1),n(),P(10,(t.packageProperties[e]==null?null:t.packageProperties[e].type)=="currency"&&t.package[e]!=null&&t.packageProperties[e].floor?10:-1),n(),P(11,(t.packageProperties[e]==null?null:t.packageProperties[e].type)=="currency"&&t.package[e]!=null&&!t.packageProperties[e].floor&&!t.packageProperties[e].round?11:-1),n(),P(12,(t.packageProperties[e]==null?null:t.packageProperties[e].type)!="currency"?12:-1),n(),P(13,e=="periodinDaiys"?13:-1),n(),P(14,(t.packageProperties[e]==null?null:t.packageProperties[e].type)=="currency"?14:-1),n(),P(15,(t.packageProperties[e]==null?null:t.packageProperties[e].type)=="percent"?15:-1)}}function At(i,s){if(i&1&&(r(0,"div",27),g(1,Ot,16,26,"div",28),a()),i&2){let e=c().$implicit,t=c(2);n(),P(1,t.package[e]!=0&&t.package[e]?1:-1)}}function Vt(i,s){if(i&1&&g(0,At,2,1,"div",27),i&2){let e=s.$implicit,t=c(2);P(0,t.package[e]!=0&&t.package[e]&&!(e==="packagePriceAfterDiscount"&&(!t.package.discount||t.package.discount===0))?0:-1)}}function Rt(i,s){if(i&1&&(r(0,"div",16)(1,"div",26),R(2,Vt,1,1,null,null,fe),a()()),i&2){let e=c();n(2),j(e.objectKeys(e.packageProperties))}}var St=(()=>{class i{constructor(){this.checked=!1,this.isPromotion=!1,this.objectKeys=Object.keys,this.sharedService=h(O)}ngOnInit(){this.checkDiscountValue(this.package),this.finalPrice=this.package?.finalPriceToPay}isDisountPercentGreaterThanZero(e){return e.discountPercent!=null&&parseFloat(e.discountPercent)>0}setPackagePriceAfterDiscountPerecent(e){e.packagePriceAfterDiscount=parseFloat(e.packagePrice)-parseFloat(e.packagePrice)*(parseFloat(e.discountPercent)/100)}isDiscountGreaterThanZero(e){return e.discount!=null&&parseFloat(e.discount)>0}setPackagePriceAfterDiscount(e){e.packagePriceAfterDiscount=parseFloat(e.packagePrice)-parseFloat(e.discount)}checkDiscountValue(e){return this.isDisountPercentGreaterThanZero(e)&&this.setPackagePriceAfterDiscountPerecent(e),this.isDiscountGreaterThanZero(e)&&this.setPackagePriceAfterDiscount(e),this.package=e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=T({type:i,selectors:[["app-individual-package"]],inputs:{package:"package",packageProperties:"packageProperties",checked:"checked",isPromotion:"isPromotion"},standalone:!0,features:[M],decls:29,vars:29,consts:[[1,"card-container","h-100"],[1,"card","py-4","h-100","c-shadow","cursor-p","main-card"],[1,"h-100","packageWithNoPromotion"],[1,"d-flex","flex-column","h-100","w-100"],[1,"package-head","w-100","pb-0"],[1,"d-flex","flex-column","justify-content-between","gap-3","promo-packageName","px-0","promoAfter"],[1,"shrink-pachage-name"],[1,"header","p-3"],[1,"body","flex-grow-1"],["class","discount-badges",4,"ngIf"],[1,"p-3","pb-1"],[1,"d-flex","flex-column","gap-1","justify-content-between"],[1,"d-flex","flex-wrap"],[1,"fs-20","fw-bold","m-auto","textColor","mx-1"],[1,"fs-16"],[1,""],[1,"pt-12","pb-15","px-3"],[1,"py-3","px-3","mb-2","d-flex","justify-content-center","align-items-center"],[1,"check-package"],["src","assets/images/core/check.svg"],["src","assets/images/core/checked.svg"],[1,"discount-badges"],[1,"discount-badge","discount-desc","fs-14","fw-bold"],[1,"discount-badge","fs-16","fw-bold"],[1,"text-6A6A6A","fs-14","f-w-regular","mx-1","d-inline-block","mx-1"],[1,"d-inline-block","custom-line-through","fs-20","fw-bold","text-9A9A9A"],[1,"d-flex","flex-column","h-auto"],[1,"d-flex","gap-1","flex-wrap","align-items-center","my-1"],[1,"fs-p","fw-regular","item_img","d-flex","flex-lg-row","flex-wrap","gap-1","align-items-center","align-items-md-start","mb-1"],[1,"d-flex","align-items-center","gap-1"],[1,"fs-16","f-w-regular"],[1,"fs-16","f-w-regular",3,"textColor","text-black"],[1,"fs-16","f-w-regular",3,"textColor","text-black","props"],[1,"fs-16","f-w-regular",3,"textColor","text-black","props","line"]],template:function(t,o){t&1&&(r(0,"div",0)(1,"div",1)(2,"section",2)(3,"div",3)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"span"),d(10),a()()()()(),r(11,"div",8),g(12,xt,10,13,"div",9),r(13,"div",10)(14,"div",11)(15,"div",12)(16,"span",13),d(17),u(18,"fixedNumber"),u(19,"number"),a(),r(20,"span",14),d(21),u(22,"translate"),a(),g(23,wt,8,9,"div",15),a()()(),g(24,Rt,4,0,"div",16),a()(),r(25,"div",17)(26,"div",18),v(27,"img",19)(28,"img",20),a()()()()()()),t&2&&(n(),S("border-0",!o.isPromotion)("promotion-card",o.isPromotion),n(8),S("text-white",!o.isPromotion)("text-black",o.isPromotion),n(),f(" ",o.package.packageDisplayName||o.package.name," "),n(2),l("ngIf",o.package.discount>0),n(5),_(Q(19,24,m(18,22,o.package.finalPackagePrice),"1.2-2")),n(3),S("textColor",o.isPromotion)("text-black",!o.isPromotion),n(),_(m(22,27,"hourly.sar")),n(2),P(23,o.package.discount>0?23:-1),n(),P(24,o.packageProperties?24:-1),n(3),S("d-none",o.checked),n(),S("d-none",!o.checked))},dependencies:[N,z,F,B,we,Ke,ot],styles:["[_nghost-%COMP%]{height:100%}.main-card[_ngcontent-%COMP%]{background-color:#960d13!important}.main-card.promotion-card[_ngcontent-%COMP%]{background-color:#f3e5e6!important;border:1px dashed #C4787B!important}.body[_ngcontent-%COMP%]{position:relative}.body[_ngcontent-%COMP%] .discount-badges[_ngcontent-%COMP%]{position:absolute;top:0;left:50%;transform:translate(-50%,-50%);z-index:10;display:flex;align-items:center;gap:6px;max-width:calc(100% - 12px)}.body[_ngcontent-%COMP%] .discount-badges[_ngcontent-%COMP%] .discount-badge[_ngcontent-%COMP%]{flex:none;background-color:var(--color-primary);color:#fff;padding:4px 14px;border-radius:5px;text-align:center;white-space:nowrap}.body[_ngcontent-%COMP%] .discount-badges[_ngcontent-%COMP%] .discount-desc[_ngcontent-%COMP%]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}"]})}}return i})();var jt=["input"],Wt=(i,s,e,t)=>({"p-radiobutton p-component":!0,"p-radiobutton-checked":i,"p-radiobutton-disabled":s,"p-radiobutton-focused":e,"p-variant-filled":t}),Qt=(i,s,e)=>({"p-radiobutton-box":!0,"p-highlight":i,"p-disabled":s,"p-focus":e}),Ht=(i,s,e)=>({"p-radiobutton-label":!0,"p-radiobutton-label-active":i,"p-disabled":s,"p-radiobutton-label-focus":e});
1function qt(i,s){if(i&1){let e=w();r(0,"label",7),C("click",function(o){y(e);let p=c();return I(p.select(o))}),d(1),a()}if(i&2){let e=c(),t=W(3);Y(e.labelStyleClass),l("ngClass",ee(6,Ht,t.checked,e.disabled,e.focused)),E("for",e.inputId)("data-pc-section","label"),n(),_(e.label)}}var Ut={provide:Ae,useExisting:ce(()=>Gt),multi:!0},$t=(()=>{class i{accessors=[];add(e,t){this.accessors.push([e,t])}remove(e){this.accessors=this.accessors.filter(t=>t[1]!==e)}select(e){this.accessors.forEach(t=>{this.isSameGroup(t,e)&&t[1]!==e&&t[1].writeValue(e.value)})}isSameGroup(e,t){return e[0].control?e[0].control.root===t.control.control.root&&e[1].name===t.name:!1}static \u0275fac=function(t){return new(t||i)};static \u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Gt=(()=>{class i{cd;injector;registry;config;value;formControlName;name;disabled;label;variant="outlined";tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;autofocus;onClick=new U;onFocus=new U;onBlur=new U;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(e,t,o,p){this.cd=e,this.injector=t,this.registry=o,this.config=p}ngOnInit(){this.control=this.injector.get(Re),this.checkName(),this.registry.add(this.control,this)}handleClick(e,t,o){e.preventDefault(),!this.disabled&&(this.select(e),o&&t.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error(` 2 If you define both a name and a formControlName attribute on your radio button, their values 3 must match. Ex: <p-radioButton formControlName="food" name="food"></p-radioButton> 4 `)}static \u0275fac=function(t){return new(t||i)(V(ke),V(me),V($t),V(ze))};static \u0275cmp=T({type:i,selectors:[["p-radioButton"]],viewQuery:function(t,o){if(t&1&&ve(jt,5),t&2){let p;Se(p=Pe())&&(o.inputViewChild=p.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:[q.HasDecoratorInputTransform,"disabled","disabled",ie],label:"label",variant:"variant",tabindex:[q.HasDecoratorInputTransform,"tabindex","tabindex",ye],inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",autofocus:[q.HasDecoratorInputTransform,"autofocus","autofocus",ie]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Ce([Ut]),he],decls:7,vars:31,consts:[["input",""],[3,"click","ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","radio","pAutoFocus","",3,"focus","blur","checked","disabled","value","autofocus"],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"click","ngClass"]],template:function(t,o){if(t&1){let p=w();r(0,"div",1),C("click",function(x){y(p);let D=W(3);return I(o.handleClick(x,D,!0))}),r(1,"div",2)(2,"input",3,0),C("focus",function(x){return y(p),I(o.onInputFocus(x))})("blur",function(x){return y(p),I(o.onInputBlur(x))}),a()(),r(4,"div",4),v(5,"span",5),a()(),g(6,qt,2,10,"label",6)}t&2&&(Y(o.styleClass),l("ngStyle",o.style)("ngClass",_e(22,Wt,o.checked,o.disabled,o.focused,o.variant==="filled"||o.config.inputStyle()==="filled")),E("data-pc-name","radiobutton")("data-pc-section","root"),n(),E("data-pc-section","hiddenInputWrapper"),n(),l("checked",o.checked)("disabled",o.disabled)("value",o.value)("autofocus",o.autofocus),E("id",o.inputId)("name",o.name)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("tabindex",o.tabindex)("aria-checked",o.checked)("data-pc-section","hiddenInput"),n(2),l("ngClass",ee(27,Qt,o.checked,o.disabled,o.focused)),E("data-pc-section","input"),n(),E("data-pc-section","icon"),n(),l("ngIf",o.label))},dependencies:[Ie,B,xe,Ze],encapsulation:2,changeDetection:0})}return i})(),Pt=(()=>
4{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=ue({type:i});static \u0275inj=de({imports:[F,Je]})}return i})();var Ct=(i,s)=>s.key;function Lt(i,s){if(i&1){let e=w();r(0,"div",7)(1,"input",27),C("change",function(){let o=y(e).$implicit,p=c();return I(p.onChangeProfession(o.key))}),a(),r(2,"label",28)(3,"span",29),d(4),a()()()}if(i&2){let e,t,o=s.$implicit,p=c();n(),l("id","prof_"+o.key)("value",o.key),n(),S("main-button",((e=p.getControl("professionId"))==null?null:e.value)==o.key)("outline-button",((t=p.getControl("professionId"))==null?null:t.value)!=o.key),l("for","prof_"+o.key),n(2),_(o.value||o.description)}}function Kt(i,s){if(i&1&&(r(0,"span",35),d(1),u(2,"translate"),a()),i&2){let e=c().$implicit;n(),$("",m(2,2,"IndividualRequest.NoOfServiceProviders")," : ",e.availablenumber,"")}}function zt(i,s){if(i&1){let e=w();r(0,"div",9)(1,"input",30),C("change",function(){let o=y(e).$implicit,p=c();return I(p.onChangeNationality(o.key))}),a(),r(2,"label",31),v(3,"img",32),r(4,"span",33),d(5),a(),g(6,Kt,3,4,"span",34),a()()}if(i&2){let e=s.$implicit;n(),l("id","nat_"+e.key)("value",e.key),n(),l("for","nat_"+e.key),n(),l("src",e.image,ge)("alt",e.value),n(2),_(e.description||e.value),n(),l("ngIf",e.showAvailablenumber)}}function Zt(i,s){i&1&&(r(0,"div",46),v(1,"i",47),d(2),u(3,"translate"),a()),i&2&&(n(2),f("",m(3,1,"Validation.PromotionError")," "))}function Jt(i,s){if(i&1&&(r(0,"div",48),v(1,"i",49),d(2),u(3,"translate"),a()),i&2){let e=c(2);n(2),f(" ",e.promotionDescription||m(3,1,"promoCodeApplied")," ")}}function Xt(i,s){if(i&1){let e=w();r(0,"div",10)(1,"div",36)(2,"div",37)(3,"div",38)(4,"div",39)(5,"div")(6,"div",40)(7,"div",41),v(8,"input",42,1),u(10,"translate"),r(11,"button",43),C("click",function(){let o;y(e);let p=c();return I(p.handlePromotionCode((o=p.getControl("promoCode"))==null?null:o.value))}),d(12),u(13,"translate"),a()(),g(14,Zt,4,3,"div",44),a()()()(),g(15,Jt,4,3,"div",45),a()()()}if(i&2){let e=c();n(6),S("input-error",e.showPromotionErr),n(2),S("text-FF0000",e.showPromotionErr),l("placeholder",m(10,8,"pleaseEnterPromoCode")),n(4),f(" ",m(13,10,"applyDiscount")," "),n(2),l("ngIf",e.showPromotionErr),n(),l("ngIf",(e.promotionPackages==null?null:e.promotionPackages.length)>0)}}function Yt(i,s){i&1&&(r(0,"div",50)(1,"div",51),d(2),u(3,"translate"),a()()),i&2&&(n(2),f(" ",m(3,1,"selectIndividualQuota.NoPricing")," "))}function ei(i,s){if(i&1){let e=w();r(0,"div",58)(1,"div",59),v(2,"input",60,2),r(4,"label",61),C("click",function(){let o=y(e).$implicit,p=c(2);return I(p.onPackageSelected(o,!0))}),v(5,"app-individual-package",62),a()()()}if(i&2){let e,t=s.$implicit,o=c(2);n(2),l("id","promo_"+t.id)("value","promo_"+(t==null?null:t.id)),n(2),l("for","promo_"+t.id),n(),l("package",t)("packageProperties",o.packageProperties)("checked","promo_"+t.id==((e=o.getControl("pricingId"))==null?null:e.value))("isPromotion",!0)}}function ti(i,s){if(i&1&&(r(0,"div",52)(1,"div",53)(2,"div",54),d(3),u(4,"translate"),a(),r(5,"div",55)(6,"div")(7,"div",56),g(8,ei,6,7,"div",57),a()()()()()),i&2){let e=c();n(3),f(" ",m(4,2,"promotionPackagesDescription")," "),n(5),l("ngForOf",e.promotionPackages)}}function ii(i,s){i&1&&(r(0,"div",63)(1,"div",64)(2,"div",65),d(3),u(4,"translate"),a(),r(5,"div",66),d(6),u(7,"translate"),a()()()),i&2&&(n(3),f(" ",m(4,2,"selectIndividualQuota.NoPricing")," "),n(3),f(" ",m(7,4,"selectIndividualQuota.changeSearchProperties")," "))}function oi(i,s){if(i&1){let e=w();r(0,"div",58)(1,"div",59),v(2,"input",60,2),r(4,"label",61),C("click",function(){let o=y(e).$implicit,p=c(2);return I(p.onPackageSelected(o.id,!1))}),v(5,"app-individual-package",68),a()()()}if(i&2){let e,t=s.$implicit,o=c(2);n(2),l("id",t.id)("value",t==null?null:t.id),n(2),l("for",t.id),n(),l("package",t)("packageProperties",o.packageProperties)("checked",t.id==((e=o.getControl("pricingId"))==null?null:e.value))}}function ni(i,s){if(i&1&&(r(0,"div",67)(1,"div")(2,"div",56),g(3,oi,6,6,"div",57),a()()()),i&2){let e=c();n(3),l("ngForOf",e.packages)}}function ri(i,s){i&1&&(r(0,"div",69)(1,"div",70)(2,"span",71),v(3,"img",72),d(4),u(5,"translate"),a()()()),i&2&&(n(4),f(" ",m(5,1,"selectIndividualQuota.ChoosePricing")," "))}function ai(i,s){i&1&&(r(0,"div",69)(1,"div",73)(2,"div",74),d(3),u(4,"translate"),a()()()),i&2&&(n(3),f(" ",m(4,1,"selectIndividualQuota.ChooseProfession")," "))}function si(i,s){i&1&&(r(0,"div",75)(1,"div",73)(2,"span",76),d(3),u(4,"translate"),a()()()),i&2&&(n(3),f(" ",m(4,1,"selectIndividualQuota.ChooseNationality")," "))}function li(i,s){i&1&&(r(0,"span",23),d(1),u(2,"translate"),v(3,"img",24),a()),i&2&&(n(),f("",m(2,1,"Shared.Next")," "))}function ci(i,s){i&1&&(r(0,"span",23),d(1),u(2,"translate"),v(3,"img",24),a()),i&2&&(n(),f("",m(2,1,"contract_until_the_availability_of_labor")," "))}function pi(i,s){if(i&1&&(r(0,"button",77),g(1,li,4,3,"span",78)(2,ci,4,3,"span",78),a()),i&2){let e=c();n(),l("ngIf",e.packages.length),n(),l("ngIf",!e.packages.length)}}function di(i,s){i&1&&(r(0,"div",75)(1,"div",73)(2,"span",76),d(3),u(4,"translate"),a()()()),i&2&&(n(3),f(" ",m(4,1,"selectIndividualQuota.NoPricing")," "))}var _t=(()=>{class i{constructor(){this.subscriptions=[],this.packages=[],this.showNoPricing=!1,this.noNationalities=!1,this.noPricing=!1,this.deliverCost="",this.IsPromotionCodeAvailableForIndividual=!1,this.sessionStorageService=h(K),this.translateService=h(Fe),this.userService=h(Ee),this.stepHttpService=h(Oe),this.stepsService=h(Z),this.generalService=h(J),this.sharedService=h(O),this.individualPricingService=h(De),this.fb=h(Ge),this.navigatorService=h(Ne),this.router=h(L),this.activatedRoute=h(G),this.swalService=h(Ye),this.individualContractService=h(nt),this.createChooseQuotaForm()}
4ngOnInit(){this.getStepIdFromSessionStorage(),this.intializePricingTypes(),this.getUserData(),this.getStepDetails(),this.getCityIdFromSessionStorageIndivContractObject(),this.getPricingFromSessionStorageIndivContractObject(),this.setSelectedPackageOldCode(),this.getProfessions(),this.getPromotionCodeAvailability()}ngOnDestroy(){this.subscriptions.forEach(e=>{e.unsubscribe()})}getPromotionCodeAvailability(){this.subscriptions.push(this.individualContractService.getExcSettingsByName(["IsPromotionCodeAvailableForIndividual"]).subscribe({next:e=>{let t=e?.data?.isPromotionCodeAvailableForIndividual??e?.data?.IsPromotionCodeAvailableForIndividual;this.IsPromotionCodeAvailableForIndividual=t===!0||t==="true"||t===1||t==="1"},error:()=>{this.IsPromotionCodeAvailableForIndividual=!1}}))}goBack(){this.navigatorService.navigateToPrev(this.currentStep,this.stepId,!0,null)}setPackageProperties(e,t,o){this.selectedPackageOldCode=e,this.selectedPackage=t,this.withPromo=o}setSelectedPackageAccordingToAddress(e){this.selected==e?this.selected=null:this.selected=e}onPackageSelected(e,t){let o=t?"promo_"+e.id:e;this.getControl("pricingId")?.setValue(o),this.setPackageProperties(null,e,t),this.setSelectedPackageAccordingToAddress(e)}getPricingByPromotionCodeModel(){return{professionGroupId:this.getControl("professionId")?.value,resourceGroupId:this.getControl("nationalityId")?.value,cityId:this.cityId,pricingType:"1",promotionCode:this.getControl("promoCode")?.value,contractDuration:"null",experiance:!1}}displayPromotionDescriptionPopUp(e){this.swalService.displaySwalError(e)}displayPromoErrorIfInvalidPromoCode(e){e=="InvalidPromoCode"&&(this.showPromotionErr=!0)}setPromotionPackagesAccordingToResultPackages(e){let t=e;t?.length>0?this.promotionPackages=t:(this.promotionPackages=[],this.showPromotionErr=!0)}dealWithPricingByPromotionCodeResponse(e){if(e.promotionDescription!=null){this.displayPromotionDescriptionPopUp(e.promotionDescription),this.displayPromoErrorIfInvalidPromoCode(e.promotionDescription);return}this.promotionDescription=e?.promotionDescription||e?.packages[0]?.individualDiscount?.description||null,this.setPromotionPackagesAccordingToResultPackages(e?.packages)}handlePromotionCode(e){this.getControl("pricingId")?.setValue(null),this.showPromotionErr=!1,this.promotionPackages=[],this.promotionDescription=null;let t=e?.trim();if(!t)return;this.getControl("promoCode")?.setValue(t);let o=this.getPricingByPromotionCodeModel();this.subscriptions.push(this.individualPricingService.getPricingByPromotionCode(o).subscribe(p=>{this.dealWithPricingByPromotionCodeResponse(p)}))}removePromoCode(){this.getControl("promoCode")?.setValue(""),this.promotionPackages=null}createChooseQuotaForm(){this.chooseQuotaForm=this.fb.group({promoCode:[""],professionId:["",X.required],nationalityId:["",X.required],selectedPricingType:[""],pricingId:["",X.required]})}isFormValid(){return this.chooseQuotaForm.valid&&this.packages?.length>0}isSelectEmployeeFromSite(){return this.employeePickSource==oe.Website.valueOf()}getIndividualPricingProfession(){return this.professions.find(e=>e.key==this.chooseQuotaForm.value.professionId)?.value}setIndivPicingInSessionStorage(e){this.sessionStorageService.setIndividualPricingInSessionStorageData(e)}getIndivPricingPromotionCode(){if(this.promotionCode)return this.promotionCode;if(!this.promotionCode)return this.selectedPackage?.individualDiscount?.code;if(!this.promotionCode&&this.selectedPackageOldCode)return this.selectedPackageOldCode}getIndivPricingPricingId(e){return e?.pricingId?.replace("promo_","")}getIndividualPricingProperties(e,t){let o=ae({},this.chooseQuotaForm.value);o.selectEmployeeFromSite=e,this.deliverCost&&(o.deliveryCost=this.deliverCost),o.professionName=this.getIndividualPricingProfession(),this.setIndivPicingInSessionStorage(o),o.promotionCode=this.getIndivPricingPromotionCode(),this.setIndivPicingInSessionStorage(o),o.pricingId=this.getIndivPricingPricingId(o);let p=t?.crmUserId;return o.contactId=p,o}goNextStepAfterPostingTheSelectedPackage(e){this.subscriptions.push(this.sharedService.openNextStep(e).subscribe(t=>{t&&this.sharedService.dealWithNextStepResult(t)}))}sendingRequestToAddTheSelectedPackage(e,t){this.subscriptions.push(this.stepHttpService.postRequestWithBody({httpMethod:this.stepDetails.httpMethod,params:t,httpRequestParemeter:{stepDetails:this.stepDetails},body:e,handleError:!1}).subscribe(o=>{o&&this.goNextStepAfterPostingTheSelectedPackage(o.data)}))}chooseQuota(){this.isFormValid()&&this.subscriptions.push(this.userService.getUserData().subscribe(e=>{let t=this.isSelectEmployeeFromSite(),o=this.getIndividualPricingProperties(t,e),p={stepId:this.stepId};this.sendingRequestToAddTheSelectedPackage(o,p)}))}
4isProfessionIdInPricingSavedInSessionStorage(){return this.pricingSavedInSessionStorage&&!!this.pricingSavedInSessionStorage.professionId}setprofessionIdFromPricingSavedInSessionStorage(){this.getControl("professionId")?.setValue(this.professions.find(e=>e.key==this.pricingSavedInSessionStorage.professionId)?.key)}setprofessionIdFromSessionStorage(){this.getControl("professionId")?.setValue(this.professions.find(e=>e.key==this.sessionStorageService.professionId)?.key)}isProfessionIdInSessionStorage(){return!!this.sessionStorageService.professionId}setprofessionIdFromFirstItemInProfessions(){this.getControl("professionId")?.setValue(this.professions.find(e=>e.key==this.professions[0].key)?.key)}resetAllSelectedItemsToNull(){this.getControl("pricingId")?.setValue(null),this.employeePickSource=null,this.howToReceiveWorker=null,this.housingBuilding=null}resetPackagesData(e){e&&(this.nationalities=[]),this.packages=[],this.showNoPricing=!0}setNationalities(e){this.noNationalities=!1,this.nationalities=e}isNationalitySavedInSessionStorage(){return this.pricingSavedInSessionStorage?.nationalityId}getPricingTypeFromSessionStorage(){return this.sessionStorageService.pricingType}isPricingTypeSavedInSessionStorage(){return!!this.sessionStorageService.pricingType}resetPricingTypeToTheFirtOption(){this.getControl("selectedPricingType")?.setValue(this.pricingTypes.find(e=>e.value==this.pricingTypes[0].value)?.value)}setSelectedPricingType(){this.isPricingTypeSavedInSessionStorage()?this.getControl("selectedPricingType")?.setValue(this.getPricingTypeFromSessionStorage()):this.resetPricingTypeToTheFirtOption()}hideDeliverMethodModal(){this.generalService.setRenderDeliverMethod(!1)}getNullIfPricingTypeIsMonthly(){return this.getControl("selectedPricingType")?.value==A.MonthlyQuotas?null:A.WeeklyQuotas}resetPricingProperties(){this.getControl("promCode")?.setValue(""),this.promotionPackages=[],this.showPromotionErr=!1}setPricingByPricingData(e){this.noPricing=!1,this.noNationalities=!1,this.individualPricing=e,this.packages=e.packages,this.packageProperties=JSON.parse(e.packageProperties)}setpricingIdFromPackagesData(){this.getControl("pricingId")?.setValue(this.packages.find(e=>e.id==this.pricingSavedInSessionStorage.pricingId?.replace("promo_",""))?.id),this.setPackageProperties(null,this.getControl("pricingId")?.value,!1),this.setSelectedPackageAccordingToAddress(this.getControl("pricingId")?.value)}setEmployeePickSourceFromIndivContractObjectInSessionStorage(){this.employeePickSource=this.sharedService.getSessionStoragePropertyValue(this.sessionStorageService.indvContractObject,k.IndividualPricing,k.EmployeePickSource)}setHowtoReceiveWorkerFromIndivContractObjectInSessionStorage(){this.howToReceiveWorker=this.sharedService.getSessionStoragePropertyValue(this.sessionStorageService.indvContractObject,k.IndividualPricing,k.HowToRecieveWorker)}setHousingBuildingId(e){this.housingBuilding=this.housingBuildings.find(t=>t.housingBuildingId==e).housingBuildingId}sethousingBuildingSavedFromIndivContractObjectInSessionStorage(){let e=this.sharedService.getSessionStoragePropertyValue(this.sessionStorageService.indvContractObject,k.IndividualPricing,k.HouseBuildingId);e&&this.setHousingBuildingId(e)}setSelectingPackagesData(){this.setpricingIdFromPackagesData(),this.setEmployeePickSourceFromIndivContractObjectInSessionStorage(),this.setHowtoReceiveWorkerFromIndivContractObjectInSessionStorage(),this.sethousingBuildingSavedFromIndivContractObjectInSessionStorage()}dealWithPricingData(e){if(!e.packages.length){this.resetPackagesData(!1);return}this.setPricingByPricingData(e),this.pricingSavedInSessionStorage&&this.setSelectingPackagesData()}getPricingFromAPI(){this.subscriptions.push(this.individualPricingService.getPricingByStepId(this.stepId,this.getControl("professionId")?.value,this.getControl("nationalityId")?.value).subscribe({next:e=>{this.dealWithPricingData(e.data)},error:e=>{}}))}onChangePricingType(e){e=this.getNullIfPricingTypeIsMonthly(),this.resetPricingProperties(),this.getPricingFromAPI()}onChangeNationality(e){!this.getControl("professionId")?.value||!e||(this.getControl("pricingId")?.setValue(null),this.setSelectedPricingType(),this.hideDeliverMethodModal(),this.onChangePricingType(this.getControl("selectedPricingType")?.value))}setnationalityId(e){e||(this.getControl("nationalityId")?.setValue(this.nationalities.find(t=>t.key==this.nationalities[0].key)?.key),this.onChangeNationality(this.getControl("nationalityId")?.value))}dealWithNationalitiesData(e){if(!e.length){this.resetPackagesData(!0);return}
4if(this.setNationalities(e),!this.isNationalitySavedInSessionStorage()){this.setnationalityId(!1);return}this.pricingSavedInSessionStorage&&this.pricingSavedInSessionStorage.nationalityId&&this.nationalities.find(t=>t.key==this.pricingSavedInSessionStorage.nationalityId)?this.getControl("nationalityId")?.setValue(this.pricingSavedInSessionStorage.nationalityId):this.getControl("nationalityId")?.setValue(this.nationalities.find(t=>t.key==this.nationalities[0].key)?.key),this.onChangeNationality(this.getControl("nationalityId")?.value)}getNationalitiesByProfession(e){let t=this.sessionStorageService.indvContractObject.address?.cityId;this.subscriptions.push(this.individualPricingService.getNationalitiesByProfessionWithCity(e,t).subscribe({next:o=>{this.dealWithNationalitiesData(o.data)},error:o=>{}}))}setEmployeePickSourceAndHowToReceiveWorker(){this.employeePickSource=oe.Website.valueOf(),this.howToReceiveWorker=at.Delivery.valueOf()}getHousingBuildingByProfession(e){this.cityId&&this.subscriptions.push(this.individualPricingService.getHouseBuilding(this.cityId,e).subscribe({next:t=>{this.housingBuildings=t.data,this.housingBuildings.length||this.setEmployeePickSourceAndHowToReceiveWorker()},error:t=>{}}))}onChangeProfession(e){e&&(this.getControl("professionId")?.setValue(e),this.resetAllSelectedItemsToNull(),this.getNationalitiesByProfession(e),this.getHousingBuildingByProfession(e))}setSelectedProfession(){let e=localStorage.getItem("serviceKey"),t=e?this.professions.find(o=>o.key===e):null;t?this.getControl("professionId")?.setValue(t.key):this.isProfessionIdInPricingSavedInSessionStorage()?this.setprofessionIdFromPricingSavedInSessionStorage():this.isProfessionIdInSessionStorage()?this.setprofessionIdFromSessionStorage():this.setprofessionIdFromFirstItemInProfessions()}dealWithProfessionsData(e){this.professions=e,this.setSelectedProfession(),this.onChangeProfession(this.getControl("professionId")?.value)}getProfessions(){this.subscriptions.push(this.individualPricingService.getProfessions().subscribe({next:e=>{this.dealWithProfessionsData(e.data)},error:e=>{}}))}getStepIdFromSessionStorage(){let e=this.activatedRoute.snapshot.queryParamMap.get("stepId");this.stepId=e||this.sessionStorageService.stepId,e&&(this.sessionStorageService.stepId=e)}setSelectedPackageOldCode(){this.pricingSavedInSessionStorage&&(this.selectedPackageOldCode=this.pricingSavedInSessionStorage.promotionCode)}getPricingFromSessionStorageIndivContractObject(){this.pricingSavedInSessionStorage=this.sharedService.getSessionStoragePropertyKey(this.sessionStorageService.indvContractObject,k.IndividualPricing)}getCityIdFromSessionStorageIndivContractObject(){this.cityId=this.sharedService.getSessionStoragePropertyValue(this.sessionStorageService.indvContractObject,k.Address,k.CityId)}isSubscriptionDueToThePopUpComponent(e){return e?.stepType==Me.popUp}setCurrentStepInStore(e){this.sharedService.setCurrentStep(e)}setCurrentStepInSessionStorage(e){this.sessionStorageService.setItem(k.currentStep,e)}setCurrentStepByStepDetailsAction(e){this.setCurrentStepInStore(e),this.setCurrentStepInSessionStorage(e),this.currentStep=e,this.sharedService.setCurrentStep(this.currentStep)}getStepDetails(){this.subscriptions.push(this.stepsService.getStepDetailsByActionName(this.sessionStorageService.ServiceType||1,"SelectPackage",this.stepId).subscribe(e=>{if(e){if(this.isSubscriptionDueToThePopUpComponent(e))return;this.setCurrentStepByStepDetailsAction(e.action),this.stepDetails=e}}))}getUserData(){this.subscriptions.push(this.userService.getUserData().subscribe(e=>{this.user=e}))}setPricingTypes(e){let t=e["selectIndividualQuota.Monthly"],o=e["selectIndividualQuota.Weekly"];this.pricingTypes=[{name:t,value:A.MonthlyQuotas},{name:o,value:A.WeeklyQuotas}]}intializePricingTypes(){this.subscriptions.push(this.translateService.get(["selectIndividualQuota.Monthly","selectIndividualQuota.Weekly"]).subscribe(e=>{this.setPricingTypes(e)}))}getControl(e){return this.chooseQuotaForm.get(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=T({type:i,selectors:[["app-select-packages"]],standalone:!0,features:[M],decls:30,vars:15,consts:[["myform","ngForm"],["promo",""],["quota",""],[1,"select-pacakge","border","border-secondary","rounded-5","p-4","mb-4"],[3,"ngSubmit","formGroup"],[1,"d-flex","flex-column","gap-2"],[1,"w-100","d-flex","flex-row","column-gap-1"],[1,"custom-check"],[1,"d-flex","flex-row","flex-wrap","align-items-center","gap-3"],[1,"form-check","custom-check"],[1,"w-100","mt-4"],[1,"w-100"],[1,"border-0"],[1,"pt-md-4","pb-0","px-0","packageContainer"],["class","col-md-6 m-auto",4,"ngIf"],["class","promotionPackages",4,"ngIf"],["class","align-items-center d-flex flex-column gap-3 h-100 mt-5",4,"ngIf"],["class","wrapper px-0",4,"ngIf"],["class","error mt-3","role","alert",4,"ngIf"],[1,"mt-4","d-flex","justify-content-end"],["role","alert","class","error",4,"ngIf"],[1,"mt-0","d-flex","flex-column","flex-md-row","gap-2","justify-content-end","steps-btns"],["type","button",1,"button","secondary-button","order-1","order-md-0",3,"click","disabled"],[1,"fs-20","fw-regular","d-flex","align-items-center","gap-2","justify-content-center"],["src","assets/images/hourly/right-arrow.svg","alt","arrow",1,"arrow-icon"],["type","submit","class","button main-button order-0 order-md-1 fs-20",4,"ngIf"],["class","error","role","alert",4,"ngIf"],["type","radio","formControlName","professionId",1,"form-check-input",3,"change","id","value"],[1,"form-check-label-profession","h-100","w-100","rounded-pill","cursor-p","center",3,"for"],[1,"fs-14","text-nowrap"],["type","radio","formControlName","nationalityId",1,"form-check-input",3,"change","id","value"],[1,"form-check-label","cursor-p","d-flex","flex-column","align-items-center","justify-content-center","p-3",2,"min-width","120px",3,"for"],[1,"mb-2",2,"width","60px","height","60px","object-fit","contain",3,"src","alt"],[1,"text-center","fs-14","textSecondary"],["class","text-sm",4,"ngIf"],[1,"text-sm"],[1,"align-items-center","justify-content-between"],["id","natPackage",1,"col-12","px-0"],[1,"row","row-cols-1","row-cols-md-2"],[1,"col"],[1,"form-group"],[1,"d-flex","justify-content-between","position-relative"],["type","text","id","promoCodeId","formControlName","promoCode",1,"form-control","fs-18",3,"placeholder"],[1,"danger-button","apply-promo-btn","d-flex","align-items-center","fs-14","fw-bold","h-32",3,"click"],["class","error d-flex justify-content-start align-items-end gap-1 mt-1","role","alert",4,"ngIf"],["class","w-100 mt-2 text-success fs-16 fw-bold d-flex align-items-center gap-2","role","status",4,"ngIf"],["role","alert",1,"error","d-flex","justify-content-start","align-items-end","gap-1","mt-1"],[1,"fas","fa-times-circle","me-1"],["role","status",1,"w-100","mt-2","text-success","fs-16","fw-bold","d-flex","align-items-center","gap-2"],[1,"fas","fa-check-circle"],[1,"col-md-6","m-auto"],[1,"fs-lg-24","fs-20","font-w-600","text-center","mb-3"],[1,"promotionPackages"],[1,"promotion-box","border","border-secondary","rounded-5","p-4","mb-4"],[1,"promotion-description","fs-16","f-w-regular","mb-3"],[1,"wrapper"],[1,"row","row-cols-lg-3","row-cols-md-2","row-cols-1","g-3"],["class","",4,"ngFor","ngForOf"],[1,""],[1,"quotas","h-100"],["type","hidden","formControlName","pricingId","required","",1,"form-check-input",3,"id","value"],[1,"form-check-label","w-100","h-100",3,"click","for"],[1,"h-100",3,"package","packageProperties","checked","isPromotion"],[1,"align-items-center","d-flex","flex-column","gap-3","h-100","mt-5"],[1,"d-flex","flex-column","justify-content-center","align-items-center"],[1,"d-flex","gap-3","m-auto","fs-16","f-w-regular","noPackages","justify-content-center"],[1,"text-black","fs-16","f-w-regualr","mt-1"],[1,"wrapper","px-0"],[1,"h-100",3,"package","packageProperties","checked"],["role","alert",1,"error","mt-3"],[1,"d-flex","gap-3","justify-content-start","align-items-center"],[1,"fs-18","error"],["src","assets/images/core/alert-danger.svg"],[1,"d-flex","gap-3","align-items-center"],[1,"error"],["role","alert",1,"error"],[1,"fs-lg-18","fs-14","error"],["type","submit",1,"button","main-button","order-0","order-md-1","fs-20"],["class","fs-20 fw-regular d-flex align-items-center gap-2 justify-content-center",4,"ngIf"]],template:function(t,o){if(t&1){let p=w();r(0,"div",3)(1,"form",4,0),C("ngSubmit",function(){return y(p),I(o.chooseQuota())}),r(3,"div",5)(4,"div",6),R(5,Lt,5,8,"div",7,Ct),a(),r(7,"div",8),R(8,zt,7,7,"div",9,Ct),a(),g(10,Xt,16,12,"div",10),r(11,"div",11)(12,"div",12)(13,"div",13),g(14,Yt,4,3,"div",14)(15,ti,9,4,"div",15)(16,ii,8,6,"div",16)(17,ni,4,1,"div",17)(18,ri,6,3,"div",18),v(19,"div",19),a()(),g(20,ai,5,3,"div",18)(21,si,5,3,"div",20),a(),r(22,"div",21)(23,"button",22),C("click",function(){return y(p),I(o.goBack())}),r(24,"span",23),v(25,"img",24),d(26),u(27,"translate"),a()(),g(28,pi,3,2,"button",25),a()(),g(29,di,5,3,"div",26),a()()}if(t&2){let p,b,x,D,H=W(2);n(),l("formGroup",o.chooseQuotaForm),n(4),j(o.professions),n(3),j(o.nationalities),n(2),P(10,o.IsPromotionCodeAvailableForIndividual?10:-1),n(4),l("ngIf",o.showNoPricing&&(!o.packages.length||!o.nationalities.length)),n(),l("ngIf",(o.promotionPackages==null?null:o.promotionPackages.length)>0&&o.nationalities.length>0),n(),l("ngIf",o.showNoPricing&&(!o.packages.length||!o.nationalities.length)||(o.packages==null?null:o.packages.length)==0),n(),l("ngIf",o.packages.length&&o.nationalities.length),n(),l("ngIf",(o.packages==null?null:o.packages.length)&&!((p=o.getControl("pricingId"))!=null&&p.value)&&((p=o.getControl("nationalityId"))==null?null:p.value)&&H.submitted),n(2),l("ngIf",((b=o.getControl("professionId"))==null?null:b.hasError("required"))&&(((b=o.getControl("professionId"))==null?null:b.touched)||H.submitted)),n(),l("ngIf",(o.nationalities==null?null:o.nationalities.length)&&((x=o.getControl("nationalityId"))==null?null:x.hasError("required"))&&(((x=o.getControl("nationalityId"))==null?null:x.touched)||H.submitted)),n(2),l("disabled",(o.stepDetails==null?null:o.stepDetails.previousStepAction)==null),n(3),f(" ",m(27,13,"Shared.Previous"),""),n(2),l("ngIf",o.packages.length),n(),l("ngIf",(o.packages==null?null:o.packages.length)<=0&&!((D=o.getControl("pricingId"))!=null&&D.value)&&((D=o.getControl("nationalityId"))==null?null:D.value)&&H.submitted)}},dependencies:[N,z,F,be,B,Le,Qe,Ve,He,je,We,$e,qe,Ue,Xe,St,rt,Pt],styles:[".custom-check[_ngcontent-%COMP%]{position:relative}.custom-check[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{display:none}.custom-check[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%]{border:2px solid var(--color-secondary);border-radius:8px;transition:all .3s ease;cursor:pointer;background-color:#fff;min-height:120px;box-shadow:0 1px 3px #0000001a;padding-bottom:50px}.custom-check[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%]:hover{border-color:#d1d5db;box-shadow:0 4px 6px #0000001a}.custom-check[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:4px}.custom-check[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--color-secondary);font-size:14px;line-height:1.2;max-width:100%;word-wrap:break-word}.custom-check[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + .form-check-label[_ngcontent-%COMP%]{border-color:var(--color-secondary);border-width:2px;background-color:var(--color-secondary);box-shadow:0 4px 12px #1fa39726;margin-top:18px;clip-path:polygon(0 0,100% 0,100% calc(100% - 20px),60% calc(100% - 20px),50% 100%,40% calc(100% - 20px),0 calc(100% - 20px))}.custom-check[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + .form-check-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:color-mix(in var(--color-secondary),#FFFFFF 80%);margin-bottom:20px}.border-secondary[_ngcontent-%COMP%]{border-color:var(--color-secondary)!important}label[_ngcontent-%COMP%]{margin-left:auto!important;margin-right:auto!important}.apply-promo-btn[_ngcontent-%COMP%]{background-color:#dc3545!important}"]})}}return i})();var Ro=[{path:"",component:vt,children:[{path:"SavedAddresses",component:ct},{path:"AddNewAddress",component:st},{path:"SelectPackage",component:_t},{path:"SelectEmployee",component:dt},{path:"ContractDetails",component:ut},{path:"CompleteProfile",component:et},{path:"ContractTemplate",component:mt},{path:"UploadAttachments",component:gt},{path:"ShopperResult",component:tt},{path:"payment",component:it}
4]}];export{Ro as routes};
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.