1import{a as vt}from"./chunk-GLCVXPF3.js";import{$a as Ce,A as I,B as Y,Ea as at,F as ee,I as P,Ia as st,K as te,L as ue,M as He,R as ve,S as $e,T as f,U as ze,V as We,W as Je,Wa as fe,X as Ze,Xa as K,Y as Ye,Ya as lt,Z as Ke,aa as Qe,ab as _e,bb as be,ca as Xe,cb as T,da as ge,db as mt,fa as et,hb as Se,i as Ue,lb as pt,m as je,ma as tt,mb as ct,oa as it,p as Ae,pa as he,qa as nt,qb as dt,r as de,ra as rt,sa as ot,ua as xe,vb as ut,y as Ge}from"./chunk-2BM7GTJT.js";import{Bb as v,Db as g,Fb as Ne,Gb as Te,Hb as we,Ib as x,Ic as m,Jb as r,Jc as p,Kb as o,Lb as l,N as Re,Qa as W,Qc as ce,R as De,Sb as w,Ua as n,V as Le,W as le,Wb as S,Xb as C,Z as Fe,bb as _,d as Be,da as E,ea as R,hc as N,ib as F,jb as pe,kc as s,lc as Q,mc as d,nc as J,ob as Ve,qc as Ie,rc as Pe,sa as me,sc as Oe,tc as b,uc as Z,yc as X}from"./chunk-CZQR6XQ3.js";import"./chunk-EQDQRRRY.js";var Nt=()=>["/user/dashboard"];function Tt(t,u){if(t&1){let e=w();r(0,"div",19)(1,"a",20),S("click",function(){E(e);let i=C();return R(i.login())}),s(2),m(3,"transloco"),o(),r(4,"a",21),s(5),m(6,"transloco"),o()(),r(7,"div",22)(8,"p-button",23),S("click",function(){E(e);let i=C();return R(i.userRegistration())}),s(9),m(10,"transloco"),o()()}t&2&&(n(2),d(" ",p(3,3,"auth.HeaderSignIn")," "),n(3),d(" ",p(6,5,"auth.ForgotPassword"),"? "),n(4),d(" ",p(10,7,"apps.SignUpFree"),"! "))}function wt(t,u){if(t&1){let e=w();r(0,"div",7)(1,"p-button",24),s(2," My Videojet "),o(),r(3,"a",25),S("click",function(){E(e);let i=C();return R(i.logout())}),s(4," Log out "),o()()}t&2&&(n(),x("routerLink",X(1,Nt)))}function It(t,u){t&1&&l(0,"span",26)}function Pt(t,u){t&1&&l(0,"span",27)}function Ot(t,u){if(t&1&&(r(0,"div",28),l(1,"app-info-card",29),o()),t&2){let e=u.$implicit;n(),x("icon",e.icon)("title",e.title)("description",e.description)("linkText",e.linkText)("linkUrl",e.linkUrl)("clickHandler",e.clickHandler)("isExternal",e.isExternal)}}var xt=(()=>{class t{constructor(e,a,i,c){this.oauthService=e,this.router=a,this.authService=i,this.translocoService=c,this._destroy$=new Be,this.tiles=[],this.responsiveOptions=[{breakpoint:"1400px",numVisible:4,numScroll:1},{breakpoint:"1199px",numVisible:3,numScroll:1},{breakpoint:"991px",numVisible:2,numScroll:1},{breakpoint:"575px",numVisible:1,numScroll:1}]}ngOnInit(){this.activeSessionCheck(),this.shopUSUrl=te.shopUSUrl,this.tiles=[{icon:"assets/images/Icon - IB.png",title:"apps.OnlineOrderingAnytime",description:"apps.VisitTheVideojetShop",linkText:"apps.OnlineOrderingAnytime",linkUrl:this.shopUSUrl,isExternal:!0},{icon:"assets/images/Icon - Lock - Unlocked.png",title:"apps.GeneratePassword",description:"apps.VisitPasswordGenerator",linkText:"apps.GeneratePwdRequest",clickHandler:()=>this.login(),isExternal:!1},{icon:"/assets/icons/products/Icon-Documents.png",title:"apps.DocumentLibrary",description:"apps.DocumentLibraryDesc",linkText:"shared.AccessNow",clickHandler:()=>this.openDocumentationLibrary(),isExternal:!1},{icon:"/assets/images/Icon - Graduation Cap.png",title:"apps.KnowledgeHub",description:"apps.KnowledgeBaseActivationDesc",linkText:"apps.GoSomewhere",linkUrl:"https://know.videojet.com/secure/kb/login?returnUrl=/kb/Default.htm",isExternal:!0},{icon:"assets/images/Icon-Globe-Europe_Africa.png",title:"DistributorsMarketingContent",description:"DistributorsMarketingContentText",linkText:"shared.AccessNow",linkUrl:"https://dam.videojet.com/videojet/distributor-channel-partners-collection",isExternal:!0}]}login(){this.authService.login()}openDocumentationLibrary(){this.router.navigate(["/auth/login"],{queryParams:{refTargetURL:"/product-documentation"}})}activeSessionCheck(){this.isUserExist=this.oauthService.hasValidAccessToken()}logout(){localStorage.removeItem("currentUrl"),localStorage.removeItem("appointmentTimeZone"),this.oauthService.logOut()}userRegistration(){this.router.navigateByUrl("/auth/signup")}static{this.\u0275fac=function(a){return new(a||t)(_(P),_(I),_(ve),_(be))}}static{this.\u0275cmp=F({type:t,selectors:[["app-home"]],standalone:!1,decls:33,vars:25,consts:[[1,"@container","mx-auto","bg-linear-to-br","from-white","from-30%","to-blue-200/30","shadow-md","overflow-hidden"],[1,"mx-auto","max-w-(--breakpoint-2xl)"],[1,"grid","grid-cols-1","lg:grid-cols-2","gap-6","lg:gap-8","xl:gap-8","items-center","py-6","md:py-6","lg:py-6"],[1,"flex","flex-col","justify-center","px-4","sm:px-6","md:px-8","lg:px-10","xl:px-12","py-4","gap-3"],[1,"text-sm","md:text-base","lg:text-lg","text-blue-200","font-medium","animate-fade-in"],[1,"text-2xl","sm:text-3xl","md:text-3xl","lg:text-3xl","xl:text-3xl","font-bold","leading-tight","text-gray-900"],[1,"text-base","sm:text-lg","md:text-lg","lg:text-lg","font-normal","text-gray-900","max-w-2xl"],[1,"flex","flex-col","sm:flex-row","items-stretch","sm:items-center","space-y-3","sm:space-y-0","sm:space-x-3","pt-3","sm:pt-4","md:pt-5"],[1,"flex","flex-col","justify-center","items-center","px-4","sm:px-6","md:px-8","lg:px-8","py-6","md:py-8"],[1,"w-full","max-w-md","lg:max-w-lg","xl:max-w-xl"],[1,"text-sm","md:text-base","text-center","text-gray-600"],[1,"@container","mx-auto","py-8","md:py-12","lg:py-16"],[1,"mb-6","md:mb-8","lg:mb-10"],[1,"text-xl","px-2","sm:text-xl","md:text-xl","font-bold","text-gray-900","mb-2"],[1,"mx-auto","max-w-(--breakpoint-2xl)","px-3","py-5"],[3,"value","numVisible","numScroll","responsiveOptions","circular","autoplayInterval","showNavigators","showIndicators"],["pTemplate","previousicon"],["pTemplate","nexticon"],["pTemplate","item"],[1,"flex","flex-col","sm:flex-row","items-stretch","sm:items-center","md:items-center","gap-3","sm:gap-4","md:gap-5","lg:gap-6","pt-3","sm:pt-4","md:pt-5"],[1,"text-sm","md:text-base","lg:text-lg","cursor-pointer","text-blue-200","hover:text-blue-300","hover:underline","decoration-2","underline-offset-4","transition-all","duration-200","text-center","sm:text-left","py-2","sm:py-0",3,"click"],["routerLink","/auth/reset-password-email",1,"text-sm","md:text-base","lg:text-lg","cursor-pointer","text-blue-200","hover:text-blue-300","hover:underline","decoration-2","underline-offset-4","transition-all","duration-200","text-center","sm:text-left","py-2","sm:py-0"],[1,"py-4","flex","justify-center","sm:justify-start"],[1,"w-auto","min-w-45","cursor-pointer","text-sm","sm:text-base","md:text-lg","text-center",3,"click"],[1,"w-full","sm:w-auto","text-sm","sm:text-base","md:text-lg",3,"routerLink"],["href","https://sso.videojet.com/adfs/ls/?wa=wsignout1.0",1,"text-sm","sm:text-base","md:text-lg","cursor-pointer","font-semibold","text-blue-200","hover:text-blue-300","hover:underline","decoration-2","underline-offset-4","transition-all","duration-200","text-center","sm:text-left","py-2","sm:py-0","px-3",3,"click"],[1,"pi","pi-chevron-left"],[1,"pi","pi-chevron-right"],[1,"p-3","h-full"],[3,"icon","title","description","linkText","linkUrl","clickHandler","isExternal"]],template:function(a,i){a&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),s(5),m(6,"transloco"),o(),r(7,"h1",5),s(8),m(9,"transloco"),o(),r(10,"p",6),s(11),m(12,"transloco"),o(),v(13,Tt,11,9),v(14,wt,5,2,"div",7),o(),r(15,"div",8)(16,"div",9),l(17,"app-vrs-video"),o(),r(18,"p",10),s(19),m(20,"transloco"),o()()()()(),r(21,"div",11)(22,"div",1)(23,"div",12)(24,"h2",13),s(25),m(26,"transloco"),o(),l(27,"p-divider"),o()(),r(28,"div",14)(29,"p-carousel",15),Ve(30,It,1,0,"ng-template",16)(31,Pt,1,0,"ng-template",17)(32,Ot,2,7,"ng-template",18),o()()()),a&2&&(n(5),d(" ",p(6,15,"apps.WelcomeVJ")," "),n(3),d(" ",p(9,17,"apps.VJText")," "),n(3),d(" ",p(12,19,"apps.BusinessText")," "),n(2),g(i.isUserExist?-1:13),n(),g(i.isUserExist?14:-1),n(5),d(" ",p(20,21,"apps.Video")," "),n(6),d(" ",p(26,23,"apps.MyVJApps")," "),n(4),x("value",i.tiles)("numVisible",4)("numScroll",1)("responsiveOptions",i.responsiveOptions)("circular",!0)("autoplayInterval",5e3)("showNavigators",!0)("showIndicators",!1))},dependencies:[et,he,nt,xe,Y,pt,ct,T],styles:["@keyframes _ngcontent-%COMP%_fade-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fade-in .6s ease-out}p-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px)}@media(min-width:768px){p-card[_ngcontent-%COMP%]:hover{transform:translateY(-8px)}}p-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}p-card[_ngcontent-%COMP%] .p-card{display:flex;flex-direction:column;height:100%}
1p-card[_ngcontent-%COMP%] .p-card-body{display:flex;flex-direction:column;flex:1;height:100%}p-card[_ngcontent-%COMP%] .p-card-content{display:flex;flex-direction:column;flex:1;height:100%}img[_ngcontent-%COMP%]{max-width:100%;height:auto}app-vrs-video[_ngcontent-%COMP%]{width:100%;display:block}a[_ngcontent-%COMP%]:focus-visible, button[_ngcontent-%COMP%]:focus-visible{outline:2px solid #4A7EC4;outline-offset:4px;border-radius:4px}a[_ngcontent-%COMP%], button[_ngcontent-%COMP%], p-card[_ngcontent-%COMP%]{transition:all .3s ease}@media(max-width:640px){h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{word-break:break-word;-webkit-hyphens:auto;hyphens:auto}p[_ngcontent-%COMP%]{line-height:1.6}}@container (min-width: 400px){.card-content[_ngcontent-%COMP%]{padding:1.5rem}}@media print{.no-print[_ngcontent-%COMP%]{display:none}p-card[_ngcontent-%COMP%]{page-break-inside:avoid;break-inside:avoid}}@media(prefers-contrast:high){a[_ngcontent-%COMP%]{text-decoration:underline;text-decoration-thickness:2px}}@media(prefers-reduced-motion:reduce){*[_ngcontent-%COMP%], *[_ngcontent-%COMP%]:before, *[_ngcontent-%COMP%]:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media(hover:none){a[_ngcontent-%COMP%]:active{color:#2b5c9e}}[_nghost-%COMP%] .p-button-text.p-button-secondary{background:#4e4ef4;border-color:transparent}"]})}}return t})();var Ee=(()=>{class t{constructor(e,a){this.http=e,this.route=a,this.siteInfo={},this.siteList=[],this.httpOptions={headers:new Ae({"Content-Type":"application/json"})}}SendDetailsToSalesforce(e){return this.http.post(`${te.proxyConfigPath}SSOUserCreation/SendDetailsToSalesforce`,e,this.httpOptions).pipe(Re(1))}CreateSSOUserBasedonSchedulingRequest(e){return this.http.post(`${te.proxyConfigPath}SSOUserCreation/CreateSSOUserBasedonSchedulingRequest`,e,this.httpOptions).pipe(Re(1))}static{this.\u0275fac=function(a){return new(a||t)(Fe(de),Fe(I))}}static{this.\u0275prov=Le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ct=()=>({standalone:!0});function Bt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Company name is required "),o())}function Dt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Company name must be at least 2 characters "),o())}function Lt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Company name cannot exceed 100 characters "),o())}function Vt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Invalid company name format "),o())}function Ut(t,u){if(t&1&&(r(0,"div",13),v(1,Bt,3,0,"div"),v(2,Dt,3,0,"div"),v(3,Lt,3,0,"div"),v(4,Vt,3,0,"div"),o()),t&2){let e,a,i,c,h=C();n(),g((e=h.serviceRequestForm.get("companyName"))!=null&&e.hasError("required")?1:-1),n(),g((a=h.serviceRequestForm.get("companyName"))!=null&&a.hasError("minlength")?2:-1),n(),g((i=h.serviceRequestForm.get("companyName"))!=null&&i.hasError("maxlength")?3:-1),n(),g((c=h.serviceRequestForm.get("companyName"))!=null&&c.hasError("pattern")?4:-1)}}function jt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Email address is required "),o())}function At(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Please enter a valid email address "),o())}function Gt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Invalid email format (e.g., [email protected]) "),o())}function Ht(t,u){if(t&1&&(r(0,"div",13),v(1,jt,3,0,"div"),v(2,At,3,0,"div"),v(3,Gt,3,0,"div"),o()),t&2){let e,a,i,c=C();n(),g((e=c.serviceRequestForm.get("email"))!=null&&e.hasError("required")?1:-1),n(),g((a=c.serviceRequestForm.get("email"))!=null&&a.hasError("email")?2:-1),n(),g((i=c.serviceRequestForm.get("email"))!=null&&i.hasError("pattern")?3:-1)}}function $t(t,u){t&1&&(r(0,"div",13),l(1,"i",55),s(2),m(3,"transloco"),r(4,"a",56),s(5),m(6,"transloco"),o()()),t&2&&(n(2),d("",p(3,2,"auth.RegisterEmailError")," "),n(3),d(" ",p(6,4,"auth.SignIn")," "))}function zt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"First name is required "),o())}function Wt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"First name must be at least 2 characters "),o())}function Jt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"First name cannot exceed 50 characters "),o())}function Zt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Only letters, space
1s, hyphens and apostrophes allowed "),o())}function Yt(t,u){if(t&1&&(r(0,"div",13),v(1,zt,3,0,"div"),v(2,Wt,3,0,"div"),v(3,Jt,3,0,"div"),v(4,Zt,3,0,"div"),o()),t&2){let e,a,i,c,h=C();n(),g((e=h.serviceRequestForm.get("firstName"))!=null&&e.hasError("required")?1:-1),n(),g((a=h.serviceRequestForm.get("firstName"))!=null&&a.hasError("minlength")?2:-1),n(),g((i=h.serviceRequestForm.get("firstName"))!=null&&i.hasError("maxlength")?3:-1),n(),g((c=h.serviceRequestForm.get("firstName"))!=null&&c.hasError("pattern")?4:-1)}}function Kt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Last name is required "),o())}function Qt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Last name must be at least 2 characters "),o())}function Xt(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Last name cannot exceed 50 characters "),o())}function ei(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Only letters, spaces, hyphens and apostrophes allowed "),o())}function ti(t,u){if(t&1&&(r(0,"div",13),v(1,Kt,3,0,"div"),v(2,Qt,3,0,"div"),v(3,Xt,3,0,"div"),v(4,ei,3,0,"div"),o()),t&2){let e,a,i,c,h=C();n(),g((e=h.serviceRequestForm.get("lastName"))!=null&&e.hasError("required")?1:-1),n(),g((a=h.serviceRequestForm.get("lastName"))!=null&&a.hasError("minlength")?2:-1),n(),g((i=h.serviceRequestForm.get("lastName"))!=null&&i.hasError("maxlength")?3:-1),n(),g((c=h.serviceRequestForm.get("lastName"))!=null&&c.hasError("pattern")?4:-1)}}function ii(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Phone number is required "),o())}function ni(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Invalid phone number (10-15 digits required) "),o())}function ri(t,u){if(t&1&&(r(0,"div",13),v(1,ii,3,0,"div"),v(2,ni,3,0,"div"),o()),t&2){let e,a,i=C();n(),g((e=i.serviceRequestForm.get("phoneNumber"))!=null&&e.hasError("required")?1:-1),n(),g((a=i.serviceRequestForm.get("phoneNumber"))!=null&&a.hasError("pattern")?2:-1)}}function oi(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Street address is required "),o())}function ai(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Address must be at least 5 characters "),o())}function si(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Address cannot exceed 200 characters "),o())}function li(t,u){if(t&1&&(r(0,"div",13),v(1,oi,3,0,"div"),v(2,ai,3,0,"div"),v(3,si,3,0,"div"),o()),t&2){let e,a,i,c=C();n(),g((e=c.serviceRequestForm.get("address"))!=null&&e.hasError("required")?1:-1),n(),g((a=c.serviceRequestForm.get("address"))!=null&&a.hasError("minlength")?2:-1),n(),g((i=c.serviceRequestForm.get("address"))!=null&&i.hasError("maxlength")?3:-1)}}function mi(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"City is required "),o())}function pi(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"City must be at least 2 characters "),o())}function ci(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Only letters, spaces, hyphens and apostrophes allowed "),o())}function di(t,u){if(t&1&&(r(0,"div",13),v(1,mi,3,0,"div"),v(2,pi,3,0,"div"),v(3,ci,3,0,"div"),o()),t&2){let e,a,i,c=C();n(),g((e=c.serviceRequestForm.get("city"))!=null&&e.hasError("required")?1:-1),n(),g((a=c.serviceRequestForm.get("city"))!=null&&a.hasError("minlength")?2:-1),n(),g((i=c.serviceRequestForm.get("city"))!=null&&i.hasError("pattern")?3:-1)}}function ui(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Postal code is required "),o())}function vi(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Invalid postal code format "),o())}function gi(t,u){if(t&1&&(r(0,"div",13),v(1,ui,3,0,"div"),v(2,vi,3,0,"div"),o()),t&2){let e,a,i=C();n(),g((e=i.serviceRequestForm.get("postalCode"))!=null&&e.hasError("required")?1:-1),n(),g((a=i.serviceRequestForm.get("postalCode"))!=null&&a.hasError("pattern")?2:-1)}}function hi(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Please select a country "),o())}function xi(t,u){if(t&1&&(r(0,"div",13),v(1,hi,3,0,"div"),o()),t&2){let e,a=C();n(),g((e=a.serviceRequestForm.get("country"))!=null&&e.hasError("required")?1:-1)}}function fi(t,u){t&1&&(r(0,"span",11),s(1,"*"),o())}function Ci(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Please select a state "),o())}function _i(t,u){if(t&1&&(r(0,"div",13),v(1,Ci,3,0,"div"),o()),t&2){let e,a=C();n(),g((e=a.serviceRequestForm.get("state"))!=null&&e.hasError("required")?1:-1)}}function bi(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Please select when you would like service "),o())}function Si(t,u){if(t&1&&(r(0,"div",13),v(1,bi,3,0,"div"),o()),t&2){let e,a=C();n(),g((e=a.serviceRequestForm.get("servicePreference"))!=null&&e.hasError("required")?1:-1)}}function yi(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Future date is required "),o())}function qi(t,u){if(t&1&&(r(0,"div",13),v(1,yi,3,0,"div"),o()),t&2){let e,a=C(2);n(),g((e=a.serviceRequestForm.get("futureDate"))!=null&&e.hasError("required")?1:-1)}}function Ei(t,u){if(t&1&&(r(0,"div",9)(1,"label",57),s(2),m(3,"transloco"),r(4,"
1span",11),s(5,"*"),o()(),l(6,"p-datePicker",58),m(7,"transloco"),v(8,qi,2,1,"div",13),o()),t&2){let e,a=C();n(2),d("",p(3,6,"service.FutureDateText"),": "),n(4),x("placeholder",b(p(7,8,"service.EnterDateTime")))("autofocus",!1)("dateFormat","mm/dd/yy"),n(2),g((e=a.serviceRequestForm.get("futureDate"))!=null&&e.invalid&&((e=a.serviceRequestForm.get("futureDate"))!=null&&e.dirty||(e=a.serviceRequestForm.get("futureDate"))!=null&&e.touched)?8:-1)}}function Ri(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Serial number is required "),o())}function Fi(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Serial number must be at least 3 characters "),o())}function Ni(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Serial number cannot exceed 50 characters "),o())}function Ti(t,u){if(t&1&&(r(0,"div",13),v(1,Ri,3,0,"div"),v(2,Fi,3,0,"div"),v(3,Ni,3,0,"div"),o()),t&2){let e,a,i,c=C();n(),g((e=c.serviceRequestForm.get("serialNumber"))!=null&&e.hasError("required")?1:-1),n(),g((a=c.serviceRequestForm.get("serialNumber"))!=null&&a.hasError("minlength")?2:-1),n(),g((i=c.serviceRequestForm.get("serialNumber"))!=null&&i.hasError("maxlength")?3:-1)}}function wi(t,u){t&1&&(r(0,"div"),l(1,"i",54),s(2,"Please select a service type "),o())}function Ii(t,u){if(t&1&&(r(0,"div",13),v(1,wi,3,0,"div"),o()),t&2){let e,a=C();n(),g((e=a.serviceRequestForm.get("serviceType"))!=null&&e.hasError("required")?1:-1)}}function Pi(t,u){if(t&1){let e=w();r(0,"div",36)(1,"div",9)(2,"label",59),s(3),m(4,"transloco"),o(),r(5,"input",60),m(6,"transloco"),Oe("ngModelChange",function(i){let c=E(e).$implicit;return Pe(c.serialNumber,i)||(c.serialNumber=i),R(i)}),o()(),r(7,"div",9)(8,"label",59),s(9),m(10,"transloco"),o(),r(11,"div",61)(12,"p-select",62),Oe("ngModelChange",function(i){let c=E(e).$implicit;return Pe(c.serviceType,i)||(c.serviceType=i),R(i)}),o(),r(13,"button",63),S("click",function(){let i=E(e).$index,c=C();return R(c.removeSerialNumber(i))}),l(14,"i",64),o()()()()}if(t&2){let e=u.$implicit,a=u.$index,i=C();n(3),J(" ",p(4,11,"service.Printer2SerialNumber")," ",a+2,": "),n(2),x("placeholder",b(p(6,13,"service.EnterSerialNumber"))),Ie("ngModel",e.serialNumber),x("ngModelOptions",X(17,Ct)),n(4),J(" ",p(10,15,"service.ServiceType2")," ",a+2,": "),n(3),x("options",i.serviceTypeOptions),Ie("ngModel",e.serviceType),x("ngModelOptions",X(18,Ct))}}function Oi(t,u){if(t&1&&(r(0,"div",66),l(1,"i",54),s(2),o()),t&2){let e=u.$implicit;n(2),d(" ",e," ")}}function ki(t,u){if(t&1&&(r(0,"div",50)(1,"div",65),Te(2,Oi,3,1,"div",66,Ne),o()()),t&2){let e=C();n(2),we(e.formErrors)}}function Mi(t,u){t&1&&l(0,"i",53)}var bt=(()=>{class t{constructor(e,a,i,c,h,y,q){this.fb=e,this.messageService=a,this.onsiteService=i,this.router=c,this.authService=h,this.oauthService=y,this.translocoService=q,this.additionalSerialNumbers=[],this.serviceTypeOptions=[{name:"Repair",value:"repair"},{name:"Other",value:"other"},{name:"Training",value:"training"},{name:"Preventive Maintenance",value:"preventive_maintenance"}],this.showErrorSummary=!1,this.formErrors=[],this.isSubmitting=!1,this.userExisted=!1,this.userExistedNotRegistered=!1,this.isLoading=!1,this.countryData=[],this.statesData=[],this.selectedCountry=null,this.isStateRequired=!1,this.serviceRequestForm=this.fb.group({companyName:["",[f.required,f.minLength(2),f.maxLength(100),f.pattern("^[a-zA-Z0-9\\s\\.,&'-]+$")]],email:["",[f.required,f.email,f.pattern("^[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}$")]],firstName:["",[f.required,f.minLength(2),f.maxLength(50),f.pattern("^[a-zA-Z\\s'-]+$")]],lastName:["",[f.required,f.minLength(2),f.maxLength(50),f.pattern("^[a-zA-Z\\s'-]+$")]],phoneNumber:["",[f.required,f.pattern("^[0-9]{10,15}$")]],address:["",[f.required,f.minLength(5),f.maxLength(200)]],city:["",[f.required,f.minLength(2),f.maxLength(50),f.pattern("^[a-zA-Z\\s'-]+$")]],postalCode:["",[f.required,f.pattern("^[a-zA-Z0-9\\s-]{3,10}$")]],serviceType:["",f.required],serviceType2:[""],serviceType3:[""],serialNumber:["",[f.required,f.minLength(3),f.maxLength(50)]],serialNumber2:[""],serialNumber3:[""],servicePreference:["now",f.required],country:["",f.required],state:[""],agreeTerms:[!1],description:["",f.maxLength(1e3)],futureDate:[""],purchaseOrder:[""]}),this.activeSessionCheck()}ngOnInit(){this.serviceRequestForm.valueChanges.subscribe(()=>{this.formErrors=this.getFormValidationErrors(),this.showErrorSummary=!0}),this.serviceRequestForm.get("email")?.valueChanges.subscribe(e=>{this.checkUserExists(e)}),this.serviceRequestForm.get("servicePreference")?.valueChanges.subscribe(e=>{let a=this.serviceRequestForm.get("futureDate");e==="future"?a?.setValidators([f.required]):a?.clearValidators(),a?.updateValueAndValidity()}),this.getCountries()}getFormValidationErrors(){let e=[];
1return Object.keys(this.serviceRequestForm.controls).forEach(a=>{let i=this.getFieldName(a);i=i.replace(/:$/,"");let c=this.serviceRequestForm.get(a);if(c&&c.invalid&&c.errors?.required&&e.push(i+" is required"),c&&c.invalid&&c?.hasError("minlength")){let h=c.errors?.minlength?.requiredLength;e.push(i+" must be at least "+h+" characters")}if(c&&c.invalid&&c?.hasError("maxlength")){let h=c.errors?.maxlength?.requiredLength;e.push(i+" cannot exceed "+h+" characters")}c?.hasError("pattern")&&(c&&c.invalid&&c?.hasError("pattern")&&i=="Email address"&&(e.push("Invalid email format (e.g., use@example.com)"),e.push(" Please enter a valid email address")),(i==="First Name"||i==="Last Name"||i==="City")&&e.push(i+" : Only letters, spaces, hyphens and apostrophes allowed"),(i==="Company Name"||i==="Postal Code")&&e.push("Invalid "+i+" format"),i==="Phone Number"&&e.push("Invalid phone number (10-15 digits required)"))}),e}getFieldName(e){return{companyName:this.translocoService.translate("user.CompanyName"),email:this.translocoService.translate("user.EmailAddress"),firstName:this.translocoService.translate("user.FirstName"),lastName:this.translocoService.translate("user.LastName"),phoneNumber:this.translocoService.translate("auth.PhoneNumber"),address:this.translocoService.translate("StreetAddress"),city:this.translocoService.translate("user.City"),postalCode:this.translocoService.translate("apps.PostalCode"),country:this.translocoService.translate("user.UsersCountry"),territoryLabel:this.translocoService.translate("service.TerritoryLabel"),serialNumber:this.translocoService.translate("user.Printer1SerialNumber"),serviceType:this.translocoService.translate("user.TypeofService"),servicePreference:this.translocoService.translate("user.PleaseSpecifyText"),futureDate:this.translocoService.translate("user.FutureDateText")}[e]||e}checkUserExists(e){if(e!=null&&e.trim()!==""&&this.serviceRequestForm.get("email")?.valid){let a={email:e};this.authService.isExistUser(a).subscribe({next:i=>{let c=i.isExisted,h=i?.error,y=this.serviceRequestForm.get("email");c?h==="user_existed_not_registered"?(this.formErrors.push(this.translocoService.translate("The email address you entered is already registered.")),y?.setErrors({userExistedNotRegistered:!0})):h==="user_existed"&&(this.formErrors.push(this.translocoService.translate("The email address you entered is already registered.")),y?.setErrors({userExisted:!0})):y?.setErrors(null)},error:i=>{}})}}activeSessionCheck(){this.isUserExist=this.oauthService.hasValidAccessToken(),this.isUserExist&&this.router.navigate(["/field-service/initiate-service-request"])}getCountries(){this.isLoading=!0,this.authService.getCountries(this.selectedCountry).pipe(De(()=>{})).subscribe({next:e=>{e&&(this.countryData=e),this.isLoading=!1},error:e=>{this.isLoading=!1},complete:()=>{this.isLoading=!1}})}getStates(e){if(!e){this.statesData=[];return}this.authService.getStates(e.toString()).subscribe({next:a=>{a&&(this.statesData=a)},error:a=>{}})}getFieldError(e){let a=this.serviceRequestForm.get(e);if(a?.invalid&&(a.dirty||a.touched)){if(a.hasError("required"))return`${e} is required`;if(a.hasError("email"))return"Invalid email format";if(a.hasError("pattern")){if(e==="email")return"Please enter a valid email address";if(e==="firstName"||e==="lastName"||e==="city")return"Only letters, spaces, hyphens and apostrophes allowed";if(e==="companyName")return"Invalid company name format";if(e==="phoneNumber")return"Invalid phone number (10-15 digits required)";if(e==="postalCode")return"Invalid postal code format"}if(a.hasError("minlength"))return`Minimum ${a.getError("minlength").requiredLength} characters required`;if(a.hasError("maxlength"))return`Maximum ${a.getError("maxlength").requiredLength} characters allowed`}return""}shouldShowError(e){let a=this.serviceRequestForm.get(e);return!!(a?.invalid&&(a.dirty||a.touched))}onCountryChange(){let e=this.serviceRequestForm.get("country")?.value;e==="US"?(this.isStateRequired=!0,this.getStates(240),this.serviceRequestForm.get("state")?.setValidators([f.required]),this.serviceRequestForm.get("state")?.updateValueAndValidity()):e==="CA"?(this.isStateRequired=!0,this.get
1States(44),this.serviceRequestForm.get("state")?.setValidators([f.required]),this.serviceRequestForm.get("state")?.updateValueAndValidity()):(this.isStateRequired=!1,this.statesData=[],this.serviceRequestForm.get("state")?.reset(),this.serviceRequestForm.get("state")?.clearValidators(),this.serviceRequestForm.get("state")?.updateValueAndValidity())}addSerialNumber(){this.additionalSerialNumbers.push({serialNumber:"",serviceType:""})}removeSerialNumber(e){this.additionalSerialNumbers.splice(e,1)}redirectToLogin(){this.authService.universalLogin("/field-service/initiate-service-request")}onPhoneNumberInput(e){let a=e.target.value.replace(/[^0-9]/g,"");this.serviceRequestForm.get("phoneNumber")?.setValue(a,{emitEvent:!1})}validateAdditionalPrinters(){return this.additionalSerialNumbers.some(e=>e.serialNumber.trim()!==""&&e.serviceType===""||e.serialNumber.trim()===""&&e.serviceType!=="")}buildPrinterDetails(e){let a=[];return e.serialNumber&&e.serviceType&&a.push({SerialNumber:e.serialNumber,ServiceType:e.serviceType}),this.additionalSerialNumbers.forEach(i=>{i.serialNumber.trim()&&i.serviceType&&a.push({SerialNumber:i.serialNumber,ServiceType:i.serviceType})}),a}getServicePreferenceDate(e){return e.servicePreference==="future"&&e.futureDate?new Date(e.futureDate).toISOString():new Date().toISOString()}buildSubmissionModel(e){return{companyName:e.companyName,email:e.email,firstName:e.firstName,lastName:e.lastName,phoneNumber:e.phoneNumber,address:e.address,city:e.city,postalCode:e.postalCode,country:e.country,state:e.state,PrinterDetails:this.buildPrinterDetails(e),ServicePreference:this.getServicePreferenceDate(e),Description:e.description||null,AgreeTerms:e.agreeTerms||!1,PONumber:e.purchaseOrder}}showMessage(e,a,i,c=3e3){this.messageService.add({severity:e,summary:a,detail:i,key:"t1",life:c})}handleSubmissionSuccess(e,a){this.isSubmitting=!1,console.log("API Response:",e);let i=e?.data?.guid;e?.success!==!1&&e?.status!=="error"?(this.showMessage("success","Success","Service request submitted successfully.",2e3),i&&this.router.navigate(["guest/onsite-service-request/confirmation",i],{state:{submittedData:a,responseData:e}}),this.serviceRequestForm.reset()):this.showMessage("error","Error",e?.message||"Failed to submit service request.")}handleSubmissionError(){this.isSubmitting=!1,console.error("API Error - Request failed"),this.showMessage("error","Error","Failed to submit service request.")}onSubmit(){if(!this.serviceRequestForm.valid)return;if(this.validateAdditionalPrinters()){this.showMessage("warn","Warning","Please complete all printer details or remove incomplete entries.");return}let e=this.buildSubmissionModel(this.serviceRequestForm.value);this.isSubmitting=!0,this.showMessage("info","Processing","Submitting your service request, please wait..."),this.onsiteService.SendDetailsToSalesforce(e).subscribe({next:a=>this.handleSubmissionSuccess(a,e),error:()=>this.handleSubmissionError()})}static{this.\u0275fac=function(a){return new(a||t)(_(Xe),_(ge),_(Ee),_(I),_(ve),_(P),_(be))}}static{this.\u0275cmp=F({type:t,selectors:[["app-service-request-form"]],standalone:!1,decls:194,vars:175,consts:[["submitSection",""],["key","t1"],["styleClass","p-4 my-2 sm:p-6 lg:p-8 min-h-0 shadow-lg rounded-xl"],[1,"gap-2","sm:gap-3","lg:gap-4",3,"ngSubmit","formGroup"],[1,"mb-3","text-start"],[1,"text-base","text-gray-700","sm:mb-6","sm:text-base"],[1,"cursor-pointer","px-2","py-1","text-sm","font-semibold","text-blue-600","hover:underline","sm:w-auto","sm:px-3","sm:py-2","sm:text-base",3,"click"],[1,""],[1,"grid","grid-cols-1","gap-3","sm:gap-4","md:grid-cols-2","lg:gap-5"],[1,"flex","flex-col","py-2"],[1,"inline-flex","items-center","pb-1","text-xs","font-semibold","text-gray-700","sm:text-sm"],[1,"ml-1","text-red-500"],["pInputText","","formControlName","companyName","type","text",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],[1,"mt-1","text-xs","text-red-500"],["for","formEmail",1,"inline-flex","items-center","pb-1","text-xs","font-semibold","text-gray-700","sm:text-sm"],["pInputText","","type","email","formControlName","email","id","formEmail","name","email",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],["pInputText","","type","text","formControlName","firstName",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","capitalize","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],["pInputText","","type","text","formControlName","lastName",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","capitalize","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],["pInputText","","type","tel","formControlName","phoneNumber","maxlength","15",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"input","placeholder"],["pInputText","","formControlName","address","type","text",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],["pInputText","","type","text","formControlName","city",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","capitalize","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],["pInputText","","type","text","formControlName","postalCode",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],["formControlName","country","filterBy","countryName","optionLabel","countryName","optionValue","isoCode",1,"w-full",3,"onChange","filter","options","placeholder"],["formControlName","state","filterBy","stateName","optionLabel","stateName","optionValue","isoCode",1,"w-full",3,"filter","options","placeholder"],[1,"grid","grid-cols-1","items-end","gap-3","sm:gap-4","md:grid-cols-2","lg:gap-5"],[1,"pb-1","text-xs","font-medium","text-gray-700","sm:text-sm"],["pInputText","","type","text","formControlName","purchaseOrder",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],[1,"flex","flex-wrap","gap-3","sm:gap-4"],[1,"flex","items-center"],["name","servicePreference","formControlName","servicePreference","value","now","inputId","serviceNow"],["for","serviceNow",1,"ml-2","cursor-pointer","text-xs","text-gray-700","sm:text-sm"],["name","servicePreference","formControlName","servicePreference","value","future","inputId","serviceFuture"],["for","serviceFuture",1,"ml-2","cursor-pointer","text-xs","text-gray-700","sm:text-sm"],[1,"space-y-3","sm:space-y-4"],["pInputText","","type","text","formControlName","serialNumber",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],["formControlName","serviceType","placeholder","Select...","optionLabel","name","optionValue","value",1,"w-full",3,"options"],[1,"grid","grid-cols-1","gap-3","rounded-lg","border","border-gray-200","bg-gray-50","p-3","sm:gap-4","sm:p-4","md:grid-cols-2","lg:gap-5"],[1,"flex","flex-wrap","items-center","gap-3","sm:gap-4"],["type","button","styleClass","text-xs sm:text-sm font-medium rounded-lg shadow-sm hover:shadow-md transition-all duration-200",3,"click"],[1,"pi","pi-plus","text-xs","
1sm:text-sm"],[1,"pb-1","text-xs","font-medium","text-blue-600","sm:text-sm"],["pInputTextarea","","formControlName","description","rows","3",1,"w-full","resize-none","rounded-lg","border","border-gray-300","p-2.5","text-sm","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"placeholder"],[1,"mt-6","sm:mt-8"],[1,"flex","items-start","justify-center"],[1,"flex","max-w-4xl","items-start"],["value","0","formControlName","agreeTerms",1,"mt-0.5","shrink-0","sm:mt-1",3,"binary"],["for","marketingConsent",1,"ml-2","text-xs","leading-relaxed","text-gray-700","sm:ml-3","sm:text-sm"],[1,"mt-4","px-4","text-center","text-xs","text-gray-700","sm:mt-5","sm:text-sm"],["href","https://global.videojet.com/wp-content/uploads/dam/pdf/NA%20-%20English/privacy-policy/Videojet-online-terms-of-use-us.pdf","target","_blank",1,"text-blue-600","underline","transition-colors","hover:text-blue-800"],["routerLink","/pages/privacy-notice",1,"text-blue-600","underline","transition-colors","hover:text-blue-800"],[1,"bg-red-5-","boredr","mb-4","rounded","border-red-300","p-4"],[1,"mt-4","text-center","sm:mt-5"],["type","submit","styleClass","w-full sm:w-auto text-sm sm:text-base font-semibold rounded-lg shadow-md hover:shadow-lg transition-all duration-200",1,"next",3,"disabled","loading"],[1,"pi","pi-send","mr-2"],[1,"pi","pi-exclamation-circle","mr-1"],[1,"pi","pi-info-circle","mr-1"],[1,"cursor-pointer","text-blue-600","underline"],[1,"inline-flex","text-xs","font-semibold","text-blue-600","sm:text-sm"],["showIcon","true","formControlName","futureDate","aria-placeholder","Future Date","styleClass","w-full",3,"placeholder","autofocus","dateFormat"],[1,"text-xs","font-medium","text-gray-700","sm:text-sm"],["pInputText","","type","text",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","text-sm","transition-all","duration-200","focus:border-transparent","focus:ring-2","focus:ring-blue-500","sm:p-3","sm:text-base",3,"ngModelChange","ngModel","ngModelOptions","placeholder"],[1,"flex","gap-2","sm:gap-3"],["placeholder","Select...","optionLabel","name","optionValue","value",1,"flex-1",3,"ngModelChange","options","ngModel","ngModelOptions"],["type","button","aria-label","Remove serial number",1,"inline-flex","shrink-0","items-center","justify-center","rounded-lg","p-2","text-red-600","transition-colors","duration-200","hover:bg-red-100","sm:p-2.5",3,"click"],[1,"pi","pi-trash","text-sm","sm:text-base"],[1,"list-disc","pl-5","text-xs"],[1,"pb-1","text-red-500"]],template:function(a,i){if(a&1&&(l(0,"p-toast",1),r(1,"p-card",2)(2,"form",3),S("ngSubmit",function(){return i.onSubmit()}),r(3,"div",4)(4,"p",5),s(5),m(6,"transloco"),r(7,"a",6),S("click",function(){return i.redirectToLogin()}),s(8),m(9,"transloco"),o()()(),r(10,"div",7)(11,"div",8)(12,"div",9)(13,"label",10),s(14),m(15,"transloco"),r(16,"span",11),s(17,"*"),o()(),l(18,"input",12),m(19,"transloco"),v(20,Ut,5,4,"div",13),o(),r(21,"div",9)(22,"label",14),s(23),m(24,"transloco"),r(25,"span",11),s(26,"*"),o()(),l(27,"input",15),m(28,"transloco"),v(29,Ht,4,3,"div",13),v(30,$t,7,6,"div",13),o()(),r(31,"div",8)(32,"div",9)(33,"label",10),s(34),m(35,"transloco"),r(36,"span",11),s(37,"*"),o()(),l(38,"input",16),m(39,"transloco"),v(40,Yt,5,4,"div",13),o(),r(41,"div",9)(42,"label",10),s(43),m(44,"transloco"),r(45,"span",11),s(46,"*"),o()(),l(47,"input",17),m(48,"transloco"),v(49,ti,5,4,"div",13),o()(),r(50,"div",8)(51,"div",9)(52,"label",10),s(53),m(54,"transloco"),r(55,"span",11),s(56,"*"),o()(),r(57,"input",18),m(58,"transloco"),S("input",function(h){return i.onPhoneNumberInput(h)}),o(),v(59,ri,3,2,"div",13),o(),r(60,"div",9)(61,"label",10),s(62),m(63,"transloco"),r(64,"span",11),s(65,"*"),o()(),l(66,"input",19),m(67,"transloco"),v(68,li,4,3,"div",13),o()(),r(69,"div",8)(70,"div",9)(71,"label",10),s(72),m(73,"transloco"),r(74,"span",11),s(75,"*"),o()(),l(76,"input",20),m(77,"transloco"),v(78,di,4,3,"div",13),o(),r(79,"div",9)(80,"label",10),s(81),m(82,"transloco"),r(83,"span",11),s(84,"*"),o()(),l(85,"input",21),m(86,"transloco"),v(87,gi,3,2,"div",13),o()(),r(88,"div",8)(89,"div",9)(90,"label",10),s(91),m(92,"transloco"),r(93,"span",11),s(94,"*"),o()(),r(95,"p-select",22),m(96,"transloco"),S("onChange",function(){return i.onCountryChange()}),o(),v(97,xi,2,1,"div",13),o(),r(98,"div",9)(99,"label",10),s(100),m(101,"transloco"),l(102,"span",11),v(103,fi,2,0,"span",11),o(),l(104,"p-select",23),m(105,"transloco"),v(106,_i,2,1,"div",13),o()(),r(107,"div",24)(108,"div",9)(109,"label",25),s(110),m(111,"transloco"),o(),l(112,"input",26),m(113,"transloco"),o(),r(114,"div",9)(115,"label",10),s(116),m(117,"transloco"),r(118,"span",11),s(119,"*"),o()(),r(120,"div",27)(121,"div",28),l(122,"p-radiobutton",29),r(123,"label",30),s(124),m(125,"transloco"),o()(),r(126,"div",28),l(127,"p-radiobutton",31),r(128,"label",32),s(129),m(130,"transloco"),o()()(),v(131,Si,2,1,"div",13),o()(),r(132,"div",24),v(133,Ei,9,10,"div",9),o(),r(134,"div",33)(135,"div",8)(136,"div",9)(137,"label",10),s(138),m(139,"transloco"),r(140,"span",11),s(141,"*"),o()(),l(142,"input",34),m(143,"transloco"),v(144,Ti,4,3,"div",13),o(),r(145,"div",9)(14
16,"label",10),s(147),m(148,"transloco"),r(149,"span",11),s(150,"*"),o()(),l(151,"p-select",35),v(152,Ii,2,1,"div",13),o()(),Te(153,Pi,15,19,"div",36,Ne),r(155,"div",37)(156,"p-button",38),S("click",function(){return i.addSerialNumber()}),l(157,"i",39),s(158),m(159,"transloco"),o()()(),r(160,"div",9)(161,"label",40),s(162),m(163,"transloco"),o(),l(164,"textarea",41),m(165,"transloco"),o()(),r(166,"div",42)(167,"div",43)(168,"div",44),l(169,"p-checkbox",45),r(170,"label",46),s(171),m(172,"transloco"),m(173,"transloco"),o()()(),r(174,"div",47)(175,"p"),s(176),m(177,"transloco"),r(178,"a",48),s(179),m(180,"transloco"),o(),s(181," and "),r(182,"a",49),s(183),m(184,"transloco"),o(),s(185,". "),o()(),r(186,"div",null,0),v(188,ki,4,0,"div",50),r(189,"div",51)(190,"p-button",52),v(191,Mi,1,0,"i",53),s(192),m(193,"transloco"),o()()()()()()),a&2){let c,h,y,q,O,k,B,ie,D,ne,L,re,V,oe,U,ae,j,A,G,H,Me,se,$,z;n(2),x("formGroup",i.serviceRequestForm),n(3),d(" ",p(6,97,"Already have an account?")," "),n(3),d(" ",p(9,99,"service.LogInOnsiteServiceRequest")," "),n(6),d(" ",p(15,101,"user.CompanyName")),n(4),N("ng-invalid",((c=i.serviceRequestForm.get("companyName"))==null?null:c.invalid)&&((c=i.serviceRequestForm.get("companyName"))==null?null:c.touched)),x("placeholder",b(p(19,103,"user.EnterCompanyName"))),n(2),g((h=i.serviceRequestForm.get("companyName"))!=null&&h.invalid&&((h=i.serviceRequestForm.get("companyName"))!=null&&h.dirty||(h=i.serviceRequestForm.get("companyName"))!=null&&h.touched)?20:-1),n(3),d(" ",p(24,105,"user.EmailAddress")),n(4),N("ng-invalid",((y=i.serviceRequestForm.get("email"))==null?null:y.invalid)&&((y=i.serviceRequestForm.get("email"))==null?null:y.touched)),x("placeholder",b(p(28,107,"Enter Email Address"))),n(2),g((q=i.serviceRequestForm.get("email"))!=null&&q.invalid&&((q=i.serviceRequestForm.get("email"))!=null&&q.dirty||(q=i.serviceRequestForm.get("email"))!=null&&q.touched)?29:-1),n(),g((O=i.serviceRequestForm.get("email"))!=null&&O.hasError("userExisted")||(O=i.serviceRequestForm.get("email"))!=null&&O.hasError("userExistedNotRegistered")?30:-1),n(4),d(" ",p(35,109,"user.FirstName")),n(4),N("ng-invalid",((k=i.serviceRequestForm.get("firstName"))==null?null:k.invalid)&&((k=i.serviceRequestForm.get("firstName"))==null?null:k.touched)),x("placeholder",b(p(39,111,"user.EnterFirstName"))),n(2),g((B=i.serviceRequestForm.get("firstName"))!=null&&B.invalid&&((B=i.serviceRequestForm.get("firstName"))!=null&&B.dirty||(B=i.serviceRequestForm.get("firstName"))!=null&&B.touched)?40:-1),n(3),d(" ",p(44,113,"user.LastName")),n(4),N("ng-invalid",((ie=i.serviceRequestForm.get("lastName"))==null?null:ie.invalid)&&((ie=i.serviceRequestForm.get("lastName"))==null?null:ie.touched)),x("placeholder",b(p(48,115,"user.EnterLastName"))),n(2),g((D=i.serviceRequestForm.get("lastName"))!=null&&D.invalid&&((D=i.serviceRequestForm.get("lastName"))!=null&&D.dirty||(D=i.serviceRequestForm.get("lastName"))!=null&&D.touched)?49:-1),n(4),d(" ",p(54,117,"auth.PhoneNumber")),n(4),N("ng-invalid",((ne=i.serviceRequestForm.get("phoneNumber"))==null?null:ne.invalid)&&((ne=i.serviceRequestForm.get("phoneNumber"))==null?null:ne.touched)),x("placeholder",b(p(58,119,"auth.EnterPhoneNumber"))),n(2),g((L=i.serviceRequestForm.get("phoneNumber"))!=null&&L.invalid&&((L=i.serviceRequestForm.get("phoneNumber"))!=null&&L.dirty||(L=i.serviceRequestForm.get("phoneNumber"))!=null&&L.touched)?59:-1),n(3),d(" ",p(63,121,"service.StreetAddress")),n(4),N("ng-invalid",((re=i.serviceRequestForm.get("address"))==null?null:re.invalid)&&((re=i.serviceRequestForm.get("address"))==null?null:re.touched)),x("placeholder",b(p(67,123,"apps.EnterStreetAddress"))),n(2),g((V=i.serviceRequestForm.get("address"))!=null&&V.invalid&&((V=i.serviceRequestForm.get("address"))!=null&&V.dirty||(V=i.serviceRequestForm.get("address"))!=null&&V.touched)?68:-1),n(4),d(" ",p(73,125,"user.City")),n(4),N("ng-invalid",((oe=i.serviceRequestForm.get("city"))==null?null:oe.invalid)&&((oe=i.serviceRequestForm.get("city"))==null?null:oe.touched)),x("placeholder",b(p(77,127,"user.EnterCity"))),n(2),g((U=i.serviceRequestForm.get("city"))!=null&&U.invalid&&((U=i.serviceRequestForm.get("city"))!=null&&U.dirty||(U=i.serviceRequestForm.get("city"))!=null&&U.touched)?78:-1),n(3),d(" ",p(82,129,"apps.PostalCode")),n(4),N("ng-invalid",((ae=i.serviceRequestForm.get("postalCode"))==null?null:ae.invalid)&&
1((ae=i.serviceRequestForm.get("postalCode"))==null?null:ae.touched)),x("placeholder",b(p(86,131,"apps.EnterPostalCode"))),n(2),g((j=i.serviceRequestForm.get("postalCode"))!=null&&j.invalid&&((j=i.serviceRequestForm.get("postalCode"))!=null&&j.dirty||(j=i.serviceRequestForm.get("postalCode"))!=null&&j.touched)?87:-1),n(4),d(" ",p(92,133,"user.UsersCountry")),n(4),x("placeholder",b(p(96,135,"user.Country")))("filter",!0)("options",i.countryData),n(2),g((A=i.serviceRequestForm.get("country"))!=null&&A.invalid&&((A=i.serviceRequestForm.get("country"))!=null&&A.dirty||(A=i.serviceRequestForm.get("country"))!=null&&A.touched)?97:-1),n(3),d(" ",p(101,137,"service.TerritoryLabel")),n(3),g(i.isStateRequired?103:-1),n(),x("placeholder",b(p(105,139,"user.State")))("filter",!0)("options",i.statesData),n(2),g(i.isStateRequired&&((G=i.serviceRequestForm.get("state"))!=null&&G.invalid)&&((G=i.serviceRequestForm.get("state"))!=null&&G.dirty||(G=i.serviceRequestForm.get("state"))!=null&&G.touched)?106:-1),n(4),d(" ",p(111,141,"service.PurchaseOrderText")," "),n(2),x("placeholder",b(p(113,143,"service.PurchaseOrderNumberPlaceholder"))),n(4),d(" ",p(117,145,"service.PleaseSpecifyText")),n(8),Q(p(125,147,"service.ServiceNow")),n(5),Q(p(130,149,"service.ServiceDateLabel")),n(2),g((H=i.serviceRequestForm.get("servicePreference"))!=null&&H.invalid&&((H=i.serviceRequestForm.get("servicePreference"))!=null&&H.dirty||(H=i.serviceRequestForm.get("servicePreference"))!=null&&H.touched)?131:-1),n(2),g(((Me=i.serviceRequestForm.get("servicePreference"))==null?null:Me.value)==="future"?133:-1),n(5),d(" ",p(139,151,"service.Printer1SerialNumber")),n(4),N("ng-invalid",((se=i.serviceRequestForm.get("serialNumber"))==null?null:se.invalid)&&((se=i.serviceRequestForm.get("serialNumber"))==null?null:se.touched)),x("placeholder",b(p(143,153,"service.EnterSerialNumber"))),n(2),g(($=i.serviceRequestForm.get("serialNumber"))!=null&&$.invalid&&(($=i.serviceRequestForm.get("serialNumber"))!=null&&$.dirty||($=i.serviceRequestForm.get("serialNumber"))!=null&&$.touched)?144:-1),n(3),d(" ",p(148,155,"service.TypeofService")),n(4),x("options",i.serviceTypeOptions),n(),g((z=i.serviceRequestForm.get("serviceType"))!=null&&z.invalid&&((z=i.serviceRequestForm.get("serviceType"))!=null&&z.dirty||(z=i.serviceRequestForm.get("serviceType"))!=null&&z.touched)?152:-1),n(),we(i.additionalSerialNumbers),n(5),d(" ",p(159,157,"service.AddNew")," "),n(4),d(" ",p(163,159,"service.IssueDesc"),": "),n(2),x("placeholder",b(p(165,161,"service.IssueText"))),n(5),x("binary",!0),n(2),J(" ",p(172,163,"service.RequestFormSolutionText")," ",p(173,165,"service.AnyTime"),". "),n(5),d(" ",p(177,167,"service.SubmitFormText")," "),n(3),Q(p(180,169,"Terms")),n(4),Q(p(184,171,"PrivacyPolicy")),n(5),g(i.showErrorSummary?188:-1),n(2),x("disabled",!i.serviceRequestForm.valid||i.isSubmitting)("loading",i.isSubmitting),n(),g(i.isSubmitting?-1:191),n(),d(" ",p(193,173,"service.RequestService")," ")}},dependencies:[Ze,$e,ze,We,Qe,Ke,Ye,Je,he,rt,tt,at,ot,fe,K,lt,st,Y,T],styles:[`[_nghost-%COMP%] .p-dropdown, [_nghost-%COMP%] .p-select{background:#fff;border:1px solid #d1d5db!important;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s!important;border-radius:6px!important;box-shadow:none;font-weight:600;font-size:1rem}[_nghost-%COMP%] placeholder{background:transparent;border:0 none;color:#8695ba}[_nghost-%COMP%] .p-dropdown .p-dropdown-label:focus, [_nghost-%COMP%] .p-select .p-select-label:focus{color:#222}input.ng-invalid.ng-touched[_ngcontent-%COMP%], input.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border-color:#ef4444!important;background-color:#fef2f2!important}input.ng-valid.ng-touched[_ngcontent-%COMP%], input.ng-valid.ng-dirty[_ngcontent-%COMP%]{border-color:#10b981!important}[_nghost-%COMP%] .p-dropdown.ng-invalid.ng-touched .p-dropdown-trigger, [_nghost-%COMP%] .p-dropdown.ng-invalid.ng-dirty .p-dropdown-trigger, [_nghost-%COMP%] .p-select.ng-invalid.ng-touched, [_nghost-%COMP%] .p-select.ng-invalid.ng-dirty{border-color:#ef4444!important}[_nghost-%COMP%] .p-dropdown.ng-valid.ng-touched .p-dropdown-trigger, [_nghost-%COMP%] .p-dropdown.ng-valid.ng-dirty .p-dropdown-trigger, [_nghost-%COMP%] .p-select.ng-valid.ng-touched, [_nghost-%COMP%] .p-select.ng-valid.ng-dirty{border-color:#10b981!important}.text-red-500[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;animation:_ngcontent-%COMP%_slideDown .3s ease-out}@keyframes _ngcontent-%COMP%_slideDown{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}input[_ngcontent-%COMP%]:focus, [_nghost-%COMP%] .p-dropdown:focus, [_nghost-%COMP%] .p-select:focus{outline:2px solid #3b82f6;outline-offset:2px;box-shadow:0 0 0 3px #3b82f61a}input.ng-valid.ng-touched[_ngcontent-%COMP%]:not([type=checkbox]):not([type=radio]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;background-size:1.25rem;padding-right:2.5rem}textarea.ng-invalid.ng-touched[_ngcontent-%COMP%], textarea.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border-color:#ef4444!important;background-color:#fef2f2!important}textarea.ng-valid.ng-touched[_ngcontent-%COMP%], textarea.ng-valid.ng-dirty[_ngcontent-%COMP%]{border-color:#10b981!important}`]})}}return t})();function ji(t,u){if(t&1){let e=w();r(0,"div")(1,"h4",15),s(2),m(3,"transloco"),o(),r(4,"p",16),s(5),m(6,"transloco"),o(),r(7,"a",17),S("click",function(){E(e);let i=C();
1return R(i.openChatWindow(i.supportNumbers[0].chatGroupId))}),s(8),m(9,"transloco"),o()()}t&2&&(n(2),d(" ",p(3,3,"ChatAssistance")," "),n(3),d(" ",p(6,5,"OnsiteServiceTechSupportText")," "),n(3),d("",p(9,7,"ChatNow"),"."))}var St=(()=>{class t{constructor(e,a,i,c){this.oauthService=e,this.commonService=a,this.supportService=i,this.liveChatService=c,this.supportNumbers=[],this.guestCountryCode="",me(()=>{let h=this.supportService.supportContactNumbers();this.supportNumbers=h?.find(y=>y.supportType?.toLowerCase()==="customer care")?[h.find(y=>y.supportType?.toLowerCase()==="customer care")]:[]})}ngOnInit(){this.updateCountryCode(),this.commonService.languageChangeSubject.subscribe(()=>this.updateCountryCode())}updateCountryCode(){let e=localStorage.getItem("selectedCountry"),a=navigator.language.split("-")[1];this.guestCountryCode=(e||a||"").toUpperCase()}openChatWindow(e){this.liveChatService.openChatWindow(e)}closeChatWindow(){this.liveChatService.closeChatWindow()}logIn(){this.oauthService.initLoginFlow()}static{this.\u0275fac=function(a){return new(a||t)(_(P),_(Se),_(ue),_(Ce))}}static{this.\u0275cmp=F({type:t,selectors:[["app-onsite-service-request"]],standalone:!1,decls:29,vars:16,consts:[[1,"mx-auto","max-w-(--breakpoint-2xl)","px-2","py-6"],[1,"mb-6","grid","grid-cols-1","gap-4","sm:gap-6","lg:mb-6","lg:grid-cols-12","lg:gap-6"],[1,"mt-6","lg:col-span-8","lg:mt-0"],[1,"grid","grid-cols-1","px-2"],[1,"text-xl","font-bold","text-gray-900","sm:text-xl","md:text-xl","lg:text-xl"],[1,"py-2","sm:py-3"],[1,"py-2","text-sm","leading-relaxed","text-gray-700","sm:text-base"],[1,"space-y-4","sm:space-y-6","lg:col-span-4","lg:space-y-8"],["styleClass","p-4 sm:p-5 min-h-0 shadow-md"],[1,"rounded-lg"],[1,"flex","items-start","sm:mb-6"],[1,"pi","pi-clock","shrink-0","pr-2","text-lg","sm:pr-3","sm:text-3xl"],[1,"text-base","font-semibold","text-gray-900","sm:text-lg"],[1,"mb-4","sm:mb-6"],[1,"block","mt-2"],[1,"mb-2","text-sm","font-semibold","text-gray-900","sm:text-base"],[1,"mb-2","text-xs","text-gray-700","sm:text-sm"],[1,"cursor-pointer","text-xs","font-semibold","text-blue-200","hover:underline","sm:text-sm",3,"click"]],template:function(a,i){a&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),s(5),m(6,"transloco"),o(),r(7,"div",5)(8,"p",6),s(9),m(10,"transloco"),o(),r(11,"p",6),s(12),m(13,"transloco"),o(),r(14,"p",6),s(15),m(16,"transloco"),o()()(),l(17,"app-service-request-form"),o(),r(18,"div",7)(19,"p-card",8)(20,"div",9)(21,"div",10),l(22,"i",11),r(23,"h3",12),s(24),m(25,"transloco"),o()(),r(26,"div",13),l(27,"app-get-support-info-by-country",14),o(),v(28,ji,10,9,"div"),o()()()()()),a&2&&(n(5),d(" ",p(6,6,"RequestOnsiteService")," "),n(4),d(" ",p(10,8,"service.OnsiteServiceRequestDesc")," "),n(3),d(" ",p(13,10,"service.ServiceRequestProcess")," "),n(3),d(" ",p(16,12,"service.ServiceRequestFormProcess")," "),n(9),d(" ",p(25,14,"service.OnsiteServiceRequestText")," "),n(4),g(i.guestCountryCode!=="CN"?28:-1))},dependencies:[K,_e,bt,T],encapsulation:2})}}return t})();function Ai(t,u){if(t&1&&(r(0,"div",9)(1,"div",13)(2,"div",14),s(3," \u2713 "),o(),r(4,"div")(5,"p",15),s(6),o()()()()),t&2){let e=C();n(6),d(" ",e.successText," ")}}function Gi(t,u){if(t&1){let e=w();r(0,"div")(1,"h3",16),s(2),m(3,"transloco"),o(),r(4,"p",17),s(5),m(6,"transloco"),o(),r(7,"div",18)(8,"button",19),S("click",function(){E(e);let i=C();return R(i.onSubmitOnsiteRequest())}),s(9),m(10,"transloco"),o()()()}t&2&&(n(2),d(" ",p(3,3,"CreateAnAccount")," "),n(3),d(" ",p(6,5,"service.CreateAccountConfirmText")," "),n(4),d(" ",p(10,7,"shared.RequestTempPassword")," \xA0 > "))}var yt=(()=>{class t{constructor(e,a,i,c){this.router=e,this.onsiteService=a,this.messageService=i,this.route=c,this.guid="",this.submittedData=null,this.responseData=null,this.firstName="",this.lastName="",this.isRequesting=!1,this.isSuccess=!1,this.successText="";let h=this.router.getCurrentNavigation();console.log("navigationConfirmation",h),h?.extras.state&&(this.submittedData=h.extras.state.submittedData,this.responseData=h.extras.state.responseData,sessionStorage.setItem("submittedData",JSON.stringify(this.submittedData)),sessionStorage.setItem("responseData",JSON.stringify(this.responseData)))}
1ngOnInit(){let e=this.route.snapshot.paramMap.get("id");if(!e){this.messageService.add({severity:"warn",summary:"Not Allowed",detail:"Confirmation page requires a valid request ID.",key:"t1",life:2500}),this.router.navigate(["/guest/onsite-service-request"]);return}if(this.guid=e,!this.submittedData){let a=sessionStorage.getItem("submittedData");a&&(this.submittedData=JSON.parse(a))}if(!this.responseData){let a=sessionStorage.getItem("responseData");a&&(this.responseData=JSON.parse(a))}this.firstName=this.responseData?.data?.firstName??this.submittedData?.firstName??"",this.lastName=this.responseData?.data?.lastName??this.submittedData?.lastName??""}onSubmitOnsiteRequest(){if(!this.submittedData){this.messageService.add({severity:"error",summary:"Error",detail:"No form data available. Please submit the form again.",key:"t1"});return}let e=this.submittedData;this.onsiteService.CreateSSOUserBasedonSchedulingRequest(e).subscribe({next:a=>{this.isRequesting=!0,this.successText="The credentials have been sent to the provided email address.",a?.success?(this.messageService.add({severity:"success",summary:"Success",detail:this.successText,key:"t1",life:2e3}),this.responseData=a):(this.messageService.add({severity:"error",summary:"Error",detail:a?.message||"Failed to submit onsite service request.",key:"t1"}),this.isSuccess=!1)},error:a=>{console.error("Error submitting onsite request:",a),this.isRequesting=!1,this.isSuccess=!1,this.messageService.add({severity:"error",summary:"Error",detail:"Failed to submit onsite service request. Please try again.",key:"t1"})}})}goBackToForm(){this.router.navigate(["/onsite-service-request"])}getPrinterDetails(){return this.submittedData?.PrinterDetails||[]}getServicePreferenceDisplay(){return this.submittedData?.ServicePreference==="now"?"Service Now":this.submittedData?.ServicePreference?`Scheduled for: ${new Date(this.submittedData.ServicePreference).toLocaleDateString()}`:"Not specified"}static{this.\u0275fac=function(a){return new(a||t)(_(I),_(Ee),_(ge),_(Ge))}}static{this.\u0275cmp=F({type:t,selectors:[["app-service-request-confirmation"]],standalone:!1,decls:25,vars:17,consts:[["key","t1"],[1,"mx-auto","max-w-(--breakpoint-2xl)","p-6"],["styleClass","p-5 shadow-md"],[1,"grid","grid-cols-1","lg:grid-cols-2"],[1,"mb-6"],[1,"mb-4","text-2xl","font-bold","text-green-600"],[1,"text-base","font-medium","sm:text-lg"],[1,"font-semibold"],[1,"text-base","leading-relaxed","text-gray-700"],[1,"mt-0"],[1,"mt-6","pl-5","md:pl-8","lg:mt-0","lg:pl-12"],[1,"w-full"],["src","assets/images/service-request1.png","alt","Videojet Technician working on equipment",1,"rounded-lg"],[1,"flex","items-start"],[1,"mt-1","mr-3","inline-flex","h-6","w-6","items-center","justify-center","rounded-full","bg-green-600","text-white"],[1,"mt-2","text-sm","text-green-900","sm:text-base"],[1,"mb-3","text-xl","font-semibold","text-gray-900"],[1,"mb-4","text-base","leading-relaxed","text-gray-700"],[1,"pb-3"],[1,"cursor-pointer","rounded-full","bg-blue-200","px-4","py-2","font-semibold","text-white","transition","hover:bg-blue-300",3,"click"]],template:function(a,i){a&1&&(l(0,"p-toast",0),r(1,"div",1)(2,"p-card",2)(3,"div",3)(4,"div")(5,"div",4)(6,"h2",5),s(7),m(8,"transloco"),o(),r(9,"div",4)(10,"p",6),s(11),m(12,"transloco"),r(13,"span",7),s(14),m(15,"uppercase"),m(16,"uppercase"),o()()(),r(17,"p",8),s(18),m(19,"transloco"),o()(),v(20,Ai,7,1,"div",9),v(21,Gi,11,9,"div"),o(),r(22,"div",10)(23,"div",11),l(24,"img",12),o()()()()()),a&2&&(n(7),d(" ",p(8,7,"OnsiteServiceRequestThankYouText")," "),n(4),d(" ",p(12,9,"shared.Hello"),", "),n(3),J(" ",p(15,11,i.firstName)," ",p(16,13,i.lastName),"! "),n(4),d(" ",p(19,15,"service.OnsiteServiceRequestConfirmText")," "),n(2),g(i.isRequesting?20:-1),n(),g(i.isRequesting?-1:21))},dependencies:[fe,K,Ue,T],encapsulation:2})}}return t})();function Hi(t,u){if(t&1&&(r(0,"p",17),l(1,"i",18),s(2),m(3,"transloco"),o(),l(4,"br"),r(5,"p",17)(6,"a",24),l(7,"app-get-support-info-by-country",25),o(),l(8,"br"),r(9,"span",26),s(10),o()(),l(11,"p-divider"),r(12,"p",17),l(13,"i",18),s(14),m(15,"transloco"),o(),l(16,"br"),r(17,"p",17)(18,"a",24),l(19,"app-get-support-info-by-country",25),o(),l(20,"br"),r(21,"span",26),s(22,"[email protected]"),o()()),t&2){let e=C();n(2),d(" ",p(3,11,"GlobalResources.UnitedStates")," "),n(4),x("href",Z("tel:",e.supportNumbers[
10]==null?null:e.supportNumbers[0].supportNumber),W),n(),x("infoType","Customer Care")("propertyName","supportNumber"),n(3),d(" ",e.serviceEmail()," "),n(4),d(" ",p(15,13,"GlobalResources.Canada")," "),n(4),x("href",Z("tel:",e.supportNumbers[0]==null?null:e.supportNumbers[0].supportNumber),W),n(),x("infoType","Customer Care")("propertyName","supportNumber")}}function $i(t,u){if(t&1&&(r(0,"p",17),l(1,"i",18),s(2),o(),l(3,"br"),r(4,"p",17)(5,"a",24),l(6,"app-get-support-info-by-country",25),o(),l(7,"br"),r(8,"span",26),s(9),o()()),t&2){let e=C();n(2),d(" ",(e.userInfo==null?null:e.userInfo.countryName)||e.countryName," "),n(3),x("href",Z("tel:",e.supportNumbers[0]==null?null:e.supportNumbers[0].supportNumber),W),n(),x("infoType","Customer Care")("propertyName","supportNumber"),n(3),d(" ",e.serviceEmail()," ")}}function zi(t,u){t&1&&(l(0,"i",18),s(1),m(2,"transloco")),t&2&&(n(),d(" ",p(2,1,"United States & Canada")," "))}function Wi(t,u){if(t&1&&(l(0,"i",18),s(1)),t&2){let e=C();n(),d(" ",(e.userInfo==null?null:e.userInfo.countryName)||e.countryName," ")}}function Ji(t,u){t&1&&(l(0,"i",18),s(1),m(2,"transloco")),t&2&&(n(),d(" ",p(2,1,"United States & Canada")," "))}function Zi(t,u){if(t&1&&(l(0,"i",18),s(1)),t&2){let e=C();n(),d(" ",(e.userInfo==null?null:e.userInfo.countryName)||e.countryName," ")}}var qt=(()=>{class t{constructor(e,a,i,c,h,y){this.oauthService=e,this.commonService=a,this.supportService=i,this.liveChatService=c,this.activeUserService=h,this.http=y,this.supportNumbers=[],this.guestCountryCode="",this.userInfo={},this.languages=[],this.countryName="",this.customerCareRecord=ce(()=>{let q=this.supportService.supportContactNumbers();return q?q.find(O=>O.supportType?.toLowerCase()==="customer care")??null:null}),this.supportNumber=ce(()=>this.customerCareRecord()?.supportNumber?.trim()||""),this.serviceEmail=ce(()=>this.customerCareRecord()?.serviceEmail?.trim()||""),me(()=>{let O=this.supportService.supportContactNumbers()?.find(k=>k.supportType?.toLowerCase()==="customer care"&&k.langCode?.toUpperCase().includes(this.guestCountryCode));this.getUserInfo()})}ngOnInit(){this.updateCountryCode(),this.loadLanguages(),this.activeUserService.userAccessData$.subscribe(e=>{this.userInfo=e}),this.commonService.languageChangeSubject.subscribe(()=>{this.updateCountryCode(),this.loadLanguages()})}loadLanguages(){this.http.get("/assets/i18n/language.json").subscribe(e=>{this.languages=e.languages;let a=localStorage.getItem("selectedCountry")||"",i=this.languages.find(c=>c.isoCountryCode?.toUpperCase()===a.toUpperCase());this.countryName=i?.name||a,console.log("Selected:",a),console.log("Mapped Name:",this.countryName)})}updateCountryOptions(e){if(!e||!this.languages.length){this.countryName="";return}let a=this.languages.find(i=>i.isoCountryCode?.toUpperCase()===e.toUpperCase());this.countryName=a?.name||e}getCountryName(e){return!e||!this.languages?.length?"":this.languages.find(i=>i.isoCountryCode?.toUpperCase()===e.toUpperCase())?.name||e}getUserInfo(){this.activeUserService.userAccessData$.subscribe(e=>{this.userInfo=e})}updateCountryCode(){let e=localStorage.getItem("selectedCountry"),a=navigator.language.split("-")[1];this.guestCountryCode=(e||a||"").toUpperCase()}isUSCountry(){return this.guestCountryCode==="US"}openChatWindow(e){this.liveChatService.openChatWindow(e)}closeChatWindow(){this.liveChatService.closeChatWindow()}getServiceUrl(){return this.oauthService.hasValidAccessToken()?"/field-service/initiate-service-request":"/guest/onsite-service-request"}static{this.\u0275fac=function(a){return new(a||t)(_(P),_(Se),_(ue),_(Ce),_(He),_(de))}}static{this.\u0275cmp=F({type:t,selectors:[["app-global-resources"]],standalone:!1,decls:98,vars:66,consts:[[1,"@container","mx-auto","px-4","py-6","sm:px-6","lg:px-8"],[1,"mx-auto","grid","max-w-(--breakpoint-2xl)","grid-cols-1","gap-4","sm:gap-6","lg:grid-cols-6"],[1,"col-span-1","flex","flex-col","items-center","justify-center","text-center","lg:col-span-4","lg:col-start-2"],[1,"py-2","text-xl","font-semibold","text-gray-900","sm:py-3","sm:text-2xl"],[1,"py-2","text-sm","text-gray-900","sm:py-3","sm:text-base"],[1,"flex","flex-col","gap-2","py-3","text-sm","text-gray-900","sm:flex-row","sm:gap-0","
1sm:py-4","sm:text-base"],[1,"px-2","sm:px-3"],[1,"pi","pi-clock"],[1,"pi","pi-globe"],[1,"pi","pi-verified"],[1,"col-span-1","sm:col-span-1","lg:col-span-2","lg:col-start-2"],[1,"flex","h-full","min-h-100","w-full","items-start","justify-center","rounded-lg","border","border-blue-100/50","bg-white","p-6","sm:p-8","lg:p-10"],[1,"flex","h-full","w-full","flex-col","items-center","gap-3","text-center","sm:gap-4"],[1,"flex","h-10","w-10","shrink-0","items-center","justify-center","rounded-[50%]","bg-gray-100","sm:h-12","sm:w-12"],[1,"pi","pi-desktop","text-base","sm:text-lg"],[1,"text-lg","font-semibold","text-gray-900","sm:text-xl"],[1,"text-sm","text-gray-700","sm:text-base"],[1,"text-sm","sm:text-base"],[1,"pi","pi-map-marker"],[1,"mt-auto","w-full"],["pButton","","routerLink","/",1,"p-button-primary","w-full","text-sm","sm:w-auto","sm:text-base",3,"label"],[1,"col-span-1","sm:col-span-1","lg:col-span-2"],[1,"pi","pi-headphones","text-base","sm:text-lg"],[1,"pi","pi-wrench","text-base","sm:text-lg"],[1,"hover:bg-hover","text-sm","text-blue-500","2xl:text-base",3,"href"],[1,"flex","flex-col","justify-end",3,"infoType","propertyName"],[1,"text-blue-200"],["pButton","",1,"p-button-primary","w-full","text-sm","sm:w-auto","sm:text-base",3,"click","label"],[1,"pi","pi-truck","text-base","sm:text-lg"],["pButton","",1,"p-button-primary","w-full","text-sm","sm:w-auto","sm:text-base",3,"routerLink","label"]],template:function(a,i){a&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),s(4),m(5,"transloco"),o(),r(6,"p",4),s(7),m(8,"transloco"),o(),r(9,"div",5)(10,"p",6),l(11,"i",7),s(12),m(13,"transloco"),o(),r(14,"p",6),l(15,"i",8),s(16),m(17,"transloco"),o(),r(18,"p",6),l(19,"i",9),s(20),m(21,"transloco"),o()()(),r(22,"div",10)(23,"div",11)(24,"div",12)(25,"p",13),l(26,"i",14),o(),r(27,"h2",15),s(28),m(29,"transloco"),o(),r(30,"p",16),s(31),m(32,"transloco"),o(),r(33,"p",17),l(34,"i",18),s(35),m(36,"transloco"),o(),r(37,"span",19),l(38,"button",20),m(39,"transloco"),o()()()(),r(40,"div",21)(41,"div",11)(42,"div",12)(43,"p",13),l(44,"i",22),o(),r(45,"h2",15),s(46),m(47,"transloco"),o(),r(48,"p",16),s(49),m(50,"transloco"),o(),v(51,Hi,23,15)(52,$i,10,6),o()()(),r(53,"div",10)(54,"div",11)(55,"div",12)(56,"p",13),l(57,"i",23),o(),r(58,"h2",15),s(59),m(60,"transloco"),o(),r(61,"p",16),s(62),m(63,"transloco"),o(),r(64,"p",17),v(65,zi,3,3)(66,Wi,2,1),o(),r(67,"p",17)(68,"a",24),l(69,"app-get-support-info-by-country",25),o(),l(70,"br"),r(71,"span",26),s(72,"[email protected]"),o()(),r(73,"span",19)(74,"button",27),m(75,"transloco"),S("click",function(){return i.openChatWindow(i.supportNumbers[0].chatGroupId)}),s(76," > "),o()()()()(),r(77,"div",21)(78,"div",11)(79,"div",12)(80,"p",13),l(81,"i",28),o(),r(82,"h2",15),s(83),m(84,"transloco"),o(),r(85,"p",16),s(86),m(87,"transloco"),o(),r(88,"p",17),v(89,Ji,3,3)(90,Zi,2,1),o(),r(91,"p",17)(92,"a",24),l(93,"app-get-support-info-by-country",25),o()(),r(94,"span",19)(95,"button",29),m(96,"transloco"),s(97," > "),o()()()()()()()),a&2&&(n(4),d(" ",p(5,32,"GlobalResources.WelcomeGlobalResource")," "),n(3),d(" ",p(8,34,"GlobalResources.ConnectTeam")," "),n(5),d(" ",p(13,36,"GlobalResources.FastResponseTimes")," "),n(4),d(" ",p(17,38,"GlobalResources.GlobalSupport")," "),n(4),d(" ",p(21,40,"GlobalResources.IndustryExperts")," "),n(8),d(" ",p(29,42,"GlobalResources.MYVJCustomerPortal")," "),n(3),d(" ",p(32,44,"GlobalResources.Portal")," "),n(4),d(" ",p(36,46,"GlobalResources.Global")),n(3),x("label",b(p(39,48,"GotoMyVJ"))),n(8),d(" ",p(47,50,"GlobalResources.CustomerCare")," "),n(3),d(" ",p(50,52,"GlobalResources.OrderAccountHelp")," "),n(2),g(i.isUSCountry()?51:52),n(8),d(" ",p(60,54,"GlobalResources.TechnicalSupp
1ort")," "),n(3),d(" ",p(63,56,"GlobalResources.TroubleshootText")," "),n(3),g(i.isUSCountry()?65:66),n(3),x("href",Z("tel:",i.supportNumbers[0]==null?null:i.supportNumbers[0].supportNumber),W),n(),x("infoType","Customer Care")("propertyName","supportNumber"),n(5),x("label",b(p(75,58,"GetHelpText"))),n(9),d(" ",p(84,60,"OnsiteService")," "),n(3),d(" ",p(87,62,"RequestFieldText")," "),n(3),g(i.isUSCountry()?89:90),n(3),x("href",Z("tel:",i.supportNumbers[0]==null?null:i.supportNumbers[0].supportNumber),W),n(),x("infoType","Customer Care")("propertyName","supportNumber"),n(2),x("label",b(p(96,64,"GlobalResources.InitiateNewRequest")))("routerLink",i.getServiceUrl()))},dependencies:[it,xe,Y,_e,T],encapsulation:2})}}return t})();var Yi=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:xt,data:{title:"Doing business with Videojet just got even easier"}},{path:"global-resources",component:qt,data:{title:"Customer Support",breadcrumb:"Customer Support"}},{path:"customer-pricing-catalog",component:vt,data:{title:"Customer Pricing Catalog",breadcrumb:"Customer Pricing Catalog"}},{path:"customer-onboarding/:guid",component:dt,data:{title:"Customer Onboarding",breadcrumb:"Customer Onboarding"}},{path:"onsite-service-request",component:St,data:{title:"Onsite Service Request",breadcrumb:"Guest Service Request"}},{path:"onsite-service-request/confirmation/:id",component:yt}],Et=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=pe({type:t})}static{this.\u0275inj=le({imports:[ee.forChild(Yi),ee]})}}return t})();var Kn=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=pe({type:t})}static{this.\u0275inj=le({imports:[je,ut,ee,Et,mt]})}}return t})();export{Kn as GuestModule};
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.