PageSourceSearch

https://storyoriginapp.com/_next/static/chunks/pages/dashboard/campaignsjoined-1a30d36f1fecd6c2.js

js storyoriginapp.com collected 2026-09-25 04:02:18 UTC 29,027 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4088],{21954:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/campaignsjoined",function(){return t(47016)}])},99159:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var r=t(52676),i=t(68266),a=t(75271),s=t(41913),o=t(24380),l=t(31647),c=t(28083),d=t(26791),u=t(61009),h=t(9029),m=t(9963),p=t(63828),f=t(66120),x=t(76913),g=t(14489);function j(){let e=(0,g._)(["\n  query SwapApplicantEmail($id: ID!) {\n    node(id: $id) {\n      ... on Swap {\n        id\n        databaseId\n        applicantEmail\n      }\n    }\n  }\n"]);return j=function(){return e},e}var w=(0,t(90790).Ps)(j());function b(e){let{swapId:n}=e,[t,g]=(0,a.useState)(!1),{loading:j,error:b,data:y}=(0,i.a)(w,{variables:{id:(0,x.Q)("Swap",n)},skip:!t});return(0,r.jsxs)(s.Z,{open:t,onClose:()=>g(!1),trigger:(0,r.jsxs)(o.Z,{horizontal:!0,as:"button",style:{cursor:"pointer"},onClick:()=>g(!0),children:[(0,r.jsx)(l.Z,{name:"mail"})," Email"]}),size:"tiny",children:[(0,r.jsx)(c.Z,{children:"Swapper's Email"}),(0,r.jsx)(d.Z,{children:(0,r.jsxs)(u.Z,{children:[(0,r.jsx)("p",{style:{fontSize:"1.2rem"},children:'StoryOrigin\'s #1 community rule is "Be nice, be respectful".'}),(0,r.jsxs)("p",{style:{fontSize:"1.2rem"},children:["If it looks like they might have forgotten to use their tracking link, you might want to"," ",(0,r.jsxs)("a",{target:"_blank",rel:"noopener noreferrer",href:"/blog/email-marketing-guide/#Where-do-I-find-the-info-and-tracking-links-for-cross-promos-I've-been-accepted-into",children:["send them this link. ",(0,r.jsx)(l.Z,{name:"external"})]})]}),b?"Error! ".concat(b.message):null,(0,r.jsxs)(h.Z,{size:"large",fluid:!0,type:"text",loading:j,value:y?y.node.applicantEmail:"",iconPosition:"left",children:[(0,r.jsx)(l.Z,{name:"envelope"}),(0,r.jsx)("input",{onFocus:e=>e.target.select(),style:{size:y?y.node.applicantEmail+10:10}})]})]})}),(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(p.Z,{onClick:()=>g(!1),children:"Close"}),(0,r.jsx)(f.Z,{primary:!0,label:"Copy to Clipboard",text:y?y.node.applicantEmail:""})]})]})}},89199:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var r=t(52676),i=t(8934),a=t(2639),s=t(75271),o=t(24754),l=t(55907),c=t(41913),d=t(31647),u=t(28083),h=t(26791),m=t(48018),p=t(9963),f=t(63828),x=t(89830),g=t(14489);function j(){let e=(0,g._)(["\n  mutation UpdateSwapNotesForSender($swapId: ID!, $notesForSender: String) {\n    updateSwapNotesForSender(swapId: $swapId, notesForSender: $notesForSender) {\n      id\n      databaseId\n      notesForSender\n    }\n  }\n"]);return j=function(){return e},e}var w=(0,t(90790).Ps)(j());function b(e){let{swapId:n,...t}=e,[g,j]=(0,s.useState)(!1),{control:b,handleSubmit:y}=(0,o.cI)(),[v,{loading:Z}]=(0,i.D)(w);return(0,r.jsxs)(c.Z,{size:"tiny",open:g,trigger:(0,r.jsxs)("span",{children:[t.notesForSender||"None"," (",(0,r.jsxs)("span",{onClick:()=>j(!0),style:{color:"#4183c4",cursor:"pointer"},children:[(0,r.jsx)(d.Z,{name:"edit"})," Edit"]}),")"]}),children:[(0,r.jsx)(u.Z,{children:"Notes for Swap Partner"}),(0,r.jsx)(h.Z,{children:(0,r.jsx)(m.Z,{id:"updateSwapNotesForSender",noValidate:!0,size:"large",onSubmit:y(async e=>{let{notesForSender:t}=e,[r]=await (0,a.Z)(v({variables:{swapId:n,notesForSender:t}}));r&&r.errors.map(e=>{let{message:n}=e;return(0,l.Am)(n,{className:"ui negative message"})}),j(!1)}),children:(0,r.jsx)(x.Z,{name:"notesForSender",control:b,rows:2,label:"Notes",placeholder:"My book will be on sale for $0.99 when your newsletter goes out",rules:{maxLength:{value:255,message:"Maximum of 255 character for your review"},validate:e=>e.match("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?")&&"Notes should not contain links. Sender notes should primarily be used to provide info about dates you have discounts running."},defaultValue:t.notesForSender})})}),(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(f.Z,{disabled:Z,onClick:()=>j(!1),children:"Cancel"}),(0,r.jsxs)(f.Z,{form:"updateSwapNotesForSender",color:"green",disabled:Z,loading:Z,children:[(0,r.jsx)(d.Z,{name:"checkmark"}),"Save"]})]})]})}},66120:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(52676),i=t(874),a=t.n(i),s=t(75271),o=t(63828);function l(e){let{circular:n,fluid:t,icon:i="copy",label:l,primary:c,text:d}
1=e,[u,h]=(0,s.useState)(!1),m=(0,s.useRef)(null);return(0,s.useEffect)(()=>()=>{m.current&&clearTimeout(m.current)},[]),(0,r.jsx)(o.Z,{circular:n,fluid:t,icon:i,primary:c,content:u?"Copied!":l,title:u?"Copied!":"Click to copy",onClick:()=>{a()(d),h(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>h(!1),2e3)}})}},86877:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(52676);let i={margin:"0.25rem 0 0.5rem",fontSize:"0.92857143em",color:"rgba(0, 0, 0, 0.6)",lineHeight:1.4};function a(e){let{id:n,children:t,style:a}=e;return(0,r.jsx)("div",{id:n,style:{...i,...a},children:t})}},89830:function(e,n,t){"use strict";var r=t(52676),i=t(75271),a=t(24754),s=t(76887),o=t(46552),l=t(24380),c=t(14476),d=t(53655);n.Z=(0,d.K)(function(e){var n;let{name:t,control:d,defaultValue:u,rules:h,shouldUnregister:m=!0,label:p,labelStyle:f,description:x,width:g,readOnly:j=!1,onEdit:w,setFocus:b,editAriaLabel:y,...v}=e,Z="".concat(t,"-").concat((0,i.useId)()),S="".concat(Z,"-description"),{field:{value:k,onChange:C,ref:z,...I},fieldState:D}=(0,a.bc)({name:t,control:d,defaultValue:u||"",rules:h,shouldUnregister:m}),F=null===(n=D.error)||void 0===n?void 0:n.message,T=F?"".concat(Z,"-error-message"):void 0,E=[x?S:null,T].filter(Boolean).join(" ")||void 0;return(0,r.jsxs)(s.Z,{required:!!(null==h?void 0:h.required),error:!!F,width:g,children:[(0,c.b)({label:p,labelStyle:f,inputId:Z,name:t,description:x,descriptionId:S,onEdit:w,showEditButton:j&&!!w,setFocus:b,editAriaLabel:y,required:!!(null==h?void 0:h.required)}),(0,r.jsx)(o.Z,{...I,...v,id:Z,name:t,ref:z,readOnly:j,required:!!(null==h?void 0:h.required),value:k,tabIndex:j?-1:v.tabIndex,"aria-describedby":E,"aria-invalid":!!F||void 0,onChange:(e,n)=>{let{value:t}=n;C(t)},onBlur:e=>{j||C(e.target.value.trim())}}),F?(0,r.jsx)(l.Z,{prompt:!0,pointing:"above",id:T,role:"alert",children:F}):null]})})},51924:function(e,n,t){"use strict";var r=t(52676),i=t(75271);let a={display:"inline-flex",alignItems:"center",gap:"0.35rem",color:"#4183c4",cursor:"pointer",background:"none",border:"none",padding:0,font:"inherit",whiteSpace:"nowrap",borderRadius:"0.28571429rem"},s={outline:"2px solid #4183c4",outlineOffset:"2px"},o=(0,i.forwardRef)(function(e,n){let{style:t,type:i="button",children:o,onFocus:l,onBlur:c,...d}=e;return(0,r.jsx)("button",{ref:n,type:i,style:{...a,...t},onFocus:e=>{e.target.matches(":focus-visible")&&Object.assign(e.target.style,s),null==l||l(e)},onBlur:e=>{Object.assign(e.target.style,{outline:"",outlineOffset:""}),null==c||c(e)},...d,children:o})});n.Z=o},14476:function(e,n,t){"use strict";t.d(n,{b:function(){return p}});var r=t(52676),i=t(31647),a=t(86877);let s={color:"rgba(0,0,0,.6)",cursor:"pointer",fontSize:"0.92857143em",listStyle:"none"},o={marginTop:"0.25rem",fontSize:"0.92857143em",color:"rgba(0,0,0,.6)",lineHeight:1.5};function l(e){let{id:n,content:t,open:a,onOpenChange:l,summaryLabel:c="Instructions"}=e;return(0,r.jsxs)("details",{open:a,onToggle:e=>l(e.currentTarget.open),style:{margin:"0.25rem 0 0"},children:[(0,r.jsxs)("summary",{style:s,children:[(0,r.jsx)(i.Z,{name:a?"chevron down":"chevron right",style:{marginRight:"0.35em"}}),c]}),(0,r.jsx)("div",{id:n,style:o,children:t})]})}var c=t(51924);let d={fontWeight:700,fontSize:"0.92857143em",color:"rgba(0, 0, 0, 0.87)"},u={display:"flex",alignItems:"flex-end",gap:"1rem"},h={flex:1,minWidth:0},m={color:"#DB2828",margin:"-0.2em 0 0 0.2em"};function p(e){let{label:n,inputId:t,labelId:s,name:o,onEdit:p,showEditButton:f=!1,setFocus:x,editAriaLabel:g,labelStyle:j,description:w,descriptionId:b,instructions:y,instructionsId:v,instructionsOpen:Z,onInstructionsOpenChange:S,required:k=!1}=e;if(!n)return null;let C=w||y;return(0,r.jsxs)("div",{style:{...u,marginBottom:C?"0.5rem":"0.28571429rem"},children:[(0,r.jsxs)("div",{style:h,children:[(0,r.jsxs)("label",{id:s,htmlFor:t,style:{...d,...j},children:[n,k?(0,r.jsx)("span",{style:m,children:"*"}):null]}),w?(0,r.jsx)(a.Z,{id:b,style:{marginBottom:0},children:w}):null,y?(0,r.jsx)(l,{id:v,content:y.content,open:Z,onOpenChange:S,summaryLabel:y.summaryLabel}):null]}),p?(0,r.jsxs)(c.Z,{type:"button",onClick:f?()=>{p(),o&&x&&requestAnimationFrame(()=>x(o))}:void 0,"aria-label":null!=g?g:"Edit ".concat(n),"aria-hidden":!f||void 0,tabIndex:f?void 0:-1,style:{visibility:f?"visible":"hidden"},children:[(0,r.jsx)(i.Z,{name:"edit","aria-hidden":"true"}),"Edit"]}):null]})}},53655:function(e,n,t){"use strict";t.d(n,{K:function(){return a}});var r=t(52676),i=t(24754);function a(e){return function(n){var t,a,s;let o=(0,i.Gc)();return(0,r.jsx)(e,{...n,control:null!==(t=n.control)&&void 0!==t?t:null==o?void 0:o.control,setFocus:null!==(a=n.setFocus)&&void 0!==a?a:null==o?void 0:o.setFocus,setValue:null!==(s=n.setValue)&&void 0!==s?s:null==o?void 0:o.setValue})}}},76295:function(e,n,t){"use strict";t.d(n,{A9:function(){return y},CE:function(){return l},GN:function(){return C},Gg:function(){return b},S3:function(){return w},SY:function(){return v},Sy:function(){return h},YG:function(){return d},_n:function(){return j},bs:function(){return k},fh:function(){return m},i7:function(){return g},in:function(){return Z},uQ:function(){return z},wd:function(){return i},wi:function(){return x},y8:function(){return S},yR:function(){return u}});let r=[{header:[109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,
1112,117,98,43,122,105,112],offset:30,ext:"epub",mime:"application/epub+zip"},{header:[37,80,68,70],offset:0,ext:"pdf",mime:"application/pdf"},{header:[66,79,79,75,77,79,66,73],offset:60,ext:"mobi",mime:"application/x-mobipocket-ebook"},{header:[80,75,3,4],offset:0,ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},{header:[255,216,255],offset:0,ext:"jpg",mime:"image/jpeg"}],i=async e=>{let n=await a(e);for(let e=0;e<r.length;e++)if(s(n,r[e].header,{offset:r[e].offset}))return r[e];return!1},a=e=>{let n=new FileReader;return new Promise((t,r)=>{n.onerror=()=>{n.abort(),r(new DOMException("Problem parsing input file."))},n.onloadend=e=>{t(new Uint8Array(e.target.result))},n.readAsArrayBuffer(e)})},s=(e,n,t)=>{t=Object.assign({offset:0},t);for(let r=0;r<n.length;r++)if(t.mask){if(n[r]!==(t.mask[r]&e[r+t.offset]))return!1}else if(n[r]!==e[r+t.offset])return!1;return!0},o=(e,n)=>{var t=typeof e;return null==n&&(n='"'),"undefined"===t||null===t?"":"string"===t?n+e+n:String(e)},l=(e,n,t)=>{var r,i,a,s,l,c,d,u,h=[],m="";for(null==n&&(n='"'),null==t&&(t=","),r=0,i=e.length;r<i;r+=1){if(l=e[r],c="",0===r){for(a in l)Object.hasOwn(l,a)&&(h.push(a),c+=[n,a,n,t].join(""));m+=c=c.substring(0,c.length-1)}for(m+="\n",c="",d=0,u=h.length;d<u;d+=1)s=l[a=h[d]],d>0&&(c+=","),c+=o(s,'"');m+=c}return m},c=e=>(e.setUTCHours(25,0,0,0),e.setUTCHours(0,0,0,0),e),d=(e,n)=>{for(var t=[],r=new Date(e);r<=n;c(r))t.push(new Date(r));return t},u=(e,n)=>{var t=e.getBoundingClientRect(),r={height:e.clientHeight,width:e.clientWidth},i=n.getBoundingClientRect();if(!(i.top>=t.top&&i.bottom<=t.top+r.height)){let n=i.top-t.top;i.bottom,t.bottom,e.scrollTop+=n-20}},h=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;return e.length>n?"".concat(e.substring(0,n),"..."):e},m=e=>(()=>{switch(e){case"Giveaway":return"Reader Magnet";case"UniversalBookLink":return"UBL";case"ReviewCopy":return"Review Copy";case"DirectDownload":return"Direct Download";case"AudiobookReviewCopy":return"Audio Codes";case"UniversalAudiobookLink":return"UAL";case"DirectSaleEbook":return"Direct Sale Ebook";default:return null}})(),p=["Giveaway","UniversalBookLink","ReviewCopy","AudiobookReviewCopy","UniversalAudiobookLink","DirectSaleEbook","DirectDownload"],f={Giveaway:"Giveaway","Direct Sale Ebooks":"DirectSaleEbook",Sale:"UniversalBookLink","Kindle Unlimited":"UniversalBookLink",Reviews:"ReviewCopy","Audiobook Reviews":"AudiobookReviewCopy","Audiobook Sales":"UniversalAudiobookLink"};function x(e){let n=f[e];return n?p.filter(e=>e!==n):[...p]}let g=new Intl.DateTimeFormat("en",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"}),j=new Intl.DateTimeFormat("en",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),w=new Intl.DateTimeFormat("en",{year:"numeric",month:"short",day:"numeric"}),b=new Intl.DateTimeFormat("en",{year:"numeric",month:"short",day:"numeric"}),y=new Intl.DateTimeFormat("en",{weekday:"long"});new Intl.RelativeTimeFormat("en");let v=e=>{let n=e instanceof Date?e:new Date(e),t=new Intl.RelativeTimeFormat("en"),r={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1},i=(n.getTime()-Date.now())/1e3;for(let e in r)if(r[e]<Math.abs(i)){let n=i/r[e];return t.format(Math.round(n),e)}},Z=e=>"".concat(e).concat(["st","nd","rd"][((Number(e)+90)%100-10)%10-1]||"th"),S=e=>{let n=e.getFullYear(),t=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(n,"-").concat(t,"-").concat(r)},k=e=>0===e.getDay()?6:e.getDay()-1,C=async(e,n)=>{try{let t=await fetch(e,{mode:"cors"});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let r=await t.blob(),i=window.URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=n||"image.jpg",document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(i)}catch(e){console.error("Error downloading image:",e),toast("There was an error downloading the image.",{className:"ui negative message"})}},z=e=>{switch(e){case"US":default:return"amazon.com";case"CA":return"amazon.ca";case"CN":return"amazon.cn";case"JP":return"amazon.co.jp";case"EG":return"amazon.eg";case"PL":return"amazon.pl";case"SA":return"amazon.sa";case"SG":return"amazon.sg";case"SE":return"amazon.se";case"TR":return"amazon.com.tr";case"AE":return"amazon.ae";case"GB":case"GI":case"GG":case"IE":case"IM":case"JE":return"amazon.co.uk";case"AU":case"NZ":case"CX":case"CC":case"HM":case"NF":case"CK":case"NU":case"TK":return"amazon.com.au";case"BR":return"amazon.com.br";case"DE":case"AT":case"LI":case"CH":case"LU":return"amazon.de";case"ES":case"AD":case"PT":return"amazon.es";case"FR":case"MC":return"amazon.fr";case"BE":return"amazon.com.be";case"IT":case"SM":return"amazon.it";case"IN":return"amazon.in";case"MX":return"amazon.com.mx";case"NL":return"amazon.nl"}}},76913:function(e,n,t){"use strict";function r(e,n){return globalThis.btoa("".concat(e,":").concat(n))}t.d(n,{Q:function(){return r}})},47016:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return G}});var r=t(52676),i=t(3813),a=t.n(i),s=t(75271),o=t(64843),l=t(31647),c=t(39893),d=t(35831),u=t(66391),h=t(68266),m=t(25572),p=t.n(m),f=t(6399),x=t(55665),g=t(39859),j=t(80338),w=t(33494),b=t(66413),y=t(4351
15),v=t(22965),Z=t(77526),S=t(57907),k=t(71519),C=t(24005),z=t(99159),I=t(76295),D=t(14489),F=t(90790);function T(){let e=(0,D._)(["\n  query ViewersCampaignsJoinedPast {\n    viewer {\n      ... on UserAccount {\n        id\n        swaps: pastSwaps(first: 100) {\n          edges {\n            node {\n              id\n              databaseId\n              clickCount\n              bookLink\n              applicantBook {\n                id\n                title\n                link\n              }\n              senderBook {\n                id\n                title\n                link\n              }\n              applicantCampaign {\n                id\n                databaseId\n                sendDate\n                newsletter {\n                  id\n                  databaseId\n                  title\n                  listSize\n                  listSizeVerified\n                  authorProfile {\n                    id\n                    databaseId\n                    penName\n                  }\n                }\n              }\n              senderCampaign {\n                id\n                databaseId\n                sendDate\n                archiveLink\n                newsletter {\n                  id\n                  databaseId\n                  title\n                  listSize\n                  listSizeVerified\n                  authorProfile {\n                    id\n                    databaseId\n                    penName\n                  }\n                }\n              }\n              applicantSwap {\n                id\n                databaseId\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n"]);return T=function(){return e},e}var E=(0,F.Ps)(T());function N(){return(0,r.jsx)(x.Z,{placeholder:!0,children:(0,r.jsxs)(o.Z,{icon:!0,children:[(0,r.jsx)(l.Z,{name:"history"}),"No past newsletter swaps yet",(0,r.jsx)(g.Z,{style:{fontSize:"1.2rem",textWrap:"balance"},children:"Completed swaps will show here with click counts after send dates pass."})]})})}function B(){var e,n;let{error:t,loading:i,data:a}=(0,h.a)(E),s=null!==(n=null==a?void 0:null===(e=a.viewer)||void 0===e?void 0:e.swaps.edges)&&void 0!==n?n:[],o=!!(null==a?void 0:a.viewer)&&0===s.length;return t?"Error! ".concat(t.message):!i||(null==a?void 0:a.viewer)?o?(0,r.jsx)(N,{}):(0,r.jsxs)(w.Z,{celled:!0,structured:!0,unstackable:!0,children:[(0,r.jsx)(b.Z,{children:(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(v.Z,{width:8,children:"Their Campaign"}),(0,r.jsx)(v.Z,{width:8,children:"My Campaign"})]})}),(0,r.jsxs)(Z.Z,{children:[s.map(e=>{let{node:n}=e,{id:t,senderCampaign:i,senderBook:a,applicantCampaign:s,applicantBook:o,applicantSwap:c}=n,d=s.databaseId,u=c.databaseId;return(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(S.Z,{children:(0,r.jsxs)(k.Z,{children:[(0,r.jsxs)(C.Z,{children:[(0,r.jsx)("b",{children:"Pen name:"})," ",i.newsletter.authorProfile.penName," ",(0,r.jsx)(z.Z,{swapId:u})]}),(0,r.jsx)(C.Z,{children:(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:"Description:"}),' They agreed to promote "'.concat(o.title,'" (').concat((0,I.fh)(o.__typename),") in their ").concat(I.S3.format(i.sendDate)," campaign to "),(0,r.jsx)(p(),{href:"/newsletters/".concat(i.newsletter.databaseId,"/info"),children:i.newsletter.title})," ","(Subscribers:"," ",(0,r.jsx)(f.Z,{value:i.newsletter.listSize,displayType:"text",thousandSeparator:!0}),i.newsletter.listSizeVerified?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(l.Z,{title:"verified",color:"green",name:"check circle"})]}):null,")"]})}),(0,r.jsxs)(C.Z,{children:[(0,r.jsx)("b",{children:"Clicks:"})," ",n.clickCount]}),(0,r.jsxs)(C.Z,{children:[(0,r.jsx)("b",{children:"Archive Link:"})," ",i.archiveLink?(0,r.jsxs)("a",{href:i.archiveLink,target:"_blank",rel:"noopener noreferrer",children:["Check it out ",(0,r.jsx)(l.Z,{name:"external"})]}):"--"]})]})}),(0,r.jsx)(S.Z,{children:(0,r.jsxs)(k.Z,{children:[(0,r.jsxs)(C.Z,{children:[(0,r.jsx)("b",{children:"Pen name:"})," ",s.newsletter.authorProfile.penName]}),(0,r.jsx)(C.Z,{children:(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:"Description:"}),' You agreed to promote "'.concat(a.title,'" (').concat((0,I.fh)(a.__typename),") in "),(0,r.jsxs)(p(),{href:"/campaigns/".concat(d,"/edit"),children:["your ",I.S3.format(s.sendDate)," campaign"]})," ","to ",s.newsletter.title," (Subscribers:"," ",(0,r.jsx)(f.Z,{value:s.newsletter.listSize,displayType:"text",thousandSeparator:!0}),s.newsletter.listSizeVerified?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(l.Z,{title:"verified",color:"green",name:"check circle"})]}):null,")"]})})]})})]},t)}),i?(0,r.jsx)(y.Z,{children:(0,r.jsx)(S.Z,{colSpan:"2",textAlign:"center",children:(0,r.jsx)(j.Z,{active:!0,inline:!0})})}):null]})]}):(0,r.jsx)(x.Z,{placeholder:!0,children:(0,r.jsx)(j.Z,{active:!0,inline:"centered"})})}var A=t(63828),_=t(89199);function P(){let e=(0,D._)(["\n  query ViewersCampaignsJoinedUpcoming {\n    viewer {\n      ... on UserAccount {\n        id\n        swaps: upcomingSwaps(first: 100) {\n          edges {\n            node {\n              id\n              databaseId\n              notesForSender\n              bookLink\n              applicantBook {\n                id\n                title\n                link\n              }\n              senderBook {\n                id\n                title\n                link\n              }\n              applicantCampaign {\n                id\n                databaseId\n                sendDate\n                newsletter {\n                  id\n                  databaseId\n                  title\n                  listSize\n                  listSizeVerified\n                  authorProfile {\n                    id\n                    databaseId\n                    penName\n                  }\n                }\n              }\n              senderCampaign {\n                id\n                databaseId\n                sendDate\n                newsletter {\n                  id\n                  databaseId\n                  title\n                  listSize\n                  listSizeVerified\n                  authorProfile {\n                    id\n                    databaseId\n                    penName\n                  }\n                }\n              }\n              applicantSwap {\n                id\n                databaseId\n                notesForSender\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n"]);return P=function(){return e},e}var L=(0,F.Ps)(P());function R(){return(0,r.jsxs)(x.Z,{placeholder:!0,children:[(0,r.jsxs)(o.Z,{icon:!0,children:[(0,r.jsx)(l.Z,{name:"exchange"}),"No confirmed swaps yet",(0,r.jsx)(g.Z,{style:{fontSize:"1.2rem",textWrap:"balance"},children:"Search for authors in your genre with upcoming send dates, or open your campaigns to swap requests."})]}),(0,r.jsx)(p(),{passHref:!0,href:"/campaigns/join",legacyBehavior:!0,children:(0,r.jsxs)(A.Z,{icon:!0,labelPosition:"left",size:"huge",primary:!0,as:"a",style:{maxWidth:"none",whiteSpace:"nowrap"},children:[(0,r.jsx)(l.Z,{name:"search"}),"Search Swap Opportunities"]})})]})}function U(){var e,n;let{error:t,loading:i,data:a}=(0,h.a)(L),s=null!==(n=null==a?void 0:null===(e=a.viewer)||void 0===e?void 0:e.swaps.edges)&&void 0!==n?n:[],o=!!(null==a?void 0:a.viewer)&&0===s.length;return t?"Error! ".concat(t.message):!i||(null==a?void 0:a.viewer)?o?(0,r.jsx)(R,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{display:"flex",justifyContent:"right",marginBottom:"0.5rem"},children:(0,r.jsx)(p(),{passHref:!0,href:"/campaigns/join",legacyBehavior:!0,children:(0,r.jsxs)(A.Z,{icon:!0,labelPosition:"left",size:"huge",primary:!0,as:"a",children:[(0,r.jsx)(l.Z,{name:"search"}),"Search Swap Opportunities"]})})}),(0,r.jsxs)(w.Z,{celled:!0,structured:!0,unstackable:!0,children:[(0,r.jsx)(b.Z,{children:(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(v.Z,{width:8,children:"Their Campaign"}),(0,r.jsx)(v.Z,{width:8,children:"My Campaign"})]})}),(0,r.jsxs)(Z.Z,{children:[s.map(e=>{let{node:n}=e,{id:t,databaseId:i,senderCampaign:a,senderBook:s,applicantCampaign:o,applicantBook:c,applicantSwap:d,notesForSender:u}=n,h=o.databaseId,m=d.databaseId;return(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(S.Z,{children:(0,r.jsxs)(k.Z,{children:[(0,r.jsxs)(C.Z,{children:[(0,r.jsx)("b",{children:"Pen name:"})," ",a.newsletter.authorProfile.penName," ",(0,r.jsx)(z.Z,{swapId:m})]}),(0,r.jsx)(C.Z,{children:(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:"Description:"}),' They agreed to promote "'.concat(c.title,'" (').concat((0,I.fh)(c.__typename),") in their ").concat(I._n.format(a.sendDate)," campaign to "),(0,r.jsx)(p(),{href:"/newsletters/".concat(a.newsletter.databaseId,"/info"),children:a.newsletter.title})," ","(Subscribers:"," ",(0,r.jsx)(f.Z,{value:a.newsletter.listSize,displayType:"text",thousandSeparator:!0}),a.newsletter.listSizeVerified?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(l.Z,{title:"verified",color:"green",name:"check circle"})]}):null,")"]})}),(0,r.jsxs)(C.Z,{children:[(0,r.jsx)("b",{children:"Notes for sender:"})," ",(0,r.jsx)(_.Z,{swapId:i,notesForSender:u})]})]})}),(0,r.jsx)(S.Z,{children:(0,r.jsxs)(k.Z,{children:[(0,r.jsxs)(C.Z,{children:[(0,r.jsx)("b",{children:"Pen name:"})," ",o.newsletter.authorProfile.penName]}),(0,r.jsx)(C.Z,{children:(0,r.jsxs)("span",{children:[(0,r.jsx)("b",{children:"Description:"}),' You agreed to promote "'.concat(s.title,'" (').concat((0,I.fh)(s.__typename),") in "),(0,r.jsxs)(p(),{href:"/campaigns/".concat(h,"/edit"),children:["your ",I._n.format(
1o.sendDate)," campaign"]})," ","to ",o.newsletter.title," (Subscribers:"," ",(0,r.jsx)(f.Z,{value:o.newsletter.listSize,displayType:"text",thousandSeparator:!0}),o.newsletter.listSizeVerified?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(l.Z,{title:"verified",color:"green",name:"check circle"})]}):null,")"]})}),(0,r.jsxs)(C.Z,{children:[(0,r.jsx)("b",{children:"Notes for you:"})," ",d.notesForSender?d.notesForSender:"None"]})]})})]},t)}),i?(0,r.jsx)(y.Z,{children:(0,r.jsx)(S.Z,{colSpan:"2",textAlign:"center",children:(0,r.jsx)(j.Z,{active:!0,inline:!0})})}):null]})]})]}):(0,r.jsx)(x.Z,{placeholder:!0,children:(0,r.jsx)(j.Z,{active:!0,inline:"centered"})})}var O=t(85645),V=t(32564),G=(0,t(51487).Z)(function(){let[e,n]=(0,s.useState)(!1),[t,i]=(0,s.useState)("upcomingCampaignsJoined");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a(),{children:(0,r.jsx)("title",{children:"Newsletter Swaps"})}),(0,r.jsxs)("div",{style:{padding:"0 20px",display:"flex",flexDirection:"row",gap:"1rem",alignSelf:"center",width:"100%",maxWidth:"1200px"},children:[(0,r.jsx)(O.Z,{}),(0,r.jsxs)("div",{style:{flexGrow:1},children:[(0,r.jsxs)(o.Z,{size:"huge",children:[(0,r.jsx)(l.Z,{name:"exchange"}),"Confirmed Newsletter Swaps"]}),(0,r.jsxs)(c.Z,{size:"large",children:[(0,r.jsx)("p",{style:{fontSize:"1.2rem"},children:"See every newsletter swap you've confirmed with other authors - what you're promoting for them, what they're promoting for you, and when each send goes out. StoryOrigin generates tracking links so you can see clicks after send day."}),(0,r.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.75rem 1.25rem",marginBottom:"0.75rem"},children:[(0,r.jsxs)("a",{href:"/tutorials/swap-newsletter-mentions",target:"_blank",rel:"noopener noreferrer",children:["Video tutorial ",(0,r.jsx)(l.Z,{name:"external"})]}),(0,r.jsxs)("a",{href:"/blog/how-to-run-author-newsletter-swaps",target:"_blank",rel:"noopener noreferrer",children:["Guide to newsletter swaps ",(0,r.jsx)(l.Z,{name:"external"})]}),(0,r.jsxs)("a",{href:"/features/book-marketing-with-author-newsletter-swaps",target:"_blank",rel:"noopener noreferrer",children:["Feature overview ",(0,r.jsx)(l.Z,{name:"external"})]})]}),(0,r.jsxs)("details",{open:e,onToggle:e=>n(e.currentTarget.open),children:[(0,r.jsxs)("summary",{style:{cursor:"pointer",color:"#4183c4",listStyle:"none",marginBottom:"0.5rem"},children:[(0,r.jsx)(l.Z,{name:e?"angle down":"angle right"}),"Feature highlights"]}),(0,r.jsxs)("ul",{style:{marginBottom:"1.5rem",paddingLeft:0,listStyle:"none",lineHeight:1.5,fontSize:"1.2rem"},children:[(0,r.jsxs)("li",{style:{marginBottom:"1rem"},children:[(0,r.jsx)(l.Z,{name:"bar chart"}),(0,r.jsx)("b",{children:"Track Clicks:"})," See how many clicks your swap partner sent your book landing page"]}),(0,r.jsxs)("li",{style:{marginBottom:"1rem"},children:[(0,r.jsx)(l.Z,{name:"clipboard check"}),(0,r.jsx)("b",{children:"Vet Partner History:"})," See how many clicks potential partners have sent to newsletters in the past"]}),(0,r.jsxs)("li",{style:{marginBottom:"1rem"},children:[(0,r.jsx)(l.Z,{name:"filter"}),(0,r.jsx)("b",{children:"Filter Authors:"})," Filter upcoming newsletter swap opportunities by genre tags"]}),(0,r.jsxs)("li",{style:{marginBottom:"1rem"},children:[(0,r.jsx)(l.Z,{name:"calendar alternate outline"}),(0,r.jsx)("b",{children:"Manage Your Calendar:"})," Organize your upcoming newsletter send dates to easily track cross-promos"]}),(0,r.jsxs)("li",{style:{marginBottom:"1rem"},children:[(0,r.jsx)(l.Z,{name:"check circle"}),(0,r.jsx)("b",{children:"Check List Stats:"})," See list stats (size, open rate, and click rate) for potential swap partners"]}),(0,r.jsxs)("li",{style:{marginBottom:"1rem"},children:[(0,r.jsx)(l.Z,{name:"search"}),(0,r.jsx)("b",{children:"Search by Date or Book:"})," Return results by date or by the specific books authors want to promote"]})]})]}),(0,r.jsx)(V.Z,{vertical:"campaignsjoined"})]}),(0,r.jsxs)(d.Z,{color:"blue",tabular:!0,fluid:!0,children:[(0,r.jsx)(u.Z,{name:"Upcoming",active:"upcomingCampaignsJoined"===t,onClick:()=>i("upcomingCampaignsJoined")}),(0,r.jsx)(u.Z,{name:"Past",active:"pastCampaignsJoined"===t,onClick:()=>i("pastCampaignsJoined")})]}),"upcomingCampaignsJoined"===t?(0,r.jsx)(U,{}):(0,r.jsx)(B,{})]})]})]})})}},function(e){e.O(0,[9029,8018,1913,4754,8446,66,1764,2564,2888,9774,179],function(){return e(e.s=21954)}),_N_E=e.O()}]);

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.