1import{W as de,k as T,i as I,n as Y,w as _,j as e,Q as w,B as h,b as c,l as L,I as j,q as ce,u as me,O as G,z as ue,aQ as ee,b6 as pe,aR as ye,r as E,ai as te,a0 as he,al as v,M as xe,b7 as ge,a8 as ke}from"./base-components-C_FoBiEZ.js";import{bp as fe,h as U,bq as Ce,ap as Q,a as be,L as je}from"./index-RH5lj1ot.js";import{A as Ue,a as ve,b as Ae,C as we,T as f,U as R,f as Z,D as A,d as Se,g as Te,M as Ne}from"./DueDiligence-Bmd8t0gV.js";import{D as Re}from"./Presets-C83RipfS.js";import"./index-CgOqHoz7.js";import{A as g}from"./Action-DPAP5MVj.js";import{H as Ee}from"./HijackButton-CtcdpBk7.js";import"./edit-LT7zHtLH.js";import"./keyBy-CIkKMTQB.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="9c24b0a7-a851-4239-b4bd-97b5d7423371",s._sentryDebugIdIdentifier="sentry-dbid-9c24b0a7-a851-4239-b4bd-97b5d7423371")}catch{}const Me=async({queryKey:s})=>{const[,t]=s;return(await T(["get","/api/v1/admin/listing/unlocks/list"],t)).data},Ie=(s,t={})=>de({queryKey:["adminUnlocksList",s],queryFn:Me,...t}),_e=async s=>(await T(["post","/api/v1/admin/listing/unlocks/refund"],s)).data,se=()=>I({mutationFn:_e,onSuccess:()=>{Y("success","Unlock Closed")}}),Le=s=>{var t;const{listingUnlock:o,closeAlert:n,refetchIndex:l,values:a}=s,{mutate:i,isPending:d}=se(),r=!((t=a.reason)!==null&&t!==void 0&&t.value)||!a.explanation,m=()=>{var x;i({id:o.id,reason:(x=a.reason)===null||x===void 0?void 0:x.value,explanation:a.explanation},{onSuccess:()=>{l(),n()}})};return e.jsxs(e.Fragment,{children:[e.jsx(J,{"data-sentry-element":"InfoRow","data-sentry-source-file":"CloseAndRefundUnlock.tsx",children:e.jsx(fe,{data:o.listing,"data-sentry-element":"NotInterestedSelect","data-sentry-source-file":"CloseAndRefundUnlock.tsx"})}),e.jsx(Fe,{htmlFor:"explanation","data-sentry-element":"Label","data-sentry-source-file":"CloseAndRefundUnlock.tsx",children:"Please provide us with an in depth explanation on why you are not interested in this particular listing (2-3 sentences at least)"}),e.jsx(J,{"data-sentry-element":"InfoRow","data-sentry-source-file":"CloseAndRefundUnlock.tsx",children:e.jsx(w,{name:"explanation",height:"13.875rem",maxLength:1e4,"data-sentry-element":"TextArea","data-sentry-source-file":"CloseAndRefundUnlock.tsx"})}),e.jsx(h,{type:"button",primary:!0,fullWidth:!0,onClick:m,hideContentWhileLoading:!0,disabled:d||r,isLoading:d,"data-sentry-element":"Button","data-sentry-source-file":"CloseAndRefundUnlock.tsx",children:"Close & Refund"})]})},Be=_({mapPropsToValues:()=>({reason:{},explanation:""}),handleSubmit:()=>{}})(Le),J=c.div.withConfig({displayName:"CloseAndRefundUnlock__InfoRow"})(["display:flex;&:not(:last-child){margin-bottom:0.75rem;}> *{flex:1;&:not(:last-child){margin-right:0.325rem;}&:not(:first-child){margin-left:0.325rem;}}"]),Fe=c.label.withConfig({displayName:"CloseAndRefundUnlock__Label"})(["display:block;margin:1rem 0 0.5rem;font-size:0.9375rem;color:",";"],s=>s.theme.colors.darkGray),B=s=>{const{listingUnlock:t}=s,o=L(),{showAlert:n,closeAlert:l}=U(),a=()=>{o.invalidateQueries({queryKey:["adminUnlocksList"]})},i=()=>{n({Component:()=>e.jsx(Be,{listingUnlock:t,closeAlert:l,refetchIndex:a}),title:"Close & Refund Unlock"})};return e.jsx(g,{onClick:i,icon:"single-neutral-actions-money",name:t.active?"Close Unlock":"Closed","data-sentry-element":"Action","data-sentry-component":"CloseUnlockAction","data-sentry-source-file":"CloseUnlockAction.tsx"})};B.displayName="CloseUnlockAction";B.displayName="CloseUnlockAction";const F=s=>{const{id:t,refetchIndex:o}=s,{mutate:n,isPending:l}=se(),{closeAlert:a}=U(),i=()=>{n({id:t,reason:"Manually Closed",explanation:"Closed by Empire Flippers due to lack of correspondence from the buyer."},{onSuccess:()=>{o(),a()}})};return e.jsxs(De,{"data-sentry-element":"Container","data-sentry-component":"CloseUnresponsive","data-sentry-source-file":"CloseUnresponsive.tsx",children:[e.jsx("p",{children:"Are you sure you want to close this unlock?"}),e.jsxs(h,{danger:!0,small:!0,fullWidth:!0,disableWhileLoading:!0,hideContentWhileLoading:!0,type:"button",onClick:i,isLoading:l,"data-sentry-element":"Button","data-sentry-source-file":"CloseUnresponsive.tsx",children:["Close Unlock",e.jsx(j,{name:"single-neutral-actions-money",size:"1rem",ml:"0.75rem","data-sentry-element":"Icon","data-sentry-source-file":"CloseUnresponsive.tsx"})]})]})};F.displayName="CloseUnresponsive";F.displayName="CloseUnresponsive";const De=c.div.withConfig({displayName:"CloseUnresponsive__Container"})(["> p{margin-top:0;color:",";}"],s=>s.theme.colors.darkGray),D=s=>{const{id:t}=s,o=L(),{showAlert:n}=U(),l=()=>{o.invalidateQueries({queryKey:["adminUnlocksList"]})},a=()=>{n({Component:()=>e.jsx(F,{id:t,refetchIndex:l}),title:"Close Unlock"})};return e.jsx(g,{onClick:a,icon:"single-neutral-actions-money",name:"Close (Unresponsive)","data-sentry-element":"Action","data-sentry-component":"CloseUnresponsiveAction","data-sentry-source-file":"CloseUnresponsiveAction.tsx"})};D.displayName="CloseUnresponsiveAction";D.displayName="CloseUnresponsiveAction";const Ke=async s=>(await T(["post","/api/v1/admin/listing/unlocks/edit"],s)).data,Pe=()=>I({mutationFn:Ke,onSuccess:()=>{Y("success","Unlock updated.")}}),qe=s=>{var t,o;const{listingUnlock:n,closeAlert:l,values:a,refetchIndex:i}=s,d=Pe(),{unlockStatuses:r}=me(),m=n.listing.enableUnlockApprovals||n.isRequestingAccess,x=r.filter(p=>["Active","Denied","Pending"].includes(p)).map(p=>({label:m&&p==="Active"?"Approved":p,value:p})),N=p=>{var y,k,u;p.preventDefault();const z=(y=a.referrerUserId)===null||y===void 0||(y=y.value)===null||y===void 0?void 0:y.id,ae=(k=a.closedReason)===null||k===void 0?void 0:k.value,le=a.closedExplanation,ie=(u=a.status)===null||u===void 0?void 0:u.value,re=a.requestDeniedReason;d.mutate({id:n.id,referrerUserId:z,closedReason:ae,closedExplanation:le,status:ie,requestDeniedReason:re},{onSuccess:()=>{z||(n.referrer=null),i(),l()}})};return e.jsxs(e.Fragment,{children:[m&&n.status!=="Closed"&&e.jsxs(e.Fragment,{children:[e.jsx(b,{htmlFor:"status",children:"Status:"}),e.jsx(C,{children:e.jsx(G,{name:"status",placeholder:"Select a status",options:x,noPortal:!0,menuPosition:"fixed"})})]}),((t=a.status)===null||t===void 0?void 0:t.value)==="Closed"&&e.jsxs(e.Fragment,{children:[e.jsx(b,{htmlFor:"closedReason",children:"Closed Unlock Reason:"}),e.jsx(C,{children:e.jsx(G,{name:"closedReason",placeholder:"Select a Reason",icon:"question-circle",options:Ce,noPortal:!0,menuPosition:"fixed"})}),e.jsx(b,{htmlFor:"closedExplanation",children:"Closed Unlock Explanation:"}),e.jsx(C,{children:e.jsx(w,{name:"closedExplanation",height:"8rem",maxLength:1e4})})]}),((o=a.status)===null||o===void 0?void 0:o.value)==="Denied"&&e.jsxs(e.Fragment,{children:[e.jsx(b,{htmlFor:"requestDeniedReason",children:"Deny Unlock Request Explanation:"}),e.jsx(C,{children:e.jsx(w,{name:"requestDeniedReason",height:"8rem",maxLength:1e4})})]}),e.jsx(b,{htmlFor:"referrerUserId","data-sentry-element":"Label","data-sentry-source-file":"EditUnlock.tsx",children:"Referral Partner:"}),e.jsx(C,{"data-sentry-element":"InfoRow","data-sentry-source-file":"EditUnlock.tsx",children:e.jsx(ue,{name:"referrerUserId","data-sentry-element":"SelectUser","data-sentry-source-file":"EditUnlock.tsx"})}),e.jsx(h,{type:"button",primary:!0,fullWidth:!0,onClick:N,hideContentWhileLoading:!0,disableWhileLoading:!0,isLoading:d.isPending,"data-sentry-element":"Button","data-sentry-source-file":"EditUnlock.tsx",children:"Save"})]})},$e=_({mapPropsToValues:s=>{const{listingUnlock:t}=s,{listing:o,referrer:n,closedExplanation:l,requestDeniedReason:a}=t,i=o.enableUnlockApprovals||t.isRequestingAccess,d=n?{label:`${ce(n)}`,value:{firstName:n?.firstName,lastName:n?.lastName,id:n?.id,email:n?.primaryEmailAddress}}:null,r=t.closedReason?{label:t.closedReason,value:t.closedReason}:null,m=t.status?{label:i&&t.active?"Approved":t.status,value:t.status}:null;return{referrerUserId:d,closedReason:r,closedExplanation:l,status:m,requestDeniedReason:a}},handleSubmit:()=>{}})(qe),C=c.div.withConfig({displayName:"EditUnlock__InfoRow"})(["display:flex;flex-direction:column;&:not(:last-child){margin-bottom:0.75rem;}> *{flex:1;&:not(:last-child){margin-right:0.325rem;}&:not(:first-child){margin-left:0.325rem;}}"]),b=c.label.withConfig({displayName:"EditUnlock__Label"})(["display:block;margin:1rem 0 0.5rem;font-size:0.9375rem;color:",";"],s=>s.theme.colors.darkGray),K=s=>{const{listingUnlock:t}=s,o=L(),{showAlert:n,closeAlert:l}=U(),a=()=>{o.invalidateQueries({queryKey:["adminUnlocksList"]})},i=()=>{n({Component:()=>e.jsx($e,{listingUnlock:t,closeAlert:l,refetchIndex:a}),title:"Edit Unlock",width:"46rem"})};return e.jsx(g,{icon:"pencil-write-2",name:"Edit",onClick:i,"data-sentry-element":"Action","data-sentry-component":"EditAction","data-sentry-source-file":"EditAction.tsx"})};K.displayName="EditAction";K.displayName="EditAction";const P=s=>{const{rowData:t}=s,{user:o}=t;return e.jsxs(Ve,{"data-sentry-element":"ActionsContainer","data-sentry-component":"ActionsRow","data-sentry-source-file":"index.tsx",children:[e.jsx(We,{"data-sentry-element":"ButtonContainer","data-sentry-source-file":"index.tsx",children:e.jsx(Ee,{userId:o.id,"data-sentry-element":"HijackButton","data-sentry-source-file":"index.tsx"})}),e.jsxs(Oe,{"data-sentry-element":"ActionsWrapper","data-sentry-source-file":"index.tsx",children:[["Active","Closed"].includes(t.status)&&e.jsx(B,{listingUnlock:t}),t.unlockZendeskTicketId&&e.jsx(g,{target:"_blank",icon:"zendesk",name:"Zendesk Ticket",to:`${ee()}${t.unlockZendeskTicketId}`}),t.unlockHubspotDealId&&e.jsx(g,{target:"_blank",icon:"hubspot",name:"Hubspot Deal",to:`${pe()}${t.unlockHubspotDealId}`}),o?.hubspotVid&&e.jsx(g,{target:"_blank",icon:"hubspot",name:"Contact",to:` 2 ${ye()}${o.hubspotVid}`}),t?.active&&e.jsx(D,{id:t.id}),e.jsx(K,{listingUnlock:t,"data-sentry-element":"EditAction","data-sentry-source-file":"index.tsx"})]})]})};P.displayName="ActionsRow";
2P.displayName="ActionsRow";const Ve=c.div.withConfig({displayName:"ActionsRow__ActionsContainer"})(["display:flex;align-items:center;padding:1.25rem;width:calc(100vw - 1.5rem);flex:1;& > * + *{margin-left:1rem;}","{margin:0.5rem 0;align-items:initial;flex-direction:column;& > * + *{margin-left:0;margin-top:1rem;}}"],s=>s.theme.mq.tabletOrMobile),We=c.div.withConfig({displayName:"ActionsRow__ButtonContainer"})(["margin-top:-1rem;flex-shrink:1;flex-wrap:wrap;button{padding:0 1.25rem;}> *{margin-top:1rem;}> *:not(:last-child){margin-right:1rem;}","{display:flex;flex-direction:column;padding-right:1rem;> *:not(:last-child){margin-right:0;}}"],s=>s.theme.mq.mobile),Oe=c.div.withConfig({displayName:"ActionsRow__ActionsWrapper"})(["display:flex;& > *{padding:0 1rem;}"]),q=s=>{const{text:t,onCopy:o}=s,[n,l]=E.useState(!1),a=n?e.jsx(e.Fragment,{children:"Copied to clipboard"}):e.jsx(e.Fragment,{children:"Click to copy"}),i=()=>{he(t,{format:"text/plain"}),l(!0),typeof o=="function"&&o()},d=()=>{l(!1)};return e.jsx(te,{hideOnClick:!1,trigger:"mouseenter",content:a,onHidden:d,"data-sentry-element":"Tooltip","data-sentry-component":"CopyToClipboard","data-sentry-source-file":"CopyToClipboard.tsx",children:e.jsx(He,{onClick:i,"data-sentry-element":"Wrapper","data-sentry-source-file":"CopyToClipboard.tsx",children:e.jsx(j,{name:"copy-paste",size:"1rem",themeColor:"secondary",ml:"0.25rem","data-sentry-element":"Icon","data-sentry-source-file":"CopyToClipboard.tsx"})})})};q.displayName="CopyToClipboard";q.displayName="CopyToClipboard";const He=c.span.withConfig({displayName:"CopyToClipboard__Wrapper"})(["cursor:pointer;"]),ze=async s=>(await T(["post","/api/v1/admin/listing/unlocks/message-unlockers"],s)).data,Ge=()=>I({mutationFn:ze}),Qe=[{name:"{{unlocker.first_name}}",description:"Unlocker's preferred name or first name"},{name:"{{listing.listing_number}}",description:"The listing's number"},{name:"{{listing.title}}",description:"The listing's confidential title"}],S=({heading:s})=>e.jsxs(M,{"data-sentry-element":"TooltipWrapper","data-sentry-component":"SmartVariablesTooltip","data-sentry-source-file":"MessageUnlockers.tsx",children:[e.jsx("h2",{children:s}),e.jsx("p",{children:"Smart Variables can be used in either the subject line or message body:"}),e.jsx("ul",{className:"smart-variables-list",children:Qe.map(t=>e.jsxs("li",{className:"smart-variable-item",children:[e.jsx("code",{children:t.name}),e.jsx(q,{text:t.name})," ",e.jsxs("span",{children:["- ",t.description]})]},t.name))})]});S.displayName="SmartVariablesTooltip";S.displayName="SmartVariablesTooltip";const $=({sendStats:s,closeAlert:t})=>{const{messaged:o,excluded:n,skipped:l,excludedUnlockers:a,skippedUnlockers:i}=s,d=[`${o} messaged`];return n>0&&d.push(`${n} excluded`),l>0&&d.push(`${l} skipped`),e.jsxs(ne,{"data-sentry-element":"Container","data-sentry-component":"SendResults","data-sentry-source-file":"MessageUnlockers.tsx",children:[e.jsxs(Je,{"data-sentry-element":"ResultsSummary","data-sentry-source-file":"MessageUnlockers.tsx",children:[e.jsxs("strong",{children:["Queued ",d.join(", "),"."]}),e.jsx("p",{children:"Allow a few minutes for delivery."})]}),a.length>0&&e.jsxs(X,{children:[e.jsx("h3",{children:"Excluded"}),e.jsx("ul",{children:a.map(r=>e.jsxs("li",{children:[r.fullName," (",r.email,")"]},r.email))})]}),i.length>0&&e.jsxs(X,{children:[e.jsx("h3",{children:"Skipped"}),e.jsx("ul",{children:i.map(r=>e.jsxs("li",{children:[r.fullName," (",r.email,")"]},r.email))})]}),e.jsx("div",{className:"button-wrapper",children:e.jsx(h,{type:"button",small:!0,secondary:!0,onClick:t,"data-sentry-element":"Button","data-sentry-source-file":"MessageUnlockers.tsx",children:"Done"})})]})};$.displayName="SendResults";$.displayName="SendResults";const V=s=>{const{listParams:t,closeAlert:o,values:n}=s,{mutate:l,isPending:a}=Ge(),[i,d]=E.useState(null),{subject:r,body:m,useExistingTickets:x,excludedEmails:N}=n,p=t.status==="Closed",y=E.useMemo(()=>m.replace(/<[^>]*>?/gm,"").trim().length?!r.trim():!0,[r,m]),k=()=>
2{l({...t,subject:r,body:m,useExistingTickets:x,excludedEmails:N.split(",").map(u=>u.trim()).filter(u=>!!u)},{onSuccess:u=>{d(u.sendStats)}})};return i?e.jsx($,{sendStats:i,closeAlert:o}):e.jsxs(ne,{"data-sentry-element":"Container","data-sentry-component":"View","data-sentry-source-file":"MessageUnlockers.tsx",children:[e.jsxs("div",{className:"field-row",children:[e.jsxs("label",{htmlFor:"subject",children:["Subject",e.jsx(v,{interactive:!0,tooltipTheme:"light",ml:"0.4rem",maxWidth:"40rem",content:e.jsx(S,{heading:"Subject"}),"data-sentry-element":"Information","data-sentry-source-file":"MessageUnlockers.tsx"})]}),e.jsx(xe,{name:"subject",maxLength:1e4,"data-sentry-element":"Field","data-sentry-source-file":"MessageUnlockers.tsx"})]}),e.jsxs("div",{className:"field-row",children:[e.jsxs("label",{htmlFor:"body",children:["Message",e.jsx(v,{interactive:!0,tooltipTheme:"light",ml:"0.4rem",maxWidth:"40rem",content:e.jsx(S,{heading:"Message"}),"data-sentry-element":"Information","data-sentry-source-file":"MessageUnlockers.tsx"})]}),e.jsx(ge,{name:"body",placeholder:"Type the message here",maxLength:1e4,"data-sentry-element":"FullTextEditorCustom","data-sentry-source-file":"MessageUnlockers.tsx"})]}),e.jsx("div",{className:"field-row",children:e.jsxs(ke,{name:"useExistingTickets","data-sentry-element":"Checkbox","data-sentry-source-file":"MessageUnlockers.tsx",children:["Use existing open ticket if available. (Keep in mind Seller will likely see the message)",e.jsx(v,{tooltipTheme:"light",ml:"0.4rem",content:e.jsxs(M,{children:[e.jsx("h2",{children:"Use existing open ticket if available"}),e.jsx("p",{children:"The message will be sent to an existing open Zendesk Ticket for this Unlock if it is available (note that in this case the subject field will be ignored)."}),e.jsx("p",{children:"If no open ticket is available (or this setting is unchecked) then a Hubspot email notification will be sent to the user instead."})]}),"data-sentry-element":"Information","data-sentry-source-file":"MessageUnlockers.tsx"})]})}),e.jsxs("div",{className:"field-row",children:[e.jsxs("label",{htmlFor:"excludedEmails",children:["Excluded Emails",e.jsx(v,{tooltipTheme:"light",ml:"0.4rem",content:e.jsxs(M,{children:[e.jsx("h2",{children:"Excluded Emails"}),e.jsx("p",{children:"Emails entered here will not receive the message."}),e.jsx("p",{children:"To add multiple emails, separate them with a comma."})]}),"data-sentry-element":"Information","data-sentry-source-file":"MessageUnlockers.tsx"})]}),e.jsx(w,{name:"excludedEmails",height:10,maxLength:1e4,"data-sentry-element":"TextArea","data-sentry-source-file":"MessageUnlockers.tsx"})]}),p?e.jsx("div",{className:"field-row",children:e.jsx(Q,{children:"Closed Unlock filter detected. Users who also have an Active Unlock will not receive this message to avoid receiving duplicate messages."})}):e.jsx("div",{className:"field-row",children:e.jsx(Q,{children:"Only Active unlocks are messaged. Closed unlocks in the filtered set are skipped unless the Unlock Status filter is set to Closed."})}),e.jsxs("div",{className:"button-wrapper",children:[e.jsx(h,{type:"button",small:!0,onClick:o,"data-sentry-element":"Button","data-sentry-source-file":"MessageUnlockers.tsx",children:"Close"}),e.jsx(te,{content:e.jsx(e.Fragment,{children:"The messages will be sent to all filtered unlocks and not just the ones showing on the current page."}),"data-sentry-element":"Tooltip","data-sentry-source-file":"MessageUnlockers.tsx",children:e.jsx("div",{children:e.jsxs(h,{type:"button",small:!0,secondary:!0,disableWhileLoading:!0,hideContentWhileLoading:!0,onClick:k,isLoading:a,disabled:y,"data-sentry-element":"Button","data-sentry-source-file":"MessageUnlockers.tsx",children:["Proceed",e.jsx(j,{name:"line-arrow-right",ml:"0.4rem","data-sentry-element":"Icon","data-sentry-source-file":"MessageUnlockers.tsx"})]})})})]})]})};V.displayName="View";V.displayName="View";const Ze=_({mapPropsToValues:()=>({subject:"",body:"",useExistingTickets:!0,excludedEmails:""}),handleSubmit:()=>{}})(V),ne=c.div.withConfig({displayName:"MessageUnlockers__Container"})(["display:flex;flex-direction:column;> .button-wrapper{display:flex;justify-content:space-between;margin-top:1rem;width:100%;> *:not(:last-child){margin-right:1rem;}}> .field-row{display:flex;flex-direction:column;margin-bottom:1rem;> label{display:block;margin:0 0 0.5rem;font-size:0.9375rem;color:",";}> *:not(:last-child){margin-bottom:0.5rem;}}"],s=>s.theme.colors.darkGray),Je=c.div.withConfig({displayName:"MessageUnlockers__ResultsSummary"})(["margin-bottom:1rem;> p{margin:0.5rem 0 0;color:",";}"],s=>s.theme.colors.darkGray),X=c.div.withConfig({displayName:"MessageUnlockers__ResultsSection"})(["margin-bottom:1rem;> h3{margin:0 0 0.5rem;font-size:0.9375rem;}> ul{margin:0;padding-left:1.25rem;> li{margin-bottom:0.25rem;}}"]),M=c.div.withConfig({displayName:"MessageUnlockers__TooltipWra
2pper"})(["padding:0.75rem;> p{margin:0 0 1rem;&:last-child{margin-bottom:0;}}> h2{margin:0 0 0.5rem;}ul.smart-variables-list{margin:0;padding:0;list-style:none;> li{margin:0.5rem 0;> code{background:",";padding:0.25rem 0.5rem;border-radius:",";}}}"],s=>s.theme.colors.lightGray,s=>s.theme.sizes.borderRadiusSmall),W=s=>{const{listParams:t}=s,{showAlert:o,closeAlert:n}=U(),l=()=>{o({title:"Message Unlockers",Component:()=>e.jsx(Ze,{closeAlert:n,listParams:t}),width:"48rem"})};return e.jsxs(h,{type:"button",small:!0,secondary:!0,onClick:l,"data-sentry-element":"Button","data-sentry-component":"MessageUnlockersButton","data-sentry-source-file":"MessageUnlockersButton.tsx",children:["Message Unlockers",e.jsx(j,{name:"envelope",ml:"0.75rem","data-sentry-element":"Icon","data-sentry-source-file":"MessageUnlockersButton.tsx"})]})};W.displayName="MessageUnlockersButton";W.displayName="MessageUnlockersButton";const O=s=>{const{data:t}=s,o=()=>{if(!t||!t.length)return null;t.forEach(n=>{n.unlockZendeskTicketId&&window.open(ee()+n.unlockZendeskTicketId)})};return e.jsxs(h,{type:"button",small:!0,primary:!0,onClick:o,"data-sentry-element":"Button","data-sentry-component":"OpenTicketsButton","data-sentry-source-file":"OpenTicketsButton.tsx",children:["Open Tickets",e.jsx(j,{name:"zendesk",ml:"0.75rem","data-sentry-element":"Icon","data-sentry-source-file":"OpenTicketsButton.tsx"})]})};O.displayName="OpenTicketsButton";O.displayName="OpenTicketsButton";const Xe={query:{useList:Ie,listKey:"listingUnlocks"},header:{title:"Unlocks",resultType:"unlocks",components:[O,W]},columns:[{key:"actions",dataKey:"actions",Component:ve,title:"Actions",sticky:!0,width:"4rem"},{key:"listingNumber",dataKey:"listing",Component:Ae,title:"Listing",sticky:!0},{key:"isBuyer",dataKey:"isBuyer",Component:we,title:"Buyer"},{key:"status",dataKey:"status",Component:f,title:"Status",isSortable:!0,cellProps:{isTitleized:!0,themeFilterKey:"listingUnlockStatusColors"}},{key:"decisionMethod",dataKey:"decisionMethod",Component:f,title:"Decision Method",cellProps:{isHumanized:!0}},{key:"user",dataKey:"user",Component:R,title:"Verified Buyer",isSortable:!0},{key:"email",dataKey:"user.emails",Component:Z,title:"Email",isSortable:!0},{key:"createdAt",dataKey:"createdAt",Component:A,title:"Unlock Date",isSortable:!0},{key:"lastMassMessageSentAt",dataKey:"lastMassMessageSentAt",Component:A,title:"Last Mass Message Sent at",isSortable:!0},{key:"amount",dataKey:"amount",Component:Se,title:"Unlock Amount",isSortable:!0,cellProps:{type:"currency"}},{key:"referrer",dataKey:"referrer",Component:R,title:"Referral Partner"},{key:"user.hubspotContactOwner",dataKey:"user.hubspotContactOwner",Component:R,title:"Hubspot Contact Owner"},{key:"title",dataKey:"listing.confidentialTitle",Component:Te,title:"Title",isSortable:!0},{key:"brandName",dataKey:"listing.brandName",Component:f,title:"Brand Name",isSortable:!0},{key:"closedAt",dataKey:"closedAt",Component:A,title:"Closed Date",isSortable:!0},{key:"googleAnalyticsV4Status",dataKey:"googleAnalyticsV4Status",Component:f,title:"GA (v4) Status"},{key:"googleAnalyticsV4AddedAt",dataKey:"googleAnalyticsV4AddedAt",Component:A,title:"GA (v4) Added At"},{key:"user.googleAnalyticsEmail",dataKey:"user.googleAnalyticsEmail",Component:Z,title:"GA Email"},{key:"closedReason",dataKey:"closedReason",Component:f,title:"Closed Reason"},{key:"closedExplanation",dataKey:"closedExplanation",Component:Ne,title:"Closed Explanation"}],filters:[{formikKey:"filter.status",componentType:"dropdownSelect",queryKey:"status",title:"Unlock Status",Component:Re,filterProps:{configKey:"unlockStatuses",openOnMount:!0}}],ActionsRow:P,baseRoute:"/admin/unlocks",formPersistKey:"unlocksAdmin"},H=()=>e.jsx(Ue,{settings:Xe,"data-sentry-element":"Admin","data-sentry-component":"Controller","data-sentry-source-file":"index.tsx"});H.displayName="Controller";H.displayName="Controller";const oe=()=>(be({title:"Unlocks - Admin",withDefaultSuffix:!0}),e.jsx(je,{skipPadding:!0,skipFooter:!0,"data-sentry-element":"Layout","data-sentry-component":"Unlocks","data-sentry-source-file":"index.tsx",children:e.jsx(H,{"data-sentry-element":"Controller","data-sentry-source-file":"index.tsx"})}));oe.displayName="Unlocks";oe.displayName="Unlocks";export{oe as default}; 3//# sourceMappingURL=index-Dev3GzU9.js.map
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.