"use strict";var DesignSystem;(globalThis.webpackChunkDesignSystem=globalThis.webpackChunkDesignSystem||[]).push([[210],{1759:(e,i,n)=>{n.d(i,{h:()=>l});var t=n(4987),c=n(1238),s=n(5901);const a={className:"",viewBox:"-2 -2 18 18"};function l(e){const i=`ds-c-icon--close ds-c-icon--close-thin ${e.className||""}`;return(0,s.Y)(c.A,{title:(0,t.t)("icons.close"),...a,...e,className:i,children:(0,s.Y)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",d:"M0 13.0332964L13.0332964 0M13.0332964 13.0332964L0 0"})})}},1238:(e,i,n)=>{n.d(i,{A:()=>l});var t=n(2485),c=n.n(t),s=n(1637),a=n(5901);const l=e=>{let{ariaHidden:i,className:n,children:t,description:l,id:r,inversed:o,title:d,viewBox:u,...h}=e;const p=c()("ds-c-icon",{"ds-c-icon--inverse":o},n),b=(0,s.A)("icon--",r),v=`${b}__title`,f=`${b}__desc`,m=l?`${v} ${f}`:v,D=!i,N={};return D&&(N["aria-labelledby"]=m,N.role="img"),(0,a.FD)("svg",{"aria-hidden":i,className:p,id:r??D?b:void 0,viewBox:u,xmlns:"http://www.w3.org/2000/svg",...N,...h,children:[D&&(0,a.Y)("title",{id:v,children:d}),D&&l&&(0,a.Y)("desc",{id:f,children:l}),t]})};l.defaultProps={ariaHidden:!0,inversed:!1}},7777:(e,i,n)=>{var t=n(7142),c=n(2485),s=n.n(c),a=n(1637),l=n(1759),r=n(4987),o=n(1238),d=n(5901);const u={className:"",viewBox:"0 0 16 16"};function h(e){const i=`ds-c-icon--close ${e.className||""}`;return(0,d.Y)(o.A,{title:(0,r.t)("icons.close"),...u,...e,className:i,children:(0,d.Y)("path",{d:"M14.647 11.213c.235.235.353.521.353.858 0 .337-.118.624-.353.859l-1.717 1.717a1.17 1.17 0 01-.86.354c-.336 0-.622-.118-.857-.354l-3.714-3.712-3.712 3.712A1.166 1.166 0 012.93 15c-.337 0-.622-.118-.859-.354L.353 12.93A1.165 1.165 0 010 12.07c0-.337.117-.623.353-.858L4.065 7.5.353 3.789A1.168 1.168 0 010 2.929c0-.336.117-.622.353-.857L2.07.353C2.307.118 2.592 0 2.93 0c.337 0 .623.118.858.353L7.5 4.065 11.213.353c.235-.235.521-.353.857-.353.337 0 .623.118.86.353l1.717 1.719c.235.235.353.521.353.857 0 .338-.118.623-.353.86L10.935 7.5l3.712 3.712z",fillRule:"evenodd"})})}const p=["Enter","Space","Backspace","Delete"],b=e=>{let{ariaClearLabel:i,className:n,label:t,id:c,onDelete:o,size:u,useAlternateIcon:b}=e;const v=(0,a.A)("filter-chip--",c);function f(){o()}const m=s()("ds-c-filter-chip__button",u&&"big"===u?"ds-c-filter-chip__button--big":"",n),D=s()("ds-c-filter-chip__clear-icon-container",b?"ds-c-filter-chip__clear-icon-alternate-container":"");return(0,d.FD)("button",{id:v,className:m,onClick:f,onKeyDown:function(e){p.includes(e.key)&&(f(),e.preventDefault())},type:"button",children:[(0,d.Y)("span",{className:"ds-c-filter-chip__label","aria-hidden":!0,"aria-describedby":`${v}-instructions`,children:t}),(0,d.FD)("span",{id:`${v}-instructions`,className:"ds-u-visibility--screen-reader",children:[i??(0,r.t)("filterChip.ariaClearLabel")," ",(0,r.t)("filterChip.filter",{label:t})," ."]}),(0,d.Y)("span",{className:D,children:b?(0,d.Y)(l.h,{}):(0,d.Y)(h,{})})]})};var v=n(5590);const f=e=>{let{clearLabel:i,label:n,useAlternateIcon:t,...c}=e;return(0,d.Y)(b,{ariaClearLabel:i??"",label:n,useAlternateIcon:(0,v.$Q)(t),...c})};(0,t.E)("ds-filter-chip",(()=>f),{attributes:["clear-label","class-name","label","root-id","size","use-alternate-icon"],events:[["onDelete",e=>({detail:{event:e}})]]})},5590:(e,i,n)=>{function t(e){return void 0!==e&&"false"!==e}function c(e){return e?new Date(e):void 0}function s(e){if(void 0!==e)return parseInt(e)}function a(e){return(e=>{try{JSON.parse(e)}catch(e){return!1}return!0})(e)?JSON.parse(e):e}n.d(i,{$Q:()=>t,Rk:()=>a,Tt:()=>s,tv:()=>c})},5901:(e,i,n)=>{n.d(i,{FD:()=>t.FD,FK:()=>t.FK,Y:()=>t.Y}),n(7402);var t=n(201)}},e=>{var i=e(e.s=7777);DesignSystem=i}]);
//# sourceMappingURL=ds-filter-chip.js.map