(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{40741:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/data-discovery/action-center",function(){return t(35887)}])},36866:function(e,n,t){"use strict";t.d(n,{h:function(){return c}});var i=t(40431),o=t(27378),a=t(55484);let r=(0,i.jo)({parse(e){let n=parseInt(e,10);try{return a.Rx().integer().positive().validateSync(n),n}catch(e){return null}},serialize:e=>e.toString()});var u=t(32735);let l=function(){var e,n;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.pageQueryKey||"page",a=t.sizeQueryKey||"size";return{[o]:r.withDefault(u.Ej),[a]:t.pageSizeOptions?(0,i.bJ)(t.pageSizeOptions).withDefault(null!==(e=t.pageSize)&&void 0!==e?e:u.L8):r.withDefault(null!==(n=t.pageSize)&&void 0!==n?n:u.L8)}},c=function(){var e,n;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultPageSize:a=u.L8,pageSizeOptions:r,showSizeChanger:c=!0,pageQueryKey:s="page",sizeQueryKey:d="size",disableUrlState:p=!1}=t,g=null!=r?r:u.VZ,[f,y]=(0,o.useState)({pageIndex:u.Ej,pageSize:a}),v=(0,o.useMemo)(()=>p?null:l({pageSize:a,pageSizeOptions:r,pageQueryKey:s,sizeQueryKey:d}),[a,r,s,d,p]),[h,S]=(0,i.XI)(null!=v?v:{},{history:"push"}),T=p?f:{pageIndex:null!==(e=h[s])&&void 0!==e?e:u.Ej,pageSize:null!==(n=h[d])&&void 0!==n?n:a},E=(0,o.useCallback)(()=>{p?y({pageIndex:u.Ej,pageSize:a}):S({[s]:u.Ej,[d]:a})},[p,a,s,d,S,y]);return{...T,updatePageIndex:e=>{p?y(n=>({...n,pageIndex:e})):S({[s]:e})},updatePageSize:e=>{p?y({pageIndex:e!==T.pageSize?u.Ej:T.pageIndex,pageSize:e}):S({[s]:e!==T.pageSize?u.Ej:T.pageIndex,[d]:e})},resetPagination:E,nextPage:()=>{p?y(e=>({...e,pageIndex:e.pageIndex+1})):S(e=>({[s]:e[s]+1,[d]:e[d]}))},previousPage:()=>{p?y(e=>({...e,pageIndex:e.pageIndex-1})):S(e=>({[s]:e[s]-1,[d]:e[d]}))},pageSizeOptions:g,showSizeChanger:c}}},41337:function(e,n,t){"use strict";t.d(n,{AZ:function(){return y},Br:function(){return h},El:function(){return f},PT:function(){return v},hY:function(){return o}});var i,o,a=t(24246),r=t(10034),u=t(27378),l=t(88337),c=t(16394),s=t(9934),d=t.n(s),p=t(14746);(i=o||(o={})).CONNECTION="connection",i.SYSTEM="system",i.STATIC="static";let g=e=>{var n,t,i,o,a,r;return{kind:"connection",connectionType:e.connection_type,name:null!==(i=e.name)&&void 0!==i?i:null,key:null!==(o=e.key)&&void 0!==o?o:null,saasType:null!==(a=null===(n=e.saas_config)||void 0===n?void 0:n.type)&&void 0!==a?a:null,websiteUrl:null!==(r=null===(t=e.secrets)||void 0===t?void 0:t.url)&&void 0!==r?r:null}},f=e=>g(e),y=e=>g(e),v=e=>{var n;return{kind:"system",identifier:e.identifier,humanReadable:e.human_readable,encodedIcon:null!==(n=e.encoded_icon)&&void 0!==n?n:null}},h=e=>({kind:"static",key:e}),S=e=>e===l.R.WEBSITE||e===l.R.TEST_WEBSITE,T=e=>{if(e)return p.LN.get(e)},E=e=>{if(!e)return;if(e.startsWith("data:")||e.startsWith("http"))return e;let n=e.endsWith(".svg")?e:"".concat(e,".svg");return p.Ny+n},m=(e,n)=>{if("system"===e.kind){if(e.encodedIcon)return"data:image/svg+xml;base64,".concat(e.encodedIcon);let n=[...p.iW].find(n=>{let[t]=n;return t.toLowerCase()===e.identifier.toLowerCase()});return n?p.Ny+n[1]:void 0}if("connection"===e.kind){if(S(e.connectionType)){if(!e.websiteUrl)return;let t=(0,c.ge)(e.websiteUrl);return(0,c.Ms)(t,(null!=n?n:32)*2)}if(e.connectionType===l.R.SAAS){let n=T(e.saasType);if(n)return p.Ny+n}let t=p.iW.get(e.connectionType);return t?p.Ny+t:void 0}if(e.key)return E(e.key)},I=e=>{if("connection"===e.kind){var n,t;return null!==(t=null!==(n=e.name)&&void 0!==n?n:e.key)&&void 0!==t?t:"connection"}return"system"===e.kind?e.humanReadable:e.key||"connection"},_=(e,n)=>"connection"===e.kind&&S(e.connectionType)?(0,a.jsx)(r.PJP.huD,{size:n}):(0,a.jsx)(r.PJP.ehp,{size:n});n.ZP=e=>{let{data:n,size:t,...i}=e,o=(0,u.useMemo)(()=>m(n,t),[n,t]),l=(0,u.useMemo)(()=>_(n,null!=t?t:32),[n,t]),c=(0,u.useMemo)(()=>I(n),[n]);return n?(0,a.jsx)(r.qEK,{shape:"square",src:o,size:null!=t?t:32,icon:l,alt:c,...i,className:i.className?"".concat(i.className," ").concat(d().connectionTypeLogo):d().connectionTypeLogo}):null}},9934:function(e){e.exports={connectionTypeLogo:"ConnectionTypeLogo_connectionTypeLogo__dOKpm"}}},function(e){e.O(0,[431,6394,1690,5880,1643,2888,9774,179],function(){return e(e.s=40741)}),_N_E=e.O()}]);