PageSourceSearch

https://oniki.net/ui/assets/PosterLinkMailingPage-DoV2-miu.js

js oniki.net collected 2026-10-08 18:43:26 UTC 21,493 bytes, 6 lines download raw bytes

1var se=Object.defineProperty;var ne=(t,a,i)=>a in t?se(t,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[a]=i;var q=(t,a,i)=>ne(t,typeof a!="symbol"?a+"":a,i);import{c as le,as as v,dy as b,_ as S,aR as ee,au as R,u as h,j as e,d as C,bc as F,bd as K,ao as T,S as M,A as j,D as E,f,B as U,b8 as re,bZ as de,L as oe,cE as $,r as c,ep as ce,eq as ue,er as me,es as pe,et as xe,w as ge,x as he,eu as fe,ev as ye,y as te,aa as ke,av as be,fj as je,fk as Ee,fl as Y,fm as O,fn as Le,fo as I,T as Ne,cC as ve,bi as Q,q as Se,M as Ae,ei as Me,bQ as Ce,bR as Te,bS as Pe}from"./index-DPD08fmB.js";import{E as we}from"./EventPicker-DRDY-cuM.js";import{u as De}from"./useParticipantListing-BRwPvH83.js";import{A as _e}from"./aspect-ratio-Cojdj9Ce.js";import{u as Be}from"./useEmailDesign-CRXxN7mE.js";import{I as Oe}from"./image-off-CZXOJQ4n.js";import"./useEventsForPicker-QeoVp02B.js";import"./registrations.service-DaN_GdSw.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Ie=le("MailQuestion",[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M18 15.28c.2-.4.5-.8.9-1a2.1 2.1 0 0 1 2.6.4c.3.4.5.8.5 1.3 0 1.3-2 2-2 2",key:"7z9rxb"}],["path",{d:"M20 22v.01",key:"12bgn6"}]]),J={FEATURE_DISABLED:"Poster Link Mailing özelliği şu anda kapalı.",GATE_NOT_SATISFIED:"Bu etkinlik afiş bağlantısı uygunluk koşullarını karşılamıyor.",ACTIVE_JOB_EXISTS:"Bu etkinlik için zaten devam eden bir toplu gönderim var.",EMPTY_AUDIENCE:"Gönderilecek CONFIRMED katılımcı bulunamadı.",AUDIENCE_TOO_LARGE:"Onaylı katılımcı sayısı güvenlik sınırını aşıyor.",EXPECTED_COUNT_MISMATCH:"Katılımcı sayısı değişti. Lütfen sayfayı yenileyip tekrar deneyin.",EVENT_NOT_FOUND:"Etkinlik bulunamadı.",JOB_NOT_FOUND:"Gönderim işi bulunamadı.",NOT_CANCELLABLE:"Bu iş artık iptal edilemez.",ELIGIBILITY_UNAVAILABLE:"Uygunluk bilgisine şu anda ulaşılamıyor. Lütfen tekrar deneyin.",PARTICIPANT_NOT_FOUND:"Katılımcı bulunamadı.",WRONG_EVENT:"Katılımcı bu etkinliğe ait değil.",NOT_CONFIRMED:"Katılımcı durumu CONFIRMED değil.",MISSING_EMAIL:"Katılımcının e-posta adresi yok.",PUBLISH_FAILED:"E-posta gönderimi başlatılamadı."};function A(t){var a,i;if(b.isAxiosError(t)&&t.response){const s=(a=t.response.data)==null?void 0:a.errorCode;if(s&&J[s])return J[s];const n=(i=t.response.data)==null?void 0:i.message;if(n)return n}return"Beklenmeyen bir hata oluştu. Lütfen tekrar deneyin."}class N{static async getEligibility(a,i){try{return(await v.get(`${this.BASE_PATH}/${a}/poster-link-mailing/eligibility`,{signal:i})).data.data}catch(s){throw b.isAxiosError(s)&&s.response?new S(A(s),s.response.status,s.response.data,s):s}}static async testSend(a,i,s){try{return(await v.post(`${this.BASE_PATH}/${a}/participants/${i}/resend-confirmation-email/test`,{},{signal:s})).data.data}catch(n){throw b.isAxiosError(n)&&n.response?new S(A(n),n.response.status,n.response.data,n):n}}static async createBulkSend(a,i,s,n,r){try{const l={"Idempotency-Key":i};return n&&(l["X-User-Email"]=n),(await v.post(`${this.BASE_PATH}/${a}/participants/resend-confirmation-email/bulk`,s??{},{signal:r,headers:l})).data.data}catch(l){throw b.isAxiosError(l)&&l.response?new S(A(l),l.response.status,l.response.data,l):l}}static async getBulkSendStatus(a,i,s){try{return(await v.get(`${this.BASE_PATH}/${a}/participants/resend-confirmation-email/bulk/${i}`,{signal:s})).data.data}catch(n){throw b.isAxiosError(n)&&n.response?new S(A(n),n.response.status,n.response.data,n):n}}static async cancelBulkSend(a,i,s){try{return(await v.post(`${this.BASE_PATH}/${a}/participants/resend-confirmation-email/bulk/${i}/cancel`,{},{signal:s})).data.data}catch(n){throw b.isAxiosError(n)&&n.response?new S(A(n),n.response.status,n.response.data,n):n}}}q(N,"BASE_PATH","/v2/events/admin");const L={all:["posterLinkMailing"],event:t=>[...L.all,t],eligibility:t=>[...L.event(t),"eligibility"],bulkSendStatus:(t,a)=>[...L.event(t),"bulkSendStatus",a]};function ae(t){return ee({queryKey:L.eligibility(t??""),queryFn:({signal:a})=>N.getEligibility(t,a),enabled:!!t,retry:(a,i)=>{const s=(i==null?void 0:i.statusCode)??(i==null?void 0:i.status);return s!==void 0&&s>=400?!1:a<2}})}function Re(){return R({mutationFn:({eventId:t,participantId:a})=>N.testSend(t,a)})}const Fe=[{key:"shareTemplateConfigured",titleKey:"posterLinkMailing.eligibility.gate.template.title",titleDefault:"Afiş şablonu yapılandırılmış",fixTo:t=>`/admin/events/${t}/email-designer`,fixLabelKey:"posterLinkMailing.eligibility.gate.template.fix",fixLabelDefault:"Afiş şablonunu yapılandır → E-posta & Paylaşım Tasarımcısı"},{key:"shareCtaEnabled",titleKey:"posterLinkMailing.eligibility.gate.shareCta.title",titleDefault:"SHARE_CTA bloğu yapılandırılmış",fixTo:t=>`/admin/events/${t}/email-designer`,fixLabelKey:"posterLinkMailing.eligibility.gate.shareCta.fix",fixLabelDefault:"SHARE_CTA bloğunu yapılandır → E-posta & Paylaşım Tasarımcısı"},{key:"enrichedFlagEnabled",titleKey:"posterLinkMailing.eligibility.gate.flag.title",titleDefault:"enriched_confirmation_email bayrağı AÇIK",fixTo:()=>"/admin/dev/feature-flags",fixLabelKey:"posterLinkMailing.eligibility.gate.flag.fix",fixLabelDefault:"Bayrağı aç → Feature Flags yönetimi"}],Ke=({eventId:t})=>{const{t:a}=h("admin"),{data:i,isLoading:s,isError:n,refetch:r}=ae(t);return e.jsxs(C,{"data-testid":"eligibility-panel",children:[e.jsxs(F,{className:"flex flex-row items-center justify-between gap-2",children:[e.jsx(K,{className:"text-h5",children:a("posterLinkMailing.eligibility.title","Afiş bağlantısı uygunluğu")}),i&&e.jsx(Ue,{available:i.posterButtonAvailable})]}),e.jsxs(T,{className:"space-y-3",children:[!t&&e.jsx($e,{}),t&&s&&e.jsxs("div",{className:"space-y-3","data-testid":"eligibility-panel-loading",children:[e.jsx(M,{className:"h-16 w-full"}),e.jsx(M,{className:"h-16 w-full"}),e.jsx(M,{className:"h-16 w-full"})]}),t&&n&&e.jsx(j,{variant:"destructive","data-testid":"eligibility-panel-error",children:e.jsxs(E,{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{children:a("posterLinkMailing.eligibility.error","Uygunluk bilgisi yüklenemedi. Etkinliğin bu tenant için var olduğundan emin olun.")}),e.jsx(f,{variant:"outline",size:"sm",onClick:()=>r(),children:a("posterLinkMailing.common.retry","Yeniden dene")})]})}),t&&!s&&!n&&i&&e.jsx("div",{className:"space-y-3","data-testid":"eligibility-panel-gates",children:Fe.map(l=>e.jsx(ze,{row:l,data:i,eventId:t},l.key))})]})]})},Ue=({available:t})=>{const{t:a}=h("admin");return e.jsxs(U,{"data-testid":"eligibility-overall-badge",className:t?"bg-success text-primary-foreground":"bg-destructive text-primary-foreground",children:[t?e.jsx(re,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"}):e.jsx(de,{className:"mr-1 h-3.5 w-3.5","aria-hidden":"true"}),t?a("posterLinkMailing.eligibility.overall.eligible","UYGUN"):a("posterLinkMailing.eligibility.overall.notEligible","UYGUN DEĞİL")]})},$e=()=>{const{t}=h("admin");return e.jsxs("div",{className:"flex flex-col items-center gap-2 py-6 text-center text-muted-foreground","data-testid":"eligibility-panel-empty",children:[e.jsx(Ie,{className:"h-8 w-8","aria-hidden":"true"}),e.jsx("p",{className:"text-caption",children:t("posterLinkMailing.eligibility.empty","Uygunluğu kontrol etmek için bir etkinlik seçin")})]})},ze=({row:t,data:a,eventId:i})=>{const{t:s}=h("admin"),n=a[t.key];return e.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-border bg-card p-3","data-testid":`eligibility-gate-${t.key}`,"data-passed":n,children:[e.jsx(U,{"aria-hidden":"true",className:n?"bg-success text-primary-foreground":"bg-destructive text-primary-foreground",children:n?"✓":"✕"}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx("p",{className:"text-body font-medium",children:s(t.titleKey,t.titleDefault)}),!n&&e.jsx(f,{variant:"link",className:"h-auto p-0 text-primary",asChild:!0,children:e.jsx(oe,{to:t.fixTo(i),children:s(t.fixLabelKey,t.fixLabelDefault)})})]})]})},Ge=({eventId:t,count:a,isLoading:i,isError:s,onRetry:n})=>{const{t:r}=h("admin");return e.jsx(C,{"data-testid":"audience-summary-card",children:e.jsxs(T,{className:"space-y-2 pt-6",children:[!t&&e.jsx("p",{className:"text-caption text-muted-foreground","data-testid":"audience-summary-empty",children:r("posterLinkMailing.audience.empty","Bir etkinlik seçin")}),t&&i&&e.jsx(M,{className:"h-10 w-24","data-testid":"audience-summary-loading"}),t&&!i&&s&&e.jsx(j,{variant:"destructive","data-testid":"audience-summary-error",children:e.jsxs(E,{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{children:r("posterLinkMailing.audience.error","Katılımcı sayısı yüklenemedi.")}),e.jsx(f,{variant:"outline",size:"sm",onClick:n,children:r("posterLinkMailing.common.retry","Yeniden dene")})]})}),t&&!i&&!s&&typeof a=="number"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-display font-display tabular-nums text-foreground","data-testid":"audience-summary-count",children:a}),e.jsx("p",{className:"text-caption text-muted-foreground",children:r("posterLinkMailing.audience.caption",{defaultValue:`${a} kişi bu e-postayı alacak`,count:a})})]})]})})},He=({eventId:t})=>{var l;const{t:a}=h("admin"),{data:i,isLoading:s,isError:n}=Be(t??"","tr"),r=((l=i==null?void 0:i.shareConfig)==null?void 0:l.effectiveTemplateUrl)??null;return e.jsxs(C,{"data-testid":"email-preview-card",children:[e.jsx(F,{children:e.jsx(K,{className:"text-h5",children:a("posterLinkMailing.preview.title","E-posta önizlemesi")})}),e.jsxs(T,{children:[!t&&e.jsx("p",{className:"text-caption text-muted-foreground","data-testid":"email-preview-empty",children:a("posterLinkMailing.preview.emptyNoEvent","Bir etkinlik seçin")}),t&&s&&e.jsx(M,{className:"aspect-[4/5] w-full","data-testid":"email-preview-loading"}),t&&!s&&(n||!r)&&e.jsxs("div",{className:"flex aspect-[4/5] w-full flex-col items-center justify-center gap-2 rounded-md bg-muted text-muted-foreground","data-testid":"email-preview-no-template",children:[e.jsx(Oe,{className:"h-8 w-8","aria-hidden":"true"}),e.jsx("p",{className:"text-caption",children:a("posterLinkMailing.preview.noTemplate","Afiş şablonu yapılandırılmamış")})]}),t&&!s&&!n&&r&&e.jsx(_e,{ratio:4/5,className:"overflow-hidden rounded-md bg-muted",children:e.jsx("img",{src:r,alt:a("posterLinkMailing.preview.imageAlt","Afiş önizlemesi"),className:"h-full w-full object-cover","data-testid":"email-preview-image"})})]})]})};function W(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const a=Math.random()*16|0;return(t==="x"?a:a&3|8).toString(16)})}function Ve(){const{user:t}=$(),[a,i]=c.useState(()=>W()),s=R({mutationFn:({eventId:l,request:d})=>N.createBulkSend(l,a,d,t==null?void 0:t.email)}),n=c.useCallback((l,d)=>s.mutateAsync({eventId:l,request:d}),[s.mutateAsync,a]),r=c.useCallback(()=>{i(W())},[]);return{data:s.data,isPending:s.isPending,isError:s.isError,error:s.error,idempotencyKey:a,create:n,regenerateKey:r,reset:s.reset}}const qe=({open:t,onOpenChange:a,eventId:i,confirmedCount:s,onCreated:n})=>{const{t:r}=h("admin"),[l,d]=c.useState(""),[o,u]=c.useState(!1),{create:y,isPending:x,isError:m,error:P}=Ve(),w=c.useCallback(()=>{d(""),u(!1),a(!1)},[a]),k=c.useCallback(async()=>{const p=parseInt(l,10);if(Number.isNaN(p)||p!==s){u(!0);return}u(!1);try{const B=await y(i,{confirmExpectedCount:s});d(""),a(!1),n(B)}catch{}},[l,s,y,i,a,n]);return e.jsx(ce,{open:t,onOpenChange:p=>p?void 0:w(),children:e.jsxs(ue,{"data-testid":"send-confirm-dialog",children:[e.jsxs(me,{children:[e.jsx(pe,{children:r("posterLinkMailing.confirmDialog.title","Gönderimi onayla")}),e.jsx(xe,{asChild:!0,children:e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(j,{variant:"destructive","aria-live":"assertive","data-testid":"send-confirm-irreversible-alert",children:e.jsx(E,{children:r("posterLinkMailing.confirmDialog.irreversibleWarning",{defaultValue:`Bu işlem ${s} onaylı katılımcıya gerçek bir e-posta gönderir ve geri alınamaz.`,count:s})})}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(ge,{htmlFor:"poster-link-confirm-count",children:r("posterLinkMailing.confirmDialog.countLabel","Onaylamak için alıcı sayısını yazın")}),e.jsx(he,{id:"poster-link-confirm-count","data-testid":"send-confirm-count-input",type:"number",value:l,onCh
6ange:p=>{d(p.target.value),u(!1)},placeholder:String(s),disabled:x,"aria-invalid":o})]}),o&&e.jsx(j,{variant:"destructive","data-testid":"send-confirm-mismatch",children:e.jsx(E,{children:r("posterLinkMailing.confirmDialog.countMismatch","Sayı eşleşmiyor.")})}),m&&e.jsx(j,{variant:"destructive","data-testid":"send-confirm-submit-error",children:e.jsx(E,{children:P==null?void 0:P.message})})]})})]}),e.jsxs(fe,{children:[e.jsx(ye,{disabled:x,"data-testid":"send-confirm-cancel",children:r("posterLinkMailing.confirmDialog.cancel","Vazgeç")}),e.jsxs(f,{type:"button",variant:"cta","data-testid":"send-confirm-submit",disabled:x,"aria-busy":x,onClick:k,children:[x&&e.jsx(te,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),r("posterLinkMailing.confirmDialog.submit","Şimdi gönder")]})]})]})})},Ye=["COMPLETED","PARTIALLY_FAILED","FAILED","CANCELLED"],Qe=["PENDING","IN_PROGRESS"],Je=5e3;function X(t){return t?Ye.includes(t):!1}function We(t,a,i){var l;const s=!!t&&!!a,n=ee({queryKey:L.bulkSendStatus(t??"",a??""),queryFn:({signal:d})=>N.getBulkSendStatus(t,a,d),enabled:s,refetchInterval:d=>{var u;const o=(u=d.state.data)==null?void 0:u.status;return X(o)?!1:Je},staleTime:0}),r=s&&!X((l=n.data)==null?void 0:l.status);return{data:n.data,isLoading:n.isLoading,isError:n.isError,error:n.error,refetch:n.refetch,isPolling:r}}function Xe(){const t=ke();return R({mutationFn:({eventId:a,jobId:i})=>N.cancelBulkSend(a,i),onSuccess:(a,{eventId:i,jobId:s})=>{t.invalidateQueries({queryKey:L.bulkSendStatus(i,s)})}})}const Ze=({eventId:t,jobId:a})=>{const{t:i}=h("admin"),{data:s,isLoading:n,isError:r,isPolling:l,refetch:d}=We(t,a),o=Xe();if(!a)return e.jsx(C,{"data-testid":"send-result-panel-collapsed",children:e.jsx(T,{className:"py-6",children:e.jsx("p",{className:"text-caption text-muted-foreground",children:i("posterLinkMailing.results.empty","Sonuçları görmek için bir gönderim başlatın")})})});const u=s?s.publishedCount+s.failedCount+s.skippedCount:0,y=s&&s.targetedCount>0?Math.round(u/s.targetedCount*100):0,x=s?Qe.includes(s.status):!1;return e.jsxs(C,{"data-testid":"send-result-panel",children:[e.jsxs(F,{className:"flex flex-row items-center justify-between gap-2",children:[e.jsx(K,{className:"text-h5",children:i("posterLinkMailing.results.title","Gönderim sonuçları")}),e.jsxs("div",{className:"flex items-center gap-2",children:[l&&e.jsx(te,{className:"h-4 w-4 animate-spin text-muted-foreground","aria-label":"polling"}),s&&e.jsx(U,{className:"bg-primary text-primary-foreground","data-testid":"send-result-status-badge",children:i(`posterLinkMailing.results.status.${s.status}`,s.status)}),x&&e.jsx(f,{variant:"outline",size:"sm",disabled:o.isPending,onClick:()=>a&&t&&o.mutate({eventId:t,jobId:a}),"data-testid":"send-result-cancel-button",children:i("posterLinkMailing.results.cancel","İptal et")})]})]}),e.jsxs(T,{className:"space-y-4",children:[n&&!s&&e.jsx("p",{className:"text-caption text-muted-foreground","data-testid":"send-result-loading",children:i("posterLinkMailing.results.loading","Yükleniyor...")}),r&&e.jsx(j,{variant:"destructive","data-testid":"send-result-error",children:e.jsxs(E,{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{children:i("posterLinkMailing.results.pollError","Durum alınamadı.")}),e.jsx(f,{variant:"outline",size:"sm",onClick:()=>d(),children:i("posterLinkMailing.common.retry","Yeniden dene")})]})}),s&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-3","data-testid":"send-result-tiles",children:[e.jsx(_,{label:i("posterLinkMailing.results.targeted","hedeflenen"),value:s.targetedCount}),e.jsx(_,{label:i("posterLinkMailing.results.published","iletim kuyruğuna alındı"),value:s.publishedCount}),e.jsx(_,{label:i("posterLinkMailing.results.skipped","atlandı"),value:s.skippedCount,muted:!0}),e.jsx(_,{label:i("posterLinkMailing.results.failed","başarısız"),value:s.failedCount,destructive:!0})]}),e.jsx(be,{value:y,className:"h-2","data-testid":"send-result-progress"}),s.failures.length>0&&e.jsxs(je,{"data-testid":"send-result-failures-table",children:[e.jsx(Ee,{children:e.jsxs(Y,{children:[e.jsx(O,{children:i("posterLinkMailing.results.table.participant","Katılımcı")}),e.jsx(O,{children:i("posterLinkMailing.results.table.reason","Neden")}),e.jsx(O,{children:i("posterLinkMailing.results.table.attempts","Deneme")})]})}),e.jsx(Le,{children:s.failures.slice(0,8).map(m=>e.jsxs(Y,{children:[e.jsx(I,{className:"font-mono text-caption",children:m.participantId}),e.jsx(I,{children:m.failureReason}),e.jsx(I,{className:"tabular-nums",children:m.attemptCount})]},m.participantId))})]}),s.failures.length===0&&e.jsx("p",{className:"text-caption text-muted-foreground","data-testid":"send-result-no-failures",children:i("posterLinkMailing.results.noFailures","Başarısız kayıt yok")})]})]})]})},_=({label:t,value:a,muted:i,destructive:s})=>e.jsxs("div",{className:"flex-1 rounded-lg border border-border bg-card p-3 text-center",children:[e.jsx("div",{className:s?"text-display tabular-nums text-destructive":i?"text-display tabular-nums text-muted-foreground":"text-display tabular-nums text-foreground",children:a}),e.jsx("div",{className:"text-caption text-muted-foreground",children:t})]}),et="poster_link_mailing";function ut(){const{hasRole:t}=$(),a=Ne.isEnabled(et),i=t("ADMIN");return!a||!i?null:e.jsx(tt,{})}function tt(){var H;const{t}=h("admin"),{user:a}=$(),[i,s]=c.useState(null),[n,r]=c.useState(!1),[l,d]=c.useState(null),{data:o,isLoading:u,isError:y,refetch:x}=ae(i),m=(o==null?void 0:o.confirmedParticipantCount)??0,w=(((H=De(i??"",{statuses:[ve.CONFIRMED],emailFilter:a==null?void 0:a.email,page:0,size:20},{enabled:!!i&&!!(a!=null&&a.email)}).data)==null?void 0:H.content)??[]).filter(g=>{var V;return!!(a!=null&&a.email)&&((V=g.email)==null?void 0:V.toLowerCase())===a.email.toLowerCase()}),k=w.length===1?w[0].id:null,p=Re(),B=c.useCallback(()=>{!i||!k||p.mutate({eventId:i,participantId:k},{onSuccess:()=>{Q.success(t("posterLinkMailing.testSend.queued","Test e-postası iletim kuyruğuna alındı"))},onError:g=>{Q.error((g==null?void 0:g.message)??t("posterLinkMailing.testSend.failed","Test gönderimi ba
6şarısız"))}})},[i,k,p,t]),ie=c.useCallback(g=>{d(g.jobId)},[]),D=!!(o!=null&&o.posterButtonAvailable),z=D&&!!k,G=D&&m>0;return e.jsxs("div",{className:"container max-w-5xl space-y-8 py-6","data-testid":"poster-link-mailing-page",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-h1 font-display text-foreground",children:t("posterLinkMailing.page.title","Afiş Bağlantısı Gönderimi")}),e.jsx("p",{className:"max-w-prose text-body text-muted-foreground",children:t("posterLinkMailing.page.subtitle","Onaylı katılımcılara, afiş oluşturma bağlantısını içeren kayıt onay e-postasını yeniden gönderir.")})]}),e.jsx(Se,{}),e.jsxs("div",{className:"space-y-1",style:{maxWidth:360},children:[e.jsx("span",{className:"text-label text-foreground",children:t("posterLinkMailing.eventPicker.label","Etkinlik")}),e.jsx(we,{value:i,onChange:g=>{s(g),d(null)},placeholder:t("posterLinkMailing.eventPicker.placeholder","Bir etkinlik seçin...")})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsx(Ke,{eventId:i}),e.jsx(Ge,{eventId:i,count:o==null?void 0:o.confirmedParticipantCount,isLoading:u,isError:y,onRetry:()=>void x()})]}),e.jsx("div",{children:e.jsx(He,{eventId:i})})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3","data-testid":"actions-bar",children:[e.jsx(Z,{disabled:!z,reason:D?t("posterLinkMailing.testSend.disabledNotConfirmed","Bu etkinlik için onaylı bir katılımcı değilsiniz"):t("posterLinkMailing.testSend.disabledNotEligible","Etkinlik uygunluk koşullarını karşılamıyor"),children:e.jsxs(f,{variant:"outline",disabled:!z||p.isPending,"aria-busy":p.isPending,onClick:B,"data-testid":"test-send-button",children:[e.jsx(Ae,{className:"h-4 w-4","aria-hidden":"true"}),t("posterLinkMailing.testSend.button","Kendi hesabıma test gönder")]})}),e.jsx(Z,{disabled:!G,reason:D?t("posterLinkMailing.bulkSend.disabledNoAudience","CONFIRMED katılımcı yok"):t("posterLinkMailing.bulkSend.disabledNotEligible","Etkinlik uygunluk koşullarını karşılamıyor"),children:e.jsxs(f,{variant:"cta",disabled:!G,onClick:()=>r(!0),"data-testid":"bulk-send-cta",children:[e.jsx(Me,{className:"h-4 w-4","aria-hidden":"true"}),t("posterLinkMailing.bulkSend.button",{defaultValue:`${m} katılımcıya afiş bağlantısı gönder`,count:m})]})})]}),i&&e.jsx(qe,{open:n,onOpenChange:r,eventId:i,confirmedCount:m,onCreated:ie}),e.jsx(Ze,{eventId:i,jobId:l})]})}const Z=({disabled:t,reason:a,children:i})=>t?e.jsxs(Ce,{children:[e.jsx(Te,{asChild:!0,children:e.jsx("span",{tabIndex:0,role:"group",children:i})}),e.jsx(Pe,{children:a})]}):i;export{ut as default};

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.