1!function(){try{var s="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},i=(new s.Error).stack;i&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[i]="58ec8fea-f748-4f7f-9388-7ac3ea7893af",s._sentryDebugIdIdentifier="sentry-dbid-58ec8fea-f748-4f7f-9388-7ac3ea7893af")}catch(s){}}();import"./_sentry-release-injection-file-BIxAPxRH.js";import{a as s}from"./rolldown-runtime-CynJssAt.js";import{t as i}from"./react-C9jbeexS.js";import{t as e}from"./GqlFinalForm-CqJEv9jh.js";import{n as a,t}from"./lib-C2GB3B5V.js";import{n as r}from"./useQuery-Cob25j8P.js";import{K as o,at as n}from"./index-eSpJ4TSf.js";import{t as l}from"./PageSpinner-BnO66d7N.js";import{t as d}from"./commonValidators-BuDNBY0d.js";import{t as u}from"./Submit-BfTtniii.js";import{t as m}from"./SuccessMessage-BmXBqDYr.js";import g from"./DeleteMailingListSubscriber-BGGLZ_39.js";import{n as f,t as c}from"./MailingListTags-C03XeOUE.js";i();a();var b=n(),p=o(),j=t` 2 query GetMailingListTagsPlain($isClosedShowcaseRegistrations: Boolean!) { 3 mailingListTags(isClosedShowcaseRegistrations: $isClosedShowcaseRegistrations) { 4 ...MailingListTags 5 } 6 } 7 ${f} 8`,y=t` 9 mutation EditMailingListSubscription($subscriberUuid: ID!, $tags: [String!]!) { 10 editMailingListSubscription(subscriberUuid: $subscriberUuid, tags: $tags) 11 } 12`,x=({subscriber:s,addUnsubscribe:i=!1})=>{const{data:a,loading:t}=r(j,{variables:{isClosedShowcaseRegistrations:!1}});if(t)return(0,p.jsx)(l,{});const o=a.mailingListTags,n={subscriberUuid:s.uuid,tags:o.filter((({name:i})=>s.tags.includes(i))).map((({name:s})=>s))};return(0,p.jsx)("div",{className:"box",children:(0,p.jsxs)(e,{dataTestId:"edit-mailing-list-form",mutation:y,initialValues:n,children:[(0,p.jsx)(c,{tags:o,label:(0,p.jsx)(b.T,{message:"Mailing list signup:"}),validate:[d.minLength(1)]}),(0,p.jsx)(u,{label:(0,p.jsx)(b.T,{message:"Edit your subscription"}),afterButton:i&&(0,p.jsx)(g,{})}),(0,p.jsx)(m,{children:(0,p.jsx)(b.T,{message:"You have successfully updated your subscription."})})]})})};export{y as EDIT_MAILING_LIST_SUBSCRIPTION,j as GET_MAILING_LIST_TAGS_PLAIN,x as default}; 13//# sourceMappingURL=EditMailingListForm-CTPGcK3g.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.