1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,549217,e=>{"use strict";var t=e.i(500932),a=e.i(271645),r=e.i(452326),i=e.i(148435);e.s(["default",0,function(e){let s,n,l=(0,t.c)(3),{product:o}=e;return l[0]!==o?(s=()=>{r.store.dispatch(i.actions.updateProduct(o))},n=[o],l[0]=o,l[1]=s,l[2]=n):(s=l[1],n=l[2]),(0,a.useEffect)(s,n),null}])},313855,e=>{"use strict";var t=e.i(843476),a=e.i(500932),r=e.i(335542),i=e.i(271645),s=e.i(618566),n=e.i(910818),l=e.i(280657),o=e.i(396657),c=e.i(551834),d=e.i(388317),u=e.i(517514),m=e.i(743772),h=e.i(38364),p=e.i(674392);let v=e=>1===e?(0,u.__)({id:"ava.reviews.single.label",values:{reviewsCount:e}}):(0,u.__)({id:"ava.reviews.label",values:{reviewsCount:e}}),f=e=>{let r,i,s=(0,a.c)(3),{openReviewForm:n}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,u.__)("ava.customerReviews.overview.btnWrite"),s[0]=r):r=s[0],s[1]!==n?(i=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(h.Button,{className:"btn btn-sm btn-default",onClick:n,children:r})}),s[1]=n,s[2]=i):i=s[2],i},b=e=>{let r,i,s,n,l,o,c,d=(0,a.c)(14),{reviewAverage:m,totalReviews:p,totalLovelyBooksReviews:f}=e;if(!m)return null;let b=f??0;return d[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("div",{className:"h4",children:(0,u.__)("ava.customerReviews.overview.ratingAvg.title")}),d[0]=r):r=d[0],d[1]!==m?(i=(0,h.calculateRatingFromPercent)(m),d[1]=m,d[2]=i):i=d[2],d[3]!==i?(s=(0,t.jsx)(h.ReviewStars,{rating:i}),d[3]=i,d[4]=s):s=d[4],d[5]!==p?(n=p&&(0,t.jsx)("div",{className:"review-count",children:v(p)}),d[5]=p,d[6]=n):n=d[6],d[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("span",{className:"footnote-ref",children:"15"}),d[7]=l):l=d[7],d[8]!==b?(o=b>0&&(0,t.jsx)("div",{className:"lovelybooks-info",children:(0,u.__)({id:"ava.customerReviews.overview.lovelybooks.text",values:{reviewsText:v(b),lovelyBooksLogo:(0,t.jsx)("span",{className:"logo-lovelybooks",children:"LovelyBooks"})}})}),d[8]=b,d[9]=o):o=d[9],d[10]!==s||d[11]!==n||d[12]!==o?(c=(0,t.jsxs)(t.Fragment,{children:[r,(0,t.jsxs)("div",{className:"review-summary",children:[s,n,l,o]})]}),d[10]=s,d[11]=n,d[12]=o,d[13]=c):c=d[13],c};var w=e.i(877258),x=e.i(547149),g=e.i(717910),j=e.i(166337),y=e.i(415263),_=e.i(330022),S=e.i(547359);let k=e=>(0,S.wsapiFetcher)("review/create",{body:JSON.stringify(e),method:"POST",customOptions:{formEncoding:!0,customParser:_.WsReview.parse}});var N=e.i(868012),R=e.i(653145);let C=e=>{let r,n,l,o,d,p,v,f,b,_,S,C,A,P,L,B,D,E,M,O,V=(0,a.c)(42),{productTitle:F}=e,{Form:H,Input:U,TextArea:W,CustomField:$}=h.ReactHookForm,K=(0,R.useForm)(),G=(0,y.useSession)(I),z=(0,c.useAppSelector)(x.ProductSelectors.selectProductId),q=(0,s.usePathname)(),J=(0,s.useRouter)();V[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,w.checkIsAuthenticated)(),V[0]=r):r=V[0];let Y=r;V[1]!==K||V[2]!==z||V[3]!==J?(n=async()=>{let e=K.getValues();try{let a,r=await (a={articleId:z,email:e.customerEmail,rating:e.rating,text:e.reviewText,title:e.reviewTitle,author:e.customerName},k(a).then(e=>(e.unmappableCharacters&&m.Track.error((0,m.TRACK_ID)("2022-06-30 11:25:00"),"Could not create review because text contains invalid characters: "+e.unmappableCharacters),e)));r&&(r.unmappableCharacters?(K.setValue("customerName",r.author),K.setValue("reviewTitle",r.title),K.setValue("reviewText",r.text),h.Toaster.open({id:"ava.customerReview.form.error.text.invalidCharacters",values:{br:(0,t.jsx)("br",{})}})):J.push(g.AppRoutes.reviewConfirmation))}catch(t){let e;(e="object"==typeof t&&null!==t&&"errorCode"in t?t.errorCode:void 0,Y||e!==N.WsErrorCode.INVALID_ARGUMENTS&&e!==N.WsErrorCode.INVALID_EMAIL_ADDRESS)?(0,w.handleError)(t,"Could not create review","2022-06-30 10:58:00",!0):K.setError("customerEmail",{message:(0,u.__string)("ava.customerReview.form.error.email")})}},V[1]=K,V[2]=z,V[3]=J,V[4]=n):n=V[4];let Z=n;if(V[5]!==G||V[6]!==K||V[7]!==Z?(l=()=>{let e=sessionStorage.getItem("reviewFormData");if(sessionStorage.removeItem("reviewFormData"),e){let t=JSON.parse(e);K.reset(t,{keepDefaultValues:!0}),K.handleSubmit(Z)()}G&&(K.setValue("customerName",G.firstName+" "+G.lastName),K.setValue("customerEmail",G.email))},V[5]=G,V[6]=K,V[7]=Z,V[8]=l):l=V[8],V[9]===Symbol.for("react.memo_cache_sentinel")?(o=[],V[9]=o):o=V[9],(0,i.useEffect)(l,o),V[10]!==K||V[11]!==q||V[12]!==J){let e;V[14]!==q||V[15]!==J?(e=e=>{sessionStorage.setItem("reviewFormData",JSON.stringify(e));let t=encodeURIComponent(`${q}?createReview=true`);J.push(`${j.CustomerRoutes.login}/?redirect=${t}`)},V[14]=q,V[15]=J,V[16]=e):e=V[16],d=K.handleSubmit(e),V[10]=K,V[11]=q,V[12]=J,V[13]=d}else d=V[13];let Q=d;return V[17]!==F?(p=(0,u.__)({id:"ava.customerReview.form.intro.label",values:{articleTitle:(0,t.jsx)("strong",{children:F})}}),V[17]=F,V[18]=p):p=V[18],V[19]!==p?(v=(0,t.jsx)("p",{className:"intro",children:p}),V[19]=p,V[20]=v):v=V[20],V[21]===Symbol.for("react.memo_cache_sentinel")?(f=(0,m.TRACK_ID)("2022-05-26 09:47:00"),V[21]=f):f=V[21],V[22]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)("div",{className:"row review-entry",children:(0,t.jsx)("div",{className:"col col-xs-12 rating-col",children:(0,t.jsx)($,{name:"rating",label:"ava.customerReview.form.rating.label",required:(0,u.__string)("ava.customerReview.form.error.rating"),render:T})})}),V[22]=b):b=V[22],V[23]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("div",{className:"col col-xs-12 col-sm-7",children:(0,t.jsx)(U,{type:"email",name:"customerEmail",label:"ava.customerReview.form.email.label",required:(0,u.__string)("ava.customerReview.form.error.email")})})}),V[23]=_):_=V[23],V[24]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("div",{className:"col col-xs-12 col-sm-7",children:(0,t.jsx)(U,{type:"text",name:"customerName",label:"ava.customerReview.form.name.label",placeholder:"ava.customerReview.form.name.default"})})}),V[24]=S):S=V[24],V[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("div",{className:"col col-xs-12",children:(0,t.jsx)(U,{type:"text",name:"reviewTitle",label:"ava.customerReview.form.t
1itle.label",maxLength:{value:80,message:(0,u.__string)("ava.customerReview.form.error.title.length")},validationMode:"onChange"})})}),V[25]=C):C=V[25],V[26]===Symbol.for("react.memo_cache_sentinel")?(A=(0,u.__string)("ava.customerReview.form.error.text"),V[26]=A):A=V[26],V[27]===Symbol.for("react.memo_cache_sentinel")?(P=(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("div",{className:"col col-xs-12",children:(0,t.jsx)(W,{name:"reviewText",label:"ava.customerReview.form.text.label",required:A,rows:7,maxLength:{value:1e4,message:(0,u.__string)("ava.customerReview.form.error.text.length")},validationMode:"onChange"})})}),L=(0,t.jsx)(h.RequiredInfo,{}),V[27]=P,V[28]=L):(P=V[27],L=V[28]),V[29]!==K.formState.isSubmitting||V[30]!==Q?(B=Y?(0,t.jsx)(h.Button,{className:"btn btn-primary",label:"ava.customerReview.form.submit.button",loading:K.formState.isSubmitting,disabled:K.formState.isSubmitting,type:"submit"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Button,{className:"btn btn-primary",label:"ava.customerReview.form.submit.withLogin.button",loading:K.formState.isSubmitting,disabled:K.formState.isSubmitting,type:"button",onClick:Q}),(0,t.jsx)(h.Button,{className:"btn btn-default btn-additional-submit",label:"ava.customerReview.form.submit.asGuest.button",loading:K.formState.isSubmitting,disabled:K.formState.isSubmitting,type:"submit"})]}),V[29]=K.formState.isSubmitting,V[30]=Q,V[31]=B):B=V[31],V[32]===Symbol.for("react.memo_cache_sentinel")?(D=(0,t.jsx)(h.Button,{className:"btn btn-default",label:"ava.customerReview.form.cancel.button",type:"button",onClick:h.Modal.close}),V[32]=D):D=V[32],V[33]!==B?(E=(0,t.jsx)("div",{className:"row buttons",children:(0,t.jsxs)("div",{className:"col col-xs-12",children:[B,D]})}),V[33]=B,V[34]=E):E=V[34],V[35]!==K||V[36]!==Z||V[37]!==E?(M=(0,t.jsxs)(H,{trackId:f,onSubmit:Z,...K,children:[b,_,S,C,P,L,E]}),V[35]=K,V[36]=Z,V[37]=E,V[38]=M):M=V[38],V[39]!==M||V[40]!==v?(O=(0,t.jsxs)("div",{children:[v,M]}),V[39]=M,V[40]=v,V[41]=O):O=V[41],O};function I(e){return e.customer}function T(e){let{field:a}=e,{value:r,onChange:i}=a;return(0,t.jsx)(h.ReviewStars,{rating:r,editCallback:i})}let A=e=>{let r,i,s,n,l=(0,a.c)(10),{rating:o,count:c,totalReviews:d}=e,m=void 0===c?0:c,h=m/d*100;l[0]!==o?(r=o>1?(0,u.__)({id:"ava.customerReviews.overview.ratingSeperated.label",values:{num:o}}):(0,u.__)({id:"ava.customerReviews.overview.ratingSeperated.single.label",values:{num:o}}),l[0]=o,l[1]=r):r=l[1],l[2]!==r?(i=(0,t.jsx)("span",{className:"label",children:r}),l[2]=r,l[3]=i):i=l[3];let p=`${h<=100?h:100}%`;return l[4]!==p?(s=(0,t.jsx)("div",{className:"bar",children:(0,t.jsx)("span",{className:"val",style:{width:p}})}),l[4]=p,l[5]=s):s=l[5],l[6]!==m||l[7]!==i||l[8]!==s?(n=(0,t.jsxs)("div",{className:"rating-bar",children:[i,s,m]}),l[6]=m,l[7]=i,l[8]=s,l[9]=n):n=l[9],n},P=e=>{let r,i,s,n,l,o,c,d=(0,a.c)(22),{reviewOverviewData:m}=e;if(!m?.reviewVotes)return null;let{review1star:h,review2star:p,review3star:v,review4star:f,review5star:b,reviewVotes:w}=m;return d[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("div",{className:"h4",children:(0,u.__)("ava.customerReviews.overview.ratingSeperated.title")}),d[0]=r):r=d[0],d[1]!==b||d[2]!==w?(i=(0,t.jsx)(A,{rating:5,count:b,totalReviews:w}),d[1]=b,d[2]=w,d[3]=i):i=d[3],d[4]!==f||d[5]!==w?(s=(0,t.jsx)(A,{rating:4,count:f,totalReviews:w}),d[4]=f,d[5]=w,d[6]=s):s=d[6],d[7]!==v||d[8]!==w?(n=(0,t.jsx)(A,{rating:3,count:v,totalReviews:w}),d[7]=v,d[8]=w,d[9]=n):n=d[9],d[10]!==p||d[11]!==w?(l=(0,t.jsx)(A,{rating:2,count:p,totalReviews:w}),d[10]=p,d[11]=w,d[12]=l):l=d[12],d[13]!==h||d[14]!==w?(o=(0,t.jsx)(A,{rating:1,count:h,totalReviews:w}),d[13]=h,d[14]=w,d[15]=o):o=d[15],d[16]!==i||d[17]!==s||d[18]!==n||d[19]!==l||d[20]!==o?(c=(0,t.jsxs)(t.Fragment,{children:[r,i,s,n,l,o]}),d[16]=i,d[17]=s,d[18]=n,d[19]=l,d[20]=o,d[21]=c):c=d[21],c};var L=e.i(524551);let B=e=>h.Modal.open((0,t.jsx)(C,{productTitle:e}),"ava.customerReview.send.modal.title"),D=e=>{let r,n,l,o,c,d,w,x,j,y,_,S=(0,a.c)(36),{productTitle:k,reviewOverviewData:N,reviewsLength:R}=e,C=(0,s.usePathname)();S[0]!==k?(r=()=>{B(k)},S[0]=k,S[1]=r):r=S[1];let I=r;if(S[2]!==k?(n=()=>{let{createReview:e}=p.UrlUtil.locationSearchToQuery(L.Globals.window()?.location.search||"");e&&B(k)},S[2]=k,S[3]=n):n=S[3],S[4]!==C||S[5]!==k?(l=[C,k],S[4]=C,S[5]=k,S[6]=l):l=S[6],(0,i.useEffect)(n,l),!N?.reviewVotes&&!R){let e,a,r,i,s,n,l;return S[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(h.ReviewStars,{rating:0}),S[7]=e):e=S[7],S[8]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:"review-summary",children:[e,(0,t.jsx)("div",{className:"review-count",children:v(0)})]}),S[8]=a):a=S[8],S[9]!==k?(r=(0,u.__)({id:"ava.customerReviews.noReviews.intro",values:{articleName:k}}),S[9]=k,S[10]=r):r=S[10],S[11]!==r?(i=(0,t.jsx)("p",{className:"text-limit-width",children:r}),S[11]=r,S[12]=i):i=S[12],S[13]===Symbol.for("react.memo_cache_sentinel")?(s=(0,u.__)("ava.customerReviews.overview.btnWriteFirst"),S[13]=s):s=S[13],S[14]!==I?(n=(0,t.jsx)(h.Button,{className:"btn btn-sm btn-default",onClick:I,children:s}),S[14]=I,S[15]=n):n=S[15],S[16]!==i||S[17]!==n?(l=(0,t.jsxs)("div",{children:[a,i,n]}),S[16]=i,S[17]=n,S[18]=l):l=S[18],l}let T=N?.reviewAverage,A=N?.reviewVotes,D=N?.reviewLovelyBooksVotes;return S[19]!==T||S[20]!==A||S[21]!==D?(o=(0,t.jsx)("div",{className:"col col-xs-12 col-sm-4 review-avg",children:(0,t.jsx)(b,{reviewAverage:T,totalReviews:A,totalLovelyBooksReviews:D})}),S[19]=T,S[20]=A,S[21]=D,S[22]=o):o=S[22],S[23]!==N?(c=(0,t.jsx)("div",{className:"col col-xs-12 col-sm-4 review-details",children:(0,t.jsx)(P,{reviewOverviewData:N})}),S[23]=N,S[24]=c):c=S[24],S[25]!==I?(d=(0,t.jsx)(f,{openReviewForm:I}),S[25]=I,S[26]=d):d=S[26],S[27]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)("br",{}),S[27]=w):w=S[27],S[28]===Symbol.for("react.memo_cache_sentinel")?(x=(0,m.TRACK_ID)("2023-12-06 13:40:21"),S[28]=x):x=S[28],S[29]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)(h.A,{className:"btn btn-simple btn-icon-left icon-ranking",trackId:x,href:g.AppRoutes.topReviewerList,children:(0,u.__)("ava.customerReviews.overview.btnRanking")}),S[29]=j):j=S[29],S[30]!==d?(y=(0,t.jsxs)("div",{className:"col col-xs-12 col-sm-4 review-actions",children:[d,w,j]}),S[30]=d,S[31]=y):y=S[31],S[32]!==y||S[33]!==o||S[34]!==c?(_=(0,t.jsx)("div",{className:"review-overview",children:(0,t.jsxs)("div",{className:"row",children:[o,c,y]})}),S[32]=y,S[33]=o,S[34]=c,S[35]=_):_=S[35],_};
1var E=e.i(283599),M=e.i(612276),O=e.i(204862);let V=e=>{let r,o,d,p,v,f,b,j,_,k,N,R,C=(0,a.c)(58),{wishlistAddable:I,wishlistId:T,wishlistName:A,onRemove:P,product:L}=e,B=(0,y.useSession)(F),D=(0,y.useSession)(H),V=(0,c.useAppSelector)(x.ProductSelectors.selectProductId),[G,z]=(0,i.useState)(),{trigger:q}=(0,M.default)(`product/wishlist/${V}/${G}`,S.postFetcher),{trigger:J}=(0,M.default)(`product/wishlist/${V}/${G}`,S.deleteFetcher),{data:Y,error:Z,isLoading:Q}=(0,E.default)(B?"product/wishlists":null,S.wsapiFetcher);C[0]!==I||C[1]!==T||C[2]!==Y?(r=()=>{!I&&T?z(T):Y?.length&&Y[0].wishListId&&z(Y[0].wishListId)},o=[Y,I,T],C[0]=I,C[1]=T,C[2]=Y,C[3]=r,C[4]=o):(r=C[3],o=C[4]),(0,i.useEffect)(r,o),C[5]!==Z?(d=()=>{Z&&(0,w.handleError)(null,`Could not fetch wishlists, http status: ${Z.status}`,"2022-05-05 09:40:00")},p=[Z],C[5]=Z,C[6]=d,C[7]=p):(d=C[6],p=C[7]),(0,i.useEffect)(d,p);let X=(0,s.useRouter)();C[8]!==V||C[9]!==X?(v=()=>{V&&X.push(g.PrivateRoutes.getWishlistSelectPath(V))},C[8]=V,C[9]=X,C[10]=v):v=C[10];let ee=v;C[11]!==q||C[12]!==L||C[13]!==X||C[14]!==G?(f=async()=>{G&&await q().then(()=>{(0,O.updateWishlistItemCount)("increase",1),X.push(g.PrivateRoutes.getWishlistPath(G)),n.GTM.track.add_to_wishlist((0,l.getCustomer)(),{net_value:(0,l.getNetValue)([(0,l.productItemtoGTMItem)(L)]),currency:"EUR",value:(0,l.getValue)([(0,l.productItemtoGTMItem)(L)]),items:[(0,l.productItemtoGTMItem)(L)]})}).catch(U)},C[11]=q,C[12]=L,C[13]=X,C[14]=G,C[15]=f):f=C[15];let et=f;C[16]!==P||C[17]!==L||C[18]!==J||C[19]!==G?(b=async()=>{G&&await J().then(()=>{(0,O.updateWishlistItemCount)("decrease",1),P(),n.GTM.track.remove_from_wishlist("ava",(0,l.getCustomer)(),{net_value:(0,l.getNetValue)([(0,l.productItemtoGTMItem)(L)]),currency:"EUR",value:(0,l.getValue)([(0,l.productItemtoGTMItem)(L)]),items:[(0,l.productItemtoGTMItem)(L)]})}).catch(W)},C[16]=P,C[17]=L,C[18]=J,C[19]=G,C[20]=b):b=C[20];let ea=b;C[21]!==Y?(j=Y??[],C[21]=Y,C[22]=j):j=C[22],C[23]!==j?(_=j.map(K),C[23]=j,C[24]=_):_=C[24];let er=_;if(D){let e;return C[25]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(h.AreaSpinner,{}),C[25]=e):e=C[25],e}if(!B){let e,a,r;return C[26]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("p",{children:(0,u.__)({id:"ava.wishlist.loggedOut",values:{br:(0,t.jsx)("br",{})}})}),C[26]=e):e=C[26],C[27]!==ee?(a=(0,t.jsx)(h.Button,{className:"btn btn-default btn-sm",label:"ava.wishlist.select.add.btn",onClick:ee}),C[27]=ee,C[28]=a):a=C[28],C[29]!==e||C[30]!==a?(r=(0,t.jsxs)("div",{onClick:$,children:[e,a]}),C[29]=e,C[30]=a,C[31]=r):r=C[31],r}if(!I&&A){let e,a,r,i,s;return C[32]!==T||C[33]!==A?(e=[{value:T,label:A}],C[32]=T,C[33]=A,C[34]=e):e=C[34],C[35]!==e||C[36]!==T?(a=(0,t.jsx)(h.Select,{options:e,value:T,className:"form-control",label:"ava.wishlist.remove.select.label"}),C[35]=e,C[36]=T,C[37]=a):a=C[37],C[38]!==Q||C[39]!==ea?(r=(0,t.jsx)(h.Button,{className:"btn btn-default btn-sm",label:"ava.wishlist.select.remove.btn",loading:Q,onClick:ea}),C[38]=Q,C[39]=ea,C[40]=r):r=C[40],C[41]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(h.A,{href:g.PrivateRoutes.wishlist,className:"btn btn-simple btn-icon-left icon-arrow-right",trackId:(0,m.TRACK_ID)("2022-05-17 09:30:00"),children:(0,u.__)("ava.wishlist.link")}
1),C[41]=i):i=C[41],C[42]!==a||C[43]!==r?(s=(0,t.jsxs)("div",{onClick:$,children:[a,r,i]}),C[42]=a,C[43]=r,C[44]=s):s=C[44],s}if(Q){let e;return C[45]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(h.AreaSpinner,{}),C[45]=e):e=C[45],e}if(!Y?.length){let e,a;return C[46]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(h.Select,{options:[{value:1,label:{id:"ava.wishlist.defaultOption"}}],value:1,className:"form-control",label:"ava.wishlist.add.select.label"}),C[46]=e):e=C[46],C[47]!==ee?(a=(0,t.jsxs)("div",{onClick:$,children:[e,(0,t.jsx)(h.Button,{className:"btn btn-default btn-sm",label:"ava.wishlist.select.add.btn",onClick:ee})]}),C[47]=ee,C[48]=a):a=C[48],a}return C[49]!==G||C[50]!==er?(k=(0,t.jsx)(h.Select,{options:er,value:G,className:"form-control",label:"ava.wishlist.add.select.label",onChange:z}),C[49]=G,C[50]=er,C[51]=k):k=C[51],C[52]!==et||C[53]!==Q?(N=(0,t.jsx)(h.Button,{className:"btn btn-default btn-sm",label:"ava.wishlist.select.add.btn",loading:Q,onClick:et}),C[52]=et,C[53]=Q,C[54]=N):N=C[54],C[55]!==k||C[56]!==N?(R=(0,t.jsxs)("div",{onClick:$,children:[k,N]}),C[55]=k,C[56]=N,C[57]=R):R=C[57],R};function F(e){return"authenticated"===e.status}function H(e){return"unknown"===e.status}function U(e){(0,w.handleError)(e.message,"Could not add product to wishlist","2022-05-05 09:50:00",!0)}function W(e){(0,w.handleError)(e.message,"Could not remove product from wishlist","2022-05-05 09:55:00",!0)}function $(e){e.stopPropagation()}function K(e){return{value:e.wishListId,label:e.wishListName}}var G=e.i(310893);let z=e=>{let r,s,n,l,o,c,d,m,p=(0,a.c)(18),{productId:v,product:f}=e,b=(0,i.useRef)(null),w=(0,y.useSession)(q),{data:x}=(0,E.default)(w?`product/customer/${v}`:null,S.wsapiFetcher);p[0]!==x?(r=x??{},p[0]=x,p[1]=r):r=p[1];let{wishlistAddable:g,wishlistId:j,wishlistName:_}=r,[k,N]=(0,i.useState)(!0);p[2]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{b.current?.close(),N(!0)},p[2]=s):s=p[2];let R=s;return p[3]!==g?(n=()=>{if(void 0===g)return N(!0);N(g)},l=[g],p[3]=g,p[4]=n,p[5]=l):(n=p[4],l=p[5]),(0,i.useEffect)(n,l),p[6]!==k||p[7]!==f||p[8]!==j||p[9]!==_?(o=(0,t.jsx)(V,{wishlistAddable:k,wishlistId:j,wishlistName:_,onRemove:R,product:f}),p[6]=k,p[7]=f,p[8]=j,p[9]=_,p[10]=o):o=p[10],p[11]!==k?(c=k?(0,u.__)("ava.wishlist.add.btn"):(0,u.__)("ava.wishlist.added.btn"),p[11]=k,p[12]=c):c=p[12],p[13]!==c?(d=(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-wishlist",children:c}),p[13]=c,p[14]=d):d=p[14],p[15]!==o||p[16]!==d?(m=(0,t.jsx)(G.InfoBox,{ref:b,node:o,children:d}),p[15]=o,p[16]=d,p[17]=m):m=p[17],m};function q(e){return"authenticated"===e.status}var J=e.i(343794),Y=e.i(943054),Z=Object.defineProperty,Q=Object.defineProperties,X=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable,er=(e,t,a)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ei=(e,t)=>{for(var a in t||(t={}))et.call(t,a)&&er(e,a,t[a]);if(ee)for(var a of ee(t))ea.call(t,a)&&er(e,a,t[a]);return e},es=(e,t)=>{var a={};for(var r in e)et.call(e,r)&&0>t.indexOf(r)&&(a[r]=e[r]);if(null!=e&&ee)for(var r of ee(e))0>t.indexOf(r)&&ea.call(e,r)&&(a[r]=e[r]);return a};class en extends Error{constructor(e){super(e),this.name="AssertionError"}}function el(e,t){if(!e)throw new en(t)}function eo(e){let t=Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`);return t.length>0?`?${t.join("&")}`:""}let ec={bluesky:"Share on Bluesky",email:"Share by email",facebook:"Share on Facebook",facebookmessenger:"Share in Messenger",gab:"Share on Gab",hatena:"Share on Hatena",instapaper:"Save to Instapaper",line:"Share on Line",linkedin:"Share on LinkedIn",livejournal:"Share on LiveJournal",mailru:"Share on Mail.ru",ok:"Share on OK",pinterest:"Pin on Pinterest",pocket:"Save to Pocket",reddit:"Share on Reddit",telegram:"Share on Telegram",threads:"Share on Threads",tumblr:"Share on Tumblr",twitter:"Share on X",viber:"Share on Viber",vk:"Share on VK",weibo:"Share on Weibo",whatsapp:"Share on WhatsApp",workplace:"Share on Workplace"};function ed(e){var{"aria-label":a,"aria-labelledby":r,beforeOnClick:s,children:n,className:l,disabled:o,disabledStyle:c={opacity:.6},forwardedRef:d,htmlTitle:u,networkLink:m,networkName:h,onClick:p,onShareWindowClose:v,openShareDialogOnClick:f=!0,opts:b,resetButtonStyle:w=!0,style:x,title:g,type:j="button",url:y,windowHeight:_=400,windowPosition:S="windowCenter",windowWidth:k=550}=e,N=es(e,["aria-label","aria-labelledby","beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","htmlTitle","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","title","type","url","windowHeight","windowPosition","windowWidth"]);let R=function(e){var t;let a=i.Children.toArray(e);if(1!==a.length)return;let[r]=a;if((0,i.isValidElement)(r))return r.props.round?"50%":null!=(t=r.props.borderRadius)?t:0}(n),C=a||r||function e(t){return i.Children.toArray(t).some(t=>"string"==typeof t?t.trim().length>0:"number"==typeof t||!!(0,i.isValidElement)(t)&&e(t.props.children))}(n)?void 0:ec[h],I=async e=>{if(o)return;let t=m(y,b);if(e.preventDefault(),s){let e=s();e&&("object"==typeof e||"function"==typeof e)&&"then"in e&&"function"==typeof e.then&&await e}f&&!function(e,t,a){var{height:r,width:i}=t;let s=ei({height:r,width:i,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},es(t,["height","width"])),n=window.open(e,"",Object.keys(s).map(e=>`${e}=${s[e]}`).join(", "));if(a){let e=window.setInterval(()=>{try{(null===n||n.closed)&&(window.clearInterval(e),a(n))}catch(e){console.error(e)}},1e3)}}(t,ei({height:_,width:k},"windowCenter"===S?{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-k/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-_/2}:{top:(window.screen.height-_)/2,left:(window.screen.width-k)/2}),v);p&&p(e,t)},T=(0,J.default)("react-share__ShareButton",{"react-share__ShareButton--disabled":!!o,disabled:!!o},l),A=w?ei(ei({backgroundColor:"transparent",border:"none",padding:0,display:"inline-flex",borderRadius:R,outlineOffset:2,font:"inherit",color:"inherit",curs
1or:"pointer"},x),o&&c):ei(ei({},x),o&&c);return(0,t.jsx)("button",Q(ei({},N),X({"aria-label":a||C,"aria-labelledby":r,className:T,disabled:o,onClick:I,ref:d,style:A,title:u,type:j,children:n})))}function eu(e,{title:t,separator:a}){return el(e,"bluesky.url"),"https://bsky.app/intent/compose"+eo({text:t?t+a+e:e})}function em(e,{subject:t,body:a,separator:r}){return"mailto:"+eo({subject:t,body:a?a+r+e:e})}(0,i.forwardRef)((e,a)=>{var{separator:r,title:i}=e,s=es(e,["separator","title"]);return(0,t.jsx)(ed,Q(ei({},s),X({forwardedRef:a,networkName:"bluesky",networkLink:eu,opts:{title:i,separator:r||" "},windowHeight:460,windowPosition:"windowCenter",windowWidth:660})))}).displayName="BlueskyShareButton";let eh=(0,i.forwardRef)((e,a)=>{var{body:r,separator:i,subject:s}=e,n=es(e,["body","separator","subject"]);return(0,t.jsx)(ed,Q(ei({},n),X({forwardedRef:a,networkName:"email",networkLink:em,onClick:(e,t)=>{window.location.href=t},openShareDialogOnClick:!1,opts:{subject:s,body:r,separator:i||" "}})))});function ep(e,{appId:t,redirectUri:a,to:r}){return"https://www.facebook.com/dialog/send"+eo({link:e,redirect_uri:a||e,app_id:t,to:r})}function ev(e,{hashtag:t}){return el(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+eo({u:e,hashtag:t})}eh.displayName="EmailShareButton",(0,i.forwardRef)((e,a)=>{var{appId:r,redirectUri:i,to:s}=e,n=es(e,["appId","redirectUri","to"]);return(0,t.jsx)(ed,Q(ei({},n),X({forwardedRef:a,networkName:"facebookmessenger",networkLink:ep,opts:{appId:r,redirectUri:i,to:s},windowHeight:820,windowWidth:1e3})))}).displayName="FacebookMessengerShareButton";let ef=(0,i.forwardRef)((e,a)=>{var{hashtag:r}=e,i=es(e,["hashtag"]);return(0,t.jsx)(ed,Q(ei({},i),X({forwardedRef:a,networkName:"facebook",networkLink:ev,opts:{hashtag:r},windowHeight:400,windowWidth:550})))});function eb(e){let a;var{children:r=e=>e,className:s,getCount:n,url:l}=e,o=es(e,["children","className","getCount","url"]);let c=(a=(0,i.useRef)(!1),(0,i.useEffect)(()=>(a.current=!0,()=>{a.current=!1}),[]),(0,i.useCallback)(()=>a.current,[])),[d,u]=(0,i.useState)(void 0),[m,h]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{h(!0),n(l,e=>{c()&&(u(e),h(!1))})},[l]),(0,t.jsx)("span",Q(ei({className:(0,J.default)("react-share__ShareCount",s)},o),X({children:!m&&void 0!==d&&r(d)})))}function ew(e){let a=a=>(0,t.jsx)(eb,ei({getCount:e},a));return a.displayName=`ShareCount(${e.name})`,a}function ex(e,{title:t}){return el(e,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${t}`}function eg(e,{title:t,description:a}){return el(e,"instapaper.url"),"http://www.instapaper.com/hello2"+eo({url:e,title:t,description:a})}function ej(e,{title:t}){return el(e,"line.url"),"https://social-plugins.line.me/lineit/share"+eo({url:e,text:t})}function ey(e,{title:t,summary:a,source:r}){return el(e,"linkedin.url"),"https://linkedin.com/shareArticle"+eo({url:e,mini:"true",title:t,summary:a,source:r})}function e_(e,{title:t,description:a}){return el(e,"livejournal.url"),"https://www.livejournal.com/update.bml"+eo({subject:t,event:a})}function eS(e,{title:t,description:a,imageUrl:r}){return el(e,"mailru.url"),"https://connect.mail.ru/share"+eo({url:e,title:t,description:a,image_url:r})}function ek(e,{title:t,description:a,image:r}){return el(e,"ok.url"),"https://connect.ok.ru/offer"+eo({url:e,title:t,description:a,imageUrl:r})}function eN(e,{media:t,description:a,pinId:r}){return r?`https://pinterest.com/pin/${r}/repin/x/`:(el(e,"pinterest.url"),el(t,"pinterest.media"),"https://pinterest.com/pin/create/button/"+eo({url:e,media:t,description:a}))}ef.displayName="FacebookShareButton",ew(function(e,t){let a=`https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`;(0,Y.default)(a,(e,a)=>{t(!e&&a&&a.og_object&&a.og_object.engagement?a.og_object.engagement.count:void 0)})}),(0,i.forwardRef)((e,a)=>{var{title:r}=e,i=es(e,["title"]);return(0,t.jsx)(ed,Q(ei({},i),X({forwardedRef:a,networkName:"hatena",networkLink:ex,opts:{title:r},windowHeight:460,windowPosition:"windowCenter",windowWidth:660})))}).displayName="HatenaShareButton",ew(function(e,t){(0,Y.default)("https://bookmark.hatenaapis.com/count/entry"+eo({url:e}),(e,a)=>{t(null!=a?a:void 0)})}),(0,i.forwardRef)((e,a)=>{var{description:r,title:i}=e,s=es(e,["description","title"]);return(0,t.jsx)(ed,Q(ei({},s),X({forwardedRef:a,networkName:"instapaper",networkLink:eg,opts:{title:i,description:r},windowHeight:500,windowPosition:"windowCenter",windowWidth:500})))}).displayName="InstapaperShareButton",(0,i.forwardRef)((e,a)=>{var{title:r}=e,i=es(e,["title"]);return(0,t.jsx)(ed,Q(ei({},i),X({forwardedRef:a,networkName:"line",networkLink:ej,opts:{title:r},windowHeight:500,windowWidth:500})))}).displayName="LineShareButton",(0,i.forwardRef)((e,a)=>{var{source:r,summary:i,title:s}=e,n=es(e,["source","summary","title"]);return(0,t.jsx)(ed,Q(ei({},n),X({forwardedRef:a,networkName:"linkedin",networkLink:ey,opts:{title:s,summary:i,source:r},windowHeight:600,windowWidth:750})))}).displayName="LinkedinShareButton",(0,i.forwardRef)((e,a)=>{var{description:r,title:i}=e,s=es(e,["description","title"]);return(0,t.jsx)(ed,Q(ei({},s),X({forwardedRef:a,networkName:"livejournal",networkLink:e_,opts:{title:i,description:r},windowHeight:460,windowWidth:660})))}).displayName="LivejournalShareButton",(0,i.forwardRef)((e,a)=>{var{description:r,imageUrl:i,title:s}
1=e,n=es(e,["description","imageUrl","title"]);return(0,t.jsx)(ed,Q(ei({},n),X({forwardedRef:a,networkName:"mailru",networkLink:eS,opts:{title:s,description:r,imageUrl:i},windowHeight:460,windowWidth:660})))}).displayName="MailruShareButton",(0,i.forwardRef)((e,a)=>{var{description:r,image:i,title:s}=e,n=es(e,["description","image","title"]);return(0,t.jsx)(ed,Q(ei({},n),X({forwardedRef:a,networkName:"ok",networkLink:ek,opts:{title:s,description:r,image:i},windowHeight:480,windowPosition:"screenCenter",windowWidth:588})))}).displayName="OKShareButton",ew(function(e,t){window.OK||(window.OK={Share:{count:function(e,t){var a,r;null==(r=(a=window.OK.callbacks)[e])||r.call(a,t)}},callbacks:[]});let a=window.OK.callbacks.length;return window.ODKL={updateCount(e,t){var a,r;let i=""===e?0:parseInt(e.replace("react-share-",""),10);null==(r=(a=window.OK.callbacks)[i])||r.call(a,""===t?void 0:parseInt(t,10))}},window.OK.callbacks.push(t),(0,Y.default)("https://connect.ok.ru/dk"+eo({"st.cmd":"extLike",uid:`react-share-${a}`,ref:e}))});let eR=(0,i.forwardRef)((e,a)=>{var{description:r,media:i,pinId:s}=e,n=es(e,["description","media","pinId"]);return(0,t.jsx)(ed,Q(ei({},n),X({forwardedRef:a,networkName:"pinterest",networkLink:eN,opts:{media:i,description:r,pinId:s},windowHeight:730,windowWidth:1e3})))});function eC(e,{title:t}){return el(e,"pocket.url"),"https://getpocket.com/save"+eo({url:e,title:t})}function eI(e,{title:t}){return el(e,"reddit.url"),"https://www.reddit.com/submit"+eo({url:e,title:t})}function eT(e,{title:t}){return el(e,"gab.url"),"https://gab.com/compose"+eo({url:e,text:t})}function eA(e,{title:t}){return el(e,"telegram.url"),"https://telegram.me/share/url"+eo({url:e,text:t})}function eP(e,{title:t}){return el(e,"threads.url"),"https://threads.net/intent/post"+eo({url:e,text:t})}function eL(e,{title:t,caption:a,tags:r,posttype:i}){return el(e,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+eo({canonicalUrl:e,title:t,caption:a,tags:r,posttype:i})}function eB(e,{title:t,via:a,hashtags:r=[],related:i=[]}){return el(e,"x.url"),el(Array.isArray(r),"x.hashtags is not an array"),el(Array.isArray(i),"x.related is not an array"),"https://twitter.com/intent/tweet"+eo({url:e,text:t,via:a,hashtags:r.length>0?r.join(","):void 0,related:i.length>0?i.join(","):void 0})}eR.displayName="PinterestShareButton",ew(function(e,t){(0,Y.default)("https://api.pinterest.com/v1/urls/count.json"+eo({url:e}),(e,a)=>{t(a?a.count:void 0)})}),(0,i.forwardRef)((e,a)=>{var{title:r}=e,i=es(e,["title"]);return(0,t.jsx)(ed,Q(ei({},i),X({forwardedRef:a,networkName:"pocket",networkLink:eC,opts:{title:r},windowHeight:500,windowWidth:500})))}).displayName="PocketShareButton",(0,i.forwardRef)((e,a)=>{var{title:r}=e,i=es(e,["title"]);return(0,t.jsx)(ed,Q(ei({},i),X({forwardedRef:a,networkName:"reddit",networkLink:eI,opts:{title:r},windowHeight:460,windowPosition:"windowCenter",windowWidth:660})))}).displayName="RedditShareButton",(0,i.forwardRef)((e,a)=>{var{title:r}=e,i=es(e,["title"]);return(0,t.jsx)(ed,Q(ei({},i),X({forwardedRef:a,networkName:"gab",networkLink:eT,opts:{title:r},windowHeight:640,windowPosition:"windowCenter",windowWidth:660})))}).displayName="GabShareButton",ew(function(e,t){let a=`https://www.reddit.com/api/info.json?limit=1&url=${e}`;(0,Y.default)(a,{param:"jsonp"},(e,a)=>{t(!e&&a&&a.data&&a.data.children.length>0&&a.data.children[0].data.score?a.data.children[0].data.score:void 0)})}),(0,i.forwardRef)((e,a)=>{var{title:r}=e,i=es(e,["title"]);return(0,t.jsx)(ed,Q(ei({},i),X({forwardedRef:a,networkName:"telegram",networkLink:eA,opts:{title:r},windowHeight:400,windowWidth:550})))}).displayName="TelegramShareButton",(0,i.forwardRef)((e,a)=>{var{hashtags:r,related:i,title:s,via:n}=e,l=es(e,["hashtags","related","title","via"]);return(0,t.jsx)(ed,Q(ei({},l),X({forwardedRef:a,networkName:"threads",networkLink:eP,opts:{title:s},windowHeight:600,windowWidth:550})))}).displayName="ThreadsShareButton",(0,i.forwardRef)((e,a)=>{var{caption:r,posttype:i,tags:s,title:n}=e,l=es(e,["caption","posttype","tags","title"]);return(0,t.jsx)(ed,Q(ei({},l),X({forwardedRef:a,networkName:"tumblr",networkLink:eL,opts:{title:n,tags:(s||[]).join(","),caption:r,posttype:i||"link"},windowHeight:460,windowWidth:660})))}).displayName="TumblrShareButton",ew(function(e,t){return(0,Y.default)("https://api.tumblr.com/v2/share/stats"+eo({url:e}),(e,a)=>{t(!e&&a&&a.response?a.response.note_count:void 0)})});let eD=(0,i.forwardRef)((e,a)=>{var{hashtags:r,related:i,title:s,via:n}=e,l=es(e,["hashtags","related","title","via"]);return(0,t.jsx)(ed,Q(ei({},l),X({forwardedRef:a,networkName:"twitter",networkLink:eB,opts:{hashtags:r,title:s,via:n,related:i},windowHeight:400,windowWidth:550})))});function eE(e,{title:t,separator:a}){return el(e,"viber.url"),"viber://forward"+eo({text:t?t+a+e:e})}function eM(e,{title:t,image:a,noParse:r,noVkLinks:i}){return el(e,"vk.url"),"https://vk.com/share.php"+eo({url:e,title:t,image:a,noparse:+!!r,no_vk_links:+!!i})}function eO(e,{title:t,image:a}){return el(e,"weibo.url"),"http://service.weibo.com/share/share.php"+eo({url:e,title:t,pic:a})}function eV(e,{title:t,separator:a}
1){return el(e,"whatsapp.url"),"https://api.whatsapp.com/send"+eo({text:t?t+a+e:e})}eD.displayName="XShareButton",(0,i.forwardRef)((e,a)=>(0,t.jsx)(eD,Q(ei({},e),X({ref:a})))).displayName="TwitterShareButton",(0,i.forwardRef)((e,a)=>{var{separator:r,title:i}=e,s=es(e,["separator","title"]);return(0,t.jsx)(ed,Q(ei({},s),X({forwardedRef:a,networkName:"viber",networkLink:eE,opts:{title:i,separator:r||" "},windowHeight:460,windowWidth:660})))}).displayName="ViberShareButton",(0,i.forwardRef)((e,a)=>{var{image:r,noParse:i,noVkLinks:s,title:n}=e,l=es(e,["image","noParse","noVkLinks","title"]);return(0,t.jsx)(ed,Q(ei({},l),X({forwardedRef:a,networkName:"vk",networkLink:eM,opts:{title:n,image:r,noParse:i,noVkLinks:s},windowHeight:460,windowWidth:660})))}).displayName="VKShareButton",ew(function(e,t){window.VK||(window.VK={}),window.VK.Share={count:(e,t)=>{var a,r;return null==(r=null==(a=window.VK.callbacks)?void 0:a[e])?void 0:r.call(a,t)}},window.VK.callbacks=[];let a=window.VK.callbacks.length;return window.VK.callbacks.push(t),(0,Y.default)("https://vk.com/share.php"+eo({act:"count",index:a,url:e}))}),(0,i.forwardRef)((e,a)=>{var{image:r,title:i}=e,s=es(e,["image","title"]);return(0,t.jsx)(ed,Q(ei({},s),X({forwardedRef:a,networkName:"weibo",networkLink:eO,opts:{title:i,image:r},windowHeight:550,windowPosition:"screenCenter",windowWidth:660})))}).displayName="WeiboShareButton";let eF=(0,i.forwardRef)((e,a)=>{var{separator:r,title:i}=e,s=es(e,["separator","title"]);return(0,t.jsx)(ed,Q(ei({},s),X({forwardedRef:a,networkName:"whatsapp",networkLink:eV,opts:{title:i,separator:r||" "},windowHeight:400,windowWidth:550})))});function eH(e,{quote:t,hashtag:a}){return el(e,"workplace.url"),"https://work.facebook.com/sharer.php"+eo({u:e,quote:t,hashtag:a})}eF.displayName="WhatsappShareButton",(0,i.forwardRef)((e,a)=>{var{hashtag:r,quote:i}=e,s=es(e,["hashtag","quote"]);return(0,t.jsx)(ed,Q(ei({},s),X({forwardedRef:a,networkName:"workplace",networkLink:eH,opts:{quote:i,hashtag:r},windowHeight:400,windowWidth:550})))}).displayName="WorkplaceShareButton";let eU=(e,a)=>(0,t.jsx)("span",{className:`btn btn-simple btn-icon-left icon-share-${e}`,children:a}),eW=e=>{let r,i,s,n,l,o,c,d,m,h,v=(0,a.c)(19),{product:f}=e,b=L.Globals.window()?.location.href??"https://www.hugendubel.de/de";v[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("div",{className:"h4",children:(0,u.__)("ava.share.modal.title")}),v[0]=r):r=v[0];let w=f.title;v[1]===Symbol.for("react.memo_cache_sentinel")?(i=eU("facebook",(0,u.__string)("ava.share.modal.btn.facebook")),v[1]=i):i=v[1],v[2]!==f.title?(s=(0,t.jsx)("li",{children:(0,t.jsx)(ef,{title:w,children:i,url:b})}),v[2]=f.title,v[3]=s):s=v[3];let x=f.title;v[4]===Symbol.for("react.memo_cache_sentinel")?(n=eU("pinterest",(0,u.__string)("ava.share.modal.btn.pinterest")),v[4]=n):n=v[4];let g=f?.images[0]?.imageLink;v[5]!==f.title||v[6]!==g?(l=(0,t.jsx)("li",{children:(0,t.jsx)(eR,{description:x,children:n,url:b,media:g})}),v[5]=f.title,v[6]=g,v[7]=l):l=v[7],v[8]!==f.title?(o=p.DeviceDetector.isMobile()&&(0,t.jsx)("li",{children:(0,t.jsx)(eF,{title:f.title,children:eU("whatsapp",(0,u.__string)("ava.share.modal.btn.whatsapp")),url:b})}),v[8]=f.title,v[9]=o):o=v[9],v[10]===Symbol.for("react.memo_cache_sentinel")?(c=eU("mail",(0,u.__string)("ava.share.modal.btn.mail")),v[10]=c):c=v[10];let j=f.title;return v[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,u.__string)("ava.share.modal.mail.body"),v[11]=d):d=v[11],v[12]!==f.title?(m=(0,t.jsx)("li",{children:(0,t.jsx)(eh,{children:c,url:b,subject:j,body:d})}),v[12]=f.title,v[13]=m):m=v[13],v[14]!==m||v[15]!==s||v[16]!==l||v[17]!==o?(h=(0,t.jsxs)("div",{className:"sharing",children:[r,(0,t.jsxs)("ul",{children:[s,l,o,m]})]}),v[14]=m,v[15]=s,v[16]=l,v[17]=o,v[18]=h):h=v[18],h},e$=e=>{let r,i,s,n=(0,a.c)(5),{product:l}=e;return n[0]!==l?(r=(0,t.jsx)(eW,{product:l}),n[0]=l,n[1]=r):r=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("span",{className:"btn btn-simple btn-icon-left icon-share",children:(0,u.__)("ava.share.btn")}),n[2]=i):i=n[2],n[3]!==r?(s=(0,t.jsx)(G.InfoBox,{node:r,children:i}),n[3]=r,n[4]=s):s=n[4],s},eK=e=>{let r,i,s,n,l,o,c=(0,a.c)(12),{product:d}=e;c[0]!==d.title?(r=()=>B(d.title),c[0]=d.title,c[1]=r):r=c[1];let m=r;return c[2]!==d?(i=(0,t.jsx)(z,{productId:d.id,product:d}),s=(0,t.jsx)(e$,{product:d}),c[2]=d,c[3]=i,c[4]=s):(i=c[3],s=c[4]),c[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,u.__)("ava.rate.btn"),c[5]=n):n=c[5],c[6]!==m?(l=(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-review",onClick:m,children:n}),c[6]=m,c[7]=l):l=c[7],c[8]!==i||c[9]!==s||c[10]!==l?(o=(0,t.jsxs)("div",{className:"additional-user-action-buttons",children:[i,s,l]}),c[8]=i,c[9]=s,c[10]=l,c[11]=o):o=c[11],o};
1var eG=e.i(818580),ez=e.i(135355);let eq=e=>{let r,i,s,n,l,o,c,d,m=(0,a.c)(17),{keywords:h}=e;if(!h.length)return null;m[0]!==h?(r=h.filter(eJ).map(eY),n="keywords",m[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("h2",{children:(0,u.__)("ava.keywords.headline")}),m[6]=l):l=m[6],i="scroll-list",s=r.map(eZ),m[0]=h,m[1]=r,m[2]=i,m[3]=s,m[4]=n,m[5]=l):(r=m[1],i=m[2],s=m[3],n=m[4],l=m[5]),m[7]!==i||m[8]!==s?(o=(0,t.jsx)("div",{className:i,children:s}),m[7]=i,m[8]=s,m[9]=o):o=m[9];let p=r;return m[10]!==p?(c=(0,t.jsx)(ez.ESlider,{content:p,className:"slider"}),m[10]=p,m[11]=c):c=m[11],m[12]!==n||m[13]!==l||m[14]!==o||m[15]!==c?(d=(0,t.jsxs)("div",{className:n,children:[l,o,c]}),m[12]=n,m[13]=l,m[14]=o,m[15]=c,m[16]=d):d=m[16],d};function eJ(e){return e.text}function eY(e,a){let r=encodeURIComponent(e.text.toLowerCase());return(0,t.jsx)(h.A,{className:"btn btn-light btn-sm btn-tag",href:g.AppRoutes.getAdvancedKeywordsSearch(r),trackId:(0,m.TRACK_ID)("2022-07-08 14:12:39"),onClick:eG.preventScrollToSearchArticle,children:(0,t.jsx)("span",{className:"line-clamp-l2",children:e.text})},a)}function eZ(e,a){return(0,t.jsx)("div",{className:"keyword-item",children:e},a)}let eQ=e=>{let r,i,s=(0,a.c)(4),{data:n}=e;return n?(s[0]!==n?(r=(0,w.renderHTMLOrWikitext)(n),s[0]=n,s[1]=r):r=s[1],s[2]!==r?(i=(0,t.jsx)("div",{className:"flex-content",children:(0,t.jsx)("div",{className:"text-limit-width",children:r})}),s[2]=r,s[3]=i):i=s[3],i):null},eX=e=>{let r,i,s=(0,a.c)(4),{data:n}=e;return n?(s[0]!==n?(r=(0,w.renderHTMLOrWikitext)(n),s[0]=n,s[1]=r):r=s[1],s[2]!==r?(i=(0,t.jsx)("div",{className:"flex-content interview",children:(0,t.jsx)("div",{className:"text-limit-width",children:r})}),s[2]=r,s[3]=i):i=s[3],i):null};var e0=e.i(286568);let e1=e=>{let r,i,s,n,l,o,c,d,p,v=(0,a.c)(20),{authors:f,authorDetails:b,interview:w,productId:x}=e,j=f[0];v[0]!==b?(r=b.map(e2),v[0]=b,v[1]=r):r=v[1];let y=r;return j&&y.length?(v[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("h2",{children:(0,u.__)("ava.portrait")}),v[2]=i):i=v[2],v[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,m.TRACK_ID)("2022-04-11 14:00:00"),v[3]=s):s=v[3],v[4]!==j?(n=g.AppRoutes.getAdvancedAuthorSearchPath(encodeURIComponent(j)),v[4]=j,v[5]=n):n=v[5],v[6]!==j||v[7]!==n?(l=(0,t.jsx)("h3",{children:(0,t.jsx)(h.A,{className:"icon-arrow-right",trackId:s,href:n,onClick:eG.preventScrollToSearchArticle,children:j})}),v[6]=j,v[7]=n,v[8]=l):l=v[8],v[9]!==y||v[10]!==x?(o=(0,t.jsx)(e0.ReadMoreTextBlockSSR,{initialTextHeight:160,resetOnChange:x,children:y}),v[9]=y,v[10]=x,v[11]=o):o=v[11],v[12]!==l||v[13]!==o?(c=(0,t.jsxs)("div",{className:"author-portrait",children:[i,(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("div",{className:"col-12 col-sm-9",children:(0,t.jsx)("div",{className:"media-text-block",children:(0,t.jsxs)("div",{className:"text text-limit-width",children:[l,o]})})})})]}),v[12]=l,v[13]=o,v[14]=c):c=v[14],v[15]!==w?(d=(0,t.jsx)(eX,{data:w}),v[15]=w,v[16]=d):d=v[16],v[17]!==c||v[18]!==d?(p=(0,t.jsxs)(t.Fragment,{children:[c,d]}),v[17]=c,v[18]=d,v[19]=p):p=v[19],p):null};function e2(e,a){return(0,t.jsxs)(i.Fragment,{children:[(0,w.renderHTMLOrWikitext)(e),(0,t.jsx)("br",{})]},a)}var e3=e.i(821784);let e5=e=>{let r,i,s,n,l,o,c,d,m,h=(0,a.c)(23),{priceData:v,className:f}=e,{price:b,oldPrice:w,priceLabel:x,oldPriceLabel:g,rebateCategory:j,rebateCategoryDescription:y}=v;return void 0===b?null:(h[0]!==f?(r=p._.classNames("item-price",f),h[0]=f,h[1]=r):r=h[1],h[2]!==w||h[3]!==g?(i=w&&(0,t.jsxs)("div",{className:"price price-old",children:[(0,t.jsx)("span",{className:"price-label",children:g}),(0,t.jsx)("span",{className:"price-value",children:e3.Money.getFormatted(w)})]}),h[2]=w,h[3]=g,h[4]=i):i=h[4],h[5]!==y?(s=y&&(0,t.jsx)("div",{className:"price-info rebate-description",children:y}),h[5]=y,h[6]=s):s=h[6],h[7]!==x||h[8]!==j?(n=x&&(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"price-label",children:x}),j&&(0,t.jsx)("span",{className:"footnote-ref",children:j})]}),h[7]=x,h[8]=j,h[9]=n):n=h[9],h[10]!==b?(l=e3.Money.getFormatted(b),h[10]=b,h[11]=l):l=h[11],h[12]!==l?
1(o=(0,t.jsx)("span",{className:"price",children:l}),h[12]=l,h[13]=o):o=h[13],h[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("span",{className:"price-info",children:(0,u.__)("ava.price.inclTax")}),h[14]=c):c=h[14],h[15]!==n||h[16]!==o?(d=(0,t.jsxs)("div",{className:"current-price",children:[n,o,c]}),h[15]=n,h[16]=o,h[17]=d):d=h[17],h[18]!==r||h[19]!==i||h[20]!==s||h[21]!==d?(m=(0,t.jsxs)("div",{className:r,children:[i,s,d]}),h[18]=r,h[19]=i,h[20]=s,h[21]=d,h[22]=m):m=h[22],m)},e4=({addToBasket:e,isSubscribed:a,subscriptionIsPaused:r,articlePriceInCredits:i,currentCredits:s,articlePriceReducedAmount:n,nextPaymentDate:l,sufficientCreditAvailable:o,previouslySubscribed:c,fullSubscriptionPrice:d,hasBoughtDownload:m,subscriptionIsCancelled:v})=>{let f=l?p.DateUtil.toGermanDateString(new Date(l),{showYear:!0,omitWeekday:!0}):null;return a?o?(0,t.jsxs)("div",{className:"caprate-subscription-cta-block",children:[(0,t.jsxs)("div",{children:[(0,u.__)({id:"ava.caprate.subscription.accordion.credits.open",values:{credits:s}})," ",r&&(0,u.__)("ava.caprate.subscription.accordion.status.paused")]}),(0,t.jsx)("div",{children:(0,u.__)({id:v?"ava.caprate.subscription.accordion.cancelled.end.date":"ava.caprate.subscription.accordion.credits.refresh.next",values:{date:f}})}),(0,t.jsx)("br",{}),(0,t.jsx)(h.Button,{className:"btn btn-primary btn-lg btn-add-to-basket",onClick:e,disabled:m,children:(0,u.__)({id:"ava.caprate.subscription.accordion.btn.buy.credit",values:{credits:i}})})]}):(0,t.jsxs)("div",{className:"caprate-subscription-cta-block",children:[(0,t.jsxs)("div",{children:[(0,u.__)({id:"ava.caprate.subscription.accordion.credits.insufficient",values:{credits:s}})," ",r&&(0,u.__)("ava.caprate.subscription.accordion.status.paused")," ",(0,u.__)({id:v?"ava.caprate.subscription.accordion.cancelled.end.date":"ava.caprate.subscription.accordion.credits.refresh.next",values:{date:f}})]}),(0,t.jsxs)("div",{children:[(0,u.__)({id:"ava.caprate.subscription.accordion.credits.needed",values:{credits:i}})," ",!r&&(0,u.__)("ava.caprate.subscription.accordion.credits.buy.without")]}),!r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e5,{priceData:{price:n},className:"item-price-in-accordion"}),(0,t.jsx)(h.Button,{className:"btn btn-primary btn-lg btn-add-to-basket",label:"ava.caprate.subscription.accordion.btn.buy.add.credit",onClick:e,disabled:m})]})]}):(0,t.jsxs)("div",{className:"caprate-subscription-cta-block",children:[(0,t.jsx)(h.Button,{className:"btn btn-primary btn-lg btn-add-to-basket",label:c?"ava.caprate.subscription.accordion.cta.previously.subscribed":"ava.caprate.subscription.accordion.cta",onClick:e}),(0,t.jsxs)("ul",{className:"caprate-subscription-benefit-block",children:[(0,t.jsx)("li",{className:"caprate-subscription-benefit",children:(0,t.jsx)("p",{children:(0,u.__)({id:c?"ava.caprate.subscription.accordion.benefit.1.previously.subscribed":"ava.caprate.subscription.accordion.benefit.1",values:{price:d}})})}),(0,t.jsx)("li",{className:"caprate-subscription-benefit",children:(0,t.jsx)("p",{children:(0,u.__)("ava.caprate.subscription.accordion.benefit.2")})}),(0,t.jsx)("li",{className:"caprate-subscription-benefit",children:(0,t.jsx)("p",{children:(0,u.__)("ava.caprate.subscription.accordion.benefit.3")})})]})]})};var e6=e.i(770648),e7=e.i(160399),e8=e.i(418696),e9=e.i(526624);function te(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ta(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function tr(e){ta(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===tt(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"u">
1typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}let ti=(0,i.forwardRef)((e,r)=>{let i,s=(0,a.c)(4),{value:n,onClick:l}=e;return s[0]!==l||s[1]!==r||s[2]!==n?(i=(0,t.jsx)("div",{ref:r,onClick:l,children:n}),s[0]=l,s[1]=r,s[2]=n,s[3]=i):i=s[3],i}),ts=e=>{let r,i,s,n=(0,a.c)(6),{label:l,value:o,onChange:c}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(r=[{start:function(e,t){return ta(2,arguments),function(e,t){ta(2,arguments);var a=tr(e),r=te(t);return isNaN(r)?new Date(NaN):(r&&a.setDate(a.getDate()+r),a)}(e,-te(t))}(new Date,1),end:function(e,t){ta(2,arguments);var a=tr(e),r=te(t);if(isNaN(r))return new Date(NaN);if(!r)return a;var i=a.getDate(),s=new Date(a.getTime());return(s.setMonth(a.getMonth()+r+1,0),i>=s.getDate())?s:(a.setFullYear(s.getFullYear(),s.getMonth(),i),a)}(new Date,6)}],i=(0,t.jsx)(ti,{}),n[0]=r,n[1]=i):(r=n[0],i=n[1]),n[2]!==l||n[3]!==c||n[4]!==o?(s=(0,t.jsx)("div",{className:"form-control",children:(0,t.jsx)(e9.CalendarDatePicker,{label:l,value:o,includeDateIntervals:r,customInput:i,onChange:c})}),n[2]=l,n[3]=c,n[4]=o,n[5]=s):s=n[5],s};var tn=e.i(306200),tl=e.i(134507);(0,e7.registerLocale)("de",e6.default);let to=()=>{let e,r,s,n,l,d,p,v,f,b,w,x,g,j,y=(0,a.c)(26),_=(0,e8.useProduct)(),S=(0,R.useForm)(),k=(0,c.useAppSelector)(o.MainSelectors.selectMediaBaseUrl),N=(0,tl.useUsercentricsServiceApproved)("Prudsys");y[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Date,y[0]=e):e=y[0];let[C,I]=(0,i.useState)(e);y[1]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{I(e)},y[1]=r):r=y[1];let T=r;y[2]!==C||y[3]!==S||y[4]!==k||y[5]!==_||y[6]!==N?(s=async()=>{if(!_)return;let{from:e,receiverEmail:t,to:a,message:r}=S.getValues(),i={articleId:_.id,deliveryDate:C,from:e,message:r,receiverEmail:t,to:a},s=(0,eG.createCartItemFromProduct)(_);await tn.BasketModals.addDownloadGiftToCart(i,s,k,N)},y[2]=C,y[3]=S,y[4]=k,y[5]=_,y[6]=N,y[7]=s):s=y[7];let A=s,{Form:P,Input:L,TextArea:B}=h.ReactHookForm;return y[8]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m.TRACK_ID)("2022-05-02 08:26:16"),y[8]=n):n=y[8],y[9]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{className:"col col-xs-12 col-sm-6 col-sm-push-6 intro",children:function(){return(0,t.jsxs)("div",{className:"jumbotron icon-gift-color",children:[(0,t.jsx)("h4",{children:(0,u.__)("ava.makeGift.form.intro.headline")}),(0,t.jsx)("p",{children:(0,u.__)("ava.makeGift.form.intro.text")})]})}()}),y[9]=l):l=y[9],y[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(L,{type:"text",name:"to",label:"ava.makeGift.form.to",required:(0,u.__string)("ava.makeGift.form.error.to")}),y[10]=d):d=y[10],y[11]!==C?(p=(0,t.jsx)(ts,{label:"ava.makeGift.form.deliveryDate",value:C,onChange:T}),y[11]=C,y[12]=p):p=y[12],y[13]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(L,{type:"email",name:"receiverEmail",label:"ava.makeGift.form.receiverEmail",required:(0,u.__string)("ava.makeGift.form.error.receiverEmail")}),y[13]=v):v=y[13],y[14]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(L,{type:"text",name:"from",label:"ava.makeGift.form.from",required:(0,u.__string)("ava.makeGift.form.error.from")}),y[14]=f):f=y[14],y[15]!==p?(b=(0,t.jsxs)("div",{className:"row",children:[l,(0,t.jsxs)("div",{className:"col col-xs-12 col-sm-6 col-sm-pull-6",children:[d,p,v,f]})]}),y[15]=p,y[16]=b):b=y[16],y[17]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("div",{className:"col col-xs-12",children:(0,t.jsx)(B,{name:"message",label:"ava.makeGift.form.message",maxLength:{value:500,message:"ava.makeGift.form.error.message"},validationMode:"onChange"})})}),x=(0,t.jsx)(h.RequiredInfo,{}),y[17]=w,y[18]=x):(w=y[17],x=y[18]),y[19]!==S.formState.isSubmitting?(g=(0,t.jsx)(h.FormButtons,{submitLabel:"button.addToCart",submitClassName:"icon-cart-white",onAbort:tc,loading:S.formState.isSubmitting}),y[19]=S.formState.isSubmitting,y[20]=g):g=y[20],y[21]!==S||y[22]!==A||y[23]!==g||y[24]!==b?(j=(0,t.jsx)("div",{className:"make-gift",children:(0,t.jsxs)(P,{trackId:n,onSubmit:A,...S,children:[b,w,x,g]})}),y[21]=S,y[22]=A,y[23]=g,y[24]=b,y[25]=j):j=y[25],j};function tc(){h.Modal.close()}let td=e=>{let r,i,s,n,l,o=(0,a.c)(10),{product:c,isPrimaryBtn:d}=e;return c?.id&&c.availableAsDownloadGift&&c.productPrice&&c.productPrice.price?(o[0]!==d?(r=p._.classNames("btn",d?"btn-primary btn-lg":"btn-default btn-sm"),o[0]=d,o[1]=r):r=o[1],o[2]!==d?(i=p._.classNames("icon",d?"icon-gift-white":"icon-gift"),o[2]=d,o[3]=i):i=o[3],o[4]!==i?(s=(0,t.jsx)("span",{className:i}),o[4]=i,o[5]=s):s=o[5],o[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,u.__)("ava.makeGift.btn"),o[6]=n):n=o[6],o[7]!==r||o[8]!==s?(l=(0,t.jsxs)(h.Button,{className:r,onClick:tu,children:[s," ",n]}),o[7]=r,o[8]=s,o[9]=l):l=o[9],l):null};
1function tu(){h.Modal.open((0,t.jsx)(to,{}),"ava.makeGift.modal.title",h.ModalType.DEFAULT,h.OptionalModalSize.WIDE)}var tm=e.i(273056),th=e.i(388565),tp=e.i(596924);let tv=e=>{let r,s,n=(0,a.c)(6),{authors:l}=e;if(n[0]!==l){let e;n[2]!==l.length?(e=(e,a)=>(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)(h.A,{trackId:(0,m.TRACK_ID)("2022-02-14 13:03:25"),className:"author",href:g.AppRoutes.getAdvancedAuthorSearchPath(encodeURIComponent(e)),children:e}),a<l.length-1&&", "]},a),n[2]=l.length,n[3]=e):e=n[3],r=l.map(e),n[0]=l,n[1]=r}else r=n[1];return n[4]!==r?(s=(0,t.jsx)("div",{className:"author-list text-truncate",children:r}),n[4]=r,n[5]=s):s=n[5],s};var tf=e.i(418914),tb=e.i(952598),tw=e.i(552507);let tx="series-recommendation-slider",tg=({productId:e,seriesData:a,loadItemsCount:r=25})=>{let{series:s,error:n}=a,l=s?s.items.filter(t=>!!t&&t.articleId!==Number(e)):[],d=(0,c.useAppSelector)(o.MainSelectors.selectMediaBaseUrl),m=(0,tl.useUsercentricsServiceApproved)("Prudsys"),{data:h,size:p,setSize:v,error:f}=(0,tb.default)((t,a)=>{let i=a?a.offset+a.currentResults:0;return`product/series/${e}?offset=${i}&maxResults=${r}`},S.fetcherWithoutAuthRetry,{revalidateFirstPage:!1}),b=async()=>{v(p+1)},{products:x,totalResults:g}=(()=>{try{if(!h)return{products:l,totalResults:s?.totalResults??0};let t=[...h.flatMap(e=>e.items)].filter(t=>!!t&&t.articleId!==Number(e));return{products:t,totalResults:t.length}}catch(e){return{products:l,totalResults:s?.totalResults??0}}})(),j=x.length<g;(0,i.useEffect)(()=>{(n||f)&&(0,w.handleError)(n||f,"could not fetch series","2022-05-13 14:54:16")},[n,f]);let y=e=>{tn.BasketModals.addToBasket(e,d,{source:"AVA"},m)};if(!x?.length)return null;let _=x.map(e=>(0,t.jsx)(tw.RecommendationSliderItem,{addToBasketCallback:y,recommendationItem:e,tracking:{trackingToken:e.trackingToken,noTracking:!0},mediaBaseUrl:d,prefetch:!1},e.articleId));return(0,t.jsx)(tf.RecommendationSlider,{id:tx,headline:(0,u.__)("ava.recommendation.moreOfRow.title"),items:_,loadMore:j,onLoadMore:b,loadItemsCount:x.length})};var tj=e.i(808751),ty=e.i(858600);let t_=e=>{let r,i,s,n=(0,a.c)(9),{disruptiveBadges:l,rebateCategory:o,hasSeriesRecommendation:c}=e;return n[0]!==l||n[1]!==o?(r=l?.DISCOUNT&&(0,t.jsx)(tj.DiscountBadge,{rebateCategory:o,calculatedDiscount:l.DISCOUNT}),n[0]=l,n[1]=o,n[2]=r):r=n[2],n[3]!==l||n[4]!==c?(i=l?.VOLUME&&(0,t.jsx)(ty.Badge,{label:l.VOLUME,href:c?"#"+tx:void 0}),n[3]=l,n[4]=c,n[5]=i):i=n[5],n[6]!==r||n[7]!==i?(s=(0,t.jsxs)("div",{className:"badges",children:[r,i]}),n[6]=r,n[7]=i,n[8]=s):s=n[8],s},tS=()=>{let e,r,i=(0,a.c)(2);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,m.TRACK_ID)("2022-06-07 09:27:10"),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("div",{className:"subscription-teaser icon-tolinoSelect-twoLines",children:[(0,t.jsx)("h3",{children:(0,t.jsx)(h.A,{className:"icon-arrow-right-black",trackId:e,href:g.AppRoutes.ebookSubscription,children:(0,u.__)("ava.subscriptionTeaser.title")})}),(0,t.jsx)("p",{children:(0,u.__)("ava.subscriptionTeaser.info")})]}),i[1]=r):r=i[1],r};var tk=e.i(737354),tN=e.i(379963),tR=e.i(52667);let tC=e=>{let r,i,n,l=(0,a.c)(7),{productId:o,info:c}=e,{push:d}=(0,s.useRouter)();l[0]!==c||l[1]!==d||l[2]!==o?(r=async()=>{await th.Cart.quickBuy(o,c),d(tR.ArticleExternalRoutes.CHECKOUT)},l[0]=c,l[1]=d,l[2]=o,l[3]=r):r=l[3];let u=r;return l[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("span",{className:"icon icon-download-dark"}),l[4]=i):i=l[4],l[5]!==u?(n=(0,t.jsx)(h.Button,{className:"btn btn-default btn-sm",label:"article.ock.button",onClick:u,children:i}),l[5]=u,l[6]=n):n=l[6],n},tI=e=>{let r,i,s,n,l,d,u,m=(0,a.c)(20),{product:h,hasBoughtDownload:p}=e,v=(0,c.useAppSelector)(o.MainSelectors.selectMediaBaseUrl);m[0]!==p||m[1]!==h.id||m[2]!==h.immediatelyPurchasable?(r=()=>{if(h.immediatelyPurchasable||p)return(0,t.jsx)(tC,{productId:h.id,info:{index:0,rating:0,source:"AVA"}})},m[0]=p,m[1]=h.id,m[2]=h.immediatelyPurchasable,m[3]=r):r=m[3];let f=r,b=h.availability.preorder?"button.preorder":"button.addToCart";return m[4]!==h?(i=(0,eG.createCartItemFromProduct)(h),m[4]=h,m[5]=i):i=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(s={index:0,rating:0,source:"AVA"},m[6]=s):s=m[6],m[7]!==v||m[8]!==h.searchArticleId||m[9]!==b||m[10]!==i?(n=(0,t.jsx)(tN.AddToCartButton,{label:b,cartItem:i,searchArticleId:h.searchArticleId,info:s,mediaBaseUrl:v}),m[7]=v,m[8]=h.searchArticleId,m[9]=b,m[10]=i,m[11]=n):n=m[11],m[12]!==f?(l=f(),m[12]=f,m[13]=l):l=m[13],m[14]!==h?(d=(0,t.jsx)(td,{product:h}),m[14]=h,m[15]=d):d=m[15],m[16]!==n||m[17]!==l||m[18]!==d?(u=(0,t.jsxs)("div",{className:"action-buttons",children:[n,l,d]}),m[16]=n,m[17]=l,m[18]=d,m[19]=u):u=m[19],u},tT=({isDownloadAllowed:e})=>{let a=(0,c.useAppSelector)(x.ProductSelectors.selectProductId),[r,s]=(0,i.useState)(!1),[n,l]=(0,i.useState)(!1),o=async()=>
1{if(!a)return;s(!0),l(!1);let e=await (0,w.poll)(async()=>{try{let e=await (0,S.wsapiFetcher)(`product/download/${a}`);if(!e?.downloadURL)return"";return e.downloadURL}catch(e){}},4);(s(!1),e)?h.ClientNavigation.open(e):l(!0)};return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Button,{className:"btn btn-primary btn-sm btn-download",label:"ava.download.btn",loading:r,onClick:o}),n&&(0,t.jsx)("span",{className:"message active",children:(0,u.__)("digital-articles.notReady")})]}):null},tA=e=>{let r,s,n=(0,a.c)(6),{product:l}=e,o=(0,c.useAppSelector)(x.ProductSelectors.selectProductId),[d,u]=(0,i.useState)(!1);n[0]!==o?(r=async()=>{u(!0);let e=await (0,S.wsapiFetcher)(`product/download/${o}`);if(await p._.sleep(500),u(!1),e?.readerURL)return void h.ClientNavigation.open(e?.readerURL,"_blank")},n[0]=o,n[1]=r):r=n[1];let m=r,v=27===l.productType.id?"ava.listenNow.btn":"ava.readNow.btn";return n[2]!==m||n[3]!==d||n[4]!==v?(s=(0,t.jsx)(h.Button,{className:"btn btn-primary btn-lg btn-read",label:v,loading:d,onClick:m}),n[2]=m,n[3]=d,n[4]=v,n[5]=s):s=n[5],s},tP=e=>{let r,i,s,n,l,o,c,d,p=(0,a.c)(15),{product:v,isDownloadAllowed:f}=e;return p[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("p",{children:(0,u.__)("ava.isBought.info")}),p[0]=r):r=p[0],p[1]!==v?(i=(0,t.jsx)(tA,{product:v}),p[1]=v,p[2]=i):i=p[2],p[3]!==f?(s=(0,t.jsx)(tT,{isDownloadAllowed:f}),p[3]=f,p[4]=s):s=p[4],p[5]!==v?(n=(0,t.jsx)(td,{product:v}),p[5]=v,p[6]=n):n=p[6],p[7]!==i||p[8]!==s||p[9]!==n?(l=(0,t.jsxs)("div",{className:"action-buttons",children:[i,s,n]}),p[7]=i,p[8]=s,p[9]=n,p[10]=l):l=p[10],p[11]===Symbol.for("react.memo_cache_sentinel")?(o=(0,m.TRACK_ID)("2022-04-21 12:56:49"),p[11]=o):o=p[11],p[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("p",{className:"delivery-done-details",children:(0,u.__)({id:"ava.isBought.download.info",values:{customerLink:(0,t.jsx)(h.A,{trackId:o,href:g.PrivateRoutes.accountOverview,children:(0,u.__)("ava.isBought.download.info.customerLink")})}})}),p[12]=c):c=p[12],p[13]!==l?(d=(0,t.jsxs)(t.Fragment,{children:[r,l,c]}),p[13]=l,p[14]=d):d=p[14],d};var tL=e.i(274931),tB=e.i(94867),tD=e.i(701817),tE=e.i(668713);let tM=e=>{let r,i,s=(0,a.c)(12),{productId:n,productType:l,items:o}=e,c=(0,tE.useOpenProductTypes)(o);if(s[0]!==o||s[1]!==c||s[2]!==n||s[3]!==l?.id){let e,a,i=(0,w.getUniqueProductTypeIds)(o),d=(0,eG.groupAlternativeProductTypesByTypeId)(o);s[5]!==c||s[6]!==n?(e=e=>()=>c(n,e),s[5]=c,s[6]=n,s[7]=e):e=s[7];let u=e;s[8]!==u?(a=(e,a)=>(0,t.jsxs)(h.Button,{onClick:u(e.productType.id),children:[(0,t.jsx)("span",{className:"type-name",children:e.productType.displayName}),(0,w.isValidPrice)(a)&&(0,t.jsxs)("span",{className:"price",children:["ab ",e3.Money.getFormatted(a)]})]}),s[8]=u,s[9]=a):a=s[9];let p=a;r=i.map(e=>{let a=d[e],r=a[0],i=1===a.length,s=r.productType.id===l?.id,n=(0,eG.getSortedPrices)(a);return i&&s?null:i?function(e){return(0,t.jsxs)(h.A,{trackId:(0,m.TRACK_ID)("2021-03-01 12:48:47"),href:e.url,children:[(0,t.jsx)("span",{className:"type-name",children:e.productType.displayName}),(0,w.isValidPrice)(e.price)&&(0,t.jsx)("span",{className:"price",children:e3.Money.getFormatted(e.price)})]})}(r):p(r,n[0])}).filter(Boolean),s[0]=o,s[1]=c,s[2]=n,s[3]=l?.id,s[4]=r}else r=s[4];let d=r;return s[10]!==d?(i=(0,t.jsx)(ez.ESlider,{content:d,className:"alternative-product-types"}),s[10]=d,s[11]=i):i=s[11],i},tO=e=>{let r,i,s,n=(0,a.c)(9),{productId:l,productType:o,alternativeProductTypes:c}=e;return n[0]!==o?(r=(0,t.jsx)(tB.ProductType,{type:o}),n[0]=o,n[1]=r):r=n[1],n[2]!==c||n[3]!==l||n[4]!==o?(i=(0,tD.hasAdditionalAlternativeProductTypes)(c)&&(0,t.jsx)(tM,{productId:l,productType:o,items:c}),n[2]=c,n[3]=l,n[4]=o,n[5]=i):i=n[5],n[6]!==r||n[7]!==i?(s=(0,t.jsxs)("div",{className:"product-type-wrapper wide",children:[r,i]}),n[6]=r,n[7]=i,n[8]=s):s=n[8],s},tV=e=>{let r,i=(0,a.c)(4),{productId:s,productType:n,alternativeProductTypes:l}=e;return i[0]!==l||i[1]!==s||i[2]!==n?(r=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tL.ProductTypesNarrow,{productId:s,productType:n,alternativeProductTypes:l}),(0,t.jsx)(tO,{productId:s,productType:n,alternativeProductTypes:l})]}),i[0]=l,i[1]=s,i[2]=n,i[3]=r):r=i[3],r};var tF=e.i(894690),tH=e.i(657688);let tU=e=>{let r,i,s,n,l,o,c,d,m=(0,a.c)(13),{value:h,alignRight:v}=e;m[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("p",{className:"h4",children:(0,u.__)("ava.kubiCard.title")}),m[0]=r):r=m[0],m[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("figure",{className:"float-right",children:(0,t.jsx)(tH.default,{src:tF.default,alt:(0,u.__string)("ava.kubiCard.title")})}),m[1]=i):i=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)(t.Fragment,{children:[r,i,(0,t.jsx)("p",{children:(0,u.__)({id:"ava.kubiCard.description",values:{br:(0,t.jsx)("br",{})}})})]}),m[2]=s):s=m[2];let f=s;return m[3]!==v?(n=p._.classNames(v&&"right"),m[3]=v,m[4]=n):n=m[4],m[5]===Symbol.for("react.memo_cache_sentinel")?(l=p._.classNames("bonuspoints btn btn-simple icon-loyaltyPoint-small"),m[5]=l):l=m[5],m[6]!==h?(o=(0,u.__)({id:"ava.bonusPoints.label",values:{num:h}}),m[6]=h,m[7]=o):o=m[7],m[8]!==o?(c=(0,t.jsx)("div",{className:l,children:o}),m[8]=o,m[9]=c):c=m[9],m[10]!==n||m[11]!==c?(d=(0,t.jsx)(G.InfoBox,{
1className:"new-info-box",node:f,messageClassName:n,children:c}),m[10]=n,m[11]=c,m[12]=d):d=m[12],d},tW=e=>{let r,i,s,n,l,o,c,d=(0,a.c)(14),{reviewAverage:u,numberOfReviews:m}=e;d[0]!==u?(r=u?(0,h.calculateRatingFromPercent)(u):0,d[0]=u,d[1]=r):r=d[1];let p=r;return d[2]!==p?(i=(0,t.jsx)(h.ReviewStars,{rating:p}),d[2]=p,d[3]=i):i=d[3],d[4]!==m?(s=v(m),d[4]=m,d[5]=s):s=d[5],d[6]!==s?(n=(0,t.jsx)("span",{className:"btn btn-simple",children:s}),d[6]=s,d[7]=n):n=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("span",{className:"footnote-ref",children:"15"}),d[8]=l):l=d[8],d[9]!==n?(o=(0,t.jsxs)("div",{className:"review-count",onClick:t$,children:["(",n,")",l]}),d[9]=n,d[10]=o):o=d[10],d[11]!==i||d[12]!==o?(c=(0,t.jsxs)("div",{className:"review-summary",children:[i,o]}),d[11]=i,d[12]=o,d[13]=c):c=d[13],c};function t$(){let e=document.querySelector(".bookshop-recommendations"),t=document.querySelector(".reviews");return e?p.ScrollUtil.smoothScrollIntoView(e):t?p.ScrollUtil.smoothScrollIntoView(t):void 0}let tK=e=>{let r,i,s,n=(0,a.c)(10),{product:l,suppressLoyaltyPoints:o,overrideLoyaltyPoints:c}=e,d=!o&&void 0!==l.hugLoyaltyPoints&&l.hugLoyaltyPoints>0;return n[0]!==l.numberOfReviews||n[1]!==l.reviewAverage?(r=(0,t.jsx)(tW,{reviewAverage:l.reviewAverage,numberOfReviews:l.numberOfReviews}),n[0]=l.numberOfReviews,n[1]=l.reviewAverage,n[2]=r):r=n[2],n[3]!==d||n[4]!==c||n[5]!==l.hugLoyaltyPoints?(i=d&&(0,t.jsx)(tU,{value:c||l.hugLoyaltyPoints,alignRight:!0}),n[3]=d,n[4]=c,n[5]=l.hugLoyaltyPoints,n[6]=i):i=n[6],n[7]!==r||n[8]!==i?(s=(0,t.jsxs)("div",{className:"review-bonuspoint-wrapper",children:[r,i]}),n[7]=r,n[8]=i,n[9]=s):s=n[9],s},tG=p._.uuid(),tz=p._.uuid(),tq=e=>{let r,n,l,o,c,d,m,p,v,f,b,x,g,j,_,k,N,R,C,I=(0,a.c)(70),{product:T,hasSeriesRecommendation:A}=e,{disruptiveBadges:P,productPrice:B,authors:D,title:M,subtitle:O,alternativeProducts:V,productType:F,topteaser:H,subscription:U,id:W}=T,$=(0,s.useRouter)(),K=U?.category==="HOERBUCH_DL",G=U?.price?e3.Money.getFormatted(e3.Money.parse(U.price)):void 0,z=(0,y.useSession)(tJ),q=(0,y.useSession)(tY),{data:J,isLoading:Y}=(0,E.default)(z?`product/customer/${W}`:"",S.wsapiFetcher);I[0]!==J?(r=J??{},I[0]=J,I[1]=r):r=I[1];let{hasBoughtDownload:Z,isDownloadAllowed:Q,subscription:X}=r;I[2]!==X?(n=X??{},I[2]=X,I[3]=n):n=I[3];let{articlePriceInCredits:ee,currentCredits:et,articlePriceReduced:ea,subscriptionState:er,nextPaymentDate:ei,bonusPoints:es}=n,en=U?.articleId,el=K&&"SUBSCRIPTION_PAUSED"===er,eo=K&&"PREVIOUSLY_SUBSCRIBED"===er,ec=K&&"CANCELLED"===er,ed=eo?G:"0,00 â¬",eu=K&&("SUBSCRIBED"===er||el||ec),em=!!ee&&!!et&&ee<=et,eh=eu&&!el&&!em&&!Z;if(I[4]!==T){let e=L.Globals.window()?.location.href??"";l=(0,w.productToAlternativeProduct)(T,e),I[4]=T,I[5]=l}else l=I[5];let ep=l;I[6]!==V||I[7]!==ep?(o=[ep,...V],I[6]=V,I[7]=ep,I[8]=o):o=I[8];let ev=o,[ef,eb]=(0,i.useState)(K),[ew,ex]=(0,i.useState)();I[9]===Symbol.for("react.memo_cache_sentinel")?(c=[],I[9]=c):c=I[9];let[eg,ej]=(0,i.useState)(c);I[10]!==eu||I[11]!==W||I[12]!==$||I[13]!==en||I[14]!==em?(d=async()=>{if(en)try{if(eu){if(!em)return await th.Cart.add(W),$.push(tm.CheckoutRoutes.cart);await th.Cart.quickBuy(W,void 0,!0)}else await th.Cart.quickBuyMultiple([W,en]);$.push(tm.PrivateCheckoutRoutes.lastCheck)}catch{h.Toaster.open("base.error.general")}},I[10]=eu,I[11]=W,I[12]=$,I[13]=en,I[14]=em,I[15]=d):d=I[15];let ey=d;I[16]!==eg||I[17]!==eu||I[18]!==K||I[19]!==es||I[20]!==el||I[21]!==em?(m=()=>{ex(void 0);let[e]=eg;K&&e===tG?eu&&!em&&es&&!el?(ex(es),eb(!1)):eb(!0):eb(!1)},I[16]=eg,I[17]=eu,I[18]=K,I[19]=es,I[20]=el,I[21]=em,I[22]=m):m=I[22],I[23]!==eg||I[24]!==eu||I[25]!==K||I[26]!==es||I[27]!==em?(p=[eg,K,em,es,eu],I[23]=eg,I[24]=eu,I[25]=K,I[26]=es,I[27]=em,I[28]=p):p=I[28],(0,i.useEffect)(m,p),I[29]!==Z||I[30]!==Q||I[31]!==K||I[32]!==eh||I[33]!==T||I[34]!==B?(v=()=>(0,t.jsxs)(t.Fragment,{children:[B&&(0,t.jsx)(e5,{priceData:B,className:K?"item-price-in-accordion":""}),eh?(0,t.jsx)(td,{product:T,isPrimaryBtn:!0}):Z?(0,t.jsx)(tP,{product:T,isDownloadAllowed:!!Q}):(0,t.jsx)(tI,{product:T,hasBoughtDownload:Z})]}),I[29]=Z,I[30]=Q,I[31]=K,I[32]=eh,I[33]=T,I[34]=B,I[35]=v):v=I[35];let e_=v,eS=tZ;I[36]!==P||I[37]!==A||I[38]!==B?.rebateCategory?(f=Object.values(P).some(tQ)&&(0,t.jsx)(t_,{disruptiveBadges:P,rebateCategory:B?.rebateCategory,hasSeriesRecommendation:A}),I[36]=P,I[37]=A,I[38]=B?.rebateCategory,I[39]=f):f=I[39],I[40]!==D?(b=D&&(0,t.jsx)(tv,{authors:D}),I[40]=D,I[41]=b):b=I[41],I[42]!==M?(x=M&&(0,t.jsx)("h1",{className:"title",children:M}),I[42]=M,I[43]=x):x=I[43],I[44]!==O?(g=O&&(0,t.jsx)("h2",{className:"subtitle line-clamp-l2",children:O}),I[44]=O,I[45]=g):g=I[45],I[46]!==b||I[47]!==x||I[48]!==g?(j=(0,t.jsxs)("div",{className:"primary-item-info",children:[b,x,g]}),I[46]=b,I[47]=x,I[48]=g,I[49]=j):j=I[49],I[50]!==ew||I[51]!==T||I[52]!==ef?(_=(0,t.jsx)(tK,{product:T,suppressLoyaltyPoints:ef,overrideLoyaltyPoints:ew}
1),I[50]=ew,I[51]=T,I[52]=ef,I[53]=_):_=I[53],I[54]!==ev||I[55]!==T.id||I[56]!==F?(k=(0,t.jsx)(tV,{productId:T.id,productType:F,alternativeProductTypes:ev}),I[54]=ev,I[55]=T.id,I[56]=F,I[57]=k):k=I[57],I[58]!==H?(N=H&&(0,t.jsx)(tk.TopTeaser,{data:H}),I[58]=H,I[59]=N):N=I[59],I[60]!==U?(R=function(e){return e?.category==="TOLINO"}(U)&&(0,t.jsx)(tS,{}),I[60]=U,I[61]=R):R=I[61];let ek=K?q||Y?(0,t.jsxs)("div",{className:"accordion",children:[(0,t.jsx)(tp.default,{className:"acc-subscription-content-skeleton",width:"100%",style:{marginBottom:"0.9rem"}}),(0,t.jsx)(tp.default,{height:"3.25rem",width:"100%"})]}):(0,t.jsx)(h.Accordion,{itemsClassName:"acc-subscription-item",items:[eS(eu?(0,u.__string)("ava.caprate.subscription.accordion.headline.subscribed"):(0,u.__string)({id:"ava.caprate.subscription.accordion.headline",values:{subscriptionPrice:ed}}),(0,t.jsx)(e4,{addToBasket:ey,isSubscribed:eu,subscriptionIsPaused:el,articlePriceInCredits:ee,articlePriceReducedAmount:ea?.amount,sufficientCreditAvailable:em,previouslySubscribed:eo,fullSubscriptionPrice:G,currentCredits:et,nextPaymentDate:ei,hasBoughtDownload:Z,subscriptionIsCancelled:ec}),tG,!Z),eS(eh?(0,u.__string)("ava.caprate.subscription.accordion.headline.subscribed.without"):(0,u.__string)("ava.caprate.subscription.accordion.headline.without"),e_(),tz,!!Z,"dynamic")],onlyOneOpen:!0,atLeastOneOpen:!0,returnOpenEntries:ej}):e_();return I[62]!==f||I[63]!==j||I[64]!==_||I[65]!==k||I[66]!==N||I[67]!==R||I[68]!==ek?(C=(0,t.jsxs)("div",{className:"buying-details",children:[f,j,_,k,N,R,ek]}),I[62]=f,I[63]=j,I[64]=_,I[65]=k,I[66]=N,I[67]=R,I[68]=ek,I[69]=C):C=I[69],C};function tJ(e){return"authenticated"===e.status}function tY(e){return"unknown"===e.status}function tZ(e,a,r,i,s){let n=void 0===s?"":s;return{id:r,header:(0,t.jsx)("span",{"data-nosnippet":!0,children:e}),body:a,headerClassName:"acc-subscription-content",bodyClassName:n?"acc-subscription-content-"+n:"acc-subscription-content",isInitiallyOpen:i}}function tQ(e){return!!e}let tX=e=>{let r,i,s,n,l,o,c,d,v,f=(0,a.c)(25),{review:b}=e;if(!b)return null;f[0]!==b.customerId?(r=b.customerId?g.AppRoutes.allCustomerReviews.replace(":customerId",b.customerId):"",f[0]=b.customerId,f[1]=r):r=f[1];let w=r,x=b.ownReview?g.PrivateRoutes.review:w;return f[2]!==b.lovelyBooks?(i=b.lovelyBooks&&(0,t.jsx)("span",{className:"is-lb-review",children:(0,u.__)("ava.customerReviews.lbReview")}),f[2]=b.lovelyBooks,f[3]=i):i=f[3],f[4]!==b.author||f[5]!==b.customerId||f[6]!==x?(s=b.customerId?(0,t.jsx)(h.A,{className:"btn btn-simple",href:x,trackId:(0,m.TRACK_ID)("2022-07-11 10:44:49"),children:b.author}):b.author,f[4]=b.author,f[5]=b.customerId,f[6]=x,f[7]=s):s=f[7],f[8]!==s?(n=(0,u.__)({id:"ava.customerReviews.author",values:{name:s}}),f[8]=s,f[9]=n):n=f[9],f[10]!==n?(l=(0,t.jsx)("span",{className:"review-author",children:n}),f[10]=n,f[11]=l):l=f[11],f[12]!==b.creationDate?(o=b.creationDate&&(0,t.jsxs)("span",{className:"creation-date",children:["am"," ",p.DateUtil.toGermanDateString(new Date(b.creationDate),{showYear:!0,omitWeekday:!0,yearFormat:"numeric"})]}),f[12]=b.creationDate,f[13]=o):o=f[13],f[14]!==b.rating||f[15]!==b.title?(c=b.rating&&(0,t.jsxs)("div",{className:"title text-limit-width",children:[(0,t.jsx)(h.ReviewStars,{rating:b.rating}),b.title&&(0,t.jsx)("h3",{className:"h2",children:b.title})]}),f[14]=b.rating,f[15]=b.title,f[16]=c):c=f[16],f[17]!==b.text?(d=(0,t.jsx)(e0.ReadMoreTextBlockSSR,{className:"text-limit-width",children:b.text}),f[17]=b.text,f[18]=d):d=f[18],f[19]!==i||f[20]!==l||f[21]!==o||f[22]!==c||f[23]!==d?(v=(0,t.jsxs)("div",{className:"review-item",children:[i,l," ",o,c,d]}),f[19]=i,f[20]=l,f[21]=o,f[22]=c,f[23]=d,f[24]=v):v=f[24],v},t0=e=>{let r,s,n,l,o,c,d,m,p,v=(0,a.c)(24),{productId:f,productTitle:b,reviewData:x}=e,{reviewOverview:g,initialCustomerReviews:j}=x;v[0]!==f?(r=(e,t)=>{let a=t?.currentResults?5:2;return`product/review/${f}?offset=${t?t.offset+t.currentResults:0}&maxResults=${a}`},v[0]=f,v[1]=r):r=v[1];let y=r;v[2]===Symbol.for("react.memo_cache_sentinel")?(s={revalidateFirstPage:!1},v[2]=s):s=v[2];let{data:_,size:k,setSize:N,error:R}=(0,tb.default)(y,S.fetcherWithoutAuthRetry,s);v[3]!==_||v[4]!==j?.items||v[5]!==j?.totalResults?(n=()=>{try{return{reviews:_.flatMap(t1),totalResults:_[0].totalResults}}catch(e){return{reviews:j?.items??[],totalResults:j?.totalResults??0}}},v[3]=_,v[4]=j?.items,v[5]=j?.totalResults,v[6]=n):n=v[6];let{reviews:C,totalResults:I}=n(),T=C.length<I;v[7]!==R?(l=()=>{R&&404!==R.status&&(0,w.handleError)(R,`Could not load customer reviews, because http ${R.status}`,"2022-05-11 09:42:56")},o=[R],v[7]=R,v[8]=l,v[9]=o):(l=v[8],o=v[9]),(0,i.useEffect)(l,o),v[10]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("h2",{children:(0,u.__)("ava.customerReviews.title")}),v[10]=c):c=v[10],v[11]!==b||v[12]!==g||v[13]!==I?(d=(0,t.jsx)(D,{productTitle:b,reviewOverviewData:g,reviewsLength:I}),v[11]=b,v[12]=g,v[13]=I,v[14]=d):d=v[14];let A=C.map(t2);return v[15]!==N||v[16]!==T||v[17]!==k?(m=T&&(0,t.jsx)(h.Button,{className:"btn btn-default btn-sm",onClick:()=>N(k+1),children:(0,u.__)("ava.customerReviews.showMore")}),v[15]=N,v[16]=T,v[17]=k,v[18]=m):m=v[18],v[19]!==A||v[20]!==m||v[21]!==c||v[22]!==d?(p=(0,t.jsxs)("div",{className:"reviews",children:[c,d,A,m]}),v[19]=A,v[20]=m,v[21]=c,v[22]=d,v[23]=p):p=v[23],p};function t1(e){return e.items}function t2(e,a){return(0,t.jsx)(tX,{review:e},a)}var t3=e.i(479636);let t5=e=>{let r,i,s,n,l,d,m,p,v,f,b,w,x,g,j,y,_=(0,a.c)(39),{data:S,product:k,onSelect:N}=e;_[0]!==S||_[1]!==N?(r=()=>{N(S)},_[0]=S,_[1]=N,_[2]=r):r=_[2];let R=r,C=(0,c.useAppSelector)(o.MainSelectors.selectMediaBaseUrl);_[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>(0,t.jsxs)("div",{className:"pickup",children:[(0,u.__)("ava.branchPickup.promise"),(0,t.jsx)("br",{}),function(e){let a=e?.earliestPickupReadyDate?new Date(e.earliestPickupReadyDate):void 0,r=e?.latestPickupReadyDate?new Date(e.latestPickupReadyDate):void 0,i=(0,t3.getBranchPickupPromise)({earliestPickupReadyDate:a,latestPickupReadyDate:r,nowDate:new Date});return i?(0,t.jsx)("span",{className:"text-highlighting",children:i}):null}(e)]}),_[3]=i):i=_[3];let I=i;return _[4]!==S.name?(s=(0,t.jsx)("span",{className:"text-highlighting",children:S.name}),_[4]=S.name,_[5]=s):s=_[5],_[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("br",{}),_[6]=n):n=_[6],_[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("br",{}),_[7]=l):l=_[7],_[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("br",{}),_[8]=d):d=_[8],_[9]!==S.city||_[10]!==S.houseNumber||_[11]!==S.street||_[12]!==S.zipCode||_[13]!==s?(m=(0,t.jsxs)("div",{className:"branch",children:[s,n,S.street," ",S.houseNumber,l,S.zipCode," ",S.city,d]}
1),_[9]=S.city,_[10]=S.houseNumber,_[11]=S.street,_[12]=S.zipCode,_[13]=s,_[14]=m):m=_[14],_[15]!==S.availabilityCategory?(p=function(e){return"GREEN"===e?(0,t.jsx)("div",{className:"in-stock badge bg-full-stock",children:(0,u.__)("ava.branchPickup.availabilityCategory.green")}):"YELLOW"===e?(0,t.jsx)("div",{className:"in-stock badge bg-low-stock",children:(0,u.__)("ava.branchPickup.availabilityCategory.yellow")}):null}(S.availabilityCategory),_[15]=S.availabilityCategory,_[16]=p):p=_[16],_[17]!==S?(v=function(e){let{openingHours1:a,openingHours2:r,specialOpeningHours:i}=e,s=` 2 <div>${void 0===a?"":a}</div> 3 <div>${void 0===r?"":r}</div> 4 <div>${void 0===i?"":i}</div> 5 `,n=(0,t.jsx)("div",{className:"opening-hours-details",dangerouslySetInnerHTML:{__html:s}});return(0,t.jsx)("div",{className:"additional-details",children:(0,t.jsx)("div",{className:"info-message",children:(0,t.jsx)(G.InfoBox,{className:"new-info-box",node:n,children:(0,t.jsx)(h.Button,{type:"button",className:"btn btn-simple btn-icon-left icon-clock",label:"ava.branchPickup.openingHours"})})})})}(S),_[17]=S,_[18]=v):v=_[18],_[19]!==m||_[20]!==p||_[21]!==v?(f=(0,t.jsxs)("div",{className:"col col-xs-12 col-sm-8",children:[m,p,v]}),_[19]=m,_[20]=p,_[21]=v,_[22]=f):f=_[22],_[23]!==k?(b=(0,eG.createCartItemFromProduct)(k),_[23]=k,_[24]=b):b=_[24],_[25]===Symbol.for("react.memo_cache_sentinel")?(w={index:0,rating:0,source:"AVA"},_[25]=w):w=_[25],_[26]!==C||_[27]!==k.searchArticleId||_[28]!==R||_[29]!==b?(x=(0,t.jsx)(tN.AddToCartButton,{variant:"SMALL",cartItem:b,info:w,searchArticleId:k.searchArticleId,onSuccess:R,mediaBaseUrl:C}),_[26]=C,_[27]=k.searchArticleId,_[28]=R,_[29]=b,_[30]=x):x=_[30],_[31]!==S?(g=I(S),_[31]=S,_[32]=g):g=_[32],_[33]!==x||_[34]!==g?(j=(0,t.jsxs)("div",{className:"col col-xs-12 col-sm-4 align-right",children:[x,g]}),_[33]=x,_[34]=g,_[35]=j):j=_[35],_[36]!==f||_[37]!==j?(y=(0,t.jsxs)("div",{className:"item row",children:[f,j]}),_[36]=f,_[37]=j,_[38]=y):y=_[38],y},t4=[{value:25,label:"25 km"},{value:50,label:"50 km"},{value:100,label:"100 km"},{value:200,label:"200 km"}],t6=({onSuccess:e})=>{let a=(0,e8.useProduct)(),r=(0,R.useForm)({defaultValues:{vicinity:t4[0].value}}),i=async()=>{if(0===Object.keys(a).length)return;let{location:t,vicinity:i}=r.getValues();try{let s=await (0,S.fetcherWithoutAuthRetry)(`product/stockinfo/distance/${a.id}?location=${t}&maxDistance=${i}`);r.setValue("vicinity",s.maxDistance),e?.(s.availabilities),n.GTM.track.find_location((0,l.getCustomer)(),"AVA",t,s.availabilities.length,s.maxDistance)}catch(e){(0,w.handleError)(e,"Could not fetch brach stock info","2022-06-09 15:05:56",!0)}},{Form:s,Input:o,Select:c}=h.ReactHookForm;return(0,t.jsx)("div",{children:(0,t.jsx)(s,{trackId:(0,m.TRACK_ID)("2022-06-08 08:43:09"),onSubmit:i,...r,children:(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("div",{className:"col col-xs-12",children:(0,t.jsx)("div",{className:"form-row",children:(0,t.jsxs)("div",{className:"input-group",children:[(0,t.jsx)(o,{type:"text",name:"location",label:"ava.branchPickup.search.label",required:(0,u.__string)("ava.branchPickup.search.form.error.vicinity")}),(0,t.jsx)(c,{className:"vicinity",name:"vicinity",label:"ava.branchPickup.vicinity.label",options:t4}),(0,t.jsxs)(h.Button,{className:"btn btn-primary btn-icon-left branch-search",loading:r.formState.isSubmitting,children:[(0,t.jsx)("span",{className:"icon icon-search-white"}),(0,u.__)("ava.branchPickup.search.submit")]})]})})})})})})},t7=e=>{let r,s,n,l,o,c,d,m,p,v=(0,a.c)(18),{onSelect:f,onClose:b}=e,w=(0,e8.useProduct)();v[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],v[0]=r):r=v[0];let[x,g]=(0,i.useState)(r),[j,y]=(0,i.useState)(!1);v[1]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{g(e),y(!e.length)},v[1]=s):s=v[1];let _=s;return v[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(t6,{onSuccess:_}),v[2]=n):n=v[2],v[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{className:"message",children:(0,u.__)("ava.branchPickup.withoutOrderPickup")}),v[3]=l):l=v[3],v[4]!==x||v[5]!==f||v[6]!==w?(o=w&&x.map((e,a)=>(0,t.jsx)(t5,{data:e,product:w,onSelect:e=>f(e,a+1)},e.branchId)),v[4]=x,v[5]=f,v[6]=w,v[7]=o):o=v[7],v[8]!==j?(c=j&&(0,t.jsx)("div",{children:(0,u.__)("ava.branchPickup.noBranch")}),v[8]=j,v[9]=c):c=v[9],v[10]!==o||v[11]!==c?(d=(0,t.jsxs)("div",{className:"container-fluid branch-list",children:[o,c]}),v[10]=o,v[11]=c,v[12]=d):d=v[12],v[13]!==b?(m=(0,t.jsx)("div",{className:"buttons",children:(0,t.jsx)(h.Button,{type:"button",className:"btn btn-default cancel",label:"ava.branchPickup.cancel.btn",onClick:b})}),v[13]=b,v[14]=m):m=v[14],v[15]!==d||v[16]!==m?(p=(0,t.jsxs)("div",{className:"branches",children:[n,l,d,m]}),v[15]=d,v[16]=m,v[17]=p):p=v[17],p},t8=e=>
5{let r,s,o,c,d,m,v,f,b,x,g,j,y,_=(0,a.c)(25),{product:k}=e,[N,R]=(0,i.useState)(void 0),[C,I]=(0,i.useState)(!0),[T,A]=(0,i.useState)(!1);_[0]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{R(e),I(!1)},_[0]=r):r=_[0];let P=r,L=k?.id,B=k?.availableForPickup;_[1]!==L||_[2]!==B?(s=L&&B?`product/stockinfo/branch/${L}?branchId=${(0,t3.loadBranchIdFromStorage)()}`:null,_[1]=L,_[2]=B,_[3]=s):s=_[3];let{data:D,error:M}=(0,E.default)(s,S.wsapiFetcher);if(_[4]!==D?(o=()=>{A(!1),P(D)},c=[D],_[4]=D,_[5]=o,_[6]=c):(o=_[5],c=_[6]),(0,i.useEffect)(o,c),_[7]!==M?(d=()=>{if(M){if(M?.status===404)return void P(void 0);if(M?.status>=500){A(!0),P(void 0);return}(0,w.handleError)(M.message,M.status,"2022-06-10 08:47:08")}},m=[M],_[7]=M,_[8]=d,_[9]=m):(d=_[8],m=_[9]),(0,i.useEffect)(d,m),_[10]===Symbol.for("react.memo_cache_sentinel")){let e=async(e,t)=>{(0,t3.saveBranchIdToStorage)(e?.branchId),R(e),n.GTM.track.select_location((0,l.getCustomer)(),"AVA",e.name,t??0)};v=()=>h.Modal.open((0,t.jsx)(t7,{onSelect:e,onClose:h.Modal.close}),"ava.branchSelection.modal.title"),_[10]=v}else v=_[10];let O=v;return k?.availableForPickup?(_[11]!==C?(f=p._.classNames(C&&"invisible"),_[11]=C,_[12]=f):f=_[12],_[13]===Symbol.for("react.memo_cache_sentinel")?(b=(0,u.__)("ava.branchPickup.promise"),_[13]=b):b=_[13],_[14]!==T||_[15]!==N?(x=T?(0,u.__)("ava.branchPickup.dateUnknown"):function(e){let a=(0,t3.getPickupPromise)(e);if(a)return(0,t.jsx)("span",{className:"text-highlighting",children:a})}(N),_[14]=T,_[15]=N,_[16]=x):x=_[16],_[17]!==x?(g=(0,t.jsxs)("div",{className:"text-highlighting",children:[b," ",x]}),_[17]=x,_[18]=g):g=_[18],_[19]!==N?(j=N?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"branch-name",children:N.name}),(0,t.jsx)(h.Button,{type:"button",className:"btn btn-simple btn-icon-left icon-edit",label:"ava.branchPickup.change.btn",onClick:O}),function(e){if(["GREEN","YELLOW"].includes(e))return(0,t.jsx)("div",{className:"in-stock",children:(0,u.__)(`ava.branchPickup.availabilityCategory.${e.toLowerCase()}`)})}(N.availabilityCategory)]}):(0,t.jsx)(h.Button,{type:"button",className:"btn btn-simple btn-icon-left icon-arrow-right",label:"ava.branchPickup.find.btn",onClick:O}),_[19]=N,_[20]=j):j=_[20],_[21]!==g||_[22]!==j||_[23]!==f?(y=(0,t.jsxs)("div",{className:f,children:[g,j]}),_[21]=g,_[22]=j,_[23]=f,_[24]=y):y=_[24],y):null};var t9=e.i(36023);let ae=e=>{let r,i,s,n,l,o,c,d,m,h,p,v,f=(0,a.c)(29),{availability:b,deliveryDateText:w,deliveryCostText:x,product:g}=e;f[0]!==x?(r=x.toLowerCase().includes("zzgl"),f[0]=x,f[1]=r):r=f[1];let j=r,y=w.length>0,_=x.length>0;f[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,eG.isHudu)(),f[2]=i):i=f[2];let S=i,k=g.publicationDate;f[3]===Symbol.for("react.memo_cache_sentinel")?(s=new Date,f[3]=s):s=f[3];let N=s;f[4]!==k?(l=(n=k?new Date(k):void 0)?n.toLocaleDateString("de-DE",{weekday:"short",day:"2-digit",month:"2-digit",year:"numeric"}):"",f[4]=k,f[5]=n,f[6]=l):(n=f[5],l=f[6]);let R=l,C=function(e){switch(e.productType.id){case t9.ArticleTypeId.AUDIODOWNLOAD:case t9.ArticleTypeId.EBOOK:case t9.ArticleTypeId.HOERBUCH:case t9.ArticleTypeId.HOERBUCH_DL:case t9.ArticleTypeId.EBOOK_PDF:return!0;default:return!1}}(g)&&n&&n>N;return f[7]!==w||f[8]!==y?(o=y&&(0,t.jsx)("div",{className:"text-highlighting",children:(0,u.__)({id:"ava.delivery.promise",values:{date:(0,t.jsx)("span",{children:w})}})}),f[7]=w,f[8]=y,f[9]=o):o=f[9],f[10]!==R||f[11]!==C?(c=C&&(0,t.jsx)("div",{className:"text-highlighting",children:(0,u.__)({id:"ava.publication",values:{date:(0,t.jsx)("span",{children:R})}})}),f[10]=R,f[11]=C,f[12]=c):c=f[12],f[13]!==b.text?(d=(0,t.jsx)("div",{children:b.text}),f[13]=b.text,f[14]=d):d=f[14],f[15]!==x||f[16]!==_||f[17]!==j?(m=_&&(0,t.jsxs)(t.Fragment,{children:[x,j&&(0,t.jsx)("span",{className:"footnote-ref",children:"*"})]}),f[15]=x,f[16]=_,f[17]=j,f[18]=m):m=f[18],f[19]!==o||f[20]!==c||f[21]!==d||f[22]!==m?(h=(0,t.jsxs)("div",{children:[o,c,d,m]}),f[19]=o,f[20]=c,f[21]=d,f[22]=m,f[23]=h):h=f[23],f[24]!==g?(p=S&&(0,t.jsx)(t8,{product:g}),f[24]=g,f[25]=p):p=f[25],f[26]!==p||f[27]!==h?(v=(0,t.jsxs)("div",{className:"delivery-details",children:[h,p]}),f[26]=p,f[27]=h,f[28]=v):v=f[28],v},at=e=>{let r,i,s,n=(0,a.c)(5),{warningNotes:l}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("p",{className:"h4",children:(0,u.__)("ava.warningNote")}),n[0]=r):r=n[0],n[1]!==l?(i=l.map(aa),n[1]=l,n[2]=i):i=n[2],n[3]!==i?(s=(0,t.jsx)("div",{className:"continue-reading-block warning-anno text-limit-width",children:(0,t.jsxs)("div",{className:"text-wrapper",children:[r,i]})}),n[3]=i,n[4]=s):s=n[4],s};function aa(e,a){return(0,t.jsxs)(i.Fragment,{children:[(0,w.renderHTMLOrWikitext)(e)," ",(0,t.jsx)("br",{})]},a)}let ar=e=>{let r,i,s,n=(0,a.c)(13),{product:l}=e,{warningNote:o,blurb:c,contents:d,trackList:p,shortDescription:v,pdfInsideView:f}=l,b=!!(c||d||p||v||f);return n[0]!==c||n[1]!==d||n[2]!==b||n[3]!==f||n[4]!==l.id||n[5]!==v||n[6]!==p?(r=b&&(0,t.jsxs)(e0.ReadMoreTextBlockSSR,{initialTextHeight:200,className:"description-anno text-limit-width",resetOnChange:l.id,children:[v&&(0,w.renderHTMLOrWikitext)(v),c&&(0,w.renderHTMLOrWikitext)(c),d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"index-title",children:(0,u.__)("ava.description")}),(0,w.renderHTMLOrWikitext)(d)]}),p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"index-title",children:(0,u.__)("ava.tracklist")}),(0,w.renderHTMLOrWikitext)(p)]}),f&&(0,t.jsx)(t.Fragment,{children:(0,u.__)({id:"ava.description.pdf.insideview",values:{link:(0,t.jsx)(h.A,{trackId:(0,m.TRACK_ID)("2022-07-18 11:43:49"),href:f.url,external:!0,target:"_blank",children:(0,u.__)("ava.description.pdf.insideview.link.text")})}})})]}),n[0]=c,n[1]=d,n[2]=b,n[3]=f,n[4]=l.id,n[5]=v,n[6]=p,n[7]=r):r=n[7],n[8]!==o?(i=0!==o.length&&(0,t.jsx)(at,{warningNotes:o}),n[8]=o,n[9]=i):i=n[9],n[10]!==r||n[11]!==i?(s=(0,t.jsxs)(t.Fragment,{children:[r,i]}),n[10]=r,n[11]=i,n[12]=s):s=n[12],s},ai=e=>{let r,i,s,n,l=(0,a.c)(10),{pressReview:o,fazReview:c,productId:d}=e;return o||c?(l[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("h2",{children:(0,u.__)("ava.press.title")}),l[0]=r):r=l[0],l[1]!==o||l[2]!==d?(i=o&&(0,t.jsx)(e0.ReadMoreTextBlockSSR,{className:"review-items text-limit-width",initialTextHeight:200,resetOnChange:d,children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})}),l[1]=o,l[2]=d,l[3]=i):i=l[3],l[4]!==c||l[5]!==d?(s=c&&(0,t.jsx)(e0.ReadMoreTextBlockSSR,{className:"review-faz text-limit-width",initialTextHeight:250,resetOnChange:d,children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})}),l[4]=c,l[5]=d,l[6]=s):s=l[6],l[7]!==i||l[8]!==s?(n=(0,t.jsxs)("div",{className:"press-review",children:[r,i,s]}),l[7]=i,l[8]=s,l[9]=n):n=l[9],n):null};var as=e.i(133510);let an=e=>{let r,i,s=(0,a.c)(5),{accessibility:n,productId:l}=e,o=(0,h.useNarrowViewport)()?123:80;return s[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("div",{className:"accessibility-headline",children:(0,u.__)("ava.accessibility.headline")}),s[0]=r):r=s[0],s[1]!==n||s[2]!==o||s[3]!==l?(i=(0,t.jsxs)(t.Fragment,{children:[r,n.length?(0,t.jsx)(e0.ReadMoreTextBlockSSR,{className:"accessibility-details",initialTextHeight:o,resetOnChange:l,children:(0,t.jsx)("ul",{children:n.map(al)})}):(0,t.jsx)("div",{children:(0,u.__)("ava.accessibility.empty")})]}),s[1]=n,s[2]=o,s[3]=l,s[4]=i):i=s[4],i};function al(e,a){return(0,t.jsx)("li",{children:e},a)}let ao=e=>{let r,i,s,n,l,o,c,d=(0,a.c)(19),{details:p,detailsTable:v,accessibility:f,productId:b}=e;if(!p.length)return null;if(d[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("h2",{children:(0,u.__)("ava.details.headline")}),d[0]=r):r=d[0],d[1]!==p){let e;d[3]===Symbol.for("react.memo_cache_sentinel")?(e=(e,a)=>(0,t.jsxs)("div",{className:"table-row",children:[(0,t.jsx)("div",{className:"table-col table-head",children:e.label}),(0,t.jsx)("div",{className:"table-col",children:function(e){let{type:a,description:r}=e;return"PUBLISHER"===a?(0,t.jsx)(h.A,{href:g.AppRoutes.getAdvancedPublisherSearchPath(encodeURIComponent(r)),trackId:(0,m.TRACK_ID)("2022-06-02 11:07:00"),children:r}):"TITLE"===a?(0,t.jsx)(h.A,{href:g.AppRoutes.getAdvancedTitleSearchPath(encodeURIComponent(r)),trackId:(0,m.TRACK_ID)("2022-06-02 11:09:12"),children:r}):r}(e)})]},a),d[3]=e):e=d[3],i=p.map(e),d[1]=p,d[2]=i}else i=d[2];return d[4]!==i?(s=(0,t.jsx)("div",{className:"table-view table-big",children:i}),d[4]=i,d[5]=s):s=d[5],d[6]!==b||d[7]!==s?(n=(0,t.jsx)(e0.ReadMoreTextBlockSSR,{initialTextHeight:160,resetOnChange:b,children:s}),d[6]=b,d[7]=s,d[8]=n):n=d[8],d[9]!==f||d[10]!==b?(l=(0,t.jsx)(an,{accessibility:f,productId:b}),d[9]=f,d[10]=b,d[11]=l):l=d[11],d[12]!==v||d[13]!==b?(o=(0,t.jsx)(as.ProductDetailsTable,{details:v,productId:b}),d[12]=v,d[13]=b,d[14]=o):o=d[14],d[15]!==n||d[16]!==l||d[17]!==o?(c=(0,t.jsxs)("div",{className:"full-details",children:[r,n,l,o]}),d[15]=n,d[16]=l,d[17]=o,d[18]=c):c=d[18],c},ac=e=>{let r,i,s=(0,a.c)(5),{title:n,url:l}=e;return s[0]!==n?(r=(0,u.__string)({id:"ava.readingSample.frame.title",values:{title:n}}),s[0]=n,s[1]=r):r=s[1],s[2]!==r||s[3]!==l?(i=(0,t.jsx)("iframe",{id:"reading-sample-iframe",className:"content",title:r,frameBorder:"0",scrolling:"auto",width:"100%","uc-src":l}),s[2]=r,s[3]=l,s[4]=i):i=s[4],i},ad=e=>{let r,i,s,n=(0,a.c)(8),{product:l}=e,o=l?.readingSample;return o?(n[0]!==o.type?(r=(e=>{let t="uc-reading-sample";switch(e){case"LIBRI":case"PDF":return`${t}-tolino`;case"FLASH_CVR":return`${t}-bic-media`;case"BOOK2LOOK":return`${t}-book2look`;case"LIBREKA":return`${t}-bookview`;case"MIDVOXFLAH":return`${t}-blick-ins-buch`;default:return t}})(o.type),n[0]=o.type,n[1]=r):r=n[1],n[2]!==l.title||n[3]!==o.url?(i=(0,t.jsx)(ac,{title:l.title,url:o.url}
5),n[2]=l.title,n[3]=o.url,n[4]=i):i=n[4],n[5]!==r||n[6]!==i?(s=(0,t.jsx)("div",{className:"reading-fullview",id:r,children:i}),n[5]=r,n[6]=i,n[7]=s):s=n[7],s):null},au=()=>{let e,r,i,s=(0,a.c)(5),n=(0,e8.useProduct)();s[0]!==n?(e=()=>h.Modal.open((0,t.jsx)(ad,{product:n}),void 0,h.ModalType.LIGHTBOX,h.OptionalModalSize.FULL),s[0]=n,s[1]=e):e=s[1];let l=e;return n?.readingSample?(s[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,u.__)("ava.readingSample.btn.label"),s[2]=r):r=s[2],s[3]!==l?(i=(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-openbook",onClick:l,children:r}),s[3]=l,s[4]=i):i=s[4],i):null},am=e=>{let r,i,s,n=(0,a.c)(26),{hasAudioSample:l,hasVideoSample:o,hasTrailerVideo:c,hasReadingSample:d,onMediaTypeChange:m}=e;n[0]!==m?(r=e=>()=>{m(e)},n[0]=m,n[1]=r):r=n[1];let p=r;if(n[2]!==p||n[3]!==l||n[4]!==d||n[5]!==c||n[6]!==o){if(i=[],d){let e;n[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(au,{},"readingSample"),n[8]=e):e=n[8],i.push(e)}if(l){let e,a,r;n[9]!==p?(e=p("audio"),n[9]=p,n[10]=e):e=n[10],n[11]===Symbol.for("react.memo_cache_sentinel")?(a=(0,u.__)("ava.audio.btn.label"),n[11]=a):a=n[11],n[12]!==e?(r=(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-audio",onClick:e,children:a},"audioSample"),n[12]=e,n[13]=r):r=n[13],i.push(r)}if(o){let e,a,r;n[14]!==p?(e=p("video"),n[14]=p,n[15]=e):e=n[15],n[16]===Symbol.for("react.memo_cache_sentinel")?(a=(0,u.__)("ava.video.btn.label"),n[16]=a):a=n[16],n[17]!==e?(r=(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-video",onClick:e,children:a},"videoSample"),n[17]=e,n[18]=r):r=n[18],i.push(r)}if(c){let e,a,r;n[19]!==p?(e=p("trailer"),n[19]=p,n[20]=e):e=n[20],n[21]===Symbol.for("react.memo_cache_sentinel")?(a=(0,u.__)("ava.trailer.btn.label"),n[21]=a):a=n[21],n[22]!==e?(r=(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-video",onClick:e,children:a},"trailerVideo"),n[22]=e,n[23]=r):r=n[23],i.push(r)}n[2]=p,n[3]=l,n[4]=d,n[5]=c,n[6]=o,n[7]=i}else i=n[7];return n[24]!==i?(s=(0,t.jsx)("div",{className:"special-media-links",children:i.slice(0,3)}),n[24]=i,n[25]=s):s=n[25],s},ah=(e,t,a,r)=>{if("audio"===e)return t.length;if("video"===e)return a?t.length+1:t.length;if("trailer"===e){let e=t.length;return a&&e++,r&&e++,e}return 0};var ap=e.i(351431);let av=e=>{let r,s,n=(0,a.c)(11),{product:l,selectedMediaIndex:o,onSlideChange:c}=e,d=(0,i.useRef)(null),u=(0,i.useRef)(null),m=(0,i.useRef)(null);n[0]!==l.audioSample||n[1]!==l.authors||n[2]!==l.images||n[3]!==l.title||n[4]!==l.trailerVideo||n[5]!==l.videoSample?(r=(()=>{let e=l.images.filter(af);0===e.length&&e.unshift({imageExtraLargeLink:ap.FALLBACK_COVER_XL_URL});let a=e.map((e,a)=>(0,t.jsx)(h.Img,{alt:`${0===a?"Produktbild":"Weitere Ansicht"}: ${l.title}${l.authors&&l.authors.length>0?` | ${l.authors.join(", ")}`:""}`,src:e.imageExtraLargeLink,width:e.imgExtraLargeWidth,height:e.imgExtraLargeHeight},a));if(l.audioSample&&a.push((0,t.jsx)("audio",{ref:d,src:l.audioSample.url,controls:!0},a.length)),l.videoSample&&(l.videoSample.external?a.push((0,t.jsx)("iframe",{title:"video",src:l.videoSample.url,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,width:"100%",height:"100%"},a.length)):a.push((0,t.jsx)("video",{ref:u,src:l.videoSample.url,controls:!0},a.length))),l.trailerVideo)if(!l.trailerVideo.external||l.trailerVideo.url.startsWith("https://www.litvideoserver.de/"))a.push((0,t.jsx)("video",{ref:m,src:l.trailerVideo.url,controls:!0},a.length));else{let e,r=l.trailerVideo.url.startsWith("https://www.youtube.com/"),i=l.trailerVideo.url.startsWith("https://vimeo.com/"),s=l.trailerVideo.url.includes("/embed/");r&&!s?(e=l.trailerVideo.url.replace("watch?v=","embed/"),l.trailerVideo.url.includes("&")&&(e=e.split("&")[0])):e=i?l.trailerVideo.url.replace("vimeo.com/","player.vimeo.com/video/"):l.trailerVideo.url,a.push((0,t.jsx)("iframe",{width:"100%",height:"100%",src:e,title:"trailer",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0},a.length))}return a})(),n[0]=l.audioSample,n[1]=l.authors,n[2]=l.images,n[3]=l.title,n[4]=l.trailerVideo,n[5]=l.videoSample,n[6]=r):r=n[6];let p=r;return n[7]!==p||n[8]!==c||n[9]!==o?(s=(0,t.jsx)(ez.ESlider,{className:"embla__modal",content:p,selectedItemIndex:o,slidesToScroll:1,onSlideChange:c}),n[7]=p,n[8]=c,n[9]=o,n[10]=s):s=n[10],s};function af(e){return e.imageExtraLargeLink}let ab=e=>{let r,s,n,l,o,c,d,u=(0,a.c)(20),{product:m}=e;u[0]===Symbol.for("react.memo_cache_sentinel")?(r={slideIndex:0},u[0]=r):r=u[0];let[h,p]=(0,i.useState)(r);u[1]!==m.audioSample||u[2]!==m.images||u[3]!==m.videoSample?(s=e=>{p({slideIndex:ah(e,m.images,m.audioSample,m.videoSample)})},u[1]=m.audioSample,u[2]=m.images,u[3]=m.videoSample,u[4]=s):s=u[4];let v=s;u[5]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{p({slideIndex:0})},u[5]=n):n=u[5],u[6]!==m.id?(l=[m.id],u[6]=m.id,u[7]=l):l=u[7],(0,i.useEffect)(n,l),u[8]!==h.slideIndex||u[9]!==m?(o=(0,t.jsx)(av,{product:m,selectedMediaIndex:h.slideIndex,className:"images"}),u[8]=h.slideIndex,u[9]=m,u[10]=o):o=u[10];let f=!!m.audioSample,b=!!m.videoSample,w=!!m.trailerVideo,x=!!m.readingSample;return u[11]!==v||u[12]!==f||u[13]!==b||u[14]!==w||u[15]!==x?(c=(0,t.jsx)(am,{hasAudioSample:f,hasVideoSample:b,hasTrailerVideo:w,hasReadingSample:x,onMediaTypeChange:v}),u[11]=v,u[12]=f,u[13]=b,u[14]=w,u[15]=x,u[16]=c):c=u[16],u[17]!==c||u[18]!==o?(d=(0,t.jsxs)("div",{className:"media-col narrow",children:[o,c]}),u[17]=c,u[18]=o,u[19]=d):d=u[19],d},aw=e=>{let r,i,s,n,l,o,c=(0,a.c)(18),{images:d,title:u,authors:m,openProductMediaModal:h}=e;c[0]!==d?(r=(0,ap.getCoverImgURL)(d),c[0]=d,c[1]=r):r=c[1];
5let v=r,f=d.length>0;c[2]!==h||c[3]!==f?(i=()=>{f&&h(0)},c[2]=h,c[3]=f,c[4]=i):i=c[4];let b=i;c[5]!==f?(s=p._.classNames("cover-img",f&&"is-clickable"),c[5]=f,c[6]=s):s=c[6];let w=`Produktbild: ${u}${m?.length?" | "+m.join(", "):""}`;return c[7]!==v.imageExtraLargeLink||c[8]!==v.imgExtraLargeHeight||c[9]!==v.imgExtraLargeWidth||c[10]!==w?(n=(0,t.jsx)("img",{className:"",src:v.imageExtraLargeLink,width:v.imgExtraLargeWidth,height:v.imgExtraLargeHeight,alt:w}),c[7]=v.imageExtraLargeLink,c[8]=v.imgExtraLargeHeight,c[9]=v.imgExtraLargeWidth,c[10]=w,c[11]=n):n=c[11],c[12]!==s||c[13]!==n?(l=(0,t.jsx)("div",{className:s,children:n}),c[12]=s,c[13]=n,c[14]=l):l=c[14],c[15]!==b||c[16]!==l?(o=(0,t.jsx)("div",{className:"open-lightbox",onClick:b,children:l}),c[15]=b,c[16]=l,c[17]=o):o=c[17],o},ax=e=>{let r,s,n,l,o,c,d,u,m=(0,a.c)(27),{product:h,withMedia:v,selectedMediaIndex:f,onThumbnailClick:b}=e,[w,x]=(0,i.useState)(!1);m[0]!==b?(r=e=>{b&&b(e)},m[0]=b,m[1]=r):r=m[1];let g=r;m[2]!==h.images?(s=()=>{Promise.all(h.images.map(e=>new Promise(t=>{let a=new Image;a.src=e.thumbnailLink,a.onload=()=>t(e.thumbnailLink),a.onerror=()=>t(e.thumbnailLink)}))).then(()=>{x(!0)})},m[2]=h.images,m[3]=s):s=m[3],m[4]!==h?(n=[h],m[4]=h,m[5]=n):n=m[5],(0,i.useEffect)(s,n),m[6]!==h.audioSample||m[7]!==h.authors||m[8]!==h.images||m[9]!==h.title||m[10]!==h.trailerVideo||m[11]!==h.videoSample||m[12]!==v?(l=()=>{let e=h.images.map((e,a)=>(0,t.jsx)("span",{className:"item-border",children:(0,t.jsx)("img",{alt:`${0===a?"Produktbild":"Weitere Ansicht"}: ${h.title}${h.authors&&h.authors.length>0?` | ${h.authors.join(", ")}`:""}`,src:e.thumbnailLink},a)}));return v&&h.audioSample&&h.images.length&&e.push((0,t.jsx)("span",{className:"item-border is-audio",children:(0,t.jsx)("img",{alt:`Weitere Ansicht: ${h.title}${h.authors&&h.authors.length>0?` | ${h.authors.join(", ")}`:""}`,src:h.images[0].thumbnailLink})})),v&&h.videoSample&&h.images.length&&e.push((0,t.jsx)("span",{className:"item-border is-video",children:(0,t.jsx)("img",{alt:`Weitere Ansicht: ${h.title}${h.authors&&h.authors.length>0?` | ${h.authors.join(", ")}`:""}`,src:h.images[0].thumbnailLink})})),v&&h.trailerVideo&&h.images.length&&e.push((0,t.jsx)("span",{className:"item-border is-video",children:(0,t.jsx)("img",{alt:`Weitere Ansicht: ${h.title}${h.authors&&h.authors.length>0?` | ${h.authors.join(", ")}`:""}`,src:h.images[0].thumbnailLink})})),e},m[6]=h.audioSample,m[7]=h.authors,m[8]=h.images,m[9]=h.title,m[10]=h.trailerVideo,m[11]=h.videoSample,m[12]=v,m[13]=l):l=m[13];let j=l;if(m[14]!==w||m[15]!==j||m[16]!==g||m[17]!==f){c=Symbol.for("react.early_return_sentinel");e:{let e,a=j();if(a.length<2||!w){c=null;break e}m[20]!==g||m[21]!==f?(e=(e,a)=>(0,t.jsx)("div",{className:p._.classNames("embla__slide_container",f===a?"active":""),onClick:()=>g(a),children:e},a),m[20]=g,m[21]=f,m[22]=e):e=m[22],o=a.map(e)}m[14]=w,m[15]=j,m[16]=g,m[17]=f,m[18]=o,m[19]=c}else o=m[18],c=m[19];if(c!==Symbol.for("react.early_return_sentinel"))return c;let y=o;return m[23]===Symbol.for("react.memo_cache_sentinel")?(d={align:ag},m[23]=d):d=m[23],m[24]!==y||m[25]!==f?(u=(0,t.jsx)(ez.ESlider,{content:y,className:"thumbs",selectedItemIndex:f,options:d}),m[24]=y,m[25]=f,m[26]=u):u=m[26],u};function ag(){return 40}let aj=e=>{let r,i,s,n,l,o,c=(0,a.c)(19),{hasImages:d,hasAudioSample:m,hasVideoSample:p,hasTrailerVideo:v,onMediaTypeChange:f}=e;c[0]!==f?(r=e=>()=>{f(e)},c[0]=f,c[1]=r):r=c[1];let b=r;return m||p||v?(c[2]!==b||c[3]!==d?(i=d&&(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-images",onClick:b("image"),children:(0,u.__)("ava.images.btn.label")}),c[2]=b,c[3]=d,c[4]=i):i=c[4],c[5]!==b||c[6]!==m?(s=m&&(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-audio",onClick:b("audio"),children:(0,u.__)("ava.audio.btn.label")}),c[5]=b,c[6]=m,c[7]=s):s=c[7],c[8]!==b||c[9]!==p?(n=p&&(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-video",onClick:b("video"),children:(0,u.__)("ava.video.btn.label")}),c[8]=b,c[9]=p,c[10]=n):n=c[10],c[11]!==b||c[12]!==v?(l=v&&(0,t.jsx)(h.Button,{className:"btn btn-simple btn-icon-left icon-video",onClick:b("trailer"),children:(0,u.__)("ava.trailer.btn.label")}),c[11]=b,c[12]=v,c[13]=l):l=c[13],c[14]!==i||c[15]!==s||c[16]!==n||c[17]!==l?(o=(0,t.jsxs)("div",{className:"media-shortcuts",children:[i,s,n,l]}),c[14]=i,c[15]=s,c[16]=n,c[17]=l,c[18]=o):o=c[18],o):null},ay=e=>{let r,s,n,l,o,c,d,u,m=(0,a.c)(23),{product:h,selectedMediaIndex:
5p,selectedMediaType:v}=e,[f,b]=(0,i.useState)(void 0===p?0:p);m[0]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{void 0!==e&&b(e)},m[0]=r):r=m[0];let w=r;m[1]!==h.audioSample||m[2]!==h.images||m[3]!==h.videoSample?(s=e=>{e&&b(ah(e,h.images,h.audioSample,h.videoSample))},m[1]=h.audioSample,m[2]=h.images,m[3]=h.videoSample,m[4]=s):s=m[4];let x=s;m[5]!==x||m[6]!==v?(n=()=>{x(v)},l=[v,x],m[5]=x,m[6]=v,m[7]=n,m[8]=l):(n=m[7],l=m[8]),(0,i.useEffect)(n,l);let g=h.images.length>0,j=!!h.audioSample,y=!!h.videoSample,_=!!h.trailerVideo;return m[9]!==x||m[10]!==g||m[11]!==j||m[12]!==y||m[13]!==_?(o=(0,t.jsx)(aj,{hasImages:g,hasAudioSample:j,hasVideoSample:y,hasTrailerVideo:_,onMediaTypeChange:x}),m[9]=x,m[10]=g,m[11]=j,m[12]=y,m[13]=_,m[14]=o):o=m[14],m[15]!==f||m[16]!==h?(c=(0,t.jsx)(av,{product:h,selectedMediaIndex:f,onSlideChange:w}),d=(0,t.jsx)(ax,{product:h,selectedMediaIndex:f,onThumbnailClick:b,withMedia:!0}),m[15]=f,m[16]=h,m[17]=c,m[18]=d):(c=m[17],d=m[18]),m[19]!==o||m[20]!==c||m[21]!==d?(u=(0,t.jsxs)("div",{className:"media-fullview",children:[o,c,d]}),m[19]=o,m[20]=c,m[21]=d,m[22]=u):u=m[22],u},a_=e=>{let r,i,s,n,l,o,c=(0,a.c)(22),{product:d}=e;c[0]!==d?(r=(e,a)=>h.Modal.open((0,t.jsx)(ay,{product:d,selectedMediaIndex:e,selectedMediaType:a}),void 0,h.ModalType.LIGHTBOX,h.OptionalModalSize.FULL),c[0]=d,c[1]=r):r=c[1];let u=r;c[2]!==u?(i=e=>{u(0,e)},c[2]=u,c[3]=i):i=c[3];let m=i;c[4]!==u||c[5]!==d.authors||c[6]!==d.images||c[7]!==d.title?(s=(0,t.jsx)(aw,{images:d.images,title:d.title,authors:d.authors,openProductMediaModal:u}),c[4]=u,c[5]=d.authors,c[6]=d.images,c[7]=d.title,c[8]=s):s=c[8];let p=!!d.audioSample,v=!!d.videoSample,f=!!d.trailerVideo,b=!!d.readingSample;return c[9]!==m||c[10]!==p||c[11]!==v||c[12]!==f||c[13]!==b?(n=(0,t.jsx)(am,{hasAudioSample:p,hasVideoSample:v,hasTrailerVideo:f,hasReadingSample:b,onMediaTypeChange:m}),c[9]=m,c[10]=p,c[11]=v,c[12]=f,c[13]=b,c[14]=n):n=c[14],c[15]!==u||c[16]!==d?(l=(0,t.jsx)(ax,{product:d,onThumbnailClick:u}),c[15]=u,c[16]=d,c[17]=l):l=c[17],c[18]!==s||c[19]!==n||c[20]!==l?(o=(0,t.jsxs)("div",{className:"media-col is-sticky wide",children:[s,n,l]}),c[18]=s,c[19]=n,c[20]=l,c[21]=o):o=c[21],o},aS=e=>{let r,i=(0,a.c)(2),{product:s}=e;return i[0]!==s?(r=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ab,{product:s}),(0,t.jsx)(a_,{product:s})]}),i[0]=s,i[1]=r):r=i[1],r},ak={src:e.i(784863).default,width:129,height:129,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA3ElEQVR42h2P3U6EMBCFm+Dr7EsIvJDxzYwIhKsme2l116JZRUPpFlqQHy8IvTu2TDLJTGbOyfnITRAEcRxHWZ7TruusUsomSUIjV+4UED9wzqu+7zEMw95aazDGKn8jWZbRZZ5Qf7zj+nWB+Lzgp+TQrUKappQ4pf2bZ4i3M5rTK8QLwzd7hmoaGGMscZZ2XVcMzlYrBdO2kHWNaZrgxaQoCrptG/yTCwkpJcZx3PfcBSeeoCzLalkWGOfSCYHf0xn8eKxiH9KjhGEYeTQlpb0+PtmHu3t6ezjsmP86B7+l2nMQkQAAAABJRU5ErkJggg=="},aN=e=>{let r,i=(0,a.c)(2);return(0,eG.isHudu)()?(i[0]!==e?(r=(0,t.jsx)(aR,{...e}),i[0]=e,i[1]=r):r=i[1],r):null},aR=e=>{let r,s,n,l,o,c,d,p,v=(0,a.c)(15),{productId:f}=e,b=(0,i.useRef)(null),[x,j]=(0,i.useState)(!0);v[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>j(!1),s={once:!0},v[0]=r,v[1]=s):(r=v[0],s=v[1]),(0,h.useScrollOrInViewport)(b,r,s),v[2]!==x||v[3]!==f?(n=(e,t)=>{if(x)return null;let a=t?.currentResults?5:2;return`product/review/salesperson/${f}?offset=${t?t.offset+t.currentResults:0}&maxResults=${a}`},v[2]=x,v[3]=f,v[4]=n):n=v[4];let y=n,{data:_,size:k,setSize:N,error:R}=(0,tb.default)(y,S.fetcherWithoutAuthRetry),{reviews:C,totalResults:I}=_?{reviews:_.flatMap(aC),totalResults:_[0].totalResults}:{reviews:[],totalResults:0},T=C.length<I;v[5]!==R?(l=()=>{R&&404!==R.status&&(0,w.handleError)(R,`Could not load customer reviews, because http ${R.status}`,"2022-05-11 09:42:56")},o=[R],v[5]=R,v[6]=l,v[7]=o):(l=v[6],o=v[7]),(0,i.useEffect)(l,o),v[8]!==N||v[9]!==T||v[10]!==k?(c=()=>T?(0,t.jsx)(h.Button,{className:"btn btn-default btn-sm",onClick:()=>N(k+1),children:(0,u.__)("ava.salespersonReviews.showMore")}):null,v[8]=N,v[9]=T,v[10]=k,v[11]=c):c=v[11];let A=c;v[12]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{let a=e.author??(0,u.__string)("ava.salespersonReviews.noName");return(0,t.jsxs)("div",{className:"author",children:[e.customerId?(0,t.jsx)(h.A,{href:g.AppRoutes.allCustomerReviews.replace(":customerId",e.customerId),className:"btn btn-simple",trackId:(0,m.TRACK_ID)("2022-07-11 10:56:00"),children:a}):a," ",e.branchName&&(0,t.jsx)("span",{className:"branch-name",children:(0,u.__)({id:"ava.salespersonReviews.branchName",values:{name:e.branchName}})})," ",function(e){return e?new Date(e).toLocaleDateString("de-DE"):""}(e.creationDate)]})},v[12]=d):d=v[12];let P=d;if(!C.length)return null;let L=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{children:(0,u.__)("ava.salespersonReviews.title")}),C.map((e,a)=>(0,t.jsxs)("div",{className:"media-text-block recommendation-item",children:[function(e){let{imagePath:a,author:r}=e,i=void 0===a?ak.src:a,s=void 0===r?(0,u.__string)("ava.salespersonReviews.noImage"):r;return(0,t.jsx)("div",{className:"media",children:(0,t.jsx)("span",{className:"circle",children:(0,t.jsx)(h.Img,{src:i,alt:s,className:""})})})}(e),(0,t.jsxs)("div",{className:"text text-limit-width",children:[P(e),function(e){return(0,t.jsxs)("div",{className:"title",children:[(0,t.jsx)(h.ReviewStars,{rating:e.rating??0}),e.title&&(0,t.jsx)("h3",{className:"h2",children:e.title})]})}(e),(0,t.jsx)(e0.ReadMoreTextBlockSSR,{initialTextHeight:100,children:e.text})]})]},a)),A()]});return v[13]!==L?(p=(0,t.jsx)("div",{className:"bookshop-recommendations",ref:b,children:L}),v[13]=L,v[14]=p):p=v[14],p};function aC(e){return e.items}function aI(e){return"PUBLISHER"===e.type}e.s(["ProductView",0,e=>{let h,p,v,f,b,w,x,g,j,y,_,S,k,N,R,C,I,T,A,P,L,B,D,E,M,O,V,F,H,U,W,$,K,G,z,q,J,Y,Z,Q=(0,a.c)(112),{product:X,seriesData:ee,reviewData:et}=e,[ea,er]=(0,i.useState)(),ei=(0,tl.useUsercentricsServiceApproved)("Prudsys"),es=(0,c.useAppSelector)(o.MainSelectors.selectMediaBaseUrl);Q[0]!==X.id||Q[1]!==ee?.series?.items?(h=ee?.series?.items.filter(e=>e.articleId!==X.id).length,Q[0]=X.id,Q[1]=ee?.series?.items,Q[2]=h):h=Q[2];let en=!!h;(Z=(0,a.c)(4))[0]!==X?(J=()=>{if(!X?.id)return;let e=(0,l.getFormattedNumberPrice)(X.productPrice?.price??0);n.GTM.track.view_item((0,l.getCustomer)(),{currency:"EUR",value:e,items:[(0,l.productItemtoGTMItem)(X)]})}
5,Z[0]=X,Z[1]=J):J=Z[1],Z[2]!==X.id?(Y=[X.id],Z[2]=X.id,Z[3]=Y):Y=Z[3],(0,i.useEffect)(J,Y);let el=X.id,eo=X?.productPrice?.price,ec=X?.productPrice?.fixedPrice,ed=X.title;Q[3]!==X.authors?(p=X.authors.toString(),Q[3]=X.authors,Q[4]=p):p=Q[4],Q[5]!==X.details?(v=X.details.find(aI)?.description||void 0,Q[5]=X.details,Q[6]=v):v=Q[6],Q[7]!==X.availability.text||Q[8]!==X.id||Q[9]!==X.productType.displayName||Q[10]!==X.title||Q[11]!==eo||Q[12]!==ec||Q[13]!==p||Q[14]!==v?(f={articleId:el,amount:1,price:eo,fixedPrice:ec,title:ed,authors:p,binderName:v,productType:X.productType.displayName,availabilityMessage:X.availability.text},Q[7]=X.availability.text,Q[8]=X.id,Q[9]=X.productType.displayName,Q[10]=X.title,Q[11]=eo,Q[12]=ec,Q[13]=p,Q[14]=v,Q[15]=f):f=Q[15],((e,t)=>{let r,n,l=(0,a.c)(9),o=(0,s.usePathname)(),[c,d]=(0,i.useState)("");l[0]!==t||l[1]!==o||l[2]!==e||l[3]!==c?(r=()=>{c!==o&&(d(o),t(e))},l[0]=t,l[1]=o,l[2]=e,l[3]=c,l[4]=r):r=l[4],l[5]!==t||l[6]!==e||l[7]!==c?(n=[e,t,c],l[5]=t,l[6]=e,l[7]=c,l[8]=n):n=l[8],(0,i.useEffect)(r,n)})(f,m.Track.GTM.articleView),Q[16]!==X.id||Q[17]!==ei?(b=async()=>{er(await d.Prudsys.recommendations("AVA",ei,X.id))},Q[16]=X.id,Q[17]=ei,Q[18]=b):b=Q[18];let eu=b;return Q[19]!==X.id||Q[20]!==ei?(w=()=>{void 0!==ei&&d.Prudsys.Dispatcher.productView(X.id,ei).then()},x=[X.id,ei],Q[19]=X.id,Q[20]=ei,Q[21]=w,Q[22]=x):(w=Q[21],x=Q[22]),(0,i.useEffect)(w,x),Q[23]!==eu||Q[24]!==ei?(g=()=>{void 0!==ei&&eu()},j=[eu,ei],Q[23]=eu,Q[24]=ei,Q[25]=g,Q[26]=j):(g=Q[25],j=Q[26]),(0,i.useEffect)(g,j),Q[27]!==X?(y=(0,t.jsx)(aS,{product:X}
5),Q[27]=X,Q[28]=y):y=Q[28],Q[29]!==en||Q[30]!==X?(_=(0,t.jsx)(tq,{product:X,hasSeriesRecommendation:en}),Q[29]=en,Q[30]=X,Q[31]=_):_=Q[31],Q[32]!==X?(S=(0,t.jsx)(ae,{availability:X.availability,deliveryDateText:X.deliveryDateText,deliveryCostText:X.deliveryCostText,product:X}),k=(0,t.jsx)(eK,{product:X}),N=(0,t.jsx)(ar,{product:X}),Q[32]=X,Q[33]=S,Q[34]=k,Q[35]=N):(S=Q[33],k=Q[34],N=Q[35]),Q[36]!==_||Q[37]!==S||Q[38]!==k||Q[39]!==N?(R=(0,t.jsxs)("div",{className:"main-details-col",children:[_,S,k,N]}),Q[36]=_,Q[37]=S,Q[38]=k,Q[39]=N,Q[40]=R):R=Q[40],Q[41]!==y||Q[42]!==R?(C=(0,t.jsxs)("div",{className:"primary-details",children:[y,R]}),Q[41]=y,Q[42]=R,Q[43]=C):C=Q[43],Q[44]!==X.id?(I=X.id.toString(),Q[44]=X.id,Q[45]=I):I=Q[45],Q[46]!==ee||Q[47]!==I?(T=(0,t.jsx)(tg,{productId:I,seriesData:ee}),Q[46]=ee,Q[47]=I,Q[48]=T):T=Q[48],Q[49]!==X.accessibility||Q[50]!==X.details||Q[51]!==X.detailsTable||Q[52]!==X.id?(A=(0,t.jsx)(ao,{details:X.details,detailsTable:X.detailsTable,accessibility:X.accessibility,productId:X.id}),Q[49]=X.accessibility,Q[50]=X.details,Q[51]=X.detailsTable,Q[52]=X.id,Q[53]=A):A=Q[53],Q[54]!==X.keywords?(P=(0,t.jsx)(eq,{keywords:X.keywords}),Q[54]=X.keywords,Q[55]=P):P=Q[55],Q[56]!==X.event?(L=(0,t.jsx)(eQ,{data:X.event}),Q[56]=X.event,Q[57]=L):L=Q[57],Q[58]!==ea?.productsTitle?(B=ea?.productsTitle||(0,u.__)("ava.recommendation.customerBought.title"),Q[58]=ea?.productsTitle,Q[59]=B):B=Q[59],Q[60]!==ea?.products?(D=ea?.products??[],Q[60]=ea?.products,Q[61]=D):D=Q[61],Q[62]!==es||Q[63]!==B||Q[64]!==D?(E=(0,t.jsx)(r.PrudsysRecommendationSlider,{headline:B,recommendations:D,addToBasketTrackingSource:"AVA",mediaBaseUrl:es,prefetch:!1}),Q[62]=es,Q[63]=B,Q[64]=D,Q[65]=E):E=Q[65],Q[66]!==X.authorDetails||Q[67]!==X.authors||Q[68]!==X.id||Q[69]!==X.interview?(M=(0,t.jsx)(e1,{authors:X.authors,authorDetails:X.authorDetails,interview:X.interview,productId:X.id}),Q[66]=X.authorDetails,Q[67]=X.authors,Q[68]=X.id,Q[69]=X.interview,Q[70]=M):M=Q[70],Q[71]!==X.fazReview||Q[72]!==X.id||Q[73]!==X.pressReview?(O=(0,t.jsx)(ai,{pressReview:X.pressReview,fazReview:X.fazReview,productId:X.id}),Q[71]=X.fazReview,Q[72]=X.id,Q[73]=X.pressReview,Q[74]=O):O=Q[74],Q[75]!==X.id?(V=(0,t.jsx)(aN,{productId:X.id}),Q[75]=X.id,Q[76]=V):V=Q[76],Q[77]!==X.id?(F=X.id.toString(),Q[77]=X.id,Q[78]=F):F=Q[78],Q[79]!==X.title||Q[80]!==et||Q[81]!==F?(H=(0,t.jsx)(t0,{productId:F,productTitle:X.title,reviewData:et}),Q[79]=X.title,Q[80]=et,Q[81]=F,Q[82]=H):H=Q[82],Q[83]!==ea?.personalTitle?(U=ea?.personalTitle||(0,u.__)("ava.recommendation.personal.title"),Q[83]=ea?.personalTitle,Q[84]=U):U=Q[84],Q[85]!==ea?.personals?(W=ea?.personals??[],Q[85]=ea?.personals,Q[86]=W):W=Q[86],Q[87]!==es||Q[88]!==U||Q[89]!==W?($=(0,t.jsx)(r.PrudsysRecommendationSlider,{headline:U,recommendations:W,addToBasketTrackingSource:"AVA",mediaBaseUrl:es,prefetch:!1}),Q[87]=es,Q[88]=U,Q[89]=W,Q[90]=$):$=Q[90],Q[91]!==ea?.lastProductsTitle?(K=ea?.lastProductsTitle||(0,u.__)("ava.recommendation.lastProducts.title"),Q[91]=ea?.lastProductsTitle,Q[92]=K):K=Q[92],Q[93]!==ea?.lastProducts?(G=ea?.lastProducts??[],Q[93]=ea?.lastProducts,Q[94]=G):G=Q[94],Q[95]!==es||Q[96]!==K||Q[97]!==G?(z=(0,t.jsx)(r.PrudsysRecommendationSlider,{headline:K,recommendations:G,addToBasketTrackingSource:"AVA",mediaBaseUrl:es,prefetch:!1,disablePlaceholder:!0}),Q[95]=es,Q[96]=K,Q[97]=G,Q[98]=z):z=Q[98],Q[99]!==C||Q[100]!==T||Q[101]!==A||Q[102]!==P||Q[103]!==L||Q[104]!==E||Q[105]!==M||Q[106]!==O||Q[107]!==V||Q[108]!==H||Q[109]!==$||Q[110]!==z?(q=(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{id:"article-view",children:[C,T,A,P,L,E,M,O,V,H,$,z]})}),Q[99]=C,Q[100]=T,Q[101]=A,Q[102]=P,Q[103]=L,Q[104]=E,Q[105]=M,Q[106]=O,Q[107]=V,Q[108]=H,Q[109]=$,Q[110]=z,Q[111]=q):q=Q[111],q}],313855)},343794,(e,t,a)=>{!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var s=arguments[t];s&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var s in e)a.call(e,s)&&e[s]&&(t=i(t,s));return t}(s)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}if(t.exports)r.default=r,t.exports=r;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==r&&e.v(r);else window.classNames=r}()},667769,(e,t,a)=>{function r(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}t.exports=function(e,t){t=t||{};var a,i,s=typeof e;if("string"===s&&e.length>0){var n=e;if(!((n=String(n)).length>100)){var l=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(n);if(l){var o=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"days":case"day":case"d":return 864e5*o;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*o;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*o;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:break}}}return}if("number"===s&&!1===isNaN(e)){return t.long?r(a=e,864e5,"day")||r(a,36e5,"hour")||r(a,6e4,"minute")||r(a,1e3,"second")||a+" ms":(i=e)>=864e5?Math.round(i/864e5)+"d":i>=36e5?Math.round(i/36e5)+"h":i>=6e4?Math.round(i/6e4)+"m":i>=1e3?Math.round(i/1e3)+"s":i+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},135778,(e,t,a)=>{var r;function i(e){function t(){if(t.enabled){var e=+new Date;t.diff=e-(r||e),t.prev=r,t.curr=e,r=e;for(var i=Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=a.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var n=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(e,r){if("%%"===e)return e;n++;var s=a.formatters[r];if("function"==typeof s){var l=i[n];e=s.call(t,l),i.splice(n,1),n--}return e}),a.formatArgs.call(t,i),(t.log||a.log||console.log.bind(console)).apply(t,i)}}return t.namespace=e,t.enabled=a.enabled(e),t.useColors=a.useColors(),t.color=function(e){var t,r=0;for(t in e)r=(r<<5)-r+e.charCodeAt(t)|0;return a.colors[Math.abs(r)%a.colors.length]}(e),"function"==typeof a.init&&a.init(t),t}(a=t.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},a.disable=function(){a.enable("")},a.enable=function(e){a.save(e),a.names=[],a.skips=[];
5for(var t=("string"==typeof e?e:"").split(/[\s,]+/),r=t.length,i=0;i<r;i++)t[i]&&("-"===(e=t[i].replace(/\*/g,".*?"))[0]?a.skips.push(RegExp("^"+e.substr(1)+"$")):a.names.push(RegExp("^"+e+"$")))},a.enabled=function(e){var t,r;for(t=0,r=a.skips.length;t<r;t++)if(a.skips[t].test(e))return!1;for(t=0,r=a.names.length;t<r;t++)if(a.names[t].test(e))return!0;return!1},a.humanize=e.r(667769),a.names=[],a.skips=[],a.formatters={}},322516,(e,t,a)=>{var r=e.i(247167);function i(){var e;try{e=a.storage.debug}catch(e){}return!e&&void 0!==r.default&&"env"in r.default&&(e=r.default.env.DEBUG),e}(a=t.exports=e.r(135778)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+a.humanize(this.diff),t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(s=i))}),e.splice(s,0,r)}},a.save=function(e){try{null==e?a.storage.removeItem("debug"):a.storage.debug=e}catch(e){}},a.load=i,a.useColors=function(){return"u">typeof window&&!!window.process&&"renderer"===window.process.type||"u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage="u">typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(i())},943054,(e,t,a)=>{var r=e.r(322516)("jsonp");t.exports=function(e,t,a){"function"==typeof t&&(a=t,t={}),t||(t={});var n,l,o=t.prefix||"__jp",c=t.name||o+i++,d=t.param||"callback",u=null!=t.timeout?t.timeout:6e4,m=encodeURIComponent,h=document.getElementsByTagName("script")[0]||document.head;function p(){n.parentNode&&n.parentNode.removeChild(n),window[c]=s,l&&clearTimeout(l)}return u&&(l=setTimeout(function(){p(),a&&a(Error("Timeout"))},u)),window[c]=function(e){r("jsonp got",e),p(),a&&a(null,e)},e+=(~e.indexOf("?")?"&":"?")+d+"="+m(c),r('jsonp req "%s"',e=e.replace("?&","?")),(n=document.createElement("script")).src=e,h.parentNode.insertBefore(n,h),function(){window[c]&&p()}};var i=0;function s(){}}]);
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.