@treygrr/vjml 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +143 -0
- package/dist/types/components/VjmlRenderFrame.vue.d.ts +69 -0
- package/dist/types/composables/useVjml.d.ts +1 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/metadata.d.ts +24 -0
- package/dist/types/metadata.generated.d.ts +1231 -0
- package/dist/types/plugin.d.ts +14 -0
- package/dist/types/runtime/client/renderVjmlToDebugTree.d.ts +5 -0
- package/dist/types/runtime/client/renderVjmlToHtml.d.ts +5 -0
- package/dist/types/runtime/client/useVjmlRenderer.d.ts +10 -0
- package/dist/types/runtime/component-types.generated.d.ts +581 -0
- package/dist/types/runtime/components/Accordion.d.ts +2 -0
- package/dist/types/runtime/components/AccordionElement.d.ts +2 -0
- package/dist/types/runtime/components/AccordionText.d.ts +2 -0
- package/dist/types/runtime/components/AccordionTitle.d.ts +2 -0
- package/dist/types/runtime/components/All.d.ts +2 -0
- package/dist/types/runtime/components/Attributes.d.ts +2 -0
- package/dist/types/runtime/components/Body.d.ts +2 -0
- package/dist/types/runtime/components/Breakpoint.d.ts +2 -0
- package/dist/types/runtime/components/Button.d.ts +2 -0
- package/dist/types/runtime/components/Carousel.d.ts +2 -0
- package/dist/types/runtime/components/CarouselImage.d.ts +2 -0
- package/dist/types/runtime/components/Class.d.ts +2 -0
- package/dist/types/runtime/components/Column.d.ts +2 -0
- package/dist/types/runtime/components/Divider.d.ts +2 -0
- package/dist/types/runtime/components/Font.d.ts +2 -0
- package/dist/types/runtime/components/Group.d.ts +2 -0
- package/dist/types/runtime/components/Head.d.ts +2 -0
- package/dist/types/runtime/components/Hero.d.ts +2 -0
- package/dist/types/runtime/components/HtmlAttribute.d.ts +2 -0
- package/dist/types/runtime/components/HtmlAttributes.d.ts +2 -0
- package/dist/types/runtime/components/Image.d.ts +2 -0
- package/dist/types/runtime/components/Mjml.d.ts +2 -0
- package/dist/types/runtime/components/Navbar.d.ts +2 -0
- package/dist/types/runtime/components/NavbarLink.d.ts +2 -0
- package/dist/types/runtime/components/Preview.d.ts +2 -0
- package/dist/types/runtime/components/Raw.d.ts +2 -0
- package/dist/types/runtime/components/Section.d.ts +2 -0
- package/dist/types/runtime/components/Selector.d.ts +2 -0
- package/dist/types/runtime/components/Social.d.ts +2 -0
- package/dist/types/runtime/components/SocialElement.d.ts +2 -0
- package/dist/types/runtime/components/Spacer.d.ts +2 -0
- package/dist/types/runtime/components/Style.d.ts +2 -0
- package/dist/types/runtime/components/Table.d.ts +2 -0
- package/dist/types/runtime/components/Text.d.ts +2 -0
- package/dist/types/runtime/components/Title.d.ts +2 -0
- package/dist/types/runtime/components/Wrapper.d.ts +2 -0
- package/dist/types/runtime/components.generated.d.ts +77 -0
- package/dist/types/runtime/composables/useVjml.d.ts +2 -0
- package/dist/types/runtime/composables/useVjmlComponentName.d.ts +2 -0
- package/dist/types/runtime/internal/browserDocument.d.ts +2 -0
- package/dist/types/runtime/internal/browserRendering.d.ts +3 -0
- package/dist/types/runtime/internal/componentMetadata.d.ts +2 -0
- package/dist/types/runtime/internal/content.d.ts +3 -0
- package/dist/types/runtime/internal/context.d.ts +82 -0
- package/dist/types/runtime/internal/factory.d.ts +54 -0
- package/dist/types/runtime/internal/head.d.ts +3 -0
- package/dist/types/runtime/internal/helpers/conditional.d.ts +10 -0
- package/dist/types/runtime/internal/helpers/documentShared.d.ts +10 -0
- package/dist/types/runtime/internal/helpers/measurements.d.ts +10 -0
- package/dist/types/runtime/internal/helpers/shorthand.d.ts +3 -0
- package/dist/types/runtime/internal/interactive.d.ts +36 -0
- package/dist/types/runtime/internal/layout.d.ts +76 -0
- package/dist/types/runtime/internal/renderless.d.ts +1 -0
- package/dist/types/runtime/internal/vnodes.d.ts +11 -0
- package/dist/types/runtime/manifest.generated.d.ts +412 -0
- package/dist/types/runtime/types.d.ts +1 -0
- package/dist/types/vjml.d.ts +93 -0
- package/dist/vjml.cjs +154 -0
- package/dist/vjml.js +5056 -0
- package/package.json +73 -0
package/dist/vjml.cjs
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require(`vue`);function t(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>[e,`${t}`]))}function n(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{...t}]))}function r(e){return{backgroundColor:``,beforeDoctype:[],breakpoint:e.render.breakpoint,classes:{},classesDefault:{},componentsHeadStyle:[],defaultAttributes:{},dir:`auto`,fonts:{...e.render.fonts},forceOWADesktop:!1,headRaw:[],headStyle:{},htmlAttributes:{},inlineStyle:[],lang:`und`,mediaQueries:{},preview:``,printerSupport:!1,style:[],title:``,wrapWithDocument:!1}}function i(e,t){t.length>0&&e.push(t)}function a(e,n,r){let i=t(r);!n||Object.keys(i).length===0||(e[n]={...e[n]??{},...i})}function o(e){return typeof e==`string`||typeof e==`function`?e:null}function s(e){let t=r(e);return{state:t,beginDocument:(e={})=>{t.wrapWithDocument=!0,e.lang!==void 0&&(t.lang=e.lang),e.dir!==void 0&&(t.dir=e.dir),e.forceOWADesktop!==void 0&&(t.forceOWADesktop=e.forceOWADesktop),e.printerSupport!==void 0&&(t.printerSupport=e.printerSupport)},addBeforeDoctype(e){i(t.beforeDoctype,e)},addComponentHeadStyle(e){let n=o(e);n&&t.componentsHeadStyle.push(n)},addFont(e,n){!e||!n||(t.fonts[e]=n)},addHeadRaw(e){i(t.headRaw,e)},addHeadStyle(e,n){let r=o(n);!e||!r||(t.headStyle[e]=r)},addHtmlAttribute(e,n,r){!e||!n||(t.htmlAttributes[e]={...t.htmlAttributes[e]??{},[n]:r})},addInlineStyle(e){i(t.inlineStyle,e)},addMediaQuery(e,{parsedWidth:n,unit:r}){e&&(t.mediaQueries[e]=`{ width:${n}${r} !important; max-width: ${n}${r}; }`)},addStyle(e){let n=o(e);n&&t.style.push(n)},getState(){return{...t,beforeDoctype:[...t.beforeDoctype],classes:n(t.classes),classesDefault:n(t.classesDefault),componentsHeadStyle:[...t.componentsHeadStyle],defaultAttributes:n(t.defaultAttributes),fonts:{...t.fonts},headRaw:[...t.headRaw],headStyle:{...t.headStyle},htmlAttributes:n(t.htmlAttributes),inlineStyle:[...t.inlineStyle],mediaQueries:{...t.mediaQueries},style:[...t.style]}},mergeClassAttributes(e,n){a(t.classes,e,n)},mergeClassDefaultAttributes(e,n){a(t.classesDefault,e,n)},mergeDefaultAttributes(e,n){a(t.defaultAttributes,e,n)},setBackgroundColor(e){t.backgroundColor=e},setBreakpoint(e){e&&(t.breakpoint=e)},setDir(e){e&&(t.dir=e)},setForceOWADesktop(e){t.forceOWADesktop=e},setLang(e){e&&(t.lang=e)},setPreview(e){t.preview=e},setPrinterSupport(e){t.printerSupport=e},setTitle(e){t.title=e}}}function c(e){return{document:e,addComponentHeadStyle:e.addComponentHeadStyle,addHeadStyle:e.addHeadStyle,addMediaQuery:e.addMediaQuery,setBackgroundColor:e.setBackgroundColor}}function l(e){return{document:e,add(t,...n){switch(t){case`breakpoint`:typeof n[0]==`string`&&e.setBreakpoint(n[0]);return;case`classes`:typeof n[0]==`string`&&typeof n[1]==`object`&&n[1]!==null&&e.mergeClassAttributes(n[0],n[1]);return;case`classesDefault`:typeof n[0]==`string`&&typeof n[1]==`object`&&n[1]!==null&&e.mergeClassDefaultAttributes(n[0],n[1]);return;case`componentsHeadStyle`:{let t=o(n[0]);t&&e.addComponentHeadStyle(t);return}case`defaultAttributes`:typeof n[0]==`string`&&typeof n[1]==`object`&&n[1]!==null&&e.mergeDefaultAttributes(n[0],n[1]);return;case`fonts`:typeof n[0]==`string`&&typeof n[1]==`string`&&e.addFont(n[0],n[1]);return;case`headRaw`:typeof n[0]==`string`&&e.addHeadRaw(n[0]);return;case`htmlAttributes`:typeof n[0]==`string`&&typeof n[1]==`string`&&typeof n[2]==`string`&&e.addHtmlAttribute(n[0],n[1],n[2]);return;case`inlineStyle`:typeof n[0]==`string`&&e.addInlineStyle(n[0]);return;case`preview`:typeof n[0]==`string`&&e.setPreview(n[0]);return;case`style`:{let t=o(n[0]);t&&e.addStyle(t);return}case`title`:typeof n[0]==`string`&&e.setTitle(n[0]);return}}}}var u=Symbol(`vue-mjml-runtime-config`),d=Symbol(`vue-mjml-document-context`),f=Symbol(`vue-mjml-body-render-context`),p=Symbol(`vue-mjml-head-collection-context`),m=Symbol(`vue-mjml-validation-reporter`);function h(){return(0,e.inject)(d,null)}function g(){return(0,e.inject)(f,null)}function _(){return(0,e.inject)(p,null)}function v(){return(0,e.inject)(m,null)}var ee=[{tagName:`mj-accordion`,source:`preset-core`,allowedAttributes:{"container-background-color":`color`,border:`string`,"font-family":`string`,"icon-align":`enum(top,middle,bottom)`,"icon-width":`unit(px,%)`,"icon-height":`unit(px,%)`,"icon-wrapped-url":`string`,"icon-wrapped-alt":`string`,"icon-unwrapped-url":`string`,"icon-unwrapped-alt":`string`,"icon-position":`enum(left,right)`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{border:`2px solid black`,"font-family":`Ubuntu, Helvetica, Arial, sans-serif`,"icon-align":`middle`,"icon-wrapped-url":`https://i.imgur.com/bIXv1bk.png`,"icon-wrapped-alt":`+`,"icon-unwrapped-url":`https://i.imgur.com/w4uTygT.png`,"icon-unwrapped-alt":`-`,"icon-position":`right`,"icon-height":`32px`,"icon-width":`32px`,padding:`10px 25px`},allowedChildTagNames:[`mj-accordion-element`,`mj-raw`],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Accordion`},{tagName:`mj-accordion-element`,source:`preset-core`,allowedAttributes:{"background-color":`color`,border:`string`,"font-family":`string`,"icon-align":`enum(top,middle,bottom)`,"icon-width":`unit(px,%)`,"icon-height":`unit(px,%)`,"icon-wrapped-url":`string`,"icon-wrapped-alt":`string`,"icon-unwrapped-url":`string`,"icon-unwrapped-alt":`string`,"icon-position":`enum(left,right)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{title:{img:{width:`32px`,height:`32px`}}},allowedChildTagNames:[`mj-accordion-title`,`mj-accordion-text`,`mj-raw`],allowedParentTagNames:[`mj-accordion`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`AccordionElement`},{tagName:`mj-accordion-text`,source:`preset-core`,allowedAttributes:{"background-color":`color`,"font-size":`unit(px)`,"font-family":`string`,"font-weight":`string`,"letter-spacing":`unitWithNegative(px,em)`,"line-height":`unit(px,%,)`,color:`color`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{"font-size":`13px`,"line-height":`1`,padding:`16px`},allowedChildTagNames:[],allowedParentTagNames:[`mj-accordion-element`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`AccordionText`},{tagName:`mj-accordion-title`,source:`preset-core`,allowedAttributes:{"background-color":`color`,color:`color`,"font-size":`unit(px)`,"font-family":`string`,"font-weight":`string`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{"font-size":`13px`,padding:`16px`},allowedChildTagNames:[],allowedParentTagNames:[`mj-accordion-element`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`AccordionTitle`},{tagName:`mj-all`,source:`manual`,allowedAttributes:{},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mj-attributes`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!0,preservesRawContent:!1,slotKind:`none`},componentBaseName:`All`},{tagName:`mj-attributes`,source:`preset-core`,allowedAttributes:{},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mj-head`],supportsAnyChildTag:!0,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Attributes`},{tagName:`mj-body`,source:`preset-core`,allowedAttributes:{width:`unit(px)`,"background-color":`color`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{width:`600px`},allowedChildTagNames:[`mj-raw`,`mj-section`,`mj-wrapper`,`mj-hero`],allowedParentTagNames:[`mjml`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Body`},{tagName:`mj-breakpoint`,source:`preset-core`,allowedAttributes:{width:`unit(px)`},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mj-head`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`Breakpoint`},{tagName:`mj-button`,source:`preset-core`,allowedAttributes:{align:`enum(left,center,right)`,"background-color":`color`,"border-bottom":`string`,"border-left":`string`,"border-radius":`string`,"border-right":`string`,"border-top":`string`,border:`string`,color:`color`,"container-background-color":`color`,"font-family":`string`,"font-size":`unit(px)`,"font-style":`string`,"font-weight":`string`,height:`unit(px,%)`,href:`string`,name:`string`,title:`string`,"inner-padding":`unit(px,%){1,4}`,"letter-spacing":`unitWithNegative(px,em)`,"line-height":`unit(px,%,)`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,rel:`string`,target:`string`,"text-decoration":`string`,"text-transform":`string`,"vertical-align":`enum(top,bottom,middle)`,"text-align":`enum(left,right,center)`,width:`unit(px,%)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{align:`center`,"background-color":`#414141`,border:`none`,"border-radius":`3px`,color:`#ffffff`,"font-family":`Ubuntu, Helvetica, Arial, sans-serif`,"font-size":`13px`,"font-weight":`normal`,"inner-padding":`10px 25px`,"line-height":`120%`,padding:`10px 25px`,target:`_blank`,"text-decoration":`none`,"text-transform":`none`,"vertical-align":`middle`},allowedChildTagNames:[],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`Button`},{tagName:`mj-carousel`,source:`preset-core`,allowedAttributes:{align:`enum(left,center,right)`,"border-radius":`unit(px,%){1,4}`,"container-background-color":`color`,"icon-width":`unit(px,%)`,"left-icon":`string`,padding:`unit(px,%){1,4}`,"padding-top":`unit(px,%)`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"right-icon":`string`,thumbnails:`enum(visible,hidden,supported)`,"tb-border":`string`,"tb-border-radius":`unit(px,%)`,"tb-hover-border-color":`color`,"tb-selected-border-color":`color`,"tb-width":`unit(px,%)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{align:`center`,"border-radius":`6px`,"icon-width":`44px`,"left-icon":`https://i.imgur.com/xTh3hln.png`,"right-icon":`https://i.imgur.com/os7o9kz.png`,thumbnails:`visible`,"tb-border":`2px solid transparent`,"tb-border-radius":`6px`,"tb-hover-border-color":`#fead0d`,"tb-selected-border-color":`#cccccc`},allowedChildTagNames:[`mj-carousel-image`],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Carousel`},{tagName:`mj-carousel-image`,source:`preset-core`,allowedAttributes:{alt:`string`,href:`string`,rel:`string`,target:`string`,title:`string`,src:`string`,"thumbnails-src":`string`,"border-radius":`unit(px,%){1,4}`,"tb-border":`string`,"tb-border-radius":`unit(px,%){1,4}`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{alt:``,target:`_blank`},allowedChildTagNames:[],allowedParentTagNames:[`mj-carousel`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`CarouselImage`},{tagName:`mj-class`,source:`manual`,allowedAttributes:{name:`string`},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mj-attributes`],supportsAnyChildTag:!0,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!0,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Class`},{tagName:`mj-column`,source:`preset-core`,allowedAttributes:{"background-color":`color`,border:`string`,"border-bottom":`string`,"border-left":`string`,"border-radius":`unit(px,%){1,4}`,"border-right":`string`,"border-top":`string`,direction:`enum(ltr,rtl)`,"inner-background-color":`color`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,"inner-border":`string`,"inner-border-bottom":`string`,"inner-border-left":`string`,"inner-border-radius":`unit(px,%){1,4}`,"inner-border-right":`string`,"inner-border-top":`string`,padding:`unit(px,%){1,4}`,"vertical-align":`enum(top,bottom,middle)`,width:`unit(px,%)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{direction:`ltr`,"vertical-align":`top`},allowedChildTagNames:[`mj-accordion`,`mj-button`,`mj-carousel`,`mj-divider`,`mj-image`,`mj-raw`,`mj-social`,`mj-spacer`,`mj-table`,`mj-text`,`mj-navbar`],allowedParentTagNames:[`mj-group`,`mj-section`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Column`},{tagName:`mj-divider`,source:`preset-core`,allowedAttributes:{"border-color":`color`,"border-style":`string`,"border-width":`unit(px)`,"container-background-color":`color`,padding:`unit(px,%){1,4}`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,width:`unit(px,%)`,align:`enum(left,center,right)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{"border-color":`#000000`,"border-style":`solid`,"border-width":`4px`,padding:`10px 25px`,width:`100%`,align:`center`},allowedChildTagNames:[],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`none`},componentBaseName:`Divider`},{tagName:`mj-font`,source:`preset-core`,allowedAttributes:{name:`string`,href:`string`},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mj-head`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`none`},componentBaseName:`Font`},{tagName:`mj-group`,source:`preset-core`,allowedAttributes:{"background-color":`color`,direction:`enum(ltr,rtl)`,"vertical-align":`enum(top,bottom,middle)`,width:`unit(px,%)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{direction:`ltr`},allowedChildTagNames:[`mj-column`,`mj-raw`],allowedParentTagNames:[`mj-section`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Group`},{tagName:`mj-head`,source:`preset-core`,allowedAttributes:{},defaultAttributes:{},allowedChildTagNames:[`mj-attributes`,`mj-breakpoint`,`mj-html-attributes`,`mj-font`,`mj-preview`,`mj-style`,`mj-title`,`mj-raw`],allowedParentTagNames:[`mjml`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Head`},{tagName:`mj-hero`,source:`preset-core`,allowedAttributes:{mode:`string`,height:`unit(px,%)`,"background-url":`string`,"background-width":`unit(px,%)`,"background-height":`unit(px,%)`,"background-position":`string`,"border-radius":`string`,"container-background-color":`color`,"inner-background-color":`color`,"inner-padding":`unit(px,%){1,4}`,"inner-padding-top":`unit(px,%)`,"inner-padding-left":`unit(px,%)`,"inner-padding-right":`unit(px,%)`,"inner-padding-bottom":`unit(px,%)`,padding:`unit(px,%){1,4}`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,"background-color":`color`,"vertical-align":`enum(top,bottom,middle)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{mode:`fixed-height`,height:`0px`,"background-url":null,"background-position":`center center`,padding:`0px`,"padding-bottom":null,"padding-left":null,"padding-right":null,"padding-top":null,"background-color":`#ffffff`,"vertical-align":`top`},allowedChildTagNames:[`mj-accordion`,`mj-button`,`mj-carousel`,`mj-divider`,`mj-image`,`mj-social`,`mj-spacer`,`mj-table`,`mj-text`,`mj-navbar`,`mj-raw`],allowedParentTagNames:[`mj-body`,`mj-wrapper`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Hero`},{tagName:`mj-html-attribute`,source:`manual`,allowedAttributes:{name:`string`},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mj-selector`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`text`},componentBaseName:`HtmlAttribute`},{tagName:`mj-html-attributes`,source:`preset-core`,allowedAttributes:{},defaultAttributes:{},allowedChildTagNames:[`mj-selector`],allowedParentTagNames:[`mj-head`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`HtmlAttributes`},{tagName:`mj-image`,source:`preset-core`,allowedAttributes:{alt:`string`,href:`string`,name:`string`,src:`string`,srcset:`string`,sizes:`string`,title:`string`,rel:`string`,align:`enum(left,center,right)`,border:`string`,"border-bottom":`string`,"border-left":`string`,"border-right":`string`,"border-top":`string`,"border-radius":`unit(px,%){1,4}`,"container-background-color":`color`,"fluid-on-mobile":`boolean`,padding:`unit(px,%){1,4}`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,target:`string`,width:`unit(px)`,height:`unit(px,auto)`,"max-height":`unit(px,%)`,"font-size":`unit(px)`,usemap:`string`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{alt:``,align:`center`,border:`0`,height:`auto`,padding:`10px 25px`,target:`_blank`,"font-size":`13px`},allowedChildTagNames:[],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`none`},componentBaseName:`Image`},{tagName:`mj-navbar`,source:`preset-core`,allowedAttributes:{align:`enum(left,center,right)`,"base-url":`string`,hamburger:`string`,"ico-align":`enum(left,center,right)`,"ico-open":`string`,"ico-close":`string`,"ico-color":`color`,"ico-font-size":`unit(px,%)`,"ico-font-family":`string`,"ico-text-transform":`string`,"ico-padding":`unit(px,%){1,4}`,"ico-padding-left":`unit(px,%)`,"ico-padding-top":`unit(px,%)`,"ico-padding-right":`unit(px,%)`,"ico-padding-bottom":`unit(px,%)`,padding:`unit(px,%){1,4}`,"padding-left":`unit(px,%)`,"padding-top":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-bottom":`unit(px,%)`,"ico-text-decoration":`string`,"ico-line-height":`unit(px,%,)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{align:`center`,"base-url":null,hamburger:null,"ico-align":`center`,"ico-open":`☰`,"ico-close":`⊗`,"ico-color":`#000000`,"ico-font-size":`30px`,"ico-font-family":`Ubuntu, Helvetica, Arial, sans-serif`,"ico-text-transform":`uppercase`,"ico-padding":`10px`,"ico-text-decoration":`none`,"ico-line-height":`30px`},allowedChildTagNames:[`mj-navbar-link`,`mj-raw`],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Navbar`},{tagName:`mj-navbar-link`,source:`preset-core`,allowedAttributes:{color:`color`,"font-family":`string`,"font-size":`unit(px)`,"font-style":`string`,"font-weight":`string`,href:`string`,name:`string`,target:`string`,rel:`string`,"letter-spacing":`unitWithNegative(px,em)`,"line-height":`unit(px,%,)`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,"text-decoration":`string`,"text-transform":`string`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{color:`#000000`,"font-family":`Ubuntu, Helvetica, Arial, sans-serif`,"font-size":`13px`,"font-weight":`normal`,"line-height":`22px`,padding:`15px 10px`,target:`_blank`,"text-decoration":`none`,"text-transform":`uppercase`},allowedChildTagNames:[],allowedParentTagNames:[`mj-navbar`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`NavbarLink`},{tagName:`mj-preview`,source:`preset-core`,allowedAttributes:{},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mj-head`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`text`},componentBaseName:`Preview`},{tagName:`mj-raw`,source:`preset-core`,allowedAttributes:{position:`enum(file-start)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mjml`,`mj-accordion`,`mj-accordion-element`,`mj-body`,`mj-column`,`mj-group`,`mj-head`,`mj-hero`,`mj-navbar`,`mj-section`,`mj-social`,`mj-wrapper`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!0,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`Raw`},{tagName:`mj-section`,source:`preset-core`,allowedAttributes:{"background-color":`color`,"background-url":`string`,"background-repeat":`enum(repeat,no-repeat)`,"background-size":`string`,"background-position":`string`,"background-position-x":`string`,"background-position-y":`string`,border:`string`,"border-bottom":`string`,"border-left":`string`,"border-radius":`string`,"border-right":`string`,"border-top":`string`,direction:`enum(ltr,rtl)`,"full-width":`enum(full-width,false,)`,padding:`unit(px,%){1,4}`,"padding-top":`unit(px,%)`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"text-align":`enum(left,center,right)`,"text-padding":`unit(px,%){1,4}`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{"background-repeat":`repeat`,"background-size":`auto`,"background-position":`top center`,direction:`ltr`,padding:`20px 0`,"text-align":`center`,"text-padding":`4px 4px 4px 0`},allowedChildTagNames:[`mj-column`,`mj-group`,`mj-raw`],allowedParentTagNames:[`mj-body`,`mj-wrapper`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Section`},{tagName:`mj-selector`,source:`manual`,allowedAttributes:{path:`string`},defaultAttributes:{},allowedChildTagNames:[`mj-html-attribute`],allowedParentTagNames:[`mj-html-attributes`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Selector`},{tagName:`mj-social`,source:`preset-core`,allowedAttributes:{align:`enum(left,right,center)`,"border-radius":`unit(px,%)`,"container-background-color":`color`,color:`color`,"font-family":`string`,"font-size":`unit(px)`,"font-style":`string`,"font-weight":`string`,"icon-size":`unit(px,%)`,"icon-height":`unit(px,%)`,"icon-padding":`unit(px,%){1,4}`,"inner-padding":`unit(px,%){1,4}`,"line-height":`unit(px,%,)`,mode:`enum(horizontal,vertical)`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,"table-layout":`enum(auto,fixed)`,"text-padding":`unit(px,%){1,4}`,"text-decoration":`string`,"vertical-align":`enum(top,bottom,middle)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{align:`center`,"border-radius":`3px`,color:`#333333`,"font-family":`Ubuntu, Helvetica, Arial, sans-serif`,"font-size":`13px`,"icon-size":`20px`,"inner-padding":null,"line-height":`22px`,mode:`horizontal`,padding:`10px 25px`,"text-decoration":`none`},allowedChildTagNames:[`mj-social-element`,`mj-raw`],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Social`},{tagName:`mj-social-element`,source:`preset-core`,allowedAttributes:{align:`enum(left,center,right)`,"icon-position":`enum(left,right)`,"background-color":`color`,color:`color`,"border-radius":`unit(px)`,"font-family":`string`,"font-size":`unit(px)`,"font-style":`string`,"font-weight":`string`,href:`string`,"icon-size":`unit(px,%)`,"icon-height":`unit(px,%)`,"icon-padding":`unit(px,%){1,4}`,"line-height":`unit(px,%,)`,name:`string`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,"text-padding":`unit(px,%){1,4}`,rel:`string`,src:`string`,srcset:`string`,sizes:`string`,alt:`string`,title:`string`,target:`string`,"text-decoration":`string`,"vertical-align":`enum(top,middle,bottom)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{alt:``,align:`left`,"icon-position":`left`,color:`#000`,"border-radius":`3px`,"font-family":`Ubuntu, Helvetica, Arial, sans-serif`,"font-size":`13px`,"line-height":`1`,padding:`4px`,"text-padding":`4px 4px 4px 0`,target:`_blank`,"text-decoration":`none`,"vertical-align":`middle`},allowedChildTagNames:[],allowedParentTagNames:[`mj-social`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`SocialElement`},{tagName:`mj-spacer`,source:`preset-core`,allowedAttributes:{border:`string`,"border-bottom":`string`,"border-left":`string`,"border-right":`string`,"border-top":`string`,"container-background-color":`color`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,height:`unit(px,%)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{height:`20px`},allowedChildTagNames:[],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`none`},componentBaseName:`Spacer`},{tagName:`mj-style`,source:`preset-core`,allowedAttributes:{inline:`string`},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mj-head`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`text`},componentBaseName:`Style`},{tagName:`mj-table`,source:`preset-core`,allowedAttributes:{align:`enum(left,right,center)`,border:`string`,cellpadding:`integer`,cellspacing:`integer`,"container-background-color":`color`,color:`color`,"font-family":`string`,"font-size":`unit(px)`,"font-weight":`string`,"line-height":`unit(px,%,)`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,role:`enum(none,presentation)`,"table-layout":`enum(auto,fixed,initial,inherit)`,"vertical-align":`enum(top,bottom,middle)`,width:`unit(px,%,auto)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{align:`left`,border:`none`,cellpadding:`0`,cellspacing:`0`,color:`#000000`,"font-family":`Ubuntu, Helvetica, Arial, sans-serif`,"font-size":`13px`,"line-height":`22px`,padding:`10px 25px`,"table-layout":`auto`,width:`100%`},allowedChildTagNames:[],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`Table`},{tagName:`mj-text`,source:`preset-core`,allowedAttributes:{align:`enum(left,right,center,justify)`,"background-color":`color`,color:`color`,"container-background-color":`color`,"font-family":`string`,"font-size":`unit(px)`,"font-style":`string`,"font-weight":`string`,height:`unit(px,%)`,"letter-spacing":`unitWithNegative(px,em)`,"line-height":`unit(px,%,)`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"padding-top":`unit(px,%)`,padding:`unit(px,%){1,4}`,"text-decoration":`string`,"text-transform":`string`,"vertical-align":`enum(top,bottom,middle)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{align:`left`,color:`#000000`,"font-family":`Ubuntu, Helvetica, Arial, sans-serif`,"font-size":`13px`,"line-height":`1`,padding:`10px 25px`},allowedChildTagNames:[],allowedParentTagNames:[`mj-column`,`mj-hero`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`html`},componentBaseName:`Text`},{tagName:`mj-title`,source:`preset-core`,allowedAttributes:{},defaultAttributes:{},allowedChildTagNames:[],allowedParentTagNames:[`mj-head`],supportsAnyChildTag:!1,endingTag:!0,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!0,slotKind:`text`},componentBaseName:`Title`},{tagName:`mj-wrapper`,source:`preset-core`,allowedAttributes:{"background-color":`color`,"background-url":`string`,"background-repeat":`enum(repeat,no-repeat)`,"background-size":`string`,"background-position":`string`,"background-position-x":`string`,"background-position-y":`string`,border:`string`,"border-bottom":`string`,"border-left":`string`,"border-radius":`string`,"border-right":`string`,"border-top":`string`,direction:`enum(ltr,rtl)`,"full-width":`enum(full-width,false,)`,padding:`unit(px,%){1,4}`,"padding-top":`unit(px,%)`,"padding-bottom":`unit(px,%)`,"padding-left":`unit(px,%)`,"padding-right":`unit(px,%)`,"text-align":`enum(left,center,right)`,"text-padding":`unit(px,%){1,4}`,gap:`unit(px)`,"css-class":`string`,"mj-class":`string`},defaultAttributes:{"background-repeat":`repeat`,"background-size":`auto`,"background-position":`top center`,direction:`ltr`,padding:`20px 0`,"text-align":`center`,"text-padding":`4px 4px 4px 0`},allowedChildTagNames:[`mj-hero`,`mj-raw`,`mj-section`],allowedParentTagNames:[`mj-body`],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Wrapper`},{tagName:`mjml`,source:`manual`,allowedAttributes:{dir:`string`,lang:`string`,owa:`string`},defaultAttributes:{dir:`auto`,lang:`und`,owa:`none`},allowedChildTagNames:[`mj-body`,`mj-head`,`mj-raw`],allowedParentTagNames:[],supportsAnyChildTag:!1,endingTag:!1,rawElement:!1,serialization:{allowsArbitraryAttributes:!1,preservesRawContent:!1,slotKind:`mjml`},componentBaseName:`Mjml`}],te=[`mjml`,`mj-all`,`mj-class`,`mj-selector`,`mj-html-attribute`],ne=Object.freeze(ee),re=Object.freeze(Object.fromEntries(ne.map(e=>[e.tagName,e]))),ie=Object.freeze([...te]);function y(e){return re[e.trim().toLowerCase()]??null}function b(e){let t=y(e);if(!t)throw Error(`Missing VJML metadata for '${e}'.`);return t}function ae(e,t){return Object.assign(e,{__vjmlTagName:t}),e}function oe(t,n){if(!(t==null||typeof t==`boolean`)){if(Array.isArray(t)){for(let e of t)oe(e,n);return}if((0,e.isVNode)(t)){if(t.type===e.Fragment){oe(t.children,n);return}n.push(t);return}(typeof t==`string`||typeof t==`number`)&&n.push((0,e.createTextVNode)(`${t}`))}}function x(e){let t=[];return oe(e,t),t}function S(e){return e.props??{}}function C(e){let t=e.children;return t&&typeof t==`object`&&!Array.isArray(t)&&`default`in t&&typeof t.default==`function`?x(t.default()):x(t)}function w(e){return typeof e.type==`string`?e.type:typeof e.type==`object`&&e.type!==null?e.type.__vjmlTagName??null:null}function se(t){return t.map(t=>t.type===e.Comment?``:t.type===e.Text?typeof t.children==`string`?t.children:``:typeof t.children==`string`?t.children:se(C(t))).join(``)}function T(e){return typeof e.children==`string`?e.children:se(C(e))}var ce={class:`css-class`,className:`css-class`,cssClass:`css-class`,mjClass:`mj-class`},le=[`content`,`html`,`text`],ue={"full-width":`full-width`,inline:`inline`},de=Symbol(`vue-mjml-component-tag-name`),fe=Symbol(`vue-mjml-active-mj-class`);function pe(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/[\s_]+/g,`-`).toLowerCase()}function me(e){return/^on[A-Z]/.test(e)}function he(e){return le.includes(e)}function ge(e,t){return[e,t].filter(Boolean).join(` `).trim()}function _e(e){return e?e.split(/\s+/).filter(Boolean):[]}function ve(e){return ce[e]??pe(e)}function ye(e,t){return e.allowedAttributes[t]??null}function be(e){return e?.includes(`unit(`)===!0||e?.includes(`unitWithNegative(`)===!0}function xe(e){return e?.startsWith(`integer`)===!0}function Se(e){return e===`boolean`}function Ce(e,t,n){let r=ue[e];return r?t?r:`false`:Se(n)?t?`true`:`false`:t?`true`:null}function we(t,n,r){let i=ye(r,t);if(n==null)return null;if(t===`css-class`||t===`mj-class`){let t=(0,e.normalizeClass)(n);return t.length>0?t:null}if(typeof n==`boolean`)return Ce(t,n,i);if(typeof n==`number`)return xe(i)?`${Math.trunc(n)}`:be(i)?`${n}px`:`${n}`;if(typeof n==`string`){if(n===``){let e=ue[t];if(e)return e;if(Se(i))return`true`}return n}return null}function Te(e,t){for(let n of t){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let t=e[n];if(t==null)return{propName:n,propValue:null};if(typeof t==`string`||typeof t==`number`||typeof t==`boolean`)return{propName:n,propValue:`${t}`}}return{propName:null,propValue:null}}function Ee(e,t,n,r){let i=t.default?.()??[],a=n.serialization.slotKind,o=a===`html`?Te(e,[`html`,`content`]):a===`text`?Te(e,[`text`,`content`]):Te(e,[`content`,`html`,`text`]),s=i.length>0,c=o.propName!==null;return a===`none`&&(s||c)&&r?.report({code:`unexpected-content`,message:`'${n.tagName}' does not accept child content.`,severity:`warning`,tagName:n.tagName}),a===`mjml`&&o.propName!==null&&r?.report({code:`unexpected-content-prop`,message:`'${n.tagName}' expects nested VJML children instead of a content prop.`,severity:`warning`,tagName:n.tagName}),{childNodes:i,hasContent:c||s,propName:o.propName,propValue:o.propValue,slotKind:a,source:c?`prop`:s?`slot`:`none`}}function De(e,t){let n={...t.defaultAttributes},r={};for(let[i,a]of Object.entries(e)){if(me(i)||he(i))continue;let e=ve(i);if(!(e in t.allowedAttributes)&&!t.serialization.allowsArbitraryAttributes)continue;let o=we(e,a,t);if(o!==null){if(e===`css-class`||e===`mj-class`){n[e]=ge(n[e],o),r[e]=ge(r[e],o);continue}n[e]=o,r[e]=o}}return{attrs:n,explicitAttrs:r}}function E(e,t,n={}){if(t){for(let[r,i]of Object.entries(t))if(i!==void 0&&!(n.omitMjClass&&r===`mj-class`)){if(r===`css-class`){e[r]=ge(e[r],i);continue}e[r]=i}}}function Oe(e,t,n={}){let r=De(e,t),i=n.documentContext;if(!i)return r;let a={...t.defaultAttributes},o=_e(r.explicitAttrs[`mj-class`]),s=_e(n.inheritedMjClass);E(a,i.state.defaultAttributes[`mj-all`]),E(a,i.state.defaultAttributes[t.tagName]);for(let e of o)E(a,i.state.classes[e]);for(let e of s)E(a,i.state.classesDefault[`${e}.${t.tagName}`]);return E(a,r.explicitAttrs,{omitMjClass:!0}),{attrs:a,explicitAttrs:r.explicitAttrs}}function ke(e,t,n){!n||e.allowedParentTagNames.length===0||t&&e.allowedParentTagNames.includes(t)||n.reportInvalidParent(e.tagName,t,e.allowedParentTagNames)}function Ae(e,t,n){if(!n||!t)return;let r=y(t);!r||r.supportsAnyChildTag||r.allowedChildTagNames.includes(e.tagName)||n.reportInvalidChild(r.tagName,e.tagName,r.allowedChildTagNames)}function je(e,t,n={}){return Oe(e,t,n)}function D(t,n){return ae((0,e.defineComponent)({name:n.name??`Vjml${t.componentBaseName}`,inheritAttrs:!1,setup(r,i){let a=(0,e.inject)(de,null),o=(0,e.inject)(fe,``),s=h(),c=g(),l=_(),u=v(),d=De(i.attrs,t).explicitAttrs[`mj-class`]??o;ke(t,a,u),Ae(t,a,u),(0,e.provide)(de,t.tagName),(0,e.provide)(fe,d);let f=n.setup?.({activeMjClass:d,bodyRenderContext:c,documentContext:s,headCollectionContext:l,inheritedMjClass:o,metadata:t,parentTagName:a,slots:i.slots,validationReporter:u});return()=>{let e=i.attrs,r=Oe(e,t,{documentContext:s,inheritedMjClass:o}),d=Ee(e,i.slots,t,u),p=r.explicitAttrs[`mj-class`]??o;return n.render({activeMjClass:p,attrs:r.attrs,bodyRenderContext:c,content:d,documentContext:s,explicitAttrs:r.explicitAttrs,headCollectionContext:l,inheritedMjClass:o,metadata:t,parentTagName:a,rawAttrs:e,slots:i.slots,validationReporter:u},f)}}}),t.tagName)}var Me=/^([\d.]+)(px|%)$/i;function Ne(e){return Number.isInteger(e)?String(e):`${e}`}function O(e,t={}){let n=e.trim().match(Me);if(!n)throw Error(`Invalid width value '${e}'. Expected a numeric value followed by px or %.`);let r=n[1],i=n[2];if(!r||!i)throw Error(`Unable to parse width value '${e}'.`);let a=i.toLowerCase(),o=t.parseFloatToInt===!1||a===`%`?Number.parseFloat(r):Number.parseInt(r,10);if(Number.isNaN(o))throw TypeError(`Unable to parse width value '${e}'.`);return{parsedWidth:o,unit:a}}function Pe(e){let{parsedWidth:t,unit:n}=O(e,{parseFloatToInt:!1});return`${Ne(Math.max(0,t-1))}${n}`}function Fe(e){if(!e)return 0;let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}function Ie(e,t){let n=e.trim().split(/\s+/).filter(Boolean);switch(n.length){case 1:return Fe(n[0]);case 2:return Fe(t===`top`||t===`bottom`?n[0]:n[1]);case 3:return Fe(t===`top`?n[0]:t===`bottom`?n[2]:n[1]);default:return Fe(t===`top`?n[0]:t===`right`?n[1]:t===`bottom`?n[2]:n[3])}}function Le(e){let t=e.match(/(\d+)/);return t?.[1]?Number.parseInt(t[1],10):0}var Re=`600px`,ze=Object.freeze({containerWidth:Re,gap:``,parentWidth:Re,preserveMobileWidth:!1}),Be=Object.freeze({first:!0,index:0,last:!0,nonRawSiblings:1,siblingCount:1}),Ve=Symbol(`vue-mjml-layout-context`),He=Symbol(`vue-mjml-sibling-context`);function Ue(e){return e==null}function We(e,t={}){return(t.escapeAmpersand??!0?e.replace(/&/g,`&`):e).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`)}function k(t={}){return(0,e.reactive)({...ze,...t})}function A(t){(0,e.provide)(Ve,t)}function j(){return(0,e.inject)(Ve,ze)}function M(){return(0,e.inject)(He,Be)}var Ge=(0,e.defineComponent)({name:`VjmlSiblingContextProvider`,props:{value:{required:!0,type:Object}},setup(t,{slots:n}){return(0,e.provide)(He,t.value),()=>n.default?.()??[]}});function N(t,n){return(0,e.h)(Ge,{value:n},{default:()=>[t]})}function P(t){return t.length===0?``:(0,e.createStaticVNode)(t,1)}function F(e){return typeof e==`string`?e:Object.entries(e).filter(([,e])=>!Ue(e)).map(([e,t])=>`${e}:${t};`).join(``)}function I(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>!Ue(e)))}function L(e,t={}){return Object.entries(e).filter(([,e])=>!Ue(e)&&e!==!1).map(([e,n])=>` ${e}="${We(typeof n==`boolean`?e:e===`style`&&typeof n==`object`?F(n):`${n}`,t)}"`).join(``)}function R(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}function Ke(e){return Math.max(e,1)}function qe(e){return w(e)?!1:T(e).trim().length===0}function z(e){let t=x(e).filter(e=>!qe(e)),n=Math.max(t.filter(e=>{let t=w(e);return t?!(y(t)?.rawElement??!1):!0}).length,1);return t.map((e,r)=>{let i=w(e);return{rawElement:i?y(i)?.rawElement??!1:!1,siblingContext:{first:r===0,index:r,last:r+1===t.length,nonRawSiblings:n,siblingCount:t.length},tagName:i,vnode:e}})}function B(e,t={}){let n=w(e);if(!n)return{};let r=y(n);return r?je(S(e),r,t).attrs:{}}function V(e,t){return e?e.split(/\s+/).filter(Boolean).map(e=>`${e}-${t}`).join(` `):``}function H(e){return e!==void 0&&e!==``}function U(e,t,n){let r=e[`${t}-${n}`];if(r){let e=Number.parseInt(r,10);return Number.isNaN(e)?0:e}let i=e[t];return i?Ie(i,n):0}function Je(e,t,n=`border`){return Le(e[`${n}-${t}`]||e[n]||`0`)}function Ye(e,t){let n=R(e),r=U(t,`padding`,`left`)+U(t,`padding`,`right`),i=Je(t,`left`)+Je(t,`right`);return{borders:i,box:n-r-i,paddings:r,totalWidth:n}}function Xe(e,t){return O(e??`${100/Ke(t)}%`,{parseFloatToInt:!1})}function Ze(e,t,n){let{parsedWidth:r,unit:i}=Xe(e,n);return i===`%`?`${R(t)*r/100}px`:`${r}px`}function Qe(e,t,n){let{borders:r,paddings:i}=Ye(t,e),a=Je(e,`left`,`inner-border`)+Je(e,`right`,`inner-border`),o=i+r+a,s=e.width??`${R(t)/Ke(n)}px`,{parsedWidth:c,unit:l}=O(s,{parseFloatToInt:!1});return s=l===`%`?`${R(t)*c/100-o}px`:`${c-o}px`,s}function $e(e,t,n){let r=U(e,`padding`,`left`)+U(e,`padding`,`right`),i=e.width??`${R(t)/Ke(n)}px`,{parsedWidth:a,unit:o}=O(i,{parseFloatToInt:!1});return i=o===`%`?`${R(t)*a/100-r}px`:`${a-r}px`,i}function et(e,t,n={}){let r=Xe(e,t),i=r.unit===`%`&&n.truncatePercentage?`${Math.trunc(r.parsedWidth)}`:`${r.parsedWidth}`.replace(/\./g,`-`);return{className:r.unit===`%`?`mj-column-per-${i}`:`mj-column-px-${i}`,parsedWidth:r}}function tt(e,t,n,r){if(!r)return`100%`;if(!e.width)return`${Math.trunc(100/Ke(n))}%`;let i=O(e.width,{parseFloatToInt:!1});return i.unit===`%`?e.width:`${i.parsedWidth/Math.max(R(t),1)*100}%`}var nt=Object.freeze({inheritedAttrs:{}}),rt=Object.freeze({baseUrl:null,hamburgerId:``}),it=Object.freeze({inheritedAttrs:{}}),at=Object.freeze({inheritedAttrs:{}}),ot=Object.freeze({carouselId:``,containerWidth:``,inheritedAttrs:{},thumbnails:`visible`}),st=Symbol(`vue-mjml-social-context`),ct=Symbol(`vue-mjml-navbar-context`),lt=Symbol(`vue-mjml-accordion-context`),ut=Symbol(`vue-mjml-accordion-element-context`),dt=Symbol(`vue-mjml-carousel-context`);function ft(){return(0,e.reactive)({inheritedAttrs:{}})}function pt(t){(0,e.provide)(st,t)}function mt(){return(0,e.inject)(st,nt)}function ht(t){return(0,e.reactive)({baseUrl:null,hamburgerId:t})}function gt(t){(0,e.provide)(ct,t)}function _t(){return(0,e.inject)(ct,rt)}function vt(){return(0,e.reactive)({inheritedAttrs:{}})}function yt(t){(0,e.provide)(lt,t)}function bt(){return(0,e.inject)(lt,it)}function xt(){return(0,e.reactive)({inheritedAttrs:{}})}function St(t){(0,e.provide)(ut,t)}function Ct(){return(0,e.inject)(ut,at)}function wt(t){return(0,e.reactive)({carouselId:t,containerWidth:``,inheritedAttrs:{},thumbnails:`visible`})}function Tt(t){(0,e.provide)(dt,t)}function Et(){return(0,e.inject)(dt,ot)}function Dt(e,t,n){let r={...e};for(let[e,i]of Object.entries(n))i===void 0||t[e]!==void 0||r[e]!==void 0||(r[e]=i);return r}function Ot(e=16){let t=``;for(let n=0;n<e;n+=1)t+=Math.floor(Math.random()*16).toString(16);return t}var kt=D(b(`mj-accordion`),{name:`VjmlAccordion`,setup({bodyRenderContext:e}){e?.addHeadStyle(`mj-accordion`,()=>`
|
|
2
|
+
noinput.mj-accordion-checkbox { display:block!important; }
|
|
3
|
+
|
|
4
|
+
@media yahoo, only screen and (min-width:0) {
|
|
5
|
+
.mj-accordion-element { display:block; }
|
|
6
|
+
input.mj-accordion-checkbox, .mj-accordion-less { display:none!important; }
|
|
7
|
+
input.mj-accordion-checkbox + * .mj-accordion-title { cursor:pointer; touch-action:manipulation; -webkit-user-select:none; -moz-user-select:none; user-select:none; }
|
|
8
|
+
input.mj-accordion-checkbox + * .mj-accordion-content { overflow:hidden; display:none; }
|
|
9
|
+
input.mj-accordion-checkbox + * .mj-accordion-more { display:block!important; }
|
|
10
|
+
input.mj-accordion-checkbox:checked + * .mj-accordion-content { display:block; }
|
|
11
|
+
input.mj-accordion-checkbox:checked + * .mj-accordion-more { display:none!important; }
|
|
12
|
+
input.mj-accordion-checkbox:checked + * .mj-accordion-less { display:block!important; }
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.moz-text-html input.mj-accordion-checkbox + * .mj-accordion-title { cursor:auto; touch-action:auto; -webkit-user-select:auto; -moz-user-select:auto; user-select:auto; }
|
|
16
|
+
.moz-text-html input.mj-accordion-checkbox + * .mj-accordion-content { overflow:hidden; display:block; }
|
|
17
|
+
.moz-text-html input.mj-accordion-checkbox + * .mj-accordion-ico { display:none; }
|
|
18
|
+
|
|
19
|
+
@goodbye { @gmail }
|
|
20
|
+
`);let t=vt();return yt(t),{accordionContext:t}},render({attrs:t,content:n},r){let i=z(n.childNodes);return r.accordionContext.inheritedAttrs=Object.fromEntries([`border`,`font-family`,`icon-align`,`icon-width`,`icon-height`,`icon-position`,`icon-wrapped-url`,`icon-wrapped-alt`,`icon-unwrapped-url`,`icon-unwrapped-alt`].map(e=>[e,t[e]]).filter(([,e])=>e!==void 0)),(0,e.h)(`table`,{cellpadding:`0`,cellspacing:`0`,class:`mj-accordion`,style:F({border:t.border,"border-bottom":`none`,"border-collapse":`collapse`,"font-family":t[`font-family`],width:`100%`})},[(0,e.h)(`tbody`,i.map(e=>e.vnode))])}}),At=`<!--[if mso | IE]>`,jt=`<!--[if mso]>`,Mt=`<![endif]-->`,Nt=`<!--[if !mso | IE]><!-->`,Pt=`<!--[if !mso]><!-->`,Ft=`<!--<![endif]-->`;function W(e,t=!1){return[t?Nt:At,e,t?Ft:Mt].join(`
|
|
21
|
+
`)}function It(e,t=!1){return[t?Pt:jt,e,t?Ft:Mt].join(`
|
|
22
|
+
`)}function Lt(e){return e.replace(/(<!\[endif\]-->\s*<!--\[if mso \| IE\]>)/g,``)}function Rt(e){return e.replace(/(<!--\[if\s[^\]]+\]>)([\s\S]*?)(<!\[endif\]-->)/g,(e,t,n,r)=>`${t}${n.replace(/(^|>)(\s+)(<|$)/gm,(e,t,n,r)=>`${t}${r}`).replace(/\s{2,}/g,` `)}${r}`)}function G(e){return e.source===`prop`?e.propValue?[P(e.propValue)]:[]:[...e.childNodes]}var zt=b(`mj-accordion-text`);function Bt(e,t){return e[`font-family`]===void 0?t[`font-family`]:e[`font-family`]}var Vt=D(zt,{name:`VjmlAccordionText`,setup(){return{accordionElementContext:Ct()}},render({attrs:t,content:n,explicitAttrs:r},i){let a=Dt(t,r,i.accordionElementContext.inheritedAttrs),o=Bt(r,i.accordionElementContext.inheritedAttrs);return(0,e.h)(`div`,{class:`mj-accordion-content`},[(0,e.h)(`table`,{cellpadding:`0`,cellspacing:`0`,style:{"border-bottom":a.border,width:`100%`}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[(0,e.h)(`td`,{class:a[`css-class`]||void 0,style:I({background:a[`background-color`],color:a.color,"font-family":o,"font-size":a[`font-size`],"font-weight":a[`font-weight`],"letter-spacing":a[`letter-spacing`],"line-height":a[`line-height`],padding:a.padding,"padding-bottom":a[`padding-bottom`],"padding-left":a[`padding-left`],"padding-right":a[`padding-right`],"padding-top":a[`padding-top`]})},G(n))])])])])}}),Ht=b(`mj-accordion-title`);function Ut(e,t){return e[`font-family`]===void 0?t[`font-family`]:e[`font-family`]}var Wt=D(Ht,{name:`VjmlAccordionTitle`,setup(){return{accordionElementContext:Ct()}},render({attrs:t,content:n,explicitAttrs:r},i){let a=Dt(t,r,i.accordionElementContext.inheritedAttrs),o=Ut(r,i.accordionElementContext.inheritedAttrs),s=(0,e.h)(`td`,{class:a[`css-class`]||void 0,style:I({"background-color":a[`background-color`],color:a.color,"font-family":o,"font-size":a[`font-size`],"font-weight":a[`font-weight`],padding:a.padding,"padding-bottom":a[`padding-bottom`],"padding-left":a[`padding-left`],"padding-right":a[`padding-right`],"padding-top":a[`padding-top`],width:`100%`})},G(n)),c=P(W(`<td${L({class:`mj-accordion-ico`,style:{background:a[`background-color`],padding:`16px`,"vertical-align":a[`icon-align`]}})}><img${L({alt:a[`icon-wrapped-alt`],class:`mj-accordion-more`,src:a[`icon-wrapped-url`],style:{display:`none`,height:a[`icon-height`],width:a[`icon-width`]}})} /><img${L({alt:a[`icon-unwrapped-alt`],class:`mj-accordion-less`,src:a[`icon-unwrapped-url`],style:{display:`none`,height:a[`icon-height`],width:a[`icon-width`]}})} /></td>`,!0));return(0,e.h)(`div`,{class:`mj-accordion-title`},[(0,e.h)(`table`,{cellpadding:`0`,cellspacing:`0`,style:{"border-bottom":a.border,width:`100%`}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,a[`icon-position`]===`right`?[s,c]:[c,s])])])])}}),Gt=D(b(`mj-accordion-element`),{name:`VjmlAccordionElement`,setup(){let e=xt();return St(e),{accordionContext:bt(),accordionElementContext:e}},render({attrs:t,content:n,explicitAttrs:r},i){let a=Dt(t,r,i.accordionContext.inheritedAttrs),o=z(n.childNodes),s=o.map(e=>e.vnode),c=o.some(e=>e.tagName===`mj-accordion-title`),l=o.some(e=>e.tagName===`mj-accordion-text`);return i.accordionElementContext.inheritedAttrs=a,(0,e.h)(`tr`,{class:a[`css-class`]||void 0},[(0,e.h)(`td`,{style:{"background-color":t[`background-color`],padding:`0px`}},[(0,e.h)(`label`,{class:`mj-accordion-element`,style:{"font-family":t[`font-family`],"font-size":`13px`}},[P(W(`<input class="mj-accordion-checkbox" type="checkbox" style="display:none;" />`,!0)),(0,e.h)(`div`,[...c?[]:[(0,e.h)(Wt)],...s,...l?[]:[(0,e.h)(Vt)]])])])])}});function K(e,t){return D(b(e),{name:t,render:()=>``})}var Kt=K(`mj-all`,`VjmlAll`),qt=K(`mj-attributes`,`VjmlAttributes`),Jt=y(`mj-body`);if(!Jt)throw Error(`Missing metadata for 'mj-body'.`);var Yt=D(Jt,{name:`VjmlBody`,setup(){let e=k();return A(e),{layoutState:e}},render({attrs:t,bodyRenderContext:n,content:r,documentContext:i},a){return n?.setBackgroundColor(t[`background-color`]??``),a.layoutState.containerWidth=t.width??`600px`,a.layoutState.gap=``,a.layoutState.parentWidth=t.width??`600px`,a.layoutState.preserveMobileWidth=!1,(0,e.h)(`div`,{"aria-label":i?.state.title||void 0,"aria-roledescription":`email`,class:t[`css-class`]||void 0,dir:i?.state.dir||void 0,lang:i?.state.lang||void 0,role:`article`,style:t[`background-color`]?{backgroundColor:t[`background-color`]}:void 0},r.childNodes)}}),Xt=K(`mj-breakpoint`,`VjmlBreakpoint`),Zt=b(`mj-button`);function Qt(e,t){if(!e.width)return;let n=O(e.width,{parseFloatToInt:!1});if(n.unit!==`px`)return;let{borders:r}=Ye(t,e),i=U(e,`inner-padding`,`left`)+U(e,`inner-padding`,`right`);return`${n.parsedWidth-i-r}px`}function $t(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function en(e){return!!e&&typeof e==`object`&&!Array.isArray(e)&&Object.values(e).every(e=>e==null||typeof e==`number`||typeof e==`string`)}function tn(e){return e==null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||en(e)?e:null}function nn(e){return e.map(rn).join(``)}function rn(t){if(t.type===e.Comment)return``;if(t.type===e.Text)return $t(typeof t.children==`string`?t.children:``);if(t.type===e.Fragment)return nn(x(t.children));if(typeof t.type==`string`){let e=t.props??{},n=Object.fromEntries(Object.entries(e).flatMap(([e,t])=>{if(/^on[A-Z]/.test(e)||e===`innerHTML`||e===`textContent`)return[];let n=tn(t);return n===null?[]:[[e,n]]})),r=typeof t.children==`string`?$t(t.children):nn(C(t));return`<${t.type}${L(n)}>${r}</${t.type}>`}return``}function an(e,t,n){return e===`prop`?t??``:e===`slot`?nn(n):``}var on=D(Zt,{name:`VjmlButton`,setup(){return{layoutContext:j()}},render({attrs:e,content:t},n){let r=e.href?`a`:`p`,i=Qt(e,n.layoutContext.containerWidth),a=an(t.source,t.propValue,t.childNodes);return P(`<table${L({border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{"border-collapse":`separate`,"line-height":`100%`,width:e.width}})}><tbody><tr><td${L({align:`center`,bgcolor:e[`background-color`]===`none`?void 0:e[`background-color`],role:`presentation`,style:{background:e[`background-color`],border:e.border,"border-bottom":e[`border-bottom`],"border-left":e[`border-left`],"border-radius":e[`border-radius`],"border-right":e[`border-right`],"border-top":e[`border-top`],cursor:`auto`,"font-style":e[`font-style`],height:e.height,"mso-padding-alt":e[`inner-padding`],"text-align":e[`text-align`]},valign:e[`vertical-align`]})}><${r}${L({href:r===`a`?e.href:void 0,name:r===`a`?e.name:void 0,rel:r===`a`?e.rel:void 0,style:{background:e[`background-color`],"border-radius":e[`border-radius`],color:e.color,display:`inline-block`,"font-family":e[`font-family`],"font-size":e[`font-size`],"font-style":e[`font-style`],"font-weight":e[`font-weight`],"letter-spacing":e[`letter-spacing`],"line-height":e[`line-height`],margin:`0`,"mso-padding-alt":`0px`,padding:e[`inner-padding`],"text-decoration":e[`text-decoration`],"text-transform":e[`text-transform`],width:i},target:r===`a`?e.target:void 0,title:e.title})}>${a}</${r}></td></tr></tbody></table>`)}}),sn=b(`mj-carousel`);function q(e,t){return Array.from({length:t},()=>e).join(``)}function J(e){return Array.from({length:e},(e,t)=>t)}function cn(e,t,n){return e||(n===0?`0px`:`${Math.min(Number.parseInt(t,10)/n,110)}px`)}function ln(e,t,n){if(t===0)return``;let r=J(t).map(t=>`.mj-carousel-${e}-radio:checked ${q(`+ * `,t)}+ .mj-carousel-content .mj-carousel-image`).join(`,`),i=J(t).map(n=>`.mj-carousel-${e}-radio-${n+1}:checked ${q(`+ * `,t-n-1)}+ .mj-carousel-content .mj-carousel-image-${n+1}`).join(`,`),a=J(t).map(n=>`.mj-carousel-${e}-radio-${n+1}:checked ${q(`+ * `,t-n-1)}+ .mj-carousel-content .mj-carousel-next-${(n+1)%t+1}`).join(`,`),o=J(t).map(n=>`.mj-carousel-${e}-radio-${n+1}:checked ${q(`+ * `,t-n-1)}+ .mj-carousel-content .mj-carousel-previous-${(n-1+t)%t+1}`).join(`,`),s=J(t).map(n=>`.mj-carousel-${e}-radio-${n+1}:checked ${q(`+ * `,t-n-1)}+ .mj-carousel-content .mj-carousel-${e}-thumbnail-${n+1}`).join(`,`),c=J(t).map(n=>`.mj-carousel-${e}-radio-${n+1}:checked ${q(`+ * `,t-n-1)}+ .mj-carousel-content .mj-carousel-${e}-thumbnail`).join(`,`),l=J(t).map(n=>`.mj-carousel-${e}-thumbnail:hover ${q(`+ * `,t-n-1)}+ .mj-carousel-main .mj-carousel-image`).join(`,`),u=J(t).map(n=>`.mj-carousel-${e}-thumbnail-${n+1}:hover ${q(`+ * `,t-n-1)}+ .mj-carousel-main .mj-carousel-image-${n+1}`).join(`,`);return`
|
|
23
|
+
.mj-carousel {
|
|
24
|
+
-webkit-user-select: none;
|
|
25
|
+
-moz-user-select: none;
|
|
26
|
+
user-select: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mj-carousel-${e}-icons-cell {
|
|
30
|
+
display: table-cell !important;
|
|
31
|
+
width: ${n[`icon-width`]} !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mj-carousel-radio,
|
|
35
|
+
.mj-carousel-next,
|
|
36
|
+
.mj-carousel-previous {
|
|
37
|
+
display: none !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.mj-carousel-thumbnail,
|
|
41
|
+
.mj-carousel-next,
|
|
42
|
+
.mj-carousel-previous {
|
|
43
|
+
touch-action: manipulation;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
${r} {
|
|
47
|
+
display: none !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
${i} {
|
|
51
|
+
display: block !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.mj-carousel-previous-icons,
|
|
55
|
+
.mj-carousel-next-icons,
|
|
56
|
+
${a},
|
|
57
|
+
${o} {
|
|
58
|
+
display: block !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
${s} {
|
|
62
|
+
border-color: ${n[`tb-selected-border-color`]} !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
${c} {
|
|
66
|
+
display: inline-block !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.mj-carousel-image img + div,
|
|
70
|
+
.mj-carousel-thumbnail img + div {
|
|
71
|
+
display: none !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
${l} {
|
|
75
|
+
display: none !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.mj-carousel-thumbnail:hover {
|
|
79
|
+
border-color: ${n[`tb-hover-border-color`]} !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
${u} {
|
|
83
|
+
display: block !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.mj-carousel noinput { display:block !important; }
|
|
87
|
+
.mj-carousel noinput .mj-carousel-image-1 { display:block !important; }
|
|
88
|
+
.mj-carousel noinput .mj-carousel-arrows,
|
|
89
|
+
.mj-carousel noinput .mj-carousel-thumbnails { display:none !important; }
|
|
90
|
+
|
|
91
|
+
[owa] .mj-carousel-thumbnail { display:none !important; }
|
|
92
|
+
|
|
93
|
+
@media screen yahoo {
|
|
94
|
+
.mj-carousel-${e}-icons-cell,
|
|
95
|
+
.mj-carousel-previous-icons,
|
|
96
|
+
.mj-carousel-next-icons {
|
|
97
|
+
display:none !important;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.mj-carousel-${e}-radio-1:checked ${q(`+ *`,t-1)}+ .mj-carousel-content .mj-carousel-${e}-thumbnail-1 {
|
|
101
|
+
border-color: transparent;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`}function un(e,t,n,r){let i=B(e.vnode,{documentContext:r.documentContext,inheritedMjClass:r.activeMjClass}),a=i[`border-radius`]??n[`border-radius`],o=Number.parseInt(t,10),s=`<img${L({alt:i.alt,border:`0`,src:i.src,title:i.title,width:o,style:{"border-radius":a,display:`block`,height:`auto`,"max-width":`100%`,width:t}},{escapeAmpersand:!1})} />`,c=i.href?`<a${L({href:i.href,rel:i.rel,target:`_blank`},{escapeAmpersand:!1})}>${s}</a>`:s;return`<div${L({class:[`mj-carousel-image`,`mj-carousel-image-${e.siblingContext.index+1}`,i[`css-class`]].filter(Boolean).join(` `)||void 0})}>${c}</div>`}function dn(e,t){return`<input${L({checked:t===0?`checked`:void 0,class:[`mj-carousel-radio`,`mj-carousel-${e}-radio`,`mj-carousel-${e}-radio-${t+1}`].join(` `),id:`mj-carousel-${e}-radio-${t+1}`,name:`mj-carousel-radio-${e}`,style:{display:`none`,"mso-hide":`all`},type:`radio`})}>`}function fn(e,t,n,r,i){return`<td${L({class:`mj-carousel-${e}-icons-cell`,style:{display:`none`,"font-size":`0px`,"mso-hide":`all`,padding:`0px`}})}><div${L({class:`mj-carousel-${t}-icons`,style:{display:`none`,"mso-hide":`all`}})}>${J(i).map(i=>`<label${L({class:[`mj-carousel-${t}`,`mj-carousel-${t}-${i+1}`].join(` `),for:`mj-carousel-${e}-radio-${i+1}`})}><img${L({alt:t,src:n,style:{display:`block`,height:`auto`,width:r},width:Number.parseInt(r,10)})}></label>`).join(``)}</div></td>`}var pn=D(sn,{name:`VjmlCarousel`,setup({bodyRenderContext:e}){let t=wt(Ot());return Tt(t),{bodyRenderContext:e,carouselContext:t,layoutContext:j()}},render({activeMjClass:t,attrs:n,content:r,documentContext:i},a){let o=z(r.childNodes),s=cn(n[`tb-width`],a.layoutContext.parentWidth,o.length);a.carouselContext.containerWidth=a.layoutContext.containerWidth,a.carouselContext.thumbnails=n.thumbnails??`visible`,a.carouselContext.inheritedAttrs=Object.fromEntries([[`border-radius`,n[`border-radius`]],[`tb-border`,n[`tb-border`]],[`tb-border-radius`,n[`tb-border-radius`]]].filter(([,e])=>e!==void 0)),a.bodyRenderContext?.addHeadStyle(`mj-carousel-${a.carouselContext.carouselId}`,ln(a.carouselContext.carouselId,o.length,{...n,"icon-width":n[`icon-width`]??`44px`,"tb-hover-border-color":n[`tb-hover-border-color`]??`#fead0d`,"tb-selected-border-color":n[`tb-selected-border-color`]??`#cccccc`}));let c=(0,e.h)(`div`,{class:`mj-carousel`},[...o.map(e=>P(dn(a.carouselContext.carouselId,e.siblingContext.index))),(0,e.h)(`div`,{class:`mj-carousel-content mj-carousel-${a.carouselContext.carouselId}-content`,style:{display:`table`,"font-size":`0px`,"table-layout":`fixed`,"text-align":`center`,width:`100%`}},[...n.thumbnails===`visible`||n.thumbnails===`supported`?o.map(r=>{let o=B(r.vnode,{documentContext:i,inheritedMjClass:t});return(0,e.h)(`a`,{class:[`mj-carousel-thumbnail`,`mj-carousel-${a.carouselContext.carouselId}-thumbnail`,`mj-carousel-${a.carouselContext.carouselId}-thumbnail-${r.siblingContext.index+1}`].filter(Boolean).join(` `),href:`#${r.siblingContext.index+1}`,style:{border:n[`tb-border`],"border-radius":n[`tb-border-radius`],display:n.thumbnails===`supported`?`none`:`inline-block`,overflow:`hidden`,width:s},target:o.target||`_blank`},[(0,e.h)(`label`,{for:`mj-carousel-${a.carouselContext.carouselId}-radio-${r.siblingContext.index+1}`},[(0,e.h)(`img`,{alt:o.alt,src:o[`thumbnails-src`]||o.src,style:{display:`block`,height:`auto`,width:`100%`},width:Number.parseInt(s,10)})])])}):[],(0,e.h)(`table`,{border:`0`,cellpadding:`0`,cellspacing:`0`,class:`mj-carousel-main`,role:`presentation`,style:{"caption-side":`top`,display:`table-caption`,"table-layout":`fixed`,width:`100%`},width:`100%`},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[P(fn(a.carouselContext.carouselId,`previous`,n[`left-icon`]??`https://i.imgur.com/xTh3hln.png`,n[`icon-width`]??`44px`,o.length)),(0,e.h)(`td`,{style:{padding:`0px`}},[(0,e.h)(`div`,{class:`mj-carousel-images`},o.map(e=>N(e.vnode,e.siblingContext)))]),P(fn(a.carouselContext.carouselId,`next`,n[`right-icon`]??`https://i.imgur.com/os7o9kz.png`,n[`icon-width`]??`44px`,o.length))])])])])]),l=o[0]?un(o[0],a.carouselContext.containerWidth,a.carouselContext.inheritedAttrs,{activeMjClass:t,documentContext:i}):null,u=[P(Pt),c,P(Ft)];return l&&u.push(P(It(l))),u}}),mn=D(b(`mj-carousel-image`),{name:`VjmlCarouselImage`,setup(){return{carouselContext:Et(),siblingContext:M()}},render({attrs:e,explicitAttrs:t},n){let r=Dt(e,t,n.carouselContext.inheritedAttrs),i=`<img${L({alt:r.alt,border:`0`,src:r.src,style:{"border-radius":r[`border-radius`],display:`block`,height:`auto`,"max-width":`100%`,width:n.carouselContext.containerWidth},title:r.title,width:Number.parseInt(n.carouselContext.containerWidth,10)})}>`,a=r.href?`<a${L({href:r.href,rel:r.rel,target:`_blank`})}>${i}</a>`:i;return P(`<div${L({class:[`mj-carousel-image`,`mj-carousel-image-${n.siblingContext.index+1}`,r[`css-class`]].filter(Boolean).join(` `)||void 0,style:n.siblingContext.index===0?void 0:{display:`none`,"mso-hide":`all`}})}>${a}</div>`)}}),hn=K(`mj-class`,`VjmlClass`),gn=b(`mj-column`);function _n(e){return[`padding`,`padding-bottom`,`padding-left`,`padding-right`,`padding-top`].some(t=>t in e)}var vn=D(gn,{name:`VjmlColumn`,setup(){let e=k();return A(e),{layoutContext:j(),layoutState:e,siblingContext:M()}},render({activeMjClass:t,attrs:n,bodyRenderContext:r,content:i,documentContext:a},o){let s=z(i.childNodes),c=Qe(n,o.layoutContext.containerWidth,o.siblingContext.nonRawSiblings),l=et(n.width,o.siblingContext.nonRawSiblings),u=[l.className,`mj-outlook-group-fix`,n[`css-class`]].filter(Boolean).join(` `),d=(0,e.h)(`table`,{border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:I({..._n(n)?{"background-color":n[`inner-background-color`],border:n[`inner-border`],"border-bottom":n[`inner-border-bottom`],"border-left":n[`inner-border-left`],"border-radius":n[`inner-border-radius`],"border-right":n[`inner-border-right`],"border-top":n[`inner-border-top`]}:{"background-color":n[`background-color`],border:n.border,"border-bottom":n[`border-bottom`],"border-left":n[`border-left`],"border-radius":n[`border-radius`],"border-right":n[`border-right`],"border-top":n[`border-top`],"vertical-align":n[`vertical-align`]},"border-collapse":H(_n(n)?n[`inner-border-radius`]:n[`border-radius`])?`separate`:void 0}),width:`100%`},[(0,e.h)(`tbody`,s.map(n=>{let r=N(n.vnode,n.siblingContext);if(n.rawElement)return r;let i=B(n.vnode,{documentContext:a,inheritedMjClass:t});return(0,e.h)(`tr`,[(0,e.h)(`td`,{align:i.align||void 0,class:i[`css-class`]||void 0,style:I({background:i[`container-background-color`],"font-size":`0px`,padding:i.padding,"padding-bottom":i[`padding-bottom`],"padding-left":i[`padding-left`],"padding-right":i[`padding-right`],"padding-top":i[`padding-top`],"word-break":`break-word`})},[r])])}))]);return o.layoutState.containerWidth=c,o.layoutState.gap=``,o.layoutState.parentWidth=o.layoutContext.parentWidth,o.layoutState.preserveMobileWidth=!1,r?.addMediaQuery(l.className,l.parsedWidth),(0,e.h)(`div`,{class:u,style:{direction:n.direction,display:`inline-block`,"font-size":`0px`,"text-align":`left`,"vertical-align":n[`vertical-align`],width:tt(n,o.layoutContext.containerWidth,o.siblingContext.nonRawSiblings,o.layoutContext.preserveMobileWidth)}},[_n(n)?(0,e.h)(`table`,{border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{"border-collapse":H(n[`border-radius`])?`separate`:void 0},width:`100%`},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[(0,e.h)(`td`,{style:I({"background-color":n[`background-color`],border:n.border,"border-bottom":n[`border-bottom`],"border-collapse":H(n[`border-radius`])?`separate`:void 0,"border-left":n[`border-left`],"border-radius":n[`border-radius`],"border-right":n[`border-right`],"border-top":n[`border-top`],padding:n.padding,"padding-bottom":n[`padding-bottom`],"padding-left":n[`padding-left`],"padding-right":n[`padding-right`],"padding-top":n[`padding-top`],"vertical-align":n[`vertical-align`]})},[d])])])]):d])}}),yn=b(`mj-divider`);function bn(e){switch(e){case`left`:return`0px`;case`right`:return`0px 0px 0px auto`;default:return`0px auto`}}function xn(e,t,n){let r=U(n,`padding`,`left`)+U(n,`padding`,`right`),i=O(e);return i.unit===`%`?`${(Number.parseInt(t,10)-r)*(i.parsedWidth/100)}px`:e}var Sn=D(yn,{name:`VjmlDivider`,setup(){return{layoutContext:j()}},render({attrs:t},n){let r=bn(t.align),i=t.width??`100%`;return[(0,e.h)(`p`,{style:{"border-top":[t[`border-style`],t[`border-width`],t[`border-color`]].join(` `),"font-size":`1px`,margin:r,width:i}}),P(W(`<table align="${t.align}" border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-top:${[t[`border-style`],t[`border-width`],t[`border-color`]].join(` `)};font-size:1px;margin:${r};width:${xn(i,n.layoutContext.containerWidth,t)};" width="${xn(i,n.layoutContext.containerWidth,t)}"><tr><td style="height:0;line-height:0;"> </td></tr></table>`))]}}),Cn=K(`mj-font`,`VjmlFont`),wn=D(b(`mj-group`),{name:`VjmlGroup`,setup(){let e=k({preserveMobileWidth:!0});return A(e),{layoutContext:j(),layoutState:e,siblingContext:M()}},render({activeMjClass:t,attrs:n,bodyRenderContext:r,content:i,documentContext:a},o){let s=z(i.childNodes),c=$e(n,o.layoutContext.containerWidth,o.siblingContext.nonRawSiblings),l=et(n.width,o.siblingContext.nonRawSiblings,{truncatePercentage:!0}),u=[l.className,`mj-outlook-group-fix`,n[`css-class`]].filter(Boolean).join(` `);return o.layoutState.containerWidth=c,o.layoutState.gap=``,o.layoutState.parentWidth=o.layoutContext.parentWidth,o.layoutState.preserveMobileWidth=!0,r?.addMediaQuery(l.className,l.parsedWidth),(0,e.h)(`div`,{class:u,style:{"background-color":n[`background-color`],direction:n.direction,display:`inline-block`,"font-size":`0`,"line-height":`0`,"text-align":`left`,"vertical-align":n[`vertical-align`],width:`100%`}},[P(W(`<table${L({bgcolor:n[`background-color`]===`none`?void 0:n[`background-color`],border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`})}><tr>`)),...s.flatMap(e=>{let n=N(e.vnode,e.siblingContext);if(e.rawElement)return[n];let r=B(e.vnode,{documentContext:a,inheritedMjClass:t});return[P(W(`<td${L({style:{"vertical-align":r[`vertical-align`],width:Ze(r.width,c,e.siblingContext.nonRawSiblings)}})}>`)),n,P(W(`</td>`))]}),P(W(`</tr></table>`))])}});function Tn(e,t,n){let r=y(e);!n||!r||r.supportsAnyChildTag||r.allowedChildTagNames.includes(t)||n.reportInvalidChild(e,t,r.allowedChildTagNames)}function Y(e,t){let n=y(e);return n?je(S(t),n).attrs:{}}function En(e,t){let n=y(e);return n?je(S(t),n).explicitAttrs:{}}function Dn(e,t){let n=S(e);for(let e of[`text`,`html`,`content`]){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let t=n[e];if(t==null)return``;if(typeof t==`string`||typeof t==`number`||typeof t==`boolean`)return`${t}`}return t}function On(e,t,n){for(let r of C(e)){let e=w(r);if(!e)continue;if(Tn(`mj-attributes`,e,n),e===`mj-class`){let n=En(e,r),i=n.name;if(!i)continue;let{name:a,...o}=n;t.add(`classes`,i,o);for(let e of C(r)){let n=w(e);if(!n)continue;let r=En(n,e);t.add(`classesDefault`,`${i}.${n}`,r)}continue}let i=En(e,r);t.add(`defaultAttributes`,e,i)}}function kn(e,t,n){for(let r of C(e)){let e=w(r);if(!e||(Tn(`mj-html-attributes`,e,n),e!==`mj-selector`))continue;let i=Y(e,r).path;if(i)for(let e of C(r)){let r=w(e);if(!r||(Tn(`mj-selector`,r,n),r!==`mj-html-attribute`))continue;let a=Y(r,e).name;a&&t.add(`htmlAttributes`,i,a,Dn(e,T(e)))}}}function An(e,t,n){if(t)for(let r of e){let e=w(r);if(e)switch(Tn(`mj-head`,e,n),e){case`mj-attributes`:On(r,t,n);continue;case`mj-html-attributes`:kn(r,t,n);continue;case`mj-breakpoint`:{let n=Y(e,r);n.width&&t.add(`breakpoint`,n.width);continue}case`mj-font`:{let n=Y(e,r);n.name&&n.href&&t.add(`fonts`,n.name,n.href);continue}case`mj-raw`:t.add(`headRaw`,Dn(r,T(r)));continue;case`mj-preview`:t.add(`preview`,Dn(r,T(r)));continue;case`mj-style`:{let n=Y(e,r).inline===`inline`?`inlineStyle`:`style`;t.add(n,Dn(r,T(r)));continue}case`mj-title`:t.add(`title`,Dn(r,T(r)));continue}}}var jn=y(`mj-head`);if(!jn)throw Error(`Missing metadata for 'mj-head'.`);var Mn=D(jn,{name:`VjmlHead`,render({content:e,headCollectionContext:t,validationReporter:n}){return An(x(e.childNodes),t,n),``}}),Nn=b(`mj-hero`),Pn=(0,e.defineComponent)({name:`VjmlRawStyleTd`,props:{background:{required:!1,type:String},height:{required:!1,type:[Number,String]},styleText:{required:!0,type:String}},setup(t,{slots:n}){let r=(0,e.ref)(null),i=()=>{r.value?.setAttribute(`style`,t.styleText)};return(0,e.onMounted)(i),(0,e.onUpdated)(i),()=>(0,e.h)(`td`,{background:t.background||void 0,height:t.height||void 0,ref:r},n.default?.())}});function Fn(e){return[e[`background-color`],e[`background-url`]?`url('${e[`background-url`]}')`:null,e[`background-url`]?`no-repeat`:null,e[`background-url`]?`${e[`background-position`]??`center center`} / cover`:null].filter(Boolean).join(` `)}function In(e){let t=Number.parseInt(e[`background-height`]??``,10),n=Number.parseInt(e[`background-width`]??``,10);return Number.isNaN(t)||Number.isNaN(n)||n<=0?0:Math.round(t/n*100)}function Ln(t,n){return t.map(t=>{let r=N(t.vnode,t.siblingContext);if(t.rawElement)return r;let i=B(t.vnode,{documentContext:n.documentContext,inheritedMjClass:n.activeMjClass});return(0,e.h)(`tr`,[(0,e.h)(`td`,{align:i.align||void 0,background:i[`container-background-color`]||void 0,class:i[`css-class`]||void 0,style:I({background:i[`container-background-color`],"font-size":`0px`,padding:i.padding,"padding-top":i[`padding-top`],"padding-right":i[`padding-right`],"padding-bottom":i[`padding-bottom`],"padding-left":i[`padding-left`],"word-break":`break-word`})},[r])])})}var Rn=D(Nn,{name:`VjmlHero`,setup(){let e=k();return A(e),{layoutContext:j(),layoutState:e}},render({activeMjClass:t,attrs:n,content:r,documentContext:i},a){let o=a.layoutContext.containerWidth,s=Fn(n),c=z(r.childNodes),l=In(n),u=n[`background-width`]||o,d=Math.max(0,Number.parseInt(n.height??`0`,10)-U(n,`padding`,`top`)-U(n,`padding`,`bottom`));a.layoutState.containerWidth=o,a.layoutState.gap=``,a.layoutState.parentWidth=a.layoutContext.parentWidth,a.layoutState.preserveMobileWidth=!1;let f=[P(W(`<table${L({align:n.align,border:`0`,cellpadding:`0`,cellspacing:`0`,style:`width:${o};`,width:o.replace(/px$/,``)})}><tr><td${L({style:{"background-color":n[`inner-background-color`],padding:n[`inner-padding`],"padding-top":n[`inner-padding-top`],"padding-left":n[`inner-padding-left`],"padding-right":n[`inner-padding-right`],"padding-bottom":n[`inner-padding-bottom`]}})}>`)),(0,e.h)(`div`,{align:n.align||void 0,class:`mj-hero-content`,style:{"background-color":n[`inner-background-color`],float:n.align,margin:`0px auto`,width:n.width}},[(0,e.h)(`table`,{border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{margin:`0px`,width:`100%`}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[(0,e.h)(`td`,[(0,e.h)(`table`,{border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{margin:`0px`,width:`100%`}},[(0,e.h)(`tbody`,Ln(c,{activeMjClass:t,documentContext:i}))])])])])])]),P(W(`</td></tr></table>`))],p=I({background:s,"background-position":n[`background-position`],"background-repeat":n[`background-url`]?`no-repeat`:void 0,"border-radius":n[`border-radius`],padding:n.padding,"padding-top":n[`padding-top`],"padding-left":n[`padding-left`],"padding-right":n[`padding-right`],"padding-bottom":n[`padding-bottom`],"vertical-align":n[`vertical-align`]}),m=F({width:`0.01%`,"padding-bottom":`${l}%`,"mso-padding-bottom-alt":0}),h=F(p),g=F(I({...p,height:d?`${d}px`:void 0})),_=n.mode===`fluid-height`?[(0,e.h)(Pn,{styleText:m}),(0,e.h)(Pn,{background:n[`background-url`]||void 0,styleText:h},{default:()=>f}),(0,e.h)(Pn,{styleText:m})]:[(0,e.h)(Pn,{background:n[`background-url`]||void 0,height:d||void 0,styleText:g},{default:()=>f})];return[P(W(`<table${L({align:`center`,border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{width:o},width:Number.parseInt(o,10)})}><tr><td${L({style:{"font-size":0,"line-height":0,"mso-line-height-rule":`exactly`}})}><v:image${L({src:n[`background-url`],style:{border:`0`,height:n[`background-height`],"mso-position-horizontal":`center`,position:`absolute`,top:0,width:u,"z-index":`-3`},"xmlns:v":`urn:schemas-microsoft-com:vml`},{escapeAmpersand:!1})} />`)),(0,e.h)(`div`,{align:n.align||void 0,class:n[`css-class`]||void 0,style:{margin:`0 auto`,"max-width":o}},[(0,e.h)(`table`,{border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{width:`100%`}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,{style:{"vertical-align":`top`}},_)])])]),P(W(`</td></tr></table>`))]}}),zn=K(`mj-html-attribute`,`VjmlHtmlAttribute`),Bn=K(`mj-html-attributes`,`VjmlHtmlAttributes`),Vn=b(`mj-image`);function Hn(e,t){let n=e.width?Number.parseInt(e.width,10):1/0,{box:r}=Ye(t,e);return Math.min(r,n)}function Un(e){if(!e)return;if(e===`auto`)return e;let t=Number.parseInt(e,10);return Number.isNaN(t)?e:t}var Wn=D(Vn,{name:`VjmlImage`,setup({bodyRenderContext:e}){let t=j();return e?.addHeadStyle(`mj-image-fluid-mobile`,e=>`
|
|
105
|
+
@media only screen and (max-width:${Pe(e)}) {
|
|
106
|
+
table.mj-full-width-mobile { width: 100% !important; }
|
|
107
|
+
td.mj-full-width-mobile { width: auto !important; }
|
|
108
|
+
}
|
|
109
|
+
`),{layoutContext:t}},render({attrs:t},n){let r=t[`fluid-on-mobile`]===`true`,i=t[`full-width`]===`full-width`,a=Hn(t,n.layoutContext.containerWidth),o=(0,e.h)(`img`,{alt:t.alt,height:Un(t.height),sizes:t.sizes,src:t.src,srcset:t.srcset,style:I({border:t.border,"border-bottom":t[`border-bottom`],"border-left":t[`border-left`],"border-radius":t[`border-radius`],"border-right":t[`border-right`],"border-top":t[`border-top`],display:`block`,"font-size":t[`font-size`],height:t.height,"max-height":t[`max-height`],"max-width":i?`100%`:void 0,"min-width":i?`100%`:void 0,outline:`none`,"text-decoration":`none`,width:`100%`}),title:t.title,usemap:t.usemap,width:a});return(0,e.h)(`table`,{border:`0`,cellpadding:`0`,cellspacing:`0`,class:r?`mj-full-width-mobile`:void 0,role:`presentation`,style:{"border-collapse":`collapse`,"border-spacing":`0px`,"max-width":i?`100%`:void 0,"min-width":i?`100%`:void 0,width:i?`${a}px`:void 0}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[(0,e.h)(`td`,{class:r?`mj-full-width-mobile`:void 0,style:{width:i?void 0:`${a}px`}},[t.href?(0,e.h)(`a`,{href:t.href,name:t.name,rel:t.rel,target:t.target,title:t.title},[o]):o])])])])}}),X=y(`mjml`);if(!X)throw Error(`Missing metadata for 'mjml'.`);var Gn=y(`mj-raw`);function Kn(e){let t=S(e);for(let e of[`html`,`content`,`text`]){if(!Object.prototype.hasOwnProperty.call(t,e))continue;let n=t[e];if(n==null)return``;if(typeof n==`string`||typeof n==`number`||typeof n==`boolean`)return`${n}`}return T(e)}var qn=D(X,{name:`VjmlMjml`,render({attrs:e,content:t,documentContext:n,headCollectionContext:r,validationReporter:i}){n?.beginDocument({dir:e.dir,forceOWADesktop:e.owa===`desktop`,lang:e.lang});let a=x(t.childNodes),o=a.filter(e=>w(e)===`mj-head`),s=a.filter(e=>w(e)===`mj-raw`),c=a.filter(e=>w(e)===`mj-body`);for(let e of a){let t=w(e);t&&(X.allowedChildTagNames.includes(t)||i?.reportInvalidChild(X.tagName,t,X.allowedChildTagNames))}for(let e of o)An(C(e),r,i);for(let e of s)Gn&&je(S(e),Gn).attrs.position===`file-start`&&n?.addBeforeDoctype(Kn(e));return c.length===0?(i?.report({code:`missing-body`,message:`'mjml' requires one 'mj-body' child.`,severity:`error`,tagName:X.tagName}),``):(c.length>1&&i?.report({code:`multiple-body-nodes`,message:`Only the first 'mj-body' child is currently rendered.`,severity:`warning`,tagName:X.tagName}),c[0])}}),Jn=b(`mj-navbar`);function Yn(e,t){return[It(`<input type="checkbox" id="${t}" class="mj-menu-checkbox" style="display:none !important; max-height:0; visibility:hidden;" />`,!0),`<div${L({class:`mj-menu-trigger`,style:{display:`none`,"font-size":`0px`,"max-height":`0px`,"max-width":`0px`,overflow:`hidden`}})}>`,`<label${L({align:e[`ico-align`]||void 0,class:`mj-menu-label`,for:t,style:{display:`block`,cursor:`pointer`,"mso-hide":`all`,"-moz-user-select":`none`,"user-select":`none`,color:e[`ico-color`],"font-size":e[`ico-font-size`],"font-family":e[`ico-font-family`],"text-transform":e[`ico-text-transform`],"text-decoration":e[`ico-text-decoration`],"line-height":e[`ico-line-height`],padding:e[`ico-padding`],"padding-top":e[`ico-padding-top`],"padding-right":e[`ico-padding-right`],"padding-bottom":e[`ico-padding-bottom`],"padding-left":e[`ico-padding-left`]}})}>`,`<span${L({class:`mj-menu-icon-open`,style:{"mso-hide":`all`}})}>${e[`ico-open`]}</span>`,`<span${L({class:`mj-menu-icon-close`,style:{display:`none`,"mso-hide":`all`}})}>${e[`ico-close`]}</span>`,`</label>`,`</div>`].join(``)}var Xn=D(Jn,{name:`VjmlNavbar`,setup({bodyRenderContext:e}){e?.addHeadStyle(`mj-navbar`,e=>`
|
|
110
|
+
noinput.mj-menu-checkbox { display:block!important; max-height:none!important; visibility:visible!important; }
|
|
111
|
+
|
|
112
|
+
@media only screen and (max-width:${Pe(e)}) {
|
|
113
|
+
.mj-menu-checkbox[type="checkbox"] ~ .mj-inline-links { display:none!important; }
|
|
114
|
+
.mj-menu-checkbox[type="checkbox"]:checked ~ .mj-inline-links,
|
|
115
|
+
.mj-menu-checkbox[type="checkbox"] ~ .mj-menu-trigger { display:block!important; max-width:none!important; max-height:none!important; font-size:inherit!important; }
|
|
116
|
+
.mj-menu-checkbox[type="checkbox"] ~ .mj-inline-links > a { display:block!important; }
|
|
117
|
+
.mj-menu-checkbox[type="checkbox"]:checked ~ .mj-menu-trigger .mj-menu-icon-close { display:block!important; }
|
|
118
|
+
.mj-menu-checkbox[type="checkbox"]:checked ~ .mj-menu-trigger .mj-menu-icon-open { display:none!important; }
|
|
119
|
+
}
|
|
120
|
+
`);let t=ht(Ot());return gt(t),{navbarContext:t}},render({attrs:t,content:n},r){let i=z(n.childNodes);r.navbarContext.baseUrl=t[`base-url`]??null;let a=(0,e.h)(`div`,{class:`mj-inline-links`},[P(W(`<table role="presentation" border="0" cellpadding="0" cellspacing="0" align="${t.align}"><tr>`)),...i.map(e=>e.vnode),P(W(`</tr></table>`))]);return t.hamburger===`hamburger`?[P(Yn(t,r.navbarContext.hamburgerId)),a]:a}}),Zn=b(`mj-navbar-link`);function Qn(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function $n(e){return!!e&&typeof e==`object`&&!Array.isArray(e)&&Object.values(e).every(e=>e==null||typeof e==`number`||typeof e==`string`)}function er(e){return e==null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||$n(e)?e:null}function tr(e){return e.map(nr).join(``)}function nr(t){if(t.type===e.Comment)return``;if(t.type===e.Text)return Qn(typeof t.children==`string`?t.children:``);if(t.type===e.Fragment)return tr(x(t.children));if(typeof t.type==`string`){let e=t.props??{},n=Object.fromEntries(Object.entries(e).flatMap(([e,t])=>{if(/^on[A-Z]/.test(e)||e===`innerHTML`||e===`textContent`)return[];let n=er(t);return n===null?[]:[[e,n]]})),r=typeof t.children==`string`?Qn(t.children):tr(C(t));return`<${t.type}${L(n)}>${r}</${t.type}>`}return``}function rr(e,t,n){return e===`prop`?t??``:e===`slot`?tr(n):``}var ir=D(Zn,{name:`VjmlNavbarLink`,setup(){return{navbarContext:_t()}},render({attrs:e,content:t},n){let r=n.navbarContext.baseUrl?`${n.navbarContext.baseUrl}${e.href??``}`:e.href,i=rr(t.source,t.propValue,t.childNodes);return P([W(`<td${L({class:V(e[`css-class`],`outlook`)||void 0,style:{padding:e.padding,"padding-top":e[`padding-top`],"padding-left":e[`padding-left`],"padding-right":e[`padding-right`],"padding-bottom":e[`padding-bottom`]}})}>`),`<a${L({class:[`mj-link`,e[`css-class`]].filter(Boolean).join(` `)||void 0,href:r,name:e.name||void 0,rel:e.rel||void 0,style:{color:e.color,display:`inline-block`,"font-family":e[`font-family`],"font-size":e[`font-size`],"font-style":e[`font-style`],"font-weight":e[`font-weight`],"letter-spacing":e[`letter-spacing`],"line-height":e[`line-height`],padding:e.padding,"padding-top":e[`padding-top`],"padding-left":e[`padding-left`],"padding-right":e[`padding-right`],"padding-bottom":e[`padding-bottom`],"text-decoration":e[`text-decoration`],"text-transform":e[`text-transform`]},target:e.target||void 0})}>${i}</a>`,W(`</td>`)].join(``))}}),ar=K(`mj-preview`,`VjmlPreview`),or=D(b(`mj-raw`),{name:`VjmlRaw`,render({content:e}){return G(e)}}),sr=b(`mj-section`);function cr(e){return e[`background-position-x`]||e[`background-position-y`]?`${e[`background-position-x`]??`center`} ${e[`background-position-y`]??`top`}`:e[`background-position`]||void 0}function lr(e){return H(e[`background-url`])?{background:e[`background-color`],"background-color":e[`background-color`],"background-image":`url('${e[`background-url`]}')`,"background-position":cr(e),"background-repeat":e[`background-repeat`],"background-size":e[`background-size`]}:{background:e[`background-color`],"background-color":e[`background-color`]}}function ur(e,t,n,r){switch(t){case`mj-column`:case`mj-group`:return{"vertical-align":e[`vertical-align`],width:Ze(e.width,n,r)};default:return{}}}var dr=D(sr,{name:`VjmlSection`,setup(){let e=k();return A(e),{layoutState:e,layoutContext:j(),siblingContext:M()}},render({activeMjClass:t,attrs:n,content:r,documentContext:i},a){let o=n[`full-width`]===`full-width`,s=H(n[`border-radius`]),c=a.layoutContext.gap,l=c.length>0,u=l&&!a.siblingContext.first,d=lr(n),{box:f}=Ye(a.layoutContext.containerWidth,n),p=z(r.childNodes);a.layoutState.containerWidth=`${f}px`,a.layoutState.gap=n.gap??``,a.layoutState.parentWidth=a.layoutContext.parentWidth,a.layoutState.preserveMobileWidth=!1;let m=[P(W(`<tr>`)),...p.flatMap(e=>{let n=N(e.vnode,e.siblingContext);if(e.rawElement)return[n];let r=B(e.vnode,{documentContext:i,inheritedMjClass:t});return[P(W(`<td${L({align:r.align,class:V(r[`css-class`],`outlook`)||void 0,style:ur(r,e.tagName,`${f}px`,e.siblingContext.nonRawSiblings)})}>`)),n,P(W(`</td>`))]}),P(W(`</tr>`))],h=(0,e.h)(`table`,{align:`center`,background:o?void 0:n[`background-url`]||void 0,border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{...o?{}:d,"border-collapse":s?`separate`:void 0,width:`100%`}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[(0,e.h)(`td`,{style:I({border:n.border,"border-bottom":n[`border-bottom`],"border-left":n[`border-left`],"border-radius":n[`border-radius`],"border-right":n[`border-right`],"border-top":n[`border-top`],direction:n.direction,"font-size":`0px`,padding:n.padding,"padding-bottom":n[`padding-bottom`],"padding-left":n[`padding-left`],"padding-right":n[`padding-right`],"padding-top":n[`padding-top`],"text-align":n[`text-align`]})},[P(W(`<table role="presentation" border="0" cellpadding="0" cellspacing="0">`)),...m,P(W(`</table>`))])])])]),g=(0,e.h)(`div`,{class:o?void 0:n[`css-class`]||void 0,style:I({...o?{}:d,"border-radius":n[`border-radius`],margin:`0px auto`,"margin-top":u?c:void 0,"max-width":a.layoutContext.containerWidth,overflow:s?`hidden`:void 0})},[H(n[`background-url`])?(0,e.h)(`div`,{style:{"font-size":`0px`,"line-height":`0`}},[h]):h]),_=P(W(`<table${L({align:`center`,bgcolor:l?void 0:n[`background-color`],border:`0`,cellpadding:`0`,cellspacing:`0`,class:V(n[`css-class`],`outlook`)||void 0,role:`presentation`,style:{"padding-top":u?c:void 0,width:a.layoutContext.containerWidth},width:Number.parseInt(a.layoutContext.containerWidth,10)})}><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">`)),v=P(W(`</td></tr></table>`));return o?(0,e.h)(`table`,{align:`center`,background:n[`background-url`]||void 0,border:`0`,cellpadding:`0`,cellspacing:`0`,class:n[`css-class`]||void 0,role:`presentation`,style:{...d,width:`100%`}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[(0,e.h)(`td`,[_,g,v])])])]):[_,g,v]}}),fr=K(`mj-selector`,`VjmlSelector`),pr=b(`mj-social`),mr=[`border-radius`,`color`,`font-family`,`font-size`,`font-weight`,`font-style`,`icon-size`,`icon-height`,`icon-padding`,`line-height`,`text-decoration`,`text-padding`];function hr(e){let t=Object.fromEntries(mr.map(t=>[t,e[t]]).filter(([,e])=>e!==void 0));return e[`inner-padding`]&&(t.padding=e[`inner-padding`]),t}var gr=D(pr,{name:`VjmlSocial`,setup(){let e=ft();return pt(e),{socialContext:e}},render({attrs:t,content:n},r){let i=z(n.childNodes);return r.socialContext.inheritedAttrs=hr(t),t.mode===`vertical`?(0,e.h)(`table`,{border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{margin:`0px`}},[(0,e.h)(`tbody`,i.map(e=>e.vnode))]):[P(W(`<table align="${t.align}" border="0" cellpadding="0" cellspacing="0" role="presentation"><tr>`)),...i.flatMap(n=>n.rawElement?[n.vnode]:[P(W(`<td>`)),(0,e.h)(`table`,{align:t.align||void 0,border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{display:`inline-table`,float:`none`}},[(0,e.h)(`tbody`,[n.vnode])]),P(W(`</td>`))]),P(W(`</tr></table>`))]}}),Z=`https://www.mailjet.com/images/theme/v1/icons/ico-social/`,_r={facebook:{"background-color":`#3b5998`,"share-url":`https://www.facebook.com/sharer/sharer.php?u=[[URL]]`,src:`${Z}facebook.png`},twitter:{"background-color":`#55acee`,"share-url":`https://twitter.com/intent/tweet?url=[[URL]]`,src:`${Z}twitter.png`},x:{"background-color":`#000000`,"share-url":`https://twitter.com/intent/tweet?url=[[URL]]`,src:`${Z}twitter-x.png`},google:{"background-color":`#dc4e41`,"share-url":`https://plus.google.com/share?url=[[URL]]`,src:`${Z}google-plus.png`},pinterest:{"background-color":`#bd081c`,"share-url":`https://pinterest.com/pin/create/button/?url=[[URL]]&media=&description=`,src:`${Z}pinterest.png`},linkedin:{"background-color":`#0077b5`,"share-url":`https://www.linkedin.com/shareArticle?mini=true&url=[[URL]]&title=&summary=&source=`,src:`${Z}linkedin.png`},instagram:{"background-color":`#3f729b`,src:`${Z}instagram.png`},web:{"background-color":`#4BADE9`,src:`${Z}web.png`},snapchat:{"background-color":`#FFFA54`,src:`${Z}snapchat.png`},youtube:{"background-color":`#EB3323`,src:`${Z}youtube.png`},tumblr:{"background-color":`#344356`,"share-url":`https://www.tumblr.com/widgets/share/tool?canonicalUrl=[[URL]]`,src:`${Z}tumblr.png`},github:{"background-color":`#000000`,src:`${Z}github.png`},xing:{"background-color":`#296366`,"share-url":`https://www.xing.com/app/user?op=share&url=[[URL]]`,src:`${Z}xing.png`},vimeo:{"background-color":`#53B4E7`,src:`${Z}vimeo.png`},medium:{"background-color":`#000000`,src:`${Z}medium.png`},soundcloud:{"background-color":`#EF7F31`,src:`${Z}soundcloud.png`},dribbble:{"background-color":`#D95988`,src:`${Z}dribbble.png`}};for(let[e,t]of Object.entries(_r))_r[`${e}-noshare`]={...t,"share-url":`[[URL]]`};var vr=b(`mj-social-element`);function yr(e){let t=e.name?_r[e.name]??{}:{},n=e.href;return n&&t[`share-url`]&&(n=t[`share-url`].replace(`[[URL]]`,n)),{"background-color":e[`background-color`]||t[`background-color`],href:n,"icon-height":e[`icon-height`]||t[`icon-height`],"icon-size":e[`icon-size`]||t[`icon-size`],sizes:e.sizes||t.sizes,src:e.src||t.src,srcset:e.srcset||t.srcset}}function br(e,t,n){let r=Dt(e,t,n);for(let[e,i]of Object.entries(n)){if(i===void 0||t[e]!==void 0)continue;let n=vr.defaultAttributes[e];r[e]===n&&(r[e]=i)}return r}var xr=D(vr,{name:`VjmlSocialElement`,setup(){return{socialContext:mt()}},render({attrs:t,content:n,explicitAttrs:r},i){let a=br(t,r,i.socialContext.inheritedAttrs),o=yr(a),s=!!a.href,c=o[`icon-size`]||a[`icon-size`]||`20px`,l=(0,e.h)(`td`,{style:I({padding:a.padding,"padding-top":a[`padding-top`],"padding-right":a[`padding-right`],"padding-bottom":a[`padding-bottom`],"padding-left":a[`padding-left`],"vertical-align":a[`vertical-align`]})},[(0,e.h)(`table`,{border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{background:o[`background-color`],"border-radius":a[`border-radius`],width:c}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[(0,e.h)(`td`,{style:{"font-size":`0`,height:o[`icon-height`]||c,padding:a[`icon-padding`],"vertical-align":`middle`,width:c}},[s?(0,e.h)(`a`,{href:o.href,rel:a.rel,target:a.target},[(0,e.h)(`img`,{alt:a.alt,sizes:o.sizes,src:o.src,srcset:o.srcset,style:{"border-radius":a[`border-radius`],display:`block`},title:a.title,width:Number.parseInt(c,10)})]):(0,e.h)(`img`,{alt:a.alt,sizes:o.sizes,src:o.src,srcset:o.srcset,style:{"border-radius":a[`border-radius`],display:`block`},title:a.title,width:Number.parseInt(c,10)})])])])])]),u=n.hasContent?(0,e.h)(`td`,{style:{padding:a[`text-padding`],"text-align":a.align,"vertical-align":`middle`}},[s?(0,e.h)(`a`,{href:o.href,rel:a.rel,style:{color:a.color,"font-family":a[`font-family`],"font-size":a[`font-size`],"font-style":a[`font-style`],"font-weight":a[`font-weight`],"line-height":a[`line-height`],"text-decoration":a[`text-decoration`]},target:a.target},G(n)):(0,e.h)(`span`,{style:{color:a.color,"font-family":a[`font-family`],"font-size":a[`font-size`],"font-style":a[`font-style`],"font-weight":a[`font-weight`],"line-height":a[`line-height`],"text-decoration":a[`text-decoration`]}},G(n))]):null;return(0,e.h)(`tr`,{class:a[`css-class`]||void 0},a[`icon-position`]===`left`?[l,u]:[u,l])}}),Sr=D(b(`mj-spacer`),{name:`VjmlSpacer`,render({attrs:t}){return(0,e.h)(`div`,{style:{height:t.height,"line-height":t.height}},` `)}}),Cr=K(`mj-style`,`VjmlStyle`),wr=b(`mj-table`);function Tr(e){if(!e)return!1;let t=Number.parseFloat(e.replace(/[^\d.]/g,``));return!Number.isNaN(t)&&t>0}function Er(e){if(e===`auto`)return e;let t=O(e);return t.unit===`%`?e:t.parsedWidth}var Dr=D(wr,{name:`VjmlTable`,render({attrs:t,content:n}){return(0,e.h)(`table`,{border:`0`,cellpadding:t.cellpadding,cellspacing:t.cellspacing,role:t.role,style:{border:t.border,"border-collapse":Tr(t.cellspacing)?`separate`:void 0,color:t.color,"font-family":t[`font-family`],"font-size":t[`font-size`],"line-height":t[`line-height`],"table-layout":t[`table-layout`],width:t.width},width:Er(t.width??`100%`)},G(n))}}),Or=D(b(`mj-text`),{name:`VjmlText`,render({attrs:t,content:n}){let r=(0,e.h)(`div`,{style:{color:t.color,"font-family":t[`font-family`],"font-size":t[`font-size`],"font-style":t[`font-style`],"font-weight":t[`font-weight`],height:t.height,"letter-spacing":t[`letter-spacing`],"line-height":t[`line-height`],"text-align":t.align,"text-decoration":t[`text-decoration`],"text-transform":t[`text-transform`]}},G(n));return t.height?[P(W(`<table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td height="${t.height}" style="vertical-align:top;height:${t.height};">`)),r,P(W(`</td></tr></table>`))]:r}}),kr=K(`mj-title`,`VjmlTitle`),Ar=b(`mj-wrapper`);function jr(e){return e[`background-position-x`]||e[`background-position-y`]?`${e[`background-position-x`]??`center`} ${e[`background-position-y`]??`top`}`:e[`background-position`]||void 0}function Mr(e){return H(e[`background-url`])?{background:e[`background-color`],"background-color":e[`background-color`],"background-image":`url('${e[`background-url`]}')`,"background-position":jr(e),"background-repeat":e[`background-repeat`],"background-size":e[`background-size`]}:{background:e[`background-color`],"background-color":e[`background-color`]}}var Nr=D(Ar,{name:`VjmlWrapper`,setup(){let e=k();return A(e),{layoutContext:j(),layoutState:e,siblingContext:M()}},render({activeMjClass:t,attrs:n,content:r,documentContext:i},a){let o=n[`full-width`]===`full-width`,s=H(n[`border-radius`]),c=a.layoutContext.gap,l=c.length>0&&!a.siblingContext.first,u=Mr(n),{box:d}=Ye(a.layoutContext.containerWidth,n),f=z(r.childNodes);a.layoutState.containerWidth=`${d}px`,a.layoutState.gap=n.gap??``,a.layoutState.parentWidth=a.layoutContext.parentWidth,a.layoutState.preserveMobileWidth=!1;let p=f.flatMap(e=>{let n=N(e.vnode,e.siblingContext);if(e.rawElement)return[n];let r=B(e.vnode,{documentContext:i,inheritedMjClass:t});return[P(W(`<tr><td${L({align:r.align,class:V(r[`css-class`],`outlook`)||void 0,width:a.layoutContext.containerWidth})}>`)),n,P(W(`</td></tr>`))]}),m=(0,e.h)(`table`,{align:`center`,background:o?void 0:n[`background-url`]||void 0,border:`0`,cellpadding:`0`,cellspacing:`0`,role:`presentation`,style:{...o?{}:u,"border-collapse":s?`separate`:void 0,width:`100%`}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[(0,e.h)(`td`,{style:I({border:n.border,"border-bottom":n[`border-bottom`],"border-left":n[`border-left`],"border-radius":n[`border-radius`],"border-right":n[`border-right`],"border-top":n[`border-top`],direction:n.direction,"font-size":`0px`,padding:n.padding,"padding-bottom":n[`padding-bottom`],"padding-left":n[`padding-left`],"padding-right":n[`padding-right`],"padding-top":n[`padding-top`],"text-align":n[`text-align`]})},[P(W(`<table role="presentation" border="0" cellpadding="0" cellspacing="0">`)),...p,P(W(`</table>`))])])])]),h=(0,e.h)(`div`,{class:o?void 0:n[`css-class`]||void 0,style:I({...o?{}:u,"border-radius":n[`border-radius`],margin:`0px auto`,"margin-top":l?c:void 0,"max-width":a.layoutContext.containerWidth,overflow:s?`hidden`:void 0})},[H(n[`background-url`])?(0,e.h)(`div`,{style:{"font-size":`0px`,"line-height":`0`}},[m]):m]),g=P(W(`<table${L({align:`center`,bgcolor:l?void 0:n[`background-color`],border:`0`,cellpadding:`0`,cellspacing:`0`,class:V(n[`css-class`],`outlook`)||void 0,role:`presentation`,style:{"padding-top":l?c:void 0,width:a.layoutContext.containerWidth},width:Number.parseInt(a.layoutContext.containerWidth,10)})}><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">`)),_=P(W(`</td></tr></table>`));return o?(0,e.h)(`table`,{align:`center`,background:n[`background-url`]||void 0,border:`0`,cellpadding:`0`,cellspacing:`0`,class:n[`css-class`]||void 0,role:`presentation`,style:{...u,width:`100%`}},[(0,e.h)(`tbody`,[(0,e.h)(`tr`,[(0,e.h)(`td`,[g,h,_])])])]):[g,h,_]}}),Pr=kt,Fr=Gt,Ir=Vt,Lr=Wt,Rr=Kt,zr=qt,Br=Yt,Vr=Xt,Hr=on,Ur=pn,Wr=mn,Gr=hn,Kr=vn,qr=Sn,Jr=Cn,Yr=wn,Xr=Mn,Zr=Rn,Qr=zn,$r=Bn,ei=Wn,ti=qn,ni=Xn,ri=ir,ii=ar,ai=or,oi=dr,si=fr,ci=gr,li=xr,ui=Sr,di=Cr,fi=Dr,pi=Or,mi=kr,hi=Nr,gi={Accordion:Pr,AccordionElement:Fr,AccordionText:Ir,AccordionTitle:Lr,All:Rr,Attributes:zr,Body:Br,Breakpoint:Vr,Button:Hr,Carousel:Ur,CarouselImage:Wr,Class:Gr,Column:Kr,Divider:qr,Font:Jr,Group:Yr,Head:Xr,Hero:Zr,HtmlAttribute:Qr,HtmlAttributes:$r,Image:ei,Mjml:ti,Navbar:ni,NavbarLink:ri,Preview:ii,Raw:ai,Section:oi,Selector:si,Social:ci,SocialElement:li,Spacer:ui,Style:di,Table:fi,Text:pi,Title:mi,Wrapper:hi},_i=[{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Accordion`,exportName:`Accordion`,isLeaf:!1,propInterfaceName:`VjmlAccordionProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Accordion`,tagName:`mj-accordion`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`AccordionElement`,exportName:`AccordionElement`,isLeaf:!1,propInterfaceName:`VjmlAccordionElementProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/AccordionElement`,tagName:`mj-accordion-element`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`AccordionText`,exportName:`AccordionText`,isLeaf:!1,propInterfaceName:`VjmlAccordionTextProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/AccordionText`,tagName:`mj-accordion-text`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`AccordionTitle`,exportName:`AccordionTitle`,isLeaf:!1,propInterfaceName:`VjmlAccordionTitleProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/AccordionTitle`,tagName:`mj-accordion-title`},{acceptsChildren:!1,allowsArbitraryAttributes:!0,componentBaseName:`All`,exportName:`All`,isLeaf:!0,propInterfaceName:`VjmlAllProps`,requiresRawContent:!1,slotKind:`none`,sourcePath:`./runtime/components/All`,tagName:`mj-all`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Attributes`,exportName:`Attributes`,isLeaf:!1,propInterfaceName:`VjmlAttributesProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Attributes`,tagName:`mj-attributes`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Body`,exportName:`Body`,isLeaf:!1,propInterfaceName:`VjmlBodyProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Body`,tagName:`mj-body`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Breakpoint`,exportName:`Breakpoint`,isLeaf:!1,propInterfaceName:`VjmlBreakpointProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/Breakpoint`,tagName:`mj-breakpoint`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Button`,exportName:`Button`,isLeaf:!1,propInterfaceName:`VjmlButtonProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/Button`,tagName:`mj-button`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Carousel`,exportName:`Carousel`,isLeaf:!1,propInterfaceName:`VjmlCarouselProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Carousel`,tagName:`mj-carousel`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`CarouselImage`,exportName:`CarouselImage`,isLeaf:!1,propInterfaceName:`VjmlCarouselImageProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/CarouselImage`,tagName:`mj-carousel-image`},{acceptsChildren:!0,allowsArbitraryAttributes:!0,componentBaseName:`Class`,exportName:`Class`,isLeaf:!1,propInterfaceName:`VjmlClassProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Class`,tagName:`mj-class`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Column`,exportName:`Column`,isLeaf:!1,propInterfaceName:`VjmlColumnProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Column`,tagName:`mj-column`},{acceptsChildren:!1,allowsArbitraryAttributes:!1,componentBaseName:`Divider`,exportName:`Divider`,isLeaf:!0,propInterfaceName:`VjmlDividerProps`,requiresRawContent:!1,slotKind:`none`,sourcePath:`./runtime/components/Divider`,tagName:`mj-divider`},{acceptsChildren:!1,allowsArbitraryAttributes:!1,componentBaseName:`Font`,exportName:`Font`,isLeaf:!0,propInterfaceName:`VjmlFontProps`,requiresRawContent:!1,slotKind:`none`,sourcePath:`./runtime/components/Font`,tagName:`mj-font`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Group`,exportName:`Group`,isLeaf:!1,propInterfaceName:`VjmlGroupProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Group`,tagName:`mj-group`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Head`,exportName:`Head`,isLeaf:!1,propInterfaceName:`VjmlHeadProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Head`,tagName:`mj-head`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Hero`,exportName:`Hero`,isLeaf:!1,propInterfaceName:`VjmlHeroProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Hero`,tagName:`mj-hero`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`HtmlAttribute`,exportName:`HtmlAttribute`,isLeaf:!1,propInterfaceName:`VjmlHtmlAttributeProps`,requiresRawContent:!0,slotKind:`text`,sourcePath:`./runtime/components/HtmlAttribute`,tagName:`mj-html-attribute`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`HtmlAttributes`,exportName:`HtmlAttributes`,isLeaf:!1,propInterfaceName:`VjmlHtmlAttributesProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/HtmlAttributes`,tagName:`mj-html-attributes`},{acceptsChildren:!1,allowsArbitraryAttributes:!1,componentBaseName:`Image`,exportName:`Image`,isLeaf:!0,propInterfaceName:`VjmlImageProps`,requiresRawContent:!1,slotKind:`none`,sourcePath:`./runtime/components/Image`,tagName:`mj-image`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Mjml`,exportName:`Mjml`,isLeaf:!1,propInterfaceName:`VjmlMjmlProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Mjml`,tagName:`mjml`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Navbar`,exportName:`Navbar`,isLeaf:!1,propInterfaceName:`VjmlNavbarProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Navbar`,tagName:`mj-navbar`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`NavbarLink`,exportName:`NavbarLink`,isLeaf:!1,propInterfaceName:`VjmlNavbarLinkProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/NavbarLink`,tagName:`mj-navbar-link`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Preview`,exportName:`Preview`,isLeaf:!1,propInterfaceName:`VjmlPreviewProps`,requiresRawContent:!0,slotKind:`text`,sourcePath:`./runtime/components/Preview`,tagName:`mj-preview`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Raw`,exportName:`Raw`,isLeaf:!1,propInterfaceName:`VjmlRawProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/Raw`,tagName:`mj-raw`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Section`,exportName:`Section`,isLeaf:!1,propInterfaceName:`VjmlSectionProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Section`,tagName:`mj-section`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Selector`,exportName:`Selector`,isLeaf:!1,propInterfaceName:`VjmlSelectorProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Selector`,tagName:`mj-selector`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Social`,exportName:`Social`,isLeaf:!1,propInterfaceName:`VjmlSocialProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Social`,tagName:`mj-social`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`SocialElement`,exportName:`SocialElement`,isLeaf:!1,propInterfaceName:`VjmlSocialElementProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/SocialElement`,tagName:`mj-social-element`},{acceptsChildren:!1,allowsArbitraryAttributes:!1,componentBaseName:`Spacer`,exportName:`Spacer`,isLeaf:!0,propInterfaceName:`VjmlSpacerProps`,requiresRawContent:!1,slotKind:`none`,sourcePath:`./runtime/components/Spacer`,tagName:`mj-spacer`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Style`,exportName:`Style`,isLeaf:!1,propInterfaceName:`VjmlStyleProps`,requiresRawContent:!0,slotKind:`text`,sourcePath:`./runtime/components/Style`,tagName:`mj-style`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Table`,exportName:`Table`,isLeaf:!1,propInterfaceName:`VjmlTableProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/Table`,tagName:`mj-table`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Text`,exportName:`Text`,isLeaf:!1,propInterfaceName:`VjmlTextProps`,requiresRawContent:!0,slotKind:`html`,sourcePath:`./runtime/components/Text`,tagName:`mj-text`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Title`,exportName:`Title`,isLeaf:!1,propInterfaceName:`VjmlTitleProps`,requiresRawContent:!0,slotKind:`text`,sourcePath:`./runtime/components/Title`,tagName:`mj-title`},{acceptsChildren:!0,allowsArbitraryAttributes:!1,componentBaseName:`Wrapper`,exportName:`Wrapper`,isLeaf:!1,propInterfaceName:`VjmlWrapperProps`,requiresRawContent:!1,slotKind:`mjml`,sourcePath:`./runtime/components/Wrapper`,tagName:`mj-wrapper`}];Object.freeze(Object.fromEntries(_i.map(e=>[e.tagName,e])));var vi=`VJ`,yi={"Open Sans":`https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700`,"Droid Sans":`https://fonts.googleapis.com/css?family=Droid+Sans:300,400,500,700`,Lato:`https://fonts.googleapis.com/css?family=Lato:300,400,500,700`,Roboto:`https://fonts.googleapis.com/css?family=Roboto:300,400,500,700`,Ubuntu:`https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700`},bi={breakpoint:`480px`,fonts:{...yi},minify:!1,mode:`poc`,validation:`warn`},xi={mjml:Q(`mjml`),"mj-body":Q(`mj-body`),"mj-section":Q(`mj-section`),"mj-text":Q(`mj-text`),"mj-html-attribute":Q(`mj-html-attribute`)};function Si(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ci(e){let t=e.trim().toLowerCase();return t?t===`mjml`?`Mjml`:(t.startsWith(`mj-`)?t.slice(3):t).split(/[^a-z0-9]+/).filter(Boolean).map(Si).join(``):``}function Q(e,t=`VJ`){return`${t}${Ci(e)}`}function wi(e={}){return{breakpoint:e.breakpoint??bi.breakpoint,fonts:{...yi,...e.fonts??{}},minify:e.minify??bi.minify,mode:e.mode??bi.mode,validation:e.validation??bi.validation}}function Ti(e={},t={}){return{prefix:t.prefix??e.prefix??`VJ`,render:wi({...e.render??{},...t.render??{},fonts:{...e.render?.fonts??{},...t.render?.fonts??{}}})}}function Ei(e={}){return Ti({},e)}function Di(e){return gi[e]}function Oi(e={}){return Object.freeze(Ti({},e))}function ki(e,t,n=!1){for(let r of _i){let i=Di(r.exportName);i&&(e.component(Q(r.tagName,t),i),n&&e.component(Ci(r.tagName),i))}}var Ai={install(e,t={}){let n=Oi(t);e.provide(u,n),ki(e,n.prefix,t.includeUnprefixedAliases??!1),e.config.globalProperties.$vjml=n}};function ji(){if((0,e.hasInjectionContext)()){let t=(0,e.inject)(u,null);if(t)return t}return Ei()}function Mi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ni(e,t=4){let n=` `.repeat(t);return e.split(`
|
|
121
|
+
`).map(e=>e.length>0?`${n}${e}`:e).join(`
|
|
122
|
+
`)}function Pi(e,t){return typeof e==`function`?e(t):e}function Fi(e){return e.filter(e=>typeof e==`string`&&e.length>0)}function Ii(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function Li(e){return e===``?``:`<div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">${Ii(e)}</div>`}function Ri(e,t,n={}){let r=[];for(let[i,a]of Object.entries(n)){let n=Mi(i),o=RegExp(`"[^"]*font-family:[^"]*${n}[^"]*"`,`im`),s=RegExp(`font-family:[^;}]*${n}`,`im`);(o.test(e)||t.some(e=>s.test(e)))&&r.push(a)}return r.length===0?``:[`<!--[if !mso]><!-->`,r.map(e=>`<link href="${e}" rel="stylesheet" type="text/css">`).join(`
|
|
123
|
+
`),`<style type="text/css">`,r.map(e=>`@import url(${e});`).join(`
|
|
124
|
+
`),`</style>`,`<!--<![endif]-->`].join(`
|
|
125
|
+
`)}function zi(e,t={},n={}){let r=Object.entries(t);if(r.length===0)return``;let{forceOWADesktop:i=!1,printerSupport:a=!1}=n,o=r.map(([e,t])=>`.${e} ${t}`),s=r.map(([e,t])=>`.moz-text-html .${e} ${t}`),c=o.map(e=>`[owa] ${e}`);return Fi([[`<style type="text/css">`,`@media only screen and (min-width:${e}) {`,...o,`}`,`</style>`].join(`
|
|
126
|
+
`),[`<style media="screen and (min-width:${e})">`,...s,`</style>`].join(`
|
|
127
|
+
`),a?[`<style type="text/css">`,`@media only print {`,...o,`}`,`</style>`].join(`
|
|
128
|
+
`):null,i?[`<style type="text/css">`,...c,`</style>`].join(`
|
|
129
|
+
`):null]).join(`
|
|
130
|
+
`)}function Bi(e,t,n){let r=[...t,...Object.values(n)];return r.length===0?``:[`<style type="text/css">`,...r.map(t=>Pi(t,e)),`</style>`].join(`
|
|
131
|
+
`)}function Vi(e,t){return t.length===0?``:[`<style type="text/css">`,...t.map(t=>Pi(t,e)),`</style>`].join(`
|
|
132
|
+
`)}function Hi(e,t){let n=t.beforeDoctype.join(`
|
|
133
|
+
`),r=`word-spacing:normal;${t.backgroundColor?`background-color:${t.backgroundColor};`:``}`,i=Fi([`<title>${t.title}</title>`,[`<!--[if !mso]><!-->`,`<meta http-equiv="X-UA-Compatible" content="IE=edge">`,`<!--<![endif]-->`].join(`
|
|
134
|
+
`),`<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">`,`<meta name="viewport" content="width=device-width, initial-scale=1">`,[`<style type="text/css">`,`#outlook a { padding:0; }`,`body { margin:0;padding:0;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%; }`,`table, td { border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt; }`,`img { border:0;height:auto;line-height:100%;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic; }`,`p { display:block;margin:13px 0; }`,`</style>`].join(`
|
|
135
|
+
`),[`<!--[if mso]>`,`<noscript>`,`<xml>`,`<o:OfficeDocumentSettings>`,`<o:AllowPNG/>`,`<o:PixelsPerInch>96</o:PixelsPerInch>`,`</o:OfficeDocumentSettings>`,`</xml>`,`</noscript>`,`<![endif]-->`].join(`
|
|
136
|
+
`),[`<!--[if lte mso 11]>`,`<style type="text/css">`,`.mj-outlook-group-fix { width:100% !important; }`,`</style>`,`<![endif]-->`].join(`
|
|
137
|
+
`),Ri(e,t.inlineStyle,t.fonts),zi(t.breakpoint,t.mediaQueries,{forceOWADesktop:t.forceOWADesktop,printerSupport:t.printerSupport}),Bi(t.breakpoint,t.componentsHeadStyle,t.headStyle),Vi(t.breakpoint,t.style),...t.headRaw]),a=Fi([Li(t.preview),e]);return`${n?`${n}\n`:``}<!doctype html>
|
|
138
|
+
<html lang="${t.lang}" dir="${t.dir}" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
|
139
|
+
<head>
|
|
140
|
+
${i.map(e=>Ni(e)).join(`
|
|
141
|
+
`)}
|
|
142
|
+
</head>
|
|
143
|
+
<body style="${r}">
|
|
144
|
+
${a.map(e=>Ni(e)).join(`
|
|
145
|
+
`)}
|
|
146
|
+
</body>
|
|
147
|
+
</html>`}function Ui(e){if(typeof DOMParser>`u`)return null;let t=e.replace(/^\s*<!doctype html>\s*/i,``);return new DOMParser().parseFromString(t,`text/html`)}function Wi(e,t){return/^\s*(<!doctype html>|<html\b)/i.test(e)?`<!doctype html>\n${t.documentElement.outerHTML}`:t.body.innerHTML||e}function Gi(e,t){if(!e||Object.keys(t).length===0)return e;let n=Ui(e);if(!n)return e;for(let[e,r]of Object.entries(t)){let t=[];try{t=Array.from(n.querySelectorAll(e))}catch{continue}for(let e of t)for(let[t,n]of Object.entries(r))e.setAttribute(t,n||``)}return Wi(e,n)}function Ki(e){if(typeof document>`u`||!document.head)return[];let t=document.createElement(`style`);t.media=`not all`,t.textContent=e,document.head.append(t);let n=t.sheet?Array.from(t.sheet.cssRules):[];return t.remove(),n}function qi(e){let t=new WeakMap;for(let n of Array.from(e.querySelectorAll(`[style]`))){let e=n.style,r=new Map;for(let t of Array.from(e))r.set(t,e.getPropertyPriority(t));t.set(n,r)}return t}function Ji(e,t,n,r){let i=r.get(e);return i?.has(t)?(i.get(t),n===`important`):!(e.style.getPropertyPriority(t)===`important`&&n!==`important`)}function Yi(e,t){if(!e||t.length===0)return e;let n=Ui(e);if(!n)return e;let r=Ki(t.join(`
|
|
148
|
+
`));if(r.length===0)return e;let i=qi(n),a=new Map;for(let e of r){if(e.type!==CSSRule.STYLE_RULE)continue;let t=e,r=[];try{r=Array.from(n.querySelectorAll(t.selectorText))}catch{continue}for(let e of r){let n=e;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);if(!Ji(n,e,o,i))continue;n.style.setProperty(e,r,o);let s=a.get(n)??new Map;s.set(e,r),a.set(n,s)}}}for(let[e,t]of a)for(let[n,r]of t)e.style.removeProperty(n),e.style.setProperty(n,r);return Wi(e,n)}function Xi(e,t){let n=Gi(Rt(e),t.htmlAttributes);return Lt(Yi(t.wrapWithDocument?Hi(n,t):n,t.inlineStyle))}function Zi(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{...t}]))}function Qi(e,t){return typeof e==`function`?e(t):e}function $i(e){let t=e.breakpoint;return{backgroundColor:e.backgroundColor,beforeDoctype:[...e.beforeDoctype],breakpoint:t,classes:Zi(e.classes),classesDefault:Zi(e.classesDefault),componentsHeadStyle:e.componentsHeadStyle.map(e=>Qi(e,t)),defaultAttributes:Zi(e.defaultAttributes),dir:e.dir,fonts:{...e.fonts},forceOWADesktop:e.forceOWADesktop,headRaw:[...e.headRaw],headStyle:Object.fromEntries(Object.entries(e.headStyle).map(([e,n])=>[e,Qi(n,t)])),htmlAttributes:Zi(e.htmlAttributes),inlineStyle:[...e.inlineStyle],lang:e.lang,mediaQueries:{...e.mediaQueries},preview:e.preview,printerSupport:e.printerSupport,style:e.style.map(e=>Qi(e,t)),title:e.title,wrapWithDocument:e.wrapWithDocument}}function $(e,t,n,r={}){return{code:e,message:t,severity:n,...r}}function ea(e){return`[${e.severity}] ${e.code}: ${e.message}`}function ta(e){return e.render.mode===`strict`?`error`:`warning`}function na(e){let t=[],n=n=>{e.render.validation!==`off`&&t.push(n)};return{issues:t,report:n,reportInvalidChild(t,r,i){n($(`invalid-child`,`'${r}' is not valid inside '${t}'. Allowed children: ${i.join(`, `)}.`,ta(e),{tagName:r}))},reportInvalidParent(t,r,i){n($(`invalid-parent`,`'${t}' requires one of these parents: ${i.join(`, `)}. Received ${r??`no parent`}.`,ta(e),{tagName:t}))}}}function ra(e,t){let n=Object.entries(e),r=Object.entries(t);return n.length===r.length?n.every(([e,n])=>t[e]===n):!1}function ia(e,t){return e.backgroundColor.length>0||e.beforeDoctype.length>0||e.breakpoint!==t.render.breakpoint||Object.keys(e.classes).length>0||Object.keys(e.classesDefault).length>0||e.componentsHeadStyle.length>0||Object.keys(e.defaultAttributes).length>0||e.dir!==`auto`||!ra(e.fonts,t.render.fonts)||e.forceOWADesktop||e.headRaw.length>0||Object.keys(e.headStyle).length>0||Object.keys(e.htmlAttributes).length>0||e.inlineStyle.length>0||e.lang!==`und`||Object.keys(e.mediaQueries).length>0||e.preview.length>0||e.printerSupport||e.style.length>0||e.title.length>0}function aa(e,t){if(t.render.validation===`off`)return[];let n=[];return!e.wrapWithDocument&&ia(e,t)&&n.push($(`document-shell-not-enabled`,`Document-level data was collected during render, but no VJML document shell was enabled. Add a root document component before relying on head or body collectors.`,ta(t))),n}function oa(e,t){if(!(t.render.validation!==`strict`||e.length===0))throw Error(`VJML render validation failed:\n${e.map(ea).join(`
|
|
149
|
+
`)}`)}function sa(e){return e.nodeType===Node.TEXT_NODE&&e.textContent?.trim().length!==0}function ca(e){return e.nodeType===Node.COMMENT_NODE}function la(e){return e.nodeType===Node.ELEMENT_NODE}function ua(e){let t=e.trim();if(!t||typeof DOMParser>`u`||typeof document>`u`)return[];if(/^(<!doctype html>|<html\b)/i.test(t)){let e=new DOMParser().parseFromString(t.replace(/^\s*<!doctype html>\s*/i,``),`text/html`);return Array.from(e.childNodes)}let n=document.createElement(`template`);return n.innerHTML=t,Array.from(n.content.childNodes)}function da(e){return la(e)?{type:`element`,tagName:e.tagName.toLowerCase(),attributes:Object.fromEntries(Array.from(e.attributes).map(e=>[e.name,e.value])),children:Array.from(e.childNodes).map(da).filter(e=>e!==null)}:ca(e)?{type:`comment`,value:e.data}:sa(e)?{type:`text`,value:e.textContent??``}:null}function fa(e){return ua(e).map(da).filter(e=>e!==null)}function pa(e,t){if(t.render.validation===`off`)return[];let n=[],r=e.trim();if(!r)return n.push($(`empty-output`,`Rendered HTML is empty.`,`error`)),n;if((r.includes(`<!--[-->`)||r.includes(`<!--]-->`))&&n.push($(`vue-fragment-artifact`,`Rendered HTML includes Vue fragment markers. VJML output should render concrete email HTML without SSR fragment comments.`,ta(t))),t.render.minify&&n.push($(`minify-not-implemented`,`Minify was requested, but the current render pipeline intentionally leaves output unminified until an email-safe minification pass exists.`,`warning`)),t.render.mode===`strict`){let e=ua(r).filter(e=>la(e)||ca(e)||sa(e));e.length>1&&n.push($(`multiple-root-nodes`,`Strict parity mode expects a single meaningful root node in the rendered email fragment.`,`error`)),e.some(sa)&&n.push($(`root-text-node`,`Strict parity mode does not allow non-empty text nodes at the fragment root.`,`error`))}return n}async function ma(t,n,r={}){if(typeof document>`u`)throw Error(`VJML browser rendering requires DOM APIs.`);let i=Object.freeze(n),a=na(i),o=s(i),h=c(o),g=l(o),_=document.createElement(`div`),v=(0,e.createApp)(t,r);ki(v,i.prefix,!0),v.provide(u,i),v.provide(d,o),v.provide(f,h),v.provide(p,g),v.provide(m,a);try{v.mount(_),await(0,e.nextTick)();let t=_.innerHTML,n=o.getState(),r=Xi(t,n),s=[...a.issues,...aa(n,i),...pa(r,i)];return oa(s,i),{html:r,warnings:i.render.validation===`off`?[]:s.map(ea),issues:s,config:i,document:$i(n),tree:fa(r)}}finally{v.unmount(),_.remove()}}async function ha(e,t,n={}){return ma(e,t,n)}async function ga(e,t={}){return ha(e,Ei(t.runtime),t.props??{})}async function _a(e,t,n={}){let{document:r,tree:i,...a}=await ma(e,t,n);return a}async function va(e,t={}){return _a(e,Ei(t.runtime),t.props??{})}function ya(e,t){return Ti(e,t.runtime??{})}function ba(e={}){return{renderToHtml(t,n={}){return _a(t,ya(e,n),n.props??{})},renderToDebugTree(t,n={}){return ha(t,ya(e,n),n.props??{})}}}function xa(e={}){return ba(Ti(ji(),e))}var Sa={class:`vjml-render-frame`},Ca=[`srcdoc`,`title`],wa=(0,e.defineComponent)({__name:`VjmlRenderFrame`,props:{component:{required:!0,type:[Object,Function]},height:{default:`360px`,type:[Number,String]},renderProps:{default:()=>({}),type:Object},runtime:{default:()=>({}),type:Object},title:{default:`VJML preview`,type:String}},setup(t,{expose:n}){let r=t,i=xa(),a=(0,e.ref)(``),o=(0,e.ref)([]),s=(0,e.ref)(``),c=(0,e.ref)(!1);function l(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function u(e){return`<!doctype html>
|
|
150
|
+
<html>
|
|
151
|
+
<body style="margin:0;padding:16px;background:#fffdf8;color:#173540;font-family:Arial,sans-serif;">
|
|
152
|
+
<p style="margin:0;font-size:14px;line-height:22px;">${l(e)}</p>
|
|
153
|
+
</body>
|
|
154
|
+
</html>`}async function d(){c.value=!0,s.value=``;try{let e=await i.renderToHtml(r.component,{props:r.renderProps,runtime:r.runtime});a.value=e.html,o.value=e.issues}catch(e){a.value=``,o.value=[],s.value=e instanceof Error?e.message:`Failed to render preview.`}finally{c.value=!1}}(0,e.watch)(()=>[r.component,r.renderProps,r.runtime],()=>{d()},{deep:!0,immediate:!0});let f=(0,e.computed)(()=>typeof r.height==`number`?`${r.height}px`:r.height),p=(0,e.computed)(()=>a.value?a.value:s.value?u(s.value):u(c.value?`Rendering preview…`:`Preparing preview…`));return n({html:a,issues:o,renderFrame:d}),(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,Sa,[(0,e.createElementVNode)(`iframe`,{srcdoc:p.value,style:(0,e.normalizeStyle)({minHeight:f.value}),class:`vjml-render-frame__iframe`,title:t.title},null,12,Ca)]))}});function Ta(e){return Q(e,ji().prefix)}exports.Accordion=Pr,exports.AccordionElement=Fr,exports.AccordionText=Ir,exports.AccordionTitle=Lr,exports.All=Rr,exports.Attributes=zr,exports.Body=Br,exports.Breakpoint=Vr,exports.Button=Hr,exports.Carousel=Ur,exports.CarouselImage=Wr,exports.Class=Gr,exports.Column=Kr,exports.DEFAULT_VJML_FONTS=yi,exports.DEFAULT_VJML_PREFIX=vi,exports.DEFAULT_VJML_RENDER_OPTIONS=bi,exports.Divider=qr,exports.Font=Jr,exports.Group=Yr,exports.Head=Xr,exports.Hero=Zr,exports.HtmlAttribute=Qr,exports.HtmlAttributes=$r,exports.Image=ei,exports.Mjml=ti,exports.Navbar=ni,exports.NavbarLink=ri,exports.Preview=ii,exports.Raw=ai,exports.Section=oi,exports.Selector=si,exports.Social=ci,exports.SocialElement=li,exports.Spacer=ui,exports.Style=di,exports.Table=fi,exports.Text=pi,exports.Title=mi,exports.VJML_COMPONENT_METADATA=ne,exports.VJML_COMPONENT_METADATA_BY_TAG_NAME=re,exports.VJML_COMPONENT_NAME_EXAMPLES=xi,exports.VJML_MANUAL_COMPONENT_TAG_NAMES=ie,exports.VJML_RUNTIME_COMPONENTS=_i,exports.VJML_RUNTIME_COMPONENT_EXPORTS=gi,exports.VjmlPlugin=Ai,exports.default=Ai,exports.VjmlRenderFrame=wa,exports.Wrapper=hi,exports.createVjmlRenderer=ba,exports.getVjmlComponentMetadata=y,exports.mergeVjmlRuntimeConfig=Ti,exports.registerVjmlComponents=ki,exports.renderVjmlToDebugTree=ga,exports.renderVjmlToHtml=va,exports.resolveVjmlPluginConfig=Oi,exports.resolveVjmlRenderOptions=wi,exports.resolveVjmlRuntimeConfig=Ei,exports.toVjmlComponentBaseName=Ci,exports.toVjmlComponentName=Q,exports.useVjml=ji,exports.useVjmlComponentName=Ta,exports.useVjmlRenderer=xa;
|