@ansible/ansible-ui-framework 2.4.2573 → 2.4.2575

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,11 +55,13 @@ export interface IPageActionButtonMultiple<T extends object> extends IPageAction
55
55
  }
56
56
  export interface IPageActionLink extends IPageActionNoneCommon {
57
57
  type: PageActionType.Link;
58
+ selection: PageActionSelection.None;
58
59
  href: string;
59
60
  variant?: ButtonVariant;
60
61
  }
61
62
  export interface IPageActionLinkSingle<T extends object> extends IPageActionSingleCommon<T> {
62
63
  type: PageActionType.Link;
64
+ selection: PageActionSelection.Single;
63
65
  href: (item: T) => string;
64
66
  variant?: ButtonVariant;
65
67
  }
package/index.js CHANGED
@@ -44650,7 +44650,10 @@ function tSe(e) {
44650
44650
  }
44651
44651
  var nSe = function(e, t) {
44652
44652
  if (e && t) {
44653
- var n = Array.isArray(t) ? t : t.split(","), r = e.name || "", i = (e.type || "").toLowerCase(), a = i.replace(/\/.*$/, "");
44653
+ var n = Array.isArray(t) ? t : t.split(",");
44654
+ if (n.length === 0)
44655
+ return !0;
44656
+ var r = e.name || "", i = (e.type || "").toLowerCase(), a = i.replace(/\/.*$/, "");
44654
44657
  return n.some(function(o) {
44655
44658
  var s = o.trim().toLowerCase();
44656
44659
  return s.charAt(0) === "." ? r.toLowerCase().endsWith(s) : s.endsWith("/*") ? a === s.replace(/\/.*$/, "") : i === s;
package/index.umd.cjs CHANGED
@@ -515,7 +515,7 @@ object-assign
515
515
  (c) Sindre Sorhus
516
516
  @license MIT
517
517
  */var Rb,xj;function p5e(){if(xj)return Rb;xj=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rb=i()?Object.assign:function(a,o){for(var s,l=r(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)n.call(s,u[d])&&(l[u[d]]=s[u[d]])}}return l},Rb}var Bb,_j;function zb(){if(_j)return Bb;_j=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bb=e,Bb}var Wb,wj;function Sj(){return wj||(wj=1,Wb=Function.call.bind(Object.prototype.hasOwnProperty)),Wb}var Vb,Oj;function g5e(){if(Oj)return Vb;Oj=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zb(),n={},r=Sj();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(r(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](o,c,l,s,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Vb=i,Vb}var Ub,Cj;function m5e(){if(Cj)return Ub;Cj=1;var e=Pg,t=p5e(),n=zb(),r=Sj(),i=g5e(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Ub=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(F){var H=F&&(u&&F[u]||F[c]);if(typeof H=="function")return H}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:_,element:S(),elementType:w(),instanceOf:O,node:I(),objectOf:k,oneOf:C,oneOfType:D,shape:j,exact:P};function p(F,H){return F===H?F!==0||1/F===1/H:F!==F&&H!==H}function m(F,H){this.message=F,this.data=H&&typeof H=="object"?H:{},this.stack=""}m.prototype=Error.prototype;function v(F){if(process.env.NODE_ENV!=="production")var H={},J=0;function Z(X,ie,ue,fe,K,re,ge){if(fe=fe||d,re=re||ue,ge!==n){if(l){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=fe+":"+ue;!H[Ee]&&J<3&&(a("You are manually calling a React.PropTypes validation function for the `"+re+"` prop on `"+fe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[Ee]=!0,J++)}}return ie[ue]==null?X?ie[ue]===null?new m("The "+K+" `"+re+"` is marked as required "+("in `"+fe+"`, but its value is `null`.")):new m("The "+K+" `"+re+"` is marked as required in "+("`"+fe+"`, but its value is `undefined`.")):null:F(ie,ue,fe,K,re)}var ee=Z.bind(null,!1);return ee.isRequired=Z.bind(null,!0),ee}function y(F){function H(J,Z,ee,X,ie,ue){var fe=J[Z],K=B(fe);if(K!==F){var re=R(fe);return new m("Invalid "+X+" `"+ie+"` of type "+("`"+re+"` supplied to `"+ee+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return v(H)}function b(){return v(o)}function _(F){function H(J,Z,ee,X,ie){if(typeof F!="function")return new m("Property `"+ie+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var ue=J[Z];if(!Array.isArray(ue)){var fe=B(ue);return new m("Invalid "+X+" `"+ie+"` of type "+("`"+fe+"` supplied to `"+ee+"`, expected an array."))}for(var K=0;K<ue.length;K++){var re=F(ue,K,ee,X,ie+"["+K+"]",n);if(re instanceof Error)return re}return null}return v(H)}function S(){function F(H,J,Z,ee,X){var ie=H[J];if(!s(ie)){var ue=B(ie);return new m("Invalid "+ee+" `"+X+"` of type "+("`"+ue+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return v(F)}function w(){function F(H,J,Z,ee,X){var ie=H[J];if(!e.isValidElementType(ie)){var ue=B(ie);return new m("Invalid "+ee+" `"+X+"` of type "+("`"+ue+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return v(F)}function O(F){function H(J,Z,ee,X,ie){if(!(J[Z]instanceof F)){var ue=F.name||d,fe=V(J[Z]);return new m("Invalid "+X+" `"+ie+"` of type "+("`"+fe+"` supplied to `"+ee+"`, expected ")+("instance of `"+ue+"`."))}return null}return v(H)}function C(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function H(J,Z,ee,X,ie){for(var ue=J[Z],fe=0;fe<F.length;fe++)if(p(ue,F[fe]))return null;var K=JSON.stringify(F,function(ge,z){var Ee=R(z);return Ee==="symbol"?String(z):z});return new m("Invalid "+X+" `"+ie+"` of value `"+String(ue)+"` "+("supplied to `"+ee+"`, expected one of "+K+"."))}return v(H)}function k(F){function H(J,Z,ee,X,ie){if(typeof F!="function")return new m("Property `"+ie+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var ue=J[Z],fe=B(ue);if(fe!=="object")return new m("Invalid "+X+" `"+ie+"` of type "+("`"+fe+"` supplied to `"+ee+"`, expected an object."));for(var K in ue)if(r(ue,K)){var re=F(ue,K,ee,X,ie+"."+K,n);if(re instanceof Error)return re}return null}return v(H)}function D(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var H=0;H<F.length;H++){var J=F[H];if(typeof J!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(J)+" at index "+H+"."),o}function Z(ee,X,ie,ue,fe){for(var K=[],re=0;re<F.length;re++){var ge=F[re],z=ge(ee,X,ie,ue,fe,n);if(z==null)return null;z.data&&r(z.data,"expectedType")&&K.push(z.data.expectedType)}var Ee=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new m("Invalid "+ue+" `"+fe+"` supplied to "+("`"+ie+"`"+Ee+"."))}return v(Z)}function I(){function F(H,J,Z,ee,X){return $(H[J])?null:new m("Invalid "+ee+" `"+X+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return v(F)}function A(F,H,J,Z,ee){return new m((F||"React class")+": "+H+" type `"+J+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function j(F){function H(J,Z,ee,X,ie){var ue=J[Z],fe=B(ue);if(fe!=="object")return new m("Invalid "+X+" `"+ie+"` of type `"+fe+"` "+("supplied to `"+ee+"`, expected `object`."));for(var K in F){var re=F[K];if(typeof re!="function")return A(ee,X,ie,K,R(re));var ge=re(ue,K,ee,X,ie+"."+K,n);if(ge)return ge}return null}return v(H)}function P(F){function H(J,Z,ee,X,ie){var ue=J[Z],fe=B(ue);if(fe!=="object")return new m("Invalid "+X+" `"+ie+"` of type `"+fe+"` "+("supplied to `"+ee+"`, expected `object`."));var K=t({},J[Z],F);for(var re in K){var ge=F[re];if(r(F,re)&&typeof ge!="function")return A(ee,X,ie,re,R(ge));if(!ge)return new m("Invalid "+X+" `"+ie+"` key `"+re+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(J[Z],null," ")+`
518
- Valid keys: `+JSON.stringify(Object.keys(F),null," "));var z=ge(ue,re,ee,X,ie+"."+re,n);if(z)return z}return null}return v(H)}function $(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every($);if(F===null||s(F))return!0;var H=f(F);if(H){var J=H.call(F),Z;if(H!==F.entries){for(;!(Z=J.next()).done;)if(!$(Z.value))return!1}else for(;!(Z=J.next()).done;){var ee=Z.value;if(ee&&!$(ee[1]))return!1}}else return!1;return!0;default:return!1}}function M(F,H){return F==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function B(F){var H=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":M(H,F)?"symbol":H}function R(F){if(typeof F>"u"||F===null)return""+F;var H=B(F);if(H==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return H}function W(F){var H=R(F);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function V(F){return!F.constructor||!F.constructor.name?d:F.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Ub}var Hb,Ej;function v5e(){if(Ej)return Hb;Ej=1;var e=zb();function t(){}function n(){}return n.resetWarningCache=t,Hb=function(){function r(o,s,l,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Hb}if(process.env.NODE_ENV!=="production"){var y5e=Pg,b5e=!0;Fb.exports=m5e()(y5e.isElement,b5e)}else Fb.exports=v5e()();var x5e=Fb.exports;const ut=Ne(x5e);var _5e=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Bu(e,t){var n=w5e(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function w5e(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=_5e.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var S5e=[".DS_Store","Thumbs.db"];function O5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return rp(e)&&C5e(e.dataTransfer)?[2,A5e(e.dataTransfer,e.type)]:E5e(e)?[2,T5e(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,k5e(e)]:[2,[]]})})}function C5e(e){return rp(e)}function E5e(e){return rp(e)&&rp(e.target)}function rp(e){return typeof e=="object"&&e!==null}function T5e(e){return Gb(e.target.files).map(function(t){return Bu(t)})}function k5e(e){return Vo(this,void 0,void 0,function(){var t;return Uo(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Bu(r)})]}})})}function A5e(e,t){return Vo(this,void 0,void 0,function(){var n,r;return Uo(this,function(i){switch(i.label){case 0:return e.items?(n=Gb(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(P5e))]):[3,2];case 1:return r=i.sent(),[2,Tj(kj(r))];case 2:return[2,Tj(Gb(e.files).map(function(a){return Bu(a)}))]}})})}function Tj(e){return e.filter(function(t){return S5e.indexOf(t.name)===-1})}function Gb(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function P5e(e){if(typeof e.webkitGetAsEntry!="function")return Aj(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Pj(t):Aj(e)}function kj(e){return e.reduce(function(t,n){return x_(x_([],b_(t),!1),b_(Array.isArray(n)?kj(n):[n]),!1)},[])}function Aj(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Bu(t);return Promise.resolve(n)}function j5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return[2,e.isDirectory?Pj(e):D5e(e)]})})}function Pj(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function a(){var o=this;t.readEntries(function(s){return Vo(o,void 0,void 0,function(){var l,u,c;return Uo(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return l=f.sent(),n(l),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(j5e)),i.push(c),a(),f.label=6;case 6:return[2]}})})},function(s){r(s)})}a()})}function D5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var a=Bu(i,e.fullPath);n(a)},function(i){r(i)})})]})})}var $5e=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function jj(e){return L5e(e)||M5e(e)||Mj(e)||I5e()}function I5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
518
+ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var z=ge(ue,re,ee,X,ie+"."+re,n);if(z)return z}return null}return v(H)}function $(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every($);if(F===null||s(F))return!0;var H=f(F);if(H){var J=H.call(F),Z;if(H!==F.entries){for(;!(Z=J.next()).done;)if(!$(Z.value))return!1}else for(;!(Z=J.next()).done;){var ee=Z.value;if(ee&&!$(ee[1]))return!1}}else return!1;return!0;default:return!1}}function M(F,H){return F==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function B(F){var H=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":M(H,F)?"symbol":H}function R(F){if(typeof F>"u"||F===null)return""+F;var H=B(F);if(H==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return H}function W(F){var H=R(F);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function V(F){return!F.constructor||!F.constructor.name?d:F.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Ub}var Hb,Ej;function v5e(){if(Ej)return Hb;Ej=1;var e=zb();function t(){}function n(){}return n.resetWarningCache=t,Hb=function(){function r(o,s,l,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Hb}if(process.env.NODE_ENV!=="production"){var y5e=Pg,b5e=!0;Fb.exports=m5e()(y5e.isElement,b5e)}else Fb.exports=v5e()();var x5e=Fb.exports;const ut=Ne(x5e);var _5e=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Bu(e,t){var n=w5e(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function w5e(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=_5e.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var S5e=[".DS_Store","Thumbs.db"];function O5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return rp(e)&&C5e(e.dataTransfer)?[2,A5e(e.dataTransfer,e.type)]:E5e(e)?[2,T5e(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,k5e(e)]:[2,[]]})})}function C5e(e){return rp(e)}function E5e(e){return rp(e)&&rp(e.target)}function rp(e){return typeof e=="object"&&e!==null}function T5e(e){return Gb(e.target.files).map(function(t){return Bu(t)})}function k5e(e){return Vo(this,void 0,void 0,function(){var t;return Uo(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Bu(r)})]}})})}function A5e(e,t){return Vo(this,void 0,void 0,function(){var n,r;return Uo(this,function(i){switch(i.label){case 0:return e.items?(n=Gb(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(P5e))]):[3,2];case 1:return r=i.sent(),[2,Tj(kj(r))];case 2:return[2,Tj(Gb(e.files).map(function(a){return Bu(a)}))]}})})}function Tj(e){return e.filter(function(t){return S5e.indexOf(t.name)===-1})}function Gb(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function P5e(e){if(typeof e.webkitGetAsEntry!="function")return Aj(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Pj(t):Aj(e)}function kj(e){return e.reduce(function(t,n){return x_(x_([],b_(t),!1),b_(Array.isArray(n)?kj(n):[n]),!1)},[])}function Aj(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Bu(t);return Promise.resolve(n)}function j5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return[2,e.isDirectory?Pj(e):D5e(e)]})})}function Pj(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function a(){var o=this;t.readEntries(function(s){return Vo(o,void 0,void 0,function(){var l,u,c;return Uo(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return l=f.sent(),n(l),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(j5e)),i.push(c),a(),f.label=6;case 6:return[2]}})})},function(s){r(s)})}a()})}function D5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var a=Bu(i,e.fullPath);n(a)},function(i){r(i)})})]})})}var $5e=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function jj(e){return L5e(e)||M5e(e)||Mj(e)||I5e()}function I5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
519
519
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function L5e(e){if(Array.isArray(e))return qb(e)}function Dj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $j(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dj(Object(n),!0).forEach(function(r){Ij(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(e,t){return R5e(e)||F5e(e,t)||Mj(e,t)||N5e()}function N5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
520
520
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mj(e,t){if(e){if(typeof e=="string")return qb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qb(e,t)}}function qb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F5e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function R5e(e){if(Array.isArray(e))return e}var B5e="file-invalid-type",z5e="file-too-large",W5e="file-too-small",V5e="too-many-files",U5e=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:B5e,message:"File type must be ".concat(n)}},Lj=function(t){return{code:z5e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Nj=function(t){return{code:W5e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},H5e={code:V5e,message:"Too many files"};function Fj(e,t){var n=e.type==="application/x-moz-file"||$5e(e,t);return[n,n?null:U5e(t)]}function Rj(e,t,n){if(yo(e.size))if(yo(t)&&yo(n)){if(e.size>n)return[!1,Lj(n)];if(e.size<t)return[!1,Nj(t)]}else{if(yo(t)&&e.size<t)return[!1,Nj(t)];if(yo(n)&&e.size>n)return[!1,Lj(n)]}return[!0,null]}function yo(e){return e!=null}function G5e(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(l){var u=Fj(l,n),c=zu(u,1),f=c[0],d=Rj(l,r,i),h=zu(d,1),p=h[0],m=s?s(l):null;return f&&p&&!m})}function ip(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ap(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Bj(e){e.preventDefault()}function q5e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Y5e(e){return e.indexOf("Edge/")!==-1}function K5e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return q5e(e)||Y5e(e)}function oi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(s){return!ip(r)&&s&&s.apply(void 0,[r].concat(a)),ip(r)})}}function X5e(){return"showOpenFilePicker"in window}function Z5e(e){if(yo(e)){var t=Object.entries(e).filter(function(n){var r=zu(n,2),i=r[0],a=r[1],o=!0;return zj(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(a)||!a.every(Wj))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(n,r){var i=zu(r,2),a=i[0],o=i[1];return $j($j({},n),{},Ij({},a,o))},{});return[{description:"Files",accept:t}]}return e}function J5e(e){if(yo(e))return Object.entries(e).reduce(function(t,n){var r=zu(n,2),i=r[0],a=r[1];return[].concat(jj(t),[i],jj(a))},[]).filter(function(t){return zj(t)||Wj(t)}).join(",")}function Q5e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function e_e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function zj(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Wj(e){return/^.*\.[\w]+$/.test(e)}var t_e=["children"],n_e=["open"],r_e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],i_e=["refKey","onChange","onClick"];function a_e(e){return l_e(e)||s_e(e)||Vj(e)||o_e()}function o_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
521
521
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l_e(e){if(Array.isArray(e))return Kb(e)}function Yb(e,t){return f_e(e)||c_e(e,t)||Vj(e,t)||u_e()}function u_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
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.2573",
4
+ "version": "2.4.2575",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",