diff --git a/assets/AToZPage.stories-2AzkpY6_.js b/assets/AToZPage.stories-CbLJfTrj.js similarity index 98% rename from assets/AToZPage.stories-2AzkpY6_.js rename to assets/AToZPage.stories-CbLJfTrj.js index 4f879b5..1303136 100644 --- a/assets/AToZPage.stories-2AzkpY6_.js +++ b/assets/AToZPage.stories-CbLJfTrj.js @@ -1,4 +1,4 @@ -import{R as e}from"./index-Cs7sjTYM.js";import{A as r}from"./AToZ-I8WUbTja.js";import{H as a}from"./Header-DvYoS66I.js";import{C as u}from"./Container-CLMOXAcg.js";import{C as t}from"./Card-BdsyOK3X.js";import{M as C}from"./Main-SfhCX5gI.js";import{R as p,C as A}from"./Grid-ByltY6Yt.js";import{H as f}from"./Heading-CyaQd0b1.js";import{L as n}from"./List-CYw2Jq5A.js";import{L as l}from"./Link-3M5Wh4Hz.js";import{F as o}from"./Footer-DHj6TXKM.js";import"./_commonjsHelpers-BosuxZz1.js";import"./clsx-B-dksMZM.js";import"./factory-DehWrhRO.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./VisuallyHidden-DonKESKA.js";const S={title:"Patterns/Page types/A to Z page",parameters:{layout:"fullscreen",docs:{description:{component:`A to Z is a way of presenting a number of pages alphabetically. +import{R as e}from"./index-Cs7sjTYM.js";import{A as r}from"./AToZ-I8WUbTja.js";import{H as a}from"./Header-Cf-fYG7g.js";import{C as u}from"./Container-CLMOXAcg.js";import{C as t}from"./Card-BdsyOK3X.js";import{M as C}from"./Main-SfhCX5gI.js";import{R as p,C as A}from"./Grid-ByltY6Yt.js";import{H as f}from"./Heading-CyaQd0b1.js";import{L as n}from"./List-CYw2Jq5A.js";import{L as l}from"./Link-3M5Wh4Hz.js";import{F as o}from"./Footer-DHj6TXKM.js";import"./_commonjsHelpers-BosuxZz1.js";import"./clsx-B-dksMZM.js";import"./factory-DehWrhRO.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./VisuallyHidden-DonKESKA.js";const S={title:"Patterns/Page types/A to Z page",parameters:{layout:"fullscreen",docs:{description:{component:`A to Z is a way of presenting a number of pages alphabetically. https://service-manual.nhs.uk/design-system/patterns/a-to-z-page`}}}},m={render:c=>e.createElement(e.Fragment,null,e.createElement(a,{...c},e.createElement(a.Container,null,e.createElement(a.Logo,{variant:"logo-only",href:"/","aria-label":"NHS homepage"})),e.createElement(a.Nav,null)),e.createElement(u,null,e.createElement(C,null,e.createElement(p,null,e.createElement(A,{width:"full"},e.createElement(f,null,"Health A to Z"),e.createElement(r,{id:"nhsuk-nav-a-z","aria-label":"A to Z Navigation"},e.createElement(r.Item,{href:"#A"},"A"),e.createElement(r.Item,{href:"#B",noItems:!0},"B"),e.createElement(r.Item,{href:"#C"},"C"),e.createElement(r.Item,{href:"#D"},"D")),e.createElement(t,{variant:"feature"},e.createElement(t.Content,null,e.createElement(t.Heading,{id:"A"},"A"),e.createElement(n,{border:!0},e.createElement(n.Item,null,e.createElement(l,{href:"#"},"AAA")),e.createElement(n.Item,null,e.createElement(l,{href:"#"},"Abdominal aortic aneurysm")),e.createElement(n.Item,null,e.createElement(l,{href:"#"},"Abscess"))))),e.createElement(t,{variant:"feature"},e.createElement(t.Content,null,e.createElement(t.Heading,{id:"B"},"B"),e.createElement(n,{border:!0},e.createElement(n.Item,null,"There are currently no conditions listed")))))))),e.createElement(o,null,e.createElement(o.Content,null,e.createElement(o.List,null),e.createElement(o.Copyright,null,"NHS England"))))};var i,s,d;m.parameters={...m.parameters,docs:{...(i=m.parameters)==null?void 0:i.docs,source:{originalSource:`{ render: args => <> diff --git a/assets/AskUsersForTheirNhsNumber.stories-Bfx7XXDI.js b/assets/AskUsersForTheirNhsNumber.stories-CR7V1aaU.js similarity index 97% rename from assets/AskUsersForTheirNhsNumber.stories-Bfx7XXDI.js rename to assets/AskUsersForTheirNhsNumber.stories-CR7V1aaU.js index 655db38..3c8277d 100644 --- a/assets/AskUsersForTheirNhsNumber.stories-Bfx7XXDI.js +++ b/assets/AskUsersForTheirNhsNumber.stories-CR7V1aaU.js @@ -1,4 +1,4 @@ -import{R as e}from"./index-Cs7sjTYM.js";import{I as m}from"./Input-BJX2G2ww.js";import{H as r}from"./Header-DvYoS66I.js";import{C as i}from"./Container-CLMOXAcg.js";import{M as l}from"./Main-SfhCX5gI.js";import{R as u,C as p}from"./Grid-ByltY6Yt.js";import{B as h}from"./Button-DyX-YaNQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./FormGroup-B9DHxyUj.js";import"./Hint-BOkj5kLS.js";import"./clsx-B-dksMZM.js";import"./Label-DmVPi9oB.js";import"./Base-fHV16vWU.js";import"./ErrorMessage-DpQgiRoT.js";import"./VisuallyHidden-DonKESKA.js";import"./polymorphic-factory-23vJzvkj.js";import"./use-id-with-prefix-gaKPBBex.js";import"./factory-DehWrhRO.js";const M={title:"Patterns/Tasks/Ask users for their NHS number",parameters:{layout:"fullscreen",docs:{description:{component:`Use this pattern to ask people for their NHS number and help them find it. +import{R as e}from"./index-Cs7sjTYM.js";import{I as m}from"./Input-BJX2G2ww.js";import{H as r}from"./Header-Cf-fYG7g.js";import{C as i}from"./Container-CLMOXAcg.js";import{M as l}from"./Main-SfhCX5gI.js";import{R as u,C as p}from"./Grid-ByltY6Yt.js";import{B as h}from"./Button-DyX-YaNQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./FormGroup-B9DHxyUj.js";import"./Hint-BOkj5kLS.js";import"./clsx-B-dksMZM.js";import"./Label-DmVPi9oB.js";import"./Base-fHV16vWU.js";import"./ErrorMessage-DpQgiRoT.js";import"./VisuallyHidden-DonKESKA.js";import"./polymorphic-factory-23vJzvkj.js";import"./use-id-with-prefix-gaKPBBex.js";import"./factory-DehWrhRO.js";const M={title:"Patterns/Tasks/Ask users for their NHS number",parameters:{layout:"fullscreen",docs:{description:{component:`Use this pattern to ask people for their NHS number and help them find it. https://service-manual.nhs.uk/design-system/patterns/ask-users-for-their-nhs-number`}}}},t={render:s=>e.createElement(e.Fragment,null,e.createElement(r,{...s},e.createElement(r.Container,null,e.createElement(r.Logo,{variant:"logo-only",href:"/","aria-label":"NHS homepage"})),e.createElement(r.Nav,null)),e.createElement(i,null,e.createElement(l,null,e.createElement(u,null,e.createElement(p,{width:"two-thirds"},e.createElement("form",null,e.createElement(m,{label:"What is your NHS number?",labelProps:{variant:"page-heading",size:"l"},width:"10",hint:e.createElement(e.Fragment,null,"Your NHS number is a 10 digit number that you find on any letter the NHS has sent you. For example,"," ",e.createElement("span",{className:"nhsuk-u-nowrap"},"485 777 3456"),".")}),e.createElement(h,null,"Continue")))))))};var a,n,o;t.parameters={...t.parameters,docs:{...(a=t.parameters)==null?void 0:a.docs,source:{originalSource:`{ render: args => <> diff --git a/assets/Color-ERTF36HU-BfGofrk2.js b/assets/Color-ERTF36HU-C7bI4S9u.js similarity index 99% rename from assets/Color-ERTF36HU-BfGofrk2.js rename to assets/Color-ERTF36HU-C7bI4S9u.js index e8a4a73..59ec253 100644 --- a/assets/Color-ERTF36HU-BfGofrk2.js +++ b/assets/Color-ERTF36HU-C7bI4S9u.js @@ -1 +1 @@ -import{ae as Me,af as ie,ag as Ce,ah as $,a2 as ue,a0 as $e,x as Ie,ai as Oe,aj as Ne}from"./DocsRenderer-CFRXHY34-DKgwWX3o.js";import{R as h,r as m}from"./index-Cs7sjTYM.js";import{g as fe}from"./_commonjsHelpers-BosuxZz1.js";import"./iframe-DNiO07zA.js";import"../sb-preview/runtime.js";import"./index-Cf-03bMR.js";import"./index-D-8MO0q_.js";import"./index-DF3CPj03.js";import"./index-DrFu-skq.js";import"./react-18-B3Ni8Lov.js";var Se={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=Se,he={};for(const e of Object.keys(F))he[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 de=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),s=a-o;let l,c;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=s/(a+o):c=s/(2-a-o),[l,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,c=e[2]/255,i=Math.max(s,l,c),d=i-Math.min(s,l,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(l),r=f(c),s===i?o=r-n:l===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,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Re(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=he[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Re(e,a);s.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,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*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,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=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?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,c[i]=s*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 s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*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),s=255*r*(1-n),l=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,s];case 1:return[l,r,s];case 2:return[s,r,c];case 3:return[s,l,r];case 4:return[c,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*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 s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const c=n+a*(l-n);let i,d,f;switch(s){default:case 6:case 0:i=l,d=c,f=n;break;case 1:i=c,d=l,f=n;break;case 2:i=n,d=l,f=c;break;case 3:i=n,d=c,f=l;break;case 4:i=c,d=n,f=l;break;case 5:i=l,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),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=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,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*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),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,c=o**3,i=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};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 s=Math.sqrt(n*n+r*r);return[t,s,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),s=n*Math.sin(o);return[t,a,s]};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 s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};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(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};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),s=o-a;let l,c;return s<1?l=a/(1-s):l=0,s<=0?c=0:o===t?c=(n-r)/s%6:o===n?c=2+(r-t)/s:c=4+(t-n)/s,c/=6,c%=1,[c*360,s*100,l*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,s=a%1,l=1-s;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}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=de;function je(){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 Be(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,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:K[e].channels}),Object.defineProperty(N[e],"labels",{value:K[e].labels});const t=Pe(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=Be(o),N[e][r].raw=qe(o)})});var Xe=N;const _=fe(Xe);var De=Me,We=function(){return De.Date.now()},Ke=We,Ve=/\s/;function Ae(e){for(var t=e.length;t--&&Ve.test(e.charAt(t)););return t}var Ge=Ae,Ue=Ge,Ye=/^\s+/;function Je(e){return e&&e.slice(0,Ue(e)+1).replace(Ye,"")}var Qe=Je,Ze=Qe,te=ie,et=Ce,ne=NaN,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^0o[0-7]+$/i,ot=parseInt;function at(e){if(typeof e=="number")return e;if(et(e))return ne;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ze(e);var n=nt.test(e);return n||rt.test(e)?ot(e.slice(2),n?2:8):tt.test(e)?ne:+e}var st=at,lt=ie,W=Ke,re=st,ct="Expected a function",it=Math.max,ut=Math.min;function ft(e,t,n){var r,o,a,s,l,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(ct);t=re(t)||0,lt(n)&&(d=!!n.leading,f="maxWait"in n,a=f?it(re(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,i=v,s=e.apply(z,C),s}function j(v){return i=v,l=setTimeout(b,t),d?x(v):s}function M(v){var C=v-c,z=v-i,ee=t-C;return f?ut(ee,a-z):ee}function p(v){var C=v-c,z=v-i;return c===void 0||C>=t||C<0||f&&z>=a}function b(){var v=W();if(p(v))return w(v);l=setTimeout(b,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),i=0,r=c=o=l=void 0}function k(){return l===void 0?s:w(W())}function I(){var v=W(),C=p(v);if(r=arguments,o=this,c=v,C){if(l===void 0)return j(c);if(f)return clearTimeout(l),l=setTimeout(b,t),x(c)}return l===void 0&&(l=setTimeout(b,t)),s}return I.cancel=E,I.flush=k,I}var ht=ft;const dt=fe(ht);function O(){return(O=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function V(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=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(oe(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=c.current,w=A(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(ae(b),!function(k,I){return I&&!H(k)}(b,c.current)&&w)){if(H(b)){c.current=!0;var E=b.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(oe(w,b,l.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),s({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",O({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=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=T(["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}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},gt={grad:.9,turn:360,rad:360/(2*Math.PI)},mt=function(e){return be(G(e))},G=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?y(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?y(parseInt(e.substring(6,8),16)/255,2):1}},bt=function(e,t){return t===void 0&&(t="deg"),Number(e)*(gt[t]||1)},vt=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?pt({h:bt(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}},pt=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}},yt=function(e){return wt(me(e))},ge=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},U=function(e){var t=ge(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=ge(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},me=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),s=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:y(255*[r,l,s,s,c,r][i]),g:y(255*[c,r,r,l,s,s][i]),b:y(255*[s,s,c,r,r,l][i]),a:y(o,2)}},xt=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?be({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},wt=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},be=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},ve=h.memo(function(e){var t=e.hue,n=e.onChange,r=T(["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:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:U({h:t,s:100,v:100,a:1})})))}),pe=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:U({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:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:U(t)})))}),ye=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},xe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},kt=function(e,t){return e.toLowerCase()===t.toLowerCase()||ye(G(e),G(t))};function we(e,t,n){var r=V(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),m.useEffect(function(){var i;ye(a,l.current.hsva)||e.equal(i=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var _t=typeof window<"u"?m.useLayoutEffect:m.useEffect,Et=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},se=new Map,ke=function(e){_t(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!se.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}`,se.set(t,n);var r=Et();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Mt=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Ct={defaultColor:"000",toHsva:mt,fromHsva:function(e){return yt({h:e.h,s:e.s,v:e.v,a:1})},equal:kt},$t=function(e){return h.createElement(Mt,O({},e,{colorModel:Ct}))},It=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=T(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},_e=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d}),h.createElement(It,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ot={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:vt,fromHsva:B,equal:xe},Nt=function(e){return h.createElement(_e,O({},e,{colorModel:Ot}))},St={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xt,fromHsva:function(e){var t=me(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:xe},Rt=function(e){return h.createElement(_e,O({},e,{colorModel:St}))},jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ht=$.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=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.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,')`,le=({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=$(Ie.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(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:$t,rgb:Rt,hsl:Nt},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.rgb.hsl([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([s,l,c]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.hsl.rgb([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([s,l,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!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0: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,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[s,l]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=m.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=m.useCallback(l=>{l!=null&&l.valid&&(a.some(c=>D(c[n])===D(l[n]))||o(c=>c.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let c=m.useCallback(dt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,c),{presets:M,addPreset:p}=Ut(a,g,x),b=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return h.createElement(jt,{"aria-readonly":w},h.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Ht,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,I)=>h.createElement(ue,{key:`${k.value}-${I}`,hasChrome:!1,tooltip:h.createElement(Ft,{note:k.keyword||k.value})},h.createElement(le,{value:k[x],active:g&&D(k[x])===D(g[x]),onClick:()=>f(k.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ne(e),value:i,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:j}):null)},ln=Yt;export{Yt as ColorControl,ln as default}; +import{ae as Me,af as ie,ag as Ce,ah as $,a2 as ue,a0 as $e,x as Ie,ai as Oe,aj as Ne}from"./DocsRenderer-CFRXHY34-DEn-Ets9.js";import{R as h,r as m}from"./index-Cs7sjTYM.js";import{g as fe}from"./_commonjsHelpers-BosuxZz1.js";import"./iframe-DlGnF_r8.js";import"../sb-preview/runtime.js";import"./index-Cf-03bMR.js";import"./index-D-8MO0q_.js";import"./index-DF3CPj03.js";import"./index-DrFu-skq.js";import"./react-18-B3Ni8Lov.js";var Se={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=Se,he={};for(const e of Object.keys(F))he[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 de=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),s=a-o;let l,c;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=s/(a+o):c=s/(2-a-o),[l,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,c=e[2]/255,i=Math.max(s,l,c),d=i-Math.min(s,l,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(l),r=f(c),s===i?o=r-n:l===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,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Re(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=he[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Re(e,a);s.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,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*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,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=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?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,c[i]=s*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 s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*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),s=255*r*(1-n),l=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,s];case 1:return[l,r,s];case 2:return[s,r,c];case 3:return[s,l,r];case 4:return[c,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*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 s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const c=n+a*(l-n);let i,d,f;switch(s){default:case 6:case 0:i=l,d=c,f=n;break;case 1:i=c,d=l,f=n;break;case 2:i=n,d=l,f=c;break;case 3:i=n,d=c,f=l;break;case 4:i=c,d=n,f=l;break;case 5:i=l,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),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=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,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*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),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,c=o**3,i=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};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 s=Math.sqrt(n*n+r*r);return[t,s,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),s=n*Math.sin(o);return[t,a,s]};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 s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};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(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};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),s=o-a;let l,c;return s<1?l=a/(1-s):l=0,s<=0?c=0:o===t?c=(n-r)/s%6:o===n?c=2+(r-t)/s:c=4+(t-n)/s,c/=6,c%=1,[c*360,s*100,l*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,s=a%1,l=1-s;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}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=de;function je(){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 Be(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,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:K[e].channels}),Object.defineProperty(N[e],"labels",{value:K[e].labels});const t=Pe(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=Be(o),N[e][r].raw=qe(o)})});var Xe=N;const _=fe(Xe);var De=Me,We=function(){return De.Date.now()},Ke=We,Ve=/\s/;function Ae(e){for(var t=e.length;t--&&Ve.test(e.charAt(t)););return t}var Ge=Ae,Ue=Ge,Ye=/^\s+/;function Je(e){return e&&e.slice(0,Ue(e)+1).replace(Ye,"")}var Qe=Je,Ze=Qe,te=ie,et=Ce,ne=NaN,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^0o[0-7]+$/i,ot=parseInt;function at(e){if(typeof e=="number")return e;if(et(e))return ne;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ze(e);var n=nt.test(e);return n||rt.test(e)?ot(e.slice(2),n?2:8):tt.test(e)?ne:+e}var st=at,lt=ie,W=Ke,re=st,ct="Expected a function",it=Math.max,ut=Math.min;function ft(e,t,n){var r,o,a,s,l,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(ct);t=re(t)||0,lt(n)&&(d=!!n.leading,f="maxWait"in n,a=f?it(re(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,i=v,s=e.apply(z,C),s}function j(v){return i=v,l=setTimeout(b,t),d?x(v):s}function M(v){var C=v-c,z=v-i,ee=t-C;return f?ut(ee,a-z):ee}function p(v){var C=v-c,z=v-i;return c===void 0||C>=t||C<0||f&&z>=a}function b(){var v=W();if(p(v))return w(v);l=setTimeout(b,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),i=0,r=c=o=l=void 0}function k(){return l===void 0?s:w(W())}function I(){var v=W(),C=p(v);if(r=arguments,o=this,c=v,C){if(l===void 0)return j(c);if(f)return clearTimeout(l),l=setTimeout(b,t),x(c)}return l===void 0&&(l=setTimeout(b,t)),s}return I.cancel=E,I.flush=k,I}var ht=ft;const dt=fe(ht);function O(){return(O=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function V(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=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(oe(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=c.current,w=A(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(ae(b),!function(k,I){return I&&!H(k)}(b,c.current)&&w)){if(H(b)){c.current=!0;var E=b.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(oe(w,b,l.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),s({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",O({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=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=T(["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}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},gt={grad:.9,turn:360,rad:360/(2*Math.PI)},mt=function(e){return be(G(e))},G=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?y(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?y(parseInt(e.substring(6,8),16)/255,2):1}},bt=function(e,t){return t===void 0&&(t="deg"),Number(e)*(gt[t]||1)},vt=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?pt({h:bt(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}},pt=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}},yt=function(e){return wt(me(e))},ge=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},U=function(e){var t=ge(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=ge(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},me=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),s=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:y(255*[r,l,s,s,c,r][i]),g:y(255*[c,r,r,l,s,s][i]),b:y(255*[s,s,c,r,r,l][i]),a:y(o,2)}},xt=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?be({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},wt=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},be=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},ve=h.memo(function(e){var t=e.hue,n=e.onChange,r=T(["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:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:U({h:t,s:100,v:100,a:1})})))}),pe=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:U({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:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:U(t)})))}),ye=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},xe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},kt=function(e,t){return e.toLowerCase()===t.toLowerCase()||ye(G(e),G(t))};function we(e,t,n){var r=V(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),m.useEffect(function(){var i;ye(a,l.current.hsva)||e.equal(i=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var _t=typeof window<"u"?m.useLayoutEffect:m.useEffect,Et=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},se=new Map,ke=function(e){_t(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!se.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}`,se.set(t,n);var r=Et();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Mt=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Ct={defaultColor:"000",toHsva:mt,fromHsva:function(e){return yt({h:e.h,s:e.s,v:e.v,a:1})},equal:kt},$t=function(e){return h.createElement(Mt,O({},e,{colorModel:Ct}))},It=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=T(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},_e=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d}),h.createElement(It,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ot={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:vt,fromHsva:B,equal:xe},Nt=function(e){return h.createElement(_e,O({},e,{colorModel:Ot}))},St={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xt,fromHsva:function(e){var t=me(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:xe},Rt=function(e){return h.createElement(_e,O({},e,{colorModel:St}))},jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ht=$.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=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.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,')`,le=({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=$(Ie.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(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:$t,rgb:Rt,hsl:Nt},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.rgb.hsl([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([s,l,c]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.hsl.rgb([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([s,l,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!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0: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,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[s,l]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=m.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=m.useCallback(l=>{l!=null&&l.valid&&(a.some(c=>D(c[n])===D(l[n]))||o(c=>c.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let c=m.useCallback(dt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,c),{presets:M,addPreset:p}=Ut(a,g,x),b=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return h.createElement(jt,{"aria-readonly":w},h.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Ht,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,I)=>h.createElement(ue,{key:`${k.value}-${I}`,hasChrome:!1,tooltip:h.createElement(Ft,{note:k.keyword||k.value})},h.createElement(le,{value:k[x],active:g&&D(k[x])===D(g[x]),onClick:()=>f(k.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ne(e),value:i,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:j}):null)},ln=Yt;export{Yt as ColorControl,ln as default}; diff --git a/assets/DocsRenderer-CFRXHY34-DKgwWX3o.js b/assets/DocsRenderer-CFRXHY34-DEn-Ets9.js similarity index 99% rename from assets/DocsRenderer-CFRXHY34-DKgwWX3o.js rename to assets/DocsRenderer-CFRXHY34-DEn-Ets9.js index 973d9d0..2835f67 100644 --- a/assets/DocsRenderer-CFRXHY34-DKgwWX3o.js +++ b/assets/DocsRenderer-CFRXHY34-DEn-Ets9.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-D2Hf-NHx.js","./iframe-DNiO07zA.js","./index-Cs7sjTYM.js","./_commonjsHelpers-BosuxZz1.js","./index-Cf-03bMR.js","./index-D-8MO0q_.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./react-18-B3Ni8Lov.js","./Color-ERTF36HU-BfGofrk2.js","./index-BI1Biiay.js"])))=>i.map(i=>d[i]); -var dS=Object.defineProperty;var pS=(e,t,r)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hn=(e,t,r)=>pS(e,typeof t!="symbol"?t+"":t,r);import{_ as Lp}from"./iframe-DNiO07zA.js";import{r as l,R as y}from"./index-Cs7sjTYM.js";import{r as Ns,f as j3}from"./index-Cf-03bMR.js";import{O as V3,P as fS}from"./index-D-8MO0q_.js";import{c as Vi,g as Hs}from"./_commonjsHelpers-BosuxZz1.js";import{y as Dm,D as tc}from"./index-DF3CPj03.js";import{d as hS}from"./index-DrFu-skq.js";import{renderElement as mS,unmountElement as gS}from"./react-18-B3Ni8Lov.js";var vS=Object.create,U3=Object.defineProperty,yS=Object.getOwnPropertyDescriptor,q3=Object.getOwnPropertyNames,bS=Object.getPrototypeOf,wS=Object.prototype.hasOwnProperty,Oa=(e,t)=>function(){return t||(0,e[q3(e)[0]])((t={exports:{}}).exports,t),t.exports},ES=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of q3(t))!wS.call(e,a)&&a!==r&&U3(e,a,{get:()=>t[a],enumerable:!(n=yS(t,a))||n.enumerable});return e},xS=(e,t,r)=>(r=e!=null?vS(bS(e)):{},ES(!e||!e.__esModule?U3(r,"default",{value:e,enumerable:!0}):r,e)),xt=e=>`control-${e.replace(/\s+/g,"-")}`,js=e=>`set-${e.replace(/\s+/g,"-")}`,CS=Object.create,Mp=Object.defineProperty,DS=Object.getOwnPropertyDescriptor,SS=Object.getOwnPropertyNames,AS=Object.getPrototypeOf,kS=Object.prototype.hasOwnProperty,I=(e,t)=>Mp(e,"name",{value:t,configurable:!0}),Ui=(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')}),Vs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_S=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of SS(t))!kS.call(e,a)&&a!==r&&Mp(e,a,{get:()=>t[a],enumerable:!(n=DS(t,a))||n.enumerable});return e},Pp=(e,t,r)=>(r=e!=null?CS(AS(e)):{},_S(t||!e||!e.__esModule?Mp(r,"default",{value:e,enumerable:!0}):r,e)),FS=Vs(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,E=t?Symbol.for("react.fundamental"):60117,x=t?Symbol.for("react.responder"):60118,C=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===E||P.$$typeof===x||P.$$typeof===C||P.$$typeof===b)}I(w,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var lt=P.$$typeof;switch(lt){case r:var At=P.type;switch(At){case d:case p:case a:case i:case o:case m:return At;default:var Wr=At&&At.$$typeof;switch(Wr){case u:case h:case g:case v:case s:return Wr;default:return lt}}case n:return lt}}}I(D,"typeOf");var S=d,A=p,k=u,F=s,T=r,R=h,O=a,z=g,L=v,$=n,M=i,j=o,G=m,N=!1;function q(P){return N||(N=!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.")),ee(P)||D(P)===d}I(q,"isAsyncMode");function ee(P){return D(P)===p}I(ee,"isConcurrentMode");function se(P){return D(P)===u}I(se,"isContextConsumer");function te(P){return D(P)===s}I(te,"isContextProvider");function ne(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}I(ne,"isElement");function H(P){return D(P)===h}I(H,"isForwardRef");function Y(P){return D(P)===a}I(Y,"isFragment");function Z(P){return D(P)===g}I(Z,"isLazy");function me(P){return D(P)===v}I(me,"isMemo");function Ae(P){return D(P)===n}I(Ae,"isPortal");function St(P){return D(P)===i}I(St,"isProfiler");function Ue(P){return D(P)===o}I(Ue,"isStrictMode");function it(P){return D(P)===m}I(it,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=T,e.ForwardRef=R,e.Fragment=O,e.Lazy=z,e.Memo=L,e.Portal=$,e.Profiler=M,e.StrictMode=j,e.Suspense=G,e.isAsyncMode=q,e.isConcurrentMode=ee,e.isContextConsumer=se,e.isContextProvider=te,e.isElement=ne,e.isForwardRef=H,e.isFragment=Y,e.isLazy=Z,e.isMemo=me,e.isPortal=Ae,e.isProfiler=St,e.isStrictMode=Ue,e.isSuspense=it,e.isValidElementType=w,e.typeOf=D})()}),IS=Vs((e,t)=>{t.exports=FS()}),W3=Vs((e,t)=>{var r=IS(),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}I(u,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(b,E,x){if(typeof E!="string"){if(v){var C=f(E);C&&C!==v&&g(b,C,x)}var w=p(E);h&&(w=w.concat(h(E)));for(var D=u(b),S=u(E),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 I(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var h=typeof Ui=="function"&&Ui;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}I(i,"s");for(var s=typeof Ui=="function"&&Ui,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&&(x[E]={cacheItem:v,arg:arguments[E]},C?i(h,x):h.push(x),h.length>d&&s(h.shift())),f.wasMemoized=C,f.numArgs=E+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)}I(s,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +var dS=Object.defineProperty;var pS=(e,t,r)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hn=(e,t,r)=>pS(e,typeof t!="symbol"?t+"":t,r);import{_ as Lp}from"./iframe-DlGnF_r8.js";import{r as l,R as y}from"./index-Cs7sjTYM.js";import{r as Ns,f as j3}from"./index-Cf-03bMR.js";import{O as V3,P as fS}from"./index-D-8MO0q_.js";import{c as Vi,g as Hs}from"./_commonjsHelpers-BosuxZz1.js";import{y as Dm,D as tc}from"./index-DF3CPj03.js";import{d as hS}from"./index-DrFu-skq.js";import{renderElement as mS,unmountElement as gS}from"./react-18-B3Ni8Lov.js";var vS=Object.create,U3=Object.defineProperty,yS=Object.getOwnPropertyDescriptor,q3=Object.getOwnPropertyNames,bS=Object.getPrototypeOf,wS=Object.prototype.hasOwnProperty,Oa=(e,t)=>function(){return t||(0,e[q3(e)[0]])((t={exports:{}}).exports,t),t.exports},ES=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of q3(t))!wS.call(e,a)&&a!==r&&U3(e,a,{get:()=>t[a],enumerable:!(n=yS(t,a))||n.enumerable});return e},xS=(e,t,r)=>(r=e!=null?vS(bS(e)):{},ES(!e||!e.__esModule?U3(r,"default",{value:e,enumerable:!0}):r,e)),xt=e=>`control-${e.replace(/\s+/g,"-")}`,js=e=>`set-${e.replace(/\s+/g,"-")}`,CS=Object.create,Mp=Object.defineProperty,DS=Object.getOwnPropertyDescriptor,SS=Object.getOwnPropertyNames,AS=Object.getPrototypeOf,kS=Object.prototype.hasOwnProperty,I=(e,t)=>Mp(e,"name",{value:t,configurable:!0}),Ui=(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')}),Vs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_S=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of SS(t))!kS.call(e,a)&&a!==r&&Mp(e,a,{get:()=>t[a],enumerable:!(n=DS(t,a))||n.enumerable});return e},Pp=(e,t,r)=>(r=e!=null?CS(AS(e)):{},_S(t||!e||!e.__esModule?Mp(r,"default",{value:e,enumerable:!0}):r,e)),FS=Vs(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,E=t?Symbol.for("react.fundamental"):60117,x=t?Symbol.for("react.responder"):60118,C=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===E||P.$$typeof===x||P.$$typeof===C||P.$$typeof===b)}I(w,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var lt=P.$$typeof;switch(lt){case r:var At=P.type;switch(At){case d:case p:case a:case i:case o:case m:return At;default:var Wr=At&&At.$$typeof;switch(Wr){case u:case h:case g:case v:case s:return Wr;default:return lt}}case n:return lt}}}I(D,"typeOf");var S=d,A=p,k=u,F=s,T=r,R=h,O=a,z=g,L=v,$=n,M=i,j=o,G=m,N=!1;function q(P){return N||(N=!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.")),ee(P)||D(P)===d}I(q,"isAsyncMode");function ee(P){return D(P)===p}I(ee,"isConcurrentMode");function se(P){return D(P)===u}I(se,"isContextConsumer");function te(P){return D(P)===s}I(te,"isContextProvider");function ne(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}I(ne,"isElement");function H(P){return D(P)===h}I(H,"isForwardRef");function Y(P){return D(P)===a}I(Y,"isFragment");function Z(P){return D(P)===g}I(Z,"isLazy");function me(P){return D(P)===v}I(me,"isMemo");function Ae(P){return D(P)===n}I(Ae,"isPortal");function St(P){return D(P)===i}I(St,"isProfiler");function Ue(P){return D(P)===o}I(Ue,"isStrictMode");function it(P){return D(P)===m}I(it,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=T,e.ForwardRef=R,e.Fragment=O,e.Lazy=z,e.Memo=L,e.Portal=$,e.Profiler=M,e.StrictMode=j,e.Suspense=G,e.isAsyncMode=q,e.isConcurrentMode=ee,e.isContextConsumer=se,e.isContextProvider=te,e.isElement=ne,e.isForwardRef=H,e.isFragment=Y,e.isLazy=Z,e.isMemo=me,e.isPortal=Ae,e.isProfiler=St,e.isStrictMode=Ue,e.isSuspense=it,e.isValidElementType=w,e.typeOf=D})()}),IS=Vs((e,t)=>{t.exports=FS()}),W3=Vs((e,t)=>{var r=IS(),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}I(u,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(b,E,x){if(typeof E!="string"){if(v){var C=f(E);C&&C!==v&&g(b,C,x)}var w=p(E);h&&(w=w.concat(h(E)));for(var D=u(b),S=u(E),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 I(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var h=typeof Ui=="function"&&Ui;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}I(i,"s");for(var s=typeof Ui=="function"&&Ui,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&&(x[E]={cacheItem:v,arg:arguments[E]},C?i(h,x):h.push(x),h.length>d&&s(h.shift())),f.wasMemoized=C,f.numArgs=E+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)}I(s,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?xe(La,--He):0,va--,fe===10&&(va=1,Ws--),fe}I(tb,"prev");function Me(){return fe=He2||ya(fe)>3?"":" "}I(rb,"whitespace");function nb(e,t){for(;--t&&Me()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return Ma(e,Lo()+(t<6&>()==32&&Me()==32))}I(nb,"escaping");function Kl(e){for(;Me();)switch(fe){case e:return He;case 34:case 39:e!==34&&e!==39&&Kl(fe);break;case 40:e===41&&Kl(e);break;case 92:Me();break}return He}I(Kl,"delimiter");function ab(e,t){for(;Me()&&e+fe!==57&&!(e+fe===84&>()===47););return"/*"+Ma(t,He-1)+"*"+Us(e===47?e:Me())}I(ab,"commenter");function ob(e){for(;!ya(gt());)Me();return Ma(e,He)}I(ob,"identifier");function ib(e){return Gp(Po("",null,null,null,[""],e=Wp(e),0,[0],e))}I(ib,"compile");function Po(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,E=1,x=0,C="",w=a,D=o,S=n,A=C;b;)switch(v=x,x=Me()){case 40:if(v!=108&&xe(A,h-1)==58){Gl(A+=X(Mo(x),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:A+=Mo(x);break;case 9:case 10:case 13:case 32:A+=rb(v);break;case 92:A+=nb(Lo()-1,7);continue;case 47:switch(gt()){case 42:case 47:Do(lb(ab(Me(),Lo()),t,r),u);break;default:A+="/"}break;case 123*g:s[d++]=pt(A)*E;case 125*g:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+p:E==-1&&(A=X(A,/\f/g,"")),f>0&&pt(A)-h&&Do(f>32?Ld(A+";",n,r,h-1):Ld(X(A," ","")+";",n,r,h-2),u);break;case 59:A+=";";default:if(Do(S=Od(A,t,r,d,p,a,s,C,w=[],D=[],h),o),x===123)if(p===0)Po(A,t,S,S,w,o,h,s,D);else switch(m===99&&xe(A,3)===110?100:m){case 100:case 108:case 109:case 115:Po(e,S,S,n&&Do(Od(e,S,S,0,0,a,s,C,a,w=[],h),D),a,D,h,s,n?w:D);break;default:Po(A,S,S,S,[""],D,0,s,D)}}d=p=f=0,g=E=1,C=A="",h=i;break;case 58:h=1+pt(A),f=v;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&tb()==125)continue}switch(A+=Us(x),x*g){case 38:E=p>0?1:(A+="\f",-1);break;case 44:s[d++]=(pt(A)-1)*E,E=1;break;case 64:gt()===45&&(A+=Mo(Me())),m=gt(),p=h=pt(C=A+=ob(Lo())),x++;break;case 45:v===45&&pt(A)==2&&(g=0)}}return o}I(Po,"parse");function Od(e,t,r,n,a,o,i,s,u,d,p){for(var h=a-1,m=a===0?o:[""],f=qs(m),v=0,g=0,b=0;v0?m[E]+" "+x:X(x,/&\f/g,m[E])))&&(u[b++]=C);return fi(e,t,r,a===0?Vp:s,u,d,p)}I(Od,"ruleset");function lb(e,t,r){return fi(e,t,r,jp,Us(eb()),ga(e,2,-2),0)}I(lb,"comment");function Ld(e,t,r,n){return fi(e,t,r,Up,ga(e,0,n),ga(e,n+1,-1),n)}I(Ld,"declaration");function hn(e,t){for(var r="",n=qs(e),a=0;a-1},"isIgnoringComment"),qS=I(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(!cb(t[r]))return!0;return!1},"isPrependedWithRegularRules"),km=I(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),GS=I(function(e,t,r){cb(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."),km(e)):WS(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),km(e)))},"incorrectImportAlarm");function Kp(e,t){switch(Z3(e,t)){case 5103:return re+"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 re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+Wl+e+Te+e+e;case 6828:case 4268:return re+e+Te+e+e;case 6165:return re+e+Te+"flex-"+e+e;case 5187:return re+e+X(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return re+e+Te+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return re+e+Te+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+Te+X(e,"shrink","negative")+e;case 5292:return re+e+Te+X(e,"basis","preferred-size")+e;case 6060:return re+"box-"+X(e,"-grow","")+re+e+Te+X(e,"grow","positive")+e;case 4554:return re+X(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,re+"$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(pt(e)-1-t>6)switch(xe(e,t+1)){case 109:if(xe(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+Wl+(xe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gl(e,"stretch")?Kp(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(xe(e,t+1)!==115)break;case 6444:switch(xe(e,pt(e)-3-(~Gl(e,"!important")&&10))){case 107:return X(e,":",":"+re)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(xe(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(xe(e,t+11)){case 114:return re+e+Te+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+Te+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+Te+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+Te+e+e}return e}I(Kp,"prefix");var KS=I(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Up:e.return=Kp(e.value,e.length);break;case Y3:return hn([Zn(e,{value:X(e.value,"@","@"+re)})],n);case Vp:if(e.length)return X3(e.props,function(a){switch(J3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hn([Zn(e,{props:[X(a,/:(read-\w+)/,":"+Wl+"$1")]})],n);case"::placeholder":return hn([Zn(e,{props:[X(a,/:(plac\w+)/,":"+re+"input-$1")]}),Zn(e,{props:[X(a,/:(plac\w+)/,":"+Wl+"$1")]}),Zn(e,{props:[X(a,/:(plac\w+)/,Te+"input-$1")]})],n)}return""})}},"prefixer"),YS=[KS],ZS=I(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||YS;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)}I(db,"murmur2");var eA={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},_m=`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';". @@ -566,7 +566,7 @@ ${t}`);let r=t.match(rO);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:tt}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:yee,once:bee,logger:hm}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:A3,composeConfigs:xae,Preview:Cae,DocsContext:Dae}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:k3,UPDATE_STORY_ARGS:wee,RESET_STORY_ARGS:Eee,GLOBALS_UPDATED:_3,NAVIGATE_URL:xee}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var Cee=Oa({"../../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}}}),Dee=Oa({"../../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(L,$){if(v(L)>D+r.headingsOffset+10){var M=$===0?$:$-1;return A=S[M],!0}else if($===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 T=i.querySelectorAll("."+r.linkClass);n.call(T,function(L){g(L,L.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(L){g(L,L.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var O=F&&F.parentNode;O&&O.className.indexOf(r.activeListItemClass)===-1&&(O.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(L){L.className.indexOf(r.isCollapsedClass)===-1&&(L.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),E(F&&F.parentNode.parentNode)}}function E(w){return w&&w.className.indexOf(r.collapsibleClass)!==-1&&w.className.indexOf(r.isCollapsedClass)!==-1?(g(w,w.className.replace(u+r.isCollapsedClass,"")),E(w.parentNode.parentNode)):w}function x(w){var D=w.target||w.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function C(){s=!0}return{enableTocAnimation:C,disableTocAnimation:x,render:p,updateToc:b}}}}),See=Oa({"../../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),E=b?b.headingLevel:0,x=v-E;x>0&&(b=a(g),!(b&&v===b.headingLevel));)b&&b.children!==void 0&&(g=b.children),x--;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}}}}),Aee=Oa({"../../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)}}}}),kee=Oa({"../../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 x={},C=0;C({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:le(.3,e.color.defaultText),fontSize:e.typography.size.s2})),OD=e=>y.createElement(Fee,{...e,className:"docblock-emptyblock sb-unstyled"}),Iee=_(Rh)(({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"}})),Tee=_.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"})),wl=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Hd}`]:{margin:0}})),Ree=()=>y.createElement(Tee,null,y.createElement(wl,null),y.createElement(wl,{style:{width:"80%"}}),y.createElement(wl,{style:{width:"30%"}}),y.createElement(wl,{style:{width:"80%"}})),LD=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=vb();if(e)return y.createElement(Ree,null);if(t)return y.createElement(OD,null,t);let u=y.createElement(Iee,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?Pd.dark:Pd.light;return y.createElement(yb,{theme:Nd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},ge=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,mm=600,Bee=_.h1(ce,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${mm}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),zee=_.h2(ce,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${mm}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:le(.25,e.color.defaultText)})),$ee=_.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"?le(.1,e.color.defaultText):le(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ge("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}},[ge("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}},[ge("div")]:t,[ge("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}},[ge("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ge("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ge("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ge("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ge("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ge("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ge("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ge("img")]:{maxWidth:"100%"},[ge("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ge("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ge("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ge("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"}},[ge("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"}}},[ge("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}},[ge("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),Oee=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${mm}px)`]:{}})),Lee=({children:e,toc:t})=>y.createElement(Oee,{className:"sbdocs sbdocs-wrapper"},y.createElement($ee,{className:"sbdocs sbdocs-content"},e),t),Ju=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}`}),{window:Mee}=tt,Pee=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=Mee.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})}},MD=l.createContext({scale:1}),{PREVIEW_URL:Nee}=tt,Hee=Nee||"iframe.html",Ip=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,jee=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(iO,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${Ip(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(PD,null),y.createElement("div",{ref:t,id:`${Ip(e)}-inner`,"data-name":i.name}))},Vee=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(MD.Consumer,null,({scale:r})=>y.createElement(Pee,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:FL(Hee,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Uee=_.strong(({theme:e})=>({color:e.color.orange})),qee=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(Uee,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:Ip(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(jee,{...e}):y.createElement(Vee,{...e}))},PD=()=>y.createElement(_L,null),Wee=_(jh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Gee=_.div({display:"flex",alignItems:"center",gap:4}),Kee=_.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`})),Yee=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(Wee,{...o},y.createElement(Gee,{key:"left"},e?[1,2,3].map(i=>y.createElement(Kee,{key:i})):y.createElement(y.Fragment,null,y.createElement(vn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(bM,null)),y.createElement(vn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(wM,null)),y.createElement(vn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(EM,null))))),Zee=_.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)`}}:{}),F3=_(LD)(({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)":zt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":zt(.05,e.background.content)}})),Jee=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Ju(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),Xee=(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(F3,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(F3,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function Qee(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var ete=_(Yee)({position:"absolute",top:0,left:0,right:0,height:40}),tte=_.div({overflow:"hidden",position:"relative"}),ND=({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}=Xee(a,h,m),[g,b]=l.useState(1),E=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),x=a?[v]:[],[C,w]=l.useState(s?[...s]:[]),D=[...x,...C],{window:S}=tt,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:T}=await Lp(()=>import("./index-D2Hf-NHx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);T()},[]),k=F=>{let T=S.getSelection();T&&T.type==="Range"||(F.preventDefault(),C.filter(R=>R.title==="Copied").length===0&&A(f.props.code).then(()=>{w([...C,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>w(C.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(Jee,{withSource:a,withToolbar:o,...p,className:E.join(" ")},o&&y.createElement(ete,{isLoading:e,border:!0,zoom:F=>b(g*F),resetZoom:()=>b(1),storyId:Qee(n),baseUrl:"./iframe.html"}),y.createElement(MD.Provider,{value:{scale:g}},y.createElement(tte,{className:"docs-story",onCopyCapture:a&&k},y.createElement(Zee,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(X$.Element,{scale:g},Array.isArray(n)?n.map((F,T)=>y.createElement("div",{key:T},F)):y.createElement("div",null,n))),y.createElement(ff,{actionItems:D}))),a&&h&&f)};_(ND)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var rte=_.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:le(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${vl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${vl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:vl(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"?`${vl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),nte=e=>e==="true",ate=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var p;let i=l.useCallback(()=>r(!1),[r]),s=!!((p=o==null?void 0:o.table)!=null&&p.readonly);if(t===void 0)return y.createElement(Bn,{variant:"outline",size:"medium",id:js(e),onClick:i,disabled:s},"Set boolean");let u=xt(e),d=typeof t=="string"?nte(t):t;return y.createElement(rte,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:h=>r(h.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"))},ote=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},ite=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},lte=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}`},ste=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},I3=_(Oi.Input)(({readOnly:e})=>({opacity:e?.5:1})),ute=_.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}})),cte=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var v;let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),p=!!((v=o==null?void 0:o.table)!=null&&v.readonly);l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?lte(t):""),d&&d.current&&(d.current.value=t?ste(t):""))},[t]);let h=g=>{if(!g.target.value)return r();let b=ote(g.target.value),E=new Date(t);E.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let x=E.getTime();x&&r(x),s(!!x)},m=g=>{if(!g.target.value)return r();let b=ite(g.target.value),E=new Date(t);E.setHours(b.getHours()),E.setMinutes(b.getMinutes());let x=E.getTime();x&&r(x),s(!!x)},f=xt(e);return y.createElement(ute,null,y.createElement(I3,{type:"date",max:"9999-12-31",ref:u,id:`${f}-date`,name:`${f}-date`,readOnly:p,onChange:h,onFocus:n,onBlur:a}),y.createElement(I3,{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"))},dte=_.label({display:"flex"}),pte=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},fte=_(Oi.Input)(({readOnly:e})=>({opacity:e?.5:1})),hte=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{var C;let[d,p]=l.useState(typeof t=="number"?t:""),[h,m]=l.useState(!1),[f,v]=l.useState(null),g=!!((C=u==null?void 0:u.table)!=null&&C.readonly),b=l.useCallback(w=>{p(w.target.value);let D=parseFloat(w.target.value);Number.isNaN(D)?v(new Error(`'${w.target.value}' is not a number`)):(r(D),v(null))},[r,v]),E=l.useCallback(()=>{p("0"),r(0),m(!0)},[m]),x=l.useRef(null);return l.useEffect(()=>{h&&x.current&&x.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&p(t)},[t]),t===void 0?y.createElement(Bn,{variant:"outline",size:"medium",id:js(e),onClick:E,disabled:g},"Set number"):y.createElement(dte,null,y.createElement(fte,{ref:x,id:xt(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}))},HD=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Tp=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],jD=(e,t)=>e&&t&&e.map(r=>t[r]),mte=_.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"}}}),gte=_.span({"[aria-readonly=true] &":{opacity:.5}}),vte=_.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})=>{var m;if(!t)return hm.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=Tp(r,t),[s,u]=l.useState(i),d=!!((m=o==null?void 0:o.table)!=null&&m.readonly),p=f=>{let v=f.target.value,g=[...s];g.includes(v)?g.splice(g.indexOf(v),1):g.push(v),n(jD(g,t)),u(g)};l.useEffect(()=>{u(Tp(r,t))},[r]);let h=xt(e);return y.createElement(mte,{"aria-readonly":d,isInline:a},Object.keys(t).map((f,v)=>{let g=`${h}-${v}`;return y.createElement(vte,{key:g,htmlFor:g},y.createElement("input",{type:"checkbox",disabled:d,id:g,name:g,value:f,onChange:p,checked:s==null?void 0:s.includes(f)}),y.createElement(gte,null,f))}))},yte=_.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"}}}),bte=_.span({"[aria-readonly=true] &":{opacity:.5}}),wte=_.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})=>{var d;if(!t)return hm.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=HD(r,t),s=xt(e),u=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return y.createElement(yte,{"aria-readonly":u,isInline:a},Object.keys(t).map((p,h)=>{let m=`${s}-${h}`;return y.createElement(wte,{key:m,htmlFor:m},y.createElement("input",{type:"radio",id:m,name:s,disabled:u,value:p,onChange:f=>n(t[f.currentTarget.value]),checked:p===i}),y.createElement(bte,null,p))}))},Ete={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},VD=_.select(Ete,({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}}})),UD=_.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}}})),B3="Choose option...",xte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{n(r[p.currentTarget.value])},i=HD(t,r)||B3,s=xt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(UD,null,y.createElement(CC,null),y.createElement(VD,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},B3),Object.keys(r).map(p=>y.createElement("option",{key:p,value:p},p))))},Cte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{let h=Array.from(p.currentTarget.options).filter(m=>m.selected).map(m=>m.value);n(jD(h,r))},i=Tp(t,r),s=xt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(UD,null,y.createElement(VD,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(p=>y.createElement("option",{key:p,value:p},p))))},z3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(Cte,{...e}):y.createElement(xte,{...e}):(hm.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},Dte=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,Ste={check:T3,"inline-check":T3,radio:R3,"inline-radio":R3,select:z3,"multi-select":z3},Yn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?Dte(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=Ste[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Ate="Error",kte="Object",_te="Array",Fte="String",Ite="Number",Tte="Boolean",Rte="Date",Bte="Null",zte="Undefined",$te="Function",Ote="Symbol",qD="ADD_DELTA_TYPE",WD="REMOVE_DELTA_TYPE",GD="UPDATE_DELTA_TYPE",gm="value",Lte="key";function fn(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 KD(e,t){let r=fn(e),n=fn(t);return(r==="Function"||n==="Function")&&n!==r}var vm=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(gm,o,i),p=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let m=a(Lte,o,i);h=l.cloneElement(m,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,p,u,s)}};vm.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var YD=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:WD};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:qD,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:GD,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:E,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:T,ul:R,addForm:O}=p(e,t,r,n,h),z=d(e,t,r,n,h),L=l.cloneElement(x,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),$=l.cloneElement(E,{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:T},"["),!a&&L,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Xu,{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:E,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:O},y.createElement(vm,{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:T},"]"),!z&&$)}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)}};YD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var ZD=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(()=>{KD(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,E=null,x=s(e,i,n,a,u);if(r&&!x){let C=m(gm,v,a,e,i,u),w=l.cloneElement(p,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(C,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:g.editForm},S," ",D,w),E=null}else{b=y.createElement("span",{className:"rejt-value",style:g.value,onClick:x?null:this.handleEditMode},t);let C=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});E=x?null:C}return y.createElement("li",{className:"rejt-function-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),b,E)}};ZD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Xu=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:E,beforeRemoveAction:x,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=fn(e);switch(k){case Ate:return y.createElement(Rp,{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:E,beforeRemoveAction:x,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case kte:return y.createElement(Rp,{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:E,beforeRemoveAction:x,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case _te:return y.createElement(YD,{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:E,beforeRemoveAction:x,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case Fte:return y.createElement(xr,{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 Ite:return y.createElement(xr,{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 Tte:return y.createElement(xr,{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 Rte:return y.createElement(xr,{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 Bte:return y.createElement(xr,{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 zte:return y.createElement(xr,{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 $te:return y.createElement(ZD,{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 Ote:return y.createElement(xr,{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}}};Xu.defaultProps={keyPath:[],deep:0};var Rp=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:qD,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:WD};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:GD,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:E,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:T,ul:R,delimiter:O}=p(e,t,r,n,h),z=Object.getOwnPropertyNames(t),L=d(e,t,r,n,h),$=l.cloneElement(x,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(E,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(G=>y.createElement(Xu,{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:E,plusMenuElement:x,beforeRemoveAction:C,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),!L&&o&&y.createElement("div",{className:"rejt-add-form",style:T},y.createElement(vm,{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},"}"),!L&&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)}};Rp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var xr=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(()=>{KD(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),E=r&&!b,x=m(gm,v,a,e,i,u),C=l.cloneElement(p,{onClick:this.handleEdit}),w=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(x,{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," : "),E?y.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",w,C):y.createElement("span",{className:"rejt-value",style:g.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!E&&S)}};xr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};function Mte(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Pte={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Nte={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Hte={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},JD=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:E,fallback:x=null}=this.props,C=fn(e),w=a;fn(a)==="Boolean"&&(w=()=>a);let D=d;d&&fn(d)!=="Function"&&(D=()=>d);let S=p;return p&&fn(p)!=="Function"&&(S=()=>p),C==="Object"||C==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Xu,{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:E})):x}};JD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return Pte;case"Array":return Nte;default:return Hte}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>Mte(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:jte}=tt,Vte=_.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}})),Bd=_.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})),Ute=_(SM)(({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}})),qte=_(AM)(({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}})),$3=_.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}`}})),Wte=_(vn)(({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}})),Gte=_(Oi.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"}})),Kte={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Yte=e=>{e.currentTarget.dispatchEvent(new jte.KeyboardEvent("keydown",Kte))},Zte=e=>{e.currentTarget.select()},Jte=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),O3=({name:e,value:t,onChange:r,argType:n})=>{var C;let a=vb(),o=l.useMemo(()=>t&&gJ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,p]=l.useState(null),h=!!((C=n==null?void 0:n.table)!=null&&C.readonly),m=l.useCallback(w=>{try{w&&r(JSON.parse(w)),p(void 0)}catch(D){p(D)}},[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(Bn,{disabled:h,id:js(e),onClick:g},"Set object");let E=y.createElement(Gte,{ref:b,id:xt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:w=>m(w.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:d?"error":null,readOnly:h}),x=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return y.createElement(Vte,{"aria-readonly":h},x&&y.createElement(Wte,{onClick:w=>{w.preventDefault(),u(D=>!D)}},s?y.createElement(CM,null):y.createElement(xM,null),y.createElement("span",null,"RAW")),s?E:y.createElement(JD,{readOnly:h||!x,isCollapsed:x?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:Jte(a),cancelButtonElement:y.createElement(Bd,{type:"button"},"Cancel"),editButtonElement:y.createElement(Bd,{type:"submit"},"Save"),addButtonElement:y.createElement(Bd,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement(Ute,null),minusMenuElement:y.createElement(qte,null),inputElement:(w,D,S,A)=>A?y.createElement($3,{onFocus:Zte,onBlur:Yte}):y.createElement($3,null),fallback:E}))},Xte=_.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:tt}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:yee,once:bee,logger:hm}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:A3,composeConfigs:xae,Preview:Cae,DocsContext:Dae}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:k3,UPDATE_STORY_ARGS:wee,RESET_STORY_ARGS:Eee,GLOBALS_UPDATED:_3,NAVIGATE_URL:xee}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var Cee=Oa({"../../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}}}),Dee=Oa({"../../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(L,$){if(v(L)>D+r.headingsOffset+10){var M=$===0?$:$-1;return A=S[M],!0}else if($===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 T=i.querySelectorAll("."+r.linkClass);n.call(T,function(L){g(L,L.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(L){g(L,L.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var O=F&&F.parentNode;O&&O.className.indexOf(r.activeListItemClass)===-1&&(O.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(L){L.className.indexOf(r.isCollapsedClass)===-1&&(L.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),E(F&&F.parentNode.parentNode)}}function E(w){return w&&w.className.indexOf(r.collapsibleClass)!==-1&&w.className.indexOf(r.isCollapsedClass)!==-1?(g(w,w.className.replace(u+r.isCollapsedClass,"")),E(w.parentNode.parentNode)):w}function x(w){var D=w.target||w.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function C(){s=!0}return{enableTocAnimation:C,disableTocAnimation:x,render:p,updateToc:b}}}}),See=Oa({"../../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),E=b?b.headingLevel:0,x=v-E;x>0&&(b=a(g),!(b&&v===b.headingLevel));)b&&b.children!==void 0&&(g=b.children),x--;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}}}}),Aee=Oa({"../../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)}}}}),kee=Oa({"../../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 x={},C=0;C({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:le(.3,e.color.defaultText),fontSize:e.typography.size.s2})),OD=e=>y.createElement(Fee,{...e,className:"docblock-emptyblock sb-unstyled"}),Iee=_(Rh)(({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"}})),Tee=_.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"})),wl=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Hd}`]:{margin:0}})),Ree=()=>y.createElement(Tee,null,y.createElement(wl,null),y.createElement(wl,{style:{width:"80%"}}),y.createElement(wl,{style:{width:"30%"}}),y.createElement(wl,{style:{width:"80%"}})),LD=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=vb();if(e)return y.createElement(Ree,null);if(t)return y.createElement(OD,null,t);let u=y.createElement(Iee,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?Pd.dark:Pd.light;return y.createElement(yb,{theme:Nd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},ge=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,mm=600,Bee=_.h1(ce,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${mm}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),zee=_.h2(ce,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${mm}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:le(.25,e.color.defaultText)})),$ee=_.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"?le(.1,e.color.defaultText):le(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ge("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}},[ge("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}},[ge("div")]:t,[ge("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}},[ge("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ge("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ge("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ge("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ge("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ge("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ge("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ge("img")]:{maxWidth:"100%"},[ge("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ge("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ge("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ge("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"}},[ge("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"}}},[ge("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}},[ge("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),Oee=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${mm}px)`]:{}})),Lee=({children:e,toc:t})=>y.createElement(Oee,{className:"sbdocs sbdocs-wrapper"},y.createElement($ee,{className:"sbdocs sbdocs-content"},e),t),Ju=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}`}),{window:Mee}=tt,Pee=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=Mee.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})}},MD=l.createContext({scale:1}),{PREVIEW_URL:Nee}=tt,Hee=Nee||"iframe.html",Ip=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,jee=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(iO,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${Ip(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(PD,null),y.createElement("div",{ref:t,id:`${Ip(e)}-inner`,"data-name":i.name}))},Vee=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(MD.Consumer,null,({scale:r})=>y.createElement(Pee,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:FL(Hee,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Uee=_.strong(({theme:e})=>({color:e.color.orange})),qee=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(Uee,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:Ip(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(jee,{...e}):y.createElement(Vee,{...e}))},PD=()=>y.createElement(_L,null),Wee=_(jh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Gee=_.div({display:"flex",alignItems:"center",gap:4}),Kee=_.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`})),Yee=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(Wee,{...o},y.createElement(Gee,{key:"left"},e?[1,2,3].map(i=>y.createElement(Kee,{key:i})):y.createElement(y.Fragment,null,y.createElement(vn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(bM,null)),y.createElement(vn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(wM,null)),y.createElement(vn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(EM,null))))),Zee=_.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)`}}:{}),F3=_(LD)(({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)":zt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":zt(.05,e.background.content)}})),Jee=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Ju(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),Xee=(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(F3,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(F3,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function Qee(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var ete=_(Yee)({position:"absolute",top:0,left:0,right:0,height:40}),tte=_.div({overflow:"hidden",position:"relative"}),ND=({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}=Xee(a,h,m),[g,b]=l.useState(1),E=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),x=a?[v]:[],[C,w]=l.useState(s?[...s]:[]),D=[...x,...C],{window:S}=tt,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:T}=await Lp(()=>import("./index-B7_HdyTu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);T()},[]),k=F=>{let T=S.getSelection();T&&T.type==="Range"||(F.preventDefault(),C.filter(R=>R.title==="Copied").length===0&&A(f.props.code).then(()=>{w([...C,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>w(C.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(Jee,{withSource:a,withToolbar:o,...p,className:E.join(" ")},o&&y.createElement(ete,{isLoading:e,border:!0,zoom:F=>b(g*F),resetZoom:()=>b(1),storyId:Qee(n),baseUrl:"./iframe.html"}),y.createElement(MD.Provider,{value:{scale:g}},y.createElement(tte,{className:"docs-story",onCopyCapture:a&&k},y.createElement(Zee,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(X$.Element,{scale:g},Array.isArray(n)?n.map((F,T)=>y.createElement("div",{key:T},F)):y.createElement("div",null,n))),y.createElement(ff,{actionItems:D}))),a&&h&&f)};_(ND)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var rte=_.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:le(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${vl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${vl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:vl(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"?`${vl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),nte=e=>e==="true",ate=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var p;let i=l.useCallback(()=>r(!1),[r]),s=!!((p=o==null?void 0:o.table)!=null&&p.readonly);if(t===void 0)return y.createElement(Bn,{variant:"outline",size:"medium",id:js(e),onClick:i,disabled:s},"Set boolean");let u=xt(e),d=typeof t=="string"?nte(t):t;return y.createElement(rte,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:h=>r(h.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"))},ote=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},ite=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},lte=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}`},ste=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},I3=_(Oi.Input)(({readOnly:e})=>({opacity:e?.5:1})),ute=_.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}})),cte=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var v;let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),p=!!((v=o==null?void 0:o.table)!=null&&v.readonly);l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?lte(t):""),d&&d.current&&(d.current.value=t?ste(t):""))},[t]);let h=g=>{if(!g.target.value)return r();let b=ote(g.target.value),E=new Date(t);E.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let x=E.getTime();x&&r(x),s(!!x)},m=g=>{if(!g.target.value)return r();let b=ite(g.target.value),E=new Date(t);E.setHours(b.getHours()),E.setMinutes(b.getMinutes());let x=E.getTime();x&&r(x),s(!!x)},f=xt(e);return y.createElement(ute,null,y.createElement(I3,{type:"date",max:"9999-12-31",ref:u,id:`${f}-date`,name:`${f}-date`,readOnly:p,onChange:h,onFocus:n,onBlur:a}),y.createElement(I3,{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"))},dte=_.label({display:"flex"}),pte=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},fte=_(Oi.Input)(({readOnly:e})=>({opacity:e?.5:1})),hte=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{var C;let[d,p]=l.useState(typeof t=="number"?t:""),[h,m]=l.useState(!1),[f,v]=l.useState(null),g=!!((C=u==null?void 0:u.table)!=null&&C.readonly),b=l.useCallback(w=>{p(w.target.value);let D=parseFloat(w.target.value);Number.isNaN(D)?v(new Error(`'${w.target.value}' is not a number`)):(r(D),v(null))},[r,v]),E=l.useCallback(()=>{p("0"),r(0),m(!0)},[m]),x=l.useRef(null);return l.useEffect(()=>{h&&x.current&&x.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&p(t)},[t]),t===void 0?y.createElement(Bn,{variant:"outline",size:"medium",id:js(e),onClick:E,disabled:g},"Set number"):y.createElement(dte,null,y.createElement(fte,{ref:x,id:xt(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}))},HD=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Tp=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],jD=(e,t)=>e&&t&&e.map(r=>t[r]),mte=_.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"}}}),gte=_.span({"[aria-readonly=true] &":{opacity:.5}}),vte=_.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})=>{var m;if(!t)return hm.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=Tp(r,t),[s,u]=l.useState(i),d=!!((m=o==null?void 0:o.table)!=null&&m.readonly),p=f=>{let v=f.target.value,g=[...s];g.includes(v)?g.splice(g.indexOf(v),1):g.push(v),n(jD(g,t)),u(g)};l.useEffect(()=>{u(Tp(r,t))},[r]);let h=xt(e);return y.createElement(mte,{"aria-readonly":d,isInline:a},Object.keys(t).map((f,v)=>{let g=`${h}-${v}`;return y.createElement(vte,{key:g,htmlFor:g},y.createElement("input",{type:"checkbox",disabled:d,id:g,name:g,value:f,onChange:p,checked:s==null?void 0:s.includes(f)}),y.createElement(gte,null,f))}))},yte=_.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"}}}),bte=_.span({"[aria-readonly=true] &":{opacity:.5}}),wte=_.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})=>{var d;if(!t)return hm.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=HD(r,t),s=xt(e),u=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return y.createElement(yte,{"aria-readonly":u,isInline:a},Object.keys(t).map((p,h)=>{let m=`${s}-${h}`;return y.createElement(wte,{key:m,htmlFor:m},y.createElement("input",{type:"radio",id:m,name:s,disabled:u,value:p,onChange:f=>n(t[f.currentTarget.value]),checked:p===i}),y.createElement(bte,null,p))}))},Ete={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},VD=_.select(Ete,({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}}})),UD=_.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}}})),B3="Choose option...",xte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{n(r[p.currentTarget.value])},i=HD(t,r)||B3,s=xt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(UD,null,y.createElement(CC,null),y.createElement(VD,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},B3),Object.keys(r).map(p=>y.createElement("option",{key:p,value:p},p))))},Cte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{let h=Array.from(p.currentTarget.options).filter(m=>m.selected).map(m=>m.value);n(jD(h,r))},i=Tp(t,r),s=xt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(UD,null,y.createElement(VD,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(p=>y.createElement("option",{key:p,value:p},p))))},z3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(Cte,{...e}):y.createElement(xte,{...e}):(hm.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},Dte=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,Ste={check:T3,"inline-check":T3,radio:R3,"inline-radio":R3,select:z3,"multi-select":z3},Yn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?Dte(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=Ste[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Ate="Error",kte="Object",_te="Array",Fte="String",Ite="Number",Tte="Boolean",Rte="Date",Bte="Null",zte="Undefined",$te="Function",Ote="Symbol",qD="ADD_DELTA_TYPE",WD="REMOVE_DELTA_TYPE",GD="UPDATE_DELTA_TYPE",gm="value",Lte="key";function fn(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 KD(e,t){let r=fn(e),n=fn(t);return(r==="Function"||n==="Function")&&n!==r}var vm=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(gm,o,i),p=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let m=a(Lte,o,i);h=l.cloneElement(m,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,p,u,s)}};vm.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var YD=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:WD};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:qD,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:GD,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:E,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:T,ul:R,addForm:O}=p(e,t,r,n,h),z=d(e,t,r,n,h),L=l.cloneElement(x,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),$=l.cloneElement(E,{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:T},"["),!a&&L,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Xu,{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:E,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:O},y.createElement(vm,{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:T},"]"),!z&&$)}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)}};YD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var ZD=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(()=>{KD(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,E=null,x=s(e,i,n,a,u);if(r&&!x){let C=m(gm,v,a,e,i,u),w=l.cloneElement(p,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(C,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:g.editForm},S," ",D,w),E=null}else{b=y.createElement("span",{className:"rejt-value",style:g.value,onClick:x?null:this.handleEditMode},t);let C=l.cloneElement(f,{onClick:o,className:"rejt-minus-menu",style:g.minus});E=x?null:C}return y.createElement("li",{className:"rejt-function-value-node",style:g.li},y.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),b,E)}};ZD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Xu=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:E,beforeRemoveAction:x,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=fn(e);switch(k){case Ate:return y.createElement(Rp,{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:E,beforeRemoveAction:x,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case kte:return y.createElement(Rp,{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:E,beforeRemoveAction:x,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case _te:return y.createElement(YD,{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:E,beforeRemoveAction:x,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case Fte:return y.createElement(xr,{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 Ite:return y.createElement(xr,{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 Tte:return y.createElement(xr,{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 Rte:return y.createElement(xr,{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 Bte:return y.createElement(xr,{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 zte:return y.createElement(xr,{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 $te:return y.createElement(ZD,{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 Ote:return y.createElement(xr,{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}}};Xu.defaultProps={keyPath:[],deep:0};var Rp=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:qD,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:WD};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:GD,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:E,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:T,ul:R,delimiter:O}=p(e,t,r,n,h),z=Object.getOwnPropertyNames(t),L=d(e,t,r,n,h),$=l.cloneElement(x,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(E,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(G=>y.createElement(Xu,{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:E,plusMenuElement:x,beforeRemoveAction:C,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),!L&&o&&y.createElement("div",{className:"rejt-add-form",style:T},y.createElement(vm,{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},"}"),!L&&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)}};Rp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var xr=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(()=>{KD(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),E=r&&!b,x=m(gm,v,a,e,i,u),C=l.cloneElement(p,{onClick:this.handleEdit}),w=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(x,{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," : "),E?y.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",w,C):y.createElement("span",{className:"rejt-value",style:g.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!E&&S)}};xr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};function Mte(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Pte={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Nte={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Hte={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},JD=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:E,fallback:x=null}=this.props,C=fn(e),w=a;fn(a)==="Boolean"&&(w=()=>a);let D=d;d&&fn(d)!=="Function"&&(D=()=>d);let S=p;return p&&fn(p)!=="Function"&&(S=()=>p),C==="Object"||C==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Xu,{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:E})):x}};JD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return Pte;case"Array":return Nte;default:return Hte}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>Mte(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:jte}=tt,Vte=_.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}})),Bd=_.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})),Ute=_(SM)(({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}})),qte=_(AM)(({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}})),$3=_.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}`}})),Wte=_(vn)(({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}})),Gte=_(Oi.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"}})),Kte={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Yte=e=>{e.currentTarget.dispatchEvent(new jte.KeyboardEvent("keydown",Kte))},Zte=e=>{e.currentTarget.select()},Jte=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),O3=({name:e,value:t,onChange:r,argType:n})=>{var C;let a=vb(),o=l.useMemo(()=>t&&gJ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,p]=l.useState(null),h=!!((C=n==null?void 0:n.table)!=null&&C.readonly),m=l.useCallback(w=>{try{w&&r(JSON.parse(w)),p(void 0)}catch(D){p(D)}},[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(Bn,{disabled:h,id:js(e),onClick:g},"Set object");let E=y.createElement(Gte,{ref:b,id:xt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:w=>m(w.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:d?"error":null,readOnly:h}),x=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return y.createElement(Vte,{"aria-readonly":h},x&&y.createElement(Wte,{onClick:w=>{w.preventDefault(),u(D=>!D)}},s?y.createElement(CM,null):y.createElement(xM,null),y.createElement("span",null,"RAW")),s?E:y.createElement(JD,{readOnly:h||!x,isCollapsed:x?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:Jte(a),cancelButtonElement:y.createElement(Bd,{type:"button"},"Cancel"),editButtonElement:y.createElement(Bd,{type:"submit"},"Save"),addButtonElement:y.createElement(Bd,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement(Ute,null),minusMenuElement:y.createElement(qte,null),inputElement:(w,D,S,A)=>A?y.createElement($3,{onFocus:Zte,onBlur:Yte}):y.createElement($3,null),fallback:E}))},Xte=_.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}%, ${zt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${zt(.02,e.input.background)} 100%)`:`linear-gradient(to right, @@ -584,7 +584,7 @@ ${t}`);let r=t.match(rO);if(!r)return y.createElement(l.Fragment,null,t);let[,n, ${zt(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${an(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${an(.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 ${Ot(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),XD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Qte=_(XD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),ere=_.div({display:"flex",alignItems:"center",width:"100%"});function tre(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 rre=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{var f;let d=v=>{r(pte(v.target.value))},p=t!==void 0,h=l.useMemo(()=>tre(o),[o]),m=!!((f=u==null?void 0:u.table)!=null&&f.readonly);return y.createElement(ere,{"aria-readonly":m},y.createElement(XD,null,n),y.createElement(Xte,{id:xt(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(Qte,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},nre=_.label({display:"flex"}),are=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),ore=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},u=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),h=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Bn,{variant:"outline",size:"medium",disabled:u,id:js(e),onClick:h},"Set string");let m=typeof t=="string";return y.createElement(nre,null,y.createElement(Oi.Textarea,{id:xt(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(are,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},ire=_(Oi.Input)({padding:10});function lre(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var sre=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let o=l.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(p),lre(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(ire,{ref:o,id:xt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},ure=l.lazy(()=>Lp(()=>import("./Color-ERTF36HU-BfGofrk2.js"),__vite__mapDeps([9,2,3,1,4,5,6,7,8]),import.meta.url)),cre=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(ure,{...e})),dre={array:O3,object:O3,boolean:ate,color:cre,date:cte,number:hte,check:Yn,"inline-check":Yn,radio:Yn,"inline-radio":Yn,select:Yn,"multi-select":Yn,range:rre,text:ore,file:sre},L3=()=>y.createElement(y.Fragment,null,"-"),pre=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;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(b=>(d({value:b}),r({[a]:b}),b),[r,a]),h=l.useCallback(()=>s(!1),[]),m=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&b?y.createElement(ma,{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=dre[o.type]||L3;return y.createElement(v,{...f,...o,controlType:o.type})},fre=_.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:jr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),hre=({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(fre,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)))))},Bp=8,M3=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),mre=_.span(jr,({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}})),gre=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),vre=_.div(jr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),yre=_.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"}})),bre=_(IM)({marginLeft:4}),wre=_(CC)({marginLeft:4}),Ere=()=>y.createElement("span",null,"-"),QD=({text:e,simple:t})=>y.createElement(mre,{simple:t},e),xre=SD(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),Cre=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return XJ(t)},P3=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Bp)),r.map(n=>y.createElement(QD,{key:n,text:n===""?'""':n}))},Dre=({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(QD,{text:u});let d=Cre(u),p=d.length;return p>Bp?y.createElement(M3,{isExpanded:i},P3(d,i),y.createElement(gre,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-Bp} more...`)):y.createElement(M3,null,P3(d))}return y.createElement(RO,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(yre,{width:xre(n)},y.createElement(Rh,{language:"jsx",format:!1},n))},y.createElement(vre,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(bre,null):y.createElement(wre,null)))},zd=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(Ere,null):y.createElement(Dre,{value:e,initialExpandedArgs:t}),Sre=_.span({fontWeight:"bold"}),Are=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),kre=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...jr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),_re=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?le(.1,e.color.defaultText):le(.2,e.color.defaultText),marginTop:t?4:0})),Fre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?le(.1,e.color.defaultText):le(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Ire=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Tre=e=>e&&{summary:typeof e=="string"?e:e.name},El=e=>{var g;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||Tre(n.type),m=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(Ire,{expandable:i},y.createElement(Sre,null,u),f?y.createElement(Are,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(kre,null,y.createElement(wD,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(Fre,{hasDescription:v},y.createElement(zd,{value:h,initialExpandedArgs:s})),y.createElement(hre,{tags:p.jsDocTags})):y.createElement(_re,{hasDescription:v},y.createElement(zd,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(zd,{value:m,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(pre,{...e,isHovered:t})):null)},Rre=_.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"})),Bre=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),zre=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),$re=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Rre,{inAddonPanel:e},y.createElement(fC,{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(Bre,null,e&&y.createElement(y.Fragment,null,y.createElement(ma,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(DM,null)," Watch 5m video"),y.createElement(zre,null),y.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(xp,null)," Read docs")),!e&&y.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(xp,null)," Learn how to set that up"))}))},Ore=_(_M)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?le(.25,e.color.defaultText):le(.3,e.color.defaultText),border:"none",display:"inline-block"})),Lre=_(FM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?le(.25,e.color.defaultText):le(.3,e.color.defaultText),border:"none",display:"inline-block"})),Mre=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Pre=_.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"?le(.4,e.color.defaultText):le(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Nre=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Hre=_.td(()=>({position:"relative"})),jre=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${an(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),N3=_.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"})),$d=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Nre:Pre,u=(r==null?void 0: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(jre,{title:p},y.createElement(s,{colSpan:1},y.createElement(N3,{onClick:h=>i(!o),tabIndex:0},p),y.createElement(Mre,null,o?y.createElement(Ore,null):y.createElement(Lre,null),t)),y.createElement(Hre,{colSpan:a-1},y.createElement(N3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},xl=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Fe=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ve=_.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})),Ie=[2,4,2,2],Vre=()=>y.createElement(y.Fragment,null,y.createElement(xl,null,y.createElement(Fe,{numColumn:Ie[0]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[1]},y.createElement(ve,{width:"30%"})),y.createElement(Fe,{numColumn:Ie[2]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[3]},y.createElement(ve,{width:"60%"}))),y.createElement(xl,null,y.createElement(Fe,{numColumn:Ie[0]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[1]},y.createElement(ve,{width:"80%"}),y.createElement(ve,{width:"30%"})),y.createElement(Fe,{numColumn:Ie[2]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[3]},y.createElement(ve,{width:"60%"}))),y.createElement(xl,null,y.createElement(Fe,{numColumn:Ie[0]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[1]},y.createElement(ve,{width:"80%"}),y.createElement(ve,{width:"30%"})),y.createElement(Fe,{numColumn:Ie[2]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[3]},y.createElement(ve,{width:"60%"}))),y.createElement(xl,null,y.createElement(Fe,{numColumn:Ie[0]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[1]},y.createElement(ve,{width:"80%"}),y.createElement(ve,{width:"30%"})),y.createElement(Fe,{numColumn:Ie[2]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[3]},y.createElement(ve,{width:"60%"})))),Ure=_.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"?le(.25,e.color.defaultText):le(.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}}}}})),qre=_(vn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),Wre=_.span({display:"flex",justifyContent:"space-between"}),Gre={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},Kre=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=(i==null?void 0: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=Gre[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)}}),{})}},Yre=(e,t,r)=>{try{return fS(e,t,r)}catch(n){return bee.warn(n.message),!1}},zp=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:x}=e;return y.createElement(OD,null,x," ",y.createElement(ma,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(xp,null)," Read the docs"))}if(s)return y.createElement(Vre,null);let{rows:u,args:d,globals:p}="rows"in e&&e,h=Kre(FG(u,x=>{var C;return!((C=x==null?void 0:x.table)!=null&&C.disable)&&Yre(x,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($re,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(h.sections).length>0,E={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(Bx,null,y.createElement(Ure,{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(Wre,null,"Control"," ",!s&&r&&y.createElement(qre,{onClick:()=>r(),title:"Reset controls"},y.createElement(TM,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(x=>y.createElement(El,{key:x.key,row:x,arg:d&&d[x.key],...E})),Object.entries(h.ungroupedSubsections).map(([x,C])=>y.createElement($d,{key:x,label:x,level:"subsection",colSpan:g},C.map(w=>y.createElement(El,{key:w.key,row:w,arg:d&&d[w.key],expandable:b,...E})))),Object.entries(h.sections).map(([x,C])=>y.createElement($d,{key:x,label:x,level:"section",colSpan:g},C.ungrouped.map(w=>y.createElement(El,{key:w.key,row:w,arg:d&&d[w.key],...E})),Object.entries(C.subsections).map(([w,D])=>y.createElement($d,{key:w,label:w,level:"subsection",colSpan:g},D.map(S=>y.createElement(El,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...E})))))))))},Zre=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(zp,{...r[0][1],...t}):y.createElement(hL,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(zp,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?le(.4,e.color.defaultText):le(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(ce,({theme:e})=>({...Ju(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"?le(.2,e.color.defaultText):le(.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"?le(.4,e.color.defaultText):le(.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})=>({...Ju(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"?le(.4,e.color.defaultText):le(.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})=>({...Ju(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 Jre=e=>`anchor--${e}`,Xre=({storyId:e,children:t})=>y.createElement("div",{id:Jre(e),className:"sb-anchor"},t);tt&&tt.__DOCS_CONTEXT__===void 0&&(tt.__DOCS_CONTEXT__=l.createContext(null),tt.__DOCS_CONTEXT__.displayName="DocsContext");var tr=tt?tt.__DOCS_CONTEXT__:l.createContext(null),Ln=(e,t)=>l.useContext(tr).resolveOf(e,t),Qre=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),ene=e=>{if(e)return typeof e=="string"?e.includes("-")?Qre(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function tne(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function eS(e){return vee(e,{allowFunction:!1})}var tS=l.createContext({sources:{}}),rS="--unknown--",rne=({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?eS(d):rS;n(f=>({...f,[u]:{...f[u],[m]:{code:p,format:h}}}))};return t.on(Dm,a),()=>t.off(Dm,a)},[]),y.createElement(tS.Provider,{value:{sources:r}},e)},nne=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[eS(t)])||(a==null?void 0:a[rS])||{code:""}},ane=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:a}=t.parameters,o=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||o.type||tc.AUTO;if(o.code!==void 0)return o.code;let s=i===tc.DYNAMIC||i===tc.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},one=(e,t,r)=>{var f,v,g,b;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=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.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=nne(n.id,h,r);return s=m.format??((b=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:b.format)??!1,{code:ane({snippet:m.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function ine(e,t){let r=lne([e],t);return r&&r[0]}function lne(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 sne=(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},une=(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}},cne=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(tr),r=sne(e,t),n=ine(r,t);if(!n)return y.createElement(PD,null);let a=une(e,n,t);return a?y.createElement(qee,{...a}):null},dne=e=>{var m,f,v,g,b,E,x,C,w,D;let t=l.useContext(tr),r=l.useContext(tS),{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}=Ln(n||"story",["story"]),i=one({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((f=(m=o.parameters.docs)==null?void 0:m.canvas)==null?void 0:f.layout)??"padded",u=e.withToolbar??((g=(v=o.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((E=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:E.additionalActions),p=e.sourceState??((C=(x=o.parameters.docs)==null?void 0:x.canvas)==null?void 0:C.sourceState)??"hidden",h=e.className??((D=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:D.className);return y.createElement(ND,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(cne,{of:n||o.moduleExport,meta:e.meta,...e.story}))},pne=(e,t)=>{let r=fne(e,t);if(!r)throw new Error("No result when story was defined");return r},fne=(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(k3,u),()=>t.channel.off(k3,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(wee,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(Eee,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]},hne=(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(_3,o),()=>t.channel.off(_3,o)},[t.channel]),[n]};function mne(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var gne=e=>{var w;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(tr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??u.include,p=e.exclude??u.exclude,h=e.sort??u.sort,[m,f,v]=pne(n,r),[g]=hne(n,r),b=A3(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(m).length>0?y.createElement(zp,{rows:b,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v}):null;let E=ene(i),x=Object.fromEntries(Object.entries(s).map(([D,S])=>[D,{rows:A3(mne(S,a),d,p),sort:h}])),C={[E]:{rows:b,sort:h},...x};return y.createElement(Zre,{tabs:C,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v})},{document:nS}=tt,aS=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(zx,null,t);let n=e&&e.split("-");return y.createElement(LD,{language:n&&n[1]||"text",format:!1,code:t,...r})};function ym(e,t){e.channel.emit(xee,t)}var $p=TL.a,vne=({hash:e,children:t})=>{let r=l.useContext(tr);return y.createElement($p,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);nS.getElementById(a)&&ym(r,e)}},t)},oS=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(tr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement($p,{...e}):t.startsWith("#")?y.createElement(vne,{hash:t},n):y.createElement($p,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),ym(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},iS=["h1","h2","h3","h4","h5","h6"],yne=iS.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),bne=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),wne=({as:e,id:t,children:r,...n})=>{let a=l.useContext(tr),o=yne[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(bne,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{nS.getElementById(t)&&ym(a,i)}},y.createElement(kM,null)),r)},bm=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(wne,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...ue(s,t)})},lS=iS.reduce((e,t)=>({...e,[t]:r=>y.createElement(bm,{as:t,...r})}),{}),Ene=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(hS`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${an(.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 ${Ot(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),XD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Qte=_(XD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),ere=_.div({display:"flex",alignItems:"center",width:"100%"});function tre(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 rre=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{var f;let d=v=>{r(pte(v.target.value))},p=t!==void 0,h=l.useMemo(()=>tre(o),[o]),m=!!((f=u==null?void 0:u.table)!=null&&f.readonly);return y.createElement(ere,{"aria-readonly":m},y.createElement(XD,null,n),y.createElement(Xte,{id:xt(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(Qte,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},nre=_.label({display:"flex"}),are=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),ore=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var f;let s=v=>{r(v.target.value)},u=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[d,p]=l.useState(!1),h=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return y.createElement(Bn,{variant:"outline",size:"medium",disabled:u,id:js(e),onClick:h},"Set string");let m=typeof t=="string";return y.createElement(nre,null,y.createElement(Oi.Textarea,{id:xt(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(are,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},ire=_(Oi.Input)({padding:10});function lre(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var sre=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let o=l.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(p),lre(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(ire,{ref:o,id:xt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},ure=l.lazy(()=>Lp(()=>import("./Color-ERTF36HU-C7bI4S9u.js"),__vite__mapDeps([9,2,3,1,4,5,6,7,8]),import.meta.url)),cre=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(ure,{...e})),dre={array:O3,object:O3,boolean:ate,color:cre,date:cte,number:hte,check:Yn,"inline-check":Yn,radio:Yn,"inline-radio":Yn,select:Yn,"multi-select":Yn,range:rre,text:ore,file:sre},L3=()=>y.createElement(y.Fragment,null,"-"),pre=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;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(b=>(d({value:b}),r({[a]:b}),b),[r,a]),h=l.useCallback(()=>s(!1),[]),m=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&b?y.createElement(ma,{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=dre[o.type]||L3;return y.createElement(v,{...f,...o,controlType:o.type})},fre=_.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:jr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),hre=({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(fre,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)))))},Bp=8,M3=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),mre=_.span(jr,({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}})),gre=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),vre=_.div(jr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),yre=_.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"}})),bre=_(IM)({marginLeft:4}),wre=_(CC)({marginLeft:4}),Ere=()=>y.createElement("span",null,"-"),QD=({text:e,simple:t})=>y.createElement(mre,{simple:t},e),xre=SD(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),Cre=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return XJ(t)},P3=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Bp)),r.map(n=>y.createElement(QD,{key:n,text:n===""?'""':n}))},Dre=({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(QD,{text:u});let d=Cre(u),p=d.length;return p>Bp?y.createElement(M3,{isExpanded:i},P3(d,i),y.createElement(gre,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-Bp} more...`)):y.createElement(M3,null,P3(d))}return y.createElement(RO,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(yre,{width:xre(n)},y.createElement(Rh,{language:"jsx",format:!1},n))},y.createElement(vre,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(bre,null):y.createElement(wre,null)))},zd=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(Ere,null):y.createElement(Dre,{value:e,initialExpandedArgs:t}),Sre=_.span({fontWeight:"bold"}),Are=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),kre=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...jr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),_re=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?le(.1,e.color.defaultText):le(.2,e.color.defaultText),marginTop:t?4:0})),Fre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?le(.1,e.color.defaultText):le(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Ire=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Tre=e=>e&&{summary:typeof e=="string"?e:e.name},El=e=>{var g;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||Tre(n.type),m=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(Ire,{expandable:i},y.createElement(Sre,null,u),f?y.createElement(Are,{title:"Required"},"*"):null),o?null:y.createElement("td",null,v&&y.createElement(kre,null,y.createElement(wD,null,d)),p.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(Fre,{hasDescription:v},y.createElement(zd,{value:h,initialExpandedArgs:s})),y.createElement(hre,{tags:p.jsDocTags})):y.createElement(_re,{hasDescription:v},y.createElement(zd,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(zd,{value:m,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(pre,{...e,isHovered:t})):null)},Rre=_.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"})),Bre=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),zre=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),$re=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Rre,{inAddonPanel:e},y.createElement(fC,{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(Bre,null,e&&y.createElement(y.Fragment,null,y.createElement(ma,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(DM,null)," Watch 5m video"),y.createElement(zre,null),y.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(xp,null)," Read docs")),!e&&y.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(xp,null)," Learn how to set that up"))}))},Ore=_(_M)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?le(.25,e.color.defaultText):le(.3,e.color.defaultText),border:"none",display:"inline-block"})),Lre=_(FM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?le(.25,e.color.defaultText):le(.3,e.color.defaultText),border:"none",display:"inline-block"})),Mre=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Pre=_.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"?le(.4,e.color.defaultText):le(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Nre=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Hre=_.td(()=>({position:"relative"})),jre=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${an(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),N3=_.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"})),$d=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Nre:Pre,u=(r==null?void 0: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(jre,{title:p},y.createElement(s,{colSpan:1},y.createElement(N3,{onClick:h=>i(!o),tabIndex:0},p),y.createElement(Mre,null,o?y.createElement(Ore,null):y.createElement(Lre,null),t)),y.createElement(Hre,{colSpan:a-1},y.createElement(N3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},xl=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Fe=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ve=_.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})),Ie=[2,4,2,2],Vre=()=>y.createElement(y.Fragment,null,y.createElement(xl,null,y.createElement(Fe,{numColumn:Ie[0]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[1]},y.createElement(ve,{width:"30%"})),y.createElement(Fe,{numColumn:Ie[2]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[3]},y.createElement(ve,{width:"60%"}))),y.createElement(xl,null,y.createElement(Fe,{numColumn:Ie[0]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[1]},y.createElement(ve,{width:"80%"}),y.createElement(ve,{width:"30%"})),y.createElement(Fe,{numColumn:Ie[2]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[3]},y.createElement(ve,{width:"60%"}))),y.createElement(xl,null,y.createElement(Fe,{numColumn:Ie[0]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[1]},y.createElement(ve,{width:"80%"}),y.createElement(ve,{width:"30%"})),y.createElement(Fe,{numColumn:Ie[2]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[3]},y.createElement(ve,{width:"60%"}))),y.createElement(xl,null,y.createElement(Fe,{numColumn:Ie[0]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[1]},y.createElement(ve,{width:"80%"}),y.createElement(ve,{width:"30%"})),y.createElement(Fe,{numColumn:Ie[2]},y.createElement(ve,{width:"60%"})),y.createElement(Fe,{numColumn:Ie[3]},y.createElement(ve,{width:"60%"})))),Ure=_.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"?le(.25,e.color.defaultText):le(.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}}}}})),qre=_(vn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),Wre=_.span({display:"flex",justifyContent:"space-between"}),Gre={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},Kre=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=(i==null?void 0: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=Gre[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)}}),{})}},Yre=(e,t,r)=>{try{return fS(e,t,r)}catch(n){return bee.warn(n.message),!1}},zp=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:x}=e;return y.createElement(OD,null,x," ",y.createElement(ma,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(xp,null)," Read the docs"))}if(s)return y.createElement(Vre,null);let{rows:u,args:d,globals:p}="rows"in e&&e,h=Kre(FG(u,x=>{var C;return!((C=x==null?void 0:x.table)!=null&&C.disable)&&Yre(x,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($re,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let b=Object.keys(h.sections).length>0,E={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(Bx,null,y.createElement(Ure,{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(Wre,null,"Control"," ",!s&&r&&y.createElement(qre,{onClick:()=>r(),title:"Reset controls"},y.createElement(TM,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(x=>y.createElement(El,{key:x.key,row:x,arg:d&&d[x.key],...E})),Object.entries(h.ungroupedSubsections).map(([x,C])=>y.createElement($d,{key:x,label:x,level:"subsection",colSpan:g},C.map(w=>y.createElement(El,{key:w.key,row:w,arg:d&&d[w.key],expandable:b,...E})))),Object.entries(h.sections).map(([x,C])=>y.createElement($d,{key:x,label:x,level:"section",colSpan:g},C.ungrouped.map(w=>y.createElement(El,{key:w.key,row:w,arg:d&&d[w.key],...E})),Object.entries(C.subsections).map(([w,D])=>y.createElement($d,{key:w,label:w,level:"subsection",colSpan:g},D.map(S=>y.createElement(El,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...E})))))))))},Zre=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(zp,{...r[0][1],...t}):y.createElement(hL,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(zp,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?le(.4,e.color.defaultText):le(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(ce,({theme:e})=>({...Ju(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"?le(.2,e.color.defaultText):le(.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"?le(.4,e.color.defaultText):le(.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})=>({...Ju(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"?le(.4,e.color.defaultText):le(.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})=>({...Ju(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 Jre=e=>`anchor--${e}`,Xre=({storyId:e,children:t})=>y.createElement("div",{id:Jre(e),className:"sb-anchor"},t);tt&&tt.__DOCS_CONTEXT__===void 0&&(tt.__DOCS_CONTEXT__=l.createContext(null),tt.__DOCS_CONTEXT__.displayName="DocsContext");var tr=tt?tt.__DOCS_CONTEXT__:l.createContext(null),Ln=(e,t)=>l.useContext(tr).resolveOf(e,t),Qre=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),ene=e=>{if(e)return typeof e=="string"?e.includes("-")?Qre(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function tne(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function eS(e){return vee(e,{allowFunction:!1})}var tS=l.createContext({sources:{}}),rS="--unknown--",rne=({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?eS(d):rS;n(f=>({...f,[u]:{...f[u],[m]:{code:p,format:h}}}))};return t.on(Dm,a),()=>t.off(Dm,a)},[]),y.createElement(tS.Provider,{value:{sources:r}},e)},nne=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[eS(t)])||(a==null?void 0:a[rS])||{code:""}},ane=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:a}=t.parameters,o=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||o.type||tc.AUTO;if(o.code!==void 0)return o.code;let s=i===tc.DYNAMIC||i===tc.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},one=(e,t,r)=>{var f,v,g,b;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=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.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=nne(n.id,h,r);return s=m.format??((b=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:b.format)??!1,{code:ane({snippet:m.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function ine(e,t){let r=lne([e],t);return r&&r[0]}function lne(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 sne=(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},une=(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}},cne=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(tr),r=sne(e,t),n=ine(r,t);if(!n)return y.createElement(PD,null);let a=une(e,n,t);return a?y.createElement(qee,{...a}):null},dne=e=>{var m,f,v,g,b,E,x,C,w,D;let t=l.useContext(tr),r=l.useContext(tS),{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}=Ln(n||"story",["story"]),i=one({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((f=(m=o.parameters.docs)==null?void 0:m.canvas)==null?void 0:f.layout)??"padded",u=e.withToolbar??((g=(v=o.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((E=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:E.additionalActions),p=e.sourceState??((C=(x=o.parameters.docs)==null?void 0:x.canvas)==null?void 0:C.sourceState)??"hidden",h=e.className??((D=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:D.className);return y.createElement(ND,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(cne,{of:n||o.moduleExport,meta:e.meta,...e.story}))},pne=(e,t)=>{let r=fne(e,t);if(!r)throw new Error("No result when story was defined");return r},fne=(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(k3,u),()=>t.channel.off(k3,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(wee,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(Eee,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]},hne=(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(_3,o),()=>t.channel.off(_3,o)},[t.channel]),[n]};function mne(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var gne=e=>{var w;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(tr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??u.include,p=e.exclude??u.exclude,h=e.sort??u.sort,[m,f,v]=pne(n,r),[g]=hne(n,r),b=A3(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(m).length>0?y.createElement(zp,{rows:b,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v}):null;let E=ene(i),x=Object.fromEntries(Object.entries(s).map(([D,S])=>[D,{rows:A3(mne(S,a),d,p),sort:h}])),C={[E]:{rows:b,sort:h},...x};return y.createElement(Zre,{tabs:C,sort:h,args:m,globals:g,updateArgs:f,resetArgs:v})},{document:nS}=tt,aS=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(zx,null,t);let n=e&&e.split("-");return y.createElement(LD,{language:n&&n[1]||"text",format:!1,code:t,...r})};function ym(e,t){e.channel.emit(xee,t)}var $p=TL.a,vne=({hash:e,children:t})=>{let r=l.useContext(tr);return y.createElement($p,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);nS.getElementById(a)&&ym(r,e)}},t)},oS=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(tr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement($p,{...e}):t.startsWith("#")?y.createElement(vne,{hash:t},n):y.createElement($p,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),ym(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},iS=["h1","h2","h3","h4","h5","h6"],yne=iS.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),bne=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),wne=({as:e,id:t,children:r,...n})=>{let a=l.useContext(tr),o=yne[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(bne,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{nS.getElementById(t)&&ym(a,i)}},y.createElement(kM,null)),r)},bm=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(wne,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...ue(s,t)})},lS=iS.reduce((e,t)=>({...e,[t]:r=>y.createElement(bm,{as:t,...r})}),{}),Ene=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(hS`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/Header-DvYoS66I.js b/assets/Header-Cf-fYG7g.js similarity index 58% rename from assets/Header-DvYoS66I.js rename to assets/Header-Cf-fYG7g.js index e8132bd..69482c7 100644 --- a/assets/Header-DvYoS66I.js +++ b/assets/Header-Cf-fYG7g.js @@ -1,6 +1,6 @@ -import{r as d,R as e}from"./index-Cs7sjTYM.js";import{B as b}from"./Base-fHV16vWU.js";import{p as _}from"./polymorphic-factory-23vJzvkj.js";import{c as o}from"./clsx-B-dksMZM.js";import{f as c}from"./factory-DehWrhRO.js";import{V as L}from"./VisuallyHidden-DonKESKA.js";const B=d.createContext({}),S=()=>d.useContext(B),q=B.Provider,k=({className:n,width:t=34,height:a=34,...i})=>e.createElement("svg",{className:o("nhsuk-icon nhsuk-icon__search",n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",width:t,height:a,...i},e.createElement("path",{d:"M19.71 18.29l-4.11-4.1a7 7 0 1 0-1.41 1.41l4.1 4.11a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 10a5 5 0 1 1 5 5 5 5 0 0 1-5-5z"}));k.displayName="SearchIcon";k.__docgenInfo={description:"",methods:[],displayName:"SearchIcon",props:{width:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"34",computed:!1}},height:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"34",computed:!1}}}};const N=({className:n})=>e.createElement("svg",{className:o("nhsuk-icon nhsuk-icon__chevron-down",n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},e.createElement("path",{d:"M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z"}));N.displayName="ChevronDownIcon";N.__docgenInfo={description:"",methods:[],displayName:"ChevronDownIcon",props:{width:{required:!1,tsType:{name:"number"},description:""},height:{required:!1,tsType:{name:"number"},description:""}}};let V=class{constructor(){this.menuIsOpen=!1,this.navigation=document.querySelector(".nhsuk-navigation"),this.navigationList=document.querySelector(".nhsuk-header__navigation-list"),this.mobileMenu=document.createElement("ul"),this.mobileMenuToggleButton=document.querySelector(".nhsuk-header__menu-toggle"),this.mobileMenuCloseButton=document.createElement("button"),this.mobileMenuContainer=document.querySelector(".nhsuk-mobile-menu-container"),this.breakpoints=[],this.width=document.body.offsetWidth}init(){!this.navigation||!this.navigationList||!this.mobileMenuToggleButton||!this.mobileMenuContainer||(this.setupMobileMenu(),this.calculateBreakpoints(),this.updateNavigation(),this.doOnOrientationChange(),this.handleResize=this.debounce(()=>{this.calculateBreakpoints(),this.updateNavigation()}),this.mobileMenuToggleButton.addEventListener("click",this.toggleMobileMenu.bind(this)),window.addEventListener("resize",this.handleResize),window.addEventListener("orientationchange",this.doOnOrientationChange()))}debounce(t,a=100){let i;return(...s)=>{clearTimeout(i),i=setTimeout(()=>{t.apply(this,s)},a)}}calculateBreakpoints(){let t=0;for(let a=0;athis.breakpoints[a])for(;t>this.breakpoints[a];)this.navigationList.insertBefore(this.mobileMenu.removeChild(this.mobileMenu.firstChild),this.mobileMenuContainer),a+=1;this.mobileMenu.children.length||(this.mobileMenuToggleButton.classList.remove("nhsuk-header__menu-toggle--visible"),this.mobileMenuContainer.classList.remove("nhsuk-mobile-menu-container--visible")),document.body.offsetWidth!==this.width&&this.menuIsOpen&&this.closeMobileMenu()}doOnOrientationChange(){switch(window.orientation){case 90:setTimeout(()=>{this.calculateBreakpoints(),this.updateNavigation()},200);break}}};const O=()=>{new V().init()},r=c(({children:n,className:t,serviceName:a,transactional:i,organisationName:s,organisationSplit:h,organisationDescriptor:u,variant:l="blue-header-blue-nav",...p},v)=>{const x=d.useMemo(()=>({serviceName:a,transactional:i,organisationName:s,organisationSplit:h,organisationDescriptor:u,white:l.includes("white-header"),whiteNav:l.includes("white-nav")}),[]);return e.createElement(q,{value:x},e.createElement("header",{className:o("nhsuk-header",{"nhsuk-header__transactional":i,"nhsuk-header--organisation":s,"nhsuk-header--white":l.includes("white-header"),"nhsuk-header--white-nav":l.includes("white-nav")},t),role:"banner",...p,ref:v},n))}),y=({children:n,className:t,...a})=>e.createElement("div",{className:o("nhsuk-header__container",t),...a},n),M=_(({className:n,as:t="a",variant:a,...i},s)=>{const{transactional:h,serviceName:u,organisationName:l,organisationSplit:p,organisationDescriptor:v}=S();return e.createElement("div",{className:o("nhsuk-header__logo",{"nhsuk-header__logo--only":a})},e.createElement(b,{as:t,className:o("nhsuk-header__link",{"nhsuk-header__transactional--logo":h,"nhsuk-header__link--service":u},n),...i,ref:s},e.createElement("svg",{className:"nhsuk-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 16",height:"40",width:"100"},e.createElement("path",{className:"nhsuk-logo__background",fill:"#005eb8",d:"M0 0h40v16H0z"}),e.createElement("path",{className:"nhsuk-logo__text",fill:"#fff",d:"M3.9 1.5h4.4l2.6 9h.1l1.8-9h3.3l-2.8 13H9l-2.7-9h-.1l-1.8 9H1.1M17.3 1.5h3.6l-1 4.9h4L25 1.5h3.5l-2.7 13h-3.5l1.1-5.6h-4.1l-1.2 5.6h-3.4M37.7 4.4c-.7-.3-1.6-.6-2.9-.6-1.4 0-2.5.2-2.5 1.3 0 1.8 5.1 1.2 5.1 5.1 0 3.6-3.3 4.5-6.4 4.5-1.3 0-2.9-.3-4-.7l.8-2.7c.7.4 2.1.7 3.2.7s2.8-.2 2.8-1.5c0-2.1-5.1-1.3-5.1-5 0-3.4 2.9-4.4 5.8-4.4 1.6 0 3.1.2 4 .6"})),u&&e.createElement("span",{className:"nhsuk-header__service-name"},u),l&&e.createElement("span",{className:"nhsuk-organisation-name"},l,p&&e.createElement(e.Fragment,null," ",e.createElement("span",{className:"nhsuk-organisation-split"},p))),v&&e.createElement("span",{className:"nhsuk-organisation-descriptor"},v)))}),w=_(({className:n,as:t="a",...a},i)=>{const{transactional:s}=S();return s?e.createElement("div",{className:"nhsuk-header__transactional-service-name"},e.createElement(b,{as:t,className:o("nhsuk-header__transactional-service-name--link",n),...a,ref:i})):null}),E=({children:n,className:t,...a})=>e.createElement("div",{className:"nhsuk-navigation-container"},e.createElement("nav",{className:o("nhsuk-navigation",t),role:"navigation","aria-label":"Primary navigation",...a},n)),H=c(({children:n,className:t,...a},i)=>{const s=d.useRef(null);return d.useImperativeHandle(i,()=>s.current),d.useEffect(()=>{s.current&&O()},[s,n]),e.createElement("ul",{className:o("nhsuk-header__navigation-list",t),...a,ref:s},n)}),T=_(({className:n,variant:t,as:a="a",...i},s)=>e.createElement("li",{className:"nhsuk-header__navigation-item"},e.createElement(b,{as:a,className:o("nhsuk-header__navigation-link",{"nhsuk-header__navigation-item--home":t==="home-link"},n),...i,ref:s}))),C=({children:n,className:t,...a})=>e.createElement("div",{className:o("nhsuk-header__content",t),...a},n),m=c(({children:n,className:t,inputProps:a={visuallyHiddenText:"Search the NHS website"},buttonProps:i={visuallyHiddenText:"Search"},...s},h)=>e.createElement("div",{className:"nhsuk-header__search"},e.createElement("div",{className:"nhsuk-header__search-wrap"},e.createElement("form",{className:o("nhsuk-header__search-form",t),role:"search",...s,ref:h},n||e.createElement(e.Fragment,null,e.createElement(g,{...a}),e.createElement(f,{...i})))))),g=c(({visuallyHiddenText:n,className:t,placeholder:a="Search",...i},s)=>e.createElement(e.Fragment,null,e.createElement("label",{className:"nhsuk-u-visually-hidden",htmlFor:"search-field"},n),e.createElement("input",{className:o("nhsuk-search__input",t),id:"search-field",name:"search-field",type:"search",placeholder:a,autoComplete:"off",...i,ref:s}))),f=c(({visuallyHiddenText:n,className:t,...a},i)=>e.createElement("button",{className:o("nhsuk-search__submit",t),...a,type:"submit",ref:i},e.createElement(k,null),e.createElement(L,null,n))),I=({visuallyHiddenText:n="Browse",children:t="More",className:a,...i})=>e.createElement("li",{className:"nhsuk-mobile-menu-container"},e.createElement("button",{className:o("nhsuk-header__menu-toggle nhsuk-header__navigation-link",a),id:"toggle-menu","aria-expanded":"false",...i,type:"button"},e.createElement(L,null,n)," ",t,e.createElement(N,null)));r.displayName="Header";y.displayName="Header.Container";M.displayName="Header.Logo";w.displayName="Header.TransactionLink";E.displayName="Header.Nav";H.displayName="Header.NavList";T.displayName="Header.NavItem";I.displayName="Header.MobileMenu";C.displayName="Header.Content";m.displayName="Header.Search";g.displayName="Header.Search.Input";f.displayName="Header.Search.Button";m.Input=g;m.Button=f;r.Container=y;r.Logo=M;r.TransactionLink=w;r.Nav=E;r.NavList=H;r.NavItem=T;r.MobileMenu=I;r.Content=C;r.Search=m;r.__docgenInfo={description:"",methods:[],displayName:"Header",props:{variant:{required:!1,tsType:{name:"union",raw:`| 'blue-header-blue-nav' +import{r as u,R as e}from"./index-Cs7sjTYM.js";import{B as _}from"./Base-fHV16vWU.js";import{p as k}from"./polymorphic-factory-23vJzvkj.js";import{c as r}from"./clsx-B-dksMZM.js";import{f as c}from"./factory-DehWrhRO.js";import{V as L}from"./VisuallyHidden-DonKESKA.js";const B=u.createContext({}),S=()=>u.useContext(B),q=B.Provider,y=({className:n,width:t=34,height:a=34,...i})=>e.createElement("svg",{className:r("nhsuk-icon nhsuk-icon__search",n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",width:t,height:a,...i},e.createElement("path",{d:"M19.71 18.29l-4.11-4.1a7 7 0 1 0-1.41 1.41l4.1 4.11a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 10a5 5 0 1 1 5 5 5 5 0 0 1-5-5z"}));y.displayName="SearchIcon";y.__docgenInfo={description:"",methods:[],displayName:"SearchIcon",props:{width:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"34",computed:!1}},height:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"34",computed:!1}}}};const N=({className:n})=>e.createElement("svg",{className:r("nhsuk-icon nhsuk-icon__chevron-down",n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},e.createElement("path",{d:"M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z"}));N.displayName="ChevronDownIcon";N.__docgenInfo={description:"",methods:[],displayName:"ChevronDownIcon",props:{width:{required:!1,tsType:{name:"number"},description:""},height:{required:!1,tsType:{name:"number"},description:""}}};let V=class{constructor(){this.menuIsOpen=!1,this.navigation=document.querySelector(".nhsuk-navigation"),this.navigationList=document.querySelector(".nhsuk-header__navigation-list"),this.mobileMenu=document.createElement("ul"),this.mobileMenuToggleButton=document.querySelector(".nhsuk-header__menu-toggle"),this.mobileMenuCloseButton=document.createElement("button"),this.mobileMenuContainer=document.querySelector(".nhsuk-mobile-menu-container"),this.breakpoints=[],this.width=document.body.offsetWidth}init(){!this.navigation||!this.navigationList||!this.mobileMenuToggleButton||!this.mobileMenuContainer||(this.setupMobileMenu(),this.calculateBreakpoints(),this.updateNavigation(),this.doOnOrientationChange(),this.handleResize=this.debounce(()=>{this.calculateBreakpoints(),this.updateNavigation()}),this.mobileMenuToggleButton.addEventListener("click",this.toggleMobileMenu.bind(this)),window.addEventListener("resize",this.handleResize),window.addEventListener("orientationchange",this.doOnOrientationChange()))}debounce(t,a=100){let i;return(...s)=>{clearTimeout(i),i=setTimeout(()=>{t.apply(this,s)},a)}}calculateBreakpoints(){let t=0;for(let a=0;athis.breakpoints[a])for(;t>this.breakpoints[a];)this.navigationList.insertBefore(this.mobileMenu.removeChild(this.mobileMenu.firstChild),this.mobileMenuContainer),a+=1;this.mobileMenu.children.length||(this.mobileMenuToggleButton.classList.remove("nhsuk-header__menu-toggle--visible"),this.mobileMenuContainer.classList.remove("nhsuk-mobile-menu-container--visible")),document.body.offsetWidth!==this.width&&this.menuIsOpen&&this.closeMobileMenu()}doOnOrientationChange(){switch(window.orientation){case 90:setTimeout(()=>{this.calculateBreakpoints(),this.updateNavigation()},200);break}}};const O=()=>{new V().init()},o=c(({children:n,className:t,serviceName:a,transactional:i,organisationName:s,organisationSplit:d,organisationDescriptor:l,variant:h="blue-header-blue-nav",...p},v)=>{const x=u.useMemo(()=>({serviceName:a,transactional:i,organisationName:s,organisationSplit:d,organisationDescriptor:l,white:h.includes("white-header"),whiteNav:h.includes("white-nav")}),[]);return e.createElement(q,{value:x},e.createElement("header",{className:r("nhsuk-header",{"nhsuk-header__transactional":i,"nhsuk-header--organisation":s,"nhsuk-header--white":h.includes("white-header"),"nhsuk-header--white-nav":h.includes("white-nav")},t),role:"banner",...p,ref:v},n))}),M=({children:n,className:t,...a})=>e.createElement("div",{className:r("nhsuk-header__container",t),...a},n),w=k(({className:n,as:t="a",variant:a,...i},s)=>{const{transactional:d,serviceName:l,organisationName:h,organisationSplit:p,organisationDescriptor:v}=S();return e.createElement("div",{className:r("nhsuk-header__logo",{"nhsuk-header__logo--only":a})},e.createElement(_,{as:t,className:r("nhsuk-header__link",{"nhsuk-header__transactional--logo":d,"nhsuk-header__link--service":l},n),...i,ref:s},e.createElement("svg",{className:"nhsuk-logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 16",height:"40",width:"100"},e.createElement("path",{className:"nhsuk-logo__background",fill:"#005eb8",d:"M0 0h40v16H0z"}),e.createElement("path",{className:"nhsuk-logo__text",fill:"#fff",d:"M3.9 1.5h4.4l2.6 9h.1l1.8-9h3.3l-2.8 13H9l-2.7-9h-.1l-1.8 9H1.1M17.3 1.5h3.6l-1 4.9h4L25 1.5h3.5l-2.7 13h-3.5l1.1-5.6h-4.1l-1.2 5.6h-3.4M37.7 4.4c-.7-.3-1.6-.6-2.9-.6-1.4 0-2.5.2-2.5 1.3 0 1.8 5.1 1.2 5.1 5.1 0 3.6-3.3 4.5-6.4 4.5-1.3 0-2.9-.3-4-.7l.8-2.7c.7.4 2.1.7 3.2.7s2.8-.2 2.8-1.5c0-2.1-5.1-1.3-5.1-5 0-3.4 2.9-4.4 5.8-4.4 1.6 0 3.1.2 4 .6"})),l&&e.createElement("span",{className:"nhsuk-header__service-name"},l),h&&e.createElement("span",{className:"nhsuk-organisation-name"},h,p&&e.createElement(e.Fragment,null," ",e.createElement("span",{className:"nhsuk-organisation-split"},p))),v&&e.createElement("span",{className:"nhsuk-organisation-descriptor"},v)))}),E=k(({className:n,as:t="a",...a},i)=>{const{transactional:s}=S();return s?e.createElement("div",{className:"nhsuk-header__transactional-service-name"},e.createElement(_,{as:t,className:r("nhsuk-header__transactional-service-name--link",n),...a,ref:i})):null}),H=({children:n,className:t,...a})=>e.createElement("div",{className:"nhsuk-navigation-container"},e.createElement("nav",{className:r("nhsuk-navigation",t),role:"navigation","aria-label":"Primary navigation",...a},n)),T=c(({children:n,className:t,...a},i)=>{const s=u.useRef(null);u.useImperativeHandle(i,()=>s.current),u.useEffect(()=>{s.current&&O()},[s,n]);const d=u.Children.toArray(n).filter(l=>e.isValidElement(l)&&l.type===g);return e.createElement("ul",{className:r("nhsuk-header__navigation-list",{"nhsuk-header__navigation-list--left-aligned":d.length<4},t),...a,ref:s},n)}),g=k(({className:n,variant:t,as:a="a",...i},s)=>e.createElement("li",{className:"nhsuk-header__navigation-item"},e.createElement(_,{as:a,className:r("nhsuk-header__navigation-link",{"nhsuk-header__navigation-item--home":t==="home-link"},n),...i,ref:s}))),C=({children:n,className:t,...a})=>e.createElement("div",{className:r("nhsuk-header__content",t),...a},n),m=c(({children:n,className:t,inputProps:a={visuallyHiddenText:"Search the NHS website"},buttonProps:i={visuallyHiddenText:"Search"},...s},d)=>e.createElement("div",{className:"nhsuk-header__search"},e.createElement("div",{className:"nhsuk-header__search-wrap"},e.createElement("form",{className:r("nhsuk-header__search-form",t),role:"search",...s,ref:d},n||e.createElement(e.Fragment,null,e.createElement(f,{...a}),e.createElement(b,{...i})))))),f=c(({visuallyHiddenText:n,className:t,placeholder:a="Search",...i},s)=>e.createElement(e.Fragment,null,e.createElement("label",{className:"nhsuk-u-visually-hidden",htmlFor:"search-field"},n),e.createElement("input",{className:r("nhsuk-search__input",t),id:"search-field",name:"search-field",type:"search",placeholder:a,autoComplete:"off",...i,ref:s}))),b=c(({visuallyHiddenText:n,className:t,...a},i)=>e.createElement("button",{className:r("nhsuk-search__submit",t),...a,type:"submit",ref:i},e.createElement(y,null),e.createElement(L,null,n))),I=({visuallyHiddenText:n="Browse",children:t="More",className:a,...i})=>e.createElement("li",{className:"nhsuk-mobile-menu-container"},e.createElement("button",{className:r("nhsuk-header__menu-toggle nhsuk-header__navigation-link",a),id:"toggle-menu","aria-expanded":"false",...i,type:"button"},e.createElement(L,null,n)," ",t,e.createElement(N,null)));o.displayName="Header";M.displayName="Header.Container";w.displayName="Header.Logo";E.displayName="Header.TransactionLink";H.displayName="Header.Nav";T.displayName="Header.NavList";g.displayName="Header.NavItem";I.displayName="Header.MobileMenu";C.displayName="Header.Content";m.displayName="Header.Search";f.displayName="Header.Search.Input";b.displayName="Header.Search.Button";m.Input=f;m.Button=b;o.Container=M;o.Logo=w;o.TransactionLink=E;o.Nav=H;o.NavList=T;o.NavItem=g;o.MobileMenu=I;o.Content=C;o.Search=m;o.__docgenInfo={description:"",methods:[],displayName:"Header",props:{variant:{required:!1,tsType:{name:"union",raw:`| 'blue-header-blue-nav' | 'blue-header-white-nave' | 'white-header-blue-nav' -| 'white-header-white-nav'`,elements:[{name:"literal",value:"'blue-header-blue-nav'"},{name:"literal",value:"'blue-header-white-nave'"},{name:"literal",value:"'white-header-blue-nav'"},{name:"literal",value:"'white-header-white-nav'"}]},description:"",defaultValue:{value:"'blue-header-blue-nav'",computed:!1}}}};y.__docgenInfo={description:"",methods:[],displayName:"Header.Container"};M.__docgenInfo={description:"",methods:[],displayName:"Header.Logo",props:{"aria-label":{required:!0,tsType:{name:"string"},description:""},variant:{required:!1,tsType:{name:"literal",value:"'logo-only'"},description:"If set, there will be extra space around the logo to account for the lack of a service/oganisation name"},as:{required:!1,tsType:{name:"TComponent"},description:"The component to render as.",defaultValue:{value:"'a'",computed:!1}}}};w.__docgenInfo={description:"",methods:[],displayName:"Header.TransactionLink",props:{as:{required:!1,tsType:{name:"TComponent"},description:"The component to render as.",defaultValue:{value:"'a'",computed:!1}},className:{required:!1,tsType:{name:"string"},description:""}}};E.__docgenInfo={description:"",methods:[],displayName:"Header.Nav"};H.__docgenInfo={description:"",methods:[],displayName:"Header.NavList"};T.__docgenInfo={description:"",methods:[],displayName:"Header.NavItem",props:{variant:{required:!1,tsType:{name:"literal",value:"'home-link'"},description:""},className:{required:!1,tsType:{name:"string"},description:""},as:{required:!1,tsType:{name:"TComponent"},description:"The component to render as.",defaultValue:{value:"'a'",computed:!1}}}};I.__docgenInfo={description:"",methods:[],displayName:"Header.MobileMenu",props:{visuallyHiddenText:{required:!1,tsType:{name:"string"},description:`Visually hidden text for screen readers. +| 'white-header-white-nav'`,elements:[{name:"literal",value:"'blue-header-blue-nav'"},{name:"literal",value:"'blue-header-white-nave'"},{name:"literal",value:"'white-header-blue-nav'"},{name:"literal",value:"'white-header-white-nav'"}]},description:"",defaultValue:{value:"'blue-header-blue-nav'",computed:!1}}}};M.__docgenInfo={description:"",methods:[],displayName:"Header.Container"};w.__docgenInfo={description:"",methods:[],displayName:"Header.Logo",props:{"aria-label":{required:!0,tsType:{name:"string"},description:""},variant:{required:!1,tsType:{name:"literal",value:"'logo-only'"},description:"If set, there will be extra space around the logo to account for the lack of a service/oganisation name"},as:{required:!1,tsType:{name:"TComponent"},description:"The component to render as.",defaultValue:{value:"'a'",computed:!1}}}};E.__docgenInfo={description:"",methods:[],displayName:"Header.TransactionLink",props:{as:{required:!1,tsType:{name:"TComponent"},description:"The component to render as.",defaultValue:{value:"'a'",computed:!1}},className:{required:!1,tsType:{name:"string"},description:""}}};H.__docgenInfo={description:"",methods:[],displayName:"Header.Nav"};T.__docgenInfo={description:"",methods:[],displayName:"Header.NavList"};g.__docgenInfo={description:"",methods:[],displayName:"Header.NavItem",props:{variant:{required:!1,tsType:{name:"literal",value:"'home-link'"},description:""},className:{required:!1,tsType:{name:"string"},description:""},as:{required:!1,tsType:{name:"TComponent"},description:"The component to render as.",defaultValue:{value:"'a'",computed:!1}}}};I.__docgenInfo={description:"",methods:[],displayName:"Header.MobileMenu",props:{visuallyHiddenText:{required:!1,tsType:{name:"string"},description:`Visually hidden text for screen readers. -@type {string | undefined}`,defaultValue:{value:"'Browse'",computed:!1}},children:{defaultValue:{value:"'More'",computed:!1},required:!1}}};C.__docgenInfo={description:"",methods:[],displayName:"Header.Content"};m.__docgenInfo={description:"",methods:[],displayName:"Header.Search",props:{inputProps:{defaultValue:{value:"{ visuallyHiddenText: 'Search the NHS website' }",computed:!1},required:!1},buttonProps:{defaultValue:{value:"{ visuallyHiddenText: 'Search' }",computed:!1},required:!1}}};g.__docgenInfo={description:"",methods:[],displayName:"Header.Search.Input",props:{placeholder:{defaultValue:{value:"'Search'",computed:!1},required:!1}}};f.__docgenInfo={description:"",methods:[],displayName:"Header.Search.Button"};export{r as H}; +@type {string | undefined}`,defaultValue:{value:"'Browse'",computed:!1}},children:{defaultValue:{value:"'More'",computed:!1},required:!1}}};C.__docgenInfo={description:"",methods:[],displayName:"Header.Content"};m.__docgenInfo={description:"",methods:[],displayName:"Header.Search",props:{inputProps:{defaultValue:{value:"{ visuallyHiddenText: 'Search the NHS website' }",computed:!1},required:!1},buttonProps:{defaultValue:{value:"{ visuallyHiddenText: 'Search' }",computed:!1},required:!1}}};f.__docgenInfo={description:"",methods:[],displayName:"Header.Search.Input",props:{placeholder:{defaultValue:{value:"'Search'",computed:!1},required:!1}}};b.__docgenInfo={description:"",methods:[],displayName:"Header.Search.Button"};export{o as H}; diff --git a/assets/Header.stories-DP58B_vt.js b/assets/Header.stories-BQyVvZLf.js similarity index 54% rename from assets/Header.stories-DP58B_vt.js rename to assets/Header.stories-BQyVvZLf.js index 6f80228..3651210 100644 --- a/assets/Header.stories-DP58B_vt.js +++ b/assets/Header.stories-BQyVvZLf.js @@ -1,6 +1,6 @@ -import{R as a,r as m}from"./index-Cs7sjTYM.js";import{H as e}from"./Header-DvYoS66I.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./clsx-B-dksMZM.js";import"./factory-DehWrhRO.js";import"./VisuallyHidden-DonKESKA.js";const D={title:"Components/Navigation/Header",component:e,subcomponents:{"Header.Container":e.Container,"Header.Logo":e.Logo,"Header.Content":e.Content,"Header.Search":e.Search,"Header.Nav":e.Nav,"Header.NavList":e.NavList,"Header.NavItem":e.NavItem,"Header.MobileMenu":e.MobileMenu,"Header.TransactionLink":e.TransactionLink},parameters:{layout:"fullscreen",docs:{description:{component:`Use the appropriate header at the top of every page to show users they are on an NHS service and help them get started in finding what they need. +import{R as a,r as s}from"./index-Cs7sjTYM.js";import{H as e}from"./Header-Cf-fYG7g.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./clsx-B-dksMZM.js";import"./factory-DehWrhRO.js";import"./VisuallyHidden-DonKESKA.js";const R={title:"Components/Navigation/Header",component:e,subcomponents:{"Header.Container":e.Container,"Header.Logo":e.Logo,"Header.Content":e.Content,"Header.Search":e.Search,"Header.Nav":e.Nav,"Header.NavList":e.NavList,"Header.NavItem":e.NavItem,"Header.MobileMenu":e.MobileMenu,"Header.TransactionLink":e.TransactionLink},parameters:{layout:"fullscreen",docs:{description:{component:`Use the appropriate header at the top of every page to show users they are on an NHS service and help them get started in finding what they need. -https://service-manual.nhs.uk/design-system/components/header`}}},argTypes:{variant:{control:{type:"select"},options:["blue-header-blue-nav","blue-header-white-nav","white-header-blue-nav","white-header-white-nav"]}}},t={render:r=>a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.Content,null,a.createElement(e.Search,{inputProps:{visuallyHiddenText:"Search the NHS website"},buttonProps:{visuallyHiddenText:"Search"}}))),a.createElement(e.Nav,null,a.createElement(e.NavList,null,a.createElement(e.NavItem,{href:"#"},"Health A-Z"),a.createElement(e.NavItem,{href:"#"},"Live Well"),a.createElement(e.NavItem,{href:"#"},"Mental health"),a.createElement(e.NavItem,{href:"#"},"Care and support"),a.createElement(e.NavItem,{href:"#"},"Pregnancy"),a.createElement(e.NavItem,{href:"#"},"NHS services"),a.createElement(e.NavItem,{href:"#",variant:"home-link"},"Home"),a.createElement(e.MobileMenu,null))))},n={args:{serviceName:"Digital service manual"},render:r=>a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.Content,null,a.createElement(e.Search,{inputProps:{visuallyHiddenText:"Search the NHS website"},buttonProps:{visuallyHiddenText:"Search"}}))),a.createElement(e.Nav,null,a.createElement(e.NavList,null,a.createElement(e.NavItem,{href:"#"},"Health A-Z"),a.createElement(e.NavItem,{href:"#"},"Live Well"),a.createElement(e.NavItem,{href:"#"},"Mental health"),a.createElement(e.NavItem,{href:"#"},"Care and support"),a.createElement(e.NavItem,{href:"#"},"Pregnancy"),a.createElement(e.NavItem,{href:"#"},"NHS services"),a.createElement(e.NavItem,{href:"#",variant:"home-link"},"Home"),a.createElement(e.MobileMenu,null))))},l={args:{transactional:!0},render:r=>a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.TransactionLink,{href:"#"},"Find your NHS number")))},o={args:{organisationName:"Anytown Anyplace",organisationSplit:"Anywhere",organisationDescriptor:"NHS Foundation Trust",variant:"white-header-blue-nav"},render:r=>a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.Content,null,a.createElement(e.Search,{inputProps:{visuallyHiddenText:"Search the NHS website"},buttonProps:{visuallyHiddenText:"Search"}}))),a.createElement(e.Nav,null,a.createElement(e.NavList,null,a.createElement(e.NavItem,{href:"#"},"Health A-Z"),a.createElement(e.NavItem,{href:"#"},"Live Well"),a.createElement(e.NavItem,{href:"#"},"Mental health"),a.createElement(e.NavItem,{href:"#"},"Care and support"),a.createElement(e.NavItem,{href:"#"},"Pregnancy"),a.createElement(e.NavItem,{href:"#"},"NHS services"),a.createElement(e.NavItem,{href:"#",variant:"home-link"},"Home"),a.createElement(e.MobileMenu,null))))},L=r=>{const[b,C]=m.useState(!1);return m.useEffect(()=>{setTimeout(()=>{C(!0)},2e3)},[]),a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.Content,null,a.createElement(e.Search,{inputProps:{visuallyHiddenText:"Search the NHS website"},buttonProps:{visuallyHiddenText:"Search"}}))),a.createElement(e.Nav,null,a.createElement(e.NavList,null,b?a.createElement(a.Fragment,null,a.createElement(e.NavItem,{href:"#"},"Health A-Z"),a.createElement(e.NavItem,{href:"#"},"Live Well"),a.createElement(e.NavItem,{href:"#"},"Mental health"),a.createElement(e.NavItem,{href:"#"},"Care and support"),a.createElement(e.NavItem,{href:"#"},"Pregnancy"),a.createElement(e.NavItem,{href:"#"},"NHS services"),a.createElement(e.NavItem,{href:"#",variant:"home-link"},"Home"),a.createElement(e.MobileMenu,null)):a.createElement(e.NavItem,{href:"#"},"Health A-Z"))))},i={args:{organisationName:"Anytown Anyplace",organisationSplit:"Anywhere",organisationDescriptor:"NHS Foundation Trust"},render:r=>a.createElement(L,{...r})};var s,d,c;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ +https://service-manual.nhs.uk/design-system/components/header`}}},argTypes:{variant:{control:{type:"select"},options:["blue-header-blue-nav","blue-header-white-nav","white-header-blue-nav","white-header-white-nav"]}}},t={render:r=>a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.Content,null,a.createElement(e.Search,{inputProps:{visuallyHiddenText:"Search the NHS website"},buttonProps:{visuallyHiddenText:"Search"}}))),a.createElement(e.Nav,null,a.createElement(e.NavList,null,a.createElement(e.NavItem,{href:"#"},"Health A-Z"),a.createElement(e.NavItem,{href:"#"},"Live Well"),a.createElement(e.NavItem,{href:"#"},"Mental health"),a.createElement(e.NavItem,{href:"#"},"Care and support"),a.createElement(e.NavItem,{href:"#"},"Pregnancy"),a.createElement(e.NavItem,{href:"#"},"NHS services"),a.createElement(e.NavItem,{href:"#",variant:"home-link"},"Home"),a.createElement(e.MobileMenu,null))))},n={args:{serviceName:"Digital service manual"},render:r=>a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.Content,null,a.createElement(e.Search,{inputProps:{visuallyHiddenText:"Search the NHS website"},buttonProps:{visuallyHiddenText:"Search"}}))),a.createElement(e.Nav,null,a.createElement(e.NavList,null,a.createElement(e.NavItem,{href:"#"},"Health A-Z"),a.createElement(e.NavItem,{href:"#"},"Live Well"),a.createElement(e.NavItem,{href:"#"},"Mental health"),a.createElement(e.NavItem,{href:"#"},"Care and support"),a.createElement(e.NavItem,{href:"#"},"Pregnancy"),a.createElement(e.NavItem,{href:"#"},"NHS services"),a.createElement(e.NavItem,{href:"#",variant:"home-link"},"Home"),a.createElement(e.MobileMenu,null))))},l={args:{serviceName:"Digital service manual"},render:r=>a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.Content,null,a.createElement(e.Search,{inputProps:{visuallyHiddenText:"Search the NHS website"},buttonProps:{visuallyHiddenText:"Search"}}))),a.createElement(e.Nav,null,a.createElement(e.NavList,null,a.createElement(e.NavItem,{href:"#"},"Health A-Z"),a.createElement(e.NavItem,{href:"#"},"Live Well"),a.createElement(e.NavItem,{href:"#"},"Mental health"),a.createElement(e.MobileMenu,null))))},o={args:{transactional:!0},render:r=>a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.TransactionLink,{href:"#"},"Find your NHS number")))},i={args:{organisationName:"Anytown Anyplace",organisationSplit:"Anywhere",organisationDescriptor:"NHS Foundation Trust",variant:"white-header-blue-nav"},render:r=>a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.Content,null,a.createElement(e.Search,{inputProps:{visuallyHiddenText:"Search the NHS website"},buttonProps:{visuallyHiddenText:"Search"}}))),a.createElement(e.Nav,null,a.createElement(e.NavList,null,a.createElement(e.NavItem,{href:"#"},"Health A-Z"),a.createElement(e.NavItem,{href:"#"},"Live Well"),a.createElement(e.NavItem,{href:"#"},"Mental health"),a.createElement(e.NavItem,{href:"#"},"Care and support"),a.createElement(e.NavItem,{href:"#"},"Pregnancy"),a.createElement(e.NavItem,{href:"#"},"NHS services"),a.createElement(e.NavItem,{href:"#",variant:"home-link"},"Home"),a.createElement(e.MobileMenu,null))))},P=r=>{const[M,w]=s.useState(!1);return s.useEffect(()=>{setTimeout(()=>{w(!0)},2e3)},[]),a.createElement(e,{...r},a.createElement(e.Container,null,a.createElement(e.Logo,{href:"#","aria-label":"NHS homepage"}),a.createElement(e.Content,null,a.createElement(e.Search,{inputProps:{visuallyHiddenText:"Search the NHS website"},buttonProps:{visuallyHiddenText:"Search"}}))),a.createElement(e.Nav,null,a.createElement(e.NavList,null,M?a.createElement(a.Fragment,null,a.createElement(e.NavItem,{href:"#"},"Health A-Z"),a.createElement(e.NavItem,{href:"#"},"Live Well"),a.createElement(e.NavItem,{href:"#"},"Mental health"),a.createElement(e.NavItem,{href:"#"},"Care and support"),a.createElement(e.NavItem,{href:"#"},"Pregnancy"),a.createElement(e.NavItem,{href:"#"},"NHS services"),a.createElement(e.NavItem,{href:"#",variant:"home-link"},"Home"),a.createElement(e.MobileMenu,null)):a.createElement(e.NavItem,{href:"#"},"Health A-Z"))))},m={args:{organisationName:"Anytown Anyplace",organisationSplit:"Anywhere",organisationDescriptor:"NHS Foundation Trust"},render:r=>a.createElement(P,{...r})};var d,c,h;t.parameters={...t.parameters,docs:{...(d=t.parameters)==null?void 0:d.docs,source:{originalSource:`{ render: args =>
@@ -27,7 +27,7 @@ https://service-manual.nhs.uk/design-system/components/header`}}},argTypes:{vari
-}`,...(c=(d=t.parameters)==null?void 0:d.docs)==null?void 0:c.source}}};var h,H,v;n.parameters={...n.parameters,docs:{...(h=n.parameters)==null?void 0:h.docs,source:{originalSource:`{ +}`,...(h=(c=t.parameters)==null?void 0:c.docs)==null?void 0:h.source}}};var H,v,N;n.parameters={...n.parameters,docs:{...(H=n.parameters)==null?void 0:H.docs,source:{originalSource:`{ args: { serviceName: 'Digital service manual' }, @@ -57,7 +57,31 @@ https://service-manual.nhs.uk/design-system/components/header`}}},argTypes:{vari -}`,...(v=(H=n.parameters)==null?void 0:H.docs)==null?void 0:v.source}}};var N,u,p;l.parameters={...l.parameters,docs:{...(N=l.parameters)==null?void 0:N.docs,source:{originalSource:`{ +}`,...(N=(v=n.parameters)==null?void 0:v.docs)==null?void 0:N.source}}};var u,p,g;l.parameters={...l.parameters,docs:{...(u=l.parameters)==null?void 0:u.docs,source:{originalSource:`{ + args: { + serviceName: 'Digital service manual' + }, + render: args =>
+ + + + + + + + + Health A-Z + Live Well + Mental health + + + +
+}`,...(g=(p=l.parameters)==null?void 0:p.docs)==null?void 0:g.source}}};var I,E,f;o.parameters={...o.parameters,docs:{...(I=o.parameters)==null?void 0:I.docs,source:{originalSource:`{ args: { transactional: true }, @@ -69,7 +93,7 @@ https://service-manual.nhs.uk/design-system/components/header`}}},argTypes:{vari -}`,...(p=(u=l.parameters)==null?void 0:u.docs)==null?void 0:p.source}}};var I,g,f;o.parameters={...o.parameters,docs:{...(I=o.parameters)==null?void 0:I.docs,source:{originalSource:`{ +}`,...(f=(E=o.parameters)==null?void 0:E.docs)==null?void 0:f.source}}};var S,b,y;i.parameters={...i.parameters,docs:{...(S=i.parameters)==null?void 0:S.docs,source:{originalSource:`{ args: { organisationName: 'Anytown Anyplace', organisationSplit: 'Anywhere', @@ -102,11 +126,11 @@ https://service-manual.nhs.uk/design-system/components/header`}}},argTypes:{vari -}`,...(f=(g=o.parameters)==null?void 0:g.docs)==null?void 0:f.source}}};var E,S,y;i.parameters={...i.parameters,docs:{...(E=i.parameters)==null?void 0:E.docs,source:{originalSource:`{ +}`,...(y=(b=i.parameters)==null?void 0:b.docs)==null?void 0:y.source}}};var L,C,T;m.parameters={...m.parameters,docs:{...(L=m.parameters)==null?void 0:L.docs,source:{originalSource:`{ args: { organisationName: 'Anytown Anyplace', organisationSplit: 'Anywhere', organisationDescriptor: 'NHS Foundation Trust' }, render: args => -}`,...(y=(S=i.parameters)==null?void 0:S.docs)==null?void 0:y.source}}};const Z=["Default","WithServiceName","Transactional","WithOrgansation","WithDelayedNav"];export{t as Default,l as Transactional,i as WithDelayedNav,o as WithOrgansation,n as WithServiceName,Z as __namedExportsOrder,D as default}; +}`,...(T=(C=m.parameters)==null?void 0:C.docs)==null?void 0:T.source}}};const V=["Default","WithServiceName","WithServiceNameAndLessThanFourLinks","Transactional","WithOrgansation","WithDelayedNav"];export{t as Default,o as Transactional,m as WithDelayedNav,i as WithOrgansation,n as WithServiceName,l as WithServiceNameAndLessThanFourLinks,V as __namedExportsOrder,R as default}; diff --git a/assets/MiniHub.stories-BPaGQyW-.js b/assets/MiniHub.stories-DzP4FoXl.js similarity index 99% rename from assets/MiniHub.stories-BPaGQyW-.js rename to assets/MiniHub.stories-DzP4FoXl.js index 31d9c02..48d5957 100644 --- a/assets/MiniHub.stories-BPaGQyW-.js +++ b/assets/MiniHub.stories-DzP4FoXl.js @@ -1,4 +1,4 @@ -import{R as e}from"./index-Cs7sjTYM.js";import{H as r}from"./Header-DvYoS66I.js";import{C as d}from"./Container-CLMOXAcg.js";import{M as g}from"./Main-SfhCX5gI.js";import{R as h,C as p}from"./Grid-ByltY6Yt.js";import{H as f}from"./Heading-CyaQd0b1.js";import{L as a}from"./List-CYw2Jq5A.js";import{F as i}from"./Footer-DHj6TXKM.js";import{B as n}from"./Breadcrumb-CA9SzzGB.js";import{V as E}from"./VisuallyHidden-DonKESKA.js";import{C as t}from"./ContentsList-BMl9NSgH.js";import{P as L}from"./Paragraph--C7hMoDT.js";import{P as s}from"./Pagination-BseG1_zr.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./clsx-B-dksMZM.js";import"./factory-DehWrhRO.js";const R={title:"Patterns/Page types/Mini-hub page",parameters:{layout:"fullscreen"}},o={render:u=>e.createElement(e.Fragment,null,e.createElement(r,{...u},e.createElement(r.Container,null,e.createElement(r.Logo,{variant:"logo-only",href:"/","aria-label":"NHS homepage"})),e.createElement(r.Nav,null)),e.createElement(n,null,e.createElement(n.List,null,e.createElement(n.ListItem,null,"Home"),e.createElement(n.ListItem,null,"Health A to Z")),e.createElement(n.BackLink,null,"Health A to Z")),e.createElement(d,null,e.createElement(g,null,e.createElement(h,null,e.createElement(p,{width:"two-thirds"},e.createElement(f,null,e.createElement("span",{role:"text"},"What is AMD?",e.createElement("span",{className:"nhsuk-caption-xl nhsuk-caption--bottom"},e.createElement(E,null,"-"),"Age-related macular degeneration (AMD)"))),e.createElement(t,{"aria-label":"Pages in this guide"},e.createElement(t.Item,{href:"#",active:!0},"What is AMD?"),e.createElement(t.Item,{href:"#"},"Symptoms"),e.createElement(t.Item,{href:"#"},"Getting diagnosed"),e.createElement(t.Item,{href:"#"},"Treatment"),e.createElement(t.Item,{href:"#"},"Living with AMD")),e.createElement(a,{variant:"unordered"},e.createElement(a.Item,null,e.createElement("strong",null,"Age-related macular degeneration (AMD) is a common condition that affects the middle part of your vision.")," ","It usually first affects people in their 50s and 60s."),e.createElement(a.Item,null,e.createElement("strong",null,"It doesn't cause total blindness.")," But it can make everyday activities like reading and recognising faces difficult."),e.createElement(a.Item,null,e.createElement("strong",null,"Without treatment, your vision may get worse.")," ",'This can happen gradually over several years ("dry AMD"), or quickly over a few weeks or months ("wet AMD").'),e.createElement(a.Item,null,e.createElement("strong",null,"The exact cause is unknown.")," It's been linked to smoking, high blood pressure, being overweight and having a family history of AMD.")),e.createElement(L,{variant:"small",className:"nhsuk-u-margin-top-7 nhsuk-u-secondary-text-color"},"Page last reviewed: 27 March 2018 ",e.createElement("br",null),"Next review due: 27 March 2021"),e.createElement(s,null,e.createElement(s.Next,{pageTitle:"Symptoms"})))))),e.createElement(i,null,e.createElement(i.Content,null,e.createElement(i.List,null),e.createElement(i.Copyright,null,"NHS England"))))};var l,m,c;o.parameters={...o.parameters,docs:{...(l=o.parameters)==null?void 0:l.docs,source:{originalSource:`{ +import{R as e}from"./index-Cs7sjTYM.js";import{H as r}from"./Header-Cf-fYG7g.js";import{C as d}from"./Container-CLMOXAcg.js";import{M as g}from"./Main-SfhCX5gI.js";import{R as h,C as p}from"./Grid-ByltY6Yt.js";import{H as f}from"./Heading-CyaQd0b1.js";import{L as a}from"./List-CYw2Jq5A.js";import{F as i}from"./Footer-DHj6TXKM.js";import{B as n}from"./Breadcrumb-CA9SzzGB.js";import{V as E}from"./VisuallyHidden-DonKESKA.js";import{C as t}from"./ContentsList-BMl9NSgH.js";import{P as L}from"./Paragraph--C7hMoDT.js";import{P as s}from"./Pagination-BseG1_zr.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./clsx-B-dksMZM.js";import"./factory-DehWrhRO.js";const R={title:"Patterns/Page types/Mini-hub page",parameters:{layout:"fullscreen"}},o={render:u=>e.createElement(e.Fragment,null,e.createElement(r,{...u},e.createElement(r.Container,null,e.createElement(r.Logo,{variant:"logo-only",href:"/","aria-label":"NHS homepage"})),e.createElement(r.Nav,null)),e.createElement(n,null,e.createElement(n.List,null,e.createElement(n.ListItem,null,"Home"),e.createElement(n.ListItem,null,"Health A to Z")),e.createElement(n.BackLink,null,"Health A to Z")),e.createElement(d,null,e.createElement(g,null,e.createElement(h,null,e.createElement(p,{width:"two-thirds"},e.createElement(f,null,e.createElement("span",{role:"text"},"What is AMD?",e.createElement("span",{className:"nhsuk-caption-xl nhsuk-caption--bottom"},e.createElement(E,null,"-"),"Age-related macular degeneration (AMD)"))),e.createElement(t,{"aria-label":"Pages in this guide"},e.createElement(t.Item,{href:"#",active:!0},"What is AMD?"),e.createElement(t.Item,{href:"#"},"Symptoms"),e.createElement(t.Item,{href:"#"},"Getting diagnosed"),e.createElement(t.Item,{href:"#"},"Treatment"),e.createElement(t.Item,{href:"#"},"Living with AMD")),e.createElement(a,{variant:"unordered"},e.createElement(a.Item,null,e.createElement("strong",null,"Age-related macular degeneration (AMD) is a common condition that affects the middle part of your vision.")," ","It usually first affects people in their 50s and 60s."),e.createElement(a.Item,null,e.createElement("strong",null,"It doesn't cause total blindness.")," But it can make everyday activities like reading and recognising faces difficult."),e.createElement(a.Item,null,e.createElement("strong",null,"Without treatment, your vision may get worse.")," ",'This can happen gradually over several years ("dry AMD"), or quickly over a few weeks or months ("wet AMD").'),e.createElement(a.Item,null,e.createElement("strong",null,"The exact cause is unknown.")," It's been linked to smoking, high blood pressure, being overweight and having a family history of AMD.")),e.createElement(L,{variant:"small",className:"nhsuk-u-margin-top-7 nhsuk-u-secondary-text-color"},"Page last reviewed: 27 March 2018 ",e.createElement("br",null),"Next review due: 27 March 2021"),e.createElement(s,null,e.createElement(s.Next,{pageTitle:"Symptoms"})))))),e.createElement(i,null,e.createElement(i.Content,null,e.createElement(i.List,null),e.createElement(i.Copyright,null,"NHS England"))))};var l,m,c;o.parameters={...o.parameters,docs:{...(l=o.parameters)==null?void 0:l.docs,source:{originalSource:`{ render: args => <>
diff --git a/assets/SkipLink.stories-DhRDPLrc.js b/assets/SkipLink.stories-D9BdPxxe.js similarity index 97% rename from assets/SkipLink.stories-DhRDPLrc.js rename to assets/SkipLink.stories-D9BdPxxe.js index 05b0e70..9f88e84 100644 --- a/assets/SkipLink.stories-DhRDPLrc.js +++ b/assets/SkipLink.stories-D9BdPxxe.js @@ -1,4 +1,4 @@ -import{r as l,R as e}from"./index-Cs7sjTYM.js";import{c as d}from"./clsx-B-dksMZM.js";import{f as u}from"./factory-DehWrhRO.js";import{H as o}from"./Header-DvYoS66I.js";import{M as k}from"./Main-SfhCX5gI.js";import{H as f}from"./Heading-CyaQd0b1.js";import{C as h}from"./Container-CLMOXAcg.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./VisuallyHidden-DonKESKA.js";const g=()=>{const n=document.querySelector("h1"),r=document.querySelector(".nhsuk-skip-link");n&&r&&(()=>{r.addEventListener("click",t=>{t.preventDefault(),n.setAttribute("tabIndex","-1"),n.focus()}),n.addEventListener("blur",t=>{t.preventDefault(),n.removeAttribute("tabIndex")})})()},i=u(({children:n,className:r,...s},t)=>(l.useEffect(()=>{setTimeout(()=>{g()},500)}),e.createElement("a",{className:d("nhsuk-skip-link",r),href:"#maincontent",tabIndex:0,...s,ref:t},n)));i.displayName="SkipLink";i.__docgenInfo={description:"",methods:[],displayName:"SkipLink"};const I={title:"Components/Navigation/Skip Link",component:i,parameters:{layout:"fullscreen",docs:{description:{component:`Use a skip link to help keyboard-only users skip to the main content on a page. +import{r as l,R as e}from"./index-Cs7sjTYM.js";import{c as d}from"./clsx-B-dksMZM.js";import{f as u}from"./factory-DehWrhRO.js";import{H as o}from"./Header-Cf-fYG7g.js";import{M as k}from"./Main-SfhCX5gI.js";import{H as f}from"./Heading-CyaQd0b1.js";import{C as h}from"./Container-CLMOXAcg.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./VisuallyHidden-DonKESKA.js";const g=()=>{const n=document.querySelector("h1"),r=document.querySelector(".nhsuk-skip-link");n&&r&&(()=>{r.addEventListener("click",t=>{t.preventDefault(),n.setAttribute("tabIndex","-1"),n.focus()}),n.addEventListener("blur",t=>{t.preventDefault(),n.removeAttribute("tabIndex")})})()},i=u(({children:n,className:r,...s},t)=>(l.useEffect(()=>{setTimeout(()=>{g()},500)}),e.createElement("a",{className:d("nhsuk-skip-link",r),href:"#maincontent",tabIndex:0,...s,ref:t},n)));i.displayName="SkipLink";i.__docgenInfo={description:"",methods:[],displayName:"SkipLink"};const I={title:"Components/Navigation/Skip Link",component:i,parameters:{layout:"fullscreen",docs:{description:{component:`Use a skip link to help keyboard-only users skip to the main content on a page. https://service-manual.nhs.uk/design-system/components/skip-link`}}}},a={render:n=>e.createElement(e.Fragment,null,e.createElement(i,{...n},"Skip to main content"),e.createElement(o,{serviceName:"Find your NHS number"},e.createElement(o.Container,null,e.createElement(o.Logo,{href:"/","aria-label":"NHS homepage"}))),e.createElement(h,null,e.createElement(k,null,e.createElement(f,null,"This is where the main content is"))))};var m,c,p;a.parameters={...a.parameters,docs:{...(m=a.parameters)==null?void 0:m.docs,source:{originalSource:`{ render: args => <> diff --git a/assets/StartPage.stories-rDJ9j-pe.js b/assets/StartPage.stories-WGAAcSiO.js similarity index 98% rename from assets/StartPage.stories-rDJ9j-pe.js rename to assets/StartPage.stories-WGAAcSiO.js index 117eec2..50c4511 100644 --- a/assets/StartPage.stories-rDJ9j-pe.js +++ b/assets/StartPage.stories-WGAAcSiO.js @@ -1,4 +1,4 @@ -import{R as e}from"./index-Cs7sjTYM.js";import{H as r}from"./Header-DvYoS66I.js";import{C as u}from"./Container-CLMOXAcg.js";import{M as g}from"./Main-SfhCX5gI.js";import{R as d,C as h}from"./Grid-ByltY6Yt.js";import{H as l}from"./Heading-CyaQd0b1.js";import{F as a}from"./Footer-DHj6TXKM.js";import{B as t}from"./Breadcrumb-CA9SzzGB.js";import{P as o}from"./Paragraph--C7hMoDT.js";import{P as p}from"./Pagination-BseG1_zr.js";import{B as E}from"./Button-DyX-YaNQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./clsx-B-dksMZM.js";import"./factory-DehWrhRO.js";import"./VisuallyHidden-DonKESKA.js";const x={title:"Patterns/Page types/Start page",parameters:{layout:"fullscreen"}},n={render:c=>e.createElement(e.Fragment,null,e.createElement(r,{...c},e.createElement(r.Container,null,e.createElement(r.Logo,{variant:"logo-only",href:"/","aria-label":"NHS homepage"})),e.createElement(r.Nav,null)),e.createElement(t,null,e.createElement(t.List,null,e.createElement(t.ListItem,null,"Home"),e.createElement(t.ListItem,null,"Section"),e.createElement(t.ListItem,null,"Subsection")),e.createElement(t.BackLink,null,"Subsection")),e.createElement(u,null,e.createElement(g,null,e.createElement(d,null,e.createElement(h,{width:"two-thirds"},e.createElement(l,null,"Service name goes here"),e.createElement(o,null,"Use this service to do something."),e.createElement(p,null,"You can use this service if you:"),e.createElement("ul",null,e.createElement("li",null,"live in England"),e.createElement("li",null,"need to get a thing"),e.createElement("li",null,"need to change a thing")),e.createElement(l,{as:"h2"},"Before you start"),e.createElement(o,null,"We'll ask you for: ..."),e.createElement(E,{as:"a",href:"#"},"Start now"),e.createElement(o,null,"By using this service you are agreeing to our"," ",e.createElement("a",{href:"#"},"terms of use")," and ",e.createElement("a",{href:"#"},"privacy policy"),"."))))),e.createElement(a,null,e.createElement(a.Content,null,e.createElement(a.List,null),e.createElement(a.Copyright,null,"NHS England"))))};var i,m,s;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{R as e}from"./index-Cs7sjTYM.js";import{H as r}from"./Header-Cf-fYG7g.js";import{C as u}from"./Container-CLMOXAcg.js";import{M as g}from"./Main-SfhCX5gI.js";import{R as d,C as h}from"./Grid-ByltY6Yt.js";import{H as l}from"./Heading-CyaQd0b1.js";import{F as a}from"./Footer-DHj6TXKM.js";import{B as t}from"./Breadcrumb-CA9SzzGB.js";import{P as o}from"./Paragraph--C7hMoDT.js";import{P as p}from"./Pagination-BseG1_zr.js";import{B as E}from"./Button-DyX-YaNQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Base-fHV16vWU.js";import"./polymorphic-factory-23vJzvkj.js";import"./clsx-B-dksMZM.js";import"./factory-DehWrhRO.js";import"./VisuallyHidden-DonKESKA.js";const x={title:"Patterns/Page types/Start page",parameters:{layout:"fullscreen"}},n={render:c=>e.createElement(e.Fragment,null,e.createElement(r,{...c},e.createElement(r.Container,null,e.createElement(r.Logo,{variant:"logo-only",href:"/","aria-label":"NHS homepage"})),e.createElement(r.Nav,null)),e.createElement(t,null,e.createElement(t.List,null,e.createElement(t.ListItem,null,"Home"),e.createElement(t.ListItem,null,"Section"),e.createElement(t.ListItem,null,"Subsection")),e.createElement(t.BackLink,null,"Subsection")),e.createElement(u,null,e.createElement(g,null,e.createElement(d,null,e.createElement(h,{width:"two-thirds"},e.createElement(l,null,"Service name goes here"),e.createElement(o,null,"Use this service to do something."),e.createElement(p,null,"You can use this service if you:"),e.createElement("ul",null,e.createElement("li",null,"live in England"),e.createElement("li",null,"need to get a thing"),e.createElement("li",null,"need to change a thing")),e.createElement(l,{as:"h2"},"Before you start"),e.createElement(o,null,"We'll ask you for: ..."),e.createElement(E,{as:"a",href:"#"},"Start now"),e.createElement(o,null,"By using this service you are agreeing to our"," ",e.createElement("a",{href:"#"},"terms of use")," and ",e.createElement("a",{href:"#"},"privacy policy"),"."))))),e.createElement(a,null,e.createElement(a.Content,null,e.createElement(a.List,null),e.createElement(a.Copyright,null,"NHS England"))))};var i,m,s;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:`{ render: args => <>
diff --git a/assets/Table.stories-C2vY41c0.js b/assets/Table.stories-CnrppOip.js similarity index 67% rename from assets/Table.stories-C2vY41c0.js rename to assets/Table.stories-CnrppOip.js index 377b30e..b12666b 100644 --- a/assets/Table.stories-C2vY41c0.js +++ b/assets/Table.stories-CnrppOip.js @@ -1,4 +1,4 @@ -import{r as t,R as l}from"./index-Cs7sjTYM.js";import{f as M}from"./factory-DehWrhRO.js";import{c as m}from"./clsx-B-dksMZM.js";import{B as V}from"./Base-fHV16vWU.js";import"./_commonjsHelpers-BosuxZz1.js";const B=t.createContext({responsiveHeadings:[],registerHeadings:()=>{}}),I=t.createContext({head:!1}),S=()=>t.useContext(B),q=B.Provider,P=()=>t.useContext(I),A=I.Provider,e=M(({variant:a,className:n,...o},s)=>{const[c,r]=t.useState([]),u=t.useMemo(()=>({variant:a,responsiveHeadings:c,registerHeadings:r}),[a,c,r]);return l.createElement(q,{value:u},l.createElement("table",{className:m({"nhsuk-table":!a,[`nhsuk-table-${a}`]:a},n),...o,ref:s}))}),g=({className:a,...n})=>l.createElement("caption",{className:m("nhsuk-table__caption",a),...n}),f=({className:a,role:n="rowgroup",...o})=>l.createElement(A,{value:{head:!0}},l.createElement("thead",{className:m("nhsuk-table__head",a),role:n,...o})),E=({className:a,...n})=>l.createElement("tbody",{className:m("nhsuk-table__body",a),...n}),w=({role:a="row",variant:n,className:o,children:s,...c})=>{const{variant:r,responsiveHeadings:u,registerHeadings:T}=S(),{head:d}=P();t.useEffect(()=>{if((n==="head"||d)&&r==="responsive"){const i=[];t.Children.forEach(s,b=>{if(t.isValidElement(b)&&b.type===p){const _=b;i.push(_.props.responsiveHeading||_.props.children||"__MISSING__RESPONSIVE_HEADING__")}}),T(i)}},[s,T,d,r]);let C=s;return(n==="default"||!d)&&r==="responsive"&&(C=t.Children.map(s,(i,b)=>t.isValidElement(i)&&i.type===p?t.cloneElement(i,{__responsiveHeading:u[b]??""}):i)),l.createElement("tr",{className:m({"nhsuk-table__row":n==="default"||!d},o),role:a,...c},C)},p=({variant:a,role:n,className:o,children:s,responsiveHeading:c,__responsiveHeading:r,...u})=>{const{variant:T}=S(),{head:d}=P(),C=d?{as:"th",scope:"col",role:n||"columnheader",className:o,"data-responsive-heading":c}:{as:"td",role:n||"cell",className:m("nhsuk-table__cell",{"nhsuk-table__cell--numeric":a==="numeric"},o)};return l.createElement(V,{...C,...u},T==="responsive"&&l.createElement("span",{className:"nhsuk-table-responsive__heading"},r),s)};e.displayName="Table";g.displayName="Table.Caption";f.displayName="Table.Head";E.displayName="Table.Body";w.displayName="Table.Row";p.displayName="Table.Cell";e.Caption=g;e.Head=f;e.Body=E;e.Row=w;e.Cell=p;e.__docgenInfo={description:"",methods:[],displayName:"Table"};g.__docgenInfo={description:"",methods:[],displayName:"Table.Caption"};f.__docgenInfo={description:"",methods:[],displayName:"Table.Head",props:{role:{defaultValue:{value:"'rowgroup'",computed:!1},required:!1}}};E.__docgenInfo={description:"",methods:[],displayName:"Table.Body"};w.__docgenInfo={description:"",methods:[],displayName:"Table.Row",props:{variant:{required:!1,tsType:{name:"union",raw:"'default' | 'head'",elements:[{name:"literal",value:"'default'"},{name:"literal",value:"'head'"}]},description:"@deprecated Will be removed in a future release. It now automatically detects the variant based on the context. This is now unused within the component."},role:{defaultValue:{value:"'row'",computed:!1},required:!1}}};p.__docgenInfo={description:"",methods:[],displayName:"Table.Cell",props:{variant:{required:!1,tsType:{name:"union",raw:"'default' | 'numeric'",elements:[{name:"literal",value:"'default'"},{name:"literal",value:"'numeric'"}]},description:"The variant of the cell. Defaults to none."},responsiveHeading:{required:!1,tsType:{name:"string"},description:"The heading to display in when the table is in responsive mode and on small screens. If not provided, the children will be used."},__responsiveHeading:{required:!1,tsType:{name:"ReactNode"},description:"For internal use only"}}};const U={title:"Components/Content Presentation/Table",component:e,subcomponents:{"Table.Caption":e.Caption,"Table.Head":e.Head,"Table.Body":e.Body,"Table.Row":e.Row,"Table.Cell":e.Cell},argTypes:{variant:{control:!1,table:{type:{summary:"responsive | undefined"},defaultValue:{summary:"undefined"}}}},parameters:{docs:{description:{component:`Use a table to make it easier for users to compare and scan information. +import{r as t,R as l}from"./index-Cs7sjTYM.js";import{f as M}from"./factory-DehWrhRO.js";import{c as m}from"./clsx-B-dksMZM.js";import{B as V}from"./Base-fHV16vWU.js";import"./_commonjsHelpers-BosuxZz1.js";const B=t.createContext({responsiveHeadings:[],registerHeadings:()=>{}}),I=t.createContext({head:!1}),S=()=>t.useContext(B),q=B.Provider,P=()=>t.useContext(I),A=I.Provider,e=M(({variant:a,className:n,...o},s)=>{const[c,r]=t.useState([]),u=t.useMemo(()=>({variant:a,responsiveHeadings:c,registerHeadings:r}),[a,c,r]);return l.createElement(q,{value:u},l.createElement("table",{className:m({"nhsuk-table":!a,[`nhsuk-table-${a}`]:a},n),...o,ref:s}))}),g=({className:a,...n})=>l.createElement("caption",{className:m("nhsuk-table__caption",a),...n}),f=({className:a,role:n="rowgroup",...o})=>l.createElement(A,{value:{head:!0}},l.createElement("thead",{className:m("nhsuk-table__head",a),role:n,...o})),E=({className:a,...n})=>l.createElement("tbody",{className:m("nhsuk-table__body",a),...n}),w=({role:a="row",variant:n,className:o,children:s,...c})=>{const{variant:r,responsiveHeadings:u,registerHeadings:T}=S(),{head:i}=P();t.useEffect(()=>{if((n==="head"||i)&&r==="responsive"){const d=[];t.Children.forEach(s,b=>{if(t.isValidElement(b)&&b.type===p){const _=b;d.push(_.props.responsiveHeading||_.props.children||"__MISSING__RESPONSIVE_HEADING__")}}),T(d)}},[s,T,i,r]);let C=s;return(n==="default"||!i)&&r==="responsive"&&(C=t.Children.map(s,(d,b)=>t.isValidElement(d)&&d.type===p?t.cloneElement(d,{__responsiveHeading:u[b]??""}):d)),l.createElement("tr",{className:m({"nhsuk-table__row":n==="default"||!i},o),role:a,...c},C)},p=({variant:a,role:n,className:o,children:s,responsiveHeading:c,__responsiveHeading:r,...u})=>{const{variant:T}=S(),{head:i}=P(),C=i?{as:"th",scope:"col",role:n||"columnheader",className:o,"data-responsive-heading":c}:{as:"td",role:n||"cell",className:m("nhsuk-table__cell",{"nhsuk-table__cell--numeric":a==="numeric"},o)};return l.createElement(V,{...C,...u},T==="responsive"&&!i&&l.createElement("span",{className:"nhsuk-table-responsive__heading","aria-hidden":"true"},r," "),s)};e.displayName="Table";g.displayName="Table.Caption";f.displayName="Table.Head";E.displayName="Table.Body";w.displayName="Table.Row";p.displayName="Table.Cell";e.Caption=g;e.Head=f;e.Body=E;e.Row=w;e.Cell=p;e.__docgenInfo={description:"",methods:[],displayName:"Table"};g.__docgenInfo={description:"",methods:[],displayName:"Table.Caption"};f.__docgenInfo={description:"",methods:[],displayName:"Table.Head",props:{role:{defaultValue:{value:"'rowgroup'",computed:!1},required:!1}}};E.__docgenInfo={description:"",methods:[],displayName:"Table.Body"};w.__docgenInfo={description:"",methods:[],displayName:"Table.Row",props:{variant:{required:!1,tsType:{name:"union",raw:"'default' | 'head'",elements:[{name:"literal",value:"'default'"},{name:"literal",value:"'head'"}]},description:"@deprecated Will be removed in a future release. It now automatically detects the variant based on the context. This is now unused within the component."},role:{defaultValue:{value:"'row'",computed:!1},required:!1}}};p.__docgenInfo={description:"",methods:[],displayName:"Table.Cell",props:{variant:{required:!1,tsType:{name:"union",raw:"'default' | 'numeric'",elements:[{name:"literal",value:"'default'"},{name:"literal",value:"'numeric'"}]},description:"The variant of the cell. Defaults to none."},responsiveHeading:{required:!1,tsType:{name:"string"},description:"The heading to display in when the table is in responsive mode and on small screens. If not provided, the children will be used."},__responsiveHeading:{required:!1,tsType:{name:"ReactNode"},description:"For internal use only"}}};const U={title:"Components/Content Presentation/Table",component:e,subcomponents:{"Table.Caption":e.Caption,"Table.Head":e.Head,"Table.Body":e.Body,"Table.Row":e.Row,"Table.Cell":e.Cell},argTypes:{variant:{control:!1,table:{type:{summary:"responsive | undefined"},defaultValue:{summary:"undefined"}}}},parameters:{docs:{description:{component:`Use a table to make it easier for users to compare and scan information. https://service-manual.nhs.uk/design-system/components/table`}}}},h={render:a=>l.createElement(e,{...a},l.createElement(e.Caption,null,"Skin symptoms and possible causes"),l.createElement(e.Head,null,l.createElement(e.Row,null,l.createElement(e.Cell,null,"Skin symptoms"),l.createElement(e.Cell,null,"Possible cause"))),l.createElement(e.Body,null,l.createElement(e.Row,null,l.createElement(e.Cell,null,"Blisters on lips or around the mouth"),l.createElement(e.Cell,null,"cold sores")),l.createElement(e.Row,null,l.createElement(e.Cell,null,"Itchy, dry, cracked, sore"),l.createElement(e.Cell,null,"eczema")),l.createElement(e.Row,null,l.createElement(e.Cell,null,"Red, scaly patches"),l.createElement(e.Cell,null,"psoriasis"))))},y={render:a=>l.createElement(e,{...a,variant:"responsive"},l.createElement(e.Caption,null,"Ibuprofen tablet dosages for children"),l.createElement(e.Head,null,l.createElement(e.Row,null,l.createElement(e.Cell,{responsiveHeading:"Age"},"Age"),l.createElement(e.Cell,{responsiveHeading:"How much?"},"How much"),l.createElement(e.Cell,{responsiveHeading:"How often?"},"How often"))),l.createElement(e.Body,null,l.createElement(e.Row,null,l.createElement(e.Cell,null,"7 to 9 years"),l.createElement(e.Cell,null,"200mg"),l.createElement(e.Cell,null,"Max 3 times in 24 hours")),l.createElement(e.Row,null,l.createElement(e.Cell,null,"10 to 11 years"),l.createElement(e.Cell,null,"200mg to 300mg"),l.createElement(e.Cell,null,"Max 3 times in 24 hours")),l.createElement(e.Row,null,l.createElement(e.Cell,null,"12 to 17 years"),l.createElement(e.Cell,null,"200mg to 400mg"),l.createElement(e.Cell,null,"Max 3 times in 24 hours"))))};var v,H,R;h.parameters={...h.parameters,docs:{...(v=h.parameters)==null?void 0:v.docs,source:{originalSource:`{ render: args => diff --git a/assets/entry-preview-CA20xXfl.js b/assets/entry-preview-CiikGAVF.js similarity index 99% rename from assets/entry-preview-CA20xXfl.js rename to assets/entry-preview-CiikGAVF.js index d2dd090..0c6e162 100644 --- a/assets/entry-preview-CA20xXfl.js +++ b/assets/entry-preview-CiikGAVF.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-18-B3Ni8Lov.js","./index-Cs7sjTYM.js","./_commonjsHelpers-BosuxZz1.js","./index-Cf-03bMR.js"])))=>i.map(i=>d[i]); -import{_ as Ut}from"./iframe-DNiO07zA.js";import{_ as kt}from"./chunk-H6MOWX77-DTQOW814.js";import{r as k,R as B}from"./index-Cs7sjTYM.js";import{g as Ft}from"./_commonjsHelpers-BosuxZz1.js";import{r as Gt}from"./index-Cf-03bMR.js";import"../sb-preview/runtime.js";var Ne={exports:{}};const jt="2.0.0",ut=256,Mt=Number.MAX_SAFE_INTEGER||9007199254740991,Xt=16,Vt=ut-6,xt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ie={MAX_LENGTH:ut,MAX_SAFE_COMPONENT_LENGTH:Xt,MAX_SAFE_BUILD_LENGTH:Vt,MAX_SAFE_INTEGER:Mt,RELEASE_TYPES:xt,SEMVER_SPEC_VERSION:jt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ee={};const Yt=typeof process=="object"&&Ee&&Ee.NODE_DEBUG&&/\bsemver\b/i.test(Ee.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var oe=Yt;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=ie,a=oe;t=e.exports={};const l=t.re=[],u=t.safeRe=[],i=t.src=[],s=t.t={};let f=0;const p="[a-zA-Z0-9-]",L=[["\\s",1],["\\d",o],[p,n]],d=F=>{for(const[D,G]of L)F=F.split(`${D}*`).join(`${D}{0,${G}}`).split(`${D}+`).join(`${D}{1,${G}}`);return F},R=(F,D,G)=>{const pe=d(D),T=f++;a(F,T,D),s[F]=T,i[T]=D,l[T]=new RegExp(D,G?"g":void 0),u[T]=new RegExp(pe,G?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),R("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${p}+`),R("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),R("FULL",`^${i[s.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),R("LOOSE",`^${i[s.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),R("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),R("COERCE",`${i[s.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",i[s.COERCEPLAIN]+`(?:${i[s.PRERELEASE]})?(?:${i[s.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",i[s.COERCE],!0),R("COERCERTLFULL",i[s.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",R("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",R("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ne,Ne.exports);var q=Ne.exports;const Wt=Object.freeze({loose:!0}),Ht=Object.freeze({}),Bt=e=>e?typeof e!="object"?Wt:e:Ht;var Oe=Bt;const Ge=/^[0-9]+$/,ft=(e,t)=>{const r=Ge.test(e),n=Ge.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eft(t,e);var ht={compareIdentifiers:ft,rcompareIdentifiers:Kt};const J=oe,{MAX_LENGTH:je,MAX_SAFE_INTEGER:Q}=ie,{safeRe:Me,t:Xe}=q,qt=Oe,{compareIdentifiers:M}=ht;let zt=class U{constructor(t,r){if(r=qt(r),t instanceof U){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>je)throw new TypeError(`version is longer than ${je} characters`);J("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Me[Xe.LOOSE]:Me[Xe.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Q||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Q||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Q||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const a=+o;if(a>=0&&a=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let a=[r,o];n===!1&&(a=[r]),M(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var y=zt;const Ve=y,Zt=(e,t,r=!1)=>{if(e instanceof Ve)return e;try{return new Ve(e,t)}catch(n){if(!r)return null;throw n}};var X=Zt;const Jt=X,Qt=(e,t)=>{const r=Jt(e,t);return r?r.version:null};var er=Qt;const tr=X,rr=(e,t)=>{const r=tr(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var nr=rr;const xe=y,sr=(e,t,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new xe(e instanceof xe?e.version:e,r).inc(t,n,o).version}catch{return null}};var ir=sr;const Ye=X,or=(e,t)=>{const r=Ye(e,null,!0),n=Ye(t,null,!0),o=r.compare(n);if(o===0)return null;const a=o>0,l=a?r:n,u=a?n:r,i=!!l.prerelease.length;if(!!u.prerelease.length&&!i)return!u.patch&&!u.minor?"major":l.patch?"patch":l.minor?"minor":"major";const f=i?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};var ar=or;const lr=y,cr=(e,t)=>new lr(e,t).major;var ur=cr;const fr=y,hr=(e,t)=>new fr(e,t).minor;var pr=hr;const Er=y,mr=(e,t)=>new Er(e,t).patch;var dr=mr;const $r=X,Rr=(e,t)=>{const r=$r(e,t);return r&&r.prerelease.length?r.prerelease:null};var vr=Rr;const We=y,Ir=(e,t,r)=>new We(e,r).compare(new We(t,r));var P=Ir;const gr=P,Lr=(e,t,r)=>gr(t,e,r);var wr=Lr;const Nr=P,Tr=(e,t)=>Nr(e,t,!0);var Or=Tr;const He=y,Sr=(e,t,r)=>{const n=new He(e,r),o=new He(t,r);return n.compare(o)||n.compareBuild(o)};var Se=Sr;const yr=Se,Ar=(e,t)=>e.sort((r,n)=>yr(r,n,t));var Cr=Ar;const _r=Se,Dr=(e,t)=>e.sort((r,n)=>_r(n,r,t));var Pr=Dr;const br=P,Ur=(e,t,r)=>br(e,t,r)>0;var ae=Ur;const kr=P,Fr=(e,t,r)=>kr(e,t,r)<0;var ye=Fr;const Gr=P,jr=(e,t,r)=>Gr(e,t,r)===0;var pt=jr;const Mr=P,Xr=(e,t,r)=>Mr(e,t,r)!==0;var Et=Xr;const Vr=P,xr=(e,t,r)=>Vr(e,t,r)>=0;var Ae=xr;const Yr=P,Wr=(e,t,r)=>Yr(e,t,r)<=0;var Ce=Wr;const Hr=pt,Br=Et,Kr=ae,qr=Ae,zr=ye,Zr=Ce,Jr=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Hr(e,r,n);case"!=":return Br(e,r,n);case">":return Kr(e,r,n);case">=":return qr(e,r,n);case"<":return zr(e,r,n);case"<=":return Zr(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var mt=Jr;const Qr=y,en=X,{safeRe:ee,t:te}=q,tn=(e,t)=>{if(e instanceof Qr)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?ee[te.COERCEFULL]:ee[te.COERCE]);else{const i=t.includePrerelease?ee[te.COERCERTLFULL]:ee[te.COERCERTL];let s;for(;(s=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||s.index+s[0].length!==r.index+r[0].length)&&(r=s),i.lastIndex=s.index+s[1].length+s[2].length;i.lastIndex=-1}if(r===null)return null;const n=r[2],o=r[3]||"0",a=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return en(`${n}.${o}.${a}${l}${u}`,t)};var rn=tn;class nn{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(t,r)}return this}}var sn=nn,me,Be;function b(){if(Be)return me;Be=1;const e=/\s+/g;class t{constructor(c,$){if($=o($),c instanceof t)return c.loose===!!$.loose&&c.includePrerelease===!!$.includePrerelease?c:new t(c.raw,$);if(c instanceof a)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=c.trim().replace(e," "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(v=>!F(v[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const v of this.set)if(v.length===1&&D(v[0])){this.set=[v];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c0&&(this.formatted+="||");const $=this.set[c];for(let E=0;E<$.length;E++)E>0&&(this.formatted+=" "),this.formatted+=$[E].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){const E=((this.options.includePrerelease&&d)|(this.options.loose&&R))+":"+c,v=n.get(E);if(v)return v;const m=this.options.loose,I=m?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];c=c.replace(I,Pt(this.options.includePrerelease)),l("hyphen replace",c),c=c.replace(i[s.COMPARATORTRIM],f),l("comparator trim",c),c=c.replace(i[s.TILDETRIM],p),l("tilde trim",c),c=c.replace(i[s.CARETTRIM],L),l("caret trim",c);let w=c.split(" ").map(O=>pe(O,this.options)).join(" ").split(/\s+/).map(O=>Dt(O,this.options));m&&(w=w.filter(O=>(l("loose invalid filter",O,this.options),!!O.match(i[s.COMPARATORLOOSE])))),l("range list",w);const g=new Map,N=w.map(O=>new a(O,this.options));for(const O of N){if(F(O))return[O];g.set(O.value,O)}g.size>1&&g.has("")&&g.delete("");const C=[...g.values()];return n.set(E,C),C}intersects(c,$){if(!(c instanceof t))throw new TypeError("a Range is required");return this.set.some(E=>G(E,$)&&c.set.some(v=>G(v,$)&&E.every(m=>v.every(I=>m.intersects(I,$)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new u(c,this.options)}catch{return!1}for(let $=0;$h.value==="<0.0.0-0",D=h=>h.value==="",G=(h,c)=>{let $=!0;const E=h.slice();let v=E.pop();for(;$&&E.length;)$=E.every(m=>v.intersects(m,c)),v=E.pop();return $},pe=(h,c)=>(l("comp",h,c),h=St(h,c),l("caret",h),h=Tt(h,c),l("tildes",h),h=At(h,c),l("xrange",h),h=_t(h,c),l("stars",h),h),T=h=>!h||h.toLowerCase()==="x"||h==="*",Tt=(h,c)=>h.trim().split(/\s+/).map($=>Ot($,c)).join(" "),Ot=(h,c)=>{const $=c.loose?i[s.TILDELOOSE]:i[s.TILDE];return h.replace($,(E,v,m,I,w)=>{l("tilde",h,E,v,m,I,w);let g;return T(v)?g="":T(m)?g=`>=${v}.0.0 <${+v+1}.0.0-0`:T(I)?g=`>=${v}.${m}.0 <${v}.${+m+1}.0-0`:w?(l("replaceTilde pr",w),g=`>=${v}.${m}.${I}-${w} <${v}.${+m+1}.0-0`):g=`>=${v}.${m}.${I} <${v}.${+m+1}.0-0`,l("tilde return",g),g})},St=(h,c)=>h.trim().split(/\s+/).map($=>yt($,c)).join(" "),yt=(h,c)=>{l("caret",h,c);const $=c.loose?i[s.CARETLOOSE]:i[s.CARET],E=c.includePrerelease?"-0":"";return h.replace($,(v,m,I,w,g)=>{l("caret",h,v,m,I,w,g);let N;return T(m)?N="":T(I)?N=`>=${m}.0.0${E} <${+m+1}.0.0-0`:T(w)?m==="0"?N=`>=${m}.${I}.0${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.0${E} <${+m+1}.0.0-0`:g?(l("replaceCaret pr",g),m==="0"?I==="0"?N=`>=${m}.${I}.${w}-${g} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}-${g} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w}-${g} <${+m+1}.0.0-0`):(l("no pr"),m==="0"?I==="0"?N=`>=${m}.${I}.${w}${E} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w} <${+m+1}.0.0-0`),l("caret return",N),N})},At=(h,c)=>(l("replaceXRanges",h,c),h.split(/\s+/).map($=>Ct($,c)).join(" ")),Ct=(h,c)=>{h=h.trim();const $=c.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return h.replace($,(E,v,m,I,w,g)=>{l("xRange",h,E,v,m,I,w,g);const N=T(m),C=N||T(I),O=C||T(w),Y=O;return v==="="&&Y&&(v=""),g=c.includePrerelease?"-0":"",N?v===">"||v==="<"?E="<0.0.0-0":E="*":v&&Y?(C&&(I=0),w=0,v===">"?(v=">=",C?(m=+m+1,I=0,w=0):(I=+I+1,w=0)):v==="<="&&(v="<",C?m=+m+1:I=+I+1),v==="<"&&(g="-0"),E=`${v+m}.${I}.${w}${g}`):C?E=`>=${m}.0.0${g} <${+m+1}.0.0-0`:O&&(E=`>=${m}.${I}.0${g} <${m}.${+I+1}.0-0`),l("xRange return",E),E})},_t=(h,c)=>(l("replaceStars",h,c),h.trim().replace(i[s.STAR],"")),Dt=(h,c)=>(l("replaceGTE0",h,c),h.trim().replace(i[c.includePrerelease?s.GTE0PRE:s.GTE0],"")),Pt=h=>(c,$,E,v,m,I,w,g,N,C,O,Y)=>(T(E)?$="":T(v)?$=`>=${E}.0.0${h?"-0":""}`:T(m)?$=`>=${E}.${v}.0${h?"-0":""}`:I?$=`>=${$}`:$=`>=${$}${h?"-0":""}`,T(N)?g="":T(C)?g=`<${+N+1}.0.0-0`:T(O)?g=`<${N}.${+C+1}.0-0`:Y?g=`<=${N}.${C}.${O}-${Y}`:h?g=`<${N}.${C}.${+O+1}-0`:g=`<=${g}`,`${$} ${g}`.trim()),bt=(h,c,$)=>{for(let E=0;E0){const v=h[E].semver;if(v.major===c.major&&v.minor===c.minor&&v.patch===c.patch)return!0}return!1}return!0};return me}var de,Ke;function le(){if(Ke)return de;Ke=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,p){if(p=r(p),f instanceof t){if(f.loose===!!p.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),l("comparator",f,p),this.options=p,this.loose=!!p.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(f){const p=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],L=f.match(p);if(!L)throw new TypeError(`Invalid comparator: ${f}`);this.operator=L[1]!==void 0?L[1]:"",this.operator==="="&&(this.operator=""),L[2]?this.semver=new u(L[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(l("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new u(f,this.options)}catch{return!1}return a(f,this.operator,this.semver,this.options)}intersects(f,p){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new i(f.value,p).test(this.value):f.operator===""?f.value===""?!0:new i(this.value,p).test(f.semver):(p=r(p),p.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||a(this.semver,"<",f.semver,p)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||a(this.semver,">",f.semver,p)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}de=t;const r=Oe,{safeRe:n,t:o}=q,a=mt,l=oe,u=y,i=b();return de}const on=b(),an=(e,t,r)=>{try{t=new on(t,r)}catch{return!1}return t.test(e)};var ce=an;const ln=b(),cn=(e,t)=>new ln(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var un=cn;const fn=y,hn=b(),pn=(e,t,r)=>{let n=null,o=null,a=null;try{a=new hn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===-1)&&(n=l,o=new fn(n,r))}),n};var En=pn;const mn=y,dn=b(),$n=(e,t,r)=>{let n=null,o=null,a=null;try{a=new dn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===1)&&(n=l,o=new mn(n,r))}),n};var Rn=$n;const $e=y,vn=b(),qe=ae,In=(e,t)=>{e=new vn(e,t);let r=new $e("0.0.0");if(e.test(r)||(r=new $e("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n{const u=new $e(l.semver.version);switch(l.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!a||qe(u,a))&&(a=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),a&&(!r||qe(r,a))&&(r=a)}return r&&e.test(r)?r:null};var gn=In;const Ln=b(),wn=(e,t)=>{try{return new Ln(e,t).range||"*"}catch{return null}};var Nn=wn;const Tn=y,dt=le(),{ANY:On}=dt,Sn=b(),yn=ce,ze=ae,Ze=ye,An=Ce,Cn=Ae,_n=(e,t,r,n)=>{e=new Tn(e,n),t=new Sn(t,n);let o,a,l,u,i;switch(r){case">":o=ze,a=An,l=Ze,u=">",i=">=";break;case"<":o=Ze,a=Cn,l=ze,u="<",i="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yn(e,t,n))return!1;for(let s=0;s{d.semver===On&&(d=new dt(">=0.0.0")),p=p||d,L=L||d,o(d.semver,p.semver,n)?p=d:l(d.semver,L.semver,n)&&(L=d)}),p.operator===u||p.operator===i||(!L.operator||L.operator===u)&&a(e,L.semver))return!1;if(L.operator===i&&l(e,L.semver))return!1}return!0};var _e=_n;const Dn=_e,Pn=(e,t,r)=>Dn(e,t,">",r);var bn=Pn;const Un=_e,kn=(e,t,r)=>Un(e,t,"<",r);var Fn=kn;const Je=b(),Gn=(e,t,r)=>(e=new Je(e,r),t=new Je(t,r),e.intersects(t,r));var jn=Gn;const Mn=ce,Xn=P;var Vn=(e,t,r)=>{const n=[];let o=null,a=null;const l=e.sort((f,p)=>Xn(f,p,r));for(const f of l)Mn(f,t,r)?(a=f,o||(o=f)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);const u=[];for(const[f,p]of n)f===p?u.push(f):!p&&f===l[0]?u.push("*"):p?f===l[0]?u.push(`<=${p}`):u.push(`${f} - ${p}`):u.push(`>=${f}`);const i=u.join(" || "),s=typeof t.raw=="string"?t.raw:String(t);return i.length{if(e===t)return!0;e=new Qe(e,r),t=new Qe(t,r);let n=!1;e:for(const o of e.set){for(const a of t.set){const l=Wn(o,a,r);if(n=n||l!==null,l)continue e}if(n)return!1}return!0},Yn=[new De(">=0.0.0-0")],et=[new De(">=0.0.0")],Wn=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Re){if(t.length===1&&t[0].semver===Re)return!0;r.includePrerelease?e=Yn:e=et}if(t.length===1&&t[0].semver===Re){if(r.includePrerelease)return!0;t=et}const n=new Set;let o,a;for(const d of e)d.operator===">"||d.operator===">="?o=tt(o,d,r):d.operator==="<"||d.operator==="<="?a=rt(a,d,r):n.add(d.semver);if(n.size>1)return null;let l;if(o&&a){if(l=Pe(o.semver,a.semver,r),l>0)return null;if(l===0&&(o.operator!==">="||a.operator!=="<="))return null}for(const d of n){if(o&&!W(d,String(o),r)||a&&!W(d,String(a),r))return null;for(const R of t)if(!W(d,String(R),r))return!1;return!0}let u,i,s,f,p=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,L=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const d of t){if(f=f||d.operator===">"||d.operator===">=",s=s||d.operator==="<"||d.operator==="<=",o){if(L&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===L.major&&d.semver.minor===L.minor&&d.semver.patch===L.patch&&(L=!1),d.operator===">"||d.operator===">="){if(u=tt(o,d,r),u===d&&u!==o)return!1}else if(o.operator===">="&&!W(o.semver,String(d),r))return!1}if(a){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator==="<"||d.operator==="<="){if(i=rt(a,d,r),i===d&&i!==a)return!1}else if(a.operator==="<="&&!W(a.semver,String(d),r))return!1}if(!d.operator&&(a||o)&&l!==0)return!1}return!(o&&s&&!a&&l!==0||a&&f&&!o&&l!==0||L||p)},tt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},rt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Hn=xn;const ve=q,nt=ie,Bn=y,st=ht,Kn=X,qn=er,zn=nr,Zn=ir,Jn=ar,Qn=ur,es=pr,ts=dr,rs=vr,ns=P,ss=wr,is=Or,os=Se,as=Cr,ls=Pr,cs=ae,us=ye,fs=pt,hs=Et,ps=Ae,Es=Ce,ms=mt,ds=rn,$s=le(),Rs=b(),vs=ce,Is=un,gs=En,Ls=Rn,ws=gn,Ns=Nn,Ts=_e,Os=bn,Ss=Fn,ys=jn,As=Vn,Cs=Hn;var _s={parse:Kn,valid:qn,clean:zn,inc:Zn,diff:Jn,major:Qn,minor:es,patch:ts,prerelease:rs,compare:ns,rcompare:ss,compareLoose:is,compareBuild:os,sort:as,rsort:ls,gt:cs,lt:us,eq:fs,neq:hs,gte:ps,lte:Es,cmp:ms,coerce:ds,Comparator:$s,Range:Rs,satisfies:vs,toComparators:Is,maxSatisfying:gs,minSatisfying:Ls,minVersion:ws,validRange:Ns,outside:Ts,gtr:Os,ltr:Ss,intersects:ys,simplifyRange:As,subset:Cs,SemVer:Bn,re:ve.re,src:ve.src,tokens:ve.t,SEMVER_SPEC_VERSION:nt.SEMVER_SPEC_VERSION,RELEASE_TYPES:nt.RELEASE_TYPES,compareIdentifiers:st.compareIdentifiers,rcompareIdentifiers:st.rcompareIdentifiers};const it=Ft(_s);var S={};/** +import{_ as Ut}from"./iframe-DlGnF_r8.js";import{_ as kt}from"./chunk-H6MOWX77-DTQOW814.js";import{r as k,R as B}from"./index-Cs7sjTYM.js";import{g as Ft}from"./_commonjsHelpers-BosuxZz1.js";import{r as Gt}from"./index-Cf-03bMR.js";import"../sb-preview/runtime.js";var Ne={exports:{}};const jt="2.0.0",ut=256,Mt=Number.MAX_SAFE_INTEGER||9007199254740991,Xt=16,Vt=ut-6,xt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ie={MAX_LENGTH:ut,MAX_SAFE_COMPONENT_LENGTH:Xt,MAX_SAFE_BUILD_LENGTH:Vt,MAX_SAFE_INTEGER:Mt,RELEASE_TYPES:xt,SEMVER_SPEC_VERSION:jt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ee={};const Yt=typeof process=="object"&&Ee&&Ee.NODE_DEBUG&&/\bsemver\b/i.test(Ee.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var oe=Yt;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=ie,a=oe;t=e.exports={};const l=t.re=[],u=t.safeRe=[],i=t.src=[],s=t.t={};let f=0;const p="[a-zA-Z0-9-]",L=[["\\s",1],["\\d",o],[p,n]],d=F=>{for(const[D,G]of L)F=F.split(`${D}*`).join(`${D}{0,${G}}`).split(`${D}+`).join(`${D}{1,${G}}`);return F},R=(F,D,G)=>{const pe=d(D),T=f++;a(F,T,D),s[F]=T,i[T]=D,l[T]=new RegExp(D,G?"g":void 0),u[T]=new RegExp(pe,G?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),R("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${p}+`),R("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),R("FULL",`^${i[s.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),R("LOOSE",`^${i[s.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),R("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),R("COERCE",`${i[s.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",i[s.COERCEPLAIN]+`(?:${i[s.PRERELEASE]})?(?:${i[s.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",i[s.COERCE],!0),R("COERCERTLFULL",i[s.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",R("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",R("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ne,Ne.exports);var q=Ne.exports;const Wt=Object.freeze({loose:!0}),Ht=Object.freeze({}),Bt=e=>e?typeof e!="object"?Wt:e:Ht;var Oe=Bt;const Ge=/^[0-9]+$/,ft=(e,t)=>{const r=Ge.test(e),n=Ge.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eft(t,e);var ht={compareIdentifiers:ft,rcompareIdentifiers:Kt};const J=oe,{MAX_LENGTH:je,MAX_SAFE_INTEGER:Q}=ie,{safeRe:Me,t:Xe}=q,qt=Oe,{compareIdentifiers:M}=ht;let zt=class U{constructor(t,r){if(r=qt(r),t instanceof U){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>je)throw new TypeError(`version is longer than ${je} characters`);J("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Me[Xe.LOOSE]:Me[Xe.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Q||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Q||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Q||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const a=+o;if(a>=0&&a=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let a=[r,o];n===!1&&(a=[r]),M(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var y=zt;const Ve=y,Zt=(e,t,r=!1)=>{if(e instanceof Ve)return e;try{return new Ve(e,t)}catch(n){if(!r)return null;throw n}};var X=Zt;const Jt=X,Qt=(e,t)=>{const r=Jt(e,t);return r?r.version:null};var er=Qt;const tr=X,rr=(e,t)=>{const r=tr(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var nr=rr;const xe=y,sr=(e,t,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new xe(e instanceof xe?e.version:e,r).inc(t,n,o).version}catch{return null}};var ir=sr;const Ye=X,or=(e,t)=>{const r=Ye(e,null,!0),n=Ye(t,null,!0),o=r.compare(n);if(o===0)return null;const a=o>0,l=a?r:n,u=a?n:r,i=!!l.prerelease.length;if(!!u.prerelease.length&&!i)return!u.patch&&!u.minor?"major":l.patch?"patch":l.minor?"minor":"major";const f=i?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};var ar=or;const lr=y,cr=(e,t)=>new lr(e,t).major;var ur=cr;const fr=y,hr=(e,t)=>new fr(e,t).minor;var pr=hr;const Er=y,mr=(e,t)=>new Er(e,t).patch;var dr=mr;const $r=X,Rr=(e,t)=>{const r=$r(e,t);return r&&r.prerelease.length?r.prerelease:null};var vr=Rr;const We=y,Ir=(e,t,r)=>new We(e,r).compare(new We(t,r));var P=Ir;const gr=P,Lr=(e,t,r)=>gr(t,e,r);var wr=Lr;const Nr=P,Tr=(e,t)=>Nr(e,t,!0);var Or=Tr;const He=y,Sr=(e,t,r)=>{const n=new He(e,r),o=new He(t,r);return n.compare(o)||n.compareBuild(o)};var Se=Sr;const yr=Se,Ar=(e,t)=>e.sort((r,n)=>yr(r,n,t));var Cr=Ar;const _r=Se,Dr=(e,t)=>e.sort((r,n)=>_r(n,r,t));var Pr=Dr;const br=P,Ur=(e,t,r)=>br(e,t,r)>0;var ae=Ur;const kr=P,Fr=(e,t,r)=>kr(e,t,r)<0;var ye=Fr;const Gr=P,jr=(e,t,r)=>Gr(e,t,r)===0;var pt=jr;const Mr=P,Xr=(e,t,r)=>Mr(e,t,r)!==0;var Et=Xr;const Vr=P,xr=(e,t,r)=>Vr(e,t,r)>=0;var Ae=xr;const Yr=P,Wr=(e,t,r)=>Yr(e,t,r)<=0;var Ce=Wr;const Hr=pt,Br=Et,Kr=ae,qr=Ae,zr=ye,Zr=Ce,Jr=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Hr(e,r,n);case"!=":return Br(e,r,n);case">":return Kr(e,r,n);case">=":return qr(e,r,n);case"<":return zr(e,r,n);case"<=":return Zr(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var mt=Jr;const Qr=y,en=X,{safeRe:ee,t:te}=q,tn=(e,t)=>{if(e instanceof Qr)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?ee[te.COERCEFULL]:ee[te.COERCE]);else{const i=t.includePrerelease?ee[te.COERCERTLFULL]:ee[te.COERCERTL];let s;for(;(s=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||s.index+s[0].length!==r.index+r[0].length)&&(r=s),i.lastIndex=s.index+s[1].length+s[2].length;i.lastIndex=-1}if(r===null)return null;const n=r[2],o=r[3]||"0",a=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return en(`${n}.${o}.${a}${l}${u}`,t)};var rn=tn;class nn{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(t,r)}return this}}var sn=nn,me,Be;function b(){if(Be)return me;Be=1;const e=/\s+/g;class t{constructor(c,$){if($=o($),c instanceof t)return c.loose===!!$.loose&&c.includePrerelease===!!$.includePrerelease?c:new t(c.raw,$);if(c instanceof a)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=c.trim().replace(e," "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(v=>!F(v[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const v of this.set)if(v.length===1&&D(v[0])){this.set=[v];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c0&&(this.formatted+="||");const $=this.set[c];for(let E=0;E<$.length;E++)E>0&&(this.formatted+=" "),this.formatted+=$[E].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){const E=((this.options.includePrerelease&&d)|(this.options.loose&&R))+":"+c,v=n.get(E);if(v)return v;const m=this.options.loose,I=m?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];c=c.replace(I,Pt(this.options.includePrerelease)),l("hyphen replace",c),c=c.replace(i[s.COMPARATORTRIM],f),l("comparator trim",c),c=c.replace(i[s.TILDETRIM],p),l("tilde trim",c),c=c.replace(i[s.CARETTRIM],L),l("caret trim",c);let w=c.split(" ").map(O=>pe(O,this.options)).join(" ").split(/\s+/).map(O=>Dt(O,this.options));m&&(w=w.filter(O=>(l("loose invalid filter",O,this.options),!!O.match(i[s.COMPARATORLOOSE])))),l("range list",w);const g=new Map,N=w.map(O=>new a(O,this.options));for(const O of N){if(F(O))return[O];g.set(O.value,O)}g.size>1&&g.has("")&&g.delete("");const C=[...g.values()];return n.set(E,C),C}intersects(c,$){if(!(c instanceof t))throw new TypeError("a Range is required");return this.set.some(E=>G(E,$)&&c.set.some(v=>G(v,$)&&E.every(m=>v.every(I=>m.intersects(I,$)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new u(c,this.options)}catch{return!1}for(let $=0;$h.value==="<0.0.0-0",D=h=>h.value==="",G=(h,c)=>{let $=!0;const E=h.slice();let v=E.pop();for(;$&&E.length;)$=E.every(m=>v.intersects(m,c)),v=E.pop();return $},pe=(h,c)=>(l("comp",h,c),h=St(h,c),l("caret",h),h=Tt(h,c),l("tildes",h),h=At(h,c),l("xrange",h),h=_t(h,c),l("stars",h),h),T=h=>!h||h.toLowerCase()==="x"||h==="*",Tt=(h,c)=>h.trim().split(/\s+/).map($=>Ot($,c)).join(" "),Ot=(h,c)=>{const $=c.loose?i[s.TILDELOOSE]:i[s.TILDE];return h.replace($,(E,v,m,I,w)=>{l("tilde",h,E,v,m,I,w);let g;return T(v)?g="":T(m)?g=`>=${v}.0.0 <${+v+1}.0.0-0`:T(I)?g=`>=${v}.${m}.0 <${v}.${+m+1}.0-0`:w?(l("replaceTilde pr",w),g=`>=${v}.${m}.${I}-${w} <${v}.${+m+1}.0-0`):g=`>=${v}.${m}.${I} <${v}.${+m+1}.0-0`,l("tilde return",g),g})},St=(h,c)=>h.trim().split(/\s+/).map($=>yt($,c)).join(" "),yt=(h,c)=>{l("caret",h,c);const $=c.loose?i[s.CARETLOOSE]:i[s.CARET],E=c.includePrerelease?"-0":"";return h.replace($,(v,m,I,w,g)=>{l("caret",h,v,m,I,w,g);let N;return T(m)?N="":T(I)?N=`>=${m}.0.0${E} <${+m+1}.0.0-0`:T(w)?m==="0"?N=`>=${m}.${I}.0${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.0${E} <${+m+1}.0.0-0`:g?(l("replaceCaret pr",g),m==="0"?I==="0"?N=`>=${m}.${I}.${w}-${g} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}-${g} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w}-${g} <${+m+1}.0.0-0`):(l("no pr"),m==="0"?I==="0"?N=`>=${m}.${I}.${w}${E} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w} <${+m+1}.0.0-0`),l("caret return",N),N})},At=(h,c)=>(l("replaceXRanges",h,c),h.split(/\s+/).map($=>Ct($,c)).join(" ")),Ct=(h,c)=>{h=h.trim();const $=c.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return h.replace($,(E,v,m,I,w,g)=>{l("xRange",h,E,v,m,I,w,g);const N=T(m),C=N||T(I),O=C||T(w),Y=O;return v==="="&&Y&&(v=""),g=c.includePrerelease?"-0":"",N?v===">"||v==="<"?E="<0.0.0-0":E="*":v&&Y?(C&&(I=0),w=0,v===">"?(v=">=",C?(m=+m+1,I=0,w=0):(I=+I+1,w=0)):v==="<="&&(v="<",C?m=+m+1:I=+I+1),v==="<"&&(g="-0"),E=`${v+m}.${I}.${w}${g}`):C?E=`>=${m}.0.0${g} <${+m+1}.0.0-0`:O&&(E=`>=${m}.${I}.0${g} <${m}.${+I+1}.0-0`),l("xRange return",E),E})},_t=(h,c)=>(l("replaceStars",h,c),h.trim().replace(i[s.STAR],"")),Dt=(h,c)=>(l("replaceGTE0",h,c),h.trim().replace(i[c.includePrerelease?s.GTE0PRE:s.GTE0],"")),Pt=h=>(c,$,E,v,m,I,w,g,N,C,O,Y)=>(T(E)?$="":T(v)?$=`>=${E}.0.0${h?"-0":""}`:T(m)?$=`>=${E}.${v}.0${h?"-0":""}`:I?$=`>=${$}`:$=`>=${$}${h?"-0":""}`,T(N)?g="":T(C)?g=`<${+N+1}.0.0-0`:T(O)?g=`<${N}.${+C+1}.0-0`:Y?g=`<=${N}.${C}.${O}-${Y}`:h?g=`<${N}.${C}.${+O+1}-0`:g=`<=${g}`,`${$} ${g}`.trim()),bt=(h,c,$)=>{for(let E=0;E0){const v=h[E].semver;if(v.major===c.major&&v.minor===c.minor&&v.patch===c.patch)return!0}return!1}return!0};return me}var de,Ke;function le(){if(Ke)return de;Ke=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,p){if(p=r(p),f instanceof t){if(f.loose===!!p.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),l("comparator",f,p),this.options=p,this.loose=!!p.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(f){const p=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],L=f.match(p);if(!L)throw new TypeError(`Invalid comparator: ${f}`);this.operator=L[1]!==void 0?L[1]:"",this.operator==="="&&(this.operator=""),L[2]?this.semver=new u(L[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(l("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new u(f,this.options)}catch{return!1}return a(f,this.operator,this.semver,this.options)}intersects(f,p){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new i(f.value,p).test(this.value):f.operator===""?f.value===""?!0:new i(this.value,p).test(f.semver):(p=r(p),p.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||a(this.semver,"<",f.semver,p)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||a(this.semver,">",f.semver,p)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}de=t;const r=Oe,{safeRe:n,t:o}=q,a=mt,l=oe,u=y,i=b();return de}const on=b(),an=(e,t,r)=>{try{t=new on(t,r)}catch{return!1}return t.test(e)};var ce=an;const ln=b(),cn=(e,t)=>new ln(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var un=cn;const fn=y,hn=b(),pn=(e,t,r)=>{let n=null,o=null,a=null;try{a=new hn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===-1)&&(n=l,o=new fn(n,r))}),n};var En=pn;const mn=y,dn=b(),$n=(e,t,r)=>{let n=null,o=null,a=null;try{a=new dn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===1)&&(n=l,o=new mn(n,r))}),n};var Rn=$n;const $e=y,vn=b(),qe=ae,In=(e,t)=>{e=new vn(e,t);let r=new $e("0.0.0");if(e.test(r)||(r=new $e("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n{const u=new $e(l.semver.version);switch(l.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!a||qe(u,a))&&(a=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),a&&(!r||qe(r,a))&&(r=a)}return r&&e.test(r)?r:null};var gn=In;const Ln=b(),wn=(e,t)=>{try{return new Ln(e,t).range||"*"}catch{return null}};var Nn=wn;const Tn=y,dt=le(),{ANY:On}=dt,Sn=b(),yn=ce,ze=ae,Ze=ye,An=Ce,Cn=Ae,_n=(e,t,r,n)=>{e=new Tn(e,n),t=new Sn(t,n);let o,a,l,u,i;switch(r){case">":o=ze,a=An,l=Ze,u=">",i=">=";break;case"<":o=Ze,a=Cn,l=ze,u="<",i="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yn(e,t,n))return!1;for(let s=0;s{d.semver===On&&(d=new dt(">=0.0.0")),p=p||d,L=L||d,o(d.semver,p.semver,n)?p=d:l(d.semver,L.semver,n)&&(L=d)}),p.operator===u||p.operator===i||(!L.operator||L.operator===u)&&a(e,L.semver))return!1;if(L.operator===i&&l(e,L.semver))return!1}return!0};var _e=_n;const Dn=_e,Pn=(e,t,r)=>Dn(e,t,">",r);var bn=Pn;const Un=_e,kn=(e,t,r)=>Un(e,t,"<",r);var Fn=kn;const Je=b(),Gn=(e,t,r)=>(e=new Je(e,r),t=new Je(t,r),e.intersects(t,r));var jn=Gn;const Mn=ce,Xn=P;var Vn=(e,t,r)=>{const n=[];let o=null,a=null;const l=e.sort((f,p)=>Xn(f,p,r));for(const f of l)Mn(f,t,r)?(a=f,o||(o=f)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);const u=[];for(const[f,p]of n)f===p?u.push(f):!p&&f===l[0]?u.push("*"):p?f===l[0]?u.push(`<=${p}`):u.push(`${f} - ${p}`):u.push(`>=${f}`);const i=u.join(" || "),s=typeof t.raw=="string"?t.raw:String(t);return i.length{if(e===t)return!0;e=new Qe(e,r),t=new Qe(t,r);let n=!1;e:for(const o of e.set){for(const a of t.set){const l=Wn(o,a,r);if(n=n||l!==null,l)continue e}if(n)return!1}return!0},Yn=[new De(">=0.0.0-0")],et=[new De(">=0.0.0")],Wn=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Re){if(t.length===1&&t[0].semver===Re)return!0;r.includePrerelease?e=Yn:e=et}if(t.length===1&&t[0].semver===Re){if(r.includePrerelease)return!0;t=et}const n=new Set;let o,a;for(const d of e)d.operator===">"||d.operator===">="?o=tt(o,d,r):d.operator==="<"||d.operator==="<="?a=rt(a,d,r):n.add(d.semver);if(n.size>1)return null;let l;if(o&&a){if(l=Pe(o.semver,a.semver,r),l>0)return null;if(l===0&&(o.operator!==">="||a.operator!=="<="))return null}for(const d of n){if(o&&!W(d,String(o),r)||a&&!W(d,String(a),r))return null;for(const R of t)if(!W(d,String(R),r))return!1;return!0}let u,i,s,f,p=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,L=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const d of t){if(f=f||d.operator===">"||d.operator===">=",s=s||d.operator==="<"||d.operator==="<=",o){if(L&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===L.major&&d.semver.minor===L.minor&&d.semver.patch===L.patch&&(L=!1),d.operator===">"||d.operator===">="){if(u=tt(o,d,r),u===d&&u!==o)return!1}else if(o.operator===">="&&!W(o.semver,String(d),r))return!1}if(a){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator==="<"||d.operator==="<="){if(i=rt(a,d,r),i===d&&i!==a)return!1}else if(a.operator==="<="&&!W(a.semver,String(d),r))return!1}if(!d.operator&&(a||o)&&l!==0)return!1}return!(o&&s&&!a&&l!==0||a&&f&&!o&&l!==0||L||p)},tt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},rt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Hn=xn;const ve=q,nt=ie,Bn=y,st=ht,Kn=X,qn=er,zn=nr,Zn=ir,Jn=ar,Qn=ur,es=pr,ts=dr,rs=vr,ns=P,ss=wr,is=Or,os=Se,as=Cr,ls=Pr,cs=ae,us=ye,fs=pt,hs=Et,ps=Ae,Es=Ce,ms=mt,ds=rn,$s=le(),Rs=b(),vs=ce,Is=un,gs=En,Ls=Rn,ws=gn,Ns=Nn,Ts=_e,Os=bn,Ss=Fn,ys=jn,As=Vn,Cs=Hn;var _s={parse:Kn,valid:qn,clean:zn,inc:Zn,diff:Jn,major:Qn,minor:es,patch:ts,prerelease:rs,compare:ns,rcompare:ss,compareLoose:is,compareBuild:os,sort:as,rsort:ls,gt:cs,lt:us,eq:fs,neq:hs,gte:ps,lte:Es,cmp:ms,coerce:ds,Comparator:$s,Range:Rs,satisfies:vs,toComparators:Is,maxSatisfying:gs,minSatisfying:Ls,minVersion:ws,validRange:Ns,outside:Ts,gtr:Os,ltr:Ss,intersects:ys,simplifyRange:As,subset:Cs,SemVer:Bn,re:ve.re,src:ve.src,tokens:ve.t,SEMVER_SPEC_VERSION:nt.SEMVER_SPEC_VERSION,RELEASE_TYPES:nt.RELEASE_TYPES,compareIdentifiers:st.compareIdentifiers,rcompareIdentifiers:st.rcompareIdentifiers};const it=Ft(_s);var S={};/** * @license React * react-dom-test-utils.production.min.js * diff --git a/assets/iframe-DNiO07zA.js b/assets/iframe-DlGnF_r8.js similarity index 91% rename from assets/iframe-DNiO07zA.js rename to assets/iframe-DlGnF_r8.js index 6d58ca3..1b9edf2 100644 --- a/assets/iframe-DNiO07zA.js +++ b/assets/iframe-DlGnF_r8.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AToZPage.stories-2AzkpY6_.js","./index-Cs7sjTYM.js","./_commonjsHelpers-BosuxZz1.js","./AToZ-I8WUbTja.js","./clsx-B-dksMZM.js","./factory-DehWrhRO.js","./Base-fHV16vWU.js","./Header-DvYoS66I.js","./polymorphic-factory-23vJzvkj.js","./VisuallyHidden-DonKESKA.js","./Container-CLMOXAcg.js","./Card-BdsyOK3X.js","./Heading-CyaQd0b1.js","./Grid-ByltY6Yt.js","./Main-SfhCX5gI.js","./List-CYw2Jq5A.js","./Link-3M5Wh4Hz.js","./Footer-DHj6TXKM.js","./AskUsersForTheirNhsNumber.stories-Bfx7XXDI.js","./Input-BJX2G2ww.js","./FormGroup-B9DHxyUj.js","./Hint-BOkj5kLS.js","./Label-DmVPi9oB.js","./ErrorMessage-DpQgiRoT.js","./use-id-with-prefix-gaKPBBex.js","./Button-DyX-YaNQ.js","./HelpUsersDecideWhenAndWhereToGetCare.stories-Bxo29CFv.js","./Card.stories-nJkoQcAl.js","./Paragraph--C7hMoDT.js","./MiniHub.stories-BPaGQyW-.js","./Breadcrumb-CA9SzzGB.js","./ContentsList-BMl9NSgH.js","./Pagination-BseG1_zr.js","./ReassureUsersThatAPageIsUpToDate.stories-qKhm10WC.js","./StartPage.stories-rDJ9j-pe.js","./Details.stories-DBziNtmq.js","./Details-DBkQxJTB.js","./common-fnmo4YYw.js","./DoDontList.stories-BYpSRIQa.js","./Expander.stories-DKtmOGOe.js","./Figure.stories-BSTLa-KO.js","./Hero.stories-BvryGrKb.js","./InsetText.stories-CxHH-lox.js","./SummaryList.stories-hfcB0mEV.js","./Table.stories-C2vY41c0.js","./Tabs.stories-DghlShRZ.js","./Tag.stories-CS0MyBer.js","./WarningCallout.stories-DvmtyYSl.js","./Label.stories--k818Bec.js","./Button.stories-p3enL-Rn.js","./CharacterCount.stories-CeRXe4TH.js","./Textarea-ByqgL1Tt.js","./Checkbox.stories-Cm832pv5.js","./DateInput.stories-B69r9BU_.js","./index-CjQa9iMn.js","./ErrorMessage.stories-Uzt810Un.js","./ErrorSummary.stories-DjrztDTU.js","./Fieldset.stories-gxePkIwZ.js","./Hint.stories-D69OHV1t.js","./Input.stories-CKRTJlUr.js","./Radio.stories-ZzjHWTI-.js","./Select.stories-CXSb8_oQ.js","./Textarea.stories-DNNZ89Il.js","./AToZ.stories-D-06lqPF.js","./ActionLink.stories-BL8qLi-j.js","./BackLink.stories-eNsN1iKl.js","./BackToTopLink.stories-D4biMYXW.js","./Breadcrumb.stories-DRtKDvg9.js","./ContentsList.stories-Ciu6ihsi.js","./Footer.stories-CO-vS-KK.js","./Header.stories-DP58B_vt.js","./Pagination.stories-YNDX4L-f.js","./SkipLink.stories-DhRDPLrc.js","./Container.stories-TX5H6JTm.js","./Grid.stories-Dtcp7iZJ.js","./Main.stories-fUXEP3nc.js","./ReadingWidth.stories-B-dgjZtt.js","./HeadingCaption.stories-Ag9cCmYN.js","./Heading.stories-C3mNFR8X.js","./Link.stories-DUzGyd6m.js","./List.stories-Dt29DHPl.js","./Paragraph.stories-CSocUMFj.js","./SectionBreak.stories-CvVvSmdu.js","./entry-preview-CA20xXfl.js","./chunk-H6MOWX77-DTQOW814.js","./index-Cf-03bMR.js","./entry-preview-docs-gnDLKA_v.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./preview-BhhEZcNS.js","./index-D-8MO0q_.js","./preview-D77C14du.js","./preview-BWzBA1C2.js","./preview-Cy1e5wwv.js","./preview-L5PQUish.css"])))=>i.map(i=>d[i]); -import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const o of e)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function m(e){const o={};return e.integrity&&(o.integrity=e.integrity),e.referrerPolicy&&(o.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?o.credentials="include":e.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function c(e){if(e.ep)return;e.ep=!0;const o=m(e);fetch(e.href,o)}})();const T="modulepreload",R=function(r,_){return new URL(r,_).href},O={},t=function(_,m,c){let e=Promise.resolve();if(m&&m.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),d=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));e=Promise.allSettled(m.map(n=>{if(n=R(n,c),n in O)return;O[n]=!0;const p=n.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(!!c)for(let u=i.length-1;u>=0;u--){const l=i[u];if(l.href===n&&(!p||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${y}`))return;const a=document.createElement("link");if(a.rel=p?"stylesheet":T,p||(a.as="script"),a.crossOrigin="",a.href=n,d&&a.setAttribute("nonce",d),document.head.appendChild(a),p)return new Promise((u,l)=>{a.addEventListener("load",u),a.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${n}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return e.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return _().catch(o)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,E=L({page:"preview"});P.setChannel(E);window.__STORYBOOK_ADDONS_CHANNEL__=E;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const v={"./src/__stories__/patterns/AToZPage.stories.tsx":async()=>t(()=>import("./AToZPage.stories-2AzkpY6_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./src/__stories__/patterns/AskUsersForTheirNhsNumber.stories.tsx":async()=>t(()=>import("./AskUsersForTheirNhsNumber.stories-Bfx7XXDI.js"),__vite__mapDeps([18,1,2,19,20,21,4,22,6,23,9,8,24,5,7,10,14,13,25]),import.meta.url),"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx":async()=>t(()=>import("./HelpUsersDecideWhenAndWhereToGetCare.stories-Bxo29CFv.js"),__vite__mapDeps([26,27,1,2,11,5,4,8,6,12,13,9,15,16,28]),import.meta.url),"./src/__stories__/patterns/MiniHub.stories.tsx":async()=>t(()=>import("./MiniHub.stories-BPaGQyW-.js"),__vite__mapDeps([29,1,2,7,6,8,4,5,9,10,14,13,12,15,17,30,31,28,32]),import.meta.url),"./src/__stories__/patterns/ReassureUsersThatAPageIsUpToDate.stories.tsx":async()=>t(()=>import("./ReassureUsersThatAPageIsUpToDate.stories-qKhm10WC.js"),__vite__mapDeps([33,1,2,28,4]),import.meta.url),"./src/__stories__/patterns/StartPage.stories.tsx":async()=>t(()=>import("./StartPage.stories-rDJ9j-pe.js"),__vite__mapDeps([34,1,2,7,6,8,4,5,9,10,14,13,12,17,30,28,32,25]),import.meta.url),"./src/components/content-presentation/details/Details.stories.tsx":async()=>t(()=>import("./Details.stories-DBziNtmq.js"),__vite__mapDeps([35,1,2,36,4,5,37]),import.meta.url),"./src/components/content-presentation/do-dont-list/DoDontList.stories.tsx":async()=>t(()=>import("./DoDontList.stories-BYpSRIQa.js"),__vite__mapDeps([38,1,2,4,6,8,5]),import.meta.url),"./src/components/content-presentation/expander/Expander.stories.tsx":async()=>t(()=>import("./Expander.stories-DKtmOGOe.js"),__vite__mapDeps([39,1,2,36,4,5,37,16,6,8]),import.meta.url),"./src/components/content-presentation/figure/Figure.stories.tsx":async()=>t(()=>import("./Figure.stories-BSTLa-KO.js"),__vite__mapDeps([40,1,2,6,8,4,5]),import.meta.url),"./src/components/content-presentation/hero/Hero.stories.tsx":async()=>t(()=>import("./Hero.stories-BvryGrKb.js"),__vite__mapDeps([41,1,2,5,4,10,6,13,12,8,28]),import.meta.url),"./src/components/content-presentation/inset-text/InsetText.stories.tsx":async()=>t(()=>import("./InsetText.stories-CxHH-lox.js"),__vite__mapDeps([42,1,2,4,9,6,8]),import.meta.url),"./src/components/content-presentation/summary-list/SummaryList.stories.tsx":async()=>t(()=>import("./SummaryList.stories-hfcB0mEV.js"),__vite__mapDeps([43,1,2,6,9,8,4,5]),import.meta.url),"./src/components/content-presentation/table/Table.stories.tsx":async()=>t(()=>import("./Table.stories-C2vY41c0.js"),__vite__mapDeps([44,1,2,5,4,6]),import.meta.url),"./src/components/content-presentation/tabs/Tabs.stories.tsx":async()=>t(()=>import("./Tabs.stories-DghlShRZ.js"),__vite__mapDeps([45,1,2,6,8,4,5]),import.meta.url),"./src/components/content-presentation/tag/Tag.stories.tsx":async()=>t(()=>import("./Tag.stories-CS0MyBer.js"),__vite__mapDeps([46,1,2,4]),import.meta.url),"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx":async()=>t(()=>import("./WarningCallout.stories-DvmtyYSl.js"),__vite__mapDeps([47,1,2,9,6,8,4,5]),import.meta.url),"./src/components/core/label/Label.stories.tsx":async()=>t(()=>import("./Label.stories--k818Bec.js"),__vite__mapDeps([48,1,2,22,4,6]),import.meta.url),"./src/components/form-elements/button/Button.stories.tsx":async()=>t(()=>import("./Button.stories-p3enL-Rn.js"),__vite__mapDeps([49,1,2,25,6,8,4]),import.meta.url),"./src/components/form-elements/character-count/CharacterCount.stories.tsx":async()=>t(()=>import("./CharacterCount.stories-CeRXe4TH.js"),__vite__mapDeps([50,1,2,51,20,21,4,22,6,23,9,8,24,5]),import.meta.url),"./src/components/form-elements/checkbox/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-Cm832pv5.js"),__vite__mapDeps([52,20,21,1,2,4,22,6,23,9,8,24,5,37,19]),import.meta.url),"./src/components/form-elements/date-input/DateInput.stories.tsx":async()=>t(()=>import("./DateInput.stories-B69r9BU_.js"),__vite__mapDeps([53,1,2,20,21,4,22,6,23,9,8,24,5,19,54]),import.meta.url),"./src/components/form-elements/error-message/ErrorMessage.stories.tsx":async()=>t(()=>import("./ErrorMessage.stories-Uzt810Un.js"),__vite__mapDeps([55,1,2,23,4,9,6,8]),import.meta.url),"./src/components/form-elements/error-summary/ErrorSummary.stories.tsx":async()=>t(()=>import("./ErrorSummary.stories-DjrztDTU.js"),__vite__mapDeps([56,1,2,5,24,4,12,6,8,15]),import.meta.url),"./src/components/form-elements/fieldset/Fieldset.stories.tsx":async()=>t(()=>import("./Fieldset.stories-gxePkIwZ.js"),__vite__mapDeps([57,1,2,20,21,4,22,6,23,9,8,24,5,19]),import.meta.url),"./src/components/form-elements/hint/Hint.stories.tsx":async()=>t(()=>import("./Hint.stories-D69OHV1t.js"),__vite__mapDeps([58,1,2,21,4]),import.meta.url),"./src/components/form-elements/input/Input.stories.tsx":async()=>t(()=>import("./Input.stories-CKRTJlUr.js"),__vite__mapDeps([59,19,1,2,20,21,4,22,6,23,9,8,24,5]),import.meta.url),"./src/components/form-elements/radio/Radio.stories.tsx":async()=>t(()=>import("./Radio.stories-ZzjHWTI-.js"),__vite__mapDeps([60,20,21,1,2,4,22,6,23,9,8,24,5,37,19]),import.meta.url),"./src/components/form-elements/select/Select.stories.tsx":async()=>t(()=>import("./Select.stories-CXSb8_oQ.js"),__vite__mapDeps([61,1,2,20,21,4,22,6,23,9,8,24,5]),import.meta.url),"./src/components/form-elements/textarea/Textarea.stories.tsx":async()=>t(()=>import("./Textarea.stories-DNNZ89Il.js"),__vite__mapDeps([62,1,2,51,20,21,4,22,6,23,9,8,24,5]),import.meta.url),"./src/components/navigation/a-to-z/AToZ.stories.tsx":async()=>t(()=>import("./AToZ.stories-D-06lqPF.js"),__vite__mapDeps([63,1,2,3,4,5,6]),import.meta.url),"./src/components/navigation/action-link/ActionLink.stories.tsx":async()=>t(()=>import("./ActionLink.stories-BL8qLi-j.js"),__vite__mapDeps([64,1,2,6,8,4]),import.meta.url),"./src/components/navigation/back-link/BackLink.stories.tsx":async()=>t(()=>import("./BackLink.stories-eNsN1iKl.js"),__vite__mapDeps([65,1,2,54,6,8,4]),import.meta.url),"./src/components/navigation/back-to-top-link/BackToTopLink.stories.tsx":async()=>t(()=>import("./BackToTopLink.stories-D4biMYXW.js"),__vite__mapDeps([66,1,2,4,8,6]),import.meta.url),"./src/components/navigation/breadcrumb/Breadcrumb.stories.tsx":async()=>t(()=>import("./Breadcrumb.stories-DRtKDvg9.js"),__vite__mapDeps([67,1,2,30,9,6,8,4,5]),import.meta.url),"./src/components/navigation/card/Card.stories.tsx":async()=>t(()=>import("./Card.stories-nJkoQcAl.js"),__vite__mapDeps([27,1,2,11,5,4,8,6,12,13,9,15,16,28]),import.meta.url),"./src/components/navigation/contents-list/ContentsList.stories.tsx":async()=>t(()=>import("./ContentsList.stories-Ciu6ihsi.js"),__vite__mapDeps([68,1,2,31,6,9,8,4,5]),import.meta.url),"./src/components/navigation/footer/Footer.stories.tsx":async()=>t(()=>import("./Footer.stories-CO-vS-KK.js"),__vite__mapDeps([69,1,2,17,9,6,8,4,5]),import.meta.url),"./src/components/navigation/header/Header.stories.tsx":async()=>t(()=>import("./Header.stories-DP58B_vt.js"),__vite__mapDeps([70,1,2,7,6,8,4,5,9]),import.meta.url),"./src/components/navigation/pagination/Pagination.stories.tsx":async()=>t(()=>import("./Pagination.stories-YNDX4L-f.js"),__vite__mapDeps([71,1,2,32,9,6,8,4,5]),import.meta.url),"./src/components/navigation/skip-link/SkipLink.stories.tsx":async()=>t(()=>import("./SkipLink.stories-DhRDPLrc.js"),__vite__mapDeps([72,1,2,4,5,7,6,8,9,14,12,10]),import.meta.url),"./src/components/styles/layout/container/Container.stories.tsx":async()=>t(()=>import("./Container.stories-TX5H6JTm.js"),__vite__mapDeps([73,1,2,10,4]),import.meta.url),"./src/components/styles/layout/grid/Grid.stories.tsx":async()=>t(()=>import("./Grid.stories-Dtcp7iZJ.js"),__vite__mapDeps([74,1,2,13,4]),import.meta.url),"./src/components/styles/layout/main/Main.stories.tsx":async()=>t(()=>import("./Main.stories-fUXEP3nc.js"),__vite__mapDeps([75,1,2,14,4,10]),import.meta.url),"./src/components/styles/layout/reading-width/ReadingWidth.stories.tsx":async()=>t(()=>import("./ReadingWidth.stories-B-dgjZtt.js"),__vite__mapDeps([76,1,2,4,10]),import.meta.url),"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx":async()=>t(()=>import("./HeadingCaption.stories-Ag9cCmYN.js"),__vite__mapDeps([77,1,2,4,12,6,8]),import.meta.url),"./src/components/styles/typography/heading/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-C3mNFR8X.js"),__vite__mapDeps([78,1,2,12,6,8,4]),import.meta.url),"./src/components/styles/typography/link/Link.stories.tsx":async()=>t(()=>import("./Link.stories-DUzGyd6m.js"),__vite__mapDeps([79,1,2,16,6,8,4]),import.meta.url),"./src/components/styles/typography/list/List.stories.tsx":async()=>t(()=>import("./List.stories-Dt29DHPl.js"),__vite__mapDeps([80,1,2,15,6,8,4,12]),import.meta.url),"./src/components/styles/typography/paragraph/Paragraph.stories.tsx":async()=>t(()=>import("./Paragraph.stories-CSocUMFj.js"),__vite__mapDeps([81,1,2,28,4]),import.meta.url),"./src/components/styles/typography/section-break/SectionBreak.stories.tsx":async()=>t(()=>import("./SectionBreak.stories-CvVvSmdu.js"),__vite__mapDeps([82,1,2,4]),import.meta.url)};async function I(r){return v[r]()}const{composeConfigs:D,PreviewWeb:V,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,A=async(r=[])=>{const _=await Promise.all([r.at(0)??t(()=>import("./entry-preview-CA20xXfl.js"),__vite__mapDeps([83,84,1,2,85]),import.meta.url),r.at(1)??t(()=>import("./entry-preview-docs-gnDLKA_v.js"),__vite__mapDeps([86,84,87,2,88,1]),import.meta.url),r.at(2)??t(()=>import("./preview-BhhEZcNS.js"),__vite__mapDeps([89,90]),import.meta.url),r.at(3)??t(()=>import("./preview-CQyeGLte.js"),[],import.meta.url),r.at(4)??t(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),r.at(5)??t(()=>import("./preview-D77C14du.js"),__vite__mapDeps([91,88]),import.meta.url),r.at(6)??t(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r.at(7)??t(()=>import("./preview-CFgKly6U.js"),[],import.meta.url),r.at(8)??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([92,88]),import.meta.url),r.at(9)??t(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r.at(10)??t(()=>import("./preview-C8jL4tzB.js"),[],import.meta.url),r.at(11)??t(()=>import("./preview-Cy1e5wwv.js"),__vite__mapDeps([93,1,2,94]),import.meta.url)]);return D(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new V(I,A);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=["./AToZPage.stories-CbLJfTrj.js","./index-Cs7sjTYM.js","./_commonjsHelpers-BosuxZz1.js","./AToZ-I8WUbTja.js","./clsx-B-dksMZM.js","./factory-DehWrhRO.js","./Base-fHV16vWU.js","./Header-Cf-fYG7g.js","./polymorphic-factory-23vJzvkj.js","./VisuallyHidden-DonKESKA.js","./Container-CLMOXAcg.js","./Card-BdsyOK3X.js","./Heading-CyaQd0b1.js","./Grid-ByltY6Yt.js","./Main-SfhCX5gI.js","./List-CYw2Jq5A.js","./Link-3M5Wh4Hz.js","./Footer-DHj6TXKM.js","./AskUsersForTheirNhsNumber.stories-CR7V1aaU.js","./Input-BJX2G2ww.js","./FormGroup-B9DHxyUj.js","./Hint-BOkj5kLS.js","./Label-DmVPi9oB.js","./ErrorMessage-DpQgiRoT.js","./use-id-with-prefix-gaKPBBex.js","./Button-DyX-YaNQ.js","./HelpUsersDecideWhenAndWhereToGetCare.stories-Bxo29CFv.js","./Card.stories-nJkoQcAl.js","./Paragraph--C7hMoDT.js","./MiniHub.stories-DzP4FoXl.js","./Breadcrumb-CA9SzzGB.js","./ContentsList-BMl9NSgH.js","./Pagination-BseG1_zr.js","./ReassureUsersThatAPageIsUpToDate.stories-qKhm10WC.js","./StartPage.stories-WGAAcSiO.js","./Details.stories-DBziNtmq.js","./Details-DBkQxJTB.js","./common-fnmo4YYw.js","./DoDontList.stories-BYpSRIQa.js","./Expander.stories-DKtmOGOe.js","./Figure.stories-BSTLa-KO.js","./Hero.stories-BvryGrKb.js","./InsetText.stories-CxHH-lox.js","./SummaryList.stories-hfcB0mEV.js","./Table.stories-CnrppOip.js","./Tabs.stories-DghlShRZ.js","./Tag.stories-CS0MyBer.js","./WarningCallout.stories-DvmtyYSl.js","./Label.stories--k818Bec.js","./Button.stories-p3enL-Rn.js","./CharacterCount.stories-CeRXe4TH.js","./Textarea-ByqgL1Tt.js","./Checkbox.stories-Cm832pv5.js","./DateInput.stories-B69r9BU_.js","./index-CjQa9iMn.js","./ErrorMessage.stories-Uzt810Un.js","./ErrorSummary.stories-DjrztDTU.js","./Fieldset.stories-gxePkIwZ.js","./Hint.stories-D69OHV1t.js","./Input.stories-CKRTJlUr.js","./Radio.stories-ZzjHWTI-.js","./Select.stories-CXSb8_oQ.js","./Textarea.stories-DNNZ89Il.js","./AToZ.stories-D-06lqPF.js","./ActionLink.stories-BL8qLi-j.js","./BackLink.stories-eNsN1iKl.js","./BackToTopLink.stories-D4biMYXW.js","./Breadcrumb.stories-DRtKDvg9.js","./ContentsList.stories-Ciu6ihsi.js","./Footer.stories-CO-vS-KK.js","./Header.stories-BQyVvZLf.js","./Pagination.stories-YNDX4L-f.js","./SkipLink.stories-D9BdPxxe.js","./Container.stories-TX5H6JTm.js","./Grid.stories-Dtcp7iZJ.js","./Main.stories-fUXEP3nc.js","./ReadingWidth.stories-B-dgjZtt.js","./HeadingCaption.stories-Ag9cCmYN.js","./Heading.stories-C3mNFR8X.js","./Link.stories-DUzGyd6m.js","./List.stories-Dt29DHPl.js","./Paragraph.stories-CSocUMFj.js","./SectionBreak.stories-CvVvSmdu.js","./entry-preview-CiikGAVF.js","./chunk-H6MOWX77-DTQOW814.js","./index-Cf-03bMR.js","./entry-preview-docs-gnDLKA_v.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./preview-BhhEZcNS.js","./index-D-8MO0q_.js","./preview-D77C14du.js","./preview-BWzBA1C2.js","./preview-Cy1e5wwv.js","./preview-L5PQUish.css"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const o of e)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function m(e){const o={};return e.integrity&&(o.integrity=e.integrity),e.referrerPolicy&&(o.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?o.credentials="include":e.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function c(e){if(e.ep)return;e.ep=!0;const o=m(e);fetch(e.href,o)}})();const T="modulepreload",R=function(r,_){return new URL(r,_).href},O={},t=function(_,m,c){let e=Promise.resolve();if(m&&m.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),d=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));e=Promise.allSettled(m.map(n=>{if(n=R(n,c),n in O)return;O[n]=!0;const p=n.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(!!c)for(let u=i.length-1;u>=0;u--){const l=i[u];if(l.href===n&&(!p||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${y}`))return;const a=document.createElement("link");if(a.rel=p?"stylesheet":T,p||(a.as="script"),a.crossOrigin="",a.href=n,d&&a.setAttribute("nonce",d),document.head.appendChild(a),p)return new Promise((u,l)=>{a.addEventListener("load",u),a.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${n}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return e.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return _().catch(o)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,E=L({page:"preview"});P.setChannel(E);window.__STORYBOOK_ADDONS_CHANNEL__=E;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const v={"./src/__stories__/patterns/AToZPage.stories.tsx":async()=>t(()=>import("./AToZPage.stories-CbLJfTrj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./src/__stories__/patterns/AskUsersForTheirNhsNumber.stories.tsx":async()=>t(()=>import("./AskUsersForTheirNhsNumber.stories-CR7V1aaU.js"),__vite__mapDeps([18,1,2,19,20,21,4,22,6,23,9,8,24,5,7,10,14,13,25]),import.meta.url),"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx":async()=>t(()=>import("./HelpUsersDecideWhenAndWhereToGetCare.stories-Bxo29CFv.js"),__vite__mapDeps([26,27,1,2,11,5,4,8,6,12,13,9,15,16,28]),import.meta.url),"./src/__stories__/patterns/MiniHub.stories.tsx":async()=>t(()=>import("./MiniHub.stories-DzP4FoXl.js"),__vite__mapDeps([29,1,2,7,6,8,4,5,9,10,14,13,12,15,17,30,31,28,32]),import.meta.url),"./src/__stories__/patterns/ReassureUsersThatAPageIsUpToDate.stories.tsx":async()=>t(()=>import("./ReassureUsersThatAPageIsUpToDate.stories-qKhm10WC.js"),__vite__mapDeps([33,1,2,28,4]),import.meta.url),"./src/__stories__/patterns/StartPage.stories.tsx":async()=>t(()=>import("./StartPage.stories-WGAAcSiO.js"),__vite__mapDeps([34,1,2,7,6,8,4,5,9,10,14,13,12,17,30,28,32,25]),import.meta.url),"./src/components/content-presentation/details/Details.stories.tsx":async()=>t(()=>import("./Details.stories-DBziNtmq.js"),__vite__mapDeps([35,1,2,36,4,5,37]),import.meta.url),"./src/components/content-presentation/do-dont-list/DoDontList.stories.tsx":async()=>t(()=>import("./DoDontList.stories-BYpSRIQa.js"),__vite__mapDeps([38,1,2,4,6,8,5]),import.meta.url),"./src/components/content-presentation/expander/Expander.stories.tsx":async()=>t(()=>import("./Expander.stories-DKtmOGOe.js"),__vite__mapDeps([39,1,2,36,4,5,37,16,6,8]),import.meta.url),"./src/components/content-presentation/figure/Figure.stories.tsx":async()=>t(()=>import("./Figure.stories-BSTLa-KO.js"),__vite__mapDeps([40,1,2,6,8,4,5]),import.meta.url),"./src/components/content-presentation/hero/Hero.stories.tsx":async()=>t(()=>import("./Hero.stories-BvryGrKb.js"),__vite__mapDeps([41,1,2,5,4,10,6,13,12,8,28]),import.meta.url),"./src/components/content-presentation/inset-text/InsetText.stories.tsx":async()=>t(()=>import("./InsetText.stories-CxHH-lox.js"),__vite__mapDeps([42,1,2,4,9,6,8]),import.meta.url),"./src/components/content-presentation/summary-list/SummaryList.stories.tsx":async()=>t(()=>import("./SummaryList.stories-hfcB0mEV.js"),__vite__mapDeps([43,1,2,6,9,8,4,5]),import.meta.url),"./src/components/content-presentation/table/Table.stories.tsx":async()=>t(()=>import("./Table.stories-CnrppOip.js"),__vite__mapDeps([44,1,2,5,4,6]),import.meta.url),"./src/components/content-presentation/tabs/Tabs.stories.tsx":async()=>t(()=>import("./Tabs.stories-DghlShRZ.js"),__vite__mapDeps([45,1,2,6,8,4,5]),import.meta.url),"./src/components/content-presentation/tag/Tag.stories.tsx":async()=>t(()=>import("./Tag.stories-CS0MyBer.js"),__vite__mapDeps([46,1,2,4]),import.meta.url),"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx":async()=>t(()=>import("./WarningCallout.stories-DvmtyYSl.js"),__vite__mapDeps([47,1,2,9,6,8,4,5]),import.meta.url),"./src/components/core/label/Label.stories.tsx":async()=>t(()=>import("./Label.stories--k818Bec.js"),__vite__mapDeps([48,1,2,22,4,6]),import.meta.url),"./src/components/form-elements/button/Button.stories.tsx":async()=>t(()=>import("./Button.stories-p3enL-Rn.js"),__vite__mapDeps([49,1,2,25,6,8,4]),import.meta.url),"./src/components/form-elements/character-count/CharacterCount.stories.tsx":async()=>t(()=>import("./CharacterCount.stories-CeRXe4TH.js"),__vite__mapDeps([50,1,2,51,20,21,4,22,6,23,9,8,24,5]),import.meta.url),"./src/components/form-elements/checkbox/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-Cm832pv5.js"),__vite__mapDeps([52,20,21,1,2,4,22,6,23,9,8,24,5,37,19]),import.meta.url),"./src/components/form-elements/date-input/DateInput.stories.tsx":async()=>t(()=>import("./DateInput.stories-B69r9BU_.js"),__vite__mapDeps([53,1,2,20,21,4,22,6,23,9,8,24,5,19,54]),import.meta.url),"./src/components/form-elements/error-message/ErrorMessage.stories.tsx":async()=>t(()=>import("./ErrorMessage.stories-Uzt810Un.js"),__vite__mapDeps([55,1,2,23,4,9,6,8]),import.meta.url),"./src/components/form-elements/error-summary/ErrorSummary.stories.tsx":async()=>t(()=>import("./ErrorSummary.stories-DjrztDTU.js"),__vite__mapDeps([56,1,2,5,24,4,12,6,8,15]),import.meta.url),"./src/components/form-elements/fieldset/Fieldset.stories.tsx":async()=>t(()=>import("./Fieldset.stories-gxePkIwZ.js"),__vite__mapDeps([57,1,2,20,21,4,22,6,23,9,8,24,5,19]),import.meta.url),"./src/components/form-elements/hint/Hint.stories.tsx":async()=>t(()=>import("./Hint.stories-D69OHV1t.js"),__vite__mapDeps([58,1,2,21,4]),import.meta.url),"./src/components/form-elements/input/Input.stories.tsx":async()=>t(()=>import("./Input.stories-CKRTJlUr.js"),__vite__mapDeps([59,19,1,2,20,21,4,22,6,23,9,8,24,5]),import.meta.url),"./src/components/form-elements/radio/Radio.stories.tsx":async()=>t(()=>import("./Radio.stories-ZzjHWTI-.js"),__vite__mapDeps([60,20,21,1,2,4,22,6,23,9,8,24,5,37,19]),import.meta.url),"./src/components/form-elements/select/Select.stories.tsx":async()=>t(()=>import("./Select.stories-CXSb8_oQ.js"),__vite__mapDeps([61,1,2,20,21,4,22,6,23,9,8,24,5]),import.meta.url),"./src/components/form-elements/textarea/Textarea.stories.tsx":async()=>t(()=>import("./Textarea.stories-DNNZ89Il.js"),__vite__mapDeps([62,1,2,51,20,21,4,22,6,23,9,8,24,5]),import.meta.url),"./src/components/navigation/a-to-z/AToZ.stories.tsx":async()=>t(()=>import("./AToZ.stories-D-06lqPF.js"),__vite__mapDeps([63,1,2,3,4,5,6]),import.meta.url),"./src/components/navigation/action-link/ActionLink.stories.tsx":async()=>t(()=>import("./ActionLink.stories-BL8qLi-j.js"),__vite__mapDeps([64,1,2,6,8,4]),import.meta.url),"./src/components/navigation/back-link/BackLink.stories.tsx":async()=>t(()=>import("./BackLink.stories-eNsN1iKl.js"),__vite__mapDeps([65,1,2,54,6,8,4]),import.meta.url),"./src/components/navigation/back-to-top-link/BackToTopLink.stories.tsx":async()=>t(()=>import("./BackToTopLink.stories-D4biMYXW.js"),__vite__mapDeps([66,1,2,4,8,6]),import.meta.url),"./src/components/navigation/breadcrumb/Breadcrumb.stories.tsx":async()=>t(()=>import("./Breadcrumb.stories-DRtKDvg9.js"),__vite__mapDeps([67,1,2,30,9,6,8,4,5]),import.meta.url),"./src/components/navigation/card/Card.stories.tsx":async()=>t(()=>import("./Card.stories-nJkoQcAl.js"),__vite__mapDeps([27,1,2,11,5,4,8,6,12,13,9,15,16,28]),import.meta.url),"./src/components/navigation/contents-list/ContentsList.stories.tsx":async()=>t(()=>import("./ContentsList.stories-Ciu6ihsi.js"),__vite__mapDeps([68,1,2,31,6,9,8,4,5]),import.meta.url),"./src/components/navigation/footer/Footer.stories.tsx":async()=>t(()=>import("./Footer.stories-CO-vS-KK.js"),__vite__mapDeps([69,1,2,17,9,6,8,4,5]),import.meta.url),"./src/components/navigation/header/Header.stories.tsx":async()=>t(()=>import("./Header.stories-BQyVvZLf.js"),__vite__mapDeps([70,1,2,7,6,8,4,5,9]),import.meta.url),"./src/components/navigation/pagination/Pagination.stories.tsx":async()=>t(()=>import("./Pagination.stories-YNDX4L-f.js"),__vite__mapDeps([71,1,2,32,9,6,8,4,5]),import.meta.url),"./src/components/navigation/skip-link/SkipLink.stories.tsx":async()=>t(()=>import("./SkipLink.stories-D9BdPxxe.js"),__vite__mapDeps([72,1,2,4,5,7,6,8,9,14,12,10]),import.meta.url),"./src/components/styles/layout/container/Container.stories.tsx":async()=>t(()=>import("./Container.stories-TX5H6JTm.js"),__vite__mapDeps([73,1,2,10,4]),import.meta.url),"./src/components/styles/layout/grid/Grid.stories.tsx":async()=>t(()=>import("./Grid.stories-Dtcp7iZJ.js"),__vite__mapDeps([74,1,2,13,4]),import.meta.url),"./src/components/styles/layout/main/Main.stories.tsx":async()=>t(()=>import("./Main.stories-fUXEP3nc.js"),__vite__mapDeps([75,1,2,14,4,10]),import.meta.url),"./src/components/styles/layout/reading-width/ReadingWidth.stories.tsx":async()=>t(()=>import("./ReadingWidth.stories-B-dgjZtt.js"),__vite__mapDeps([76,1,2,4,10]),import.meta.url),"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx":async()=>t(()=>import("./HeadingCaption.stories-Ag9cCmYN.js"),__vite__mapDeps([77,1,2,4,12,6,8]),import.meta.url),"./src/components/styles/typography/heading/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-C3mNFR8X.js"),__vite__mapDeps([78,1,2,12,6,8,4]),import.meta.url),"./src/components/styles/typography/link/Link.stories.tsx":async()=>t(()=>import("./Link.stories-DUzGyd6m.js"),__vite__mapDeps([79,1,2,16,6,8,4]),import.meta.url),"./src/components/styles/typography/list/List.stories.tsx":async()=>t(()=>import("./List.stories-Dt29DHPl.js"),__vite__mapDeps([80,1,2,15,6,8,4,12]),import.meta.url),"./src/components/styles/typography/paragraph/Paragraph.stories.tsx":async()=>t(()=>import("./Paragraph.stories-CSocUMFj.js"),__vite__mapDeps([81,1,2,28,4]),import.meta.url),"./src/components/styles/typography/section-break/SectionBreak.stories.tsx":async()=>t(()=>import("./SectionBreak.stories-CvVvSmdu.js"),__vite__mapDeps([82,1,2,4]),import.meta.url)};async function I(r){return v[r]()}const{composeConfigs:D,PreviewWeb:V,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,A=async(r=[])=>{const _=await Promise.all([r.at(0)??t(()=>import("./entry-preview-CiikGAVF.js"),__vite__mapDeps([83,84,1,2,85]),import.meta.url),r.at(1)??t(()=>import("./entry-preview-docs-gnDLKA_v.js"),__vite__mapDeps([86,84,87,2,88,1]),import.meta.url),r.at(2)??t(()=>import("./preview-BhhEZcNS.js"),__vite__mapDeps([89,90]),import.meta.url),r.at(3)??t(()=>import("./preview-BBeFEUqJ.js"),[],import.meta.url),r.at(4)??t(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),r.at(5)??t(()=>import("./preview-D77C14du.js"),__vite__mapDeps([91,88]),import.meta.url),r.at(6)??t(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r.at(7)??t(()=>import("./preview-CFgKly6U.js"),[],import.meta.url),r.at(8)??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([92,88]),import.meta.url),r.at(9)??t(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r.at(10)??t(()=>import("./preview-C2UrU5yZ.js"),[],import.meta.url),r.at(11)??t(()=>import("./preview-Cy1e5wwv.js"),__vite__mapDeps([93,1,2,94]),import.meta.url)]);return D(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new V(I,A);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/index-D2Hf-NHx.js b/assets/index-B7_HdyTu.js similarity index 92% rename from assets/index-D2Hf-NHx.js rename to assets/index-B7_HdyTu.js index e5510b0..996c443 100644 --- a/assets/index-D2Hf-NHx.js +++ b/assets/index-B7_HdyTu.js @@ -1 +1 @@ -import{f as c,n as T,F as b,$ as d,L as S,h as B,B as L,e as C,m as H,g as u,v as g,u as y,I,t as h,X as k,x as P,w as W,b as A,y as F,D as x,a as D,C as R,E as f,T as v,c as E,_ as M,S as N,R as q,O as w,d as O,G as U,i as Z,A as j,j as z,P as G,k as J,l as K,o as Q,p as V,q as X,r as Y,z as _,H as $,s as aa,J as sa,K as oa,M as ta,N as ea,Q as ra,U as pa,V as ia,W as na,Y as ma,Z as la,a0 as ca,a1 as Ta,a2 as ba,a3 as da,a4 as Sa,a5 as Ba,a6 as La,a7 as Ca,a8 as Ha,a9 as ua,aa as ga,ab as ya,ac as Ia,ad as ha}from"./DocsRenderer-CFRXHY34-DKgwWX3o.js";import"./iframe-DNiO07zA.js";import"../sb-preview/runtime.js";import"./index-Cs7sjTYM.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-Cf-03bMR.js";import"./index-D-8MO0q_.js";import"./index-DF3CPj03.js";import"./index-DrFu-skq.js";import"./react-18-B3Ni8Lov.js";export{c as A,T as ActionBar,b as AddonPanel,d as Badge,S as Bar,B as Blockquote,L as Button,C as ClipboardCode,H as Code,u as DL,g as Div,y as DocumentWrapper,I as EmptyTabContent,h as ErrorFormatter,k as FlexBar,P as Form,W as H1,A as H2,F as H3,x as H4,D as H5,R as H6,f as HR,v as IconButton,E as IconButtonSkeleton,M as Icons,N as Img,q as LI,w as Link,O as ListItem,U as Loader,Z as Modal,j as OL,z as P,G as Placeholder,J as Pre,K as ResetWrapper,Q as ScrollArea,V as Separator,X as Spaced,Y as Span,_ as StorybookIcon,$ as StorybookLogo,aa as Symbols,sa as SyntaxHighlighter,oa as TT,ta as TabBar,ea as TabButton,ra as TabWrapper,pa as Table,ia as Tabs,na as TabsState,ma as TooltipLinkList,la as TooltipMessage,ca as TooltipNote,Ta as UL,ba as WithTooltip,da as WithTooltipPure,Sa as Zoom,Ba as codeCommon,La as components,Ca as createCopyToClipboardFunction,Ha as getStoryHref,ua as icons,ga as interleaveSeparators,ya as nameSpaceClassNames,Ia as resetComponents,ha as withReset}; +import{f as c,n as T,F as b,$ as d,L as S,h as B,B as L,e as C,m as H,g as u,v as g,u as y,I,t as h,X as k,x as P,w as W,b as A,y as F,D as x,a as D,C as R,E as f,T as v,c as E,_ as M,S as N,R as q,O as w,d as O,G as U,i as Z,A as j,j as z,P as G,k as J,l as K,o as Q,p as V,q as X,r as Y,z as _,H as $,s as aa,J as sa,K as oa,M as ta,N as ea,Q as ra,U as pa,V as ia,W as na,Y as ma,Z as la,a0 as ca,a1 as Ta,a2 as ba,a3 as da,a4 as Sa,a5 as Ba,a6 as La,a7 as Ca,a8 as Ha,a9 as ua,aa as ga,ab as ya,ac as Ia,ad as ha}from"./DocsRenderer-CFRXHY34-DEn-Ets9.js";import"./iframe-DlGnF_r8.js";import"../sb-preview/runtime.js";import"./index-Cs7sjTYM.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-Cf-03bMR.js";import"./index-D-8MO0q_.js";import"./index-DF3CPj03.js";import"./index-DrFu-skq.js";import"./react-18-B3Ni8Lov.js";export{c as A,T as ActionBar,b as AddonPanel,d as Badge,S as Bar,B as Blockquote,L as Button,C as ClipboardCode,H as Code,u as DL,g as Div,y as DocumentWrapper,I as EmptyTabContent,h as ErrorFormatter,k as FlexBar,P as Form,W as H1,A as H2,F as H3,x as H4,D as H5,R as H6,f as HR,v as IconButton,E as IconButtonSkeleton,M as Icons,N as Img,q as LI,w as Link,O as ListItem,U as Loader,Z as Modal,j as OL,z as P,G as Placeholder,J as Pre,K as ResetWrapper,Q as ScrollArea,V as Separator,X as Spaced,Y as Span,_ as StorybookIcon,$ as StorybookLogo,aa as Symbols,sa as SyntaxHighlighter,oa as TT,ta as TabBar,ea as TabButton,ra as TabWrapper,pa as Table,ia as Tabs,na as TabsState,ma as TooltipLinkList,la as TooltipMessage,ca as TooltipNote,Ta as UL,ba as WithTooltip,da as WithTooltipPure,Sa as Zoom,Ba as codeCommon,La as components,Ca as createCopyToClipboardFunction,Ha as getStoryHref,ua as icons,ga as interleaveSeparators,ya as nameSpaceClassNames,Ia as resetComponents,ha as withReset}; diff --git a/assets/preview-CQyeGLte.js b/assets/preview-BBeFEUqJ.js similarity index 78% rename from assets/preview-CQyeGLte.js rename to assets/preview-BBeFEUqJ.js index 7c06abb..0c79cb1 100644 --- a/assets/preview-CQyeGLte.js +++ b/assets/preview-BBeFEUqJ.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-DKgwWX3o.js","./iframe-DNiO07zA.js","./index-Cs7sjTYM.js","./_commonjsHelpers-BosuxZz1.js","./index-Cf-03bMR.js","./index-D-8MO0q_.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./react-18-B3Ni8Lov.js"])))=>i.map(i=>d[i]); -import{_ as a}from"./iframe-DNiO07zA.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.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-CFRXHY34-DKgwWX3o.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-DEn-Ets9.js","./iframe-DlGnF_r8.js","./index-Cs7sjTYM.js","./_commonjsHelpers-BosuxZz1.js","./index-Cf-03bMR.js","./index-D-8MO0q_.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./react-18-B3Ni8Lov.js"])))=>i.map(i=>d[i]); +import{_ as a}from"./iframe-DlGnF_r8.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.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-CFRXHY34-DEn-Ets9.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; diff --git a/assets/preview-C8jL4tzB.js b/assets/preview-C2UrU5yZ.js similarity index 93% rename from assets/preview-C8jL4tzB.js rename to assets/preview-C2UrU5yZ.js index d459499..9b60878 100644 --- a/assets/preview-C8jL4tzB.js +++ b/assets/preview-C2UrU5yZ.js @@ -1,2 +1,2 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./axe-CnvMVRIB.js","./_commonjsHelpers-BosuxZz1.js"])))=>i.map(i=>d[i]); -import{_ as S}from"./iframe-DNiO07zA.js";import"../sb-preview/runtime.js";const{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:U}=__STORYBOOK_MODULE_GLOBAL__;var o="storybook/a11y",y=`${o}/result`,L=`${o}/request`,d=`${o}/running`,A=`${o}/error`,T=`${o}/manual`,r={RESULT:y,REQUEST:L,RUNNING:d,ERROR:A,MANUAL:T},{document:g}=U,a=f.getChannel(),l=!1,_,R={config:{},options:{}},v=async(n,e)=>{e!=null&&e.manual||await i(n,e??R)},i=async(n,e=R)=>{_=n;try{if(!l){l=!0,a.emit(r.RUNNING);let{default:t}=await S(()=>import("./axe-CnvMVRIB.js").then(N=>N.a),__vite__mapDeps([0,1]),import.meta.url),{element:m="#storybook-root",config:s,options:O={}}=e,E=g.querySelector(m);if(!E)return;t.reset(),s&&t.configure(s);let c=await t.run(E,O),u=JSON.parse(JSON.stringify(c));_===n?a.emit(r.RESULT,u):(l=!1,i(_))}}catch(t){a.emit(r.ERROR,t)}finally{l=!1}};a.on(r.REQUEST,v);a.on(r.MANUAL,i); +import{_ as S}from"./iframe-DlGnF_r8.js";import"../sb-preview/runtime.js";const{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:U}=__STORYBOOK_MODULE_GLOBAL__;var o="storybook/a11y",y=`${o}/result`,L=`${o}/request`,d=`${o}/running`,A=`${o}/error`,T=`${o}/manual`,r={RESULT:y,REQUEST:L,RUNNING:d,ERROR:A,MANUAL:T},{document:g}=U,a=f.getChannel(),l=!1,_,R={config:{},options:{}},v=async(n,e)=>{e!=null&&e.manual||await i(n,e??R)},i=async(n,e=R)=>{_=n;try{if(!l){l=!0,a.emit(r.RUNNING);let{default:t}=await S(()=>import("./axe-CnvMVRIB.js").then(N=>N.a),__vite__mapDeps([0,1]),import.meta.url),{element:m="#storybook-root",config:s,options:O={}}=e,E=g.querySelector(m);if(!E)return;t.reset(),s&&t.configure(s);let c=await t.run(E,O),u=JSON.parse(JSON.stringify(c));_===n?a.emit(r.RESULT,u):(l=!1,i(_))}}catch(t){a.emit(r.ERROR,t)}finally{l=!1}};a.on(r.REQUEST,v);a.on(r.MANUAL,i); diff --git a/iframe.html b/iframe.html index b4e3fcb..979cc2a 100644 --- a/iframe.html +++ b/iframe.html @@ -509,7 +509,7 @@ } - + diff --git a/index.json b/index.json index 0ff7bb5..5bf00d6 100644 --- a/index.json +++ b/index.json @@ -1 +1 @@ -{"v":5,"entries":{"patterns-page-types-a-to-z-page--docs":{"id":"patterns-page-types-a-to-z-page--docs","title":"Patterns/Page types/A to Z page","name":"Docs","importPath":"./src/__stories__/patterns/AToZPage.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-page-types-a-to-z-page--a-to-z-page":{"type":"story","id":"patterns-page-types-a-to-z-page--a-to-z-page","name":"A To Z Page","title":"Patterns/Page types/A to Z page","importPath":"./src/__stories__/patterns/AToZPage.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-ask-users-for-their-nhs-number--docs":{"id":"patterns-tasks-ask-users-for-their-nhs-number--docs","title":"Patterns/Tasks/Ask users for their NHS number","name":"Docs","importPath":"./src/__stories__/patterns/AskUsersForTheirNhsNumber.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-tasks-ask-users-for-their-nhs-number--ask-users-for-their-nhs-number":{"type":"story","id":"patterns-tasks-ask-users-for-their-nhs-number--ask-users-for-their-nhs-number","name":"Ask Users For Their Nhs Number","title":"Patterns/Tasks/Ask users for their NHS number","importPath":"./src/__stories__/patterns/AskUsersForTheirNhsNumber.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-help-users-decide-when-and-where-to-get-care--docs":{"id":"patterns-tasks-help-users-decide-when-and-where-to-get-care--docs","title":"Patterns/Tasks/Help users decide when and where to get care","name":"Docs","importPath":"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-tasks-help-users-decide-when-and-where-to-get-care--non-urgent":{"type":"story","id":"patterns-tasks-help-users-decide-when-and-where-to-get-care--non-urgent","name":"Non Urgent","title":"Patterns/Tasks/Help users decide when and where to get care","importPath":"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-help-users-decide-when-and-where-to-get-care--urgent":{"type":"story","id":"patterns-tasks-help-users-decide-when-and-where-to-get-care--urgent","name":"Urgent","title":"Patterns/Tasks/Help users decide when and where to get care","importPath":"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-help-users-decide-when-and-where-to-get-care--emergency":{"type":"story","id":"patterns-tasks-help-users-decide-when-and-where-to-get-care--emergency","name":"Emergency","title":"Patterns/Tasks/Help users decide when and where to get care","importPath":"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx","tags":["dev","test","autodocs"]},"patterns-page-types-mini-hub-page--docs":{"id":"patterns-page-types-mini-hub-page--docs","title":"Patterns/Page types/Mini-hub page","name":"Docs","importPath":"./src/__stories__/patterns/MiniHub.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-page-types-mini-hub-page--mini-hub":{"type":"story","id":"patterns-page-types-mini-hub-page--mini-hub","name":"Mini Hub","title":"Patterns/Page types/Mini-hub page","importPath":"./src/__stories__/patterns/MiniHub.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-reassure-users-that-a-page-is-up-to-date--docs":{"id":"patterns-tasks-reassure-users-that-a-page-is-up-to-date--docs","title":"Patterns/Tasks/Reassure users that a page is up to date","name":"Docs","importPath":"./src/__stories__/patterns/ReassureUsersThatAPageIsUpToDate.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-tasks-reassure-users-that-a-page-is-up-to-date--reassure-users-that-a-page-is-up-to-date":{"type":"story","id":"patterns-tasks-reassure-users-that-a-page-is-up-to-date--reassure-users-that-a-page-is-up-to-date","name":"Reassure Users That A Page Is Up To Date","title":"Patterns/Tasks/Reassure users that a page is up to date","importPath":"./src/__stories__/patterns/ReassureUsersThatAPageIsUpToDate.stories.tsx","tags":["dev","test","autodocs"]},"patterns-page-types-start-page--docs":{"id":"patterns-page-types-start-page--docs","title":"Patterns/Page types/Start page","name":"Docs","importPath":"./src/__stories__/patterns/StartPage.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-page-types-start-page--mini-hub":{"type":"story","id":"patterns-page-types-start-page--mini-hub","name":"Mini Hub","title":"Patterns/Page types/Start page","importPath":"./src/__stories__/patterns/StartPage.stories.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-details--docs":{"id":"components-content-presentation-details--docs","title":"Components/Content Presentation/Details","name":"Docs","importPath":"./src/components/content-presentation/details/Details.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-details--default":{"type":"story","id":"components-content-presentation-details--default","name":"Default","title":"Components/Content Presentation/Details","importPath":"./src/components/content-presentation/details/Details.stories.tsx","componentPath":"./src/components/content-presentation/details/Details.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-do-don-t-list--docs":{"id":"components-content-presentation-do-don-t-list--docs","title":"Components/Content Presentation/Do Don't List","name":"Docs","importPath":"./src/components/content-presentation/do-dont-list/DoDontList.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-do-don-t-list--do-list":{"type":"story","id":"components-content-presentation-do-don-t-list--do-list","name":"Do List","title":"Components/Content Presentation/Do Don't List","importPath":"./src/components/content-presentation/do-dont-list/DoDontList.stories.tsx","componentPath":"./src/components/content-presentation/do-dont-list/DoDontList.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-do-don-t-list--dont-list":{"type":"story","id":"components-content-presentation-do-don-t-list--dont-list","name":"Dont List","title":"Components/Content Presentation/Do Don't List","importPath":"./src/components/content-presentation/do-dont-list/DoDontList.stories.tsx","componentPath":"./src/components/content-presentation/do-dont-list/DoDontList.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-expander--docs":{"id":"components-content-presentation-expander--docs","title":"Components/Content Presentation/Expander","name":"Docs","importPath":"./src/components/content-presentation/expander/Expander.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-expander--single-expander":{"type":"story","id":"components-content-presentation-expander--single-expander","name":"Single Expander","title":"Components/Content Presentation/Expander","importPath":"./src/components/content-presentation/expander/Expander.stories.tsx","componentPath":"./src/components/content-presentation/expander/Expander.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-expander--more-than-one-expander":{"type":"story","id":"components-content-presentation-expander--more-than-one-expander","name":"More Than One Expander","title":"Components/Content Presentation/Expander","importPath":"./src/components/content-presentation/expander/Expander.stories.tsx","componentPath":"./src/components/content-presentation/expander/Expander.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-figure--docs":{"id":"components-content-presentation-figure--docs","title":"Components/Content Presentation/Figure","name":"Docs","importPath":"./src/components/content-presentation/figure/Figure.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-figure--image-with-caption":{"type":"story","id":"components-content-presentation-figure--image-with-caption","name":"Image With Caption","title":"Components/Content Presentation/Figure","importPath":"./src/components/content-presentation/figure/Figure.stories.tsx","componentPath":"./src/components/content-presentation/figure/Figure.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-figure--image-without-caption":{"type":"story","id":"components-content-presentation-figure--image-without-caption","name":"Image Without Caption","title":"Components/Content Presentation/Figure","importPath":"./src/components/content-presentation/figure/Figure.stories.tsx","componentPath":"./src/components/content-presentation/figure/Figure.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-hero--docs":{"id":"components-content-presentation-hero--docs","title":"Components/Content Presentation/Hero","name":"Docs","importPath":"./src/components/content-presentation/hero/Hero.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-hero--with-content-only":{"type":"story","id":"components-content-presentation-hero--with-content-only","name":"With Content Only","title":"Components/Content Presentation/Hero","importPath":"./src/components/content-presentation/hero/Hero.stories.tsx","componentPath":"./src/components/content-presentation/hero/Hero.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-hero--with-image-content":{"type":"story","id":"components-content-presentation-hero--with-image-content","name":"With Image Content","title":"Components/Content Presentation/Hero","importPath":"./src/components/content-presentation/hero/Hero.stories.tsx","componentPath":"./src/components/content-presentation/hero/Hero.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-hero--with-image-only":{"type":"story","id":"components-content-presentation-hero--with-image-only","name":"With Image Only","title":"Components/Content Presentation/Hero","importPath":"./src/components/content-presentation/hero/Hero.stories.tsx","componentPath":"./src/components/content-presentation/hero/Hero.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-inset-text--docs":{"id":"components-content-presentation-inset-text--docs","title":"Components/Content Presentation/Inset Text","name":"Docs","importPath":"./src/components/content-presentation/inset-text/InsetText.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-inset-text--default":{"type":"story","id":"components-content-presentation-inset-text--default","name":"Default","title":"Components/Content Presentation/Inset Text","importPath":"./src/components/content-presentation/inset-text/InsetText.stories.tsx","componentPath":"./src/components/content-presentation/inset-text/InsetText.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-summary-list--docs":{"id":"components-content-presentation-summary-list--docs","title":"Components/Content Presentation/Summary List","name":"Docs","importPath":"./src/components/content-presentation/summary-list/SummaryList.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-summary-list--default":{"type":"story","id":"components-content-presentation-summary-list--default","name":"Default","title":"Components/Content Presentation/Summary List","importPath":"./src/components/content-presentation/summary-list/SummaryList.stories.tsx","componentPath":"./src/components/content-presentation/summary-list/SummaryList.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-table--docs":{"id":"components-content-presentation-table--docs","title":"Components/Content Presentation/Table","name":"Docs","importPath":"./src/components/content-presentation/table/Table.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-table--two-column":{"type":"story","id":"components-content-presentation-table--two-column","name":"Two Column","title":"Components/Content Presentation/Table","importPath":"./src/components/content-presentation/table/Table.stories.tsx","componentPath":"./src/components/content-presentation/table/Table.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-table--three-column":{"type":"story","id":"components-content-presentation-table--three-column","name":"Three Column","title":"Components/Content Presentation/Table","importPath":"./src/components/content-presentation/table/Table.stories.tsx","componentPath":"./src/components/content-presentation/table/Table.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-tabs--docs":{"id":"components-content-presentation-tabs--docs","title":"Components/Content Presentation/Tabs","name":"Docs","importPath":"./src/components/content-presentation/tabs/Tabs.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-tabs--default":{"type":"story","id":"components-content-presentation-tabs--default","name":"Default","title":"Components/Content Presentation/Tabs","importPath":"./src/components/content-presentation/tabs/Tabs.stories.tsx","componentPath":"./src/components/content-presentation/tabs/Tabs.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-tag--docs":{"id":"components-content-presentation-tag--docs","title":"Components/Content Presentation/Tag","name":"Docs","importPath":"./src/components/content-presentation/tag/Tag.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-tag--default":{"type":"story","id":"components-content-presentation-tag--default","name":"Default","title":"Components/Content Presentation/Tag","importPath":"./src/components/content-presentation/tag/Tag.stories.tsx","componentPath":"./src/components/content-presentation/tag/Tag.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-warning-callout--docs":{"id":"components-content-presentation-warning-callout--docs","title":"Components/Content Presentation/Warning Callout","name":"Docs","importPath":"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-warning-callout--default":{"type":"story","id":"components-content-presentation-warning-callout--default","name":"Default","title":"Components/Content Presentation/Warning Callout","importPath":"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx","componentPath":"./src/components/content-presentation/warning-callout/WarningCallout.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-warning-callout--with-no-visually-hidden-text":{"type":"story","id":"components-content-presentation-warning-callout--with-no-visually-hidden-text","name":"With No Visually Hidden Text","title":"Components/Content Presentation/Warning Callout","importPath":"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx","componentPath":"./src/components/content-presentation/warning-callout/WarningCallout.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-warning-callout--with-different-heading-levels":{"type":"story","id":"components-content-presentation-warning-callout--with-different-heading-levels","name":"With Different Heading Levels","title":"Components/Content Presentation/Warning Callout","importPath":"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx","componentPath":"./src/components/content-presentation/warning-callout/WarningCallout.tsx","tags":["dev","test","autodocs"]},"components-core-label--docs":{"id":"components-core-label--docs","title":"Components/Core/Label","name":"Docs","importPath":"./src/components/core/label/Label.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-core-label--default":{"type":"story","id":"components-core-label--default","name":"Default","title":"Components/Core/Label","importPath":"./src/components/core/label/Label.stories.tsx","componentPath":"./src/components/core/label/Label.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--docs":{"id":"components-form-elements-button--docs","title":"Components/Form Elements/Button","name":"Docs","importPath":"./src/components/form-elements/button/Button.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-button--primary":{"type":"story","id":"components-form-elements-button--primary","name":"Primary","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--secondary":{"type":"story","id":"components-form-elements-button--secondary","name":"Secondary","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--reverse":{"type":"story","id":"components-form-elements-button--reverse","name":"Reverse","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--warning":{"type":"story","id":"components-form-elements-button--warning","name":"Warning","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--primary-button-as-link":{"type":"story","id":"components-form-elements-button--primary-button-as-link","name":"Primary Button As Link","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--secondary-button-as-link":{"type":"story","id":"components-form-elements-button--secondary-button-as-link","name":"Secondary Button As Link","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--reverse-button-as-link":{"type":"story","id":"components-form-elements-button--reverse-button-as-link","name":"Reverse Button As Link","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--warning-button-as-link":{"type":"story","id":"components-form-elements-button--warning-button-as-link","name":"Warning Button As Link","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-character-count--docs":{"id":"components-form-elements-character-count--docs","title":"Components/Form Elements/Character Count","name":"Docs","importPath":"./src/components/form-elements/character-count/CharacterCount.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-character-count--with-max-characters":{"type":"story","id":"components-form-elements-character-count--with-max-characters","name":"With Max Characters","title":"Components/Form Elements/Character Count","importPath":"./src/components/form-elements/character-count/CharacterCount.stories.tsx","componentPath":"./src/components/form-elements/character-count/CharacterCount.tsx","tags":["dev","test","autodocs"]},"components-form-elements-character-count--with-max-words":{"type":"story","id":"components-form-elements-character-count--with-max-words","name":"With Max Words","title":"Components/Form Elements/Character Count","importPath":"./src/components/form-elements/character-count/CharacterCount.stories.tsx","componentPath":"./src/components/form-elements/character-count/CharacterCount.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--docs":{"id":"components-form-elements-checkbox--docs","title":"Components/Form Elements/Checkbox","name":"Docs","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-checkbox--default":{"type":"story","id":"components-form-elements-checkbox--default","name":"Default","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-hint":{"type":"story","id":"components-form-elements-checkbox--with-hint","name":"With Hint","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-error":{"type":"story","id":"components-form-elements-checkbox--with-error","name":"With Error","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-item-hint":{"type":"story","id":"components-form-elements-checkbox--with-item-hint","name":"With Item Hint","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-exclusive-option":{"type":"story","id":"components-form-elements-checkbox--with-exclusive-option","name":"With Exclusive Option","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-conditional-content":{"type":"story","id":"components-form-elements-checkbox--with-conditional-content","name":"With Conditional Content","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-date-input--docs":{"id":"components-form-elements-date-input--docs","title":"Components/Form Elements/Date Input","name":"Docs","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-date-input--default":{"type":"story","id":"components-form-elements-date-input--default","name":"Default","title":"Components/Form Elements/Date Input","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","componentPath":"./src/components/form-elements/date-input/DateInput.tsx","tags":["dev","test","autodocs"]},"components-form-elements-date-input--with-error":{"type":"story","id":"components-form-elements-date-input--with-error","name":"With Error","title":"Components/Form Elements/Date Input","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","componentPath":"./src/components/form-elements/date-input/DateInput.tsx","tags":["dev","test","autodocs"]},"components-form-elements-date-input--with-error-object":{"type":"story","id":"components-form-elements-date-input--with-error-object","name":"With Error Object","title":"Components/Form Elements/Date Input","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","componentPath":"./src/components/form-elements/date-input/DateInput.tsx","tags":["dev","test","autodocs"]},"components-form-elements-date-input--disabled":{"type":"story","id":"components-form-elements-date-input--disabled","name":"Disabled","title":"Components/Form Elements/Date Input","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","componentPath":"./src/components/form-elements/date-input/DateInput.tsx","tags":["dev","test","autodocs"]},"components-form-elements-error-message--docs":{"id":"components-form-elements-error-message--docs","title":"Components/Form Elements/Error Message","name":"Docs","importPath":"./src/components/form-elements/error-message/ErrorMessage.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-error-message--default":{"type":"story","id":"components-form-elements-error-message--default","name":"Default","title":"Components/Form Elements/Error Message","importPath":"./src/components/form-elements/error-message/ErrorMessage.stories.tsx","componentPath":"./src/components/form-elements/error-message/ErrorMessage.tsx","tags":["dev","test","autodocs"]},"components-form-elements-error-summary--docs":{"id":"components-form-elements-error-summary--docs","title":"Components/Form Elements/Error Summary","name":"Docs","importPath":"./src/components/form-elements/error-summary/ErrorSummary.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-error-summary--example":{"type":"story","id":"components-form-elements-error-summary--example","name":"Example","title":"Components/Form Elements/Error Summary","importPath":"./src/components/form-elements/error-summary/ErrorSummary.stories.tsx","componentPath":"./src/components/form-elements/error-summary/ErrorSummary.tsx","tags":["dev","test","autodocs"]},"components-form-elements-fieldset--docs":{"id":"components-form-elements-fieldset--docs","title":"Components/Form Elements/Fieldset","name":"Docs","importPath":"./src/components/form-elements/fieldset/Fieldset.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-fieldset--example":{"type":"story","id":"components-form-elements-fieldset--example","name":"Example","title":"Components/Form Elements/Fieldset","importPath":"./src/components/form-elements/fieldset/Fieldset.stories.tsx","componentPath":"./src/components/form-elements/fieldset/Fieldset.tsx","tags":["dev","test","autodocs"]},"components-form-elements-fieldset--with-page-heading-legend":{"type":"story","id":"components-form-elements-fieldset--with-page-heading-legend","name":"With Page Heading Legend","title":"Components/Form Elements/Fieldset","importPath":"./src/components/form-elements/fieldset/Fieldset.stories.tsx","componentPath":"./src/components/form-elements/fieldset/Fieldset.tsx","tags":["dev","test","autodocs"]},"components-form-elements-hint--docs":{"id":"components-form-elements-hint--docs","title":"Components/Form Elements/Hint","name":"Docs","importPath":"./src/components/form-elements/hint/Hint.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-hint--default":{"type":"story","id":"components-form-elements-hint--default","name":"Default","title":"Components/Form Elements/Hint","importPath":"./src/components/form-elements/hint/Hint.stories.tsx","componentPath":"./src/components/form-elements/hint/Hint.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--docs":{"id":"components-form-elements-input--docs","title":"Components/Form Elements/Input","name":"Docs","importPath":"./src/components/form-elements/input/Input.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-input--default":{"type":"story","id":"components-form-elements-input--default","name":"Default","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-fixed-width":{"type":"story","id":"components-form-elements-input--with-fixed-width","name":"With Fixed Width","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-fluid-width":{"type":"story","id":"components-form-elements-input--with-fluid-width","name":"With Fluid Width","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-hint":{"type":"story","id":"components-form-elements-input--with-hint","name":"With Hint","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-error":{"type":"story","id":"components-form-elements-input--with-error","name":"With Error","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--whole-numbers":{"type":"story","id":"components-form-elements-input--whole-numbers","name":"Whole Numbers","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-prefix-and-suffix":{"type":"story","id":"components-form-elements-input--with-prefix-and-suffix","name":"With Prefix And Suffix","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-prefix":{"type":"story","id":"components-form-elements-input--with-prefix","name":"With Prefix","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-suffix":{"type":"story","id":"components-form-elements-input--with-suffix","name":"With Suffix","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-prefix-suffix-and-error":{"type":"story","id":"components-form-elements-input--with-prefix-suffix-and-error","name":"With Prefix Suffix And Error","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--docs":{"id":"components-form-elements-radio--docs","title":"Components/Form Elements/Radio","name":"Docs","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-radio--default":{"type":"story","id":"components-form-elements-radio--default","name":"Default","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--inline":{"type":"story","id":"components-form-elements-radio--inline","name":"Inline","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-hint":{"type":"story","id":"components-form-elements-radio--with-hint","name":"With Hint","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-error":{"type":"story","id":"components-form-elements-radio--with-error","name":"With Error","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-item-hint":{"type":"story","id":"components-form-elements-radio--with-item-hint","name":"With Item Hint","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-divider":{"type":"story","id":"components-form-elements-radio--with-divider","name":"With Divider","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-conditional-content":{"type":"story","id":"components-form-elements-radio--with-conditional-content","name":"With Conditional Content","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-select--docs":{"id":"components-form-elements-select--docs","title":"Components/Form Elements/Select","name":"Docs","importPath":"./src/components/form-elements/select/Select.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-select--default":{"type":"story","id":"components-form-elements-select--default","name":"Default","title":"Components/Form Elements/Select","importPath":"./src/components/form-elements/select/Select.stories.tsx","componentPath":"./src/components/form-elements/select/Select.tsx","tags":["dev","test","autodocs"]},"components-form-elements-select--with-hint":{"type":"story","id":"components-form-elements-select--with-hint","name":"With Hint","title":"Components/Form Elements/Select","importPath":"./src/components/form-elements/select/Select.stories.tsx","componentPath":"./src/components/form-elements/select/Select.tsx","tags":["dev","test","autodocs"]},"components-form-elements-select--with-error":{"type":"story","id":"components-form-elements-select--with-error","name":"With Error","title":"Components/Form Elements/Select","importPath":"./src/components/form-elements/select/Select.stories.tsx","componentPath":"./src/components/form-elements/select/Select.tsx","tags":["dev","test","autodocs"]},"components-form-elements-textarea--docs":{"id":"components-form-elements-textarea--docs","title":"Components/Form Elements/Textarea","name":"Docs","importPath":"./src/components/form-elements/textarea/Textarea.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-textarea--default":{"type":"story","id":"components-form-elements-textarea--default","name":"Default","title":"Components/Form Elements/Textarea","importPath":"./src/components/form-elements/textarea/Textarea.stories.tsx","componentPath":"./src/components/form-elements/textarea/Textarea.tsx","tags":["dev","test","autodocs"]},"components-form-elements-textarea--with-rows":{"type":"story","id":"components-form-elements-textarea--with-rows","name":"With Rows","title":"Components/Form Elements/Textarea","importPath":"./src/components/form-elements/textarea/Textarea.stories.tsx","componentPath":"./src/components/form-elements/textarea/Textarea.tsx","tags":["dev","test","autodocs"]},"components-form-elements-textarea--with-error":{"type":"story","id":"components-form-elements-textarea--with-error","name":"With Error","title":"Components/Form Elements/Textarea","importPath":"./src/components/form-elements/textarea/Textarea.stories.tsx","componentPath":"./src/components/form-elements/textarea/Textarea.tsx","tags":["dev","test","autodocs"]},"components-navigation-a-to-z--docs":{"id":"components-navigation-a-to-z--docs","title":"Components/Navigation/A to Z","name":"Docs","importPath":"./src/components/navigation/a-to-z/AToZ.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-a-to-z--default":{"type":"story","id":"components-navigation-a-to-z--default","name":"Default","title":"Components/Navigation/A to Z","importPath":"./src/components/navigation/a-to-z/AToZ.stories.tsx","componentPath":"./src/components/navigation/a-to-z/AToZ.tsx","tags":["dev","test","autodocs"]},"components-navigation-action-link--docs":{"id":"components-navigation-action-link--docs","title":"Components/Navigation/Action Link","name":"Docs","importPath":"./src/components/navigation/action-link/ActionLink.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-action-link--default":{"type":"story","id":"components-navigation-action-link--default","name":"Default","title":"Components/Navigation/Action Link","importPath":"./src/components/navigation/action-link/ActionLink.stories.tsx","componentPath":"./src/components/navigation/action-link/ActionLink.tsx","tags":["dev","test","autodocs"]},"components-navigation-back-link--docs":{"id":"components-navigation-back-link--docs","title":"Components/Navigation/Back Link","name":"Docs","importPath":"./src/components/navigation/back-link/BackLink.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-back-link--default":{"type":"story","id":"components-navigation-back-link--default","name":"Default","title":"Components/Navigation/Back Link","importPath":"./src/components/navigation/back-link/BackLink.stories.tsx","componentPath":"./src/components/navigation/back-link/BackLink.tsx","tags":["dev","test","autodocs"]},"components-navigation-back-link--as-button":{"type":"story","id":"components-navigation-back-link--as-button","name":"As Button","title":"Components/Navigation/Back Link","importPath":"./src/components/navigation/back-link/BackLink.stories.tsx","componentPath":"./src/components/navigation/back-link/BackLink.tsx","tags":["dev","test","autodocs"]},"components-navigation-back-to-top-link--docs":{"id":"components-navigation-back-to-top-link--docs","title":"Components/Navigation/Back To Top Link","name":"Docs","importPath":"./src/components/navigation/back-to-top-link/BackToTopLink.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-back-to-top-link--default":{"type":"story","id":"components-navigation-back-to-top-link--default","name":"Default","title":"Components/Navigation/Back To Top Link","importPath":"./src/components/navigation/back-to-top-link/BackToTopLink.stories.tsx","componentPath":"./src/components/navigation/back-to-top-link/BackToTopLink.tsx","tags":["dev","test","autodocs"]},"components-navigation-breadcrumb--docs":{"id":"components-navigation-breadcrumb--docs","title":"Components/Navigation/Breadcrumb","name":"Docs","importPath":"./src/components/navigation/breadcrumb/Breadcrumb.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-breadcrumb--default":{"type":"story","id":"components-navigation-breadcrumb--default","name":"Default","title":"Components/Navigation/Breadcrumb","importPath":"./src/components/navigation/breadcrumb/Breadcrumb.stories.tsx","componentPath":"./src/components/navigation/breadcrumb/Breadcrumb.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--docs":{"id":"components-navigation-card--docs","title":"Components/Navigation/Card","name":"Docs","importPath":"./src/components/navigation/card/Card.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-card--top-task":{"type":"story","id":"components-navigation-card--top-task","name":"Top Task","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--primary":{"type":"story","id":"components-navigation-card--primary","name":"Primary","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--secondary":{"type":"story","id":"components-navigation-card--secondary","name":"Secondary","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--with-image":{"type":"story","id":"components-navigation-card--with-image","name":"With Image","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--a-to-z":{"type":"story","id":"components-navigation-card--a-to-z","name":"A To Z","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--non-urgent-care-card":{"type":"story","id":"components-navigation-card--non-urgent-care-card","name":"Non Urgent Care Card","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--urgent-care-card":{"type":"story","id":"components-navigation-card--urgent-care-card","name":"Urgent Care Card","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--emergency-care-card":{"type":"story","id":"components-navigation-card--emergency-care-card","name":"Emergency Care Card","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-contents-list--docs":{"id":"components-navigation-contents-list--docs","title":"Components/Navigation/Contents List","name":"Docs","importPath":"./src/components/navigation/contents-list/ContentsList.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-contents-list--default":{"type":"story","id":"components-navigation-contents-list--default","name":"Default","title":"Components/Navigation/Contents List","importPath":"./src/components/navigation/contents-list/ContentsList.stories.tsx","componentPath":"./src/components/navigation/contents-list/ContentsList.tsx","tags":["dev","test","autodocs"]},"components-navigation-footer--docs":{"id":"components-navigation-footer--docs","title":"Components/Navigation/Footer","name":"Docs","importPath":"./src/components/navigation/footer/Footer.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-footer--footer-with-key-links-only":{"type":"story","id":"components-navigation-footer--footer-with-key-links-only","name":"Footer With Key Links Only","title":"Components/Navigation/Footer","importPath":"./src/components/navigation/footer/Footer.stories.tsx","componentPath":"./src/components/navigation/footer/Footer.tsx","tags":["dev","test","autodocs"]},"components-navigation-footer--footer-with-navigation-links":{"type":"story","id":"components-navigation-footer--footer-with-navigation-links","name":"Footer With Navigation Links","title":"Components/Navigation/Footer","importPath":"./src/components/navigation/footer/Footer.stories.tsx","componentPath":"./src/components/navigation/footer/Footer.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--docs":{"id":"components-navigation-header--docs","title":"Components/Navigation/Header","name":"Docs","importPath":"./src/components/navigation/header/Header.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-header--default":{"type":"story","id":"components-navigation-header--default","name":"Default","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--with-service-name":{"type":"story","id":"components-navigation-header--with-service-name","name":"With Service Name","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--transactional":{"type":"story","id":"components-navigation-header--transactional","name":"Transactional","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--with-organsation":{"type":"story","id":"components-navigation-header--with-organsation","name":"With Organsation","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--with-delayed-nav":{"type":"story","id":"components-navigation-header--with-delayed-nav","name":"With Delayed Nav","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-pagination--docs":{"id":"components-navigation-pagination--docs","title":"Components/Navigation/Pagination","name":"Docs","importPath":"./src/components/navigation/pagination/Pagination.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-pagination--default":{"type":"story","id":"components-navigation-pagination--default","name":"Default","title":"Components/Navigation/Pagination","importPath":"./src/components/navigation/pagination/Pagination.stories.tsx","componentPath":"./src/components/navigation/pagination/Pagination.tsx","tags":["dev","test","autodocs"]},"components-navigation-skip-link--docs":{"id":"components-navigation-skip-link--docs","title":"Components/Navigation/Skip Link","name":"Docs","importPath":"./src/components/navigation/skip-link/SkipLink.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-skip-link--default":{"type":"story","id":"components-navigation-skip-link--default","name":"Default","title":"Components/Navigation/Skip Link","importPath":"./src/components/navigation/skip-link/SkipLink.stories.tsx","componentPath":"./src/components/navigation/skip-link/SkipLink.tsx","tags":["dev","test","autodocs"]},"styles-layout-container--docs":{"id":"styles-layout-container--docs","title":"Styles/Layout/Container","name":"Docs","importPath":"./src/components/styles/layout/container/Container.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-layout-container--default":{"type":"story","id":"styles-layout-container--default","name":"Default","title":"Styles/Layout/Container","importPath":"./src/components/styles/layout/container/Container.stories.tsx","componentPath":"./src/components/styles/layout/container/Container.tsx","tags":["dev","test","autodocs"]},"styles-layout-container--fluid-width":{"type":"story","id":"styles-layout-container--fluid-width","name":"Fluid Width","title":"Styles/Layout/Container","importPath":"./src/components/styles/layout/container/Container.stories.tsx","componentPath":"./src/components/styles/layout/container/Container.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--docs":{"id":"styles-layout-grid--docs","title":"Styles/Layout/Grid","name":"Docs","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-layout-grid--full-width":{"type":"story","id":"styles-layout-grid--full-width","name":"Full Width","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--one-half":{"type":"story","id":"styles-layout-grid--one-half","name":"One Half","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--one-third":{"type":"story","id":"styles-layout-grid--one-third","name":"One Third","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--two-thirds":{"type":"story","id":"styles-layout-grid--two-thirds","name":"Two Thirds","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--one-quarter":{"type":"story","id":"styles-layout-grid--one-quarter","name":"One Quarter","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--three-quarters":{"type":"story","id":"styles-layout-grid--three-quarters","name":"Three Quarters","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--nested-grid":{"type":"story","id":"styles-layout-grid--nested-grid","name":"Nested Grid","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-main--docs":{"id":"styles-layout-main--docs","title":"Styles/Layout/Main","name":"Docs","importPath":"./src/components/styles/layout/main/Main.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-layout-main--default":{"type":"story","id":"styles-layout-main--default","name":"Default","title":"Styles/Layout/Main","importPath":"./src/components/styles/layout/main/Main.stories.tsx","componentPath":"./src/components/styles/layout/main/Main.tsx","tags":["dev","test","autodocs"]},"styles-layout-reading-width--docs":{"id":"styles-layout-reading-width--docs","title":"Styles/Layout/Reading Width","name":"Docs","importPath":"./src/components/styles/layout/reading-width/ReadingWidth.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-layout-reading-width--default":{"type":"story","id":"styles-layout-reading-width--default","name":"Default","title":"Styles/Layout/Reading Width","importPath":"./src/components/styles/layout/reading-width/ReadingWidth.stories.tsx","componentPath":"./src/components/styles/layout/reading-width/ReadingWidth.tsx","tags":["dev","test","autodocs"]},"styles-typography-headingcaption--docs":{"id":"styles-typography-headingcaption--docs","title":"Styles/Typography/HeadingCaption","name":"Docs","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-headingcaption--xl":{"type":"story","id":"styles-typography-headingcaption--xl","name":"XL","title":"Styles/Typography/HeadingCaption","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","componentPath":"./src/components/styles/typography/heading-caption/HeadingCaption.tsx","tags":["dev","test","autodocs"]},"styles-typography-headingcaption--with-heading":{"type":"story","id":"styles-typography-headingcaption--with-heading","name":"With Heading","title":"Styles/Typography/HeadingCaption","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","componentPath":"./src/components/styles/typography/heading-caption/HeadingCaption.tsx","tags":["dev","test","autodocs"]},"styles-typography-headingcaption--with-heading-caption-bottom":{"type":"story","id":"styles-typography-headingcaption--with-heading-caption-bottom","name":"With Heading Caption Bottom","title":"Styles/Typography/HeadingCaption","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","componentPath":"./src/components/styles/typography/heading-caption/HeadingCaption.tsx","tags":["dev","test","autodocs"]},"styles-typography-headingcaption--with-caption-inside-heading":{"type":"story","id":"styles-typography-headingcaption--with-caption-inside-heading","name":"With Caption Inside Heading","title":"Styles/Typography/HeadingCaption","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","componentPath":"./src/components/styles/typography/heading-caption/HeadingCaption.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--docs":{"id":"styles-typography-heading--docs","title":"Styles/Typography/Heading","name":"Docs","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-heading--h-1":{"type":"story","id":"styles-typography-heading--h-1","name":"H 1","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-2":{"type":"story","id":"styles-typography-heading--h-2","name":"H 2","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-3":{"type":"story","id":"styles-typography-heading--h-3","name":"H 3","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-4":{"type":"story","id":"styles-typography-heading--h-4","name":"H 4","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-5":{"type":"story","id":"styles-typography-heading--h-5","name":"H 5","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-6":{"type":"story","id":"styles-typography-heading--h-6","name":"H 6","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-link--docs":{"id":"styles-typography-link--docs","title":"Styles/Typography/Link","name":"Docs","importPath":"./src/components/styles/typography/link/Link.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-link--default":{"type":"story","id":"styles-typography-link--default","name":"Default","title":"Styles/Typography/Link","importPath":"./src/components/styles/typography/link/Link.stories.tsx","componentPath":"./src/components/styles/typography/link/Link.tsx","tags":["dev","test","autodocs"]},"styles-typography-link--no-visited-state":{"type":"story","id":"styles-typography-link--no-visited-state","name":"No Visited State","title":"Styles/Typography/Link","importPath":"./src/components/styles/typography/link/Link.stories.tsx","componentPath":"./src/components/styles/typography/link/Link.tsx","tags":["dev","test","autodocs"]},"styles-typography-list--docs":{"id":"styles-typography-list--docs","title":"Styles/Typography/List","name":"Docs","importPath":"./src/components/styles/typography/list/List.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-list--default":{"type":"story","id":"styles-typography-list--default","name":"Default","title":"Styles/Typography/List","importPath":"./src/components/styles/typography/list/List.stories.tsx","componentPath":"./src/components/styles/typography/list/List.tsx","tags":["dev","test","autodocs"]},"styles-typography-list--bulleted":{"type":"story","id":"styles-typography-list--bulleted","name":"Bulleted","title":"Styles/Typography/List","importPath":"./src/components/styles/typography/list/List.stories.tsx","componentPath":"./src/components/styles/typography/list/List.tsx","tags":["dev","test","autodocs"]},"styles-typography-list--numbered":{"type":"story","id":"styles-typography-list--numbered","name":"Numbered","title":"Styles/Typography/List","importPath":"./src/components/styles/typography/list/List.stories.tsx","componentPath":"./src/components/styles/typography/list/List.tsx","tags":["dev","test","autodocs"]},"styles-typography-list--with-borders":{"type":"story","id":"styles-typography-list--with-borders","name":"With Borders","title":"Styles/Typography/List","importPath":"./src/components/styles/typography/list/List.stories.tsx","componentPath":"./src/components/styles/typography/list/List.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--docs":{"id":"styles-typography-paragraph--docs","title":"Styles/Typography/Paragraph","name":"Docs","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-paragraph--default":{"type":"story","id":"styles-typography-paragraph--default","name":"Default","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--lead":{"type":"story","id":"styles-typography-paragraph--lead","name":"Lead","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--small":{"type":"story","id":"styles-typography-paragraph--small","name":"Small","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--font-sizes":{"type":"story","id":"styles-typography-paragraph--font-sizes","name":"Font Sizes","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--font-weights":{"type":"story","id":"styles-typography-paragraph--font-weights","name":"Font Weights","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--text-align-right":{"type":"story","id":"styles-typography-paragraph--text-align-right","name":"Text Align Right","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-section-break--docs":{"id":"styles-typography-section-break--docs","title":"Styles/Typography/Section Break","name":"Docs","importPath":"./src/components/styles/typography/section-break/SectionBreak.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-section-break--default":{"type":"story","id":"styles-typography-section-break--default","name":"Default","title":"Styles/Typography/Section Break","importPath":"./src/components/styles/typography/section-break/SectionBreak.stories.tsx","componentPath":"./src/components/styles/typography/section-break/SectionBreak.tsx","tags":["dev","test","autodocs"]},"styles-typography-section-break--visible":{"type":"story","id":"styles-typography-section-break--visible","name":"Visible","title":"Styles/Typography/Section Break","importPath":"./src/components/styles/typography/section-break/SectionBreak.stories.tsx","componentPath":"./src/components/styles/typography/section-break/SectionBreak.tsx","tags":["dev","test","autodocs"]}}} +{"v":5,"entries":{"patterns-page-types-a-to-z-page--docs":{"id":"patterns-page-types-a-to-z-page--docs","title":"Patterns/Page types/A to Z page","name":"Docs","importPath":"./src/__stories__/patterns/AToZPage.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-page-types-a-to-z-page--a-to-z-page":{"type":"story","id":"patterns-page-types-a-to-z-page--a-to-z-page","name":"A To Z Page","title":"Patterns/Page types/A to Z page","importPath":"./src/__stories__/patterns/AToZPage.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-ask-users-for-their-nhs-number--docs":{"id":"patterns-tasks-ask-users-for-their-nhs-number--docs","title":"Patterns/Tasks/Ask users for their NHS number","name":"Docs","importPath":"./src/__stories__/patterns/AskUsersForTheirNhsNumber.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-tasks-ask-users-for-their-nhs-number--ask-users-for-their-nhs-number":{"type":"story","id":"patterns-tasks-ask-users-for-their-nhs-number--ask-users-for-their-nhs-number","name":"Ask Users For Their Nhs Number","title":"Patterns/Tasks/Ask users for their NHS number","importPath":"./src/__stories__/patterns/AskUsersForTheirNhsNumber.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-help-users-decide-when-and-where-to-get-care--docs":{"id":"patterns-tasks-help-users-decide-when-and-where-to-get-care--docs","title":"Patterns/Tasks/Help users decide when and where to get care","name":"Docs","importPath":"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-tasks-help-users-decide-when-and-where-to-get-care--non-urgent":{"type":"story","id":"patterns-tasks-help-users-decide-when-and-where-to-get-care--non-urgent","name":"Non Urgent","title":"Patterns/Tasks/Help users decide when and where to get care","importPath":"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-help-users-decide-when-and-where-to-get-care--urgent":{"type":"story","id":"patterns-tasks-help-users-decide-when-and-where-to-get-care--urgent","name":"Urgent","title":"Patterns/Tasks/Help users decide when and where to get care","importPath":"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-help-users-decide-when-and-where-to-get-care--emergency":{"type":"story","id":"patterns-tasks-help-users-decide-when-and-where-to-get-care--emergency","name":"Emergency","title":"Patterns/Tasks/Help users decide when and where to get care","importPath":"./src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.stories.tsx","tags":["dev","test","autodocs"]},"patterns-page-types-mini-hub-page--docs":{"id":"patterns-page-types-mini-hub-page--docs","title":"Patterns/Page types/Mini-hub page","name":"Docs","importPath":"./src/__stories__/patterns/MiniHub.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-page-types-mini-hub-page--mini-hub":{"type":"story","id":"patterns-page-types-mini-hub-page--mini-hub","name":"Mini Hub","title":"Patterns/Page types/Mini-hub page","importPath":"./src/__stories__/patterns/MiniHub.stories.tsx","tags":["dev","test","autodocs"]},"patterns-tasks-reassure-users-that-a-page-is-up-to-date--docs":{"id":"patterns-tasks-reassure-users-that-a-page-is-up-to-date--docs","title":"Patterns/Tasks/Reassure users that a page is up to date","name":"Docs","importPath":"./src/__stories__/patterns/ReassureUsersThatAPageIsUpToDate.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-tasks-reassure-users-that-a-page-is-up-to-date--reassure-users-that-a-page-is-up-to-date":{"type":"story","id":"patterns-tasks-reassure-users-that-a-page-is-up-to-date--reassure-users-that-a-page-is-up-to-date","name":"Reassure Users That A Page Is Up To Date","title":"Patterns/Tasks/Reassure users that a page is up to date","importPath":"./src/__stories__/patterns/ReassureUsersThatAPageIsUpToDate.stories.tsx","tags":["dev","test","autodocs"]},"patterns-page-types-start-page--docs":{"id":"patterns-page-types-start-page--docs","title":"Patterns/Page types/Start page","name":"Docs","importPath":"./src/__stories__/patterns/StartPage.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"patterns-page-types-start-page--mini-hub":{"type":"story","id":"patterns-page-types-start-page--mini-hub","name":"Mini Hub","title":"Patterns/Page types/Start page","importPath":"./src/__stories__/patterns/StartPage.stories.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-details--docs":{"id":"components-content-presentation-details--docs","title":"Components/Content Presentation/Details","name":"Docs","importPath":"./src/components/content-presentation/details/Details.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-details--default":{"type":"story","id":"components-content-presentation-details--default","name":"Default","title":"Components/Content Presentation/Details","importPath":"./src/components/content-presentation/details/Details.stories.tsx","componentPath":"./src/components/content-presentation/details/Details.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-do-don-t-list--docs":{"id":"components-content-presentation-do-don-t-list--docs","title":"Components/Content Presentation/Do Don't List","name":"Docs","importPath":"./src/components/content-presentation/do-dont-list/DoDontList.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-do-don-t-list--do-list":{"type":"story","id":"components-content-presentation-do-don-t-list--do-list","name":"Do List","title":"Components/Content Presentation/Do Don't List","importPath":"./src/components/content-presentation/do-dont-list/DoDontList.stories.tsx","componentPath":"./src/components/content-presentation/do-dont-list/DoDontList.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-do-don-t-list--dont-list":{"type":"story","id":"components-content-presentation-do-don-t-list--dont-list","name":"Dont List","title":"Components/Content Presentation/Do Don't List","importPath":"./src/components/content-presentation/do-dont-list/DoDontList.stories.tsx","componentPath":"./src/components/content-presentation/do-dont-list/DoDontList.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-expander--docs":{"id":"components-content-presentation-expander--docs","title":"Components/Content Presentation/Expander","name":"Docs","importPath":"./src/components/content-presentation/expander/Expander.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-expander--single-expander":{"type":"story","id":"components-content-presentation-expander--single-expander","name":"Single Expander","title":"Components/Content Presentation/Expander","importPath":"./src/components/content-presentation/expander/Expander.stories.tsx","componentPath":"./src/components/content-presentation/expander/Expander.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-expander--more-than-one-expander":{"type":"story","id":"components-content-presentation-expander--more-than-one-expander","name":"More Than One Expander","title":"Components/Content Presentation/Expander","importPath":"./src/components/content-presentation/expander/Expander.stories.tsx","componentPath":"./src/components/content-presentation/expander/Expander.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-figure--docs":{"id":"components-content-presentation-figure--docs","title":"Components/Content Presentation/Figure","name":"Docs","importPath":"./src/components/content-presentation/figure/Figure.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-figure--image-with-caption":{"type":"story","id":"components-content-presentation-figure--image-with-caption","name":"Image With Caption","title":"Components/Content Presentation/Figure","importPath":"./src/components/content-presentation/figure/Figure.stories.tsx","componentPath":"./src/components/content-presentation/figure/Figure.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-figure--image-without-caption":{"type":"story","id":"components-content-presentation-figure--image-without-caption","name":"Image Without Caption","title":"Components/Content Presentation/Figure","importPath":"./src/components/content-presentation/figure/Figure.stories.tsx","componentPath":"./src/components/content-presentation/figure/Figure.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-hero--docs":{"id":"components-content-presentation-hero--docs","title":"Components/Content Presentation/Hero","name":"Docs","importPath":"./src/components/content-presentation/hero/Hero.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-hero--with-content-only":{"type":"story","id":"components-content-presentation-hero--with-content-only","name":"With Content Only","title":"Components/Content Presentation/Hero","importPath":"./src/components/content-presentation/hero/Hero.stories.tsx","componentPath":"./src/components/content-presentation/hero/Hero.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-hero--with-image-content":{"type":"story","id":"components-content-presentation-hero--with-image-content","name":"With Image Content","title":"Components/Content Presentation/Hero","importPath":"./src/components/content-presentation/hero/Hero.stories.tsx","componentPath":"./src/components/content-presentation/hero/Hero.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-hero--with-image-only":{"type":"story","id":"components-content-presentation-hero--with-image-only","name":"With Image Only","title":"Components/Content Presentation/Hero","importPath":"./src/components/content-presentation/hero/Hero.stories.tsx","componentPath":"./src/components/content-presentation/hero/Hero.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-inset-text--docs":{"id":"components-content-presentation-inset-text--docs","title":"Components/Content Presentation/Inset Text","name":"Docs","importPath":"./src/components/content-presentation/inset-text/InsetText.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-inset-text--default":{"type":"story","id":"components-content-presentation-inset-text--default","name":"Default","title":"Components/Content Presentation/Inset Text","importPath":"./src/components/content-presentation/inset-text/InsetText.stories.tsx","componentPath":"./src/components/content-presentation/inset-text/InsetText.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-summary-list--docs":{"id":"components-content-presentation-summary-list--docs","title":"Components/Content Presentation/Summary List","name":"Docs","importPath":"./src/components/content-presentation/summary-list/SummaryList.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-summary-list--default":{"type":"story","id":"components-content-presentation-summary-list--default","name":"Default","title":"Components/Content Presentation/Summary List","importPath":"./src/components/content-presentation/summary-list/SummaryList.stories.tsx","componentPath":"./src/components/content-presentation/summary-list/SummaryList.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-table--docs":{"id":"components-content-presentation-table--docs","title":"Components/Content Presentation/Table","name":"Docs","importPath":"./src/components/content-presentation/table/Table.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-table--two-column":{"type":"story","id":"components-content-presentation-table--two-column","name":"Two Column","title":"Components/Content Presentation/Table","importPath":"./src/components/content-presentation/table/Table.stories.tsx","componentPath":"./src/components/content-presentation/table/Table.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-table--three-column":{"type":"story","id":"components-content-presentation-table--three-column","name":"Three Column","title":"Components/Content Presentation/Table","importPath":"./src/components/content-presentation/table/Table.stories.tsx","componentPath":"./src/components/content-presentation/table/Table.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-tabs--docs":{"id":"components-content-presentation-tabs--docs","title":"Components/Content Presentation/Tabs","name":"Docs","importPath":"./src/components/content-presentation/tabs/Tabs.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-tabs--default":{"type":"story","id":"components-content-presentation-tabs--default","name":"Default","title":"Components/Content Presentation/Tabs","importPath":"./src/components/content-presentation/tabs/Tabs.stories.tsx","componentPath":"./src/components/content-presentation/tabs/Tabs.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-tag--docs":{"id":"components-content-presentation-tag--docs","title":"Components/Content Presentation/Tag","name":"Docs","importPath":"./src/components/content-presentation/tag/Tag.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-tag--default":{"type":"story","id":"components-content-presentation-tag--default","name":"Default","title":"Components/Content Presentation/Tag","importPath":"./src/components/content-presentation/tag/Tag.stories.tsx","componentPath":"./src/components/content-presentation/tag/Tag.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-warning-callout--docs":{"id":"components-content-presentation-warning-callout--docs","title":"Components/Content Presentation/Warning Callout","name":"Docs","importPath":"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-content-presentation-warning-callout--default":{"type":"story","id":"components-content-presentation-warning-callout--default","name":"Default","title":"Components/Content Presentation/Warning Callout","importPath":"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx","componentPath":"./src/components/content-presentation/warning-callout/WarningCallout.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-warning-callout--with-no-visually-hidden-text":{"type":"story","id":"components-content-presentation-warning-callout--with-no-visually-hidden-text","name":"With No Visually Hidden Text","title":"Components/Content Presentation/Warning Callout","importPath":"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx","componentPath":"./src/components/content-presentation/warning-callout/WarningCallout.tsx","tags":["dev","test","autodocs"]},"components-content-presentation-warning-callout--with-different-heading-levels":{"type":"story","id":"components-content-presentation-warning-callout--with-different-heading-levels","name":"With Different Heading Levels","title":"Components/Content Presentation/Warning Callout","importPath":"./src/components/content-presentation/warning-callout/WarningCallout.stories.tsx","componentPath":"./src/components/content-presentation/warning-callout/WarningCallout.tsx","tags":["dev","test","autodocs"]},"components-core-label--docs":{"id":"components-core-label--docs","title":"Components/Core/Label","name":"Docs","importPath":"./src/components/core/label/Label.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-core-label--default":{"type":"story","id":"components-core-label--default","name":"Default","title":"Components/Core/Label","importPath":"./src/components/core/label/Label.stories.tsx","componentPath":"./src/components/core/label/Label.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--docs":{"id":"components-form-elements-button--docs","title":"Components/Form Elements/Button","name":"Docs","importPath":"./src/components/form-elements/button/Button.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-button--primary":{"type":"story","id":"components-form-elements-button--primary","name":"Primary","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--secondary":{"type":"story","id":"components-form-elements-button--secondary","name":"Secondary","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--reverse":{"type":"story","id":"components-form-elements-button--reverse","name":"Reverse","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--warning":{"type":"story","id":"components-form-elements-button--warning","name":"Warning","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--primary-button-as-link":{"type":"story","id":"components-form-elements-button--primary-button-as-link","name":"Primary Button As Link","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--secondary-button-as-link":{"type":"story","id":"components-form-elements-button--secondary-button-as-link","name":"Secondary Button As Link","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--reverse-button-as-link":{"type":"story","id":"components-form-elements-button--reverse-button-as-link","name":"Reverse Button As Link","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-button--warning-button-as-link":{"type":"story","id":"components-form-elements-button--warning-button-as-link","name":"Warning Button As Link","title":"Components/Form Elements/Button","importPath":"./src/components/form-elements/button/Button.stories.tsx","componentPath":"./src/components/form-elements/button/Button.tsx","tags":["dev","test","autodocs"]},"components-form-elements-character-count--docs":{"id":"components-form-elements-character-count--docs","title":"Components/Form Elements/Character Count","name":"Docs","importPath":"./src/components/form-elements/character-count/CharacterCount.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-character-count--with-max-characters":{"type":"story","id":"components-form-elements-character-count--with-max-characters","name":"With Max Characters","title":"Components/Form Elements/Character Count","importPath":"./src/components/form-elements/character-count/CharacterCount.stories.tsx","componentPath":"./src/components/form-elements/character-count/CharacterCount.tsx","tags":["dev","test","autodocs"]},"components-form-elements-character-count--with-max-words":{"type":"story","id":"components-form-elements-character-count--with-max-words","name":"With Max Words","title":"Components/Form Elements/Character Count","importPath":"./src/components/form-elements/character-count/CharacterCount.stories.tsx","componentPath":"./src/components/form-elements/character-count/CharacterCount.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--docs":{"id":"components-form-elements-checkbox--docs","title":"Components/Form Elements/Checkbox","name":"Docs","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-checkbox--default":{"type":"story","id":"components-form-elements-checkbox--default","name":"Default","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-hint":{"type":"story","id":"components-form-elements-checkbox--with-hint","name":"With Hint","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-error":{"type":"story","id":"components-form-elements-checkbox--with-error","name":"With Error","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-item-hint":{"type":"story","id":"components-form-elements-checkbox--with-item-hint","name":"With Item Hint","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-exclusive-option":{"type":"story","id":"components-form-elements-checkbox--with-exclusive-option","name":"With Exclusive Option","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-checkbox--with-conditional-content":{"type":"story","id":"components-form-elements-checkbox--with-conditional-content","name":"With Conditional Content","title":"Components/Form Elements/Checkbox","importPath":"./src/components/form-elements/checkbox/Checkbox.stories.tsx","componentPath":"./src/components/form-elements/checkbox/Checkbox.tsx","tags":["dev","test","autodocs"]},"components-form-elements-date-input--docs":{"id":"components-form-elements-date-input--docs","title":"Components/Form Elements/Date Input","name":"Docs","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-date-input--default":{"type":"story","id":"components-form-elements-date-input--default","name":"Default","title":"Components/Form Elements/Date Input","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","componentPath":"./src/components/form-elements/date-input/DateInput.tsx","tags":["dev","test","autodocs"]},"components-form-elements-date-input--with-error":{"type":"story","id":"components-form-elements-date-input--with-error","name":"With Error","title":"Components/Form Elements/Date Input","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","componentPath":"./src/components/form-elements/date-input/DateInput.tsx","tags":["dev","test","autodocs"]},"components-form-elements-date-input--with-error-object":{"type":"story","id":"components-form-elements-date-input--with-error-object","name":"With Error Object","title":"Components/Form Elements/Date Input","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","componentPath":"./src/components/form-elements/date-input/DateInput.tsx","tags":["dev","test","autodocs"]},"components-form-elements-date-input--disabled":{"type":"story","id":"components-form-elements-date-input--disabled","name":"Disabled","title":"Components/Form Elements/Date Input","importPath":"./src/components/form-elements/date-input/DateInput.stories.tsx","componentPath":"./src/components/form-elements/date-input/DateInput.tsx","tags":["dev","test","autodocs"]},"components-form-elements-error-message--docs":{"id":"components-form-elements-error-message--docs","title":"Components/Form Elements/Error Message","name":"Docs","importPath":"./src/components/form-elements/error-message/ErrorMessage.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-error-message--default":{"type":"story","id":"components-form-elements-error-message--default","name":"Default","title":"Components/Form Elements/Error Message","importPath":"./src/components/form-elements/error-message/ErrorMessage.stories.tsx","componentPath":"./src/components/form-elements/error-message/ErrorMessage.tsx","tags":["dev","test","autodocs"]},"components-form-elements-error-summary--docs":{"id":"components-form-elements-error-summary--docs","title":"Components/Form Elements/Error Summary","name":"Docs","importPath":"./src/components/form-elements/error-summary/ErrorSummary.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-error-summary--example":{"type":"story","id":"components-form-elements-error-summary--example","name":"Example","title":"Components/Form Elements/Error Summary","importPath":"./src/components/form-elements/error-summary/ErrorSummary.stories.tsx","componentPath":"./src/components/form-elements/error-summary/ErrorSummary.tsx","tags":["dev","test","autodocs"]},"components-form-elements-fieldset--docs":{"id":"components-form-elements-fieldset--docs","title":"Components/Form Elements/Fieldset","name":"Docs","importPath":"./src/components/form-elements/fieldset/Fieldset.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-fieldset--example":{"type":"story","id":"components-form-elements-fieldset--example","name":"Example","title":"Components/Form Elements/Fieldset","importPath":"./src/components/form-elements/fieldset/Fieldset.stories.tsx","componentPath":"./src/components/form-elements/fieldset/Fieldset.tsx","tags":["dev","test","autodocs"]},"components-form-elements-fieldset--with-page-heading-legend":{"type":"story","id":"components-form-elements-fieldset--with-page-heading-legend","name":"With Page Heading Legend","title":"Components/Form Elements/Fieldset","importPath":"./src/components/form-elements/fieldset/Fieldset.stories.tsx","componentPath":"./src/components/form-elements/fieldset/Fieldset.tsx","tags":["dev","test","autodocs"]},"components-form-elements-hint--docs":{"id":"components-form-elements-hint--docs","title":"Components/Form Elements/Hint","name":"Docs","importPath":"./src/components/form-elements/hint/Hint.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-hint--default":{"type":"story","id":"components-form-elements-hint--default","name":"Default","title":"Components/Form Elements/Hint","importPath":"./src/components/form-elements/hint/Hint.stories.tsx","componentPath":"./src/components/form-elements/hint/Hint.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--docs":{"id":"components-form-elements-input--docs","title":"Components/Form Elements/Input","name":"Docs","importPath":"./src/components/form-elements/input/Input.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-input--default":{"type":"story","id":"components-form-elements-input--default","name":"Default","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-fixed-width":{"type":"story","id":"components-form-elements-input--with-fixed-width","name":"With Fixed Width","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-fluid-width":{"type":"story","id":"components-form-elements-input--with-fluid-width","name":"With Fluid Width","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-hint":{"type":"story","id":"components-form-elements-input--with-hint","name":"With Hint","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-error":{"type":"story","id":"components-form-elements-input--with-error","name":"With Error","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--whole-numbers":{"type":"story","id":"components-form-elements-input--whole-numbers","name":"Whole Numbers","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-prefix-and-suffix":{"type":"story","id":"components-form-elements-input--with-prefix-and-suffix","name":"With Prefix And Suffix","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-prefix":{"type":"story","id":"components-form-elements-input--with-prefix","name":"With Prefix","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-suffix":{"type":"story","id":"components-form-elements-input--with-suffix","name":"With Suffix","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-input--with-prefix-suffix-and-error":{"type":"story","id":"components-form-elements-input--with-prefix-suffix-and-error","name":"With Prefix Suffix And Error","title":"Components/Form Elements/Input","importPath":"./src/components/form-elements/input/Input.stories.tsx","componentPath":"./src/components/form-elements/input/Input.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--docs":{"id":"components-form-elements-radio--docs","title":"Components/Form Elements/Radio","name":"Docs","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-radio--default":{"type":"story","id":"components-form-elements-radio--default","name":"Default","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--inline":{"type":"story","id":"components-form-elements-radio--inline","name":"Inline","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-hint":{"type":"story","id":"components-form-elements-radio--with-hint","name":"With Hint","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-error":{"type":"story","id":"components-form-elements-radio--with-error","name":"With Error","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-item-hint":{"type":"story","id":"components-form-elements-radio--with-item-hint","name":"With Item Hint","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-divider":{"type":"story","id":"components-form-elements-radio--with-divider","name":"With Divider","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-radio--with-conditional-content":{"type":"story","id":"components-form-elements-radio--with-conditional-content","name":"With Conditional Content","title":"Components/Form Elements/Radio","importPath":"./src/components/form-elements/radio/Radio.stories.tsx","componentPath":"./src/components/form-elements/radio/Radio.tsx","tags":["dev","test","autodocs"]},"components-form-elements-select--docs":{"id":"components-form-elements-select--docs","title":"Components/Form Elements/Select","name":"Docs","importPath":"./src/components/form-elements/select/Select.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-select--default":{"type":"story","id":"components-form-elements-select--default","name":"Default","title":"Components/Form Elements/Select","importPath":"./src/components/form-elements/select/Select.stories.tsx","componentPath":"./src/components/form-elements/select/Select.tsx","tags":["dev","test","autodocs"]},"components-form-elements-select--with-hint":{"type":"story","id":"components-form-elements-select--with-hint","name":"With Hint","title":"Components/Form Elements/Select","importPath":"./src/components/form-elements/select/Select.stories.tsx","componentPath":"./src/components/form-elements/select/Select.tsx","tags":["dev","test","autodocs"]},"components-form-elements-select--with-error":{"type":"story","id":"components-form-elements-select--with-error","name":"With Error","title":"Components/Form Elements/Select","importPath":"./src/components/form-elements/select/Select.stories.tsx","componentPath":"./src/components/form-elements/select/Select.tsx","tags":["dev","test","autodocs"]},"components-form-elements-textarea--docs":{"id":"components-form-elements-textarea--docs","title":"Components/Form Elements/Textarea","name":"Docs","importPath":"./src/components/form-elements/textarea/Textarea.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-form-elements-textarea--default":{"type":"story","id":"components-form-elements-textarea--default","name":"Default","title":"Components/Form Elements/Textarea","importPath":"./src/components/form-elements/textarea/Textarea.stories.tsx","componentPath":"./src/components/form-elements/textarea/Textarea.tsx","tags":["dev","test","autodocs"]},"components-form-elements-textarea--with-rows":{"type":"story","id":"components-form-elements-textarea--with-rows","name":"With Rows","title":"Components/Form Elements/Textarea","importPath":"./src/components/form-elements/textarea/Textarea.stories.tsx","componentPath":"./src/components/form-elements/textarea/Textarea.tsx","tags":["dev","test","autodocs"]},"components-form-elements-textarea--with-error":{"type":"story","id":"components-form-elements-textarea--with-error","name":"With Error","title":"Components/Form Elements/Textarea","importPath":"./src/components/form-elements/textarea/Textarea.stories.tsx","componentPath":"./src/components/form-elements/textarea/Textarea.tsx","tags":["dev","test","autodocs"]},"components-navigation-a-to-z--docs":{"id":"components-navigation-a-to-z--docs","title":"Components/Navigation/A to Z","name":"Docs","importPath":"./src/components/navigation/a-to-z/AToZ.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-a-to-z--default":{"type":"story","id":"components-navigation-a-to-z--default","name":"Default","title":"Components/Navigation/A to Z","importPath":"./src/components/navigation/a-to-z/AToZ.stories.tsx","componentPath":"./src/components/navigation/a-to-z/AToZ.tsx","tags":["dev","test","autodocs"]},"components-navigation-action-link--docs":{"id":"components-navigation-action-link--docs","title":"Components/Navigation/Action Link","name":"Docs","importPath":"./src/components/navigation/action-link/ActionLink.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-action-link--default":{"type":"story","id":"components-navigation-action-link--default","name":"Default","title":"Components/Navigation/Action Link","importPath":"./src/components/navigation/action-link/ActionLink.stories.tsx","componentPath":"./src/components/navigation/action-link/ActionLink.tsx","tags":["dev","test","autodocs"]},"components-navigation-back-link--docs":{"id":"components-navigation-back-link--docs","title":"Components/Navigation/Back Link","name":"Docs","importPath":"./src/components/navigation/back-link/BackLink.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-back-link--default":{"type":"story","id":"components-navigation-back-link--default","name":"Default","title":"Components/Navigation/Back Link","importPath":"./src/components/navigation/back-link/BackLink.stories.tsx","componentPath":"./src/components/navigation/back-link/BackLink.tsx","tags":["dev","test","autodocs"]},"components-navigation-back-link--as-button":{"type":"story","id":"components-navigation-back-link--as-button","name":"As Button","title":"Components/Navigation/Back Link","importPath":"./src/components/navigation/back-link/BackLink.stories.tsx","componentPath":"./src/components/navigation/back-link/BackLink.tsx","tags":["dev","test","autodocs"]},"components-navigation-back-to-top-link--docs":{"id":"components-navigation-back-to-top-link--docs","title":"Components/Navigation/Back To Top Link","name":"Docs","importPath":"./src/components/navigation/back-to-top-link/BackToTopLink.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-back-to-top-link--default":{"type":"story","id":"components-navigation-back-to-top-link--default","name":"Default","title":"Components/Navigation/Back To Top Link","importPath":"./src/components/navigation/back-to-top-link/BackToTopLink.stories.tsx","componentPath":"./src/components/navigation/back-to-top-link/BackToTopLink.tsx","tags":["dev","test","autodocs"]},"components-navigation-breadcrumb--docs":{"id":"components-navigation-breadcrumb--docs","title":"Components/Navigation/Breadcrumb","name":"Docs","importPath":"./src/components/navigation/breadcrumb/Breadcrumb.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-breadcrumb--default":{"type":"story","id":"components-navigation-breadcrumb--default","name":"Default","title":"Components/Navigation/Breadcrumb","importPath":"./src/components/navigation/breadcrumb/Breadcrumb.stories.tsx","componentPath":"./src/components/navigation/breadcrumb/Breadcrumb.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--docs":{"id":"components-navigation-card--docs","title":"Components/Navigation/Card","name":"Docs","importPath":"./src/components/navigation/card/Card.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-card--top-task":{"type":"story","id":"components-navigation-card--top-task","name":"Top Task","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--primary":{"type":"story","id":"components-navigation-card--primary","name":"Primary","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--secondary":{"type":"story","id":"components-navigation-card--secondary","name":"Secondary","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--with-image":{"type":"story","id":"components-navigation-card--with-image","name":"With Image","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--a-to-z":{"type":"story","id":"components-navigation-card--a-to-z","name":"A To Z","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--non-urgent-care-card":{"type":"story","id":"components-navigation-card--non-urgent-care-card","name":"Non Urgent Care Card","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--urgent-care-card":{"type":"story","id":"components-navigation-card--urgent-care-card","name":"Urgent Care Card","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-card--emergency-care-card":{"type":"story","id":"components-navigation-card--emergency-care-card","name":"Emergency Care Card","title":"Components/Navigation/Card","importPath":"./src/components/navigation/card/Card.stories.tsx","componentPath":"./src/components/navigation/card/Card.tsx","tags":["dev","test","autodocs"]},"components-navigation-contents-list--docs":{"id":"components-navigation-contents-list--docs","title":"Components/Navigation/Contents List","name":"Docs","importPath":"./src/components/navigation/contents-list/ContentsList.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-contents-list--default":{"type":"story","id":"components-navigation-contents-list--default","name":"Default","title":"Components/Navigation/Contents List","importPath":"./src/components/navigation/contents-list/ContentsList.stories.tsx","componentPath":"./src/components/navigation/contents-list/ContentsList.tsx","tags":["dev","test","autodocs"]},"components-navigation-footer--docs":{"id":"components-navigation-footer--docs","title":"Components/Navigation/Footer","name":"Docs","importPath":"./src/components/navigation/footer/Footer.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-footer--footer-with-key-links-only":{"type":"story","id":"components-navigation-footer--footer-with-key-links-only","name":"Footer With Key Links Only","title":"Components/Navigation/Footer","importPath":"./src/components/navigation/footer/Footer.stories.tsx","componentPath":"./src/components/navigation/footer/Footer.tsx","tags":["dev","test","autodocs"]},"components-navigation-footer--footer-with-navigation-links":{"type":"story","id":"components-navigation-footer--footer-with-navigation-links","name":"Footer With Navigation Links","title":"Components/Navigation/Footer","importPath":"./src/components/navigation/footer/Footer.stories.tsx","componentPath":"./src/components/navigation/footer/Footer.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--docs":{"id":"components-navigation-header--docs","title":"Components/Navigation/Header","name":"Docs","importPath":"./src/components/navigation/header/Header.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-header--default":{"type":"story","id":"components-navigation-header--default","name":"Default","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--with-service-name":{"type":"story","id":"components-navigation-header--with-service-name","name":"With Service Name","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--with-service-name-and-less-than-four-links":{"type":"story","id":"components-navigation-header--with-service-name-and-less-than-four-links","name":"With Service Name And Less Than Four Links","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--transactional":{"type":"story","id":"components-navigation-header--transactional","name":"Transactional","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--with-organsation":{"type":"story","id":"components-navigation-header--with-organsation","name":"With Organsation","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-header--with-delayed-nav":{"type":"story","id":"components-navigation-header--with-delayed-nav","name":"With Delayed Nav","title":"Components/Navigation/Header","importPath":"./src/components/navigation/header/Header.stories.tsx","componentPath":"./src/components/navigation/header/Header.tsx","tags":["dev","test","autodocs"]},"components-navigation-pagination--docs":{"id":"components-navigation-pagination--docs","title":"Components/Navigation/Pagination","name":"Docs","importPath":"./src/components/navigation/pagination/Pagination.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-pagination--default":{"type":"story","id":"components-navigation-pagination--default","name":"Default","title":"Components/Navigation/Pagination","importPath":"./src/components/navigation/pagination/Pagination.stories.tsx","componentPath":"./src/components/navigation/pagination/Pagination.tsx","tags":["dev","test","autodocs"]},"components-navigation-skip-link--docs":{"id":"components-navigation-skip-link--docs","title":"Components/Navigation/Skip Link","name":"Docs","importPath":"./src/components/navigation/skip-link/SkipLink.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"components-navigation-skip-link--default":{"type":"story","id":"components-navigation-skip-link--default","name":"Default","title":"Components/Navigation/Skip Link","importPath":"./src/components/navigation/skip-link/SkipLink.stories.tsx","componentPath":"./src/components/navigation/skip-link/SkipLink.tsx","tags":["dev","test","autodocs"]},"styles-layout-container--docs":{"id":"styles-layout-container--docs","title":"Styles/Layout/Container","name":"Docs","importPath":"./src/components/styles/layout/container/Container.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-layout-container--default":{"type":"story","id":"styles-layout-container--default","name":"Default","title":"Styles/Layout/Container","importPath":"./src/components/styles/layout/container/Container.stories.tsx","componentPath":"./src/components/styles/layout/container/Container.tsx","tags":["dev","test","autodocs"]},"styles-layout-container--fluid-width":{"type":"story","id":"styles-layout-container--fluid-width","name":"Fluid Width","title":"Styles/Layout/Container","importPath":"./src/components/styles/layout/container/Container.stories.tsx","componentPath":"./src/components/styles/layout/container/Container.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--docs":{"id":"styles-layout-grid--docs","title":"Styles/Layout/Grid","name":"Docs","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-layout-grid--full-width":{"type":"story","id":"styles-layout-grid--full-width","name":"Full Width","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--one-half":{"type":"story","id":"styles-layout-grid--one-half","name":"One Half","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--one-third":{"type":"story","id":"styles-layout-grid--one-third","name":"One Third","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--two-thirds":{"type":"story","id":"styles-layout-grid--two-thirds","name":"Two Thirds","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--one-quarter":{"type":"story","id":"styles-layout-grid--one-quarter","name":"One Quarter","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--three-quarters":{"type":"story","id":"styles-layout-grid--three-quarters","name":"Three Quarters","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-grid--nested-grid":{"type":"story","id":"styles-layout-grid--nested-grid","name":"Nested Grid","title":"Styles/Layout/Grid","importPath":"./src/components/styles/layout/grid/Grid.stories.tsx","tags":["dev","test","autodocs"]},"styles-layout-main--docs":{"id":"styles-layout-main--docs","title":"Styles/Layout/Main","name":"Docs","importPath":"./src/components/styles/layout/main/Main.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-layout-main--default":{"type":"story","id":"styles-layout-main--default","name":"Default","title":"Styles/Layout/Main","importPath":"./src/components/styles/layout/main/Main.stories.tsx","componentPath":"./src/components/styles/layout/main/Main.tsx","tags":["dev","test","autodocs"]},"styles-layout-reading-width--docs":{"id":"styles-layout-reading-width--docs","title":"Styles/Layout/Reading Width","name":"Docs","importPath":"./src/components/styles/layout/reading-width/ReadingWidth.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-layout-reading-width--default":{"type":"story","id":"styles-layout-reading-width--default","name":"Default","title":"Styles/Layout/Reading Width","importPath":"./src/components/styles/layout/reading-width/ReadingWidth.stories.tsx","componentPath":"./src/components/styles/layout/reading-width/ReadingWidth.tsx","tags":["dev","test","autodocs"]},"styles-typography-headingcaption--docs":{"id":"styles-typography-headingcaption--docs","title":"Styles/Typography/HeadingCaption","name":"Docs","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-headingcaption--xl":{"type":"story","id":"styles-typography-headingcaption--xl","name":"XL","title":"Styles/Typography/HeadingCaption","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","componentPath":"./src/components/styles/typography/heading-caption/HeadingCaption.tsx","tags":["dev","test","autodocs"]},"styles-typography-headingcaption--with-heading":{"type":"story","id":"styles-typography-headingcaption--with-heading","name":"With Heading","title":"Styles/Typography/HeadingCaption","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","componentPath":"./src/components/styles/typography/heading-caption/HeadingCaption.tsx","tags":["dev","test","autodocs"]},"styles-typography-headingcaption--with-heading-caption-bottom":{"type":"story","id":"styles-typography-headingcaption--with-heading-caption-bottom","name":"With Heading Caption Bottom","title":"Styles/Typography/HeadingCaption","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","componentPath":"./src/components/styles/typography/heading-caption/HeadingCaption.tsx","tags":["dev","test","autodocs"]},"styles-typography-headingcaption--with-caption-inside-heading":{"type":"story","id":"styles-typography-headingcaption--with-caption-inside-heading","name":"With Caption Inside Heading","title":"Styles/Typography/HeadingCaption","importPath":"./src/components/styles/typography/heading-caption/HeadingCaption.stories.tsx","componentPath":"./src/components/styles/typography/heading-caption/HeadingCaption.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--docs":{"id":"styles-typography-heading--docs","title":"Styles/Typography/Heading","name":"Docs","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-heading--h-1":{"type":"story","id":"styles-typography-heading--h-1","name":"H 1","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-2":{"type":"story","id":"styles-typography-heading--h-2","name":"H 2","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-3":{"type":"story","id":"styles-typography-heading--h-3","name":"H 3","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-4":{"type":"story","id":"styles-typography-heading--h-4","name":"H 4","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-5":{"type":"story","id":"styles-typography-heading--h-5","name":"H 5","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-heading--h-6":{"type":"story","id":"styles-typography-heading--h-6","name":"H 6","title":"Styles/Typography/Heading","importPath":"./src/components/styles/typography/heading/Heading.stories.tsx","componentPath":"./src/components/styles/typography/heading/Heading.tsx","tags":["dev","test","autodocs"]},"styles-typography-link--docs":{"id":"styles-typography-link--docs","title":"Styles/Typography/Link","name":"Docs","importPath":"./src/components/styles/typography/link/Link.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-link--default":{"type":"story","id":"styles-typography-link--default","name":"Default","title":"Styles/Typography/Link","importPath":"./src/components/styles/typography/link/Link.stories.tsx","componentPath":"./src/components/styles/typography/link/Link.tsx","tags":["dev","test","autodocs"]},"styles-typography-link--no-visited-state":{"type":"story","id":"styles-typography-link--no-visited-state","name":"No Visited State","title":"Styles/Typography/Link","importPath":"./src/components/styles/typography/link/Link.stories.tsx","componentPath":"./src/components/styles/typography/link/Link.tsx","tags":["dev","test","autodocs"]},"styles-typography-list--docs":{"id":"styles-typography-list--docs","title":"Styles/Typography/List","name":"Docs","importPath":"./src/components/styles/typography/list/List.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-list--default":{"type":"story","id":"styles-typography-list--default","name":"Default","title":"Styles/Typography/List","importPath":"./src/components/styles/typography/list/List.stories.tsx","componentPath":"./src/components/styles/typography/list/List.tsx","tags":["dev","test","autodocs"]},"styles-typography-list--bulleted":{"type":"story","id":"styles-typography-list--bulleted","name":"Bulleted","title":"Styles/Typography/List","importPath":"./src/components/styles/typography/list/List.stories.tsx","componentPath":"./src/components/styles/typography/list/List.tsx","tags":["dev","test","autodocs"]},"styles-typography-list--numbered":{"type":"story","id":"styles-typography-list--numbered","name":"Numbered","title":"Styles/Typography/List","importPath":"./src/components/styles/typography/list/List.stories.tsx","componentPath":"./src/components/styles/typography/list/List.tsx","tags":["dev","test","autodocs"]},"styles-typography-list--with-borders":{"type":"story","id":"styles-typography-list--with-borders","name":"With Borders","title":"Styles/Typography/List","importPath":"./src/components/styles/typography/list/List.stories.tsx","componentPath":"./src/components/styles/typography/list/List.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--docs":{"id":"styles-typography-paragraph--docs","title":"Styles/Typography/Paragraph","name":"Docs","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-paragraph--default":{"type":"story","id":"styles-typography-paragraph--default","name":"Default","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--lead":{"type":"story","id":"styles-typography-paragraph--lead","name":"Lead","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--small":{"type":"story","id":"styles-typography-paragraph--small","name":"Small","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--font-sizes":{"type":"story","id":"styles-typography-paragraph--font-sizes","name":"Font Sizes","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--font-weights":{"type":"story","id":"styles-typography-paragraph--font-weights","name":"Font Weights","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-paragraph--text-align-right":{"type":"story","id":"styles-typography-paragraph--text-align-right","name":"Text Align Right","title":"Styles/Typography/Paragraph","importPath":"./src/components/styles/typography/paragraph/Paragraph.stories.tsx","componentPath":"./src/components/styles/typography/paragraph/Paragraph.tsx","tags":["dev","test","autodocs"]},"styles-typography-section-break--docs":{"id":"styles-typography-section-break--docs","title":"Styles/Typography/Section Break","name":"Docs","importPath":"./src/components/styles/typography/section-break/SectionBreak.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"styles-typography-section-break--default":{"type":"story","id":"styles-typography-section-break--default","name":"Default","title":"Styles/Typography/Section Break","importPath":"./src/components/styles/typography/section-break/SectionBreak.stories.tsx","componentPath":"./src/components/styles/typography/section-break/SectionBreak.tsx","tags":["dev","test","autodocs"]},"styles-typography-section-break--visible":{"type":"story","id":"styles-typography-section-break--visible","name":"Visible","title":"Styles/Typography/Section Break","importPath":"./src/components/styles/typography/section-break/SectionBreak.stories.tsx","componentPath":"./src/components/styles/typography/section-break/SectionBreak.tsx","tags":["dev","test","autodocs"]}}} diff --git a/project.json b/project.json index 4875437..76afb0b 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1727268197261,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@testing-library/dom":"10.4.0","@testing-library/jest-dom":"6.5.0","@testing-library/react":"16.0.1","@testing-library/user-event":null,"@vitest/coverage-v8":"2.1.1","vitest":"2.1.1"},"packageManager":{"type":"pnpm","version":"9.11.0"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":44,"storybookVersion":"8.3.3","storybookVersionSpecifier":"^8.3.3","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.3.3"},"@storybook/react":{"version":"8.3.3"},"@storybook/react-vite":{"version":"8.3.3"},"@storybook/test":{"version":"8.3.3"},"storybook":{"version":"8.3.3"}},"addons":{"@storybook/addon-links":{"version":"8.3.3"},"@storybook/addon-essentials":{"version":"8.3.3"},"@storybook/addon-a11y":{"version":"8.3.3"}}} +{"generatedAt":1727361052812,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@testing-library/dom":"10.4.0","@testing-library/jest-dom":"6.5.0","@testing-library/react":"16.0.1","@testing-library/user-event":null,"@vitest/coverage-v8":"2.1.1","vitest":"2.1.1"},"packageManager":{"type":"pnpm","version":"9.11.0"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":44,"storybookVersion":"8.3.3","storybookVersionSpecifier":"^8.3.3","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.3.3"},"@storybook/react":{"version":"8.3.3"},"@storybook/react-vite":{"version":"8.3.3"},"@storybook/test":{"version":"8.3.3"},"storybook":{"version":"8.3.3"}},"addons":{"@storybook/addon-links":{"version":"8.3.3"},"@storybook/addon-essentials":{"version":"8.3.3"},"@storybook/addon-a11y":{"version":"8.3.3"}}}