PageSourceSearch

https://demo.sonraisecurity.com/_next/static/chunks/pages/integration/seismic/email-editor-cf84b0a435d9d7b5.js

js sonraisecurity.com collected 2026-09-24 09:26:28 UTC 21,376 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4a50e629-50c4-5d92-a1d1-97d91b3b1682")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5339],{16998:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var l=n(85966),s=n(26626),a=n(78157);function r(){let e=(0,l._)(["\n    fragment ProjectShareLinkWithScreenshot on ProjectShareLink {\n  ...ProjectShareLinkWithItems\n  projectScreenshot\n}\n    ",""]);return r=function(){return e},e}let i=(0,s.Ay)(r(),a.b)},27670:(e,t,n)=>{"use strict";n.d(t,{V:()=>m});var l=n(6029),s=n(55314),a=n(65435),r=n(81079),i=n(91596),o=n(78869),c=n(22391),u=n(46907),d=n(55729);function m(e){let{projectFlows:t,exportOptions:n,setExportOptions:m,pdfFlowIds:h,onPdfFlowIdsChange:g,disableTypeSelection:x,...f}=e,v=n.type===u.G4.PDF;(0,d.useEffect)(()=>{var e;if(!(null==t?void 0:t.length))return;let l=(null==(e=t.find(e=>e.isStarting))?void 0:e.id)||t[0].id;if(v){if(null==h?void 0:h.length)return;let e=n.flowId||l,s=t.find(t=>t.id===e);null==g||g([e]),m({...n,stepCount:s?p([s]):n.stepCount})}else{if(n.flowId)return;m({...n,flowId:l})}},[n,m,t,v,h,g]);let b=(0,d.useMemo)(()=>v?t.filter(e=>null==h?void 0:h.includes(e.id)):[],[v,h,t]),y=b.reduce((e,t)=>e+t.stepCount,0),j=1===b.length?b[0]:null,w=j?Math.min(j.stepCount,60):0,N=(0,d.useMemo)(()=>{let[e,n]=(0,c.mX)(t||[],e=>e.isStarting);return[...e,...n].map(e=>{let t=e.stepCount;return{label:"".concat(e.name," (").concat(t||"No"," steps)"),value:e.id}})},[t]);return(0,l.jsx)(s.aF,{...f,children:(0,l.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[!x&&(0,l.jsx)(a.z,{value:n.type,onValueChange:e=>m({...n,type:e}),items:u.lC,variant:"card",className:"w-full"}),v?(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(r.K,{label:"Flows",placeholder:"Select flows",items:N,selected:null!=h?h:[],onChange:e=>{let l=p(t.filter(t=>e.includes(t.id)));null==g||g(e),m({...n,stepCount:l||n.stepCount})}}),y>60&&(0,l.jsxs)("p",{className:"pl-0.5 text-xs text-gray-500",children:["Exports with more than ",60," steps will export only the first ",60,"."]})]}),j&&w>0&&(0,l.jsx)(i.Q,{label:"Number of steps",elementRight:"steps",min:1,max:w,value:n.stepCount,onValueChange:e=>m({...n,stepCount:e})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.l6,{label:"Flow",items:N,onValueChange:e=>m({...n,flowId:e}),value:n.flowId}),(0,l.jsx)(i.Q,{label:"Number of steps",elementRight:"steps",min:1,max:u.wv,value:n.stepCount,onValueChange:e=>m({...n,stepCount:e})})]}),n.type!==u.G4.PDF&&(0,l.jsx)(i.Q,{label:"Time per Step",elementRight:"seconds",min:u.R8,max:u.ZF,value:n.timePerStep,onValueChange:e=>m({...n,timePerStep:e})})]})})}function p(e){return Math.min(Math.max(0,...e.map(e=>e.stepCount)),60)}},28420:(e,t,n)=>{"use strict";n.d(t,{l:()=>d});var l=n(6029),s=n(95632),a=n(95678);n(55729);var r=n(59391);let i=["toast","title","description","loader","closeButton","cancelButton","actionButton","success","error","info","warning","loading","default","content","icon"],o={toast:(0,s.cn)("group/toast !w-full !gap-2 !rounded-2xl !px-4 !py-3 !shadow-button-elevated","[--toast-icon-margin-end:1px] [--toast-icon-margin-start:-1px] [--toast-svg-margin-start:0px] [--toast-svg-margin-end:0px]","![box-shadow:0px_2px_1px_-1px_rgba(255,255,255,0.7)_inset]","[&:has([data-description])]:!items-start","[&:has([data-description])]:!pb-3.5","[&:has([data-description])_[data-close-button]]:!self-center [&:has([data-description])_[data-button]]:!self-center","[&[data-type=info]]:!border-blue-200 [&[data-type=info]]:!bg-blue-50 [&[data-type=info]]:!text-blue-800"),closeButton:(0,s.cn)("!absolute !left-auto !top-0 !-right-2.5 !z-10 !grid !h-4 !w-4 !place-items-center !rounded-full !border !border-gray-200 !bg-white !p-0 !text-gray-600","!opacity-0 !transition-opacity !duration-150 group-hover/toast:!opacity-100 hover:!bg-white/60 hover:!text-gray-900 hover:!ring-gray-200 focus-visible:!opacity-100"),actionButton:(0,s.cn)("!inline-flex !h-6 !items-center !rounded-lg !px-2.5 !text-xs !leading-none !font-medium !text-gray-700 !shadow-button-elevated !transition-all","!border !border-gray-300 !bg-default","hover:!bg-gray-50 hover:!text-gray-900","active:!bg-gray-50 active:!text-gray-900 active:!shadow-button-shallow-inset-indented","focus-visible:!text-gray-900 focus-outline"),cancelButton:(0,s.cn)("!inline-flex !h-7 !items-center !rounded-lg !px-2.5 !text-sm !leading-none !font-medium !text-gray-700 !shadow-button-elevated !transition-colors","!border !border-gray-300 !bg-default","hover:!bg-gray-50 hover:!text-gray-900","focus-outline"),icon:"[&:has(+[data-content]>[data-description])]:!mt-0.5",loader:(0,s.cn)("!absolute !inset-0 !m-0 !grid !place-items-center !transform-none"),success:"!border-green-200 !bg-green-50 !text-green-800",error:"!border-red-200 !bg-red-50 !text-red-800",warning:"!border-orange-200 !bg-orange-50 !text-orange-800",loading:"!border-gray-300 !bg-default !text-gray-700",default:"!text-gray-700 !border-gray-200 !bg-default",info:"!border-blue-200 !bg-blue-50 !text-blue-800"},c={default:null,success:(0,l.jsx)(a.I,{size:"sm",name:"circle-check",className:"text-green-700"}),info:(0,l.jsx)(a.I,{size:"sm",name:"info",className:"text-blue-700"}),warning:(0,l.jsx)(a.I,{size:"sm",name:"triangle-alert",className:"text-orange-700"}),error:(0,l.jsx)(a.I,{size:"sm",name:"circle-x",className:"text-red-700"}),loading:(0,l.jsx)(a.I,{size:"sm",name:"spinner",className:"text-gray-500"})},u={success:c.success,info:c.info,warning:c.warning,error:c.error,loading:c.loading,close:(0,l.jsx)(a.I,{name:"x",size:"xs",className:"text-current"})};function d(e){let{closeButton:t=!0,expand:n=!1,icons:a,toastOptions:c,...d}=e;return(0,l.jsx)(r.l$,{...d,closeButton:t,expand:n,icons:{...u,...a},toastOptions:{...c,classNames:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let l={};for(let e of i){let n=t.map(t=>
3null==t?void 0:t[e]).filter(Boolean);n.length>0&&(l[e]=(0,s.cn)(n))}return l}(o,null==c?void 0:c.classNames)}})}},39792:(e,t,n)=>{"use strict";n.d(t,{E:()=>g});var l=n(6029),s=n(13717),a=n(10403),r=n(22743),i=n(53525),o=n(69222),c=n(81983),u=n(24363),d=n(78476),m=n(98089),p=n(84379),h=n(55729);function g(e){var t;let{children:n,token:g,type:x,onLogout:f}=e;(0,h.useEffect)(()=>{s.A.init()},[]);let[{membershipId:v,activeMembership:b},y]=(0,p.Ag)({getStorageActiveMembershipId:a.I.getActiveMembershipId,setStorageActiveMembershipId:a.I.setActiveMembershipId}),j=(0,h.useMemo)(()=>({membershipId:v}),[v]),[{data:w},N]=(0,d.Z)({variables:j,context:j,pause:!v}),S=null==w?void 0:w.workspaceLayoutConfig,[{data:C}]=(0,u.g)(),k=null==C?void 0:C.currentUser,I=[{label:(null==k?void 0:k.email)||"Profile",type:"text",group:"",avatarLeft:{src:(null==k?void 0:k.image)||"",size:20,initials:null==k||null==(t=k.firstName)?void 0:t[0]}},{label:"Log out",type:"button",iconLeft:"log-out",onClick:f}];return((0,h.useEffect)(()=>{if(k&&S&&b){var e;let{email:t,firstName:n,lastName:l,createdAt:a,image:r,crossDomainTracking:i}=k,{id:o,name:c,slug:u,planType:d,domain:m}=S,p={email:t,firstName:n,lastName:l,role:null==b||null==(e=b.role)?void 0:e.name,avatar:r,createdAt:a},h={workspaceId:o,workspaceName:c,workspaceSlug:u,workspacePlanType:d,workspaceDomain:m||""},g={crossDomain:!!i};(null==k?void 0:k.internalRole)?s.A.identify(k.id,p,void 0,g):(s.A.group("company",o,h),s.A.identify(k.id,p,h,g)),s.A.track("email_editor_integration_active",{integration:x})}},[k,S,b,x]),S&&b)?(0,l.jsx)(p.Jb,{currentUserCtx:{currentUser:k},workspaceCtx:{workspace:S,workspaceMembership:b,setActiveMembership:y,refetch:N},children:(0,l.jsx)(m.V,{token:g,children:(0,l.jsx)(r.B,{children:n})})}):(0,l.jsx)(r.B,{children:(0,l.jsxs)("div",{className:"h-full w-full bg-white p-4",children:[f&&(0,l.jsx)("div",{className:"absolute top-0 right-0",children:(0,l.jsx)(i.W1,{items:I,align:"end",children:(0,l.jsx)(o.K,{icon:"ellipsis",variant:"ghost",size:"sm","aria-label":"More options"})})}),(0,l.jsx)(c.V,{className:"bg-white p-4",iconLeft:"loader",title:"Loading workspace..."})]})})}}
3,46999:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/integration/seismic/email-editor",function(){return n(48090)}])},48090:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>U});var l=n(6029),s=n(39792),a=n(13717),r=n(73914),i=n(98494),o=n(3947),c=n(95678),u=n(55809),d=n(55613),m=n(59391),p=n(85966),h=n(26626);function g(){let e=(0,p._)(["\n    fragment SeismicUser on SeismicUser {\n  id\n  folderUrl\n}\n    "]);return g=function(){return e},e}let x=(0,h.Ay)(g());var f=n(1559);function v(){let e=(0,p._)(["\n    query GetSeismicUser($workspaceId: String!) {\n  seismicUser(workspaceId: $workspaceId) {\n    ...SeismicUser\n  }\n}\n    ",""]);return v=function(){return e},e}let b=(0,h.Ay)(v(),x);var y=n(97725),j=n(97985),w=n(84379),N=n(36751),S=n(55729);function C(e){let{shareLink:t,html:n,demoName:s,companyLogoUrl:a,folderUrl:r,onCreateAnother:i}=e,{workspace:o}=(0,w.hA)(),p=async()=>{try{await navigator.clipboard.writeText(t),m.oR.success("Demo link copied.")}catch(e){m.oR.error("Could not copy. Select the link manually below.")}};return(0,l.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-white p-6",children:(0,l.jsxs)("div",{className:"flex w-full max-w-[600px] flex-col items-center space-y-3 rounded-2xl border p-8",children:[(0,l.jsx)(y.Q,{primaryLogo:o.logoUrl,secondaryLogo:a}),(0,l.jsx)("h1",{className:"text-default text-2xl font-semibold tracking-tight",children:s?"".concat(s," is ready"):"Your demo is ready"}),(0,l.jsxs)("p",{className:"text-center text-lg font-medium text-gray-500",children:["Copy it into a Seismic LiveSend message, Digital Sales Room, or WorkSpace asset.",r?(0,l.jsxs)(l.Fragment,{children:[" It's also saved to your ",(0,l.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-link font-medium underline underline-offset-2",children:["Navattic folder",(0,l.jsx)(c.I,{name:"external-link",size:"sm",className:"ml-1 inline align-[-0.15em]"})]}),"."]}):null]}),(0,l.jsxs)("div",{className:"flex w-full flex-col items-stretch gap-3 pt-2",children:[(0,l.jsx)(u.p,{value:t,isReadOnly:!0,onFocus:e=>e.currentTarget.select()}),(0,l.jsxs)("div",{className:"flex justify-center gap-2",children:[(0,l.jsx)(d.$,{variant:"outline",iconLeft:"link",onClick:p,children:"Copy link"}),(0,l.jsx)(d.$,{variant:"outline",iconLeft:"image-play",onClick:()=>{try{(0,N.q)(n),m.oR.success("Demo copied with image.")}catch(e){m.oR.error("Failed to copy to clipboard.")}},children:"Copy with image"})]}),(0,l.jsx)(d.$,{variant:"solid",colorScheme:"gray",iconLeft:"plus",onClick:i,className:"self-center",children:"Create another demo"})]})]})})}let k=function(){var e,t;let{workspace:n}=(0,w.hA)(),[s,c]=(0,S.useState)(null),[{data:u}]=(e={variables:{workspaceId:n.id},pause:!s},(0,f.s)(b,"seismicUser",e)),d=async e=>{let{html:t,shareLink:n,demoName:l,companyLogoUrl:s}=e;a.A.track("share_link_inserted",{integration:i.r.Seismic});try{(0,N.q)(t),m.oR.success("Demo copied to your clipboard.")}catch(e){m.oR.error("Failed to copy to clipboard.")}c({html:t,shareLink:n,demoName:l,companyLogoUrl:s})};return s?(0,l.jsx)(C,{shareLink:s.shareLink,html:s.html,demoName:s.demoName,companyLogoUrl:s.companyLogoUrl,folderUrl:null==u||null==(t=u.seismicUser)?void 0:t.folderUrl,onCreateAnother:()=>c(null)}):(0,l.jsx)(j.d,{allowEmailInvites:!1,defaultEmailClient:o.N2g.None,source:"seismic",children:(0,l.jsx)("div",{className:"mx-auto h-full max-w-[600px] py-20",children:(0,l.jsx)(r.A,{className:"overflow-hidden rounded-2xl",insertShareLink:d,showHeaderMenu:!1})})})};var I=n(10403),L=n(22743),A=n(81983),_=n(28420),P=n(57200),E=n(47527),M=n(23397),T=n(50197);let U=function(){let[e,t]=(0,S.useState)(null);(0,S.useEffect)(()=>{let e=function(){let e=window.location.hash.replace(/^#/,"");if(!e)return null;let t=new URLSearchParams(e),n=t.get("token"),l=t.get("membershipId");return n&&l?{token:n,membershipId:l}:null}();if(!e)return void E.Rm.warn({message:"Seismic iframe loaded without a valid session"});I.I.setActiveMembershipId(e.membershipId),t(e),window.history.replaceState(null,"",window.location.pathname+window.location.search)},[]);let n=(0,S.useMemo)(()=>{var t;return(0,P.t)(null!=(t=null==e?void 0:e.token)?t:"")},[e]);return e?(0,l.jsxs)(T.Kq,{value:n,children:[(0,l.jsx)(s.E,{token:e.token,type:i.r.Seismic,children:(0,l.jsx)(k,{})}),(0,l.jsx)(_.l,{style:{zIndex:M.hxu}})]}):(0,l.jsx)(L.B,{children:(0,l.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-white p-8",children:(0,l.jsx)(A.V,{iconLeft:"triangle-alert",title:"Session expired",description:"Reopen Navattic from the Seismic sidebar to start a new session.",className:"max-w-md"})})})}},50155:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var l=n(6029);function s(e){let{logoUrl:t}=e;return t?(0,l.jsx)("img",{src:t,className:"max-h-6 max-w-full object-contain"}):null}},70478:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>g,fP:()=>d,tj:()=>m});var l=n(6029),s=n(16332),a=n(95632),r=n(4165),i=n(55613),o=n(27670),c=n(46907),u=n(55729);let d={type:c.G4.GIF,stepCount:5,timePerStep:1},m={type:c.G4.PNG,stepCount:1,timePerStep:1};function p(e){let{loading:t,previewURL:n}=e;return t?(0,l.jsx)(s.a,{}):n?(0,l.jsx)("img",{src:n,width:"600",height:"auto"}):null}function h(e){let{open:t,onOpenChange:n,onSave:s,project:a,exportOptions:r}=e,[i,c]=(0,u.useState)(r),d=(0,u.useMemo)(()=>{var e,t;return null!=(t=null==(e=a.flows)?void 0:e.map(e=>{var t,n;return{id:e.id,name:e.name,isStarting:e.isStarting,stepCount:null!=(n=null==(t=e.editVersion)?void 0:t.doc.stepCount)?n:0}}))?t:[]},[a]);return(0,l.jsx)(o.V,{open:t,onOpenChange:n,title:"Export Settings",projectFlows:d,exportOptions:i,setExportOptions:c,disableTypeSelection:!0,primaryButton:{children:"Save",onClick:()=>{s(i)}},secondaryButton:{children:"Cancel",onClick:()=>{n(!1)}}})}function g(e){let{project:t,exportOptions:n,setExportOptions:s,includeGif:o,setIncludeGif:c,previewURL:d,loading:m,className:g,...x}=e,[f,v]=(0,u.useState)(!1);return(0,l.jsxs)("div",{className:(0,a.cn)(g,"flex flex-col gap-2"),...x,children:[(0,l.jsxs)("div",{className:"flex w-full items-center justify-between gap-5",children:[(0,l.jsx)(r.d,{label:"Include GIF",checked:o,onCheckedChange:c,className:"py-2"}),o&&(0,l.jsx)(i.$,{onClick:()=>v(e=>!e),iconLeft:"settings",variant:"ghost",size:"sm",children:"Advanced"})]}),(0,l.jsx)(p,{loading:m,previewURL:d}),(0,l.jsx)(h,{open:f,onOpenChange:v,onSave:e=>{v(!1),s(e)},project:t,exportOptions:n})]})}}
3,73914:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var l=n(6029),s=n(53525),a=n(69222),r=n(59069),i=n(84379),o=n(55729);function c(e){let{onLogout:t}=e,{setActiveMembership:n}=(0,i.hA)(),[c,u]=(0,o.useState)(null),[{data:d}]=(0,r.M)({variables:{slug:c},pause:!c});(0,o.useEffect)(()=>{(null==d?void 0:d.initialMembership)&&(n(d.initialMembership),u(null))},[d,n]);let{menuItems:m,hasVisibleItems:p}=function(e){var t;let{onChangeWorkspaceSlug:n,extraItems:l=[]}=e,{currentUser:s}=(0,i.iZ)(),{workspace:a}=(0,i.hA)(),[r,c]=(0,o.useState)(""),{workspaceItems:u}=(0,i.$6)({selectedWorkspaceSlug:a.slug,onChangeWorkspaceSlug:n,searchText:r}),d=[{label:(null==s?void 0:s.email)||"Profile",type:"text",group:"",avatarLeft:{src:(null==s?void 0:s.image)||"",size:20,initials:null==s||null==(t=s.firstName)?void 0:t[0]}},{id:"search",label:"Search Workspaces",iconLeft:"search",type:"search",value:r,onValueChange:c,isHidden:u.length<=4},...u,...l],m=d.some(e=>!e.isHidden);return{menuItems:d,hasVisibleItems:m}}({onChangeWorkspaceSlug:u,extraItems:[{label:"Log out",type:"button",iconLeft:"log-out",onClick:t,isHidden:!t}]});return p?(0,l.jsx)("div",{className:"absolute top-0 right-0",children:(0,l.jsx)(s.W1,{items:m,align:"end",children:(0,l.jsx)(a.K,{icon:"ellipsis",variant:"ghost",size:"sm","aria-label":"More options"})})}):null}var u=n(85966),d=n(26626),m=n(16998);function p(){let e=(0,u._)(["\n    query GetProjectShareLinkWithScreenshot($id: String!) {\n  projectShareLink(id: $id) {\n    ...ProjectShareLinkWithScreenshot\n  }\n}\n    ",""]);return p=function(){return e},e}n(1559);let h=(0,d.Ay)(p(),m.D);var g=n(50197),x=n(14701),f=n(3947),v=n(95632),b=n(76678),y=n(59584),j=n(93510),w=n(28117),N=n(98089),S=n(61520),C=n(75615),k=n(10924),I=n(70478),L=n(97985),A=n(36751),_=n(80598),P=n(72036),E=n(81519),M=n(46907);let T=function(e){let{recipients:t,insertShareLink:n,onLogout:s,showHeaderMenu:a=!0,className:r}=e,{customDemoBuilderState:u,dispatchCustomDemoBuilder:d}=(0,_.b)({recipients:t}),{token:m}=(0,N.r)(),{getThumbnail:p}=function(){let e=(0,g.tH)();return{getThumbnail:async t=>{var n,l,s;return null!=(s=null==(l=(await e.query(h,{id:t}).toPromise()).data)||null==(n=l.projectShareLink)?void 0:n.projectScreenshot)?s:void 0}}}(),{demoName:T,settings:U,visitorOpportunityId:D,error:R}=u,{shareType:z,companyLogoUrl:B}=U,{defaultEmailClient:F,showAdvancedEmailTemplate:V}=(0,L.e)(),O=(0,x.z)({defaultEmailClient:F,defaultSendDemoInvites:!1}),{emailClient:W,includeGif:G}=O,{fetching:H,formatShareLink:$}=(0,A.ef)(),q=(0,i.CE)(f.TOI.LAUNCHPAD_ADVANCED_EMAIL_TEMPLATE),K=(0,i.CE)(f.TOI.LAUNCHPAD_COPY_WITH_GIF),{stepConfig:Q}=(0,A.wT)({shareType:z,customDemoBuilderState:u,dispatchCustomDemoBuilder:d}),{currentStep:X,selectedInterestFlows:Z,selectedProject:Y}=u,J=Q.findIndex(e=>{let{id:t}=e;return t===X}),ee=Q.findIndex(e=>{let{id:t}=e;return t===E.RX.Content}),et=(0,k.g)({currentConfigIndex:J,stepConfig:Q,customDemoBuilderState:u,userDefaults:O}),{handleRemoveInterestItem:en,handleRemoveProject:el}=(0,C.o)({customDemoBuilderState:u,dispatchCustomDemoBuilder:d,currentConfigIndex:J,contentConfigIndex:ee}),es=async e=>{var t;let{shareLink:l,validRecipients:s}=e,{projectId:a,customPath:r}=l,i=$(r),o=s.length>0?s[0]:void 0,c=a?await (0,P.xL)({projectId:a,options:K?I.fP:I.tj,token:m}):void 0;n({html:G?(0,A.Lc)({shareLink:i,shareType:l.shareType,exportUrl:c&&!K?(0,M.FI)(c):c,primaryRecipient:o,emailClient:W,projectName:T,showAdvancedEmailTemplate:null!=V?V:q}):(0,A.Zs)({shareLink:i,shareType:l.shareType,primaryRecipient:o,emailClient:W}),thumbnail:null!=(t=await p(l.id))?t:c,shareLink:i,demoName:null!=T?T:null,opportunityId:null!=D?D:null,recipientEmails:null==s?void 0:s.map(e=>e.recipientInfo),companyLogoUrl:null!=B?B:null})},ea=(0,o.useCallback)(e=>{d({type:"set-error",payload:e}),setTimeout(()=>{d({type:"set-error",payload:null})},5e3)},[d]),{loading:er,onCreateCustomDemoAndShareLink:ei}=(0,A.EX)({customDemoBuilderState:u,userDefaults:O,dispatchCustomDemoBuilder:d,onCreateCustomDemoShareLink:es,onError:ea}),{navigateToNextStep:eo,navigateToPreviousStep:ec}=(0,A.AK)({currentConfigIndex:J,stepConfig:Q,shareType:z,dispatchCustomDemoBuilder:d,onCreateCustomDemoAndShareLink:ei});return(0,l.jsxs)("div",{className:(0,v.cn)("flex h-full flex-col border bg-white",r),children:[(0,l.jsx)("div",{className:"flex-1 overflow-x-hidden overflow-y-auto px-5 pt-5",children:(0,l.jsxs)("div",{className:"relative flex flex-col gap-6 pb-5",children:[a?(0,l.jsx)(c,{onLogout:s}
3):null,(0,l.jsx)(b.C,{steps:Q,value:X,allowProgress:!1,allowBack:!0,onValueChange:e=>d({type:"set-current-step",payload:e}),className:"flex items-center justify-center"}),(0,l.jsx)(S.V,{selectedInterestFlows:Z,selectedProject:Y,onRemoveInterestItem:en,onReorderInterestItems:e=>d({type:"set-selected-interest-flows",payload:e}),onRemoveProject:el}),(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[R&&(0,l.jsx)(y._,{colorScheme:"red",icon:"info",title:"Error: ".concat(R)}),(0,l.jsx)(j.A,{customDemoBuilderState:u,dispatchCustomDemoBuilder:d,userDefaults:O,navigateToNextStep:eo,paginationClassName:"bottom-0 -mx-5 px-5"})]})]})}),(0,l.jsx)("div",{className:"flex-shrink-0 border bg-gray-50 px-6 py-4",children:(0,l.jsx)(w.A,{isLoading:er||H,stepConfig:Q,isStepValid:et,currentConfigIndex:J,navigateToPreviousStep:ec,navigateToNextStep:eo,customDemoBuilderState:u,dispatchCustomDemoBuilder:d,userDefaults:O,insertHTMLOnLastStep:!0})})]})},U=function(e){let{recipients:t,insertShareLink:n,onLogout:s,showHeaderMenu:a=!0,className:r}=e,{workspace:o}=(0,i.hA)();return(0,l.jsx)(T,{className:r,insertShareLink:n,recipients:t,onLogout:s,showHeaderMenu:a},o.id)}},97725:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var l=n(6029),s=n(95632),a=n(1778),r=n(50155);function i(e){let{primaryLogo:t,secondaryLogo:n,size:i=48,className:o}=e;if(!t&&!n)return null;if(t&&n)return(0,l.jsxs)("div",{className:(0,s.cn)("flex items-center p-2",o),children:[(0,l.jsx)(a.e,{shape:"square",src:t,size:i,className:"bg-ct-dialog-bg -rotate-[10deg] transform-gpu shadow-sm"}),(0,l.jsx)(a.e,{shape:"square",src:n,size:i,className:"bg-ct-dialog-bg ml-[-4px] rotate-[10deg] transform-gpu shadow-sm"})]});let c=t||n;return c?(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(r.g,{logoUrl:c})}):null}}},e=>{e.O(0,[6593,1663,9616,1456,238,9913,8277,3684,4446,4882,9391,2292,9261,8750,9047,6450,9899,7283,488,9928,7929,2532,8975,6100,865,2593,4379,2146,1224,5389,2045,2444,5720,7676,7135,2020,4641,3482,9933,8255,8792],()=>e(e.s=46999)),_N_E=e.O()}]);
4//# sourceMappingURL=email-editor-cf84b0a435d9d7b5.js.map
5//# debugId=4a50e629-50c4-5d92-a1d1-97d91b3b1682

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.