From 2fce18520d17460984a827f86af87fba2865ced1 Mon Sep 17 00:00:00 2001 From: Amsterdam CI Date: Tue, 8 Oct 2024 09:27:44 +0000 Subject: [PATCH] upload 1.7.0.20241008.2 --- assets/{Accordion-pyVus0-M.js => Accordion-BRQzS2PO.js} | 2 +- ....stories-zszboBLF.js => Accordion.stories-zfRHY5wr.js} | 2 +- ...lert.stories-BrVn1Z8Z.js => Alert.stories-DWV1pQDq.js} | 2 +- assets/{AlertBase-CypP0Y-t.js => AlertBase-B0hDfRWJ.js} | 2 +- ...tories-9XhpoxYA.js => AspectRatio.stories-DNhpcDer.js} | 2 +- .../{Box.stories-hdDbE-8z.js => Box.stories-BzfpVYnN.js} | 2 +- assets/{Button-CXn0Rl0f.js => Button-DAm4UwbF.js} | 2 +- ...ton.stories-BXrwR9lp.js => Button.stories-Sy1tsKn6.js} | 2 +- ...ter.stories-C4dT0X09.js => Center.stories-C6NWDIFT.js} | 2 +- ...Gi94q.js => CharactersLeftDisplay.stories-DE25sQIz.js} | 2 +- ...x.stories-B02dkd_S.js => Checkbox.stories-CuoUXCBY.js} | 2 +- ...ories-BxMUmU73.js => CityPassCard.stories-TqChsdR9.js} | 2 +- ...or-ERTF36HU-BPVYNBhi.js => Color-ERTF36HU-BQopY_3-.js} | 2 +- ...HY34-DiIHUooj.js => DocsRenderer-CFRXHY34-DQRRfxKV.js} | 8 ++++---- ...tories-DEGPpVJx.js => EmailButton.stories-DDhgbBJo.js} | 2 +- ...ories-CR60fbG6.js => EmptyMessage.stories-uQmD_nYy.js} | 2 +- ...stories-9CnHWFoY.js => FauxButton.stories-DnlhMAWp.js} | 2 +- ...ories-Cj_34t8u.js => FollowButton.stories-BfrkBYsN.js} | 2 +- .../{HtmlContent-DVMBJKEX.js => HtmlContent-BN7YmfBH.js} | 2 +- ...tories-CWJLTXVl.js => HtmlContent.stories-AMd582sk.js} | 2 +- assets/{Icon-CO3hZ5HW.js => Icon-DcC-yiY8.js} | 2 +- ...{Icon.stories-aHGWSgpm.js => Icon.stories-DPBXIphH.js} | 2 +- ...stories-DAas70aU.js => IconButton.stories-C63mYIh6.js} | 2 +- ...-CgKZomf6.js => InformationButton.stories-Chf6KCJ3.js} | 2 +- assets/{Label-Bc-mTvQ-.js => Label-BbSvQ4Xu.js} | 2 +- ...abel.stories-CtOoJG1O.js => Label.stories-CIYQAd-q.js} | 2 +- ...{Link.stories-BbZo-WR0.js => Link.stories-Bsr9sC9b.js} | 2 +- ...{List.stories-FUqbbRGZ.js => List.stories-BTw7GTgY.js} | 2 +- ...tItemMarker-bpCY8oNQ.js => ListItemMarker-BvZewDFw.js} | 2 +- ...s-DxOVoX3T.js => NavigationButton.stories-wRzBaKht.js} | 2 +- assets/{Paragraph-CKYtcIcp.js => Paragraph-DkRs_aGj.js} | 2 +- ....stories-HIpJ_3mC.js => Paragraph.stories-CqC3Nd_V.js} | 2 +- .../{PhoneButton-DincWTMd.js => PhoneButton-H9GVa_s-.js} | 2 +- ...tories-B7VmHzQ_.js => PhoneButton.stories-gTtf5rgQ.js} | 2 +- ...ries-CngON3m8.js => PhoneHQButton.stories-CCWkKybX.js} | 2 +- assets/{Phrase-DprhL3Se.js => Phrase-t0rOiClQ.js} | 2 +- ...ase.stories-PpL3ivS5.js => Phrase.stories-1WGaWSS3.js} | 2 +- assets/{PleaseWait-kuCXMYoa.js => PleaseWait-C5ES8__x.js} | 2 +- ...stories-C_eisUPf.js => PleaseWait.stories-BCRCPM4o.js} | 2 +- ....stories-d3wTtiV1.js => Pressable.stories-COIJugq4.js} | 2 +- ...stories-CUx0HPhd.js => RadioGroup.stories-Y-z69RC-.js} | 2 +- .../{Row.stories-DPtT-e2O.js => Row.stories-CoTMFviY.js} | 2 +- ...{Size.stories-Bhgey4GA.js => Size.stories-DTGdjPCR.js} | 2 +- ...D4WWuqfh.js => SomethingWentWrong.stories-CgtMyzYA.js} | 2 +- .../{Tag.stories-BR_mja2D.js => Tag.stories-BLgDQ_OS.js} | 2 +- ....stories-DmUdRIlA.js => TextInput.stories-CPzo6NW-.js} | 2 +- ...e.stories-CzJklnRZ.js => Timeline.stories-CEX7T0lI.js} | 2 +- assets/{Title-2Den3Qhs.js => Title-9ScEYPym.js} | 2 +- ...itle.stories-DPpgUOK6.js => Title.stories-Dglf4BGk.js} | 2 +- assets/{Tooltip-DYiVxnJv.js => Tooltip-Bm0QTu1O.js} | 2 +- ...ip.stories-BJmLUGIr.js => Tooltip.stories-DKYi8qHC.js} | 2 +- ...ries-B6ZEQwOc.js => TopTaskButton.stories-CnV0R1ve.js} | 2 +- ...rait.stories-DPOIG-7f.js => Trait.stories-DfStrMlO.js} | 4 ++-- ...ntry-preview-D-t3dm-j.js => entry-preview-BLv4HfPv.js} | 2 +- assets/{iframe-kIyOmV27.js => iframe-DRbcjd5I.js} | 4 ++-- assets/{index-CLsvOwO0.js => index-vMRfdoe9.js} | 2 +- assets/{preview-DhFGAmVP.js => preview-BA20xn34.js} | 2 +- assets/{preview-ClbGmyEm.js => preview-DkERHl94.js} | 4 ++-- assets/{preview-D78lRyGx.js => preview-DkszDCHZ.js} | 2 +- iframe.html | 2 +- project.json | 2 +- version.txt | 2 +- 62 files changed, 68 insertions(+), 68 deletions(-) rename assets/{Accordion-pyVus0-M.js => Accordion-BRQzS2PO.js} (96%) rename assets/{Accordion.stories-zszboBLF.js => Accordion.stories-zfRHY5wr.js} (92%) rename assets/{Alert.stories-BrVn1Z8Z.js => Alert.stories-DWV1pQDq.js} (86%) rename assets/{AlertBase-CypP0Y-t.js => AlertBase-B0hDfRWJ.js} (93%) rename assets/{AspectRatio.stories-9XhpoxYA.js => AspectRatio.stories-DNhpcDer.js} (96%) rename assets/{Box.stories-hdDbE-8z.js => Box.stories-BzfpVYnN.js} (94%) rename assets/{Button-CXn0Rl0f.js => Button-DAm4UwbF.js} (79%) rename assets/{Button.stories-BXrwR9lp.js => Button.stories-Sy1tsKn6.js} (96%) rename assets/{Center.stories-C4dT0X09.js => Center.stories-C6NWDIFT.js} (94%) rename assets/{CharactersLeftDisplay.stories-C-rGi94q.js => CharactersLeftDisplay.stories-DE25sQIz.js} (95%) rename assets/{Checkbox.stories-B02dkd_S.js => Checkbox.stories-CuoUXCBY.js} (98%) rename assets/{CityPassCard.stories-BxMUmU73.js => CityPassCard.stories-TqChsdR9.js} (97%) rename assets/{Color-ERTF36HU-BPVYNBhi.js => Color-ERTF36HU-BQopY_3-.js} (99%) rename assets/{DocsRenderer-CFRXHY34-DiIHUooj.js => DocsRenderer-CFRXHY34-DQRRfxKV.js} (99%) rename assets/{EmailButton.stories-DEGPpVJx.js => EmailButton.stories-DDhgbBJo.js} (97%) rename assets/{EmptyMessage.stories-CR60fbG6.js => EmptyMessage.stories-uQmD_nYy.js} (96%) rename assets/{FauxButton.stories-9CnHWFoY.js => FauxButton.stories-DnlhMAWp.js} (95%) rename assets/{FollowButton.stories-Cj_34t8u.js => FollowButton.stories-BfrkBYsN.js} (67%) rename assets/{HtmlContent-DVMBJKEX.js => HtmlContent-BN7YmfBH.js} (99%) rename assets/{HtmlContent.stories-CWJLTXVl.js => HtmlContent.stories-AMd582sk.js} (95%) rename assets/{Icon-CO3hZ5HW.js => Icon-DcC-yiY8.js} (93%) rename assets/{Icon.stories-aHGWSgpm.js => Icon.stories-DPBXIphH.js} (95%) rename assets/{IconButton.stories-DAas70aU.js => IconButton.stories-C63mYIh6.js} (96%) rename assets/{InformationButton.stories-CgKZomf6.js => InformationButton.stories-Chf6KCJ3.js} (81%) rename assets/{Label-Bc-mTvQ-.js => Label-BbSvQ4Xu.js} (89%) rename assets/{Label.stories-CtOoJG1O.js => Label.stories-CIYQAd-q.js} (84%) rename assets/{Link.stories-BbZo-WR0.js => Link.stories-Bsr9sC9b.js} (95%) rename assets/{List.stories-FUqbbRGZ.js => List.stories-BTw7GTgY.js} (95%) rename assets/{ListItemMarker-bpCY8oNQ.js => ListItemMarker-BvZewDFw.js} (94%) rename assets/{NavigationButton.stories-DxOVoX3T.js => NavigationButton.stories-wRzBaKht.js} (98%) rename assets/{Paragraph-CKYtcIcp.js => Paragraph-DkRs_aGj.js} (92%) rename assets/{Paragraph.stories-HIpJ_3mC.js => Paragraph.stories-CqC3Nd_V.js} (92%) rename assets/{PhoneButton-DincWTMd.js => PhoneButton-H9GVa_s-.js} (98%) rename assets/{PhoneButton.stories-B7VmHzQ_.js => PhoneButton.stories-gTtf5rgQ.js} (88%) rename assets/{PhoneHQButton.stories-CngON3m8.js => PhoneHQButton.stories-CCWkKybX.js} (90%) rename assets/{Phrase-DprhL3Se.js => Phrase-t0rOiClQ.js} (97%) rename assets/{Phrase.stories-PpL3ivS5.js => Phrase.stories-1WGaWSS3.js} (95%) rename assets/{PleaseWait-kuCXMYoa.js => PleaseWait-C5ES8__x.js} (89%) rename assets/{PleaseWait.stories-C_eisUPf.js => PleaseWait.stories-BCRCPM4o.js} (91%) rename assets/{Pressable.stories-d3wTtiV1.js => Pressable.stories-COIJugq4.js} (90%) rename assets/{RadioGroup.stories-CUx0HPhd.js => RadioGroup.stories-Y-z69RC-.js} (99%) rename assets/{Row.stories-DPtT-e2O.js => Row.stories-CoTMFviY.js} (93%) rename assets/{Size.stories-Bhgey4GA.js => Size.stories-DTGdjPCR.js} (94%) rename assets/{SomethingWentWrong.stories-D4WWuqfh.js => SomethingWentWrong.stories-CgtMyzYA.js} (94%) rename assets/{Tag.stories-BR_mja2D.js => Tag.stories-BLgDQ_OS.js} (94%) rename assets/{TextInput.stories-DmUdRIlA.js => TextInput.stories-CPzo6NW-.js} (96%) rename assets/{Timeline.stories-CzJklnRZ.js => Timeline.stories-CEX7T0lI.js} (95%) rename assets/{Title-2Den3Qhs.js => Title-9ScEYPym.js} (92%) rename assets/{Title.stories-DPpgUOK6.js => Title.stories-Dglf4BGk.js} (91%) rename assets/{Tooltip-DYiVxnJv.js => Tooltip-Bm0QTu1O.js} (99%) rename assets/{Tooltip.stories-BJmLUGIr.js => Tooltip.stories-DKYi8qHC.js} (94%) rename assets/{TopTaskButton.stories-B6ZEQwOc.js => TopTaskButton.stories-CnV0R1ve.js} (72%) rename assets/{Trait.stories-DPOIG-7f.js => Trait.stories-DfStrMlO.js} (72%) rename assets/{entry-preview-D-t3dm-j.js => entry-preview-BLv4HfPv.js} (99%) rename assets/{iframe-kIyOmV27.js => iframe-DRbcjd5I.js} (73%) rename assets/{index-CLsvOwO0.js => index-vMRfdoe9.js} (93%) rename assets/{preview-DhFGAmVP.js => preview-BA20xn34.js} (93%) rename assets/{preview-ClbGmyEm.js => preview-DkERHl94.js} (80%) rename assets/{preview-D78lRyGx.js => preview-DkszDCHZ.js} (99%) diff --git a/assets/Accordion-pyVus0-M.js b/assets/Accordion-BRQzS2PO.js similarity index 96% rename from assets/Accordion-pyVus0-M.js rename to assets/Accordion-BRQzS2PO.js index 4ae9671b..c23635ab 100644 --- a/assets/Accordion-pyVus0-M.js +++ b/assets/Accordion-BRQzS2PO.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{r}from"./index-mfbfsM12.js";import{P as k}from"./Pressable-HfRmqOUq.js";import{B as m}from"./Box-uk0d72u3.js";import{C as q}from"./Column-DVJ0Grcf.js";import{G as C}from"./Gutter-DFUJhG4q.js";import{R as P}from"./Row-BXpfxHoR.js";import{S as N}from"./Size-D6myJmG7.js";import{I as S}from"./Icon-CO3hZ5HW.js";import{T as D}from"./Title-2Den3Qhs.js";import{P as I}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import{u as _}from"./useTheme-CJIBCVMY.js";import{P as T}from"./index-DOpK3Ow6.js";const E=({children:n})=>e.jsxs(e.Fragment,{children:[e.jsx(m,{insetHorizontal:"md",children:n}),e.jsx(C,{height:"md"})]}),c=({icon:n,title:l})=>e.jsx(m,{grow:!0,children:e.jsxs(P,{align:"between",gutter:"md",valign:"start",children:[e.jsx(D,{color:"link",level:"h5",numberOfLines:3,text:l}),n]})}),d=({grow:n,initiallyExpanded:l,isExpandable:p=!0,onChangeExpanded:o,children:v,testID:s,title:i,logAction:g,logDimensions:f={},logName:h,logCategory:b,logValue:y})=>{const[a,x]=r.useState(!!l),j=a?"chevron-up":"chevron-down",{text:w}=_(),u=r.useCallback(t=>{x(t),o==null||o(t)},[o]),A=r.useMemo(()=>{const t=a?"Uitgevouwen":"Samengevouwen",V=T.OS==="android"?`${i}`:`${i}, dubbeltik om de inhoud te ${a?"verbergen":"bekijken"}`;return`${t}, ${V}.`},[a,i]);return p?e.jsxs(q,{grow:n,children:[e.jsx(k,{accessibilityActions:[{name:"activate",label:a?"het verbergen van de inhoud":"het bekijken van de inhoud"}],accessibilityLabel:A,accessibilityLanguage:"nl-NL",logAction:g,logCategory:b,logDimensions:{...f,[I.newState]:a?"closed":"open"},logName:h,logValue:y,onAccessibilityAction:t=>{t.nativeEvent.actionName==="activate"&&u(!a)},onPress:()=>u(!a),testID:s,children:e.jsx(c,{icon:e.jsx(N,{height:w.lineHeight.h5,children:e.jsx(S,{color:"link",name:j,size:"lg",testID:`${s}Icon`})}),title:i})}),!!a&&e.jsx(E,{children:v})]}):e.jsx(c,{title:i})};try{d.displayName="Accordion",d.__docgenInfo={description:"",displayName:"Accordion",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"number"}},initiallyExpanded:{defaultValue:null,description:"",name:"initiallyExpanded",required:!1,type:{name:"boolean"}},isExpandable:{defaultValue:{value:"true"},description:"",name:"isExpandable",required:!1,type:{name:"boolean"}},onChangeExpanded:{defaultValue:null,description:"",name:"onChangeExpanded",required:!1,type:{name:"((state: boolean) => void)"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}export{d as A}; +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{r}from"./index-mfbfsM12.js";import{P as k}from"./Pressable-HfRmqOUq.js";import{B as m}from"./Box-uk0d72u3.js";import{C as q}from"./Column-DVJ0Grcf.js";import{G as C}from"./Gutter-DFUJhG4q.js";import{R as P}from"./Row-BXpfxHoR.js";import{S as N}from"./Size-D6myJmG7.js";import{I as S}from"./Icon-DcC-yiY8.js";import{T as D}from"./Title-9ScEYPym.js";import{P as I}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import{u as _}from"./useTheme-CJIBCVMY.js";import{P as T}from"./index-DOpK3Ow6.js";const E=({children:n})=>e.jsxs(e.Fragment,{children:[e.jsx(m,{insetHorizontal:"md",children:n}),e.jsx(C,{height:"md"})]}),c=({icon:n,title:l})=>e.jsx(m,{grow:!0,children:e.jsxs(P,{align:"between",gutter:"md",valign:"start",children:[e.jsx(D,{color:"link",level:"h5",numberOfLines:3,text:l}),n]})}),d=({grow:n,initiallyExpanded:l,isExpandable:p=!0,onChangeExpanded:o,children:v,testID:s,title:i,logAction:g,logDimensions:f={},logName:h,logCategory:b,logValue:y})=>{const[a,x]=r.useState(!!l),j=a?"chevron-up":"chevron-down",{text:w}=_(),u=r.useCallback(t=>{x(t),o==null||o(t)},[o]),A=r.useMemo(()=>{const t=a?"Uitgevouwen":"Samengevouwen",V=T.OS==="android"?`${i}`:`${i}, dubbeltik om de inhoud te ${a?"verbergen":"bekijken"}`;return`${t}, ${V}.`},[a,i]);return p?e.jsxs(q,{grow:n,children:[e.jsx(k,{accessibilityActions:[{name:"activate",label:a?"het verbergen van de inhoud":"het bekijken van de inhoud"}],accessibilityLabel:A,accessibilityLanguage:"nl-NL",logAction:g,logCategory:b,logDimensions:{...f,[I.newState]:a?"closed":"open"},logName:h,logValue:y,onAccessibilityAction:t=>{t.nativeEvent.actionName==="activate"&&u(!a)},onPress:()=>u(!a),testID:s,children:e.jsx(c,{icon:e.jsx(N,{height:w.lineHeight.h5,children:e.jsx(S,{color:"link",name:j,size:"lg",testID:`${s}Icon`})}),title:i})}),!!a&&e.jsx(E,{children:v})]}):e.jsx(c,{title:i})};try{d.displayName="Accordion",d.__docgenInfo={description:"",displayName:"Accordion",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"number"}},initiallyExpanded:{defaultValue:null,description:"",name:"initiallyExpanded",required:!1,type:{name:"boolean"}},isExpandable:{defaultValue:{value:"true"},description:"",name:"isExpandable",required:!1,type:{name:"boolean"}},onChangeExpanded:{defaultValue:null,description:"",name:"onChangeExpanded",required:!1,type:{name:"((state: boolean) => void)"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}export{d as A}; diff --git a/assets/Accordion.stories-zszboBLF.js b/assets/Accordion.stories-zfRHY5wr.js similarity index 92% rename from assets/Accordion.stories-zszboBLF.js rename to assets/Accordion.stories-zfRHY5wr.js index 31571964..5d559640 100644 --- a/assets/Accordion.stories-zszboBLF.js +++ b/assets/Accordion.stories-zfRHY5wr.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{A as a}from"./Accordion-pyVus0-M.js";import{P as n}from"./Paragraph-CKYtcIcp.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-HfRmqOUq.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Gutter-DFUJhG4q.js";import"./Row-BXpfxHoR.js";import"./Size-D6myJmG7.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./Title-2Den3Qhs.js";const ir={component:a},f="Een accordeon (Engels: accordion) is een klikbare verticaal gestapelde lijst van koppen om bijbehorende inhoud te verbergen of te vertonen. Je toont inhoud op een progressieve manier aan gebruikers. Ze zijn geschikt zodra gebruikers op zoek zijn naar essentiële inhoud op 1 pagina. Door niet essentiële inhoud te verbergen, kunnen gebruikers focussen op de primaire inhoud.",o=e=>r.jsx(a,{...e,children:r.jsx(n,{children:f})});o.args={title:"Wat is een accordeon?"};const t=e=>r.jsx(a,{...e,children:r.jsx(n,{children:f})});t.args={title:"De titel moet zo kort als mogelijk zijn, maar ook duidelijk en representatief voor de verborgen inhoud"};const i=()=>r.jsx(r.Fragment,{children:["Grof afval","Restafval","Containers in de buurt","Recyclepunten"].map(e=>r.jsx(a,{testID:e,title:e,children:r.jsxs(n,{children:["Informatie over ",e.toLowerCase()," komt hier."]})}))});var p,s,m;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`args => +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{A as a}from"./Accordion-BRQzS2PO.js";import{P as n}from"./Paragraph-DkRs_aGj.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-HfRmqOUq.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Gutter-DFUJhG4q.js";import"./Row-BXpfxHoR.js";import"./Size-D6myJmG7.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./Title-9ScEYPym.js";const ir={component:a},f="Een accordeon (Engels: accordion) is een klikbare verticaal gestapelde lijst van koppen om bijbehorende inhoud te verbergen of te vertonen. Je toont inhoud op een progressieve manier aan gebruikers. Ze zijn geschikt zodra gebruikers op zoek zijn naar essentiële inhoud op 1 pagina. Door niet essentiële inhoud te verbergen, kunnen gebruikers focussen op de primaire inhoud.",o=e=>r.jsx(a,{...e,children:r.jsx(n,{children:f})});o.args={title:"Wat is een accordeon?"};const t=e=>r.jsx(a,{...e,children:r.jsx(n,{children:f})});t.args={title:"De titel moet zo kort als mogelijk zijn, maar ook duidelijk en representatief voor de verborgen inhoud"};const i=()=>r.jsx(r.Fragment,{children:["Grof afval","Restafval","Containers in de buurt","Recyclepunten"].map(e=>r.jsx(a,{testID:e,title:e,children:r.jsxs(n,{children:["Informatie over ",e.toLowerCase()," komt hier."]})}))});var p,s,m;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`args => {paragraphText} `,...(m=(s=o.parameters)==null?void 0:s.docs)==null?void 0:m.source}}};var c,d,l;t.parameters={...t.parameters,docs:{...(c=t.parameters)==null?void 0:c.docs,source:{originalSource:`args => {paragraphText} diff --git a/assets/Alert.stories-BrVn1Z8Z.js b/assets/Alert.stories-DWV1pQDq.js similarity index 86% rename from assets/Alert.stories-BrVn1Z8Z.js rename to assets/Alert.stories-DWV1pQDq.js index 8bbe4c0b..42c65db4 100644 --- a/assets/Alert.stories-BrVn1Z8Z.js +++ b/assets/Alert.stories-DWV1pQDq.js @@ -1 +1 @@ -import{A as p,a as m}from"./AlertBase-CypP0Y-t.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./index-CEE--Juu.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./SingleSelectable-Bg8zzmoU.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-BXpfxHoR.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DOpK3Ow6.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./Paragraph-CKYtcIcp.js";import"./Title-2Den3Qhs.js";import"./useAccessibilityFocus-Djl26ZxP.js";import"./useTrackException-BhQuYC5A.js";import"./development-DYCnWZjk.js";import"./index-iQAZAIR7.js";import"./index-kJeFfQx-.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./duration-A4BOymd5.js";import"./accessibleText-gmNPjmn1.js";const e="Titel",a="U kunt een dagontheffing of jaarontheffing aanvragen",X={component:p,argTypes:{hasCloseIcon:{type:"boolean"},inset:{table:{disable:!0}},testID:{table:{disable:!0}},variant:{options:Object.values(m),control:{type:"radio"}}},args:{title:e,text:a}},t={};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};const Y=["Default"];export{t as Default,Y as __namedExportsOrder,X as default}; +import{A as p,a as m}from"./AlertBase-B0hDfRWJ.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./index-CEE--Juu.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./SingleSelectable-Bg8zzmoU.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-BXpfxHoR.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DOpK3Ow6.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./Paragraph-DkRs_aGj.js";import"./Title-9ScEYPym.js";import"./useAccessibilityFocus-Djl26ZxP.js";import"./useTrackException-BhQuYC5A.js";import"./development-DYCnWZjk.js";import"./index-iQAZAIR7.js";import"./index-kJeFfQx-.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./duration-A4BOymd5.js";import"./accessibleText-gmNPjmn1.js";const e="Titel",a="U kunt een dagontheffing of jaarontheffing aanvragen",X={component:p,argTypes:{hasCloseIcon:{type:"boolean"},inset:{table:{disable:!0}},testID:{table:{disable:!0}},variant:{options:Object.values(m),control:{type:"radio"}}},args:{title:e,text:a}},t={};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};const Y=["Default"];export{t as Default,Y as __namedExportsOrder,X as default}; diff --git a/assets/AlertBase-CypP0Y-t.js b/assets/AlertBase-B0hDfRWJ.js similarity index 93% rename from assets/AlertBase-CypP0Y-t.js rename to assets/AlertBase-B0hDfRWJ.js index 722555c9..990679bb 100644 --- a/assets/AlertBase-CypP0Y-t.js +++ b/assets/AlertBase-B0hDfRWJ.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{B as x}from"./Box-uk0d72u3.js";import{S as h}from"./SingleSelectable-Bg8zzmoU.js";import{C as b}from"./Column-DVJ0Grcf.js";import{R as m}from"./Row-BXpfxHoR.js";import{I as p}from"./Icon-CO3hZ5HW.js";import{P as y}from"./Paragraph-CKYtcIcp.js";import{T as j}from"./Title-2Den3Qhs.js";import{u as I}from"./useAccessibilityFocus-Djl26ZxP.js";import{u as C}from"./useThemable-CjWxbHxI.js";import{D as _}from"./duration-A4BOymd5.js";import{a as w}from"./accessibleText-gmNPjmn1.js";import{V as l}from"./index-BDsvWohO.js";import{s as V}from"./index-CEE--Juu.js";var n=(e=>(e.information="information",e.negative="negative",e.positive="positive",e.warning="warning",e))(n||{});const q=3,N=({children:e,inset:r})=>r!==void 0?a.jsx(x,{inset:r,children:e}):a.jsx(a.Fragment,{children:e}),d=({children:e,hasCloseIcon:r=!1,inset:s,testID:t,hasIcon:f=!1,text:c,title:o,variant:u=n.information})=>{const g=I(_.long),v=R[u],i=C(T(u));return!!c||!!o||!!e?a.jsx(N,{inset:s,children:a.jsx(l,{testID:`${t}Wrapper`,children:a.jsx(l,{accessibilityLanguage:"nl-NL",accessibilityRole:"alert",accessible:!0,ref:g,style:i==null?void 0:i.view,testID:t,children:e??a.jsxs(m,{align:"between",children:[a.jsx(h,{accessibilityLabel:w(o,c),accessibilityLanguage:"nl-NL",accessibilityRole:"alert",children:a.jsxs(m,{gutter:"md",children:[!!f&&a.jsx(l,{style:i==null?void 0:i.iconWrapper,children:a.jsx(p,{name:v,size:"lg",testID:`${t}Icon`})}),a.jsxs(b,{shrink:1,children:[!!o&&a.jsx(j,{level:"h4",text:o}),a.jsx(y,{children:c})]})]})}),!!r&&a.jsx(l,{children:a.jsx(p,{name:"close",size:"lg",testID:`${t}CloseIcon`})})]})})})}):null},R={[n.information]:"info",[n.negative]:"error",[n.positive]:"circle-check-mark",[n.warning]:"alert"},T=e=>({color:r,size:s})=>{if(e)return V.create({iconWrapper:{top:q},view:{backgroundColor:r.alert[e].background,borderWidth:2,borderColor:r.alert[e].border,paddingHorizontal:s.spacing.lg,paddingVertical:s.spacing.md}})};try{d.displayName="AlertBase",d.__docgenInfo={description:"",displayName:"AlertBase",props:{inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},hasCloseIcon:{defaultValue:{value:"false"},description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:{value:"false"},description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},variant:{defaultValue:{value:"AlertVariant.information"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{d as A,n as a}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{B as x}from"./Box-uk0d72u3.js";import{S as h}from"./SingleSelectable-Bg8zzmoU.js";import{C as b}from"./Column-DVJ0Grcf.js";import{R as m}from"./Row-BXpfxHoR.js";import{I as p}from"./Icon-DcC-yiY8.js";import{P as y}from"./Paragraph-DkRs_aGj.js";import{T as j}from"./Title-9ScEYPym.js";import{u as I}from"./useAccessibilityFocus-Djl26ZxP.js";import{u as C}from"./useThemable-CjWxbHxI.js";import{D as _}from"./duration-A4BOymd5.js";import{a as w}from"./accessibleText-gmNPjmn1.js";import{V as l}from"./index-BDsvWohO.js";import{s as V}from"./index-CEE--Juu.js";var n=(e=>(e.information="information",e.negative="negative",e.positive="positive",e.warning="warning",e))(n||{});const q=3,N=({children:e,inset:r})=>r!==void 0?a.jsx(x,{inset:r,children:e}):a.jsx(a.Fragment,{children:e}),d=({children:e,hasCloseIcon:r=!1,inset:s,testID:t,hasIcon:f=!1,text:c,title:o,variant:u=n.information})=>{const g=I(_.long),v=R[u],i=C(T(u));return!!c||!!o||!!e?a.jsx(N,{inset:s,children:a.jsx(l,{testID:`${t}Wrapper`,children:a.jsx(l,{accessibilityLanguage:"nl-NL",accessibilityRole:"alert",accessible:!0,ref:g,style:i==null?void 0:i.view,testID:t,children:e??a.jsxs(m,{align:"between",children:[a.jsx(h,{accessibilityLabel:w(o,c),accessibilityLanguage:"nl-NL",accessibilityRole:"alert",children:a.jsxs(m,{gutter:"md",children:[!!f&&a.jsx(l,{style:i==null?void 0:i.iconWrapper,children:a.jsx(p,{name:v,size:"lg",testID:`${t}Icon`})}),a.jsxs(b,{shrink:1,children:[!!o&&a.jsx(j,{level:"h4",text:o}),a.jsx(y,{children:c})]})]})}),!!r&&a.jsx(l,{children:a.jsx(p,{name:"close",size:"lg",testID:`${t}CloseIcon`})})]})})})}):null},R={[n.information]:"info",[n.negative]:"error",[n.positive]:"circle-check-mark",[n.warning]:"alert"},T=e=>({color:r,size:s})=>{if(e)return V.create({iconWrapper:{top:q},view:{backgroundColor:r.alert[e].background,borderWidth:2,borderColor:r.alert[e].border,paddingHorizontal:s.spacing.lg,paddingVertical:s.spacing.md}})};try{d.displayName="AlertBase",d.__docgenInfo={description:"",displayName:"AlertBase",props:{inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},hasCloseIcon:{defaultValue:{value:"false"},description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:{value:"false"},description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},variant:{defaultValue:{value:"AlertVariant.information"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{d as A,n as a}; diff --git a/assets/AspectRatio.stories-9XhpoxYA.js b/assets/AspectRatio.stories-DNhpcDer.js similarity index 96% rename from assets/AspectRatio.stories-9XhpoxYA.js rename to assets/AspectRatio.stories-DNhpcDer.js index da00283e..695693b8 100644 --- a/assets/AspectRatio.stories-9XhpoxYA.js +++ b/assets/AspectRatio.stories-DNhpcDer.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{O as l}from"./types-BJ_48vsK.js";import{u as m}from"./useThemable-CjWxbHxI.js";import{V as u}from"./index-BDsvWohO.js";import{s as d}from"./index-CEE--Juu.js";import{P as h}from"./Phrase-DprhL3Se.js";import"./Block-SFKht2RU.js";import{C as v}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BypDj3rK.js";const s=({aspectRatio:e,children:o,orientation:t="landscape"})=>{const i=m(f(e,t));return r.jsx(u,{style:i.view,children:o})},f=(e,o)=>({media:t})=>{const i=o===l.portrait?1/t.aspectRatio[e]:t.aspectRatio[e];return d.create({view:{aspectRatio:i}})};try{s.displayName="AspectRatio",s.__docgenInfo={description:"",displayName:"AspectRatio",props:{aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!0,type:{name:"enum",value:[{value:'"extraWide"'},{value:'"narrow"'},{value:'"square"'},{value:'"wide"'},{value:'"tight"'}]}},orientation:{defaultValue:{value:"landscape"},description:"",name:"orientation",required:!1,type:{name:"enum",value:[{value:'"landscape"'},{value:'"portrait"'}]}}}}}catch{}const O={component:s},a=e=>r.jsx(s,{...e,children:r.jsx(v,{highlight:!0,children:r.jsx(h,{testID:"Phrase",children:"Ik heb een bepaalde beeldverhouding."})})});a.args={aspectRatio:"wide",orientation:"landscape"};var n,p,c;a.parameters={...a.parameters,docs:{...(n=a.parameters)==null?void 0:n.docs,source:{originalSource:`args => +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{O as l}from"./types-BJ_48vsK.js";import{u as m}from"./useThemable-CjWxbHxI.js";import{V as u}from"./index-BDsvWohO.js";import{s as d}from"./index-CEE--Juu.js";import{P as h}from"./Phrase-t0rOiClQ.js";import"./Block-SFKht2RU.js";import{C as v}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BypDj3rK.js";const s=({aspectRatio:e,children:o,orientation:t="landscape"})=>{const i=m(f(e,t));return r.jsx(u,{style:i.view,children:o})},f=(e,o)=>({media:t})=>{const i=o===l.portrait?1/t.aspectRatio[e]:t.aspectRatio[e];return d.create({view:{aspectRatio:i}})};try{s.displayName="AspectRatio",s.__docgenInfo={description:"",displayName:"AspectRatio",props:{aspectRatio:{defaultValue:null,description:"",name:"aspectRatio",required:!0,type:{name:"enum",value:[{value:'"extraWide"'},{value:'"narrow"'},{value:'"square"'},{value:'"wide"'},{value:'"tight"'}]}},orientation:{defaultValue:{value:"landscape"},description:"",name:"orientation",required:!1,type:{name:"enum",value:[{value:'"landscape"'},{value:'"portrait"'}]}}}}}catch{}const O={component:s},a=e=>r.jsx(s,{...e,children:r.jsx(v,{highlight:!0,children:r.jsx(h,{testID:"Phrase",children:"Ik heb een bepaalde beeldverhouding."})})});a.args={aspectRatio:"wide",orientation:"landscape"};var n,p,c;a.parameters={...a.parameters,docs:{...(n=a.parameters)==null?void 0:n.docs,source:{originalSource:`args => Ik heb een bepaalde beeldverhouding. diff --git a/assets/Box.stories-hdDbE-8z.js b/assets/Box.stories-BzfpVYnN.js similarity index 94% rename from assets/Box.stories-hdDbE-8z.js rename to assets/Box.stories-BzfpVYnN.js index c438146c..e2e01b6b 100644 --- a/assets/Box.stories-hdDbE-8z.js +++ b/assets/Box.stories-BzfpVYnN.js @@ -1,3 +1,3 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{B as m}from"./Box-uk0d72u3.js";import{P as p}from"./Phrase-DprhL3Se.js";import{b as s}from"./base-color-CZpuL6yQ.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-DflBxpuh.js";import"./index-CEE--Juu.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BypDj3rK.js";const I={component:m,args:{distinct:!1,grow:!1,inset:"md"},parameters:{backgrounds:{values:[{name:"Default screen",value:s.primary.white},{name:"Settings screen",value:s.custom.grey0}]}}},r=i=>e.jsx(m,{...i,children:e.jsx(p,{testID:"Phrase",children:"I’m a box."})});var o,t,a;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`args => +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{B as m}from"./Box-uk0d72u3.js";import{P as p}from"./Phrase-t0rOiClQ.js";import{b as s}from"./base-color-CZpuL6yQ.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-DflBxpuh.js";import"./index-CEE--Juu.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BypDj3rK.js";const I={component:m,args:{distinct:!1,grow:!1,inset:"md"},parameters:{backgrounds:{values:[{name:"Default screen",value:s.primary.white},{name:"Settings screen",value:s.custom.grey0}]}}},r=i=>e.jsx(m,{...i,children:e.jsx(p,{testID:"Phrase",children:"I’m a box."})});var o,t,a;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`args => I’m a box. `,...(a=(t=r.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const v=["Default"];export{r as Default,v as __namedExportsOrder,I as default}; diff --git a/assets/Button-CXn0Rl0f.js b/assets/Button-DAm4UwbF.js similarity index 79% rename from assets/Button-CXn0Rl0f.js rename to assets/Button-DAm4UwbF.js index 481fe27e..390737e8 100644 --- a/assets/Button-CXn0Rl0f.js +++ b/assets/Button-DAm4UwbF.js @@ -1 +1 @@ -import{j as m}from"./jsx-runtime-Bxcv0yjW.js";import{r as y}from"./index-mfbfsM12.js";import{P as C}from"./PressableBase-CPU35BDr.js";import{c as V}from"./config-BZnShabN.js";import{R as q}from"./Row-BXpfxHoR.js";import{I as w}from"./Icon-CO3hZ5HW.js";import{u as x}from"./useThemable-CjWxbHxI.js";import{T as L}from"./index-BypDj3rK.js";import{s as S}from"./index-CEE--Juu.js";const p="primary",b=({ellipsizeMode:l,iconName:e,isLoading:a,label:u,numberOfLines:r,small:o,testID:i,variant:c=p,...n})=>{const[g,s]=y.useState(!1),d=x(z({small:o,variant:c},g)),{onPressIn:t,onPressOut:v}=n,h=y.useCallback(f=>{s(!0),t==null||t(f)},[t]),k=y.useCallback(f=>{s(!1),v==null||v(f)},[v]);return m.jsx(C,{accessibilityLanguage:"nl-NL",accessibilityRole:"button",onPressIn:h,onPressOut:k,style:d.button,testID:i,...n,children:m.jsxs(q,{gutter:"sm",valign:"center",children:[!!e&&m.jsx(w,{color:c==="primary"?"inverse":"link",name:a?"spinner":e,size:"lg",testID:`${i}Icon`}),!!u&&m.jsx(L,{ellipsizeMode:l,numberOfLines:r,style:d.label,testID:`${i}Label`,children:u})]})})},N=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].border,_=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].label,j=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].background,z=({small:l,variant:e},a)=>({border:u,color:r,text:o,size:i})=>{const c=V.buttonHeight,n=u.width[e==="secondary"&&a?"lg":"md"],g=o.fontSize[l?"small":"body"],s=o.lineHeight[l?"small":"body"],d=i.spacing.md+2+u.width.md-n,t=(c-s-2*n)/2;return S.create({button:{flexDirection:"row",justifyContent:"center",flexShrink:1,paddingHorizontal:d,paddingVertical:t,backgroundColor:j(r,a,e),borderColor:N(r,a,e),borderStyle:"solid",borderWidth:n},label:{flexShrink:1,color:_(r,a,e),fontFamily:o.fontFamily.regular,fontSize:g,lineHeight:s}})};try{b.displayName="Button",b.__docgenInfo={description:"",displayName:"Button",props:{ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"alarm"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}export{b as B}; +import{j as m}from"./jsx-runtime-Bxcv0yjW.js";import{r as y}from"./index-mfbfsM12.js";import{P as C}from"./PressableBase-CPU35BDr.js";import{c as V}from"./config-BZnShabN.js";import{R as q}from"./Row-BXpfxHoR.js";import{I as w}from"./Icon-DcC-yiY8.js";import{u as x}from"./useThemable-CjWxbHxI.js";import{T as L}from"./index-BypDj3rK.js";import{s as S}from"./index-CEE--Juu.js";const p="primary",b=({ellipsizeMode:l,iconName:e,isLoading:a,label:u,numberOfLines:r,small:o,testID:i,variant:c=p,...n})=>{const[g,s]=y.useState(!1),d=x(z({small:o,variant:c},g)),{onPressIn:t,onPressOut:v}=n,h=y.useCallback(f=>{s(!0),t==null||t(f)},[t]),k=y.useCallback(f=>{s(!1),v==null||v(f)},[v]);return m.jsx(C,{accessibilityLanguage:"nl-NL",accessibilityRole:"button",onPressIn:h,onPressOut:k,style:d.button,testID:i,...n,children:m.jsxs(q,{gutter:"sm",valign:"center",children:[!!e&&m.jsx(w,{color:c==="primary"?"inverse":"link",name:a?"spinner":e,size:"lg",testID:`${i}Icon`}),!!u&&m.jsx(L,{ellipsizeMode:l,numberOfLines:r,style:d.label,testID:`${i}Label`,children:u})]})})},N=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].border,_=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].label,j=(l,e,a=p)=>l.pressable[a][e?"pressed":"default"].background,z=({small:l,variant:e},a)=>({border:u,color:r,text:o,size:i})=>{const c=V.buttonHeight,n=u.width[e==="secondary"&&a?"lg":"md"],g=o.fontSize[l?"small":"body"],s=o.lineHeight[l?"small":"body"],d=i.spacing.md+2+u.width.md-n,t=(c-s-2*n)/2;return S.create({button:{flexDirection:"row",justifyContent:"center",flexShrink:1,paddingHorizontal:d,paddingVertical:t,backgroundColor:j(r,a,e),borderColor:N(r,a,e),borderStyle:"solid",borderWidth:n},label:{flexShrink:1,color:_(r,a,e),fontFamily:o.fontFamily.regular,fontSize:g,lineHeight:s}})};try{b.displayName="Button",b.__docgenInfo={description:"",displayName:"Button",props:{ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"alarm"'},{value:'"alert"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"email"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"list"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"search"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}export{b as B}; diff --git a/assets/Button.stories-BXrwR9lp.js b/assets/Button.stories-Sy1tsKn6.js similarity index 96% rename from assets/Button.stories-BXrwR9lp.js rename to assets/Button.stories-Sy1tsKn6.js index bada7628..3ca00b7a 100644 --- a/assets/Button.stories-BXrwR9lp.js +++ b/assets/Button.stories-Sy1tsKn6.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as t}from"./Button-CXn0Rl0f.js";import{R as p}from"./Row-BXpfxHoR.js";import{p as A}from"./pressable-arg-types-CJIMfHep.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";const dr={argTypes:A,component:t,parameters:{componentSubtitle:"Het basis button component"}},o={args:{label:"Primary",variant:"primary"}},s={args:{label:"Secondary",variant:"secondary"}},n={args:{label:"Tertiary",variant:"tertiary"}},i={args:{align:"start"},render:({align:e})=>r.jsx(p,{align:e,children:r.jsx(t,{label:"Inline button",testID:"Button"})})},m={args:{align:"start",gutter:"md"},render:({align:e,gutter:P})=>r.jsxs(p,{align:e,gutter:P,children:[r.jsx(t,{label:"First button",testID:"Button"}),r.jsx(t,{label:"Second button",testID:"Button",variant:"secondary"}),r.jsx(t,{label:"Third button",testID:"Button",variant:"tertiary"})]})},a={args:{iconName:"phone",label:"Bel ons"},render:e=>r.jsx(p,{align:"start",children:r.jsx(t,{...e,testID:"Button"})})};var c,l,u;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as t}from"./Button-DAm4UwbF.js";import{R as p}from"./Row-BXpfxHoR.js";import{p as A}from"./pressable-arg-types-CJIMfHep.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";const dr={argTypes:A,component:t,parameters:{componentSubtitle:"Het basis button component"}},o={args:{label:"Primary",variant:"primary"}},s={args:{label:"Secondary",variant:"secondary"}},n={args:{label:"Tertiary",variant:"tertiary"}},i={args:{align:"start"},render:({align:e})=>r.jsx(p,{align:e,children:r.jsx(t,{label:"Inline button",testID:"Button"})})},m={args:{align:"start",gutter:"md"},render:({align:e,gutter:P})=>r.jsxs(p,{align:e,gutter:P,children:[r.jsx(t,{label:"First button",testID:"Button"}),r.jsx(t,{label:"Second button",testID:"Button",variant:"secondary"}),r.jsx(t,{label:"Third button",testID:"Button",variant:"tertiary"})]})},a={args:{iconName:"phone",label:"Bel ons"},render:e=>r.jsx(p,{align:"start",children:r.jsx(t,{...e,testID:"Button"})})};var c,l,u;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`{ args: { label: 'Primary', variant: 'primary' diff --git a/assets/Center.stories-C4dT0X09.js b/assets/Center.stories-C6NWDIFT.js similarity index 94% rename from assets/Center.stories-C4dT0X09.js rename to assets/Center.stories-C6NWDIFT.js index ad1c2c19..7759f1f8 100644 --- a/assets/Center.stories-C4dT0X09.js +++ b/assets/Center.stories-C6NWDIFT.js @@ -1,3 +1,3 @@ -import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{C as i}from"./Center-CqG4tBOn.js";import{P as m}from"./Phrase-DprhL3Se.js";import"./Block-SFKht2RU.js";import{C as p}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-DflBxpuh.js";import"./index-CEE--Juu.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";const E={component:i,decorators:[e=>t.jsx(p,{height:"256px",highlight:!0,maxWidth:"512px",children:t.jsx(e,{})})]},r=e=>t.jsx(i,{...e,children:t.jsx(m,{testID:"Phrase",children:"Ik sta in het midden"})});r.args={grow:!0};var s,o,a;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`args =>
+import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{C as i}from"./Center-CqG4tBOn.js";import{P as m}from"./Phrase-t0rOiClQ.js";import"./Block-SFKht2RU.js";import{C as p}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./layoutStyles-DflBxpuh.js";import"./index-CEE--Juu.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";const E={component:i,decorators:[e=>t.jsx(p,{height:"256px",highlight:!0,maxWidth:"512px",children:t.jsx(e,{})})]},r=e=>t.jsx(i,{...e,children:t.jsx(m,{testID:"Phrase",children:"Ik sta in het midden"})});r.args={grow:!0};var s,o,a;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`args =>
Ik sta in het midden
`,...(a=(o=r.parameters)==null?void 0:o.docs)==null?void 0:a.source}}};const v=["Default"];export{r as Default,v as __namedExportsOrder,E as default}; diff --git a/assets/CharactersLeftDisplay.stories-C-rGi94q.js b/assets/CharactersLeftDisplay.stories-DE25sQIz.js similarity index 95% rename from assets/CharactersLeftDisplay.stories-C-rGi94q.js rename to assets/CharactersLeftDisplay.stories-DE25sQIz.js index 189bf002..7186d2c9 100644 --- a/assets/CharactersLeftDisplay.stories-C-rGi94q.js +++ b/assets/CharactersLeftDisplay.stories-DE25sQIz.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-Bxcv0yjW.js";import{P as p}from"./Paragraph-CKYtcIcp.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const t=({maxCharacters:r,numOfCharacters:a})=>n.jsx(p,{accessibilityLabel:`U heeft ${a} van de maximaal ${r} tekens ingevoerd`,color:a>r?"warning":"default",children:`${a}/${r}`});try{t.displayName="CharactersLeftDisplay",t.__docgenInfo={description:"",displayName:"CharactersLeftDisplay",props:{maxCharacters:{defaultValue:null,description:"",name:"maxCharacters",required:!0,type:{name:"number"}},numOfCharacters:{defaultValue:null,description:"",name:"numOfCharacters",required:!0,type:{name:"number"}}}}}catch{}const C={component:t},e={args:{maxCharacters:50,numOfCharacters:0}};var s,o,i;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-Bxcv0yjW.js";import{P as p}from"./Paragraph-DkRs_aGj.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const t=({maxCharacters:r,numOfCharacters:a})=>n.jsx(p,{accessibilityLabel:`U heeft ${a} van de maximaal ${r} tekens ingevoerd`,color:a>r?"warning":"default",children:`${a}/${r}`});try{t.displayName="CharactersLeftDisplay",t.__docgenInfo={description:"",displayName:"CharactersLeftDisplay",props:{maxCharacters:{defaultValue:null,description:"",name:"maxCharacters",required:!0,type:{name:"number"}},numOfCharacters:{defaultValue:null,description:"",name:"numOfCharacters",required:!0,type:{name:"number"}}}}}catch{}const C={component:t},e={args:{maxCharacters:50,numOfCharacters:0}};var s,o,i;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { maxCharacters: 50, numOfCharacters: 0 diff --git a/assets/Checkbox.stories-B02dkd_S.js b/assets/Checkbox.stories-CuoUXCBY.js similarity index 98% rename from assets/Checkbox.stories-B02dkd_S.js rename to assets/Checkbox.stories-CuoUXCBY.js index 7ae813b9..906e0274 100644 --- a/assets/Checkbox.stories-B02dkd_S.js +++ b/assets/Checkbox.stories-CuoUXCBY.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{F as k}from"./FormField-Bd2DEH5y.js";import{I as y}from"./Icon-CO3hZ5HW.js";import{u as C,P as x,a as V}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import{u as n}from"./useThemable-CjWxbHxI.js";import{M as P}from"./index-ZuFZ7TrF.js";import{V as w}from"./index-BDsvWohO.js";import{s as _}from"./index-CEE--Juu.js";import{T as q}from"./index-BypDj3rK.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./HideFromAccessibility-DFWSEXqq.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./layoutStyles-DflBxpuh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DcZXOGQR.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./development-DYCnWZjk.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";const l=({accessibilityLabel:e,label:d,labelPosition:m="end",logAction:p=V.toggle,logDimensions:g={},onValueChange:v,testID:r,value:o,...h})=>{const i=n(T),b=n(D),f=C({...h,logAction:p,logDimensions:{...g,[x.newState]:o?"unchecked":"checked"},onEvent:v,testID:r});return a.jsx(P,{accessibilityLabel:e,accessibilityLanguage:"nl-NL",accessibilityRole:"checkbox",accessibilityState:{selected:o},onPress:f,testID:r,...b,children:a.jsx(k,{label:d,labelPosition:m,children:a.jsx(w,{style:[i.checkbox,o&&i.checked],children:!!o&&a.jsx(y,{color:"inverse",name:"check-mark",testID:`${r}Icon`})})})})},T=({color:e})=>_.create({checkbox:{width:24,aspectRatio:1,padding:2,borderWidth:2,borderColor:e.control.checked.background,backgroundColor:e.control.default.background},checked:{backgroundColor:e.control.checked.background}}),D=({color:e})=>({underlayColor:e.checkbox.underlay});try{l.displayName="Checkbox",l.__docgenInfo={description:"",displayName:"Checkbox",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"ReactNode"}},labelPosition:{defaultValue:{value:"end"},description:"",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:'"end"'},{value:'"start"'}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!0,type:{name:"() => void"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:{value:"PiwikAction.toggle"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const ce={component:l,argTypes:{onValueChange:{action:"onValueChange"}}},t={args:{label:a.jsx(q,{children:"Ik ga akkoord met de voorwaarden"}),labelPosition:"end",value:!1}};var s,u,c;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{F as k}from"./FormField-Bd2DEH5y.js";import{I as y}from"./Icon-DcC-yiY8.js";import{u as C,P as x,a as V}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import{u as n}from"./useThemable-CjWxbHxI.js";import{M as P}from"./index-ZuFZ7TrF.js";import{V as w}from"./index-BDsvWohO.js";import{s as _}from"./index-CEE--Juu.js";import{T as q}from"./index-BypDj3rK.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./HideFromAccessibility-DFWSEXqq.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./layoutStyles-DflBxpuh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DcZXOGQR.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./development-DYCnWZjk.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";const l=({accessibilityLabel:e,label:d,labelPosition:m="end",logAction:p=V.toggle,logDimensions:g={},onValueChange:v,testID:r,value:o,...h})=>{const i=n(T),b=n(D),f=C({...h,logAction:p,logDimensions:{...g,[x.newState]:o?"unchecked":"checked"},onEvent:v,testID:r});return a.jsx(P,{accessibilityLabel:e,accessibilityLanguage:"nl-NL",accessibilityRole:"checkbox",accessibilityState:{selected:o},onPress:f,testID:r,...b,children:a.jsx(k,{label:d,labelPosition:m,children:a.jsx(w,{style:[i.checkbox,o&&i.checked],children:!!o&&a.jsx(y,{color:"inverse",name:"check-mark",testID:`${r}Icon`})})})})},T=({color:e})=>_.create({checkbox:{width:24,aspectRatio:1,padding:2,borderWidth:2,borderColor:e.control.checked.background,backgroundColor:e.control.default.background},checked:{backgroundColor:e.control.checked.background}}),D=({color:e})=>({underlayColor:e.checkbox.underlay});try{l.displayName="Checkbox",l.__docgenInfo={description:"",displayName:"Checkbox",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"ReactNode"}},labelPosition:{defaultValue:{value:"end"},description:"",name:"labelPosition",required:!1,type:{name:"enum",value:[{value:'"end"'},{value:'"start"'}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!0,type:{name:"() => void"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:{value:"PiwikAction.toggle"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const ce={component:l,argTypes:{onValueChange:{action:"onValueChange"}}},t={args:{label:a.jsx(q,{children:"Ik ga akkoord met de voorwaarden"}),labelPosition:"end",value:!1}};var s,u,c;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { label: Ik ga akkoord met de voorwaarden, labelPosition: 'end', diff --git a/assets/CityPassCard.stories-BxMUmU73.js b/assets/CityPassCard.stories-TqChsdR9.js similarity index 97% rename from assets/CityPassCard.stories-BxMUmU73.js rename to assets/CityPassCard.stories-TqChsdR9.js index fc545337..cd25362e 100644 --- a/assets/CityPassCard.stories-BxMUmU73.js +++ b/assets/CityPassCard.stories-TqChsdR9.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as I}from"./Pressable-HfRmqOUq.js";import{B as L}from"./Box-uk0d72u3.js";import{C as S}from"./Column-DVJ0Grcf.js";import{R as y}from"./Row-BXpfxHoR.js";import{I as x}from"./Icon-CO3hZ5HW.js";import{P as A}from"./Paragraph-CKYtcIcp.js";import{T as b}from"./Title-2Den3Qhs.js";import{u as k}from"./useThemable-CjWxbHxI.js";import{a as D}from"./accessibleText-gmNPjmn1.js";import{s as $}from"./index-CEE--Juu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./layoutStyles-DflBxpuh.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";var P={exports:{}},t=P.exports={},n,i;function f(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=f}catch{n=f}try{typeof clearTimeout=="function"?i=clearTimeout:i=v}catch{i=v}})();function V(e){if(n===setTimeout)return setTimeout(e,0);if((n===f||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch{try{return n.call(null,e,0)}catch{return n.call(this,e,0)}}}function z(e){if(i===clearTimeout)return clearTimeout(e);if((i===v||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch{try{return i.call(null,e)}catch{return i.call(this,e)}}}var o=[],m=!1,u,p=-1;function F(){!m||!u||(m=!1,u.length?o=u.concat(o):p=-1,o.length&&N())}function N(){if(!m){var e=V(F);m=!0;for(var r=o.length;r;){for(u=o,o=[];++p1)for(var s=1;s{const R=k(O),h=`Totaal saldo ${s}`;return a.jsx(I,{accessibilityLabel:D(H.title,h),accessibilityLanguage:"nl-NL",accessibilityRole:E,onPress:e,testID:c,..._,insetHorizontal:"md",insetVertical:"sm",style:R.card,children:a.jsxs(y,{gutter:"md",children:[a.jsx(L,{insetTop:"sm",children:a.jsx(x,{color:"link",name:"city-pass",size:"xl",testID:`${c}Icon`})}),a.jsxs(S,{align:"center",grow:1,gutter:"xs",shrink:1,children:[a.jsx(b,{color:"link",level:"h3",testID:`${c}Title`,text:"Stadspas details"}),a.jsx(b,{color:"link",level:"h3",testID:`${c}Name`,text:q}),!!r.length&&a.jsx(A,{testID:`${c}Text`,variant:"small",children:h})]}),a.jsx(y,{valign:"center",children:a.jsx(x,{color:"link",name:"chevron-right",size:"lg",testID:`${c}Icon`})})]})})},O=({color:e,border:r})=>$.create({card:{borderColor:e.cityPass.card.border,borderWidth:r.width.sm,borderStyle:"solid"}});try{g.displayName="CityPassCard",g.__docgenInfo={description:"",displayName:"CityPassCard",props:{cityPass:{defaultValue:null,description:"",name:"cityPass",required:!0,type:{name:"CityPass"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const qe={component:g,argTypes:{onPress:{action:"onPress"}}},d={args:{cityPass:{id:"1",dateEnd:"2022-12-31T00:00:00.000Z",dateEndFormatted:"2022-12-31",budgets:[],balanceFormatted:"€20,00",owner:{firstname:"Ryan",initials:"R.",lastname:"Huisman"},passNumber:6064366011012605,passNumberComplete:"6064366011012605999",securityCode:null}}};var T,w,C;d.parameters={...d.parameters,docs:{...(T=d.parameters)==null?void 0:T.docs,source:{originalSource:`{ +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as I}from"./Pressable-HfRmqOUq.js";import{B as L}from"./Box-uk0d72u3.js";import{C as S}from"./Column-DVJ0Grcf.js";import{R as y}from"./Row-BXpfxHoR.js";import{I as x}from"./Icon-DcC-yiY8.js";import{P as A}from"./Paragraph-DkRs_aGj.js";import{T as b}from"./Title-9ScEYPym.js";import{u as k}from"./useThemable-CjWxbHxI.js";import{a as D}from"./accessibleText-gmNPjmn1.js";import{s as $}from"./index-CEE--Juu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./layoutStyles-DflBxpuh.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";var P={exports:{}},t=P.exports={},n,i;function f(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=f}catch{n=f}try{typeof clearTimeout=="function"?i=clearTimeout:i=v}catch{i=v}})();function V(e){if(n===setTimeout)return setTimeout(e,0);if((n===f||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch{try{return n.call(null,e,0)}catch{return n.call(this,e,0)}}}function z(e){if(i===clearTimeout)return clearTimeout(e);if((i===v||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch{try{return i.call(null,e)}catch{return i.call(this,e)}}}var o=[],m=!1,u,p=-1;function F(){!m||!u||(m=!1,u.length?o=u.concat(o):p=-1,o.length&&N())}function N(){if(!m){var e=V(F);m=!0;for(var r=o.length;r;){for(u=o,o=[];++p1)for(var s=1;s{const R=k(O),h=`Totaal saldo ${s}`;return a.jsx(I,{accessibilityLabel:D(H.title,h),accessibilityLanguage:"nl-NL",accessibilityRole:E,onPress:e,testID:c,..._,insetHorizontal:"md",insetVertical:"sm",style:R.card,children:a.jsxs(y,{gutter:"md",children:[a.jsx(L,{insetTop:"sm",children:a.jsx(x,{color:"link",name:"city-pass",size:"xl",testID:`${c}Icon`})}),a.jsxs(S,{align:"center",grow:1,gutter:"xs",shrink:1,children:[a.jsx(b,{color:"link",level:"h3",testID:`${c}Title`,text:"Stadspas details"}),a.jsx(b,{color:"link",level:"h3",testID:`${c}Name`,text:q}),!!r.length&&a.jsx(A,{testID:`${c}Text`,variant:"small",children:h})]}),a.jsx(y,{valign:"center",children:a.jsx(x,{color:"link",name:"chevron-right",size:"lg",testID:`${c}Icon`})})]})})},O=({color:e,border:r})=>$.create({card:{borderColor:e.cityPass.card.border,borderWidth:r.width.sm,borderStyle:"solid"}});try{g.displayName="CityPassCard",g.__docgenInfo={description:"",displayName:"CityPassCard",props:{cityPass:{defaultValue:null,description:"",name:"cityPass",required:!0,type:{name:"CityPass"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const qe={component:g,argTypes:{onPress:{action:"onPress"}}},d={args:{cityPass:{id:"1",dateEnd:"2022-12-31T00:00:00.000Z",dateEndFormatted:"2022-12-31",budgets:[],balanceFormatted:"€20,00",owner:{firstname:"Ryan",initials:"R.",lastname:"Huisman"},passNumber:6064366011012605,passNumberComplete:"6064366011012605999",securityCode:null}}};var T,w,C;d.parameters={...d.parameters,docs:{...(T=d.parameters)==null?void 0:T.docs,source:{originalSource:`{ args: { cityPass: { id: '1', diff --git a/assets/Color-ERTF36HU-BPVYNBhi.js b/assets/Color-ERTF36HU-BQopY_3-.js similarity index 99% rename from assets/Color-ERTF36HU-BPVYNBhi.js rename to assets/Color-ERTF36HU-BQopY_3-.js index 6f8b6887..5fb73f73 100644 --- a/assets/Color-ERTF36HU-BPVYNBhi.js +++ b/assets/Color-ERTF36HU-BQopY_3-.js @@ -1 +1 @@ -import{ae as Me,af as ie,ag as Ce,ah as $,a2 as ue,a0 as $e,x as Ie,ai as Oe,aj as Ne}from"./DocsRenderer-CFRXHY34-DiIHUooj.js";import{R as h,r as m}from"./index-mfbfsM12.js";import{g as fe}from"./_commonjsHelpers-BosuxZz1.js";import"./iframe-kIyOmV27.js";import"../sb-preview/runtime.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-BMk6Tmu2.js";import"./extends-CF3RwP-h.js";import"./index-DF3CPj03.js";import"./index-DrFu-skq.js";import"./react-18-CiRR_loB.js";import"./client-DDXjyz62.js";var Se={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Se,he={};for(const e of Object.keys(F))he[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var de=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,c;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=s/(a+o):c=s/(2-a-o),[l,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,c=e[2]/255,i=Math.max(s,l,c),d=i-Math.min(s,l,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(l),r=f(c),s===i?o=r-n:l===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Re(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=he[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Re(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,c[i]=s*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,s];case 1:return[l,r,s];case 2:return[s,r,c];case 3:return[s,l,r];case 4:return[c,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const c=n+a*(l-n);let i,d,f;switch(s){default:case 6:case 0:i=l,d=c,f=n;break;case 1:i=c,d=l,f=n;break;case 2:i=n,d=l,f=c;break;case 3:i=n,d=c,f=l;break;case 4:i=c,d=n,f=l;break;case 5:i=l,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,c=o**3,i=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,c;return s<1?l=a/(1-s):l=0,s<=0?c=0:o===t?c=(n-r)/s%6:o===n?c=2+(r-t)/s:c=4+(t-n)/s,c/=6,c%=1,[c*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=de;function je(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Be(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:K[e].channels}),Object.defineProperty(N[e],"labels",{value:K[e].labels});const t=Pe(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=Be(o),N[e][r].raw=qe(o)})});var Xe=N;const _=fe(Xe);var De=Me,We=function(){return De.Date.now()},Ke=We,Ve=/\s/;function Ae(e){for(var t=e.length;t--&&Ve.test(e.charAt(t)););return t}var Ge=Ae,Ue=Ge,Ye=/^\s+/;function Je(e){return e&&e.slice(0,Ue(e)+1).replace(Ye,"")}var Qe=Je,Ze=Qe,te=ie,et=Ce,ne=NaN,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^0o[0-7]+$/i,ot=parseInt;function at(e){if(typeof e=="number")return e;if(et(e))return ne;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ze(e);var n=nt.test(e);return n||rt.test(e)?ot(e.slice(2),n?2:8):tt.test(e)?ne:+e}var st=at,lt=ie,W=Ke,re=st,ct="Expected a function",it=Math.max,ut=Math.min;function ft(e,t,n){var r,o,a,s,l,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(ct);t=re(t)||0,lt(n)&&(d=!!n.leading,f="maxWait"in n,a=f?it(re(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,i=v,s=e.apply(z,C),s}function j(v){return i=v,l=setTimeout(b,t),d?x(v):s}function M(v){var C=v-c,z=v-i,ee=t-C;return f?ut(ee,a-z):ee}function p(v){var C=v-c,z=v-i;return c===void 0||C>=t||C<0||f&&z>=a}function b(){var v=W();if(p(v))return w(v);l=setTimeout(b,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),i=0,r=c=o=l=void 0}function k(){return l===void 0?s:w(W())}function I(){var v=W(),C=p(v);if(r=arguments,o=this,c=v,C){if(l===void 0)return j(c);if(f)return clearTimeout(l),l=setTimeout(b,t),x(c)}return l===void 0&&(l=setTimeout(b,t)),s}return I.cancel=E,I.flush=k,I}var ht=ft;const dt=fe(ht);function O(){return(O=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function V(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(oe(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=c.current,w=A(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(ae(b),!function(k,I){return I&&!H(k)}(b,c.current)&&w)){if(H(b)){c.current=!0;var E=b.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(oe(w,b,l.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),s({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",O({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=T(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},gt={grad:.9,turn:360,rad:360/(2*Math.PI)},mt=function(e){return be(G(e))},G=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},bt=function(e,t){return t===void 0&&(t="deg"),Number(e)*(gt[t]||1)},vt=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?pt({h:bt(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},pt=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},yt=function(e){return wt(me(e))},ge=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},U=function(e){var t=ge(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=ge(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},me=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:y(255*[r,l,s,s,c,r][i]),g:y(255*[c,r,r,l,s,s][i]),b:y(255*[s,s,c,r,r,l][i]),a:y(o,2)}},xt=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?be({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},wt=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},be=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},ve=h.memo(function(e){var t=e.hue,n=e.onChange,r=T(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:U({h:t,s:100,v:100,a:1})})))}),pe=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:U({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:U(t)})))}),ye=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},xe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},kt=function(e,t){return e.toLowerCase()===t.toLowerCase()||ye(G(e),G(t))};function we(e,t,n){var r=V(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),m.useEffect(function(){var i;ye(a,l.current.hsva)||e.equal(i=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var _t=typeof window<"u"?m.useLayoutEffect:m.useEffect,Et=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},se=new Map,ke=function(e){_t(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!se.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,se.set(t,n);var r=Et();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Mt=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Ct={defaultColor:"000",toHsva:mt,fromHsva:function(e){return yt({h:e.h,s:e.s,v:e.v,a:1})},equal:kt},$t=function(e){return h.createElement(Mt,O({},e,{colorModel:Ct}))},It=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=T(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},_e=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d}),h.createElement(It,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ot={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:vt,fromHsva:B,equal:xe},Nt=function(e){return h.createElement(_e,O({},e,{colorModel:Ot}))},St={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xt,fromHsva:function(e){var t=me(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:xe},Rt=function(e){return h.createElement(_e,O({},e,{colorModel:St}))},jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ht=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ft=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return h.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=$(Ie.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Oe)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Xt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Dt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:$t,rgb:Rt,hsl:Nt},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.rgb.hsl([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([s,l,c]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.hsl.rgb([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([s,l,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[s,l]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=m.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=m.useCallback(l=>{l!=null&&l.valid&&(a.some(c=>D(c[n])===D(l[n]))||o(c=>c.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let c=m.useCallback(dt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,c),{presets:M,addPreset:p}=Ut(a,g,x),b=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return h.createElement(jt,{"aria-readonly":w},h.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Ht,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,I)=>h.createElement(ue,{key:`${k.value}-${I}`,hasChrome:!1,tooltip:h.createElement(Ft,{note:k.keyword||k.value})},h.createElement(le,{value:k[x],active:g&&D(k[x])===D(g[x]),onClick:()=>f(k.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ne(e),value:i,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:j}):null)},fn=Yt;export{Yt as ColorControl,fn as default}; +import{ae as Me,af as ie,ag as Ce,ah as $,a2 as ue,a0 as $e,x as Ie,ai as Oe,aj as Ne}from"./DocsRenderer-CFRXHY34-DQRRfxKV.js";import{R as h,r as m}from"./index-mfbfsM12.js";import{g as fe}from"./_commonjsHelpers-BosuxZz1.js";import"./iframe-DRbcjd5I.js";import"../sb-preview/runtime.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-BMk6Tmu2.js";import"./extends-CF3RwP-h.js";import"./index-DF3CPj03.js";import"./index-DrFu-skq.js";import"./react-18-CiRR_loB.js";import"./client-DDXjyz62.js";var Se={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Se,he={};for(const e of Object.keys(F))he[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var de=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,c;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=s/(a+o):c=s/(2-a-o),[l,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,c=e[2]/255,i=Math.max(s,l,c),d=i-Math.min(s,l,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(l),r=f(c),s===i?o=r-n:l===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Re(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=he[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Re(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,c[i]=s*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,s];case 1:return[l,r,s];case 2:return[s,r,c];case 3:return[s,l,r];case 4:return[c,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const c=n+a*(l-n);let i,d,f;switch(s){default:case 6:case 0:i=l,d=c,f=n;break;case 1:i=c,d=l,f=n;break;case 2:i=n,d=l,f=c;break;case 3:i=n,d=c,f=l;break;case 4:i=c,d=n,f=l;break;case 5:i=l,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,c=o**3,i=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,c;return s<1?l=a/(1-s):l=0,s<=0?c=0:o===t?c=(n-r)/s%6:o===n?c=2+(r-t)/s:c=4+(t-n)/s,c/=6,c%=1,[c*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=de;function je(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Be(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:K[e].channels}),Object.defineProperty(N[e],"labels",{value:K[e].labels});const t=Pe(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=Be(o),N[e][r].raw=qe(o)})});var Xe=N;const _=fe(Xe);var De=Me,We=function(){return De.Date.now()},Ke=We,Ve=/\s/;function Ae(e){for(var t=e.length;t--&&Ve.test(e.charAt(t)););return t}var Ge=Ae,Ue=Ge,Ye=/^\s+/;function Je(e){return e&&e.slice(0,Ue(e)+1).replace(Ye,"")}var Qe=Je,Ze=Qe,te=ie,et=Ce,ne=NaN,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^0o[0-7]+$/i,ot=parseInt;function at(e){if(typeof e=="number")return e;if(et(e))return ne;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ze(e);var n=nt.test(e);return n||rt.test(e)?ot(e.slice(2),n?2:8):tt.test(e)?ne:+e}var st=at,lt=ie,W=Ke,re=st,ct="Expected a function",it=Math.max,ut=Math.min;function ft(e,t,n){var r,o,a,s,l,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(ct);t=re(t)||0,lt(n)&&(d=!!n.leading,f="maxWait"in n,a=f?it(re(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,i=v,s=e.apply(z,C),s}function j(v){return i=v,l=setTimeout(b,t),d?x(v):s}function M(v){var C=v-c,z=v-i,ee=t-C;return f?ut(ee,a-z):ee}function p(v){var C=v-c,z=v-i;return c===void 0||C>=t||C<0||f&&z>=a}function b(){var v=W();if(p(v))return w(v);l=setTimeout(b,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),i=0,r=c=o=l=void 0}function k(){return l===void 0?s:w(W())}function I(){var v=W(),C=p(v);if(r=arguments,o=this,c=v,C){if(l===void 0)return j(c);if(f)return clearTimeout(l),l=setTimeout(b,t),x(c)}return l===void 0&&(l=setTimeout(b,t)),s}return I.cancel=E,I.flush=k,I}var ht=ft;const dt=fe(ht);function O(){return(O=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function V(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(oe(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=c.current,w=A(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(ae(b),!function(k,I){return I&&!H(k)}(b,c.current)&&w)){if(H(b)){c.current=!0;var E=b.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(oe(w,b,l.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),s({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",O({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=T(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},gt={grad:.9,turn:360,rad:360/(2*Math.PI)},mt=function(e){return be(G(e))},G=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},bt=function(e,t){return t===void 0&&(t="deg"),Number(e)*(gt[t]||1)},vt=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?pt({h:bt(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},pt=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},yt=function(e){return wt(me(e))},ge=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},U=function(e){var t=ge(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=ge(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},me=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:y(255*[r,l,s,s,c,r][i]),g:y(255*[c,r,r,l,s,s][i]),b:y(255*[s,s,c,r,r,l][i]),a:y(o,2)}},xt=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?be({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},wt=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},be=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},ve=h.memo(function(e){var t=e.hue,n=e.onChange,r=T(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:U({h:t,s:100,v:100,a:1})})))}),pe=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:U({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:U(t)})))}),ye=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},xe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},kt=function(e,t){return e.toLowerCase()===t.toLowerCase()||ye(G(e),G(t))};function we(e,t,n){var r=V(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),m.useEffect(function(){var i;ye(a,l.current.hsva)||e.equal(i=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var _t=typeof window<"u"?m.useLayoutEffect:m.useEffect,Et=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},se=new Map,ke=function(e){_t(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!se.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,se.set(t,n);var r=Et();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Mt=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Ct={defaultColor:"000",toHsva:mt,fromHsva:function(e){return yt({h:e.h,s:e.s,v:e.v,a:1})},equal:kt},$t=function(e){return h.createElement(Mt,O({},e,{colorModel:Ct}))},It=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=T(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},_e=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);ke(l);var c=we(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",O({},s,{ref:l,className:f}),h.createElement(pe,{hsva:i,onChange:d}),h.createElement(ve,{hue:i.h,onChange:d}),h.createElement(It,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ot={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:vt,fromHsva:B,equal:xe},Nt=function(e){return h.createElement(_e,O({},e,{colorModel:Ot}))},St={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xt,fromHsva:function(e){var t=me(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:xe},Rt=function(e){return h.createElement(_e,O({},e,{colorModel:St}))},jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ht=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ft=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return h.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=$(Ie.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$(Oe)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Xt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Dt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:$t,rgb:Rt,hsl:Nt},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.rgb.hsl([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([s,l,c]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.hsl.rgb([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([s,l,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[s,l]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=m.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=m.useCallback(l=>{l!=null&&l.valid&&(a.some(c=>D(c[n])===D(l[n]))||o(c=>c.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let c=m.useCallback(dt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,c),{presets:M,addPreset:p}=Ut(a,g,x),b=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return h.createElement(jt,{"aria-readonly":w},h.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Ht,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,I)=>h.createElement(ue,{key:`${k.value}-${I}`,hasChrome:!1,tooltip:h.createElement(Ft,{note:k.keyword||k.value})},h.createElement(le,{value:k[x],active:g&&D(k[x])===D(g[x]),onClick:()=>f(k.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ne(e),value:i,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:j}):null)},fn=Yt;export{Yt as ColorControl,fn as default}; diff --git a/assets/DocsRenderer-CFRXHY34-DiIHUooj.js b/assets/DocsRenderer-CFRXHY34-DQRRfxKV.js similarity index 99% rename from assets/DocsRenderer-CFRXHY34-DiIHUooj.js rename to assets/DocsRenderer-CFRXHY34-DQRRfxKV.js index 265ee773..4f693d89 100644 --- a/assets/DocsRenderer-CFRXHY34-DiIHUooj.js +++ b/assets/DocsRenderer-CFRXHY34-DQRRfxKV.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CLsvOwO0.js","./iframe-kIyOmV27.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./jsx-runtime-Bxcv0yjW.js","./index-BMk6Tmu2.js","./extends-CF3RwP-h.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./react-18-CiRR_loB.js","./client-DDXjyz62.js","./Color-ERTF36HU-BPVYNBhi.js","./index-EeWIkZEf.js"])))=>i.map(i=>d[i]); -var dS=Object.defineProperty;var pS=(e,t,r)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Vn=(e,t,r)=>pS(e,typeof t!="symbol"?t+"":t,r);import{_ as Lp}from"./iframe-kIyOmV27.js";import{r as l,R as y}from"./index-mfbfsM12.js";import{c as Be}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{j as X}from"./jsx-runtime-Bxcv0yjW.js";import{r as Hs,f as j3}from"./index-BMk6Tmu2.js";import{_ as nt}from"./extends-CF3RwP-h.js";import{c as Ui,g as js}from"./_commonjsHelpers-BosuxZz1.js";import{y as Dm,D as tc}from"./index-DF3CPj03.js";import{d as fS}from"./index-DrFu-skq.js";import{renderElement as hS,unmountElement as mS}from"./react-18-CiRR_loB.js";var gS=Object.create,V3=Object.defineProperty,vS=Object.getOwnPropertyDescriptor,U3=Object.getOwnPropertyNames,yS=Object.getPrototypeOf,bS=Object.prototype.hasOwnProperty,La=(e,t)=>function(){return t||(0,e[U3(e)[0]])((t={exports:{}}).exports,t),t.exports},wS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of U3(t))!bS.call(e,a)&&a!==r&&V3(e,a,{get:()=>t[a],enumerable:!(n=vS(t,a))||n.enumerable});return e},ES=(e,t,r)=>(r=e!=null?gS(yS(e)):{},wS(!e||!e.__esModule?V3(r,"default",{value:e,enumerable:!0}):r,e)),Dt=e=>`control-${e.replace(/\s+/g,"-")}`,Vs=e=>`set-${e.replace(/\s+/g,"-")}`,xS=Object.create,Mp=Object.defineProperty,CS=Object.getOwnPropertyDescriptor,DS=Object.getOwnPropertyNames,SS=Object.getPrototypeOf,AS=Object.prototype.hasOwnProperty,I=(e,t)=>Mp(e,"name",{value:t,configurable:!0}),qi=(e=>typeof Be<"u"?Be:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Be<"u"?Be:t)[r]}):e)(function(e){if(typeof Be<"u")return Be.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Us=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of DS(t))!AS.call(e,a)&&a!==r&&Mp(e,a,{get:()=>t[a],enumerable:!(n=CS(t,a))||n.enumerable});return e},Pp=(e,t,r)=>(r=e!=null?xS(SS(e)):{},kS(t||!e||!e.__esModule?Mp(r,"default",{value:e,enumerable:!0}):r,e)),_S=Us(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===a||P===f||P===i||P===o||P===p||P===m||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===g||P.$$typeof===s||P.$$typeof===u||P.$$typeof===h||P.$$typeof===x||P.$$typeof===E||P.$$typeof===C||P.$$typeof===b)}I(w,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var ut=P.$$typeof;switch(ut){case r:var _t=P.type;switch(_t){case d:case f:case a:case i:case o:case p:return _t;default:var Kr=_t&&_t.$$typeof;switch(Kr){case u:case h:case v:case g:case s:return Kr;default:return ut}}case n:return ut}}}I(D,"typeOf");var S=d,A=f,k=u,F=s,T=r,R=h,O=a,z=v,L=g,$=n,M=i,j=o,K=p,N=!1;function W(P){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(P)||D(P)===d}I(W,"isAsyncMode");function te(P){return D(P)===f}I(te,"isConcurrentMode");function ue(P){return D(P)===u}I(ue,"isContextConsumer");function re(P){return D(P)===s}I(re,"isContextProvider");function ae(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}I(ae,"isElement");function H(P){return D(P)===h}I(H,"isForwardRef");function J(P){return D(P)===a}I(J,"isFragment");function Z(P){return D(P)===v}I(Z,"isLazy");function ge(P){return D(P)===g}I(ge,"isMemo");function ke(P){return D(P)===n}I(ke,"isPortal");function kt(P){return D(P)===i}I(kt,"isProfiler");function qe(P){return D(P)===o}I(qe,"isStrictMode");function st(P){return D(P)===p}I(st,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=T,e.ForwardRef=R,e.Fragment=O,e.Lazy=z,e.Memo=L,e.Portal=$,e.Profiler=M,e.StrictMode=j,e.Suspense=K,e.isAsyncMode=W,e.isConcurrentMode=te,e.isContextConsumer=ue,e.isContextProvider=re,e.isElement=ae,e.isForwardRef=H,e.isFragment=J,e.isLazy=Z,e.isMemo=ge,e.isPortal=ke,e.isProfiler=kt,e.isStrictMode=qe,e.isSuspense=st,e.isValidElementType=w,e.typeOf=D})()}),FS=Us((e,t)=>{t.exports=_S()}),q3=Us((e,t)=>{var r=FS(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function u(b){return r.isMemo(b)?i:s[b.$$typeof]||n}I(u,"getStatics");var d=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;function v(b,x,E){if(typeof x!="string"){if(g){var C=m(x);C&&C!==g&&v(b,C,E)}var w=f(x);h&&(w=w.concat(h(x)));for(var D=u(b),S=u(x),A=0;A{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return I(function r(n,a,o){function i(d,f){if(!a[d]){if(!n[d]){var h=typeof qi=="function"&&qi;if(!f&&h)return h(d,!0);if(s)return s(d,!0);var p=new Error("Cannot find module '"+d+"'");throw p.code="MODULE_NOT_FOUND",p}var m=a[d]={exports:{}};n[d][0].call(m.exports,function(g){var v=n[d][1][g];return i(v||g)},m,m.exports,r,n,a,o)}return a[d].exports}I(i,"s");for(var s=typeof qi=="function"&&qi,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(E[x]={cacheItem:g,arg:arguments[x]},C?i(h,E):h.push(E),h.length>d&&s(h.shift())),m.wasMemoized=C,m.numArgs=x+1,b},"memoizerific");return m.limit=d,m.wasMemoized=!1,m.cache=f,m.lru=h,m}};function i(d,f){var h=d.length,p=f.length,m,g,v;for(g=0;g=0&&(h=d[m],p=h.cacheItem.get(h.arg),!p||!p.size);m--)h.cacheItem.delete(h.arg)}I(s,"removeCachedResult");function u(d,f){return d===f||d!==d&&f!==f}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +var dS=Object.defineProperty;var pS=(e,t,r)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Vn=(e,t,r)=>pS(e,typeof t!="symbol"?t+"":t,r);import{_ as Lp}from"./iframe-DRbcjd5I.js";import{r as l,R as y}from"./index-mfbfsM12.js";import{c as Be}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{j as X}from"./jsx-runtime-Bxcv0yjW.js";import{r as Hs,f as j3}from"./index-BMk6Tmu2.js";import{_ as nt}from"./extends-CF3RwP-h.js";import{c as Ui,g as js}from"./_commonjsHelpers-BosuxZz1.js";import{y as Dm,D as tc}from"./index-DF3CPj03.js";import{d as fS}from"./index-DrFu-skq.js";import{renderElement as hS,unmountElement as mS}from"./react-18-CiRR_loB.js";var gS=Object.create,V3=Object.defineProperty,vS=Object.getOwnPropertyDescriptor,U3=Object.getOwnPropertyNames,yS=Object.getPrototypeOf,bS=Object.prototype.hasOwnProperty,La=(e,t)=>function(){return t||(0,e[U3(e)[0]])((t={exports:{}}).exports,t),t.exports},wS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of U3(t))!bS.call(e,a)&&a!==r&&V3(e,a,{get:()=>t[a],enumerable:!(n=vS(t,a))||n.enumerable});return e},ES=(e,t,r)=>(r=e!=null?gS(yS(e)):{},wS(!e||!e.__esModule?V3(r,"default",{value:e,enumerable:!0}):r,e)),Dt=e=>`control-${e.replace(/\s+/g,"-")}`,Vs=e=>`set-${e.replace(/\s+/g,"-")}`,xS=Object.create,Mp=Object.defineProperty,CS=Object.getOwnPropertyDescriptor,DS=Object.getOwnPropertyNames,SS=Object.getPrototypeOf,AS=Object.prototype.hasOwnProperty,I=(e,t)=>Mp(e,"name",{value:t,configurable:!0}),qi=(e=>typeof Be<"u"?Be:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Be<"u"?Be:t)[r]}):e)(function(e){if(typeof Be<"u")return Be.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Us=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of DS(t))!AS.call(e,a)&&a!==r&&Mp(e,a,{get:()=>t[a],enumerable:!(n=CS(t,a))||n.enumerable});return e},Pp=(e,t,r)=>(r=e!=null?xS(SS(e)):{},kS(t||!e||!e.__esModule?Mp(r,"default",{value:e,enumerable:!0}):r,e)),_S=Us(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===a||P===f||P===i||P===o||P===p||P===m||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===g||P.$$typeof===s||P.$$typeof===u||P.$$typeof===h||P.$$typeof===x||P.$$typeof===E||P.$$typeof===C||P.$$typeof===b)}I(w,"isValidElementType");function D(P){if(typeof P=="object"&&P!==null){var ut=P.$$typeof;switch(ut){case r:var _t=P.type;switch(_t){case d:case f:case a:case i:case o:case p:return _t;default:var Kr=_t&&_t.$$typeof;switch(Kr){case u:case h:case v:case g:case s:return Kr;default:return ut}}case n:return ut}}}I(D,"typeOf");var S=d,A=f,k=u,F=s,T=r,R=h,O=a,z=v,L=g,$=n,M=i,j=o,K=p,N=!1;function W(P){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(P)||D(P)===d}I(W,"isAsyncMode");function te(P){return D(P)===f}I(te,"isConcurrentMode");function ue(P){return D(P)===u}I(ue,"isContextConsumer");function re(P){return D(P)===s}I(re,"isContextProvider");function ae(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}I(ae,"isElement");function H(P){return D(P)===h}I(H,"isForwardRef");function J(P){return D(P)===a}I(J,"isFragment");function Z(P){return D(P)===v}I(Z,"isLazy");function ge(P){return D(P)===g}I(ge,"isMemo");function ke(P){return D(P)===n}I(ke,"isPortal");function kt(P){return D(P)===i}I(kt,"isProfiler");function qe(P){return D(P)===o}I(qe,"isStrictMode");function st(P){return D(P)===p}I(st,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=A,e.ContextConsumer=k,e.ContextProvider=F,e.Element=T,e.ForwardRef=R,e.Fragment=O,e.Lazy=z,e.Memo=L,e.Portal=$,e.Profiler=M,e.StrictMode=j,e.Suspense=K,e.isAsyncMode=W,e.isConcurrentMode=te,e.isContextConsumer=ue,e.isContextProvider=re,e.isElement=ae,e.isForwardRef=H,e.isFragment=J,e.isLazy=Z,e.isMemo=ge,e.isPortal=ke,e.isProfiler=kt,e.isStrictMode=qe,e.isSuspense=st,e.isValidElementType=w,e.typeOf=D})()}),FS=Us((e,t)=>{t.exports=_S()}),q3=Us((e,t)=>{var r=FS(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function u(b){return r.isMemo(b)?i:s[b.$$typeof]||n}I(u,"getStatics");var d=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;function v(b,x,E){if(typeof x!="string"){if(g){var C=m(x);C&&C!==g&&v(b,C,E)}var w=f(x);h&&(w=w.concat(h(x)));for(var D=u(b),S=u(x),A=0;A{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return I(function r(n,a,o){function i(d,f){if(!a[d]){if(!n[d]){var h=typeof qi=="function"&&qi;if(!f&&h)return h(d,!0);if(s)return s(d,!0);var p=new Error("Cannot find module '"+d+"'");throw p.code="MODULE_NOT_FOUND",p}var m=a[d]={exports:{}};n[d][0].call(m.exports,function(g){var v=n[d][1][g];return i(v||g)},m,m.exports,r,n,a,o)}return a[d].exports}I(i,"s");for(var s=typeof qi=="function"&&qi,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(E[x]={cacheItem:g,arg:arguments[x]},C?i(h,E):h.push(E),h.length>d&&s(h.shift())),m.wasMemoized=C,m.numArgs=x+1,b},"memoizerific");return m.limit=d,m.wasMemoized=!1,m.cache=f,m.lru=h,m}};function i(d,f){var h=d.length,p=f.length,m,g,v;for(g=0;g=0&&(h=d[m],p=h.cacheItem.get(h.arg),!p||!p.size);m--)h.cacheItem.delete(h.arg)}I(s,"removeCachedResult");function u(d,f){return d===f||d!==d&&f!==f}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Ce(Ma,--Ve):0,ya--,he===10&&(ya=1,Gs--),he}I(eb,"prev");function Ne(){return he=Ve2||ba(he)>3?"":" "}I(tb,"whitespace");function rb(e,t){for(;--t&&Ne()&&!(he<48||he>102||he>57&&he<65||he>70&&he<97););return Pa(e,Mo()+(t<6&&yt()==32&&Ne()==32))}I(rb,"escaping");function Yl(e){for(;Ne();)switch(he){case e:return Ve;case 34:case 39:e!==34&&e!==39&&Yl(he);break;case 40:e===41&&Yl(e);break;case 92:Ne();break}return Ve}I(Yl,"delimiter");function nb(e,t){for(;Ne()&&e+he!==57&&!(e+he===84&&yt()===47););return"/*"+Pa(t,Ve-1)+"*"+qs(e===47?e:Ne())}I(nb,"commenter");function ab(e){for(;!ba(yt());)Ne();return Pa(e,Ve)}I(ab,"identifier");function ob(e){return Gp(No("",null,null,null,[""],e=Wp(e),0,[0],e))}I(ob,"compile");function No(e,t,r,n,a,o,i,s,u){for(var d=0,f=0,h=i,p=0,m=0,g=0,v=1,b=1,x=1,E=0,C="",w=a,D=o,S=n,A=C;b;)switch(g=E,E=Ne()){case 40:if(g!=108&&Ce(A,h-1)==58){Kl(A+=Q(Po(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=Po(E);break;case 9:case 10:case 13:case 32:A+=tb(g);break;case 92:A+=rb(Mo()-1,7);continue;case 47:switch(yt()){case 42:case 47:So(ib(nb(Ne(),Mo()),t,r),u);break;default:A+="/"}break;case 123*v:s[d++]=ht(A)*x;case 125*v:case 59:case 0:switch(E){case 0:case 125:b=0;case 59+f:x==-1&&(A=Q(A,/\f/g,"")),m>0&&ht(A)-h&&So(m>32?Ld(A+";",n,r,h-1):Ld(Q(A," ","")+";",n,r,h-2),u);break;case 59:A+=";";default:if(So(S=Od(A,t,r,d,f,a,s,C,w=[],D=[],h),o),E===123)if(f===0)No(A,t,S,S,w,o,h,s,D);else switch(p===99&&Ce(A,3)===110?100:p){case 100:case 108:case 109:case 115:No(e,S,S,n&&So(Od(e,S,S,0,0,a,s,C,a,w=[],h),D),a,D,h,s,n?w:D);break;default:No(A,S,S,S,[""],D,0,s,D)}}d=f=m=0,v=x=1,C=A="",h=i;break;case 58:h=1+ht(A),m=g;default:if(v<1){if(E==123)--v;else if(E==125&&v++==0&&eb()==125)continue}switch(A+=qs(E),E*v){case 38:x=f>0?1:(A+="\f",-1);break;case 44:s[d++]=(ht(A)-1)*x,x=1;break;case 64:yt()===45&&(A+=Po(Ne())),p=yt(),f=h=ht(C=A+=ab(Mo())),E++;break;case 45:g===45&&ht(A)==2&&(v=0)}}return o}I(No,"parse");function Od(e,t,r,n,a,o,i,s,u,d,f){for(var h=a-1,p=a===0?o:[""],m=Ws(p),g=0,v=0,b=0;g0?p[x]+" "+E:Q(E,/&\f/g,p[x])))&&(u[b++]=C);return hi(e,t,r,a===0?Vp:s,u,d,f)}I(Od,"ruleset");function ib(e,t,r){return hi(e,t,r,jp,qs(Q3()),va(e,2,-2),0)}I(ib,"comment");function Ld(e,t,r,n){return hi(e,t,r,Up,va(e,0,n),va(e,n+1,-1),n)}I(Ld,"declaration");function gn(e,t){for(var r="",n=Ws(e),a=0;a-1},"isIgnoringComment"),US=I(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,s=i.length-1;s>=0;s--){var u=i[s];if(u.line=0;r--)if(!ub(t[r]))return!0;return!1},"isPrependedWithRegularRules"),km=I(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),WS=I(function(e,t,r){ub(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),km(e)):qS(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),km(e)))},"incorrectImportAlarm");function Kp(e,t){switch(Y3(e,t)){case 5103:return ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Gl+e+Re+e+e;case 6828:case 4268:return ne+e+Re+e+e;case 6165:return ne+e+Re+"flex-"+e+e;case 5187:return ne+e+Q(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return ne+e+Re+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return ne+e+Re+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Re+Q(e,"shrink","negative")+e;case 5292:return ne+e+Re+Q(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+Q(e,"-grow","")+ne+e+Re+Q(e,"grow","positive")+e;case 4554:return ne+Q(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ht(e)-1-t>6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Gl+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kl(e,"stretch")?Kp(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,ht(e)-3-(~Kl(e,"!important")&&10))){case 107:return Q(e,":",":"+ne)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Ce(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return ne+e+Re+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Re+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Re+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Re+e+e}return e}I(Kp,"prefix");var GS=I(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Up:e.return=Kp(e.value,e.length);break;case K3:return gn([Zn(e,{value:Q(e.value,"@","@"+ne)})],n);case Vp:if(e.length)return Z3(e.props,function(a){switch(J3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gn([Zn(e,{props:[Q(a,/:(read-\w+)/,":"+Gl+"$1")]})],n);case"::placeholder":return gn([Zn(e,{props:[Q(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Zn(e,{props:[Q(a,/:(plac\w+)/,":"+Gl+"$1")]}),Zn(e,{props:[Q(a,/:(plac\w+)/,Re+"input-$1")]})],n)}return""})}},"prefixer"),KS=[GS],YS=I(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var n=e.stylisPlugins||KS;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),b=1;b=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}I(cb,"murmur2");var QS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_m=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -558,7 +558,7 @@ ${t}`);let r=t.match(iO);if(!r)return y.createElement(l.Fragment,null,t);let[,n, * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */const{global:rt}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:xee,once:Cee,logger:hm}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:A3,composeConfigs:_ae,Preview:Fae,DocsContext:Iae}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:k3,UPDATE_STORY_ARGS:Dee,RESET_STORY_ARGS:See,GLOBALS_UPDATED:_3,NAVIGATE_URL:Aee}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var kee=La({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),_ee=La({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,s=!0,u=" ";function d(w,D){var S=D.appendChild(h(w));if(w.children.length){var A=p(w.isCollapsed);w.children.forEach(function(k){d(k,A)}),S.appendChild(A)}}function f(w,D){var S=!1,A=p(S);if(D.forEach(function(k){d(k,A)}),i=w||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(A)}function h(w){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",w.textContent),r.includeHtml&&w.childNodes.length?n.call(w.childNodes,function(A){S.appendChild(A.cloneNode(!0))}):S.textContent=w.textContent,S.setAttribute("href",r.basePath+"#"+w.id),S.setAttribute("class",r.linkClass+u+"node-name--"+w.nodeName+u+r.extraLinkClasses),D.appendChild(S),D}function p(w){var D=r.orderedList?"ol":"ul",S=document.createElement(D),A=r.listClass+u+r.extraListClasses;return w&&(A=A+u+r.collapsibleClass,A=A+u+r.isCollapsedClass),S.setAttribute("class",A),S}function m(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var w;w=document.querySelector(r.scrollContainer).scrollTop}else w=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),w>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=u+r.positionFixedClass):D.className=D.className.replace(u+r.positionFixedClass,"")}function g(w){var D=0;return w!==null&&(D=w.offsetTop,r.hasInnerContainers&&(D+=g(w.offsetParent))),D}function v(w,D){return w&&w.className!==D&&(w.className=D),w}function b(w){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&m();var S=w,A;if(s&&i!==null&&S.length>0){a.call(S,function(L,$){if(g(L)>D+r.headingsOffset+10){var M=$===0?$:$-1;return A=S[M],!0}else if($===S.length-1)return A=S[S.length-1],!0});var k=i.querySelector("."+r.activeLinkClass),F=i.querySelector("."+r.linkClass+".node-name--"+A.nodeName+'[href="'+r.basePath+"#"+A.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(k===F)return;var T=i.querySelectorAll("."+r.linkClass);n.call(T,function(L){v(L,L.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(L){v(L,L.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var O=F&&F.parentNode;O&&O.className.indexOf(r.activeListItemClass)===-1&&(O.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(L){L.className.indexOf(r.isCollapsedClass)===-1&&(L.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&v(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),x(F&&F.parentNode.parentNode)}}function x(w){return w&&w.className.indexOf(r.collapsibleClass)!==-1&&w.className.indexOf(r.isCollapsedClass)!==-1?(v(w,w.className.replace(u+r.isCollapsedClass,"")),x(w.parentNode.parentNode)):w}function E(w){var D=w.target||w.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function C(){s=!0}return{enableTocAnimation:C,disableTocAnimation:E,render:f,updateToc:b}}}}),Fee=La({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function s(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let p=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var m={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:p};return r.includeHtml&&(m.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(m,h):m}function u(h,p){for(var m=s(h),g=m.headingLevel,v=p,b=a(v),x=b?b.headingLevel:0,E=g-x;E>0&&(b=a(v),!(b&&g===b.headingLevel));)b&&b.children!==void 0&&(v=b.children),E--;return g>=r.collapseDepth&&(m.isCollapsed=!0),v.push(m),v}function d(h,p){var m=p;r.ignoreSelector&&(m=p.split(",").map(function(g){return g.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(m)}catch{return console.warn("Headers not found with selector: "+m),null}}function f(h){return n.call(h,function(p,m){var g=s(m);return g&&u(g,p.nest),p},{nest:[]})}return{nestHeadingsArray:f,selectHeadings:d}}}}),Iee=La({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),Tee=La({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;s();function s(){document.body.addEventListener("click",h,!1);function h(p){!u(p.target)||p.target.className.indexOf("no-smooth-scroll")>-1||p.target.href.charAt(p.target.href.length-2)==="#"&&p.target.href.charAt(p.target.href.length-1)==="!"||p.target.className.indexOf(n.linkClass)===-1||r(p.target.hash,{duration:a,offset:o,callback:function(){f(p.target.hash)}})}}function u(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function f(h){var p=document.getElementById(h.substring(1));p&&(/^(?:a|select|input|button|textarea)$/i.test(p.tagName)||(p.tabIndex=-1),p.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||g},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),u=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(u):i.duration,f,h;requestAnimationFrame(function(v){f=v,p(v)});function p(v){h=v-f,window.scrollTo(0,i.easing(h,o,u,d)),h"u"&&!h)return;var p,m=Object.prototype.hasOwnProperty;function g(){for(var E={},C=0;C({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:se(.3,e.color.defaultText),fontSize:e.typography.size.s2})),OD=e=>y.createElement(Bee,{...e,className:"docblock-emptyblock sb-unstyled"}),zee=_(Rh)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),$ee=_.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),El=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Hd}`]:{margin:0}})),Oee=()=>y.createElement($ee,null,y.createElement(El,null),y.createElement(El,{style:{width:"80%"}}),y.createElement(El,{style:{width:"30%"}}),y.createElement(El,{style:{width:"80%"}})),LD=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=gb();if(e)return y.createElement(Oee,null);if(t)return y.createElement(OD,null,t);let u=y.createElement(zee,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?Pd.dark:Pd.light;return y.createElement(vb,{theme:Nd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},ve=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,mm=600,Lee=_.h1(de,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${mm}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Mee=_.h2(de,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${mm}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:se(.25,e.color.defaultText)})),Pee=_.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?se(.1,e.color.defaultText):se(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ve("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ve("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ve("div")]:t,[ve("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ve("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ve("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ve("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ve("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ve("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ve("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ve("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ve("img")]:{maxWidth:"100%"},[ve("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ve("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ve("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ve("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ve("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ve("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ve("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),Nee=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${mm}px)`]:{}})),Hee=({children:e,toc:t})=>y.createElement(Nee,{className:"sbdocs sbdocs-wrapper"},y.createElement(Pee,{className:"sbdocs sbdocs-content"},e),t),Zu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:jee}=rt,Vee=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=jee.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},MD=l.createContext({scale:1}),{PREVIEW_URL:Uee}=rt,qee=Uee||"iframe.html",Ip=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,Wee=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:u,forceInitialArgs:d,renderStoryToElement:f}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,p=f(i,h,{showMain:()=>{},showError:({title:m,description:g})=>o(new Error(`${m} - ${g}`)),showException:m=>o(m)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>p())}},[u,f,i]),a?y.createElement("pre",null,y.createElement(cO,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${Ip(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(PD,null),y.createElement("div",{ref:t,id:`${Ip(e)}-inner`,"data-name":i.name}))},Gee=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(MD.Consumer,null,({scale:r})=>y.createElement(Vee,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:BL(qee,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Kee=_.strong(({theme:e})=>({color:e.color.orange})),Yee=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(Kee,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:Ip(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(Wee,{...e}):y.createElement(Gee,{...e}))},PD=()=>y.createElement(RL,null),Jee=_(jh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Zee=_.div({display:"flex",alignItems:"center",gap:4}),Xee=_.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Qee=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(Jee,{...o},y.createElement(Zee,{key:"left"},e?[1,2,3].map(i=>y.createElement(Xee,{key:i})):y.createElement(y.Fragment,null,y.createElement(bn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(CM,null)),y.createElement(bn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(DM,null)),y.createElement(bn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(SM,null))))),ete=_.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),F3=_(LD)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content)}})),tte=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Zu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),rte=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(F3,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(F3,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function nte(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var ate=_(Qee)({position:"absolute",top:0,left:0,right:0,height:40}),ote=_.div({overflow:"hidden",position:"relative"}),ND=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:u,layout:d="padded",...f})=>{let[h,p]=l.useState(i),{source:m,actionItem:g}=rte(a,h,p),[v,b]=l.useState(1),x=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=a?[g]:[],[C,w]=l.useState(s?[...s]:[]),D=[...E,...C],{window:S}=rt,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:T}=await Lp(()=>import("./index-CLsvOwO0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);T()},[]),k=F=>{let T=S.getSelection();T&&T.type==="Range"||(F.preventDefault(),C.filter(R=>R.title==="Copied").length===0&&A(m.props.code).then(()=>{w([...C,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>w(C.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(tte,{withSource:a,withToolbar:o,...f,className:x.join(" ")},o&&y.createElement(ate,{isLoading:e,border:!0,zoom:F=>b(v*F),resetZoom:()=>b(1),storyId:nte(n),baseUrl:"./iframe.html"}),y.createElement(MD.Provider,{value:{scale:v}},y.createElement(ote,{className:"docs-story",onCopyCapture:a&&k},y.createElement(ete,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(rO.Element,{scale:v},Array.isArray(n)?n.map((F,T)=>y.createElement("div",{key:T},F)):y.createElement("div",null,n))),y.createElement(ff,{actionItems:D}))),a&&h&&m)};_(ND)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var ite=_.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:se(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${yl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${yl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:yl(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${yl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),lte=e=>e==="true",ste=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var f;let i=l.useCallback(()=>r(!1),[r]),s=!!((f=o==null?void 0:o.table)!=null&&f.readonly);if(t===void 0)return y.createElement($n,{variant:"outline",size:"medium",id:Vs(e),onClick:i,disabled:s},"Set boolean");let u=Dt(e),d=typeof t=="string"?lte(t):t;return y.createElement(ite,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},ute=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},cte=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},dte=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},pte=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},I3=_(Li.Input)(({readOnly:e})=>({opacity:e?.5:1})),fte=_.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),hte=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var g;let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),f=!!((g=o==null?void 0:o.table)!=null&&g.readonly);l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?dte(t):""),d&&d.current&&(d.current.value=t?pte(t):""))},[t]);let h=v=>{if(!v.target.value)return r();let b=ute(v.target.value),x=new Date(t);x.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let E=x.getTime();E&&r(E),s(!!E)},p=v=>{if(!v.target.value)return r();let b=cte(v.target.value),x=new Date(t);x.setHours(b.getHours()),x.setMinutes(b.getMinutes());let E=x.getTime();E&&r(E),s(!!E)},m=Dt(e);return y.createElement(fte,null,y.createElement(I3,{type:"date",max:"9999-12-31",ref:u,id:`${m}-date`,name:`${m}-date`,readOnly:f,onChange:h,onFocus:n,onBlur:a}),y.createElement(I3,{type:"time",id:`${m}-time`,name:`${m}-time`,ref:d,onChange:p,readOnly:f,onFocus:n,onBlur:a}),i?null:y.createElement("div",null,"invalid"))},mte=_.label({display:"flex"}),gte=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},vte=_(Li.Input)(({readOnly:e})=>({opacity:e?.5:1})),yte=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{var C;let[d,f]=l.useState(typeof t=="number"?t:""),[h,p]=l.useState(!1),[m,g]=l.useState(null),v=!!((C=u==null?void 0:u.table)!=null&&C.readonly),b=l.useCallback(w=>{f(w.target.value);let D=parseFloat(w.target.value);Number.isNaN(D)?g(new Error(`'${w.target.value}' is not a number`)):(r(D),g(null))},[r,g]),x=l.useCallback(()=>{f("0"),r(0),p(!0)},[p]),E=l.useRef(null);return l.useEffect(()=>{h&&E.current&&E.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&f(t)},[t]),t===void 0?y.createElement($n,{variant:"outline",size:"medium",id:Vs(e),onClick:x,disabled:v},"Set number"):y.createElement(mte,null,y.createElement(vte,{ref:E,id:Dt(e),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:d,valid:m?"error":null,autoFocus:h,readOnly:v,name:e,min:n,max:a,step:o,onFocus:s,onBlur:i}))},HD=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Tp=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],jD=(e,t)=>e&&t&&e.map(r=>t[r]),bte=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),wte=_.span({"[aria-readonly=true] &":{opacity:.5}}),Ete=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),T3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var p;if(!t)return hm.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=Tp(r,t),[s,u]=l.useState(i),d=!!((p=o==null?void 0:o.table)!=null&&p.readonly),f=m=>{let g=m.target.value,v=[...s];v.includes(g)?v.splice(v.indexOf(g),1):v.push(g),n(jD(v,t)),u(v)};l.useEffect(()=>{u(Tp(r,t))},[r]);let h=Dt(e);return y.createElement(bte,{"aria-readonly":d,isInline:a},Object.keys(t).map((m,g)=>{let v=`${h}-${g}`;return y.createElement(Ete,{key:v,htmlFor:v},y.createElement("input",{type:"checkbox",disabled:d,id:v,name:v,value:m,onChange:f,checked:s==null?void 0:s.includes(m)}),y.createElement(wte,null,m))}))},xte=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),Cte=_.span({"[aria-readonly=true] &":{opacity:.5}}),Dte=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),R3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var d;if(!t)return hm.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=HD(r,t),s=Dt(e),u=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return y.createElement(xte,{"aria-readonly":u,isInline:a},Object.keys(t).map((f,h)=>{let p=`${s}-${h}`;return y.createElement(Dte,{key:p,htmlFor:p},y.createElement("input",{type:"radio",id:p,name:s,disabled:u,value:f,onChange:m=>n(t[m.currentTarget.value]),checked:f===i}),y.createElement(Cte,null,f))}))},Ste={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},VD=_.select(Ste,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),UD=_.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),B3="Choose option...",Ate=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=f=>{n(r[f.currentTarget.value])},i=HD(t,r)||B3,s=Dt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(UD,null,y.createElement(CC,null),y.createElement(VD,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},B3),Object.keys(r).map(f=>y.createElement("option",{key:f,value:f},f))))},kte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=f=>{let h=Array.from(f.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(jD(h,r))},i=Tp(t,r),s=Dt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(UD,null,y.createElement(VD,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(f=>y.createElement("option",{key:f,value:f},f))))},z3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(kte,{...e}):y.createElement(Ate,{...e}):(hm.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},_te=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,Fte={check:T3,"inline-check":T3,radio:R3,"inline-radio":R3,select:z3,"multi-select":z3},Jn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?_te(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=Fte[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Ite="Error",Tte="Object",Rte="Array",Bte="String",zte="Number",$te="Boolean",Ote="Date",Lte="Null",Mte="Undefined",Pte="Function",Nte="Symbol",qD="ADD_DELTA_TYPE",WD="REMOVE_DELTA_TYPE",GD="UPDATE_DELTA_TYPE",gm="value",Hte="key";function mn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function KD(e,t){let r=mn(e),n=mn(t);return(r==="Function"||n==="Function")&&n!==r}var vm=class extends l.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,s={};if(!t){if(!o.value)return;s.key=o.value}s.newValue=r(!1,n,a,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,s=l.cloneElement(r,{onClick:this.onSubmit}),u=l.cloneElement(n,{onClick:e}),d=a(gm,o,i),f=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let p=a(Hte,o,i);h=l.cloneElement(p,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,f,u,s)}};vm.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var YD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:WD};n.splice(e,1),this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(r[r.length-1],i),u({type:qD,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:f}=this.props;d(i[i.length-1],o),f({type:GD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:s,minusMenuElement:u}=this.props,{minus:d,collapsed:f}=i(e,t,r,n,s),h=o(e,t,r,n,s),p=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:f,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&p)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:f,dataType:h,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:T,ul:R,addForm:O}=f(e,t,r,n,h),z=d(e,t,r,n,h),L=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),$=l.cloneElement(x,{onClick:s,className:"rejt-minus-menu",style:k});return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"["),!a&&L,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Xu,{key:j,name:j.toString(),data:M,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:O},y.createElement(vm,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:p,cancelButtonElement:m,inputElementGenerator:v,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"]"),!z&&$)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=i(e,r,n,a,o);return y.createElement("div",{className:"rejt-array-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};YD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var JD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{KD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:f,cancelButtonElement:h,textareaElementGenerator:p,minusMenuElement:m,keyPath:g}=this.props,v=d(e,i,n,a,u),b=null,x=null,E=s(e,i,n,a,u);if(r&&!E){let C=p(gm,g,a,e,i,u),w=l.cloneElement(f,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(C,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:v.editForm},S," ",D,w),x=null}else{b=y.createElement("span",{className:"rejt-value",style:v.value,onClick:E?null:this.handleEditMode},t);let C=l.cloneElement(m,{onClick:o,className:"rejt-minus-menu",style:v.minus});x=E?null:C}return y.createElement("li",{className:"rejt-function-value-node",style:v.li},y.createElement("span",{className:"rejt-name",style:v.name},e," :"," "),b,x)}};JD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Xu=class extends l.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=mn(e);switch(k){case Ite:return y.createElement(Rp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:A,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case Tte:return y.createElement(Rp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case Rte:return y.createElement(YD,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case Bte:return y.createElement(Dr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case zte:return y.createElement(Dr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case $te:return y.createElement(Dr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Ote:return y.createElement(Dr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Lte:return y.createElement(Dr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Mte:return y.createElement(Dr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Pte:return y.createElement(JD,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,textareaElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Nte:return y.createElement(Dr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});default:return null}}};Xu.defaultProps={keyPath:[],deep:0};var Rp=class extends l.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:qD,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:WD};delete n[e],this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:f}=this.props;d(i[i.length-1],o),f({type:GD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:s,minusMenuElement:u}=this.props,{minus:d,collapsed:f}=s(e,n,t,r,i),h=Object.getOwnPropertyNames(n),p=o(e,n,t,r,i),m=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:f,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!p&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:f,dataType:h,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:T,ul:R,delimiter:O}=f(e,t,r,n,h),z=Object.getOwnPropertyNames(t),L=d(e,t,r,n,h),$=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(x,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(K=>y.createElement(Xu,{key:K,name:K,data:t[K],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(K),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}));return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"{"),!L&&$,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},j),!L&&o&&y.createElement("div",{className:"rejt-add-form",style:T},y.createElement(vm,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:p,cancelButtonElement:m,inputElementGenerator:v,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"}"),!L&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=o(e,r,n,a,i);return y.createElement("div",{className:"rejt-object-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};Rp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var Dr=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{KD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:f,cancelButtonElement:h,inputElementGenerator:p,minusMenuElement:m,keyPath:g}=this.props,v=d(e,i,n,a,u),b=s(e,i,n,a,u),x=r&&!b,E=p(gm,g,a,e,i,u),C=l.cloneElement(f,{onClick:this.handleEdit}),w=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=l.cloneElement(m,{onClick:o,className:"rejt-minus-menu",style:v.minus});return y.createElement("li",{className:"rejt-value-node",style:v.li},y.createElement("span",{className:"rejt-name",style:v.name},e," : "),x?y.createElement("span",{className:"rejt-edit-form",style:v.editForm},D," ",w,C):y.createElement("span",{className:"rejt-value",style:v.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!x&&S)}};Dr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};function jte(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Vte={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Ute={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},qte={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},ZD=class extends l.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElement:d,textareaElement:f,minusMenuElement:h,plusMenuElement:p,beforeRemoveAction:m,beforeAddAction:g,beforeUpdateAction:v,logger:b,onSubmitValueParser:x,fallback:E=null}=this.props,C=mn(e),w=a;mn(a)==="Boolean"&&(w=()=>a);let D=d;d&&mn(d)!=="Function"&&(D=()=>d);let S=f;return f&&mn(f)!=="Function"&&(S=()=>f),C==="Object"||C==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Xu,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:w,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:p,handleRemove:this.removeRoot,beforeRemoveAction:m,beforeAddAction:g,beforeUpdateAction:v,logger:b,onSubmitValueParser:x})):E}};ZD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return Vte;case"Array":return Ute;default:return qte}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>jte(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:Wte}=rt,Gte=_.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Bd=_.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),Kte=_(FM)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),Yte=_(IM)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),$3=_.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),Jte=_(bn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),Zte=_(Li.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Xte={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Qte=e=>{e.currentTarget.dispatchEvent(new Wte.KeyboardEvent("keydown",Xte))},ere=e=>{e.currentTarget.select()},tre=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),O3=({name:e,value:t,onChange:r,argType:n})=>{var C;let a=gb(),o=l.useMemo(()=>t&&wZ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,f]=l.useState(null),h=!!((C=n==null?void 0:n.table)!=null&&C.readonly),p=l.useCallback(w=>{try{w&&r(JSON.parse(w)),f(void 0)}catch(D){f(D)}},[r]),[m,g]=l.useState(!1),v=l.useCallback(()=>{r({}),g(!0)},[g]),b=l.useRef(null);if(l.useEffect(()=>{m&&b.current&&b.current.select()},[m]),!i)return y.createElement($n,{disabled:h,id:Vs(e),onClick:v},"Set object");let x=y.createElement(Zte,{ref:b,id:Dt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:w=>p(w.target.value),placeholder:"Edit JSON string...",autoFocus:m,valid:d?"error":null,readOnly:h}),E=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return y.createElement(Gte,{"aria-readonly":h},E&&y.createElement(Jte,{onClick:w=>{w.preventDefault(),u(D=>!D)}},s?y.createElement(kM,null):y.createElement(AM,null),y.createElement("span",null,"RAW")),s?x:y.createElement(ZD,{readOnly:h||!E,isCollapsed:E?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:tre(a),cancelButtonElement:y.createElement(Bd,{type:"button"},"Cancel"),editButtonElement:y.createElement(Bd,{type:"submit"},"Save"),addButtonElement:y.createElement(Bd,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement(Kte,null),minusMenuElement:y.createElement(Yte,null),inputElement:(w,D,S,A)=>A?y.createElement($3,{onFocus:ere,onBlur:Qte}):y.createElement($3,null),fallback:x}))},rre=_.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + */const{global:rt}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:xee,once:Cee,logger:hm}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:A3,composeConfigs:_ae,Preview:Fae,DocsContext:Iae}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_ARGS_UPDATED:k3,UPDATE_STORY_ARGS:Dee,RESET_STORY_ARGS:See,GLOBALS_UPDATED:_3,NAVIGATE_URL:Aee}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var kee=La({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),_ee=La({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,s=!0,u=" ";function d(w,D){var S=D.appendChild(h(w));if(w.children.length){var A=p(w.isCollapsed);w.children.forEach(function(k){d(k,A)}),S.appendChild(A)}}function f(w,D){var S=!1,A=p(S);if(D.forEach(function(k){d(k,A)}),i=w||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),D.length===0?i:i.appendChild(A)}function h(w){var D=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",w.textContent),r.includeHtml&&w.childNodes.length?n.call(w.childNodes,function(A){S.appendChild(A.cloneNode(!0))}):S.textContent=w.textContent,S.setAttribute("href",r.basePath+"#"+w.id),S.setAttribute("class",r.linkClass+u+"node-name--"+w.nodeName+u+r.extraLinkClasses),D.appendChild(S),D}function p(w){var D=r.orderedList?"ol":"ul",S=document.createElement(D),A=r.listClass+u+r.extraListClasses;return w&&(A=A+u+r.collapsibleClass,A=A+u+r.isCollapsedClass),S.setAttribute("class",A),S}function m(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var w;w=document.querySelector(r.scrollContainer).scrollTop}else w=document.documentElement.scrollTop||o.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),w>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=u+r.positionFixedClass):D.className=D.className.replace(u+r.positionFixedClass,"")}function g(w){var D=0;return w!==null&&(D=w.offsetTop,r.hasInnerContainers&&(D+=g(w.offsetParent))),D}function v(w,D){return w&&w.className!==D&&(w.className=D),w}function b(w){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&m();var S=w,A;if(s&&i!==null&&S.length>0){a.call(S,function(L,$){if(g(L)>D+r.headingsOffset+10){var M=$===0?$:$-1;return A=S[M],!0}else if($===S.length-1)return A=S[S.length-1],!0});var k=i.querySelector("."+r.activeLinkClass),F=i.querySelector("."+r.linkClass+".node-name--"+A.nodeName+'[href="'+r.basePath+"#"+A.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(k===F)return;var T=i.querySelectorAll("."+r.linkClass);n.call(T,function(L){v(L,L.className.replace(u+r.activeLinkClass,""))});var R=i.querySelectorAll("."+r.listItemClass);n.call(R,function(L){v(L,L.className.replace(u+r.activeListItemClass,""))}),F&&F.className.indexOf(r.activeLinkClass)===-1&&(F.className+=u+r.activeLinkClass);var O=F&&F.parentNode;O&&O.className.indexOf(r.activeListItemClass)===-1&&(O.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(L){L.className.indexOf(r.isCollapsedClass)===-1&&(L.className+=u+r.isCollapsedClass)}),F&&F.nextSibling&&F.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&v(F.nextSibling,F.nextSibling.className.replace(u+r.isCollapsedClass,"")),x(F&&F.parentNode.parentNode)}}function x(w){return w&&w.className.indexOf(r.collapsibleClass)!==-1&&w.className.indexOf(r.isCollapsedClass)!==-1?(v(w,w.className.replace(u+r.isCollapsedClass,"")),x(w.parentNode.parentNode)):w}function E(w){var D=w.target||w.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(s=!1)}function C(){s=!0}return{enableTocAnimation:C,disableTocAnimation:E,render:f,updateToc:b}}}}),Fee=La({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(h){return h[h.length-1]}function o(h){return+h.nodeName.toUpperCase().replace("H","")}function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}function s(h){if(!i(h))return h;if(r.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;let p=h.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim());var m={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:p};return r.includeHtml&&(m.childNodes=h.childNodes),r.headingObjectCallback?r.headingObjectCallback(m,h):m}function u(h,p){for(var m=s(h),g=m.headingLevel,v=p,b=a(v),x=b?b.headingLevel:0,E=g-x;E>0&&(b=a(v),!(b&&g===b.headingLevel));)b&&b.children!==void 0&&(v=b.children),E--;return g>=r.collapseDepth&&(m.isCollapsed=!0),v.push(m),v}function d(h,p){var m=p;r.ignoreSelector&&(m=p.split(",").map(function(g){return g.trim()+":not("+r.ignoreSelector+")"}));try{return h.querySelectorAll(m)}catch{return console.warn("Headers not found with selector: "+m),null}}function f(h){return n.call(h,function(p,m){var g=s(m);return g&&u(g,p.nest),p},{nest:[]})}return{nestHeadingsArray:f,selectHeadings:d}}}}),Iee=La({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),Tee=La({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;s();function s(){document.body.addEventListener("click",h,!1);function h(p){!u(p.target)||p.target.className.indexOf("no-smooth-scroll")>-1||p.target.href.charAt(p.target.href.length-2)==="#"&&p.target.href.charAt(p.target.href.length-1)==="!"||p.target.className.indexOf(n.linkClass)===-1||r(p.target.hash,{duration:a,offset:o,callback:function(){f(p.target.hash)}})}}function u(h){return h.tagName.toLowerCase()==="a"&&(h.hash.length>0||h.href.charAt(h.href.length-1)==="#")&&(d(h.href)===i||d(h.href)+"#"===i)}function d(h){return h.slice(0,h.lastIndexOf("#"))}function f(h){var p=document.getElementById(h.substring(1));p&&(/^(?:a|select|input|button|textarea)$/i.test(p.tagName)||(p.tabIndex=-1),p.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||g},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),u=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(u):i.duration,f,h;requestAnimationFrame(function(v){f=v,p(v)});function p(v){h=v-f,window.scrollTo(0,i.easing(h,o,u,d)),h"u"&&!h)return;var p,m=Object.prototype.hasOwnProperty;function g(){for(var E={},C=0;C({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:se(.3,e.color.defaultText),fontSize:e.typography.size.s2})),OD=e=>y.createElement(Bee,{...e,className:"docblock-emptyblock sb-unstyled"}),zee=_(Rh)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),$ee=_.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),El=_.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Hd}`]:{margin:0}})),Oee=()=>y.createElement($ee,null,y.createElement(El,null),y.createElement(El,{style:{width:"80%"}}),y.createElement(El,{style:{width:"30%"}}),y.createElement(El,{style:{width:"80%"}})),LD=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=gb();if(e)return y.createElement(Oee,null);if(t)return y.createElement(OD,null,t);let u=y.createElement(zee,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?Pd.dark:Pd.light;return y.createElement(vb,{theme:Nd({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},ve=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,mm=600,Lee=_.h1(de,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${mm}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Mee=_.h2(de,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${mm}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:se(.25,e.color.defaultText)})),Pee=_.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?se(.1,e.color.defaultText):se(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ve("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ve("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ve("div")]:t,[ve("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ve("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ve("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ve("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ve("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ve("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ve("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ve("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ve("img")]:{maxWidth:"100%"},[ve("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ve("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ve("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ve("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ve("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ve("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ve("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),Nee=_.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${mm}px)`]:{}})),Hee=({children:e,toc:t})=>y.createElement(Nee,{className:"sbdocs sbdocs-wrapper"},y.createElement(Pee,{className:"sbdocs sbdocs-content"},e),t),Zu=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:jee}=rt,Vee=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=jee.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},MD=l.createContext({scale:1}),{PREVIEW_URL:Uee}=rt,qee=Uee||"iframe.html",Ip=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,Wee=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:u,forceInitialArgs:d,renderStoryToElement:f}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let h=t.current,p=f(i,h,{showMain:()=>{},showError:({title:m,description:g})=>o(new Error(`${m} - ${g}`)),showException:m=>o(m)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>p())}},[u,f,i]),a?y.createElement("pre",null,y.createElement(cO,{error:a})):y.createElement(y.Fragment,null,s?y.createElement("style",null,`#${Ip(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(PD,null),y.createElement("div",{ref:t,id:`${Ip(e)}-inner`,"data-name":i.name}))},Gee=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(MD.Consumer,null,({scale:r})=>y.createElement(Vee,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:BL(qee,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Kee=_.strong(({theme:e})=>({color:e.color.orange})),Yee=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(Kee,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:Ip(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(Wee,{...e}):y.createElement(Gee,{...e}))},PD=()=>y.createElement(RL,null),Jee=_(jh)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Zee=_.div({display:"flex",alignItems:"center",gap:4}),Xee=_.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Qee=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>y.createElement(Jee,{...o},y.createElement(Zee,{key:"left"},e?[1,2,3].map(i=>y.createElement(Xee,{key:i})):y.createElement(y.Fragment,null,y.createElement(bn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(CM,null)),y.createElement(bn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(DM,null)),y.createElement(bn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},y.createElement(SM,null))))),ete=_.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),F3=_(LD)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ot(.05,e.background.content)}})),tte=_.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Zu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),rte=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:y.createElement(F3,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(F3,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function nte(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var ate=_(Qee)({position:"absolute",top:0,left:0,right:0,height:40}),ote=_.div({overflow:"hidden",position:"relative"}),ND=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:u,layout:d="padded",...f})=>{let[h,p]=l.useState(i),{source:m,actionItem:g}=rte(a,h,p),[v,b]=l.useState(1),x=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=a?[g]:[],[C,w]=l.useState(s?[...s]:[]),D=[...E,...C],{window:S}=rt,A=l.useCallback(async F=>{let{createCopyToClipboardFunction:T}=await Lp(()=>import("./index-vMRfdoe9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);T()},[]),k=F=>{let T=S.getSelection();T&&T.type==="Range"||(F.preventDefault(),C.filter(R=>R.title==="Copied").length===0&&A(m.props.code).then(()=>{w([...C,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>w(C.filter(R=>R.title!=="Copied")),1500)}))};return y.createElement(tte,{withSource:a,withToolbar:o,...f,className:x.join(" ")},o&&y.createElement(ate,{isLoading:e,border:!0,zoom:F=>b(v*F),resetZoom:()=>b(1),storyId:nte(n),baseUrl:"./iframe.html"}),y.createElement(MD.Provider,{value:{scale:v}},y.createElement(ote,{className:"docs-story",onCopyCapture:a&&k},y.createElement(ete,{isColumn:t||!Array.isArray(n),columns:r,layout:d},y.createElement(rO.Element,{scale:v},Array.isArray(n)?n.map((F,T)=>y.createElement("div",{key:T},F)):y.createElement("div",null,n))),y.createElement(ff,{actionItems:D}))),a&&h&&m)};_(ND)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var ite=_.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:se(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${yl(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${yl(.05,e.appBorderColor)} 0 0 0 2px inset`,color:yl(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${yl(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),lte=e=>e==="true",ste=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var f;let i=l.useCallback(()=>r(!1),[r]),s=!!((f=o==null?void 0:o.table)!=null&&f.readonly);if(t===void 0)return y.createElement($n,{variant:"outline",size:"medium",id:Vs(e),onClick:i,disabled:s},"Set boolean");let u=Dt(e),d=typeof t=="string"?lte(t):t;return y.createElement(ite,{"aria-disabled":s,htmlFor:u,"aria-label":e},y.createElement("input",{id:u,type:"checkbox",onChange:h=>r(h.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},ute=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},cte=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},dte=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},pte=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},I3=_(Li.Input)(({readOnly:e})=>({opacity:e?.5:1})),fte=_.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),hte=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var g;let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),f=!!((g=o==null?void 0:o.table)!=null&&g.readonly);l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?dte(t):""),d&&d.current&&(d.current.value=t?pte(t):""))},[t]);let h=v=>{if(!v.target.value)return r();let b=ute(v.target.value),x=new Date(t);x.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let E=x.getTime();E&&r(E),s(!!E)},p=v=>{if(!v.target.value)return r();let b=cte(v.target.value),x=new Date(t);x.setHours(b.getHours()),x.setMinutes(b.getMinutes());let E=x.getTime();E&&r(E),s(!!E)},m=Dt(e);return y.createElement(fte,null,y.createElement(I3,{type:"date",max:"9999-12-31",ref:u,id:`${m}-date`,name:`${m}-date`,readOnly:f,onChange:h,onFocus:n,onBlur:a}),y.createElement(I3,{type:"time",id:`${m}-time`,name:`${m}-time`,ref:d,onChange:p,readOnly:f,onFocus:n,onBlur:a}),i?null:y.createElement("div",null,"invalid"))},mte=_.label({display:"flex"}),gte=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},vte=_(Li.Input)(({readOnly:e})=>({opacity:e?.5:1})),yte=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{var C;let[d,f]=l.useState(typeof t=="number"?t:""),[h,p]=l.useState(!1),[m,g]=l.useState(null),v=!!((C=u==null?void 0:u.table)!=null&&C.readonly),b=l.useCallback(w=>{f(w.target.value);let D=parseFloat(w.target.value);Number.isNaN(D)?g(new Error(`'${w.target.value}' is not a number`)):(r(D),g(null))},[r,g]),x=l.useCallback(()=>{f("0"),r(0),p(!0)},[p]),E=l.useRef(null);return l.useEffect(()=>{h&&E.current&&E.current.select()},[h]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&f(t)},[t]),t===void 0?y.createElement($n,{variant:"outline",size:"medium",id:Vs(e),onClick:x,disabled:v},"Set number"):y.createElement(mte,null,y.createElement(vte,{ref:E,id:Dt(e),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:d,valid:m?"error":null,autoFocus:h,readOnly:v,name:e,min:n,max:a,step:o,onFocus:s,onBlur:i}))},HD=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Tp=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],jD=(e,t)=>e&&t&&e.map(r=>t[r]),bte=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),wte=_.span({"[aria-readonly=true] &":{opacity:.5}}),Ete=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),T3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var p;if(!t)return hm.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=Tp(r,t),[s,u]=l.useState(i),d=!!((p=o==null?void 0:o.table)!=null&&p.readonly),f=m=>{let g=m.target.value,v=[...s];v.includes(g)?v.splice(v.indexOf(g),1):v.push(g),n(jD(v,t)),u(v)};l.useEffect(()=>{u(Tp(r,t))},[r]);let h=Dt(e);return y.createElement(bte,{"aria-readonly":d,isInline:a},Object.keys(t).map((m,g)=>{let v=`${h}-${g}`;return y.createElement(Ete,{key:v,htmlFor:v},y.createElement("input",{type:"checkbox",disabled:d,id:v,name:v,value:m,onChange:f,checked:s==null?void 0:s.includes(m)}),y.createElement(wte,null,m))}))},xte=_.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),Cte=_.span({"[aria-readonly=true] &":{opacity:.5}}),Dte=_.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),R3=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var d;if(!t)return hm.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=HD(r,t),s=Dt(e),u=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return y.createElement(xte,{"aria-readonly":u,isInline:a},Object.keys(t).map((f,h)=>{let p=`${s}-${h}`;return y.createElement(Dte,{key:p,htmlFor:p},y.createElement("input",{type:"radio",id:p,name:s,disabled:u,value:f,onChange:m=>n(t[m.currentTarget.value]),checked:f===i}),y.createElement(Cte,null,f))}))},Ste={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},VD=_.select(Ste,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),UD=_.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),B3="Choose option...",Ate=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=f=>{n(r[f.currentTarget.value])},i=HD(t,r)||B3,s=Dt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(UD,null,y.createElement(CC,null),y.createElement(VD,{disabled:u,id:s,value:i,onChange:o},y.createElement("option",{key:"no-selection",disabled:!0},B3),Object.keys(r).map(f=>y.createElement("option",{key:f,value:f},f))))},kte=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=f=>{let h=Array.from(f.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(jD(h,r))},i=Tp(t,r),s=Dt(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return y.createElement(UD,null,y.createElement(VD,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(f=>y.createElement("option",{key:f,value:f},f))))},z3=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(kte,{...e}):y.createElement(Ate,{...e}):(hm.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},_te=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,Fte={check:T3,"inline-check":T3,radio:R3,"inline-radio":R3,select:z3,"multi-select":z3},Jn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?_te(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=Fte[t];if(o)return y.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Ite="Error",Tte="Object",Rte="Array",Bte="String",zte="Number",$te="Boolean",Ote="Date",Lte="Null",Mte="Undefined",Pte="Function",Nte="Symbol",qD="ADD_DELTA_TYPE",WD="REMOVE_DELTA_TYPE",GD="UPDATE_DELTA_TYPE",gm="value",Hte="key";function mn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function KD(e,t){let r=mn(e),n=mn(t);return(r==="Function"||n==="Function")&&n!==r}var vm=class extends l.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,s={};if(!t){if(!o.value)return;s.key=o.value}s.newValue=r(!1,n,a,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,s=l.cloneElement(r,{onClick:this.onSubmit}),u=l.cloneElement(n,{onClick:e}),d=a(gm,o,i),f=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),h=null;if(!t){let p=a(Hte,o,i);h=l.cloneElement(p,{placeholder:"Key",ref:this.refInputKey})}return y.createElement("span",{className:"rejt-add-value-node"},h,f,u,s)}};vm.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var YD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:WD};n.splice(e,1),this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(r[r.length-1],i),u({type:qD,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:f}=this.props;d(i[i.length-1],o),f({type:GD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:s,minusMenuElement:u}=this.props,{minus:d,collapsed:f}=i(e,t,r,n,s),h=o(e,t,r,n,s),p=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:f,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!h&&p)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:f,dataType:h,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,delimiter:T,ul:R,addForm:O}=f(e,t,r,n,h),z=d(e,t,r,n,h),L=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),$=l.cloneElement(x,{onClick:s,className:"rejt-minus-menu",style:k});return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"["),!a&&L,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},t.map((M,j)=>y.createElement(Xu,{key:j,name:j.toString(),data:M,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}))),!z&&a&&y.createElement("div",{className:"rejt-add-form",style:O},y.createElement(vm,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:p,cancelButtonElement:m,inputElementGenerator:v,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:T},"]"),!z&&$)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=i(e,r,n,a,o);return y.createElement("div",{className:"rejt-array-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};YD.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var JD=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{KD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:f,cancelButtonElement:h,textareaElementGenerator:p,minusMenuElement:m,keyPath:g}=this.props,v=d(e,i,n,a,u),b=null,x=null,E=s(e,i,n,a,u);if(r&&!E){let C=p(gm,g,a,e,i,u),w=l.cloneElement(f,{onClick:this.handleEdit}),D=l.cloneElement(h,{onClick:this.handleCancelEdit}),S=l.cloneElement(C,{ref:this.refInput,defaultValue:i});b=y.createElement("span",{className:"rejt-edit-form",style:v.editForm},S," ",D,w),x=null}else{b=y.createElement("span",{className:"rejt-value",style:v.value,onClick:E?null:this.handleEditMode},t);let C=l.cloneElement(m,{onClick:o,className:"rejt-minus-menu",style:v.minus});x=E?null:C}return y.createElement("li",{className:"rejt-function-value-node",style:v.li},y.createElement("span",{className:"rejt-name",style:v.name},e," :"," "),b,x)}};JD.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Xu=class extends l.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S}=this.props,A=()=>!0,k=mn(e);switch(k){case Ite:return y.createElement(Rp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:A,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case Tte:return y.createElement(Rp,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case Rte:return y.createElement(YD,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:k,getStyle:f,addButtonElement:h,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,textareaElementGenerator:v,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:E,beforeAddAction:C,beforeUpdateAction:w,logger:D,onSubmitValueParser:S});case Bte:return y.createElement(Dr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case zte:return y.createElement(Dr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case $te:return y.createElement(Dr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Ote:return y.createElement(Dr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Lte:return y.createElement(Dr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Mte:return y.createElement(Dr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Pte:return y.createElement(JD,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,textareaElementGenerator:v,minusMenuElement:b,logger:D,onSubmitValueParser:S});case Nte:return y.createElement(Dr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:A,dataType:k,getStyle:f,cancelButtonElement:p,editButtonElement:m,inputElementGenerator:g,minusMenuElement:b,logger:D,onSubmitValueParser:S});default:return null}}};Xu.defaultProps={keyPath:[],deep:0};var Rp=class extends l.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:qD,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:WD};delete n[e],this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:f}=this.props;d(i[i.length-1],o),f({type:GD,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:s,minusMenuElement:u}=this.props,{minus:d,collapsed:f}=s(e,n,t,r,i),h=Object.getOwnPropertyNames(n),p=o(e,n,t,r,i),m=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return y.createElement("span",{className:"rejt-collapsed"},y.createElement("span",{className:"rejt-collapsed-text",style:f,onClick:this.handleCollapseMode},"{...}"," ",h.length," ",h.length===1?"key":"keys"),!p&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:f,dataType:h,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}=this.props,{minus:k,plus:F,addForm:T,ul:R,delimiter:O}=f(e,t,r,n,h),z=Object.getOwnPropertyNames(t),L=d(e,t,r,n,h),$=l.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:F}),M=l.cloneElement(x,{onClick:s,className:"rejt-minus-menu",style:k}),j=z.map(K=>y.createElement(Xu,{key:K,name:K,data:t[K],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(K),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:f,addButtonElement:p,cancelButtonElement:m,editButtonElement:g,inputElementGenerator:v,textareaElementGenerator:b,minusMenuElement:x,plusMenuElement:E,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:D,logger:S,onSubmitValueParser:A}));return y.createElement("span",{className:"rejt-not-collapsed"},y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"{"),!L&&$,y.createElement("ul",{className:"rejt-not-collapsed-list",style:R},j),!L&&o&&y.createElement("div",{className:"rejt-add-form",style:T},y.createElement(vm,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:p,cancelButtonElement:m,inputElementGenerator:v,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"}"),!L&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=o(e,r,n,a,i);return y.createElement("div",{className:"rejt-object-node"},y.createElement("span",{onClick:this.handleCollapseMode},y.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};Rp.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var Dr=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{KD(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:f,cancelButtonElement:h,inputElementGenerator:p,minusMenuElement:m,keyPath:g}=this.props,v=d(e,i,n,a,u),b=s(e,i,n,a,u),x=r&&!b,E=p(gm,g,a,e,i,u),C=l.cloneElement(f,{onClick:this.handleEdit}),w=l.cloneElement(h,{onClick:this.handleCancelEdit}),D=l.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=l.cloneElement(m,{onClick:o,className:"rejt-minus-menu",style:v.minus});return y.createElement("li",{className:"rejt-value-node",style:v.li},y.createElement("span",{className:"rejt-name",style:v.name},e," : "),x?y.createElement("span",{className:"rejt-edit-form",style:v.editForm},D," ",w,C):y.createElement("span",{className:"rejt-value",style:v.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!x&&S)}};Dr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:y.createElement("button",null,"e"),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};function jte(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Vte={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Ute={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},qte={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},ZD=class extends l.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElement:d,textareaElement:f,minusMenuElement:h,plusMenuElement:p,beforeRemoveAction:m,beforeAddAction:g,beforeUpdateAction:v,logger:b,onSubmitValueParser:x,fallback:E=null}=this.props,C=mn(e),w=a;mn(a)==="Boolean"&&(w=()=>a);let D=d;d&&mn(d)!=="Function"&&(D=()=>d);let S=f;return f&&mn(f)!=="Function"&&(S=()=>f),C==="Object"||C==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Xu,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:w,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElementGenerator:D,textareaElementGenerator:S,minusMenuElement:h,plusMenuElement:p,handleRemove:this.removeRoot,beforeRemoveAction:m,beforeAddAction:g,beforeUpdateAction:v,logger:b,onSubmitValueParser:x})):E}};ZD.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return Vte;case"Array":return Ute;default:return qte}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>jte(a),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:Wte}=rt,Gte=_.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Bd=_.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),Kte=_(FM)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),Yte=_(IM)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),$3=_.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),Jte=_(bn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),Zte=_(Li.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Xte={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Qte=e=>{e.currentTarget.dispatchEvent(new Wte.KeyboardEvent("keydown",Xte))},ere=e=>{e.currentTarget.select()},tre=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),O3=({name:e,value:t,onChange:r,argType:n})=>{var C;let a=gb(),o=l.useMemo(()=>t&&wZ(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,f]=l.useState(null),h=!!((C=n==null?void 0:n.table)!=null&&C.readonly),p=l.useCallback(w=>{try{w&&r(JSON.parse(w)),f(void 0)}catch(D){f(D)}},[r]),[m,g]=l.useState(!1),v=l.useCallback(()=>{r({}),g(!0)},[g]),b=l.useRef(null);if(l.useEffect(()=>{m&&b.current&&b.current.select()},[m]),!i)return y.createElement($n,{disabled:h,id:Vs(e),onClick:v},"Set object");let x=y.createElement(Zte,{ref:b,id:Dt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:w=>p(w.target.value),placeholder:"Edit JSON string...",autoFocus:m,valid:d?"error":null,readOnly:h}),E=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return y.createElement(Gte,{"aria-readonly":h},E&&y.createElement(Jte,{onClick:w=>{w.preventDefault(),u(D=>!D)}},s?y.createElement(kM,null):y.createElement(AM,null),y.createElement("span",null,"RAW")),s?x:y.createElement(ZD,{readOnly:h||!E,isCollapsed:E?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:tre(a),cancelButtonElement:y.createElement(Bd,{type:"button"},"Cancel"),editButtonElement:y.createElement(Bd,{type:"submit"},"Save"),addButtonElement:y.createElement(Bd,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement(Kte,null),minusMenuElement:y.createElement(Yte,null),inputElement:(w,D,S,A)=>A?y.createElement($3,{onFocus:ere,onBlur:Qte}):y.createElement($3,null),fallback:x}))},rre=_.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Ot(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Ot(.02,e.input.background)} 100%)`:`linear-gradient(to right, @@ -576,7 +576,7 @@ ${t}`);let r=t.match(iO);if(!r)return y.createElement(l.Fragment,null,t);let[,n, ${Ot(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${ln(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${ln(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Mt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),XD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),nre=_(XD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),are=_.div({display:"flex",alignItems:"center",width:"100%"});function ore(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var ire=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{var m;let d=g=>{r(gte(g.target.value))},f=t!==void 0,h=l.useMemo(()=>ore(o),[o]),p=!!((m=u==null?void 0:u.table)!=null&&m.readonly);return y.createElement(are,{"aria-readonly":p},y.createElement(XD,null,n),y.createElement(rre,{id:Dt(e),type:"range",disabled:p,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(nre,{numberOFDecimalsPlaces:h,max:a},f?t.toFixed(h):"--"," / ",a))},lre=_.label({display:"flex"}),sre=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),ure=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var m;let s=g=>{r(g.target.value)},u=!!((m=i==null?void 0:i.table)!=null&&m.readonly),[d,f]=l.useState(!1),h=l.useCallback(()=>{r(""),f(!0)},[f]);if(t===void 0)return y.createElement($n,{variant:"outline",size:"medium",disabled:u,id:Vs(e),onClick:h},"Set string");let p=typeof t=="string";return y.createElement(lre,null,y.createElement(Li.Textarea,{id:Dt(e),maxLength:o,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:p?null:"error",name:e,value:p?t:"",onFocus:n,onBlur:a}),o&&y.createElement(sre,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},cre=_(Li.Input)({padding:10});function dre(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var pre=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let o=l.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(d){if(!d.target.files)return;let f=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(f),dre(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(cre,{ref:o,id:Dt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},fre=l.lazy(()=>Lp(()=>import("./Color-ERTF36HU-BPVYNBhi.js"),__vite__mapDeps([12,2,3,1,4,5,6,7,8,9,10,11]),import.meta.url)),hre=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(fre,{...e})),mre={array:O3,object:O3,boolean:ste,color:hre,date:hte,number:yte,check:Jn,"inline-check":Jn,radio:Jn,"inline-radio":Jn,select:Jn,"multi-select":Jn,range:ire,text:ure,file:pre},L3=()=>y.createElement(y.Fragment,null,"-"),gre=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var v;let{key:a,control:o}=e,[i,s]=l.useState(!1),[u,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let f=l.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),h=l.useCallback(()=>s(!1),[]),p=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((v=e==null?void 0:e.type)==null?void 0:v.name)!=="function";return n&&b?y.createElement(ga,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(L3,null)}let m={name:a,argType:e,value:u.value,onChange:f,onBlur:h,onFocus:p},g=mre[o.type]||L3;return y.createElement(g,{...m,...o,controlType:o.type})},vre=_.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Ur({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),yre=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(vre,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},Bp=8,M3=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),bre=_.span(Ur,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),wre=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),Ere=_.div(Ur,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),xre=_.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),Cre=_(zM)({marginLeft:4}),Dre=_(CC)({marginLeft:4}),Sre=()=>y.createElement("span",null,"-"),QD=({text:e,simple:t})=>y.createElement(bre,{simple:t},e),Are=SD(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),kre=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return rX(t)},P3=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Bp)),r.map(n=>y.createElement(QD,{key:n,text:n===""?'""':n}))},_re=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return y.createElement(QD,{text:u});let d=kre(u),f=d.length;return f>Bp?y.createElement(M3,{isExpanded:i},P3(d,i),y.createElement(wre,{onClick:()=>s(!i)},i?"Show less...":`Show ${f-Bp} more...`)):y.createElement(M3,null,P3(d))}return y.createElement(OO,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(xre,{width:Are(n)},y.createElement(Rh,{language:"jsx",format:!1},n))},y.createElement(Ere,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(Cre,null):y.createElement(Dre,null)))},zd=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(Sre,null):y.createElement(_re,{value:e,initialExpandedArgs:t}),Fre=_.span({fontWeight:"bold"}),Ire=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Tre=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Ur({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Rre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?4:0})),Bre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),zre=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),$re=e=>e&&{summary:typeof e=="string"?e:e.name},xl=e=>{var v;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:u,description:d}=n,f=n.table||{},h=f.type||$re(n.type),p=f.defaultValue||n.defaultValue,m=(v=n.type)==null?void 0:v.required,g=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(zre,{expandable:i},y.createElement(Fre,null,u),m?y.createElement(Ire,{title:"Required"},"*"):null),o?null:y.createElement("td",null,g&&y.createElement(Tre,null,y.createElement(wD,null,d)),f.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(Bre,{hasDescription:g},y.createElement(zd,{value:h,initialExpandedArgs:s})),y.createElement(yre,{tags:f.jsDocTags})):y.createElement(Rre,{hasDescription:g},y.createElement(zd,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(zd,{value:p,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(gre,{...e,isHovered:t})):null)},Ore=_.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Lre=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Mre=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Pre=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Ore,{inAddonPanel:e},y.createElement(fC,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(Lre,null,e&&y.createElement(y.Fragment,null,y.createElement(ga,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(_M,null)," Watch 5m video"),y.createElement(Mre,null),y.createElement(ga,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(xp,null)," Read docs")),!e&&y.createElement(ga,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(xp,null)," Learn how to set that up"))}))},Nre=_(RM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),Hre=_(BM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),jre=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Vre=_.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Ure=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),qre=_.td(()=>({position:"relative"})),Wre=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${ln(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),N3=_.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),$d=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Ure:Vre,u=(r==null?void 0:r.length)||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",f=`${o?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Wre,{title:f},y.createElement(s,{colSpan:1},y.createElement(N3,{onClick:h=>i(!o),tabIndex:0},f),y.createElement(jre,null,o?y.createElement(Nre,null):y.createElement(Hre,null),t)),y.createElement(qre,{colSpan:a-1},y.createElement(N3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},f),o?null:d)),o?r:null)},Cl=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ie=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ye=_.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Te=[2,4,2,2],Gre=()=>y.createElement(y.Fragment,null,y.createElement(Cl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(Cl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(Cl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(Cl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"})))),Kre=_.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?se(.25,e.color.defaultText):se(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),Yre=_(bn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),Jre=_.span({display:"flex",justifyContent:"space-between"}),Zre={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},Xre=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:o,...i});else{let f=d.subsections[u]||[];f.push({key:o,...i}),d.subsections[u]=f}r.sections[s]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:o,...i}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:o,...i})});let n=Zre[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},Qre=(e,t,r)=>{try{return Ak(e,t,r)}catch(n){return Cee.warn(n.message),!1}},zp=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return y.createElement(OD,null,E," ",y.createElement(ga,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(xp,null)," Read the docs"))}if(s)return y.createElement(Gre,null);let{rows:u,args:d,globals:f}="rows"in e&&e,h=Xre(BG(u,E=>{var C;return!((C=E==null?void 0:E.table)!=null&&C.disable)&&Qre(E,d||{},f||{})}),i),p=h.ungrouped.length===0,m=Object.entries(h.sections).length===0,g=Object.entries(h.ungroupedSubsections).length===0;if(p&&m&&g)return y.createElement(Pre,{inAddonPanel:a});let v=1;t&&(v+=1),n||(v+=2);let b=Object.keys(h.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(Bx,null,y.createElement(Kre,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(Jre,null,"Control"," ",!s&&r&&y.createElement(Yre,{onClick:()=>r(),title:"Reset controls"},y.createElement($M,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>y.createElement(xl,{key:E.key,row:E,arg:d&&d[E.key],...x})),Object.entries(h.ungroupedSubsections).map(([E,C])=>y.createElement($d,{key:E,label:E,level:"subsection",colSpan:v},C.map(w=>y.createElement(xl,{key:w.key,row:w,arg:d&&d[w.key],expandable:b,...x})))),Object.entries(h.sections).map(([E,C])=>y.createElement($d,{key:E,label:E,level:"section",colSpan:v},C.ungrouped.map(w=>y.createElement(xl,{key:w.key,row:w,arg:d&&d[w.key],...x})),Object.entries(C.subsections).map(([w,D])=>y.createElement($d,{key:w,label:w,level:"subsection",colSpan:v},D.map(S=>y.createElement(xl,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...x})))))))))},ene=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(zp,{...r[0][1],...t}):y.createElement(yL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,u="div",d=a===0?t:{sort:t.sort};return y.createElement(u,{key:s,id:s,title:o},({active:f})=>f?y.createElement(zp,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(de,({theme:e})=>({...Zu(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:e.base==="light"?se(.2,e.color.defaultText):se(.6,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...Zu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));_.div(({theme:e})=>({...Zu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});_.div({display:"flex",flexFlow:"row wrap"});var tne=e=>`anchor--${e}`,rne=({storyId:e,children:t})=>y.createElement("div",{id:tne(e),className:"sb-anchor"},t);rt&&rt.__DOCS_CONTEXT__===void 0&&(rt.__DOCS_CONTEXT__=l.createContext(null),rt.__DOCS_CONTEXT__.displayName="DocsContext");var nr=rt?rt.__DOCS_CONTEXT__:l.createContext(null),Pn=(e,t)=>l.useContext(nr).resolveOf(e,t),nne=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),ane=e=>{if(e)return typeof e=="string"?e.includes("-")?nne(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function one(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function eS(e){return Eee(e,{allowFunction:!1})}var tS=l.createContext({sources:{}}),rS="--unknown--",ine=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:u,args:d=void 0,source:f,format:h}=typeof o=="string"?{id:o,source:i,format:s}:o,p=d?eS(d):rS;n(m=>({...m,[u]:{...m[u],[p]:{code:f,format:h}}}))};return t.on(Dm,a),()=>t.off(Dm,a)},[]),y.createElement(tS.Provider,{value:{sources:r}},e)},lne=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[eS(t)])||(a==null?void 0:a[rS])||{code:""}},sne=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:a}=t.parameters,o=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||o.type||tc.AUTO;if(o.code!==void 0)return o.code;let s=i===tc.DYNAMIC||i===tc.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},une=(e,t,r)=>{var m,g,v,b;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((g=(m=n==null?void 0:n.parameters)==null?void 0:m.docs)==null?void 0:g.source)||{},{code:i}=e,s=e.format??o.format,u=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:u,dark:d};let f=t.getStoryContext(n),h=e.__forceInitialArgs?f.initialArgs:f.unmappedArgs,p=lne(n.id,h,r);return s=p.format??((b=(v=n.parameters.docs)==null?void 0:v.source)==null?void 0:b.format)??!1,{code:sne({snippet:p.code,storyContext:{...f,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function cne(e,t){let r=dne([e],t);return r&&r[0]}function dne(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var pne=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},fne=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,u=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},hne=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(nr),r=pne(e,t),n=cne(r,t);if(!n)return y.createElement(PD,null);let a=fne(e,n,t);return a?y.createElement(Yee,{...a}):null},mne=e=>{var p,m,g,v,b,x,E,C,w,D;let t=l.useContext(nr),r=l.useContext(tS),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=Pn(n||"story",["story"]),i=une({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((m=(p=o.parameters.docs)==null?void 0:p.canvas)==null?void 0:m.layout)??"padded",u=e.withToolbar??((v=(g=o.parameters.docs)==null?void 0:g.canvas)==null?void 0:v.withToolbar)??!1,d=e.additionalActions??((x=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:x.additionalActions),f=e.sourceState??((C=(E=o.parameters.docs)==null?void 0:E.canvas)==null?void 0:C.sourceState)??"hidden",h=e.className??((D=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:D.className);return y.createElement(ND,{withSource:f==="none"?void 0:i,isExpanded:f==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(hne,{of:n||o.moduleExport,meta:e.meta,...e.story}))},gne=(e,t)=>{let r=vne(e,t);if(!r)throw new Error("No result when story was defined");return r},vne=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let u=d=>{d.storyId===n&&o(d.args)};return t.channel.on(k3,u),()=>t.channel.off(k3,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(Dee,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(See,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]},yne=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(_3,o),()=>t.channel.off(_3,o)},[t.channel]),[n]};function bne(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var wne=e=>{var w;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(nr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??u.include,f=e.exclude??u.exclude,h=e.sort??u.sort,[p,m,g]=gne(n,r),[v]=yne(n,r),b=A3(o,d,f);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(p).length>0?y.createElement(zp,{rows:b,sort:h,args:p,globals:v,updateArgs:m,resetArgs:g}):null;let x=ane(i),E=Object.fromEntries(Object.entries(s).map(([D,S])=>[D,{rows:A3(bne(S,a),d,f),sort:h}])),C={[x]:{rows:b,sort:h},...E};return y.createElement(ene,{tabs:C,sort:h,args:p,globals:v,updateArgs:m,resetArgs:g})},{document:nS}=rt,aS=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(zx,null,t);let n=e&&e.split("-");return y.createElement(LD,{language:n&&n[1]||"text",format:!1,code:t,...r})};function ym(e,t){e.channel.emit(Aee,t)}var $p=$L.a,Ene=({hash:e,children:t})=>{let r=l.useContext(nr);return y.createElement($p,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);nS.getElementById(a)&&ym(r,e)}},t)},oS=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(nr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement($p,{...e}):t.startsWith("#")?y.createElement(Ene,{hash:t},n):y.createElement($p,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),ym(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},iS=["h1","h2","h3","h4","h5","h6"],xne=iS.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Cne=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Dne=({as:e,id:t,children:r,...n})=>{let a=l.useContext(nr),o=xne[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Cne,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{nS.getElementById(t)&&ym(a,i)}},y.createElement(TM,null)),r)},bm=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Dne,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...ce(s,t)})},lS=iS.reduce((e,t)=>({...e,[t]:r=>y.createElement(bm,{as:t,...r})}),{}),Sne=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(fS`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${ln(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Mt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),XD=_.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),nre=_(XD)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),are=_.div({display:"flex",alignItems:"center",width:"100%"});function ore(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var ire=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{var m;let d=g=>{r(gte(g.target.value))},f=t!==void 0,h=l.useMemo(()=>ore(o),[o]),p=!!((m=u==null?void 0:u.table)!=null&&m.readonly);return y.createElement(are,{"aria-readonly":p},y.createElement(XD,null,n),y.createElement(rre,{id:Dt(e),type:"range",disabled:p,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),y.createElement(nre,{numberOFDecimalsPlaces:h,max:a},f?t.toFixed(h):"--"," / ",a))},lre=_.label({display:"flex"}),sre=_.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),ure=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var m;let s=g=>{r(g.target.value)},u=!!((m=i==null?void 0:i.table)!=null&&m.readonly),[d,f]=l.useState(!1),h=l.useCallback(()=>{r(""),f(!0)},[f]);if(t===void 0)return y.createElement($n,{variant:"outline",size:"medium",disabled:u,id:Vs(e),onClick:h},"Set string");let p=typeof t=="string";return y.createElement(lre,null,y.createElement(Li.Textarea,{id:Dt(e),maxLength:o,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:p?null:"error",name:e,value:p?t:"",onFocus:n,onBlur:a}),o&&y.createElement(sre,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},cre=_(Li.Input)({padding:10});function dre(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var pre=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let o=l.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(d){if(!d.target.files)return;let f=Array.from(d.target.files).map(h=>URL.createObjectURL(h));e(f),dre(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),y.createElement(cre,{ref:o,id:Dt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},fre=l.lazy(()=>Lp(()=>import("./Color-ERTF36HU-BQopY_3-.js"),__vite__mapDeps([12,2,3,1,4,5,6,7,8,9,10,11]),import.meta.url)),hre=e=>y.createElement(l.Suspense,{fallback:y.createElement("div",null)},y.createElement(fre,{...e})),mre={array:O3,object:O3,boolean:ste,color:hre,date:hte,number:yte,check:Jn,"inline-check":Jn,radio:Jn,"inline-radio":Jn,select:Jn,"multi-select":Jn,range:ire,text:ure,file:pre},L3=()=>y.createElement(y.Fragment,null,"-"),gre=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var v;let{key:a,control:o}=e,[i,s]=l.useState(!1),[u,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let f=l.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),h=l.useCallback(()=>s(!1),[]),p=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((v=e==null?void 0:e.type)==null?void 0:v.name)!=="function";return n&&b?y.createElement(ga,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(L3,null)}let m={name:a,argType:e,value:u.value,onChange:f,onBlur:h,onFocus:p},g=mre[o.type]||L3;return y.createElement(g,{...m,...o,controlType:o.type})},vre=_.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Ur({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),yre=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:y.createElement(y.Fragment,null,y.createElement(vre,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>y.createElement("tr",{key:o.name},y.createElement("td",null,y.createElement("code",null,o.name)),y.createElement("td",null,o.description))),a&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,e.returns.description)))))},Bp=8,M3=_.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),bre=_.span(Ur,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),wre=_.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),Ere=_.div(Ur,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),xre=_.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),Cre=_(zM)({marginLeft:4}),Dre=_(CC)({marginLeft:4}),Sre=()=>y.createElement("span",null,"-"),QD=({text:e,simple:t})=>y.createElement(bre,{simple:t},e),Are=SD(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),kre=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return rX(t)},P3=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Bp)),r.map(n=>y.createElement(QD,{key:n,text:n===""?'""':n}))},_re=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return y.createElement(QD,{text:u});let d=kre(u),f=d.length;return f>Bp?y.createElement(M3,{isExpanded:i},P3(d,i),y.createElement(wre,{onClick:()=>s(!i)},i?"Show less...":`Show ${f-Bp} more...`)):y.createElement(M3,null,P3(d))}return y.createElement(OO,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:y.createElement(xre,{width:Are(n)},y.createElement(Rh,{language:"jsx",format:!1},n))},y.createElement(Ere,{className:"sbdocs-expandable"},y.createElement("span",null,u),a?y.createElement(Cre,null):y.createElement(Dre,null)))},zd=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(Sre,null):y.createElement(_re,{value:e,initialExpandedArgs:t}),Fre=_.span({fontWeight:"bold"}),Ire=_.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Tre=_.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Ur({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Rre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?4:0})),Bre=_.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),zre=_.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),$re=e=>e&&{summary:typeof e=="string"?e:e.name},xl=e=>{var v;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:u,description:d}=n,f=n.table||{},h=f.type||$re(n.type),p=f.defaultValue||n.defaultValue,m=(v=n.type)==null?void 0:v.required,g=d!=null&&d!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(zre,{expandable:i},y.createElement(Fre,null,u),m?y.createElement(Ire,{title:"Required"},"*"):null),o?null:y.createElement("td",null,g&&y.createElement(Tre,null,y.createElement(wD,null,d)),f.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(Bre,{hasDescription:g},y.createElement(zd,{value:h,initialExpandedArgs:s})),y.createElement(yre,{tags:f.jsDocTags})):y.createElement(Rre,{hasDescription:g},y.createElement(zd,{value:h,initialExpandedArgs:s}))),o?null:y.createElement("td",null,y.createElement(zd,{value:p,initialExpandedArgs:s})),a?y.createElement("td",null,y.createElement(gre,{...e,isHovered:t})):null)},Ore=_.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Lre=_.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Mre=_.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Pre=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(Ore,{inAddonPanel:e},y.createElement(fC,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:y.createElement(Lre,null,e&&y.createElement(y.Fragment,null,y.createElement(ga,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},y.createElement(_M,null)," Watch 5m video"),y.createElement(Mre,null),y.createElement(ga,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(xp,null)," Read docs")),!e&&y.createElement(ga,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(xp,null)," Learn how to set that up"))}))},Nre=_(RM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),Hre=_(BM)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),jre=_.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Vre=_.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Ure=_.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),qre=_.td(()=>({position:"relative"})),Wre=_.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${ln(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),N3=_.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),$d=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?Ure:Vre,u=(r==null?void 0:r.length)||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",f=`${o?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(Wre,{title:f},y.createElement(s,{colSpan:1},y.createElement(N3,{onClick:h=>i(!o),tabIndex:0},f),y.createElement(jre,null,o?y.createElement(Nre,null):y.createElement(Hre,null),t)),y.createElement(qre,{colSpan:a-1},y.createElement(N3,{onClick:h=>i(!o),tabIndex:-1,style:{outline:"none"}},f),o?null:d)),o?r:null)},Cl=_.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ie=_.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ye=_.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Te=[2,4,2,2],Gre=()=>y.createElement(y.Fragment,null,y.createElement(Cl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(Cl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(Cl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"}))),y.createElement(Cl,null,y.createElement(Ie,{numColumn:Te[0]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[1]},y.createElement(ye,{width:"80%"}),y.createElement(ye,{width:"30%"})),y.createElement(Ie,{numColumn:Te[2]},y.createElement(ye,{width:"60%"})),y.createElement(Ie,{numColumn:Te[3]},y.createElement(ye,{width:"60%"})))),Kre=_.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?se(.25,e.color.defaultText):se(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),Yre=_(bn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),Jre=_.span({display:"flex",justifyContent:"space-between"}),Zre={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},Xre=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:o,...i});else{let f=d.subsections[u]||[];f.push({key:o,...i}),d.subsections[u]=f}r.sections[s]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:o,...i}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:o,...i})});let n=Zre[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},Qre=(e,t,r)=>{try{return Ak(e,t,r)}catch(n){return Cee.warn(n.message),!1}},zp=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return y.createElement(OD,null,E," ",y.createElement(ga,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(xp,null)," Read the docs"))}if(s)return y.createElement(Gre,null);let{rows:u,args:d,globals:f}="rows"in e&&e,h=Xre(BG(u,E=>{var C;return!((C=E==null?void 0:E.table)!=null&&C.disable)&&Qre(E,d||{},f||{})}),i),p=h.ungrouped.length===0,m=Object.entries(h.sections).length===0,g=Object.entries(h.ungroupedSubsections).length===0;if(p&&m&&g)return y.createElement(Pre,{inAddonPanel:a});let v=1;t&&(v+=1),n||(v+=2);let b=Object.keys(h.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return y.createElement(Bx,null,y.createElement(Kre,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(Jre,null,"Control"," ",!s&&r&&y.createElement(Yre,{onClick:()=>r(),title:"Reset controls"},y.createElement($M,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>y.createElement(xl,{key:E.key,row:E,arg:d&&d[E.key],...x})),Object.entries(h.ungroupedSubsections).map(([E,C])=>y.createElement($d,{key:E,label:E,level:"subsection",colSpan:v},C.map(w=>y.createElement(xl,{key:w.key,row:w,arg:d&&d[w.key],expandable:b,...x})))),Object.entries(h.sections).map(([E,C])=>y.createElement($d,{key:E,label:E,level:"section",colSpan:v},C.ungrouped.map(w=>y.createElement(xl,{key:w.key,row:w,arg:d&&d[w.key],...x})),Object.entries(C.subsections).map(([w,D])=>y.createElement($d,{key:w,label:w,level:"subsection",colSpan:v},D.map(S=>y.createElement(xl,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...x})))))))))},ene=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(zp,{...r[0][1],...t}):y.createElement(yL,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,u="div",d=a===0?t:{sort:t.sort};return y.createElement(u,{key:s,id:s,title:o},({active:f})=>f?y.createElement(zp,{key:`prop_table_${o}`,...i,...d}):null)}))};_.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));_.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});_.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});_.div(de,({theme:e})=>({...Zu(e),margin:"25px 0 40px",padding:"30px 20px"}));_.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));_.div(({theme:e})=>({color:e.base==="light"?se(.2,e.color.defaultText):se(.6,e.color.defaultText)}));_.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});_.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));_.div({display:"flex",flexDirection:"row"});_.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));_.div(({theme:e})=>({...Zu(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));_.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});_.div({flex:1,display:"flex",flexDirection:"row"});_.div({display:"flex",alignItems:"flex-start"});_.div({flex:"0 0 30%"});_.div({flex:1});_.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));_.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));_.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));_.div(({theme:e})=>({...Zu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));_.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});_.div({display:"flex",flexFlow:"row wrap"});var tne=e=>`anchor--${e}`,rne=({storyId:e,children:t})=>y.createElement("div",{id:tne(e),className:"sb-anchor"},t);rt&&rt.__DOCS_CONTEXT__===void 0&&(rt.__DOCS_CONTEXT__=l.createContext(null),rt.__DOCS_CONTEXT__.displayName="DocsContext");var nr=rt?rt.__DOCS_CONTEXT__:l.createContext(null),Pn=(e,t)=>l.useContext(nr).resolveOf(e,t),nne=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),ane=e=>{if(e)return typeof e=="string"?e.includes("-")?nne(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function one(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function eS(e){return Eee(e,{allowFunction:!1})}var tS=l.createContext({sources:{}}),rS="--unknown--",ine=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:u,args:d=void 0,source:f,format:h}=typeof o=="string"?{id:o,source:i,format:s}:o,p=d?eS(d):rS;n(m=>({...m,[u]:{...m[u],[p]:{code:f,format:h}}}))};return t.on(Dm,a),()=>t.off(Dm,a)},[]),y.createElement(tS.Provider,{value:{sources:r}},e)},lne=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[eS(t)])||(a==null?void 0:a[rS])||{code:""}},sne=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:a}=t.parameters,o=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||o.type||tc.AUTO;if(o.code!==void 0)return o.code;let s=i===tc.DYNAMIC||i===tc.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},une=(e,t,r)=>{var m,g,v,b;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((g=(m=n==null?void 0:n.parameters)==null?void 0:m.docs)==null?void 0:g.source)||{},{code:i}=e,s=e.format??o.format,u=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:u,dark:d};let f=t.getStoryContext(n),h=e.__forceInitialArgs?f.initialArgs:f.unmappedArgs,p=lne(n.id,h,r);return s=p.format??((b=(v=n.parameters.docs)==null?void 0:v.source)==null?void 0:b.format)??!1,{code:sne({snippet:p.code,storyContext:{...f,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function cne(e,t){let r=dne([e],t);return r&&r[0]}function dne(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var pne=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},fne=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,u=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},hne=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(nr),r=pne(e,t),n=cne(r,t);if(!n)return y.createElement(PD,null);let a=fne(e,n,t);return a?y.createElement(Yee,{...a}):null},mne=e=>{var p,m,g,v,b,x,E,C,w,D;let t=l.useContext(nr),r=l.useContext(tS),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=Pn(n||"story",["story"]),i=une({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((m=(p=o.parameters.docs)==null?void 0:p.canvas)==null?void 0:m.layout)??"padded",u=e.withToolbar??((v=(g=o.parameters.docs)==null?void 0:g.canvas)==null?void 0:v.withToolbar)??!1,d=e.additionalActions??((x=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:x.additionalActions),f=e.sourceState??((C=(E=o.parameters.docs)==null?void 0:E.canvas)==null?void 0:C.sourceState)??"hidden",h=e.className??((D=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:D.className);return y.createElement(ND,{withSource:f==="none"?void 0:i,isExpanded:f==="shown",withToolbar:u,additionalActions:d,className:h,layout:s},y.createElement(hne,{of:n||o.moduleExport,meta:e.meta,...e.story}))},gne=(e,t)=>{let r=vne(e,t);if(!r)throw new Error("No result when story was defined");return r},vne=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let u=d=>{d.storyId===n&&o(d.args)};return t.channel.on(k3,u),()=>t.channel.off(k3,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(Dee,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(See,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]},yne=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(_3,o),()=>t.channel.off(_3,o)},[t.channel]),[n]};function bne(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var wne=e=>{var w;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(nr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??u.include,f=e.exclude??u.exclude,h=e.sort??u.sort,[p,m,g]=gne(n,r),[v]=yne(n,r),b=A3(o,d,f);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(p).length>0?y.createElement(zp,{rows:b,sort:h,args:p,globals:v,updateArgs:m,resetArgs:g}):null;let x=ane(i),E=Object.fromEntries(Object.entries(s).map(([D,S])=>[D,{rows:A3(bne(S,a),d,f),sort:h}])),C={[x]:{rows:b,sort:h},...E};return y.createElement(ene,{tabs:C,sort:h,args:p,globals:v,updateArgs:m,resetArgs:g})},{document:nS}=rt,aS=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(zx,null,t);let n=e&&e.split("-");return y.createElement(LD,{language:n&&n[1]||"text",format:!1,code:t,...r})};function ym(e,t){e.channel.emit(Aee,t)}var $p=$L.a,Ene=({hash:e,children:t})=>{let r=l.useContext(nr);return y.createElement($p,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);nS.getElementById(a)&&ym(r,e)}},t)},oS=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(nr);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement($p,{...e}):t.startsWith("#")?y.createElement(Ene,{hash:t},n):y.createElement($p,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),ym(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},iS=["h1","h2","h3","h4","h5","h6"],xne=iS.reduce((e,t)=>({...e,[t]:_(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Cne=_.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Dne=({as:e,id:t,children:r,...n})=>{let a=l.useContext(nr),o=xne[e],i=`#${t}`;return y.createElement(o,{id:t,...n},y.createElement(Cne,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{nS.getElementById(t)&&ym(a,i)}},y.createElement(TM,null)),r)},bm=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return y.createElement(Dne,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return y.createElement(o,{...ce(s,t)})},lS=iS.reduce((e,t)=>({...e,[t]:r=>y.createElement(bm,{as:t,...r})}),{}),Sne=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(fS`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' This is often caused by not wrapping the child in a template string. This is invalid: diff --git a/assets/EmailButton.stories-DEGPpVJx.js b/assets/EmailButton.stories-DDhgbBJo.js similarity index 97% rename from assets/EmailButton.stories-DEGPpVJx.js rename to assets/EmailButton.stories-DDhgbBJo.js index ca2ed49a..e62b2952 100644 --- a/assets/EmailButton.stories-DEGPpVJx.js +++ b/assets/EmailButton.stories-DDhgbBJo.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as m}from"./Button-CXn0Rl0f.js";import{R as p}from"./Row-BXpfxHoR.js";import{u as d}from"./useOpenMailUrl-Cpc3v_r1.js";import{a as c}from"./accessibleText-gmNPjmn1.js";import{P as g}from"./index-DOpK3Ow6.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-CEE--Juu.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-XPwQYiUg.js";const v=e=>g.OS==="ios"?e.replaceAll("."," punt ").replaceAll("-"," min "):e,l=({email:e,subject:n,...u})=>{const s=d();return r.jsx(p,{children:r.jsx(m,{...u,accessibilityLabel:c("Stuur een e-mail naar",v(e)),ellipsizeMode:"tail",iconName:"email",label:e,onPress:()=>{s(e,n)}})})};try{l.displayName="EmailButton",l.__docgenInfo={description:"",displayName:"EmailButton",props:{email:{defaultValue:null,description:"",name:"email",required:!0,type:{name:"string"}},subject:{defaultValue:null,description:"",name:"subject",required:!1,type:{name:"string"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}const $={component:l,argTypes:{onPress:{action:"onPress"}}},a={args:{email:"ontwikkelingzeeburgereiland@amsterdam.nl",subject:"Vraag over zeeburg."}};var t,i,o;a.parameters={...a.parameters,docs:{...(t=a.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{B as m}from"./Button-DAm4UwbF.js";import{R as p}from"./Row-BXpfxHoR.js";import{u as d}from"./useOpenMailUrl-Cpc3v_r1.js";import{a as c}from"./accessibleText-gmNPjmn1.js";import{P as g}from"./index-DOpK3Ow6.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-CEE--Juu.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-XPwQYiUg.js";const v=e=>g.OS==="ios"?e.replaceAll("."," punt ").replaceAll("-"," min "):e,l=({email:e,subject:n,...u})=>{const s=d();return r.jsx(p,{children:r.jsx(m,{...u,accessibilityLabel:c("Stuur een e-mail naar",v(e)),ellipsizeMode:"tail",iconName:"email",label:e,onPress:()=>{s(e,n)}})})};try{l.displayName="EmailButton",l.__docgenInfo={description:"",displayName:"EmailButton",props:{email:{defaultValue:null,description:"",name:"email",required:!0,type:{name:"string"}},subject:{defaultValue:null,description:"",name:"subject",required:!1,type:{name:"string"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}const $={component:l,argTypes:{onPress:{action:"onPress"}}},a={args:{email:"ontwikkelingzeeburgereiland@amsterdam.nl",subject:"Vraag over zeeburg."}};var t,i,o;a.parameters={...a.parameters,docs:{...(t=a.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { email: 'ontwikkelingzeeburgereiland@amsterdam.nl', subject: 'Vraag over zeeburg.' diff --git a/assets/EmptyMessage.stories-CR60fbG6.js b/assets/EmptyMessage.stories-uQmD_nYy.js similarity index 96% rename from assets/EmptyMessage.stories-CR60fbG6.js rename to assets/EmptyMessage.stories-uQmD_nYy.js index af038def..5518dfc3 100644 --- a/assets/EmptyMessage.stories-CR60fbG6.js +++ b/assets/EmptyMessage.stories-uQmD_nYy.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{S as l}from"./SingleSelectable-Bg8zzmoU.js";import{P as c}from"./Paragraph-CKYtcIcp.js";import{T as d}from"./Title-2Den3Qhs.js";import{u}from"./useAccessibilityAnnounce-DO7gK7r3.js";import{D as g}from"./duration-A4BOymd5.js";import{a as f}from"./accessibleText-gmNPjmn1.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-CEE--Juu.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./development-DYCnWZjk.js";import"./index-kJeFfQx-.js";const s=({showTitle:t=!0,testID:p,text:r})=>{const o=t?"Helaas …":"";return u(`${o} ${r}`,g.normal),a.jsxs(l,{accessibilityLabel:f(o,r),accessibilityLanguage:"nl-NL",testID:p,children:[!!t&&a.jsx(d,{level:"h3",text:o}),a.jsx(c,{children:r})]})};try{s.displayName="EmptyMessage",s.__docgenInfo={description:"",displayName:"EmptyMessage",props:{showTitle:{defaultValue:{value:"true"},description:"",name:"showTitle",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const H={component:s},e={args:{text:"We hebben geen werkzaamheden gevonden voor dit adres."}};var i,m,n;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{S as l}from"./SingleSelectable-Bg8zzmoU.js";import{P as c}from"./Paragraph-DkRs_aGj.js";import{T as d}from"./Title-9ScEYPym.js";import{u}from"./useAccessibilityAnnounce-DO7gK7r3.js";import{D as g}from"./duration-A4BOymd5.js";import{a as f}from"./accessibleText-gmNPjmn1.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-CEE--Juu.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./development-DYCnWZjk.js";import"./index-kJeFfQx-.js";const s=({showTitle:t=!0,testID:p,text:r})=>{const o=t?"Helaas …":"";return u(`${o} ${r}`,g.normal),a.jsxs(l,{accessibilityLabel:f(o,r),accessibilityLanguage:"nl-NL",testID:p,children:[!!t&&a.jsx(d,{level:"h3",text:o}),a.jsx(c,{children:r})]})};try{s.displayName="EmptyMessage",s.__docgenInfo={description:"",displayName:"EmptyMessage",props:{showTitle:{defaultValue:{value:"true"},description:"",name:"showTitle",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const H={component:s},e={args:{text:"We hebben geen werkzaamheden gevonden voor dit adres."}};var i,m,n;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { text: 'We hebben geen werkzaamheden gevonden voor dit adres.' } diff --git a/assets/FauxButton.stories-9CnHWFoY.js b/assets/FauxButton.stories-DnlhMAWp.js similarity index 95% rename from assets/FauxButton.stories-9CnHWFoY.js rename to assets/FauxButton.stories-DnlhMAWp.js index d2ffaad2..7519da59 100644 --- a/assets/FauxButton.stories-9CnHWFoY.js +++ b/assets/FauxButton.stories-DnlhMAWp.js @@ -1 +1 @@ -import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{c as p}from"./config-BZnShabN.js";import{P as c}from"./Phrase-DprhL3Se.js";import{V as m}from"./index-BDsvWohO.js";import{s as u}from"./index-CEE--Juu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const e=({children:o,testID:i})=>r.jsx(m,{style:l.button,children:r.jsx(c,{testID:i,children:o})}),l=u.create({button:{minHeight:p.buttonHeight,flexDirection:"column",justifyContent:"center"}});try{e.displayName="FauxButton",e.__docgenInfo={description:"A faux button is not an actual button, but a helper component for a specific design pattern: when label and a button are horizontally aligned, this component can be used to align the baseline of the label text with the baseline of the button text.",displayName:"FauxButton",props:{testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const w={component:e,args:{children:"Hi!"},argTypes:{onPress:{action:"onPress"}}},t={};var n,a,s;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(s=(a=t.parameters)==null?void 0:a.docs)==null?void 0:s.source}}};const H=["Default"];export{t as Default,H as __namedExportsOrder,w as default}; +import{j as r}from"./jsx-runtime-Bxcv0yjW.js";import{c as p}from"./config-BZnShabN.js";import{P as c}from"./Phrase-t0rOiClQ.js";import{V as m}from"./index-BDsvWohO.js";import{s as u}from"./index-CEE--Juu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const e=({children:o,testID:i})=>r.jsx(m,{style:l.button,children:r.jsx(c,{testID:i,children:o})}),l=u.create({button:{minHeight:p.buttonHeight,flexDirection:"column",justifyContent:"center"}});try{e.displayName="FauxButton",e.__docgenInfo={description:"A faux button is not an actual button, but a helper component for a specific design pattern: when label and a button are horizontally aligned, this component can be used to align the baseline of the label text with the baseline of the button text.",displayName:"FauxButton",props:{testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const w={component:e,args:{children:"Hi!"},argTypes:{onPress:{action:"onPress"}}},t={};var n,a,s;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(s=(a=t.parameters)==null?void 0:a.docs)==null?void 0:s.source}}};const H=["Default"];export{t as Default,H as __namedExportsOrder,w as default}; diff --git a/assets/FollowButton.stories-Cj_34t8u.js b/assets/FollowButton.stories-BfrkBYsN.js similarity index 67% rename from assets/FollowButton.stories-Cj_34t8u.js rename to assets/FollowButton.stories-BfrkBYsN.js index b351ecaf..59b6434c 100644 --- a/assets/FollowButton.stories-Cj_34t8u.js +++ b/assets/FollowButton.stories-BfrkBYsN.js @@ -1,4 +1,4 @@ -import{j as u}from"./jsx-runtime-Bxcv0yjW.js";import{r as t}from"./index-mfbfsM12.js";import{B as n}from"./Button-CXn0Rl0f.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const l=({followed:o,onPress:e,...r})=>{const p=t.useCallback(()=>e(!1),[e]),c=t.useCallback(()=>e(!0),[e]);return o?u.jsx(n,{iconName:"check-mark",label:"Volgend",onPress:c,variant:"primary",...r}):u.jsx(n,{iconName:"enlarge",label:"Volgen",onPress:p,variant:"secondary",...r})};try{l.displayName="FollowButton",l.__docgenInfo={description:"",displayName:"FollowButton",props:{followed:{defaultValue:null,description:"",name:"followed",required:!0,type:{name:"boolean"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"(followed: boolean) => void"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"alarm"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}const J={component:l,argTypes:{onPress:{action:"onPress"}}},a={args:{followed:!1}};var i,s,m;a.parameters={...a.parameters,docs:{...(i=a.parameters)==null?void 0:i.docs,source:{originalSource:`{ +import{j as u}from"./jsx-runtime-Bxcv0yjW.js";import{r as t}from"./index-mfbfsM12.js";import{B as n}from"./Button-DAm4UwbF.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const l=({followed:o,onPress:e,...r})=>{const p=t.useCallback(()=>e(!1),[e]),c=t.useCallback(()=>e(!0),[e]);return o?u.jsx(n,{iconName:"check-mark",label:"Volgend",onPress:c,variant:"primary",...r}):u.jsx(n,{iconName:"enlarge",label:"Volgen",onPress:p,variant:"secondary",...r})};try{l.displayName="FollowButton",l.__docgenInfo={description:"",displayName:"FollowButton",props:{followed:{defaultValue:null,description:"",name:"followed",required:!0,type:{name:"boolean"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"(followed: boolean) => void"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"alarm"'},{value:'"alert"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"email"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"list"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"search"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}const J={component:l,argTypes:{onPress:{action:"onPress"}}},a={args:{followed:!1}};var i,s,m;a.parameters={...a.parameters,docs:{...(i=a.parameters)==null?void 0:i.docs,source:{originalSource:`{ args: { followed: false } diff --git a/assets/HtmlContent-DVMBJKEX.js b/assets/HtmlContent-BN7YmfBH.js similarity index 99% rename from assets/HtmlContent-DVMBJKEX.js rename to assets/HtmlContent-BN7YmfBH.js index 29eaa6d5..1f27b84a 100644 --- a/assets/HtmlContent-DVMBJKEX.js +++ b/assets/HtmlContent-BN7YmfBH.js @@ -1,4 +1,4 @@ -import{j as Ue}from"./jsx-runtime-Bxcv0yjW.js";import{r as L,R as Sr}from"./index-mfbfsM12.js";import{c as I,a as st,g as c9}from"./_commonjsHelpers-BosuxZz1.js";import{r as ie,I as u9}from"./index-eRgc22Hn.js";import{p as Go}from"./index-Dk74W0Oi.js";import{s as nl}from"./index-CEE--Juu.js";import{V as Mi}from"./index-BDsvWohO.js";import{T as l9}from"./index-BypDj3rK.js";import{C as d9}from"./Column-DVJ0Grcf.js";import{R as f9}from"./Row-BXpfxHoR.js";import{P as p9}from"./Phrase-DprhL3Se.js";import{u as h9,a as g9,m as m9,c as ol,g as v9}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import{L as y9}from"./ListItemMarker-bpCY8oNQ.js";import{u as _9}from"./useIsScreenReaderEnabled-BGYkQQWr.js";import{u as b9}from"./useOpenMailUrl-Cpc3v_r1.js";import{u as S9}from"./useOpenPhoneUrl-BpjRyIpq.js";import{u as w9,E as $9}from"./useTrackException-BhQuYC5A.js";import{L as P9,A as x9}from"./index-XPwQYiUg.js";import{u as C9}from"./useDeviceContext-DGl4H2w7.js";import{u as Na}from"./useThemable-CjWxbHxI.js";import{P as T9}from"./index-DOpK3Ow6.js";var Oa=40,La=41,oo=39,Aa=34,qa=92,cr=47,Da=44,Ia=58,ao=42,E9=117,M9=85,R9=43,N9=/^[a-f0-9?-]+$/i,O9=function(e){for(var t=[],r=e,n,o,i,a,c,l,d,p,v=0,h=r.charCodeAt(v),N=r.length,T=[{nodes:t}],E=0,M,D="",H="",k="";v=48&&l<=57)return!0;var d=a.charCodeAt(2);return l===r&&d>=48&&d<=57}return c===r?(l=a.charCodeAt(1),l>=48&&l<=57):c>=48&&c<=57}return ka=function(a){var c=0,l=a.length,d,p,v;if(l===0||!i(a))return!1;for(d=a.charCodeAt(c),(d===t||d===e)&&c++;c57));)c+=1;if(d=a.charCodeAt(c),p=a.charCodeAt(c+1),d===r&&p>=48&&p<=57)for(c+=2;c57));)c+=1;if(d=a.charCodeAt(c),p=a.charCodeAt(c+1),v=a.charCodeAt(c+2),(d===n||d===o)&&(p>=48&&p<=57||(p===t||p===e)&&v>=48&&v<=57))for(c+=p===t||p===e?3:2;c57));)c+=1;return{number:a.slice(0,c),unit:a.slice(c)}},ka}var D9=O9,il=L9,sl=A9;function $t(e){return this instanceof $t?(this.nodes=D9(e),this):new $t(e)}$t.prototype.toString=function(){return Array.isArray(this.nodes)?sl(this.nodes):""};$t.prototype.walk=function(e,t){return il(this.nodes,e,t),this};$t.unit=q9();$t.walk=il;$t.stringify=sl;var I9=$t,cl={},Ri={},Qo={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.default=void 0;let ul;ul=null;var k9=ul;Sn.default=k9;Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;var pc=V9(L);F9(Sn);function F9(e){return e&&e.__esModule?e:{default:e}}function ll(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ll=function(n){return n?r:t})(e)}function V9(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ll(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}const z9=function(t){return pc.default.createElement(pc.Fragment,null,t.children)};var U9=z9;Qo.default=U9;var Ie={},Ni={},Xo={},Yo={},B9={},Rr={},ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.default=ke.HTMLContentModel=void 0;let Oo;ke.HTMLContentModel=Oo;(function(e){e.block="block",e.textual="textual",e.mixed="mixed",e.none="none"})(Oo||(ke.HTMLContentModel=Oo={}));var W9=Oo;ke.default=W9;Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=void 0;var qt=H9(ke);function H9(e){return e&&e.__esModule?e:{default:e}}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const j9=["textual","edits","anchor"],G9=["tabular","grouping","sectioning"];class fn{constructor({tagName:t,contentModel:r,isOpaque:n,mixedUAStyles:o,isVoid:i,getUADerivedStyleFromAttributes:a,getMixedUAStyles:c,setMarkersForTNode:l,getReactNativeProps:d,reactNativeProps:p}){nt(this,"tagName",void 0),nt(this,"contentModel",void 0),nt(this,"isOpaque",void 0),nt(this,"isVoid",void 0),nt(this,"mixedUAStyles",void 0),nt(this,"reactNativeProps",void 0),nt(this,"getUADerivedStyleFromAttributes",void 0),nt(this,"getMixedUAStyles",void 0),nt(this,"getReactNativeProps",void 0),nt(this,"setMarkersForTNode",void 0),this.tagName=t,this.contentModel=r,this.isOpaque=n||!1,this.isVoid=i,this.mixedUAStyles=o,this.getUADerivedStyleFromAttributes=a,this.getMixedUAStyles=c,this.setMarkersForTNode=l,this.getReactNativeProps=d,this.reactNativeProps=p}static fromCustomModel(t){const{contentModel:r,tagName:n,isOpaque:o=!1,isVoid:i=!1,...a}=t;return new fn({tagName:n,contentModel:r,isOpaque:o,isVoid:i,...a})}static fromNativeModel(t){const{category:r,isOpaque:n,isVoid:o=!1,...i}=t,a=j9.indexOf(r)!==-1,c=a||G9.indexOf(r)!==-1,l=r==="anchor"||r==="edits"?qt.default.mixed:a?qt.default.textual:c?qt.default.block:qt.default.none;return new fn({isVoid:o,contentModel:l,isOpaque:n??r==="embedded",...i})}isTranslatableBlock(){return this.contentModel===qt.default.block}isTranslatableTextual(){return this.contentModel===qt.default.textual||this.contentModel===qt.default.mixed}extend(t){const r=typeof t=="function"?t(this):t;return new fn({...this,...r})}}Rr.default=fn;var Nr={},Ye={},Xt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Xt);var Q={},Yt=I&&I.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),pn=I&&I.__assign||function(){return pn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(Oi);Q.NodeWithChildren=Jo;var hl=function(e){Yt(t,e);function t(r){return e.call(this,de.ElementType.Root,r)||this}return t}(Jo);Q.Document=hl;var gl=function(e){Yt(t,e);function t(r,n,o,i){o===void 0&&(o=[]),i===void 0&&(i=r==="script"?de.ElementType.Script:r==="style"?de.ElementType.Style:de.ElementType.Tag);var a=e.call(this,i,o)||this;return a.name=r,a.attribs=n,a}return Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,i;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[n]}})},enumerable:!1,configurable:!0}),t}(Jo);Q.Element=gl;function ml(e){return(0,de.isTag)(e)}Q.isTag=ml;function vl(e){return e.type===de.ElementType.CDATA}Q.isCDATA=vl;function yl(e){return e.type===de.ElementType.Text}Q.isText=yl;function _l(e){return e.type===de.ElementType.Comment}Q.isComment=_l;function bl(e){return e.type===de.ElementType.Directive}Q.isDirective=bl;function Sl(e){return e.type===de.ElementType.Root}Q.isDocument=Sl;function X9(e){return Object.prototype.hasOwnProperty.call(e,"children")}Q.hasChildren=X9;function Li(e,t){t===void 0&&(t=!1);var r;if(yl(e))r=new dl(e.data);else if(_l(e))r=new fl(e.data);else if(ml(e)){var n=t?Fa(e.children):[],o=new gl(e.name,pn({},e.attribs),n);n.forEach(function(l){return l.parent=o}),e.namespace!=null&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=pn({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=pn({},e["x-attribsPrefix"])),r=o}else if(vl(e)){var n=t?Fa(e.children):[],i=new Jo(de.ElementType.CDATA,n);n.forEach(function(d){return d.parent=i}),r=i}else if(Sl(e)){var n=t?Fa(e.children):[],a=new hl(n);n.forEach(function(d){return d.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(bl(e)){var c=new pl(e.name,e.data);e["x-name"]!=null&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Q.cloneNode=Li;function Fa(e){for(var t=e.map(function(n){return Li(n,!0)}),r=1;r":null}},k=function(g){return function(S){return S.type===g?S.value:null}},F=function(g,S){return S===void 0&&(S=String),function(C){if(C.type!=="word")return null;var O=C.value.match(g);if(O===null)return null;var W=S(O[1]);return W}},z=H(function(V){return V.type==="space"}),Y=H(function(V){return V.type==="div"&&V.value==="/"}),oe=H(function(V){return V.type==="div"&&V.value===","}),ee=k("word"),_e=F(p),be=F(v),re=F(N,Number),te=F(T,Number),s=F(E),u=F(M,function(V){return V.toLowerCase()}),f=F(D),m=F(h),_=a,w=d,$=F(/^(none|underline|line-through)$/i),P=function(g){var S=g.expect(re);return g.hasTokens()&&(g.expect(Y),S/=g.expect(re)),{aspectRatio:S}},x=F(/^(solid|dashed|dotted)$/),U=1,R="black",X="solid",G=function(g){var S,C,O;if(g.matches(_e))return g.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var W=0;W<3&&g.hasTokens();)W!==0&&g.expect(z),S===void 0&&g.matches(te,s)?S=g.lastValue:C===void 0&&g.matches(w)?C=g.lastValue:O===void 0&&g.matches(x)?O=g.lastValue:g.throw(),W+=1;return g.expectEmpty(),S===void 0&&(S=U),C===void 0&&(C=R),O===void 0&&(O=X),{borderWidth:S,borderColor:C,borderStyle:O}},j=function(g){var S=g.types,C=S===void 0?[te,s,f]:S,O=g.directions,W=O===void 0?["Top","Right","Bottom","Left"]:O,Z=g.prefix,Me=Z===void 0?"":Z,_t=g.suffix,Ma=_t===void 0?"":_t;return function(rt){var sr,At=[];for(At.push(rt.expect.apply(rt,C));At.length<4&&rt.hasTokens();)rt.expect(z),At.push(rt.expect.apply(rt,C));rt.expectEmpty();var Ra=At[0],sc=At[1],cc=sc===void 0?Ra:sc,uc=At[2],a9=uc===void 0?Ra:uc,lc=At[3],i9=lc===void 0?cc:lc,no=function(s9){return""+Me+W[s9]+Ma};return sr={},sr[no(0)]=Ra,sr[no(1)]=cc,sr[no(2)]=a9,sr[no(3)]=i9,sr}},ue=function(g){var S=g.expect(te),C=g.matches(z)?g.expect(te):S;return g.expectEmpty(),{width:S,height:C}},se=function(g){var S,C,O,W;if(g.matches(_e))return g.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var Z=!1;g.hasTokens();)Z&&g.expect(z),S===void 0&&g.matches(te,s)?(S=g.lastValue,g.expect(z),C=g.expect(te,s),g.saveRewindPoint(),g.matches(z)&&g.matches(te,s)?O=g.lastValue:g.rewind()):W===void 0&&g.matches(w)?W=g.lastValue:g.throw(),Z=!0;return S===void 0&&g.throw(),{offset:{width:S,height:C},radius:O!==void 0?O:0,color:W!==void 0?W:"black"}},ce=function(g){var S=se(g),C=S.offset,O=S.radius,W=S.color;return{shadowOffset:C,shadowRadius:O,shadowColor:W,shadowOpacity:1}},je=1,ge=1,Ee=0,Le=function(g){var S,C,O;if(g.matches(_e))return g.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(g.saveRewindPoint(),g.matches(be)&&!g.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};g.rewind();for(var W=0;W<2&&g.hasTokens();)W!==0&&g.expect(z),S===void 0&&g.matches(re)?(S=g.lastValue,g.saveRewindPoint(),g.matches(z)&&g.matches(re)?C=g.lastValue:g.rewind()):O===void 0&&g.matches(te,s,f)?O=g.lastValue:O===void 0&&g.matches(be)?O="auto":g.throw(),W+=1;return g.expectEmpty(),S===void 0&&(S=je),C===void 0&&(C=ge),O===void 0&&(O=Ee),{flexGrow:S,flexShrink:C,flexBasis:O}},tt=F(/(nowrap|wrap|wrap-reverse)/),dt=F(/(row|row-reverse|column|column-reverse)/),Yr="nowrap",mp="row",vp=function(g){for(var S,C,O=0;O<2&&g.hasTokens();)O!==0&&g.expect(z),S===void 0&&g.matches(tt)?S=g.lastValue:C===void 0&&g.matches(dt)?C=g.lastValue:g.throw(),O+=1;return g.expectEmpty(),S===void 0&&(S=Yr),C===void 0&&(C=mp),{flexWrap:S,flexDirection:C}},tc=function(g){var S;if(g.matches(_))S=g.lastValue;else for(S=g.expect(m);g.hasTokens();){g.expect(z);var C=g.expect(m);S+=" "+C}return g.expectEmpty(),{fontFamily:S}},yp=F(/^(normal)$/),_p=F(/^(italic)$/),bp=F(/^([1-9]00|bold)$/),Sp=F(/^(small-caps)$/),wp="normal",$p="normal",Pp=[],xp=function(g){for(var S,C,O,W,Z=0;Z<3&&g.hasTokens();){if(!g.matches(yp))if(S===void 0&&g.matches(_p))S=g.lastValue;else if(C===void 0&&g.matches(bp))C=g.lastValue;else if(O===void 0&&g.matches(Sp))O=[g.lastValue];else break;g.expect(z),Z+=1}var Me=g.expect(te,s);g.matches(Y)&&(W=g.expect(te,s)),g.expect(z);var _t=tc(g),Ma=_t.fontFamily;S===void 0&&(S=wp),C===void 0&&(C=$p),O===void 0&&(O=Pp);var rt={fontStyle:S,fontWeight:C,fontVariant:O,fontSize:Me,fontFamily:Ma};return W!==void 0&&(rt.lineHeight=W),rt},Cp=function(g){for(var S=[g.expect(m)];g.hasTokens();)g.expect(z),S.push(g.expect(m));return{fontVariant:S}},Tp=F(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),Ep=F(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),Mp=function(g){var S=g.expect(Tp),C;return g.hasTokens()?(g.expect(z),C=g.expect(Ep)):C="stretch",g.expectEmpty(),{alignContent:S,justifyContent:C}},Rp=F(/^(solid|double|dotted|dashed)$/),Np="none",Op="solid",Lp="black",Ap=function(g){for(var S,C,O,W=!1;g.hasTokens();){if(W&&g.expect(z),S===void 0&&g.matches($)){var Z=[g.lastValue.toLowerCase()];g.saveRewindPoint(),Z[0]!=="none"&&g.matches(z)&&g.matches($)?(Z.push(g.lastValue.toLowerCase()),Z.sort().reverse()):g.rewind(),S=Z.join(" ")}else C===void 0&&g.matches(Rp)?C=g.lastValue:O===void 0&&g.matches(w)?O=g.lastValue:g.throw();W=!0}return{textDecorationLine:S!==void 0?S:Np,textDecorationColor:O!==void 0?O:Lp,textDecorationStyle:C!==void 0?C:Op}},qp=function(g){for(var S=[],C=!1;g.hasTokens();)C&&g.expect(z),S.push(g.expect($).toLowerCase()),C=!0;return S.sort().reverse(),{textDecorationLine:S.join(" ")}},Dp=function(g){var S=se(g),C=S.offset,O=S.radius,W=S.color;return{textShadowOffset:C,textShadowRadius:O,textShadowColor:W}},xa=function(g){return function(S){var C=S.expect(g);return S.expectEmpty(),C}},Ca=xa(re),rc=xa(te),ir=xa(u),Ta=function(g){return function(S,C){return function(O){var W,Z,Me=O.expect(g),_t;if(O.hasTokens())O.expect(oe),_t=O.expect(g);else if(C!==void 0)_t=C;else return Me;return O.expectEmpty(),[(W={},W[S+"Y"]=_t,W),(Z={},Z[S+"X"]=Me,Z)]}}},Ip=Ta(re),kp=Ta(te),Fp=Ta(u),Vp={perspective:Ca,scale:Ip("scale"),scaleX:Ca,scaleY:Ca,translate:kp("translate",0),translateX:rc,translateY:rc,rotate:ir,rotateX:ir,rotateY:ir,rotateZ:ir,skewX:ir,skewY:ir,skew:Fp("skew","0deg")},zp=function(g){for(var S=[],C=!1;g.hasTokens();){C&&g.expect(z);var O=g.expectFunction(),W=O.functionName,Z=Vp[W](O);if(!Array.isArray(Z)){var Me;Z=[(Me={},Me[W]=Z,Me)]}S=Z.concat(S),C=!0}return{transform:S}},Up=function(g){return{backgroundColor:g.expect(w)}},Bp=j({types:[w],prefix:"border",suffix:"Color"}),Wp=j({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),Hp=j({prefix:"border",suffix:"Width"}),jp=j({types:[te,s,f,be],prefix:"margin"}),Gp=j({prefix:"padding"}),Qp=function(g){return{fontWeight:g.expect(ee)}},Xp=function(g){return{shadowOffset:ue(g)}},Yp=function(g){return{textShadowOffset:ue(g)}},nc={aspectRatio:P,background:Up,border:G,borderColor:Bp,borderRadius:Wp,borderWidth:Hp,boxShadow:ce,flex:Le,flexFlow:vp,font:xp,fontFamily:tc,fontVariant:Cp,fontWeight:Qp,margin:jp,padding:Gp,placeContent:Mp,shadowOffset:Xp,textShadow:Dp,textShadowOffset:Yp,textDecoration:Ap,textDecorationLine:qp,transform:zp},Ea="SYMBOL_MATCH",Zp=function(){function V(S,C){this.index=0,this.nodes=S,this.functionName=C!=null?C.value:null,this.lastValue=null,this.rewindIndex=-1}var g=V.prototype;return g.hasTokens=function(){return this.index<=this.nodes.length-1},g[Ea]=function(){if(!this.hasTokens())return null;for(var S=this.nodes[this.index],C=0;Cc[o][i][a])]);return n}static new(){return new Lo}}$n.CSSProcessedProps=Lo;Object.defineProperty(wn,"__esModule",{value:!0});wn.CSSParseRun=void 0;var th=$n;function mc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class rh{constructor(t){mc(this,"validationMap",void 0),mc(this,"processedProps",void 0),this.validationMap=t,this.processedProps=new th.CSSProcessedProps}exec(){return this.fillProcessedProps(),this.processedProps}}wn.CSSParseRun=rh;var mt={};Object.defineProperty(mt,"__esModule",{value:!0});mt.ShortMergeRequest=void 0;function nh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class oh{constructor(t){nh(this,"properties",void 0),this.properties=t}forEach(t){this.entries().forEach(t)}map(t){return this.entries().map(t)}entries(){return this.properties==null?[]:Object.entries(this.properties)}}mt.ShortMergeRequest=oh;Object.defineProperty(r1,"__esModule",{value:!0});r1.CSSInlineParseRun=void 0;var ah=Di,ih=wn,sh=mt;function ch(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class uh extends ih.CSSParseRun{constructor(t,r){super(r),ch(this,"rules",void 0),this.rules=this.parseInlineCSS(t),this.normalizeProp=this.normalizeProp.bind(this),this.reduceProps=this.reduceProps.bind(this)}parseInlineCSS(t){return t.split(";").map(r=>r.split(":")).reduce((r,n)=>n.length===2?[...r,[n[0].trim(),n[1].trim()]]:r,[])}normalizeProp(t,r=!1){const n=t[0],o=t[1],i=(0,ah.getPropertyName)(n);if(!this.validationMap.shouldRegisterInlineProperty(i))return null;const c=this.validationMap.getValidatorForProperty(i).normalizeInlineCSSValue(o);if(c===null){if(r)throw new TypeError;return null}return[i,c]}reduceProps(t,r){if(!r)return t;const[n,o]=r;if(o instanceof sh.ShortMergeRequest)try{return o.map(i=>this.normalizeProp(i,!0)).reduce(this.reduceProps,t)}catch{return t}return{...t,[n]:o}}fillProcessedProps(){const t=this.rules.map(r=>this.normalizeProp(r)).reduce(this.reduceProps,{});Object.keys(t).forEach(r=>{const n=t[r],o=this.validationMap.getValidatorForProperty(r),i=o.normalizeInlineCSSValue(n);this.processedProps.withProperty(r,i,o)})}}r1.CSSInlineParseRun=uh;var n1={},xn={};Object.defineProperty(xn,"__esModule",{value:!0});xn.lookupRecord=lh;function lh(e,t){return!!e[t]}Object.defineProperty(n1,"__esModule",{value:!0});n1.CSSNativeParseRun=void 0;var dh=wn,vc=xn,fh=mt;function ph(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hh={borderBottomEndRadius:"block",borderBottomStartRadius:"block",borderEndColor:"block",borderEndWidth:"block",borderStartColor:"block",borderStartWidth:"block",borderTopEndRadius:"block",borderTopStartRadius:"block",end:"block",marginEnd:"block",marginStart:"block",paddingEnd:"block",paddingStart:"block",start:"block"},gh={elevation:"block",overflow:"block",overlayColor:"block",resizeMode:"block",rotation:"block",scaleX:"block",scaleY:"block",shadowColor:"block",shadowOffset:"block",shadowOpacity:"block",shadowRadius:"block",testID:"block",tintColor:"block",transformMatrix:"block",translateX:"block",translateY:"block"},mh={includeFontPadding:"text",textAlignVertical:"text",textShadowColor:"text",textShadowOffset:"text",textShadowRadius:"text",writingDirection:"text"},yc={...mh,...gh};class vh extends dh.CSSParseRun{constructor(t,r){super(r),ph(this,"declaration",void 0),this.declaration=t}fillProp(t,r){const n=this.validationMap.getValidatorForProperty(t);if(n){const o=n.normalizeNativeValue(r);o instanceof fh.ShortMergeRequest?o.forEach(([i,a])=>{this.fillProp(i,a)}):this.processedProps.withProperty(t,o,n)}else(0,vc.lookupRecord)(yc,t)?this.processedProps.withProperty(t,r,{compatCategory:"native",displayCategory:yc[t],propagationCategory:"retain"}):(0,vc.lookupRecord)(hh,t)?console.warn(`Native style property "${t}" is a directional style property. These are not yet supported.`):console.warn(`Native style property "${t}" is not supported and has been ignored.`)}fillProcessedProps(){const t=this.declaration;for(const r of Object.keys(t))this.fillProp(r,this.declaration[r])}}n1.CSSNativeParseRun=vh;var o1={},Ii={},a1={},Ze={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.GenericCSSPropertyValidator=void 0;function Dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class yh{constructor({model:t,config:r,propertyName:n},o){Dt(this,"model",void 0),Dt(this,"config",void 0),Dt(this,"compatCategory",void 0),Dt(this,"propagationCategory",void 0),Dt(this,"displayCategory",void 0),Dt(this,"propertyName",void 0),Dt(this,"_isShorthand",void 0),this.model=t,this.config=r,this.compatCategory=t.translatable?"native":"web",this.propagationCategory=t.inheritable?"flow":"retain",this.displayCategory=t.display,this.propertyName=n,this._isShorthand=o}isShorthand(){return this._isShorthand}}Cn.GenericCSSPropertyValidator=yh;Object.defineProperty(Ze,"__esModule",{value:!0});Ze.LongCSSPropertyValidator=void 0;var _h=Cn;class bh extends _h.GenericCSSPropertyValidator{constructor(t){super(t,!1)}normalizeInlineCSSValue(t){return typeof t!="string"?t:this.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return t}}Ze.LongCSSPropertyValidator=bh;var i1={};Object.defineProperty(i1,"__esModule",{value:!0});i1.default=Sh;function Sh(e){return e.replace(/["']/g,"").trim()}Object.defineProperty(a1,"__esModule",{value:!0});a1.LongFontFamilyPropertyValidator=void 0;var wh=Ze,$h=Ph(i1);function Ph(e){return e&&e.__esModule?e:{default:e}}const xh=/,\s*/;class Ch extends wh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=t.split(xh);for(const n of r){const o=(0,$h.default)(n),i=o.length&&this.config.isFontSupported(o);if(i)return typeof i=="string"?i:o}return null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}a1.LongFontFamilyPropertyValidator=Ch;var s1={};Object.defineProperty(s1,"__esModule",{value:!0});s1.LongFloatNumberCSSPropertyValidator=void 0;var Th=Ze;class Eh extends Th.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=Number(t);return Number.isNaN(r)?null:r}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}s1.LongFloatNumberCSSPropertyValidator=Eh;var c1={},Tn={},Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.LongSizeCSSPropertyValidator=void 0;var Mh=Ze;class Rh extends Mh.LongCSSPropertyValidator{computeSize(t,r){switch(r){case"%":return`${t}%`;case"px":return t;case"cm":case"in":case"mm":case"pc":case"pt":return t*this.config.absoluteLengthUnitsMultiplicators[r];case"em":return this.computeEmSize(t);case"ex":return this.computeEmSize(t*.63);case"rem":return this.config.rootFontSize*t}return null}computeEmSize(t){return this.config.rootFontSize*t}splitValueAndUnit(t){const r=/^(\d*\.?\d*)\s*(cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)$/g.exec(t);return r===null?null:[Number(r[1]),r[2]]}normalizeRawInlineCSSValue(t){if(t==="0")return 0;if(t==="auto")return t;const r=this.splitValueAndUnit(t);return r?this.computeSize(r[0],r[1]):null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}Ar.LongSizeCSSPropertyValidator=Rh;Object.defineProperty(Tn,"__esModule",{value:!0});Tn.LongNonPercentSizeCSSPropertyValidator=void 0;var Nh=Ar;class Oh extends Nh.LongSizeCSSPropertyValidator{computeSize(t,r){return r==="%"?null:super.computeSize(t,r)}}Tn.LongNonPercentSizeCSSPropertyValidator=Oh;Object.defineProperty(c1,"__esModule",{value:!0});c1.LongBorderWidthCSSPropertyValidator=void 0;var Lh=xn,Ah=Tn;class qh extends Ah.LongNonPercentSizeCSSPropertyValidator{normalizeRawInlineCSSValue(t){return(0,Lh.lookupRecord)(this.config.absoluteBorderWidthsPixelMap,t)?this.config.absoluteBorderWidthsPixelMap[t]:super.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}c1.LongBorderWidthCSSPropertyValidator=qh;var u1={};Object.defineProperty(u1,"__esModule",{value:!0});u1.LongFontSizeCSSValidator=void 0;var _c=xn,Dh=Ar;class Ih extends Dh.LongSizeCSSPropertyValidator{computeSize(t,r){return r==="%"?this.computeEmSize(t/100):super.computeSize(t,r)}normalizeRawInlineCSSValue(t){return(0,_c.lookupRecord)(this.config.absoluteFontSizesPixelMap,t)?this.config.absoluteFontSizesPixelMap[t]:(0,_c.lookupRecord)(this.config.relativeFontSizesCoefficientMap,t)?this.computeEmSize(this.config.relativeFontSizesCoefficientMap[t]):super.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}u1.LongFontSizeCSSValidator=Ih;var l1={};Object.defineProperty(l1,"__esModule",{value:!0});l1.LongAspectRatioPropertyValidator=void 0;var kh=Ze;const Fh=/^(\d+)\/(\d+)$/;class Vh extends kh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=Fh.exec(t);if(r){const o=Number(r[1])/Number(r[2]);return Number.isFinite(o)?o:null}const n=Number(t);return Number.isNaN(n)?null:n}normalizeNativeValue(t){return typeof t!="string"?t:this.normalizeRawInlineCSSValue(t)}}l1.LongAspectRatioPropertyValidator=Vh;var d1={};Object.defineProperty(d1,"__esModule",{value:!0});d1.LongEnumerationListCSSPropertyValidator=void 0;var zh=Ze;function Uh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bh=/\s+/;class Wh extends zh.LongCSSPropertyValidator{constructor(t,r){super(t),Uh(this,"allowedList",void 0),this.allowedList=r}normalizeRawInlineCSSValue(t){const r=t.split(Bh),n=[];for(const o of r)this.allowedList.indexOf(o)!==-1&&n.push(o);return n.length>0?n:null}}d1.LongEnumerationListCSSPropertyValidator=Wh;var f1={},En={};Object.defineProperty(En,"__esModule",{value:!0});En.LongEnumerationCSSPropertyValidator=void 0;var Hh=Ze;function jh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Gh extends Hh.LongCSSPropertyValidator{constructor(t,r){super(t),jh(this,"allowedList",void 0),this.allowedList=r}normalizeRawInlineCSSValue(t){return this.allowedList.indexOf(t)!==-1?t:null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}En.LongEnumerationCSSPropertyValidator=Gh;Object.defineProperty(f1,"__esModule",{value:!0});f1.LongBorderStyleCSSPropertyValidator=void 0;var Qh=En;const Xh=/\s+/;class Yh extends Qh.LongEnumerationCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=this.pickFirst(t);return r?super.normalizeRawInlineCSSValue(r):null}normalizeNativeValue(t){return this.pickFirst(t)}pickFirst(t){return t.split(Xh)[0]||null}}f1.LongBorderStyleCSSPropertyValidator=Yh;var p1={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.LongForgivingCSSPropertyValidator=void 0;var Zh=Ze;class Jh extends Zh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){return t}}Mn.LongForgivingCSSPropertyValidator=Jh;Object.defineProperty(p1,"__esModule",{value:!0});p1.LongColorCSSPropertyValidator=void 0;var Kh=Mn;const e6=/^(rgb|rgba|hsl|hsla)\([\d,%. ]+\)|[#]?\w+$/;class t6 extends Kh.LongForgivingCSSPropertyValidator{normalizeRawInlineCSSValue(t){return t.match(e6)?t:null}}p1.LongColorCSSPropertyValidator=t6;var h1={},Rn={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.ShortCSSPropertyValidator=void 0;var r6=Cn;class n6 extends r6.GenericCSSPropertyValidator{constructor(t){super(t,!0)}}Jt.ShortCSSPropertyValidator=n6;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=a6;var o6=Di;function a6(e,t){try{return(0,o6.getStylesForProperty)(e,t)}catch{}return null}Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ShortCSSToReactNativeValidator=void 0;var i6=Jt,s6=u6(Nn),c6=mt;function u6(e){return e&&e.__esModule?e:{default:e}}class l6 extends i6.ShortCSSPropertyValidator{normalizeInlineCSSValue(t){return new c6.ShortMergeRequest((0,s6.default)(this.propertyName,t))}normalizeNativeValue(){return null}}Rn.ShortCSSToReactNativeValidator=l6;Object.defineProperty(h1,"__esModule",{value:!0});h1.ShortFontCSSValidator=void 0;var d6=Rn,f6=p6(i1);function p6(e){return e&&e.__esModule?e:{default:e}}const h6=/\s+/;class g6 extends d6.ShortCSSToReactNativeValidator{normalizeInlineCSSValue(t){const r=t.split(",");let n=null;if(r.length===1)return super.normalizeInlineCSSValue(r[0]);const o=r.splice(0,1)[0];for(const i of r){const a=(0,f6.default)(i),c=this.config.isFontSupported(a);if(c){n=typeof c=="string"?c:a;break}}return super.normalizeInlineCSSValue(o.split(h6).slice(0,-1).join(" ")+" "+(n||"system"))}}h1.ShortFontCSSValidator=g6;var g1={};Object.defineProperty(g1,"__esModule",{value:!0});g1.ShortFlexCSSPropertyValidator=void 0;var m6=mt,v6=_6(Nn),y6=Jt;function _6(e){return e&&e.__esModule?e:{default:e}}class b6 extends y6.ShortCSSPropertyValidator{constructor(t){super({...t,propertyName:"flex"})}normalizeInlineCSSValue(t){return new m6.ShortMergeRequest((0,v6.default)(this.propertyName,t))}normalizeNativeValue(t){return t}}g1.ShortFlexCSSPropertyValidator=b6;var m1={};Object.defineProperty(m1,"__esModule",{value:!0});m1.LongCSSToReactNativeValidator=void 0;var S6=Ze,w6=$6(Nn);function $6(e){return e&&e.__esModule?e:{default:e}}class P6 extends S6.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=(0,w6.default)(this.propertyName,t);return r?r[this.propertyName]:null}}m1.LongCSSToReactNativeValidator=P6;var v1={};Object.defineProperty(v1,"__esModule",{value:!0});v1.ShortCardinalCSSpropertyValidator=void 0;var Zr=mt,x6=Jt;function C6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T6=/\s+/;class E6 extends x6.ShortCSSPropertyValidator{constructor(t,r){super(t),C6(this,"directions",void 0),this.directions=r}normalizeInlineCSSValue(t){if(typeof t=="number")return new Zr.ShortMergeRequest({[this.directions.top]:t,[this.directions.right]:t,[this.directions.bottom]:t,[this.directions.left]:t});const r=t.split(T6);return r.length===4?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[2],[this.directions.left]:r[3]}):r.length===3?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[2],[this.directions.left]:r[1]}):r.length===2?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[0],[this.directions.left]:r[1]}):r.length===1?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[0],[this.directions.bottom]:r[0],[this.directions.left]:r[0]}):null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}v1.ShortCardinalCSSpropertyValidator=E6;var y1={};Object.defineProperty(y1,"__esModule",{value:!0});y1.ShortDualNativepropertyValidator=void 0;var M6=mt,R6=Jt;function N6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class O6 extends R6.ShortCSSPropertyValidator{constructor(t,r){super(t),N6(this,"directions",void 0),this.directions=r}normalizeInlineCSSValue(){return null}normalizeNativeValue(t){return new M6.ShortMergeRequest({[this.directions[0]]:t,[this.directions[1]]:t})}}y1.ShortDualNativepropertyValidator=O6;Object.defineProperty(Ii,"__esModule",{value:!0});Ii.default=H6;var L6=a1,io=s1,so=c1,A6=u1,fe=Ar,q6=l1,D6=d1,I6=f1,he=En,It=p1,k6=h1,co=Rn,F6=g1,V6=m1,Jr=v1,uo=y1,z6=Mn,Kr=Tn;const U6={inheritable:!0,native:!0,translatable:!0,display:"block"},q={inheritable:!1,native:!0,translatable:!0,display:"block"},B6={inheritable:!1,native:!0,translatable:!1,display:"block"},Ge={inheritable:!0,native:!0,translatable:!0,display:"text"},lo={inheritable:!1,native:!0,translatable:!0,display:"text"},Va={inheritable:!0,native:!1,translatable:!1,display:"text"},W6={inheritable:!1,native:!1,translatable:!1,display:"block"};function H6(e){return{background:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"background"}),border:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"border"}),borderRadius:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"borderRadius"},{top:"borderTopLeftRadius",right:"borderTopRightRadius",bottom:"borderBottomRightRadius",left:"borderBottomLeftRadius"}),borderColor:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"borderColor"},{top:"borderTopColor",right:"borderRightColor",bottom:"borderBottomColor",left:"borderLeftColor"}),borderStyle:new I6.LongBorderStyleCSSPropertyValidator({config:e,model:q,propertyName:"borderStyle"},["solid","dotted","dashed"]),borderWidth:new Jr.ShortCardinalCSSpropertyValidator({config:e,propertyName:"borderWidth",model:q},{top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth",left:"borderLeftWidth"}),flex:new F6.ShortFlexCSSPropertyValidator({config:e,propertyName:"flex",model:q}),flexFlow:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"flexFlow"}),font:new k6.ShortFontCSSValidator({config:e,model:Ge,propertyName:"font"}),margin:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"margin"},{top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"}),objectFit:new he.LongEnumerationCSSPropertyValidator({config:e,model:W6,propertyName:"objectFit"},["fill","contain","cover","none","scale-down"]),padding:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"padding"},{top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"}),marginHorizontal:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"marginHorizontal"},["marginLeft","marginRight"]),marginVertical:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"marginVertical"},["marginTop","marginBottom"]),paddingHorizontal:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"paddingHorizontal"},["paddingLeft","paddingRight"]),paddingVertical:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"paddingVertical"},["paddingTop","paddingBottom"]),textDecoration:new co.ShortCSSToReactNativeValidator({config:e,model:lo,propertyName:"textDecoration"}),textDecorationColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"textDecorationColor",model:lo}),textDecorationLine:new he.LongEnumerationCSSPropertyValidator({config:e,model:lo,propertyName:"textDecorationLine"},["none","underline","line-through","underline line-through"]),textDecorationStyle:new he.LongEnumerationCSSPropertyValidator({config:e,model:lo,propertyName:"textDecorationStyle"},["solid","double","dotted","dashed"]),color:new It.LongColorCSSPropertyValidator({config:e,propertyName:"color",model:Ge}),fontFamily:new L6.LongFontFamilyPropertyValidator({config:e,propertyName:"fontFamily",model:Ge}),fontSize:new A6.LongFontSizeCSSValidator({config:e,propertyName:"fontSize",model:Ge}),fontStyle:new he.LongEnumerationCSSPropertyValidator({config:e,model:Ge,propertyName:"fontStyle"},["normal","italic"]),fontVariant:new D6.LongEnumerationListCSSPropertyValidator({config:e,model:Ge,propertyName:"fontVariant"},["small-caps","oldstyle-nums","lining-nums","tabular-nums","proportional-nums"]),fontWeight:new he.LongEnumerationCSSPropertyValidator({config:e,model:Ge,propertyName:"fontWeight"},["normal","bold","100","200","300","400","500","600","700","800","900"]),letterSpacing:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"letterSpacing",model:Ge}),lineHeight:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"lineHeight",model:Ge}),textAlign:new he.LongEnumerationCSSPropertyValidator({config:e,model:Ge,propertyName:"textAlign"},["auto","left","right","center","justify"]),textTransform:new he.LongEnumerationCSSPropertyValidator({config:e,model:Ge,propertyName:"textTransform"},["none","capitalize","uppercase","lowercase"]),whiteSpace:new he.LongEnumerationCSSPropertyValidator({config:e,model:Va,propertyName:"whiteSpace"},["normal","pre"]),listStyleType:new z6.LongForgivingCSSPropertyValidator({config:e,model:Va,propertyName:"listStyleType"}),userSelect:new he.LongEnumerationCSSPropertyValidator({config:e,model:Va,propertyName:"userSelect"},["auto","text","none","contain","all"]),alignContent:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignContent"},["flex-start","flex-end","center","stretch","space-between","space-around"]),alignItems:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignItems"},["flex-start","flex-end","center","stretch","baseline"]),alignSelf:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignSelf"},["auto","flex-start","flex-end","center","stretch","baseline"]),aspectRatio:new q6.LongAspectRatioPropertyValidator({config:e,model:q,propertyName:"aspectRatio"}),bottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"bottom",model:q}),display:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"display"},["flex","none"]),flexBasis:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"flexBasis",model:q}),flexDirection:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"flexDirection"},["row","column","row-reverse","column-reverse"]),flexGrow:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"flexGrow",model:q}),flexShrink:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"flexShrink",model:q}),flexWrap:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"flexWrap"},["wrap","nowrap","wrap-reverse"]),justifyContent:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"justifyContent"},["flex-start","flex-end","center","space-between","space-around","space-evenly"]),left:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"left",model:q}),position:new he.LongEnumerationCSSPropertyValidator({config:e,model:B6,propertyName:"position"},["absolute","relative"]),right:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"right",model:q}),top:new fe.LongSizeCSSPropertyValidator({config:e,model:q,propertyName:"top"}),backfaceVisibility:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"backfaceVisibility"},["visible","hidden"]),backgroundColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"backgroundColor",model:q}),borderBottomColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderBottomColor",model:q}),borderBottomLeftRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderBottomLeftRadius",model:q}),borderBottomRightRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderBottomRightRadius",model:q}),borderBottomWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderBottomWidth",model:q}),borderLeftColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderLeftColor",model:q}),borderLeftWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderLeftWidth",model:q}),borderRightColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderRightColor",model:q}),borderRightWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderRightWidth",model:q}),borderTopColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderTopColor",model:q}),borderTopLeftRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderTopLeftRadius",model:q}),borderTopRightRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderTopRightRadius",model:q}),borderTopWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderTopWidth",model:q}),height:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"height",model:q}),marginBottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginBottom",model:q}),marginLeft:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginLeft",model:q}),marginRight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginRight",model:q}),marginTop:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginTop",model:q}),maxHeight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"maxHeight",model:q}),maxWidth:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"maxWidth",model:q}),minHeight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"minHeight",model:q}),minWidth:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"minWidth",model:q}),opacity:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"opacity",model:q}),paddingBottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingBottom",model:q}),paddingLeft:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingLeft",model:q}),paddingRight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingRight",model:q}),paddingTop:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingTop",model:q}),transform:new V6.LongCSSToReactNativeValidator({config:e,propertyName:"transform",model:q}),width:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"width",model:q}),zIndex:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"zIndex",model:q}),direction:new he.LongEnumerationCSSPropertyValidator({config:e,model:U6,propertyName:"direction"},["auto","ltr","rtl"])}}Object.defineProperty(o1,"__esModule",{value:!0});o1.CSSPropertiesValidationRegistry=void 0;var j6=G6(Ii);function G6(e){return e&&e.__esModule?e:{default:e}}function za(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bc(e){const t={};return e.forEach(r=>{t[r]=!0}),t}class Q6{constructor(t){za(this,"validators",void 0),za(this,"ignoredPropertiesRegistry",void 0),za(this,"allowedPropertiesRegistry",void 0),this.validators=(0,j6.default)(t),this.ignoredPropertiesRegistry=bc(t.inlinePropertiesBlacklist),this.allowedPropertiesRegistry=t.inlinePropertiesWhitelist?bc(t.inlinePropertiesWhitelist):null}isInlinePropertyAllowed(t){return this.allowedPropertiesRegistry?!!this.allowedPropertiesRegistry[t]:!this.ignoredPropertiesRegistry[t]}shouldRegisterInlineProperty(t){return this.isInlinePropertyAllowed(t)&&!!this.validators[t]}getValidatorForProperty(t){return this.validators[t]||null}}o1.CSSPropertiesValidationRegistry=Q6;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.defaultCSSProcessorConfig=void 0;const Pl=96,xl=Pl*2.54,X6=xl/10,Cl=4/3,Y6=12*Cl,Z6={absoluteLengthUnitsMultiplicators:{cm:xl,in:Pl,mm:X6,pc:Y6,pt:Cl},absoluteBorderWidthsPixelMap:{medium:2.5,thick:5,thin:1},absoluteFontSizesPixelMap:{medium:14,"xx-small":8.5,"x-small":10,small:12,large:17,"x-large":20,"xx-large":24},relativeFontSizesCoefficientMap:{larger:1.2,smaller:.83},inlinePropertiesBlacklist:[],rootFontSize:16,inlinePropertiesWhitelist:null,isFontSupported(){return!0}};On.defaultCSSProcessorConfig=Z6;Object.defineProperty(t1,"__esModule",{value:!0});t1.CSSProcessor=void 0;var J6=r1,K6=n1,e7=o1,t7=On;function r7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class n7{constructor(t){r7(this,"registry",void 0);const r={...t7.defaultCSSProcessorConfig,...t};this.registry=new e7.CSSPropertiesValidationRegistry(r)}compileStyleDeclaration(t){return new K6.CSSNativeParseRun(t,this.registry).exec()}compileInlineCSS(t){return new J6.CSSInlineParseRun(t,this.registry).exec()}}t1.CSSProcessor=n7;var o7={},a7={},i7={},s7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={CSSProcessor:!0,CSSProcessedProps:!0,mergeProps:!0};Object.defineProperty(e,"CSSProcessor",{enumerable:!0,get:function(){return r.CSSProcessor}}),Object.defineProperty(e,"CSSProcessedProps",{enumerable:!0,get:function(){return n.CSSProcessedProps}}),Object.defineProperty(e,"mergeProps",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var r=t1,n=$n,o=o7;Object.keys(o).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===o[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return o[h]}})});var i=On;Object.keys(i).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===i[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return i[h]}})});var a=a7;Object.keys(a).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===a[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return a[h]}})});var c=i7;Object.keys(c).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===c[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return c[h]}})});var l=s7;Object.keys(l).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===l[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return l[h]}})});var d=p(Pn);function p(h){return h&&h.__esModule?h:{default:h}}var v=r.CSSProcessor;e.default=v})(e1);function c7(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}var ki=c7,u7=ki;function l7(e){return function t(r){return arguments.length===0||u7(r)?t:e.apply(this,arguments)}}var Kt=l7,d7=Kt,f7=d7(function(t){return t==null}),p7=f7,h7=Kt,g7=h7(function(t){return!t}),m7=g7;function v7(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,o){return t.apply(this,arguments)};case 4:return function(r,n,o,i){return t.apply(this,arguments)};case 5:return function(r,n,o,i,a){return t.apply(this,arguments)};case 6:return function(r,n,o,i,a,c){return t.apply(this,arguments)};case 7:return function(r,n,o,i,a,c,l){return t.apply(this,arguments)};case 8:return function(r,n,o,i,a,c,l,d){return t.apply(this,arguments)};case 9:return function(r,n,o,i,a,c,l,d,p){return t.apply(this,arguments)};case 10:return function(r,n,o,i,a,c,l,d,p,v){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var Tl=v7;function y7(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var _7=y7,Ua=Kt,en=ki;function b7(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return en(r)?t:Ua(function(o){return e(r,o)});default:return en(r)&&en(n)?t:en(r)?Ua(function(o){return e(o,n)}):en(n)?Ua(function(o){return e(r,o)}):e(r,n)}}}var Fi=b7,fo=Kt,lr=Fi,Se=ki;function S7(e){return function t(r,n,o){switch(arguments.length){case 0:return t;case 1:return Se(r)?t:lr(function(i,a){return e(r,i,a)});case 2:return Se(r)&&Se(n)?t:Se(r)?lr(function(i,a){return e(i,n,a)}):Se(n)?lr(function(i,a){return e(r,i,a)}):fo(function(i){return e(r,n,i)});default:return Se(r)&&Se(n)&&Se(o)?t:Se(r)&&Se(n)?lr(function(i,a){return e(i,a,o)}):Se(r)&&Se(o)?lr(function(i,a){return e(i,n,a)}):Se(n)&&Se(o)?lr(function(i,a){return e(r,i,a)}):Se(r)?fo(function(i){return e(i,n,o)}):Se(n)?fo(function(i){return e(r,i,o)}):Se(o)?fo(function(i){return e(r,n,i)}):e(r,n,o)}}}var El=S7,Ml=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function w7(e){return Object.prototype.toString.call(e)==="[object String]"}var Rl=w7,$7=Kt,P7=Ml,x7=Rl,C7=$7(function(t){return P7(t)?!0:!t||typeof t!="object"||x7(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),T7=C7,E7=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function M7(e){return new E7(e)}var R7=M7,N7=Tl,O7=Fi,L7=O7(function(t,r){return N7(t.length,function(){return t.apply(r,arguments)})}),A7=L7,q7=T7,D7=R7,I7=A7;function k7(e,t,r){for(var n=0,o=r.length;n({...r,...n}),Object.prototype)}class zi{constructor(t,r){dr(this,"nativeTextFlow",void 0),dr(this,"nativeBlockFlow",void 0),dr(this,"nativeTextRet",void 0),dr(this,"nativeBlockRet",void 0),dr(this,"webTextFlow",void 0),dr(this,"webBlockRet",void 0),this.nativeTextFlow=po(r==null?void 0:r.nativeTextFlow,t.native.text.flow),this.nativeBlockFlow=po(r==null?void 0:r.nativeBlockFlow,t.native.block.flow),this.webTextFlow=po(r==null?void 0:r.webTextFlow,t.web.text.flow),this.nativeTextRet=po(r==null?void 0:r.nativeTextRet,t.native.text.retain),this.nativeBlockRet=t.native.block.retain,this.webBlockRet=t.web.block.retain}static empty(){return new zi(new g3.CSSProcessedProps)}}Or.TStyles=zi;var _1={};Object.defineProperty(_1,"__esModule",{value:!0});_1.default=void 0;const b3={anchor:!1,edits:"none",lang:"en",olNestLevel:-1,ulNestLevel:-1,direction:"ltr",extend(){return Object.create(this)},toString(){let e=`Markers { +import{j as Ue}from"./jsx-runtime-Bxcv0yjW.js";import{r as L,R as Sr}from"./index-mfbfsM12.js";import{c as I,a as st,g as c9}from"./_commonjsHelpers-BosuxZz1.js";import{r as ie,I as u9}from"./index-eRgc22Hn.js";import{p as Go}from"./index-Dk74W0Oi.js";import{s as nl}from"./index-CEE--Juu.js";import{V as Mi}from"./index-BDsvWohO.js";import{T as l9}from"./index-BypDj3rK.js";import{C as d9}from"./Column-DVJ0Grcf.js";import{R as f9}from"./Row-BXpfxHoR.js";import{P as p9}from"./Phrase-t0rOiClQ.js";import{u as h9,a as g9,m as m9,c as ol,g as v9}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import{L as y9}from"./ListItemMarker-BvZewDFw.js";import{u as _9}from"./useIsScreenReaderEnabled-BGYkQQWr.js";import{u as b9}from"./useOpenMailUrl-Cpc3v_r1.js";import{u as S9}from"./useOpenPhoneUrl-BpjRyIpq.js";import{u as w9,E as $9}from"./useTrackException-BhQuYC5A.js";import{L as P9,A as x9}from"./index-XPwQYiUg.js";import{u as C9}from"./useDeviceContext-DGl4H2w7.js";import{u as Na}from"./useThemable-CjWxbHxI.js";import{P as T9}from"./index-DOpK3Ow6.js";var Oa=40,La=41,oo=39,Aa=34,qa=92,cr=47,Da=44,Ia=58,ao=42,E9=117,M9=85,R9=43,N9=/^[a-f0-9?-]+$/i,O9=function(e){for(var t=[],r=e,n,o,i,a,c,l,d,p,v=0,h=r.charCodeAt(v),N=r.length,T=[{nodes:t}],E=0,M,D="",H="",k="";v=48&&l<=57)return!0;var d=a.charCodeAt(2);return l===r&&d>=48&&d<=57}return c===r?(l=a.charCodeAt(1),l>=48&&l<=57):c>=48&&c<=57}return ka=function(a){var c=0,l=a.length,d,p,v;if(l===0||!i(a))return!1;for(d=a.charCodeAt(c),(d===t||d===e)&&c++;c57));)c+=1;if(d=a.charCodeAt(c),p=a.charCodeAt(c+1),d===r&&p>=48&&p<=57)for(c+=2;c57));)c+=1;if(d=a.charCodeAt(c),p=a.charCodeAt(c+1),v=a.charCodeAt(c+2),(d===n||d===o)&&(p>=48&&p<=57||(p===t||p===e)&&v>=48&&v<=57))for(c+=p===t||p===e?3:2;c57));)c+=1;return{number:a.slice(0,c),unit:a.slice(c)}},ka}var D9=O9,il=L9,sl=A9;function $t(e){return this instanceof $t?(this.nodes=D9(e),this):new $t(e)}$t.prototype.toString=function(){return Array.isArray(this.nodes)?sl(this.nodes):""};$t.prototype.walk=function(e,t){return il(this.nodes,e,t),this};$t.unit=q9();$t.walk=il;$t.stringify=sl;var I9=$t,cl={},Ri={},Qo={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.default=void 0;let ul;ul=null;var k9=ul;Sn.default=k9;Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=void 0;var pc=V9(L);F9(Sn);function F9(e){return e&&e.__esModule?e:{default:e}}function ll(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ll=function(n){return n?r:t})(e)}function V9(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ll(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}const z9=function(t){return pc.default.createElement(pc.Fragment,null,t.children)};var U9=z9;Qo.default=U9;var Ie={},Ni={},Xo={},Yo={},B9={},Rr={},ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.default=ke.HTMLContentModel=void 0;let Oo;ke.HTMLContentModel=Oo;(function(e){e.block="block",e.textual="textual",e.mixed="mixed",e.none="none"})(Oo||(ke.HTMLContentModel=Oo={}));var W9=Oo;ke.default=W9;Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=void 0;var qt=H9(ke);function H9(e){return e&&e.__esModule?e:{default:e}}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const j9=["textual","edits","anchor"],G9=["tabular","grouping","sectioning"];class fn{constructor({tagName:t,contentModel:r,isOpaque:n,mixedUAStyles:o,isVoid:i,getUADerivedStyleFromAttributes:a,getMixedUAStyles:c,setMarkersForTNode:l,getReactNativeProps:d,reactNativeProps:p}){nt(this,"tagName",void 0),nt(this,"contentModel",void 0),nt(this,"isOpaque",void 0),nt(this,"isVoid",void 0),nt(this,"mixedUAStyles",void 0),nt(this,"reactNativeProps",void 0),nt(this,"getUADerivedStyleFromAttributes",void 0),nt(this,"getMixedUAStyles",void 0),nt(this,"getReactNativeProps",void 0),nt(this,"setMarkersForTNode",void 0),this.tagName=t,this.contentModel=r,this.isOpaque=n||!1,this.isVoid=i,this.mixedUAStyles=o,this.getUADerivedStyleFromAttributes=a,this.getMixedUAStyles=c,this.setMarkersForTNode=l,this.getReactNativeProps=d,this.reactNativeProps=p}static fromCustomModel(t){const{contentModel:r,tagName:n,isOpaque:o=!1,isVoid:i=!1,...a}=t;return new fn({tagName:n,contentModel:r,isOpaque:o,isVoid:i,...a})}static fromNativeModel(t){const{category:r,isOpaque:n,isVoid:o=!1,...i}=t,a=j9.indexOf(r)!==-1,c=a||G9.indexOf(r)!==-1,l=r==="anchor"||r==="edits"?qt.default.mixed:a?qt.default.textual:c?qt.default.block:qt.default.none;return new fn({isVoid:o,contentModel:l,isOpaque:n??r==="embedded",...i})}isTranslatableBlock(){return this.contentModel===qt.default.block}isTranslatableTextual(){return this.contentModel===qt.default.textual||this.contentModel===qt.default.mixed}extend(t){const r=typeof t=="function"?t(this):t;return new fn({...this,...r})}}Rr.default=fn;var Nr={},Ye={},Xt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Xt);var Q={},Yt=I&&I.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),pn=I&&I.__assign||function(){return pn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(Oi);Q.NodeWithChildren=Jo;var hl=function(e){Yt(t,e);function t(r){return e.call(this,de.ElementType.Root,r)||this}return t}(Jo);Q.Document=hl;var gl=function(e){Yt(t,e);function t(r,n,o,i){o===void 0&&(o=[]),i===void 0&&(i=r==="script"?de.ElementType.Script:r==="style"?de.ElementType.Style:de.ElementType.Tag);var a=e.call(this,i,o)||this;return a.name=r,a.attribs=n,a}return Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,i;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[n]}})},enumerable:!1,configurable:!0}),t}(Jo);Q.Element=gl;function ml(e){return(0,de.isTag)(e)}Q.isTag=ml;function vl(e){return e.type===de.ElementType.CDATA}Q.isCDATA=vl;function yl(e){return e.type===de.ElementType.Text}Q.isText=yl;function _l(e){return e.type===de.ElementType.Comment}Q.isComment=_l;function bl(e){return e.type===de.ElementType.Directive}Q.isDirective=bl;function Sl(e){return e.type===de.ElementType.Root}Q.isDocument=Sl;function X9(e){return Object.prototype.hasOwnProperty.call(e,"children")}Q.hasChildren=X9;function Li(e,t){t===void 0&&(t=!1);var r;if(yl(e))r=new dl(e.data);else if(_l(e))r=new fl(e.data);else if(ml(e)){var n=t?Fa(e.children):[],o=new gl(e.name,pn({},e.attribs),n);n.forEach(function(l){return l.parent=o}),e.namespace!=null&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=pn({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=pn({},e["x-attribsPrefix"])),r=o}else if(vl(e)){var n=t?Fa(e.children):[],i=new Jo(de.ElementType.CDATA,n);n.forEach(function(d){return d.parent=i}),r=i}else if(Sl(e)){var n=t?Fa(e.children):[],a=new hl(n);n.forEach(function(d){return d.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(bl(e)){var c=new pl(e.name,e.data);e["x-name"]!=null&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}Q.cloneNode=Li;function Fa(e){for(var t=e.map(function(n){return Li(n,!0)}),r=1;r":null}},k=function(g){return function(S){return S.type===g?S.value:null}},F=function(g,S){return S===void 0&&(S=String),function(C){if(C.type!=="word")return null;var O=C.value.match(g);if(O===null)return null;var W=S(O[1]);return W}},z=H(function(V){return V.type==="space"}),Y=H(function(V){return V.type==="div"&&V.value==="/"}),oe=H(function(V){return V.type==="div"&&V.value===","}),ee=k("word"),_e=F(p),be=F(v),re=F(N,Number),te=F(T,Number),s=F(E),u=F(M,function(V){return V.toLowerCase()}),f=F(D),m=F(h),_=a,w=d,$=F(/^(none|underline|line-through)$/i),P=function(g){var S=g.expect(re);return g.hasTokens()&&(g.expect(Y),S/=g.expect(re)),{aspectRatio:S}},x=F(/^(solid|dashed|dotted)$/),U=1,R="black",X="solid",G=function(g){var S,C,O;if(g.matches(_e))return g.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var W=0;W<3&&g.hasTokens();)W!==0&&g.expect(z),S===void 0&&g.matches(te,s)?S=g.lastValue:C===void 0&&g.matches(w)?C=g.lastValue:O===void 0&&g.matches(x)?O=g.lastValue:g.throw(),W+=1;return g.expectEmpty(),S===void 0&&(S=U),C===void 0&&(C=R),O===void 0&&(O=X),{borderWidth:S,borderColor:C,borderStyle:O}},j=function(g){var S=g.types,C=S===void 0?[te,s,f]:S,O=g.directions,W=O===void 0?["Top","Right","Bottom","Left"]:O,Z=g.prefix,Me=Z===void 0?"":Z,_t=g.suffix,Ma=_t===void 0?"":_t;return function(rt){var sr,At=[];for(At.push(rt.expect.apply(rt,C));At.length<4&&rt.hasTokens();)rt.expect(z),At.push(rt.expect.apply(rt,C));rt.expectEmpty();var Ra=At[0],sc=At[1],cc=sc===void 0?Ra:sc,uc=At[2],a9=uc===void 0?Ra:uc,lc=At[3],i9=lc===void 0?cc:lc,no=function(s9){return""+Me+W[s9]+Ma};return sr={},sr[no(0)]=Ra,sr[no(1)]=cc,sr[no(2)]=a9,sr[no(3)]=i9,sr}},ue=function(g){var S=g.expect(te),C=g.matches(z)?g.expect(te):S;return g.expectEmpty(),{width:S,height:C}},se=function(g){var S,C,O,W;if(g.matches(_e))return g.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var Z=!1;g.hasTokens();)Z&&g.expect(z),S===void 0&&g.matches(te,s)?(S=g.lastValue,g.expect(z),C=g.expect(te,s),g.saveRewindPoint(),g.matches(z)&&g.matches(te,s)?O=g.lastValue:g.rewind()):W===void 0&&g.matches(w)?W=g.lastValue:g.throw(),Z=!0;return S===void 0&&g.throw(),{offset:{width:S,height:C},radius:O!==void 0?O:0,color:W!==void 0?W:"black"}},ce=function(g){var S=se(g),C=S.offset,O=S.radius,W=S.color;return{shadowOffset:C,shadowRadius:O,shadowColor:W,shadowOpacity:1}},je=1,ge=1,Ee=0,Le=function(g){var S,C,O;if(g.matches(_e))return g.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(g.saveRewindPoint(),g.matches(be)&&!g.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};g.rewind();for(var W=0;W<2&&g.hasTokens();)W!==0&&g.expect(z),S===void 0&&g.matches(re)?(S=g.lastValue,g.saveRewindPoint(),g.matches(z)&&g.matches(re)?C=g.lastValue:g.rewind()):O===void 0&&g.matches(te,s,f)?O=g.lastValue:O===void 0&&g.matches(be)?O="auto":g.throw(),W+=1;return g.expectEmpty(),S===void 0&&(S=je),C===void 0&&(C=ge),O===void 0&&(O=Ee),{flexGrow:S,flexShrink:C,flexBasis:O}},tt=F(/(nowrap|wrap|wrap-reverse)/),dt=F(/(row|row-reverse|column|column-reverse)/),Yr="nowrap",mp="row",vp=function(g){for(var S,C,O=0;O<2&&g.hasTokens();)O!==0&&g.expect(z),S===void 0&&g.matches(tt)?S=g.lastValue:C===void 0&&g.matches(dt)?C=g.lastValue:g.throw(),O+=1;return g.expectEmpty(),S===void 0&&(S=Yr),C===void 0&&(C=mp),{flexWrap:S,flexDirection:C}},tc=function(g){var S;if(g.matches(_))S=g.lastValue;else for(S=g.expect(m);g.hasTokens();){g.expect(z);var C=g.expect(m);S+=" "+C}return g.expectEmpty(),{fontFamily:S}},yp=F(/^(normal)$/),_p=F(/^(italic)$/),bp=F(/^([1-9]00|bold)$/),Sp=F(/^(small-caps)$/),wp="normal",$p="normal",Pp=[],xp=function(g){for(var S,C,O,W,Z=0;Z<3&&g.hasTokens();){if(!g.matches(yp))if(S===void 0&&g.matches(_p))S=g.lastValue;else if(C===void 0&&g.matches(bp))C=g.lastValue;else if(O===void 0&&g.matches(Sp))O=[g.lastValue];else break;g.expect(z),Z+=1}var Me=g.expect(te,s);g.matches(Y)&&(W=g.expect(te,s)),g.expect(z);var _t=tc(g),Ma=_t.fontFamily;S===void 0&&(S=wp),C===void 0&&(C=$p),O===void 0&&(O=Pp);var rt={fontStyle:S,fontWeight:C,fontVariant:O,fontSize:Me,fontFamily:Ma};return W!==void 0&&(rt.lineHeight=W),rt},Cp=function(g){for(var S=[g.expect(m)];g.hasTokens();)g.expect(z),S.push(g.expect(m));return{fontVariant:S}},Tp=F(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),Ep=F(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),Mp=function(g){var S=g.expect(Tp),C;return g.hasTokens()?(g.expect(z),C=g.expect(Ep)):C="stretch",g.expectEmpty(),{alignContent:S,justifyContent:C}},Rp=F(/^(solid|double|dotted|dashed)$/),Np="none",Op="solid",Lp="black",Ap=function(g){for(var S,C,O,W=!1;g.hasTokens();){if(W&&g.expect(z),S===void 0&&g.matches($)){var Z=[g.lastValue.toLowerCase()];g.saveRewindPoint(),Z[0]!=="none"&&g.matches(z)&&g.matches($)?(Z.push(g.lastValue.toLowerCase()),Z.sort().reverse()):g.rewind(),S=Z.join(" ")}else C===void 0&&g.matches(Rp)?C=g.lastValue:O===void 0&&g.matches(w)?O=g.lastValue:g.throw();W=!0}return{textDecorationLine:S!==void 0?S:Np,textDecorationColor:O!==void 0?O:Lp,textDecorationStyle:C!==void 0?C:Op}},qp=function(g){for(var S=[],C=!1;g.hasTokens();)C&&g.expect(z),S.push(g.expect($).toLowerCase()),C=!0;return S.sort().reverse(),{textDecorationLine:S.join(" ")}},Dp=function(g){var S=se(g),C=S.offset,O=S.radius,W=S.color;return{textShadowOffset:C,textShadowRadius:O,textShadowColor:W}},xa=function(g){return function(S){var C=S.expect(g);return S.expectEmpty(),C}},Ca=xa(re),rc=xa(te),ir=xa(u),Ta=function(g){return function(S,C){return function(O){var W,Z,Me=O.expect(g),_t;if(O.hasTokens())O.expect(oe),_t=O.expect(g);else if(C!==void 0)_t=C;else return Me;return O.expectEmpty(),[(W={},W[S+"Y"]=_t,W),(Z={},Z[S+"X"]=Me,Z)]}}},Ip=Ta(re),kp=Ta(te),Fp=Ta(u),Vp={perspective:Ca,scale:Ip("scale"),scaleX:Ca,scaleY:Ca,translate:kp("translate",0),translateX:rc,translateY:rc,rotate:ir,rotateX:ir,rotateY:ir,rotateZ:ir,skewX:ir,skewY:ir,skew:Fp("skew","0deg")},zp=function(g){for(var S=[],C=!1;g.hasTokens();){C&&g.expect(z);var O=g.expectFunction(),W=O.functionName,Z=Vp[W](O);if(!Array.isArray(Z)){var Me;Z=[(Me={},Me[W]=Z,Me)]}S=Z.concat(S),C=!0}return{transform:S}},Up=function(g){return{backgroundColor:g.expect(w)}},Bp=j({types:[w],prefix:"border",suffix:"Color"}),Wp=j({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),Hp=j({prefix:"border",suffix:"Width"}),jp=j({types:[te,s,f,be],prefix:"margin"}),Gp=j({prefix:"padding"}),Qp=function(g){return{fontWeight:g.expect(ee)}},Xp=function(g){return{shadowOffset:ue(g)}},Yp=function(g){return{textShadowOffset:ue(g)}},nc={aspectRatio:P,background:Up,border:G,borderColor:Bp,borderRadius:Wp,borderWidth:Hp,boxShadow:ce,flex:Le,flexFlow:vp,font:xp,fontFamily:tc,fontVariant:Cp,fontWeight:Qp,margin:jp,padding:Gp,placeContent:Mp,shadowOffset:Xp,textShadow:Dp,textShadowOffset:Yp,textDecoration:Ap,textDecorationLine:qp,transform:zp},Ea="SYMBOL_MATCH",Zp=function(){function V(S,C){this.index=0,this.nodes=S,this.functionName=C!=null?C.value:null,this.lastValue=null,this.rewindIndex=-1}var g=V.prototype;return g.hasTokens=function(){return this.index<=this.nodes.length-1},g[Ea]=function(){if(!this.hasTokens())return null;for(var S=this.nodes[this.index],C=0;Cc[o][i][a])]);return n}static new(){return new Lo}}$n.CSSProcessedProps=Lo;Object.defineProperty(wn,"__esModule",{value:!0});wn.CSSParseRun=void 0;var th=$n;function mc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class rh{constructor(t){mc(this,"validationMap",void 0),mc(this,"processedProps",void 0),this.validationMap=t,this.processedProps=new th.CSSProcessedProps}exec(){return this.fillProcessedProps(),this.processedProps}}wn.CSSParseRun=rh;var mt={};Object.defineProperty(mt,"__esModule",{value:!0});mt.ShortMergeRequest=void 0;function nh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class oh{constructor(t){nh(this,"properties",void 0),this.properties=t}forEach(t){this.entries().forEach(t)}map(t){return this.entries().map(t)}entries(){return this.properties==null?[]:Object.entries(this.properties)}}mt.ShortMergeRequest=oh;Object.defineProperty(r1,"__esModule",{value:!0});r1.CSSInlineParseRun=void 0;var ah=Di,ih=wn,sh=mt;function ch(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class uh extends ih.CSSParseRun{constructor(t,r){super(r),ch(this,"rules",void 0),this.rules=this.parseInlineCSS(t),this.normalizeProp=this.normalizeProp.bind(this),this.reduceProps=this.reduceProps.bind(this)}parseInlineCSS(t){return t.split(";").map(r=>r.split(":")).reduce((r,n)=>n.length===2?[...r,[n[0].trim(),n[1].trim()]]:r,[])}normalizeProp(t,r=!1){const n=t[0],o=t[1],i=(0,ah.getPropertyName)(n);if(!this.validationMap.shouldRegisterInlineProperty(i))return null;const c=this.validationMap.getValidatorForProperty(i).normalizeInlineCSSValue(o);if(c===null){if(r)throw new TypeError;return null}return[i,c]}reduceProps(t,r){if(!r)return t;const[n,o]=r;if(o instanceof sh.ShortMergeRequest)try{return o.map(i=>this.normalizeProp(i,!0)).reduce(this.reduceProps,t)}catch{return t}return{...t,[n]:o}}fillProcessedProps(){const t=this.rules.map(r=>this.normalizeProp(r)).reduce(this.reduceProps,{});Object.keys(t).forEach(r=>{const n=t[r],o=this.validationMap.getValidatorForProperty(r),i=o.normalizeInlineCSSValue(n);this.processedProps.withProperty(r,i,o)})}}r1.CSSInlineParseRun=uh;var n1={},xn={};Object.defineProperty(xn,"__esModule",{value:!0});xn.lookupRecord=lh;function lh(e,t){return!!e[t]}Object.defineProperty(n1,"__esModule",{value:!0});n1.CSSNativeParseRun=void 0;var dh=wn,vc=xn,fh=mt;function ph(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hh={borderBottomEndRadius:"block",borderBottomStartRadius:"block",borderEndColor:"block",borderEndWidth:"block",borderStartColor:"block",borderStartWidth:"block",borderTopEndRadius:"block",borderTopStartRadius:"block",end:"block",marginEnd:"block",marginStart:"block",paddingEnd:"block",paddingStart:"block",start:"block"},gh={elevation:"block",overflow:"block",overlayColor:"block",resizeMode:"block",rotation:"block",scaleX:"block",scaleY:"block",shadowColor:"block",shadowOffset:"block",shadowOpacity:"block",shadowRadius:"block",testID:"block",tintColor:"block",transformMatrix:"block",translateX:"block",translateY:"block"},mh={includeFontPadding:"text",textAlignVertical:"text",textShadowColor:"text",textShadowOffset:"text",textShadowRadius:"text",writingDirection:"text"},yc={...mh,...gh};class vh extends dh.CSSParseRun{constructor(t,r){super(r),ph(this,"declaration",void 0),this.declaration=t}fillProp(t,r){const n=this.validationMap.getValidatorForProperty(t);if(n){const o=n.normalizeNativeValue(r);o instanceof fh.ShortMergeRequest?o.forEach(([i,a])=>{this.fillProp(i,a)}):this.processedProps.withProperty(t,o,n)}else(0,vc.lookupRecord)(yc,t)?this.processedProps.withProperty(t,r,{compatCategory:"native",displayCategory:yc[t],propagationCategory:"retain"}):(0,vc.lookupRecord)(hh,t)?console.warn(`Native style property "${t}" is a directional style property. These are not yet supported.`):console.warn(`Native style property "${t}" is not supported and has been ignored.`)}fillProcessedProps(){const t=this.declaration;for(const r of Object.keys(t))this.fillProp(r,this.declaration[r])}}n1.CSSNativeParseRun=vh;var o1={},Ii={},a1={},Ze={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.GenericCSSPropertyValidator=void 0;function Dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class yh{constructor({model:t,config:r,propertyName:n},o){Dt(this,"model",void 0),Dt(this,"config",void 0),Dt(this,"compatCategory",void 0),Dt(this,"propagationCategory",void 0),Dt(this,"displayCategory",void 0),Dt(this,"propertyName",void 0),Dt(this,"_isShorthand",void 0),this.model=t,this.config=r,this.compatCategory=t.translatable?"native":"web",this.propagationCategory=t.inheritable?"flow":"retain",this.displayCategory=t.display,this.propertyName=n,this._isShorthand=o}isShorthand(){return this._isShorthand}}Cn.GenericCSSPropertyValidator=yh;Object.defineProperty(Ze,"__esModule",{value:!0});Ze.LongCSSPropertyValidator=void 0;var _h=Cn;class bh extends _h.GenericCSSPropertyValidator{constructor(t){super(t,!1)}normalizeInlineCSSValue(t){return typeof t!="string"?t:this.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return t}}Ze.LongCSSPropertyValidator=bh;var i1={};Object.defineProperty(i1,"__esModule",{value:!0});i1.default=Sh;function Sh(e){return e.replace(/["']/g,"").trim()}Object.defineProperty(a1,"__esModule",{value:!0});a1.LongFontFamilyPropertyValidator=void 0;var wh=Ze,$h=Ph(i1);function Ph(e){return e&&e.__esModule?e:{default:e}}const xh=/,\s*/;class Ch extends wh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=t.split(xh);for(const n of r){const o=(0,$h.default)(n),i=o.length&&this.config.isFontSupported(o);if(i)return typeof i=="string"?i:o}return null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}a1.LongFontFamilyPropertyValidator=Ch;var s1={};Object.defineProperty(s1,"__esModule",{value:!0});s1.LongFloatNumberCSSPropertyValidator=void 0;var Th=Ze;class Eh extends Th.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=Number(t);return Number.isNaN(r)?null:r}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}s1.LongFloatNumberCSSPropertyValidator=Eh;var c1={},Tn={},Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.LongSizeCSSPropertyValidator=void 0;var Mh=Ze;class Rh extends Mh.LongCSSPropertyValidator{computeSize(t,r){switch(r){case"%":return`${t}%`;case"px":return t;case"cm":case"in":case"mm":case"pc":case"pt":return t*this.config.absoluteLengthUnitsMultiplicators[r];case"em":return this.computeEmSize(t);case"ex":return this.computeEmSize(t*.63);case"rem":return this.config.rootFontSize*t}return null}computeEmSize(t){return this.config.rootFontSize*t}splitValueAndUnit(t){const r=/^(\d*\.?\d*)\s*(cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)$/g.exec(t);return r===null?null:[Number(r[1]),r[2]]}normalizeRawInlineCSSValue(t){if(t==="0")return 0;if(t==="auto")return t;const r=this.splitValueAndUnit(t);return r?this.computeSize(r[0],r[1]):null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}Ar.LongSizeCSSPropertyValidator=Rh;Object.defineProperty(Tn,"__esModule",{value:!0});Tn.LongNonPercentSizeCSSPropertyValidator=void 0;var Nh=Ar;class Oh extends Nh.LongSizeCSSPropertyValidator{computeSize(t,r){return r==="%"?null:super.computeSize(t,r)}}Tn.LongNonPercentSizeCSSPropertyValidator=Oh;Object.defineProperty(c1,"__esModule",{value:!0});c1.LongBorderWidthCSSPropertyValidator=void 0;var Lh=xn,Ah=Tn;class qh extends Ah.LongNonPercentSizeCSSPropertyValidator{normalizeRawInlineCSSValue(t){return(0,Lh.lookupRecord)(this.config.absoluteBorderWidthsPixelMap,t)?this.config.absoluteBorderWidthsPixelMap[t]:super.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}c1.LongBorderWidthCSSPropertyValidator=qh;var u1={};Object.defineProperty(u1,"__esModule",{value:!0});u1.LongFontSizeCSSValidator=void 0;var _c=xn,Dh=Ar;class Ih extends Dh.LongSizeCSSPropertyValidator{computeSize(t,r){return r==="%"?this.computeEmSize(t/100):super.computeSize(t,r)}normalizeRawInlineCSSValue(t){return(0,_c.lookupRecord)(this.config.absoluteFontSizesPixelMap,t)?this.config.absoluteFontSizesPixelMap[t]:(0,_c.lookupRecord)(this.config.relativeFontSizesCoefficientMap,t)?this.computeEmSize(this.config.relativeFontSizesCoefficientMap[t]):super.normalizeRawInlineCSSValue(t)}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}u1.LongFontSizeCSSValidator=Ih;var l1={};Object.defineProperty(l1,"__esModule",{value:!0});l1.LongAspectRatioPropertyValidator=void 0;var kh=Ze;const Fh=/^(\d+)\/(\d+)$/;class Vh extends kh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=Fh.exec(t);if(r){const o=Number(r[1])/Number(r[2]);return Number.isFinite(o)?o:null}const n=Number(t);return Number.isNaN(n)?null:n}normalizeNativeValue(t){return typeof t!="string"?t:this.normalizeRawInlineCSSValue(t)}}l1.LongAspectRatioPropertyValidator=Vh;var d1={};Object.defineProperty(d1,"__esModule",{value:!0});d1.LongEnumerationListCSSPropertyValidator=void 0;var zh=Ze;function Uh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bh=/\s+/;class Wh extends zh.LongCSSPropertyValidator{constructor(t,r){super(t),Uh(this,"allowedList",void 0),this.allowedList=r}normalizeRawInlineCSSValue(t){const r=t.split(Bh),n=[];for(const o of r)this.allowedList.indexOf(o)!==-1&&n.push(o);return n.length>0?n:null}}d1.LongEnumerationListCSSPropertyValidator=Wh;var f1={},En={};Object.defineProperty(En,"__esModule",{value:!0});En.LongEnumerationCSSPropertyValidator=void 0;var Hh=Ze;function jh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Gh extends Hh.LongCSSPropertyValidator{constructor(t,r){super(t),jh(this,"allowedList",void 0),this.allowedList=r}normalizeRawInlineCSSValue(t){return this.allowedList.indexOf(t)!==-1?t:null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}En.LongEnumerationCSSPropertyValidator=Gh;Object.defineProperty(f1,"__esModule",{value:!0});f1.LongBorderStyleCSSPropertyValidator=void 0;var Qh=En;const Xh=/\s+/;class Yh extends Qh.LongEnumerationCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=this.pickFirst(t);return r?super.normalizeRawInlineCSSValue(r):null}normalizeNativeValue(t){return this.pickFirst(t)}pickFirst(t){return t.split(Xh)[0]||null}}f1.LongBorderStyleCSSPropertyValidator=Yh;var p1={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.LongForgivingCSSPropertyValidator=void 0;var Zh=Ze;class Jh extends Zh.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){return t}}Mn.LongForgivingCSSPropertyValidator=Jh;Object.defineProperty(p1,"__esModule",{value:!0});p1.LongColorCSSPropertyValidator=void 0;var Kh=Mn;const e6=/^(rgb|rgba|hsl|hsla)\([\d,%. ]+\)|[#]?\w+$/;class t6 extends Kh.LongForgivingCSSPropertyValidator{normalizeRawInlineCSSValue(t){return t.match(e6)?t:null}}p1.LongColorCSSPropertyValidator=t6;var h1={},Rn={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.ShortCSSPropertyValidator=void 0;var r6=Cn;class n6 extends r6.GenericCSSPropertyValidator{constructor(t){super(t,!0)}}Jt.ShortCSSPropertyValidator=n6;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=a6;var o6=Di;function a6(e,t){try{return(0,o6.getStylesForProperty)(e,t)}catch{}return null}Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ShortCSSToReactNativeValidator=void 0;var i6=Jt,s6=u6(Nn),c6=mt;function u6(e){return e&&e.__esModule?e:{default:e}}class l6 extends i6.ShortCSSPropertyValidator{normalizeInlineCSSValue(t){return new c6.ShortMergeRequest((0,s6.default)(this.propertyName,t))}normalizeNativeValue(){return null}}Rn.ShortCSSToReactNativeValidator=l6;Object.defineProperty(h1,"__esModule",{value:!0});h1.ShortFontCSSValidator=void 0;var d6=Rn,f6=p6(i1);function p6(e){return e&&e.__esModule?e:{default:e}}const h6=/\s+/;class g6 extends d6.ShortCSSToReactNativeValidator{normalizeInlineCSSValue(t){const r=t.split(",");let n=null;if(r.length===1)return super.normalizeInlineCSSValue(r[0]);const o=r.splice(0,1)[0];for(const i of r){const a=(0,f6.default)(i),c=this.config.isFontSupported(a);if(c){n=typeof c=="string"?c:a;break}}return super.normalizeInlineCSSValue(o.split(h6).slice(0,-1).join(" ")+" "+(n||"system"))}}h1.ShortFontCSSValidator=g6;var g1={};Object.defineProperty(g1,"__esModule",{value:!0});g1.ShortFlexCSSPropertyValidator=void 0;var m6=mt,v6=_6(Nn),y6=Jt;function _6(e){return e&&e.__esModule?e:{default:e}}class b6 extends y6.ShortCSSPropertyValidator{constructor(t){super({...t,propertyName:"flex"})}normalizeInlineCSSValue(t){return new m6.ShortMergeRequest((0,v6.default)(this.propertyName,t))}normalizeNativeValue(t){return t}}g1.ShortFlexCSSPropertyValidator=b6;var m1={};Object.defineProperty(m1,"__esModule",{value:!0});m1.LongCSSToReactNativeValidator=void 0;var S6=Ze,w6=$6(Nn);function $6(e){return e&&e.__esModule?e:{default:e}}class P6 extends S6.LongCSSPropertyValidator{normalizeRawInlineCSSValue(t){const r=(0,w6.default)(this.propertyName,t);return r?r[this.propertyName]:null}}m1.LongCSSToReactNativeValidator=P6;var v1={};Object.defineProperty(v1,"__esModule",{value:!0});v1.ShortCardinalCSSpropertyValidator=void 0;var Zr=mt,x6=Jt;function C6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const T6=/\s+/;class E6 extends x6.ShortCSSPropertyValidator{constructor(t,r){super(t),C6(this,"directions",void 0),this.directions=r}normalizeInlineCSSValue(t){if(typeof t=="number")return new Zr.ShortMergeRequest({[this.directions.top]:t,[this.directions.right]:t,[this.directions.bottom]:t,[this.directions.left]:t});const r=t.split(T6);return r.length===4?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[2],[this.directions.left]:r[3]}):r.length===3?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[2],[this.directions.left]:r[1]}):r.length===2?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[1],[this.directions.bottom]:r[0],[this.directions.left]:r[1]}):r.length===1?new Zr.ShortMergeRequest({[this.directions.top]:r[0],[this.directions.right]:r[0],[this.directions.bottom]:r[0],[this.directions.left]:r[0]}):null}normalizeNativeValue(t){return this.normalizeInlineCSSValue(t)}}v1.ShortCardinalCSSpropertyValidator=E6;var y1={};Object.defineProperty(y1,"__esModule",{value:!0});y1.ShortDualNativepropertyValidator=void 0;var M6=mt,R6=Jt;function N6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class O6 extends R6.ShortCSSPropertyValidator{constructor(t,r){super(t),N6(this,"directions",void 0),this.directions=r}normalizeInlineCSSValue(){return null}normalizeNativeValue(t){return new M6.ShortMergeRequest({[this.directions[0]]:t,[this.directions[1]]:t})}}y1.ShortDualNativepropertyValidator=O6;Object.defineProperty(Ii,"__esModule",{value:!0});Ii.default=H6;var L6=a1,io=s1,so=c1,A6=u1,fe=Ar,q6=l1,D6=d1,I6=f1,he=En,It=p1,k6=h1,co=Rn,F6=g1,V6=m1,Jr=v1,uo=y1,z6=Mn,Kr=Tn;const U6={inheritable:!0,native:!0,translatable:!0,display:"block"},q={inheritable:!1,native:!0,translatable:!0,display:"block"},B6={inheritable:!1,native:!0,translatable:!1,display:"block"},Ge={inheritable:!0,native:!0,translatable:!0,display:"text"},lo={inheritable:!1,native:!0,translatable:!0,display:"text"},Va={inheritable:!0,native:!1,translatable:!1,display:"text"},W6={inheritable:!1,native:!1,translatable:!1,display:"block"};function H6(e){return{background:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"background"}),border:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"border"}),borderRadius:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"borderRadius"},{top:"borderTopLeftRadius",right:"borderTopRightRadius",bottom:"borderBottomRightRadius",left:"borderBottomLeftRadius"}),borderColor:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"borderColor"},{top:"borderTopColor",right:"borderRightColor",bottom:"borderBottomColor",left:"borderLeftColor"}),borderStyle:new I6.LongBorderStyleCSSPropertyValidator({config:e,model:q,propertyName:"borderStyle"},["solid","dotted","dashed"]),borderWidth:new Jr.ShortCardinalCSSpropertyValidator({config:e,propertyName:"borderWidth",model:q},{top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth",left:"borderLeftWidth"}),flex:new F6.ShortFlexCSSPropertyValidator({config:e,propertyName:"flex",model:q}),flexFlow:new co.ShortCSSToReactNativeValidator({config:e,model:q,propertyName:"flexFlow"}),font:new k6.ShortFontCSSValidator({config:e,model:Ge,propertyName:"font"}),margin:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"margin"},{top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"}),objectFit:new he.LongEnumerationCSSPropertyValidator({config:e,model:W6,propertyName:"objectFit"},["fill","contain","cover","none","scale-down"]),padding:new Jr.ShortCardinalCSSpropertyValidator({config:e,model:q,propertyName:"padding"},{top:"paddingTop",right:"paddingRight",bottom:"paddingBottom",left:"paddingLeft"}),marginHorizontal:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"marginHorizontal"},["marginLeft","marginRight"]),marginVertical:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"marginVertical"},["marginTop","marginBottom"]),paddingHorizontal:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"paddingHorizontal"},["paddingLeft","paddingRight"]),paddingVertical:new uo.ShortDualNativepropertyValidator({config:e,model:q,propertyName:"paddingVertical"},["paddingTop","paddingBottom"]),textDecoration:new co.ShortCSSToReactNativeValidator({config:e,model:lo,propertyName:"textDecoration"}),textDecorationColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"textDecorationColor",model:lo}),textDecorationLine:new he.LongEnumerationCSSPropertyValidator({config:e,model:lo,propertyName:"textDecorationLine"},["none","underline","line-through","underline line-through"]),textDecorationStyle:new he.LongEnumerationCSSPropertyValidator({config:e,model:lo,propertyName:"textDecorationStyle"},["solid","double","dotted","dashed"]),color:new It.LongColorCSSPropertyValidator({config:e,propertyName:"color",model:Ge}),fontFamily:new L6.LongFontFamilyPropertyValidator({config:e,propertyName:"fontFamily",model:Ge}),fontSize:new A6.LongFontSizeCSSValidator({config:e,propertyName:"fontSize",model:Ge}),fontStyle:new he.LongEnumerationCSSPropertyValidator({config:e,model:Ge,propertyName:"fontStyle"},["normal","italic"]),fontVariant:new D6.LongEnumerationListCSSPropertyValidator({config:e,model:Ge,propertyName:"fontVariant"},["small-caps","oldstyle-nums","lining-nums","tabular-nums","proportional-nums"]),fontWeight:new he.LongEnumerationCSSPropertyValidator({config:e,model:Ge,propertyName:"fontWeight"},["normal","bold","100","200","300","400","500","600","700","800","900"]),letterSpacing:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"letterSpacing",model:Ge}),lineHeight:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"lineHeight",model:Ge}),textAlign:new he.LongEnumerationCSSPropertyValidator({config:e,model:Ge,propertyName:"textAlign"},["auto","left","right","center","justify"]),textTransform:new he.LongEnumerationCSSPropertyValidator({config:e,model:Ge,propertyName:"textTransform"},["none","capitalize","uppercase","lowercase"]),whiteSpace:new he.LongEnumerationCSSPropertyValidator({config:e,model:Va,propertyName:"whiteSpace"},["normal","pre"]),listStyleType:new z6.LongForgivingCSSPropertyValidator({config:e,model:Va,propertyName:"listStyleType"}),userSelect:new he.LongEnumerationCSSPropertyValidator({config:e,model:Va,propertyName:"userSelect"},["auto","text","none","contain","all"]),alignContent:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignContent"},["flex-start","flex-end","center","stretch","space-between","space-around"]),alignItems:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignItems"},["flex-start","flex-end","center","stretch","baseline"]),alignSelf:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"alignSelf"},["auto","flex-start","flex-end","center","stretch","baseline"]),aspectRatio:new q6.LongAspectRatioPropertyValidator({config:e,model:q,propertyName:"aspectRatio"}),bottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"bottom",model:q}),display:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"display"},["flex","none"]),flexBasis:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"flexBasis",model:q}),flexDirection:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"flexDirection"},["row","column","row-reverse","column-reverse"]),flexGrow:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"flexGrow",model:q}),flexShrink:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"flexShrink",model:q}),flexWrap:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"flexWrap"},["wrap","nowrap","wrap-reverse"]),justifyContent:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"justifyContent"},["flex-start","flex-end","center","space-between","space-around","space-evenly"]),left:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"left",model:q}),position:new he.LongEnumerationCSSPropertyValidator({config:e,model:B6,propertyName:"position"},["absolute","relative"]),right:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"right",model:q}),top:new fe.LongSizeCSSPropertyValidator({config:e,model:q,propertyName:"top"}),backfaceVisibility:new he.LongEnumerationCSSPropertyValidator({config:e,model:q,propertyName:"backfaceVisibility"},["visible","hidden"]),backgroundColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"backgroundColor",model:q}),borderBottomColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderBottomColor",model:q}),borderBottomLeftRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderBottomLeftRadius",model:q}),borderBottomRightRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderBottomRightRadius",model:q}),borderBottomWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderBottomWidth",model:q}),borderLeftColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderLeftColor",model:q}),borderLeftWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderLeftWidth",model:q}),borderRightColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderRightColor",model:q}),borderRightWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderRightWidth",model:q}),borderTopColor:new It.LongColorCSSPropertyValidator({config:e,propertyName:"borderTopColor",model:q}),borderTopLeftRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderTopLeftRadius",model:q}),borderTopRightRadius:new Kr.LongNonPercentSizeCSSPropertyValidator({config:e,propertyName:"borderTopRightRadius",model:q}),borderTopWidth:new so.LongBorderWidthCSSPropertyValidator({config:e,propertyName:"borderTopWidth",model:q}),height:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"height",model:q}),marginBottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginBottom",model:q}),marginLeft:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginLeft",model:q}),marginRight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginRight",model:q}),marginTop:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"marginTop",model:q}),maxHeight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"maxHeight",model:q}),maxWidth:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"maxWidth",model:q}),minHeight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"minHeight",model:q}),minWidth:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"minWidth",model:q}),opacity:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"opacity",model:q}),paddingBottom:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingBottom",model:q}),paddingLeft:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingLeft",model:q}),paddingRight:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingRight",model:q}),paddingTop:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"paddingTop",model:q}),transform:new V6.LongCSSToReactNativeValidator({config:e,propertyName:"transform",model:q}),width:new fe.LongSizeCSSPropertyValidator({config:e,propertyName:"width",model:q}),zIndex:new io.LongFloatNumberCSSPropertyValidator({config:e,propertyName:"zIndex",model:q}),direction:new he.LongEnumerationCSSPropertyValidator({config:e,model:U6,propertyName:"direction"},["auto","ltr","rtl"])}}Object.defineProperty(o1,"__esModule",{value:!0});o1.CSSPropertiesValidationRegistry=void 0;var j6=G6(Ii);function G6(e){return e&&e.__esModule?e:{default:e}}function za(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bc(e){const t={};return e.forEach(r=>{t[r]=!0}),t}class Q6{constructor(t){za(this,"validators",void 0),za(this,"ignoredPropertiesRegistry",void 0),za(this,"allowedPropertiesRegistry",void 0),this.validators=(0,j6.default)(t),this.ignoredPropertiesRegistry=bc(t.inlinePropertiesBlacklist),this.allowedPropertiesRegistry=t.inlinePropertiesWhitelist?bc(t.inlinePropertiesWhitelist):null}isInlinePropertyAllowed(t){return this.allowedPropertiesRegistry?!!this.allowedPropertiesRegistry[t]:!this.ignoredPropertiesRegistry[t]}shouldRegisterInlineProperty(t){return this.isInlinePropertyAllowed(t)&&!!this.validators[t]}getValidatorForProperty(t){return this.validators[t]||null}}o1.CSSPropertiesValidationRegistry=Q6;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.defaultCSSProcessorConfig=void 0;const Pl=96,xl=Pl*2.54,X6=xl/10,Cl=4/3,Y6=12*Cl,Z6={absoluteLengthUnitsMultiplicators:{cm:xl,in:Pl,mm:X6,pc:Y6,pt:Cl},absoluteBorderWidthsPixelMap:{medium:2.5,thick:5,thin:1},absoluteFontSizesPixelMap:{medium:14,"xx-small":8.5,"x-small":10,small:12,large:17,"x-large":20,"xx-large":24},relativeFontSizesCoefficientMap:{larger:1.2,smaller:.83},inlinePropertiesBlacklist:[],rootFontSize:16,inlinePropertiesWhitelist:null,isFontSupported(){return!0}};On.defaultCSSProcessorConfig=Z6;Object.defineProperty(t1,"__esModule",{value:!0});t1.CSSProcessor=void 0;var J6=r1,K6=n1,e7=o1,t7=On;function r7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class n7{constructor(t){r7(this,"registry",void 0);const r={...t7.defaultCSSProcessorConfig,...t};this.registry=new e7.CSSPropertiesValidationRegistry(r)}compileStyleDeclaration(t){return new K6.CSSNativeParseRun(t,this.registry).exec()}compileInlineCSS(t){return new J6.CSSInlineParseRun(t,this.registry).exec()}}t1.CSSProcessor=n7;var o7={},a7={},i7={},s7={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={CSSProcessor:!0,CSSProcessedProps:!0,mergeProps:!0};Object.defineProperty(e,"CSSProcessor",{enumerable:!0,get:function(){return r.CSSProcessor}}),Object.defineProperty(e,"CSSProcessedProps",{enumerable:!0,get:function(){return n.CSSProcessedProps}}),Object.defineProperty(e,"mergeProps",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var r=t1,n=$n,o=o7;Object.keys(o).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===o[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return o[h]}})});var i=On;Object.keys(i).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===i[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return i[h]}})});var a=a7;Object.keys(a).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===a[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return a[h]}})});var c=i7;Object.keys(c).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===c[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return c[h]}})});var l=s7;Object.keys(l).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(t,h)||h in e&&e[h]===l[h]||Object.defineProperty(e,h,{enumerable:!0,get:function(){return l[h]}})});var d=p(Pn);function p(h){return h&&h.__esModule?h:{default:h}}var v=r.CSSProcessor;e.default=v})(e1);function c7(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}var ki=c7,u7=ki;function l7(e){return function t(r){return arguments.length===0||u7(r)?t:e.apply(this,arguments)}}var Kt=l7,d7=Kt,f7=d7(function(t){return t==null}),p7=f7,h7=Kt,g7=h7(function(t){return!t}),m7=g7;function v7(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,o){return t.apply(this,arguments)};case 4:return function(r,n,o,i){return t.apply(this,arguments)};case 5:return function(r,n,o,i,a){return t.apply(this,arguments)};case 6:return function(r,n,o,i,a,c){return t.apply(this,arguments)};case 7:return function(r,n,o,i,a,c,l){return t.apply(this,arguments)};case 8:return function(r,n,o,i,a,c,l,d){return t.apply(this,arguments)};case 9:return function(r,n,o,i,a,c,l,d,p){return t.apply(this,arguments)};case 10:return function(r,n,o,i,a,c,l,d,p,v){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var Tl=v7;function y7(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var _7=y7,Ua=Kt,en=ki;function b7(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return en(r)?t:Ua(function(o){return e(r,o)});default:return en(r)&&en(n)?t:en(r)?Ua(function(o){return e(o,n)}):en(n)?Ua(function(o){return e(r,o)}):e(r,n)}}}var Fi=b7,fo=Kt,lr=Fi,Se=ki;function S7(e){return function t(r,n,o){switch(arguments.length){case 0:return t;case 1:return Se(r)?t:lr(function(i,a){return e(r,i,a)});case 2:return Se(r)&&Se(n)?t:Se(r)?lr(function(i,a){return e(i,n,a)}):Se(n)?lr(function(i,a){return e(r,i,a)}):fo(function(i){return e(r,n,i)});default:return Se(r)&&Se(n)&&Se(o)?t:Se(r)&&Se(n)?lr(function(i,a){return e(i,a,o)}):Se(r)&&Se(o)?lr(function(i,a){return e(i,n,a)}):Se(n)&&Se(o)?lr(function(i,a){return e(r,i,a)}):Se(r)?fo(function(i){return e(i,n,o)}):Se(n)?fo(function(i){return e(r,i,o)}):Se(o)?fo(function(i){return e(r,n,i)}):e(r,n,o)}}}var El=S7,Ml=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function w7(e){return Object.prototype.toString.call(e)==="[object String]"}var Rl=w7,$7=Kt,P7=Ml,x7=Rl,C7=$7(function(t){return P7(t)?!0:!t||typeof t!="object"||x7(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),T7=C7,E7=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function M7(e){return new E7(e)}var R7=M7,N7=Tl,O7=Fi,L7=O7(function(t,r){return N7(t.length,function(){return t.apply(r,arguments)})}),A7=L7,q7=T7,D7=R7,I7=A7;function k7(e,t,r){for(var n=0,o=r.length;n({...r,...n}),Object.prototype)}class zi{constructor(t,r){dr(this,"nativeTextFlow",void 0),dr(this,"nativeBlockFlow",void 0),dr(this,"nativeTextRet",void 0),dr(this,"nativeBlockRet",void 0),dr(this,"webTextFlow",void 0),dr(this,"webBlockRet",void 0),this.nativeTextFlow=po(r==null?void 0:r.nativeTextFlow,t.native.text.flow),this.nativeBlockFlow=po(r==null?void 0:r.nativeBlockFlow,t.native.block.flow),this.webTextFlow=po(r==null?void 0:r.webTextFlow,t.web.text.flow),this.nativeTextRet=po(r==null?void 0:r.nativeTextRet,t.native.text.retain),this.nativeBlockRet=t.native.block.retain,this.webBlockRet=t.web.block.retain}static empty(){return new zi(new g3.CSSProcessedProps)}}Or.TStyles=zi;var _1={};Object.defineProperty(_1,"__esModule",{value:!0});_1.default=void 0;const b3={anchor:!1,edits:"none",lang:"en",olNestLevel:-1,ulNestLevel:-1,direction:"ltr",extend(){return Object.create(this)},toString(){let e=`Markers { `;for(const t in this){const r=this[t];typeof r!="function"&&(e+=` ${t}: ${JSON.stringify(r)} `)}return e+"}"}};var S3=b3;_1.default=S3;var Ui={};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.default=Ll;function Pc(e){return Object.entries(e).reduce((r,[n,o])=>`${r}${r?",":""} ${n}: ${JSON.stringify(o)}`,"")}function w3(e,{withNodeIndex:t,withStyles:r}){var n;const o=e.tagName?`tagName="${e.tagName}"`:"anonymous",i=e.isUnregistered?"unregistered":null,a=t?`nodeIndex={${e.nodeIndex}}`:null,c=e.id?`id=${e.id}`:null,l=(n=e.classes)!==null&&n!==void 0&&n.length?`classes={[${e.classes.join(", ")}]}`:null,d=e.type==="text"?`data=${JSON.stringify(e.data)}`:null,p=typeof e.attributes.href=="string"?`href=${JSON.stringify(e.attributes.href)}`:null,v=typeof e.attributes.src=="string"?`src=${JSON.stringify(e.attributes.src)}`:null,h=r?Pc(e.getNativeStyles()):null,N=h?`nativeStyles={{${h} }}`:null,T=r?Pc(e.getWebStyles()):null,E=T?`webStyles={{${T}}}`:null,M=[o,i,a,c,l,d,p,v,N,E].filter(D=>D!==null).join(" ");return`<${e.displayName} ${M}`}function Ll(e,t){const{parentLeftPrefix:r="",isChild:n=!1,isLast:o=!0,withStyles:i,withNodeIndex:a}=t,c=n?" ":"",l=r+c,d=e.children.map((p,v)=>Ll(p,{parentLeftPrefix:r+"".padStart(c.length," "),isChild:!0,isLast:v===e.children.length-1,withStyles:i,withNodeIndex:a})).join("");return`${l}${w3(e,{withStyles:i,withNodeIndex:a})}${d?`> ${d} diff --git a/assets/HtmlContent.stories-CWJLTXVl.js b/assets/HtmlContent.stories-AMd582sk.js similarity index 95% rename from assets/HtmlContent.stories-CWJLTXVl.js rename to assets/HtmlContent.stories-AMd582sk.js index e8d13678..cfadcad3 100644 --- a/assets/HtmlContent.stories-CWJLTXVl.js +++ b/assets/HtmlContent.stories-AMd582sk.js @@ -1 +1 @@ -import{j as m}from"./jsx-runtime-Bxcv0yjW.js";import{H as i}from"./HtmlContent-DVMBJKEX.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-eRgc22Hn.js";import"./index-CEE--Juu.js";import"./index-iQAZAIR7.js";import"./index-BMk6Tmu2.js";import"./client-DDXjyz62.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-kJeFfQx-.js";import"./index-XPwQYiUg.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./index-S14X4tbk.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./index-CsseZgnR.js";import"./index-Cnrjv3xk.js";import"./index-ZuFZ7TrF.js";import"./index-C3bJM-gU.js";import"./index-Dk74W0Oi.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./base-color-CZpuL6yQ.js";import"./Row-BXpfxHoR.js";import"./Phrase-DprhL3Se.js";import"./ListItemMarker-bpCY8oNQ.js";import"./config-BZnShabN.js";import"./useDeviceContext-DGl4H2w7.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./useOpenMailUrl-Cpc3v_r1.js";import"./useOpenPhoneUrl-BpjRyIpq.js";const Y={component:i},e=n=>m.jsx(i,{...n});e.args={content:'

Bullebak (brug 149)

De Bullebak verbindt de Marnixstraat met de Korte Marnixstraat, richting het Haarlemmerplein. De brug kende al lange tijd problemen met openen en sluiten. In de zomer 2018 sprong hij zelfs ineens open. We vervangen nu de monumentale brug helemaal. Dit is een ingewikkelde klus, omdat de brug is ingeklemd tussen kwetsbare kademuren en omgeven door kabels en leidingen. De Bullebak is tijdens de werkzaamheden afgesloten voor trams, bussen en auto’s. Alleen fietsers, voetgangers en de brandweer houden hun doorgang via een tijdelijke hulpbrug. De vervanging van de bruggen is onderdeel van het project Binnenring.

Wanneer

De werkzaamheden zijn 12 augustus 2020 gestart en duren tot juni 2023.

',isIntro:!1};var t,r,o;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:"args => ",...(o=(r=e.parameters)==null?void 0:r.docs)==null?void 0:o.source}}};const Z=["Default"];export{e as Default,Z as __namedExportsOrder,Y as default}; +import{j as m}from"./jsx-runtime-Bxcv0yjW.js";import{H as i}from"./HtmlContent-BN7YmfBH.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-eRgc22Hn.js";import"./index-CEE--Juu.js";import"./index-iQAZAIR7.js";import"./index-BMk6Tmu2.js";import"./client-DDXjyz62.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-kJeFfQx-.js";import"./index-XPwQYiUg.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./index-S14X4tbk.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./index-CsseZgnR.js";import"./index-Cnrjv3xk.js";import"./index-ZuFZ7TrF.js";import"./index-C3bJM-gU.js";import"./index-Dk74W0Oi.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./base-color-CZpuL6yQ.js";import"./Row-BXpfxHoR.js";import"./Phrase-t0rOiClQ.js";import"./ListItemMarker-BvZewDFw.js";import"./config-BZnShabN.js";import"./useDeviceContext-DGl4H2w7.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./useOpenMailUrl-Cpc3v_r1.js";import"./useOpenPhoneUrl-BpjRyIpq.js";const Y={component:i},e=n=>m.jsx(i,{...n});e.args={content:'

Bullebak (brug 149)

De Bullebak verbindt de Marnixstraat met de Korte Marnixstraat, richting het Haarlemmerplein. De brug kende al lange tijd problemen met openen en sluiten. In de zomer 2018 sprong hij zelfs ineens open. We vervangen nu de monumentale brug helemaal. Dit is een ingewikkelde klus, omdat de brug is ingeklemd tussen kwetsbare kademuren en omgeven door kabels en leidingen. De Bullebak is tijdens de werkzaamheden afgesloten voor trams, bussen en auto’s. Alleen fietsers, voetgangers en de brandweer houden hun doorgang via een tijdelijke hulpbrug. De vervanging van de bruggen is onderdeel van het project Binnenring.

Wanneer

De werkzaamheden zijn 12 augustus 2020 gestart en duren tot juni 2023.

',isIntro:!1};var t,r,o;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:"args => ",...(o=(r=e.parameters)==null?void 0:r.docs)==null?void 0:o.source}}};const Z=["Default"];export{e as Default,Z as __namedExportsOrder,Y as default}; diff --git a/assets/Icon-CO3hZ5HW.js b/assets/Icon-DcC-yiY8.js similarity index 93% rename from assets/Icon-CO3hZ5HW.js rename to assets/Icon-DcC-yiY8.js index 8dfaec10..8626d2d3 100644 --- a/assets/Icon-CO3hZ5HW.js +++ b/assets/Icon-DcC-yiY8.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{r}from"./index-mfbfsM12.js";import{S as C,P as M}from"./index-DYSHDArR.js";import{R as z}from"./Row-BXpfxHoR.js";import{A as l,E as d}from"./Animated-C23eizOh.js";import{I as L}from"./types-BJ_48vsK.js";import{u as Z}from"./useDeviceContext-DGl4H2w7.js";import{u as g}from"./useTheme-CJIBCVMY.js";import{V as f}from"./index-BDsvWohO.js";const n=({children:e})=>{const t=r.useRef(new l.Value(0));return r.useEffect(()=>{const{start:h,stop:v}=l.loop(l.timing(t.current,{toValue:360,duration:1e3,easing:d.linear,useNativeDriver:!0}));return h(),v},[]),a.jsx(z,{align:"center",children:a.jsx(l.View,{accessibilityLabel:"Bezig …",accessible:!0,style:{transform:[{rotate:t.current.interpolate({inputRange:[0,360],outputRange:["0deg","360deg"]})}]},children:e})})};try{n.displayName="Rotator",n.__docgenInfo={description:"Indicates activity, often while performing network tasks.\nBest used through `PleaseWait` rather than by itself.",displayName:"Rotator",props:{}}}catch{}const y={alarm:{path:"M22.5 52.5H0L0 45H1.875C6.01714 45 9.375 41.6421 9.375 37.5V18.75C9.375 10.4657 16.0907 3.75 24.375 3.75H26.25C26.25 1.67893 27.9289 0 30 0C32.0711 0 33.75 1.67893 33.75 3.75H35.625C43.9093 3.75 50.625 10.4657 50.625 18.75V37.5C50.625 41.6421 53.9829 45 58.125 45H60V52.5H37.5C37.5 56.6421 34.1421 60 30 60C25.8579 60 22.5 56.6421 22.5 52.5ZM26.25 52.5C26.25 54.5711 27.9289 56.25 30 56.25C32.0711 56.25 33.75 54.5711 33.75 52.5H26.25ZM16.875 18.75V37.5C16.875 40.2322 16.1445 42.7937 14.8683 45H45.1317C43.8555 42.7937 43.125 40.2322 43.125 37.5V18.75C43.125 14.6079 39.7671 11.25 35.625 11.25H24.375C20.2329 11.25 16.875 14.6079 16.875 18.75Z",viewBox:"0 0 60 60"},alert:{path:"m15.9 2.3-16 28.6h32l-16-28.6zm0 8.4 9 16.1h-18l9-16.1zm-1 5.9h2v5.1h-2v-5.1zm2 8.1v-2h-2v2h2z"},chat:{path:"M23.5 12.5H6.5V10.5H23.5V12.5ZM19.5 14.5H6.5V16.5H19.5V14.5ZM31.5 5V22H20.5V27L15.5 22H0.5V5H31.5ZM29.5 7H2.5V20H29.5V7Z"},"circle-check-mark":{path:"m7.07 9.88 2.64 2.89 5.91-6.08 1.43 1.4-7.38 7.6-4.07-4.46 1.47-1.35ZM0 11C0 4.92 4.92 0 11 0s11 4.92 11 11-4.92 11-11 11S0 17.08 0 11Zm2 0c0 4.96 4.04 9 9 9s9-4.04 9-9-4.04-9-9-9-9 4.04-9 9Z",viewBox:"0 0 22 22"},announcement:{path:"M23 0v11.6c1.8.6 3 2.3 3 4.2s-1.2 3.6-3 4.2v11.6L12.6 26l-5.2 5.2-2.8-2.8 4.3-4.3-1.5-.8H0v-15h7.4L23 0zM4 12.3v7h4v-7H4zM19 25l-9-4.8v-8.7l9-4.8V25zM29.4 8.1l-3.1 3.1 1.4 1.4 3.1-3.1-1.4-1.4zm-1.7 11-1.4 1.4 3.1 2.9 1.4-1.4-3.1-2.9zm.3-4.3h4v2h-4v-2z"},api:{path:"M18.593 17.812a.938.938 0 0 1 0 1.326l-2.217 2.216 2.12 2.12L16.975 25H9.126l-5 5L2 27.879l4.99-4.99V15.01l1.521-1.521 2.12 2.12 2.217-2.217a.937.937 0 1 1 1.325 1.326l-2.216 2.217 3.093 3.093 2.217-2.216a.938.938 0 0 1 1.326 0zM30 4.121 27.879 2l-4.907 4.907-.9-.9h-6l-3.1 3 10 10 3.1-3v-6l-.982-.982z"},car:{path:"M24 20a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM7 20a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM19 7l7 7h6v9h-3a5 5 0 0 0-10 0h-7a5 5 0 0 0-10 0H0v-9l7-7h12zm-1 2h-5v5h9.962L18 9zm-7 0H8l-5 5h8V9z"},card:{path:"M30.223 26.668H1.777V5.332h28.446ZM5.332 23.109h21.336V8.891H5.332Zm8.535-6.043H8.891a1.78 1.78 0 0 0-1.782 1.778v2.488h8.536v-2.488a1.78 1.78 0 0 0-1.778-1.778Zm11.024-1.957h-2.668v-2.664h-1.778v2.664h-2.668v1.782h2.668v2.664h1.778V16.89h2.668ZM8.523 13.52a2.854 2.854 0 1 0 5.709.003 2.854 2.854 0 0 0-5.709-.002"},chatting:{path:"M23.4 7h-15V5.5h15V7zm-4 1.5h-11V10h11V8.5zm10-7v13h-9v5l-5-5h-13v-13h27zm-2 2h-23v9h23v-9zm-2.5 24h-3.7c-2.1 0-3.6.9-3.6 3.6v.9h11v-.9c0-2.7-1.6-3.6-3.7-3.6zm.9-3.7c.2-1.1-.3-2.2-1.2-2.9-.9-.6-2.2-.6-3.1 0s-1.4 1.8-1.2 2.9c.3 1.3 1.4 2.3 2.8 2.3s2.4-1 2.7-2.3zm-14.9 3.7H7.2c-2.1 0-3.6.9-3.6 3.6v.9h11v-.9c0-2.7-1.6-3.6-3.7-3.6zm.9-3.7c.2-1.1-.3-2.2-1.2-2.9s-2.2-.6-3.1 0-1.4 1.8-1.2 2.9c0 .7.3 1.4.8 1.9s1.2.8 2 .8c1.5 0 2.7-1.2 2.7-2.7z"},"check-mark":{path:"M12.1 27-.1 14.2l2.9-2.8 9.3 9.8L29 4l2.9 2.8L12.1 27z"},"chevron-down":{path:"m15.9 25.8-16-16 2.9-2.9L15.9 20 29 6.9l2.9 2.9-16 16z"},"chevron-left":{path:"m23.237 32-16-16 16-16 2.9 2.91L13.057 16l13.08 13.09-2.9 2.91Z"},"chevron-right":{path:"m9.6 32-2.9-2.9L19.8 16 6.7 2.9 9.6 0l16 16-16 16z"},"chevron-up":{path:"M29 25.8 15.9 12.7 2.8 25.8l-2.9-2.9 16-16 16 16-2.9 2.9z"},child:{path:"M20.7777 8.07237C20.3489 4.64873 17.4277 2 13.8879 2C10.0529 2 6.94394 5.10891 6.94394 8.94394C6.99381 12.7581 10.0737 15.838 13.8879 15.8879C14.3533 15.8818 14.8078 15.8306 15.2472 15.7384C15.2039 15.4404 15.1796 15.1362 15.1756 14.8271L15.1754 14.815V14.8029C15.1754 11.4474 17.5907 8.65594 20.7777 8.07237ZM10.1844 29.7758H0V27.4611C0 20.5172 3.88861 18.2025 9.25859 18.2025H16.1059C16.4217 18.7463 16.8097 19.243 17.2566 19.6796C15.5916 19.8588 13.9819 20.3883 12.6926 21.5233C10.9893 23.0226 10.1844 25.2734 10.1844 28.1121V29.7758ZM32.0003 29.7758H12.0365V28.1122C12.0365 23.1212 14.8314 21.4576 18.6911 21.4576H25.3457C29.2054 21.4576 32.0003 23.1212 32.0003 28.1122V29.7758ZM22.0184 19.7939C24.7598 19.7581 26.9735 17.5444 27.0093 14.803C27.0093 12.0465 24.7748 9.81201 22.0184 9.81201C19.2619 9.81201 17.0274 12.0465 17.0274 14.803C17.0633 17.5444 19.2769 19.7581 22.0184 19.7939Z"},circle:{path:"M4 16c0 6.6 5.4 12 12 12s12-5.4 12-12S22.6 4 16 4 4 9.4 4 16"},"city-office":{path:"M16 8c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm16 9v2h-2v13h-2v-2H4v2H2V19H0v-2h32zm-4 9v-5H4v5h24zM8 15V12.2c.1-1.7 1.5-3.1 3.2-3.2H20.5c1.8 0 3.3 1.4 3.4 3.2V15H8z"},"city-pass-pass":{path:"M4 6C1.79086 6 0 7.79086 0 10V22C0 24.2091 1.79086 26 4 26H28C30.2091 26 32 24.2091 32 22V10C32 7.79086 30.2091 6 28 6H4ZM18.1818 10.5H11.0909V14.3182H15.4545L10 19.7727L12.6999 22.4726L18.1818 16.9906V21.4091H22V14.3182V10.5H18.1818Z"},"city-pass":{path:"M5.44005 0.461548H26.6331L26.6331 21.7238H18.4154V15.96L6.87457 27.5385L0.0769043 20.7186L12.0504 8.70608H5.44005V0.461548Z"},clock:{path:"M15.9 0C7 0-.1 7.2-.1 16s7.2 16 16 16 16-7.2 16-16c0-4.2-1.7-8.3-4.7-11.3S20.1 0 15.9 0zm.9 28v-2h-2v1.9C9 27.4 4.4 22.8 4 17h1.9v-2H4C4.4 9.2 9 4.5 14.9 4.1V6h2V4.1c5.8.4 10.4 5.1 10.9 10.9h-1.9v2h1.9c-.5 5.9-5.1 10.6-11 11zm.1-13h4v2h-6V9h2v6z"},close:{path:"M29.333 5.47 26.53 2.668 16 13.187 5.47 2.666 2.668 5.47 13.187 16 2.666 26.53l2.804 2.803L16 18.813l10.53 10.52 2.803-2.804L18.813 16z"},collaborate:{path:"m26.3 18.3 5.3-5.3L19.9 1.4l-4.2 4.2-3.8-3.8L.5 13.2l5.4 5.4-1.2 1.2a2.9 2.9 0 0 0 0 4.2 2.9 2.9 0 0 0 2.1.9 3.1 3.1 0 0 0 .9 2.2 3.3 3.3 0 0 0 2.2.8 3.3 3.3 0 0 0 .8 2.2 3.1 3.1 0 0 0 2.2.9 2.7 2.7 0 0 0 2.1-.9l1.2-1.2.9.9a3.3 3.3 0 0 0 2.1.9 3.4 3.4 0 0 0 2.2-.9 3.1 3.1 0 0 0 .9-2.2 2.9 2.9 0 0 0 2.1-.9 2.7 2.7 0 0 0 .9-2.1 3.1 3.1 0 0 0 3-3 3.1 3.1 0 0 0-.9-2.2l-1.1-1.1zM19.9 4.2l8.8 8.8-3.5 3.6-.3.3-7.2-7.2-2.4 2.4a1.2 1.2 0 0 1-1.6 0 1.2 1.2 0 0 1 0-1.7l6.2-6.2zM7.6 22.6a1.1 1.1 0 0 1-1.5 0 1 1 0 0 1 0-1.4L7.3 20l1.5 1.4-1.2 1.2zm3 3a1.1 1.1 0 0 1-1.5 0 .9.9 0 0 1-.3-.7 1.1 1.1 0 0 1 .3-.7l1.2-1.2 1.5 1.5-1.2 1.1zm3 3.1a1 1 0 0 1-1.4 0 1.1 1.1 0 0 1-.3-.8 1.1 1.1 0 0 1 .3-.7l1.1-1.2 1.5 1.5-1.2 1.2zM26 22.3a1 1 0 0 1-1.4 0L21.3 19l-1.6 1.6 3.3 3.3a1 1 0 0 1 0 1.4 1.1 1.1 0 0 1-.7.3 1.1 1.1 0 0 1-.8-.3l-3.2-3.2-1.6 1.5 3.3 3.3a1.1 1.1 0 0 1 0 1.5 1.1 1.1 0 0 1-.8.3 1.1 1.1 0 0 1-.7-.3L3.3 13.2l.2-.2 8.4-8.4L14.3 7l-2 2a3.1 3.1 0 0 0 0 4.5 3.3 3.3 0 0 0 4.5 0l.9-.9 8.3 8.3a1 1 0 0 1 0 1.4z"},"construction-work":{path:"m31.2 26.7-2.3-2.4-1.6 1.5-3.2-3.2-4-12.8c-.2-.7-.5-1.3-1.1-1.8l-3.8-3.7-.4-.4L13 2.1l-.3-.3L7 7.9l2.4 2.4 2.2 2.2-2.7 3.9L0 31.7h4l7-12.1 4.2 4.4v7.7h3.5v-9.1L15 18.8l1.2-1.7L26 27l-1.6 1.4 2.2 2.5c.6.6 1.4.9 2.2 1 .8.1 1.7-.2 2.3-.9.6-.6 1-1.3 1-2.2 0-.7-.3-1.5-.9-2.1zM10.6 9.1l2.2-2.3 1.7 1.7-1.8 2.5-2.1-1.9zm7.7 4.8 1.3 4-2.4-2.4 1.1-1.6z M17.5,4a3.2,3.2 0 1,0 6.4,0a3.2,3.2 0 1,0 -6.4,0"},copy:{path:"M14 2H6V4H12V12H14V2ZM4 0V4H3.5H0V18H12V14H16V0H4ZM3.5 6H2V16H10V6H4.5H3.5Z",viewBox:"0 0 16 18"},"document-text":{path:"m17.6 5 5.4 5.4V27H9V5h8.6m1.3-3H6v28h20V9.1L18.9 2zM11 16h10v-2H11v2zm0 4h10v-2H11v2zm0 4h10v-2H11v2z"},edit:{path:"M24.5 1 4.2 21.3 1 31l9.7-3.2L31 7.5 24.5 1zM6.3 27.1 5 25.7 6 23l3 3.1-2.7 1z"},email:{path:"M-.1 4.6v24h32v-24h-32zM16 16.9 5.9 8.6H26l-10 8.3zm-4.8-1.3-7.3 6.8V9.5l7.3 6.1zm1.6 1.3 3.2 2.7 3.1-2.6 8.2 7.6H4.4l8.4-7.7zm7.8-1.2 7.2-6.1v12.8l-7.2-6.7z"},enlarge:{path:"M17.9 14V0h-4v14h-14v4h14v14h4V18h14v-4h-14z"},error:{path:"M16.1399 6.91003L17.5099 8.36003L13.5099 12.14L17.5099 15.91L16.1399 17.36L12.0599 13.51L7.97986 17.36L6.60986 15.91L10.5999 12.14L6.60986 8.36003L7.97986 6.91003L12.0599 10.76L16.1399 6.91003ZM1 12C1 5.92 5.92 1 12 1C18.08 1 23 5.92 23 12C23 18.08 18.08 23 12 23C5.92 23 1 18.08 1 12ZM21 12C21 7.04 16.96 3 12 3C7.04 3 3 7.04 3 12C3 16.96 7.04 21 12 21C16.96 21 21 16.96 21 12Z",viewBox:"0 0 24 24"},"external-link":{path:"M19.006 0H32.01v12.992h-4.002V6.826L14.434 20.417l-2.83-2.818L25.187 3.998h-6.182V0zm7.002 13.991L26.018 32H.01V6.016h17.975l-3.98 3.978.02.02H4.01v17.988h18.006l-.01-10.013 4-3.998z"},eye:{path:"M16 5C8.72727 5 2.51636 9.53853 0 15.945C2.51636 22.3515 8.72727 26.89 16 26.89C23.2727 26.89 29.4836 22.3515 32 15.945C29.4836 9.53853 23.2727 5 16 5ZM16 23.2417C11.9855 23.2417 8.72727 19.9728 8.72727 15.945C8.72727 11.9172 11.9855 8.64833 16 8.64833C20.0145 8.64833 23.2727 11.9172 23.2727 15.945C23.2727 19.9728 20.0145 23.2417 16 23.2417ZM16 11.567C13.5855 11.567 11.6364 13.5225 11.6364 15.945C11.6364 18.3675 13.5855 20.323 16 20.323C18.4145 20.323 20.3636 18.3675 20.3636 15.945C20.3636 13.5225 18.4145 11.567 16 11.567Z"},facade:{path:"M22.6 9.5V7.8h-1.1V6.4h-1V4.9h-.9V3.5h-1.1V2.2h-1V1h-2.9v1.2h-1v1.3h-1V4.9h-1v1.5h-1v1.4h-1v1.7h-1V31h15.3V9.5h-1.3zM13.7 6h4.6v4h-4.6V6zm1.2 22.9h-4v-8h4v8zm0-9.9h-4v-7h4v7zm6.2 9.9h-4v-8h4v8zm0-9.9h-4v-7h4v7z"},housing:{path:"M14 28h4.008v-8H14v8zm-2 0V18h8.008v10H28V12.98L16 5 4 13.516V28h8zM0 32V11.022L16 0l16 11.022V32H0z"},"park-sign":{path:"M4 0H28V32H4V0ZM24 4H8V28H24V4ZM6 2V30H26V2H6ZM12 8V19.7H14.79V15.884H16.626C19.002 15.884 20.676 14.21 20.676 11.942C20.676 9.674 18.984 8 16.626 8H12ZM16.392 13.67H14.79V10.214H16.392C17.238 10.214 17.85 10.934 17.85 11.942C17.85 12.986 17.238 13.67 16.392 13.67Z"},info:{path:"M15.9 2c-7.7 0-14 6.3-14 14s6.3 14 14 14 14-6.3 14-14-6.3-14-14-14zm0 24c-5.5 0-10-4.5-10-10s4.5-10 10-10 10 4.5 10 10-4.5 10-10 10zm-1-15h2V9h-2v2zm0 12h2V13h-2v10z"},list:{path:"M32.0064 22V26H9.69577V22H32.0064ZM5.52556 22V26H1.35535V22H5.52556ZM32.0064 14V18H9.69577V14H32.0064ZM5.52556 14V18H1.35535V14H5.52556ZM32.0064 6V10H9.69577V6H32.0064ZM5.52556 6V10H1.35535V6H5.52556Z"},location:{path:"m16.679 32-1.23-1.086c-.45-.369-10.878-9.68-10.878-18.806C4.571 5.42 9.992 0 16.68 0s12.108 5.42 12.108 12.108c0 9.126-10.428 18.438-10.879 18.806L16.68 32Zm0-28.271A8.39 8.39 0 0 0 8.3 12.108c0 5.387 5.244 11.728 8.369 14.842 2.591-2.55 8.389-9.034 8.389-14.842a8.39 8.39 0 0 0-8.379-8.38Zm0 12.476a4.097 4.097 0 1 0 0-8.195 4.097 4.097 0 0 0 0 8.195Z"},login:{path:"M17.777 1.777v3.555h8.891v21.336h-8.89v3.555h12.445V1.777ZM16.73 7.832l-2.507 2.516 3.875 3.875H1.778v3.554h16.32l-3.875 3.875 2.507 2.516L24.906 16Zm0 0"},"organic-waste-container":{path:"M23.2 4.8C22.9 2.1 19.6 0 15.7 0S8.5 2.2 8.1 4.8H7V30H3.9v2h24v-2h-3.2V4.8h-1.5zM12.3 2.4h6.9v6.9h-6.9V2.4zM22.7 29H9V12.6h13.7V29z"},person:{path:"M31 32H1v-2.5c0-7.5 4.2-10 10-10h10c5.8 0 10 2.5 10 10V32ZM16 17a7.6 7.6 0 0 0 7.5-7.5 7.5 7.5 0 0 0-15 0A7.6 7.6 0 0 0 16 17Z"},"person-desk":{path:"M30 16v2h-2v12h-2v-2H6v2H4V18H2v-2h28zm-4 4H6v4h20v-4zM18 8.98c2.3 0 4 1 4 4v1H10v-1c0-3 1.69-4 4-4zM16 2a2.99 2.99 0 1 1 0 5.98A2.99 2.99 0 0 1 16 2z"},phone:{path:"M30.4 26.9s-3.1 3.4-5.6 3.6-9.2-3.2-14.7-8.7c-5.5-5.5-9-11.4-8.7-14.7S5 1.5 5 1.5l7.1 7.1-2.8 2.8 11.2 11.2 2.8-2.8 7.1 7.1z"},pointer:{path:"M29.18 14C28.3576 8.41126 23.9687 4.02245 18.38 3.2V0H14.38V3.2C8.77561 3.99119 4.3712 8.3956 3.58 14H0.380005V18H3.58C4.3712 23.6044 8.77561 28.0088 14.38 28.8V32H18.38V28.8C23.9534 27.947 28.327 23.5734 29.18 18H32.38V14H29.18ZM16.38 25C11.4094 25 7.38 20.9706 7.38 16C7.38 11.0294 11.4094 7 16.38 7C21.3506 7 25.38 11.0294 25.38 16C25.38 18.3869 24.4318 20.6761 22.744 22.364C21.0561 24.0518 18.767 25 16.38 25ZM21.38 16C21.38 18.7614 19.1414 21 16.38 21C13.6186 21 11.38 18.7614 11.38 16C11.38 13.2386 13.6186 11 16.38 11C19.1414 11 21.38 13.2386 21.38 16Z"},"question-mark-solid":{path:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16S24.8 0 16 0zm-.4 24.3c-1.1 0-1.9-.8-1.9-1.9s.8-1.9 1.9-1.9 1.9.8 1.9 1.9c.1 1.1-.7 1.9-1.9 1.9zm3.3-8.7c-.9.9-1.9 1.9-1.9 2.9v.8h-2.7v-1.2c0-1.6.8-2.4 1.5-3.1.7-.7 1.5-1.2 1.5-2.4 0-.9-.7-1.3-1.7-1.3-.8 0-1.5.4-2 1.2l-2.3-2C12.4 9 13.7 8.4 16 8.4c2.8 0 4.5 1.5 4.5 3.7.2 1.5-.8 2.6-1.6 3.5z"},"question-mark-circle":{path:"M17.7234 24V22H15.6383V24H17.7234ZM12.5106 13C12.5106 10.79 14.3768 9 16.6808 9C18.9849 9 20.851 10.79 20.851 13C20.851 14.2829 20.0274 14.9733 19.2255 15.6455C18.4647 16.2833 17.7234 16.9046 17.7234 18V19.9919H15.6383V18C15.6383 16.1787 16.6205 15.4566 17.4841 14.8217C18.1615 14.3236 18.7659 13.8792 18.7659 13C18.7659 11.9 17.8276 11 16.6808 11C15.534 11 14.5957 11.9 14.5957 13H12.5106ZM16.6808 2C8.65317 2 2.08508 8.3 2.08508 16C2.08508 23.7 8.65317 30 16.6808 30C24.7085 30 31.2766 23.7 31.2766 16C31.2766 8.3 24.7085 2 16.6808 2ZM16.6808 26C10.9468 26 6.2553 21.5 6.2553 16C6.2553 10.5 10.9468 6 16.6808 6C22.4149 6 27.1064 10.5 27.1064 16C27.1064 21.5 22.4149 26 16.6808 26Z"},search:{path:"m32 29.119-9.825-9.825a12.217 12.217 0 1 0-2.88 2.881L29.118 32 32 29.119Zm-19.771-8.745a8.145 8.145 0 1 1 0-16.29 8.145 8.145 0 0 1 0 16.29Z"},settings:{path:"M0 18.6v-5.1H1.4c2.1-.4 3.5-2.3 3.1-4.4-.1-.6-.3-1.1-.6-1.6l-1-1 3.6-3.6V3l.9.9c1.7 1.2 4.1.8 5.3-.9.3-.4.5-.9.6-1.5V0h5.1V1.4c.4 2.1 2.3 3.5 4.4 3.1.5-.1 1-.3 1.5-.6l1-1 3.6 3.6h-.1l-.9.9c-1.1 1.5-.9 3.6.4 4.9.5.5 1.2.9 2 1.1H32v5.1H30.6c-2.1.4-3.5 2.4-3.1 4.4.1.5.3 1 .6 1.5l1 1-3.6 3.6v-.1l-.9-.9c-1.7-1.2-4.1-.8-5.3.9-.3.4-.5.9-.6 1.5V32h-5.1V30.6c-.4-2.1-2.3-3.5-4.4-3.1-.5.1-1 .3-1.5.6l-1 1-3.6-3.6h.1l.9-.9c1.2-1.7.8-4.1-.9-5.3-.4-.3-.9-.5-1.5-.6H0zM16 22c3.3 0 6-2.7 6-6s-2.7-6-6-6-6 2.7-6 6 2.7 6 6 6z"},spinner:{path:"M16.3 5c2.2 0 4.3.7 6.1 1.9 1.8 1.2 3.2 3 4 5 .8 2 1 4.2.6 6.4-.4 2.1-1.5 4.1-3.1 5.6s-3.5 2.6-5.7 3c-2.1.4-4.3.2-6.3-.7-2-.9-3.7-2.3-4.9-4.1-1.2-1.8-1.8-4-1.8-6.1"},"trash-bin":{path:"M21,4h8v4h-2v24H5V8H3V4h8V0h10V4z M19,2h-6v2h6V2z M23,28H9V8h14V28z M13,12h-2v12h2V12z M15,12h2v12h-2V12z M21,12h-2v12h2V12z"},"two-persons":{path:"M9.1 13.7c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3S4.8 7 4.8 9.4c.1 2.4 2 4.3 4.3 4.3zM25.7 20.5H20c-.8 0-1.6.1-2.3.3 0-4.2-2.4-5.6-5.7-5.6H6.3C3 15.2.6 16.6.6 20.9v1.4h14.8c-.7.9-1.1 2.2-1.1 3.9v1.4h17.1v-1.4c0-4.3-2.4-5.7-5.7-5.7z M22.9 19c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3-4.3 1.9-4.3 4.3 1.9 4.3 4.3 4.3z"},vote:{path:"m 20.533999,22.34317 v 9.689243 H 0.13559322 V 11.634006 H 11.099736 L 9.5698561,13.163887 A 8.7968127,8.7968127 0 1 0 18.749139,24.12803 Z M 17.856709,16.606118 29.330812,5.1320143 27.545952,3.3471538 16.071848,14.821257 Z M 30.350732,6.1519347 18.621649,18.008508 15.561888,18.645959 14.032007,17.116078 14.541968,14.311297 26.526031,2.3272335 24.741171,0.54237288 12.502127,12.908907 10.462286,22.21568 19.641569,20.685799 32.135593,7.9367952 Z"},whatsapp:{path:"m0 32 2.2-8.2C.8 21.4.1 18.7.1 15.9.1 7.1 7.3 0 16 0c4.2 0 8.2 1.7 11.2 4.7s4.6 7 4.6 11.2c0 8.7-7.1 15.9-15.9 15.9-2.7 0-5.3-.7-7.6-1.9L0 32zm8.8-5.1C11 28.3 13.2 29 16 29c7.3 0 13.2-5.9 13.2-13.2 0-7.3-5.9-13.2-13.2-13.2-7.3.1-13.2 6-13.2 13.3 0 3 .9 5.2 2.3 7.5l-1.3 4.9 5-1.4zM24 19.6c-.1-.2-.4-.3-.8-.5s-2.3-1.2-2.7-1.3c-.4-.1-.6-.2-.9.2-.3.4-1 1.3-1.3 1.6s-.5.3-.9.1c-.4-.2-1.7-.6-3.2-2-1.2-1.1-2-2.3-2.2-2.7-.2-.4 0-.6.2-.8.2-.2.4-.5.6-.7.2-.2.3-.4.4-.7.1-.3.1-.5 0-.7-.1-.1-.8-2.1-1.2-2.9-.3-.8-.6-.7-.9-.7h-.8c-.3 0-.7.1-1.1.5-.2.4-1.3 1.4-1.3 3.3 0 2 1.4 3.8 1.6 4.1.2.3 2.8 4.3 6.8 6 .9.4 1.7.7 2.3.8.9.3 1.8.3 2.5.2.8-.1 2.3-1 2.7-1.9.3-.9.3-1.7.2-1.9z"},"wifi-disconnect":{path:"M6.5 7.41421L23.5 24.4142L24.9142 23L22.4426 20.5284L23.7 19.3144C22.2375 17.6153 20.2337 16.5013 18.0541 16.1399L14.5768 12.6626C15.2092 12.5673 15.8518 12.5185 16.5 12.5185C20.2155 12.5185 23.7506 14.1206 26.2 16.9144L29 14.1144C25.8 10.5939 21.2575 8.59512 16.5 8.6144C14.7252 8.60721 12.9803 8.88087 11.3238 9.40962L7.91421 6L6.5 7.41421ZM10.3501 14.0788L7.47339 11.2021C6.20136 12.0038 5.031 12.9801 4 14.1144L6.8 16.9144C7.81762 15.7537 9.02263 14.7987 10.3501 14.0788ZM16.318 20.0467L12.9654 16.694C11.5669 17.2546 10.3055 18.1462 9.3 19.3144L12.2 22.1144C13.2057 20.8534 14.712 20.0998 16.318 20.0467ZM16.5 22.9144C15.607 22.9033 14.7882 23.4101 14.4 24.2144L16.5 26.2144L18.6 24.2144C18.2118 23.4101 17.393 22.9033 16.5 22.9144Z"}},k=3,w={spinner:{Wrapper:n,stroke:!0}},x="0 0 32 32",V=({color:e="default",name:t,size:h="md",testID:v,"logging-label":u})=>{const{color:i}=g(),{fontScale:p}=Z(),s=L[h]*p,c=y[t],{Wrapper:H=r.Fragment,stroke:o,strokeWidth:m=k}=w[t]??{};return a.jsx(f,{"logging-label":u,testID:v,children:a.jsx(H,{children:a.jsx(C,{fillRule:"evenodd",height:s,viewBox:"viewBox"in c?c.viewBox:x,width:s,children:a.jsx(M,{d:c.path,fill:o?"none":i.text[e],stroke:o?i.text[e]:void 0,strokeWidth:o?m:void 0})})})})};try{V.displayName="Icon",V.__docgenInfo={description:"",displayName:"Icon",props:{color:{defaultValue:{value:"default"},description:"The color of the icon to display.",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"inverse"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"warning"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"The name of the icon to display.",name:"name",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"alarm"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},size:{defaultValue:{value:"md"},description:"The size of the icon.",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'},{value:'"ml"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{V as I}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{r}from"./index-mfbfsM12.js";import{S as C,P as M}from"./index-DYSHDArR.js";import{R as z}from"./Row-BXpfxHoR.js";import{A as l,E as d}from"./Animated-C23eizOh.js";import{I as L}from"./types-BJ_48vsK.js";import{u as Z}from"./useDeviceContext-DGl4H2w7.js";import{u as g}from"./useTheme-CJIBCVMY.js";import{V as f}from"./index-BDsvWohO.js";const n=({children:e})=>{const t=r.useRef(new l.Value(0));return r.useEffect(()=>{const{start:h,stop:v}=l.loop(l.timing(t.current,{toValue:360,duration:1e3,easing:d.linear,useNativeDriver:!0}));return h(),v},[]),a.jsx(z,{align:"center",children:a.jsx(l.View,{accessibilityLabel:"Bezig …",accessible:!0,style:{transform:[{rotate:t.current.interpolate({inputRange:[0,360],outputRange:["0deg","360deg"]})}]},children:e})})};try{n.displayName="Rotator",n.__docgenInfo={description:"Indicates activity, often while performing network tasks.\nBest used through `PleaseWait` rather than by itself.",displayName:"Rotator",props:{}}}catch{}const y={alarm:{path:"M22.5 52.5H0L0 45H1.875C6.01714 45 9.375 41.6421 9.375 37.5V18.75C9.375 10.4657 16.0907 3.75 24.375 3.75H26.25C26.25 1.67893 27.9289 0 30 0C32.0711 0 33.75 1.67893 33.75 3.75H35.625C43.9093 3.75 50.625 10.4657 50.625 18.75V37.5C50.625 41.6421 53.9829 45 58.125 45H60V52.5H37.5C37.5 56.6421 34.1421 60 30 60C25.8579 60 22.5 56.6421 22.5 52.5ZM26.25 52.5C26.25 54.5711 27.9289 56.25 30 56.25C32.0711 56.25 33.75 54.5711 33.75 52.5H26.25ZM16.875 18.75V37.5C16.875 40.2322 16.1445 42.7937 14.8683 45H45.1317C43.8555 42.7937 43.125 40.2322 43.125 37.5V18.75C43.125 14.6079 39.7671 11.25 35.625 11.25H24.375C20.2329 11.25 16.875 14.6079 16.875 18.75Z",viewBox:"0 0 60 60"},alert:{path:"m15.9 2.3-16 28.6h32l-16-28.6zm0 8.4 9 16.1h-18l9-16.1zm-1 5.9h2v5.1h-2v-5.1zm2 8.1v-2h-2v2h2z"},chat:{path:"M23.5 12.5H6.5V10.5H23.5V12.5ZM19.5 14.5H6.5V16.5H19.5V14.5ZM31.5 5V22H20.5V27L15.5 22H0.5V5H31.5ZM29.5 7H2.5V20H29.5V7Z"},"circle-check-mark":{path:"m7.07 9.88 2.64 2.89 5.91-6.08 1.43 1.4-7.38 7.6-4.07-4.46 1.47-1.35ZM0 11C0 4.92 4.92 0 11 0s11 4.92 11 11-4.92 11-11 11S0 17.08 0 11Zm2 0c0 4.96 4.04 9 9 9s9-4.04 9-9-4.04-9-9-9-9 4.04-9 9Z",viewBox:"0 0 22 22"},announcement:{path:"M23 0v11.6c1.8.6 3 2.3 3 4.2s-1.2 3.6-3 4.2v11.6L12.6 26l-5.2 5.2-2.8-2.8 4.3-4.3-1.5-.8H0v-15h7.4L23 0zM4 12.3v7h4v-7H4zM19 25l-9-4.8v-8.7l9-4.8V25zM29.4 8.1l-3.1 3.1 1.4 1.4 3.1-3.1-1.4-1.4zm-1.7 11-1.4 1.4 3.1 2.9 1.4-1.4-3.1-2.9zm.3-4.3h4v2h-4v-2z"},api:{path:"M18.593 17.812a.938.938 0 0 1 0 1.326l-2.217 2.216 2.12 2.12L16.975 25H9.126l-5 5L2 27.879l4.99-4.99V15.01l1.521-1.521 2.12 2.12 2.217-2.217a.937.937 0 1 1 1.325 1.326l-2.216 2.217 3.093 3.093 2.217-2.216a.938.938 0 0 1 1.326 0zM30 4.121 27.879 2l-4.907 4.907-.9-.9h-6l-3.1 3 10 10 3.1-3v-6l-.982-.982z"},car:{path:"M24 20a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM7 20a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM19 7l7 7h6v9h-3a5 5 0 0 0-10 0h-7a5 5 0 0 0-10 0H0v-9l7-7h12zm-1 2h-5v5h9.962L18 9zm-7 0H8l-5 5h8V9z"},card:{path:"M30.223 26.668H1.777V5.332h28.446ZM5.332 23.109h21.336V8.891H5.332Zm8.535-6.043H8.891a1.78 1.78 0 0 0-1.782 1.778v2.488h8.536v-2.488a1.78 1.78 0 0 0-1.778-1.778Zm11.024-1.957h-2.668v-2.664h-1.778v2.664h-2.668v1.782h2.668v2.664h1.778V16.89h2.668ZM8.523 13.52a2.854 2.854 0 1 0 5.709.003 2.854 2.854 0 0 0-5.709-.002"},chatting:{path:"M23.4 7h-15V5.5h15V7zm-4 1.5h-11V10h11V8.5zm10-7v13h-9v5l-5-5h-13v-13h27zm-2 2h-23v9h23v-9zm-2.5 24h-3.7c-2.1 0-3.6.9-3.6 3.6v.9h11v-.9c0-2.7-1.6-3.6-3.7-3.6zm.9-3.7c.2-1.1-.3-2.2-1.2-2.9-.9-.6-2.2-.6-3.1 0s-1.4 1.8-1.2 2.9c.3 1.3 1.4 2.3 2.8 2.3s2.4-1 2.7-2.3zm-14.9 3.7H7.2c-2.1 0-3.6.9-3.6 3.6v.9h11v-.9c0-2.7-1.6-3.6-3.7-3.6zm.9-3.7c.2-1.1-.3-2.2-1.2-2.9s-2.2-.6-3.1 0-1.4 1.8-1.2 2.9c0 .7.3 1.4.8 1.9s1.2.8 2 .8c1.5 0 2.7-1.2 2.7-2.7z"},"check-mark":{path:"M12.1 27-.1 14.2l2.9-2.8 9.3 9.8L29 4l2.9 2.8L12.1 27z"},"chevron-down":{path:"m15.9 25.8-16-16 2.9-2.9L15.9 20 29 6.9l2.9 2.9-16 16z"},"chevron-left":{path:"m23.237 32-16-16 16-16 2.9 2.91L13.057 16l13.08 13.09-2.9 2.91Z"},"chevron-right":{path:"m9.6 32-2.9-2.9L19.8 16 6.7 2.9 9.6 0l16 16-16 16z"},"chevron-up":{path:"M29 25.8 15.9 12.7 2.8 25.8l-2.9-2.9 16-16 16 16-2.9 2.9z"},child:{path:"M20.7777 8.07237C20.3489 4.64873 17.4277 2 13.8879 2C10.0529 2 6.94394 5.10891 6.94394 8.94394C6.99381 12.7581 10.0737 15.838 13.8879 15.8879C14.3533 15.8818 14.8078 15.8306 15.2472 15.7384C15.2039 15.4404 15.1796 15.1362 15.1756 14.8271L15.1754 14.815V14.8029C15.1754 11.4474 17.5907 8.65594 20.7777 8.07237ZM10.1844 29.7758H0V27.4611C0 20.5172 3.88861 18.2025 9.25859 18.2025H16.1059C16.4217 18.7463 16.8097 19.243 17.2566 19.6796C15.5916 19.8588 13.9819 20.3883 12.6926 21.5233C10.9893 23.0226 10.1844 25.2734 10.1844 28.1121V29.7758ZM32.0003 29.7758H12.0365V28.1122C12.0365 23.1212 14.8314 21.4576 18.6911 21.4576H25.3457C29.2054 21.4576 32.0003 23.1212 32.0003 28.1122V29.7758ZM22.0184 19.7939C24.7598 19.7581 26.9735 17.5444 27.0093 14.803C27.0093 12.0465 24.7748 9.81201 22.0184 9.81201C19.2619 9.81201 17.0274 12.0465 17.0274 14.803C17.0633 17.5444 19.2769 19.7581 22.0184 19.7939Z"},circle:{path:"M4 16c0 6.6 5.4 12 12 12s12-5.4 12-12S22.6 4 16 4 4 9.4 4 16"},"city-office":{path:"M16 8c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm16 9v2h-2v13h-2v-2H4v2H2V19H0v-2h32zm-4 9v-5H4v5h24zM8 15V12.2c.1-1.7 1.5-3.1 3.2-3.2H20.5c1.8 0 3.3 1.4 3.4 3.2V15H8z"},"city-pass-pass":{path:"M4 6C1.79086 6 0 7.79086 0 10V22C0 24.2091 1.79086 26 4 26H28C30.2091 26 32 24.2091 32 22V10C32 7.79086 30.2091 6 28 6H4ZM18.1818 10.5H11.0909V14.3182H15.4545L10 19.7727L12.6999 22.4726L18.1818 16.9906V21.4091H22V14.3182V10.5H18.1818Z"},"city-pass":{path:"M5.44005 0.461548H26.6331L26.6331 21.7238H18.4154V15.96L6.87457 27.5385L0.0769043 20.7186L12.0504 8.70608H5.44005V0.461548Z"},clock:{path:"M15.9 0C7 0-.1 7.2-.1 16s7.2 16 16 16 16-7.2 16-16c0-4.2-1.7-8.3-4.7-11.3S20.1 0 15.9 0zm.9 28v-2h-2v1.9C9 27.4 4.4 22.8 4 17h1.9v-2H4C4.4 9.2 9 4.5 14.9 4.1V6h2V4.1c5.8.4 10.4 5.1 10.9 10.9h-1.9v2h1.9c-.5 5.9-5.1 10.6-11 11zm.1-13h4v2h-6V9h2v6z"},close:{path:"M29.333 5.47 26.53 2.668 16 13.187 5.47 2.666 2.668 5.47 13.187 16 2.666 26.53l2.804 2.803L16 18.813l10.53 10.52 2.803-2.804L18.813 16z"},collaborate:{path:"m26.3 18.3 5.3-5.3L19.9 1.4l-4.2 4.2-3.8-3.8L.5 13.2l5.4 5.4-1.2 1.2a2.9 2.9 0 0 0 0 4.2 2.9 2.9 0 0 0 2.1.9 3.1 3.1 0 0 0 .9 2.2 3.3 3.3 0 0 0 2.2.8 3.3 3.3 0 0 0 .8 2.2 3.1 3.1 0 0 0 2.2.9 2.7 2.7 0 0 0 2.1-.9l1.2-1.2.9.9a3.3 3.3 0 0 0 2.1.9 3.4 3.4 0 0 0 2.2-.9 3.1 3.1 0 0 0 .9-2.2 2.9 2.9 0 0 0 2.1-.9 2.7 2.7 0 0 0 .9-2.1 3.1 3.1 0 0 0 3-3 3.1 3.1 0 0 0-.9-2.2l-1.1-1.1zM19.9 4.2l8.8 8.8-3.5 3.6-.3.3-7.2-7.2-2.4 2.4a1.2 1.2 0 0 1-1.6 0 1.2 1.2 0 0 1 0-1.7l6.2-6.2zM7.6 22.6a1.1 1.1 0 0 1-1.5 0 1 1 0 0 1 0-1.4L7.3 20l1.5 1.4-1.2 1.2zm3 3a1.1 1.1 0 0 1-1.5 0 .9.9 0 0 1-.3-.7 1.1 1.1 0 0 1 .3-.7l1.2-1.2 1.5 1.5-1.2 1.1zm3 3.1a1 1 0 0 1-1.4 0 1.1 1.1 0 0 1-.3-.8 1.1 1.1 0 0 1 .3-.7l1.1-1.2 1.5 1.5-1.2 1.2zM26 22.3a1 1 0 0 1-1.4 0L21.3 19l-1.6 1.6 3.3 3.3a1 1 0 0 1 0 1.4 1.1 1.1 0 0 1-.7.3 1.1 1.1 0 0 1-.8-.3l-3.2-3.2-1.6 1.5 3.3 3.3a1.1 1.1 0 0 1 0 1.5 1.1 1.1 0 0 1-.8.3 1.1 1.1 0 0 1-.7-.3L3.3 13.2l.2-.2 8.4-8.4L14.3 7l-2 2a3.1 3.1 0 0 0 0 4.5 3.3 3.3 0 0 0 4.5 0l.9-.9 8.3 8.3a1 1 0 0 1 0 1.4z"},"construction-work":{path:"m31.2 26.7-2.3-2.4-1.6 1.5-3.2-3.2-4-12.8c-.2-.7-.5-1.3-1.1-1.8l-3.8-3.7-.4-.4L13 2.1l-.3-.3L7 7.9l2.4 2.4 2.2 2.2-2.7 3.9L0 31.7h4l7-12.1 4.2 4.4v7.7h3.5v-9.1L15 18.8l1.2-1.7L26 27l-1.6 1.4 2.2 2.5c.6.6 1.4.9 2.2 1 .8.1 1.7-.2 2.3-.9.6-.6 1-1.3 1-2.2 0-.7-.3-1.5-.9-2.1zM10.6 9.1l2.2-2.3 1.7 1.7-1.8 2.5-2.1-1.9zm7.7 4.8 1.3 4-2.4-2.4 1.1-1.6z M17.5,4a3.2,3.2 0 1,0 6.4,0a3.2,3.2 0 1,0 -6.4,0"},copy:{path:"M14 2H6V4H12V12H14V2ZM4 0V4H3.5H0V18H12V14H16V0H4ZM3.5 6H2V16H10V6H4.5H3.5Z",viewBox:"0 0 16 18"},"document-text":{path:"m17.6 5 5.4 5.4V27H9V5h8.6m1.3-3H6v28h20V9.1L18.9 2zM11 16h10v-2H11v2zm0 4h10v-2H11v2zm0 4h10v-2H11v2z"},edit:{path:"M24.5 1 4.2 21.3 1 31l9.7-3.2L31 7.5 24.5 1zM6.3 27.1 5 25.7 6 23l3 3.1-2.7 1z"},email:{path:"M-.1 4.6v24h32v-24h-32zM16 16.9 5.9 8.6H26l-10 8.3zm-4.8-1.3-7.3 6.8V9.5l7.3 6.1zm1.6 1.3 3.2 2.7 3.1-2.6 8.2 7.6H4.4l8.4-7.7zm7.8-1.2 7.2-6.1v12.8l-7.2-6.7z"},enlarge:{path:"M17.9 14V0h-4v14h-14v4h14v14h4V18h14v-4h-14z"},error:{path:"M16.1399 6.91003L17.5099 8.36003L13.5099 12.14L17.5099 15.91L16.1399 17.36L12.0599 13.51L7.97986 17.36L6.60986 15.91L10.5999 12.14L6.60986 8.36003L7.97986 6.91003L12.0599 10.76L16.1399 6.91003ZM1 12C1 5.92 5.92 1 12 1C18.08 1 23 5.92 23 12C23 18.08 18.08 23 12 23C5.92 23 1 18.08 1 12ZM21 12C21 7.04 16.96 3 12 3C7.04 3 3 7.04 3 12C3 16.96 7.04 21 12 21C16.96 21 21 16.96 21 12Z",viewBox:"0 0 24 24"},"external-link":{path:"M19.006 0H32.01v12.992h-4.002V6.826L14.434 20.417l-2.83-2.818L25.187 3.998h-6.182V0zm7.002 13.991L26.018 32H.01V6.016h17.975l-3.98 3.978.02.02H4.01v17.988h18.006l-.01-10.013 4-3.998z"},eye:{path:"M16 5C8.72727 5 2.51636 9.53853 0 15.945C2.51636 22.3515 8.72727 26.89 16 26.89C23.2727 26.89 29.4836 22.3515 32 15.945C29.4836 9.53853 23.2727 5 16 5ZM16 23.2417C11.9855 23.2417 8.72727 19.9728 8.72727 15.945C8.72727 11.9172 11.9855 8.64833 16 8.64833C20.0145 8.64833 23.2727 11.9172 23.2727 15.945C23.2727 19.9728 20.0145 23.2417 16 23.2417ZM16 11.567C13.5855 11.567 11.6364 13.5225 11.6364 15.945C11.6364 18.3675 13.5855 20.323 16 20.323C18.4145 20.323 20.3636 18.3675 20.3636 15.945C20.3636 13.5225 18.4145 11.567 16 11.567Z"},facade:{path:"M22.6 9.5V7.8h-1.1V6.4h-1V4.9h-.9V3.5h-1.1V2.2h-1V1h-2.9v1.2h-1v1.3h-1V4.9h-1v1.5h-1v1.4h-1v1.7h-1V31h15.3V9.5h-1.3zM13.7 6h4.6v4h-4.6V6zm1.2 22.9h-4v-8h4v8zm0-9.9h-4v-7h4v7zm6.2 9.9h-4v-8h4v8zm0-9.9h-4v-7h4v7z"},housing:{path:"M14 28h4.008v-8H14v8zm-2 0V18h8.008v10H28V12.98L16 5 4 13.516V28h8zM0 32V11.022L16 0l16 11.022V32H0z"},"park-sign":{path:"M4 0H28V32H4V0ZM24 4H8V28H24V4ZM6 2V30H26V2H6ZM12 8V19.7H14.79V15.884H16.626C19.002 15.884 20.676 14.21 20.676 11.942C20.676 9.674 18.984 8 16.626 8H12ZM16.392 13.67H14.79V10.214H16.392C17.238 10.214 17.85 10.934 17.85 11.942C17.85 12.986 17.238 13.67 16.392 13.67Z"},info:{path:"M15.9 2c-7.7 0-14 6.3-14 14s6.3 14 14 14 14-6.3 14-14-6.3-14-14-14zm0 24c-5.5 0-10-4.5-10-10s4.5-10 10-10 10 4.5 10 10-4.5 10-10 10zm-1-15h2V9h-2v2zm0 12h2V13h-2v10z"},list:{path:"M32.0064 22V26H9.69577V22H32.0064ZM5.52556 22V26H1.35535V22H5.52556ZM32.0064 14V18H9.69577V14H32.0064ZM5.52556 14V18H1.35535V14H5.52556ZM32.0064 6V10H9.69577V6H32.0064ZM5.52556 6V10H1.35535V6H5.52556Z"},location:{path:"m16.679 32-1.23-1.086c-.45-.369-10.878-9.68-10.878-18.806C4.571 5.42 9.992 0 16.68 0s12.108 5.42 12.108 12.108c0 9.126-10.428 18.438-10.879 18.806L16.68 32Zm0-28.271A8.39 8.39 0 0 0 8.3 12.108c0 5.387 5.244 11.728 8.369 14.842 2.591-2.55 8.389-9.034 8.389-14.842a8.39 8.39 0 0 0-8.379-8.38Zm0 12.476a4.097 4.097 0 1 0 0-8.195 4.097 4.097 0 0 0 0 8.195Z"},login:{path:"M17.777 1.777v3.555h8.891v21.336h-8.89v3.555h12.445V1.777ZM16.73 7.832l-2.507 2.516 3.875 3.875H1.778v3.554h16.32l-3.875 3.875 2.507 2.516L24.906 16Zm0 0"},"organic-waste-container":{path:"M23.2 4.8C22.9 2.1 19.6 0 15.7 0S8.5 2.2 8.1 4.8H7V30H3.9v2h24v-2h-3.2V4.8h-1.5zM12.3 2.4h6.9v6.9h-6.9V2.4zM22.7 29H9V12.6h13.7V29z"},person:{path:"M31 32H1v-2.5c0-7.5 4.2-10 10-10h10c5.8 0 10 2.5 10 10V32ZM16 17a7.6 7.6 0 0 0 7.5-7.5 7.5 7.5 0 0 0-15 0A7.6 7.6 0 0 0 16 17Z"},"person-desk":{path:"M30 16v2h-2v12h-2v-2H6v2H4V18H2v-2h28zm-4 4H6v4h20v-4zM18 8.98c2.3 0 4 1 4 4v1H10v-1c0-3 1.69-4 4-4zM16 2a2.99 2.99 0 1 1 0 5.98A2.99 2.99 0 0 1 16 2z"},phone:{path:"M30.4 26.9s-3.1 3.4-5.6 3.6-9.2-3.2-14.7-8.7c-5.5-5.5-9-11.4-8.7-14.7S5 1.5 5 1.5l7.1 7.1-2.8 2.8 11.2 11.2 2.8-2.8 7.1 7.1z"},pointer:{path:"M29.18 14C28.3576 8.41126 23.9687 4.02245 18.38 3.2V0H14.38V3.2C8.77561 3.99119 4.3712 8.3956 3.58 14H0.380005V18H3.58C4.3712 23.6044 8.77561 28.0088 14.38 28.8V32H18.38V28.8C23.9534 27.947 28.327 23.5734 29.18 18H32.38V14H29.18ZM16.38 25C11.4094 25 7.38 20.9706 7.38 16C7.38 11.0294 11.4094 7 16.38 7C21.3506 7 25.38 11.0294 25.38 16C25.38 18.3869 24.4318 20.6761 22.744 22.364C21.0561 24.0518 18.767 25 16.38 25ZM21.38 16C21.38 18.7614 19.1414 21 16.38 21C13.6186 21 11.38 18.7614 11.38 16C11.38 13.2386 13.6186 11 16.38 11C19.1414 11 21.38 13.2386 21.38 16Z"},"question-mark-solid":{path:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16S24.8 0 16 0zm-.4 24.3c-1.1 0-1.9-.8-1.9-1.9s.8-1.9 1.9-1.9 1.9.8 1.9 1.9c.1 1.1-.7 1.9-1.9 1.9zm3.3-8.7c-.9.9-1.9 1.9-1.9 2.9v.8h-2.7v-1.2c0-1.6.8-2.4 1.5-3.1.7-.7 1.5-1.2 1.5-2.4 0-.9-.7-1.3-1.7-1.3-.8 0-1.5.4-2 1.2l-2.3-2C12.4 9 13.7 8.4 16 8.4c2.8 0 4.5 1.5 4.5 3.7.2 1.5-.8 2.6-1.6 3.5z"},"question-mark-circle":{path:"M17.7234 24V22H15.6383V24H17.7234ZM12.5106 13C12.5106 10.79 14.3768 9 16.6808 9C18.9849 9 20.851 10.79 20.851 13C20.851 14.2829 20.0274 14.9733 19.2255 15.6455C18.4647 16.2833 17.7234 16.9046 17.7234 18V19.9919H15.6383V18C15.6383 16.1787 16.6205 15.4566 17.4841 14.8217C18.1615 14.3236 18.7659 13.8792 18.7659 13C18.7659 11.9 17.8276 11 16.6808 11C15.534 11 14.5957 11.9 14.5957 13H12.5106ZM16.6808 2C8.65317 2 2.08508 8.3 2.08508 16C2.08508 23.7 8.65317 30 16.6808 30C24.7085 30 31.2766 23.7 31.2766 16C31.2766 8.3 24.7085 2 16.6808 2ZM16.6808 26C10.9468 26 6.2553 21.5 6.2553 16C6.2553 10.5 10.9468 6 16.6808 6C22.4149 6 27.1064 10.5 27.1064 16C27.1064 21.5 22.4149 26 16.6808 26Z"},search:{path:"m32 29.119-9.825-9.825a12.217 12.217 0 1 0-2.88 2.881L29.118 32 32 29.119Zm-19.771-8.745a8.145 8.145 0 1 1 0-16.29 8.145 8.145 0 0 1 0 16.29Z"},settings:{path:"M0 18.6v-5.1H1.4c2.1-.4 3.5-2.3 3.1-4.4-.1-.6-.3-1.1-.6-1.6l-1-1 3.6-3.6V3l.9.9c1.7 1.2 4.1.8 5.3-.9.3-.4.5-.9.6-1.5V0h5.1V1.4c.4 2.1 2.3 3.5 4.4 3.1.5-.1 1-.3 1.5-.6l1-1 3.6 3.6h-.1l-.9.9c-1.1 1.5-.9 3.6.4 4.9.5.5 1.2.9 2 1.1H32v5.1H30.6c-2.1.4-3.5 2.4-3.1 4.4.1.5.3 1 .6 1.5l1 1-3.6 3.6v-.1l-.9-.9c-1.7-1.2-4.1-.8-5.3.9-.3.4-.5.9-.6 1.5V32h-5.1V30.6c-.4-2.1-2.3-3.5-4.4-3.1-.5.1-1 .3-1.5.6l-1 1-3.6-3.6h.1l.9-.9c1.2-1.7.8-4.1-.9-5.3-.4-.3-.9-.5-1.5-.6H0zM16 22c3.3 0 6-2.7 6-6s-2.7-6-6-6-6 2.7-6 6 2.7 6 6 6z"},spinner:{path:"M16.3 5c2.2 0 4.3.7 6.1 1.9 1.8 1.2 3.2 3 4 5 .8 2 1 4.2.6 6.4-.4 2.1-1.5 4.1-3.1 5.6s-3.5 2.6-5.7 3c-2.1.4-4.3.2-6.3-.7-2-.9-3.7-2.3-4.9-4.1-1.2-1.8-1.8-4-1.8-6.1"},"trash-bin":{path:"M21,4h8v4h-2v24H5V8H3V4h8V0h10V4z M19,2h-6v2h6V2z M23,28H9V8h14V28z M13,12h-2v12h2V12z M15,12h2v12h-2V12z M21,12h-2v12h2V12z"},"two-persons":{path:"M9.1 13.7c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3S4.8 7 4.8 9.4c.1 2.4 2 4.3 4.3 4.3zM25.7 20.5H20c-.8 0-1.6.1-2.3.3 0-4.2-2.4-5.6-5.7-5.6H6.3C3 15.2.6 16.6.6 20.9v1.4h14.8c-.7.9-1.1 2.2-1.1 3.9v1.4h17.1v-1.4c0-4.3-2.4-5.7-5.7-5.7z M22.9 19c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3-4.3 1.9-4.3 4.3 1.9 4.3 4.3 4.3z"},vote:{path:"m 20.533999,22.34317 v 9.689243 H 0.13559322 V 11.634006 H 11.099736 L 9.5698561,13.163887 A 8.7968127,8.7968127 0 1 0 18.749139,24.12803 Z M 17.856709,16.606118 29.330812,5.1320143 27.545952,3.3471538 16.071848,14.821257 Z M 30.350732,6.1519347 18.621649,18.008508 15.561888,18.645959 14.032007,17.116078 14.541968,14.311297 26.526031,2.3272335 24.741171,0.54237288 12.502127,12.908907 10.462286,22.21568 19.641569,20.685799 32.135593,7.9367952 Z"},whatsapp:{path:"m0 32 2.2-8.2C.8 21.4.1 18.7.1 15.9.1 7.1 7.3 0 16 0c4.2 0 8.2 1.7 11.2 4.7s4.6 7 4.6 11.2c0 8.7-7.1 15.9-15.9 15.9-2.7 0-5.3-.7-7.6-1.9L0 32zm8.8-5.1C11 28.3 13.2 29 16 29c7.3 0 13.2-5.9 13.2-13.2 0-7.3-5.9-13.2-13.2-13.2-7.3.1-13.2 6-13.2 13.3 0 3 .9 5.2 2.3 7.5l-1.3 4.9 5-1.4zM24 19.6c-.1-.2-.4-.3-.8-.5s-2.3-1.2-2.7-1.3c-.4-.1-.6-.2-.9.2-.3.4-1 1.3-1.3 1.6s-.5.3-.9.1c-.4-.2-1.7-.6-3.2-2-1.2-1.1-2-2.3-2.2-2.7-.2-.4 0-.6.2-.8.2-.2.4-.5.6-.7.2-.2.3-.4.4-.7.1-.3.1-.5 0-.7-.1-.1-.8-2.1-1.2-2.9-.3-.8-.6-.7-.9-.7h-.8c-.3 0-.7.1-1.1.5-.2.4-1.3 1.4-1.3 3.3 0 2 1.4 3.8 1.6 4.1.2.3 2.8 4.3 6.8 6 .9.4 1.7.7 2.3.8.9.3 1.8.3 2.5.2.8-.1 2.3-1 2.7-1.9.3-.9.3-1.7.2-1.9z"},"wifi-disconnect":{path:"M6.5 7.41421L23.5 24.4142L24.9142 23L22.4426 20.5284L23.7 19.3144C22.2375 17.6153 20.2337 16.5013 18.0541 16.1399L14.5768 12.6626C15.2092 12.5673 15.8518 12.5185 16.5 12.5185C20.2155 12.5185 23.7506 14.1206 26.2 16.9144L29 14.1144C25.8 10.5939 21.2575 8.59512 16.5 8.6144C14.7252 8.60721 12.9803 8.88087 11.3238 9.40962L7.91421 6L6.5 7.41421ZM10.3501 14.0788L7.47339 11.2021C6.20136 12.0038 5.031 12.9801 4 14.1144L6.8 16.9144C7.81762 15.7537 9.02263 14.7987 10.3501 14.0788ZM16.318 20.0467L12.9654 16.694C11.5669 17.2546 10.3055 18.1462 9.3 19.3144L12.2 22.1144C13.2057 20.8534 14.712 20.0998 16.318 20.0467ZM16.5 22.9144C15.607 22.9033 14.7882 23.4101 14.4 24.2144L16.5 26.2144L18.6 24.2144C18.2118 23.4101 17.393 22.9033 16.5 22.9144Z"}},k=3,w={spinner:{Wrapper:n,stroke:!0}},x="0 0 32 32",V=({color:e="default",name:t,size:h="md",testID:v,"logging-label":u})=>{const{color:i}=g(),{fontScale:p}=Z(),s=L[h]*p,c=y[t],{Wrapper:H=r.Fragment,stroke:o,strokeWidth:m=k}=w[t]??{};return a.jsx(f,{"logging-label":u,testID:v,children:a.jsx(H,{children:a.jsx(C,{fillRule:"evenodd",height:s,viewBox:"viewBox"in c?c.viewBox:x,width:s,children:a.jsx(M,{d:c.path,fill:o?"none":i.text[e],stroke:o?i.text[e]:void 0,strokeWidth:o?m:void 0})})})})};try{V.displayName="Icon",V.__docgenInfo={description:"",displayName:"Icon",props:{color:{defaultValue:{value:"default"},description:"The color of the icon to display.",name:"color",required:!1,type:{name:"enum",value:[{value:'"secondary"'},{value:'"tertiary"'},{value:'"link"'},{value:'"default"'},{value:'"inverse"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"warning"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"The name of the icon to display.",name:"name",required:!0,type:{name:"enum",value:[{value:'"alarm"'},{value:'"alert"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"email"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"list"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"search"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},size:{defaultValue:{value:"md"},description:"The size of the icon.",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'},{value:'"ml"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{V as I}; diff --git a/assets/Icon.stories-aHGWSgpm.js b/assets/Icon.stories-DPBXIphH.js similarity index 95% rename from assets/Icon.stories-aHGWSgpm.js rename to assets/Icon.stories-DPBXIphH.js index 84a9a68a..bf54a77c 100644 --- a/assets/Icon.stories-aHGWSgpm.js +++ b/assets/Icon.stories-DPBXIphH.js @@ -1,4 +1,4 @@ -import{I as p}from"./Icon-CO3hZ5HW.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./index-CEE--Juu.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./Animated-C23eizOh.js";import"./index-DOpK3Ow6.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const A={component:p},o={args:{color:"default",name:"announcement",size:"lg"}};var r,t,m;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{I as p}from"./Icon-DcC-yiY8.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./index-CEE--Juu.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./Animated-C23eizOh.js";import"./index-DOpK3Ow6.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const A={component:p},o={args:{color:"default",name:"announcement",size:"lg"}};var r,t,m;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { color: 'default', name: 'announcement', diff --git a/assets/IconButton.stories-DAas70aU.js b/assets/IconButton.stories-C63mYIh6.js similarity index 96% rename from assets/IconButton.stories-DAas70aU.js rename to assets/IconButton.stories-C63mYIh6.js index 01377eb9..ff2d5ecc 100644 --- a/assets/IconButton.stories-DAas70aU.js +++ b/assets/IconButton.stories-C63mYIh6.js @@ -1,4 +1,4 @@ -import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{I as i}from"./IconButton-Cyqcuey7.js";import{I as e}from"./Icon-CO3hZ5HW.js";import{p as s}from"./pressable-arg-types-CJIMfHep.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-HfRmqOUq.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./config-BZnShabN.js";import"./Badge-CZ5nSfIQ.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./useTheme-CJIBCVMY.js";const Q={component:i,argTypes:s},o={args:{icon:p.jsx(e,{name:"person",size:"lg",testID:"Icon"}),badgeValue:7}};var r,t,m;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{I as i}from"./IconButton-Cyqcuey7.js";import{I as e}from"./Icon-DcC-yiY8.js";import{p as s}from"./pressable-arg-types-CJIMfHep.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-HfRmqOUq.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./config-BZnShabN.js";import"./Badge-CZ5nSfIQ.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./useTheme-CJIBCVMY.js";const Q={component:i,argTypes:s},o={args:{icon:p.jsx(e,{name:"person",size:"lg",testID:"Icon"}),badgeValue:7}};var r,t,m;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { icon: , badgeValue: 7 diff --git a/assets/InformationButton.stories-CgKZomf6.js b/assets/InformationButton.stories-Chf6KCJ3.js similarity index 81% rename from assets/InformationButton.stories-CgKZomf6.js rename to assets/InformationButton.stories-Chf6KCJ3.js index c6e19da3..3376a70e 100644 --- a/assets/InformationButton.stories-CgKZomf6.js +++ b/assets/InformationButton.stories-Chf6KCJ3.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as g}from"./Pressable-HfRmqOUq.js";import{C as f}from"./Column-DVJ0Grcf.js";import{R as u}from"./Row-BXpfxHoR.js";import{I as h}from"./Icon-CO3hZ5HW.js";import{P as y}from"./Paragraph-CKYtcIcp.js";import{T as x}from"./Title-2Den3Qhs.js";import{a as b}from"./accessibleText-gmNPjmn1.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const r=({iconName:i,onPress:c,text:t,title:o,testID:a,accessibilityRole:p="button",variant:n,...d})=>e.jsx(g,{accessibilityLabel:b(o,typeof t=="string"?t:""),accessibilityLanguage:"nl-NL",accessibilityRole:p,onPress:c,testID:a,...d,insetHorizontal:"md",insetVertical:"sm",variant:"transparent",children:e.jsxs(u,{gutter:"md",children:[e.jsx(h,{color:n==="inverse"?"inverse":"link",name:i,size:"xl",testID:`${a}Icon`}),e.jsxs(f,{align:"center",grow:1,gutter:"xs",shrink:1,children:[e.jsx(u,{valign:"center",children:e.jsx(x,{color:n==="inverse"?"inverse":"link",level:"h4",testID:`${a}Title`,text:o,underline:!0})}),e.jsx(y,{color:n==="inverse"?"inverse":void 0,testID:`${a}Text`,variant:"small",children:t})]})]})});try{r.displayName="InformationButton",r.__docgenInfo={description:"",displayName:"InformationButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"alarm"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"inverse"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const ie={component:r,argTypes:{onPress:{action:"onPress"}}},l={args:{iconName:"email",text:"Reactie binnen 1 werkdag",title:"Contactformulier"}};var s,m,v;l.parameters={...l.parameters,docs:{...(s=l.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as g}from"./Pressable-HfRmqOUq.js";import{C as f}from"./Column-DVJ0Grcf.js";import{R as u}from"./Row-BXpfxHoR.js";import{I as h}from"./Icon-DcC-yiY8.js";import{P as y}from"./Paragraph-DkRs_aGj.js";import{T as x}from"./Title-9ScEYPym.js";import{a as b}from"./accessibleText-gmNPjmn1.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const r=({iconName:i,onPress:c,text:t,title:o,testID:a,accessibilityRole:p="button",variant:n,...d})=>e.jsx(g,{accessibilityLabel:b(o,typeof t=="string"?t:""),accessibilityLanguage:"nl-NL",accessibilityRole:p,onPress:c,testID:a,...d,insetHorizontal:"md",insetVertical:"sm",variant:"transparent",children:e.jsxs(u,{gutter:"md",children:[e.jsx(h,{color:n==="inverse"?"inverse":"link",name:i,size:"xl",testID:`${a}Icon`}),e.jsxs(f,{align:"center",grow:1,gutter:"xs",shrink:1,children:[e.jsx(u,{valign:"center",children:e.jsx(x,{color:n==="inverse"?"inverse":"link",level:"h4",testID:`${a}Title`,text:o,underline:!0})}),e.jsx(y,{color:n==="inverse"?"inverse":void 0,testID:`${a}Text`,variant:"small",children:t})]})]})});try{r.displayName="InformationButton",r.__docgenInfo={description:"",displayName:"InformationButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"alarm"'},{value:'"alert"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"email"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"list"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"search"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"inverse"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const ie={component:r,argTypes:{onPress:{action:"onPress"}}},l={args:{iconName:"email",text:"Reactie binnen 1 werkdag",title:"Contactformulier"}};var s,m,v;l.parameters={...l.parameters,docs:{...(s=l.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { iconName: 'email', text: 'Reactie binnen 1 werkdag', diff --git a/assets/Label-Bc-mTvQ-.js b/assets/Label-BbSvQ4Xu.js similarity index 89% rename from assets/Label-Bc-mTvQ-.js rename to assets/Label-BbSvQ4Xu.js index fefab9c4..e67fb9dc 100644 --- a/assets/Label-Bc-mTvQ-.js +++ b/assets/Label-BbSvQ4Xu.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as r}from"./Paragraph-CKYtcIcp.js";import{V as s}from"./index-BDsvWohO.js";const i=({isAccessible:e,text:t})=>a.jsx(s,{accessibilityElementsHidden:!e,accessibilityLanguage:"nl-NL",importantForAccessibility:e?"auto":"no-hide-descendants",children:a.jsx(r,{children:t})});try{i.displayName="Label",i.__docgenInfo={description:"",displayName:"Label",props:{isAccessible:{defaultValue:null,description:"",name:"isAccessible",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}}}}}catch{}export{i as L}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as r}from"./Paragraph-DkRs_aGj.js";import{V as s}from"./index-BDsvWohO.js";const i=({isAccessible:e,text:t})=>a.jsx(s,{accessibilityElementsHidden:!e,accessibilityLanguage:"nl-NL",importantForAccessibility:e?"auto":"no-hide-descendants",children:a.jsx(r,{children:t})});try{i.displayName="Label",i.__docgenInfo={description:"",displayName:"Label",props:{isAccessible:{defaultValue:null,description:"",name:"isAccessible",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}}}}}catch{}export{i as L}; diff --git a/assets/Label.stories-CtOoJG1O.js b/assets/Label.stories-CIYQAd-q.js similarity index 84% rename from assets/Label.stories-CtOoJG1O.js rename to assets/Label.stories-CIYQAd-q.js index efac2925..a03c41ce 100644 --- a/assets/Label.stories-CtOoJG1O.js +++ b/assets/Label.stories-CIYQAd-q.js @@ -1,4 +1,4 @@ -import{L as a}from"./Label-Bc-mTvQ-.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Paragraph-CKYtcIcp.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BDsvWohO.js";const L={component:a},t={args:{text:"Wat is de titel van je bericht?"}};var r,e,o;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{L as a}from"./Label-BbSvQ4Xu.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Paragraph-DkRs_aGj.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BDsvWohO.js";const L={component:a},t={args:{text:"Wat is de titel van je bericht?"}};var r,e,o;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { text: 'Wat is de titel van je bericht?' } diff --git a/assets/Link.stories-BbZo-WR0.js b/assets/Link.stories-Bsr9sC9b.js similarity index 95% rename from assets/Link.stories-BbZo-WR0.js rename to assets/Link.stories-Bsr9sC9b.js index 4a3b2d50..1c5f1e34 100644 --- a/assets/Link.stories-BbZo-WR0.js +++ b/assets/Link.stories-Bsr9sC9b.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as f}from"./Pressable-HfRmqOUq.js";import{c as x}from"./config-BZnShabN.js";import{R as h}from"./Row-BXpfxHoR.js";import{S as g}from"./Size-D6myJmG7.js";import{I as k}from"./Icon-CO3hZ5HW.js";import{P as j}from"./Phrase-DprhL3Se.js";import{D as a}from"./types-BJ_48vsK.js";import{u}from"./useTheme-CJIBCVMY.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";const n=({direction:r,external:m,testID:t})=>{const{text:o}=u(),l=m?"external-link":r===a.left?"chevron-left":"chevron-right";return e.jsx(g,{height:o.lineHeight.body,children:e.jsx(k,{color:"link",name:l,testID:t})})},s=({label:r,onPress:m,testID:t,variant:o="default"})=>{const{text:l}=u();return e.jsx(f,{accessibilityLabel:o==="external"?r+", opent in webbrowser":r,accessibilityRole:"link",hitSlop:(x.minTouchSize-l.lineHeight.body)/2,onPress:m,testID:t,children:e.jsxs(h,{gutter:"sm",valign:o!=="external"?"center":void 0,children:[o==="external"&&e.jsx(n,{external:!0,testID:`${t}Icon`}),o==="backward"&&e.jsx(n,{direction:a.left,testID:`${t}Icon`}),o==="default"&&e.jsx(n,{direction:a.right,testID:`${t}Icon`}),e.jsx(j,{color:"link",testID:`${t}Phrase`,children:r}),o==="forward"&&e.jsx(n,{direction:a.right,testID:`${t}Icon`})]})})};try{s.displayName="Link",s.__docgenInfo={description:"",displayName:"Link",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},variant:{defaultValue:{value:"default"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"backward"'},{value:'"forward"'},{value:'"external"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const ie={component:s},i=r=>e.jsx(s,{...r});i.args={label:"Klik mij ik ben een link",variant:"default"};var p,c,d;i.parameters={...i.parameters,docs:{...(p=i.parameters)==null?void 0:p.docs,source:{originalSource:"args => ",...(d=(c=i.parameters)==null?void 0:c.docs)==null?void 0:d.source}}};const ne=["Default"];export{i as Default,ne as __namedExportsOrder,ie as default}; +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as f}from"./Pressable-HfRmqOUq.js";import{c as x}from"./config-BZnShabN.js";import{R as h}from"./Row-BXpfxHoR.js";import{S as g}from"./Size-D6myJmG7.js";import{I as k}from"./Icon-DcC-yiY8.js";import{P as j}from"./Phrase-t0rOiClQ.js";import{D as a}from"./types-BJ_48vsK.js";import{u}from"./useTheme-CJIBCVMY.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";const n=({direction:r,external:m,testID:t})=>{const{text:o}=u(),l=m?"external-link":r===a.left?"chevron-left":"chevron-right";return e.jsx(g,{height:o.lineHeight.body,children:e.jsx(k,{color:"link",name:l,testID:t})})},s=({label:r,onPress:m,testID:t,variant:o="default"})=>{const{text:l}=u();return e.jsx(f,{accessibilityLabel:o==="external"?r+", opent in webbrowser":r,accessibilityRole:"link",hitSlop:(x.minTouchSize-l.lineHeight.body)/2,onPress:m,testID:t,children:e.jsxs(h,{gutter:"sm",valign:o!=="external"?"center":void 0,children:[o==="external"&&e.jsx(n,{external:!0,testID:`${t}Icon`}),o==="backward"&&e.jsx(n,{direction:a.left,testID:`${t}Icon`}),o==="default"&&e.jsx(n,{direction:a.right,testID:`${t}Icon`}),e.jsx(j,{color:"link",testID:`${t}Phrase`,children:r}),o==="forward"&&e.jsx(n,{direction:a.right,testID:`${t}Icon`})]})})};try{s.displayName="Link",s.__docgenInfo={description:"",displayName:"Link",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},variant:{defaultValue:{value:"default"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"backward"'},{value:'"forward"'},{value:'"external"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const ie={component:s},i=r=>e.jsx(s,{...r});i.args={label:"Klik mij ik ben een link",variant:"default"};var p,c,d;i.parameters={...i.parameters,docs:{...(p=i.parameters)==null?void 0:p.docs,source:{originalSource:"args => ",...(d=(c=i.parameters)==null?void 0:c.docs)==null?void 0:d.source}}};const ne=["Default"];export{i as Default,ne as __namedExportsOrder,ie as default}; diff --git a/assets/List.stories-FUqbbRGZ.js b/assets/List.stories-BTw7GTgY.js similarity index 95% rename from assets/List.stories-FUqbbRGZ.js rename to assets/List.stories-BTw7GTgY.js index a501ba87..01e420d4 100644 --- a/assets/List.stories-FUqbbRGZ.js +++ b/assets/List.stories-BTw7GTgY.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{r as y}from"./index-mfbfsM12.js";import{S as g}from"./SingleSelectable-Bg8zzmoU.js";import{C as _}from"./Column-DVJ0Grcf.js";import{R as x}from"./Row-BXpfxHoR.js";import{P as I}from"./Phrase-DprhL3Se.js";import{L}from"./ListItemMarker-bpCY8oNQ.js";import{a as h}from"./accessibleText-gmNPjmn1.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-CEE--Juu.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./config-BZnShabN.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./index-C3bJM-gU.js";const m=({text:e,marker:r,testID:t})=>a.jsxs(x,{children:[a.jsx(L,{marker:r,testID:`${t}Marker`}),a.jsx(I,{testID:t,children:e})]});try{m.displayName="ListItem",m.__docgenInfo={description:"",displayName:"ListItem",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},marker:{defaultValue:null,description:"",name:"marker",required:!0,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const b=e=>{const r=[],t=[];for(const s of e)typeof s=="string"?(r.push(s),t.push(s)):(r.push(s.text),t.push(s.accessibilityLabel));return{textItems:r,accessibilityLabelItems:t}},o=({items:e,marker:r="square",testID:t,accessibilityLanguage:s})=>{const{textItems:c,accessibilityLabelItems:d}=y.useMemo(()=>b(e),[e]);return a.jsx(g,{accessibilityLabel:h(...d),accessibilityLanguage:s,testID:t,children:a.jsx(_,{gutter:"md",children:c.map((p,f)=>a.jsx(m,{marker:r,testID:`${t}${f}Item`,text:p},p))})})};try{o.displayName="List",o.__docgenInfo={description:"",displayName:"List",props:{accessibilityLanguage:{defaultValue:null,description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"Item[]"}},marker:{defaultValue:{value:"square"},description:"",name:"marker",required:!1,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const J={component:o},i=e=>a.jsx(o,{...e});i.args={items:["Centrum","Nieuw-West","Noord","Oost","West","Zuid","Zuidoost","Weesp"],marker:"square"};var n,u,l;i.parameters={...i.parameters,docs:{...(n=i.parameters)==null?void 0:n.docs,source:{originalSource:"args => ",...(l=(u=i.parameters)==null?void 0:u.docs)==null?void 0:l.source}}};const K=["Default"];export{i as Default,K as __namedExportsOrder,J as default}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{r as y}from"./index-mfbfsM12.js";import{S as g}from"./SingleSelectable-Bg8zzmoU.js";import{C as _}from"./Column-DVJ0Grcf.js";import{R as x}from"./Row-BXpfxHoR.js";import{P as I}from"./Phrase-t0rOiClQ.js";import{L}from"./ListItemMarker-BvZewDFw.js";import{a as h}from"./accessibleText-gmNPjmn1.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-CEE--Juu.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./config-BZnShabN.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./index-C3bJM-gU.js";const m=({text:e,marker:r,testID:t})=>a.jsxs(x,{children:[a.jsx(L,{marker:r,testID:`${t}Marker`}),a.jsx(I,{testID:t,children:e})]});try{m.displayName="ListItem",m.__docgenInfo={description:"",displayName:"ListItem",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},marker:{defaultValue:null,description:"",name:"marker",required:!0,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const b=e=>{const r=[],t=[];for(const s of e)typeof s=="string"?(r.push(s),t.push(s)):(r.push(s.text),t.push(s.accessibilityLabel));return{textItems:r,accessibilityLabelItems:t}},o=({items:e,marker:r="square",testID:t,accessibilityLanguage:s})=>{const{textItems:c,accessibilityLabelItems:d}=y.useMemo(()=>b(e),[e]);return a.jsx(g,{accessibilityLabel:h(...d),accessibilityLanguage:s,testID:t,children:a.jsx(_,{gutter:"md",children:c.map((p,f)=>a.jsx(m,{marker:r,testID:`${t}${f}Item`,text:p},p))})})};try{o.displayName="List",o.__docgenInfo={description:"",displayName:"List",props:{accessibilityLanguage:{defaultValue:null,description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"Item[]"}},marker:{defaultValue:{value:"square"},description:"",name:"marker",required:!1,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const J={component:o},i=e=>a.jsx(o,{...e});i.args={items:["Centrum","Nieuw-West","Noord","Oost","West","Zuid","Zuidoost","Weesp"],marker:"square"};var n,u,l;i.parameters={...i.parameters,docs:{...(n=i.parameters)==null?void 0:n.docs,source:{originalSource:"args => ",...(l=(u=i.parameters)==null?void 0:u.docs)==null?void 0:l.source}}};const K=["Default"];export{i as Default,K as __namedExportsOrder,J as default}; diff --git a/assets/ListItemMarker-bpCY8oNQ.js b/assets/ListItemMarker-BvZewDFw.js similarity index 94% rename from assets/ListItemMarker-bpCY8oNQ.js rename to assets/ListItemMarker-BvZewDFw.js index 0b2c9df4..05938174 100644 --- a/assets/ListItemMarker-bpCY8oNQ.js +++ b/assets/ListItemMarker-BvZewDFw.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{c as n}from"./config-BZnShabN.js";import{P as c}from"./Phrase-DprhL3Se.js";import{u}from"./useDeviceContext-DGl4H2w7.js";import{V as d}from"./index-BDsvWohO.js";import{s as p}from"./index-CEE--Juu.js";var s=(e=>(e["check-mark"]="√",e.square="•",e))(s||{});const a=({additionalStyles:e,marker:i,testID:o})=>{const{fontScale:r}=u(),l=m.useMemo(()=>f(r),[r]);return t.jsx(d,{style:[l.marker,e],children:t.jsx(c,{accessible:!1,importantForAccessibility:"no",testID:o,children:s[i]})})},f=e=>p.create({marker:{width:n.listItemMarkerBoxWidth*e,alignItems:"center",alignSelf:"flex-start"}});try{a.displayName="ListItemMarker",a.__docgenInfo={description:"",displayName:"ListItemMarker",props:{additionalStyles:{defaultValue:null,description:"",name:"additionalStyles",required:!1,type:{name:"ViewStyle"}},marker:{defaultValue:null,description:"",name:"marker",required:!0,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{a as L}; +import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{c as n}from"./config-BZnShabN.js";import{P as c}from"./Phrase-t0rOiClQ.js";import{u}from"./useDeviceContext-DGl4H2w7.js";import{V as d}from"./index-BDsvWohO.js";import{s as p}from"./index-CEE--Juu.js";var s=(e=>(e["check-mark"]="√",e.square="•",e))(s||{});const a=({additionalStyles:e,marker:i,testID:o})=>{const{fontScale:r}=u(),l=m.useMemo(()=>f(r),[r]);return t.jsx(d,{style:[l.marker,e],children:t.jsx(c,{accessible:!1,importantForAccessibility:"no",testID:o,children:s[i]})})},f=e=>p.create({marker:{width:n.listItemMarkerBoxWidth*e,alignItems:"center",alignSelf:"flex-start"}});try{a.displayName="ListItemMarker",a.__docgenInfo={description:"",displayName:"ListItemMarker",props:{additionalStyles:{defaultValue:null,description:"",name:"additionalStyles",required:!1,type:{name:"ViewStyle"}},marker:{defaultValue:null,description:"",name:"marker",required:!0,type:{name:"enum",value:[{value:'"check-mark"'},{value:'"square"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{a as L}; diff --git a/assets/NavigationButton.stories-DxOVoX3T.js b/assets/NavigationButton.stories-wRzBaKht.js similarity index 98% rename from assets/NavigationButton.stories-DxOVoX3T.js rename to assets/NavigationButton.stories-wRzBaKht.js index 5a4f80f1..22fafa61 100644 --- a/assets/NavigationButton.stories-DxOVoX3T.js +++ b/assets/NavigationButton.stories-wRzBaKht.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as y}from"./Pressable-HfRmqOUq.js";import{B as x}from"./Box-uk0d72u3.js";import{R as _}from"./Row-BXpfxHoR.js";import{I as l}from"./Icon-CO3hZ5HW.js";import{T as k}from"./Title-2Den3Qhs.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./layoutStyles-DflBxpuh.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const i=({direction:t="forward",iconSize:n="lg",label:g,onPress:v,testID:o,accessibilityRole:f="link",accessibilityLanguage:b="nl-NL"})=>e.jsx(y,{accessibilityLanguage:b,accessibilityRole:f,onPress:v,testID:o,children:e.jsx(x,{insetHorizontal:"md",insetVertical:"sm",children:e.jsxs(_,{align:"between",gutter:"md",valign:"center",children:[t==="backward"&&e.jsx(l,{color:"link",name:"chevron-left",size:n,testID:`${o}Icon`}),e.jsx(k,{color:"link",level:"h5",text:g}),t==="forward"&&e.jsx(l,{color:"link",name:"chevron-right",size:n,testID:`${o}Icon`})]})})});try{i.displayName="NavigationButton",i.__docgenInfo={description:"",displayName:"NavigationButton",props:{accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},accessibilityRole:{defaultValue:{value:"link"},description:"",name:"accessibilityRole",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"link"'}]}},direction:{defaultValue:{value:"forward"},description:"",name:"direction",required:!1,type:{name:"enum",value:[{value:'"backward"'},{value:'"forward"'}]}},iconSize:{defaultValue:{value:"lg"},description:"",name:"iconSize",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'},{value:'"ml"'}]}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const oe={component:i,argTypes:{onPress:{action:"onPress"}}},r={args:{label:"Label"}},a={args:{direction:"backward",label:"Vorige"}};var s,m,p;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as y}from"./Pressable-HfRmqOUq.js";import{B as x}from"./Box-uk0d72u3.js";import{R as _}from"./Row-BXpfxHoR.js";import{I as l}from"./Icon-DcC-yiY8.js";import{T as k}from"./Title-9ScEYPym.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./layoutStyles-DflBxpuh.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const i=({direction:t="forward",iconSize:n="lg",label:g,onPress:v,testID:o,accessibilityRole:f="link",accessibilityLanguage:b="nl-NL"})=>e.jsx(y,{accessibilityLanguage:b,accessibilityRole:f,onPress:v,testID:o,children:e.jsx(x,{insetHorizontal:"md",insetVertical:"sm",children:e.jsxs(_,{align:"between",gutter:"md",valign:"center",children:[t==="backward"&&e.jsx(l,{color:"link",name:"chevron-left",size:n,testID:`${o}Icon`}),e.jsx(k,{color:"link",level:"h5",text:g}),t==="forward"&&e.jsx(l,{color:"link",name:"chevron-right",size:n,testID:`${o}Icon`})]})})});try{i.displayName="NavigationButton",i.__docgenInfo={description:"",displayName:"NavigationButton",props:{accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},accessibilityRole:{defaultValue:{value:"link"},description:"",name:"accessibilityRole",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"link"'}]}},direction:{defaultValue:{value:"forward"},description:"",name:"direction",required:!1,type:{name:"enum",value:[{value:'"backward"'},{value:'"forward"'}]}},iconSize:{defaultValue:{value:"lg"},description:"",name:"iconSize",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'},{value:'"ml"'}]}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const oe={component:i,argTypes:{onPress:{action:"onPress"}}},r={args:{label:"Label"}},a={args:{direction:"backward",label:"Vorige"}};var s,m,p;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { label: 'Label' } diff --git a/assets/Paragraph-CKYtcIcp.js b/assets/Paragraph-DkRs_aGj.js similarity index 92% rename from assets/Paragraph-CKYtcIcp.js rename to assets/Paragraph-DkRs_aGj.js index ac6cb63c..3546404b 100644 --- a/assets/Paragraph-CKYtcIcp.js +++ b/assets/Paragraph-DkRs_aGj.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{r as u}from"./index-mfbfsM12.js";import{u as p}from"./useThemable-CjWxbHxI.js";import{T as c}from"./index-BypDj3rK.js";import{s as m}from"./index-CEE--Juu.js";const o=({children:l,color:a="default",textAlign:e="left",variant:r="body",...t})=>{const i=u.useMemo(()=>d({color:a,textAlign:e,variant:r}),[a,e,r]),n=p(i);return s.jsx(c,{accessibilityLanguage:"nl-NL",accessibilityRole:a==="warning"?"alert":"none",style:n.text,...t,children:l})},d=({color:l,textAlign:a,variant:e})=>({color:r,text:t})=>m.create({text:{flexShrink:1,color:r.text[l],fontFamily:t.fontFamily[e==="quote"?"bold":"regular"],fontSize:t.fontSize[e],lineHeight:t.lineHeight[e],textAlign:a}});try{o.displayName="Paragraph",o.__docgenInfo={description:"",displayName:"Paragraph",props:{color:{defaultValue:{value:"default"},description:"Provides an inverse text color to allow a paragraph on a dark background.",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"inverse"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"warning"'}]}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},variant:{defaultValue:{value:"body"},description:"Which variation of a paragraph to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}export{o as P}; +import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{r as u}from"./index-mfbfsM12.js";import{u as p}from"./useThemable-CjWxbHxI.js";import{T as c}from"./index-BypDj3rK.js";import{s as m}from"./index-CEE--Juu.js";const o=({children:l,color:a="default",textAlign:e="left",variant:r="body",...t})=>{const i=u.useMemo(()=>d({color:a,textAlign:e,variant:r}),[a,e,r]),n=p(i);return s.jsx(c,{accessibilityLanguage:"nl-NL",accessibilityRole:a==="warning"?"alert":"none",style:n.text,...t,children:l})},d=({color:l,textAlign:a,variant:e})=>({color:r,text:t})=>m.create({text:{flexShrink:1,color:r.text[l],fontFamily:t.fontFamily[e==="quote"?"bold":"regular"],fontSize:t.fontSize[e],lineHeight:t.lineHeight[e],textAlign:a}});try{o.displayName="Paragraph",o.__docgenInfo={description:"",displayName:"Paragraph",props:{color:{defaultValue:{value:"default"},description:"Provides an inverse text color to allow a paragraph on a dark background.",name:"color",required:!1,type:{name:"enum",value:[{value:'"secondary"'},{value:'"tertiary"'},{value:'"link"'},{value:'"default"'},{value:'"inverse"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"warning"'}]}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},variant:{defaultValue:{value:"body"},description:"Which variation of a paragraph to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}export{o as P}; diff --git a/assets/Paragraph.stories-HIpJ_3mC.js b/assets/Paragraph.stories-CqC3Nd_V.js similarity index 92% rename from assets/Paragraph.stories-HIpJ_3mC.js rename to assets/Paragraph.stories-CqC3Nd_V.js index 49a3470d..6673bad2 100644 --- a/assets/Paragraph.stories-HIpJ_3mC.js +++ b/assets/Paragraph.stories-CqC3Nd_V.js @@ -1,3 +1,3 @@ -import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{P as t}from"./Paragraph-CKYtcIcp.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const j={component:t},r=s=>p.jsx(t,{...s,children:"Jouw typograaf biedt mij zulke exquise schreven!"});r.args={color:"default",variant:"body"};var a,o,e;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`args => +import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{P as t}from"./Paragraph-DkRs_aGj.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const j={component:t},r=s=>p.jsx(t,{...s,children:"Jouw typograaf biedt mij zulke exquise schreven!"});r.args={color:"default",variant:"body"};var a,o,e;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`args => Jouw typograaf biedt mij zulke exquise schreven! `,...(e=(o=r.parameters)==null?void 0:o.docs)==null?void 0:e.source}}};const P=["Default"];export{r as Default,P as __namedExportsOrder,j as default}; diff --git a/assets/PhoneButton-DincWTMd.js b/assets/PhoneButton-H9GVa_s-.js similarity index 98% rename from assets/PhoneButton-DincWTMd.js rename to assets/PhoneButton-H9GVa_s-.js index f25f463a..c1b77b0f 100644 --- a/assets/PhoneButton-DincWTMd.js +++ b/assets/PhoneButton-H9GVa_s-.js @@ -1 +1 @@ -import{j as l}from"./jsx-runtime-Bxcv0yjW.js";import{B as r}from"./Button-CXn0Rl0f.js";import{R as u}from"./Row-BXpfxHoR.js";import{u as o}from"./useOpenPhoneUrl-BpjRyIpq.js";import{a as d}from"./accessibleText-gmNPjmn1.js";const c=["010","013","014","015","020","023","024","026","030","033","035","036","038","040","043","044","045","046","050","053","055","058","070","071","072","073","074","075","076","077","078","079"],t=e=>{var a;if(e.startsWith("+31")&&(e=e.replace("+31","0")),e==="14020")return"14 020";if(e==="0202515020")return"020 25 15 020";if(e.length===10)return e.startsWith("06")?[e.substring(0,2),e.substring(2,6),e.substring(6,10)].join(" "):c.includes(e.substring(0,3))?[e.substring(0,3),e.substring(3,6),e.substring(6,10)].join(" "):[e.substring(0,4),e.substring(4,7),e.substring(7,10)].join(" ");if(e.startsWith("0800")||e.startsWith("0900")){if(e.length===8)return(a=e.match(/.{4}/g))==null?void 0:a.join(" ");if(e.length===11)return[e.substring(0,4),e.substring(4,7),e.substring(7,11)].join(" ")}return e},i=({accessibilityLabel:e,phoneNumber:a,...n})=>{const s=o();return l.jsx(u,{children:l.jsx(r,{accessibilityLanguage:"nl-NL",...n,accessibilityLabel:e||d("Bel",...(t(a)??"").split(" ")),iconName:"phone",label:t(a),onPress:()=>{s(a)}})})};try{i.displayName="PhoneButton",i.__docgenInfo={description:"",displayName:"PhoneButton",props:{phoneNumber:{defaultValue:null,description:"",name:"phoneNumber",required:!0,type:{name:"string"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}export{i as P}; +import{j as l}from"./jsx-runtime-Bxcv0yjW.js";import{B as r}from"./Button-DAm4UwbF.js";import{R as u}from"./Row-BXpfxHoR.js";import{u as o}from"./useOpenPhoneUrl-BpjRyIpq.js";import{a as d}from"./accessibleText-gmNPjmn1.js";const c=["010","013","014","015","020","023","024","026","030","033","035","036","038","040","043","044","045","046","050","053","055","058","070","071","072","073","074","075","076","077","078","079"],t=e=>{var a;if(e.startsWith("+31")&&(e=e.replace("+31","0")),e==="14020")return"14 020";if(e==="0202515020")return"020 25 15 020";if(e.length===10)return e.startsWith("06")?[e.substring(0,2),e.substring(2,6),e.substring(6,10)].join(" "):c.includes(e.substring(0,3))?[e.substring(0,3),e.substring(3,6),e.substring(6,10)].join(" "):[e.substring(0,4),e.substring(4,7),e.substring(7,10)].join(" ");if(e.startsWith("0800")||e.startsWith("0900")){if(e.length===8)return(a=e.match(/.{4}/g))==null?void 0:a.join(" ");if(e.length===11)return[e.substring(0,4),e.substring(4,7),e.substring(7,11)].join(" ")}return e},i=({accessibilityLabel:e,phoneNumber:a,...n})=>{const s=o();return l.jsx(u,{children:l.jsx(r,{accessibilityLanguage:"nl-NL",...n,accessibilityLabel:e||d("Bel",...(t(a)??"").split(" ")),iconName:"phone",label:t(a),onPress:()=>{s(a)}})})};try{i.displayName="PhoneButton",i.__docgenInfo={description:"",displayName:"PhoneButton",props:{phoneNumber:{defaultValue:null,description:"",name:"phoneNumber",required:!0,type:{name:"string"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},ellipsizeMode:{defaultValue:null,description:"",name:"ellipsizeMode",required:!1,type:{name:"enum",value:[{value:'"head"'},{value:'"tail"'},{value:'"middle"'},{value:'"clip"'}]}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},small:{defaultValue:null,description:"",name:"small",required:!1,type:{name:"boolean"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}}}}}catch{}export{i as P}; diff --git a/assets/PhoneButton.stories-B7VmHzQ_.js b/assets/PhoneButton.stories-gTtf5rgQ.js similarity index 88% rename from assets/PhoneButton.stories-B7VmHzQ_.js rename to assets/PhoneButton.stories-gTtf5rgQ.js index 72da3529..7c08bf23 100644 --- a/assets/PhoneButton.stories-B7VmHzQ_.js +++ b/assets/PhoneButton.stories-gTtf5rgQ.js @@ -1,4 +1,4 @@ -import{P as m}from"./PhoneButton-DincWTMd.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Button-CXn0Rl0f.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useOpenPhoneUrl-BpjRyIpq.js";import"./index-XPwQYiUg.js";import"./accessibleText-gmNPjmn1.js";const L={component:m,argTypes:{onPress:{action:"onPress"}}},o={args:{phoneNumber:"0610000000"}};var r,t,p;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ +import{P as m}from"./PhoneButton-H9GVa_s-.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Button-DAm4UwbF.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useOpenPhoneUrl-BpjRyIpq.js";import"./index-XPwQYiUg.js";import"./accessibleText-gmNPjmn1.js";const L={component:m,argTypes:{onPress:{action:"onPress"}}},o={args:{phoneNumber:"0610000000"}};var r,t,p;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`{ args: { phoneNumber: '0610000000' } diff --git a/assets/PhoneHQButton.stories-CngON3m8.js b/assets/PhoneHQButton.stories-CCWkKybX.js similarity index 90% rename from assets/PhoneHQButton.stories-CngON3m8.js rename to assets/PhoneHQButton.stories-CCWkKybX.js index 8d354e28..e196aac0 100644 --- a/assets/PhoneHQButton.stories-CngON3m8.js +++ b/assets/PhoneHQButton.stories-CCWkKybX.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as n}from"./PhoneButton-DincWTMd.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Button-CXn0Rl0f.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useOpenPhoneUrl-BpjRyIpq.js";import"./index-XPwQYiUg.js";import"./accessibleText-gmNPjmn1.js";const r=({testID:o,variant:m="primary"})=>a.jsx(n,{accessibilityLabel:"Bel veertien nul twintig",phoneNumber:"14020",testID:o,variant:m});try{r.displayName="PhoneHQButton",r.__docgenInfo={description:"",displayName:"PhoneHQButton",props:{variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const M={component:r,argTypes:{onPress:{action:"onPress"}}},t={};var e,i,p;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:"{}",...(p=(i=t.parameters)==null?void 0:i.docs)==null?void 0:p.source}}};const U=["Default"];export{t as Default,U as __namedExportsOrder,M as default}; +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{P as n}from"./PhoneButton-H9GVa_s-.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Button-DAm4UwbF.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useOpenPhoneUrl-BpjRyIpq.js";import"./index-XPwQYiUg.js";import"./accessibleText-gmNPjmn1.js";const r=({testID:o,variant:m="primary"})=>a.jsx(n,{accessibilityLabel:"Bel veertien nul twintig",phoneNumber:"14020",testID:o,variant:m});try{r.displayName="PhoneHQButton",r.__docgenInfo={description:"",displayName:"PhoneHQButton",props:{variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const M={component:r,argTypes:{onPress:{action:"onPress"}}},t={};var e,i,p;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:"{}",...(p=(i=t.parameters)==null?void 0:i.docs)==null?void 0:p.source}}};const U=["Default"];export{t as Default,U as __namedExportsOrder,M as default}; diff --git a/assets/Phrase-DprhL3Se.js b/assets/Phrase-t0rOiClQ.js similarity index 97% rename from assets/Phrase-DprhL3Se.js rename to assets/Phrase-t0rOiClQ.js index 78a61868..85c68493 100644 --- a/assets/Phrase-DprhL3Se.js +++ b/assets/Phrase-t0rOiClQ.js @@ -1 +1 @@ -import{j as h}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{u as c,E as v}from"./useThemable-CjWxbHxI.js";import{T as g}from"./index-BypDj3rK.js";import{s as y}from"./index-CEE--Juu.js";const u=({children:t,color:l="default",emphasis:r="default",flexShrink:s=1,underline:e=!1,variant:n="body",testID:i,"logging-label":a,textAlign:o="left",...p})=>{const d=m.useMemo(()=>x({color:l,emphasis:r,flexShrink:s,underline:e,variant:n,textAlign:o}),[l,r,s,e,n,o]),f=c(d);return h.jsx(g,{accessibilityLanguage:"nl-NL","logging-label":a,style:f.text,testID:i,...p,children:t})},x=({color:t,emphasis:l,flexShrink:r,underline:s,variant:e,textAlign:n})=>({color:i,text:a})=>y.create({text:{flexShrink:r,color:i.text[t],fontFamily:a.fontFamily[l===v.strong?"bold":"regular"],fontSize:a.fontSize[e],lineHeight:a.lineHeight[e],textDecorationLine:s?"underline":"none",textAlign:n}});try{u.displayName="Phrase",u.__docgenInfo={description:"Displays (very) short text phrases.\nOffers the three sizing variants, and bold text.\nFor sentences, use `Paragraph` instead.",displayName:"Phrase",props:{color:{defaultValue:{value:"default"},description:"Defines the color of the phrase. Maps with the text color tokens.",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"inverse"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"warning"'}]}},emphasis:{defaultValue:{value:"default"},description:"Allows the phrase to convey more emphasis.",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},flexShrink:{defaultValue:{value:"1"},description:"Defines how to shrink the phrase in case the parent container is smaller than the phrase.",name:"flexShrink",required:!1,type:{name:"number"}},"logging-label":{defaultValue:null,description:"Label used for logging to Piwik and AppInsights.",name:"logging-label",required:!1,type:{name:"string"}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:{value:"false"},description:"Whether the phrase is underlined. Use this for a link only.",name:"underline",required:!1,type:{name:"boolean"}},variant:{defaultValue:{value:"body"},description:"Which variation of a phrase to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}export{u as P}; +import{j as h}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{u as c,E as v}from"./useThemable-CjWxbHxI.js";import{T as g}from"./index-BypDj3rK.js";import{s as y}from"./index-CEE--Juu.js";const u=({children:t,color:l="default",emphasis:r="default",flexShrink:s=1,underline:e=!1,variant:n="body",testID:i,"logging-label":a,textAlign:o="left",...p})=>{const d=m.useMemo(()=>x({color:l,emphasis:r,flexShrink:s,underline:e,variant:n,textAlign:o}),[l,r,s,e,n,o]),f=c(d);return h.jsx(g,{accessibilityLanguage:"nl-NL","logging-label":a,style:f.text,testID:i,...p,children:t})},x=({color:t,emphasis:l,flexShrink:r,underline:s,variant:e,textAlign:n})=>({color:i,text:a})=>y.create({text:{flexShrink:r,color:i.text[t],fontFamily:a.fontFamily[l===v.strong?"bold":"regular"],fontSize:a.fontSize[e],lineHeight:a.lineHeight[e],textDecorationLine:s?"underline":"none",textAlign:n}});try{u.displayName="Phrase",u.__docgenInfo={description:"Displays (very) short text phrases.\nOffers the three sizing variants, and bold text.\nFor sentences, use `Paragraph` instead.",displayName:"Phrase",props:{color:{defaultValue:{value:"default"},description:"Defines the color of the phrase. Maps with the text color tokens.",name:"color",required:!1,type:{name:"enum",value:[{value:'"secondary"'},{value:'"tertiary"'},{value:'"link"'},{value:'"default"'},{value:'"inverse"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"warning"'}]}},emphasis:{defaultValue:{value:"default"},description:"Allows the phrase to convey more emphasis.",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"strong"'}]}},flexShrink:{defaultValue:{value:"1"},description:"Defines how to shrink the phrase in case the parent container is smaller than the phrase.",name:"flexShrink",required:!1,type:{name:"number"}},"logging-label":{defaultValue:null,description:"Label used for logging to Piwik and AppInsights.",name:"logging-label",required:!1,type:{name:"string"}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:{value:"false"},description:"Whether the phrase is underlined. Use this for a link only.",name:"underline",required:!1,type:{name:"boolean"}},variant:{defaultValue:{value:"body"},description:"Which variation of a phrase to display.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"body"'},{value:'"intro"'},{value:'"quote"'},{value:'"extraSmall"'}]}}}}}catch{}export{u as P}; diff --git a/assets/Phrase.stories-PpL3ivS5.js b/assets/Phrase.stories-1WGaWSS3.js similarity index 95% rename from assets/Phrase.stories-PpL3ivS5.js rename to assets/Phrase.stories-1WGaWSS3.js index a965c6f3..c9dfb490 100644 --- a/assets/Phrase.stories-PpL3ivS5.js +++ b/assets/Phrase.stories-1WGaWSS3.js @@ -1,4 +1,4 @@ -import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{P as a}from"./Phrase-DprhL3Se.js";import{V as c}from"./index-BDsvWohO.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const V={component:a},r={args:{children:"Phrase content",color:"default",emphasis:"default",variant:"body"}},e=()=>s.jsxs(c,{children:[s.jsx(a,{emphasis:"strong",testID:"Phrase",variant:"small",children:"14"}),s.jsx(a,{testID:"Phrase",variant:"small",children:"volgers"})]});var t,o,n;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{P as a}from"./Phrase-t0rOiClQ.js";import{V as c}from"./index-BDsvWohO.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const V={component:a},r={args:{children:"Phrase content",color:"default",emphasis:"default",variant:"body"}},e=()=>s.jsxs(c,{children:[s.jsx(a,{emphasis:"strong",testID:"Phrase",variant:"small",children:"14"}),s.jsx(a,{testID:"Phrase",variant:"small",children:"volgers"})]});var t,o,n;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { children: 'Phrase content', color: 'default', diff --git a/assets/PleaseWait-kuCXMYoa.js b/assets/PleaseWait-C5ES8__x.js similarity index 89% rename from assets/PleaseWait-kuCXMYoa.js rename to assets/PleaseWait-C5ES8__x.js index 972b584b..68304f42 100644 --- a/assets/PleaseWait-kuCXMYoa.js +++ b/assets/PleaseWait-C5ES8__x.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{B as o}from"./Box-uk0d72u3.js";import{C as s}from"./Center-CqG4tBOn.js";import{I as i}from"./Icon-CO3hZ5HW.js";const t=({grow:r,testID:a})=>e.jsx(s,{grow:r,children:e.jsx(o,{children:e.jsx(i,{color:"link",name:"spinner",size:"lg",testID:a})})});try{t.displayName="PleaseWait",t.__docgenInfo={description:"",displayName:"PleaseWait",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{t as P}; +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{B as o}from"./Box-uk0d72u3.js";import{C as s}from"./Center-CqG4tBOn.js";import{I as i}from"./Icon-DcC-yiY8.js";const t=({grow:r,testID:a})=>e.jsx(s,{grow:r,children:e.jsx(o,{children:e.jsx(i,{color:"link",name:"spinner",size:"lg",testID:a})})});try{t.displayName="PleaseWait",t.__docgenInfo={description:"",displayName:"PleaseWait",props:{grow:{defaultValue:null,description:"",name:"grow",required:!1,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{t as P}; diff --git a/assets/PleaseWait.stories-C_eisUPf.js b/assets/PleaseWait.stories-BCRCPM4o.js similarity index 91% rename from assets/PleaseWait.stories-C_eisUPf.js rename to assets/PleaseWait.stories-BCRCPM4o.js index 49133441..6c88ccdb 100644 --- a/assets/PleaseWait.stories-C_eisUPf.js +++ b/assets/PleaseWait.stories-BCRCPM4o.js @@ -1,4 +1,4 @@ -import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{P as e}from"./PleaseWait-kuCXMYoa.js";import"./Block-SFKht2RU.js";import{C as s}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./index-CEE--Juu.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./Center-CqG4tBOn.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Animated-C23eizOh.js";import"./index-DOpK3Ow6.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const J={component:e,decorators:[m=>p.jsx(s,{height:"256px",highlight:!0,maxWidth:"512px",children:m()})]},r={args:{grow:!0}};var t,o,i;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{j as p}from"./jsx-runtime-Bxcv0yjW.js";import{P as e}from"./PleaseWait-C5ES8__x.js";import"./Block-SFKht2RU.js";import{C as s}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./index-CEE--Juu.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BDsvWohO.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./Center-CqG4tBOn.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Animated-C23eizOh.js";import"./index-DOpK3Ow6.js";import"./extends-CF3RwP-h.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";const J={component:e,decorators:[m=>p.jsx(s,{height:"256px",highlight:!0,maxWidth:"512px",children:m()})]},r={args:{grow:!0}};var t,o,i;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { grow: true } diff --git a/assets/Pressable.stories-d3wTtiV1.js b/assets/Pressable.stories-COIJugq4.js similarity index 90% rename from assets/Pressable.stories-d3wTtiV1.js rename to assets/Pressable.stories-COIJugq4.js index e440e189..4c929c81 100644 --- a/assets/Pressable.stories-d3wTtiV1.js +++ b/assets/Pressable.stories-COIJugq4.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as i}from"./Pressable-HfRmqOUq.js";import{P as m}from"./Paragraph-CKYtcIcp.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";const k={component:i,argTypes:{onPress:{action:"onPress"}}},r={args:{children:e.jsx(m,{children:"Press me"}),insetHorizontal:"lg"}};var o,t,s;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{P as i}from"./Pressable-HfRmqOUq.js";import{P as m}from"./Paragraph-DkRs_aGj.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";const k={component:i,argTypes:{onPress:{action:"onPress"}}},r={args:{children:e.jsx(m,{children:"Press me"}),insetHorizontal:"lg"}};var o,t,s;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{ args: { children: Press me, insetHorizontal: 'lg' diff --git a/assets/RadioGroup.stories-CUx0HPhd.js b/assets/RadioGroup.stories-Y-z69RC-.js similarity index 99% rename from assets/RadioGroup.stories-CUx0HPhd.js rename to assets/RadioGroup.stories-Y-z69RC-.js index d74e31da..76eee001 100644 --- a/assets/RadioGroup.stories-CUx0HPhd.js +++ b/assets/RadioGroup.stories-Y-z69RC-.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{S as V,a as m}from"./index-DYSHDArR.js";import{P as w}from"./PressableBase-CPU35BDr.js";import{R}from"./Row-BXpfxHoR.js";import{P as q}from"./Phrase-DprhL3Se.js";import{u as P}from"./useTheme-CJIBCVMY.js";import{C as _}from"./Column-DVJ0Grcf.js";import{u as x,P as k,a as N}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-Dk74W0Oi.js";import"./index-CEE--Juu.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BDsvWohO.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./development-DYCnWZjk.js";const A=({checked:t})=>{const{color:a}=P();return e.jsxs(V,{height:24,viewBox:"0 0 24 24",width:24,children:[e.jsx(m,{cx:12,cy:12,fill:a.control.default.background,r:11,stroke:a.control.checked.border,strokeWidth:2}),!!t&&e.jsx(m,{cx:12,cy:12,fill:a.control.checked.border,r:8})]})},s=({label:t,isSelected:a,onPress:o,testID:r,...n})=>e.jsx(w,{...n,accessibilityLanguage:"nl-NL",accessibilityRole:"radio",accessibilityState:{selected:a},onPress:o,testID:r,children:e.jsxs(R,{gutter:"sm",valign:"center",children:[e.jsx(A,{checked:a}),e.jsx(q,{testID:`${r}Phrase`,children:t})]})});try{s.displayName="Radio",s.__docgenInfo={description:"",displayName:"Radio",props:{isSelected:{defaultValue:null,description:"",name:"isSelected",required:!0,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"Called when a single tap gesture is detected.",name:"onPress",required:!1,type:{name:"(() => void) & ((event: GestureResponderEvent) => void)"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const u=({options:t=[],onChange:a,testID:o,value:r,logAction:n=N.radioChange,useOptionValuesForLogging:d=!1,logDimensions:h={},...y})=>{const b=x({...y,logAction:n,logDimensions:h,onEvent:a,testID:o});return e.jsx(_,{gutter:"md",children:t.map(({label:c,value:l},C)=>{const p=`${o}${d?l.toString():C}RadioButton`;return e.jsx(s,{isSelected:r===l,label:c,"logging-label":p,logName:p,onPress:()=>b(l,d?{dimensions:{[k.newState]:l.toString()}}:{}),testID:`${o}${l.toString()}RadioButton`},c)})})};try{u.displayName="RadioGroup",u.__docgenInfo={description:"",displayName:"RadioGroup",props:{onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: T) => void"}},options:{defaultValue:{value:"[]"},description:"",name:"options",required:!1,type:{name:"RadioGroupOption[]"}},useOptionValuesForLogging:{defaultValue:{value:"false"},description:"Log value to analytics service as new state when the selected value changes and as name on the button press event of the option.",name:"useOptionValuesForLogging",required:!1,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"RadioValue"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:{value:"PiwikAction.radioChange"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const ie={component:u},D=[{label:"Heldhaftig",value:"valiant"},{label:"Vastberaden",value:"steadfast"},{label:"Barmhartig",value:"compassionate"}],i={args:{options:D,value:"valiant"}};var v,g,f;i.parameters={...i.parameters,docs:{...(v=i.parameters)==null?void 0:v.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{S as V,a as m}from"./index-DYSHDArR.js";import{P as w}from"./PressableBase-CPU35BDr.js";import{R}from"./Row-BXpfxHoR.js";import{P as q}from"./Phrase-t0rOiClQ.js";import{u as P}from"./useTheme-CJIBCVMY.js";import{C as _}from"./Column-DVJ0Grcf.js";import{u as x,P as k,a as N}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-Dk74W0Oi.js";import"./index-CEE--Juu.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BDsvWohO.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./development-DYCnWZjk.js";const A=({checked:t})=>{const{color:a}=P();return e.jsxs(V,{height:24,viewBox:"0 0 24 24",width:24,children:[e.jsx(m,{cx:12,cy:12,fill:a.control.default.background,r:11,stroke:a.control.checked.border,strokeWidth:2}),!!t&&e.jsx(m,{cx:12,cy:12,fill:a.control.checked.border,r:8})]})},s=({label:t,isSelected:a,onPress:o,testID:r,...n})=>e.jsx(w,{...n,accessibilityLanguage:"nl-NL",accessibilityRole:"radio",accessibilityState:{selected:a},onPress:o,testID:r,children:e.jsxs(R,{gutter:"sm",valign:"center",children:[e.jsx(A,{checked:a}),e.jsx(q,{testID:`${r}Phrase`,children:t})]})});try{s.displayName="Radio",s.__docgenInfo={description:"",displayName:"Radio",props:{isSelected:{defaultValue:null,description:"",name:"isSelected",required:!0,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"Called when a single tap gesture is detected.",name:"onPress",required:!1,type:{name:"(() => void) & ((event: GestureResponderEvent) => void)"}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const u=({options:t=[],onChange:a,testID:o,value:r,logAction:n=N.radioChange,useOptionValuesForLogging:d=!1,logDimensions:h={},...y})=>{const b=x({...y,logAction:n,logDimensions:h,onEvent:a,testID:o});return e.jsx(_,{gutter:"md",children:t.map(({label:c,value:l},C)=>{const p=`${o}${d?l.toString():C}RadioButton`;return e.jsx(s,{isSelected:r===l,label:c,"logging-label":p,logName:p,onPress:()=>b(l,d?{dimensions:{[k.newState]:l.toString()}}:{}),testID:`${o}${l.toString()}RadioButton`},c)})})};try{u.displayName="RadioGroup",u.__docgenInfo={description:"",displayName:"RadioGroup",props:{onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: T) => void"}},options:{defaultValue:{value:"[]"},description:"",name:"options",required:!1,type:{name:"RadioGroupOption[]"}},useOptionValuesForLogging:{defaultValue:{value:"false"},description:"Log value to analytics service as new state when the selected value changes and as name on the button press event of the option.",name:"useOptionValuesForLogging",required:!1,type:{name:"boolean"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"RadioValue"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},logAction:{defaultValue:{value:"PiwikAction.radioChange"},description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:{value:"{}"},description:"",name:"logDimensions",required:!1,type:{name:"Partial>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}}}}}catch{}const ie={component:u},D=[{label:"Heldhaftig",value:"valiant"},{label:"Vastberaden",value:"steadfast"},{label:"Barmhartig",value:"compassionate"}],i={args:{options:D,value:"valiant"}};var v,g,f;i.parameters={...i.parameters,docs:{...(v=i.parameters)==null?void 0:v.docs,source:{originalSource:`{ args: { options, value: 'valiant' diff --git a/assets/Row.stories-DPtT-e2O.js b/assets/Row.stories-CoTMFviY.js similarity index 93% rename from assets/Row.stories-DPtT-e2O.js rename to assets/Row.stories-CoTMFviY.js index 7ff9dee6..8a21ebae 100644 --- a/assets/Row.stories-DPtT-e2O.js +++ b/assets/Row.stories-CoTMFviY.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{B as a}from"./Button-CXn0Rl0f.js";import{R as i}from"./Row-BXpfxHoR.js";import{B as s}from"./Block-SFKht2RU.js";import{C as c}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";const U={component:i},r=o=>t.jsx(c,{highlight:!0,children:t.jsxs(i,{...o,children:[t.jsx(s,{label:"A"}),t.jsx(s,{label:"B"}),t.jsx(s,{label:"C"})]})});r.args={align:"start",gutter:"md",wrap:!1};const e=o=>t.jsx(c,{highlight:!0,maxWidth:"24rem",children:t.jsxs(i,{...o,children:[t.jsx(a,{label:"Wijzig adres",testID:"Button"}),t.jsx(a,{label:"Voeg adres toe",testID:"Button",variant:"secondary"}),t.jsx(a,{label:"Verwijder adres",testID:"Button",variant:"secondary"})]})});e.args={gutter:"md",wrap:!0};var n,m,p;r.parameters={...r.parameters,docs:{...(n=r.parameters)==null?void 0:n.docs,source:{originalSource:`args => +import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{B as a}from"./Button-DAm4UwbF.js";import{R as i}from"./Row-BXpfxHoR.js";import{B as s}from"./Block-SFKht2RU.js";import{C as c}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./config-BZnShabN.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";const U={component:i},r=o=>t.jsx(c,{highlight:!0,children:t.jsxs(i,{...o,children:[t.jsx(s,{label:"A"}),t.jsx(s,{label:"B"}),t.jsx(s,{label:"C"})]})});r.args={align:"start",gutter:"md",wrap:!1};const e=o=>t.jsx(c,{highlight:!0,maxWidth:"24rem",children:t.jsxs(i,{...o,children:[t.jsx(a,{label:"Wijzig adres",testID:"Button"}),t.jsx(a,{label:"Voeg adres toe",testID:"Button",variant:"secondary"}),t.jsx(a,{label:"Verwijder adres",testID:"Button",variant:"secondary"})]})});e.args={gutter:"md",wrap:!0};var n,m,p;r.parameters={...r.parameters,docs:{...(n=r.parameters)==null?void 0:n.docs,source:{originalSource:`args => diff --git a/assets/Size.stories-Bhgey4GA.js b/assets/Size.stories-DTGdjPCR.js similarity index 94% rename from assets/Size.stories-Bhgey4GA.js rename to assets/Size.stories-DTGdjPCR.js index 319fb9de..38ff5326 100644 --- a/assets/Size.stories-Bhgey4GA.js +++ b/assets/Size.stories-DTGdjPCR.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{S as i}from"./Size-D6myJmG7.js";import{P as m}from"./Phrase-DprhL3Se.js";import"./Block-SFKht2RU.js";import{C as p}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BDsvWohO.js";import"./index-CEE--Juu.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";const v={component:i},r=o=>e.jsx(i,{...o,children:e.jsx(p,{highlight:!0,children:e.jsx(m,{testID:"Phrase",children:"Ik accepteer afmetingen"})})});r.args={maxWidth:128,minHeight:128};var t,s,a;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`args => +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{S as i}from"./Size-D6myJmG7.js";import{P as m}from"./Phrase-t0rOiClQ.js";import"./Block-SFKht2RU.js";import{C as p}from"./Canvas-CCRWbH08.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-BDsvWohO.js";import"./index-CEE--Juu.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";const v={component:i},r=o=>e.jsx(i,{...o,children:e.jsx(p,{highlight:!0,children:e.jsx(m,{testID:"Phrase",children:"Ik accepteer afmetingen"})})});r.args={maxWidth:128,minHeight:128};var t,s,a;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:`args => Ik accepteer afmetingen diff --git a/assets/SomethingWentWrong.stories-D4WWuqfh.js b/assets/SomethingWentWrong.stories-CgtMyzYA.js similarity index 94% rename from assets/SomethingWentWrong.stories-D4WWuqfh.js rename to assets/SomethingWentWrong.stories-CgtMyzYA.js index 337a52d1..91cdb851 100644 --- a/assets/SomethingWentWrong.stories-D4WWuqfh.js +++ b/assets/SomethingWentWrong.stories-CgtMyzYA.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{P as d}from"./Pressable-HfRmqOUq.js";import{A as c,a as f}from"./AlertBase-CypP0Y-t.js";import{u as v}from"./useAccessibilityAnnounce-DO7gK7r3.js";import{V as g}from"./index-BDsvWohO.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./SingleSelectable-Bg8zzmoU.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-BXpfxHoR.js";import"./Icon-CO3hZ5HW.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./Paragraph-CKYtcIcp.js";import"./Title-2Den3Qhs.js";import"./useAccessibilityFocus-Djl26ZxP.js";import"./index-iQAZAIR7.js";import"./index-kJeFfQx-.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./duration-A4BOymd5.js";import"./accessibleText-gmNPjmn1.js";const o=e=>t.jsx(c,{...e,variant:f.negative});try{o.displayName="AlertNegative",o.__docgenInfo={description:"",displayName:"AlertNegative",props:{inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},hasCloseIcon:{defaultValue:null,description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:null,description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const y=({children:e,retryFn:a,testID:r})=>a?t.jsx(d,{onPress:a,testID:r,children:e}):t.jsx(g,{testID:r,children:e}),n=({retryFn:e,testID:a,text:r="Er ging iets mis.",title:l="Sorry …",...p})=>(v(`${l} ${r}`),t.jsx(y,{retryFn:e,testID:a,children:t.jsx(o,{...p,testID:"SomethingWentWrong",text:r,title:l})}));try{n.displayName="SomethingWentWrong",n.__docgenInfo={description:"",displayName:"SomethingWentWrong",props:{testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},title:{defaultValue:{value:"Sorry …"},description:"",name:"title",required:!1,type:{name:"string"}},hasCloseIcon:{defaultValue:null,description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:null,description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},retryFn:{defaultValue:null,description:"",name:"retryFn",required:!1,type:{name:"(() => void)"}},text:{defaultValue:{value:"Er ging iets mis."},description:"",name:"text",required:!1,type:{name:"string"}}}}}catch{}const pe={component:n},i=()=>t.jsx(n,{testID:""});var s,m,u;i.parameters={...i.parameters,docs:{...(s=i.parameters)==null?void 0:s.docs,source:{originalSource:'() => ',...(u=(m=i.parameters)==null?void 0:m.docs)==null?void 0:u.source}}};const de=["Default"];export{i as Default,de as __namedExportsOrder,pe as default}; +import{j as t}from"./jsx-runtime-Bxcv0yjW.js";import{P as d}from"./Pressable-HfRmqOUq.js";import{A as c,a as f}from"./AlertBase-B0hDfRWJ.js";import{u as v}from"./useAccessibilityAnnounce-DO7gK7r3.js";import{V as g}from"./index-BDsvWohO.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./SingleSelectable-Bg8zzmoU.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Row-BXpfxHoR.js";import"./Icon-DcC-yiY8.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./Paragraph-DkRs_aGj.js";import"./Title-9ScEYPym.js";import"./useAccessibilityFocus-Djl26ZxP.js";import"./index-iQAZAIR7.js";import"./index-kJeFfQx-.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./duration-A4BOymd5.js";import"./accessibleText-gmNPjmn1.js";const o=e=>t.jsx(c,{...e,variant:f.negative});try{o.displayName="AlertNegative",o.__docgenInfo={description:"",displayName:"AlertNegative",props:{inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},hasCloseIcon:{defaultValue:null,description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:null,description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const y=({children:e,retryFn:a,testID:r})=>a?t.jsx(d,{onPress:a,testID:r,children:e}):t.jsx(g,{testID:r,children:e}),n=({retryFn:e,testID:a,text:r="Er ging iets mis.",title:l="Sorry …",...p})=>(v(`${l} ${r}`),t.jsx(y,{retryFn:e,testID:a,children:t.jsx(o,{...p,testID:"SomethingWentWrong",text:r,title:l})}));try{n.displayName="SomethingWentWrong",n.__docgenInfo={description:"",displayName:"SomethingWentWrong",props:{testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"information"'},{value:'"negative"'},{value:'"positive"'},{value:'"warning"'}]}},inset:{defaultValue:null,description:"",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},title:{defaultValue:{value:"Sorry …"},description:"",name:"title",required:!1,type:{name:"string"}},hasCloseIcon:{defaultValue:null,description:"",name:"hasCloseIcon",required:!1,type:{name:"boolean"}},hasIcon:{defaultValue:null,description:"",name:"hasIcon",required:!1,type:{name:"boolean"}},retryFn:{defaultValue:null,description:"",name:"retryFn",required:!1,type:{name:"(() => void)"}},text:{defaultValue:{value:"Er ging iets mis."},description:"",name:"text",required:!1,type:{name:"string"}}}}}catch{}const pe={component:n},i=()=>t.jsx(n,{testID:""});var s,m,u;i.parameters={...i.parameters,docs:{...(s=i.parameters)==null?void 0:s.docs,source:{originalSource:'() => ',...(u=(m=i.parameters)==null?void 0:m.docs)==null?void 0:u.source}}};const de=["Default"];export{i as Default,de as __namedExportsOrder,pe as default}; diff --git a/assets/Tag.stories-BR_mja2D.js b/assets/Tag.stories-BLgDQ_OS.js similarity index 94% rename from assets/Tag.stories-BR_mja2D.js rename to assets/Tag.stories-BLgDQ_OS.js index 9d203b1b..58e02bb7 100644 --- a/assets/Tag.stories-BR_mja2D.js +++ b/assets/Tag.stories-BLgDQ_OS.js @@ -1 +1 @@ -import{j as o}from"./jsx-runtime-Bxcv0yjW.js";import{P as m}from"./Paragraph-CKYtcIcp.js";import{u as c}from"./useThemable-CjWxbHxI.js";import{V as n}from"./index-BDsvWohO.js";import{s as l}from"./index-CEE--Juu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";const a=({label:r})=>{const e=c(d);return o.jsx(n,{style:e.tag,children:o.jsx(m,{children:r})})},d=({color:r,size:e})=>l.create({tag:{backgroundColor:r.tag.background,paddingHorizontal:e.spacing.sm,paddingVertical:e.spacing.xs}});try{a.displayName="Tag",a.__docgenInfo={description:"",displayName:"Tag",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}}}}}catch{}const D={component:a},t={};var s,p,i;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(i=(p=t.parameters)==null?void 0:p.docs)==null?void 0:i.source}}};const E=["Default"];export{t as Default,E as __namedExportsOrder,D as default}; +import{j as o}from"./jsx-runtime-Bxcv0yjW.js";import{P as m}from"./Paragraph-DkRs_aGj.js";import{u as c}from"./useThemable-CjWxbHxI.js";import{V as n}from"./index-BDsvWohO.js";import{s as l}from"./index-CEE--Juu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";const a=({label:r})=>{const e=c(d);return o.jsx(n,{style:e.tag,children:o.jsx(m,{children:r})})},d=({color:r,size:e})=>l.create({tag:{backgroundColor:r.tag.background,paddingHorizontal:e.spacing.sm,paddingVertical:e.spacing.xs}});try{a.displayName="Tag",a.__docgenInfo={description:"",displayName:"Tag",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}}}}}catch{}const D={component:a},t={};var s,p,i;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(i=(p=t.parameters)==null?void 0:p.docs)==null?void 0:i.source}}};const E=["Default"];export{t as Default,E as __namedExportsOrder,D as default}; diff --git a/assets/TextInput.stories-DmUdRIlA.js b/assets/TextInput.stories-CPzo6NW-.js similarity index 96% rename from assets/TextInput.stories-DmUdRIlA.js rename to assets/TextInput.stories-CPzo6NW-.js index aca90970..f9d07538 100644 --- a/assets/TextInput.stories-DmUdRIlA.js +++ b/assets/TextInput.stories-CPzo6NW-.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{I as B}from"./IconButton-Cyqcuey7.js";import{L as D}from"./Label-Bc-mTvQ-.js";import{C as F}from"./Column-DVJ0Grcf.js";import{I as N}from"./Icon-CO3hZ5HW.js";import{u as v}from"./useThemable-CjWxbHxI.js";import{V as I}from"./index-BDsvWohO.js";import{T as z}from"./index-Cnrjv3xk.js";import{s as M}from"./index-CEE--Juu.js";import{P as k}from"./index-DOpK3Ow6.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-HfRmqOUq.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./config-BZnShabN.js";import"./Badge-CZ5nSfIQ.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./Paragraph-CKYtcIcp.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./useTheme-CJIBCVMY.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";const f=m.forwardRef(({label:r,numberOfLines:a,onChangeText:e,onFocus:t,placeholder:p="",warning:n,value:o="",testID:l="",accessibilityLanguage:s="nl-NL",...b},q)=>{const[C,h]=m.useState(!1),[x,u]=m.useState(o),g=v($({hasFocus:C,numberOfLines:a,warning:n})),E=v(A);m.useEffect(()=>{u(o)},[o]);const L=()=>h(!1),O=y=>{u(y),e==null||e(y)},H=()=>{u(""),e==null||e("")},W=()=>{h(!0),t==null||t()};return i.jsxs(F,{gutter:"sm",children:[i.jsx(D,{isAccessible:!b.accessibilityLabel,text:r}),i.jsxs(I,{style:g.frame,children:[i.jsx(z,{...b,...E,accessibilityLanguage:s,numberOfLines:k.OS==="ios"?void 0:a,onBlur:L,onChangeText:O,onFocus:W,placeholder:p,ref:q,style:g.textInput,testID:l,textAlignVertical:"top",value:x}),x?i.jsx(I,{children:i.jsx(B,{accessibilityHint:"Maak dit tekstveld leeg",accessibilityLanguage:s,icon:i.jsx(N,{name:"close",size:"lg",testID:`${l}ClearIcon`}),onPress:H,testID:`${l}ClearButton`})}):null]})]})}),$=({hasFocus:r,numberOfLines:a,warning:e})=>({color:t,size:p,text:n})=>{const o=r||e?2:1,l=p.spacing.md-(o-1),s=p.spacing.sm-(o-1);return M.create({frame:{flexDirection:"row",paddingHorizontal:l,paddingVertical:s,backgroundColor:t.textInput.container.background,borderStyle:"solid",borderColor:e?t.control.warning.border:r?t.control.focus.border:t.control.default.border,borderWidth:o},textInput:{minHeight:k.OS==="ios"&&a?a*n.lineHeight.body+2*s:"auto",flex:1,padding:0,paddingTop:0,color:t.text.default,fontFamily:n.fontFamily.regular,fontSize:n.fontSize.body}})},A=({color:r})=>({placeholderTextColor:r.text.secondary});try{f.displayName="TextInput",f.__docgenInfo={description:"",displayName:"TextInput",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},numberOfLines:{defaultValue:null,description:`Sets the number of lines for a TextInput. +import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{r as m}from"./index-mfbfsM12.js";import{I as B}from"./IconButton-Cyqcuey7.js";import{L as D}from"./Label-BbSvQ4Xu.js";import{C as F}from"./Column-DVJ0Grcf.js";import{I as N}from"./Icon-DcC-yiY8.js";import{u as v}from"./useThemable-CjWxbHxI.js";import{V as I}from"./index-BDsvWohO.js";import{T as z}from"./index-Cnrjv3xk.js";import{s as M}from"./index-CEE--Juu.js";import{P as k}from"./index-DOpK3Ow6.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-HfRmqOUq.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./config-BZnShabN.js";import"./Badge-CZ5nSfIQ.js";import"./Row-BXpfxHoR.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./Paragraph-DkRs_aGj.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./useTheme-CJIBCVMY.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";const f=m.forwardRef(({label:r,numberOfLines:a,onChangeText:e,onFocus:t,placeholder:p="",warning:n,value:o="",testID:l="",accessibilityLanguage:s="nl-NL",...b},q)=>{const[C,h]=m.useState(!1),[x,u]=m.useState(o),g=v($({hasFocus:C,numberOfLines:a,warning:n})),E=v(A);m.useEffect(()=>{u(o)},[o]);const L=()=>h(!1),O=y=>{u(y),e==null||e(y)},H=()=>{u(""),e==null||e("")},W=()=>{h(!0),t==null||t()};return i.jsxs(F,{gutter:"sm",children:[i.jsx(D,{isAccessible:!b.accessibilityLabel,text:r}),i.jsxs(I,{style:g.frame,children:[i.jsx(z,{...b,...E,accessibilityLanguage:s,numberOfLines:k.OS==="ios"?void 0:a,onBlur:L,onChangeText:O,onFocus:W,placeholder:p,ref:q,style:g.textInput,testID:l,textAlignVertical:"top",value:x}),x?i.jsx(I,{children:i.jsx(B,{accessibilityHint:"Maak dit tekstveld leeg",accessibilityLanguage:s,icon:i.jsx(N,{name:"close",size:"lg",testID:`${l}ClearIcon`}),onPress:H,testID:`${l}ClearButton`})}):null]})]})}),$=({hasFocus:r,numberOfLines:a,warning:e})=>({color:t,size:p,text:n})=>{const o=r||e?2:1,l=p.spacing.md-(o-1),s=p.spacing.sm-(o-1);return M.create({frame:{flexDirection:"row",paddingHorizontal:l,paddingVertical:s,backgroundColor:t.textInput.container.background,borderStyle:"solid",borderColor:e?t.control.warning.border:r?t.control.focus.border:t.control.default.border,borderWidth:o},textInput:{minHeight:k.OS==="ios"&&a?a*n.lineHeight.body+2*s:"auto",flex:1,padding:0,paddingTop:0,color:t.text.default,fontFamily:n.fontFamily.regular,fontSize:n.fontSize.body}})},A=({color:r})=>({placeholderTextColor:r.text.secondary});try{f.displayName="TextInput",f.__docgenInfo={description:"",displayName:"TextInput",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},numberOfLines:{defaultValue:null,description:`Sets the number of lines for a TextInput. Use it with multiline set to true to be able to fill the lines.`,name:"numberOfLines",required:!1,type:{name:"number"}},onChangeText:{defaultValue:null,description:`Callback that is called when the text input's text changes. Changed text is passed as an argument to the callback handler.`,name:"onChangeText",required:!1,type:{name:"(((event: string) => void) & ((text: string) => void))"}},onFocus:{defaultValue:null,description:"Callback that is called when the text input is focused",name:"onFocus",required:!1,type:{name:"((() => void) & ((e: NativeSyntheticEvent) => void))"}},placeholder:{defaultValue:{value:""},description:"The string that will be rendered before text input has been entered",name:"placeholder",required:!1,type:{name:"string"}},warning:{defaultValue:null,description:"",name:"warning",required:!1,type:{name:"boolean"}}}}}catch{}const Le={component:f},c={args:{label:"Wat is de titel van je bericht?",placeholder:"Voer een titel in...",value:""}},d={args:{label:"Wat is de titel van je bericht?",multiline:!0,numberOfLines:5,placeholder:"Voer een titel in...",value:""}};var V,j,S;c.parameters={...c.parameters,docs:{...(V=c.parameters)==null?void 0:V.docs,source:{originalSource:`{ args: { diff --git a/assets/Timeline.stories-CzJklnRZ.js b/assets/Timeline.stories-CEX7T0lI.js similarity index 95% rename from assets/Timeline.stories-CzJklnRZ.js rename to assets/Timeline.stories-CEX7T0lI.js index 5caff1df..7fa5f4bb 100644 --- a/assets/Timeline.stories-CzJklnRZ.js +++ b/assets/Timeline.stories-CEX7T0lI.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-Bxcv0yjW.js";import{r as x}from"./index-mfbfsM12.js";import{A as C}from"./Accordion-pyVus0-M.js";import{s as E}from"./index-CEE--Juu.js";import{I as A}from"./Icon-CO3hZ5HW.js";import{H as D}from"./HtmlContent-DVMBJKEX.js";import{T as w}from"./Title-2Den3Qhs.js";import{u as z}from"./useDeviceContext-DGl4H2w7.js";import{u as R}from"./useTheme-CJIBCVMY.js";import{V as f}from"./index-BDsvWohO.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-HfRmqOUq.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Gutter-DFUJhG4q.js";import"./Row-BXpfxHoR.js";import"./Size-D6myJmG7.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./index-eRgc22Hn.js";import"./index-iQAZAIR7.js";import"./client-DDXjyz62.js";import"./index-kJeFfQx-.js";import"./index-XPwQYiUg.js";import"./index-S14X4tbk.js";import"./index-CsseZgnR.js";import"./index-Cnrjv3xk.js";import"./index-ZuFZ7TrF.js";import"./index-C3bJM-gU.js";import"./Phrase-DprhL3Se.js";import"./ListItemMarker-bpCY8oNQ.js";import"./config-BZnShabN.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./useOpenMailUrl-Cpc3v_r1.js";import"./useOpenPhoneUrl-BpjRyIpq.js";var h=function(){return h=Object.assign||function(t){for(var e,i=1,o=arguments.length;i0&&e>="0"&&e<="9"?"_"+e+i:""+e.toUpperCase()+i}function L(r,t){return t===void 0&&(t={}),$(r,h({delimiter:"",transform:P},t))}const q=(r,t,e,i,o,p)=>{const{color:m,size:l,z:c}=r,s={body:{insetLeft:l.spacing.md},indicator:{size:l.spacing.lg*t},line:{width:4*t}};return E.create({header:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},indicator:{position:"relative",width:s.indicator.size,aspectRatio:1,justifyContent:"center",alignItems:"center",top:l.spacing.md,backgroundColor:i?m.timeline.future:m.timeline.past,borderRadius:s.indicator.size/2},line:{position:"absolute",top:l.spacing.md+s.indicator.size,left:(s.indicator.size-s.line.width)/2,zIndex:c.timelineLine,width:s.line.width,height:p&&!o?0:"100%",backgroundColor:i||e?m.timeline.future:m.timeline.past}})},_=({isBeforeUpcoming:r,isLast:t,item:e,testID:i})=>{var d,u;const o=!e.collapsed,[p,m]=x.useState(o),l=R(),{fontScale:c}=z(),s=q(l,c,r,e.progress==="Aankomend",p,t);return n.jsxs(f,{children:[n.jsxs(f,{style:s.header,children:[n.jsx(f,{style:s.indicator,children:e.progress==="Afgelopen"&&n.jsx(A,{color:"inverse",name:"check-mark",size:"sm",testID:`${i}Icon`})}),n.jsxs(C,{grow:1,initiallyExpanded:!!o,isExpandable:!!e.body||!!((d=e.items)!=null&&d.length),onChangeExpanded:a=>m(a),testID:i,title:e.title,children:[!!e.body&&n.jsx(D,{content:e.body,testID:`${i}BodyHtmlContent`}),(u=e.items)==null?void 0:u.map(({title:a,body:y})=>n.jsxs(x.Fragment,{children:[!!a&&n.jsx(w,{level:"h5",text:a}),!!y&&n.jsx(D,{content:y,testID:`${i}ItemBody${L(a??y??"")}HtmlContent`})]},a))]},e.title)]}),n.jsx(f,{style:s.line})]})};try{_.displayName="TimelineItem",_.__docgenInfo={description:"",displayName:"TimelineItem",props:{isBeforeUpcoming:{defaultValue:null,description:"",name:"isBeforeUpcoming",required:!0,type:{name:"boolean"}},isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"ProjectTimelineItem"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const b=({items:r,testID:t})=>n.jsx(n.Fragment,{children:r.map((e,i)=>{var o;return n.jsx(_,{isBeforeUpcoming:((o=r[i+1])==null?void 0:o.progress)==="Aankomend",isLast:i===r.length-1,item:e,testID:`${t}${L(e.title)}TimelineItem`},e.title+i.toString())})});try{b.displayName="Timeline",b.__docgenInfo={description:"",displayName:"Timeline",props:{items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"ProjectTimelineItem[]"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const Ue={component:b},g={args:{items:[{collapsed:!1,body:"

Dolor sit amet 1

",date:"",items:[{title:"Lorem ipsum 1.1",body:"

Dolor sit amet 1.1

",date:""},{title:"Lorem ipsum 1.2",body:"

Dolor sit amet 1.2

",date:""}],progress:"Afgelopen",title:"Titel 1"},{collapsed:!0,body:"

Dolor sit amet 2

",date:"",items:[{title:"Lorem ipsum 2.1",body:"

Dolor sit amet 2.1

",date:""}],progress:"Huidig",title:"Titel 2"},{collapsed:!0,body:"

Dolor sit amet 3

",date:"",items:[{title:"Lorem ipsum 3.1",body:"

Dolor sit amet 3.1

",date:""},{title:"Lorem ipsum 3.2",body:"

Dolor sit amet 3.2

",date:""}],progress:"Aankomend",title:"Titel 3"}]}};var I,j,v;g.parameters={...g.parameters,docs:{...(I=g.parameters)==null?void 0:I.docs,source:{originalSource:`{ +import{j as n}from"./jsx-runtime-Bxcv0yjW.js";import{r as x}from"./index-mfbfsM12.js";import{A as C}from"./Accordion-BRQzS2PO.js";import{s as E}from"./index-CEE--Juu.js";import{I as A}from"./Icon-DcC-yiY8.js";import{H as D}from"./HtmlContent-BN7YmfBH.js";import{T as w}from"./Title-9ScEYPym.js";import{u as z}from"./useDeviceContext-DGl4H2w7.js";import{u as R}from"./useTheme-CJIBCVMY.js";import{V as f}from"./index-BDsvWohO.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Pressable-HfRmqOUq.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Gutter-DFUJhG4q.js";import"./Row-BXpfxHoR.js";import"./Size-D6myJmG7.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./index-eRgc22Hn.js";import"./index-iQAZAIR7.js";import"./client-DDXjyz62.js";import"./index-kJeFfQx-.js";import"./index-XPwQYiUg.js";import"./index-S14X4tbk.js";import"./index-CsseZgnR.js";import"./index-Cnrjv3xk.js";import"./index-ZuFZ7TrF.js";import"./index-C3bJM-gU.js";import"./Phrase-t0rOiClQ.js";import"./ListItemMarker-BvZewDFw.js";import"./config-BZnShabN.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./useOpenMailUrl-Cpc3v_r1.js";import"./useOpenPhoneUrl-BpjRyIpq.js";var h=function(){return h=Object.assign||function(t){for(var e,i=1,o=arguments.length;i0&&e>="0"&&e<="9"?"_"+e+i:""+e.toUpperCase()+i}function L(r,t){return t===void 0&&(t={}),$(r,h({delimiter:"",transform:P},t))}const q=(r,t,e,i,o,p)=>{const{color:m,size:l,z:c}=r,s={body:{insetLeft:l.spacing.md},indicator:{size:l.spacing.lg*t},line:{width:4*t}};return E.create({header:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},indicator:{position:"relative",width:s.indicator.size,aspectRatio:1,justifyContent:"center",alignItems:"center",top:l.spacing.md,backgroundColor:i?m.timeline.future:m.timeline.past,borderRadius:s.indicator.size/2},line:{position:"absolute",top:l.spacing.md+s.indicator.size,left:(s.indicator.size-s.line.width)/2,zIndex:c.timelineLine,width:s.line.width,height:p&&!o?0:"100%",backgroundColor:i||e?m.timeline.future:m.timeline.past}})},_=({isBeforeUpcoming:r,isLast:t,item:e,testID:i})=>{var d,u;const o=!e.collapsed,[p,m]=x.useState(o),l=R(),{fontScale:c}=z(),s=q(l,c,r,e.progress==="Aankomend",p,t);return n.jsxs(f,{children:[n.jsxs(f,{style:s.header,children:[n.jsx(f,{style:s.indicator,children:e.progress==="Afgelopen"&&n.jsx(A,{color:"inverse",name:"check-mark",size:"sm",testID:`${i}Icon`})}),n.jsxs(C,{grow:1,initiallyExpanded:!!o,isExpandable:!!e.body||!!((d=e.items)!=null&&d.length),onChangeExpanded:a=>m(a),testID:i,title:e.title,children:[!!e.body&&n.jsx(D,{content:e.body,testID:`${i}BodyHtmlContent`}),(u=e.items)==null?void 0:u.map(({title:a,body:y})=>n.jsxs(x.Fragment,{children:[!!a&&n.jsx(w,{level:"h5",text:a}),!!y&&n.jsx(D,{content:y,testID:`${i}ItemBody${L(a??y??"")}HtmlContent`})]},a))]},e.title)]}),n.jsx(f,{style:s.line})]})};try{_.displayName="TimelineItem",_.__docgenInfo={description:"",displayName:"TimelineItem",props:{isBeforeUpcoming:{defaultValue:null,description:"",name:"isBeforeUpcoming",required:!0,type:{name:"boolean"}},isLast:{defaultValue:null,description:"",name:"isLast",required:!0,type:{name:"boolean"}},item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"ProjectTimelineItem"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const b=({items:r,testID:t})=>n.jsx(n.Fragment,{children:r.map((e,i)=>{var o;return n.jsx(_,{isBeforeUpcoming:((o=r[i+1])==null?void 0:o.progress)==="Aankomend",isLast:i===r.length-1,item:e,testID:`${t}${L(e.title)}TimelineItem`},e.title+i.toString())})});try{b.displayName="Timeline",b.__docgenInfo={description:"",displayName:"Timeline",props:{items:{defaultValue:null,description:"",name:"items",required:!0,type:{name:"ProjectTimelineItem[]"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const Ue={component:b},g={args:{items:[{collapsed:!1,body:"

Dolor sit amet 1

",date:"",items:[{title:"Lorem ipsum 1.1",body:"

Dolor sit amet 1.1

",date:""},{title:"Lorem ipsum 1.2",body:"

Dolor sit amet 1.2

",date:""}],progress:"Afgelopen",title:"Titel 1"},{collapsed:!0,body:"

Dolor sit amet 2

",date:"",items:[{title:"Lorem ipsum 2.1",body:"

Dolor sit amet 2.1

",date:""}],progress:"Huidig",title:"Titel 2"},{collapsed:!0,body:"

Dolor sit amet 3

",date:"",items:[{title:"Lorem ipsum 3.1",body:"

Dolor sit amet 3.1

",date:""},{title:"Lorem ipsum 3.2",body:"

Dolor sit amet 3.2

",date:""}],progress:"Aankomend",title:"Titel 3"}]}};var I,j,v;g.parameters={...g.parameters,docs:{...(I=g.parameters)==null?void 0:I.docs,source:{originalSource:`{ args: { items: [{ collapsed: false, diff --git a/assets/Title-2Den3Qhs.js b/assets/Title-9ScEYPym.js similarity index 92% rename from assets/Title-2Den3Qhs.js rename to assets/Title-9ScEYPym.js index 893e0096..f08361fc 100644 --- a/assets/Title-2Den3Qhs.js +++ b/assets/Title-9ScEYPym.js @@ -1 +1 @@ -import{j as c}from"./jsx-runtime-Bxcv0yjW.js";import{r as n}from"./index-mfbfsM12.js";import{u as d}from"./useThemable-CjWxbHxI.js";import{T as m}from"./index-BypDj3rK.js";import{s as p}from"./index-CEE--Juu.js";const u=n.forwardRef(({color:e="default",level:t="h1",text:r,textAlign:l="left",underline:i=!1,...a},o)=>{const s=n.useMemo(()=>v({color:e,level:t,textAlign:l,underline:i}),[e,t,l,i]),f=d(s);return c.jsx(m,{accessibilityLanguage:"nl-NL",...a,accessibilityRole:"header",ref:o,style:f.title,children:r})}),v=({color:e,level:t,textAlign:r,underline:l})=>({color:i,text:a})=>p.create({title:{flexShrink:1,color:i.text[e],fontFamily:a.fontFamily.bold,fontSize:a.fontSize[t],lineHeight:a.lineHeight[t],textAlign:r,textDecorationLine:l?"underline":void 0}});try{u.displayName="Title",u.__docgenInfo={description:"",displayName:"Title",props:{color:{defaultValue:{value:"default"},description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"link"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"default"'},{value:'"inverse"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"warning"'}]}},level:{defaultValue:{value:"h1"},description:"",name:"level",required:!1,type:{name:"enum",value:[{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:{value:"false"},description:"",name:"underline",required:!1,type:{name:"boolean"}}}}}catch{}export{u as T}; +import{j as c}from"./jsx-runtime-Bxcv0yjW.js";import{r as n}from"./index-mfbfsM12.js";import{u as d}from"./useThemable-CjWxbHxI.js";import{T as m}from"./index-BypDj3rK.js";import{s as p}from"./index-CEE--Juu.js";const u=n.forwardRef(({color:e="default",level:t="h1",text:r,textAlign:l="left",underline:i=!1,...a},o)=>{const s=n.useMemo(()=>v({color:e,level:t,textAlign:l,underline:i}),[e,t,l,i]),f=d(s);return c.jsx(m,{accessibilityLanguage:"nl-NL",...a,accessibilityRole:"header",ref:o,style:f.title,children:r})}),v=({color:e,level:t,textAlign:r,underline:l})=>({color:i,text:a})=>p.create({title:{flexShrink:1,color:i.text[e],fontFamily:a.fontFamily.bold,fontSize:a.fontSize[t],lineHeight:a.lineHeight[t],textAlign:r,textDecorationLine:l?"underline":void 0}});try{u.displayName="Title",u.__docgenInfo={description:"",displayName:"Title",props:{color:{defaultValue:{value:"default"},description:"",name:"color",required:!1,type:{name:"enum",value:[{value:'"secondary"'},{value:'"tertiary"'},{value:'"link"'},{value:'"default"'},{value:'"inverse"'},{value:'"cityPass"'},{value:'"confirm"'},{value:'"warning"'}]}},level:{defaultValue:{value:"h1"},description:"",name:"level",required:!1,type:{name:"enum",value:[{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'},{value:'"h6"'}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},textAlign:{defaultValue:{value:"left"},description:"Defines the alignment of the text. Maps with the textAlign style prop options.",name:"textAlign",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"center"'},{value:'"left"'},{value:'"right"'},{value:'"justify"'}]}},underline:{defaultValue:{value:"false"},description:"",name:"underline",required:!1,type:{name:"boolean"}}}}}catch{}export{u as T}; diff --git a/assets/Title.stories-DPpgUOK6.js b/assets/Title.stories-Dglf4BGk.js similarity index 91% rename from assets/Title.stories-DPpgUOK6.js rename to assets/Title.stories-Dglf4BGk.js index 19483a9a..9026a260 100644 --- a/assets/Title.stories-DPpgUOK6.js +++ b/assets/Title.stories-Dglf4BGk.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{T as s}from"./Title-2Den3Qhs.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const T={component:s},r=a=>i.jsx(s,{...a});r.args={color:"default",level:"h1",text:"Jouw typograaf biedt mij zulke exquise schreven!"};var t,e,o;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:"args => ",...(o=(e=r.parameters)==null?void 0:e.docs)==null?void 0:o.source}}};const _=["Default"];export{r as Default,_ as __namedExportsOrder,T as default}; +import{j as i}from"./jsx-runtime-Bxcv0yjW.js";import{T as s}from"./Title-9ScEYPym.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./index-CEE--Juu.js";import"./base-color-CZpuL6yQ.js";import"./index-BypDj3rK.js";import"./TextAncestorContext-Cvz4PlE2.js";const T={component:s},r=a=>i.jsx(s,{...a});r.args={color:"default",level:"h1",text:"Jouw typograaf biedt mij zulke exquise schreven!"};var t,e,o;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:"args => <Title {...args} />",...(o=(e=r.parameters)==null?void 0:e.docs)==null?void 0:o.source}}};const _=["Default"];export{r as Default,_ as __namedExportsOrder,T as default}; diff --git a/assets/Tooltip-DYiVxnJv.js b/assets/Tooltip-Bm0QTu1O.js similarity index 99% rename from assets/Tooltip-DYiVxnJv.js rename to assets/Tooltip-Bm0QTu1O.js index feb859ad..ef441977 100644 --- a/assets/Tooltip-DYiVxnJv.js +++ b/assets/Tooltip-Bm0QTu1O.js @@ -1 +1 @@ -import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{r as i}from"./index-mfbfsM12.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import{u as D}from"./index-C3bJM-gU.js";import{P as L}from"./PressableBase-CPU35BDr.js";import{T as W,P as $}from"./Triangle-Amn4R_mH.js";import{C as k}from"./Center-CqG4tBOn.js";import{P as d,D as m}from"./types-BJ_48vsK.js";import{u as w}from"./useThemable-CjWxbHxI.js";import{V as I}from"./index-BDsvWohO.js";import{s as g}from"./index-CEE--Juu.js";import{S as A}from"./SingleSelectable-Bg8zzmoU.js";import{C as j}from"./Column-DVJ0Grcf.js";import{P as B}from"./Paragraph-CKYtcIcp.js";import{F as H}from"./Fader-BysHR2L8.js";import{R as M}from"./Row-BXpfxHoR.js";import{u as Y}from"./useAccessibilityFocus-Djl26ZxP.js";import{I as z}from"./Animated-C23eizOh.js";const G=i.createContext(void 0),J=i.createContext(void 0);function C(){const e=i.useContext(G),t=i.useContext(J);if(t===void 0&&e===void 0)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");return t??e}function K(){const e=C(),[t,a]=i.useState(e.isFocused),o=e.isFocused();return t!==o&&a(o),i.useEffect(()=>{const r=e.addListener("focus",()=>a(!0)),n=e.addListener("blur",()=>a(!1));return()=>{r(),n()}},[e]),i.useDebugValue(o),o}const O=e=>new Promise(t=>{e.measureInWindow((a,o,r,n)=>{t({x:a,height:n,width:r,y:o})})}),Ve=(e,t)=>{const{height:a,y:o}=e,{height:r,y:n}=t;return n>o&&n+r<o+a},Q=e=>{const t=K(),a=D(),[o,r]=i.useState(),n=i.useCallback(()=>{t&&O(e.current).then(({x:l,y:p,width:c,height:u})=>{l===0&&p===0&&c===0&&u===0?setTimeout(n,500):r({x:l,y:p,width:c,height:u})})},[t,e]);return i.useEffect(n,[t,n,a]),{layout:o,measureTarget:n}},U=e=>({[d.above]:m.down,[d.below]:m.up,[d.before]:m.right,[d.after]:m.left})[e],X=e=>e?e.x+e.width/2:0,Z=({children:e,direction:t,productTourTipTargetLayout:a})=>t===m.left||t===m.right||!a?s.jsx(k,{children:e}):s.jsx(s.Fragment,{children:e}),x=({placement:e,productTourTipTargetLayout:t})=>{const a=U(e),o=w(ee(X(t)));return s.jsx(Z,{direction:a,productTourTipTargetLayout:t,children:s.jsx(I,{style:o.pointer,children:s.jsx(W,{direction:a})})})},ee=e=>({size:t})=>g.create({pointer:{marginLeft:e?e-$.width/2-t.spacing.xl:void 0}});try{x.displayName="Pointer",x.__docgenInfo={description:"",displayName:"Pointer",props:{placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}}}}}catch{}const h=({testID:e,text:t})=>{const a=w(te),o=typeof t=="string"?[t]:t;return s.jsx(A,{accessibilityRole:"text",accessible:!1,style:a.tooltip,testID:`${e}Content`,children:s.jsx(j,{gutter:"sm",children:o.map((r,n)=>s.jsx(B,{color:"inverse",testID:`${e}Paragraph${n}`,variant:"small",children:r},r))})})},te=({color:e,size:t})=>g.create({tooltip:{padding:t.spacing.md,backgroundColor:e.tooltip.background}});try{h.displayName="TooltipContent",h.__docgenInfo={description:"",displayName:"TooltipContent",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string | string[]"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const _=i.forwardRef(({extraSpace:e,isPositioned:t,leftPosition:a,placement:o,productTourTipTargetLayout:r,fadeIn:n,fadeInDuration:l,startFadeIn:p,...c},u)=>{const{width:v}=D(),f=w(ne({extraSpace:e,isPositioned:t,leftPosition:a,placement:o,productTourTipTargetLayout:r,windowWidth:v}));return n?s.jsx(H,{...c,duration:l,ref:u,shouldAnimate:p,style:f.tooltipWrapper}):s.jsx(I,{...c,ref:u,style:f.tooltipWrapper})}),ne=({extraSpace:e,isPositioned:t,leftPosition:a,placement:o,productTourTipTargetLayout:r,windowWidth:n})=>({size:l,z:p})=>{const c=()=>{if(!r)return{position:"relative"};const u=r.height+(e?l.spacing[e]:0);return{left:-a,right:0,position:"absolute",...o===d.above?{bottom:u}:{top:u}}};return g.create({tooltipWrapper:{display:t?"flex":"none",width:r?n:void 0,paddingHorizontal:r?l.spacing.xl:void 0,...c(),zIndex:p.tooltip}})};try{_.displayName="TooltipWrapper",_.__docgenInfo={description:"",displayName:"TooltipWrapper",props:{extraSpace:{defaultValue:null,description:"Extra space to set between target and tooltip",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},fadeIn:{defaultValue:null,description:"Determines whether the tooltip fades in and out. Default is 300 ms.",name:"fadeIn",required:!1,type:{name:"boolean"}},fadeInDuration:{defaultValue:null,description:"Duration of the fade-in animation in milliseconds, only works when fade = true",name:"fadeInDuration",required:!1,type:{name:"number"}},isPositioned:{defaultValue:null,description:"",name:"isPositioned",required:!0,type:{name:"boolean"}},leftPosition:{defaultValue:null,description:"",name:"leftPosition",required:!0,type:{name:"number"}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}},startFadeIn:{defaultValue:null,description:"",name:"startFadeIn",required:!1,type:{name:"boolean"}}}}}catch{}const ae=()=>C(),oe=e=>{const t=ae();i.useEffect(()=>t.addListener("blur",e),[e,t])},q=i.forwardRef(({accessibilityLabel:e,accessibilityLanguage:t="nl-NL",extraSpace:a,fadeIn:o,fadeInDuration:r,placement:n,productTourTipTargetLayout:l,onPress:p,startFadeIn:c,testID:u,text:v},f)=>{const T=Y(),[F,N]=i.useState(0),[S,P]=i.useState(!1),R=re(!!l),V=i.useRef(null),{layout:b,measureTarget:E}=Q(V);i.useEffect(()=>{b&&z.runAfterInteractions(()=>{N(b.x),P(!0)})},[b]),oe(()=>P(!1));const y=s.jsx(x,{placement:n,productTourTipTargetLayout:l});return s.jsx(I,{collapsable:!1,onLayout:E,ref:V,style:R.container,children:s.jsx(_,{extraSpace:a,fadeIn:o,fadeInDuration:r,isPositioned:S,leftPosition:F,placement:n,productTourTipTargetLayout:l,ref:f,startFadeIn:c,children:s.jsx(L,{accessibilityLabel:e,accessibilityLanguage:t,accessibilityRole:"alert",onPress:p,ref:T,testID:u,children:s.jsxs(M,{children:[n===d.after&&y,s.jsxs(j,{grow:1,children:[n===d.below&&y,s.jsx(h,{testID:u,text:v}),n===d.above&&y]}),n===d.before&&y]})})})})}),re=e=>g.create({container:{position:e?"absolute":void 0}});try{q.displayName="Tooltip",q.__docgenInfo={description:"",displayName:"Tooltip",props:{onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string | string[]"}},extraSpace:{defaultValue:null,description:"Extra space to set between target and tooltip",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},fadeIn:{defaultValue:null,description:"Determines whether the tooltip fades in and out. Default is 300 ms.",name:"fadeIn",required:!1,type:{name:"boolean"}},fadeInDuration:{defaultValue:null,description:"Duration of the fade-in animation in milliseconds, only works when fade = true",name:"fadeInDuration",required:!1,type:{name:"number"}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}},startFadeIn:{defaultValue:null,description:"",name:"startFadeIn",required:!1,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{G as N,q as T,J as a,Q as b,Ve as c,oe as d,O as m,C as u}; +import{j as s}from"./jsx-runtime-Bxcv0yjW.js";import{r as i}from"./index-mfbfsM12.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import{u as D}from"./index-C3bJM-gU.js";import{P as L}from"./PressableBase-CPU35BDr.js";import{T as W,P as $}from"./Triangle-Amn4R_mH.js";import{C as k}from"./Center-CqG4tBOn.js";import{P as d,D as m}from"./types-BJ_48vsK.js";import{u as w}from"./useThemable-CjWxbHxI.js";import{V as I}from"./index-BDsvWohO.js";import{s as g}from"./index-CEE--Juu.js";import{S as A}from"./SingleSelectable-Bg8zzmoU.js";import{C as j}from"./Column-DVJ0Grcf.js";import{P as B}from"./Paragraph-DkRs_aGj.js";import{F as H}from"./Fader-BysHR2L8.js";import{R as M}from"./Row-BXpfxHoR.js";import{u as Y}from"./useAccessibilityFocus-Djl26ZxP.js";import{I as z}from"./Animated-C23eizOh.js";const G=i.createContext(void 0),J=i.createContext(void 0);function C(){const e=i.useContext(G),t=i.useContext(J);if(t===void 0&&e===void 0)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");return t??e}function K(){const e=C(),[t,a]=i.useState(e.isFocused),o=e.isFocused();return t!==o&&a(o),i.useEffect(()=>{const r=e.addListener("focus",()=>a(!0)),n=e.addListener("blur",()=>a(!1));return()=>{r(),n()}},[e]),i.useDebugValue(o),o}const O=e=>new Promise(t=>{e.measureInWindow((a,o,r,n)=>{t({x:a,height:n,width:r,y:o})})}),Ve=(e,t)=>{const{height:a,y:o}=e,{height:r,y:n}=t;return n>o&&n+r<o+a},Q=e=>{const t=K(),a=D(),[o,r]=i.useState(),n=i.useCallback(()=>{t&&O(e.current).then(({x:l,y:p,width:c,height:u})=>{l===0&&p===0&&c===0&&u===0?setTimeout(n,500):r({x:l,y:p,width:c,height:u})})},[t,e]);return i.useEffect(n,[t,n,a]),{layout:o,measureTarget:n}},U=e=>({[d.above]:m.down,[d.below]:m.up,[d.before]:m.right,[d.after]:m.left})[e],X=e=>e?e.x+e.width/2:0,Z=({children:e,direction:t,productTourTipTargetLayout:a})=>t===m.left||t===m.right||!a?s.jsx(k,{children:e}):s.jsx(s.Fragment,{children:e}),x=({placement:e,productTourTipTargetLayout:t})=>{const a=U(e),o=w(ee(X(t)));return s.jsx(Z,{direction:a,productTourTipTargetLayout:t,children:s.jsx(I,{style:o.pointer,children:s.jsx(W,{direction:a})})})},ee=e=>({size:t})=>g.create({pointer:{marginLeft:e?e-$.width/2-t.spacing.xl:void 0}});try{x.displayName="Pointer",x.__docgenInfo={description:"",displayName:"Pointer",props:{placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}}}}}catch{}const h=({testID:e,text:t})=>{const a=w(te),o=typeof t=="string"?[t]:t;return s.jsx(A,{accessibilityRole:"text",accessible:!1,style:a.tooltip,testID:`${e}Content`,children:s.jsx(j,{gutter:"sm",children:o.map((r,n)=>s.jsx(B,{color:"inverse",testID:`${e}Paragraph${n}`,variant:"small",children:r},r))})})},te=({color:e,size:t})=>g.create({tooltip:{padding:t.spacing.md,backgroundColor:e.tooltip.background}});try{h.displayName="TooltipContent",h.__docgenInfo={description:"",displayName:"TooltipContent",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string | string[]"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const _=i.forwardRef(({extraSpace:e,isPositioned:t,leftPosition:a,placement:o,productTourTipTargetLayout:r,fadeIn:n,fadeInDuration:l,startFadeIn:p,...c},u)=>{const{width:v}=D(),f=w(ne({extraSpace:e,isPositioned:t,leftPosition:a,placement:o,productTourTipTargetLayout:r,windowWidth:v}));return n?s.jsx(H,{...c,duration:l,ref:u,shouldAnimate:p,style:f.tooltipWrapper}):s.jsx(I,{...c,ref:u,style:f.tooltipWrapper})}),ne=({extraSpace:e,isPositioned:t,leftPosition:a,placement:o,productTourTipTargetLayout:r,windowWidth:n})=>({size:l,z:p})=>{const c=()=>{if(!r)return{position:"relative"};const u=r.height+(e?l.spacing[e]:0);return{left:-a,right:0,position:"absolute",...o===d.above?{bottom:u}:{top:u}}};return g.create({tooltipWrapper:{display:t?"flex":"none",width:r?n:void 0,paddingHorizontal:r?l.spacing.xl:void 0,...c(),zIndex:p.tooltip}})};try{_.displayName="TooltipWrapper",_.__docgenInfo={description:"",displayName:"TooltipWrapper",props:{extraSpace:{defaultValue:null,description:"Extra space to set between target and tooltip",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},fadeIn:{defaultValue:null,description:"Determines whether the tooltip fades in and out. Default is 300 ms.",name:"fadeIn",required:!1,type:{name:"boolean"}},fadeInDuration:{defaultValue:null,description:"Duration of the fade-in animation in milliseconds, only works when fade = true",name:"fadeInDuration",required:!1,type:{name:"number"}},isPositioned:{defaultValue:null,description:"",name:"isPositioned",required:!0,type:{name:"boolean"}},leftPosition:{defaultValue:null,description:"",name:"leftPosition",required:!0,type:{name:"number"}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}},startFadeIn:{defaultValue:null,description:"",name:"startFadeIn",required:!1,type:{name:"boolean"}}}}}catch{}const ae=()=>C(),oe=e=>{const t=ae();i.useEffect(()=>t.addListener("blur",e),[e,t])},q=i.forwardRef(({accessibilityLabel:e,accessibilityLanguage:t="nl-NL",extraSpace:a,fadeIn:o,fadeInDuration:r,placement:n,productTourTipTargetLayout:l,onPress:p,startFadeIn:c,testID:u,text:v},f)=>{const T=Y(),[F,N]=i.useState(0),[S,P]=i.useState(!1),R=re(!!l),V=i.useRef(null),{layout:b,measureTarget:E}=Q(V);i.useEffect(()=>{b&&z.runAfterInteractions(()=>{N(b.x),P(!0)})},[b]),oe(()=>P(!1));const y=s.jsx(x,{placement:n,productTourTipTargetLayout:l});return s.jsx(I,{collapsable:!1,onLayout:E,ref:V,style:R.container,children:s.jsx(_,{extraSpace:a,fadeIn:o,fadeInDuration:r,isPositioned:S,leftPosition:F,placement:n,productTourTipTargetLayout:l,ref:f,startFadeIn:c,children:s.jsx(L,{accessibilityLabel:e,accessibilityLanguage:t,accessibilityRole:"alert",onPress:p,ref:T,testID:u,children:s.jsxs(M,{children:[n===d.after&&y,s.jsxs(j,{grow:1,children:[n===d.below&&y,s.jsx(h,{testID:u,text:v}),n===d.above&&y]}),n===d.before&&y]})})})})}),re=e=>g.create({container:{position:e?"absolute":void 0}});try{q.displayName="Tooltip",q.__docgenInfo={description:"",displayName:"Tooltip",props:{onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"() => void"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string | string[]"}},extraSpace:{defaultValue:null,description:"Extra space to set between target and tooltip",name:"extraSpace",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},fadeIn:{defaultValue:null,description:"Determines whether the tooltip fades in and out. Default is 300 ms.",name:"fadeIn",required:!1,type:{name:"boolean"}},fadeInDuration:{defaultValue:null,description:"Duration of the fade-in animation in milliseconds, only works when fade = true",name:"fadeInDuration",required:!1,type:{name:"number"}},placement:{defaultValue:null,description:"",name:"placement",required:!0,type:{name:"enum",value:[{value:'"above"'},{value:'"after"'},{value:'"before"'},{value:'"below"'}]}},productTourTipTargetLayout:{defaultValue:null,description:"",name:"productTourTipTargetLayout",required:!1,type:{name:"LayoutRectangle"}},startFadeIn:{defaultValue:null,description:"",name:"startFadeIn",required:!1,type:{name:"boolean"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}export{G as N,q as T,J as a,Q as b,Ve as c,oe as d,O as m,C as u}; diff --git a/assets/Tooltip.stories-BJmLUGIr.js b/assets/Tooltip.stories-DKYi8qHC.js similarity index 94% rename from assets/Tooltip.stories-BJmLUGIr.js rename to assets/Tooltip.stories-DKYi8qHC.js index d89da258..831e9254 100644 --- a/assets/Tooltip.stories-BJmLUGIr.js +++ b/assets/Tooltip.stories-DKYi8qHC.js @@ -1,4 +1,4 @@ -import{T as s}from"./Tooltip-DYiVxnJv.js";import{P as a}from"./types-BJ_48vsK.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-C3bJM-gU.js";import"./PressableBase-CPU35BDr.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Triangle-Amn4R_mH.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Center-CqG4tBOn.js";import"./layoutStyles-DflBxpuh.js";import"./SingleSelectable-Bg8zzmoU.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Paragraph-CKYtcIcp.js";import"./index-BypDj3rK.js";import"./Fader-BysHR2L8.js";import"./index-S14X4tbk.js";import"./index-kJeFfQx-.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./Row-BXpfxHoR.js";import"./useAccessibilityFocus-Djl26ZxP.js";import"./index-iQAZAIR7.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./duration-A4BOymd5.js";const $={component:s},e={args:{placement:a.below,text:"We gebruiken het adres alleen in de app om u de juiste informatie te tonen. Uw gegevens worden niet gedeeld."}},r={args:{placement:a.below,text:["Tip!","Vul het formulier in en win een parkeervergunning."]}};var t,o,i;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{ +import{T as s}from"./Tooltip-Bm0QTu1O.js";import{P as a}from"./types-BJ_48vsK.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./development-DYCnWZjk.js";import"./index-C3bJM-gU.js";import"./PressableBase-CPU35BDr.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./index-BDsvWohO.js";import"./Triangle-Amn4R_mH.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";import"./Center-CqG4tBOn.js";import"./layoutStyles-DflBxpuh.js";import"./SingleSelectable-Bg8zzmoU.js";import"./Column-DVJ0Grcf.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./Paragraph-DkRs_aGj.js";import"./index-BypDj3rK.js";import"./Fader-BysHR2L8.js";import"./index-S14X4tbk.js";import"./index-kJeFfQx-.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./Row-BXpfxHoR.js";import"./useAccessibilityFocus-Djl26ZxP.js";import"./index-iQAZAIR7.js";import"./useIsScreenReaderEnabled-BGYkQQWr.js";import"./duration-A4BOymd5.js";const $={component:s},e={args:{placement:a.below,text:"We gebruiken het adres alleen in de app om u de juiste informatie te tonen. Uw gegevens worden niet gedeeld."}},r={args:{placement:a.below,text:["Tip!","Vul het formulier in en win een parkeervergunning."]}};var t,o,i;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{ args: { placement: Placement.below, text: 'We gebruiken het adres alleen in de app om u de juiste informatie te tonen. Uw gegevens worden niet gedeeld.' diff --git a/assets/TopTaskButton.stories-B6ZEQwOc.js b/assets/TopTaskButton.stories-CnV0R1ve.js similarity index 72% rename from assets/TopTaskButton.stories-B6ZEQwOc.js rename to assets/TopTaskButton.stories-CnV0R1ve.js index 2f64f6fd..cd9f5201 100644 --- a/assets/TopTaskButton.stories-B6ZEQwOc.js +++ b/assets/TopTaskButton.stories-CnV0R1ve.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{H as y}from"./HideFromAccessibility-DFWSEXqq.js";import{P as k}from"./Pressable-HfRmqOUq.js";import{C as x}from"./Column-DVJ0Grcf.js";import{R as o}from"./Row-BXpfxHoR.js";import{I as s}from"./Icon-CO3hZ5HW.js";import{P as b}from"./Paragraph-CKYtcIcp.js";import{T as w}from"./Title-2Den3Qhs.js";import{u as V}from"./useThemable-CjWxbHxI.js";import{a as T}from"./accessibleText-gmNPjmn1.js";import{V as q}from"./index-BDsvWohO.js";import{s as C}from"./index-CEE--Juu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";const r=({isError:a=!1,iconName:p,onPress:d,text:l,title:n,titleIconName:i,testID:t,accessibilityRole:g="button",...f})=>{const h=V(j);return e.jsx(k,{accessibilityLabel:T(n,typeof l=="string"?l:""),accessibilityLanguage:"nl-NL",accessibilityRole:g,onPress:d,testID:t,...f,insetHorizontal:"md",insetVertical:"sm",children:e.jsxs(o,{gutter:"md",children:[e.jsx(q,{style:h.height,children:e.jsx(y,{children:e.jsx(s,{color:"link",name:p,size:"xl",testID:`${t}Icon`})})}),e.jsxs(x,{align:"center",grow:1,shrink:1,children:[e.jsxs(o,{gutter:"sm",valign:"center",children:[e.jsx(w,{color:"link",level:"h5",testID:`${t}Title`,text:n}),!!i&&e.jsx(s,{color:"link",name:i,testID:`${t}TitleIcon`})]}),typeof l=="string"?e.jsx(b,{color:a?"warning":void 0,testID:`${t}Text`,variant:"small",children:l}):l]})]})})},j=({text:a})=>C.create({height:{justifyContent:"center",height:a.lineHeight.h5+a.lineHeight.small}});try{r.displayName="TopTaskButton",r.__docgenInfo={description:"",displayName:"TopTaskButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"alarm"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},isError:{defaultValue:{value:"false"},description:"",name:"isError",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"ReactNode"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},titleIconName:{defaultValue:null,description:"",name:"titleIconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"alarm"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial<Record<CustomDimensionKeys, string>>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"tertiary"'},{value:'"transparent"'}]}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const de={component:r,argTypes:{onPress:{action:"onPress"}}},u={args:{iconName:"email",text:"Reactie binnen 1 werkdag",title:"Contactformulier"}};var v,c,m;u.parameters={...u.parameters,docs:{...(v=u.parameters)==null?void 0:v.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-Bxcv0yjW.js";import{H as y}from"./HideFromAccessibility-DFWSEXqq.js";import{P as k}from"./Pressable-HfRmqOUq.js";import{C as x}from"./Column-DVJ0Grcf.js";import{R as o}from"./Row-BXpfxHoR.js";import{I as s}from"./Icon-DcC-yiY8.js";import{P as b}from"./Paragraph-DkRs_aGj.js";import{T as w}from"./Title-9ScEYPym.js";import{u as V}from"./useThemable-CjWxbHxI.js";import{a as T}from"./accessibleText-gmNPjmn1.js";import{V as q}from"./index-BDsvWohO.js";import{s as C}from"./index-CEE--Juu.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./PressableBase-CPU35BDr.js";import"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import"./index-8JwjhRSi.js";import"./useTrackException-BhQuYC5A.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./development-DYCnWZjk.js";import"./index-5TFaNx6b.js";import"./extends-CF3RwP-h.js";import"./Box-uk0d72u3.js";import"./layoutStyles-DflBxpuh.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./index-DcZXOGQR.js";import"./index-BypDj3rK.js";import"./types-BJ_48vsK.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-C3bJM-gU.js";import"./useTheme-CJIBCVMY.js";import"./index-BMk6Tmu2.js";import"./base-color-CZpuL6yQ.js";const r=({isError:a=!1,iconName:p,onPress:d,text:l,title:n,titleIconName:i,testID:t,accessibilityRole:g="button",...f})=>{const h=V(j);return e.jsx(k,{accessibilityLabel:T(n,typeof l=="string"?l:""),accessibilityLanguage:"nl-NL",accessibilityRole:g,onPress:d,testID:t,...f,insetHorizontal:"md",insetVertical:"sm",children:e.jsxs(o,{gutter:"md",children:[e.jsx(q,{style:h.height,children:e.jsx(y,{children:e.jsx(s,{color:"link",name:p,size:"xl",testID:`${t}Icon`})})}),e.jsxs(x,{align:"center",grow:1,shrink:1,children:[e.jsxs(o,{gutter:"sm",valign:"center",children:[e.jsx(w,{color:"link",level:"h5",testID:`${t}Title`,text:n}),!!i&&e.jsx(s,{color:"link",name:i,testID:`${t}TitleIcon`})]}),typeof l=="string"?e.jsx(b,{color:a?"warning":void 0,testID:`${t}Text`,variant:"small",children:l}):l]})]})})},j=({text:a})=>C.create({height:{justifyContent:"center",height:a.lineHeight.h5+a.lineHeight.small}});try{r.displayName="TopTaskButton",r.__docgenInfo={description:"",displayName:"TopTaskButton",props:{iconName:{defaultValue:null,description:"",name:"iconName",required:!0,type:{name:"enum",value:[{value:'"alarm"'},{value:'"alert"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"email"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"list"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"search"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},isError:{defaultValue:{value:"false"},description:"",name:"isError",required:!1,type:{name:"boolean"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"ReactNode"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},titleIconName:{defaultValue:null,description:"",name:"titleIconName",required:!1,type:{name:"enum",value:[{value:'"alarm"'},{value:'"alert"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"email"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"list"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"search"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},"logging-label":{defaultValue:null,description:"",name:"logging-label",required:!1,type:{name:"string"}},logAction:{defaultValue:null,description:"",name:"logAction",required:!1,type:{name:"enum",value:[{value:'"accessibilityAction"'},{value:'"accessibilityChange"'},{value:'"addressAdd"'},{value:'"addressChange"'},{value:'"blur"'},{value:'"buttonPress"'},{value:'"deviceInfoChange"'},{value:'"finishedReport"'},{value:'"locationOrAddressSelectionChange"'},{value:'"moduleChange"'},{value:'"pushNotificationDisplay"'},{value:'"pushNotificationTap"'},{value:'"radioChange"'},{value:'"startUp"'},{value:'"swipeOut"'},{value:'"toForeground"'},{value:'"toggle"'}]}},logCategory:{defaultValue:null,description:"",name:"logCategory",required:!1,type:{name:"enum",value:[{value:'"about"'},{value:'"address"'},{value:'"chat"'},{value:'"city-pass"'},{value:'"construction-work"'},{value:'"construction-work-editor"'},{value:'"contact"'},{value:'"home"'},{value:'"onboarding"'},{value:'"open-waste-container"'},{value:'"redirects"'},{value:'"report-problem"'},{value:'"user"'},{value:'"waste-guide"'},{value:'"general"'}]}},logDimensions:{defaultValue:null,description:"",name:"logDimensions",required:!1,type:{name:"Partial<Record<CustomDimensionKeys, string>>"}},logName:{defaultValue:null,description:"",name:"logName",required:!1,type:{name:"string"}},logValue:{defaultValue:null,description:"",name:"logValue",required:!1,type:{name:"number"}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"tertiary"'},{value:'"transparent"'}]}},inset:{defaultValue:null,description:"The amount of inner spacing.",name:"inset",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetHorizontal:{defaultValue:null,description:"The amount of inner spacing at the left and right.",name:"insetHorizontal",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}},insetVertical:{defaultValue:null,description:"The amount of inner spacing at the top and bottom.",name:"insetVertical",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'}]}}}}}catch{}const de={component:r,argTypes:{onPress:{action:"onPress"}}},u={args:{iconName:"email",text:"Reactie binnen 1 werkdag",title:"Contactformulier"}};var v,c,m;u.parameters={...u.parameters,docs:{...(v=u.parameters)==null?void 0:v.docs,source:{originalSource:`{ args: { iconName: 'email', text: 'Reactie binnen 1 werkdag', diff --git a/assets/Trait.stories-DPOIG-7f.js b/assets/Trait.stories-DfStrMlO.js similarity index 72% rename from assets/Trait.stories-DPOIG-7f.js rename to assets/Trait.stories-DfStrMlO.js index 4c7898b0..9563742b 100644 --- a/assets/Trait.stories-DPOIG-7f.js +++ b/assets/Trait.stories-DfStrMlO.js @@ -1,5 +1,5 @@ -import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{B as g}from"./Badge-CZ5nSfIQ.js";import{R as f}from"./Row-BXpfxHoR.js";import{I as y}from"./Icon-CO3hZ5HW.js";import{P as b}from"./Phrase-DprhL3Se.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./index-C3bJM-gU.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BDsvWohO.js";import"./index-BypDj3rK.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./extends-CF3RwP-h.js";import"./index-DcZXOGQR.js";import"./types-BJ_48vsK.js";import"./useTheme-CJIBCVMY.js";const l=({accessibilityLabel:r,accessibilityLanguage:v="nl-NL",children:d,iconName:i,label:h,testID:o})=>a.jsxs(f,{gutter:"sm",valign:"center",children:[i?a.jsx(y,{name:i,testID:`${o}Icon`}):d,a.jsx(b,{accessibilityLabel:r,accessibilityLanguage:v,testID:`${o}Label`,variant:"small",children:h})]});try{l.displayName="Trait",l.__docgenInfo={description:"",displayName:"Trait",props:{accessibilityLabel:{defaultValue:null,description:"",name:"accessibilityLabel",required:!1,type:{name:"string"}},accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},children:{defaultValue:null,description:`Allows a custom visualization for the trait. -Use a small component here. Not rendered if an icon name is provided.`,name:"children",required:!1,type:{name:"ReactNode"}},iconName:{defaultValue:null,description:"The name of the icon to visually support the trait label.",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"email"'},{value:'"search"'},{value:'"alert"'},{value:'"list"'},{value:'"alarm"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},label:{defaultValue:null,description:`The label identifying the trait. +import{j as a}from"./jsx-runtime-Bxcv0yjW.js";import{B as g}from"./Badge-CZ5nSfIQ.js";import{R as f}from"./Row-BXpfxHoR.js";import{I as y}from"./Icon-DcC-yiY8.js";import{P as b}from"./Phrase-t0rOiClQ.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./useDeviceContext-DGl4H2w7.js";import"./index-Bcpfmd17.js";import"./NativeEventEmitter-Cj1pQcwn.js";import"./index-DOpK3Ow6.js";import"./TextAncestorContext-Cvz4PlE2.js";import"./index-CEE--Juu.js";import"./index-C3bJM-gU.js";import"./useThemable-CjWxbHxI.js";import"./index-BMk6Tmu2.js";import"./index-8JwjhRSi.js";import"./base-color-CZpuL6yQ.js";import"./index-BDsvWohO.js";import"./index-BypDj3rK.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-DYSHDArR.js";import"./index-Dk74W0Oi.js";import"./Animated-C23eizOh.js";import"./extends-CF3RwP-h.js";import"./index-DcZXOGQR.js";import"./types-BJ_48vsK.js";import"./useTheme-CJIBCVMY.js";const l=({accessibilityLabel:r,accessibilityLanguage:v="nl-NL",children:d,iconName:i,label:h,testID:o})=>a.jsxs(f,{gutter:"sm",valign:"center",children:[i?a.jsx(y,{name:i,testID:`${o}Icon`}):d,a.jsx(b,{accessibilityLabel:r,accessibilityLanguage:v,testID:`${o}Label`,variant:"small",children:h})]});try{l.displayName="Trait",l.__docgenInfo={description:"",displayName:"Trait",props:{accessibilityLabel:{defaultValue:null,description:"",name:"accessibilityLabel",required:!1,type:{name:"string"}},accessibilityLanguage:{defaultValue:{value:"nl-NL"},description:"",name:"accessibilityLanguage",required:!1,type:{name:"string"}},children:{defaultValue:null,description:`Allows a custom visualization for the trait. +Use a small component here. Not rendered if an icon name is provided.`,name:"children",required:!1,type:{name:"ReactNode"}},iconName:{defaultValue:null,description:"The name of the icon to visually support the trait label.",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"alarm"'},{value:'"alert"'},{value:'"chat"'},{value:'"circle-check-mark"'},{value:'"announcement"'},{value:'"api"'},{value:'"car"'},{value:'"card"'},{value:'"chatting"'},{value:'"check-mark"'},{value:'"chevron-down"'},{value:'"chevron-left"'},{value:'"chevron-right"'},{value:'"chevron-up"'},{value:'"child"'},{value:'"circle"'},{value:'"city-office"'},{value:'"city-pass-pass"'},{value:'"city-pass"'},{value:'"clock"'},{value:'"close"'},{value:'"collaborate"'},{value:'"construction-work"'},{value:'"copy"'},{value:'"document-text"'},{value:'"edit"'},{value:'"email"'},{value:'"enlarge"'},{value:'"error"'},{value:'"external-link"'},{value:'"eye"'},{value:'"facade"'},{value:'"housing"'},{value:'"park-sign"'},{value:'"info"'},{value:'"list"'},{value:'"location"'},{value:'"login"'},{value:'"organic-waste-container"'},{value:'"person"'},{value:'"person-desk"'},{value:'"phone"'},{value:'"pointer"'},{value:'"question-mark-solid"'},{value:'"question-mark-circle"'},{value:'"search"'},{value:'"settings"'},{value:'"spinner"'},{value:'"trash-bin"'},{value:'"two-persons"'},{value:'"vote"'},{value:'"whatsapp"'},{value:'"wifi-disconnect"'}]}},label:{defaultValue:null,description:`The label identifying the trait. Should be one or a few words.`,name:"label",required:!0,type:{name:"string"}},testID:{defaultValue:null,description:"",name:"testID",required:!0,type:{name:"string"}}}}}catch{}const M={component:l},e=r=>a.jsx(l,{...r,iconName:"location"});e.args={label:"123 meter"};const t={args:{children:a.jsx(g,{testID:"Badge",value:7}),label:"berichten"}};var n,s,u;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:'args => <Trait {...args} iconName="location" />',...(u=(s=e.parameters)==null?void 0:s.docs)==null?void 0:u.source}}};var c,m,p;t.parameters={...t.parameters,docs:{...(c=t.parameters)==null?void 0:c.docs,source:{originalSource:`{ args: { children: <Badge testID="Badge" value={7} />, diff --git a/assets/entry-preview-D-t3dm-j.js b/assets/entry-preview-BLv4HfPv.js similarity index 99% rename from assets/entry-preview-D-t3dm-j.js rename to assets/entry-preview-BLv4HfPv.js index e9c4f085..87936de3 100644 --- a/assets/entry-preview-D-t3dm-j.js +++ b/assets/entry-preview-BLv4HfPv.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-18-CiRR_loB.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./client-DDXjyz62.js","./index-BMk6Tmu2.js"])))=>i.map(i=>d[i]); -import{_ as Ut}from"./iframe-kIyOmV27.js";import{_ as kt}from"./chunk-H6MOWX77-DTQOW814.js";import{r as k,R as B}from"./index-mfbfsM12.js";import{g as Ft}from"./_commonjsHelpers-BosuxZz1.js";import{r as Gt}from"./index-BMk6Tmu2.js";import"../sb-preview/runtime.js";var Ne={exports:{}};const jt="2.0.0",ut=256,Mt=Number.MAX_SAFE_INTEGER||9007199254740991,Xt=16,Vt=ut-6,xt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ie={MAX_LENGTH:ut,MAX_SAFE_COMPONENT_LENGTH:Xt,MAX_SAFE_BUILD_LENGTH:Vt,MAX_SAFE_INTEGER:Mt,RELEASE_TYPES:xt,SEMVER_SPEC_VERSION:jt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ee={NODE_ENV:'"production"'};const Yt=typeof process=="object"&&Ee&&Ee.NODE_DEBUG&&/\bsemver\b/i.test(Ee.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var oe=Yt;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=ie,a=oe;t=e.exports={};const l=t.re=[],u=t.safeRe=[],i=t.src=[],s=t.t={};let f=0;const p="[a-zA-Z0-9-]",L=[["\\s",1],["\\d",o],[p,n]],d=F=>{for(const[D,G]of L)F=F.split(`${D}*`).join(`${D}{0,${G}}`).split(`${D}+`).join(`${D}{1,${G}}`);return F},R=(F,D,G)=>{const pe=d(D),T=f++;a(F,T,D),s[F]=T,i[T]=D,l[T]=new RegExp(D,G?"g":void 0),u[T]=new RegExp(pe,G?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),R("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${p}+`),R("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),R("FULL",`^${i[s.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),R("LOOSE",`^${i[s.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),R("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),R("COERCE",`${i[s.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",i[s.COERCEPLAIN]+`(?:${i[s.PRERELEASE]})?(?:${i[s.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",i[s.COERCE],!0),R("COERCERTLFULL",i[s.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",R("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",R("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ne,Ne.exports);var q=Ne.exports;const Wt=Object.freeze({loose:!0}),Ht=Object.freeze({}),Bt=e=>e?typeof e!="object"?Wt:e:Ht;var Oe=Bt;const Ge=/^[0-9]+$/,ft=(e,t)=>{const r=Ge.test(e),n=Ge.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Kt=(e,t)=>ft(t,e);var ht={compareIdentifiers:ft,rcompareIdentifiers:Kt};const J=oe,{MAX_LENGTH:je,MAX_SAFE_INTEGER:Q}=ie,{safeRe:Me,t:Xe}=q,qt=Oe,{compareIdentifiers:M}=ht;let zt=class U{constructor(t,r){if(r=qt(r),t instanceof U){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>je)throw new TypeError(`version is longer than ${je} characters`);J("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Me[Xe.LOOSE]:Me[Xe.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Q||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Q||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Q||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const a=+o;if(a>=0&&a<Q)return a}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(J("SemVer.compare",this.version,this.options,t),!(t instanceof U)){if(typeof t=="string"&&t===this.version)return 0;t=new U(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof U||(t=new U(t,this.options)),M(this.major,t.major)||M(this.minor,t.minor)||M(this.patch,t.patch)}comparePre(t){if(t instanceof U||(t=new U(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],o=t.prerelease[r];if(J("prerelease compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return M(n,o)}while(++r)}compareBuild(t){t instanceof U||(t=new U(t,this.options));let r=0;do{const n=this.build[r],o=t.build[r];if(J("build compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return M(n,o)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const o=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let a=[r,o];n===!1&&(a=[r]),M(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var y=zt;const Ve=y,Zt=(e,t,r=!1)=>{if(e instanceof Ve)return e;try{return new Ve(e,t)}catch(n){if(!r)return null;throw n}};var X=Zt;const Jt=X,Qt=(e,t)=>{const r=Jt(e,t);return r?r.version:null};var er=Qt;const tr=X,rr=(e,t)=>{const r=tr(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var nr=rr;const xe=y,sr=(e,t,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new xe(e instanceof xe?e.version:e,r).inc(t,n,o).version}catch{return null}};var ir=sr;const Ye=X,or=(e,t)=>{const r=Ye(e,null,!0),n=Ye(t,null,!0),o=r.compare(n);if(o===0)return null;const a=o>0,l=a?r:n,u=a?n:r,i=!!l.prerelease.length;if(!!u.prerelease.length&&!i)return!u.patch&&!u.minor?"major":l.patch?"patch":l.minor?"minor":"major";const f=i?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};var ar=or;const lr=y,cr=(e,t)=>new lr(e,t).major;var ur=cr;const fr=y,hr=(e,t)=>new fr(e,t).minor;var pr=hr;const Er=y,mr=(e,t)=>new Er(e,t).patch;var dr=mr;const $r=X,Rr=(e,t)=>{const r=$r(e,t);return r&&r.prerelease.length?r.prerelease:null};var vr=Rr;const We=y,Ir=(e,t,r)=>new We(e,r).compare(new We(t,r));var P=Ir;const gr=P,Lr=(e,t,r)=>gr(t,e,r);var wr=Lr;const Nr=P,Tr=(e,t)=>Nr(e,t,!0);var Or=Tr;const He=y,Sr=(e,t,r)=>{const n=new He(e,r),o=new He(t,r);return n.compare(o)||n.compareBuild(o)};var Se=Sr;const yr=Se,Ar=(e,t)=>e.sort((r,n)=>yr(r,n,t));var Cr=Ar;const _r=Se,Dr=(e,t)=>e.sort((r,n)=>_r(n,r,t));var Pr=Dr;const br=P,Ur=(e,t,r)=>br(e,t,r)>0;var ae=Ur;const kr=P,Fr=(e,t,r)=>kr(e,t,r)<0;var ye=Fr;const Gr=P,jr=(e,t,r)=>Gr(e,t,r)===0;var pt=jr;const Mr=P,Xr=(e,t,r)=>Mr(e,t,r)!==0;var Et=Xr;const Vr=P,xr=(e,t,r)=>Vr(e,t,r)>=0;var Ae=xr;const Yr=P,Wr=(e,t,r)=>Yr(e,t,r)<=0;var Ce=Wr;const Hr=pt,Br=Et,Kr=ae,qr=Ae,zr=ye,Zr=Ce,Jr=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Hr(e,r,n);case"!=":return Br(e,r,n);case">":return Kr(e,r,n);case">=":return qr(e,r,n);case"<":return zr(e,r,n);case"<=":return Zr(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var mt=Jr;const Qr=y,en=X,{safeRe:ee,t:te}=q,tn=(e,t)=>{if(e instanceof Qr)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?ee[te.COERCEFULL]:ee[te.COERCE]);else{const i=t.includePrerelease?ee[te.COERCERTLFULL]:ee[te.COERCERTL];let s;for(;(s=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||s.index+s[0].length!==r.index+r[0].length)&&(r=s),i.lastIndex=s.index+s[1].length+s[2].length;i.lastIndex=-1}if(r===null)return null;const n=r[2],o=r[3]||"0",a=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return en(`${n}.${o}.${a}${l}${u}`,t)};var rn=tn;class nn{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(t,r)}return this}}var sn=nn,me,Be;function b(){if(Be)return me;Be=1;const e=/\s+/g;class t{constructor(c,$){if($=o($),c instanceof t)return c.loose===!!$.loose&&c.includePrerelease===!!$.includePrerelease?c:new t(c.raw,$);if(c instanceof a)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=c.trim().replace(e," "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(v=>!F(v[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const v of this.set)if(v.length===1&&D(v[0])){this.set=[v];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c<this.set.length;c++){c>0&&(this.formatted+="||");const $=this.set[c];for(let E=0;E<$.length;E++)E>0&&(this.formatted+=" "),this.formatted+=$[E].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){const E=((this.options.includePrerelease&&d)|(this.options.loose&&R))+":"+c,v=n.get(E);if(v)return v;const m=this.options.loose,I=m?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];c=c.replace(I,Pt(this.options.includePrerelease)),l("hyphen replace",c),c=c.replace(i[s.COMPARATORTRIM],f),l("comparator trim",c),c=c.replace(i[s.TILDETRIM],p),l("tilde trim",c),c=c.replace(i[s.CARETTRIM],L),l("caret trim",c);let w=c.split(" ").map(O=>pe(O,this.options)).join(" ").split(/\s+/).map(O=>Dt(O,this.options));m&&(w=w.filter(O=>(l("loose invalid filter",O,this.options),!!O.match(i[s.COMPARATORLOOSE])))),l("range list",w);const g=new Map,N=w.map(O=>new a(O,this.options));for(const O of N){if(F(O))return[O];g.set(O.value,O)}g.size>1&&g.has("")&&g.delete("");const C=[...g.values()];return n.set(E,C),C}intersects(c,$){if(!(c instanceof t))throw new TypeError("a Range is required");return this.set.some(E=>G(E,$)&&c.set.some(v=>G(v,$)&&E.every(m=>v.every(I=>m.intersects(I,$)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new u(c,this.options)}catch{return!1}for(let $=0;$<this.set.length;$++)if(bt(this.set[$],c,this.options))return!0;return!1}}me=t;const r=sn,n=new r,o=Oe,a=le(),l=oe,u=y,{safeRe:i,t:s,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:L}=q,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:R}=ie,F=h=>h.value==="<0.0.0-0",D=h=>h.value==="",G=(h,c)=>{let $=!0;const E=h.slice();let v=E.pop();for(;$&&E.length;)$=E.every(m=>v.intersects(m,c)),v=E.pop();return $},pe=(h,c)=>(l("comp",h,c),h=St(h,c),l("caret",h),h=Tt(h,c),l("tildes",h),h=At(h,c),l("xrange",h),h=_t(h,c),l("stars",h),h),T=h=>!h||h.toLowerCase()==="x"||h==="*",Tt=(h,c)=>h.trim().split(/\s+/).map($=>Ot($,c)).join(" "),Ot=(h,c)=>{const $=c.loose?i[s.TILDELOOSE]:i[s.TILDE];return h.replace($,(E,v,m,I,w)=>{l("tilde",h,E,v,m,I,w);let g;return T(v)?g="":T(m)?g=`>=${v}.0.0 <${+v+1}.0.0-0`:T(I)?g=`>=${v}.${m}.0 <${v}.${+m+1}.0-0`:w?(l("replaceTilde pr",w),g=`>=${v}.${m}.${I}-${w} <${v}.${+m+1}.0-0`):g=`>=${v}.${m}.${I} <${v}.${+m+1}.0-0`,l("tilde return",g),g})},St=(h,c)=>h.trim().split(/\s+/).map($=>yt($,c)).join(" "),yt=(h,c)=>{l("caret",h,c);const $=c.loose?i[s.CARETLOOSE]:i[s.CARET],E=c.includePrerelease?"-0":"";return h.replace($,(v,m,I,w,g)=>{l("caret",h,v,m,I,w,g);let N;return T(m)?N="":T(I)?N=`>=${m}.0.0${E} <${+m+1}.0.0-0`:T(w)?m==="0"?N=`>=${m}.${I}.0${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.0${E} <${+m+1}.0.0-0`:g?(l("replaceCaret pr",g),m==="0"?I==="0"?N=`>=${m}.${I}.${w}-${g} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}-${g} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w}-${g} <${+m+1}.0.0-0`):(l("no pr"),m==="0"?I==="0"?N=`>=${m}.${I}.${w}${E} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w} <${+m+1}.0.0-0`),l("caret return",N),N})},At=(h,c)=>(l("replaceXRanges",h,c),h.split(/\s+/).map($=>Ct($,c)).join(" ")),Ct=(h,c)=>{h=h.trim();const $=c.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return h.replace($,(E,v,m,I,w,g)=>{l("xRange",h,E,v,m,I,w,g);const N=T(m),C=N||T(I),O=C||T(w),Y=O;return v==="="&&Y&&(v=""),g=c.includePrerelease?"-0":"",N?v===">"||v==="<"?E="<0.0.0-0":E="*":v&&Y?(C&&(I=0),w=0,v===">"?(v=">=",C?(m=+m+1,I=0,w=0):(I=+I+1,w=0)):v==="<="&&(v="<",C?m=+m+1:I=+I+1),v==="<"&&(g="-0"),E=`${v+m}.${I}.${w}${g}`):C?E=`>=${m}.0.0${g} <${+m+1}.0.0-0`:O&&(E=`>=${m}.${I}.0${g} <${m}.${+I+1}.0-0`),l("xRange return",E),E})},_t=(h,c)=>(l("replaceStars",h,c),h.trim().replace(i[s.STAR],"")),Dt=(h,c)=>(l("replaceGTE0",h,c),h.trim().replace(i[c.includePrerelease?s.GTE0PRE:s.GTE0],"")),Pt=h=>(c,$,E,v,m,I,w,g,N,C,O,Y)=>(T(E)?$="":T(v)?$=`>=${E}.0.0${h?"-0":""}`:T(m)?$=`>=${E}.${v}.0${h?"-0":""}`:I?$=`>=${$}`:$=`>=${$}${h?"-0":""}`,T(N)?g="":T(C)?g=`<${+N+1}.0.0-0`:T(O)?g=`<${N}.${+C+1}.0-0`:Y?g=`<=${N}.${C}.${O}-${Y}`:h?g=`<${N}.${C}.${+O+1}-0`:g=`<=${g}`,`${$} ${g}`.trim()),bt=(h,c,$)=>{for(let E=0;E<h.length;E++)if(!h[E].test(c))return!1;if(c.prerelease.length&&!$.includePrerelease){for(let E=0;E<h.length;E++)if(l(h[E].semver),h[E].semver!==a.ANY&&h[E].semver.prerelease.length>0){const v=h[E].semver;if(v.major===c.major&&v.minor===c.minor&&v.patch===c.patch)return!0}return!1}return!0};return me}var de,Ke;function le(){if(Ke)return de;Ke=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,p){if(p=r(p),f instanceof t){if(f.loose===!!p.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),l("comparator",f,p),this.options=p,this.loose=!!p.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(f){const p=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],L=f.match(p);if(!L)throw new TypeError(`Invalid comparator: ${f}`);this.operator=L[1]!==void 0?L[1]:"",this.operator==="="&&(this.operator=""),L[2]?this.semver=new u(L[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(l("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new u(f,this.options)}catch{return!1}return a(f,this.operator,this.semver,this.options)}intersects(f,p){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new i(f.value,p).test(this.value):f.operator===""?f.value===""?!0:new i(this.value,p).test(f.semver):(p=r(p),p.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||a(this.semver,"<",f.semver,p)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||a(this.semver,">",f.semver,p)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}de=t;const r=Oe,{safeRe:n,t:o}=q,a=mt,l=oe,u=y,i=b();return de}const on=b(),an=(e,t,r)=>{try{t=new on(t,r)}catch{return!1}return t.test(e)};var ce=an;const ln=b(),cn=(e,t)=>new ln(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var un=cn;const fn=y,hn=b(),pn=(e,t,r)=>{let n=null,o=null,a=null;try{a=new hn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===-1)&&(n=l,o=new fn(n,r))}),n};var En=pn;const mn=y,dn=b(),$n=(e,t,r)=>{let n=null,o=null,a=null;try{a=new dn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===1)&&(n=l,o=new mn(n,r))}),n};var Rn=$n;const $e=y,vn=b(),qe=ae,In=(e,t)=>{e=new vn(e,t);let r=new $e("0.0.0");if(e.test(r)||(r=new $e("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const o=e.set[n];let a=null;o.forEach(l=>{const u=new $e(l.semver.version);switch(l.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!a||qe(u,a))&&(a=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),a&&(!r||qe(r,a))&&(r=a)}return r&&e.test(r)?r:null};var gn=In;const Ln=b(),wn=(e,t)=>{try{return new Ln(e,t).range||"*"}catch{return null}};var Nn=wn;const Tn=y,dt=le(),{ANY:On}=dt,Sn=b(),yn=ce,ze=ae,Ze=ye,An=Ce,Cn=Ae,_n=(e,t,r,n)=>{e=new Tn(e,n),t=new Sn(t,n);let o,a,l,u,i;switch(r){case">":o=ze,a=An,l=Ze,u=">",i=">=";break;case"<":o=Ze,a=Cn,l=ze,u="<",i="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yn(e,t,n))return!1;for(let s=0;s<t.set.length;++s){const f=t.set[s];let p=null,L=null;if(f.forEach(d=>{d.semver===On&&(d=new dt(">=0.0.0")),p=p||d,L=L||d,o(d.semver,p.semver,n)?p=d:l(d.semver,L.semver,n)&&(L=d)}),p.operator===u||p.operator===i||(!L.operator||L.operator===u)&&a(e,L.semver))return!1;if(L.operator===i&&l(e,L.semver))return!1}return!0};var _e=_n;const Dn=_e,Pn=(e,t,r)=>Dn(e,t,">",r);var bn=Pn;const Un=_e,kn=(e,t,r)=>Un(e,t,"<",r);var Fn=kn;const Je=b(),Gn=(e,t,r)=>(e=new Je(e,r),t=new Je(t,r),e.intersects(t,r));var jn=Gn;const Mn=ce,Xn=P;var Vn=(e,t,r)=>{const n=[];let o=null,a=null;const l=e.sort((f,p)=>Xn(f,p,r));for(const f of l)Mn(f,t,r)?(a=f,o||(o=f)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);const u=[];for(const[f,p]of n)f===p?u.push(f):!p&&f===l[0]?u.push("*"):p?f===l[0]?u.push(`<=${p}`):u.push(`${f} - ${p}`):u.push(`>=${f}`);const i=u.join(" || "),s=typeof t.raw=="string"?t.raw:String(t);return i.length<s.length?i:t};const Qe=b(),De=le(),{ANY:Re}=De,W=ce,Pe=P,xn=(e,t,r={})=>{if(e===t)return!0;e=new Qe(e,r),t=new Qe(t,r);let n=!1;e:for(const o of e.set){for(const a of t.set){const l=Wn(o,a,r);if(n=n||l!==null,l)continue e}if(n)return!1}return!0},Yn=[new De(">=0.0.0-0")],et=[new De(">=0.0.0")],Wn=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Re){if(t.length===1&&t[0].semver===Re)return!0;r.includePrerelease?e=Yn:e=et}if(t.length===1&&t[0].semver===Re){if(r.includePrerelease)return!0;t=et}const n=new Set;let o,a;for(const d of e)d.operator===">"||d.operator===">="?o=tt(o,d,r):d.operator==="<"||d.operator==="<="?a=rt(a,d,r):n.add(d.semver);if(n.size>1)return null;let l;if(o&&a){if(l=Pe(o.semver,a.semver,r),l>0)return null;if(l===0&&(o.operator!==">="||a.operator!=="<="))return null}for(const d of n){if(o&&!W(d,String(o),r)||a&&!W(d,String(a),r))return null;for(const R of t)if(!W(d,String(R),r))return!1;return!0}let u,i,s,f,p=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,L=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const d of t){if(f=f||d.operator===">"||d.operator===">=",s=s||d.operator==="<"||d.operator==="<=",o){if(L&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===L.major&&d.semver.minor===L.minor&&d.semver.patch===L.patch&&(L=!1),d.operator===">"||d.operator===">="){if(u=tt(o,d,r),u===d&&u!==o)return!1}else if(o.operator===">="&&!W(o.semver,String(d),r))return!1}if(a){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator==="<"||d.operator==="<="){if(i=rt(a,d,r),i===d&&i!==a)return!1}else if(a.operator==="<="&&!W(a.semver,String(d),r))return!1}if(!d.operator&&(a||o)&&l!==0)return!1}return!(o&&s&&!a&&l!==0||a&&f&&!o&&l!==0||L||p)},tt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},rt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Hn=xn;const ve=q,nt=ie,Bn=y,st=ht,Kn=X,qn=er,zn=nr,Zn=ir,Jn=ar,Qn=ur,es=pr,ts=dr,rs=vr,ns=P,ss=wr,is=Or,os=Se,as=Cr,ls=Pr,cs=ae,us=ye,fs=pt,hs=Et,ps=Ae,Es=Ce,ms=mt,ds=rn,$s=le(),Rs=b(),vs=ce,Is=un,gs=En,Ls=Rn,ws=gn,Ns=Nn,Ts=_e,Os=bn,Ss=Fn,ys=jn,As=Vn,Cs=Hn;var _s={parse:Kn,valid:qn,clean:zn,inc:Zn,diff:Jn,major:Qn,minor:es,patch:ts,prerelease:rs,compare:ns,rcompare:ss,compareLoose:is,compareBuild:os,sort:as,rsort:ls,gt:cs,lt:us,eq:fs,neq:hs,gte:ps,lte:Es,cmp:ms,coerce:ds,Comparator:$s,Range:Rs,satisfies:vs,toComparators:Is,maxSatisfying:gs,minSatisfying:Ls,minVersion:ws,validRange:Ns,outside:Ts,gtr:Os,ltr:Ss,intersects:ys,simplifyRange:As,subset:Cs,SemVer:Bn,re:ve.re,src:ve.src,tokens:ve.t,SEMVER_SPEC_VERSION:nt.SEMVER_SPEC_VERSION,RELEASE_TYPES:nt.RELEASE_TYPES,compareIdentifiers:st.compareIdentifiers,rcompareIdentifiers:st.rcompareIdentifiers};const it=Ft(_s);var S={};/** +import{_ as Ut}from"./iframe-DRbcjd5I.js";import{_ as kt}from"./chunk-H6MOWX77-DTQOW814.js";import{r as k,R as B}from"./index-mfbfsM12.js";import{g as Ft}from"./_commonjsHelpers-BosuxZz1.js";import{r as Gt}from"./index-BMk6Tmu2.js";import"../sb-preview/runtime.js";var Ne={exports:{}};const jt="2.0.0",ut=256,Mt=Number.MAX_SAFE_INTEGER||9007199254740991,Xt=16,Vt=ut-6,xt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ie={MAX_LENGTH:ut,MAX_SAFE_COMPONENT_LENGTH:Xt,MAX_SAFE_BUILD_LENGTH:Vt,MAX_SAFE_INTEGER:Mt,RELEASE_TYPES:xt,SEMVER_SPEC_VERSION:jt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ee={NODE_ENV:'"production"'};const Yt=typeof process=="object"&&Ee&&Ee.NODE_DEBUG&&/\bsemver\b/i.test(Ee.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var oe=Yt;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=ie,a=oe;t=e.exports={};const l=t.re=[],u=t.safeRe=[],i=t.src=[],s=t.t={};let f=0;const p="[a-zA-Z0-9-]",L=[["\\s",1],["\\d",o],[p,n]],d=F=>{for(const[D,G]of L)F=F.split(`${D}*`).join(`${D}{0,${G}}`).split(`${D}+`).join(`${D}{1,${G}}`);return F},R=(F,D,G)=>{const pe=d(D),T=f++;a(F,T,D),s[F]=T,i[T]=D,l[T]=new RegExp(D,G?"g":void 0),u[T]=new RegExp(pe,G?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),R("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),R("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${p}+`),R("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),R("FULL",`^${i[s.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),R("LOOSE",`^${i[s.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),R("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),R("COERCE",`${i[s.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",i[s.COERCEPLAIN]+`(?:${i[s.PRERELEASE]})?(?:${i[s.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",i[s.COERCE],!0),R("COERCERTLFULL",i[s.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",R("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",R("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ne,Ne.exports);var q=Ne.exports;const Wt=Object.freeze({loose:!0}),Ht=Object.freeze({}),Bt=e=>e?typeof e!="object"?Wt:e:Ht;var Oe=Bt;const Ge=/^[0-9]+$/,ft=(e,t)=>{const r=Ge.test(e),n=Ge.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},Kt=(e,t)=>ft(t,e);var ht={compareIdentifiers:ft,rcompareIdentifiers:Kt};const J=oe,{MAX_LENGTH:je,MAX_SAFE_INTEGER:Q}=ie,{safeRe:Me,t:Xe}=q,qt=Oe,{compareIdentifiers:M}=ht;let zt=class U{constructor(t,r){if(r=qt(r),t instanceof U){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>je)throw new TypeError(`version is longer than ${je} characters`);J("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Me[Xe.LOOSE]:Me[Xe.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Q||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Q||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Q||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const a=+o;if(a>=0&&a<Q)return a}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(J("SemVer.compare",this.version,this.options,t),!(t instanceof U)){if(typeof t=="string"&&t===this.version)return 0;t=new U(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof U||(t=new U(t,this.options)),M(this.major,t.major)||M(this.minor,t.minor)||M(this.patch,t.patch)}comparePre(t){if(t instanceof U||(t=new U(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],o=t.prerelease[r];if(J("prerelease compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return M(n,o)}while(++r)}compareBuild(t){t instanceof U||(t=new U(t,this.options));let r=0;do{const n=this.build[r],o=t.build[r];if(J("build compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return M(n,o)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const o=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let a=[r,o];n===!1&&(a=[r]),M(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var y=zt;const Ve=y,Zt=(e,t,r=!1)=>{if(e instanceof Ve)return e;try{return new Ve(e,t)}catch(n){if(!r)return null;throw n}};var X=Zt;const Jt=X,Qt=(e,t)=>{const r=Jt(e,t);return r?r.version:null};var er=Qt;const tr=X,rr=(e,t)=>{const r=tr(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var nr=rr;const xe=y,sr=(e,t,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new xe(e instanceof xe?e.version:e,r).inc(t,n,o).version}catch{return null}};var ir=sr;const Ye=X,or=(e,t)=>{const r=Ye(e,null,!0),n=Ye(t,null,!0),o=r.compare(n);if(o===0)return null;const a=o>0,l=a?r:n,u=a?n:r,i=!!l.prerelease.length;if(!!u.prerelease.length&&!i)return!u.patch&&!u.minor?"major":l.patch?"patch":l.minor?"minor":"major";const f=i?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};var ar=or;const lr=y,cr=(e,t)=>new lr(e,t).major;var ur=cr;const fr=y,hr=(e,t)=>new fr(e,t).minor;var pr=hr;const Er=y,mr=(e,t)=>new Er(e,t).patch;var dr=mr;const $r=X,Rr=(e,t)=>{const r=$r(e,t);return r&&r.prerelease.length?r.prerelease:null};var vr=Rr;const We=y,Ir=(e,t,r)=>new We(e,r).compare(new We(t,r));var P=Ir;const gr=P,Lr=(e,t,r)=>gr(t,e,r);var wr=Lr;const Nr=P,Tr=(e,t)=>Nr(e,t,!0);var Or=Tr;const He=y,Sr=(e,t,r)=>{const n=new He(e,r),o=new He(t,r);return n.compare(o)||n.compareBuild(o)};var Se=Sr;const yr=Se,Ar=(e,t)=>e.sort((r,n)=>yr(r,n,t));var Cr=Ar;const _r=Se,Dr=(e,t)=>e.sort((r,n)=>_r(n,r,t));var Pr=Dr;const br=P,Ur=(e,t,r)=>br(e,t,r)>0;var ae=Ur;const kr=P,Fr=(e,t,r)=>kr(e,t,r)<0;var ye=Fr;const Gr=P,jr=(e,t,r)=>Gr(e,t,r)===0;var pt=jr;const Mr=P,Xr=(e,t,r)=>Mr(e,t,r)!==0;var Et=Xr;const Vr=P,xr=(e,t,r)=>Vr(e,t,r)>=0;var Ae=xr;const Yr=P,Wr=(e,t,r)=>Yr(e,t,r)<=0;var Ce=Wr;const Hr=pt,Br=Et,Kr=ae,qr=Ae,zr=ye,Zr=Ce,Jr=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Hr(e,r,n);case"!=":return Br(e,r,n);case">":return Kr(e,r,n);case">=":return qr(e,r,n);case"<":return zr(e,r,n);case"<=":return Zr(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var mt=Jr;const Qr=y,en=X,{safeRe:ee,t:te}=q,tn=(e,t)=>{if(e instanceof Qr)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?ee[te.COERCEFULL]:ee[te.COERCE]);else{const i=t.includePrerelease?ee[te.COERCERTLFULL]:ee[te.COERCERTL];let s;for(;(s=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||s.index+s[0].length!==r.index+r[0].length)&&(r=s),i.lastIndex=s.index+s[1].length+s[2].length;i.lastIndex=-1}if(r===null)return null;const n=r[2],o=r[3]||"0",a=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return en(`${n}.${o}.${a}${l}${u}`,t)};var rn=tn;class nn{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(t,r)}return this}}var sn=nn,me,Be;function b(){if(Be)return me;Be=1;const e=/\s+/g;class t{constructor(c,$){if($=o($),c instanceof t)return c.loose===!!$.loose&&c.includePrerelease===!!$.includePrerelease?c:new t(c.raw,$);if(c instanceof a)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=c.trim().replace(e," "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(v=>!F(v[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const v of this.set)if(v.length===1&&D(v[0])){this.set=[v];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c<this.set.length;c++){c>0&&(this.formatted+="||");const $=this.set[c];for(let E=0;E<$.length;E++)E>0&&(this.formatted+=" "),this.formatted+=$[E].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){const E=((this.options.includePrerelease&&d)|(this.options.loose&&R))+":"+c,v=n.get(E);if(v)return v;const m=this.options.loose,I=m?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];c=c.replace(I,Pt(this.options.includePrerelease)),l("hyphen replace",c),c=c.replace(i[s.COMPARATORTRIM],f),l("comparator trim",c),c=c.replace(i[s.TILDETRIM],p),l("tilde trim",c),c=c.replace(i[s.CARETTRIM],L),l("caret trim",c);let w=c.split(" ").map(O=>pe(O,this.options)).join(" ").split(/\s+/).map(O=>Dt(O,this.options));m&&(w=w.filter(O=>(l("loose invalid filter",O,this.options),!!O.match(i[s.COMPARATORLOOSE])))),l("range list",w);const g=new Map,N=w.map(O=>new a(O,this.options));for(const O of N){if(F(O))return[O];g.set(O.value,O)}g.size>1&&g.has("")&&g.delete("");const C=[...g.values()];return n.set(E,C),C}intersects(c,$){if(!(c instanceof t))throw new TypeError("a Range is required");return this.set.some(E=>G(E,$)&&c.set.some(v=>G(v,$)&&E.every(m=>v.every(I=>m.intersects(I,$)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new u(c,this.options)}catch{return!1}for(let $=0;$<this.set.length;$++)if(bt(this.set[$],c,this.options))return!0;return!1}}me=t;const r=sn,n=new r,o=Oe,a=le(),l=oe,u=y,{safeRe:i,t:s,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:L}=q,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:R}=ie,F=h=>h.value==="<0.0.0-0",D=h=>h.value==="",G=(h,c)=>{let $=!0;const E=h.slice();let v=E.pop();for(;$&&E.length;)$=E.every(m=>v.intersects(m,c)),v=E.pop();return $},pe=(h,c)=>(l("comp",h,c),h=St(h,c),l("caret",h),h=Tt(h,c),l("tildes",h),h=At(h,c),l("xrange",h),h=_t(h,c),l("stars",h),h),T=h=>!h||h.toLowerCase()==="x"||h==="*",Tt=(h,c)=>h.trim().split(/\s+/).map($=>Ot($,c)).join(" "),Ot=(h,c)=>{const $=c.loose?i[s.TILDELOOSE]:i[s.TILDE];return h.replace($,(E,v,m,I,w)=>{l("tilde",h,E,v,m,I,w);let g;return T(v)?g="":T(m)?g=`>=${v}.0.0 <${+v+1}.0.0-0`:T(I)?g=`>=${v}.${m}.0 <${v}.${+m+1}.0-0`:w?(l("replaceTilde pr",w),g=`>=${v}.${m}.${I}-${w} <${v}.${+m+1}.0-0`):g=`>=${v}.${m}.${I} <${v}.${+m+1}.0-0`,l("tilde return",g),g})},St=(h,c)=>h.trim().split(/\s+/).map($=>yt($,c)).join(" "),yt=(h,c)=>{l("caret",h,c);const $=c.loose?i[s.CARETLOOSE]:i[s.CARET],E=c.includePrerelease?"-0":"";return h.replace($,(v,m,I,w,g)=>{l("caret",h,v,m,I,w,g);let N;return T(m)?N="":T(I)?N=`>=${m}.0.0${E} <${+m+1}.0.0-0`:T(w)?m==="0"?N=`>=${m}.${I}.0${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.0${E} <${+m+1}.0.0-0`:g?(l("replaceCaret pr",g),m==="0"?I==="0"?N=`>=${m}.${I}.${w}-${g} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}-${g} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w}-${g} <${+m+1}.0.0-0`):(l("no pr"),m==="0"?I==="0"?N=`>=${m}.${I}.${w}${E} <${m}.${I}.${+w+1}-0`:N=`>=${m}.${I}.${w}${E} <${m}.${+I+1}.0-0`:N=`>=${m}.${I}.${w} <${+m+1}.0.0-0`),l("caret return",N),N})},At=(h,c)=>(l("replaceXRanges",h,c),h.split(/\s+/).map($=>Ct($,c)).join(" ")),Ct=(h,c)=>{h=h.trim();const $=c.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return h.replace($,(E,v,m,I,w,g)=>{l("xRange",h,E,v,m,I,w,g);const N=T(m),C=N||T(I),O=C||T(w),Y=O;return v==="="&&Y&&(v=""),g=c.includePrerelease?"-0":"",N?v===">"||v==="<"?E="<0.0.0-0":E="*":v&&Y?(C&&(I=0),w=0,v===">"?(v=">=",C?(m=+m+1,I=0,w=0):(I=+I+1,w=0)):v==="<="&&(v="<",C?m=+m+1:I=+I+1),v==="<"&&(g="-0"),E=`${v+m}.${I}.${w}${g}`):C?E=`>=${m}.0.0${g} <${+m+1}.0.0-0`:O&&(E=`>=${m}.${I}.0${g} <${m}.${+I+1}.0-0`),l("xRange return",E),E})},_t=(h,c)=>(l("replaceStars",h,c),h.trim().replace(i[s.STAR],"")),Dt=(h,c)=>(l("replaceGTE0",h,c),h.trim().replace(i[c.includePrerelease?s.GTE0PRE:s.GTE0],"")),Pt=h=>(c,$,E,v,m,I,w,g,N,C,O,Y)=>(T(E)?$="":T(v)?$=`>=${E}.0.0${h?"-0":""}`:T(m)?$=`>=${E}.${v}.0${h?"-0":""}`:I?$=`>=${$}`:$=`>=${$}${h?"-0":""}`,T(N)?g="":T(C)?g=`<${+N+1}.0.0-0`:T(O)?g=`<${N}.${+C+1}.0-0`:Y?g=`<=${N}.${C}.${O}-${Y}`:h?g=`<${N}.${C}.${+O+1}-0`:g=`<=${g}`,`${$} ${g}`.trim()),bt=(h,c,$)=>{for(let E=0;E<h.length;E++)if(!h[E].test(c))return!1;if(c.prerelease.length&&!$.includePrerelease){for(let E=0;E<h.length;E++)if(l(h[E].semver),h[E].semver!==a.ANY&&h[E].semver.prerelease.length>0){const v=h[E].semver;if(v.major===c.major&&v.minor===c.minor&&v.patch===c.patch)return!0}return!1}return!0};return me}var de,Ke;function le(){if(Ke)return de;Ke=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,p){if(p=r(p),f instanceof t){if(f.loose===!!p.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),l("comparator",f,p),this.options=p,this.loose=!!p.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(f){const p=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],L=f.match(p);if(!L)throw new TypeError(`Invalid comparator: ${f}`);this.operator=L[1]!==void 0?L[1]:"",this.operator==="="&&(this.operator=""),L[2]?this.semver=new u(L[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(l("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new u(f,this.options)}catch{return!1}return a(f,this.operator,this.semver,this.options)}intersects(f,p){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new i(f.value,p).test(this.value):f.operator===""?f.value===""?!0:new i(this.value,p).test(f.semver):(p=r(p),p.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||a(this.semver,"<",f.semver,p)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||a(this.semver,">",f.semver,p)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}de=t;const r=Oe,{safeRe:n,t:o}=q,a=mt,l=oe,u=y,i=b();return de}const on=b(),an=(e,t,r)=>{try{t=new on(t,r)}catch{return!1}return t.test(e)};var ce=an;const ln=b(),cn=(e,t)=>new ln(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var un=cn;const fn=y,hn=b(),pn=(e,t,r)=>{let n=null,o=null,a=null;try{a=new hn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===-1)&&(n=l,o=new fn(n,r))}),n};var En=pn;const mn=y,dn=b(),$n=(e,t,r)=>{let n=null,o=null,a=null;try{a=new dn(t,r)}catch{return null}return e.forEach(l=>{a.test(l)&&(!n||o.compare(l)===1)&&(n=l,o=new mn(n,r))}),n};var Rn=$n;const $e=y,vn=b(),qe=ae,In=(e,t)=>{e=new vn(e,t);let r=new $e("0.0.0");if(e.test(r)||(r=new $e("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const o=e.set[n];let a=null;o.forEach(l=>{const u=new $e(l.semver.version);switch(l.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!a||qe(u,a))&&(a=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),a&&(!r||qe(r,a))&&(r=a)}return r&&e.test(r)?r:null};var gn=In;const Ln=b(),wn=(e,t)=>{try{return new Ln(e,t).range||"*"}catch{return null}};var Nn=wn;const Tn=y,dt=le(),{ANY:On}=dt,Sn=b(),yn=ce,ze=ae,Ze=ye,An=Ce,Cn=Ae,_n=(e,t,r,n)=>{e=new Tn(e,n),t=new Sn(t,n);let o,a,l,u,i;switch(r){case">":o=ze,a=An,l=Ze,u=">",i=">=";break;case"<":o=Ze,a=Cn,l=ze,u="<",i="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(yn(e,t,n))return!1;for(let s=0;s<t.set.length;++s){const f=t.set[s];let p=null,L=null;if(f.forEach(d=>{d.semver===On&&(d=new dt(">=0.0.0")),p=p||d,L=L||d,o(d.semver,p.semver,n)?p=d:l(d.semver,L.semver,n)&&(L=d)}),p.operator===u||p.operator===i||(!L.operator||L.operator===u)&&a(e,L.semver))return!1;if(L.operator===i&&l(e,L.semver))return!1}return!0};var _e=_n;const Dn=_e,Pn=(e,t,r)=>Dn(e,t,">",r);var bn=Pn;const Un=_e,kn=(e,t,r)=>Un(e,t,"<",r);var Fn=kn;const Je=b(),Gn=(e,t,r)=>(e=new Je(e,r),t=new Je(t,r),e.intersects(t,r));var jn=Gn;const Mn=ce,Xn=P;var Vn=(e,t,r)=>{const n=[];let o=null,a=null;const l=e.sort((f,p)=>Xn(f,p,r));for(const f of l)Mn(f,t,r)?(a=f,o||(o=f)):(a&&n.push([o,a]),a=null,o=null);o&&n.push([o,null]);const u=[];for(const[f,p]of n)f===p?u.push(f):!p&&f===l[0]?u.push("*"):p?f===l[0]?u.push(`<=${p}`):u.push(`${f} - ${p}`):u.push(`>=${f}`);const i=u.join(" || "),s=typeof t.raw=="string"?t.raw:String(t);return i.length<s.length?i:t};const Qe=b(),De=le(),{ANY:Re}=De,W=ce,Pe=P,xn=(e,t,r={})=>{if(e===t)return!0;e=new Qe(e,r),t=new Qe(t,r);let n=!1;e:for(const o of e.set){for(const a of t.set){const l=Wn(o,a,r);if(n=n||l!==null,l)continue e}if(n)return!1}return!0},Yn=[new De(">=0.0.0-0")],et=[new De(">=0.0.0")],Wn=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Re){if(t.length===1&&t[0].semver===Re)return!0;r.includePrerelease?e=Yn:e=et}if(t.length===1&&t[0].semver===Re){if(r.includePrerelease)return!0;t=et}const n=new Set;let o,a;for(const d of e)d.operator===">"||d.operator===">="?o=tt(o,d,r):d.operator==="<"||d.operator==="<="?a=rt(a,d,r):n.add(d.semver);if(n.size>1)return null;let l;if(o&&a){if(l=Pe(o.semver,a.semver,r),l>0)return null;if(l===0&&(o.operator!==">="||a.operator!=="<="))return null}for(const d of n){if(o&&!W(d,String(o),r)||a&&!W(d,String(a),r))return null;for(const R of t)if(!W(d,String(R),r))return!1;return!0}let u,i,s,f,p=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,L=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const d of t){if(f=f||d.operator===">"||d.operator===">=",s=s||d.operator==="<"||d.operator==="<=",o){if(L&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===L.major&&d.semver.minor===L.minor&&d.semver.patch===L.patch&&(L=!1),d.operator===">"||d.operator===">="){if(u=tt(o,d,r),u===d&&u!==o)return!1}else if(o.operator===">="&&!W(o.semver,String(d),r))return!1}if(a){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator==="<"||d.operator==="<="){if(i=rt(a,d,r),i===d&&i!==a)return!1}else if(a.operator==="<="&&!W(a.semver,String(d),r))return!1}if(!d.operator&&(a||o)&&l!==0)return!1}return!(o&&s&&!a&&l!==0||a&&f&&!o&&l!==0||L||p)},tt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},rt=(e,t,r)=>{if(!e)return t;const n=Pe(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Hn=xn;const ve=q,nt=ie,Bn=y,st=ht,Kn=X,qn=er,zn=nr,Zn=ir,Jn=ar,Qn=ur,es=pr,ts=dr,rs=vr,ns=P,ss=wr,is=Or,os=Se,as=Cr,ls=Pr,cs=ae,us=ye,fs=pt,hs=Et,ps=Ae,Es=Ce,ms=mt,ds=rn,$s=le(),Rs=b(),vs=ce,Is=un,gs=En,Ls=Rn,ws=gn,Ns=Nn,Ts=_e,Os=bn,Ss=Fn,ys=jn,As=Vn,Cs=Hn;var _s={parse:Kn,valid:qn,clean:zn,inc:Zn,diff:Jn,major:Qn,minor:es,patch:ts,prerelease:rs,compare:ns,rcompare:ss,compareLoose:is,compareBuild:os,sort:as,rsort:ls,gt:cs,lt:us,eq:fs,neq:hs,gte:ps,lte:Es,cmp:ms,coerce:ds,Comparator:$s,Range:Rs,satisfies:vs,toComparators:Is,maxSatisfying:gs,minSatisfying:Ls,minVersion:ws,validRange:Ns,outside:Ts,gtr:Os,ltr:Ss,intersects:ys,simplifyRange:As,subset:Cs,SemVer:Bn,re:ve.re,src:ve.src,tokens:ve.t,SEMVER_SPEC_VERSION:nt.SEMVER_SPEC_VERSION,RELEASE_TYPES:nt.RELEASE_TYPES,compareIdentifiers:st.compareIdentifiers,rcompareIdentifiers:st.rcompareIdentifiers};const it=Ft(_s);var S={};/** * @license React * react-dom-test-utils.production.min.js * diff --git a/assets/iframe-kIyOmV27.js b/assets/iframe-DRbcjd5I.js similarity index 73% rename from assets/iframe-kIyOmV27.js rename to assets/iframe-DRbcjd5I.js index d71cd0eb..3ad876c6 100644 --- a/assets/iframe-kIyOmV27.js +++ b/assets/iframe-DRbcjd5I.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Fader.stories-DaSWQsVr.js","./jsx-runtime-Bxcv0yjW.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./Fader-BysHR2L8.js","./NativeEventEmitter-Cj1pQcwn.js","./index-DOpK3Ow6.js","./TextAncestorContext-Cvz4PlE2.js","./index-CEE--Juu.js","./index-S14X4tbk.js","./index-kJeFfQx-.js","./Animated-C23eizOh.js","./extends-CF3RwP-h.js","./index-BDsvWohO.js","./index-DcZXOGQR.js","./index-BypDj3rK.js","./Block-SFKht2RU.js","./base-color-CZpuL6yQ.js","./Button.stories-BXrwR9lp.js","./Button-CXn0Rl0f.js","./PressableBase-CPU35BDr.js","./usePiwikTrackCustomEventFromProps-BQaL6XvS.js","./index-8JwjhRSi.js","./useTrackException-BhQuYC5A.js","./index-Bcpfmd17.js","./development-DYCnWZjk.js","./index-5TFaNx6b.js","./config-BZnShabN.js","./Row-BXpfxHoR.js","./mapCrossAxisAlignment-DpnuLLqj.js","./mapMainAxisAlignment-BOa0GzUh.js","./useThemable-CjWxbHxI.js","./index-BMk6Tmu2.js","./Icon-CO3hZ5HW.js","./index-DYSHDArR.js","./index-Dk74W0Oi.js","./types-BJ_48vsK.js","./useDeviceContext-DGl4H2w7.js","./index-C3bJM-gU.js","./useTheme-CJIBCVMY.js","./pressable-arg-types-CJIMfHep.js","./EmailButton.stories-DEGPpVJx.js","./useOpenMailUrl-Cpc3v_r1.js","./index-XPwQYiUg.js","./accessibleText-gmNPjmn1.js","./FauxButton.stories-9CnHWFoY.js","./Phrase-DprhL3Se.js","./FollowButton.stories-Cj_34t8u.js","./IconButton.stories-DAas70aU.js","./IconButton-Cyqcuey7.js","./Pressable-HfRmqOUq.js","./Box-uk0d72u3.js","./layoutStyles-DflBxpuh.js","./Badge-CZ5nSfIQ.js","./InformationButton.stories-CgKZomf6.js","./Column-DVJ0Grcf.js","./Paragraph-CKYtcIcp.js","./Title-2Den3Qhs.js","./NavigationButton.stories-DxOVoX3T.js","./PhoneButton.stories-B7VmHzQ_.js","./PhoneButton-DincWTMd.js","./useOpenPhoneUrl-BpjRyIpq.js","./PhoneHQButton.stories-CngON3m8.js","./Pressable.stories-d3wTtiV1.js","./PressableBase.stories-CNinndEg.js","./TopTaskButton.stories-B6ZEQwOc.js","./HideFromAccessibility-DFWSEXqq.js","./Accordion.stories-zszboBLF.js","./Accordion-pyVus0-M.js","./Gutter-DFUJhG4q.js","./Size-D6myJmG7.js","./Box.stories-hdDbE-8z.js","./Timeline.stories-CzJklnRZ.js","./HtmlContent-DVMBJKEX.js","./index-eRgc22Hn.js","./index-iQAZAIR7.js","./client-DDXjyz62.js","./index-CsseZgnR.js","./index-Cnrjv3xk.js","./index-ZuFZ7TrF.js","./ListItemMarker-bpCY8oNQ.js","./useIsScreenReaderEnabled-BGYkQQWr.js","./Badge.stories-CpSgnKRK.js","./EmptyMessage.stories-CR60fbG6.js","./SingleSelectable-Bg8zzmoU.js","./useAccessibilityAnnounce-DO7gK7r3.js","./duration-A4BOymd5.js","./PleaseWait.stories-C_eisUPf.js","./PleaseWait-kuCXMYoa.js","./Center-CqG4tBOn.js","./Canvas-CCRWbH08.js","./SomethingWentWrong.stories-D4WWuqfh.js","./AlertBase-CypP0Y-t.js","./useAccessibilityFocus-Djl26ZxP.js","./Trait.stories-DPOIG-7f.js","./Triangle.stories-nI2t4-zG.js","./Triangle-Amn4R_mH.js","./Alert.stories-BrVn1Z8Z.js","./Tooltip.stories-BJmLUGIr.js","./Tooltip-DYiVxnJv.js","./CharactersLeftDisplay.stories-C-rGi94q.js","./Checkbox.stories-B02dkd_S.js","./FormField-Bd2DEH5y.js","./Label.stories-CtOoJG1O.js","./Label-Bc-mTvQ-.js","./RadioGroup.stories-CUx0HPhd.js","./Switch.stories-BGdc8zMy.js","./TextInput.stories-DmUdRIlA.js","./AspectRatio.stories-9XhpoxYA.js","./Center.stories-C4dT0X09.js","./Column.stories-Ca7j0P0o.js","./Row.stories-DPtT-e2O.js","./Size.stories-Bhgey4GA.js","./Figure.stories-ClUqZiEM.js","./household-waste-to-container-gxPFJly2.js","./FigureWithFacadesBackground.stories-CbdUg9P5.js","./index-DbcoTUCW.js","./Icon.stories-aHGWSgpm.js","./Image.stories-ZfBjdKKw.js","./ImageFallback.stories-BCOLL1Qz.js","./ConstructionWorkDetailFigure.stories-CGjEF6j_.js","./ConstructionWorkFigure.stories-BJdSf7MD.js","./ModulesFigure.stories-DYHz8eiD.js","./ReportProblemFigure.stories-D33HwCLU.js","./UpdateFigure.stories-AJoakePP.js","./WasteGuideFigure.stories-BgZcjvMS.js","./HtmlContent.stories-CWJLTXVl.js","./Link.stories-BbZo-WR0.js","./Paragraph.stories-HIpJ_3mC.js","./Phrase.stories-PpL3ivS5.js","./Tag.stories-BR_mja2D.js","./Title.stories-DPpgUOK6.js","./List.stories-FUqbbRGZ.js","./CityPassCard.stories-BxMUmU73.js","./entry-preview-D-t3dm-j.js","./chunk-H6MOWX77-DTQOW814.js","./entry-preview-docs-BiXdOg7-.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./preview-D77C14du.js","./preview-BWzBA1C2.js","./preview-D78lRyGx.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./preview-CPnNvsyl.css"])))=>i.map(i=>d[i]); -import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))u(r);new MutationObserver(r=>{for(const e of r)if(e.type==="childList")for(const i of e.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&u(i)}).observe(document,{childList:!0,subtree:!0});function c(r){const e={};return r.integrity&&(e.integrity=r.integrity),r.referrerPolicy&&(e.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?e.credentials="include":r.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function u(r){if(r.ep)return;r.ep=!0;const e=c(r);fetch(r.href,e)}})();const T="modulepreload",P=function(o,_){return new URL(o,_).href},O={},t=function(_,c,u){let r=Promise.resolve();if(c&&c.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),d=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.allSettled(c.map(n=>{if(n=P(n,u),n in O)return;O[n]=!0;const a=n.endsWith(".css"),R=a?'[rel="stylesheet"]':"";if(!!u)for(let p=i.length-1;p>=0;p--){const E=i[p];if(E.href===n&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${R}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":T,a||(m.as="script"),m.crossOrigin="",m.href=n,d&&m.setAttribute("nonce",d),document.head.appendChild(m),a)return new Promise((p,E)=>{m.addEventListener("load",p),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function e(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return r.then(i=>{for(const s of i||[])s.status==="rejected"&&e(s.reason);return _().catch(e)})},{createBrowserChannel:y}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,l=y({page:"preview"});L.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const I={"./src/components/ui/animations/Fader.stories.tsx":async()=>t(()=>import("./Fader.stories-DaSWQsVr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./src/components/ui/buttons/Button.stories.tsx":async()=>t(()=>import("./Button.stories-BXrwR9lp.js"),__vite__mapDeps([18,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,40]),import.meta.url),"./src/components/ui/buttons/EmailButton.stories.tsx":async()=>t(()=>import("./EmailButton.stories-DEGPpVJx.js"),__vite__mapDeps([41,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,42,43,44]),import.meta.url),"./src/components/ui/buttons/FauxButton.stories.tsx":async()=>t(()=>import("./FauxButton.stories-9CnHWFoY.js"),__vite__mapDeps([45,1,2,3,27,46,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/buttons/FollowButton.stories.tsx":async()=>t(()=>import("./FollowButton.stories-Cj_34t8u.js"),__vite__mapDeps([47,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39]),import.meta.url),"./src/components/ui/buttons/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-DAas70aU.js"),__vite__mapDeps([48,1,2,3,49,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,53,28,29,30,37,38,15,36,33,34,35,11,14,39,40]),import.meta.url),"./src/components/ui/buttons/InformationButton.stories.tsx":async()=>t(()=>import("./InformationButton.stories-CgKZomf6.js"),__vite__mapDeps([54,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/components/ui/buttons/NavigationButton.stories.tsx":async()=>t(()=>import("./NavigationButton.stories-DxOVoX3T.js"),__vite__mapDeps([58,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,28,29,30,33,34,35,11,14,15,36,37,38,39,57]),import.meta.url),"./src/components/ui/buttons/PhoneButton.stories.tsx":async()=>t(()=>import("./PhoneButton.stories-B7VmHzQ_.js"),__vite__mapDeps([59,60,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,61,43,44]),import.meta.url),"./src/components/ui/buttons/PhoneHQButton.stories.tsx":async()=>t(()=>import("./PhoneHQButton.stories-CngON3m8.js"),__vite__mapDeps([62,1,2,3,60,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,61,43,44]),import.meta.url),"./src/components/ui/buttons/Pressable.stories.tsx":async()=>t(()=>import("./Pressable.stories-d3wTtiV1.js"),__vite__mapDeps([63,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,56,15]),import.meta.url),"./src/components/ui/buttons/PressableBase.stories.tsx":async()=>t(()=>import("./PressableBase.stories-CNinndEg.js"),__vite__mapDeps([64,20,1,2,3,21,22,23,24,5,6,7,8,25,26,12,13,40]),import.meta.url),"./src/components/ui/buttons/TopTaskButton.stories.tsx":async()=>t(()=>import("./TopTaskButton.stories-B6ZEQwOc.js"),__vite__mapDeps([65,1,2,3,66,13,8,7,50,20,21,22,23,24,5,6,25,26,12,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/components/ui/containers/Accordion.stories.tsx":async()=>t(()=>import("./Accordion.stories-zszboBLF.js"),__vite__mapDeps([67,1,2,3,68,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,69,28,70,33,34,35,11,14,15,36,37,38,39,57,56]),import.meta.url),"./src/components/ui/containers/Box.stories.tsx":async()=>t(()=>import("./Box.stories-hdDbE-8z.js"),__vite__mapDeps([71,1,2,3,51,52,8,31,32,22,17,13,7,46,15]),import.meta.url),"./src/components/ui/containers/Timeline.stories.tsx":async()=>t(()=>import("./Timeline.stories-CzJklnRZ.js"),__vite__mapDeps([72,1,2,3,68,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,69,28,70,33,34,35,11,14,15,36,37,38,39,57,73,74,75,76,10,43,9,77,78,79,46,80,27,81,42,61]),import.meta.url),"./src/components/ui/feedback/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-CpSgnKRK.js"),__vite__mapDeps([82,53,1,2,3,28,29,30,31,32,22,8,17,13,7,37,24,5,6,38,15]),import.meta.url),"./src/components/ui/feedback/EmptyMessage.stories.tsx":async()=>t(()=>import("./EmptyMessage.stories-CR60fbG6.js"),__vite__mapDeps([83,1,2,3,84,8,13,7,56,31,32,22,17,15,57,85,81,23,24,5,6,25,10,86,44]),import.meta.url),"./src/components/ui/feedback/PleaseWait.stories.tsx":async()=>t(()=>import("./PleaseWait.stories-C_eisUPf.js"),__vite__mapDeps([87,1,2,3,88,51,52,8,31,32,22,17,13,7,89,33,34,35,28,29,30,11,6,12,5,14,15,36,37,24,38,39,16,90]),import.meta.url),"./src/components/ui/feedback/SomethingWentWrong.stories.tsx":async()=>t(()=>import("./SomethingWentWrong.stories-D4WWuqfh.js"),__vite__mapDeps([91,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,92,84,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,93,75,10,81,86,44,85]),import.meta.url),"./src/components/ui/feedback/Trait.stories.tsx":async()=>t(()=>import("./Trait.stories-DPOIG-7f.js"),__vite__mapDeps([94,1,2,3,53,28,29,30,31,32,22,8,17,13,7,37,24,5,6,38,15,33,34,35,11,12,14,36,39,46]),import.meta.url),"./src/components/ui/feedback/Triangle.stories.tsx":async()=>t(()=>import("./Triangle.stories-nI2t4-zG.js"),__vite__mapDeps([95,96,1,2,3,34,35,8,36,31,32,22,17]),import.meta.url),"./src/components/ui/feedback/alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-BrVn1Z8Z.js"),__vite__mapDeps([97,92,1,2,3,51,52,8,31,32,22,17,13,7,84,55,29,30,28,33,34,35,11,6,12,5,14,15,36,37,24,38,39,56,57,93,23,25,75,10,81,86,44]),import.meta.url),"./src/components/ui/feedback/tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-BJmLUGIr.js"),__vite__mapDeps([98,99,1,2,3,21,22,23,24,5,6,7,8,25,38,20,26,12,13,96,34,35,36,31,32,17,89,52,84,55,29,30,56,15,4,9,10,11,14,28,93,75,81,86]),import.meta.url),"./src/components/ui/forms/CharactersLeftDisplay.stories.tsx":async()=>t(()=>import("./CharactersLeftDisplay.stories-C-rGi94q.js"),__vite__mapDeps([100,1,2,3,56,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/forms/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-B02dkd_S.js"),__vite__mapDeps([101,1,2,3,102,66,13,8,7,28,29,30,31,32,22,17,52,33,34,35,11,6,12,5,14,15,36,37,24,38,39,21,23,25,79]),import.meta.url),"./src/components/ui/forms/Label.stories.tsx":async()=>t(()=>import("./Label.stories-CtOoJG1O.js"),__vite__mapDeps([103,104,1,2,3,56,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/forms/RadioGroup.stories.tsx":async()=>t(()=>import("./RadioGroup.stories-CUx0HPhd.js"),__vite__mapDeps([105,1,2,3,34,35,8,20,21,22,23,24,5,6,7,25,26,12,13,28,29,30,31,32,17,46,15,39,55]),import.meta.url),"./src/components/ui/forms/Switch.stories.tsx":async()=>t(()=>import("./Switch.stories-BGdc8zMy.js"),__vite__mapDeps([106,1,2,3,20,21,22,23,24,5,6,7,8,25,26,12,13,102,66,28,29,30,31,32,17,52,39,77,15]),import.meta.url),"./src/components/ui/forms/TextInput.stories.tsx":async()=>t(()=>import("./TextInput.stories-DmUdRIlA.js"),__vite__mapDeps([107,1,2,3,49,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,53,28,29,30,37,38,15,36,104,56,55,33,34,35,11,14,39,78]),import.meta.url),"./src/components/ui/layout/AspectRatio.stories.tsx":async()=>t(()=>import("./AspectRatio.stories-9XhpoxYA.js"),__vite__mapDeps([108,1,2,3,36,31,32,22,8,17,13,7,46,15,16,90]),import.meta.url),"./src/components/ui/layout/Center.stories.tsx":async()=>t(()=>import("./Center.stories-C4dT0X09.js"),__vite__mapDeps([109,1,2,3,89,52,8,13,7,46,31,32,22,17,15,16,90]),import.meta.url),"./src/components/ui/layout/Column.stories.tsx":async()=>t(()=>import("./Column.stories-Ca7j0P0o.js"),__vite__mapDeps([110,1,2,3,55,29,30,31,32,22,8,17,13,7,16,90]),import.meta.url),"./src/components/ui/layout/Row.stories.tsx":async()=>t(()=>import("./Row.stories-DPtT-e2O.js"),__vite__mapDeps([111,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,16,90]),import.meta.url),"./src/components/ui/layout/Size.stories.tsx":async()=>t(()=>import("./Size.stories-Bhgey4GA.js"),__vite__mapDeps([112,1,2,3,70,30,13,8,7,46,31,32,22,17,15,16,90]),import.meta.url),"./src/components/ui/media/Figure.stories.tsx":async()=>t(()=>import("./Figure.stories-ClUqZiEM.js"),__vite__mapDeps([113,1,2,3,31,32,22,8,17,13,7,114]),import.meta.url),"./src/components/ui/media/FigureWithFacadesBackground.stories.tsx":async()=>t(()=>import("./FigureWithFacadesBackground.stories-CbdUg9P5.js"),__vite__mapDeps([115,1,2,3,116,37,24,5,6,7,8,38,31,32,22,17,13,114]),import.meta.url),"./src/components/ui/media/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories-aHGWSgpm.js"),__vite__mapDeps([117,33,1,2,3,34,35,8,28,29,30,31,32,22,17,13,7,11,6,12,5,14,15,36,37,24,38,39]),import.meta.url),"./src/components/ui/media/Image.stories.tsx":async()=>t(()=>import("./Image.stories-ZfBjdKKw.js"),__vite__mapDeps([118,1,2,3,25,6,7,8,14,12,13,31,32,22,17,38]),import.meta.url),"./src/components/ui/media/ImageFallback.stories.tsx":async()=>t(()=>import("./ImageFallback.stories-BCOLL1Qz.js"),__vite__mapDeps([119,1,2,3,31,32,22,8,17,13,7]),import.meta.url),"./src/components/ui/media/errors/ConstructionWorkDetailFigure.stories.tsx":async()=>t(()=>import("./ConstructionWorkDetailFigure.stories-CGjEF6j_.js"),__vite__mapDeps([120,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ConstructionWorkFigure.stories.tsx":async()=>t(()=>import("./ConstructionWorkFigure.stories-BJdSf7MD.js"),__vite__mapDeps([121,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ModulesFigure.stories.tsx":async()=>t(()=>import("./ModulesFigure.stories-DYHz8eiD.js"),__vite__mapDeps([122,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ReportProblemFigure.stories.tsx":async()=>t(()=>import("./ReportProblemFigure.stories-D33HwCLU.js"),__vite__mapDeps([123,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/UpdateFigure.stories.tsx":async()=>t(()=>import("./UpdateFigure.stories-AJoakePP.js"),__vite__mapDeps([124,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/WasteGuideFigure.stories.tsx":async()=>t(()=>import("./WasteGuideFigure.stories-BgZcjvMS.js"),__vite__mapDeps([125,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/text/HtmlContent.stories.tsx":async()=>t(()=>import("./HtmlContent.stories-CWJLTXVl.js"),__vite__mapDeps([126,1,2,3,73,74,8,75,32,76,6,7,10,43,12,13,9,5,11,14,15,21,22,23,24,25,26,77,78,79,38,35,55,29,30,31,17,28,46,80,27,37,81,42,61]),import.meta.url),"./src/components/ui/text/Link.stories.tsx":async()=>t(()=>import("./Link.stories-BbZo-WR0.js"),__vite__mapDeps([127,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,28,29,30,70,33,34,35,11,14,15,36,37,38,39,46]),import.meta.url),"./src/components/ui/text/Paragraph.stories.tsx":async()=>t(()=>import("./Paragraph.stories-HIpJ_3mC.js"),__vite__mapDeps([128,1,2,3,56,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/text/Phrase.stories.tsx":async()=>t(()=>import("./Phrase.stories-PpL3ivS5.js"),__vite__mapDeps([129,1,2,3,46,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/text/Tag.stories.tsx":async()=>t(()=>import("./Tag.stories-BR_mja2D.js"),__vite__mapDeps([130,1,2,3,56,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/text/Title.stories.tsx":async()=>t(()=>import("./Title.stories-DPpgUOK6.js"),__vite__mapDeps([131,1,2,3,57,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/text/list/List.stories.tsx":async()=>t(()=>import("./List.stories-FUqbbRGZ.js"),__vite__mapDeps([132,1,2,3,84,8,13,7,55,29,30,31,32,22,17,28,46,15,80,27,37,24,5,6,38,44]),import.meta.url),"./src/modules/city-pass/components/card-display/CityPassCard.stories.tsx":async()=>t(()=>import("./CityPassCard.stories-BxMUmU73.js"),__vite__mapDeps([133,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url)};async function D(o){return I[o]()}const{composeConfigs:V,PreviewWeb:v,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,A=async(o=[])=>{const _=await Promise.all([o.at(0)??t(()=>import("./entry-preview-D-t3dm-j.js"),__vite__mapDeps([134,135,2,3,32]),import.meta.url),o.at(1)??t(()=>import("./entry-preview-docs-BiXdOg7-.js"),__vite__mapDeps([136,135,137,3,35,138,2]),import.meta.url),o.at(2)??t(()=>import("./preview-ClbGmyEm.js"),[],import.meta.url),o.at(3)??t(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),o.at(4)??t(()=>import("./preview-D77C14du.js"),__vite__mapDeps([139,138]),import.meta.url),o.at(5)??t(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),o.at(6)??t(()=>import("./preview-CFgKly6U.js"),[],import.meta.url),o.at(7)??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([140,138]),import.meta.url),o.at(8)??t(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),o.at(9)??t(()=>import("./preview-DhFGAmVP.js"),[],import.meta.url),o.at(10)??t(()=>import("./preview-D78lRyGx.js"),__vite__mapDeps([141,1,2,3,37,24,5,6,7,8,38,31,32,22,17,23,25,21,39,75,13,116,49,50,20,26,12,51,52,27,53,28,29,30,15,36,33,34,35,11,14,57,74,76,10,43,9,77,78,79,55,69,46,19,99,96,89,84,56,4,93,81,86,66,88,142,143]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v(D,A);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Fader.stories-DaSWQsVr.js","./jsx-runtime-Bxcv0yjW.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./Fader-BysHR2L8.js","./NativeEventEmitter-Cj1pQcwn.js","./index-DOpK3Ow6.js","./TextAncestorContext-Cvz4PlE2.js","./index-CEE--Juu.js","./index-S14X4tbk.js","./index-kJeFfQx-.js","./Animated-C23eizOh.js","./extends-CF3RwP-h.js","./index-BDsvWohO.js","./index-DcZXOGQR.js","./index-BypDj3rK.js","./Block-SFKht2RU.js","./base-color-CZpuL6yQ.js","./Button.stories-Sy1tsKn6.js","./Button-DAm4UwbF.js","./PressableBase-CPU35BDr.js","./usePiwikTrackCustomEventFromProps-BQaL6XvS.js","./index-8JwjhRSi.js","./useTrackException-BhQuYC5A.js","./index-Bcpfmd17.js","./development-DYCnWZjk.js","./index-5TFaNx6b.js","./config-BZnShabN.js","./Row-BXpfxHoR.js","./mapCrossAxisAlignment-DpnuLLqj.js","./mapMainAxisAlignment-BOa0GzUh.js","./useThemable-CjWxbHxI.js","./index-BMk6Tmu2.js","./Icon-DcC-yiY8.js","./index-DYSHDArR.js","./index-Dk74W0Oi.js","./types-BJ_48vsK.js","./useDeviceContext-DGl4H2w7.js","./index-C3bJM-gU.js","./useTheme-CJIBCVMY.js","./pressable-arg-types-CJIMfHep.js","./EmailButton.stories-DDhgbBJo.js","./useOpenMailUrl-Cpc3v_r1.js","./index-XPwQYiUg.js","./accessibleText-gmNPjmn1.js","./FauxButton.stories-DnlhMAWp.js","./Phrase-t0rOiClQ.js","./FollowButton.stories-BfrkBYsN.js","./IconButton.stories-C63mYIh6.js","./IconButton-Cyqcuey7.js","./Pressable-HfRmqOUq.js","./Box-uk0d72u3.js","./layoutStyles-DflBxpuh.js","./Badge-CZ5nSfIQ.js","./InformationButton.stories-Chf6KCJ3.js","./Column-DVJ0Grcf.js","./Paragraph-DkRs_aGj.js","./Title-9ScEYPym.js","./NavigationButton.stories-wRzBaKht.js","./PhoneButton.stories-gTtf5rgQ.js","./PhoneButton-H9GVa_s-.js","./useOpenPhoneUrl-BpjRyIpq.js","./PhoneHQButton.stories-CCWkKybX.js","./Pressable.stories-COIJugq4.js","./PressableBase.stories-CNinndEg.js","./TopTaskButton.stories-CnV0R1ve.js","./HideFromAccessibility-DFWSEXqq.js","./Accordion.stories-zfRHY5wr.js","./Accordion-BRQzS2PO.js","./Gutter-DFUJhG4q.js","./Size-D6myJmG7.js","./Box.stories-BzfpVYnN.js","./Timeline.stories-CEX7T0lI.js","./HtmlContent-BN7YmfBH.js","./index-eRgc22Hn.js","./index-iQAZAIR7.js","./client-DDXjyz62.js","./index-CsseZgnR.js","./index-Cnrjv3xk.js","./index-ZuFZ7TrF.js","./ListItemMarker-BvZewDFw.js","./useIsScreenReaderEnabled-BGYkQQWr.js","./Badge.stories-CpSgnKRK.js","./EmptyMessage.stories-uQmD_nYy.js","./SingleSelectable-Bg8zzmoU.js","./useAccessibilityAnnounce-DO7gK7r3.js","./duration-A4BOymd5.js","./PleaseWait.stories-BCRCPM4o.js","./PleaseWait-C5ES8__x.js","./Center-CqG4tBOn.js","./Canvas-CCRWbH08.js","./SomethingWentWrong.stories-CgtMyzYA.js","./AlertBase-B0hDfRWJ.js","./useAccessibilityFocus-Djl26ZxP.js","./Trait.stories-DfStrMlO.js","./Triangle.stories-nI2t4-zG.js","./Triangle-Amn4R_mH.js","./Alert.stories-DWV1pQDq.js","./Tooltip.stories-DKYi8qHC.js","./Tooltip-Bm0QTu1O.js","./CharactersLeftDisplay.stories-DE25sQIz.js","./Checkbox.stories-CuoUXCBY.js","./FormField-Bd2DEH5y.js","./Label.stories-CIYQAd-q.js","./Label-BbSvQ4Xu.js","./RadioGroup.stories-Y-z69RC-.js","./Switch.stories-BGdc8zMy.js","./TextInput.stories-CPzo6NW-.js","./AspectRatio.stories-DNhpcDer.js","./Center.stories-C6NWDIFT.js","./Column.stories-Ca7j0P0o.js","./Row.stories-CoTMFviY.js","./Size.stories-DTGdjPCR.js","./Figure.stories-ClUqZiEM.js","./household-waste-to-container-gxPFJly2.js","./FigureWithFacadesBackground.stories-CbdUg9P5.js","./index-DbcoTUCW.js","./Icon.stories-DPBXIphH.js","./Image.stories-ZfBjdKKw.js","./ImageFallback.stories-BCOLL1Qz.js","./ConstructionWorkDetailFigure.stories-CGjEF6j_.js","./ConstructionWorkFigure.stories-BJdSf7MD.js","./ModulesFigure.stories-DYHz8eiD.js","./ReportProblemFigure.stories-D33HwCLU.js","./UpdateFigure.stories-AJoakePP.js","./WasteGuideFigure.stories-BgZcjvMS.js","./HtmlContent.stories-AMd582sk.js","./Link.stories-Bsr9sC9b.js","./Paragraph.stories-CqC3Nd_V.js","./Phrase.stories-1WGaWSS3.js","./Tag.stories-BLgDQ_OS.js","./Title.stories-Dglf4BGk.js","./List.stories-BTw7GTgY.js","./CityPassCard.stories-TqChsdR9.js","./entry-preview-BLv4HfPv.js","./chunk-H6MOWX77-DTQOW814.js","./entry-preview-docs-BiXdOg7-.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./preview-D77C14du.js","./preview-BWzBA1C2.js","./preview-DkszDCHZ.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./preview-CPnNvsyl.css"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))u(r);new MutationObserver(r=>{for(const e of r)if(e.type==="childList")for(const i of e.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&u(i)}).observe(document,{childList:!0,subtree:!0});function c(r){const e={};return r.integrity&&(e.integrity=r.integrity),r.referrerPolicy&&(e.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?e.credentials="include":r.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function u(r){if(r.ep)return;r.ep=!0;const e=c(r);fetch(r.href,e)}})();const T="modulepreload",P=function(o,_){return new URL(o,_).href},O={},t=function(_,c,u){let r=Promise.resolve();if(c&&c.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),d=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.allSettled(c.map(n=>{if(n=P(n,u),n in O)return;O[n]=!0;const a=n.endsWith(".css"),R=a?'[rel="stylesheet"]':"";if(!!u)for(let p=i.length-1;p>=0;p--){const E=i[p];if(E.href===n&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${R}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":T,a||(m.as="script"),m.crossOrigin="",m.href=n,d&&m.setAttribute("nonce",d),document.head.appendChild(m),a)return new Promise((p,E)=>{m.addEventListener("load",p),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function e(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return r.then(i=>{for(const s of i||[])s.status==="rejected"&&e(s.reason);return _().catch(e)})},{createBrowserChannel:y}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,l=y({page:"preview"});L.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const I={"./src/components/ui/animations/Fader.stories.tsx":async()=>t(()=>import("./Fader.stories-DaSWQsVr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),"./src/components/ui/buttons/Button.stories.tsx":async()=>t(()=>import("./Button.stories-Sy1tsKn6.js"),__vite__mapDeps([18,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,40]),import.meta.url),"./src/components/ui/buttons/EmailButton.stories.tsx":async()=>t(()=>import("./EmailButton.stories-DDhgbBJo.js"),__vite__mapDeps([41,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,42,43,44]),import.meta.url),"./src/components/ui/buttons/FauxButton.stories.tsx":async()=>t(()=>import("./FauxButton.stories-DnlhMAWp.js"),__vite__mapDeps([45,1,2,3,27,46,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/buttons/FollowButton.stories.tsx":async()=>t(()=>import("./FollowButton.stories-BfrkBYsN.js"),__vite__mapDeps([47,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39]),import.meta.url),"./src/components/ui/buttons/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-C63mYIh6.js"),__vite__mapDeps([48,1,2,3,49,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,53,28,29,30,37,38,15,36,33,34,35,11,14,39,40]),import.meta.url),"./src/components/ui/buttons/InformationButton.stories.tsx":async()=>t(()=>import("./InformationButton.stories-Chf6KCJ3.js"),__vite__mapDeps([54,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/components/ui/buttons/NavigationButton.stories.tsx":async()=>t(()=>import("./NavigationButton.stories-wRzBaKht.js"),__vite__mapDeps([58,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,28,29,30,33,34,35,11,14,15,36,37,38,39,57]),import.meta.url),"./src/components/ui/buttons/PhoneButton.stories.tsx":async()=>t(()=>import("./PhoneButton.stories-gTtf5rgQ.js"),__vite__mapDeps([59,60,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,61,43,44]),import.meta.url),"./src/components/ui/buttons/PhoneHQButton.stories.tsx":async()=>t(()=>import("./PhoneHQButton.stories-CCWkKybX.js"),__vite__mapDeps([62,1,2,3,60,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,61,43,44]),import.meta.url),"./src/components/ui/buttons/Pressable.stories.tsx":async()=>t(()=>import("./Pressable.stories-COIJugq4.js"),__vite__mapDeps([63,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,56,15]),import.meta.url),"./src/components/ui/buttons/PressableBase.stories.tsx":async()=>t(()=>import("./PressableBase.stories-CNinndEg.js"),__vite__mapDeps([64,20,1,2,3,21,22,23,24,5,6,7,8,25,26,12,13,40]),import.meta.url),"./src/components/ui/buttons/TopTaskButton.stories.tsx":async()=>t(()=>import("./TopTaskButton.stories-CnV0R1ve.js"),__vite__mapDeps([65,1,2,3,66,13,8,7,50,20,21,22,23,24,5,6,25,26,12,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url),"./src/components/ui/containers/Accordion.stories.tsx":async()=>t(()=>import("./Accordion.stories-zfRHY5wr.js"),__vite__mapDeps([67,1,2,3,68,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,69,28,70,33,34,35,11,14,15,36,37,38,39,57,56]),import.meta.url),"./src/components/ui/containers/Box.stories.tsx":async()=>t(()=>import("./Box.stories-BzfpVYnN.js"),__vite__mapDeps([71,1,2,3,51,52,8,31,32,22,17,13,7,46,15]),import.meta.url),"./src/components/ui/containers/Timeline.stories.tsx":async()=>t(()=>import("./Timeline.stories-CEX7T0lI.js"),__vite__mapDeps([72,1,2,3,68,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,69,28,70,33,34,35,11,14,15,36,37,38,39,57,73,74,75,76,10,43,9,77,78,79,46,80,27,81,42,61]),import.meta.url),"./src/components/ui/feedback/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-CpSgnKRK.js"),__vite__mapDeps([82,53,1,2,3,28,29,30,31,32,22,8,17,13,7,37,24,5,6,38,15]),import.meta.url),"./src/components/ui/feedback/EmptyMessage.stories.tsx":async()=>t(()=>import("./EmptyMessage.stories-uQmD_nYy.js"),__vite__mapDeps([83,1,2,3,84,8,13,7,56,31,32,22,17,15,57,85,81,23,24,5,6,25,10,86,44]),import.meta.url),"./src/components/ui/feedback/PleaseWait.stories.tsx":async()=>t(()=>import("./PleaseWait.stories-BCRCPM4o.js"),__vite__mapDeps([87,1,2,3,88,51,52,8,31,32,22,17,13,7,89,33,34,35,28,29,30,11,6,12,5,14,15,36,37,24,38,39,16,90]),import.meta.url),"./src/components/ui/feedback/SomethingWentWrong.stories.tsx":async()=>t(()=>import("./SomethingWentWrong.stories-CgtMyzYA.js"),__vite__mapDeps([91,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,92,84,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,93,75,10,81,86,44,85]),import.meta.url),"./src/components/ui/feedback/Trait.stories.tsx":async()=>t(()=>import("./Trait.stories-DfStrMlO.js"),__vite__mapDeps([94,1,2,3,53,28,29,30,31,32,22,8,17,13,7,37,24,5,6,38,15,33,34,35,11,12,14,36,39,46]),import.meta.url),"./src/components/ui/feedback/Triangle.stories.tsx":async()=>t(()=>import("./Triangle.stories-nI2t4-zG.js"),__vite__mapDeps([95,96,1,2,3,34,35,8,36,31,32,22,17]),import.meta.url),"./src/components/ui/feedback/alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-DWV1pQDq.js"),__vite__mapDeps([97,92,1,2,3,51,52,8,31,32,22,17,13,7,84,55,29,30,28,33,34,35,11,6,12,5,14,15,36,37,24,38,39,56,57,93,23,25,75,10,81,86,44]),import.meta.url),"./src/components/ui/feedback/tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-DKYi8qHC.js"),__vite__mapDeps([98,99,1,2,3,21,22,23,24,5,6,7,8,25,38,20,26,12,13,96,34,35,36,31,32,17,89,52,84,55,29,30,56,15,4,9,10,11,14,28,93,75,81,86]),import.meta.url),"./src/components/ui/forms/CharactersLeftDisplay.stories.tsx":async()=>t(()=>import("./CharactersLeftDisplay.stories-DE25sQIz.js"),__vite__mapDeps([100,1,2,3,56,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/forms/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-CuoUXCBY.js"),__vite__mapDeps([101,1,2,3,102,66,13,8,7,28,29,30,31,32,22,17,52,33,34,35,11,6,12,5,14,15,36,37,24,38,39,21,23,25,79]),import.meta.url),"./src/components/ui/forms/Label.stories.tsx":async()=>t(()=>import("./Label.stories-CIYQAd-q.js"),__vite__mapDeps([103,104,1,2,3,56,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/forms/RadioGroup.stories.tsx":async()=>t(()=>import("./RadioGroup.stories-Y-z69RC-.js"),__vite__mapDeps([105,1,2,3,34,35,8,20,21,22,23,24,5,6,7,25,26,12,13,28,29,30,31,32,17,46,15,39,55]),import.meta.url),"./src/components/ui/forms/Switch.stories.tsx":async()=>t(()=>import("./Switch.stories-BGdc8zMy.js"),__vite__mapDeps([106,1,2,3,20,21,22,23,24,5,6,7,8,25,26,12,13,102,66,28,29,30,31,32,17,52,39,77,15]),import.meta.url),"./src/components/ui/forms/TextInput.stories.tsx":async()=>t(()=>import("./TextInput.stories-CPzo6NW-.js"),__vite__mapDeps([107,1,2,3,49,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,53,28,29,30,37,38,15,36,104,56,55,33,34,35,11,14,39,78]),import.meta.url),"./src/components/ui/layout/AspectRatio.stories.tsx":async()=>t(()=>import("./AspectRatio.stories-DNhpcDer.js"),__vite__mapDeps([108,1,2,3,36,31,32,22,8,17,13,7,46,15,16,90]),import.meta.url),"./src/components/ui/layout/Center.stories.tsx":async()=>t(()=>import("./Center.stories-C6NWDIFT.js"),__vite__mapDeps([109,1,2,3,89,52,8,13,7,46,31,32,22,17,15,16,90]),import.meta.url),"./src/components/ui/layout/Column.stories.tsx":async()=>t(()=>import("./Column.stories-Ca7j0P0o.js"),__vite__mapDeps([110,1,2,3,55,29,30,31,32,22,8,17,13,7,16,90]),import.meta.url),"./src/components/ui/layout/Row.stories.tsx":async()=>t(()=>import("./Row.stories-CoTMFviY.js"),__vite__mapDeps([111,1,2,3,19,20,21,22,23,24,5,6,7,8,25,26,12,13,27,28,29,30,31,32,17,33,34,35,11,14,15,36,37,38,39,16,90]),import.meta.url),"./src/components/ui/layout/Size.stories.tsx":async()=>t(()=>import("./Size.stories-DTGdjPCR.js"),__vite__mapDeps([112,1,2,3,70,30,13,8,7,46,31,32,22,17,15,16,90]),import.meta.url),"./src/components/ui/media/Figure.stories.tsx":async()=>t(()=>import("./Figure.stories-ClUqZiEM.js"),__vite__mapDeps([113,1,2,3,31,32,22,8,17,13,7,114]),import.meta.url),"./src/components/ui/media/FigureWithFacadesBackground.stories.tsx":async()=>t(()=>import("./FigureWithFacadesBackground.stories-CbdUg9P5.js"),__vite__mapDeps([115,1,2,3,116,37,24,5,6,7,8,38,31,32,22,17,13,114]),import.meta.url),"./src/components/ui/media/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories-DPBXIphH.js"),__vite__mapDeps([117,33,1,2,3,34,35,8,28,29,30,31,32,22,17,13,7,11,6,12,5,14,15,36,37,24,38,39]),import.meta.url),"./src/components/ui/media/Image.stories.tsx":async()=>t(()=>import("./Image.stories-ZfBjdKKw.js"),__vite__mapDeps([118,1,2,3,25,6,7,8,14,12,13,31,32,22,17,38]),import.meta.url),"./src/components/ui/media/ImageFallback.stories.tsx":async()=>t(()=>import("./ImageFallback.stories-BCOLL1Qz.js"),__vite__mapDeps([119,1,2,3,31,32,22,8,17,13,7]),import.meta.url),"./src/components/ui/media/errors/ConstructionWorkDetailFigure.stories.tsx":async()=>t(()=>import("./ConstructionWorkDetailFigure.stories-CGjEF6j_.js"),__vite__mapDeps([120,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ConstructionWorkFigure.stories.tsx":async()=>t(()=>import("./ConstructionWorkFigure.stories-BJdSf7MD.js"),__vite__mapDeps([121,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ModulesFigure.stories.tsx":async()=>t(()=>import("./ModulesFigure.stories-DYHz8eiD.js"),__vite__mapDeps([122,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/ReportProblemFigure.stories.tsx":async()=>t(()=>import("./ReportProblemFigure.stories-D33HwCLU.js"),__vite__mapDeps([123,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/UpdateFigure.stories.tsx":async()=>t(()=>import("./UpdateFigure.stories-AJoakePP.js"),__vite__mapDeps([124,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/media/errors/WasteGuideFigure.stories.tsx":async()=>t(()=>import("./WasteGuideFigure.stories-BgZcjvMS.js"),__vite__mapDeps([125,1,2,3,34,35,8]),import.meta.url),"./src/components/ui/text/HtmlContent.stories.tsx":async()=>t(()=>import("./HtmlContent.stories-AMd582sk.js"),__vite__mapDeps([126,1,2,3,73,74,8,75,32,76,6,7,10,43,12,13,9,5,11,14,15,21,22,23,24,25,26,77,78,79,38,35,55,29,30,31,17,28,46,80,27,37,81,42,61]),import.meta.url),"./src/components/ui/text/Link.stories.tsx":async()=>t(()=>import("./Link.stories-Bsr9sC9b.js"),__vite__mapDeps([127,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,27,28,29,30,70,33,34,35,11,14,15,36,37,38,39,46]),import.meta.url),"./src/components/ui/text/Paragraph.stories.tsx":async()=>t(()=>import("./Paragraph.stories-CqC3Nd_V.js"),__vite__mapDeps([128,1,2,3,56,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/text/Phrase.stories.tsx":async()=>t(()=>import("./Phrase.stories-1WGaWSS3.js"),__vite__mapDeps([129,1,2,3,46,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/text/Tag.stories.tsx":async()=>t(()=>import("./Tag.stories-BLgDQ_OS.js"),__vite__mapDeps([130,1,2,3,56,31,32,22,8,17,15,7,13]),import.meta.url),"./src/components/ui/text/Title.stories.tsx":async()=>t(()=>import("./Title.stories-Dglf4BGk.js"),__vite__mapDeps([131,1,2,3,57,31,32,22,8,17,15,7]),import.meta.url),"./src/components/ui/text/list/List.stories.tsx":async()=>t(()=>import("./List.stories-BTw7GTgY.js"),__vite__mapDeps([132,1,2,3,84,8,13,7,55,29,30,31,32,22,17,28,46,15,80,27,37,24,5,6,38,44]),import.meta.url),"./src/modules/city-pass/components/card-display/CityPassCard.stories.tsx":async()=>t(()=>import("./CityPassCard.stories-TqChsdR9.js"),__vite__mapDeps([133,1,2,3,50,20,21,22,23,24,5,6,7,8,25,26,12,13,51,52,31,32,17,55,29,30,28,33,34,35,11,14,15,36,37,38,39,56,57,44]),import.meta.url)};async function D(o){return I[o]()}const{composeConfigs:V,PreviewWeb:v,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,A=async(o=[])=>{const _=await Promise.all([o.at(0)??t(()=>import("./entry-preview-BLv4HfPv.js"),__vite__mapDeps([134,135,2,3,32]),import.meta.url),o.at(1)??t(()=>import("./entry-preview-docs-BiXdOg7-.js"),__vite__mapDeps([136,135,137,3,35,138,2]),import.meta.url),o.at(2)??t(()=>import("./preview-DkERHl94.js"),[],import.meta.url),o.at(3)??t(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),o.at(4)??t(()=>import("./preview-D77C14du.js"),__vite__mapDeps([139,138]),import.meta.url),o.at(5)??t(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),o.at(6)??t(()=>import("./preview-CFgKly6U.js"),[],import.meta.url),o.at(7)??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([140,138]),import.meta.url),o.at(8)??t(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),o.at(9)??t(()=>import("./preview-BA20xn34.js"),[],import.meta.url),o.at(10)??t(()=>import("./preview-DkszDCHZ.js"),__vite__mapDeps([141,1,2,3,37,24,5,6,7,8,38,31,32,22,17,23,25,21,39,75,13,116,49,50,20,26,12,51,52,27,53,28,29,30,15,36,33,34,35,11,14,57,74,76,10,43,9,77,78,79,55,69,46,19,99,96,89,84,56,4,93,81,86,66,88,142,143]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new v(D,A);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/index-CLsvOwO0.js b/assets/index-vMRfdoe9.js similarity index 93% rename from assets/index-CLsvOwO0.js rename to assets/index-vMRfdoe9.js index 3b8bb69a..947a1170 100644 --- a/assets/index-CLsvOwO0.js +++ b/assets/index-vMRfdoe9.js @@ -1 +1 @@ -import{f as d,n as S,F as B,$ as L,L as C,h as H,B as u,e as g,m as y,g as I,v as h,u as k,I as P,t as W,X as A,x as F,w as x,b as D,y as R,D as f,a as v,C as E,E as M,T as N,c as q,_ as w,S as O,R as U,O as Z,d as j,G as z,i as G,A as J,j as K,P as Q,k as V,l as X,o as Y,p as _,q as $,r as aa,z as sa,H as oa,s as ta,J as ea,K as ra,M as pa,N as ia,Q as na,U as ma,V as la,W as ca,Y as Ta,Z as ba,a0 as da,a1 as Sa,a2 as Ba,a3 as La,a4 as Ca,a5 as Ha,a6 as ua,a7 as ga,a8 as ya,a9 as Ia,aa as ha,ab as ka,ac as Pa,ad as Wa}from"./DocsRenderer-CFRXHY34-DiIHUooj.js";import"./iframe-kIyOmV27.js";import"../sb-preview/runtime.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-BMk6Tmu2.js";import"./extends-CF3RwP-h.js";import"./index-DF3CPj03.js";import"./index-DrFu-skq.js";import"./react-18-CiRR_loB.js";import"./client-DDXjyz62.js";export{d as A,S as ActionBar,B as AddonPanel,L as Badge,C as Bar,H as Blockquote,u as Button,g as ClipboardCode,y as Code,I as DL,h as Div,k as DocumentWrapper,P as EmptyTabContent,W as ErrorFormatter,A as FlexBar,F as Form,x as H1,D as H2,R as H3,f as H4,v as H5,E as H6,M as HR,N as IconButton,q as IconButtonSkeleton,w as Icons,O as Img,U as LI,Z as Link,j as ListItem,z as Loader,G as Modal,J as OL,K as P,Q as Placeholder,V as Pre,X as ResetWrapper,Y as ScrollArea,_ as Separator,$ as Spaced,aa as Span,sa as StorybookIcon,oa as StorybookLogo,ta as Symbols,ea as SyntaxHighlighter,ra as TT,pa as TabBar,ia as TabButton,na as TabWrapper,ma as Table,la as Tabs,ca as TabsState,Ta as TooltipLinkList,ba as TooltipMessage,da as TooltipNote,Sa as UL,Ba as WithTooltip,La as WithTooltipPure,Ca as Zoom,Ha as codeCommon,ua as components,ga as createCopyToClipboardFunction,ya as getStoryHref,Ia as icons,ha as interleaveSeparators,ka as nameSpaceClassNames,Pa as resetComponents,Wa as withReset}; +import{f as d,n as S,F as B,$ as L,L as C,h as H,B as u,e as g,m as y,g as I,v as h,u as k,I as P,t as W,X as A,x as F,w as x,b as D,y as R,D as f,a as v,C as E,E as M,T as N,c as q,_ as w,S as O,R as U,O as Z,d as j,G as z,i as G,A as J,j as K,P as Q,k as V,l as X,o as Y,p as _,q as $,r as aa,z as sa,H as oa,s as ta,J as ea,K as ra,M as pa,N as ia,Q as na,U as ma,V as la,W as ca,Y as Ta,Z as ba,a0 as da,a1 as Sa,a2 as Ba,a3 as La,a4 as Ca,a5 as Ha,a6 as ua,a7 as ga,a8 as ya,a9 as Ia,aa as ha,ab as ka,ac as Pa,ad as Wa}from"./DocsRenderer-CFRXHY34-DQRRfxKV.js";import"./iframe-DRbcjd5I.js";import"../sb-preview/runtime.js";import"./index-mfbfsM12.js";import"./_commonjsHelpers-BosuxZz1.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./jsx-runtime-Bxcv0yjW.js";import"./index-BMk6Tmu2.js";import"./extends-CF3RwP-h.js";import"./index-DF3CPj03.js";import"./index-DrFu-skq.js";import"./react-18-CiRR_loB.js";import"./client-DDXjyz62.js";export{d as A,S as ActionBar,B as AddonPanel,L as Badge,C as Bar,H as Blockquote,u as Button,g as ClipboardCode,y as Code,I as DL,h as Div,k as DocumentWrapper,P as EmptyTabContent,W as ErrorFormatter,A as FlexBar,F as Form,x as H1,D as H2,R as H3,f as H4,v as H5,E as H6,M as HR,N as IconButton,q as IconButtonSkeleton,w as Icons,O as Img,U as LI,Z as Link,j as ListItem,z as Loader,G as Modal,J as OL,K as P,Q as Placeholder,V as Pre,X as ResetWrapper,Y as ScrollArea,_ as Separator,$ as Spaced,aa as Span,sa as StorybookIcon,oa as StorybookLogo,ta as Symbols,ea as SyntaxHighlighter,ra as TT,pa as TabBar,ia as TabButton,na as TabWrapper,ma as Table,la as Tabs,ca as TabsState,Ta as TooltipLinkList,ba as TooltipMessage,da as TooltipNote,Sa as UL,Ba as WithTooltip,La as WithTooltipPure,Ca as Zoom,Ha as codeCommon,ua as components,ga as createCopyToClipboardFunction,ya as getStoryHref,Ia as icons,ha as interleaveSeparators,ka as nameSpaceClassNames,Pa as resetComponents,Wa as withReset}; diff --git a/assets/preview-DhFGAmVP.js b/assets/preview-BA20xn34.js similarity index 93% rename from assets/preview-DhFGAmVP.js rename to assets/preview-BA20xn34.js index 30d72559..54a8a258 100644 --- a/assets/preview-DhFGAmVP.js +++ b/assets/preview-BA20xn34.js @@ -1,2 +1,2 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./axe-Ct0p1Ykl.js","./_commonjsHelpers-BosuxZz1.js"])))=>i.map(i=>d[i]); -import{_ as S}from"./iframe-kIyOmV27.js";import"../sb-preview/runtime.js";const{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:U}=__STORYBOOK_MODULE_GLOBAL__;var o="storybook/a11y",y=`${o}/result`,L=`${o}/request`,d=`${o}/running`,A=`${o}/error`,T=`${o}/manual`,r={RESULT:y,REQUEST:L,RUNNING:d,ERROR:A,MANUAL:T},{document:g}=U,a=f.getChannel(),l=!1,_,R={config:{},options:{}},v=async(n,e)=>{e!=null&&e.manual||await i(n,e??R)},i=async(n,e=R)=>{_=n;try{if(!l){l=!0,a.emit(r.RUNNING);let{default:t}=await S(()=>import("./axe-Ct0p1Ykl.js").then(N=>N.a),__vite__mapDeps([0,1]),import.meta.url),{element:m="#storybook-root",config:s,options:O={}}=e,E=g.querySelector(m);if(!E)return;t.reset(),s&&t.configure(s);let c=await t.run(E,O),u=JSON.parse(JSON.stringify(c));_===n?a.emit(r.RESULT,u):(l=!1,i(_))}}catch(t){a.emit(r.ERROR,t)}finally{l=!1}};a.on(r.REQUEST,v);a.on(r.MANUAL,i); +import{_ as S}from"./iframe-DRbcjd5I.js";import"../sb-preview/runtime.js";const{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:U}=__STORYBOOK_MODULE_GLOBAL__;var o="storybook/a11y",y=`${o}/result`,L=`${o}/request`,d=`${o}/running`,A=`${o}/error`,T=`${o}/manual`,r={RESULT:y,REQUEST:L,RUNNING:d,ERROR:A,MANUAL:T},{document:g}=U,a=f.getChannel(),l=!1,_,R={config:{},options:{}},v=async(n,e)=>{e!=null&&e.manual||await i(n,e??R)},i=async(n,e=R)=>{_=n;try{if(!l){l=!0,a.emit(r.RUNNING);let{default:t}=await S(()=>import("./axe-Ct0p1Ykl.js").then(N=>N.a),__vite__mapDeps([0,1]),import.meta.url),{element:m="#storybook-root",config:s,options:O={}}=e,E=g.querySelector(m);if(!E)return;t.reset(),s&&t.configure(s);let c=await t.run(E,O),u=JSON.parse(JSON.stringify(c));_===n?a.emit(r.RESULT,u):(l=!1,i(_))}}catch(t){a.emit(r.ERROR,t)}finally{l=!1}};a.on(r.REQUEST,v);a.on(r.MANUAL,i); diff --git a/assets/preview-ClbGmyEm.js b/assets/preview-DkERHl94.js similarity index 80% rename from assets/preview-ClbGmyEm.js rename to assets/preview-DkERHl94.js index 2964d5db..bed70149 100644 --- a/assets/preview-ClbGmyEm.js +++ b/assets/preview-DkERHl94.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-DiIHUooj.js","./iframe-kIyOmV27.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./jsx-runtime-Bxcv0yjW.js","./index-BMk6Tmu2.js","./extends-CF3RwP-h.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./react-18-CiRR_loB.js","./client-DDXjyz62.js"])))=>i.map(i=>d[i]); -import{_ as a}from"./iframe-kIyOmV27.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-DiIHUooj.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-DQRRfxKV.js","./iframe-DRbcjd5I.js","./index-mfbfsM12.js","./_commonjsHelpers-BosuxZz1.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./jsx-runtime-Bxcv0yjW.js","./index-BMk6Tmu2.js","./extends-CF3RwP-h.js","./index-DF3CPj03.js","./index-DrFu-skq.js","./react-18-CiRR_loB.js","./client-DDXjyz62.js"])))=>i.map(i=>d[i]); +import{_ as a}from"./iframe-DRbcjd5I.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-DQRRfxKV.js").then(r=>r.ak),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; diff --git a/assets/preview-D78lRyGx.js b/assets/preview-DkszDCHZ.js similarity index 99% rename from assets/preview-D78lRyGx.js rename to assets/preview-DkszDCHZ.js index 769378d9..13ce65b8 100644 --- a/assets/preview-D78lRyGx.js +++ b/assets/preview-DkszDCHZ.js @@ -1,4 +1,4 @@ -var KE=Object.defineProperty;var $E=(t,e,n)=>e in t?KE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var di=(t,e,n)=>$E(t,typeof e!="symbol"?e+"":e,n);import{j as X}from"./jsx-runtime-Bxcv0yjW.js";import{u as qE,D as jE}from"./useDeviceContext-DGl4H2w7.js";import{g as QE,R as ja,b as ZE,c as JE,d as De,e as ie,a as Bt,u as ji,C as kn,h as ex,n as tx,T as nx,f as Qi,i as RA,S as Es,p as ua,j as yv,k as $o,l as Zi,m as FA,o as Iv,t as rx,q as wv,r as ku,v as Sv,w as bv,x as I0,y as ix,z as ax,A as Jr,B as kA,D as sx,F as ox,G as lx}from"./useThemable-CjWxbHxI.js";import{r as b,R as xe}from"./index-mfbfsM12.js";import{M as nt,e as ux,f as Lr,g as cx,h as _v,i as dx,u as Dv,E as Ov,A as Ax}from"./useTrackException-BhQuYC5A.js";import{N as MA,r as fx,C as BA,q as Tv,d as Jt,V as hx}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import{P as ue,N as Pv}from"./index-DOpK3Ow6.js";import{N as w0,R as pd}from"./NativeEventEmitter-Cj1pQcwn.js";import{u as Ir}from"./useTheme-CJIBCVMY.js";import{g as Cn,a as us,c as $}from"./_commonjsHelpers-BosuxZz1.js";import{f as px,h as vx,s as ve,p as S0}from"./index-CEE--Juu.js";import{f as zt}from"./index-iQAZAIR7.js";import{V as ge}from"./index-BDsvWohO.js";import{u as b0}from"./index-DbcoTUCW.js";import{I as vd}from"./IconButton-Cyqcuey7.js";import{B as qo}from"./Box-uk0d72u3.js";import{R as Ni}from"./Row-BXpfxHoR.js";import{I as cs}from"./Icon-CO3hZ5HW.js";import{T as gx}from"./Title-2Den3Qhs.js";import{S as _0,P as fr,a as Rv}from"./index-DYSHDArR.js";import{c as mx,i as Fv,e as NA,d as kv,f as Cx,A as Ex}from"./development-DYCnWZjk.js";import{K as Mv,a as xx,r as jo,I as gd,S as GA,U as yx,L as LA}from"./index-eRgc22Hn.js";import{C as Ti}from"./Column-DVJ0Grcf.js";import{G as Co}from"./Gutter-DFUJhG4q.js";import{P as Gi}from"./Phrase-DprhL3Se.js";import{B as Ix}from"./Button-CXn0Rl0f.js";import{a as Ji,F as Bv,A as ce,E as VA}from"./Animated-C23eizOh.js";import{P as wx}from"./PressableBase-CPU35BDr.js";import{T as D0}from"./index-Cnrjv3xk.js";import{N as Sx,a as bx,u as _x,m as HA,c as Dx,b as Ox,d as Tx,T as Px}from"./Tooltip-DYiVxnJv.js";import{u as Nv}from"./useIsScreenReaderEnabled-BGYkQQWr.js";import{P as Rx}from"./types-BJ_48vsK.js";import{P as Fx}from"./Pressable-HfRmqOUq.js";import{I as Gv,P as kx}from"./index-DcZXOGQR.js";import{U as Mx}from"./TextAncestorContext-Cvz4PlE2.js";import{T as Bx}from"./index-BypDj3rK.js";import{S as Nx}from"./index-CsseZgnR.js";import{H as UA}from"./HideFromAccessibility-DFWSEXqq.js";import{P as Gx}from"./PleaseWait-kuCXMYoa.js";import{l as Lx}from"./layoutStyles-DflBxpuh.js";import{P as Vx}from"./Paragraph-CKYtcIcp.js";import"./index-8JwjhRSi.js";import{a as Hx}from"./useAccessibilityFocus-Djl26ZxP.js";import{D as Ux}from"./duration-A4BOymd5.js";import{u as Lv}from"./index-C3bJM-gU.js";import{A as Wx}from"./index-XPwQYiUg.js";import{A as Xx}from"./index-kJeFfQx-.js";import{B as Yx}from"./Badge-CZ5nSfIQ.js";import{r as zx}from"./index-BMk6Tmu2.js";import{c as Kx}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{c as $x}from"./index-Bcpfmd17.js";import{i as qx}from"./Fader-BysHR2L8.js";import{b as Ai}from"./base-color-CZpuL6yQ.js";import"./config-BZnShabN.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-Dk74W0Oi.js";import"./client-DDXjyz62.js";import"./extends-CF3RwP-h.js";import"./index-S14X4tbk.js";import"./index-5TFaNx6b.js";import"./index-ZuFZ7TrF.js";import"./Triangle-Amn4R_mH.js";import"./Center-CqG4tBOn.js";import"./SingleSelectable-Bg8zzmoU.js";let jx="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",WA=(t=21)=>{let e="",n=t;for(;n--;)e+=jx[Math.random()*64|0];return e};const Qx='Another navigator is already registered for this container. You likely have multiple navigators under a single "NavigationContainer" or "Screen". Make sure each navigator is under a separate "Screen" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.',Zx=b.createContext(void 0);function Jx(t){let{children:e}=t;const n=b.useRef(),r=b.useMemo(()=>({register(i){const a=n.current;if(a!==void 0&&i!==a)throw new Error(Qx);n.current=i},unregister(i){const a=n.current;i===a&&(n.current=void 0)}}),[]);return b.createElement(Zx.Provider,{value:r},e)}function Wa(t){var e,n;let r=t;for(;((i=r)===null||i===void 0?void 0:i.routes[r.index??0].state)!=null;){var i;r=r.routes[r.index??0].state}return(e=r)===null||e===void 0?void 0:e.routes[((n=r)===null||n===void 0?void 0:n.index)??0]}const Vv=b.createContext({onDispatchAction:()=>{},onOptionsChange:()=>{}}),e1=b.createContext(void 0),ca="Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.",md=b.createContext({isDefault:!0,get getKey(){throw new Error(ca)},get setKey(){throw new Error(ca)},get getState(){throw new Error(ca)},get setState(){throw new Error(ca)},get getIsInitial(){throw new Error(ca)}}),t1=b.createContext(void 0);function n1(){const{current:t}=b.useRef({action:[],focus:[]}),e=b.useCallback((n,r)=>{t[n].push(r);let i=!1;return()=>{const a=t[n].indexOf(r);!i&&a>-1&&(i=!0,t[n].splice(a,1))}},[t]);return{listeners:t,addListener:e}}function r1(t){const e=b.useRef(t);b.useEffect(()=>{e.current=t});const n=b.useRef(Object.create(null)),r=b.useCallback(a=>{const s=(l,u)=>{const c=n.current[l]?n.current[l][a]:void 0;if(!c)return;const A=c.indexOf(u);A>-1&&c.splice(A,1)};return{addListener:(l,u)=>{n.current[l]=n.current[l]||{},n.current[l][a]=n.current[l][a]||[],n.current[l][a].push(u);let c=!1;return()=>{c||(c=!0,s(l,u))}},removeListener:s}},[]),i=b.useCallback(a=>{var s,o;let{type:l,data:u,target:c,canPreventDefault:A}=a;const d=n.current[l]||{},f=c!==void 0?(s=d[c])===null||s===void 0?void 0:s.slice():[].concat(...Object.keys(d).map(h=>d[h])).filter((h,v,E)=>E.lastIndexOf(h)===v),p={get type(){return l}};if(c!==void 0&&Object.defineProperty(p,"target",{enumerable:!0,get(){return c}}),u!==void 0&&Object.defineProperty(p,"data",{enumerable:!0,get(){return u}}),A){let h=!1;Object.defineProperties(p,{defaultPrevented:{enumerable:!0,get(){return h}},preventDefault:{enumerable:!0,value(){h=!0}}})}return(o=e.current)===null||o===void 0||o.call(e,p),f==null||f.forEach(h=>h(p)),p},[]);return b.useMemo(()=>({create:r,emit:i}),[r,i])}function i1(){const{current:t}=b.useRef(Object.assign(Object.create(null),{getState:{},beforeRemove:{}})),e=b.useCallback((n,r,i)=>(t[n][r]=i,()=>{t[n][r]=void 0}),[t]);return{keyedListeners:t,addKeyedListener:e}}function a1(t){let{key:e,options:n,navigation:r}=t;const i=b.useRef(n),a=b.useRef({}),{onOptionsChange:s}=b.useContext(Vv),{addOptionsGetter:o}=b.useContext(md),l=b.useCallback(()=>{const d=(r==null?void 0:r.isFocused())??!0,f=Object.keys(a.current).length;d&&!f&&s(i.current??{})},[r,s]);b.useEffect(()=>(i.current=n,l(),r==null?void 0:r.addListener("focus",l)),[r,n,l]);const u=b.useCallback(()=>{for(let p in a.current)if(a.current.hasOwnProperty(p)){var d,f;const h=(d=(f=a.current)[p])===null||d===void 0?void 0:d.call(f);if(h!==null)return h}return null},[]),c=b.useCallback(()=>{if(!((r==null?void 0:r.isFocused())??!0))return null;const f=u();return f!==null?f:i.current},[r,u]);return b.useEffect(()=>o==null?void 0:o(e,c),[c,o,e]),{addOptionsGetter:b.useCallback((d,f)=>(a.current[d]=f,l(),()=>{delete a.current[d],l()}),[l]),getCurrentOptions:c}}const XA="Couldn't find a schedule context.",s1=b.createContext({scheduleUpdate(){throw new Error(XA)},flushUpdates(){throw new Error(XA)}}),YA={};function o1(t){const e=b.useRef(YA),n=b.useRef(!1),r=b.useRef(!0);b.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),e.current===YA&&(e.current=typeof t=="function"?t():t);const[i,a]=b.useState(e.current),s=b.useCallback(()=>e.current,[]),o=b.useCallback(A=>{A===e.current||!r.current||(e.current=A,n.current||a(A))},[]),l=b.useCallback(A=>{n.current=!0;try{A()}finally{n.current=!1}},[]),u=b.useCallback(()=>{r.current&&a(e.current)},[]);i!==e.current&&a(e.current);const c=e.current;return b.useDebugValue(c),[c,s,o,l,u]}const Hv=t=>{if(t===void 0)return;const{key:e,routeNames:n,...r}=t;return{...r,stale:!0,routes:t.routes.map(i=>i.state===void 0?i:{...i,state:Hv(i.state)})}},l1=b.forwardRef(function(e,n){let{initialState:r,onStateChange:i,onUnhandledAction:a,independent:s,children:o}=e;if(!b.useContext(md).isDefault&&!s)throw new Error("Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.");const[u,c,A,d,f]=o1(()=>Hv(r??void 0)),p=b.useRef(!0),h=b.useRef(),v=b.useCallback(()=>h.current,[]),E=b.useCallback(Y=>{h.current=Y},[]),{listeners:C,addListener:m}=n1(),{keyedListeners:g,addKeyedListener:y}=i1(),x=b.useCallback(Y=>{C.focus[0]==null?console.error(MA):C.focus[0](ee=>ee.dispatch(Y))},[C.focus]),w=b.useCallback(()=>{if(C.focus[0]==null)return!1;const{result:Y,handled:ee}=C.focus[0](te=>te.canGoBack());return ee?Y:!1},[C.focus]),S=b.useCallback(Y=>{var ee,te;const re=(Y==null?void 0:Y.key)??((ee=(te=g.getState).root)===null||ee===void 0?void 0:ee.call(te).key);re==null?console.error(MA):C.focus[0](Q=>Q.dispatch({...fx(Y),target:re}))},[g.getState,C.focus]),D=b.useCallback(()=>{var Y,ee;return(Y=(ee=g.getState).root)===null||Y===void 0?void 0:Y.call(ee)},[g.getState]),I=b.useCallback(()=>{const Y=D();return Y==null?void 0:Wa(Y)},[D]),_=r1(),{addOptionsGetter:O,getCurrentOptions:T}=a1({}),R=b.useMemo(()=>({...Object.keys(BA).reduce((Y,ee)=>(Y[ee]=function(){return x(BA[ee](...arguments))},Y),{}),..._.create("root"),dispatch:x,resetRoot:S,isFocused:()=>!0,canGoBack:w,getParent:()=>{},getState:()=>U.current,getRootState:D,getCurrentRoute:I,getCurrentOptions:T,isReady:()=>C.focus[0]!=null,setOptions:()=>{throw new Error("Cannot call setOptions outside a screen")}}),[w,x,_,T,I,D,C.focus,S]);b.useImperativeHandle(n,()=>R,[R]);const P=b.useCallback((Y,ee)=>{_.emit({type:"__unsafe_action__",data:{action:Y,noop:ee,stack:M.current}})},[_]),F=b.useRef(),H=b.useCallback(Y=>{F.current!==Y&&(F.current=Y,_.emit({type:"options",data:{options:Y}}))},[_]),M=b.useRef(),V=b.useMemo(()=>({addListener:m,addKeyedListener:y,onDispatchAction:P,onOptionsChange:H,stackRef:M}),[m,y,P,H]),W=b.useMemo(()=>({scheduleUpdate:d,flushUpdates:f}),[d,f]),B=b.useRef(!0),G=b.useCallback(()=>B.current,[]),N=b.useMemo(()=>({state:u,getState:c,setState:A,getKey:v,setKey:E,getIsInitial:G,addOptionsGetter:O}),[u,c,A,v,E,G,O]),k=b.useRef(i),U=b.useRef(u);b.useEffect(()=>{B.current=!1,k.current=i,U.current=u}),b.useEffect(()=>{const Y=D();_.emit({type:"state",data:{state:u}}),!p.current&&k.current&&k.current(Y),p.current=!1},[D,_,u]);const z=b.useCallback(Y=>{},[]);let K=b.createElement(Sx.Provider,{value:R},b.createElement(s1.Provider,{value:W},b.createElement(Vv.Provider,{value:V},b.createElement(md.Provider,{value:N},b.createElement(t1.Provider,{value:a??z},b.createElement(Jx,null,o))))));return s&&(K=b.createElement(e1.Provider,{value:void 0},b.createElement(bx.Provider,{value:void 0},K))),K});function Uv(t,e){var n;const r=e?Wv(e):{},i=t.index!=null?t.routes.slice(0,t.index+1):t.routes;if(i.length===0)return;if(!(i.length===1&&i[0].key===void 0||i.length===2&&i[0].key===void 0&&i[0].name===(r==null?void 0:r.initialRouteName)&&i[1].key===void 0))return{type:"RESET",payload:t};const a=t.routes[t.index??t.routes.length-1];let s=a==null?void 0:a.state,o=r==null||(n=r.screens)===null||n===void 0?void 0:n[a==null?void 0:a.name],l={...a.params},u=a?{name:a.name,path:a.path,params:l}:void 0;for(;s;){var c,A,d;if(s.routes.length===0)return;const f=s.index!=null?s.routes.slice(0,s.index+1):s.routes,p=f[f.length-1];if(Object.assign(l,{initial:void 0,screen:void 0,params:void 0,state:void 0}),f.length===1&&f[0].key===void 0)l.initial=!0,l.screen=p.name;else if(f.length===2&&f[0].key===void 0&&f[0].name===((c=o)===null||c===void 0?void 0:c.initialRouteName)&&f[1].key===void 0)l.initial=!1,l.screen=p.name;else{l.state=s;break}p.state?(l.params={...p.params},l=l.params):(l.path=p.path,l.params=p.params),s=p.state,o=(A=o)===null||A===void 0||(d=A.screens)===null||d===void 0?void 0:d[p.name]}if(u)return{type:"NAVIGATE",payload:u}}const Wv=t=>typeof t=="object"&&t!=null?{initialRouteName:t.initialRouteName,screens:t.screens!=null?u1(t.screens):void 0}:{},u1=t=>Object.entries(t).reduce((e,n)=>{let[r,i]=n;return e[r]=Wv(i),e},{}),c1=Symbol("CHILD_STATE");function d1(t){const e=t[c1]??t.state,n=t.params;return e?e.routes[e.index??(typeof e.type=="string"&&e.type!=="stack"?0:e.routes.length-1)].name:typeof(n==null?void 0:n.screen)=="string"?n.screen:void 0}function Xv(t){return t.reduce((e,n)=>{let[r,i]=n;if(e.hasOwnProperty(r))throw new Error(`A value for key '${r}' already exists in the object.`);return e[r]=i,e},{})}const zA=t=>t.map(e=>`- ${e}`).join(` +var KE=Object.defineProperty;var $E=(t,e,n)=>e in t?KE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var di=(t,e,n)=>$E(t,typeof e!="symbol"?e+"":e,n);import{j as X}from"./jsx-runtime-Bxcv0yjW.js";import{u as qE,D as jE}from"./useDeviceContext-DGl4H2w7.js";import{g as QE,R as ja,b as ZE,c as JE,d as De,e as ie,a as Bt,u as ji,C as kn,h as ex,n as tx,T as nx,f as Qi,i as RA,S as Es,p as ua,j as yv,k as $o,l as Zi,m as FA,o as Iv,t as rx,q as wv,r as ku,v as Sv,w as bv,x as I0,y as ix,z as ax,A as Jr,B as kA,D as sx,F as ox,G as lx}from"./useThemable-CjWxbHxI.js";import{r as b,R as xe}from"./index-mfbfsM12.js";import{M as nt,e as ux,f as Lr,g as cx,h as _v,i as dx,u as Dv,E as Ov,A as Ax}from"./useTrackException-BhQuYC5A.js";import{N as MA,r as fx,C as BA,q as Tv,d as Jt,V as hx}from"./usePiwikTrackCustomEventFromProps-BQaL6XvS.js";import{P as ue,N as Pv}from"./index-DOpK3Ow6.js";import{N as w0,R as pd}from"./NativeEventEmitter-Cj1pQcwn.js";import{u as Ir}from"./useTheme-CJIBCVMY.js";import{g as Cn,a as us,c as $}from"./_commonjsHelpers-BosuxZz1.js";import{f as px,h as vx,s as ve,p as S0}from"./index-CEE--Juu.js";import{f as zt}from"./index-iQAZAIR7.js";import{V as ge}from"./index-BDsvWohO.js";import{u as b0}from"./index-DbcoTUCW.js";import{I as vd}from"./IconButton-Cyqcuey7.js";import{B as qo}from"./Box-uk0d72u3.js";import{R as Ni}from"./Row-BXpfxHoR.js";import{I as cs}from"./Icon-DcC-yiY8.js";import{T as gx}from"./Title-9ScEYPym.js";import{S as _0,P as fr,a as Rv}from"./index-DYSHDArR.js";import{c as mx,i as Fv,e as NA,d as kv,f as Cx,A as Ex}from"./development-DYCnWZjk.js";import{K as Mv,a as xx,r as jo,I as gd,S as GA,U as yx,L as LA}from"./index-eRgc22Hn.js";import{C as Ti}from"./Column-DVJ0Grcf.js";import{G as Co}from"./Gutter-DFUJhG4q.js";import{P as Gi}from"./Phrase-t0rOiClQ.js";import{B as Ix}from"./Button-DAm4UwbF.js";import{a as Ji,F as Bv,A as ce,E as VA}from"./Animated-C23eizOh.js";import{P as wx}from"./PressableBase-CPU35BDr.js";import{T as D0}from"./index-Cnrjv3xk.js";import{N as Sx,a as bx,u as _x,m as HA,c as Dx,b as Ox,d as Tx,T as Px}from"./Tooltip-Bm0QTu1O.js";import{u as Nv}from"./useIsScreenReaderEnabled-BGYkQQWr.js";import{P as Rx}from"./types-BJ_48vsK.js";import{P as Fx}from"./Pressable-HfRmqOUq.js";import{I as Gv,P as kx}from"./index-DcZXOGQR.js";import{U as Mx}from"./TextAncestorContext-Cvz4PlE2.js";import{T as Bx}from"./index-BypDj3rK.js";import{S as Nx}from"./index-CsseZgnR.js";import{H as UA}from"./HideFromAccessibility-DFWSEXqq.js";import{P as Gx}from"./PleaseWait-C5ES8__x.js";import{l as Lx}from"./layoutStyles-DflBxpuh.js";import{P as Vx}from"./Paragraph-DkRs_aGj.js";import"./index-8JwjhRSi.js";import{a as Hx}from"./useAccessibilityFocus-Djl26ZxP.js";import{D as Ux}from"./duration-A4BOymd5.js";import{u as Lv}from"./index-C3bJM-gU.js";import{A as Wx}from"./index-XPwQYiUg.js";import{A as Xx}from"./index-kJeFfQx-.js";import{B as Yx}from"./Badge-CZ5nSfIQ.js";import{r as zx}from"./index-BMk6Tmu2.js";import{c as Kx}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{c as $x}from"./index-Bcpfmd17.js";import{i as qx}from"./Fader-BysHR2L8.js";import{b as Ai}from"./base-color-CZpuL6yQ.js";import"./config-BZnShabN.js";import"./mapCrossAxisAlignment-DpnuLLqj.js";import"./mapMainAxisAlignment-BOa0GzUh.js";import"./index-Dk74W0Oi.js";import"./client-DDXjyz62.js";import"./extends-CF3RwP-h.js";import"./index-S14X4tbk.js";import"./index-5TFaNx6b.js";import"./index-ZuFZ7TrF.js";import"./Triangle-Amn4R_mH.js";import"./Center-CqG4tBOn.js";import"./SingleSelectable-Bg8zzmoU.js";let jx="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",WA=(t=21)=>{let e="",n=t;for(;n--;)e+=jx[Math.random()*64|0];return e};const Qx='Another navigator is already registered for this container. You likely have multiple navigators under a single "NavigationContainer" or "Screen". Make sure each navigator is under a separate "Screen" container. See https://reactnavigation.org/docs/nesting-navigators for a guide on nesting.',Zx=b.createContext(void 0);function Jx(t){let{children:e}=t;const n=b.useRef(),r=b.useMemo(()=>({register(i){const a=n.current;if(a!==void 0&&i!==a)throw new Error(Qx);n.current=i},unregister(i){const a=n.current;i===a&&(n.current=void 0)}}),[]);return b.createElement(Zx.Provider,{value:r},e)}function Wa(t){var e,n;let r=t;for(;((i=r)===null||i===void 0?void 0:i.routes[r.index??0].state)!=null;){var i;r=r.routes[r.index??0].state}return(e=r)===null||e===void 0?void 0:e.routes[((n=r)===null||n===void 0?void 0:n.index)??0]}const Vv=b.createContext({onDispatchAction:()=>{},onOptionsChange:()=>{}}),e1=b.createContext(void 0),ca="Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.",md=b.createContext({isDefault:!0,get getKey(){throw new Error(ca)},get setKey(){throw new Error(ca)},get getState(){throw new Error(ca)},get setState(){throw new Error(ca)},get getIsInitial(){throw new Error(ca)}}),t1=b.createContext(void 0);function n1(){const{current:t}=b.useRef({action:[],focus:[]}),e=b.useCallback((n,r)=>{t[n].push(r);let i=!1;return()=>{const a=t[n].indexOf(r);!i&&a>-1&&(i=!0,t[n].splice(a,1))}},[t]);return{listeners:t,addListener:e}}function r1(t){const e=b.useRef(t);b.useEffect(()=>{e.current=t});const n=b.useRef(Object.create(null)),r=b.useCallback(a=>{const s=(l,u)=>{const c=n.current[l]?n.current[l][a]:void 0;if(!c)return;const A=c.indexOf(u);A>-1&&c.splice(A,1)};return{addListener:(l,u)=>{n.current[l]=n.current[l]||{},n.current[l][a]=n.current[l][a]||[],n.current[l][a].push(u);let c=!1;return()=>{c||(c=!0,s(l,u))}},removeListener:s}},[]),i=b.useCallback(a=>{var s,o;let{type:l,data:u,target:c,canPreventDefault:A}=a;const d=n.current[l]||{},f=c!==void 0?(s=d[c])===null||s===void 0?void 0:s.slice():[].concat(...Object.keys(d).map(h=>d[h])).filter((h,v,E)=>E.lastIndexOf(h)===v),p={get type(){return l}};if(c!==void 0&&Object.defineProperty(p,"target",{enumerable:!0,get(){return c}}),u!==void 0&&Object.defineProperty(p,"data",{enumerable:!0,get(){return u}}),A){let h=!1;Object.defineProperties(p,{defaultPrevented:{enumerable:!0,get(){return h}},preventDefault:{enumerable:!0,value(){h=!0}}})}return(o=e.current)===null||o===void 0||o.call(e,p),f==null||f.forEach(h=>h(p)),p},[]);return b.useMemo(()=>({create:r,emit:i}),[r,i])}function i1(){const{current:t}=b.useRef(Object.assign(Object.create(null),{getState:{},beforeRemove:{}})),e=b.useCallback((n,r,i)=>(t[n][r]=i,()=>{t[n][r]=void 0}),[t]);return{keyedListeners:t,addKeyedListener:e}}function a1(t){let{key:e,options:n,navigation:r}=t;const i=b.useRef(n),a=b.useRef({}),{onOptionsChange:s}=b.useContext(Vv),{addOptionsGetter:o}=b.useContext(md),l=b.useCallback(()=>{const d=(r==null?void 0:r.isFocused())??!0,f=Object.keys(a.current).length;d&&!f&&s(i.current??{})},[r,s]);b.useEffect(()=>(i.current=n,l(),r==null?void 0:r.addListener("focus",l)),[r,n,l]);const u=b.useCallback(()=>{for(let p in a.current)if(a.current.hasOwnProperty(p)){var d,f;const h=(d=(f=a.current)[p])===null||d===void 0?void 0:d.call(f);if(h!==null)return h}return null},[]),c=b.useCallback(()=>{if(!((r==null?void 0:r.isFocused())??!0))return null;const f=u();return f!==null?f:i.current},[r,u]);return b.useEffect(()=>o==null?void 0:o(e,c),[c,o,e]),{addOptionsGetter:b.useCallback((d,f)=>(a.current[d]=f,l(),()=>{delete a.current[d],l()}),[l]),getCurrentOptions:c}}const XA="Couldn't find a schedule context.",s1=b.createContext({scheduleUpdate(){throw new Error(XA)},flushUpdates(){throw new Error(XA)}}),YA={};function o1(t){const e=b.useRef(YA),n=b.useRef(!1),r=b.useRef(!0);b.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),e.current===YA&&(e.current=typeof t=="function"?t():t);const[i,a]=b.useState(e.current),s=b.useCallback(()=>e.current,[]),o=b.useCallback(A=>{A===e.current||!r.current||(e.current=A,n.current||a(A))},[]),l=b.useCallback(A=>{n.current=!0;try{A()}finally{n.current=!1}},[]),u=b.useCallback(()=>{r.current&&a(e.current)},[]);i!==e.current&&a(e.current);const c=e.current;return b.useDebugValue(c),[c,s,o,l,u]}const Hv=t=>{if(t===void 0)return;const{key:e,routeNames:n,...r}=t;return{...r,stale:!0,routes:t.routes.map(i=>i.state===void 0?i:{...i,state:Hv(i.state)})}},l1=b.forwardRef(function(e,n){let{initialState:r,onStateChange:i,onUnhandledAction:a,independent:s,children:o}=e;if(!b.useContext(md).isDefault&&!s)throw new Error("Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them.");const[u,c,A,d,f]=o1(()=>Hv(r??void 0)),p=b.useRef(!0),h=b.useRef(),v=b.useCallback(()=>h.current,[]),E=b.useCallback(Y=>{h.current=Y},[]),{listeners:C,addListener:m}=n1(),{keyedListeners:g,addKeyedListener:y}=i1(),x=b.useCallback(Y=>{C.focus[0]==null?console.error(MA):C.focus[0](ee=>ee.dispatch(Y))},[C.focus]),w=b.useCallback(()=>{if(C.focus[0]==null)return!1;const{result:Y,handled:ee}=C.focus[0](te=>te.canGoBack());return ee?Y:!1},[C.focus]),S=b.useCallback(Y=>{var ee,te;const re=(Y==null?void 0:Y.key)??((ee=(te=g.getState).root)===null||ee===void 0?void 0:ee.call(te).key);re==null?console.error(MA):C.focus[0](Q=>Q.dispatch({...fx(Y),target:re}))},[g.getState,C.focus]),D=b.useCallback(()=>{var Y,ee;return(Y=(ee=g.getState).root)===null||Y===void 0?void 0:Y.call(ee)},[g.getState]),I=b.useCallback(()=>{const Y=D();return Y==null?void 0:Wa(Y)},[D]),_=r1(),{addOptionsGetter:O,getCurrentOptions:T}=a1({}),R=b.useMemo(()=>({...Object.keys(BA).reduce((Y,ee)=>(Y[ee]=function(){return x(BA[ee](...arguments))},Y),{}),..._.create("root"),dispatch:x,resetRoot:S,isFocused:()=>!0,canGoBack:w,getParent:()=>{},getState:()=>U.current,getRootState:D,getCurrentRoute:I,getCurrentOptions:T,isReady:()=>C.focus[0]!=null,setOptions:()=>{throw new Error("Cannot call setOptions outside a screen")}}),[w,x,_,T,I,D,C.focus,S]);b.useImperativeHandle(n,()=>R,[R]);const P=b.useCallback((Y,ee)=>{_.emit({type:"__unsafe_action__",data:{action:Y,noop:ee,stack:M.current}})},[_]),F=b.useRef(),H=b.useCallback(Y=>{F.current!==Y&&(F.current=Y,_.emit({type:"options",data:{options:Y}}))},[_]),M=b.useRef(),V=b.useMemo(()=>({addListener:m,addKeyedListener:y,onDispatchAction:P,onOptionsChange:H,stackRef:M}),[m,y,P,H]),W=b.useMemo(()=>({scheduleUpdate:d,flushUpdates:f}),[d,f]),B=b.useRef(!0),G=b.useCallback(()=>B.current,[]),N=b.useMemo(()=>({state:u,getState:c,setState:A,getKey:v,setKey:E,getIsInitial:G,addOptionsGetter:O}),[u,c,A,v,E,G,O]),k=b.useRef(i),U=b.useRef(u);b.useEffect(()=>{B.current=!1,k.current=i,U.current=u}),b.useEffect(()=>{const Y=D();_.emit({type:"state",data:{state:u}}),!p.current&&k.current&&k.current(Y),p.current=!1},[D,_,u]);const z=b.useCallback(Y=>{},[]);let K=b.createElement(Sx.Provider,{value:R},b.createElement(s1.Provider,{value:W},b.createElement(Vv.Provider,{value:V},b.createElement(md.Provider,{value:N},b.createElement(t1.Provider,{value:a??z},b.createElement(Jx,null,o))))));return s&&(K=b.createElement(e1.Provider,{value:void 0},b.createElement(bx.Provider,{value:void 0},K))),K});function Uv(t,e){var n;const r=e?Wv(e):{},i=t.index!=null?t.routes.slice(0,t.index+1):t.routes;if(i.length===0)return;if(!(i.length===1&&i[0].key===void 0||i.length===2&&i[0].key===void 0&&i[0].name===(r==null?void 0:r.initialRouteName)&&i[1].key===void 0))return{type:"RESET",payload:t};const a=t.routes[t.index??t.routes.length-1];let s=a==null?void 0:a.state,o=r==null||(n=r.screens)===null||n===void 0?void 0:n[a==null?void 0:a.name],l={...a.params},u=a?{name:a.name,path:a.path,params:l}:void 0;for(;s;){var c,A,d;if(s.routes.length===0)return;const f=s.index!=null?s.routes.slice(0,s.index+1):s.routes,p=f[f.length-1];if(Object.assign(l,{initial:void 0,screen:void 0,params:void 0,state:void 0}),f.length===1&&f[0].key===void 0)l.initial=!0,l.screen=p.name;else if(f.length===2&&f[0].key===void 0&&f[0].name===((c=o)===null||c===void 0?void 0:c.initialRouteName)&&f[1].key===void 0)l.initial=!1,l.screen=p.name;else{l.state=s;break}p.state?(l.params={...p.params},l=l.params):(l.path=p.path,l.params=p.params),s=p.state,o=(A=o)===null||A===void 0||(d=A.screens)===null||d===void 0?void 0:d[p.name]}if(u)return{type:"NAVIGATE",payload:u}}const Wv=t=>typeof t=="object"&&t!=null?{initialRouteName:t.initialRouteName,screens:t.screens!=null?u1(t.screens):void 0}:{},u1=t=>Object.entries(t).reduce((e,n)=>{let[r,i]=n;return e[r]=Wv(i),e},{}),c1=Symbol("CHILD_STATE");function d1(t){const e=t[c1]??t.state,n=t.params;return e?e.routes[e.index??(typeof e.type=="string"&&e.type!=="stack"?0:e.routes.length-1)].name:typeof(n==null?void 0:n.screen)=="string"?n.screen:void 0}function Xv(t){return t.reduce((e,n)=>{let[r,i]=n;if(e.hasOwnProperty(r))throw new Error(`A value for key '${r}' already exists in the object.`);return e[r]=i,e},{})}const zA=t=>t.map(e=>`- ${e}`).join(` `);function Qo(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["initialRouteName","screens"];e||n.push("path","exact","stringify","parse");const r=Object.keys(t).filter(i=>!n.includes(i));if(r.length)throw new Error(`Found invalid properties in the configuration: ${zA(r)} diff --git a/iframe.html b/iframe.html index b852fde3..788e44ef 100644 --- a/iframe.html +++ b/iframe.html @@ -509,7 +509,7 @@ } </script> - <script type="module" crossorigin src="./assets/iframe-kIyOmV27.js"></script> + <script type="module" crossorigin src="./assets/iframe-DRbcjd5I.js"></script> </head> <body> diff --git a/project.json b/project.json index 5f42c8af..c07a6442 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1728379392474,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@types/jest":"29.5.12","babel-jest":"29.7.0","eslint-plugin-jest":"27.9.0","jest":"29.7.0","jest-matcher-deep-close-to":"3.0.2","jest-trx-results-processor":"3.0.2"},"packageManager":{"type":"npm","version":"10.8.1"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"language":"typescript","storybookPackages":{"@storybook/react-vite":{"version":"8.3.1"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.3.1"}},"addons":{"@storybook/addon-essentials":{"version":"8.3.1"},"@storybook/addon-a11y":{"version":"8.3.1"}}} +{"generatedAt":1728379526431,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@types/jest":"29.5.12","babel-jest":"29.7.0","eslint-plugin-jest":"27.9.0","jest":"29.7.0","jest-matcher-deep-close-to":"3.0.2","jest-trx-results-processor":"3.0.2"},"packageManager":{"type":"npm","version":"10.8.1"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"language":"typescript","storybookPackages":{"@storybook/react-vite":{"version":"8.3.1"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.3.1"}},"addons":{"@storybook/addon-essentials":{"version":"8.3.1"},"@storybook/addon-a11y":{"version":"8.3.1"}}} diff --git a/version.txt b/version.txt index 45cf9179..6b8cbd42 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.7.0.20241008.1 +1.7.0.20241008.2