PageSourceSearch

https://system.privco.com/_next/static/chunks/pages/contact-lists-4964857fc05a47f2.js

js privco.com collected 2026-09-24 08:32:02 UTC 20,630 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5317],{68595:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact-lists",function(){return s(89410)}])},29826:function(e,t,s){"use strict";var l=s(85893),n=s(41664),i=s.n(n),c=s(35059),r=s(91639),a=s(33838),o=s(66384),d=s(56877),u=s(79352);let h=(0,c.G)((e,t)=>{let{children:s,variant:n="inline",isExternal:c=!1,hasIcon:h=!1,fontSize:m="inherit",fontWeight:x="bold",color:j="blue.600",activeColor:p="blue.800",truncateDirection:f="ltr",...C}=e,g=(0,r.jC)("Button",{variant:"link"}),y={button:{display:"inline-flex",alignItems:"center"},truncate:{...g,borderRadius:0,display:"inline-flex",alignItems:"center",maxW:"100%"}},b=y[n];return(0,l.jsxs)(a.r,{as:c?void 0:i(),ref:t,...b,fontSize:m,isExternal:c,fontWeight:x,color:j,_active:{color:p},w:"button"===n?"auto":void 0,...C,children:["truncate"===n?(0,l.jsx)(o.m.div,{sx:{direction:f},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"min-content",children:s}):s,h&&(0,l.jsx)(d.J,{as:u.uXP,ml:"2px",mb:"inline"===n?"3px":0})]})});t.Z=h},61713:function(e,t,s){"use strict";var l=s(85893),n=s(67294),i=s(11163),c=s(62207);let r=e=>{let{events:t}=(0,i.useRouter)(),{onClose:s}=e;return(0,n.useEffect)(()=>{let e=()=>{"function"==typeof s&&s()};return t.on("routeChangeStart",e),()=>{t.off("routeChangeStart",e)}},[t,s]),(0,l.jsx)(c.u_,{...e,blockScrollOnMount:!1})};t.Z=r},83685:function(e,t,s){"use strict";var l=s(85893),n=s(67294),i=s(11163),c=s(31963),r=s(31948),a=s(44504),o=s(55819),d=s(73793),u=s(38267),h=s(5370),m=s(28129),x=s(8399),j=s(47018),p=s(54641),f=s(96272),C=s(87536),g=s(8100),y=s(61713),b=s(27860);let v=e=>{let{isOpen:t,onClose:s}=e,{setFocus:v,register:w,handleSubmit:z,formState:{isSubmitting:k,errors:S}}=(0,C.cI)(),[L,O]=(0,n.useState)(!1),E=(0,i.useRouter)(),{mutate:Z}=(0,g.ZP)("/system/contact-list"),P=async e=>{let{name:t}=e;O(!1);try{let[e]=await (0,b.v_)("/system/contact-list/bulk-create",{newContactListName:t});Z(t=>({...t,contactLists:[...t.contactLists,e]})),E.push("/contact-lists/".concat(e.slug)),s()}catch(e){O(!0)}};return(0,n.useEffect)(()=>{t&&setTimeout(()=>{v("name")})},[v,t]),(0,l.jsxs)(y.Z,{isOpen:t,onClose:s,isCentered:!0,children:[(0,l.jsx)(c.Z,{}),(0,l.jsxs)(r.h,{m:4,as:"form",onSubmit:z(P),children:[(0,l.jsx)(a.x,{children:"Create Contact Download List"}),(0,l.jsx)(o.o,{}),(0,l.jsx)(d.f,{children:(0,l.jsxs)(u.NI,{id:"contactlist-name",isInvalid:!!S.name||L,children:[(0,l.jsx)(h.l,{children:"Contact Download List Name"}),(0,l.jsx)(m.I,{type:"text",placeholder:"Enter a name",...w("name",{required:"Contact List name is required"})}),S.name&&(0,l.jsx)(x.J1,{children:S.name.message}),L&&(0,l.jsx)(x.J1,{children:"It looks like there was an issue, please try again"})]})}),(0,l.jsx)(j.m,{children:(0,l.jsxs)(p.U,{children:[(0,l.jsx)(f.z,{colorScheme:"gray",onClick:s,"data-cy":"click-close-create-contactlist-button",children:"Cancel"}),(0,l.jsx)(f.z,{type:"submit",colorScheme:"green",isLoading:k,"data-cy":"click-create-contactlist-button",children:"Create"})]})})]})]})};t.Z=v},55845:function(e,t,s){"use strict";var l=s(85893),n=s(67294),i=s(11163),c=s(57350),r=s(31963),a=s(31948),o=s(44504),d=s(55819),u=s(73793),h=s(88911),m=s(47018),x=s(54641),j=s(96272),p=s(8100),f=s(29826),C=s(61713),g=s(27860);let y=e=>{let{isOpen:t,onClose:s,contactlistToDelete:y,redirect:b=!1}=e,[v,w]=(0,n.useState)(!1),z=(0,c.p)(),k=(0,i.useRouter)(),{mutate:S}=(0,p.ZP)("/system/contact-list"),L=async()=>{w(!0);try{let e=await (0,g.ZP)("/system/contact-list/delete/".concat(y.slug),{method:"DELETE"});if(204===e.status)S(e=>({...e,contactListslists:[...e.contactLists.filter(e=>{let{slug:t}=e;return t!==y.slug})]})),z({title:"Success",description:"Contact list deleted successfully",status:"success",duration:5e3,isClosable:!0}),s(),b&&k.push("/contact-lists");else throw Error("Contact list failed to delete")}catch(e){z({title:"Error",description:"There was a problem deleting that contact list",status:"error",duration:5e3,isClosable:!0})}finally{w(!1)}};return(0,l.jsxs)(C.Z,{isOpen:t,onClose:s,isCentered:!0,children:[(0,l.jsx)(r.Z,{}),(0,l.jsxs)(a.h,{m:4,children:[(0,l.jsx)(o.x,{children:"Confirm Delete"}),(0,l.jsx)(d.o,{}),(0,l.jsx)(u.f,{children:(0,l.jsxs)(h.x,{fontSize:"lg",children:["Are you sure you want to delete"," ",(0,l.jsx)(f.Z,{href:"/contact-lists/".concat(y.slug),onClick:s,children:y.name}),"?"]})}),(0,l.jsx)(m.m,{children:(0,l.jsxs)(x.U,{children:[(0,l.jsx)(j.z,{colorScheme:"gray",onClick:s,"data-cy":"click-close-delete-contactlist-button",children:"Cancel"}),(0,l.jsx)(j.z,{colorScheme:"red",variant:"outline",onClick:L,isLoading:v,"data-cy":"click-delete-contactlist-button",children:"Delete"})]})})]})]})};t.Z=y},24723:function(e,t,s){"use strict";var l=s(85893),n=s(67294),i=s(62207),c=s(31963),r=s(31948),a=s(44504),o=s(55819),d=s(73793),u=s(38267),h=s(
15370),m=s(28129),x=s(8399),j=s(47018),p=s(54641),f=s(96272),C=s(87536),g=s(8100),y=s(27860);let b=e=>{let{isOpen:t,onClose:s,slug:b,contactlistName:v,mutateContactlistDetails:w}=e,{setFocus:z,register:k,handleSubmit:S,reset:L,formState:{isSubmitting:O,errors:E}}=(0,C.cI)(),[Z,P]=(0,n.useState)(!1),M=(0,n.useRef)(),{mutate:D}=(0,g.ZP)("/system/contact-list"),F=async e=>{let{name:t}=e;P(!1);try{let e=await (0,y.r$)("/system/contact-list/patch/".concat(b),{name:t});w&&w(t=>({...t,...e,owner:t.owner}));let l={...e,createdOn:e.createdOn.date,updatedOn:e.updatedOn.date};D(e=>({...e,contactLists:e.contactLists.map(e=>e.slug===b?l:e)})),s()}catch(e){P(!0)}};return(0,n.useEffect)(()=>{t&&(L({name:v}),setTimeout(()=>{z("name")}))},[z,t,L,v]),(0,l.jsxs)(i.u_,{isOpen:t,onClose:s,isCentered:!0,initialFocusRef:M,children:[(0,l.jsx)(c.Z,{}),(0,l.jsxs)(r.h,{m:4,as:"form",onSubmit:S(F),children:[(0,l.jsx)(a.x,{children:"Rename Contact List"}),(0,l.jsx)(o.o,{}),(0,l.jsx)(d.f,{children:(0,l.jsxs)(u.NI,{id:"name",isInvalid:!!E.name||Z,children:[(0,l.jsx)(h.l,{children:"Contact List Name"}),(0,l.jsx)(m.I,{type:"text",...k("name",{required:"Contact list name is required"})}),!!E.name&&(0,l.jsx)(x.J1,{children:E.name.message}),Z&&(0,l.jsx)(x.J1,{children:"Looks like there was an issue. Please try again."})]})}),(0,l.jsx)(j.m,{children:(0,l.jsxs)(p.U,{children:[(0,l.jsx)(f.z,{type:"button",colorScheme:"gray",onClick:s,"data-cy":"click-close-rename-contactlist-button",children:"Cancel"}),(0,l.jsx)(f.z,{type:"submit",colorScheme:"green",isLoading:O,"data-cy":"click-rename-contactlist-button",children:"Update"})]})})]})]})};t.Z=b},52935:function(e,t,s){"use strict";var l=s(85893),n=s(56877);let i=e=>(0,l.jsxs)(n.J,{viewBox:"0 0 477 102",...e,children:[(0,l.jsx)("title",{children:"PrivCo Logo"}),(0,l.jsx)("path",{fill:"#1E8EFF",d:"M116.14 87.39V18c0-3.56 2-5.56 5.57-5.56H138c26.38 0 37.84 7.23 37.84 28.37s-11.46 28.38-37.72 28.38h-9v18.24c0 3.56-2 5.57-5.56 5.57h-1.78c-3.63 0-5.64-2-5.64-5.61zm23.71-30c15.24 0 22.81-3.56 22.81-16.8s-7.57-16.69-22.81-16.69h-10.8v33.49h10.8z"}),(0,l.jsx)("path",{fill:"#1E8EFF",d:"M123.49 93.63h-1.78c-3.9 0-6.24-2.33-6.24-6.24V18c0-3.9 2.34-6.23 6.24-6.23H138c27.71 0 38.51 8.14 38.51 29s-10.77 29-38.39 29h-8.35v17.57c-.05 3.96-2.38 6.29-6.28 6.29zm-1.78-80.56c-3.2 0-4.9 1.69-4.9 4.89v69.43c0 3.21 1.7 4.9 4.9 4.9h1.78c3.2 0 4.89-1.69 4.89-4.9V68.48h9.69c13.53 0 22.53-2 28.31-6.14 6-4.31 8.74-11.17 8.74-21.57s-2.78-17.26-8.75-21.57c-5.79-4.18-14.82-6.13-28.42-6.13h-16.24zm18.14 45h-11.47V23.19h11.47c8.43 0 13.82 1.09 17.49 3.53 4.08 2.73 6 7.12 6 13.83-.01 14.5-9.4 17.45-23.49 17.45v.07zm-10.13-1.34h10.13c16.34 0 22.14-4.22 22.14-16.13s-5.8-16-22.14-16h-10.13v32.13zm91.46-22.19l-.11.89c-.33 3.56-2.45 4.9-6.12 4.9-10.46.22-15.46 7.79-15.46 21.14v25.92c0 3.56-2 5.57-5.57 5.57h-1.33c-3.56 0-5.57-2-5.57-5.57V34.87c0-3.56 2-5.56 5.57-5.56h1.33c3.56 0 5.57 1.89 5.57 5.34V40c2-5.67 7.12-11.46 16.46-11.46 3.79-.01 5.68 2.46 5.23 6z"}),(0,l.jsx)("path",{fill:"#1E8EFF",d:"M193.92 93.63h-1.33c-3.91 0-6.24-2.33-6.24-6.24V34.87c0-3.9 2.33-6.23 6.24-6.23h1.33c4 0 6.24 2.19 6.24 6v2.21c3.13-5.69 8.84-9 15.79-9a6 6 0 014.64 1.82 6.09 6.09 0 011.26 4.94l-.11.89c-.35 3.69-2.57 5.49-6.79 5.49-9.81.21-14.79 7.09-14.79 20.47v25.92c0 3.92-2.33 6.25-6.24 6.25zM192.59 30c-3.2 0-4.9 1.69-4.9 4.89v52.52c0 3.21 1.7 4.9 4.9 4.9h1.33c3.2 0 4.9-1.69 4.9-4.9V61.47c0-14.05 5.57-21.59 16.12-21.81 3.55 0 5.18-1.29 5.47-4.29l.11-.91a4.834 4.834 0 00-.93-3.89A4.697 4.697 0 00216 29.2a15.997 15.997 0 00-15.83 11l-1.3 3.68v-9.25c0-3.05-1.7-4.67-4.9-4.67l-1.38.04zm36.53-15.93c0-4.23 3.12-6.68 7.35-6.68 3.89 0 7.34 2.45 7.34 6.68 0 4.23-3.45 6.67-7.34 6.67-4.23 0-7.35-2.44-7.35-6.67zm1 73.32V34.87c0-3.56 2-5.56 5.46-5.56H237c3.5 0 5.47 2 5.47 5.56v52.52c0 3.56-2 5.57-5.47 5.57h-1.42c-3.44.04-5.41-1.96-5.41-5.57h-.05z"}),(0,l.jsx)("path",{fill:"#1E8EFF",d:"M237.05 93.63h-1.41c-3.85 0-6.14-2.33-6.14-6.24V34.87c0-3.9 2.29-6.23 6.14-6.23h1.41c3.84 0 6.14 2.33 6.14 6.23v52.52c0 3.91-2.3 6.24-6.14 6.24zM235.64 30c-3.14 0-4.8 1.69-4.8 4.89v52.52c0 3.21 1.66 4.9 4.8 4.9h1.41c3.14 0 4.8-1.69 4.8-4.9V34.87c0-3.2-1.66-4.89-4.8-4.89l-1.41.02zm.83-8.57c-4.8 0-8-2.95-8-7.34s3.22-7.35 8-7.35c4 0 8 2.52 8 7.35s-4.02 7.32-8 7.32v.02zm0-13.35c-4.06 0-6.68 2.36-6.68 6s2.62 6 6.68 6c3.21 0 6.67-1.88 6.67-6s-3.46-6.02-6.67-6.02v.02zm39.9 80.76l-23.14-53.08c-1.67-3.78 0-6.45 4-6.45h2.12a6.48 6.48 0 016.45 4.34l18.69 45.73 18.7-45.73a6.48 6.48 0 016.45-4.34h2c4.22 0 5.89 2.67 4.22 
16.45l-23.25 53.08a6.398 6.398 0 01-6.46 4.23h-3.22a6.538 6.538 0 01-6.56-4.23z"}),(0,l.jsx)("path",{fill:"#1E8EFF",d:"M286.16 93.74h-3.22a7.182 7.182 0 01-7.18-4.63L252.61 36c-.91-2.07-.92-4 0-5.33s2.52-2.06 4.65-2.06h2.12a7.16 7.16 0 017.07 4.75l18.08 44.22 18.07-44.21a7.148 7.148 0 017.07-4.76h2c2.9 0 4.25 1.14 4.88 2.1.88 1.36.86 3.24 0 5.3l-23.26 53.07a6.999 6.999 0 01-7.13 4.66zM257.23 30a3.999 3.999 0 00-3.53 1.45c-.64 1-.59 2.42.14 4.06L277 88.58a5.875 5.875 0 005.95 3.82h3.22a5.732 5.732 0 005.84-3.82l23.26-53.08c.72-1.64.77-3.06.14-4s-1.93-1.49-3.75-1.49h-2a5.84 5.84 0 00-5.83 3.93L284.5 81.15 265.18 33.9a5.85 5.85 0 00-5.83-3.92l-2.12.02z"}),(0,l.jsx)("path",{fill:"#CCC",d:"M327.43 50.23c0-28.6 18.7-41.5 37.95-41.5 13.13 0 27.48 5.78 33.82 21.81 1.45 3.67-.44 6.23-4.11 6.89l-1.78.34c-3.45.67-5.12-.78-6.79-4-4.56-8.68-11.8-13.13-21.14-13.13-14.8 0-24.7 11.35-24.7 29.6s9.68 29.38 24.7 29.38c9.57 0 16.91-4.57 21.36-13.69 1.56-3.23 3.45-4.67 6.79-4l1.78.34c3.67.67 5.34 3.89 3.34 8.68-6.46 15.13-20.48 20.69-33.27 20.69-19.25-.02-37.95-12.03-37.95-41.41z"}),(0,l.jsx)("path",{fill:"#CCC",d:"M365.38 92.29c-10.44 0-19.91-3.5-26.65-9.86-7.83-7.38-12-18.52-12-32.2 0-13.39 4.14-24.44 12-32 6.86-6.59 16.33-10.21 26.66-10.21 7.71 0 26.5 2.16 34.45 22.23a5.688 5.688 0 01-.06 5 6.267 6.267 0 01-4.56 2.85l-1.78.34c-4 .76-5.82-1.1-7.51-4.36-4.45-8.47-11.36-12.77-20.54-12.77-14.6 0-24 11.36-24 28.93s9.2 28.71 24 28.71c9.47 0 16.45-4.48 20.76-13.31 1.81-3.76 4.06-5.06 7.52-4.37l1.77.33a5.521 5.521 0 014.07 2.73c1 1.8.89 4.17-.23 6.87-8.14 19.04-26.42 21.09-33.9 21.09zm0-82.89c-10 0-19.12 3.49-25.73 9.84-7.55 7.26-11.55 18-11.55 31 0 30 19.26 40.72 37.28 40.72 7.21 0 24.84-2 32.65-20.29 1-2.3 1.07-4.27.3-5.7a4.218 4.218 0 00-3.14-2l-1.78-.34c-2.83-.56-4.53.46-6.06 3.64-4.49 9.2-12.09 14.07-22 14.07-15.65 0-25.37-11.52-25.37-30S350 20 365.38 20c9.58 0 17.09 4.67 21.73 13.49 1.72 3.33 3.2 4.22 6.07 3.66l1.78-.33a5 5 0 003.64-2.19 4.393 4.393 0 000-3.81C390.94 11.48 372.82 9.4 365.38 9.4zM411 58.46c0-22.92 15.91-33 32.16-33 16.25 0 32.26 10.12 32.26 33 0 23.15-15.91 33.27-32.15 33.27S411 81.61 411 58.46zm52 0c0-13.9-8-22.47-19.8-22.47s-19.7 8.45-19.7 22.47 7.9 22.59 19.81 22.59c11.91 0 19.69-8.57 19.69-22.59z"}),(0,l.jsx)("path",{fill:"#CCC",d:"M443.27 92.4c-8.83 0-16.9-2.88-22.72-8.12-6.69-6-10.22-14.95-10.22-25.82 0-10.87 3.53-19.62 10.21-25.61 5.81-5.23 13.85-8.1 22.62-8.1 8.77 0 16.83 2.87 22.67 8.1 6.71 6 10.26 14.86 10.26 25.61s-3.52 19.79-10.2 25.82c-5.81 5.24-13.84 8.12-22.62 8.12zm-.11-66.31c-14.53 0-31.49 8.48-31.49 32.37 0 24.07 17 32.6 31.6 32.6 14.6 0 31.48-8.53 31.48-32.6 0-10.36-3.39-18.87-9.81-24.62-5.6-5-13.33-7.75-21.78-7.75zm.11 55.63c-12.44 0-20.48-9.13-20.48-23.26s8-23.14 20.37-23.14c12.37 0 20.47 9.08 20.47 23.14s-7.99 23.26-20.36 23.26zm-.11-45.06c-11.74 0-19 8.35-19 21.8 0 13.45 7.33 21.92 19.14 21.92 11.55 0 19-8.6 19-21.92 0-13.32-7.52-21.8-19.14-21.8z"}),(0,l.jsx)("path",{fill:"#50FF8F",d:"M60.627 3.538L5.851 35.163a6.58 6.58 0 106.58 11.397l54.776-31.625a6.58 6.58 0 10-6.58-11.397z"}),(0,l.jsx)("path",{fill:"#AEFFCC",d:"M81.58 14.223L26.806 45.846a6.58 6.58 0 006.58 11.397L88.16 25.62a6.58 6.58 0 00-6.58-11.396z"}),(0,l.jsx)("path",{fill:"#80C7FB",d:"M69.98 43.684L15.204 75.31a6.58 6.58 0 106.58 11.397L76.56 55.081a6.58 6.58 0 00-6.58-11.397z"}),(0,l.jsx)("path",{fill:"#1E8EFF",d:"M90.21 54.765L35.433 86.39a6.58 6.58 0 006.58 11.397L96.79 66.162a6.58 6.58 0 10-6.58-11.397z"})]});t.Z=i},89410:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return q}});var l=s(85893),n=s(11163),i=s(2962),c=s(34496),r=s(67294),a=s(41664),o=s.n(a),d=s(73625),u=s(99292),h=s(71567),m=s(36963),x=s(89154),j=s(87626),p=s(10233),f=s(23100),C=s(36979),g=s(96272),y=s(204),b=s(58344),v=s(79352),w=s(79521),z=s(8100),k=s(73244),S=s(27860),L=s(83685),O=s(55845),E=s(24723),Z=s(34850),P=s(78162),M=s(52935),D=s(13258);let F=e=>{let{value:t,getCellProps:s=()=>{},onClick:n,children:i,justify:c="flex-start"}=e;return(0,l.jsx)(y.k,{onClick:n,alignItems:"center",fontSize:"sm",px:"2",py:"4",...s(),borderBottom:"1px solid",borderBottomColor:"slate.200",alignSelf:"stretch",justifyContent:c,children:(0,l.jsx)(f.xu,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexShrink:"1",width:"min-content",children:i||t})})};var I=s(56877);let W=e=>{let{column:t,value:s,justify:n="flex-start"}=e;return(0,l.jsxs)(f.xu,{as:y.k,alignItems:"center",justifyContent:n,fontSize:"sm",p:"2",color:"slate.600",...t.getHeaderProps(),position:"relative",role:"gridcell",userSelect:"none",children:[(0,l.jsx)(f.xu,{...t.getSortByToggleProps(),children:s}),t.isSorted&&(null==t?void 0:t.isSortedDesc)&&(0,l.jsx)(I.J,{as:v.ebp,ml:"2",h:"6",w:"6",color:"blue.500"}),t.isSorted&&!(null==t?void 0:t.isSortedDesc)&&(0,l.jsx)(I.J,{as:v.Tvk,ml:"2",h:"6",w:"6",color:"blue.500"})]})},T=[{Header:e=>{let{column:t}=e;return(0,l.jsx)(W,{value:"Name",column:t})},accessor:"name",sortType:D.Bg,Cell:e=>{let{cell:{value:t,getCellProps:s}}=e;return(0,l.jsx)(F,{getCellProps:s,children:(0,l.jsx)(h.u,{label:t,shouldWrapChildren:!0,children:t})})},width:250,minWidth:100},{Header:e=>{let{column:t}=e;return(0,l.jsx)(W,{value:"Items",column:t,justify:"flex-end"})},accessor:"numberOfItems",sortType:D.mK,Cell:e=>{let{cell:{value:t,getCellProps:s}}=e;
1return(0,l.jsx)(F,{value:t.toLocaleString(),getCellProps:s,justify:"flex-end"})},minWidth:60,width:25},{Header:e=>{let{column:t}=e;return(0,l.jsx)(W,{value:"Created",column:t})},accessor:"createdOn",sortType:D.Ym,Cell:e=>{let{cell:{value:t,getCellProps:s}}=e;return(0,l.jsx)(F,{value:t?(0,Z.Z)(new Date(t),"MMM dd, yyyy"):null,getCellProps:s})},width:50,minWidth:120},{Header:e=>{let{column:t}=e;return(0,l.jsx)(W,{value:"Updated",column:t})},accessor:"updatedOn",sortType:D.Ym,Cell:e=>{let{cell:{value:t,getCellProps:s}}=e;return(0,l.jsx)(F,{value:t?(0,P.Z)(new Date(t),new Date,{addSuffix:!0}):null,getCellProps:s})}},{Header:e=>{let{column:t}=e;return(0,l.jsx)(W,{value:"Owner",column:t})},id:"owner",accessor:e=>({owner:e.owner,publicCanView:e.publicCanView}),sortType:D.Bg,Cell:e=>{let{cell:{value:t,getCellProps:s}}=e;return(0,l.jsx)(F,{getCellProps:s,children:t.publicCanView?(0,l.jsx)(M.Z,{w:"5.5rem",h:"auto"}):t.owner})}}];var _=s(14418);let V=e=>{let{onOpenCreateModal:t}=e;return(0,l.jsxs)(y.k,{align:"center",justify:"space-between",my:"8",px:4,children:[(0,l.jsx)(_.X,{as:"h1",size:"md",children:"Contact Download Lists"}),(0,l.jsx)(h.u,{shouldWrapChildren:!0,label:"Create Contact Download List",placement:"left",children:(0,l.jsx)(x.h,{"aria-label":"Create List",icon:(0,l.jsx)(I.J,{as:v.p22,w:5,h:5}),colorScheme:"blue",onClick:t})})]})},B=e=>{let{column:t}=e;return(0,l.jsx)(W,{value:"Actions",justify:"center",column:t})},N=()=>{let e=(0,k.Z)(),{data:t}=(0,z.ZP)(e.loading?null:"/system/contact-list",S.ZP),{contactLists:s}=t||{},{numberOfRecentItems:n}=t||{},i=(0,r.useMemo)(()=>s||[],[s]),c=(0,r.useMemo)(()=>T,[]),[a,Z]=(0,r.useState)(null),[P,M]=(0,r.useState)(null),{isOpen:D,onOpen:I,onClose:W}=(0,d.q)(),{isOpen:_,onOpen:N,onClose:R}=(0,d.q)(),{isOpen:H,onOpen:q,onClose:J}=(0,d.q)(),A=(0,r.useCallback)(e=>{Z(e),I()},[I]),U=()=>{W(),Z(null)},Y=(0,r.useCallback)(e=>{M(e),q()},[q]),X=()=>{J(),Z(null)},G=(0,r.useCallback)(e=>{let{cell:{getCellProps:t,row:s}}=e,{canWrite:n,isOwner:i}=s.original;return(0,l.jsx)(F,{getCellProps:t,onClick:e=>e.preventDefault(),justify:"center",children:(0,l.jsxs)(u.v,{isLazy:!0,placement:"bottom-end",children:[(0,l.jsx)(h.u,{shouldWrapChildren:!0,isDisabled:n,label:"You do not have access to edit this contact list",maxW:"12rem",closeOnClick:!1,children:(0,l.jsx)(m.j,{as:x.h,size:"sm",fontSize:"lg",icon:(0,l.jsx)(v.job,{}),"aria-label":"Actions",bg:"transparent",isDisabled:!n})}),(0,l.jsxs)(j.q,{w:"max-content",children:[(0,l.jsx)(p.s,{fontSize:"md",icon:(0,l.jsx)(v.ISo,{size:"18"}),onClick:()=>Y(s.original),children:"Rename"}),(0,l.jsx)(h.u,{isDisabled:i,label:"You do not have permission to delete this contact list",closeOnClick:!1,children:(0,l.jsx)(p.s,{fontSize:"md",icon:(0,l.jsx)(v.qy0,{size:"18"}),onClick:()=>A(s.original),isDisabled:!i,children:"Delete"})})]})]})})},[A,Y]),{getTableBodyProps:K,headerGroups:$,rows:Q,prepareRow:ee}=(0,w.useTable)({columns:c,data:i,initialState:{sortBy:[{id:"updatedOn",desc:!0}]},disableMultiSort:!0,disableSortRemove:!0},w.useFlexLayout,w.useSortBy,e=>e.allColumns.push(e=>[...e,{id:"selection",disableResizing:!0,minWidth:60,width:60,maxWidth:60,Header:B,Cell:G}]));return(0,l.jsxs)(f.xu,{h:"100%",bg:"white",children:[a&&(0,l.jsx)(O.Z,{isOpen:D,onClose:U,contactlistToDelete:a}),P&&(0,l.jsx)(E.Z,{isOpen:H,onClose:X,slug:P.slug,contactlistName:P.name}),(0,l.jsx)(L.Z,{isOpen:_,onClose:R}),(0,l.jsxs)(C.W,{maxW:"6xl",h:"100%",display:"flex",flexDirection:"column",p:0,children:[(0,l.jsx)(V,{onOpenCreateModal:N}),(0,l.jsxs)(f.xu,{h:"100%",position:"relative",bg:"white",role:"grid",overflow:"auto",px:4,pb:4,children:[(0,l.jsx)(b.SV,{fallback:"An error has occured.",children:(0,l.jsx)(f.xu,{...K(),minWidth:"min-content",children:0!==n?(0,l.jsxs)(g.z,{as:o(),href:"/contact-lists/unlocked",alignItems:"center",position:"sticky",minWidth:"min-content",zIndex:1,marginTop:"0.5rem",marginBottom:"1rem",size:"sm",color:"#9a3412",backgroundColor:"#ffedd5",_hover:{bg:"#f8e3c8"},children:["Recent List (",n,")"]}):(0,l.jsxs)(g.z,{alignItems:"center",position:"sticky",minWidth:"min-content",zIndex:1,marginTop:"0.5rem",marginBottom:"1rem",size:"sm",isDisabled:!0,children:["Recent List (",n,")"]})})}),$.map(e=>
1(0,l.jsx)(y.k,{role:"row",position:"sticky",py:4,top:0,zIndex:2,borderBottom:"2px solid",borderColor:"slate.200",bg:"white",minWidth:"min-content",children:e.headers.map(e=>(0,l.jsx)(r.Fragment,{children:e.render("Header")},e.getHeaderProps().key))},e.getHeaderGroupProps().key)),s&&s[0]&&(0,l.jsx)(b.SV,{fallback:"An error has occured.",children:(0,l.jsx)(f.xu,{...K(),minWidth:"min-content",children:Q.map(e=>(ee(e),(0,l.jsx)(y.k,{as:o(),href:"/contact-lists/".concat(e.original.slug),_hover:{bg:"gray.100"},...e.getRowProps(),alignItems:"center",minWidth:"min-content",zIndex:1,children:e.cells.map(e=>(0,l.jsx)(r.Fragment,{children:e.render("Cell")},e.getCellProps().key))},e.id)))})})]})]})]})};var R=s(67);let H=()=>{let e=(0,R.Z)("advancedWatchlist"),t=(0,n.useRouter)();return!1===e&&t.push("/"),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.PB,{title:"Contact Project List",canonical:"https://system.privco.com/watchlists",openGraph:{title:"Watchlists",url:"https://system.privco.com/watchlists"}}),(0,l.jsx)(N,{})]})};H.getLayout=e=>(0,l.jsx)(c.Z,{children:e});var q=H},13258:function(e,t,s){"use strict";s.d(t,{Bg:function(){return c},Ym:function(){return a},mK:function(){return n}});let l=(e,t,s)=>{let l=e=>"boolean"==typeof e?-1*Number(e):e?Number(e):s?-1/0:1/0,n=l(e),i=l(t);return n-i},n=(e,t,s,n)=>l(e.original[s],t.original[s],n),i=(e,t,s)=>e||t?e?t?e.localeCompare(t):s?1:-1:s?-1:1:0,c=(e,t,s,l)=>i(e.original[s],t.original[s],l),r=(e,t,s)=>{if(!e&&!t)return 0;if(!e)return s?-1:1;if(!t)return s?1:-1;let l=new Date(e).getTime(),n=new Date(t).getTime();return l-n},a=(e,t,s,l)=>r(e.original[s],t.original[s],l)}},function(e){e.O(0,[4517,6986,3183,2495,9521,5610,4496,9774,2888,179],function(){return e(e.s=68595)}),_N_E=e.O()}]);

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.