import{_ as _extends}from"./_rollupPluginBabelHelpers-B5fk9IVe.js";import React__default,{forwardRef}from"react";import PropTypes from"prop-types";import{S as SvgHelp,a as SvgWbSunny,b as SvgWarning,c as SvgWidgets,d as SvgUpload,e as SvgCheckBox,f as SvgJunoSeverityCritical,g as SvgJunoSeverityHigh,h as SvgJunoSeverityMedium,i as SvgJunoSeverityLow,j as SvgSearch,k as SvgPlace,l as SvgOpenInNew,m as SvgOpenInBrowser,n as SvgNotificationsOff,o as SvgNightsStay,p as SvgMoreVert,q as SvgMonitorHeart,r as SvgManageAccounts,s as SvgInfo,t as SvgHomeSharp,u as SvgForum,v as SvgFilterAlt,w as SvgExpandMore,x as SvgExpandLess,y as SvgExitToApp,z as SvgErrorOutline,A as SvgDangerous,B as SvgEdit,C as SvgDownload,D as SvgDns,E as SvgDescription,F as SvgDeleteForever,G as SvgJunoDanger,H as SvgContentCopy,I as SvgComment,J as SvgClose,K as SvgChevronRight,L as SvgChevronLeft,M as SvgCheckCircle,N as SvgCheck,O as SvgCancel,P as SvgCalendarToday,Q as SvgBolt,R as SvgAutoAwesomeMotion,T as SvgAutoAwesomeMosaic,U as SvgAddCircle,V as SvgAccountCircle,W as SvgAccessTime}from"./widgets-njngpHa5.js";const anchorIconStyles=`
	jn-text-current
  hover:jn-text-theme-high
  focus:jn-outline-none 
  focus-visible:jn-ring-2
  focus-visible:jn-ring-theme-focus
  focus-visible:jn-ring-offset-1
  focus-visible:jn-ring-offset-theme-focus
	disabled:jn-opacity-50
	disabled:jn-cursor-not-allowed
`,buttonIconStyles=`
  hover:jn-text-theme-high
  focus:jn-outline-none 
  focus-visible:jn-ring-2
  focus-visible:jn-ring-theme-focus
  focus-visible:jn-ring-offset-1
  focus-visible:jn-ring-offset-theme-focus
	disabled:jn-opacity-50
	disabled:jn-cursor-not-allowed
`,knownIcons=["accessTime","accountCircle","addCircle","autoAwesomeMosaic","autoAwesomeMotion","bolt","calendarToday","cancel","check","checkCircle","chevronLeft","chevronRight","close","comment","contentCopy","danger","dangerous","default","deleteForever","description","dns","download","edit","error","errorOutline","exitToApp","expandLess","expandMore","filterAlt","forum","help","home","info","manageAccounts","monitorHeart","moreVert","nightsStay","notificationsOff","openInBrowser","openInNew","place","search","severityLow","severityMedium","severityHigh","severityCritical","success","upload","warning","wbSunny","widgets"],getColoredSizedIcon=a=>{let{icon:b,color:c,size:d,title:e,iconClassName:f,...g}=a;const h=`juno-icon juno-icon-${b} jn-fill-current ${c} ${f}`;return"accessTime"===b?React__default.createElement(SvgAccessTime,_extends({width:d,height:d,className:h,alt:"time",title:e?e:"Time",role:"img"},g)):"accountCircle"===b?React__default.createElement(SvgAccountCircle,_extends({width:d,height:d,className:h,alt:"account",title:e?e:"Account",role:"img"},g)):"addCircle"===b?React__default.createElement(SvgAddCircle,_extends({width:d,height:d,className:h,alt:"add",title:e?e:"Add",role:"img"},g)):"autoAwesomeMosaic"===b?React__default.createElement(SvgAutoAwesomeMosaic,_extends({width:d,height:d,className:h,alt:"mosaic",title:e?e:"Mosaic",role:"img"},g)):"autoAwesomeMotion"===b?React__default.createElement(SvgAutoAwesomeMotion,_extends({width:d,height:d,className:h,alt:"items stacked behind each other",title:e?e:"Items stacked behind each other",role:"img"},g)):"bolt"===b?React__default.createElement(SvgBolt,_extends({width:d,height:d,className:h,alt:"bolt",title:e?e:"Bolt",role:"img"},g)):"calendarToday"===b?React__default.createElement(SvgCalendarToday,_extends({width:d,height:d,className:h,alt:"calendar",title:e?e:"Calendar",role:"img"},g)):"cancel"===b?React__default.createElement(SvgCancel,_extends({width:d,height:d,className:h,alt:"cancel",title:e?e:"Cancel",role:"img"},g)):"check"===b?React__default.createElement(SvgCheck,_extends({width:d,height:d,className:h,alt:"check",title:e?e:"Check",role:"img"},g)):"checkCircle"===b?React__default.createElement(SvgCheckCircle,_extends({width:d,height:d,className:h,alt:"checkCircle",title:e?e:"CheckCircle",role:"img"},g)):"chevronLeft"===b?React__default.createElement(SvgChevronLeft,_extends({width:d,height:d,className:h,alt:"chevronLeft",title:e?e:"ChevronLeft",role:"img"},g)):"chevronRight"===b?React__default.createElement(SvgChevronRight,_extends({width:d,height:d,className:h,alt:"chevronRight",title:e?e:"ChevronRight",role:"img"},g)):"close"===b?React__default.createElement(SvgClose,_extends({width:d,height:d,className:h,alt:"close",title:e?e:"Close",role:"img"},g)):"comment"===b?React__default.createElement(SvgComment,_extends({width:d,height:d,className:h,alt:"comment",title:e?e:"Comment",role:"img"},g)):"contentCopy"===b?React__default.createElement(SvgContentCopy,_extends({width:d,height:d,className:h,alt:"copy",title:e?e:"Copy",role:"img"},g)):"danger"===b?React__default.createElement(SvgJunoDanger,_extends({width:d,height:d,className:h,alt:"danger",title:e?e:"Danger",role:"img"},g)):"dangerous"===b?React__default.createElement(SvgDangerous,_extends({width:d,height:d,className:h,alt:"dangerous",title:e?e:"Dangerous",role:"img"},g)):"deleteForever"===b?React__default.createElement(SvgDeleteForever,_extends({width:d,height:d,className:h,alt:"delete forever",title:e?e:"Delete Forever",role:"img"},g)):"description"===b?React__default.createElement(SvgDescription,_extends({width:d,height:d,className:h,alt:"description",title:e?e:"Description",role:"img"},g)):"dns"===b?React__default.createElement(SvgDns,_extends({width:d,height:d,className:h,alt:"service",title:e?e:"Service",role:"img"},g)):"download"===b?React__default.createElement(SvgDownload,_extends({width:d,height:d,className:h,alt:"download",title:e?e:"download",role:"img"},g)):"edit"===b?React__default.createElement(SvgEdit,_extends({width:d,height:d,className:h,alt:"edit",title:e?e:"Edit",role:"img"},g)):"error"===b?React__default.createElement(SvgDangerous,_extends({width:d,height:d,className:h,alt:"error",title:e?e:"Error",role:"img"},g)):"errorOutline"===b?React__default.createElement(SvgErrorOutline,_extends({width:d,height:d,className:h,alt:"error outline",title:e?e:"Error",role:"img"},g)):"exitToApp"===b?React__default.createElement(SvgExitToApp,_extends({width:d,height:d,className:h,alt:"exit to other app",title:e?e:"Exit to app",role:"img"},g)):"expandLess"===b?React__default.createElement(SvgExpandLess,_extends({width:d,height:d,className:h,alt:"expand less",title:e?e:"Expand Less",role:"img"},g)):"expandMore"===b?React__default.createElement(SvgExpandMore,_extends({width:d,height:d,className:h,alt:"expand more",title:e?e:"Expand More",role:"img"},g)):"filterAlt"===b?React__default.createElement(SvgFilterAlt,_extends({width:d,height:d,className:h,alt:"filter",title:e?e:"Filter",role:"img"},g)):"forum"===b?React__default.createElement(SvgForum,_extends({width:d,height:d,className:h,alt:"forum",title:e?e:"Forum",role:"img"},g)):"help"===b?React__default.createElement(SvgHelp,_extends({width:d,height:d,className:h,alt:"help",title:e?e:"Help",role:"img"},g)):"home"===b?React__default.createElement(SvgHomeSharp,_extends({width:d,height:d,className:h,alt:"home",title:e?e:"Home",role:"img"},g)):"info"===b?React__default.createElement(SvgInfo,_extends({width:d,height:d,className:h,alt:"info",title:e?e:"Info",role:"img"},g)):"manageAccounts"===b?React__default.createElement(SvgManageAccounts,_extends({width:d,height:d,className:h,alt:"user account configuration",title:e?e:"User account configuration",role:"img"},g)):"monitorHeart"===b?React__default.createElement(SvgMonitorHeart,_extends({width:d,height:d,className:h,alt:"heart monitor",title:e?e:"Heart monitor",role:"img"},g)):"moreVert"===b?React__default.createElement(SvgMoreVert,_extends({width:d,height:d,className:h,alt:"more",title:e?e:"More",role:"img"},g)):"nightsStay"===b?React__default.createElement(SvgNightsStay,_extends({width:d,height:d,className:h,alt:"nights stay",title:e?e:"Nights stay",role:"img"},g)):"notificationsOff"===b?React__default.createElement(SvgNotificationsOff,_extends({width:d,height:d,className:h,alt:"notifications off",title:e?e:"Notifications off",role:"img"},g)):"openInBrowser"===b?React__default.createElement(SvgOpenInBrowser,_extends({width:d,height:d,className:h,alt:"open in browser",title:e?e:"Open in browser",role:"img"},g)):"openInNew"===b?React__default.createElement(SvgOpenInNew,_extends({width:d,height:d,className:h,alt:"open in new tab",title:e?e:"Open in new tab",role:"img"},g)):"place"===b?React__default.createElement(SvgPlace,_extends({width:d,height:d,className:h,alt:"location",title:e?e:"Location",role:"img"},g)):"search"===b?React__default.createElement(SvgSearch,_extends({width:d,height:d,className:h,alt:"search",title:e?e:"Search",role:"img"},g)):"severityLow"===b?React__default.createElement(SvgJunoSeverityLow,_extends({width:d,height:d,className:h,alt:"Severity low",title:e?e:"Severity Low",role:"img"},g)):"severityMedium"===b?React__default.createElement(SvgJunoSeverityMedium,_extends({width:d,height:d,className:h,alt:"Severity medium",title:e?e:"Severity Medium",role:"img"},g)):"severityHigh"===b?React__default.createElement(SvgJunoSeverityHigh,_extends({width:d,height:d,className:h,alt:"Severity high",title:e?e:"Severity High",role:"img"},g)):"severityCritical"===b?React__default.createElement(SvgJunoSeverityCritical,_extends({width:d,height:d,className:h,alt:"Severity critical",title:e?e:"Severity Critical",role:"img"},g)):"success"===b?React__default.createElement(SvgCheckBox,_extends({width:d,height:d,className:h,alt:"success",title:e?e:"Success",role:"img"},g)):"upload"===b?React__default.createElement(SvgUpload,_extends({width:d,height:d,className:h,alt:"upload",title:e?e:"Upload",role:"img"},g)):"widgets"===b?React__default.createElement(SvgWidgets,_extends({width:d,height:d,className:h,alt:"widgets",title:e?e:"Widgets",role:"img"},g)):"warning"===b?React__default.createElement(SvgWarning,_extends({width:d,height:d,className:h,alt:"warning",title:e?e:"Warning",role:"img"},g)):"wbSunny"===b?React__default.createElement(SvgWbSunny,_extends({width:d,height:d,className:h,alt:"wb sunny",title:e?e:"WBSunny",role:"img"},g)):"default"===b?React__default.createElement(SvgHelp,_extends({width:d,height:d,className:h,alt:"help",title:e?e:"Help",role:"img"},g)):React__default.createElement(SvgHelp,_extends({width:d,height:d,className:h,alt:"help",title:e?e:"Help",role:"img"},g))},Icon=forwardRef((a,b)=>{let{icon:e=null,color:f="",size:g="24",title:h="",className:i="",href:j="",disabled:k=!1,onClick:c,...d}=a;const l=j||c?"":i,m=j||c?{}:d,n=getColoredSizedIcon({icon:e,color:f,size:g,title:h,iconClassName:l,...m}),o=React__default.createElement("button",_extends({onClick:a=>{c&&c(a)},className:`juno-icon-button ${buttonIconStyles} ${i}`,"aria-label":h||e,disabled:k,ref:b},d),n),p=React__default.createElement("a",_extends({href:j,className:`juno-icon-link ${anchorIconStyles} ${i}`,"aria-label":h||e,ref:b},d),n);return j?p:c?o:React__default.createElement("span",{ref:b},n)});Icon.displayName="Icon",Icon.propTypes={icon:PropTypes.oneOf(knownIcons),color:PropTypes.string,size:PropTypes.string,title:PropTypes.string,className:PropTypes.string,href:PropTypes.string,disabled:PropTypes.bool,onClick:PropTypes.func};export{Icon as I,knownIcons as k};