1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1574],{62395:function(e,t,n){n.d(t,{t:function(){return i}});let i=[{id:"handbook",title:"Employee handbook clause",description:"Duration of employment - signed at onboarding",statusLabel:"Valid for duration of employment",statusVariant:"duration",detail:{whatItIs:"A clause embedded in the company employee handbook that employees sign at onboarding. Covers consent to security testing, monitoring, and simulations as part of the employment agreement.",whoItCovers:"All employees who signed the current handbook version at hire or during a policy refresh.",consentValidFor:"The full duration of employment. No annual renewal needed unless the policy itself is updated and re-issued.",legalTeamNote:"Verify the handbook version employees actually signed. If updated after an employee's start date, confirm they re-acknowledged the new version. CA courts (Hernandez v. Hillsides) have narrowed employer monitoring rights. Ensure the clause specifically covers simulated social engineering, not just network monitoring."}},{id:"onboarding",title:"Signed onboarding agreement",description:"Duration of employment - upload master template",statusLabel:"Valid for duration of employment",statusVariant:"duration",detail:{whatItIs:"A standalone agreement signed at hire. Upload the master template. Individual employee copies are not required. Covers all employees hired after the effective date.",whoItCovers:"All employees hired after the agreement's effective date. Long-tenured employees predating it may not be covered.",consentValidFor:"The full duration of employment. No annual renewal needed unless the policy itself is updated and re-issued.",legalTeamNote:"Check for coverage gaps for employees hired before the security clause was added. For HIPAA-covered entities, the agreement should reference workforce security training as defined under 45 CFR 164.308(a)(5)."}},{id:"security_policy",title:"Security awareness policy acknowledgment",description:"Annual - SOC2, HIPAA & ISO 27001",statusLabel:"Renews every 12 months",statusVariant:"annual",detail:{whatItIs:"Annual standalone policy acknowledgment. Common in SOC2, HIPAA, and ISO 27001 environments. Completion is typically tracked in an LMS or HR system.",whoItCovers:"All employees who completed the current annual cycle. New hires or employees on leave may not be covered.",consentValidFor:"Up to 12 months from the document effective date. After that, employees should re-acknowledge before another simulation runs.",legalTeamNote:"Confirm the acknowledgment language explicitly covers simulated social engineering, phishing, and vishing exercises. Generic security training language may not be sufficient. Obtain the LMS completion report as supplementary evidence."}},{id:"aup",title:"Acceptable use policy (AUP)",description:"Annual - covers all IT and communications systems",statusLabel:"Renews every 12 months",statusVariant:"annual",detail:{whatItIs:"Governs employee use of company IT systems and devices. Strong AUPs include explicit consent to security testing covering voice, messaging, and email channels.",whoItCovers:"All employees who acknowledged the current AUP version.",consentValidFor:"Up to 12 months from the document effective date. After that, employees should re-acknowledge before another simulation runs.",legalTeamNote:"Critical check: does the AUP explicitly mention voice calls and messaging platforms, not just email? Older AUPs often only reference email and network access, which may not cover vishing or WhatsApp simulations. If silent on voice/messaging, supplement with another document type."}},{id:"training",title:"Annual security training completion record",description:"Annual - KnowBe4, Proofpoint, LMS, CSV export",statusLabel:"Renews every 12 months",statusVariant:"annual",detail:{whatItIs:"Completion record from a security awareness training platform where employees checked a consent box. This is the only document type that can carry per-employee timestamps. Upload the bulk CSV export alongside the policy document.",whoItCovers:"Employees who completed the current training cycle and accepted the consent clause within it.",consentValidFor:"Up to 12 months from the document effective date. After that, employees should re-acknowledge before another simulation runs.",legalTeamNote:"Request the actual consent language shown during training, not just the completion certificate. If the platform only showed a generic acknowledgment checkbox without describing simulations, evidential weight is lower. This type supports CSV upload for per-employee records."}},{id:"wisp",title:"Written information security program (WISP)",description:"Annual - required in MA, NY, TX",statusLabel:"Renews every 12 months",statusVariant:"annual",detail:{whatItIs:"Required by state law in Massachusetts (201 CMR 17), New York (SHIELD Act), and Texas (HB 4390) for organisations handling PII. Carries statutory weight when the WISP includes security testing provisions.",whoItCovers:"All employees of organisations subject to state data security regulations handling PII of MA, NY, or TX residents.",consentValidFor:"Up to 12 months from the document effective date. After that, employees should re-acknowledge before another simulation runs.",legalTeamNote:"Only applicable if the customer is subject to MA 201 CMR 17, NY SHIELD Act, or TX HB 4390. The WISP must explicitly reference security simulation or testing. A generic WISP without that language does not constitute consent to vishing simulations."}}]},60682:function(e,t,n){n.d(t,{D_:function(){return a},EH:function(){return u},Em:function(){return l},Jj:function(){return d},X_:function(){return c},ZK:function(){return o}});var i=n(60923);let a=".pdf,.png,.jpg,.jpeg",r=/\.(pdf|png|jpe?g)$/i,l={document:["consentDocumentFile","Upload the signed consent document"],signatory_name:["signatoryName","Enter the signatoryâs full name"],signatory_title:["signatoryTitle","Enter the signatoryâs job title"],signatory_entitled:["signatoryEntitled","Confirm the signatory is entitled to give consent"]},o=e=>r.test(e.name)&&e.size<=10485760?null:"The document must be a PDF, PNG or JPEG of at most 10 MB.",s=e=>{let t=e.trim().length;return t>=2&&t<=200},u=e=>{let t=e.consentDocumentFile;return("string"==typeof t?t.length>0:t instanceof File&&null===o(t))&&s(e.signatoryName)&&s(e.signatoryTitle)&&e.signatoryEntitled},c=e=>e.partnerVisit?{signatory_name:e.signatoryName.trim(),signatory_title:e.signatoryTitle.trim(),signatory_entitled:e.signatoryEntitled}:{},d=e=>{var t,n,a;let{code:r}=(0,i.M)(e);if("partner_attestation_incomplete"!==r)return null;let o=null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(n=a.data)||void 0===n?void 0:null===(t=n.detail)||void 0===t?void 0:t.missing,s={};
1return(null!=o?o:[]).forEach(e=>{let t=l[e];t&&(s[t[0]]=[t[1]])}),s}},68584:function(e,t,n){n.d(t,{P:function(){return C}});var i=n(2265),a=n(42858),r=n(99376),l=n(823),o=n(90382),s=n(82337),u=n(82121),c=n(14171),d=n(63693),m=n(37262),p=n(13911),h=n(53950),f=n(26884),g=n(43209),y=n(62705),v=n(49713),w=n(60682);let C=()=>{let e=(0,a.TL)(),t=(0,r.usePathname)(),n=(0,r.useRouter)(),{tenantDetail:C}=(0,d.useGetCurrentUserTenantDetail)(),{createConsentCampaign:x,isCreatingCampaign:_}=(0,f.Mz)(),{createLog:A}=(0,u.Q)(),{data:b}=(0,c.pg)(),{employees:F}=(0,p.nx)(),[j,S]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e=window.location.pathname.split("/")[1];e&&S(e)},[t]);let{campaignName:M,startDate:Z,endDate:V,reminder:k,maxReminder:I,reminderInterval:L,selectedGroups:T,audienceType:H,selectedEmployees:N,consentDocumentType:P,consentDocumentFile:R,legalAttestationFullName:E,partnerVisit:U,signatoryName:Q,signatoryTitle:q,signatoryEntitled:G}=(0,a.CG)(e=>e.createConsentCampaign);return{createConsentCampaignHandler:async function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{prevent_redirect:i,highlight:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{prevent_redirect:!1,highlight:!1};try{let a=Object.keys(T),r=await x({campaign_name:M,start_date:Z,end_date:V,reminder:k?g.dY.Yes:g.dY.No,max_reminder:I,reminder_interval:L,audience_type:H,selected_groups:a,selected_employees:N,channel:"",status:t?s._$.draft:s._$.running,consent_campaign_type:y.$N,consent_document_type:P,...R instanceof File?{consent_document_file:R}:{},legal_attestation_full_name:E.trim(),...(0,w.X_)({partnerVisit:U,consentDocumentFile:R,signatoryName:Q,signatoryTitle:q,signatoryEntitled:G})});if(i||e((0,v.uE)(null)),r.status===s.c4.running){let e=null==F?void 0:F.filter(e=>(0,h.pF)({assignments:e.group_assignments,groups:a})),t=(0,m.py)({email:(null==b?void 0:b.email)||"",role:(null==b?void 0:b.role)||null,tenant_name:(null==C?void 0:C.name)||"",employees:(null==e?void 0:e.length)||N.length||void 0});A({payload:t,type:l.q0.campaign_started}).then(()=>{}).catch(()=>{})}return i||(r.id?n.replace("/".concat(j,"/consent-management/detail?campaign_id=").concat(r.id)):n.back()),r}catch(n){let t=(0,w.Jj)(n);if(t)return e((0,v.nj)(y.Kx.step)),e((0,v.B$)(t)),!1;return(0,o._N)(n,"Failed to create consent campaign."),!1}},isCreatingCampaign:_}}},5299:function(e,t,n){n.d(t,{X:function(){return C}});var i=n(2265),a=n(42858),r=n(99376),l=n(823),o=n(90382),s=n(82337),u=n(82121),c=n(14171),d=n(63693),m=n(37262),p=n(13911),h=n(53950),f=n(26884),g=n(43209),y=n(62705),v=n(49713),w=n(60682);let C=()=>{let e=(0,a.TL)(),t=(0,r.usePathname)(),n=(0,r.useRouter)(),{tenantDetail:C}=(0,d.useGetCurrentUserTenantDetail)(),{updateConsentCampaign:x,isUpdating:_}=(0,f.Mf)(),{createLog:A}=(0,u.Q)(),{data:b}=(0,c.pg)(),{employees:F}=(0,p.nx)(),[j,S]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e=window.location.pathname.split("/")[1];e&&S(e)},[t]);let{campaign:M,setCampaignId:Z}=(0,f.G_)(),{campaign_id:V,campaignName:k,startDate:I,endDate:L,reminder:T,maxReminder:H,reminderInterval:N,selectedGroups:P,audienceType:R,selectedEmployees:E,consentDocumentType:U,consentDocumentFile:Q,legalAttestationFullName:q,partnerVisit:G,signatoryName:D,signatoryTitle:B,signatoryEntitled:O}=(0,a.CG)(e=>e.createConsentCampaign);return(0,i.useEffect)(()=>{V&&Z(V)},[V]),{updateConsentCampaignHandler:async function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!V)return!1;try{let r=Object.keys(P),o=null==M?void 0:M.status,u=t?s._$.draft:s._$.running,c=await x({id:V,campaign_name:k,start_date:I,end_date:L,reminder:T?g.dY.Yes:g.dY.No,max_reminder:H,reminder_interval:N,audience_type:R,selected_employees:E,channel:"",selected_groups:r,status:u,consent_campaign_type:y.$N,consent_document_type:U,...Q instanceof File?{consent_document_file:Q}:{},legal_attestation_full_name:q.trim(),...(0,w.X_)({partnerVisit:G,consentDocumentFile:Q,signatoryName:D,signatoryTitle:B,signatoryEntitled:O})});if(Q instanceof File){var a;e((0,v.uE)(null!==(a=null==c?void 0:c.consent_document)&&void 0!==a?a:null))}if(c&&u===s._$.running&&o===s._$.draft){let e=null==F?void 0:F.filter(e=>(0,h.pF)({assignments:e.group_assignments,groups:r})),t=(0,m.py)({email:(null==b?void 0:b.email)||"",role:(null==b?void 0:b.role)||null,tenant_name:(null==C?void 0:C.name)||"",employees:(null==e?void 0:e.length)||E.length||void 0});A({payload:t,type:l.q0.campaign_started}).then(()=>{}).catch(()=>{})}
1return i||(V?n.replace("/".concat(j,"/consent-management/detail?campaign_id=").concat(V)):n.back()),c}catch(n){let t=(0,w.Jj)(n);if(t)return e((0,v.nj)(y.Kx.step)),e((0,v.B$)(t)),!1;return(0,o._N)(n,"Failed to update consent campaign."),!1}},isUpdating:_}}},22813:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(57437);n(2265);var a=e=>{let{fill:t="#5A87F8",...n}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:9,height:6,fill:"none",...n,children:(0,i.jsx)("path",{fill:t,d:"M2.981 5.973a.625.625 0 0 1-.441-.183L.18 3.43a.629.629 0 0 1 0-.883.629.629 0 0 1 .884 0L2.98 4.465 7.265.18a.629.629 0 0 1 .883 0 .629.629 0 0 1 0 .884L3.423 5.79a.625.625 0 0 1-.442.183Z"})})},r=e=>{let{id:t,value:n,title:r,shouldFill:l,description:o,...s}=e;return(0,i.jsxs)("div",{children:[(0,i.jsxs)("label",{htmlFor:t,className:"w-full cursor-pointer flex justify-center gap-2",children:[(0,i.jsx)("div",{className:"".concat(n?l?"border-blue-6 bg-blue-6":"border-blue-6":"border-gray-3"," border w-5 h-5 rounded-md flex justify-center items-center"),children:n&&(0,i.jsx)(a,{fill:l?"#fff":"#5A87F8"})}),(0,i.jsxs)("div",{className:"flex-1",children:[r&&(0,i.jsx)("p",{className:"text-dark-9 font-normal text-sm",children:r}),o&&(0,i.jsx)("p",{className:"text-gray-6 font-normal text-xs mt-1",children:o})]})]}),(0,i.jsx)("input",{className:"opacity-0 hidden",id:t,type:"checkbox",...s})]})}},79241:function(e,t,n){n.d(t,{_:function(){return l}});var i=n(57437);n(2265);var a=n(8621),r=n(86997);let l=e=>{let{paragraph:t,children:n,className:a}=e;return(0,i.jsxs)("div",{className:"flex gap-[17px] bg-[#FFF5F5] py-[12px] px-[16px] rounded-md ".concat(a||""),children:[(0,i.jsx)("div",{className:"w-4",children:(0,i.jsx)(r.Z,{})}),n||(0,i.jsx)("p",{className:"font-normal text-[14px] text-[#C92A2A]",children:t})]})};t.Z=e=>{let{paragraph:t,children:n,className:r}=e;return(0,i.jsxs)("div",{className:"flex gap-[17px] bg-blue-1 py-[12px] px-[16px] rounded-md ".concat(r||""),children:[(0,i.jsx)("div",{className:"w-4",children:(0,i.jsx)(a.Z,{})}),n||(0,i.jsx)("p",{className:"font-normal text-[14px] text-gray-6 italic",children:t})]})}},43252:function(e,t,n){n.d(t,{q:function(){return F},KT:function(){return T},RD:function(){return b},T1:function(){return M},R$:function(){return Z},uW:function(){return H},Px:function(){return j},ZZ:function(){return L},rc:function(){return V},AI:function(){return I},E_:function(){return S}});var i=n(64906),a=n(82003);let r=async(e,t)=>{let{data:n}=await i.default.post("/api/tenant-domain",e,{headers:{token:(0,a.LP)(),tenant:t}});return n},l=async(e,t)=>{let{domain_id:n}=e,{data:r}=await i.default.delete("/api/tenant-domain/".concat(n),{headers:{token:(0,a.LP)(),tenant:t}});return r},o=async e=>{let{data:t}=await i.default.get("/api/tenant-domain",{headers:{token:(0,a.LP)(),tenant:e}});return t},s=async e=>{let{data:t}=await i.default.post("/api/tenant-domain/sync-domains",{},{headers:{token:(0,a.LP)(),tenant:e}});return t},u=async(e,t)=>{let{data:n}=await i.default.post("/api/tenant-domain/verify-domain",e,{headers:{token:(0,a.LP)(),tenant:t}});return n},c=async(e,t)=>{let{data:n}=await i.default.post("/api/tenant-domain/send-email-verification",e,{headers:{token:(0,a.LP)(),tenant:t}});return n},d=async e=>{let{data:t}=await i.default.post("/api/tenant-domain/verify-domain-by-email",e);return t},m="/api/tenant-domain/trial-verification",p=async e=>{let{data:t}=await i.default.get(m);return t},h=async e=>{let{data:t}=await i.default.post("".concat(m,"/start"));return t},f=async e=>{let{data:t}=await i.default.post("".concat(m,"/check"));return t},g=async(e,t)=>{let{data:n}=await i.default.post("".concat(m,"/review-request"),e);return n};var y=n(29827),v=n(21770),w=n(71632),C=n(42858);let x="tenant_domains",_="trial_verification",A=e=>{let{queryKey:t}=e;return!!(t.includes(x)||t.includes(_))},b=()=>{let{active_tenant:e}=(0,C.CG)(e=>e.app),t=(0,y.useQueryClient)(),{mutateAsync:n,isPending:i}=(0,v.useMutation)({mutationFn:t=>r(t,e||""),onSuccess:()=>{t.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return A({queryKey:t})}})}});return{createTenantDomain:n,isCreatingTenantDomain:i}},F=()=>{let{active_tenant:e}=(0,C.CG)(e=>e.app),t=(0,y.useQueryClient)(),{mutateAsync:n,isPending:i}=(0,v.useMutation)({mutationFn:t=>u(t,e||""),onSuccess:()=>{t.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return A({queryKey:t})}})}});return{checkDomainStatus:n,isCheckingDomainStauts:i}},j=()=>{let{active_tenant:e}=(0,C.CG)(e=>e.app),t=(0,y.useQueryClient)(),{mutateAsync:n,isPending:i}=(0,v.useMutation)({mutationFn:t=>c(t,e||""),onSuccess:()=>{t.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return A({queryKey:t})}})}});
1return{sendDomainVerificationEmail:n,isSendingEmail:i}},S=()=>{let{mutateAsync:e,isPending:t}=(0,v.useMutation)({mutationFn:d});return{verifyDomainByEmail:e,isVerifyingDomainByEmail:t}},M=()=>{let{active_tenant:e}=(0,C.CG)(e=>e.app),t=(0,y.useQueryClient)(),{mutateAsync:n,isPending:i}=(0,v.useMutation)({mutationFn:t=>l(t,e||""),onSuccess:()=>{t.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return A({queryKey:t})||t.includes("identityProviderDomains")}})}});return{deleteTenantDomain:n,isDeletingTenantDomain:i}},Z=()=>{let{active_tenant:e}=(0,C.CG)(e=>e.app),{data:t,isFetching:n}=(0,w.useQuery)({queryKey:["tenant_domains",e],queryFn:()=>o(e||""),refetchOnWindowFocus:"always",refetchOnMount:"always",enabled:!!e});return{domains:t,isGettingTenantDomains:n}},V=()=>{let{active_tenant:e}=(0,C.CG)(e=>e.app),t=(0,y.useQueryClient)(),{mutateAsync:n,isPending:i}=(0,v.useMutation)({mutationFn:()=>s(e||""),onSuccess:()=>{t.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return A({queryKey:t})}})}});return{syncTenantDomain:n,isSyncingTenantDomain:i}},k=e=>e.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return t.includes(_)||t.includes(x)||"currentUserTenant"===t[0]}}),I=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{active_tenant:t}=(0,C.CG)(e=>e.app),{data:n,isFetching:i,isFetched:a}=(0,w.useQuery)({queryKey:["trial_verification",t],queryFn:()=>p(t||""),enabled:e,refetchOnWindowFocus:!1,retry:!1});return{trialVerification:n,isGettingTrialVerification:i,isTrialVerificationFetched:a}},L=()=>{let{active_tenant:e}=(0,C.CG)(e=>e.app),{mutateAsync:t,isPending:n}=(0,v.useMutation)({mutationFn:()=>h(e||"")});return{startTrialVerification:t,isStartingTrialVerification:n}},T=()=>{let{active_tenant:e}=(0,C.CG)(e=>e.app),t=(0,y.useQueryClient)(),{mutateAsync:n,isPending:i}=(0,v.useMutation)({mutationFn:()=>f(e||""),onSuccess:e=>{(null==e?void 0:e.verified)&&k(t)}});return{checkTrialVerification:n,isCheckingTrialVerification:i}},H=()=>{let{active_tenant:e}=(0,C.CG)(e=>e.app),t=(0,y.useQueryClient)(),{mutateAsync:n,isPending:i}=(0,v.useMutation)({mutationFn:t=>g(t,e||""),onSuccess:()=>k(t)});return{requestTrialReview:n,isRequestingTrialReview:i}}},14171:function(e,t,n){n.d(t,{AU:function(){return v},Ei:function(){return m},IU:function(){return y},aF:function(){return c},af:function(){return h},dD:function(){return p},ey:function(){return w},ft:function(){return g},oA:function(){return f},pg:function(){return C},zq:function(){return d}});var i=n(71632),a=n(29827),r=n(21770),l=n(47847),o=n(82003),s=n(2265),u=n(42858);n(56639);let c=()=>{let{data:e,isFetching:t}=(0,i.useQuery)({queryKey:["getUser"],queryFn:()=>(0,l.PR)((0,o.LP)())});return{user:e,isGettingUser:t}},d=()=>{let{active_tenant:e}=(0,u.CG)(e=>e.app),{data:t,isFetching:n}=(0,i.useQuery)({queryKey:["getUsersProfile"],queryFn:()=>(0,l.XG)(e||""),enabled:!!e});return{usersProfile:t,isGettingUserProfile:n}},m=e=>{let{enabled:t,tenant_id:n,search:a}
1=e,[r,o]=(0,s.useState)(1),[u,c]=(0,s.useState)(0),{data:d,isFetching:m}=(0,i.useQuery)({queryKey:["tenantUsersFor",r,a,n],queryFn:e=>{let{queryKey:t}=e;return(0,l.kL)({tenant_id:n,limit:20,offset:(t[1]-1)*20,search:a||null})},enabled:t});return(0,s.useEffect)(()=>{d&&!u&&c(d.total)},[d]),{users:d,total:u,isGettingUsers:m,page:r,setPage:o,pageSize:20}},p=e=>{let{enabled:t,search:n}=e,{active_tenant:a}=(0,u.CG)(e=>e.app),[r,o]=(0,s.useState)(1),[c,d]=(0,s.useState)(0),{data:m,isFetching:p}=(0,i.useQuery)({queryKey:["tenantUsers",r,n],queryFn:e=>{let{queryKey:t}=e;return(0,l.$Z)({limit:20,offset:(t[1]-1)*20,search:n||null},a||"")},enabled:!!t&&!!a});return(0,s.useEffect)(()=>{m&&!c&&d(m.total)},[m]),{users:m,total:c,isGettingUsers:p,page:r,setPage:o,pageSize:20}},h=e=>{let{enabled:t,search:n}=e,[a,r]=(0,s.useState)(1),[o,u]=(0,s.useState)(0),{data:c,isFetching:d}=(0,i.useQuery)({queryKey:["superAdmins",a,n],queryFn:e=>{let{queryKey:t}=e;return(0,l.Gf)({limit:20,offset:(t[1]-1)*20,search:n||null})},enabled:t});return(0,s.useEffect)(()=>{c&&!o&&u(c.total)},[c]),{superAdmins:c,total:o,isGettingUsers:d,page:a,setPage:r,pageSize:20}},f=()=>{let e=(0,a.useQueryClient)(),{mutateAsync:t,isPending:n}=(0,r.useMutation)({mutationFn:l.ZJ,onSuccess:()=>{e.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return t.includes("superAdmins")}})}});return{createSuperAdmin:t,isCreatingSuperAdmin:n}},g=()=>{let e=(0,a.useQueryClient)(),{mutateAsync:t,isPending:n}=(0,r.useMutation)({mutationFn:l.JP,onSuccess:()=>{e.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return t.includes("superAdmins")}})}});return{deleteSuperAdmin:t,isDeletingSuperAdmin:n}},y=()=>{let e=(0,a.useQueryClient)(),{mutateAsync:t,isPending:n}=(0,r.useMutation)({mutationFn:l.U_,onSuccess:()=>{e.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return t.includes("superAdmins")}})}});return{updateSuperADmin:t,isUpdatingUserAdmin:n}},v=()=>{let[e,t]=(0,s.useState)(null),{data:n,isFetching:a}=(0,i.useQuery)({queryKey:["tenantOwner",e],queryFn:()=>(0,l.fV)({tenant_id:e}),enabled:!!e});return{tenantOwner:n,isGettingOwner:a,setTenantId:t}},w=()=>{let e=(0,a.useQueryClient)(),{mutateAsync:t,isPending:n}=(0,r.useMutation)({mutationFn:l.wX,onSuccess:()=>{e.invalidateQueries({predicate:e=>{let{queryKey:t}=e;return"tenantOwner"===t[0]||"tenantUsers"===t[0]||"tenantUsersFor"==t[0]||"getUser"==t[0]||"getUsersProfile"==t[0]}})}});return{updateUserPersonalInfo:t,isUpdatingPersonalIno:n}},C=()=>{let{data:e,isLoading:t}=(0,i.useQuery)({queryKey:["getUser"],queryFn:()=>(0,l.PR)((0,o.LP)())});return{data:e,isLoading:t}}},2997:function(e,t,n){var i=n(57437);n(2265),t.Z=e=>{let{fill:t="#F08C00",height:n=13,width:a=14,...r}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:n,viewBox:"0 0 14 13",fill:"none",...r,children:(0,i.jsx)("path",{fill:t,fillRule:"evenodd",d:"M5.977.59a2 2 0 0 1 2.762.747L13.47 9.5a.66.66 0 0 1 .042.084 2 2 0 0 1-1.84 2.75H2.296a2 2 0 0 1-1.821-2.75.667.667 0 0 1 .041-.084l4.73-8.162A2 2 0 0 1 5.977.59ZM2.296 11A.643.643 0 0 1 2.333 11h9.33a.668.668 0 0 0 .625-.88L7.583 2l-.007-.01a.667.667 0 0 0-1.167 0L6.403 2l-4.706 8.12a.666.666 0 0 0 .599.881ZM7 4.333c.368 0 .666.299.666.667v1.333a.667.667 0 0 1-1.333 0V5c0-.368.298-.667.667-.667Zm0 4c.368 0 .666.299.666.667v.007a.667.667 0 0 1-1.333 0V9c0-.368.298-.667.667-.667Z",clipRule:"evenodd"})})}},93382:function(e,t,n){var i=n(57437);n(2265),t.Z=e=>{let{height:t=16,width:n=16,color:a="#25262B"}=e;return(0,i.jsx)("svg",{style:{pointerEvents:"none"},width:n,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23441 5.83432C4.38443 5.68434 4.58788 5.60009 4.80001 5.60009C5.01214 5.60009 5.21559 5.68434 5.36561 5.83432L8.00001 8.46872L10.6344 5.83432C10.7082 5.75791 10.7965 5.69696 10.8941 5.65504C10.9917 5.61311 11.0967 5.59104 11.2029 5.59012C11.3091 5.5892 11.4145 5.60944 11.5128 5.64966C11.6111 5.68989 11.7004 5.74929 11.7755 5.8244C11.8506 5.89952 11.91 5.98884 11.9503 6.08716C11.9905 6.18547 12.0107 6.29082 12.0098 6.39704C12.0089 6.50326 11.9868 6.60824 11.9449 6.70584C11.903 6.80345 11.842 6.89172 11.7656 6.96552L8.56561 10.1655C8.41559 10.3155 8.21214 10.3997 8.00001 10.3997C7.78788 10.3997 7.58443 10.3155 7.43441 10.1655L4.23441 6.96552C4.08444 6.8155 4.00018 6.61205 4.00018 6.39992C4.00018 6.18779 4.08444 5.98434 4.23441 5.83432Z",fill:a})})}},41301:function(e,t,n){var i=n(57437);n(2265),t.Z=e=>{let{color:t="white",height:n=16,width:a=16}
1=e;return(0,i.jsx)("svg",{style:{pointerEvents:"none"},width:a,height:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.52857 5.52851C7.78892 5.26816 8.21103 5.26816 8.47138 5.52851L12.4714 9.52851C12.7317 9.78886 12.7317 10.211 12.4714 10.4713C12.211 10.7317 11.7889 10.7317 11.5286 10.4713L7.99998 6.94273L4.47138 10.4713C4.21103 10.7317 3.78892 10.7317 3.52858 10.4713C3.26823 10.211 3.26823 9.78886 3.52858 9.52851L7.52857 5.52851Z",fill:t})})}},70775:function(e,t,n){n.d(t,{$l:function(){return a},gy:function(){return o},pJ:function(){return l},sz:function(){return r}});var i=n(57437);n(2265);let a=e=>{let{width:t=24,height:n=24,fill:a="#141517",...r}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,fill:"none",viewBox:"0 0 24 24",...r,children:(0,i.jsx)("path",{fill:a,fillRule:"evenodd",d:"M11 4a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2h-2ZM8.17 4A3.001 3.001 0 0 1 11 2h2c1.306 0 2.418.835 2.83 2H17a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1.17Zm0 2H7a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1.17A3.001 3.001 0 0 1 13 8h-2a3.001 3.001 0 0 1-2.83-2ZM8 12a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z",clipRule:"evenodd"})})},r=e=>{let{width:t=16,height:n=16,fill:a="#2862F6",...r}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,fill:"none",viewBox:"0 0 16 16",...r,children:(0,i.jsx)("path",{fill:a,fillRule:"evenodd",d:"M8 2.667a5.333 5.333 0 1 0 0 10.666A5.333 5.333 0 0 0 8 2.667ZM1.333 8a6.667 6.667 0 1 1 13.334 0A6.667 6.667 0 0 1 1.334 8Zm6-2.667c0-.368.299-.666.667-.666h.007a.667.667 0 1 1 0 1.333H8a.667.667 0 0 1-.667-.667ZM6.667 8c0-.368.298-.667.667-.667H8c.368 0 .667.299.667.667v2a.667.667 0 0 1 0 1.333H8a.667.667 0 0 1-.667-.666v-2A.667.667 0 0 1 6.667 8Z",clipRule:"evenodd"})})},l=e=>{let{width:t=16,height:n=16,fill:a="#FA5252",...r}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,fill:"none",...r,children:(0,i.jsx)("path",{fill:a,fillRule:"evenodd",d:"M5.724 1.724c.25-.25.589-.39.943-.39h2.666a1.333 1.333 0 0 1 1.334 1.333V4h2.666a.667.667 0 1 1 0 1.333h-.053l-.614 7.364a2 2 0 0 1-2 1.97H5.334a2 2 0 0 1-2-1.97L2.72 5.333h-.053a.667.667 0 0 1 0-1.333h2.666V2.667c0-.354.14-.693.39-.943Zm-1.666 3.61.606 7.277a.665.665 0 0 1 .003.056.667.667 0 0 0 .666.666h5.334a.667.667 0 0 0 .666-.666c0-.019.001-.037.003-.056l.606-7.278H4.058ZM9.333 4H6.667V2.667h2.666V4ZM6.667 6.667c.368 0 .666.298.666.666v4a.667.667 0 0 1-1.333 0v-4c0-.368.298-.666.667-.666Zm2.666 0c.369 0 .667.298.667.666v4a.667.667 0 0 1-1.333 0v-4c0-.368.298-.666.666-.666Z",clipRule:"evenodd"})})},o=e=>{let{width:t=24,height:n=24,fill:a="#5A87F8",...r}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,fill:"none",...r,children:(0,i.jsx)("path",{fill:a,fillRule:"evenodd",d:"M11 4a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2h-2ZM8.17 4A3.001 3.001 0 0 1 11 2h2c1.306 0 2.418.835 2.83 2H17a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1.17Zm0 2H7a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-1.17A3.001 3.001 0 0 1 13 8h-2a3.001 3.001 0 0 1-2.83-2Zm7.537 5.293a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 1 1 1.414-1.414L11 14.586l3.293-3.293a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})})}},86997:function(e,t,n){var i=n(57437);n(2265),t.Z=e=>{let{height:t=18,width:n=18,color:a="#F03E3E",...r}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:t,viewBox:"0 0 18 18",fill:"none",...r,children:(0,i.jsx)("path",{fill:a,fillRule:"evenodd",d:"M9 2.333a6.667 6.667 0 1 0 0 13.334A6.667 6.667 0 0 0 9 2.333ZM.667 9a8.333 8.333 0 1 1 16.667 0A8.333 8.333 0 0 1 .667 9ZM9 4.833c.46 0 .834.374.834.834V9a.833.833 0 1 1-1.667 0V5.667c0-.46.373-.834.833-.834Zm-.833 7.5c0-.46.373-.833.833-.833h.009a.833.833 0 1 1 0 1.667H9a.833.833 0 0 1-.833-.834Z",clipRule:"evenodd"})})}},84432:function(e,t,n){var i=n(57437);n(2265),t.Z=e=>{let{color:t="#141517",height:n=32,width:a=32}=e;return(0,i.jsx)("svg",{width:a,height:n,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.33337 5.33333C8.97975 5.33333 8.64061 5.47381 8.39056 5.72386C8.14052 5.9739 8.00004 6.31304 8.00004 6.66666V25.3333C8.00004 25.687 8.14052 26.0261 8.39056 26.2761C8.64061 26.5262 8.97975 26.6667 9.33337 26.6667H22.6667C23.0203 26.6667 23.3595 26.5262 23.6095 26.2761C23.8596 26.0261 24 25.687 24 25.3333V12H20C19.2928 12 18.6145 11.719 18.1144 11.2189C17.6143 10.7189 17.3334 10.0406 17.3334 9.33333V5.33333H9.33337ZM20 7.21895L22.1144 9.33333H20V7.21895ZM6.50495 3.83824C7.25509 3.08809 8.27251 2.66666 9.33337 2.66666H18.6667C19.0203 2.66666 19.3595 2.80714 19.6095 3.05719L26.2762 9.72386C26.5262 9.9739 26.6667 10.313 26.6667 10.6667V25.3333C26.6667 26.3942 26.2453 27.4116 25.4951 28.1618C24.745 28.9119 23.7276 29.3333 22.6667 29.3333H9.33337C8.27251 29.3333 7.25509 28.9119 6.50495 28.1618C5.7548 27.4116 5.33337 26.3942 5.33337 25.3333V6.66666C5.33337 5.6058 5.7548 4.58838 6.50495 3.83824ZM15.0572 13.7239C15.5779 13.2032 16.4222 13.2032 16.9428 13.7239L20.2762 17.0572C20.7969 17.5779 20.7969 18.4221 20.2762 18.9428C19.7555 19.4635 18.9113 19.4635 18.3906 18.9428L17.3334 17.8856V22.6667C17.3334 23.403 16.7364 24 16 24C15.2637 24 14.6667 23.403 14.6667 22.6667V17.8856L13.6095 18.9428C13.0888 19.4635 12.2446 19.4635 11.7239 18.9428C11.2032 18.4221 11.2032 17.5779 11.7239 17.0572L15.0572 13.7239Z",fill:t})})}},8621:function(e,t,n){var i=n(57437);n(2265),t.Z=e=>{let{color:t="#2862F6",height:n=16,width:a=16}
1=e;return(0,i.jsx)("svg",{width:a,height:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00004 2.66659C5.05452 2.66659 2.66671 5.0544 2.66671 7.99992C2.66671 10.9454 5.05452 13.3333 8.00004 13.3333C10.9456 13.3333 13.3334 10.9454 13.3334 7.99992C13.3334 5.0544 10.9456 2.66659 8.00004 2.66659ZM1.33337 7.99992C1.33337 4.31802 4.31814 1.33325 8.00004 1.33325C11.6819 1.33325 14.6667 4.31802 14.6667 7.99992C14.6667 11.6818 11.6819 14.6666 8.00004 14.6666C4.31814 14.6666 1.33337 11.6818 1.33337 7.99992ZM7.33337 5.33325C7.33337 4.96506 7.63185 4.66659 8.00004 4.66659H8.00671C8.3749 4.66659 8.67337 4.96506 8.67337 5.33325C8.67337 5.70144 8.3749 5.99992 8.00671 5.99992H8.00004C7.63185 5.99992 7.33337 5.70144 7.33337 5.33325ZM6.66671 7.99992C6.66671 7.63173 6.96518 7.33325 7.33337 7.33325H8.00004C8.36823 7.33325 8.66671 7.63173 8.66671 7.99992V9.99992C9.0349 9.99992 9.33337 10.2984 9.33337 10.6666C9.33337 11.0348 9.0349 11.3333 8.66671 11.3333H8.00004C7.63185 11.3333 7.33337 11.0348 7.33337 10.6666V8.66659C6.96518 8.66659 6.66671 8.36811 6.66671 7.99992Z",fill:t})})}},71050:function(e,t,n){n.d(t,{Hb:function(){return a},K6:function(){return r},N$:function(){return d},Tq:function(){return s},Wm:function(){return u},gm:function(){return l},mB:function(){return o}});let i="partner_visit",a="callstrike:partner-visit-ended",r=e=>{try{localStorage.setItem(i,JSON.stringify(e))}catch(e){}},l=()=>{try{localStorage.removeItem(i)}catch(e){}},o=()=>{try{let e=localStorage.getItem(i);return e?JSON.parse(e):null}catch(e){return null}},s=e=>{var t;let n=null==e?void 0:e.response;if((null==n?void 0:n.status)!==403)return null;let i=null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.detail;return(null==i?void 0:i.code)!=="partner_visit_required"?null:i.ended_how||"ended"},u=e=>{window.dispatchEvent(new CustomEvent(a,{detail:e}))},c=e=>!!e&&"object"==typeof e&&!0===e.via_partner_access,d=(e,t)=>!!e&&(t||[]).some(t=>c(t)&&t.tenant_id===e.tenant_id)},60923:function(e,t,n){n.d(t,{M:function(){return i}});let i=e=>{var t;let n=null==e?void 0:e.response,i=null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.detail;return{status:null==n?void 0:n.status,message:"string"==typeof(null==i?void 0:i.message)?i.message:void 0,code:null==i?void 0:i.code}}}}]);
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.