"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[71014],{636432(e,t,r){r.d(t,{iw:()=>E,Zb:()=>I,N0:()=>S,uE:()=>A,Je:()=>g,od:()=>O});var i=r(756275),n=r(995304),s=r(627625),a=r(260334),o=r(403263),d=r(199220);const l=(0,s.S)([d.m9,o.q],{message:(0,a.rn)("SETTINGS_IPV6_ADDRESS_OR_SUBNET_VALIDATION")});var _=r(962946),m=r(139847),c=r(277822);const I={[c.B.PORT_GROUP]:"SETTINGS_DUPLICATE_PORT_VALIDATION",[c.B.ADDRESS_GROUP]:"SETTINGS_DUPLICATE_IP_VALIDATION",[c.B.IPV6_ADDRESS_GROUP]:"SETTINGS_DUPLICATE_IP_VALIDATION"},A={[c.B.PORT_GROUP]:{id:"COMMON_PLACEHOLDER_EG",values:{value:"1-10"}},[c.B.ADDRESS_GROUP]:{id:"SETTINGS_IP_SUBNET_RANGE",values:{version:m.oi.IPV4}},[c.B.IPV6_ADDRESS_GROUP]:{id:"SETTINGS_IP_SUBNET_RANGE",values:{version:m.oi.IPV6}}},E=[c.B.PORT_GROUP,c.B.ADDRESS_GROUP,c.B.IPV6_ADDRESS_GROUP],O={[c.B.PORT_GROUP]:"COMMON_PORT",[c.B.ADDRESS_GROUP]:"SETTINGS_PROFILES_NETWORK_OBJECT_TYPE_ADDRESS_GROUP",[c.B.IPV6_ADDRESS_GROUP]:"SETTINGS_PROFILES_NETWORK_OBJECT_TYPE_IPV6_ADDRESS_GROUP"},S={[c.B.PORT_GROUP]:"COMMON_PORT",[c.B.ADDRESS_GROUP]:"COMMON_ADDRESS",[c.B.IPV6_ADDRESS_GROUP]:"COMMON_ADDRESS"},g={[c.B.PORT_GROUP]:(0,s.S)([i.L,n.i],{message:(0,a.rn)("SETTINGS_COMMON_PORT_LIST_VALIDATION_REQUIRED")}),[c.B.ADDRESS_GROUP]:_.q.refine(e=>!e.endsWith("/32"),{message:(0,a.rn)("SETTINGS_REMOVE_SUBNET_SUFFIX",{subnet:32})}),[c.B.IPV6_ADDRESS_GROUP]:l.refine(e=>!e.endsWith("/128"),{message:(0,a.rn)("SETTINGS_REMOVE_SUBNET_SUFFIX",{subnet:128})})}},277822(e,t,r){var i;r.d(t,{B:()=>i}),function(e){e.PORT_GROUP="port-group",e.ADDRESS_GROUP="address-group",e.IPV6_ADDRESS_GROUP="ipv6-address-group"}(i||(i={}))},547967(e,t,r){r.d(t,{AC:()=>I,D7:()=>A,Ie:()=>p,JL:()=>g,JX:()=>h,KY:()=>E,O2:()=>c,Op:()=>m,Rm:()=>O,e$:()=>T,t7:()=>S,yr:()=>u});var i=r(938984),n=r(814557),s=r(247816),a=r(409844),o=r(291508),d=r(61322),l=r(309130),_=r(100978);const m=(0,s.A)(_.A,(0,o.A)("inline","wrap"))`
  position: relative;
  flex: ${({inline:e})=>e?"1 1 0":"0 0 100%"};
  align-items: flex-start;
  flex-flow: ${({wrap:e})=>"row "+(e?"wrap":"nowrap")};
  gap: ${l.kc};
`,c=(0,s.A)(_.A,(0,o.A)("editMaxHeight","editFieldWrap"))`
  flex-direction: column;
  max-height: ${({editMaxHeight:e})=>`${e||300}px`};
  overflow-y: auto;
  overflow-x: hidden;
  gap: ${l.YC};

  ${({editFieldWrap:e,theme:{themeName:t}})=>e?`\n    gap: 0;\n\n    > * {\n      border-bottom: ${n.Ay[`desktop-border-divider-${t}`]};\n      padding-bottom: ${l.kc};\n      padding-top: ${l.kc};\n    }\n\n    > *:first-child {\n      padding-top: 0;\n    }\n\n    > *:last-child {\n      border-bottom: none;\n      padding-bottom: 0;\n    }\n  `:""}
