PageSourceSearch

https://www.adam-riese.de/chunk-RVWCBLVI.js

js adam-riese.de collected 2026-10-02 06:18:01 UTC 102,308 bytes, 10 lines download raw bytes

1import{a as un}from"./chunk-LNBKAZIN.js";import{a as nn}from"./chunk-RQSX7MV2.js";import{a as fn}from"./chunk-EFRRHUOG.js";import{a as Ut,b as en,d as Vt,e as tn,f as rn,h as $t,i as zt,j as on,k as an,l as sn,m as dn,n as Xe,o as Ae,p as mn,q as ln,r as cn,s as pn,t as hn,u as vn,v as bn,w as Cn,x as _n}from"./chunk-FV2NB72C.js";import"./chunk-WQCLSE4W.js";import{b as yt,d as gn}from"./chunk-6OY7MTM6.js";import{a as qt}from"./chunk-4N5KE4SF.js";import{a as yn}from"./chunk-HKSF2TPN.js";import"./chunk-W7BTVRNZ.js";import"./chunk-6IYRIXNW.js";import{a as Yt,b as Ui,c as Vi,d as $i,e as zi,f as Gi,g as Ji,h as Qi,i as Xi}from"./chunk-QVZGFNKP.js";import{b as Ki}from"./chunk-6EIFUEUE.js";import"./chunk-DKFTUZHC.js";import"./chunk-WVGHKJHJ.js";import"./chunk-YRHAKOAO.js";import{b as be,c as Zi,d as ot}from"./chunk-MRVVVHLI.js";import{a as Li}from"./chunk-GZMJAB44.js";import{A as Yi,B as qi,j as Ti,k as Ei,l as ji,o as Ft,p as Rt,q as Lt,x as Ri,z as Wi}from"./chunk-CPAHAH6E.js";import{a as vt}from"./chunk-DJQ6HAR4.js";import{a as Ai}from"./chunk-4WIJBVTC.js";import{a as Ie}from"./chunk-YIFPT4MP.js";import{a as wi}from"./chunk-CEDRTFU4.js";import{A as Fi,B as oe,i as Pi,k as Mt,l as Bi,n as ie,p as Ii,q as xi,r as Hi,s as Ni,t as Oi,u as ki,x as q,z as Mi}from"./chunk-HZRLSPYR.js";import"./chunk-FG56MN75.js";import{b as Le,j as Si,k as Di}from"./chunk-OC2YE73P.js";import"./chunk-RJGXZ46J.js";import"./chunk-ZS7ULQC7.js";import{a as ft,b as nt}from"./chunk-AQSFOA7D.js";import{o as ye,p as $,q as ii,s as z,t as k,u as ni,w as W,x as Y}from"./chunk-D6H6EMJA.js";import"./chunk-VPIZXWUD.js";import"./chunk-G2XUWPMC.js";import"./chunk-B4WDNOKT.js";import"./chunk-45M3UI5G.js";import"./chunk-HRG2LJJN.js";import"./chunk-XBVAR2YW.js";import{a as rt}from"./chunk-ILH257VW.js";import"./chunk-44JEM353.js";import"./chunk-MVV7TGEV.js";import"./chunk-JA63JCQJ.js";import{a as v,b as ge,c as Ue}from"./chunk-2GVZ6PD4.js";import{a as jt}from"./chunk-GFARBZVH.js";import"./chunk-4ISSAR3H.js";import{a as hi,b as gi,c as vi}from"./chunk-MQIWFBPS.js";import{c as si}from"./chunk-IUID5SHG.js";import{a as pi}from"./chunk-TC5AXKPV.js";import"./chunk-J2E6OLNX.js";import{a as ai}from"./chunk-POKAQZDH.js";import"./chunk-7T4JQN7R.js";import"./chunk-HC56BRXQ.js";import{a as ei,b as ti}from"./chunk-CUE25S2M.js";import"./chunk-AEFOGNEW.js";import"./chunk-KJCO26QX.js";import{a as g,b as ui,c as ht,e as gt,f as fi}from"./chunk-L5AKIHSA.js";import"./chunk-ABED6FO4.js";import{a as Qe}from"./chunk-KWRUK3SM.js";import{a as Fe,b as Re,c as ne}from"./chunk-OYYY2IVR.js";import{a as oi}from"./chunk-B6R6HG2V.js";import{d as zr}from"./chunk-XFB3CNB6.js";import"./chunk-GH3N32JU.js";import"./chunk-EJXX7RGT.js";import{a as _i}from"./chunk-JVNRKKST.js";import"./chunk-QRCHEDJK.js";import"./chunk-W56D3N6K.js";import{a as kt}from"./chunk-MTNVKQFZ.js";import{a as yi,b as bi,c as Ci}from"./chunk-XUJIJQEE.js";import{a as di,b as mi}from"./chunk-XRCGXYLL.js";import{a as li,b as ci}from"./chunk-O76FBIL6.js";import"./chunk-R76VRPUW.js";import"./chunk-KONZORPE.js";import"./chunk-RBEOGNHR.js";import"./chunk-UQEKFJDU.js";import"./chunk-7OLO7LWS.js";import"./chunk-Z6HFLT54.js";import"./chunk-QTPTMUOZ.js";import"./chunk-S52SA5IP.js";import"./chunk-ICGIGVCI.js";import"./chunk-4JKEUM5K.js";import{c as Ee}from"./chunk-4OPKJP53.js";import{C as Gr,d as Ar,h as Ke,i as Ur,o as Ze,u as Ht,v as et}from"./chunk-57HPEG6P.js";import{e as Nr,k as Or,l as Pe,m as Be}from"./chunk-QBBONYTH.js";import{A as Et,C as _,D as kr,F as je,G as Me,H as O,J as jr,K as h,N as Mr,P as Ye,R as qe,U as Fr,V as Te,aa as Rr,ba as Lr,ca as he,i as Tr,j as Er}from"./chunk-EIGW3M4O.js";import{A as Zr,a as Qr,g as Nt,h as Xr,i as Wr,k as Yr,p as qr,t as Kr,x as tt}from"./chunk-X4CUNWTM.js";import"./chunk-TCPWB7AE.js";import{c as ri}from"./chunk-TTVHG44F.js";import{b as ke}from"./chunk-ZA5EUUO5.js";import{d as it}from"./chunk-U42T2XIB.js";import{a as Ot}from"./chunk-H3VBUZQZ.js";import"./chunk-IUM3V5FC.js";import"./chunk-FBRMIVGH.js";import{B as $r,y as Tt}from"./chunk-CIXJ3P3M.js";import{a as fe,c as pt}from"./chunk-VHSM4NQW.js";import"./chunk-OYBY73QV.js";import{B as Vr,C as At,D as Jr}from"./chunk-BRHPHVRF.js";import"./chunk-OEVV7OTL.js";import{_a as ut,c as Pr,f as ue,g as Br,k as We,l as Z,na as ee,ra as Hr,t as Ir,w as xr,z as wr}from"./chunk-DOLNQL4N.js";import{Ad as De,Bc as S,Dc as y,Ea as ae,Fa as se,G as Ce,Hc as Pt,Ic as Bt,Jc as It,Ka as _t,Mb as T,N as dr,Nb as fr,Nc as _r,Qa as pr,Qb as J,Rb as Q,Rc as I,Sb as hr,Sc as L,T as mr,Ta as St,Tc as le,Va as ur,Wa as R,cc as gr,cd as U,dc as X,dd as xt,ed as Se,f as nr,fc as H,fd as Sr,g as or,ga as Wt,gc as Ge,hc as N,jc as ve,ka as F,kc as de,lc as me,ld as m,m as ar,ma as lr,mc as l,md as u,n as Qt,nc as s,nd as pe,oc as d,pc as p,qc as vr,ra as P,rc as yr,s as Ne,sa as cr,sb as _e,sc as br,tb as Dt,u as M,v as sr,vd as wt,wa as n,wc as Oe,wd as Je,xb as a,xc as Cr,z as Xt,zd as Dr}from"./chunk-2YDJO2NK.js";import{a as B,b as w,d as rr,h as ir,i as K}from"./chunk-NCBA65HR.js";var bt="/assets/img/hhv/hhv-icon.svg",G="Maschinell-Unbekannt",Sn=`${Qe.HHV}Journey`,Dn=`${Qe.HHV}Store`,D=(function(t){return t.AmountOfDogs="anzahl-hunde",t.Breeds="welche-hunderassen",t.AutodetectBreed="erkennung",t.JobType="oeffentlicher-dienst",t})(D||{}),Ve=(function(t){return t.XL="HHV_XL",t.XXL="HHV_XXL",t})(Ve||{});var Pn={[Ee]:{hhv:{subproducts:{[Ve.XL]:"XL",[Ve.XXL]:"XXL"},tariffs:{[v.XL]:{description:"Sorgenfreiheit f\xFCr Hundebesitzer",features:{1:"Wenn aus Bellen Bei\xDFen wird",2:"H\xFCten durch Freunde",3:"Sch\xE4den an der Mietwohnung",4:"T\xE4glich k\xFCndbar",5:"Tierpension-Aufenthalt im Notfall.",6:{label:"Best-Leistungs-Garantie",tooltip:"Sollte der Schaden nicht in unserem Tarif versichert sein, zahlen wir trotzdem - wenn ein anderer Versicherungsanbieter am deutschen Markt diesen Schaden standardm\xE4\xDFig versichert."},7:"Neupreis f\xFCr Sachen < 24 Monate",8:"Gewerbliche Nutzung bis 22.000 \u20AC"}},[v.XXL]:{description:"Mit dem Plus f\xFCr Deinen Hund",features:{1:"Wenn aus Bellen Bei\xDFen wird",2:"H\xFCten durch Freunde",3:"Sch\xE4den an der Mietwohnung",4:"T\xE4glich k\xFCndbar",5:"Tierpension-Aufenthalt im Notfall.",6:{label:"Best-Leistungs-Garantie",tooltip:"Sollte der Schaden nicht in unserem Tarif versichert sein, zahlen wir trotzdem - wenn ein anderer Versicherungsanbieter am deutschen Markt diesen Schaden standardm\xE4\xDFig versichert."},7:"Neupreis f\xFCr Sachen < 24 Monate",8:"Gewerbliche Nutzung bis 22.000 \u20AC"}}}}}};var at=(()=>{class t{constructor(){this.environmentService=n(ke),this.httpClient=n(wr),this.API_PATH=`${this.environmentService.env.API_URL}api/v2/upload/`}static buildUploadHttpParams(e){let r=new Ir;return e.allowOverwrite&&(r=r.set("allowOverwrite","true")),e.convertToJpg&&(r=r.set("convertToJpg","true")),e.maxImageSize&&(r=r.append("maxImageSize",e.maxImageSize.toString())),r}uploadFile(e,r,i){return K(this,null,function*(){let o=new FormData;return o.append("file",r),Ne(this.httpClient.post(this.API_PATH+e,o,{params:t.buildUploadHttpParams(i),reportProgress:!0}).pipe(M(f=>f.root)))})}getImageDimensions(e){return K(this,null,function*(){return new Promise((r,i)=>{let o=new FileReader;o.onload=()=>{let f=new Image;f.onload=()=>{r({height:f.height,width:f.width})},f.onerror=j=>{i(new Error("Error loading image while getting image dimensions: "+j))},f.src=o.result},o.onerror=f=>{i(new Error("Error reading file while getting image dimensions: "+f))},o.readAsDataURL(e)})})}getImageFullUrl(e,r){return this.API_PATH+e+"/"+r}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E=(()=>{class t extends Mt{constructor(){super({name:Sn,storage:{key:Dn,type:Pi},journeyType:ui.PRODUCT,context:Qe.HHV})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();
1var C=(()=>{class t extends Ut{constructor(){super(),this.journeyStore=n(E),this.uploadV2ApiService=n(at),this.sessionQuery=n(rt),this.initializeQuery()}static isUnknownBreed(e){return e.isUnknownBreed1||e.isUnknownBreed2&&e.mixedBreed===!0}get order(){let e=super.order;return e.metadata=w(B({},e.metadata??{}),{advertisementEnabled:e?.metadata?.advertisementEnabled??!1,payment:this.payment,notificationEnabled:this.notificationEnabled,usePartnerId:this.sessionQuery.isLoggedIn,customer:w(B({},e?.metadata?.customer??{}),{email:this.email,birthDate:this.birthdateForOrder()})}),e.productData=w(B({},e?.productData??{}),{insuredDogs:e?.productData?.insuredDogs?.slice(0,this.amountOfDogs().amountOfDogs).map((r,i)=>{let o=this.getDogAtIndex(i);return w(B({},r),{dogImageId:t.isUnknownBreed(o)?r.dogImageId:void 0})}),preInsurance:w(B({},e?.productData?.preInsurance??{}),{previousClaim:this.hasPreInsurer?e?.productData?.preInsurance?.previousClaim:0}),risks:{plus:!1}}),e}static mapUiDogToOrderDog(e){return{firstBreed:e.isUnknownBreed1?G:e.firstBreed,mixedBreed:e.mixedBreed,name:e.name,secondBreed:e.isUnknownBreed2?G:e.secondBreed}}get hasPreInsurer(){return this.stateValue().order.productData?.preInsurance?.hasPreinsurer??!1}amountOfPreviousClaims(){return{previousClaims:this.stateValue()?.order.productData?.preInsurance?.previousClaim??null}}amountOfDogs(){return{amountOfDogs:this.stateValue().data[D.AmountOfDogs]?.amountOfDogs??0}}breeds(){let e=this.stateValue(),r=this.amountOfDogs().amountOfDogs??1,i=new Array(r).fill(null).map(()=>this.createPlaceholderDog());return(e.data[D.Breeds]?.dogs??[]).slice(0,r).forEach((f,j)=>i[j]=f),{dogs:i}}createPlaceholderDog(){return{name:"",mixedBreed:!1,firstBreed:"",secondBreed:"",isUnknownBreed1:!1,isUnknownBreed2:!1,breedImage:bt}}dogNameAtIndex(e){return this.breeds().dogs?.at(e)?.name??""}aiDogBreedsAtIndex(e){return this.autodetectBreeds(e)?.breedPrediction?this.autodetectBreeds(e).breedPrediction?.groups:[]}dogPictureAtIndex(e){let r=this.getDogAtIndex(e),i=this.autodetectBreeds(e);return t.isUnknownBreed(r)&&i.bucketId&&i.fileName?this.uploadV2ApiService.getImageFullUrl(i.bucketId,i.fileName):r.breedImage}getDogAtIndex(e){let r=this.breeds()?.dogs;return Array.isArray(r)&&e>=0&&e<r.length?r.at(e):this.createPlaceholderDog()}autodetectBreeds(e){let i=this.stateValue().data[D.AutodetectBreed]?.[e];return{breedPrediction:i?.breedPrediction??null,bucketId:i?.bucketId??"",fileName:i?.fileName??""}}contract(){let{order:{metadata:e,productData:r},data:i}=this.stateValue(),o=i[g.Contract]?.chips??[];return{gender:e?.customer?.gender??null,firstName:e?.customer?.firstName??null,lastName:e?.customer?.lastName??null,birthDate:this.birthdate().birthDate,phoneNumber:e?.customer?.phoneNumber??null,address:{country:"DE",street:e?.customer?.address?.street??null,houseNumber:e?.customer?.address?.houseNumber??null,city:e?.customer?.address?.city??null,zipCode:e?.customer?.address?.zipCode??null},insuranceStart:e?.insuranceStart??Ie.dateTimeToString(it.now().plus({day:1})),chips:o,payment:{method:e?.payment?.type??Ft.SEPA,accept:i[g.Contract]?.accept??null,iban:i[g.Contract]?.ibanOrPaymentReference??null,debitingDate:i[g.Contract]?.debitingDate??Rt.INSURANCE_START},preInsuranceName:r?.preInsurance?.preinsurerName??null}}offer(){let e=this.stateValue();return{tariff:e.order.productData?.tariffSize??null,coPayment:e.order.productData?.coPayment??null,paymentPlan:e.order.paymentPlan??null}}previousInsurance(){let{order:e}=this.stateValue();return{cancelledByPreInsurer:e.productData?.preInsurance?.cancelledByPreinsurer??null,hasPreInsurer:e.productData?.preInsurance?.hasPreinsurer??null}}publicServant(){return{jobType:this.stateValue()?.order?.productData?.jobType??null}}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var A=(()=>{class t extends Vt{constructor(){super(tn.HHV,rn.V1),this.journeyQuery=n(C),this.journeyStore=n(E),this.assetService=n(oi),this.sessionQuery=n(rt),this.sessionFacade=n(ai),this.basePath=`${ti.HHV}/${ei.JOURNEY}`,this.stateVersion=8,this.initProductJourney()}get session(){return this.sessionQuery.session}createInitialState(e){return K(this,null,function*(){let r={order:{price:42.42,metadata:{consumer:Lt.DIRECT_CHANNEL,broker:{name:e}}}};if(this.sessionQuery.isLoggedIn){let i=yield this.loadPartnerDataOrFailSilent();if(i&&i.type===kt.NATURAL){let o=i.residentialAddress,f=i;r=w(B({},r),{data:w(B({},r.data),{[g.LoginAndRegister]:{mode:gt.WITH_LOGIN,[gt.WITH_LOGIN]:{username:(yield Ne(this.sessionFacade.loadUserInfoOnce()
1))?.username??null,password:null}}}),order:w(B({},r.order),{metadata:w(B({},r.order?.metadata??{}),{customer:{address:{zipCode:o?.zipCode,city:o?.city,houseNumber:o?.houseNumber,street:o?.street},birthDate:f.birthDate,email:f.email?.emailAddress,gender:f.gender,firstName:f.firstName,lastName:f.lastName,phoneNumber:f.phone?.phoneNumber}})})})}else this.logger.error({message:"Failed prefilling of partnerdata.",errCode:nt.JOURNEY_INIT,err:new Error("Partnerdata is missing or not of type natural person."),module:"HhvJourneyService"})}return r})}buildRenounceAdviceUrl(){return this.assetService.ASSET_URLS.BERATUNGSVERZICHT}buildTariffOverviewUrl(){return this.assetService.ASSET_URLS.LEISTUNGSUEBERSICHT_HHV}subProductString(e){switch(e.order?.productData?.tariffSize){case v.XL:return Ve.XL;case v.XXL:return Ve.XXL;default:return Ve.XL}}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();function eo(t,c){t&1&&p(0,"ar-fullscreen-loading")}function to(t,c){if(t&1&&(s(0,"div",3),p(1,"router-outlet"),d()),t&2){let e=y();X("data-step-navigation-animation",e.animationTrigger())}}function ro(t,c){t&1&&p(0,"div")}var Bn=(()=>{class t{constructor(){this.query=n(C),this.actions$=n(k),this.journeyService=n(A),this.portalService=n(Ai),this.product=this.query.product,this.state$=this.query.activeJourneyState$,this.catalog$=this.state$.pipe(M(e=>e.catalog)),this.journeyLoading=this.journeyService.journeyLoading,this.renounceAdviceUrl$=this.journeyService.renounceAdviceUrl$,this.tariffKey$=this.journeyService.tariffKey$,this.activeJourneyState$=this.query.activeJourneyState$,this.destroyRef=n(_t),this.animationTrigger=pr(null)}ngOnInit(){this.journeyService.navigationUpdate$.pipe(F(e=>{this.animationTrigger.set(e.direction)}),dr(500),fe(this.destroyRef)).subscribe(()=>{this.animationTrigger.set(null)})}get portal(){return this.portalService.aboveFooterPortal}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-journey"]],decls:8,vars:2,consts:[[1,"flex","min-h-dvh","flex-col"],["productIcon","hundehalterhaftpflicht"],[1,"flex-1","overflow-hidden"],[1,"step"],[4,"cdkPortalOutlet"]],template:function(r,i){r&1&&(s(0,"div",0)(1,"ar-product-journey-header"),p(2,"ar-progress-steps",1),d(),s(3,"div",2),H(4,eo,1,0,"ar-fullscreen-loading")(5,to,2,1,"div",3),d(),hr(6,ro,1,0,"div",4),p(7,"ar-journey-footer"),d()),r&2&&(a(4),N(i.journeyLoading()?4:5),a(2),l("cdkPortalOutlet",i.portal()))},dependencies:[Z,Ei,ki,Oi,ut,Hr,Hi,Er,Tr],styles:[`.main-content[_ngcontent-%COMP%]{overflow:hidden}@media screen and (min-width:1024px){.main-content[_ngcontent-%COMP%]{min-height:calc(100vh - 117px - 2 * var(--spacing) * 10 - 124px)}}.main-content[_ngcontent-%COMP%]{min-height:calc(100vh - 117px - 2 * var(--spacing) * 10 - 124px)}.step[_ngcontent-%COMP%]{margin:32px 16px 64px}@media screen and (min-width:1024px){.step[_ngcontent-%COMP%]{width:100%;max-width:780px;margin:56px auto 128px}}.step.increased[_ngcontent-%COMP%]{max-width:1008px}.debug-text-wrapper[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:center;flex-direction:row}.debug-text[_ngcontent-%COMP%]{font-size:10px;margin:0}.item-50[_ngcontent-%COMP%]{max-width:50%}
2/*# sourceMappingURL=hhv-journey.component-OGOY42WE.css.map */`]})}}return t})();var xe=ii("HhvJourney"),we="[HhvJourney]:",b={PREVIOUS_INSURANCE:xe.create(`${we} previous insurance store sync`,ye()),AMOUNT_OF_PREVIOUS_CLAIMS:xe.create(`${we} amount of previous claims sync`,ye()),AMOUNT_OF_DOGS:xe.create(`${we} amount of dogs store sync`,ye()),SELECT_DOGS_AND_BREEDS:xe.create(`${we} breeds store sync`,ye()),AUTODETECT_BREED:xe.create(`${we} autodetect breed store sync`,ye()),RESET_AUTODETECT_BREED:xe.create(`${we} reset autodetect breed store sync`,ye()),JOB_TYPE:xe.create(`${we} job type store sync`,ye()),OFFER:xe.create(`${we} offer store sync`,ye()),CONTRACT:xe.create(`${we} contract store sync`,ye()),OVERVIEW:xe.create(`${we} overview store sync`,ye())};var In=(()=>{class t{constructor(){this.store=n(E),this.amountOfDogs$=z(e=>e.pipe($(b.AMOUNT_OF_DOGS),F(r=>{this.store.partialUpdate({data:{[D.AmountOfDogs]:{amountOfDogs:r.amountOfDogs??1}}})})))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var xn=(()=>{class t extends q{constructor(){super(...arguments),this.activatedRoute=n(ee),this.actions$=n(k),this.journeyService=n(A),this.journeyQuery=n(C),this.modalHelper=n(Le),this.query=this.journeyQuery.amountOfDogs,this.action=b.AMOUNT_OF_DOGS,this.form=new O({amountOfDogs:new h(null,_.min(1))}),this.cardConfig={size:{mobile:"S",desktop:"S"},items:[{value:1,title:"hhv.journey.amountOfDogs.options.one",icon:"paw1"}
2,{value:2,title:"hhv.journey.amountOfDogs.options.two",icon:"paw2"},{value:3,title:"hhv.journey.amountOfDogs.options.three",icon:"paw3"},{value:4,title:"hhv.journey.amountOfDogs.options.four",icon:"paw4"},{value:5,title:"hhv.journey.amountOfDogs.options.five",icon:"paw5"}]}}amountToIcon(e){return`paw${e}`}ngOnInit(){super.init()}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-amount-of-dogs"]],features:[U([W(In)]),J([Y]),Q],decls:2,vars:4,consts:[[3,"backNavigationPressed","formSubmit","title","form"],["ariaLabel","hhv.journey.amountOfDogs.title",3,"formControl","config"]],template:function(r,i){r&1&&(s(0,"ar-journey-step-wrapper",0),S("backNavigationPressed",function(){return i.back()})("formSubmit",function(){return i.submit()}),p(1,"ar-selection-input-cards-radio",1),d()),r&2&&(l("title","hhv.journey.amountOfDogs.title")("form",i.form),a(),l("formControl",i.form.controls.amountOfDogs)("config",i.cardConfig))},dependencies:[oe,At,fn,he,je,qe],styles:[`.item[_ngcontent-%COMP%]{text-align:center;background-color:var(--color-grey-2);border:2px solid var(--color-grey-2);padding:16px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .2s ease}.item.selected[_ngcontent-%COMP%]{border:2px solid var(--color-marker-blue)}.item.selected[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{color:var(--color-blue-green)}.items[_ngcontent-%COMP%]{display:grid;justify-content:center;grid-gap:16px;grid-template-columns:repeat(auto-fill,140px);grid-auto-rows:148px}
3/*# sourceMappingURL=hhv-amount-of-dogs.component-ON7AXINM.css.map */`]})}}return t})();var wn=(()=>{class t{constructor(){this.store=n(E),this.amountOfPreviousClaims$=z(e=>e.pipe($(b.AMOUNT_OF_PREVIOUS_CLAIMS),F(r=>{this.store.partialUpdate({order:{productData:{preInsurance:{previousClaim:r.previousClaims??0}}}})})))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var Tn=(()=>{class t extends q{constructor(){super(...arguments),this.activatedRoute=n(ee),this.actions$=n(k),this.journeyService=n(A),this.journeyQuery=n(C),this.modalHelper=n(Le),this.query=this.journeyQuery.amountOfPreviousClaims,this.action=b.AMOUNT_OF_PREVIOUS_CLAIMS,this.form=new O({previousClaims:new h(null,[_.required,be([0,1,2])])}),this.radioGroupConfig={formControl:this.form.controls.previousClaims,ariaLabel:{text:"hhv.journey.amountOfPreviousClaims.title"},items:[{content:{title:{text:"hhv.journey.amountOfPreviousClaims.options.none"}},value:0},{content:{title:{text:"hhv.journey.amountOfPreviousClaims.options.one"}},value:1},{content:{title:{text:"hhv.journey.amountOfPreviousClaims.options.two"}},value:2},{content:{title:{text:"hhv.journey.amountOfPreviousClaims.options.threeOrMore"}},value:3}]}}ngOnInit(){super.init(),this.hasMorePreviousClaimsThanAllowed$().pipe(Ce(e=>e)).subscribe(()=>{this.modalHelper.openDialog(Ae,{data:{title:"hhv.journey.modals.tooManyPreviousClaims.title",text:"hhv.journey.modals.tooManyPreviousClaims.text"},width:"720px"})})}hasMorePreviousClaimsThanAllowed$(){return this.form.controls.previousClaims.valueChanges.pipe(Ce(e=>!tt(e)&&this.form.controls.previousClaims.enabled),M(e=>e>2),fe(this.destroyRef))}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-amount-of-previous-claims"]],features:[U([W(wn)]),J([Y]),Q],decls:2,vars:4,consts:[["subtitle","hhv.journey.amountOfPreviousClaims.subTitle",3,"backNavigationPressed","submit","title","form","formGroup"],[3,"config"]],template:function(r,i){r&1&&(s(0,"ar-journey-step-wrapper",0),S("backNavigationPressed",function(){return i.back()})("submit",function(){return i.submit()}),p(1,"ar-radio-list-select",1),d()),r&2&&(l("title","hhv.journey.amountOfPreviousClaims.title")("form",i.form)("formGroup",i.form),a(),l("config",i.radioGroupConfig))},dependencies:[oe,jt,he,Me,Te],encapsulation:2})}}return t})();var Kt=(function(t){return t.PREDICTION_ERROR="PREDICTION_ERROR",t})(Kt||{}),te=(function(t){return t.GENERIC="generic",t.NO_DOG_FOUND="no dog found",t.MULTI_DOG_FOUND="multi dog found",t.NO_BREED_FOUND="no breed found",t.DANGER_BREED_FOUND="danger breed found",t.ALF_FOUND="alf found",t.FUCHUR_FOUND="fuchur found",t.CHEWBACCA_FOUND="chewbacca found",t.EWOK_FOUND="ewok foun
3d",t.HUMAN_FOUND="human found",t})(te||{});var He=(function(t){return t.YEARLY="yearly",t.MONTHLY="monthly",t.QUARTERLY="quarterly",t.HALFYEARLY="halfyearly",t})(He||{});var En={price:42.42,paymentPlan:He.YEARLY,productData:{preInsurance:{hasPreinsurer:!1,previousClaim:0,cancelledByPreinsurer:!1,preinsurerName:"",preinsurerContractNumber:""},insuredDogs:[{firstBreed:"Mischling",secondBreed:"",name:"Hund",dogImageId:void 0,mixedBreed:!1}],jobType:Ue.EMPLOYEE,coPayment:ge.COPAYMENT_150,tariffSize:v.XL,risks:{plus:!1}},metadata:{broker:{name:en},consumer:Lt.DIRECT_CHANNEL,customer:{gender:vt.M,firstName:"Vorname",lastName:"Nachname",birthDate:ji,phoneNumber:"0123456789",email:"[email protected]",address:{zipCode:"70437",city:"Stuttgart",street:"Auricher Str.",houseNumber:"55"}},insuranceStart:Ie.dateTimeToString(it.now().plus({days:1})),notificationEnabled:!1,advertisementEnabled:!1,payment:{type:Ft.SEPA,iban:"DE36000000000000000000",debitingDate:Rt.INSURANCE_START},usePartnerId:!1}};var ce=(()=>{class t extends $t{constructor(){super(...arguments),this.actions$=n(k),this.envService=n(ke),this.journeyQuery=n(C)}get baseUrl(){return`api/v3/contract/hhv/${this.productVersion}`}minimalPriceParams(e){let r=e.productData;return{paymentPlan:e.paymentPlan,metadata:{insuranceStart:e.metadata.insuranceStart,customer:{birthDate:e.metadata.customer.birthDate,address:{street:e.metadata.customer.address.street,houseNumber:e.metadata.customer.address.houseNumber,zipCode:e.metadata.customer.address.zipCode,city:e.metadata.customer.address.city}}},productData:r}}pricingIrrelevantParams(e){return{metadata:{customer:{gender:e.metadata.customer.gender,lastName:e.metadata.customer.lastName,firstName:e.metadata.customer.firstName,email:e.metadata.customer.email,phoneNumber:e.metadata.customer.phoneNumber},payment:{type:e.metadata.payment.type,iban:e.metadata.payment.iban}}}}order(e){let r=this.journeyQuery.order,i=Nt(t.getDefaultValues()),o;return e===ht.Offer?(o=Wr({},e===ht.Offer?i:{},r,this.pricingIrrelevantParams(i),(f,j)=>j===null?f:void 0),Xe.isValidInsuranceStartDate(o?.metadata?.insuranceStart)||(o.metadata.insuranceStart=Nt(i.metadata.insuranceStart))):o=this.journeyQuery.order,Nt(o)}static getDefaultValues(){return En}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var ze=(()=>{class t{constructor(){this.translateService=n(Pe),this.hhvPricingService=n(ce),this.logger=n(Or)}calculatePriceDifference(e,r){return K(this,null,function*(){try{let[{price:i},{price:o}]=yield Promise.all([this.performPriceRequest(e,{name:"PRICE_DIFFERENCE_UNKNOWN",firstBreed:G,secondBreed:G,dogImageId:void 0}),this.performPriceRequest(e,{name:"PRICE_DIFFERENCE_IMAGE",firstBreed:G,secondBreed:G,dogImageId:r})]);return i-o}catch(i){return this.logger.error({err:i,message:"Error during price difference calculation",errCode:nt.HHV_PRICE_DIFFERENCE_CALCLULATION_FAILED,module:"HhvPredictionService"}),-1}})}isSuccessfulDogBreedPrediction(e){return e.type!==Kt.PREDICTION_ERROR}predictDogBreed(e,r){return K(this,null,function*(){try{return(yield this.performPriceRequest(e,{name:"DETECT_DOG_BREED",firstBreed:G,secondBreed:G,dogImageId:r})).dogPredictionResults.find(o=>o.dogIndex===e)}catch(i){if(i instanceof xr&&this.isBreedPredictionBadRequestResponse(i.error))return i.error.details[e];throw i}})}translateDogGroups(e){let r=Xr(e);return r.length===0?G:r.length===1?qr(r):`${Zr(Kr(r),", ")} ${this.translateService.instant("general.and")} ${Yr(r)}`}isBreedPredictionBadRequestResponse(e){return!!e&&e?.message==="Dog Prediction failed."&&Qr(e?.details)}performPriceRequest(e,r){return K(this,null,function*(){let i=this.hhvPricingService.order(ht.Offer);return i.productData.insuredDogs=i.productData.insuredDogs.map((o,f)=>f===e?B(B({},o),r):o),Ne(this.hhvPricingService.priceRequest(i))})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var io=["imageCanvas"],An=(()=>{class t{constructor(){this.image=De.required()}ngOnChanges(e){"image"in e&&this.renderImage()}ngAfterViewInit(){this.renderImage()}renderImage(){let e=this.image();if(!(this.imageCanvas&&e))return;let r=this.imageCanvas.nativeElement,i=r.getContext("2d");if(i){let o=new Image;o.addEventListener("load",()=>{let{srcCoordinates:{x1:f,x2:j,y1:V,y2:mt}}=this.image(),lt=j-f,ct=mt-V,Gt=0,Jt=0;lt<ct?Gt=r.width-r.width*(lt/ct):ct<lt&&(Jt=r.height-r.height*(ct/lt)),i.fillStyle=this.image().backgroundColor,i.fillRect(0,0,r.width,r.height),i.drawImage(o,f,V,lt,ct,Gt/2,Jt/2,r.width-Gt,r.height-Jt)}),o.src=e.src}}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=T({type:t,selectors:[["ar-circle-image"]],viewQuery:function(r,i){if(r&1&&Pt(io,5),r&2){let o;Bt(o=It())&&(i.imageCanvas=o.first)}},inputs:{image:[1,"image"]},features:[ur],decls:3,vars:3,consts:[["imageCanvas",""],[1,"component"],[1,"image",3,"hidden","width","height"]],template:function(r,i){r&1&&(vr(0,"div",1),br(1,"canvas",2,0),yr()),r&2&&(a(),Cr("hidden",!i.image())("width",i.image()&&i.image().width||0)("height",i.image()&&i.image().height||0))},styles:[`.image[_ngcontent-%COMP%]{border-radius:49.99999%}
4/*# sourceMappingURL=circle-image.component-SVJLC4U3.css.map */`]})}}return t})();var no=(t,c)=>({dogName:t,savingsAmount:c}),oo=t=>({dogName:t});function ao(t,c){if(t&1&&(p(0,"p",6),m(1,"async"),m(2,"currency"),m(3,"arTranslateAndByPassHtml"),p(4,"p",7),m(5,"arTranslateAndByPassHtml")),t&2){let e=y();l("innerHTML",pe(3,7,"hhv.journey.autodetectBreedConfirm.savings",Sr(13,no,e.dogName(),pe(2,4,u(1,2,e.priceDifference$),"EUR"))),_e),a(4),l("innerHTML",pe(5,10,"hhv.journey.autodetectBreedConfirm.goodBoy",Se(16,oo,e.dogName())),_e)}}function so(t,c){t&1&&p(0,"ar-spinner")}var Nn=(()=>{class t{constructor(){this.uploadV2ApiService=n(at),this.dogBreedPredictionService=n(ze),this.dogName=De(""),this.dogIndex=De(0),this.breedPredictionState=De(null),this.imageDeleted=Dr(),this.breedGroupsTranslateParams={}}ngOnInit(){this.breedGroupsTranslateParams.dogName=this.dogName();let e=this?.breedPredictionState();e?.breedPrediction&&e?.breedPrediction?.groups&&(this.breedGroupsTranslateParams={dogName:this?.dogName()??"",breedGroups:this.dogBreedPredictionService.translateDogGroups(e.breedPrediction.groups)},e.bucketId&&e.fileName&&e.breedPrediction&&e.breedPrediction.coordinates&&(this.image={width:166,height:166,src:this.uploadV2ApiService.getImageFullUrl(e.bucketId,e.fileName),srcCoordinates:e.breedPrediction.coordinates,backgroundColor:"#000000"}),e.bucketId&&e.fileName&&(this.priceDifference$=ar(this.dogBreedPredictionService.calculatePriceDifference(this.dogIndex(),{bucketId:e.bucketId,fileName:e.fileName}))))}removeImage(){this.imageDeleted.emit()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-autodetect-breed-confirm"]],inputs:{dogName:[1,"dogName"],dogIndex:[1,"dogIndex"],breedPredictionState:[1,"breedPredictionState"]},outputs:{imageDeleted:"imageDeleted"},decls:10,vars:8,consts:[[1,"groups-text",3,"innerHTML"],[1,"image-wrapper"],[3,"image"],[1,"image-button-wrapper"],["type","button",1,"remove-image-button","cursor-pointer","[--border-color:none]",3,"click"],["height","40","width","40","src","assets/img/cookie-banner/close.svg","alt",""],[1,"savings-text",3,"innerHTML"],[1,"good-boy-text",3,"innerHTML"]],template:function(r,i){r&1&&(p(0,"p",0),m(1,"arTranslateAndByPassHtml"),s(2,"div",1),p(3,"ar-circle-image",2),s(4,"div",3)(5,"button",4),S("click",function(){return i.removeImage()}),p(6,"img",5),d()()(),H(7,ao,6,18),m(8,"async"),Ge(9,so,1,0,"ar-spinner")),r&2&&(l("innerHTML",pe(1,3,"hhv.journey.autodetectBreedConfirm.breedGroups",i.breedGroupsTranslateParams),_e),a(3),l("image",i.image),a(4),N(u(8,6,i.priceDifference$)!==null?7:9))},dependencies:[Z,An,ne,qi,Yi,Tt,ue,We,Fe],styles:[`[_nghost-%COMP%]{text-align:center;align-items:center;display:flex;flex-direction:column}.groups-text[_ngcontent-%COMP%]{margin:0 0 30px}.image-wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:20px}.show-image-button[_ngcontent-%COMP%]{appearance:none;background:transparent;border:none;cursor:pointer;padding:0}.image-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:flex-start;height:100%;left:10px;position:absolute;top:0;width:100%;transition:background-color .2s}.remove-image-button[_ngcontent-%COMP%]{appearance:none;background:transparent;border:none;cursor:pointer;padding:0}.savings-text[_ngcontent-%COMP%], .good-boy-text[_ngcontent-%COMP%]{font-size:24px;margin:0}.savings-text[_ngcontent-%COMP%]{margin-bottom:36px}
5/*# sourceMappingURL=hhv-autodetect-breed-confirm.component-ZUMCSIW3.css.map */`]})}}return t})();var On=(()=>{class t{constructor(){this.store=n(E),this.autodetectBreed$=z(e=>e.pipe($(b.AUTODETECT_BREED),Ce(r=>r.breedPrediction.dogIndex!==null),F(r=>{this.store.updateActive(i=>{let o=i.data[D.AutodetectBreed],f=w(B({},o),{[r.breedPrediction.dogIndex]:r});return i.data=w(B({},i.data),{[D.AutodetectBreed]:f}),i.order.productData=w(B({},i.order.productData),{insuredDogs:i.order.productData?.insuredDogs?.map((j,V)=>V===r.breedPrediction.dogIndex?w(B({},j),{dogImageId:{bucketId:r.bucketId||"00000000-0000-0000-0000-000000000000",fileName:r.fileName||""}}):j)||[]}),i})}))),this.resetDogAtIndex$=z(e=>e.pipe($(b.RESET_AUTODETECT_BREED),F(r=>{this.store.updateActive(i=>{let o=i.data[D.AutodetectBreed],f=w(B({},o),{[r.dogIndex]:null});return i.data=w(B({},i.data),{[D.AutodetectBreed]:f}),i.order.productData=w(B({},i.order.productData),{insuredDogs:i?.order?.productData?.insuredDogs?.map((j,V)=>V===r.dogIndex?w(B({},j),{dogImageId:{bucketId:"00000000-0000-0000-0000-000000000000",fileName:""}}):j)||[]}),i})})))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var re=(function(t){return t.MISSING="imageMissing",t.ANALYZING="imageAnalyzing",t.COMPLETE="analyzingComplete",t})(re||{}),kn={[te.ALF_FOUND]:"alf",[te.HUMAN_FOUND]:"human",[te.EWOK_FOUND]:"ewok",[te.FUCHUR_FOUND]:"fuchur",[te.CHEWBACCA_FOUND]:"chewbacca"};var mo=["fileInput"];function lo(t,c){if(t&1){let e=Oe();s(0,"form",2),S("ngSubmit",function(){ae(e);let i=y(2);return se(i.submit())}),s(1,"ar-hhv-autodetect-breed-confirm",3),S("imageDeleted",function(){ae(e);let i=y(2);return se(i.resetBreedPrediction())}),d(),s(2,"ar-journey-step-navigation",4),S("navigateBack",function(){ae(e);let i=y(2);return se(i.back())}),d()()}if(t&2){let e=y(2);a(),l("dogName",e.currendDogName)("dogIndex",e.currentDogIndex)("breedPredictionState",e.formValue())}}function co(t,c){if(t&1){let e=Oe();s(0,"div",17),S("dragover",function(i){return i.preventDefault()})("drop",function(i){ae(e);let o=y(3);return se(o.onDrop(i))}),s(1,"div",18),p(2,"img",19),d(),s(3,"p",20)(4,"span",21),I(5),m(6,"translate"),d(),p(7,"br"),I(8),m(9,"translate"),d(),s(10,"button",22),S("click",function(){ae(e),y();let i=_r(10);return se(i.click())}),I(11),m(12,"translate"),d(),s(13,"a",23)(14,"span",24),I(15),m(16,"translate"),d(),p(17,"mat-icon",25),d()()}
5t&2&&(a(5),le(" ",u(6,6,"hhv.journey.autodetectBreed.provideImage.1")),a(3),le(" ",u(9,8,"hhv.journey.autodetectBreed.provideImage.2")," "),a(2),X("trackingId","hhv-upload"),a(),le(" ",u(12,10,"hhv.journey.autodetectBreed.uploadImage")," "),a(2),X("trackingId","hhv-upload-details"),a(2),le(" ",u(16,12,"hhv.journey.autodetectBreed.infoBtn")," "))}function po(t,c){t&1&&(s(0,"div",26),S("dragover",function(r){return r.preventDefault()}),p(1,"ar-loading-with-backdrop",27),s(2,"p",28),I(3),m(4,"translate"),d()()),t&2&&(a(3),L(u(4,1,"hhv.journey.autodetectBreed.imageProcessing")))}function uo(t,c){if(t&1){let e=Oe();s(0,"div",5),p(1,"span",6),s(2,"ar-ui-info-icon-tooltip",7),m(3,"translate"),p(4,"div",8),m(5,"translate"),d()(),s(6,"div",9),p(7,"span",10),m(8,"arTranslateAndByPassHtml"),d(),s(9,"input",11,0),S("change",function(i){ae(e);let o=y(2);return se(o.onChange(i.target==null?null:i.target.files))}),d(),H(11,co,18,14,"div",12)(12,po,5,3,"div",12),s(13,"div",13)(14,"ar-ui-button-back",14),S("click",function(){ae(e);let i=y(2);return se(i.back())}),d(),s(15,"ar-ui-button-loading",15),S("click",function(){ae(e);let i=y(2);return se(i.submit())}),s(16,"span"),I(17),m(18,"translate"),d(),p(19,"mat-icon",16),d()()}if(t&2){let e,r=y(),i=y();a(),l("innerHTML",i.subtitle,_e),a(),gr("aria-label",u(3,8,"hhv.journey.autodetectBreed.subTitleInfoAriaLabel")),a(2),l("innerHTML",u(5,10,"hhv.journey.autodetectBreed.subTitleInfo"),_e),a(3),l("innerHTML",u(8,12,"hhv.journey.autodetectBreed.imageConstraints"),_e),a(4),N((e=r)===i.processingEnum.MISSING?11:e===i.processingEnum.ANALYZING?12:-1),a(3),l("useBrowserLocationBack",!1),a(),l("loading",r===i.processingEnum.ANALYZING),a(2),le(" ",u(18,14,"hhv.journey.general.skip")," ")}}function fo(t,c){if(t&1&&H(0,lo,3,3,"form")(1,uo,20,16),t&2){let e=y();N(c===e.processingEnum.COMPLETE?0:1)}}var jn=(()=>{class t extends q{constructor(){super(...arguments),this.journeyQuery=n(C),this.activatedRoute=n(ee),this.actions$=n(k),this.journeyService=n(A),this.safeTranslate=n(Fe),this.translateService=n(Pe),this.dialog=n(Ar),this.uploadV2ApiService=n(at),this.dogBreedPredictionService=n(ze),this.currentDogIndex=Number(this.stepUrl.slice(-1))-1,this.currendDogName=this.journeyQuery.dogNameAtIndex(this.currentDogIndex),this.action=b.AUTODETECT_BREED,this.form=new O({bucketId:new h(""),fileName:new h(""),breedPrediction:new O({dogIndex:new h(this.currentDogIndex),primaryBreed:new h(null),secondaryBreed:new h(null),groups:this.buildGroupsArray(this.journeyQuery.autodetectBreeds(this.currentDogIndex).breedPrediction?.groups?.length??1),coordinates:new O({x1:new h(null),y1:new h(null),x2:new h(null),y2:new h(null)})})}),this.processingState$=new or(re.MISSING),this.processingEnum=re,this.subtitle=this.safeTranslate.transform("hhv.journey.autodetectBreed.subTitle",{dogName:this.currendDogName}),this.DOG_BUCKET="dd8d934b-59a2-4e15-8e70-241e0a7d29f8",this.title$=this.processingState$.pipe(Ce(e=>[re.COMPLETE,re.MISSING].includes(e)),M(e=>{let r=e===re.COMPLETE?"hhv.journey.autodetectBreedConfirm.title":"hhv.journey.autodetectBreed.title";return this.translateService.instant(r,{dogName:this.currendDogName})})),this.nextBtnText$=this.processingState$.pipe(Ce(e=>[re.COMPLETE,re.MISSING].includes(e)),M(e=>e===re.COMPLETE?"hhv.journey.general.next":"hhv.journey.general.skip")),this.query=()=>this.journeyQuery.autodetectBreeds(this.currentDogIndex)}formValue(){return w(B({},this.form.getRawValue()),{breedPrediction:this.form.controls.breedPrediction.getRawValue()})}buildGroupsArray(e){return new Ye(new Array(e).fill(null).map(()=>new h("")))}ngOnInit(){super.init(),this.checkIfBreedPredictionAlreadyHappened()}onChange(e){return K(this,null,function*(){let r=e.item(0);r&&(this.fileInput.nativeElement.value="",yield this.predictDogBreed(r))})}onDrop(e){return K(this,null,function*(){if(e.preventDefault(),e.stopPropagation(),e.dataTransfer&&e.dataTransfer.files.length){let r=e.dataTransfer.files.item(0);r&&(yield this.predictDogBreed(r))}})}predictDogBreed(e){return K(this,null,function*(){this.processingState$.next(re.ANALYZING);try{if(yield this.isValidImage(e)){let o=yield this.uploadV2ApiService.uploadFile(this.DOG_BUCKET,e,{allowOverwrite:!0,convertToJpg:!0,maxImageSize:2500}),f=yield this.dogBreedPredictionService.predictDogBreed(this.currentDogIndex,{bucketId:o.bucketId,fileName:o.filename});if(this.dogBreedPredictionService.isSuccessfulDogBreedPrediction(f)){let r=f,{type:j}=r,V=rr(r,["type"]);V.groups.length!==this.form.controls.breedPrediction.controls.groups.length&&(this.form.controls.breedPrediction.controls.groups=this.buildGroupsArray(V.groups.length)),this.form.setValue({bucketId:o.bucketId,fileName:o.filename,breedPrediction:V}),this.processingState$.next(re.COMPLETE)}else this.handleDogBreedPredictionError(f)}}catch(i){this.logger.error({message:"Error during breed prediction",errCode:nt.HHV_BREED_PREDICTION_FAILED,err:i,module:"HhvAutodetectBreedComponent"}),this.showErrorModal()}})}isValidImage(e){return K(this,null,function*(){let r=yield this.uploadV2ApiService.getImageDimensions(e);return r.height<400||r.width<400?(this.dialog.open(Ae,{data:{title:"hhv.journey.autodetectBreed.modals.dogImageTooSmall.title",text:"hhv.journey.autodetectBreed.modals.dogImageTooSmall.text",btn:{text:"hhv.journey.autodetectBreed.modals.generic.uploadNewImage"}},width:"720px"}),this.processingState$.next(re.MISSING),this.logger.info({message:"image to small",logCode:ft.HHV_DISQUALIFICATION,data:{reason:"uploaded image has to small dimensions to be processed"},module:"HhvAutodetectBreedComponent"}),Promise.resolve(!1)):Promise.resolve(!0)})}handleDogBreedPredictionError(e){let r;switch(e.error){case te.DANGER_BREED_FOUND:r={title:"hhv.journey.autodetectBreed.modals.notInsurableDog.title",text:"hhv.journey.autodetectBreed.modals.notInsurableDog.text"}
5,this.logger.info({message:"dangerous dog breed",logCode:ft.HHV_DISQUALIFICATION,data:{reason:"selected dog breed not insurable (pricing tool)"},module:"HhvAutodetectBreedComponent"});break;case te.NO_DOG_FOUND:r={title:"hhv.journey.autodetectBreed.modals.noDogsOnImage.title",text:"hhv.journey.autodetectBreed.modals.noDogsOnImage.text",btn:{text:"hhv.journey.autodetectBreed.modals.generic.uploadNewImage"}},this.logger.info({message:"no dog found",logCode:ft.HHV_DISQUALIFICATION,data:{reason:"uploaded image does not contain any dog"},module:"HhvAutodetectBreedComponent"});break;case te.MULTI_DOG_FOUND:r={title:"hhv.journey.autodetectBreed.modals.multipleDogsOnImage.title",text:"hhv.journey.autodetectBreed.modals.multipleDogsOnImage.text",btn:{text:"hhv.journey.autodetectBreed.modals.generic.uploadNewImage"}},this.logger.info({message:"more than one dog found",logCode:ft.HHV_DISQUALIFICATION,data:{reason:"uploaded image contains more than one dog"},module:"HhvAutodetectBreedComponent"});break;case te.ALF_FOUND:case te.HUMAN_FOUND:case te.EWOK_FOUND:case te.FUCHUR_FOUND:case te.CHEWBACCA_FOUND:let i=kn[e.error]||"notRecognized";r={title:`hhv.journey.autodetectBreed.modals.characterErrors.${i}.title`,text:`hhv.journey.autodetectBreed.modals.characterErrors.${i}.text`,btn:{text:"hhv.journey.autodetectBreed.modals.generic.uploadNewImage",action:"fantasyFiguresFound"}};break;default:r={title:"hhv.journey.autodetectBreed.modals.generic.title",text:"hhv.journey.autodetectBreed.modals.generic.text"};break}this.showErrorModal(r)}showErrorModal(e){let r=e||{title:"hhv.journey.autodetectBreed.modals.generic.title",text:"hhv.journey.autodetectBreed.modals.generic.text",btn:{text:"hhv.journey.autodetectBreed.modals.generic.uploadNewImage"}};this.dialog.open(Ae,{data:r,width:"720px"}),this.processingState$.next(re.MISSING)}checkIfBreedPredictionAlreadyHappened(){let e=this.form.value;e.bucketId&&e.fileName&&this.processingState$.next(re.COMPLETE)}resetBreedPrediction(){this.form.reset(),this.actions$.dispatch(b.RESET_AUTODETECT_BREED({dogIndex:this.currentDogIndex})),this.processingState$.next(re.MISSING)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-autodetect-breed"]],viewQuery:function(r,i){if(r&1&&Pt(mo,5),r&2){let o;Bt(o=It())&&(i.fileInput=o.first)}},features:[U([W(On)]),J([Y]),Q],decls:4,vars:6,consts:[["fileInput",""],[3,"title"],[3,"ngSubmit"],[3,"imageDeleted","dogName","dogIndex","breedPredictionState"],[3,"navigateBack"],[1,"subtitle"],[1,"subtitle-text",3,"innerHTML"],[1,"pl-1","align-bottom",3,"aria-label"],[1,"text-sm","font-normal",3,"innerHTML"],[1,"subtitle","second"],[3,"innerHTML"],["accept","image/jpeg,image/png,image/webp,image/avif,image/tiff,image/svg+xml,image/heif,image/heic","hidden","","type","file","name","image",3,"change"],[1,"dropzone"],[1,"step-buttons","flex","justify-center"],[1,"mr-6",3,"click","useBrowserLocationBack"],["type","submit","variant","mao-blg-w",3,"click","loading"],["arUiSvgIcon","arrow",1,"ml-2","size-6","text-marker-blue!"],[1,"dropzone",3,"dragover","drop"],[1,"img-container"],["src","/assets/img/hhv/upload-placeholder.svg","alt","",1,"upload-placeholder"],[1,"provide-image-text","my-4"],[1,"desktop"],["arUiButton","refi-blg","type","button",1,"upload-btn",3,"click"],["arUiButton","txtbtn-blg","target","_blank","rel","rel=noopener noreferrer","href","https://info.adam-riese.de/hundebilderkennung-optimiert/"],[1,"inline-flex","items-center","justify-center","text-blue-green"],["arUiSvgIcon","arrow",1,"ml-2","size-6!"],[1,"dropzone",3,"dragover"],[1,"no-backdrop"],[1,"image-processing-text","my-4"]],template:function(r,i){if(r&1&&(p(0,"ar-journey-step-title",1),m(1,"async"),H(2,fo,2,1),m(3,"async")),r&2){let o;l("title",u(1,2,i.title$)),a(2),N((o=u(3,4,i.processingState$))?2:-1,o)}},dependencies:[Z,Fi,ne,Ni,Mi,Tt,Nn,pi,Lr,Mr,Me,jr,At,Vr,Jr,zr,$r,si,ue,Fe,Be],styles:[`.title[_ngcontent-%COMP%]{text-align:center;margin-bottom:24px}.subtitle[_ngcontent-%COMP%]{margin:auto 0;text-align:center}.subtitle[_ngcontent-%COMP%] + .subtitle[_ngcontent-%COMP%]{margin-top:24px}.subtitle[_ngcontent-%COMP%]   .subtitle-text[_ngcontent-%COMP%]{text-align:center;font-size:16px;font-weight:400;margin:0}.dropzone[_ngcontent-%COMP%]{position:relative;background:#fbfbfb;--border-color: #979797;--border-weight: 2px;--dash-size: 8px;--gap-size: 8px}.dropzone.animate[_ngcontent-%COMP%]:hover{--border-color: var(--color-marker-blue);--border-weight: 2px;--dash-size: 4px;--gap-size: 4px}.dropzone[_ngcontent-%COMP%]:after{transition:all .6s ease;content:"";pointer-events:none;position:absolute;inset:0 0 0 1px;background:linear-gradient(90deg,var(--border-color) 100%,transparent 100%) top left no-repeat,linear-gradient(90deg,transparent calc(var(--gap-size) / 2),var(--border-color) calc(var(--gap-size) / 2),var(--border-color) calc(var(--gap-size) / 2 + var(--dash-size)),transparent calc(var(--gap-size) / 2 + var(--dash-size))) top center repeat-x,linear-gradient(90deg,var(--border-color) 100%,transparent 100%) top right no-repeat,linear-gradient(0deg,var(--border-color) 100%,transparent 100%) top left no-repeat,linear-gradient(0deg,transparent calc(var(--gap-size) / 2),var(--border-color) calc(var(--gap-size) / 2),var(--border-color) calc(var(--gap-size) / 2 + var(--dash-size)),transparent calc(var(--gap-size) / 2 + var(--dash-size))) center left repeat-y,linear-gradient(0deg,var(--border-color) 100%,transparent 100%) bottom left no-repeat,linear-gradient(90deg,var(--border-color) 100%,transparent 100%) bottom left no-repeat,linear-gradient(90deg,transparent calc(var(--gap-size) / 2),var(--border-color) calc(var(--gap-size) / 2),var(--border-color) calc(var(--gap-size) / 2 + var(--dash-size)),transparent calc(var(--gap-size) / 2 + var(--dash-size))) bottom center repeat-x,linear-gradient(90deg,var(--border-color) 100%,transparent 100%) bottom right no-repeat,linear-gradient(0deg,var(--border-color) 100%,transparent 100%) top right no-repeat,linear-gradient(0deg,transparent calc(var(--gap-size) / 2),var(--border-color) calc(var(--gap-size) / 2),var(--border-color) calc(var(--gap-size) / 2 + var(--dash-size)),transparent calc(var(--gap-size) / 2 + var(--dash-size))) center right repeat-y,linear-gradient(0deg,var(--border-color) 100%,transparent 100%) bottom right no-repeat;background-size:var(--dash-size) var(--border-weight),calc(var(--dash-size) + var(--gap-size)) var(--border-weight),var(--dash-size) var(--border-weight),var(--border-weight) var(--dash-size),var(--border-weight) calc(var(--dash-size) + var(--gap-size)),var(--border-weight) var(--dash-size)}.dropzone[_ngcontent-%COMP%]{margin-top:40px;align-items:center;text-align:center;display:flex;flex-direction:column;height:368px;justify-content:center;width:100%}.img-container[_ngcontent-%COMP%]{width:100%;height:100px;text-align:center}.upload-placeholder[_ngcontent-%COMP%]{margin:auto}.provide-image-text[_ngcontent-%COMP%]{color:#7f7f7f;font-size:14px;margin:0;text-align:center}.upload-btn[_ngcontent-%COMP%]{margin:32px auto 16px;width:320px}.provide-image-text[_ngcontent-%COMP%]{margin-bottom:0}.image-processing-text[_ngcontent-%COMP%]{color:#c7c7c7;font-size:14px;text-align:center}.step-buttons[_ngcontent-%COMP%]{margin-top:68px}
6/*# sourceMappingURL=hhv-autodetect-breed.component-GWFUGFTV.css.map */`],changeDetection:0})}}return t})();var Mn=t=>({dogNo:t}),go=t=>({breedNo:t}),vo=()=>({breedNo:"2. "});function yo(t,c){t&1&&(s(0,"mat-error",6),I(1),m(2,"translate"),d()),t&2&&(a(),L(u(2,1,"hhv.journey.dogsAndBreeds.invalidNameError")))}function bo(t,c){t&1&&(s(0,"mat-form-field",10)(1,"mat-label"),I(2),m(3,"translate"),d(),p(4,"input",14),d()),t&2&&(a(2),L(u(3,1,"hhv.journey.dogsAndBreeds.breed")))}function Co(t,c){if(t&1&&(I(0),m(1,"translate"),p(2,"br")),t&2){let e=c.$implicit;
6le(" ",u(1,1,e)," ")}}function _o(t,c){if(t&1){let e=Oe();s(0,"mat-form-field",10)(1,"mat-label"),I(2),m(3,"translate"),m(4,"translate"),d(),s(5,"ar-algolia-autocomplete",15),S("emitAlgoliaHit",function(i){ae(e);let o=y();return se(o.onMatchAlgoliaHit("firstBreed",i))}),d(),s(6,"mat-error",16),de(7,Co,3,3,null,null,ve),d()()}if(t&2){let e=y();a(2),L(e.formGroup.controls.mixedBreed.value===!1?u(3,3,"hhv.journey.dogsAndBreeds.breed"):u(4,5,"hhv.journey.dogsAndBreeds.primaryBreed")),a(3),l("searchIndex",e.algoliaSearchIndex)("inputId","first-breed-"+e.index()),a(2),me(e.getActiveBreedErrors(e.formGroup.controls.firstBreed))}}function So(t,c){t&1&&(s(0,"mat-form-field",10)(1,"mat-label"),I(2),m(3,"translate"),d(),p(4,"input",14),d()),t&2&&(a(2),L(u(3,1,"hhv.journey.dogsAndBreeds.secondaryBreed")))}function Do(t,c){if(t&1&&(I(0),m(1,"translate"),p(2,"br")),t&2){let e=c.$implicit;le(" ",u(1,1,e)," ")}}function Po(t,c){if(t&1){let e=Oe();s(0,"mat-form-field",10)(1,"mat-label"),I(2),m(3,"translate"),d(),s(4,"ar-algolia-autocomplete",18),S("emitAlgoliaHit",function(i){ae(e);let o=y(2);return se(o.onMatchAlgoliaHit("secondBreed",i))}),d(),s(5,"mat-error",16),de(6,Do,3,3,null,null,ve),d()()}if(t&2){let e=y(2);a(2),L(u(3,3,"hhv.journey.dogsAndBreeds.secondaryBreed")),a(2),l("searchIndex",e.algoliaSearchIndex)("inputId","second-breed-"+e.index()),a(2),me(e.getActiveBreedErrors(e.formGroup.controls.secondBreed))}}function Bo(t,c){if(t&1){let e=Oe();s(0,"div",12),H(1,So,5,3,"mat-form-field",10),m(2,"async"),Ge(3,Po,8,5,"mat-form-field",10),s(4,"mat-checkbox",17),S("change",function(i){ae(e);let o=y();return se(o.toggleBreedControl(o.formGroup.controls.secondBreed,i))}),I(5),m(6,"translate"),d()()}if(t&2){let e=y();a(),N(u(2,2,e.isUnknownBreed2$)?1:3),a(4),le(" ",pe(6,4,"hhv.journey.dogsAndBreeds.unknownBreed",xt(7,vo))," ")}}function Io(t,c){if(t&1&&(p(0,"ar-ui-dotted-border-box",13),m(1,"arTranslateAndByPassHtml")),t&2){let e=y();l("strokeColor",e.copyBlue)("innerHtml",u(1,2,"hhv.journey.dogsAndBreeds.autoDetectionInfo"),_e)}}var Rn=(()=>{class t{constructor(){this.parentForm=n(Te),this.environmentService=n(ke),this.translateService=n(Pe),this.dialog=n(Le),this.index=De(0),this.isSingle=De(!1),this.breedErrors=De.required(),this.copyBlue=di["blue-green"],this.indexToHumanReadableNumber={0:this.translateService.instant("hhv.journey.dogsAndBreeds.amountOfDogs.0"),1:this.translateService.instant("hhv.journey.dogsAndBreeds.amountOfDogs.1"),2:this.translateService.instant("hhv.journey.dogsAndBreeds.amountOfDogs.2"),3:this.translateService.instant("hhv.journey.dogsAndBreeds.amountOfDogs.3"),4:this.translateService.instant("hhv.journey.dogsAndBreeds.amountOfDogs.4")},this.algoliaSearchIndex=this.environmentService.isProduction?"prod_dogbreeds":"dev_dogbreeds",this.isUnknownBreed1$=Qt(!1),this.isUnknownBreed2$=Qt(!1),this.forbiddenBreeds$=new nr,this.destroyRef=n(_t)}get formGroup(){return this.parentForm.form}ngOnInit(){this.isUnknownBreed1$=Xt(()=>this.formGroup.controls.isUnknownBreed1.valueChanges.pipe(Wt(this.formGroup.controls.isUnknownBreed1.value),M(e=>!!e))).pipe(fe(this.destroyRef)),this.isUnknownBreed2$=Xt(()=>this.formGroup.controls.isUnknownBreed2.valueChanges.pipe(Wt(this.formGroup.controls.isUnknownBreed2.value),M(e=>!!e))).pipe(fe(this.destroyRef)),this.forbiddenBreeds$.pipe(mr(),fe(this.destroyRef)).subscribe(e=>{this.showErrorModal(e)})}onMatchAlgoliaHit(e,r){if(!r)return;let i=r.picture||bt;this.formGroup.controls.breedImage.value!==i&&this.formGroup.controls.breedImage.setValue(i),this.formGroup.get(e)?.setValue(r.name),r.enabled==="false"&&this.forbiddenBreeds$.next(r.name)}toggleBreedControl(e,{checked:r}){r?(e.reset(),e.disable(),this.formGroup.controls.breedImage.reset(bt)):e.enable()}triggerValidationAndReset2ndBreedInputs(e){this.formGroup.controls.isUnknownBreed2.reset(!1),e.value?(this.formGroup.controls.secondBreed.enable(),this.formGroup.controls.secondBreed.reset()):this.formGroup.controls.secondBreed.disable(),this.formGroup.updateValueAndValidity()}showErrorModal(e){let r={title:"hhv.journey.modals.invalidDogBreed.title",text:this.translateService.instant("hhv.journey.modals.invalidDogBreed.text",{dogBreed:e})};this.dialog.openDialog(Ae,{data:r,width:"720px"})}getActiveBreedErrors(e){return this.breedErrors().filter(r=>e.hasError(r.errorKey)).map(r=>r.message)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=T({type:t,selectors:[["ar-dogcard"]],inputs:{index:[1,"index"],isSingle:[1,"isSingle"],breedErrors:[1,"breedErrors"]},features:[U([],[{provide:kr,useExisting:Te}])],decls:35,vars:47,consts:[[1,"dogcard"],[1,"dogcard-content"],[1,"dog-picture","hide-text",3,"src","alt"],[1,"dog-name"],["hideRequiredMarker","",1,"white-form-field"],["matInput","","formControlName","name","data-cy","name"],[1,"text-xs"],["id","breedRadioLabel",1,"mt-6","text-sm"],["aria-labelledby","breedRadioLabel","formControlName","mixedBreed","data-cy","mixedBreed",1,"breed-radio-group",3,"change"],["arUiRadioButton","",3,"value"],[1,"white-form-field"],["arUiCheckbox","","formControlName","isUnknownBreed1","data-cy","isUnknownBreed1",3,"change"],[1,"secondary-breed"],[1,"info-box","mt-8","p-4","text-base","[--stroke-color:var(--color-blue-green)]",3,"strokeColor","innerHtml"],["matInput","","value","Unbekannt","disabled","true"],["inputName","firstBreed","formControlName","firstBreed",3,"emitAlgoliaHit","searchIndex","inputId"],[1,"text-xs","text-red"],["arUiCheckbox","","formControlName","isUnknownBreed2","data-cy","isUnknownBreed2",3,"change"],["inputName","secondBreed","formControlName","secondBreed",3,"emitAlgoliaHit","searchIndex","inputId"]],template:function(r,i){r&1&&(s(0,"section",0)(1,"div",1),p(2,"img",2),m(3,"translate"),s(4,"mat-label",3),I(5),m(6,"translate"),m(7,"translate"),d(),s(8,"mat-form-field",4)(9,"mat-label"),I(10),m(11,"translate"),m(12,"translate"),d(),p(13,"input",5),H(14,yo,3,3,"mat-error",6),d(),s(15,"mat-label",7),I(16),m(17,"translate"),d(),s(18,"mat-radio-group",8),S("change",function(f){return i.triggerValidationAndReset2ndBreedInputs(f)}),s(19,"mat-radio-button",9),I(20),m(21,"translate"),d(),s(22,"mat-radio-button",9),I(23),m(24,"translate"),d()(),H(25,bo,5,3,"mat-form-field",10),m(26,"async"),Ge(27,_o,9,7,"mat-form-field",10),s(28,"mat-checkbox",11),S("change",function(f){return i.toggleBreedControl(i.formGroup.controls.firstBreed,f)}
6),I(29),m(30,"translate"),d(),H(31,Bo,7,8,"div",12),H(32,Io,2,4,"ar-ui-dotted-border-box",13),m(33,"async"),m(34,"async"),d()()),r&2&&(a(2),l("src",i.formGroup.controls.breedImage.value,Dt)("alt",u(3,14,"hhv.journey.dogsAndBreeds.dogPhoto")),a(3),L(i.isSingle()?u(6,16,"hhv.journey.dogsAndBreeds.dogSingle"):pe(7,18,"hhv.journey.dogsAndBreeds.dog",Se(41,Mn,i.index()+1))),a(5),L(i.isSingle()?u(11,21,"hhv.journey.dogsAndBreeds.nameSingle"):pe(12,23,"hhv.journey.dogsAndBreeds.name",Se(43,Mn,i.indexToHumanReadableNumber[i.index()]))),a(4),N(i.formGroup.controls.name.invalid?14:-1),a(2),L(u(17,26,"hhv.journey.dogsAndBreeds.dogRadioLabel")),a(3),l("value",!1),a(),L(u(21,28,"hhv.journey.dogsAndBreeds.pureBreed")),a(2),l("value",!0),a(),L(u(24,30,"hhv.journey.dogsAndBreeds.mixedBreed")),a(2),N(u(26,32,i.isUnknownBreed1$)?25:27),a(4),le(" ",pe(30,34,"hhv.journey.dogsAndBreeds.unknownBreed",Se(45,go,i.formGroup.controls.mixedBreed.value===!1?"":"1. "))),a(2),N(i.formGroup.controls.mixedBreed.value?31:-1),a(),N(u(33,37,i.isUnknownBreed1$)||u(34,39,i.isUnknownBreed2$)?32:-1))},dependencies:[Z,he,Et,je,Fr,Ri,ne,et,Ht,Ze,Ke,Ur,Ci,yi,bi,gi,hi,vi,_i,mi,Wi,ue,Be,Fe],styles:[`.dogcard[_ngcontent-%COMP%]{background:var(--color-grey-2);padding:24px}.dogcard-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:unset}.dog-name[_ngcontent-%COMP%]{align-self:center;font-size:18px;margin-top:48px;margin-bottom:24px;color:var(--color-ink)}.secondary-breed[_ngcontent-%COMP%]{margin-top:28px;display:flex;flex-direction:column}.dog-picture[_ngcontent-%COMP%]{width:104px;height:104px;object-fit:cover;align-self:center;position:absolute;margin-top:-16px;transform:translateY(-50%);border-radius:50%}.breed-radio-group[_ngcontent-%COMP%]{margin:18px 0}  .white-form-field .mat-mdc-text-field-wrapper,   .white-form-field .mat-mdc-form-field-focus-overlay{background-color:#fff!important}.hide-text[_ngcontent-%COMP%]{text-indent:100%;white-space:nowrap;overflow:hidden}
7/*# sourceMappingURL=ar-dogcard.component-GFY423K3.css.map */`],changeDetection:0})}}return t})();var Ln=(()=>{class t{constructor(){this.store=n(E),this.breeds=z(e=>e.pipe($(b.SELECT_DOGS_AND_BREEDS),F(r=>{let i=r?.dogs?.map(o=>w(B({},o),{firstBreed:o.isUnknownBreed1?G:o?.firstBreed,secondBreed:o.isUnknownBreed2?G:o?.secondBreed}));this.store.partialUpdate({data:{[D.Breeds]:{dogs:i??[]}},order:{productData:{insuredDogs:i?.map(o=>C.mapUiDogToOrderDog(o))}}})})))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var xo=t=>({"justify-center m:grid-cols-[352px]":t});function wo(t,c){if(t&1&&(s(0,"div",2),p(1,"ar-dogcard",3),d()),t&2){let e=c.$implicit,r=c.$index,i=y(2);l("formGroup",e),X("data-cy",r),a(),l("index",r)("isSingle",i.amountOfDogs===1)("breedErrors",i.breedErrors)}}function To(t,c){if(t&1&&de(0,wo,2,5,"div",2,ve),t&2){let e=y();me(e.form.controls.dogs.controls)}}function Eo(t,c){if(t&1&&(s(0,"div",2),p(1,"ar-dogcard",3),d()),t&2){let e=c.$implicit,r=y(2);l("formGroup",e.formGroup),X("data-cy",e.originalIndex),a(),l("index",e.originalIndex)("isSingle",r.amountOfDogs===1)("breedErrors",r.breedErrors)}}function Ao(t,c){if(t&1&&(s(0,"div",2),p(1,"ar-dogcard",3),d()),t&2){let e=c.$implicit,r=y(3);l("formGroup",e.formGroup),X("data-cy",e.originalIndex),a(),l("index",e.originalIndex)("isSingle",r.amountOfDogs===1)("breedErrors",r.breedErrors)}}function Ho(t,c){if(t&1&&(s(0,"div",4),de(1,Ao,2,5,"div",2,ve),d()),t&2){let e=y(2);a(),me(e.oddFormGroups)}}function No(t,c){if(t&1&&(s(0,"div",4),de(1,Eo,2,5,"div",2,ve),d(),H(3,Ho,3,0,"div",4)),t&2){let e=y();a(),me(e.evenFormGroups),a(2),N(e.amountOfDogs>1?3:-1)}}var Un=(()=>{class t extends q{constructor(){super(...arguments),this.activatedRoute=n(ee),this.actions$=n(k),this.journeyService=n(A),this.journeyQuery=n(C),this.viewportService=n(ri),this.algoliaValidator=n(Li),this.environmentService=n(ke),this.algoliaSearchIndex=this.environmentService.isProduction?"prod_dogbreeds":"dev_dogbreeds",this.query=this.journeyQuery.breeds,this.dogs=this.journeyQuery.breeds().dogs,this.amountOfDogs=this.journeyQuery.amountOfDogs().amountOfDogs??0,this.action=b.SELECT_DOGS_AND_BREEDS,this.stepLoading$=this.stepInitialized$.pipe(M(e=>!e)),this.form=new O({dogs:new Ye([])}),this.isMobile$=this.viewportService.isMobile(),this.breedAlgoliaErrorKey="invalidBreedName",this.breedErrors=[{errorKey:this.breedAlgoliaErrorKey,message:"hhv.journey.dogsAndBreeds.invalidBreedName"},{errorKey:"required",message:"hhv.journey.dogsAndBreeds.invalidBreedName"}],this.oddFormGroups=[],this.evenFormGroups=[]}ngOnInit(){this.prefillDogsForm(),super.init()}prefillDogsForm(){this?.dogs?.forEach((e,r)=>{let i=new O({name:new h(e.name,[_.required]),breedImage:new h(e.breedImage),mixedBreed:new h(e.mixedBreed),firstBreed:new h({value:e.firstBreed,disabled:e.isUnknownBreed1},[Yt(()=>i.controls.isUnknownBreed1.value===!1,_.compose([_.required]))],[this.algoliaValidator.createAsyncValidator(this.algoliaSearchIndex,this.breedAlgoliaErrorKey,{isExcluded:o=>["false"].includes(o.enabled),allowEmpty:e.isUnknownBreed1,trim:!0})]),secondBreed:new h({value:e.secondBreed,disabled:!e.mixedBreed||e.mixedBreed&&e.isUnknownBreed2},[Yt(()=>{let o=i.controls.mixedBreed.value===!0,f=i.controls.isUnknownBreed2.value===!1;return o&&f},_.compose([_.required]))],[this.algoliaValidator.createAsyncValidator(this.algoliaSearchIndex,this.breedAlgoliaErrorKey,{isExcluded:o=>["false"].includes(o.enabled),allowEmpty:e.isUnknownBreed2,trim:!0})]),isUnknownBreed1:new h(e.isUnknownBreed1),isUnknownBreed2:new h(e.isUnknownBreed2)});this.form.controls.dogs.push(i),this.addFormGroupToUiArray(i,r)})}addFormGroupToUiArray(e,r){r%2===0?this.evenFormGroups.push({formGroup:e,originalIndex:r}):this.oddFormGroups.push({formGroup:e,originalIndex:r})}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-offer"]],features:[U([W(Ln)]),J([Y]),Q],decls:9,vars:18,consts:[[3,"backNavigationPressed","submit","title","form","loading"],["role","group",1,"mt-20","grid","grid-cols-1","gap-14","m:grid-cols-2",3,"ngClass"],[3,"formGroup"],[3,"index","isSingle","breedErrors"],[1,"flex","flex-col","gap-20"]],template:function(r,i){r&1&&(s(0,"ar-journey-step-wrapper",0),m(1,"translate"),m(2,"async"),S("backNavigationPressed",function(){return i.back()})("submit",function(){return i.submit()}),s(3,"div",1),m(4,"arTranslateAndTrimHtml"),m(5,"arTranslateAndTrimHtml"),H(6,To,2,0),m(7,"async"),Ge(8,No,4,1),d()()),r&2&&(l("title",i.amountOfDogs===1?"hhv.journey.dogsAndBreeds.titleSingle":u(1,6,"hhv.journey.dogsAndBreeds.title"))("form",i.form)("loading",u(2,8,i.stepLoading$)),a(3),l("ngClass",Se(16,xo,i.amountOfDogs===1)),X("aria-label",i.amountOfDogs===1?u(4,10,"hhv.journey.dogsAndBreeds.titleSingle"):u(5,12,"hhv.journey.dogsAndBreeds.title")),a(3),N(u(7,14,i.isMobile$)?6:8))},dependencies:[Z,Pr,oe,he,Me,Te,Rn,ne,ue,Be,Re],encapsulation:2})}}return t})();var Vn=(()=>{class t{constructor(){this.store=n(E),this.journeyQuery=n(C),this.partnerdataFacade=n(Ot),this.contract$=z(e=>e.pipe($(b.CONTRACT),lr(this.journeyQuery.activeJourneyState$,this.partnerdataFacade.partner$),F(([r,i,o])=>{let f=i?.order?.productData?.insuredDogs?.map((j,V)=>w(B({}
7,j),{chipNumber:r?.chips?.at(V)||""}));this.store.partialUpdate({data:{[g.Contract]:{accept:typeof r.payment.iban=="object"?!0:r?.payment?.accept??!1,ibanOrPaymentReference:r.payment.iban??null,debitingDate:r?.payment?.debitingDate??null,chips:r.chips},[g.Birthdate]:{birthDate:Ie.dateTimeToString(r.birthDate)??null}},order:{metadata:{insuranceStart:Ie.dateTimeToString(r.insuranceStart),customer:{email:i.order.metadata?.customer?.email??o?.email?.emailAddress,firstName:r.firstName??void 0,lastName:r.lastName??void 0,birthDate:Ie.dateTimeToString(r.birthDate),phoneNumber:r.phoneNumber??void 0,gender:r.gender??void 0,address:{zipCode:r?.address?.zipCode??void 0,city:r?.address?.city??void 0,street:r?.address?.street??void 0,houseNumber:r?.address?.houseNumber??void 0}}},productData:{preInsurance:{preinsurerName:r?.preInsuranceName??void 0},insuredDogs:f}}})})))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var Oo=t=>({dogName:t});function ko(t,c){if(t&1&&p(0,"ar-contract-contact-private",1),t&2){let e=y();l("form",e.form)}}function jo(t,c){if(t&1&&(s(0,"div",4),p(1,"img",10),s(2,"mat-form-field",11)(3,"mat-label"),I(4),m(5,"translate"),d(),p(6,"input",12),d()()),t&2){let e=c.$implicit,r=c.$index,i=y();a(),l("src",i.getPicture(r),Dt),a(3),L(pe(5,4,"hhv.journey.contract.chipNo",Se(7,Oo,i.insuredDogs==null||i.insuredDogs[r]==null?null:i.insuredDogs[r].name))),a(2),l("formControl",e),X("data-cy","dogChip-"+r)}}function Mo(t,c){if(t&1&&p(0,"ar-contract-pre-insurer-name",6),t&2){let e=y();l("formControlInput",e.form.controls.preInsuranceName)}}var $n=(()=>{class t extends q{constructor(){super(...arguments),this.activatedRoute=n(ee),this.actions$=n(k),this.journeyService=n(A),this.journeyQuery=n(C),this.pricingService=n(ce),this.sessionQuery=n(rt),this.partnerdataFacade=n(Ot),this.fb=n(Rr),this.query=this.journeyQuery.contract,this.action=b.CONTRACT,this.form=new O({gender:new h(null,[_.required,be([vt.F,vt.M])]),firstName:new h(null,[_.required,Ui(!1)]),lastName:new h(null,[_.required,Vi(!1)]),birthDate:new h(null,[_.required]),phoneNumber:new h(null,[_.required,$i(!0)]),address:new O({country:new h("DE"),street:new h(null,[_.required,zi(!0)]),houseNumber:new h(null,[_.required,Gi(!0),_.maxLength(8)]),city:new h(null,[_.required,_.maxLength(35)]),zipCode:new h(null,[_.required,Ji(!0)])}),chips:new Ye(new Array(this.journeyQuery.amountOfDogs().amountOfDogs).fill(null).map(()=>new h(null))),insuranceStart:new h(null,[_.required,Xi()]),preInsuranceName:new h(null),payment:new O({method:new h(null,[_.required]),iban:new h(null,[_.required,Qi()]),accept:new h(null,[_.requiredTrue]),debitingDate:new h(null,[_.required])})}),this.userDataLoading$=this.partnerdataFacade.partnerIsLoading$,this.insuredDogs=this.journeyQuery.breeds().dogs,this.selectedPaymentPlan$=this.journeyState$.pipe(M(({order:e})=>e.paymentPlan)),this.hasPreInsurer$=this.journeyState$.pipe(M(({order:e})=>e?.productData?.preInsurance?.hasPreinsurer??!1)),this.stepLoading$=sr([this.pricingService.mainPriceLoading$,this.stepInitialized$,this.userDataLoading$]).pipe(M(([e,r,i])=>e||!r||i))}ngOnInit(){return K(this,null,function*(){try{ir(t.prototype,this,"init").call(this,!1),this.sessionQuery.isLoggedIn&&this.formHasNoAlreadyEnteredValues()&&(yield this.loadAndApplyUserData()),this.stepInitialized$.next(!0),this.pricingService.refreshPrice()}catch(e){}})}loadAndApplyUserData(){return K(this,null,function*(){let e=yield Ne(this.partnerdataFacade.loadPartnerWithResultOnce(["phone"]));if(e?.type===kt.NATURAL){let r=e,i={gender:r.gender,firstName:r.firstName,lastName:r.lastName,phoneNumber:r.phone?.phoneNumber??null};this.form.patchValue(i)}})}formHasNoAlreadyEnteredValues(){let e=this.journeyQuery.contract();return["gender","firstName","lastName","phoneNumber"].every(i=>!(i in e)||tt(e[i])||e[i]==="")}getPicture(e){return this.journeyQuery.dogPictureAtIndex(e)}getSectionTitle(e){return e=e??0,e>1?"hhv.journey.contract.dog.title.multiple":"hhv.journey.contract.dog.title.single"}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-contract"]],features:[U([W(Vn)]),J([Y]),Q],decls:19,vars:27,consts:[["xmlns","http://www.w3.org/1999/html","role","group",3,"formSubmit","backNavigationPressed","title","form","loading"],[3,"form"],["role","group"],[1,"mb-4","text-xl","font-bold"],[1,"flex"],[1,"my-8","h-px","border-0","bg-grey-8","l:my-10"],[3,"formControlInput"],["cancelRunningContractTranslation","hhv.journey.contract.information.runningContract",3,"formControlInput"],[3,"formGroup","insuranceStartControl"],[1,"mt-10","block",3,"payment","title"],["alt","Hundephoto",1,"mr-2","size-14","rounded-[50%]","object-cover",3,"src"],[1,"w-full","l:max-w-80"],["matInput","",3,"formControl"]],template:function(r,i){r&1&&(s(0,"ar-journey-step-wrapper",0),m(1,"async"),m(2,"arTranslateAndTrimHtml"),S("formSubmit",function(){return i.submit()})("backNavigationPressed",function(){return i.back()}),H(3,ko,1,1,"ar-contract-contact-private",1),m(4,"async"),s(5,"div",2),m(6,"translate"),s(7,"h2",3),I(8),m(9,"translate"),d(),de(10,jo,7,9,"div",4,ve),d(),p(12,"hr",5),H(13,Mo,1,1,"ar-contract-pre-insurer-name",6),m(14,"async"),p(15,"ar-contract-insurance-start",7)(16,"ar-contract-payment",8)(17,"ar-tariff-selection-component",9),m(18,"async"),d()),r&2&&(l("title","hhv.journey.contract.t
7itle")("form",i.form)("loading",u(1,13,i.stepLoading$)),X("aria-label",u(2,15,"hhv.journey.contract.title")),a(3),N(u(4,17,i.stepLoading$)!==!0?3:-1),a(2),X("aria-label",u(6,19,i.getSectionTitle(i==null||i.insuredDogs==null?null:i.insuredDogs.length))),a(3),le(" ",u(9,21,i.getSectionTitle(i==null||i.insuredDogs==null?null:i.insuredDogs.length))," "),a(2),me(i.form.controls.chips.controls),a(3),N(u(14,23,i.hasPreInsurer$)?13:-1),a(2),l("formControlInput",i.form.controls.insuranceStart),a(),l("formGroup",i.form.controls.payment)("insuranceStartControl",i.form.controls.insuranceStart),a(),l("payment",u(18,25,i.selectedPaymentPlan$))("title","general.your-choice"))},dependencies:[Z,he,Et,je,Me,qe,Te,oe,et,Ht,Ze,Ke,zt,un,ln,pn,mn,ne,ue,Be,Re],encapsulation:2})}}return t})();var zn=(()=>{class t{constructor(){this.store=n(E),this.jobType$=z(e=>e.pipe($(b.JOB_TYPE),F(r=>{this.store.partialUpdate({order:{productData:{jobType:r.jobType??void 0}}})})))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var Gn=(()=>{class t extends q{constructor(){super(...arguments),this.activatedRoute=n(ee),this.actions$=n(k),this.journeyService=n(A),this.journeyQuery=n(C),this.query=this.journeyQuery.publicServant,this.action=b.JOB_TYPE,this.form=new O({jobType:new h(null,[be(Object.values(Ue)),_.required])}),this.radioGroupConfig={formControl:this.form.controls.jobType,ariaLabel:{text:"hhv.journey.jobType.title"},items:[{content:{title:{text:"hhv.journey.general.yes"}},value:Ue.PUBLIC_SERVANT},{content:{title:{text:"hhv.journey.general.no"}},value:Ue.EMPLOYEE}]}}ngOnInit(){super.init()}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-jobtype"]],features:[U([W(zn)]),J([Y]),Q],decls:2,vars:2,consts:[["title","hhv.journey.jobType.title",3,"formSubmit","backNavigationPressed","form"],[3,"config"]],template:function(r,i){r&1&&(s(0,"ar-journey-step-wrapper",0),S("formSubmit",function(){return i.submit()})("backNavigationPressed",function(){return i.back()}),p(1,"ar-radio-list-select",1),d()),r&2&&(l("form",i.form),a(),l("config",i.radioGroupConfig))},dependencies:[jt,oe],encapsulation:2})}}return t})();var er={XL:[{items:[{label:`hhv.tariffs.${v.XL}.features.1`,included:!0},{label:`hhv.tariffs.${v.XL}.features.2`,included:!0},{label:`hhv.tariffs.${v.XL}.features.3`,included:!0},{label:`hhv.tariffs.${v.XL}.features.4`,included:!0},{label:`hhv.tariffs.${v.XL}.features.5`,included:!1},{label:`hhv.tariffs.${v.XL}.features.6.label`,tooltip:`hhv.tariffs.${v.XL}.features.6.tooltip`,included:!1},{label:`hhv.tariffs.${v.XL}.features.7`,included:!1},{label:`hhv.tariffs.${v.XL}.features.8`,included:!1}]}],XXL:[{items:[{label:`hhv.tariffs.${v.XXL}.features.1`,included:!0},{label:`hhv.tariffs.${v.XXL}.features.2`,included:!0},{label:`hhv.tariffs.${v.XXL}.features.3`,included:!0},{label:`hhv.tariffs.${v.XXL}.features.4`,included:!0},{label:`hhv.tariffs.${v.XXL}.features.5`,included:!0},{label:`hhv.tariffs.${v.XXL}.features.6.label`,tooltip:`hhv.tariffs.${v.XXL}.features.6.tooltip`,included:!0},{label:`hhv.tariffs.${v.XXL}.features.7`,included:!0},{label:`hhv.tariffs.${v.XXL}.features.8`,included:!0}]}]};var Jn=(()=>{class t{constructor(){this.store=n(E),this.offer$=z(e=>e.pipe($(b.OFFER),F(r=>{this.store.updateActive(i=>(i.order.productData=w(B({},i.order.productData),{tariffSize:r.tariff??void 0,coPayment:r.coPayment??void 0}),i.order.paymentPlan=r.paymentPlan??void 0,i))})))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var Fo=()=>[],Ro=(t,c)=>c.value;function Lo(t,c){if(t&1&&(s(0,"mat-option",7),I(1),m(2,"translate"),d()),t&2){let e=c.$implicit;l("value",e.value),a(),L(u(2,2,e.displayString))}}function Uo(t,c){if(t&1&&(s(0,"section",3)(1,"h2",4),I(2),m(3,"translate"),d(),s(4,"mat-form-field",5)(5,"mat-label"),I(6),m(7,"translate"),d(),s(8,"mat-select",6),de(9,Lo,3,4,"mat-option",7,Ro),d()()(),p(11,"hr",2)),t&2){let e=y();a(2),L(u(3,3,"hhv.journey.offer.coPayment.title")),a(4),L(u(7,5,"hhv.journey.offer.coPayment.label")),a(2),l("formControl",e.form.controls.coPayment),a(),me(e.coPayments)}}function Vo(t,c){if(t&1&&(s(0,"section")(1,"h2",8),I(2),m(3,"translate"),d(),p(4,"ar-payment-with-discount",9),d(),p(
75,"hr",2)),t&2){let e=y();a(2),L(u(3,5,"hhv.journey.offer.paymentPlan.title")),a(2),l("paymentPlanFormControl",e.form.controls.paymentPlan)("options",e.availablePaymentOptions()??xt(7,Fo))("loading",e.priceLoading())("showSavingsPerYear",e.showPaymentOptionPrices())}}var Qn=(()=>{class t extends q{constructor(){super(),this.currencyPipe=n(We),this.journeyService=n(A),this.journeyQuery=n(C),this.pricingService=n(ce),this.query=this.journeyQuery.offer,this.action=b.OFFER,this.form=new O({tariff:new h(null,[be([v.XL,v.XXL])]),coPayment:new h(null,[be(Object.values(ge))]),paymentPlan:new h(null,[be(Object.values(He))])}),this.tariffSelectorConfig={tariffSizeControl:this.form.controls.tariff,type:fi.Tariff,tariffs:[{id:v.XL,tariff:{label:`hhv.journey.offer.tariffs.direct.${v.XL}`,size:v.XL},description:`hhv.tariffs.${v.XL}.description`,features:er.XL},{id:v.XXL,tariff:{label:`hhv.journey.offer.tariffs.direct.${v.XXL}`,size:v.XXL},description:`hhv.tariffs.${v.XXL}.description`,features:er.XXL}]},this.coPayments=[{displayString:`hhv.journey.offer.coPayment.${ge.COPAYMENT_0}`,value:ge.COPAYMENT_0},{displayString:this.currencyPipe.transform(ge.COPAYMENT_150,"EUR","symbol","1.0-0"),value:ge.COPAYMENT_150},{displayString:this.currencyPipe.transform(ge.COPAYMENT_500,"EUR","symbol","1.0-0"),value:ge.COPAYMENT_500}],this.availablePaymentOptions=pt(this.pricingService.availablePaymentPlans$),this.pdfUrl=pt(this.journeyService.tariffOverviewUrl$,{initialValue:null}),this.priceLoading=pt(this.pricingService.mainPriceLoading$,{requireSync:!0}),this.journeyState=pt(this.journeyState$),this.selectedTariff=Je(()=>this.journeyState()?.order.productData?.tariffSize??null),this.selectedCoPayment=Je(()=>this.journeyState()?.order.productData?.coPayment??null),this.selectedPaymentPlan=Je(()=>this.journeyState()?.order.paymentPlan??null),this.hasSelectedTariff=Je(()=>this.selectedTariff()!==null),this.hasSelectedCoPayment=Je(()=>this.selectedCoPayment()!==null),this.showPaymentOptionPrices=Je(()=>this.selectedPaymentPlan()!==null&&!this.priceLoading()),St(()=>{let e=this.selectedTariff(),r=this.selectedCoPayment();e!==null&&r!==null&&wt(()=>this.pricingService.refreshPrice({offerQueryParams:{includeAlternatePaymentPlans:!0}}))}),St(()=>{let e=this.selectedPaymentPlan(),r=this.availablePaymentOptions()?.find(i=>this.mapPaymentPlan(i.paymentPlan)===e);r&&wt(()=>this.pricingService.mainPrice$.next(r.price))}),St(()=>{let e=this.availablePaymentOptions();if(e===void 0)return;let r=e.map(i=>i.paymentPlan);wt(()=>{this.form.controls.paymentPlan.setValidators([_.required,be(r)]),this.form.controls.paymentPlan.updateValueAndValidity()})})}ngOnInit(){super.init()}onSubmit(){return this.submit()}mapPaymentPlan(e){return{[yt.YEARLY]:He.YEARLY,[yt.MONTHLY]:He.MONTHLY,[yt.QUARTERLY]:He.QUART
7ERLY,[yt.HALFYEARLY]:He.HALFYEARLY}[e]}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-offer"]],features:[U([W(Jn)]),J([Y]),Q],decls:6,vars:10,consts:[["stepTitle","hhv.journey.offer.title","subtitle","hhv.journey.offer.subtitle","pricingFooterEnterAnimation","animate-price-portal-roll-in","role","group",3,"submitButtonPressed","backButtonPressed","form","paymentPlan","stepLoading$"],[3,"tariffsConfigs","tariffDetailsUrl"],[1,"my-8","border-t","border-grey-8","m:my-10"],[1,"flex","flex-col","items-center"],[1,"mb-6","text-center","text-lg","font-bold","m:text-xl"],["hideRequiredMarker","",1,"w-full","flex-1","m:max-w-80"],["id","coPayment",3,"formControl"],[3,"value"],[1,"mt-8","mb-6","text-center","text-lg","font-bold","m:mt-10","m:text-xl"],["ariaLabel","hhv.journey.offer.paymentPlan.title",3,"paymentPlanFormControl","options","loading","showSavingsPerYear"]],template:function(r,i){r&1&&(s(0,"ar-offer-step-wrapper",0),m(1,"arTranslateAndTrimHtml"),S("submitButtonPressed",function(){return i.onSubmit()})("backButtonPressed",function(){return i.back()}),p(2,"ar-tariff-selector",1)(3,"hr",2),H(4,Uo,12,7),H(5,Vo,6,8),d()),r&2&&(l("form",i.form)("paymentPlan",i.selectedPaymentPlan())("stepLoading$",i.stepLoading$),X("aria-label",u(1,8,"hhv.journey.offer.title")),a(2),l("tariffsConfigs",i.tariffSelectorConfig)("tariffDetailsUrl",i.pdfUrl()),a(2),N(i.hasSelectedTariff()?4:-1),a(),N(i.hasSelectedCoPayment()?5:-1))},dependencies:[Z,hn,Ki,et,Ze,Ke,ci,li,Gr,he,je,qe,gn,ne,Be,Re],styles:[`.co-payment-form[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:baseline}.co-payment-tooltip-button[_ngcontent-%COMP%]{margin-left:16px}.rule[_ngcontent-%COMP%]{--ar-rule-color: var(--color-grey-8);margin:32px 0}@media(min-width:768px){.rule[_ngcontent-%COMP%]{margin:40px 0}}.pricing-footer[_ngcontent-%COMP%]{position:sticky;bottom:0;z-index:1;background:var(--color-white);border-top:2px solid var(--color-grey-4);box-shadow:0 -8px 20px #0000000a}@media(min-width:768px){.pricing-footer[_ngcontent-%COMP%]{box-shadow:none}}.pricing-container[_ngcontent-%COMP%]{margin:0 auto;max-width:780px;display:flex;flex-flow:column;justify-content:center;align-items:center;padding:8px 0}@media(min-width:768px){.pricing-container[_ngcontent-%COMP%]{flex-flow:row;justify-content:flex-end}}.broker-discount[_ngcontent-%COMP%]{margin:4px 0;font-weight:700;color:var(--color-dark-green)}@media(min-width:768px){.broker-discount[_ngcontent-%COMP%]{margin:0 24px 0 0}}.suffix[_ngcontent-%COMP%]{margin:5px 0 0 8px;font-size:16px;white-space:nowrap}@media(min-width:768px){.continue-button[_ngcontent-%COMP%]{margin-left:48px}}.price-display-wrapper[_ngcontent-%COMP%]{margin-bottom:10px}.price[_ngcontent-%COMP%]{font-family:var(--font-serif);font-size:28px}@media(min-width:768px){.price[_ngcontent-%COMP%]{font-size:32px}}.back-button[_ngcontent-%COMP%]{min-width:auto;width:48px;padding:0!important;margin:56px auto 0;font-size:16px}.back-button[_ngcontent-%COMP%]:after{transform:rotate(180deg);margin-left:0!important}
8/*# sourceMappingURL=hhv-offer.component-FKBPJN3H.css.map */`]})}}return t})();var Xn=(()=>{class t{constructor(){this.store=n(E),this.overview$=z(e=>e.pipe($(b.OVERVIEW),F(r=>{this.store.partialUpdate({data:{[g.Overview]:{[ot.PriceRequestFinished]:r[ot.PriceRequestFinished]??!1}}})})))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();function $o(t,c){if(t&1&&p(0,"ar-overview-section-v2",3)(1,"div",4),t&2){let e=c.$implicit;l("section",e)}}var Wn=(()=>{class t extends q{constructor(){super(...arguments),this.activatedRoute=n(ee),this.actions$=n(k),this.journeyService=n(A),this.journeyQuery=n(C),this.pricingService=n(ce),this.translateService=n(Pe),this.currencyPipe=n(We),this.datePipe=n(Br),this.debitingDateService=n(cn),this.dogBreedPredictionService=n(ze),this.query=this.journeyQuery.overview,this.action=b.OVERVIEW,this.form=new O({[ot.PriceRequestFinished]:new h(null,_.requiredTrue)}),this.paymentPlan$=this.journeyState$.pipe(M(({order:e})=>e.paymentPlan)),this.stepLoading$=this.stepInitialized$.pipe(M(e=>!e))}ngOnInit(){super.init(!1),this.pricingService.refreshPrice(),this.pricingService.mainPrice$.pipe(fe(this.destroyRef)).subscribe(e=>{this.sections=this.buildOverviewConfig(this.journeyQuery.order,e),this.form.controls[ot.PriceRequestFinished].setValue(!0),this.stepInitialized$.next(!0)})}buildOverviewConfig(e,r){return[{title:"overview.sectionTitle.my-data",items:[{label:"overview.data.insuranceHolder",value:[{value:`${e?.metadata?.customer?.firstName} ${e?.metadata?.customer?.lastName}`,skipTranslation:!0}],stepPath:this.journeyService.getFullStepPath(g.Contract),ariaLabel:"overview.data.editables.personalData"},{label:"overview.sectionTitle.birthday",value:[{value:`${Xe.formatDateString(e?.metadata?.customer?.birthDate)}`,skipTranslation:!0}],editable:!0},{label:"overview.data.phone",value:[{value:`${e?.metadata?.customer?.phoneNumber}`,skipTranslation:!0}],editable:!0},{label:"overview.data.address",value:[{value:`${e?.metadata?.customer?.address?.street} ${e?.metadata?.customer?.address?.houseNumber}`,skipTranslation:!0},{value:`${e?.metadata?.customer?.address?.zipCode} ${e?.metadata?.customer?.address?.city}
8`,skipTranslation:!0}],editable:!0},{title:"overview.account.title"},{label:"overview.account.customer",value:[{value:`overview.account.isCustomer.${e?.metadata?.usePartnerId?"yes":"no"}`}],stepPath:this.journeyService.getFullStepPath(g.LoginAndRegister),ariaLabel:"overview.account.editables.accountData"},{label:"overview.account.email",value:[{value:`${e?.metadata?.customer?.email}`,skipTranslation:!0}],editable:!0}]},{title:"overview.sectionTitle.my-protection",items:[{label:"overview.protection.product",value:[{value:`${this.translateService.instant("products.suffix.hhv")} ${this.translateService.instant("general.tariff")} ${this.translateService.instant(this.journeyService.tariffKey??"")}`,skipTranslation:!0},{value:this.translateService.instant(qt.getPaymentTranslationForOverview(e.paymentPlan),{price:this.currencyPipe.transform(r,"EUR")}),skipTranslation:!0},{value:`${this.translateService.instant("general.deductible")} ${this.currencyPipe.transform(e?.productData?.coPayment,"EUR","symbol","1.0-0")}`,skipTranslation:!0}],stepPath:this.journeyService.getFullStepPath(g.Offer),ariaLabel:"overview.protection.editables.changeProduct"},{label:"overview.payment.plan",value:[{value:`overview.payment.options.${e.paymentPlan}`}],editable:!0},{label:"overview.protection.cancellationPeriod",value:[{value:"overview.protection.cancellationPeriodValue"}],editable:!1},{label:"overview.protection.runningTime",value:[{value:"overview.protection.runningTimeValueAlt"}],editable:!1},{label:"overview.protection.start",value:[{value:`${this.datePipe.transform(e?.metadata?.insuranceStart,"longDate")}`,skipTranslation:!0}],stepPath:this.journeyService.getFullStepPath(g.Contract),ariaLabel:"overview.protection.editables.insuranceStart"}]},{title:"overview.sectionTitle.my-question",items:[{label:"hhv.journey.overview.dogsCount",value:[{value:e?.productData?.insuredDogs?.length?.toString()??"0",skipTranslation:!0}],stepPath:this.journeyService.getFullStepPath(D.AmountOfDogs),ariaLabel:"hhv.journey.overview.editables.dogsCount"},this.getDogInfo(e?.productData?.insuredDogs??[]),{label:"hhv.journey.overview.chipIds",value:e?.productData?.insuredDogs?.map((o,f)=>({value:this.translateService.instant("hhv.journey.overview.dogChip",{dogNumber:f+1,dogName:o.name,dogChipNumber:o?.chipNumber??"-"}),skipTranslation:!0}))??[],stepPath:this.journeyService.getFullStepPath(g.Contract),ariaLabel:"hhv.journey.overview.editables.chipIds"},{label:"hhv.journey.overview.publicServant",value:qt.booleanToString(e.productData?.jobType===Ue.PUBLIC_SERVANT),stepPath:this.journeyService.getFullStepPath(D.JobType),ariaLabel:"hhv.journey.overview.editables.publicServant"}]},{title:"overview.sectionTitle.my-preInsurance",items:[{label:"overview.insurance.previousInsuranceLabel",value:[e?.productData?.preInsurance?.hasPreinsurer?{value:"hhv.journey.overview.previousInsurance"}:{value:this.translateService.instant(`overview.insurance.noInsurance.${this.journeyQuery.product}`),skipTranslation:!0}],stepPath:this.journeyService.getFullStepPath(g.PreviousInsurance),ariaLabel:"overview.insurance.editables.preInsurance"},{itemHidden:!e?.productData?.preInsurance?.hasPreinsurer,label:"overview.insurance.cancelledByPreInsurer",value:[e?.productData?.preInsurance?.cancelledByPreinsurer?{value:"",skipTranslation:!0}:{value:"overview.insurance.notCanceledByPreInsurance"}],editable:!0},{itemHidden:!e?.productData?.preInsurance?.hasPreinsurer||!e?.productData?.preInsurance?.preinsurerName,label:"overview.insurance.preInsurer",value:[{value:this.translateService.instant("overview.insurance.previousInsurance",{name:e?.productData?.preInsurance?.preinsurerName}),skipTranslation:!0}],stepPath:this.journeyService.getFullStepPath(g.Contract),ariaLabel:"overview.insurance.editables.preInsurerName"}]},{title:"overview.sectionTitle.my-previousDamages",items:[{label:"hhv.journey.overview.previousClaims.title",stepPath:this.journeyService.getFullStepPath(g.PreviousInsurance),value:[{value:`hhv.journey.overview.previousClaims.${e?.productData?.preInsurance?.previousClaim??0}`}],ariaLabel:"hhv.journey.overview.editables.previousClaims"}]},{title:"overview.sectionTitle.my-payment",items:[{label:"overview.payment.sepa",stepPath:this.journeyService.getFullStepPath(g.Contract),value:[{value:this.journeyQuery.iban,skipTranslation:!0}],ariaLabel:"overview.payment.editables.paymentDetails"},{label:"overview.payment.debitingDate",editable:!0,value:[{value:this.debitingDateService.getDebitingDateLabel(e?.metadata?.payment?.debitingDate,e?.metadata?.insuranceStart),skipTranslation:!0}]}]}].map(o=>(o.items=o.items.filter(f=>"itemHidden"in f?!f.itemHidden:!0),o))}getDogInfo(e){let r=[];for(let i=0;i<e.length;i++){let o=e[i],f=i+1,j=this.journeyQuery.aiDogBreedsAtIndex(i),V=o.firstBreed==="Unbekannt"||o.firstBreed===G,mt=o.secondBreed==="Unbekannt"||o.secondBreed===G;!tt(o.dogImageId)&&o.dogImageId.fileName!==""?!o.mixedBreed&&(V||mt)?r.push({value:this.translateService.instant("hhv.journey.overview.autodetectedBreed",{dogNumber:f,nameOfDog:o.name,breedGroups:j?this.dogBreedPredictionService.translateDogGroups(j):G}),skipTranslation:!0}):r.push({value:this.translateService.instant("hhv.journey.overview.autodetectedBreedAndCrossBreed",{dogNumber:f,nameOfDog:o.name,breed:V?o.secondBreed:o.firstBreed,breedGroups:j?this.dogBreedPredictionService.translateDogGroups(j):G}),skipTranslation:!0}):o.mixedBreed?V&&mt?r.push({value:this.translateService.instant("hhv.journey.overview.crossBreedBothUnknown",{dogNumber:f,nameOfDog:o.name}),skipTranslation:!0}):V||mt?r.push({value:this.translateService.instant("hhv.journey.overview.crossBreedSingleUnknown",{dogNumber:f,nameOfDog:o.name,breed:V?o.secondBreed:o.firstBreed}),skipTranslation:!0}):r.push({value:this.translateService.instant("hhv.journey.overview.crossBreed",{dogNumber:f,nameOfDog:o.name,breedPrimary:o.firstBreed,breedSecondary:o.secondBreed}),skipTranslation:!0}):V?r.push({value:this.translateService.instant("hhv.journey.overview.pureBreedUnknown",{dogNumber:f,nameOfDog:o.name}),skipTranslation:!0}):r.push({value:this.translateService.instant("hhv.journey.overview.pureBreed",{dogNumber:f,nameOfDog:o.name,breedPrimary:o.firstBreed}),skipTranslation:!0})}return{label:"hhv.journey.overview.dogsTitle",value:r,stepPath:this.journeyService.getFullStepPath(D.Breeds),ariaLabel:"hhv.journey.overview.editables.dogNames"}}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-overview"]],features:[U([W(Xn)]),J([Y]),Q],decls:8,vars:12,consts:[["role","group",3,"formSubmit","backNavigationPressed","title","form","loading"],[1,"disclaimer"],["layout","row",1,"overview-pricing-button",3,"title","payment"],[3,"section"],[1,"separator"]],template:function(r,i){r&1&&(s(0,"ar-journey-step-wrapper",0),m(1,"async"),m(2,"arTranslateAndTrimHtml"),S("formSubmit",function(){return i.submit()})("backNavigationPressed",function(){return i.back()}),p(3,"ar-overview-disclaimer",1),de(4,$o,2,1,null,null,ve),p(6,"ar-tariff-selection-component",2),m(7,"async"),d()),r&2&&(l("title","hhv.journey.overview.title")("form",i.form)("loading",u(1,6,i.stepLoading$)),X("aria-label",u(2,8,"hr.journey.overview.title")),a(4),me(i.sections),a(2),l("title","general.your-choice")("payment",u(7,10,i.paymentPlan$)))}
8,dependencies:[Z,oe,vn,yn,zt,ne,ue,Re],styles:[`.separator[_ngcontent-%COMP%]{margin:40px 0;width:100%;border-top:1px solid var(--color-grey-8);height:1px}.disclaimer[_ngcontent-%COMP%]{display:block;margin-bottom:40px}@media screen and (min-width:1024px){.disclaimer[_ngcontent-%COMP%]{margin-bottom:40px}}
9/*# sourceMappingURL=hhv-overview.component-PCNG2LO7.css.map */`]})}}return t})();var Yn=(()=>{class t{constructor(){this.store=n(E),this.previousInsurance$=z(e=>e.pipe($(b.PREVIOUS_INSURANCE),F(r=>{this.store.partialUpdate({order:{productData:{preInsurance:{hasPreinsurer:r.hasPreInsurer??void 0,cancelledByPreinsurer:r.hasPreInsurer?r.cancelledByPreInsurer??void 0:!1}}}})})))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var qn=(()=>{class t extends q{constructor(){super(...arguments),this.activatedRoute=n(ee),this.actions$=n(k),this.journeyService=n(A),this.journeyQuery=n(C),this.modalHelper=n(Le),this.query=this.journeyQuery.previousInsurance,this.action=b.PREVIOUS_INSURANCE,this.form=new O({hasPreInsurer:new h(null,_.required),cancelledByPreInsurer:new h(null,[_.required,Zi.createValidator(!1,"cancelledByPreInsurer")])})}ngOnInit(){this.journeyState$.subscribe(e=>{e.order.productData?.preInsurance?.hasPreinsurer?this.form.controls.cancelledByPreInsurer.enable({emitEvent:!1}):this.form.controls.cancelledByPreInsurer.disable({emitEvent:!1})}),this.form.controls.cancelledByPreInsurer?.valueChanges.pipe(Ce(e=>e===!0),fe(this.destroyRef)).subscribe(()=>{this.modalHelper.openDialog(Ae,{width:"720px",data:{title:`${this.journeyQuery.product}.journey.modals.impossible.title`,text:"journey.modals.impossible.reasons.cancelledByPreInsurer"}})}),super.init()}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275cmp=T({type:t,selectors:[["ar-hhv-previous-insurance"]],features:[U([W(Yn)]),J([Y]),Q],decls:2,vars:3,consts:[["subtitle","hhv.journey.previousInsurance.subTitle",3,"formSubmit","backNavigationPressed","title","form"],["ariaLabel","hhv.journey.previousInsurance.title",3,"form"]],template:function(r,i){r&1&&(s(0,"ar-journey-step-wrapper",0),S("formSubmit",function(){return i.submit()})("backNavigationPressed",function(){return i.back()}),p(1,"ar-previous-insurance-form",1),d()),r&2&&(l("title","hhv.journey.previousInsurance.title")("form",i.form),a(),l("form",i.form))},dependencies:[oe,bn],encapsulation:2})}}return t})();var tr=()=>[{path:g.Start,component:dn,data:{category:ie.Start,isStart:!0,nextStep:g.PreviousInsurance}},{path:g.PreviousInsurance,component:qn,data:{category:ie.Entries,nextStep:t=>t.order.productData?.preInsurance?.hasPreinsurer?g.AmountOfPreviousClaims:D.AmountOfDogs}},{path:g.AmountOfPreviousClaims,component:Tn,data:{category:ie.Entries,nextStep:D.AmountOfDogs}},{path:D.AmountOfDogs,component:xn,data:{category:ie.Entries,nextStep:D.Breeds,validCheck:t=>{let c=t.order?.productData?.insuredDogs;return c?.length&&c.length>0}}},{path:D.Breeds,component:Un,data:{category:ie.Entries,nextStep:t=>{let c=t?.data[D.Breeds]?.dogs?.findIndex(e=>C.isUnknownBreed(e))??-1;return c===-1?D.JobType:`${D.AutodetectBreed}-${c+1}`},validCheck:t=>Array.isArray(t.order?.productData?.insuredDogs)&&t.order?.productData?.insuredDogs.length===0?!1:t.order?.productData?.insuredDogs?.every(c=>!!c.name)??!1}},...[1,2,3,4,5].map(t=>({path:`${D.AutodetectBreed}-${t}`,component:jn,data:{category:ie.Entries,nextStep:c=>{if(t===5)return D.JobType;let e=c?.data[D.Breeds]?.dogs?.findIndex((r,i)=>i>=t&&C.isUnknownBreed(r))??-1;return e===-1?D.JobType:`${D.AutodetectBreed}-${e+1}`}}})),{path:D.JobType,component:Gn,data:{category:ie.Entries,nextStep:g.Birthdate}},{path:g.Birthdate,component:nn,data:{category:ie.Entries,nextStep:g.Offer,validCheck:t=>Xe.isValidBirthDate(t?.data?.[g.Birthdate]?.birthDate)}},{path:g.Offer,component:Qn,data:{category:ie.Offer,nextStep:g.LoginAndRegister}},{path:g.LoginAndRegister,component:an,data:{category:ie.Offer,nextStep:g.Contract,validCheck:(t,c)=>{let e=c?.sessionState?.loggedIn??!1;return t.data?.[g.LoginAndRegister]?.mode===gt.WITH_LOGIN?e:!0}}},{path:g.Contract,component:$n,data:{category:ie.Completion,nextStep:g.Overview,validCheck:t=>{let c=t?.order?.metadata?.insuranceStart??Ie.dateTimeToString(it.now().minus({days:1}));return Xe.isValidInsuranceStartDate(c)},nextBtnText:"general.next-check"}},{path:g.Overview,component:Wn,data:{category:ie.Completion,nextStep:g.Downloads}},{path:g.Downloads,component:on,data:{category:ie.Completion,nextStep:g.Success,validCheck:()=>!1}},{path:g.Success,component:sn,data:{category:ie.Complete,isEnd:!0}}];var dt=(function(t){return t.YEARLY="yearly",t.MONTHLY="monthly",t.QUARTERLY="quarterly",t.HALFYEARLY="halfyearly",t})(dt||{});var Kn={[Ee]:{hhv:{journey:{general:{yes:"Ja",no:"Nein",skip:"\xDCberspringen",next:"Weiter"},alreadyCustomer:{title:"Bist Du <span highlightmarker>
9bereits Privatkunde</span> von Adam Riese?"},birthdate:{title:"Wie lautet Dein <span highlightMarker>Geburtsdatum?</span>",label:"Geburtsdatum",underAgeError:"Versicherungsnehmer/innen m\xFCssen \xFCber 18 Jahre alt sein, um einen Vertrag abschlie\xDFen zu k\xF6nnen."},jobType:{title:"Bist Du <span highlightmarker>im \xF6ffentlichen Dienst t\xE4tig?</span>",yes:"Ja",no:"Nein"},zip:{title:"Wie lautet <span highlightmarker>Deine Postleitzahl?</span>"},previousClaims:{title:"<span highlightmarker>Wie viele</span> Hundehalterhaftpflicht-<span highlightmarker>Schadenf\xE4lle</span> hattest Du in den letzten 5 Jahren?",none:"Keine",once:"1",twice:"2",threeTimesOrMore:"3 oder mehr"},previousInsurance:{title:"<span highlightMarker>Hast oder hattest</span> Du in den letzten 5 Jahren <span highlightMarker>eine Hundehalterhaftpflicht?</span>",subTitle:"Bei dieser Frage geht es nur um Dich. Ob Dein zu versichernder Hund schon einmal eine Versicherung hatte oder nicht, ist hierbei nicht relevant."},amountOfPreviousClaims:{title:"<span highlightmarker>Wie viele</span> Hundehalterhaftpflicht-<span highlightmarker>Schadenf\xE4lle</span> hattest Du <span highlightMarker>in den letzten 5 Jahren?</span>",subTitle:"Gib bei mehreren Vorversicherern und/oder Hunden bitte die gesamte Anzahl an Schadenf\xE4llen an.",options:{none:"Keine",one:"1",two:"2",threeOrMore:"3 oder mehr"}},amountOfDogs:{title:"<span highlightmarker>Wie viele Hunde</span> m\xF6chtest Du <span highlightMarker>versichern?</span>",subTitle:"",options:{one:"1 Hund",two:"2 Hunde",three:"3 Hunde",four:"4 Hunde",five:"5 Hunde"}},dogsAndBreeds:{title:"Wer sind <span highlightMarker>Deine Hunde?</span>",titleSingle:"Wer ist <span highlightMarker>Dein Hund?</span>",dog:"Hund {{dogNo}}",dogSingle:"Dein Hund",name:"Name Deines {{dogNo}} Hundes",nameSingle:"Name Deines Hundes",dogPhoto:"Foto eines Hundes der ausgew\xE4hlten Rasse oder eigenes Bild.",dogRadioLabel:"Dieser Hund ist...",pureBreed:"Reinrassig",mixedBreed:"Mischling",breed:"Hunderasse",primaryBreed:"1. Hunderasse",secondaryBreed:"2. Hunderasse",unknownBreed:"Ich kenne die {{breedNo}}Rasse leider nicht.",unknownBreedLabel:"Unbekannt",autoDetectionInfo:"Kein Problem, im n\xE4chsten Schritt helfen wir Dir auch f\xFCr diesen Hund ein passgenaues Angebot zu erstellen.",amountOfDogs:{0:"ersten",1:"zweiten",2:"dritten",3:"vierten",4:"f\xFCnften"},invalidBreedName:"Bitte w\xE4hle eine Rasse aus der Liste aus.",invalidNameError:"Gib bitte den Namen Deines Hundes ein."},autodetectBreed:{title:"<span highlightmarker>Du kennst die Rasse</span> von {{ dogName }} <span highlightmarker>nicht?</span>",infoBtn:"Mehr Infos zum optimalen Foto",subTitle:"Kein Problem! <strong>Stelle uns ein Bild Deines Hundes zur Verf\xFCgung</strong> und wir k\xF6nnen Dir, dank unserer Bilderkennung, auch f\xFCr {{ dogName }} ein passgenaues Angebot erstellen \u2013 und <strong>Du bekommst einen g\xFCnstigeren Preis.</strong>",subTitleInfoAriaLabel:"Hinweis zu gef\xE4hrlichen Hunderassen",subTitleInfo:"Bitte beachte: <strong>Gef\xE4hrliche Hunderassen</strong> sowie Kreuzungen mit diesen Rassen k\xF6nnen wir leider <strong>nicht versichern.</strong>",uploadImage:"Foto hochladen",provideImage:{1:"Zieh Dein Foto in das Feld oder benutze den folgenden Button um es hochzuladen.",2:"(Mindestgr\xF6\xDFe 400x400 Pixel)"},imageConstraints:"Wir speichern das Bild, um das Tool zu trainieren und dadurch zu verbessern. Bitte achte daher darauf, dass Dein Bild <b>keine Menschen</b> zeigt. Au\xDFerdem k\xF6nnen wir so Deinen Hund besser identifizieren.",imageProcessing:"Dein Foto wird analysiert.",modals:{dogImageTooSmall:{title:"Das Bild ist leider zu klein.",text:"Wir ben\xF6tigen f\xFCr die erfolgreiche Erkennung Deines Hundes ein Bild mit einer <b>Mindestgr\xF6\xDFe von 400 x 400 Pixel.</b><br>Bitte versuche es noch einmal mit einem gr\xF6\xDFeren Bild."},noDogsOnImage:{title:"Wir konnten leider keinen Hund auf dem Bild erkennen.",text:'Bitte versuche es noch einmal mit einem anderen Bild Deines Hundes. Weitere Informationen zur Auswahl eines optimalen Fotos findest Du <a target="_blank" class="text-blue-green font-bold hover:underline focus:underline active:underline" href="https://info.adam-riese.de/hundebilderkennung-optimiert/">hier.</a>'}
9,multipleDogsOnImage:{title:"Wir haben mehrere Hunde auf dem Bild erkannt.",text:"Um Dir den korrekten Preis nennen zu k\xF6nnen, m\xFCssen wir genau wissen, welcher Dein Hund ist. Stelle uns darum bitte ein Bild zur Verf\xFCgung, auf dem ausschlie\xDFlich Dein Hund zu erkennen ist."},notInsurableDog:{title:"Es tut uns leid, aber wir k\xF6nnen Dir leider keine Hundehalterhaftpflicht anbieten.",text:"Die \xE4u\xDFeren Merkmale Deines Hundes enthalten Elemente von Hunderassen, die wir momentan nicht online versichern k\xF6nnen. Wir sind bem\xFCht, unser Angebot und unseren Service st\xE4ndig zu verbessern, um bald auch Deinen Fall abdecken zu k\xF6nnen."},generic:{title:"Oh, das hat nicht funktioniert.",text:"Bitte versuche es noch einmal mit einem anderen Bild.",uploadNewImage:"Neues Foto hochladen"},characterErrors:{chewbacca:{title:"Wir k\xF6nnen derzeit leider keine Wookiees versichern.",text:"Bitte versuche es alternativ auf dem Planeten Kashyyyk."},fuchur:{title:"Wir k\xF6nnen derzeit leider keine Gl\xFCcksdrachen versichern.",text:"Bitte versuche es alternativ in Phant\xE1sien."},alf:{title:"Wir k\xF6nnen Deinen Alf derzeit leider nicht versichern.",text:"Da der Planet Melmac zerst\xF6rt ist, haben wir f\xFCr die Berechnung Deines Preises keine aussagekr\xE4ftigen Daten."},ewok:{title:"Wir k\xF6nnen derzeit leider keine Ewoks versichern.",text:"Bitte versuche es alternativ auf dem Planeten Endor."},human:{title:"<span highlightmarker>Es tut uns leid.</span>",text:"Wir haben einen Menschen auf Deinem Bild erkannt. Bitte versuche es noch einmal mit einem anderen Bild Deines Hundes, auf dem kein Mensch zu sehen ist."}}}},autodetectBreedConfirm:{title:"<span highlightmarker>Vielen Dank</span> f\xFCr das Bild von {{ dogName }}!",breedGroups:"Die Bilderkennung hat die \xE4u\xDFeren Merkmale Deines Hundes untersucht. <br/>Aufgrund dieser Merkmale k\xF6nnen wir {{ dogName }} in folgende Rassengruppe(n) einordnen:</br> <strong>{{ breedGroups }}</strong>",savings:"Durch diese Einordung ist der Preis f\xFCr {{ dogName }} gesunken.<br/><strong>Du sparst</strong> weitere <strong>{{ savingsAmount }}.</strong>",goodBoy:"\xDCbrigens: Wir finden, {{ dogName }} ist ein <strong>toller Hund!</strong>"},modals:{impossible:{title:"Es tut uns leid, aber wir k\xF6nnen Dir leider keine Hundehalterhaftpflicht anbieten.",text:"Wir \xFCbernehmen leider keine Versicherungsnehmer/innen, die von ihrem Vorversicherer gek\xFCndigt wurden."},tooManyPreviousClaims:{title:"Es tut uns leid, aber wir k\xF6nnen Dir leider keine Hundehalterhaftpflicht anbieten.",text:"Versicherungsnehmer/innen mit drei oder mehr Schadenf\xE4llen sind f\xFCr uns aus wirtschaftlicher Sicht ein zu gro\xDFes Risiko, welches wir nicht eingehen."},invalidDogBreed:{title:"Es tut uns leid, aber wir k\xF6nnen Dir leider keine Hundehalterhaftpflicht anbieten.",text:"Leider k\xF6nnen wir die Hunderasse <strong>{{dogBreed}}</strong> nicht versichern, da sie als (potenziell) gef\xE4hrlich eingestuft wird und wir das Risiko momentan nicht tragen k\xF6nnen."}},offer:{title:"Dein Preis = <span highlightmarker>Deine Wahl!</span>",subtitle:"<strong>Nach Deiner Auswahl (Tarif, SB, etc.) wird Dir ein pers\xF6nlicher Preis berechnet.</strong><br/>Du kannst Deinen Schutz entsprechend Deinen Bed\xFCrfnissen anpassen, bis Dir der Beitrag passt. Easy!",coPayment:{title:"W\xE4hle Deine Selbstbeteiligung",label:"Selbstbeteiligung",[ge.COPAYMENT_0]:"Keine"},paymentPlan:{title:"W\xE4hle Deine Zahlweise",[dt.MONTHLY]:"monatlich",[dt.QUARTERLY]:"viertelj\xE4hrlich",[dt.HALFYEARLY]:"halbj\xE4hrlich",[dt.YEARLY]:"j\xE4hrlich",suffixPercentage:"Rabatt",suffixAmount:"/Jahr"},continueButtonPre:"Weiter mit Tarif",tariffs:{direct:{[v.XL]:"Tarif XL",[v.XXL]:"Tarif XXL"},broker:{[v.XL]:"Tarif Besser",[v.XXL]:"Tarif Riesig"}}},contract:{title:"Wir brauchen noch <span highlightMarker>ein paar Infos von Dir</span>",contact:{title:"\xDCber Dich",street:{label:"Stra\xDFe"}},information:{runningContract:"Bist Du noch bei einem anderen Versicherer? Wir helfen Dir beim K\xFCndigen."},chipNo:"Chip- oder Steuer-Nr. von {{dogName}} (optional)",dog:{title:{single:"\xDCber Deinen Hund",multiple:"\xDCber Deine Hunde"},chipNumber:"Chip- oder Steuer-Nr. von {{dogName}}"}},overview:{title:"Bitte <span highlightMarker>\xFCberpr\xFCfe</span> jetzt <span highlightMarker>Deine Angaben</span>",dogsCount:"Anzahl der zu versichernden Hunde",dogsTitle:"Versicherte Hunde",alreadyCustomer:"Ich bin {{param}}
9 Adam Riese Kunde.",pureBreed:"Hund {{ dogNumber }}: {{ nameOfDog }} - Rasse: {{ breedPrimary }}",pureBreedUnknown:"Hund {{ dogNumber }}: {{ nameOfDog }} - Rasse: Unbekannt",crossBreed:"Hund {{ dogNumber }}: {{ nameOfDog }} - Rasse: {{ breedPrimary }} {{ breedSecondary }}-Mischling",crossBreedSingleUnknown:"Hund {{ dogNumber }}: {{ nameOfDog }} - Rasse: {{ breed }}-Mischling",crossBreedBothUnknown:"Hund {{ dogNumber }}: {{ nameOfDog }} - Rasse: Mischling, Unbekannt",chipIds:"Chip-Id / Steuer Nummern",dogChip:"Hund {{ dogNumber }} : {{ dogName }} - {{ dogChipNumber }}",autodetectedBreedAndCrossBreed:"Hund {{ dogNumber }}: {{ nameOfDog }} - Rasse: {{ breed }}-Mischling, Rassengruppe per Bilderkennung: {{ breedGroups }}",autodetectedBreed:"Hund {{ dogNumber }}: {{ nameOfDog }} - Rassengruppe per Bilderkennung: {{ breedGroups }}",previousClaims:{0:"Ich hatte in den letzten 5 Jahren keinen Hundehalterhaftpflicht-Schadenfall.",1:"Ich hatte in den letzten 5 Jahren einen Hundehalterhaftpflicht-Schadenfall.",2:"Ich hatte in den letzten 5 Jahren zwei Hundehalterhaftpflicht-Schadenf\xE4lle.",title:"Anzahl an Vorsch\xE4den"},publicServant:"\xD6ffentlicher Dienst",previousInsurance:"Ich hatte in den letzten 5 Jahren bereits eine Hundehalterhaftpflichtversicherung.",previousInsuranceNoCancellation:"Mein Vorversicherung hat mir nicht gek\xFCndigt.",editables:{dogsCount:"Anzahl der zu versichernden Hunde bearbeiten",dogNames:"Namen der zu versichernden Hunde bearbeiten",chipIds:"Chip-Id eintragen oder \xE4ndern",publicServant:"Angabe zum \xF6ffentlichen Dienst bearbeiten",previousClaims:"Anzahl an Vorsch\xE4den bearbeiten"}}}}}};var Zn=(()=>{class t extends _n{constructor(){super(...arguments),this.product=Qe.HHV,this.journeyService=n(A),this.journeyStore=n(E),this.journeyQuery=n(C),this.pricingService=n(ce),this.actions$=n(k)}onSuccessfulOrder(e,r,i){this.dataLayerService.pushVariables(Cn.trackPurchase(this.pricingService.trackingProduct(e),r.offerId,e,i.order.metadata?.broker?.name??"")),this.dataLayerService.pushOrder(r.offerId,e)}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=R(t)))(i||t)}})()}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var Eh=(()=>{class t{constructor(){this.translate=n(Pe),this.translate.setTranslation(Ee,Pn[Ee],!0),this.translate.setTranslation(Ee,Kn[Ee],!0)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=fr({type:t})}static{this.\u0275inj=cr({imports:[ut.forChild([{path:"",children:tr(),component:Bn,canActivate:[wi()],providers:[Di(),Si(),Nr(Ti),{provide:Ii,useValue:tr()},A,C,ni(Zn),ce,ze,{provide:xi,useExisting:A},{provide:Bi,useExisting:C},{provide:Ut,useExisting:C},{provide:Mt,useExisting:E},{provide:Vt,useExisting:A},{provide:$t,useExisting:ce}]},{path:"**",redirectTo:""}]),ut]})}}return t})();export{Eh as HhvJourneyModule};
10//# sourceMappingURL=chunk-RVWCBLVI.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.