1import{n as M,t as R,u as c,j as e,T as D,U as F,r as h,q as j}from"./vendor-BJ3uik3T.js";import{Container as b}from"./shared_atom_Container-BoY2fb4N.js";import{bK as y,aj as l,ak as g,am as S,an as C,bf as A,a6 as t,a7 as G,a2 as E,be as V,H as q,a1 as u,g as T,aq as I}from"./index-BdHWJevn.js";import{S as L}from"./shared_util_socialLinks-BUK1mzxs.js";import{B as P}from"./admin_atom_BulletList-kdXOVIL2.js";import{L as B}from"./admin_layout_Admin-BTABWwIa.js";import{u as U}from"./shared_util_useModal-C6VgIZRP.js";import _ from"./shared_molecule_ConfirmationModal-S_zbfig9.js";import"./moment-BLMuvzoS.js";import"./shared_pagepiece_500-C_7Or-OY.js";import"./shared_util_useVisaAuth-CD5-9iPe.js";import"./shared_molecule_SocialIcons-DX9Tlg2t.js";import"./shared_atom_LogoManualCSS-By4Gn_-I.js";import"./shared_molecule_IconButtonManualCSS-FYNGYkfn.js";import"./shared_molecule_Dropdown-DH8fAZag.js";import"./delete-1-t586yGRf.js";const w=M` 2 mutation createGdprDataRemovalProcess($email: String!) { 3 createGdprDataRemovalProcess(email: $email) { 4 success 5 } 6 } 7`,$=()=>R(w)[0],z=({formikProps:a,validationErrors:m={}})=>{const o=c(),[d,s]=U(),{setFieldValue:n,touched:r,errors:i,values:p}=a,f=()=>{s(),a.submitForm()},v=()=>{r.email&&a.isValid?s():a.submitForm()};return e.jsxs(y,{dataQaId:"gdpr-data-removal-form",children:[e.jsx(l,{children:e.jsx(g,{xs:12,md:12,lg:10,xl:8,children:e.jsx(S,{"data-qaid":"gdpr-data-removal-form-group-email",label:o.formatMessage({id:"admin.gdprDataRemovalForm.email"}),errorMsg:A("email",r,i)||m.general,required:!0,children:e.jsx(C,{type:"text",id:"email",name:"email",value:p.email,onChange:x=>{n("email",x.target.value)},maxLength:200})})})}),e.jsx(t,{mb:8}),e.jsx(l,{children:e.jsx(g,{xs:12,sm:8,md:6,lg:4,children:e.jsx(G,{block:!0,disabled:!a.dirty,"data-qaid":"gdpr-data-removal-form-submit-btn",onClick:v,type:"submit",loading:a.isSubmitting,children:o.formatMessage({id:"admin.gdprDataRemovalForm.remove"})})})}),d.isShowing&&e.jsx(_,{onCancel:()=>s(),confirmationButtonText:o.formatMessage({id:"yes"}),onConfirm:f,description:o.formatMessage({id:"admin.gdprDataRemovalForm.areYouSure"},{email:p.email})})]})},H=()=>D().shape({email:F().email("Must be a valid email address").required("User email is required")}),O=()=>{const a=c(),[m,o]=h.useState({}),d={email:""},s=$(),n=E({submitAction:s,submitVariables:r=>({email:r.email}),successMsg:a.formatMessage({id:"admin.gdprDataRemovalForm.successMsg"}),successMsgValuesForDisplay:{email:r=>r.email},failureMsg:a.formatMessage({id:"admin.gdprDataRemovalForm.failureMsg"}),onSuccess:(r,i)=>{i&&i(),o({})},onValidationError:r=>o(r)});return e.jsx(V,{formInitialValues:d,renderFormComponent:r=>e.jsx(z,{formikProps:r.formikProps,validationErrors:m}),onSubmit:n,formSchema:H(),dataQaId:"gdpr-data-removal"})},k=j(b)` 8 @media screen and (min-width: 1300px) { 9 max-width: 1260px; 10 } 11`,da=()=>{const a=c();return e.jsxs(B,{"data-qaid":"gdpr-data-removal-form",children:[e.jsx(L,{title:"Admin Gdpr Data Removal Form"}),e.jsx(t,{mb:8}),e.jsxs(k,{children:[e.jsx(q,{children:a.formatMessage({id:"admin.gdprDataRemovalForm.pageTitle"})}),e.jsx(l,{children:e.jsxs(g,{xs:12,sm:8,md:6,children:[e.jsx(u,{children:a.formatMessage({id:"admin.gdprDataRemovalForm.thisToolWillSafelyRemove"})}),e.jsx(t,{mb:2}),e.jsx(P,{items:[a.formatMessage({id:"admin.gdprDataRemovalForm.deletingStripeCustomer"}),a.formatMessage({id:"admin.gdprDataRemovalForm.anonymizingKlaviyoData"}),a.formatMessage({id:"admin.gdprDataRemovalForm.destroyingArtistApplications"}),a.formatMessage({id:"admin.gdprDataRemovalForm.destroyingArtistContactInfos"}),a.formatMessage({id:"admin.gdprDataRemovalForm.archivingArtists"}),a.formatMessage({id:"admin.gdprDataRemovalForm.destroyingVenueApplications"}),a.formatMessage({id:"admin.gdprDataRemovalForm.destroyingVenueContactInfos"}),a.formatMessage({id:"admin.gdprDataRemovalForm.archivingVenues"}),a.formatMessage({id:"admin.gdprDataRemovalForm.anonymizingTickets"}),a.formatMessage({id:"admin.gdprDataRemovalForm.destryingSentEmails"}),a.formatMessage({id:"admin.gdprDataRemovalForm.destroyingCustomerLeads"}),a.formatMessage({id:"admin.gdprDataRemovalForm.destroyingThirdPartyLogins"}),a.formatMessage({id:"admin.gdprDataRemovalForm.anonymizingUserAndPersonInfo"})]}),e.jsx(t,{mb:2}),e.jsx(T,{children:a.formatMessage({id:"admin.gdprDataRemovalForm.caveat"})}),e.jsx(t,{mb:6}),e.jsx(I,{mb:3,children:a.formatMessage({id:"admin.gdprDataRemovalForm.howDoesItWork"})}),e.jsx(u,{children:a.formatMessage({id:"admin.gdprDataRemovalForm.toProceedEnterTheUser"})}),e.jsx(O,{})]})})]})]})};export{da as default}; 12//# sourceMappingURL=admin_page_AdminGdprDataRemovalForm-BCgVcJIw.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.