const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetailerSearchFi-BFmy6F1w.js","assets/main-BDtKGhFI.js","assets/LoadingIndicatorWrapper-BXUjM89f.js","assets/AssetService-SVtDjug-.js","assets/GMapMap-DH3M4PLu.js","assets/GridColumnsFi-7oYBOosq.js","assets/BlockNotificationFi-pbeRwuNQ.js","assets/SelectInputFi-BoPa7Szi.js","assets/distanceMixin-zxg0wk3d.js","assets/PaginationProgressBar-DQ7eJ3mz.js","assets/AvailabilityStatusViewOnlyFi-DHfN2IOW.js","assets/AvailabilityStatus-D7AKPuyi.js","assets/ProductPackageSizeFi-AuM1EN77.js","assets/QuantityModificationHintFi-B_j40TS1.js","assets/QuantitySteps-CvBALafz.js","assets/sellingUnitMixin-BqI7WVPQ.js","assets/userMixin-CcbxziU4.js","assets/login-BQ8mFjOy.js"])))=>i.map(i=>d[i]); import{_ as b,L as M,r,o as l,a as n,w as d,u as y,v as h,q as o,I as j,M as A,b as k,l as f,p as _,R as q,ab as O,J as x,G as Q,H as J,k as V,m as W,N as Z,F as K,Z as D,n as F,O as X,aB as Y,i as ee}from"./main-BDtKGhFI.js";import{C as te}from"./CrossSellingProductTeasersFi-BmluKYzE.js";import{P as ae,a as ie}from"./ProductDetailSchemaFi-CZg5-d_s.js";import{C as le,M as re,P as oe}from"./ProductItemsSliderFi-ChS71DNJ.js";import{G as ne}from"./GridColumnsFi-7oYBOosq.js";import{O as de,_ as ce}from"./onlineRetailersMixin-qnPXMAPj.js";import{_ as se}from"./distanceMixin-zxg0wk3d.js";import{g as ue}from"./fieldTransformations-DY2-qceq.js";import{B as fe}from"./BuyBoxModule-Cs9f09SL.js";import{T as me}from"./TextExpanderFi-B7Mu11WH.js";import{d as he}from"./getRetailerAvailabilityForIds-DHQoPBVB.js";import{_ as _e}from"./accessPrivilegesMixin-B2OlySz7.js";import{a as ge,_ as pe}from"./catalogMixin-CPTFZDM8.js";import{_ as ye}from"./shoppingcartMixin-Bos5UiAf.js";import{_ as ke,d as ve}from"./trackingMixin.vue_vue_type_script_lang-DSHkIFY3.js";import De from"./SectionDividerSmallFi-C5ZohOgE.js";import"./ProductTeasersFi-CY3HVHN5.js";import"./CarouselSliderControlsFi-Pvxw1BJy.js";import"./AvailabilityStatus-D7AKPuyi.js";import"./LoadingIndicatorWrapper-BXUjM89f.js";import"./PriceSavingsFi-C29VJZ5l.js";import"./PriceSavingsInPercentFi-CLeStdBK.js";import"./ProductPackageSizeFi-AuM1EN77.js";import"./QuantityModificationHintFi-B_j40TS1.js";import"./QuantityStepsUpdater-DBPTVDIE.js";import"./QuantitySteps-CvBALafz.js";import"./sellingUnitMixin-BqI7WVPQ.js";import"./priceCurrencyMixin-CKEVFsHP.js";import"./userMixin-CcbxziU4.js";import"./login-BQ8mFjOy.js";import"./setupAccordion-BcPFWF8P.js";import"./AccordionItemFi-CEqnmK95.js";import"./catalogAttributesMixin-CL45_ybt.js";import"./TechnicalDetailsTableFi-a8h5E9Se.js";import"./DocumentDownloadItemsFi-BKaUjQhQ.js";import"./index-BuUnCgYx.js";import"./FacetsMenuFi-C8GRmyIH.js";import"./FacetsSelectionFi-D2gIuEVQ.js";import"./AssetService-SVtDjug-.js";import"./BasePriceFi-Dh4C-Phq.js";import"./ErrorMessage-B_XQ5syn.js";import"./pageScrolling-DKoKIacQ.js";import"./ProductPartialsFi-Cax_tMXT.js";import"./AddToMemoListDialogFi-insxKFMB.js";import"./SectionDividerFi-fHoDFEwy.js";const be={name:"CadLinkFi",components:{LinkFi:M},props:{fields:{type:Object,default:()=>({})},openInDialog:{type:Boolean,default:!1},cadUrl:{type:String,default:null}},emits:["open-cad-details-dialog"],methods:{onCadLinkClicked(e){this.openInDialog&&(e.preventDefault(),this.$emit("open-cad-details-dialog"))}}};function Ce(e,a,i,c,s,t){const m=r("link-fi");return i.cadUrl?(l(),n(m,{key:0,href:i.cadUrl,size:18,target:"_blank",onClick:t.onCadLinkClicked},{default:d(()=>[y(h(i.fields.cadLinkText.value),1)]),_:1},8,["href","onClick"])):o("",!0)}const Le=b(be,[["render",Ce]]),Ie={name:"CadDetailsDialogFi",components:{IconFi:j,DialogModalFi:A},props:{fields:{type:Object,default:()=>({})},cadUrl:{type:String,default:null}},methods:{open(){this.$refs.dialogModal.open()}}},Se=["src"];function Pe(e,a,i,c,s,t){const m=r("icon-fi"),u=r("dialog-modal-fi");return l(),n(u,{ref:"dialogModal",class:"cad-details-dialog-fi","prevent-close-on-click-outside":"","only-body-scrollable":""},{body:d(()=>[i.cadUrl?(l(),k("iframe",{key:0,ref:"cadFrame",src:i.cadUrl,class:"cad-details-dialog-fi__iframe",frameborder:"0"},null,8,Se)):o("",!0)]),button:d(()=>[f(m,{icon:"close"})]),_:1},512)}const Re=b(Ie,[["render",Pe]]),we={name:"ProductRetailerDialogFi",components:{DialogModalFi:A,OnlineRetailersListFi:de},inject:["fields"],props:{retailers:{type:Array,default:null},retailerFacets:{type:Array,default:null}},methods:{show(){this.$refs.productRetailerDialog.open()},close(){this.$refs.productRetailerDialog.close()}}},Ne={class:"product-retailer-dialog-fi__headline"},Fe={class:"product-retailer-dialog-fi__product-retailers"};function Te(e,a,i,c,s,t){const m=r("online-retailers-list-fi"),u=r("dialog-modal-fi");return l(),n(u,{ref:"productRetailerDialog",class:"product-retailer-dialog-fi","large-padding":"",lazy:""},{header:d(()=>[_("h2",Ne,h(t.fields&&t.fields.retailConnectRetailerHeadline&&t.fields.retailConnectRetailerHeadline.value),1)]),body:d(()=>[_("div",Fe,[f(m,{retailers:i.retailers,"retailer-facets":i.retailerFacets,variant:"product-retailers"},null,8,["retailers","retailer-facets"])])]),_:1},512)}const Ae=b(we,[["render",Te]]),Ee=O(()=>x(()=>import("./RetailerSearchFi-BFmy6F1w.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),Be={name:"RetailSearchDialogFi",components:{DialogModalFi:A,RetailerSearchFi:Ee,RichtextFi:q},mixins:[se],inject:["fields"],props:{catalogId:{type:String,default:null},productName:{type:String,default:null}},data(){return{isShown:!1}},computed:{countryList(){return ue(this.fields,"countryList",[])},ranges(){var a;const e=[];return(a=this.fields.retailerSearchRanges)!=null&&a.value&&this.fields.retailerSearchRanges.value.split(",").forEach(i=>{e.push({name:`${i} ${this.unit}`,value:i})}),e.length?e:void 0},defaultRange(){var e;if((e=this.fields.retailerSearchDefaultRange)!=null&&e.value)return this.fields.retailerSearchDefaultRange.value},description(){var e;return(e=this.fields.retailerSearchDescription)!=null&&e.value?{value:this.fields.retailerSearchDescription.value.replace("{0}",Number(this.catalogId)).replace("{1}",this.productName)}:null}},methods:{show(){this.$refs.retailerSearchDialog.open()}}},Me={key:0,class:"retail-search-dialog-fi__headline"},Oe={class:"retail-search-dialog-fi__retailer-search"};function xe(e,a,i,c,s,t){const m=r("richtext-fi"),u=r("retailer-search-fi"),g=r("dialog-modal-fi");return l(),n(g,{ref:"retailerSearchDialog",class:"retail-search-dialog-fi","large-padding":"",lazy:"","prevent-close-on-click-outside":""},{header:d(()=>{var p;return[(p=t.fields.retailerSearchHeadline)!=null&&p.value?(l(),k("h2",Me,h(t.fields.retailerSearchHeadline.value),1)):o("",!0),t.description?(l(),n(m,{key:1,class:"retail-search-dialog-fi__description","html-content":t.description},null,8,["html-content"])):o("",!0)]}),body:d(()=>[_("div",Oe,[f(u,{ref:"retailerSearch",theme:"modal","country-list":t.countryList[1],"default-country":t.countryList[2],ranges:t.ranges,"default-range":t.defaultRange,"product-ids":i.catalogId},null,8,["country-list","default-country","ranges","default-range","product-ids"])])]),_:1},512)}const Ve=b(Be,[["render",xe],["__scopeId","data-v-d154a8e6"]]);var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"hasLocalRetailers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"brand"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CatalogChannel"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CatalogLocale"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"productId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasLocalRetailers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"brand"},value:{kind:"Variable",name:{kind:"Name",value:"brand"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"productId"},value:{kind:"Variable",name:{kind:"Name",value:"productId"}}}],directives:[]}]}}],loc:{start:0,end:194}};P.loc.source={body:`query hasLocalRetailers( $brand: CatalogChannel! $locale: CatalogLocale! $productId: String! ) { hasLocalRetailers( brand: $brand locale: $locale productId: $productId ) } `,name:"GraphQL request",locationOffset:{line:1,column:1}};function S(e,a){if(e.kind==="FragmentSpread")a.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&a.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(c){S(c,a)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(c){S(c,a)}),e.definitions&&e.definitions.forEach(function(c){S(c,a)})}var T={};(function(){P.definitions.forEach(function(a){if(a.name){var i=new Set;S(a,i),T[a.name.value]=i}})})();function B(e,a){for(var i=0;i<e.definitions.length;i++){var c=e.definitions[i];if(c.name&&c.name.value==a)return c}}function He(e,a){var i={kind:e.kind,definitions:[B(e,a)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var c=T[a]||new Set,s=new Set,t=new Set;for(c.forEach(function(u){t.add(u)});t.size>0;){var m=t;t=new Set,m.forEach(function(u){if(!s.has(u)){s.add(u);var g=T[u]||new Set;g.forEach(function(p){t.add(p)})}})}return s.forEach(function(u){var g=B(e,u);g&&i.definitions.push(g)}),i}He(P,"hasLocalRetailers");const Ge=O(()=>x(()=>import("./AvailabilityStatusViewOnlyFi-DHfN2IOW.js"),__vite__mapDeps([10,1,11,12,13,14,15,16,17]))),ze={name:"ProductDetailHeadFi",components:{CatalogSliderFi:le,GridContainerFi:Q,GridColumnsFi:ne,HeadlineFi:J,LinkFi:M,MediaDownloadDialogFi:re,RetailSearchDialogFi:Ve,AvailabilityStatusViewOnlyFi:Ge,ProductRetailerDialogFi:Ae,TextExpanderFi:me,BuyBoxModule:fe,CadLinkFi:Le,CadDetailsDialogFi:Re},mixins:[_e,V,ye,ge,ce],inject:["fields"],props:{catalogData:{type:Object,default:null},mediaDownloadLink:{type:String,default:null}},emits:["added-to-memolist"],data(){return{addToCartLoading:!1,getRetailerAvailabilityForIds:[],stickyEnabled:!1,hasLocalRetailers:!1}},apollo:{hasLocalRetailers:{query:P,variables(){return{brand:this.$fischer.brandId(),productId:this.catalogData.ProductId,locale:this.$fischer.catalogLocale()}},skip(){var e;return!this.localRetailers||!((e=this.catalogData)!=null&&e.ProductId)}},getRetailerAvailabilityForIds:{query:he,variables(){return{baseSiteId:this.$fischer.baseSiteId(),productIds:this.productIds,useGtins:this.$fischer.useGtins()}},skip(){return!this.isRetailConnectCart||this.productInCart||!this.catalogData.ProductId}}},computed:{...W({productDetailHeadMounted:"layout/getProductDetailHeadMounted"}),productIds(){var e;return(e=this.catalogData)!=null&&e.ProductId?[this.catalogData.ProductId]:null},localRetailers(){return this.$fischer.localRetailers()},retailerNotAvailable(){var a;const e=((a=this.getRetailerAvailabilityForIds)==null?void 0:a[0])&&this.getRetailerAvailabilityForIds[0].stock;return e==="empty"||e===null},isShop(){return this.$fischer.shop.isClosedShop()||this.$fischer.shop.isOnlineShop()},isRetailConnect(){return this.$fischer.shop.isRetailConnect()},isRetailConnectCart(){return this.$fischer.shop.isRetailConnectCart()},productInCart(){var a;let e=!1;return(a=this.cart)!=null&&a.products&&(e=this.cart.products.some(i=>i.articleNo===this.catalogData.ProductId)),e},apiFilters(){return this.$store.getters["product/apiFilters"]},articleNumber(){var a;const e=((a=this.catalogData)==null?void 0:a.ProductId)&&Number(this.catalogData.ProductId);return`${this.$dict.get("product-List.Table.Article-Number")} ${e}`},categorySlug(){var e,a;return((a=(e=this.catalogData)==null?void 0:e.categoryData)==null?void 0:a.Slug)&&`${this.$fischer.pages.products().url}${this.catalogData.categoryData.Slug}#productList`},productName(){var e;return this.textListValue((e=this.catalogData)==null?void 0:e.TextList,"ECOMLANG")},features(){var e;return this.textListValue((e=this.catalogData)==null?void 0:e.TextList,"POCTOPFEATURESGEN")},hasCADLink(){var e;return(e=this.catalogData)==null?void 0:e.hasCADLink},cadUrl(){return!this.catalogData||!this.catalogData.ProductId||!this.fields.cadLink||!this.fields.cadLink.value||!this.fields.cadLanguage||!this.fields.cadLanguage.value||!this.fields.cadMandant||!this.fields.cadMandant.value||!this.fields.cadLinkText||!this.fields.cadLinkText.value?null:`${this.fields.cadLink.value}?mandant=${this.fields.cadMandant.value}&cul=${this.fields.cadLanguage.value}&CadBox=2&ArtikelNr=${Number(this.catalogData.ProductId)}`},mediaDownloadFileName(){return`${this.catalogData.categoryName}-${this.catalogData.ProductName}`}},mounted(){this.$store.dispatch("layout/setProductDetailHeadMounted",!0)},created(){(this.isRetailConnectCart||this.isShop)&&this.getCurrentCart()},methods:{getCurrentCart(){if(this.$fischer.cartId())try{this.getCart(!1,!0)}catch(e){console.error("could not get current cart!",e)}},openMediaDownloadDialog(){this.$refs.mediaDownloadDialog.show()},openRetailSearchDialog(){{const e=`${this.catalogData.ProductId} - ${this.catalogData.ProductName}`;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"RCBuyLocal",productName:e})}this.$refs.retailSearchDialog.show()},openProductRetailerDialog(){{const e=`${this.catalogData.ProductId} - ${this.catalogData.ProductName}`;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"RCBuyProduct",productName:e})}this.$refs.productRetailerDialog.show()},addProduct(){this.addToCartLoading=!0,this.addProductToCart({productID:this.catalogData.ProductId,productInitialQuantity:1},this.catalogData).then(e=>{e!=null&&e.success&&(this.addToCartLoading=!1)})},onOpenCadDetailsDialog(){this.$refs.cadDetailsDialog.open()},onIntersect(e){this.stickyEnabled=!e[0].isIntersecting&&e[0].boundingClientRect.top>0}}},Ue={class:"product-detail-head-fi"},$e={class:"fi-col-start-1 fi-col-end-13 md:fi-col-end-7"},je={class:"fi-col-start-1 fi-col-end-13 md:fi-col-start-7 md:fi-col-end-13"},qe=["innerHTML"],Qe=["innerHTML"],Je={key:3,id:"buy-box-desktop",class:"product-detail-head-fi__buy-box"},We={class:"product-detail-head-fi__links"},Ze={class:"fi-col-span-6 lg:fi-col-span-5"},Ke={class:"product-detail-head-fi__features"},Xe={key:0,class:"product-detail-head-fi__retail-connect-cart-actions product-detail-head-fi__retail-connect-cart-actions--md"},Ye={class:"sticky-actions-intersector"},et={key:0,class:"product-detail-head-fi__buy-box"},tt={key:1,class:"product-detail-head-fi__retail-connect-cart-actions"};function at(e,a,i,c,s,t){const m=r("catalog-slider-fi"),u=r("headline-fi"),g=r("availability-status-view-only-fi"),p=r("link-fi"),R=r("cad-link-fi"),w=r("text-expander-fi"),v=r("button-fi"),C=r("grid-columns-fi"),L=r("media-download-dialog-fi"),I=r("retail-search-dialog-fi"),H=r("product-retailer-dialog-fi"),G=r("grid-container-fi"),z=r("buy-box-module"),U=r("cad-details-dialog-fi"),$=Z("intersect");return l(),k("div",Ue,[i.catalogData?(l(),k(K,{key:0},[f(G,null,{default:d(()=>{var N,E;return[_("div",$e,[f(m,{"catalog-data":i.catalogData,"item-name":t.productName},null,8,["catalog-data","item-name"])]),_("div",je,[t.articleNumber?(l(),n(u,{key:0,class:"product-detail-head-fi__art-nr",tag:"div",color:"brand",size:24},{default:d(()=>[_("span",{"data-test":"article-number",innerHTML:t.articleNumber},null,8,qe)]),_:1})):o("",!0),t.productName?(l(),n(u,{key:1,class:"product-detail-head-fi__name",tag:"h1",size:48},{default:d(()=>[_("span",{innerHTML:t.productName},null,8,Qe)]),_:1})):o("",!0),e.hasAvailabilityStatusOnlyPermission&&e.isLG?(l(),n(g,{key:2,fields:t.fields},null,8,["fields"])):t.isShop&&!e.hasAvailabilityStatusOnlyPermission?(l(),k("div",Je)):o("",!0),_("div",We,[f(p,{class:"product-detail-head-fi__link",href:t.categorySlug,size:18,"data-test":"product-variants-link"},{default:d(()=>[y(h(e.$dict.get("product-Family.Anchor-Link-Text")),1)]),_:1},8,["href"]),t.hasCADLink?(l(),n(R,{key:0,class:"product-detail-head-fi__link",fields:t.fields,"cad-url":t.cadUrl,"open-in-dialog":"",onOpenCadDetailsDialog:t.onOpenCadDetailsDialog},null,8,["fields","cad-url","onOpenCadDetailsDialog"])):o("",!0),(N=t.fields.customLink)!=null&&N.value&&(t.fields.customLink.value.href||t.fields.customLink.value.url)?(l(),n(p,{key:1,class:"product-detail-head-fi__link",href:t.fields.customLink.value.href?t.fields.customLink.value.href:t.fields.customLink.value.url,external:!!t.fields.customLink.value.url,target:t.fields.customLink.value.target,size:18},{default:d(()=>[y(h(t.fields.customLink.value.text),1)]),_:1},8,["href","external","target"])):o("",!0),i.mediaDownloadLink&&((E=t.fields.mediaDownloadLabel)!=null&&E.value)?(l(),n(p,{key:2,class:"product-detail-head-fi__link",href:"#",rel:"nofollow",size:18,onClick:D(t.openMediaDownloadDialog,["stop","prevent"])},{default:d(()=>[y(h(t.fields.mediaDownloadLabel.value),1)]),_:1},8,["onClick"])):o("",!0)]),f(C,{columns:6},{default:d(()=>[_("div",Ze,[_("div",Ke,[t.features?(l(),n(w,{key:0,content:{value:t.features},"max-height":400,"expand-text":e.$dict.get("global-Labels.Expander.Expand"),"reduce-text":e.$dict.get("global-Labels.Expander.Reduce")},null,8,["content","expand-text","reduce-text"])):o("",!0)]),!e.hasAvailabilityStatusOnlyPermission&&(t.isRetailConnect||t.isRetailConnectCart)?(l(),k("div",Xe,[t.localRetailers?(l(),n(v,{key:0,disabled:!s.hasLocalRetailers,type:"button",class:"button-fi__primary--large","data-test":"retail-connect-cart-action-button","data-test-2":"retail-connect-local-retailers",onClick:D(t.openRetailSearchDialog,["stop","prevent"])},{default:d(()=>[y(h(e.$dict.get("dealer-Locator.Find-your-local-Dealer")),1)]),_:1},8,["disabled","onClick"])):o("",!0),t.isRetailConnect?(l(),n(v,{key:1,type:"button","data-test":"retail-connect-cart-action-button","data-test-2":"retail-connect-retail-connect",class:F(["button__find-retail-connect",t.localRetailers?"button-fi__tertiary--large":"button-fi__primary--large"]),disabled:e.retailers!==null&&e.retailers.length===0,onClick:D(t.openProductRetailerDialog,["stop","prevent"])},{default:d(()=>[y(h(e.$dict.get("online-Shop.Product.Retail-Connect.Buy-Product")),1)]),_:1},8,["class","disabled","onClick"])):o("",!0),t.isRetailConnectCart?(l(),n(v,{key:2,class:"button-fi__tertiary--large",type:"button","data-test":"retail-connect-cart-action-button","data-test-2":"retail-connect-retail-connect-cart",disabled:!!(t.retailerNotAvailable||t.productInCart||s.addToCartLoading),onClick:D(t.addProduct,["stop","prevent"])},{default:d(()=>[y(h(t.productInCart?e.$dict.get("online-Shop.Product.Already-in-Cart"):e.$dict.get("online-Shop.Product.Add-to-Cart")),1)]),_:1},8,["disabled","onClick"])):o("",!0)])):o("",!0)])]),_:1})]),f(L,{ref:"mediaDownloadDialog","media-download-link":i.mediaDownloadLink,"file-name":t.mediaDownloadFileName,fields:t.fields},null,8,["media-download-link","file-name","fields"]),f(I,{ref:"retailSearchDialog",fields:t.fields,"catalog-id":i.catalogData.ProductId,"product-name":t.productName},null,8,["fields","catalog-id","product-name"]),f(H,{ref:"productRetailerDialog",retailers:e.retailers,"retailer-facets":e.retailerFacets},null,8,["retailers","retailer-facets"])]}),_:1}),e.hasAvailabilityStatusOnlyPermission&&!e.isLG?(l(),n(g,{key:0,fields:t.fields},null,8,["fields"])):o("",!0),X(_("span",Ye,null,512),[[$,t.onIntersect]]),e.hasAvailabilityStatusOnlyPermission?o("",!0):(l(),k("div",{key:1,class:F({"product-detail-head-fi__actions-mobile":!0,"product-detail-head-fi__actions-mobile--sticky":s.stickyEnabled})},[t.isShop?(l(),k("div",et,[e.productDetailHeadMounted?(l(),n(Y,{key:0,to:"#buy-box-desktop",disabled:!e.isMD},[f(z,{onAddedToMemolist:a[0]||(a[0]=N=>e.$emit("added-to-memolist"))})],8,["disabled"])):o("",!0)])):t.isRetailConnect||t.isRetailConnectCart||t.localRetailers?(l(),k("div",tt,[t.localRetailers?(l(),n(v,{key:0,type:"button",class:"button-fi__primary--large button__find-retailer","data-test":"retail-connect-cart-action-button","data-test-2":"retail-connect-local-retailers",onClick:D(t.openRetailSearchDialog,["stop","prevent"])},{default:d(()=>[y(h(e.$dict.get("dealer-Locator.Find-your-local-Dealer")),1)]),_:1},8,["onClick"])):o("",!0),t.isRetailConnect?(l(),n(v,{key:1,type:"button","data-test":"retail-connect-cart-action-button","data-test-2":"retail-connect-retail-connect",class:F(["button__find-retail-connect",t.localRetailers?"button-fi__tertiary--large":"button-fi__primary--large"]),disabled:e.retailers!==null&&e.retailers.length===0,onClick:D(t.openProductRetailerDialog,["stop","prevent"])},{default:d(()=>[y(h(e.$dict.get("online-Shop.Product.Retail-Connect.Buy-Product")),1)]),_:1},8,["class","disabled","onClick"])):o("",!0),t.isRetailConnectCart?(l(),n(v,{key:2,type:"button",class:"button-fi__tertiary--large button__add-to-cart","data-test":"retail-connect-cart-action-button","data-test-2":"retail-connect-retail-connect-cart",disabled:!!(t.retailerNotAvailable||t.productInCart||s.addToCartLoading),onClick:D(t.addProduct,["stop","prevent"])},{default:d(()=>[y(h(t.productInCart?e.$dict.get("online-Shop.Product.Already-in-Cart"):e.$dict.get("online-Shop.Product.Add-to-Cart")),1)]),_:1},8,["disabled","onClick"])):o("",!0)])):o("",!0)],2)),f(U,{ref:"cadDetailsDialog",fields:t.fields,"cad-url":t.cadUrl,lazy:""},null,8,["fields","cad-url"])],64)):o("",!0),a[1]||(a[1]=_("div",{id:"price-row-savings"},null,-1))])}const it=b(ze,[["render",at],["__scopeId","data-v-c6838e49"]]),lt={name:"ProductDetailPageFi",components:{ComponentWrapper:ee,ProductDetailHeadFi:it,ProductDetailAccordionsFi:ae,SectionDividerSmallFi:De,ProductItemsSliderFi:oe,CrossSellingProductTeasersFi:te,ProductDetailSchemaFi:ie},mixins:[V,pe,ke],inject:["fields"],data(){return{getCatalogProductDataById:{}}},computed:{catalogId(){return this.$fischer.catalogId("040390")},accessories(){var e;return(e=this.getCatalogProductDataById)==null?void 0:e.accessories}},created(){this.catalogId&&this.checkForMediaDownload({type:"product",id:this.catalogId}),this.handleEventTracking()},apollo:{getCatalogProductDataById:{query:ve,errorPolicy:"all",variables(){return{baseSiteId:this.$fischer.baseSiteId(),apiLang:this.$fischer.catalogLocale(),id:this.catalogId}},result({data:e}){e!=null&&e.getCatalogProductDataById&&this.trackViewItem(e.getCatalogProductDataById)},skip(){return!this.catalogId},error(){this.error=!0}}},methods:{addedToMemoList(){this.getCatalogProductDataById&&this.trackAddProductToWishlist(this.getCatalogProductDataById)},handleEventTracking(){try{const e=localStorage.getItem("recommendationClick");if(e){const{refererId:a,itemQuantity:i,guided:c}=JSON.parse(e);this.sendEvent(c?"guided_recommendation_click":"recommendation_click",{url:window?window.location.href:"",productId:this.catalogId,refererId:a,itemQuantity:i}),localStorage.removeItem("recommendationClick")}}catch(e){console.debug("failed to process recommendation click",e)}}}};function rt(e,a,i,c,s,t){const m=r("product-detail-head-fi"),u=r("product-detail-accordions-fi"),g=r("section-divider-small-fi"),p=r("product-items-slider-fi"),R=r("cross-selling-product-teasers-fi"),w=r("product-detail-schema-fi"),v=r("component-wrapper");return l(),n(v,{key:t.catalogId,class:"product-detail-page-fi"},{default:d(()=>{var C,L,I;return[f(m,{"catalog-data":s.getCatalogProductDataById,"media-download-link":e.mediaDownloadLink,fields:t.fields,onAddedToMemolist:t.addedToMemoList},null,8,["catalog-data","media-download-link","fields","onAddedToMemolist"]),f(u,{fields:t.fields,"catalog-data":s.getCatalogProductDataById},null,8,["fields","catalog-data"]),f(g),(C=t.accessories)!=null&&C.length?(l(),n(p,{key:0,"product-items":t.accessories,"slider-headline":e.$dict.get("product-Family.Accessories.Headline"),"is-light":(L=t.fields.crossSellingProductTeaserEnabled)==null?void 0:L.value},null,8,["product-items","slider-headline","is-light"])):o("",!0),(I=t.fields.crossSellingProductTeaserEnabled)!=null&&I.value?(l(),n(R,{key:1,"product-ids":s.getCatalogProductDataById.ProductId},null,8,["product-ids"])):o("",!0),s.getCatalogProductDataById?(l(),n(w,{key:2,"catalog-data":s.getCatalogProductDataById},null,8,["catalog-data"])):o("",!0)]}),_:1})}const Kt=b(lt,[["render",rt],["__scopeId","data-v-e77f4bde"]]);export{Kt as default};