vendor: 4,819 bytes, line 1
1import{D as e,N as t,b as n}from"./Ssl5WjxV.js";import{d as r}from"./C4CXnTcG.js";import{D as i,O as a,c as o,d as s,f as c,h as l,k as u,l as d,m as f,r as p,y as m}from"./CJcG5UPG.js";import{t as h}from"./D_LQEvRb.js";var g=t(e()),_=t(n()),v=h((0,_.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z`}),`Cancel`);function y(e){return a(`MuiChip`,e)}var b=i(`MuiChip`,`root.sizeSmall.sizeMedium.colorDefault.colorError.colorInfo.colorPrimary.colorSecondary.colorSuccess.colorWarning.disabled.clickable.clickableColorPrimary.clickableColorSecondary.deletable.deletableColorPrimary.deletableColorSecondary.outlined.filled.outlinedPrimary.outlinedSecondary.filledPrimary.filledSecondary.avatar.avatarSmall.avatarMedium.avatarColorPrimary.avatarColorSecondary.icon.iconSmall.iconMedium.iconColorPrimary.iconColorSecondary.label.labelSmall.labelMedium.deleteIcon.deleteIconSmall.deleteIconMedium.deleteIconColorPrimary.deleteIconColorSecondary.deleteIconOutlinedColorPrimary.deleteIconOutlinedColorSecondary.deleteIconFilledColorPrimary.deleteIconFilledColorSecondary.focusVisible`.split(`.`)),x=e=>{let{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:o,clickable:s,variant:c}=e;return m({root:[`root`,c,n&&`disabled`,`size${f(r)}`,`color${f(i)}`,s&&`clickable`,s&&`clickableColor${f(i)}`,o&&`deletable`,o&&`deletableColor${f(i)}`,`${c}${f(i)}`],label:[`label`,`label${f(r)}`],avatar:[`avatar`,`avatar${f(r)}`,`avatarColor${f(i)}`],icon:[`icon`,`icon${f(r)}`,`iconColor${f(a)}`],deleteIcon:[`deleteIcon`,`deleteIcon${f(r)}`,`deleteIconColor${f(i)}`,`deleteIcon${f(c)}Color${f(i)}`]},y,t)},S=l(`div`,{name:`MuiChip`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:o,size:s,variant:c}=n;return[{[`& .${b.avatar}`]:t.avatar},{[`& .${b.avatar}`]:t[`avatar${f(s)}`]},{[`& .${b.avatar}`]:t[`avatarColor${f(r)}`]},{[`& .${b.icon}`]:t.icon},{[`& .${b.icon}`]:t[`icon${f(s)}`]},{[`& .${b.icon}`]:t[`iconColor${f(i)}`]},{[`& .${b.deleteIcon}`]:t.deleteIcon},{[`& .${b.deleteIcon}`]:t[`deleteIcon${f(s)}`]},{[`& .${b.deleteIcon}`]:t[`deleteIconColor${f(r)}`]},{[`& .${b.deleteIcon}`]:t[`deleteIcon${f(c)}Color${f(r)}`]},t.root,t[`size${f(s)}`],t[`color${f(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${f(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${f(r)}`],t[c],t[`${c}${f(r)}`]]}})(c(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:`100%`,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:`nowrap`,transition:e.transitions.create([`background-color`,`box-shadow`]),cursor:`unset`,outline:0,textDecoration:`none`,border:0,padding:0,verticalAlign:`middle`,boxSizing:`border-box`,[`&.${b.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`& .${b.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${b.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${b.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${b.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${b.icon}`]:{marginLeft:5,marginRight:-6},[`& .${b.deleteIcon}`]:{WebkitTapHighlightColor:`transparent`,color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:r(e.palette.text.primary,.26),fontSize:22,cursor:`pointer`,margin:`0 5px 0 -6px`,"&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:r(e.palette.text.primary,.4)}},variants:[{props:{size:`small`},style:{height:24,[`& .${b.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${b.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(o([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${b.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:r(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${b.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${b.icon}`]:{color:`inherit`}}},{props:{onDelete:!0}
1,style:{[`&.${b.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:r(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(o([`dark`])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${b.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:`none`,WebkitTapHighlightColor:`transparent`,cursor:`pointer`,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:r(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${b.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:r(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(o([`dark`])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${b.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:`outlined`},style:{backgroundColor:`transparent`,border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${b.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${b.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${b.avatar}`]:{marginLeft:4},[`& .${b.avatarSmall}`]:{marginLeft:2},[`& .${b.icon}`]:{marginLeft:4},[`& .${b.iconSmall}`]:{marginLeft:2},[`& .${b.deleteIcon}`]:{marginRight:5},[`& .${b.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(o()).map(([t])=>({props:{variant:`outlined`,color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:r(e.palette[t].main,.7)}`,[`&.${b.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:r(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${b.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:r(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${b.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:r(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),C=l(`span`,{name:`MuiChip`,slot:`Label`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${f(r)}`]]}})({overflow:`hidden`,textOverflow:`ellipsis`,paddingLeft:12,paddingRight:12,whiteSpace:`nowrap`,variants:[{props:{variant:`outlined`},style:{paddingLeft:11,paddingRight:11}},{props:{size:`small`},style:{paddingLeft:8,paddingRight:8}},{props:{size:`small`,variant:`outlined`},style:{paddingLeft:7,paddingRight:7}}]});function w(e){return e.key===`Backspace`||e.key===`Delete`}var T=g.forwardRef(function(e,t){let n=s({props:e,name:`MuiChip`}),{avatar:r,className:i,clickable:a,color:o=`default`,component:c,deleteIcon:l,disabled:f=!1,icon:m,label:h,onClick:y,onDelete:b,onKeyDown:T,onKeyUp:E,size:D=`medium`,variant:O=`filled`,tabIndex:k,skipFocusWhenDisabled:A=!1,...j}=n,M=d(g.useRef(null),t),N=e=>{e.stopPropagation(),b&&b(e)},P=e=>{e.currentTarget===e.target&&w(e)&&e.preventDefault(),T&&T(e)},F=e=>{e.currentTarget===e.target&&b&&w(e)&&b(e),E&&E(e)},I=a!==!1&&y?!0:a,L=I||b?p:c||`div`,R={...n,component:L,disabled:f,size:D,color:o,iconColor:g.isValidElement(m)&&m.props.color||o,onDelete:!!b,clickable:I,variant:O},z=x(R),B=L===p?{component:c||`div`,focusVisibleClassName:z.focusVisible,...b&&{disableRipple:!0}}:{},V=null;b&&(V=l&&g.isValidElement(l)?g.cloneElement(l,{className:u(l.props.className,z.deleteIcon),onClick:N}):(0,_.jsx)(v,{className:u(z.deleteIcon),onClick:N}));let H=null;r&&g.isValidElement(r)&&(H=g.cloneElement(r,{className:u(z.avatar,r.props.className)}));let U=null;return m&&g.isValidElement(m)&&(U=g.cloneElement(m,{className:u(z.icon,m.props.className)})),(0,_.jsxs)(S,{as:L,className:u(z.root,i),disabled:I&&f?!0:void 0,onClick:y,onKeyDown:P,onKeyUp:F,ref:M,tabIndex:A&&f?-1:k,ownerState:R,...B,...j,children:[H||U,(0,_.jsx)(C,{className:u(z.label),ownerState:R,children:h}),V]})});export{T as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.