(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_hub-ui"]="1776810161225-1149c77e14"}catch(l){}})();import{r as a,j as o}from"./c2heove9.js";import{W as g,aq as f,w as C,T as b,V as w}from"./la47cm74.js";import{E as h}from"./dk14b0s0.js";import{I as k}from"./m7jk15t0.js";import{M as j}from"./o48pi9we.js";import{a as q}from"./koie55h9.js";const v=(t,e)=>o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t,children:o.jsx("path",{d:"M11.9998 9.99999V14M11.9998 18H12.0098M10.6151 4.89171L2.39019 19.0983C1.93398 19.8863 1.70588 20.2803 1.73959 20.6037C1.769 20.8857 1.91677 21.142 2.14613 21.3088C2.40908 21.5 2.86435 21.5 3.77487 21.5H20.2246C21.1352 21.5 21.5904 21.5 21.8534 21.3088C22.0827 21.142 22.2305 20.8857 22.2599 20.6037C22.2936 20.2803 22.0655 19.8863 21.6093 19.0983L13.3844 4.89171C12.9299 4.10654 12.7026 3.71396 12.4061 3.58211C12.1474 3.4671 11.8521 3.4671 11.5935 3.58211C11.2969 3.71396 11.0696 4.10655 10.6151 4.89171Z",stroke:"currentColor",fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),y=a.forwardRef(v),m=a.forwardRef((t,e)=>o.jsx(g,{"data-testid":"WarningIcon",component:y,ref:e,...t}));m.muiName="Warning";const A=a.createContext({pathname:"",sidebarOpen:!0,toggleSidebar:()=>{},isElectronApp:!1}),R=a.createContext({opened:!1,toggleContextSwitcherMobileDrawer:()=>{}});function B({children:t,...e}){const n=a.useRef(null),{colorScheme:r}=f(),c=r==="dark",{isElectronApp:d}=a.useContext(A);return a.useEffect(()=>{n.current&&!d&&n.current.querySelectorAll("source").forEach(i=>{const p=i.getAttribute("media")??"",l=i.getAttribute("data-original-media-value");l&&(i.setAttribute("media",u(l,c)),i.setAttribute("data-original-media-value",l)),p&&!l&&(i.setAttribute("media",u(p,c)),i.setAttribute("data-original-media-value",p))})},[c,d]),o.jsx("picture",{ref:n,...e,children:t})}function u(t,e){return e?t.replaceAll(/\(\s*prefers-color-scheme:\s*light\s*\)/g,"(width < 1px)").replaceAll(/\(\s*prefers-color-scheme:\s*dark\s*\)/g,"(width > 1px)"):t.replaceAll(/\(\s*prefers-color-scheme:\s*dark\s*\)/g,"(width < 1px)").replaceAll(/\(\s*prefers-color-scheme:\s*light\s*\)/g,"(width > 1px)")}const N=(t,e)=>o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t,children:o.jsx("path",{d:"M9.93896 22H14.939M10.439 10H14.439M12.439 10L12.439 16M15.439 15.3264C17.8039 14.2029 19.439 11.7924 19.439 9C19.439 5.13401 16.305 2 12.439 2C8.57297 2 5.43896 5.13401 5.43896 9C5.43896 11.7924 7.07402 14.2029 9.43896 15.3264V16C9.43896 16.9319 9.43896 17.3978 9.59121 17.7654C9.79419 18.2554 10.1835 18.6448 10.6736 18.8478C11.0411 19 11.5071 19 12.439 19C13.3708 19 13.8368 19 14.2043 18.8478C14.6944 18.6448 15.0837 18.2554 15.2867 17.7654C15.439 17.3978 15.439 16.9319 15.439 16V15.3264Z",stroke:"currentColor",fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),S=a.forwardRef(N),x=a.forwardRef((t,e)=>o.jsx(g,{"data-testid":"LightBulbIcon",component:S,ref:e,...t}));x.muiName="LightBulb";function s({children:t,...e}){const{className:n}=e;return o.jsx(b,{variant:"subtitle1",component:w,direction:"row",spacing:1,...e,sx:[{alignItems:"center",mb:1},n==="blockquote-note"&&{color:"secondary.main"},n==="blockquote-tip"&&{color:"success.main"},n==="blockquote-important"&&{color:"primary.main"},n==="blockquote-warning"&&{color:"warning.main"},n==="blockquote-caution"&&{color:"error.main"}],children:t})}function z({type:t="quote",children:e}){const n={quote:null,note:o.jsxs(s,{className:"blockquote-note",children:[o.jsx(j,{fontSize:"inherit"})," Note"]}),tip:o.jsxs(s,{className:"blockquote-tip",children:[o.jsx(x,{fontSize:"inherit"})," Tip"]}),important:o.jsxs(s,{className:"blockquote-important",children:[o.jsx(k,{fontSize:"inherit"})," Important"]}),warning:o.jsxs(s,{className:"blockquote-warning",children:[o.jsx(m,{fontSize:"inherit"})," Warning"]}),caution:o.jsxs(s,{className:"blockquote-caution",children:[o.jsx(h,{fontSize:"inherit"})," Caution"]})};return o.jsxs(C,{component:"blockquote",sx:r=>({my:1,fontSize:"inherit",backgroundColor:q((r.vars||r).palette.docker.grey[100],.5),padding:r.spacing(2,3),"--quote-borderColor":(r.vars||r).palette.secondary.main,"--note-borderColor":(r.vars||r).palette.secondary.main,"--tip-borderColor":(r.vars||r).palette.success.main,"--important-borderColor":(r.vars||r).palette.primary.main,"--warning-borderColor":(r.vars||r).palette.warning.main,"--caution-borderColor":(r.vars||r).palette.error.main}),style:{borderLeft:`4px solid var(--${t}-borderColor)`},children:[n[t],e]})}const H=t=>{let e=t;for(const n of[{enter:/> \[!TIP\]/,exit:'>

Tip

'},{enter:/> \[!NOTE\]/,exit:'>

Note

'},{enter:/> \[!IMPORTANT\]/,exit:'>

Important

'},{enter:/> \[!WARNING\]/,exit:'>

Warning

'},{enter:/> \[!CAUTION\]/,exit:'>

Caution

'}]){const r=new RegExp(n.enter,"ig");e=e.replaceAll(r,n.exit)}return e};export{z as B,R as C,A as L,B as T,m as W,H as p};