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
54 KiB
1 lines
54 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(8056)}])},1939:function(e,n,t){"use strict";var r=t(5893),o=t(7357),i=t(7169);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(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){a(e,n,t[n])}))}return e}function u(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c="Decorator",s={ok:"".concat(c,"-ok"),warning:"".concat(c,"-warning"),error:"".concat(c,"-error"),off:"".concat(c,"-off")};n.Z=function(e){var n,t=e.colour,c=e.sx,d=u(e,["colour","sx"]);return(0,r.jsx)(o.Z,l({},d,{className:s[t],sx:l((n={borderRadius:i.n_,height:"100%",width:"1.4em"},a(n,"&.".concat(s.ok),{backgroundColor:i.Ej}),a(n,"&.".concat(s.warning),{backgroundColor:i.Wd}),a(n,"&.".concat(s.error),{backgroundColor:i.hM}),a(n,"&.".concat(s.off),{backgroundColor:i.s7}),n),c)}))}},9434:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var r=t(7294),o={boolean:function(e){return Boolean(e)},number:function(e){return parseInt(String(e),10)||0},string:function(e){return String(e)}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.postSet,t=e.preSet,r=e.set,i=e.setType,a=void 0===i?"string":i;return function(e){var i=e.target.value,l=o[a](i);null===t||void 0===t||t.call(null,e),null===r||void 0===r||r.call(null,l),null===n||void 0===n||n.call(null,e)}},a=t(9914),l=function(){var e=(0,r.useRef)(!0);return e.current?(e.current=!1,!0):e.current};function u(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,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function f(e){return function(e){if(Array.isArray(e))return u(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 u(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 u(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.")}()}var v="input",p={number:0,string:""},m={createInputOnChangeHandlerOptions:{},required:!1,valueType:"string"},g=(0,r.forwardRef)((function(e,n){var t=e.createInputOnChangeHandlerOptions,o=(void 0===t?m.createInputOnChangeHandlerOptions:t).postSet,u=e.input,g=e.inputTestBatch,b=e.onFirstRender,h=e.required,x=void 0===h?m.required:h,y=e.valueType,j=void 0===y?m.valueType:y,w=d(e.createInputOnChangeHandlerOptions,["postSet"]),k=u.props,I=k.onBlur,O=k.onChange,P=k.onFocus,C=k.value,S=void 0===C?p[j]:C,Z=d(u.props,["onBlur","onChange","onFocus","value"]),A=l(),M=(0,r.useState)(S),N=M[0],U=M[1],D=(0,r.useState)(!1),R=D[0],V=D[1],E=(0,r.useState)(!1),T=E[0],F=E[1],L=(0,r.useCallback)((function(e){U(e)}),[]),H=(0,r.useMemo)((function(){var e;return g&&(g.isRequired=x,e=(0,a.LT)(c({},v,g))),e}),[g,x]),B=(0,r.useMemo)((function(){return null!==I&&void 0!==I?I:H&&function(e){var n=e.target.value,t=H({inputs:c({},v,{value:n})});F(t)}}),[I,H]),_=(0,r.useMemo)((function(){return null!==P&&void 0!==P?P:g&&function(){var e,n;null===(e=g.defaults)||void 0===e||null===(n=e.onSuccess)||void 0===n||n.call(null,{append:{}})}}),[P,g]),z=i(s({postSet:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,i;V(!0),null===O||void 0===O||(r=O).call.apply(r,[null].concat(f(n))),null===o||void 0===o||(i=o).call.apply(i,[null].concat(f(n)))},set:L,setType:j},w));return(0,r.useEffect)((function(){A&&(null===b||void 0===b||b.call(null,{isRequired:x}))}),[A,x,b]),(0,r.useImperativeHandle)(n,(function(){return{getIsChangedByUser:function(){return R},getValue:function(){return N},isValid:function(){return T},setValue:L}}),[N,R,T,L]),(0,r.cloneElement)(u,s({},Z,{onBlur:B,onChange:z,onFocus:_,required:x,value:N}))}));g.defaultProps=m,g.displayName="InputWithRef";var b=g},4427:function(e,n,t){"use strict";var r=t(5893),o=t(2429),i=t(9309),a=t(7169);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(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){l(e,n,t[n])}))}return e}n.Z=function(e){var n,t,c=e.children,s=e.sx,d=u((l(t={backgroundColor:a.lD,paddingRight:"3em"},"&.".concat(o.Z.selected),(l(n={backgroundColor:a.s7,fontWeight:400},"&.".concat(o.Z.focusVisible),{backgroundColor:a.s7}),l(n,"&:hover",{backgroundColor:a.s7}),n)),l(t,"&.".concat(o.Z.focusVisible),{backgroundColor:a.s7}),l(t,"&:hover",{backgroundColor:a.s7}),t),s);return(0,r.jsx)(i.Z,u({},e,{sx:d,children:c}))}},7869:function(e,n,t){"use strict";var r=t(5893),o=t(7294),i=t(8187);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 l(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||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,n)||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 n=function(e,n){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===s(n)?n:String(n)}var s=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var d={count:0,defaultMessageType:"info",onSet:void 0,usePlaceholder:!0},f=(0,o.forwardRef)((function(e,n){var t=e.count,a=void 0===t?d.count:t,s=e.defaultMessageType,f=void 0===s?d.defaultMessageType:s,v=e.onSet,p=e.usePlaceholder,m=void 0===p?d.usePlaceholder:p,g=(0,o.useState)({}),b=g[0],h=g[1],x=(0,o.useCallback)((function(e){return void 0!==b[e]}),[b]),y=(0,o.useCallback)((function(e,n){b[e];var t,r=l(b,[e].map(c));n&&(r[e]=n),t=Object.keys(r).length,null===v||void 0===v||v.call(null,t),h(r)}),[b,v]),j=(0,o.useCallback)((function(e,n){var t=0,r=n?function(e,r){e[r]=n,t+=1}:void 0,o={};Object.keys(b).forEach((function(n){e.test(n)?null===r||void 0===r||r.call(null,o,n):(o[n]=b[n],t+=1)})),null===v||void 0===v||v.call(null,t),h(o)}),[b,v]),w=(0,o.useMemo)((function(){var e=Object.entries(b),n=a>0,t=n?a:e.length,o=[];if(e.every((function(e){var n=u(e,2),a=n[0],l=n[1],c=l.children,s=l.type,d=void 0===s?f:s;return o.push((0,r.jsx)(i.Z,{type:d,children:c},"message-".concat(a))),o.length<t})),m&&n&&0===o.length)for(var l=a-o.length,c=0;c<l;c+=1)o.push((0,r.jsx)(i.Z,{sx:{visibility:"hidden"},text:"Placeholder"},"message-placeholder-".concat(c)));return o}),[a,f,m,b]);return(0,o.useImperativeHandle)(n,(function(){return{exists:x,setMessage:y,setMessageRe:j}}),[x,y,j]),(0,r.jsx)(r.Fragment,{children:w})}));f.defaultProps=d,f.displayName="MessageGroup",n.Z=f},2879:function(e,n,t){"use strict";var r=t(5893),o=t(1057),i=t(4799),a=t(5603),l=t(9558),u=t(6239),c=t(7021),s=t(3213),d=t(5537),f=t(7169);function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function p(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){v(e,n,t[n])}))}return e}function m(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var g={onClearIndicatorClick:null},b=function(e){var n,t=e.onClearIndicatorClick,b=void 0===t?g.onClearIndicatorClick:t,h=m(e,["onClearIndicatorClick"]),x=h.children,y=h.sx,j=h.value,w=String(j).length>0&&b?(0,r.jsx)(o.Z,{position:"end",children:(0,r.jsx)(i.Z,{onClick:b,children:(0,r.jsx)(d.Z,{fontSize:"small"})})}):void 0,k=p((v(n={},"& .".concat(a.Z.icon),{color:f.s7}),v(n,"& .".concat(l.Z.root),{marginRight:".8em"}),v(n,"& .".concat(u.Z.root),{color:f.s7,visibility:"hidden"}),v(n,"&:hover .".concat(l.Z.root," .").concat(u.Z.root,",\n &.").concat(c.Z.focused," .").concat(l.Z.root," .").concat(u.Z.root),{visibility:"visible"}),n),y);return(0,r.jsx)(s.Z,p({endAdornment:w},h,{sx:k,children:x}))};b.defaultProps=g,n.Z=b},7783:function(e,n,t){"use strict";var r=t(5893),o=t(3640),i=t(5603),a=t(8128),l=t(1363),u=t(4427),c=t(9),s=t(192),d=t(2879);function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function v(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){f(e,n,t[n])}))}return e}var p=function(e){var n=e.id,t=e.label,p=e.selectItems,m=e.checkItem,g=e.disableItem,b=e.hideItem,h=e.inputLabelProps,x=e.isReadOnly,y=e.messageBoxProps,j=e.selectProps,w=e.isCheckableItems,k=void 0===w?null===j||void 0===j?void 0:j.multiple:w;return(0,r.jsxs)(o.Z,{children:[t&&(0,r.jsx)(s.Z,v({htmlFor:n},h,{children:t})),(0,r.jsx)(d.Z,v({id:n,input:(0,r.jsx)(c.Z,{label:t}),readOnly:x},j,{sx:x?v(f({},"& .".concat(i.Z.icon),{visibility:"hidden"}),null===j||void 0===j?void 0:j.sx):null===j||void 0===j?void 0:j.sx,children:p.map((function(e){var t=e.value,o=e.displayValue,i=void 0===o?t:o;return(0,r.jsxs)(u.Z,{disabled:null===g||void 0===g?void 0:g.call(null,t),sx:{display:(null===b||void 0===b?void 0:b.call(null,t))?"none":void 0},value:t,children:[k&&(0,r.jsx)(a.Z,{checked:null===m||void 0===m?void 0:m.call(null,t)}),i]},"".concat(n,"-").concat(t))}))})),(0,r.jsx)(l.Z,v({},y))]})};p.defaultProps={checkItem:null,disableItem:null,hideItem:null,isReadOnly:!1,isCheckableItems:!1,inputLabelProps:{},label:null,messageBoxProps:{},selectProps:{}},n.Z=p},1770:function(e,n){"use strict";n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.onRequestError,r=void 0===t?function(e){return{children:"Incomplete request; reason: ".concat(e,"."),type:"error"}}:t,o=n.onResponseErrorAppend,i=n.onSetupError,a=void 0===i?function(e){return{children:"Failed to setup request; reason: ".concat(e,"."),type:"error"}}:i,l=n.onResponseError,u=void 0===l?function(e){var n,t,r=e.status,i=e.statusText;500===r?n={children:"The API encountered a problem: ".concat(r," (").concat(i,")! Please check its systemd service logs."),type:"error"}:n=null!==(t=null===o||void 0===o?void 0:o.call(null,e))&&void 0!==t?t:{children:"API responded with ".concat(r," (").concat(i,")."),type:"warning"};return n}:l,c=e.request,s=e.response,d=e.message;return s?u(s):c?r(c):a(d)}},8056:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ze}});var r=t(5893),o=t(7357),i=t(6886),a=t(7294),l=t(4390),u=t(157),c=t(4825),s=t(4690),d=t(8128),f=t(4188),v=t(1250),p=t(9434),m=t(8187),g=t(7869),b=t(6284),h=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fillString,r=void 0===t?"0":t,o=n.maxLength,i=void 0===o?2:o,a=n.which,l=void 0===a?"Start":a;return String(e)["pad".concat(l)](i,r)};function x(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function y(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var j={show:!0},w=function(e){var n=e.onClick,t=e.show,o=void 0===t?j.show:t,i=y(e,["onClick","show"]);return o?(0,r.jsx)(c.Z,function(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){x(e,n,t[n])}))}return e}({onClick:n,tabIndex:-1},i,{children:"Suggest"})):(0,r.jsx)(r.Fragment,{})};w.defaultProps=j;var k=w,I=t(9914),O=t(2416);function P(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,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||A(e,n)||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 Z(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(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 A(e,n){if(e){if("string"===typeof e)return P(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?P(e,n):void 0}}var M="adminPassword",N="confirmAdminPassword",U="domainName",D="hostName",R="hostNumber",V="organizationName",E="organizationPrefix",T={0:function(){return""},1:function(e){return S(e,1)[0].substring(0,1).toLocaleLowerCase()},2:function(e){return e.map((function(e){return e.substring(0,1).toLocaleLowerCase()})).join("")}},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(/\s/).filter((function(e){return!/and|of/.test(e)})).slice(0,5),t=n.length>1?2:n.length;return T[t](n)},L=function(e){var n=e.organizationPrefix,t=e.hostNumber,r=e.domainName;return[n,t,r].every((function(e){return Boolean(e)}))?"".concat(n,"-striker").concat(h(t),".").concat(r):""},H=(0,a.forwardRef)((function(e,n){var t,o,l,u,c=e.toggleSubmitDisabled,h=(0,a.useState)(),x=h[0],y=h[1],j=(0,a.useState)(!1),w=j[0],P=j[1],S=(0,a.useState)(!1),A=S[0],T=S[1],H=(0,a.useState)(!0),B=H[0],_=H[1],z=(0,a.useState)(!0),q=z[0],$=z[1],G=(0,a.useRef)({}),J=(0,a.useRef)({}),Q=(0,a.useRef)({}),W=(0,a.useRef)({}),X=(0,a.useRef)({}),K=(0,a.useRef)({}),Y=(0,a.useRef)({}),ee=(0,a.useRef)({}),ne=(0,a.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,E,e)}),[]),te=(0,a.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,R,e)}),[]),re=(0,a.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,U,e)}),[]),oe=(0,a.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,D,e)}),[]),ie=(0,a.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,M,e)}),[]),ae=(0,a.useCallback)((function(e){var n;return null===(n=ee.current.setMessage)||void 0===n?void 0:n.call(null,N,e)}),[]),le=(0,a.useMemo)((function(){var e;return C(e={},M,{defaults:{getValue:function(){var e;return null===(e=G.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){ie(void 0)}},tests:[{onFailure:function(){ie({children:(0,r.jsxs)(r.Fragment,{children:["Admin password cannot contain single-quote (",(0,r.jsx)(O.Q0,{text:"'"}),"), double-quote (",(0,r.jsx)(O.Q0,{text:'"'}),"), slash (",(0,r.jsx)(O.Q0,{text:"/"}),"), backslash (",(0,r.jsx)(O.Q0,{text:"\\"}),"), angle brackets (",(0,r.jsx)(O.Q0,{text:"<>"}),"), curly brackets (",(0,r.jsx)(O.Q0,{text:"{}"}),")."]})})},test:function(e){var n=e.value;return!/['"/\\><}{]/g.test(n)}},{test:I.HJ}]}),C(e,N,{defaults:{getValue:function(){var e,n;return null===(e=J.current)||void 0===e||null===(n=e.getValue)||void 0===n?void 0:n.call(null)},onSuccess:function(){ae(void 0)}},tests:[{onFailure:function(){ae({children:"Confirmation doesn't match admin password."})},test:function(e){var n;return e.value===(null===(n=G.current.getValue)||void 0===n?void 0:n.call(null))}},{test:I.HJ}]}),C(e,U,{defaults:{compare:[!q],getValue:function(){var e;return null===(e=X.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){re(void 0)}},tests:[{onFailure:function(){re({children:(0,r.jsxs)(r.Fragment,{children:["Domain name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(O.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(O.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||v.FZ.test(t)}},{test:I.HJ}]}),C(e,D,{defaults:{compare:[!q],getValue:function(){var e;return null===(e=Y.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){oe(void 0)}},tests:[{onFailure:function(){oe({children:(0,r.jsxs)(r.Fragment,{children:["Host name can only contain lowercase alphanumeric, hyphen (",(0,r.jsx)(O.Q0,{text:"-"}),"), and dot (",(0,r.jsx)(O.Q0,{text:"."}),") characters."]})})},test:function(e){var n=e.compare,t=e.value;return n[0]||v.FZ.test(t)}},{test:I.HJ}]}),C(e,R,{defaults:{getValue:function(){var e;return null===(e=K.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){te(void 0)}},tests:[{onFailure:function(){te({children:"Striker number can only contain digits."})},test:function(e){var n=e.value;return/^\d+$/.test(n)}},{test:I.HJ}]}),C(e,V,{defaults:{getValue:function(){var e;return null===(e=Q.current.getValue)||void 0===e?void 0:e.call(null)}},tests:[{test:I.HJ}]}),C(e,E,{defaults:{getValue:function(){var e;return null===(e=W.current.getValue)||void 0===e?void 0:e.call(null)},max:5,min:1,onSuccess:function(){ne(void 0)}},tests:[{onFailure:function(e){var n=e.max,t=e.min;ne({children:"Organization prefix must be ".concat(t," to ").concat(n," lowercase alphanumeric characters.")})},test:function(e){var n=e.max,t=e.min,r=e.value;return RegExp("^[a-z0-9]{".concat(t,",").concat(n,"}$")).test(r)}}]}),e}),[q,ie,ae,re,oe,te,ne]),ue=(0,a.useMemo)((function(){return(0,I.LT)(le)}),[le]),ce=(0,a.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.excludeTestIds,t=void 0===n?[]:n,r=e.inputs,o=e.isContinueOnFailure,i=e.isExcludeConfirmAdminPassword,a=void 0===i?!B:i;a&&t.push(N),null===c||void 0===c||c.call(null,ue({excludeTestIds:t,inputs:r,isContinueOnFailure:o,isIgnoreOnCallbacks:!0,isTestAll:!0}))}),[B,ue,c]),se=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.organizationName,o=void 0===r?null===(t=Q.current.getValue)||void 0===t?void 0:t.call(null):r,i=F(o);return null===(e=W.current.setValue)||void 0===e||e.call(null,i),ce({inputs:C({},E,{isIgnoreOnCallbacks:!1,value:i}),isContinueOnFailure:!0}),i}),[ce]),de=(0,a.useCallback)((function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.organizationPrefix,r=void 0===t?null===(o=W.current.getValue)||void 0===o?void 0:o.call(null):t,i=n.hostNumber,a=void 0===i?null===(l=K.current.getValue)||void 0===l?void 0:l.call(null):i,c=n.domainName,s=void 0===c?null===(u=X.current.getValue)||void 0===u?void 0:u.call(null):c,d=L({organizationPrefix:r,hostNumber:a,domainName:s});return null===(e=Y.current.setValue)||void 0===e||e.call(null,d),ce({inputs:C({},D,{isIgnoreOnCallbacks:!1,value:d}),isContinueOnFailure:!0}),d}),[ce]),fe=(0,a.useCallback)((function(){var e;return Boolean(null===(e=Q.current.getValue)||void 0===e?void 0:e.call(null))}),[]),ve=(0,a.useCallback)((function(){var e,n,t;return[null===(e=W.current.getValue)||void 0===e?void 0:e.call(null),null===(n=K.current.getValue)||void 0===n?void 0:n.call(null),null===(t=X.current.getValue)||void 0===t?void 0:t.call(null)].every((function(e){return Boolean(e)}))}),[]),pe=(0,a.useCallback)((function(){var e;(null===(e=W.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?P(fe()):se()}),[fe,se]),me=(0,a.useCallback)((function(){var e;(null===(e=Y.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))?T(ve()):de()}),[ve,de]),ge=(0,a.useCallback)((function(){var e,n=se();(null===(e=Y.current.getIsChangedByUser)||void 0===e?void 0:e.call(null))||de({organizationPrefix:n})}),[de,se]),be=(0,a.useCallback)((function(){de()}),[de]),he=(0,a.useCallback)((function(e){return function(n){return n===e?void 0:e}}),[]),xe=(0,a.useMemo)((function(){return(0,r.jsx)(d.Z,{checked:q,onChange:function(e,n){var t;$(n),ce({inputs:(t={},C(t,U,{compare:[!n],isIgnoreOnCallbacks:!1}),C(t,D,{compare:[!n],isIgnoreOnCallbacks:!1}),t),isContinueOnFailure:!0})},sx:{padding:".2em"}})}),[q,ce]);return(0,a.useImperativeHandle)(n,(function(){return{get:function(){var e,n,t,r,o,i;return{adminPassword:null===(e=G.current.getValue)||void 0===e?void 0:e.call(null),organizationName:null===(n=Q.current.getValue)||void 0===n?void 0:n.call(null),organizationPrefix:null===(t=W.current.getValue)||void 0===t?void 0:t.call(null),domainName:null===(r=X.current.getValue)||void 0===r?void 0:r.call(null),hostNumber:null===(o=K.current.getValue)||void 0===o?void 0:o.call(null),hostName:null===(i=Y.current.getValue)||void 0===i?void 0:i.call(null)}}}})),(0,r.jsxs)(s.Z,{children:[(0,r.jsxs)(i.ZP,{columns:{xs:1,sm:2,md:3},container:!0,spacing:"1em",children:[(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"striker-init-general-organization-name",inputProps:{onBlur:pe},inputLabelProps:{isNotifyRequired:!0},label:"Organization name",onChange:function(){ce()},onHelp:function(){y(he("Name of the organization that maintains this Anvil! system. You can enter anything that makes sense to you."))}}),ref:Q}),(0,r.jsxs)(s.Z,{row:!0,sx:{"& > :first-child":{flexGrow:1}},children:[(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"striker-init-general-organization-prefix",inputProps:{endAdornment:(0,r.jsx)(k,{show:w,onClick:ge}),inputProps:{maxLength:5,sx:{minWidth:"2.5em"}},onBlur:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=e.target.value;ue({inputs:C({},E,{value:o})}),me.apply(void 0,[e].concat(Z(t)))}},inputLabelProps:{isNotifyRequired:!0},label:"Prefix",onChange:function(e){var n=e.target.value;ce({inputs:C({},E,{value:n})}),ne(),P(fe())},onHelp:function(){y(he("Alphanumberic short-form of the organization name. It's used as the prefix for host names."))}}),ref:W}),(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"striker-init-general-host-number",inputProps:{inputProps:{maxLength:2,sx:{minWidth:"2em"}},onBlur:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=e.target.value;ue({inputs:C({},R,{value:o})}),me.apply(void 0,[e].concat(Z(t)))}},inputLabelProps:{isNotifyRequired:!0},label:"Striker #",onChange:function(e){var n=e.target.value;ce({inputs:C({},R,{value:n})}),te()},onHelp:function(){y(he("Number or count of this striker; this should be '1' for the first striker, '2' for the second striker, and such."))}}),ref:K,valueType:"number"})]})]})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"striker-init-general-domain-name",inputProps:{onBlur:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var o=e.target.value;ue({inputs:C({},U,{value:o})}),me.apply(void 0,[e].concat(Z(t)))}},inputLabelProps:{isNotifyRequired:!0},label:"Domain name",onChange:function(e){var n=e.target.value;ce({inputs:C({},U,{value:n})}),re()},onHelp:function(){y(he("Domain name for this striker. It's also the default domain used when creating new install manifests."))}}),ref:X}),(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"striker-init-general-host-name",inputProps:{endAdornment:(0,r.jsx)(k,{show:A,onClick:be}),onBlur:function(e){var n=e.target.value;ue({inputs:C({},D,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},label:"Host name",onChange:function(e){var n=e.target.value;ce({inputs:C({},D,{value:n})}),oe(),T(ve())},onHelp:function(){y(he("Host name for this striker. It's usually a good idea to use the auto-generated value."))}}),ref:Y})]})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,sm:2,md:1,children:(0,r.jsxs)(i.ZP,{columns:{xs:1,sm:2,md:1},container:!0,spacing:"1em",sx:{"& > * > *":{width:"100%"}},children:[(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"striker-init-general-admin-password",inputProps:{inputProps:{type:f.Z.password},onBlur:function(e){var n=e.target.value;ue({inputs:C({},M,{value:n})})},onPasswordVisibilityAppend:function(e){var n=e===f.Z.password;ce({isExcludeConfirmAdminPassword:!n}),_(n),ae()}},inputLabelProps:{isNotifyRequired:!0},label:"Admin password",onChange:function(e){var n=e.target.value;ce({inputs:C({},M,{value:n})}),ie()},onHelp:function(){y(he("Password use to login to this Striker and connect to its database. Don't provide an used password here because it'll be stored as plaintext."))}}),ref:G})}),B&&(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"striker-init-general-confirm-admin-password",inputProps:{inputProps:{type:f.Z.password},onBlur:function(e){var n=e.target.value;ue({inputs:C({},N,{value:n})})}},inputLabelProps:{isNotifyRequired:B},label:"Confirm password",onChange:function(e){var n=e.target.value;ce({inputs:C({},N,{value:n})}),ae()}}),ref:J})})]})})]}),(0,r.jsx)(g.Z,{count:1,defaultMessageType:"warning",ref:ee}),(0,r.jsx)(m.Z,{children:(0,r.jsxs)(s.Z,{row:!0,sx:{"& > :last-child":{flexGrow:1}},children:[xe,(0,r.jsx)(O.Ac,{inverted:!0,children:q?"Uncheck to skip domain and host name pattern validation.":"Check to re-enable domain and host name pattern validation."})]})}),x&&(0,r.jsx)(m.Z,{onClose:function(){y(void 0)},children:x})]})}));H.defaultProps={toggleSubmitDisabled:void 0},H.displayName="GeneralInitForm";var B=H,_=t(1770),z=t(2734),q=t(8396),$=t(6239),G=t(9699),J=t(2026),Q=t(5537),W=t(2428),X=t(8403),K=t(3490),Y=t(8951),ee=t(5934),ne=t(2029),te=t(7169),re=t(4799),oe=t(1939);function ie(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ae(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){ie(e,n,t[n])}))}return e}function le(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var ue=function(e){var n=e.isFloating,t=e.networkInterface,i=t.networkInterfaceName,a=t.networkInterfaceState,l=e.onClose,u=e.sx,c=le(e,["isFloating","networkInterface","onClose","sx"]),s=n?{borderColor:te.s7,borderRadius:te.n_,borderStyle:"solid",borderWidth:"1px",backgroundColor:te.E5,padding:".6em 1.2em"}:{};return(0,r.jsxs)(o.Z,ae({sx:ae({display:"flex",flexDirection:"row","& > :not(:first-child)":{alignSelf:"center",marginLeft:".5em"}},s,u)},c,{children:[(0,r.jsx)(oe.Z,{colour:"up"===a?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(O.Ac,{text:i}),l&&(0,r.jsx)(re.Z,{onClick:l,size:"small",sx:{color:te.s7},children:(0,r.jsx)(Q.Z,{})})]}))};ue.defaultProps={isFloating:!1,onClose:void 0};var ce=ue,se=(0,t(1496).ZP)(o.Z)((function(){return{borderColor:te.s7,borderStyle:"dashed",borderWidth:"4px",display:"flex",flexDirection:"column",padding:".6em","& > :not(:first-child)":{marginTop:".3em"}}})),de=t(1706),fe=t(3679),ve=t(1905),pe=t(7783),me=t(2152),ge=function(e){for(var n=0,t=0;t<e.length;t+=1)n+=e.codePointAt(t)||0;return n};function be(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 he(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function xe(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){he(e,n,t[n])}))}return e}function ye(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==t.return||t.return()}finally{if(l)throw o}}return i}}(e,n)||we(e,n)||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 je(e){return function(e){if(Array.isArray(e))return be(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||we(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 we(e,n){if(e){if("string"===typeof e)return be(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?be(e,n):void 0}}var ke=[{networkInterfaceUUID:"fe299134-c8fe-47bd-ab7a-3aa95eada1f6",networkInterfaceMACAddress:"52:54:00:d2:31:36",networkInterfaceName:"ens10",networkInterfaceState:"up",networkInterfaceSpeed:1e4,networkInterfaceOrder:1},{networkInterfaceUUID:"a652bfd5-61ac-4495-9881-185be8a2ac74",networkInterfaceMACAddress:"52:54:00:d4:4d:b5",networkInterfaceName:"ens11",networkInterfaceState:"up",networkInterfaceSpeed:1e4,networkInterfaceOrder:2},{networkInterfaceUUID:"b8089b40-0969-49c3-ad65-2470ddb420ef",networkInterfaceMACAddress:"52:54:00:ba:f5:a3",networkInterfaceName:"ens3",networkInterfaceState:"up",networkInterfaceSpeed:1e4,networkInterfaceOrder:3},{networkInterfaceUUID:"42a17465-31b1-4e47-9a91-f803f22ffcc1",networkInterfaceMACAddress:"52:54:00:ae:31:70",networkInterfaceName:"ens9",networkInterfaceState:"up",networkInterfaceSpeed:1e4,networkInterfaceOrder:4}],Ie={ifaceNotApplied:"".concat("NetworkInitForm","-network-interface-not-applied")},Oe=[void 0,void 0],Pe={bcn:"Back-Channel Network",ifn:"Internet-Facing Network"},Ce=[{inputUUID:"30dd2ac5-8024-4a7e-83a1-6a3df7218972",interfaces:je(Oe),ipAddress:"10.200.1.1",isRequired:!0,name:"".concat(Pe.bcn," 1"),subnetMask:"255.255.0.0",type:"bcn",typeCount:1},{inputUUID:"e7ef3af5-5602-440c-87f8-69c242e3d7f3",interfaces:je(Oe),ipAddress:"10.201.1.1",isRequired:!0,name:"".concat(Pe.ifn," 1"),subnetMask:"255.255.0.0",type:"ifn",typeCount:1}],Se="domainNameServerCSV",Ze="gateway",Ae=function(e){return"".concat(e,"Interface")},Me=function(e){return"".concat(e,"IPAddress")},Ne=function(e){return"".concat(e,"Name")},Ue=function(e){return"".concat(e,"SubnetMask")},De=function(e){return"".concat(e,"NetworkSubnetConflict")},Re=Array.from({length:2},(function(e,n){return n+1})),Ve=function(e){return"network".concat(e)},Ee=function(e,n){return[{align:"center",field:"",renderCell:function(t){var i,a=t.row,l=(null!==(i=n[a.networkInterfaceUUID])&&void 0!==i&&i).isApplied,u="grab",c=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];e.apply(void 0,[a].concat(je(t)))},s=(0,r.jsx)(G.Z,{});return l&&(u="auto",c=void 0,s=(0,r.jsx)(J.Z,{sx:{color:te.Ej}})),(0,r.jsx)(o.Z,{onMouseDown:c,sx:{alignItems:"center",display:"flex",flexDirection:"row","&:hover":{cursor:u}},children:s})},sortable:!1,width:1},{field:"networkInterfaceName",flex:1,headerName:"Name",renderCell:function(e){var n=e.row,t=(void 0===n?{}:n).networkInterfaceState,i=e.value;return(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:".5em"}},children:[(0,r.jsx)(oe.Z,{colour:"up"===t?"ok":"off",sx:{height:"auto"}}),(0,r.jsx)(O.KI,{text:i})]})},sortComparator:function(e,n){return ge(e)-ge(n)}},{field:"networkInterfaceMACAddress",flex:1,headerName:"MAC",renderCell:function(e){var n=e.value;return(0,r.jsx)(O.$_,{text:n})}},{field:"networkInterfaceState",flex:1,headerName:"State",renderCell:function(e){var n=e.value,t=String(n);return(0,r.jsx)(O.KI,{text:"".concat(t.charAt(0).toUpperCase()).concat(t.substring(1))})}},{field:"networkInterfaceSpeed",flex:1,headerName:"Speed",renderCell:function(e){var n=e.value;return(0,r.jsx)(O.KI,{text:"".concat(parseFloat(n).toLocaleString()," Mbps")})}},{field:"networkInterfaceOrder",flex:1,headerName:"Order"}]},Te=function(e){var n=e.createDropMouseUpHandler,t=e.getNetworkTypeCount,i=e.networkIndex,l=e.networkInput,u=e.networkInterfaceInputMap,c=e.removeNetwork,s=e.setMessageRe,d=e.setNetworkInputs,f=e.setNetworkInterfaceInputMap,v=e.testInput,m=e.testInputToToggleSubmitDisabled,g=(0,z.Z)(),h=(0,q.Z)(g.breakpoints.up("md")),x=(0,q.Z)(g.breakpoints.up("lg")),y=(0,a.useRef)({}),j=(0,a.useRef)({}),w=l.inputUUID,k=l.interfaces,I=l.ipAddress,P=l.isRequired,C=l.subnetMask,S=l.type,Z=l.typeCount,A=(0,a.useMemo)((function(){return Ve(w)}),[w]),M=(0,a.useMemo)((function(){return Ae(A)}),[A]),N=(0,a.useMemo)((function(){return Me(A)}),[A]),U=(0,a.useMemo)((function(){return Ue(A)}),[A]),D=(0,a.useMemo)((function(){return De(A)}),[A]);return(0,a.useEffect)((function(){var e=l.ipAddressInputRef,n=l.subnetMaskInputRef;e===y&&n===j||(l.ipAddressInputRef=y,l.subnetMaskInputRef=j,d((function(e){return je(e)})))}),[l,d]),(0,r.jsxs)(fe.Lg,{children:[(0,r.jsxs)(fe.CH,{children:[(0,r.jsx)(pe.Z,{id:"network-".concat(w,"-name"),isReadOnly:P,inputLabelProps:{isNotifyRequired:!0},label:"Network name",selectItems:Object.entries(Pe).map((function(e){var n=ye(e,2),r=n[0],o=n[1],a=t(r,{lastIndex:i});return r!==S&&(a+=1),{value:r,displayValue:"".concat(o," ").concat(a)}})),selectProps:{onChange:function(e){var n=e.target.value,r=String(n);l.type=r;var o=t(r,{lastIndex:i});l.typeCount=o,l.name="".concat(Pe[r]," ").concat(o),d((function(e){return je(e)}))},renderValue:x?void 0:function(e){return"".concat(String(e).toUpperCase()," ").concat(Z)},value:S}}),!P&&(0,r.jsx)(de.Z,{onClick:function(){c(i)},sx:{padding:".2em",position:"absolute",right:"-9px",top:"-4px"},children:(0,r.jsx)(Q.Z,{fontSize:"small"})})]}),(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",margin:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[Re.map((function(e){var t="Link ".concat(e),i=e-1,a=k[i],l=(null!==a&&void 0!==a?a:{}).networkInterfaceUUID,c=void 0===l?"":l,s=h?(0,r.jsx)(O.Ac,{text:"Drop to add interface."}):(0,r.jsx)(W.Z,{sx:{alignSelf:"center",color:te.s7}});return(0,r.jsxs)(o.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:"1em"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(O.Ac,{sx:{whiteSpace:"nowrap"},text:t}),(0,r.jsx)(se,{onMouseUp:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o;null===(o=null===n||void 0===n?void 0:n.call(null,k,i))||void 0===o||o.call.apply(o,[null].concat(je(t))),m({inputs:he({},M,{isIgnoreOnCallbacks:!1}),isContinueOnFailure:!0})},children:a?(0,r.jsx)(ce,{networkInterface:a,onClose:function(){k[i]=void 0,u[c].isApplied=!1,f((function(e){return xe({},e)})),m({inputs:he({},M,{isIgnoreOnCallbacks:!1}),isContinueOnFailure:!0})}},"network-interface-".concat(c)):s})]},"network-".concat(w,"-link-").concat(e))})),(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"network-".concat(w,"-ip-address"),inputProps:{onBlur:function(e){var n=e.target.value;v({inputs:he({},N,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},label:"IP address",onChange:function(e){var n=e.target.value;m({inputs:he({},N,{value:n})}),s(RegExp("(?:^(?:".concat(N,"|").concat(D,")|").concat(w,"$)")))},value:I}),ref:y}),(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"network-".concat(w,"-subnet-mask"),inputProps:{onBlur:function(e){var n=e.target.value;v({inputs:he({},U,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},label:"Subnet mask",onChange:function(e){var n=e.target.value;m({inputs:he({},U,{value:n})}),s(RegExp("(?:^(?:".concat(U,"|").concat(D,")|").concat(w,"$)")))},value:C}),ref:j})]})]})};Te.defaultProps={createDropMouseUpHandler:void 0};var Fe=(0,a.forwardRef)((function(e,n){var t,i,l=e.toggleSubmitDisabled,u=(0,a.useState)({x:0,y:0}),c=u[0],d=u[1],f=(0,a.useState)({}),m=f[0],h=f[1],x=(0,a.useState)(Ce),y=x[0],j=x[1],w=(0,a.useState)(),k=w[0],O=w[1],P=(0,a.useState)(""),C=P[0],S=P[1],Z=(0,a.useRef)({}),A=(0,a.useRef)({}),M=(0,a.useRef)({}),N=(0,ve.Z)("".concat(ne.Z,"/network-interface"),{refreshInterval:2e3,onSuccess:function(e){var n=e.reduce((function(e,n){var t,r=n.networkInterfaceUUID;return e[r]=null!==(t=m[r])&&void 0!==t?t:{metadata:n},e}),{});h(n)}}),U=N.data,D=void 0===U?ke:U,R=N.isLoading,V=(0,a.useMemo)((function(){return y.length>=D.length||Object.values(m).every((function(e){return e.isApplied}))}),[y,D,m]),E=(0,a.useCallback)((function(e,n){var t;return null===(t=M.current.setMessage)||void 0===t?void 0:t.call(null,e,n)}),[]),T=(0,a.useCallback)((function(e,n){var t;return null===(t=M.current.setMessageRe)||void 0===t?void 0:t.call(null,e,n)}),[]),F=(0,a.useCallback)((function(e){return E(Se,e)}),[E]),L=(0,a.useCallback)((function(e){return E(Ze,e)}),[E]),H=(0,a.useCallback)((function(e){var n,t=e.fn,r=void 0===t?"every":t,o=e.ip,i=void 0===o?"":o,a=e.mask,l=void 0===a?"":a,u=e.isNegateMatch,c=void 0===u?"every"===r:u,s=e.onMatch,d=e.onMiss,f=e.skipUUID,v="every"===r;try{n=new Y.Netmask("".concat(i,"/").concat(l))}catch(p){}return y[r]((function(e){var t,r,o=e.inputUUID,a=e.ipAddressInputRef,l=e.subnetMaskInputRef;if(o===f)return v;var u=null===(t=null===a||void 0===a?void 0:a.current.getValue)||void 0===t?void 0:t.call(null),m=null===(r=null===l||void 0===l?void 0:l.current.getValue)||void 0===r?void 0:r.call(null),g=!1;try{g=function(e,n){var t=n.b,r=n.bIP,o=void 0===r?"":r;return e.contains(null!==t&&void 0!==t?t:o)||void 0!==t&&t.contains(e)}(new Y.Netmask("".concat(u,"/").concat(m)),{b:n,bIP:i})}catch(p){}return g?null===s||void 0===s||s.call(null,e):null===d||void 0===d||d.call(null,e),c?!g:g}))}),[y]),B=(0,a.useMemo)((function(){var e,n=(he(e={},Se,{defaults:{getValue:function(){var e;return null===(e=A.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){F()}},tests:[{onFailure:function(){F({children:"Domain name servers should be a comma-separated list of IPv4 addresses without trailing comma(s)."})},test:function(e){var n=e.value;return v.ah.test(n)}},{test:I.HJ}]}),he(e,Ze,{defaults:{getValue:function(){var e;return null===(e=Z.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){L()}},tests:[{onFailure:function(){L({children:"Gateway should be a valid IPv4 address."})},test:function(e){var n=e.value;return v.tf.test(n)}},{test:function(e){var n=e.value,t=!0,r=H({fn:"some",ip:n,onMatch:function(e){var r=e.ipAddress,o=e.name,i=e.type,a=e.typeCount;if(n===r)return t=!1,void L({children:"Gateway cannot be the same as IP address in ".concat(o,".")});S("".concat(i).concat(a))}});return r||L({children:"Gateway must be in one network's subnet."}),r&&t}},{test:I.HJ}]}),e);return y.forEach((function(e){var t,r,o=e.inputUUID,i=e.interfaces,a=e.ipAddressInputRef,l=e.name,u=e.subnetMaskInputRef,c=Ve(o),s=Ae(c),d=Me(c),f=Ue(c),p=function(e){return E(s,e)},m=function(e){return E(d,e)},g=function(e){return E(f,e)},b=function(e,n,t){var r,o="".concat(De(c),"-").concat(n),i="".concat(De(Ve(n)),"-").concat(e);E((null===(r=M.current.exists)||void 0===r?void 0:r.call(null,i))?i:o,t)},h=function(e){var n=e.ip,i=void 0===n?null===(t=null===a||void 0===a?void 0:a.current.getValue)||void 0===t?void 0:t.call(null):n,c=e.mask,s=void 0===c?null===(r=null===u||void 0===u?void 0:u.current.getValue)||void 0===r?void 0:r.call(null):c;return H({ip:i,mask:s,onMatch:function(e){var n=e.inputUUID,t=e.name;b(o,n,{children:'"'.concat(l,'" and "').concat(t,'" cannot be in the same subnet.')})},onMiss:function(e){var n=e.inputUUID;b(o,n)},skipUUID:o})};n[s]={defaults:{getCompare:function(){return i.map((function(e){return void 0!==e}))},onSuccess:function(){p()}},tests:[{onFailure:function(){p({children:"".concat(l," must have at least 1 interface.")})},test:function(e){return e.compare.some((function(e){return e}))}},{onFailure:function(){p({children:"".concat(l," must have a Link 1 interface.")})},test:function(e){var n=ye(e.compare,2),t=n[0];return!(n[1]&&!t)}}]},n[d]={defaults:{getValue:function(){var e;return null===(e=null===a||void 0===a?void 0:a.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){m()}},tests:[{onFailure:function(){m({children:"IP address in ".concat(l," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return v.tf.test(n)}},{test:function(e){var n=e.value;return h({ip:n})}},{test:I.HJ}]},n[Ne(c)]={defaults:{value:l},tests:[{test:I.HJ}]},n[f]={defaults:{getValue:function(){var e;return null===(e=null===u||void 0===u?void 0:u.current.getValue)||void 0===e?void 0:e.call(null)},onSuccess:function(){g()}},tests:[{onFailure:function(){g({children:"Subnet mask in ".concat(l," must be a valid IPv4 address.")})},test:function(e){var n=e.value;return v.tf.test(n)}},{test:function(e){var n=e.value;return h({mask:n})}},{test:I.HJ}]}})),n}),[y,F,L,E,H]),_=(0,a.useMemo)((function(){return(0,I.LT)(B)}),[B]),z=(0,a.useCallback)((function(e){null===l||void 0===l||l.call(null,_(xe({isIgnoreOnCallbacks:!0,isTestAll:!0},e)))}),[_,l]),q=(0,a.useCallback)((function(){O(void 0)}),[]),G=(0,a.useCallback)((function(){y.unshift({inputUUID:(0,ee.Z)(),interfaces:je(Oe),ipAddress:"",name:"Unknown Network",subnetMask:"",type:"",typeCount:0}),null===l||void 0===l||l.call(null,!1),j(je(y))}),[y,l]),J=(0,a.useCallback)((function(e){var n=ye(y.splice(e,1),1)[0],t=n.inputUUID;n.interfaces.forEach((function(e){if(void 0!==e){var n=e.networkInterfaceUUID;m[n].isApplied=!1}})),z({excludeTestIdsRe:RegExp(t)}),j(je(y)),h((function(e){return xe({},e)}))}),[y,m,z]),Q=(0,a.useCallback)((function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.inputs,r=void 0===t?y:t,o=n.lastIndex,i=void 0===o?0:o,a=0,l=r.length-1;l>=i;l-=1)r[l].type===e&&(a+=1);return a}),[y]),re=(0,a.useMemo)((function(){if(void 0!==k){var e=k.networkInterfaceUUID;return function(n,t){return function(){var r,o=(null!==(r=n[t])&&void 0!==r?r:{}).networkInterfaceUUID;o&&o!==e&&(m[o].isApplied=!1),n[t]=k,m[e].isApplied=!0}}}}),[k,m]),oe=(0,a.useMemo)((function(){return k?{cursor:"grabbing",userSelect:"none"}:{}}),[k]),ie=(0,a.useMemo)((function(){if(void 0===k)return(0,r.jsx)(r.Fragment,{});var e=c.x,n=c.y;return(0,r.jsx)(ce,{isFloating:!0,networkInterface:k,sx:{left:"calc(".concat(e,"px + .4em)"),position:"absolute",top:"calc(".concat(n,"px - 1.6em)"),zIndex:20}})}),[c,k]),ae=(0,a.useMemo)((function(){return k?function(){q()}:void 0}),[q,k]),le=(0,a.useMemo)((function(){return k?function(e){var n=e.currentTarget,t=e.nativeEvent,r=t.clientX,o=t.clientY,i=n.getBoundingClientRect(),a=i.left,l=i.top;d({x:r-a,y:o-l})}:void 0}),[k]),ue=(0,a.useMemo)((function(){return k?function(){q()}:void 0}),[q,k]);(0,a.useEffect)((function(){var e=D.reduce((function(e,n){var t,r=n.networkInterfaceUUID;return e[r]=null!==(t=m[r])&&void 0!==t?t:{metadata:n},e}),{});h(e)}),[]),(0,a.useImperativeHandle)(n,(function(){return{get:function(){var e,n;return{domainNameServerCSV:null===(e=A.current.getValue)||void 0===e?void 0:e.call(null),gateway:null===(n=Z.current.getValue)||void 0===n?void 0:n.call(null),gatewayInterface:C,networks:y.map((function(e){var n,r,o=e.inputUUID,a=e.interfaces,l=e.ipAddressInputRef,u=e.name,c=e.subnetMaskInputRef,s=e.type,d=e.typeCount;return{inputUUID:o,interfaces:a,ipAddress:null!==(t=null===(n=null===l||void 0===l?void 0:l.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==t?t:"",name:u,subnetMask:null!==(i=null===(r=null===c||void 0===c?void 0:c.current.getValue)||void 0===r?void 0:r.call(null))&&void 0!==i?i:"",type:s,typeCount:d}}))}}}}),[C,y]);var se,fe="13em";return R?(0,r.jsx)(me.Z,{}):(0,r.jsxs)(o.Z,{onMouseDown:function(e){var n=e.clientX,t=e.clientY,r=e.currentTarget.getBoundingClientRect(),o=r.left,i=r.top;d({x:n-o,y:t-i})},onMouseLeave:ae,onMouseMove:le,onMouseUp:ue,sx:xe({position:"relative"},oe),children:[ie,(0,r.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child, :nth-child(3))":{marginTop:"1em"}},children:[(0,r.jsx)(X._,{autoHeight:!0,columns:Ee((function(e){O(e)}),m),componentsProps:{row:{onMouseDown:function(e){var n=e.target,t=(void 0===n?{}:n).parentElement,r=(void 0===t?{}:t).dataset,o=(void 0===r?{}:r).id,i=void 0===o?void 0:o;if(i){var a=m[i],l=a.isApplied,u=a.metadata;l||O(u)}}}},disableColumnMenu:!0,disableSelectionOnClick:!0,getRowClassName:function(e){var n,t=e.row.networkInterfaceUUID,r="";return(null!==(n=m[t])&&void 0!==n&&n).isApplied||(r+=" ".concat(Ie.ifaceNotApplied)),r},getRowId:function(e){return e.networkInterfaceUUID},hideFooter:!0,rows:D,sx:(se={color:te.s7},he(se,"& .".concat($.Z.root),{color:"inherit"}),he(se,"& .".concat(K._.cell,":focus"),{outline:"none"}),he(se,"& .".concat(K._.row,".").concat(Ie.ifaceNotApplied,":hover"),he({cursor:"grab"},"& .".concat(K._.cell," p"),{cursor:"auto"})),se)}),(0,r.jsxs)(s.Z,{row:!0,sx:{"& > :first-child":{alignSelf:"start",marginTop:".7em"},"& > :last-child":{flexGrow:1}},children:[(0,r.jsx)(de.Z,{disabled:V,onClick:G,children:(0,r.jsx)(W.Z,{})}),(0,r.jsx)(o.Z,{sx:{alignItems:"strech",display:"flex",flexDirection:"row",overflowX:"auto",paddingLeft:".3em","& > div":{marginBottom:".8em",marginTop:".4em",minWidth:fe,width:"25%"},"& > :not(:first-child)":{marginLeft:"1em"}},children:y.map((function(e,n){var t=e.inputUUID;return(0,r.jsx)(Te,{createDropMouseUpHandler:re,getNetworkTypeCount:Q,networkIndex:n,networkInput:e,networkInterfaceInputMap:m,removeNetwork:J,setMessageRe:T,setNetworkInputs:j,setNetworkInterfaceInputMap:h,testInput:_,testInputToToggleSubmitDisabled:z},"network-".concat(t))}))})]}),(0,r.jsxs)(s.Z,{sm:"row",sx:{marginLeft:{sm:"3.8em"},marginTop:".2em","& > *":{minWidth:fe,width:{sm:"25%"}}},children:[(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"network-init-gateway",inputProps:{onBlur:function(e){var n=e.target.value;_({inputs:he({},Ze,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;z({inputs:he({},Ze,{value:n})}),L()},label:"Gateway"}),ref:Z}),(0,r.jsx)(p.Z,{input:(0,r.jsx)(b.Z,{id:"network-init-dns-csv",inputProps:{onBlur:function(e){var n=e.target.value;_({inputs:he({},Se,{value:n})})}},inputLabelProps:{isNotifyRequired:!0},onChange:function(e){var n=e.target.value;z({inputs:he({},Se,{value:n})}),F()},label:"Domain name server(s)"}),ref:A})]}),(0,r.jsx)(g.Z,{count:1,defaultMessageType:"warning",ref:M})]})]})}));Fe.defaultProps={toggleSubmitDisabled:void 0},Fe.displayName="NetworkInitForm";var Le=Fe;function He(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Be(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){He(e,n,t[n])}))}return e}var _e=function(){var e,n=(0,a.useState)(),t=n[0],o=n[1],d=(0,a.useState)(),f=d[0],v=d[1],p=(0,a.useState)(!1),g=p[0],b=p[1],h=(0,a.useState)(!0),x=h[0],y=h[1],j=(0,a.useState)(!1),w=j[0],k=j[1],I=(0,a.useState)(!1),P=I[0],C=I[1],S=(0,a.useState)(!1),Z=S[0],A=S[1],M=(0,a.useRef)({}),N=(0,a.useRef)({}),U=(0,a.useMemo)((function(){return Z?(0,r.jsx)(me.Z,{}):(0,r.jsx)(s.Z,{row:!0,sx:{flexDirection:"row-reverse"},children:(0,r.jsx)(c.Z,{disabled:x,onClick:function(){var e,n,t,r;v(Be({},null!==(t=null===(e=M.current.get)||void 0===e?void 0:e.call(null))&&void 0!==t?t:{},null!==(r=null===(n=N.current.get)||void 0===n?void 0:n.call(null))&&void 0!==r?r:{networks:[]})),b(!0)},children:"Initialize"})})}),[x,Z]),D=(0,a.useCallback)((function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];y(!n.every((function(e){return e})))}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(fe.s_,{children:[(0,r.jsx)(fe.V9,{children:(0,r.jsx)(O.z,{text:"Initialize striker"})}),(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(B,{ref:M,toggleSubmitDisabled:function(e){e!==w&&(k(e),D(e,P))}}),(0,r.jsx)(Le,{ref:N,toggleSubmitDisabled:function(e){e!==P&&(C(e),D(w,e))}}),t&&(0,r.jsx)(m.Z,Be({},t,{onClose:function(){return o(void 0)}})),U]})]}),(0,r.jsx)(u.Z,{actionProceedText:"Initialize",content:(0,r.jsxs)(i.ZP,{container:!0,spacing:".6em",columns:{xs:2},children:[(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.Ac,{children:"Organization name"})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.$_,{children:null===f||void 0===f?void 0:f.organizationName})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.Ac,{children:"Organization prefix"})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.$_,{children:null===f||void 0===f?void 0:f.organizationPrefix})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.Ac,{children:"Striker number"})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.$_,{children:null===f||void 0===f?void 0:f.hostNumber})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.Ac,{children:"Domain name"})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.$_,{children:null===f||void 0===f?void 0:f.domainName})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.Ac,{children:"Host name"})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.$_,{children:null===f||void 0===f?void 0:f.hostName})}),(0,r.jsx)(i.ZP,{item:!0,sx:{marginTop:"1.4em"},xs:2,children:(0,r.jsx)(O.Ac,{children:"Networks"})}),null===f||void 0===f?void 0:f.networks.map((function(e){var n=e.inputUUID,t=e.interfaces,o=e.ipAddress,a=e.name,l=e.subnetMask,u=e.type,c=e.typeCount;return(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsxs)(i.ZP,{container:!0,spacing:".6em",columns:{xs:2},children:[(0,r.jsx)(i.ZP,{item:!0,xs:2,children:(0,r.jsxs)(O.Ac,{children:[a," (",(0,r.jsx)(O.Q0,{children:"".concat(u.toUpperCase()).concat(c)}),")"]})}),t.map((function(e,t){var o="network-confirm-".concat(n,"-interface").concat(t),a="none";if(e){var l=e.networkInterfaceName,u=e.networkInterfaceUUID;o="".concat(o,"-").concat(u),a=l}return(0,r.jsxs)(i.ZP,{container:!0,item:!0,children:[(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.Ac,{children:"Link ".concat(t+1)})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.$_,{children:a})})]},o)})),(0,r.jsx)(i.ZP,{item:!0,xs:2,children:(0,r.jsx)(O.$_,{children:"".concat(o,"/").concat(l)})})]})},"network-confirm-".concat(n))})),(0,r.jsx)(i.ZP,{item:!0,sx:{marginBottom:"1.4em"},xs:2}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.Ac,{children:"Gateway"})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.$_,{children:null===f||void 0===f?void 0:f.gateway})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.Ac,{children:"Gateway network"})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.$_,{children:null===f||void 0===f||null===(e=f.gatewayInterface)||void 0===e?void 0:e.toUpperCase()})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.Ac,{children:"Domain name server(s)"})}),(0,r.jsx)(i.ZP,{item:!0,xs:1,children:(0,r.jsx)(O.$_,{children:null===f||void 0===f?void 0:f.domainNameServerCSV})})]}),dialogProps:{open:g},onCancelAppend:function(){b(!1)},onProceedAppend:function(){o(void 0),A(!0),b(!1),l.Z.post("/host",f).then((function(){A(!1)})).catch((function(e){var n=(0,_.Z)(e);o(n),A(!1)}))},titleText:"Confirm striker initialization"})]})},ze=function(){return(0,r.jsx)(o.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,r.jsx)(_e,{})})}}},function(e){e.O(0,[738,688,643,536,805,315,141,892,774,888,179],(function(){return n=593,e(e.s=n);var n}));var n=e.O();_N_E=n}]); |