PageSourceSearch

https://cdn.vialibri.net/static/assets/EditMailingListForm-BQu9-nj4.js

js vialibri.net collected 2026-09-24 09:37:38 UTC 2,269 bytes, 13 lines download raw bytes

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-SYOkQ1Km.js";import{a as s}from"./rolldown-runtime-BBzOAo5_.js";import{t as i}from"./react-DuV36FPs.js";import{t as e}from"./GqlFinalForm-BoaxVR6X.js";import{n as a,t}from"./lib-Ctq-1oa9.js";import{n as r}from"./useQuery-BkTYWmVO.js";import{K as o,at as n}from"./index-CRc22cjs.js";import{t as l}from"./PageSpinner-BU09hJIB.js";import{t as d}from"./commonValidators-Bv9l42OX.js";import{t as u}from"./Submit-CHUFd811.js";import{t as m}from"./SuccessMessage-D1FypT3L.js";import g from"./DeleteMailingListSubscriber-BKJYqM6l.js";import{n as f,t as c}from"./MailingListTags-TgfLWMsA.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-BQu9-nj4.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.