const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NoProductsFoundFi-CSQbFpZO.js","assets/main-BDtKGhFI.js","assets/AssetService-SVtDjug-.js","assets/ProductListClosedShopFi-kY693-zu.js","assets/AvailabilityStatus-D7AKPuyi.js","assets/BasePriceFi-Dh4C-Phq.js","assets/sellingUnitMixin-BqI7WVPQ.js","assets/LoadingIndicatorWrapper-BXUjM89f.js","assets/PriceSavingsFi-C29VJZ5l.js","assets/PriceSavingsInPercentFi-CLeStdBK.js","assets/ProductPackageSizeFi-AuM1EN77.js","assets/ProductPartialsFi-Cax_tMXT.js","assets/QuantitySteps-CvBALafz.js","assets/QuantityStepsUpdater-DBPTVDIE.js","assets/userMixin-CcbxziU4.js","assets/login-BQ8mFjOy.js","assets/setupAccordion-BcPFWF8P.js","assets/PaginationProgressBar-DQ7eJ3mz.js","assets/QuantityModificationHintFi-B_j40TS1.js","assets/FacetsMenuFi-C8GRmyIH.js","assets/FacetsSelectionFi-D2gIuEVQ.js","assets/toFilterInput-BhXUZwu6.js","assets/index-BmigA8Zv.js","assets/factFinderNgFacetFragment-CIrlUR3D.js","assets/getRetailerAvailabilityForIds-DHQoPBVB.js","assets/accessPrivilegesMixin-B2OlySz7.js","assets/shoppingcartMixin-Bos5UiAf.js","assets/trackingMixin.vue_vue_type_script_lang-DSHkIFY3.js","assets/TechnicalDetailsTableFi-a8h5E9Se.js"])))=>i.map(i=>d[i]);
import{_ as k,I as A,k as w,ao as ve,r as l,o,b as u,p,f as D,n as b,l as f,t as ye,m as L,F as N,e as B,a as h,q as v,u as P,v as g,w as _,Z as V,H as W,C as J,G as O,L as be,Y as ke,b4 as Fe,B as Ne,bd as Pe,bf as j,ab as Y,J as Z,i as Ie}from"./main-BDtKGhFI.js";import{s as Se}from"./setupAccordion-BcPFWF8P.js";import{_ as Le}from"./sellingUnitMixin-BqI7WVPQ.js";import{P as $e}from"./PaginationProgressBar-DQ7eJ3mz.js";import{Q as we}from"./QuantityModificationHintFi-B_j40TS1.js";import{F as Te}from"./FacetsMenuFi-C8GRmyIH.js";import{F as Ce,_ as Ae,a as De,s as Ve,t as He}from"./toFilterInput-BhXUZwu6.js";import{d as X,m as Ee}from"./factFinderNgFacetFragment-CIrlUR3D.js";import{d as Be}from"./getRetailerAvailabilityForIds-DHQoPBVB.js";import{_ as ee}from"./accessPrivilegesMixin-B2OlySz7.js";import{_ as Oe}from"./shoppingcartMixin-Bos5UiAf.js";import{_ as qe}from"./userMixin-CcbxziU4.js";import{L as ze}from"./LoadingIndicatorWrapper-BXUjM89f.js";import{T as Re,_ as Me}from"./TechnicalDetailsTableFi-a8h5E9Se.js";import{P as Ue}from"./PriceSavingsInPercentFi-CLeStdBK.js";const je={name:"AccordionCustomizableFi",components:{IconFi:A},mixins:[w,ve],props:{id:{type:String,default:()=>`accordion_${Math.random()}`},label:{type:String,default:null},color:{type:String,default:null},icon:{type:String,default:"chevron-down"},lazyContent:{type:Boolean},itemIndex:{type:Number,default:null,required:!0},multiple:{type:Boolean,default:!1},defaultOpenPanels:{type:Array,default:()=>[]},shopType:{type:String,default:"default"},ignoreOthers:{type:Boolean,default:!1},scrollTo:{type:Boolean,default:!1}},data(){return{isDefaultOpen:!1,innerPadding:60}},computed:{rotate(){return this.isOpen?"180":"0"}},methods:{toggleContent(){this.toggleAccordion()},getToggleIconSize(){return!this.isMD&&(this.shopType==="retailConnect"||this.shopType==="retailConnectCart")?"2":"0_8"}}},Qe=["id","data-index"],Ke=["id","aria-expanded","aria-controls"],Ge={class:"accordion-customizable-fi-panel__icon-wrapper"},xe=["id","label","aria-hidden"],We={class:"accordion-customizable-fi-panel__content__wrapper"},Je={class:"accordion-customizable-fi-panel__card"};function Ye(e,i,t,n,s,a){const d=l("icon-fi");return o(),u("div",{id:t.id,class:b(["accordion-customizable-fi-panel",e.isOpen?"accordion-customizable-fi-panel--active":""]),"data-index":t.itemIndex},[p("div",{id:`${t.id}_button`,ref:"accordionItemHeader","aria-expanded":e.isOpen,"aria-controls":`${t.id}_content`,class:"accordion-customizable-fi-panel__header",type:"button",onClick:i[0]||(i[0]=(...r)=>a.toggleContent&&a.toggleContent(...r))},[D(e.$slots,"headline"),p("div",Ge,[p("div",{class:b(`accordion-customizable-fi-panel__icon accordion-customizable-fi-panel__icon--${t.shopType}`)},[f(d,{rotate:a.rotate,size:a.getToggleIconSize(),icon:t.icon,"aria-hidden":"true"},null,8,["rotate","size","icon"])],2)])],8,Ke),p("div",{id:`${t.id}_content`,ref:"content",style:ye({gridTemplateRows:e.isOpen?"1fr":"0fr"}),label:t.label,"aria-hidden":!e.isOpen,role:"region",class:"accordion-customizable-fi-panel__content"},[p("div",We,[p("div",Je,[D(e.$slots,"content")])])],12,xe)],10,Qe)}const Ze=k(je,[["render",Ye]]),Xe={name:"AccordionCustomizableWrapperFi",props:{theme:{type:String,default:""},color:{type:String,default:null}},setup(){Se()},computed:{colorSchema(){return this.color?`accordion--${this.color}`:""},themeClass(){return`accordion--${this.theme}-theme`}}},et={class:"accordion-customizable-fi__panels","data-test":"accordion-customizable-panels"};function tt(e,i,t,n,s,a){return o(),u("div",{class:b(["accordion-customizable-fi",a.themeClass,a.colorSchema])},[p("div",et,[D(e.$slots,"default")])],2)}const it=k(Xe,[["render",tt]]);var I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getFamilyBaseFacetsNg"},variableDefinitions:[{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:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CatalogLocale"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"baseSiteId"}},type:{kind:"NamedType",name:{kind:"Name",value:"BaseSiteId"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getFamilyBaseFacetsNg"},arguments:[{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:"baseSiteId"},value:{kind:"Variable",name:{kind:"Name",value:"baseSiteId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"factFinderNgFacetFragment"},directives:[]}]}}]}}],loc:{start:0,end:362}};I.loc.source={body:`#import "./factFinderNgFacetFragment.gql"

query getFamilyBaseFacetsNg(
  $factFinderChannel: FactFinderChannel!
  $id: String!
  $language: CatalogLocale!
  $baseSiteId: BaseSiteId
) {
  getFamilyBaseFacetsNg(
    factFinderChannel: $factFinderChannel
    language: $language
    id: $id
    baseSiteId: $baseSiteId
  ) {
    ...factFinderNgFacetFragment
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Q={};function at(e){return e.filter(function(i){if(i.kind!=="FragmentDefinition")return!0;var t=i.name.value;return Q[t]?!1:(Q[t]=!0,!0)})}I.definitions=I.definitions.concat(at(X.definitions));function T(e,i){if(e.kind==="FragmentSpread")i.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&i.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(n){T(n,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(n){T(n,i)}),e.definitions&&e.definitions.forEach(function(n){T(n,i)})}var H={};(function(){I.definitions.forEach(function(i){if(i.name){var t=new Set;T(i,t),H[i.name.value]=t}})})();function K(e,i){for(var t=0;t<e.definitions.length;t++){var n=e.definitions[t];if(n.name&&n.name.value==i)return n}}function nt(e,i){var t={kind:e.kind,definitions:[K(e,i)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var n=H[i]||new Set,s=new Set,a=new Set;for(n.forEach(function(r){a.add(r)});a.size>0;){var d=a;a=new Set,d.forEach(function(r){if(!s.has(r)){s.add(r);var m=H[r]||new Set;m.forEach(function(y){a.add(y)})}})}return s.forEach(function(r){var m=K(e,r);m&&t.definitions.push(m)}),t}nt(I,"getFamilyBaseFacetsNg");var S={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:"catalogLocale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CatalogLocale"}}},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:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeUnselectedFacets"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!0},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:"ID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"catalogProductData"},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:"catalogLocale"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProductId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ProductName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Attributes"},arguments:[],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:"TechnicalName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Unit"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"Slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasCADLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productLineDrawing"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"packagingImage"},name:{kind:"Name",value:"getMediaUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"outputType"},value:{kind:"StringValue",value:"PR",block:!1}},{kind:"Argument",name:{kind:"Name",value:"nameConvention"},value:{kind:"StringValue",value:"P_V_F",block:!1}}],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"facets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"factFinderNgFacetFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"facetDataUnselected"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeUnselectedFacets"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"factFinderNgFacetFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"totalHits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"query"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1345}};S.loc.source={body:`#import "./factFinderNgFacetFragment.gql"

query searchProductsForFamilyNg(
  $baseSiteId: BaseSiteId!
  $factFinderChannel: FactFinderChannel!
  $language: String!
  $catalogLocale: CatalogLocale!
  $id: String!
  $page: Int
  $quantity: Int
  $filters: [FactFinderNgFacetElementInput]
  $extraFilters: [FactFinderNgFacetElementInput]
  $includeUnselectedFacets: Boolean = true
) {
  searchProductsForFamilyNg(
    baseSiteId: $baseSiteId
    factFinderChannel: $factFinderChannel
    language: $language
    id: $id
    page: $page
    quantity: $quantity
    filters: $filters
    extraFilters: $extraFilters
  ) {
    hits {
      variantValuesObject {
        ImageURL
        ID

        catalogProductData(
          baseSiteId: $baseSiteId
          apiLang: $catalogLocale
        ) {
          ProductId
          ProductName
          Attributes {
            AttributeKey
            AttributeName
            TechnicalName
            Value
            Unit
          }
          Slug
          hasCADLink
          productLineDrawing
          packagingImage: getMediaUrl(outputType: "PR", nameConvention: "P_V_F")
        }
      }
    }

    facets {
      ...factFinderNgFacetFragment
    }
    facetDataUnselected @include(if: $includeUnselectedFacets) {
      ...factFinderNgFacetFragment
    }

    totalHits
    query
  }
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var G={};function st(e){return e.filter(function(i){if(i.kind!=="FragmentDefinition")return!0;var t=i.name.value;return G[t]?!1:(G[t]=!0,!0)})}S.definitions=S.definitions.concat(st(X.definitions));function C(e,i){if(e.kind==="FragmentSpread")i.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&i.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(n){C(n,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(n){C(n,i)}),e.definitions&&e.definitions.forEach(function(n){C(n,i)})}var E={};(function(){S.definitions.forEach(function(i){if(i.name){var t=new Set;C(i,t),E[i.name.value]=t}})})();function x(e,i){for(var t=0;t<e.definitions.length;t++){var n=e.definitions[t];if(n.name&&n.name.value==i)return n}}function rt(e,i){var t={kind:e.kind,definitions:[x(e,i)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var n=E[i]||new Set,s=new Set,a=new Set;for(n.forEach(function(r){a.add(r)});a.size>0;){var d=a;a=new Set,d.forEach(function(r){if(!s.has(r)){s.add(r);var m=E[r]||new Set;m.forEach(function(y){a.add(y)})}})}return s.forEach(function(r){var m=x(e,r);m&&t.definitions.push(m)}),t}rt(S,"searchProductsForFamilyNg");const ot={name:"ProductAttributesFi",components:{IconFi:A},mixins:[w],props:{attributes:{type:Array,required:!0}},computed:{...L({approvalsEnabled:"productList/getApprovalsEnabled"})}},dt={key:0,class:"product-attributes-fi"},lt=["innerHTML"],ct=["innerHTML"];function ut(e,i,t,n,s,a){const d=l("icon-fi");return t.attributes?(o(),u("div",dt,[(o(!0),u(N,null,B(t.attributes,(r,m)=>(o(),u("div",{key:r.AttributeKey,class:b({[`attribute--${m}`]:!0,"product-attributes-fi__item":!0,"product-attributes-fi__item--icon":r.Value==="relevant"})},[r!=null&&r.Value?(o(),u(N,{key:0},[r.Value==="relevant"?(o(),h(d,{key:0,class:"product-attributes-fi__icon",icon:"check"})):(o(),u("span",{key:1,innerHTML:r.Value},null,8,lt)),r.Unit?(o(),u("span",{key:2,class:"product-attributes-fi__item__unit",innerHTML:r.Unit},null,8,ct)):v("",!0)],64)):(o(),u(N,{key:1},[P(" — ")],64))],2))),128))])):v("",!0)}const mt=k(ot,[["render",ut],["__scopeId","data-v-ef78f12b"]]),pt={name:"ProductAttributesToggleFi",props:{isBlock:{type:Boolean,default:!1}},emits:["toggle-approvals"],computed:{...L({shopType:"productList/getShopType"}),approvalsEnabled:{get(){return this.$store.getters["productList/getApprovalsEnabled"]},set(e){this.$store.dispatch("productList/setApprovalsEnabled",e)}}}},ft={class:"product-attributes-toggle-fi__label"};function gt(e,i,t,n,s,a){const d=l("toggle-fi");return o(),u("div",{class:b(["product-attributes-toggle-fi",t.isBlock?"product-attributes-toggle-fi--is-block":"",e.shopType?`product-attributes-toggle-fi--${e.shopType}`:""])},[p("span",ft,g(e.$dict.get("product-List.General.Approvals-Switch")),1),f(d,{modelValue:a.approvalsEnabled,"onUpdate:modelValue":i[0]||(i[0]=r=>a.approvalsEnabled=r),class:"product-attributes-toggle-fi__switch",onClick:i[1]||(i[1]=r=>e.$emit("toggle-approvals"))},null,8,["modelValue"])],2)}const ht=k(pt,[["render",gt],["__scopeId","data-v-5592940e"]]),_t={name:"ProductBuyButtonFi",components:{IconFi:A,LoadingIndicatorWrapper:ze},props:{item:{type:Object,default:null},productDetails:{type:Object,default:()=>({})},isInProgress:{type:Boolean,default:!1},isButtonDisabled:{type:Boolean,default:!1},isButtonHidden:{type:Boolean,default:!1}},emits:["add-product"],computed:{...L({shopType:"productList/getShopType"})}};function vt(e,i,t,n,s,a){const d=l("icon-fi"),r=l("button-fi"),m=l("loading-indicator-wrapper");return o(),u("div",{class:"product-buy-button-fi",onClick:i[1]||(i[1]=V(()=>{},["stop"]))},[f(m,{loading:t.isInProgress,dark:"",variant:"spinnerLocal",spinoff:"in-relative-centered",class:b(["product-buy-button-fi__loader-wrapper",e.shopType?`product-buy-button-fi__loader-wrapper--${e.shopType}`:""])},{default:_(()=>[t.isButtonHidden?v("",!0):(o(),h(r,{key:0,disabled:t.isButtonDisabled,"data-productid":t.item?t.item.ID:null,"data-productname":t.item?`${t.item.ID} - ${t.item.catalogProductData.ProductName}`:null,"aria-label":e.$dict.get("checkout.Cart.Add-Basket"),type:"button",class:b(["button-fi__icon","button-fi__primary","product-buy-button-fi__cart-button",e.shopType?`product-buy-button-fi__cart-button--${e.shopType}`:""]),"data-test":"product-buy-button","data-test-2":t.isButtonDisabled?"product-buy-button-disabled":null,onClick:i[0]||(i[0]=V(y=>e.$emit("add-product",t.productDetails),["stop"]))},{default:_(()=>[f(d,{icon:"shopping-cart",color:"white"})]),_:1},8,["disabled","data-productid","data-productname","aria-label","class","data-test-2"]))]),_:1},8,["loading","class"])])}const yt=k(_t,[["render",vt],["__scopeId","data-v-77783207"]]),bt={name:"ProductContentFi",components:{HeadlineFi:W,CloudImageFi:J,GridContainerFi:O,TechnicalDetailsTableFi:Re},mixins:[w],inject:["fields"],props:{item:{type:Object,default:null},attributes:{type:Array,required:!0},familyLineDrawing:{type:[String,null],default:null},bestPrice:{type:Object,default:null}},computed:{productLineDrawing(){var e,i;return((i=(e=this.item)==null?void 0:e.catalogProductData)==null?void 0:i.productLineDrawing)||this.familyLineDrawing}}},kt={class:"product-content-fi"},Ft={class:"product-content-fi__table-container"},Nt={key:0,class:"product-content-fi__media-container"};function Pt(e,i,t,n,s,a){const d=l("headline-fi"),r=l("technical-details-table-fi"),m=l("cloud-image-fi"),y=l("grid-container-fi");return o(),u("div",kt,[e.isLG?(o(),h(d,{key:0,class:"product-content-fi__headline",tag:"div",size:21},{default:_(()=>[P(g(e.$dict.get("product-List.Table.Attribute-Content")),1)]),_:1})):v("",!0),f(y,{container:!1},{default:_(()=>[p("div",Ft,[f(r,{item:t.item,attributes:t.attributes},null,8,["item","attributes"])]),a.productLineDrawing?(o(),u("div",Nt,[f(m,{src:a.productLineDrawing,class:"product-content-fi__image",alt:"",width:"400","do-not-replace-url":""},null,8,["src"])])):v("",!0)]),_:1})])}const It=k(bt,[["render",Pt],["__scopeId","data-v-ccc2047c"]]),St={name:"ProductIdentifierFi",components:{CloudImageFi:J,LinkFi:be,PriceSavingsInPercentFi:Ue},mixins:[w,ke,Me],props:{item:{type:Object,default:null},bestPrice:{type:Object,default:()=>({})},clickSource:{type:String,default:null},showVariantImage:{type:Boolean,default:!1}},data(){return{hasLongTitle:!1}},computed:{...L({shopType:"productList/getShopType",windowDimensions:"layout/getWindowDimensions"}),previewImage(){var e;return((e=this.item.catalogProductData)==null?void 0:e.packagingImage)||this.item.ImageURL}},watch:{windowDimensions:{deep:!0,handler(){this.throttledUpdateProductLink()}}},mounted(){this.updateProductLink(),this.throttledUpdateProductLink=Fe(200,this.updateProductLink)},methods:{onClick(e,i){if(!this.clickSource)return;const n=this.$store.getters["navigation/productBreadcrumb"].map(s=>s.title).join("/");this.sendClickToEventHub({clickSource:this.clickSource,pageTitle:this.item.catalogProductData.ProductName,productId:this.item.catalogProductData.ProductId,productTitle:this.item.catalogProductData.ProductName,query:`[${this.clickSource}]:/${n}/${this.item.catalogProductData.ProductName}`},e,i)},updateProductLink(){!this.$refs.productName||!this.$refs.productName.$el||!this.$refs.productNameFull||(this.hasLongTitle=this.$refs.productNameFull.offsetHeight>this.$refs.productName.$el.offsetHeight||!1)}}},Lt={key:0,class:"product-identifier-fi__product-image"},$t=["href","title"],wt={class:"product-identifier-fi__data"},Tt={key:0,class:"product-identifier-fi__article-number","data-test":"article-number"};function Ct(e,i,t,n,s,a){const d=l("cloud-image-fi"),r=l("price-savings-in-percent-fi"),m=l("link-fi");return o(),u("div",{class:b(["product-identifier-fi",`product-identifier-fi--${e.shopType}`,t.showVariantImage?"product-identifier-fi--with-image":""]),onClick:i[1]||(i[1]=V(()=>{},["stop"]))},[t.showVariantImage?(o(),u("div",Lt,[p("a",{class:"product-identifier-fi__product-image__link",href:e.getSlugLink(t.item.catalogProductData),title:t.item.catalogProductData.ProductName,onLinkClick:i[0]||(i[0]=(...y)=>a.onClick&&a.onClick(...y))},[a.previewImage?(o(),h(d,{key:0,src:a.previewImage,alt:t.item.name,width:e.isLG?"90":"67",height:e.isLG?"90":"67",trim:"",params:"func=fit&bg_colour=FFF",class:"product-identifier-fi__product-image__image"},null,8,["src","alt","width","height"])):v("",!0)],40,$t)])):v("",!0),p("div",wt,[f(r,{class:"product-identifier-fi__price-savings","best-price":t.bestPrice,theme:"product-list-view"},null,8,["best-price"]),f(m,{ref:"productName",class:"product-identifier-fi__title",primary:"",theme:s.hasLongTitle?"product-list-view":"",href:e.getSlugLink(t.item.catalogProductData),title:t.item.catalogProductData.ProductName,size:16,onLinkClick:a.onClick},{default:_(()=>[p("span",{ref:"productNameFull"},g(t.item.catalogProductData.ProductName),513)]),_:1},8,["theme","href","title","onLinkClick"]),t.item.catalogProductData.ProductId?(o(),u("div",Tt,g(e.$dict.get("product-List.Table.Article-Number"))+" "+g(t.item.catalogProductData.ProductId),1)):v("",!0)])],2)}const At=k(St,[["render",Ct],["__scopeId","data-v-568d6834"]]),Dt={name:"ProductListHeadFi",components:{GridContainerFi:O},props:{categoryAttributes:{type:Array,required:!0},totalHits:{type:Number,default:0},showVariantImage:{type:Boolean,default:!1}},computed:{...L({shopType:"productList/getShopType",maxHeadings:"productList/getMaxHeadings"})}},Vt=["data-test-2"],Ht={class:"product-list-head-fi__group"},Et=["innerHTML"],Bt=["innerHTML"];function Ot(e,i,t,n,s,a){const d=l("grid-container-fi");return o(),h(d,{class:b(["product-list-head-fi",`product-list-head-fi--${e.shopType}`,t.showVariantImage?"product-list-head-fi--with-image":""]),container:!1},{default:_(()=>[p("div",{class:"product-list-head-fi__item product-list-head-fi__item--totals","data-test":"product-list-totals","data-test-2":t.totalHits},g(t.totalHits?e.$dict.get("product-List.Table.Product-Variants",[t.totalHits]):""),9,Vt),p("div",Ht,[(o(!0),u(N,null,B(t.categoryAttributes,(r,m)=>(o(),u("div",{key:r.AttributeKey,class:b(["product-list-head-fi__group-item",`product-list-head-fi__group-item--1-${e.maxHeadings}`,`attribute--${m}`])},[p("span",{class:"product-list-head-fi__attribute-name",innerHTML:r.AttributeName},null,8,Et),r.technicalName?(o(),u("p",{key:0,class:"product-list-head-fi__technical-name--head-item",innerHTML:r.technicalName},null,8,Bt)):v("",!0)],2))),128))])]),_:1},8,["class"])}const qt=k(Dt,[["render",Ot],["__scopeId","data-v-2b4ba65a"]]),zt={name:"ProductListLegendFi",components:{IconFi:A}},Rt={class:"product-list-legend-fi"},Mt={class:"product-list-legend-fi__item"},Ut={class:"product-list-legend-fi__item-value"},jt={class:"product-list-legend-fi__item"},Qt={class:"product-list-legend-fi__item-value"};function Kt(e,i,t,n,s,a){const d=l("icon-fi");return o(),u("div",Rt,[P(g(e.$dict.get("product-Catalog.Block-Labels.Descendant-Variants.Legend"))+" ",1),p("span",Mt,[f(d,{icon:"check"}),i[0]||(i[0]=P(" = ")),p("span",Ut,g(e.$dict.get("product-Catalog.Block-Labels.Descendant-Variants.Permission-Available")),1)]),p("span",jt,[i[1]||(i[1]=p("span",{class:"product-list-legend-fi__item-key"},"—",-1)),i[2]||(i[2]=P(" = ")),p("span",Qt,g(e.$dict.get("product-Catalog.Block-Labels.Descendant-Variants.Permission-not-Available")),1)])])}const Gt=k(zt,[["render",Kt],["__scopeId","data-v-cc5796e0"]]),xt=Y(()=>Z(()=>import("./NoProductsFoundFi-CSQbFpZO.js"),__vite__mapDeps([0,1,2]))),Wt=Y(()=>Z(()=>import("./ProductListClosedShopFi-kY693-zu.js"),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]))),Jt={name:"ProductListViewFi",components:{PaginationProgressBar:$e,LoadingIndicator:Ne,GridContainerFi:O,AccordionCustomizableFi:Ze,AccordionCustomizableWrapperFi:it,FacetsMenuFi:Te,FactFinderFacetFi:Ce,NoProductsFoundFi:xt,ProductAttributesFi:mt,ProductAttributesToggleFi:ht,ProductBuyButtonFi:yt,ProductContentFi:It,ProductIdentifierFi:At,ProductListClosedShopFi:Wt,ProductListHeadFi:qt,ProductListLegendFi:Gt,QuantityModificationHintFi:we},mixins:[Oe,Le,Ae,ee,qe,De,Pe,w],inject:["fields"],props:{shopType:{type:String,default:""},devData:{type:Object,default:null},familyLineDrawing:{type:[String,null],default:null},categoryAttributes:{type:Array,required:!0},approvals:{type:Array,default:()=>[]},clickSource:{type:String,default:null}},emits:["ready"],data(){return{pagination:{page:1,pageSize:18,total:0,initial:1},isLoading:!0,count:0,showLegend:!1,searchProductsForFamilyNg:null,getRetailerAvailabilityForIds:[],getFamilyBaseFacetsNg:null,filters:[],createdHook:!0,isMounted:!1}},apollo:{getRetailerAvailabilityForIds:{query:Be,variables(){const{baseSiteId:e}=this;return{baseSiteId:e,productIds:this.productIds,useGtins:this.$fischer.useGtins()}},skip(){return!this.isMounted||!this.isRetailConnectCart||this.productIds.length===0}},searchProductsForFamilyNg:{query:S,variables(){return this.createApolloVariables()},skip(){return this.onCreated(),!this.baseSiteId||!this.$fischer.catalogId()},result({data:e}){e!=null&&e.searchProductsForFamilyNg&&(this.unselectedFacets=e.searchProductsForFamilyNg.facetDataUnselected,this.products=e.searchProductsForFamilyNg.hits.map(i=>({...i.variantValuesObject?i.variantValuesObject[0]:i})),this.pagination.total=e.searchProductsForFamilyNg.totalHits,this.setLegend()),this.isLoading=!1,this.loadingQuantityInputs={},this.isAddingItemToCart={},this.$emit("ready")},error(e){console.error(e)}},getFamilyBaseFacetsNg:{query:I,variables(){const e=this.createApolloVariables();return{factFinderChannel:e.factFinderChannel,language:e.language,id:e.id,baseSiteId:e.baseSiteId}},skip(){return!this.baseSiteId||!this.$fischer.catalogId()}}},computed:{...L({maxHeadings:"productList/getMaxHeadings"}),products:{get(){return this.$store.getters["productList/getProducts"]},set(e){this.$store.dispatch("productList/setProducts",e)}},loadingQuantityInputs:{get(){return this.$store.getters["productList/getLoadingQuantityInputs"]},set(e){this.$store.dispatch("productList/setLoadingQuantityInputs",e)}},approvalsEnabled:{get(){return this.$store.getters["productList/getApprovalsEnabled"]},set(e){this.$store.dispatch("productList/setApprovalsEnabled",e)}},baseSiteId(){return this.$fischer.baseSiteId()},showVariantImage(){var e;return!!((e=this.fields.showVariantImages)!=null&&e.value)},facetsLoaded(){return this.createdHook===!1&&this.getFamilyBaseFacetsNg},paddedAttributes(){const e={};return this.searchProductsForFamilyNg.hits.forEach(i=>{if(!i||!i.variantValuesObject[0]){console.error("ignoring record",i,JSON.stringify(this.searchProductsForFamilyNg));return}const t=i.variantValuesObject[0].catalogProductData.Attributes||[],n=[];let s=0;const a=new Set;this.categoryAttributes.forEach(d=>{var r;if(a.add(d.AttributeKey),((r=t[s])==null?void 0:r.AttributeKey)===d.AttributeKey)n.push(t[s]),s+=1;else{const m=t.indexOf(y=>y.AttributeKey===d.AttributeKey);m>=0?(n.push(t[m]),s=m+1):n.push({AttributeKey:d.AttributeKey,AttributeName:d.AttributeName,Value:""})}}),t.forEach(d=>{a.has(d.AttributeKey)||n.push(d)}),e[i.variantValuesObject[0].ID]=n}),e},displayedItems(){return this.searchProductsForFamilyNg?Math.min(this.pagination.page*this.pagination.pageSize,this.searchProductsForFamilyNg.totalHits):0},pagingPercentage(){return this.searchProductsForFamilyNg?100*this.displayedItems/this.searchProductsForFamilyNg.totalHits:0},isProductIsLoading(){return this.isMounted?!!(!this.$apollo.queries.searchProductsForFamilyNg||this.$apollo.queries.searchProductsForFamilyNg.loading):!1},isRetailConnect(){return this.$fischer.shop.isRetailConnect()},isRetailConnectCart(){return this.$fischer.shop.isRetailConnectCart()},retailerOutOfStock(){return(this.getRetailerAvailabilityForIds||[]).map(e=>e?e.stock==="empty"||e.stock===null:!1)},productIds(){var i;return(((i=this.searchProductsForFamilyNg)==null?void 0:i.hits)||[]).map(t=>t.variantValuesObject?t.variantValuesObject[0].ID:t.ID)},filterUrlParams(){const e=[];return this.filters.forEach(i=>{e.push(`filter${encodeURIComponent(i.associatedFieldName)}=${encodeURIComponent(Ve(i))}`)}),e.length===0?"":`?${e.sort().join("&")}`},facetsTransformed(){return this.searchProductsForFamilyNg?Ee(this.searchProductsForFamilyNg.facetDataUnselected,this.searchProductsForFamilyNg.facets,this.getFamilyBaseFacetsNg||[],this.autoFilters||this.filters):[]},paginationPageIndex(){return this.pagination.pageSize*this.pagination.page},hasApprovalAttributes(){var i,t;if(!((i=this.products)!=null&&i.length))return!1;const e=this.paddedAttributes[(t=this.products[0])==null?void 0:t.ID];return!e||!this.approvals?!1:e.some(n=>this.approvals.includes(n.AttributeKey))}},watch:{facetsLoaded(e){e&&this.filters.forEach(i=>{var s;const t=this.getFamilyBaseFacetsNg.find(a=>a.associatedFieldName===i.associatedFieldName),n=(s=t==null?void 0:t.elements)==null?void 0:s[0];(!n||n.absoluteMinValue!==null&&n.absoluteMinValue!==void 0&&n.absoluteMinValue===n.absoluteMaxValue)&&this.changeFacet({value:!1,element:{selected:!1,name:i.name,associatedFieldName:i.associatedFieldName}})})}},created(){this.onCreated()},mounted(){localStorage.getItem("productList:approvalsEnabled")==="true"&&(this.approvalsEnabled=!0),this.$fischer.cartId()&&(this.$fischer.shop.isClosedShop()||this.isRetailConnectCart)&&this.getCart(!1,!0),this.isMounted=!0},methods:{onCreated(){if(this.createdHook==="onCreated"||this.createdHook===!1)return;this.createdHook="onCreated";const e=Number(this.$fischer.query("page"))||1;this.pagination.initial=e,this.pagination.page=e,this.parseQueryParams(),this.createdHook=!1},cleanName(e){return j(e)},factFinderNgNameCleaner(e){return j(e)},async addProduct(e){const i=this.products.find(t=>t.ID===e.productID);i&&delete i.quantityIncreasedMessage,this.addProductToCart(e)},parseQueryParams(){const e=[],i=this.$fischer.query();Object.keys(i).forEach(t=>{const n=/filter(.*)/.exec(t);if(!n)return;const[,s]=n;if(/[^~]~~[^~]/.test(s)){const[a]=s.split("~~"),d=/^([0-9.]+)-([0-9.]+)/.exec(i[t]);if(d){e.push({element:{name:a,associatedFieldName:s,selectedMinValue:d[1],selectedMaxValue:d[2],selected:!0},value:!0});return}}e.push({element:{associatedFieldName:s,name:i[t],selected:!0},value:!0})}),this.changeFacet(...e)},changeFacet(...e){this.applyChanges(...e),this.useAutoFilters||(this.updateQueries(),this.pushUriState())},pushUriState(){const e=[],i=this.$fischer.query(),t=["filter","query"];if(Object.entries(i).forEach(([s,a])=>{t.some(d=>s.startsWith(d))||e.push(`${s}=${encodeURIComponent(a)}`)}),!this.filterUrlParams&&!e.length&&!window.location.search)return;let n=this.filterUrlParams;e.length&&(this.filterUrlParams?n=`${this.filterUrlParams}&${e.join("&")}`:n=`?${e.join("&")}`),window.history.replaceState("","",n||"?")},clearAllFacets(){this.enableAutoFilters(),this.filters=[],this.createdHook||(this.updateQueries(),this.pushUriState())},productInCart(e){var t;let i=!1;return(t=this.cart)!=null&&t.products&&(i=this.cart.products.some(n=>n.articleNo===e.catalogProductData.ProductId)),i},createApolloVariables(){let e=this.$fischer.catalogId("1001340182"),i=this.$fischer.catalogLocale(),t=this.$fischer.catalogLocale();const n=[{associatedFieldName:"Hidden_K",name:"!true"}];return{id:e,factFinderChannel:this.$fischer.factFinderChannel(),channel:this.$fischer.brandId(),brand:this.$fischer.brandId(),baseSiteId:this.$fischer.baseSiteId(),language:i,hostname:this.$fischer.hostname(),page:this.pagination.initial,quantity:this.pagination.pageSize,accessToken:this.$fischer.user.accessToken(),userId:this.$fischer.user.id(),filters:(this.autoFilters||this.filters).map(He),extraFilters:n,siteSecure:this.$fischer.isSecureConnection(),catalogLocale:t,maxHeadings:this.maxHeadings,noSitecoreLinks:!0,useGtins:this.$fischer.useGtins()}},updateQueries(){this.createdHook||(this.pagination.initial=1,this.pagination.page=1,this.count+=1)},fetchMoreProducts(){this.pagination.page=this.pagination.page+1,this.$apollo.queries.searchProductsForFamilyNg.fetchMore({variables:{...this.createApolloVariables(),page:this.pagination.page,includeUnselectedFacets:!1},updateQuery:(e,{fetchMoreResult:i})=>({searchProductsForFamilyNg:{...e.searchProductsForFamilyNg,hits:[...e.searchProductsForFamilyNg.hits,...i.searchProductsForFamilyNg.hits]}})})},getBestPriceForItem(e){return this.bestPrices[e==null?void 0:e.ID]||null},setLegend(){this.showLegend=!1,this.products.forEach(({catalogProductData:{Attributes:e}={}})=>{(e||[]).forEach(({AttributeKey:i})=>{this.approvals.includes(i)&&(this.showLegend=!0)})})},removeQuantityHints(){this.products.forEach(e=>{delete e.quantityIncreasedMessage})},getAttributes(e){if(!e)return[];const i=e.filter(s=>!this.approvals.includes(s.AttributeKey));return(this.approvalsEnabled?e:i).slice(0,this.maxHeadings)}}},Yt={key:0,class:"facets-selection-fi__value"},Zt={key:1,class:"facets-selection-fi__value"},Xt=["data-test-2"],ei={key:0},ti={class:"product-list-view-fi__attribute-toggle"},ii={class:"product-list-view-fi__header"},ai={class:"fi-hidden md:fi-block"},ni={key:0},si={key:1};function ri(e,i,t,n,s,a){var z,R,M,U;const d=l("fact-finder-facet-fi"),r=l("facets-menu-fi"),m=l("loading-indicator"),y=l("product-attributes-toggle-fi"),te=l("product-list-head-fi"),ie=l("product-identifier-fi"),ae=l("product-attributes-fi"),ne=l("product-list-closed-shop-fi"),se=l("product-buy-button-fi"),q=l("grid-container-fi"),re=l("quantity-modification-hint-fi"),oe=l("product-content-fi"),de=l("accordion-customizable-fi"),le=l("accordion-customizable-wrapper-fi"),ce=l("product-list-legend-fi"),ue=l("pagination-progress-bar"),me=l("no-products-found-fi");return o(),u("div",{class:b({"product-list-view-fi":!0,[`product-list-view-fi--${t.shopType}`]:!0,[`product-list-view-fi--max-${e.maxHeadings}`]:!0,"product-list-view-fi--with-variant-image":a.showVariantImage})},[(z=a.facetsTransformed)!=null&&z.length?(o(),h(r,{key:0,facets:a.facetsTransformed,"allow-clear-all":!e.autoFilters,class:"product-list-view-fi__facets",onChange:a.changeFacet,onClearAllFacets:a.clearAllFacets},{facets:_(({facet:c,open:F,change:$,close:pe,toggleOpen:fe,idx:ge,registerDomElement:he})=>[f(d,{facet:c,open:F,idx:ge,"register-dom-element":he,onChange:$,onToggleOpen:_e=>fe(c),onClose:_e=>pe(c)},null,8,["facet","open","idx","register-dom-element","onChange","onToggleOpen","onClose"])]),selection:_(({facet:c,element:F})=>[P(g(a.cleanName(c.name))+": ",1),c.type==="FLOAT"||c.type==="INTEGER"?(o(),u("span",Yt,g(e.getLocalizedValue(F.selectedMinValue))+" ["+g(c.unit)+"] - "+g(e.getLocalizedValue(F.selectedMaxValue))+" ["+g(c.unit)+"] ",1)):(o(),u("span",Zt,g(F.text),1))]),_:1},8,["facets","allow-clear-all","onChange","onClearAllFacets"])):v("",!0),((R=s.searchProductsForFamilyNg)==null?void 0:R.totalHits)!==0?(o(),u(N,{key:1},[p("div",{class:b(["product-list-view-fi__wrapper",`shop-type-${t.shopType}`]),"data-test":"product-list-view-wrapper","data-test-2":t.shopType==="retailConnect"?"product-list-view-retail-connect":null},[s.isLoading||a.isProductIsLoading?(o(),u("div",ei,[f(m,{variant:"spinnerLocal",class:"spinner-local--rebrush",dark:!0})])):(o(),u(N,{key:1},[p("div",ti,[a.hasApprovalAttributes?(o(),h(y,{key:0,"is-block":""})):v("",!0)]),f(te,{"total-hits":s.searchProductsForFamilyNg.totalHits,"category-attributes":a.getAttributes(a.paddedAttributes[(M=a.products[0])==null?void 0:M.ID]),"show-variant-image":a.showVariantImage},null,8,["total-hits","category-attributes","show-variant-image"])],64)),f(le,{theme:"plist"},{default:_(()=>[(o(!0),u(N,null,B(a.products,(c,F)=>(o(),h(de,{id:`accordion_${c.ID}`,key:c.ID,"item-index":F,"shop-type":t.shopType?t.shopType:"default",label:c.catalogProductData.ProductName,"scroll-to":!e.isLG,theme:"plist","data-test":"accordion-customizable-item"},{headline:_(()=>[p("div",ii,[f(q,{container:!1,class:"product-list-view-fi__header-main","grid-class":t.shopType!=="closedShop"?"md:fi-gap-y-zero md:fi-gap-y-zero":""},{default:_(()=>[f(ie,{item:c,"best-price":e.bestPrices[c.ID],"click-source":t.clickSource,"show-variant-image":a.showVariantImage},null,8,["item","best-price","click-source","show-variant-image"]),f(ae,{class:"fi-hidden sm:fi-block",attributes:a.getAttributes(a.paddedAttributes[c.ID])},null,8,["attributes"]),s.isMounted&&t.shopType==="closedShop"?(o(),h(ne,{key:0,"best-price":e.bestPrices[c.ID],item:c,"loading-prices":e.loadingPrices,"is-adding-to-cart":e.isAddingItemToCart[c.ID],onRemoveQuantityHints:a.removeQuantityHints,onLogoutIfTokenInvalid:e.logoutIfTokenInvalid,onAddProduct:i[0]||(i[0]=$=>a.addProduct($))},null,8,["best-price","item","loading-prices","is-adding-to-cart","onRemoveQuantityHints","onLogoutIfTokenInvalid"])):t.shopType==="retailConnectCart"?(o(),h(se,{key:1,item:c,"product-details":{productID:c.ID,productName:`${c.ID} - ${c.catalogProductData.ProductName}`,productInitialQuantity:1},"is-in-progress":e.isAddingItemToCart[c.ID]||e.$apolloData.queries.getRetailerAvailabilityForIds.loading,"is-button-disabled":a.productInCart(c)||e.isAddingItemToCart[c.ID]||a.retailerOutOfStock[F]||!1,"is-button-hidden":e.hasAvailabilityStatusOnlyPermission,onAddProduct:i[1]||(i[1]=$=>a.addProduct($))},null,8,["item","product-details","is-in-progress","is-button-disabled","is-button-hidden"])):v("",!0)]),_:2},1032,["grid-class"]),c.quantityIncreasedMessage?(o(),h(q,{key:0,container:!1,class:"product-list-view-fi__header-hint"},{default:_(()=>[f(re,{class:"product-list-view-fi__quantity-modification-hint",hint:c.quantityIncreasedMessage,icon:"info",theme:"product-list-view"},null,8,["hint"])]),_:2},1024)):v("",!0)])]),content:_(()=>[f(oe,{item:c,attributes:a.paddedAttributes[c.ID],"family-line-drawing":t.familyLineDrawing,"best-price":e.bestPrices[c.ID]},null,8,["item","attributes","family-line-drawing","best-price"])]),_:2},1032,["id","item-index","shop-type","label","scroll-to"]))),128))]),_:1}),p("div",ai,[s.showLegend?(o(),h(ce,{key:0})):v("",!0)])],10,Xt),(U=s.searchProductsForFamilyNg)!=null&&U.totalHits?(o(),h(ue,{key:0,"pagination-page":s.pagination.page,"pagination-total":s.searchProductsForFamilyNg.totalHits||0,"progressbar-value":a.pagingPercentage,"show-more-button":a.displayedItems<s.searchProductsForFamilyNg.totalHits,"query-params":a.filterUrlParams,"disabled-state":a.isProductIsLoading||s.pagination.page*s.pagination.pageSize>=s.searchProductsForFamilyNg.totalHits,onLoadmore:a.fetchMoreProducts},{default:_(()=>[s.pagination.page*s.pagination.pageSize<=s.searchProductsForFamilyNg.totalHits?(o(),u("span",ni,g(e.$dict.get("product-List.Pagination.Show-Variants",[s.pagination.page*s.pagination.pageSize,s.searchProductsForFamilyNg.totalHits])),1)):s.pagination.page*s.pagination.pageSize>s.searchProductsForFamilyNg.totalHits?(o(),u("span",si,g(e.$dict.get("product-List.Pagination.Show-Variants",[s.searchProductsForFamilyNg.totalHits,s.searchProductsForFamilyNg.totalHits])),1)):v("",!0)]),_:1},8,["pagination-page","pagination-total","progressbar-value","show-more-button","query-params","disabled-state","onLoadmore"])):v("",!0)],64)):(o(),h(me,{key:2}))],2)}const oi=k(Jt,[["render",ri],["__scopeId","data-v-6b0862c1"]]),di={name:"ProductFamilyFi",components:{ProductListViewFi:oi,ComponentWrapper:Ie,HeadlineFi:W},mixins:[ee],props:{devData:{type:Object,default:null},familyLineDrawing:{type:[String,null],default:null},categoryAttributes:{type:Array,default:()=>[]},approvals:{type:Array,default:()=>[]}},emits:["scrollToVariants"],data(){return{scrolledToProductList:!1}},computed:{shopType:{get(){return this.$store.getters["productList/getShopType"]},set(e){this.$store.dispatch("productList/setShopType",e)}},key(){return"product-list-key"}},created(){this.setShopType()},mounted(){this.scrollToProductList()},methods:{setShopType(){let e;this.$fischer.shop.isRetailConnect()&&(e="retailConnect"),this.$fischer.shop.isRetailConnectCart()&&(e="retailConnectCart"),this.$fischer.shop.isClosedShop()&&(e="closedShop"),this.hasAvailabilityStatusOnlyPermission&&(e="retailConnect"),this.shopType=e||"default"},async scrollToProductList(){/\bproductList\b/.test(window.location.hash)&&(await this.$nextTick(),this.$emit("scrollToVariants"))},onReady(){this.scrolledToProductList||(this.scrolledToProductList=!0,this.scrollToProductList())}}};function li(e,i,t,n,s,a){const d=l("headline-fi"),r=l("product-list-view-fi"),m=l("component-wrapper");return o(),h(m,{class:"product-family-fi"},{default:_(()=>[i[0]||(i[0]=p("div",{class:"product-family-fi__scroll-target"},null,-1)),f(d,{class:"fi-hidden md:fi-block",tag:"h2",size:24},{default:_(()=>[P(g(e.$dict.get("product-Family.Anchor-Link-Text")),1)]),_:1}),(o(),h(r,{key:a.key,"shop-type":a.shopType,"dev-data":t.devData,"family-line-drawing":t.familyLineDrawing,"category-attributes":t.categoryAttributes,approvals:t.approvals,"click-source":"product-family",class:"product-family-fi__container",onReady:a.onReady},null,8,["shop-type","dev-data","family-line-drawing","category-attributes","approvals","onReady"]))]),_:1})}const ci=k(di,[["render",li],["__scopeId","data-v-2748b486"]]),Si=Object.freeze(Object.defineProperty({__proto__:null,default:ci},Symbol.toStringTag,{value:"Module"}));export{ci as P,yt as a,Si as b};