PageSourceSearch

https://www.enago.com/_next/static/chunks/pages/card-promoter-7f11a0763e69d5019430.js

js enago.com collected 2026-09-24 08:51:40 UTC 27,273 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[240,7695,9801,5564],{37695:function(e,r,t){"use strict";t.r(r);var o=t(85893);r.default=function(e){return e.error,e.resetErrorBoundary,(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{})})}},29801:function(e,r,t){"use strict";t.r(r);var o=t(92809),n=t(2962),i=t(11163),a=t(25935),s=t(9008),l=t(85893);t(34155).env.API_URL;r.default=function(e){var r,t,c,d,u,p,m=null===e||void 0===e?void 0:e.seoSchema,v=null===e||void 0===e||null===(r=e.seo)||void 0===r?void 0:r.langTags,h=(null===e||void 0===e?void 0:e.ogType)||"website",x=(null===e||void 0===e?void 0:e.ogImageAlt)||"English Editing",f="https://www.enago.com",j=(0,i.useRouter)();"/"==j.asPath||j.asPath;var g=f+j.asPath,b=!!e.noIndex,N=!!e.noFollow,_=f+"/pwa-img/logo-enago-seo.png";return _=e.profileSeo?/^(f|ht)tps?:\/\//i.test(e.profileSeo.profileLink)?e.profileSeo.profileLink:"".concat(f).concat(e.profileSeo.profileLink):_,(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.default,{children:v?(0,a.ZP)(v):null}),(0,l.jsx)(n.PB,{title:e.title,description:e.description,additionalMetaTags:[{name:"keywords",content:e.keyword}],canonical:g,noindex:b,nofollow:N,robotsProps:{nosnippet:null!==(t=null===e||void 0===e?void 0:e.noSnippet)&&void 0!==t&&t,maxSnippet:-1,maxImagePreview:"large",maxVideoPreview:-1},openGraph:(p={url:g,title:(null===e||void 0===e||null===(c=e.seo)||void 0===c?void 0:c.ogtitle)||e.title,description:(null===e||void 0===e||null===(d=e.seo)||void 0===d?void 0:d.ogdescription)||e.description,images:[{url:_,alt:x}],type:h,locale:"en-US"},(0,o.Z)(p,"url",g),(0,o.Z)(p,"site_name",(null===e||void 0===e||null===(u=e.seo)||void 0===u?void 0:u.ogsitename)||"Enago"),p)}),e.noSnippet&&(0,l.jsx)(n.PB,{additionalMetaTags:[{name:"robots",content:"nosnippet"}]}),e.profileSeo?(0,l.jsx)(n.PB,{openGraph:{url:g,title:e.title,description:e.description,type:"profile",profile:{firstName:e.profileSeo.name,lastName:"",username:e.profileSeo.name,gender:e.profileSeo.gender},images:[{url:_,alt:e.profileSeo.name}]}}):"",(0,l.jsx)(s.default,{children:m?(0,a.ZP)(m):null})]})}},95564:function(e,r,t){"use strict";t.r(r);var o=t(92809),n=t(85893);function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}r.default=function(e){return(0,n.jsx)("div",function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach((function(r){(0,o.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({id:"spinner"},e))}},65527:function(e,r,t){"use strict";var o=t(67294);r.Z=function(e,r){var t=(0,o.useState)((function(){var t;try{t=JSON.parse(localStorage.getItem(e)||String(r))}catch(o){t=r}return t})),n=t[0],i=t[1];return(0,o.useEffect)((function(){localStorage.setItem(e,JSON.stringify(n))}),[n,e]),[n,i]}},61406:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSG:function(){return H},default:function(){return F}});var o=t(97131),n=t(92809),i=t(30266),a=t(79056),s=t(809),l=t.n(s),c=t(67294),d=t(6308);var u=function(e,r){var t=(0,c.useState)(e),o=t[0],n=t[1];return(0,c.useEffect)((function(){var t=setTimeout((function(){n(e)}),r);return function(){clearTimeout(t)}}),[e,r]),o},p=t(53637),m=t(35773),v=t(95305),h=t(3280),x=t(39886),f=t(21442),j=t(89163),g=t(3126),b=t(87261),N=t(60994),_=t(35762),w=t(37258),C=t(25935),y=t(37619),Z=t.n(y),S=t(95564),k=t(42283),T=t(9039),P=t(4511),O=t(37695),I=t(65527),B=t(63502),E=t.n(B),L=t(85893),U=function(e){var r=e.bgImage,t=e.data;return(0,L.jsxs)("div",{className:E().card,children:[(0,L.jsx)("img",{className:E().cardBGContainer,alt:"",src:r}),(0,L.jsx)("b",{className:E().paperTitleContainer,children:t.paperTitle}),(0,L.jsx)("b",{className:E().journalNameContainer,children:t.journalName}),(0,L.jsx)("b",{className:E().scanToView,children:"scan to view"}),(0,L.jsx)("b",{className:E().authorNameContainer,children:t.authorName}),(0,L.jsx)("b",{className:E().publisherNameContainer,children:t.publisherName}),(0,L.jsx)("div",{className:E().qrCodeContainer,style:{backgroundImage:'url("'.concat(t.publicationUrlEncoded,'")'),backgroundPosition:"center center",backgroundSize:"contain"}}
1),null!==t&&void 0!==t&&t.publisherLogo?(0,L.jsx)("div",{className:E().publisherLogoContainer,style:{backgroundImage:'url("'.concat(t.publisherLogo,'")'),backgroundPosition:"center center",backgroundSize:"contain",backgroundRepeat:"no-repeat"}}):null,(0,L.jsx)("div",{className:E().poweredByLogo,style:{backgroundImage:'url("'.concat(t.poweredByLogo,'")'),backgroundPosition:"center center",backgroundSize:"contain",backgroundRepeat:"no-repeat"}})]})},R=t(92592),G=t(10183),D=t(1852),A=t(29801),V=function(){var e=(0,i.Z)(l().mark((function e(r){var t,o,n,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://api.crossref.org/works?query=".concat(null===r||void 0===r||null===(t=r.authorName)||void 0===t||null===(o=t.trim())||void 0===o?void 0:o.replace(" ","+"),",").concat(r.publicationUrl,",&select=author,title,subtitle,publisher,DOI,URL,container-title,type&rows=1"));case 2:return n=e.sent,e.next=5,n.json();case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}();function J(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function q(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?J(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var z=function(e){var r=e.strokeColor,t=void 0===r?"white":r;return(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:(0,L.jsx)("path",{d:"M0.69165 5.35781L5.04924 10.8002L14.843 0.460938",stroke:t,"stroke-width":"1.23971","stroke-miterlimit":"10"})})},H=!0,F=function(e){var r,t,n,s,y,B,E,J,H,F,M,K,Y,X,Q,W,$,ee,re,te,oe,ne,ie,ae,se,le,ce=(0,D.useMediaQuery)({maxWidth:592}),de=(0,c.useRef)(null),ue=(0,c.useState)(!1),pe=ue[0],me=ue[1],ve=(0,c.useState)(!1),he=ve[0],xe=ve[1],fe=e.data,je=(0,k.cI)({shouldUnregister:!1}),ge=je.register,be=je.watch,Ne=je.handleSubmit,_e=je.errors,we=je.setValue,Ce=je.reset,ye=je.getValues,Ze=(0,I.Z)("userData",{}),Se=(0,a.Z)(Ze,2),ke=Se[0],Te=Se[1],Pe=(0,c.useState)(0),Oe=Pe[0],Ie=Pe[1],Be=(0,c.useState)(0),Ee=Be[0],Le=Be[1],Ue=(0,c.useState)(""),Re=Ue[0],Ge=Ue[1],De=(0,c.useState)(!1),Ae=De[0],Ve=De[1],Je=(0,c.useState)(!1),qe=Je[0],ze=Je[1],He=(0,c.useState)({step1:{show:!0,completed:!1},step2:{show:!1,completed:!1},step3:{show:!1,completed:!1}}),Fe=He[0],Me=He[1],Ke=function(){var e=(0,i.Z)(l().mark((function e(){var r,t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Me(q(q({},Fe),{},{step1:q(q({},Fe.step1),{},{show:!1}),step2:q(q({},Fe.step2),{},{show:!1}),step3:q(q({},Fe.step2),{},{show:!0})})),e.next=3,(0,G.SE)(de.current);case 3:return r=e.sent,t={files:[new File([r],"card-promoter.png",{type:r.type})],title:"Card Promoter",text:"Card Promoter"},e.prev=5,navigator.canShare(t),e.next=9,navigator.share(t);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),alert("Sharing is blocked by your browser. Please download the card and share it. Thanks!");case 14:case"end":return e.stop()}}),e,null,[[5,11]])})));return function(){return e.apply(this,arguments)}}(),Ye=(0,c.useCallback)((function(){null!==de.current&&(0,G.YM)(de.current,{cacheBust:!0}).then((function(e){var r=document.createElement("a");r.download=null!==ke&&void 0!==ke&&ke.authorName?"".concat(null===ke||void 0===ke?void 0:ke.authorName,"-researchcard.png"):"myresearchcard.png",r.href=e,r.click()})).catch((function(e){}))}),[de]),Xe=function(){var e=(0,i.Z)(l().mark((function e(r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,R.toDataURL(r,{errorCorrectionLevel:"H"});case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(r){return e.apply(this,arguments)}}(),Qe=function(){var e=(0,i.Z)(l().mark((function e(r){var t,o,n,i,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(me(!0),JSON.parse(Boolean(r.publisher)?r.publisher:JSON.stringify({})),!ke.hasOwnProperty("id")){e.next=8;break}return e.next=5,fetch("/api/forms/promo-card",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:null===ke||void 0===ke?void 0:ke.id,data:q(q({},r),{},{id:null===ke||void 0===ke?void 0:ke.id})})});case 5:t=e.sent,e.next=11;break;case 8:return e.next=10,fetch("/api/forms/promo-card",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:q({},r)})});case 10:t=e.sent;case 11:return e.t0=t.status,e.next=14,t.json();case 14:if(e.t1=e.sent,200!=(o={status:e.t0,data:e.t1}).status){e.next=26;break}return Te(o.data),Me(q(q({},Fe),{},{step1:q(q({},Fe.step1),{},{show:!1,completed:!0}),step2:q(q({},Fe.step2),{},{show:!0})})),Ie(1),e.next=22,Xe(null!==(n=null===o||void 0===o||null===(i=o.data)||void 0===i?void 0:i.publicationUrl)&&void 0!==n?n:null===ke||void 0===ke?void 0:ke.publicationUrl);case 22:a=e.sent,Ge((function(){return a})),Ce(),me(!1);case 26:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),We=function(){var e=(0,i.Z)(l().mark((function e(){var r,t,o,n,i,a,s,c,d,u,p;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ye(),JSON.parse(Boolean(r.publisher)?r.publisher:JSON.stringify({})),me(!0),Te(q({},r)),e.next=6,fetch("/api/forms/promo-card",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:q({},r)})});case 6:return t=e.sent,e.t0=t.status,e.next=10,t.json();case 10:if(e.t1=e.sent,200!=(o={status:e.t0,data:e.t1}).status){e.next=26;break}return Te(o.data),e.next=16,V(null===r||void 0===r?void 0:r.paperTitle);case 16:return"ok"==(null===(a=e.sent)||void 0===a?void 0:a.status)&&null!==a&&void 0!==a&&null!==(n=a.message)&&void 0!==n&&null!==(i=n.items)&&void 0!==i&&i.length&&(Te((function(e){var r,t,o;return q(q({},e),{},{publicationUrl:null===a||void 0===a||null===(r=a.message)||void 0===r||null===(t=r.items)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.URL})})),u=Xe(null===a||void 0===a||null===(s=a.message)||void 0===s||null===(c=s.items)||void 0===c||null===(d=c[0])||void 0===d?void 0:d.URL),Ge((function(){return u})),Ce()),Me(q(q({},Fe),{},{step1:q(q({},Fe.step1),{},{show:!1,completed:!0}),step2:q(q({},Fe.step2),{},{show:!0})})),Ie(1),e.next=22,Xe(null===ke||void 0===ke?void 0:ke.publicationUrl);case 22:p=e.sent,Ge((function(){return p})),Ce(),me(!1);case 26:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$e=function(e){0==e?(Ie(0),Me(q(q({},Fe),{},{step1:q(q({},Fe.step1),{},{show:!0}),step2:q(q({},Fe.step2),{},{show:!1}),step3:q(q({},Fe.step2),{},{show:!1})}))):1==e?(Ie(1),Me(q(q({},Fe),{},{step1:q(q({},Fe.step1),{},{show:!1}),step2:q(q({},Fe.step2),{},{show:!0}),step3:q(q({},Fe.step2),{},{show:!1})}))):2==e&&(Ie(2),Me(q(q({},Fe),{},{step1:q(q({},Fe.step1),{},{show:!1}),step2:q(q({},Fe.step2),{},{show:!1}),step3:q(q({},Fe.step2),{},{show:!0})})))},er=be(["authorName","publicationUrl"]),rr=u(er,2e3);return(0,c.useEffect)((0,i.Z)(l().mark((function e(){var r,t,n,i,a,s,c,d,u,p,m,v,h,x,f,j,g,b;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Boolean(rr.authorName)&&Boolean(rr.publicationUrl)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,V({authorName:null===rr||void 0===rr?void 0:rr.authorName,publicationUrl:null===rr||void 0===rr?void 0:rr.publicationUrl});case 4:return"ok"==(null===(n=e.sent)||void 0===n?void 0:n.status)&&null!==n&&void 0!==n&&null!==(r=n.message)&&void 0!==r&&null!==(t=r.items)&&void 0!==t&&t.length?(we("coAuthor",null===n||void 0===n||null===(i=n.message)||void 0===i||null===(a=i.items)||void 0===a||null===(s=a[0])||void 0===s||null===(c=s.author)||void 0===c?void 0:c.reduce((function(e,r){var t,n;return[].concat((0,o.Z)(e),["".concat(null!==(t=null===r||void 0===r?void 0:r.given)&&void 0!==t?t:""," ").concat(null!==(n=null===r||void 0===r?void 0:r.family)&&void 0!==n?n:"").trim()])}),[]).join(",")),we("paperTitle",null===n||void 0===n||null===(d=n.message)||void 0===d||null===(u=d.items)||void 0===u||null===(p=u[0])||void 0===p||null===(m=p.title)||void 0===m?void 0:m[0]),we("journalName",null===n||void 0===n||null===(v=n.message)||void 0===v||null===(h=v.items)||void 0===h||null===(x=h[0])||void 0===x||null===(f=x["container-title"])||void 0===f?void 0:f[0]),we("publisherName",null===n||void 0===n||null===(j=n.message)||void 0===j||null===(g=j.items)||void 0===g||null===(b=g[0])||void 0===b?void 0:b.publisher),xe(!1)):(xe(!1),ze(!1)),e.abrupt("return",(function(){xe(!1),er.unsubscribe()}));case 7:case"end":return e.stop()}}),e)}))),[rr.authorName,rr.publicationUrl]),(0,L.jsxs)(L.Fragment,{children:[null!==fe&&void 0!==fe&&fe.Seo?(0,L.jsx)(A.default,{title:null===fe||void 0===fe||null===(r=fe.Seo)||void 0===r?void 0:r.metatitle,description:null===fe||void 0===fe||null===(t=fe.Seo)||void 0===t?void 0:t.metadescription,keyword:null===fe||void 0===fe||null===(n=fe.Seo)||void 0===n?void 0:n.metakeyword,seoSchema:null===fe||void 0===fe||null===(s=fe.Seo)||void 0===s?void 0:s.schemaentry,noIndex:null===fe||void 0===fe||null===(y=fe.Seo)||void 0===y?void 0:y.noindex,noFollow:null===fe||void 0===fe||null===(B=fe.Seo)||void 0===B?void 0:B.nofollow,seo:fe.Seo}):null,(0,L.jsx)(p.Z,{className:Z().banner+" d-flex align-items-center justify-content-center",children:(0,L.jsxs)(m.Z,{md:12,children:[(0,L.jsxs)(v.Z,{md:6,className:"align-self-center",children:[(0,L.jsx)("h1",{className:Z().mainTitle,children:(0,C.ZP)(null!==(E=null===fe||void 0===fe?void 0:fe.mainTitle)&&void 0!==E?E:"")}),(0,L.jsx)("p",{className:Z().subTitle,children:(0,C.ZP)(null!==(J=null===fe||void 0===fe?void 0:fe.subTitle)&&void 0!==J?J:"")}),(0,L.jsx)(h.Z,{className:Z()["main-cta"],style:{width:"fit-content",textTransform:"uppercase"},href:"#card-promo-form",tag:"a",children:"Generate your card"})]}),(0,L.jsx)(v.Z,{md:6,children:(0,L.jsx)(w.Z,{src:"".concat((0,d.Z)(null!==(H=null===fe||void 0===fe||null===(F=fe.introImage)||void 0===F?void 0:F.url)&&void 0!==H?H:"/pwa-img/promoter-card.png")),width:"530px",height:"330px"})})]})}),(0,L.jsxs)(p.Z,{children:[(0,L.jsx)(m.Z,{className:Z().introSection+" align-items-center justify-content-center",children:(0,L.jsxs)(v.Z,{md:12,children:[(0,L.jsx)("h3",{children:null===fe||void 0===fe?void 0:fe.introTitle}),(0,L.jsx)("p",{children:(0,C.ZP)(null!==(M=null===fe||void 0===fe?void 0:fe.introPara)&&void 0!==M?M:"")})]})}),(0,L.jsx)(m.Z,{className:"mb-5",children:(0,L.jsxs)(x.Z,{className:Z()["form-card"],children:[(0,L.jsx)(m.Z,{className:"justify-content-center text-center mb-4",children:(0,L.jsx)("h3",{className:Z()["form-titles"],children:null===fe||void 0===fe?void 0:fe.formTitle})}),(0,L.jsxs)(m.Z,{className:"mb-5 mt-2 ".concat(Z().stepper),children:[(0,L.jsxs)("div",{className:Z().step,onClick:function(){return $e(0)},children:[(0,L.jsx)("div",{className:"".concat(Z()["step-count"]," ").concat(Oe>=0?Z().active:""),children:Fe.step1.completed?(0,L.jsx)(z,{strokeColor:Oe>=0?"white":"red"}):"1"}),(0,L.jsx)("div",{className:Z()["step-label"],children:"Publication Details"})]}),(0,L.jsx)("div",{className:Z().connector}),(0,L.jsxs)("div",{className:Z().step,onClick:function(){return $e(1)},children:[(0,L.jsx)("div",{className:"".concat(Z()["step-count"]," ").concat(Oe>0?Z().active:""),children:Fe.step2.completed?(0,L.jsx)(z,{strokeColor:Oe>0?"white":"red"}):"2"}),(0,L.jsx)("div",{className:Z()["step-label"],children:"Select Template"})]}),(0,L.jsx)("div",{className:Z().connector}),(0,L.jsxs)("div",{className:Z().step,onClick:function(){return $e(2)},children:[(0,L.jsx)("div",{className:"".concat(Z()["step-count"]," ").concat(Oe>1?Z().active:""),children:Fe.step3.completed?(0,L.jsx)(z,{strokeColor:Oe>1?"white":"red"}):"3"}),(0,L.jsx)("div",{className:Z()["step-label"],children:"Share"})]})]}),Fe.step1.show?(0,L.jsxs)(f.Z,{id:"card-promo-form",onSubmit:Ne(Ae?Qe:We),className:"mt-5 ".concat(Z().formContainer),children:[(0,L.jsxs)(m.Z,{children:[(0,L.jsx)(v.Z,{md:6,children:(0,L.jsxs)(j.Z,{className:Z().formGroup,children:[(0,L.jsxs)(g.Z,{children:["Author Name",(0,L.jsx)("sup",{className:"text-danger",children:"*"})]}),(0,L.jsx)(b.Z,{size:"lg",type:"text",name:"authorName",id:"authorName",placeholder:"Author Name",innerRef:ge({required:!0}),invalid:_e.authorName})]})}),(0,L.jsx)(v.Z,{md:6,children:(0,L.jsxs)(j.Z,{className:Z().formGroup,children:[(0,L.jsxs)(g.Z,{children:["Publication URL (DOI)",(0,L.jsx)("sup",{className:"text-danger",children:"*"})]}),(0,L.jsxs)(N.Z,{children:[(0,L.jsx)(b.Z,{size:"lg",type:"url",name:"publicationUrl",id:"publicationUrl",placeholder:"Publication URL",innerRef:ge({required:!0}),invalid:_e.publicationUrl}),he&&(0,L.jsx)(_.Z,{children:(0,L.jsx)(S.default,{style:{width:"30px",height:"30px"}})})]})]})})]}),(0,L.jsx)(m.Z,{}),(0,L.jsxs)(m.Z,{children:[(0,L.jsx)(v.Z,{md:6,children:(0,L.jsxs)(j.Z,{className:Z().formGroup,children:[(0,L.jsx)(g.Z,{children:"Co-author (Optional)"}),(0,L.jsx)(b.Z,{size:"lg",type:"text",name:"coAuthor",id:"coAuthor",placeholder:"Co-author (Optional)",innerRef:ge({required:!1}),invalid:_e.coAuthor,disabled:qe})]})}),(0,L.jsx)(v.Z,{md:6,children:(0,L.jsxs)(j.Z,{className:Z().formGroup,children:[(0,L.jsxs)(g.Z,{children:["Your Email ID",(0,L.jsx)("sup",{className:"text-danger",children:"*"})]}),(0,L.jsx)(b.Z,{size:"lg",type:"email",name:"yourEmailId",id:"yourEmailId",placeholder:"Email Id",innerRef:ge({required:!0}),invalid:_e.yourEmailId})]})})]}),(0,L.jsxs)(m.Z,{children:[(0,L.jsx)(v.Z,{md:6,children:(0,L.jsxs)(j.Z,{className:Z().formGroup,children:[(0,L.jsxs)(g.Z,{children:["Journal Name",(0,L.jsx)("sup",{className:"text-danger",children:"*"})]}),(0,L.jsx)(b.Z,{size:"lg",type:"text",name:"journalName",id:"journalName",placeholder:"Journal Name",innerRef:ge({required:!qe}),invalid:_e.journalName,disabled:qe})]})}),(0,L.jsx)(v.Z,{md:6,children:(0,L.jsxs)(j.Z,{className:Z().formGroup,children:[(0,L.jsx)(g.Z,{children:"Publisher Name"}),(0,L.jsx)(b.Z,{size:"lg",type:"text",name:"publisherName",id:"publisherName",placeholder:"Publishare Name",innerRef:ge({required:!qe}),invalid:_e.publisherName,disabled:qe})]})})]}),(0,L.jsx)(m.Z,{className:"my-2",children:(0,L.jsx)(v.Z,{children:(0,L.jsxs)(j.Z,{className:Z().formGroup,children:[(0,L.jsxs)(g.Z,{children:["Paper Title",(0,L.jsx)("sup",{className:"text-danger",children:"*"})]}
1),(0,L.jsx)(b.Z,{size:"lg",type:"textarea",name:"paperTitle",id:"paperTitle",placeholder:"Paper Title",innerRef:ge({required:!qe}),invalid:_e.paperTitle,disabled:qe})]})})}),(0,L.jsxs)("p",{style:{textAlign:"center"},className:"".concat(Z().formIndicator," my-3"),children:[(0,L.jsx)("span",{style:{color:"red"},children:"*"}),(0,L.jsx)("i",{children:" Indicates compulsory fields"})]}),(0,L.jsx)(m.Z,{className:"justify-content-center align-items-center",children:(0,L.jsx)(h.Z,{type:"submit",className:Z()["main-cta"],children:pe?(0,L.jsx)(S.default,{}):"UPDATE"})})]}):"",Fe.step2.show?(0,L.jsxs)(m.Z,{className:Z().verticalCarouselCol,children:[(0,L.jsx)(v.Z,{md:12,className:"d-flex mb-5 justify-content-center",children:(0,L.jsx)(U,{bgImage:"".concat((0,d.Z)(fe.promoTemplates[Ee].templateImage.url)),data:{paperTitle:null!==(K=null===ke||void 0===ke?void 0:ke.paperTitle)&&void 0!==K?K:"",authorName:null!==(Y=null===ke||void 0===ke?void 0:ke.authorName)&&void 0!==Y?Y:"",journalName:null!==(X=null===ke||void 0===ke?void 0:ke.journalName)&&void 0!==X?X:"",publisherName:null!==(Q=null===ke||void 0===ke?void 0:ke.publisherName)&&void 0!==Q?Q:"",publicationUrlEncoded:Re,publisherLogo:null!==(W=null===ke||void 0===ke?void 0:ke.publisherLogo)&&void 0!==W?W:"",poweredByLogo:null!==($=(0,d.Z)(null===fe||void 0===fe||null===(ee=fe.powerd_by)||void 0===ee?void 0:ee.url))&&void 0!==$?$:""}})}),(0,L.jsxs)(v.Z,{md:12,className:"px-5 ".concat(Z().sliderContainer),children:[(0,L.jsx)(m.Z,{children:(0,L.jsx)(T.ZP,{slidesToShow:ce?2:3,dragging:!0,cellAlign:"center",cellSpacing:ce?10:0,heightMode:"max",wrapAround:!0,autoplay:!1,autoplayInterval:3e3,autoplayReverse:!1,renderBottomCenterControls:!0,adaptiveHeight:!0,defaultControlsConfig:{containerClassName:"btn-swiper-prev-next",nextButtonClassName:"swiper-nav-button swiper-nav-button-next",prevButtonClassName:"swiper-nav-button swiper-nav-button-prev",nextButtonText:(0,L.jsx)("div",{className:"swiper-button-next"}),prevButtonText:(0,L.jsx)("div",{className:"swiper-button-prev"})},className:Z().verticalSliderContainer,children:null===fe||void 0===fe||null===(re=fe.promoTemplates)||void 0===re?void 0:re.map((function(e,r){var t;return(0,L.jsx)("div",{onClick:function(e){return Le(r)},className:Z().promoCardVerticalHolder,children:(0,L.jsx)(P.SV,{FallbackComponent:O.default,children:(0,L.jsx)(v.Z,{style:{backgroundImage:"url(".concat((0,d.Z)(null===fe||void 0===fe||null===(t=fe.promoCards[r].template)||void 0===t?void 0:t.url),")")},className:Z().promoCardVertical},null===e||void 0===e?void 0:e.title)})},"promoter_card_ver_"+(r+1))}))})}),(0,L.jsxs)(m.Z,{className:"justify-content-center align-items-center mt-5",children:[(0,L.jsx)(h.Z,{className:"".concat(Z()["secondary-cta"]," me-2"),onClick:function(){Ce(ke),Ve(!0),Ie(0),Me(q(q({},Fe),{},{step1:q(q({},Fe.step1),{},{show:!0,completed:!1}),step2:q(q({},Fe.step2),{},{show:!1,completed:!1}),step3:q(q({},Fe.step2),{},{show:!1})}))},children:"BACK"}),(0,L.jsx)(h.Z,{className:"".concat(Z()["main-cta"]," ms-2"),onClick:function(){Ie(2),Me(q(q({},Fe),{},{step1:q(q({},Fe.step1),{},{show:!1,completed:!0}),step2:q(q({},Fe.step2),{},{show:!1,completed:!0}),step3:q(q({},Fe.step2),{},{show:!0})}))},children:"NEXT"})]})]})]}):"",Fe.step3.show?(0,L.jsxs)(m.Z,{children:[(0,L.jsx)(v.Z,{md:12,className:"d-flex justify-content-center",children:(0,L.jsx)("div",{ref:function(e){de.current=e},className:"p-0",children:(0,L.jsx)(U,{bgImage:"".concat((0,d.Z)(fe.promoTemplates[Ee].templateImage.url)),data:{paperTitle:null!==(te=null===ke||void 0===ke?void 0:ke.paperTitle)&&void 0!==te?te:"",authorName:null!==(oe=null===ke||void 0===ke?void 0:ke.authorName)&&void 0!==oe?oe:"",journalName:null!==(ne=null===ke||void 0===ke?void 0:ke.journalName)&&void 0!==ne?ne:"",publisherName:null!==(ie=null===ke||void 0===ke?void 0:ke.publisherName)&&void 0!==ie?ie:"",publicationUrlEncoded:Re,publisherLogo:null!==(ae=null===ke||void 0===ke?void 0:ke.publisherLogo)&&void 0!==ae?ae:"",poweredByLogo:null!==(se=(0,d.Z)(null===fe||void 0===fe||null===(le=fe.powerd_by)||void 0===le?void 0:le.url))&&void 0!==se?se:""},className:"mx-auto"})})}),(0,L.jsx)(v.Z,{md:12,className:"d-flex justify-content-center align-items-center w-100 mt-5 ".concat(Z().socialsContainer),children:(0,L.jsxs)("div",{className:"d-flex ".concat(Z().socialsRow),children:[(0,L.jsxs)("div",{className:Z().socialButton,onClick:Ke,children:[(0,L.jsx)("div",{className:Z().icon,children:(0,L.jsx)("img",{src:"/pwa-img/card-promoter/twitter.png"})}),(0,L.jsx)("div",{className:Z().iconText,children:"Twitter"})]}),(0,L.jsxs)("div",{className:Z().socialButton,onClick:Ke,children:[(0,L.jsx)("div",{className:Z().icon,children:(0,L.jsx)("img",{src:"/pwa-img/card-promoter/facebook.png"})}),(0,L.jsx)("div",{className:Z().iconText,children:"Facebook"})]}),(0,L.jsxs)("div",{className:Z().socialButton,onClick:Ke,children:[(0,L.jsx)("div",{className:Z().icon,children:(0,L.jsx)("img",{src:"/pwa-img/card-promoter/linkedin.png"})}),(0,L.jsx)("div",{className:Z().iconText,children:"LinkedIn"})]}),(0,L.jsxs)("div",{className:Z().socialButton,onClick:Ke,children:[(0,L.jsx)("div",{className:Z().icon,children:(0,L.jsx)("img",{src:"/pwa-img/card-promoter/email.png"})}),(0,L.jsx)("div",{className:Z().iconText,children:"Email"})]}),(0,L.jsxs)("div",{className:Z().socialButton,onClick:Ye,children:[(0,L.jsx)("div",{className:Z().icon,children:(0,L.jsx)("img",{src:"/pwa-img/card-promoter/download.png"})}),(0,L.jsx)("div",{className:Z().iconText,children:"Download"})]})]})}),(0,L.jsx)(m.Z,{className:"justify-content-center align-items-center mt-5",children:(0,L.jsx)(h.Z,{className:"".concat(Z()["secondary-cta"]," me-2"),onClick:function(){Ie(1),Me(q(q({},Fe),{},{step1:q(q({},Fe.step1),{},{show:!1,completed:!1}),step2:q(q({},Fe.step2),{},{show:!0,completed:!1}),step3:q(q({},Fe.step2),{},{show:!1})}))},children:"BACK"})})]}):""]})})]})]})}},56810:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/card-promoter",function(){return t(61406)}])},63502:function(e){e.exports={card:"Cards_card__2Hn45",cardBGContainer:"Cards_cardBGContainer__26TFs",paperTitleContainer:"Cards_paperTitleContainer__y9iJM",journalNameContainer:"Cards_journalNameContainer__31cA4",scanToView:"Cards_scanToView__24QQ4",publisherNameContainer:"Cards_publisherNameContainer__1L_-E",authorNameContainer:"Cards_authorNameContainer__2A1nf",qrCodeContainer:"Cards_qrCodeContainer__1Vzba",publisherL
1ogoContainer:"Cards_publisherLogoContainer__2uOhn",poweredByLogo:"Cards_poweredByLogo__3Wos-"}},37619:function(e){e.exports={banner:"promoCard_banner__1KLlg",mainTitle:"promoCard_mainTitle__1uO3q",subTitle:"promoCard_subTitle__14HFP",introSection:"promoCard_introSection__1EE3V","templates-titles":"promoCard_templates-titles__3b4c7","form-titles":"promoCard_form-titles__coyYN",promoCardHolder:"promoCard_promoCardHolder__3mPuT",promoCard:"promoCard_promoCard__3DKTB",promoCardVerticalHolder:"promoCard_promoCardVerticalHolder__3Vl_w",promoCardVertical:"promoCard_promoCardVertical__K9h9T","main-cta":"promoCard_main-cta__JPhJh","secondary-cta":"promoCard_secondary-cta__1E1Ij","form-card":"promoCard_form-card__35HcY",formGroup:"promoCard_formGroup__pzGeq",formIndicator:"promoCard_formIndicator__t5CI_",stepper:"promoCard_stepper__3xAmV",step:"promoCard_step__36gyR",connector:"promoCard_connector__3baHs","step-count":"promoCard_step-count__3UxdJ",active:"promoCard_active__3t8G4","step-label":"promoCard_step-label__2XU_G",cardPromoImage:"promoCard_cardPromoImage__1desU",cardTitle1:"promoCard_cardTitle1__40eub",cardDesc1:"promoCard_cardDesc1__cGoK0",sliderContainer:"promoCard_sliderContainer__3av4z",socialButton:"promoCard_socialButton__1MB63",icon:"promoCard_icon__5tPUy",iconText:"promoCard_iconText__30hrs",mainCarousel:"promoCard_mainCarousel__MEo3k",formContainer:"promoCard_formContainer__2wIEo",socialsContainer:"promoCard_socialsContainer__syu71",socialsRow:"promoCard_socialsRow__3r-YP"}}},function(e){e.O(0,[9039,2283,4e3,7732,9434,9774,2888,179],(function(){return r=56810,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.