import{_ as i,I as o,r as f,o as d,b as m,p as c,v as n,l as _,f as p,u as v}from"./main-DtyiNRRn.js";const k={name:"ClearAllFacetsFi",components:{IconFi:o},emits:["click"]};function C(t,s,e,r,u,l){const a=f("icon-fi");return d(),m("div",{class:"clear-all-facets-fi",onClick:s[0]||(s[0]=F=>t.$emit("click"))},[c("span",null,n(t.$dict.get("facets.Clear-All-Facets")),1),_(a,{icon:"close"})])}const x=i(k,[["render",C],["__scopeId","data-v-4eec7389"]]),$={name:"FacetsSelectionFi",components:{IconFi:o},props:{facet:{type:Object,default:()=>({})},element:{type:Object,default:()=>({})}},emits:["change"],methods:{unselect(t){this.$emit("change",{value:!1,element:{associatedFieldName:this.facet.associatedFieldName,...t,selected:!1}})}}},h={class:"facets-selection-fi__value"},y={class:"facets-selection-fi__close-icon"};function N(t,s,e,r,u,l){const a=f("icon-fi");return d(),m("div",{class:"facets-selection-fi","data-test":"facets-selection",onClick:s[0]||(s[0]=F=>l.unselect(e.element))},[p(t.$slots,"display",{element:e.element,facet:e.facet},()=>[v(n(e.facet.displayField||e.facet.name)+": ",1),c("span",h,n(e.element.fakeValue||e.element.name||e.element.text),1)]),c("span",y,[_(a,{icon:"delete-text",size:"0_8"})])])}const S=i($,[["render",N]]);export{x as C,S as F};