@ansible/ansible-ui-framework 2.4.597 → 2.4.599

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,8 @@
1
+ import { ReactNode } from 'react';
1
2
  export declare function PageDetailCodeEditor(props: {
2
3
  label?: string;
3
4
  value: string;
4
- helpText?: string;
5
+ helpText?: string | ReactNode;
5
6
  showCopyToClipboard?: boolean;
6
7
  toggleLanguage?: boolean;
7
8
  }): import("react/jsx-runtime").JSX.Element;
package/index.js CHANGED
@@ -44106,7 +44106,7 @@ function hEe(e) {
44106
44106
  }, x),
44107
44107
  "aria-label": "Options menu",
44108
44108
  isDisabled: u || k,
44109
- children: /* @__PURE__ */ v.jsx(Dv, {})
44109
+ children: /* @__PURE__ */ v.jsx(Dv, { "data-cy": "lookup-button" })
44110
44110
  }
44111
44111
  ),
44112
44112
  s && s
package/index.umd.cjs CHANGED
@@ -468,7 +468,7 @@ ${e.value}
468
468
  margin-right: auto;
469
469
  }
470
470
  `;function axe(e){const{t}=yt(),{handleCopy:n,handleDownload:r,handleUpload:i,allowCopy:a,allowDownload:o,allowUpload:l,toggleLanguages:s,setLanguage:c,selectedLanguage:u,errors:f,name:d}=e,h=[];a&&h.push(v.jsx(T.Tooltip,{content:t("Copy"),children:v.jsx($h,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),icon:v.jsx(Ae.CopyIcon,{}),type:"button",onClick:()=>n()},"copy-button")},"copy-file")),l&&h.push(v.jsx(T.Tooltip,{content:t("Upload"),children:v.jsx($h,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),icon:v.jsx(Ae.UploadIcon,{}),type:"button",onClick:()=>i()},"upload-button")},"upload-file")),o&&h.push(v.jsx(T.Tooltip,{content:t("Download"),children:v.jsx($h,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),icon:v.jsx(Ae.DownloadIcon,{}),type:"button",onClick:()=>r()},"download-button")},"download-file"));const m=(s==null?void 0:s.map(p=>v.jsx($h,{id:`toggle-${p}`,"data-cy":`toggle-${p}`,"aria-label":t("Toggle to {{language}}",{language:p}),isSelected:u===p,isDisabled:!!f[d],text:p,type:"button",onChange:()=>c(p)},p)))||[];return v.jsxs(T.Flex,{justifyContent:{default:"justifyContentSpaceBetween"},children:[v.jsx(T.FlexItem,{children:v.jsx(T.ToggleGroup,{isCompact:!0,children:h})}),v.jsx(T.FlexItem,{align:{default:"alignRight"},children:v.jsx(T.ToggleGroup,{isCompact:!0,children:m})})]})}function oxe(e){const{t}=yt(),{allowCopy:n=!0,allowDownload:r=!0,allowUpload:i=!0,defaultExpanded:a,isExpandable:o,isReadOnly:l,isRequired:s,label:c,name:u,toggleLanguages:f,validate:d,...h}=e,{formState:{isSubmitting:m,isValidating:p,errors:y},setError:_,clearErrors:b,getValues:S,control:C,setValue:w}=Bi(),[E,A]=x.useState("yaml"),[k,D]=x.useState(!a),$=x.useRef(null),P=Bm(),{writeToClipboard:j}=k5(),M=e.id??u.split(".").join("-");x.useEffect(()=>{y[u]||b(u)},[y,u,b]);const I=x.useCallback(X=>{const V=S(u);if(!(X!=="json"&&X!=="yaml"||!V)){if(_5e(V))return X==="json"?w(u,V):w(u,GP(V));if(b5e(V))return X==="json"?w(u,V):w(u,GP(JSON.stringify(V)));X==="json"?w(u,y5e(V)):w(u,V)}},[S,u,w]),z=x.useCallback(X=>{try{I(X),A(X)}catch(V){V instanceof Error?_(u,{message:V.message}):_(u,{message:t("Invalid syntax")})}},[I,u,_,t]),te=x.useCallback(()=>{j(S(u))},[S,u,j]),Q=x.useCallback(()=>{$.current&&$.current.click()},[]),Y=x.useCallback(()=>{x5e(u||"codeEditorData",S(u));const V={variant:"success",title:t("File downloaded")};P.addAlert(V)},[P,S,u,t]),Z=x.useCallback(X=>{const V=X[0],U=new FileReader;U.onload=()=>{const H=U.result;if(typeof H=="string"){w(u,H);const K={variant:"success",title:t("File uploaded")};P.addAlert(K)}},U.onerror=()=>{const H={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};P.addAlert(H)},U.readAsText(V)},[w,u,t,P]),W=B6({onDrop:Z,multiple:!1});return v.jsx(yl,{name:u,control:C,shouldUnregister:!0,render:({field:{name:X,onChange:V,value:U},fieldState:{error:H}})=>{var se;const K=[...new Set((se=H==null?void 0:H.message)==null?void 0:se.split(`
