PageSourceSearch

https://bikebook.co.uk/_next/static/chunks/pages/admin/message-templates-a9e47284778d9ed6.js

js bikebook.co.uk collected 2026-10-01 12:10:35 UTC 229,033 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="749252ad-a0ec-4c21-ae35-46ba741bf1d9",e._sentryDebugIdIdentifier="sentry-dbid-749252ad-a0ec-4c21-ae35-46ba741bf1d9")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5395],{11228:(e,t,l)=>{"use strict";l.d(t,{J:()=>s,d:()=>i});var o=l(99668),n=l(29911),r=l(81278),a=l.n(r);function i(e){return async t=>{let[l,n]=a().asPath.split("?"),r=new URLSearchParams(n||"");null!==e?r.set("message_template_id",e.toString()):r.delete("message_template_id");let i=r.toString()?"".concat(l,"?").concat(r.toString()):l;return t(o.A.actions.setEditMessageTemplateId(e)),a().replace(i,void 0,{shallow:!0}),new Promise(e=>{let t=l=>{l===i&&(a().events.off("routeChangeComplete",t),e(null))};a().events.on("routeChangeComplete",t)})}}function s(){return async e=>{e(o.A.actions.setRefreshToken((0,n.A)()))}}},15086:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var o=l(6029),n=l(35197),r=l(6688);l(55729);let a=e=>{let{title:t,icon:l,actions:a,breakAtPx:i=960,sx:s={}}=e;return(0,o.jsxs)(n.A,{sx:{width:"100%",minHeight:"48px",borderBottom:"1px solid rgb(232, 234, 237)",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",columnGap:1,rowGap:.5,py:"6px",background:"white",position:"sticky",top:0,zIndex:1e3,px:{xs:2,sm:3},...null!=i&&{["@media (max-width: ".concat(i,"px)")]:{}},...s},children:["string"==typeof t?(0,o.jsxs)(r.A,{variant:"h6",sx:{fontWeight:"700",display:"flex",justifyContent:"flex-start",gap:1,alignItems:"center"},children:[l&&l,t]}):(0,o.jsxs)(n.A,{sx:{display:"flex",alignSelf:"stretch",alignItems:"center",gap:1},children:[l&&l,t]}),(0,o.jsx)(n.A,{sx:{py:"2px",display:"flex",gap:1,flexWrap:"wrap","& button":{textWrap:"nowrap"},["@media (max-width: ".concat(i,"px)")]:{}},children:a&&a})]})}},59872:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/message-templates",function(){return l(74210)}])},74210:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>nH});var o=l(6029),n=l(75155),r=l(46232),a=l(43613),i=l(60942),s=l(94713),d=l(72091),u=l(35197),c=l(11510),p=l(26002),m=l(14674),b=l(89918),g=l(81278),h=l(55729),f=l(26613),x=l(31195);let y=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),k=x.Ik({style:x.Ik({textAlign:x.k5(["left","center","right"]).optional().nullable(),padding:y}).optional().nullable(),props:x.Ik({size:x.ai().gt(0).optional().nullable(),shape:x.k5(["circle","square","rounded"]).optional().nullable(),imageUrl:x.Yj().optional().nullable(),alt:x.Yj().optional().nullable()}).optional().nullable()}),C={size:64,imageUrl:"",alt:"",shape:"square"};function v(e){var t,l,r,a,i;let s,d,u,c,p,m,b=(0,n.c)(19),{style:g,props:h}=e,f=null!=(t=null==h?void 0:h.size)?t:C.size,x=null!=(l=null==h?void 0:h.imageUrl)?l:C.imageUrl,y=null!=(r=null==h?void 0:h.alt)?r:C.alt,k=null!=(a=null==h?void 0:h.shape)?a:C.shape,v=null!=(i=null==g?void 0:g.textAlign)?i:void 0,S=null==g?void 0:g.padding;if(b[0]!==S)s=S?"".concat(S.top,"px ").concat(S.right,"px ").concat(S.bottom,"px ").concat(S.left,"px"):void 0,b[0]=S,b[1]=s;else s=b[1];b[2]!==v||b[3]!==s?(d={textAlign:v,padding:s},b[2]=v,b[3]=s,b[4]=d):d=b[4];let A=d;return b[5]!==k||b[6]!==f?(u=function(e,t){switch(e){case"rounded":return .125*t;case"circle":return t;default:return}}(k,f),b[5]=k,b[6]=f,b[7]=u):u=b[7],b[8]!==f||b[9]!==u?(c={outline:"none",border:"none",textDecoration:"none",objectFit:"cover",height:f,width:f,maxWidth:"100%",display:"inline-block",verticalAlign:"middle",textAlign:"center",borderRadius:u},b[8]=f,b[9]=u,b[10]=c):c=b[10],b[11]!==y||b[12]!==x||b[13]!==f||b[14]!==c?(p=(0,o.jsx)("img",{alt:y,src:x,height:f,width:f,style:c}),b[11]=y,b[12]=x,b[13]=f,b[14]=c,b[15]=p):p=b[15],b[16]!==A||b[17]!==p?(m=(0,o.jsx)("div",{style:A,children:p}),b[16]=A,b[17]=p,b[18]=m):m=b[18],m}let S=x.k5(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),A=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),j=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),_=x.Ik({style:x.Ik({backgroundColor:A,fontSize:x.ai().min(0).optional().nullable(),fontFamily:S,fontWeight:x.k5(["bold","normal"]).optional().nullable(),textAlign:x.k5(["left","center","right"]).optional().nullable(),padding:j}
1).optional().nullable(),props:x.Ik({buttonBackgroundColor:A,buttonStyle:x.k5(["rectangle","pill","rounded"]).optional().nullable(),buttonTextColor:A,fullWidth:x.zM().optional().nullable(),size:x.k5(["x-small","small","large","medium"]).optional().nullable(),text:x.Yj().optional().nullable(),url:x.Yj().optional().nullable()}).optional().nullable()}),F={text:"",url:"",fullWidth:!1,size:"medium",buttonStyle:"rounded",buttonTextColor:"#FFFFFF",buttonBackgroundColor:"#999999"};function T(e){var t,l,r,a,i,s,d,u,c;let p,m,b,g,h,f,x,y,k,C,v=(0,n.c)(34),{style:S,props:A}=e,j=null!=(t=null==A?void 0:A.text)?t:F.text,_=null!=(l=null==A?void 0:A.url)?l:F.url,T=null!=(r=null==A?void 0:A.fullWidth)?r:F.fullWidth,E=null!=(a=null==A?void 0:A.buttonTextColor)?a:F.buttonTextColor,R=null!=(i=null==A?void 0:A.buttonBackgroundColor)?i:F.buttonBackgroundColor,N=function(e){var t;switch(null!=(t=null==e?void 0:e.size)?t:F.size){case"x-small":return[4,8];case"small":return[8,12];case"large":return[16,32];default:return[12,20]}}(A),w=2*N[1]*3/4,I=null!=(s=null==S?void 0:S.backgroundColor)?s:void 0,D=null!=(d=null==S?void 0:S.textAlign)?d:void 0,M=null==S?void 0:S.padding;if(v[0]!==M)p=M?"".concat(M.top,"px ").concat(M.right,"px ").concat(M.bottom,"px ").concat(M.left,"px"):void 0,v[0]=M,v[1]=p;else p=v[1];v[2]!==I||v[3]!==D||v[4]!==p?(m={backgroundColor:I,textAlign:D,padding:p},v[2]=I,v[3]=D,v[4]=p,v[5]=m):m=v[5];let W=m,B=null!=(u=null==S?void 0:S.fontSize)?u:16,P=null==S?void 0:S.fontFamily;v[6]!==P?(b=function(e){switch(e){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(P),v[6]=P,v[7]=b):b=v[7];let z=null!=(c=null==S?void 0:S.fontWeight)?c:"bold";v[8]!==A?(g=function(e){var t;switch(null!=(t=null==e?void 0:e.buttonStyle)?t:F.buttonStyle){case"rectangle":return;case"pill":return 64;default:return 4}}(A),v[8]=A,v[9]=g):g=v[9];let V=T?"block":"inline-block",L="".concat(N[0],"px ").concat(N[1],"px");v[10]!==R||v[11]!==E||v[12]!==g||v[13]!==V||v[14]!==L||v[15]!==B||v[16]!==b||v[17]!==z?(h={color:E,fontSize:B,fontFamily:b,fontWeight:z,backgroundColor:R,borderRadius:g,display:V,padding:L,textDecoration:"none"},v[10]=R,v[11]=E,v[12]=g,v[13]=V,v[14]=L,v[15]=B,v[16]=b,v[17]=z,v[18]=h):h=v[18];let H=h,U='\x3c!--[if mso]><i style="letter-spacing: '.concat(N[1],"px;mso-font-width:-100%;mso-text-raise:").concat(w,'" hidden>&nbsp;</i><![endif]--\x3e');v[19]!==U?(f=(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:U}}),v[19]=U,v[20]=f):f=v[20],v[21]!==j?(x=(0,o.jsx)("span",{children:j}),v[21]=j,v[22]=x):x=v[22];let G='\x3c!--[if mso]><i style="letter-spacing: '.concat(N[1],'px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]--\x3e');return v[23]!==G?(y=(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:G}}),v[23]=G,v[24]=y):y=v[24],v[25]!==H||v[26]!==f||v[27]!==x||v[28]!==y||v[29]!==_?(k=(0,o.jsxs)("a",{href:_,style:H,target:"_blank",children:[f,x,y]}),v[25]=H,v[26]=f,v[27]=x,v[28]=y,v[29]=_,v[30]=k):k=v[30],v[31]!==k||v[32]!==W?(C=(0,o.jsx)("div",{style:W,children:k}),v[31]=k,v[32]=W,v[33]=C):C=v[33],C}let E=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),R=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),N=x.Ik({style:x.Ik({backgroundColor:E,padding:R}).optional().nullable(),props:x.Ik({lineColor:E,lineHeight:x.ai().optional().nullable()}).optional().nullable()}),w={lineHeight:1,lineColor:"#333333"};function I(e){var t,l,r;let a,i,s,d,u=(0,n.c)(10),{style:c,props:p}=e,m=null==c?void 0:c.padding;if(u[0]!==m)a=m?"".concat(m.top,"px ").concat(m.right,"px ").concat(m.bottom,"px ").concat(m.left,"px"):void 0,u[0]=m,u[1]=a;else a=u[1];let b=null!=(t=null==c?void 0:c.backgroundColor)?t:void 0;u[2]!==a||u[3]!==b?(i={padding:a,backgroundColor:b},u[2]=a,u[3]=b,u[4]=i):i=u[4];let g=i,h=null!=(l=null==p?void 0:p.lineHeight)?l:w.lineHeight,f=null!=(r=null==p?void 0:p.lineColor)?r:w.lineColor,x="".concat(h,"px s
1olid ").concat(f);return u[5]!==x?(s=(0,o.jsx)("hr",{style:{width:"100%",border:"none",borderTop:x,margin:0}}),u[5]=x,u[6]=s):s=u[6],u[7]!==g||u[8]!==s?(d=(0,o.jsx)("div",{style:g,children:s}),u[7]=g,u[8]=s,u[9]=d):d=u[9],d}let D=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),M=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),W=x.k5(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),B=x.Ik({props:x.Ik({text:x.Yj().optional().nullable(),level:x.k5(["h1","h2","h3"]).optional().nullable()}).optional().nullable(),style:x.Ik({color:D,backgroundColor:D,fontFamily:W,fontWeight:x.k5(["bold","normal"]).optional().nullable(),textAlign:x.k5(["left","center","right"]).optional().nullable(),padding:M}).optional().nullable()}),P={level:"h2",text:""};function z(e){var t,l,r,a,i,s;let d,u,c,p,m=(0,n.c)(23),{props:b,style:g}=e,h=null!=(t=null==b?void 0:b.level)?t:P.level,f=null!=(l=null==b?void 0:b.text)?l:P.text,x=null!=(r=null==g?void 0:g.color)?r:void 0,y=null!=(a=null==g?void 0:g.backgroundColor)?a:void 0,k=null!=(i=null==g?void 0:g.fontWeight)?i:"bold",C=null!=(s=null==g?void 0:g.textAlign)?s:void 0,v=null==g?void 0:g.fontFamily;m[0]!==v?(d=function(e){switch(e){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(v),m[0]=v,m[1]=d):d=m[1],m[2]!==h?(u=function(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 20}}(h),m[2]=h,m[3]=u):u=m[3];let S=null==g?void 0:g.padding;if(m[4]!==S)c=S?"".concat(S.top,"px ").concat(S.right,"px ").concat(S.bottom,"px ").concat(S.left,"px"):void 0,m[4]=S,m[5]=c;else c=m[5];m[6]!==x||m[7]!==y||m[8]!==k||m[9]!==C||m[10]!==d||m[11]!==u||m[12]!==c?(p={color:x,backgroundColor:y,fontWeight:k,textAlign:C,margin:0,fontFamily:d,fontSize:u,padding:c},m[6]=x,m[7]=y,m[8]=k,m[9]=C,m[10]=d,m[11]=u,m[12]=c,m[13]=p):p=m[13];let A=p;switch(h){case"h1":{let e;return m[14]!==A||m[15]!==f?(e=(0,o.jsx)("h1",{style:A,children:f}),m[14]=A,m[15]=f,m[16]=e):e=m[16],e}case"h2":{let e;return m[17]!==A||m[18]!==f?(e=(0,o.jsx)("h2",{style:A,children:f}),m[17]=A,m[18]=f,m[19]=e):e=m[19],e}case"h3":{let e;return m[20]!==A||m[21]!==f?(e=(0,o.jsx)("h3",{style:A,children:f}),m[20]=A,m[21]=f,m[22]=e):e=m[22],e}}}let V=x.k5(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),L=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),H=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),U=x.Ik({style:x.Ik({color:L,backgroundColor:L,fontFamily:V,fontSize:x.ai().min(0).optional().nullable(),textAlign:x.k5(["left","right","center"]).optional().nullable(),padding:H}).optional().nullable(),props:x.Ik({contents:x.Yj().optional().nullable()}).optional().nullable()});function G(e){var t,l,r,a;let i,s,d,u,c,p=(0,n.c)(18),{style:m,props:b}=e,g=null==b?void 0:b.contents,h=null!=(t=null==m?void 0:m.color)?t:void 0,f=null!=(l=null==m?void 0:m.backgroundColor)?l:void 0,x=null==m?void 0:m.fontFamily;p[0]!==x?(i=function(e){switch(e){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(x),p[0]=x,p[1]=i):i=p[1];let y=null!=(r=null==m?void 0:m.fontSize)?r:void 0,k=null!=(a=null==m?void 0:m.textAlign)?a:void 0,C=null==m?void 0:m.padding;if(p[2]!==C)s=C?"".concat(C.top,"px ").concat(C.right,"px ").concat(C.bottom,"px ").concat(C.left,"px"):void 0,p[2]=C,p[3]=s;else s=p[3];p[4]!==h||p[5]!==f||p[6]!==i||p[7]!==y||p[8]!==k||p[9]!==s?(d={color:h,backgroundColor:f,fontFamily:i,fontSize:y,textAlign:k,padding:s},p[4]=h,p[5]=f,p[6]=i,p[7]=y,p[8]=k,p[9]=s,p[10]=d):d=p[10];let v=d;if(!g){let e;return p[11]!==v?(e=(0,o.jsx)("div",{style:v}),p[11]=v,p[12]=e):e=p[12],e}return p[13]!==g?(u={__html:g},p[13]=g,p[14]=u):u=p[14],p[15]!==v||p[16]!==u?(c=(0,o.jsx)("div",{style:v,dangerouslySetInnerHTML:u}),p[15]=v,p[16]=u,p[17]=c):c=p[17],c}let O=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),Y=x.Ik({style:x.Ik({padding:O,borderRadius:x.ai().optional().nullable(),backgroundColor:x.Yj().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:x.k5(["center","left","right"]).optional().nullable()}).optional().nullable(),props:x.Ik({width:x.ai().optional().nullable(),height:x.ai().optional().nullable(),url:x.Yj().optional().nullable(),alt:x.Yj().optional().nullable(),linkHref:x.Yj().optional().nullable(),contentAlignment:x.k5(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});function J(e){var t,l,r,a,i,s,d,u,c;let p,m,b,g,h,f,x,y=(0,n.c)(27),{style:k,props:C}=e,v=null==k?void 0:k.padding;if(y[0]!==v)p=v?"".concat(v.top,"px ").concat(v.right,"px ").concat(v.bottom,"px ").concat(v.left,"px"):void 0,y[0]=v,y[1]=p;else p=y[1];let S=null!=(t=null==k?void 0:k.backgroundColor)?t:void 0,A=null!=(l=null==k?void 0:k.textAlign)?l:void 0;y[2]!==p||y[3]!==S||y[4]!==A?(m={padding:p,backgroundColor:S,textAlign:A},y[2]=p,y[3]=S,y[4]=A,y[5]=m):m=y[5];let j=m,_=null!=(r=null==C?void 0:C.linkHref)?r:null,F=null!=(a=null==C?void 0:C.width)?a:void 0,T=null!=(i=null==C?void 0:C.height)?i:void 0,E=null!=(s=null==C?void 0:C.alt)?s:"",R=null!=(d=null==C?void 0:C.url)?d:"",N=null!=(u=null==C?void 0:C.contentAlignment)?u:"middle",w=null!=(c=null==k?void 0:k.borderRadius)?c:void 0;y[6]!==T||y[7]!==N||y[8]!==w||y[9]!==F?(b={width:F,height:T,outline:"none",border:"none",textDecoration:"none",verticalAlign:N,display:"inline-block",maxWidth:"100%",borderRadius:w}
1,y[6]=T,y[7]=N,y[8]=w,y[9]=F,y[10]=b):b=y[10],y[11]!==T||y[12]!==b||y[13]!==E||y[14]!==R||y[15]!==F?(g=(0,o.jsx)("img",{alt:E,src:R,width:F,height:T,style:b}),y[11]=T,y[12]=b,y[13]=E,y[14]=R,y[15]=F,y[16]=g):g=y[16];let I=g;if(!_){let e;return y[17]!==I||y[18]!==j?(e=(0,o.jsx)("div",{style:j,children:I}),y[17]=I,y[18]=j,y[19]=e):e=y[19],e}return y[20]===Symbol.for("react.memo_cache_sentinel")?(h={textDecoration:"none"},y[20]=h):h=y[20],y[21]!==I||y[22]!==_?(f=(0,o.jsx)("a",{href:_,style:h,target:"_blank",children:I}),y[21]=I,y[22]=_,y[23]=f):f=y[23],y[24]!==j||y[25]!==f?(x=(0,o.jsx)("div",{style:j,children:f}),y[24]=j,y[25]=f,y[26]=x):x=y[26],x}let q=x.Ik({props:x.Ik({height:x.ai().gte(0).optional().nullish()}).optional().nullable()}),K={height:16};function X(e){var t;let l,r=(0,n.c)(2),{props:a}=e,i=null!=(t=null==a?void 0:a.height)?t:K.height;return r[0]!==i?(l=(0,o.jsx)("div",{style:{height:i}}),r[0]=i,r[1]=l):l=r[1],l}var Q=l(17768),Z=l.n(Q),$=l(34787);let ee=["a","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","ol","p","pre","section","span","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],et=["style","title"];class el extends $.A4{table(e,t){return'<table width="100%">\n<thead>\n'.concat(e,"</thead>\n<tbody>\n").concat(t,"</tbody>\n</table>")}link(e,t,l){return t?'<a href="'.concat(e,'" title="').concat(t,'" target="_blank">').concat(l,"</a>"):'<a href="'.concat(e,'" target="_blank">').concat(l,"</a>")}}function eo(e){let t,l,r,a,i,s=(0,n.c)(10);s[0]!==e?({markdown:t,...l}=e,s[0]=e,s[1]=t,s[2]=l):(t=s[1],l=s[2]),s[3]!==t?(r=function(e){let t=$.xI.parse(e,{async:!1,breaks:!0,gfm:!0,pedantic:!1,silent:!1,renderer:new el});if("string"!=typeof t)throw Error("marked.parse did not return a string");return Z()(t,{allowedTags:ee,allowedAttributes:{...ee.reduce((e,t)=>(e[t]=[...et],e),{}),img:["src","srcset","alt","width","height",...et],table:["width",...et],td:["align","width",...et],th:["align","width",...et],a:["href","target",...et],ol:["start",...et],ul:["start",...et]}})}(t),s[3]=t,s[4]=r):r=s[4];let d=r;return s[5]!==d?(a={__html:d},s[5]=d,s[6]=a):a=s[6],s[7]!==l||s[8]!==a?(i=(0,o.jsx)("div",{...l,dangerouslySetInnerHTML:a}),s[7]=l,s[8]=a,s[9]=i):i=s[9],i}let en=x.k5(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),er=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),ea=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),ei=x.Ik({style:x.Ik({color:er,backgroundColor:er,fontSize:x.ai().gte(0).optional().nullable(),fontFamily:en,fontWeight:x.k5(["bold","normal"]).optional().nullable(),textAlign:x.k5(["left","center","right"]).optional().nullable(),padding:ea}).optional().nullable(),props:x.Ik({markdown:x.zM().optional().nullable(),text:x.Yj().optional().nullable()}).optional().nullable()}),es={text:""};function ed(e){var t,l,r,a,i,s;let d,u,c,p,m=(0,n.c)(18),{style:b,props:g}=e,h=null!=(t=null==b?void 0:b.color)?t:void 0,f=null!=(l=null==b?void 0:b.backgroundColor)?l:void 0,x=null!=(r=null==b?void 0:b.fontSize)?r:void 0,y=null==b?void 0:b.fontFamily;m[0]!==y?(d=function(e){switch(e){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(y),m[0]=y,m[1]=d):d=m[1];let k=null!=(a=null==b?void 0:b.fontWeight)?a:void 0,C=null!=(i=null==b?void 0:b.textAlign)?i:void 0,v=null==b?void 0:b.padding;if(m[2]!==v)u=v?"".concat(v.top,"px ").concat(v.right,"px ").concat(v.bottom,"px ").concat(v.left,"px"):void 0,m[2]=v,m[3]=u;else u=m[3];m[4]!==h||m[5]!==f||m[6]!==x||m[7]!==d||m[8]!==k||m[9]!==C||m[10]!==u?(c={color:h,backgroundColor:f,fontSize:x,fontFamily:d,fontWeight:k,textAlign:C,padding:u}
1,m[4]=h,m[5]=f,m[6]=x,m[7]=d,m[8]=k,m[9]=C,m[10]=u,m[11]=c):c=m[11];let S=c,A=null!=(s=null==g?void 0:g.text)?s:es.text;if(null==g?void 0:g.markdown){let e;return m[12]!==A||m[13]!==S?(e=(0,o.jsx)(eo,{style:S,markdown:A}),m[12]=A,m[13]=S,m[14]=e):e=m[14],e}return m[15]!==A||m[16]!==S?(p=(0,o.jsx)("div",{style:S,children:A}),m[15]=A,m[16]=S,m[17]=p):p=m[17],p}function eu(e){return function(t){let{type:l,data:n}=t,r=e[l].Component;return(0,o.jsx)(r,{...n})}}function ec(e){let t=Object.keys(e).map(t=>x.Ik({type:x.eu(t),data:e[t].schema}));return x.gM("type",t).transform(e=>e)}let ep=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),em=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),eb=x.PV([x.ai().nullish(),x.ai().nullish(),x.ai().nullish()]).optional().nullable(),eg=x.Ik({style:x.Ik({backgroundColor:ep,padding:em}).optional().nullable(),props:x.Ik({fixedWidths:eb,columnsCount:x.KC([x.eu(2),x.eu(3)]).optional().nullable(),columnsGap:x.ai().optional().nullable(),contentAlignment:x.k5(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),eh={columnsCount:2,columnsGap:0,contentAlignment:"middle"};function ef(e){var t,l,r,a;let i,s,d,u,c,p,m,b,g=(0,n.c)(19),{style:h,columns:f,props:x}=e,y=null!=(t=null==h?void 0:h.backgroundColor)?t:void 0,k=null==h?void 0:h.padding;if(g[0]!==k)i=k?"".concat(k.top,"px ").concat(k.right,"px ").concat(k.bottom,"px ").concat(k.left,"px"):void 0,g[0]=k,g[1]=i;else i=g[1];g[2]!==y||g[3]!==i?(s={backgroundColor:y,padding:i},g[2]=y,g[3]=i,g[4]=s):s=g[4];let C=s,v=null!=(l=null==x?void 0:x.columnsCount)?l:eh.columnsCount,S=null!=(r=null==x?void 0:x.columnsGap)?r:eh.columnsGap,A=null!=(a=null==x?void 0:x.contentAlignment)?a:eh.contentAlignment,j=null==x?void 0:x.fixedWidths;g[5]!==v||g[6]!==S||g[7]!==A||g[8]!==j?(d={columnsCount:v,columnsGap:S,contentAlignment:A,fixedWidths:j},g[5]=v,g[6]=S,g[7]=A,g[8]=j,g[9]=d):d=g[9];let _=d;return g[10]===Symbol.for("react.memo_cache_sentinel")?(u={tableLayout:"fixed",borderCollapse:"collapse"},c={width:"100%"},p={width:"100%"},g[10]=u,g[11]=c,g[12]=p):(u=g[10],c=g[11],p=g[12]),g[13]!==_||g[14]!==f?(m=(0,o.jsx)("table",{align:"center",width:"100%",cellPadding:"0",border:0,style:u,children:(0,o.jsx)("tbody",{style:c,children:(0,o.jsxs)("tr",{style:p,children:[(0,o.jsx)(ex,{index:0,props:_,columns:f}),(0,o.jsx)(ex,{index:1,props:_,columns:f}),(0,o.jsx)(ex,{index:2,props:_,columns:f})]})})}),g[13]=_,g[14]=f,g[15]=m):m=g[15],g[16]!==m||g[17]!==C?(b=(0,o.jsx)("div",{style:C,children:m}),g[16]=m,g[17]=C,g[18]=b):b=g[18],b}function ex(e){var t,l,r,a,i;let s,d,u,c,p=(0,n.c)(14),{index:m,props:b,columns:g}=e,h=null!=(l=null==b?void 0:b.contentAlignment)?l:eh.contentAlignment;if(2===(null!=(r=null==b?void 0:b.columnsCount)?r:eh.columnsCount)&&2===m)return null;p[0]!==m||p[1]!==b?(s=function(e,t){let{columnsGap:l,columnsCount:o}=t;return 0===e?0:2===o?l/2:1===e?l/3:2*l/3}(m,b),p[0]=m,p[1]=b,p[2]=s):s=p[2],p[3]!==m||p[4]!==b?(d=function(e,t){let{columnsGap:l,columnsCount:o}=t;return 2===o?0===e?l/2:0:0===e?2*l/3:1===e?l/3:0}(m,b),p[3]=m,p[4]=b,p[5]=d):d=p[5];let f=null!=(a=null==(t=b.fixedWidths)?void 0:t[m])?a:void 0;p[6]!==h||p[7]!==s||p[8]!==d||p[9]!==f?(u={boxSizing:"content-box",verticalAlign:h,paddingLeft:s,paddingRight:d,width:f},p[6]=h,p[7]=s,p[8]=d,p[9]=f,p[10]=u):u=p[10];let x=u,y=null!=(i=g&&g[m])?i:null;return p[11]!==y||p[12]!==x?(c=(0,o.jsx)("td",{style:x,children:y}),p[11]=y,p[12]=x,p[13]=c):c=p[13],c}let ey=eg.shape.props.unwrap().unwrap().shape,ek=x.Ik({style:eg.shape.style,props:x.Ik({...ey,columns:x.PV([x.Ik({childrenIds:x.YO(x.Yj())}),x.Ik({childrenIds:x.YO(x.Yj())}),x.Ik({childrenIds:x.YO(x.Yj())})])}).optional().nullable()});function eC(e){return e.childrenIds.map(ev)}function ev(e){return(0,o.jsx)(eQ,{id:e},e)}let eS=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),eA=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),ej=x.Ik({style:x.Ik({backgroundColor:eS,borderColor:eS,borderRadius:x.ai().optional().nullable(),padding:eA}).optional().nullable()});function e_(e){var t,l;let r,a,i,s,d=(0,n.c)(14),{style:u,children:c}=e,p=null!=(t=null==u?void 0:u.backgroundColor)?t:void 0;d[0]!==u?(r=function(e){if(e&&e.borderColor)return"1px solid ".concat(e.borderColor)}(u),d[0]=u,d[1]=r):r=d[1];let m=null!=(l=null==u?void 0:u.borderRadius)?l:void 0,b=null==u?void 0:u.padding;if(d[2]!==b)a=b?"".concat(b.top,"px ").concat(b.right,"px ").concat(b.bottom,"px ").concat(b.left,"px"):void 0,d[2]=b,d[3]=a;else a=d[3];d[4]!==p||d[5]!==r||d[6]!==m||d[7]!==a?(i={backgroundColor:p,border:r,borderRadius:m,padding:a},d[4]=p,d[5]=r,d[6]=m,d[7]=a,d[8]=i):i=d[8];let g=i;if(!c){let e;return d[9]!==g?(e=(0,o.jsx)("div",{style:g}),d[9]=g,d[10]=e):e=d[10],e}return d[11]!==c||d[12]!==g?(s=(0,o.jsx)("div",{style:g,children:c}),d[11]=c,d[12]=g,d[13]=s):s=d[13],s}let eF=x.Ik({style:ej.shape.style,props:x.Ik({childrenIds:x.YO(x.Yj()).optional().nullable()}).optional().nullable()});function eT(e){return(0,o.jsx)(eQ,{id:e},e)}let eE=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),eR=x.k5(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),eN=x.Ik({backdropColor:eE,borderColor:eE,borderRadius:x.ai().optional().nullable(),canvasColor:eE,textColor:eE,fontFamily:eR,childrenIds:x.YO(x.Yj()).optional().nullable()});function ew(e){return(0,o.jsx)(eQ,{id:e},e)}var eI=l(8013);let eD=h.createContext(!1),eM=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),eW=x.Ik({style:x.Ik({padding:eM,borderRadius:x.ai().optional().nullable(),backgroundColor:x.Yj().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:x.k5(["center","left","right"]).optional().nullable()}).optional().nullable(),props:x.Ik({width:x.ai().optional().nullable(),height:x.ai().optional().nullable(),contentAlignment:x.k5(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});function eB(e){var t,l,r,a,i,s;
1let d,u,c,p,m,b=(0,n.c)(19),{style:g,props:f}=e,x=(0,h.useContext)(eD),y=eI.il.getState().business.data,k=null==y?void 0:y.businessId,C=null==g?void 0:g.padding;if(b[0]!==C)d=C?"".concat(C.top,"px ").concat(C.right,"px ").concat(C.bottom,"px ").concat(C.left,"px"):void 0,b[0]=C,b[1]=d;else d=b[1];let v=null!=(t=null==g?void 0:g.backgroundColor)?t:void 0,S=null!=(l=null==g?void 0:g.textAlign)?l:void 0;b[2]!==d||b[3]!==v||b[4]!==S?(u={padding:d,backgroundColor:v,textAlign:S},b[2]=d,b[3]=v,b[4]=S,b[5]=u):u=b[5];let A=u,j=null!=(r=null==f?void 0:f.width)?r:void 0,_=null!=(a=null==f?void 0:f.height)?a:void 0,F=x?"[Business Logo]":"".concat("https://api.bikebook.co.uk","/ResourceHandle/GetBusinessImage?businessId=").concat(k),T=null!=(i=null==f?void 0:f.contentAlignment)?i:"middle",E=null!=(s=null==g?void 0:g.borderRadius)?s:void 0;b[6]!==_||b[7]!==T||b[8]!==E||b[9]!==j?(c={width:j,height:_,outline:"none",border:"none",textDecoration:"none",verticalAlign:T,display:"inline-block",maxWidth:"100%",borderRadius:E,objectFit:"cover"},b[6]=_,b[7]=T,b[8]=E,b[9]=j,b[10]=c):c=b[10],b[11]!==_||b[12]!==F||b[13]!==c||b[14]!==j?(p=(0,o.jsx)("img",{alt:"Logo",src:F,width:j,height:_,style:c}),b[11]=_,b[12]=F,b[13]=c,b[14]=j,b[15]=p):p=b[15];let R=p;return b[16]!==R||b[17]!==A?(m=(0,o.jsx)("div",{style:A,children:R}),b[16]=R,b[17]=A,b[18]=m):m=b[18],m}
1let eP=x.k5(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),ez=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),eV=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),eL=x.Ik({style:x.Ik({backgroundColor:ez,fontSize:x.ai().min(0).optional().nullable(),fontFamily:eP,fontWeight:x.k5(["bold","normal"]).optional().nullable(),textAlign:x.k5(["left","center","right"]).optional().nullable(),padding:eV}).optional().nullable(),props:x.Ik({text:x.Yj().optional().nullable(),url:x.Yj().optional().nullable(),textColor:ez}).optional().nullable()}),eH={text:"Click here",url:"",textColor:"#0068A5"};function eU(e){var t,l,r,a,i,s,d;let u,c,p,m,b,g,h=(0,n.c)(20),{style:f,props:x}=e,y=null!=(t=null==x?void 0:x.text)?t:eH.text,k=null!=(l=null==x?void 0:x.url)?l:eH.url,C=null!=(r=null==x?void 0:x.textColor)?r:eH.textColor,v=null!=(a=null==f?void 0:f.backgroundColor)?a:void 0,S=null!=(i=null==f?void 0:f.textAlign)?i:void 0,A=null==f?void 0:f.padding;if(h[0]!==A)u=A?"".concat(A.top,"px ").concat(A.right,"px ").concat(A.bottom,"px ").concat(A.left,"px"):void 0,h[0]=A,h[1]=u;else u=h[1];h[2]!==v||h[3]!==S||h[4]!==u?(c={backgroundColor:v,textAlign:S,padding:u},h[2]=v,h[3]=S,h[4]=u,h[5]=c):c=h[5];let j=c,_=null!=(s=null==f?void 0:f.fontSize)?s:14,F=null==f?void 0:f.fontFamily;h[6]!==F?(p=function(e){switch(e){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(F),h[6]=F,h[7]=p):p=h[7];let T=null!=(d=null==f?void 0:f.fontWeight)?d:"normal";h[8]!==_||h[9]!==p||h[10]!==T||h[11]!==C?(m={color:C,fontSize:_,fontFamily:p,fontWeight:T,textDecoration:"underline"},h[8]=_,h[9]=p,h[10]=T,h[11]=C,h[12]=m):m=h[12];let E=m;return h[13]!==E||h[14]!==y||h[15]!==k?(b=(0,o.jsx)("a",{href:k,style:E,target:"_blank",children:y}),h[13]=E,h[14]=y,h[15]=k,h[16]=b):b=h[16],h[17]!==b||h[18]!==j?(g=(0,o.jsx)("div",{style:j,children:b}),h[17]=b,h[18]=j,h[19]=g):g=h[19],g}let eG=x.Ik({top:x.ai(),bottom:x.ai(),right:x.ai(),left:x.ai()}).optional().nullable(),eO=x.Ik({style:x.Ik({backgroundColor:x.Yj().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),padding:eG.optional().nullable()}).optional().nullable(),props:x.Ik({showUnsubscribe:x.zM().optional().default(!1),unsubscribeUrl:x.Yj().optional()}).optional().nullable()});function eY(e){var t,l;let r,a,i,s,d,u,c,p,m,b,g,h=(0,n.c)(18),{style:f,props:x}=e,y=null!=(t=null==f?void 0:f.backgroundColor)?t:void 0,k=null==f?void 0:f.padding;if(h[0]!==k)r=k?"".concat(k.top,"px ").concat(k.right,"px ").concat(k.bottom,"px ").concat(k.left,"px"):void 0,h[0]=k,h[1]=r;else r=h[1];h[2]!==y||h[3]!==r?(a={backgroundColor:y,padding:r},h[2]=y,h[3]=r,h[4]=a):a=h[4];let C=a;return h[5]===Symbol.for("react.memo_cache_sentinel")?(i={tableLayout:"fixed",borderCollapse:"collapse"},s=(0,o.jsx)("td",{style:{padding:"0",width:"50%",maxWidth:"300px"},children:(0,o.jsxs)("div",{style:{fontSize:"12px"},children:[(0,o.jsx)("div",{style:{fontWeight:"bold",fontSize:"14px",marginBottom:"4px"},children:"[Business Name]"}),(0,o.jsx)("div",{style:{marginBottom:"4px"},children:"[Business Phone]"}),(0,o.jsx)("div",{style:{marginBottom:"4px"},children:"[Business Email]"}),(0,o.jsx)("div",{style:{marginBottom:"4px"},children:"[Business Address]"})]})}),d={padding:"0",width:"50%",maxWidth:"300px",verticalAlign:"top"},u={fontSize:"12px",textAlign:"right"},c={marginBottom:"8px"},h[5]=i,h[6]=s,h[7]=d,h[8]=u,h[9]=c):(i=h[5],s=h[6],d=h[7],u=h[8],c=h[9]),h[10]===Symbol.for("react.memo_cache_sentinel")?(p=(0,o.jsxs)("div",{style:c,children:["This email was sent by ",(0,o.jsx)("a",{href:"https://bikebook.co.uk",children:"bikebook.co.uk"})," on behalf of this mechanic."]}),h[10]=p):p=h[10],h[11]!==x?(m=(null==x?void 0:x.showUnsubscribe)&&(0,o.jsx)("div",{children:(0,o.jsx)("a",{href:null!=(l=x.unsubscribeUrl)?l:"https://bikebook.co.uk/unsubscribe",target:"_blank",style:{color:"#666666",textDecoration:"underline",fontSize:"11px"},children:"Unsubscribe from these emails"})}),h[11]=x,h[12]=m):m=h[12],h[13]!==m?(b=(0,o.jsx)("table",{align:"center",width:"100%",cellPadding:"0",cellSpacing:"0",border:0,style:i,children:(0,o.jsx)("tbody",{children:(0,o.jsxs)("tr",{children:[s,(0,o.jsx)("td",{style:d,children:(0,o.jsxs)("div",{style:u,children:[p,m]})})]})})}),h[13]=m,h[14]=b):b=h[14],h[15]!==C||h[16]!==b?(g=(0,o.jsx)("div",{style:C,children:b}),h[15]=C,h[16]=b,h[17]=g):g=h[17],g}let eJ=(0,h.createContext)({}),eq={ColumnsContainer:{schema:ek,Component:function(e){let t,l,r,a,i,s=(0,n.c)(11),{style:d,props:u}=e;if(s[0]!==u?(t=null!=u?u:{}
1,s[0]=u,s[1]=t):t=s[1],s[2]!==t?({columns:l,...r}=t,s[2]=t,s[3]=l,s[4]=r):(l=s[3],r=s[4]),l){let e;s[5]!==l?(e=l.map(eC),s[5]=l,s[6]=e):e=s[6],i=e}return s[7]!==i||s[8]!==r||s[9]!==d?(a=(0,o.jsx)(ef,{props:r,columns:i,style:d}),s[7]=i,s[8]=r,s[9]=d,s[10]=a):a=s[10],a}},Container:{schema:eF,Component:function(e){let t,l,r,a=(0,n.c)(7),{style:i,props:s}=e;if(a[0]!==(null==s?void 0:s.childrenIds)){var d;t=null!=(d=null==s?void 0:s.childrenIds)?d:[],a[0]=null==s?void 0:s.childrenIds,a[1]=t}else t=a[1];let u=t;return a[2]!==u?(l=u.map(eT),a[2]=u,a[3]=l):l=a[3],a[4]!==i||a[5]!==l?(r=(0,o.jsx)(e_,{style:i,children:l}),a[4]=i,a[5]=l,a[6]=r):r=a[6],r}},EmailLayout:{schema:eN,Component:function(e){var t,l,r,a,i;let s,d,u,c,p,m,b,g,h,f,x=(0,n.c)(25);x[0]!==e.childrenIds?(s=null!=(t=e.childrenIds)?t:[],x[0]=e.childrenIds,x[1]=s):s=x[1];let y=s,k=null!=(l=e.backdropColor)?l:"#F5F5F5",C=null!=(r=e.textColor)?r:"#262626";x[2]!==e.fontFamily?(d=function(e){switch(null!=e?e:"MODERN_SANS"){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(e.fontFamily),x[2]=e.fontFamily,x[3]=d):d=x[3],x[4]!==k||x[5]!==C||x[6]!==d?(u={backgroundColor:k,color:C,fontFamily:d,fontSize:"16px",fontWeight:"400",letterSpacing:"0.15008px",lineHeight:"1.5",margin:"0",padding:"32px 0",minHeight:"100%",width:"100%"},x[4]=k,x[5]=C,x[6]=d,x[7]=u):u=x[7];let v=null!=(a=e.canvasColor)?a:"#FFFFFF",S=null!=(i=e.borderRadius)?i:void 0;return x[8]!==e?(c=function(e){let{borderColor:t}=e;if(t)return"1px solid ".concat(t)}(e),x[8]=e,x[9]=c):c=x[9],x[10]!==v||x[11]!==S||x[12]!==c?(p={margin:"0 auto",maxWidth:"600px",backgroundColor:v,borderRadius:S,border:c},x[10]=v,x[11]=S,x[12]=c,x[13]=p):p=x[13],x[14]===Symbol.for("react.memo_cache_sentinel")?(m={width:"100%"},x[14]=m):m=x[14],x[15]!==y?(b=y.map(ew),x[15]=y,x[16]=b):b=x[16],x[17]!==b?(g=(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{style:m,children:(0,o.jsx)("td",{children:b})})}),x[17]=b,x[18]=g):g=x[18],x[19]!==g||x[20]!==p?(h=(0,o.jsx)("table",{align:"center",width:"100%",style:p,role:"presentation",cellSpacing:"0",cellPadding:"0",border:0,children:g}),x[19]=g,x[20]=p,x[21]=h):h=x[21],x[22]!==h||x[23]!==u?(f=(0,o.jsx)("div",{style:u,children:h}),x[22]=h,x[23]=u,x[24]=f):f=x[24],f}},Avatar:{schema:k,Component:v},Button:{schema:_,Component:T},Divider:{schema:N,Component:I},Heading:{schema:B,Component:z},Html:{schema:U,Component:G},Image:{schema:Y,Component:J},Spacer:{schema:q,Component:X},Text:{schema:ei,Component:ed},Link:{schema:eL,Component:eU},BusinessLogo:{schema:eW,Component:eB},WorkshopFooter:{schema:eO,Component:eY}},eK=ec(eq);x.g1(x.Yj(),eK);let eX=eu(eq);function eQ(e){let{document:t,id:l}=e,n=null!=t?t:(0,h.useContext)(eJ);return(console.log("Document:",n),null==n||null==n[l])?null:(0,o.jsx)(eX,{...n[l]})}function eZ(e){let t,l,r=(0,n.c)(6),{document:a,rootBlockId:i}=e;return r[0]!==a||r[1]!==i?(t=(0,o.jsx)(eQ,{id:i,document:a}),r[0]=a,r[1]=i,r[2]=t):t=r[2],r[3]!==a||r[4]!==t?(l=(0,o.jsx)(eJ.Provider,{value:a,children:t}),r[3]=a,r[4]=t,r[5]=l):l=r[5],l}function e$(e,t){let{rootBlockId:l}=t;return"<!DOCTYPE html>"+(0,f.qV)((0,o.jsx)("html",{children:(0,o.jsx)("body",{children:(0,o.jsx)(eD.Provider,{value:!0,children:(0,o.jsx)(eZ,{document:e,rootBlockId:l})})})}))}var e0=l(84473),e1=l(11228),e2=l(44981),e4=l(6688),e6=l(47786),e3=l(10926),e5=l(73585),e8=l(38312),e7=l(1909),e9=l(16932),te=l(12482),tt=l(75119);function tl(e,t,l){let o=((e,t)=>{var l;let{query:o,axios:n}=null!=t?t:{};return{queryKey:null!=(l=null==o?void 0:o.queryKey)?l:["/v2/MessageTemplate/GetMessageTemplatePreview/".concat(e)
1],queryFn:t=>{let l,{signal:o}=t;return l={signal:o,...n},tt.A.get("/v2/MessageTemplate/GetMessageTemplatePreview/".concat(e),l)},enabled:!!e,staleTime:0,...o}})(e,t),n=(0,te.I)(o,l);return n.queryKey=o.queryKey,n}var to=l(16531),tn=l(95051),tr=l(21941),ta=l(45686),ti=l(59556),ts=l(29723),td=l(74312),tu=l.n(td),tc=l(16568),tp=l(92726);let tm={root:{type:"EmailLayout",data:{backdropColor:"#F5F5F5",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[]}}},tb={root:{type:"EmailLayout",data:{backdropColor:"#000000",canvasColor:"#000000",textColor:"#FFFFFF",fontFamily:"BOOK_SERIF",childrenIds:["block_ChPX66qUhF46uynDE8AY11","block_CkNrtQgkqPt2YWLv1hr5eJ","block_BFLBa3q5y8kax9KngyXP65","block_4T7sDFb4rqbSyWjLGJKmov","block_Rvc8ZfTjfhXjpphHquJKvP"]}},block_ChPX66qUhF46uynDE8AY11:{type:"Image",data:{style:{backgroundColor:null,padding:{top:24,bottom:24,left:24,right:24},textAlign:"center"},props:{height:24,url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_jc7ZfPvdHJ6rtH1W/&.png",contentAlignment:"middle"}}},block_CkNrtQgkqPt2YWLv1hr5eJ:{type:"Text",data:{style:{color:"#ffffff",backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"center",padding:{top:16,bottom:16,left:24,right:24}},props:{text:"Here is your one-time passcode:"}}},block_BFLBa3q5y8kax9KngyXP65:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:"MONOSPACE",fontWeight:"bold",textAlign:"center",padding:{top:16,bottom:16,left:24,right:24}},props:{level:"h1",text:"0123456"}}},block_4T7sDFb4rqbSyWjLGJKmov:{type:"Text",data:{style:{color:"#868686",backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"center",padding:{top:16,bottom:16,left:24,right:24}},props:{text:"This code will expire in 30 minutes."}}},block_Rvc8ZfTjfhXjpphHquJKvP:{type:"Text",data:{style:{color:"#868686",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"center",padding:{top:16,bottom:16,left:24,right:24}},props:{text:"Problems? Just reply to this email."}}}},tg={root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#333333",fontFamily:"MODERN_SANS",childrenIds:["block_Ei34o65X5XnD5dexNQgXh8","block_SLut2hpFsy7U6SmhtLtWNU","block_RrwLc5YMpHJGE5Xe9fAZVW","block_FHCeHrN3XNaH7bu6HhjVNT","block_3vynUg15EevMA6DiLsWJk2","block_5eQPGdKJ6JQYXCD1MEaHbv","block_WK3b19BzGE8VNKDwiSZ8s8","block_Pe2Dm5Cbqq5CcjL5wEdMg4","block_SizNWJDCcqw9tGH2ComdDX","block_4Qxv32WQo8pDzPu1d3vixz","block_LKiZYDTPeJGkRWHForFSDQ","block_P6XtJj721vPfrhXKzS8uR5","block_AKTwpjBmtevcfj82z52i8p"]}},block_PHe2XSbV4RvD76p21F3VdN:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{level:"h2",text:"Unbranded Supply"}}},block_DeTzPQDerYjBEMkt6TuD41:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_PHe2XSbV4RvD76p21F3VdN"]}}},block_TPxZn2Fjxc7MwgXAEybxkV:{type:"Text",data:{style:{color:"#808080",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"#103571871"}}},block_5fuNN9F4uZRTGa4Hy5F4Nd:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_TPxZn2Fjxc7MwgXAEybxkV"]}}},block_Ei34o65X5XnD5dexNQgXh8:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:16,bottom:24,left:24,right:24}},props:{columnsCount:2,columns:[{childrenIds:["block_DeTzPQDerYjBEMkt6TuD41"]},{childrenIds:["block_5fuNN9F4uZRTGa4Hy5F4Nd"]},{childrenIds:[]}]}}},block_SLut2hpFsy7U6SmhtLtWNU:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:0,left:24,right:24}},props:{level:"h3",text:"Thank you for your purchase!"}}},block_RrwLc5YMpHJGE5Xe9fAZVW:{type:"Text",data:{style:{color:"#404040",backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:16,left:24,right:24}},props:{text:"Hi Jordan,\n\nWe are preparing your package. Your tracking number will be generated once the package is ready to ship."}}},block_FHCeHrN3XNaH7bu6HhjVNT:{type:"Button",data:{style:{backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:40,left:24,right:24}}
1,props:{buttonBackgroundColor:"#5696E5",buttonStyle:"rounded",buttonTextColor:"#FFFFFF",fullWidth:!1,size:"large",text:"View your order",url:"https://example.usewaypoint.com/orders/103571871"}}},block_3vynUg15EevMA6DiLsWJk2:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:0,left:24,right:24}},props:{level:"h3",text:"Order summary"}}},block_Dvs2GYcF6SzfCYYNwfv1oM:{type:"Image",data:{style:{backgroundColor:null,padding:{top:0,bottom:0,left:0,right:0},textAlign:"left"},props:{url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_FBfTeYhbdXtqYpCA/kiran-ck-6rXpQzfCYlw-unsplash.jpg",alt:"",linkHref:null,contentAlignment:"middle"}}},block_KnMb2mQSf7nz8HXx6jyDUV:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_Dvs2GYcF6SzfCYYNwfv1oM"]}}},block_4sAeV4cLVKV8y4QFGV3Gf7:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:4,bottom:4,left:4,right:4}},props:{childrenIds:["block_KnMb2mQSf7nz8HXx6jyDUV"]}}},block_TBZZDHvoKHcW3j2nwQgmhC:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:4,left:0,right:0}},props:{text:"Unbranded Pen x 5"}}},block_KqpmZUcZajsnFMbTMhizZs:{type:"Text",data:{style:{color:"#808080",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Black / Black ink"}}},block_92JgagxxVxzyfnbvj5iUUJ:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_9bNBgfiJJyh65pfsy1fu7e:{type:"Text",data:{style:{color:"#808080",backgroundColor:null,fontSize:12,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"($5.00)"}}},block_7JwR5SHM2Bfjihamh45tRL:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_GQ77o7MDMwj48B5nocEJNq:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_TBZZDHvoKHcW3j2nwQgmhC","block_KqpmZUcZajsnFMbTMhizZs"]}}},block_6VvTYskm3BULZZEfYCkjwN:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$25.00"}}},block_V34TMZ9yg6t4xKMYfyD2Rk:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_6VvTYskm3BULZZEfYCkjwN"]}}},block_YBtUndjQaRuLFpEkgvjagk:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:0,bottom:0,right:0,left:0}},props:{fixedWidths:[64,null,80],columnsCount:3,columnsGap:16,columns:[{childrenIds:["block_4sAeV4cLVKV8y4QFGV3Gf7"]},{childrenIds:["block_GQ77o7MDMwj48B5nocEJNq"]},{childrenIds:["block_V34TMZ9yg6t4xKMYfyD2Rk"]}]}}},block_XykBAUxf8awiR2CxBfNLZN:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_YBtUndjQaRuLFpEkgvjagk"]}}},block_9AvGGkcg4Rq93DmxXjXwEP:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_5eQPGdKJ6JQYXCD1MEaHbv:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:16,bottom:16,left:24,right:24}},props:{childrenIds:["block_XykBAUxf8awiR2CxBfNLZN","block_9AvGGkcg4Rq93DmxXjXwEP"]}}},block_Wnt477QxYNynetWGwkLg89:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_FnzMxssTraByh9FbbnJvRw:{type:"Text",data:{style:{color:"#808080",backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Discount (BLKFRI)"}}},block_NyMsczQB7L3BKUa1RpUauu:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_FnzMxssTraByh9FbbnJvRw"]}}},block_AcbYK2jnr4sqG1GAbUHqNL:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$5.00"}}},block_BgHgpkAxq2qJUttN8pimnE:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_AcbYK2jnr4sqG1GAbUHqNL"]}}},block_2QEX1chf5uWU5ZZebf4gmu:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:4,bottom:4,left:0,right:0}}
1,props:{columnsCount:2,columns:[{childrenIds:["block_NyMsczQB7L3BKUa1RpUauu"]},{childrenIds:["block_BgHgpkAxq2qJUttN8pimnE"]},{childrenIds:[]}]}}},block_Q87SYRrWCwfRa56q3qLBDG:{type:"Text",data:{style:{color:"#808080",backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Subtotal"}}},block_QUNbV1p7f9qaSEvyLmnxmD:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_Q87SYRrWCwfRa56q3qLBDG"]}}},block_cF6MdfmbKisXytmfPU4QY:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$25.00"}}},block_4WkcuRqzqvTFvHGSBLGAAG:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_cF6MdfmbKisXytmfPU4QY"]}}},block_Lu666sTP6hqLkHiBThmm4G:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:4,bottom:4,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_QUNbV1p7f9qaSEvyLmnxmD"]},{childrenIds:["block_4WkcuRqzqvTFvHGSBLGAAG"]},{childrenIds:[]}]}}},block_GgUZQtnTQbiBFhMdJE5YYB:{type:"Text",data:{style:{color:"#808080",backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Shipping"}}},block_XzjZ3cnqJrKrwubFwD4VSr:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_GgUZQtnTQbiBFhMdJE5YYB"]}}},block_ViKMzYtjFGRksFuzRn5rny:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$5.00"}}},block_AcDrP2ZMVByFU269wvMgtw:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_ViKMzYtjFGRksFuzRn5rny"]}}},block_Gn2h8bajFuW8zDBsiVVitV:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:4,bottom:4,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_XzjZ3cnqJrKrwubFwD4VSr"]},{childrenIds:["block_AcDrP2ZMVByFU269wvMgtw"]},{childrenIds:[]}]}}},block_64aQbVaGVuFmvjPfr9hend:{type:"Text",data:{style:{color:"#808080",backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Taxes"}}},block_QTKa4AdGxtSbJmRY7ytjD8:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_64aQbVaGVuFmvjPfr9hend"]}}},block_H1MgkbcNH4sz8pMC2h4dVh:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$0.00"}}},block_Mi7A4sXfSXaEcjFV17WgSg:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_H1MgkbcNH4sz8pMC2h4dVh"]}}},block_2xkeWLDtTXj5jFg57KhfYR:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:4,bottom:4,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_QTKa4AdGxtSbJmRY7ytjD8"]},{childrenIds:["block_Mi7A4sXfSXaEcjFV17WgSg"]},{childrenIds:[]}]}}},block_QgSNshqbsUkk4FrRywjoRd:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_B5teSFiXFfpLmiB29c1WYF:{type:"Text",data:{style:{color:"#808080",backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Total"}}},block_DPodDUHaaLcYuAG3CQi1F7:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}}
1,props:{childrenIds:["block_B5teSFiXFfpLmiB29c1WYF"]}}},block_Wo7gkfj5QDqEiXywi6e2dq:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:21,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$30.00"}}},block_YABuGb9jY34Rywk4H2wmhu:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_Wo7gkfj5QDqEiXywi6e2dq"]}}},block_VvK99ZhLLgmycHQXKVFV7E:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:4,bottom:4,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_DPodDUHaaLcYuAG3CQi1F7"]},{childrenIds:["block_YABuGb9jY34Rywk4H2wmhu"]},{childrenIds:[]}]}}},block_VhteQbJa7bCSmykN4AcHkp:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_2QEX1chf5uWU5ZZebf4gmu","block_Lu666sTP6hqLkHiBThmm4G","block_Gn2h8bajFuW8zDBsiVVitV","block_2xkeWLDtTXj5jFg57KhfYR","block_QgSNshqbsUkk4FrRywjoRd","block_VvK99ZhLLgmycHQXKVFV7E"]}}},block_WK3b19BzGE8VNKDwiSZ8s8:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:24,right:24}},props:{columnsCount:2,columnsGap:16,columns:[{childrenIds:["block_Wnt477QxYNynetWGwkLg89"]},{childrenIds:["block_VhteQbJa7bCSmykN4AcHkp"]},{childrenIds:[]}]}}},block_Pe2Dm5Cbqq5CcjL5wEdMg4:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:40,bottom:24,left:24,right:24}},props:{level:"h3",text:"Customer information"}}},block_2c68kHKvfEzD1DRVKqh4Pg:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:8,left:0,right:0}},props:{text:"Shipping address"}}},block_SY5nL8mzSPgeEyeDgkDUEa:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"123 Main St New York, NY 10002"}}},block_ThQEcRPtSMqKiThzU9EGwV:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_2c68kHKvfEzD1DRVKqh4Pg","block_SY5nL8mzSPgeEyeDgkDUEa"]}}},block_NkMSrWFvqewuenMYqLNcRa:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:8,left:0,right:0}},props:{text:"Billing address"}}},block_7RTvDRNCQpM5xV6oXsCx6s:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"123 Main St New York, NY 10002"}}},block_KaHi1FBV64emMA3kb7x4vE:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_NkMSrWFvqewuenMYqLNcRa","block_7RTvDRNCQpM5xV6oXsCx6s"]}}},block_SizNWJDCcqw9tGH2ComdDX:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:24,right:24}},props:{columnsCount:2,columns:[{childrenIds:["block_ThQEcRPtSMqKiThzU9EGwV"]},{childrenIds:["block_KaHi1FBV64emMA3kb7x4vE"]},{childrenIds:[]}]}}},block_4Qxv32WQo8pDzPu1d3vixz:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:24,bottom:8,left:24,right:24}},props:{text:"Shipping method"}}},block_LKiZYDTPeJGkRWHForFSDQ:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:48,left:24,right:24}},props:{text:"Ground – Standard"}}},block_P6XtJj721vPfrhXKzS8uR5:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_AKTwpjBmtevcfj82z52i8p:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:16,left:24,right:24}},props:{text:"If you have any questions, just reply to this email."}}}},th={root:{type:"EmailLayout",data:{backdropColor:"#EEEEEE",canvasColor:"#FFFFFF",textColor:"#242424",fontFamily:"MODERN_SANS",childrenIds:["block_6B5Ke1N2KdM4STQjw7eEHT","block_VE1bKDbSqiYD9VtmmaYX7w","block_QQq
1jnauXAixe2LnJXVmHwQ","block_9yEYNZmmmFauyuSKi9iJA9","block_AC6eRbFVSbXHVCg2zutkLu","block_CYXkzjxrj6e4Sb74Kt8quM","block_AUAxG2BgwA6XC8rF5xAaaP","block_C1YvcFvMvzB1Fhxn3uV8zV","block_FsiiokCgr9bZitHn7sx7TB","block_DomD4MLJ58VcMo49vmeTH8"]}},block_6sP1Pi9AimAoti2ZPdNXUf:{type:"Image",data:{style:{backgroundColor:null,padding:{top:0,bottom:0,left:0,right:0},textAlign:"left"},props:{height:16,url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_n3eLjsf37dcjFaj5/Narrative.png",contentAlignment:"middle"}}},block_9G37m6eNPw2MpUj6SYGoq1:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_6sP1Pi9AimAoti2ZPdNXUf"]}}},block_A8GU16mV1RdP85jaszN7oj:{type:"Avatar",data:{style:{textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{size:32,shape:"circle",imageUrl:"https://ui-avatars.com/api/?name=John+Doe",alt:"Jordan"}}},block_4WmdbYU15yfdpYcYjsVDBA:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_A8GU16mV1RdP85jaszN7oj"]}}},block_JQAdLSAtvmfsRih13srJ8m:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_6B5Ke1N2KdM4STQjw7eEHT:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:24,bottom:24,left:24,right:24}},props:{columnsCount:2,columns:[{childrenIds:["block_9G37m6eNPw2MpUj6SYGoq1"]},{childrenIds:["block_4WmdbYU15yfdpYcYjsVDBA"]},{childrenIds:["block_JQAdLSAtvmfsRih13srJ8m"]}]}}},block_VE1bKDbSqiYD9VtmmaYX7w:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"center",padding:{top:24,bottom:0,left:24,right:24}},props:{level:"h3",text:"Last week, your posts received"}}},block_QQqjnauXAixe2LnJXVmHwQ:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:48,fontFamily:null,fontWeight:"bold",textAlign:"center",padding:{top:16,bottom:0,left:24,right:24}},props:{text:"1,511"}}},block_9yEYNZmmmFauyuSKi9iJA9:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"bold",textAlign:"center",padding:{top:0,bottom:16,left:24,right:24}},props:{text:"Post impressions"}}},block_AC6eRbFVSbXHVCg2zutkLu:{type:"Button",data:{style:{backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"center",padding:{top:16,bottom:24,left:24,right:24}},props:{buttonBackgroundColor:"#24AF7F",buttonStyle:"rounded",buttonTextColor:"#FFFFFF",fullWidth:!1,size:"medium",text:"View your analytics →",url:"https://example.usewaypoint.com/post/1234/analytics"}}},block_CYXkzjxrj6e4Sb74Kt8quM:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"center",padding:{top:24,bottom:8,left:24,right:24}},props:{level:"h3",text:"Top performing post last week"}}},block_FpDmSnPwiVzBXUvTc4yWFh:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"So excited to now have drag and drop on Waypoint. This builds on top of our new Navigator feature that we shipped earlier this week \uD83D\uDEA2."}}},block_LjuDF6uu4qWL3Ju3ng63ky:{type:"Container",data:{style:{backgroundColor:"#FAFAFA",borderColor:null,borderRadius:8,padding:{top:24,bottom:24,left:24,right:24}},props:{childrenIds:["block_FpDmSnPwiVzBXUvTc4yWFh"]}}},block_AUAxG2BgwA6XC8rF5xAaaP:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:16,bottom:16,left:24,right:24}},props:{childrenIds:["block_LjuDF6uu4qWL3Ju3ng63ky"]}}},block_C1YvcFvMvzB1Fhxn3uV8zV:{type:"Button",data:{style:{backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"center",padding:{top:16,bottom:16,left:24,right:24}},props:{buttonBackgroundColor:"#EEEEEE",buttonStyle:"rounded",buttonTextColor:"#474849",fullWidth:!1,size:"medium",text:"Show more",url:"https://example.usewaypoint.com/jordanisip/posts"}}},block_FsiiokCgr9bZitHn7sx7TB:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:40,bottom:0,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_DomD4MLJ58VcMo49vmeTH8:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:12,fontFamily:null,fontWeight:"normal",textAlign:"center",padding:{top:24,bottom:24,left:24,right:24}},props:{text:"Questions? Just reply to this email."}}}},tf={root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#03124A",fontFamily:"GEOMETRIC_SANS",childrenIds:["block_DDiR1Jz1iXY5aR1PMCzRAC","block_J98nQiyYeX1vJTu44ZSuua","block_M7imqmjHsmhd61LcdHJz5m","block_Fec2JmwhjNYJS7xWDyUqWu","block_E8jr6ieqZ4fwaHxj9C1uBF","block_H1hMtvKJ9b1eQ2aiEDjbTL","block_JJtd5TsPSjEMNhtKeMPh82","block_HRswcB2Ww7m3H4SijapqPq","block_kq85AQYHuSL8fXqqcZP7D","block_Sa3vmMr4AUT4W55Mx5EFxr","block_YF6R8BeMFE3XuiSP4cUex2","block_Qh1QiwAbDq1yxuzqBMAxbJ","block_FUvBg3iUzvmUcTjmjvo5Wd","block_UncM7Be9AkE197F3KYjpa5","block_8hNnkxhS84scJ18FCwRr4q","block_JihqAfW5u5wR8oQUJFP5kE"]}},block_DDiR1Jz1iXY5aR1PMCzRAC:{type:"Image",data:{style:{backgroundColor:null,padding:{top:24,bottom:24,left:24,right:24},textAlign:"left"},props:{height:32,url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_RAFATLGe3CN1wDsb/birdhouse.png",contentAlignment:"middle"}}},block_J98nQiyYeX1vJTu44ZSuua:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:16,bottom:0,left:24,right:24}},props:{level:"h2",text:"Elaina arrives Sunday, May 21."}}},block_M7imqmjHsmhd61LcdHJz5m:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:16,left:24,right:24}},props:{text:"If you haven’t already, reach out to Elaina to send directions and coordinate check-in time."}}},block_MEPSuGAUvE8WAg1AJWJvNU:{type:"Avatar",data:{style:{textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}}
1,props:{size:64,shape:"circle",imageUrl:"https://ui-avatars.com/api/?size=128&name=Elaina",alt:"Elaina"}}},block_7MDe4niz9sWkSR7Un5BvRo:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_MEPSuGAUvE8WAg1AJWJvNU"]}}},block_5jMPEu49PGBxyGcuBYxXK2:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{level:"h3",text:"Elaina"}}},block_NUv5obp6NnExg8DgonEyzm:{type:"Text",data:{style:{color:"#2e3c68",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"United States\nMember since 2013"}}},block_NetzRCyQeJbPp2VWQwmxBP:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_5jMPEu49PGBxyGcuBYxXK2","block_NUv5obp6NnExg8DgonEyzm"]}}},block_GH41bF6mW4wxDywjsxKrAv:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_UWushKnW34XryX4BSzpotP:{type:"ColumnsContainer",data:{style:{backgroundColor:"#f8f8f8",padding:{top:24,bottom:24,left:16,right:16}},props:{fixedWidths:[64,null,null],columnsCount:2,columnsGap:16,columns:[{childrenIds:["block_7MDe4niz9sWkSR7Un5BvRo"]},{childrenIds:["block_NetzRCyQeJbPp2VWQwmxBP"]},{childrenIds:["block_GH41bF6mW4wxDywjsxKrAv"]}]}}},block_Fec2JmwhjNYJS7xWDyUqWu:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:8,bottom:8,left:24,right:24}},props:{childrenIds:["block_UWushKnW34XryX4BSzpotP"]}}},block_E8jr6ieqZ4fwaHxj9C1uBF:{type:"Button",data:{style:{backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:16,bottom:16,left:24,right:24}},props:{buttonBackgroundColor:"#03124A",buttonStyle:"rounded",buttonTextColor:"#FFFFFF",fullWidth:!1,size:"large",text:"Send Elaina a message",url:"https://www.usewaypoint.com"}}},block_H1hMtvKJ9b1eQ2aiEDjbTL:{type:"Image",data:{style:{backgroundColor:null,padding:{top:24,bottom:24,left:24,right:24},textAlign:"left"},props:{url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_QWeWcucRbjPqoewY/L1030293.jpg",alt:"Photo",linkHref:"https://example.usewaypoint.com/listings/r029348209842",contentAlignment:"middle"}}},block_JJtd5TsPSjEMNhtKeMPh82:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:0,left:24,right:24}},props:{level:"h2",text:"Private Hideaway in the North Shore"}}},block_HRswcB2Ww7m3H4SijapqPq:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:16,left:24,right:24}},props:{text:"Entire home/apartment"}}},block_kq85AQYHuSL8fXqqcZP7D:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:24,right:24}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_AvnqsSCo9CTXYXHfMCQvUN:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:8,left:0,right:0}},props:{level:"h3",text:"Check in"}}},block_BsbDbmYTuyisEMXQY8dwW6:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:16,left:0,right:0}},props:{text:"Sunday, May 21 2023.\nCheck-in anytime after 3:00 PM"}}},block_6G89B9zYn7ELqnioW62cLA:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:16,bottom:8,left:0,right:0}},props:{level:"h3",text:"Check out"}}},block_DhZSQJBrQCXG17HSSMAfiq:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:16,left:0,right:0}},props:{text:"Tuesday, May 23 2023.\nCheckout by 11:00 AM"}}},block_NAzWgDcqGdpeHWrspZ8fz7:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_Sa3vmMr4AUT4W55Mx5EFxr:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:8,bottom:8,left:24,right:24}},props:{childrenIds:["block_AvnqsSCo9CTXYXHfMCQvUN","block_BsbDbmYTuyisEMXQY8dwW6","block_6G89B9zYn7ELqnioW62cLA","block_DhZSQJBrQCXG17HSSMAfiq","block_NAzWgDcqGdpeHWrspZ8fz7"]}}},block_MxedV7vMjjU4ZsikW1Fadv:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:8,left:0,right:0}},props:{level:"h3",text:"Guests"}}},block_8htLTdnN2CcAX67kwJFo2V:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:16,left:0,right:0}},props:{text:"Let them know upfront if your listing is suitable for children by updating your House Rules."}}},block_UR2m2tSekeEBy6s76D9Vju:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_YF6R8BeMFE3XuiSP4cUex2:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:8,bottom:8,left:24,right:24}},props:{childrenIds:["block_MxedV7vMjjU4ZsikW1Fadv","block_8htLTdnN2CcAX67kwJFo2V","block_UR2m2tSekeEBy6s76D9Vju"]}}},block_BouZQPSLfEfWvVp9qrHaW1:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:8,left:0,right:0}},props:{level:"h3",text:"Confirmation code"}}},block_Si5vw3ga7PZppiYv6g7GV7:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"HMFN35C4MH"}}},block_S6ARLFYsniJdJdkkie4UNa:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_Si5vw3ga7PZppiYv6g7GV7"]}}},block_MawqUvY8CdWpQ84dy4eRsa:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"View itinerary"}}},block_KjrdgHLJcyAcsjKStPktPU:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_MawqUvY8CdWpQ84dy4eRsa"]}}},block_DK7wXQDdPd8rzFxMeyxDzs:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_LHBuzMB27wJAjyi6bwLKeN:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:16,left:0,right:0}}
1,props:{columnsCount:2,columns:[{childrenIds:["block_S6ARLFYsniJdJdkkie4UNa"]},{childrenIds:["block_KjrdgHLJcyAcsjKStPktPU"]},{childrenIds:["block_DK7wXQDdPd8rzFxMeyxDzs"]}]}}},block_CWgMBgMBgpLMjqd1biz1mz:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_Qh1QiwAbDq1yxuzqBMAxbJ:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:8,bottom:8,left:24,right:24}},props:{childrenIds:["block_BouZQPSLfEfWvVp9qrHaW1","block_LHBuzMB27wJAjyi6bwLKeN","block_CWgMBgMBgpLMjqd1biz1mz"]}}},block_SnYxmj5ia2K4dqVEaZDLst:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:16,left:0,right:0}},props:{level:"h3",text:"Guest paid"}}},block_DBsnXnwmLBhETFknwe3qJt:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$99.00 x 2 nights"}}},block_4DvvyfwDXkgXXsjswWE9DE:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_DBsnXnwmLBhETFknwe3qJt"]}}},block_L6NUphHkWkpcXZgzBbW9dM:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$198.00"}}},block_DE363EYUo29c6qTiQLFzHv:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_L6NUphHkWkpcXZgzBbW9dM"]}}},block_Hs2DNRHwYGFvzMGVrZWUat:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_8rxqcogAeoRMFJJwHDLBvY:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_4DvvyfwDXkgXXsjswWE9DE"]},{childrenIds:["block_DE363EYUo29c6qTiQLFzHv"]},{childrenIds:["block_Hs2DNRHwYGFvzMGVrZWUat"]}]}}},block_KbFcTU27iLRQK6eVKkJ5As:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Cleaning fee"}}},block_McUGzTsrZTZGi8rXAs85KR:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_KbFcTU27iLRQK6eVKkJ5As"]}}},block_VhFNCUhgsbekxdnzvddmSH:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$50.00"}}},block_N5gv3mrQEm485SpKfBFHzi:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_VhFNCUhgsbekxdnzvddmSH"]}}},block_T3dLYTNNPBosywgZPEvuyn:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_RUef6VdysRRfcaDSdPPPRL:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_McUGzTsrZTZGi8rXAs85KR"]},{childrenIds:["block_N5gv3mrQEm485SpKfBFHzi"]},{childrenIds:["block_T3dLYTNNPBosywgZPEvuyn"]}]}}},block_4HKuXRyhnMPYfpEre1Y4EP:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Guest service fee"}}},block_C9rqNoPW6sR7FJ94dCW48c:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_4HKuXRyhnMPYfpEre1Y4EP"]}}},block_BGnqpBpBPAJZMqiSB2tFhs:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$35.01"}}},block_8EUayHcU4ze8PPYG4uVyqQ:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_BGnqpBpBPAJZMqiSB2tFhs"]}}},block_NAdj8o21Qtuz5U1Ptsp8QS:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_FDZhF8wpD8Am5TBAxqXYRn:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}}
1,props:{columnsCount:2,columns:[{childrenIds:["block_C9rqNoPW6sR7FJ94dCW48c"]},{childrenIds:["block_8EUayHcU4ze8PPYG4uVyqQ"]},{childrenIds:["block_NAdj8o21Qtuz5U1Ptsp8QS"]}]}}},block_Fnft7v54tmFaNiTJ3Qn5sg:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Occupancy taxes"}}},block_Qvmy5aUBDfQXJyGjUyTZa3:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_Fnft7v54tmFaNiTJ3Qn5sg"]}}},block_Jnd8bMVCEZPckFeotT1H6F:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$46.02"}}},block_9LZ7J716qiGogPFAufpYdi:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_Jnd8bMVCEZPckFeotT1H6F"]}}},block_RU3D4pVFkQDvAyNS7P5rRR:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_9Fj1tXV6otFnGdgJevbFPG:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_Qvmy5aUBDfQXJyGjUyTZa3"]},{childrenIds:["block_9LZ7J716qiGogPFAufpYdi"]},{childrenIds:["block_RU3D4pVFkQDvAyNS7P5rRR"]}]}}},block_JgZwrNfGi5BfW8KWeZT4Gq:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Total (USD)"}}},block_7eXpDRpkNETHdMN8Bkg9m1:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_JgZwrNfGi5BfW8KWeZT4Gq"]}}},block_8Xioqh7pENRgRhzFpVqh8w:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$329.03"}}},block_DCRQd2eFKSbUGvmQkxDdHs:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_8Xioqh7pENRgRhzFpVqh8w"]}}},block_65qW362ex9LdhQXx1dLSuq:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_7FUnUJ6umTXZz3Mn54KLCY:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:24,bottom:16,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_7eXpDRpkNETHdMN8Bkg9m1"]},{childrenIds:["block_DCRQd2eFKSbUGvmQkxDdHs"]},{childrenIds:["block_65qW362ex9LdhQXx1dLSuq"]}]}}},block_7RKLxAoSQFEyUSMx9fdkw3:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_FUvBg3iUzvmUcTjmjvo5Wd:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:8,bottom:8,left:24,right:24}},props:{childrenIds:["block_SnYxmj5ia2K4dqVEaZDLst","block_8rxqcogAeoRMFJJwHDLBvY","block_RUef6VdysRRfcaDSdPPPRL","block_FDZhF8wpD8Am5TBAxqXYRn","block_9Fj1tXV6otFnGdgJevbFPG","block_7FUnUJ6umTXZz3Mn54KLCY","block_7RKLxAoSQFEyUSMx9fdkw3"]}}},block_WQ5J7hXLdDXn8Vq4bVkAie:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:16,left:0,right:0}},props:{level:"h3",text:"Host payout"}}},block_9ztgHz93w9GvUBGTrDUCHE:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$99.00 x 2 nights"}}},block_CbV491KJbEv4crKswx5HHD:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_9ztgHz93w9GvUBGTrDUCHE"]}}},block_GJqkQ13ELZmPRexPJirGiF:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$198.00"}}},block_BPtTenyy93Su76mzF1cpqd:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_GJqkQ13ELZmPRexPJirGiF"]}}},block_94kXBLAgQPLF79YgFvAefs:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_StE5sGCYCoZTGAgs5KDKVX:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}}
1,props:{columnsCount:2,columns:[{childrenIds:["block_CbV491KJbEv4crKswx5HHD"]},{childrenIds:["block_BPtTenyy93Su76mzF1cpqd"]},{childrenIds:["block_94kXBLAgQPLF79YgFvAefs"]}]}}},block_NAtKDFR77MRHULTzQJy3M4:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Cleaning fee"}}},block_GG9WkMFMLq5ySDKBScvVnF:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_NAtKDFR77MRHULTzQJy3M4"]}}},block_ScETZ7SFzGKLaxS5NqDh96:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$50.00"}}},block_NAzfAuBqmG9wA2j2qykgF7:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_ScETZ7SFzGKLaxS5NqDh96"]}}},block_QAXFjyCSg9Mwog7ukkRzcX:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_RYUv7gd391axaL7itsyKqD:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_GG9WkMFMLq5ySDKBScvVnF"]},{childrenIds:["block_NAzfAuBqmG9wA2j2qykgF7"]},{childrenIds:["block_QAXFjyCSg9Mwog7ukkRzcX"]}]}}},block_LLCNdKMpQ7YzhfmVU5GhCR:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Host service fee (3%)"}}},block_Y5UCxoKxDgggVgnrgPakvt:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_LLCNdKMpQ7YzhfmVU5GhCR"]}}},block_G9S6kAvgE1VkeoytcpG7dg:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$7.44"}}},block_QrX6x2NPgGGScZPn4mSe1a:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_G9S6kAvgE1VkeoytcpG7dg"]}}},block_QYx54o6C4Tvkw58N3nMt9t:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_LSBTeahYDd47Fxt3ymwBZj:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_Y5UCxoKxDgggVgnrgPakvt"]},{childrenIds:["block_QrX6x2NPgGGScZPn4mSe1a"]},{childrenIds:["block_QYx54o6C4Tvkw58N3nMt9t"]}]}}},block_JRj1iySUsD8LjG1r9R1qCP:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Total (USD)"}}},block_FANLGemZZEXcrKPfe1CNw:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_JRj1iySUsD8LjG1r9R1qCP"]}}},block_LFBMTsnpzjENRjTbjecCr9:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$240.56"}}},block_Eb9iDCjkJQBET2qNsaL74L:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_LFBMTsnpzjENRjTbjecCr9"]}}},block_UPrvRbjeyXXT57HiVpHxuH:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_V7XtD9k81GjEmSt2HHCrQH:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:24,bottom:16,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_FANLGemZZEXcrKPfe1CNw"]},{childrenIds:["block_Eb9iDCjkJQBET2qNsaL74L"]},{childrenIds:["block_UPrvRbjeyXXT57HiVpHxuH"]}]}}},block_9tD2RA16EdVQfPXKNSXeru:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:16,left:0,right:0}},props:{text:"The money you earn hosting will be sent to you 24 hours after your guest arrives. You can check your upcoming payments in your transaction history."}}}
1,block_A9ub75sjdu8XvuCnwSA9AC:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_UncM7Be9AkE197F3KYjpa5:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:8,bottom:8,left:24,right:24}},props:{childrenIds:["block_WQ5J7hXLdDXn8Vq4bVkAie","block_StE5sGCYCoZTGAgs5KDKVX","block_RYUv7gd391axaL7itsyKqD","block_LSBTeahYDd47Fxt3ymwBZj","block_V7XtD9k81GjEmSt2HHCrQH","block_9tD2RA16EdVQfPXKNSXeru","block_A9ub75sjdu8XvuCnwSA9AC"]}}},block_3vaa8gDUB8D7gyYzTpKGzN:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:8,left:0,right:0}},props:{level:"h3",text:"Cancellations"}}},block_AqF4QDsGrVadYYB9yJywmL:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:24,left:0,right:0}},props:{text:"Your cancellation policy for guests is Moderate.\n\nThe penalties for canceling this reservation include getting a public review that shows you canceled, paying a cancellation fee, and having the canceled nights blocked on your calendar."}}},block_F9xbhy5omsUCjE9MuDfxJ5:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_8hNnkxhS84scJ18FCwRr4q:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:8,bottom:0,left:24,right:24}},props:{childrenIds:["block_3vaa8gDUB8D7gyYzTpKGzN","block_AqF4QDsGrVadYYB9yJywmL","block_F9xbhy5omsUCjE9MuDfxJ5"]}}},block_JihqAfW5u5wR8oQUJFP5kE:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:16,left:24,right:24}},props:{text:"Need help? Just reply to this email."}}}},tx={root:{type:"EmailLayout",data:{backdropColor:"#F2F5F7",canvasColor:"#FFFFFF",textColor:"#242424",fontFamily:"MODERN_SANS",childrenIds:["block_3gpSGmkgL4nWSBQjWCjK2z","block_BjpQ7DGTtvaEuYRMd7VE7w","block_xyg4GWmgGbJJEDRQc76bC","block_76VptLCZ47t3EkAarUufEJ","block_Gtk3kDYwsJqEmQf2XGWPRc","block_LACDCzUS2bsvEbmnq1KHuW"]}},block_3gpSGmkgL4nWSBQjWCjK2z:{type:"Image",data:{style:{padding:{top:24,bottom:8,right:24,left:24},backgroundColor:null,textAlign:"left"},props:{height:24,url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_Xh1R23U9ziyct9nd/codoc.png",alt:"",linkHref:null,contentAlignment:"middle"}}},block_BjpQ7DGTtvaEuYRMd7VE7w:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:32,bottom:0,left:24,right:24}},props:{level:"h3",text:"Reset your password?"}}},block_xyg4GWmgGbJJEDRQc76bC:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:8,bottom:16,left:24,right:24}},props:{text:"If you didn't request a reset, don't worry. You can safely ignore this email."}}},block_76VptLCZ47t3EkAarUufEJ:{type:"Button",data:{style:{backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:12,bottom:32,right:24,left:24}},props:{buttonBackgroundColor:"#0068FF",buttonStyle:"rectangle",buttonTextColor:"#FFFFFF",fullWidth:!1,size:"medium",text:"Change my password",url:"https://example.usewaypoint.com/reset_password?token=02938409809w8r09a83wr098aw0"}}},block_Gtk3kDYwsJqEmQf2XGWPRc:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:24,right:24}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_LACDCzUS2bsvEbmnq1KHuW:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:12,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:4,bottom:24,left:24,right:24}},props:{text:"Need help? Just reply to this email to contact support."}}}},ty={root:{type:"EmailLayout",data:{backdropColor:"#F0ECE5",canvasColor:"#F0ECE5",textColor:"#030303",fontFamily:"MODERN_SERIF",childrenIds:["block_HjX7RN8eDEz7BLBHSQCNgU","block_Jf65r5cUAnEzBfxn
1HKGa5S","block_WmPDNHDpyHkygqjHuqF7St","block_4VCKUvRMo7EbuMdN1VsdRw","block_4siwziT4BkewmN55PpXvEu","block_S9Rg9F3bGcviRyfMpoU5e4"]}},block_HjX7RN8eDEz7BLBHSQCNgU:{type:"Image",data:{style:{padding:{top:8,bottom:24,left:24,right:24}},props:{height:32,url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_hW6RusynHUNTKoLm/boop.png",contentAlignment:"middle"}}},block_Jf65r5cUAnEzBfxnHKGa5S:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:null,textAlign:null,padding:{top:16,bottom:0,left:24,right:24}},props:{level:"h2",text:"Respond to Anna's Inquiry"}}},block_WmPDNHDpyHkygqjHuqF7St:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:null,textAlign:null,padding:{top:8,bottom:16,left:24,right:24}},props:{text:"Dog boarding for Aug 1 - Aug 29."}}},block_95nkowWyi4p2VBiA46Eizs:{type:"Text",data:{style:{color:null,backgroundColor:"#faf9f9",fontSize:21,fontFamily:null,fontWeight:null,textAlign:null,padding:{top:24,bottom:24,left:24,right:24}},props:{text:"Any chance you can watch Emma again next month?"}}},block_4VCKUvRMo7EbuMdN1VsdRw:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:16,bottom:16,left:24,right:24}},props:{childrenIds:["block_95nkowWyi4p2VBiA46Eizs"]}}},block_4siwziT4BkewmN55PpXvEu:{type:"Button",data:{style:{backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:null,textAlign:"left",padding:{top:24,bottom:24,left:24,right:24}},props:{buttonBackgroundColor:"#BE4F46",buttonTextColor:"#FFFFFF",size:"large",buttonStyle:"pill",text:"Respond",url:"http://example.usewaypoint.com/request/2334234",fullWidth:!1}}},block_S9Rg9F3bGcviRyfMpoU5e4:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:16,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:16,left:24,right:24}},props:{text:"You need 2 more walks to become a Super Walker on Boop!"}}}},tk={root:{type:"EmailLayout",data:{backdropColor:"#F5F5F5",canvasColor:"#F5F5F5",textColor:"#242424",fontFamily:"MODERN_SANS",childrenIds:["block_URcE7RiYB227zNraU1Nujd","block_TisRUSez8uPYr6bgHLKQeg","block_UQHMPb5NFLrY9PkWUckmHb","block_FLTQdJVBNsmRxurTZTSC2V","block_Qq64GeHw7K24Fgz5oX81kt"]}},block_DNGbxXXMnwkRrecLDTP6VR:{type:"Image",data:{style:{backgroundColor:null,padding:{top:0,bottom:0,left:0,right:0},textAlign:"left"},props:{height:18,url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_9TcdHLq5SpEkRADB/REMIX.png",alt:"Remix",linkHref:"https://remix.example.com",contentAlignment:"middle"}}},block_ULKdXApwJ1dsJCa5fntAXV:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_DNGbxXXMnwkRrecLDTP6VR"]}}},block_FBxe99baQhH1dptybLYVrF:{type:"Button",data:{style:{backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{buttonBackgroundColor:"#FFFFFF",buttonStyle:"pill",buttonTextColor:"#242424",fullWidth:!1,size:"medium",text:"Sign in",url:"https://remix.example.com/dashboard"}}},block_WDjxjPcraFGwiBHj5vjhdV:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_FBxe99baQhH1dptybLYVrF"]}}},block_JUxxjtK5TSUk9MV6Rtra4Q:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_URcE7RiYB227zNraU1Nujd:{type:"ColumnsContainer",data:{style:{backgroundColor:"#f5f5f5",padding:{top:16,bottom:16,left:24,right:24}},props:{columnsCount:2,columns:[{childrenIds:["block_ULKdXApwJ1dsJCa5fntAXV"]},{childrenIds:["block_WDjxjPcraFGwiBHj5vjhdV"]},{childrenIds:["block_JUxxjtK5TSUk9MV6Rtra4Q"]}]}}},block_9mYZ55v7d29WRjNgPf5cuw:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Receipt from Remix Studios, Inc."}}},block_R5vyrdxj7v4FqyFbQ7iDBM:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:16,bottom:0,left:0,right:0}},props:{level:"h1",text:"$99.75"}}},block_7vHVGWiRQYr8sigcW9nJvD:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Paid August 1, 2023"}}},block_AL2uK2hkvCnaT6JtDuvE5n:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_ADvJa3qqbBH1TB84VxbFwC:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Download receipt"}}},block_9NpGWp5DnLHA2gbTUzsWHX:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_9mYZ55v7d29WRjNgPf5cuw","block_R5vyrdxj7v4FqyFbQ7iDBM","block_7vHVGWiRQYr8sigcW9nJvD","block_AL2uK2hkvCnaT6JtDuvE5n","block_ADvJa3qqbBH1TB84VxbFwC"]}}},block_FMRV8DJAAWqpoJta6ivKEe:{type:"Image",data:{style:{backgroundColor:null,padding:{top:0,bottom:0,left:0,right:0},textAlign:"right"},props:{url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_8yUGBZcXaAtTEofB/invoice-skeleton.png",alt:"Your invoice has been paid.",linkHref:"http://remix.example.com/receipt/1923-2093",contentAlignment:"middle"}}},block_SGQxVVB8bXVmVg9NyDY3Fu:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_FMRV8DJAAWqpoJta6ivKEe"]}}},block_KY8rgT1mqUBiCm2uranpvx:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_4TVeBRBPut2oZoQpG9FV4J:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:16,bottom:16,left:0,right:0}}
1,props:{columnsCount:2,columns:[{childrenIds:["block_9NpGWp5DnLHA2gbTUzsWHX"]},{childrenIds:["block_SGQxVVB8bXVmVg9NyDY3Fu"]},{childrenIds:["block_KY8rgT1mqUBiCm2uranpvx"]}]}}},block_67EyoqnbtLAHWXiobN39NX:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Receipt number"}}},block_UCrU3np77mWqQgTfYHG1NL:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_67EyoqnbtLAHWXiobN39NX"]}}},block_LQ93SUN8XxG6uaLbGpsAx1:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"1923-2093"}}},block_6KX5ggTcFs5ckbt9wZppac:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_LQ93SUN8XxG6uaLbGpsAx1"]}}},block_AsFj6GNHWFUhG6GgM7Ww9r:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_SfGDZ1NhRmtjFJS6qs4Zpc:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_UCrU3np77mWqQgTfYHG1NL"]},{childrenIds:["block_6KX5ggTcFs5ckbt9wZppac"]},{childrenIds:["block_AsFj6GNHWFUhG6GgM7Ww9r"]}]}}},block_6UhQGq7NwSAhRog8yRYjJo:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Invoice number"}}},block_F3FdxCgPYxnH8SYgFgBsuY:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_6UhQGq7NwSAhRog8yRYjJo"]}}},block_L5on9HCEU6BRvx25RBRgS2:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"2ABC1234-20923"}}},block_WrzeLHiJs9VnXSkLXXD5ED:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_L5on9HCEU6BRvx25RBRgS2"]}}},block_Wb8pxrh2frxYZWM6hmfc5L:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_XiNoAViyVVEWafdMW4x4TL:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_F3FdxCgPYxnH8SYgFgBsuY"]},{childrenIds:["block_WrzeLHiJs9VnXSkLXXD5ED"]},{childrenIds:["block_Wb8pxrh2frxYZWM6hmfc5L"]}]}}},block_LbwZcoeGigXpK4PTVTyZ8E:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Payment method"}}},block_ETbxLryzrgoKbVBnw1ieyi:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_LbwZcoeGigXpK4PTVTyZ8E"]}}},block_P8fn3PavFZVTrEwufKHKEF:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"VISA – 4252"}}},block_2Bx6KDcv1nT4hPiQ8Eabfv:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_P8fn3PavFZVTrEwufKHKEF"]}}},block_WSzbB3PKqRUxCuUqp9wuK6:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_NYNuDnrs6ZnZ6kj927yv7W:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}}
1,props:{columnsCount:2,columns:[{childrenIds:["block_ETbxLryzrgoKbVBnw1ieyi"]},{childrenIds:["block_2Bx6KDcv1nT4hPiQ8Eabfv"]},{childrenIds:["block_WSzbB3PKqRUxCuUqp9wuK6"]}]}}},block_TisRUSez8uPYr6bgHLKQeg:{type:"Container",data:{style:{backgroundColor:"#ffffff",borderColor:null,borderRadius:null,padding:{top:16,bottom:24,left:24,right:24}},props:{childrenIds:["block_4TVeBRBPut2oZoQpG9FV4J","block_SfGDZ1NhRmtjFJS6qs4Zpc","block_XiNoAViyVVEWafdMW4x4TL","block_NYNuDnrs6ZnZ6kj927yv7W"]}}},block_UQHMPb5NFLrY9PkWUckmHb:{type:"Spacer",data:{props:{height:24}}},block_RNsVmDsY33ipzGLtRUsYys:{type:"Heading",data:{style:{color:null,backgroundColor:null,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:16,left:0,right:0}},props:{level:"h3",text:"Receipt #1923-2093"}}},block_Y7W2h9xDuNreQdgMrv82KZ:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:16,bottom:16,left:0,right:0}},props:{text:"JULY 10, 2023 – AUGUST 1, 2023"}}},block_4m1h6Xzhvi9oDrFMgWajjH:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Remix Pro"}}},block_7egXzHguX1zPm5CwYiKuPh:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:12,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:8,bottom:0,left:0,right:0}},props:{text:"5 seats"}}},block_WbxCFjDKk1Ev11prfgLhvX:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_4m1h6Xzhvi9oDrFMgWajjH","block_7egXzHguX1zPm5CwYiKuPh"]}}},block_FUaNAn8h7DzU7kVzeFqsug:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$99.75"}}},block_9gDnB1o17vBrS4usmyAVUr:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_FUaNAn8h7DzU7kVzeFqsug"]}}},block_5wDvatGEixESNpVrjWbAGi:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_KFadGhRvS4kHVRr41XMiRs:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_WbxCFjDKk1Ev11prfgLhvX"]},{childrenIds:["block_9gDnB1o17vBrS4usmyAVUr"]},{childrenIds:["block_5wDvatGEixESNpVrjWbAGi"]}]}}},block_3rTWcrZLSt1nnCYW5BdiU9:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_CSV8NQS6gBMQcFXvFAFo3Q:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_KFadGhRvS4kHVRr41XMiRs","block_3rTWcrZLSt1nnCYW5BdiU9"]}}},block_XZZUC61s2jBfaMfjcFYSo2:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Total"}}},block_LfhgxAyqkNPTGubxqYJNZ5:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_XZZUC61s2jBfaMfjcFYSo2"]}}},block_MsXkdwkAWAbvJ5EcwvqSqv:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$99.75"}}},block_PiKRrj91HQKM1qUW4gDJt1:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_MsXkdwkAWAbvJ5EcwvqSqv"]}}},block_WhzFAeoTPhhgNcG9rdcd4K:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_LJcwZCh6z1EyFeeKH8Egts:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}}
1,props:{columnsCount:2,columns:[{childrenIds:["block_LfhgxAyqkNPTGubxqYJNZ5"]},{childrenIds:["block_PiKRrj91HQKM1qUW4gDJt1"]},{childrenIds:["block_WhzFAeoTPhhgNcG9rdcd4K"]}]}}},block_HSbX9aqHvSXw9GAB361vpM:{type:"Divider",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{lineHeight:1,lineColor:"#EEEEEE"}}},block_3of5ne4hc1PFiSKHz59FP8:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"bold",textAlign:"left",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"Amount paid"}}},block_GTPnMRuHqf1bCLk8VLAr4z:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_3of5ne4hc1PFiSKHz59FP8"]}}},block_XvojX8xDiQRr4VNHDwtyXZ:{type:"Text",data:{style:{color:null,backgroundColor:null,fontSize:14,fontFamily:null,fontWeight:"bold",textAlign:"right",padding:{top:0,bottom:0,left:0,right:0}},props:{text:"$99.75"}}},block_LbEheyx16SX5S8GK2zY3sJ:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:["block_XvojX8xDiQRr4VNHDwtyXZ"]}}},block_M6BwLBjomRNsdee4rdoA4y:{type:"Container",data:{style:{backgroundColor:null,borderColor:null,borderRadius:null,padding:{top:0,bottom:0,left:0,right:0}},props:{childrenIds:[]}}},block_DUQnBfK11aHN7ZypDPfeug:{type:"ColumnsContainer",data:{style:{backgroundColor:null,padding:{top:8,bottom:8,left:0,right:0}},props:{columnsCount:2,columns:[{childrenIds:["block_GTPnMRuHqf1bCLk8VLAr4z"]},{childrenIds:["block_LbEheyx16SX5S8GK2zY3sJ"]},{childrenIds:["block_M6BwLBjomRNsdee4rdoA4y"]}]}}},block_FLTQdJVBNsmRxurTZTSC2V:{type:"Container",data:{style:{backgroundColor:"#ffffff",borderColor:null,borderRadius:null,padding:{top:16,bottom:24,left:24,right:24}},props:{childrenIds:["block_RNsVmDsY33ipzGLtRUsYys","block_Y7W2h9xDuNreQdgMrv82KZ","block_CSV8NQS6gBMQcFXvFAFo3Q","block_LJcwZCh6z1EyFeeKH8Egts","block_HSbX9aqHvSXw9GAB361vpM","block_DUQnBfK11aHN7ZypDPfeug"]}}},block_Qq64GeHw7K24Fgz5oX81kt:{type:"Text",data:{style:{color:"#474849",backgroundColor:null,fontSize:12,fontFamily:null,fontWeight:"normal",textAlign:"left",padding:{top:24,bottom:16,left:24,right:24}},props:{text:"Can we help? Just reply to this email."}}}},tC={root:{type:"EmailLayout",data:{backdropColor:"#F2F5F7",canvasColor:"#FFFFFF",textColor:"#242424",fontFamily:"MODERN_SANS",childrenIds:["block-1709571212684","block-1709571228545","block-1709571234315","block-1709571247550","block-1709571258507","block-1709571281151","block-1709571302968","block-1709571282795"]}},"block-1709571212684":{type:"Image",data:{style:{padding:{top:24,bottom:24,right:24,left:24}},props:{url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_JTNBBPGrNs2Ph4JL/marketbase.png",alt:"Marketbase",linkHref:"https://marketbase.app",contentAlignment:"middle"}}},"block-1709571228545":{type:"Text",data:{style:{fontWeight:"normal",padding:{top:0,bottom:16,right:24,left:24}},props:{text:"Hi Anna \uD83D\uDC4B,"}}},"block-1709571234315":{type:"Text",data:{style:{fontWeight:"normal",padding:{top:0,bottom:16,right:24,left:24}},props:{text:"Welcome to Marketbase! Marketbase is how teams within fast growing marketplaces effortlessly monitor conversations to prevent disintermediation, identify problematic users, and increase trust & safety within their community."}}},"block-1709571247550":{type:"Text",data:{style:{fontWeight:"normal",padding:{top:0,bottom:16,right:24,left:24}},props:{text:"Best of all, you can connect your existing messaging services in minutes:"}}},"block-1709571258507":{type:"Image",data:{style:{padding:{top:16,bottom:16,right:24,left:24}},props:{url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_oWB821TUkDXvr2f4/Screenshot%202023-11-22%20at%2011.51.30%20AM.png",alt:"Video thumbnail",linkHref:"https://capture.dropbox.com/NBQEmoCKKP9RGBWr",contentAlignment:"middle"}}},"block-1709571281151":{type:"Text",data:{style:{fontWeight:"normal",padding:{top:16,bottom:16,right:24,left:24}},props:{text:"If you ever need help, just reply to this email and one of us will get back to you shortly. We’re here to help."}}},"block-1709571282795":{type:"Image",data:{style:{padding:{top:16,bottom:40,right:24,left:24}},props:{url:"https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_cAK8FpmBEGoSRNi3/Screenshot%202023-11-22%20at%2011.48.53%20AM.png",alt:"Illustration",linkHref:null,contentAlignment:"middle"}}},"block-1709571302968":{type:"Button",data:{style:{fontSize:14,padding:{top:16,bottom:24,right:24,left:24}}
1,props:{buttonBackgroundColor:"#0079cc",buttonStyle:"rectangle",text:"Open dashboard",url:"https://www.usewaypoint.com"}}}},tv={document:function(e){if(e.startsWith("#sample/"))switch(e.replace("#sample/","")){case"empty":case"welcome":return tC;case"one-time-password":return tb;case"order-ecomerce":return tg;case"post-metrics-report":return th;case"reservation-reminder":return tf;case"reset-password":return tx;case"respond-to-message":return ty;case"subscription-receipt":return tk}if(e.startsWith("#code/")){let t=decodeURIComponent(atob(e.replace("#code/","")));try{return JSON.parse(t)}catch(e){console.error("Couldn't load configuration from hash.")}}return tm}("empty"),selectedBlockId:null,selectedSidebarTab:"styles",selectedMainTab:"editor",selectedScreenSize:"desktop",inspectorDrawerOpen:!0,samplesDrawerOpen:!0},tS=(0,h.createContext)(void 0);function tA(e){let t,l,r,a,i,s,d,u,c,p,m=(0,n.c)(13),{children:b}=e,[g,f]=(0,h.useState)(tv);m[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{let t=null===e?"styles":"block-configuration",l={};null!==e&&(l.inspectorDrawerOpen=!0),f(o=>({...o,selectedBlockId:e,selectedSidebarTab:t,...l}))},m[0]=t):t=m[0];let x=t;m[1]===Symbol.for("react.memo_cache_sentinel")?(l=e=>f(t=>({...t,selectedMainTab:e})),m[1]=l):l=m[1];let y=l;m[2]===Symbol.for("react.memo_cache_sentinel")?(r=e=>f(t=>({...t,selectedSidebarTab:e})),m[2]=r):r=m[2];let k=r;m[3]===Symbol.for("react.memo_cache_sentinel")?(a=e=>f(t=>({...t,document:e,selectedSidebarTab:"styles",selectedBlockId:null})),m[3]=a):a=m[3];let C=a;m[4]===Symbol.for("react.memo_cache_sentinel")?(i=e=>f(t=>({...t,document:{...t.document,...e}})),m[4]=i):i=m[4];let v=i;m[5]===Symbol.for("react.memo_cache_sentinel")?(s=()=>f(t_),m[5]=s):s=m[5];let S=s;m[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>f(tj),m[6]=d):d=m[6];let A=d;m[7]===Symbol.for("react.memo_cache_sentinel")?(u=e=>f(t=>({...t,selectedScreenSize:e})),m[7]=u):u=m[7];let j=u;m[8]!==g?(c={state:g,setSelectedBlockId:x,setSelectedMainTab:y,setSidebarTab:k,resetDocument:C,setDocument:v,toggleInspectorDrawerOpen:S,toggleSamplesDrawerOpen:A,setSelectedScreenSize:j},m[8]=g,m[9]=c):c=m[9];let _=c;return m[10]!==b||m[11]!==_?(p=(0,o.jsx)(tS.Provider,{value:_,children:b}),m[10]=b,m[11]=_,m[12]=p):p=m[12],p}function tj(e){return{...e,samplesDrawerOpen:!e.samplesDrawerOpen}}function t_(e){return{...e,inspectorDrawerOpen:!e.inspectorDrawerOpen}}function tF(){let e=(0,h.useContext)(tS);if(!e)throw Error("useEditorContext must be used within EditorProvider");return e}let tT=()=>tF().state.document,tE=()=>tF().state.selectedBlockId,tR=()=>tF().state.selectedMainTab,tN=()=>tF().state.inspectorDrawerOpen,tw=()=>tF().setSelectedBlockId,tI=()=>tF().resetDocument,tD=()=>tF().setDocument;var tM=l(77626),tW=l(25058),tB=l(65338),tP=l(87391),tz=l(89714);function tV(e){let t,l,r,a,i=(0,n.c)(8),{title:s,children:c}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t={display:"block",mb:2},i[0]=t):t=i[0],i[1]!==s?(l=(0,o.jsx)(e4.A,{variant:"overline",color:"text.secondary",sx:t,children:s}),i[1]=s,i[2]=l):l=i[2],i[3]!==c?(r=(0,o.jsx)(d.A,{spacing:5,mb:3,children:c}),i[3]=c,i[4]=r):r=i[4],i[5]!==l||i[6]!==r?(a=(0,o.jsxs)(u.A,{p:2,children:[l,r]}),i[5]=l,i[6]=r,i[7]=a):a=i[7],a}var tL=l(91276),tH=l(22059);function tU(e){let t,l,r,a,i=(0,n.c)(11),{label:s,children:u,defaultValue:c,onChange:p}=e,[m,b]=(0,h.useState)(c);return i[0]!==s?(t=(0,o.jsx)(tL.A,{shrink:!0,children:s}),i[0]=s,i[1]=t):t=i[1],i[2]!==p?(l=(e,t)=>{"string"==typeof t&&(b(t),p(t))},i[2]=p,i[3]=l):l=i[3],i[4]!==u||i[5]!==l||i[6]!==m?(r=(0,o.jsx)(tH.A,{exclusive:!0,fullWidth:!0,value:m,size:"small",onChange:l,children:u}),i[4]=u,i[5]=l,i[6]=m,i[7]=r):r=i[7],i[8]!==t||i[9]!==r?(a=(0,o.jsxs)(d.A,{alignItems:"flex-start",children:[t,r]}),i[8]=t,i[9]=r,i[10]=a):a=i[10],a}var tG=l(38481);function tO(e){let t,l,r,a,i,s,c,p,m,b,g,h,f,x=(0,n.c)(24);return x[0]!==e?({iconLabel:t,value:i,setValue:r,units:a,...l}=e,x[0]=e,x[1]=t,x[2]=l,x[3]=r,x[4]=a,x[5]=i):(t=x[1],l=x[2],r=x[3],a=x[4],i=x[5]),x[6]===Symbol.for("react.memo_cache_sentinel")?(s={minWidth:24,lineHeight:1,flexShrink:0},x[6]=s):s=x[6],x[7]!==t?(c=(0,o.jsx)(u.A,{sx:s,children:t}),x[7]=t,x[8]=c):c=x[8],x[9]!==r?(p=(e,t)=>{if("number"!=typeof t)throw Error("RawSliderInput values can only receive numeric values");r(t)},x[9]=r,x[10]=p):p=x[10],x[11]!==l||x[12]!==p||x[13]!==i?(m=(0,o.jsx)(tG.Ay,{...l,value:i,onChange:p}),x[11]=l,x[12]=p,x[13]=i,x[14]=m):m=x[14],x[15]===Symbol.for("react.memo_cache_sentinel")?(b={minWidth:32,textAlign:"right",flexShrink:0},x[15]=b):b=x[15],x[16]===Symbol.for("react.memo_cache_sentinel")?(g={lineHeight:1},x[16]=g):g=x[16],x[17]!==a||x[18]!==i?(h=(0,o.jsx)(u.A,{sx:b,children:(0,o.jsxs)(e4.A,{variant:"body2",color:"text.secondary",sx:g,children:[i,a]})}),x[17]=a,x[18]=i,x[19]=h):h=x[19],x[20]!==c||x[21]!==m||x[22]!==h?(f=(0,o.jsxs)(d.A,{direction:"row",alignItems:"center",spacing:2,justifyContent:"space-between",width:"100%",children:[c,m,h]}),x[20]=c,x[21]=m,x[22]=h,x[23]=f):f=x[23],f}function tY(e){let t,l,r,a,i,s,u,c,p,m=(0,n.c)(17);m[0]!==e?({label:l,defaultValue:t,onChange:r,...a}=e,m[0]=e,m[1]=t,m[2]=l,m[3]=r,m[4]=a):(t=m[1],l=m[2],r=m[3],a=m[4]);let[b,g]=(0,h.useState)(t);return m[5]===Symbol.for("react.memo_cache_sentinel")?(i={fontWeight:600},m[5]=i):i=m[5],m[6]!==l?(s=(0,o.jsx)(e4.A,{variant:"caption",sx:i,children:l}),m[6]=l,m[7]=s):s=m[7],m[8]!==r?(u=e=>{g(e),r(e)},m[8]=r,m[9]=u):u=m[9],m[10]!==a||m[11]!==u||m[12]!==b?(c=(0,o.jsx)(tO,{value:b,setValue:u,...a}),m[10]=a,m[11]=u,m[12]=b,m[13]=c):c=m[13],m[14]!==s||m[15]!==c?(p=(0,o.jsxs)(d.A,{spacing:1,alignItems:"flex-start",children:[s,c]}),m[14]=s,m[15]=c,m[16]=p):p=m[16],p}var tJ=l(10379),tq=l(13209),tK=l(25958),tX=l(89847),tQ=l(80956),tZ=l(45401),t$=l(27254),t0=l(60427);let t1={Groups:{Invoice:"Invoice",Job:"Job",Customer:"Customer",Business:"Business"},Placeholders:{Invoice:{InvoiceTemplateText:{label:"Invoice Template Text",value:"[Invoice Template Text]",description:"The template text of the invoice that will be sent to the customer used on the 'Send To Customer' area, specified in the invoice settings.",testValue:"Thank y
1ou for choosing our service!"},InvoicePrefix:{label:"Invoice Prefix",value:"[Invoice Prefix]",description:"The invoice number prefix.",testValue:"#INV-"},InvoiceNumber:{label:"Invoice Number",value:"[Invoice Number]",description:"The number of the invoice.",testValue:"001"},InvoiceTotalWithoutCurrency:{label:"Invoice Total Without Currency",value:"[Invoice Total Without Currency]",description:"The total of the invoice without currency.",testValue:"150.00"},InvoiceTotal:{label:"Invoice Total",value:"[Invoice Total]",description:"The total of the invoice with currency.",testValue:"\xa3150.00"},InvoiceOutstandingAmount:{label:"Invoice Outstanding Amount",value:"[Invoice Outstanding Amount]",description:"The outstanding amount of the invoice.",testValue:"\xa3150.00"},InvoiceOutstandingAmountWithoutCurrency:{label:"Invoice Outstanding Amount Without Currency",value:"[Invoice Outstanding Amount Without Currency]",description:"The outstanding amount of the invoice without currency.",testValue:"150.00"},IssueDate:{label:"Issue Date",value:"[Issue Date]",description:"The issue date on the invoice.",testValue:"26/09/2026"},DueDate:{label:"Due Date",value:"[Due Date]",description:"The due date on the invoice.",testValue:"26/09/2026"},PaymentLink:{label:"Payment Link",value:"[Payment Link]",description:"The payment link for the invoice, allowing customers to pay online.",testValue:"https://bikebook.co.uk/pay/inv-001"}},Customer:{CustomerFirstName:{label:"Customer First Name",value:"[Customer First Name]",description:"The first name of the customer.",testValue:"John"},CustomerLastName:{label:"Customer Last Name",value:"[Customer Last Name]",description:"The last name of the customer.",testValue:"Smith"},CustomerEmail:{label:"Customer Email",value:"[Customer Email]",description:"The email of the customer.",testValue:"[email protected]"},CustomerPhone:{label:"Customer Phone",value:"[Customer Phone]",description:"The phone number of the customer.",testValue:"+447700 900123"}},Business:{BusinessName:{label:"Business Name",value:"[Business Name]",description:"The display name of your business.",testValue:"Bikebook Test Shop"},BusinessEmail:{label:"Business Email",value:"[Business Email]",description:"The contact email of your business.",testValue:"[email protected]"},BusinessPhone:{label:"Business Phone",value:"[Business Phone]",description:"The phone number of your business.",testValue:"+447123 5678645"},BusinessWebsiteUrl:{label:"Business Website url",value:"[Business Website Url]",description:"The url of your business's website.",testValue:"www.website.com"},BusinessAddress:{label:"Business Address",value:"[Business Address]",description:"The address of your business.",testValue:"123 Bike Street, London, SW1A 1AA"},BusinessLogo:{label:"Business Logo",value:"[Business Logo]",description:"The logo of your business.",testValue:"https://cdn.bikebook.co.uk/assets/bikebook/logo/blue-background.png"},BusinessDirectoryUrl:{label:"Business Directory Url",value:"[Business Directory Url]",description:"The url to your business on bikebook.",testValue:"https://bikebook.co.uk/mechanic/12345"},BusinessReviewUrl:{label:"Business Review Url",value:"[Business Review Url]",description:"The url to your business on bikebook.",testValue:"https://bikebook.co.uk/mechanic/12345#reviews"},BusinessBookingUrl:{label:"Business Booking Url",value:"[Business Booking Url]",description:"The url to your business on bikebook to make a booking.",testValue:"https://bikebook.co.uk/mechanic/12345/book"}},Job:{JobNumber:{label:"Job Number",value:"[Job Number]",description:"The number of the job.",testValue:"1"},JobTrackingUrl:{label:"Job Tracking Url",value:"[Job Tracking Url]",description:"The tracking url of the job used by the customer to track their job. Do not place a full stop or other punctuation immediately after this placeholder in SMS text — put the URL on its own line or start a new sentence instead.",testValue:"https://bikebook.co.uk/tracking/abc123"},ReturnDate:{label:"Return Date",value:"[Return Date]",description:"The return date of the job specified on the booking info tab.",testValue:"02/10/2026"},ReturnWindow:{label:"Return Window",value:"[Return Window]",description:"The return window of the job specified on the booking info tab.",testValue:"9:00 - 11:00"},ReturnAddress:{label:"Return Address",value:"[Return Address]",description:"The address of the return specified on the booking info tab.",testValue:"456 Customer Road, London, E1 6AN"},CollectionDate:{label:"Collection Date",value:"[Collection Date]",description:"The collection date of the job specified on the booking info tab.",testValue:"26/09/2026"},CollectionWindow:{label:"Collection Window",value:"[Collection Window]",description:"The collection window of the job specified on the booking info tab.",testValue:"12:00 - 14:00"},CollectionAddress:{label:"Collection Address",value:"[Collection Address]",description:"The address of the collection specified on the booking info tab.",testValue:"456 Customer Road, London, E1 6AN"},ServiceDate:{label:"Service Date",value:"[Service Date]",description:"The service date of the job specified on the booking info tab.",testValue:"26/09/2026"},ServiceWindow:{label:"Service Window",value:"[Service Window]",description:"The service window of the job specified on the booking info tab.",testValue:"12:00 - 14:00"},ServiceAddress:{label:"Service Address",value:"[Service Address]",description:"The address of the service specified on the booking info tab.",testValue:"456 Customer Road, London, E1 6AN"},Services:{label:"Services",value:"[Services]",description:"The services of the job joined together with a comma.",testValue:"Full Service, Brake Adjustment, Gear Tune-up"},CustomerDropOffDate:{label:"Customer Drop-Off Date",value:"[Customer Drop-Off Date]",description:"The drop-off date of the customer specified on the booking info tab.",testValue:"26/09/2026"},CustomerDropOffLocation:{label:"Customer Drop-Off Location",value:"[Customer Drop-Off Location]",description:"The drop-off location for the customer.",testValue:"Unit 1, Fake Street 1, Brighton, BN38ES"},CustomerPickUpDate:{label:"Customer Pick Up Date",value:"[Customer Pick Up Date]",description:"The pick up date of the customer specified on the booking info tab.",testValue:"02/10/2026"},JobReminderSummary:{label:"Job Reminder Summary",value:"[Job Reminder Summary]",description:"A one-line summary of the job type and relevant timing for reminder emails.",testValue:"Your bike collection is scheduled for 26/09/2026 between 12:00 - 14:00."}}}};var t2=l(90944);
1function t4(e){let{inputRef:t,value:l,onChange:n,sx:a={}}=e,{t:i}=(0,t2.WD)(),c=(0,h.useRef)(null),[p,m]=(0,h.useState)(!1);return(0,o.jsxs)(u.A,{sx:a,children:[(0,o.jsx)(r.A,{variant:"outlined",size:"small",color:"tertiary",endIcon:(0,o.jsx)(t0.a,{}),startIcon:(0,o.jsx)(s.f,{size:20}),ref:c,onClick:()=>m(!0),sx:{whiteSpace:"nowrap"},children:(0,o.jsx)(t2.T,{keyName:"mergeFields.insertField"})}),(0,o.jsx)(tq.A,{id:"basic-menu",anchorEl:c.current,open:p,onClose:()=>m(!1),style:{padding:0},MenuListProps:{"aria-labelledby":"basic-button"},children:(0,o.jsxs)(tK.A,{style:{padding:0},onClick:()=>m(!1),children:[(0,o.jsx)(tX.A,{sx:{px:1,py:0,color:"text.primary",fontWeight:"bold",fontSize:"16px"},children:(0,o.jsxs)(u.A,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,children:[(0,o.jsx)(t2.T,{keyName:"mergeFields.title"}),(0,o.jsx)(tQ.A,{title:i("mergeFields.tooltip"),children:(0,o.jsx)(ta.R,{size:16})})]})}),(0,o.jsx)(e8.A,{sx:{mx:1}}),Object.keys(t1.Groups).map(e=>void 0===t1.Placeholders[e]?null:(0,o.jsxs)(h.Fragment,{children:[(0,o.jsx)(tX.A,{sx:{px:1,color:"text.primary",fontWeight:"bold"},children:e}),Object.keys(t1.Placeholders[e]).map(l=>{let r=t1.Placeholders[e][l];return(0,o.jsxs)(tZ.A,{onClick:()=>(function(e){var l,o,r;let a=t.current;if(!a)return;a.focus();let i=null!=(l=a.value)?l:"",s=null!=(o=a.selectionStart)?o:i.length,d=null!=(r=a.selectionEnd)?r:s,u=i.slice(0,s);n(u+e+i.slice(d));let c=u.length+e.length;setTimeout(()=>{try{a.setSelectionRange(c,c),a.focus()}catch(e){}},0)})(r.value),children:[(0,o.jsx)(t$.A,{children:r.label}),(0,o.jsx)(tQ.A,{title:(0,o.jsxs)(d.A,{children:[(0,o.jsx)("span",{children:r.description}),(0,o.jsxs)("span",{children:["Example: ",r.testValue]})]}),children:(0,o.jsx)(ta.R,{size:16})})]},l)})]},e))]})})]})}function t6(e){let t,l,r,a,i,s,c=(0,n.c)(21),{helperText:p,label:m,placeholder:b,rows:g,InputProps:f,defaultValue:x,onChange:y}=e,[k,C]=(0,h.useState)(x),v=(0,h.useRef)(null),S="number"==typeof g&&g>1,A=S?"outlined":"standard",j=null!=k?k:null;return c[0]!==y?(t=e=>{console.log("onChange",e.target.value);let t=e.target.value;C(t),y(t)},c[0]=y,c[1]=t):t=c[1],c[2]!==f||c[3]!==p||c[4]!==S||c[5]!==m||c[6]!==b||c[7]!==g||c[8]!==A||c[9]!==j||c[10]!==t?(l=(0,o.jsx)(tJ.A,{fullWidth:!0,multiline:S,minRows:g,variant:A,label:m,inputRef:v,placeholder:b,helperText:p,InputProps:f,value:j,onChange:t}),c[2]=f,c[3]=p,c[4]=S,c[5]=m,c[6]=b,c[7]=g,c[8]=A,c[9]=j,c[10]=t,c[11]=l):l=c[11],c[12]===Symbol.for("react.memo_cache_sentinel")?(r={width:"100%",display:"flex",justifyContent:"space-between",alignItems:"flex-end"},c[12]=r):r=c[12],c[13]!==y?(a=e=>{C(e),y(e)},c[13]=y,c[14]=a):a=c[14],c[15]!==a||c[16]!==k?(i=(0,o.jsx)(u.A,{sx:r,children:(0,o.jsx)(t4,{inputRef:v,value:k,onChange:a})}),c[15]=a,c[16]=k,c[17]=i):i=c[17],c[18]!==l||c[19]!==i?(s=(0,o.jsxs)(d.A,{spacing:1,children:[l,i]}),c[18]=l,c[19]=i,c[20]=s):s=c[20],s}var t3=l(76928),t5=l(39416),t8=l(83711),t7=l(19413),t9=l(10994);let le={width:24,height:24};function lt(e){let t,l,a,i,s=(0,n.c)(11),{paletteColors:d,value:c,onChange:p}=e;s[0]!==p||s[1]!==c?(t=e=>(0,o.jsx)(r.A,{onClick:()=>p(e),sx:{...le,backgroundColor:e,border:"1px solid",borderColor:c===e?"black":"grey.200",minWidth:24,display:"inline-flex","&:hover":{backgroundColor:e,borderColor:"grey.500"}}},e),s[0]=p,s[1]=c,s[2]=t):t=s[2];let m=t;if(s[3]===Symbol.for("react.memo_cache_sentinel")?(l={display:"grid",gap:1,gridTemplateColumns:"1fr 1fr 1fr 1fr 1fr 1fr"},s[3]=l):l=s[3],s[4]!==d||s[5]!==m){let e;s[7]!==m?(e=e=>m(e),s[7]=m,s[8]=e):e=s[8],a=d.map(e),s[4]=d,s[5]=m,s[6]=a}else a=s[6];return s[9]!==a?(i=(0,o.jsx)(u.A,{width:"100%",sx:l,children:a}),s[9]=a,s[10]=i):i=s[10],i}let ll=["#E11D48","#DB2777","#C026D3","#9333EA","#7C3AED","#4F46E5","#2563EB","#0284C7","#0891B2","#0D9488","#059669","#16A34A","#65A30D","#CA8A04","#D97706","#EA580C","#DC2626","#FFFFFF","#FAFAFA","#F5F5F5","#E5E5E5","#D4D4D4","#A3A3A3","#737373","#525252","#404040","#262626","#171717","#0A0A0A","#000000"],lo={p:1,".react-colorful__pointer ":{width:16,height:16},".react-colorful__saturation":{mb:1,borderRadius:"4px"},".react-colorful__last-control":{borderRadius:"4px"},".react-colorful__hue-pointer":{width:"4px",borderRadius:"4px",height:24,cursor:"col-resize"},".react-colorful__saturation-pointer":{cursor:"all-scroll"},input:{padding:1,border:"1px solid",borderColor:"grey.300",borderRadius:"4px",width:"100%"}};function ln(e){let t,l,r,a,i=(0,n.c)(11),{value:s,onChange:c}=e;return i[0]!==c||i[1]!==s?(t=(0,o.jsx)(t9.jI,{color:s,onChange:c}),l=(0,o.jsx)(lt,{paletteColors:ll,value:s,onChange:c}),i[0]=c,i[1]=s,i[2]=t,i[3]=l):(t=i[2],l=i[3]),i[4]!==c||i[5]!==s?(r=(0,o.jsx)(u.A,{pt:1,children:(0,o.jsx)(t9.HC,{prefixed:!0,color:s,onChange:c})}),i[4]=c,i[5]=s,i[6]=r):r=i[6],i[7]!==t||i[8]!==l||i[9]!==r?(a=(0,o.jsxs)(d.A,{spacing:1,sx:lo,children:[t,l,r]}),i[7]=t,i[8]=l,i[9]=r,i[10]=a):a=i[10],a}let lr={border:"1px solid",borderColor:"cadet.400",width:32,height:32,borderRadius:"4px",bgcolor:"#FFFFFF"};function la(e){let t,l,r,a,i,s,u,c,p,m,b,g,f,x,y=(0,n.c)(32),{label:k,defaultValue:C,onChange:v,nullable:S}=e,[A,j]=(0,h.useState)(null),[_,F]=(0,h.useState)(C);y[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{j(e.currentTarget)},y[0]=t):t=y[0];let T=t;y[1]!==S||y[2]!==v||y[3]!==_?(l=()=>S&&"string"==typeof _&&0!==_.trim().length?(0,o.jsx)(t7.A,{onClick:()=>{F(null),v(null)},children:(0,o.jsx)(t5.A,{fontSize:"small",sx:{color:"grey.600"}})}):null,y[1]=S,y[2]=v,y[3]=_,y[4]=l):l=y[4];let E=l;y[5]!==_?(r=()=>_?(0,o.jsx)(t7.A,{onClick:T,sx:{...lr,bgcolor:_}}):(0,o.jsx)(t7.A,{onClick:T,sx:{...lr},children:(0,o.jsx)(t8.A,{fontSize:"small"})}),y[5]=_,y[6]=r):r=y[6];let R=r;y[7]===Symbol.for("react.memo_cache_sentinel")?(a={mb:.5,fontWeight:600},y[7]=a):a=y[7],y[8]!==k?(i=(0,o.jsx)(e4.A,{variant:"caption",sx:a,children:k}),y[8]=k,y[9]=i):i=y[9],y[10]!==R?(s=R(),y[10]=R,y[11]=s):s=y[11],y[12]!==E?(u=E(),y[12]=E,y[13]=u):u=y[13],y[14]!==s||y[15]!==u?(c=(0,o.jsxs)(d.A,{direction:"row",spacing:1,children:[s,u]}),y[14]=s,y[15]=u,y[16]=c):c=y[16];let N=!!A;y[17]===Symbol.for("react.memo_cache_sentinel")?(p=()=>j(null),m={sx:{height:"auto",padding:0}},y[17]=p,y[18]=m):(p=y[17],m=y[18]);let w=_||"";return y[19]!==v?(b=e=>{F(e),v(e)},y[19]=v,y[20]=b):b=y[20],y[21]!==w||y[22]!==b?(g=(0,o.jsx)(ln,{value:w,onChange:b}),y[21]=w,y[22]=b,y[23]=g):g=y[23],y[24]!==A||y[25]!==g||y[26]!==N?(f=(0,o.jsx)(tq.A,{anchorEl:A,open:N,onClose:p,MenuListProps:m,children:g}),y[24]=A,y[25]=g,y[26]=N,y[27]=f):f=y[27],y[28]!==f||y[29]!==i||y[30]!==c?(x=(0,o.jsxs)(d.A,{alignItems:"flex-start",children:[i,c,f]}),y[28]=f,y[29]=i,y[30]=c,y[31]=x):x=y[31],x}function li(e){let t,l=(0,n.c)(2);return l[0]!==e?(t=(0,o.jsx)(la,{...e,nullable:!1}),l[0]=e,l[1]=t):t=l[1],t}function ls(e){let t,l=(0,n.c)(2);return l[0]!==e?(t=(0,o.jsx)(la,{...e,nullable:!0}),l[0]=e,l[1]=t):t=l[1],t}let ld=[{key:"MODERN_SANS",label:"Modern sans",value:'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}].map(e=>(0,o.jsx)(tZ.A,{value:e.key,sx:{fontFamily:e.value},children:e.label},e.key));function lu(e){let t,l,r,a=(0,n.c)(7),{label:i,onChange:s,defaultValue:d}=e,[u,c]=(0,h.useState)(null!=d?d:"inherit");return a[0]!==s?(t=e=>{let t=e.target.value;c(t),s(null===t?null:t)},a[0]=s,a[1]=t):t=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(tZ.A,{value:"inherit",children:"Match email settings"}),a[2]=l):l=a[2],a[3]!==i||a[4]!==t||a[5]!==u?(r=(0,o.jsxs)(tJ.A,{select:!0,variant:"standard",label:i,value:u,onChange:t,children:[l,ld]}),a[3]=i,a[4]=t,a[5]=u,a[6]=r):r=a[6],r}var lc=l(89770);function lp(e){let t,l,r,a,i,s,u=(0,n.c)(12),{label:c,defaultValue:p,onChange:m}=e,[b,g]=(0,h.useState)(void 0===p?14:p);u[0]!==m?(t=e=>{g(e),m(e)},u[0]=m,u[1]=t):t=u[1];let f=t;return u[2]===Symbol.for("react.memo_cache_sentinel")?(l={fontWeight:600},u[2]=l):l=u[2],u[3]!==c?(r=(0,o.jsx)(e4.A,{variant:"caption",sx:l,children:c}),u[3]=c,u[4]=r):r=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(lc.A,{sx:{fontSize:16}}),u[5]=a):a=u[5],u[6]!==f||u[7]!==b?(i=(0,o.jsx)(tO,{iconLabel:a,value:b,setValue:f,units:"px",step:1,min:10,max:48}),u[6]=f,u[7]=b,u[8]=i):i=u[8],u[9]!==r||u[10]!==i?(s=(0,o.jsxs)(d.A,{spacing:1,alignItems:"flex-start",children:[r,i]}),u[9]=r,u[10]=i,u[11]=s):s=u[11],s}function lm(e){let t,l,r,a,i=(0,n.c)(8),{label:s,defaultValue:d,onChange:u}=e,[c,p]=(0,h.useState)(d);return i[0]!==u?(t=e=>{p(e),u(e)},i[0]=u,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(tz.A,{value:"normal",children:"Regular"}),r=(0,o.jsx)(tz.A,{value:"bold",children:"Bold"}),i[2]=l,i[3]=r):(l=i[2],r=i[3]),i[4]!==s||i[5]!==t||i[6]!==c?(a=(0,o.jsxs)(tU,{label:s,defaultValue:c,onChange:t,children:[l,r]}),i[4]=s,i[5]=t,i[6]=c,i[7]=a):a=i[7],a}var lb=l(63278),lg=l(39824),lh=l(32464),lf=l(32013);
1function lx(e){let t,l,r,a,i,s,u,c,p,m,b,g,f,x,y,k,C=(0,n.c)(37),{label:v,defaultValue:S,onChange:A}=e;C[0]!==S?(t=()=>S||{top:0,left:0,bottom:0,right:0},C[0]=S,C[1]=t):t=C[1];let[j,_]=(0,h.useState)(t);C[2]!==A||C[3]!==j?(l=function(e,t){let l={...j,[e]:t};_(l),A(l)},C[2]=A,C[3]=j,C[4]=l):l=C[4];let F=l;return C[5]!==v?(r=(0,o.jsx)(e4.A,{variant:"caption",children:v}),C[5]=v,C[6]=r):r=C[6],C[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(lb.A,{sx:{fontSize:16}}),C[7]=a):a=C[7],C[8]!==F?(i=e=>F("top",e),C[8]=F,C[9]=i):i=C[9],C[10]!==i||C[11]!==j.top?(s=(0,o.jsx)(tO,{iconLabel:a,value:j.top,setValue:i,units:"px",step:4,min:0,max:80,marks:!0}),C[10]=i,C[11]=j.top,C[12]=s):s=C[12],C[13]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsx)(lg.A,{sx:{fontSize:16}}),C[13]=u):u=C[13],C[14]!==F?(c=e=>F("bottom",e),C[14]=F,C[15]=c):c=C[15],C[16]!==c||C[17]!==j.bottom?(p=(0,o.jsx)(tO,{iconLabel:u,value:j.bottom,setValue:c,units:"px",step:4,min:0,max:80,marks:!0}),C[16]=c,C[17]=j.bottom,C[18]=p):p=C[18],C[19]===Symbol.for("react.memo_cache_sentinel")?(m=(0,o.jsx)(lh.A,{sx:{fontSize:16}}),C[19]=m):m=C[19],C[20]!==F?(b=e=>F("left",e),C[20]=F,C[21]=b):b=C[21],C[22]!==b||C[23]!==j.left?(g=(0,o.jsx)(tO,{iconLabel:m,value:j.left,setValue:b,units:"px",step:4,min:0,max:80,marks:!0}),C[22]=b,C[23]=j.left,C[24]=g):g=C[24],C[25]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(lf.A,{sx:{fontSize:16}}),C[25]=f):f=C[25],C[26]!==F?(x=e=>F("right",e),C[26]=F,C[27]=x):x=C[27],C[28]!==x||C[29]!==j.right?(y=(0,o.jsx)(tO,{iconLabel:f,value:j.right,setValue:x,units:"px",step:4,min:0,max:80,marks:!0}),C[28]=x,C[29]=j.right,C[30]=y):y=C[30],C[31]!==g||C[32]!==y||C[33]!==r||C[34]!==s||C[35]!==p?(k=(0,o.jsxs)(d.A,{spacing:2,alignItems:"flex-start",pb:1,children:[r,s,p,g,y]}),C[31]=g,C[32]=y,C[33]=r,C[34]=s,C[35]=p,C[36]=k):k=C[36],k}var ly=l(75405),lk=l(86114),lC=l(91534);function lv(e){let t,l,r,a,i,s=(0,n.c)(9),{label:d,defaultValue:u,onChange:c}=e,[p,m]=(0,h.useState)(null!=u?u:"left");return s[0]!==c?(t=e=>{m(e),c(e)},s[0]=c,s[1]=t):t=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(tz.A,{value:"left",children:(0,o.jsx)(ly.A,{fontSize:"small"})}),s[2]=l):l=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,o.jsx)(tz.A,{value:"center",children:(0,o.jsx)(lk.A,{fontSize:"small"})}),s[3]=r):r=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(tz.A,{value:"right",children:(0,o.jsx)(lC.A,{fontSize:"small"})}),s[4]=a):a=s[4],s[5]!==d||s[6]!==t||s[7]!==p?(i=(0,o.jsxs)(tU,{label:d,defaultValue:p,onChange:t,children:[l,r,a]}),s[5]=d,s[6]=t,s[7]=p,s[8]=i):i=s[8],i}function lS(e){var t;let l,r=(0,n.c)(32),{name:a,value:i,onChange:s}=e,d=null!=(t=i[a])?t:null;r[0]!==a||r[1]!==s||r[2]!==i?(l=e=>{s({...i,[a]:e})},r[0]=a,r[1]=s,r[2]=i,r[3]=l):l=r[3];let u=l;switch(a){case"backgroundColor":{let e;return r[4]!==d||r[5]!==u?(e=(0,o.jsx)(ls,{label:"Background color",defaultValue:d,onChange:u}),r[4]=d,r[5]=u,r[6]=e):e=r[6],e}case"borderColor":{let e;return r[7]!==d||r[8]!==u?(e=(0,o.jsx)(ls,{label:"Border color",defaultValue:d,onChange:u}),r[7]=d,r[8]=u,r[9]=e):e=r[9],e}case"borderRadius":{let e,t;return r[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(t3.A,{}),r[10]=e):e=r[10],r[11]!==d||r[12]!==u?(t=(0,o.jsx)(tY,{iconLabel:e,units:"px",step:1,marks:!0,min:0,max:48,label:"Border radius",defaultValue:d,onChange:u}),r[11]=d,r[12]=u,r[13]=t):t=r[13],t}case"color":{let e;return r[14]!==d||r[15]!==u?(e=(0,o.jsx)(ls,{label:"Text color",defaultValue:d,onChange:u}),r[14]=d,r[15]=u,r[16]=e):e=r[16],e}case"fontFamily":{let e;return r[17]!==d||r[18]!==u?(e=(0,o.jsx)(lu,{label:"Font family",defaultValue:d,onChange:u}),r[17]=d,r[18]=u,r[19]=e):e=r[19],e}case"fontSize":{let e;return r[20]!==d||r[21]!==u?(e=(0,o.jsx)(lp,{label:"Font size",defaultValue:d,onChange:u}),r[20]=d,r[21]=u,r[22]=e):e=r[22],e}case"fontWeight":{let e;return r[23]!==d||r[24]!==u?(e=(0,o.jsx)(lm,{label:"Font weight",defaultValue:d,onChange:u}),r[23]=d,r[24]=u,r[25]=e):e=r[25],e}case"textAlign":{let e;return r[26]!==d||r[27]!==u?(e=(0,o.jsx)(lv,{label:"Alignment",defaultValue:d,onChange:u}),r[26]=d,r[27]=u,r[28]=e):e=r[28],e}case"padding":{let e;return r[29]!==d||r[30]!==u?(e=(0,o.jsx)(lx,{label:"Padding",defaultValue:d,onChange:u}),r[29]=d,r[30]=u,r[31]=e):e=r[31],e}}}function lA(e){let t,l,r=(0,n.c)(9),{names:a,value:i,onChange:s}=e;if(r[0]!==a||r[1]!==s||r[2]!==i){let e;r[4]!==s||r[5]!==i?(e=e=>(0,o.jsx)(lS,{name:e,value:i||{},onChange:s},e),r[4]=s,r[5]=i,r[6]=e):e=r[6],t=a.map(e),r[0]=a,r[1]=s,r[2]=i,r[3]=t}else t=r[3];return r[7]!==t?(l=(0,o.jsx)(o.Fragment,{children:t}),r[7]=t,r[8]=l):l=r[8],l}function lj(e){var t,l,r,a,i,s,d,u;let c,p,m,b,g,f,x,y,v,S,A,j,_,F,T,E,R,N=(0,n.c)(44),{data:w,setData:I}=e,[,D]=(0,h.useState)(null);N[0]!==I||N[1]!==D?(c=e=>{let t=k.safeParse(e);t.success?(I(t.data),D(null)):D(t.error)},N[0]=I,N[1]=D,N[2]=c):c=N[2];let M=c,W=null!=(i=null==(t=w.props)?void 0:t.size)?i:C.size,B=null!=(s=null==(l=w.props)?void 0:l.imageUrl)?s:C.imageUrl,P=null!=(d=null==(r=w.props)?void 0:r.alt)?d:C.alt,z=null!=(u=null==(a=w.props)?void 0:a.shape)?u:C.shape;return N[3]===Symbol.for("react.memo_cache_sentinel")?(p=(0,o.jsx)(tP.A,{sx:{color:"text.secondary"}}),N[3]=p):p=N[3],N[4]!==w||N[5]!==M?(m=e=>{M({...w,props:{...w.props,size:e}})},N[4]=w,N[5]=M,N[6]=m):m=N[6],N[7]!==W||N[8]!==m?(b=(0,o.jsx)(tY,{label:"Size",iconLabel:p,units:"px",step:3,min:32,max:256,defaultValue:W,onChange:m}),N[7]=W,N[8]=m,N[9]=b):b=N[9],N[10]!==w||N[11]!==M?(g=e=>{M({...w,props:{...w.props,shape:e}})},N[10]=w,N[11]=M,N[12]=g):g=N[12],N[13]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(tz.A,{value:"circle",children:"Circle"}),x=(0,o.jsx)(tz.A,{value:"square",children:"Square"}),y=(0,o.jsx)(tz.A,{value:"rounded",children:"Rounded"}),N[13]=f,N[14]=x,N[15]=y):(f=N[13],x=N[14],y=N[15]),N[16]!==z||N[17]!==g?(v=(0,o.jsxs)(tU,{label:"Shape",defaultValue:z,onChange:g,children:[f,x,y]}),N[16]=z,N[17]=g,N[18]=v):v=N[18],N[19]!==w||N[20]!==M?(S=e=>{M({...w,props:{...w.props,imageUrl:e}})},N[19]=w,N[20]=M,N[21]=S):S=N[21],N[22]!==B||N[23]!==S?(A=(0,o.jsx)(t6,{label:"Image URL",defaultValue:B,onChange:S}),N[22]=B,N[23]=S,N[24]=A):A=N[24],N[25]!==w||N[26]!==M?(j=e=>{M({...w,props:{...w.props,alt:e}})},N[25]=w,N[26]=M,N[27]=j):j=N[27],N[28]!==P||N[29]!==j?(_=(0,o.jsx)(t6,{label:"Alt text",defaultValue:P,onChange:j}),N[28]=P,N[29]=j,N[30]=_):_=N[30],N[31]===Symbol.for("react.memo_cache_sentinel")?(F=["textAlign","padding"],N[31]=F):F=N[31],N[32]!==w||N[33]!==M?(T=e=>M({...w,style:e}),N[32]=w,N[33]=M,N[34]=T):T=N[34],N[35]!==w.style||N[36]!==T?(E=(0,o.jsx)(lA,{names:F,value:w.style,onChange:T}),N[35]=w.style,N[36]=T,N[37]=E):E=N[37],N[38]!==A||N[39]!==_||N[40]!==E||N[41]!==b||N[42]!==v?(R=(0,o.jsxs)(tV,{title:"Avatar block",children:[b,v,A,_,E]}),N[38]=A,N[39]=_,N[40]=E,N[41]=b,N[42]=v,N[43]=R):R=N[43],R}
1function l_(e){var t,l,r,a,i,s,d,u,c,p,m,b,g,f;let x,y,k,C,v,S,A,j,T,E,R,N,w,I,D,M,W,B,P,z,V,L,H,U,G,O,Y,J,q=(0,n.c)(70),{data:K,setData:X}=e,[,Q]=(0,h.useState)(null);q[0]!==X||q[1]!==Q?(x=e=>{let t=_.safeParse(e);t.success?(X(t.data),Q(null)):Q(t.error)},q[0]=X,q[1]=Q,q[2]=x):x=q[2];let Z=x,$=null!=(u=null==(t=K.props)?void 0:t.text)?u:F.text,ee=null!=(c=null==(l=K.props)?void 0:l.url)?c:F.url,et=null!=(p=null==(r=K.props)?void 0:r.fullWidth)?p:F.fullWidth,el=null!=(m=null==(a=K.props)?void 0:a.size)?m:F.size,eo=null!=(b=null==(i=K.props)?void 0:i.buttonStyle)?b:F.buttonStyle,en=null!=(g=null==(s=K.props)?void 0:s.buttonTextColor)?g:F.buttonTextColor,er=null!=(f=null==(d=K.props)?void 0:d.buttonBackgroundColor)?f:F.buttonBackgroundColor;q[3]!==K||q[4]!==Z?(y=e=>Z({...K,props:{...K.props,text:e}}),q[3]=K,q[4]=Z,q[5]=y):y=q[5],q[6]!==y||q[7]!==$?(k=(0,o.jsx)(t6,{label:"Text",defaultValue:$,onChange:y}),q[6]=y,q[7]=$,q[8]=k):k=q[8],q[9]!==K||q[10]!==Z?(C=e=>Z({...K,props:{...K.props,url:e}}),q[9]=K,q[10]=Z,q[11]=C):C=q[11],q[12]!==C||q[13]!==ee?(v=(0,o.jsx)(t6,{label:"Url",defaultValue:ee,onChange:C}),q[12]=C,q[13]=ee,q[14]=v):v=q[14];let ea=et?"FULL_WIDTH":"AUTO";return q[15]!==K||q[16]!==Z?(S=e=>Z({...K,props:{...K.props,fullWidth:"FULL_WIDTH"===e}}),q[15]=K,q[16]=Z,q[17]=S):S=q[17],q[18]===Symbol.for("react.memo_cache_sentinel")?(A=(0,o.jsx)(tz.A,{value:"FULL_WIDTH",children:"Full"}),j=(0,o.jsx)(tz.A,{value:"AUTO",children:"Auto"}),q[18]=A,q[19]=j):(A=q[18],j=q[19]),q[20]!==ea||q[21]!==S?(T=(0,o.jsxs)(tU,{label:"Width",defaultValue:ea,onChange:S,children:[A,j]}),q[20]=ea,q[21]=S,q[22]=T):T=q[22],q[23]!==K||q[24]!==Z?(E=e=>Z({...K,props:{...K.props,size:e}}),q[23]=K,q[24]=Z,q[25]=E):E=q[25],q[26]===Symbol.for("react.memo_cache_sentinel")?(R=(0,o.jsx)(tz.A,{value:"x-small",children:"Xs"}),N=(0,o.jsx)(tz.A,{value:"small",children:"Sm"}),w=(0,o.jsx)(tz.A,{value:"medium",children:"Md"}),I=(0,o.jsx)(tz.A,{value:"large",children:"Lg"}),q[26]=R,q[27]=N,q[28]=w,q[29]=I):(R=q[26],N=q[27],w=q[28],I=q[29]),q[30]!==el||q[31]!==E?(D=(0,o.jsxs)(tU,{label:"Size",defaultValue:el,onChange:E,children:[R,N,w,I]}),q[30]=el,q[31]=E,q[32]=D):D=q[32],q[33]!==K||q[34]!==Z?(M=e=>Z({...K,props:{...K.props,buttonStyle:e}}),q[33]=K,q[34]=Z,q[35]=M):M=q[35],q[36]===Symbol.for("react.memo_cache_sentinel")?(W=(0,o.jsx)(tz.A,{value:"rectangle",children:"Rectangle"}),B=(0,o.jsx)(tz.A,{value:"rounded",children:"Rounded"}),P=(0,o.jsx)(tz.A,{value:"pill",children:"Pill"}),q[36]=W,q[37]=B,q[38]=P):(W=q[36],B=q[37],P=q[38]),q[39]!==eo||q[40]!==M?(z=(0,o.jsxs)(tU,{label:"Style",defaultValue:eo,onChange:M,children:[W,B,P]}),q[39]=eo,q[40]=M,q[41]=z):z=q[41],q[42]!==K||q[43]!==Z?(V=e=>Z({...K,props:{...K.props,buttonTextColor:e}}),q[42]=K,q[43]=Z,q[44]=V):V=q[44],q[45]!==en||q[46]!==V?(L=(0,o.jsx)(li,{label:"Text color",defaultValue:en,onChange:V}),q[45]=en,q[46]=V,q[47]=L):L=q[47],q[48]!==K||q[49]!==Z?(H=e=>Z({...K,props:{...K.props,buttonBackgroundColor:e}}),q[48]=K,q[49]=Z,q[50]=H):H=q[50],q[51]!==er||q[52]!==H?(U=(0,o.jsx)(li,{label:"Button color",defaultValue:er,onCh
1ange:H}),q[51]=er,q[52]=H,q[53]=U):U=q[53],q[54]===Symbol.for("react.memo_cache_sentinel")?(G=["backgroundColor","fontFamily","fontSize","fontWeight","textAlign","padding"],q[54]=G):G=q[54],q[55]!==K||q[56]!==Z?(O=e=>Z({...K,style:e}),q[55]=K,q[56]=Z,q[57]=O):O=q[57],q[58]!==K.style||q[59]!==O?(Y=(0,o.jsx)(lA,{names:G,value:K.style,onChange:O}),q[58]=K.style,q[59]=O,q[60]=Y):Y=q[60],q[61]!==T||q[62]!==D||q[63]!==z||q[64]!==L||q[65]!==U||q[66]!==Y||q[67]!==k||q[68]!==v?(J=(0,o.jsxs)(tV,{title:"Button block",children:[k,v,T,D,z,L,U,Y]}),q[61]=T,q[62]=D,q[63]=z,q[64]=L,q[65]=U,q[66]=Y,q[67]=k,q[68]=v,q[69]=J):J=q[69],J}var lF=l(17331),lT=l(45430),lE=l(82506),lR=l(13480);let lN=eg.shape.props.unwrap().unwrap().shape,lw=x.Ik({style:eg.shape.style,props:x.Ik({...lN,columns:x.PV([x.Ik({childrenIds:x.YO(x.Yj())}),x.Ik({childrenIds:x.YO(x.Yj())}),x.Ik({childrenIds:x.YO(x.Yj())})])}).optional().nullable()});function lI(e){let t,l,r,a=(0,n.c)(7),{label:i,defaultValue:s,onChange:d}=e;a[0]!==d?(t=e=>{let t=parseInt(e.target.value);d(isNaN(t)?null:t)},a[0]=d,a[1]=t):t=a[1];let u=t;return a[2]===Symbol.for("react.memo_cache_sentinel")?(l={endAdornment:(0,o.jsx)(e4.A,{variant:"body2",color:"text.secondary",children:"px"})},a[2]=l):l=a[2],a[3]!==s||a[4]!==u||a[5]!==i?(r=(0,o.jsx)(tJ.A,{fullWidth:!0,onChange:u,defaultValue:s,label:i,variant:"standard",placeholder:"auto",size:"small",InputProps:l}),a[3]=s,a[4]=u,a[5]=i,a[6]=r):r=a[6],r}function lD(e){let t,l,r,a,i,s,u,c,p,m,b=(0,n.c)(24),{defaultValue:g,onChange:f}=e;b[0]!==g?(t=()=>g||[null,null,null],b[0]=g,b[1]=t):t=b[1];let[x,y]=(0,h.useState)(t);b[2]!==x||b[3]!==f?(l=(e,t)=>{let l=[...x];l[e]=t,y(l),f(l)},b[2]=x,b[3]=f,b[4]=l):l=b[4];let k=l,C=null==x?void 0:x[2];b[5]!==k?(a=e=>{k(2,e)},b[5]=k,b[6]=a):a=b[6],b[7]!==C||b[8]!==a?(i=(0,o.jsx)(lI,{label:"Column 3",defaultValue:C,onChange:a}),b[7]=C,b[8]=a,b[9]=i):i=b[9],r=i;let v=null==x?void 0:x[0];b[10]!==k?(s=e=>{k(0,e)},b[10]=k,b[11]=s):s=b[11],b[12]!==v||b[13]!==s?(u=(0,o.jsx)(lI,{label:"Column 1",defaultValue:v,onChange:s}),b[12]=v,b[13]=s,b[14]=u):u=b[14];let S=null==x?void 0:x[1];return b[15]!==k?(c=e=>{k(1,e)},b[15]=k,b[16]=c):c=b[16],b[17]!==c||b[18]!==S?(p=(0,o.jsx)(lI,{label:"Column 2",defaultValue:S,onChange:c}),b[17]=c,b[18]=S,b[19]=p):p=b[19],b[20]!==r||b[21]!==p||b[22]!==u?(m=(0,o.jsxs)(d.A,{direction:"row",spacing:1,children:[u,p,r]}),b[20]=r,b[21]=p,b[22]=u,b[23]=m):m=b[23],m}function lM(e){var t,l,r,a,i,s;let d,u,c,p,m,b,g,f,x,y,k,C,v,S,A,j,_,F,T,E=(0,n.c)(46),{data:R,setData:N}=e,[,w]=(0,h.useState)(null);E[0]!==N||E[1]!==w?(d=e=>{let t=lw.safeParse(e);t.success?(N(t.data),w(null)):w(t.error)},E[0]=N,E[1]=w,E[2]=d):d=E[2];let I=d,D=(null==(t=R.props)?void 0:t.columnsCount)===2?"2":"3";E[3]!==R||E[4]!==I?(u=e=>{I({...R,props:{...R.props,columnsCount:"2"===e?2:3}})},E[3]=R,E[4]=I,E[5]=u):u=E[5],E[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsx)(tz.A,{value:"2",children:"2"}),p=(0,o.jsx)(tz.A,{value:"3",children:"3"}),E[6]=c,E[7]=p):(c=E[6],p=E[7]),E[8]!==D||E[9]!==u?(m=(0,o.jsxs)(tU,{label:"Number of columns",defaultValue:D,onChange:u,children:[c,p]}),E[8]=D,E[9]=u,E[10]=m):m=E[10];let M=null==(l=R.props)?void 0:l.fixedWidths;E[11]!==R||E[12]!==I?(b=e=>{I({...R,props:{...R.props,fixedWidths:e}})},E[11]=R,E[12]=I,E[13]=b):b=E[13],E[14]!==M||E[15]!==b?(g=(0,o.jsx)(lD,{defaultValue:M,onChange:b}),E[14]=M,E[15]=b,E[16]=g):g=E[16],E[17]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(lF.A,{sx:{color:"text.secondary"}}),E[17]=f):f=E[17];let W=null!=(i=null==(r=R.props)?void 0:r.columnsGap)?i:0;E[18]!==R||E[19]!==I?(x=e=>I({...R,props:{...R.props,columnsGap:e}}),E[18]=R,E[19]=I,E[20]=x):x=E[20],E[21]!==W||E[22]!==x?(y=(0,o.jsx)(tY,{label:"Columns gap",iconLabel:f,units:"px",step:4,marks:!0,min:0,max:80,defaultValue:W,onChange:x}),E[21]=W,E[22]=x,E[23]=y):y=E[23];let B=null!=(s=null==(a=R.props)?void 0:a.contentAlignment)?s:"middle";return E[24]!==R||E[25]!==I?(k=e=>{I({...R,props:{...R.props,contentAlignment:e}})},E[24]=R,E[25]=I,E[26]=k):k=E[26],E[27]===Symbol.for("react.memo_cache_sentinel")?(C=(0,o.jsx)(tz.A,{value:"top",children:(0,o.jsx)(lT.A,{fontSize:"small"})}),E[27]=C):C=E[27],E[28]===Symbol.for("react.memo_cache_sentinel")?(v=(0,o.jsx)(tz.A,{value:"middle",children:(0,o.jsx)(lE.A,{fontSize:"small"})}),E[28]=v):v=E[28],E[29]===Symbol.for("react.memo_cache_sentinel")?(S=(0,o.jsx)(tz.A,{value:"bottom",children:(0,o.jsx)(lR.A,{fontSize:"small"})}),E[29]=S):S=E[29],E[30]!==B||E[31]!==k?(A=(0,o.jsxs)(tU,{label:"Alignment",defaultValue:B,onChange:k,children:[C,v,S]}),E[30]=B,E[31]=k,E[32]=A):A=E[32],E[33]===Symbol.for("react.memo_cache_sentinel")?(j=["backgroundColor","padding"],E[33]=j):j=E[33],E[34]!==R||E[35]!==I?(_=e=>I({...R,style:e}),E[34]=R,E[35]=I,E[36]=_):_=E[36],E[37]!==R.style||E[38]!==_?(F=(0,o.jsx)(lA,{names:j,value:R.style,onChange:_}),E[37]=R.style,E[38]=_,E[39]=F):F=E[39],E[40]!==y||E[41]!==A||E[42]!==F||E[43]!==m||E[44]!==g?(T=(0,o.jsxs)(tV,{title:"Columns block",children:[m,g,y,A,F]}),E[40]=y,E[41]=A,E[42]=F,E[43]=m,E[44]=g,E[45]=T):T=E[45],T}let lW=x.Ik({style:ej.shape.style,props:x.Ik({childrenIds:x.YO(x.Yj()).optional().nullable()}).optional().nullable()});function lB(e){let t,l,r,a,i=(0,n.c)(10),{data:s,setData:d}=e,[,u]=(0,h.useState)(null);i[0]!==d||i[1]!==u?(t=e=>{let t=lW.safeParse(e);t.success?(d(t.data),u(null)):u(t.error)},i[0]=d,i[1]=u,i[2]=t):t=i[2];let c=t;return i[3]===Symbol.for("react.memo_cache_sentinel")?(l=["backgroundColor","borderColor","borderRadius","padding"],i[3]=l):l=i[3],i[4]!==s||i[5]!==c?(r=e=>c({...s,style:e}),i[4]=s,i[5]=c,i[6]=r):r=i[6],i[7]!==s.style||i[8]!==r?(a=(0,o.jsx)(tV,{title:"Container block",children:(0,o.jsx)(lA,{names:l,value:s.style,onChange:r})}),i[7]=s.style,i[8]=r,i[9]=a):a=i[9],a}var lP=l(87079);function lz(e){var t,l,r,a;let i,s,d,u,c,p,m,b,g,f,x=(0,n.c)(27),{data:y,setData:k}=e,[,C]=(0,h.useState)(null);x[0]!==k||x[1]!==C?(i=e=>{let t=N.safeParse(e);t.success?(k(t.data),C(null)):C(t.error)},x[0]=k,x[1]=C,x[2]=i):i=x[2];let v=i,S=null!=(r=null==(t=y.props)?void 0:t.lineColor)?r:w.lineColor,A=null!=(a=null==(l=y.props)?void 0:l.lineHeight)?a:w.lineHeight;return x[3]!==y||x[4]!==v?(s=e=>v({...y,props:{...y.props,lineColor:e}}),x[3]=y,x[4]=v,x[5]=s):s=x[5],x[6]!==S||x[7]!==s?(d=(0,o.jsx)(li,{label:"Color",defaultValue:S,onChange:s}),x[6]=S,x[7]=s,x[8]=d):d=x[8],x[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsx)(lP.A,{sx:{color:"text.secondary"}}),x[9]=u):u=x[9],x[10]!==y||x[11]!==v?(c=e=>v({...y,props:{...y.props,lineHeight:e}}),x[10]=y,x[11]=v,x[12]=c):c=x[12],x[13]!==A||x[14]!==c?(p=(0,o.jsx)(tY,{label:"Height",iconLabel:u,units:"px",step:1,min:1,max:24,defaultValue:A,onChange:c}),x[13]=A,x[14]=c,x[15]=p):p=x[15],x[16]===Symbol.for("react.memo_cache_sentinel")?(m=["backgroundColor","padding"],x[16]=m):m=x[16],x[17]!==y||x[18]!==v?(b=e=>v({...y,style:e}),x[17]=y,x[18]=v,x[19]=b):b=x[19],x[20]!==y.style||x[21]!==b?(g=(0,o.jsx)(lA,{names:m,value:y.style,onChange:b}),x[20]=y.style,x[21]=b,x[22]=g):g=x[22],x[23]!==d||x[24]!==p||x[25]!==g?(f=(0,o.jsxs)(tV,{title:"Divider block",children:[d,p,g]}),x[23]=d,x[24]=p,x[25]=g,x[26]=f):f=x[26],f}let lV=x.Yj().regex(/^#[0-9a-fA-F]{6}$/).nullable().optional(),lL=x.k5(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE"]).nullable().optional(),lH=x.Ik({backdropColor:lV,borderColor:lV,borderRadius:x.ai().optional().nullable(),canvasColor:lV,textColor:lV,fontFamily:lL,childrenIds:x.YO(x.Yj()).optional().nullable()});function lU(e){var t,l,r,a,i;
1let s,d,u,c,p,m,b,g,f,x,y,k,C,v,S=(0,n.c)(44),{data:A,setData:j}=e,[,_]=(0,h.useState)(null);S[0]!==j||S[1]!==_?(s=e=>{let t=lH.safeParse(e);t.success?(j(t.data),_(null)):_(t.error)},S[0]=j,S[1]=_,S[2]=s):s=S[2];let F=s,T=null!=(t=A.backdropColor)?t:"#F5F5F5";S[3]!==A||S[4]!==F?(d=e=>F({...A,backdropColor:e}),S[3]=A,S[4]=F,S[5]=d):d=S[5],S[6]!==T||S[7]!==d?(u=(0,o.jsx)(li,{label:"Backdrop color",defaultValue:T,onChange:d}),S[6]=T,S[7]=d,S[8]=u):u=S[8];let E=null!=(l=A.canvasColor)?l:"#FFFFFF";S[9]!==A||S[10]!==F?(c=e=>F({...A,canvasColor:e}),S[9]=A,S[10]=F,S[11]=c):c=S[11],S[12]!==E||S[13]!==c?(p=(0,o.jsx)(li,{label:"Canvas color",defaultValue:E,onChange:c}),S[12]=E,S[13]=c,S[14]=p):p=S[14];let R=null!=(r=A.borderColor)?r:null;S[15]!==A||S[16]!==F?(m=e=>F({...A,borderColor:e}),S[15]=A,S[16]=F,S[17]=m):m=S[17],S[18]!==R||S[19]!==m?(b=(0,o.jsx)(ls,{label:"Canvas border color",defaultValue:R,onChange:m}),S[18]=R,S[19]=m,S[20]=b):b=S[20],S[21]===Symbol.for("react.memo_cache_sentinel")?(g=(0,o.jsx)(t3.A,{}),S[21]=g):g=S[21];let N=null!=(a=A.borderRadius)?a:0;S[22]!==A||S[23]!==F?(f=e=>F({...A,borderRadius:e}),S[22]=A,S[23]=F,S[24]=f):f=S[24],S[25]!==N||S[26]!==f?(x=(0,o.jsx)(tY,{iconLabel:g,units:"px",step:4,marks:!0,min:0,max:48,label:"Canvas border radius",defaultValue:N,onChange:f}),S[25]=N,S[26]=f,S[27]=x):x=S[27],S[28]!==A||S[29]!==F?(y=(0,o.jsx)(lu,{label:"Font family",defaultValue:"MODERN_SANS",onChange:e=>F({...A,fontFamily:e})}),S[28]=A,S[29]=F,S[30]=y):y=S[30];let w=null!=(i=A.textColor)?i:"#262626";return S[31]!==A||S[32]!==F?(k=e=>F({...A,textColor:e}),S[31]=A,S[32]=F,S[33]=k):k=S[33],S[34]!==w||S[35]!==k?(C=(0,o.jsx)(li,{label:"Text color",defaultValue:w,onChange:k}),S[34]=w,S[35]=k,S[36]=C):C=S[36],S[37]!==b||S[38]!==x||S[39]!==y||S[40]!==C||S[41]!==u||S[42]!==p?(v=(0,o.jsxs)(tV,{title:"Global",children:[u,p,b,x,y,C]}),S[37]=b,S[38]=x,S[39]=y,S[40]=C,S[41]=u,S[42]=p,S[43]=v):v=S[43],v}function lG(e){var t,l,r,a;let i,s,d,u,c,p,m,b,g,f,x,y,k=(0,n.c)(29),{data:C,setData:v}=e,[,S]=(0,h.useState)(null);k[0]!==v||k[1]!==S?(i=e=>{let t=B.safeParse(e);t.success?(v(t.data),S(null)):S(t.error)},k[0]=v,k[1]=S,k[2]=i):i=k[2];let A=i,j=null!=(r=null==(t=C.props)?void 0:t.text)?r:P.text;k[3]!==C||k[4]!==A?(s=e=>{A({...C,props:{...C.props,text:e}})},k[3]=C,k[4]=A,k[5]=s):s=k[5],k[6]!==j||k[7]!==s?(d=(0,o.jsx)(t6,{label:"Content",rows:3,defaultValue:j,onChange:s}),k[6]=j,k[7]=s,k[8]=d):d=k[8];let _=null!=(a=null==(l=C.props)?void 0:l.level)?a:P.level;return k[9]!==C||k[10]!==A?(u=e=>{A({...C,props:{...C.props,level:e}})},k[9]=C,k[10]=A,k[11]=u):u=k[11],k[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsx)(tz.A,{value:"h1",children:"H1"}),p=(0,o.jsx)(tz.A,{value:"h2",children:"H2"}),m=(0,o.jsx)(tz.A,{value:"h3",children:"H3"}),k[12]=c,k[13]=p,k[14]=m):(c=k[12],p=k[13],m=k[14]),k[15]!==_||k[16]!==u?(b=(0,o.jsxs)(tU,{label:"Level",defaultValue:_,onChange:u,children:[c,p,m]}),k[15]=_,k[16]=u,k[17]=b):b=k[17],k[18]===Symbol.for("react.memo_cache_sentinel")?(g=["color","backgroundColor","fontFamily","fontWeight","textAlign","padding"],k[18]=g):g=k[18],k[19]!==C||k[20]!==A?(f=e=>A({...C,style:e}),k[19]=C,k[20]=A,k[21]=f):f=k[21],k[22]!==C.style||k[23]!==f?(x=(0,o.jsx)(lA,{names:g,value:C.style,onChange:f}),k[22]=C.style,k[23]=f,k[24]=x):x=k[24],k[25]!==b||k[26]!==x||k[27]!==d?(y=(0,o.jsxs)(tV,{title:"Heading block",children:[d,b,x]}),k[25]=b,k[26]=x,k[27]=d,k[28]=y):y=k[28],y}function lO(e){var t,l;let r,a,i,s,d,u,c,p=(0,n.c)(19),{data:m,setData:b}=e,[,g]=(0,h.useState)(null);p[0]!==b||p[1]!==g?(r=e=>{let t=U.safeParse(e);t.success?(b(t.data),g(null)):g(t.error)},p[0]=b,p[1]=g,p[2]=r):r=p[2];let f=r,x=null!=(l=null==(t=m.props)?void 0:t.contents)?l:"";return p[3]!==m||p[4]!==f?(a=e=>f({...m,props:{...m.props,contents:e}}),p[3]=m,p[4]=f,p[5]=a):a=p[5],p[6]!==x||p[7]!==a?(i=(0,o.jsx)(t6,{label:"Content",rows:5,defaultValue:x,onChange:a}),p[6]=x,p[7]=a,p[8]=i):i=p[8],p[9]===Symbol.for("react.memo_cache_sentinel")?(s=["color","backgroundColor","fontFamily","fontSize","textAlign","padding"],p[9]=s):s=p[9],p[10]!==m||p[11]!==f?(d=e=>f({...m,style:e}),p[10]=m,p[11]=f,p[12]=d):d=p[12],p[13]!==m.style||p[14]!==d?(u=(0,o.jsx)(lA,{names:s,value:m.style,onChange:d}),p[13]=m.style,p[14]=d,p[15]=u):u=p[15],p[16]!==i||p[17]!==u?(c=(0,o.jsxs)(tV,{title:"Html block",children:[i,u]}),p[16]=i,p[17]=u,p[18]=c):c=p[18],c}var lY=l(31254);function lJ(e){var t,l,n,a,i,s,u,c,p,m,b;let{data:g,setData:f}=e,[x,y]=(0,h.useState)(!1),[,k]=(0,h.useState)(null),C=h.useRef(null),v=h.useRef(null),S=e=>{let t=Y.safeParse(e);t.success?(f(t.data),k(null)):k(t.error)},A=(0,h.useCallback)(async e=>{var t;let l=null==(t=e.target.files)?void 0:t[0];if(!l)return;y(!0);let o=new FileReader;o.onloadend=async()=>{let e=o.result;try{let t=await fetch("https://api.bikebook.co.uk/v2/ResourceHandle/UploadImageFromDataUrlToPublicUrl",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error("Upload failed");let l=await t.json();console.log("result",l),l.url&&(S({...g,props:{...g.props,url:l.url}}),v.current&&(v.current.value=l.url))}catch(e){console.error("Error uploading image:",e)}finally{y(!1),C.current&&(C.current.value="")}},o.readAsDataURL(l)},[g]);return(0,o.jsxs)(tV,{title:"Image block",children:[(0,o.jsxs)(d.A,{spacing:1,children:[(0,o.jsx)(t6,{label:"Source URL",defaultValue:null!=(c=null==(t=g.props)?void 0:t.url)?c:"",onCh
1ange:e=>{let t=0===e.trim().length?null:e.trim();S({...g,props:{...g.props,url:t}})}},null==(l=g.props)?void 0:l.url),(0,o.jsx)("input",{type:"file",ref:C,accept:"image/*",onChange:A,style:{display:"none"},id:"image-upload"}),(0,o.jsx)("label",{htmlFor:"image-upload",children:(0,o.jsx)(r.A,{component:"span",variant:"outlined",startIcon:(0,o.jsx)(lY.A,{}),fullWidth:!0,disabled:x,children:x?"Uploading...":"Upload Image"})})]}),(0,o.jsx)(t6,{label:"Alt text",defaultValue:null!=(p=null==(n=g.props)?void 0:n.alt)?p:"",onChange:e=>S({...g,props:{...g.props,alt:e}})}),(0,o.jsx)(t6,{label:"Click through URL",defaultValue:null!=(m=null==(a=g.props)?void 0:a.linkHref)?m:"",onChange:e=>{let t=0===e.trim().length?null:e.trim();S({...g,props:{...g.props,linkHref:t}})}}),(0,o.jsxs)(d.A,{direction:"row",spacing:2,children:[(0,o.jsx)(lI,{label:"Width",defaultValue:null==(i=g.props)?void 0:i.width,onChange:e=>S({...g,props:{...g.props,width:e}})}),(0,o.jsx)(lI,{label:"Height",defaultValue:null==(s=g.props)?void 0:s.height,onChange:e=>S({...g,props:{...g.props,height:e}})})]}),(0,o.jsxs)(tU,{label:"Alignment",defaultValue:null!=(b=null==(u=g.props)?void 0:u.contentAlignment)?b:"middle",onChange:e=>S({...g,props:{...g.props,contentAlignment:e}}),children:[(0,o.jsx)(tz.A,{value:"top",children:(0,o.jsx)(lT.A,{fontSize:"small"})}),(0,o.jsx)(tz.A,{value:"middle",children:(0,o.jsx)(lE.A,{fontSize:"small"})}),(0,o.jsx)(tz.A,{value:"bottom",children:(0,o.jsx)(lR.A,{fontSize:"small"})})]}),(0,o.jsx)(lA,{names:["borderRadius","backgroundColor","textAlign","padding"],value:g.style,onChange:e=>S({...g,style:e})})]})}function lq(e){var t,l;let r,a,i,s,d=(0,n.c)(10),{data:u,setData:c}=e,[,p]=(0,h.useState)(null);d[0]!==c||d[1]!==p?(r=e=>{let t=q.safeParse(e);t.success?(c(t.data),p(null)):p(t.error)},d[0]=c,d[1]=p,d[2]=r):r=d[2];let m=r;d[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(lP.A,{sx:{color:"text.secondary"}}),d[3]=a):a=d[3];let b=null!=(l=null==(t=u.props)?void 0:t.height)?l:K.height;return d[4]!==u||d[5]!==m?(i=e=>m({...u,props:{...u.props,height:e}}),d[4]=u,d[5]=m,d[6]=i):i=d[6],d[7]!==b||d[8]!==i?(s=(0,o.jsx)(tV,{title:"Spacer block",children:(0,o.jsx)(tY,{label:"Height",iconLabel:a,units:"px",step:4,min:4,max:128,defaultValue:b,onChange:i})}),d[7]=b,d[8]=i,d[9]=s):s=d[9],s}var lK=l(37579),lX=l(40288);function lQ(e){let t,l,r,a=(0,n.c)(8),{label:i,defaultValue:s,onChange:d}=e,[u,c]=(0,h.useState)(s);return a[0]!==d?(t=(e,t)=>{c(t),d(t)},a[0]=d,a[1]=t):t=a[1],a[2]!==t||a[3]!==u?(l=(0,o.jsx)(lK.A,{checked:u,onChange:t}),a[2]=t,a[3]=u,a[4]=l):l=a[4],a[5]!==i||a[6]!==l?(r=(0,o.jsx)(lX.A,{label:i,control:l}),a[5]=i,a[6]=l,a[7]=r):r=a[7],r}function lZ(e){var t,l,r,a;let i,s,d,u,c,p,m,b,g,f=(0,n.c)(26),{data:x,setData:y}=e,[,k]=(0,h.useState)(null);f[0]!==y||f[1]!==k?(i=e=>{let t=ei.safeParse(e);t.success?(y(t.data),k(null)):k(t.error)},f[0]=y,f[1]=k,f[2]=i):i=f[2];let C=i,v=null!=(r=null==(t=x.props)?void 0:t.text)?r:"";f[3]!==x||f[4]!==C?(s=e=>C({...x,props:{...x.props,text:e}}),f[3]=x,f[4]=C,f[5]=s):s=f[5],f[6]!==v||f[7]!==s?(d=(0,o.jsx)(t6,{label:"Content",rows:5,defaultValue:v,onChange:s}),f[6]=v,f[7]=s,f[8]=d):d=f[8];let S=null!=(a=null==(l=x.props)?void 0:l.markdown)&&a;return f[9]!==x||f[10]!==C?(u=e=>C({...x,props:{...x.props,markdown:e}}),f[9]=x,f[10]=C,f[11]=u):u=f[11],f[12]!==S||f[13]!==u?(c=(0,o.jsx)(lQ,{label:"Markdown",defaultValue:S,onChange:u}),f[12]=S,f[13]=u,f[14]=c):c=f[14],f[15]===Symbol.for("react.memo_cache_sentinel")?(p=["color","backgroundColor","fontFamily","fontSize","fontWeight","textAlign","padding"],f[15]=p):p=f[15],f[16]!==x||f[17]!==C?(m=e=>C({...x,style:e}),f[16]=x,f[17]=C,f[18]=m):m=f[18],f[19]!==x.style||f[20]!==m?(b=(0,o.jsx)(lA,{names:p,value:x.style,onChange:m}),f[19]=x.style,f[20]=m,f[21]=b):b=f[21],f[22]!==b||f[23]!==d||f[24]!==c?(g=(0,o.jsxs)(tV,{title:"Text block",children:[d,c,b]}),f[22]=b,f[23]=d,f[24]=c,f[25]=g):g=f[25],g}function l$(e){var t,l,r,a,i,s;let d,u,c,p,m,b,g,f,x,y,k,C=(0,n.c)(33),{data:v,setData:S}=e,[,A]=(0,h.useState)(null);C[0]!==S||C[1]!==A?(d=e=>{let t=eL.safeParse(e);t.success?(S(t.data),A(null)):A(t.error)},C[0]=S,C[1]=A,C[2]=d):d=C[2];let j=d,_=null!=(a=null==(t=v.props)?void 0:t.text)?a:eH.text,F=null!=(i=null==(l=v.props)?void 0:l.url)?i:eH.url,T=null!=(s=null==(r=v.props)?void 0:r.textColor)?s:eH.textColor;return C[3]!==v||C[4]!==j?(u=e=>j({...v,props:{...v.props,text:e}}),C[3]=v,C[4]=j,C[5]=u):u=C[5],C[6]!==u||C[7]!==_?(c=(0,o.jsx)(t6,{label:"Text",defaultValue:_,onCh
1ange:u}),C[6]=u,C[7]=_,C[8]=c):c=C[8],C[9]!==v||C[10]!==j?(p=e=>j({...v,props:{...v.props,url:e}}),C[9]=v,C[10]=j,C[11]=p):p=C[11],C[12]!==p||C[13]!==F?(m=(0,o.jsx)(t6,{label:"URL",defaultValue:F,onChange:p}),C[12]=p,C[13]=F,C[14]=m):m=C[14],C[15]!==v||C[16]!==j?(b=e=>j({...v,props:{...v.props,textColor:e}}),C[15]=v,C[16]=j,C[17]=b):b=C[17],C[18]!==b||C[19]!==T?(g=(0,o.jsx)(li,{label:"Text color",defaultValue:T,onChange:b}),C[18]=b,C[19]=T,C[20]=g):g=C[20],C[21]===Symbol.for("react.memo_cache_sentinel")?(f=["backgroundColor","fontFamily","fontSize","fontWeight","textAlign","padding"],C[21]=f):f=C[21],C[22]!==v||C[23]!==j?(x=e=>j({...v,style:e}),C[22]=v,C[23]=j,C[24]=x):x=C[24],C[25]!==v.style||C[26]!==x?(y=(0,o.jsx)(lA,{names:f,value:v.style,onChange:x}),C[25]=v.style,C[26]=x,C[27]=y):y=C[27],C[28]!==y||C[29]!==c||C[30]!==m||C[31]!==g?(k=(0,o.jsxs)(tV,{title:"Link block",children:[c,m,g,y]}),C[28]=y,C[29]=c,C[30]=m,C[31]=g,C[32]=k):k=C[32],k}function l0(e){var t,l,r,a;let i,s,u,c,p,m,b,g,f,x,y,k,C,v,S,A=(0,n.c)(38),{data:j,setData:_}=e,[,F]=(0,h.useState)(null);A[0]!==_||A[1]!==F?(i=e=>{let t=Y.safeParse(e);t.success?(_(t.data),F(null)):F(t.error)},A[0]=_,A[1]=F,A[2]=i):i=A[2];let T=i,E=null==(t=j.props)?void 0:t.width;A[3]!==j||A[4]!==T?(s=e=>T({...j,props:{...j.props,width:e}}),A[3]=j,A[4]=T,A[5]=s):s=A[5],A[6]!==E||A[7]!==s?(u=(0,o.jsx)(lI,{label:"Width",defaultValue:E,onChange:s}),A[6]=E,A[7]=s,A[8]=u):u=A[8];let R=null==(l=j.props)?void 0:l.height;A[9]!==j||A[10]!==T?(c=e=>T({...j,props:{...j.props,height:e}}),A[9]=j,A[10]=T,A[11]=c):c=A[11],A[12]!==R||A[13]!==c?(p=(0,o.jsx)(lI,{label:"Height",defaultValue:R,onChange:c}),A[12]=R,A[13]=c,A[14]=p):p=A[14],A[15]!==u||A[16]!==p?(m=(0,o.jsxs)(d.A,{direction:"row",spacing:2,children:[u,p]}),A[15]=u,A[16]=p,A[17]=m):m=A[17];let N=null!=(a=null==(r=j.props)?void 0:r.contentAlignment)?a:"middle";return A[18]!==j||A[19]!==T?(b=e=>T({...j,props:{...j.props,contentAlignment:e}}),A[18]=j,A[19]=T,A[20]=b):b=A[20],A[21]===Symbol.for("react.memo_cache_sentinel")?(g=(0,o.jsx)(tz.A,{value:"top",children:(0,o.jsx)(lT.A,{fontSize:"small"})}),A[21]=g):g=A[21],A[22]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(tz.A,{value:"middle",children:(0,o.jsx)(lE.A,{fontSize:"small"})}),A[22]=f):f=A[22],A[23]===Symbol.for("react.memo_cache_sentinel")?(x=(0,o.jsx)(tz.A,{value:"bottom",children:(0,o.jsx)(lR.A,{fontSize:"small"})}),A[23]=x):x=A[23],A[24]!==b||A[25]!==N?(y=(0,o.jsxs)(tU,{label:"Alignment",defaultValue:N,onChange:b,children:[g,f,x]}),A[24]=b,A[25]=N,A[26]=y):y=A[26],A[27]===Symbol.for("react.memo_cache_sentinel")?(k=["borderRadius","backgroundColor","textAlign","padding"],A[27]=k):k=A[27],A[28]!==j||A[29]!==T?(C=e=>T({...j,style:e}),A[28]=j,A[29]=T,A[30]=C):C=A[30],A[31]!==j.style||A[32]!==C?(v=(0,o.jsx)(lA,{names:k,value:j.style,onChange:C}),A[31]=j.style,A[32]=C,A[33]=v):v=A[33],A[34]!==y||A[35]!==v||A[36]!==m?(S=(0,o.jsxs)(tV,{title:"Business Logo block",children:[m,y,v]}),A[34]=y,A[35]=v,A[36]=m,A[37]=S):S=A[37],S}function l1(e){var t,l,r,a,i;let s,u,c,p,m,b,g,f,x=(0,n.c)(23),{data:y,setData:k}=e,[,C]=(0,h.useState)(null);x[0]!==k||x[1]!==C?(s=e=>{let t=eO.safeParse(e);t.success?(k(t.data),C(null)):C(t.error)},x[0]=k,x[1]=C,x[2]=s):s=x[2];let v=s,S=null!=(l=null==(t=y.props)?void 0:t.showUnsubscribe)&&l;return x[3]!==y||x[4]!==v?(u=e=>v({...y,props:{...y.props,showUnsubscribe:e}}),x[3]=y,x[4]=v,x[5]=u):u=x[5],x[6]!==S||x[7]!==u?(c=(0,o.jsx)(lQ,{label:"Show Unsubscribe Link",defaultValue:S,onChange:u}),x[6]=S,x[7]=u,x[8]=c):c=x[8],x[9]!==y||x[10]!==v?(p=(null==(r=y.props)?void 0:r.showUnsubscribe)&&(0,o.jsx)(t6,{label:"Unsubscribe URL",defaultValue:null!=(i=null==(a=y.props)?void 0:a.unsubscribeUrl)?i:"https://bikebook.co.uk/unsubscribe",onChange:e=>{let t=0===e.trim().length?null:e.trim();v({...y,props:{...y.props,unsubscribeUrl:t}})},helperText:"URL where users can unsubscribe (e.g., https://bikebook.co.uk/unsubscribe)"}),x[9]=y,x[10]=v,x[11]=p):p=x[11],x[12]===Symbol.for("react.memo_cache_sentinel")?(m=["backgroundColor","padding"],x[12]=m):m=x[12],x[13]!==y||x[14]!==v?(b=e=>v({...y,style:e}),x[13]=y,x[14]=v,x[15]=b):b=x[15],x[16]!==y.style||x[17]!==b?(g=(0,o.jsx)(lA,{names:m,value:y.style,onChange:b}),x[16]=y.style,x[17]=b,x[18]=g):g=x[18],x[19]!==c||x[20]!==p||x[21]!==g?(f=(0,o.jsx)(tV,{title:"Workshop Footer block",children:(0,o.jsxs)(d.A,{spacing:2,children:[c,p,g]})}),x[19]=c,x[20]=p,x[21]=g,x[22]=f):f=x[22],f}function l2(e){return(0,o.jsx)(u.A,{sx:{m:3,p:1,border:"1px dashed",borderColor:"divider"},children:(0,o.jsx)(e4.A,{color:"text.secondary",children:e})})}function l4(){let e,t=(0,n.c)(108),l=tT(),r=tE(),a=tD();if(!r){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l2("Click on a block to inspect."),t[0]=e):e=t[0],e}let i=l[r];
1if(!i){let e,l="Block with id ".concat(r," was not found. Click on a block to reset.");return t[1]!==l?(e=l2(l),t[1]=l,t[2]=e):e=t[2],e}t[3]!==r||t[4]!==a?(e=e=>a({[r]:e}),t[3]=r,t[4]=a,t[5]=e):e=t[5];let s=e,{data:d,type:u}=i;switch(u){case"Avatar":{let e,l;return t[6]!==s||t[7]!==u?(e=e=>s({type:u,data:e}),t[6]=s,t[7]=u,t[8]=e):e=t[8],t[9]!==d||t[10]!==r||t[11]!==e?(l=(0,o.jsx)(lj,{data:d,setData:e},r),t[9]=d,t[10]=r,t[11]=e,t[12]=l):l=t[12],l}case"Button":{let e,l;return t[13]!==s||t[14]!==u?(e=e=>s({type:u,data:e}),t[13]=s,t[14]=u,t[15]=e):e=t[15],t[16]!==d||t[17]!==r||t[18]!==e?(l=(0,o.jsx)(l_,{data:d,setData:e},r),t[16]=d,t[17]=r,t[18]=e,t[19]=l):l=t[19],l}case"ColumnsContainer":{let e,l;return t[20]!==s||t[21]!==u?(e=e=>s({type:u,data:e}),t[20]=s,t[21]=u,t[22]=e):e=t[22],t[23]!==d||t[24]!==r||t[25]!==e?(l=(0,o.jsx)(lM,{data:d,setData:e},r),t[23]=d,t[24]=r,t[25]=e,t[26]=l):l=t[26],l}case"Container":{let e,l;return t[27]!==s||t[28]!==u?(e=e=>s({type:u,data:e}),t[27]=s,t[28]=u,t[29]=e):e=t[29],t[30]!==d||t[31]!==r||t[32]!==e?(l=(0,o.jsx)(lB,{data:d,setData:e},r),t[30]=d,t[31]=r,t[32]=e,t[33]=l):l=t[33],l}case"Divider":{let e,l;return t[34]!==s||t[35]!==u?(e=e=>s({type:u,data:e}),t[34]=s,t[35]=u,t[36]=e):e=t[36],t[37]!==d||t[38]!==r||t[39]!==e?(l=(0,o.jsx)(lz,{data:d,setData:e},r),t[37]=d,t[38]=r,t[39]=e,t[40]=l):l=t[40],l}case"Heading":{let e,l;return t[41]!==s||t[42]!==u?(e=e=>s({type:u,data:e}),t[41]=s,t[42]=u,t[43]=e):e=t[43],t[44]!==d||t[45]!==r||t[46]!==e?(l=(0,o.jsx)(lG,{data:d,setData:e},r),t[44]=d,t[45]=r,t[46]=e,t[47]=l):l=t[47],l}case"Html":{let e,l;return t[48]!==s||t[49]!==u?(e=e=>s({type:u,data:e}),t[48]=s,t[49]=u,t[50]=e):e=t[50],t[51]!==d||t[52]!==r||t[53]!==e?(l=(0,o.jsx)(lO,{data:d,setData:e},r),t[51]=d,t[52]=r,t[53]=e,t[54]=l):l=t[54],l}case"Image":{let e,l;return t[55]!==s||t[56]!==u?(e=e=>s({type:u,data:e}),t[55]=s,t[56]=u,t[57]=e):e=t[57],t[58]!==d||t[59]!==r||t[60]!==e?(l=(0,o.jsx)(lJ,{data:d,setData:e},r),t[58]=d,t[59]=r,t[60]=e,t[61]=l):l=t[61],l}case"EmailLayout":{let e,l;return t[62]!==s||t[63]!==u?(e=e=>s({type:u,data:e}),t[62]=s,t[63]=u,t[64]=e):e=t[64],t[65]!==d||t[66]!==r||t[67]!==e?(l=(0,o.jsx)(lU,{data:d,setData:e},r),t[65]=d,t[66]=r,t[67]=e,t[68]=l):l=t[68],l}case"Spacer":{let e,l;return t[69]!==s||t[70]!==u?(e=e=>s({type:u,data:e}),t[69]=s,t[70]=u,t[71]=e):e=t[71],t[72]!==d||t[73]!==r||t[74]!==e?(l=(0,o.jsx)(lq,{data:d,setData:e},r),t[72]=d,t[73]=r,t[74]=e,t[75]=l):l=t[75],l}case"Text":{let e,l;return t[76]!==s||t[77]!==u?(e=e=>s({type:u,data:e}),t[76]=s,t[77]=u,t[78]=e):e=t[78],t[79]!==d||t[80]!==r||t[81]!==e?(l=(0,o.jsx)(lZ,{data:d,setData:e},r),t[79]=d,t[80]=r,t[81]=e,t[82]=l):l=t[82],l}case"Link":{let e,l;return t[83]!==s||t[84]!==u?(e=e=>s({type:u,data:e}),t[83]=s,t[84]=u,t[85]=e):e=t[85],t[86]!==d||t[87]!==r||t[88]!==e?(l=(0,o.jsx)(l$,{data:d,setData:e},r),t[86]=d,t[87]=r,t[88]=e,t[89]=l):l=t[89],l}case"BusinessLogo":{let e,l;return t[90]!==s||t[91]!==u?(e=e=>s({type:u,data:e}),t[90]=s,t[91]=u,t[92]=e):e=t[92],t[93]!==d||t[94]!==r||t[95]!==e?(l=(0,o.jsx)(l0,{data:d,setData:e},r),t[93]=d,t[94]=r,t[95]=e,t[96]=l):l=t[96],l}case"WorkshopFooter":{let e,l;return t[97]!==s||t[98]!==u?(e=e=>s({type:u,data:e}),t[97]=s,t[98]=u,t[99]=e):e=t[99],t[100]!==d||t[101]!==r||t[102]!==e?(l=(0,o.jsx)(l1,{data:d,setData:e},r),t[100]=d,t[101]=r,t[102]=e,t[103]=l):l=t[103],l}default:{let e,l;return t[104]!==i?(e=JSON.stringify(i,null,"  "),t[104]=i,t[105]=e):e=t[105],t[106]!==e?(l=(0,o.jsx)("pre",{children:e}),t[106]=e,t[107]=l):l=t[107],l}}}function l6(){let e,t,l=(0,n.c)(7),r=tT().root,a=tD();if(!r){let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("p",{children:"Block not found"}),l[0]=e):e=l[0],e}let{data:i,type:s}=r;if("EmailLayout"!==s)throw Error('Expected "root" element to be of type EmailLayout');return l[1]!==a||l[2]!==s?(e=e=>a({root:{type:s,data:e}}
1),l[1]=a,l[2]=s,l[3]=e):e=l[3],l[4]!==i||l[5]!==e?(t=(0,o.jsx)(lU,{data:i,setData:e},"root"),l[4]=i,l[5]=e,l[6]=t):t=l[6],t}function l3(){let e,t,l,r,a,i,s,d,c,p,m,b,g=(0,n.c)(23),h=tF().state.selectedSidebarTab,f=tN(),x=tF().setSidebarTab;g[0]!==h?(e=()=>{switch(h){case"block-configuration":return(0,o.jsx)(l4,{});case"styles":return(0,o.jsx)(l6,{})}},g[0]=h,g[1]=e):e=g[1];let y=e,k=320*!!f;return g[2]===Symbol.for("react.memo_cache_sentinel")?(t={marginTop:"80px"},g[2]=t):t=g[2],g[3]!==k?(l={width:k,"& .MuiDrawer-paper":t},g[3]=k,g[4]=l):l=g[4],g[5]===Symbol.for("react.memo_cache_sentinel")?(r={width:320,height:49,borderBottom:1,borderTop:1,borderColor:"divider"},g[5]=r):r=g[5],g[6]!==x?(a=(e,t)=>x(t),g[6]=x,g[7]=a):a=g[7],g[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(tM.A,{value:"styles",label:"Styles",disableRipple:!0}),s=(0,o.jsx)(tM.A,{value:"block-configuration",label:"Inspect",disableRipple:!0}),g[8]=i,g[9]=s):(i=g[8],s=g[9]),g[10]!==h||g[11]!==a?(d=(0,o.jsx)(u.A,{sx:r,children:(0,o.jsx)(u.A,{px:2,children:(0,o.jsxs)(tW.A,{value:h,onChange:a,children:[i,s]})})}),g[10]=h,g[11]=a,g[12]=d):d=g[12],g[13]===Symbol.for("react.memo_cache_sentinel")?(c={width:320,height:"calc(100% - 129px)",overflow:"auto"},g[13]=c):c=g[13],g[14]!==y?(p=y(),g[14]=y,g[15]=p):p=g[15],g[16]!==p?(m=(0,o.jsx)(u.A,{sx:c,children:p}),g[16]=p,g[17]=m):m=g[17],g[18]!==f||g[19]!==m||g[20]!==l||g[21]!==d?(b=(0,o.jsxs)(tB.Ay,{variant:"persistent",anchor:"right",open:f,sx:l,children:[d,m]}),g[18]=f,g[19]=m,g[20]=l,g[21]=d,g[22]=b):b=g[22],b}let l5={p:1.5,display:"flex",flexDirection:"column"},l8={mb:.75,width:"100%",bgcolor:"cadet.200",borderRadius:.5,display:"flex",justifyContent:"center",p:1,border:"1px solid",borderColor:"cadet.300"};function l7(e){let t,l,a,i,s,d=(0,n.c)(11),{label:c,icon:p,onClick:m}=e;return d[0]!==m?(t=e=>{e.stopPropagation(),m()},d[0]=m,d[1]=t):t=d[1],d[2]!==p?(l=(0,o.jsx)(u.A,{sx:l8,children:p}),d[2]=p,d[3]=l):l=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(a={fontSize:"12px",fontWeight:600},d[4]=a):a=d[4],d[5]!==c?(i=(0,o.jsx)(e4.A,{variant:"body2",sx:a,children:c}),d[5]=c,d[6]=i):i=d[6],d[7]!==t||d[8]!==l||d[9]!==i?(s=(0,o.jsxs)(r.A,{sx:l5,onClick:t,children:[l,i]}),d[7]=t,d[8]=l,d[9]=i,d[10]=s):s=d[10],s}var l9=l(47270),oe=l(78473),ot=l(50113),ol=l(85149),oo=l(68265),on=l(17435),or=l(97242),oa=l(38051),oi=l(64417),os=l(85767),od=l(85226),ou=l(85635),oc=l(53788);let op=[{label:"Heading",icon:(0,o.jsx)(l9.A,{}),block:()=>({type:"Heading",data:{props:{text:"Hello friend"},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Text",icon:(0,o.jsx)(oe.A,{}),block:()=>({type:"Text",data:{props:{text:"My new text block"},style:{padding:{top:16,bottom:16,left:24,right:24},fontWeight:"normal",fontSize:14}}})},{label:"Button",icon:(0,o.jsx)(ot.A,{}),block:()=>({type:"Button",data:{props:{text:"Button"},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Link",icon:(0,o.jsx)(ol.A,{}),block:()=>({type:"Link",data:{props:{text:"Click here",url:"",textColor:"#0068A5"},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Image",icon:(0,o.jsx)(oo.A,{}),block:()=>({type:"Image",data:{props:{alt:"Sample product",contentAlignment:"middle",linkHref:null},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Avatar",icon:(0,o.jsx)(on.A,{}),block:()=>({type:"Avatar",data:{props:{imageUrl:"https://ui-avatars.com/api/?size=128",shape:"circle"},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Divider",icon:(0,o.jsx)(or.A,{}),block:()=>({type:"Divider",data:{style:{padding:{top:16,right:24,bottom:16,left:24}},props:{lineColor:"#CCCCCC"}}})},{label:"Spacer",icon:(0,o.jsx)(oa.A,{}),block:()=>({type:"Spacer",data:{}})},{label:"Html",icon:(0,o.jsx)(oi.A,{}),block:()=>({type:"Html",data:{props:{contents:"<strong>Hello world</strong>"},style:{fontSize:16,textAlign:null,padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Columns",icon:(0,o.jsx)(os.A,{}),block:()=>({type:"ColumnsContainer",data:{props:{columnsGap:16,columnsCount:3,columns:[{childrenIds:[]},{childrenIds:[]},{childrenIds:[]}]},style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Container",icon:(0,o.jsx)(od.A,{}),block:()=>({type:"Container",data:{style:{padding:{top:16,bottom:16,left:24,right:24}}}})},{label:"Business Logo",icon:(0,o.jsx)(ou.C,{size:24}),section:"Workshop",block:()=>({type:"BusinessLogo",data:{props:{height:96,width:96,contentAlignment:"middle",showUnsubscribe:!1,unsubscribeUrl:"https://bikebook.co.uk/unsubscribe"},style:{padding:{top:0,bottom:0,left:0,right:0},textAlign:"center",borderRadius:8}}})},{label:"Workshop Footer",icon:(0,o.jsx)(oc.q,{size:24}),section:"Workshop",block:()=>({type:"WorkshopFooter",data:{style:{padding:{top:16,bottom:16,left:24,right:24}}}})}];var om=l(36826);function ob(e){let{anchorEl:t,setAnchorEl:l,onSelect:n}=e;if(null===t)return null;var r=(0,om.A)(op,"section");return(0,o.jsx)(tq.A,{open:!0,anchorEl:t,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,o.jsx)(d.A,{spacing:1,sx:{p:1},children:Object.keys(r).map(e=>(0,o.jsxs)(o.Fragment,{children:["Workshop"===e&&(0,o.jsx)(e8.A,{}),(0,o.jsx)(u.A,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr 1fr"}
1,children:r[e].map((e,t)=>(0,o.jsx)(l7,{label:e.label,icon:e.icon,onClick:()=>{var t;console.log(t=e.block()),n(t),l(null)}},t))},e)]}))})})}var og=l(95344),oh=l(45018);function of(e){let t,l,r,a,i,d,u,c=(0,n.c)(12),{buttonElement:p,onClick:m}=e,[b,g]=(0,h.useState)(!1);return c[0]!==p?(t=()=>{let e=function(e){let{clientX:t,clientY:l}=e;if(!p)return;let o=p.getBoundingClientRect(),n=o.y,r=o.x,a=r+o.width;if(20>Math.abs(l-n)&&r<t&&t<a)return void g(!0);g(!1)};return window.addEventListener("mousemove",e),()=>{window.removeEventListener("mousemove",e)}},l=[p,g],c[0]=p,c[1]=t,c[2]=l):(t=c[1],l=c[2]),(0,h.useEffect)(t,l),c[3]===Symbol.for("react.memo_cache_sentinel")?(r={p:.12,position:"absolute",top:"-12px",left:"50%",transform:"translateX(-10px)",color:"tertiary.main",bgcolor:"white",background:"white",zIndex:"fab","&:hover, &:active, &:focus":{color:"tertiary.main",bgcolor:"white",background:"white"}},c[3]=r):r=c[3],c[4]!==m?(a=e=>{e.stopPropagation(),m()},c[4]=m,c[5]=a):a=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(s.f,{size:24,weight:"fill"}),c[6]=i):i=c[6],c[7]!==a?(d=(0,o.jsx)(og.A,{size:"small",sx:r,onClick:a,children:i}),c[7]=a,c[8]=d):d=c[8],c[9]!==d||c[10]!==b?(u=(0,o.jsx)(oh.A,{in:b,children:d}),c[9]=d,c[10]=b,c[11]=u):u=c[11],u}function ox(e){let t,l,r,a,i=(0,n.c)(6),{onClick:s}=e;return i[0]!==s?(t=e=>{e.stopPropagation(),s()},i[0]=s,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",alignContent:"center",justifyContent:"center",height:48,width:"100%",bgcolor:"rgba(0,0,0, 0.05)"},i[2]=l):l=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,o.jsx)(t8.A,{sx:{p:.12,bgcolor:"brand.blue",borderRadius:24,color:"primary.contrastText"},fontSize:"small"}),i[3]=r):r=i[3],i[4]!==t?(a=(0,o.jsx)(t7.A,{onClick:t,sx:l,children:r}),i[4]=t,i[5]=a):a=i[5],a}function oy(e){let t,l,r,a,i,s,d=(0,n.c)(15),{onSelect:u,placeholder:c}=e,[p,m]=(0,h.useState)(null),[b,g]=(0,h.useState)(null);d[0]!==b?(t=()=>{m(b)},d[0]=b,d[1]=t):t=d[1];let f=t;d[2]!==b||d[3]!==f||d[4]!==c?(l=()=>c?(0,o.jsx)(ox,{onClick:f}):(0,o.jsx)(of,{buttonElement:b,onClick:f}),d[2]=b,d[3]=f,d[4]=c,d[5]=l):l=d[5];let x=l;return d[6]===Symbol.for("react.memo_cache_sentinel")?(r={position:"relative"},d[6]=r):r=d[6],d[7]!==x?(a=(0,o.jsx)("div",{ref:g,style:r,children:x()}),d[7]=x,d[8]=a):a=d[8],d[9]!==p||d[10]!==u?(i=(0,o.jsx)(ob,{anchorEl:p,setAnchorEl:m,onSelect:u}),d[9]=p,d[10]=u,d[11]=i):i=d[11],d[12]!==a||d[13]!==i?(s=(0,o.jsxs)(o.Fragment,{children:[a,i]}),d[12]=a,d[13]=i,d[14]=s):s=d[14],s}function ok(){return"block-".concat(Date.now())}function oC(e){let t,l,r,a,i,s=(0,n.c)(18),{childrenIds:d,onChange:u}=e;s[0]!==d||s[1]!==u?(t=e=>{let t=ok();return u({blockId:t,block:e,childrenIds:[...d||[],t]})},s[0]=d,s[1]=u,s[2]=t):t=s[2];let c=t;s[3]!==d||s[4]!==u?(l=(e,t)=>{let l=ok(),o=[...d||[]];return o.splice(t,0,l),u({blockId:l,block:e,childrenIds:o})},s[3]=d,s[4]=u,s[5]=l):l=s[5];let p=l;if(!d||0===d.length){let e;return s[6]!==c?(e=(0,o.jsx)(oy,{placeholder:!0,onSelect:c}),s[6]=c,s[7]=e):e=s[7],e}if(s[8]!==d||s[9]!==p){let e;s[11]!==p?(e=(e,t)=>(0,o.jsxs)(h.Fragment,{children:[(0,o.jsx)(oy,{onSelect:e=>p(e,t)}),(0,o.jsx)(oV,{id:e})]},e),s[11]=p,s[12]=e):e=s[12],r=d.map(e),s[8]=d,s[9]=p,s[10]=r}else r=s[10];return s[13]!==c?(a=(0,o.jsx)(oy,{onSelect:c}),s[13]=c,s[14]=a):a=s[14],s[15]!==r||s[16]!==a?(i=(0,o.jsxs)(o.Fragment,{children:[r,a]}),s[15]=r,s[16]=a,s[17]=i):i=s[17],i}let ov=[{childrenIds:[]},{childrenIds:[]},{childrenIds:[]}];function oS(e){var t,l,r;let a,i,s,d,u,c,p,m,b,g,h,f,x=(0,n.c)(35),{style:y,props:k}=e,C=oz(),v=tD();tE();let S=tw();x[0]!==k?(a=null!=k?k:{},x[0]=k,x[1]=a):a=x[1],x[2]!==a?({columns:i,...s}=a,x[2]=a,x[3]=i,x[4]=s):(i=x[3],s=x[4]);let A=null!=i?i:ov;x[5]!==A||x[6]!==C||x[7]!==s||x[8]!==v||x[9]!==S||x[10]!==y?(d=(e,t)=>{let{block:l,blockId:o,childrenIds:n}=t,r=[...A];r[e]={childrenIds:n},v({[o]:l,[C]:{type:"ColumnsContainer",data:lw.parse({style:y,props:{...s,columns:r}})}}),S(o)},x[5]=A,x[6]=C,x[7]=s,x[8]=v,x[9]=S,x[10]=y,x[11]=d):d=x[11];let j=d,_=null==i||null==(t=i[0])?void 0:t.childrenIds;x[12]!==j?(u=e=>j(0,e),x[12]=j,x[13]=u):u=x[13],x[14]!==_||x[15]!==u?(c=(0,o.jsx)(oC,{childrenIds:_,onChange:u}),x[14]=_,x[15]=u,x[16]=c):c=x[16];let F=null==i||null==(l=i[1])?void 0:l.childrenIds;x[17]!==j?(p=e=>j(1,e),x[17]=j,x[18]=p):p=x[18],x[19]!==F||x[20]!==p?(m=(0,o.jsx)(oC,{childrenIds:F,onChange:p}),x[19]=F,x[20]=p,x[21]=m):m=x[21];let T=null==i||null==(r=i[2])?void 0:r.childrenIds;return x[22]!==j?(b=e=>j(2,e),x[22]=j,x[23]=b):b=x[23],x[24]!==b||x[25]!==T?(g=(0,o.jsx)(oC,{childrenIds:T,onChange:b}),x[24]=b,x[25]=T,x[26]=g):g=x[26],x[27]!==g||x[28]!==c||x[29]!==m?(h=[c,m,g],x[27]=g,x[28]=c,x[29]=m,x[30]=h):h=x[30],x[31]!==s||x[32]!==y||x[33]!==h?(f=(0,o.jsx)(ef,{props:s,style:y,columns:h}),x[31]=s,x[32]=y,x[33]=h,x[34]=f):f=x[34],f}function oA(e){let t,l,r,a,i=(0,n.c)(13),{style:s,props:d}=e;if(i[0]!==(null==d?void 0:d.childrenIds)){var u;t=null!=(u=null==d?void 0:d.childrenIds)?u:[],i[0]=null==d?void 0:d.childrenIds,i[1]=t}else t=i[1];let c=t,p=tT(),m=oz(),b=tD();tE();let g=tw();return i[2]!==m||i[3]!==p||i[4]!==b||i[5]!==g?(l=e=>{let{block:t,blockId:l,childrenIds:o}=e;b({[l]:t,[m]:{type:"Container",data:{...p[m].data,props:{childrenIds:o}}}}),g(l)},i[2]=m,i[3]=p,i[4]=b,i[5]=g,i[6]=l):l=i[6],i[7]!==c||i[8]!==l?(r=(0,o.jsx)(oC,{childrenIds:c,onChange:l}),i[7]=c,i[8]=l,i[9]=r):r=i[9],i[10]!==s||i[11]!==r?(a=(0,o.jsx)(e_,{style:s,children:r}),i[10]=s,i[11]=r,i[12]=a):a=i[12],a}function oj(e){var t,l,r,a,i;let s,d,u,c,p,m,b,g,h,f,x,y=(0,n.c)(30);y[0]!==e.childrenIds?(s=null!=(t=e.childrenIds)?t:[],y[0]=e.childrenIds,y[1]=s):s=y[1];let k=s,C=tT(),v=oz(),S=tD();tE();let A=tw();y[2]!==A?(d=()=>{A(null)},y[2]=A,y[3]=d):d=y[3];let j=null!=(l=e.backdropColor)?l:"#F5F5F5",_=null!=(r=e.textColor)?r:"#262626";y[4]!==e.fontFamily?(u=function(e){switch(null!=e?e:"MODERN_SANS"){case"MODERN_SANS":return'"Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'}}(e.fontFamily),y[4]=e.fontFamily,y[5]=u):u=y[5],y[6]!==j||y[7]!==_||y[8]!==u?(c={backgroundColor:j,color:_,fontFamily:u,fontSize:"16px",fontWeight:"400",letterSpacing:"0.15008px",lineHeight:"1.5",margin:"0",padding:"32px 0",width:"100%",minHeight:"100%"},y[6]=j,y[7]=_,y[8]=u,y[9]=c):c=y[9];let F=null!=(a=e.canvasColor)?a:"#FFFFFF",T=null!=(i=e.borderRadius)?i:void 0;e:{let t=e.borderColor;if(!t){p=void 0;break e}p="1px solid ".concat(t)}return y[10]!==F||y[11]!==T||y[12]!==p?(m={margin:"0 auto",maxWidth:"600px",backgroundColor:F,borderRadius:T,border:p},y[10]=F,y[11]=T,y[12]=p,y[13]=m):m=y[13],y[14]===Symbol.for("react.memo_cache_sentinel")?(b={width:"100%"},y[14]=b):b=y[14],y[15]!==v||y[16]!==C||y[17]!==S||y[18]!==A?(g=e=>{let{block:t,blockId:l,childrenIds:o}=e;S({[l]:t,[v]:{type:"EmailLayout",data:{...C[v].data,childrenIds:o}}}),A(l)},y[15]=v,y[16]=C,y[17]=S,y[18]=A,y[19]=g):g=y[19],y[20]!==k||y[21]!==g?(h=(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{style:b,children:(0,o.jsx)("td",{children:(0,o.jsx)(oC,{childrenIds:k,onChange:g})})})}),y[20]=k,y[21]=g,y[22]=h):h=y[22],y[23]!==h||y[24]!==m?(f=(0,o.jsx)("table",{align:"center",width:"100%",style:m,role:"presentation",cellSpacing:"0",cellPadding:"0",border:0,children:h}),y[23]=h,y[24]=m,y[25]=f):f=y[25],y[26]!==d||y[27]!==f||y[28]!==c?(x=(0,o.jsx)("div",{onClick:d,style:c,children:f}),y[26]=d,y[27]=f,y[28]=c,y[29]=x):x=y[29],x}var o_=l(74421),oF=l(35584),oT=l(57122),oE=l(32194),oR=l(29113);let oN={position:"absolute",top:0,left:-56,borderRadius:64,paddingX:.5,paddingY:1,zIndex:"fab"};function ow(e){let{blockId:t}=e,l=tT(),n=tI(),r=tw(),a=e=>{let o=l=>{if(!l)return l;let o=l.indexOf(t);if(o<0)return l;let n=[...l];return"up"===e&&o>0?[n[o],n[o-1]]=[n[o-1],n[o]]:"down"===e&&o<n.length-1&&([n[o],n[o+1]]=[n[o+1],n[o]]),n},a={...l};for(let[e,l]of Object.entries(a)){var i,s,d;if(e!==t)switch(l.type){case"EmailLayout":a[e]={...l,data:{...l.data,childrenIds:o(l.data.childrenIds)}};break;case"Container":a[e]={...l,data:{...l.data,props:{...l.data.props,childrenIds:o(null==(i=l.data.props)?void 0:i.childrenIds)}}};break;case"ColumnsContainer":a[e]={type:"ColumnsContainer",data:{style:l.data.style,props:{...l.data.props,columns:null==(d=l.data.props)||null==(s=d.columns)?void 0:s.map(e=>({childrenIds:o(e.childrenIds)}))}}};break;default:a[e]=l}}n(a),r(t)};return(0,o.jsx)(o_.A,{sx:oN,onClick:e=>e.stopPropagation(),children:(0,o.jsxs)(d.A,{children:[(0,o.jsx)(tQ.A,{title:"Move up",placement:"left-start",children:(0,o.jsx)(og.A,{onClick:()=>a("up"),sx:{color:"text.primary"},children:(0,o.jsx)(oF.D,{size:20})})}),(0,o.jsx)(tQ.A,{title:"Move down",placement:"left-start",children:(0,o.jsx)(og.A,{onClick:()=>a("down"),sx:{color:"text.primary"},children:(0,o.jsx)(oT.y,{size:20})})}),(0,o.jsx)(tQ.A,{title:"Duplicate",placement:"left-start",children:(0,o.jsx)(og.A,{onClick:()=>{let e={...l},o="".concat(t,"_copy_").concat(Date.now());for(let[n,r]of(e[o]={...l[t]},Object.entries(e))){var a,i,s,d,u;let l=r;if(n!==t)switch(l.type){case"EmailLayout":if(null==(a=l.data.childrenIds)?void 0:a.includes(t)){let r=l.data.childrenIds.indexOf(t);e[n]={...l,data:{...l.data,childrenIds:[...l.data.childrenIds.slice(0,r+1),o,...l.data.childrenIds.slice(r+1)]}}}break;case"Container":if(null==(s=l.data.props)||null==(i=s.childrenIds)?void 0:i.includes(t)){let r=l.data.props.childrenIds.indexOf(t);e[n]={...l,data:{...l.data,props:{...l.data.props,childrenIds:[...l.data.props.childrenIds.slice(0,r+1),o,...l.data.props.childrenIds.slice(r+1)]}}}}break;case"ColumnsContainer":null==(u=l.data.props)||null==(d=u.columns)||d.forEach((r,a)=>{var i,s;if(null==(i=r.childrenIds)?void 0:i.includes(t)){let i=r.childrenIds.indexOf(t),d=[...(null==(s=l.data.props)?void 0:s.columns)||[]];d[a]={...r,childrenIds:[...r.childrenIds.slice(0,i+1),o,...r.childrenIds.slice(i+1)]},e[n]={...l,data:{...l.data,props:{...l.data.props,columns:d}}}}})}}n(e),r(o)},sx:{color:"text.primary"},children:(0,o.jsx)(oE.Q,{size:20})})}),(0,o.jsx)(tQ.A,{title:"Delete",placement:"left-start",children:(0,o.jsx)(og.A,{onClick:()=>{let e=e=>e?e.filter(e=>e!==t):e,o={...l};for(let[l,n]of Object.entries(o)){var r,a,i;if(l!==t)switch(n.type){case"EmailLayout":o[l]={...n,data:{...n.data,childrenIds:e(n.data.childrenIds)}};break;case"Container":o[l]={...n,data:{...n.data,props:{...n.data.props,childrenIds:e(null==(r=n.data.props)?void 0:r.childrenIds)}}};break;case"ColumnsContainer":o[l]={type:"ColumnsContainer",data:{style:n.data.style,props:{...n.data.props,columns:null==(i=n.data.props)||null==(a=i.columns)?void 0:a.map(t=>({childrenIds:e(t.childrenIds)}))}}};break;default:o[l]=n}}delete o[t],n(o)},sx:{color:"text.primary"},children:(0,o.jsx)(oR.l,{size:20})})})]})})}function oI(e){let t,l,r,a,i,s,d,c,p,m,b,g=(0,n.c)(24),{children:f}=e,x=tE(),y=tw(),[k,C]=(0,h.useState)(!1),v=oz();g[0]!==v||g[1]!==x?(t=()=>{x!==v&&C(!1)},l=[x,v],g[0]=v,g[1]=x,g[2]=t,g[3]=l):(t=g[2],l=g[3]),h.useEffect(t,l);let S=x===v;
1S?r="2px solid #FF7A59":k&&(r="2px solid rgba(255,122,89, 0.3)"),g[4]!==v||g[5]!==x?(a=()=>x!==v?null:(0,o.jsx)(ow,{blockId:v}),g[4]=v,g[5]=x,g[6]=a):a=g[6];let A=a;return S||k||(r="none"),g[7]!==S?(i=!S&&{cursor:"pointer"},g[7]=S,g[8]=i):i=g[8],g[9]!==r||g[10]!==i?(s={position:"relative",maxWidth:"100%",outlineOffset:"-1px",outline:r,userSelect:"none",...i},g[9]=r,g[10]=i,g[11]=s):s=g[11],g[12]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{C(!0),e.stopPropagation()},c=()=>{C(!1)},g[12]=d,g[13]=c):(d=g[12],c=g[13]),g[14]!==v||g[15]!==y?(p=e=>{y(v),e.stopPropagation(),e.preventDefault()},g[14]=v,g[15]=y,g[16]=p):p=g[16],g[17]!==A?(m=A(),g[17]=A,g[18]=m):m=g[18],g[19]!==f||g[20]!==s||g[21]!==p||g[22]!==m?(b=(0,o.jsxs)(u.A,{sx:s,onMouseEnter:d,onMouseLeave:c,onClick:p,children:[m,f]}),g[19]=f,g[20]=s,g[21]=p,g[22]=m,g[23]=b):b=g[23],b}let oD={Avatar:{schema:k,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(v,{...e})})},Button:{schema:_,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(T,{...e})})},Container:{schema:lW,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(oA,{...e})})},ColumnsContainer:{schema:lw,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(oS,{...e})})},Heading:{schema:B,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(z,{...e})})},Html:{schema:U,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(G,{...e})})},Image:{schema:Y,Component:e=>{var t,l;let n={...e,props:{...e.props,url:null!=(l=null==(t=e.props)?void 0:t.url)?l:"https://placehold.co/600x400@2x/F8F8F8/CCC?text=Your%20image"}};return(0,o.jsx)(oI,{children:(0,o.jsx)(J,{...n})})}},BusinessLogo:{schema:Y,Component:e=>{var t,l;let n={...e,props:{...e.props,url:null!=(l=null==(t=e.props)?void 0:t.url)?l:"https://placehold.co/600x400@2x/F8F8F8/CCC?text=Your%20image"}};return(0,o.jsx)(oI,{children:(0,o.jsx)(eB,{...n})})}},Link:{schema:eL,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(eU,{...e})})},WorkshopFooter:{schema:eO,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(eY,{...e})})},Text:{schema:ei,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(ed,{...e})})},EmailLayout:{schema:lH,Component:e=>(0,o.jsx)(oj,{...e})},Spacer:{schema:q,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(X,{...e})})},Divider:{schema:N,Component:e=>(0,o.jsx)(oI,{children:(0,o.jsx)(I,{...e})})}},oM=eu(oD),oW=ec(oD),oB=x.g1(x.Yj(),oW),oP=(0,h.createContext)(null),oz=()=>(0,h.useContext)(oP);function oV(e){let t,l,r=(0,n.c)(5),{id:a}=e,i=tT()[a];if(!i)throw Error("Could not find block");return r[0]!==i?(t=(0,o.jsx)(oM,{...i}),r[0]=i,r[1]=t):t=r[1],r[2]!==a||r[3]!==t?(l=(0,o.jsx)(oP.Provider,{value:a,children:t}),r[2]=a,r[3]=t,r[4]=l):l=r[4],l}var oL=l(839),oH=l(42322);function oU(){let e,t,l,r=(0,n.c)(8),a=tN(),i=tF().toggleInspectorDrawerOpen;r[0]!==i?(e=()=>{i()},r[0]=i,r[1]=e):e=r[1];let s=e;if(a){let e,t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(oL.A,{fontSize:"small"}),r[2]=e):e=r[2],r[3]!==s?(t=(0,o.jsx)(og.A,{onClick:s,children:e}),r[3]=s,r[4]=t):t=r[4],t}return r[5]===Symbol.for("react.memo_cache_sentinel")?(t=(0,o.jsx)(oH.A,{fontSize:"small"}),r[5]=t):t=r[5],r[6]!==s?(l=(0,o.jsx)(og.A,{onClick:s,children:t}),r[6]=s,r[7]=l):l=r[7],l}var oG=l(43194);function oO(){let e,t,l=(0,n.c)(3),r=tT(),a="data:text/plain,".concat(encodeURIComponent(JSON.stringify(r,null,"  ")));return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(oG.A,{fontSize:"small"}),l[0]=e):e=l[0],l[1]!==a?(t=(0,o.jsx)(tQ.A,{title:"Download JSON file",children:(0,o.jsx)(og.A,{href:a,download:"emailTemplate.json",color:"primary",children:e})}),l[1]=a,l[2]=t):t=l[2],t}l(62459);var oY=l(92873),oJ=l.n(oY),oq=l(68179),oK=l(32515),oX=l(49784),oQ=l(56277);async function oZ(e){let t=await (0,oQ.GP)(e,{parser:"html",plugins:[oX.Ay]});return oJ().highlight(t,{language:"html"}).value}async function o$(e){let t=await (0,oQ.GP)(e,{parser:"json",printWidth:0,trailingComma:"all",plugins:[oq.A,oK.Ay]});return oJ().highlight(t,{language:"json"}).value}function o0(e){let t,l,r,a,i=(0,n.c)(7),{type:s,value:d}=e,[u,c]=(0,h.useState)(null);return(i[0]!==s||i[1]!==d?(t=()=>{switch(s){case"html":return void oZ(d).then(c);case"json":return void o$(d).then(c)}},l=[c,d,s],i[0]=s,i[1]=d,i[2]=t,i[3]=l):(t=i[2],l=i[3]),(0,h.useEffect)(t,l),null===u)?null:(i[4]===Symbol.for("react.memo_cache_sentinel")?(r={margin:0,padding:16,fontSize:14},i[4]=r):r=i[4],i[5]!==u?(a=(0,o.jsx)("pre",{style:r,dangerouslySetInnerHTML:{__html:u},onClick:o1}),i[5]=u,i[6]=a):a=i[6],a)}function o1(e){let t=window.getSelection();null!==t&&t.selectAllChildren(e.currentTarget)}function o2(){let e,t,l=(0,n.c)(4),r=tT();l[0]!==r?(e=e$(r,{rootBlockId:"root"}),l[0]=r,l[1]=e):e=l[1];let a=e;return console.log(r),l[2]!==a?(t=(0,o.jsx)(o0,{type:"html",value:a}),l[2]=a,l[3]=t):t=l[3],t}var o4=l(19479),o6=l(22350);function o3(e){let t;try{t=JSON.parse(e)}catch(e){return{error:"Invalid json"}}let l=oB.safeParse(t);return l.success?l.data.root?{data:l.data}:{error:'Missing "root" node'}
1:{error:"Invalid JSON schema"}}function o5(e){let t,l,r,a,i,s,d,u,c=(0,n.c)(27),{onClose:p}=e,[m,b]=(0,h.useState)(""),[g,f]=(0,h.useState)(null),x=tI();c[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{let t=e.currentTarget.value;b(t);let{error:l}=o3(t);f(null!=l?l:null)},c[0]=t):t=c[0];let y=t,k=null;if(g){let e;c[1]!==g?(e=(0,o.jsx)(o6.A,{color:"error",children:g}),c[1]=g,c[2]=e):e=c[2],k=e}c[3]!==p?(l={type:"button",content:"Cancel",buttonProps:{variant:"outlined",color:"inherit",onClick:p},side:"right"},c[3]=p,c[4]=l):l=c[4],c[5]!==p||c[6]!==x||c[7]!==m?(r={type:"button",content:"Import",buttonProps:{variant:"contained",color:"tertiary",onClick:()=>{let{error:e,data:t}=o3(m);f(null!=e?e:null),t&&(x(t),p())}},side:"right"},c[5]=p,c[6]=x,c[7]=m,c[8]=r):r=c[8],c[9]!==l||c[10]!==r?(a=[l,r],c[9]=l,c[10]=r,c[11]=a):a=c[11],c[12]!==p||c[13]!==x||c[14]!==m?(i=e=>{e.preventDefault();let{error:t,data:l}=o3(m);f(null!=t?t:null),l&&(x(l),p())},c[12]=p,c[13]=x,c[14]=m,c[15]=i):i=c[15];let C=null!==g;return c[16]!==C||c[17]!==m?(s=(0,o.jsx)(tJ.A,{error:C,value:m,onChange:y,type:"text",helperText:"This will override your current template.",variant:"outlined",fullWidth:!0,rows:10,multiline:!0}),c[16]=C,c[17]=m,c[18]=s):s=c[18],c[19]!==k||c[20]!==i||c[21]!==s?(d=(0,o.jsxs)("form",{onSubmit:i,children:[k,s]}),c[19]=k,c[20]=i,c[21]=s,c[22]=d):d=c[22],c[23]!==p||c[24]!==a||c[25]!==d?(u=(0,o.jsx)(tn.A,{open:!0,onClose:p,fullWidth:!0,isLoading:!1,maxWidth:"sm",title:"Import JSON",actions:a,keepMounted:!1,disablePortal:!1,children:d}),c[23]=p,c[24]=a,c[25]=d,c[26]=u):u=c[26],u}function o8(){let e,t,l,r=(0,n.c)(5),[a,i]=(0,h.useState)(!1),s=null;if(a){let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(o5,{onClose:()=>i(!1)}),r[0]=e):e=r[0],s=e}return r[1]===Symbol.for("react.memo_cache_sentinel")?(e=()=>i(!0),r[1]=e):e=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,o.jsx)(tQ.A,{title:"Import JSON",children:(0,o.jsx)(og.A,{onClick:e,color:"primary",children:(0,o.jsx)(o4.A,{fontSize:"small"})})}),r[2]=t):t=r[2],r[3]!==s?(l=(0,o.jsxs)(o.Fragment,{children:[t,s]}),r[3]=s,r[4]=l):l=r[4],l}function o7(){let e,t,l=(0,n.c)(4),r=tT();l[0]!==r?(e=JSON.stringify(r,null,"  "),l[0]=r,l[1]=e):e=l[1];let a=e;return l[2]!==a?(t=(0,o.jsx)(o0,{type:"json",value:a}),l[2]=a,l[3]=t):t=l[3],t}var o9=l(15339),ne=l(77431),nt=l(95636),nl=l(3141);function no(){let e,t,l,r,a,i,s,d,u,c,p=(0,n.c)(13),m=tR(),b=tF().setSelectedMainTab;p[0]!==b?(e=(e,t)=>{switch(t){case"json":case"preview":case"editor":case"html":return void b(t);default:b("editor")}},p[0]=b,p[1]=e):e=p[1];let g=e;return p[2]===Symbol.for("react.memo_cache_sentinel")?(t={marginRight:"8px!important"},p[2]=t):t=p[2],p[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(tM.A,{value:"editor",disableRipple:!0,sx:t,label:(0,o.jsx)(tQ.A,{title:"Edit",children:(0,o.jsx)(o9.I,{size:20})})}),p[3]=l):l=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(r={marginRight:"8px!important"},p[4]=r):r=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(tM.A,{value:"preview",disableRipple:!0,sx:r,label:(0,o.jsx)(tQ.A,{title:"Preview",children:(0,o.jsx)(ne.k,{size:20})})}),p[5]=a):a=p[5],p[6]===Symbol.for("react.memo_cache_sentinel")?(i={marginRight:"8px!important"},p[6]=i):i=p[6],p[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(tM.A,{value:"html",disableRipple:!0,sx:i,label:(0,o.jsx)(tQ.A,{title:"HTML output",children:(0,o.jsx)(nt.C,{size:20})})}),p[7]=s):s=p[7],p[8]===Symbol.for("react.memo_cache_sentinel")?(d={marginRight:"8px!important"},p[8]=d):d=p[8],p[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsx)(tM.A,{value:"json",disableRipple:!0,sx:d,label:(0,o.jsx)(tQ.A,{title:"JSON output",children:(0,o.jsx)(nl.D,{size:20})})}),p[9]=u):u=p[9],p[10]!==g||p[11]!==m?(c=(0,o.jsxs)(tW.A,{value:m,onChange:g,children:[l,a,s,u]}),p[10]=g,p[11]=m,p[12]=c):c=p[12],c}var nn=l(56343),nr=l(44567),na=l(16829),ni=l(88768);function ns(){let e,t,l,a,i,u,c,p,m,b,g=(0,n.c)(19);tT();let f=tD(),[x,y]=(0,h.useState)(!1);g[0]!==x?(e={queryKey:["import-message-templates",x],queryFn:nd},g[0]=x,g[1]=e):e=g[1];let{data:k,isPending:C}=(0,te.I)(e);g[2]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{y(!0)},g[2]=t):t=g[2];let v=t;g[3]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{y(!1)},g[3]=l):l=g[3];let S=l;g[4]!==f?(a=e=>{f(JSON.parse(e.useCustomEmailTemplate?e.emailTemplateJson:e.originalEmailTemplateJson)),y(!1)},g[4]=f,g[5]=a):a=g[5];let A=a;if(g[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(tQ.A,{title:"Import from another template",children:(0,o.jsx)(og.A,{onClick:v,color:"primary",children:(0,o.jsx)(nr.A,{fontSize:"small"})})}),g[6]=i):i=g[6],g[7]===Symbol.for("react.memo_cache_sentinel")?(u=[{type:"button",content:"Close",hideOnMobile:!0,buttonProps:{onClick:()=>{y(!1)}},side:"left"}],g[7]=u):u=g[7],g[8]!==C?(c=C&&(0,o.jsx)(na.A,{}),g[8]=C,g[9]=c):c=g[9],g[10]!==A||g[11]!==k){var j,_,F,T;p=(null==k||null==(j=k.data)?void 0:j.data)&&(null==(T=k.data)||null==(F=T.data)||null==(_=F.data)?void 0:_.map(e=>(0,o.jsxs)(d.A,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,o.jsx)(e4.A,{variant:"body2",sx:{fontWeight:"600"},children:e.name}),(0,o.jsx)(r.A,{variant:"outlined",color:"inherit",size:"small",startIcon:(0,o.jsx)(s.f,{}),onClick:()=>A(e),children:"Import"})]}))),g[10]=A,g[11]=k,g[12]=p}else p=g[12];return g[13]!==c||g[14]!==p?(m=(0,o.jsxs)(d.A,{spacing:2,children:[c,p]}),g[13]=c,g[14]=p,g[15]=m):m=g[15],g[16]!==x||g[17]!==m?(b=(0,o.jsxs)(o.Fragment,{children:[i,(0,o.jsx)(tn.A,{title:"Import from another template",subheader:"Copy the content of another template into this one.",open:x,fullWidth:!0,maxWidth:"sm",onClose:S,actions:u,children:m})]}),g[16]=x,g[17]=m,g[18]=b):b=g[18],b}
1function nd(){return ni.Ay.post("/v2/MessageTemplate/Search",{pageNumber:1,pageSize:1e3},{headers:{"Content-Type":"multipart/form-data"}})}function nu(){let e,t,l,r,a,i,s,c,p,b,g,h,f,x,y,k,C,v=(0,n.c)(29),S=tT(),A=tR(),j=tF().state.selectedScreenSize,_=tF().setSelectedScreenSize;v[0]!==j?(e={height:"100%"},"mobile"===j&&(e={...e,margin:"32px auto",width:370,height:800,boxShadow:"rgba(33, 36, 67, 0.04) 0px 10px 20px, rgba(33, 36, 67, 0.04) 0px 2px 6px, rgba(33, 36, 67, 0.04) 0px 0px 1px"}),v[0]=j,v[1]=e):e=v[1],v[2]!==_?(t=(e,t)=>{switch(t){case"mobile":case"desktop":return void _(t);default:_("desktop")}},v[2]=_,v[3]=t):t=v[3];let F=t;v[4]!==S||v[5]!==e||v[6]!==A?(l=()=>{switch(A){case"editor":return console.log(S),(0,o.jsx)(u.A,{sx:e,children:(0,o.jsx)(oV,{id:"root"})});case"preview":return(0,o.jsx)(u.A,{sx:e,children:(0,o.jsx)(eZ,{document:S,rootBlockId:"root"})});case"html":return(0,o.jsx)(o2,{});case"json":return(0,o.jsx)(o7,{})}},v[4]=S,v[5]=e,v[6]=A,v[7]=l):l=v[7];let T=l;return v[8]===Symbol.for("react.memo_cache_sentinel")?(r={height:49,borderBottom:1,borderTop:1,borderColor:"divider",backgroundColor:"white",top:0,zIndex:"appBar",px:1},v[8]=r):r=v[8],v[9]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(d.A,{direction:"row",spacing:2,children:(0,o.jsx)(no,{})}),v[9]=a):a=v[9],v[10]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(ns,{}),s=(0,o.jsx)(oO,{}),c=(0,o.jsx)(o8,{}),v[10]=i,v[11]=s,v[12]=c):(i=v[10],s=v[11],c=v[12]),v[13]===Symbol.for("react.memo_cache_sentinel")?(p=(0,o.jsx)(tz.A,{value:"desktop",color:"primary",children:(0,o.jsx)(tQ.A,{title:"Desktop view",children:(0,o.jsx)(nn.V,{size:20})})}),v[13]=p):p=v[13],v[14]===Symbol.for("react.memo_cache_sentinel")?(b=(0,o.jsx)(tz.A,{value:"mobile",color:"primary",children:(0,o.jsx)(tQ.A,{title:"Mobile view",children:(0,o.jsx)(m.R,{size:20})})}),v[14]=b):b=v[14],v[15]!==F||v[16]!==j?(g=(0,o.jsxs)(d.A,{px:2,direction:"row",gap:2,width:"100%",justifyContent:"space-between",alignItems:"center",children:[a,(0,o.jsxs)(d.A,{direction:"row",spacing:2,children:[i,s,c,(0,o.jsxs)(tH.A,{value:j,exclusive:!0,size:"small",onChange:F,children:[p,b]})]})]}),v[15]=F,v[16]=j,v[17]=g):g=v[17],v[18]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsx)(oU,{}),v[18]=h):h=v[18],v[19]!==g?(f=(0,o.jsxs)(d.A,{sx:r,direction:"row",justifyContent:"space-between",alignItems:"center",children:[g,h]}),v[19]=g,v[20]=f):f=v[20],v[21]===Symbol.for("react.memo_cache_sentinel")?(x={height:"100%",overflow:"auto",minWidth:370},v[21]=x):x=v[21],v[22]!==T?(y=T(),v[22]=T,v[23]=y):y=v[23],v[24]!==y?(k=(0,o.jsx)(u.A,{sx:x,children:y}),v[24]=y,v[25]=k):k=v[25],v[26]!==f||v[27]!==k?(C=(0,o.jsxs)(o.Fragment,{children:[f,k]}),v[26]=f,v[27]=k,v[28]=C):C=v[28],C}function nc(e){let t,l,r,a,i,s=(0,n.c)(10),{initialTemplate:d,onTemplateChange:u}=e,{resetDocument:c}=tF(),p=tT();return s[0]!==d||s[1]!==c?(t=()=>{d&&(console.log("initialTemplate",d),c(d))},s[0]=d,s[1]=c,s[2]=t):t=s[2],s[3]!==d?(l=[d],s[3]=d,s[4]=l):l=s[4],(0,h.useEffect)(t,l),s[5]!==p||s[6]!==u?(r=()=>{null==u||u(p)},a=[p,u],s[5]=p,s[6]=u,s[7]=r,s[8]=a):(r=s[7],a=s[8]),(0,h.useEffect)(r,a),s[9]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(nm,{}),s[9]=i):i=s[9],i}function np(e){let t,l=(0,n.c)(3),{initialTemplate:r,onTemplateChange:a}=e;return console.log("initialTemplate",r),l[0]!==r||l[1]!==a?(t=(0,o.jsx)(nc,{initialTemplate:r,onTemplateChange:a}),l[0]=r,l[1]=a,l[2]=t):t=l[2],t}function nm(){let e,t,l,r,a,i=(0,n.c)(9),s=tN(),c=(0,tc.A)();if(i[0]!==c.breakpoints?(e=c.breakpoints.down("sm"),i[0]=c.breakpoints,i[1]=e):e=i[1],(0,tp.A)(e)){let e;return i[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(u.A,{sx:{height:"calc(100vh - 80px)",overflow:"auto",p:3},children:"Editing email templates is not supported on mobile, please use desktop to make changes."}),i[2]=e):e=i[2],e}i[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,o.jsx)(l3,{}),i[3]=t):t=i[3];let p=s?"".concat(320,"px"):0;return i[4]!==p?(l={marginRight:p,height:"calc(100vh - 80px)",overflow:"auto"},i[4]=p,i[5]=l):l=i[5],i[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,o.jsx)(nu,{}),i[6]=r):r=i[6],i[7]!==l?(a=(0,o.jsxs)(o.Fragment,{children:[t,(0,o.jsx)(d.A,{sx:l,children:r})]}),i[7]=l,i[8]=a):a=i[8],a}var nb=l(46831);function ng(e){let t,l=(0,n.c)(5),{open:r,onClose:a,initialTemplate:i,onSave:s}=e;return l[0]!==i||l[1]!==a||l[2]!==s||l[3]!==r?(t=(0,o.jsx)(tA,{children:(0,o.jsx)(nh,{open:r,onClose:a,initialTemplate:i,onSave:s})}),l[0]=i,l[1]=a,l[2]=s,l[3]=r,l[4]=t):t=l[4],t}function nh(e){let t,l,r,a,i,s,d=(0,n.c)(17),{open:u,onClose:c,initialTemplate:p,onSave:m}=e,{state:b}=tF(),g=(0,eI.jL)(),{t:h}=(0,t2.WD)();d[0]!==g||d[1]!==c||d[2]!==m||d[3]!==b||d[4]!==h?(t=()=>{if(function(e){let t=[];return Object.values(e).filter(e=>
1"Link"===e.type).forEach(e=>{var l,o,n;let r=null==(l=e.data)?void 0:l.props,a=null==r||null==(o=r.url)?void 0:o.trim(),i=null==r||null==(n=r.text)?void 0:n.trim(),s=!!a&&a.length>0,d=!!i&&i.length>0;s||d?s?d||t.push('Link with URL "'.concat(a,'" is missing display text')):t.push('Link "'.concat(i,'" is missing a URL')):t.push("A link block is missing both a URL and display text")}),t}(b.document).length>0)return void g((0,nb.kw)("error",h("emailBuilder.validation.linkIncomplete","Some links are incomplete. Please fix all link blocks before saving.")));m(b.document),c()},d[0]=g,d[1]=c,d[2]=m,d[3]=b,d[4]=h,d[5]=t):t=d[5];let f=t;return d[6]!==f?(l=[{type:"button",content:"Confirm Template Changes",buttonProps:{variant:"contained",color:"tertiary",onClick:f},side:"right"}],d[6]=f,d[7]=l):l=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(r={p:0},a={maxWidth:"100%"},d[8]=r,d[9]=a):(r=d[8],a=d[9]),d[10]!==p?(i=(0,o.jsx)(np,{initialTemplate:p}),d[10]=p,d[11]=i):i=d[11],d[12]!==c||d[13]!==u||d[14]!==l||d[15]!==i?(s=(0,o.jsx)(tn.A,{open:u,onClose:c,fullWidth:!0,fullScreen:!0,maxWidth:!1,actions:l,dialogContentSx:r,dialogContentContainerSx:a,children:i}),d[12]=c,d[13]=u,d[14]=l,d[15]=i,d[16]=s):s=d[16],s}var nf=l(25703);let nx=(e,t)=>{if(!e||!t)return e;let l=e;return Object.entries(t).forEach(e=>{let[t,o]=e;Object.entries(o).forEach(e=>{let[t,o]=e;l=l.replaceAll("[".concat(t,"]"),o||"")})}),l},ny=e=>{var t,l,r,a;let{open:i,onClose:s,messageTemplateId:c,emailTemplateJson:p,subject:m,useCustomEmailTemplate:b}=e,g=(0,eI.jL)(),{t:f}=(0,t2.WD)(),{user:x}=(0,nf.Jd)(),{mutateAsync:y,isPending:k}=((e,t)=>{let l,o=(0,n.c)(2);void 0!==o[0]?(l=(e=>{let t=["sendTestMessageTemplate"],{mutation:l,axios:o}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t},axios:void 0};return{mutationFn:e=>{let{data:t}=null!=e?e:{};return tt.A.post("/v2/MessageTemplate/SendTestMessageTemplate",t,o)},...l}})(void 0),o[0]=e,o[1]=l):l=o[1];let r=l;return(0,e9.n)(r,void 0)})(),{data:C,isPending:v}=tl(c,{query:{enabled:i,gcTime:0,staleTime:0,queryKey:["messageTemplatePreview",c,b,i]}}),S=tr.Ik().shape({subject:tr.Yj().required(f("testMessageTemplate.validation.subjectRequired")),to:tr.YO().of(tr.Ik().shape({value:tr.Yj().email(f("testMessageTemplate.validation.invalidEmail")),title:tr.Yj().required(f("testMessageTemplate.validation.emailRequired"))})).min(1,f("testMessageTemplate.validation.atLeastOneRecipient","Add at least one recipient."))}),A=(0,e7.mN)({defaultValues:{to:[{value:(null==x||null==(t=x.emailAddresses[0])?void 0:t.emailAddress)||"",title:(null==x||null==(l=x.emailAddresses[0])?void 0:l.emailAddress)||""}],subject:""},resolver:(0,e2.t)(S)}),{handleSubmit:j,setValue:_,watch:F}=A;(0,h.useEffect)(()=>{(null==C?void 0:C.data)&&_("subject",((e,t)=>e&&t?nx(e,t):e)(m,C.data.previewData))},[null==C?void 0:C.data,b,i]);let T=async e=>{if(0===e.to.length)return void g((0,nb.kw)("error",f("testMessageTemplate.error.atLeastOneRecipient")));try{await y({data:{to:e.to.map(e=>e.value).join(","),subject:e.subject,content:E}}),g((0,nb.kw)("success",f("testMessageTemplate.success.emailSent"))),s()}catch(e){g((0,nb.kw)("error",f("testMessageTemplate.error.emailFailed")))}},E=(0,h.useMemo)(()=>{var e,t;return(null==C||null==(e=C.data)?void 0:e.previewData)?nx((p?e$(p,{rootBlockId:"root"}):null==C||null==(t=C.data)?void 0:t.emailTemplateHtml)||"",C.data.previewData):null},[null==C||null==(r=C.data)?void 0:r.previewData,p,null==C||null==(a=C.data)?void 0:a.emailTemplateHtml,i]);return(0,o.jsx)(tn.A,{open:i,onClose:s,maxWidth:"md",fullWidth:!0,title:f("testMessageTemplate.title"),subheader:f("testMessageTemplate.subheader"),actions:[{type:"button",content:f("testMessageTemplate.actions.close"),hideOnMobile:!0,buttonProps:{onClick:s},side:"left"},{type:"button",content:f("testMessageTemplate.actions.sendTest"),buttonProps:{onClick:j(T),loading:k},side:"right"}],children:(0,o.jsx)(to.Op,{methods:A,children:(0,o.jsxs)(d.A,{spacing:3,children:[(0,o.jsxs)(d.A,{spacing:2,children:[(0,o.jsx)(to.j2,{name:"to",label:f("testMessageTemplate.fields.to"),freeSolo:!0,placeholder:f("testMessageTemplate.fields.toPlaceholder"),autocompleteId:"testEmailAutocomplete",multiple:!0,simple:!0,formatOnChangeResult:e=>e.filter(e=>{var t,l=null!=(t=e.value)?t:e.inputValue,o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l);return o||g((0,nb.kw)("error",f("testMessageTemplate.error.invali
1dEmail",{email:l}))),e.title=e.value,o})}),(0,o.jsx)(to.o3,{name:"subject",label:f("testMessageTemplate.fields.subject"),placeholder:f("testMessageTemplate.fields.subjectPlaceholder")})]}),(0,o.jsx)(e8.A,{}),(0,o.jsxs)(d.A,{spacing:2,children:[(0,o.jsx)(e4.A,{variant:"body2",sx:{fontWeight:"700"},children:f("testMessageTemplate.previewInfo")}),(0,o.jsx)(u.A,{children:v?(0,o.jsx)(e5.A,{variant:"rectangular",height:400}):E?(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:E}}):(0,o.jsx)(e4.A,{color:"text.secondary",align:"center",py:4,children:f("testMessageTemplate.noPreview")})})]})]})})})};var nk=l(80803),nC=l(95135),nv=l(66094);let nS=/https?:\/\/[^\s<>()]+/gi,nA=(0,h.memo)(eZ),nj=()=>{let e=(0,g.useRouter)(),t=(0,eI.jL)(),{t:l}=(0,t2.WD)(),a=(0,h.useRef)(null),s=(0,h.useRef)(null),{editMessageTemplateId:c}=(0,eI.GV)(e=>e.messageTemplate),[p,b]=(0,h.useState)({}),[f,x]=(0,h.useState)(!1),[y,k]=(0,h.useState)(!1),[C,v]=(0,h.useState)(!1),[S,A]=(0,h.useState)(""),{data:j}=(0,eI.GV)(e=>e.business),_=null==j?void 0:j.emailTemplates;var F,T,E,R,N,w,I=null!=_&&(null==_?void 0:_.length)>0?_[0]:null;let{mutateAsync:D,isPending:M}=((e,t)=>{let l,o=(0,n.c)(2);void 0!==o[0]?(l=(e=>{let t=["updateMessageTemplate"],{mutation:l,axios:o}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t},axios:void 0};return{mutationFn:e=>{let{id:t,data:l}=null!=e?e:{};return tt.A.put("/v2/MessageTemplate/UpdateMessageTemplate/".concat(t),l,o)},...l}})(void 0),o[0]=e,o[1]=l):l=o[1];let r=l;return(0,e9.n)(r,void 0)})(),{data:W,isPending:B}=function(e,t,l){let o=((e,t)=>{var l;let{query:o,axios:n}=null!=t?t:{};return{queryKey:null!=(l=null==o?void 0:o.queryKey)?l:["/v2/MessageTemplate/GetMessageTemplate/".concat(e)],queryFn:t=>{let l,{signal:o}=t;return l={signal:o,...n},tt.A.get("/v2/MessageTemplate/GetMessageTemplate/".concat(e),l)},enabled:!!e,staleTime:0,...o}})(e,t),n=(0,te.I)(o,void 0);return n.queryKey=o.queryKey,n}(c,{query:{enabled:null!=c,gcTime:0,staleTime:0,queryKey:["message-template-"+c]}}),{data:P,isPending:z}=tl(c,{query:{enabled:null!=c&&nC.A.IsFeatureFlagEnabled("sms-messaging"),gcTime:0,staleTime:0,queryKey:["messageTemplatePreview",c]}}),V=null==W?void 0:W.data,L=tr.Ik().shape({emailSubject:tr.Yj().nullable().when("messageTemplateType",{is:"CustomerInvoice",then:e=>e.optional(),otherwise:e=>e.required(l("messageTemplate.validation.subjectRequired"))}),name:tr.Yj().nullable(),description:tr.Yj().nullable(),triggeredOn:tr.Yj().nullable(),emailEnabled:tr.zM().optional(),useCustomEmailTemplate:tr.zM().optional(),smsPushContent:tr.Yj().nullable(),smsPushEnabled:tr.zM().optional(),useCustomSMSTemplate:tr.zM().optional(),emailTemplateJson:tr.Yj().nullable(),created:tr.Yj().nullable(),createdBy:tr.Yj().nullable(),edited:tr.Yj().nullable(),editedBy:tr.Yj().nullable(),default:tr.zM().optional(),messageTemplateId:tr.ai().optional(),messageTemplateType:tr.Yj().nullable(),originalEmailTemplateJson:tr.Yj().nullable(),originalSMSPushContent:tr.Yj().nullable()}),H={...V},U=(0,e7.mN)({defaultValues:H,mode:"onChange",resolver:(0,e2.t)(L)}),{reset:G,watch:O,control:Y,setValue:J,handleSubmit:q,formState:{isSubmitting:K,isValid:X,isDirty:Q,errors:Z}}=U,$=async e=>{let o=e$(p,{rootBlockId:"root"});await D({id:null==V?void 0:V.messageTemplateId,data:{data:{emailTemplateJson:e.emailTemplateJson,emailSubject:e.emailSubject,emailEnabled:e.emailEnabled,useCustomEmailTemplate:e.useCustomEmailTemplate,smsPushContent:e.smsPushContent,smsPushEnabled:e.smsPushEnabled,useCustomSMSTemplate:e.useCustomSMSTemplate,emailTemplateHtml:o,...(null==V?void 0:V.default)&&{triggeredOn:e.triggeredOn,description:e.description,name:e.name}}}}).then(()=>{t((0,nb.kw)("success",l("messageTemplate.edit.updateSuccess"))),t((0,e1.d)(null)),t((0,e1.J)())}).finally(()=>{}).catch(e=>{t((0,nb.kw)("error",l("messageTemplate.edit.updateError")))})},ee=()=>{t((0,e1.d)(null))};return(0,h.useEffect)(()=>{if(G(H),null==V?void 0:V.default)return void((null==V?void 0:V.emailTemplateJson)?(b(JSON.parse(V.emailTemplateJson)),J("emailTemplateJson",V.emailTemplateJson)):b(null));let e=null==V?void 0:V.useCustomEmailTemplate;e&&(null==V?void 0:V.emailTemplateJson)?b(JSON.parse(V.emailTemplateJson)):!e&&(null==V?void 0:V.originalEmailTemplateJson)?b(JSON.parse(V.originalEmailTemplateJson)):b(null)},[null==V?void 0:V.messageTemplateId]),(0,h.useEffect)(()=>{var l;(null==e||null==(l=e.query)?void 0:l.message_template_id)&&!c&&t((0,e1.d)(Number(e.query.message_template_id)))},[null==e||null==(F=e.query)?void 0:F.message_template_id]),(0,h.useEffect)(()=>
1{if(null==V?void 0:V.default)return void((null==V?void 0:V.emailTemplateJson)?(b(JSON.parse(V.emailTemplateJson)),J("emailTemplateJson",V.emailTemplateJson)):b(null));if(O("useCustomEmailTemplate"))if(null==V?void 0:V.emailTemplateJson)b(JSON.parse(V.emailTemplateJson));else if(null==V?void 0:V.originalEmailTemplateJson){console.log("Seeding custom from originalEmailTemplateJson",null==V?void 0:V.originalEmailTemplateJson);let e=JSON.parse(V.originalEmailTemplateJson);b(e),J("emailTemplateJson",JSON.stringify(e))}else b(null);else(null==V?void 0:V.originalEmailTemplateJson)?b(JSON.parse(V.originalEmailTemplateJson)):b(null)},[O("useCustomEmailTemplate"),null==V?void 0:V.emailTemplateJson,null==V?void 0:V.originalEmailTemplateJson,null==V?void 0:V.messageTemplateId,null==V?void 0:V.default]),(0,h.useEffect)(()=>{var e;if(null==P||null==(e=P.data)?void 0:e.previewData){let e=(null==V?void 0:V.default)||O("useCustomSMSTemplate")?O("smsPushContent"):null==V?void 0:V.originalSMSPushContent;e&&A(((e,t)=>{if(!e||!t)return e;console.log("content",e),console.log("previewData",t);let l=e;return Object.entries(t).forEach(e=>{let[t,o]=e;Object.entries(o).forEach(e=>{let[t,o]=e;l=l.replaceAll("[".concat(t,"]"),o||"")})}),l})(e,P.data.previewData))}},[null==P||null==(T=P.data)?void 0:T.previewData,O("smsPushContent"),O("useCustomSMSTemplate"),null==V?void 0:V.originalSMSPushContent,null==V?void 0:V.default]),(0,o.jsx)(tn.A,{open:null!=c,onClose:ee,fullWidth:!0,fullScreen:!0,isLoading:B,maxWidth:"md",title:null!=(R=null==V?void 0:V.name)?R:"",footerSx:{"& > div":{flexWrap:"wrap"}},actions:[{type:"button",content:l("messageTemplate.edit.sendTestEmail"),buttonProps:{variant:"outlined",color:"inherit",onClick:()=>{k(!0)}},side:"right"},{type:"button",content:l("messageTemplate.edit.saveChanges"),buttonProps:{variant:"contained",color:"tertiary",loading:M,onClick:q($)},side:"right"}],keepMounted:!1,disablePortal:!1,children:(0,o.jsxs)(to.Op,{methods:U,children:[(0,o.jsxs)(d.A,{spacing:3,children:[(0,o.jsx)(nk.A,{severity:"info",alertKey:"message-template-info",children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.info"})}),(0,o.jsxs)(d.A,{direction:{xs:"column",md:"row"},columnGap:2,rowGap:2,flexWrap:"wrap",children:[(0,o.jsxs)(d.A,{flex:1,children:[(0,o.jsx)(e4.A,{variant:"body2",sx:{fontWeight:"700"},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.description"})}),(0,o.jsx)(e4.A,{variant:"body2",children:null==V?void 0:V.description})]}),(0,o.jsxs)(d.A,{flex:1,children:[(0,o.jsx)(e4.A,{variant:"body2",sx:{fontWeight:"700"},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.triggeredOn"})}),(0,o.jsx)(e4.A,{variant:"body2",children:null==V?void 0:V.triggeredOn})]})]}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e6.A,{avatar:(0,o.jsx)(m.R,{size:52}),title:l("messageTemplate.edit.smsConfig"),subheader:l("messageTemplate.edit.smsConfigDesc"),sx:{p:0,pt:3}}),(0,o.jsx)(to.b8,{name:"smsPushEnabled",label:l("messageTemplate.edit.smsEnabled"),color:"success",helperText:l("messageTemplate.edit.smsEnabledHelp")}),!(null==V?void 0:V.default)&&(0,o.jsx)(to.b8,{name:"useCustomSMSTemplate",label:l("messageTemplate.edit.useCustomSms"),helperText:l("messageTemplate.edit.useCustomSmsHelp")}),(O("useCustomSMSTemplate")||(null==V?void 0:V.default))&&(0,o.jsx)(to.o3,{inputRef:s,name:"smsPushContent",label:l("messageTemplate.edit.smsContent"),disabled:!O("useCustomSMSTemplate")&&!(null==V?void 0:V.default),multiline:!0,minRows:2,sx:{"& .MuiFormHelperText-root":{mr:0}},InputProps:{endAdornment:(0,o.jsx)(e3.A,{position:"end",children:(0,o.jsxs)(e4.A,{variant:"body2",sx:{fontWeight:"700"},children:[null!=(N=null==(E=O("smsPushContent"))?void 0:E.length)?N:0,"/320"]})})},helperText:(0,o.jsxs)(d.A,{direction:"row",columnGap:1,justifyContent:"space-between",children:[(0,o.jsxs)(e4.A,{variant:"caption",children:[(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.smsContentHelp"})," ",(0,o.jsx)("strong",{children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.smsChargeNotice",defaultValue:"Approx. {count} SMS segment(s); final count is confirmed by Twilio after sending.",params:{count:function(e){var t=e.replace(nS,e=>{let t=e.replace(/[.,!;:)\]]+$/,""),l=e.slice(t.length);return"".concat("https://bkbk.app/XXXXXXXXXX").concat(l)});if(!t)return 1;if(Array.from(t).some(e=>!"@\xa3$\xa5\xe8\xe9\xf9\xec\xf2\xc7\n\xd8\xf8\r\xc5\xe5Δ_ΦΓΛΩΠΨΣΘΞ\x1b\xc6\xe6\xdf\xc9 !\"#\xa4%&'()*+,-./0123456789:;<=>?\xa1ABCDEFGHIJKLMNOPQRSTUVWXYZ\xc4\xd6\xd1\xdc\xa7\xbfabcdefghijklmnopqrstuvwxyz\xe4\xf6\xf1\xfc\xe0".includes(e)&&!"^{}\\[~]|€".includes(e))){let e=t.length<=70?70:67;return Math.ceil(t.length/e)}let l=t.length<=160?160:153;return Math.ceil(t.length/l)}(S||O("smsPushContent")||"")}})})]}),(0,o.jsx)(t4,{inputRef:s,value:O("smsPushContent"),onChange:e=>{J("smsPushContent",e)}})]})}),!O("useCustomSMSTemplate")&&!(null==V?void 0:V.default)&&(0,o.jsxs)(d.A,{children:[(0,o.jsx)(e4.A,{variant:"body2",sx:{fontWeight:"700"},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.defaultSmsContent"})}),(0,o.jsx)(e4.A,{variant:"body2",children:null==V?void 0:V.originalSMSPushContent})]}),(0,o.jsxs)(d.A,{spacing:1,children:[(0,o.jsx)(e4.A,{variant:"body2",sx:{fontWeight:"700"},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.outputExample",defaultValue:"Compiled Output Example"})}),z?(0,o.jsx)(e5.A,{variant:"rectangular",height:100}):(0,o.jsx)(e4.A,{variant:"body2",children:S||l("messageTemplate.edit.noPreviewAvailable","No preview available")}
1),(0,o.jsxs)(e4.A,{variant:"caption",sx:{display:"flex",alignItems:"center",gap:1},children:[(0,o.jsx)(ta.R,{size:16}),(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.previewInfo",defaultValue:"This shows how SMS will appear with sample data. Translation is applied based on business language settings."})]})]}),(0,o.jsx)(e8.A,{sx:{my:"32px!important"}})]}),(0,o.jsx)(e6.A,{avatar:(0,o.jsx)(i.L,{size:52}),title:l("messageTemplate.edit.emailConfig"),subheader:l("messageTemplate.edit.emailConfigDesc"),sx:{p:0,pt:3}}),(null==V?void 0:V.default)&&(0,o.jsx)(to.o3,{inputRef:a,name:"name",label:"Name",sx:{"& .MuiFormHelperText-root":{mr:0}}}),(null==V?void 0:V.default)&&(0,o.jsx)(to.o3,{inputRef:a,name:"description",label:"Description",sx:{"& .MuiFormHelperText-root":{mr:0}}}),(null==V?void 0:V.default)&&(0,o.jsx)(to.o3,{inputRef:a,name:"triggeredOn",label:"Triggered On",sx:{"& .MuiFormHelperText-root":{mr:0}}})," ",(null==V?void 0:V.messageTemplateType)=="CustomerInvoice"&&(0,o.jsxs)(d.A,{spacing:3,children:[(0,o.jsx)(nk.A,{severity:"warning",alertKey:"invoice-email-subject",sx:{},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.invoiceWarning"})}),(0,o.jsxs)(d.A,{spacing:.5,children:[(0,o.jsx)(e4.A,{variant:"body2",sx:{fontWeight:"700"},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.emailSubject"})}),(0,o.jsx)(e4.A,{variant:"body2",children:null==I?void 0:I.subject})]}),(0,o.jsxs)(d.A,{spacing:.5,children:[(0,o.jsx)(e4.A,{variant:"body2",sx:{fontWeight:"700"},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.invoiceTemplateText"})}),(0,o.jsx)(e4.A,{variant:"body2",children:null==I?void 0:I.body})]}),(0,o.jsx)(r.A,{variant:"outlined",color:"inherit",size:"large",startIcon:(0,o.jsx)(ti.q,{}),onClick:()=>{ee(),e.push("/settings/invoice-settings")},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.editInvoiceTemplate"})})]}),(null==V?void 0:V.messageTemplateType)!="CustomerInvoice"&&(0,o.jsx)(d.A,{direction:"column",justifyContent:"flex-end",alignItems:"flex-end",children:(0,o.jsx)(to.o3,{inputRef:a,name:"emailSubject",label:l("messageTemplate.edit.emailSubject"),sx:{"& .MuiFormHelperText-root":{mr:0}},helperText:(0,o.jsxs)(d.A,{direction:"row",columnGap:1,justifyContent:"space-between",children:[(0,o.jsx)(e4.A,{variant:"caption",children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.emailSubjectHelp"})}),(0,o.jsx)(t4,{inputRef:a,value:O("emailSubject"),onChange:e=>{J("emailSubject",e)}})]})})}),(0,o.jsx)(to.b8,{name:"emailEnabled",label:l("messageTemplate.edit.emailEnabled"),color:"success",helperText:l("messageTemplate.edit.emailEnabledHelp")}),!(null==V?void 0:V.default)&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(to.b8,{name:"useCustomEmailTemplate",label:l("messageTemplate.edit.useCustomEmail"),helperText:l("messageTemplate.edit.useCustomEmailHelp")})}),(0,o.jsx)(r.A,{variant:"outlined",color:"inherit",size:"large",startIcon:(0,o.jsx)(ts.I,{size:20}),disabled:!O("useCustomEmailTemplate")&&!(null==V?void 0:V.default),onClick:()=>{x(!0)},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.editEmailTemplate"})}),(0,o.jsxs)(u.A,{sx:{maxHeight:"600px",overflow:"auto",width:"100%"},children:[(null==p?void 0:p.root)!=null&&(0,o.jsx)(nA,{document:p,rootBlockId:"root"}),!(null==p?void 0:p.root)&&(0,o.jsx)(e5.A,{variant:"rectangular",height:600})]}),(0,o.jsx)(e8.A,{}),(0,o.jsx)(u.A,{children:(0,o.jsx)(e6.A,{style:{padding:0},title:l("messageTemplate.edit.information")})}),(0,o.jsxs)(u.A,{children:[(0,o.jsxs)(u.A,{style:{display:"flex",justifyContent:"space-between"},children:[(0,o.jsx)(e4.A,{variant:"subtitle2",sx:{mb:1.5},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.created"})}),(0,o.jsx)(e4.A,{variant:"body2",sx:{mb:1.5},children:(null==V?void 0:V.created)?(0,nv.Gl)(tu()(V.created),nv.LN.NUMERIC_DATE_TIME_SECONDS):"N/A"})]}),(0,o.jsxs)(u.A,{style:{display:"flex",justifyContent:"space-between"},children:[(0,o.jsx)(e4.A,{variant:"subtitle2",sx:{mb:1.5},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.createdBy"})}),(0,o.jsx)(e4.A,{variant:"body2",sx:{mb:1.5},children:(null==V?void 0:V.createdBy)?V.createdBy:"N/A"})]}),(0,o.jsxs)(u.A,{style:{display:"flex",justifyContent:"space-between"},children:[(0,o.jsx)(e4.A,{variant:"subtitle2",sx:{mb:1.5},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.lastEdited"})}),(0,o.jsx)(e4.A,{variant:"body2",sx:{mb:1.5},children:(null==V?void 0:V.edited)?(0,nv.Gl)(tu()(V.edited),nv.LN.NUMERIC_DATE_TIME_SECONDS):"N/A"})]}),(0,o.jsxs)(u.A,{style:{display:"flex",justifyContent:"space-between"},children:[(0,o.jsx)(e4.A,{variant:"subtitle2",sx:{mb:1.5},children:(0,o.jsx)(t2.T,{keyName:"messageTemplate.edit.lastEditedBy"})}),(0,o.jsx)(e4.A,{variant:"body2",sx:{mb:1.5},children:(null==V?void 0:V.editedBy)?V.editedBy:"N/A"})]})]})]}),(0,o.jsx)(ng,{open:f,onClose:()=>x(!1),initialTemplate:p,onSave:e=>{J("emailTemplateJson",JSON.stringify(e)),b(e)}}),c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ny,{open:y,onClose:()=>k(!1),messageTemplateId:c,emailTemplateJson:p,useCustomEmailTemplate:O("useCustomEmailTemplate"),subject:null!=(w=O("emailSubject"))?w:void 0}),(0,o.jsx)(ny,{open:C,onClose:()=>v(!1),messageTemplateId:c,emailTemplateJson:null})]})]},null==V?void 0:V.messageTemplateId)})},n_=()=>{let e,t,l,r,a,i,s,u,c,p,m,b,h,f,x,y=(0,n.c)(22),k=(0,eI.jL)();(0,g.useRouter)();let C=(0,eI.GV)(nF);y[0]!==k?(e=(e,t)=>{if("BUTTON"!==t.target.tagName&&"svg"!==t.target.tagName&&"path"!==t.target.tagName&&e.row.messageTemplateId)return void k((0,e1.d)(e.row.messageTemplateId))},y[0]=k,y[1]=e):e=y[1];let v=e;return y[2]===Symbol.for("react.memo_cache_sentinel")?(t={border:"none"},y[2]=t):t=y[2],y[3]===Symbol.for("react.memo_cache_sentinel")?(l={right:["action"]},y[3]=l):l=y[3],y[4]===Symbol.for("react.memo_cache_sentinel")?(r=[{field:"Name",type:"string",headerName:"Template Name",placeholder:"10",numeric:!1,flex:.5,disablePadding:!0,getPropValue:nR},{field:"Description",type:"string",headerName:"Description",placeholder:"10",numeric:!1,flex:1,disablePadding:!0,getPropValue:nN},{field:"TriggeredOn",type:"string",headerName:"Triggered On",placeholder:"10",numeric:!1,flex:1,disablePadding:!0,getPropValue:nw},{field:"EmailEnabled",type:"string",headerName:"Enabled",disablePadding:!0,getPropValue:nI}],y[4]=r):r=y[4],y[5]===Symbol.for("react.memo_cache_sentinel")?(a={field:"Name",sort:"asc"},y[5]=a):a=y[5],y[6]===Symbol.for("react.memo_cache_sentinel")?(i={language:"ENG"},y[6]=i):i=y[6],y[7]!==v||y[8]!==C?(s=(0,o.jsx)(e0.A,{objectName:"MessageTemplate",defaultPageSize:20,tableId:"message-template-table-english",style:t,checkboxSelection:!1,refreshDataToken:C,onRowClick:v,detailPanelEnabled:!0,getDetailPanelContent:nT,disableHeaderFilters:!0,title:"English",mergePropertyId:"messageTemplateId",pinnedColumns:l,getRowClassName:nE,columns:r,defaultDensity:"standard",url:"/v2/MessageTemplate/GetDefaultTemplates",disableExport:!0,defaultSortModel:a,customNoRowsText:"No message templates found.",additionalReqProps:i}),y[7]=v,y[8]=C,y[9]=s):s=y[9],y[10]===Symbol.for("react.memo_cache_sentinel")?(u={border:"none"},y[10]=u):u=y[10],y[11]===Symbol.for("react.memo_cache_sentinel")?(c={right:["action"]},y[11]=c):c=y[11],y[12]===Symbol.for("react.memo_cache_sentinel")?(p=[{field:"Name",type:"string",headerName:"Template Name",placeholder:"10",numeric:!1,flex:.5,disablePadding:!0,getPropValue:nM},{field:"Description",type:"string",headerName:"Description",placeholder:"10",numeric:!1,flex:1,disablePadding:!0,getPropValue:nW},{field:"TriggeredOn",type:"string",headerName:"Triggered On",placeholder:"10",numeric:!1,flex:1,disablePadding:!0,getPropValue:nB}],y[12]=p):p=y[12],y[13]===Symbol.for("react.memo_cache_sentinel")?(m={field:"Name",sort:"asc"},y[13]=m):m=y[13],y[14]===Symbol.for("react.memo_cache_sentinel")?(b={language:"DEU"},y[14]=b):b=y[14],y[15]!==v||y[16]!==C?(h=(0,o.jsx)(e0.A,{objectName:"MessageTemplate",defaultPageSize:20,tableId:"message-template-table-german",style:u,checkboxSelection:!1,refreshDataToken:C,onRowClick:v,detailPanelEnabled:!0,getDetailPanelContent:nT,disableHeaderFilters:!0,title:"German",mergePropertyId:"messageTemplateId",pinnedColumns:c,getRowClassName:nD,columns:p,defaultDensity:"standard",url:"/v2/MessageTemplate/GetDefaultTemplates",disableExport:!0,defaultSortModel:m,customNoRowsText:"No message templates found.",additionalReqProps:b}),y[15]=v,y[16]=C,y[17]=h):h=y[17],y[18]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(nj,{}),y[18]=f):f=y[18],y[19]!==h||y[20]!==s?(x=(0,o.jsxs)(d.A,{spacing:3,children:[s,h,f]}),y[19]=h,y[20]=s,y[21]=x):x=y[21],x};function nF(e){return e.messageTemplate.refreshToken}function nT(e){return e.row.emailTemplateJson?(0,o.jsx)(u.A,{sx:{p:2,maxHeight:"500px",overflow:"auto"},children:(0,o.jsx)(eZ,{document:JSON.parse(e.row.emailTemplateJson),rootBlockId:"root"})}):null}function nE(e){return"mui-data-grid-clickable"}function nR(e){return null!=e.name?e.name:"-"}function nN(e){return null!=e.description?e.description:"-"}function nw(e){return null!=e.triggeredOn?e.triggeredOn:"-"}function nI(e){return(0,o.jsxs)(d.A,{direction:"row",alignItems:"center",spacing:3,children:[(0,o.jsxs)(d.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,o.jsx)(b.L,{size:24,style:{opacity:e.emailEnabled?1:.5}}),e.emailEnabled?(0,o.jsx)(c.r,{weight:"fill",color:"#00AB55",size:22}):(0,o.jsx)(p.J,{weight:"fill",color:"#FF4842",size:22})]}),(0,o.jsxs)(d.A,{direction:"row",alignItems:"center",spacing:.5,children:[(0,o.jsx)(m.R,{size:24,style:{opacity:e.smsPushEnabled?1:.5}}),e.smsPushEnabled?(0,o.jsx)(c.r,{weight:"fill",color:"#00AB55",size:22}):(0,o.jsx)(p.J,{weight:"fill",color:"#FF4842",size:22})]})]})}function nD(e){return"mui-data-grid-clickable"}function nM(e){return null!=e.name?e.name:"-"}function nW(e){return null!=e.description?e.description:"-"}function nB(e){return null!=e.triggeredOn?e.triggeredOn:"-"}var nP=l(15086),nz=l(89783);let nV={Custom:"Custom",BookingAccepted:"BookingAccepted",CustomerInvoice:"CustomerInvoice",PartApproval:"PartApproval",Bikes
1Ready:"BikesReady",BookingRejected:"BookingRejected",RequestReturnDate:"RequestReturnDate",RequestPickupDate:"RequestPickupDate",ServiceDetailsChanged:"ServiceDetailsChanged",ReturnDetailsChanged:"ReturnDetailsChanged",CollectionDetailsChanged:"CollectionDetailsChanged",DropOffDateChanged:"DropOffDateChanged",PickUpDateChanged:"PickUpDateChanged",BookingSubmittedOnSite:"BookingSubmittedOnSite",BookingSubmittedCollection:"BookingSubmittedCollection",BookingSubmittedDropOff:"BookingSubmittedDropOff",SixMonthReminder:"SixMonthReminder",TwelveMonthReminder:"TwelveMonthReminder",RequestReviewPostJob:"RequestReviewPostJob",UnreadMessage:"UnreadMessage",TwentyFourHourBookingReminder:"TwentyFourHourBookingReminder",SevenDayPostJob:"SevenDayPostJob"},nL=e=>{let{open:t,onClose:l}=e,r=(0,eI.jL)(),{mutateAsync:a,isPending:i}=((e,t)=>{let l,o=(0,n.c)(2);void 0!==o[0]?(l=(e=>{let t=["createMessageTemplate"],{mutation:l,axios:o}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t},axios:void 0};return{mutationFn:e=>{let{data:t}=null!=e?e:{};return tt.A.post("/v2/MessageTemplate/CreateMessageTemplate",t,o)},...l}})(void 0),o[0]=e,o[1]=l):l=o[1];let r=l;return(0,e9.n)(r,void 0)})(),s=tr.Ik().shape({name:tr.Yj().required("Name is required"),MessageTemplateType:tr.Yj().required("Template type is required")}),u=(0,e7.mN)({defaultValues:{name:"",MessageTemplateType:""},mode:"onChange",resolver:(0,e2.t)(s)}),{reset:c,handleSubmit:p,formState:{isValid:m}}=u,b=async e=>{await a({data:{data:{name:e.name,default:!0,messageTemplateType:e.MessageTemplateType,language:"ENG"}}}).then(()=>{r((0,nb.kw)("success","Message template created successfully")),r((0,e1.J)()),c(),l()}).catch(e=>{r((0,nb.kw)("error","Failed to create message template"))})};return(0,o.jsx)(tn.A,{open:t,onClose:l,fullWidth:!0,maxWidth:"sm",title:"Create Message Template",actions:[{type:"button",content:"close",buttonProps:{onClick:l},side:"left"},{type:"button",content:"Save",buttonProps:{variant:"contained",color:"tertiary",loading:i,onClick:p(b)},side:"right"}],children:(0,o.jsx)(to.Op,{methods:u,children:(0,o.jsxs)(d.A,{spacing:3,children:[(0,o.jsx)(to.o3,{name:"name",label:"Template Name *",helperText:"Enter a name for this message template"}),(0,o.jsx)(to.tX,{name:"MessageTemplateType",label:"Template Type *",native:!1,displayEmpty:!0,fullWidth:!0,placeholder:"Select Template Type",children:Object.values(nV).map(e=>(0,o.jsx)(tZ.A,{value:e,children:e}))})]})})})},nH=()=>{let e,t,l,d,u,c,p=(0,n.c)(7),[m,b]=(0,h.useState)(!1);return p[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(i.L,{size:20}),p[0]=e):e=p[0],p[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>b(!0),p[1]=t):t=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(nP.A,{title:"Message Templates",icon:e,actions:(0,o.jsx)(r.A,{variant:"contained",color:"tertiary",onClick:t,size:"small",startIcon:(0,o.jsx)(s.f,{size:16}),children:"Create Template"})}),p[2]=l):l=p[2],p[3]===Symbol.for("react.memo_cache_sentinel")?(d=(0,o.jsx)(a.A,{maxWidth:"xl",children:(0,o.jsx)(n_,{})}),p[3]=d):d=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(u=()=>b(!1),p[4]=u):u=p[4],p[5]!==m?(c=(0,o.jsxs)(nz.A,{children:[l,d,(0,o.jsx)(nL,{open:m,onClose:u})]}),p[5]=m,p[6]=c):c=p[6],c}},80803:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var o=l(6029),n=l(75155),r=l(95344),a=l(22350),i=l(29040);l(55729);var s=l(32195);let d=e=>{let t,l,d,u,c,p,m,b,g,h,f,x,y,k,C,v,S,A=(0,n.c)(35);A[0]!==e?({alertKey:d,severity:m,children:u,variant:h,sx:b,preventClose:p,additionalActions:l,wrapper:t,wrapperProps:g,...c}=e,A[0]=e,A[1]=t,A[2]=l,A[3]=d,A[4]=u,A[5]=c,A[6]=p,A[7]=m,A[8]=b,A[9]=g,A[10]=h):(t=A[1],l=A[2],d=A[3],u=A[4],c=A[5],p=A[6],m=A[7],b=A[8],g=A[9],h=A[10]),A[11]!==b?(f=void 0===b?{}:b,A[11]=b,A[12]=f):f=A[12];let j=f;A[13]!==g?(x=void 0===g?{}:g,A[13]=g,A[14]=x):x=A[14];let _=x,[F,T]=(0,s.A)("ha_"+d,!0);if(void 0===d)throw Error("key is required for HidableAlert");if(!F)return null;let E=l&&l;A[15]!==p||A[16]!==T?(y=!p&&(0,o.jsx)(r.A,{color:"primary",size:"small",onClick:()=>{T(!1)},children:(0,o.jsx)(i.X,{})}),A[15]=p,A[16]=T,A[17]=y):y=A[17],A[18]!==E||A[19]!==y?(k=(0,o.jsxs)(o.Fragment,{children:[E,y]}),A[18]=E,A[19]=y,A[20]=k):k=A[20],A[21]===Symbol.for("react.memo_cache_sentinel")?(C={whiteSpace:"nowrap"},A[21]=C):C=A[21],A[22]!==j?(v={"& .MuiButtonBase-root":C,...j},A[22]=j,A[23]=v):v=A[23],A[24]!==u||A[25]!==c||A[26]!==m||A[27]!==k||A[28]!==v||A[29]!==h?(S=(0,o.jsx)(a.A,{severity:m,variant:h,action:k,sx:v,...c,children:u}),A[24]=u,A[25]=c,A[26]=m,A[27]=k,A[28]=v,A[29]=h,A[30]=S):S=A[30];let R=S;if(t){let e;return A[31]!==t||A[32]!==R||A[33]!==_?(e=(0,o.jsx)(t,{..._,children:R}),A[31]=t,A[32]=R,A[33]=_,A[34]=e):e=A[34],e}return R}}},e=>{e.O(0,[6593,5105,542,6695,1474,8600,9664,3652,3761,1909,737,9610,4454,7874,3834,9545,299,4148,5328,6531,4100,636,8792],()=>e(e.s=59872)),_N_E=e.O()}]);
2//# sourceMappingURL=message-templates-a9e47284778d9ed6.js.map

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.