useblocks 1.3.11-dev.3 → 1.3.14
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/README.md +1 -1
- package/compat-globals.js +1 -1
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/css/sandbox-dark.css +1 -1
- package/iframe/css/sandbox-light.css +1 -1
- package/iframe/css/sandbox.css +47 -17
- package/iframe/{iframe-eblock.5751e42b.html → iframe-eblock.cd84d2b9.html} +2 -2
- package/iframe/{iframe.5751e42b.html → iframe.cd84d2b9.html} +2 -2
- package/iframe/js/elMarkupHelper.CgToMPJX.js +278 -0
- package/iframe/js/{iframe-eblock.body.5751e42b.js → iframe-eblock.body.cd84d2b9.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/{iframe.body.5751e42b.js → iframe.body.cd84d2b9.js} +2 -2
- package/iframe/js/iframe.js +2 -2
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{e037a420.js → 18b86617.js} +1 -1
- package/static/core/{1c7a6d45.js → 1a17438d.js} +1 -1
- package/static/core/{11dadbc0.js → 1c9acdf4.js} +1 -1
- package/static/core/{1c06cdb7.js → 1dfb486f.js} +1 -1
- package/static/core/{b55ae539.js → 209e2686.js} +1 -1
- package/static/core/{71727873.js → 2209544a.js} +1 -1
- package/static/core/243ff5f9.js +19 -0
- package/static/core/{516f59e7.js → 33588588.js} +1 -1
- package/static/core/{66113a18.js → 36ffa6e4.js} +1 -1
- package/static/core/{3d8e2478.js → 39d9efa2.js} +1 -1
- package/static/core/{c13b3d4f.js → 3a605273.js} +1 -1
- package/static/core/{e7e888c1.js → 4224aefb.js} +1 -1
- package/static/core/{3b65bc50.js → 4bfd6086.js} +1 -1
- package/static/core/{d9d5b376.js → 550803ff.js} +1 -1
- package/static/core/{b59c63d2.js → 555c0dda.js} +1 -1
- package/static/core/{2bed6a18.js → 5661be7c.js} +1 -1
- package/static/core/{bda2d9d5.js → 57948058.js} +1 -1
- package/static/core/{ef035f6b.js → 58c51568.js} +1 -1
- package/static/core/{3eeb4445.js → 5a21c667.js} +1 -1
- package/static/core/{76543cb2.js → 5cac7517.js} +1 -1
- package/static/core/{513e36bd.js → 5d315649.js} +1 -1
- package/static/core/{62855b97.js → 5f0554d8.js} +1 -1
- package/static/core/{347b0a0b.js → 605267a0.js} +1 -1
- package/static/core/{aee84e3d.js → 6100ddd2.js} +1 -1
- package/static/core/{94f9492b.js → 6c59da82.js} +1 -1
- package/static/core/{58dca22f.js → 87edea39.js} +1 -1
- package/static/core/{1c3a16fc.js → 8f57829b.js} +1 -1
- package/static/core/{8845436d.js → 91d46f38.js} +2 -2
- package/static/core/{d2cf6b4b.js → 92fb4e07.js} +1 -1
- package/static/core/{467344d4.js → 9d0b4233.js} +1 -1
- package/static/core/{dd008ec2.js → a8634edd.js} +1 -1
- package/static/core/{261a3a42.js → b4e4af36.js} +1 -1
- package/static/core/{c0a3f7d0.js → bff175af.js} +2 -2
- package/static/core/{e698ec22.js → c571b1dd.js} +1 -1
- package/static/core/{b9f553d7.js → c6114314.js} +1 -1
- package/static/core/{f8585ce6.js → ce93456f.js} +1 -1
- package/static/core/{f1b8515a.js → d4513bf2.js} +1 -1
- package/static/core/{d343e46e.js → de3f9bdc.js} +1 -1
- package/static/core/{8406bab5.js → e0282a25.js} +1 -1
- package/static/core/{7e329493.js → e35eca7d.js} +1 -1
- package/static/core/{11009bdf.js → e37ba502.js} +1 -1
- package/static/core/{257745eb.js → f4b9148a.js} +1 -1
- package/static/core/{6172f09a.js → f4e70f7f.js} +1 -1
- package/static/core/{5da33486.js → f9238279.js} +1 -1
- package/static/esm/delivery-libs.js +1 -1
- package/static/umd-runtime/{Cvm7BS4_.js → CyULsN57.js} +31 -31
- package/static/umd-runtime/DdK5piwW.js +1 -0
- package/static/umd-runtime/delivery-libs.BJHA1QD4.js +1 -0
- package/static/umd-runtime/runtime.DAdCc3rx.js +1 -0
- package/static/umd-runtime/{ui-kit.CoVNet0I.js → ui-kit.BZ4Y4jr2.js} +2 -2
- package/{useblocks-core.5751e42b.js → useblocks-core.cd84d2b9.js} +22 -22
- package/useblocks-esm.js +12 -12
- package/{useblocks-po.5751e42b.js → useblocks-po.cd84d2b9.js} +1 -1
- package/useblocks.d.ts +1 -1
- package/useblocks.js +12 -12
- package/vendor/useblocks-ui-kit/es/components/Custom/FormBackgroundSettings/index.js +3 -3
- package/vendor/useblocks-ui-kit/es/components/Custom/FormBorderRadiusInputs/index.js +6 -6
- package/vendor/useblocks-ui-kit/es/components/Custom/FormBoxShadowInputs/index.js +5 -5
- package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormPaddingInputs/index.js +69 -64
- package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormSizeInputs/index.js +5 -5
- package/vendor/useblocks-ui-kit/es/components/Custom/FormPanel/FormTypographyFields/index.js +5 -5
- package/vendor/useblocks-ui-kit/es/components/Custom/Inputs/DraggableInputNumber/index.js +41 -35
- package/vendor/useblocks-ui-kit/es/components/Layout/Splitter/index.js +5 -0
- package/vendor/useblocks-ui-kit/index.js +12 -11
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/iframe/js/elMarkupHelper.BpDXO-hq.js +0 -279
- package/static/core/ed65b5c3.js +0 -19
- package/static/umd-runtime/B7h7P1Np.js +0 -1
- package/static/umd-runtime/delivery-libs.BymXnePv.js +0 -1
- package/static/umd-runtime/runtime.Lgfb59e0.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/b9f553d7.js",["require","exports","module","static/core/2ff39ddf.js","static/core/a42ab03f.js","static/core/e7620593.js","static/core/ff7d14e8.js","react","react/jsx-runtime","__delivery__/libs","react-dom","react-dom/client"],function(et,Y,iF){const ut=et("./2ff39ddf.js"),Xa=et("./a42ab03f.js"),nl=et("./e7620593.js"),ll=et("./ff7d14e8.js");let F=et("react");F=ut.__toESM(F);let ei=et("react/jsx-runtime"),Hr=et("__delivery__/libs"),sl=et("react-dom");sl=ut.__toESM(sl);let nF=et("react-dom/client");function sf(o,t){if(Xa._typeof(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var n=a.call(o,t||"default");if(Xa._typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function dl(o){var t=sf(o,"string");return Xa._typeof(t)=="symbol"?t:t+""}function ri(o,t,a){return(t=dl(t))in o?Object.defineProperty(o,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[t]=a,o}var ti=(0,F.createContext)({});function ul(o){var t,a,n="";if(typeof o=="string"||typeof o=="number")n+=o;else if(typeof o=="object")if(Array.isArray(o)){var l=o.length;for(t=0;t<l;t++)o[t]&&(a=ul(o[t]))&&(n&&(n+=" "),n+=a)}else for(a in o)o[a]&&(n&&(n+=" "),n+=a);return n}function cl(){for(var o,t,a=0,n="",l=arguments.length;a<l;a++)(o=arguments[a])&&(t=ul(o))&&(n&&(n+=" "),n+=t);return n}var df={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},lr=Math.round;function oi(o,t){const a=o.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=a.map(l=>parseFloat(l));for(let l=0;l<3;l+=1)n[l]=t(n[l]||0,a[l]||"",l);return a[3]?n[3]=a[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var fl=(o,t,a)=>a===0?o:o/100;function po(o,t){const a=t||255;return o>a?a:o<0?0:o}var Mo=class af{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function a(l){return l[0]in t&&l[1]in t&&l[2]in t}if(t)if(typeof t=="string"){let d=function(u){return l.startsWith(u)};var n=d;const l=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(l))this.fromHexString(l);else if(d("rgb"))this.fromRgbString(l);else if(d("hsl"))this.fromHslString(l);else if(d("hsv")||d("hsb"))this.fromHsvString(l);else{const u=df[l.toLowerCase()];u&&this.fromHexString(parseInt(u,36).toString(16).padStart(6,"0"))}}else if(t instanceof af)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(a("rgb"))this.r=po(t.r),this.g=po(t.g),this.b=po(t.b),this.a=typeof t.a=="number"?po(t.a,1):1;else if(a("hsl"))this.fromHsl(t);else if(a("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const a=this.toHsv();return a.h=t,this._c(a)}getLuminance(){function t(d){const u=d/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const a=t(this.r),n=t(this.g),l=t(this.b);return .2126*a+.7152*n+.0722*l}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const a=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*a-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()-t/100;return l<0&&(l=0),this._c({h:a,s:n,l,a:this.a})}lighten(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()+t/100;return l>1&&(l=1),this._c({h:a,s:n,l,a:this.a})}mix(t,a=50){const n=this._c(t),l=a/100,d=c=>(n[c]-this[c])*l+this[c],u={r:lr(d("r")),g:lr(d("g")),b:lr(d("b")),a:lr(d("a")*100)/100};return this._c(u)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const a=this._c(t),n=this.a+a.a*(1-this.a),l=d=>lr((this[d]*this.a+a[d]*a.a*(1-this.a))/n);return this._c({r:l("r"),g:l("g"),b:l("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const a=(this.r||0).toString(16);t+=a.length===2?a:"0"+a;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const l=(this.b||0).toString(16);if(t+=l.length===2?l:"0"+l,typeof this.a=="number"&&this.a>=0&&this.a<1){const d=lr(this.a*255).toString(16);t+=d.length===2?d:"0"+d}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),a=lr(this.getHSLSaturation()*100),n=lr(this.getLightness()*100);return this.a!==1?`hsla(${t},${a}%,${n}%,${this.a})`:`hsl(${t},${a}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,a,n){const l=this.clone();return l[t]=po(a,n),l}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const a=t.replace("#","");function n(l,d){return parseInt(a[l]+a[d||l],16)}a.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=a[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=a[6]?n(6,7)/255:1)}fromHsl({h:t,s:a,l:n,a:l}){const d=(t%360+360)%360;if(this._h=d,this._hsl_s=a,this._l=n,this.a=typeof l=="number"?l:1,a<=0){const S=lr(n*255);this.r=S,this.g=S,this.b=S;return}let u=0,c=0,g=0;const m=d/60,v=(1-Math.abs(2*n-1))*a,y=v*(1-Math.abs(m%2-1));m>=0&&m<1?(u=v,c=y):m>=1&&m<2?(u=y,c=v):m>=2&&m<3?(c=v,g=y):m>=3&&m<4?(c=y,g=v):m>=4&&m<5?(u=y,g=v):m>=5&&m<6&&(u=v,g=y);const b=n-v/2;this.r=lr((u+b)*255),this.g=lr((c+b)*255),this.b=lr((g+b)*255)}fromHsv({h:t,s:a,v:n,a:l}){const d=(t%360+360)%360;this._h=d,this._hsv_s=a,this._v=n,this.a=typeof l=="number"?l:1;const u=lr(n*255);if(this.r=u,this.g=u,this.b=u,a<=0)return;const c=d/60,g=Math.floor(c),m=c-g,v=lr(n*(1-a)*255),y=lr(n*(1-a*m)*255),b=lr(n*(1-a*(1-m))*255);switch(g){case 0:this.g=b,this.b=v;break;case 1:this.r=y,this.b=v;break;case 2:this.r=v,this.b=b;break;case 3:this.r=v,this.g=y;break;case 4:this.r=b,this.g=v;break;default:this.g=v,this.b=y}}fromHsvString(t){const a=oi(t,fl);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(t){const a=oi(t,fl);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(t){const a=oi(t,(n,l)=>l.includes("%")?lr(n/100*255):n);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}},Bo=2,ml=.16,uf=.05,cf=.05,ff=.15,pl=5,gl=4,mf=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function hl(o,t,a){let n;return Math.round(o.h)>=60&&Math.round(o.h)<=240?n=a?Math.round(o.h)-Bo*t:Math.round(o.h)+Bo*t:n=a?Math.round(o.h)+Bo*t:Math.round(o.h)-Bo*t,n<0?n+=360:n>=360&&(n-=360),n}function vl(o,t,a){if(o.h===0&&o.s===0)return o.s;let n;return a?n=o.s-ml*t:t===gl?n=o.s+ml:n=o.s+uf*t,n>1&&(n=1),a&&t===pl&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function yl(o,t,a){let n;return a?n=o.v+cf*t:n=o.v-ff*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function pf(o,t={}){const a=[],n=new Mo(o),l=n.toHsv();for(let d=pl;d>0;d-=1){const u=new Mo({h:hl(l,d,!0),s:vl(l,d,!0),v:yl(l,d,!0)});a.push(u)}a.push(n);for(let d=1;d<=gl;d+=1){const u=new Mo({h:hl(l,d),s:vl(l,d),v:yl(l,d)});a.push(u)}return t.theme==="dark"?mf.map(({index:d,amount:u})=>new Mo(t.backgroundColor||"#141414").mix(a[d],u).toHexString()):a.map(d=>d.toHexString())}var bl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bl.primary=bl[5];var wl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];wl.primary=wl[5];var Cl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Cl.primary=Cl[5];var Al=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Al.primary=Al[5];var Il=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Il.primary=Il[5];var Fl=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Fl.primary=Fl[5];var _l=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];_l.primary=_l[5];var Sl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Sl.primary=Sl[5];var ai=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ai.primary=ai[5];var zl=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];zl.primary=zl[5];var El=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];El.primary=El[5];var Tl=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Tl.primary=Tl[5];var kl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kl.primary=kl[5];var Rl=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Rl.primary=Rl[5];var xl=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];xl.primary=xl[5];var Pl=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Pl.primary=Pl[5];var Ll=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Ll.primary=Ll[5];var Ul=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Ul.primary=Ul[5];var Nl=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Nl.primary=Nl[5];var Dl=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Dl.primary=Dl[5];var jl=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];jl.primary=jl[5];var Ol=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Ol.primary=Ol[5];var Ml=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ml.primary=Ml[5];var Bl=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Bl.primary=Bl[5];var ql=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];ql.primary=ql[5];var Wl=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Wl.primary=Wl[5];function Gl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var lF=Gl()?F.useLayoutEffect:F.useEffect;function gf(){return{...F}.useId}var sF=gf();function hf(o,t,a){const n=F.useRef({});return(!("value"in n.current)||a(n.current.condition,t))&&(n.current.value=o(),n.current.condition=t),n.current.value}var vf=ut.__commonJSMin((o=>{})),yf=ut.__commonJSMin(((o,t)=>{t.exports=vf()})),dF=yf(),uF=Number(F.version.split(".")[0]),bf=(o,t)=>{typeof o=="function"?o(t):typeof o=="object"&&o&&"current"in o&&(o.current=t)},wf=(...o)=>{const t=o.filter(Boolean);return t.length<=1?t[0]:a=>{o.forEach(n=>{bf(n,a)})}},Cf=(...o)=>hf(()=>wf(...o),o,(t,a)=>t.length!==a.length||t.every((n,l)=>n!==a[l]));function Af(o,t){if(!o)return!1;if(o.contains)return o.contains(t);let a=t;for(;a;){if(a===o)return!0;a=a.parentNode}return!1}var Hl="data-rc-order",Vl="data-rc-priority",If="rc-util-key",ii=new Map;function Kl({mark:o}={}){return o?o.startsWith("data-")?o:`data-${o}`:If}function ni(o){return o.attachTo?o.attachTo:document.querySelector("head")||document.body}function Ff(o){return o==="queue"?"prependQueue":o?"prepend":"append"}function li(o){return Array.from((ii.get(o)||o).children).filter(t=>t.tagName==="STYLE")}function $l(o,t={}){if(!Gl())return null;const{csp:a,prepend:n,priority:l=0}=t,d=Ff(n),u=d==="prependQueue",c=document.createElement("style");c.setAttribute(Hl,d),u&&l&&c.setAttribute(Vl,`${l}`),a?.nonce&&(c.nonce=a?.nonce),c.innerHTML=o;const g=ni(t),{firstChild:m}=g;if(n){if(u){const v=(t.styles||li(g)).filter(y=>{if(!["prepend","prependQueue"].includes(y.getAttribute(Hl)))return!1;const b=Number(y.getAttribute(Vl)||0);return l>=b});if(v.length)return g.insertBefore(c,v[v.length-1].nextSibling),c}g.insertBefore(c,m)}else g.appendChild(c);return c}function _f(o,t={}){let{styles:a}=t;return a||=li(ni(t)),a.find(n=>n.getAttribute(Kl(t))===o)}function Sf(o,t){const a=ii.get(o);if(!a||!Af(document,a)){const n=$l("",t),{parentNode:l}=n;ii.set(o,l),o.removeChild(n)}}function zf(o,t,a={}){const n=ni(a),l=li(n),d={...a,styles:l};Sf(n,d);const u=_f(t,d);if(u)return d.csp?.nonce&&u.nonce!==d.csp?.nonce&&(u.nonce=d.csp?.nonce),u.innerHTML!==o&&(u.innerHTML=o),u;const c=$l(o,d);return c.setAttribute(Kl(d),t),c}function Ql(o){return o?.getRootNode?.()}function Ef(o){return Ql(o)instanceof ShadowRoot}function Tf(o){return Ef(o)?Ql(o):null}var si={},kf=[],Rf=o=>{kf.push(o)};function xf(o,t){}function Pf(o,t){}function Lf(){si={}}function Zl(o,t,a){!t&&!si[a]&&(o(!1,a),si[a]=!0)}function qo(o,t){Zl(xf,o,t)}function Uf(o,t){Zl(Pf,o,t)}qo.preMessage=Rf,qo.resetWarned=Lf,qo.noteOnce=Uf;var Nf=ut.__commonJSMin(((o,t)=>{t.exports=d,t.exports.isMobile=d,t.exports.default=d;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function d(u){u||(u={});let c=u.ua;if(!c&&typeof navigator<"u"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;let g=a.test(c)&&!n.test(c)||!!u.tablet&&l.test(c);return!g&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(g=!0),g}})),cF=ut.__toESM(Nf()),fF=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
1
|
+
__useblocks__.define("static/core/c6114314.js",["require","exports","module","static/core/2ff39ddf.js","static/core/74875d47.js","static/core/e7620593.js","static/core/ff7d14e8.js","react","react/jsx-runtime","__delivery__/libs","react-dom","react-dom/client"],function(et,Y,iF){const ut=et("./2ff39ddf.js"),Xa=et("./74875d47.js"),nl=et("./e7620593.js"),ll=et("./ff7d14e8.js");let F=et("react");F=ut.__toESM(F);let ei=et("react/jsx-runtime"),Hr=et("__delivery__/libs"),sl=et("react-dom");sl=ut.__toESM(sl);let nF=et("react-dom/client");function sf(o,t){if(Xa._typeof(o)!="object"||!o)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var n=a.call(o,t||"default");if(Xa._typeof(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function dl(o){var t=sf(o,"string");return Xa._typeof(t)=="symbol"?t:t+""}function ri(o,t,a){return(t=dl(t))in o?Object.defineProperty(o,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[t]=a,o}var ti=(0,F.createContext)({});function ul(o){var t,a,n="";if(typeof o=="string"||typeof o=="number")n+=o;else if(typeof o=="object")if(Array.isArray(o)){var l=o.length;for(t=0;t<l;t++)o[t]&&(a=ul(o[t]))&&(n&&(n+=" "),n+=a)}else for(a in o)o[a]&&(n&&(n+=" "),n+=a);return n}function cl(){for(var o,t,a=0,n="",l=arguments.length;a<l;a++)(o=arguments[a])&&(t=ul(o))&&(n&&(n+=" "),n+=t);return n}var df={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},lr=Math.round;function oi(o,t){const a=o.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=a.map(l=>parseFloat(l));for(let l=0;l<3;l+=1)n[l]=t(n[l]||0,a[l]||"",l);return a[3]?n[3]=a[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var fl=(o,t,a)=>a===0?o:o/100;function po(o,t){const a=t||255;return o>a?a:o<0?0:o}var Mo=class af{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function a(l){return l[0]in t&&l[1]in t&&l[2]in t}if(t)if(typeof t=="string"){let d=function(u){return l.startsWith(u)};var n=d;const l=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(l))this.fromHexString(l);else if(d("rgb"))this.fromRgbString(l);else if(d("hsl"))this.fromHslString(l);else if(d("hsv")||d("hsb"))this.fromHsvString(l);else{const u=df[l.toLowerCase()];u&&this.fromHexString(parseInt(u,36).toString(16).padStart(6,"0"))}}else if(t instanceof af)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(a("rgb"))this.r=po(t.r),this.g=po(t.g),this.b=po(t.b),this.a=typeof t.a=="number"?po(t.a,1):1;else if(a("hsl"))this.fromHsl(t);else if(a("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const a=this.toHsv();return a.h=t,this._c(a)}getLuminance(){function t(d){const u=d/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}const a=t(this.r),n=t(this.g),l=t(this.b);return .2126*a+.7152*n+.0722*l}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const a=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*a-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()-t/100;return l<0&&(l=0),this._c({h:a,s:n,l,a:this.a})}lighten(t=10){const a=this.getHue(),n=this.getSaturation();let l=this.getLightness()+t/100;return l>1&&(l=1),this._c({h:a,s:n,l,a:this.a})}mix(t,a=50){const n=this._c(t),l=a/100,d=c=>(n[c]-this[c])*l+this[c],u={r:lr(d("r")),g:lr(d("g")),b:lr(d("b")),a:lr(d("a")*100)/100};return this._c(u)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const a=this._c(t),n=this.a+a.a*(1-this.a),l=d=>lr((this[d]*this.a+a[d]*a.a*(1-this.a))/n);return this._c({r:l("r"),g:l("g"),b:l("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const a=(this.r||0).toString(16);t+=a.length===2?a:"0"+a;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const l=(this.b||0).toString(16);if(t+=l.length===2?l:"0"+l,typeof this.a=="number"&&this.a>=0&&this.a<1){const d=lr(this.a*255).toString(16);t+=d.length===2?d:"0"+d}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),a=lr(this.getHSLSaturation()*100),n=lr(this.getLightness()*100);return this.a!==1?`hsla(${t},${a}%,${n}%,${this.a})`:`hsl(${t},${a}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,a,n){const l=this.clone();return l[t]=po(a,n),l}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const a=t.replace("#","");function n(l,d){return parseInt(a[l]+a[d||l],16)}a.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=a[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=a[6]?n(6,7)/255:1)}fromHsl({h:t,s:a,l:n,a:l}){const d=(t%360+360)%360;if(this._h=d,this._hsl_s=a,this._l=n,this.a=typeof l=="number"?l:1,a<=0){const S=lr(n*255);this.r=S,this.g=S,this.b=S;return}let u=0,c=0,g=0;const m=d/60,v=(1-Math.abs(2*n-1))*a,y=v*(1-Math.abs(m%2-1));m>=0&&m<1?(u=v,c=y):m>=1&&m<2?(u=y,c=v):m>=2&&m<3?(c=v,g=y):m>=3&&m<4?(c=y,g=v):m>=4&&m<5?(u=y,g=v):m>=5&&m<6&&(u=v,g=y);const b=n-v/2;this.r=lr((u+b)*255),this.g=lr((c+b)*255),this.b=lr((g+b)*255)}fromHsv({h:t,s:a,v:n,a:l}){const d=(t%360+360)%360;this._h=d,this._hsv_s=a,this._v=n,this.a=typeof l=="number"?l:1;const u=lr(n*255);if(this.r=u,this.g=u,this.b=u,a<=0)return;const c=d/60,g=Math.floor(c),m=c-g,v=lr(n*(1-a)*255),y=lr(n*(1-a*m)*255),b=lr(n*(1-a*(1-m))*255);switch(g){case 0:this.g=b,this.b=v;break;case 1:this.r=y,this.b=v;break;case 2:this.r=v,this.b=b;break;case 3:this.r=v,this.g=y;break;case 4:this.r=b,this.g=v;break;default:this.g=v,this.b=y}}fromHsvString(t){const a=oi(t,fl);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(t){const a=oi(t,fl);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(t){const a=oi(t,(n,l)=>l.includes("%")?lr(n/100*255):n);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}},Bo=2,ml=.16,uf=.05,cf=.05,ff=.15,pl=5,gl=4,mf=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function hl(o,t,a){let n;return Math.round(o.h)>=60&&Math.round(o.h)<=240?n=a?Math.round(o.h)-Bo*t:Math.round(o.h)+Bo*t:n=a?Math.round(o.h)+Bo*t:Math.round(o.h)-Bo*t,n<0?n+=360:n>=360&&(n-=360),n}function vl(o,t,a){if(o.h===0&&o.s===0)return o.s;let n;return a?n=o.s-ml*t:t===gl?n=o.s+ml:n=o.s+uf*t,n>1&&(n=1),a&&t===pl&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function yl(o,t,a){let n;return a?n=o.v+cf*t:n=o.v-ff*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function pf(o,t={}){const a=[],n=new Mo(o),l=n.toHsv();for(let d=pl;d>0;d-=1){const u=new Mo({h:hl(l,d,!0),s:vl(l,d,!0),v:yl(l,d,!0)});a.push(u)}a.push(n);for(let d=1;d<=gl;d+=1){const u=new Mo({h:hl(l,d),s:vl(l,d),v:yl(l,d)});a.push(u)}return t.theme==="dark"?mf.map(({index:d,amount:u})=>new Mo(t.backgroundColor||"#141414").mix(a[d],u).toHexString()):a.map(d=>d.toHexString())}var bl=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bl.primary=bl[5];var wl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];wl.primary=wl[5];var Cl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Cl.primary=Cl[5];var Al=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Al.primary=Al[5];var Il=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Il.primary=Il[5];var Fl=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Fl.primary=Fl[5];var _l=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];_l.primary=_l[5];var Sl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Sl.primary=Sl[5];var ai=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ai.primary=ai[5];var zl=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];zl.primary=zl[5];var El=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];El.primary=El[5];var Tl=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Tl.primary=Tl[5];var kl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kl.primary=kl[5];var Rl=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Rl.primary=Rl[5];var xl=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];xl.primary=xl[5];var Pl=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Pl.primary=Pl[5];var Ll=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Ll.primary=Ll[5];var Ul=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Ul.primary=Ul[5];var Nl=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Nl.primary=Nl[5];var Dl=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Dl.primary=Dl[5];var jl=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];jl.primary=jl[5];var Ol=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Ol.primary=Ol[5];var Ml=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ml.primary=Ml[5];var Bl=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Bl.primary=Bl[5];var ql=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];ql.primary=ql[5];var Wl=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Wl.primary=Wl[5];function Gl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var lF=Gl()?F.useLayoutEffect:F.useEffect;function gf(){return{...F}.useId}var sF=gf();function hf(o,t,a){const n=F.useRef({});return(!("value"in n.current)||a(n.current.condition,t))&&(n.current.value=o(),n.current.condition=t),n.current.value}var vf=ut.__commonJSMin((o=>{})),yf=ut.__commonJSMin(((o,t)=>{t.exports=vf()})),dF=yf(),uF=Number(F.version.split(".")[0]),bf=(o,t)=>{typeof o=="function"?o(t):typeof o=="object"&&o&&"current"in o&&(o.current=t)},wf=(...o)=>{const t=o.filter(Boolean);return t.length<=1?t[0]:a=>{o.forEach(n=>{bf(n,a)})}},Cf=(...o)=>hf(()=>wf(...o),o,(t,a)=>t.length!==a.length||t.every((n,l)=>n!==a[l]));function Af(o,t){if(!o)return!1;if(o.contains)return o.contains(t);let a=t;for(;a;){if(a===o)return!0;a=a.parentNode}return!1}var Hl="data-rc-order",Vl="data-rc-priority",If="rc-util-key",ii=new Map;function Kl({mark:o}={}){return o?o.startsWith("data-")?o:`data-${o}`:If}function ni(o){return o.attachTo?o.attachTo:document.querySelector("head")||document.body}function Ff(o){return o==="queue"?"prependQueue":o?"prepend":"append"}function li(o){return Array.from((ii.get(o)||o).children).filter(t=>t.tagName==="STYLE")}function $l(o,t={}){if(!Gl())return null;const{csp:a,prepend:n,priority:l=0}=t,d=Ff(n),u=d==="prependQueue",c=document.createElement("style");c.setAttribute(Hl,d),u&&l&&c.setAttribute(Vl,`${l}`),a?.nonce&&(c.nonce=a?.nonce),c.innerHTML=o;const g=ni(t),{firstChild:m}=g;if(n){if(u){const v=(t.styles||li(g)).filter(y=>{if(!["prepend","prependQueue"].includes(y.getAttribute(Hl)))return!1;const b=Number(y.getAttribute(Vl)||0);return l>=b});if(v.length)return g.insertBefore(c,v[v.length-1].nextSibling),c}g.insertBefore(c,m)}else g.appendChild(c);return c}function _f(o,t={}){let{styles:a}=t;return a||=li(ni(t)),a.find(n=>n.getAttribute(Kl(t))===o)}function Sf(o,t){const a=ii.get(o);if(!a||!Af(document,a)){const n=$l("",t),{parentNode:l}=n;ii.set(o,l),o.removeChild(n)}}function zf(o,t,a={}){const n=ni(a),l=li(n),d={...a,styles:l};Sf(n,d);const u=_f(t,d);if(u)return d.csp?.nonce&&u.nonce!==d.csp?.nonce&&(u.nonce=d.csp?.nonce),u.innerHTML!==o&&(u.innerHTML=o),u;const c=$l(o,d);return c.setAttribute(Kl(d),t),c}function Ql(o){return o?.getRootNode?.()}function Ef(o){return Ql(o)instanceof ShadowRoot}function Tf(o){return Ef(o)?Ql(o):null}var si={},kf=[],Rf=o=>{kf.push(o)};function xf(o,t){}function Pf(o,t){}function Lf(){si={}}function Zl(o,t,a){!t&&!si[a]&&(o(!1,a),si[a]=!0)}function qo(o,t){Zl(xf,o,t)}function Uf(o,t){Zl(Pf,o,t)}qo.preMessage=Rf,qo.resetWarned=Lf,qo.noteOnce=Uf;var Nf=ut.__commonJSMin(((o,t)=>{t.exports=d,t.exports.isMobile=d,t.exports.default=d;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function d(u){u||(u={});let c=u.ua;if(!c&&typeof navigator<"u"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;let g=a.test(c)&&!n.test(c)||!!u.tablet&&l.test(c);return!g&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(g=!0),g}})),cF=ut.__toESM(Nf()),fF=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
2
2
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
3
3
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
4
4
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/ce93456f.js",["require","exports","module","static/core/2ff39ddf.js","static/core/74875d47.js","vite/preload-helper"],function(a,g,z){const j=a("./2ff39ddf.js"),t=a("./74875d47.js");let f=a("vite/preload-helper");var h=3e3,S=/\.(woff2?|ttf|otf|eot)(\?|$)/i;function b(e){if(S.test(e.name))return"font";switch(e.initiatorType){case"script":return"script";case"link":case"css":return"style";case"fetch":case"xmlhttprequest":return"fetch";case"img":case"image":return"image";default:return"other"}}function _(e){return e.decodedBodySize===0&&e.transferSize===0?{transferred:null,fromCache:null}:{transferred:e.transferSize,fromCache:e.transferSize===0}}function d(e,r){return{name:e.name,kind:b(e),startedAt:t.toAbsolute(e.startTime,r),finishedAt:t.toAbsolute(e.responseEnd,r),..._(e)}}function y(e){if(!t.isDiagnosticsEnabled()||typeof PerformanceObserver>"u")return null;performance.setResourceTimingBufferSize(h);const{timeOrigin:r}=performance,n=new PerformanceObserver(s=>{s.getEntries().forEach(i=>{e(d(i,r))})});return n.observe({type:"resource",buffered:!0}),()=>n.disconnect()}var k="__emmDiagnostics__";function p(e){return typeof e=="object"&&e!==null}function o(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function R(e){if(!p(e))return null;const r=o(e.startTime),n=o(e.responseEnd),s=o(e.transferSize),i=o(e.decodedBodySize);return typeof e.name!="string"||typeof e.initiatorType!="string"||r===null||n===null||s===null||i===null?null:{name:e.name,initiatorType:e.initiatorType,startTime:r,responseEnd:n,transferSize:s,decodedBodySize:i}}function D(e){if(!p(e)||e.mark!=="__emmDiagnostics__")return null;if(e.type==="paint"||e.type==="settled"){const r=o(e.at);return r===null?null:{type:e.type,at:r}}if(e.type==="resources"){const r=o(e.timeOrigin);return r===null||!Array.isArray(e.items)?null:{type:"resources",records:e.items.map(R).filter(n=>n!==null).map(n=>d(n,r))}}return null}var c=null,m=null,u=!1,l=!1;function E(){return c?!0:(c=y(e=>t.getDiagnosticsStore().resources.push(e)),c!==null)}function w(){if(m!==null)return!0;if(!t.isDiagnosticsEnabled()||typeof window>"u")return!1;const e=r=>{const n=D(r.data);if(!n)return;const s=t.getDiagnosticsStore();if(n.type==="paint"){u||(u=!0,s.marks.push({phase:t.PHASES.canvasPainted,at:n.at}));return}if(n.type==="settled"){l||(l=!0,s.marks.push({phase:t.PHASES.canvasSettled,at:n.at}));return}n.records.forEach(i=>s.resources.push(i))};return window.addEventListener("message",e),m=()=>window.removeEventListener("message",e),!0}function v(){t.clearDiagnostics(),u=!1,l=!1}async function P(){if(!t.isDiagnosticsEnabled()||typeof window>"u")return!1;const{buildReportPayload:e,renderReportHtml:r}=await(0,f.__vitePreload)(async()=>{const{buildReportPayload:i,renderReportHtml:O}=await Promise.resolve().then(()=>a("./39d9efa2.js"));return{buildReportPayload:i,renderReportHtml:O}},void 0,{}.url),n=r(e(t.getDiagnosticsSnapshot(),t.getResourcesSnapshot())),s=window.open("","_blank");return s?(s.document.open(),s.document.write(n),s.document.close(),!0):!1}async function T(){const{buildReportPayload:e}=await(0,f.__vitePreload)(async()=>{const{buildReportPayload:r}=await Promise.resolve().then(()=>a("./39d9efa2.js"));return{buildReportPayload:r}},void 0,{}.url);return e(t.getDiagnosticsSnapshot(),t.getResourcesSnapshot())}function A(){if(!t.isDiagnosticsEnabled())return!1;t.drainLoaderMarks(),E(),w();const e=t.getBrandNamespace();return e?(e.diagnostics={snapshot:t.getDiagnosticsSnapshot,resources:t.getResourcesSnapshot,report:P,export:T,clear:v},!0):!1}g.installDiagnostics=A});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/d4513bf2.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/74875d47.js"],function(d,m,E){const j=d("./2ff39ddf.js"),y=d("./cf7d1dd7.js"),e=d("./74875d47.js");var R=20;async function h(t){const i=e.peekEmailDocuments(t),o=i?.current()?.get().serverId;if(!i||o==null)return e.err("unavailable","The document has no saved revisions yet.");const s=e.featureRefusal(t,"version_history","revision history");if(s)return s;const n={wpId:e.openDocumentWpId(t,o)};return e.isBlockSessionKey(i.sessionKey())?e.canReadBlockHistory(t)?{port:e.resolveBlockHistoryPort(t),documentId:String(o),context:n}:e.err("unavailable","Revision history is not available for this block."):await e.isEmailHistoryAvailable(t)?{port:e.resolveEmailHistoryPort(t),documentId:String(o),context:n}:e.planRefusal("Revision history is not available on the current plan.")}async function p({port:t,documentId:i,context:o},s){for(let n=1;n<=R;n+=1){const{revisions:r,hasMore:a}=await t.readRevisions(i,n,o),u=r.find(l=>String(l.id)===s);if(u)return u;if(!a)break}return e.err("notFound",`There is no revision "${s}": take an id from history.listRevisions.`)}async function b(t,i){const o=await p(t,i);if(e.isResult(o))return o;const{port:s,documentId:n,context:r}=t,a=o.html?.trim()?o:{...o,...await s.readRevision?.(n,i,r)};return a.html?.trim()?a:e.err("unavailable",`The revision "${i}" has no content to show.`)}function g(t){t.getInstance(y.STORE_ID)?.dispatch?.(e.markAppearanceNeedsUpdate())}function k(t,i){const o=t?e.tryParseISO(t):void 0;return o instanceof Date&&!Number.isNaN(o.getTime())?String(e.formatDate(o,i)):""}function w(t){const i=new WeakMap,o=s=>{const n=i.get(s)??h(t).then(r=>e.isResult(r)?r:p(r,s.revision));return i.set(s,n),n};return{"history.restoreRevision":{precheck:async s=>{if(!e.openDocument(t))return e.noDocument();if(e.isReadOnly(t))return e.readOnlyError();const n=await o(s);return e.isResult(n)?n:void 0},consent:async s=>{const{__:n}=e.agentTranslator(t),r=await o(s).catch(()=>{}),{date:a,modified:u,authorName:l,author:c,subject:f}=e.isResult(r)?{}:r??{},v=l??(typeof c=="string"&&!/^\d+$/.test(c)?c:"");return{title:n("Go back to an earlier version of the email"),...e.detailsOf({label:n("Date"),value:k(a??u,n)},{label:n("Author"),value:v},{label:n("Subject"),value:e.clip(f??"")})}}}}}function _(t){const i=s=>s.aborted?e.cancelledError():e.readOnlyRefusal(t),o=async(s,n)=>{const r=e.openDocument(t);if(!r)return e.noDocument();if(e.isReadOnly(t))return e.readOnlyError();const a=await h(t);if(e.isResult(a))return a;const u=i(n);if(u)return u;const l=await b(a,s);if(e.isResult(l))return l;const c=i(n);return c||(e.openDocument(t)===r?{document:r,loaded:l}:e.err("unavailable","The open document changed while the revision was loading."))};return{"history.restoreRevision":async({revision:s},n)=>{const r=await o(s,n.signal);if(e.isResult(r))return r;const{document:a,loaded:u}=r,l=e.fromRevision(u)?.attributes;l&&e.writeEmailAttributes(a,l),g(t);const c=a.get().version;e.replaceDocumentContent(a,e.peekEmailDocuments(t)?.history(),u.html,{undoable:!0}),a.get().version===c&&a.markUnsaved();const{date:f,modified:v,subject:D}=u;return{revision:s,date:f??v,subject:D,unsaved:!0}}}}m.agentRevisionGates=w,m.agentRevisionHandlers=_});
|
|
@@ -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/de3f9bdc.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/74875d47.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("./74875d47.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/e0282a25.js",["require","exports","module","static/core/2ff39ddf.js","static/core/74875d47.js","static/core/33588588.js"],function(i,u,h){const g=i("./2ff39ddf.js"),e=i("./74875d47.js");i("./33588588.js");var c=()=>e.err("unavailable","The template gallery is not available in the plugin.");function m(t){return e.peekEmailDocuments(t)?.current()?e.isReadOnly(t)?e.readOnlyError():c():e.noDocument()}function d(t,l){return e.resolveEmailPort(t).readEmail(l).catch(()=>{})}var p=t=>e.err("notFound",`There is no template "${t}" in the gallery; take an id from gallery.listTemplates.`);function y(t){const l=new WeakMap,o=r=>{const a=l.get(r)??d(t,r.template);return l.set(r,a),a};return{"document.applyTemplate":{precheck:async r=>{const a=m(t);if(a)return a;const n=await o(r);return n===void 0||n?.is_template?void 0:p(r.template)},consent:async r=>{const{__:a}=e.agentTranslator(t),n=await o(r);return{title:a("Replace the email content with a gallery template"),...e.detailsOf({label:a("Template").trim(),value:e.clip(n?.title??"")})}}}}}function f(t){return{"gallery.listTemplates":async({page:l})=>c(),"document.applyTemplate":async({template:l},o)=>{const r=m(t);if(r)return r;const a=e.peekEmailDocuments(t),n=a?.current();if(!a||!n)return e.noDocument();const s=await d(t,l);return o.signal.aborted?e.cancelledError():e.isReadOnly(t)?e.readOnlyError():s===void 0?e.err("unavailable","The template could not be loaded."):s?.is_template?e.peekEmailDocuments(t)?.current()!==n?e.err("unavailable","The open document changed while the template was loading."):s.html?(e.replaceDocumentContent(n,a.history(),s.html,{undoable:!0}),e.ok()):e.err("unavailable","The template has no content."):p(l)},"project.getStyles":async()=>e.err("unavailable","Project styles are not available in the plugin.")}}u.agentGalleryGates=y,u.agentGalleryHandlers=f});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/e35eca7d.js",["require","exports","module","static/core/74875d47.js"],function(S,d,V){const s=S("./74875d47.js");var h=[{fields:["border","mobileBorder"],plan:"block_border"},{fields:["borderRadius"],plan:"block_radius",types:["img","countdown","video","td","structure","group","column","table","button","div","carousel"]},{fields:["mobileBorderRadius","outlookRounding"],plan:"block_radius"},{fields:["boxShadow","mobileBoxShadow"],plan:"block_shadow"},{fields:["show","direction","mobileDirection"],plan:"block_visibility"},{fields:["ampShow"],plan:"export_amp"},{fields:["exportAsPicture","isContrastBlock"],plan:"block_to_image"},{fields:["mobileAlign","mobileBackgroundColor","mobileBackgroundImage","mobileBackgroundPositionX","mobileBackgroundPositionY","mobileBackgroundRepeat","mobileBackgroundSize","mobileBorder","mobileBorderRadius","mobileBoxShadow","mobileContentWidth","mobileDirection","mobileFontSize","mobileHeight","mobileLineHeight","mobilePadding","mobileTextAlign","mobileVerticalAlign","mobileWidth"],plan:"mobile_props"},{fields:["imgReplacer"],plan:"variables"}],A=[{parent:"carouselImages",fields:["imgReplacer"],plan:"variables"}],j=[{parent:"buttons",fields:["border"],plan:"block_border"},{parent:"buttons",fields:["borderRadius"],plan:"block_radius"},{parent:"cards",fields:["border"],plan:"block_border"},{parent:"cards",fields:["borderRadius"],plan:"block_radius"}],g={backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0,backgroundSize:!0,backgroundColorContent:!0,width:!0,responsive:!0},m={text:!0,headings:!0,links:!0,buttons:!0,block:!0,cards:!0},E=/fontfamily$/i,p=/[<>"{};\\]/,w="Safe Fonts",F="Google Fonts",P="Project Fonts";function y(e,t,r){for(const n of t){const i=n.fields.find(o=>o in r),a=i&&s.featureRefusal(e,n.plan,`the "${i}" field`);if(a)return a}}var f=e=>typeof e=="object"&&e!==null;function B(e,t,r){const n=Array.isArray(t)?t:[],i=e.some(a=>f(a)&&a.slideIndex!==void 0);return e.some((a,o)=>{const u=f(a)?a:{},l=n[i?u.slideIndex:o];return(u[r]??"")!==((f(l)?l[r]:void 0)??"")})}async function T(e,t,r){const n=A.filter(o=>Array.isArray(r[o.parent])).flatMap(o=>o.fields.flatMap(u=>{const l=s.featureRefusal(e,o.plan,`the "${o.parent}[].${u}" field`);return l?[{parent:o.parent,field:u,refusal:l}]:[]}));if(n.length===0)return;const i=await s.askCanvasElement(e,{op:"get",element:t});if(i.ok===!1)return i;const a=i.value?.settings??{};return n.find(({parent:o,field:u})=>B(r[o],a[o],u))?.refusal}function N(e,t,r){for(const n of t){const i=r[n.parent],a=f(i)?n.fields.find(u=>u in i):void 0,o=a&&s.featureRefusal(e,n.plan,`the "${n.parent}.${a}" field`);if(o)return o}}function c(e){return f(e)?Object.entries(e).flatMap(([t,r])=>E.test(t)?[r]:c(r)):[]}function C(e){return Array.isArray(e)&&e[0]===F&&e[1]!==P}function b(e,t,r){const n=c(t).filter(C),i=n.length?s.featureRefusal(e,"google_fonts","Google fonts"):void 0;if(!i)return;const a=c(r).map(o=>JSON.stringify(o));return n.every(o=>a.includes(JSON.stringify(o)))?void 0:i}var L=e=>!p.test(e)&&!e.includes("'");function v(e){return!p.test(e)&&e.split(",").every(t=>{const r=t.trim();return!r.includes("'")||/^'[^']*'$/.test(r)})}function $(e){return typeof e=="string"?v(e):Array.isArray(e)&&e.every((t,r)=>typeof t=="string"&&(r===1&&e[0]===w?v(t):L(t)))}function k(e){return c(e).every($)?void 0:s.err("invalidArgs",'A font must be a string or an array of strings; a font name must not hold < > " { } ; or \\, and a single quote only around a whole family name.')}function G(e,t){return t?s.featureRefusal(e,"preheader_editing","the preheader"):void 0}var I=["href","link","linkHref","src","iconSrc"],U=["backgroundImage","mobileBackgroundImage"],D=/--!?>|</;function R(e){return typeof e!="string"||s.isExecutableUrl(e)||D.test(e)}function x(e,t){if(!(!U.includes(e)||!Array.isArray(t)))return t.some(r=>r?.value!==void 0&&r.value!==null&&R(r.value))?`${e}[].value`:void 0}function O(e){if(f(e))for(const[t,r]of Object.entries(e)){if(I.includes(t)&&r!==null&&R(r))return t;const n=x(t,r)??O(r);if(n)return n}}function _(e){const t=O(e);return t?s.err("invalidArgs",`"${t}" must be a string, must not be a javascript:, vbscript: or data:text/html address and must not hold "<" or "-->".`):void 0}function M(e){return Object.fromEntries(Object.entries(e).filter(([t])=>Object.hasOwn(g,t)))}function Y(e){const t=Object.keys(e).find(r=>!Object.hasOwn(g,r));return t?s.err("invalidArgs",`"${t}" is not an email layout setting; take the fields from document.getSettings. Common styles go to document.setContentStyles.`):_(e)}function K(e){const t=Object.keys(m).join(", "),r=Object.entries(e).find(([n,i])=>!Object.hasOwn(m,n)||!f(i)||Array.isArray(i));return r?s.err("invalidArgs",`"${r[0]}" must be a group of common styles, an object; the groups are ${t}.`):void 0}function q(e,t,r){return K(t)??k(t)??N(e,j,t)??b(e,t,r)}async function z(e,t,r){if(!b(e,r,void 0))return;const n=await s.askCanvasElement(e,{op:"get",element:t});return n.ok===!1?n:b(e,r,n.value?.settings)}async function H(e,t,r){const n=h.filter(l=>l.fields.some(J=>J in r)),i=y(e,n.filter(l=>!l.types),r)??await T(e,t,r)??await z(e,t,r),a=n.filter(l=>l.types);if(i||a.length===0)return i;const o=await s.askCanvasElement(e,{op:"get",element:t});if(o.ok===!1)return o;const u=o.value?.type??"";return y(e,a.filter(l=>l.types?.includes(u)),r)}Object.defineProperty(d,"closedFieldRefusal",{enumerable:!0,get:function(){return H}}),Object.defineProperty(d,"contentStylesRefusal",{enumerable:!0,get:function(){return q}}),Object.defineProperty(d,"editableLayoutSettings",{enumerable:!0,get:function(){return M}}),Object.defineProperty(d,"fontNameRefusal",{enumerable:!0,get:function(){return k}}),Object.defineProperty(d,"layoutSettingsRefusal",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(d,"preheaderRefusal",{enumerable:!0,get:function(){return G}}),Object.defineProperty(d,"unsafeUrlRefusal",{enumerable:!0,get:function(){return _}})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/e37ba502.js",["require","exports","module","static/core/2ff39ddf.js","static/core/74875d47.js"],function(me,O,hr){const H=me("./2ff39ddf.js"),N=me("./74875d47.js");var it=/\n/g;function at(e){const n=[...e.matchAll(it)].map((r=>r.index||0));n.unshift(-1);const t=ee(n,0,n.length);return r=>de(t,r)}function ee(e,n,t){if(t-n==1)return{offset:e[n],index:n+1};const r=Math.ceil((n+t)/2),s=ee(e,n,r),i=ee(e,r,t);return{offset:s.offset,low:s,high:i}}function de(e,n){return(function(t){return Object.prototype.hasOwnProperty.call(t,"index")})(e)?{line:e.index,column:n-e.offset}:de(e.high.offset<n?e.high:e.low,n)}function ge(e,n="",t={}){const r=typeof n!="string"?n:t,s=typeof n=="string"?n:"",i=e.map(ot),a=!!r.lineNumbers;return function(o,c=0){const l=a?at(o):()=>({line:0,column:0});let h=c;const g=[];e:for(;h<o.length;){let y=!1;for(const p of i){p.regex.lastIndex=h;const k=p.regex.exec(o);if(k&&k[0].length>0){if(!p.discard){const v=l(h),B=typeof p.replace=="string"?k[0].replace(new RegExp(p.regex.source,p.regex.flags),p.replace):k[0];g.push({state:s,name:p.name,text:B,offset:h,len:k[0].length,line:v.line,column:v.column})}if(h=p.regex.lastIndex,y=!0,p.push){const v=p.push(o,h);g.push(...v.tokens),h=v.offset}if(p.pop)break e;break}}if(!y)break}return{tokens:g,offset:h,complete:o.length<=h}}}function ot(e,n){return{...e,regex:ct(e,n)}}function ct(e,n){if(e.name.length===0)throw new Error(`Rule #${n} has empty name, which is not allowed.`);if((function(t){return Object.prototype.hasOwnProperty.call(t,"regex")})(e))return(function(t){if(t.global)throw new Error(`Regular expression /${t.source}/${t.flags} contains the global flag, which is not allowed.`);return t.sticky?t:new RegExp(t.source,t.flags+"y")})(e.regex);if((function(t){return Object.prototype.hasOwnProperty.call(t,"str")})(e)){if(e.str.length===0)throw new Error(`Rule #${n} ("${e.name}") has empty "str" property, which is not allowed.`);return new RegExp(ke(e.str),"y")}return new RegExp(ke(e.name),"y")}function ke(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function I(e,n){return(t,r)=>{let s=r,i;return r<t.tokens.length?(i=e(t.tokens[r],t,r),i!==void 0&&s++):n?.(t,r),i===void 0?{matched:!1}:{matched:!0,position:s,value:i}}}function te(e,n){return e.matched?{matched:!0,position:e.position,value:n(e.value,e.position)}:e}function U(e,n){return e.matched?n(e):e}function L(e,n){return(t,r)=>te(e(t,r),(s,i)=>n(s,t,r,i))}function q(e,n){return(t,r)=>{const s=e(t,r);return s.matched?s:{matched:!0,position:r,value:n}}}function F(...e){return(n,t)=>{for(const r of e){const s=r(n,t);if(s.matched)return s}return{matched:!1}}}function W(e,n){return(t,r)=>{const s=e(t,r);return s.matched?s:n(t,r)}}function lt(e,n){return(t,r)=>{const s=[];let i=!0;do{const a=e(t,r);a.matched&&n(a.value,s.length+1,t,r,a.position)?(s.push(a.value),r=a.position):i=!1}while(i);return{matched:!0,position:r,value:s}}}function ne(e){return lt(e,()=>!0)}function ut(e){return w(e,ne(e),(n,t)=>[n,...t])}function w(e,n,t){return(r,s)=>U(e(r,s),i=>te(n(r,i.position),(a,o)=>t(i.value,a,r,s,o)))}function ft(e,n){return w(e,n,t=>t)}function Le(e,n){return w(e,n,(t,r)=>r)}function re(e,n,t,r){return(s,i)=>U(e(s,i),a=>U(n(s,a.position),o=>te(t(s,o.position),(c,l)=>r(a.value,o.value,c,s,i,l))))}function we(e,n,t){return re(e,n,t,(r,s)=>s)}function ht(...e){return(n,t)=>{const r=[];let s=t;for(const i of e){const a=i(n,s);if(a.matched)r.push(a.value),s=a.position;else return{matched:!1}}return{matched:!0,position:s,value:r}}}function pt(...e){return mt(ht(...e))}function mt(e){return L(e,n=>n.flatMap(t=>t))}function dt(e,n){return(t,r)=>{let s=!0,i=e,a=r;do{const o=n(i,t,a)(t,a);o.matched?(i=o.value,a=o.position):s=!1}while(s);return{matched:!0,position:a,value:i}}}function gt(e,n,t){return dt(e,r=>L(n,(s,i,a,o)=>t(r,s,i,a,o)))}function xe(e,n,t){return kt(e,r=>gt(r,w(n,t,(s,i)=>[s,i]),(s,[i,a])=>i(s,a)))}function kt(e,n){return(t,r)=>U(e(t,r),s=>n(s.value,t,r,s.position)(t,s.position))}var Lt="(?:[ \\t\\r\\n\\f]*)",ve="(?:\\n|\\r\\n|\\r|\\f)",K="[^\\x00-\\x7F]",M="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",j="(?:\\\\[^\\n\\r\\f0-9a-f])",wt=`(?:[_a-z]|${K}|${M}|${j})`,ye=`(?:[_a-z0-9-]|${K}|${M}|${j})`,xt=`(?:${ye}+)`,vt=`(?:[-]?${wt}${ye}*)`,yt=`'([^\\n\\r\\f\\\\']|\\\\${ve}|${K}|${M}|${j})*'`,Bt=`"([^\\n\\r\\f\\\\"]|\\\\${ve}|${K}|${M}|${j})*"`,_t=ge([{name:"ws",regex:new RegExp(Lt)},{name:"hash",regex:new RegExp(`#${xt}`,"i")},{name:"ident",regex:new RegExp(vt,"i")},{name:"str1",regex:new RegExp(yt,"i")},{name:"str2",regex:new RegExp(Bt,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),bt=ge([{name:"unicode",regex:new RegExp(M,"i")},{name:"escape",regex:new RegExp(j,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function Be([e,n,t],[r,s,i]){return[e+r,n+s,t+i]}function St(e){return e.reduce(Be,[0,0,0])}var It=I(e=>e.name==="unicode"?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0),Nt=I(e=>e.name==="escape"?e.text.slice(1):void 0),Wt=I(e=>e.name==="any"?e.text:void 0),Et=L(ne(F(It,Nt,Wt)),e=>e.join(""));function se(e){const n=bt(e);return Et({tokens:n.tokens,options:void 0},0).value}function d(e){return I(n=>n.name===e?!0:void 0)}var ie=I(e=>e.name==="ws"?null:void 0),ae=q(ie,null);function A(e){return we(ae,e,ae)}var D=I(e=>e.name==="ident"?se(e.text):void 0),Tt=I(e=>e.name==="hash"?se(e.text.slice(1)):void 0),Ct=I(e=>e.name.startsWith("str")?se(e.text.slice(1,-1)):void 0),_e=ft(q(D,""),d("|")),oe=W(w(_e,D,(e,n)=>({name:n,namespace:e})),L(D,e=>({name:e,namespace:null}))),At=W(w(_e,d("*"),e=>({type:"universal",namespace:e,specificity:[0,0,0]})),L(d("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),Pt=L(oe,({name:e,namespace:n})=>({type:"tag",name:e,namespace:n,specificity:[0,0,1]})),$t=w(d("."),D,(e,n)=>({type:"class",name:n,specificity:[0,1,0]})),Rt=L(Tt,e=>({type:"id",name:e,specificity:[1,0,0]})),be=I(e=>{if(e.name==="ident"){if(e.text==="i"||e.text==="I")return"i";if(e.text==="s"||e.text==="S")return"s"}}),Ot=W(w(Ct,q(Le(ae,be),null),(e,n)=>({value:e,modifier:n})),w(D,q(Le(ie,be),null),(e,n)=>({value:e,modifier:n}))),Mt=F(L(d("="),()=>"="),w(d("~"),d("="),()=>"~="),w(d("|"),d("="),()=>"|="),w(d("^"),d("="),()=>"^="),w(d("$"),d("="),()=>"$="),w(d("*"),d("="),()=>"*=")),jt=re(d("["),A(oe),d("]"),(e,{name:n,namespace:t})=>({type:"attrPresence",name:n,namespace:t,specificity:[0,1,0]})),Dt=we(d("["),re(A(oe),Mt,A(Ot),({name:e,namespace:n},t,{value:r,modifier:s})=>({type:"attrValue",name:e,namespace:n,matcher:t,value:r,modifier:s,specificity:[0,1,0]})),d("]")),Vt=W(jt,Dt),Ht=W(At,Pt),Se=F(Rt,$t,Vt),Ie=L(W(pt(Ht,ne(Se)),ut(Se)),e=>({type:"compound",list:e,specificity:St(e.map(n=>n.specificity))})),Ut=F(L(d(">"),()=>">"),L(d("+"),()=>"+"),L(d("~"),()=>"~"),w(d("|"),d("|"),()=>"||")),qt=W(A(Ut),L(ie,()=>" ")),ce=xe(Ie,L(qt,e=>(n,t)=>({type:"compound",list:[...t.list,{type:"combinator",combinator:e,left:n,specificity:n.specificity}],specificity:Be(n.specificity,t.specificity)})),Ie),pr=xe(L(ce,e=>({type:"list",list:[e]})),L(A(d(",")),()=>(e,n)=>({type:"list",list:[...e.list,n]})),ce);function Ft(e,n){if(!(typeof n=="string"||n instanceof String))throw new Error("Expected a selector string. Actual input is not a string!");const t=_t(n);if(!t.complete)throw new Error(`The input "${n}" was only partially tokenized, stopped at offset ${t.offset}!
|
|
2
2
|
`+Ne(n,t.offset));const r=A(e)({tokens:t.tokens,options:void 0},0);if(!r.matched)throw new Error(`No match for "${n}" input!`);if(r.position<t.tokens.length){const s=t.tokens[r.position];throw new Error(`The input "${n}" was only partially parsed, stopped at offset ${s.offset}!
|
|
3
3
|
`+Ne(n,s.offset,s.len))}return r.value}function Ne(e,n,t=1){return`${e.replace(/(\t)|(\r)|(\n)/g,(r,s,i)=>s?"␉":i?"␍":"␊")}
|
|
4
4
|
${"".padEnd(n)}${"^".repeat(t)}`}function Kt(e){return Ft(ce,e)}function b(e){if(!e.type)throw new Error("This is not an AST node.");switch(e.type){case"universal":return z(e.namespace)+"*";case"tag":return z(e.namespace)+P(e.name);case"class":return"."+P(e.name);case"id":return"#"+P(e.name);case"attrPresence":return`[${z(e.namespace)}${P(e.name)}]`;case"attrValue":return`[${z(e.namespace)}${P(e.name)}${e.matcher}"${zt(e.value)}"${e.modifier?e.modifier:""}]`;case"combinator":return b(e.left)+e.combinator;case"compound":return e.list.reduce((n,t)=>t.type==="combinator"?b(t)+n:n+b(t),"");case"list":return e.list.map(b).join(",")}}function z(e){return e||e===""?P(e)+"|":""}function X(e){return`\\${e.codePointAt(0).toString(16)} `}function P(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(n,t,r,s,i,a,o,c)=>t?X(t):r?"-"+X(r.slice(1)):s?"\\-":i||(a?"�":o?X(o):"\\"+c))}function zt(e){return e.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(n,t,r,s,i)=>t?'\\"':r?"\\\\":s?"�":X(i))}function G(e){if(!e.type)throw new Error("This is not an AST node.");switch(e.type){case"compound":e.list.forEach(G),e.list.sort((n,t)=>Te(We(n),We(t)));break;case"combinator":G(e.left);break;case"list":e.list.forEach(G),e.list.sort((n,t)=>b(n)<b(t)?-1:1)}return e}function We(e){switch(e.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,e.name];case"attrPresence":return[4,b(e)];case"attrValue":return[5,b(e)];case"combinator":return[15,b(e)]}}function Ee(e,n){return Te(e,n)}function Te(e,n){if(!Array.isArray(e)||!Array.isArray(n))throw new Error("Arguments must be arrays.");const t=e.length<n.length?e.length:n.length;for(let r=0;r<t;r++)if(e[r]!==n[r])return e[r]<n[r]?-1:1;return e.length-n.length}var Ce=class{constructor(e){this.branches=$(Xt(e))}build(e){return e(this.branches)}};function Xt(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++){const[s,i]=e[r],a=Gt(Kt(s));t[r]={ast:a,terminal:{type:"terminal",valueContainer:{index:r,value:i,specificity:a.specificity}}}}return t}function Gt(e){return Ae(e),G(e),e}function Ae(e){const n=[];e.list.forEach(t=>{switch(t.type){case"class":n.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:t.specificity,type:"attrValue",value:t.name});break;case"id":n.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:t.specificity,type:"attrValue",value:t.name});break;case"combinator":Ae(t.left),n.push(t);break;case"universal":break;default:n.push(t)}}),e.list=n}function $(e){const n=[];for(;e.length;){const t=Oe(e,a=>!0,Pe),{matches:r,nonmatches:s,empty:i}=Yt(e,t);e=s,r.length&&n.push(Zt(t,r)),i.length&&n.push(...Jt(i))}return n}function Jt(e){const n=[];for(const t of e){const r=t.terminal;if(r.type==="terminal")n.push(r);else{const{matches:s,rest:i}=rn(r.cont,a=>a.type==="terminal");s.forEach(a=>n.push(a)),i.length&&(r.cont=i,n.push(r))}}return n}function Yt(e,n){const t=[],r=[],s=[];for(const i of e){const a=i.ast.list;a.length?(a.some(o=>Pe(o)===n)?t:r).push(i):s.push(i)}return{matches:t,nonmatches:r,empty:s}}function Pe(e){switch(e.type){case"attrPresence":return`attrPresence ${e.name}`;case"attrValue":return`attrValue ${e.name}`;case"combinator":return`combinator ${e.combinator}`;default:return e.type}}function Zt(e,n){if(e==="tag")return Qt(n);if(e.startsWith("attrValue "))return tn(e.substring(10),n);if(e.startsWith("attrPresence "))return en(e.substring(13),n);if(e==="combinator >")return $e(">",n);if(e==="combinator +")return $e("+",n);throw new Error(`Unsupported selector kind: ${e}`)}function Qt(e){const n=le(e,t=>t.type==="tag",t=>t.name);return{type:"tagName",variants:Object.entries(n).map(([t,r])=>({type:"variant",value:t,cont:$(r.items)}))}}function en(e,n){for(const t of n)Re(t,r=>r.type==="attrPresence"&&r.name===e);return{type:"attrPresence",name:e,cont:$(n)}}function tn(e,n){const t=le(n,s=>s.type==="attrValue"&&s.name===e,s=>`${s.matcher} ${s.modifier||""} ${s.value}`),r=[];for(const s of Object.values(t)){const i=s.oneSimpleSelector,a=nn(i),o=$(s.items);r.push({type:"matcher",matcher:i.matcher,modifier:i.modifier,value:i.value,predicate:a,cont:o})}return{type:"attrValue",name:e,matchers:r}}function nn(e){if(e.modifier==="i"){const n=e.value.toLowerCase();switch(e.matcher){case"=":return t=>n===t.toLowerCase();case"~=":return t=>t.toLowerCase().split(/[ \t]+/).includes(n);case"^=":return t=>t.toLowerCase().startsWith(n);case"$=":return t=>t.toLowerCase().endsWith(n);case"*=":return t=>t.toLowerCase().includes(n);case"|=":return t=>{const r=t.toLowerCase();return n===r||r.startsWith(n)&&r[n.length]==="-"}}}else{const n=e.value;switch(e.matcher){case"=":return t=>n===t;case"~=":return t=>t.split(/[ \t]+/).includes(n);case"^=":return t=>t.startsWith(n);case"$=":return t=>t.endsWith(n);case"*=":return t=>t.includes(n);case"|=":return t=>n===t||t.startsWith(n)&&t[n.length]==="-"}}}function $e(e,n){const t=le(n,s=>s.type==="combinator"&&s.combinator===e,s=>b(s.left)),r=[];for(const s of Object.values(t)){const i=$(s.items),a=s.oneSimpleSelector.left;r.push({ast:a,terminal:{type:"popElement",cont:i}})}return{type:"pushElement",combinator:e,cont:$(r)}}function le(e,n,t){const r={};for(;e.length;){const s=Oe(e,n,t),i=h=>n(h)&&t(h)===s,a=h=>h.ast.list.some(i),{matches:o,rest:c}=sn(e,a);let l=null;for(const h of o){const g=Re(h,i);l||(l=g)}if(l==null)throw new Error("No simple selector is found.");r[s]={oneSimpleSelector:l,items:o},e=c}return r}function Re(e,n){const t=e.ast.list,r=new Array(t.length);let s=-1;for(let a=t.length;a-- >0;)n(t[a])&&(r[a]=!0,s=a);if(s==-1)throw new Error("Couldn't find the required simple selector.");const i=t[s];return e.ast.list=t.filter((a,o)=>!r[o]),i}function Oe(e,n,t){const r={};for(const a of e){const o={};for(const c of a.ast.list.filter(n))o[t(c)]=!0;for(const c of Object.keys(o))r[c]?r[c]++:r[c]=1}let s="",i=0;for(const a of Object.entries(r))a[1]>i&&(s=a[0],i=a[1]);return s}function rn(e,n){const t=[],r=[];for(const s of e)n(s)?t.push(s):r.push(s);return{matches:t,rest:r}}function sn(e,n){const t=[],r=[];for(const s of e)n(s)?t.push(s):r.push(s);return{matches:t,rest:r}}var an=class{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,n=!1){const t=this.f(e),r=t.length;if(r===0)return null;if(r===1)return t[0].value;const s=n?on:cn;let i=t[0];for(let a=1;a<r;a++){const o=t[a];s(i,o)&&(i=o)}return i.value}};function on(e,n){const t=Ee(n.specificity,e.specificity);return t>0||t===0&&n.index<e.index}function cn(e,n){const t=Ee(n.specificity,e.specificity);return t>0||t===0&&n.index>e.index}function Me(e){return new an(R(e))}function R(e){const n=e.map(ln);return(t,...r)=>n.flatMap(s=>s(t,...r))}function ln(e){switch(e.type){case"terminal":return()=>[e.valueContainer];case"tagName":return un(e);case"attrValue":return hn(e);case"attrPresence":return fn(e);case"pushElement":return pn(e);case"popElement":return mn(e);default:return()=>[]}}function un(e){const n={};for(const t of e.variants)n[t.value.toLowerCase()]=R(t.cont);return(t,...r)=>{const s=t.tagName?.toLowerCase(),i=s&&n[s];return i?i(t,...r):[]}}function fn(e){const n=e.name,t=R(e.cont);return(r,...s)=>r.hasAttribute(n)?t(r,...s):[]}function hn(e){const n=[];for(const r of e.matchers){const s=r.predicate,i=R(r.cont);n.push((a,o,...c)=>s(a)?i(o,...c):[])}const t=e.name;return(r,...s)=>{const i=r.getAttribute(t);return i!==null?n.flatMap(a=>a(i,r,...s)):[]}}function pn(e){const n=R(e.cont),t=e.combinator==="+"?dn:gn;return(r,...s)=>{const i=t(r);return i?n(i,r,...s):[]}}function mn(e){const n=R(e.cont);return(t,r,...s)=>n(r,...s)}function dn(e){let n=e.previousSibling;for(;n&&n.nodeType!==Node.ELEMENT_NODE;)n=n.previousSibling;return n}function gn(e){return e.parentElement}var kn=H.__commonJSMin(((e,n)=>{var t=function(f){return r(f)&&!s(f)};function r(u){return!!u&&typeof u=="object"}function s(u){var f=Object.prototype.toString.call(u);return f==="[object RegExp]"||f==="[object Date]"||a(u)}var i=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function a(u){return u.$$typeof===i}function o(u){return Array.isArray(u)?[]:{}}function c(u,f){return f.clone!==!1&&f.isMergeableObject(u)?B(o(u),u,f):u}function l(u,f,m){return u.concat(f).map(function(_){return c(_,m)})}function h(u,f){if(!f.customMerge)return B;var m=f.customMerge(u);return typeof m=="function"?m:B}function g(u){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(u).filter(function(f){return Object.propertyIsEnumerable.call(u,f)}):[]}function y(u){return Object.keys(u).concat(g(u))}function p(u,f){try{return f in u}catch{return!1}}function k(u,f){return p(u,f)&&!(Object.hasOwnProperty.call(u,f)&&Object.propertyIsEnumerable.call(u,f))}function v(u,f,m){var _={};return m.isMergeableObject(u)&&y(u).forEach(function(x){_[x]=c(u[x],m)}),y(f).forEach(function(x){k(u,x)||(p(u,x)&&m.isMergeableObject(f[x])?_[x]=h(x,m)(u[x],f[x],m):_[x]=c(f[x],m))}),_}function B(u,f,m){m=m||{},m.arrayMerge=m.arrayMerge||l,m.isMergeableObject=m.isMergeableObject||t,m.cloneUnlessOtherwiseSpecified=c;var _=Array.isArray(f);return _!==Array.isArray(u)?c(f,m):_?m.arrayMerge(u,f,m):v(u,f,m)}B.all=function(f,m){if(!Array.isArray(f))throw new Error("first argument should be an array");return f.reduce(function(_,x){return B(_,x,m)},{})};var fr=B;n.exports=fr})),je=H.__toESM(kn());function ue(e,n,t=()=>{}){if(e===void 0){const r=function(...s){return n(r,...s)};return r}return e>=0?function(...r){return n(ue(e-1,n,t),...r)}:t}function De(e,n){let t=0,r=e.length;for(;t<r&&e[t]===n;)++t;for(;r>t&&e[r-1]===n;)--r;return t>0||r<e.length?e.substring(t,r):e}function Ln(e,n){let t=e.length;for(;t>0&&e[t-1]===n;)--t;return t<e.length?e.substring(0,t):e}function wn(e){return e.replace(/[\s\S]/g,n=>"\\u"+n.charCodeAt().toString(16).padStart(4,"0"))}function Ve(e,n){const t=new Map;for(let r=e.length;r-- >0;){const s=e[r],i=n(s);t.set(i,t.has(i)?(0,je.default)(s,t.get(i),{arrayMerge:xn}):s)}return[...t.values()].reverse()}var xn=(e,n,t)=>[...n];function J(e,n){for(const t of n){if(!e)return;e=e[t]}return e}function He(e,n="a",t=26){const r=[];do e-=1,r.push(e%t),e=e/t>>0;while(e>0);const s=n.charCodeAt(0);return r.reverse().map(i=>String.fromCharCode(s+i)).join("")}var fe=["I","X","C","M"],Ue=["V","L","D"];function qe(e){return[...e+""].map(n=>+n).reverse().map((n,t)=>n%5<4?(n<5?"":Ue[t])+fe[t].repeat(n%5):fe[t]+(n<5?Ue[t]:fe[t+1])).reverse().join("")}var Fe=class{constructor(e,n=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=n||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=J(e,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=J(e,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,n=!1){this.nextLineAvailableChars<=0&&!n&&this.startNewLine();const t=this.nextLineWords.length===0,r=e.length+(t?0:1);if(r<=this.nextLineAvailableChars||n)this.nextLineWords.push(e),this.nextLineAvailableChars-=r;else{const[s,...i]=this.splitLongWord(e);t||this.startNewLine(),this.nextLineWords.push(s),this.nextLineAvailableChars-=s.length;for(const a of i)this.startNewLine(),this.nextLineWords.push(a),this.nextLineAvailableChars-=a.length}}popWord(){const e=this.nextLineWords.pop();if(e!==void 0){const n=this.nextLineWords.length===0,t=e.length+(n?0:1);this.nextLineAvailableChars+=t}return e}concatWord(e,n=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,n),this.wordBreakOpportunity=!1;else{const t=this.popWord();this.pushWord(t?t.concat(e):e,n)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(" ")).join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/f4b9148a.js",["require","exports","module","static/core/2ff39ddf.js","static/core/74875d47.js"],function(i,u,h){const b=i("./2ff39ddf.js"),a=i("./74875d47.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});
|
|
@@ -7,4 +7,4 @@ Minimum version required to store current data is: `+h+`.
|
|
|
7
7
|
`);let d=I(y,A,N),p=new t(s.getSymbolSize(y));return v(p,y),T(p),x(p,y),M(p,A,0),y>=7&&C(p,y),B(p,d),isNaN(f)&&(f=n.getBestMask(p,M.bind(null,p,A))),n.applyMask(f,p),M(p,A,f),{modules:p,version:y,errorCorrectionLevel:A,maskPattern:f,segments:N}}o.create=function(g,y){if(g===void 0||g==="")throw Error("No input text");let A=a.M,f,N;return y!==void 0&&(A=a.from(y.errorCorrectionLevel,a.M),f=E.from(y.version),N=n.from(y.maskPattern),y.toSJISFunc&&s.setToSJISFunction(y.toSJISFunc)),R(g,f,A,N)}})),$=P.s((o=>{function s(a){if(typeof a=="number"&&(a=a.toString()),typeof a!="string")throw Error("Color should be defined as hex string");let r=a.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw Error("Invalid hex color: "+a);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(e){return[e,e]}))),r.length===6&&r.push("F","F");let t=parseInt(r.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+r.slice(0,6).join("")}}o.getOptions=function(a){a||={},a.color||(a.color={});let r=a.margin===void 0||a.margin===null||a.margin<0?4:a.margin,t=a.width&&a.width>=21?a.width:void 0,e=a.scale||4;return{width:t,scale:t?4:e,margin:r,color:{dark:s(a.color.dark||"#000000ff"),light:s(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},o.getScale=function(a,r){return r.width&&r.width>=a+r.margin*2?r.width/(a+r.margin*2):r.scale},o.getImageWidth=function(a,r){let t=o.getScale(a,r);return Math.floor((a+r.margin*2)*t)},o.qrToImageData=function(a,r,t){let e=r.modules.size,i=r.modules.data,n=o.getScale(e,t),u=Math.floor((e+t.margin*2)*n),c=t.margin*n,E=[t.color.light,t.color.dark];for(let w=0;w<u;w++)for(let l=0;l<u;l++){let m=(w*u+l)*4,v=t.color.light;if(w>=c&&l>=c&&w<u-c&&l<u-c){let T=Math.floor((w-c)/n),x=Math.floor((l-c)/n);v=E[+!!i[T*e+x]]}a[m++]=v.r,a[m++]=v.g,a[m++]=v.b,a[m]=v.a}}})),Et=P.s((o=>{var s=$();function a(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||={},e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}function r(){try{return document.createElement("canvas")}catch{throw Error("You need to specify a canvas element")}}o.render=function(t,e,i){let n=i,u=e;n===void 0&&(!e||!e.getContext)&&(n=e,e=void 0),e||(u=r()),n=s.getOptions(n);let c=s.getImageWidth(t.modules.size,n),E=u.getContext("2d"),w=E.createImageData(c,c);return s.qrToImageData(w.data,t,n),a(E,u,c),E.putImageData(w,0,0),u},o.renderToDataURL=function(t,e,i){let n=i;n===void 0&&(!e||!e.getContext)&&(n=e,e=void 0),n||={};let u=o.render(t,e,n),c=n.type||"image/png",E=n.rendererOpts||{};return u.toDataURL(c,E.quality)}})),wt=P.s((o=>{var s=$();function a(e,i){let n=e.a/255,u=i+'="'+e.hex+'"';return n<1?u+" "+i+'-opacity="'+n.toFixed(2).slice(1)+'"':u}function r(e,i,n){let u=e+i;return n!==void 0&&(u+=" "+n),u}function t(e,i,n){let u="",c=0,E=!1,w=0;for(let l=0;l<e.length;l++){let m=Math.floor(l%i),v=Math.floor(l/i);!m&&!E&&(E=!0),e[l]?(w++,l>0&&m>0&&e[l-1]||(u+=E?r("M",m+n,.5+v+n):r("m",c,0),c=0,E=!1),m+1<i&&e[l+1]||(u+=r("h",w),w=0)):c++}return u}o.render=function(e,i,n){let u=s.getOptions(i),c=e.modules.size,E=e.modules.data,w=c+u.margin*2,l=u.color.light.a?"<path "+a(u.color.light,"fill")+' d="M0 0h'+w+"v"+w+'H0z"/>':"",m="<path "+a(u.color.dark,"stroke")+' d="'+t(E,c,u.margin)+'"/>',v='viewBox="0 0 '+w+" "+w+'"',T='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+v+' shape-rendering="crispEdges">'+l+m+`</svg>
|
|
8
8
|
`;return typeof n=="function"&&n(null,T),T}})),yt=P.s((o=>{var s=tt(),a=vt(),r=Et(),t=wt();function e(i,n,u,c,E){let w=[].slice.call(arguments,1),l=w.length,m=typeof w[l-1]=="function";if(!m&&!s())throw Error("Callback required as last argument");if(m){if(l<2)throw Error("Too few arguments provided");l===2?(E=u,u=n,n=c=void 0):l===3&&(n.getContext&&E===void 0?(E=c,c=void 0):(E=c,c=u,u=n,n=void 0))}else{if(l<1)throw Error("Too few arguments provided");return l===1?(u=n,n=c=void 0):l===2&&!n.getContext&&(c=u,u=n,n=void 0),new Promise(function(v,T){try{v(i(a.create(u,c),n,c))}catch(x){T(x)}})}try{let v=a.create(u,c);E(null,i(v,n,c))}catch(v){E(v)}}o.create=a.create,o.toCanvas=e.bind(null,r.render),o.toDataURL=e.bind(null,r.renderToDataURL),o.toString=e.bind(null,function(i,n,u){return t.render(i,u)})})),At=yt();W.default=At});
|
|
9
9
|
|
|
10
|
-
__useblocks__.define("static/core/
|
|
10
|
+
__useblocks__.define("static/core/f4e70f7f.js",["require","exports","module","static/core/2ff39ddf.js","static/core/c6114314.js","static/core/ff7d14e8.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(m,Z,ve){const G=m("./2ff39ddf.js"),P=m("./c6114314.js"),y=m("./ff7d14e8.js");let o=m("react"),F=G.__toESM(o,1);o=G.__toESM(o);let r=m("react/jsx-runtime"),c=m("__delivery__/libs"),N=m("vite/preload-helper");var S=({size:C=24,color:R="currentColor",...s})=>F.createElement("svg",{viewBox:"0 0 24 24",width:C,height:C,stroke:R,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},F.createElement("path",{d:"m14 10 7-7m0 0h-6m6 0v6m-11 5-7 7m0 0h6m-6 0v-6"}));S.displayName="Expand01";var O=P.or(),t={"em-filemanager":"em-filemanager",emFilemanager:"em-filemanager",root:"root",controls:"controls",segmentedControl:"segmentedControl",sizeRow:"sizeRow",sizeRowLabel:"sizeRowLabel",sizeInputNumber:"sizeInputNumber",sizeSuffix:"sizeSuffix",colorGrid:"colorGrid",colorCell:"colorCell",colorCellLabel:"colorCellLabel",colorPickerFull:"colorPickerFull",bgExtras:"bgExtras",bgWarning:"bgWarning",previewSection:"previewSection",previewTitle:"previewTitle",previewWrap:"previewWrap",scanLine:"scanLine",scanLineBarcode:"scanLineBarcode",previewWrapBarcode:"previewWrapBarcode",previewCanvas:"previewCanvas",previewCanvasBarcode:"previewCanvasBarcode",actions:"actions"},z=80,D=600,ee=200,E=24,q=130,ae=60,re=280,te=72;function oe(){return typeof window>"u"?2:Math.min(3,Math.max(2,window.devicePixelRatio||2))}var le=({customRequest:C,state:R,setState:s})=>{let{t:l}=P.Rn(),{options:ie}=P.V(),Q=ie?.config?.iconStrokeWidth??1.75,V=(0,o.useRef)(null),{mode:d,rawText:x,foregroundHex:p,backgroundHex:f,transparentBackground:g,qrSidePx:j,barcodeBarHeightPx:k}=R,ne=(0,o.useCallback)(e=>s(a=>({...a,mode:e})),[s]),se=(0,o.useCallback)(e=>s(a=>({...a,rawText:e})),[s]),ce=(0,o.useCallback)(e=>s(a=>({...a,foregroundHex:e})),[s]),de=(0,o.useCallback)(e=>s(a=>({...a,backgroundHex:e})),[s]),he=(0,o.useCallback)(e=>s(a=>({...a,transparentBackground:e})),[s]),ue=(0,o.useCallback)(e=>s(a=>({...a,qrSidePx:e})),[s]),me=(0,o.useCallback)(e=>s(a=>({...a,barcodeBarHeightPx:e})),[s]),[T,xe]=(0,o.useState)(x),[$,b]=(0,o.useState)(null),[L,U]=(0,o.useState)(!1),_=(0,o.useMemo)(()=>(0,O.debounce)(e=>xe(e),300),[]);(0,o.useEffect)(()=>(_(x),()=>{_.cancel()}),[x,_]);let M=g?"#00000000":f,J=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./8daf15a4.js")).then(i=>y.l(i.default)),void 0,{}.url)).default,h=a.trim(),u=Math.min(re,Math.max(z,j));if(!h){e.width=u,e.height=u;let i=e.getContext("2d");i&&i.clearRect(0,0,e.width,e.height);return}e.width=u,e.height=u,await n.toCanvas(e,h,{width:u,margin:2,color:{dark:p,light:M}})},[p,M,j]),K=(0,o.useCallback)(async(e,a)=>{let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./a6303cb2.js")).then(v=>y.l(v.default)),void 0,{}.url)).default,h=a.trim(),u=g?"rgba(0,0,0,0)":f,i=Math.min(te,Math.max(E,k)),W=Math.max(1,Math.round(i/42)),H=Math.max(4,Math.round(i*.07)),I=Math.max(10,Math.round(i*.15));if(!h){e.width=Math.round(i*4),e.height=Math.round(i*1.65);let v=e.getContext("2d");v&&v.clearRect(0,0,e.width,e.height);return}e.width=Math.round(i*4.2),e.height=Math.round(i*1.65),n(e,h,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:H,width:W,height:i,fontSize:I})},[p,f,g,k]);(0,o.useEffect)(()=>{let e=V.current;if(!e)return;let a=!1;return(async()=>{try{d==="qr"?await J(e,T):await K(e,T),a||b(null)}catch(n){let h=n instanceof Error?n.message:String(n);if(!a){b(d==="barcode"?l("Barcode generation failed"):h);let u=e.getContext("2d");u&&u.clearRect(0,0,e.width,e.height)}}})(),()=>{a=!0}},[d,T,K,J,l]);let X=(0,o.useCallback)(async()=>{_.flush();let e=x.trim();if(!e)throw Error(l("Enter text or URL to preview"));let a=oe();if(d==="qr"){let w=Math.round(Math.min(D,Math.max(z,j))*a),B=document.createElement("canvas");B.width=w,B.height=w,await(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./8daf15a4.js")).then(A=>y.l(A.default)),void 0,{}.url)).default.toCanvas(B,e,{width:w,margin:2,color:{dark:p,light:M}});let Y=await new Promise(A=>B.toBlob(A,"image/png"));if(!Y)throw Error("PNG export failed");return Y}let n=(await(0,N.__vitePreload)(()=>Promise.resolve().then(()=>m("./a6303cb2.js")).then(w=>y.l(w.default)),void 0,{}.url)).default,h=document.createElement("canvas"),u=g?"rgba(0,0,0,0)":f,i=Math.min(q,Math.max(E,k)),W=Math.max(6,Math.round(i*.1)),H=Math.max(2,Math.round(i/36)),I=Math.max(12,Math.round(i*.16));n(h,e,{format:"CODE128",displayValue:!0,background:u,lineColor:p,margin:Math.round(W*a),width:Math.round(H*a),height:Math.round(i*a),fontSize:Math.round(I*a)});let v=await new Promise(w=>h.toBlob(w,"image/png"));if(!v)throw Error("PNG export failed");return v},[d,x,p,M,f,g,j,k,_,l]),pe=(0,o.useCallback)(async()=>{if(!L&&x.trim()){U(!0);try{let e;try{e=await X()}catch(n){let h=n instanceof Error?n.message:String(n);b(h);return}let a=new File([e],`${d==="qr"?"qr-code":"barcode"}-${Date.now()}.png`,{type:"image/png",lastModified:Date.now()});await Promise.resolve(C({file:a}))}finally{U(!1)}}},[C,X,d,x,L]),ge=!!x.trim()&&!$;return(0,r.jsx)("div",{className:t.root,children:(0,r.jsxs)("div",{className:t.controls,children:[(0,r.jsx)(c.antd$Segmented,{block:!0,className:t.segmentedControl,value:d,onChange:e=>{ne(e),b(null)},options:[{label:l("QR code"),value:"qr"},{label:l("Barcode"),value:"barcode"}]}),$&&(0,r.jsx)(c.antd$Alert,{type:"error",title:l("Validation error"),description:$,showIcon:!0,closable:!0,onClose:()=>b(null)}),(0,r.jsx)(c.antd$Input.TextArea,{value:x,onChange:e=>{se(e.target.value),b(null)},placeholder:l("Text or URL"),rows:3,spellCheck:!1,autoComplete:"off"}),(0,r.jsxs)("div",{className:t.sizeRow,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.sizeRowLabel,children:l(d==="qr"?"QR image size px":"Barcode bar height px")}),d==="qr"?(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:z,max:D,step:8,value:j,onChange:e=>ue(typeof e=="number"&&!Number.isNaN(e)?e:ee),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("QR image size px")}):(0,r.jsx)(c.antd$InputNumber,{className:t.sizeInputNumber,min:E,max:q,step:4,value:k,onChange:e=>me(typeof e=="number"&&!Number.isNaN(e)?e:ae),prefix:(0,r.jsx)(S,{size:18,strokeWidth:Q}),suffix:(0,r.jsx)("span",{className:t.sizeSuffix,children:"px"}),"aria-label":l("Barcode bar height px")})]}),(0,r.jsxs)("div",{className:t.colorGrid,children:[(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Code color","Code color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:p,format:"hex",disabledAlpha:!0,showText:!0,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;ce(n)}})]}),(0,r.jsxs)("div",{className:t.colorCell,children:[(0,r.jsx)(c.antd$Typography.Text,{type:"secondary",className:t.colorCellLabel,children:l("Background color","Background color")}),(0,r.jsx)(c.antd$ColorPicker,{className:t.colorPickerFull,value:f,format:"hex",disabledAlpha:!0,showText:!0,disabled:g,onChange:(e,a)=>{let n=typeof e=="string"?e:e?.toHexString?e.toHexString():a;de(n)}})]}),(0,r.jsxs)("div",{className:t.bgExtras,children:[(0,r.jsx)(c.antd$Checkbox,{checked:g,onChange:e=>he(e.target.checked),children:l("Transparent background","Transparent background")}),g&&(0,r.jsx)(c.antd$Alert,{type:"warning",showIcon:!0,title:l("QR transparent background hint"),className:t.bgWarning})]})]}),(0,r.jsxs)("div",{className:t.previewSection,children:[(0,r.jsx)(c.antd$Typography.Text,{className:t.previewTitle,children:l("Preview","Preview")}),(0,r.jsxs)("div",{className:[t.previewWrap,d==="barcode"&&t.previewWrapBarcode].filter(Boolean).join(" "),children:[(0,r.jsx)("div",{className:[t.scanLine,d==="barcode"&&t.scanLineBarcode].filter(Boolean).join(" ")}),(0,r.jsx)("canvas",{ref:V,className:[t.previewCanvas,d==="barcode"&&t.previewCanvasBarcode].filter(Boolean).join(" "),"aria-label":l("Preview")})]})]}),(0,r.jsx)("div",{className:t.actions,children:(0,r.jsx)(c.antd$Button,{type:"primary",onClick:()=>{pe()},loading:L,disabled:!ge,children:l("Add to My files")})})]})})};Z.default=le});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__useblocks__.define("static/core/5da33486.js",["require","exports","module","static/core/2ff39ddf.js","static/core/a42ab03f.js","static/core/94f9492b.js"],function(o,l,m){const u=o("./2ff39ddf.js"),e=o("./a42ab03f.js"),s=o("./94f9492b.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/f9238279.js",["require","exports","module","static/core/2ff39ddf.js","static/core/74875d47.js","static/core/6c59da82.js"],function(o,l,m){const u=o("./2ff39ddf.js"),e=o("./74875d47.js"),s=o("./6c59da82.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});
|