PageSourceSearch

https://cgscholar.com/_nuxt/gqTrSYB3.js

js cgscholar.com collected 2026-09-24 09:19:58 UTC 8,747 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C4Ps5p0k.js","./6Py2VufL.js","./CTwjLVo9.js","./entry.GTDaU2Ti.css","./w1MSXho_.js","./DialogWrapper.DQdMmMro.css","./CRPmxj52.js","./DnYL1FqQ.js","./CO6soIAa.js","./Ct3LZDQM.js","./YJu5V88S.js","./5_O0Zcqs.js","./CrbD28v0.js","./BuARviLB.js","./BR4j18LI.js","./zIbvibQJ.js","./DVIWoQ5A.js","./BM_IL8oE.js","./CWIR64Hc.js","./BUvHj3Vh.js","./CNmkNace.js","./BizVsW3B.js","./FnfSbE9v.js","./Dw3T67Oi.js","./BLLy1Pkf.js","./CPZB70ki.js","./-G3Hnvrk.js","./C3ItkHHn.js","./BXWXHAo2.js","./D4M5UUJb.js","./C1cNuOjh.js","./LScJjpcz.js","./BYQOmsHC.js","./BCeEtyep.js","./CMlw_LNr.js","./BLTQRpBh.js","./BnmPslvb.js","./BaseSideDrawer.eSD3UXJM.css","./Bzhfe_B_.js","./ChXo84Mh.js","./B4T6mMwU.js","./BLjCje-F.js","./EmailTemplateTextarea.DHu6HXas.css"])))=>i.map(i=>d[i]);
2import{_ as X}from"./CBuFA1d7.js";import{V as Y}from"./DyJ9bgkC.js";import{d as P,b as H,f as Z,a_ as R,y as q,s as G,z as p,o as ee,B as O,h as x,k as e,w as d,j as r,i as a,t as n,G as D,g as k,p as C,aN as te,ay as oe,v as ae,_ as se,u as re,x as I,c as ne,P as h,F as le,l as ie}from"./CTwjLVo9.js";import me from"./CrbD28v0.js";import{_ as ue}from"./t8S7Hv77.js";import ce from"./BuARviLB.js";import{_ as de}from"./BNgC7t8K.js";import{f as pe}from"./CJCLWPnE.js";import{n as fe,E as ve}from"./YJu5V88S.js";import{g as M}from"./DDg_J23w.js";import{_ as _e}from"./5_O0Zcqs.js";import{_ as be}from"./DefbZRoK.js";import{b as $}from"./DgJsqxrV.js";import{c as ge,u as ye}from"./BWxOVg1T.js";import{g as he}from"./CnGaGsaJ.js";import"./w1MSXho_.js";import"./B_dCBO1A.js";import"./hBKOvaze.js";import"./BbON9zhe.js";import"./DMsxsjxB.js";import"./D8B-1ICt.js";import"./BXWXHAo2.js";import"./Doz9SQD6.js";import"./BA8uc1Iw.js";import"./BR4j18LI.js";import"./zIbvibQJ.js";import"./DVIWoQ5A.js";import"./BM_IL8oE.js";import"./CWIR64Hc.js";import"./BUvHj3Vh.js";import"./CNmkNace.js";import"./BizVsW3B.js";import"./FnfSbE9v.js";import"./Dw3T67Oi.js";import"./BLLy1Pkf.js";import"./CPZB70ki.js";import"./-G3Hnvrk.js";import"./C3ItkHHn.js";import"./D4M5UUJb.js";import"./C1cNuOjh.js";import"./LScJjpcz.js";import"./BYQOmsHC.js";import"./BCeEtyep.js";import"./CMlw_LNr.js";import"./BLTQRpBh.js";import"./bBw5zPAx.js";import"./Bzhfe_B_.js";import"./ChXo84Mh.js";import"./B4T6mMwU.js";import"./CO6soIAa.js";import"./BLjCje-F.js";import"./BnmPslvb.js";import"./Cu3muj1h.js";const xe={class:"flex flex-col items-center h-full my-25"},we={class:"text-center text-primary-950 text-header-l mb-2"},Ee={class:"text-center text-body-l max-w-[420px]"},Te={class:"text-body-m text-primary-950 text-left"},Ve=["onClick"],Se={class:"text-body-m text-primary-950 text-left"},Ae={class:"flex items-center gap-2 min-w-[200px]"},$e={class:"text-body-m text-primary-950 text-left"},ke={key:0,class:"text-body-s text-left"},Ce={class:"text-body-m text-primary-950 mb-0.5"},Ge={class:"text-body-m"},Be=P({__name:"EventCustomEmailsTable",setup(z){const{t:m}=H(),V=Z(),_=R(),o=q(),{filters:B}=G(o),{singleEvent:S}=G(_),b=p([]),g=p(!1),F=p("createdAt"),y=p(-1),f=u=>`${u.userFirstName} ${u.userLastName}`,j=u=>{var c,l;return(l=(c=B.value.emailTargetGroups)==null?void 0:c.find(v=>v.value===u))==null?void 0:l.label};ee(async()=>{g.value=!0,_.getCustomEmails(S.value.id).then(u=>{b.value=u}).finally(()=>{g.value=!1})});const N=u=>{V.open(oe(ae(()=>se(()=>import("./C4Ps5p0k.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42]),import.meta.url)),{email:u}),{props:{showHeader:!1},data:{header:m("events.communication.emailBody")}})};return(u,c)=>{const l=me,v=ue,w=ce;return x(),O(w,{value:e(b),loading:e(g),class:"w-full","table-style":"min-width: 50rem","sort-field":e(F),"sort-order":e(y)},{empty:d(()=>[a("div",xe,[c[0]||(c[0]=a("img",{src:de,alt:"Envelope",class:"mb-2"},null,-1)),a("div",we,n(e(m)("events.communication.noEmailsFound")),1),a("span",Ee,n(e(m)("events.communication.noEmailsFoundText")),1)])]),default:d(()=>[r(l,{header:e(m)("events.communication.emailSubject"),field:"subject"},{body:d(({data:t})=>[a("div",Te,n(e(D)(t.subject,50)),1)]),_:1},8,["header"]),r(l,{header:e(m)("events.communication.emailBody"),field:"body"},{body:d(({data:t})=>[a("button",{class:"text-body-m text-primary-950 cursor-pointer hover:underline text-left",onClick:E=>N(t)},n(e(D)(e(fe)(t.body),50)),9,Ve)]),_:1},8,["header"]),r(l,{header:e(m)("events.communication.targetGroup"),field:"targetGroup"},{body:d(({data:t})=>[a("div",Se,n(j(t.targetGroup)),1)]),_:1},8,["header"]),r(l,{header:e(m)("events.communication.createdBy")},{body:d(({data:t})=>[a("div",Ae,[r(v,{"avatar-url":t.userAvatarUrl,title:`${t.userFirstName} ${t.userLastName}`,size:"32px"},null,8,["avatar-url","title"]),a("div",null,[a("div",$e,n(f(t)),1),e(M)({headline:t.userHeadline,affiliation:t.userAffiliation})?(x(),k("div",ke,n(e(D)(e(M)({headline:t.userHeadline,affiliation:t.userAffiliation}),30)),1)):C("",!0)])])]),_:1},8,["header"]),r(l,{header:e(m)("events.communication.createdAt"),field:"createdAt",sortable:""},{body:d(({data:t})=>[a("div",Ce,n(e(pe)(t.createdAt,{short:!0,time:!1})),1),a("div",Ge,n(e(te)(t.createdAt).format("hh:mm A")),1)]),_:1},8,["header"])]),_:1},8,["value","loading","sort-field","sort-order"])}}}),Fe={class:"w-full p-6 flex gap-4 flex-col items-start"},je={class:"flex flex-col gap-2"},Ne={class:"text-header-xl text-primary-950"},De={class:"text-body-l"},Le={class:"flex flex-col w-full items-start"},Ue={class:"flex gap-6 w-full"}
2,Ut=P({__name:"custom-emails",setup(z){const m=R(),V=re(),{singleEvent:_}=G(m),{t:o}=H(),B=q(),{filters:S}=G(B),b=I(()=>S.value.emailAttributes),g=p();ne({title:()=>o("events.adminMenu.communication")+" - "+_.value.name});const F=ge().shape({body:$.requiredString(1e3),subject:$.requiredString(100),targetGroup:$.requiredString(100),languageId:$.requiredString(100)}),{defineField:y,errors:f,validate:j,values:N,resetForm:u}=ye({validationSchema:F,initialValues:{body:"",subject:"",targetGroup:"",languageId:""}}),[c]=y("body"),[l]=y("subject"),[v]=y("targetGroup"),[w]=y("languageId"),t=async()=>{var s;const{valid:L}=await j();if(L)try{await m.createCustomEmail({eventId:_.value.id,...N}),u(),(s=g.value)==null||s.reset(),V.showBanner({message:o("events.communication.customEmailSent"),type:"success"})}catch{V.showBanner({message:o("errors.defaultError"),type:"error"})}},E=p(!1),T=p("new"),K=p([{label:o("common.new"),key:"new"},{label:o("events.communication.history"),key:"history"}]),J=I(()=>he(_.value));return(L,s)=>{const U=X,A=Y,Q=Be,W=_e;return x(),k("div",Fe,[a("div",je,[a("h2",Ne,n(e(o)("events.communication.customEmails")),1),a("p",De,n(e(o)("events.communication.customEmailsDescription")),1)]),r(U,{"active-tab":e(T),"onUpdate:activeTab":s[0]||(s[0]=i=>h(T)?T.value=i:null),tabs:e(K),vertical:!0,class:"w-min"},null,8,["active-tab","tabs"]),e(T)==="new"?(x(),k(le,{key:0},[a("div",Le,[a("div",Ue,[r(A,{modelValue:e(v),"onUpdate:modelValue":s[1]||(s[1]=i=>h(v)?v.value=i:null),label:e(o)("events.communication.targetGroup"),placeholder:e(o)("events.communication.targetGroupPlaceholder"),options:e(S).emailTargetGroups||[],errors:e(f).targetGroup,type:"dropdown",class:"w-full"},null,8,["modelValue","label","placeholder","options","errors"]),r(A,{modelValue:e(w),"onUpdate:modelValue":s[2]||(s[2]=i=>h(w)?w.value=i:null),label:e(o)("events.communication.targetLanguage"),placeholder:e(o)("events.communication.targetLanguagePlaceholder"),options:e(J),errors:e(f).languageId,type:"dropdown",class:"w-full"},null,8,["modelValue","label","placeholder","options","errors"])]),r(A,{modelValue:e(l),"onUpdate:modelValue":s[3]||(s[3]=i=>h(l)?l.value=i:null),label:e(o)("events.communication.emailSubject"),class:"w-full",placeholder:e(o)("events.communication.emailSubjectPlaceholder"),errors:e(f).subject},null,8,["modelValue","label","placeholder","errors"]),r(A,{errors:e(f).body,hint:e(o)("events.communication.emailTemplateHint"),class:"w-full"},{default:d(()=>[r(ve,{ref_key:"emailTemplateTextareaRef",ref:g,modelValue:e(c),"onUpdate:modelValue":s[4]||(s[4]=i=>h(c)?c.value=i:null),"tag-options":e(b),errors:e(f).body},null,8,["modelValue","tag-options","errors"])]),_:1},8,["errors","hint"]),e(b).length?(x(),k("button",{key:0,class:"app-button app-button--small app-button--plain text-primary-600",onClick:s[5]||(s[5]=i=>E.value=!0)},[r(be),ie(" "+n(e(o)("events.communication.showAttributes")),1)])):C("",!0)]),a("button",{class:"app-button app-button--dark",onClick:t},n(e(o)("common.send")),1)],64)):C("",!0),e(T)==="history"?(x(),O(Q,{key:1})):C("",!0),r(W,{show:e(E),"onUpdate:show":s[6]||(s[6]=i=>h(E)?E.value=i:null),"tag-options":e(b)},null,8,["show","tag-options"])])}}});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.