`,I=(0,s.A)("div",(0,o.A)("isWindowsTable","rows","tableMaxHeight","marginTop"))`
  width: 100%;
  // windows table inherits height from parent container
  height: ${({rows:e,isWindowsTable:t})=>t&&`${d.I.ROW_HEIGHT*e+d.I.HEADER_HEIGHT}`}px;
  max-height: ${({tableMaxHeight:e})=>e?`${e}px`:"auto"};
  margin-top: ${({marginTop:e})=>e||l.Ln};

  table {
    td {
      max-width: 170px;

      span {
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
`,A=(0,s.A)(i.A)`
  margin-right: ${l.YC};
`,E=a.AH`
  :first-of-type {
    padding: 0 ${l.fS} 0 0px;
  }
`,O="drag-and-drop-table-row-placeholder",S=(0,s.A)(_.A)`
  flex-direction: column;

  /* Adjust weird padding on the right side for the ID column when right aligned (drag & drop table) */
  table > thead > tr > th:last-of-type {
    padding-right: ${l.kc};
  }

  /* Add missing border between drag and drop groups (tbody elements) */
  table > tbody {
    border-bottom: ${({theme:{themeName:e}})=>n.Ay[`desktop-border-divider-${e}`]};
  }
  /* Last cell in table is hover content which is not used in this table */
  table > tbody[data-rbd-droppable-context-id] td:not(:last-of-type),
  table > thead > tr > th {
    /* Align drag & drop table cell padding to regular table padding */
    padding-right: ${l.kc} !important;
  }
  /* Align drop zone placeholder row when a row is dragged to matched the CSS overrides for drag and drop table we use */
  table .${O} {
    display: flex;
  }
`,g=a.AH`
  /* This is default for the table rows, so we need it for the header. */
  display: flex;
  width: 100%;

  > th:first-child {
    /* Since we flex the header, we must specify this to align with the table rows. */
    width: 24px;
  }
  > th:not(:first-child) {
    /* Something inside UIC sets the padding to 8px for table header and 5px for table rows. This aligns it to make flex work. */
    padding-right: ${l.kc} !important;
  }
`,T=a.AH`
  /* Override the padding-right of the first column to align with manage + drop modes. */
  > th:first-child {
    padding-right: ${l.kc} !important;
  }
  > th:first-child:has(> label) {
    padding-right: 1px !important;
    width: 36px;
  }
`,u=a.AH`
  /* UIC already does this for some table states, like drag and drop and when in manage mode. If we just use this ALWAYS, we're avoiding many issues related to using different alignment techniques in different places. */
  display: flex;
`,h=a.AH`
  tbody {
    display: flex;
    flex-direction: column;
  }
`;function p(e,t){return a.AH`
    width: ${t.width?`${t.width}px`:"auto"};
    min-width: ${t.minWidth?`${t.minWidth}px`:"0px"};
    flex: ${t.growthFactor||0} !important;
    padding-left: ${l.kc} !important;
    padding-right: ${l.kc} !important;
  `}},256468(e,t,r){var i;r.d(t,{EE:()=>s,Uh:()=>i,Vf:()=>n}),function(e){e.SINGLE="single",e.PLURAL="plural"}(i||(i={}));const n="editActive",s=20},531984(e,t,r){r.d(t,{w:()=>a});var i=r(602086),n=r(977872),s=r(205521);const a=e=>{const t=(0,n.wA)();(0,i.useEffect)(()=>{t((0,s.SQ)(e))},[t,e])}},762542(e,t,r){r.d(t,{y:()=>n});var i=r(531984);const n=e=>(0,i.w)(e.formState.isDirty)},753959(e,t,r){r.d(t,{A:()=>d});var i=r(274934),n=r(814557),s=r(853777),a=r(263705),o=r(612389);const d=({children:e,icon:t,background:r,...d})=>{const{themeName:l}=(0,a.u)();return(0,i.jsx)(o.A,{icon:t||(0,i.jsx)(s.A,{variant:"fill",size:"original",color:n.Ay[`desktop-color-ublue-06-${l}`]}),description:e,background:r,...d})}},341699(e,t,r){r.d(t,{HV:()=>s,pm:()=>a,vF:()=>n});var i=r(726831);const n=e=>`${i.A.fabricsOrchestration}?orchestrationId=${e?.template_id||""}&orgId=${e?.organization_id||""}`,s=e=>`${i.A.fabricsDeviceTemplates}/${e?.template_id||""}?orgId=${e?.organization_id||""}`,a=()=>`${i.A.fabricsOrchestration}`},466815(e,t,r){r.r(t),r.d(t,{default:()=>q});var i=r(274934),n=r(977872),s=r(159469),a=r(762542),o=r(988646),d=r(23964),l=r(670241),_=r(635891),m=r(877840),c=r(436417),I=r(449339),A=r(309130),E=r(756782),O=r(100978),S=r(205521),g=r(700444),T=r(470070),u=r(233313),h=r(6276),p=r(277822),N=r(694169),R=r(309100),f=r(969288),D=r(897166),P=r(115114),x=r(241792),b=r(260334);const v=e=>x.Yj().max(64,{message:(0,b.rn)("SETTINGS_COMMON_FIELD_SHOULD_NOT_EXCEED_MAX_LENGTH",{name:(0,b.rn)("COMMON_NAME"),limit:64})}).refine(t=>!e.some(e=>e.name===t),{message:(0,b.rn)("COMMON_PLEASE_ENTER_UNIQUE_NAME")});var M=r(42220),G=r(482609),V=r(787481),L=r(164487),w=r(597750),C=r(636432);const U=({form:e,isExistingRecord:t})=>{const r=(0,M.FH)({control:e.control,name:"group_members"});return(0,i.jsxs)(w.A,{children:[(0,i.jsx)(L.A,{children:(0,i.jsx)(T.sA,{id:"COMMON_TYPE"})}),(0,i.jsx)(m.A,{isDisabled:r.length>0||t,children:(0,i.jsx)(V.A,{flexDirection:"column",alignItems:"flex-start",children:C.iw.map(t=>(0,i.jsx)(G.A,{control:e.control,name:"group_type",value:t,children:(0,i.jsx)(T.sA,{id:C.od[t]})},t))})})]})};var B=r(753959),j=r(793442),y=r(341699);const H=({existingRecord:e})=>(0,i.jsx)(B.A,{children:(0,i.jsxs)(O.A,{flexDirection:"column",children:[(0,i.jsx)(T.sA,{id:"COMMON_MANAGED_BY_FABRIC",values:{feature:(0,i.jsx)(T.sA,{id:"COMMON_NETWORK_LIST"})}}),(0,i.jsx)(j.A,{id:"COMMON_VIEW_IN_SITE_MANAGER",href:(0,y.vF)(e?.cloud_template)})]})});var $=r(602086),F=r(858098),k=r(635187),W=r(202730),K=r(590979),Y=r(756275);const Q=e=>{const t=e.split(k.jr);return 2===t.length&&(0,Y.w)(t[0])&&(0,Y.w)(t[1])&&Number(t[0])<Number(t[1])?[Number(t[0]),Number(t[1])]:(0,Y.w)(e)?[Number(e),Number(e)]:null},J=e=>[...e].sort((e,t)=>{const r=Q(e),i=Q(t);return r&&i?r[0]-i[0]:0}),z=({form:e})=>{const{formatMessage:t}=(0,T.tz)(),r=(0,M.FH)({control:e.control,name:"group_type"}),n=C.N0[r],s=C.uE[r],a=t({id:s.id},s.values),o=(0,$.useCallback)((e,r)=>{const i=Q(e);if(!i)return!0;for(const e of r){const r=Q(e);if(r&&i[0]<=r[1]&&r[0]<=i[1])return t({id:"SETTINGS_PORT_RANGE_OVERLAP_VALIDATION"},{entry:e})}return!0},[t]);return(0,i.jsxs)(w.A,{...K.A.addDataTestId(W.b.POLICY_BASED_ROUTES_DOMAIN),children:[(0,i.jsx)(L.A,{children:(0,i.jsx)(T.sA,{id:n})}),(0,i.jsx)(F.A,{form:e,name:"group_members",fieldLabel:n,modalTitle:(0,i.jsx)(T.sA,{id:"SETTINGS_ADD_MULTIPLE_NETWORK_LIST_VALUES"}),modalFieldPlaceholder:a,itemSchema:C.Je[r],placeholder:a,getDuplicationMessage:()=>t({id:C.Zb[r]}),splitBy:r===p.B.PORT_GROUP?k.KE:void 0,validateInArray:r===p.B.PORT_GROUP?o:void 0,sortValue:r===p.B.PORT_GROUP?J:void 0})]})},X="network-list-profile-form",q=({activeItem:e})=>{const t=(0,n.wA)(),r=e._id===f.R6,M=(0,n.d4)(N.O9),G=(0,c.m)({schema:(V=M.filter(({_id:t})=>t!==e._id),x.KC([x.Ik({group_type:x.eu(p.B.PORT_GROUP),name:v(V),group_members:x.YO(x.Yj()).min(1,{message:(0,b.rn)("SETTINGS_PROFILES_PORT_IP_GROUPS_FORM_FIELD_GROUP_MEMBERS_PORT_MIN")})}),x.Ik({group_type:x.KC([x.eu(p.B.ADDRESS_GROUP),x.eu(p.B.IPV6_ADDRESS_GROUP)]),name:v(V),group_members:x.YO(x.Yj()).min(1,{message:(0,b.rn)("SETTINGS_PROFILES_PORT_IP_GROUPS_FORM_FIELD_GROUP_MEMBERS_ADDRESS_MIN")})})])),defaultValues:{group_type:e._id===f.R6?p.B.PORT_GROUP:e.group_type,name:e.name,group_members:e._id===f.R6?[]:e.group_members}});var V;const L=(0,o.S)(l.v.NETWORK_OBJECTS),w=(0,n.d4)(D.EL),C=(0,h.A)(e);(0,a.y)(G);const B=G.handleSubmit(async i=>{t((0,R.Qe)({...i,_id:r?null:e._id,group_members:(i.group_members||[]).filter(e=>!!e)})).then(e=>{t((0,S.SQ)(!1)),r&&t((0,S.XP)({id:e._id,type:I.H.NETWORK_LIST_PROFILE}))}).then(()=>{G.reset()}).catch(e=>{t((0,g.ox)({errorMessage:e.msg,errorValues:e,icon:s.C.danger,message:"SETTINGS_PROFILES_NETWORK_OBJECT_FORM_SAVE_FAILURE",values:{name:i.name}}))})});return(0,i.jsx)(m.A,{isDisabled:L||w||C,children:(0,i.jsx)("form",{onSubmit:B,id:X,children:(0,i.jsxs)(O.A,{width:"100%",gap:A.Ln,flexDirection:"column",children:[(0,i.jsx)(d.A,{feature:l.v.NETWORK_OBJECTS,renderWarning:({children:e})=>(0,i.jsx)(u.A,{children:(0,i.jsx)(E.A,{children:e})})}),(0,i.jsxs)(E.A,{children:[C?(0,i.jsx)(H,{existingRecord:e}):null,(0,i.jsx)(_.A,{autoFocus:!0,control:G.control,name:"name",label:(0,i.jsx)(T.sA,{id:"COMMON_NAME"})})]}),(0,i.jsxs)(E.A,{children:[(0,i.jsx)(U,{form:G,isExistingRecord:!r}),(0,i.jsx)(z,{form:G})]}),(0,i.jsx)(P.A,{onFormCancel:()=>G.reset(),isDirty:G.formState.isDirty||r&&!L,hideCancelButton:!G.formState.isDirty,submitButtonText:r?"COMMON_ACTION_ADD":void 0,form:X,isSubmitting:G.formState.isSubmitting})]})})})}},61322(e,t,r){r.d(t,{I:()=>i});const i={HEADER_HEIGHT:32,ROW_HEIGHT:32,EDIT_FIELD_HEIGHT:36,getHeight(e,t,r,i){return Math.min((i||this.ROW_HEIGHT)*e+(r??this.HEADER_HEIGHT),(i||this.ROW_HEIGHT)*t+(r??this.HEADER_HEIGHT))},getEditContainerHeight(e,t,r){return Math.min((r||this.EDIT_FIELD_HEIGHT)*e,(r||this.EDIT_FIELD_HEIGHT)*t)}}},858098(e,t,r){r.d(t,{A:()=>m});var i=r(274934),n=r(602086),s=r(42220),a=r(260334),o=r(184931),d=r(100978),l=r(470070),_=r(680163);const m=function({form:e,name:t,fieldLabel:r,modalTitle:m,modalFieldPlaceholder:c,placeholder:I,itemSchema:A,transformValue:E,getDuplicationMessage:O,extraDisplayColumns:S,actions:g,max:T,disableMultiEdit:u=!1,splitBy:h,validateInArray:p,sortValue:N}){const R=(0,o.mQ)(),f=(0,a.L_)(),{formatMessage:D}=(0,l.tz)(),P=(0,n.useMemo)(()=>({fieldLabel:r,modalTitle:m,modalFieldPlaceholder:c}),[r,c,m]),x=(0,n.useMemo)(()=>({getDuplicationMessage:O??(()=>D({id:"SETTINGS_VALUE_UNIQUE"})),validateInArray:p,validate:e=>{if(h&&"string"==typeof e){const t=e.split(h).map(e=>e.trim()).filter(Boolean);for(const r of t.length>0?t:[e]){const e=A.safeParse(r);if(!e.success)return f(e.error.issues[0]?.message)}return!0}const t=A.safeParse(e);return!!t.success||f(t.error.issues[0]?.message)}}),[D,f,O,A,h,p]),b=(0,n.useMemo)(()=>({placeholder:I,translatePlaceholder:!1,parser:E?e=>E(e?.[0]?.target?.value):void 0}),[I,E]);return(0,i.jsx)(s.xI,{control:e.control,name:t,render:({field:e,fieldState:t,formState:r})=>(0,i.jsx)(d.A,{flexDirection:"column",width:"100%",children:(0,i.jsx)(_.A,{disabled:R,labels:P,fieldValidation:x,extraFieldConfig:b,value:N?N(e.value||[]):e.value||[],onChange:t=>e.onChange(t),invalid:t.invalid?f((0,s.Jt)(r.errors,e.name)?.message)||!0:void 0,extraDisplayColumns:S,actions:g,disableMultiEdit:u,max:T,splitBy:h,transformValue:E})})})}},482609(e,t,r){r.d(t,{A:()=>m});var i=r(274934),n=r(602086),s=r(42220),a=r(956976),o=r(309130),d=r(304151),l=r(100978),_=r(184931);const m=(0,n.forwardRef)(function({control:e,name:t,children:r,tooltip:n,tooltipProps:m,value:c,onCheck:I,...A},E){const O=(0,_.mQ)();return(0,i.jsx)(s.xI,{control:e,name:t,render:({field:e})=>(0,i.jsxs)(l.A,{gap:o.YC,alignItems:"center",ref:E,...A,children:[(0,i.jsx)(a.A,{id:e.name,onChange:({target:{checked:t}})=>{t&&(e.onChange(c),I?.())},checked:e.value===c,disabled:O,value:e.value,children:r}),n?(0,i.jsx)(d.A,{description:n,...m}):null]})})})},635891(e,t,r){r.d(t,{A:()=>_});var i=r(274934),n=r(42220),s=r(843615),a=r(95032),o=r(309130),d=r(260334),l=r(184931);const _=function({control:e,name:t,label:r,placeholder:_,tooltip:m,tooltipProps:c,autoFocus:I,motif:A,onChange:E,onBlur:O,onAfterChange:S,onPaste:g,onKeyDown:T,passwordToggle:u,type:h,helperMessage:p,autoComplete:N,contentBefore:R,contentAfter:f,onFocus:D,value:P,invalid:x}){const b=(0,l.mQ)(),v=(0,l.Im)(),M=(0,l.q)(),G=(0,d.L_)();return(0,i.jsx)(n.xI,{control:e,name:t,render:({field:e,fieldState:d,formState:l})=>(0,i.jsx)(s.A,{type:h||(u?"password":"text"),variant:"secondary",width:"100%",autoFocus:I,...e,onChange:t=>{E?E(t,e,l):e.onChange(t),S?.(t)},onBlur:t=>{O?O(t,e,l):e.onBlur()},onFocus:D,onPaste:g,disabled:b,value:P??e.value?.toString(),invalid:x||(d.invalid?(0,i.jsxs)(a.A,{variant:"inherit",style:{overflowWrap:"break-word"},children:[G((0,n.Jt)(l.errors,t)?.message)||!0," "]}):void 0),label:r,placeholder:_,labelTooltip:m,labelTooltipProps:{style:{opacity:v?o.xN:void 0,pointerEvents:M?"none":void 0,...c?.style},...c},motif:A,passwordToggle:u,helperMessage:p,autoComplete:N,onKeyDown:T,contentBefore:R,contentAfter:f})})}},149450(e,t,r){r.d(t,{B:()=>o,b:()=>a});var i=r(241792),n=r(745454),s=r(260334);const a=i.Yj({message:(0,s.rn)("COMMON_VALIDATION_VALID_IPV4")}).refine(e=>!e||(0,n.isValidIpv4)(e),{message:(0,s.rn)("COMMON_VALIDATION_VALID_IPV4")}),o=i.Yj({message:(0,s.rn)("COMMON_VALIDATION_VALID_IPV4")}).refine(e=>(0,n.isValidIpv4)(e),{message:(0,s.rn)("COMMON_VALIDATION_VALID_IPV4")})},962946(e,t,r){r.d(t,{q:()=>I});var i=r(627625),n=r(260334),s=r(847849),a=r(241792),o=r(745454),d=r(810024),l=r(570866),_=r(635187);const m=a.Yj({message:(0,n.rn)("COMMON_VALIDATION_IPV4_SUBNET")}).refine(e=>{const t=e.split(_.jr),[r,i]=t;return 2===t.length&&r&&i&&l.zF.test(r)&&l.zF.test(i)&&(0,o.isValidIpv4)(r)&&(0,o.isValidIpv4)(i)&&(0,d.GQ)(r)<(0,d.GQ)(i)},{message:(0,n.rn)("COMMON_VALIDATION_IPV4_SUBNET")});var c=r(149450);const I=(0,i.S)([c.B,s.K,m],{message:(0,n.rn)("SETTINGS_ROUTING_NAT_FORM_IP_OR_SUBNET_OR_RANGE_VALIDATION")})},847849(e,t,r){r.d(t,{K:()=>o});var i=r(241792),n=r(810024),s=r(570866),a=r(260334);const o=i.Yj({message:(0,a.rn)("COMMON_VALIDATION_IPV4_SUBNET")}).regex(s.wK,{message:(0,a.rn)("COMMON_VALIDATION_IPV4_SUBNET")}).refine(n.N7,{message:(0,a.rn)("COMMON_VALIDATION_IPV4_SUBNET")})},199220(e,t,r){r.d(t,{Jh:()=>o,XK:()=>a,m9:()=>d});var i=r(241792),n=r(640708),s=r(260334);const a=i.Yj().ip({version:"v6",message:(0,s.rn)("SETTINGS_NETWORKS_IPV6_ADDRESS_INVALID")}).refine(e=>!e||!e.includes("%"),{message:(0,s.rn)("SETTINGS_NETWORKS_IPV6_ADDRESS_INVALID")}),o=i.KC([i.Yj().ip({version:"v6",message:(0,s.rn)("SETTINGS_NETWORKS_IPV6_ADDRESS_INVALID")}),i.eu("")]).optional().refine(e=>!e||!e.includes("%"),{message:(0,s.rn)("SETTINGS_NETWORKS_IPV6_ADDRESS_INVALID")}),d=a.refine(e=>!(0,n.m0)(e),{message:(0,s.rn)("SETTINGS_NETWORKS_IPV6_ADDRESS_IPV4_MAPPED_IPV6_INVALID")}).refine(e=>!(0,n.aN)(e),{message:(0,s.rn)("SETTINGS_NETWORKS_IPV6_ADDRESS_MULTICAST_INVALID")})},403263(e,t,r){r.d(t,{q:()=>a});var i=r(241792),n=r(640708),s=r(260334);const a=i.Yj({message:(0,s.rn)("COMMON_VALIDATION_IPV6_SUBNET")}).refine(n.In,{message:(0,s.rn)("COMMON_VALIDATION_IPV6_SUBNET")})},995304(e,t,r){r.d(t,{i:()=>o});var i=r(241792),n=r(635187),s=r(260334),a=r(756275);const o=i.Yj().refine(e=>{const t=e.split(n.jr);return 2===t.length&&(0,a.w)(t[0])&&(0,a.w)(t[1])&&Number(t[0])<Number(t[1])},{message:(0,s.rn)("SETTINGS_COMMON_SINGLE_PORT_RANGE_VALIDATION_REQUIRED")})},756275(e,t,r){r.d(t,{L:()=>o,w:()=>a});var i=r(241792),n=r(260334);const s=/^\d+$/,a=e=>{if(!s.test(e)||e.startsWith("0"))return!1;const t=Number.parseInt(e,10);return!Number.isNaN(t)&&Number.isInteger(t)&&t>=1&&t<=65535},o=i.Yj().refine(e=>a(e),{message:(0,n.rn)("SETTINGS_COMMON_SINGLE_PORT_VALIDATION_REQUIRED")})},627625(e,t,r){r.d(t,{S:()=>n});var i=r(241792);function n(e,{message:t}){return i.Ie(t=>i.KC(e).safeParse(t).success,{message:t})}}}]);