PageSourceSearch

https://repsshield.com/assets/rules-management-test-B4ffN99y.js

js repsshield.com collected 2026-10-02 02:02:09 UTC 5,046 bytes, 1 lines download raw bytes

1import{j as e,a_ as Me,G as De,I as he,J as s,K as o}from"./index-DGo-vssZ.js";import{r as xe}from"./vendor-Qgthw7N1.js";import{u as je,a as Oe,U as be,M as Re,C as Se,b as ye,c as ve,d as Ee,e as Ge,S as Te,f as Ue,g as Ne,h as Ie}from"./SmartCalendarDialog-LZfabcAw.js";import"./index-B1ky1Hhc.js";import"./brain-B45HfaeR.js";import"./schema-D6YQS4W0.js";const M="unified";function Ae(){const[n,i]=je("tab",M),{editingUnifiedRule:D,setEditingUnifiedRule:h,createDialogOpen:r,setCreateDialogOpen:d,isMailCreateDialogOpen:x,setIsMailCreateDialogOpen:c,isSmartMailDialogOpen:j,setIsSmartMailDialogOpen:u,editingMailRule:O,setEditingMailRule:b,editingCalendarRule:R,setEditingCalendarRule:S,isGmailConnecting:y,isMicrosoftMailConnecting:v,isGmailDisconnectDialogOpen:E,setIsGmailDisconnectDialogOpen:G,isMicrosoftMailDisconnectDialogOpen:T,setIsMicrosoftMailDisconnectDialogOpen:U,isCalendarConnecting:N,isMicrosoftCalendarConnecting:I,isCalendarDisconnectDialogOpen:L,setIsCalendarDisconnectDialogOpen:P,isMicrosoftCalendarDisconnectDialogOpen:Q,setIsMicrosoftCalendarDisconnectDialogOpen:w,isCalendarCreateDialogOpen:k,setIsCalendarCreateDialogOpen:g,isSmartCalendarDialogOpen:F,setIsSmartCalendarDialogOpen:m,form:A,mailForm:C,calendarForm:p,connectionStatus:f,queries:_,mutations:l,handleEdit:q,handleMailEdit:B,handleCalendarEdit:J,handleMailDelete:K,handleDelete:V,handleCalendarDelete:z,handleUpdateSubmit:H,handleMailUpdateSubmit:W,handleCalendarUpdateSubmit:X,handleMailCreateSubmit:Y,handleCalendarCreateSubmit:Z,handleGmailConnect:$,handleMicrosoftMailConnect:ee,handleGoogleCalendarConnect:ae,handleMicrosoftCalendarConnect:ne}=Oe(),{unifiedRulesQuery:t,gmailStatusQuery:ie,microsoftMailStatusQuery:le,mailRulesQuery:te,googleCalendarStatusQuery:se,microsoftCalendarStatusQuery:oe,calendarRulesQuery:re}=_,{updateUnifiedRuleMutation:de,updateMailRuleMutation:ce,createMailRuleMutation:ue,createCalendarRuleMutation:ge,updateCalendarRuleMutation:me,disconnectGoogleCalendarMutation:Ce,disconnectMicrosoftCalendarMutation:pe}=l;return xe.useEffect(()=>{n||i(M,!0)},[n,i]),e.jsx(Me,{delayDuration:250,skipDelayDuration:150,children:e.jsxs("div",{className:"container-mobile py-12 space-y-12",children:[e.jsxs("div",{className:"flex flex-col space-y-4","data-tour":"rules-page-header",children:[e.jsxs("div",{className:"flex flex-col mb-6",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold tracking-tight text-gray-900 dark:text-gray-100",children:"Rules Management"}),e.jsx("p",{className:"text-gray-500 dark:text-gray-400 mt-1 text-sm md:text-base",children:"Configure rules for mail and calendar integrations to determine which fetched activities are relevant."})]}),e.jsx("div",{className:"w-full",children:e.jsxs(De,{value:n,onValueChange:a=>i(a),className:"w-full",children:[e.jsxs(he,{className:"grid grid-cols-3 gap-2 w-full max-w-md",children:[e.jsx(s,{value:"unified",children:"Unified Rules"}),e.jsx(s,{value:"mail",children:"Mail Rules"}),e.jsx(s,{value:"calendar",children:"Calendar Rules"})]}),e.jsx(o,{value:"unified",className:"pt-6",children:e.jsx(be,{rules:t.data||[],onEdit:q,onDelete:V,getRuleProvider:(a,fe)=>fe!=="unified"?"unknown":"unified",isLoading:t.isLoading,error:t.error,setCreateDialogOpen:d,createDialogOpen:r})}),e.jsx(o,{value:"mail",className:"pt-6",children:e.jsx(Re,{connectionStatus:f,gmailStatusQuery:ie,microsoftMailStatusQuery:le,mailRulesQuery:te,onEdit:B,onDelete:K,setIsMailCreateDialogOpen:c,setIsSmartMailDialogOpen:u,isGmailConnecting:y,isMicrosoftMailConnecting:v,handleGmailConnect:$,handleMicrosoftMailConnect:ee,disconnectGmailMutation:l.disconnectGmailMutation,disconnectMicrosoftMailMutation:l.disconnectMicrosoftMailMutation,setIsGmailDisconnectDialogOpen:G,setIsMicrosoftMailDisconnectDialogOpen:U,isGmailDisconnectDialogOpen:E,isMicrosoftMailDisconnectDialogOpen:T})}),e.jsx(o,{value:"calendar",className:"pt-6",children:e.jsx(Se,{connectionStatus:f,googleCalendarStatusQuery:se,microsoftCalendarStatusQuery:oe,calendarRulesQuery:re,onEdit:J,onDelete:z,setIsCalendarCreateDialogOpen:g,setIsSmartCalendarDialogOpen:m,isGoogleCalendarConnecting:N,isMicrosoftCalendarConnecting:I,handleGoogleCalendarConnect:ae,handleMicrosoftCalendarConnect:ne,disconnectGoogleCalendarMutation:Ce,disconnectMicrosoftCalendarMutation:pe,setIsGoogleCalendarDisconnectDialogOpen:P,setIsMicrosoftCalendarDisconnectDialogOpen:w,isGoogleCalendarDisconnectDialogOpen:L,isMicrosoftCalendarDisconnectDialogOpen:Q})})]})})]}),e.jsx(ye,{open:D!==null,onOpenChange:a=>{a||h(null)},form:A,onSubmit:H,isLoading:de.isPending}),e.jsx(ve,{open:r,onOpenChange:d}),e.jsx(Ee,{open:O!==null,onOpenChange:a=>{a||b(null)},form:C,onSubmit:W,isLoading:ce.isPending}),e.jsx(Ge,{open:x,onOpenChange:c,form:C,onSubmit:Y,isLoading:ue.isPending}),e.jsx(Te,{open:j,onOpenChange:u}),e.jsx(Ue,{open:k,onOpenChange:g,form:p,onSubmit:Z,isLoading:ge.isPending}),e.jsx(Ne,{open:R!==null,onOpenChange:a=>{a||S(null)},form:p,onSubmit:X,isLoading:me.isPending}),e.jsx(Ie,{open:F,onOpenChange:m})]})})}export{Ae as default};

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.