useblocks 1.3.8 → 1.3.11-dev.1
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/iframe/.vite/manifest.json +4 -4
- package/iframe/css/sandbox.css +6 -0
- package/iframe/{iframe-eblock.a0b8903e.html → iframe-eblock.c5a8ebf9.html} +2 -2
- package/iframe/{iframe.a0b8903e.html → iframe.c5a8ebf9.html} +2 -2
- package/iframe/js/{elMarkupHelper.C1NUEUOF.js → elMarkupHelper.DjmNMeRr.js} +90 -90
- package/iframe/js/{iframe-eblock.body.a0b8903e.js → iframe-eblock.body.c5a8ebf9.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/{iframe.body.a0b8903e.js → iframe.body.c5a8ebf9.js} +1 -1
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{f370243f.js → 1155fc70.js} +1 -1
- package/static/core/{5bf0cc25.js → 14819724.js} +1 -1
- package/static/core/{e85778fc.js → 1c0ad4e2.js} +1 -1
- package/static/core/{7a1ca179.js → 1c94aa95.js} +1 -1
- package/static/core/{4a69114d.js → 1d3606c0.js} +1 -1
- package/static/core/{c0f26c01.js → 203f8a09.js} +1 -1
- package/static/core/{3e55fbd4.js → 2a8276a7.js} +1 -1
- package/static/core/{d4aa63e7.js → 2aa29959.js} +1 -1
- package/static/core/{bd188fca.js → 2b3023ec.js} +1 -1
- package/static/core/{2d458997.js → 2f369eab.js} +1 -1
- package/static/core/{55a6e3bc.js → 35a1d850.js} +3 -3
- package/static/core/{31aad6a0.js → 3b0fc21e.js} +1 -1
- package/static/core/{4e869a27.js → 3f1b20ee.js} +1 -1
- package/static/core/{88ed7988.js → 411823ad.js} +1 -1
- package/static/core/{74b30e13.js → 4430410a.js} +1 -1
- package/static/core/{e6079a68.js → 490ecf9b.js} +1 -1
- package/static/core/{e4ebcc13.js → 62abaa0c.js} +1 -1
- package/static/core/{6584ba9a.js → 6a4c653c.js} +1 -1
- package/static/core/{58b98b23.js → 6b521a88.js} +2 -2
- package/static/core/{d5cd129a.js → 6c84f3aa.js} +1 -1
- package/static/core/81908794.js +1 -0
- package/static/core/{851da4d1.js → 880187e3.js} +1 -1
- package/static/core/{75b3d05d.js → 8b0eaa20.js} +2 -2
- package/static/core/{91a91433.js → 8c5662da.js} +1 -1
- package/static/core/{1b6e3017.js → 9689c25e.js} +1 -1
- package/static/core/{ec23adac.js → a5cf594a.js} +1 -1
- package/static/core/{64a5118e.js → a636d084.js} +1 -1
- package/static/core/{f06286dd.js → b8e2e735.js} +1 -1
- package/static/core/{3fc88c79.js → b90b0517.js} +1 -1
- package/static/core/{c015f53f.js → bf6cd7cc.js} +1 -1
- package/static/core/{d5774798.js → bfa8fbcd.js} +1 -1
- package/static/core/{cad7dc27.js → c96e8d1f.js} +1 -1
- package/static/core/{ffabcd69.js → cff76b3c.js} +1 -1
- package/static/core/{a7e83e25.js → d3ae23fa.js} +1 -1
- package/static/core/{b79eddad.js → d8b648e9.js} +1 -1
- package/static/core/{d7ccd97b.js → dbf8654f.js} +1 -1
- package/static/core/{80f29ed0.js → e4a8dec2.js} +1 -1
- package/static/core/{3d73b614.js → e5cae5a9.js} +1 -1
- package/static/core/{3339abc3.js → e6bcae1a.js} +1 -1
- package/static/core/{a2fb7ae9.js → e955189e.js} +1 -1
- package/static/core/{addbb53c.js → ebf996e0.js} +1 -1
- package/static/core/ed99afa7.js +19 -0
- package/static/core/{9f12c233.js → f10baea7.js} +1 -1
- package/static/core/{4f9f6515.js → f3eb0f57.js} +1 -1
- package/static/esm/{b6a1b54a.js → f97f42d1.js} +1 -1
- package/static/umd-runtime/runtime.CtmO-sKr.js +1 -0
- package/{useblocks-core.a0b8903e.js → useblocks-core.c5a8ebf9.js} +43 -42
- package/useblocks-esm.js +12 -12
- package/{useblocks-po.a0b8903e.js → useblocks-po.c5a8ebf9.js} +1 -1
- package/useblocks.js +13 -13
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/static/core/2ca6f0ad.js +0 -19
- package/static/core/d67c9b4e.js +0 -2
- package/static/umd-runtime/runtime.B77pxBrU.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
__useblocks__.define("static/core/a71c4cd8.js",["require","exports","module","static/core/2ff39ddf.js"],function(e,t,s){const o=e("./2ff39ddf.js");var a=[{name:"META",selector:"head > meta[charset]",required:!0,requiredParent:"HEAD",attrs:[{name:"charset",value:["utf-8"],required:!0}],unique:!0},{name:"SCRIPT",selector:"head > script[src]",required:!0,requiredParent:"HEAD",attrs:[{name:"src",value:["https://cdn.ampproject.org/v0.js"],required:!0}],attrLists:["nonce-attr","amphtml-engine-attrs"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom-length-check]",requiredParent:"HEAD",attrs:[{name:"amp-custom-length-check",value:[""],required:!0},{name:"type",value:["text/css"]}],attrLists:["nonce-attr"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp4email-boilerplate]",requiredParent:"HEAD",attrs:[{name:"amp4email-boilerplate",value:[""],required:!0}],unique:!0},{name:"SCRIPT",selector:"amp-state > script[type]",requiresExtension:["amp-bind"],requiredParent:"AMP-STATE",attrs:[{name:"type",value:["application/json"],required:!0}],attrLists:["nonce-attr"]},{name:"HEAD",selector:"html > head",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"BODY",selector:"html > body",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"SECTION",selector:"amp-accordion > section",requiredParent:"AMP-ACCORDION",attrs:[{name:"expanded",value:[""]},{name:"[data-expand]"}]},{name:"DIV",selector:"div[submit-success][template]",attrs:[{name:"align"},{name:"submit-success",required:!0},{name:"template",required:!0}]},{name:"DIV",selector:"div[submit-error][template]",attrs:[{name:"align"},{name:"submit-error",required:!0},{name:"template",required:!0}]},{name:"SCRIPT",selector:"script[type][template]",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["text/plain"],required:!0},{name:"template",value:["amp-mustache"],required:!0}],attrLists:["nonce-attr"]},{name:"FORM",selector:"form[action-xhr]",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["post"],required:!0},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"DIV",selector:"div[submitting]",attrs:[{name:"align"},{name:"submitting",required:!0}]},{name:"DIV",selector:"div[submit-success]",attrs:[{name:"align"},{name:"submit-success",required:!0}]},{name:"DIV",selector:"div[submit-error]",attrs:[{name:"align"},{name:"submit-error",required:!0}]},{name:"SCRIPT",selector:"script[type]",attrs:[{name:"type",value:["application/ld+json"],required:!0}],attrLists:["nonce-attr"]},{name:"DIV",selector:"div[fetch-error]",attrs:[{name:"align"},{name:"fetch-error",required:!0}]},{name:"NAV",selector:"nav[toolbar]",requiredParent:"AMP-SIDEBAR",attrs:[{name:"toolbar",required:!0},{name:"toolbar-target",required:!0}]},{name:"HTML",selector:"html",required:!0,requiredParent:"$ROOT",attrs:[{name:"⚡4email",value:[""],required:!0},{name:"data-css-strict",value:[""],required:!0}],unique:!0},{name:"TITLE",selector:"title",deprecation:"Title tags in email have no meaning. This tag may become invalid in the future.",attrs:[{name:"[text]"}]},{name:"META",selector:"meta",attrs:[{name:"content"},{name:"itemprop"},{name:"name",disallowedValueRegex:"(^|\\s)(amp-.*|amp4ads-.*|apple-itunes-app|content-disposition|revisit-after|viewport)(\\s|$)"},{name:"media"},{name:"property"},{name:"scheme"}]},{name:"ARTICLE",selector:"article",attrs:[]},{name:"SECTION",selector:"section",attrs:[]},{name:"NAV",selector:"nav",attrs:[]},{name:"ASIDE",selector:"aside",attrs:[]},{name:"H1",selector:"h1",attrs:[{name:"align"}]},{name:"H2",selector:"h2",attrs:[{name:"align"}]},{name:"H3",selector:"h3",attrs:[{name:"align"}]},{name:"H4",selector:"h4",attrs:[{name:"align"}]},{name:"H5",selector:"h5",attrs:[{name:"align"}]},{name:"H6",selector:"h6",attrs:[{name:"align"}]},{name:"HEADER",selector:"header",attrs:[]},{name:"FOOTER",selector:"footer",attrs:[]},{name:"ADDRESS",selector:"address",attrs:[]},{name:"P",selector:"p",attrs:[{name:"align"}]},{name:"HR",selector:"hr",attrs:[]},{name:"PRE",selector:"pre",attrs:[]},{name:"BLOCKQUOTE",selector:"blockquote",attrs:[{name:"align"}],attrLists:["cite-attr"]},{name:"OL",selector:"ol",attrs:[{name:"reversed",value:[""]},{name:"start",valueRegex:"[0-9]*"},{name:"type",valueRegex:"[1AaIi]"}]},{name:"UL",selector:"ul",attrs:[]},{name:"LI",selector:"li",attrs:[{name:"value",valueRegex:"[0-9]*"}]},{name:"DL",selector:"dl",attrs:[]},{name:"DT",selector:"dt",attrs:[]},{name:"DD",selector:"dd",attrs:[]},{name:"FIGURE",selector:"figure",attrs:[]},{name:"FIGCAPTION",selector:"figcaption",attrs:[]},{name:"DIV",selector:"div",attrs:[{name:"align"}]},{name:"MAIN",selector:"main",attrs:[]},{name:"A",selector:"a",attrs:[{name:"border"},{name:"href",valueUrl:{protocol:["http","https","mailto","tel"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"},{name:"hreflang"},{name:"media"},{name:"role"},{name:"tabindex"},{name:"target",value:["_blank"]},{name:"type",value:["text/html"]}]},{name:"EM",selector:"em",attrs:[]},{name:"STRONG",selector:"strong",attrs:[]},{name:"SMALL",selector:"small",attrs:[]},{name:"S",selector:"s",attrs:[]},{name:"CITE",selector:"cite",attrs:[]},{name:"Q",selector:"q",attrs:[],attrLists:["cite-attr"]},{name:"DFN",selector:"dfn",attrs:[]},{name:"ABBR",selector:"abbr",attrs:[]},{name:"DATA",selector:"data",attrs:[]},{name:"TIME",selector:"time",attrs:[{name:"datetime"},{name:"pubdate",value:[""]}]},{name:"CODE",selector:"code",attrs:[]},{name:"VAR",selector:"var",attrs:[]},{name:"SAMP",selector:"samp",attrs:[]},{name:"KBD",selector:"kbd",attrs:[]},{name:"SUB",selector:"sub",attrs:[]},{name:"SUP",selector:"sup",attrs:[]},{name:"I",selector:"i",attrs:[]},{name:"B",selector:"b",attrs:[]},{name:"U",selector:"u",attrs:[]},{name:"MARK",selector:"mark",attrs:[]},{name:"RUBY",selector:"ruby",attrs:[]},{name:"RB",selector:"rb",attrs:[]},{name:"RT",selector:"rt",attrs:[]},{name:"RP",selector:"rp",attrs:[]},{name:"BDO",selector:"bdo",attrs:[{name:"dir"}]},{name:"SPAN",selector:"span",attrs:[]},{name:"BR",selector:"br",attrs:[]},{name:"WBR",selector:"wbr",attrs:[]},{name:"INS",selector:"ins",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"DEL",selector:"del",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"TABLE",selector:"table",attrs:[{name:"align"},{name:"bgcolor"},{name:"border",value:["0","1"]},{name:"cellpadding"},{name:"cellspacing"},{name:"width"}]},{name:"CAPTION",selector:"caption",attrs:[]},{name:"COLGROUP",selector:"colgroup",attrs:[{name:"span"}]},{name:"COL",selector:"col",attrs:[{name:"span"}]},{name:"TBODY",selector:"tbody",attrs:[]},{name:"THEAD",selector:"thead",attrs:[]},{name:"TFOOT",selector:"tfoot",attrs:[]},{name:"TR",selector:"tr",attrs:[{name:"align"},{name:"bgcolor"},{name:"height"},{name:"valign"}]},{name:"TD",selector:"td",attrs:[{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"valign"},{name:"width"}]},{name:"TH",selector:"th",attrs:[{name:"abbr"},{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"scope"},{name:"valign"},{name:"width"}]},{name:"FORM",selector:"form",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["get"]},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"LABEL",selector:"label",attrs:[{name:"for"}]},{name:"INPUT",selector:"input",attrs:[{name:"type",disallowedValueRegex:"(^|\\s)(file|image|password|)(\\s|$)"}],attrLists:["input-common-attr","name-attr"]},{name:"BUTTON",selector:"button",attrs:[{name:"disabled",value:[""]},{name:"role"},{name:"tabindex"},{name:"type"},{name:"value"},{name:"[disabled]"},{name:"[value]"}],attrLists:["name-attr"]},{name:"SELECT",selector:"select",attrs:[{name:"disabled"},{name:"multiple"},{name:"required"},{name:"size"},{name:"[disabled]"},{name:"[multiple]"},{name:"[required]"},{name:"[size]"}],attrLists:["name-attr"]},{name:"DATALIST",selector:"datalist",attrs:[]},{name:"OPTGROUP",selector:"optgroup",requiredParent:"SELECT",attrs:[{name:"disabled"},{name:"label"},{name:"[disabled]"},{name:"[label]"}]},{name:"OPTION",selector:"option",attrs:[{name:"disabled"},{name:"label"},{name:"selected"},{name:"value"},{name:"[disabled]"},{name:"[label]"},{name:"[selected]"},{name:"[value]"}]},{name:"TEXTAREA",selector:"textarea",attrs:[{name:"autocomplete"},{name:"autoexpand"},{name:"cols"},{name:"disabled"},{name:"maxlength"},{name:"minlength"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"rows"},{name:"spellcheck"},{name:"wrap"},{name:"[autocomplete]"},{name:"[cols]"},{name:"[defaulttext]"},{name:"[disabled]"},{name:"[maxlength]"},{name:"[minlength]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[rows]"},{name:"[spellcheck]"},{name:"[wrap]"}],attrLists:["name-attr"]},{name:"OUTPUT",selector:"output",attrs:[{name:"for"},{name:"form"}],attrLists:["name-attr"]},{name:"PROGRESS",selector:"progress",attrs:[{name:"max"},{name:"value"}]},{name:"METER",selector:"meter",attrs:[{name:"high"},{name:"low"},{name:"max"},{name:"min"},{name:"optimum"},{name:"value"}]},{name:"FIELDSET",selector:"fieldset",attrs:[{name:"disabled"},{name:"[disabled]"}],attrLists:["name-attr"]},{name:"LEGEND",selector:"legend",attrs:[]},{name:"DETAILS",selector:"details",attrs:[{name:"open",value:[""]},{name:"[open]"}]},{name:"SUMMARY",selector:"summary",requiredParent:"DETAILS",attrs:[]},{name:"AMP-IMG",selector:"amp-img",attrs:[{name:"alt"},{name:"attribution"},{name:"placeholder"},{name:"[alt]"},{name:"[attribution]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"AMP-LAYOUT",selector:"amp-layout",attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-accordion']",attrs:[{name:"custom-element",value:["amp-accordion"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-accordion-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ACCORDION",selector:"amp-accordion",requiresExtension:["amp-accordion"],attrs:[{name:"animate",value:[""]},{name:"expand-single-section",value:[""]},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-anim']",attrs:[{name:"custom-element",value:["amp-anim"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-anim-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ANIM",selector:"amp-anim",requiresExtension:["amp-anim"],attrs:[{name:"alt"},{name:"attribution"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-autocomplete']",attrs:[{name:"custom-element",value:["amp-autocomplete"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-autocomplete-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-AUTOCOMPLETE",selector:"amp-autocomplete",requiresExtension:["amp-autocomplete"],attrs:[{name:"highlight-user-entry"},{name:"inline"},{name:"items"},{name:"max-items"},{name:"min-characters"},{name:"prefetch"},{name:"query"},{name:"submit-on-enter"},{name:"suggest-first"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-bind']",attrs:[{name:"custom-element",value:["amp-bind"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-bind-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-STATE",selector:"amp-state",requiresExtension:["amp-bind"],attrs:[],attrLists:["mandatory-id-attr"]},{name:"AMP-BIND-MACRO",selector:"amp-bind-macro",requiresExtension:["amp-bind"],attrs:[{name:"arguments"},{name:"expression",required:!0}],attrLists:["mandatory-id-attr"]},{name:"SCRIPT",selector:"script[custom-element='amp-carousel']",attrs:[{name:"custom-element",value:["amp-carousel"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-carousel-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-CAROUSEL",selector:"amp-carousel",requiresExtension:["amp-carousel"],attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["amp-carousel-common","extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-fit-text']",attrs:[{name:"custom-element",value:["amp-fit-text"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-fit-text-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-FIT-TEXT",selector:"amp-fit-text",requiresExtension:["amp-fit-text"],attrs:[{name:"max-font-size"},{name:"min-font-size"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-form']",attrs:[{name:"custom-element",value:["amp-form"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-form-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"SCRIPT",selector:"script[custom-element='amp-image-lightbox']",deprecation:"amp-image-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-image-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-image-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-IMAGE-LIGHTBOX",selector:"amp-image-lightbox",requiresExtension:["amp-image-lightbox"],attrs:[{name:"controls"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-lightbox']",deprecation:"amp-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIGHTBOX",selector:"amp-lightbox",requiresExtension:["amp-lightbox"],attrs:[{name:"animate-in",value:["fade-in","fly-in-bottom","fly-in-top"]},{name:"controls"},{name:"from"},{name:"[open]"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-list']",attrs:[{name:"custom-element",value:["amp-list"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-list-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIST",selector:"amp-list",requiresExtension:["amp-list"],attrs:[{name:"binding",value:["always","no","refresh","refresh-evaluate"]},{name:"diffable",value:[""]},{name:"items"},{name:"max-items"},{name:"single-item"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"xssi-prefix"},{name:"[is-layout-container]"},{name:"layout",value:["responsive","container","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-template='amp-mustache']",attrs:[{name:"custom-template",value:["amp-mustache"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-mustache-0.1.js","https://cdn.ampproject.org/v0/amp-mustache-0.2.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"TEMPLATE",selector:"template",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["amp-mustache"],required:!0}]},{name:"SCRIPT",selector:"script[custom-element='amp-selector']",attrs:[{name:"custom-element",value:["amp-selector"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-selector-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SELECTOR",selector:"amp-selector",requiresExtension:["amp-selector"],attrs:[{name:"disabled",value:[""]},{name:"form"},{name:"keyboard-select-mode",value:["focus","none","select"]},{name:"multiple",value:[""]},{name:"[disabled]"},{name:"[selected]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","name-attr","$AMP_LAYOUT_ATTRS"]},{name:"$REFERENCE_POINT",selector:"amp-selector option",attrs:[{name:"disabled",value:[""]},{name:"option",required:!0},{name:"selected",value:[""]}]},{name:"$REFERENCE_POINT",selector:"amp-selector child",attrs:[]},{name:"SCRIPT",selector:"script[custom-element='amp-sidebar']",attrs:[{name:"custom-element",value:["amp-sidebar"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SIDEBAR",selector:"amp-sidebar",requiresExtension:["amp-sidebar"],attrs:[{name:"side",value:["left","right"]},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-timeago']",attrs:[{name:"custom-element",value:["amp-timeago"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-timeago-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-TIMEAGO",selector:"amp-timeago",requiresExtension:["amp-timeago"],attrs:[{name:"cutoff",valueRegex:"\\d+"},{name:"datetime",valueRegex:"\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d(:[0-5]\\d(\\.\\d+)?)?(Z|[+-][0-1][0-9]:[0-5][0-9])",required:!0},{name:"locale"},{name:"[datetime]"},{name:"[title]"},{name:"layout",value:["responsive","fixed","fixed_height"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]}],n=[{name:"cite-attr",attrs:[{name:"cite",valueUrl:{protocol:["http","https"],allowEmpty:!0},disallowedValueRegex:"__amp_source_origin"}]},{name:"input-common-attr",attrs:[{name:"accept"},{name:"accesskey"},{name:"autocomplete"},{name:"checked"},{name:"disabled"},{name:"height"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"size"},{name:"spellcheck"},{name:"step"},{name:"tabindex"},{name:"value"},{name:"width"},{name:"[autocomplete]"},{name:"[checked]"},{name:"[disabled]"},{name:"[height]"},{name:"[max]"},{name:"[maxlength]"},{name:"[min]"},{name:"[minlength]"},{name:"[multiple]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[size]"},{name:"[spellcheck]"},{name:"[step]"},{name:"[value]"},{name:"[width]"}]},{name:"amphtml-engine-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-src-amp4email",attrs:[{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"}]},{name:"extended-amp-global",attrs:[{name:"i-amphtml-layout",value:["container","fill","fixed","fixed-height","flex-item","fluid","intrinsic","nodisplay","responsive"]},{name:"media"},{name:"noloading",value:[""]}]},{name:"$AMP_LAYOUT_ATTRS",attrs:[{name:"disable-inline-width"},{name:"height"},{name:"heights"},{name:"layout"},{name:"sizes"},{name:"width"},{name:"[height]"},{name:"[width]"}]},{name:"nonce-attr",attrs:[]},{name:"common-extension-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-id-attr",attrs:[{name:"id",required:!0,disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"name-attr",attrs:[{name:"name",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"$GLOBAL_ATTRS",attrs:[{name:"itemid"},{name:"itemprop"},{name:"itemref"},{name:"itemscope"},{name:"itemtype"},{name:"about"},{name:"content"},{name:"datatype"},{name:"inlist"},{name:"prefix"},{name:"property"},{name:"rel",disallowedValueRegex:"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)"},{name:"resource"},{name:"rev"},{name:"style"},{name:"typeof"},{name:"vocab"},{name:"accesskey"},{name:"class"},{name:"dir"},{name:"draggable"},{name:"hidden",value:[""]},{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"lang"},{name:"slot"},{name:"tabindex"},{name:"title"},{name:"translate"},{name:"aria-activedescendant"},{name:"aria-atomic"},{name:"aria-autocomplete"},{name:"aria-busy"},{name:"aria-checked"},{name:"aria-controls"},{name:"aria-current"},{name:"aria-describedby"},{name:"aria-disabled"},{name:"aria-dropeffect"},{name:"aria-expanded"},{name:"aria-flowto"},{name:"aria-grabbed"},{name:"aria-haspopup"},{name:"aria-hidden"},{name:"aria-invalid"},{name:"aria-label"},{name:"aria-labelledby"},{name:"aria-level"},{name:"aria-live"},{name:"aria-modal"},{name:"aria-multiline"},{name:"aria-multiselectable"},{name:"aria-orientation"},{name:"aria-owns"},{name:"aria-posinset"},{name:"aria-pressed"},{name:"aria-readonly"},{name:"aria-relevant"},{name:"aria-required"},{name:"aria-selected"},{name:"aria-setsize"},{name:"aria-sort"},{name:"aria-valuemax"},{name:"aria-valuemin"},{name:"aria-valuenow"},{name:"aria-valuetext"},{name:"on"},{name:"role"},{name:"placeholder",value:[""]},{name:"fallback",value:[""]},{name:"overflow"},{name:"amp-access"},{name:"amp-access-behavior"},{name:"amp-access-hide"},{name:"amp-access-id"},{name:"amp-access-loader"},{name:"amp-access-loading"},{name:"amp-access-off"},{name:"amp-access-on"},{name:"amp-access-show"},{name:"amp-access-style"},{name:"amp-access-template"},{name:"i-amp-access-id"},{name:"validation-for"},{name:"visible-when-invalid",value:["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"]},{name:"amp-fx",valueRegex:"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*"},{name:"subscriptions-action"},{name:"subscriptions-actions",value:[""]},{name:"subscriptions-decorate"},{name:"subscriptions-dialog",value:[""]},{name:"subscriptions-display"},{name:"subscriptions-lang"},{name:"subscriptions-section",value:["actions","content","content-not-granted","loading"]},{name:"subscriptions-service"},{name:"subscriptions-google-rtc"},{name:"next-page-hide"},{name:"next-page-replace"},{name:"[aria-activedescendant]"},{name:"[aria-atomic]"},{name:"[aria-autocomplete]"},{name:"[aria-busy]"},{name:"[aria-checked]"},{name:"[aria-controls]"},{name:"[aria-describedby]"},{name:"[aria-disabled]"},{name:"[aria-dropeffect]"},{name:"[aria-expanded]"},{name:"[aria-flowto]"},{name:"[aria-grabbed]"},{name:"[aria-haspopup]"},{name:"[aria-hidden]"},{name:"[aria-invalid]"},{name:"[aria-label]"},{name:"[aria-labelledby]"},{name:"[aria-level]"},{name:"[aria-live]"},{name:"[aria-multiline]"},{name:"[aria-multiselectable]"},{name:"[aria-orientation]"},{name:"[aria-owns]"},{name:"[aria-posinset]"},{name:"[aria-pressed]"},{name:"[aria-readonly]"},{name:"[aria-relevant]"},{name:"[aria-required]"},{name:"[aria-selected]"},{name:"[aria-setsize]"},{name:"[aria-sort]"},{name:"[aria-valuemax]"},{name:"[aria-valuemin]"},{name:"[aria-valuenow]"},{name:"[aria-valuetext]"},{name:"[class]"},{name:"[hidden]"},{name:"[text]"},{name:"i-amphtml-binding",value:[""]},{name:"autoscroll"}]},{name:"amp-carousel-common",attrs:[{name:"autoplay",valueRegex:"(|[0-9]+)"},{name:"controls"},{name:"delay",valueRegex:"[0-9]+"},{name:"loop",value:[""]},{name:"slide",valueRegex:"[0-9]+"},{name:"type",value:["carousel","slides"]},{name:"[slide]"}]}],r=[{name:"amp-accordion",versions:["0.1"]},{name:"amp-anim",versions:["0.1"]},{name:"amp-autocomplete",versions:["0.1"]},{name:"amp-bind",versions:["0.1"]},{name:"amp-carousel",versions:["0.1"]},{name:"amp-fit-text",versions:["0.1"]},{name:"amp-form",versions:["0.1"]},{name:"amp-image-lightbox",versions:["0.1","latest"]},{name:"amp-lightbox",versions:["0.1","latest"]},{name:"amp-list",versions:["0.1"]},{name:"amp-mustache",versions:["0.1","0.2"]},{name:"amp-selector",versions:["0.1"]},{name:"amp-sidebar",versions:["0.1"]},{name:"amp-timeago",versions:["0.1"]}],m=[{name:"-moz-appearance"},{name:"-webkit-appearance"},{name:"-webkit-tap-highlight-color"},{name:"align-content"},{name:"align-items"},{name:"align-self"},{name:"appearance"},{name:"aspect-ratio"},{name:"azimuth"},{name:"background"},{name:"background-attachment"},{name:"background-blend-mode"},{name:"background-clip"},{name:"background-color"},{name:"background-image"},{name:"background-origin"},{name:"background-position"},{name:"background-repeat"},{name:"background-size"},{name:"border"},{name:"border-bottom"},{name:"border-bottom-color"},{name:"border-bottom-left-radius"},{name:"border-bottom-right-radius"},{name:"border-bottom-style"},{name:"border-bottom-width"},{name:"border-collapse"},{name:"border-color"},{name:"border-left"},{name:"border-left-color"},{name:"border-left-style"},{name:"border-left-width"},{name:"border-radius"},{name:"border-right"},{name:"border-right-color"},{name:"border-right-style"},{name:"border-right-width"},{name:"border-spacing"},{name:"border-style"},{name:"border-top"},{name:"border-top-color"},{name:"border-top-left-radius"},{name:"border-top-right-radius"},{name:"border-top-style"},{name:"border-top-width"},{name:"border-width"},{name:"bottom"},{name:"box-shadow"},{name:"box-sizing"},{name:"break-after"},{name:"break-before"},{name:"break-inside"},{name:"caption-side"},{name:"caret-color"},{name:"clear"},{name:"color"},{name:"color-adjust"},{name:"column-count"},{name:"column-fill"},{name:"column-gap"},{name:"column-rule"},{name:"column-rule-color"},{name:"column-rule-style"},{name:"column-rule-width"},{name:"column-span"},{name:"column-width"},{name:"columns"},{name:"counter-increment"},{name:"counter-reset"},{name:"cursor",value:["initial","pointer"]},{name:"direction"},{name:"display"},{name:"elevation"},{name:"empty-cells"},{name:"filter",valueRegex:"^ *((blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\))( +([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\)))*\\) *)*$"},{name:"flex"},{name:"flex-basis"},{name:"flex-direction"},{name:"flex-flow"},{name:"flex-grow"},{name:"flex-shrink"},{name:"flex-wrap"},{name:"float"},{name:"font"},{name:"font-family"},{name:"font-feature-settings"},{name:"font-kerning"},{name:"font-size"},{name:"font-size-adjust"},{name:"font-stretch"},{name:"font-style"},{name:"font-synthesis"},{name:"font-variant"},{name:"font-variant-alternates"},{name:"font-variant-caps"},{name:"font-variant-east-asian"},{name:"font-variant-ligatures"},{name:"font-variant-numeric"},{name:"font-variation-settings"},{name:"font-weight"},{name:"gap"},{name:"grid"},{name:"grid-area"},{name:"grid-auto-columns"},{name:"grid-auto-flow"},{name:"grid-auto-rows"},{name:"grid-column"},{name:"grid-column-end"},{name:"grid-column-start"},{name:"grid-row"},{name:"grid-row-end"},{name:"grid-row-start"},{name:"grid-template"},{name:"grid-template-areas"},{name:"grid-template-columns"},{name:"grid-template-rows"},{name:"height"},{name:"hyphens"},{name:"image-orientation"},{name:"image-resolution"},{name:"inline-size"},{name:"isolation"},{name:"justify-content"},{name:"justify-items"},{name:"justify-self"},{name:"left"},{name:"letter-spacing"},{name:"line-break"},{name:"line-height"},{name:"list-style"},{name:"list-style-position"},{name:"list-style-type"},{name:"margin"},{name:"margin-bottom"},{name:"margin-left"},{name:"margin-right"},{name:"margin-top"},{name:"max-height"},{name:"max-width"},{name:"min-height"},{name:"min-width"},{name:"mix-blend-mode"},{name:"object-fit"},{name:"object-position"},{name:"offset-distance"},{name:"opacity"},{name:"order"},{name:"outline"},{name:"outline-color"},{name:"outline-offset"},{name:"outline-style"},{name:"outline-width"},{name:"overflow"},{name:"overflow-wrap"},{name:"overflow-x"},{name:"overflow-y"},{name:"padding"},{name:"padding-bottom"},{name:"padding-left"},{name:"padding-right"},{name:"padding-top"},{name:"pause"},{name:"pause-after"},{name:"pause-before"},{name:"perspective"},{name:"perspective-origin"},{name:"pitch"},{name:"pitch-range"},{name:"place-items"},{name:"position"},{name:"quotes"},{name:"resize"},{name:"richness"},{name:"right"},{name:"row-gap"},{name:"speak"},{name:"speak-header"},{name:"speak-numeral"},{name:"speak-punctuation"},{name:"speech-rate"},{name:"stress"},{name:"table-layout"},{name:"text-align"},{name:"text-align-last"},{name:"text-combine-upright"},{name:"text-decoration"},{name:"text-decoration-color"},{name:"text-decoration-line"},{name:"text-decoration-skip"},{name:"text-decoration-style"},{name:"text-emphasis"},{name:"text-emphasis-color"},{name:"text-emphasis-position"},{name:"text-emphasis-style"},{name:"text-indent"},{name:"text-justify"},{name:"text-orientation"},{name:"text-overflow"},{name:"text-shadow"},{name:"text-transform"},{name:"text-underline-position"},{name:"top"},{name:"transform"},{name:"transform-box"},{name:"transform-origin"},{name:"transform-style"},{name:"transition",valueRegex:"^ *((initial|unset)|(((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?)(, *((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?))*)) *$"},{name:"transition-delay"},{name:"transition-duration"},{name:"transition-property",valueRegex:"^ *(initial|unset|(none|offset-distance|opacity|transform|visibility)(, *(none|offset-distance|opacity|transform|visibility))*) *$"},{name:"transition-timing-function"},{name:"unicode-bidi"},{name:"vertical-align"},{name:"visibility",value:["hidden","initial","visible"]},{name:"voice-family"},{name:"white-space"},{name:"width"},{name:"word-break"},{name:"word-spacing"},{name:"word-wrap"},{name:"writing-mode"},{name:"z-index",valueRegex:"([-+]?0)|([-+]?100)|([-+]?[1-9][0-9]?)"}],i={tags:a,attrLists:n,extensions:r,declarations:m};t.default=i});
|
|
2
2
|
|
|
3
|
-
__useblocks__.define("static/core/
|
|
3
|
+
__useblocks__.define("static/core/2f369eab.js",["require","exports","module","static/core/2ff39ddf.js","static/core/82dfd28b.js","static/core/d8b648e9.js","vite/preload-helper"],function(R,C,Ae){const ge=R("./2ff39ddf.js"),d=R("./82dfd28b.js"),E=R("./d8b648e9.js");let G=R("vite/preload-helper");function D(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function P(e){let t=e.head;if(!t){t=e.createElement("head");const i=D(e);i.insertBefore(t,i.firstChild)}return t}function I(e){const t=Object.create(null),i=e.getAttributeNames();for(const r of i)t[r]=e.getAttribute(r);return t}function Y(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}function J(e){const t=P(e);if(!e.querySelector("style[amp4email-boilerplate]")){const i=e.createElement("style");i.setAttribute("amp4email-boilerplate",""),i.innerHTML="body{visibility:hidden}",t.prepend(i)}}function K(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}var q="amp-custom";function Q(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}function H(e,t,i){for(const r of t)if(d.css.isStyleRule(r)){const l=r.selectorText.split(/\+>~/).flatMap(s=>s.trim().split(" "));if(l.length===1&&l[0].trim().startsWith(".em-")){for(const s of r.style)if(r.style.getPropertyPriority(s)==="important"){for(const o of e.querySelectorAll(r.selectorText))if(d.isHtmlElement(o)){const u=o.style;for(const c of[...u])if(c.startsWith(s)){const g=i(c,u.getPropertyValue(c)),w=o.getAttribute("class");o.setAttribute("class",w?`${g} ${w}`:g),u.removeProperty(c)}}}}}else d.css.isMediaRule(r)&&H(e,r.cssRules,i)}function U(e,t){const i=t.sheet;if(i){const s=new Set;H(e,i.cssRules,(o,u)=>{const c=Q(o,u),g=[...i.cssRules],w=`.${c} { ${o}: ${u} }`;return!g.find(v=>d.css.isStyleRule(v)&&v.selectorText===`.${c}`)&&!s.has(w)&&(s.add(w),t.innerHTML=`
|
|
4
4
|
.${c} { ${o}: ${u} };
|
|
5
5
|
${t.innerHTML}`),c}),s.size&&(t.innerHTML=`
|
|
6
6
|
${[...s].join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/35a1d850.js",["require","exports","module","static/core/2ff39ddf.js","static/core/82dfd28b.js","static/core/e6bcae1a.js","static/core/81908794.js","static/core/bfa8fbcd.js"],function(h,k,Y){const X=h("./2ff39ddf.js"),a=h("./82dfd28b.js"),R=h("./e6bcae1a.js"),u=h("./81908794.js"),b=h("./bfa8fbcd.js");var S=["# Rows of an email",'You add rows to the open email with row.insertHtml. Send only rows: an optional <style em="styles"> with the @media rules for every em-mob-* class the rows use, then one or more <tr em="block">.','The document shell, TR em="group" and table.em-narrow-table already exist in the email: never send <html>, <head>, <body>, em="group" or em-narrow-table.',"Make the rows as wide as the email: take the width from document.getSettings (660 px when it is not set).","Design the rows freely and richly: backgrounds, cards, columns, images, buttons, dividers, footers. Write all copy yourself in the language of the user.","Images: use real https addresses; for an illustration without a source use https://placehold.co/WIDTHxHEIGHT with the real pixel size.","row.insertHtml checks the rows against the rules below and answers invalidMarkup with a list of problems: fix them and send the rows again.","The rules below come from the converter of whole emails; where they speak of a source email, read them as the design you make."].join(`
|
|
2
2
|
`),O=[`## EmailMaker document architecture (mandatory hierarchy)
|
|
3
3
|
Build from the outside in (ASCII tree):
|
|
4
4
|
|
|
@@ -158,6 +158,6 @@ Cells of one row or items of one list that play the same role are identical in e
|
|
|
158
158
|
</tr>`,`## Visual styles (backgrounds, borders, radius)
|
|
159
159
|
- Apply background-color, borders, box-shadow, border-radius on td per EmailMaker rules — not on table/tr for ownership of the visual box. Gradients: also set a solid background-color fallback (average of gradient) on the same td.`],A=/\bEmailMaker\b/g;function F(){return[S,...O].join(`
|
|
160
160
|
|
|
161
|
-
`).replace(A,"editor")}var T={text:e=>a.Text_default(e),header:e=>a.Header_default(e),image:()=>a.image,button:e=>a.Button_default(e),spacer:()=>a.Spacer_default,divider:()=>a.Divider_default,"list-ul":e=>a.ListUl_default(e),"list-ol":e=>a.ListOl_default(e),video:()=>a.video},J=Object.keys(T);function B(e,t){return a.isPlanLocked(e,a.getAtomPlanFeature(t))?void 0:{name:t,className:"",html:T[t](a.agentTranslator(e))}}function v(e){return e.flatMap(t=>{const o=v(t.children??[]),n=a.publicElementKind(t.type);return n==="none"?o:[{element:t.element,kind:n,...t.text?{text:t.text}:{},...o.length?{children:o}:{}}]})}var j=50,C=200,x=120;function D(e,t){return t===""?!e:(e??"").toLowerCase().includes(t.toLowerCase())}function L(e,{kind:t,textContains:o,where:n}){return t!==void 0&&a.publicElementKind(e.type)!==t||o!==void 0&&!D(e.text,o)?!1:Object.entries(n??{}).every(([r,i])=>typeof i!="string"||e.attrs!==void 0&&r in e.attrs&&D(e.attrs[r],i))}function U(e){const t=e.text&&e.text.length>x?`${e.text.slice(0,x)}…`:e.text;return{element:e.element,kind:a.publicElementKind(e.type),...t?{text:t}:{},...e.attrs}}function
|
|
161
|
+
`).replace(A,"editor")}var T={text:e=>a.Text_default(e),header:e=>a.Header_default(e),image:()=>a.image,button:e=>a.Button_default(e),spacer:()=>a.Spacer_default,divider:()=>a.Divider_default,"list-ul":e=>a.ListUl_default(e),"list-ol":e=>a.ListOl_default(e),video:()=>a.video},J=Object.keys(T);function B(e,t){return a.isPlanLocked(e,a.getAtomPlanFeature(t))?void 0:{name:t,className:"",html:T[t](a.agentTranslator(e))}}function v(e){return e.flatMap(t=>{const o=v(t.children??[]),n=a.publicElementKind(t.type);return n==="none"?o:[{element:t.element,kind:n,...t.text?{text:t.text}:{},...o.length?{children:o}:{}}]})}var j=50,C=200,x=120;function D(e,t){return t===""?!e:(e??"").toLowerCase().includes(t.toLowerCase())}function L(e,{kind:t,textContains:o,where:n}){return t!==void 0&&a.publicElementKind(e.type)!==t||o!==void 0&&!D(e.text,o)?!1:Object.entries(n??{}).every(([r,i])=>typeof i!="string"||e.attrs!==void 0&&r in e.attrs&&D(e.attrs[r],i))}function U(e){const t=e.text&&e.text.length>x?`${e.text.slice(0,x)}…`:e.text;return{element:e.element,kind:a.publicElementKind(e.type),...t?{text:t}:{},...e.attrs}}function c(e,t){return a.askCanvasElement(e,t)}function m(e,t){return a.readOnlyRefusal(e)??a.askCanvasElement(e,t)}function N(e,t,o){return o.aborted?a.cancelledError():m(e,t)}function g(e,t,o,n){return(n.aborted?void 0:a.changedDocumentRefusal(e,t))??N(e,o,n)}function H(e){return"textReplacer"in e?a.err("invalidArgs",'"textReplacer" is written into the markup as it is; insert a merge variable with element.insertVariable.'):u.unsafeUrlRefusal(e)??u.fontNameRefusal(e)}async function z(e,t){const o=await b.readProjectBlocks(e);if(!o)return a.blocksNotLoaded();const n=o.find(i=>String(i.id)===t);if(!n)return a.err("notFound",`There is no block "${t}" in the project; take an id from block.list.`);const r=await b.projectBlockHtml(e,n);return r===void 0?a.err("unavailable",R.waitsForWrite(n)?"The block is being saved right now; try again in a moment.":"The block has no markup to insert; pick another one."):{html:r,type:"project",name:n.title??"",catalogBlock:n,project:n.project}}async function V(e,t){const o=await b.galleryBlockList(e);if(a.isResult(o))return o;const n=o.find(i=>String(i.id)===t);if(!n)return a.err("notFound",`There is no block "${t}" in the gallery; take an id from block.list with source "gallery".`);const r=await b.projectBlockHtml(e,n);return r===void 0?a.err("unavailable","The markup of the block could not be loaded."):{html:r,type:"common",name:n.title??"",catalogBlock:{...n,html:r},project:a.getCurrentProjectId(e)}}var P={1:{name:"column-one",html:a.column_1_default},2:{name:"column-two-50",html:a.column_2_50_default},"1:2":{name:"column-two-33",html:a.column_2_33_default},"2:1":{name:"column-two-66",html:a.column_2_66_default},3:{name:"column-three",html:a.column_3_default},4:{name:"column-four",html:a.column_4_default}},f="agent-row",W=25;async function I(e){const t=await c(e,{op:"tree",depth:1}),o=(t.ok?t.value.nodes.filter(n=>n.type==="structure"):[]).at(-1);return o?{element:o.element,place:"after"}:void 0}function _(e){return e.flatMap(t=>t.type==="column"||t.type==="floatBlock"?[t.element]:_(t.children??[]))}async function $(e,t){const o=await c(e,{op:"tree",root:t,depth:2});return o.ok?_(o.value.nodes):[]}function G(e){return{"element.delete":{precheck:()=>a.readOnlyRefusal(e),consent:a.elementConsent(e,({__:t},o,{kind:n,text:r})=>({title:t("Delete this element from the email"),...a.detailsOf(n,r)}))}}}function K(e){return{"element.getTree":async({root:t,depth:o})=>{const n=await c(e,{op:"tree",root:t,depth:o});if(!n.ok)return n;const r=n.value;return{nodes:v(r.nodes),truncated:r.truncated}},"element.find":async t=>{const o=await c(e,{op:"find",root:t.inside});if(!o.ok)return o;const{nodes:n,truncated:r}=o.value,i=n.filter(s=>a.publicElementKind(s.type)!=="none"&&L(s,t)),l=Math.min(Math.max(Math.round(t.limit??j),1),C);return{matches:i.slice(0,l).map(U),total:i.length,...r?{truncated:r}:{}}},"text.replace":({find:t,replace:o,matchCase:n,wholeWord:r,inside:i})=>m(e,{op:"replaceText",find:t,replace:o,matchCase:n,wholeWord:r,root:i}),"element.get":async({element:t})=>{const o=await c(e,{op:"get",element:t});if(!o.ok)return o;const{type:n,...r}=o.value;return{...r,kind:a.publicElementKind(n)}},"element.select":async({element:t})=>{const o=await c(e,{op:"select",element:t});return o.ok?void 0:o},"ui.highlight":async({element:t,durationMs:o})=>{const n=await c(e,{op:"highlight",element:t,durationMs:o});return n.ok?void 0:n},"element.setProps":async({element:t,props:o},n)=>H(o)??(a.isReadOnly(e)?a.readOnlyError():await u.closedFieldRefusal(e,t,o))??N(e,{op:"setProps",element:t,props:o},n.signal),"element.setText":({element:t,text:o})=>m(e,{op:"setText",element:t,text:o}),"row.insert":async({columns:t,at:o},n)=>{if(a.isReadOnly(e))return a.readOnlyError();const r=a.openDocument(e),i=P[t],l=await g(e,r,{op:"insertBlock",block:await a.prepareBlockInsert(e,{html:i.html,type:void 0,name:i.name,catalogBlock:{id:i.name,title:i.name,type:"structure"},project:a.getCurrentProjectId(e)}),at:o??await I(e)},n.signal);if(!l.ok)return l;const s=l.value?.element;return s?{element:s,columns:await $(e,s)}:void 0},"document.getMarkupRules":()=>F(),"row.insertHtml":async({html:t,at:o},n)=>{if(a.isReadOnly(e))return a.readOnlyError();const r=a.openDocument(e),{rows:i,findings:l,hasVariables:s,hasPreheader:q}=a.checkRowsMarkup(t),E=(s?a.featureRefusal(e,"variables","merge variables"):void 0)??u.preheaderRefusal(e,q);if(E)return E;if(l.length>0){const w=l.slice(0,W).map(d=>`- ${d.rule} at ${d.where}: ${d.detail}`).join(`
|
|
162
162
|
`);return a.err("invalidMarkup",`The rows break the markup rules in ${l.length} place(s); nothing was inserted. Fix and send again:
|
|
163
|
-
${w}`)}const p=[];let M=o??await I(e);for(const w of i){if(n.signal.aborted)return a.err("aborted","The call was cancelled; the remaining rows were not inserted.");const d=await g(e,r,{op:"insertBlock",block:await a.prepareBlockInsert(e,{html:w,type:void 0,name:f,catalogBlock:{id:f,title:f,type:"structure"},project:a.getCurrentProjectId(e)}),at:M},n.signal);if(d.ok===!1)return p.length?a.err("partialInsert",`Inserted ${p.length} of ${i.length} rows (${p.join(", ")}); they stay in the document, in one undo step. The next row failed with ${d.error.code}: ${d.error.message}`):d;const y=d.value?.element;y&&(p.push(y),M={element:y,place:"after"})}return{rows:p}},"element.insert":async({kind:t,at:o},n)=>{if(a.isReadOnly(e))return a.readOnlyError();const r=B(e,t);if(!r)return a.planRefusal(`The "${t}" element is not available on the current plan.`);const i=a.openDocument(e),{atomHTML:l,name:s}=await a.prepareAtomInsert(e,r);return g(e,i,{op:"insertAtom",atom:{atomHTML:l??"",name:s},at:o},n.signal)},"block.insert":async({block:t,source:o,at:n},r)=>{if(a.isReadOnly(e))return a.readOnlyError();const i=a.openDocument(e),l=await(o==="gallery"?V(e,t):z(e,t));if(a.isResult(l))return l;const s=
|
|
163
|
+
${w}`)}const p=[];let M=o??await I(e);for(const w of i){if(n.signal.aborted)return a.err("aborted","The call was cancelled; the remaining rows were not inserted.");const d=await g(e,r,{op:"insertBlock",block:await a.prepareBlockInsert(e,{html:w,type:void 0,name:f,catalogBlock:{id:f,title:f,type:"structure"},project:a.getCurrentProjectId(e)}),at:M},n.signal);if(d.ok===!1)return p.length?a.err("partialInsert",`Inserted ${p.length} of ${i.length} rows (${p.join(", ")}); they stay in the document, in one undo step. The next row failed with ${d.error.code}: ${d.error.message}`):d;const y=d.value?.element;y&&(p.push(y),M={element:y,place:"after"})}return{rows:p}},"element.insert":async({kind:t,at:o},n)=>{if(a.isReadOnly(e))return a.readOnlyError();const r=B(e,t);if(!r)return a.planRefusal(`The "${t}" element is not available on the current plan.`);const i=a.openDocument(e),{atomHTML:l,name:s}=await a.prepareAtomInsert(e,r);return g(e,i,{op:"insertAtom",atom:{atomHTML:l??"",name:s},at:o},n.signal)},"block.insert":async({block:t,source:o,at:n},r)=>{if(a.isReadOnly(e))return a.readOnlyError();const i=a.openDocument(e),l=await(o==="gallery"?V(e,t):z(e,t));if(a.isResult(l))return l;const s=u.preheaderRefusal(e,a.holdsPreheader(l.html));return s||g(e,i,{op:"insertBlock",block:await a.prepareBlockInsert(e,l),at:n},r.signal)},"element.delete":async({element:t})=>{const o=await m(e,{op:"delete",element:t});return o.ok?void 0:o},"element.clone":({element:t})=>m(e,{op:"clone",element:t}),"element.move":({element:t,direction:o})=>m(e,{op:"move",element:t,direction:o})}}k.agentElementGates=G,k.agentElementHandlers=K});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){try{if(typeof document<"u"){var n='.monaco-editor{width:100%;height:100%}.monaco-editor .monaco-hover{border-radius:6px}.monaco-editor .monaco-editor .scroll-decoration{box-shadow:none}.monaco-editor,.monaco-editor *,.monaco-editor .view-lines,.monaco-editor .view-lines *,.monaco-editor .view-lines .view-line,.monaco-editor .view-lines .monaco-mouse-cursor-text,.monaco-editor .view-line,.monaco-editor .monaco-mouse-cursor-text{font-family:var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace)!important}.monaco-editor .view-line,.monaco-editor .view-line span,.monaco-editor .view-line span.inline-selected-text{font-variant-ligatures:none;font-feature-settings:"liga" 0, "calt" 0;font-kerning:none;white-space:pre;font-family:var(--monaco-monospace-font,var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace))!important;font-size:var(--monaco-editor-font-size,14px)!important;font-weight:400!important}.monaco-editor .standalone-colorpicker-body{max-width:460px!important}.monaco-editor .standalone-colorpicker-body .colorpicker-body .saturation-wrap{flex:0 auto;max-width:280px}.blocks-app .colorpicker-body .saturation-box,.blocks-app .colorpicker-body .strip{border-radius:4px}.blocks-app .scrollbar.vertical{width:5px!important}.blocks-app .scrollbar.vertical .slider{border-radius:5px!important;width:5px!important}.blocks-app .user-cursor{z-index:10;border-left:2px solid #ff00e1;width:2px;height:20px;position:absolute}.blocks-app .cursor-hover{color:#fff;text-wrap-mode:nowrap;z-index:10000;border-radius:7px 7px 7px 0;margin-left:-2px;padding:0 5px;font-size:12px;position:absolute;top:-17px}.blocks-app .user-selection-decoration{background-color:#8080eb4d}.monaco-editor__spin{z-index:1000;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}',o=window.__useblocks_styles__||(window.__useblocks_styles__={sheets:{},order:[]}),r=n;if(!o.sheets[r]){var t=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(t=new CSSStyleSheet,t.replaceSync(n))}catch{t=null}if(t){if(!o.host||!o.host.isConnected||!o.host.sheet){var e=document.createElement("style");e.setAttribute("data-useblocks","true"),document.head.appendChild(e),o.host=e}for(var s=o.host.sheet,a=0;a<t.cssRules.length;a++)try{s.insertRule(t.cssRules[a].cssText,s.cssRules.length)}catch{}(o.texts||(o.texts=[])).push(n),(o.listeners||[]).forEach(function(i){try{i(n)}catch{}})}else{var e=document.createElement("style");e.setAttribute("data-useblocks","true"),e.appendChild(document.createTextNode(n)),document.head.appendChild(e)}o.sheets[r]=!0,o.order.push(r)}}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
__useblocks__.define("static/core/
|
|
2
|
+
__useblocks__.define("static/core/3b0fc21e.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/82dfd28b.js","static/core/e47dcbb0.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(Q,pt,Ic){const oe=Q("./2ff39ddf.js"),Mn=Q("./cf7d1dd7.js"),c=Q("./82dfd28b.js"),Ln=Q("./e47dcbb0.js");let k=Q("react"),d=oe.__toESM(k,1);k=oe.__toESM(k);let Ee=Q("react/jsx-runtime"),rr=Q("__delivery__/libs"),An=Q("vite/preload-helper");function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function _n(e){if(Array.isArray(e))return e}function Tn(e,t,r){return(t=In(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jn(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,i,s,a=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(o=i.call(r)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(p){u=!0,n=p}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw n}}return a}}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nr(Object(r),!0).forEach(function(o){Tn(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Rn(e,t){if(e==null)return{};var r,o,n=Nn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nn(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Pn(e,t){return _n(e)||jn(e,t)||qn(e,t)||zn()}function Dn(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function In(e){var t=Dn(e,"string");return typeof t=="symbol"?t:t+""}function qn(e,t){if(e){if(typeof e=="string")return or(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?or(e,t):void 0}}function Un(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sr(Object(r),!0).forEach(function(o){Un(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sr(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Wn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return t.reduceRight(function(n,i){return i(n)},o)}}function Oe(e){return function t(){for(var r=this,o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return n.length>=e.length?e.apply(this,n):function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return t.apply(r,[].concat(n,a))}}}function We(e){return{}.toString.call(e).includes("Object")}function Fn(e){return!Object.keys(e).length}function Ce(e){return typeof e=="function"}function Vn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bn(e,t){return We(t)||ne("changeType"),Object.keys(t).some(function(r){return!Vn(e,r)})&&ne("changeField"),t}function Hn(e){Ce(e)||ne("selectorType")}function Gn(e){Ce(e)||We(e)||ne("handlerType"),We(e)&&Object.values(e).some(function(t){return!Ce(t)})&&ne("handlersType")}function Qn(e){e||ne("initialIsRequired"),We(e)||ne("initialType"),Fn(e)&&ne("initialContent")}function Kn(e,t){throw new Error(e[t]||e.default)}var ne=Oe(Kn)({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),Fe={changes:Bn,selector:Hn,handler:Gn,initial:Qn};function Yn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fe.initial(e),Fe.handler(t);var r={current:e},o=Oe(Xn)(r,t),n=Oe(Jn)(r),i=Oe(Fe.changes)(e),s=Oe(Zn)(r);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return Fe.selector(u),u(r.current)}function l(u){Wn(o,n,i,s)(u)}return[a,l]}function Zn(e,t){return Ce(t)?t(e.current):t}function Jn(e,t){return e.current=ar(ar({},e.current),t),t}function Xn(e,t,r){return Ce(t)?t(e.current):Object.keys(r).forEach(function(o){var n;return(n=t[o])===null||n===void 0?void 0:n.call(t,e.current[o])}),r}var ei={create:Yn},ti={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function ri(e){return function t(){for(var r=this,o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return n.length>=e.length?e.apply(this,n):function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return t.apply(r,[].concat(n,a))}}}function oi(e){return{}.toString.call(e).includes("Object")}function ni(e){return e||lr("configIsRequired"),oi(e)||lr("configType"),e.urls?{paths:{vs:e.urls.monacoBase}}:e}function qc(){}function ii(e,t){throw new Error(e[t]||e.default)}var si={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
4
4
|
You are using deprecated way of configuration.
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/3f1b20ee.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/82dfd28b.js","static/core/2aa29959.js"],function(c,f,P){const j=c("./2ff39ddf.js"),n=c("./cf7d1dd7.js"),t=c("./82dfd28b.js"),p=c("./2aa29959.js");var I=["image/jpeg","image/png","image/jpg","image/webp","image/gif","image/svg+xml"],d=(e,i)=>({code:e,message:i}),E=e=>typeof e!="string";function _(e,i){const a=t.decodeFileNameFromUrl(i)??"image",o=p.normalizeImageFormatForDisplay(e.type);return new File([e],!o||a.includes(".")?a:`${a}.${o}`,{type:e.type||"application/octet-stream"})}async function v(e,i,a){const o=p.getImageBlobResolver(e),g=t.getEmitter(e,n.events.FILE_PROXY_EVENT_ID),r=t.getEmitter(e,n.events.PROXY_URL_EVENT_ID),u=p.canonicalImageUrlKey(i);return _(await o.resolve(u,void 0,(l,m)=>p.fetchEditorImageBlobByUrl(l,{appConfig:t.getAppConfig(e),isStandalone:t.isStandaloneRuntime(e),fireFileProxy:s=>g.fire({url:s,project:a}),fireProxyUrl:s=>r.fire({url:s,project:a})},m)),u)}async function F(e,i){const a=t.getCurrentProjectId(e),o=a===void 0?"":String(a);let g;try{g=await v(e,i,o)}catch(r){return d("downloadFailed",r instanceof Error&&r.message?r.message:"The image could not be downloaded from the URL.")}if(!I.includes(g.type))return d("unsupportedType","Only JPG, PNG, WEBP, GIF and SVG images can be uploaded.");try{const r=t.getAppConfig(e),u=await t.prepareImageForEditorUpload(g,r),l=await t.fireUploadImageEvent(t.getEmitter(e,n.events.UPLOAD_EVENT_ID),{file:u,project:o});if(l.url)return l.url;const m=t.isStandaloneRuntime(e),s=t.getCurrentUser(e).profile?.id,{dataProvider:y,usesBuiltInStorage:U}=t.buildResolvedFileManagerProviders({storageProvider:e.getInstance(n.STORAGE_PROVIDER_ID),projectId:o,restApi:n.getApi(e,t.EM_FILES_MODULES),restApiV2:t.createRestClientV2(e),i18n:t.defaultI18nContext,pathPostfix:s!==void 0&&String(s)!=="0"?String(s):"",appConfig:r,isStandalone:m,onIndexingStateChange:()=>{}});return t.shouldFallbackToBuiltInUpload(l,{isStandalone:m,targetIsOurBackend:U})?(await t.uploadFileViaDataProvider(u,y))?.url??d("uploadFailed","The image could not be uploaded."):d("uploadRejected",t.toUploadImageError(l).message)}catch(r){return d("uploadFailed",r instanceof Error&&r.message?r.message:"The image could not be uploaded.")}}f.isUploadFailure=E,f.saveImageFromUrl=F});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/411823ad.js",["require","exports","module","static/core/2ff39ddf.js","static/core/bf6cd7cc.js"],function(e,t,r){const l=e("./2ff39ddf.js");var o={wordwrap:200,tables:!0,selectors:[...e("./bf6cd7cc.js").DEFAULT_OPTIONS.selectors||[],{selector:"table",format:"dataTable"},{selector:"ul",format:"list"},{selector:"ol",format:"list"},{selector:"pre",format:"block"},{selector:"blockquote",format:"blockquote"}],baseElements:{selectors:["body","table"]},preserveNewlines:!1,longWordSplit:{forceWrapOnLimit:!1}};t.EmailTextPlainConvertOptions=o});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/74b30e13.js",["require","exports","module","static/core/2ff39ddf.js","static/core/a71d1c3a.js","static/core/3fc88c79.js"],function(o,l,m){const u=o("./2ff39ddf.js"),e=o("./a71d1c3a.js"),s=o("./3fc88c79.js");var a=["text","header","image","button","spacer","divider","list-ul","list-ol","video"],h=["1","2","3","4","1:2","2:1"],c=["productCarousel","singleImagePreview","dealAnnotation","dealCard"],t=e.Arg.element(),r="Pass a reference from element.getTree.",n=e.Arg.optional(e.Arg.string()),i="During your answer or a batch it is refused with `undoConflict`: the edits are not closed yet, and undo becomes available after the answer, so tell the user about it.",d={"document.getHtml":{description:'Returns the HTML of the open document. `output: "editor"` (default) is the markup the editor keeps, with its service attributes; `output: "email"` is the compiled email as recipients get it, closed by the plan when it has no HTML export.',args:e.Arg.object({output:e.Arg.optional(e.Arg.enum("editor","email"))})},"document.getText":{description:"Returns the plain-text version of the email as recipients get it, without markup. Closed by the plan when it has no HTML export."},"document.setHeaders":{description:"Sets the subject, the preheader (preview text after the subject) and the title of the email; omitted fields stay. The title follows the subject while they are equal. The plan can close the subject and the preheader, not the title. On the open canvas `history.undo` brings the subject and the preheader back together with the markup, but do not count on it: these fields come back for sure only when the user takes back the whole answer.",args:e.Arg.object({subject:e.Arg.optional(e.Arg.string()),preheader:e.Arg.optional(e.Arg.string()),title:e.Arg.optional(e.Arg.string())})},"document.getSettings":{description:"Returns the layout settings of the whole email: background, width, responsiveness."},"document.setSettings":{description:'Changes layout settings of the whole email; pass only the fields to change, in the form `document.getSettings` returns (for example `{ "backgroundColor": "#ffffff", "width": { "value": 600, "dim": "px" } }`). Other fields are refused: common styles go to `document.setContentStyles`. A background address that is executable or holds "<" or "-->" is refused with `invalidArgs`. Needs the open canvas and an email, not a block; `history.undo` reverts it as one step. `canvasPending: true` in the answer means the settings are written, but the canvas has not confirmed them yet.',args:e.Arg.object({settings:e.Arg.object({})})},"document.getContentStyles":{description:"Returns the common styles of the email content: text, headings, links, buttons, block, cards."},"document.setContentStyles":{description:'Changes the common styles of the email content; pass only the groups and fields to change, in the form `document.getContentStyles` returns (for example `{ "text": { "fontSize": 16 } }`). Another group, a group that is not an object or a font name with one of < > " { } ; \\ or a stray single quote is refused with `invalidArgs`; fields and Google fonts closed by the plan with `lockedByPlan`. `history.undo` does not revert it: it comes back only when the user takes back the whole answer.',args:e.Arg.object({styles:e.Arg.object({})})},"document.replaceHtml":{description:"Replaces the whole document with new HTML in one undo step. Prefer element commands for local changes: this one rewrites everything. Start from `document.getHtml` and keep its service attributes. `html` with no text, pictures or other visible elements is refused with `invalidArgs`. Closed when the plan has no code editing: use element commands then.",args:e.Arg.object({html:e.Arg.string()})},"history.undo":{description:`Undoes the last step of document edits. Fields of the email outside the undo history are not its job: common styles and UTM marks stay, and the subject and the preheader come back only on the open canvas, with the markup; all of them come back when the user takes back the whole answer. ${i}`},"history.redo":{description:`Redoes the last undone step of document edits. ${i}`},"history.listRevisions":{description:"Lists saved revisions of the open document, newest first, one page at a time: id, date, author, subject, title and `isAutosave`, without the content. Rows with `isAutosave: true` are automatic snapshots. Pass an id to `history.restoreRevision` to go back to that version. Closed by the plan when it has no revision history.",args:e.Arg.object({page:e.Arg.optional(e.Arg.number())})},"check.code":{description:"Checks the HTML of the open document and lists the problems: unclosed tags, wrong nesting, bad attributes."},"check.codeSize":{description:"Returns the code size of the email, as the editor's code size badge shows it; Gmail clips emails over 90 KB."},"block.list":{description:"Lists blocks that can be inserted into the email with block.insert. `source` picks where they come from: `project` (default) are the blocks saved in this project, in the look of the user: look there first. `gallery` are the shared ready-made blocks of the editor: use them when the project has nothing that fits. "+s.BLOCK_LIST_HINT,args:e.Arg.object(s.BLOCK_LIST_ARGS)},"check.links":{description:"Checks every link of the open email as it is now over the network and lists them with a status (valid, warnings, errors) and the HTTP code. A new email must be saved first. Paid: each call uses the plan limit."},"check.images":{description:"Checks every image of the open email as it is now over the network and lists them with a status, the HTTP code, size in kilobytes and dimensions. A new email must be saved first. Paid: each call uses the plan limit."},"check.spam":{description:"Scores the open email as it is now with SpamAssassin and lists the rules that matched, lowest weight first; a higher score means more likely spam. A new email must be saved first. Paid: each call uses the plan limit. An editor without a server has no spam check: the answer is `unavailable`."},"element.getTree":{description:"Returns the elements of the open document as a tree: each node has a reference, a kind (row, column, cell, text, image, button, link, spacer, ...) and the start of its text. Use the references in other element commands. References die when the element is deleted, the host rewrites it (undo, code editor) or the document changes; read the tree again then. `truncated: true` means part of the tree is cut: read it with `root` and a larger `depth`.",args:e.Arg.object({root:e.Arg.optional(t),depth:e.Arg.optional(e.Arg.number())})},"element.find":{description:"Finds elements in the whole document (or inside `inside`) without selecting them. All given conditions must match: `kind` (image, button, link, text, row, ...), `textContains`, and `where` on image src and alt or link href: an empty string matches a missing or empty value, other strings match by case-insensitive substring. Returns references with kind, text start and src/alt/href, at most `limit` (50 by default, up to 200), and `total`. To change many found elements in one call, pass element.setProps calls to agent.batch.",args:e.Arg.object({kind:e.Arg.optional(e.Arg.string()),textContains:e.Arg.optional(e.Arg.string()),where:e.Arg.optional(e.Arg.object({alt:e.Arg.optional(e.Arg.string()),src:e.Arg.optional(e.Arg.string()),href:e.Arg.optional(e.Arg.string())})),inside:e.Arg.optional(t),limit:e.Arg.optional(e.Arg.number())})},"text.replace":{description:'Replaces every occurrence of a phrase in the visible text of the document (or inside `inside`) in one undo step; links, image addresses, variables and code are not touched, and neither are the subject, preheader and image alt. Finds whole words by default, in any alphabet: "cat" does not touch "concat", even when part of it is bold; pass `wholeWord: false` to match inside words. Case-insensitive unless `matchCase`. A phrase split by formatting (part of it bold) is not found. Returns `replaced`, the number of replacements, and up to 5 `examples` of `{ before, after }` with some text around.',args:e.Arg.object({find:e.Arg.string(),replace:e.Arg.string(),matchCase:e.Arg.optional(e.Arg.boolean()),wholeWord:e.Arg.optional(e.Arg.boolean()),inside:e.Arg.optional(t)})},"element.get":{description:`Selects the element like a user click and returns what the inspector shows: kind, caption and settings. element.setProps takes the same setting names. ${r}`,args:e.Arg.object({element:t})},"element.select":{description:`Selects the element like a user click: the inspector opens its settings. ${r}`,args:e.Arg.object({element:t})},"ui.highlight":{description:"Outlines the element on the canvas for a while (1.5 s by default, up to 10 s) to show the user what you mean. Neither selects nor changes anything.",args:e.Arg.object({element:t,durationMs:e.Arg.optional(e.Arg.number())})},"element.setProps":{description:'Changes inspector settings of the element in one undo step: link, image source and alt, sizes, paddings, colors, fonts, visibility. Pass only the fields you change, named as element.get returns them; do not send back an address already in the email that holds a template directive: "<" in it is refused. Returns a fresh reference: the element may be rebuilt. `unchanged: true` in the answer means the document did not change: check the setting names with element.get; the value may also be the same already. A field or a new Google font closed by the plan is refused with `lockedByPlan`. An address that is executable or holds "<" or "-->", a font that is not a string or an array of strings and a font name with one of < > " { } ; \\ or a stray single quote are refused with `invalidArgs`.',args:e.Arg.object({element:t,props:e.Arg.object({})})},"element.setText":{description:"Replaces the whole text of a text, header, button or link element in one undo step, keeping its look (font, color, bold header). Plain text only: markup characters stay text, a line break becomes a new line. A cell with one text element inside takes its text too. Refused for text with a list, a picture or a variable: use text.replace. The preheader is refused with `readOnly`: it goes through document.setHeaders.",args:e.Arg.object({element:t,text:e.Arg.string()})},"row.insert":{description:'Inserts an empty row of the palette with columns before or after a row, or at the end of the document without `at`, in one undo step: "1" one column, "2" two equal, "1:2" narrow and wide, "2:1" wide and narrow, "3", "4". Returns the row and its column references; fill the columns with element.insert and place "inside". Prefer a saved block of the project (block.list, block.insert) when one fits.',args:e.Arg.object({columns:e.Arg.enum(...h),at:e.Arg.optional(e.Arg.object({element:t,place:e.Arg.enum("before","after")}))})},"document.getMarkupRules":{description:'Returns the markup rules of email rows (em="block" rows, layout tables, columns, em="atom" atoms, buttons, mobile classes). Read them once before writing rows for row.insertHtml.'},"row.insertHtml":{description:'Inserts rows you wrote in the editor markup (document.getMarkupRules): an optional <link em-class="em-font-..."> of a font on https: and <style em="styles">, then one or more <tr em="block">. Without `at` the rows go after the last row, in the given order, in one undo step. Rows are checked first: `invalidMarkup` lists the broken rules, nothing is inserted; fix and send again. Scripts, other style sheets, event handlers and executable addresses, also inside conditional comments and CSS, are cut. An <em-replace> variable is refused with `lockedByPlan` when the plan has no variables; one with "<" or ">" in `text` is a broken rule: add it with element.insertVariable. A .preheader node is refused with `lockedByPlan` when the plan closes the preheader. Returns the references of the new rows. If the open email changes meanwhile, the answer is `unavailable`. If a row after the first fails, the answer is `partialInsert`: its message names the rows that went in and the reason, the rows stay in the document as one undo step. Prefer a saved block of the project (block.list) when one fits.',args:e.Arg.object({html:e.Arg.string(),at:e.Arg.optional(e.Arg.object({element:t,place:e.Arg.enum("before","after")}))})},"element.insert":{description:`Inserts a new element of the palette (${a.join(", ")}) before or after an element, or at the end inside a row or a column, in one undo step. Returns the reference of the new element; change it with element.setProps.`,args:e.Arg.object({kind:e.Arg.enum(...a),at:e.Arg.object({element:t,place:e.Arg.enum("before","after","inside")})})},"block.insert":{description:"Inserts a block (an id from block.list, with the same `source`: `project` by default, `gallery` for a shared block) before or after a row, in one undo step; without `at` the block goes where a click on the block panel puts it. A gallery block keeps its own colors and fonts: it is not recolored to the common styles of the email. A block with a .preheader node is refused with `lockedByPlan` when the plan closes the preheader. `unavailable` means the open email changed meanwhile. Returns the reference of the new row.",args:e.Arg.object({block:e.Arg.string(),source:s.BLOCK_SOURCE_ARG,at:e.Arg.optional(e.Arg.object({element:t,place:e.Arg.enum("before","after")}))})},"element.delete":{description:`Deletes the element or the row in one undo step. Refused with \`readOnly\` when the element or something inside it is locked by the integrator, and for the preheader or a row with it: it goes through document.setHeaders. ${r}`,args:e.Arg.object({element:t})},"element.clone":{description:"Duplicates the element or the row right after it in one undo step and returns the reference of the copy.",args:e.Arg.object({element:t})},"element.move":{description:"Moves the row one place up or down in one undo step; `cannotMove` when it is already first or last.",args:e.Arg.object({element:t,direction:e.Arg.enum("up","down")})},"agent.batch":{description:'Runs up to 100 tool calls in order in one request, with all their edits in one undo step, for example element.setProps for each element found by element.find, each with its own props. Each call is checked as if called alone. Before the first call the user is asked once about all calls that need consent: if the user declines, no call runs and the answer is `declined`; a yes covers the whole batch. A call refused by a check before that window comes back in `failed` with `completed: 0`, nothing run. After that the batch stops at the first failed call: the answer is still a success, `failed` names the call and the calls before it stay done, so check `failed`. Returns the result of each finished call. To use a result in a later call of the same batch, pass `{ "$result": "0.element" }` as the value: the number of the call, then an own field of its result. A call that needs consent cannot take such a reference, because the window has to show the data: the batch is refused with `invalidArgs` in `failed`, nothing run; run the earlier calls first and write the value out in a separate batch. Tools of ui.* wait for the user and are not allowed in a batch, except ui.highlight.',args:e.Arg.object({calls:e.Arg.array(e.Arg.object({tool:e.Arg.string(),args:e.Arg.optional(e.Arg.object({}))}))})},"image.search":{description:"Searches free stock photos by keywords (the Stock tab of the image window) and returns up to 10 of them with an id, a description, the author and the size. There are no URLs: pass the chosen id to `image.pick`. An editor without a server has no stock photos: the answer is `unavailable`.",args:e.Arg.object({keywords:e.Arg.string(),orientation:e.Arg.optional(e.Arg.enum("landscape","portrait","squarish")),page:e.Arg.optional(e.Arg.number())})},"image.pick":{description:"Takes a photo found by `image.search` and returns its `url` for an image element. Reports the use to the photo service, as the image window does. Closed by the plan like `image.search`.",args:e.Arg.object({id:e.Arg.string()})},"file.upload":{description:"Downloads an image (JPG, PNG, WEBP, GIF or SVG) from a URL and stores it in the project storage the way the image window does; returns the stored image `url`. Use it for images that are not yet in the project storage.",args:e.Arg.object({url:e.Arg.string()})},"gallery.listTemplates":{description:"Lists the email templates of the gallery, one page at a time (page 1 by default; an empty list means no more pages). Use an id with document.applyTemplate. Not available in the plugin.",args:e.Arg.object({page:e.Arg.optional(e.Arg.number())})},"document.applyTemplate":{description:"Replaces the whole content of the open email with a gallery template (an id from gallery.listTemplates) in one undo step. Only the markup is taken: subject, preheader and common styles of the email stay. Not available in the plugin or for a block.",args:e.Arg.object({template:e.Arg.string()})},"project.getStyles":{description:"Returns the brand styles of the project: palette colors, fonts and social links. Use them for colors and fonts of new content. Not available in the plugin."},"document.getUtm":{description:"Returns the UTM marks added to all links when the email is exported; empty ones are empty strings."},"document.setUtm":{description:"Sets UTM marks that are added to all links when the email is exported; omitted marks stay, an empty string clears a mark. Returns all five marks after the change. `history.undo` does not revert them: they come back only when the user takes back the whole answer.",args:e.Arg.object({params:e.Arg.object({utm_source:n,utm_medium:n,utm_campaign:n,utm_term:n,utm_content:n})})},"document.setAnnotations":{description:"Writes Gmail annotations (promotions tab markup) into the email, replacing the existing ones. `annotationType` is `productCarousel` or `singleImagePreview` (needs `cards` with an image and an https link; a discount is given in percent in `discountPercent` and needs a numeric `price`), `dealAnnotation` (needs one of `description`, `discountCode`, dates) or `dealCard` (needs `description` and `offerPageUrl` or `merchantHomepageUrl`). Dates are ISO 8601 strings. Returns `changed: false` when the email already has exactly this markup.",args:e.Arg.object({annotationType:e.Arg.enum(...c),logo:n,description:n,discountCode:n,availabilityStarts:n,availabilityEnds:n,offerPageUrl:n,merchantHomepageUrl:n,cards:e.Arg.optional(e.Arg.array(e.Arg.object({image:n,url:n,headline:n,price:n,priceCurrency:n,discountPercent:n})))})},"document.removeAnnotations":{description:"Cuts the Gmail annotations markup out of the email in one undo step. Returns `changed: false` when there was none."},"history.restoreRevision":{description:'Goes back to an earlier saved version: replaces the email with a revision (markup, subject, preheader, styles). `history.undo` brings back the markup, and on the open canvas the subject and the preheader with it; styles stay from the revision. All of them come back for sure only when the user takes back the whole answer. Use it for "restore the previous version"; to take back the last edit of this session use `history.undo` instead. Take `revision` from `history.listRevisions`: the first row is normally the saved state of the email, so going back one version means the first row below it without `isAutosave`. Returns the restored `revision` with its `date` and `subject` when known and `unsaved: true`: the document stays unsaved until it is saved. Closed by the plan when it has no revision history.',args:e.Arg.object({revision:e.Arg.string()})},"variable.list":{description:"Lists the merge variables of this editor: `name` is the menu path shown to the user, `value` is the ready text with the delimiters of the sending service. Pass a `value` to element.insertVariable."},"element.insertVariable":{description:"Appends a merge variable (a `value` from variable.list) to the end of a text, header, button or link element in one undo step. It goes after the existing content: write the text first with element.setText, then add the variable; a space before it is part of that text. Refused for an element with a list or a table. Returns a reference to the element.",args:e.Arg.object({element:t,variable:e.Arg.string()})},"element.applyTypograf":{description:"Cleans typography of the text in one undo step: non-breaking spaces after short words and numbers, proper dashes and quotes. Without `element` it runs over the whole email; with the reference of a text element it runs over the whole cell of that text, like the button of the editor, so other text in the same cell changes too. Selects the element like a user click. Buttons, links and images are refused with that reference. Text locked by the integrator and the preheader stay as they are.",args:e.Arg.object({element:e.Arg.optional(t)})},"column.add":{description:'Adds an empty column at the end of a row (up to 8 columns) in one undo step; the other columns get narrower. Pass a row reference (kind "row") or any of its columns (kind "column" or "floatingBlock"). Returns the row reference and `columns`, the references of all its columns in order; fill the new one with element.insert and place "inside".',args:e.Arg.object({element:t})},"column.remove":{description:'Removes a column of a row together with its content in one undo step; the other columns get wider. Pass the column reference (kind "column" or "floatingBlock"). A row keeps at least one column. Refused with `readOnly` when the column or something inside it is locked by the integrator. Returns the row reference and `columns`.',args:e.Arg.object({element:t})},"column.swap":{description:'Swaps two columns of the same row in one undo step: content and width move together. Pass both column references (kind "column" or "floatingBlock"). Returns the row reference and `columns` in the new order.',args:e.Arg.object({element:t,with:t})},"accordion.addSection":{description:'Adds a section at the end of an accordion (kind "accordion", AMP emails) in one undo step, as a copy of its first section with the given plain `title` and `text` (markup characters stay text, a line break becomes a new line). Returns a fresh reference to the accordion, which is rebuilt, and `sections`, their count.',args:e.Arg.object({element:t,title:e.Arg.string(),text:e.Arg.optional(e.Arg.string())})},"accordion.removeSection":{description:"Removes a section of an accordion by its number (counted from 0) with its content in one undo step. An accordion keeps at least one section. Refused with `readOnly` when something inside the section is locked by the integrator. Returns a fresh reference to the accordion and `sections`, their count.",args:e.Arg.object({element:t,index:e.Arg.number()})},"export.download":{description:"Downloads the email in a format of the Export menu, as a click on it: the browser saves the file for the user. html — the code, zip — code with images, text — plain text, markdown, outlook — an .oft/.eml for Outlook, pdf, png — a picture. For an AMP email `variant` picks the AMP or the HTML version of code and text. The editor may first ask the user about a large code size. Returns when the export has started.",args:e.Arg.object({format:e.Arg.enum(...e.EXPORT_FORMATS),variant:e.Arg.optional(e.Arg.enum("html","amp"))})},"document.import":{description:"Replaces the whole open email with an imported one, as the Import menu item does with a chosen file: an .html, .htm, .eml or .zip by `url`, or `html` you pass with something to show: text, a picture or another visible element. Any other file and empty `html` are refused with `invalidArgs`: an extension in the address decides, whatever type the server answers with, and the type counts only for an address without one. A file without an email inside is refused with `importFailed`. Images of the file are uploaded to the project. One undo step.",args:e.Arg.object({url:e.Arg.optional(e.Arg.string()),html:e.Arg.optional(e.Arg.string())})},"send.testEmail":{description:"Sends the open email as it is now to up to 10 addresses, as the Send a test email window does. Without `subject` it goes with the subject of the email. Asks the user first and spends the test-send limit. An editor without a server has no test emails: the answer is `unavailable`.",args:e.Arg.object({recipients:e.Arg.array(e.Arg.string()),subject:e.Arg.optional(e.Arg.string())})}};l.AGENT_COMMAND_DETAILS=d});
|
|
1
|
+
__useblocks__.define("static/core/4430410a.js",["require","exports","module","static/core/2ff39ddf.js","static/core/82dfd28b.js","static/core/b90b0517.js"],function(o,l,m){const u=o("./2ff39ddf.js"),e=o("./82dfd28b.js"),s=o("./b90b0517.js");var a=["text","header","image","button","spacer","divider","list-ul","list-ol","video"],h=["1","2","3","4","1:2","2:1"],c=["productCarousel","singleImagePreview","dealAnnotation","dealCard"],t=e.Arg.element(),r="Pass a reference from element.getTree.",n=e.Arg.optional(e.Arg.string()),i="During your answer or a batch it is refused with `undoConflict`: the edits are not closed yet, and undo becomes available after the answer, so tell the user about it.",d={"document.getHtml":{description:'Returns the HTML of the open document. `output: "editor"` (default) is the markup the editor keeps, with its service attributes; `output: "email"` is the compiled email as recipients get it, closed by the plan when it has no HTML export.',args:e.Arg.object({output:e.Arg.optional(e.Arg.enum("editor","email"))})},"document.getText":{description:"Returns the plain-text version of the email as recipients get it, without markup. Closed by the plan when it has no HTML export."},"document.setHeaders":{description:"Sets the subject, the preheader (preview text after the subject) and the title of the email; omitted fields stay. The title follows the subject while they are equal. The plan can close the subject and the preheader, not the title. On the open canvas `history.undo` brings the subject and the preheader back together with the markup, but do not count on it: these fields come back for sure only when the user takes back the whole answer.",args:e.Arg.object({subject:e.Arg.optional(e.Arg.string()),preheader:e.Arg.optional(e.Arg.string()),title:e.Arg.optional(e.Arg.string())})},"document.getSettings":{description:"Returns the layout settings of the whole email: background, width, responsiveness."},"document.setSettings":{description:'Changes layout settings of the whole email; pass only the fields to change, in the form `document.getSettings` returns (for example `{ "backgroundColor": "#ffffff", "width": { "value": 600, "dim": "px" } }`). Other fields are refused: common styles go to `document.setContentStyles`. A background address that is executable or holds "<" or "-->" is refused with `invalidArgs`. Needs the open canvas and an email, not a block; `history.undo` reverts it as one step. `canvasPending: true` in the answer means the settings are written, but the canvas has not confirmed them yet.',args:e.Arg.object({settings:e.Arg.object({})})},"document.getContentStyles":{description:"Returns the common styles of the email content: text, headings, links, buttons, block, cards."},"document.setContentStyles":{description:'Changes the common styles of the email content; pass only the groups and fields to change, in the form `document.getContentStyles` returns (for example `{ "text": { "fontSize": 16 } }`). Another group, a group that is not an object or a font name with one of < > " { } ; \\ or a stray single quote is refused with `invalidArgs`; fields and Google fonts closed by the plan with `lockedByPlan`. `history.undo` does not revert it: it comes back only when the user takes back the whole answer.',args:e.Arg.object({styles:e.Arg.object({})})},"document.replaceHtml":{description:"Replaces the whole document with new HTML in one undo step. Prefer element commands for local changes: this one rewrites everything. Start from `document.getHtml` and keep its service attributes. `html` with no text, pictures or other visible elements is refused with `invalidArgs`. Closed when the plan has no code editing: use element commands then.",args:e.Arg.object({html:e.Arg.string()})},"history.undo":{description:`Undoes the last step of document edits. Fields of the email outside the undo history are not its job: common styles and UTM marks stay, and the subject and the preheader come back only on the open canvas, with the markup; all of them come back when the user takes back the whole answer. ${i}`},"history.redo":{description:`Redoes the last undone step of document edits. ${i}`},"history.listRevisions":{description:"Lists saved revisions of the open document, newest first, one page at a time: id, date, author, subject, title and `isAutosave`, without the content. Rows with `isAutosave: true` are automatic snapshots. Pass an id to `history.restoreRevision` to go back to that version. Closed by the plan when it has no revision history.",args:e.Arg.object({page:e.Arg.optional(e.Arg.number())})},"check.code":{description:"Checks the HTML of the open document and lists the problems: unclosed tags, wrong nesting, bad attributes."},"check.codeSize":{description:"Returns the code size of the email, as the editor's code size badge shows it; Gmail clips emails over 90 KB."},"block.list":{description:"Lists blocks that can be inserted into the email with block.insert. `source` picks where they come from: `project` (default) are the blocks saved in this project, in the look of the user: look there first. `gallery` are the shared ready-made blocks of the editor: use them when the project has nothing that fits. "+s.BLOCK_LIST_HINT,args:e.Arg.object(s.BLOCK_LIST_ARGS)},"check.links":{description:"Checks every link of the open email as it is now over the network and lists them with a status (valid, warnings, errors) and the HTTP code. A new email must be saved first. Paid: each call uses the plan limit."},"check.images":{description:"Checks every image of the open email as it is now over the network and lists them with a status, the HTTP code, size in kilobytes and dimensions. A new email must be saved first. Paid: each call uses the plan limit."},"check.spam":{description:"Scores the open email as it is now with SpamAssassin and lists the rules that matched, lowest weight first; a higher score means more likely spam. A new email must be saved first. Paid: each call uses the plan limit. An editor without a server has no spam check: the answer is `unavailable`."},"element.getTree":{description:"Returns the elements of the open document as a tree: each node has a reference, a kind (row, column, cell, text, image, button, link, spacer, ...) and the start of its text. Use the references in other element commands. References die when the element is deleted, the host rewrites it (undo, code editor) or the document changes; read the tree again then. `truncated: true` means part of the tree is cut: read it with `root` and a larger `depth`.",args:e.Arg.object({root:e.Arg.optional(t),depth:e.Arg.optional(e.Arg.number())})},"element.find":{description:"Finds elements in the whole document (or inside `inside`) without selecting them. All given conditions must match: `kind` (image, button, link, text, row, ...), `textContains`, and `where` on image src and alt or link href: an empty string matches a missing or empty value, other strings match by case-insensitive substring. Returns references with kind, text start and src/alt/href, at most `limit` (50 by default, up to 200), and `total`. To change many found elements in one call, pass element.setProps calls to agent.batch.",args:e.Arg.object({kind:e.Arg.optional(e.Arg.string()),textContains:e.Arg.optional(e.Arg.string()),where:e.Arg.optional(e.Arg.object({alt:e.Arg.optional(e.Arg.string()),src:e.Arg.optional(e.Arg.string()),href:e.Arg.optional(e.Arg.string())})),inside:e.Arg.optional(t),limit:e.Arg.optional(e.Arg.number())})},"text.replace":{description:'Replaces every occurrence of a phrase in the visible text of the document (or inside `inside`) in one undo step; links, image addresses, variables and code are not touched, and neither are the subject, preheader and image alt. Finds whole words by default, in any alphabet: "cat" does not touch "concat", even when part of it is bold; pass `wholeWord: false` to match inside words. Case-insensitive unless `matchCase`. A phrase split by formatting (part of it bold) is not found. Returns `replaced`, the number of replacements, and up to 5 `examples` of `{ before, after }` with some text around.',args:e.Arg.object({find:e.Arg.string(),replace:e.Arg.string(),matchCase:e.Arg.optional(e.Arg.boolean()),wholeWord:e.Arg.optional(e.Arg.boolean()),inside:e.Arg.optional(t)})},"element.get":{description:`Selects the element like a user click and returns what the inspector shows: kind, caption and settings. element.setProps takes the same setting names. ${r}`,args:e.Arg.object({element:t})},"element.select":{description:`Selects the element like a user click: the inspector opens its settings. ${r}`,args:e.Arg.object({element:t})},"ui.highlight":{description:"Outlines the element on the canvas for a while (1.5 s by default, up to 10 s) to show the user what you mean. Neither selects nor changes anything.",args:e.Arg.object({element:t,durationMs:e.Arg.optional(e.Arg.number())})},"element.setProps":{description:'Changes inspector settings of the element in one undo step: link, image source and alt, sizes, paddings, colors, fonts, visibility. Pass only the fields you change, named as element.get returns them; do not send back an address already in the email that holds a template directive: "<" in it is refused. Returns a fresh reference: the element may be rebuilt. `unchanged: true` in the answer means the document did not change: check the setting names with element.get; the value may also be the same already. A field or a new Google font closed by the plan is refused with `lockedByPlan`. An address that is executable or holds "<" or "-->", a font that is not a string or an array of strings and a font name with one of < > " { } ; \\ or a stray single quote are refused with `invalidArgs`.',args:e.Arg.object({element:t,props:e.Arg.object({})})},"element.setText":{description:"Replaces the whole text of a text, header, button or link element in one undo step, keeping its look (font, color, bold header). Plain text only: markup characters stay text, a line break becomes a new line. A cell with one text element inside takes its text too. Refused for text with a list, a picture or a variable: use text.replace. The preheader is refused with `readOnly`: it goes through document.setHeaders.",args:e.Arg.object({element:t,text:e.Arg.string()})},"row.insert":{description:'Inserts an empty row of the palette with columns before or after a row, or at the end of the document without `at`, in one undo step: "1" one column, "2" two equal, "1:2" narrow and wide, "2:1" wide and narrow, "3", "4". Returns the row and its column references; fill the columns with element.insert and place "inside". Prefer a saved block of the project (block.list, block.insert) when one fits.',args:e.Arg.object({columns:e.Arg.enum(...h),at:e.Arg.optional(e.Arg.object({element:t,place:e.Arg.enum("before","after")}))})},"document.getMarkupRules":{description:'Returns the markup rules of email rows (em="block" rows, layout tables, columns, em="atom" atoms, buttons, mobile classes). Read them once before writing rows for row.insertHtml.'},"row.insertHtml":{description:'Inserts rows you wrote in the editor markup (document.getMarkupRules): an optional <link em-class="em-font-..."> of a font on https: and <style em="styles">, then one or more <tr em="block">. Without `at` the rows go after the last row, in the given order, in one undo step. Rows are checked first: `invalidMarkup` lists the broken rules, nothing is inserted; fix and send again. Scripts, other style sheets, event handlers and executable addresses, also inside conditional comments and CSS, are cut. An <em-replace> variable is refused with `lockedByPlan` when the plan has no variables; one with "<" or ">" in `text` is a broken rule: add it with element.insertVariable. A .preheader node is refused with `lockedByPlan` when the plan closes the preheader. Returns the references of the new rows. If the open email changes meanwhile, the answer is `unavailable`. If a row after the first fails, the answer is `partialInsert`: its message names the rows that went in and the reason, the rows stay in the document as one undo step. Prefer a saved block of the project (block.list) when one fits.',args:e.Arg.object({html:e.Arg.string(),at:e.Arg.optional(e.Arg.object({element:t,place:e.Arg.enum("before","after")}))})},"element.insert":{description:`Inserts a new element of the palette (${a.join(", ")}) before or after an element, or at the end inside a row or a column, in one undo step. Returns the reference of the new element; change it with element.setProps.`,args:e.Arg.object({kind:e.Arg.enum(...a),at:e.Arg.object({element:t,place:e.Arg.enum("before","after","inside")})})},"block.insert":{description:"Inserts a block (an id from block.list, with the same `source`: `project` by default, `gallery` for a shared block) before or after a row, in one undo step; without `at` the block goes where a click on the block panel puts it. A gallery block keeps its own colors and fonts: it is not recolored to the common styles of the email. A block with a .preheader node is refused with `lockedByPlan` when the plan closes the preheader. `unavailable` means the open email changed meanwhile. Returns the reference of the new row.",args:e.Arg.object({block:e.Arg.string(),source:s.BLOCK_SOURCE_ARG,at:e.Arg.optional(e.Arg.object({element:t,place:e.Arg.enum("before","after")}))})},"element.delete":{description:`Deletes the element or the row in one undo step. Refused with \`readOnly\` when the element or something inside it is locked by the integrator, and for the preheader or a row with it: it goes through document.setHeaders. ${r}`,args:e.Arg.object({element:t})},"element.clone":{description:"Duplicates the element or the row right after it in one undo step and returns the reference of the copy.",args:e.Arg.object({element:t})},"element.move":{description:"Moves the row one place up or down in one undo step; `cannotMove` when it is already first or last.",args:e.Arg.object({element:t,direction:e.Arg.enum("up","down")})},"agent.batch":{description:'Runs up to 100 tool calls in order in one request, with all their edits in one undo step, for example element.setProps for each element found by element.find, each with its own props. Each call is checked as if called alone. Before the first call the user is asked once about all calls that need consent: if the user declines, no call runs and the answer is `declined`; a yes covers the whole batch. A call refused by a check before that window comes back in `failed` with `completed: 0`, nothing run. After that the batch stops at the first failed call: the answer is still a success, `failed` names the call and the calls before it stay done, so check `failed`. Returns the result of each finished call. To use a result in a later call of the same batch, pass `{ "$result": "0.element" }` as the value: the number of the call, then an own field of its result. A call that needs consent cannot take such a reference, because the window has to show the data: the batch is refused with `invalidArgs` in `failed`, nothing run; run the earlier calls first and write the value out in a separate batch. Tools of ui.* wait for the user and are not allowed in a batch, except ui.highlight.',args:e.Arg.object({calls:e.Arg.array(e.Arg.object({tool:e.Arg.string(),args:e.Arg.optional(e.Arg.object({}))}))})},"image.search":{description:"Searches free stock photos by keywords (the Stock tab of the image window) and returns up to 10 of them with an id, a description, the author and the size. There are no URLs: pass the chosen id to `image.pick`. An editor without a server has no stock photos: the answer is `unavailable`.",args:e.Arg.object({keywords:e.Arg.string(),orientation:e.Arg.optional(e.Arg.enum("landscape","portrait","squarish")),page:e.Arg.optional(e.Arg.number())})},"image.pick":{description:"Takes a photo found by `image.search` and returns its `url` for an image element. Reports the use to the photo service, as the image window does. Closed by the plan like `image.search`.",args:e.Arg.object({id:e.Arg.string()})},"file.upload":{description:"Downloads an image (JPG, PNG, WEBP, GIF or SVG) from a URL and stores it in the project storage the way the image window does; returns the stored image `url`. Use it for images that are not yet in the project storage.",args:e.Arg.object({url:e.Arg.string()})},"gallery.listTemplates":{description:"Lists the email templates of the gallery, one page at a time (page 1 by default; an empty list means no more pages). Use an id with document.applyTemplate. Not available in the plugin.",args:e.Arg.object({page:e.Arg.optional(e.Arg.number())})},"document.applyTemplate":{description:"Replaces the whole content of the open email with a gallery template (an id from gallery.listTemplates) in one undo step. Only the markup is taken: subject, preheader and common styles of the email stay. Not available in the plugin or for a block.",args:e.Arg.object({template:e.Arg.string()})},"project.getStyles":{description:"Returns the brand styles of the project: palette colors, fonts and social links. Use them for colors and fonts of new content. Not available in the plugin."},"document.getUtm":{description:"Returns the UTM marks added to all links when the email is exported; empty ones are empty strings."},"document.setUtm":{description:"Sets UTM marks that are added to all links when the email is exported; omitted marks stay, an empty string clears a mark. Returns all five marks after the change. `history.undo` does not revert them: they come back only when the user takes back the whole answer.",args:e.Arg.object({params:e.Arg.object({utm_source:n,utm_medium:n,utm_campaign:n,utm_term:n,utm_content:n})})},"document.setAnnotations":{description:"Writes Gmail annotations (promotions tab markup) into the email, replacing the existing ones. `annotationType` is `productCarousel` or `singleImagePreview` (needs `cards` with an image and an https link; a discount is given in percent in `discountPercent` and needs a numeric `price`), `dealAnnotation` (needs one of `description`, `discountCode`, dates) or `dealCard` (needs `description` and `offerPageUrl` or `merchantHomepageUrl`). Dates are ISO 8601 strings. Returns `changed: false` when the email already has exactly this markup.",args:e.Arg.object({annotationType:e.Arg.enum(...c),logo:n,description:n,discountCode:n,availabilityStarts:n,availabilityEnds:n,offerPageUrl:n,merchantHomepageUrl:n,cards:e.Arg.optional(e.Arg.array(e.Arg.object({image:n,url:n,headline:n,price:n,priceCurrency:n,discountPercent:n})))})},"document.removeAnnotations":{description:"Cuts the Gmail annotations markup out of the email in one undo step. Returns `changed: false` when there was none."},"history.restoreRevision":{description:'Goes back to an earlier saved version: replaces the email with a revision (markup, subject, preheader, styles). `history.undo` brings back the markup, and on the open canvas the subject and the preheader with it; styles stay from the revision. All of them come back for sure only when the user takes back the whole answer. Use it for "restore the previous version"; to take back the last edit of this session use `history.undo` instead. Take `revision` from `history.listRevisions`: the first row is normally the saved state of the email, so going back one version means the first row below it without `isAutosave`. Returns the restored `revision` with its `date` and `subject` when known and `unsaved: true`: the document stays unsaved until it is saved. Closed by the plan when it has no revision history.',args:e.Arg.object({revision:e.Arg.string()})},"variable.list":{description:"Lists the merge variables of this editor: `name` is the menu path shown to the user, `value` is the ready text with the delimiters of the sending service. Pass a `value` to element.insertVariable."},"element.insertVariable":{description:"Appends a merge variable (a `value` from variable.list) to the end of a text, header, button or link element in one undo step. It goes after the existing content: write the text first with element.setText, then add the variable; a space before it is part of that text. Refused for an element with a list or a table. Returns a reference to the element.",args:e.Arg.object({element:t,variable:e.Arg.string()})},"element.applyTypograf":{description:"Cleans typography of the text in one undo step: non-breaking spaces after short words and numbers, proper dashes and quotes. Without `element` it runs over the whole email; with the reference of a text element it runs over the whole cell of that text, like the button of the editor, so other text in the same cell changes too. Selects the element like a user click. Buttons, links and images are refused with that reference. Text locked by the integrator and the preheader stay as they are.",args:e.Arg.object({element:e.Arg.optional(t)})},"column.add":{description:'Adds an empty column at the end of a row (up to 8 columns) in one undo step; the other columns get narrower. Pass a row reference (kind "row") or any of its columns (kind "column" or "floatingBlock"). Returns the row reference and `columns`, the references of all its columns in order; fill the new one with element.insert and place "inside".',args:e.Arg.object({element:t})},"column.remove":{description:'Removes a column of a row together with its content in one undo step; the other columns get wider. Pass the column reference (kind "column" or "floatingBlock"). A row keeps at least one column. Refused with `readOnly` when the column or something inside it is locked by the integrator. Returns the row reference and `columns`.',args:e.Arg.object({element:t})},"column.swap":{description:'Swaps two columns of the same row in one undo step: content and width move together. Pass both column references (kind "column" or "floatingBlock"). Returns the row reference and `columns` in the new order.',args:e.Arg.object({element:t,with:t})},"accordion.addSection":{description:'Adds a section at the end of an accordion (kind "accordion", AMP emails) in one undo step, as a copy of its first section with the given plain `title` and `text` (markup characters stay text, a line break becomes a new line). Returns a fresh reference to the accordion, which is rebuilt, and `sections`, their count.',args:e.Arg.object({element:t,title:e.Arg.string(),text:e.Arg.optional(e.Arg.string())})},"accordion.removeSection":{description:"Removes a section of an accordion by its number (counted from 0) with its content in one undo step. An accordion keeps at least one section. Refused with `readOnly` when something inside the section is locked by the integrator. Returns a fresh reference to the accordion and `sections`, their count.",args:e.Arg.object({element:t,index:e.Arg.number()})},"export.download":{description:"Downloads the email in a format of the Export menu, as a click on it: the browser saves the file for the user. html — the code, zip — code with images, text — plain text, markdown, outlook — an .oft/.eml for Outlook, pdf, png — a picture. For an AMP email `variant` picks the AMP or the HTML version of code and text. The editor may first ask the user about a large code size. Returns when the export has started.",args:e.Arg.object({format:e.Arg.enum(...e.EXPORT_FORMATS),variant:e.Arg.optional(e.Arg.enum("html","amp"))})},"document.import":{description:"Replaces the whole open email with an imported one, as the Import menu item does with a chosen file: an .html, .htm, .eml or .zip by `url`, or `html` you pass with something to show: text, a picture or another visible element. Any other file and empty `html` are refused with `invalidArgs`: an extension in the address decides, whatever type the server answers with, and the type counts only for an address without one. A file without an email inside is refused with `importFailed`. Images of the file are uploaded to the project. One undo step.",args:e.Arg.object({url:e.Arg.optional(e.Arg.string()),html:e.Arg.optional(e.Arg.string())})},"send.testEmail":{description:"Sends the open email as it is now to up to 10 addresses, as the Send a test email window does. Without `subject` it goes with the subject of the email. Asks the user first and spends the test-send limit. An editor without a server has no test emails: the answer is `unavailable`.",args:e.Arg.object({recipients:e.Arg.array(e.Arg.string()),subject:e.Arg.optional(e.Arg.string())})}};l.AGENT_COMMAND_DETAILS=d});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/490ecf9b.js",["require","exports","module","static/core/2ff39ddf.js","static/core/82dfd28b.js"],function(i,u,h){const b=i("./2ff39ddf.js"),a=i("./82dfd28b.js");function l(e,t){return a.readOnlyRefusal(e)??a.askCanvasElement(e,t)}function d(e){return e.ok?void 0:e}function s(e,t,r){return e.flatMap(n=>"children"in n?s(n.children??[],[...t,n.label],r):[{name:[...t,n.label].join(" / "),value:r.replace("%value%",()=>n.value),raw:n.value}])}function f(e,t){return e.flatMap((r,n)=>s([r],[],(t.length>1?t[n]:void 0)??t[0]??"%value%"))}function c(e){const{mergeTags:t}=a.getAppConfig(e);return f(t?.items??[],t?.syntax??[])}function m(e,t){const r=t.trim(),n=e.filter(o=>o.raw===r);return e.find(o=>o.value===r)??(n.length===1?n[0]:void 0)}function v(e){const t=()=>a.readOnlyRefusal(e);return{"column.remove":{precheck:t,consent:a.elementConsent(e,({__:r},n,{text:o})=>({title:r("Remove this column with its content"),...a.detailsOf(o)}))},"accordion.removeSection":{precheck:t,consent:a.elementConsent(e,({__:r},n)=>({title:r("Remove this accordion section with its content"),...a.detailsOf({label:r("Section"),value:String(n.index+1)})}))}}}function p(e){return{"variable.list":()=>a.featureRefusal(e,"variables","merge variables")??c(e).map(({name:t,value:r})=>({name:t,value:r})),"element.insertVariable":async({element:t,variable:r})=>{const n=a.readOnlyRefusal(e)??a.featureRefusal(e,"variables","merge variables");if(n)return n;const o=m(c(e),r);return o?l(e,{op:"insertVariable",element:t,variable:o.value}):a.err("notFound",`There is no merge variable "${r}"; take a value from variable.list.`)},"element.applyTypograf":async({element:t})=>a.featureRefusal(e,"typograph","the typograph")??d(await l(e,{op:"typograf",element:t})),"column.add":({element:t})=>l(e,{op:"addColumn",element:t}),"column.remove":({element:t})=>l(e,{op:"removeColumn",element:t}),"column.swap":({element:t,with:r})=>l(e,{op:"swapColumns",element:t,with:r}),"accordion.addSection":({element:t,title:r,text:n})=>l(e,{op:"addAccordionSection",element:t,title:r,text:n??""}),"accordion.removeSection":({element:t,index:r})=>l(e,{op:"removeAccordionSection",element:t,index:r})}}u.agentStructureGates=v,u.agentStructureHandlers=p});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/62abaa0c.js",["require","exports","module","static/core/2ff39ddf.js","static/core/82dfd28b.js"],function(n,p,g){const $=n("./2ff39ddf.js"),u=n("./82dfd28b.js");var d={items_per_page:"na stronę",jump_to:"Idź do",jump_to_confirm:"potwierdź",page:"",prev_page:"Poprzednia strona",next_page:"Następna strona",prev_5:"Poprzednie 5 stron",next_5:"Następne 5 stron",prev_3:"Poprzednie 3 strony",next_3:"Następne 3 strony",page_size:"rozmiar strony"};function o(a){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(a)}function l(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);e&&(i=i.filter(function(j){return Object.getOwnPropertyDescriptor(a,j).enumerable})),t.push.apply(t,i)}return t}function s(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?l(Object(t),!0).forEach(function(i){y(a,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(t,i))})}return a}function y(a,e,t){return e=b(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function b(a){var e=w(a,"string");return o(e)=="symbol"?e:String(e)}function w(a,e){if(o(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var i=t.call(a,e||"default");if(o(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}var z=s(s({},u.commonLocale),{},{locale:"pl_PL",today:"Dzisiaj",now:"Teraz",backToToday:"Ustaw dzisiaj",ok:"OK",clear:"Wyczyść",week:"Tydzień",month:"Miesiąc",year:"Rok",timeSelect:"Ustaw czas",dateSelect:"Ustaw datę",monthSelect:"Wybierz miesiąc",yearSelect:"Wybierz rok",decadeSelect:"Wybierz dekadę",previousMonth:"Poprzedni miesiąc (PageUp)",nextMonth:"Następny miesiąc (PageDown)",previousYear:"Ostatni rok (Ctrl + left)",nextYear:"Następny rok (Ctrl + right)",previousDecade:"Ostatnia dekada",nextDecade:"Następna dekada",previousCentury:"Ostatni wiek",nextCentury:"Następny wiek"}),c={placeholder:"Wybierz godzinę",rangePlaceholder:["Czas rozpoczęcia","Czas zakończenia"]},m={lang:{placeholder:"Wybierz datę",rangePlaceholder:["Data początkowa","Data końcowa"],yearFormat:"YYYY",monthFormat:"MMMM",monthBeforeYear:!0,shortWeekDays:["Niedz","Pon","Wt","Śr","Czw","Pt","Sob"],shortMonths:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],...z},timePickerLocale:{...c}},f=m,r="${label} nie posiada poprawnej wartości dla typu ${type}",k={locale:"pl",Pagination:d,DatePicker:m,TimePicker:c,Calendar:f,global:{placeholder:"Wybierz",close:"Zamknij",show:"Pokaż",hide:"Ukryj"},Table:{filterTitle:"Menu filtra",filterConfirm:"OK",filterReset:"Usuń filtry",filterEmptyText:"Brak filtrów",filterCheckAll:"Wybierz wszystkie elementy",filterSearchPlaceholder:"Szukaj w filtrach",emptyText:"Brak danych",selectAll:"Zaznacz bieżącą stronę",selectInvert:"Odwróć zaznaczenie",selectNone:"Wyczyść",selectionAll:"Wybierz wszystkie",sortTitle:"Sortowanie",expand:"Rozwiń wiersz",collapse:"Zwiń wiersz",triggerDesc:"Sortuj malejąco",triggerAsc:"Sortuj rosnąco",cancelSort:"Usuń sortowanie"},Tour:{Next:"Dalej",Previous:"Wróć",Finish:"Zakończ"},Modal:{okText:"OK",cancelText:"Anuluj",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Anuluj"},Transfer:{titles:["",""],searchPlaceholder:"Szukaj",itemUnit:"obiekt",itemsUnit:"obiekty",remove:"Usuń",selectCurrent:"Wybierz aktualną stronę",removeCurrent:"Usuń aktualną stronę",selectAll:"Wybierz wszystkie",removeAll:"Usuń wszystkie",selectInvert:"Odwróć wybór"},Upload:{uploading:"Wysyłanie...",removeFile:"Usuń plik",uploadError:"Błąd wysyłania",previewFile:"Podejrzyj plik",downloadFile:"Pobieranie pliku"},Empty:{description:"Brak danych"},Icon:{icon:"Ikona"},Text:{edit:"Edytuj",copy:"Kopiuj",copied:"Skopiowany",expand:"Rozwiń"},Form:{optional:"(opcjonalne)",defaultValidateMessages:{default:"Błąd walidacji dla pola ${label}",required:"Pole ${label} jest wymagane",enum:"Pole ${label} musi posiadać wartość z listy: [${enum}]",whitespace:"Pole ${label} nie może być puste",date:{format:"${label} posiada zły format daty",parse:"${label} nie może zostać zinterpretowane jako data",invalid:"${label} jest niepoprawną datą"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} musi posiadać ${len} znaków",min:"${label} musi posiadać co namniej ${min} znaków",max:"${label} musi posiadać maksymalnie ${max} znaków",range:"${label} musi posiadać między ${min} a ${max} znaków"},number:{len:"${label} musi mieć wartość o długości ${len}",min:"${label} musi mieć wartość większą lub równą ${min}",max:"${label} musi mieć wartość mniejszą lub równą ${max}",range:"${label} musi mieć wartość pomiędzy ${min} a ${max}"},array:{len:"${label} musi posiadać ${len} elementów",min:"${label} musi posiadać co najmniej ${min} elementów",max:"${label} musi posiadać maksymalnie ${max} elementów",range:"${label} musi posiadać między ${min} a ${max} elementów"},pattern:{mismatch:"${label} nie posiada wartości zgodnej ze wzorem ${pattern}"}}}};p.default=k});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/6a4c653c.js",["require","exports","module","static/core/2ff39ddf.js","static/core/82dfd28b.js"],function(i,d,P){const S=i("./2ff39ddf.js"),p=i("./82dfd28b.js");var m={items_per_page:"/ page",jump_to:"Aller à",jump_to_confirm:"confirmer",page:"Page",prev_page:"Page précédente",next_page:"Page suivante",prev_5:"5 Pages précédentes",next_5:"5 Pages suivantes",prev_3:"3 Pages précédentes",next_3:"3 Pages suivantes",page_size:"taille de la page"};function n(t){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter(function($){return Object.getOwnPropertyDescriptor(t,$).enumerable})),r.push.apply(r,l)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(l){f(t,l,r[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(r,l))})}return t}function f(t,e,r){return e=h(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=b(t,"string");return n(e)=="symbol"?e:String(e)}function b(t,e){if(n(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var l=r.call(t,e||"default");if(n(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var g=c(c({},p.commonLocale),{},{locale:"fr_FR",today:"Aujourd'hui",now:"Maintenant",backToToday:"Aujourd'hui",ok:"OK",clear:"Rétablir",week:"Semaine",month:"Mois",year:"Année",timeSelect:"Sélectionner l'heure",dateSelect:"Sélectionner la date",monthSelect:"Choisissez un mois",yearSelect:"Choisissez une année",decadeSelect:"Choisissez une décennie",dayFormat:"DD",previousMonth:"Mois précédent (PageUp)",nextMonth:"Mois suivant (PageDown)",previousYear:"Année précédente (Ctrl + gauche)",nextYear:"Année prochaine (Ctrl + droite)",previousDecade:"Décennie précédente",nextDecade:"Décennie suivante",previousCentury:"Siècle précédent",nextCentury:"Siècle suivant"}),u={placeholder:"Sélectionner l'heure",rangePlaceholder:["Heure de début","Heure de fin"]},s={lang:{placeholder:"Sélectionner une date",yearPlaceholder:"Sélectionner une année",quarterPlaceholder:"Sélectionner un trimestre",monthPlaceholder:"Sélectionner un mois",weekPlaceholder:"Sélectionner une semaine",rangePlaceholder:["Date de début","Date de fin"],rangeYearPlaceholder:["Année de début","Année de fin"],rangeMonthPlaceholder:["Mois de début","Mois de fin"],rangeWeekPlaceholder:["Semaine de début","Semaine de fin"],...g},timePickerLocale:{...u}},v=s,a="La valeur du champ ${label} n'est pas valide pour le type ${type}",y={locale:"fr",Pagination:m,DatePicker:s,TimePicker:u,Calendar:v,global:{close:"Fermer",show:"Afficher",hide:"Masquer"},Table:{filterTitle:"Filtrer",filterConfirm:"OK",filterReset:"Réinitialiser",filterEmptyText:"Aucun filtre",filterCheckAll:"Tout sélectionner",filterSearchPlaceholder:"Chercher dans les filtres",emptyText:"Aucune donnée",selectAll:"Sélectionner la page actuelle",selectInvert:"Inverser la sélection de la page actuelle",selectNone:"Désélectionner toutes les données",selectionAll:"Sélectionner toutes les données",sortTitle:"Trier",expand:"Développer la ligne",collapse:"Réduire la ligne",triggerDesc:"Trier par ordre décroissant",triggerAsc:"Trier par ordre croissant",cancelSort:"Annuler le tri"},Tour:{Next:"Étape suivante",Previous:"Étape précédente",Finish:"Fin de la visite guidée"},Modal:{okText:"OK",cancelText:"Annuler",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annuler"},Transfer:{titles:["",""],searchPlaceholder:"Rechercher",itemUnit:"élément",itemsUnit:"éléments",remove:"Désélectionner",selectCurrent:"Sélectionner la page actuelle",removeCurrent:"Désélectionner la page actuelle",selectAll:"Sélectionner toutes les données",removeAll:"Désélectionner toutes les données",selectInvert:"Inverser la sélection de la page actuelle"},Upload:{uploading:"Téléchargement...",removeFile:"Effacer le fichier",uploadError:"Erreur de téléchargement",previewFile:"Fichier de prévisualisation",downloadFile:"Télécharger un fichier"},Empty:{description:"Aucune donnée"},Icon:{icon:"icône"},Text:{edit:"Éditer",copy:"Copier",copied:"Copie effectuée",expand:"Développer"},Form:{optional:"(optionnel)",defaultValidateMessages:{default:"Erreur de validation pour le champ ${label}",required:"Le champ ${label} est obligatoire",enum:"La valeur du champ ${label} doit être parmi [${enum}]",whitespace:"La valeur du champ ${label} ne peut pas être vide",date:{format:"La valeur du champ ${label} n'est pas au format date",parse:"La valeur du champ ${label} ne peut pas être convertie vers une date",invalid:"La valeur du champ ${label} n'est pas une date valide"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"La taille du champ ${label} doit être de ${len} caractères",min:"La taille du champ ${label} doit être au minimum de ${min} caractères",max:"La taille du champ ${label} doit être au maximum de ${max} caractères",range:"La taille du champ ${label} doit être entre ${min} et ${max} caractères"},number:{len:"La valeur du champ ${label} doit être égale à ${len}",min:"La valeur du champ ${label} doit être plus grande que ${min}",max:"La valeur du champ ${label} doit être plus petit que ${max}",range:"La valeur du champ ${label} doit être entre ${min} et ${max}"},array:{len:"La taille du tableau ${label} doit être de ${len}",min:"La taille du tableau ${label} doit être au minimum de ${min}",max:"La taille du tableau ${label} doit être au maximum de ${max}",range:"La taille du tableau ${label} doit être entre ${min}-${max}"},pattern:{mismatch:"La valeur du champ ${label} ne correspond pas au modèle ${pattern}"}}}};d.default=y});
|