@social-mail/social-mail-client 1.2.424 → 1.2.425
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/content/templates/plain/index.html +1 -0
- package/dist/admin/AdminAppIndex.pack.js +28 -3
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +21 -4
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/blocks/Block.js +18 -1
- package/dist/site-editor/blocks/Block.js.map +1 -1
- package/dist/site-editor/properties/groups/BackgroundGroupEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/BackgroundGroupEditor.js +3 -0
- package/dist/site-editor/properties/groups/BackgroundGroupEditor.js.map +1 -1
- package/dist/site-editor/properties/groups/PositionGroupEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/PositionGroupEditor.js +3 -0
- package/dist/site-editor/properties/groups/PositionGroupEditor.js.map +1 -1
- package/dist/site-editor/styler/StylerSet.d.ts +2 -0
- package/dist/site-editor/styler/StylerSet.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/stylerBackground.d.ts +1 -0
- package/dist/site-editor/styler/properties/stylerBackground.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/stylerBackground.js +2 -1
- package/dist/site-editor/styler/properties/stylerBackground.js.map +1 -1
- package/dist/site-editor/styler/properties/stylerPosition.d.ts +1 -0
- package/dist/site-editor/styler/properties/stylerPosition.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/stylerPosition.js +2 -1
- package/dist/site-editor/styler/properties/stylerPosition.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +28 -3
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +21 -4
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/blocks/Block.tsx +18 -1
- package/src/site-editor/properties/groups/BackgroundGroupEditor.tsx +4 -0
- package/src/site-editor/properties/groups/PositionGroupEditor.tsx +4 -0
- package/src/site-editor/styler/properties/stylerBackground.ts +4 -0
- package/src/site-editor/styler/properties/stylerPosition.ts +8 -0
|
@@ -3242,6 +3242,7 @@ html, body {
|
|
|
3242
3242
|
padding: ${stylerVars.sizeDefault};
|
|
3243
3243
|
margin: ${stylerVars.sizeDefault};
|
|
3244
3244
|
gap: ${stylerVars.sizeLarge};
|
|
3245
|
+
--children-width: 100%;
|
|
3245
3246
|
|
|
3246
3247
|
@media (min-width: 900px) {
|
|
3247
3248
|
& {
|
|
@@ -3263,12 +3264,18 @@ html, body {
|
|
|
3263
3264
|
|
|
3264
3265
|
&[styler-full-screen] {
|
|
3265
3266
|
width: 100%;
|
|
3266
|
-
--children-width: 100%;
|
|
3267
3267
|
max-width: 100%;
|
|
3268
3268
|
padding: 0;
|
|
3269
3269
|
margin: 0;
|
|
3270
3270
|
}
|
|
3271
3271
|
|
|
3272
|
+
& > [styler-background-mode=extend] {
|
|
3273
|
+
align-self: center;
|
|
3274
|
+
width: 100vw;
|
|
3275
|
+
padding: 10px calc(50vw - var(--children-width) / 2 + 20px);
|
|
3276
|
+
border-radius: 0;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3272
3279
|
`.expand("[styler-layout=main]"));StylerSets.register("high",styled.css`
|
|
3273
3280
|
& [styler-layout] {
|
|
3274
3281
|
|
|
@@ -3324,6 +3331,8 @@ html, body {
|
|
|
3324
3331
|
display: flex;
|
|
3325
3332
|
flex-direction: column;
|
|
3326
3333
|
width: 100vw;
|
|
3334
|
+
padding: 0;
|
|
3335
|
+
margin: 0;
|
|
3327
3336
|
align-self: center;
|
|
3328
3337
|
align-items: center;
|
|
3329
3338
|
justify-content: center;
|
|
@@ -3338,6 +3347,14 @@ html, body {
|
|
|
3338
3347
|
&:empty:before {
|
|
3339
3348
|
content: "Inject Not Set";
|
|
3340
3349
|
}
|
|
3350
|
+
|
|
3351
|
+
& > [styler-background-mode=extend] {
|
|
3352
|
+
align-self: center;
|
|
3353
|
+
width: 100vw;
|
|
3354
|
+
padding: 10px calc(50vw - var(--children-width) / 2 + 20px);
|
|
3355
|
+
border-radius: 0;
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3341
3358
|
}
|
|
3342
3359
|
|
|
3343
3360
|
& video-player {
|
|
@@ -3592,7 +3609,7 @@ html, body {
|
|
|
3592
3609
|
border: none !important;
|
|
3593
3610
|
`,lightgray:styled.css`
|
|
3594
3611
|
border: solid 1px lightgray;
|
|
3595
|
-
`}),stylerBorderRadius:new StylerProperty("styler-border-radius",createVarSet("border-radius",sizeVarList)),stylerBorderWidth:new StylerProperty("styler-border-width",createVarSet("border-width",sizeVarList)),stylerBorderColor:new StylerProperty("styler-border-color",createVarSet("border-color",colorVarList))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBorder");System.register(["../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,stylerDisplay;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet}],execute:function(){_export("stylerDisplay",stylerDisplay=StylerProperty.create("styler-display",createSet("display",["block","flex","grid","inline-block","inline-flex","inline-grid","none"])))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/display");System.register(["../../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,stylerFlexDirection;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet}],execute:function(){_export("stylerFlexDirection",stylerFlexDirection=new StylerProperty("styler-flex-direction",createSet("flex-direction",["row","column","row-reverse","column-reverse"])))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/flex/flex");System.register(["../../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,createVarSet,pair,sizeVarList,itemPositions;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet;createVarSet=_Styler.createVarSet;pair=_Styler.pair;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("itemPositions",itemPositions={stylerAlignContent:new StylerProperty("styler-align-content",createSet("align-content",["center","start","end","flex-start","flex-end","normal","baseline","space-between","space-around","space-evenly","stretch",pair("safe-center","safe center"),pair("unsafe-center","unsafe center"),pair("first-baseline","first baseline"),pair("last-baseline","last baseline")])),stylerAlignItems:new StylerProperty("styler-align-items",createSet("align-items",["normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","baseline",pair("first baseline"),pair("last baseline"),pair("safe center"),pair("unsafe center")])),stylerAlignSelf:new StylerProperty("styler-align-self",createSet("align-self",["normal","auto","center","start","end","self-start","self-end","flex-start","flex-end","baseline",pair("first baseline"),pair("last baseline"),"stretch",pair("safe center"),pair("unsafe center")])),stylerJustifyItems:new StylerProperty("styler-justify-items",createSet("justify-items",["normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","left","right","baseline",pair("first baseline"),pair("last baseline"),pair("safe center"),pair("unsafe center"),pair("legacy right"),pair("legacy left"),pair("legacy center")])),stylerJustifyContent:new StylerProperty("styler-justify-content",createSet("justify-content",["center","start","end","flex-start","flex-end","left","right","normal","space-between","space-around","space-evenly","stretch",pair("safe center"),pair("unsafe center")])),stylerJustifySelf:new StylerProperty("styler-justify-self",createSet("justify-self",["auto","normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","left","right","baseline",pair("first baseline"),pair("last baseline"),pair("safe center"),pair("unsafe center")])),stylerGap:new StylerProperty("styler-gap",createVarSet("gap",sizeVarList)),stylerRowGap:new StylerProperty("styler-row-gap",createVarSet("row-gap",sizeVarList)),stylerColumnGap:new StylerProperty("styler-column-gap",createVarSet("column-gap",sizeVarList)),stylerFlexWrap:new StylerProperty("styler-flex-wrap",createSet("flex-wrap",["none","wrap"]))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/items-position/itemsPosition");System.register(["../../Styler"],(function(_export,_context){"use strict";var StylerProperty,stylerLayout;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty}],execute:function(){_export("stylerLayout",stylerLayout=StylerProperty.create("styler-layout",{}))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/layout");System.register(["../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,createVarSet,sizeVarList,stylerPosition;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet;createVarSet=_Styler.createVarSet;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("stylerPosition",stylerPosition={stylerPosition:new StylerProperty("styler-position",createSet("position",["absolute","relative","static","sticky","fixed"])),stylerLeft:new StylerProperty("styler-left",createVarSet("left",sizeVarList)),stylerTop:new StylerProperty("styler-top",createVarSet("top",sizeVarList)),stylerRight:new StylerProperty("styler-right",createVarSet("right",sizeVarList)),stylerBottom:new StylerProperty("styler-bottom",createVarSet("bottom",sizeVarList))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerPosition");System.register(["../Styler"],(function(_export,_context){"use strict";var StylerProperty,createVarSet,sizeVarList,stylerSizes;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createVarSet=_Styler.createVarSet;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("stylerSizes",stylerSizes={stylerWidth:new StylerProperty("styler-width",createVarSet("width",sizeVarList)),stylerMinWidth:new StylerProperty("styler-min-width",createVarSet("min-width",sizeVarList)),stylerMaxWidth:new StylerProperty("styler-max-width",createVarSet("max-width",sizeVarList)),stylerHeight:new StylerProperty("styler-height",createVarSet("height",sizeVarList)),stylerMinHeight:new StylerProperty("styler-min-height",createVarSet("min-height",sizeVarList)),stylerMaxHeight:new StylerProperty("styler-max-height",createVarSet("max-height",sizeVarList))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSizes");System.register(["../Styler"],(function(_export,_context){"use strict";var StylerProperty,createVarSet,sizeVarList,stylerSpace;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createVarSet=_Styler.createVarSet;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("stylerSpace",stylerSpace={stylerPadding:new StylerProperty("styler-padding",createVarSet("padding",sizeVarList)),stylerPaddingLeft:new StylerProperty("styler-padding-left",createVarSet("padding-left",sizeVarList)),stylerPaddingTop:new StylerProperty("styler-padding-top",createVarSet("padding-top",sizeVarList)),stylerPaddingRight:new StylerProperty("styler-padding-right",createVarSet("padding-right",sizeVarList)),stylerPaddingBottom:new StylerProperty("styler-padding-bottom",createVarSet("padding-bottom",sizeVarList)),stylerMargin:new StylerProperty("styler-margin",createVarSet("margin",sizeVarList)),stylerMarginLeft:new StylerProperty("styler-margin-left",createVarSet("margin-left",sizeVarList)),stylerMarginTop:new StylerProperty("styler-margin-top",createVarSet("margin-top",sizeVarList)),stylerMarginRight:new StylerProperty("styler-margin-right",createVarSet("margin-right",sizeVarList)),stylerMarginBottom:new StylerProperty("styler-margin-bottom",createVarSet("margin-bottom",sizeVarList))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSpace");System.register(["@web-atoms/core/dist/style/styled","../../Styler"],(function(_export,_context){"use strict";var styled,StylerProperty,colorVarList,createSet,createVarSet,sizeVarList,stylerText;return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_Styler){StylerProperty=_Styler.StylerProperty;colorVarList=_Styler.colorVarList;createSet=_Styler.createSet;createVarSet=_Styler.createVarSet;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("stylerText",stylerText={stylerColor:new StylerProperty("styler-color",createVarSet("color",colorVarList)),stylerFontFamily:new StylerProperty("styler-font-family",createSet("font-family",[],false,true)),stylerFontSize:new StylerProperty("styler-font-size",createSet("font-size",["xx-small","x-small","small","smaller","medium","large","larger","x-large","xx-large",...sizeVarList],false,true)),stylerFontWeight:new StylerProperty("styler-font-weight",createSet("font-weight",["normal","bold","bolder","lighter"],false,true)),stylerFontStyle:new StylerProperty("styler-font-style",createSet("font-style",["normal","italic","oblique"],false,true)),stylerTextAlign:new StylerProperty("styler-text-align",createSet("text-align",["left","right","center","justify"])),stylerLineHeight:new StylerProperty("styler-line-height",{custom:styled.css`line-height: var(--styler-line-height);`}),stylerLetterSpacing:new StylerProperty("styler-letter-spacing",createVarSet("letter-spacing",sizeVarList)),stylerTextDecoration:new StylerProperty("styler-text-decoration",createSet("text-decoration",["none","underline","overline","line-through"])),stylerTextTransform:new StylerProperty("styler-text-transform",createSet("text-transform",["none","capitalize","uppercase","lowercase"])),stylerDirection:new StylerProperty("styler-direction",createSet("direction",["ltr","rtl"])),stylerWhiteSpace:new StylerProperty("styler-white-space",createSet("white-space",["normal","break-spaces","nowrap","pre","pre-line","pre-wrap"])),stylerTextOutline:new StylerProperty("styler-text-outline",{thin:styled.css`
|
|
3612
|
+
`}),stylerBorderRadius:new StylerProperty("styler-border-radius",createVarSet("border-radius",sizeVarList)),stylerBorderWidth:new StylerProperty("styler-border-width",createVarSet("border-width",sizeVarList)),stylerBorderColor:new StylerProperty("styler-border-color",createVarSet("border-color",colorVarList))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBorder");System.register(["../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,stylerDisplay;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet}],execute:function(){_export("stylerDisplay",stylerDisplay=StylerProperty.create("styler-display",createSet("display",["block","flex","grid","inline-block","inline-flex","inline-grid","none"])))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/display");System.register(["../../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,stylerFlexDirection;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet}],execute:function(){_export("stylerFlexDirection",stylerFlexDirection=new StylerProperty("styler-flex-direction",createSet("flex-direction",["row","column","row-reverse","column-reverse"])))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/flex/flex");System.register(["../../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,createVarSet,pair,sizeVarList,itemPositions;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet;createVarSet=_Styler.createVarSet;pair=_Styler.pair;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("itemPositions",itemPositions={stylerAlignContent:new StylerProperty("styler-align-content",createSet("align-content",["center","start","end","flex-start","flex-end","normal","baseline","space-between","space-around","space-evenly","stretch",pair("safe-center","safe center"),pair("unsafe-center","unsafe center"),pair("first-baseline","first baseline"),pair("last-baseline","last baseline")])),stylerAlignItems:new StylerProperty("styler-align-items",createSet("align-items",["normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","baseline",pair("first baseline"),pair("last baseline"),pair("safe center"),pair("unsafe center")])),stylerAlignSelf:new StylerProperty("styler-align-self",createSet("align-self",["normal","auto","center","start","end","self-start","self-end","flex-start","flex-end","baseline",pair("first baseline"),pair("last baseline"),"stretch",pair("safe center"),pair("unsafe center")])),stylerJustifyItems:new StylerProperty("styler-justify-items",createSet("justify-items",["normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","left","right","baseline",pair("first baseline"),pair("last baseline"),pair("safe center"),pair("unsafe center"),pair("legacy right"),pair("legacy left"),pair("legacy center")])),stylerJustifyContent:new StylerProperty("styler-justify-content",createSet("justify-content",["center","start","end","flex-start","flex-end","left","right","normal","space-between","space-around","space-evenly","stretch",pair("safe center"),pair("unsafe center")])),stylerJustifySelf:new StylerProperty("styler-justify-self",createSet("justify-self",["auto","normal","stretch","center","start","end","flex-start","flex-end","self-start","self-end","left","right","baseline",pair("first baseline"),pair("last baseline"),pair("safe center"),pair("unsafe center")])),stylerGap:new StylerProperty("styler-gap",createVarSet("gap",sizeVarList)),stylerRowGap:new StylerProperty("styler-row-gap",createVarSet("row-gap",sizeVarList)),stylerColumnGap:new StylerProperty("styler-column-gap",createVarSet("column-gap",sizeVarList)),stylerFlexWrap:new StylerProperty("styler-flex-wrap",createSet("flex-wrap",["none","wrap"]))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/items-position/itemsPosition");System.register(["../../Styler"],(function(_export,_context){"use strict";var StylerProperty,stylerLayout;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty}],execute:function(){_export("stylerLayout",stylerLayout=StylerProperty.create("styler-layout",{}))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/layouts/layout");System.register(["../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,createVarSet,sizeVarList,stylerPosition;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet;createVarSet=_Styler.createVarSet;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("stylerPosition",stylerPosition={stylerPosition:new StylerProperty("styler-position",createSet("position",["absolute","relative","static","sticky","fixed"])),stylerLeft:new StylerProperty("styler-left",createVarSet("left",sizeVarList)),stylerTop:new StylerProperty("styler-top",createVarSet("top",sizeVarList)),stylerRight:new StylerProperty("styler-right",createVarSet("right",sizeVarList)),stylerBottom:new StylerProperty("styler-bottom",createVarSet("bottom",sizeVarList)),stylerZIndex:new StylerProperty("styler-z-index",createSet("z-index",["none","last","back","front","first"]))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerPosition");System.register(["../Styler"],(function(_export,_context){"use strict";var StylerProperty,createVarSet,sizeVarList,stylerSizes;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createVarSet=_Styler.createVarSet;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("stylerSizes",stylerSizes={stylerWidth:new StylerProperty("styler-width",createVarSet("width",sizeVarList)),stylerMinWidth:new StylerProperty("styler-min-width",createVarSet("min-width",sizeVarList)),stylerMaxWidth:new StylerProperty("styler-max-width",createVarSet("max-width",sizeVarList)),stylerHeight:new StylerProperty("styler-height",createVarSet("height",sizeVarList)),stylerMinHeight:new StylerProperty("styler-min-height",createVarSet("min-height",sizeVarList)),stylerMaxHeight:new StylerProperty("styler-max-height",createVarSet("max-height",sizeVarList))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSizes");System.register(["../Styler"],(function(_export,_context){"use strict";var StylerProperty,createVarSet,sizeVarList,stylerSpace;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createVarSet=_Styler.createVarSet;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("stylerSpace",stylerSpace={stylerPadding:new StylerProperty("styler-padding",createVarSet("padding",sizeVarList)),stylerPaddingLeft:new StylerProperty("styler-padding-left",createVarSet("padding-left",sizeVarList)),stylerPaddingTop:new StylerProperty("styler-padding-top",createVarSet("padding-top",sizeVarList)),stylerPaddingRight:new StylerProperty("styler-padding-right",createVarSet("padding-right",sizeVarList)),stylerPaddingBottom:new StylerProperty("styler-padding-bottom",createVarSet("padding-bottom",sizeVarList)),stylerMargin:new StylerProperty("styler-margin",createVarSet("margin",sizeVarList)),stylerMarginLeft:new StylerProperty("styler-margin-left",createVarSet("margin-left",sizeVarList)),stylerMarginTop:new StylerProperty("styler-margin-top",createVarSet("margin-top",sizeVarList)),stylerMarginRight:new StylerProperty("styler-margin-right",createVarSet("margin-right",sizeVarList)),stylerMarginBottom:new StylerProperty("styler-margin-bottom",createVarSet("margin-bottom",sizeVarList))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerSpace");System.register(["@web-atoms/core/dist/style/styled","../../Styler"],(function(_export,_context){"use strict";var styled,StylerProperty,colorVarList,createSet,createVarSet,sizeVarList,stylerText;return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_Styler){StylerProperty=_Styler.StylerProperty;colorVarList=_Styler.colorVarList;createSet=_Styler.createSet;createVarSet=_Styler.createVarSet;sizeVarList=_Styler.sizeVarList}],execute:function(){_export("stylerText",stylerText={stylerColor:new StylerProperty("styler-color",createVarSet("color",colorVarList)),stylerFontFamily:new StylerProperty("styler-font-family",createSet("font-family",[],false,true)),stylerFontSize:new StylerProperty("styler-font-size",createSet("font-size",["xx-small","x-small","small","smaller","medium","large","larger","x-large","xx-large",...sizeVarList],false,true)),stylerFontWeight:new StylerProperty("styler-font-weight",createSet("font-weight",["normal","bold","bolder","lighter"],false,true)),stylerFontStyle:new StylerProperty("styler-font-style",createSet("font-style",["normal","italic","oblique"],false,true)),stylerTextAlign:new StylerProperty("styler-text-align",createSet("text-align",["left","right","center","justify"])),stylerLineHeight:new StylerProperty("styler-line-height",{custom:styled.css`line-height: var(--styler-line-height);`}),stylerLetterSpacing:new StylerProperty("styler-letter-spacing",createVarSet("letter-spacing",sizeVarList)),stylerTextDecoration:new StylerProperty("styler-text-decoration",createSet("text-decoration",["none","underline","overline","line-through"])),stylerTextTransform:new StylerProperty("styler-text-transform",createSet("text-transform",["none","capitalize","uppercase","lowercase"])),stylerDirection:new StylerProperty("styler-direction",createSet("direction",["ltr","rtl"])),stylerWhiteSpace:new StylerProperty("styler-white-space",createSet("white-space",["normal","break-spaces","nowrap","pre","pre-line","pre-wrap"])),stylerTextOutline:new StylerProperty("styler-text-outline",{thin:styled.css`
|
|
3596
3613
|
-webkit-text-fill-color: transparent;
|
|
3597
3614
|
-webkit-text-stroke-color: currentColor;
|
|
3598
3615
|
-webkit-text-stroke-width: thin;
|
|
@@ -3651,7 +3668,7 @@ html, body {
|
|
|
3651
3668
|
`,text:styled.css`
|
|
3652
3669
|
background-clip: text;
|
|
3653
3670
|
-webkit-background-clip: text;
|
|
3654
|
-
`}),stylerBackgroundImage:new StylerProperty("styler-background-image",{none:styled.css`background-image: none;`,custom:styled.css`background-image: var(--styler-background-image);`}),stylerBackgroundPosition:new StylerProperty("styler-background-position",{custom:styled.css`background-position: var(--styler-background-position);`}),stylerBackgroundPositionX:new StylerProperty("styler-background-position-x",createVarSet("background-position-x",sizeVarList)),stylerBackgroundPositionY:new StylerProperty("styler-background-position-y",createVarSet("background-position-y",sizeVarList)),stylerBackgroundSize:new StylerProperty("styler-background-size",{custom:styled.css`background-size: var(--styler-background-size);`}),stylerBackgroundRepeat:new StylerProperty("styler-background-repeat",createSet("background-repeat",["no-repeat","repeat","repeat-x","repeat-y","round","space"])),stylerBackgroundAttachment:new StylerProperty("styler-background-attachment",createSet("background-attachment",["fixed","local","scroll"])),stylerBackgroundOrigin:new StylerProperty("styler-background-origin",createSet("background-origin",["border-box","content-box","padding-box"]))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBackground");System.register(["@web-atoms/core/dist/style/styled","../../Styler"],(function(_export,_context){"use strict";var styled,StylerProperty,stylerVars,stylerColorSets;return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_Styler){StylerProperty=_Styler.StylerProperty;stylerVars=_Styler.stylerVars}],execute:function(){_export("stylerColorSets",stylerColorSets=StylerProperty.create("styler-colors",{primary:styled.css`
|
|
3671
|
+
`}),stylerBackgroundImage:new StylerProperty("styler-background-image",{none:styled.css`background-image: none;`,custom:styled.css`background-image: var(--styler-background-image);`}),stylerBackgroundPosition:new StylerProperty("styler-background-position",{custom:styled.css`background-position: var(--styler-background-position);`}),stylerBackgroundPositionX:new StylerProperty("styler-background-position-x",createVarSet("background-position-x",sizeVarList)),stylerBackgroundPositionY:new StylerProperty("styler-background-position-y",createVarSet("background-position-y",sizeVarList)),stylerBackgroundSize:new StylerProperty("styler-background-size",{custom:styled.css`background-size: var(--styler-background-size);`}),stylerBackgroundRepeat:new StylerProperty("styler-background-repeat",createSet("background-repeat",["no-repeat","repeat","repeat-x","repeat-y","round","space"])),stylerBackgroundAttachment:new StylerProperty("styler-background-attachment",createSet("background-attachment",["fixed","local","scroll"])),stylerBackgroundOrigin:new StylerProperty("styler-background-origin",createSet("background-origin",["border-box","content-box","padding-box"])),stylerBackgroundMode:new StylerProperty("styler-background-mode",createSet("background-mode",["none","extend"]))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/stylerBackground");System.register(["@web-atoms/core/dist/style/styled","../../Styler"],(function(_export,_context){"use strict";var styled,StylerProperty,stylerVars,stylerColorSets;return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_Styler){StylerProperty=_Styler.StylerProperty;stylerVars=_Styler.stylerVars}],execute:function(){_export("stylerColorSets",stylerColorSets=StylerProperty.create("styler-colors",{primary:styled.css`
|
|
3655
3672
|
background-color: ${stylerVars.primaryBackground};
|
|
3656
3673
|
color: ${stylerVars.primaryColor};
|
|
3657
3674
|
border: solid 1px ${stylerVars.primaryBorderColor};
|
|
@@ -3734,7 +3751,7 @@ html, body {
|
|
|
3734
3751
|
background: ${stylerVars.tertiaryButtonBackground};
|
|
3735
3752
|
color: ${stylerVars.tertiaryButtonText};
|
|
3736
3753
|
}
|
|
3737
|
-
`}))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/color-sets/stylerColorSets");System.register(["../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,stylerImage;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet}],execute:function(){_export("stylerImage",stylerImage={stylerObjectFit:new StylerProperty("styler-object-fit",createSet("object-fit",["contain","cover","fill","none","scale-down"])),stylerImageOrientation:new StylerProperty("styler-image-orientation",createSet("image-orientation",["none","from-image"])),stylerImageRendering:new StylerProperty("styler-image-rendering",createSet("image-rendering",["auto","smooth","high-quality","crisp-edges","pixelated"])),stylerImageResolution:new StylerProperty("styler-image-resolution",createSet("image-resolution",["from-image","snap"]))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/img/stylerImage");System.register(["../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,stylerOverflow;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet}],execute:function(){_export("stylerOverflow",stylerOverflow={stylerOverflow:new StylerProperty("styler-overflow",createSet("overflow",["hidden","auto","scroll"])),stylerOverflowX:new StylerProperty("styler-overflow-x",createSet("overflow",["hidden","auto","scroll"])),stylerOverflowY:new StylerProperty("styler-overflow-y",createSet("overflow",["hidden","auto","scroll"]))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/scroll/stylerOverflow");System.register(["@web-atoms/core/dist/style/styled","../Styler"],(function(_export,_context){"use strict";var styled,StylerProperty,stylerFilters;return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_Styler){StylerProperty=_Styler.StylerProperty}],execute:function(){_export("stylerFilters",stylerFilters={stylerBackdropFilter:new StylerProperty("styler-backdrop-filter",{none:styled.css`backdrop-filter: none`,blur:styled.css`backdrop-filter: blur(15px) saturate(180%)`})})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/filter");System.register(["./Styler","./properties/stylerBorder","./properties/layouts/display","./properties/layouts/flex/flex","./properties/layouts/items-position/itemsPosition","./properties/layouts/layout","./properties/stylerPosition","./properties/stylerSizes","./properties/stylerSpace","./properties/text/stylerText","./properties/stylerBackground","./properties/color-sets/stylerColorSets","./StylerSets","./properties/img/stylerImage","./properties/scroll/stylerOverflow","./properties/filter"],(function(_export,_context){"use strict";var StylerVariable,stylerVars,stylerBorder,stylerDisplay,stylerFlexDirection,itemPositions,stylerLayout,stylerPosition,stylerSizes,stylerSpace,stylerText,stylerBackground,stylerColorSets,StylerSets,stylerImage,stylerOverflow,stylerFilters,StylerSet,vars;_export("StylerSet",void 0);return{setters:[function(_Styler){StylerVariable=_Styler.StylerVariable;stylerVars=_Styler.stylerVars},function(_propertiesStylerBorder){stylerBorder=_propertiesStylerBorder.stylerBorder},function(_propertiesLayoutsDisplay){stylerDisplay=_propertiesLayoutsDisplay.stylerDisplay},function(_propertiesLayoutsFlexFlex){stylerFlexDirection=_propertiesLayoutsFlexFlex.stylerFlexDirection},function(_propertiesLayoutsItemsPositionItemsPosition){itemPositions=_propertiesLayoutsItemsPositionItemsPosition.itemPositions},function(_propertiesLayoutsLayout){stylerLayout=_propertiesLayoutsLayout.stylerLayout},function(_propertiesStylerPosition){stylerPosition=_propertiesStylerPosition.stylerPosition},function(_propertiesStylerSizes){stylerSizes=_propertiesStylerSizes.stylerSizes},function(_propertiesStylerSpace){stylerSpace=_propertiesStylerSpace.stylerSpace},function(_propertiesTextStylerText){stylerText=_propertiesTextStylerText.stylerText},function(_propertiesStylerBackground){stylerBackground=_propertiesStylerBackground.stylerBackground},function(_propertiesColorSetsStylerColorSets){stylerColorSets=_propertiesColorSetsStylerColorSets.stylerColorSets},function(_StylerSets){StylerSets=_StylerSets.StylerSets},function(_propertiesImgStylerImage){stylerImage=_propertiesImgStylerImage.stylerImage},function(_propertiesScrollStylerOverflow){stylerOverflow=_propertiesScrollStylerOverflow.stylerOverflow},function(_propertiesFilter){stylerFilters=_propertiesFilter.stylerFilters}],execute:function(){vars=[];for(const key in stylerVars){if(Object.prototype.hasOwnProperty.call(stylerVars,key)){const element=stylerVars[key];vars.push(new StylerVariable(element.name,element.value))}}_export("StylerSet",StylerSet=class StylerSet{constructor(){this.vars=vars;this.varsCss=this.vars.join("\n\t\t\t");this.properties=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({stylerLayout,stylerColorSets,stylerDisplay,stylerFlexDirection},stylerBorder),itemPositions),stylerText),stylerSizes),stylerSpace),stylerPosition),stylerBackground),stylerFilters),stylerImage),stylerOverflow)}toString(){const properties=[];for(const key in this.properties){if(Object.prototype.hasOwnProperty.call(this.properties,key)){const element=this.properties[key];properties.push(element)}}return`\n\n html, body {\n margin: 0;\n padding: 0;\n scrollbar-width: thin;\n }\n\n * {\n box-sizing: border-box;\n }\n\n :root{\n ${this.vars.join("\n")}\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n color: var(--accent-color);\n }\n\n body {\n background-color: var(--body-color);\n color: var(--default-text-color);\n overflow-x: hidden;\n }\n\n body[editing=true] {\n margin: 20px;\n }\n\n ${StylerSets.low.join("\n")}\n\n ${properties.join("\n")}\n\n ${StylerSets.high.join("\n")}\n\n \n `}});StylerSet.instance=new StylerSet}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/StylerSet");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet"],(function(_export,_context){"use strict";var XNode,BindEditor,DropDownProperty,ExpanderPropertyEditor,StylerSet,properties;function LayoutEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Layout"},XNode.create(DropDownProperty,{property:properties.stylerLayout}),XNode.create(DropDownProperty,{label:"Display",property:properties.stylerDisplay}),XNode.create(DropDownProperty,{label:"Color Set",property:properties.stylerColorSets}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>e.selection.currentStyle.display==="flex")),label:"Direction",property:properties.stylerFlexDirection}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Justify Content",property:properties.stylerJustifyContent}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Justify Children",property:properties.stylerJustifyItems}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Align Children",property:properties.stylerAlignItems}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Gap",property:properties.stylerGap}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Row Gap",property:properties.stylerRowGap}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Column Gap",property:properties.stylerColumnGap}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex/i.test(e.selection.currentStyle.display))),label:"Wrap",property:properties.stylerFlexWrap}),XNode.create("hr",null),XNode.create("label",{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.parentStyle.display))),text:BindEditor.oneWay((e=>/flex/i.test(e.selection.parentStyle.display)))?"Flex Child":"Grid Child"}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.parentStyle.display))),label:"Align",property:properties.stylerAlignSelf}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.parentStyle.display))),label:"Justify",property:properties.stylerJustifySelf}))}_export("default",LayoutEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){BindEditor=_controlsPropertyEditor.BindEditor;DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/LayoutEditor");System.register(["./PropertyEditor"],(function(_export,_context){"use strict";var DropDownProperty,SizeEditorControl;return{setters:[function(_PropertyEditor){DropDownProperty=_PropertyEditor.DropDownProperty}],execute:function(){SizeEditorControl=DropDownProperty;_export("default",SizeEditorControl)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/controls/SizeEditorControl");System.register(["@web-atoms/core/dist/core/XNode","../../styler/StylerSet","../controls/PropertyEditor","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,StylerSet,DropDownProperty,ExpanderPropertyEditor,SizeEditorControl,properties;function TextPropertyEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Text"},XNode.create(DropDownProperty,{label:"Font",property:properties.stylerFontFamily}),XNode.create(DropDownProperty,{label:"Color",property:properties.stylerColor}),XNode.create(SizeEditorControl,{label:"Size",property:properties.stylerFontSize}),XNode.create(DropDownProperty,{label:"Weight",property:properties.stylerFontWeight}),XNode.create(DropDownProperty,{label:"Style",property:properties.stylerFontStyle}),XNode.create(DropDownProperty,{label:"Align",property:properties.stylerTextAlign}),XNode.create(DropDownProperty,{label:"Line Height",property:properties.stylerLineHeight}),XNode.create(DropDownProperty,{label:"Spacing",property:properties.stylerLetterSpacing}),XNode.create(DropDownProperty,{label:"Decoration",property:properties.stylerTextDecoration}),XNode.create(DropDownProperty,{label:"Transform",property:properties.stylerTextTransform}),XNode.create(DropDownProperty,{label:"Direction",property:properties.stylerDirection}),XNode.create(DropDownProperty,{label:"Break",property:properties.stylerWhiteSpace}),XNode.create(DropDownProperty,{label:"Outline",property:properties.stylerTextOutline}))}_export("default",TextPropertyEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/TextPropertyEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,DropDownProperty,ExpanderPropertyEditor,StylerSet,SizeEditorControl,properties;function BorderGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Border"},XNode.create(DropDownProperty,{label:"Style",property:properties.stylerBorder}),XNode.create(SizeEditorControl,{label:"Radius",property:properties.stylerBorderRadius}),XNode.create(DropDownProperty,{label:"Color",property:properties.stylerBorderColor}),XNode.create(SizeEditorControl,{label:"Width",property:properties.stylerBorderWidth}))}_export("default",BorderGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/BorderGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet"],(function(_export,_context){"use strict";var XNode,DropDownProperty,ExpanderPropertyEditor,StylerSet,properties;function SizeGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Size"},XNode.create(DropDownProperty,{label:"Width",property:properties.stylerWidth}),XNode.create(DropDownProperty,{label:"Height",property:properties.stylerHeight}),XNode.create(DropDownProperty,{label:"Min Width",property:properties.stylerMinWidth}),XNode.create(DropDownProperty,{label:"Min Height",property:properties.stylerMinHeight}),XNode.create(DropDownProperty,{label:"Max Width",property:properties.stylerMaxWidth}),XNode.create(DropDownProperty,{label:"Max Height",property:properties.stylerMaxHeight}))}_export("default",SizeGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/SizeGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,ExpanderPropertyEditor,StylerSet,SizeEditorControl,properties;function SpaceGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Space"},XNode.create(SizeEditorControl,{label:"Padding",property:properties.stylerPadding}),XNode.create(SizeEditorControl,{label:"Padding Left",property:properties.stylerPaddingLeft}),XNode.create(SizeEditorControl,{label:"Padding Top",property:properties.stylerPaddingTop}),XNode.create(SizeEditorControl,{label:"Padding Right",property:properties.stylerPaddingRight}),XNode.create(SizeEditorControl,{label:"Padding Bottom",property:properties.stylerPaddingBottom}),XNode.create(SizeEditorControl,{label:"Margin",property:properties.stylerMargin}),XNode.create(SizeEditorControl,{label:"Margin Left",property:properties.stylerMarginLeft}),XNode.create(SizeEditorControl,{label:"Margin Top",property:properties.stylerMarginTop}),XNode.create(SizeEditorControl,{label:"Margin Right",property:properties.stylerMarginRight}),XNode.create(SizeEditorControl,{label:"Margin Bottom",property:properties.stylerMarginBottom}))}_export("default",SpaceGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/SpaceGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,BindEditor,DropDownProperty,ExpanderPropertyEditor,StylerSet,SizeEditorControl,properties;function PositionGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Position"},XNode.create(DropDownProperty,{label:"Position",property:properties.stylerPosition}),XNode.create("section",{"style-display":BindEditor.oneWay((e=>/relative|fixed|absolute|sticky/i.test(e.selection.currentStyle.position)))},XNode.create(SizeEditorControl,{label:"Left",property:properties.stylerLeft}),XNode.create(SizeEditorControl,{label:"Top",property:properties.stylerTop}),XNode.create(SizeEditorControl,{label:"Right",property:properties.stylerRight}),XNode.create(SizeEditorControl,{label:"Bottom",property:properties.stylerBottom})))}_export("default",PositionGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){BindEditor=_controlsPropertyEditor.BindEditor;DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/PositionGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,DropDownProperty,ExpanderPropertyEditor,StylerSet,SizeEditorControl,properties;function BackgroundGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Background"},XNode.create(DropDownProperty,{label:"Type",property:properties.stylerBackground}),XNode.create(DropDownProperty,{label:"Color",property:properties.stylerBackgroundColor}),XNode.create(DropDownProperty,{label:"Image",property:properties.stylerBackgroundImage}),XNode.create(DropDownProperty,{label:"Clip",property:properties.stylerBackgroundClip}),XNode.create(DropDownProperty,{label:"Position",property:properties.stylerBackgroundPosition}),XNode.create(SizeEditorControl,{label:"Position-X",property:properties.stylerBackgroundPositionX}),XNode.create(SizeEditorControl,{label:"Position-Y",property:properties.stylerBackgroundPositionY}),XNode.create(DropDownProperty,{label:"Size",property:properties.stylerBackgroundSize}),XNode.create(DropDownProperty,{label:"Repeat",property:properties.stylerBackgroundRepeat}),XNode.create(DropDownProperty,{label:"Attachment",property:properties.stylerBackgroundAttachment}))}_export("default",BackgroundGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/BackgroundGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor"],(function(_export,_context){"use strict";var XNode,BindEditor,ExpanderPropertyEditor,TextProperty;function AttributeEditor(){return XNode.create(ExpanderPropertyEditor,{isExpanded:true,label:"Attributes"},XNode.create(TextProperty,{label:"Language",attributeName:"lang"}),XNode.create(TextProperty,{label:"Link","style-display":BindEditor.oneWay((x=>x.selection.name==="a")),attributeName:"href"}),XNode.create(TextProperty,{label:"Link","style-display":BindEditor.oneWay((x=>x.selection.parentName==="a")),attributeName:"parent-href"}),XNode.create(TextProperty,{label:"Target","style-display":BindEditor.oneWay((x=>x.selection.name==="a")),attributeName:"target"}),XNode.create(TextProperty,{label:"Tool Tip",attributeName:"title"}),XNode.create(TextProperty,{label:"Source","style-display":BindEditor.oneWay((x=>/^(video|audio|img|video-player)$/i.test(x.selection.name))),attributeName:"src"}),XNode.create(TextProperty,{label:"Poster","style-display":BindEditor.oneWay((x=>/^(video|audio|video-player)$/i.test(x.selection.name))),attributeName:"poster"}),XNode.create(TextProperty,{label:"Auto Play","style-display":BindEditor.oneWay((x=>/^(video-player)$/i.test(x.selection.name))),attributeName:"autoplay"}),XNode.create(TextProperty,{label:"Alt","style-display":BindEditor.oneWay((x=>/img/i.test(x.selection.name))),attributeName:"src"}))}_export("default",AttributeEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){BindEditor=_controlsPropertyEditor.BindEditor;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor;TextProperty=_controlsPropertyEditor.TextProperty}],execute:function(){}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/AttributeEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet"],(function(_export,_context){"use strict";var XNode,BindEditor,DropDownProperty,ExpanderPropertyEditor,StylerSet,properties;function ImageEditor(){return XNode.create(ExpanderPropertyEditor,{"style-display":BindEditor.oneWay((x=>/^img$/i.test(x.selection.name))),label:"Image"},XNode.create(DropDownProperty,{label:"Object Fit",property:properties.stylerObjectFit}),XNode.create(DropDownProperty,{label:"Orientation",property:properties.stylerImageOrientation}),XNode.create(DropDownProperty,{label:"Rendering",property:properties.stylerImageRendering}),XNode.create(DropDownProperty,{label:"Resolution",property:properties.stylerImageResolution}))}_export("default",ImageEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){BindEditor=_controlsPropertyEditor.BindEditor;DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/ImageEditor");System.register(["@web-atoms/core/dist/core/XNode","../../styler/StylerSet","../controls/PropertyEditor"],(function(_export,_context){"use strict";var XNode,StylerSet,DropDownProperty,ExpanderPropertyEditor,properties;function ScrollGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Scroll"},XNode.create(DropDownProperty,{label:"Overflow",property:properties.stylerOverflow}),XNode.create(DropDownProperty,{label:"Overflow X",property:properties.stylerOverflowX}),XNode.create(DropDownProperty,{label:"Overflow Y",property:properties.stylerOverflowY}))}_export("default",ScrollGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/ScrollGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../../styler/StylerSet","../controls/PropertyEditor"],(function(_export,_context){"use strict";var XNode,StylerSet,ExpanderPropertyEditor,DropDownProperty,properties;function FilterGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Filter"},XNode.create(DropDownProperty,{label:"Backdrop",property:properties.stylerBackdropFilter}))}_export("default",FilterGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsPropertyEditor){ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor;DropDownProperty=_controlsPropertyEditor.DropDownProperty}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/FilterGroup");System.register(["@web-atoms/core/dist/core/XNode","./groups/LayoutEditor","./groups/TextPropertyEditor","./groups/BorderGroupEditor","./groups/SizeGroupEditor","./groups/SpaceGroupEditor","./groups/PositionGroupEditor","./groups/BackgroundGroupEditor","./groups/AttributeEditor","./groups/ImageEditor","./groups/ScrollGroupEditor","./groups/FilterGroup"],(function(_export,_context){"use strict";var XNode,LayoutEditor,TextPropertyEditor,BorderGroupEditor,SizeGroupEditor,SpaceGroupEditor,PositionGroupEditor,BackgroundGroupEditor,AttributeEditor,ImageEditor,ScrollGroupEditor,FilterGroupEditor;function Properties(){return XNode.create("div",{"data-layout":"vertical-flex-stretch-items"},XNode.create(AttributeEditor,null),XNode.create(LayoutEditor,null),XNode.create(ImageEditor,null),XNode.create(SizeGroupEditor,null),XNode.create(BorderGroupEditor,null),XNode.create(SpaceGroupEditor,null),XNode.create(PositionGroupEditor,null),XNode.create(BackgroundGroupEditor,null),XNode.create(FilterGroupEditor,null),XNode.create(TextPropertyEditor,null),XNode.create(ScrollGroupEditor,null))}_export("default",Properties);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_groupsLayoutEditor){LayoutEditor=_groupsLayoutEditor.default},function(_groupsTextPropertyEditor){TextPropertyEditor=_groupsTextPropertyEditor.default},function(_groupsBorderGroupEditor){BorderGroupEditor=_groupsBorderGroupEditor.default},function(_groupsSizeGroupEditor){SizeGroupEditor=_groupsSizeGroupEditor.default},function(_groupsSpaceGroupEditor){SpaceGroupEditor=_groupsSpaceGroupEditor.default},function(_groupsPositionGroupEditor){PositionGroupEditor=_groupsPositionGroupEditor.default},function(_groupsBackgroundGroupEditor){BackgroundGroupEditor=_groupsBackgroundGroupEditor.default},function(_groupsAttributeEditor){AttributeEditor=_groupsAttributeEditor.default},function(_groupsImageEditor){ImageEditor=_groupsImageEditor.default},function(_groupsScrollGroupEditor){ScrollGroupEditor=_groupsScrollGroupEditor.default},function(_groupsFilterGroup){FilterGroupEditor=_groupsFilterGroup.default}],execute:function(){}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/Properties");System.register(["@web-atoms/core/dist/core/AtomBinder"],(function(_export,_context){"use strict";var AtomBinder,SelectedElement;_export("SelectedElement",void 0);return{setters:[function(_webAtomsCoreDistCoreAtomBinder){AtomBinder=_webAtomsCoreDistCoreAtomBinder.AtomBinder}],execute:function(){_export("SelectedElement",SelectedElement=class SelectedElement{get element(){return this.e}get parentStyle(){var _a,_b,_c,_d;const pe=(_a=this.e)===null||_a===void 0?void 0:_a.parentElement;return(_b=this.cachedParentStyle)!==null&&_b!==void 0?_b:this.cachedParentStyle=pe&&this.editor.htmlDocument?(_d=(_c=this.editor.htmlDocument)===null||_c===void 0?void 0:_c.defaultView)===null||_d===void 0?void 0:_d.getComputedStyle(pe):{}}get currentStyle(){var _a,_b,_c;return(_a=this.cachedStyle)!==null&&_a!==void 0?_a:this.cachedStyle=this.e&&this.editor.htmlDocument?(_c=(_b=this.editor.htmlDocument)===null||_b===void 0?void 0:_b.defaultView)===null||_c===void 0?void 0:_c.getComputedStyle(this.e):{}}constructor(editor){this.editor=editor;this.styles=new Map;this.empty={setAttribute(n,v){this[n]=v},getAttribute(n){return this[n]}};this.name="";this.parentName="";this.isImage=false;this.mo=new MutationObserver((changes=>{AtomBinder.refreshValue(this,"element");this.cachedStyle=null;this.cachedParentStyle=null;AtomBinder.refreshValue(this,"currentStyle");AtomBinder.refreshValue(this,"parentStyle");AtomBinder.refreshValue(this,"attributes");for(const iterator of this.styles.values()){AtomBinder.refreshValue(iterator,"value");AtomBinder.refreshValue(iterator,"custom")}}))}setDraggable(){const element=this.e;element.draggable=true;this.dragTimeout=setTimeout((()=>{if(element.draggable){element.removeAttribute("draggable")}}),5e3)}getDropTarget(dragged,target){const isDropTarget=/^(main|section|carousel\-slider)$/i;if(isDropTarget.test(dragged===null||dragged===void 0?void 0:dragged.tagName)){let start=target;while(!isDropTarget.test(start.tagName)){start=start.parentElement}if(isDropTarget.test(start===null||start===void 0?void 0:start.tagName)){target=start}}return target}style(name){let parent;let attributeName=name;if(/^parent\-/.test(name)){parent=true;attributeName=attributeName.substring(7)}let mapper=this.styles.get(name);if(!mapper){const owner=this;const customName="--"+attributeName;mapper={name,get value(){var _a,_b;const e=parent?(_a=owner.e)===null||_a===void 0?void 0:_a.parentElement:owner.e;return(_b=e===null||e===void 0?void 0:e.getAttribute(attributeName))!==null&&_b!==void 0?_b:""},set value(v){var _a;const e=parent?(_a=owner.e)===null||_a===void 0?void 0:_a.parentElement:owner.e;if(!e){return}if(!v){e.removeAttribute(attributeName)}else{e.setAttribute(attributeName,v)}owner.editor.commit();AtomBinder.refreshValue(this,"value");setTimeout((()=>{AtomBinder.refreshValue(this,"custom");AtomBinder.refreshValue(owner,"currentStyle");AtomBinder.refreshValue(owner,"parentStyle")}),1)},get custom(){var _a,_b,_c;return(_c=(_b=(_a=owner.e)===null||_a===void 0?void 0:_a.style)===null||_b===void 0?void 0:_b.getPropertyValue(customName))!==null&&_c!==void 0?_c:""},set custom(v){const e=owner===null||owner===void 0?void 0:owner.e;if(!e){return}if(!v){e.style.removeProperty(customName)}else{e.style.setProperty(customName,v)}}};this.styles.set(name,mapper)}return mapper}clear(){this.e=null;AtomBinder.refreshValue(this,"element")}update(e){var _a;const oe=this.e;if(e){if(e===this.e){return}if(this.e){this.mo.disconnect();if(oe.draggable){oe.removeAttribute("draggable")}if(this.dragTimeout){clearTimeout(this.dragTimeout);this.dragTimeout=0}}this.e=e;AtomBinder.refreshValue(this,"element");this.cachedStyle=null;this.cachedParentStyle=null;AtomBinder.refreshValue(this,"currentStyle");AtomBinder.refreshValue(this,"parentStyle");AtomBinder.refreshValue(this,"attributes");this.mo.observe(e,{attributes:true})}e=this.e;if(!e){return}this.name=e.tagName.toLowerCase();this.parentName=(_a=e.parentElement)===null||_a===void 0?void 0:_a.tagName.toLowerCase();const r=e.getBoundingClientRect();this.isImage=/^(img|video|pdf)/i.test(this.name);this.top=`${r.top+2}px`;this.left=`${r.left+2}px`;this.width=`${r.width}px`;this.height=`${r.height}px`;switch(this.dropAnchor){case"top":this.height="2px";break;case"left":this.width="2px";break;case"bottom":this.top=`${r.top+r.height+4}px`;this.height="2px";break;case"right":this.top=`${r.left+r.width+4}px`;this.width="2px";break}for(const iterator of this.styles.values()){AtomBinder.refreshValue(iterator,"value");AtomBinder.refreshValue(iterator,"custom")}}})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/SelectedElement");System.register([],(function(_export,_context){"use strict";var defaultImageSrc;return{setters:[],execute:function(){_export("defaultImageSrc",defaultImageSrc=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImZpbGw6IHJnYmEoMCwwLDAsMC4xNSk7IHRyYW5zZm9ybTogc2NhbGUoMC43NSkiPgogICAgICAgIDxwYXRoIGQ9Ik04LjUgMTMuNWwyLjUgMyAzLjUtNC41IDQuNSA2SDVtMTYgMVY1YTIgMiAwIDAgMC0yLTJINWMtMS4xIDAtMiAuOS0yIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMnoiPjwvcGF0aD4KICAgICAgPC9zdmc+`)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/blocks/defaultImage");System.register(["@web-atoms/core/dist/core/XNode","./Block","./defaultImage","../styler/StylerSets","@web-atoms/core/dist/style/styled","../styler/Styler"],(function(_export,_context){"use strict";var XNode,Block,defaultImageSrc,StylerSets,styled,stylerVars,ImageBox;return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_Block){Block=_Block.Block},function(_defaultImage){defaultImageSrc=_defaultImage.defaultImageSrc},function(_stylerStylerSets){StylerSets=_stylerStylerSets.StylerSets},function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_stylerStyler){stylerVars=_stylerStyler.stylerVars}],execute:function(){StylerSets.register("low",styled.css`
|
|
3754
|
+
`}))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/color-sets/stylerColorSets");System.register(["../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,stylerImage;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet}],execute:function(){_export("stylerImage",stylerImage={stylerObjectFit:new StylerProperty("styler-object-fit",createSet("object-fit",["contain","cover","fill","none","scale-down"])),stylerImageOrientation:new StylerProperty("styler-image-orientation",createSet("image-orientation",["none","from-image"])),stylerImageRendering:new StylerProperty("styler-image-rendering",createSet("image-rendering",["auto","smooth","high-quality","crisp-edges","pixelated"])),stylerImageResolution:new StylerProperty("styler-image-resolution",createSet("image-resolution",["from-image","snap"]))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/img/stylerImage");System.register(["../../Styler"],(function(_export,_context){"use strict";var StylerProperty,createSet,stylerOverflow;return{setters:[function(_Styler){StylerProperty=_Styler.StylerProperty;createSet=_Styler.createSet}],execute:function(){_export("stylerOverflow",stylerOverflow={stylerOverflow:new StylerProperty("styler-overflow",createSet("overflow",["hidden","auto","scroll"])),stylerOverflowX:new StylerProperty("styler-overflow-x",createSet("overflow",["hidden","auto","scroll"])),stylerOverflowY:new StylerProperty("styler-overflow-y",createSet("overflow",["hidden","auto","scroll"]))})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/scroll/stylerOverflow");System.register(["@web-atoms/core/dist/style/styled","../Styler"],(function(_export,_context){"use strict";var styled,StylerProperty,stylerFilters;return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_Styler){StylerProperty=_Styler.StylerProperty}],execute:function(){_export("stylerFilters",stylerFilters={stylerBackdropFilter:new StylerProperty("styler-backdrop-filter",{none:styled.css`backdrop-filter: none`,blur:styled.css`backdrop-filter: blur(15px) saturate(180%)`})})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/properties/filter");System.register(["./Styler","./properties/stylerBorder","./properties/layouts/display","./properties/layouts/flex/flex","./properties/layouts/items-position/itemsPosition","./properties/layouts/layout","./properties/stylerPosition","./properties/stylerSizes","./properties/stylerSpace","./properties/text/stylerText","./properties/stylerBackground","./properties/color-sets/stylerColorSets","./StylerSets","./properties/img/stylerImage","./properties/scroll/stylerOverflow","./properties/filter"],(function(_export,_context){"use strict";var StylerVariable,stylerVars,stylerBorder,stylerDisplay,stylerFlexDirection,itemPositions,stylerLayout,stylerPosition,stylerSizes,stylerSpace,stylerText,stylerBackground,stylerColorSets,StylerSets,stylerImage,stylerOverflow,stylerFilters,StylerSet,vars;_export("StylerSet",void 0);return{setters:[function(_Styler){StylerVariable=_Styler.StylerVariable;stylerVars=_Styler.stylerVars},function(_propertiesStylerBorder){stylerBorder=_propertiesStylerBorder.stylerBorder},function(_propertiesLayoutsDisplay){stylerDisplay=_propertiesLayoutsDisplay.stylerDisplay},function(_propertiesLayoutsFlexFlex){stylerFlexDirection=_propertiesLayoutsFlexFlex.stylerFlexDirection},function(_propertiesLayoutsItemsPositionItemsPosition){itemPositions=_propertiesLayoutsItemsPositionItemsPosition.itemPositions},function(_propertiesLayoutsLayout){stylerLayout=_propertiesLayoutsLayout.stylerLayout},function(_propertiesStylerPosition){stylerPosition=_propertiesStylerPosition.stylerPosition},function(_propertiesStylerSizes){stylerSizes=_propertiesStylerSizes.stylerSizes},function(_propertiesStylerSpace){stylerSpace=_propertiesStylerSpace.stylerSpace},function(_propertiesTextStylerText){stylerText=_propertiesTextStylerText.stylerText},function(_propertiesStylerBackground){stylerBackground=_propertiesStylerBackground.stylerBackground},function(_propertiesColorSetsStylerColorSets){stylerColorSets=_propertiesColorSetsStylerColorSets.stylerColorSets},function(_StylerSets){StylerSets=_StylerSets.StylerSets},function(_propertiesImgStylerImage){stylerImage=_propertiesImgStylerImage.stylerImage},function(_propertiesScrollStylerOverflow){stylerOverflow=_propertiesScrollStylerOverflow.stylerOverflow},function(_propertiesFilter){stylerFilters=_propertiesFilter.stylerFilters}],execute:function(){vars=[];for(const key in stylerVars){if(Object.prototype.hasOwnProperty.call(stylerVars,key)){const element=stylerVars[key];vars.push(new StylerVariable(element.name,element.value))}}_export("StylerSet",StylerSet=class StylerSet{constructor(){this.vars=vars;this.varsCss=this.vars.join("\n\t\t\t");this.properties=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({stylerLayout,stylerColorSets,stylerDisplay,stylerFlexDirection},stylerBorder),itemPositions),stylerText),stylerSizes),stylerSpace),stylerPosition),stylerBackground),stylerFilters),stylerImage),stylerOverflow)}toString(){const properties=[];for(const key in this.properties){if(Object.prototype.hasOwnProperty.call(this.properties,key)){const element=this.properties[key];properties.push(element)}}return`\n\n html, body {\n margin: 0;\n padding: 0;\n scrollbar-width: thin;\n }\n\n * {\n box-sizing: border-box;\n }\n\n :root{\n ${this.vars.join("\n")}\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n color: var(--accent-color);\n }\n\n body {\n background-color: var(--body-color);\n color: var(--default-text-color);\n overflow-x: hidden;\n }\n\n body[editing=true] {\n margin: 20px;\n }\n\n ${StylerSets.low.join("\n")}\n\n ${properties.join("\n")}\n\n ${StylerSets.high.join("\n")}\n\n \n `}});StylerSet.instance=new StylerSet}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/StylerSet");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet"],(function(_export,_context){"use strict";var XNode,BindEditor,DropDownProperty,ExpanderPropertyEditor,StylerSet,properties;function LayoutEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Layout"},XNode.create(DropDownProperty,{property:properties.stylerLayout}),XNode.create(DropDownProperty,{label:"Display",property:properties.stylerDisplay}),XNode.create(DropDownProperty,{label:"Color Set",property:properties.stylerColorSets}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>e.selection.currentStyle.display==="flex")),label:"Direction",property:properties.stylerFlexDirection}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Justify Content",property:properties.stylerJustifyContent}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Justify Children",property:properties.stylerJustifyItems}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Align Children",property:properties.stylerAlignItems}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Gap",property:properties.stylerGap}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Row Gap",property:properties.stylerRowGap}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.currentStyle.display))),label:"Column Gap",property:properties.stylerColumnGap}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex/i.test(e.selection.currentStyle.display))),label:"Wrap",property:properties.stylerFlexWrap}),XNode.create("hr",null),XNode.create("label",{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.parentStyle.display))),text:BindEditor.oneWay((e=>/flex/i.test(e.selection.parentStyle.display)))?"Flex Child":"Grid Child"}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.parentStyle.display))),label:"Align",property:properties.stylerAlignSelf}),XNode.create(DropDownProperty,{"style-display":BindEditor.oneWay((e=>/flex|grid/i.test(e.selection.parentStyle.display))),label:"Justify",property:properties.stylerJustifySelf}))}_export("default",LayoutEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){BindEditor=_controlsPropertyEditor.BindEditor;DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/LayoutEditor");System.register(["./PropertyEditor"],(function(_export,_context){"use strict";var DropDownProperty,SizeEditorControl;return{setters:[function(_PropertyEditor){DropDownProperty=_PropertyEditor.DropDownProperty}],execute:function(){SizeEditorControl=DropDownProperty;_export("default",SizeEditorControl)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/controls/SizeEditorControl");System.register(["@web-atoms/core/dist/core/XNode","../../styler/StylerSet","../controls/PropertyEditor","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,StylerSet,DropDownProperty,ExpanderPropertyEditor,SizeEditorControl,properties;function TextPropertyEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Text"},XNode.create(DropDownProperty,{label:"Font",property:properties.stylerFontFamily}),XNode.create(DropDownProperty,{label:"Color",property:properties.stylerColor}),XNode.create(SizeEditorControl,{label:"Size",property:properties.stylerFontSize}),XNode.create(DropDownProperty,{label:"Weight",property:properties.stylerFontWeight}),XNode.create(DropDownProperty,{label:"Style",property:properties.stylerFontStyle}),XNode.create(DropDownProperty,{label:"Align",property:properties.stylerTextAlign}),XNode.create(DropDownProperty,{label:"Line Height",property:properties.stylerLineHeight}),XNode.create(DropDownProperty,{label:"Spacing",property:properties.stylerLetterSpacing}),XNode.create(DropDownProperty,{label:"Decoration",property:properties.stylerTextDecoration}),XNode.create(DropDownProperty,{label:"Transform",property:properties.stylerTextTransform}),XNode.create(DropDownProperty,{label:"Direction",property:properties.stylerDirection}),XNode.create(DropDownProperty,{label:"Break",property:properties.stylerWhiteSpace}),XNode.create(DropDownProperty,{label:"Outline",property:properties.stylerTextOutline}))}_export("default",TextPropertyEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/TextPropertyEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,DropDownProperty,ExpanderPropertyEditor,StylerSet,SizeEditorControl,properties;function BorderGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Border"},XNode.create(DropDownProperty,{label:"Style",property:properties.stylerBorder}),XNode.create(SizeEditorControl,{label:"Radius",property:properties.stylerBorderRadius}),XNode.create(DropDownProperty,{label:"Color",property:properties.stylerBorderColor}),XNode.create(SizeEditorControl,{label:"Width",property:properties.stylerBorderWidth}))}_export("default",BorderGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/BorderGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet"],(function(_export,_context){"use strict";var XNode,DropDownProperty,ExpanderPropertyEditor,StylerSet,properties;function SizeGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Size"},XNode.create(DropDownProperty,{label:"Width",property:properties.stylerWidth}),XNode.create(DropDownProperty,{label:"Height",property:properties.stylerHeight}),XNode.create(DropDownProperty,{label:"Min Width",property:properties.stylerMinWidth}),XNode.create(DropDownProperty,{label:"Min Height",property:properties.stylerMinHeight}),XNode.create(DropDownProperty,{label:"Max Width",property:properties.stylerMaxWidth}),XNode.create(DropDownProperty,{label:"Max Height",property:properties.stylerMaxHeight}))}_export("default",SizeGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/SizeGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,ExpanderPropertyEditor,StylerSet,SizeEditorControl,properties;function SpaceGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Space"},XNode.create(SizeEditorControl,{label:"Padding",property:properties.stylerPadding}),XNode.create(SizeEditorControl,{label:"Padding Left",property:properties.stylerPaddingLeft}),XNode.create(SizeEditorControl,{label:"Padding Top",property:properties.stylerPaddingTop}),XNode.create(SizeEditorControl,{label:"Padding Right",property:properties.stylerPaddingRight}),XNode.create(SizeEditorControl,{label:"Padding Bottom",property:properties.stylerPaddingBottom}),XNode.create(SizeEditorControl,{label:"Margin",property:properties.stylerMargin}),XNode.create(SizeEditorControl,{label:"Margin Left",property:properties.stylerMarginLeft}),XNode.create(SizeEditorControl,{label:"Margin Top",property:properties.stylerMarginTop}),XNode.create(SizeEditorControl,{label:"Margin Right",property:properties.stylerMarginRight}),XNode.create(SizeEditorControl,{label:"Margin Bottom",property:properties.stylerMarginBottom}))}_export("default",SpaceGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/SpaceGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,BindEditor,DropDownProperty,ExpanderPropertyEditor,StylerSet,SizeEditorControl,properties;function PositionGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Position"},XNode.create(DropDownProperty,{label:"Position",property:properties.stylerPosition}),XNode.create("section",{"style-display":BindEditor.oneWay((e=>/relative|fixed|absolute|sticky/i.test(e.selection.currentStyle.position)))},XNode.create(SizeEditorControl,{label:"Left",property:properties.stylerLeft}),XNode.create(SizeEditorControl,{label:"Top",property:properties.stylerTop}),XNode.create(SizeEditorControl,{label:"Right",property:properties.stylerRight}),XNode.create(SizeEditorControl,{label:"Bottom",property:properties.stylerBottom}),XNode.create(DropDownProperty,{label:"Z-Index",property:properties.stylerZIndex})))}_export("default",PositionGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){BindEditor=_controlsPropertyEditor.BindEditor;DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/PositionGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet","../controls/SizeEditorControl"],(function(_export,_context){"use strict";var XNode,DropDownProperty,ExpanderPropertyEditor,StylerSet,SizeEditorControl,properties;function BackgroundGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Background"},XNode.create(DropDownProperty,{label:"Type",property:properties.stylerBackground}),XNode.create(DropDownProperty,{label:"Color",property:properties.stylerBackgroundColor}),XNode.create(DropDownProperty,{label:"Image",property:properties.stylerBackgroundImage}),XNode.create(DropDownProperty,{label:"Clip",property:properties.stylerBackgroundClip}),XNode.create(DropDownProperty,{label:"Position",property:properties.stylerBackgroundPosition}),XNode.create(SizeEditorControl,{label:"Position-X",property:properties.stylerBackgroundPositionX}),XNode.create(SizeEditorControl,{label:"Position-Y",property:properties.stylerBackgroundPositionY}),XNode.create(DropDownProperty,{label:"Size",property:properties.stylerBackgroundSize}),XNode.create(DropDownProperty,{label:"Repeat",property:properties.stylerBackgroundRepeat}),XNode.create(DropDownProperty,{label:"Attachment",property:properties.stylerBackgroundAttachment}),XNode.create(DropDownProperty,{label:"Mode",property:properties.stylerBackgroundMode}))}_export("default",BackgroundGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsSizeEditorControl){SizeEditorControl=_controlsSizeEditorControl.default}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/BackgroundGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor"],(function(_export,_context){"use strict";var XNode,BindEditor,ExpanderPropertyEditor,TextProperty;function AttributeEditor(){return XNode.create(ExpanderPropertyEditor,{isExpanded:true,label:"Attributes"},XNode.create(TextProperty,{label:"Language",attributeName:"lang"}),XNode.create(TextProperty,{label:"Link","style-display":BindEditor.oneWay((x=>x.selection.name==="a")),attributeName:"href"}),XNode.create(TextProperty,{label:"Link","style-display":BindEditor.oneWay((x=>x.selection.parentName==="a")),attributeName:"parent-href"}),XNode.create(TextProperty,{label:"Target","style-display":BindEditor.oneWay((x=>x.selection.name==="a")),attributeName:"target"}),XNode.create(TextProperty,{label:"Tool Tip",attributeName:"title"}),XNode.create(TextProperty,{label:"Source","style-display":BindEditor.oneWay((x=>/^(video|audio|img|video-player)$/i.test(x.selection.name))),attributeName:"src"}),XNode.create(TextProperty,{label:"Poster","style-display":BindEditor.oneWay((x=>/^(video|audio|video-player)$/i.test(x.selection.name))),attributeName:"poster"}),XNode.create(TextProperty,{label:"Auto Play","style-display":BindEditor.oneWay((x=>/^(video-player)$/i.test(x.selection.name))),attributeName:"autoplay"}),XNode.create(TextProperty,{label:"Alt","style-display":BindEditor.oneWay((x=>/img/i.test(x.selection.name))),attributeName:"src"}))}_export("default",AttributeEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){BindEditor=_controlsPropertyEditor.BindEditor;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor;TextProperty=_controlsPropertyEditor.TextProperty}],execute:function(){}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/AttributeEditor");System.register(["@web-atoms/core/dist/core/XNode","../controls/PropertyEditor","../../styler/StylerSet"],(function(_export,_context){"use strict";var XNode,BindEditor,DropDownProperty,ExpanderPropertyEditor,StylerSet,properties;function ImageEditor(){return XNode.create(ExpanderPropertyEditor,{"style-display":BindEditor.oneWay((x=>/^img$/i.test(x.selection.name))),label:"Image"},XNode.create(DropDownProperty,{label:"Object Fit",property:properties.stylerObjectFit}),XNode.create(DropDownProperty,{label:"Orientation",property:properties.stylerImageOrientation}),XNode.create(DropDownProperty,{label:"Rendering",property:properties.stylerImageRendering}),XNode.create(DropDownProperty,{label:"Resolution",property:properties.stylerImageResolution}))}_export("default",ImageEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_controlsPropertyEditor){BindEditor=_controlsPropertyEditor.BindEditor;DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet}],execute:function(){({properties}=StylerSet.instance)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/ImageEditor");System.register(["@web-atoms/core/dist/core/XNode","../../styler/StylerSet","../controls/PropertyEditor"],(function(_export,_context){"use strict";var XNode,StylerSet,DropDownProperty,ExpanderPropertyEditor,properties;function ScrollGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Scroll"},XNode.create(DropDownProperty,{label:"Overflow",property:properties.stylerOverflow}),XNode.create(DropDownProperty,{label:"Overflow X",property:properties.stylerOverflowX}),XNode.create(DropDownProperty,{label:"Overflow Y",property:properties.stylerOverflowY}))}_export("default",ScrollGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsPropertyEditor){DropDownProperty=_controlsPropertyEditor.DropDownProperty;ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/ScrollGroupEditor");System.register(["@web-atoms/core/dist/core/XNode","../../styler/StylerSet","../controls/PropertyEditor"],(function(_export,_context){"use strict";var XNode,StylerSet,ExpanderPropertyEditor,DropDownProperty,properties;function FilterGroupEditor(){return XNode.create(ExpanderPropertyEditor,{label:"Filter"},XNode.create(DropDownProperty,{label:"Backdrop",property:properties.stylerBackdropFilter}))}_export("default",FilterGroupEditor);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_controlsPropertyEditor){ExpanderPropertyEditor=_controlsPropertyEditor.ExpanderPropertyEditor;DropDownProperty=_controlsPropertyEditor.DropDownProperty}],execute:function(){properties=StylerSet.instance.properties}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/FilterGroup");System.register(["@web-atoms/core/dist/core/XNode","./groups/LayoutEditor","./groups/TextPropertyEditor","./groups/BorderGroupEditor","./groups/SizeGroupEditor","./groups/SpaceGroupEditor","./groups/PositionGroupEditor","./groups/BackgroundGroupEditor","./groups/AttributeEditor","./groups/ImageEditor","./groups/ScrollGroupEditor","./groups/FilterGroup"],(function(_export,_context){"use strict";var XNode,LayoutEditor,TextPropertyEditor,BorderGroupEditor,SizeGroupEditor,SpaceGroupEditor,PositionGroupEditor,BackgroundGroupEditor,AttributeEditor,ImageEditor,ScrollGroupEditor,FilterGroupEditor;function Properties(){return XNode.create("div",{"data-layout":"vertical-flex-stretch-items"},XNode.create(AttributeEditor,null),XNode.create(LayoutEditor,null),XNode.create(ImageEditor,null),XNode.create(SizeGroupEditor,null),XNode.create(BorderGroupEditor,null),XNode.create(SpaceGroupEditor,null),XNode.create(PositionGroupEditor,null),XNode.create(BackgroundGroupEditor,null),XNode.create(FilterGroupEditor,null),XNode.create(TextPropertyEditor,null),XNode.create(ScrollGroupEditor,null))}_export("default",Properties);return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_groupsLayoutEditor){LayoutEditor=_groupsLayoutEditor.default},function(_groupsTextPropertyEditor){TextPropertyEditor=_groupsTextPropertyEditor.default},function(_groupsBorderGroupEditor){BorderGroupEditor=_groupsBorderGroupEditor.default},function(_groupsSizeGroupEditor){SizeGroupEditor=_groupsSizeGroupEditor.default},function(_groupsSpaceGroupEditor){SpaceGroupEditor=_groupsSpaceGroupEditor.default},function(_groupsPositionGroupEditor){PositionGroupEditor=_groupsPositionGroupEditor.default},function(_groupsBackgroundGroupEditor){BackgroundGroupEditor=_groupsBackgroundGroupEditor.default},function(_groupsAttributeEditor){AttributeEditor=_groupsAttributeEditor.default},function(_groupsImageEditor){ImageEditor=_groupsImageEditor.default},function(_groupsScrollGroupEditor){ScrollGroupEditor=_groupsScrollGroupEditor.default},function(_groupsFilterGroup){FilterGroupEditor=_groupsFilterGroup.default}],execute:function(){}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/Properties");System.register(["@web-atoms/core/dist/core/AtomBinder"],(function(_export,_context){"use strict";var AtomBinder,SelectedElement;_export("SelectedElement",void 0);return{setters:[function(_webAtomsCoreDistCoreAtomBinder){AtomBinder=_webAtomsCoreDistCoreAtomBinder.AtomBinder}],execute:function(){_export("SelectedElement",SelectedElement=class SelectedElement{get element(){return this.e}get parentStyle(){var _a,_b,_c,_d;const pe=(_a=this.e)===null||_a===void 0?void 0:_a.parentElement;return(_b=this.cachedParentStyle)!==null&&_b!==void 0?_b:this.cachedParentStyle=pe&&this.editor.htmlDocument?(_d=(_c=this.editor.htmlDocument)===null||_c===void 0?void 0:_c.defaultView)===null||_d===void 0?void 0:_d.getComputedStyle(pe):{}}get currentStyle(){var _a,_b,_c;return(_a=this.cachedStyle)!==null&&_a!==void 0?_a:this.cachedStyle=this.e&&this.editor.htmlDocument?(_c=(_b=this.editor.htmlDocument)===null||_b===void 0?void 0:_b.defaultView)===null||_c===void 0?void 0:_c.getComputedStyle(this.e):{}}constructor(editor){this.editor=editor;this.styles=new Map;this.empty={setAttribute(n,v){this[n]=v},getAttribute(n){return this[n]}};this.name="";this.parentName="";this.isImage=false;this.mo=new MutationObserver((changes=>{AtomBinder.refreshValue(this,"element");this.cachedStyle=null;this.cachedParentStyle=null;AtomBinder.refreshValue(this,"currentStyle");AtomBinder.refreshValue(this,"parentStyle");AtomBinder.refreshValue(this,"attributes");for(const iterator of this.styles.values()){AtomBinder.refreshValue(iterator,"value");AtomBinder.refreshValue(iterator,"custom")}}))}setDraggable(){const element=this.e;element.draggable=true;this.dragTimeout=setTimeout((()=>{if(element.draggable){element.removeAttribute("draggable")}}),5e3)}getDropTarget(dragged,target){const isDropTarget=/^(main|section|carousel\-slider)$/i;if(isDropTarget.test(dragged===null||dragged===void 0?void 0:dragged.tagName)){let start=target;while(!isDropTarget.test(start.tagName)){start=start.parentElement}if(isDropTarget.test(start===null||start===void 0?void 0:start.tagName)){target=start}}return target}style(name){let parent;let attributeName=name;if(/^parent\-/.test(name)){parent=true;attributeName=attributeName.substring(7)}let mapper=this.styles.get(name);if(!mapper){const owner=this;const customName="--"+attributeName;mapper={name,get value(){var _a,_b;const e=parent?(_a=owner.e)===null||_a===void 0?void 0:_a.parentElement:owner.e;return(_b=e===null||e===void 0?void 0:e.getAttribute(attributeName))!==null&&_b!==void 0?_b:""},set value(v){var _a;const e=parent?(_a=owner.e)===null||_a===void 0?void 0:_a.parentElement:owner.e;if(!e){return}if(!v){e.removeAttribute(attributeName)}else{e.setAttribute(attributeName,v)}owner.editor.commit();AtomBinder.refreshValue(this,"value");setTimeout((()=>{AtomBinder.refreshValue(this,"custom");AtomBinder.refreshValue(owner,"currentStyle");AtomBinder.refreshValue(owner,"parentStyle")}),1)},get custom(){var _a,_b,_c;return(_c=(_b=(_a=owner.e)===null||_a===void 0?void 0:_a.style)===null||_b===void 0?void 0:_b.getPropertyValue(customName))!==null&&_c!==void 0?_c:""},set custom(v){const e=owner===null||owner===void 0?void 0:owner.e;if(!e){return}if(!v){e.style.removeProperty(customName)}else{e.style.setProperty(customName,v)}}};this.styles.set(name,mapper)}return mapper}clear(){this.e=null;AtomBinder.refreshValue(this,"element")}update(e){var _a;const oe=this.e;if(e){if(e===this.e){return}if(this.e){this.mo.disconnect();if(oe.draggable){oe.removeAttribute("draggable")}if(this.dragTimeout){clearTimeout(this.dragTimeout);this.dragTimeout=0}}this.e=e;AtomBinder.refreshValue(this,"element");this.cachedStyle=null;this.cachedParentStyle=null;AtomBinder.refreshValue(this,"currentStyle");AtomBinder.refreshValue(this,"parentStyle");AtomBinder.refreshValue(this,"attributes");this.mo.observe(e,{attributes:true})}e=this.e;if(!e){return}this.name=e.tagName.toLowerCase();this.parentName=(_a=e.parentElement)===null||_a===void 0?void 0:_a.tagName.toLowerCase();const r=e.getBoundingClientRect();this.isImage=/^(img|video|pdf)/i.test(this.name);this.top=`${r.top+2}px`;this.left=`${r.left+2}px`;this.width=`${r.width}px`;this.height=`${r.height}px`;switch(this.dropAnchor){case"top":this.height="2px";break;case"left":this.width="2px";break;case"bottom":this.top=`${r.top+r.height+4}px`;this.height="2px";break;case"right":this.top=`${r.left+r.width+4}px`;this.width="2px";break}for(const iterator of this.styles.values()){AtomBinder.refreshValue(iterator,"value");AtomBinder.refreshValue(iterator,"custom")}}})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/SelectedElement");System.register([],(function(_export,_context){"use strict";var defaultImageSrc;return{setters:[],execute:function(){_export("defaultImageSrc",defaultImageSrc=`data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImZpbGw6IHJnYmEoMCwwLDAsMC4xNSk7IHRyYW5zZm9ybTogc2NhbGUoMC43NSkiPgogICAgICAgIDxwYXRoIGQ9Ik04LjUgMTMuNWwyLjUgMyAzLjUtNC41IDQuNSA2SDVtMTYgMVY1YTIgMiAwIDAgMC0yLTJINWMtMS4xIDAtMiAuOS0yIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMnoiPjwvcGF0aD4KICAgICAgPC9zdmc+`)}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/blocks/defaultImage");System.register(["@web-atoms/core/dist/core/XNode","./Block","./defaultImage","../styler/StylerSets","@web-atoms/core/dist/style/styled","../styler/Styler"],(function(_export,_context){"use strict";var XNode,Block,defaultImageSrc,StylerSets,styled,stylerVars,ImageBox;return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_Block){Block=_Block.Block},function(_defaultImage){defaultImageSrc=_defaultImage.defaultImageSrc},function(_stylerStylerSets){StylerSets=_stylerStylerSets.StylerSets},function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_stylerStyler){stylerVars=_stylerStyler.stylerVars}],execute:function(){StylerSets.register("low",styled.css`
|
|
3738
3755
|
display: flex;
|
|
3739
3756
|
flex-direction: column;
|
|
3740
3757
|
gap: ${stylerVars.sizeDefault};
|