1import{a as g0,b as f0,c as _0,d as h0,e as C0,f as v0}from"./chunk-J36XF4NX.js";import{h as u0}from"./chunk-IGFRRHS4.js";import{c as p0,d as V,e as s0}from"./chunk-DRSEQWTK.js";import"./chunk-AE3ACMKQ.js";import{j as d0,k as l0}from"./chunk-W55HCH7M.js";import"./chunk-TGU3RJS2.js";import{a as ge}from"./chunk-GNQE6ZMT.js";import"./chunk-LW3JVTWO.js";import"./chunk-DUKNJD6B.js";import"./chunk-CPCDWIUT.js";import"./chunk-UDSWL347.js";import{a as P}from"./chunk-JHJ2LJAO.js";import"./chunk-DCDEDU74.js";import"./chunk-NEF5XAJ5.js";import"./chunk-XX5K32JE.js";import"./chunk-J4RZ5W3G.js";import"./chunk-JIQOYV5A.js";import{a as m0}from"./chunk-PLQHB5HY.js";import"./chunk-7UYBN44Z.js";import{a as c0}from"./chunk-IFPSOMEL.js";import"./chunk-AGSDAYVR.js";import"./chunk-5H2XEJW2.js";import"./chunk-XJV6KU5D.js";import"./chunk-6YQLZPO2.js";import"./chunk-TO4G5SQP.js";import"./chunk-GJJP6AOF.js";import{d as a0}from"./chunk-EPBWRYCN.js";import"./chunk-E6FVIUIM.js";import"./chunk-22ISET2Y.js";import"./chunk-PNLX6JSO.js";import"./chunk-BJ4RTY6Z.js";import"./chunk-3RNOYD7Z.js";import"./chunk-SNHMLIJV.js";import"./chunk-TDOLGIQO.js";import"./chunk-BGW4JFVC.js";import"./chunk-FK5B46MF.js";import"./chunk-ISMLZ5AO.js";import"./chunk-ERVRDRGD.js";import{a as Ye,b as de,c as pe,d as le,j as Qe,k as w,p as qe,q as Xe,u as n0,v as o0,x as r0}from"./chunk-NKA5FZDD.js";import{Hc as e0,Nc as t0,Qa as Ze,Qc as i0,Sc as ue,T as je,V as H,W as $e,Y as Ke}from"./chunk-KNPV2EHA.js";import{Ja as Je}from"./chunk-DDP3RWEG.js";import{a as F,b as R}from"./chunk-RCCDZFTR.js";import{a as se,e as E,f as N}from"./chunk-7RSDEBSU.js";import{A as me,a as re,b as ae,c as ce,e as I,g as B,x as Ge,y as We}from"./chunk-Z5KZRLC7.js";import"./chunk-QWOVKJEQ.js";import{E as ie,G as ne,H as oe,_ as Ue,f as J,h as Z,o as ee,v as te}from"./chunk-H7WMH4BU.js";import{$ as Ne,F as Ie,Jd as M,Ka as O,Kd as x,L as Be,Qc as Ve,Y as Ee,Yc as Ae,Zc as Le,aa as He,c as Q,ca as Fe,j as q,o as Oe,ob as X,r as z,xc as Re,yc as we}from"./chunk-5JM3UTP4.js";import{$b as D,Ba as k,Eb as Pe,Fa as u,Gb as Se,Ib as o,K as ve,Oc as h,Qc as _,Uc as Y,V as S,Vc as $,Wc as K,Za as C,_b as b,a as ze,dc as y,e as j,eb as v,mc as Te,oc as g,pc as ke,qc as f,ra as xe,sd as U,ua as T,vc as r,w as Me,wc as a,xc as c,xd as d,yc as p,yd as l,zd as De}from"./chunk-4MWVABFH.js";import"./chunk-76DGGKHL.js";function T0(t,m){if(t&1&&(a(0,"div",4),p(1,"iframe",5),d(2,"cxTranslate"),c()),t&2){let e=_();o(),r("src",e,Pe)("title",l(2,2,"service.sparepartsSearch.b2bComponentTitle"))}}function k0(t,m){t&1&&(g(0,T0,3,4,"div",4),d(1,"json")),t&2&&f(l(1,1,m)!=="{}"?0:-1)}var G=class t extends P{constructor(){super(...arguments);this.sanitizer=u(Be);this.activeCartFacade=u(Ze);this.currencyService=u(Le);this.languageService=u(Ae);this.scrollbarService=u(e0);this.componentName="c-b2b-sparepart-search";this.CURRENCY_CHF="CHF";this.CURRENCY_EUR="EUR";this.CURRENCY_CHF_D2P_KEY="STD";this.componentClasses=this.componentName;this.sub=new ze;this._urlSafe=new j({});this.urlSafe$=this._urlSafe.asObservable()}onPostMessageReceived(e){e.data&&e.data instanceof Object&&e.data.action&&(e.data.action==="vzugAddToCart"&&e.data.articleCode&&e.data.quantity&&this.sub.add(this.activeCartFacade.getEntries().pipe(S(1),T(()=>{this.activeCartFacade.addEntry(e.data.articleCode,e.data.quantity)})).subscribe()),e.data.action==="mouseover"&&this.scrollbarService.disableScrollOnHtmlElement(!0),e.data.action==="mouseout"&&this.scrollbarService.disableScrollOnHtmlElement(!1))}ngOnInit(){super.ngOnInit(),this.sub.add(this.currencyService?.getActive().pipe(S(1)).subscribe(e=>this.currency=e)),this.sub.add(this.languageService.getActive().pipe(S(1)).subscribe(e=>{this.language=e.substring(0,2)}))}ngOnDestroy(){super.ngOnDestroy(),this.sub.unsubscribe()}handleDeviceSearch(e){if(e){let n=this.currency===this.CURRENCY_CHF?this.CURRENCY_CHF_D2P_KEY:this.CURRENCY_EUR,i=`${Je.backend.occ.baseUrl||""}/d2p/d2p?ALIAS=29050&CLIENT=VZUG?&PRICELEVEL=${n}&MACHINE=${e}&LANGUAGE=${this.language}&WISHLIST=false&SERIALNO=${e}&DISABLE_LEGACY_CART=true`;this._urlSafe.next(this.sanitizer.bypassSecurityTrustResourceUrl(i))}else this._urlSafe.next({})}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})()}static{this.\u0275cmp=b({type:t,selectors:[["c-b2b-sparepart-search"]],hostBindings:function(n,i){n&1&&h("message",function(L){return i.onPostMessageReceived(L)},Se)},features:[y],decls:6,vars:6,consts:[[1,"grid",3,"ngClass"],[1,"g-col-12","g-col-sm-11","g-start-sm-2"],[1,"c-b2b-sparepart-information__inner"],[3,"handleDeviceSearch","titleKey","textKey"],[1,"c-b2b-sparepart-search__result"],["width","100%",1,"c-b2b-sparepart-search__iframe",3,"src","title"]],template:function(n,i){if
1(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"c-b2b-device-search",3),h("handleDeviceSearch",function(L){return i.handleDeviceSearch(L)}),c(),g(4,k0,2,3),d(5,"async"),c()()()),n&2){let s;r("ngClass",i.componentClasses),o(3),r("titleKey","service.sparepartsSearch.b2bComponentTitle")("textKey","service.sparepartsSearch.b2bIntroText"),o(),f((s=l(5,4,i.urlSafe$))?4:-1,s)}},dependencies:[z,Q,f0,g0,x,q,Oe,M],styles:["[dir=ltr][_ngcontent-%COMP%]{--x-direction: 1}[dir=rtl][_ngcontent-%COMP%]{--x-direction: -1}@media all and (min-width:720px){.c-b2b-sparepart-information__inner[_ngcontent-%COMP%]{--bs-columns: 11}}.c-b2b-sparepart-search__result[_ngcontent-%COMP%]{margin-top:7.2rem}@media all and (min-width:1025px){.c-b2b-sparepart-search__result[_ngcontent-%COMP%]{margin-top:9.6rem}}.c-b2b-sparepart-search__iframe[_ngcontent-%COMP%]{height:80vh}"]})}};var z0=t=>({"c-product-document-finder__link-disabled":t});function D0(t,m){if(t&1&&(p(0,"e-image",13),d(1,"cxTranslate")),t&2){let e=_(3),n=_();r("container",e.normalizedImages==null?null:e.normalizedImages.PRIMARY)("alt",l(1,4,"device.productimage.alt"))("modifier",n.ImageModifier.CONTAIN)("ratio",1)}}function O0(t,m){if(t&1&&(a(0,"a",11),g(1,D0,2,6,"e-image",13),c()),t&2){let e=_(2);r("routerLink","/product/"+e.articleNumber)("ngClass",U(4,z0,!e.productActive)),Te("aria-label",e.shortname),o(),f(e.normalizedImages?1:-1)}}function I0(t,m){if(t&1&&(a(0,"div",14),p(1,"e-heading",8),d(2,"cxTranslate"),c()),t&2){let e=_(4);o(),r("headingType",e.HeadingType.H4)("title",l(2,2,"product.documenttype."+e.documentType))}}function B0(t,m){if(t&1&&(a(0,"div")(1,"div",4),g(2,I0,3,4,"div",14),c(),a(3,"div"),p(4,"c-product-file-download",15),c()()),t&2){let e=_(3);o(2),f(e.documentType?2:-1),o(2),r("documentType",m)}}function E0(t,m){if(t&1&&(a(0,"e-message",16),p(1,"e-text",17),d(2,"cxTranslate"),c()),t&2){let e=_(4);r("messageType",e.MessageType.WARNING),o(),r("text",l(2,2,"documentHistory.emptyResult"))}}function N0(t,m){t&1&&(a(0,"div"),p(1,"e-skeleton-loader",18),c())}function H0(t,m){if(t&1&&g(0,E0,3,4,"e-message",16)(1,N0,2,0,"div"),t&2){let e=_(3);f(e.isLoading()?1:0)}}function F0(t,m){if(t&1&&(a(0,"div",4)(1,"div",5)(2,"div",6)(3,"a",7),p(4,"e-heading",8),c()()(),a(5,"div",9)(6,"div",10),g(7,O0,2,6,"a",11),c(),a(8,"div",12),g(9,B0,5,2,"div"),d(10,"async"),ke(11,H0,2,1),c()()()),t&2){let e,n=_(),i=_();o(3),r("routerLink","/product/"+n.articleNumber)("ngClass",U(8,z0,!n.productActive)),o(),r("headingType",i.HeadingType.H3)("title",n.shortname),o(3),f(n.images?7:-1),o(2),f((e=l(10,6,i.selectedDocumentType$))?9:11,e)}}function R0(t,m){if(t&1&&g(0,F0,12,10,"div",4),t&2){let e=m;f(e&&e.articleNumber?0:-1)}}var fe=class t extends P{constructor(){super(...arguments);this.component=u(Ue);this.http=u(Ie);this.occEndpoints=u(X);this.productImageNormalizer=u(Ve);this.componentClasses="c-product-document-finder";this.HeadingType=B;this.ImageModifier=Ge;this.IconKeys=I;this.MessageType=We;this.introText="";this.title="";this.documentType="";this.device=C(void 0);this._articleNumber=new j(void 0);this.articleNumber$=this._articleNumber.asObservable();this.isLoading=C(!1);this.selectedDocumentType$=this.articleNumber$.pipe(T(()=>this.isLoading.set(!0)),ve(e=>!!e),xe(e=>this.http.get(this.occEndpoints.buildUrl("product",{urlParams:{productCode:e},scope:"documents"}))),ve(e=>e!==null),Me(e=>e.documentTypes?.find(n=>n.name===this.documentType)),T(()=>this.isLoading.set(!1)));this.data$=this.component.data$.pipe(T(e=>{this.introText=e?.introText,this.title=e?.title,this.documentType=e?.documentType}))}ngOnInit(){super.ngOnInit()}handleDeviceSearch(e){e&&(e.normalizedImages=this.productImageNormalizer.normalize(e.images||[])),this.device.set(e||void 0),this._articleNumber.next(e?.articleNumber||void 0)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})()}static{this.\u0275cmp=b({type:t,selectors:[["c-product-document-finder"]],standalone:!1,features:[y],decls:5,vars:4,consts:[[1,"grid",3,"ngClass"],[1,"g-col-12","g-col-sm-11","g-start-sm-2"],[1,"c-product-document-finder__inner"],[3,"handleDeviceSearch","title","text"],[1,"grid"],[1,"g-col-11","g-start-md-5"],[1,"c-product-document-finder__title"],[3,"routerLink","ngClass"],[3,"headingType","title"],[1,"g-col-11","g-start-md-5","grid","c-product-document-finder__content"],[1,"g-col-11","g-col-md-3"],[1,"c-product-document-finder__image-wrapper",3,"routerLink","ngClass"],[1,"g-col-11","g-col-sm-8","c-product-document-finder__content"],[3,"container","alt","modifier","ratio"],[1,"g-col-9","c-product-document-finder__subtitle"],[3,"documentType"],[3,"messageType"],[3,"text"],["height","70px"]],template:function(n,i){if
1(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"c-device-search",3),h("handleDeviceSearch",function(L){return i.handleDeviceSearch(L)}),c(),g(4,R0,1,1),c()()()),n&2){let s;r("ngClass",i.componentClasses),o(3),r("title",i.title)("text",i.introText),o(),f((s=i.device())?4:-1,s)}},dependencies:[Q,F,E,He,Qe,p0,ge,qe,n0,q,M],styles:["[dir=ltr][_ngcontent-%COMP%]{--x-direction: 1}[dir=rtl][_ngcontent-%COMP%]{--x-direction: -1}[_nghost-%COMP%]{display:block}.c-product-document-finder__title[_ngcontent-%COMP%]{margin-top:4.8rem}@media all and (min-width:1025px){.c-product-document-finder__title[_ngcontent-%COMP%]{margin-top:6rem}}.c-product-document-finder__title[_ngcontent-%COMP%]{margin-bottom:2rem}@media all and (min-width:1025px){.c-product-document-finder__title[_ngcontent-%COMP%]{margin-bottom:2.4rem}}.c-product-document-finder__title[_ngcontent-%COMP%]{margin-inline-start:1.6rem}@media all and (min-width:1025px){.c-product-document-finder__title[_ngcontent-%COMP%]{margin-inline-start:2rem}}.c-product-document-finder__link-disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.c-product-document-finder__image-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;aspect-ratio:1}@media all and (min-width:720px){.c-product-document-finder__inner[_ngcontent-%COMP%]{--bs-columns: 11}}.c-product-document-finder__content[_ngcontent-%COMP%]{margin-inline-start:1.6rem}@media all and (min-width:1025px){.c-product-document-finder__content[_ngcontent-%COMP%]{margin-inline-start:2rem}}.c-product-document-finder__subtitle[_ngcontent-%COMP%]{margin-bottom:.8rem}@media all and (min-width:1025px){.c-product-document-finder__subtitle[_ngcontent-%COMP%]{margin-bottom:.8rem}}.c-product-document-finder__warning[_ngcontent-%COMP%]{margin-top:4.8rem}@media all and (min-width:1025px){.c-product-document-finder__warning[_ngcontent-%COMP%]{margin-top:6rem}}"],changeDetection:0})}};var _e=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=k({providers:[O({cmsComponents:{VzugProductDocumentFinderComponent:{component:fe}}})],imports:[z,R,N,Fe,w,s0,x,V,ge,je,Ke,Xe,o0]})}};var A0=["formElement"];function L0(t,m){if(t&1&&(a(0,"div")(1,"div",18),p(2,"e-text",19),d(3,"cxTranslate"),c()()),t&2){let e=_(2);o(2),r("text",l(3,4,"service.vzugHomeChecker.VzugHomeAvailable"))("fontWeight",e.FontWeight.MEDIUM)("tag",e.TextTag.DIV)("renderHtml",!0)}}function U0(t,m){if(t&1&&(a(0,"div")(1,"div",20),p(2,"e-text",19),d(3,"cxTranslate"),c()()),t&2){let e=_(2);o(2),r("text",l(3,4,"service.vzugHomeChecker.notVzugHomeAvailable"))("fontWeight",e.FontWeight.MEDIUM)("tag",e.TextTag.DIV)("renderHtml",!0)}}function G0(t,m){if(t&1&&(g(0,L0,4,6,"div"),g(1,U0,4,6,"div")),t&2){let e=m;f(e&&e.vzugHomeAvailable?0:-1),o(),f(e&&!e.vzugHomeAvailable?1:-1)}}function W0(t,m){t&1&&p(0,"e-spinner")}var W=class t extends P{constructor(){super(...arguments);this.formBuilder=u(ie);this.occEndpoints=u(X);this.activatedRoute=u(Ee);this.router=u(Ne);this.deviceInformationService=u(m0);this.scrollHandlerService=u(t0);this.globalMessageService=u(we);this.HeadingType=B;this.TextTag=me;this.ButtonModifier=re;this.FontWeight=se;this.IconKeys=I;this.ButtonType=ae;this.ButtonIconPosition=ce;this.device=C(void 0);this.loading=C(!1);this.form=this.formBuilder.group({serialNumber:["",J.required]})}ngOnInit(){super.ngOnInit(),this.sub.add(this.activatedRoute.queryParamMap.subscribe(e=>this.handleQueryParamChange(e)))}handleQueryParamChange(e){let n=e.get("serialNumber");!n||n===""||(this.form.patchValue({serialNumber:n}),this.executeDeviceSearch(n))}executeDeviceSearch(e){let n=e;this.sub.add(this.deviceInformationService.getDeviceForSerialNumber(e).pipe(S(1)).subscribe({next:i=>{this.device.set(i),this.handleDeviceForSerialNumberResult(i,n)},error:()=>{this.device.set(void 0),this.loading.set(!1)}}))}handleDeviceForSerialNumberResult(e,n){Object.keys(e).length===0&&(this.form.get("serialNumber")?.setErrors({serialNumber:!0}),this.form.markAllAsTouched(),this.scrollHandlerService.scrollToFormError(this.formElement?.nativeElement)),n!=e.serialNumber&&this.globalMessageService.add({key:"search.deviceSearch.snAdapted"},Re.MSG_TYPE_WARNING),this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{serialNumber:e.serialNumber},replaceUrl:!0}),this.loading.set(!1)}handleActionButtonClick(){if(this.form.valid){let e=this.form.get("serialNumber")?.value;this.executeDeviceSearch(e??""),this.loading.set(!0)}else this.form.markAllAsTouched(),this.scrollHandlerService.scrollToFormError(this.formElement?.nativeElement)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})()}static{this.\u0275cmp=b({type:t,selectors:[["c-vzug-home-checker"]],viewQuery:function(n,i){if
1(n&1&&Y(A0,5),n&2){let s;$(s=K())&&(i.formElement=s.first)}},features:[y],decls:28,vars:26,consts:[["formElement",""],["inputComponent",""],[1,"grid"],[1,"g-col-12","g-col-sm-11","g-start-sm-2"],[1,"c-vzug-home-checker__inner"],[1,"g-col-12","g-col-md-3"],[3,"headingType","title"],[1,"g-col-12","g-start-md-5","g-col-md-6"],[3,"text"],[1,"c-vzug-home-checker__title"],[1,"c-vzug-home-checker__tooltip"],[3,"text","tag","renderHtml"],[1,"c-vzug-home-checker__find-serial-search",3,"ngSubmit","formGroup"],[1,"c-vzug-home-checker__find-serial-search-wrapper"],[1,"c-vzug-home-checker__find-serial-search-input"],[3,"form","hideLabel","noSpacing"],[1,"c-vzug-home-checker__find-serial-search-button"],[3,"handleButtonClick","modifier","text"],[1,"c-vzug-home-checker__zughome-available"],[3,"text","fontWeight","tag","renderHtml"],[1,"c-vzug-home-checker__not-zughome-available"]],template:function(n,i){if(n&1&&(a(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",2)(4,"div",5),p(5,"e-heading",6),d(6,"cxTranslate"),c(),a(7,"div",7),p(8,"e-text",8),d(9,"cxTranslate"),a(10,"div",9),p(11,"e-heading",6),d(12,"cxTranslate"),a(13,"div",10)(14,"e-tooltip"),p(15,"e-text",11),d(16,"cxTranslate"),c()()(),a(17,"form",12,0),h("ngSubmit",function(){return i.handleActionButtonClick()}),a(19,"div",13)(20,"div",14),p(21,"c-my-device-text-input",15,1),c(),a(23,"div",16)(24,"e-button",17),d(25,"cxTranslate"),h("handleButtonClick",function(){return i.handleActionButtonClick()}),c()()()(),g(26,G0,2,2),c()()()()(),g(27,W0,1,0,"e-spinner")),n&2){let s;o(5),r("headingType",i.HeadingType.H3)("title",l(6,16,"service.vzugHomeChecker.componentTitle")),o(3),r("text",l(9,18,"service.vzugHomeChecker.introText")),o(3),r("headingType",i.HeadingType.H4)("title",l(12,20,"device.serialNumber")),o(4),r("text",l(16,22,"tooltip.serialNumberHint"))("tag",i.TextTag.DIV)("renderHtml",!0),o(2),r("formGroup",i.form),o(4),r("form",i.form)("hideLabel",!0)("noSpacing",!0),o(3),r("modifier",i.ButtonModifier.PRIMARY)("text",l(25,24,"service.vzugHomeChecker.checkButton")),o(2),f((s=i.device())?26:-1,s),o(),f(i.loading()?27:-1)}},dependencies:[z,ue,le,de,x,R,F,ne,ee,Z,oe,te,N,E,w,V,H,pe,Ye,l0,d0,M],styles:["[dir=ltr][_ngcontent-%COMP%]{--x-direction: 1}[dir=rtl][_ngcontent-%COMP%]{--x-direction: -1}[_nghost-%COMP%]{--e-spinner-backdrop-color: rgba(242, 239, 232, .75);display:block}.c-vzug-home-checker[_ngcontent-%COMP%]{position:relative}@media all and (min-width:720px){.c-vzug-home-checker__inner[_ngcontent-%COMP%]{--bs-columns: 11}}.c-vzug-home-checker__title[_ngcontent-%COMP%]{margin-top:1.6rem}@media all and (min-width:1025px){.c-vzug-home-checker__title[_ngcontent-%COMP%]{margin-top:2rem}}.c-vzug-home-checker__title[_ngcontent-%COMP%]{margin-bottom:2rem}@media all and (min-width:1025px){.c-vzug-home-checker__title[_ngcontent-%COMP%]{margin-bottom:2.4rem}}.c-vzug-home-checker__title[_ngcontent-%COMP%]{display:flex}.c-vzug-home-checker__tooltip[_ngcontent-%COMP%]{margin-inline-start:.8rem}@media all and (min-width:1025px){.c-vzug-home-checker__tooltip[_ngcontent-%COMP%]{margin-inline-start:.8rem}}.c-vzug-home-checker__find-serial-search[_ngcontent-%COMP%]{position:relative}.c-vzug-home-checker__find-serial-search-wrapper[_ngcontent-%COMP%]{display:flex}.c-vzug-home-checker__find-serial-search-input[_ngcontent-%COMP%]{flex-grow:1}.c-vzug-home-checker__find-serial-search-button[_ngcontent-%COMP%]{margin-inline-start:1.6rem}@media all and (min-width:1025px){.c-vzug-home-checker__find-serial-search-button[_ngcontent-%COMP%]{margin-inline-start:1.6rem}}.c-vzug-home-checker__find-serial-search-button[_ngcontent-%COMP%]{white-space:nowrap}.c-vzug-home-checker__zughome-available[_ngcontent-%COMP%]{margin-top:1.6rem}@media all and (min-width:1025px){.c-vzug-home-checker__zughome-available[_ngcontent-%COMP%]{margin-top:2rem}}.c-vzug-home-checker__zughome-available[_ngcontent-%COMP%]{padding:.8rem}@media all and (min-width:1025px){.c-vzug-home-checker__zughome-available[_ngcontent-%COMP%]{padding:.8rem}}.c-vzug-home-checker__zughome-available[_ngcontent-%COMP%]{color:#38130e;background-color:#e7f5f0}.c-vzug-home-checker__not-zughome-available[_ngcontent-%COMP%]{margin-top:1.6rem}@media all and (min-width:1025px){.c-vzug-home-checker__not-zughome-available[_ngcontent-%COMP%]{margin-top:2rem}}.c-vzug-home-checker__not-zughome-available[_ngcontent-%COMP%]{padding:.8rem}@media all and (min-width:1025px){.c-vzug-home-checker__not-zughome-available[_ngcontent-%COMP%]{padding:.8rem}}.c-vzug-home-checker__not-zughome-available[_ngcontent-%COMP%]{color:#38130e;background-color:#f5e5b0}"],changeDetection:0})}};var M0=new Map([[21056,21056000443],[21057,21057007414],[21059,21059003585],[21069,21069000023],[21070,21070001369],[21073,21073002462],[21082,21082000122],[21083,21083000009],[21090,21090000045],[21091,21091000009],[21117,21117000322],[21118,21118000025],[21119,21119000877],[21120,21120000066]]),x0=[21073002024,21073002072,21073002239,21073002245,21073002384,21070001346,21070001349,21073002398,21073002399,21073002402,21073002415,21073002418,21073002420,21070001355,21073002451,21057007294,21057007342,21057007331,21057007336,21073002453,21070000174,21070000201,21059000938,21059000939,21070000656,21070000657,21070001106,21070001107,21070001109,21070001110,21059002919,21059002920,21059002921,21059003134,21073002344,21073002346,21057007083,21073002357,21057007152,21073002390,21073002394,21073002395,21073002400,21073002401,21073002403,21073002410,21073002412,21073002413,21073002417,21073002419,21073002424,21059003558,21070001354,21073002428,21073002436,21073002437,21073002439,21073002443,21073002447,21073002448,21073002449,21073002450,21073002455,21073002456,21070001365,21070001366,21070001367,21070001368,21070001369,21073002458,21073002459,21073002460,21057007234,21057007235,21057007236,21057007238,21057007260,21057007261,21057007265,21057007266,21057007269,21057007270,21057007271,21057007272,21057007273,21057007274,21057007275,21057007276,21057007279,21057007280,21057007282,21057007285,21057007287,21057007288,21057007295,21057007297,21057007300,21057007304,21057007307,21057007308,21057007309,21057007310,21057007311,21057007312,21057007313,21057007320,21057007321,21057007324,21057007325,21057007326,21057007329,21057007330,21057007332,21057007333,21057007334,21057007337,21057007339,21057007340,21057007341,21057007343,21057007344,21057007346,21057007347,21057007348,21057007042,21057007043,21057007044,21057007045,21057007046,21057007047,21057007049,21057007050,21057007051,21057007067,21057007069,21057007070,21057007071,21057007072,21057007074,21057007080,21057007082,21057007084,21057007097,21057007099,21057007109,21057007110,21057007139,21057007148,21057007153,21057007182,21057007183,21057007184,21057007185,21057007186,21057007187,21057007188,21057007189,21057007190,21057007191,21057007193,21057007194,21057007196,21057007197,21057007198,21057007199,21057007200,21057007220,21057007233,21057007237,21057007298,21057007299,21057007303,21057007305,21057007306,21057007335,21057007338,21057007345,21057007089,21057007091,21057007124,21057007125,21057007127,21057007133,21057007134,21057007135,21057007136,21057007154,21057007155,21057007156,21057007157,21057007159,21057007160,21057007161,21057007172,21057007173,21057007178,21057007209,21057007211,21057007217,21057007250,21057007251,21057007252,21057007253,21057007254,21057007255,21057007256,21057007257,21057007259,21057007262,21057007263,21057007264,21057007267,21057007268,21057007281,21057007283,21057007286,21057007289,21057007319,21057007322,21057007323,21057007327,21057007328,21057005479,21057005482,21057005494,21057005496,21057005498,21057006214,21057006359,21057006827,21057006829,21057006831,21057006832,21057007119,21057007120,21057007121,21057007122,21057007123,21057007240,21057007248,21057007314,21057007315,21057007316,21070001157,21070001188,21073002071,21059003131,21070001208,21059003173,21073002234,21073002241,21073002242,21059003496,21059003498,21059003501,21073002340,21073002341,21073002343,21073002345,21073002347,21073002349,21059003504,21059003505,21059003515,21059003516,21059003517,21059003518,21059003519,21059003521,21070001323,21070001325,21070001327,21070001328,21070001329,21070001330,21070001331,21070001332,21073002355,21073002358,21073002359,21073002361,21073002364,21073002365,21073002368,21073002369,21059003533,21059003534,21059003536,21059003538,21059003542,21073002377,21073002379,21070001333,21070001334,21070001335,21070001336,21070001337,21059003546,21059003548,21059003549,21059003550,21059003551,21059003552,21059003553,21059003554,21059003556,21073002385,21073002386,21073002388,21070001339,21070001340,21070001342,21070001344,21070001348,21073002393,21073002405,21073002414,21059003557,21059003559,21059003560,21059003561,21059003562,21059003563,21059003564,21059003565,21070001350,21070001351,21070001353,21070001356,21070001357,21070001358,21070001359,21070001361,21073002430,21073002431,21073002438,21073002457,21073002461,21059003573,21059003574,21059003575,21059003576,21059003577,21059003578,21059003579,21059003580,21059003582,21059003584,21059003585,21059003586,21059003587,21059002279,21073002008,21073002025,21059003109,21057006169,21057006170,21057006173,21059003132,21059003133,21070001209,21073002115,21070001243,21070001247,21070001252,21057006828,21073002233,21073002236,21073002238,21057006830,21073002243,21073002247,21059003463,21057007020,21059003500,21073002348,21057007063,21059003506,21070001322,21057007075,21057007076,21057007077,21057007079,21057007081,21070001324,21070001326,21059003525,21059003530,21059003531,21059003532,21057007095,21057007096,21057007098,21057007100,21057007101,21057007102,21057007103,21057007104,21073002351,21073002352,21073002353,21073002354,21073002360,21073002362,21073002363,21073002367,21073002373,21073002374,21057007112,21057007113,21057007115,21057007117,21059003535,21059003537,21059003539,21059003540,21059003541,21057007129,21059003543,21059003544,21059003545,21059003547,21059003555,21057007140,21057007141,21057007142,21057007143,21057007144,21057007145,21057007146,21057007147,21057007149,21057007150,21057007151,21070001338,21070001341,21073002416,21070001352,21073002429,21057007175,21057007176,21057007179,21057007181,21057007192,21057007195,21057007201,21059003568,21057007210,21057007212,21057007214,21057007215,21057007218,21059003581,21057007242,21057007258,21057007284,21057007292,21073002240,21073002375,21073002383,21073002387,21073002389,21070001343,21070001345,21073002396,21073002404,21073002406,21073002425,21070001362,21070001363,21070001364,21073002427,21073002432,21073002435,21073002445,21073002454,21057007243,21057007244,21057007317,21057007318,21059003583,21056000358,21056000408,21057000031,21057000090,21057000611,21057005743,21057006158,21057006225,21057006228,21057006297,21057006299,21057006358,21057006370,21057006480,21057006550,21057006609,21057006675,21057006710,21057006726,21057006875,21057006977,21057006988,21057007219,21057007221,21057007222,21057007223,21057007224,21057007225,21057007226,21057007227,21057007228,21057007231,21057007239,21057007241,21057007245,21057007246,21057007247,21057007349,21057007350,21057007351,21057007352,21057007353,21057007484,21057007485,21057007486,21057007487,21057007488,21057007493,21057007494,21057007495,21057007496,21057007497,21057007498,21057007499,21057007500,21057007501,21057007502,21059000079,21059000210,21059000492,21059001574,21059002274,21059002276,21059002866,21059002914,21059002915,21059002916,21059002917,21059002918,21059002922,21059002923,21059002924,21059002925,21059002926,21059002927,21059002933,21059002934,21059002935,21059002936,21059002937,21059003096,21059003302,21059003318,21059003370,21059003386,21059003407,21059003433,21059003435,21059003439,21059003450,21059003588,21059003589,21059003590,21059003591,21059003592,21059003593,21059003594,21059003595,21059003596,21059003597,21059003598,21059003599,21059003600,21059003601,21059003602,21059003603,21059003622,21059003626,21059003628,21059003629,21059003630,21059003631,21059003632,21059003634,21059003635,21059003636,21059003640,21059003642,21059003643,21059003645,21059003646,21059003647,21059003648,21059003649,21059003650,21059003651,21059003653,21059003654,21059003655,21059003656,21059003657,21059003658,21059003659,21059003660,21059003661,21059003662,21059003663,21059003664,21070000035,21070000036,21070000098,21070000284,21070001108,21070001224,21070001299,21070001370,21070001371,21070001372,21070001373,21070001374,21070001375,21070001376,21070001377,21070001378,21070001379,21070001380,21070001381,21070001382,21070001383,21070001384,21070001385,21073000014,21073000426,21073000664,21073002061,21073002146,21073002175,21073002261,21073002356,21073002378,21073002392,21073002397,21073002407,21073002408,21073002409,21073002411,21073002421,21073002422,21073002423,21073002426,21073002440,21073002441,21073002442,21073002444,21073002446,21073002452,21073002462,21073002463,21073002464,21073002465,21073002466,21073002471,21073002472,21073002473,21073002474,21090000039,21090000043,21117000283,21119000080,21119000657,21119000784,21119000823,21119000839,21119000862];var j0=["formElement"],Y0=t=>({sn:t});function $0(t,m){if(t&1&&(a(0,"div",18),p(1,"e-text",20),d(2,"cxTranslate"),c()),t&2){let e,n=_(2);o(),r("text",De(2,4,"service.profiPizzaChecker.upgradableViaServiceTechnician",U(7,Y0,(e=n.form.get("serialNumber"))==null?null:e.value)))("fontWeight",n.FontWeight.MEDIUM)("tag",n.TextTag.DIV)("renderHtml",!0)}}function K0(t,m){if(t&1&&(a(0,"div",18),p(1,"e-text",20),d(2,"cxTranslate"),c()),t&2){let e=_(2);o(),r("text",l(2,4,"service.profiPizzaChecker.upgradableViaApp"))("fontWeight",e.FontWeight.MEDIUM)("tag",e.TextTag.DIV)("renderHtml",!0)}}function Q0(t,m){if(t&1&&(a(0,"div",19),p(1,"e-text",20),d(2,"cxTranslate"),c()),t&2){let e=_(2);o(),r("text",l(2,4,"service.profiPizzaChecker.notUpgradable"))("fontWeight",e.FontWeight.MEDIUM)("tag",e.TextTag.DIV)("renderHtml",!0)}}function q0(t,m){if(t&1&&g(0,$0,3,9,"div",18)(1,K0,3,6,"div",18)(2,Q0,3,6,"div",19),t&2){let e=m;f(e===1?0:e===2?1:2)}}var he=class t extends P{constructor(){super(...arguments);this.formBuilder=u(ie);this.onNavigateService=u(a0);this.componentUid=this.component.uid;this.HeadingType=B;this.TextTag=me;this.ButtonModifier=re;this.FontWeight=se;this.IconKeys=I;this.ButtonType=ae;this.ButtonIconPosition=ce;this.compatibilityStatus=C(void 0);this.form=this.formBuilder.group({serialNumber:["",J.required]})}ngOnInit(){super.ngOnInit(),this.onNavigateService.renderingCompleted(this.component.uid)}handleActionButtonClick(){if(this.form.valid){let e=this.form.get("serialNumber")?.value;try{let n=Number(e.replace(/\s+/g,"")),i=M0.get(Math.floor(n/1e6));i?n<i&&!x0.includes(n)?this.compatibilityStatus.set(1):this.compatibilityStatus.set(2):this.compatibilityStatus.set(3)}catch(n){this.compatibilityStatus.set(3)}}else this.form.markAllAsTouched()}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})()}static{this.\u0275cmp=b({type:t,selectors:[["c-profi-pizza-checker"]],viewQuery:function(n,i){if
1(n&1&&Y(j0,5),n&2){let s;$(s=K())&&(i.formElement=s.first)}},standalone:!1,features:[y],decls:28,vars:35,consts:[["formElement",""],[1,"grid",3,"dComponentUid"],[1,"g-col-12","g-col-sm-11","g-start-sm-2"],[1,"c-profi-pizza-checker__inner"],[1,"grid"],[1,"g-col-12","g-col-md-3"],[3,"headingType","headingTag","title"],[1,"g-col-12","g-start-md-5","g-col-md-6"],[3,"text"],[1,"c-profi-pizza-checker__title"],[1,"c-profi-pizza-checker__tooltip"],[3,"text","tag","renderHtml"],[1,"c-profi-pizza-checker__find-serial-search",3,"ngSubmit","formGroup"],[1,"c-profi-pizza-checker__find-serial-search-wrapper"],[1,"c-profi-pizza-checker__find-serial-search-input"],[3,"form","controlName","hideLabel","labelText","placeholder","noSpacing"],[1,"c-profi-pizza-checker__find-serial-search-button"],[3,"handleButtonClick","modifier","text"],[1,"c-profi-pizza-checker__upgrade-available"],[1,"c-profi-pizza-checker__upgrade-not-available"],[3,"text","fontWeight","tag","renderHtml"]],template:function(n,i){if(n&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5),p(5,"e-heading",6),d(6,"cxTranslate"),c(),a(7,"div",7),p(8,"e-text",8),d(9,"cxTranslate"),a(10,"div",9),p(11,"e-heading",6),d(12,"cxTranslate"),a(13,"div",10)(14,"e-tooltip"),p(15,"e-text",11),d(16,"cxTranslate"),c()()(),a(17,"form",12,0),h("ngSubmit",function(){return i.handleActionButtonClick()}),a(19,"div",13)(20,"div",14),p(21,"e-text-input",15),d(22,"cxTranslate"),d(23,"cxTranslate"),c(),a(24,"div",16)(25,"e-button",17),d(26,"cxTranslate"),h("handleButtonClick",function(){return i.handleActionButtonClick()}),c()()()(),g(27,q0,3,1),c()()()()()),n&2){let s;r("dComponentUid",i.componentUid),o(5),r("headingType",i.HeadingType.H3)("headingTag",i.HeadingType.H2)("title",l(6,21,"service.profiPizzaChecker.componentTitle")),o(3),r("text",l(9,23,"service.profiPizzaChecker.introText")),o(3),r("headingType",i.HeadingType.H4)("headingTag",i.HeadingType.H3)("title",l(12,25,"device.serialNumber")),o(4),r("text",l(16,27,"tooltip.serialNumberHint"))("tag",i.TextTag.DIV)("renderHtml",!0),o(2),r("formGroup",i.form),o(4),r("form",i.form)("controlName","serialNumber")("hideLabel",!0)("labelText",l(22,29,"device.serialNumber"))("placeholder",l(23,31,"device.serialNumber"))("noSpacing",!0),o(4),r("modifier",i.ButtonModifier.PRIMARY)("text",l(26,33,"service.profiPizzaChecker.checkButton")),o(2),f((s=i.compatibilityStatus())?27:-1,s)}},dependencies:[i0,de,F,ee,Z,te,E,H,c0,M],styles:["[dir=ltr][_ngcontent-%COMP%]{--x-direction: 1}[dir=rtl][_ngcontent-%COMP%]{--x-direction: -1}[_nghost-%COMP%]{--e-spinner-backdrop-color: rgba(242, 239, 232, .75);display:block}.c-profi-pizza-checker[_ngcontent-%COMP%]{position:relative}@media all and (min-width:720px){.c-profi-pizza-checker__inner[_ngcontent-%COMP%]{--bs-columns: 11}}.c-profi-pizza-checker__title[_ngcontent-%COMP%]{margin-top:1.6rem}@media all and (min-width:1025px){.c-profi-pizza-checker__title[_ngcontent-%COMP%]{margin-top:2rem}}.c-profi-pizza-checker__title[_ngcontent-%COMP%]{margin-bottom:2rem}@media all and (min-width:1025px){.c-profi-pizza-checker__title[_ngcontent-%COMP%]{margin-bottom:2.4rem}}.c-profi-pizza-checker__title[_ngcontent-%COMP%]{display:flex}.c-profi-pizza-checker__tooltip[_ngcontent-%COMP%]{margin-inline-start:.8rem}@media all and (min-width:1025px){.c-profi-pizza-checker__tooltip[_ngcontent-%COMP%]{margin-inline-start:.8rem}}.c-profi-pizza-checker__find-serial-search[_ngcontent-%COMP%]{position:relative}.c-profi-pizza-checker__find-serial-search-wrapper[_ngcontent-%COMP%]{display:flex}.c-profi-pizza-checker__find-serial-search-input[_ngcontent-%COMP%]{flex-grow:1}.c-profi-pizza-checker__find-serial-search-button[_ngcontent-%COMP%]{margin-inline-start:1.6rem}@media all and (min-width:1025px){.c-profi-pizza-checker__find-serial-search-button[_ngcontent-%COMP%]{margin-inline-start:1.6rem}}.c-profi-pizza-checker__find-serial-search-button[_ngcontent-%COMP%]{white-space:nowrap}.c-profi-pizza-checker__upgrade-available[_ngcontent-%COMP%]{margin-top:1.6rem}@media all and (min-width:1025px){.c-profi-pizza-checker__upgrade-available[_ngcontent-%COMP%]{margin-top:2rem}}.c-profi-pizza-checker__upgrade-available[_ngcontent-%COMP%]{padding:.8rem}@media all and (min-width:1025px){.c-profi-pizza-checker__upgrade-available[_ngcontent-%COMP%]{padding:.8rem}}.c-profi-pizza-checker__upgrade-available[_ngcontent-%COMP%]{color:#38130e;background-color:#e7f5f0}.c-profi-pizza-checker__upgrade-not-available[_ngcontent-%COMP%]{margin-top:1.6rem}@media all and (min-width:1025px){.c-profi-pizza-checker__upgrade-not-available[_ngcontent-%COMP%]{margin-top:2rem}}.c-profi-pizza-checker__upgrade-not-available[_ngcontent-%COMP%]{padding:.8rem}@media all and (min-width:1025px){.c-profi-pizza-checker__upgrade-not-available[_ngcontent-%COMP%]{padding:.8rem}}.c-profi-pizza-checker__upgrade-not-available[_ngcontent-%COMP%]{color:#38130e;background-color:#f5e5b0}"],changeDetection:0})}};var Ce=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=k({providers:[O({cmsComponents:{VzugProfiPizzaCheckerComponent:{component:he}}}
1)],imports:[z,ue,le,x,$e,R,ne,oe,N,w,V,H,pe,r0]})}};var P0=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=k({providers:[O({cmsComponents:{VzugB2BSparepartShopComponent:{component:G},VzugHomeCheckerComponent:{component:W}}})],imports:[u0,_0,G,W,Ce,_e,C0,h0,v0]})}};export{P0 as DeviceSearchFeatureModule};
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.