PageSourceSearch

https://elasticemail.com/_next/static/chunks/4643.2dd065bca0e290af.js

js elasticemail.com collected 2026-10-01 10:18:04 UTC 6,519 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4643],{64643:function(e,t,i){i.r(t),i.d(t,{PreviewMode:function(){return n},TemplatePreviewModal:function(){return M}});var o,n,r=i(57437),d=i(2265),a=i(5919),l=i(91144),s=i(68193),c=i(77725);let p=s.ZP.div.attrs({className:"wrapperMobilePreview"}).withConfig({componentId:"sc-a45911f0-0"})(["display:flex;align-items:center;justify-content:center;"]),u=s.ZP.div.attrs({className:"smartphoneBorder"}).withConfig({componentId:"sc-a45911f0-1"})(["border:2px solid ",";border-radius:36px;"],c.Z.gray[3]),f=s.ZP.div.attrs({className:"smartphone"}).withConfig({componentId:"sc-a45911f0-2"})(["position:relative;width:375px;height:662px;margin:auto;border:16px "," solid;border-top-width:19px;border-bottom-width:19px;border-radius:36px;"],c.Z.gray[1]),x=s.ZP.div.attrs({className:"smartphoneContentWrapper"}).withConfig({componentId:"sc-a45911f0-3"})(["height:100%;border:2px solid ",";border-radius:18px;overflow:hidden;"],c.Z.gray[3]),h=e=>{let{children:t}=e;return(0,r.jsx)(p,{children:(0,r.jsx)(u,{children:(0,r.jsx)(f,{children:(0,r.jsx)(x,{children:t})})})})};var b=i(55221),g=i(24899);let m=s.ZP.div.withConfig({componentId:"sc-94a92535-0"})(["display:inline-flex;"]),w={small:"7px 11px",medium:"11px",large:"15px 11px"},v=s.ZP.button.withConfig({componentId:"sc-94a92535-1"})(["box-sizing:border-box;color:",";background:",";font-size:14px;box-shadow:none;min-width:88px;line-height:20px;font-family:Mulish;border:1px solid ",";padding:",";text-transform:none;cursor:pointer;&:hover{background:",";}&:disabled{background:",";border:1px solid ",";color:",";cursor:default;}&:not(:first-child){margin-left:-1px;}border-radius:0;&:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px;}&:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px;}",""],c.Z.gray[6],c.Z.basic.paper,c.Z.jacarta[1],e=>{var t;let{$size:i}=e;return null!==(t=w[i])&&void 0!==t?t:w.medium},c.Z.snow[3],c.Z.gray[2],c.Z.gray[2],c.Z.gray[4],e=>{let{$selected:t}=e;return t&&(0,s.iv)(["color:",";background:",";border-color:",";z-index:1;&:hover{background:",";}"],c.Z.indigo[6],c.Z.snow[5],c.Z.indigo[6],c.Z.snow[3])}),Z=e=>{let{size:t="medium",options:i,defaultValue:o,value:n,onChange:a,id:l}=e,[s,c]=(0,d.useState)(o),p=(0,b.Z)(n)?s:n,u=e=>{(0,b.Z)(e.value)||e.value===p||((0,b.Z)(n)&&c(e.value),null==a||a(e.value))};return(0,r.jsx)(m,{id:l,role:"group",children:i.map((e,i)=>(0,r.jsx)(v,{type:"button",id:e.id||"toggle-button-".concat(i),disabled:e.disabled,$selected:p===e.value,$size:t,onClick:()=>u(e),children:e.disableSentenceCase||"string"!=typeof e.label?e.label:(0,g.Z)(e.label)},i))})};var j=i(73470);let k=s.ZP.div.withConfig({componentId:"sc-59c7b809-0"})(["background-color:transparent;height:100%;position:relative;z-index:5;"]),y=s.ZP.div.withConfig({componentId:"sc-59c7b809-1"})(["max-width:870px;width:100%;box-sizing:border-box;display:flex;align-items:center;flex-direction:column;margin:auto;background-color:",";border-radius:32px;box-shadow:0px 5px 12px #021d671a;padding:",";position:relative;*{font-family:var(--font-mulish) !important;font-size:14px;}"],c.Z.basic.paper,e=>{let{$isMobile:t}=e;return t?"48px 24px":"50px 30px 30px"}),C=s.ZP.div.withConfig({componentId:"sc-59c7b809-2"})(["width:100%;height:80vh;max-height:calc(100vh - 200px);display:flex;align-items:center;justify-content:center;"]),P=s.ZP.div.withConfig({componentId:"sc-59c7b809-3"})(["width:100%;display:flex;align-items:start;justify-content:center;"]),I=s.ZP.div.withConfig({componentId:"sc-59c7b809-4"})(["display:flex;flex-wrap:wrap;width:100%;justify-content:space-between;align-content:center;padding:16px 0;"]),z=s.ZP.div.withConfig({componentId:"sc-59c7b809-5"})(["display:flex;justify-content:flex-start;align-items:center;white-space:nowrap;"]),N=s.ZP.div.withConfig({componentId:"sc-59c7b809-6"})(["font-family:Nunito;font-size:16px;font-weight:600;line-height:1.04;letter-spacing:0em;color:",";margin:0;max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;& a{color:",";}"],c.Z.jacarta[5],c.Z.indigo[6]);(o=n||(n={})).Desktop="desktop",o.Mobile="mobile";let M=e=>{let{isOpen:t,onOpenChange:i,htmlContent:o,title:n}=e,[s,c]=(0,d.useState)("desktop"),{isMobile:p}=(0,j.d)(),u=p?"desktop":s,f="desktop"!==u?h:d.Fragment;return(0,r.jsx)(a.R,{isOpen:t,onOpenChange:i,placement:"center",backdrop:"blur",classNames:{wrapper:"min-w-[360px] px-[24px] tablet:px-[32px] tabletLarge:px-0 border-none",base:"min-w-[312px] max-w-[870px] w-full bg-transparent outline-none shadow-none my-0 mt-8 md:mt-16",backdrop:"min-w-[360px] z-50 bg-[#2D2F7A3D] backdrop-blur-sm",closeButton:"z-20 right-5 top-5"},scrollBehavior:"outside",closeButton:!1,children:(0,r.jsx)(l.A,{className:"animate-fadeIn",children:(0,r.jsx)(k,{children:(0,r.jsxs)(y,{$isMobile:p,children:[(0,r.jsx)("div",{className:"flex w-full flex-row",children:(0,r.jsxs)(I,{children:[(0,r.jsx)(z,{children:n&&(0,r.jsx)(N,{children:n})}),!p&&(0,r.jsx)(Z,{options:[{label:"Desktop",value:"desktop"},{label:"Mobile",value:"mobile"}],onChange:()=>{c(e=>"desktop"===e?"mobile":"desktop")},size:"small",defaultValue:"desktop"})]})}),(0,r.jsx)("desktop"===u?C:P,{children:(0,r.jsx)(f,{children:(0,r.jsx)("iframe",{id:"templatePreview",width:"100%",height:"100%",srcDoc:o,style:{background:"#e8edf5",border:0,borderRadius:"4px"}})})})]})})})})}},21796:function(e,t){t.Z=function(e,t,i){var o=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(i=i>n?n:i)<0&&(i+=n),n=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(n);++o<n;)r[o]=e[o+t];return r}},24899:function(e,t,i){var o=i(36720),n=i(62958);t.Z=function(e){return(0,n.Z)((0,o.Z)(e).toLowerCase())}},55221:function(e,t){t.Z=function(e){return null==e}},62958:function(e,t,i){i.d(t,{Z:function(){return m}});var o=i(21796),n=function(e,t,i){var n=e.length;return i=void 0===i?n:i,!t&&i>=n?e:(0,o.Z)(e,t,i)},r=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),d=function(e){return r.test(e)},a="\ud800-\udfff",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",s="\ud83c[\udffb-\udfff]",c="[^"+a+"]",p="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",f="(?:"+l+"|"+s+")?",x="[\\ufe0e\\ufe0f]?",h="(?:\\u200d(?:"+[c,p,u].join("|")+")"+x+f+")*",b=RegExp(s+"(?="+s+")|(?:"+[c+l+"?",l,p,u,"["+a+"]"].join("|")+")"+(x+f+h),"g"),g=i(36720),m=function(e){var t,i=d(e=(0,g.Z)(e))?d(t=e)?t.match(b)||[]:t.split(""):void 0,o=i?i[0]:e.charAt(0),r=i?n(i,1).join(""):e.slice(1);return o.toUpperCase()+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.