import{_ as k,o as e,b as a,f as L,bh as N,I as D,L as v,r as _,a as u,w as h,p as i,F as S,e as A,u as f,v as m,q as c,l as b}from"./main-DHoZdmBw.js";const F={name:"TableFi"};function B(t,o,l,p,r,n){return e(),a("table",null,[L(t.$slots,"default")])}const H=k(F,[["render",B]]),I={methods:{getSlugLink(t,o){return N(t,o,this.$fischer)}}},V={name:"TechnicalDetailsTableFi",components:{IconFi:D,LinkFi:v,TableFi:H},mixins:[I],props:{item:{type:Object,default:()=>({})},attributes:{type:Array,default:null},technicalNamesDisabled:{type:Boolean,default:!1}},data(){return{showDataInfo:!1}},computed:{slugLink(){return this.getSlugLink(this.item.catalogProductData)}},methods:{isSpecialAttributeName(t){return(t==null?void 0:t.TechnicalName)&&t.AttributeKey==="SCHL_WEITE"},getBlankUnit(t){return t.toString().replace(/[[\]]/g,"")}}},w={class:"technical-details-table-fi"},M={class:"technical-details-table-fi__table-column--left"},$={key:0,class:"technical-details-table-fi__attribute-name"},x=["innerHTML"],C={class:"technical-details-table-fi__table-column--right"},U={key:0,class:"technical-details-table-fi__attribute-value--dash"},E={key:1,class:"technical-details-table-fi__attribute-value--check"},P=["innerHTML"],j=["innerHTML"],q={key:0},z={colspan:"2",class:"technical-details-table-fi__table-column--right"},K={class:"technical-details-table-fi__link"};function O(t,o,l,p,r,n){const d=_("icon-fi"),g=_("link-fi"),T=_("table-fi");return e(),a("div",w,[l.attributes||l.item.catalogProductData.Attributes?(e(),u(T,{key:0,class:"technical-details-table-fi__table"},{default:h(()=>[i("tbody",null,[(e(!0),a(S,null,A(l.attributes||l.item.catalogProductData.Attributes,(s,y)=>(e(),a("tr",{key:y,class:"technical-details-table-fi__table-row"},[i("td",M,[s.AttributeName?(e(),a("span",$,[f(m(s.AttributeName)+" ",1),n.isSpecialAttributeName(s)?(e(),u(d,{key:0,class:"technical-details-table-fi__attribute-icon",icon:"screw"})):!l.technicalNamesDisabled&&s.TechnicalName?(e(),a("span",{key:1,class:"technical-details-table-fi__technical-name",innerHTML:`(${s.TechnicalName})`},null,8,x)):c("",!0)])):c("",!0)]),i("td",C,[s.Value?s.Value==="relevant"?(e(),a("span",E,[b(d,{class:"technical-details-table-fi__attribute-value-icon",icon:"check"})])):(e(),a("span",{key:2,class:"technical-details-table-fi__attribute-value",innerHTML:s.Value},null,8,P)):(e(),a("span",U," — ")),s.Unit?(e(),a("span",{key:3,innerHTML:` ${n.getBlankUnit(s.Unit)}`},null,8,j)):c("",!0)])]))),128)),n.slugLink&&r.showDataInfo?(e(),a("tr",q,[i("td",z,[i("div",K,[b(g,{href:n.slugLink,secondary:"",size:18},{default:h(()=>[f(m(t.$dict.get("product-List.Table.Data-Info")),1)]),_:1},8,["href"])])])])):c("",!0)])]),_:1})):c("",!0)])}const G=k(V,[["render",O],["__scopeId","data-v-183141e1"]]);export{G as T,I as _};