From 73418225b1ad77543a82e4d4713a6e701a5cd044 Mon Sep 17 00:00:00 2001 From: bspeare Date: Fri, 3 Jan 2025 16:44:15 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20uiowa/ui?= =?UTF-8?q?ds@1ae92b535405600fbc13a9401d61ec9cb9685d5e=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ccordionDocs-CA1i2dy0.js => AccordionDocs-Bt4ADQOB.js} | 2 +- ...ner.stories-BGJuakWT.js => Banner.stories-Bbnu2_A4.js} | 5 ++--- ...r.stories-DeF35Y0I.js => BrandBar.stories-BxvBgLxQ.js} | 2 +- ...{BrandBarDocs-CmsEf4Lp.js => BrandBarDocs-DXJz9MfA.js} | 2 +- ...tories-CUpxL00d.js => BrandFooter.stories-WB9VNZ8i.js} | 2 +- ...FooterDocs-B4s_29-6.js => BrandFooterDocs-xGrsqRxQ.js} | 2 +- ...ut.stories-yXM8iaKv.js => Callout.stories-Bo2l8D8N.js} | 2 +- ...{Card.stories-COSKuUCW.js => Card.stories-Drw6OD7L.js} | 2 +- ...or-ERTF36HU-C7n9iVv5.js => Color-ERTF36HU-Bqiq1jrx.js} | 2 +- ...HY34-_23lAlfx.js => DocsRenderer-CFRXHY34-B17XArFn.js} | 4 ++-- ...late-BgNiHU_-.js => DocumentationTemplate-T86yuQAS.js} | 2 +- ...ine.stories-DExK88bZ.js => Inline.stories-AT9m-AH5.js} | 2 +- ...{Introduction-CEjG5ISF.js => Introduction-CjTeFLhR.js} | 2 +- ...{Logo.stories-CrgY-aEJ.js => Logo.stories-vcdnzFpo.js} | 2 +- ...ted.doc-B66VGNhb.js => NotImplemented.doc-DXO4Zb3D.js} | 2 +- .../assets/{iframe-DUjlg9Xs.js => iframe-CU3-myGO.js} | 4 ++-- .../assets/{index-BTN5t6QD.js => index-BCim25EA.js} | 2 +- .../assets/{index-CSvB1eVb.js => index-BCrd5TVh.js} | 8 ++++---- .../assets/{index-DV4bfYp5.js => index-BEAOkMMq.js} | 2 +- .../assets/{index-Bkg7DETE.js => index-BgPeZvkN.js} | 2 +- .../assets/{preview-CrrxfKD8.js => preview-B-qo0sug.js} | 4 ++-- .../assets/{preview-DWyTf5h7.js => preview-BpGkTYI-.js} | 2 +- branches/banner-component/iframe.html | 2 +- branches/banner-component/project.json | 2 +- 24 files changed, 31 insertions(+), 32 deletions(-) rename branches/banner-component/assets/{AccordionDocs-CA1i2dy0.js => AccordionDocs-Bt4ADQOB.js} (89%) rename branches/banner-component/assets/{Banner.stories-BGJuakWT.js => Banner.stories-Bbnu2_A4.js} (81%) rename branches/banner-component/assets/{BrandBar.stories-DeF35Y0I.js => BrandBar.stories-BxvBgLxQ.js} (95%) rename branches/banner-component/assets/{BrandBarDocs-CmsEf4Lp.js => BrandBarDocs-DXJz9MfA.js} (92%) rename branches/banner-component/assets/{BrandFooter.stories-CUpxL00d.js => BrandFooter.stories-WB9VNZ8i.js} (96%) rename branches/banner-component/assets/{BrandFooterDocs-B4s_29-6.js => BrandFooterDocs-xGrsqRxQ.js} (92%) rename branches/banner-component/assets/{Callout.stories-yXM8iaKv.js => Callout.stories-Bo2l8D8N.js} (97%) rename branches/banner-component/assets/{Card.stories-COSKuUCW.js => Card.stories-Drw6OD7L.js} (99%) rename branches/banner-component/assets/{Color-ERTF36HU-C7n9iVv5.js => Color-ERTF36HU-Bqiq1jrx.js} (99%) rename branches/banner-component/assets/{DocsRenderer-CFRXHY34-_23lAlfx.js => DocsRenderer-CFRXHY34-B17XArFn.js} (84%) rename branches/banner-component/assets/{DocumentationTemplate-BgNiHU_-.js => DocumentationTemplate-T86yuQAS.js} (85%) rename branches/banner-component/assets/{Inline.stories-DExK88bZ.js => Inline.stories-AT9m-AH5.js} (98%) rename branches/banner-component/assets/{Introduction-CEjG5ISF.js => Introduction-CjTeFLhR.js} (94%) rename branches/banner-component/assets/{Logo.stories-CrgY-aEJ.js => Logo.stories-vcdnzFpo.js} (91%) rename branches/banner-component/assets/{NotImplemented.doc-B66VGNhb.js => NotImplemented.doc-DXO4Zb3D.js} (82%) rename branches/banner-component/assets/{iframe-DUjlg9Xs.js => iframe-CU3-myGO.js} (76%) rename branches/banner-component/assets/{index-BTN5t6QD.js => index-BCim25EA.js} (51%) rename branches/banner-component/assets/{index-CSvB1eVb.js => index-BCrd5TVh.js} (99%) rename branches/banner-component/assets/{index-DV4bfYp5.js => index-BEAOkMMq.js} (96%) rename branches/banner-component/assets/{index-Bkg7DETE.js => index-BgPeZvkN.js} (83%) rename branches/banner-component/assets/{preview-CrrxfKD8.js => preview-B-qo0sug.js} (67%) rename branches/banner-component/assets/{preview-DWyTf5h7.js => preview-BpGkTYI-.js} (95%) diff --git a/branches/banner-component/assets/AccordionDocs-CA1i2dy0.js b/branches/banner-component/assets/AccordionDocs-Bt4ADQOB.js similarity index 89% rename from branches/banner-component/assets/AccordionDocs-CA1i2dy0.js rename to branches/banner-component/assets/AccordionDocs-Bt4ADQOB.js index a6ac89bb8f..385b25c5d9 100644 --- a/branches/banner-component/assets/AccordionDocs-CA1i2dy0.js +++ b/branches/banner-component/assets/AccordionDocs-Bt4ADQOB.js @@ -1,4 +1,4 @@ -import{ae as n,af as o,ah as a,ai as c,aj as d,ak as h,al as l}from"./index-CSvB1eVb.js";import{u as r}from"./index-Bkg7DETE.js";import{v as e}from"./package-8M00SVuC.js";import"./iframe-DUjlg9Xs.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function i(t){const s={a:"a",h2:"h2",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...r(),...t.components};return n.jsxs(n.Fragment,{children:[n.jsx(o,{isTemplate:!0}),` +import{ae as n,af as o,ah as a,ai as c,aj as d,ak as h,al as l}from"./index-BCrd5TVh.js";import{u as r}from"./index-BgPeZvkN.js";import{v as e}from"./package-8M00SVuC.js";import"./iframe-CU3-myGO.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function i(t){const s={a:"a",h2:"h2",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...r(),...t.components};return n.jsxs(n.Fragment,{children:[n.jsx(o,{isTemplate:!0}),` `,n.jsx(a,{}),` `,n.jsx(s.h2,{id:"usage",children:"Usage"}),` `,n.jsxs(s.p,{children:["Make sure you are familiar with the ",n.jsx(s.a,{href:"../?path=/docs/introduction#getting-started",children:n.jsx(s.strong,{children:"Getting Started"})})," guide first."]}),` diff --git a/branches/banner-component/assets/Banner.stories-BGJuakWT.js b/branches/banner-component/assets/Banner.stories-Bbnu2_A4.js similarity index 81% rename from branches/banner-component/assets/Banner.stories-BGJuakWT.js rename to branches/banner-component/assets/Banner.stories-Bbnu2_A4.js index 9326d6e51f..41c28aa521 100644 --- a/branches/banner-component/assets/Banner.stories-BGJuakWT.js +++ b/branches/banner-component/assets/Banner.stories-Bbnu2_A4.js @@ -1,5 +1,4 @@ -import{d as U,k as b,v as E,c as r,l as d,f,n as y,m as c,a as x,b as B,o,p as w,F as N,x as O}from"./vue.esm-bundler--ETYdinE.js";import{_ as q}from"./Button.vue_vue_type_script_setup_true_lang-ChQE5Vxq.js";import{_ as F}from"./Headline.vue_vue_type_script_setup_true_lang-Bzaie0v3.js";import{a as R,_ as j}from"./click-a11y-CyDOAv-Y.js";import{B as v}from"./_background-RctfgKj_.js";import{_ as G,a as Q}from"./ExampleVideoFile-qqG1yAt6.js";import{Primary as s}from"./Button.stories-Cxe31HQS.js";import"./utlity-CAV5GFHh.js";/* empty css */(function(){const n=matchMedia("(prefers-reduced-motion)");function e(a,i){a&&(this.element=a,this.video=this.element.querySelector("video"),this.video&&(this.video.id=this.video.id+"-"+i,this.video_btn=this.element.querySelector(".video-controls .video-btn"),this.video_btn.id=this.video_btn.id+"-"+i,e.reducedMotionCheck(this.video,this.video_btn),n.addListener(function(){e.reducedMotionCheck(this.video,this.video_btn)}),this.video_btn.addEventListener("click",()=>{e.pausePlay(this.video,this.video_btn)})))}e.reducedMotionCheck=function(a,i){n.matches&&(a.pause(),this.setButtonDataPlay(i))},e.pausePlay=function(a,i){a.paused?(a.play(),e.setButtonDataPaused(i)):(a.pause(),e.setButtonDataPlay(i))},e.setButtonDataPaused=function(a){a.innerHTML="Pause",a.classList.remove("video-btn__play"),a.classList.add("video-btn__pause"),a.setAttribute("aria-label","Pause")},e.setButtonDataPlay=function(a){a.innerHTML="Play",a.classList.remove("video-btn__pause"),a.classList.add("video-btn__play"),a.setAttribute("aria-label","Play")},window.UidsVideo=e;const h=document.getElementsByClassName("media--video");for(let a=0;a[]},button_color:{type:String,default:"primary",validator:function(n){return["primary","secondary","tertiary","transparent"].indexOf(n)!==-1}},button_light_font:{type:Boolean,default:!1},headline_size:{type:String,default:""},headline_style:{type:String,default:""},headline_highlight:{type:Boolean,default:!1},horizontal_alignment:{type:String,default:""},vertical_alignment:{type:String,default:""},gradient:{type:String,default:"dark",validator:function(n){return["dark","light"].indexOf(n)!==-1}},height:{type:String,default:""},mobile_content_below_image:{type:Boolean,default:!1},background:{type:String,default:""}},setup(n){const e=n,h=b(()=>{let t=["banner"];return v.addBackgroundClass(t,e),e.buttons.length===1&&t.push("click-container"),e.gradient&&e.background===""&&t.push(`banner--gradient-${e.gradient}`),e.height&&t.push(`banner--${e.height}`),e.mobile_content_below_image===!0&&t.push("banner--stacked"),e.horizontal_alignment&&t.push(`banner--horizontal-${e.horizontal_alignment}`),e.vertical_alignment&&t.push(`banner--vertical-${e.vertical_alignment}`),e.horizontal_alignment==="left"?t.push("banner--gradient-left"):t.push("banner--gradient-bottom"),t}),a=b(()=>{const t=["headline","banner__pre-title"];if(e.headline_size&&t.push(`headline--${e.headline_size}`),e.headline_style)switch(e.headline_style){case"uppercase":t.push("headline--uppercase");break;case"serif":t.push("headline--serif");break}return t}),i=b(()=>e.buttons.length>1?!1:e.buttons[0].url||!1);return E(()=>{e.buttons.length>0&&R(".click-container:not([data-uids-no-link])"),document.querySelectorAll(".media--video").forEach((k,p)=>{new window.UidsVideo(k,p)})}),(t,k)=>(o(),r("div",{class:y(h.value)},[d(t.$slots,"media"),f("div",Z,[f("div",J,[t.$slots.title||t.$slots.pre_title?(o(),r("header",K,[t.$slots.pre_title?(o(),r("div",{key:0,class:y(a.value)},[d(t.$slots,"pre_title")],2)):c("",!0),x(F,{text_style:n.headline_style,highlight:n.headline_highlight,class:y(`headline--${e.headline_size}`)},{default:B(()=>[i.value?(o(),r("a",{key:0,href:i.value,class:"click-target"},[d(t.$slots,"title")],8,W)):d(t.$slots,"title",{key:1})]),_:3},8,["text_style","highlight","class"])])):c("",!0),t.$slots.default?(o(),r("div",X,[d(t.$slots,"default")])):c("",!0),n.buttons.length>0||t.$slots.buttons?(o(),r("footer",Y,[d(t.$slots,"buttons",{},()=>[n.buttons.length===1?(o(),w(j,{key:0,size:"medium",color:n.button_color,light_font:n.button_light_font,innerHTML:n.buttons[0].label},null,8,["color","light_font","innerHTML"])):n.buttons.length>0?(o(),r("div",ee,[(o(!0),r(N,null,O(n.buttons,(p,ae)=>(o(),w(q,{url:p.url,size:"medium",color:n.button_color,light_font:n.button_light_font},{default:B(()=>[f("span",{innerHTML:p.label},null,8,te)]),_:2},1032,["url","color","light_font"]))),256))])):c("",!0)])])):c("",!0)])])],2))}}),ge={title:"Components/Banner",parameters:{docs:{source:{code:null}}},component:D,tags:["autodocs"],argTypes:{background_media:{table:{disable:!0}},pre_title:{name:"Pre-title"},title:{name:"Title"},content:{name:"Content"},background:{name:"Background",options:["",...Object.keys(v.allBackgroundOptions)],control:{type:"select",labels:{"":"Image or video",...v.allBackgroundOptions}}},buttons:{name:"Buttons"},button_color:{name:"Button style",control:{type:"select"},options:["primary","secondary","tertiary","transparent"],table:{category:"Buttons"}},button_light_font:{name:"Button light font",control:{type:"boolean"},table:{category:"Buttons"}},headline_size:{name:"Headline size",options:["large","medium","small"],control:{type:"select"},table:{category:"Headline"}},headline_style:{name:"Headline style",options:["uppercase","serif"],control:{type:"select",labels:{uppercase:"Antonio",serif:"Zilla Slab"}},table:{category:"Headline"}},headline_highlight:{name:"Headline highlight",table:{category:"Headline"}},horizontal_alignment:{name:"Horizontal alignment",options:["left","center"],control:{type:"select",labels:{left:"Left",center:"Center"}},table:{category:"Display options"}},vertical_alignment:{name:"Vertical alignment",options:["center","bottom"],control:{type:"select",labels:{center:"Center",bottom:"Bottom"}},table:{category:"Display options"}},gradient:{name:"Gradient",default:"dark",options:["dark","light"],control:{type:"select"},table:{category:"Display options"}},height:{name:"Height",options:["small","medium","large"],control:{type:"select"},table:{category:"Display options"}},mobile_content_below_image:{name:"Content below media (Mobile-only)",control:{type:"boolean"},table:{category:"Display options"}}}},_={render:n=>({components:{UidsBanner:D,ExampleImage:G,ExampleVideoFile:Q},setup(){return{args:n}},template:` -
+import{d as U,k as b,v as E,c as r,l as c,f,n as y,m as d,a as x,b as B,o,p as w,F as N,x as O}from"./vue.esm-bundler--ETYdinE.js";import{_ as q}from"./Button.vue_vue_type_script_setup_true_lang-ChQE5Vxq.js";import{_ as F}from"./Headline.vue_vue_type_script_setup_true_lang-Bzaie0v3.js";import{a as R,_ as j}from"./click-a11y-CyDOAv-Y.js";import{B as v}from"./_background-RctfgKj_.js";import{_ as G,a as Q}from"./ExampleVideoFile-qqG1yAt6.js";import{Primary as s}from"./Button.stories-Cxe31HQS.js";import"./utlity-CAV5GFHh.js";/* empty css */(function(){const n=matchMedia("(prefers-reduced-motion)");function e(a,i){a&&(this.element=a,this.video=this.element.querySelector("video"),this.video&&(this.video.id=this.video.id+"-"+i,this.video_btn=this.element.querySelector(".video-controls .video-btn"),this.video_btn.id=this.video_btn.id+"-"+i,e.reducedMotionCheck(this.video,this.video_btn),n.addListener(function(){e.reducedMotionCheck(this.video,this.video_btn)}),this.video_btn.addEventListener("click",()=>{e.pausePlay(this.video,this.video_btn)})))}e.reducedMotionCheck=function(a,i){n.matches&&(a.pause(),this.setButtonDataPlay(i))},e.pausePlay=function(a,i){a.paused?(a.play(),e.setButtonDataPaused(i)):(a.pause(),e.setButtonDataPlay(i))},e.setButtonDataPaused=function(a){a.innerHTML="Pause",a.classList.remove("video-btn__play"),a.classList.add("video-btn__pause"),a.setAttribute("aria-label","Pause")},e.setButtonDataPlay=function(a){a.innerHTML="Play",a.classList.remove("video-btn__pause"),a.classList.add("video-btn__play"),a.setAttribute("aria-label","Play")},window.UidsVideo=e;const h=document.getElementsByClassName("media--video");for(let a=0;a[]},button_color:{type:String,default:"primary",validator:function(n){return["primary","secondary","tertiary","transparent"].indexOf(n)!==-1}},button_light_font:{type:Boolean,default:!1},headline_size:{type:String,default:""},headline_style:{type:String,default:""},headline_highlight:{type:Boolean,default:!1},horizontal_alignment:{type:String,default:""},vertical_alignment:{type:String,default:""},gradient:{type:String,default:"dark",validator:function(n){return["dark","light"].indexOf(n)!==-1}},height:{type:String,default:""},mobile_content_below_image:{type:Boolean,default:!1},background:{type:String,default:""}},setup(n){const e=n,h=b(()=>{let t=["banner"];return v.addBackgroundClass(t,e),e.buttons.length===1&&t.push("click-container"),e.gradient&&e.background===""&&t.push(`banner--gradient-${e.gradient}`),e.height&&t.push(`banner--${e.height}`),e.mobile_content_below_image===!0&&t.push("banner--stacked"),e.horizontal_alignment&&t.push(`banner--horizontal-${e.horizontal_alignment}`),e.vertical_alignment&&t.push(`banner--vertical-${e.vertical_alignment}`),e.horizontal_alignment==="left"?t.push("banner--gradient-left"):t.push("banner--gradient-bottom"),t}),a=b(()=>{const t=["headline","banner__pre-title"];if(e.headline_size&&t.push(`headline--${e.headline_size}`),e.headline_style)switch(e.headline_style){case"uppercase":t.push("headline--uppercase");break;case"serif":t.push("headline--serif");break}return t}),i=b(()=>e.buttons.length>1?!1:e.buttons[0].url||!1);return E(()=>{e.buttons.length>0&&R(".click-container:not([data-uids-no-link])"),document.querySelectorAll(".media--video").forEach((k,p)=>{new window.UidsVideo(k,p)})}),(t,k)=>(o(),r("div",{class:y(h.value)},[c(t.$slots,"media"),f("div",Z,[f("div",J,[t.$slots.title||t.$slots.pre_title?(o(),r("header",K,[t.$slots.pre_title?(o(),r("div",{key:0,class:y(a.value)},[c(t.$slots,"pre_title")],2)):d("",!0),x(F,{text_style:n.headline_style,highlight:n.headline_highlight,class:y(`headline--${e.headline_size}`)},{default:B(()=>[i.value?(o(),r("a",{key:0,href:i.value,class:"click-target"},[c(t.$slots,"title")],8,W)):c(t.$slots,"title",{key:1})]),_:3},8,["text_style","highlight","class"])])):d("",!0),t.$slots.default?(o(),r("div",X,[c(t.$slots,"default")])):d("",!0),n.buttons.length>0||t.$slots.buttons?(o(),r("footer",Y,[c(t.$slots,"buttons",{},()=>[n.buttons.length===1?(o(),w(j,{key:0,size:"medium",color:n.button_color,light_font:n.button_light_font,innerHTML:n.buttons[0].label},null,8,["color","light_font","innerHTML"])):n.buttons.length>0?(o(),r("div",ee,[(o(!0),r(N,null,O(n.buttons,(p,ae)=>(o(),w(q,{url:p.url,size:"medium",color:n.button_color,light_font:n.button_light_font},{default:B(()=>[f("span",{innerHTML:p.label},null,8,te)]),_:2},1032,["url","color","light_font"]))),256))])):d("",!0)])])):d("",!0)])])],2))}}),ge={title:"Components/Banner",parameters:{docs:{source:{code:null}}},component:D,tags:["autodocs"],argTypes:{background_media:{table:{disable:!0}},pre_title:{name:"Pre-title"},title:{name:"Title"},content:{name:"Content"},background:{name:"Background",options:["",...Object.keys(v.allBackgroundOptions)],control:{type:"select",labels:{"":"Image or video",...v.allBackgroundOptions}}},buttons:{name:"Buttons"},button_color:{name:"Button style",control:{type:"select"},options:["primary","secondary","tertiary","transparent"],table:{category:"Buttons"}},button_light_font:{name:"Button light font",control:{type:"boolean"},table:{category:"Buttons"}},headline_size:{name:"Headline size",options:["large","medium","small"],control:{type:"select"},table:{category:"Headline"}},headline_style:{name:"Headline style",options:["uppercase","serif"],control:{type:"select",labels:{uppercase:"Antonio",serif:"Zilla Slab"}},table:{category:"Headline"}},headline_highlight:{name:"Headline highlight",table:{category:"Headline"}},horizontal_alignment:{name:"Horizontal alignment",options:["left","center"],control:{type:"select",labels:{left:"Left",center:"Center"}},table:{category:"Display options"}},vertical_alignment:{name:"Vertical alignment",options:["center","bottom"],control:{type:"select",labels:{center:"Center",bottom:"Bottom"}},table:{category:"Display options"}},gradient:{name:"Gradient",default:"dark",options:["dark","light"],control:{type:"select"},table:{category:"Display options"}},height:{name:"Height",options:["small","medium","large"],control:{type:"select"},table:{category:"Display options"}},mobile_content_below_image:{name:"Content below media (Mobile-only)",control:{type:"boolean"},table:{category:"Display options"}}}},_={render:n=>({components:{UidsBanner:D,ExampleImage:G,ExampleVideoFile:Q},setup(){return{args:n}},template:` ${n.content} -
`})},l={..._,args:{background:"",background_media:"",pre_title:"University of Iowa",title:"Living on Campus",content:'

A member of the Association of American Universities since 1909 and the Big Ten Conference
since 1899, the University of Iowa is home to one of the most acclaimed academic medical centers
in the country, as well as globally recognized leadership in the study and craft of writing.

',headline_style:"serif",headline_highlight:!1,headline_size:"large",horizontal_alignment:"center",vertical_alignment:"center",gradient:"dark",height:"large",mobile_content_below_image:!0,button_light_font:!1,button_color:"primary",buttons:[{...s.args,label:"Read More "+s.args.icon,color:"primary"}]}};l.storyName="Background image";const u={..._,args:{...l.args,background_media:""}};u.storyName="Background video";const g={..._,args:{...l.args,background:"gold--pattern--particle",background_media:"",gradient:"light"}};g.storyName="Background pattern";const m={..._,args:{...l.args,buttons:[{...s.args,label:"Apply "+s.args.icon},{...s.args,label:"Learn More "+s.args.icon,url:"https://uiowa.edu/about"},{...s.args,label:"Explore "+s.args.icon,url:"https://uiowa.edu/explore"}]}};m.storyName="Multiple buttons";var z,S,$;l.parameters={...l.parameters,docs:{...(z=l.parameters)==null?void 0:z.docs,source:{originalSource:`{ + `})},l={..._,args:{background:"",background_media:"",pre_title:"University of Iowa",title:"Living on Campus",content:'

A member of the Association of American Universities since 1909 and the Big Ten Conference
since 1899, the University of Iowa is home to one of the most acclaimed academic medical centers
in the country, as well as globally recognized leadership in the study and craft of writing.

',headline_style:"serif",headline_highlight:!1,headline_size:"large",horizontal_alignment:"center",vertical_alignment:"center",gradient:"dark",height:"large",mobile_content_below_image:!0,button_light_font:!1,button_color:"primary",buttons:[{...s.args,label:"Read More "+s.args.icon,color:"primary"}]}};l.storyName="Background image";const u={..._,args:{...l.args,background_media:""}};u.storyName="Background video";const g={..._,args:{...l.args,background:"gold--pattern--particle",background_media:"",gradient:"light"}};g.storyName="Background pattern";const m={..._,args:{...l.args,buttons:[{...s.args,label:"Apply "+s.args.icon},{...s.args,label:"Learn More "+s.args.icon,url:"https://uiowa.edu/about"},{...s.args,label:"Explore "+s.args.icon,url:"https://uiowa.edu/explore"}]}};m.storyName="Multiple buttons";var z,S,$;l.parameters={...l.parameters,docs:{...(z=l.parameters)==null?void 0:z.docs,source:{originalSource:`{ ...Template, args: { background: '', diff --git a/branches/banner-component/assets/BrandBar.stories-DeF35Y0I.js b/branches/banner-component/assets/BrandBar.stories-BxvBgLxQ.js similarity index 95% rename from branches/banner-component/assets/BrandBar.stories-DeF35Y0I.js rename to branches/banner-component/assets/BrandBar.stories-BxvBgLxQ.js index b54190ac1a..3a06577326 100644 --- a/branches/banner-component/assets/BrandBar.stories-DeF35Y0I.js +++ b/branches/banner-component/assets/BrandBar.stories-BxvBgLxQ.js @@ -1,4 +1,4 @@ -import{k as d,c as p,f as m,a as N,l as u,m as k,n as W,y as D,o as h}from"./vue.esm-bundler--ETYdinE.js";import{_ as P}from"./Logo.vue_vue_type_script_setup_true_lang-BeIHPccp.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";import E from"./BrandBarDocs-CmsEf4Lp.js";import"./index-CSvB1eVb.js";import"./iframe-DUjlg9Xs.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";import"./index-Bkg7DETE.js";import"./package-8M00SVuC.js";const z={name:"uids-iowa-bar",components:{UidsLogo:P},props:{narrow:{type:Boolean,default:!1},healthcare:{type:Boolean,default:!1}},setup(a,r){const l=d(()=>{let n=["iowa-bar"];return(a.narrow||r.slots.second_row_content)&&n.push("iowa-bar--narrow"),a.healthcare&&n.push("iowa-bar--healthcare"),n}),i=d(()=>r.slots.parent_title&&r.slots.parent_title().length||r.slots.bottom_content&&r.slots.bottom_content().length);return{getClasses:l,showBottomBar:i}}},L={class:"iowa-bar__container"},M={key:0,class:"iowa-bar__below"},O={class:"iowa-bar__container"};function X(a,r,l,i,n,x){const $=D("uids-logo");return h(),p("header",{class:W(i.getClasses),"data-uids-header":""},[m("div",L,[N($,{healthcare:l.healthcare,context:"header"},null,8,["healthcare"]),u(a.$slots,"default")]),a.$slots.second_row_content?(h(),p("div",M,[m("div",O,[u(a.$slots,"second_row_content")])])):k("",!0)],2)}const c=V(z,[["render",X]]),ra={title:"Components/Branding/Brand Bar",component:c,tags:["autodocs"],argTypes:{narrow:{control:{type:"boolean"}},default:{control:{type:"text"}},second_row_content:{control:{type:"text"}},healthcare:{control:{type:"boolean"}}},parameters:{docs:{source:{code:null},page:E}}},j=a=>({components:{UidsIowaBar:c},setup(){return{args:a}},template:` +import{k as d,c as p,f as m,a as N,l as u,m as k,n as W,y as D,o as h}from"./vue.esm-bundler--ETYdinE.js";import{_ as P}from"./Logo.vue_vue_type_script_setup_true_lang-BeIHPccp.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";import E from"./BrandBarDocs-DXJz9MfA.js";import"./index-BCrd5TVh.js";import"./iframe-CU3-myGO.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";import"./index-BgPeZvkN.js";import"./package-8M00SVuC.js";const z={name:"uids-iowa-bar",components:{UidsLogo:P},props:{narrow:{type:Boolean,default:!1},healthcare:{type:Boolean,default:!1}},setup(a,r){const l=d(()=>{let n=["iowa-bar"];return(a.narrow||r.slots.second_row_content)&&n.push("iowa-bar--narrow"),a.healthcare&&n.push("iowa-bar--healthcare"),n}),i=d(()=>r.slots.parent_title&&r.slots.parent_title().length||r.slots.bottom_content&&r.slots.bottom_content().length);return{getClasses:l,showBottomBar:i}}},L={class:"iowa-bar__container"},M={key:0,class:"iowa-bar__below"},O={class:"iowa-bar__container"};function X(a,r,l,i,n,x){const $=D("uids-logo");return h(),p("header",{class:W(i.getClasses),"data-uids-header":""},[m("div",L,[N($,{healthcare:l.healthcare,context:"header"},null,8,["healthcare"]),u(a.$slots,"default")]),a.$slots.second_row_content?(h(),p("div",M,[m("div",O,[u(a.$slots,"second_row_content")])])):k("",!0)],2)}const c=V(z,[["render",X]]),ra={title:"Components/Branding/Brand Bar",component:c,tags:["autodocs"],argTypes:{narrow:{control:{type:"boolean"}},default:{control:{type:"text"}},second_row_content:{control:{type:"text"}},healthcare:{control:{type:"boolean"}}},parameters:{docs:{source:{code:null},page:E}}},j=a=>({components:{UidsIowaBar:c},setup(){return{args:a}},template:` {{ args.default }} diff --git a/branches/banner-component/assets/BrandBarDocs-CmsEf4Lp.js b/branches/banner-component/assets/BrandBarDocs-DXJz9MfA.js similarity index 92% rename from branches/banner-component/assets/BrandBarDocs-CmsEf4Lp.js rename to branches/banner-component/assets/BrandBarDocs-DXJz9MfA.js index 95b49e97ce..5851b65f71 100644 --- a/branches/banner-component/assets/BrandBarDocs-CmsEf4Lp.js +++ b/branches/banner-component/assets/BrandBarDocs-DXJz9MfA.js @@ -1,4 +1,4 @@ -import{ae as n,af as o,ah as a,ai as c,aj as d,al as h}from"./index-CSvB1eVb.js";import{u as r}from"./index-Bkg7DETE.js";import{v as e}from"./package-8M00SVuC.js";import"./iframe-DUjlg9Xs.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function i(t){const s={a:"a",h2:"h2",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...r(),...t.components};return n.jsxs(n.Fragment,{children:[n.jsx(o,{isTemplate:!0}),` +import{ae as n,af as o,ah as a,ai as c,aj as d,al as h}from"./index-BCrd5TVh.js";import{u as r}from"./index-BgPeZvkN.js";import{v as e}from"./package-8M00SVuC.js";import"./iframe-CU3-myGO.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function i(t){const s={a:"a",h2:"h2",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...r(),...t.components};return n.jsxs(n.Fragment,{children:[n.jsx(o,{isTemplate:!0}),` `,n.jsx(a,{}),` `,n.jsx(s.h2,{id:"usage",children:"Usage"}),` `,n.jsxs(s.p,{children:["Make sure you are familiar with the ",n.jsx(s.a,{href:"../?path=/docs/introduction#getting-started",children:n.jsx(s.strong,{children:"Getting Started"})})," guide first."]}),` diff --git a/branches/banner-component/assets/BrandFooter.stories-CUpxL00d.js b/branches/banner-component/assets/BrandFooter.stories-WB9VNZ8i.js similarity index 96% rename from branches/banner-component/assets/BrandFooter.stories-CUpxL00d.js rename to branches/banner-component/assets/BrandFooter.stories-WB9VNZ8i.js index 570f1fe5d1..523112d9c9 100644 --- a/branches/banner-component/assets/BrandFooter.stories-CUpxL00d.js +++ b/branches/banner-component/assets/BrandFooter.stories-WB9VNZ8i.js @@ -1,4 +1,4 @@ -import{k as b,c as d,f as e,a as x,l as c,m as C,t as T,n as I,y as B,o as p}from"./vue.esm-bundler--ETYdinE.js";import{_ as F}from"./Logo.vue_vue_type_script_setup_true_lang-BeIHPccp.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";import U from"./BrandFooterDocs-B4s_29-6.js";import"./index-CSvB1eVb.js";import"./index-Bkg7DETE.js";import"./package-8M00SVuC.js";import"./iframe-DUjlg9Xs.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";const $={name:"uids-iowa-footer",components:{UidsLogo:F},props:{parent_site_title:{type:String,default:""},contact_info:{type:String,default:""},healthcare:{type:Boolean,default:!1}},setup(t,a){const r=new Date().getFullYear();return{getClasses:b(()=>["footer"]),getYear:r}}},N={class:"footer__container footer__container--flex"},D={class:"footer__links footer__links--contact"},O={key:0},W={class:"socket"},Y={class:"socket__menu"};function A(t,a,r,l,y,H){const S=B("uids-logo");return p(),d("footer",{class:I(l.getClasses)},[e("div",N,[e("div",D,[x(S,{healthcare:r.healthcare,context:"footer"},null,8,["healthcare"]),c(t.$slots,"default"),r.parent_site_title?(p(),d("div",O,[c(t.$slots,"parent_site_title")])):C("",!0),c(t.$slots,"contact_info"),e("div",W,[e("ul",Y,[e("li",null,"© "+T(l.getYear)+" The University of Iowa",1),a[0]||(a[0]=e("li",null,[e("a",{href:"https://uiowa.edu/privacy"},"Privacy Notice")],-1)),a[1]||(a[1]=e("li",null,[e("a",{href:"https://opsmanual.uiowa.edu/community-policies/nondiscrimination-statement"},"UI Nondiscrimination Statement")],-1)),a[2]||(a[2]=e("li",null,[e("a",{href:"https://uiowa.edu/accessibility"},"Accessibility")],-1))])])])])],2)}const i=P($,[["render",A]]),E=[{icon:"facebook-square",text:"Facebook"},{icon:"twitter-square",text:"Twitter"},{icon:"instagram",text:"Instagram"},{icon:"snapchat",text:"Snapchat"},{icon:"youtube",text:"Youtube"},{icon:"linkedin",text:"LinkedIn"},{icon:"pinterest",text:"Pinterest"}],L=` +import{k as b,c as d,f as e,a as x,l as c,m as C,t as T,n as I,y as B,o as p}from"./vue.esm-bundler--ETYdinE.js";import{_ as F}from"./Logo.vue_vue_type_script_setup_true_lang-BeIHPccp.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";import U from"./BrandFooterDocs-xGrsqRxQ.js";import"./index-BCrd5TVh.js";import"./index-BgPeZvkN.js";import"./package-8M00SVuC.js";import"./iframe-CU3-myGO.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";const $={name:"uids-iowa-footer",components:{UidsLogo:F},props:{parent_site_title:{type:String,default:""},contact_info:{type:String,default:""},healthcare:{type:Boolean,default:!1}},setup(t,a){const r=new Date().getFullYear();return{getClasses:b(()=>["footer"]),getYear:r}}},N={class:"footer__container footer__container--flex"},D={class:"footer__links footer__links--contact"},O={key:0},W={class:"socket"},Y={class:"socket__menu"};function A(t,a,r,l,y,H){const S=B("uids-logo");return p(),d("footer",{class:I(l.getClasses)},[e("div",N,[e("div",D,[x(S,{healthcare:r.healthcare,context:"footer"},null,8,["healthcare"]),c(t.$slots,"default"),r.parent_site_title?(p(),d("div",O,[c(t.$slots,"parent_site_title")])):C("",!0),c(t.$slots,"contact_info"),e("div",W,[e("ul",Y,[e("li",null,"© "+T(l.getYear)+" The University of Iowa",1),a[0]||(a[0]=e("li",null,[e("a",{href:"https://uiowa.edu/privacy"},"Privacy Notice")],-1)),a[1]||(a[1]=e("li",null,[e("a",{href:"https://opsmanual.uiowa.edu/community-policies/nondiscrimination-statement"},"UI Nondiscrimination Statement")],-1)),a[2]||(a[2]=e("li",null,[e("a",{href:"https://uiowa.edu/accessibility"},"Accessibility")],-1))])])])])],2)}const i=P($,[["render",A]]),E=[{icon:"facebook-square",text:"Facebook"},{icon:"twitter-square",text:"Twitter"},{icon:"instagram",text:"Instagram"},{icon:"snapchat",text:"Snapchat"},{icon:"youtube",text:"Youtube"},{icon:"linkedin",text:"LinkedIn"},{icon:"pinterest",text:"Pinterest"}],L=`

300 Plaza Centre One
Iowa City, Iowa 52242
diff --git a/branches/banner-component/assets/BrandFooterDocs-B4s_29-6.js b/branches/banner-component/assets/BrandFooterDocs-xGrsqRxQ.js similarity index 92% rename from branches/banner-component/assets/BrandFooterDocs-B4s_29-6.js rename to branches/banner-component/assets/BrandFooterDocs-xGrsqRxQ.js index d70032a925..1737e6492d 100644 --- a/branches/banner-component/assets/BrandFooterDocs-B4s_29-6.js +++ b/branches/banner-component/assets/BrandFooterDocs-xGrsqRxQ.js @@ -1,4 +1,4 @@ -import{ae as n,af as r,ah as a,ai as c,aj as d,al as h}from"./index-CSvB1eVb.js";import{u as i}from"./index-Bkg7DETE.js";import{v as e}from"./package-8M00SVuC.js";import"./iframe-DUjlg9Xs.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function o(t){const s={a:"a",h2:"h2",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...i(),...t.components};return n.jsxs(n.Fragment,{children:[n.jsx(r,{isTemplate:!0}),` +import{ae as n,af as r,ah as a,ai as c,aj as d,al as h}from"./index-BCrd5TVh.js";import{u as i}from"./index-BgPeZvkN.js";import{v as e}from"./package-8M00SVuC.js";import"./iframe-CU3-myGO.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function o(t){const s={a:"a",h2:"h2",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...i(),...t.components};return n.jsxs(n.Fragment,{children:[n.jsx(r,{isTemplate:!0}),` `,n.jsx(a,{}),` `,n.jsx(s.h2,{id:"usage",children:"Usage"}),` `,n.jsxs(s.p,{children:["Make sure you are familiar with the ",n.jsx(s.a,{href:"../?path=/docs/introduction#getting-started",children:n.jsx(s.strong,{children:"Getting Started"})})," guide first."]}),` diff --git a/branches/banner-component/assets/Callout.stories-yXM8iaKv.js b/branches/banner-component/assets/Callout.stories-Bo2l8D8N.js similarity index 97% rename from branches/banner-component/assets/Callout.stories-yXM8iaKv.js rename to branches/banner-component/assets/Callout.stories-Bo2l8D8N.js index 69980baf61..417c76de46 100644 --- a/branches/banner-component/assets/Callout.stories-yXM8iaKv.js +++ b/branches/banner-component/assets/Callout.stories-Bo2l8D8N.js @@ -1,4 +1,4 @@ -import{d as g,k as f,c as h,l as _,n as y,o as b}from"./vue.esm-bundler--ETYdinE.js";import{B as s}from"./_background-RctfgKj_.js";import{M as v}from"./media-PjSUOf2n.js";import{c as i}from"./utlity-CAV5GFHh.js";import C from"./preview-DWyTf5h7.js";const l=["","small","medium","large"],o=["","left","right","center"],k={inline_alignment:{type:String,default:"left",validator:function(e){return o.indexOf(e)!==-1}},inline_size:{type:String,default:"",validator:function(e){return l.indexOf(e)!==-1}}},w={inline_alignment:{name:"Alignment",table:{defaultValue:{summary:o[0]},category:"Display options"},options:o,control:{type:"select",labels:{"":"full width"}}},inline_size:{name:"Size",table:{defaultValue:{summary:l[0]},category:"Display options"},options:l,control:{type:"select",labels:{"":"full width"}}}},z=(e,t)=>{t.inline_size&&e.push(`inline--size-${i(t.inline_size)}`),t.inline_alignment&&e.push(`inline--align-${i(t.inline_alignment)}`)},r={props:k,argTypes:w,addClass:z},p=g({__name:"Callout",props:{...r.props,...s.props,...v.props},setup(e){const t=e,m=f(()=>{let a=["callout"];return s.addBackgroundClass(a,t),r.addClass(a,t),a});return(a,B)=>(b(),h("div",{class:y(m.value)},[_(a.$slots,"default")],2))}}),S={title:"Components/Callout",component:p,tags:["autodocs"],argTypes:{...s.argTypes,default:{name:"Content",control:{type:"text"}}},parameters:{docs:{source:{code:null}},viewport:{viewports:C.parameters.viewport.viewports,defaultViewport:"tablet"}}},T=e=>({components:{UidsCallout:p},setup(){return{args:e}},template:` +import{d as g,k as f,c as h,l as _,n as y,o as b}from"./vue.esm-bundler--ETYdinE.js";import{B as s}from"./_background-RctfgKj_.js";import{M as v}from"./media-PjSUOf2n.js";import{c as i}from"./utlity-CAV5GFHh.js";import C from"./preview-BpGkTYI-.js";const l=["","small","medium","large"],o=["","left","right","center"],k={inline_alignment:{type:String,default:"left",validator:function(e){return o.indexOf(e)!==-1}},inline_size:{type:String,default:"",validator:function(e){return l.indexOf(e)!==-1}}},w={inline_alignment:{name:"Alignment",table:{defaultValue:{summary:o[0]},category:"Display options"},options:o,control:{type:"select",labels:{"":"full width"}}},inline_size:{name:"Size",table:{defaultValue:{summary:l[0]},category:"Display options"},options:l,control:{type:"select",labels:{"":"full width"}}}},z=(e,t)=>{t.inline_size&&e.push(`inline--size-${i(t.inline_size)}`),t.inline_alignment&&e.push(`inline--align-${i(t.inline_alignment)}`)},r={props:k,argTypes:w,addClass:z},p=g({__name:"Callout",props:{...r.props,...s.props,...v.props},setup(e){const t=e,m=f(()=>{let a=["callout"];return s.addBackgroundClass(a,t),r.addClass(a,t),a});return(a,B)=>(b(),h("div",{class:y(m.value)},[_(a.$slots,"default")],2))}}),S={title:"Components/Callout",component:p,tags:["autodocs"],argTypes:{...s.argTypes,default:{name:"Content",control:{type:"text"}}},parameters:{docs:{source:{code:null}},viewport:{viewports:C.parameters.viewport.viewports,defaultViewport:"tablet"}}},T=e=>({components:{UidsCallout:p},setup(){return{args:e}},template:` diff --git a/branches/banner-component/assets/Card.stories-COSKuUCW.js b/branches/banner-component/assets/Card.stories-Drw6OD7L.js similarity index 99% rename from branches/banner-component/assets/Card.stories-COSKuUCW.js rename to branches/banner-component/assets/Card.stories-Drw6OD7L.js index 746a977889..9bcd357feb 100644 --- a/branches/banner-component/assets/Card.stories-COSKuUCW.js +++ b/branches/banner-component/assets/Card.stories-Drw6OD7L.js @@ -1,4 +1,4 @@ -import{d as Ue,s as Se,k as g,v as Ae,c as d,n as T,f as j,l as o,m as l,a as $e,b as B,p as N,o as i,e as m,t as W}from"./vue.esm-bundler--ETYdinE.js";import{c as D}from"./utlity-CAV5GFHh.js";import{_ as Me}from"./Headline.vue_vue_type_script_setup_true_lang-Bzaie0v3.js";import{B as U,_ as Ge}from"./Button.vue_vue_type_script_setup_true_lang-ChQE5Vxq.js";import{a as je,_ as Ne}from"./click-a11y-CyDOAv-Y.js";import{B as S}from"./_background-RctfgKj_.js";import{M as A}from"./media-PjSUOf2n.js";/* empty css */import{_ as We,a as De}from"./GridItem.vue_vue_type_script_setup_true_lang-BjVCyihe.js";import Pe from"./preview-DWyTf5h7.js";import"./DocumentationTemplate-BgNiHU_-.js";import"./index-CSvB1eVb.js";import"./iframe-DUjlg9Xs.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";import"./index-Bkg7DETE.js";const Ie={class:"media__inner"},Le=["href"],qe={class:"card__body"},Ze={key:0,class:"card__pre-title"},Ee={key:1},Ve=["href"],Oe={key:2,class:"card__details"},Fe={key:0,class:"card__subtitle"},He={key:1,class:"card__meta"},Re={key:3},$=Ue({__name:"Card",props:{headline_style:{type:String,default:""},url:{type:String},link_text:{type:String},link_indicator:{type:Boolean,default:!0},button_align_bottom:{type:Boolean,default:!1},centered:{type:Boolean},...U.props,...S.props,orientation:{type:String,default:"",validator:a=>["","left","right"].indexOf(a)!==-1},...A.props,media_padded:{type:Boolean,default:!1}},setup(a){const n=a,x=Se(),ze=g(()=>{let e=["card"];return["centered","media_padded","button_align_bottom"].forEach(r=>{n[r]===!0&&e.push(`card--${D(r)}`)}),n.orientation&&e.push(`card--layout-${D(n.orientation)}`),S.addBackgroundClass(e,n),U.addBorderlessClass(e,n),n.url&&e.push("click-container"),e}),Te=g(()=>{let e=["media"];return A.addMediaClasses(e,n),e}),M=g(()=>{let e=["bttn--transparent","bttn--light-font"];return n.link_indicator&&n.url&&!n.link_text&&(e.push("bttn--circle"),e.push("bttn--no-text")),z.value==="button"&&e.push("click-target"),e}),z=g(()=>n.url?x.title?"title":!n.link_text&&x.media?"image":"button":null),G=g(()=>z.value==="title"?n.url:!1),Be=g(()=>!!(x.subtitle||x.meta));return Ae(()=>{n.url&&je(".click-container:not([data-uids-no-link])")}),(e,r)=>(i(),d("div",{class:T(ze.value)},[e.$slots.media?(i(),d("div",{key:0,class:T(Te.value)},[j("div",Ie,[z.value==="image"?(i(),d("a",{key:0,href:a.url,class:"click-target"},[o(e.$slots,"media")],8,Le)):o(e.$slots,"media",{key:1})])],2)):l("",!0),j("div",qe,[e.$slots.pre_title?(i(),d("div",Ze,[o(e.$slots,"pre_title")])):l("",!0),e.$slots.title?(i(),d("header",Ee,[$e(Me,{text_style:a.headline_style},{default:B(()=>[G.value?(i(),d("a",{key:0,href:G.value,class:"click-target"},[o(e.$slots,"title",{},()=>[r[0]||(r[0]=m("Title"))])],8,Ve)):o(e.$slots,"title",{key:1},()=>[r[1]||(r[1]=m("Title"))])]),_:3},8,["text_style"])])):l("",!0),Be.value===!0?(i(),d("div",Oe,[e.$slots.subtitle?(i(),d("div",Fe,[o(e.$slots,"subtitle",{},()=>[r[2]||(r[2]=m("Subtitle"))])])):l("",!0),e.$slots.meta?(i(),d("div",He,[o(e.$slots,"meta",{},()=>[r[3]||(r[3]=m("Meta"))])])):l("",!0)])):l("",!0),o(e.$slots,"default",{},()=>[r[4]||(r[4]=m("Body"))]),a.url&&(a.link_indicator||a.link_text)?(i(),d("footer",Re,[z.value==="button"?(i(),N(Ge,{key:0,class:T(M.value),url:a.url,size:"medium"},{default:B(()=>[m(W(a.link_text),1)]),_:1},8,["class","url"])):(i(),N(Ne,{key:1,class:T(M.value)},{default:B(()=>[m(W(a.link_text),1)]),_:1},8,["class"]))])):l("",!0)])],2))}}),Je="/branches/banner-component/assets/122-DrJbowex.jpg",Ce="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='70'%20height='70'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-10%20-10%2070%2070'%3e%3crect%20x='-10'%20y='-10'%20width='70'%20height='70'%20fill='white'/%3e%3cg%20id='uuid-fed72394-6426-4f47-abf4-8cc661082adc'%3e%3cpath%20d='M12.28,27.59c.03,.21,.19,.37,.39,.41,.6,.13,1.37,.25,2.25,.37-.32-3.06-.38-9.11-.14-15.93-.06-.11-.15-.24-.29-.38-.25-.24-.52-.35-.68-.4-.61-.22-1.21-.36-1.8-.46-.24,7.32-.14,13.71,.27,16.39Z'%20fill='none'%20stroke-width='0'/%3e%3cpath%20d='M45.33,37.93s-.57-1.78-1.2-3.71l-3.82,3.82-4.44-4.44c-.95-.95-.95-2.49,0-3.44,.47-.47,1.1-.71,1.72-.71s1.25,.24,1.72,.71l.64,.64c.09,.09,.22,.15,.35,.15s.26-.05,.35-.15l.64-.64c.35-.35,.78-.57,1.23-.66-.01-.04-.03-.08-.04-.1-3.89-6.75-14.02-7.77-14.12-7.77-.25-.02-.45-.23-.45-.49,0-.25,.18-.47,.43-.51,3.09-.43,3.53-4.55,3.34-6.01-.16-1.23-.82-2.94-4.48-5.31l-.83-.66c-.11-.08-2.64-2.06-4.45-4.34-2.76,1.17-5.19,1.49-7.67,1.01l-2.06-.67v.02c-.08-.05-.15-.11-.24-.16-.44-.22-.92-.35-1.42-.38-.96-.05-1.89,.27-2.62,.92-.73,.65-1.17,1.55-1.22,2.53-.05,1-.1,1.95-.14,2.87,1.44-.26,3.44-.35,5.47,.49,0,.08,0,.17,0,.25,.59,.1,1.19,.24,1.8,.46,.16,.05,.43,.15,.68,.4,.14,.13,.23,.27,.29,.38-.24,6.82-.18,12.87,.14,15.93,3.56,.47,8.97,.81,13.12,.91,2.01,.05,3.6,1.73,3.55,3.74-.05,1.99-1.65,3.55-3.74,3.55h0c-9.23-.24-14.42-1-17.33-1.74-.4,.65-.77,1.29-1.1,1.9-.76,1.58-3.1,7.05-1.96,12.58,2.42,0,15.32,.04,25.12,.04,7.98,0,10.58-.01,11.23-.03,1.67-1.87,2.25-6.53,1.52-11.41Z'%20fill='%23ffcd00'%20stroke-width='0'/%3e%3cpath%20d='M45.45,29.45c-.85-.85-2.04-1.16-3.13-.93-.22-.48-.46-.94-.71-1.37-3.13-5.43-9.77-7.35-13.03-7.98,2.15-1.49,2.56-4.79,2.35-6.42-.28-2.14-1.8-4-4.89-6l-.8-.63s-2.78-2.16-4.5-4.47c-.14-.19-.39-.25-.6-.16-3.25,1.45-5.99,1.68-8.88,.74-.2-.14-.41-.26-.63-.37-.01,0-.03-.02-.04-.02-.01,0-.03,0-.04-.01-.53-.25-1.11-.4-1.7-.43-1.23-.07-2.42,.34-3.34,1.17-.93,.83-1.48,1.98-1.55,3.22-.09,1.71-.17,3.32-.23,4.82,0,.03,.01,.05,.02,.08,0,.03-.02,.05-.02,.08-.8,20.55,1.43,22.36,2.92,23.57,.05,.04,.12,.09,.18,.14-.8,1.61-3.43,7.58-1.99,13.71,.05,.23,.25,.39,.49,.39,0,0,14.67,.04,25.53,.04,1.67,0,3.09,0,4.32,0,7.31,0,7.33-.02,7.49-.19,2.34-2.34,2.72-7.82,1.77-13.09l1.04-1.04c1.34-1.34,1.34-3.52,0-4.85Zm-5.14,8.58l-4.44-4.44c-.95-.95-.95-2.49,0-3.44,.47-.47,1.1-.71,1.72-.71s1.25,.24,1.72,.71l.64,.64c.09,.09,.22,.15,.35,.15s.26-.05,.35-.15l.64-.64c.95-.95,2.49-.95,3.44,0s.95,2.49,0,3.44l-4.44,4.44ZM4.95,5.84c.05-.98,.49-1.87,1.22-2.53,.73-.65,1.66-.97,2.62-.92,.5,.03,.98,.16,1.42,.38,.46,.23,.88,.55,1.2,.95,.58,.71,.88,1.6,.83,2.52-.06,1.2-.12,2.43-.17,3.68-3.09-1.14-5.99-.47-7.32-.03,.06-1.27,.12-2.62,.2-4.04Zm-.24,5.13c.93-.35,4.08-1.34,7.32-.02-.25,7.43-.15,13.94,.26,16.64,.03,.21,.19,.37,.39,.41,3.06,.66,10.2,1.15,15.36,1.28,2.01,.05,3.6,1.73,3.55,3.74-.05,1.99-1.65,3.55-3.74,3.55h0c-13.67-.35-18.5-1.86-20.16-2.72-.01,0-.03,0-.05-.01-.16-.11-.29-.21-.39-.29-1.16-.94-3.31-2.69-2.55-22.58ZM42.06,47.58c-.65,.02-3.26,.03-11.23,.03-9.8,0-22.7-.04-25.12-.04-1.13-5.53,1.21-11,1.96-12.58,.05,.02,.1,.04,.16,.04,0,0,.01,0,.02,0,2.46,1.05,7.91,2.24,19.97,2.55h.13c2.54,0,4.58-1.99,4.65-4.53,.06-2.56-1.97-4.7-4.53-4.77-5.77-.15-12.01-.65-14.84-1.19-.37-2.88-.44-9.22-.19-16.41,.05-1.49,.12-2.97,.19-4.4,.05-.97-.21-1.91-.72-2.72,2.48,.48,4.91,.16,7.67-1.01,1.8,2.28,4.34,4.26,4.45,4.34l.83,.66c3.66,2.37,4.32,4.08,4.48,5.31,.19,1.45-.25,5.58-3.34,6.01-.25,.03-.44,.25-.43,.51,0,.25,.2,.46,.45,.49,.1,0,10.23,1.03,14.12,7.77,.23,.4,.44,.81,.65,1.23-.28,.15-.55,.33-.79,.57l-.29,.29-.29-.29c-1.34-1.34-3.51-1.34-4.85,0s-1.34,3.52,0,4.85l4.79,4.79c.09,.09,.22,.15,.35,.15s.26-.05,.35-.15l2.92-2.92c.73,4.88,.15,9.54-1.52,11.41Z'%20stroke-width='0'/%3e%3c/g%3e%3cg%20id='uuid-77c4c9de-891e-4cda-8994-13e69413bdd4'%3e%3c/g%3e%3c/svg%3e",Ye="/branches/banner-component/assets/herky2-BlDR4vsu.jpeg",bt={parameters:{docs:{source:{code:null}}},title:"Components/Card",component:$,tags:["autodocs"],argTypes:{pre_title:{name:"Pre-title",control:{type:"text"},table:{category:"Content"}},headline_style:{name:"Title style",options:["serif",""],control:{type:"select",labels:{serif:"Zilla Slab (default)","":"Roboto"}},table:{category:"Display options"}},url:{name:"URL",table:{category:"Content"}},link_text:{name:"Link text",table:{category:"Content"}},link_indicator:{name:"Display button when there is no link text",if:{arg:"link_text",truthy:!1},table:{category:"Display options"}},button_align_bottom:{name:"Align button to bottom",table:{category:"Display options"}},...S.argTypes,...U.argTypes,centered:{name:"Centered",table:{category:"Display options"}},...A.argTypes,orientation:{name:"Orientation",options:["","left","right"],control:{type:"select",labels:{"":"stacked"}},table:{category:"Display options"}},media_padded:{name:"Padded",table:{category:"Media"}},media:{name:"Media",control:"text",table:{category:"Media"}},title:{name:"Title",control:"text",table:{category:"Content"}},subtitle:{name:"Subtitle",control:{type:"text"},table:{category:"Content"}},meta:{name:"Meta",control:{type:"text"},table:{category:"Content"}},default:{name:"Content",control:{type:"text"},table:{category:"Content"}},section_background:{name:"Section background",options:["","bg--black","bg--black--pattern--brain","bg--black--pattern--community","bg--black--pattern--particle","bg--gold","bg--gold--pattern--brain","bg--gold--pattern--community","bg--gold--pattern--particle","bg--gray","bg--gray--pattern--brain","bg--gray--pattern--community","bg--gray--pattern--particle","bg--white","bg--white--pattern--brain","bg--white--pattern--community","bg--white--pattern--particle"],control:{type:"select",labels:{"":"- None -","bg--black":"Black","bg--black--pattern--brain":"Black - Brain pattern","bg--black--pattern--community":"Black - Community pattern","bg--black--pattern--particle":"Black - Particle pattern","bg--gold":"Gold","bg--gold--pattern--brain":"Gold - Brain pattern","bg--gold--pattern--community":"Gold - Community pattern","bg--gold--pattern--particle":"Gold - Particle pattern","bg--gray":"Gray","bg--gray--pattern--brain":"Gray - Brain pattern","bg--gray--pattern--community":"Gray - Community pattern","bg--gray--pattern--particle":"Gray - Particle pattern","bg--white":"White","bg--white--pattern--brain":"White - Brain pattern","bg--white--pattern--community":"White - Community pattern","bg--white--pattern--particle":"White - Particle pattern"}},table:{category:"Container"}},grid_type:{name:"Grid",options:["onecol","onecol__narrow","twocol--50-50","threecol--33-34-33","fourcol--25"],control:{type:"select",labels:{onecol:"One column",onecol__narrow:"One column (narrow)","twocol--50-50":"Two columns","threecol--33-34-33":"Three columns","fourcol--25":"Four columns"}},table:{category:"Container"}},record_count:{name:"# of records",table:{category:"Container"}}}},s=a=>({components:{UidsCard:$},setup(){return{args:a}},template:` +import{d as Ue,s as Se,k as g,v as Ae,c as d,n as T,f as j,l as o,m as l,a as $e,b as B,p as N,o as i,e as m,t as W}from"./vue.esm-bundler--ETYdinE.js";import{c as D}from"./utlity-CAV5GFHh.js";import{_ as Me}from"./Headline.vue_vue_type_script_setup_true_lang-Bzaie0v3.js";import{B as U,_ as Ge}from"./Button.vue_vue_type_script_setup_true_lang-ChQE5Vxq.js";import{a as je,_ as Ne}from"./click-a11y-CyDOAv-Y.js";import{B as S}from"./_background-RctfgKj_.js";import{M as A}from"./media-PjSUOf2n.js";/* empty css */import{_ as We,a as De}from"./GridItem.vue_vue_type_script_setup_true_lang-BjVCyihe.js";import Pe from"./preview-BpGkTYI-.js";import"./DocumentationTemplate-T86yuQAS.js";import"./index-BCrd5TVh.js";import"./iframe-CU3-myGO.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";import"./index-BgPeZvkN.js";const Ie={class:"media__inner"},Le=["href"],qe={class:"card__body"},Ze={key:0,class:"card__pre-title"},Ee={key:1},Ve=["href"],Oe={key:2,class:"card__details"},Fe={key:0,class:"card__subtitle"},He={key:1,class:"card__meta"},Re={key:3},$=Ue({__name:"Card",props:{headline_style:{type:String,default:""},url:{type:String},link_text:{type:String},link_indicator:{type:Boolean,default:!0},button_align_bottom:{type:Boolean,default:!1},centered:{type:Boolean},...U.props,...S.props,orientation:{type:String,default:"",validator:a=>["","left","right"].indexOf(a)!==-1},...A.props,media_padded:{type:Boolean,default:!1}},setup(a){const n=a,x=Se(),ze=g(()=>{let e=["card"];return["centered","media_padded","button_align_bottom"].forEach(r=>{n[r]===!0&&e.push(`card--${D(r)}`)}),n.orientation&&e.push(`card--layout-${D(n.orientation)}`),S.addBackgroundClass(e,n),U.addBorderlessClass(e,n),n.url&&e.push("click-container"),e}),Te=g(()=>{let e=["media"];return A.addMediaClasses(e,n),e}),M=g(()=>{let e=["bttn--transparent","bttn--light-font"];return n.link_indicator&&n.url&&!n.link_text&&(e.push("bttn--circle"),e.push("bttn--no-text")),z.value==="button"&&e.push("click-target"),e}),z=g(()=>n.url?x.title?"title":!n.link_text&&x.media?"image":"button":null),G=g(()=>z.value==="title"?n.url:!1),Be=g(()=>!!(x.subtitle||x.meta));return Ae(()=>{n.url&&je(".click-container:not([data-uids-no-link])")}),(e,r)=>(i(),d("div",{class:T(ze.value)},[e.$slots.media?(i(),d("div",{key:0,class:T(Te.value)},[j("div",Ie,[z.value==="image"?(i(),d("a",{key:0,href:a.url,class:"click-target"},[o(e.$slots,"media")],8,Le)):o(e.$slots,"media",{key:1})])],2)):l("",!0),j("div",qe,[e.$slots.pre_title?(i(),d("div",Ze,[o(e.$slots,"pre_title")])):l("",!0),e.$slots.title?(i(),d("header",Ee,[$e(Me,{text_style:a.headline_style},{default:B(()=>[G.value?(i(),d("a",{key:0,href:G.value,class:"click-target"},[o(e.$slots,"title",{},()=>[r[0]||(r[0]=m("Title"))])],8,Ve)):o(e.$slots,"title",{key:1},()=>[r[1]||(r[1]=m("Title"))])]),_:3},8,["text_style"])])):l("",!0),Be.value===!0?(i(),d("div",Oe,[e.$slots.subtitle?(i(),d("div",Fe,[o(e.$slots,"subtitle",{},()=>[r[2]||(r[2]=m("Subtitle"))])])):l("",!0),e.$slots.meta?(i(),d("div",He,[o(e.$slots,"meta",{},()=>[r[3]||(r[3]=m("Meta"))])])):l("",!0)])):l("",!0),o(e.$slots,"default",{},()=>[r[4]||(r[4]=m("Body"))]),a.url&&(a.link_indicator||a.link_text)?(i(),d("footer",Re,[z.value==="button"?(i(),N(Ge,{key:0,class:T(M.value),url:a.url,size:"medium"},{default:B(()=>[m(W(a.link_text),1)]),_:1},8,["class","url"])):(i(),N(Ne,{key:1,class:T(M.value)},{default:B(()=>[m(W(a.link_text),1)]),_:1},8,["class"]))])):l("",!0)])],2))}}),Je="/branches/banner-component/assets/122-DrJbowex.jpg",Ce="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='70'%20height='70'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-10%20-10%2070%2070'%3e%3crect%20x='-10'%20y='-10'%20width='70'%20height='70'%20fill='white'/%3e%3cg%20id='uuid-fed72394-6426-4f47-abf4-8cc661082adc'%3e%3cpath%20d='M12.28,27.59c.03,.21,.19,.37,.39,.41,.6,.13,1.37,.25,2.25,.37-.32-3.06-.38-9.11-.14-15.93-.06-.11-.15-.24-.29-.38-.25-.24-.52-.35-.68-.4-.61-.22-1.21-.36-1.8-.46-.24,7.32-.14,13.71,.27,16.39Z'%20fill='none'%20stroke-width='0'/%3e%3cpath%20d='M45.33,37.93s-.57-1.78-1.2-3.71l-3.82,3.82-4.44-4.44c-.95-.95-.95-2.49,0-3.44,.47-.47,1.1-.71,1.72-.71s1.25,.24,1.72,.71l.64,.64c.09,.09,.22,.15,.35,.15s.26-.05,.35-.15l.64-.64c.35-.35,.78-.57,1.23-.66-.01-.04-.03-.08-.04-.1-3.89-6.75-14.02-7.77-14.12-7.77-.25-.02-.45-.23-.45-.49,0-.25,.18-.47,.43-.51,3.09-.43,3.53-4.55,3.34-6.01-.16-1.23-.82-2.94-4.48-5.31l-.83-.66c-.11-.08-2.64-2.06-4.45-4.34-2.76,1.17-5.19,1.49-7.67,1.01l-2.06-.67v.02c-.08-.05-.15-.11-.24-.16-.44-.22-.92-.35-1.42-.38-.96-.05-1.89,.27-2.62,.92-.73,.65-1.17,1.55-1.22,2.53-.05,1-.1,1.95-.14,2.87,1.44-.26,3.44-.35,5.47,.49,0,.08,0,.17,0,.25,.59,.1,1.19,.24,1.8,.46,.16,.05,.43,.15,.68,.4,.14,.13,.23,.27,.29,.38-.24,6.82-.18,12.87,.14,15.93,3.56,.47,8.97,.81,13.12,.91,2.01,.05,3.6,1.73,3.55,3.74-.05,1.99-1.65,3.55-3.74,3.55h0c-9.23-.24-14.42-1-17.33-1.74-.4,.65-.77,1.29-1.1,1.9-.76,1.58-3.1,7.05-1.96,12.58,2.42,0,15.32,.04,25.12,.04,7.98,0,10.58-.01,11.23-.03,1.67-1.87,2.25-6.53,1.52-11.41Z'%20fill='%23ffcd00'%20stroke-width='0'/%3e%3cpath%20d='M45.45,29.45c-.85-.85-2.04-1.16-3.13-.93-.22-.48-.46-.94-.71-1.37-3.13-5.43-9.77-7.35-13.03-7.98,2.15-1.49,2.56-4.79,2.35-6.42-.28-2.14-1.8-4-4.89-6l-.8-.63s-2.78-2.16-4.5-4.47c-.14-.19-.39-.25-.6-.16-3.25,1.45-5.99,1.68-8.88,.74-.2-.14-.41-.26-.63-.37-.01,0-.03-.02-.04-.02-.01,0-.03,0-.04-.01-.53-.25-1.11-.4-1.7-.43-1.23-.07-2.42,.34-3.34,1.17-.93,.83-1.48,1.98-1.55,3.22-.09,1.71-.17,3.32-.23,4.82,0,.03,.01,.05,.02,.08,0,.03-.02,.05-.02,.08-.8,20.55,1.43,22.36,2.92,23.57,.05,.04,.12,.09,.18,.14-.8,1.61-3.43,7.58-1.99,13.71,.05,.23,.25,.39,.49,.39,0,0,14.67,.04,25.53,.04,1.67,0,3.09,0,4.32,0,7.31,0,7.33-.02,7.49-.19,2.34-2.34,2.72-7.82,1.77-13.09l1.04-1.04c1.34-1.34,1.34-3.52,0-4.85Zm-5.14,8.58l-4.44-4.44c-.95-.95-.95-2.49,0-3.44,.47-.47,1.1-.71,1.72-.71s1.25,.24,1.72,.71l.64,.64c.09,.09,.22,.15,.35,.15s.26-.05,.35-.15l.64-.64c.95-.95,2.49-.95,3.44,0s.95,2.49,0,3.44l-4.44,4.44ZM4.95,5.84c.05-.98,.49-1.87,1.22-2.53,.73-.65,1.66-.97,2.62-.92,.5,.03,.98,.16,1.42,.38,.46,.23,.88,.55,1.2,.95,.58,.71,.88,1.6,.83,2.52-.06,1.2-.12,2.43-.17,3.68-3.09-1.14-5.99-.47-7.32-.03,.06-1.27,.12-2.62,.2-4.04Zm-.24,5.13c.93-.35,4.08-1.34,7.32-.02-.25,7.43-.15,13.94,.26,16.64,.03,.21,.19,.37,.39,.41,3.06,.66,10.2,1.15,15.36,1.28,2.01,.05,3.6,1.73,3.55,3.74-.05,1.99-1.65,3.55-3.74,3.55h0c-13.67-.35-18.5-1.86-20.16-2.72-.01,0-.03,0-.05-.01-.16-.11-.29-.21-.39-.29-1.16-.94-3.31-2.69-2.55-22.58ZM42.06,47.58c-.65,.02-3.26,.03-11.23,.03-9.8,0-22.7-.04-25.12-.04-1.13-5.53,1.21-11,1.96-12.58,.05,.02,.1,.04,.16,.04,0,0,.01,0,.02,0,2.46,1.05,7.91,2.24,19.97,2.55h.13c2.54,0,4.58-1.99,4.65-4.53,.06-2.56-1.97-4.7-4.53-4.77-5.77-.15-12.01-.65-14.84-1.19-.37-2.88-.44-9.22-.19-16.41,.05-1.49,.12-2.97,.19-4.4,.05-.97-.21-1.91-.72-2.72,2.48,.48,4.91,.16,7.67-1.01,1.8,2.28,4.34,4.26,4.45,4.34l.83,.66c3.66,2.37,4.32,4.08,4.48,5.31,.19,1.45-.25,5.58-3.34,6.01-.25,.03-.44,.25-.43,.51,0,.25,.2,.46,.45,.49,.1,0,10.23,1.03,14.12,7.77,.23,.4,.44,.81,.65,1.23-.28,.15-.55,.33-.79,.57l-.29,.29-.29-.29c-1.34-1.34-3.51-1.34-4.85,0s-1.34,3.52,0,4.85l4.79,4.79c.09,.09,.22,.15,.35,.15s.26-.05,.35-.15l2.92-2.92c.73,4.88,.15,9.54-1.52,11.41Z'%20stroke-width='0'/%3e%3c/g%3e%3cg%20id='uuid-77c4c9de-891e-4cda-8994-13e69413bdd4'%3e%3c/g%3e%3c/svg%3e",Ye="/branches/banner-component/assets/herky2-BlDR4vsu.jpeg",bt={parameters:{docs:{source:{code:null}}},title:"Components/Card",component:$,tags:["autodocs"],argTypes:{pre_title:{name:"Pre-title",control:{type:"text"},table:{category:"Content"}},headline_style:{name:"Title style",options:["serif",""],control:{type:"select",labels:{serif:"Zilla Slab (default)","":"Roboto"}},table:{category:"Display options"}},url:{name:"URL",table:{category:"Content"}},link_text:{name:"Link text",table:{category:"Content"}},link_indicator:{name:"Display button when there is no link text",if:{arg:"link_text",truthy:!1},table:{category:"Display options"}},button_align_bottom:{name:"Align button to bottom",table:{category:"Display options"}},...S.argTypes,...U.argTypes,centered:{name:"Centered",table:{category:"Display options"}},...A.argTypes,orientation:{name:"Orientation",options:["","left","right"],control:{type:"select",labels:{"":"stacked"}},table:{category:"Display options"}},media_padded:{name:"Padded",table:{category:"Media"}},media:{name:"Media",control:"text",table:{category:"Media"}},title:{name:"Title",control:"text",table:{category:"Content"}},subtitle:{name:"Subtitle",control:{type:"text"},table:{category:"Content"}},meta:{name:"Meta",control:{type:"text"},table:{category:"Content"}},default:{name:"Content",control:{type:"text"},table:{category:"Content"}},section_background:{name:"Section background",options:["","bg--black","bg--black--pattern--brain","bg--black--pattern--community","bg--black--pattern--particle","bg--gold","bg--gold--pattern--brain","bg--gold--pattern--community","bg--gold--pattern--particle","bg--gray","bg--gray--pattern--brain","bg--gray--pattern--community","bg--gray--pattern--particle","bg--white","bg--white--pattern--brain","bg--white--pattern--community","bg--white--pattern--particle"],control:{type:"select",labels:{"":"- None -","bg--black":"Black","bg--black--pattern--brain":"Black - Brain pattern","bg--black--pattern--community":"Black - Community pattern","bg--black--pattern--particle":"Black - Particle pattern","bg--gold":"Gold","bg--gold--pattern--brain":"Gold - Brain pattern","bg--gold--pattern--community":"Gold - Community pattern","bg--gold--pattern--particle":"Gold - Particle pattern","bg--gray":"Gray","bg--gray--pattern--brain":"Gray - Brain pattern","bg--gray--pattern--community":"Gray - Community pattern","bg--gray--pattern--particle":"Gray - Particle pattern","bg--white":"White","bg--white--pattern--brain":"White - Brain pattern","bg--white--pattern--community":"White - Community pattern","bg--white--pattern--particle":"White - Particle pattern"}},table:{category:"Container"}},grid_type:{name:"Grid",options:["onecol","onecol__narrow","twocol--50-50","threecol--33-34-33","fourcol--25"],control:{type:"select",labels:{onecol:"One column",onecol__narrow:"One column (narrow)","twocol--50-50":"Two columns","threecol--33-34-33":"Three columns","fourcol--25":"Four columns"}},table:{category:"Container"}},record_count:{name:"# of records",table:{category:"Container"}}}},s=a=>({components:{UidsCard:$},setup(){return{args:a}},template:`

diff --git a/branches/banner-component/assets/Color-ERTF36HU-C7n9iVv5.js b/branches/banner-component/assets/Color-ERTF36HU-Bqiq1jrx.js similarity index 99% rename from branches/banner-component/assets/Color-ERTF36HU-C7n9iVv5.js rename to branches/banner-component/assets/Color-ERTF36HU-Bqiq1jrx.js index c65d2d9b21..84429429ac 100644 --- a/branches/banner-component/assets/Color-ERTF36HU-C7n9iVv5.js +++ b/branches/banner-component/assets/Color-ERTF36HU-Bqiq1jrx.js @@ -1 +1 @@ -import{av as Me,aw as ie,ax as Ce,am as h,ao as b,au as $,a2 as ue,a0 as $e,H as Oe,ay as Ie,az as Ne}from"./index-CSvB1eVb.js";import{g as fe}from"./index-i39XpuQg.js";import"./iframe-DUjlg9Xs.js";import"../sb-preview/runtime.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.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(m,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 m(){var v=W();if(p(v))return w(v);l=setTimeout(m,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 O(){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(m,t),x(c)}return l===void 0&&(l=setTimeout(m,t)),s}return O.cancel=E,O.flush=k,O}var ht=ft;const dt=fe(ht);function I(){return(I=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function V(e){var t=b.useRef(e),n=b.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 m=c.current,w=A(o.current),E=p?w.addEventListener:w.removeEventListener;E(m?"touchmove":"mousemove",x),E(m?"touchend":"mouseup",j)}return[function(p){var m=p.nativeEvent,w=o.current;if(w&&(ae(m),!function(k,O){return O&&!H(k)}(m,c.current)&&w)){if(H(m)){c.current=!0;var E=m.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(oe(w,m,l.current)),M(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return b.useEffect(function(){return g},[g]),h.createElement("div",I({},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)},bt=function(e){return me(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}},mt=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:mt(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(be(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+")"},be=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?me({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},me=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=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),b.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=b.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var _t=typeof window<"u"?b.useLayoutEffect:b.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=b.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",I({},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:bt,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,I({},e,{colorModel:Ct}))},Ot=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=b.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",I({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d}),h.createElement(Ot,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},It={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:vt,fromHsva:B,equal:xe},Nt=function(e){return h.createElement(_e,I({},e,{colorModel:It}))},St={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xt,fromHsva:function(e){var t=be(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:xe},Rt=function(e){return h.createElement(_e,I({},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=$(Oe.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Ie)(({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]=b.useState(e||""),[o,a]=b.useState(()=>S(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=b.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=b.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=b.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]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.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=b.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=b.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),m=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(m,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,O)=>h.createElement(ue,{key:`${k.value}-${O}`,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)},rn=Yt;export{Yt as ColorControl,rn as default}; +import{av as Me,aw as ie,ax as Ce,am as h,ao as b,au as $,a2 as ue,a0 as $e,H as Oe,ay as Ie,az as Ne}from"./index-BCrd5TVh.js";import{g as fe}from"./index-i39XpuQg.js";import"./iframe-CU3-myGO.js";import"../sb-preview/runtime.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.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(m,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 m(){var v=W();if(p(v))return w(v);l=setTimeout(m,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 O(){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(m,t),x(c)}return l===void 0&&(l=setTimeout(m,t)),s}return O.cancel=E,O.flush=k,O}var ht=ft;const dt=fe(ht);function I(){return(I=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function V(e){var t=b.useRef(e),n=b.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 m=c.current,w=A(o.current),E=p?w.addEventListener:w.removeEventListener;E(m?"touchmove":"mousemove",x),E(m?"touchend":"mouseup",j)}return[function(p){var m=p.nativeEvent,w=o.current;if(w&&(ae(m),!function(k,O){return O&&!H(k)}(m,c.current)&&w)){if(H(m)){c.current=!0;var E=m.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(oe(w,m,l.current)),M(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return b.useEffect(function(){return g},[g]),h.createElement("div",I({},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)},bt=function(e){return me(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}},mt=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:mt(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(be(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+")"},be=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?me({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},me=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=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),b.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=b.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var _t=typeof window<"u"?b.useLayoutEffect:b.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=b.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",I({},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:bt,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,I({},e,{colorModel:Ct}))},Ot=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=b.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",I({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d}),h.createElement(Ot,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},It={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:vt,fromHsva:B,equal:xe},Nt=function(e){return h.createElement(_e,I({},e,{colorModel:It}))},St={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xt,fromHsva:function(e){var t=be(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:xe},Rt=function(e){return h.createElement(_e,I({},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=$(Oe.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Ie)(({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]=b.useState(e||""),[o,a]=b.useState(()=>S(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=b.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=b.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=b.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]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.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=b.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=b.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),m=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(m,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,O)=>h.createElement(ue,{key:`${k.value}-${O}`,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)},rn=Yt;export{Yt as ColorControl,rn as default}; diff --git a/branches/banner-component/assets/DocsRenderer-CFRXHY34-_23lAlfx.js b/branches/banner-component/assets/DocsRenderer-CFRXHY34-B17XArFn.js similarity index 84% rename from branches/banner-component/assets/DocsRenderer-CFRXHY34-_23lAlfx.js rename to branches/banner-component/assets/DocsRenderer-CFRXHY34-B17XArFn.js index 487370f639..d37a85d04d 100644 --- a/branches/banner-component/assets/DocsRenderer-CFRXHY34-_23lAlfx.js +++ b/branches/banner-component/assets/DocsRenderer-CFRXHY34-B17XArFn.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BTN5t6QD.js","assets/index-Bkg7DETE.js","assets/index-CSvB1eVb.js","assets/iframe-DUjlg9Xs.js","assets/index-i39XpuQg.js","assets/index-D-8MO0q_.js","assets/index-DrFu-skq.js"])))=>i.map(i=>d[i]); -import{_ as h}from"./iframe-DUjlg9Xs.js";import{an as E,ao as s,ap as d,aq as v,ar as R,am as n,as as w}from"./index-CSvB1eVb.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";var l,m=E;l=m.createRoot,m.hydrateRoot;var a=new Map;function _(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var f=({callback:e,children:t})=>{let r=s.useRef();return s.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}});var x=async(e,t,r)=>{let o=await g(t,r);if(_()){o.render(e);return}let{promise:i,resolve:c}=Promise.withResolvers();return o.render(s.createElement(f,{callback:c},e)),i},y=(e,t)=>{let r=a.get(e);r&&(r.unmount(),a.delete(e))},g=async(e,t)=>{let r=a.get(e);return r||(r=l(e,t),a.set(e,r)),r},D={code:d,a:v,...R},C=class extends s.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:n.createElement(n.Fragment,null,t)}},P=class{constructor(){this.render=async(e,t,r)=>{let o={...D,...t==null?void 0:t.components},i=w;return new Promise((c,p)=>{h(async()=>{const{MDXProvider:u}=await import("./index-BTN5t6QD.js");return{MDXProvider:u}},__vite__mapDeps([0,1,2,3,4,5,6])).then(({MDXProvider:u})=>x(n.createElement(C,{showException:p,key:Math.random()},n.createElement(u,{components:o},n.createElement(i,{context:e,docsParameter:t}))),r)).then(()=>c())})},this.unmount=e=>{y(e)}}};export{P as DocsRenderer,D as defaultComponents}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BCim25EA.js","assets/index-BgPeZvkN.js","assets/index-BCrd5TVh.js","assets/iframe-CU3-myGO.js","assets/index-i39XpuQg.js","assets/index-D-8MO0q_.js","assets/index-DrFu-skq.js"])))=>i.map(i=>d[i]); +import{_ as h}from"./iframe-CU3-myGO.js";import{an as E,ao as s,ap as d,aq as v,ar as R,am as n,as as w}from"./index-BCrd5TVh.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";var l,m=E;l=m.createRoot,m.hydrateRoot;var a=new Map;function _(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var f=({callback:e,children:t})=>{let r=s.useRef();return s.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}});var x=async(e,t,r)=>{let o=await g(t,r);if(_()){o.render(e);return}let{promise:i,resolve:c}=Promise.withResolvers();return o.render(s.createElement(f,{callback:c},e)),i},y=(e,t)=>{let r=a.get(e);r&&(r.unmount(),a.delete(e))},g=async(e,t)=>{let r=a.get(e);return r||(r=l(e,t),a.set(e,r)),r},D={code:d,a:v,...R},C=class extends s.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:n.createElement(n.Fragment,null,t)}},P=class{constructor(){this.render=async(e,t,r)=>{let o={...D,...t==null?void 0:t.components},i=w;return new Promise((c,p)=>{h(async()=>{const{MDXProvider:u}=await import("./index-BCim25EA.js");return{MDXProvider:u}},__vite__mapDeps([0,1,2,3,4,5,6])).then(({MDXProvider:u})=>x(n.createElement(C,{showException:p,key:Math.random()},n.createElement(u,{components:o},n.createElement(i,{context:e,docsParameter:t}))),r)).then(()=>c())})},this.unmount=e=>{y(e)}}};export{P as DocsRenderer,D as defaultComponents}; diff --git a/branches/banner-component/assets/DocumentationTemplate-BgNiHU_-.js b/branches/banner-component/assets/DocumentationTemplate-T86yuQAS.js similarity index 85% rename from branches/banner-component/assets/DocumentationTemplate-BgNiHU_-.js rename to branches/banner-component/assets/DocumentationTemplate-T86yuQAS.js index 05837c9c4c..de10db83f5 100644 --- a/branches/banner-component/assets/DocumentationTemplate-BgNiHU_-.js +++ b/branches/banner-component/assets/DocumentationTemplate-T86yuQAS.js @@ -1,4 +1,4 @@ -import{ae as n,af as e,ah as a,ai as r,aj as p,al as m}from"./index-CSvB1eVb.js";import{u as i}from"./index-Bkg7DETE.js";import"./iframe-DUjlg9Xs.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function s(o){const t={h2:"h2",hr:"hr",p:"p",...i(),...o.components};return n.jsxs(n.Fragment,{children:[n.jsx(e,{isTemplate:!0}),` +import{ae as n,af as e,ah as a,ai as r,aj as p,al as m}from"./index-BCrd5TVh.js";import{u as i}from"./index-BgPeZvkN.js";import"./iframe-CU3-myGO.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";function s(o){const t={h2:"h2",hr:"hr",p:"p",...i(),...o.components};return n.jsxs(n.Fragment,{children:[n.jsx(e,{isTemplate:!0}),` `,n.jsx(a,{}),` `,n.jsx(r,{}),` `,n.jsx(t.h2,{id:"inputs",children:"Inputs"}),` diff --git a/branches/banner-component/assets/Inline.stories-DExK88bZ.js b/branches/banner-component/assets/Inline.stories-AT9m-AH5.js similarity index 98% rename from branches/banner-component/assets/Inline.stories-DExK88bZ.js rename to branches/banner-component/assets/Inline.stories-AT9m-AH5.js index 0aa57d904b..ed964fd105 100644 --- a/branches/banner-component/assets/Inline.stories-DExK88bZ.js +++ b/branches/banner-component/assets/Inline.stories-AT9m-AH5.js @@ -1,4 +1,4 @@ -import{I as g,_ as I}from"./Callout.stories-yXM8iaKv.js";import{B as E}from"./_background-RctfgKj_.js";import{_ as A,a as D}from"./GridItem.vue_vue_type_script_setup_true_lang-BjVCyihe.js";import{d as M,k as G,o as a,c as s,f as n,n as q,m as h}from"./vue.esm-bundler--ETYdinE.js";/* empty css */import"./media-PjSUOf2n.js";import"./utlity-CAV5GFHh.js";import"./preview-DWyTf5h7.js";import"./DocumentationTemplate-BgNiHU_-.js";import"./index-CSvB1eVb.js";import"./iframe-DUjlg9Xs.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";import"./index-Bkg7DETE.js";const N=M({__name:"Figure",props:{...g.props},setup(i){const l=i,_=G(()=>{let r=[];return g.addClass(r,l),r});return(r,t)=>(a(),s("figure",{class:q(_.value),role:"group"},t[0]||(t[0]=[n("div",null,[n("div",null,[n("img",{width:"1024",height:"439",alt:"Old capitol building with flowers",class:"lazyloaded","data-src":"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1024_x_439/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=dMS003nN","data-srcset":"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__384_x_165/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=DZJ6MDRp 384w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__768_x_329/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=gXTnlsnZ 768w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1024_x_439/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=dMS003nN 1024w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1312_x_562/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=Go0E2OtS 1312w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1920_x_823/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=EAmMF81e 1920w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__2592_x_1111/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=UuayvW1l 2592w","data-sizes":"(min-width:1310px) 1310px, 100vw",sizes:"(min-width:1310px) 1310px, 100vw",srcset:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__384_x_165/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=DZJ6MDRp 384w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__768_x_329/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=gXTnlsnZ 768w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1024_x_439/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=dMS003nN 1024w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1312_x_562/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=Go0E2OtS 1312w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1920_x_823/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=EAmMF81e 1920w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__2592_x_1111/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=UuayvW1l 2592w",src:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1024_x_439/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=dMS003nN"})])],-1),n("figcaption",null,"Erika Ernst",-1)]),2))}}),V={key:0,width:"768",height:"432",alt:"A",class:"lazyloaded",src:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/widescreen__768_x_432/public/2021-12/mnra_0.jpeg?h=ddc58dd3&itok=Ks2HvkO-"},B={key:1,src:"https://www.youtube.com/embed/XTeeVT_qbYg",frameborder:"0",allowtransparency:"",width:"854",height:"480",class:"media-oembed-content",title:"This is Iowa"},L={key:2,id:"video-container--1646",class:"player",preload:"metadata",poster:"https://uiowa.edu/sites/uiowa.edu/files/2022-03/Collaboration%20Vertical%20D.jpg",controls:""},R={key:3,loop:"loop",muted:"muted",width:"1300",height:"730",poster:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/2020-12/homepage-loop.mp4.png",playsinline:"playsinline",autoplay:"autoplay",id:"video-container-0"},Z={key:4,class:"video-controls video"},$={key:0,class:"video-btn video-btn__pause",id:"video-btn-pause"},X={key:1,class:"video-btn video-btn__play",id:"video-btn-play"},J=M({__name:"Media",props:{...g.props,type:{type:String,default:"image"},enable_autoplay:{type:Boolean,default:!1},aspect_ratio:{type:String,default:""}},setup(i){const l=i;function _(t){switch(t){case"default":return"";case"ar_16_9":return"media--16-9";case"ar_21_9":return"media--21-9"}}const r=G(()=>{let t=["media"],e=_(l.aspect_ratio);return l.type==="video"&&!e&&(e="media--16-9"),e&&t.push(e),g.addClass(t,l),t});return(t,e)=>(a(),s("div",{class:q(r.value)},[i.type==="image"?(a(),s("img",V)):i.type==="video"?(a(),s("iframe",B)):i.type==="vertical_video"?(a(),s("video",L,e[0]||(e[0]=[n("source",{src:"https://uiowa.edu/sites/uiowa.edu/files/2022-03/20220201_TheatreCollaboration_264.mp4",type:"video/mp4"},null,-1),n("track",{label:"English",kind:"subtitles",srclang:"en",src:"https://uiowa.edu/sites/uiowa.edu/files/2022-03/20220201%20TheatreCollaboration.vtt",default:"default"},null,-1),n("p",null,"Video is not Supporting",-1)]))):i.type==="remote_video"?(a(),s("video",R,e[1]||(e[1]=[n("source",{src:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/2020-12/homepage-loop.mp4",type:"video/mp4"},null,-1)]))):h("",!0),i.type==="remote_video"?(a(),s("div",Z,[i.enable_autoplay?(a(),s("button",$,e[2]||(e[2]=[n("span",{class:"element-invisible"},"Pause",-1)]))):(a(),s("button",X,e[3]||(e[3]=[n("span",{class:"element-invisible"},"Play",-1)])))])):h("",!0)],2))}}),pe={title:"Components/Inline",parameters:{docs:{source:{code:null}}},component:I,argTypes:{alignment:{name:"Alignment",options:["left","right","center"],control:{type:"select"},table:{category:"Inline items"}},default:{name:"Callout content",control:{type:"text"},table:{category:"Inline items"}},...E.argTypes,filler_content:{name:"Filler content",control:{type:"text"},table:{category:"Surrounding content"}},grid_type:{name:"Grid type",options:["onecol","onecol__narrow","twocol--50-50","twocol--67-33","threecol--33-34-33"],control:{type:"select",labels:{onecol:"One column",onecol__narrow:"One column (narrow)","twocol--50-50":"Two columns (50%, 50%)","twocol--67-33":"Two columns (67%, 33%)","threecol--33-34-33":"Three columns (33%, 34%, 33%)"}},table:{category:"Surrounding content"}},inline_component:{name:"Inline component",options:["callout","image","figure","video","vertical_video"],control:{type:"select",labels:{callout:"Callout",image:"Image",figure:"Figure",video:"Video",vertical_video:"Vertical video"}},table:{category:"Inline items"}},item_sizes:{name:"Inline item sizes",options:["full","small","medium","large"],control:{type:"check",labels:{full:"Full",small:"Small",medium:"Medium",large:"Large"}},table:{category:"Inline items"}},aspect_ratio:{name:"Aspect ratio",options:["default","ar_16_9","ar_21_9"],control:{type:"select",labels:{default:"Default",ar_16_9:"16 / 9",ar_21_9:"21 / 9"}},table:{category:"Inline items"}},records:{name:"Records",options:[1,2,3,4],control:"select",table:{category:"Surrounding content"}}}},m=i=>({components:{UidsGrid:A,UidsGridItem:D,UidsCallout:I,UidsFigure:N,Media:J},setup(){return{args:i}},template:` +import{I as g,_ as I}from"./Callout.stories-Bo2l8D8N.js";import{B as E}from"./_background-RctfgKj_.js";import{_ as A,a as D}from"./GridItem.vue_vue_type_script_setup_true_lang-BjVCyihe.js";import{d as M,k as G,o as a,c as s,f as n,n as q,m as h}from"./vue.esm-bundler--ETYdinE.js";/* empty css */import"./media-PjSUOf2n.js";import"./utlity-CAV5GFHh.js";import"./preview-BpGkTYI-.js";import"./DocumentationTemplate-T86yuQAS.js";import"./index-BCrd5TVh.js";import"./iframe-CU3-myGO.js";import"../sb-preview/runtime.js";import"./index-i39XpuQg.js";import"./index-D-8MO0q_.js";import"./index-DrFu-skq.js";import"./index-BgPeZvkN.js";const N=M({__name:"Figure",props:{...g.props},setup(i){const l=i,_=G(()=>{let r=[];return g.addClass(r,l),r});return(r,t)=>(a(),s("figure",{class:q(_.value),role:"group"},t[0]||(t[0]=[n("div",null,[n("div",null,[n("img",{width:"1024",height:"439",alt:"Old capitol building with flowers",class:"lazyloaded","data-src":"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1024_x_439/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=dMS003nN","data-srcset":"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__384_x_165/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=DZJ6MDRp 384w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__768_x_329/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=gXTnlsnZ 768w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1024_x_439/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=dMS003nN 1024w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1312_x_562/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=Go0E2OtS 1312w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1920_x_823/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=EAmMF81e 1920w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__2592_x_1111/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=UuayvW1l 2592w","data-sizes":"(min-width:1310px) 1310px, 100vw",sizes:"(min-width:1310px) 1310px, 100vw",srcset:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__384_x_165/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=DZJ6MDRp 384w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__768_x_329/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=gXTnlsnZ 768w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1024_x_439/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=dMS003nN 1024w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1312_x_562/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=Go0E2OtS 1312w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1920_x_823/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=EAmMF81e 1920w, https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__2592_x_1111/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=UuayvW1l 2592w",src:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/ultrawide__1024_x_439/public/2020-09/2018_08_16-Old%20Capitol%20with%20Flowers-tschoon-004.jpg?h=c3635fa2&itok=dMS003nN"})])],-1),n("figcaption",null,"Erika Ernst",-1)]),2))}}),V={key:0,width:"768",height:"432",alt:"A",class:"lazyloaded",src:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/styles/widescreen__768_x_432/public/2021-12/mnra_0.jpeg?h=ddc58dd3&itok=Ks2HvkO-"},B={key:1,src:"https://www.youtube.com/embed/XTeeVT_qbYg",frameborder:"0",allowtransparency:"",width:"854",height:"480",class:"media-oembed-content",title:"This is Iowa"},L={key:2,id:"video-container--1646",class:"player",preload:"metadata",poster:"https://uiowa.edu/sites/uiowa.edu/files/2022-03/Collaboration%20Vertical%20D.jpg",controls:""},R={key:3,loop:"loop",muted:"muted",width:"1300",height:"730",poster:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/2020-12/homepage-loop.mp4.png",playsinline:"playsinline",autoplay:"autoplay",id:"video-container-0"},Z={key:4,class:"video-controls video"},$={key:0,class:"video-btn video-btn__pause",id:"video-btn-pause"},X={key:1,class:"video-btn video-btn__play",id:"video-btn-play"},J=M({__name:"Media",props:{...g.props,type:{type:String,default:"image"},enable_autoplay:{type:Boolean,default:!1},aspect_ratio:{type:String,default:""}},setup(i){const l=i;function _(t){switch(t){case"default":return"";case"ar_16_9":return"media--16-9";case"ar_21_9":return"media--21-9"}}const r=G(()=>{let t=["media"],e=_(l.aspect_ratio);return l.type==="video"&&!e&&(e="media--16-9"),e&&t.push(e),g.addClass(t,l),t});return(t,e)=>(a(),s("div",{class:q(r.value)},[i.type==="image"?(a(),s("img",V)):i.type==="video"?(a(),s("iframe",B)):i.type==="vertical_video"?(a(),s("video",L,e[0]||(e[0]=[n("source",{src:"https://uiowa.edu/sites/uiowa.edu/files/2022-03/20220201_TheatreCollaboration_264.mp4",type:"video/mp4"},null,-1),n("track",{label:"English",kind:"subtitles",srclang:"en",src:"https://uiowa.edu/sites/uiowa.edu/files/2022-03/20220201%20TheatreCollaboration.vtt",default:"default"},null,-1),n("p",null,"Video is not Supporting",-1)]))):i.type==="remote_video"?(a(),s("video",R,e[1]||(e[1]=[n("source",{src:"https://sandbox.prod.drupal.uiowa.edu/sites/sandbox.uiowa.edu/files/2020-12/homepage-loop.mp4",type:"video/mp4"},null,-1)]))):h("",!0),i.type==="remote_video"?(a(),s("div",Z,[i.enable_autoplay?(a(),s("button",$,e[2]||(e[2]=[n("span",{class:"element-invisible"},"Pause",-1)]))):(a(),s("button",X,e[3]||(e[3]=[n("span",{class:"element-invisible"},"Play",-1)])))])):h("",!0)],2))}}),pe={title:"Components/Inline",parameters:{docs:{source:{code:null}}},component:I,argTypes:{alignment:{name:"Alignment",options:["left","right","center"],control:{type:"select"},table:{category:"Inline items"}},default:{name:"Callout content",control:{type:"text"},table:{category:"Inline items"}},...E.argTypes,filler_content:{name:"Filler content",control:{type:"text"},table:{category:"Surrounding content"}},grid_type:{name:"Grid type",options:["onecol","onecol__narrow","twocol--50-50","twocol--67-33","threecol--33-34-33"],control:{type:"select",labels:{onecol:"One column",onecol__narrow:"One column (narrow)","twocol--50-50":"Two columns (50%, 50%)","twocol--67-33":"Two columns (67%, 33%)","threecol--33-34-33":"Three columns (33%, 34%, 33%)"}},table:{category:"Surrounding content"}},inline_component:{name:"Inline component",options:["callout","image","figure","video","vertical_video"],control:{type:"select",labels:{callout:"Callout",image:"Image",figure:"Figure",video:"Video",vertical_video:"Vertical video"}},table:{category:"Inline items"}},item_sizes:{name:"Inline item sizes",options:["full","small","medium","large"],control:{type:"check",labels:{full:"Full",small:"Small",medium:"Medium",large:"Large"}},table:{category:"Inline items"}},aspect_ratio:{name:"Aspect ratio",options:["default","ar_16_9","ar_21_9"],control:{type:"select",labels:{default:"Default",ar_16_9:"16 / 9",ar_21_9:"21 / 9"}},table:{category:"Inline items"}},records:{name:"Records",options:[1,2,3,4],control:"select",table:{category:"Surrounding content"}}}},m=i=>({components:{UidsGrid:A,UidsGridItem:D,UidsCallout:I,UidsFigure:N,Media:J},setup(){return{args:i}},template:`