"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[24168],{147433(e,a,t){t.d(a,{A:()=>l});const l={PCAP:4194304,HWOFFLOAD_QOS_AND_SMART_QUEUE:2147483648,SUPPORT_FILE:65536}},323019(e,a,t){t.d(a,{A3:()=>_,Fw:()=>c,XH:()=>o,lp:()=>u});var l=t(222102),n=t(586566),d=t(291935),s=t(197571),i=t(147433),r=t(754924);const o=(0,l.Mz)(d.bL,s.a3,(e,a)=>e&&a.every(({wan_smartq_enabled:e})=>!e)),_=(0,l.Mz)(r.U$,e=>(0,n.$F)(e)),u=(0,l.Mz)(r.U$,e=>(0,n.$F)(e)&&(e.hardware_offload??!0)),c=(0,l.Mz)(r.U$,e=>(0,n.WM)(e.fw2_caps,i.A.HWOFFLOAD_QOS_AND_SMART_QUEUE))},277822(e,a,t){var l;t.d(a,{B:()=>l}),function(e){e.PORT_GROUP="port-group",e.ADDRESS_GROUP="address-group",e.IPV6_ADDRESS_GROUP="ipv6-address-group"}(l||(l={}))},547967(e,a,t){t.d(a,{AC:()=>A,D7:()=>m,Ie:()=>b,JL:()=>g,JX:()=>S,KY:()=>E,O2:()=>c,Op:()=>u,Rm:()=>h,e$:()=>T,t7:()=>O,yr:()=>p});var l=t(938984),n=t(814557),d=t(247816),s=t(409844),i=t(291508),r=t(61322),o=t(309130),_=t(100978);const u=(0,d.A)(_.A,(0,i.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: ${o.kc};
`,c=(0,d.A)(_.A,(0,i.A)("editMaxHeight","editFieldWrap"))`
  flex-direction: column;
  max-height: ${({editMaxHeight:e})=>`${e||300}px`};
  overflow-y: auto;
  overflow-x: hidden;
  gap: ${o.YC};

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

  table {
    td {
      max-width: 170px;

      span {
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
`,m=(0,d.A)(l.A)`
  margin-right: ${o.YC};
`,E=s.AH`
  :first-of-type {
    padding: 0 ${o.fS} 0 0px;
  }
`,h="drag-and-drop-table-row-placeholder",O=(0,d.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: ${o.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: ${o.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 .${h} {
    display: flex;
  }
`,g=s.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: ${o.kc} !important;
  }
`,T=s.AH`
  /* Override the padding-right of the first column to align with manage + drop modes. */
  > th:first-child {
    padding-right: ${o.kc} !important;
  }
  > th:first-child:has(> label) {
    padding-right: 1px !important;
    width: 36px;
  }
`,p=s.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;
`,S=s.AH`
  tbody {
    display: flex;
    flex-direction: column;
  }
`;function b(e,a){return s.AH`
    width: ${a.width?`${a.width}px`:"auto"};
    min-width: ${a.minWidth?`${a.minWidth}px`:"0px"};
    flex: ${a.growthFactor||0} !important;
    padding-left: ${o.kc} !important;
    padding-right: ${o.kc} !important;
  `}},256468(e,a,t){var l;t.d(a,{EE:()=>d,Uh:()=>l,Vf:()=>n}),function(e){e.SINGLE="single",e.PLURAL="plural"}(l||(l={}));const n="editActive",d=20},992949(e,a,t){t.d(a,{A:()=>o});var l=t(274934),n=t(602086),d=t(117948),s=t(120197),i=t(880080),r=t(470070);const o=({fieldName:e,disabled:a})=>{const{formatMessage:t}=(0,r.tz)(),o=(0,n.useMemo)(()=>(0,d.A)(i._O.map(e=>({label:t({id:i.QK[e]}),value:e})),({label:e})=>e),[t]);return(0,l.jsx)(s.A,{type:"picklist",options:o,name:e,truncateLabels:!0,triggerButtonText:"COMMON_SELECT",isWindowed:!0,disabled:a,isFullWidth:!0})}},441778(e,a,t){t.d(a,{A:()=>o});var l=t(274934),n=t(602086),d=t(117948),s=t(609553),i=t(16944),r=t(120197);const o=({fieldName:e,disabled:a})=>{const t=(0,n.useMemo)(()=>(0,d.A)(s.hS.map(([e,{name:a,iconFileName:t}])=>({label:a,value:e,image:(0,l.jsx)(i.A,{iconFileName:t})})),e=>e.label),[]);return(0,l.jsx)(r.A,{type:"picklist",options:t,name:e,truncateLabels:!0,maxSelections:s.KW,triggerButtonText:"COMMON_SELECT",isWindowed:!0,disabled:a,isFullWidth:!0})}},697635(e,a,t){t.d(a,{DX:()=>d,Kg:()=>s,Lr:()=>i,p0:()=>o,z3:()=>r});var l=t(139847),n=t(875704);const d="YYYY-MM-DD",s=76,i={[l.Td.ALWAYS]:"COMMON_ALWAYS",[l.Td.EVERY_DAY]:"COMMON_INTERVAL_DAILY",[l.Td.EVERY_WEEK]:"COMMON_INTERVAL_WEEKLY",[l.Td.ONE_TIME_ONLY]:"COMMON_INTERVAL_ONE_TIME",[l.Td.CUSTOM]:"COMMON_CUSTOM"},r=[l.Td.ALWAYS,l.Td.EVERY_DAY,l.Td.EVERY_WEEK,l.Td.ONE_TIME_ONLY,l.Td.CUSTOM],o={[n.g.MON]:"COMMON_DAY_SHORTER_MONDAY",[n.g.TUE]:"COMMON_DAY_SHORTER_TUESDAY",[n.g.WED]:"COMMON_DAY_SHORTER_WEDNESDAY",[n.g.THU]:"COMMON_DAY_SHORTER_THURSDAY",[n.g.FRI]:"COMMON_DAY_SHORTER_FRIDAY",[n.g.SAT]:"COMMON_DAY_SHORTER_SATURDAY",[n.g.SUN]:"COMMON_DAY_SHORTER_SUNDAY"}},72019(e,a,t){t.d(a,{e:()=>r});var l=t(199554),n=t.n(l),d=t(139847),s=t(697635);const i=(e,a=new Date)=>{try{return e?n()(e,s.DX,a):a}catch{return a}},r=(e,a,t)=>{const l=e?.time_range_start?.split(":")??["09","00"],n=e?.time_range_end?.split(":")??["12","00"];return{schedule_mode:e?.mode||a?.mode||d.Td.ALWAYS,schedule_repeat_on_days:e?.repeat_on_days||a?.repeat_on_days||[],schedule_day_start:{hour:Number(l[0])||0,min:Number(l[1])||0},schedule_day_end:{hour:Number(n[0])||0,min:Number(n[1])||0},schedule_weekly_all_day:!!(e?.time_all_day??a?.time_all_day),schedule_date:i(e?.date,t),schedule_date_range_start:i(e?.date_start,t),schedule_date_range_end:i(e?.date_end,t)}}},69477(e,a,t){t.d(a,{q:()=>r});var l=t(402868),n=t.n(l),d=t(139847),s=t(697635);const i=e=>e?`${(e.hour||0).toString().padStart(2,"0")}:${(e.min||0).toString().padStart(2,"0")}`:void 0,r=e=>{switch(e.schedule_mode){case d.Td.EVERY_DAY:return{mode:d.Td.EVERY_DAY,time_range_start:i(e.schedule_day_start),time_range_end:i(e.schedule_day_end)};case d.Td.EVERY_WEEK:return{mode:d.Td.EVERY_WEEK,repeat_on_days:e.schedule_repeat_on_days,time_all_day:e.schedule_weekly_all_day,time_range_start:e.schedule_weekly_all_day?void 0:i(e.schedule_day_start),time_range_end:e.schedule_weekly_all_day?void 0:i(e.schedule_day_end)};case d.Td.ONE_TIME_ONLY:return{mode:d.Td.ONE_TIME_ONLY,date:e.schedule_date?n()(e.schedule_date,s.DX):void 0,time_range_start:i(e.schedule_day_start),time_range_end:i(e.schedule_day_end)};case d.Td.CUSTOM:return{mode:d.Td.CUSTOM,date_start:e.schedule_date_range_start?n()(e.schedule_date_range_start,s.DX):void 0,date_end:e.schedule_date_range_end?n()(e.schedule_date_range_end,s.DX):void 0,time_all_day:e.schedule_weekly_all_day,repeat_on_days:e.schedule_repeat_on_days,time_range_start:e.schedule_weekly_all_day?void 0:i(e.schedule_day_start),time_range_end:e.schedule_weekly_all_day?void 0:i(e.schedule_day_end)};default:return{mode:d.Td.ALWAYS}}}},735401(e,a,t){t.d(a,{$:()=>u});var l=t(274934),n=t(199554),d=t.n(n),s=t(950804),i=t(583092),r=t(470070),o=t(139847);const _=s.A.date().test("isLessThanMax",(0,l.jsx)(r.sA,{id:"SETTINGS_COMMON_DATE_VALIDATION"}),e=>!e||d()(e).getTime()<=d()(i.R).getTime()),u=e=>({schedule_repeat_on_days:s.A.array().when("schedule_mode",{is:e=>e===o.Td.EVERY_WEEK||e===o.Td.CUSTOM,then:s.A.array().required((0,l.jsx)(r.sA,{id:"SETTINGS_ROUTING_QOS_SCHEDULE_SELECT_DAY_VALIDATION"})).min(1,(0,l.jsx)(r.sA,{id:"SETTINGS_ROUTING_QOS_SCHEDULE_SELECT_DAY_VALIDATION"}))}),schedule_date:s.A.date().when("schedule_mode",{is:a=>a===o.Td.ONE_TIME_ONLY&&!e,then:_}),schedule_date_range_start:s.A.date().when("schedule_mode",{is:a=>a===o.Td.CUSTOM&&!e,then:_}),schedule_date_range_end:s.A.date().when("schedule_mode",{is:a=>a===o.Td.CUSTOM&&!e,then:_})})},9306(e,a,t){t.d(a,{A:()=>S});var l=t(274934),n=t(602086),d=t(977872),s=t(117948),i=t(843871),r=t(125799),o=t(864217),_=t(599110),u=t(318087),c=t(833466),A=t(309130),m=t(859513),E=t(120197),h=t(100978),O=t(470070),g=t(694169),T=t(79568);const p=e=>(0,l.jsx)(r.A,{description:e.option.tooltipDescription,portal:!0,position:"left",children:(0,l.jsx)(o.p,{...e})}),S=({types:e,name:a,disabled:t,getDisabledReason:r})=>{const{setFieldValue:o,touched:S,errors:b,submitCount:I}=(0,i.j7)(),M=(0,d.d4)(g.O9),[v,N]=(0,n.useState)(!1),C=(0,n.useMemo)(()=>(0,s.A)(M.filter(({group_type:a})=>e.includes(a)),({name:e})=>e,"asc").map(({_id:e,name:a,group_type:t})=>{const l=r?.({group_type:t});return{value:e,label:a,disabled:!!l,tooltipDescription:l}}),[r,M,e]),R=(0,u.t$)(a,b,S,I);return(0,l.jsxs)(h.A,{flexDirection:"column",width:"100%",children:[(0,l.jsxs)(h.A,{gap:A.kc,alignItems:"flex-start",children:[C.length?(0,l.jsx)(h.A,{flexDirection:"column",width:"100%",flex:1,children:(0,l.jsx)(E.A,{type:"dropdown",variant:"secondary",name:a,renderOption:p,searchable:!0,full:!0,options:C})}):null,(0,l.jsx)(h.A,{height:c.b,children:(0,l.jsx)(_.A,{type:"button",variant:"inline",size:"medium",disabled:t,onClick:()=>{N(!0)},children:(0,l.jsx)(O.sA,{id:C.length?"COMMON_NEW":"COMMON_CREATE_NEW"})})})]}),R?(0,l.jsx)(m.A,{visible:!t,children:R}):null,v?(0,l.jsx)(T.A,{hideModal:()=>{N(!1)},handleGroupField:t=>{t?.group_type&&e.includes(t.group_type)&&o(a,t._id)},types:e}):null]})}},713942(e,a,t){t.d(a,{A:()=>h,m:()=>m});var l=t(274934),n=t(602086),d=t(843871),s=t(409844),i=t(318087),r=t(309130),o=t(120197),_=t(100978),u=t(470070);const c="custom",A=[{label:"COMMON_CUSTOM",value:c},{label:"BGP",value:"179"},{label:"DHCP Client",value:"68"},{label:"DHCP Server",value:"67"},{label:"DHCPv6 Client",value:"546"},{label:"DHCPv6 Server",value:"547"},{label:"DNS",value:"53"},{label:"DNS-TLS",value:"853"},{label:"FTP",value:"21"},{label:"FTPS",value:"990"},{label:"H.323",value:"1720"},{label:"HTTP",value:"80"},{label:"HTTPS",value:"443"},{label:"IKE",value:"500"},{label:"IMAP",value:"143"},{label:"IMAPS",value:"993"},{label:"IPMI",value:"623"},{label:"IRC",value:"194"},{label:"iSCSI",value:"3260"},{label:"Kerberos",value:"88"},{label:"L2TP",value:"1701"},{label:"LDAP",value:"389"},{label:"LDAPS",value:"636"},{label:"LDP",value:"646"},{label:"MSSQL",value:"1433"},{label:"MySQL",value:"3306"},{label:"NAT-T",value:"4500"},{label:"NCP",value:"524"},{label:"NetBIOS",value:"137"},{label:"NFS",value:"2049"},{label:"NNTP",value:"119"},{label:"NTP",value:"123"},{label:"OpenVPN",value:"1194"},{label:"POP3",value:"110"},{label:"POP3S",value:"995"},{label:"PostgreSQL",value:"5432"},{label:"PPTP",value:"1723"},{label:"RADIUS Accounting",value:"1813"},{label:"RADIUS Authentication",value:"1812"},{label:"RDP",value:"3389"},{label:"RIP",value:"520"},{label:"RIPng",value:"521"},{label:"RPC",value:"135"},{label:"Rsync",value:"873"},{label:"RTSP",value:"554"},{label:"SFTP",value:"115"},{label:"SIP",value:"5060"},{label:"SIP-TLS",value:"5061"},{label:"SMB",value:"445"},{label:"SMTP",value:"25"},{label:"SMTPS",value:"465"},{label:"SNMP",value:"161"},{label:"SNMP Trap",value:"162"},{label:"SSH",value:"22"},{label:"STUN",value:"3478"},{label:"Syslog",value:"514"},{label:"Syslog-TLS",value:"6514"},{label:"TACACS",value:"49"},{label:"Telnet",value:"23"},{label:"TFTP",value:"69"},{label:"VNC",value:"5900"},{label:"WHOIS",value:"43"},{label:"WINS",value:"42"},{label:"WireGuard",value:"51820"},{label:"XDMCP",value:"177"}],m=e=>A.some(a=>a.value===e)&&e||c,E=s.AH`
  input + div {
    display: none;
  }
`,h=({serviceFieldName:e,customPortFieldName:a})=>{const{formatMessage:t}=(0,u.tz)(),{values:s,setFieldValue:m,errors:h,touched:O,submitCount:g}=(0,d.j7)(),T=(0,n.useMemo)(()=>A.map(e=>({...e,label:t({id:e.label,defaultMessage:e.label},{}),additionalInfo:e.value&&e.value!==c?e.value:void 0})),[t]);return(0,l.jsxs)(_.A,{gap:r.kc,width:"100%",children:[(0,l.jsx)(_.A,{flex:1,flexDirection:"column",children:(0,l.jsx)(o.A,{className:E,type:"dropdown",variant:"secondary",name:e,options:T,label:"COMMON_SERVICE",full:!0,searchable:!0,searchableProps:{keys:["label","value"]},translateLabel:!0,validated:!0,onChange:(t,l)=>{m(e,l,l!==c),l===c?m(a,"",!1):m(a,l,!0)},invalid:(0,i.If)(a,h,O,g),validationMessage:(0,i.t$)(a,h,O,g)})}),(0,l.jsx)(_.A,{width:104,children:(0,l.jsx)(o.A,{full:!0,type:"text",variant:"secondary",name:a,label:"COMMON_PORT",placeholder:"COMMON_PLACEHOLDER_EG",placeholderValues:{value:"1-10,11"},disabled:(0,d.O6)(s,e)!==c,invalid:(0,i.If)(a,h,O,g),validationMessage:null})})]})}},593091(e,a,t){t.d(a,{A:()=>d});var l=t(843871),n=t(531984);const d=()=>{const{dirty:e}=(0,l.j7)();return(0,n.w)(e),null}},531984(e,a,t){t.d(a,{w:()=>s});var l=t(602086),n=t(977872),d=t(205521);const s=e=>{const a=(0,n.wA)();(0,l.useEffect)(()=>{a((0,d.SQ)(e))},[a,e])}},535322(e,a,t){t.d(a,{A:()=>m,I:()=>l});var l,n=t(274934),d=t(814557),s=t(158885),i=t(247816),r=t(565527),o=t(309130),_=t(100978),u=t(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(l||(l={}));const c=(0,i.A)(_.A,(0,u.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:a,theme:{themeName:t}})=>e||d.Ay[t===r.S.DARK?`desktop-color-neutral-${a?"00":"01"}-${r.S.DARK}`:`desktop-color-neutral-${a?"01":"00"}-${r.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:a})=>a||(e?`0 ${o.Ln}`:o.Ln)};
  margin-bottom: ${({marginBottom:e})=>e||o.Ln};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>d.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,A=(0,i.A)(s.A,(0,u.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:a,theme:{themeName:t}})=>e||d.Ay[t===r.S.DARK?`desktop-color-neutral-${a?"00":"01"}-${r.S.DARK}`:`desktop-color-neutral-${a?"01":"00"}-${r.S.LIGHT}`]};
  margin-bottom: ${({theme:e,marginBottom:a})=>a||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:a}})=>e||d.Ay[a===r.S.DARK?`desktop-color-neutral-01-${r.S.DARK}`:`desktop-color-neutral-00-${r.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${o.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${o.Ln} ${o.Ln};
      }
    }
  }
`,m=({type:e,marginBottom:a,margin:t,padding:d,flex:s,width:i,nested:r,...o})=>"items"in o?(0,n.jsx)(A,{marginBottom:a,margin:t,padding:d,flex:s,nested:r,...o}):(0,n.jsx)(c,{nested:r,width:i,marginBottom:a,margin:t,padding:d,flex:s,isButtonList:e===l.BUTTON_LIST,...o,children:o.children})},880080(e,a,t){t.d(a,{QK:()=>c,_O:()=>u,f9:()=>A,qj:()=>_});var l=t(860209),n=t(369670),d=t(430624),s=t(615428),i=t(76392),r=t(480010),o=t(551173);const _=20,u=[24,8,0,1,6,3,4,5,13,11,7,17],c={0:"COMMON_DPI_CATEGORIES_INSTANT_MESSAGING",1:"COMMON_DPI_CATEGORIES_P2P",3:"COMMON_DPI_CATEGORIES_FILE_TRANSFER",4:"COMMON_DPI_CATEGORIES_STREAMING_MEDIA",5:"COMMON_DPI_CATEGORIES_MAIL_AND_COLLABORATION",6:"COMMON_DPI_CATEGORIES_VOICE_OVER_IP",7:"COMMON_DPI_CATEGORIES_DATABASE",8:"COMMON_DPI_CATEGORIES_GAMES",9:"COMMON_DPI_CATEGORIES_NETWORK_MANAGEMENT",10:"COMMON_DPI_CATEGORIES_REMOTE_ACCESS_TERMINALS",11:"COMMON_DPI_CATEGORIES_BYPASS_PROXIES_AND_TUNNELS",12:"COMMON_DPI_CATEGORIES_STOCK_MARKET",13:"COMMON_DPI_CATEGORIES_WEB",14:"COMMON_DPI_CATEGORIES_SECURITY_UPDATE",15:"COMMON_DPI_CATEGORIES_WEB_IM",17:"COMMON_DPI_CATEGORIES_BUSINESS",23:"COMMON_DPI_CATEGORIES_PRIVATE_PROTOCOL",24:"COMMON_DPI_CATEGORIES_SOCIAL_NETWORK",255:"COMMON_DPI_CATEGORIES_UNKNOWN"},A=(e,a=!1)=>[{label:"COMMON_APP",value:o.Kl.APP,image:s.A},{label:"COMMON_APP_GROUP",value:o.Kl.APP_CATEGORY,image:r.A},{label:"COMMON_DOMAIN_NAME",value:o.Kl.DOMAIN,image:d.A},{label:"COMMON_IP_ADDRESS",value:o.Kl.IP,image:n.A},...e?[{label:"COMMON_REGION",value:o.Kl.REGION,image:i.A}]:[],{label:"COMMON_INTERNET",value:o.Kl.INTERNET,image:d.A},...a?[]:[{label:"COMMON_LOCAL_NETWORK",value:o.Kl.LOCAL_NETWORK,image:l.A}]]},796091(e,a,t){t.d(a,{A:()=>i});var l=t(274934),n=t(833466),d=t(309130),s=t(100978);const i=e=>(0,l.jsx)(s.A,{paddingTop:d.YC,paddingBottom:d.YC,gap:d.Ln,rowGap:d.YC,flexWrap:"wrap",minHeight:n.b,alignItems:"center",...e})},250266(e,a,t){t.d(a,{A:()=>_});var l=t(274934),n=t(602086),d=t(696264),s=t(409844),i=t(521376),r=t(309130),o=t(470070);const _=({children:e=null,title:a,titleValues:t,message:_,messageValues:u,handleConfirm:c=()=>null,handleClose:A=()=>null,handleCancel:m,isOpen:E,buttonVariant:h="primary",cancelButtonVariant:O="tertiary",cancelButtonMessage:g="COMMON_ACTION_CANCEL",buttonMessage:T="COMMON_ACTION_CONFIRM",buttonDisabled:p=!1,position:S="top",offset:b,showHeaderClose:I=!1,contentClassName:M="",body:v,titleBody:N,className:C,rootClose:R=!1,footerActions:x})=>{const D=(0,n.useCallback)(e=>{E&&(e.stopPropagation(),e.key===i.U.ENTER?c():e.key===i.U.ESCAPE&&A(!1))},[E,c,A]);(0,n.useEffect)(()=>(window.addEventListener("keydown",D,!0),()=>{window.removeEventListener("keydown",D,!0)}),[D]);const f=(0,n.useCallback)(()=>{A(!1),m?.()},[A,m]),L=(0,n.useCallback)(()=>{A(!1),c()},[A,c]),P=(0,n.useMemo)(()=>[{text:(0,l.jsx)(o.sA,{id:g}),variant:O,onClick:f},{text:(0,l.jsx)(o.sA,{id:T}),disabled:p,variant:h,onClick:L}],[T,h,g,O,f,L,p]),w=(0,n.useCallback)(()=>{A(!1)},[A]),y=s.AH`
    ${a?"":`margin-top: ${r.xO}`}
  `;return(0,l.jsx)(d.A,{title:a?(0,l.jsx)(o.sA,{id:a,values:t}):N||null,..._?{body:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.sA,{id:_,values:u}),v]})}:{body:v},position:S,portal:!0,offset:b,actions:x||P,showHeaderClose:I,contentClassName:s.AH`
        ${y}
        ${M}
      `,onRequestClose:w,isOpen:E,allowOverflow:!0,rootClose:R,className:C,children:e})}},199742(e,a,t){t.d(a,{A:()=>o});var l=t(274934),n=t(602086),d=t(558948),s=t(309130),i=t(100978),r=t(535322);const o=({actions:e})=>(0,l.jsx)(r.A,{marginBottom:"none",children:(0,l.jsx)(i.A,{flexDirection:"column",gap:s.kc,width:"100%",children:e.filter(Boolean).map((e,a,t)=>(0,l.jsxs)(n.Fragment,{children:[e,a<t.length-1?(0,l.jsx)(i.A,{width:"100%",flexDirection:"column",paddingTop:s.YC,paddingBottom:s.YC,children:(0,l.jsx)(d.A,{orientation:"horizontal"})}):null]},[a,e.toString()].join()))})})},963428(e,a,t){t.d(a,{A:()=>_});var l=t(274934),n=t(977872),d=t(602086),s=t(954702),i=t(669439),r=t(897166),o=t(100978);const _=(0,d.forwardRef)(({allowReadOnly:e,disabledReason:a,...t},d)=>{const _=(0,n.d4)(r.EL)&&!e;return(0,l.jsx)(o.A,{alignItems:"center",children:(0,l.jsx)(i.A,{description:a,placement:"left",children:(0,l.jsx)(s.A,{fontSize:"medium",type:"button",...t,isDisabled:_||t.isDisabled||!!a,ref:d})})})})},859513(e,a,t){t.d(a,{A:()=>_});var l=t(274934),n=t(814557),d=t(247816),s=t(409844),i=t(470070),r=t(291508);const o=(0,d.A)("div",(0,r.A)("align"))`
  ${({align:e})=>e&&`text-align: ${e}`};
  color: ${({theme:{themeName:e}})=>n.Ay[`desktop-color-red-06-${e}`]};
  font-size: ${({theme:{fontSizes:e}})=>e[0]}px;
  line-height: 20px;
`,_=({align:e="left",children:a=null,className:t=null,translation:n=null,visible:d=!1})=>d?(0,l.jsxs)(o,{align:e,className:(0,s.cx)(t),children:[n?(0,l.jsx)(i.sA,{id:n}):null,a]}):null},384783(e,a,t){t.d(a,{A:()=>s});var l=t(274934),n=t(832162),d=t(826600);const s=({children:e=null,hideModal:a,onRequestClose:t,portalSelector:s=d.J,forwardedRef:i=null,...r})=>(0,l.jsx)(n.A,{isOpen:!0,shouldCloseOnEsc:!0,onRequestClose:t||a,parentSelector:s,ref:i,...r,children:e})},826600(e,a,t){t.d(a,{J:()=>l,g:()=>n});const l=()=>document.getElementById("modal-container"),n=()=>document.getElementById("modal-settings-container")},914049(e,a,t){t.d(a,{A:()=>_});var l=t(274934),n=t(977872),d=t(100978),s=t(470070),i=t(385927),r=t(570801),o=t(277660);const _=()=>{const e=(0,n.d4)(r.jc);return(0,l.jsxs)(d.A,{flexDirection:"column",width:"100%",children:[(0,l.jsx)(o.A,{label:(0,l.jsx)(s.sA,{id:"COMMON_SCHEDULE"}),tooltip:(0,l.jsx)(s.sA,{id:"SETTINGS_SECURITY_SCHEDULE_DESCRIPTION"})}),(0,l.jsx)(i.A,{stackTimeInputs:!e})]})}},277130(e,a,t){t.d(a,{A:()=>d});var l=t(274934),n=t(120197);const d=({disabled:e,name:a})=>(0,l.jsx)(n.A,{full:!0,variant:"secondary",name:a,disabled:e,placeholder:"SETTINGS_SECURITY_ZONE_IPV6_INTERFACE_ID_PLACEHOLDER"})},420174(e,a,t){t.d(a,{H5:()=>s,ZS:()=>i});var l=t(274934),n=t(602086);const d=(0,n.createContext)(void 0),s=()=>{const e=(0,n.useContext)(d);return void 0===e?{sharedName:"",setSharedName:()=>{}}:e},i=({children:e})=>{const[a,t]=(0,n.useState)(""),s=(0,n.useMemo)(()=>({sharedName:a,setSharedName:t}),[a]);return(0,l.jsx)(d.Provider,{value:s,children:e})}},16944(e,a,t){t.d(a,{A:()=>c});var l=t(274934),n=t(602086),d=t(977872),s=t(890932),i=t(726831);const r={};var o=t(247816),_=t(291508);const u=(0,o.A)("img",(0,_.A)("dimension"))`
  ${({dimension:e=22})=>`\n    height: ${e}px;\n    width: ${e}px;\n  `}
`,c=(0,n.memo)(({iconFileName:e,dimension:a,style:t={}})=>{const n=(0,d.d4)(s.p);return(0,l.jsx)(u,{src:r[e]||encodeURI(`${i.A.dpiPath}${e}`),dimension:a,onLoad:({target:a})=>{r[e]=a.src},onError:({currentTarget:e})=>{e.src=`${n}/dpiFallback.svg`},style:t})})},625796(e,a,t){t.d(a,{Ay:()=>r,PN:()=>s,xn:()=>i});var l=t(274934),n=t(86635),d=t(998948);const s=15,i=150,r=d.A.map(({countryCode:e,countryName:a})=>({image:()=>(0,l.jsx)(n.A,{countryCode:e,width:"auto",height:"100%",style:{borderRadius:"50%",objectFit:"cover",aspectRatio:"1 / 1"}}),label:a,value:e}))},583092(e,a,t){t.d(a,{R:()=>l});const l=new Date("2038-01-18T23:59:59.999Z")},521376(e,a,t){var l;t.d(a,{U:()=>l}),function(e){e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_DOWN="ArrowDown",e.ARROW_UP="ArrowUp",e.ENTER="Enter",e.ESCAPE="Escape",e.BACKSPACE="Backspace",e.DELETE="Delete",e.TAB="Tab"}(l||(l={}))},61322(e,a,t){t.d(a,{I:()=>l});const l={HEADER_HEIGHT:32,ROW_HEIGHT:32,EDIT_FIELD_HEIGHT:36,getHeight(e,a,t,l){return Math.min((l||this.ROW_HEIGHT)*e+(t??this.HEADER_HEIGHT),(l||this.ROW_HEIGHT)*a+(t??this.HEADER_HEIGHT))},getEditContainerHeight(e,a,t){return Math.min((t||this.EDIT_FIELD_HEIGHT)*e,(t||this.EDIT_FIELD_HEIGHT)*a)}}},875704(e,a,t){var l;t.d(a,{g:()=>l}),function(e){e.MON="mon",e.TUE="tue",e.WED="wed",e.THU="thu",e.FRI="fri",e.SAT="sat",e.SUN="sun"}(l||(l={}))},149450(e,a,t){t.d(a,{B:()=>i,b:()=>s});var l=t(241792),n=t(745454),d=t(260334);const s=l.Yj({message:(0,d.rn)("COMMON_VALIDATION_VALID_IPV4")}).refine(e=>!e||(0,n.isValidIpv4)(e),{message:(0,d.rn)("COMMON_VALIDATION_VALID_IPV4")}),i=l.Yj({message:(0,d.rn)("COMMON_VALIDATION_VALID_IPV4")}).refine(e=>(0,n.isValidIpv4)(e),{message:(0,d.rn)("COMMON_VALIDATION_VALID_IPV4")})},509927(e,a,t){t.d(a,{V:()=>s});var l=t(602086),n=t(603606);const d=e=>{const a=(0,l.useRef)(e);return(0,l.useEffect)(()=>{a.current=e},[e]),(0,l.useCallback)((...e)=>a.current(...e),[])};function s(e,a){const t=(0,l.useRef)([]),[,s]=(0,l.useState)(0),[i,r]=(0,l.useState)(null);(0,l.useEffect)(()=>{const e=setInterval(()=>{t.current.length&&a?.estimatedDurationMs&&s(e=>e+1)},1e3);return()=>clearInterval(e)},[a?.estimatedDurationMs]);const o=a?.dedupe??!1,_=d(a?.onSuccess||(()=>{})),u=d(a?.onError||(()=>{})),c=(0,l.useCallback)((...l)=>{if(o&&t.current.length)return Promise.reject();const d=(async()=>e(...l))();return t.current.push({promise:d,startedAt:Date.now()}),s(e=>e+1),d.then(e=>(_?.(e),r(e),e)).catch(async e=>{if(a?.delayOnErrorMs&&await(0,n.u)(a.delayOnErrorMs),r(null),!u)throw e;u(e)}).finally(async()=>{t.current=t.current.filter(e=>e.promise!==d),s(e=>e+1)})},[e,o,u,_,a?.delayOnErrorMs]),A=t.current.at(-1),m=A&&a?.estimatedDurationMs?Math.min((Date.now()-A.startedAt)/a.estimatedDurationMs,.9):void 0;return{execute:c,isLoading:!!t.current.length,lastData:i,estimatedProgress:m}}},871808(e,a,t){t.d(a,{A:()=>s});var l=t(602086),n=t(977872),d=t(167933);const s=e=>(0,n.d4)((0,l.useMemo)(()=>(0,d.jN)(e),[e]))},292027(e,a,t){t.d(a,{A:()=>h});var l=t(274934),n=t(199742),d=t(977872),s=t(159469),i=t(464920),r=t(509927),o=t(963428),_=t(700444),u=t(470070);const c=({onResume:e,disabledReason:a})=>{const t=(0,d.wA)(),n=(0,r.V)(()=>e(),{onError:e=>{const a=(0,i.F)(e)?e:void 0;return t((0,_.ox)({icon:s.C.danger,message:"SETTINGS_POLICY_RESUME_FAILURE",values:{count:1},errorMessage:a?.msg,errorValues:a}))}});return(0,l.jsx)(o.A,{onPress:n.execute,isDisabled:n.isLoading,disabledReason:a,children:(0,l.jsx)(u.sA,{id:"COMMON_ACTION_RESUME"})})};var A=t(404056),m=t(146215);const E=({name:e,onPause:a,disabledReason:t})=>{const n=(0,d.wA)(),c=(0,r.V)(()=>a(),{onError:e=>{const a=(0,i.F)(e)?e:void 0;return n((0,_.ox)({icon:s.C.danger,message:"SETTINGS_POLICY_PAUSE_FAILURE",values:{count:1},errorMessage:a?.msg,errorValues:a}))}});return(0,l.jsx)(m.A,{trigger:(0,l.jsx)(o.A,{isDisabled:c.isLoading,disabledReason:t,children:(0,l.jsx)(u.sA,{id:"COMMON_ACTION_PAUSE"})}),confirmButtonVariant:"emphasis",title:(0,l.jsx)(u.sA,{id:"SETTINGS_SECURITY_PAUSE_POLICY_TITLE",values:{count:1}}),message:(0,l.jsx)(u.sA,{id:"SETTINGS_SECURITY_PAUSE_FIREWALL_POLICY_MESSAGE_SINGLE",values:{name:e}}),onConfirm:()=>c.execute()})},h=({enabled:e,name:a,onPause:t,pauseDisabledReason:d,onResume:s,resumeDisabledReason:i,onRemove:r,removeDisabledReason:o,removeAdditionalMessage:_})=>(0,l.jsx)(n.A,{actions:[e?(0,l.jsx)(E,{name:a,onPause:t,disabledReason:d}):(0,l.jsx)(c,{onResume:s,disabledReason:i}),(0,l.jsx)(A.A,{name:a,onRemove:r,disabledReason:o,additionalMessage:_})]})},404056(e,a,t){t.d(a,{A:()=>m});var l=t(274934),n=t(977872),d=t(159469),s=t(464920),i=t(509927),r=t(963428),o=t(146215),_=t(700444),u=t(470070),c=t(100978),A=t(309130);const m=({onRemove:e,name:a,disabledReason:t,additionalMessage:m})=>{const E=(0,n.wA)(),h=(0,i.V)(()=>e(),{onError:e=>{const a=(0,s.F)(e)?e:void 0;return E((0,_.ox)({icon:d.C.danger,message:"SETTINGS_POLICY_DELETE_FAILURE",values:{count:1},errorMessage:a?.msg,errorValues:a}))}});return(0,l.jsx)(o.A,{trigger:(0,l.jsx)(r.A,{variant:"destructive",disabledReason:t,children:(0,l.jsx)(u.sA,{id:"COMMON_ACTION_REMOVE"})}),title:(0,l.jsx)(u.sA,{id:"SETTINGS_SECURITY_REMOVE_POLICY_TITLE",values:{count:1}}),message:m?(0,l.jsxs)(c.A,{flexDirection:"column",gap:A.kc,children:[(0,l.jsx)(u.sA,{id:"SETTINGS_SECURITY_REMOVE_FIREWALL_POLICY_SINGLE_MESSAGE",values:{name:a}}),m]}):(0,l.jsx)(u.sA,{id:"SETTINGS_SECURITY_REMOVE_FIREWALL_POLICY_SINGLE_MESSAGE",values:{name:a}}),onConfirm:()=>h.execute()})}},603606(e,a,t){t.d(a,{u:()=>l});const l=e=>new Promise(a=>{setTimeout(a,e)})}}]);