Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
10 KiB

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[384],{7504:function(e,r,n){var t=n(5893),o=n(7294),u=n(6886),l=n(7357);function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function c(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){a(e,r,n[r])}))}return e}function s(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},u=Object.keys(e);for(t=0;t<u.length;t++)n=u[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(t=0;t<u.length;t++)n=u[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,u=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(t=n.next()).done)&&(u.push(t.value),!r||u.length!==r);l=!0);}catch(a){i=!0,o=a}finally{try{l||null==n.return||n.return()}finally{if(i)throw o}}return u}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return i(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.Z=function(e){var r=e.calculateItemBreakpoints,n=void 0===r?function(){return{xs:1}}:r,i=e.layout,a=e.wrapperBoxProps,p=s(e,["calculateItemBreakpoints","layout","wrapperBoxProps"]),y=(0,o.useMemo)((function(){return Object.entries(i).map((function(e,r){var t=f(e,2),l=t[0],i=t[1],a=l;return i?(0,o.createElement)(u.ZP,c({},n(r,a),{key:a,item:!0},i)):void 0}))}),[n,i]);return(0,t.jsx)(l.Z,c({},a,{children:(0,t.jsx)(u.ZP,c({container:!0},p,{children:y}))}))}},9434:function(e,r,n){n.d(r,{Z:function(){return m}});var t=n(7294),o={boolean:function(e){return Boolean(e)},number:function(e){return parseInt(String(e),10)||0},string:function(e){return String(e)}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.postSet,n=e.preSet,t=e.set,u=e.setType,l=void 0===u?"string":u;return function(e){var u=e.target.value,i=o[l](u);null===n||void 0===n||n.call(null,e),null===t||void 0===t||t.call(null,i),null===r||void 0===r||r.call(null,e)}},l=n(9914),i=function(){var e=(0,t.useRef)(!0);return e.current?(e.current=!1,!0):e.current};function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function c(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function s(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},t=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),t.forEach((function(r){c(e,r,n[r])}))}return e}function f(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},u=Object.keys(e);for(t=0;t<u.length;t++)n=u[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(t=0;t<u.length;t++)n=u[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"===typeof e)return a(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y="input",d={number:0,string:""},v={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},b=(0,t.forwardRef)((function(e,r){var n=e.createInputOnChangeHandlerOptions,o=(void 0===n?v.createInputOnChangeHandlerOptions:n).postSet,a=e.input,b=e.inputTestBatch,m=e.onFirstRender,g=e.required,h=void 0===g?v.required:g,O=e.valueType,S=void 0===O?v.valueType:O,j=f(e.createInputOnChangeHandlerOptions,["postSet"]),w=a.props,P=w.onBlur,I=w.onChange,A=w.onFocus,x=w.value,k=void 0===x?d[S]:x,E=f(a.props,["onBlur","onChange","onFocus","value"]),C=i(),T=(0,t.useState)(k),M=T[0],R=T[1],q=(0,t.useState)(!1),B=q[0],Z=q[1],F=(0,t.useState)(!1),H=F[0],N=F[1],U=(0,t.useCallback)((function(e){R(e)}),[]),_=(0,t.useMemo)((function(){var e;return b&&(b.isRequired=h,e=(0,l.LT)(c({},y,b))),e}),[b,h]),V=(0,t.useMemo)((function(){return null!==P&&void 0!==P?P:_&&function(e){var r=e.target.value,n=_({inputs:c({},y,{value:r})});N(n)}}),[P,_]),$=(0,t.useMemo)((function(){return null!==A&&void 0!==A?A:b&&function(){var e,r;null===(e=b.defaults)||void 0===e||null===(r=e.onSuccess)||void 0===r||r.call(null,{append:{}})}}),[A,b]),D=u(s({postSet:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var t,u;Z(!0),null===I||void 0===I||(t=I).call.apply(t,[null].concat(p(r))),null===o||void 0===o||(u=o).call.apply(u,[null].concat(p(r)))},set:U,setType:S},j));return(0,t.useEffect)((function(){C&&(null===m||void 0===m||m.call(null,{isRequired:h}))}),[C,h,m]),(0,t.useImperativeHandle)(r,(function(){return{getIsChangedByUser:function(){return B},getValue:function(){return M},isValid:function(){return H},setValue:U}}),[M,B,H,U]),(0,t.cloneElement)(a,s({},E,{onBlur:V,onChange:D,onFocus:$,required:h,value:M}))}));b.defaultProps=v,b.displayName="InputWithRef";var m=b},7869:function(e,r,n){var t=n(5893),o=n(7294),u=n(8187);function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function i(e,r){if(null==e)return{};var n,t,o=function(e,r){if(null==e)return{};var n,t,o={},u=Object.keys(e);for(t=0;t<u.length;t++)n=u[t],r.indexOf(n)>=0||(o[n]=e[n]);return o}(e,r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(t=0;t<u.length;t++)n=u[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,u=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(t=n.next()).done)&&(u.push(t.value),!r||u.length!==r);l=!0);}catch(a){i=!0,o=a}finally{try{l||null==n.return||n.return()}finally{if(i)throw o}}return u}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return l(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){var r=function(e,r){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,r||"default");if("object"!==s(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===s(r)?r:String(r)}var s=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var f={count:0,defaultMessageType:"info",onSet:void 0,usePlaceholder:!0},p=(0,o.forwardRef)((function(e,r){var n=e.count,l=void 0===n?f.count:n,s=e.defaultMessageType,p=void 0===s?f.defaultMessageType:s,y=e.onSet,d=e.usePlaceholder,v=void 0===d?f.usePlaceholder:d,b=(0,o.useState)({}),m=b[0],g=b[1],h=(0,o.useCallback)((function(e){return void 0!==m[e]}),[m]),O=(0,o.useCallback)((function(e,r){m[e];var n,t=i(m,[e].map(c));r&&(t[e]=r),n=Object.keys(t).length,null===y||void 0===y||y.call(null,n),g(t)}),[m,y]),S=(0,o.useCallback)((function(e,r){var n=0,t=r?function(e,t){e[t]=r,n+=1}:void 0,o={};Object.keys(m).forEach((function(r){e.test(r)?null===t||void 0===t||t.call(null,o,r):(o[r]=m[r],n+=1)})),null===y||void 0===y||y.call(null,n),g(o)}),[m,y]),j=(0,o.useMemo)((function(){var e=Object.entries(m),r=l>0,n=r?l:e.length,o=[];if(e.every((function(e){var r=a(e,2),l=r[0],i=r[1],c=i.children,s=i.type,f=void 0===s?p:s;return o.push((0,t.jsx)(u.Z,{type:f,children:c},"message-".concat(l))),o.length<n})),v&&r&&0===o.length)for(var i=l-o.length,c=0;c<i;c+=1)o.push((0,t.jsx)(u.Z,{sx:{visibility:"hidden"},text:"Placeholder"},"message-placeholder-".concat(c)));return o}),[l,p,v,m]);return(0,o.useImperativeHandle)(r,(function(){return{exists:h,setMessage:O,setMessageRe:S}}),[h,O,S]),(0,t.jsx)(t.Fragment,{children:j})}));p.defaultProps=f,p.displayName="MessageGroup",r.Z=p},1770:function(e,r){r.Z=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.onRequestError,t=void 0===n?function(e){return{children:"Incomplete request; reason: ".concat(e,"."),type:"error"}}:n,o=r.onResponseErrorAppend,u=r.onSetupError,l=void 0===u?function(e){return{children:"Failed to setup request; reason: ".concat(e,"."),type:"error"}}:u,i=r.onResponseError,a=void 0===i?function(e){var r,n,t=e.status,u=e.statusText;500===t?r={children:"The API encountered a problem: ".concat(t," (").concat(u,")! Please check its systemd service logs."),type:"error"}:r=null!==(n=null===o||void 0===o?void 0:o.call(null,e))&&void 0!==n?n:{children:"API responded with ".concat(t," (").concat(u,")."),type:"warning"};return r}:i,c=e.request,s=e.response,f=e.message;return s?a(s):c?t(c):l(f)}}}]);