471
- `))],R=U!=null&&U!=="";return v.jsx(vi,{fieldId:M,...h,icon:o?v.jsx(Ae.AngleRightIcon,{"data-cy":"expandable",style:{transform:k?"rotate(0deg)":"rotate(90deg)",transition:"transform"},onClick:()=>D(ne=>!ne),"aria-label":t("Expand or collapse extra variables")}):void 0,label:e.label,helperTextInvalid:!(d&&p)&&K,children:(!o||!k)&&v.jsxs(v.Fragment,{children:[v.jsx(axe,{allowCopy:n,allowDownload:r,allowUpload:i,errors:y,handleCopy:()=>te(),handleDownload:Y,handleUpload:Q,name:X,selectedLanguage:E,setLanguage:z,toggleLanguages:f},"actions-row"),e.allowUpload?v.jsxs("div",{id:"code-editor-dropzone",...W.getRootProps({disabled:R}),style:{width:"100%",height:"100%"},children:[v.jsx("input",{id:"code-editor-dropzone-input",...W.getInputProps(),ref:$}),v.jsx(t3,{setError:_,clearErrors:b,id:M,"data-cy":M,name:X,language:E,value:U,onChange:V,isReadOnly:l||m,invalid:!(d&&p)&&(H==null?void 0:H.message)!==void 0})]}):v.jsx(t3,{setError:_,clearErrors:b,id:M,"data-cy":M,name:X,language:E,value:U,onChange:V,isReadOnly:l||m,invalid:!(d&&p)&&(H==null?void 0:H.message)!==void 0})]})})},rules:{required:typeof c=="string"&&s===!0?{value:!0,message:`${pr(c.toLocaleLowerCase())} is required.`}:void 0,validate:e.validate}})}function lxe(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:a,placeholderText:o,options:l,footer:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,fieldNameToResetOnFieldChange:m}=e,p=Oa(e),{control:y,formState:{isSubmitting:_,isValidating:b},resetField:S}=Bi(),[C,w]=x.useState(!1),E=x.useCallback(()=>w(!C),[C]),[A]=Ot();return v.jsx(yl,{name:t,control:y,shouldUnregister:!0,render:({field:{onChange:k,value:D},fieldState:{error:$}})=>{D===""&&l.length===1&&d&&k(l[0].value);const P=(I,z)=>{var te;k((te=l.find(Q=>Q.label===z.toString()))==null?void 0:te.value),m&&S(m),w(!1)},j=$!=null&&$.message?h&&b?A.validating:$==null?void 0:$.message:void 0,M=l.find(I=>I.value===D);return v.jsx(vi,{fieldId:p,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:a,helperText:c,helperTextInvalid:j,isRequired:d,children:v.jsx(wa,{id:p,placeholderText:o,variant:"single","aria-describedby":`${p}-form-group`,selections:M==null?void 0:M.label,onSelect:P,isOpen:C,onToggle:E,onClear:d?void 0:()=>{k(null),w(!1)},maxHeight:280,validated:j?"error":void 0,isDisabled:u||f||_,hasPlaceholderStyle:!0,footer:s,ouiaId:"menu-select","data-cy":p,children:l.map(I=>{const z=Hr(I);return v.jsx(Vr,{id:z,value:I.label,label:I.label,description:I.description,"data-cy":z,children:I.label},I.label)})})})},rules:{required:typeof n=="string"&&d===!0?{value:!0,message:`${pr(n.toLocaleLowerCase())} is required.`}:void 0,validate:h}})}function sxe(e){const{name:t,helperText:n,validate:r,additionalControls:i,label:a,labelHelp:o,labelHelpTitle:l}=e,{control:s,formState:{isSubmitting:c,isValidating:u}}=Bi(),f=Oa(e);return v.jsx(yl,{name:t,control:s,shouldUnregister:!0,render:({field:{onChange:d,value:h},fieldState:{error:m}})=>{const p=r&&u||m==null?void 0:m.message;return v.jsx(vi,{fieldId:f,"data-cy":f+"-form-group",label:a,labelHelpTitle:l,labelHelp:o,helperText:n,helperTextInvalid:p,additionalControls:i,children:v.jsx(T.Switch,{"data-cy":f+"-toggle",isChecked:h,onChange:y=>d(y),isDisabled:c})})}})}function cxe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:m,maxLength:p,min:y,max:_,pattern:b,selectTitle:S,selectOpen:C,selectValue:w,autoFocus:E,autoComplete:A}=e,k=Oa(e),{control:D,setValue:$,formState:{isSubmitting:P,isValidating:j}}=Bi(),[M,I]=x.useState(!1),[z]=Ot();return v.jsx(yl,{name:n,control:D,shouldUnregister:!0,render:({field:{onChange:te,value:Q,name:Y},fieldState:{error:Z}})=>{const W=Z!=null&&Z.message?h&&j?z.validating:Z==null?void 0:Z.message:void 0;function X(V){te(V.trimStart())}return v.jsx(vi,{fieldId:k,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,helperText:c,helperTextInvalid:W,isRequired:d,children:v.jsxs(T.InputGroup,{children:[v.jsx(T.InputGroupItem,{isFill:!0,children:v.jsx(T.TextArea,{id:k,placeholder:l,onChange:(V,U)=>X(U),value:Q??"","aria-describedby":k?`${k}-form-group`:void 0,validated:W?"error":void 0,type:t==="password"?M?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:A||"off","data-cy":k})}),t==="password"&&v.jsx(T.Button,{variant:"control",onClick:()=>I(!M),isDisabled:u||f,children:M?v.jsx(Ae.EyeIcon,{}):v.jsx(Ae.EyeSlashIcon,{})}),S&&v.jsx(T.Button,{ouiaId:`lookup-${Y}-button`,variant:"control",onClick:()=>C==null?void 0:C(V=>{if(w){const U=w(V);$(Y,U,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||P,children:v.jsx(Ae.SearchIcon,{})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${pr(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof m=="number"?{value:m,message:`${pr(r.toLocaleLowerCase())} must be at least ${m} characters.`}:m,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${pr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${pr(r.toLocaleLowerCase())} must be less than ${y}.`}:m,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${pr(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:m,pattern:b}})}function uxe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:m,maxLength:p,min:y,max:_,pattern:b,selectTitle:S,selectOpen:C,selectValue:w,autoFocus:E,autoComplete:A}=e,k=Oa(e),{control:D,setValue:$,formState:{isSubmitting:P,isValidating:j}}=Bi(),[M,I]=x.useState(!1),[z]=Ot();return v.jsx(yl,{name:n,control:D,shouldUnregister:!0,render:({field:{onChange:te,value:Q,name:Y},fieldState:{error:Z}})=>{const W=Z!=null&&Z.message?h&&j?z.validating:Z==null?void 0:Z.message:void 0;function X(V){te(V.trimStart())}return v.jsx(vi,{fieldId:k,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,helperText:c,helperTextInvalid:W,isRequired:d,children:v.jsxs(T.InputGroup,{children:[v.jsx(T.InputGroupItem,{isFill:!0,children:v.jsx(T.TextInput,{id:k,placeholder:l,onChange:(V,U)=>X(U),value:Q??"","aria-describedby":k?`${k}-form-group`:void 0,validated:W?"error":void 0,type:t==="password"?M?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:A||"off","data-cy":k})}),t==="password"&&v.jsx(T.Button,{variant:"control",onClick:()=>I(!M),isDisabled:u||f,children:M?v.jsx(Ae.EyeIcon,{}):v.jsx(Ae.EyeSlashIcon,{})}),S&&v.jsx(T.Button,{ouiaId:`lookup-${Y}-button`,variant:"control",onClick:()=>C==null?void 0:C(V=>{if(w){const U=w(V);$(Y,U,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||P,children:v.jsx(Ae.SearchIcon,{})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${pr(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof m=="number"?{value:m,message:`${pr(r.toLocaleLowerCase())} must be at least ${m} characters.`}:m,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${pr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${pr(r.toLocaleLowerCase())} must be less than ${y}.`}:m,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${pr(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:m,pattern:b}})}const fxe=({error:e})=>typeof e=="string"?null:Array.isArray(e)&&e.length>1?v.jsx("ul",{children:e.map((t,n)=>v.jsx("li",{children:t},n))}):x.isValidElement(e)?v.jsx(v.Fragment,{children:e}):null;function dxe({error:e,isMd:t,onCancel:n}){const{t:r}=yt();if(!e)return null;const i="24px",a=Array.isArray(e)&&e.length>1,o=t&&n?{paddingLeft:i}:void 0,s=(()=>typeof e=="string"?e:Array.isArray(e)&&e.length>0?e.length>1?r("Errors"):String(e[0]):r("Error"))();return v.jsx(T.Alert,{variant:"danger",title:s,isInline:!0,style:o,isExpandable:a,children:v.jsx(fxe,{error:e})})}const Cb=Symbol.for("yaml.alias"),hxe=Symbol.for("yaml.document"),lo=Symbol.for("yaml.map"),n3=Symbol.for("yaml.pair"),Ob=Symbol.for("yaml.scalar"),jc=Symbol.for("yaml.seq"),ci=Symbol.for("yaml.node.type"),Ol=e=>!!e&&typeof e=="object"&&e[ci]===Cb,Fh=e=>!!e&&typeof e=="object"&&e[ci]===hxe,r3=e=>!!e&&typeof e=="object"&&e[ci]===lo,an=e=>!!e&&typeof e=="object"&&e[ci]===n3,Yt=e=>!!e&&typeof e=="object"&&e[ci]===Ob,Tb=e=>!!e&&typeof e=="object"&&e[ci]===jc;function Gn(e){if(e&&typeof e=="object")switch(e[ci]){case lo:case jc:return!0}return!1}function Ln(e){if(e&&typeof e=="object")switch(e[ci]){case Cb:case lo:case Ob:case jc:return!0}return!1}const mxe=e=>(Yt(e)||Gn(e))&&!!e.anchor,so=Symbol("break visit"),pxe=Symbol("skip children"),Dc=Symbol("remove node");function Mc(e,t){const n=gxe(t);Fh(e)?Tl(null,e.contents,n,Object.freeze([e]))===Dc&&(e.contents=null):Tl(null,e,n,Object.freeze([]))}Mc.BREAK=so,Mc.SKIP=pxe,Mc.REMOVE=Dc;function Tl(e,t,n,r){const i=vxe(e,t,n,r);if(Ln(i)||an(i))return yxe(e,r,i),Tl(e,i,n,r);if(typeof i!="symbol"){if(Gn(t)){r=Object.freeze(r.concat(t));for(let a=0;a<t.items.length;++a){const o=Tl(a,t.items[a],n,r);if(typeof o=="number")a=o-1;else{if(o===so)return so;o===Dc&&(t.items.splice(a,1),a-=1)}}}else if(an(t)){r=Object.freeze(r.concat(t));const a=Tl("key",t.key,n,r);if(a===so)return so;a===Dc&&(t.key=null);const o=Tl("value",t.value,n,r);if(o===so)return so;o===Dc&&(t.value=null)}}return i}function gxe(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function vxe(e,t,n,r){var i,a,o,l,s;if(typeof n=="function")return n(e,t,r);if(r3(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(Tb(t))return(a=n.Seq)==null?void 0:a.call(n,e,t,r);if(an(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(Yt(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(Ol(t))return(s=n.Alias)==null?void 0:s.call(n,e,t,r)}function yxe(e,t,n){const r=t[t.length-1];if(Gn(r))r.items[e]=n;else if(an(r))e==="key"?r.key=n:r.value=n;else if(Fh(r))r.contents=n;else{const i=Ol(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}function i3(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Ic(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,a=r.length;i<a;++i){const o=r[i],l=Ic(e,r,String(i),o);l===void 0?delete r[i]:l!==o&&(r[i]=l)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const a=r.get(i),o=Ic(e,r,i,a);o===void 0?r.delete(i):o!==a&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const a=Ic(e,r,i,i);a===void 0?r.delete(i):a!==i&&(r.delete(i),r.add(a))}else for(const[i,a]of Object.entries(r)){const o=Ic(e,r,i,a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}return e.call(t,n,r)}function $r(e,t,n){if(Array.isArray(e))return e.map((r,i)=>$r(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!mxe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=a=>{r.res=a,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class Eb{constructor(t){Object.defineProperty(this,ci,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!Fh(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=$r(this,"",o);if(typeof i=="function")for(const{count:s,res:c}of o.anchors.values())i(c,s);return typeof a=="function"?Ic(a,{"":l},"",l):l}}class bxe extends Eb{constructor(t){super(Cb),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Mc(t,{Node:(r,i)=>{if(i===this)return Mc.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:a}=n,o=this.resolve(i);if(!o){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(s)}let l=r.get(o);if(l||($r(o,null,n),l=r.get(o)),!l||l.res===void 0){const s="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(s)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Nh(i,o,r)),l.count*l.aliasCount>a)){const s="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(s)}return l.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(i3(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${i} `}return i}}function Nh(e,t,n){if(Ol(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Gn(t)){let r=0;for(const i of t.items){const a=Nh(e,i,n);a>r&&(r=a)}return r}else if(an(t)){const r=Nh(e,t.key,n),i=Nh(e,t.value,n);return Math.max(r,i)}return 1}const a3=e=>!e||typeof e!="function"&&typeof e!="object";class Nt extends Eb{constructor(t){super(Ob),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:$r(this.value,t,n)}toString(){return String(this.value)}}Nt.BLOCK_FOLDED="BLOCK_FOLDED",Nt.BLOCK_LITERAL="BLOCK_LITERAL",Nt.PLAIN="PLAIN",Nt.QUOTE_DOUBLE="QUOTE_DOUBLE",Nt.QUOTE_SINGLE="QUOTE_SINGLE";const _xe="tag:yaml.org,2002:";function xxe(e,t,n){if(t){const r=n.filter(a=>a.tag===t),i=r.find(a=>!a.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function Rh(e,t,n){var f,d,h;if(Fh(e)&&(e=e.contents),Ln(e))return e;if(an(e)){const m=(d=(f=n.schema[lo]).createNode)==null?void 0:d.call(f,n.schema,null,n);return m.items.push(e),m}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:l}=n;let s;if(r&&e&&typeof e=="object"){if(s=l.get(e),s)return s.anchor||(s.anchor=i(e)),new bxe(s.anchor);s={anchor:null,node:null},l.set(e,s)}t!=null&&t.startsWith("!!")&&(t=_xe+t.slice(2));let c=xxe(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const m=new Nt(e);return s&&(s.node=m),m}c=e instanceof Map?o[lo]:Symbol.iterator in Object(e)?o[jc]:o[lo]}a&&(a(c),delete n.onTagObj);const u=c!=null&&c.createNode?c.createNode(n.schema,e,n):typeof((h=c==null?void 0:c.nodeClass)==null?void 0:h.from)=="function"?c.nodeClass.from(n.schema,e,n):new Nt(e);return t?u.tag=t:c.default||(u.tag=c.tag),s&&(s.node=u),u}function o3(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const a=t[i];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const o=[];o[a]=r,r=o}else r=new Map([[a,r]])}return Rh(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Sxe=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class zh extends Eb{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>Ln(r)||an(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Sxe(t))this.add(n);else{const[r,...i]=t,a=this.get(r,!0);if(Gn(a))a.addIn(i,n);else if(a===void 0&&this.schema)this.set(r,o3(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(Gn(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,a=this.get(r,!0);return i.length===0?!n&&Yt(a)?a.value:a:Gn(a)?a.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!an(n))return!1;const r=n.value;return r==null||t&&Yt(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return Gn(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const a=this.get(r,!0);if(Gn(a))a.setIn(i,n);else if(a===void 0&&this.schema)this.set(r,o3(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}zh.maxFlowStringSingleLineLength=60;const wxe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Lc(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const co=(e,t,n)=>e.endsWith(`
471
+ `))],R=U!=null&&U!=="";return v.jsx(vi,{fieldId:M,...h,icon:o?v.jsx(Ae.AngleRightIcon,{"data-cy":"expandable",style:{transform:k?"rotate(0deg)":"rotate(90deg)",transition:"transform"},onClick:()=>D(ne=>!ne),"aria-label":t("Expand or collapse extra variables")}):void 0,label:e.label,helperTextInvalid:!(d&&p)&&K,children:(!o||!k)&&v.jsxs(v.Fragment,{children:[v.jsx(axe,{allowCopy:n,allowDownload:r,allowUpload:i,errors:y,handleCopy:()=>te(),handleDownload:Y,handleUpload:Q,name:X,selectedLanguage:E,setLanguage:z,toggleLanguages:f},"actions-row"),e.allowUpload?v.jsxs("div",{id:"code-editor-dropzone",...W.getRootProps({disabled:R}),style:{width:"100%",height:"100%"},children:[v.jsx("input",{id:"code-editor-dropzone-input",...W.getInputProps(),ref:$}),v.jsx(t3,{setError:_,clearErrors:b,id:M,"data-cy":M,name:X,language:E,value:U,onChange:V,isReadOnly:l||m,invalid:!(d&&p)&&(H==null?void 0:H.message)!==void 0})]}):v.jsx(t3,{setError:_,clearErrors:b,id:M,"data-cy":M,name:X,language:E,value:U,onChange:V,isReadOnly:l||m,invalid:!(d&&p)&&(H==null?void 0:H.message)!==void 0})]})})},rules:{required:typeof c=="string"&&s===!0?{value:!0,message:`${pr(c.toLocaleLowerCase())} is required.`}:void 0,validate:e.validate}})}function lxe(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:a,placeholderText:o,options:l,footer:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,fieldNameToResetOnFieldChange:m}=e,p=Oa(e),{control:y,formState:{isSubmitting:_,isValidating:b},resetField:S}=Bi(),[C,w]=x.useState(!1),E=x.useCallback(()=>w(!C),[C]),[A]=Ot();return v.jsx(yl,{name:t,control:y,shouldUnregister:!0,render:({field:{onChange:k,value:D},fieldState:{error:$}})=>{D===""&&l.length===1&&d&&k(l[0].value);const P=(I,z)=>{var te;k((te=l.find(Q=>Q.label===z.toString()))==null?void 0:te.value),m&&S(m),w(!1)},j=$!=null&&$.message?h&&b?A.validating:$==null?void 0:$.message:void 0,M=l.find(I=>I.value===D);return v.jsx(vi,{fieldId:p,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:a,helperText:c,helperTextInvalid:j,isRequired:d,children:v.jsx(wa,{id:p,placeholderText:o,variant:"single","aria-describedby":`${p}-form-group`,selections:M==null?void 0:M.label,onSelect:P,isOpen:C,onToggle:E,onClear:d?void 0:()=>{k(null),w(!1)},maxHeight:280,validated:j?"error":void 0,isDisabled:u||f||_,hasPlaceholderStyle:!0,footer:s,ouiaId:"menu-select","data-cy":p,children:l.map(I=>{const z=Hr(I);return v.jsx(Vr,{id:z,value:I.label,label:I.label,description:I.description,"data-cy":z,children:I.label},I.label)})})})},rules:{required:typeof n=="string"&&d===!0?{value:!0,message:`${pr(n.toLocaleLowerCase())} is required.`}:void 0,validate:h}})}function sxe(e){const{name:t,helperText:n,validate:r,additionalControls:i,label:a,labelHelp:o,labelHelpTitle:l}=e,{control:s,formState:{isSubmitting:c,isValidating:u}}=Bi(),f=Oa(e);return v.jsx(yl,{name:t,control:s,shouldUnregister:!0,render:({field:{onChange:d,value:h},fieldState:{error:m}})=>{const p=r&&u||m==null?void 0:m.message;return v.jsx(vi,{fieldId:f,"data-cy":f+"-form-group",label:a,labelHelpTitle:l,labelHelp:o,helperText:n,helperTextInvalid:p,additionalControls:i,children:v.jsx(T.Switch,{"data-cy":f+"-toggle",isChecked:h,onChange:y=>d(y),isDisabled:c})})}})}function cxe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:m,maxLength:p,min:y,max:_,pattern:b,selectTitle:S,selectOpen:C,selectValue:w,autoFocus:E,autoComplete:A}=e,k=Oa(e),{control:D,setValue:$,formState:{isSubmitting:P,isValidating:j}}=Bi(),[M,I]=x.useState(!1),[z]=Ot();return v.jsx(yl,{name:n,control:D,shouldUnregister:!0,render:({field:{onChange:te,value:Q,name:Y},fieldState:{error:Z}})=>{const W=Z!=null&&Z.message?h&&j?z.validating:Z==null?void 0:Z.message:void 0;function X(V){te(V.trimStart())}return v.jsx(vi,{fieldId:k,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,helperText:c,helperTextInvalid:W,isRequired:d,children:v.jsxs(T.InputGroup,{children:[v.jsx(T.InputGroupItem,{isFill:!0,children:v.jsx(T.TextArea,{id:k,placeholder:l,onChange:(V,U)=>X(U),value:Q??"","aria-describedby":k?`${k}-form-group`:void 0,validated:W?"error":void 0,type:t==="password"?M?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:A||"off","data-cy":k})}),t==="password"&&v.jsx(T.Button,{variant:"control",onClick:()=>I(!M),isDisabled:u||f,children:M?v.jsx(Ae.EyeIcon,{}):v.jsx(Ae.EyeSlashIcon,{})}),S&&v.jsx(T.Button,{ouiaId:`lookup-${Y}-button`,variant:"control",onClick:()=>C==null?void 0:C(V=>{if(w){const U=w(V);$(Y,U,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||P,children:v.jsx(Ae.SearchIcon,{})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${pr(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof m=="number"?{value:m,message:`${pr(r.toLocaleLowerCase())} must be at least ${m} characters.`}:m,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${pr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${pr(r.toLocaleLowerCase())} must be less than ${y}.`}:m,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${pr(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:m,pattern:b}})}function uxe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:m,maxLength:p,min:y,max:_,pattern:b,selectTitle:S,selectOpen:C,selectValue:w,autoFocus:E,autoComplete:A}=e,k=Oa(e),{control:D,setValue:$,formState:{isSubmitting:P,isValidating:j}}=Bi(),[M,I]=x.useState(!1),[z]=Ot();return v.jsx(yl,{name:n,control:D,shouldUnregister:!0,render:({field:{onChange:te,value:Q,name:Y},fieldState:{error:Z}})=>{const W=Z!=null&&Z.message?h&&j?z.validating:Z==null?void 0:Z.message:void 0;function X(V){te(V.trimStart())}return v.jsx(vi,{fieldId:k,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,helperText:c,helperTextInvalid:W,isRequired:d,children:v.jsxs(T.InputGroup,{children:[v.jsx(T.InputGroupItem,{isFill:!0,children:v.jsx(T.TextInput,{id:k,placeholder:l,onChange:(V,U)=>X(U),value:Q??"","aria-describedby":k?`${k}-form-group`:void 0,validated:W?"error":void 0,type:t==="password"?M?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:A||"off","data-cy":k})}),t==="password"&&v.jsx(T.Button,{variant:"control",onClick:()=>I(!M),isDisabled:u||f,children:M?v.jsx(Ae.EyeIcon,{}):v.jsx(Ae.EyeSlashIcon,{})}),S&&v.jsx(T.Button,{ouiaId:`lookup-${Y}-button`,variant:"control",onClick:()=>C==null?void 0:C(V=>{if(w){const U=w(V);$(Y,U,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||P,children:v.jsx(Ae.SearchIcon,{"data-cy":"lookup-button"})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${pr(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof m=="number"?{value:m,message:`${pr(r.toLocaleLowerCase())} must be at least ${m} characters.`}:m,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${pr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${pr(r.toLocaleLowerCase())} must be less than ${y}.`}:m,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${pr(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:m,pattern:b}})}const fxe=({error:e})=>typeof e=="string"?null:Array.isArray(e)&&e.length>1?v.jsx("ul",{children:e.map((t,n)=>v.jsx("li",{children:t},n))}):x.isValidElement(e)?v.jsx(v.Fragment,{children:e}):null;function dxe({error:e,isMd:t,onCancel:n}){const{t:r}=yt();if(!e)return null;const i="24px",a=Array.isArray(e)&&e.length>1,o=t&&n?{paddingLeft:i}:void 0,s=(()=>typeof e=="string"?e:Array.isArray(e)&&e.length>0?e.length>1?r("Errors"):String(e[0]):r("Error"))();return v.jsx(T.Alert,{variant:"danger",title:s,isInline:!0,style:o,isExpandable:a,children:v.jsx(fxe,{error:e})})}const Cb=Symbol.for("yaml.alias"),hxe=Symbol.for("yaml.document"),lo=Symbol.for("yaml.map"),n3=Symbol.for("yaml.pair"),Ob=Symbol.for("yaml.scalar"),jc=Symbol.for("yaml.seq"),ci=Symbol.for("yaml.node.type"),Ol=e=>!!e&&typeof e=="object"&&e[ci]===Cb,Fh=e=>!!e&&typeof e=="object"&&e[ci]===hxe,r3=e=>!!e&&typeof e=="object"&&e[ci]===lo,an=e=>!!e&&typeof e=="object"&&e[ci]===n3,Yt=e=>!!e&&typeof e=="object"&&e[ci]===Ob,Tb=e=>!!e&&typeof e=="object"&&e[ci]===jc;function Gn(e){if(e&&typeof e=="object")switch(e[ci]){case lo:case jc:return!0}return!1}function Ln(e){if(e&&typeof e=="object")switch(e[ci]){case Cb:case lo:case Ob:case jc:return!0}return!1}const mxe=e=>(Yt(e)||Gn(e))&&!!e.anchor,so=Symbol("break visit"),pxe=Symbol("skip children"),Dc=Symbol("remove node");function Mc(e,t){const n=gxe(t);Fh(e)?Tl(null,e.contents,n,Object.freeze([e]))===Dc&&(e.contents=null):Tl(null,e,n,Object.freeze([]))}Mc.BREAK=so,Mc.SKIP=pxe,Mc.REMOVE=Dc;function Tl(e,t,n,r){const i=vxe(e,t,n,r);if(Ln(i)||an(i))return yxe(e,r,i),Tl(e,i,n,r);if(typeof i!="symbol"){if(Gn(t)){r=Object.freeze(r.concat(t));for(let a=0;a<t.items.length;++a){const o=Tl(a,t.items[a],n,r);if(typeof o=="number")a=o-1;else{if(o===so)return so;o===Dc&&(t.items.splice(a,1),a-=1)}}}else if(an(t)){r=Object.freeze(r.concat(t));const a=Tl("key",t.key,n,r);if(a===so)return so;a===Dc&&(t.key=null);const o=Tl("value",t.value,n,r);if(o===so)return so;o===Dc&&(t.value=null)}}return i}function gxe(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function vxe(e,t,n,r){var i,a,o,l,s;if(typeof n=="function")return n(e,t,r);if(r3(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(Tb(t))return(a=n.Seq)==null?void 0:a.call(n,e,t,r);if(an(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(Yt(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(Ol(t))return(s=n.Alias)==null?void 0:s.call(n,e,t,r)}function yxe(e,t,n){const r=t[t.length-1];if(Gn(r))r.items[e]=n;else if(an(r))e==="key"?r.key=n:r.value=n;else if(Fh(r))r.contents=n;else{const i=Ol(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}function i3(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Ic(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,a=r.length;i<a;++i){const o=r[i],l=Ic(e,r,String(i),o);l===void 0?delete r[i]:l!==o&&(r[i]=l)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const a=r.get(i),o=Ic(e,r,i,a);o===void 0?r.delete(i):o!==a&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const a=Ic(e,r,i,i);a===void 0?r.delete(i):a!==i&&(r.delete(i),r.add(a))}else for(const[i,a]of Object.entries(r)){const o=Ic(e,r,i,a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}return e.call(t,n,r)}function $r(e,t,n){if(Array.isArray(e))return e.map((r,i)=>$r(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!mxe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=a=>{r.res=a,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class Eb{constructor(t){Object.defineProperty(this,ci,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!Fh(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=$r(this,"",o);if(typeof i=="function")for(const{count:s,res:c}of o.anchors.values())i(c,s);return typeof a=="function"?Ic(a,{"":l},"",l):l}}class bxe extends Eb{constructor(t){super(Cb),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Mc(t,{Node:(r,i)=>{if(i===this)return Mc.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:a}=n,o=this.resolve(i);if(!o){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(s)}let l=r.get(o);if(l||($r(o,null,n),l=r.get(o)),!l||l.res===void 0){const s="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(s)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Nh(i,o,r)),l.count*l.aliasCount>a)){const s="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(s)}return l.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(i3(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${i} `}return i}}function Nh(e,t,n){if(Ol(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Gn(t)){let r=0;for(const i of t.items){const a=Nh(e,i,n);a>r&&(r=a)}return r}else if(an(t)){const r=Nh(e,t.key,n),i=Nh(e,t.value,n);return Math.max(r,i)}return 1}const a3=e=>!e||typeof e!="function"&&typeof e!="object";class Nt extends Eb{constructor(t){super(Ob),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:$r(this.value,t,n)}toString(){return String(this.value)}}Nt.BLOCK_FOLDED="BLOCK_FOLDED",Nt.BLOCK_LITERAL="BLOCK_LITERAL",Nt.PLAIN="PLAIN",Nt.QUOTE_DOUBLE="QUOTE_DOUBLE",Nt.QUOTE_SINGLE="QUOTE_SINGLE";const _xe="tag:yaml.org,2002:";function xxe(e,t,n){if(t){const r=n.filter(a=>a.tag===t),i=r.find(a=>!a.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function Rh(e,t,n){var f,d,h;if(Fh(e)&&(e=e.contents),Ln(e))return e;if(an(e)){const m=(d=(f=n.schema[lo]).createNode)==null?void 0:d.call(f,n.schema,null,n);return m.items.push(e),m}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:l}=n;let s;if(r&&e&&typeof e=="object"){if(s=l.get(e),s)return s.anchor||(s.anchor=i(e)),new bxe(s.anchor);s={anchor:null,node:null},l.set(e,s)}t!=null&&t.startsWith("!!")&&(t=_xe+t.slice(2));let c=xxe(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const m=new Nt(e);return s&&(s.node=m),m}c=e instanceof Map?o[lo]:Symbol.iterator in Object(e)?o[jc]:o[lo]}a&&(a(c),delete n.onTagObj);const u=c!=null&&c.createNode?c.createNode(n.schema,e,n):typeof((h=c==null?void 0:c.nodeClass)==null?void 0:h.from)=="function"?c.nodeClass.from(n.schema,e,n):new Nt(e);return t?u.tag=t:c.default||(u.tag=c.tag),s&&(s.node=u),u}function o3(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const a=t[i];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const o=[];o[a]=r,r=o}else r=new Map([[a,r]])}return Rh(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Sxe=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class zh extends Eb{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>Ln(r)||an(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Sxe(t))this.add(n);else{const[r,...i]=t,a=this.get(r,!0);if(Gn(a))a.addIn(i,n);else if(a===void 0&&this.schema)this.set(r,o3(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(Gn(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,a=this.get(r,!0);return i.length===0?!n&&Yt(a)?a.value:a:Gn(a)?a.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!an(n))return!1;const r=n.value;return r==null||t&&Yt(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return Gn(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const a=this.get(r,!0);if(Gn(a))a.setIn(i,n);else if(a===void 0&&this.schema)this.set(r,o3(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}zh.maxFlowStringSingleLineLength=60;const wxe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Lc(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const co=(e,t,n)=>e.endsWith(`
472
472
  `)?Lc(n,t):n.includes(`
473
473
  `)?`
474
474
  `+Lc(n,t):(e.endsWith(" ")?"":" ")+n,l3="flow",Ab="block",Bh="quoted";function Wh(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:l}={}){if(!i||i<0)return e;const s=Math.max(1+a,1+i-t.length);if(e.length<=s)return e;const c=[],u={};let f=i-t.length;typeof r=="number"&&(r>i-Math.max(2,a)?c.push(0):f=i-r);let d,h,m=!1,p=-1,y=-1,_=-1;n===Ab&&(p=s3(e,p),p!==-1&&(f=p+s));for(let S;S=e[p+=1];){if(n===Bh&&S==="\\"){switch(y=p,e[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}_=p}if(S===`
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.597",
4
+ "version": "2.4.599",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",