@ansible/ansible-ui-framework 2.4.1320 → 2.4.1321

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -48085,7 +48085,7 @@ function OTe(e) {
48085
48085
  }
48086
48086
  ) : n.label
48087
48087
  },
48088
- n.id ?? n.label ?? r
48088
+ r
48089
48089
  ) : /* @__PURE__ */ m.jsx(zr, {}, r)) }) : /* @__PURE__ */ m.jsx(zr, {});
48090
48090
  }
48091
48091
  function CTe(e) {
@@ -48325,7 +48325,7 @@ function FAe(e) {
48325
48325
  }
48326
48326
  function AD(e) {
48327
48327
  var t;
48328
- return /* @__PURE__ */ m.jsx(yI, { path: e.path, element: e.element, children: (t = e.children) == null ? void 0 : t.map(AD) });
48328
+ return /* @__PURE__ */ m.jsx(yI, { path: e.path, element: e.element, children: (t = e.children) == null ? void 0 : t.map(AD) }, e.path);
48329
48329
  }
48330
48330
  function WAe(e) {
48331
48331
  return e.replace(/^\//, "");
package/index.umd.cjs CHANGED
@@ -561,7 +561,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
561
561
  `;function vr(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function zwe(e,t){return typeof e=="string"&&t===!0?{value:!0,message:Lp("{{label}} is required.",{label:vr(e.toLocaleLowerCase())})}:void 0}function Vwe(e){const{t}=Ge(),{name:n,format:r,disableCopy:i,disableUpload:a,disableDownload:o,disableExpand:s,validate:l,isArray:c}=e,u=bi(e),{formState:{isSubmitting:f,isValidating:d},setError:h,getValues:p,clearErrors:g,control:v}=Hi(),b=Ua().dataEditorFormat??"yaml",[_,S]=x.useState(b),[w,O]=x.useState(!e.defaultCollapsed),[E,T]=x.useState(()=>{const F=p(n);return typeof F=="string"?F:Js(F,b)}),$=Bu(),{writeToClipboard:M}=I_(),A=x.useCallback(()=>M(Js(Oo(p(n),c),_)),[p,c,_,n,M]),j=x.useCallback(F=>{T(Js(Oo(F,c),_))},[c,_]),P=x.useRef(null),D=x.useCallback(()=>{var F;return(F=P.current)==null?void 0:F.click()},[]),I=x.useCallback(()=>{const F=n||"data",V=_==="json"?"json":"yaml";Rwe(F,Js(Oo(p(n),c),_),V),$.addAlert({variant:"success",title:t("File downloaded"),timeout:!0})},[$,p,c,_,n,t]);x.useLayoutEffect(()=>{const F=Js(Oo(p(n),c),_);T(F)},[p,c,_,n]);const W=zwe(e.label,e.isRequired);return m.jsx(Vs,{name:n,control:v,shouldUnregister:!0,render:({field:{name:F,onChange:V},fieldState:{error:z}})=>{var G;function R(J){switch(r){case"object":V(Oo(J,c));return;default:V(Js(Oo(J,c),r));break}}return m.jsxs(tu,{fieldId:u,icon:!s&&m.jsx(Fwe,{isExpanded:w,setExpanded:O}),label:e.label,labelHelpTitle:e.labelHelpTitle??e.label,labelHelp:e.labelHelp,additionalControls:m.jsx(f$,{handleCopy:!i&&A,handleUpload:!a&&D,handleDownload:!o&&I,language:_,setLanguage:S,children:e.additionalControls}),helperText:e.helperText,helperTextInvalid:!(l&&d)&&((G=z==null?void 0:z.message)==null?void 0:G.split(`
562
562
  `)),isRequired:e.isRequired,children:[w&&m.jsx(pwe,{onDrop:j,isDisabled:f||e.isReadOnly,inputRef:P,children:m.jsx(u5e,{"data-cy":u,id:u,name:F,language:_,value:E,onChange:R,setError:J=>{J?h(F,{message:J}):g(F)},isReadOnly:e.isReadOnly||f,className:e.isReadOnly?"pf-v5-c-form-control pf-m-disabled":"pf-v5-c-form-control"})}),!w&&m.jsx("div",{className:"pf-v5-c-form-control"})]})},rules:{required:W,validate:e.validate}})}function u$(e){const{t}=Ge(),{handleCopy:n,handleDownload:r,handleUpload:i}=e;return!n&&!r&&!i?m.jsx(m.Fragment,{}):m.jsxs(k.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&m.jsx(k.FlexItem,{children:m.jsx(mf,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:m.jsx(k.Icon,{size:"md",children:m.jsx(ve.CopyIcon,{})})})}),i&&m.jsx(k.FlexItem,{children:m.jsx(mf,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:i,children:m.jsx(k.Icon,{size:"md",children:m.jsx(ve.UploadIcon,{})})})}),r&&m.jsx(k.FlexItem,{children:m.jsx(mf,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:m.jsx(k.Icon,{size:"md",children:m.jsx(ve.DownloadIcon,{})})})})]})}function f$(e){const{t}=Ge(),{handleCopy:n,handleDownload:r,handleUpload:i,language:a,setLanguage:o}=e;return m.jsxs(k.Flex,{spaceItems:{default:"spaceItemsLg"},children:[m.jsx(k.FlexItem,{children:e.children}),m.jsx(u$,{handleCopy:n,handleDownload:r,handleUpload:i}),m.jsx(k.FlexItem,{align:{default:"alignRight"},children:m.jsxs(k.ToggleGroup,{isCompact:!0,children:[m.jsx(k.ToggleGroupItem,{id:"toggle-yaml","data-cy":"toggle-yaml","aria-label":t("Toggle to YAML"),isSelected:a==="yaml",text:"YAML",type:"button",onChange:()=>o("yaml")}),m.jsx(k.ToggleGroupItem,{id:"toggle-json","data-cy":"toggle-json","aria-label":t("Toggle to JSON"),isSelected:a==="json",text:"JSON",type:"button",onChange:()=>o("json")})]})})]})}function Oo(e,t){if(e==null)return t?[]:{};if(typeof e=="string")try{e=JSON.parse(e)}catch{try{e=f3.load(e)}catch{return{}}}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function Js(e,t){if(e==null)return"";try{switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":{const n=f3.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}}}catch{}return""}function Uwe(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:a,placeholderText:o,options:s,footer:l,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,fieldNameToResetOnFieldChange:p}=e,g=bi(e),{control:v,formState:{isSubmitting:y,isValidating:b},resetField:_}=Hi(),[S,w]=x.useState(!1),O=x.useCallback(()=>w(!S),[S]),[E]=Pt();return m.jsx(Vs,{name:t,control:v,shouldUnregister:!0,render:({field:{onChange:T,value:$},fieldState:{error:M}})=>{$===""&&s.length===1&&d&&T(s[0].value);const A=(D,I)=>{var W;T((W=s.find(F=>F.label===I.toString()))==null?void 0:W.value),p&&_(p),w(!1)},j=M!=null&&M.message?h&&b?E.validating:M==null?void 0:M.message:void 0,P=s.find(D=>D.value===$);return m.jsx(tu,{fieldId:g,label:n,labelHelpTitle:r??n,labelHelp:i,additionalControls:a,helperText:c,helperTextInvalid:j,isRequired:d,children:m.jsx(Pa,{id:g,placeholderText:o,variant:"single","aria-describedby":`${g}-form-group`,selections:P==null?void 0:P.label,onSelect:A,isOpen:S,onToggle:O,onClear:d?void 0:()=>{T(null),w(!1)},maxHeight:280,validated:j?"error":void 0,isDisabled:u||f||y,hasPlaceholderStyle:!0,footer:l,ouiaId:"menu-select","data-cy":g,children:s.map(D=>{const I=xi(D);return m.jsx(Gr,{id:I,value:D.label,label:D.label,description:D.description,"data-cy":I,children:D.label},D.label)})})})},rules:{required:typeof n=="string"&&d===!0?{value:!0,message:`${vr(n.toLocaleLowerCase())} is required.`}:void 0,validate:h}})}function Hwe(e){const{name:t,helperText:n,validate:r,additionalControls:i,label:a,labelHelp:o,labelHelpTitle:s,labelOn:l,labelOff:c}=e,{control:u,formState:{isSubmitting:f,isValidating:d}}=Hi(),h=bi(e);return m.jsx(Vs,{name:t,control:u,shouldUnregister:!0,render:({field:{onChange:p,value:g},fieldState:{error:v}})=>{const y=r&&d||v==null?void 0:v.message;return m.jsx(tu,{fieldId:h,"data-cy":h+"-form-group",label:a,labelHelpTitle:s??a,labelHelp:o,helperText:n,helperTextInvalid:y,additionalControls:i,children:m.jsx(k.Switch,{"data-cy":h+"-toggle","aria-label":a,isChecked:g,onChange:b=>p(b),isDisabled:f,label:l,labelOff:c})})}})}function Gwe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:p,maxLength:g,min:v,max:y,pattern:b,selectTitle:_,selectOpen:S,selectValue:w,autoFocus:O,autoComplete:E}=e,T=bi(e),{control:$,setValue:M,formState:{isSubmitting:A,isValidating:j}}=Hi(),[P,D]=x.useState(!1),[I]=Pt();return m.jsx(Vs,{name:n,control:$,shouldUnregister:!0,render:({field:{onChange:W,value:F,name:V},fieldState:{error:z}})=>{const R=z!=null&&z.message?h&&j?I.validating:z==null?void 0:z.message:void 0;function G(J){W(J.trimStart())}return m.jsx(tu,{fieldId:T,label:r,labelHelpTitle:i??r,labelHelp:a,additionalControls:o,helperText:c,helperTextInvalid:R,isRequired:d,children:m.jsxs(k.InputGroup,{children:[m.jsx(k.InputGroupItem,{isFill:!0,children:m.jsx(k.TextArea,{id:T,placeholder:s,onChange:(J,ne)=>G(ne),value:F??"","aria-describedby":T?`${T}-form-group`:void 0,validated:R?"error":void 0,type:t==="password"?P?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:O,autoComplete:E||"off","data-cy":T})}),t==="password"&&m.jsx(k.Button,{variant:"control",onClick:()=>D(!P),isDisabled:u||f,children:P?m.jsx(ve.EyeIcon,{}):m.jsx(ve.EyeSlashIcon,{})}),_&&m.jsx(k.Button,{ouiaId:`lookup-${V}-button`,variant:"control",onClick:()=>S==null?void 0:S(J=>{if(w){const ne=w(J);M(V,ne,{shouldValidate:!0})}},_),"aria-label":"Options menu",isDisabled:u||A,children:m.jsx(ve.SearchIcon,{})}),l&&l]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${vr(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${vr(r.toLocaleLowerCase())} must be at least ${p} characters.`}:p,maxLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${vr(r.toLocaleLowerCase())} cannot be greater than ${g} characters.`}:g,min:typeof r=="string"&&(typeof v=="number"||typeof v=="string")?{value:v,message:`${vr(r.toLocaleLowerCase())} must be less than ${v}.`}:p,max:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${vr(r.toLocaleLowerCase())} cannot be greater than ${y}.`}:p,pattern:b}})}function qwe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:p,maxLength:g,min:v,max:y,pattern:b,selectTitle:_,selectOpen:S,selectValue:w,autoFocus:O,autoComplete:E}=e,T=bi(e),{control:$,setValue:M,formState:{isSubmitting:A,isValidating:j}}=Hi(),[P,D]=x.useState(!1),[I]=Pt();return m.jsx(Vs,{name:n,control:$,shouldUnregister:!0,render:({field:{onChange:W,value:F,name:V},fieldState:{error:z}})=>{const R=z!=null&&z.message?h&&j?I.validating:z==null?void 0:z.message:void 0;let G=F;switch(t){case"datetime-local":if(F){const ne=new Date(F);G=new Date(ne.getTime()-ne.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function J(ne){switch(e.type){case"datetime-local":{W(new Date(ne).toISOString());break}default:W(ne.trimStart())}}return m.jsx(tu,{fieldId:T,label:r,labelHelpTitle:i??r,labelHelp:a,additionalControls:o,helperText:c,helperTextInvalid:R,isRequired:d,children:m.jsxs(k.InputGroup,{children:[m.jsx(k.InputGroupItem,{isFill:!0,children:m.jsx(k.TextInput,{id:T,placeholder:s,onChange:(ne,te)=>J(te),value:G??"","aria-describedby":T?`${T}-form-group`:void 0,validated:R?"error":void 0,type:t==="password"?P?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:O,autoComplete:E||"off","data-cy":T})}),t==="password"&&m.jsx(k.Button,{variant:"control",onClick:()=>D(!P),isDisabled:u||f,children:P?m.jsx(ve.EyeIcon,{}):m.jsx(ve.EyeSlashIcon,{})}),_&&m.jsx(k.Button,{ouiaId:`lookup-${V}-button`,variant:"control",onClick:()=>S==null?void 0:S(ne=>{if(w){const te=w(ne);M(V,te,{shouldValidate:!0})}},_),"aria-label":"Options menu",isDisabled:u||A,children:m.jsx(ve.SearchIcon,{"data-cy":"lookup-button"})}),l&&l]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${vr(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${vr(r.toLocaleLowerCase())} must be at least ${p} characters.`}:p,maxLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${vr(r.toLocaleLowerCase())} cannot be greater than ${g} characters.`}:g,min:typeof r=="string"&&(typeof v=="number"||typeof v=="string")?{value:v,message:`${vr(r.toLocaleLowerCase())} must be greater or equal to ${v}.`}:p,max:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${vr(r.toLocaleLowerCase())} cannot be greater than ${y}.`}:p,pattern:b}})}const N1=x.createContext({isOpen:!1,setState:()=>({})});function Np(){return x.useContext(N1)}function d$(e){const t=on("xl"),[n,r]=x.useState(()=>t),i=x.useCallback(a=>{a.isOpen!==void 0&&r(a.isOpen)},[]);return x.useEffect(()=>i({isOpen:t}),[t,i]),m.jsx(N1.Provider,{value:{isOpen:n,setState:i},children:e.children})}function h$(){const e=bt.useNavigate(),t=on("xl"),n=Np();return x.useCallback(i=>{e(i),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}const F1=x.createContext([{},()=>{}]);function Ywe(){return x.useContext(F1)[0]}function Kwe(){return x.useContext(F1)}function Xwe(e){const[t,n]=x.useState({}),r=x.useCallback(a=>{n(p$("",a))},[]),i=x.useMemo(()=>[t,r],[t,r]);return m.jsx(F1.Provider,{value:i,children:e.children})}function p$(e,t){const n={};return t.forEach(r=>{const i=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=i),"children"in r&&Object.assign(n,p$(i,r.children))}),n}const g$=x.createContext({notificationsDrawerOpen:!1,setNotificationsDrawerOpen:()=>{throw new Error("PageNotificationsContext not implemented")},notificationGroups:{},setNotificationGroups:()=>{throw new Error("PageNotificationsContext not implemented")}});function Fp(){return x.useContext(g$)}function Zwe(e){const[t,n]=x.useState(!1),[r,i]=x.useState({});return m.jsx(g$.Provider,{value:{notificationGroups:r,setNotificationGroups:i,notificationsDrawerOpen:t,setNotificationsDrawerOpen:n},children:e.children})}function Jwe(e){const{t}=Ge(),{notificationsDrawerOpen:n,setNotificationsDrawerOpen:r}=Fp(),i=x.useRef(null);function a(){var s;r(!1),(s=i.current)==null||s.focus()}const{notificationGroups:o}=Fp();return m.jsx(k.Drawer,{isExpanded:n,onExpand:()=>r(!0),children:m.jsx(k.DrawerContent,{panelContent:m.jsx(k.DrawerPanelContent,{children:m.jsxs(k.NotificationDrawer,{"data-cy":"notifications-drawer",children:[m.jsx(k.NotificationDrawerHeader,{title:t("Notifications"),children:m.jsx(k.DrawerCloseButton,{onClick:a})}),m.jsx(k.NotificationDrawerBody,{children:m.jsx(k.NotificationDrawerGroupList,{children:Object.values(o).map((s,l)=>m.jsx(e2e,{group:s},l))})})]})}),children:m.jsx(Qwe,{children:e.children})})})}const Qwe=Ee(k.DrawerContentBody)`
563
563
  max-height: 100%;
564
- `;function e2e(e){const{t}=Ge(),[n,r]=x.useState(!0);return m.jsx(k.NotificationDrawerGroup,{title:e.group.title,isExpanded:n,count:e.group.notifications.length,onExpand:(i,a)=>r(a),children:m.jsxs(k.NotificationDrawerList,{isHidden:!n,children:[e.group.notifications.map((i,a)=>m.jsx(t2e,{notification:i},a)),e.group.notifications.length===0&&m.jsxs(k.EmptyState,{variant:k.EmptyStateVariant.full,children:[m.jsx(k.EmptyStateHeader,{headingLevel:"h2",titleText:t("No notifications")}),m.jsx(k.EmptyStateBody,{children:t("There are currently no notifications.")})]})]})})}function t2e(e){const t=e.notification.variant==="info"?void 0:e.notification.variant,n=bt.useNavigate(),{setNotificationsDrawerOpen:r}=Fp(),i=e.notification.timestamp?new Date(e.notification.timestamp):void 0,a=i?`${i.toLocaleDateString()} ${i.toLocaleTimeString()}`:void 0;return m.jsxs(k.NotificationDrawerListItem,{variant:e.notification.variant,onClick:()=>{n(e.notification.to),r(!1)},children:[m.jsx(k.NotificationDrawerListItemHeader,{title:e.notification.title,variant:t}),m.jsx(k.NotificationDrawerListItemBody,{timestamp:a,children:e.notification.description})]})}const m$=x.createContext({tabBreadcrumb:{},setTabBreadcrumb:()=>{}});function n2e(e){const[t,n]=x.useState();return m.jsx(m$.Provider,{value:{tabBreadcrumb:t,setTabBreadcrumb:n},children:e.children})}const r2e=()=>x.useContext(m$);function i2e(e){return m.jsx(k_,{children:m.jsx(_w,{defaultRefreshInterval:e.defaultRefreshInterval,children:m.jsx(Xwe,{children:m.jsx(S6,{children:m.jsx(D_,{children:m.jsx(d$,{children:m.jsx(Zwe,{children:m.jsx(n2e,{children:e.children})})})})})})})})}function a2e(e){const t=bt.useNavigate();return e.breadcrumbs?m.jsx(k.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?m.jsx(k.BreadcrumbItem,{"data-cy":n.label,id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?m.jsx("a",{href:n.to,"data-cy":n.label,onClick:i=>{i.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},n.id??n.label??r):m.jsx(x.Fragment,{},r))}):m.jsx(x.Fragment,{})}function v$(e){const{title:t,description:n,controls:r,headerActions:i,footer:a}=e,o=on("lg"),s=on("xl"),l=on("md"),[c]=Pt(),{tabBreadcrumb:u}=r2e(),f=x.useMemo(()=>{const d=[];return e.breadcrumbs&&d.push(...e.breadcrumbs),u&&d.push(u),d},[e.breadcrumbs,u]);return m.jsx(k.PageSection,{variant:k.PageSectionVariants.light,className:"bg-lighten border-bottom",style:{paddingTop:(f!=null&&f.length,s?16:12),paddingBottom:s?16:12},children:m.jsxs(k.Stack,{hasGutter:!0,children:[m.jsxs(k.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[m.jsxs(k.FlexItem,{grow:{default:"grow"},children:[f.length>0&&m.jsx(a2e,{breadcrumbs:f!=null&&f.length?f:void 0,style:{paddingBottom:o?6:4}}),t?e.titleHelp?m.jsx(k.Popover,{headerContent:e.titleHelpTitle??e.title,bodyContent:m.jsxs(k.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?m.jsx(k.StackItem,{children:e.titleHelp}):e.titleHelp.map((d,h)=>m.jsx(k.StackItem,{children:d},h)),e.titleDocLink&&m.jsx(k.StackItem,{children:m.jsx(k.Button,{icon:m.jsx(ve.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,children:c.documentation})})]}),position:"bottom-start",children:m.jsxs(k.Title,{"data-cy":"page-title",headingLevel:"h1",children:[t,m.jsx(k.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:m.jsx(ve.OutlinedQuestionCircleIcon,{})})]})}):m.jsx(k.Title,{"data-cy":"page-title",headingLevel:"h1",children:t}):m.jsx(k.Title,{headingLevel:"h1",children:m.jsx(k.Skeleton,{width:"160px"})}),l&&n&&m.jsx("div",{"data-cy":"app-description",style:{paddingTop:s?4:2,opacity:.8},children:typeof n=="string"?m.jsx(k.Truncate,{content:n}):m.jsx(k.Stack,{children:n.map(d=>m.jsx(k.StackItem,{children:d},d))})})]}),t&&(i||r)&&m.jsxs(k.Flex,{"data-cy":"manage-view",direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&m.jsx(k.FlexItem,{grow:{default:"grow"},children:r}),i&&m.jsx(k.FlexItem,{children:i})]})]}),a]})})}function o2e(e){const[t]=Pt();return m.jsx(M_,{message:t.errorText,children:m.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function s2e(e){const t=on("sm");return m.jsxs(k.Masthead,{display:{default:"inline"},style:{borderBottom:"1px solid #fff4",paddingRight:0},children:[m.jsx(y$,{}),t&&m.jsx(k.MastheadMain,{children:m.jsx(k.MastheadBrand,{component:n=>m.jsx(bt.Link,{...n,to:"/"}),children:e.brand})}),m.jsx(k.MastheadContent,{style:{marginLeft:0,minHeight:0},children:m.jsx(k.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:m.jsx(k.ToolbarContent,{children:e.children})})})]})}function y$(){const e=Np();return m.jsx(k.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:m.jsx(k.PageToggleButton,{"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation",children:m.jsx(ve.BarsIcon,{})})})}function l2e(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=Fp(),n=Object.values(t).reduce((r,i)=>r+i.notifications.length,0);return m.jsx(k.NotificationBadge,{"data-cy":"notification-badge",variant:n===0?"read":"unread",count:n,onClick:()=>e(r=>!r)})}function c2e(){const[e,t]=x.useContext(Va);return e.activeTheme==="dark"?m.jsx(k.Button,{"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"}),children:m.jsx(ve.MoonIcon,{})}):m.jsx(k.Button,{"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"}),children:m.jsx(ve.SunIcon,{})})}function b$(e){const{navigation:t}=e,n=Np();return m.jsx(k.PageSidebar,{isSidebarOpen:n.isOpen,className:"bg-lighten",children:m.jsx(k.PageSidebarBody,{children:m.jsx(k.Nav,{"data-cy":"page-navigation",className:"side-nav",children:m.jsx(k.NavList,{children:m.jsx(Rp,{baseRoute:"",items:t})})})})})}function Rp(e){return m.jsx(m.Fragment,{children:e.items.filter(t=>"hidden"in t?t.hidden!==!0:!0).map((t,n)=>m.jsx(u2e,{item:t,baseRoute:e.baseRoute},t.id??t.label??n))})}function u2e(e){var c;const{item:t}=e,[n,r]=x.useState(()=>localStorage.getItem("default-nav-expanded")==="true"||localStorage.getItem((t.id??t.label)+"-expanded")==="true"),i=u=>{r(u),localStorage.setItem((t.id??t.label)+"-expanded",u?"true":"false")};let a;if("id"in e.item)a=e.item.id;else if("children"in e.item){const u=e.item.children.find(f=>f.path==="");u&&"id"in u&&(a=u.id)}const o=h$();let s=e.baseRoute+"/"+t.path;if(s=s.replace("//","/"),t.path==="/"&&"children"in t)return m.jsx(Rp,{items:t.children,baseRoute:""});const l="children"in t&&((c=t.children)==null?void 0:c.find(u=>u.label));if(!l&&"label"in t){const u=location.pathname.endsWith(s);return m.jsxs(k.NavItem,{id:a,href:s,isActive:u,className:u?"bg-lighten":void 0,onClick:()=>o(s),"data-cy":a,style:{display:"flex",alignItems:"stretch",flexDirection:"column"},children:[m.jsxs(k.Flex,{children:[m.jsx(k.FlexItem,{grow:{default:"grow"},children:t.label}),"badge"in t&&t.badge&&m.jsx(k.FlexItem,{children:m.jsx(k.Label,{isCompact:!0,variant:"outline",color:t.badgeColor,children:t.badge})})]}),t.subtitle&&m.jsx("div",{style:{fontSize:"x-small",opacity:.5,textAlign:"left"},children:t.subtitle})]})}return!l||t.label===void 0?null:t.label?m.jsx(k.NavExpandable,{title:m.jsxs("div",{children:[m.jsx("div",{style:{textAlign:"left"},children:t.label}),t.subtitle&&m.jsx("div",{style:{fontSize:"small",opacity:.5,textAlign:"left"},children:t.subtitle})]}),isExpanded:n,onExpand:(u,f)=>i(f),children:m.jsx(Rp,{items:t.children,baseRoute:s})}):m.jsx(Rp,{items:t.children,baseRoute:s})}function f2e(e){const{navigation:t,masthead:n}=e,r=x.useMemo(()=>[{path:"/",element:m.jsx(k.Page,{header:n,sidebar:m.jsx(b$,{navigation:t}),children:m.jsx(Jwe,{children:m.jsx(bt.Outlet,{})})}),children:t},{path:"*",element:m.jsx(D6,{})}],[n,t]),[i,a]=Kwe();return x.useEffect(()=>{a(t)},[t,a]),m.jsx(bt.Routes,{children:r.map(x$)})}function x$(e){var t;return m.jsx(bt.Route,{path:e.path,element:e.element,children:(t=e.children)==null?void 0:t.map(x$)})}function d2e(e){return e.replace(/^\//,"")}function _$(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=_$(n.children,t);if(r)return r}}}function w$(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("id"in r&&r.id===t)return e.splice(n,1),r;if("children"in r){const i=w$(r.children,t);if(i)return i}}}function S$(e,t,n){for(const r of e)if("id"in r&&r.id===t){const i=r;"children"in r||(i.children=[]),i.children.push(n);return}else"children"in r&&S$(r.children,t,n)}function O$(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r+1,0,n);return}else"children"in i&&O$(i.children,t,n)}}function C$(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r,0,n);return}else"children"in i&&C$(i.children,t,n)}}function E$(){const e=Ywe();return x.useCallback((t,n)=>{let r=e[t]??"";const i=n==null?void 0:n.params,a=n==null?void 0:n.query;return r?(i&&(r=Object.keys(i).reduce((o,s)=>{let l=i[s];if(l===void 0)return o;l=encodeURIComponent(l.toString());const c=":"+s,u=new RegExp(c+"(?!.*"+c+")","g");return o.replace(u,l)},r)),a&&(r=`${r}?${Object.keys(a).map(o=>{let s=a[o];return s===void 0?"":(s=encodeURIComponent(s.toString()),`${o}=${s}`)}).join("&").replace("/&&/g","&")}`)):console.error(`Page id ${t} not found`),r},[e])}function h2e(){const e=bt.useNavigate(),t=E$();return x.useCallback((n,r)=>{const i=t(n,r);i&&e(i)},[e,t])}function p2e(e){const{loading:t}=e,[n,r]=x.useState((e==null?void 0:e.initialTabIndex)??0),i=x.useCallback((l,c)=>r(c),[r]),a=x.Children.toArray(e.children),o=a.map((l,c)=>{if(x.isValidElement(l)&&l.type===R1){const u=l.props.label;return m.jsx(k.Tab,{title:u||m.jsx(k.Skeleton,{width:"60px"}),eventKey:c},u??c)}return l}),s=a[n];return t?m.jsx(k$,{children:m.jsx(R1,{children:m.jsx(k.PageSection,{variant:"light",children:m.jsx(k.Skeleton,{})})})}):m.jsxs(m.Fragment,{children:[m.jsx(k$,{activeKey:n,onSelect:i,inset:{default:"insetSm"},isBox:!0,children:o}),s]})}function R1(e){return m.jsx(m.Fragment,{children:e.children})}const k$=Ee(k.Tabs)`
564
+ `;function e2e(e){const{t}=Ge(),[n,r]=x.useState(!0);return m.jsx(k.NotificationDrawerGroup,{title:e.group.title,isExpanded:n,count:e.group.notifications.length,onExpand:(i,a)=>r(a),children:m.jsxs(k.NotificationDrawerList,{isHidden:!n,children:[e.group.notifications.map((i,a)=>m.jsx(t2e,{notification:i},a)),e.group.notifications.length===0&&m.jsxs(k.EmptyState,{variant:k.EmptyStateVariant.full,children:[m.jsx(k.EmptyStateHeader,{headingLevel:"h2",titleText:t("No notifications")}),m.jsx(k.EmptyStateBody,{children:t("There are currently no notifications.")})]})]})})}function t2e(e){const t=e.notification.variant==="info"?void 0:e.notification.variant,n=bt.useNavigate(),{setNotificationsDrawerOpen:r}=Fp(),i=e.notification.timestamp?new Date(e.notification.timestamp):void 0,a=i?`${i.toLocaleDateString()} ${i.toLocaleTimeString()}`:void 0;return m.jsxs(k.NotificationDrawerListItem,{variant:e.notification.variant,onClick:()=>{n(e.notification.to),r(!1)},children:[m.jsx(k.NotificationDrawerListItemHeader,{title:e.notification.title,variant:t}),m.jsx(k.NotificationDrawerListItemBody,{timestamp:a,children:e.notification.description})]})}const m$=x.createContext({tabBreadcrumb:{},setTabBreadcrumb:()=>{}});function n2e(e){const[t,n]=x.useState();return m.jsx(m$.Provider,{value:{tabBreadcrumb:t,setTabBreadcrumb:n},children:e.children})}const r2e=()=>x.useContext(m$);function i2e(e){return m.jsx(k_,{children:m.jsx(_w,{defaultRefreshInterval:e.defaultRefreshInterval,children:m.jsx(Xwe,{children:m.jsx(S6,{children:m.jsx(D_,{children:m.jsx(d$,{children:m.jsx(Zwe,{children:m.jsx(n2e,{children:e.children})})})})})})})})}function a2e(e){const t=bt.useNavigate();return e.breadcrumbs?m.jsx(k.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?m.jsx(k.BreadcrumbItem,{"data-cy":n.label,id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?m.jsx("a",{href:n.to,"data-cy":n.label,onClick:i=>{i.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},r):m.jsx(x.Fragment,{},r))}):m.jsx(x.Fragment,{})}function v$(e){const{title:t,description:n,controls:r,headerActions:i,footer:a}=e,o=on("lg"),s=on("xl"),l=on("md"),[c]=Pt(),{tabBreadcrumb:u}=r2e(),f=x.useMemo(()=>{const d=[];return e.breadcrumbs&&d.push(...e.breadcrumbs),u&&d.push(u),d},[e.breadcrumbs,u]);return m.jsx(k.PageSection,{variant:k.PageSectionVariants.light,className:"bg-lighten border-bottom",style:{paddingTop:(f!=null&&f.length,s?16:12),paddingBottom:s?16:12},children:m.jsxs(k.Stack,{hasGutter:!0,children:[m.jsxs(k.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[m.jsxs(k.FlexItem,{grow:{default:"grow"},children:[f.length>0&&m.jsx(a2e,{breadcrumbs:f!=null&&f.length?f:void 0,style:{paddingBottom:o?6:4}}),t?e.titleHelp?m.jsx(k.Popover,{headerContent:e.titleHelpTitle??e.title,bodyContent:m.jsxs(k.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?m.jsx(k.StackItem,{children:e.titleHelp}):e.titleHelp.map((d,h)=>m.jsx(k.StackItem,{children:d},h)),e.titleDocLink&&m.jsx(k.StackItem,{children:m.jsx(k.Button,{icon:m.jsx(ve.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,children:c.documentation})})]}),position:"bottom-start",children:m.jsxs(k.Title,{"data-cy":"page-title",headingLevel:"h1",children:[t,m.jsx(k.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:m.jsx(ve.OutlinedQuestionCircleIcon,{})})]})}):m.jsx(k.Title,{"data-cy":"page-title",headingLevel:"h1",children:t}):m.jsx(k.Title,{headingLevel:"h1",children:m.jsx(k.Skeleton,{width:"160px"})}),l&&n&&m.jsx("div",{"data-cy":"app-description",style:{paddingTop:s?4:2,opacity:.8},children:typeof n=="string"?m.jsx(k.Truncate,{content:n}):m.jsx(k.Stack,{children:n.map(d=>m.jsx(k.StackItem,{children:d},d))})})]}),t&&(i||r)&&m.jsxs(k.Flex,{"data-cy":"manage-view",direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&m.jsx(k.FlexItem,{grow:{default:"grow"},children:r}),i&&m.jsx(k.FlexItem,{children:i})]})]}),a]})})}function o2e(e){const[t]=Pt();return m.jsx(M_,{message:t.errorText,children:m.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function s2e(e){const t=on("sm");return m.jsxs(k.Masthead,{display:{default:"inline"},style:{borderBottom:"1px solid #fff4",paddingRight:0},children:[m.jsx(y$,{}),t&&m.jsx(k.MastheadMain,{children:m.jsx(k.MastheadBrand,{component:n=>m.jsx(bt.Link,{...n,to:"/"}),children:e.brand})}),m.jsx(k.MastheadContent,{style:{marginLeft:0,minHeight:0},children:m.jsx(k.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:m.jsx(k.ToolbarContent,{children:e.children})})})]})}function y$(){const e=Np();return m.jsx(k.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:m.jsx(k.PageToggleButton,{"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation",children:m.jsx(ve.BarsIcon,{})})})}function l2e(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=Fp(),n=Object.values(t).reduce((r,i)=>r+i.notifications.length,0);return m.jsx(k.NotificationBadge,{"data-cy":"notification-badge",variant:n===0?"read":"unread",count:n,onClick:()=>e(r=>!r)})}function c2e(){const[e,t]=x.useContext(Va);return e.activeTheme==="dark"?m.jsx(k.Button,{"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"}),children:m.jsx(ve.MoonIcon,{})}):m.jsx(k.Button,{"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"}),children:m.jsx(ve.SunIcon,{})})}function b$(e){const{navigation:t}=e,n=Np();return m.jsx(k.PageSidebar,{isSidebarOpen:n.isOpen,className:"bg-lighten",children:m.jsx(k.PageSidebarBody,{children:m.jsx(k.Nav,{"data-cy":"page-navigation",className:"side-nav",children:m.jsx(k.NavList,{children:m.jsx(Rp,{baseRoute:"",items:t})})})})})}function Rp(e){return m.jsx(m.Fragment,{children:e.items.filter(t=>"hidden"in t?t.hidden!==!0:!0).map((t,n)=>m.jsx(u2e,{item:t,baseRoute:e.baseRoute},t.id??t.label??n))})}function u2e(e){var c;const{item:t}=e,[n,r]=x.useState(()=>localStorage.getItem("default-nav-expanded")==="true"||localStorage.getItem((t.id??t.label)+"-expanded")==="true"),i=u=>{r(u),localStorage.setItem((t.id??t.label)+"-expanded",u?"true":"false")};let a;if("id"in e.item)a=e.item.id;else if("children"in e.item){const u=e.item.children.find(f=>f.path==="");u&&"id"in u&&(a=u.id)}const o=h$();let s=e.baseRoute+"/"+t.path;if(s=s.replace("//","/"),t.path==="/"&&"children"in t)return m.jsx(Rp,{items:t.children,baseRoute:""});const l="children"in t&&((c=t.children)==null?void 0:c.find(u=>u.label));if(!l&&"label"in t){const u=location.pathname.endsWith(s);return m.jsxs(k.NavItem,{id:a,href:s,isActive:u,className:u?"bg-lighten":void 0,onClick:()=>o(s),"data-cy":a,style:{display:"flex",alignItems:"stretch",flexDirection:"column"},children:[m.jsxs(k.Flex,{children:[m.jsx(k.FlexItem,{grow:{default:"grow"},children:t.label}),"badge"in t&&t.badge&&m.jsx(k.FlexItem,{children:m.jsx(k.Label,{isCompact:!0,variant:"outline",color:t.badgeColor,children:t.badge})})]}),t.subtitle&&m.jsx("div",{style:{fontSize:"x-small",opacity:.5,textAlign:"left"},children:t.subtitle})]})}return!l||t.label===void 0?null:t.label?m.jsx(k.NavExpandable,{title:m.jsxs("div",{children:[m.jsx("div",{style:{textAlign:"left"},children:t.label}),t.subtitle&&m.jsx("div",{style:{fontSize:"small",opacity:.5,textAlign:"left"},children:t.subtitle})]}),isExpanded:n,onExpand:(u,f)=>i(f),children:m.jsx(Rp,{items:t.children,baseRoute:s})}):m.jsx(Rp,{items:t.children,baseRoute:s})}function f2e(e){const{navigation:t,masthead:n}=e,r=x.useMemo(()=>[{path:"/",element:m.jsx(k.Page,{header:n,sidebar:m.jsx(b$,{navigation:t}),children:m.jsx(Jwe,{children:m.jsx(bt.Outlet,{})})}),children:t},{path:"*",element:m.jsx(D6,{})}],[n,t]),[i,a]=Kwe();return x.useEffect(()=>{a(t)},[t,a]),m.jsx(bt.Routes,{children:r.map(x$)})}function x$(e){var t;return m.jsx(bt.Route,{path:e.path,element:e.element,children:(t=e.children)==null?void 0:t.map(x$)},e.path)}function d2e(e){return e.replace(/^\//,"")}function _$(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=_$(n.children,t);if(r)return r}}}function w$(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("id"in r&&r.id===t)return e.splice(n,1),r;if("children"in r){const i=w$(r.children,t);if(i)return i}}}function S$(e,t,n){for(const r of e)if("id"in r&&r.id===t){const i=r;"children"in r||(i.children=[]),i.children.push(n);return}else"children"in r&&S$(r.children,t,n)}function O$(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r+1,0,n);return}else"children"in i&&O$(i.children,t,n)}}function C$(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r,0,n);return}else"children"in i&&C$(i.children,t,n)}}function E$(){const e=Ywe();return x.useCallback((t,n)=>{let r=e[t]??"";const i=n==null?void 0:n.params,a=n==null?void 0:n.query;return r?(i&&(r=Object.keys(i).reduce((o,s)=>{let l=i[s];if(l===void 0)return o;l=encodeURIComponent(l.toString());const c=":"+s,u=new RegExp(c+"(?!.*"+c+")","g");return o.replace(u,l)},r)),a&&(r=`${r}?${Object.keys(a).map(o=>{let s=a[o];return s===void 0?"":(s=encodeURIComponent(s.toString()),`${o}=${s}`)}).join("&").replace("/&&/g","&")}`)):console.error(`Page id ${t} not found`),r},[e])}function h2e(){const e=bt.useNavigate(),t=E$();return x.useCallback((n,r)=>{const i=t(n,r);i&&e(i)},[e,t])}function p2e(e){const{loading:t}=e,[n,r]=x.useState((e==null?void 0:e.initialTabIndex)??0),i=x.useCallback((l,c)=>r(c),[r]),a=x.Children.toArray(e.children),o=a.map((l,c)=>{if(x.isValidElement(l)&&l.type===R1){const u=l.props.label;return m.jsx(k.Tab,{title:u||m.jsx(k.Skeleton,{width:"60px"}),eventKey:c},u??c)}return l}),s=a[n];return t?m.jsx(k$,{children:m.jsx(R1,{children:m.jsx(k.PageSection,{variant:"light",children:m.jsx(k.Skeleton,{})})})}):m.jsxs(m.Fragment,{children:[m.jsx(k$,{activeKey:n,onSelect:i,inset:{default:"insetSm"},isBox:!0,children:o}),s]})}function R1(e){return m.jsx(m.Fragment,{children:e.children})}const k$=Ee(k.Tabs)`
565
565
  flex-shrink: 0;
566
566
  background-color: 'var(--pf-v5-c-tabs__link--BackgroundColor)';
567
567
  `,T$=x.createContext({});function nu(){return x.useContext(T$)}function A$(e,t){return!e.hidden||!e.hidden(t)?e:null}function g2e(e){const[t,n]=x.useState(!1),[r,i]=x.useState(null),[a,o]=x.useState({}),[s,l]=x.useState(e.defaultValue??{}),[c,u]=x.useState({}),[f,d]=x.useState(()=>e.steps.filter(h=>A$(h,a)));return x.useEffect(()=>{!r&&f.length>0&&i(f[0])},[r,f]),m.jsx(T$.Provider,{value:{wizardData:a,setWizardData:o,stepData:s,setStepData:l,allSteps:e.steps,visibleSteps:f,setVisibleSteps:d,activeStep:r,setActiveStep:i,stepError:c,setStepError:u,isToggleExpanded:t,setToggleExpanded:n},children:e.children})}function P$(e){const{t}=Ge(),{activeStep:n,visibleSteps:r}=nu(),i=(n==null?void 0:n.id)===r[r.length-1].id,a=t(i?"Finish":"Next"),o=(n==null?void 0:n.id)===r[0].id,s=o?"pf-v5-c-button pf-m-disabled":"pf-v5-c-button pf-m-secondary";return m.jsxs("footer",{className:"pf-v5-c-wizard__footer border-top bg-lighten","data-cy":"wizard-footer",children:[n!==null&&"inputs"in n?m.jsx(Qb,{style:{minWidth:10},children:a}):m.jsx("button",{"data-cy":"wizard-next",className:"pf-v5-c-button pf-m-primary",type:"submit",onClick:e.onNext,children:a}),m.jsx("button",{type:"button","data-cy":"wizard-back",className:s,disabled:o,onClick:e.onBack,children:t("Back")}),m.jsx("div",{"data-cy":"wizard-cancel",className:"pf-v5-c-wizard__footer-cancel",children:m.jsx("button",{className:"pf-v5-c-button pf-m-link",type:"button",onClick:e.onCancel,children:t("Cancel")})})]})}function m2e({onCancel:e,onSubmit:t,disableGrid:n,errorAdapter:r,isVertical:i,singleColumn:a}){const o=bt.useNavigate(),{activeStep:s,allSteps:l,setActiveStep:c,setStepData:u,setVisibleSteps:f,setWizardData:d,stepData:h,visibleSteps:p,wizardData:g}=nu(),[v,y]=bt.useSearchParams(),b=x.useCallback(()=>{e?e():o(-1)},[o,e]),_=x.useCallback(async w=>{var M;const O=l.filter(A=>A$(A,{...g,...w}));if(s===null)return Promise.resolve();if(s.validate&&await s.validate(w,g),(s==null?void 0:s.id)===((M=O[O.length-1])==null?void 0:M.id))return t(g);const T=O.findIndex(A=>A.id===(s==null?void 0:s.id)),$=O[T+1];return y(new URLSearchParams("")),d(A=>({...A,...w})),u(A=>({...A,[s==null?void 0:s.id]:w})),f(O),c($),Promise.resolve()},[s,l,t,c,y,u,f,d,g]),S=x.useCallback(()=>{const w=p.findIndex(E=>E.id===(s==null?void 0:s.id)),O=p[w-1];y(new URLSearchParams("")),c(O)},[p,y,c,s==null?void 0:s.id]);return m.jsx(m.Fragment,{children:s!==null&&("inputs"in s?m.jsxs(sj,{onSubmit:_,footer:m.jsx(P$,{onBack:S,onCancel:b}),defaultValue:h[s.id],errorAdapter:r,disableGrid:n,isVertical:i,singleColumn:a,isWizard:!0,children:[m.jsx(v2e,{}),s.inputs]},s.id):m.jsxs("div",{"data-cy":`wizard-section-${s.id}`,style:{display:"flex",flexDirection:"column",height:"100%"},children:[m.jsx(k.PageSection,{"aria-label":Lp("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,variant:"light",children:s==null?void 0:s.element}),m.jsx(P$,{onNext:()=>void _({}),onBack:S,onCancel:b})]}))})}function v2e(){const{activeStep:e,setStepError:t}=nu(),{errors:n}=Gb(),r=JSON.stringify(n);return x.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}const y2e=Ee.div`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "2.4.1320",
4
+ "version": "2.4.1321",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",