diff --git a/assets/Color-KGDBMAHA-DISiKcKx.js b/assets/Color-KGDBMAHA-BikzaXN0.js similarity index 99% rename from assets/Color-KGDBMAHA-DISiKcKx.js rename to assets/Color-KGDBMAHA-BikzaXN0.js index 6963dc6e..cb6de9c4 100644 --- a/assets/Color-KGDBMAHA-DISiKcKx.js +++ b/assets/Color-KGDBMAHA-BikzaXN0.js @@ -1 +1 @@ -import{ae as Me,af as C,a2 as ie,a0 as Ce,b as $e,ag as Oe,ah as Ie}from"./DocsRenderer-PKQXORMH-BpGHKUfb.js";import{a as h,r as m,g as ue}from"./index-BP8_t0zE.js";import{_ as Ne,i as fe}from"./isArray-d9wiqGGH.js";import"./iframe-ClOmmjK7.js";import"../sb-preview/runtime.js";import"./react-18-Glus6dSN.js";import"./index-Cw6ikIwd.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var N=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(te(o.current,p,s.current)):E(!1)},S=function(){return E(!1)};function E(p){var b=c.current,k=V(o.current),y=p?k.addEventListener:k.removeEventListener;y(b?"touchmove":"mousemove",w),y(b?"touchend":"mouseup",S)}return[function(p){var b=p.nativeEvent,k=o.current;if(k&&(ne(b),!function(R,j){return j&&!z(R)}(b,c.current)&&k)){if(z(b)){c.current=!0;var y=b.changedTouches||[];y.length&&(s.current=y[0].identifier)}k.focus(),a(te(k,b,s.current)),E(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},E]},[l,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),H=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=H(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},x=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?x(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?x(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},Te=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ze({h:je(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},ze=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},Fe=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:x(e.h),s:x(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:x(o/2),a:x(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:x(255*[r,s,l,l,c,r][i]),g:x(255*[c,r,r,s,l,l][i]),b:x(255*[l,l,c,r,r,s][i]),a:x(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(x(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:x(60*(s<0?s+6:s)),s:x(a?l/a*100:0),v:x(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=H(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:N(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:N(t.s+100*o.left,0,100),v:N(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(t.s)+"%, Brightness "+x(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var i=e.toHsva(t);s.current={hsva:i,color:t},l(i)}},[t,e]),m.useEffect(function(){var i;ve(a,s.current.hsva)||e.equal(i=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){l(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},re=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!re.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,re.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Xe=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=J(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var c=ye(n,o,a),i=c[0],d=c[1],f=H(["react-colorful",t]);return h.createElement("div",$({},l,{ref:s,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},De={defaultColor:"000",toHsva:Re,fromHsva:function(e){return Fe({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},We=function(e){return h.createElement(Xe,$({},e,{colorModel:De}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=H(["react-colorful__alpha",t]),l=x(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:N(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=J(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var c=ye(n,o,a),i=c[0],d=c[1],f=H(["react-colorful",t]);return h.createElement("div",$({},l,{ref:s,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d}),h.createElement(Ke,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Te,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=a-o;let s,c;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=l/(a+o):c=l/(2-a-o),[s,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,c=e[2]/255,i=Math.max(l,s,c),d=i-Math.min(l,s,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(l),n=f(s),r=f(c),l===i?o=r-n:s===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],l=Je(e,a);l.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,c[i]=l*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),l=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,l];case 1:return[s,r,l];case 2:return[l,r,c];case 3:return[l,s,r];case 4:return[c,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const c=n+a*(s-n);let i,d,f;switch(l){default:case 6:case 0:i=s,d=c,f=n;break;case 1:i=c,d=s,f=n;break;case 2:i=n,d=s,f=c;break;case 3:i=n,d=c,f=s;break;case 4:i=c,d=n,f=s;break;case 5:i=s,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,c=o**3,i=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,l=i>.008856?i:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(n*n+r*r);return[t,l,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),l=n*Math.sin(o);return[t,a,l]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),l=o-a;let s,c;return l<1?s=a/(1-l):s=0,l<=0?c=0:o===t?c=(n-r)/l%6:o===n?c=2+(r-t)/l:c=4+(t-n)/l,c/=6,c%=1,[c*360,l*100,s*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,l=a%1,s=1-l;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=_e;function Qe(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function lt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,l=0;l{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=lt(o),O[e][r].raw=at(o)})});var st=O;const _=ue(st);var ct=Ne,it=function(){return ct.Date.now()},ut=it,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,oe=fe,yt=Me,ae=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return ae;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?ae:+e}var Mt=Et,Ct=fe,W=ut,le=Mt,$t="Expected a function",Ot=Math.max,It=Math.min;function Nt(e,t,n){var r,o,a,l,s,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function w(v){var M=r,T=o;return r=o=void 0,i=v,l=e.apply(T,M),l}function S(v){return i=v,s=setTimeout(b,t),d?w(v):l}function E(v){var M=v-c,T=v-i,ee=t-M;return f?It(ee,a-T):ee}function p(v){var M=v-c,T=v-i;return c===void 0||M>=t||M<0||f&&T>=a}function b(){var v=W();if(p(v))return k(v);s=setTimeout(b,E(v))}function k(v){return s=void 0,g&&r?w(v):(r=o=void 0,l)}function y(){s!==void 0&&clearTimeout(s),i=0,r=c=o=s=void 0}function R(){return s===void 0?l:k(W())}function j(){var v=W(),M=p(v);if(r=arguments,o=this,c=v,M){if(s===void 0)return S(c);if(f)return clearTimeout(s),s=setTimeout(b,t),w(c)}return s===void 0&&(s=setTimeout(b,t)),l}return j.cancel=y,j.flush=R,j}var St=Nt;const Rt=ue(St);var jt=C.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Tt=C(ie)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),zt=C.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ft=C(Ce)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Ht=C.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=C.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,se=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return h.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=C($e.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=C(Oe)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Xt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Dt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:We,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e?.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[l,s,c,i]=ce(e),[d,f,g]=_.rgb.hsl([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([l,s,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([l,s,c]).toLowerCase()}`}}if(Wt.test(e)){let[l,s,c,i]=ce(e),[d,f,g]=_.hsl.rgb([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([l,s,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([l,s,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!t?.valid)return q[n];if(n!=="hex")return t?.[n]||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},Gt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>I(n)),[l,s]=m.useState(o?.colorSpace||"hex");m.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),s(g?.colorSpace||"hex")},[e]);let c=m.useMemo(()=>At(n,o,l).toLowerCase(),[n,o,l]),i=m.useCallback(f=>{let g=I(f),w=g?.value||f||"";r(w),w===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(l)+1;f>=L.length&&(f=0),s(L[f]);let g=o?.[L[f]]||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:l,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=m.useState(t?.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(s=>typeof s=="string"?I(s):s.title?{...I(s.color),keyword:s.title}:I(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s?.valid&&(a.some(c=>D(c[n])===D(s[n]))||o(c=>c.concat(s)))},[n,a]);return{presets:a,addPreset:l}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{let c=m.useCallback(Rt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:w,cycleColorSpace:S}=Gt(t,c),{presets:E,addPreset:p}=Ut(a,g,w),b=Vt[w],k=!!s?.table?.readonly;return h.createElement(jt,{"aria-readonly":k},h.createElement(Tt,{startOpen:l,trigger:k?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(zt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),E.length>0&&h.createElement(Ht,null,E.map((y,R)=>h.createElement(ie,{key:`${y.value}-${R}`,hasChrome:!1,tooltip:h.createElement(Ft,{note:y.keyword||y.value})},h.createElement(se,{value:y[w],active:g&&D(y[w])===D(g[w]),onClick:()=>f(y.value)})))))},h.createElement(se,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ie(e),value:i,onChange:y=>f(y.target.value),onFocus:y=>y.target.select(),readOnly:k,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:S}):null)},ln=Yt;export{Yt as ColorControl,ln as default}; +import{ae as Me,af as C,a2 as ie,a0 as Ce,b as $e,ag as Oe,ah as Ie}from"./DocsRenderer-PKQXORMH-CIar5Tid.js";import{a as h,r as m,g as ue}from"./index-BP8_t0zE.js";import{_ as Ne,i as fe}from"./isArray-d9wiqGGH.js";import"./iframe-P0aWvRAp.js";import"../sb-preview/runtime.js";import"./react-18-Glus6dSN.js";import"./index-Cw6ikIwd.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var N=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(te(o.current,p,s.current)):E(!1)},S=function(){return E(!1)};function E(p){var b=c.current,k=V(o.current),y=p?k.addEventListener:k.removeEventListener;y(b?"touchmove":"mousemove",w),y(b?"touchend":"mouseup",S)}return[function(p){var b=p.nativeEvent,k=o.current;if(k&&(ne(b),!function(R,j){return j&&!z(R)}(b,c.current)&&k)){if(z(b)){c.current=!0;var y=b.changedTouches||[];y.length&&(s.current=y[0].identifier)}k.focus(),a(te(k,b,s.current)),E(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},E]},[l,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),H=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=H(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},x=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?x(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?x(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},Te=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ze({h:je(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},ze=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},Fe=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:x(e.h),s:x(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:x(o/2),a:x(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:x(255*[r,s,l,l,c,r][i]),g:x(255*[c,r,r,s,l,l][i]),b:x(255*[l,l,c,r,r,s][i]),a:x(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(x(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:x(60*(s<0?s+6:s)),s:x(a?l/a*100:0),v:x(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=H(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:N(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:N(t.s+100*o.left,0,100),v:N(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(t.s)+"%, Brightness "+x(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var i=e.toHsva(t);s.current={hsva:i,color:t},l(i)}},[t,e]),m.useEffect(function(){var i;ve(a,s.current.hsva)||e.equal(i=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){l(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},re=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!re.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,re.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Xe=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=J(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var c=ye(n,o,a),i=c[0],d=c[1],f=H(["react-colorful",t]);return h.createElement("div",$({},l,{ref:s,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},De={defaultColor:"000",toHsva:Re,fromHsva:function(e){return Fe({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},We=function(e){return h.createElement(Xe,$({},e,{colorModel:De}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=H(["react-colorful__alpha",t]),l=x(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:N(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=J(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var c=ye(n,o,a),i=c[0],d=c[1],f=H(["react-colorful",t]);return h.createElement("div",$({},l,{ref:s,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d}),h.createElement(Ke,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Te,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=a-o;let s,c;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=l/(a+o):c=l/(2-a-o),[s,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,c=e[2]/255,i=Math.max(l,s,c),d=i-Math.min(l,s,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(l),n=f(s),r=f(c),l===i?o=r-n:s===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],l=Je(e,a);l.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,c[i]=l*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),l=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,l];case 1:return[s,r,l];case 2:return[l,r,c];case 3:return[l,s,r];case 4:return[c,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const c=n+a*(s-n);let i,d,f;switch(l){default:case 6:case 0:i=s,d=c,f=n;break;case 1:i=c,d=s,f=n;break;case 2:i=n,d=s,f=c;break;case 3:i=n,d=c,f=s;break;case 4:i=c,d=n,f=s;break;case 5:i=s,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,c=o**3,i=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,l=i>.008856?i:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(n*n+r*r);return[t,l,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),l=n*Math.sin(o);return[t,a,l]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),l=o-a;let s,c;return l<1?s=a/(1-l):s=0,l<=0?c=0:o===t?c=(n-r)/l%6:o===n?c=2+(r-t)/l:c=4+(t-n)/l,c/=6,c%=1,[c*360,l*100,s*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,l=a%1,s=1-l;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=_e;function Qe(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function lt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,l=0;l{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=lt(o),O[e][r].raw=at(o)})});var st=O;const _=ue(st);var ct=Ne,it=function(){return ct.Date.now()},ut=it,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,oe=fe,yt=Me,ae=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return ae;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?ae:+e}var Mt=Et,Ct=fe,W=ut,le=Mt,$t="Expected a function",Ot=Math.max,It=Math.min;function Nt(e,t,n){var r,o,a,l,s,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function w(v){var M=r,T=o;return r=o=void 0,i=v,l=e.apply(T,M),l}function S(v){return i=v,s=setTimeout(b,t),d?w(v):l}function E(v){var M=v-c,T=v-i,ee=t-M;return f?It(ee,a-T):ee}function p(v){var M=v-c,T=v-i;return c===void 0||M>=t||M<0||f&&T>=a}function b(){var v=W();if(p(v))return k(v);s=setTimeout(b,E(v))}function k(v){return s=void 0,g&&r?w(v):(r=o=void 0,l)}function y(){s!==void 0&&clearTimeout(s),i=0,r=c=o=s=void 0}function R(){return s===void 0?l:k(W())}function j(){var v=W(),M=p(v);if(r=arguments,o=this,c=v,M){if(s===void 0)return S(c);if(f)return clearTimeout(s),s=setTimeout(b,t),w(c)}return s===void 0&&(s=setTimeout(b,t)),l}return j.cancel=y,j.flush=R,j}var St=Nt;const Rt=ue(St);var jt=C.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Tt=C(ie)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),zt=C.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ft=C(Ce)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Ht=C.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=C.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,se=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return h.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=C($e.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=C(Oe)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Xt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Dt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:We,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e?.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[l,s,c,i]=ce(e),[d,f,g]=_.rgb.hsl([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([l,s,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([l,s,c]).toLowerCase()}`}}if(Wt.test(e)){let[l,s,c,i]=ce(e),[d,f,g]=_.hsl.rgb([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([l,s,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([l,s,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!t?.valid)return q[n];if(n!=="hex")return t?.[n]||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},Gt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>I(n)),[l,s]=m.useState(o?.colorSpace||"hex");m.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),s(g?.colorSpace||"hex")},[e]);let c=m.useMemo(()=>At(n,o,l).toLowerCase(),[n,o,l]),i=m.useCallback(f=>{let g=I(f),w=g?.value||f||"";r(w),w===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(l)+1;f>=L.length&&(f=0),s(L[f]);let g=o?.[L[f]]||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:l,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=m.useState(t?.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(s=>typeof s=="string"?I(s):s.title?{...I(s.color),keyword:s.title}:I(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s?.valid&&(a.some(c=>D(c[n])===D(s[n]))||o(c=>c.concat(s)))},[n,a]);return{presets:a,addPreset:l}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{let c=m.useCallback(Rt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:w,cycleColorSpace:S}=Gt(t,c),{presets:E,addPreset:p}=Ut(a,g,w),b=Vt[w],k=!!s?.table?.readonly;return h.createElement(jt,{"aria-readonly":k},h.createElement(Tt,{startOpen:l,trigger:k?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(zt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),E.length>0&&h.createElement(Ht,null,E.map((y,R)=>h.createElement(ie,{key:`${y.value}-${R}`,hasChrome:!1,tooltip:h.createElement(Ft,{note:y.keyword||y.value})},h.createElement(se,{value:y[w],active:g&&D(y[w])===D(g[w]),onClick:()=>f(y.value)})))))},h.createElement(se,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ie(e),value:i,onChange:y=>f(y.target.value),onFocus:y=>y.target.select(),readOnly:k,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:S}):null)},ln=Yt;export{Yt as ColorControl,ln as default}; diff --git a/assets/ContextMenu.stories-Cr8u2iHr.js b/assets/ContextMenu.stories-DcJKyxZc.js similarity index 97% rename from assets/ContextMenu.stories-Cr8u2iHr.js rename to assets/ContextMenu.stories-DcJKyxZc.js index 6664f515..e54b0184 100644 --- a/assets/ContextMenu.stories-Cr8u2iHr.js +++ b/assets/ContextMenu.stories-DcJKyxZc.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{U as i}from"./user-profile-EvkA4CON.js";import{N as s,C as a,L as c}from"./notifications-MBLL4uPX.js";import{C as o}from"./ContextMenu-atZ_dKnN.js";import{M as n}from"./MenuItem-CmF0V73j.js";import{S as l}from"./Separator-DLPJ0xlb.js";import"./index-BP8_t0zE.js";import"./index-DD7XHAoh.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./index-Dp4tTk3o.js";import"./index-DOPlf36I.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./DrawerMenu-BgyYdqxq.js";import"./chevron-right-DF47_mtr.js";const L={title:"Menu/ContextMenu",component:o,tags:["autodocs"],argTypes:{},args:{}},m=r=>e.jsxs(o,{...r,title:"Settings",trigger:e.jsx("div",{style:{borderRadius:24,background:"var(--cpd-color-bg-subtle-secondary)",inlineSize:300,blockSize:200,textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",padding:32,boxSizing:"border-box"},children:"Right click or long press to open menu"}),hasAccessibleAlternative:!1,children:[e.jsx(n,{Icon:i,label:"Profile",onSelect:()=>{}}),e.jsx(n,{Icon:s,label:"Notifications",onSelect:()=>{}}),e.jsx(n,{Icon:a,label:"Feedback",onSelect:()=>{}}),e.jsx(l,{}),e.jsx(n,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]}),t=m.bind({});t.args={};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`args => { +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{U as i}from"./user-profile-EvkA4CON.js";import{N as s,C as a,L as c}from"./notifications-MBLL4uPX.js";import{C as o}from"./ContextMenu-atZ_dKnN.js";import{M as n}from"./MenuItem-CmF0V73j.js";import{S as l}from"./Separator-gTPqRITt.js";import"./index-BP8_t0zE.js";import"./index-DD7XHAoh.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./index-Dp4tTk3o.js";import"./index-DOPlf36I.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./DrawerMenu-BgyYdqxq.js";import"./chevron-right-DF47_mtr.js";const L={title:"Menu/ContextMenu",component:o,tags:["autodocs"],argTypes:{},args:{}},m=r=>e.jsxs(o,{...r,title:"Settings",trigger:e.jsx("div",{style:{borderRadius:24,background:"var(--cpd-color-bg-subtle-secondary)",inlineSize:300,blockSize:200,textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",padding:32,boxSizing:"border-box"},children:"Right click or long press to open menu"}),hasAccessibleAlternative:!1,children:[e.jsx(n,{Icon:i,label:"Profile",onSelect:()=>{}}),e.jsx(n,{Icon:s,label:"Notifications",onSelect:()=>{}}),e.jsx(n,{Icon:a,label:"Feedback",onSelect:()=>{}}),e.jsx(l,{}),e.jsx(n,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]}),t=m.bind({});t.args={};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`args => { return i.map(i=>d[i]); -import{_ as op}from"./iframe-ClOmmjK7.js";import{r as l,a as y,g as Cs}from"./index-BP8_t0zE.js";import{r as bD,u as wD}from"./react-18-Glus6dSN.js";import{w as c3,r as ip}from"./index-Cw6ikIwd.js";import{O as d3,P as ED}from"./index-D-8MO0q_.js";import{_ as mr,h as p3,i as Aa,j as lp,d as gr,a as Ds,c as bn,k as xD,l as CD,b as f3,e as Zh,s as zu}from"./isArray-d9wiqGGH.js";import{d as DD}from"./index-DrFu-skq.js";var SD=Object.create,h3=Object.defineProperty,AD=Object.getOwnPropertyDescriptor,m3=Object.getOwnPropertyNames,kD=Object.getPrototypeOf,_D=Object.prototype.hasOwnProperty,ka=(e,t)=>function(){return t||(0,e[m3(e)[0]])((t={exports:{}}).exports,t),t.exports},FD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of m3(t))!_D.call(e,a)&&a!==r&&h3(e,a,{get:()=>t[a],enumerable:!(n=AD(t,a))||n.enumerable});return e},TD=(e,t,r)=>(r=e!=null?SD(kD(e)):{},FD(!e||!e.__esModule?h3(r,"default",{value:e,enumerable:!0}):r,e)),Dt=e=>`control-${e.replace(/\s+/g,"-")}`,Ss=e=>`set-${e.replace(/\s+/g,"-")}`,ID=Object.create,sp=Object.defineProperty,RD=Object.getOwnPropertyDescriptor,BD=Object.getOwnPropertyNames,zD=Object.getPrototypeOf,$D=Object.prototype.hasOwnProperty,T=(e,t)=>sp(e,"name",{value:t,configurable:!0}),Ri=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),As=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),LD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of BD(t))!$D.call(e,a)&&a!==r&&sp(e,a,{get:()=>t[a],enumerable:!(n=RD(t,a))||n.enumerable});return e},up=(e,t,r)=>(r=e!=null?ID(zD(e)):{},LD(t||!e||!e.__esModule?sp(r,"default",{value:e,enumerable:!0}):r,e)),OD=As(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===a||P===p||P===i||P===o||P===m||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===g||P.$$typeof===v||P.$$typeof===s||P.$$typeof===u||P.$$typeof===h||P.$$typeof===C||P.$$typeof===E||P.$$typeof===x||P.$$typeof===b)}T(w,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var ct=P.$$typeof;switch(ct){case r:var _t=P.type;switch(_t){case d:case p:case a:case i:case o:case m:return _t;default:var Vr=_t&&_t.$$typeof;switch(Vr){case u:case h:case g:case v:case s:return Vr;default:return ct}}case n:return ct}}}T(D,"typeOf");var S=d,A=p,k=u,F=s,I=r,R=h,$=a,z=g,O=v,L=n,M=i,j=o,G=m,H=!1;function K(P){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(P)||D(P)===d}T(K,"isAsyncMode");function te(P){return D(P)===p}T(te,"isConcurrentMode");function le(P){return D(P)===u}T(le,"isContextConsumer");function Q(P){return D(P)===s}T(Q,"isContextProvider");function re(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}T(re,"isElement");function N(P){return D(P)===h}T(N,"isForwardRef");function Y(P){return D(P)===a}T(Y,"isFragment");function J(P){return D(P)===g}T(J,"isLazy");function pe(P){return D(P)===v}T(pe,"isMemo");function Se(P){return D(P)===n}T(Se,"isPortal");function kt(P){return D(P)===i}T(kt,"isProfiler");function qe(P){return D(P)===o}T(qe,"isStrictMode");function ut(P){return D(P)===m}T(ut,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=I,e.ForwardRef=R,e.Fragment=$,e.Lazy=z,e.Memo=O,e.Portal=L,e.Profiler=M,e.StrictMode=j,e.Suspense=G,e.isAsyncMode=K,e.isConcurrentMode=te,e.isContextConsumer=le,e.isContextProvider=Q,e.isElement=re,e.isForwardRef=N,e.isFragment=Y,e.isLazy=J,e.isMemo=pe,e.isPortal=Se,e.isProfiler=kt,e.isStrictMode=qe,e.isSuspense=ut,e.isValidElementType=w,e.typeOf=D})()}),MD=As((e,t)=>{t.exports=OD()}),g3=As((e,t)=>{var r=MD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function u(b){return r.isMemo(b)?i:s[b.$$typeof]||n}T(u,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(b,C,E){if(typeof C!="string"){if(v){var x=f(C);x&&x!==v&&g(b,x,E)}var w=p(C);h&&(w=w.concat(h(C)));for(var D=u(b),S=u(C),A=0;A{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return T(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var h=typeof Ri=="function"&&Ri;if(!p&&h)return h(d,!0);if(s)return s(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}T(i,"s");for(var s=typeof Ri=="function"&&Ri,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(E[C]={cacheItem:v,arg:arguments[C]},x?i(h,E):h.push(E),h.length>d&&s(h.shift())),f.wasMemoized=x,f.numArgs=C+1,b},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=h,f}};function i(d,p){var h=d.length,m=p.length,f,v,g;for(v=0;v=0&&(h=d[f],m=h.cacheItem.get(h.arg),!m||!m.size);f--)h.cacheItem.delete(h.arg)}T(s,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}T(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +import{_ as op}from"./iframe-P0aWvRAp.js";import{r as l,a as y,g as Cs}from"./index-BP8_t0zE.js";import{r as bD,u as wD}from"./react-18-Glus6dSN.js";import{w as c3,r as ip}from"./index-Cw6ikIwd.js";import{O as d3,P as ED}from"./index-D-8MO0q_.js";import{_ as mr,h as p3,i as Aa,j as lp,d as gr,a as Ds,c as bn,k as xD,l as CD,b as f3,e as Zh,s as zu}from"./isArray-d9wiqGGH.js";import{d as DD}from"./index-DrFu-skq.js";var SD=Object.create,h3=Object.defineProperty,AD=Object.getOwnPropertyDescriptor,m3=Object.getOwnPropertyNames,kD=Object.getPrototypeOf,_D=Object.prototype.hasOwnProperty,ka=(e,t)=>function(){return t||(0,e[m3(e)[0]])((t={exports:{}}).exports,t),t.exports},FD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of m3(t))!_D.call(e,a)&&a!==r&&h3(e,a,{get:()=>t[a],enumerable:!(n=AD(t,a))||n.enumerable});return e},TD=(e,t,r)=>(r=e!=null?SD(kD(e)):{},FD(!e||!e.__esModule?h3(r,"default",{value:e,enumerable:!0}):r,e)),Dt=e=>`control-${e.replace(/\s+/g,"-")}`,Ss=e=>`set-${e.replace(/\s+/g,"-")}`,ID=Object.create,sp=Object.defineProperty,RD=Object.getOwnPropertyDescriptor,BD=Object.getOwnPropertyNames,zD=Object.getPrototypeOf,$D=Object.prototype.hasOwnProperty,T=(e,t)=>sp(e,"name",{value:t,configurable:!0}),Ri=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),As=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),LD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of BD(t))!$D.call(e,a)&&a!==r&&sp(e,a,{get:()=>t[a],enumerable:!(n=RD(t,a))||n.enumerable});return e},up=(e,t,r)=>(r=e!=null?ID(zD(e)):{},LD(t||!e||!e.__esModule?sp(r,"default",{value:e,enumerable:!0}):r,e)),OD=As(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===a||P===p||P===i||P===o||P===m||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===g||P.$$typeof===v||P.$$typeof===s||P.$$typeof===u||P.$$typeof===h||P.$$typeof===C||P.$$typeof===E||P.$$typeof===x||P.$$typeof===b)}T(w,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var ct=P.$$typeof;switch(ct){case r:var _t=P.type;switch(_t){case d:case p:case a:case i:case o:case m:return _t;default:var Vr=_t&&_t.$$typeof;switch(Vr){case u:case h:case g:case v:case s:return Vr;default:return ct}}case n:return ct}}}T(D,"typeOf");var S=d,A=p,k=u,F=s,I=r,R=h,$=a,z=g,O=v,L=n,M=i,j=o,G=m,H=!1;function K(P){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(P)||D(P)===d}T(K,"isAsyncMode");function te(P){return D(P)===p}T(te,"isConcurrentMode");function le(P){return D(P)===u}T(le,"isContextConsumer");function Q(P){return D(P)===s}T(Q,"isContextProvider");function re(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}T(re,"isElement");function N(P){return D(P)===h}T(N,"isForwardRef");function Y(P){return D(P)===a}T(Y,"isFragment");function J(P){return D(P)===g}T(J,"isLazy");function pe(P){return D(P)===v}T(pe,"isMemo");function Se(P){return D(P)===n}T(Se,"isPortal");function kt(P){return D(P)===i}T(kt,"isProfiler");function qe(P){return D(P)===o}T(qe,"isStrictMode");function ut(P){return D(P)===m}T(ut,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=I,e.ForwardRef=R,e.Fragment=$,e.Lazy=z,e.Memo=O,e.Portal=L,e.Profiler=M,e.StrictMode=j,e.Suspense=G,e.isAsyncMode=K,e.isConcurrentMode=te,e.isContextConsumer=le,e.isContextProvider=Q,e.isElement=re,e.isForwardRef=N,e.isFragment=Y,e.isLazy=J,e.isMemo=pe,e.isPortal=Se,e.isProfiler=kt,e.isStrictMode=qe,e.isSuspense=ut,e.isValidElementType=w,e.typeOf=D})()}),MD=As((e,t)=>{t.exports=OD()}),g3=As((e,t)=>{var r=MD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function u(b){return r.isMemo(b)?i:s[b.$$typeof]||n}T(u,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(b,C,E){if(typeof C!="string"){if(v){var x=f(C);x&&x!==v&&g(b,x,E)}var w=p(C);h&&(w=w.concat(h(C)));for(var D=u(b),S=u(C),A=0;A{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return T(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var h=typeof Ri=="function"&&Ri;if(!p&&h)return h(d,!0);if(s)return s(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var f=a[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return i(g||v)},f,f.exports,r,n,a,o)}return a[d].exports}T(i,"s");for(var s=typeof Ri=="function"&&Ri,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(E[C]={cacheItem:v,arg:arguments[C]},x?i(h,E):h.push(E),h.length>d&&s(h.shift())),f.wasMemoized=x,f.numArgs=C+1,b},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=h,f}};function i(d,p){var h=d.length,m=p.length,f,v,g;for(v=0;v=0&&(h=d[f],m=h.cacheItem.get(h.arg),!m||!m.size);f--)h.cacheItem.delete(h.arg)}T(s,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}T(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?be(_a,--je):0,la--,de===10&&(la=1,Fs--),de}T(S3,"prev");function Pe(){return de=je2||sa(de)>3?"":" "}T(A3,"whitespace");function k3(e,t){for(;--t&&Pe()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return Fa(e,Ao()+(t<6&&yt()==32&&Pe()==32))}T(k3,"escaping");function Rl(e){for(;Pe();)switch(de){case e:return je;case 34:case 39:e!==34&&e!==39&&Rl(de);break;case 40:e===41&&Rl(e);break;case 92:Pe();break}return je}T(Rl,"delimiter");function _3(e,t){for(;Pe()&&e+de!==57&&!(e+de===84&&yt()===47););return"/*"+Fa(t,je-1)+"*"+ks(e===47?e:Pe())}T(_3,"commenter");function F3(e){for(;!sa(yt());)Pe();return Fa(e,je)}T(F3,"identifier");function T3(e){return vp(_o("",null,null,null,[""],e=gp(e),0,[0],e))}T(T3,"compile");function _o(e,t,r,n,a,o,i,s,u){for(var d=0,p=0,h=i,m=0,f=0,v=0,g=1,b=1,C=1,E=0,x="",w=a,D=o,S=n,A=x;b;)switch(v=E,E=Pe()){case 40:if(v!=108&&be(A,h-1)==58){Il(A+=X(ko(E),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:A+=ko(E);break;case 9:case 10:case 13:case 32:A+=A3(v);break;case 92:A+=k3(Ao()-1,7);continue;case 47:switch(yt()){case 42:case 47:go(I3(_3(Pe(),Ao()),t,r),u);break;default:A+="/"}break;case 123*g:s[d++]=ht(A)*C;case 125*g:case 59:case 0:switch(E){case 0:case 125:b=0;case 59+p:C==-1&&(A=X(A,/\f/g,"")),f>0&&ht(A)-h&&go(f>32?ld(A+";",n,r,h-1):ld(X(A," ","")+";",n,r,h-2),u);break;case 59:A+=";";default:if(go(S=id(A,t,r,d,p,a,s,x,w=[],D=[],h),o),E===123)if(p===0)_o(A,t,S,S,w,o,h,s,D);else switch(m===99&&be(A,3)===110?100:m){case 100:case 108:case 109:case 115:_o(e,S,S,n&&go(id(e,S,S,0,0,a,s,x,a,w=[],h),D),a,D,h,s,n?w:D);break;default:_o(A,S,S,S,[""],D,0,s,D)}}d=p=f=0,g=C=1,x=A="",h=i;break;case 58:h=1+ht(A),f=v;default:if(g<1){if(E==123)--g;else if(E==125&&g++==0&&S3()==125)continue}switch(A+=ks(E),E*g){case 38:C=p>0?1:(A+="\f",-1);break;case 44:s[d++]=(ht(A)-1)*C,C=1;break;case 64:yt()===45&&(A+=ko(Pe())),m=yt(),p=h=ht(x=A+=F3(Ao())),E++;break;case 45:v===45&&ht(A)==2&&(g=0)}}return o}T(_o,"parse");function id(e,t,r,n,a,o,i,s,u,d,p){for(var h=a-1,m=a===0?o:[""],f=_s(m),v=0,g=0,b=0;v0?m[C]+" "+E:X(E,/&\f/g,m[C])))&&(u[b++]=x);return ti(e,t,r,a===0?fp:s,u,d,p)}T(id,"ruleset");function I3(e,t,r){return ti(e,t,r,pp,ks(D3()),ia(e,2,-2),0)}T(I3,"comment");function ld(e,t,r,n){return ti(e,t,r,hp,ia(e,0,n),ia(e,n+1,-1),n)}T(ld,"declaration");function un(e,t){for(var r="",n=_s(e),a=0;a-1},"isIgnoringComment"),QD=T(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,s=i.length-1;s>=0;s--){var u=i[s];if(u.line=0;r--)if(!z3(t[r]))return!0;return!1},"isPrependedWithRegularRules"),em=T(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),tS=T(function(e,t,r){z3(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),em(e)):eS(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),em(e)))},"incorrectImportAlarm");function yp(e,t){switch(w3(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Tl+e+Fe+e+e;case 6828:case 4268:return ee+e+Fe+e+e;case 6165:return ee+e+Fe+"flex-"+e+e;case 5187:return ee+e+X(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+Fe+"flex-$1$2")+e;case 5443:return ee+e+Fe+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return ee+e+Fe+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+Fe+X(e,"shrink","negative")+e;case 5292:return ee+e+Fe+X(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+X(e,"-grow","")+ee+e+Fe+X(e,"grow","positive")+e;case 4554:return ee+X(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+Fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ht(e)-1-t>6)switch(be(e,t+1)){case 109:if(be(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Tl+(be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Il(e,"stretch")?yp(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(be(e,t+1)!==115)break;case 6444:switch(be(e,ht(e)-3-(~Il(e,"!important")&&10))){case 107:return X(e,":",":"+ee)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(be(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+Fe+"$2box$3")+e}break;case 5936:switch(be(e,t+11)){case 114:return ee+e+Fe+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+Fe+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+Fe+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+Fe+e+e}return e}T(yp,"prefix");var rS=T(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case hp:e.return=yp(e.value,e.length);break;case b3:return un([Vn(e,{value:X(e.value,"@","@"+ee)})],n);case fp:if(e.length)return x3(e.props,function(a){switch(E3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return un([Vn(e,{props:[X(a,/:(read-\w+)/,":"+Tl+"$1")]})],n);case"::placeholder":return un([Vn(e,{props:[X(a,/:(plac\w+)/,":"+ee+"input-$1")]}),Vn(e,{props:[X(a,/:(plac\w+)/,":"+Tl+"$1")]}),Vn(e,{props:[X(a,/:(plac\w+)/,Fe+"input-$1")]})],n)}return""})}},"prefixer"),nS=[rS],aS=T(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||nS;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),b=1;b=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}T($3,"murmur2");var sS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tm=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -537,7 +537,7 @@ ${t}`);let r=t.match(Uz);if(!r)return y.createElement(l.Fragment,null,t);let[,n, * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */const{global:ot}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:_X,once:FX,logger:Hh}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:Ky,composeConfigs:Tre,Preview:Ire,DocsContext:Rre}=__STORYBOOK_MODULE_PREVIEW_API__,{GLOBALS_UPDATED:Yy,STORY_ARGS_UPDATED:Jy,UPDATE_STORY_ARGS:TX,RESET_STORY_ARGS:IX,NAVIGATE_URL:RX}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var BX=ka({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),zX=ka({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,s=!0,u=" ";function d(w,D){var S=D.appendChild(h(w));if(w.children.length){var A=m(w.isCollapsed);w.children.forEach(function(k){d(k,A)}),S.appendChild(A)}}function p(w,D){var S=!1,A=m(S);if(D.forEach(function(k){d(k,A)}),i=w||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(A)}function h(w){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",w.textContent),r.includeHtml&&w.childNodes.length?n.call(w.childNodes,function(A){S.appendChild(A.cloneNode(!0))}):S.textContent=w.textContent,S.setAttribute("href",r.basePath+"#"+w.id),S.setAttribute("class",r.linkClass+u+"node-name--"+w.nodeName+u+r.extraLinkClasses),D.appendChild(S),D}function m(w){var D=r.orderedList?"ol":"ul",S=document.createElement(D),A=r.listClass+u+r.extraListClasses;return w&&(A=A+u+r.collapsibleClass,A=A+u+r.isCollapsedClass),S.setAttribute("class",A),S}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var w;w=document.querySelector(r.scrollContainer).scrollTop}else w=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),w>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=u+r.positionFixedClass):D.className=D.className.replace(u+r.positionFixedClass,"")}function v(w){var D=0;return w!==null&&(D=w.offsetTop,r.hasInnerContainers&&(D+=v(w.offsetParent))),D}function g(w,D){return w&&w.className!==D&&(w.className=D),w}function b(w){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&f();var S=w,A;if(s&&i!==null&&S.length>0){a.call(S,function(O,L){if(v(O)>D+r.headingsOffset+10){var M=L===0?L:L-1;return A=S[M],!0}else if(L===S.length-1)return A=S[S.length-1],!0});var k=i.querySelector("."+r.activeLinkClass),F=i.querySelector("."+r.linkClass+".node-name--"+A.nodeName+'[href="'+r.basePath+"#"+A.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(k===F)return;var I=i.querySelectorAll("."+r.linkClass);n.call(I,function(O){g(O,O.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(O){g(O,O.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var $=F&&F.parentNode;$&&$.className.indexOf(r.activeListItemClass)===-1&&($.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(O){O.className.indexOf(r.isCollapsedClass)===-1&&(O.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),C(F&&F.parentNode.parentNode)}}function C(w){return w&&w.className.indexOf(r.collapsibleClass)!==-1&&w.className.indexOf(r.isCollapsedClass)!==-1?(g(w,w.className.replace(u+r.isCollapsedClass,"")),C(w.parentNode.parentNode)):w}function E(w){var D=w.target||w.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function x(){s=!0}return{enableTocAnimation:x,disableTocAnimation:E,render:p,updateToc:b}}}}),$X=ka({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function s(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let m=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var f={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:m};return r.includeHtml&&(f.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,h):f}function u(h,m){for(var f=s(h),v=f.headingLevel,g=m,b=a(g),C=b?b.headingLevel:0,E=v-C;E>0&&(b=a(g),!(b&&v===b.headingLevel));)b&&b.children!==void 0&&(g=b.children),E--;return v>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function d(h,m){var f=m;r.ignoreSelector&&(f=m.split(",").map(function(v){return v.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function p(h){return n.call(h,function(m,f){var v=s(f);return v&&u(v,m.nest),m},{nest:[]})}return{nestHeadingsArray:p,selectHeadings:d}}}}),LX=ka({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),OX=ka({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;s();function s(){document.body.addEventListener("click",h,!1);function h(m){!u(m.target)||m.target.className.indexOf("no-smooth-scroll")>-1||m.target.href.charAt(m.target.href.length-2)==="#"&&m.target.href.charAt(m.target.href.length-1)==="!"||m.target.className.indexOf(n.linkClass)===-1||r(m.target.hash,{duration:a,offset:o,callback:function(){p(m.target.hash)}})}}function u(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function p(h){var m=document.getElementById(h.substring(1));m&&(/^(?:a|select|input|button|textarea)$/i.test(m.tagName)||(m.tabIndex=-1),m.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||v},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),u=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(u):i.duration,p,h;requestAnimationFrame(function(g){p=g,m(g)});function m(g){h=g-p,window.scrollTo(0,i.easing(h,o,u,d)),h"u"&&!h)return;var m,f=Object.prototype.hasOwnProperty;function v(){for(var E={},x=0;x({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ie(.3,e.color.defaultText),fontSize:e.typography.size.s2})),UC=e=>y.createElement(PX,{...e,className:"docblock-emptyblock sb-unstyled"}),NX=_(ih)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),HX=_.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),al=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${dd}`]:{margin:0}})),jX=()=>y.createElement(HX,null,y.createElement(al,null),y.createElement(al,{style:{width:"80%"}}),y.createElement(al,{style:{width:"30%"}}),y.createElement(al,{style:{width:"80%"}})),qC=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=H3();if(e)return y.createElement(jX,null);if(t)return y.createElement(UC,null,t);let u=y.createElement(NX,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?ud.dark:ud.light;return y.createElement(j3,{theme:cd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},fe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,jh=600,VX=_.h1(ue,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${jh}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),UX=_.h2(ue,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${jh}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ie(.25,e.color.defaultText)})),qX=_.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ie(.1,e.color.defaultText):ie(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[fe("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[fe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[fe("div")]:t,[fe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[fe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[fe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[fe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[fe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[fe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[fe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[fe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[fe("img")]:{maxWidth:"100%"},[fe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[fe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[fe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[fe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[fe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[fe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[fe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),WX=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${jh}px)`]:{}})),GX=({children:e,toc:t})=>y.createElement(WX,{className:"sbdocs sbdocs-wrapper"},y.createElement(qX,{className:"sbdocs sbdocs-content"},e),t),Tu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),KX=_(mh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),YX=_.div({display:"flex",alignItems:"center",gap:4}),JX=_.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),ZX=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(KX,{...o},y.createElement(YX,{key:"left"},e?[1,2,3].map(i=>y.createElement(JX,{key:i})):y.createElement(y.Fragment,null,y.createElement(pn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(lO,null)),y.createElement(pn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(sO,null)),y.createElement(pn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(uO,null))))),WC=l.createContext({scale:1}),{window:XX}=ot,QX=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=XX.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},{PREVIEW_URL:eQ}=ot,tQ=eQ||"iframe.html",X1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,rQ=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:u,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,m=p(i,h,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>m())}},[u,p,i]),a?y.createElement("pre",null,y.createElement(Kz,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${X1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(GC,null),y.createElement("div",{ref:t,id:`${X1(e)}-inner`,"data-name":i.name}))},nQ=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(WC.Consumer,null,({scale:r})=>y.createElement(QX,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:vL(tQ,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),aQ=_.strong(({theme:e})=>({color:e.color.orange})),oQ=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(aQ,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:X1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(rQ,{...e}):y.createElement(nQ,{...e}))},GC=()=>y.createElement(gL,null),iQ=_.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Zy=_(qC)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content)}})),lQ=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Tu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),sQ=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(Zy,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(Zy,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function uQ(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var cQ=_(ZX)({position:"absolute",top:0,left:0,right:0,height:40}),dQ=_.div({overflow:"hidden",position:"relative"}),KC=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:u,layout:d="padded",...p})=>{let[h,m]=l.useState(i),{source:f,actionItem:v}=sQ(a,h,m),[g,b]=l.useState(1),C=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=a?[v]:[],[x,w]=l.useState(s?[...s]:[]),D=[...E,...x],{window:S}=ot,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:I}=await op(()=>import("./index-ClZaUGjB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);I()},[]),k=F=>{let I=S.getSelection();I&&I.type==="Range"||(F.preventDefault(),x.filter(R=>R.title==="Copied").length===0&&A(f.props.code).then(()=>{w([...x,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>w(x.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(lQ,{withSource:a,withToolbar:o,...p,className:C.join(" ")},o&&y.createElement(cQ,{isLoading:e,border:!0,zoom:F=>b(g*F),resetZoom:()=>b(1),storyId:uQ(n),baseUrl:"./iframe.html"}),y.createElement(WC.Provider,{value:{scale:g}},y.createElement(dQ,{className:"docs-story",onCopyCapture:a&&k},y.createElement(iQ,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(Nz.Element,{scale:g},Array.isArray(n)?n.map((F,I)=>y.createElement("div",{key:I},F)):y.createElement("div",null,n))),y.createElement(Lp,{actionItems:D}))),a&&h&&f)};_(KC)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var pQ=_.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Nr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),fQ=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(pQ,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},Q1=8,Xy=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),hQ=_.span(Nr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),mQ=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),gQ=_.div(Nr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),vQ=_.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),yQ=_(yO)({marginLeft:4}),bQ=_(Lx)({marginLeft:4}),wQ=()=>y.createElement("span",null,"-"),YC=({text:e,simple:t})=>y.createElement(hQ,{simple:t},e),EQ=TC(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),xQ=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return DG(t)},Qy=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Q1)),r.map(n=>y.createElement(YC,{key:n,text:n===""?'""':n}))},CQ=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return y.createElement(YC,{text:u});let d=xQ(u),p=d.length;return p>Q1?y.createElement(Xy,{isExpanded:i},Qy(d,i),y.createElement(mQ,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-Q1} more...`)):y.createElement(Xy,null,Qy(d))}return y.createElement(w$,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(vQ,{width:EQ(n)},y.createElement(ih,{language:"jsx",format:!1},n))},y.createElement(gQ,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(yQ,null):y.createElement(bQ,null)))},nd=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(wQ,null):y.createElement(CQ,{value:e,initialExpandedArgs:t}),DQ=_.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ie(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${tl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${tl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:tl(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${tl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),SQ=e=>e==="true",AQ=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{let i=l.useCallback(()=>r(!1),[r]),s=!!o?.table?.readonly;if(t===void 0)return y.createElement(_n,{variant:"outline",size:"medium",id:Ss(e),onClick:i,disabled:s},"Set boolean");let u=Dt(e),d=typeof t=="string"?SQ(t):t;return y.createElement(DQ,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:p=>r(p.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},kQ=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},_Q=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},FQ=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},TQ=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},e3=_(ki.Input)(({readOnly:e})=>({opacity:e?.5:1})),IQ=_.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),RQ=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),p=!!o?.table?.readonly;l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?FQ(t):""),d&&d.current&&(d.current.value=t?TQ(t):""))},[t]);let h=v=>{if(!v.target.value)return r();let g=kQ(v.target.value),b=new Date(t);b.setFullYear(g.getFullYear(),g.getMonth(),g.getDate());let C=b.getTime();C&&r(C),s(!!C)},m=v=>{if(!v.target.value)return r();let g=_Q(v.target.value),b=new Date(t);b.setHours(g.getHours()),b.setMinutes(g.getMinutes());let C=b.getTime();C&&r(C),s(!!C)},f=Dt(e);return y.createElement(IQ,null,y.createElement(e3,{type:"date",max:"9999-12-31",ref:u,id:`${f}-date`,name:`${f}-date`,readOnly:p,onChange:h,onFocus:n,onBlur:a}),y.createElement(e3,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:d,onChange:m,readOnly:p,onFocus:n,onBlur:a}),i?null:y.createElement("div",null,"invalid"))},BQ=_.label({display:"flex"}),zQ=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},$Q=_(ki.Input)(({readOnly:e})=>({opacity:e?.5:1})),LQ=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{let[d,p]=l.useState(typeof t=="number"?t:""),[h,m]=l.useState(!1),[f,v]=l.useState(null),g=!!u?.table?.readonly,b=l.useCallback(x=>{p(x.target.value);let w=parseFloat(x.target.value);Number.isNaN(w)?v(new Error(`'${x.target.value}' is not a number`)):(r(w),v(null))},[r,v]),C=l.useCallback(()=>{p("0"),r(0),m(!0)},[m]),E=l.useRef(null);return l.useEffect(()=>{h&&E.current&&E.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&p(t)},[t]),t===void 0?y.createElement(_n,{variant:"outline",size:"medium",id:Ss(e),onClick:C,disabled:g},"Set number"):y.createElement(BQ,null,y.createElement($Q,{ref:E,id:Dt(e),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:d,valid:f?"error":null,autoFocus:h,readOnly:g,name:e,min:n,max:a,step:o,onFocus:s,onBlur:i}))},JC=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},ep=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],ZC=(e,t)=>e&&t&&e.map(r=>t[r]),OQ=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),MQ=_.span({"[aria-readonly=true] &":{opacity:.5}}),PQ=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),t3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{if(!t)return Hh.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=ep(r,t),[s,u]=l.useState(i),d=!!o?.table?.readonly,p=m=>{let f=m.target.value,v=[...s];v.includes(f)?v.splice(v.indexOf(f),1):v.push(f),n(ZC(v,t)),u(v)};l.useEffect(()=>{u(ep(r,t))},[r]);let h=Dt(e);return y.createElement(OQ,{"aria-readonly":d,isInline:a},Object.keys(t).map((m,f)=>{let v=`${h}-${f}`;return y.createElement(PQ,{key:v,htmlFor:v},y.createElement("input",{type:"checkbox",disabled:d,id:v,name:v,value:m,onChange:p,checked:s?.includes(m)}),y.createElement(MQ,null,m))}))},NQ=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),HQ=_.span({"[aria-readonly=true] &":{opacity:.5}}),jQ=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),r3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{if(!t)return Hh.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=JC(r,t),s=Dt(e),u=!!o?.table?.readonly;return y.createElement(NQ,{"aria-readonly":u,isInline:a},Object.keys(t).map((d,p)=>{let h=`${s}-${p}`;return y.createElement(jQ,{key:h,htmlFor:h},y.createElement("input",{type:"radio",id:h,name:s,disabled:u,value:d,onChange:m=>n(t[m.currentTarget.value]),checked:d===i}),y.createElement(HQ,null,d))}))},VQ={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},XC=_.select(VQ,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),QC=_.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),n3="Choose option...",UQ=({name:e,value:t,options:r,onChange:n,argType:a})=>{let o=d=>{n(r[d.currentTarget.value])},i=JC(t,r)||n3,s=Dt(e),u=!!a?.table?.readonly;return y.createElement(QC,null,y.createElement(Lx,null),y.createElement(XC,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},n3),Object.keys(r).map(d=>y.createElement("option",{key:d,value:d},d))))},qQ=({name:e,value:t,options:r,onChange:n,argType:a})=>{let o=d=>{let p=Array.from(d.currentTarget.options).filter(h=>h.selected).map(h=>h.value);n(ZC(p,r))},i=ep(t,r),s=Dt(e),u=!!a?.table?.readonly;return y.createElement(QC,null,y.createElement(XC,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(d=>y.createElement("option",{key:d,value:d},d))))},a3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(qQ,{...e}):y.createElement(UQ,{...e}):(Hh.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},WQ=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,GQ={check:t3,"inline-check":t3,radio:r3,"inline-radio":r3,select:a3,"multi-select":a3},jn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?WQ(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=GQ[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Vh="value",KQ="key",YQ="Error",JQ="Object",ZQ="Array",XQ="String",QQ="Number",eee="Boolean",tee="Date",ree="Null",nee="Undefined",aee="Function",oee="Symbol",eD="ADD_DELTA_TYPE",tD="REMOVE_DELTA_TYPE",rD="UPDATE_DELTA_TYPE";function sn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function nD(e,t){let r=sn(e),n=sn(t);return(r==="Function"||n==="Function")&&n!==r}var Uh=class extends l.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,s={};if(!t){if(!o.value)return;s.key=o.value}s.newValue=r(!1,n,a,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,s=l.cloneElement(r,{onClick:this.onSubmit}),u=l.cloneElement(n,{onClick:e}),d=a(Vh,o,i),p=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let m=a(KQ,o,i);h=l.cloneElement(m,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,p,u,s)}};Uh.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var aD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:tD};n.splice(e,1),this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(r[r.length-1],i),u({type:eD,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:rD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=i(e,t,r,n,s),h=o(e,t,r,n,s),m=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:I,ul:R,addForm:$}=p(e,t,r,n,h),z=d(e,t,r,n,h),O=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),L=l.cloneElement(C,{onClick:s,className:"rejt-minus-menu",style:k});return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:I},"["),!a&&O,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Iu,{key:j,name:j.toString(),data:M,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:$},y.createElement(Uh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:I},"]"),!z&&L)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=i(e,r,n,a,o);return y.createElement("div",{className:"rejt-array-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};aD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var oD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{nD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:h,textareaElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,u),b=null,C=null,E=s(e,i,n,a,u);if(r&&!E){let x=m(Vh,v,a,e,i,u),w=l.cloneElement(p,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(x,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:g.editForm},S," ",D,w),C=null}else{b=y.createElement("span",{className:"rejt-value",style:g.value,onClick:E?null:this.handleEditMode},t);let x=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});C=E?null:x}return y.createElement("li",{className:"rejt-function-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),b,C)}};oD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Iu=class extends l.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:w,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=sn(e);switch(k){case YQ:return y.createElement(tp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:A,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case JQ:return y.createElement(tp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case ZQ:return y.createElement(aD,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case XQ:return y.createElement(Cr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case QQ:return y.createElement(Cr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case eee:return y.createElement(Cr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case tee:return y.createElement(Cr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case ree:return y.createElement(Cr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case nee:return y.createElement(Cr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case aee:return y.createElement(oD,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case oee:return y.createElement(Cr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});default:return null}}};Iu.defaultProps={keyPath:[],deep:0};var tp=class extends l.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:eD,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:tD};delete n[e],this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:rD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=s(e,n,t,r,i),h=Object.getOwnPropertyNames(n),m=o(e,n,t,r,i),f=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:I,ul:R,delimiter:$}=p(e,t,r,n,h),z=Object.getOwnPropertyNames(t),O=d(e,t,r,n,h),L=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(C,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(G=>y.createElement(Iu,{key:G,name:G,data:t[G],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(G),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}));return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"{"),!O&&L,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},j),!O&&o&&y.createElement("div",{className:"rejt-add-form",style:I},y.createElement(Uh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"}"),!O&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=o(e,r,n,a,i);return y.createElement("div",{className:"rejt-object-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};tp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var Cr=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{nD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:h,inputElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,u),b=s(e,i,n,a,u),C=r&&!b,E=m(Vh,v,a,e,i,u),x=l.cloneElement(p,{onClick:this.handleEdit}),w=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});return y.createElement("li",{className:"rejt-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," : "),C?y.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",w,x):y.createElement("span",{className:"rejt-value",style:g.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!C&&S)}};Cr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var iee={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},lee={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},see={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function uee(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var iD=class extends l.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElement:d,textareaElement:p,minusMenuElement:h,plusMenuElement:m,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:b,onSubmitValueParser:C,fallback:E=null}=this.props,x=sn(e),w=a;sn(a)==="Boolean"&&(w=()=>a);let D=d;d&&sn(d)!=="Function"&&(D=()=>d);let S=p;return p&&sn(p)!=="Function"&&(S=()=>p),x==="Object"||x==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Iu,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:w,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:b,onSubmitValueParser:C})):E}};iD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return iee;case"Array":return lee;default:return see}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>uee(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:cee}=ot,dee=_.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),ad=_.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),pee=_(fO)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),fee=_(hO)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),o3=_.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),hee=_(pn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),mee=_(ki.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),gee={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},vee=e=>{e.currentTarget.dispatchEvent(new cee.KeyboardEvent("keydown",gee))},yee=e=>{e.currentTarget.select()},bee=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),i3=({name:e,value:t,onChange:r,argType:n})=>{let a=H3(),o=l.useMemo(()=>t&&uJ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,p]=l.useState(null),h=!!n?.table?.readonly,m=l.useCallback(x=>{try{x&&r(JSON.parse(x)),p(void 0)}catch(w){p(w)}},[r]),[f,v]=l.useState(!1),g=l.useCallback(()=>{r({}),v(!0)},[v]),b=l.useRef(null);if(l.useEffect(()=>{f&&b.current&&b.current.select()},[f]),!i)return y.createElement(_n,{disabled:h,id:Ss(e),onClick:g},"Set object");let C=y.createElement(mee,{ref:b,id:Dt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:x=>m(x.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:d?"error":null,readOnly:h}),E=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return y.createElement(dee,{"aria-readonly":h},E&&y.createElement(hee,{onClick:x=>{x.preventDefault(),u(w=>!w)}},s?y.createElement(dO,null):y.createElement(cO,null),y.createElement("span",null,"RAW")),s?C:y.createElement(iD,{readOnly:h||!E,isCollapsed:E?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:bee(a),cancelButtonElement:y.createElement(ad,{type:"button"},"Cancel"),editButtonElement:y.createElement(ad,{type:"submit"},"Save"),addButtonElement:y.createElement(ad,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement(pee,null),minusMenuElement:y.createElement(fee,null),inputElement:(x,w,D,S)=>S?y.createElement(o3,{onFocus:yee,onBlur:vee}):y.createElement(o3,null),fallback:C}))},wee=_.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + */const{global:ot}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:_X,once:FX,logger:Hh}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:Ky,composeConfigs:Tre,Preview:Ire,DocsContext:Rre}=__STORYBOOK_MODULE_PREVIEW_API__,{GLOBALS_UPDATED:Yy,STORY_ARGS_UPDATED:Jy,UPDATE_STORY_ARGS:TX,RESET_STORY_ARGS:IX,NAVIGATE_URL:RX}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var BX=ka({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),zX=ka({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,s=!0,u=" ";function d(w,D){var S=D.appendChild(h(w));if(w.children.length){var A=m(w.isCollapsed);w.children.forEach(function(k){d(k,A)}),S.appendChild(A)}}function p(w,D){var S=!1,A=m(S);if(D.forEach(function(k){d(k,A)}),i=w||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(A)}function h(w){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",w.textContent),r.includeHtml&&w.childNodes.length?n.call(w.childNodes,function(A){S.appendChild(A.cloneNode(!0))}):S.textContent=w.textContent,S.setAttribute("href",r.basePath+"#"+w.id),S.setAttribute("class",r.linkClass+u+"node-name--"+w.nodeName+u+r.extraLinkClasses),D.appendChild(S),D}function m(w){var D=r.orderedList?"ol":"ul",S=document.createElement(D),A=r.listClass+u+r.extraListClasses;return w&&(A=A+u+r.collapsibleClass,A=A+u+r.isCollapsedClass),S.setAttribute("class",A),S}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var w;w=document.querySelector(r.scrollContainer).scrollTop}else w=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),w>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=u+r.positionFixedClass):D.className=D.className.replace(u+r.positionFixedClass,"")}function v(w){var D=0;return w!==null&&(D=w.offsetTop,r.hasInnerContainers&&(D+=v(w.offsetParent))),D}function g(w,D){return w&&w.className!==D&&(w.className=D),w}function b(w){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&f();var S=w,A;if(s&&i!==null&&S.length>0){a.call(S,function(O,L){if(v(O)>D+r.headingsOffset+10){var M=L===0?L:L-1;return A=S[M],!0}else if(L===S.length-1)return A=S[S.length-1],!0});var k=i.querySelector("."+r.activeLinkClass),F=i.querySelector("."+r.linkClass+".node-name--"+A.nodeName+'[href="'+r.basePath+"#"+A.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(k===F)return;var I=i.querySelectorAll("."+r.linkClass);n.call(I,function(O){g(O,O.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(O){g(O,O.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var $=F&&F.parentNode;$&&$.className.indexOf(r.activeListItemClass)===-1&&($.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(O){O.className.indexOf(r.isCollapsedClass)===-1&&(O.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),C(F&&F.parentNode.parentNode)}}function C(w){return w&&w.className.indexOf(r.collapsibleClass)!==-1&&w.className.indexOf(r.isCollapsedClass)!==-1?(g(w,w.className.replace(u+r.isCollapsedClass,"")),C(w.parentNode.parentNode)):w}function E(w){var D=w.target||w.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function x(){s=!0}return{enableTocAnimation:x,disableTocAnimation:E,render:p,updateToc:b}}}}),$X=ka({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function s(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let m=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var f={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:m};return r.includeHtml&&(f.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,h):f}function u(h,m){for(var f=s(h),v=f.headingLevel,g=m,b=a(g),C=b?b.headingLevel:0,E=v-C;E>0&&(b=a(g),!(b&&v===b.headingLevel));)b&&b.children!==void 0&&(g=b.children),E--;return v>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function d(h,m){var f=m;r.ignoreSelector&&(f=m.split(",").map(function(v){return v.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function p(h){return n.call(h,function(m,f){var v=s(f);return v&&u(v,m.nest),m},{nest:[]})}return{nestHeadingsArray:p,selectHeadings:d}}}}),LX=ka({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),OX=ka({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;s();function s(){document.body.addEventListener("click",h,!1);function h(m){!u(m.target)||m.target.className.indexOf("no-smooth-scroll")>-1||m.target.href.charAt(m.target.href.length-2)==="#"&&m.target.href.charAt(m.target.href.length-1)==="!"||m.target.className.indexOf(n.linkClass)===-1||r(m.target.hash,{duration:a,offset:o,callback:function(){p(m.target.hash)}})}}function u(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function p(h){var m=document.getElementById(h.substring(1));m&&(/^(?:a|select|input|button|textarea)$/i.test(m.tagName)||(m.tabIndex=-1),m.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||v},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),u=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(u):i.duration,p,h;requestAnimationFrame(function(g){p=g,m(g)});function m(g){h=g-p,window.scrollTo(0,i.easing(h,o,u,d)),h"u"&&!h)return;var m,f=Object.prototype.hasOwnProperty;function v(){for(var E={},x=0;x({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ie(.3,e.color.defaultText),fontSize:e.typography.size.s2})),UC=e=>y.createElement(PX,{...e,className:"docblock-emptyblock sb-unstyled"}),NX=_(ih)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),HX=_.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),al=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${dd}`]:{margin:0}})),jX=()=>y.createElement(HX,null,y.createElement(al,null),y.createElement(al,{style:{width:"80%"}}),y.createElement(al,{style:{width:"30%"}}),y.createElement(al,{style:{width:"80%"}})),qC=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=H3();if(e)return y.createElement(jX,null);if(t)return y.createElement(UC,null,t);let u=y.createElement(NX,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?ud.dark:ud.light;return y.createElement(j3,{theme:cd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},fe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,jh=600,VX=_.h1(ue,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${jh}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),UX=_.h2(ue,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${jh}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ie(.25,e.color.defaultText)})),qX=_.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ie(.1,e.color.defaultText):ie(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[fe("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[fe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[fe("div")]:t,[fe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[fe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[fe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[fe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[fe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[fe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[fe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[fe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[fe("img")]:{maxWidth:"100%"},[fe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[fe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[fe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[fe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[fe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[fe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[fe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),WX=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${jh}px)`]:{}})),GX=({children:e,toc:t})=>y.createElement(WX,{className:"sbdocs sbdocs-wrapper"},y.createElement(qX,{className:"sbdocs sbdocs-content"},e),t),Tu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),KX=_(mh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),YX=_.div({display:"flex",alignItems:"center",gap:4}),JX=_.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),ZX=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(KX,{...o},y.createElement(YX,{key:"left"},e?[1,2,3].map(i=>y.createElement(JX,{key:i})):y.createElement(y.Fragment,null,y.createElement(pn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(lO,null)),y.createElement(pn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(sO,null)),y.createElement(pn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(uO,null))))),WC=l.createContext({scale:1}),{window:XX}=ot,QX=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=XX.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},{PREVIEW_URL:eQ}=ot,tQ=eQ||"iframe.html",X1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,rQ=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:u,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,m=p(i,h,{showMain:()=>{},showError:({title:f,description:v})=>o(new Error(`${f} - ${v}`)),showException:f=>o(f)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>m())}},[u,p,i]),a?y.createElement("pre",null,y.createElement(Kz,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${X1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(GC,null),y.createElement("div",{ref:t,id:`${X1(e)}-inner`,"data-name":i.name}))},nQ=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(WC.Consumer,null,({scale:r})=>y.createElement(QX,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:vL(tQ,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),aQ=_.strong(({theme:e})=>({color:e.color.orange})),oQ=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(aQ,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:X1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(rQ,{...e}):y.createElement(nQ,{...e}))},GC=()=>y.createElement(gL,null),iQ=_.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Zy=_(qC)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content)}})),lQ=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Tu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),sQ=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(Zy,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(Zy,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function uQ(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var cQ=_(ZX)({position:"absolute",top:0,left:0,right:0,height:40}),dQ=_.div({overflow:"hidden",position:"relative"}),KC=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:u,layout:d="padded",...p})=>{let[h,m]=l.useState(i),{source:f,actionItem:v}=sQ(a,h,m),[g,b]=l.useState(1),C=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=a?[v]:[],[x,w]=l.useState(s?[...s]:[]),D=[...E,...x],{window:S}=ot,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:I}=await op(()=>import("./index-BbBEevz9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);I()},[]),k=F=>{let I=S.getSelection();I&&I.type==="Range"||(F.preventDefault(),x.filter(R=>R.title==="Copied").length===0&&A(f.props.code).then(()=>{w([...x,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>w(x.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(lQ,{withSource:a,withToolbar:o,...p,className:C.join(" ")},o&&y.createElement(cQ,{isLoading:e,border:!0,zoom:F=>b(g*F),resetZoom:()=>b(1),storyId:uQ(n),baseUrl:"./iframe.html"}),y.createElement(WC.Provider,{value:{scale:g}},y.createElement(dQ,{className:"docs-story",onCopyCapture:a&&k},y.createElement(iQ,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(Nz.Element,{scale:g},Array.isArray(n)?n.map((F,I)=>y.createElement("div",{key:I},F)):y.createElement("div",null,n))),y.createElement(Lp,{actionItems:D}))),a&&h&&f)};_(KC)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var pQ=_.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Nr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),fQ=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(pQ,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},Q1=8,Xy=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),hQ=_.span(Nr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),mQ=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),gQ=_.div(Nr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),vQ=_.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),yQ=_(yO)({marginLeft:4}),bQ=_(Lx)({marginLeft:4}),wQ=()=>y.createElement("span",null,"-"),YC=({text:e,simple:t})=>y.createElement(hQ,{simple:t},e),EQ=TC(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),xQ=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return DG(t)},Qy=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Q1)),r.map(n=>y.createElement(YC,{key:n,text:n===""?'""':n}))},CQ=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return y.createElement(YC,{text:u});let d=xQ(u),p=d.length;return p>Q1?y.createElement(Xy,{isExpanded:i},Qy(d,i),y.createElement(mQ,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-Q1} more...`)):y.createElement(Xy,null,Qy(d))}return y.createElement(w$,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(vQ,{width:EQ(n)},y.createElement(ih,{language:"jsx",format:!1},n))},y.createElement(gQ,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(yQ,null):y.createElement(bQ,null)))},nd=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(wQ,null):y.createElement(CQ,{value:e,initialExpandedArgs:t}),DQ=_.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ie(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${tl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${tl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:tl(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${tl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),SQ=e=>e==="true",AQ=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{let i=l.useCallback(()=>r(!1),[r]),s=!!o?.table?.readonly;if(t===void 0)return y.createElement(_n,{variant:"outline",size:"medium",id:Ss(e),onClick:i,disabled:s},"Set boolean");let u=Dt(e),d=typeof t=="string"?SQ(t):t;return y.createElement(DQ,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:p=>r(p.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},kQ=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},_Q=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},FQ=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},TQ=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},e3=_(ki.Input)(({readOnly:e})=>({opacity:e?.5:1})),IQ=_.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),RQ=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),p=!!o?.table?.readonly;l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?FQ(t):""),d&&d.current&&(d.current.value=t?TQ(t):""))},[t]);let h=v=>{if(!v.target.value)return r();let g=kQ(v.target.value),b=new Date(t);b.setFullYear(g.getFullYear(),g.getMonth(),g.getDate());let C=b.getTime();C&&r(C),s(!!C)},m=v=>{if(!v.target.value)return r();let g=_Q(v.target.value),b=new Date(t);b.setHours(g.getHours()),b.setMinutes(g.getMinutes());let C=b.getTime();C&&r(C),s(!!C)},f=Dt(e);return y.createElement(IQ,null,y.createElement(e3,{type:"date",max:"9999-12-31",ref:u,id:`${f}-date`,name:`${f}-date`,readOnly:p,onChange:h,onFocus:n,onBlur:a}),y.createElement(e3,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:d,onChange:m,readOnly:p,onFocus:n,onBlur:a}),i?null:y.createElement("div",null,"invalid"))},BQ=_.label({display:"flex"}),zQ=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},$Q=_(ki.Input)(({readOnly:e})=>({opacity:e?.5:1})),LQ=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{let[d,p]=l.useState(typeof t=="number"?t:""),[h,m]=l.useState(!1),[f,v]=l.useState(null),g=!!u?.table?.readonly,b=l.useCallback(x=>{p(x.target.value);let w=parseFloat(x.target.value);Number.isNaN(w)?v(new Error(`'${x.target.value}' is not a number`)):(r(w),v(null))},[r,v]),C=l.useCallback(()=>{p("0"),r(0),m(!0)},[m]),E=l.useRef(null);return l.useEffect(()=>{h&&E.current&&E.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&p(t)},[t]),t===void 0?y.createElement(_n,{variant:"outline",size:"medium",id:Ss(e),onClick:C,disabled:g},"Set number"):y.createElement(BQ,null,y.createElement($Q,{ref:E,id:Dt(e),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:d,valid:f?"error":null,autoFocus:h,readOnly:g,name:e,min:n,max:a,step:o,onFocus:s,onBlur:i}))},JC=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},ep=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],ZC=(e,t)=>e&&t&&e.map(r=>t[r]),OQ=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),MQ=_.span({"[aria-readonly=true] &":{opacity:.5}}),PQ=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),t3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{if(!t)return Hh.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=ep(r,t),[s,u]=l.useState(i),d=!!o?.table?.readonly,p=m=>{let f=m.target.value,v=[...s];v.includes(f)?v.splice(v.indexOf(f),1):v.push(f),n(ZC(v,t)),u(v)};l.useEffect(()=>{u(ep(r,t))},[r]);let h=Dt(e);return y.createElement(OQ,{"aria-readonly":d,isInline:a},Object.keys(t).map((m,f)=>{let v=`${h}-${f}`;return y.createElement(PQ,{key:v,htmlFor:v},y.createElement("input",{type:"checkbox",disabled:d,id:v,name:v,value:m,onChange:p,checked:s?.includes(m)}),y.createElement(MQ,null,m))}))},NQ=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),HQ=_.span({"[aria-readonly=true] &":{opacity:.5}}),jQ=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),r3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{if(!t)return Hh.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=JC(r,t),s=Dt(e),u=!!o?.table?.readonly;return y.createElement(NQ,{"aria-readonly":u,isInline:a},Object.keys(t).map((d,p)=>{let h=`${s}-${p}`;return y.createElement(jQ,{key:h,htmlFor:h},y.createElement("input",{type:"radio",id:h,name:s,disabled:u,value:d,onChange:m=>n(t[m.currentTarget.value]),checked:d===i}),y.createElement(HQ,null,d))}))},VQ={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},XC=_.select(VQ,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),QC=_.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),n3="Choose option...",UQ=({name:e,value:t,options:r,onChange:n,argType:a})=>{let o=d=>{n(r[d.currentTarget.value])},i=JC(t,r)||n3,s=Dt(e),u=!!a?.table?.readonly;return y.createElement(QC,null,y.createElement(Lx,null),y.createElement(XC,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},n3),Object.keys(r).map(d=>y.createElement("option",{key:d,value:d},d))))},qQ=({name:e,value:t,options:r,onChange:n,argType:a})=>{let o=d=>{let p=Array.from(d.currentTarget.options).filter(h=>h.selected).map(h=>h.value);n(ZC(p,r))},i=ep(t,r),s=Dt(e),u=!!a?.table?.readonly;return y.createElement(QC,null,y.createElement(XC,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(d=>y.createElement("option",{key:d,value:d},d))))},a3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(qQ,{...e}):y.createElement(UQ,{...e}):(Hh.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},WQ=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,GQ={check:t3,"inline-check":t3,radio:r3,"inline-radio":r3,select:a3,"multi-select":a3},jn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?WQ(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=GQ[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Vh="value",KQ="key",YQ="Error",JQ="Object",ZQ="Array",XQ="String",QQ="Number",eee="Boolean",tee="Date",ree="Null",nee="Undefined",aee="Function",oee="Symbol",eD="ADD_DELTA_TYPE",tD="REMOVE_DELTA_TYPE",rD="UPDATE_DELTA_TYPE";function sn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function nD(e,t){let r=sn(e),n=sn(t);return(r==="Function"||n==="Function")&&n!==r}var Uh=class extends l.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,s={};if(!t){if(!o.value)return;s.key=o.value}s.newValue=r(!1,n,a,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,s=l.cloneElement(r,{onClick:this.onSubmit}),u=l.cloneElement(n,{onClick:e}),d=a(Vh,o,i),p=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let m=a(KQ,o,i);h=l.cloneElement(m,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,p,u,s)}};Uh.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var aD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:tD};n.splice(e,1),this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(r[r.length-1],i),u({type:eD,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:rD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=i(e,t,r,n,s),h=o(e,t,r,n,s),m=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:I,ul:R,addForm:$}=p(e,t,r,n,h),z=d(e,t,r,n,h),O=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),L=l.cloneElement(C,{onClick:s,className:"rejt-minus-menu",style:k});return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:I},"["),!a&&O,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Iu,{key:j,name:j.toString(),data:M,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:$},y.createElement(Uh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:I},"]"),!z&&L)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=i(e,r,n,a,o);return y.createElement("div",{className:"rejt-array-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};aD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var oD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{nD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:h,textareaElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,u),b=null,C=null,E=s(e,i,n,a,u);if(r&&!E){let x=m(Vh,v,a,e,i,u),w=l.cloneElement(p,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(x,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:g.editForm},S," ",D,w),C=null}else{b=y.createElement("span",{className:"rejt-value",style:g.value,onClick:E?null:this.handleEditMode},t);let x=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});C=E?null:x}return y.createElement("li",{className:"rejt-function-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),b,C)}};oD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Iu=class extends l.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:w,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=sn(e);switch(k){case YQ:return y.createElement(tp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:A,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case JQ:return y.createElement(tp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case ZQ:return y.createElement(aD,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:p,addButtonElement:h,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,textareaElementGenerator:g,minusMenuElement:b,plusMenuElement:C,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case XQ:return y.createElement(Cr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case QQ:return y.createElement(Cr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case eee:return y.createElement(Cr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case tee:return y.createElement(Cr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case ree:return y.createElement(Cr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case nee:return y.createElement(Cr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case aee:return y.createElement(oD,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case oee:return y.createElement(Cr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:p,cancelButtonElement:m,editButtonElement:f,inputElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});default:return null}}};Iu.defaultProps={keyPath:[],deep:0};var tp=class extends l.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:eD,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:tD};delete n[e],this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:rD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=s(e,n,t,r,i),h=Object.getOwnPropertyNames(n),m=o(e,n,t,r,i),f=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:h,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:I,ul:R,delimiter:$}=p(e,t,r,n,h),z=Object.getOwnPropertyNames(t),O=d(e,t,r,n,h),L=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(C,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(G=>y.createElement(Iu,{key:G,name:G,data:t[G],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(G),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:v,inputElementGenerator:g,textareaElementGenerator:b,minusMenuElement:C,plusMenuElement:E,beforeRemoveAction:x,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}));return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"{"),!O&&L,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},j),!O&&o&&y.createElement("div",{className:"rejt-add-form",style:I},y.createElement(Uh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"}"),!O&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=o(e,r,n,a,i);return y.createElement("div",{className:"rejt-object-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};tp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var Cr=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{nD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:h,inputElementGenerator:m,minusMenuElement:f,keyPath:v}=this.props,g=d(e,i,n,a,u),b=s(e,i,n,a,u),C=r&&!b,E=m(Vh,v,a,e,i,u),x=l.cloneElement(p,{onClick:this.handleEdit}),w=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});return y.createElement("li",{className:"rejt-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," : "),C?y.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",w,x):y.createElement("span",{className:"rejt-value",style:g.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!C&&S)}};Cr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var iee={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},lee={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},see={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function uee(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var iD=class extends l.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElement:d,textareaElement:p,minusMenuElement:h,plusMenuElement:m,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:b,onSubmitValueParser:C,fallback:E=null}=this.props,x=sn(e),w=a;sn(a)==="Boolean"&&(w=()=>a);let D=d;d&&sn(d)!=="Function"&&(D=()=>d);let S=p;return p&&sn(p)!=="Function"&&(S=()=>p),x==="Object"||x==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Iu,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:w,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:v,beforeUpdateAction:g,logger:b,onSubmitValueParser:C})):E}};iD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return iee;case"Array":return lee;default:return see}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>uee(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:cee}=ot,dee=_.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),ad=_.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),pee=_(fO)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),fee=_(hO)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),o3=_.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),hee=_(pn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),mee=_(ki.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),gee={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},vee=e=>{e.currentTarget.dispatchEvent(new cee.KeyboardEvent("keydown",gee))},yee=e=>{e.currentTarget.select()},bee=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),i3=({name:e,value:t,onChange:r,argType:n})=>{let a=H3(),o=l.useMemo(()=>t&&uJ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,p]=l.useState(null),h=!!n?.table?.readonly,m=l.useCallback(x=>{try{x&&r(JSON.parse(x)),p(void 0)}catch(w){p(w)}},[r]),[f,v]=l.useState(!1),g=l.useCallback(()=>{r({}),v(!0)},[v]),b=l.useRef(null);if(l.useEffect(()=>{f&&b.current&&b.current.select()},[f]),!i)return y.createElement(_n,{disabled:h,id:Ss(e),onClick:g},"Set object");let C=y.createElement(mee,{ref:b,id:Dt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:x=>m(x.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:d?"error":null,readOnly:h}),E=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return y.createElement(dee,{"aria-readonly":h},E&&y.createElement(hee,{onClick:x=>{x.preventDefault(),u(w=>!w)}},s?y.createElement(dO,null):y.createElement(cO,null),y.createElement("span",null,"RAW")),s?C:y.createElement(iD,{readOnly:h||!E,isCollapsed:E?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:bee(a),cancelButtonElement:y.createElement(ad,{type:"button"},"Cancel"),editButtonElement:y.createElement(ad,{type:"submit"},"Save"),addButtonElement:y.createElement(ad,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement(pee,null),minusMenuElement:y.createElement(fee,null),inputElement:(x,w,D,S)=>S?y.createElement(o3,{onFocus:yee,onBlur:vee}):y.createElement(o3,null),fallback:C}))},wee=_.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Ot(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Ot(.02,e.input.background)} 100%)`:`linear-gradient(to right, @@ -555,7 +555,7 @@ ${t}`);let r=t.match(Uz);if(!r)return y.createElement(l.Fragment,null,t);let[,n, ${Ot(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Qr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Qr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),lD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Eee=_(lD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),xee=_.div({display:"flex",alignItems:"center",width:"100%"});function Cee(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Dee=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{let d=f=>{r(zQ(f.target.value))},p=t!==void 0,h=l.useMemo(()=>Cee(o),[o]),m=!!u?.table?.readonly;return y.createElement(xee,{"aria-readonly":m},y.createElement(lD,null,n),y.createElement(wee,{id:Dt(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(Eee,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},See=_.label({display:"flex"}),Aee=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),kee=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{let s=f=>{r(f.target.value)},u=!!i?.table?.readonly,[d,p]=l.useState(!1),h=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(_n,{variant:"outline",size:"medium",disabled:u,id:Ss(e),onClick:h},"Set string");let m=typeof t=="string";return y.createElement(See,null,y.createElement(ki.Textarea,{id:Dt(e),maxLength:o,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:m?null:"error",name:e,value:m?t:"",onFocus:n,onBlur:a}),o&&y.createElement(Aee,{isMaxed:t?.length===o},t?.length??0," / ",o))},_ee=_(ki.Input)({padding:10});function Fee(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Tee=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{let o=l.useRef(null),i=a?.control?.readOnly;function s(u){if(!u.target.files)return;let d=Array.from(u.target.files).map(p=>URL.createObjectURL(p));e(d),Fee(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(_ee,{ref:o,id:Dt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},Iee=l.lazy(()=>op(()=>import("./Color-KGDBMAHA-DISiKcKx.js"),__vite__mapDeps([8,2,6,1,3,4,5,7]),import.meta.url)),Ree=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(Iee,{...e})),Bee={array:i3,object:i3,boolean:AQ,color:Ree,date:RQ,number:LQ,check:jn,"inline-check":jn,radio:jn,"inline-radio":jn,select:jn,"multi-select":jn,range:Dee,text:kee,file:Tee},l3=()=>y.createElement(y.Fragment,null,"-"),zee=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:o}=e,[i,s]=l.useState(!1),[u,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(g=>(d({value:g}),r({[a]:g}),g),[r,a]),h=l.useCallback(()=>s(!1),[]),m=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let g=o?.disable!==!0&&e?.type?.name!=="function";return n&&g?y.createElement(oa,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(l3,null)}let f={name:a,argType:e,value:u.value,onChange:p,onBlur:h,onFocus:m},v=Bee[o.type]||l3;return y.createElement(v,{...f,...o,controlType:o.type})},$ee=_.span({fontWeight:"bold"}),Lee=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Oee=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Nr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Mee=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?4:0})),Pee=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Nee=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Hee=e=>e&&{summary:typeof e=="string"?e:e.name},ol=e=>{let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:u,description:d}=n,p=n.table||{},h=p.type||Hee(n.type),m=p.defaultValue||n.defaultValue,f=n.type?.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(Nee,{expandable:i},y.createElement($ee,null,u),f?y.createElement(Lee,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(Oee,null,y.createElement(_C,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(Pee,{hasDescription:v},y.createElement(nd,{value:h,initialExpandedArgs:s})),y.createElement(fQ,{tags:p.jsDocTags})):y.createElement(Mee,{hasDescription:v},y.createElement(nd,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(nd,{value:m,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(zee,{...e,isHovered:t})):null)},jee=_(gO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),Vee=_(vO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),Uee=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),qee=_.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Wee=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Gee=_.td(()=>({position:"relative"})),Kee=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Qr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),s3=_.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),od=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Wee:qee,u=r?.length||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Kee,{title:p},y.createElement(s,{colSpan:1},y.createElement(s3,{onClick:h=>i(!o),tabIndex:0},p),y.createElement(Uee,null,o?y.createElement(jee,null):y.createElement(Vee,null),t)),y.createElement(Gee,{colSpan:a-1},y.createElement(s3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},il=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ke=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),he=_.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),_e=[2,4,2,2],Yee=()=>y.createElement(y.Fragment,null,y.createElement(il,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(il,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(il,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(il,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"})))),Jee=_.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Zee=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Xee=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Qee=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Jee,{inAddonPanel:e},y.createElement(_x,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(Zee,null,e&&y.createElement(y.Fragment,null,y.createElement(oa,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(pO,null)," Watch 5m video"),y.createElement(Xee,null),y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(U1,null)," Read docs")),!e&&y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(U1,null)," Learn how to set that up"))}))},ete=_.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ie(.25,e.color.defaultText):ie(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),tte=_(pn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),rte=_.span({display:"flex",justifyContent:"space-between"}),nte={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},ate=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=i?.table||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:o,...i});else{let p=d.subsections[u]||[];p.push({key:o,...i}),d.subsections[u]=p}r.sections[s]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:o,...i}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:o,...i})});let n=nte[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},ote=(e,t,r)=>{try{return ED(e,t,r)}catch(n){return FX.warn(n.message),!1}},rp=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return y.createElement(UC,null,E," ",y.createElement(oa,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(U1,null)," Read the docs"))}if(s)return y.createElement(Yee,null);let{rows:u,args:d,globals:p}="rows"in e&&e,h=ate(Pq(u,E=>!E?.table?.disable&&ote(E,d||{},p||{})),i),m=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(m&&f&&v)return y.createElement(Qee,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(h.sections).length>0,C={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(a9,null,y.createElement(ete,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(rte,null,"Control"," ",!s&&r&&y.createElement(tte,{onClick:()=>r(),title:"Reset controls"},y.createElement(bO,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>y.createElement(ol,{key:E.key,row:E,arg:d&&d[E.key],...C})),Object.entries(h.ungroupedSubsections).map(([E,x])=>y.createElement(od,{key:E,label:E,level:"subsection",colSpan:g},x.map(w=>y.createElement(ol,{key:w.key,row:w,arg:d&&d[w.key],expandable:b,...C})))),Object.entries(h.sections).map(([E,x])=>y.createElement(od,{key:E,label:E,level:"section",colSpan:g},x.ungrouped.map(w=>y.createElement(ol,{key:w.key,row:w,arg:d&&d[w.key],...C})),Object.entries(x.subsections).map(([w,D])=>y.createElement(od,{key:w,label:w,level:"subsection",colSpan:g},D.map(S=>y.createElement(ol,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...C})))))))))},ite=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(rp,{...r[0][1],...t}):y.createElement(rL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,u="div",d=a===0?t:{sort:t.sort};return y.createElement(u,{key:s,id:s,title:o},({active:p})=>p?y.createElement(rp,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(ue,({theme:e})=>({...Tu(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:e.base==="light"?ie(.2,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...Tu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));_.div(({theme:e})=>({...Tu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});_.div({display:"flex",flexFlow:"row wrap"});var lte=e=>`anchor--${e}`,ste=({storyId:e,children:t})=>y.createElement("div",{id:lte(e),className:"sb-anchor"},t);ot&&ot.__DOCS_CONTEXT__===void 0&&(ot.__DOCS_CONTEXT__=l.createContext(null),ot.__DOCS_CONTEXT__.displayName="DocsContext");var rr=ot?ot.__DOCS_CONTEXT__:l.createContext(null),Tn=(e,t)=>l.useContext(rr).resolveOf(e,t),ute=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),cte=e=>{if(e)return typeof e=="string"?e.includes("-")?ute(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function dte(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function sD(e){return kX(e,{allowFunction:!1})}var uD=l.createContext({sources:{}}),cD="--unknown--",pte=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:u,args:d=void 0,source:p,format:h}=typeof o=="string"?{id:o,source:i,format:s}:o,m=d?sD(d):cD;n(f=>({...f,[u]:{...f[u],[m]:{code:p,format:h}}}))};return t.on(Zh,a),()=>t.off(Zh,a)},[]),y.createElement(uD.Provider,{value:{sources:r}},e)},fte=(e,t,r)=>{let{sources:n}=r,a=n?.[e];return a?.[sD(t)]||a?.[cD]||{code:""}},hte=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let{__isArgsStory:a}=t.parameters,o=t.parameters.docs?.source||{},i=r||o.type||zu.AUTO;if(o.code!==void 0)return o.code;let s=i===zu.DYNAMIC||i===zu.AUTO&&e&&a?e:o.originalSource||"";return(n??o.transform)?.(s,t)||s},mte=(e,t,r)=>{let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=n?.parameters?.docs?.source||{},{code:i}=e,s=e.format??o.format,u=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:u,dark:d};let p=t.getStoryContext(n),h=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,m=fte(n.id,h,r);return s=m.format??n.parameters.docs?.source?.format??!1,{code:hte({snippet:m.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function gte(e,t){let r=vte([e],t);return r&&r[0]}function vte(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var yte=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},bte=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,u=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},wte=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(rr),r=yte(e,t),n=gte(r,t);if(!n)return y.createElement(GC,null);let a=bte(e,n,t);return a?y.createElement(oQ,{...a}):null},Ete=e=>{let t=l.useContext(rr),r=l.useContext(uD),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=Tn(n||"story",["story"]),i=mte({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??o.parameters.docs?.canvas?.layout??"padded",u=e.withToolbar??o.parameters.docs?.canvas?.withToolbar??!1,d=e.additionalActions??o.parameters.docs?.canvas?.additionalActions,p=e.sourceState??o.parameters.docs?.canvas?.sourceState??"hidden",h=e.className??o.parameters.docs?.canvas?.className;return y.createElement(KC,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(wte,{of:n||o.moduleExport,meta:e.meta,...e.story}))},xte=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(Yy,o),()=>t.channel.off(Yy,o)},[t.channel]),[n]},Cte=(e,t)=>{let r=Dte(e,t);if(!r)throw new Error("No result when story was defined");return r},Dte=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let u=d=>{d.storyId===n&&o(d.args)};return t.channel.on(Jy,u),()=>t.channel.off(Jy,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(TX,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(IX,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]};function Ste(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Ate=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(rr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=a.docs?.controls||{},d=e.include??u.include,p=e.exclude??u.exclude,h=e.sort??u.sort,[m,f,v]=Cte(n,r),[g]=xte(n,r),b=Ky(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(m).length>0?y.createElement(rp,{rows:b,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v}):null;let C=cte(i),E=Object.fromEntries(Object.entries(s).map(([w,D])=>[w,{rows:Ky(Ste(D,a),d,p),sort:h}])),x={[C]:{rows:b,sort:h},...E};return y.createElement(ite,{tabs:x,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v})},{document:dD}=ot,pD=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(t9,null,t);let n=e&&e.split("-");return y.createElement(qC,{language:n&&n[1]||"text",format:!1,code:t,...r})};function qh(e,t){e.channel.emit(RX,t)}var np=bL.a,kte=({hash:e,children:t})=>{let r=l.useContext(rr);return y.createElement(np,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);dD.getElementById(a)&&qh(r,e)}},t)},fD=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(rr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(np,{...e}):t.startsWith("#")?y.createElement(kte,{hash:t},n):y.createElement(np,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),qh(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},hD=["h1","h2","h3","h4","h5","h6"],_te=hD.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Fte=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Tte=({as:e,id:t,children:r,...n})=>{let a=l.useContext(rr),o=_te[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Fte,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{dD.getElementById(t)&&qh(a,i)}},y.createElement(mO,null)),r)},Wh=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Tte,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...se(s,t)})},mD=hD.reduce((e,t)=>({...e,[t]:r=>y.createElement(Wh,{as:t,...r})}),{}),Ite=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(DD`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${Qr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),lD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Eee=_(lD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),xee=_.div({display:"flex",alignItems:"center",width:"100%"});function Cee(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Dee=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{let d=f=>{r(zQ(f.target.value))},p=t!==void 0,h=l.useMemo(()=>Cee(o),[o]),m=!!u?.table?.readonly;return y.createElement(xee,{"aria-readonly":m},y.createElement(lD,null,n),y.createElement(wee,{id:Dt(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(Eee,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},See=_.label({display:"flex"}),Aee=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),kee=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{let s=f=>{r(f.target.value)},u=!!i?.table?.readonly,[d,p]=l.useState(!1),h=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(_n,{variant:"outline",size:"medium",disabled:u,id:Ss(e),onClick:h},"Set string");let m=typeof t=="string";return y.createElement(See,null,y.createElement(ki.Textarea,{id:Dt(e),maxLength:o,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:m?null:"error",name:e,value:m?t:"",onFocus:n,onBlur:a}),o&&y.createElement(Aee,{isMaxed:t?.length===o},t?.length??0," / ",o))},_ee=_(ki.Input)({padding:10});function Fee(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Tee=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{let o=l.useRef(null),i=a?.control?.readOnly;function s(u){if(!u.target.files)return;let d=Array.from(u.target.files).map(p=>URL.createObjectURL(p));e(d),Fee(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(_ee,{ref:o,id:Dt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},Iee=l.lazy(()=>op(()=>import("./Color-KGDBMAHA-BikzaXN0.js"),__vite__mapDeps([8,2,6,1,3,4,5,7]),import.meta.url)),Ree=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(Iee,{...e})),Bee={array:i3,object:i3,boolean:AQ,color:Ree,date:RQ,number:LQ,check:jn,"inline-check":jn,radio:jn,"inline-radio":jn,select:jn,"multi-select":jn,range:Dee,text:kee,file:Tee},l3=()=>y.createElement(y.Fragment,null,"-"),zee=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:o}=e,[i,s]=l.useState(!1),[u,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(g=>(d({value:g}),r({[a]:g}),g),[r,a]),h=l.useCallback(()=>s(!1),[]),m=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let g=o?.disable!==!0&&e?.type?.name!=="function";return n&&g?y.createElement(oa,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(l3,null)}let f={name:a,argType:e,value:u.value,onChange:p,onBlur:h,onFocus:m},v=Bee[o.type]||l3;return y.createElement(v,{...f,...o,controlType:o.type})},$ee=_.span({fontWeight:"bold"}),Lee=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Oee=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Nr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Mee=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?4:0})),Pee=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Nee=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Hee=e=>e&&{summary:typeof e=="string"?e:e.name},ol=e=>{let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:u,description:d}=n,p=n.table||{},h=p.type||Hee(n.type),m=p.defaultValue||n.defaultValue,f=n.type?.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(Nee,{expandable:i},y.createElement($ee,null,u),f?y.createElement(Lee,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(Oee,null,y.createElement(_C,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(Pee,{hasDescription:v},y.createElement(nd,{value:h,initialExpandedArgs:s})),y.createElement(fQ,{tags:p.jsDocTags})):y.createElement(Mee,{hasDescription:v},y.createElement(nd,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(nd,{value:m,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(zee,{...e,isHovered:t})):null)},jee=_(gO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),Vee=_(vO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),Uee=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),qee=_.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Wee=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Gee=_.td(()=>({position:"relative"})),Kee=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Qr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),s3=_.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),od=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Wee:qee,u=r?.length||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Kee,{title:p},y.createElement(s,{colSpan:1},y.createElement(s3,{onClick:h=>i(!o),tabIndex:0},p),y.createElement(Uee,null,o?y.createElement(jee,null):y.createElement(Vee,null),t)),y.createElement(Gee,{colSpan:a-1},y.createElement(s3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},il=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ke=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),he=_.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),_e=[2,4,2,2],Yee=()=>y.createElement(y.Fragment,null,y.createElement(il,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(il,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(il,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"}))),y.createElement(il,null,y.createElement(ke,{numColumn:_e[0]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[1]},y.createElement(he,{width:"80%"}),y.createElement(he,{width:"30%"})),y.createElement(ke,{numColumn:_e[2]},y.createElement(he,{width:"60%"})),y.createElement(ke,{numColumn:_e[3]},y.createElement(he,{width:"60%"})))),Jee=_.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Zee=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Xee=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Qee=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Jee,{inAddonPanel:e},y.createElement(_x,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(Zee,null,e&&y.createElement(y.Fragment,null,y.createElement(oa,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(pO,null)," Watch 5m video"),y.createElement(Xee,null),y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(U1,null)," Read docs")),!e&&y.createElement(oa,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(U1,null)," Learn how to set that up"))}))},ete=_.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ie(.25,e.color.defaultText):ie(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),tte=_(pn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),rte=_.span({display:"flex",justifyContent:"space-between"}),nte={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},ate=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=i?.table||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:o,...i});else{let p=d.subsections[u]||[];p.push({key:o,...i}),d.subsections[u]=p}r.sections[s]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:o,...i}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:o,...i})});let n=nte[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},ote=(e,t,r)=>{try{return ED(e,t,r)}catch(n){return FX.warn(n.message),!1}},rp=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return y.createElement(UC,null,E," ",y.createElement(oa,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(U1,null)," Read the docs"))}if(s)return y.createElement(Yee,null);let{rows:u,args:d,globals:p}="rows"in e&&e,h=ate(Pq(u,E=>!E?.table?.disable&&ote(E,d||{},p||{})),i),m=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,v=Object.entries(h.ungroupedSubsections).length===0;if(m&&f&&v)return y.createElement(Qee,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(h.sections).length>0,C={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(a9,null,y.createElement(ete,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(rte,null,"Control"," ",!s&&r&&y.createElement(tte,{onClick:()=>r(),title:"Reset controls"},y.createElement(bO,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>y.createElement(ol,{key:E.key,row:E,arg:d&&d[E.key],...C})),Object.entries(h.ungroupedSubsections).map(([E,x])=>y.createElement(od,{key:E,label:E,level:"subsection",colSpan:g},x.map(w=>y.createElement(ol,{key:w.key,row:w,arg:d&&d[w.key],expandable:b,...C})))),Object.entries(h.sections).map(([E,x])=>y.createElement(od,{key:E,label:E,level:"section",colSpan:g},x.ungrouped.map(w=>y.createElement(ol,{key:w.key,row:w,arg:d&&d[w.key],...C})),Object.entries(x.subsections).map(([w,D])=>y.createElement(od,{key:w,label:w,level:"subsection",colSpan:g},D.map(S=>y.createElement(ol,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...C})))))))))},ite=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(rp,{...r[0][1],...t}):y.createElement(rL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,u="div",d=a===0?t:{sort:t.sort};return y.createElement(u,{key:s,id:s,title:o},({active:p})=>p?y.createElement(rp,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(ue,({theme:e})=>({...Tu(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:e.base==="light"?ie(.2,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...Tu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));_.div(({theme:e})=>({...Tu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});_.div({display:"flex",flexFlow:"row wrap"});var lte=e=>`anchor--${e}`,ste=({storyId:e,children:t})=>y.createElement("div",{id:lte(e),className:"sb-anchor"},t);ot&&ot.__DOCS_CONTEXT__===void 0&&(ot.__DOCS_CONTEXT__=l.createContext(null),ot.__DOCS_CONTEXT__.displayName="DocsContext");var rr=ot?ot.__DOCS_CONTEXT__:l.createContext(null),Tn=(e,t)=>l.useContext(rr).resolveOf(e,t),ute=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),cte=e=>{if(e)return typeof e=="string"?e.includes("-")?ute(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function dte(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function sD(e){return kX(e,{allowFunction:!1})}var uD=l.createContext({sources:{}}),cD="--unknown--",pte=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:u,args:d=void 0,source:p,format:h}=typeof o=="string"?{id:o,source:i,format:s}:o,m=d?sD(d):cD;n(f=>({...f,[u]:{...f[u],[m]:{code:p,format:h}}}))};return t.on(Zh,a),()=>t.off(Zh,a)},[]),y.createElement(uD.Provider,{value:{sources:r}},e)},fte=(e,t,r)=>{let{sources:n}=r,a=n?.[e];return a?.[sD(t)]||a?.[cD]||{code:""}},hte=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let{__isArgsStory:a}=t.parameters,o=t.parameters.docs?.source||{},i=r||o.type||zu.AUTO;if(o.code!==void 0)return o.code;let s=i===zu.DYNAMIC||i===zu.AUTO&&e&&a?e:o.originalSource||"";return(n??o.transform)?.(s,t)||s},mte=(e,t,r)=>{let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=n?.parameters?.docs?.source||{},{code:i}=e,s=e.format??o.format,u=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:u,dark:d};let p=t.getStoryContext(n),h=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,m=fte(n.id,h,r);return s=m.format??n.parameters.docs?.source?.format??!1,{code:hte({snippet:m.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function gte(e,t){let r=vte([e],t);return r&&r[0]}function vte(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var yte=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},bte=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,u=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},wte=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(rr),r=yte(e,t),n=gte(r,t);if(!n)return y.createElement(GC,null);let a=bte(e,n,t);return a?y.createElement(oQ,{...a}):null},Ete=e=>{let t=l.useContext(rr),r=l.useContext(uD),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=Tn(n||"story",["story"]),i=mte({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??o.parameters.docs?.canvas?.layout??"padded",u=e.withToolbar??o.parameters.docs?.canvas?.withToolbar??!1,d=e.additionalActions??o.parameters.docs?.canvas?.additionalActions,p=e.sourceState??o.parameters.docs?.canvas?.sourceState??"hidden",h=e.className??o.parameters.docs?.canvas?.className;return y.createElement(KC,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(wte,{of:n||o.moduleExport,meta:e.meta,...e.story}))},xte=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(Yy,o),()=>t.channel.off(Yy,o)},[t.channel]),[n]},Cte=(e,t)=>{let r=Dte(e,t);if(!r)throw new Error("No result when story was defined");return r},Dte=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let u=d=>{d.storyId===n&&o(d.args)};return t.channel.on(Jy,u),()=>t.channel.off(Jy,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(TX,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(IX,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]};function Ste(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Ate=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(rr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=a.docs?.controls||{},d=e.include??u.include,p=e.exclude??u.exclude,h=e.sort??u.sort,[m,f,v]=Cte(n,r),[g]=xte(n,r),b=Ky(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(m).length>0?y.createElement(rp,{rows:b,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v}):null;let C=cte(i),E=Object.fromEntries(Object.entries(s).map(([w,D])=>[w,{rows:Ky(Ste(D,a),d,p),sort:h}])),x={[C]:{rows:b,sort:h},...E};return y.createElement(ite,{tabs:x,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v})},{document:dD}=ot,pD=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(t9,null,t);let n=e&&e.split("-");return y.createElement(qC,{language:n&&n[1]||"text",format:!1,code:t,...r})};function qh(e,t){e.channel.emit(RX,t)}var np=bL.a,kte=({hash:e,children:t})=>{let r=l.useContext(rr);return y.createElement(np,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);dD.getElementById(a)&&qh(r,e)}},t)},fD=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(rr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(np,{...e}):t.startsWith("#")?y.createElement(kte,{hash:t},n):y.createElement(np,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),qh(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},hD=["h1","h2","h3","h4","h5","h6"],_te=hD.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Fte=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Tte=({as:e,id:t,children:r,...n})=>{let a=l.useContext(rr),o=_te[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Fte,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{dD.getElementById(t)&&qh(a,i)}},y.createElement(mO,null)),r)},Wh=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Tte,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...se(s,t)})},mD=hD.reduce((e,t)=>({...e,[t]:r=>y.createElement(Wh,{as:t,...r})}),{}),Ite=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(DD`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' This is often caused by not wrapping the child in a template string. This is invalid: diff --git a/assets/DrawerMenu.stories-CPMiKhPD.js b/assets/DrawerMenu.stories-D4kOdBbu.js similarity index 96% rename from assets/DrawerMenu.stories-CPMiKhPD.js rename to assets/DrawerMenu.stories-D4kOdBbu.js index 67488331..0ce49088 100644 --- a/assets/DrawerMenu.stories-CPMiKhPD.js +++ b/assets/DrawerMenu.stories-D4kOdBbu.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{U as a}from"./user-profile-EvkA4CON.js";import{N as s,C as i,L as c}from"./notifications-MBLL4uPX.js";import{D as t,d as l}from"./DrawerMenu-BgyYdqxq.js";import{M as r}from"./MenuItem-CmF0V73j.js";import{S as m}from"./Separator-DLPJ0xlb.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./chevron-right-DF47_mtr.js";import"./index-Dp4tTk3o.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./floating-ui.react-KXiqSXy2.js";const h={title:"Menu/DrawerMenu",component:t,argTypes:{},args:{}},p=n=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:l.bg}),e.jsxs(t,{...n,title:"Settings",children:[e.jsx(r,{Icon:a,label:"Profile",onSelect:()=>{}}),e.jsx(r,{Icon:s,label:"Notifications",onSelect:()=>{}}),e.jsx(r,{Icon:i,label:"Feedback",onSelect:()=>{}}),e.jsx(m,{}),e.jsx(r,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]})]}),o=p.bind({});o.args={};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`args => <> +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{U as a}from"./user-profile-EvkA4CON.js";import{N as s,C as i,L as c}from"./notifications-MBLL4uPX.js";import{D as t,d as l}from"./DrawerMenu-BgyYdqxq.js";import{M as r}from"./MenuItem-CmF0V73j.js";import{S as m}from"./Separator-gTPqRITt.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./chevron-right-DF47_mtr.js";import"./index-Dp4tTk3o.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./floating-ui.react-KXiqSXy2.js";const h={title:"Menu/DrawerMenu",component:t,argTypes:{},args:{}},p=n=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:l.bg}),e.jsxs(t,{...n,title:"Settings",children:[e.jsx(r,{Icon:a,label:"Profile",onSelect:()=>{}}),e.jsx(r,{Icon:s,label:"Notifications",onSelect:()=>{}}),e.jsx(r,{Icon:i,label:"Feedback",onSelect:()=>{}}),e.jsx(m,{}),e.jsx(r,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]})]}),o=p.bind({});o.args={};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`args => <>
{}} /> diff --git a/assets/EditInPlace-C-oUVs2p.js b/assets/EditInPlace-Cevzui_S.js similarity index 94% rename from assets/EditInPlace-C-oUVs2p.js rename to assets/EditInPlace-Cevzui_S.js index 92ad2bfd..95727501 100644 --- a/assets/EditInPlace-C-oUVs2p.js +++ b/assets/EditInPlace-Cevzui_S.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as n}from"./index-BP8_t0zE.js";import{R as se,a as W,L as te,M as N,S as $,V as ne}from"./index-Dn9bhuYh.js";import{C as re}from"./check-Bjchr0Ec.js";import{C as le}from"./close-D4bMmhFz.js";import"./Action-BGgU3MW6.js";import"./Password-Lya17oFI.js";import{a as oe}from"./Text-Cz5oMJIL.js";import"./MFA-QkHhz391.js";import"./Checkbox-Ch9dGUQd.js";import"./Radio-CvV1BscZ.js";import"./Toggle-Q78m7eTC.js";import{c as u}from"./index-CSpfAsmC.js";import{C as ie,S as ce}from"./search-BC9ffyhQ.js";import{E as de}from"./error-Dmbc84hO.js";import{I as ue}from"./InlineSpinner-DZ2uBgAt.js";import{B as q}from"./Button-C0_Ps78g.js";import"./Alert-B6-DWLxL.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./IconButton-Y-BQAUFS.js";import{T as me}from"./Text-BgCCN_GG.js";import"./ContextMenu-atZ_dKnN.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./MenuItem-CmF0V73j.js";import"./Progress-CTwHYCo_.js";import{u as pe}from"./useId-DIHOOv91.js";import"./Separator-DLPJ0xlb.js";import"./ToggleMenuItem-B05vJNUm.js";import{a as F}from"./Tooltip-2883fbVA.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";/* empty css */const fe="_controls_1h4nb_17",C={controls:fe,"button-group":"_button-group_1h4nb_27"},he="_root_dgy0u_24",ye="_field_dgy0u_34",_e="_label_dgy0u_67",be="_message_dgy0u_98",c={root:he,field:ye,"inline-field":"_inline-field_dgy0u_40","inline-field-body":"_inline-field-body_dgy0u_46","inline-field-control":"_inline-field-control_dgy0u_52",label:_e,message:be,"help-message":"_help-message_dgy0u_104","error-message":"_error-message_dgy0u_108","success-message":"_success-message_dgy0u_112"},w=n.forwardRef(function({children:s,...t},l){const r=u(c.root,t.className);return a.jsx(se,{ref:l,...t,className:r,children:s})});try{w.displayName="Root",w.__docgenInfo={description:`Thin wrapper around Radix UI Root component +import{j as a}from"./jsx-runtime-CexXSJP5.js";import{r as n}from"./index-BP8_t0zE.js";import{R as se,a as W,L as te,M as N,S as $,V as ne}from"./index-Dn9bhuYh.js";import{C as re}from"./check-Bjchr0Ec.js";import{C as le}from"./close-D4bMmhFz.js";import"./Action-BGgU3MW6.js";import"./Password-Lya17oFI.js";import{a as oe}from"./Text-Cz5oMJIL.js";import"./MFA-QkHhz391.js";import"./Checkbox-Ch9dGUQd.js";import"./Radio-CvV1BscZ.js";import"./Toggle-Q78m7eTC.js";import{c as u}from"./index-CSpfAsmC.js";import{C as ie,S as ce}from"./search-BC9ffyhQ.js";import{E as de}from"./error-Dmbc84hO.js";import{I as ue}from"./InlineSpinner-DZ2uBgAt.js";import{B as q}from"./Button-C0_Ps78g.js";import"./Alert-B6-DWLxL.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./IconButton-Y-BQAUFS.js";import{T as me}from"./Text-BgCCN_GG.js";import"./ContextMenu-atZ_dKnN.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./MenuItem-CmF0V73j.js";import"./Progress-CTwHYCo_.js";import{u as pe}from"./useId-DIHOOv91.js";import"./Separator-gTPqRITt.js";import"./ToggleMenuItem-B05vJNUm.js";import{a as F}from"./Tooltip-2883fbVA.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";/* empty css */const fe="_controls_1h4nb_17",C={controls:fe,"button-group":"_button-group_1h4nb_27"},he="_root_dgy0u_24",ye="_field_dgy0u_34",_e="_label_dgy0u_67",be="_message_dgy0u_98",c={root:he,field:ye,"inline-field":"_inline-field_dgy0u_40","inline-field-body":"_inline-field-body_dgy0u_46","inline-field-control":"_inline-field-control_dgy0u_52",label:_e,message:be,"help-message":"_help-message_dgy0u_104","error-message":"_error-message_dgy0u_108","success-message":"_success-message_dgy0u_112"},w=n.forwardRef(function({children:s,...t},l){const r=u(c.root,t.className);return a.jsx(se,{ref:l,...t,className:r,children:s})});try{w.displayName="Root",w.__docgenInfo={description:`Thin wrapper around Radix UI Root component https://www.radix-ui.com/docs/primitives/components/form#root`,displayName:"Root",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const g=n.forwardRef(function({children:s,...t},l){const r=u(c.field,t.className);return a.jsx(W,{ref:l,...t,className:r,children:s})});try{g.displayName="Field",g.__docgenInfo={description:`Thin wrapper around Radix UI Field component https://www.radix-ui.com/docs/primitives/components/form#field`,displayName:"Field",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const M=n.forwardRef(function({className:s,control:t,children:l,...r},o){const f=u(c["inline-field"],s);return a.jsxs(W,{ref:o,...r,className:f,children:[a.jsx("div",{className:c["inline-field-control"],children:t}),a.jsx("div",{className:c["inline-field-body"],children:l})]})});try{M.displayName="InlineField",M.__docgenInfo={description:"",displayName:"InlineField",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"The checkbox/radio control to render alongside the rest of the field.",name:"control",required:!0,type:{name:"ReactElement>"}}}}}catch{}const v=n.forwardRef(function({children:s,...t},l){const r=u(c.label,t.className);return a.jsx(te,{ref:l,...t,className:r,children:s})});try{v.displayName="Label",v.__docgenInfo={description:`Thin wrapper around Radix UI Label component https://www.radix-ui.com/docs/primitives/components/form#label`,displayName:"Label",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const k=n.forwardRef(function({children:s,className:t,...l},r){const o=u(c.message,c["error-message"],t);return a.jsxs(N,{ref:r,...l,className:o,children:[a.jsx(de,{}),s]})}),I=n.forwardRef(function({children:s,className:t,...l},r){const o=u(c.message,c["success-message"],t);return a.jsxs(N,{ref:r,...l,className:o,children:[a.jsx(ie,{}),s]})}),j=n.forwardRef(function({children:s,className:t,...l},r){const o=u(c.message,t);return a.jsxs(N,{ref:r,...l,className:o,children:[a.jsx(ue,{}),s]})}),R=n.forwardRef(function({children:s,className:t,...l},r){const o=u(c.message,c["help-message"],t);return a.jsx(N,{ref:r,...l,className:o,children:s})});try{k.displayName="ErrorMessage",k.__docgenInfo={description:"An error message to display below a form control.",displayName:"ErrorMessage",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{I.displayName="SuccessMessage",I.__docgenInfo={description:"A success message to display below a form control.",displayName:"SuccessMessage",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{j.displayName="LoadingMessage",j.__docgenInfo={description:"A message showing a loading state",displayName:"LoadingMessage",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{R.displayName="HelpMessage",R.__docgenInfo={description:"A help message to display below a form control.",displayName:"HelpMessage",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const B=n.forwardRef(function(s,t){return a.jsx($,{asChild:!0,children:a.jsx(q,{type:"submit",ref:t,...s})})});try{B.displayName="Submit",B.__docgenInfo={description:"A stylised submit button for forms.",displayName:"Submit",props:{size:{defaultValue:null,description:"The t-shirt size of the button.",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},disabled:{defaultValue:null,description:"Note that disabled attribute is not added to buttons, so that disabled buttons are discoverable by keyboard.\n`aria-disabled` attribute is used to indicate button is disabled.\nEvent handlers are not passed to disabled buttons (onClick, onSubmit, etc.)",name:"disabled",required:!1,type:{name:"boolean"}},kind:{defaultValue:null,description:`The type of button. @@ -10,5 +10,5 @@ of a larger form: it exists as its own form that submits separately.`,displayNam For validation messages, use native validations properties directly, or add custom error messages as children.`,name:"serverInvalid",required:!1,type:{name:"boolean"}},enableLigatures:{defaultValue:null,description:`Enable contextual alternate ligatures on input text For example on an in-place editing field https://github.com/rsms/inter/issues/222 -https://github.com/rsms/inter/blob/master/src/features/calt.fea`,name:"enableLigatures",required:!1,type:{name:"boolean"}},onSave:{defaultValue:null,description:"Callback for when the user confirms the change",name:"onSave",required:!1,type:{name:"((e: FormEvent) => void | Promise)"}},onCancel:{defaultValue:null,description:"Callback for when the user wishes to cancel the change",name:"onCancel",required:!1,type:{name:"((e: FormEvent) => void)"}},onClearServerErrors:{defaultValue:null,description:"Callback for when the server validation errors should be cleared.",name:"onClearServerErrors",required:!1,type:{name:"(() => void)"}},saveButtonLabel:{defaultValue:null,description:"The label for the save button",name:"saveButtonLabel",required:!0,type:{name:"string"}},cancelButtonLabel:{defaultValue:null,description:"The label for the cancel button",name:"cancelButtonLabel",required:!0,type:{name:"string"}},savedLabel:{defaultValue:null,description:`Label to be displayed by the green check at the bottom. Will only be displayed +https://github.com/rsms/inter/blob/master/src/features/calt.fea`,name:"enableLigatures",required:!1,type:{name:"boolean"}},onClearServerErrors:{defaultValue:null,description:"Callback for when the server validation errors should be cleared.",name:"onClearServerErrors",required:!1,type:{name:"(() => void)"}},onSave:{defaultValue:null,description:"Callback for when the user confirms the change",name:"onSave",required:!1,type:{name:"((e: FormEvent) => void | Promise)"}},onCancel:{defaultValue:null,description:"Callback for when the user wishes to cancel the change",name:"onCancel",required:!1,type:{name:"((e: FormEvent) => void)"}},saveButtonLabel:{defaultValue:null,description:"The label for the save button",name:"saveButtonLabel",required:!0,type:{name:"string"}},cancelButtonLabel:{defaultValue:null,description:"The label for the cancel button",name:"cancelButtonLabel",required:!0,type:{name:"string"}},savedLabel:{defaultValue:null,description:`Label to be displayed by the green check at the bottom. Will only be displayed for 2 seconds after the onSave callback promise resolves successfully.`,name:"savedLabel",required:!1,type:{name:"string"}},savingLabel:{defaultValue:null,description:"The label for the 'in progress' saving caption",name:"savingLabel",required:!0,type:{name:"string"}}}}}catch{}export{A as E,g as F,R as H,M as I,v as L,w as R,B as S,k as a,I as b,z as c}; diff --git a/assets/EditInPlace.stories-DQsIZik6.js b/assets/EditInPlace.stories-CFL6cHof.js similarity index 97% rename from assets/EditInPlace.stories-DQsIZik6.js rename to assets/EditInPlace.stories-CFL6cHof.js index c0ecaec4..a0c71b69 100644 --- a/assets/EditInPlace.stories-DQsIZik6.js +++ b/assets/EditInPlace.stories-CFL6cHof.js @@ -1,4 +1,4 @@ -import{j as l}from"./jsx-runtime-CexXSJP5.js";import{E as m,a as d}from"./EditInPlace-C-oUVs2p.js";import{w as c,u as a,e as v}from"./index-BSM_bQPn.js";import{T as g}from"./Tooltip-2883fbVA.js";import"./index-BP8_t0zE.js";import"./index-Dn9bhuYh.js";import"./index-DD7XHAoh.js";import"./index-Dp4tTk3o.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./check-Bjchr0Ec.js";import"./close-D4bMmhFz.js";import"./Action-BGgU3MW6.js";import"./index-CSpfAsmC.js";import"./Text-Cz5oMJIL.js";import"./useId-DIHOOv91.js";import"./Password-Lya17oFI.js";import"./visibility-on-D1sVPsTi.js";import"./MFA-QkHhz391.js";import"./Checkbox-Ch9dGUQd.js";import"./Radio-CvV1BscZ.js";import"./Toggle-Q78m7eTC.js";import"./search-BC9ffyhQ.js";import"./error-Dmbc84hO.js";import"./InlineSpinner-DZ2uBgAt.js";import"./spinner-DszwWdC7.js";import"./Button-C0_Ps78g.js";import"./UnstyledButton-C9fNLva5.js";import"./Alert-B6-DWLxL.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./IconButton-Y-BQAUFS.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./ContextMenu-atZ_dKnN.js";import"./index-DOPlf36I.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./DrawerMenu-BgyYdqxq.js";import"./MenuItem-CmF0V73j.js";import"./chevron-right-DF47_mtr.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./Progress-CTwHYCo_.js";import"./Separator-DLPJ0xlb.js";import"./ToggleMenuItem-B05vJNUm.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";import"./chevron-down-Ua1BCmcD.js";/* empty css */import"./index-C8k3Z-3Y.js";const he={title:"Form/Controls/EditInPlace",component:m,tags:["autodocs"],parameters:{controls:{include:["onChange","onSave","onCancel","onClearServerErrors","defaultValue","error","serverInvalid","savedLabel","saveButtonLabel","cancelButtonLabel","helpLabel","disabled"]},design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=4335-2016&mode=design&t=BvxRca0YDRaq20IR-0"}},argTypes:{label:{type:"string"},defaultValue:{type:"string"},onChange:{action:"changed"},onCancel:{action:"cancelled"},onClearServerErrors:{action:"cleared server errors"},serverInvalid:{type:"boolean"},helpLabel:{type:"string"},savedLabel:{type:"string"},saveButtonLabel:{type:"string"},savingLabel:{type:"string"},cancelButtonLabel:{type:"string"},disabled:{type:"boolean"}},render:({...e})=>l.jsx(g,{children:l.jsx(m,{...e})}),args:{label:"Label",onSave:()=>new Promise(e=>setTimeout(e,1e3)),savedLabel:"Saved",saveButtonLabel:"Save",cancelButtonLabel:"Cancel",savingLabel:"Saving…"}},o={},n={args:{defaultValue:"Hello, Computer"},play:async({canvasElement:e})=>{const t=c(e).getByRole("textbox");await a.clear(t),await a.type(t,"Hello, Computer")}},s={args:{defaultValue:"Hello",onSave:()=>new Promise(()=>{})},play:async({canvasElement:e})=>{const r=c(e),t=r.getByRole("textbox");await a.clear(t),await a.type(t,"Hello");const u=r.getByRole("button",{name:"Save"});await a.click(u),await v(r.getByText("Saving…")).toBeInTheDocument()}},i={args:{serverInvalid:!0,children:l.jsx(d,{children:"I am a teapot"})}},p={args:{helpLabel:"Optional help text."}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:"{}",...o.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{ +import{j as l}from"./jsx-runtime-CexXSJP5.js";import{E as m,a as d}from"./EditInPlace-Cevzui_S.js";import{w as c,u as a,e as v}from"./index-BSM_bQPn.js";import{T as g}from"./Tooltip-2883fbVA.js";import"./index-BP8_t0zE.js";import"./index-Dn9bhuYh.js";import"./index-DD7XHAoh.js";import"./index-Dp4tTk3o.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./check-Bjchr0Ec.js";import"./close-D4bMmhFz.js";import"./Action-BGgU3MW6.js";import"./index-CSpfAsmC.js";import"./Text-Cz5oMJIL.js";import"./useId-DIHOOv91.js";import"./Password-Lya17oFI.js";import"./visibility-on-D1sVPsTi.js";import"./MFA-QkHhz391.js";import"./Checkbox-Ch9dGUQd.js";import"./Radio-CvV1BscZ.js";import"./Toggle-Q78m7eTC.js";import"./search-BC9ffyhQ.js";import"./error-Dmbc84hO.js";import"./InlineSpinner-DZ2uBgAt.js";import"./spinner-DszwWdC7.js";import"./Button-C0_Ps78g.js";import"./UnstyledButton-C9fNLva5.js";import"./Alert-B6-DWLxL.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./IconButton-Y-BQAUFS.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./ContextMenu-atZ_dKnN.js";import"./index-DOPlf36I.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./DrawerMenu-BgyYdqxq.js";import"./MenuItem-CmF0V73j.js";import"./chevron-right-DF47_mtr.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./Progress-CTwHYCo_.js";import"./Separator-gTPqRITt.js";import"./ToggleMenuItem-B05vJNUm.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";import"./chevron-down-Ua1BCmcD.js";/* empty css */import"./index-C8k3Z-3Y.js";const he={title:"Form/Controls/EditInPlace",component:m,tags:["autodocs"],parameters:{controls:{include:["onChange","onSave","onCancel","onClearServerErrors","defaultValue","error","serverInvalid","savedLabel","saveButtonLabel","cancelButtonLabel","helpLabel","disabled"]},design:{type:"figma",url:"https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=4335-2016&mode=design&t=BvxRca0YDRaq20IR-0"}},argTypes:{label:{type:"string"},defaultValue:{type:"string"},onChange:{action:"changed"},onCancel:{action:"cancelled"},onClearServerErrors:{action:"cleared server errors"},serverInvalid:{type:"boolean"},helpLabel:{type:"string"},savedLabel:{type:"string"},saveButtonLabel:{type:"string"},savingLabel:{type:"string"},cancelButtonLabel:{type:"string"},disabled:{type:"boolean"}},render:({...e})=>l.jsx(g,{children:l.jsx(m,{...e})}),args:{label:"Label",onSave:()=>new Promise(e=>setTimeout(e,1e3)),savedLabel:"Saved",saveButtonLabel:"Save",cancelButtonLabel:"Cancel",savingLabel:"Saving…"}},o={},n={args:{defaultValue:"Hello, Computer"},play:async({canvasElement:e})=>{const t=c(e).getByRole("textbox");await a.clear(t),await a.type(t,"Hello, Computer")}},s={args:{defaultValue:"Hello",onSave:()=>new Promise(()=>{})},play:async({canvasElement:e})=>{const r=c(e),t=r.getByRole("textbox");await a.clear(t),await a.type(t,"Hello");const u=r.getByRole("button",{name:"Save"});await a.click(u),await v(r.getByText("Saving…")).toBeInTheDocument()}},i={args:{serverInvalid:!0,children:l.jsx(d,{children:"I am a teapot"})}},p={args:{helpLabel:"Optional help text."}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:"{}",...o.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{ args: { defaultValue: "Hello, Computer" }, diff --git a/assets/FloatingMenu.stories-CLMaeXHR.js b/assets/FloatingMenu.stories-C0B87lh2.js similarity index 96% rename from assets/FloatingMenu.stories-CLMaeXHR.js rename to assets/FloatingMenu.stories-C0B87lh2.js index aeb19e5c..00882bf5 100644 --- a/assets/FloatingMenu.stories-CLMaeXHR.js +++ b/assets/FloatingMenu.stories-C0B87lh2.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{U as a}from"./user-profile-EvkA4CON.js";import{N as r,C as s,L as c}from"./notifications-MBLL4uPX.js";import{F as n}from"./FloatingMenu-t36h7pay.js";import{M as t}from"./MenuItem-CmF0V73j.js";import{S as l}from"./Separator-DLPJ0xlb.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./chevron-right-DF47_mtr.js";import"./index-Dp4tTk3o.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./floating-ui.react-KXiqSXy2.js";const h={title:"Menu/FloatingMenu",component:n,argTypes:{},args:{}},m=i=>o.jsxs(n,{...i,title:"Settings",children:[o.jsx(t,{Icon:a,label:"Profile",onSelect:()=>{}}),o.jsx(t,{Icon:r,label:"Notificationsnotificationsnotifications",onSelect:()=>{}}),o.jsx(t,{Icon:s,label:"Feedback",onSelect:()=>{}}),o.jsx(l,{}),o.jsx(t,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]}),e=m.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`args => +import{j as o}from"./jsx-runtime-CexXSJP5.js";import{U as a}from"./user-profile-EvkA4CON.js";import{N as r,C as s,L as c}from"./notifications-MBLL4uPX.js";import{F as n}from"./FloatingMenu-t36h7pay.js";import{M as t}from"./MenuItem-CmF0V73j.js";import{S as l}from"./Separator-gTPqRITt.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./chevron-right-DF47_mtr.js";import"./index-Dp4tTk3o.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./floating-ui.react-KXiqSXy2.js";const h={title:"Menu/FloatingMenu",component:n,argTypes:{},args:{}},m=i=>o.jsxs(n,{...i,title:"Settings",children:[o.jsx(t,{Icon:a,label:"Profile",onSelect:()=>{}}),o.jsx(t,{Icon:r,label:"Notificationsnotificationsnotifications",onSelect:()=>{}}),o.jsx(t,{Icon:s,label:"Feedback",onSelect:()=>{}}),o.jsx(l,{}),o.jsx(t,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]}),e=m.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`args => {}} /> {/* Extra long label to demonstrate word breaking */} {}} /> diff --git a/assets/Form.stories-B-bjqjmU.js b/assets/Form.stories-C9G1Uied.js similarity index 95% rename from assets/Form.stories-B-bjqjmU.js rename to assets/Form.stories-C9G1Uied.js index 24991b45..fc5296c5 100644 --- a/assets/Form.stories-B-bjqjmU.js +++ b/assets/Form.stories-C9G1Uied.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-CexXSJP5.js";import"./Action-BGgU3MW6.js";import{a as j}from"./Password-Lya17oFI.js";import{a as h}from"./Text-Cz5oMJIL.js";import{a as u}from"./MFA-QkHhz391.js";import{a as g}from"./Checkbox-Ch9dGUQd.js";import{a as x}from"./Radio-CvV1BscZ.js";import{a as f}from"./Toggle-Q78m7eTC.js";import{R as C,F as d,L as t,a as m,H as a,I as i,S as I}from"./EditInPlace-C-oUVs2p.js";import{T as E}from"./Tooltip-2883fbVA.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./index-Dn9bhuYh.js";import"./index-DD7XHAoh.js";import"./index-Dp4tTk3o.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./visibility-on-D1sVPsTi.js";import"./check-Bjchr0Ec.js";import"./close-D4bMmhFz.js";import"./search-BC9ffyhQ.js";import"./error-Dmbc84hO.js";import"./InlineSpinner-DZ2uBgAt.js";import"./spinner-DszwWdC7.js";import"./Button-C0_Ps78g.js";import"./UnstyledButton-C9fNLva5.js";import"./Alert-B6-DWLxL.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./IconButton-Y-BQAUFS.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./ContextMenu-atZ_dKnN.js";import"./index-DOPlf36I.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./DrawerMenu-BgyYdqxq.js";import"./MenuItem-CmF0V73j.js";import"./chevron-right-DF47_mtr.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./Progress-CTwHYCo_.js";import"./Separator-DLPJ0xlb.js";import"./ToggleMenuItem-B05vJNUm.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";import"./chevron-down-Ua1BCmcD.js";/* empty css */const H=({disabled:s,invalid:e,readOnly:o})=>r.jsx(E,{children:r.jsxs(C,{children:[r.jsxs(d,{serverInvalid:e,name:"mxid",children:[r.jsx(t,{children:"Username"}),r.jsx(h,{disabled:s,readOnly:o,defaultValue:"Hello world!"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(d,{serverInvalid:e,name:"password",children:[r.jsx(t,{children:"Password"}),r.jsx(j,{disabled:s,readOnly:o,defaultValue:"sup3rS3cur3p4ssw0rd!"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(d,{serverInvalid:e,name:"mfa",children:[r.jsx(t,{children:"MFA"}),r.jsx(u,{disabled:s,readOnly:o,defaultValue:"123"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(i,{serverInvalid:e,name:"remember",control:r.jsx(g,{disabled:s,readOnly:o,defaultChecked:!0}),children:[r.jsx(t,{children:"Remember me"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(i,{serverInvalid:e,name:"radio",control:r.jsx(x,{disabled:s,readOnly:o,defaultChecked:!0}),children:[r.jsx(t,{children:"Option 1"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(i,{serverInvalid:e,name:"radio",control:r.jsx(x,{disabled:s,readOnly:o,defaultChecked:!0}),children:[r.jsx(t,{children:"Option 2"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(i,{serverInvalid:e,name:"toggle",control:r.jsx(f,{disabled:s,readOnly:o,defaultChecked:!0}),children:[r.jsx(t,{children:"Toggle"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsx(I,{disabled:s,children:"Submit"})]})}),vr={title:"Form/Kitchen Sink",component:H,argTypes:{disabled:{type:"boolean"},readOnly:{type:"boolean"},invalid:{type:"boolean"}},args:{disabled:!1,readOnly:!1,invalid:!1}},p={},n={args:{disabled:!0}},l={args:{readOnly:!0}},c={args:{invalid:!0}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:"{}",...p.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-CexXSJP5.js";import"./Action-BGgU3MW6.js";import{a as j}from"./Password-Lya17oFI.js";import{a as h}from"./Text-Cz5oMJIL.js";import{a as u}from"./MFA-QkHhz391.js";import{a as g}from"./Checkbox-Ch9dGUQd.js";import{a as x}from"./Radio-CvV1BscZ.js";import{a as f}from"./Toggle-Q78m7eTC.js";import{R as C,F as d,L as t,a as m,H as a,I as i,S as I}from"./EditInPlace-Cevzui_S.js";import{T as E}from"./Tooltip-2883fbVA.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./index-Dn9bhuYh.js";import"./index-DD7XHAoh.js";import"./index-Dp4tTk3o.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./visibility-on-D1sVPsTi.js";import"./check-Bjchr0Ec.js";import"./close-D4bMmhFz.js";import"./search-BC9ffyhQ.js";import"./error-Dmbc84hO.js";import"./InlineSpinner-DZ2uBgAt.js";import"./spinner-DszwWdC7.js";import"./Button-C0_Ps78g.js";import"./UnstyledButton-C9fNLva5.js";import"./Alert-B6-DWLxL.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./IconButton-Y-BQAUFS.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./ContextMenu-atZ_dKnN.js";import"./index-DOPlf36I.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./DrawerMenu-BgyYdqxq.js";import"./MenuItem-CmF0V73j.js";import"./chevron-right-DF47_mtr.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./Progress-CTwHYCo_.js";import"./Separator-gTPqRITt.js";import"./ToggleMenuItem-B05vJNUm.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";import"./chevron-down-Ua1BCmcD.js";/* empty css */const H=({disabled:s,invalid:e,readOnly:o})=>r.jsx(E,{children:r.jsxs(C,{children:[r.jsxs(d,{serverInvalid:e,name:"mxid",children:[r.jsx(t,{children:"Username"}),r.jsx(h,{disabled:s,readOnly:o,defaultValue:"Hello world!"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(d,{serverInvalid:e,name:"password",children:[r.jsx(t,{children:"Password"}),r.jsx(j,{disabled:s,readOnly:o,defaultValue:"sup3rS3cur3p4ssw0rd!"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(d,{serverInvalid:e,name:"mfa",children:[r.jsx(t,{children:"MFA"}),r.jsx(u,{disabled:s,readOnly:o,defaultValue:"123"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(i,{serverInvalid:e,name:"remember",control:r.jsx(g,{disabled:s,readOnly:o,defaultChecked:!0}),children:[r.jsx(t,{children:"Remember me"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(i,{serverInvalid:e,name:"radio",control:r.jsx(x,{disabled:s,readOnly:o,defaultChecked:!0}),children:[r.jsx(t,{children:"Option 1"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(i,{serverInvalid:e,name:"radio",control:r.jsx(x,{disabled:s,readOnly:o,defaultChecked:!0}),children:[r.jsx(t,{children:"Option 2"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsxs(i,{serverInvalid:e,name:"toggle",control:r.jsx(f,{disabled:s,readOnly:o,defaultChecked:!0}),children:[r.jsx(t,{children:"Toggle"}),e?r.jsx(m,{children:"Error message."}):r.jsx(a,{children:"Help message."})]}),r.jsx(I,{disabled:s,children:"Submit"})]})}),vr={title:"Form/Kitchen Sink",component:H,argTypes:{disabled:{type:"boolean"},readOnly:{type:"boolean"},invalid:{type:"boolean"}},args:{disabled:!1,readOnly:!1,invalid:!1}},p={},n={args:{disabled:!0}},l={args:{readOnly:!0}},c={args:{invalid:!0}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:"{}",...p.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{ args: { disabled: true } diff --git a/assets/Menu.stories-CMAe6A5a.js b/assets/Menu.stories-DpXR04mQ.js similarity index 97% rename from assets/Menu.stories-CMAe6A5a.js rename to assets/Menu.stories-DpXR04mQ.js index f052821b..37283a60 100644 --- a/assets/Menu.stories-CMAe6A5a.js +++ b/assets/Menu.stories-DpXR04mQ.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as l}from"./index-BP8_t0zE.js";import{U as p}from"./user-profile-EvkA4CON.js";import{N as m,C as u,L as I}from"./notifications-MBLL4uPX.js";import{M as r}from"./Menu-H7LLfzYQ.js";import{M as t}from"./MenuItem-CmF0V73j.js";import{S as g}from"./Separator-DLPJ0xlb.js";import{B as S}from"./Button-C0_Ps78g.js";import"./index-DD7XHAoh.js";import"./index-Dp4tTk3o.js";import"./index-vl_XNHfj.js";import"./index-DOPlf36I.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./DrawerMenu-BgyYdqxq.js";import"./chevron-right-DF47_mtr.js";import"./UnstyledButton-C9fNLva5.js";const R={title:"Menu",component:r,tags:["autodocs"],argTypes:{},args:{}},a=s=>{const[i,c]=l.useState(!0);return e.jsxs(r,{...s,open:i,onOpenChange:c,trigger:e.jsx(S,{children:"Open menu"}),align:"start",children:[e.jsx(t,{Icon:p,label:"Profile",onSelect:()=>{}}),e.jsx(t,{Icon:m,label:"Notifications",onSelect:()=>{}}),e.jsx(t,{Icon:u,label:"Feedback",onSelect:()=>{}}),e.jsx(g,{}),e.jsx(t,{kind:"critical",Icon:I,label:"Sign out",onSelect:()=>{}})]})},n=a.bind({});n.args={title:"Today's Menu"};const o=a.bind({});o.args={title:"Untitled Menu",showTitle:!1};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`args => { +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{r as l}from"./index-BP8_t0zE.js";import{U as p}from"./user-profile-EvkA4CON.js";import{N as m,C as u,L as I}from"./notifications-MBLL4uPX.js";import{M as r}from"./Menu-H7LLfzYQ.js";import{M as t}from"./MenuItem-CmF0V73j.js";import{S as g}from"./Separator-gTPqRITt.js";import{B as S}from"./Button-C0_Ps78g.js";import"./index-DD7XHAoh.js";import"./index-Dp4tTk3o.js";import"./index-vl_XNHfj.js";import"./index-DOPlf36I.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./DrawerMenu-BgyYdqxq.js";import"./chevron-right-DF47_mtr.js";import"./UnstyledButton-C9fNLva5.js";const R={title:"Menu",component:r,tags:["autodocs"],argTypes:{},args:{}},a=s=>{const[i,c]=l.useState(!0);return e.jsxs(r,{...s,open:i,onOpenChange:c,trigger:e.jsx(S,{children:"Open menu"}),align:"start",children:[e.jsx(t,{Icon:p,label:"Profile",onSelect:()=>{}}),e.jsx(t,{Icon:m,label:"Notifications",onSelect:()=>{}}),e.jsx(t,{Icon:u,label:"Feedback",onSelect:()=>{}}),e.jsx(g,{}),e.jsx(t,{kind:"critical",Icon:I,label:"Sign out",onSelect:()=>{}})]})},n=a.bind({});n.args={title:"Today's Menu"};const o=a.bind({});o.args={title:"Untitled Menu",showTitle:!1};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`args => { const [open, setOpen] = useState(true); return Open menu} align="start"> {}} /> diff --git a/assets/PasswordForm.stories-B230uxmG.js b/assets/PasswordForm.stories-BowBKEbT.js similarity index 97% rename from assets/PasswordForm.stories-B230uxmG.js rename to assets/PasswordForm.stories-BowBKEbT.js index 0877ef6a..02dd9f3a 100644 --- a/assets/PasswordForm.stories-B230uxmG.js +++ b/assets/PasswordForm.stories-BowBKEbT.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-CexXSJP5.js";import{W as c}from"./warning-B4ZpXzLn.js";import"./Action-BGgU3MW6.js";import{a as s}from"./Password-Lya17oFI.js";import"./Text-Cz5oMJIL.js";import"./MFA-QkHhz391.js";import"./Checkbox-Ch9dGUQd.js";import"./Radio-CvV1BscZ.js";import"./Toggle-Q78m7eTC.js";import{R as r,L as o,F as a,H as g,b as w}from"./EditInPlace-C-oUVs2p.js";import{P as t}from"./Progress-CTwHYCo_.js";import{T as x}from"./Tooltip-2883fbVA.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./index-Dn9bhuYh.js";import"./index-DD7XHAoh.js";import"./index-Dp4tTk3o.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./visibility-on-D1sVPsTi.js";import"./check-Bjchr0Ec.js";import"./close-D4bMmhFz.js";import"./search-BC9ffyhQ.js";import"./error-Dmbc84hO.js";import"./InlineSpinner-DZ2uBgAt.js";import"./spinner-DszwWdC7.js";import"./Button-C0_Ps78g.js";import"./UnstyledButton-C9fNLva5.js";import"./Alert-B6-DWLxL.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./IconButton-Y-BQAUFS.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./ContextMenu-atZ_dKnN.js";import"./index-DOPlf36I.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./DrawerMenu-BgyYdqxq.js";import"./MenuItem-CmF0V73j.js";import"./chevron-right-DF47_mtr.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./Separator-DLPJ0xlb.js";import"./ToggleMenuItem-B05vJNUm.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";import"./chevron-down-Ua1BCmcD.js";/* empty css */const fe={title:"Form/Password form",component:r,tags:["autodocs"],subcomponents:{Progress:t,PasswordControl:s,Label:o,Field:a},decorators:[u=>e.jsx(x,{children:e.jsx("div",{style:{maxWidth:"378px"},children:e.jsx(u,{})})})]},n=u=>{switch(u){case 1:return"Very weak password";case 2:return"Weak password";case 3:return"Strong password";case 4:return"Very strong password";default:return"Password strength"}},i=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{}),e.jsx(t,{getValueLabel:n,size:"sm",value:0,max:4})]})}),m=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{defaultValue:"password"}),e.jsx(t,{getValueLabel:n,size:"sm",tint:"red",value:1,max:4}),e.jsxs(g,{children:[e.jsx(c,{}),"Guess time: a few seconds. Try adding a few more words."]})]})}),d=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{defaultValue:"hunter2"}),e.jsx(t,{getValueLabel:n,size:"sm",tint:"orange",value:2,max:4}),e.jsxs(g,{children:[e.jsx(c,{}),"Guess time: a few days. Try adding a few more words."]})]})}),l=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{defaultValue:"this is a strong password"}),e.jsx(t,{getValueLabel:n,size:"sm",tint:"lime",value:3,max:4}),e.jsx(w,{children:"Guess time: years"})]})}),p=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{defaultValue:"this is a very strong password"}),e.jsx(t,{getValueLabel:n,size:"sm",tint:"green",value:4,max:4}),e.jsx(w,{children:"Guess time: centruries"})]})});i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`() => { +import{j as e}from"./jsx-runtime-CexXSJP5.js";import{W as c}from"./warning-B4ZpXzLn.js";import"./Action-BGgU3MW6.js";import{a as s}from"./Password-Lya17oFI.js";import"./Text-Cz5oMJIL.js";import"./MFA-QkHhz391.js";import"./Checkbox-Ch9dGUQd.js";import"./Radio-CvV1BscZ.js";import"./Toggle-Q78m7eTC.js";import{R as r,L as o,F as a,H as g,b as w}from"./EditInPlace-Cevzui_S.js";import{P as t}from"./Progress-CTwHYCo_.js";import{T as x}from"./Tooltip-2883fbVA.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./useId-DIHOOv91.js";import"./index-Dn9bhuYh.js";import"./index-DD7XHAoh.js";import"./index-Dp4tTk3o.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./visibility-on-D1sVPsTi.js";import"./check-Bjchr0Ec.js";import"./close-D4bMmhFz.js";import"./search-BC9ffyhQ.js";import"./error-Dmbc84hO.js";import"./InlineSpinner-DZ2uBgAt.js";import"./spinner-DszwWdC7.js";import"./Button-C0_Ps78g.js";import"./UnstyledButton-C9fNLva5.js";import"./Alert-B6-DWLxL.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./IconButton-Y-BQAUFS.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./ContextMenu-atZ_dKnN.js";import"./index-DOPlf36I.js";import"./floating-ui.react-KXiqSXy2.js";import"./FloatingMenu-t36h7pay.js";import"./DrawerMenu-BgyYdqxq.js";import"./MenuItem-CmF0V73j.js";import"./chevron-right-DF47_mtr.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./Separator-gTPqRITt.js";import"./ToggleMenuItem-B05vJNUm.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";import"./chevron-down-Ua1BCmcD.js";/* empty css */const fe={title:"Form/Password form",component:r,tags:["autodocs"],subcomponents:{Progress:t,PasswordControl:s,Label:o,Field:a},decorators:[u=>e.jsx(x,{children:e.jsx("div",{style:{maxWidth:"378px"},children:e.jsx(u,{})})})]},n=u=>{switch(u){case 1:return"Very weak password";case 2:return"Weak password";case 3:return"Strong password";case 4:return"Very strong password";default:return"Password strength"}},i=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{}),e.jsx(t,{getValueLabel:n,size:"sm",value:0,max:4})]})}),m=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{defaultValue:"password"}),e.jsx(t,{getValueLabel:n,size:"sm",tint:"red",value:1,max:4}),e.jsxs(g,{children:[e.jsx(c,{}),"Guess time: a few seconds. Try adding a few more words."]})]})}),d=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{defaultValue:"hunter2"}),e.jsx(t,{getValueLabel:n,size:"sm",tint:"orange",value:2,max:4}),e.jsxs(g,{children:[e.jsx(c,{}),"Guess time: a few days. Try adding a few more words."]})]})}),l=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{defaultValue:"this is a strong password"}),e.jsx(t,{getValueLabel:n,size:"sm",tint:"lime",value:3,max:4}),e.jsx(w,{children:"Guess time: years"})]})}),p=()=>e.jsx(r,{children:e.jsxs(a,{name:"password",children:[e.jsx(o,{children:"Password"}),e.jsx(s,{defaultValue:"this is a very strong password"}),e.jsx(t,{getValueLabel:n,size:"sm",tint:"green",value:4,max:4}),e.jsx(w,{children:"Guess time: centruries"})]})});i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`() => { return diff --git a/assets/Search.stories-5cLtN_lD.js b/assets/Search.stories-CTsOMiJf.js similarity index 94% rename from assets/Search.stories-5cLtN_lD.js rename to assets/Search.stories-CTsOMiJf.js index b3b50905..b9890ba0 100644 --- a/assets/Search.stories-5cLtN_lD.js +++ b/assets/Search.stories-CTsOMiJf.js @@ -1,3 +1,3 @@ -import{j as o}from"./jsx-runtime-CexXSJP5.js";import{c as t}from"./EditInPlace-C-oUVs2p.js";import{F as p}from"./index-Dn9bhuYh.js";import"./index-BP8_t0zE.js";import"./check-Bjchr0Ec.js";import"./close-D4bMmhFz.js";import"./Action-BGgU3MW6.js";import"./index-CSpfAsmC.js";import"./Text-Cz5oMJIL.js";import"./useId-DIHOOv91.js";import"./Tooltip-2883fbVA.js";import"./floating-ui.react-KXiqSXy2.js";import"./index-Cw6ikIwd.js";import"./Password-Lya17oFI.js";import"./visibility-on-D1sVPsTi.js";import"./MFA-QkHhz391.js";import"./Checkbox-Ch9dGUQd.js";import"./Radio-CvV1BscZ.js";import"./Toggle-Q78m7eTC.js";import"./search-BC9ffyhQ.js";import"./error-Dmbc84hO.js";import"./InlineSpinner-DZ2uBgAt.js";import"./spinner-DszwWdC7.js";import"./Button-C0_Ps78g.js";import"./UnstyledButton-C9fNLva5.js";import"./Alert-B6-DWLxL.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./IconButton-Y-BQAUFS.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./ContextMenu-atZ_dKnN.js";import"./index-DD7XHAoh.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Dp4tTk3o.js";import"./index-DOPlf36I.js";import"./FloatingMenu-t36h7pay.js";import"./DrawerMenu-BgyYdqxq.js";import"./MenuItem-CmF0V73j.js";import"./chevron-right-DF47_mtr.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./Progress-CTwHYCo_.js";import"./Separator-DLPJ0xlb.js";import"./ToggleMenuItem-B05vJNUm.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";import"./chevron-down-Ua1BCmcD.js";/* empty css */const ar={title:"Search",component:t,tags:["autodocs"],argTypes:{},args:{}},i=m=>o.jsx(p,{children:o.jsx(t,{...m})}),r=i.bind({});r.args={};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`args =>
+import{j as o}from"./jsx-runtime-CexXSJP5.js";import{c as t}from"./EditInPlace-Cevzui_S.js";import{F as p}from"./index-Dn9bhuYh.js";import"./index-BP8_t0zE.js";import"./check-Bjchr0Ec.js";import"./close-D4bMmhFz.js";import"./Action-BGgU3MW6.js";import"./index-CSpfAsmC.js";import"./Text-Cz5oMJIL.js";import"./useId-DIHOOv91.js";import"./Tooltip-2883fbVA.js";import"./floating-ui.react-KXiqSXy2.js";import"./index-Cw6ikIwd.js";import"./Password-Lya17oFI.js";import"./visibility-on-D1sVPsTi.js";import"./MFA-QkHhz391.js";import"./Checkbox-Ch9dGUQd.js";import"./Radio-CvV1BscZ.js";import"./Toggle-Q78m7eTC.js";import"./search-BC9ffyhQ.js";import"./error-Dmbc84hO.js";import"./InlineSpinner-DZ2uBgAt.js";import"./spinner-DszwWdC7.js";import"./Button-C0_Ps78g.js";import"./UnstyledButton-C9fNLva5.js";import"./Alert-B6-DWLxL.js";import"./Text-BgCCN_GG.js";import"./Typography-DuHxGDyc.js";import"./IconButton-Y-BQAUFS.js";import"./IndicatorIcon-_PMFIuo8.js";import"./Avatar-DyB-Y6ln.js";import"./AvatarStack-DBPldPV8.js";import"./Badge-Cf9Fivpi.js";import"./ContextMenu-atZ_dKnN.js";import"./index-DD7XHAoh.js";import"./index-vl_XNHfj.js";import"./index-CkD-EKAR.js";import"./index-Dp4tTk3o.js";import"./index-DOPlf36I.js";import"./FloatingMenu-t36h7pay.js";import"./DrawerMenu-BgyYdqxq.js";import"./MenuItem-CmF0V73j.js";import"./chevron-right-DF47_mtr.js";import"./Glass-COqtBFQM.js";import"./Heading-DqG7uK5Y.js";import"./Link-DttFLitk.js";import"./NavItem-CCdVkP0k.js";import"./Menu-H7LLfzYQ.js";import"./Progress-CTwHYCo_.js";import"./Separator-gTPqRITt.js";import"./ToggleMenuItem-B05vJNUm.js";import"./ReleaseAnnouncement-DFIkQ7a4.js";import"./Toast-BFUH-DR1.js";import"./Dropdown-BSdLZXLc.js";import"./chevron-down-Ua1BCmcD.js";/* empty css */const ar={title:"Search",component:t,tags:["autodocs"],argTypes:{},args:{}},i=m=>o.jsx(p,{children:o.jsx(t,{...m})}),r=i.bind({});r.args={};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`args => `,...r.parameters?.docs?.source}}};const cr=["Search"];export{r as Search,cr as __namedExportsOrder,ar as default}; diff --git a/assets/Separator-DLPJ0xlb.js b/assets/Separator-gTPqRITt.js similarity index 80% rename from assets/Separator-DLPJ0xlb.js rename to assets/Separator-gTPqRITt.js index 2895eebc..0fe3369b 100644 --- a/assets/Separator-DLPJ0xlb.js +++ b/assets/Separator-gTPqRITt.js @@ -1 +1 @@ -import{j as u}from"./jsx-runtime-CexXSJP5.js";import{c as y}from"./index-CSpfAsmC.js";import{r as o}from"./index-BP8_t0zE.js";import{P as v}from"./index-CkD-EKAR.js";import{a as _}from"./floating-ui.react-KXiqSXy2.js";var N="Separator",d="horizontal",S=["horizontal","vertical"],f=o.forwardRef((e,a)=>{const{decorative:s,orientation:t=d,...n}=e,r=h(t)?t:d,p=s?{role:"none"}:{"aria-orientation":r==="vertical"?r:void 0,role:"separator"};return u.jsx(v.div,{"data-orientation":r,...p,...n,ref:a})});f.displayName=N;function h(e){return S.includes(e)}var P=f;const R="_separator_144s5_17",O={separator:R},m="--cpd-separator-spacing",l=o.forwardRef(({className:e,spacing:a,kind:s="primary",...t},n)=>{const r=y(O.separator,e),i=o.useRef(null),p=_([i,n]);return o.useEffect(()=>{const c=i.current?.style;a?c?.setProperty(m,a):c?.removeProperty(m)},[a]),u.jsx(P,{...t,className:r,ref:p,"data-kind":s})});l.displayName="Separator";try{l.displayName="Separator",l.__docgenInfo={description:"A separator component.",displayName:"Separator",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},kind:{defaultValue:{value:"primary"},description:"The style of separator.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"section"'},{value:'"primary"'},{value:'"secondary"'}]}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},spacing:{defaultValue:{value:"var(--cpd-space-2x)"},description:"The spacing on either side of the separator.",name:"spacing",required:!1,type:{name:"string"}}}}}catch{}export{l as S}; +import{j as u}from"./jsx-runtime-CexXSJP5.js";import{c as y}from"./index-CSpfAsmC.js";import{r as o}from"./index-BP8_t0zE.js";import{P as v}from"./index-CkD-EKAR.js";import{a as _}from"./floating-ui.react-KXiqSXy2.js";var N="Separator",d="horizontal",S=["horizontal","vertical"],f=o.forwardRef((e,a)=>{const{decorative:s,orientation:t=d,...n}=e,r=h(t)?t:d,p=s?{role:"none"}:{"aria-orientation":r==="vertical"?r:void 0,role:"separator"};return u.jsx(v.div,{"data-orientation":r,...p,...n,ref:a})});f.displayName=N;function h(e){return S.includes(e)}var P=f;const R="_separator_144s5_17",O={separator:R},m="--cpd-separator-spacing",l=o.forwardRef(({className:e,spacing:a,kind:s="primary",...t},n)=>{const r=y(O.separator,e),i=o.useRef(null),p=_([i,n]);return o.useEffect(()=>{const c=i.current?.style;a?c?.setProperty(m,a):c?.removeProperty(m)},[a]),u.jsx(P,{...t,className:r,ref:p,"data-kind":s})});l.displayName="Separator";try{l.displayName="Separator",l.__docgenInfo={description:"A separator component.",displayName:"Separator",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},kind:{defaultValue:{value:"primary"},description:"The style of separator.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"section"'},{value:'"primary"'},{value:'"secondary"'}]}},spacing:{defaultValue:{value:"var(--cpd-space-2x)"},description:"The spacing on either side of the separator.",name:"spacing",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}export{l as S}; diff --git a/assets/Separator.stories-pi4bx8us.js b/assets/Separator.stories-lnwARbf1.js similarity index 93% rename from assets/Separator.stories-pi4bx8us.js rename to assets/Separator.stories-lnwARbf1.js index c8228c9b..057e2794 100644 --- a/assets/Separator.stories-pi4bx8us.js +++ b/assets/Separator.stories-lnwARbf1.js @@ -1,4 +1,4 @@ -import{S as e}from"./Separator-DLPJ0xlb.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./index-Dp4tTk3o.js";import"./floating-ui.react-KXiqSXy2.js";const g={title:"Separator",component:e,tags:["autodocs"],argTypes:{},args:{}},r={args:{kind:"primary"}},a={args:{kind:"secondary"}},o={args:{kind:"section"}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{ +import{S as e}from"./Separator-gTPqRITt.js";import"./jsx-runtime-CexXSJP5.js";import"./index-BP8_t0zE.js";import"./index-CSpfAsmC.js";import"./index-CkD-EKAR.js";import"./index-Cw6ikIwd.js";import"./index-Dp4tTk3o.js";import"./floating-ui.react-KXiqSXy2.js";const g={title:"Separator",component:e,tags:["autodocs"],argTypes:{},args:{}},r={args:{kind:"primary"}},a={args:{kind:"secondary"}},o={args:{kind:"section"}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{ args: { kind: "primary" } diff --git a/assets/iframe-ClOmmjK7.js b/assets/iframe-P0aWvRAp.js similarity index 91% rename from assets/iframe-ClOmmjK7.js rename to assets/iframe-P0aWvRAp.js index 723e14e3..e299513c 100644 --- a/assets/iframe-ClOmmjK7.js +++ b/assets/iframe-P0aWvRAp.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Alert.stories-BBQD-7fb.js","./jsx-runtime-CexXSJP5.js","./index-BP8_t0zE.js","./Button-C0_Ps78g.js","./index-CSpfAsmC.js","./UnstyledButton-C9fNLva5.js","./Button-BkPuaSuC.css","./Alert-B6-DWLxL.js","./close-D4bMmhFz.js","./error-Dmbc84hO.js","./Text-BgCCN_GG.js","./Typography-DuHxGDyc.js","./Typography-CfvbYAu4.css","./IconButton-Y-BQAUFS.js","./IndicatorIcon-_PMFIuo8.js","./IndicatorIcon-DPew4OU8.css","./Tooltip-2883fbVA.js","./floating-ui.react-KXiqSXy2.js","./index-Cw6ikIwd.js","./Tooltip-D69ZCLpI.css","./IconButton-BSHvdCWD.css","./Alert-CdCLBpDg.css","./Avatar.stories-5GNcD0iH.js","./Avatar-DyB-Y6ln.js","./Avatar-C-OTxRZn.css","./AvatarStack.stories-wdnsGuiY.js","./AvatarStack-DBPldPV8.js","./Badge.stories-Bit9ymx4.js","./Badge-Cf9Fivpi.js","./Badge-8qM5UjWT.css","./ActionButton.stories-BSPGVAf1.js","./index-BSM_bQPn.js","./index-C8k3Z-3Y.js","./index-DVRl1JhA.js","./notifications-MBLL4uPX.js","./extensions-NPI-SMnu.js","./search-BC9ffyhQ.js","./check-Bjchr0Ec.js","./chevron-down-Ua1BCmcD.js","./chevron-right-DF47_mtr.js","./settings-DxGsE2C2.js","./spinner-DszwWdC7.js","./threads-BMeJ5mkW.js","./user-profile-EvkA4CON.js","./visibility-on-D1sVPsTi.js","./warning-B4ZpXzLn.js","./Button.stories-BTL0-YeQ.js","./IconButton.stories-CWmZd29Z.js","./Dropdown.stories-izLmbanu.js","./Dropdown-BSdLZXLc.js","./Dropdown-DwBOGpgU.css","./Action.stories-Cg5uTF0D.js","./Action-BGgU3MW6.js","./Text-Cz5oMJIL.js","./index-Dn9bhuYh.js","./index-DD7XHAoh.js","./index-Dp4tTk3o.js","./index-vl_XNHfj.js","./index-CkD-EKAR.js","./Text-eTlBFuSe.css","./useId-DIHOOv91.js","./Action-BCJ2_vsV.css","./Checkbox.stories-CSwGs5Vx.js","./Checkbox-Ch9dGUQd.js","./Checkbox-C6phXg9v.css","./EditInPlace.stories-DQsIZik6.js","./EditInPlace-C-oUVs2p.js","./Password-Lya17oFI.js","./MFA-QkHhz391.js","./MFA-DE5RR2Vr.css","./Radio-CvV1BscZ.js","./Radio-COtHnm0C.css","./Toggle-Q78m7eTC.js","./Toggle-BxfNLRoj.css","./InlineSpinner-DZ2uBgAt.js","./InlineSpinner-D3NIwA_H.css","./ContextMenu-atZ_dKnN.js","./index-DOPlf36I.js","./FloatingMenu-t36h7pay.js","./FloatingMenu-DpTpmI5z.css","./DrawerMenu-BgyYdqxq.js","./DrawerMenu-sgngTVD6.css","./MenuItem-CmF0V73j.js","./MenuItem-C06gbZZr.css","./Glass-COqtBFQM.js","./Glass-BiF3lt7L.css","./Heading-DqG7uK5Y.js","./Link-DttFLitk.js","./Link-COi2doS4.css","./NavItem-CCdVkP0k.js","./NavItem-Dqt-FK6G.css","./Menu-H7LLfzYQ.js","./Progress-CTwHYCo_.js","./Progress-BQm9KB_P.css","./Separator-DLPJ0xlb.js","./Separator-BJXoghAv.css","./ToggleMenuItem-B05vJNUm.js","./ReleaseAnnouncement-DFIkQ7a4.js","./ReleaseAnnouncement-DOxWiBH2.css","./Toast-BFUH-DR1.js","./Toast-OmC1UN0x.css","./EditInPlace-Bn9uQDOY.css","./global-BcDaL1SX.css","./MFA.stories-CIpFh1Oq.js","./Password.stories-Bgev3jtq.js","./Radio.stories-D6yS1p43.js","./Text.stories-BRJ4IDi8.js","./Toggle.stories-DJmZjPfy.js","./Form.stories-B-bjqjmU.js","./PasswordForm.stories-B230uxmG.js","./Glass.stories-CZNcNFEl.js","./Icon.stories-B1cgZ4UF.js","./IndicatorIcon.stories-DxLbbjh4.js","./InlineSpinner.stories-Jgdd3rUD.js","./Link.stories-cdvzg468.js","./ContextMenu.stories-Cr8u2iHr.js","./DrawerMenu.stories-CPMiKhPD.js","./FloatingMenu.stories-CLMaeXHR.js","./Menu.stories-CMAe6A5a.js","./MenuItem.stories-DJ-4U5wa.js","./ToggleMenuItem.stories-KMfDoesp.js","./NavBar.stories-BviPy9z3.js","./NavItem.stories-HIBg9mgb.js","./Progress.stories-BReUmr8m.js","./ReleaseAnnouncement.stories-BAuUOmzG.js","./Search.stories-5cLtN_lD.js","./Separator.stories-pi4bx8us.js","./Toast.stories-dVfytGvs.js","./Tooltip.stories-DZAj7oWF.js","./Heading.stories-CHYUY4vG.js","./Text.stories-LnqBI7_q.js","./entry-preview-DWKTXVn2.js","./react-18-Glus6dSN.js","./entry-preview-docs-H4eYC0v-.js","./isArray-d9wiqGGH.js","./index-DrFu-skq.js","./preview-BJPLiuSt.js","./index-D-8MO0q_.js","./preview-Djh1_Tal.js","./preview-DB9FwMii.js","./preview-0Jj89qip.js","./preview-LX5xr5tV.js","./preview-C3lGltAq.css"])))=>i.map(i=>d[i]); -import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))c(r);new MutationObserver(r=>{for(const e of r)if(e.type==="childList")for(const s of e.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&c(s)}).observe(document,{childList:!0,subtree:!0});function m(r){const e={};return r.integrity&&(e.integrity=r.integrity),r.referrerPolicy&&(e.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?e.credentials="include":r.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function c(r){if(r.ep)return;r.ep=!0;const e=m(r);fetch(r.href,e)}})();const R="modulepreload",T=function(o,_){return new URL(o,_).href},d={},t=function(_,m,c){let r=Promise.resolve();if(m&&m.length>0){const e=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");r=Promise.all(m.map(i=>{if(i=T(i,c),i in d)return;d[i]=!0;const a=i.endsWith(".css"),O=a?'[rel="stylesheet"]':"";if(!!c)for(let p=e.length-1;p>=0;p--){const u=e[p];if(u.href===i&&(!a||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${O}`))return;const n=document.createElement("link");if(n.rel=a?"stylesheet":R,a||(n.as="script",n.crossOrigin=""),n.href=i,l&&n.setAttribute("nonce",l),document.head.appendChild(n),a)return new Promise((p,u)=>{n.addEventListener("load",p),n.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>_()).catch(e=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=e,window.dispatchEvent(s),!s.defaultPrevented)throw e})},{createBrowserChannel:I}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,E=I({page:"preview"});L.setChannel(E);window.__STORYBOOK_ADDONS_CHANNEL__=E;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const P={"./src/components/Alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-BBQD-7fb.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),"./src/components/Avatar/Avatar.stories.tsx":async()=>t(()=>import("./Avatar.stories-5GNcD0iH.js"),__vite__mapDeps([22,1,2,23,4,24]),import.meta.url),"./src/components/Avatar/AvatarStack.stories.tsx":async()=>t(()=>import("./AvatarStack.stories-wdnsGuiY.js"),__vite__mapDeps([25,1,2,26,4,23,24]),import.meta.url),"./src/components/Badge/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-Bit9ymx4.js"),__vite__mapDeps([27,1,2,28,4,11,12,29]),import.meta.url),"./src/components/Button/ActionButton.stories.tsx":async()=>t(()=>import("./ActionButton.stories-BSPGVAf1.js"),__vite__mapDeps([30,1,2,31,32,33,34,35,36,8,37,38,39,9,40,41,42,43,44,45,3,4,5,6,16,17,18,19]),import.meta.url),"./src/components/Button/Button.stories.tsx":async()=>t(()=>import("./Button.stories-BTL0-YeQ.js"),__vite__mapDeps([46,31,32,3,1,2,4,5,6,33,34,35,36,8,37,38,39,9,40,41,42,43,44,45]),import.meta.url),"./src/components/Button/IconButton/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-CWmZd29Z.js"),__vite__mapDeps([47,1,2,31,32,13,4,5,14,15,16,17,18,19,20,43]),import.meta.url),"./src/components/Dropdown/Dropdown.stories.tsx":async()=>t(()=>import("./Dropdown.stories-izLmbanu.js"),__vite__mapDeps([48,49,1,2,38,37,9,4,17,18,50,31,32]),import.meta.url),"./src/components/Form/Controls/Action/Action.stories.tsx":async()=>t(()=>import("./Action.stories-Cg5uTF0D.js"),__vite__mapDeps([51,1,2,33,34,35,36,8,37,38,39,9,40,41,42,43,44,45,52,4,53,54,55,56,57,58,18,59,60,16,17,19,61]),import.meta.url),"./src/components/Form/Controls/Checkbox/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-CSwGs5Vx.js"),__vite__mapDeps([62,1,2,63,4,37,54,55,56,57,58,18,64]),import.meta.url),"./src/components/Form/Controls/EditInPlace/EditInPlace.stories.tsx":async()=>t(()=>import("./EditInPlace.stories-DQsIZik6.js"),__vite__mapDeps([65,1,2,66,54,55,56,57,58,18,37,8,52,4,53,59,60,16,17,19,61,67,44,68,69,63,64,70,71,72,73,36,9,74,41,75,3,5,6,7,10,11,12,13,14,15,20,21,23,24,26,28,29,76,77,78,79,80,81,82,39,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,49,38,50,101,102,31,32]),import.meta.url),"./src/components/Form/Controls/MFA/MFA.stories.tsx":async()=>t(()=>import("./MFA.stories-CIpFh1Oq.js"),__vite__mapDeps([103,1,2,68,4,54,55,56,57,58,18,69]),import.meta.url),"./src/components/Form/Controls/Password/Password.stories.tsx":async()=>t(()=>import("./Password.stories-Bgev3jtq.js"),__vite__mapDeps([104,1,2,67,54,55,56,57,58,18,52,4,53,59,60,16,17,19,61,44,31,32]),import.meta.url),"./src/components/Form/Controls/Radio/Radio.stories.tsx":async()=>t(()=>import("./Radio.stories-D6yS1p43.js"),__vite__mapDeps([105,1,2,70,4,54,55,56,57,58,18,71]),import.meta.url),"./src/components/Form/Controls/Text/Text.stories.tsx":async()=>t(()=>import("./Text.stories-BRJ4IDi8.js"),__vite__mapDeps([106,1,2,53,54,55,56,57,58,18,4,59]),import.meta.url),"./src/components/Form/Controls/Toggle/Toggle.stories.tsx":async()=>t(()=>import("./Toggle.stories-DJmZjPfy.js"),__vite__mapDeps([107,72,1,2,4,54,55,56,57,58,18,73]),import.meta.url),"./src/components/Form/Form.stories.tsx":async()=>t(()=>import("./Form.stories-B-bjqjmU.js"),__vite__mapDeps([108,1,2,52,4,53,54,55,56,57,58,18,59,60,16,17,19,61,67,44,68,69,63,37,64,70,71,72,73,66,8,36,9,74,41,75,3,5,6,7,10,11,12,13,14,15,20,21,23,24,26,28,29,76,77,78,79,80,81,82,39,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,49,38,50,101,102]),import.meta.url),"./src/components/Form/PasswordForm.stories.tsx":async()=>t(()=>import("./PasswordForm.stories-B230uxmG.js"),__vite__mapDeps([109,1,2,45,52,4,53,54,55,56,57,58,18,59,60,16,17,19,61,67,44,68,69,63,37,64,70,71,72,73,66,8,36,9,74,41,75,3,5,6,7,10,11,12,13,14,15,20,21,23,24,26,28,29,76,77,78,79,80,81,82,39,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,49,38,50,101,102]),import.meta.url),"./src/components/Glass/Glass.stories.tsx":async()=>t(()=>import("./Glass.stories-CZNcNFEl.js"),__vite__mapDeps([110,1,2,84,4,85,10,11,12]),import.meta.url),"./src/components/Icon/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories-B1cgZ4UF.js"),__vite__mapDeps([111,1,2,42]),import.meta.url),"./src/components/Icon/IndicatorIcon/IndicatorIcon.stories.tsx":async()=>t(()=>import("./IndicatorIcon.stories-DxLbbjh4.js"),__vite__mapDeps([112,1,2,31,32,14,4,15,42]),import.meta.url),"./src/components/InlineSpinner/InlineSpinner.stories.tsx":async()=>t(()=>import("./InlineSpinner.stories-Jgdd3rUD.js"),__vite__mapDeps([113,74,1,2,41,75]),import.meta.url),"./src/components/Link/Link.stories.tsx":async()=>t(()=>import("./Link.stories-cdvzg468.js"),__vite__mapDeps([114,1,2,87,4,88]),import.meta.url),"./src/components/Menu/ContextMenu.stories.tsx":async()=>t(()=>import("./ContextMenu.stories-Cr8u2iHr.js"),__vite__mapDeps([115,1,2,43,34,76,55,57,58,18,56,77,17,78,4,60,10,11,12,79,80,81,82,39,83,94,95]),import.meta.url),"./src/components/Menu/DrawerMenu.stories.tsx":async()=>t(()=>import("./DrawerMenu.stories-CPMiKhPD.js"),__vite__mapDeps([116,1,2,43,34,80,4,81,82,10,11,12,39,56,83,94,58,18,17,95]),import.meta.url),"./src/components/Menu/FloatingMenu.stories.tsx":async()=>t(()=>import("./FloatingMenu.stories-CLMaeXHR.js"),__vite__mapDeps([117,1,2,43,34,78,4,60,10,11,12,79,82,39,56,83,94,58,18,17,95]),import.meta.url),"./src/components/Menu/Menu.stories.tsx":async()=>t(()=>import("./Menu.stories-CMAe6A5a.js"),__vite__mapDeps([118,1,2,43,34,91,55,56,57,77,58,18,17,78,4,60,10,11,12,79,80,81,82,39,83,94,95,3,5,6]),import.meta.url),"./src/components/Menu/MenuItem.stories.tsx":async()=>t(()=>import("./MenuItem.stories-DJ-4U5wa.js"),__vite__mapDeps([119,1,2,35,40,82,4,10,11,12,39,56,83]),import.meta.url),"./src/components/Menu/ToggleMenuItem.stories.tsx":async()=>t(()=>import("./ToggleMenuItem.stories-KMfDoesp.js"),__vite__mapDeps([120,1,2,35,96,82,4,10,11,12,39,56,83,72,54,55,57,58,18,73,60]),import.meta.url),"./src/components/Nav/NavBar.stories.tsx":async()=>t(()=>import("./NavBar.stories-BviPy9z3.js"),__vite__mapDeps([121,1,2,89,4,90]),import.meta.url),"./src/components/Nav/NavItem.stories.tsx":async()=>t(()=>import("./NavItem.stories-HIBg9mgb.js"),__vite__mapDeps([122,1,2,89,4,90]),import.meta.url),"./src/components/Progress/Progress.stories.tsx":async()=>t(()=>import("./Progress.stories-BReUmr8m.js"),__vite__mapDeps([123,92,1,2,4,57,58,18,56,60,93]),import.meta.url),"./src/components/ReleaseAnnouncement/ReleaseAnnouncement.stories.tsx":async()=>t(()=>import("./ReleaseAnnouncement.stories-BAuUOmzG.js"),__vite__mapDeps([124,1,2,3,4,5,6,13,14,15,16,17,18,19,20,97,10,11,12,98]),import.meta.url),"./src/components/Search/Search.stories.tsx":async()=>t(()=>import("./Search.stories-5cLtN_lD.js"),__vite__mapDeps([125,1,2,66,54,55,56,57,58,18,37,8,52,4,53,59,60,16,17,19,61,67,44,68,69,63,64,70,71,72,73,36,9,74,41,75,3,5,6,7,10,11,12,13,14,15,20,21,23,24,26,28,29,76,77,78,79,80,81,82,39,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,49,38,50,101,102]),import.meta.url),"./src/components/Separator/Separator.stories.tsx":async()=>t(()=>import("./Separator.stories-pi4bx8us.js"),__vite__mapDeps([126,94,1,2,4,58,18,56,17,95]),import.meta.url),"./src/components/Toast/Toast.stories.tsx":async()=>t(()=>import("./Toast.stories-dVfytGvs.js"),__vite__mapDeps([127,99,1,2,4,100]),import.meta.url),"./src/components/Tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-DZAj7oWF.js"),__vite__mapDeps([128,1,2,16,17,18,4,19,3,5,6,13,14,15,20,43]),import.meta.url),"./src/components/Typography/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-CHYUY4vG.js"),__vite__mapDeps([129,1,2,86,11,4,12,10]),import.meta.url),"./src/components/Typography/Text.stories.tsx":async()=>t(()=>import("./Text.stories-LnqBI7_q.js"),__vite__mapDeps([130,10,1,2,11,4,12]),import.meta.url)};async function y(o){return P[o]()}const{composeConfigs:A,PreviewWeb:v,ClientApi:x}=__STORYBOOK_MODULE_PREVIEW_API__,D=async(o=[])=>{const _=await Promise.all([o.at(0)??t(()=>import("./entry-preview-DWKTXVn2.js"),__vite__mapDeps([131,2,132,18]),import.meta.url),o.at(1)??t(()=>import("./entry-preview-docs-H4eYC0v-.js"),__vite__mapDeps([133,134,2,135]),import.meta.url),o.at(2)??t(()=>import("./preview-BJPLiuSt.js"),__vite__mapDeps([136,137]),import.meta.url),o.at(3)??t(()=>import("./preview-Bu6UzvCJ.js"),[],import.meta.url),o.at(4)??t(()=>import("./preview-FpHGYA1q.js"),[],import.meta.url),o.at(5)??t(()=>import("./preview-Djh1_Tal.js"),__vite__mapDeps([138,135]),import.meta.url),o.at(6)??t(()=>import("./preview-BnWGZYux.js"),[],import.meta.url),o.at(7)??t(()=>import("./preview-DaXeQf6O.js"),[],import.meta.url),o.at(8)??t(()=>import("./preview-DB9FwMii.js"),__vite__mapDeps([139,135]),import.meta.url),o.at(9)??t(()=>import("./preview-4Up_z4Em.js"),[],import.meta.url),o.at(10)??t(()=>import("./preview-0Jj89qip.js"),__vite__mapDeps([140,32]),import.meta.url),o.at(11)??t(()=>import("./preview-DF-d5FoE.js"),[],import.meta.url),o.at(12)??t(()=>import("./preview-LX5xr5tV.js"),__vite__mapDeps([141,2,142,102]),import.meta.url)]);return A(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v(y,D);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Alert.stories-BBQD-7fb.js","./jsx-runtime-CexXSJP5.js","./index-BP8_t0zE.js","./Button-C0_Ps78g.js","./index-CSpfAsmC.js","./UnstyledButton-C9fNLva5.js","./Button-BkPuaSuC.css","./Alert-B6-DWLxL.js","./close-D4bMmhFz.js","./error-Dmbc84hO.js","./Text-BgCCN_GG.js","./Typography-DuHxGDyc.js","./Typography-CfvbYAu4.css","./IconButton-Y-BQAUFS.js","./IndicatorIcon-_PMFIuo8.js","./IndicatorIcon-DPew4OU8.css","./Tooltip-2883fbVA.js","./floating-ui.react-KXiqSXy2.js","./index-Cw6ikIwd.js","./Tooltip-D69ZCLpI.css","./IconButton-BSHvdCWD.css","./Alert-CdCLBpDg.css","./Avatar.stories-5GNcD0iH.js","./Avatar-DyB-Y6ln.js","./Avatar-C-OTxRZn.css","./AvatarStack.stories-wdnsGuiY.js","./AvatarStack-DBPldPV8.js","./Badge.stories-Bit9ymx4.js","./Badge-Cf9Fivpi.js","./Badge-8qM5UjWT.css","./ActionButton.stories-BSPGVAf1.js","./index-BSM_bQPn.js","./index-C8k3Z-3Y.js","./index-DVRl1JhA.js","./notifications-MBLL4uPX.js","./extensions-NPI-SMnu.js","./search-BC9ffyhQ.js","./check-Bjchr0Ec.js","./chevron-down-Ua1BCmcD.js","./chevron-right-DF47_mtr.js","./settings-DxGsE2C2.js","./spinner-DszwWdC7.js","./threads-BMeJ5mkW.js","./user-profile-EvkA4CON.js","./visibility-on-D1sVPsTi.js","./warning-B4ZpXzLn.js","./Button.stories-BTL0-YeQ.js","./IconButton.stories-CWmZd29Z.js","./Dropdown.stories-izLmbanu.js","./Dropdown-BSdLZXLc.js","./Dropdown-DwBOGpgU.css","./Action.stories-Cg5uTF0D.js","./Action-BGgU3MW6.js","./Text-Cz5oMJIL.js","./index-Dn9bhuYh.js","./index-DD7XHAoh.js","./index-Dp4tTk3o.js","./index-vl_XNHfj.js","./index-CkD-EKAR.js","./Text-eTlBFuSe.css","./useId-DIHOOv91.js","./Action-BCJ2_vsV.css","./Checkbox.stories-CSwGs5Vx.js","./Checkbox-Ch9dGUQd.js","./Checkbox-C6phXg9v.css","./EditInPlace.stories-CFL6cHof.js","./EditInPlace-Cevzui_S.js","./Password-Lya17oFI.js","./MFA-QkHhz391.js","./MFA-DE5RR2Vr.css","./Radio-CvV1BscZ.js","./Radio-COtHnm0C.css","./Toggle-Q78m7eTC.js","./Toggle-BxfNLRoj.css","./InlineSpinner-DZ2uBgAt.js","./InlineSpinner-D3NIwA_H.css","./ContextMenu-atZ_dKnN.js","./index-DOPlf36I.js","./FloatingMenu-t36h7pay.js","./FloatingMenu-DpTpmI5z.css","./DrawerMenu-BgyYdqxq.js","./DrawerMenu-sgngTVD6.css","./MenuItem-CmF0V73j.js","./MenuItem-C06gbZZr.css","./Glass-COqtBFQM.js","./Glass-BiF3lt7L.css","./Heading-DqG7uK5Y.js","./Link-DttFLitk.js","./Link-COi2doS4.css","./NavItem-CCdVkP0k.js","./NavItem-Dqt-FK6G.css","./Menu-H7LLfzYQ.js","./Progress-CTwHYCo_.js","./Progress-BQm9KB_P.css","./Separator-gTPqRITt.js","./Separator-BJXoghAv.css","./ToggleMenuItem-B05vJNUm.js","./ReleaseAnnouncement-DFIkQ7a4.js","./ReleaseAnnouncement-DOxWiBH2.css","./Toast-BFUH-DR1.js","./Toast-OmC1UN0x.css","./EditInPlace-Bn9uQDOY.css","./global-BcDaL1SX.css","./MFA.stories-CIpFh1Oq.js","./Password.stories-Bgev3jtq.js","./Radio.stories-D6yS1p43.js","./Text.stories-BRJ4IDi8.js","./Toggle.stories-DJmZjPfy.js","./Form.stories-C9G1Uied.js","./PasswordForm.stories-BowBKEbT.js","./Glass.stories-CZNcNFEl.js","./Icon.stories-B1cgZ4UF.js","./IndicatorIcon.stories-DxLbbjh4.js","./InlineSpinner.stories-Jgdd3rUD.js","./Link.stories-cdvzg468.js","./ContextMenu.stories-DcJKyxZc.js","./DrawerMenu.stories-D4kOdBbu.js","./FloatingMenu.stories-C0B87lh2.js","./Menu.stories-DpXR04mQ.js","./MenuItem.stories-DJ-4U5wa.js","./ToggleMenuItem.stories-KMfDoesp.js","./NavBar.stories-BviPy9z3.js","./NavItem.stories-HIBg9mgb.js","./Progress.stories-BReUmr8m.js","./ReleaseAnnouncement.stories-BAuUOmzG.js","./Search.stories-CTsOMiJf.js","./Separator.stories-lnwARbf1.js","./Toast.stories-dVfytGvs.js","./Tooltip.stories-DZAj7oWF.js","./Heading.stories-CHYUY4vG.js","./Text.stories-LnqBI7_q.js","./entry-preview-DWKTXVn2.js","./react-18-Glus6dSN.js","./entry-preview-docs-H4eYC0v-.js","./isArray-d9wiqGGH.js","./index-DrFu-skq.js","./preview-BJPLiuSt.js","./index-D-8MO0q_.js","./preview-Djh1_Tal.js","./preview-DB9FwMii.js","./preview-0Jj89qip.js","./preview-LX5xr5tV.js","./preview-C3lGltAq.css"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))c(r);new MutationObserver(r=>{for(const e of r)if(e.type==="childList")for(const s of e.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&c(s)}).observe(document,{childList:!0,subtree:!0});function m(r){const e={};return r.integrity&&(e.integrity=r.integrity),r.referrerPolicy&&(e.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?e.credentials="include":r.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function c(r){if(r.ep)return;r.ep=!0;const e=m(r);fetch(r.href,e)}})();const R="modulepreload",T=function(o,_){return new URL(o,_).href},d={},t=function(_,m,c){let r=Promise.resolve();if(m&&m.length>0){const e=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");r=Promise.all(m.map(i=>{if(i=T(i,c),i in d)return;d[i]=!0;const a=i.endsWith(".css"),O=a?'[rel="stylesheet"]':"";if(!!c)for(let p=e.length-1;p>=0;p--){const u=e[p];if(u.href===i&&(!a||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${O}`))return;const n=document.createElement("link");if(n.rel=a?"stylesheet":R,a||(n.as="script",n.crossOrigin=""),n.href=i,l&&n.setAttribute("nonce",l),document.head.appendChild(n),a)return new Promise((p,u)=>{n.addEventListener("load",p),n.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>_()).catch(e=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=e,window.dispatchEvent(s),!s.defaultPrevented)throw e})},{createBrowserChannel:I}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,E=I({page:"preview"});L.setChannel(E);window.__STORYBOOK_ADDONS_CHANNEL__=E;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const P={"./src/components/Alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-BBQD-7fb.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),"./src/components/Avatar/Avatar.stories.tsx":async()=>t(()=>import("./Avatar.stories-5GNcD0iH.js"),__vite__mapDeps([22,1,2,23,4,24]),import.meta.url),"./src/components/Avatar/AvatarStack.stories.tsx":async()=>t(()=>import("./AvatarStack.stories-wdnsGuiY.js"),__vite__mapDeps([25,1,2,26,4,23,24]),import.meta.url),"./src/components/Badge/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-Bit9ymx4.js"),__vite__mapDeps([27,1,2,28,4,11,12,29]),import.meta.url),"./src/components/Button/ActionButton.stories.tsx":async()=>t(()=>import("./ActionButton.stories-BSPGVAf1.js"),__vite__mapDeps([30,1,2,31,32,33,34,35,36,8,37,38,39,9,40,41,42,43,44,45,3,4,5,6,16,17,18,19]),import.meta.url),"./src/components/Button/Button.stories.tsx":async()=>t(()=>import("./Button.stories-BTL0-YeQ.js"),__vite__mapDeps([46,31,32,3,1,2,4,5,6,33,34,35,36,8,37,38,39,9,40,41,42,43,44,45]),import.meta.url),"./src/components/Button/IconButton/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-CWmZd29Z.js"),__vite__mapDeps([47,1,2,31,32,13,4,5,14,15,16,17,18,19,20,43]),import.meta.url),"./src/components/Dropdown/Dropdown.stories.tsx":async()=>t(()=>import("./Dropdown.stories-izLmbanu.js"),__vite__mapDeps([48,49,1,2,38,37,9,4,17,18,50,31,32]),import.meta.url),"./src/components/Form/Controls/Action/Action.stories.tsx":async()=>t(()=>import("./Action.stories-Cg5uTF0D.js"),__vite__mapDeps([51,1,2,33,34,35,36,8,37,38,39,9,40,41,42,43,44,45,52,4,53,54,55,56,57,58,18,59,60,16,17,19,61]),import.meta.url),"./src/components/Form/Controls/Checkbox/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-CSwGs5Vx.js"),__vite__mapDeps([62,1,2,63,4,37,54,55,56,57,58,18,64]),import.meta.url),"./src/components/Form/Controls/EditInPlace/EditInPlace.stories.tsx":async()=>t(()=>import("./EditInPlace.stories-CFL6cHof.js"),__vite__mapDeps([65,1,2,66,54,55,56,57,58,18,37,8,52,4,53,59,60,16,17,19,61,67,44,68,69,63,64,70,71,72,73,36,9,74,41,75,3,5,6,7,10,11,12,13,14,15,20,21,23,24,26,28,29,76,77,78,79,80,81,82,39,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,49,38,50,101,102,31,32]),import.meta.url),"./src/components/Form/Controls/MFA/MFA.stories.tsx":async()=>t(()=>import("./MFA.stories-CIpFh1Oq.js"),__vite__mapDeps([103,1,2,68,4,54,55,56,57,58,18,69]),import.meta.url),"./src/components/Form/Controls/Password/Password.stories.tsx":async()=>t(()=>import("./Password.stories-Bgev3jtq.js"),__vite__mapDeps([104,1,2,67,54,55,56,57,58,18,52,4,53,59,60,16,17,19,61,44,31,32]),import.meta.url),"./src/components/Form/Controls/Radio/Radio.stories.tsx":async()=>t(()=>import("./Radio.stories-D6yS1p43.js"),__vite__mapDeps([105,1,2,70,4,54,55,56,57,58,18,71]),import.meta.url),"./src/components/Form/Controls/Text/Text.stories.tsx":async()=>t(()=>import("./Text.stories-BRJ4IDi8.js"),__vite__mapDeps([106,1,2,53,54,55,56,57,58,18,4,59]),import.meta.url),"./src/components/Form/Controls/Toggle/Toggle.stories.tsx":async()=>t(()=>import("./Toggle.stories-DJmZjPfy.js"),__vite__mapDeps([107,72,1,2,4,54,55,56,57,58,18,73]),import.meta.url),"./src/components/Form/Form.stories.tsx":async()=>t(()=>import("./Form.stories-C9G1Uied.js"),__vite__mapDeps([108,1,2,52,4,53,54,55,56,57,58,18,59,60,16,17,19,61,67,44,68,69,63,37,64,70,71,72,73,66,8,36,9,74,41,75,3,5,6,7,10,11,12,13,14,15,20,21,23,24,26,28,29,76,77,78,79,80,81,82,39,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,49,38,50,101,102]),import.meta.url),"./src/components/Form/PasswordForm.stories.tsx":async()=>t(()=>import("./PasswordForm.stories-BowBKEbT.js"),__vite__mapDeps([109,1,2,45,52,4,53,54,55,56,57,58,18,59,60,16,17,19,61,67,44,68,69,63,37,64,70,71,72,73,66,8,36,9,74,41,75,3,5,6,7,10,11,12,13,14,15,20,21,23,24,26,28,29,76,77,78,79,80,81,82,39,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,49,38,50,101,102]),import.meta.url),"./src/components/Glass/Glass.stories.tsx":async()=>t(()=>import("./Glass.stories-CZNcNFEl.js"),__vite__mapDeps([110,1,2,84,4,85,10,11,12]),import.meta.url),"./src/components/Icon/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories-B1cgZ4UF.js"),__vite__mapDeps([111,1,2,42]),import.meta.url),"./src/components/Icon/IndicatorIcon/IndicatorIcon.stories.tsx":async()=>t(()=>import("./IndicatorIcon.stories-DxLbbjh4.js"),__vite__mapDeps([112,1,2,31,32,14,4,15,42]),import.meta.url),"./src/components/InlineSpinner/InlineSpinner.stories.tsx":async()=>t(()=>import("./InlineSpinner.stories-Jgdd3rUD.js"),__vite__mapDeps([113,74,1,2,41,75]),import.meta.url),"./src/components/Link/Link.stories.tsx":async()=>t(()=>import("./Link.stories-cdvzg468.js"),__vite__mapDeps([114,1,2,87,4,88]),import.meta.url),"./src/components/Menu/ContextMenu.stories.tsx":async()=>t(()=>import("./ContextMenu.stories-DcJKyxZc.js"),__vite__mapDeps([115,1,2,43,34,76,55,57,58,18,56,77,17,78,4,60,10,11,12,79,80,81,82,39,83,94,95]),import.meta.url),"./src/components/Menu/DrawerMenu.stories.tsx":async()=>t(()=>import("./DrawerMenu.stories-D4kOdBbu.js"),__vite__mapDeps([116,1,2,43,34,80,4,81,82,10,11,12,39,56,83,94,58,18,17,95]),import.meta.url),"./src/components/Menu/FloatingMenu.stories.tsx":async()=>t(()=>import("./FloatingMenu.stories-C0B87lh2.js"),__vite__mapDeps([117,1,2,43,34,78,4,60,10,11,12,79,82,39,56,83,94,58,18,17,95]),import.meta.url),"./src/components/Menu/Menu.stories.tsx":async()=>t(()=>import("./Menu.stories-DpXR04mQ.js"),__vite__mapDeps([118,1,2,43,34,91,55,56,57,77,58,18,17,78,4,60,10,11,12,79,80,81,82,39,83,94,95,3,5,6]),import.meta.url),"./src/components/Menu/MenuItem.stories.tsx":async()=>t(()=>import("./MenuItem.stories-DJ-4U5wa.js"),__vite__mapDeps([119,1,2,35,40,82,4,10,11,12,39,56,83]),import.meta.url),"./src/components/Menu/ToggleMenuItem.stories.tsx":async()=>t(()=>import("./ToggleMenuItem.stories-KMfDoesp.js"),__vite__mapDeps([120,1,2,35,96,82,4,10,11,12,39,56,83,72,54,55,57,58,18,73,60]),import.meta.url),"./src/components/Nav/NavBar.stories.tsx":async()=>t(()=>import("./NavBar.stories-BviPy9z3.js"),__vite__mapDeps([121,1,2,89,4,90]),import.meta.url),"./src/components/Nav/NavItem.stories.tsx":async()=>t(()=>import("./NavItem.stories-HIBg9mgb.js"),__vite__mapDeps([122,1,2,89,4,90]),import.meta.url),"./src/components/Progress/Progress.stories.tsx":async()=>t(()=>import("./Progress.stories-BReUmr8m.js"),__vite__mapDeps([123,92,1,2,4,57,58,18,56,60,93]),import.meta.url),"./src/components/ReleaseAnnouncement/ReleaseAnnouncement.stories.tsx":async()=>t(()=>import("./ReleaseAnnouncement.stories-BAuUOmzG.js"),__vite__mapDeps([124,1,2,3,4,5,6,13,14,15,16,17,18,19,20,97,10,11,12,98]),import.meta.url),"./src/components/Search/Search.stories.tsx":async()=>t(()=>import("./Search.stories-CTsOMiJf.js"),__vite__mapDeps([125,1,2,66,54,55,56,57,58,18,37,8,52,4,53,59,60,16,17,19,61,67,44,68,69,63,64,70,71,72,73,36,9,74,41,75,3,5,6,7,10,11,12,13,14,15,20,21,23,24,26,28,29,76,77,78,79,80,81,82,39,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,49,38,50,101,102]),import.meta.url),"./src/components/Separator/Separator.stories.tsx":async()=>t(()=>import("./Separator.stories-lnwARbf1.js"),__vite__mapDeps([126,94,1,2,4,58,18,56,17,95]),import.meta.url),"./src/components/Toast/Toast.stories.tsx":async()=>t(()=>import("./Toast.stories-dVfytGvs.js"),__vite__mapDeps([127,99,1,2,4,100]),import.meta.url),"./src/components/Tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-DZAj7oWF.js"),__vite__mapDeps([128,1,2,16,17,18,4,19,3,5,6,13,14,15,20,43]),import.meta.url),"./src/components/Typography/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-CHYUY4vG.js"),__vite__mapDeps([129,1,2,86,11,4,12,10]),import.meta.url),"./src/components/Typography/Text.stories.tsx":async()=>t(()=>import("./Text.stories-LnqBI7_q.js"),__vite__mapDeps([130,10,1,2,11,4,12]),import.meta.url)};async function y(o){return P[o]()}const{composeConfigs:A,PreviewWeb:v,ClientApi:x}=__STORYBOOK_MODULE_PREVIEW_API__,D=async(o=[])=>{const _=await Promise.all([o.at(0)??t(()=>import("./entry-preview-DWKTXVn2.js"),__vite__mapDeps([131,2,132,18]),import.meta.url),o.at(1)??t(()=>import("./entry-preview-docs-H4eYC0v-.js"),__vite__mapDeps([133,134,2,135]),import.meta.url),o.at(2)??t(()=>import("./preview-BJPLiuSt.js"),__vite__mapDeps([136,137]),import.meta.url),o.at(3)??t(()=>import("./preview-CoAAG6xc.js"),[],import.meta.url),o.at(4)??t(()=>import("./preview-FpHGYA1q.js"),[],import.meta.url),o.at(5)??t(()=>import("./preview-Djh1_Tal.js"),__vite__mapDeps([138,135]),import.meta.url),o.at(6)??t(()=>import("./preview-BnWGZYux.js"),[],import.meta.url),o.at(7)??t(()=>import("./preview-DaXeQf6O.js"),[],import.meta.url),o.at(8)??t(()=>import("./preview-DB9FwMii.js"),__vite__mapDeps([139,135]),import.meta.url),o.at(9)??t(()=>import("./preview-4Up_z4Em.js"),[],import.meta.url),o.at(10)??t(()=>import("./preview-0Jj89qip.js"),__vite__mapDeps([140,32]),import.meta.url),o.at(11)??t(()=>import("./preview-DF-d5FoE.js"),[],import.meta.url),o.at(12)??t(()=>import("./preview-LX5xr5tV.js"),__vite__mapDeps([141,2,142,102]),import.meta.url)]);return A(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v(y,D);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/index-ClZaUGjB.js b/assets/index-BbBEevz9.js similarity index 92% rename from assets/index-ClZaUGjB.js rename to assets/index-BbBEevz9.js index 6a5e528b..6894dead 100644 --- a/assets/index-ClZaUGjB.js +++ b/assets/index-BbBEevz9.js @@ -1 +1 @@ -import{s as l,i as c,S as T,D as b,A as d,u as S,F as B,Z as L,w as C,a as H,y as u,H as g,T as y,J as I,N as h,b as k,x as P,C as W,E as A,c as F,R as x,d as D,e as R,f,X as v,B as E,k as M,g as N,q,h as w,j as O,l as U,L as Z,m as j,I as z,n as G,z as J,v as K,_ as Q,o as V,M as X,p as Y,r as _,t as $,G as aa,$ as sa,K as oa,O as ta,P as ea,Q as ra,U as pa,V as ia,W as na,Y as ma,a0 as la,a1 as ca,a2 as Ta,a3 as ba,a4 as da,a5 as Sa,a6 as Ba,a7 as La,a8 as Ca,a9 as Ha,aa as ua,ab as ga,ac as ya,ad as Ia}from"./DocsRenderer-PKQXORMH-BpGHKUfb.js";import"./iframe-ClOmmjK7.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-Glus6dSN.js";import"./index-Cw6ikIwd.js";import"./index-D-8MO0q_.js";import"./isArray-d9wiqGGH.js";import"./index-DrFu-skq.js";export{l as A,c as ActionBar,T as AddonPanel,b as Badge,d as Bar,S as Blockquote,B as Button,L as ClipboardCode,C as Code,H as DL,u as Div,g as DocumentWrapper,y as EmptyTabContent,I as ErrorFormatter,h as FlexBar,k as Form,P as H1,W as H2,A as H3,F as H4,x as H5,D as H6,R as HR,f as IconButton,v as IconButtonSkeleton,E as Icons,M as Img,N as LI,q as Link,w as ListItem,O as Loader,U as Modal,Z as OL,j as P,z as Placeholder,G as Pre,J as ResetWrapper,K as ScrollArea,Q as Separator,V as Spaced,X as Span,Y as StorybookIcon,_ as StorybookLogo,$ as Symbols,aa as SyntaxHighlighter,sa as TT,oa as TabBar,ta as TabButton,ea as TabWrapper,ra as Table,pa as Tabs,ia as TabsState,na as TooltipLinkList,ma as TooltipMessage,la as TooltipNote,ca as UL,Ta as WithTooltip,ba as WithTooltipPure,da as Zoom,Sa as codeCommon,Ba as components,La as createCopyToClipboardFunction,Ca as getStoryHref,Ha as icons,ua as interleaveSeparators,ga as nameSpaceClassNames,ya as resetComponents,Ia as withReset}; +import{s as l,i as c,S as T,D as b,A as d,u as S,F as B,Z as L,w as C,a as H,y as u,H as g,T as y,J as I,N as h,b as k,x as P,C as W,E as A,c as F,R as x,d as D,e as R,f,X as v,B as E,k as M,g as N,q,h as w,j as O,l as U,L as Z,m as j,I as z,n as G,z as J,v as K,_ as Q,o as V,M as X,p as Y,r as _,t as $,G as aa,$ as sa,K as oa,O as ta,P as ea,Q as ra,U as pa,V as ia,W as na,Y as ma,a0 as la,a1 as ca,a2 as Ta,a3 as ba,a4 as da,a5 as Sa,a6 as Ba,a7 as La,a8 as Ca,a9 as Ha,aa as ua,ab as ga,ac as ya,ad as Ia}from"./DocsRenderer-PKQXORMH-CIar5Tid.js";import"./iframe-P0aWvRAp.js";import"../sb-preview/runtime.js";import"./index-BP8_t0zE.js";import"./react-18-Glus6dSN.js";import"./index-Cw6ikIwd.js";import"./index-D-8MO0q_.js";import"./isArray-d9wiqGGH.js";import"./index-DrFu-skq.js";export{l as A,c as ActionBar,T as AddonPanel,b as Badge,d as Bar,S as Blockquote,B as Button,L as ClipboardCode,C as Code,H as DL,u as Div,g as DocumentWrapper,y as EmptyTabContent,I as ErrorFormatter,h as FlexBar,k as Form,P as H1,W as H2,A as H3,F as H4,x as H5,D as H6,R as HR,f as IconButton,v as IconButtonSkeleton,E as Icons,M as Img,N as LI,q as Link,w as ListItem,O as Loader,U as Modal,Z as OL,j as P,z as Placeholder,G as Pre,J as ResetWrapper,K as ScrollArea,Q as Separator,V as Spaced,X as Span,Y as StorybookIcon,_ as StorybookLogo,$ as Symbols,aa as SyntaxHighlighter,sa as TT,oa as TabBar,ta as TabButton,ea as TabWrapper,ra as Table,pa as Tabs,ia as TabsState,na as TooltipLinkList,ma as TooltipMessage,la as TooltipNote,ca as UL,Ta as WithTooltip,ba as WithTooltipPure,da as Zoom,Sa as codeCommon,Ba as components,La as createCopyToClipboardFunction,Ca as getStoryHref,Ha as icons,ua as interleaveSeparators,ga as nameSpaceClassNames,ya as resetComponents,Ia as withReset}; diff --git a/assets/preview-Bu6UzvCJ.js b/assets/preview-CoAAG6xc.js similarity index 76% rename from assets/preview-Bu6UzvCJ.js rename to assets/preview-CoAAG6xc.js index aa85ff1c..dc34dfa3 100644 --- a/assets/preview-Bu6UzvCJ.js +++ b/assets/preview-CoAAG6xc.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-BpGHKUfb.js","./iframe-ClOmmjK7.js","./index-BP8_t0zE.js","./react-18-Glus6dSN.js","./index-Cw6ikIwd.js","./index-D-8MO0q_.js","./isArray-d9wiqGGH.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]); -import{_ as a}from"./iframe-ClOmmjK7.js";import"../sb-preview/runtime.js";const{global:i}=__STORYBOOK_MODULE_GLOBAL__;var s=Object.entries(i.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-BpGHKUfb.js").then(r=>r.ai),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(r=>s[r]).length===0&&!e.parameters.docs?.disable}}};export{n as parameters}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-CIar5Tid.js","./iframe-P0aWvRAp.js","./index-BP8_t0zE.js","./react-18-Glus6dSN.js","./index-Cw6ikIwd.js","./index-D-8MO0q_.js","./isArray-d9wiqGGH.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]); +import{_ as a}from"./iframe-P0aWvRAp.js";import"../sb-preview/runtime.js";const{global:i}=__STORYBOOK_MODULE_GLOBAL__;var s=Object.entries(i.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-CIar5Tid.js").then(r=>r.ai),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(r=>s[r]).length===0&&!e.parameters.docs?.disable}}};export{n as parameters}; diff --git a/iframe.html b/iframe.html index f81092b0..f53e24e1 100644 --- a/iframe.html +++ b/iframe.html @@ -513,7 +513,7 @@ window.global = window; - + diff --git a/project.json b/project.json index 698f3028..21628e5b 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1724839375819,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@playwright/test":"1.45.3","@testing-library/dom":"10.4.0","@testing-library/jest-dom":"6.4.8","@testing-library/react":"16.0.0","@testing-library/user-event":null,"@vitest/coverage-v8":"2.0.4","vitest":"2.0.4"},"packageManager":{"type":"yarn","version":"1.22.22"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.2.6","storybookVersionSpecifier":"^8.1.1","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"8.2.6"},"@storybook/manager-api":{"version":"8.2.6"},"@storybook/react":{"version":"8.2.6"},"@storybook/react-vite":{"version":"8.2.6"},"@storybook/test":{"version":"8.2.6"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.2.6"}},"addons":{"@storybook/addon-links":{"version":"8.2.6"},"@storybook/addon-essentials":{"version":"8.2.6"},"@storybook/addon-interactions":{"version":"8.2.6"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-themes":{"version":"8.2.6"}}} +{"generatedAt":1724840420863,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@playwright/test":"1.45.3","@testing-library/dom":"10.4.0","@testing-library/jest-dom":"6.4.8","@testing-library/react":"16.0.0","@testing-library/user-event":null,"@vitest/coverage-v8":"2.0.4","vitest":"2.0.4"},"packageManager":{"type":"yarn","version":"1.22.22"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.2.6","storybookVersionSpecifier":"^8.1.1","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"8.2.6"},"@storybook/manager-api":{"version":"8.2.6"},"@storybook/react":{"version":"8.2.6"},"@storybook/react-vite":{"version":"8.2.6"},"@storybook/test":{"version":"8.2.6"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.2.6"}},"addons":{"@storybook/addon-links":{"version":"8.2.6"},"@storybook/addon-essentials":{"version":"8.2.6"},"@storybook/addon-interactions":{"version":"8.2.6"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-themes":{"version":"8.2.6"}}}