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 line
33 KiB

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[464],{593:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/init",function(){return t(8616)}])},4069:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var r=t(6486),i=t(7294),o=t(3675),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.postSet,t=e.preSet,r=e.set,i=e.setType,l=void 0===i?"string":i,u=e.valueKey,a=void 0===u?"value":u;return function(e){var i=e.target[a],u=o.Z[l](i);null===t||void 0===t||t.call(null,e),null===r||void 0===r||r.call(null,u),null===n||void 0===n||n.call(null,e)}},u=t(2027);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){c(e,n,t[n])}))}return e}function d(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function f(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,n){if(!e)return;if("string"===typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(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.")}()}function v(e){var n=function(e,n){if("object"!==p(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===p(n)?n:String(n)}var p=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var m="input",h={boolean:!1,number:0,string:""},g={createInputOnChangeHandlerOptions:{},debounceWait:500,required:!1,valueType:"string"},b=(0,i.forwardRef)((function(e,n){var t=e.debounceWait,o=void 0===t?g.debounceWait:t,a=e.input,p=e.inputTestBatch,b=e.onBlurAppend,y=e.onFirstRender,x=e.onFocusAppend,j=e.onUnmount,w=e.required,P=void 0===w?g.required:w,O=e.valueKey,S=e.valueType,k=void 0===S?g.valueType:S,Z=e.createInputOnChangeHandlerOptions,C=void 0===Z?g.createInputOnChangeHandlerOptions:Z,A=C.postSet,I=C.valueKey,N=void 0===I?O:I,V=d(e.createInputOnChangeHandlerOptions,["postSet","valueKey"]),H=a.props,M=(0,i.useMemo)((function(){return null!==N&&void 0!==N?N:"checked"in H?"checked":"value"}),[H,N]),R=H.onBlur,F=H.onChange,E=H.onFocus,T=H[M],z=void 0===T?h[k]:T,B=d(H,["onBlur","onChange","onFocus",M].map(v)),D=(0,i.useState)(z),_=D[0],L=D[1],q=(0,i.useState)(!1),U=q[0],$=q[1],Q=(0,i.useState)(!1),J=Q[0],G=Q[1],W=(0,i.useCallback)((function(e){L(e)}),[]),K=(0,i.useMemo)((function(){var e;return p&&(p.isRequired=P,e=(0,u.LT)(c({},m,p))),e}),[p,P]),X=(0,i.useCallback)((function(e){var n,t=null!==(n=null===K||void 0===K?void 0:K.call(null,{inputs:c({},m,{value:e}),isIgnoreOnCallbacks:!0}))&&void 0!==n&&n;null===y||void 0===y||y.call(null,{isValid:t}),G(t)}),[y,K]),Y=(0,i.useMemo)((function(){return(0,r.debounce)(X,o)}),[o,X]),ee=(0,i.useMemo)((function(){return null!==R&&void 0!==R?R:K&&function(){for(var e=arguments.length,n=new Array(e),