PageSourceSearch

https://repsshield.com/assets/rules-management-BeFNCv0L.js

js repsshield.com collected 2026-09-24 14:18:48 UTC 5,241 bytes, 1 lines download raw bytes

1import{j as e,aW as Me,E as De,G as he,I as s,J as o}from"./index-Byg2HWAE.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 Te,S as Ge,f as Ue,g as Ne,h as Ie}from"./SmartCalendarDialog-CstA2nJu.js";import"./square-pen-D8PHEJvM.js";import"./index-Bs2JGf-v.js";import"./brain-CkeK6gqK.js";import"./info-B94Hlx1u.js";import"./schema-D2obYZ_w.js";import"./calendarService-CrpjTGeC.js";const M="unified-rule";function Je(){const[n,i]=je("tab",M),{editingUnifiedRule:D,setEditingUnifiedRule:h,createDialogOpen:r,setCreateDialogOpen:d,isMailCreateDialogOpen:x,setIsMailCreateDialogOpen:u,isSmartMailDialogOpen:j,setIsSmartMailDialogOpen:c,editingMailRule:O,setEditingMailRule:b,editingCalendarRule:R,setEditingCalendarRule:S,isGmailConnecting:y,isMicrosoftMailConnecting:v,isGmailDisconnectDialogOpen:E,setIsGmailDisconnectDialogOpen:T,isMicrosoftMailDisconnectDialogOpen:G,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:p,calendarForm:C,connectionStatus:f,queries:q,mutations:l,handleEdit:B,handleMailEdit:J,handleCalendarEdit:V,handleMailDelete:W,handleDelete:_,handleCalendarDelete:z,handleUpdateSubmit:H,handleMailUpdateSubmit:K,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}=q,{updateUnifiedRuleMutation:de,updateMailRuleMutation:ue,createMailRuleMutation:ce,createCalendarRuleMutation:ge,updateCalendarRuleMutation:me,disconnectGoogleCalendarMutation:pe,disconnectMicrosoftCalendarMutation:Ce}=l;return xe.useEffect(()=>{(!n||!["unified-rule","mail-rule","calendar-rule"].includes(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-rule",children:"Unified Rules"}),e.jsx(s,{value:"mail-rule",children:"Mail Rules"}),e.jsx(s,{value:"calendar-rule",children:"Calendar Rules"})]}),e.jsx(o,{value:"unified-rule",className:"pt-6",children:e.jsx(be,{rules:t.data||[],onEdit:B,onDelete:_,getRuleProvider:(a,fe)=>fe!=="unified"?"unknown":"unified",isLoading:t.isLoading,error:t.error,setCreateDialogOpen:d,createDialogOpen:r})}),e.jsx(o,{value:"mail-rule",className:"pt-6",children:e.jsx(Re,{connectionStatus:f,gmailStatusQuery:ie,microsoftMailStatusQuery:le,mailRulesQuery:te,onEdit:J,onDelete:W,setIsMailCreateDialogOpen:u,setIsSmartMailDialogOpen:c,isGmailConnecting:y,isMicrosoftMailConnecting:v,handleGmailConnect:$,handleMicrosoftMailConnect:ee,disconnectGmailMutation:l.disconnectGmailMutation,disconnectMicrosoftMailMutation:l.disconnectMicrosoftMailMutation,setIsGmailDisconnectDialogOpen:T,setIsMicrosoftMailDisconnectDialogOpen:U,isGmailDisconnectDialogOpen:E,isMicrosoftMailDisconnectDialogOpen:G})}),e.jsx(o,{value:"calendar-rule",className:"pt-6",children:e.jsx(Se,{connectionStatus:f,googleCalendarStatusQuery:se,microsoftCalendarStatusQuery:oe,calendarRulesQuery:re,onEdit:V,onDelete:z,setIsCalendarCreateDialogOpen:g,setIsSmartCalendarDialogOpen:m,isGoogleCalendarConnecting:N,isMicrosoftCalendarConnecting:I,handleGoogleCalendarConnect:ae,handleMicrosoftCalendarConnect:ne,disconnectGoogleCalendarMutation:pe,disconnectMicrosoftCalendarMutation:Ce,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:p,onSubmit:K,isLoading:ue.isPending}),e.jsx(Te,{open:x,onOpenChange:u,form:p,onSubmit:Y,isLoading:ce.isPending}),e.jsx(Ge,{open:j,onOpenChange:c}),e.jsx(Ue,{open:k,onOpenChange:g,form:C,onSubmit:Z,isLoading:ge.isPending}),e.jsx(Ne,{open:R!==null,onOpenChange:a=>{a||S(null)},form:C,onSubmit:X,isLoading:me.isPending}),e.jsx(Ie,{open:F,onOpenChange:m})]})})}export{Je 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.