import{_ as S,G as C,r,o as u,a as k,w as g,p as v,l as s,H as j,L as G,k as H,b as $,q as p,Z as x,u as P,v as E,bc as K,i as Z}from"./main-BDtKGhFI.js";import{s as z}from"./setupAccordion-BcPFWF8P.js";import{A as Q,a as J,b as W,c as X,C as Y,M as ee,P as ae}from"./ProductItemsSliderFi-ChS71DNJ.js";import{a as U,_ as O}from"./catalogMixin-CPTFZDM8.js";import{a as ie,b as ne,_ as te}from"./trackingMixin.vue_vue_type_script_lang-DSHkIFY3.js";import{P as de}from"./ProductFamilyFi-DYFwiaVc.js";import le from"./SectionDividerSmallFi-C5ZohOgE.js";import"./AccordionItemFi-CEqnmK95.js";import"./GridColumnsFi-7oYBOosq.js";import"./DocumentDownloadItemsFi-BKaUjQhQ.js";import"./index-BuUnCgYx.js";import"./LoadingIndicatorWrapper-BXUjM89f.js";import"./ProductTeasersFi-CY3HVHN5.js";import"./CarouselSliderControlsFi-Pvxw1BJy.js";import"./AvailabilityStatus-D7AKPuyi.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"./shoppingcartMixin-Bos5UiAf.js";import"./userMixin-CcbxziU4.js";import"./login-BQ8mFjOy.js";import"./getRetailerAvailabilityForIds-DHQoPBVB.js";import"./PaginationProgressBar-DQ7eJ3mz.js";import"./FacetsMenuFi-C8GRmyIH.js";import"./FacetsSelectionFi-D2gIuEVQ.js";import"./toFilterInput-BhXUZwu6.js";import"./index-BmigA8Zv.js";import"./factFinderNgFacetFragment-CIrlUR3D.js";import"./accessPrivilegesMixin-B2OlySz7.js";import"./TechnicalDetailsTableFi-a8h5E9Se.js";import"./SectionDividerFi-fHoDFEwy.js";const re={name:"ProductFamilyAccordionFi",components:{AccordionBenefitsDescriptionFi:Q,AccordionApplicationAuthorisationFi:J,AccordionAssemblyInstructionsFi:W,AccordionDocumentDownloadsFi:X,GridContainerFi:C},props:{catalogData:{type:Object,default:()=>({})}},setup(){z()}},oe={class:"product-family-accordions-fi fi-col-start-1 fi-col-end-13 lg:fi-col-start-2 lg:fi-col-end-12"};function se(e,i,a,t,l,n){const c=r("accordion-benefits-description-fi"),d=r("accordion-application-authorisation-fi"),o=r("accordion-assembly-instructions-fi"),m=r("accordion-document-downloads-fi"),y=r("grid-container-fi");return u(),k(y,{container:!1},{default:g(()=>[v("div",oe,[s(c,{"catalog-data":a.catalogData},null,8,["catalog-data"]),s(d,{"catalog-data":a.catalogData},null,8,["catalog-data"]),s(o,{"catalog-data":a.catalogData},null,8,["catalog-data"]),s(m,{"catalog-data":a.catalogData},null,8,["catalog-data"])])]),_:1})}const ce=S(re,[["render",se]]),me={name:"ProductFamilyHeadFi",components:{CatalogSliderFi:Y,GridContainerFi:C,HeadlineFi:j,LinkFi:G,MediaDownloadDialogFi:ee},mixins:[H,U],props:{fields:{type:Object,default:()=>({})},catalogData:{type:Object,default:null},mediaDownloadLink:{type:String,default:null}},emits:["scrollToVariants"],computed:{apiFilters(){return this.$store.getters["product/apiFilters"]},marketingClaim(){return this.textListValue(this.catalogData.TextList,"KAT_POS")},familyName(){return this.textListValue(this.catalogData.TextList,"BEZEICHNUNG")},description(){var e;return(e=this.catalogData)==null?void 0:e.description}},methods:{openMediaDownloadDialog(){this.$refs.mediaDownloadDialog.show()}}},ue={class:"product-family-head-fi"},ge={class:"fi-col-start-1 fi-col-end-13 md:fi-col-end-7"},ke={class:"fi-col-start-1 fi-col-end-13 md:fi-col-start-7 md:fi-col-end-12"},fe=["innerHTML"],ve=["innerHTML"],pe=["innerHTML"];function ye(e,i,a,t,l,n){const c=r("catalog-slider-fi"),d=r("headline-fi"),o=r("link-fi"),m=r("media-download-dialog-fi"),y=r("grid-container-fi");return u(),$("div",ue,[s(y,{container:!1},{default:g(()=>{var N,_;return[v("div",ge,[s(c,{"catalog-data":a.catalogData,"item-name":n.familyName},null,8,["catalog-data","item-name"])]),v("div",ke,[n.marketingClaim?(u(),k(d,{key:0,class:"product-family-head-fi__marketing-claim fi-mb-12",tag:"div",color:"brand",size:30},{default:g(()=>[v("span",{innerHTML:n.marketingClaim},null,8,fe)]),_:1})):p("",!0),n.familyName?(u(),k(d,{key:1,class:"product-family-head-fi__name",tag:"h1",size:60},{default:g(()=>[v("span",{innerHTML:n.familyName},null,8,ve)]),_:1})):p("",!0),n.description?(u(),$("div",{key:2,class:"product-family-head-fi__description",innerHTML:n.description},null,8,pe)):p("",!0),s(o,{class:"product-family-head-fi__link",href:"#",size:18,"data-test":"product-variants-link",onClick:i[0]||(i[0]=x(V=>e.$emit("scrollToVariants"),["stop","prevent"]))},{default:g(()=>[P(E(e.$dict.get("product-Family.Anchor-Link-Text")),1)]),_:1}),a.mediaDownloadLink&&((_=(N=a.fields)==null?void 0:N.mediaDownloadLabel)!=null&&_.value)?(u(),k(o,{key:3,class:"product-family-head-fi__link",rel:"nofollow",href:"#",size:18,onClick:x(n.openMediaDownloadDialog,["stop","prevent"])},{default:g(()=>[P(E(a.fields.mediaDownloadLabel.value),1)]),_:1},8,["onClick"])):p("",!0)]),s(m,{ref:"mediaDownloadDialog","media-download-link":a.mediaDownloadLink,"file-name":n.familyName,fields:a.fields},null,8,["media-download-link","file-name","fields"])]}),_:1})])}const Ne=S(me,[["render",ye],["__scopeId","data-v-de931a73"]]),_e={name:"ProductFamilySchemaFi",components:{LdJson:K},mixins:[O,U],props:{variants:{type:Array,default:null},categoryData:{type:Object,default:null}},computed:{jsonld(){var e,i,a;if(this.categoryData&&this.textListValue(this.categoryData.TextList,"BEZEICHNUNG")){const t=`${this.$fischer.hostUrlBase()}${this.$fischer.pages.products().url}`;let l=[];return(e=this.variants)!=null&&e.length&&(l=this.variants.map(n=>{const{Name:c,Slug:d,ImageURL:o,ID:m}=n.variantValuesObject[0];if(c)return{"@type":"Product",name:c,url:`${t}${d}`,productID:m,image:o}})),JSON.stringify({"@context":"https://schema.org/","@type":"ProductGroup","@id":`${t}${this.categoryData.Slug}`,brand:this.$fischer.brandName(),name:this.textListValue(this.categoryData.TextList,"BEZEICHNUNG"),description:this.categoryData.description,image:(a=(i=this.getFamilyThumbnails(this.categoryData))==null?void 0:i.map(n=>n.Url))==null?void 0:a[0],hasVariant:l})}return null}}};function he(e,i,a,t,l,n){const c=r("ld-json");return u(),k(c,{json:n.jsonld},null,8,["json"])}const Fe=S(_e,[["render",he]]);var f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCatalogCategoryDataById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"baseSiteId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BaseSiteId"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"apiLang"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"categoryId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"maxHeadings"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getCatalogCategoryDataById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"baseSiteId"},value:{kind:"Variable",name:{kind:"Name",value:"baseSiteId"}}},{kind:"Argument",name:{kind:"Name",value:"apiLang"},value:{kind:"Variable",name:{kind:"Name",value:"apiLang"}}},{kind:"Argument",name:{kind:"Name",value:"categoryId"},value:{kind:"Variable",name:{kind:"Name",value:"categoryId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"CategoryId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Media"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"mediaSliderData"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"AssemblyMedia"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Name"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"filteredMedia"},arguments:[{kind:"Argument",name:{kind:"Name",value:"outputType"},value:{kind:"StringValue",value:"PR",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Url"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"label"},name:{kind:"Name",value:"getTextListValue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"BooleanValue",value:!0}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"TextList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"Documents"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"AdditionalDocuments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"documentDownloadData"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"Approvals"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"DocumentId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"FileSize"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ValidFrom"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ValidTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Description"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"nr"},name:{kind:"Name",value:"getAttributeListValue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"ZULANR",block:!1}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"ChildDocumentIds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ParentDocumentId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"TextList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"Group"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"GroupRank"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"DocumentRank"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"TextList"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"description"},name:{kind:"Name",value:"getTextListValue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"DOKBSTMARKDESCR",block:!1}},{kind:"Argument",name:{kind:"Name",value:"striptags"},value:{kind:"BooleanValue",value:!0}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"familyLineDrawing"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"categoryAttributes"},name:{kind:"Name",value:"categoryAttributes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"max"},value:{kind:"Variable",name:{kind:"Name",value:"maxHeadings"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"AttributeKey"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"AttributeName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"RelatedCategories"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"SystemComponents"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"CategoryDisplayNamePath"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1429}};f.loc.source={body:`#import "./mediaSliderDataFragment.gql" #import "./documentDownloadDataFragment.gql" query getCatalogCategoryDataById( $baseSiteId: BaseSiteId! $apiLang: String! $categoryId: String! $maxHeadings: Int ) { getCatalogCategoryDataById( baseSiteId: $baseSiteId apiLang: $apiLang categoryId: $categoryId ) { CategoryId Media { ...mediaSliderData } AssemblyMedia { Name media: filteredMedia(outputType: "PR") { Url label: getTextListValue(first: true) TextList { Key Value } } } Documents { AdditionalDocuments { ...documentDownloadData } Approvals { DocumentId Url Name Format FileSize ValidFrom ValidTo Description nr: getAttributeListValue(key: "ZULANR") ChildDocumentIds ParentDocumentId TextList { Key Value } Group { Value GroupRank DocumentRank } } } TextList { Key Value } description: getTextListValue(key: "DOKBSTMARKDESCR", striptags: true) familyLineDrawing categoryAttributes: categoryAttributes(max: $maxHeadings) { AttributeKey AttributeName Unit } RelatedCategories Slug SystemComponents CategoryDisplayNamePath } } `,name:"GraphQL request",locationOffset:{line:1,column:1}};var B={};function q(e){return e.filter(function(i){if(i.kind!=="FragmentDefinition")return!0;var a=i.name.value;return B[a]?!1:(B[a]=!0,!0)})}f.definitions=f.definitions.concat(q(ie.definitions));f.definitions=f.definitions.concat(q(ne.definitions));function h(e,i){if(e.kind==="FragmentSpread")i.add(e.name.value);else if(e.kind==="VariableDefinition"){var a=e.type;a.kind==="NamedType"&&i.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(t){h(t,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(t){h(t,i)}),e.definitions&&e.definitions.forEach(function(t){h(t,i)})}var D={};(function(){f.definitions.forEach(function(i){if(i.name){var a=new Set;h(i,a),D[i.name.value]=a}})})();function R(e,i){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==i)return t}}function Se(e,i){var a={kind:e.kind,definitions:[R(e,i)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var t=D[i]||new Set,l=new Set,n=new Set;for(t.forEach(function(d){n.add(d)});n.size>0;){var c=n;n=new Set,c.forEach(function(d){if(!l.has(d)){l.add(d);var o=D[d]||new Set;o.forEach(function(m){n.add(m)})}})}return l.forEach(function(d){var o=R(e,d);o&&a.definitions.push(o)}),a}Se(f,"getCatalogCategoryDataById");var b={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"searchProductsForFamilyNg"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"baseSiteId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BaseSiteId"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"factFinderChannel"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FactFinderChannel"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"quantity"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"FactFinderNgFacetElementInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extraFilters"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"FactFinderNgFacetElementInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchProductsForFamilyNg"},arguments:[{kind:"Argument",name:{kind:"Name",value:"baseSiteId"},value:{kind:"Variable",name:{kind:"Name",value:"baseSiteId"}}},{kind:"Argument",name:{kind:"Name",value:"factFinderChannel"},value:{kind:"Variable",name:{kind:"Name",value:"factFinderChannel"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}},{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"quantity"},value:{kind:"Variable",name:{kind:"Name",value:"quantity"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}},{kind:"Argument",name:{kind:"Name",value:"extraFilters"},value:{kind:"Variable",name:{kind:"Name",value:"extraFilters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"variantValuesObject"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ImageURL"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ID"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:612}};b.loc.source={body:`query searchProductsForFamilyNg( $baseSiteId: BaseSiteId! $factFinderChannel: FactFinderChannel! $language: String! $id: String! $page: Int $quantity: Int $filters: [FactFinderNgFacetElementInput] $extraFilters: [FactFinderNgFacetElementInput] ) { searchProductsForFamilyNg( baseSiteId: $baseSiteId factFinderChannel: $factFinderChannel language: $language id: $id page: $page quantity: $quantity filters: $filters extraFilters: $extraFilters ) { hits { variantValuesObject { ImageURL Slug Name ID } } } } `,name:"GraphQL request",locationOffset:{line:1,column:1}};function F(e,i){if(e.kind==="FragmentSpread")i.add(e.name.value);else if(e.kind==="VariableDefinition"){var a=e.type;a.kind==="NamedType"&&i.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(t){F(t,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(t){F(t,i)}),e.definitions&&e.definitions.forEach(function(t){F(t,i)})}var I={};(function(){b.definitions.forEach(function(i){if(i.name){var a=new Set;F(i,a),I[i.name.value]=a}})})();function M(e,i){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==i)return t}}function be(e,i){var a={kind:e.kind,definitions:[M(e,i)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var t=I[i]||new Set,l=new Set,n=new Set;for(t.forEach(function(d){n.add(d)});n.size>0;){var c=n;n=new Set,c.forEach(function(d){if(!l.has(d)){l.add(d);var o=I[d]||new Set;o.forEach(function(m){n.add(m)})}})}return l.forEach(function(d){var o=M(e,d);o&&a.definitions.push(o)}),a}be(b,"searchProductsForFamilyNg");const De=6,Ie={name:"ProductFamilyPageFi",components:{ComponentWrapper:Z,GridContainerFi:C,ProductFamilyHeadFi:Ne,ProductFamilyFi:de,ProductFamilyAccordionsFi:ce,SectionDividerSmallFi:le,ProductItemsSliderFi:ae,ProductFamilySchemaFi:Fe},mixins:[H,O,te],props:{fields:{type:Object,default:()=>({})}},data(){return{getCatalogCategoryDataById:{},searchProductsForFamilyNg:null,approvals:["ZULASSUNG_D","ZULASSUNG_E","ZULASSUNG_I","SEISMIC"]}},computed:{approvalsEnabled:{get(){return this.$store.getters["productList/getApprovalsEnabled"]},set(e){this.$store.dispatch("productList/setApprovalsEnabled",e)}},productsMaxHeadings(){var e,i;return Math.max(((i=(e=this.getCatalogCategoryDataById)==null?void 0:e.categoryAttributes)==null?void 0:i.length)||null,De)},catalogId(){return this.$fischer.catalogId("1001340242")},systemComponents(){var e,i;return(i=(e=this.getCatalogCategoryDataById)==null?void 0:e.SystemComponents)==null?void 0:i.map(a=>({ProductId:a}))},relatedCategories(){var e;return(e=this.getCatalogCategoryDataById)==null?void 0:e.RelatedCategories},familyLineDrawing(){var i,a;const e=["PF_EB_F","PF_EB_U","PF_S_01_F","PF_S_01_U","PF_S_02_F","PF_S_02_U"];return(a=(i=this.getCatalogCategoryDataById)==null?void 0:i.Media)==null?void 0:a.find(t=>t.OutputType==="PR"&&e.includes(t.NameConvention))}},watch:{productsMaxHeadings:{handler(e){this.$store.dispatch("productList/setMaxHeadings",e)},immediate:!0}},created(){this.catalogId&&this.checkForMediaDownload({type:"category",id:this.catalogId}),this.handleEventTracking()},apollo:{getCatalogCategoryDataById:{query:f,errorPolicy:"all",variables(){return{baseSiteId:this.$fischer.baseSiteId(),apiLang:this.$fischer.catalogLocale(),categoryId:this.catalogId}},skip(){return!this.catalogId},result({data:e}){e!=null&&e.getCatalogCategoryDataById&&this.trackViewItem(e.getCatalogCategoryDataById,!0)},error(){this.error=!0}},searchProductsForFamilyNg:{query:b,variables(){return{id:this.catalogId,baseSiteId:this.$fischer.baseSiteId(),factFinderChannel:this.$fischer.factFinderChannel(),language:this.$fischer.catalogLocale(),page:1,quantity:1e4,filters:[],extraFilters:[{associatedFieldName:"Hidden_K",name:"!true"}]}},skip(){return!this.$fischer.baseSiteId()||!this.catalogId},error(e){console.error(e)}}},methods:{scrollToVariants(){this.$smoothScroll({scrollTo:this.$refs.variants.$el,duration:500,updateHistory:!1,offset:-120})},handleEventTracking(){try{const e=localStorage.getItem("recommendationClick");if(e){const{refererId:i,itemQuantity:a,guided:t}=JSON.parse(e);this.sendEvent(t?"guided_recommendation_click":"recommendation_click",{url:window?window.location.href:"",productId:this.catalogId,refererId:i,itemQuantity:a}),localStorage.removeItem("recommendationClick")}}catch(e){console.debug("failed to process recommendation click",e)}}}},Ce={class:"fi-col-span-12 fi-col-start-1"};function Ve(e,i,a,t,l,n){const c=r("product-family-head-fi"),d=r("section-divider-small-fi"),o=r("product-family-fi"),m=r("product-family-accordions-fi"),y=r("grid-container-fi"),N=r("product-items-slider-fi"),_=r("product-family-schema-fi"),V=r("component-wrapper");return u(),k(V,{key:n.catalogId,class:"product-family-page-fi"},{default:g(()=>{var T,w,L;return[s(y,null,{default:g(()=>{var A;return[v("div",Ce,[s(c,{"catalog-data":l.getCatalogCategoryDataById,"media-download-link":e.mediaDownloadLink,fields:a.fields,onScrollToVariants:n.scrollToVariants},null,8,["catalog-data","media-download-link","fields","onScrollToVariants"]),s(d),s(o,{ref:"variants",fields:a.fields,"family-line-drawing":(A=n.familyLineDrawing)==null?void 0:A.Url,"category-attributes":l.getCatalogCategoryDataById.categoryAttributes,"max-headings":n.productsMaxHeadings,approvals:l.approvals,class:"product-family-page-fi__variants",onScrollToVariants:n.scrollToVariants},null,8,["fields","family-line-drawing","category-attributes","max-headings","approvals","onScrollToVariants"]),s(d),s(m,{"catalog-data":l.getCatalogCategoryDataById},null,8,["catalog-data"])])]}),_:1}),s(d),(T=n.systemComponents)!=null&&T.length?(u(),k(N,{key:0,"product-items":n.systemComponents,"slider-headline":e.$dict.get("product-Family.System-Components.Headline"),"is-family":""},null,8,["product-items","slider-headline"])):p("",!0),(w=n.relatedCategories)!=null&&w.length?(u(),k(N,{key:1,"product-items":n.relatedCategories,"slider-headline":e.$dict.get("product-Family.Related-Categories.Headline"),"is-family":"","is-light":""},null,8,["product-items","slider-headline"])):p("",!0),s(_,{variants:(L=l.searchProductsForFamilyNg)==null?void 0:L.hits,"category-data":l.getCatalogCategoryDataById},null,8,["variants","category-data"])]}),_:1})}const ma=S(Ie,[["render",Ve]]);export{ma as default};