1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2790],{12790:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var a=n(95155),l=n(37217),i=n(48740),r=n(18144),o=n(93378),s=n(15895),d=n(76417),c=n(53564),p=n(18724),m=n(59913),u=n(6107),x=n(18830),h=n(29504);let f=({searchCondition:e,setSearchCondition:t,dataUpdated:n})=>{let{data:l,mutate:i}=(0,h.t)(x.A.convertSearchConditionForApi({...e,systemFilter:{}}),e.systemFilter.productType,e.systemFilter.productVendor,e.systemFilter.productName),r=l.server_count;return(0,a.jsx)(u.A,{dataCount:r,dataUpdated:n,mutateData:i,pageSetting:e.pageSetting,setPageSetting:n=>t({...e,pageSetting:n})})};function g(e){return(0,a.jsx)(i.A,{type:"tablePager",children:(0,a.jsx)(f,{...e})})}var A=n(60644);let b=(0,n(56051).$)(()=>n.e(9442).then(n.bind(n,79442)),{type:"tableBody",count:5});function y({productType:e,productVendor:t,productName:n}){let l=(0,A.ii)("products.servers.table.column"),i=[{field:"announce",headerName:l("announce.title"),apiFieldName:"is_stale",sortable:!0,fixedWidth:"1%",align:"center",renderCell:({data:e})=>(0,a.jsx)(m.A,{announce:e.announce,scopedT:l})},{field:"productRegistrationDate",headerName:l("productRegistrationDate.title"),apiFieldName:"product_registration_date",sortable:!0,type:"dateTime"},{field:"productVersion",headerName:l("productVersion.title"),apiFieldName:"product_version",sortable:!0,filterable:!0,keyColumn:!0},{field:"server",headerName:l("server.title"),sortable:!0,filterable:!0,renderCell:({data:e})=>(0,a.jsx)(d.A,{server:e.server,domain:e.domain,serverPunyCode:e.serverPunyCode,ipAddresses:e.ipAddresses}),keyColumn:!0},{field:"tag",headerName:l("tag.title"),apiFieldName:"tag_list",filterable:!0,renderFilterDialog:({field:e,apiFieldName:t,open:n,setOpen:l,searchCondition:i,setSearchCondition:r})=>(0,a.jsx)(c.A,{open:n,setOpen:l,tags:i.filter?.[e]?.value,setTags:x.A.createSearchFilterChangeHandler(i,r,e,t)}),renderCell:({data:e})=>(0,a.jsx)(p.A,{server:e.server})}];return(0,a.jsx)(s.A,{columns:i,TableBodyComponentType:b,PagerComponentType:g,noToolbar:!0,systemFilter:{productType:e,productVendor:t,productName:n},defaultOrder:{productRegistrationDate:{fieldName:"product_registration_date",direction:"desc"}},defaultPageSize:5})}var j=n(92251);let C=({searchCondition:e,...t})=>{let{data:n,mutate:i}=(0,h.Q)(x.A.convertSearchConditionForApi(e)),s=(0,A.ii)("products.table"),d=n.product.map(e=>({type:e.product_type,vendor:e.product_vendor,name:e.product_name}));return(0,a.jsx)(o.A,{data:d,mutateData:i,noDataMessage:s("noData"),collasible:!0,renderCollasible:e=>(0,a.jsx)(l.A,{display:"flex",children:(0,a.jsx)(r.default,{i18nScope:"products.servers",StartIconComponentType:j.A.Asset,variant:"body2",children:(0,a.jsx)(y,{productType:e.type,productVendor:e.vendor,productName:e.name})})}),collasibleTooltip:s("column.collasible.tooltip"),...t})};function v(e){return(0,a.jsx)(i.A,{type:"tableBody",count:e.searchCondition.pageSetting.pageSize,keyName:"productTableBody",children:(0,a.jsx)(C,{...e})})}},15635:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(95155),l=n(90901),i=n(12115),r=n(37217),o=n(62195),s=n(92251);function d({OnIconComponentType:e=s.A.Enabled,OffIconComponentType:t=s.A.Disabled,switchSize:n="medium",defaultChecked:l=!1,managedChecked:c,onChange:p,readonly:m=!1}){let[u,x]=(0,i.useState)(l),h=void 0!==c?c:u,f="small"===n?"22px":"32px",g="small"===n?"small":"22px",A=async e=>{let t=e.target.checked;p&&!1===await p(t)||x(t)};return m?(0,a.jsx)(r.A,{display:"flex",alignItems:"center",justifyContent:"center",component:"span",children:h?(0,a.jsx)(e,{fontSize:"small"}):(0,a.jsx)(t,{fontSize:"small"})}):(0,a.jsx)(o.A,{name:"switch",checked:h,onChange:A,icon:(0,a.jsx)(r.A,{height:f,display:"flex",alignItems:"center",component:"span",children:(0,a.jsx)(t,{sx:{fontSize:g}})}),checkedIcon:(0,a.jsx)(r.A,{height:f,display:"flex",alignItems:"center",component:"span",children:(0,a.jsx)(e,{sx:{fontSize:g}})}),sx:{width:"small"===n?"55px":"65px",height:"small"===n?"40px":"50px",pl:"small"===n?"9px":"8px"}})}var c=n(61227),p=n(56012),m=n(27004),u=n(60644),x=n(99717);function h({checked:e,data:t,mutateData:n,switchSize:i="small",confirmI18nScope:r,getConfirmTargetLabel:o,isReadOnly:s,submitHandler:f,mutateMode:g,onIconComponentType:A,offIconComponentType:b}){let{mutate:y}=(0,l.iX)(),j=(0,u.s9)(),C=(0,c.dh)(),v=(0,p.e)(),{openConfirmDialog:S}=(0,m.S)();return(0,a.jsx)(d,{managedChecked:e,switchSize:i,OnIconComponentType:A,OffIconComponentType:b,readonly:!!s&&s(t),onChange:async e=>(!r||!!await S({message:j(e?`${r}.enable.message`:`${r}.disable.message`,{target:o?o(t):""}),okButtonLabel:j(e?`${r}.enable.button.ok.title`:`${r}.disable.button.ok.title`,{})}))&&(await x.A.submit({submitHandler:()=>f?f({data:t,value:e}):Promise.resolve({response:{}}),mutate:"data"===g&&n?n:()=>y(e=>!0),snackbarContext:C,overlayContext:v})).success})}},18724:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(95155),l=n(77656),i=n(48740),r=n(36287),o=n(37217);let s=({server:e,isIncludeInvisibleServer:t=!1})=>{let{data:n}=(0,r.x)(t);return(0,a.jsx)(o.A,{sx:{display:"flex",gap:.5,flexWrap:"wrap"},children:e in n&&n[e].map(e=>(0,a.jsx)(l.A,{text:e,tag:!0},e))})};function d(e){return(0,a.jsx)(i.A,{type:"text",children:(0,a.jsx)(s,{...e})})}},93378:(e,t,n)=>{n.d(t,{A:()=>y});var a=n(95155),l=n(12115),i=n(8682),r=n(30902),o=n(64924),s=n(37217),d=n(61775),c=n(85189),p=n(39808),m=n(65846),u=n(15635),x=n(60644),h=n(92251),f=n(52799),g=n(81892);let A={normal:["#ffffff","#f5f5f5"],highlight:["#ffc0cb","#ffb6c1"],grayout:["#d3d3d3","#c0c0c0"],detectionStale:["#d3d3d3","#c0c0c0"]};function b({columns:e,data:t,mutateData:n,collasible:o=!1,renderCollasible:y,collasibleTooltip:j,rowViewType:C,rowTooltipTitle:v}){let[S,T]=(0,l.useState)(!1),k=(0,x.ii)("common.table.row"),w=C?C(t):"normal",_=()=>(0,a.jsxs)(i.A,{sx:{...o?{"& > *":{borderBottom:"unset !important"}}:{},backgroundColor:A[w][0],"&:hover":{backgroundColor:A[w][1]}},children:[o&&(0,a.jsx)(r.A,{sx:{minWidth:"30px",maxWidth:"30px",pl:"5px"},children:(0,a.jsx)(c.A,{tooltip:S?k("collasible.close.tooltip"):j??k("collasible.open.tooltip"),tooltipPlacement:"left",IconComponentType:S?h.A.DetailOpened:h.A.DetailClosed,size:"small",iconButtonProps:{onClick:()=>T(!S),...!0===o||o(t)?{}:{sx:{visibility:"hidden"}}}})}),e.map(e=>{if(!1===e.show)return null;let l=t[e.field];return(0,a.jsx)(r.A,{align:e.align??"left",sx:{...e.width?{minWidth:e.width,maxWidth:e.width}:{},...e.minWidth?{minWidth:e.minWidth}:{},...e.maxWidth?{maxWidth:e.maxWidth}:{}},children:e.renderCell?e.renderCell({data:t,mutateData:n,value:l}):e.format?e.format({data:t,value:l}):"dateTime"===e.type?f.A.formatDateStr(l):"longString"===e.type?(0,a.jsx)(m.A,{text:l,maxAllowedLength:30}):"externalUrl"===e.type?f.A.isNotEmpty(l)&&f.A.isValidURL(l)?(0,a.jsx)(p.A,{href:l,newTabable:!0,children:l}):l:"boolean"===e.type&&e.booleanConfig?(0,a.jsx)(u.A,{checked:l,data:t,mutateData:n,...e.booleanConfig}):l},e.field)})]});return(0,a.jsxs)(a.Fragment,{children:[v?(0,a.jsx)(g.A,{title:v,children:_()}):_(),o&&(0,a.jsx)(i.A,{children:(0,a.jsx)(r.A,{style:{paddingBottom:0,paddingTop:0},colSpan:e.length+1,children:(0,a.jsx)(d.A,{in:S,timeout:"auto",unmountOnExit:!0,children:(0,a.jsx)(s.A,{sx:{margin:1},children:y&&y(t)})})})})]})}function y({columns:e,data:t,mutateData:n,noDataMessage:s,collasible:d=!1,renderCollasible:c,collasibleTooltip:p,rowViewType:m,dataUpdated:u,setDataUpdated:x,createRowTooltipTitle:h}){(0,l.useEffect)(()=>{u&&(x(!1),n())},[u,x,n]);let f=e.filter(e=>e.keyColumn);return(0,a.jsx)(a.Fragment,{children:0===t.length?(0,a.jsx)(i.A,{children:(0,a.jsx)(r.A,{colSpan:100,children:(0,a.jsx)(o.A,{component:"span",variant:"body2",color:"textSecondary",children:s})})}):t.map(t=>(0,a.jsx)(b,{columns:e,data:t,mutateData:n,collasible:d,renderCollasible:c,collasibleTooltip:p,rowViewType:m,rowTooltipTitle:h?h(t):void 0},f?f.map(e=>t[e.field]).join("__"):t[e[0].field]))})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.