mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
303 lines
81 KiB
JavaScript
303 lines
81 KiB
JavaScript
|
import{u as S,f6 as Ze,q as k,$ as Et,f7 as Dt,ab as bt,ah as c,f8 as v,aj as jt,f9 as a,fa as Rt,fb as p,fc as vt,fd as Ht,fe as Wt,au as Lt,ff as Vt,a9 as Ot,fg as qt,fh as Nt,fi as Gt,fj as Ut}from"./index-581af3d4.js";import{u as Yt,M as Kt}from"./MantineProvider-d7f01775.js";var ut=String.raw,ft=ut`
|
||
|
:root,
|
||
|
:host {
|
||
|
--chakra-vh: 100vh;
|
||
|
}
|
||
|
|
||
|
@supports (height: -webkit-fill-available) {
|
||
|
:root,
|
||
|
:host {
|
||
|
--chakra-vh: -webkit-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: -moz-fill-available) {
|
||
|
:root,
|
||
|
:host {
|
||
|
--chakra-vh: -moz-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: 100dvh) {
|
||
|
:root,
|
||
|
:host {
|
||
|
--chakra-vh: 100dvh;
|
||
|
}
|
||
|
}
|
||
|
`,Xt=()=>S.jsx(Ze,{styles:ft}),Zt=({scope:e=""})=>S.jsx(Ze,{styles:ut`
|
||
|
html {
|
||
|
line-height: 1.5;
|
||
|
-webkit-text-size-adjust: 100%;
|
||
|
font-family: system-ui, sans-serif;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
text-rendering: optimizeLegibility;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
touch-action: manipulation;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
position: relative;
|
||
|
min-height: 100%;
|
||
|
margin: 0;
|
||
|
font-feature-settings: "kern";
|
||
|
}
|
||
|
|
||
|
${e} :where(*, *::before, *::after) {
|
||
|
border-width: 0;
|
||
|
border-style: solid;
|
||
|
box-sizing: border-box;
|
||
|
word-wrap: break-word;
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
${e} hr {
|
||
|
border-top-width: 1px;
|
||
|
box-sizing: content-box;
|
||
|
height: 0;
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
${e} :where(pre, code, kbd,samp) {
|
||
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||
|
font-size: 1em;
|
||
|
}
|
||
|
|
||
|
${e} a {
|
||
|
background-color: transparent;
|
||
|
color: inherit;
|
||
|
text-decoration: inherit;
|
||
|
}
|
||
|
|
||
|
${e} abbr[title] {
|
||
|
border-bottom: none;
|
||
|
text-decoration: underline;
|
||
|
-webkit-text-decoration: underline dotted;
|
||
|
text-decoration: underline dotted;
|
||
|
}
|
||
|
|
||
|
${e} :where(b, strong) {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
${e} small {
|
||
|
font-size: 80%;
|
||
|
}
|
||
|
|
||
|
${e} :where(sub,sup) {
|
||
|
font-size: 75%;
|
||
|
line-height: 0;
|
||
|
position: relative;
|
||
|
vertical-align: baseline;
|
||
|
}
|
||
|
|
||
|
${e} sub {
|
||
|
bottom: -0.25em;
|
||
|
}
|
||
|
|
||
|
${e} sup {
|
||
|
top: -0.5em;
|
||
|
}
|
||
|
|
||
|
${e} img {
|
||
|
border-style: none;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, input, optgroup, select, textarea) {
|
||
|
font-family: inherit;
|
||
|
font-size: 100%;
|
||
|
line-height: 1.15;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, input) {
|
||
|
overflow: visible;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, select) {
|
||
|
text-transform: none;
|
||
|
}
|
||
|
|
||
|
${e} :where(
|
||
|
button::-moz-focus-inner,
|
||
|
[type="button"]::-moz-focus-inner,
|
||
|
[type="reset"]::-moz-focus-inner,
|
||
|
[type="submit"]::-moz-focus-inner
|
||
|
) {
|
||
|
border-style: none;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} fieldset {
|
||
|
padding: 0.35em 0.75em 0.625em;
|
||
|
}
|
||
|
|
||
|
${e} legend {
|
||
|
box-sizing: border-box;
|
||
|
color: inherit;
|
||
|
display: table;
|
||
|
max-width: 100%;
|
||
|
padding: 0;
|
||
|
white-space: normal;
|
||
|
}
|
||
|
|
||
|
${e} progress {
|
||
|
vertical-align: baseline;
|
||
|
}
|
||
|
|
||
|
${e} textarea {
|
||
|
overflow: auto;
|
||
|
}
|
||
|
|
||
|
${e} :where([type="checkbox"], [type="radio"]) {
|
||
|
box-sizing: border-box;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} input[type="number"]::-webkit-inner-spin-button,
|
||
|
${e} input[type="number"]::-webkit-outer-spin-button {
|
||
|
-webkit-appearance: none !important;
|
||
|
}
|
||
|
|
||
|
${e} input[type="number"] {
|
||
|
-moz-appearance: textfield;
|
||
|
}
|
||
|
|
||
|
${e} input[type="search"] {
|
||
|
-webkit-appearance: textfield;
|
||
|
outline-offset: -2px;
|
||
|
}
|
||
|
|
||
|
${e} input[type="search"]::-webkit-search-decoration {
|
||
|
-webkit-appearance: none !important;
|
||
|
}
|
||
|
|
||
|
${e} ::-webkit-file-upload-button {
|
||
|
-webkit-appearance: button;
|
||
|
font: inherit;
|
||
|
}
|
||
|
|
||
|
${e} details {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
${e} summary {
|
||
|
display: list-item;
|
||
|
}
|
||
|
|
||
|
template {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
[hidden] {
|
||
|
display: none !important;
|
||
|
}
|
||
|
|
||
|
${e} :where(
|
||
|
blockquote,
|
||
|
dl,
|
||
|
dd,
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5,
|
||
|
h6,
|
||
|
hr,
|
||
|
figure,
|
||
|
p,
|
||
|
pre
|
||
|
) {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
${e} button {
|
||
|
background: transparent;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} fieldset {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} :where(ol, ul) {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
${e} textarea {
|
||
|
resize: vertical;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, [role="button"]) {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
${e} button::-moz-focus-inner {
|
||
|
border: 0 !important;
|
||
|
}
|
||
|
|
||
|
${e} table {
|
||
|
border-collapse: collapse;
|
||
|
}
|
||
|
|
||
|
${e} :where(h1, h2, h3, h4, h5, h6) {
|
||
|
font-size: inherit;
|
||
|
font-weight: inherit;
|
||
|
}
|
||
|
|
||
|
${e} :where(button, input, optgroup, select, textarea) {
|
||
|
padding: 0;
|
||
|
line-height: inherit;
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
${e} :where(img, video) {
|
||
|
max-width: 100%;
|
||
|
height: auto;
|
||
|
}
|
||
|
|
||
|
[data-js-focus-visible]
|
||
|
:focus:not([data-focus-visible-added]):not(
|
||
|
[data-focus-visible-disabled]
|
||
|
) {
|
||
|
outline: none;
|
||
|
box-shadow: none;
|
||
|
}
|
||
|
|
||
|
${e} select::-ms-expand {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
${ft}
|
||
|
`}),ze={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Jt(e={}){const{preventTransition:r=!0}=e,t={setDataset:n=>{const i=r?t.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,i==null||i()},setClassName(n){document.body.classList.add(n?ze.dark:ze.light),document.body.classList.remove(n?ze.light:ze.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var i;return((i=t.query().matches)!=null?i:n==="dark")?"dark":"light"},addListener(n){const i=t.query(),l=s=>{n(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(l):i.addEventListener("change",l),()=>{typeof i.removeListener=="function"?i.removeListener(l):i.removeEventListener("change",l)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return t}var Qt="chakra-ui-color-mode";function mt(e){return{ssr:!1,type:"localStorage",get(r){if(!(globalThis!=null&&globalThis.document))return r;let t;try{t=localStorage.getItem(e)||r}catch{}return t||r},set(r){try{localStorage.setItem(e,r)}catch{}}}}var ea=mt(Qt),Ar=()=>{};function Pr(e,r){return e.type==="cookie"&&e.ssr?e.get(r):r}function ht(e){const{value:r,children:t,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:l}={},colorModeManager:s=ea}=e,d=i==="dark"?"dark":"light",[b,$]=k.useState(()=>Pr(s,d)),[u,m]=k.useState(()=>Pr(s)),{getSystemTheme:_,setClassName:I,setDataset:ke,addListener:zr}=k.useMemo(()=>Jt({preventTransition:l}),[l]),_e=i==="system"&&!b?u:b,M=k.useCallback(oe=>{const we=oe==="system"?_():oe;$(we),I(we==="dark"),ke(we),s.set(we)},[s,_,I,ke]);Et(()=>{i==="system"&&m(_())},[]),k.useEffect(()=>{const oe=s.get();if(oe){M(oe);return}if(i==="system"){M("system");return}M(d)},[s,d,i,M]);const Cr=k.useCallback(()=>{M(_e==="dark"?"light":"dark")},[_e,M]);k.useEffect(()=>{if(n)return zr(M)},[n,zr,M]);const Bt=k.useMemo(()=>({colorMode:r??_e,toggleColorMode:r?Ar:Cr,setColorMode:r?Ar:M,forced:r!==void 0}),[_e,Cr,M,r]);return S.jsx(Dt.Provider,{value:Bt,children:t})}ht.displayName="ColorModeProvider";var ra=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function ta(e){return bt(e)?ra.every(r=>Object.prototype.hasOwnProperty.call(e,r)):!1}var aa={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},oa={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},na={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},ia={property:aa,easing:oa,duration:na},la=ia,sa={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},da=sa,ca={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},ba=ca,va={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},ua=va,fa={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"}
|
||
|
45deg,
|
||
|
${r} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${r} 50%,
|
||
|
${r} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}var So=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function xo(e){const r=So();return!e||ho(e)?r:e.string&&e.colors?ko(e.string,e.colors):e.string&&!e.colors?$o(e.string):e.colors&&!e.string?_o(e.colors):r}function $o(e){let r=0;if(e.length===0)return r.toString();for(let n=0;n<e.length;n+=1)r=e.charCodeAt(n)+((r<<5)-r),r=r&r;let t="#";for(let n=0;n<3;n+=1){const i=r>>n*8&255;t+=`00${i.toString(16)}`.substr(-2)}return t}function ko(e,r){let t=0;if(e.length===0)return r[0];for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t=t&t;return t=(t%r.length+r.length)%r.length,r[t]}function _o(e){return e[Math.floor(Math.random()*e.length)]}function o(e,r){return t=>t.colorMode==="dark"?r:e}function $r(e){const{orientation:r,vertical:t,horizontal:n}=e;return r?r==="vertical"?t:n:{}}function St(e){return bt(e)&&e.reference?e.reference:String(e)}var Je=(e,...r)=>r.map(St).join(` ${e} `).replace(/calc/g,""),Mr=(...e)=>`calc(${Je("+",...e)})`,Br=(...e)=>`calc(${Je("-",...e)})`,gr=(...e)=>`calc(${Je("*",...e)})`,Er=(...e)=>`calc(${Je("/",...e)})`,Dr=e=>{const r=St(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:gr(r,-1)},j=Object.assign(e=>({add:(...r)=>j(Mr(e,...r)),subtract:(...r)=>j(Br(e,...r)),multiply:(...r)=>j(gr(e,...r)),divide:(...r)=>j(Er(e,...r)),negate:()=>j(Dr(e)),toString:()=>e.toString()}),{add:Mr,subtract:Br,multiply:gr,divide:Er,negate:Dr});function wo(e){return!Number.isInteger(parseFloat(e.toString()))}function zo(e,r="-"){return e.replace(/\s+/g,r)}function xt(e){const r=zo(e.toString());return r.includes("\\.")?e:wo(e)?r.replace(".","\\."):e}function Co(e,r=""){return[r,xt(e)].filter(Boolean).join("-")}function Ao(e,r){return`var(${xt(e)}${r?`, ${r}`:""})`}function Po(e,r=""){return`--${Co(e,r)}`}function y(e,r){const t=Po(e,r==null?void 0:r.prefix);return{variable:t,reference:Ao(t,To(r==null?void 0:r.fallback))}}function To(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:Fo,definePartsStyle:He}=v(Xa.keys),ue=y("switch-track-width"),G=y("switch-track-height"),rr=y("switch-track-diff"),Io=j.subtract(ue,G),yr=y("switch-thumb-x"),ie=y("switch-bg"),Mo=a(e=>{const{colorScheme:r}=e;return{borderRadius:"full",p:"0.5",width:[ue.reference],height:[G.reference],transitionProperty:"common",transitionDuration:"fast",[ie.variable]:"colors.gray.300",_dark:{[ie.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ie.variable]:`colors.${r}.500`,_dark:{[ie.variable]:`colors.${r}.200`}},bg:ie.reference}}),Bo=a({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[G.reference],height:[G.reference],_checked:{transform:`translateX(${yr.reference})`}}),Eo=He(e=>({container:{[rr.variable]:Io,[yr.variable]:rr.reference,_rtl:{[yr.variable]:j(rr).negate().toString()}},track:Mo(e),thumb:Bo})),Do={sm:He({container:{[ue.variable]:"1.375rem",[G.variable]:"sizes.3"}}),md:He({container:{[ue.variable]:"1.875rem",[G.variable]:"sizes.4"}}),lg:He({container:{[ue.variable]:"2.875rem",[G.variable]:"sizes.6"}})},jo=Fo({baseStyle:Eo,sizes:Do,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ro,definePartsStyle:J}=v(Za.keys),Ho=J({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Ye=a({"&[data-is-numeric=true]":{textAlign:"end"}}),Wo=J(e=>{const{colorScheme:r}=e;return{th:{color:o("gray.600","gray.400")(e),borderBottom:"1px",borderColor:o(`${r}.100`,`${r}.700`)(e),...Ye},td:{borderBottom:"1px",borderColor:o(`${r}.100`,`${r}.700`)(e),...Ye},caption:{color:o("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Lo=J(e=>{const{colorScheme:r}=e;return{th:{color:o("gray.600","gray.400")(e
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${F(t,s)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!n&&i&&l,...n?{bgImage:d}:{bgColor:s}}}),jn=a({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),Rn=a(e=>({bg:o("gray.100","whiteAlpha.300")(e)})),Hn=a(e=>({transitionProperty:"common",transitionDuration:"slow",...Dn(e)})),Wn=be(e=>({label:jn,filledTrack:Hn(e),track:Rn(e)})),Ln={xs:be({track:{h:"1"}}),sm:be({track:{h:"2"}}),md:be({track:{h:"3"}}),lg:be({track:{h:"4"}})},Vn=En({sizes:Ln,baseStyle:Wn,defaultProps:{size:"md",colorScheme:"blue"}}),On=e=>typeof e=="function";function w(e,...r){return On(e)?e(...r):e}var{definePartsStyle:qe,defineMultiStyleConfig:qn}=v(Ba.keys),me=c("checkbox-size"),Nn=a(e=>{const{colorScheme:r}=e;return{w:me.reference,h:me.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:o(`${r}.500`,`${r}.200`)(e),borderColor:o(`${r}.500`,`${r}.200`)(e),color:o("white","gray.900")(e),_hover:{bg:o(`${r}.600`,`${r}.300`)(e),borderColor:o(`${r}.600`,`${r}.300`)(e)},_disabled:{borderColor:o("gray.200","transparent")(e),bg:o("gray.200","whiteAlpha.300")(e),color:o("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:o(`${r}.500`,`${r}.200`)(e),borderColor:o(`${r}.500`,`${r}.200`)(e),color:o("white","gray.900")(e)},_disabled:{bg:o("gray.100","whiteAlpha.100")(e),borderColor:o("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:o("red.500","red.300")(e)}}}),Gn=a({_disabled:{cursor:"not-allowed"}}),Un=a({userSelect:"none",_disabled:{opacity:.4}}),Yn=a({transitionProperty:"transform",transitionDuration:"normal"}),Kn=qe(e=>({icon:Yn,container:Gn,control:w(Nn,e),label:Un})),Xn={sm:qe({control:{[me.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:qe({control:{[me.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:qe({control:{[me.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ke=qn({baseStyle:Kn,sizes:Xn,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Zn,definePartsStyle:Ne}=v(Ga.keys),Jn=a(e=>{var r;const t=(r=w(Ke.baseStyle,e))==null?void 0:r.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),Qn=Ne(e=>{var r,t,n,i;return{label:(t=(r=Ke).baseStyle)==null?void 0:t.call(r,e).label,container:(i=(n=Ke).baseStyle)==null?void 0:i.call(n,e).container,control:Jn(e)}}),ei={md:Ne({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ne({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ne({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},ri=Zn({baseStyle:Qn,sizes:ei,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ti,definePartsStyle:ai}=v(Ua.keys),Pe=c("select-bg"),Xr,oi=a({...(Xr=f.baseStyle)==null?void 0:Xr.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Pe.reference,[Pe.variable]:"colors.white",_dark:{[Pe.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Pe.reference}}),ni=a({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}),ii=ai({field:oi,icon:ni}),Te=a({paddingInlineEnd:"8"}),Zr,Jr,Qr,et,rt,tt,at,ot,li={lg:{...(Zr=f.sizes)==null?void 0:Zr.lg,field:{...(Jr=f.sizes)==null?void 0:Jr.lg.field,...Te}},md:{...(Qr=f.sizes)==null?void 0:Qr.md,field:{...(et=f.sizes)==null?void 0:et.md.field,...Te}},sm:{...(rt=f.sizes)==null?void 0:rt.sm,field:{...(tt=f.sizes)==null?void 0:tt.sm.field,...Te}},xs:{...(at=f.sizes)==null?void 0:at.xs,field:{...(ot=f.sizes)==null?void 0:ot.xs.field,...Te},icon:{insetEnd:"1"}}},si=ti({baseStyle:ii,sizes:li,variants:f.variants,defaultProps:f.defaultProps}),or=c("skeleton-start-color"),nr=c("skeleton-end-color"),di=a({[or.variable]:"colors.gray.100",[nr.variable]:"colors.gray.400",_dark:{[or.variable]:"colors.gray.800",[nr.variable]:"colors.gray.600"},background:or.reference,borderColor:nr.reference,opacity:.7,borderRadius:"sm"}),ci=p({baseStyle:di}),ir=c("skip-link-bg"),bi=a({borderRadius:"md",
|
||
|
var(--invokeai-colors-base-50) 0%,
|
||
|
var(--invokeai-colors-base-50) 70%,
|
||
|
var(--invokeai-colors-base-200) 70%,
|
||
|
var(--invokeai-colors-base-200) 100%)`},_dark:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
|
||
|
var(--invokeai-colors-base-900) 0%,
|
||
|
var(--invokeai-colors-base-900) 70%,
|
||
|
var(--invokeai-colors-base-800) 70%,
|
||
|
var(--invokeai-colors-base-800) 100%)`}}})),Tc=p({variants:{invokeAI:Pc},defaultProps:{size:"md",variant:"invokeAI"}}),Fc=y("popper-arrow-bg"),Ic=a(e=>({borderRadius:"base",shadow:"dark-lg",bg:o("base.700","base.200")(e),[Fc.variable]:o("colors.base.700","colors.base.200")(e),pb:1.5})),Mc=p({baseStyle:Ic}),dt=c("skeleton-start-color"),ct=c("skeleton-end-color"),Bc=a({borderRadius:"base",maxW:"full",maxH:"full",_light:{[dt.variable]:"colors.base.250",[ct.variable]:"colors.base.450"},_dark:{[dt.variable]:"colors.base.700",[ct.variable]:"colors.base.500"}}),Ec=p({variants:{invokeAI:Bc},defaultProps:{variant:"invokeAI"}}),Dc={config:{cssVarPrefix:"invokeai",initialColorMode:"dark",useSystemColorMode:!1},layerStyles:{body:{bg:"base.50",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.50"}},first:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.850",color:"base.100"}},second:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}}},styles:{global:()=>({layerStyle:"body","*":{...Jd}})},direction:"ltr",fonts:{body:"'Inter Variable', sans-serif"},shadows:{light:{accent:"0 0 10px 0 var(--invokeai-colors-accent-300)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-400)",ok:"0 0 7px var(--invokeai-colors-ok-600)",working:"0 0 7px var(--invokeai-colors-working-600)",error:"0 0 7px var(--invokeai-colors-error-600)"},dark:{accent:"0 0 10px 0 var(--invokeai-colors-accent-600)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-500)",ok:"0 0 7px var(--invokeai-colors-ok-400)",working:"0 0 7px var(--invokeai-colors-working-400)",error:"0 0 7px var(--invokeai-colors-error-400)"},selected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-400)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-400)"},nodeSelectedOutline:"0 0 0 2px var(--invokeai-colors-base-500)"},colors:E0,components:{Button:ad,Input:fd,Textarea:Tc,Tabs:zc,Progress:Zd,Accordion:rd,FormLabel:cd,Switch:yc,NumberInput:jd,Select:oc,Skeleton:Ec,Slider:vc,Popover:Nd,Modal:Pd,Checkbox:sd,Menu:yd,Text:Ac,Tooltip:Mc}};const jc={colorScheme:"dark",fontFamily:"'Inter Variable', sans-serif",components:{ScrollArea:{defaultProps:{scrollbarSize:10},styles:{scrollbar:{"&:hover":{backgroundColor:"var(--invokeai-colors-baseAlpha-300)"}},thumb:{backgroundColor:"var(--invokeai-colors-baseAlpha-300)"}}}}};const Rc=mt("@@invokeai-color-mode");function Lc({children:e}){const{i18n:r}=Yt(),t=r.dir(),n=k.useMemo(()=>z0({...Dc,direction:t}),[t]);return k.useEffect(()=>{document.body.dir=t},[t]),S.jsx(Kt,{withGlobalStyles:!0,theme:jc,children:S.jsx(B0,{theme:n,colorModeManager:Rc,children:e})})}export{Lc as default};
|