1"use strict";(self.webpackChunkxfa_dashboard=self.webpackChunkxfa_dashboard||[]).push([[1170],{7379(e,n,t){t.d(n,{Rt:()=>c,aK:()=>l,xb:()=>r});var i=t(5544),o=t(9950),s=t(82259),a=t(95595);const r=2e3,c=18e4,l=e=>{let n=e.organizationId,t=e.connection,l=e.onConnectionsLoaded;const d=(0,o.useMemo)(()=>(0,a.PI)(t),[t]),p=(0,o.useState)(!1),m=(0,i.A)(p,2),g=m[0],x=m[1];(0,o.useEffect)(()=>{"connecting"!==d&&x(!1)},[n,d]),(0,o.useEffect)(()=>{if("connecting"!==d||g)return;let e=!1,t=0;const i=setInterval(()=>{t+=r,t>=c?x(!0):s.Ay.getMessagingConnections(n).then(n=>{e||l(n)}).catch(()=>{})},r);return()=>{e=!0,clearInterval(i)}},[n,l,d,g]);const h=(0,o.useCallback)(()=>{x(!1)},[]);return{status:g&&"connecting"===d?"setup-incomplete":d,retry:h}}},10783(e,n,t){t.d(n,{A:()=>s});var i=t(23235),o=t(44414);const s=(0,i.A)((0,o.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline")},11227(e,n,t){t.d(n,{A:()=>s});var i=t(23235),o=t(44414);const s=(0,i.A)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},13413(e,n,t){t.d(n,{A:()=>s});var i=t(23235),o=t(44414);const s=(0,i.A)((0,o.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},23935(e,n,t){t.d(n,{A:()=>s});var i=t(23235),o=t(44414);const s=(0,i.A)((0,o.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download")},26887(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAkFBMVEW4Iy////+1ABj68vK3GSfIam+3HiuyAADtzc+0ABqzABG2EiLlu721Ch704OLARE325ufdqqzVjJD47O3pxce0ABPMb3XZl5qzAAvDUFj++vq9PEXQf4TcoqXisbTFWWC7MDvIYmnnwMLw2NrOeH26KjXBSFDShInu0tS9OEK7MDrHXWTbnqHcpajDTVbUio/ywLBIAAANSElEQVR4nO2d55aiMBiGKTEIEUcpiqg49jKOc/93tyTUhCJER5k9eX/tkQHykPKVlJUkISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhIaEnCSJdMcG7S/F7gu7ZGjjjiYveXZJfEto7MpG/M95dll8RWsmpxh1HhFWquwl8yDlZ5qsKyyP4Uab5515CiqHoqBxUH+UJ5XPt53izFF+ukGrb/cC6GUpxKEEW/acD/Q0lbypFrSJM1F+YJlNHHl2Fst/lZnqfMARYIgaB/YtDh5tpE8JQVyXHANbs5UWHDX9DQnl0zroj6LFXrQ6b/aaEsrxOhxM4+x/rMNQk6YwQsJfmf78fEq2SmmLHUlV5K0O92hD6UlxVaEpfWP51a5Hq5EU3QUj5CT7ocCNtRyjv4jETLfK/Tjo8krYlVLX4Nm+c/Xjsss9WILQSTYNtXSVK3iJuqKNVtwFZQmSiWLr3+V0k3KaxIIJWfzjc7JQOm0IihlDKjRnQnRUDjyxQgmF45epd56slDOvpUCDssn9WrlpCSbdYQufNxr19cq+eUDJshtD2Co8oTXhA8BteAPQG07bPvUPIei+ynK9DCJDualIhOoTIAIuxnv/BdF3DcM2KrAj9xPAvDVcxUcGRQOhULOKDhPCTJYycbFIS5fPLCra+vKHsBdDdjyk2Neu4QUFTmS+C03Y43AaLT7e6gOGHuayn+C9Ho2F/bK0kI98ogbfDI59TbEWPEEoK20y/yDvB+ic4JbdmaZpwfPXWQXxLBA6N83f+Gf2bUc4IvM/rkHnZKFh7CoIQf1BtElvodbuueI/QPTEv7eHn0/mrlBCef/rZzz52gMxzn3mAvIElRYRGr9TFCP/cms3nq8UgfaXdLj97j1AfMC+cgMJdKSGg3NWwQUPvp6TM6kcBUZ9X8JXp2sqLukdoBszjezWETGi805FTWkT/k3mNVhjQatUq4L5LuGSevq4hlDyqIy1mVW79iB4tjE0rQPmkSc11jxAdmafPYA2hTtU4O27ktMw3NK+8pmu0azHY3CMEO+bh5zpCVNbtSpVzE1y2I9xXv0VPvFuHC+bhSvGujBCs5IbK/Fs0aQ24cZsD3u+HTAilenWE8NK0kNukkBBUzpxUyN+1svn3CA3GHp7cOkKpeXGTUuolUWidhhZoF9609dq+zVpCvXFSZB+/ALEXnMVFMaReoXPOZgvL2knePde2JWFhmCPmsJqwEItEUkeFuo3ddXZsUm8EAQIFMK1H9RAqOuOPEiJ2hiJOHFYTlliI00LSDO2Lqd04vWzQvoyNUjsANcbfu/LFY/Ux/oX99H235K4coVtwvoYzj/QbxEx2RP4zO87ccoYOIvqa+hRCCJJpfIBMrVdoWxNwh5B11JdeOhVAV29EyJgXOjLSx9TF5OWPEWZT+avFuNjifK3srhyhwrSsXma5aH8n7tCMy0T7KuCLfljAlbdslxGeolaE/iHXsJjJ/4iQMbd7qpNAZq5528bQ8xGqyUjdkHCY95AZ7ygmpBqiz1g6j+4lJTmiZxOmGe+mhPlYlfFwywhVlpCxPW1CCi7CbBzgIqT9T446/HVCNYsHuAhp2xoT0uEn0w/ZuebfJjyDirseIGSGH9oesGs+frsfzlDVXQ8QMhAOlWRymRzR6VfHUvWAKu96gJD17A/5/OgHfY1zMr0h4UkC1Xc9QCgZ9KIHFaYf0jyzRVs9w6cpl7/wYM1djxAWIuyeZqLQY1Q8NkEk21yNtAmh/62zMefzCIvTBvb3cbe4OsVQmnNi7y7h1oJFd/B5hJLbNJPIu2iHIfTVVKOTM7B6ilsWUz+RkHU+K9Xj6oUFwm9NJ1I8z3AVHVU89YmETXNtAe9qcoZw3GxAfiahpLAJyzKduKx9RwglfX03Q9dX2idoOkQoIenOcPPtcQN2gxBvwAmq63H0xWcJu0QoAUObMEs6U76jxzmKdogQGquK6afR98F4cAVPFwjRmc3QyYMgGC9/viSP3QjxJwnNwsL4ACi6bpYsN/mbhGzOULYPNStS2uv9hKxnvHWfuxrw7YSFSeb9MyuwUNY3EBaWs+xdPZXJNdvUMcLCXI6/GSQKltPFau8+Np6+nbBsPo7WaDzTHuiabycszFaVaTjh34n7dkK9WYzvcFuQtxMWFl1VaNR2XWlnCBsvwbHbLlHoCiE7N1ytId+Y+n5CyKa2K7V5xrzFOzxvtGq6zIgr3dYBQgmgZfkyHFY2T8q0C4QSNL3zMdjad+uSZzVGJwglchSM6+qmNE8Xg3wdi4tB+hwJm64QpqQwt6DHu7FOK8d6k3cT1h82AjVm0VDLnQikSHTbD5oRmttRJjv3WfRB7sKIWsoL1nb+pqis6JA7b+RQ8iaNdls55p9gj9KtoVHFG3dS5b+Knr9AtymQv2REk9xU+OuXuNeMy8OzLApQevGWZTqw6JcZA40i3HAQvlPMnvDSQ2Dovf+lH6HDYo6f+A8JmSxUWfGh+adbKbOYzy5Z88QsKWo41lPytJIkCNJbbmEuvQHqen2B2EzirPAMyNjrY3trge1hwdtD12DQyraiaTAoPAV+BkFQexub7h4WwiOPyXE0tWY54W9UcKBw/quVbVVO2eraVHAu39nTCs90+UO/Mx/IQ6QxyVSfI0J8EmGfi1By2ajJ/4GeTk48MHVvb7GXeQz+ewlNxu0kTXUwxadWfG9KZkxnHB7JewmLK6JqdeLJmr6XUFJa7czjOjTtzYSSWTF7X6Yll0PTgBDohmLoSUkhUoiRQ4abHV1KEUIYDYgUITTLvxiUGi/h3fJl9ilCaIb23zBhnhB4C8dWR4NDNIzB/bEfOhbIvA7V0080mYk0vEXJ0kL
1p+BPMjpeQy9BgWCz8Y1gy/RJcM8TwLVryxcC+WRbqoYxwmmD/HIdvGy2BlhGiW9KMLNJG8HSfr7iTKCjwv0z6ZAlHJ+HOB8zvYlMNPGZm5tzDP6bHwACpEeJJfyCrHxMqyZpV9bxNCKOTWG3Sksh5bWRh9jljWgHKdfyEhHAO84t/lyb5CMnkLglqc+4LRA0mZ67ck08ZoYnd4GAysbayP4oJyWg+mmvafBOVO2yl4T9wMsbf9nE9qp4EJn0nfMrGcfr4LICY0Az6Tlg5TvjrByTOS7KpiczF5LfaQW9ypzOe5vwxRUqIC+HfXACQRxbSEUI3ZLHx6RtQ+w5R8Xc0SPv0LWQY5DyB8Gag4H6oKQo56jQmlExFCz+L4ip40R2enEjCP7LlkHYwkb6omb3YzCqO0mhHaISFXEcfVl/HhBCfMRSdVUZ2s+I/9PDn3kI8SwI1Nf4SeCxNQp+EMPzVScdSXG9q1NDIktnCmm3k3a6FvYv4D50d4F+XmCfEMKO4kPAWE+Jl5n5shHB14lrAe5GceKkgnoOfNiIk0y/Rr2R3UImDCU03HIWvg/7QDjUanvqBtZYU5dHcUUKIR7vEopHkAibEBEmaGdPi/CcmzM9QNyMkPnY0eJF9iBWxGQwdbsX1QhnREuUnZMYSQmwCkwA0JcTBY/K1cbTquxFhEgqmhv4+Id4PGn0ssiGNawcTnxJCV86G84SQjJtXLdYF73PmJsTBLtmaRjydzQsTSjEhfm+6+y8lZANU/A04CclOO9w2ifVsc3LHkwjxJ043NKSEc5bwwk+InSF8XAH+sfVpVs8g7JURFupwzk+Ih1DsyOg+Z5z3KOE6t9+d6ofBOTd3InH3w2jnPYLEZXvpwX1JP7zljphNx1L8vccKPf3FS0gM6g4Ql+3Zyw8bEWJH44MlxCaEnVHkJsTp30DHLls0rfiqWaDEWmh+NsJldRga5wEzsHMTYr9v6OGtvXinpLnvSa8ZUBNCXMYEhowwmBCPP+zpaNyEpJmSHHDodetX+TTimNDlUEJITlGJ55mVXjIauOHVRdJMo7Me+QmxJbx9kw3L4cB2nH712UPNfpWQdMStaeLoicyXEEJcKP8SBRfeYuDWESZ1TRPmBhXsfVtD4geawXV5k9fOK2aS0uiJnGZkW7O1FUVq0YjuDvG5THhO+7CJNuKWEzqECtKEenRLfhf/NvK6zfExcG6H7SuctyzGzx8P5CeBBvzEAa8/HJKLxypCHHg4nnfZU4ToGnrbhra/JO8iG2N8nK2aja+91fglx/Hj8CHZOJ4iXp00pgCXNPi2v/BPOAJOCZPoiYTKvh2NyqndISNW+GsyRkcJHeJ1o/UN7aYvme4Ey3EQZxRgfEaiPdGmvpr0Eej1HFtVR5tdtMEKXcdBMn2AfsZB9Hni43gxuhmMg3gIMY8k5ZFUVeQFRrzYGr7Is0G5/2NFR2vreFBCJ87MHY0KFMU0s1Of8zeg9O+QOT8eozKb2R8g83z8yUiw0ZXffEQ9QJx5V2zRy26lfsU+Es/StL8jZfDa0PDlgmEU3On/Vuhh4fxpYYbqPxLwBq3PAP5TAiRzf/iPeyHOYvi3/7iN4jWp3+A/rkEs/fFdy0JCQkJCQkJCQkLd1j+dHOfDyIQ8+QAAAABJRU5ErkJggg=="},26988(e,n,t){t.d(n,{A:()=>i});t(9950);const i=t.p+"static/media/onelogin.fb95a4367448bdb9783cdea13b1af081.svg"},29240(e,n,t){t.d(n,{A:()=>s});var i=t(23235),o=t(44414);const s=(0,i.A)((0,o.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},35834(e,n,t){t.d(n,{A:()=>s});var i=t(23235),o=t(44414);const s=(0,i.A)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},41133(e,n,t){e.exports=t.p+"static/media/keycloak.e97fca223c03b1dc6528.png"},50256(e,n,t){t.d(n,{A:()=>r});var i=t(89379),o=t(80045),s=(t(9950),t(44414));const a=["size","fill"],r=e=>{let n=e.size,t=void 0===n?16:n,r=e.fill,c=void 0===r?"currentColor":r,l=(0,o.A)(e,a);return(0,s.jsx)("svg",(0,i.A)((0,i.A)({width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),{},{children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.9324 13.0676C5.73116 15.8664 10.2688 15.8664 13.0676 13.0676C15.8664 10.2688 15.8664 5.73116 13.0676 2.93241C10.2688 0.13363 5.73118 0.133631 2.9324 2.93241C0.133644 5.73116 0.133625 10.2688 2.9324 13.0676ZM7.5 10.6668C7.5 10.943 7.72386 11.1668 8 11.1668C8.27614 11.1668 8.5 10.943 8.5 10.6668L8.49997 6.54063L9.97976 8.02042C10.175 8.21568 10.4916 8.21567 10.6869 8.02042C10.8821 7.82516 10.8821 7.50857 10.6869 7.31331L8.35355 4.98
1C8.30561 4.93206 8.25036 4.89585 8.19139 4.87148C8.13242 4.84701 8.06783 4.83353 8 4.83358C7.93216 4.83353 7.86758 4.84701 7.80861 4.87148C7.74964 4.89585 7.69439 4.93206 7.64645 4.98L5.31313 7.31331C5.11787 7.50858 5.11787 7.82516 5.31313 8.02042C5.50839 8.21568 5.82497 8.21569 6.02024 8.02042L7.50003 6.54063L7.5 10.6668Z",fill:c})}))}},68476(e,n,t){t.d(n,{A:()=>s});var i=t(23235),o=t(44414);const s=(0,i.A)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},77078(e,n,t){t.d(n,{A:()=>s});var i=t(23235),o=t(44414);const s=(0,i.A)((0,o.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined")},77286(e,n,t){t.d(n,{A:()=>i});t(9950);const i=t.p+"static/media/apple-icon.d3bc8a0b56393f7e3b7b2c6ddc22a38e.svg"},79012(e,n,t){t.r(n),t.d(n,{default:()=>un});var i=t(89379),o=t(5544),s=t(9950),a=t(46639),r=t(20032),c=t(87233),l=t(60899),d=t(36080),p=t(28429),m=t(55030),g=t(82259),x=t(44426),h=t(83274),f=t(25277),u=t(10226),y=t(11227),A=t(41440),v=t(53256),j=t(29240),b=t(57516),C=t(10783),k=t(77078),w=t(23235),S=t(44414);const I=(0,w.A)((0,S.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"DevicesOutlined"),z=(0,w.A)((0,S.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm7 10c0 4.52-2.98 8.69-7 9.93-4.02-1.24-7-5.41-7-9.93V6.3l7-3.11 7 3.11zm-11.59.59L6 13l4 4 8-8-1.41-1.42L10 14.17z"}),"VerifiedUserOutlined");var D=t(68476),E=t(89670),L=t(95882),P=t(77286);const M="#10131A",T={windows:L.A,macos:P.A},W={windows:"Windows",macos:"macOS"},O={textTransform:"none",borderRadius:"8px",fontWeight:600,fontSize:14,py:1,boxShadow:"none","&:hover":{boxShadow:"none"}},N=e=>{var n;let t=e.action,i=e.isReadOnly,o=e.t;const s=(0,p.Zp)(),a=(null!==(n=t.count)&&void 0!==n?n:0)>0,l=!!t.comingSoon,d=l||i,m=()=>{d||s(t.link)};return(0,S.jsxs)(r.A,{onClick:m,role:d?void 0:"button",tabIndex:d?void 0:0,onKeyDown:d?void 0:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),m())},sx:{display:"flex",alignItems:"center",gap:1.25,p:1.25,borderRadius:"8px",border:"1px solid var(--color-gray-200)",bgcolor:"#fff",cursor:d?"default":"pointer",opacity:l?.6:1,transition:"border-color .2s, background .2s","&:focus-visible":d?{}:{outline:"2px solid var(--color-green-600)",outlineOffset:"2px"},"&:hover":d?{}:{borderColor:"var(--color-gray-300)",bgcolor:"var(--color-gray-50)"}},children:[(0,S.jsx)(r.A,{sx:{width:30,height:30,borderRadius:"7px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:a?"var(--color-green-100)":"var(--color-gray-100)"},children:"discovery"===t.type?(0,S.jsx)(I,{sx:{fontSize:17,color:a?"var(--color-green-600)":"var(--color-gray-500)"}}):(0,S.jsx)(z,{sx:{fontSize:17,color:a?"var(--color-green-600)":"var(--color-gray-500)"}})}),(0,S.jsxs)(r.A,{sx:{minWidth:0,flexGrow:1},children:[(0,S.jsx)(c.A,{sx:{fontSize:13,fontWeight:600,color:M,lineHeight:1.2},children:t.label}),(0,S.jsx)(c.A,{sx:{fontSize:11.5,fontWeight:600,color:a?"var(--color-green-600)":"var(--color-gray-400)"},children:o(l?"integrations.comingSoon":a?"integrations.status.active":"integrations.status.notSetUp")})]}),!d&&(0,S.jsx)(D.A,{sx:{fontSize:18,color:"var(--color-gray-400)",flexShrink:0}})]})},U=e=>{var n,t;let l=e.integration,d=e.isReadOnly,g=void 0!==d&&d;const x=(0,m.Bd)().t,w=(0,p.Zp)(),I=l.syncError?(0,E._)(l.syncError.message,x,l.name):"",z=Boolean(l.syncError),D=Boolean(l.upgradeRequired),L="connecting"===l.displayStatus,P="setup-incomplete"===l.displayStatus,U=P&&Boolean(l.configureLink&&l.onConnect),H=P?x("connectors.general.retry"):null!==(n=l.actionLabel)&&void 0!==n?n:x("integrations.connect"),R=()=>{l.docsLink?window.open(l.docsLink,"_blank","noopener,noreferrer"):!l.isConnected&&l.onConnect?l.onConnect():l.configureLink&&w(l.configureLink)},F=(0,s.useRef)(l.isConnected),B=(0,s.useState)(!1),J=(0,o.A)(B,2),V=J[0],K=J[1];(0,s.useEffect)(()=>
1{if(l.isConnected&&!F.current){K(!0);const e=setTimeout(()=>K(!1),600);return()=>clearTimeout(e)}F.current=l.isConnected},[l.isConnected]);const Q=Boolean(l.docsLink||l.configureLink||!l.isConnected&&l.onConnect),X=!D&&l.actions&&l.actions.length>0;return(0,S.jsxs)(r.A,{className:"integration-card",children:[(0,S.jsxs)(r.A,{className:"integration-card-header",children:[l.icon&&(0,S.jsx)(r.A,{component:"img",src:l.icon,alt:l.name,className:"integration-card-icon"}),l.isConnected?(0,S.jsx)(h.A,{title:I||"",arrow:!0,children:(0,S.jsx)(r.A,{className:"integration-card-status",tabIndex:z?0:void 0,"aria-label":z?"".concat(x("integrations.status.syncError"),": ").concat(I):void 0,sx:{display:"flex",alignItems:"center",gap:.5},children:z?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(C.A,{sx:{fontSize:16,color:"var(--color-red-600)"}}),(0,S.jsx)(c.A,{sx:{fontSize:12,fontWeight:600,color:"var(--color-red-600)"},children:x("integrations.status.syncError")})]}):(0,S.jsxs)(S.Fragment,{children:[V?(0,S.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",style:{flexShrink:0},children:[(0,S.jsx)("circle",{cx:"8",cy:"8",r:"7",fill:"var(--color-green-600)"}),(0,S.jsx)("path",{d:"M4.5 8L7 10.5L11.5 5.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"12",strokeDashoffset:"12",className:"integration-card-check-draw"})]}):(0,S.jsx)(y.A,{sx:{fontSize:16,color:"var(--color-green-600)"}}),(0,S.jsx)(c.A,{sx:{fontSize:12,fontWeight:600,color:"var(--color-green-600)"},children:x("integrations.connected")})]})})}):L?(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,S.jsx)(a.A,{size:14,thickness:5}),(0,S.jsx)(c.A,{sx:{fontSize:12,fontWeight:600,color:"var(--color-gray-600)"},children:x("connectors.teams.connecting")})]}):P?(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,S.jsx)(C.A,{sx:{fontSize:16,color:"var(--color-orange-600)"}}),(0,S.jsx)(c.A,{sx:{fontSize:12,fontWeight:600,color:"var(--color-gray-700)"},children:x("connectors.teams.setupIncomplete")}
1)]}):null]}),(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:.75,mb:.5},children:[(0,S.jsx)(c.A,{sx:{fontWeight:700,fontSize:16,color:M,lineHeight:1.3},children:l.name}),l.enterprise&&(0,S.jsx)(f.A,{label:x("integrations.enterprise"),size:"small",sx:{height:20,fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:.4,bgcolor:"#EDE7F6",color:"#5E35B1"}}),null===(t=l.platforms)||void 0===t?void 0:t.map(e=>(0,S.jsx)(f.A,{label:(0,S.jsxs)("span",{style:{fontSize:"10px",display:"flex",alignItems:"center",gap:"4px"},children:[(0,S.jsx)("img",{src:T[e],alt:"",style:{width:"12px",height:"12px",opacity:.7}}),W[e]]}),size:"small",sx:{height:"18px",backgroundColor:"#ffffff",border:"1px solid #e0e0e0",color:"#666",cursor:"default","& .MuiChip-label":{padding:"0 6px"},"&:hover":{backgroundColor:"#ffffff"}}},e)),l.moreInfoLink&&(0,S.jsx)(b.A,{onClick:()=>{l.moreInfoLink&&window.open(l.moreInfoLink,"_blank","noopener,noreferrer")},sx:{fontSize:14,color:"var(--color-gray-400)",cursor:"pointer"}})]}),(0,S.jsx)(c.A,{className:"integration-card-description",children:l.description}),X?(0,S.jsx)(r.A,{className:"integration-card-footer",sx:{mt:"auto",display:"flex",flexDirection:"column",gap:1},children:l.actions.map(e=>(0,S.jsx)(N,{action:e,isReadOnly:g,t:x},e.type))}):(0,S.jsx)(r.A,{className:"integration-card-footer",sx:{mt:"auto",display:"flex",flexDirection:"column",gap:1},children:D?(0,S.jsx)(u.A,{fullWidth:!0,variant:"outlined",startIcon:(0,S.jsx)(k.A,{sx:{fontSize:"18px !important"}}),onClick:()=>{w("/settings/subscription")},sx:(0,i.A)((0,i.A)({},O),{},{color:M,borderColor:"var(--color-gray-300)","&:hover":{boxShadow:"none",borderColor:"var(--color-gray-400)",bgcolor:"var(--color-gray-50)"}}),children:x("integrations.upgradePlan")}):l.docsLink?(0,S.jsx)(u.A,{fullWidth:!0,variant:"outlined",endIcon:(0,S.jsx)(b.A,{sx:{fontSize:"16px !important"}}),onClick:R,sx:(0,i.A)((0,i.A)({},O),{},{color:"var(--color-gray-600)",borderColor:"var(--color-gray-200)","&:hover":{boxShadow:"none",borderColor:"var(--color-gray-300)",bgcolor:"var(--color-gray-50)"}}),children:x("integrations.setupGuide")}):Q&&!g&&l.isConnected?(0,S.jsx)(u.A,{fullWidth:!0,variant:"outlined",color:"primary",startIcon:(0,S.jsx)(A.A,{sx:{fontSize:"18px !important"}}),onClick:R,sx:(0,i.A)((0,i.A)({},O),{},{borderColor:"var(--color-gray-300)",color:M}),children:x("integrations.manage")}):Q&&!g?(0,S.jsxs)(s.Fragment,{children:[(0,S.jsx)(u.A,{fullWidth:!0,variant:"contained",color:"primary",startIcon:P?(0,S.jsx)(j.A,{sx:{fontSize:"18px !important"}}):(0,S.jsx)(v.A,{sx:{fontSize:"18px !important"}}),onClick:R,sx:O,children:H}),U&&(0,S.jsx)(u.A,{fullWidth:!0,variant:"outlined",color:"primary",startIcon:(0,S.jsx)(A.A,{sx:{fontSize:"18px !important"}}),onClick:()=>{l.configureLink&&w(l.configureLink)},sx:(0,i.A)((0,i.A)({},O),{},{borderColor:"var(--color-gray-300)",color:M}),children:x("integrations.manage")})]}):null})]})};var H=t(74438),R=t(42167),F=t(87121),B=t(62323),J=t(50256),V=t(6718),K=t(93681),Q=t(10186),X=t(49735),G=t(62649),q=t(60927),Y=t(22056),Z=t(19750),_=t(66364);const $={claude:"Settings \u2192 Connectors \u2192 Add custom connector",chatgpt:"Settings \u2192 Connectors \u2192 add a connector",gemini:"the Enterprise admin \u2192 add an MCP server",cursor:"Settings \u2192 MCP \u2192 Add new MCP server"},ee=(e,n)=>{var t;const i=null!==(t=$[n.docPath])&&void 0!==t?t:"",s=e("mcp.setupDialog.addStep",{assistant:n.name,path:i});if(!i||!s.includes(i))return s;const a=s.split(i),c=(0,o.A)(a,2),l=c[0],d=c[1];return(0,S.jsxs)(S.Fragment,{children:[l,(0,S.jsx)(r.A,{component:"span",sx:{fontWeight:700,color:"var(--color-gray-900)"},children:i}),d]})},ne=e=>{let n=e.open,t=e.onClose,i=e.assistant,o=e.serverUrl,s=void 0===o?"https://mcp.xfa.tech/mcp":o;const a=(0,m.Bd)().t,l=i?a("mcp.setupDialog.titleFor",{assistant:i.name}):a("mcp.setupDialog.title");return(0,S.jsx)(Y._T,{open:n,onClose:t,title:l,maxWidth:"sm",showCloseButton:!0,actions:(0,S.jsxs)(r.A,{sx:{display:"flex",justifyContent:"space-between",gap:1.5},children:[(0,S.jsx)(u.A,{variant:"outlined",sx:{textTransform:"none",borderRadius:"8px"},onClick:()=>{t(),_.A.navigateToConnectedApps()},children:a("mcp.setupDialog.manageConnections")}),(0,S.jsx)(u.A,{variant:"contained",sx:{textTransform:"none",borderRadius:"8px"},onClick:t,children:a("mcp.setupDialog.done")})]}),children:(0,S.jsxs)(r.A,{sx:{display:"flex",flexDirection:"column",gap:"16px"},children:[(null===i||void 0===i?void 0:i.directoryUrl)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(c.A,{sx:{color:"var(--color-gray-700)",fontSize:"14px",lineHeight:"22px"},children:a("mcp.setupDialog.directoryIntro",{assistant:i.name})}),(0,S.jsx)(u.A,{variant:"contained",href:i.directoryUrl,target:"_blank",rel:"noopener noreferrer",endIcon:(0,S.jsx)(b.A,{sx:{fontSize:16}}),sx:{textTransform:"none",borderRadius:"8px",width:"fit-content"},children:a("mcp.setupDialog.directoryButton",{assistant:i.name})}),(0,S.jsx)(c.A,{component:"h3",sx:{color:"var(--color-gray-700)",fontSize:"14px",fontWeight:600},children:a("mcp.setupDialog.orCustom")})]}),(0,S.jsx)(c.A,{sx:{color:"var(--color-gray-700)",fontSize:"14px",lineHeight:"22px"},children:i?ee(a,i):a("mcp.setupDialog.description")}),(0,S.jsx)(Z.A,{title:a("mcp.setupDialog.serverUrlLabel"),value:s,disabled:!s}
1),i&&(0,S.jsxs)(d.A,{href:"".concat("https://docs.xfa.tech/docs/admin/connect-ai-assistant","/").concat(i.docPath),target:"_blank",rel:"noopener noreferrer",sx:{display:"inline-flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:600,textDecoration:"none",width:"fit-content"},children:[a("mcp.setupDialog.guide",{assistant:i.name}),(0,S.jsx)(b.A,{sx:{fontSize:16}})]})]})})};var te=t(92380),ie=t(95595),oe=t(81134),se=t(7379),ae=t(49939),re=t(23935);const ce=(0,w.A)((0,S.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var le=t(13413),de=t(35834),pe=t(79419),me=t(84142),ge=t(16497),xe=t(93038),he=t(25333),fe=t(15769),ue=t(34075),ye=t(9213),Ae=t(21671),ve=t(65429),je=t(33738),be=t(42074),Ce=t(73847),ke=t(90204);const we="https://distribution.xfa.tech/xfa-native-desktop-application",Se="".concat(we,"/XFA.msi"),Ie="".concat(we,"/XFA-arm64.msi"),ze="".concat(we,"/XFA.intunewin"),De="".concat(we,"/XFA.pkg"),Ee="/Applications/XFA.app/Contents/MacOS/xfa",Le=new Map,Pe="<token-from-xfa-dashboard>",Me=function(e){const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?" PREFER_UPN=1":"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"ENROLLMENT_TOKEN=".concat(e).concat(n):'msiexec /i "XFA.msi" /qn ENROLLMENT_TOKEN='.concat(e).concat(n)},Te=()=>"undefined"!==typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)}),We={jamf:"$EMAIL",intune:"{{mail}}",sccm:""},Oe={intune:{name:"Microsoft Intune",documentation:"https://docs.xfa.tech/docs/admin/resources/how-to/deploy-xfa-with-an-mdm/intune",platforms:{windows:{steps:[{title:"stepDownloadWindows",action:"download"},{title:"stepCreateApp",where:"Apps > All apps > Create > Windows > Windows app (Win32)",note:"stepCreateAppIntune"},{title:"stepAppInformation",where:"The Install command and Detection rules",action:"command",settings:[{setting:"Install behavior",value:"User",hint:"hintInstallForUser"}],detectionScript:!0},{title:"stepAssignWindowsTitle",note:"stepAssignWindows"},{title:"stepVerify",note:"stepVerifyWindows"}]},macos:{steps:[{title:"stepDownloadMac",action:"download"},{title:"stepCreateApp",where:"Apps > All apps > Create > macOS > macOS app (PKG)",note:"stepCreateAppIntuneMac"},{title:"stepProfile",where:"Devices > Configuration > Create > macOS > Templates > Custom",action:"profile"},{title:"stepAssignMacTitle",note:"stepAssignMac"},{title:"stepVerify",note:"stepVerifyMac"}]}}},sccm:{name:"Microsoft Configuration Manager",documentation:"https://docs.xfa.tech/docs/admin/resources/how-to/deploy-xfa-with-an-mdm/sccm",platforms:{windows:{steps:[{title:"stepDownloadWindows",action:"download"},{title:"stepCreateApp",where:"Software Library > Application Management > Applications",note:"stepCreateAppSccm"},{title:"stepInstallProgram",where:"The Installation program field",action:"command"},{title:"stepDeploymentType",settings:[{setting:"Installation behavior",value:"Install for user",hint:"hintInstallForUser"},{setting:"Logon requirement",value:"Only when a user is logged on",hint:"hintLogonRequired"},{setting:"Deployment target",value:"User collection",hint:"hintUserCollection"}],detectionScript:!0,note:"stepAssignWindows"},{title:"stepVerify",note:"stepVerifyWindows"}]}}},jamf:{name:"Jamf Pro",documentation:"https://docs.xfa.tech/docs/admin/resources/how-to/deploy-xfa-with-an-mdm/jamf",platforms:{macos:{steps:[{title:"stepDownloadMac",action:"download"},{title:"stepUploadPackage",where:"Settings > Computer Management > Packages"},{title:"stepProfile",where:"Computers > Configuration Profiles > Upload",action:"profile",note:"stepProfileJamf"},{title:"stepPolicy",where:"Computers > Policies",note:"stepPolicyJamf",settings:[{setting:"Trigger",value:"Login",hint:"hintTrigger"},{setting:"Execution frequency",value:"Once per computer",hint:"hintFrequency"}]},{title:"stepVerify",note:"stepVerifyMac"}]}}}},Ne="$console = (Get-CimInstance Win32_ComputerSystem).UserName\nif ($console) {\n try {\n $sid = ([System.Security.Principal.NTAccount]$console).Translate(\n [System.Security.Principal.SecurityIdentifier]).Value\n $installed = $false\n foreach ($view in @([Microsoft.Win32.RegistryView]::Registry32,\n [Microsoft.Win32.RegistryView]::Registry64)) {\
1n $base = [Microsoft.Win32.RegistryKey]::OpenBaseKey(\n [Microsoft.Win32.RegistryHive]::Users, $view)\n try {\n $key = $base.OpenSubKey(\"$sid\\Software\\XFA\\DesktopApp\")\n if ($key) { $installed = $true; $key.Close() }\n } finally { $base.Close() }\n }\n if ($installed) { Write-Output 'Installed' }\n } catch { }\n}",Ue={padding:1.5,borderRadius:1,bgcolor:"grey.100",fontFamily:"monospace",fontSize:13,whiteSpace:"pre-wrap",wordBreak:"break-all",margin:0},He=e=>{let n=e.os,t=e.onChange,i=e.options;return(0,S.jsx)(r.A,{sx:{position:"sticky",top:0,zIndex:2,bgcolor:"background.paper",mx:-3,px:3,borderBottom:1,borderColor:"divider"},children:(0,S.jsx)(pe.A,{value:n,onChange:(e,n)=>t(n),sx:{minHeight:36},children:i.map(e=>(0,S.jsx)(me.A,{value:e,iconPosition:"start",icon:(0,S.jsx)("img",{src:"macos"===e?P.A:L.A,alt:"",style:{width:14,height:14}}),label:"macos"===e?"macOS":"Windows",sx:{minHeight:36,textTransform:"none",fontSize:14}},e))})})},Re=e=>{let n=e.label,t=e.value,o=e.copyLabel,s=e.loading,l=e.loadingLabel,d=e.disabled;return(0,S.jsxs)(r.A,{sx:{border:"1px solid",borderColor:"divider",borderRadius:1},children:[(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:1.5,py:.75},children:[(0,S.jsx)(c.A,{sx:{fontWeight:600,fontSize:13},children:n}),(0,S.jsx)(u.A,{size:"small",startIcon:(0,S.jsx)(ae.A,{fontSize:"small"}),disabled:d||s,onClick:()=>navigator.clipboard.writeText(t),children:o})]}),(0,S.jsx)(r.A,{component:"pre",sx:(0,i.A)((0,i.A)({},Ue),{},{borderRadius:0}),children:s?(0,S.jsxs)(r.A,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:1},children:[(0,S.jsx)(a.A,{size:14}),l]}):t})]})},Fe=e=>{let n=e.checked,t=e.onChange,i=e.label,o=e.hint;return(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:.25,mt:1},children:[(0,S.jsx)(ge.A,{sx:{mr:.25},control:(0,S.jsx)(xe.A,{size:"small",checked:n,onChange:e=>t(e.target.checked)}),label:(0,S.jsx)(c.A,{variant:"body2",children:i})}),(0,S.jsx)(h.A,{title:o,children:(0,S.jsx)(le.A,{sx:{fontSize:15,color:"text.disabled"}})})]})},Be=e=>{var n;let t=e.open,l=e.target,p=e.organizationId,x=e.onClose;const y=(0,m.Bd)().t,A=(0,s.useState)(null),v=(0,o.A)(A,2),j=v[0],C=v[1],k=(0,s.use
1State)(!1),w=(0,o.A)(k,2),I=w[0],z=w[1],D=(0,s.useState)(!1),E=(0,o.A)(D,2),M=E[0],T=E[1],W=(0,s.useState)(""),O=(0,o.A)(W,2),N=O[0],U=O[1],H=(0,s.useState)(!1),R=(0,o.A)(H,2),F=R[0],B=R[1],J=(0,s.useState)(!1),V=(0,o.A)(J,2),K=V[0],Q=V[1],X=(0,s.useState)(!1),G=(0,o.A)(X,2),q=G[0],Z=G[1],_=(0,s.useRef)(!1),$="manual"===l?void 0:Oe[l],ee=$?Object.keys($.platforms):["windows","macos"],ne=null!==(n=ee[0])&&void 0!==n?n:"windows",te=(0,s.useState)(ne),ie=(0,o.A)(te,2),oe=ie[0],se=ie[1];(0,s.useEffect)(()=>{t&&se(ne)},[t,l,ne]);const pe=(0,s.useCallback)(async()=>{if(!_.current){_.current=!0,C(null),z(!0),T(!1),U("");try{C(await(e=>{const n=Le.get(e);if(n)return n;const t=(async()=>{const n=await g.Ay.getOrganizationInvitationToken(e);return null!==n?n:g.Ay.issueOrganizationInvitationToken(e)})();Le.set(e,t);const i=()=>{Le.get(e)===t&&Le.delete(e)};return t.then(()=>window.setTimeout(i,1e3),i),t})(p))}catch(e){T(!0),U(y("mdmDeployment.loadError"))}finally{_.current=!1,z(!1)}}},[p,y]);(0,s.useEffect)(()=>{t&&pe()},[t,pe]);const me="macos"===oe,ge=(e,n,t)=>{const i=URL.createObjectURL(new Blob([e],{type:t})),o=document.createElement("a");o.href=i,o.download=n,o.click(),URL.revokeObjectURL(i)},xe=$?y("mdmDeployment.title",{system:$.name}):y("mdmDeployment.titleManual");return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Y._T,{open:t,onClose:x,maxWidth:"md",title:(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",rowGap:.5,columnGap:2},children:[(0,S.jsx)("span",{children:xe}),$&&1===ee.length&&(0,S.jsx)(f.A,{label:(0,S.jsxs)(r.A,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,S.jsx)("img",{src:me?P.A:L.A,alt:"",style:{width:12,height:12,opacity:.8}}),me?"macOS":"Windows"]}),size:"small",sx:{height:22,fontSize:12,fontWeight:500}})]}),showCloseButton:!0,scrollBody:!0,actions:(0,S.jsxs)(r.A,{sx:{display:"flex",gap:2,flexWrap:"wrap"},children:[$&&(0,S.jsx)(u.A,{component:"a",href:$.documentation,target:"_blank",rel:"noreferrer",size:"small",endIcon:(0,S.jsx)(b.A,{fontSize:"small"}),children:y("mdmDeployment.instructions")}),(0,S.jsx)(u.A,{size:"small",startIcon:(0,S.jsx)(ae.A,{fontSize:"small"}),disabled:!j||I,onClick:()=>j&&navigator.clipboard.writeText(function(e,n){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return"windows"===n?["Install XFA on Windows and enroll it in our organization.","","1) Download the installer:"," ".concat(Se," (ARM64: ").concat(Ie,")"),"","2) Install it, passing our enrollment token:"," ".concat(Me(e,!1,t)),"","Install it for the signed-in user; XFA is a per-user application."].join("\n"):["Install XFA on macOS and enroll it in our organization.","","1) Download the package:"," ".concat(De),"","2) Install it, then run this as the signed-in user:"," ".concat(Ee," enroll --token ").concat(e)].join("\n")}(j,oe,q)),children:y("mdmDeployment.copyShare")})]}),children:(0,S.jsxs)(r.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[N&&(0,S.jsx)(ve.A,{severity:"error",children:N}),M&&(0,S.jsx)(u.A,{variant:"outlined",onClick:()=>{pe()},children:y("mdmDeployment.retry")}),$?(()=>{const e=null===$||void 0===$?void 0:$.platforms[oe];return $&&e?(0,S.jsxs)(S.Fragment,{children:[ee.length>1&&(0,S.jsx)(He,{os:oe,onChange:se,options:ee}),e.steps.map((e,n)=>(0,S.jsxs)(ke.pn,{number:n+1,first:0===n,title:y("mdmDeployment.".concat(e.title)),children:[e.where&&(0,S.jsx)(ke.lq,{label:y("mdmDeployment.whereLabel"),path:e.where}),"download"===e.action&&(me?(0,S.jsx)(u.A,{component:"a",href:De,variant:"contained",startIcon:(0,S.jsx)(re.A,{}),children:"XFA.pkg"}):"intune"===l?(0,S.jsx)(u.A,{component:"a",href:ze,variant:"contained",startIcon:(0,S.jsx)(re.A,{}),children:"XFA.intunewin"}):(0,S.jsxs)(r.A,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[(0,S.jsx)(u.A,{component:"a",href:Se,variant:"contained",startIcon:(0,S.jsx)(re.A,{}),children:"XFA.msi"}),(0,S.jsx)(u.A,{component:"a",href:Ie,variant:"outlined",startIcon:(0,S.jsx)(re.A,{}),children:"XFA-arm64.msi"})]})),"command"===e.action&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Re,{label:"intune"===l?"Install c
1ommand":"Installation program",value:Me(null!==j&&void 0!==j?j:Pe,!1,q),copyLabel:y("mdmDeployment.copy"),loading:I,loadingLabel:y("mdmDeployment.creating"),disabled:!j}),(0,S.jsx)(Fe,{checked:q,onChange:Z,label:y("mdmDeployment.preferUpn"),hint:y("mdmDeployment.preferUpnHint")})]}),"profile"===e.action&&(0,S.jsx)(u.A,{variant:"contained",startIcon:(0,S.jsx)(re.A,{}),disabled:!j||I,onClick:()=>j&&ge(function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Te;return'<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n <key>PayloadContent</key>\n <array>\n <dict>\n <key>PayloadType</key>\n <string>com.xfa.desktop</string>\n <key>PayloadIdentifier</key>\n <string>tech.xfa.enrollment.'.concat(n,"</string>\n <key>PayloadUUID</key>\n <string>").concat(i(),"</string>\n <key>PayloadVersion</key>\n <integer>1</integer>\n <key>PayloadDisplayName</key>\n <string>XFA enrollment</string>\n <key>EnrollmentToken</key>\n <string>").concat(e,"</string>").concat(t?"\n <key>Email</key>\n <string>".concat(t,"</string>"):"","\n </dict>\n </array>\n <key>PayloadDisplayName</key>\n <string>XFA enrollment</string>\n <key>PayloadIdentifier</key>\n <string>tech.xfa.enrollment</string>\n <key>PayloadType</key>\n <string>Configuration</string>\n <key>PayloadUUID</key>\n <string>").concat(i(),"</string>\n <key>PayloadVersion</key>\n <integer>1</integer>\n</dict>\n</plist>\n")}(j,p,"manual"===l?"":We[l]),"xfa-enrollment.mobileconfig","application/x-apple-aspen-config"),children:y("mdmDeployment.downloadProfile")}),("command"===e.action||"profile"===e.action)&&(0,S.jsxs)(r.A,{sx:{mt:1.5,p:1.5,border:1,borderColor:"divider",borderRadius:1},children:[(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap"},children:[(0,S.jsx)(c.A,{sx:{fontWeight:600,mr:.5},children:y("mdmDeployment.tokenLabel")}),(0,S.jsx)(r.A,{component:"code",sx:(0,i.A)((0,i.A)({},Ue),{},{px:1,py:.5,display:"inline-flex",alignItems:"center",gap:1}),children:I?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(a.A,{size:14}),y("mdmDeployment.creating")]}):null!==j&&void 0!==j?j:"\u2014"}),(0,S.jsx)(h.A,{title:y("mdmDeployment.copy"),children:(0,S.jsx)("span",{children:(0,S.jsx)(he.A,{size:"small","aria-label":y("mdmDeployment.copy"),disabled:!j||I,onClick:()=>j&&navigator.clipboard.writeText(j),children:(0,S.jsx)(ae.A,{fontSize:"small"})})})}),(0,S.jsx)(h.A,{title:y("mdmDeployment.rotate"),children:(0,S.jsx)("span",{children:(0,S.jsx)(he.A,{size:"small","aria-label":y("mdmDeployment.rotate"),disabled:!j||I,onClick:()=>B(!0),children:(0,S.jsx)(ce,{fontSize:"small"})})})})]}),(0,S.jsx)(c.A,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:y("mdmDeployment.tokenScope")})]}),e.settings&&(0,S.jsx)(fe.A,{size:"small",sx:{mt:e.action?1.5:0},children:(0,S.jsx)(ue.A,{children:e.settings.map(e=>(0,S.jsxs)(ye.A,{children:[(0,S.jsx)(Ae.A,{sx:{color:"text.secondary",pl:0,border:0,py:.5},children:e.setting}),(0,S.jsx)(Ae.A,{sx:{fontWeight:600,pr:0,border:0,py:.5},children:(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:.5},children:[e.valueKey?y("mdmDeployment.".concat(e.valueKey)):e.value,e.hint&&(0,S.jsx)(h.A,{title:y("mdmDeployment.".concat(e.hint)),children:(0,S.jsx)(le.A,{sx:{fontSize:15,color:"text.disabled"}})})]})})]},e.setting))})}),e.detectionScript&&(0,S.jsxs)(r.A,{sx:{mt:1.5},children:[(0,S.jsxs)(ve.A,{severity:"warning",variant:"outlined",sx:{mb:1,py:.25},children:[y("mdmDeployment.detectionCritical")," ",(0,S.jsx)(d.A,{href:$.documentation,target:"_blank",rel:"noreferrer",children:y("mdmDeployment.instructions")})]}),(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:[(0,S.jsx)(c.A,{sx:{fontWeight:600,fontSize:13,mr:.5},children:y("mdmDeployment.detectionScriptLabel")}),(0,S.jsx)(u.A,{size:"small",variant:"contained",startIcon:(0,S.jsx)(re.A,{fontSize:"small"}),onClick:()=>ge(Ne,"detect-xfa.ps1","text/plain"),children:"detect-xfa.ps1"}),(0,S.jsx)(u.A,{size:"small",startIcon:(0,S.jsx)(ae.A,{fontSize:"small"}),onClick:()=>navigator.clipboard.writeText(Ne),children:y("mdmDeployment.copyScript")}),(0,S.jsx)(u.A,{size:"small",onClick:()=>Q(e=>!e),"aria-expanded":K,"aria-controls":"detection-script-preview",endIcon:(0,S.jsx)(de.A,{fontSize:"small",sx:{transform:K?"rotate(180deg)":"none",transition:"transform 150ms"}}),children:y(K?"mdmDeployment.hideScript":"mdmDeployment.showScript")})]}),(0,S.jsx)(je.A,{in:K,id:"detection-script-preview",children:(0,S.jsx)(r.A,{component:"pre",sx:(0,i.A)((0,i.A)({},Ue),{},{mt:1}),children:Ne})})]}),("command"===e.action||"profile"===e.action)&&(0,S.jsxs)(c.A,{variant:"body2",color:"text.secondary",sx:{mt:1.5},children:[y("mdmDeployment.whoIsEnrolled")," ",y("macos"===oe?"mdmDeployment.whoIsEnrolledMacos":"mdmDeployment.whoIsEnrolledWindows")," ",(0,S.jsx)(d.A,{href:"https://docs.xfa.tech/docs/admin/resources/how-to/deploy-xfa-with-an-mdm/#which-user-the-device-is-enrolled-for",target:"_blank",rel:"noreferrer",children:y("mdmDeployment.whoIsEnrolledLink")})]}),e.note&&(0,S.jsxs)(c.A,{variant:"body2",color:"text.secondary",sx:{mt:e.action||e.settings?1:0},children:[y("mdmDeployment.".concat(e.note)),"stepVerify"===e.title&&(0,S.jsxs)(S.Fragment,{children:[" ",(0,S.jsx)(d.A,{component:be.N_,to:"/devices",children:y("mdmDeployment.openDevices")})]})]})]},e.title+n))]}):null})():(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(c.A,{color:"text.secondary",children:y("mdmDeployment.manualIntro")}
1),(0,S.jsx)(He,{os:oe,onChange:se,options:["windows","macos"]}),(0,S.jsx)(ke.pn,{number:1,first:!0,title:y(me?"mdmDeployment.stepDownloadMac":"mdmDeployment.stepDownloadWindows"),children:me?(0,S.jsx)(u.A,{component:"a",href:De,variant:"contained",startIcon:(0,S.jsx)(re.A,{}),children:"XFA.pkg"}):(0,S.jsxs)(r.A,{sx:{display:"flex",gap:1,flexWrap:"wrap"},children:[(0,S.jsx)(u.A,{component:"a",href:Se,variant:"contained",startIcon:(0,S.jsx)(re.A,{}),children:"XFA.msi"}),(0,S.jsx)(u.A,{component:"a",href:Ie,variant:"outlined",startIcon:(0,S.jsx)(re.A,{}),children:"XFA-arm64.msi"})]})}),(0,S.jsxs)(ke.pn,{number:2,title:y("mdmDeployment.stepEnroll"),children:[(0,S.jsx)(Re,{label:me?"Terminal":"Command Prompt",value:me?"".concat(Ee," enroll --token ").concat(null!==j&&void 0!==j?j:Pe):Me(null!==j&&void 0!==j?j:Pe,!1,q),copyLabel:y("mdmDeployment.copy"),loading:I,loadingLabel:y("mdmDeployment.creating"),disabled:!j}),!me&&(0,S.jsx)(Fe,{checked:q,onChange:Z,label:y("mdmDeployment.preferUpn"),hint:y("mdmDeployment.preferUpnHint")})]}),(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"flex-start",gap:1,p:1.5,border:1,borderColor:"divider",borderRadius:1},children:[(0,S.jsx)(le.A,{sx:{fontSize:18,color:"text.disabled",mt:.15}}),(0,S.jsx)(c.A,{variant:"body2",color:"text.secondary",children:y("mdmDeployment.perUserNote")})]})]})]})}),F&&(0,S.jsx)(Ce.A,{title:y("mdmDeployment.rotateTitle"),content:y("mdmDeployment.rotateWarning"),cancelText:y("general.cancel"),confirmText:y("mdmDeployment.rotateConfirm"),confirmColor:"primary",inProgress:I,confirmDisabled:I,error:N,onCancel:()=>{I||B(!1)},onConfirm:async()=>{Le.delete(p),z(!0),U("");try{C(await g.Ay.rotateOrganizationInvitationToken(p)),B(!1)}catch(e){U(y("mdmDeployment.changeError"))}finally{z(!1)}}})]})};var Je=t(94131),Ve=t(21593),Ke=t(90045),Qe=t(25409);const Xe=t.p+"static/media/noru.39937f880e78fe38d487451ec90fb73d.svg";var Ge=t(25349),qe=t(63058),Ye=t(51684),Ze=t(26988),_e=t(26887),$e=t(41133),en=t(23354);const nn=t.p+"static/media/hubspot-icon.2546ce2f74c4618005f43d568f222af3.svg";const tn=t.p+"static/media/github-icon.3389fb1f4b6f0c5947c791af38db2442.svg";const on=t.p+"static/media/monday-icon.5e92877de279baf7196a574a1f521f96.svg";const sn=t.p+"static/media/notion-icon.634bfe896c55d746ec366ca7e3234701.svg";const an=t.p+"static/media/Atlassian-icon.8a9a1102f0a44e34f12249e0d3967c11.svg",rn=t.p+"static/media/aws-iam-identity-center.5de0a6adf1f0bf7cea53.png";var cn=t(36665),ln=t(96525);const dn=t.p+"static/media/intune-icon.52685e8888564fe0173c936ffd966f79.svg";const pn=t.p+"static/media/jamf-icon.eae02601ee1a45948f482d8b623b12d7.svg";const mn=t.p+"static/media/ai-assistant.948a87a9023dc6378a1e01f54294942e.svg";var gn=t(15371),xn=t(18964),hn=t(23536),fn=t(93051);const un=e=>{let n=e.role;const t=(0,m.Bd)().t,h=(0,p.Zp)(),f=(0,G.M)(),u=(0,oe.d)().addToast,y=(0,H.G)(),A=y.applications,v=y.discoveryApps,j=(0,R.g)().planCapabilities,b=(0,F.c8)(j),C=s.useState(null),k=(0,o.A)(C,2),w=k[0],I=k[1],z=s.useState([]),D=(0,o.A)(z,2),E=D[0],P=D[1],M=s.useState(!0),T=(0,o.A)(M,2),W=T[0],O=T[1],N=s.useState(null),Y=(0,o.A)(N,2),Z=Y[0],_=Y[1],$=s.useState(!1),ee=(0,o.A)($,2),ae=ee[0],re=ee[1],ce=s.useState(void 0),le=(0,o.A)(ce,2),de=le[0],pe=le[1],me=s.useState(null),ge=(0,o.A)(me,2),xe=ge[0],he=ge[1],fe=s.useCallback(e=>{P(e)},[]),ue=s.useMemo(()=>(0,ie.SZ)(E,"teams"),[E]),ye=(0,se.aK)({organizationId:n.organization.organization_id,connection:ue,onConnectionsLoaded:fe}),Ae=ye.status,ve=ye.retry,je=s.useCallback(async()=>{if("teams"!==xe){he("teams");try{await(0,ie.qK)(n.organization.organization_id)}catch(e){console.error("Failed to start Teams admin consent:",e),u({isSaved:!1,message:t("connectors.teams.error")})}finally{he(null)}}},[xe,n.organization.organization_id,u,t]),be=s.useCallback(()=>{ve(),je()},[je,ve]);s.useEffect(()=>{(async()=>{try{const e=await Promise.all([g.Ay.getConnectList(n.organization.organization_id),g.Ay.getMessagingConnections(n.organization.organization_id)]),t=(0,o.A)(e,2),i=t[0],s=t[1];I(i),P(s)}catch(e){console.error("Failed to fetch connections:",e),I({})}finally{O(!1)}})()},[n.organization.organization_id]),s.useEffect(()=>{if(W)return;const e=window.location.hash.slice(1);if(!e)return;const n=window.setTimeout(()=>{var n;null===(n=document.getElementById(e))||void 0===n||n.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>window.clearTimeout(n)},[W]);const Ce=(0,q.x8)(n.organization),ke=s.useMemo(()=>[{id:"intune",name:"Microsoft Intune",description:t("integrations.mdm.intuneDescription"),category:"mdm",icon:dn,isConnected:!1,actionLabel:t
1("integrations.mdm.setUp"),onConnect:()=>_("intune"),upgradeRequired:!Ce,platforms:["windows","macos"]},{id:"jamf",name:"Jamf Pro",description:t("integrations.mdm.jamfDescription"),category:"mdm",icon:pn,isConnected:!1,actionLabel:t("integrations.mdm.setUp"),onConnect:()=>_("jamf"),upgradeRequired:!Ce,platforms:["macos"]},{id:"sccm",name:"Microsoft Configuration Manager",description:t("integrations.mdm.sccmDescription"),category:"mdm",icon:L.A,isConnected:!1,actionLabel:t("integrations.mdm.setUp"),onConnect:()=>_("sccm"),upgradeRequired:!Ce,platforms:["windows"]},{id:"manual",name:t("integrations.mdm.manualName"),description:t("integrations.mdm.manualDescription"),category:"mdm",icon:ln,isConnected:!1,actionLabel:t("integrations.mdm.setUp"),onConnect:()=>_("manual"),upgradeRequired:!Ce,platforms:["windows","macos"]}],[t,Ce]),we=s.useMemo(()=>{var e,i,o,s,a;if(!w)return[];const r=[],c=e=>v.filter(n=>n.Type===e||"OktaDiscovery"===e&&"OktaDiscovery"===n.Type).length,l=e=>A.filter(n=>!(0,V.l2)(n)&&void 0!==n[e]).length,d=e=>A.filter(n=>!(0,V.l2)(n)&&n.Type===e).length,p=(0,q.Yx)(n.organization),m=A.filter(e=>!(0,V.l2)(e)&&(0,V.th)(e)).length;r.push({id:"google",name:"Google Workspace",description:t("integrations.identityProviders.google.description"),category:"identityProvider",icon:Ge.A,isConnected:c("Google")>0||m>0,actions:[{type:"discovery",label:t("integrations.actions.discoverDevices"),link:"/discovery",count:c("Google")},p?{type:"enforcement",label:t("integrations.actions.enforceDeviceSecurity"),link:"/applications",count:m}:{type:"enforcement",label:t("integrations.actions.enforceDeviceSecurity"),link:"/applications",comingSoon:!0}]}),r.push({id:"microsoft",name:"Microsoft Entra",description:t("integrations.identityProviders.microsoft.description"),category:"identityProvider",icon:qe.A,moreInfoLink:"https://docs.xfa.tech/docs/admin/enforcement/idp/microsoft",isConnected:c("Microsoft")>0||l("MicrosoftConnection")>0,actions:[{type:"discovery",label:t("integrations.actions.discoverDevices"),link:"/discovery",count:c("Microsoft")},{type:"enforcement",label:t("integrations.actions.enforceDeviceSecurity"),link:"/applications",count:l("MicrosoftConnection")}]}),r.push({id:"okta",name:"Okta",description:t("integrations.identityProviders.okta.description"),category:"identityProvider",icon:Ye,moreInfoLink:"https://docs.xfa.tech/docs/admin/enforcement/idp/okta",isConnected:c("OktaDiscovery")>0||l("OktaConnection")>0,actions:[{type:"discovery",label:t("integrations.actions.discoverDevices"),link:"/discovery",count:c("OktaDiscovery")},{type:"enforcement",label:t("integrations.actions.enforceDeviceSecurity"),link:"/applications",count:l("OktaConnection")}]}),r.push({id:"onelogin",name:"OneLogin",description:t("integrations.identityProviders.onelogin.description"),category:"identityProvider",icon:Ze.A,moreInfoLink:"https://docs.xfa.tech/docs/admin/enforcement/idp/onelogin",isConnected:d("Onelogin")>0,actions:[{type:"enforcement",label:t("integrations.actions.enforceDeviceSecurity"),link:"/applications",count:d("Onelogin")}]}),r.push({id:"pingidentity",name:"PingIdentity",description:t("integrations.identityProviders.pingidentity.description"),category:"identityProvider",icon:_e,moreInfoLink:"https://docs.xfa.tech/docs/admin/enforcement/idp/pingidentity",isConnected:d("PingIdentity")>0,actions:[{type:"enforcement",label:t("integrations.actions.enforceDeviceSecurity"),link:"/applications",count:d("PingIdentity")}]}),r.push({id:"keycloak",name:"Keycloak",description:t("integrations.identityProviders.keycloak.description"),category:"identityProvider",icon:$e,moreInfoLink:"https://docs.xfa.tech/docs/admin/enforcement/idp/keycloak",isConnected:d("Keycloak")>0,actions:[{type:"enforcement",label:t("integrations.actions.enforceDeviceSecurity"),link:"/applications",count:d("Keycloak")}]});const g=(0,ie.SZ)(E,"slack"),h=(0,ie.oW)(g);if(r.push({id:"slack",name:"Slack",description:t("integrations.awareness.slack.description"),category:"awareness",icon:en.A,isConnected:h,configureLink:"/connect/slack",onConnect:h?void 0:()=>(0,X.uh)(n.organization.organization_id)}),(0,q.FW)(n.organization)){const e="connected"===Ae,n="setup-incomplete"===Ae,i=e||n&&Boolean(null===ue||void 0===ue?void 0:ue.connection_id),o="not-connected"===Ae||n;r.push({id:"teams",name:"Microsoft Teams",description:t("integrations.awareness.teams.description"),category:"awareness",icon:cn,isConnected:e,configureLink:i?"/connect/teams":void 0,onConnect:o?n?be:je:void 0,displayStatus:"connecting"===Ae||"setup-incomplete"===Ae?Ae:void 0})}var f;(r.push({id:"hubspot",name:"Hubspot",description:t("integrations.suggested.hubspot.description"),category:"suggested",icon:nn,isConnected:!1,docsLink:"https://docs.xfa.tech/docs/admin/enforcement/application/specific-guides/how-to-secure-hubspot/"}),r.push({id:"github",name:"Github",description:t("integrations.suggested.github.description"),category:"suggested",icon:tn,isConnected:!1,docsLink:"https://docs.xfa.tech/docs/admin/enforcement/application/specific-guides/how-to-secure-github/"}),r.push({id:"monday",name:"Monday",description:t("integrations.suggested.monday.description"),category:"suggested",icon:on,isConnected:!1,docsLink:"https://docs.xfa.tech/docs/admin/enforcement/application/specific-guides/how-to-secure-monday/"}),r.push({id:"notion",name:"Notion",description:t("integrations.suggested.notion.description"),category:"suggested",icon:sn,isConnected:!1,docsLink:"https://docs.xfa.tech/docs/admin/enforcement/application/specific-guides/how-to-secure-notion/"}
1),r.push({id:"atlassian",name:"Atlassian (Jira, Confluence)",description:t("integrations.suggested.atlassian.description"),category:"suggested",icon:an,isConnected:!1,docsLink:"https://docs.xfa.tech/docs/admin/enforcement/application/specific-guides/how-to-secure-atlassian/"}),r.push({id:"aws-iam-identity-center",name:"AWS IAM Identity Center",description:t("integrations.suggested.awsIamIdentityCenter.description"),category:"suggested",icon:rn,isConnected:!1,docsLink:"https://docs.xfa.tech/docs/admin/enforcement/application/specific-guides/how-to-secure-aws-iam-identity-center/"}),r.push({id:"vanta",name:"Vanta",description:t("integrations.export.vanta.description"),category:"export",icon:Je.A,isConnected:!!w.vanta,syncError:null===(e=w.vanta)||void 0===e?void 0:e.sync_error,configureLink:"/connect/vanta",moreInfoLink:"https://xfa.tech/integrations/vanta",onConnect:w.vanta?void 0:()=>(0,K.w)(n.organization.organization_id)}),r.push({id:"thoropass",name:"Thoropass",description:t("integrations.export.thoropass.description"),category:"export",icon:Ve,isConnected:!!w.thoropass,syncError:null===(i=w.thoropass)||void 0===i?void 0:i.sync_error,configureLink:"/connect/thoropass",moreInfoLink:"https://xfa.tech/integrations/thoropass",onConnect:w.thoropass?void 0:()=>(0,Q.b)(n.organization.organization_id)}),r.push({id:"drata",name:"Drata",description:t("integrations.export.drata.description"),category:"export",icon:Qe,isConnected:!!w.drata,syncError:null===(o=w.drata)||void 0===o?void 0:o.sync_error,configureLink:"/connect/drata",moreInfoLink:"https://xfa.tech/integrations/drata"}),r.push({id:"trustcloud",name:"TrustCloud",description:t("integrations.export.trustcloud.description"),category:"export",icon:Ke,isConnected:!!w.trustcloud,syncError:null===(s=w.trustcloud)||void 0===s?void 0:s.sync_error,configureLink:"/connect/trustcloud",moreInfoLink:"https://xfa.tech/integrations/trustcloud"}),r.push({id:"noru",name:"Noru",description:t("integrations.export.noru.description"),category:"export",icon:Xe,isConnected:!!w.noru,syncError:null===(a=w.noru)||void 0===a?void 0:a.sync_error,configureLink:"/connect/noru"}),(0,q.st)(n.organization,x.T.MEM_EXPORT))&&r.push({id:"mem",name:"Microsoft Endpoint Manager",description:t("integrations.export.mem.description"),category:"export",icon:qe.A,isConnected:!(null===w||void 0===w||!w.mem),syncError:null===w||void 0===w||null===(f=w.mem)||void 0===f?void 0:f.sync_error,configureLink:"/connect/mem",onConnect:null!==w&&void 0!==w&&w.mem?void 0:()=>{window.location.href=(0,te.Yx)(n.organization.organization_id)}});return[{id:"ai-assistant-claude",name:"Claude",icon:gn,docPath:"claude",directoryUrl:"https://claude.ai/directory/mcp-xfa-tech"},{id:"ai-assistant-chatgpt",name:"ChatGPT",icon:xn,docPath:"chatgpt",directoryUrl:"https://chatgpt.com/plugins/plugin_asdk_app_6a8b773e20f081919e62335c5071ef82"},{id:"ai-assistant-gemini",name:"Gemini",icon:hn,docPath:"gemini"},{id:"ai-assistant-cursor",name:"Cursor",icon:fn,docPath:"cursor"}].forEach(e=>r.push({id:e.id,name:e.name,description:t("integrations.aiAssistant.brandDescription",{assistant:e.name}),category:"aiAssistant",icon:e.icon,isConnected:!1,actionLabel:t("integrations.aiAssistant.card.action"),onConnect:()=>{pe({name:e.name,docPath:e.docPath,directoryUrl:e.directoryUrl}),re(!0)}})),r.push({id:"ai-assistant",name:t("integrations.aiAssistant.card.name"),description:t("integrations.aiAssistant.card.description"),category:"aiAssistant",icon:mn,isConnected:!1,actionLabel:t("integrations.aiAssistant.card.action"),onConnect:()=>{pe(void 0),re(!0)}}),r},[w,E,v,A,n.organization,t,je,be,Ae]),Se=we.filter(e=>"identityProvider"===e.category),Ie=we.filter(e=>"suggested"===e.category),ze=we.filter(e=>"export"===e.category).map(e=>b&&!e.isConnected&&(0,B.U)(e.id)?(0,i.A)((0,i.A)({},e),{},{upgradeRequired:!0}):e),De=we.filter(e=>"awareness"===e.category),Ee=we.filter(e=>"aiAssistant"===e.category);return W?(0,S.jsx)("div",{className:"integrations-loading",children:(0,S.jsx)(a.A,{})}):(0,S.jsxs)("div",{children:[(0,S.jsxs)(r.A,{className:"integrations-section",children:[(0,S.jsxs)(r.A,{className:"integrations-section-header",children:[(0,S.jsx)(c.A,{className:"integrations-section-title",children:t("integrations.sections.identityProvi
1ders")}),(0,S.jsx)(c.A,{className:"integrations-section-subtitle",children:t("integrations.sections.identityProvidersSubtitle")})]}),(0,S.jsx)(l.Ay,{container:!0,spacing:2.5,children:Se.map(e=>(0,S.jsx)(l.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(U,{integration:e,isReadOnly:f})},e.id))})]}),(0,S.jsxs)(r.A,{className:"integrations-section",children:[(0,S.jsxs)(r.A,{className:"integrations-section-header",children:[(0,S.jsx)(c.A,{className:"integrations-section-title",children:t("integrations.sections.suggested")}),(0,S.jsx)(c.A,{className:"integrations-section-subtitle",children:t("integrations.sections.suggestedSubtitle")})]}),(0,S.jsx)(l.Ay,{container:!0,spacing:2.5,children:Ie.map(e=>(0,S.jsx)(l.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(U,{integration:e,isReadOnly:f})},e.id))})]}),De.length>0&&(0,S.jsxs)(r.A,{id:"awareness",className:"integrations-section",children:[(0,S.jsxs)(r.A,{className:"integrations-section-header",children:[(0,S.jsx)(c.A,{className:"integrations-section-title",children:t("integrations.sections.awareness")}),(0,S.jsx)(c.A,{className:"integrations-section-subtitle",children:t("integrations.sections.awarenessSubtitle")})]}),(0,S.jsx)(l.Ay,{container:!0,spacing:2.5,children:De.map(e=>(0,S.jsx)(l.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(U,{integration:e,isReadOnly:f})},e.id))})]}),Ee.length>0&&(0,S.jsxs)(r.A,{id:"ai-assistants",className:"integrations-section",children:[(0,S.jsxs)(r.A,{className:"integrations-section-header",children:[(0,S.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,S.jsx)(c.A,{className:"integrations-section-title",children:t("integrations.sections.aiAssistant")}),(0,S.jsx)(r.A,{component:"span",sx:{fontSize:"11px",fontWeight:700,letterSpacing:"0.02em",textTransform:"uppercase",color:"#1e40af",backgroundColor:"#eff6ff",borderRadius:"6px",padding:"2px 8px"},children:t("general.beta",{defaultValue:"Beta"})})]}),(0,S.jsx)(c.A,{className:"integrations-section-subtitle",children:t("integrations.sections.aiAssistantSubtitle")})]}),(0,S.jsx)(l.Ay,{container:!0,spacing:2.5,children:Ee.map(e=>(0,S.jsx)(l.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(U,{integration:e,isReadOnly:f})},e.id))})]}),!f&&(0,S.jsxs)(r.A,{id:"mdm-preinstall",className:"integrations-section",children:[(0,S.jsxs)(r.A,{className:"integrations-section-header".concat(Ce?"":" integrations-section-header--with-badge"),children:[(0,S.jsxs)(r.A,{children:[(0,S.jsx)(c.A,{className:"integrations-section-title",children:t("integrations.sections.mdmPreinstall")}),(0,S.jsxs)(c.A,{className:"integrations-section-subtitle",children:[t("integrations.sections.mdmPreinstallSubtitle")," ",(0,S.jsx)(d.A,{href:"https://docs.xfa.tech/docs/admin/resources/how-to/deploy-xfa-with-an-mdm/",target:"_blank",rel:"noreferrer",children:t("integrations.sections.mdmOptionalLink")})]})]}),!Ce&&(0,S.jsxs)("button",{type:"button",className:"integrations-plan-badge",onClick:()=>h("/settings/subscription"),children:[(0,S.jsx)(J.A,{className:"integrations-plan-badge-icon","aria-hidden":"true"}),(0,S.jsxs)("span",{children:[(0,S.jsx)("strong",{children:t("integrations.planBadge.title")})," ",t("integrations.planBadge.mdmDescription")]})]})]}),(0,S.jsx)(l.Ay,{container:!0,spacing:2.5,children:ke.map(e=>(0,S.jsx)(l.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(U,{integration:e})},e.id))})]}),(0,S.jsxs)(r.A,{className:"integrations-section",children:[(0,S.jsxs)(r.A,{className:"integrations-section-header".concat(b?" integrations-section-header--with-badge":""),children:[(0,S.jsxs)(r.A,{children:[(0,S.jsx)(c.A,{className:"integrations-section-title",children:t("integrations.sections.export")}),(0,S.jsx)(c.A,{className:"integrations-section-subtitle",children:t("integrations.sections.exportSubtitle")})]}),b&&(0,S.jsxs)("button",{type:"button",className:"integrations-plan-badge",onClick:()=>h("/settings/subscription"),children:[(0,S.jsx)(J.A,{className:"integrations-plan-badge-icon","aria-hidden":"true"}),(0,S.jsxs)("span",{children:[(0,S.jsx)("strong",{children:t("integrations.planBadge.title")})," ",t("integrations.planBadge.description")]})]})]}),(0,S.jsx)(l.Ay,{container:!0,spacing:2.5,children:ze.map(e=>(0,S.jsx)(l.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,S.jsx)(U,{integration:e,isReadOnly:f})},e.id))})]}),Z&&(0,S.jsx)(Be,{open:!0,target:Z,organizationId:n.organization.organization_id,onClose:()=>_(null)}),(0,S.jsx)(ne,{open:ae,onClose:()=>re(!1),assistant:de})]})}},90204(e,n,t){t.d(n,{EN:()=>f,Pi:()=>A,Vm:()=>h,ed:()=>u,g1:()=>v,lq:()=>j,pn:()=>x,wx:()=>y});var i=t(89379),o=t(5544),s=t(9950),a=t(35834),r=t(13413),c=t(20032),l=t(87233),d=t(33738),p=t(44414);
1const m=(e,n)=>({role:"button",tabIndex:0,"aria-expanded":e,onClick:n,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n())}}),g=e=>{let n=e.children;return(0,p.jsx)(c.A,{sx:{flexShrink:0,width:24,height:24,borderRadius:"50%",bgcolor:"primary.main",color:"primary.contrastText",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:600},children:n})},x=e=>{let n=e.number,t=e.title,r=e.first,x=e.defaultOpen,h=void 0===x||x,f=e.children;const u=(0,s.useState)(h),y=(0,o.A)(u,2),A=y[0],v=y[1],j=Boolean(f);return(0,p.jsxs)(c.A,{sx:{display:"flex",gap:1.5,alignItems:"flex-start",borderTop:r?0:1,borderColor:"divider",pt:r?0:2},children:[(0,p.jsx)(g,{children:n}),(0,p.jsxs)(c.A,{sx:{flexGrow:1,minWidth:0},children:[(0,p.jsxs)(c.A,(0,i.A)((0,i.A)({},j?m(A,()=>v(e=>!e)):{}),{},{sx:{display:"flex",alignItems:"center",gap:.5,cursor:j?"pointer":"default",userSelect:"none"},children:[(0,p.jsx)(l.A,{sx:{fontWeight:600},children:t}),j&&(0,p.jsx)(a.A,{sx:{ml:"auto",fontSize:20,color:"text.secondary",transform:A?"rotate(180deg)":"none",transition:"transform 150ms"}})]})),j&&(0,p.jsx)(d.A,{in:A,unmountOnExit:!0,children:(0,p.jsx)(c.A,{sx:{mt:.75},children:f})})]})]})},h=e=>{let n=e.children;return(0,p.jsxs)(c.A,{role:"note",sx:{alignItems:"flex-start",backgroundColor:"var(--color-blue-50)",borderRadius:"6px",color:"var(--color-blue-500)",display:"flex",gap:"8px",padding:"10px 12px"},children:[(0,p.jsx)(r.A,{sx:{flex:"0 0 auto",fontSize:16,mt:"1px"}}),(0,p.jsx)(l.A,{component:"div",sx:{color:"var(--color-blue-900)",fontSize:"12px",fontWeight:500,lineHeight:"18px"},children:n})]})},f=e=>{let n=e.title,t=e.defaultOpen,r=void 0!==t&&t,g=e.children;const x=(0,s.useState)(r),h=(0,o.A)(x,2),f=h[0],u=h[1];return(0,p.jsxs)(c.A,{children:[(0,p.jsxs)(c.A,(0,i.A)((0,i.A)({},m(f,()=>u(e=>!e))),{},{sx:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",userSelect:"none"},children:[(0,p.jsx)(l.A,{sx:{fontWeight:600},children:n}),(0,p.jsx)(a.A,{sx:{fontSize:20,color:"text.secondary",transform:f?"rotate(180deg)":"none",transition:"transform 150ms"}})]})),(0,p.jsx)(d.A,{in:f,unmountOnExit:!0,children:(0,p.jsx)(c.A,{sx:{mt:.75},children:g})})]})},u=e=>{let n=e.items;return(0,p.jsx)(c.A,{component:"ul",sx:{m:0,mb:1,pl:2.5,listStyleType:"disc"},children:n.map((e,n)=>(0,p.jsx)(l.A,{component:"li",variant:"body2",sx:{mb:.25},children:e},n))})},y=e=>{let n=e.children;return(0,p.jsx)(c.A,{sx:{mt:2,pt:2,borderTop:1,borderColor:"divider",display:"flex",flexDirection:"column",gap:2},children:n})},A=e=>{let n=e.title,t=e.children;return(0,p.jsxs)(c.A,{children:[(0,p.jsx)(l.A,{sx:{fontWeight:600},children:n}),(0,p.jsx)(l.A,{variant:"body2",sx:{mt:.5},children:t})]})},v=e=>{let n=e.rows;return(0,p.jsx)(c.A,{component:"dl",sx:{display:"grid",gridTemplateColumns:"minmax(0, max-content) minmax(0, 1fr)",columnGap:2,rowGap:.5,m:0,mb:1.5},children:n.map(e=>{let n=e.setting,t=e.value;return(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)(l.A,{component:"dt",variant:"body2",sx:{color:"text.secondary"},children:n}),(0,p.jsx)(l.A,{component:"dd",variant:"body2",sx:{m:0,fontWeight:600},children:t})]},n)})})},j=e=>{let n=e.label,t=e.path;return(0,p.jsxs)(l.A,{variant:"body2",sx:{mb:1},children:[(0,p.jsx)(c.A,{component:"span",sx:{color:"text.secondary",mr:.75},children:n}),(0,p.jsx)(c.A,{component:"span",sx:{fontWeight:600},children:t})]})}},95882(e,n,t){t.d(n,{A:()=>i});t(9950);const i=t.p+"static/media/microsoft-icon.102a13bd2edb5a6934952aecbdd3f030.svg"}}]);
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.