@social-mail/social-mail-client 1.2.765 → 1.2.767
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/dist/public/channel/ChannelApp.pack.js +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/site-editor/editor/webComponentsPath.js +1 -1
- package/dist/site-editor/styler/Styler.d.ts +4 -0
- package/dist/site-editor/styler/Styler.d.ts.map +1 -1
- package/dist/site-editor/styler/Styler.js +3 -2
- package/dist/site-editor/styler/Styler.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +4 -3
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +2 -2
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/webComponentsPath.ts +1 -1
- package/src/site-editor/styler/Styler.ts +4 -1
|
@@ -3157,7 +3157,7 @@ html, body {
|
|
|
3157
3157
|
margin-left: 20px;
|
|
3158
3158
|
}
|
|
3159
3159
|
|
|
3160
|
-
`.installGlobal("[data-html-editor-element=toolbar]")}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/toolbars/EditorToolbar");System.register(["@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/XNode","./EditorToolbar"],(function(_export,_context){"use strict";var Bind,XNode,EditorToolbar;function UndoRedoToolbar(){return XNode.create(EditorToolbar,{"data-element":"undo"},XNode.create("i",{"data-click-event":"undo",title:"Undo","data-disabled":Bind.oneWay((editor=>!editor.undoRedo.canUndo)),class:"fas fa-undo"}),XNode.create("i",{"data-click-event":"redo",title:"Redo","data-disabled":Bind.oneWay((editor=>!editor.undoRedo.canRedo)),class:"fas fa-redo"}))}_export("default",UndoRedoToolbar);return{setters:[function(_webAtomsCoreDistCoreBind){Bind=_webAtomsCoreDistCoreBind.default},function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_EditorToolbar){EditorToolbar=_EditorToolbar.default}],execute:function(){}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/toolbars/UndoRedoToolbar");System.register([],(function(_export,_context){"use strict";var StylerSets;return{setters:[],execute:function(){_export("StylerSets",StylerSets={low:[],high:[],register(where,selector,element){const target=this[where];if(element){target.push(element.expand(selector));return}target.push(selector)}})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/StylerSets");System.register(["@web-atoms/core/dist/style/styled","@web-atoms/core/dist/core/AtomBinder"],(function(_export,_context){"use strict";var styled,AtomBinder,StylerVariable,StylerPropertyOption,StylerProperty,camelToSnakeCase,prepareVariables,stylerVars,sizeVarList,colorVarList,pair,createSet,createVarSet,createVarSetWith;_export({StylerVariable:void 0,StylerPropertyOption:void 0,StylerProperty:void 0});return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_webAtomsCoreDistCoreAtomBinder){AtomBinder=_webAtomsCoreDistCoreAtomBinder.AtomBinder}],execute:function(){camelToSnakeCase=str=>str.replace(/[A-Z]/g,(letter=>`-${letter.toLowerCase()}`));prepareVariables=a=>{const r={};for(const key in a){if(Object.prototype.hasOwnProperty.call(a,key)){const value=a[key];const name=camelToSnakeCase(key);r[key]={name,value,toString(){return`var(--${name}, ${value})`}}}}return r};_export("stylerVars",stylerVars=prepareVariables({sizeZero:"0",sizeTiny:"2px",sizeSmall:"5px",sizeSmaller:"7px",sizeDefault:"10px",sizeLarger:"15px",sizeLarge:"20px",sizeVeryLarge:"40px",sizeAuto:"auto",sizeMobileWidth:"350px",sizeTabletWidth:"1024px",size10Pc:"10%",size20Pc:"20%",size25Pc:"25%",size30Pc:"30%",size33Pc:"33.3%",size40Pc:"40%",size50Pc:"50%",size60Pc:"60%",size66Pc:"66.6%",size70Pc:"70%",size75Pc:"75%",size80Pc:"80%",size90Pc:"90%",size100Pc:"100%",size10vw:"10vw",size20vw:"20vw",size25vw:"25vw",size30vw:"30vw",size33vw:"33.3vw",size40vw:"40vw",size50vw:"50vw",size60vw:"60vw",size66vw:"66.6vw",size70vw:"70vw",size75vw:"75vw",size80vw:"80vw",size90vw:"90vw",size100vw:"100vw",size10vh:"10vh",size20vh:"20vh",size25vh:"25vh",size30vh:"30vh",size33vh:"33.3vh",size40vh:"40vh",size50vh:"50vh",size60vh:"60vh",size66vh:"66.6vh",size70vh:"70vh",size75vh:"75vh",size80vh:"80vh",size90vh:"90vh",size100vh:"100vh",rem0_5:"0.5rem",rem1:"1rem",rem1_5:"1.5rem",rem2:"2rem",rem2_5:"2.5rem",rem3:"3rem",rem4:"4rem",rem5:"5rem",rem7_5:"7.5rem",rem10:"10rem",rem12_5:"12.5rem",rem15:"15rem",relSizeXS:"20rem",relSizeSmall:"24rem",relSizeMedium:"28rem",relSizeLarge:"32rem",relSizeXL:"36rem",relSize2XL:"42rem",relSize3XL:"48rem",relSize4XL:"56rem",relSize5XL:"64rem",relSize6XL:"72rem",relSize7XL:"80rem",relSizeFull:"100%",relSizeProse:"65ch",transparent:"transparent",bodyColor:"#dddddd50",defaultColor:"canvas",defaultTextColor:"canvastext",borderColor:"#aaaaaa70",headerColor:"#0571ff30",headerTextColor:"",accentColor:"blue",accentTextColor:"white",surfaceColor:"canvas",surfaceTextColor:"canvastext",noteColor:"#ffffe0",noteTextColor:"",warningColor:"#FFC107",warningTextColor:"darkgray",selectionColor:"highlight",selectionTextColor:"highlightText",hoverColor:"#A0A0A010",hoverTextColor:"CanvasText",stopColor:"red",stopTextColor:"white",goColor:"green",goTextColor:"white",acceptColor:"blue",acceptTextColor:"white",rejectColor:"red",rejectTextColor:"white",fontSizeSmall:"0.8125em",commandBgColor:"#F0F0F0",menuBgColor:"#808080",menuColor:"#F0F0F0",linkColor:"blue",buttonBackground:"lightgreen",buttonText:"gray",primaryBackground:"white",primaryColor:"gray",primaryBorderColor:"#aaaaaa70",primaryAccent:"#6145a9c9",primaryAccentText:"white",primarySurface:"#FFFFFFA0",primarySurfaceText:"gray",primaryButtonBackground:"lightblue",primaryButtonText:"gray",secondaryBackground:"#00808050",secondaryBorderColor:"#aaaaaa70",secondaryColor:"gray",secondaryAccent:"#318984a8",secondaryAccentText:"white",secondarySurface:"#FFFFFFA0",secondarySurfaceText:"gray",secondaryButtonBackground:"lightgreen",secondaryButtonText:"gray",tertiaryBackground:"#cfa55c87",tertiaryBorderColor:"#aaaaaa70",tertiaryColor:"gray",tertiaryAccent:"#e17b42cf",tertiaryAccentText:"white",tertiarySurface:"#FFFFFFA0",tertiarySurfaceText:"gray",tertiaryButtonBackground:"lightgreen",tertiaryButtonText:"gray",navBarBackground:"rgb(255 255 255 / 51%)",navBarBackDropFilter:"blur(14px) saturate(180%)"}));_export("sizeVarList",sizeVarList=[stylerVars.sizeZero,stylerVars.sizeAuto,stylerVars.sizeTiny,stylerVars.sizeSmall,stylerVars.sizeSmaller,stylerVars.sizeDefault,stylerVars.sizeLarger,stylerVars.sizeLarge,stylerVars.sizeMobileWidth,stylerVars.sizeTabletWidth,stylerVars.size10Pc,stylerVars.size20Pc,stylerVars.size25Pc,stylerVars.size30Pc,stylerVars.size33Pc,stylerVars.size40Pc,stylerVars.size50Pc,stylerVars.size60Pc,stylerVars.size66Pc,stylerVars.size70Pc,stylerVars.size75Pc,stylerVars.size80Pc,stylerVars.size90Pc,stylerVars.size100Pc,stylerVars.size10vw,stylerVars.size20vw,stylerVars.size25vw,stylerVars.size30vw,stylerVars.size33vw,stylerVars.size40vw,stylerVars.size50vw,stylerVars.size60vw,stylerVars.size66vw,stylerVars.size70vw,stylerVars.size75vw,stylerVars.size80vw,stylerVars.size90vw,stylerVars.size100vw,stylerVars.size10vh,stylerVars.size20vh,stylerVars.size25vh,stylerVars.size30vh,stylerVars.size33vh,stylerVars.size40vh,stylerVars.size50vh,stylerVars.size60vh,stylerVars.size66vh,stylerVars.size70vh,stylerVars.size75vh,stylerVars.size80vh,stylerVars.size90vh,stylerVars.size100vh,stylerVars.rem1,stylerVars.rem2,stylerVars.rem3,stylerVars.rem4,stylerVars.rem5,stylerVars.rem7_5,stylerVars.rem10,stylerVars.rem12_5,stylerVars.rem15,stylerVars.relSizeXS,stylerVars.relSizeSmall,stylerVars.relSizeMedium,stylerVars.relSizeLarge,stylerVars.relSizeXL,stylerVars.relSize2XL,stylerVars.relSize3XL,stylerVars.relSize4XL,stylerVars.relSize5XL,stylerVars.relSize6XL,stylerVars.relSize7XL,stylerVars.relSizeFull,stylerVars.relSizeProse]);_export("colorVarList",colorVarList=[stylerVars.transparent,stylerVars.defaultColor,stylerVars.defaultTextColor,stylerVars.accentColor,stylerVars.accentTextColor,stylerVars.acceptColor,stylerVars.accentTextColor,stylerVars.borderColor,stylerVars.goColor,stylerVars.goTextColor,stylerVars.headerColor,stylerVars.headerTextColor,stylerVars.hoverColor,stylerVars.hoverTextColor,stylerVars.linkColor,stylerVars.noteColor,stylerVars.noteTextColor,stylerVars.rejectColor,stylerVars.rejectTextColor,stylerVars.selectionColor,stylerVars.selectionTextColor,stylerVars.stopColor,stylerVars.stopTextColor,stylerVars.warningColor,stylerVars.warningTextColor]);_export("StylerVariable",StylerVariable=class StylerVariable{get currentValue(){if(this._currentValue){return this._currentValue}const{document}=this;if(document){return document.defaultView.getComputedStyle(document.body).getPropertyValue(this.propertyName)}return""}set currentValue(v){const{onChange}=this;this._currentValue=v;onChange===null||onChange===void 0?void 0:onChange(this.propertyName,v);AtomBinder.refreshValue(this,"currentValue")}constructor(name,value,document,onChange,propertyName=`--${name}`){this.name=name;this.value=value;this.document=document;this.onChange=onChange;this.propertyName=propertyName}toString(){return`--${this.name}: ${this.value};`}});_export("StylerPropertyOption",StylerPropertyOption=class StylerPropertyOption{constructor(name,value,description){this.name=name;this.description=description;this.value=value.toString()}toString(){return this.value.split("\n").join("\n\t")}toPair(){const description=this.description;const label=description?`${this.name} (${description})`:this.name;const value=this.name;return{label,value}}});_export("StylerProperty",StylerProperty=class StylerProperty{static create(key,styles){return new StylerProperty(key,styles)}constructor(key,values,prefix="",suffix="",media=""){this.key=key;this.prefix=prefix;this.suffix=suffix;this.media=media;this.values=[];const wrapInMedia=media?s=>`${media} {\n ${s} \n}`:s=>s;for(const k in values){if(Object.prototype.hasOwnProperty.call(values,k)){const element=values[k];this.values.push(new StylerPropertyOption(k,wrapInMedia(element.expand(`${prefix}[${this.key}=${k}]${suffix}`)),element.description))}}}toString(){return this.values.join("\n")}});_export("pair",pair=(name,value)=>(!value?(value=name,name=name.replace(" ","-")):name,{name,value}));_export("createSet",createSet=(name,values,appendGlobals=false,addCustom=false)=>{const r={};if(addCustom){r.custom=styled.css`${name}: var(--styler-${name});`}if(appendGlobals){values.push(...["inherit","initial","revert","revert-layer","unset"])}for(const iterator of values){if(typeof iterator==="string"){r[iterator]=styled.css`\t${name}: ${iterator};`;continue}r[iterator.name]=styled.css`\t${name}: ${iterator.value};`}return r});_export("createVarSet",createVarSet=(name,values,addCustom=true,addDefaults=false)=>{const r={};if(addCustom){r.custom=styled.css`${name}: var(--styler-${name});`}for(const iterator of values){r[iterator.name]=styled.css`\t${name}: var(--${iterator.name});`.withDescription(iterator.value)}if(addDefaults){for(const item of["inherit","initial","revert","revert-layer","unset"]){r[item]=styled.css`${name}: ${item}`}}return r});_export("createVarSetWith",createVarSetWith=(name,prefix,values,addCustom=true)=>{const r={};if(addCustom){r.custom=styled.css`${name}: var(--styler-${name});`}for(const iterator of values){r[iterator.name]=styled.css`\t${name}: var(--${iterator.name});`.withDescription(iterator.value)}return r})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/Styler");System.register(["@web-atoms/core/dist/style/styled","../styler/StylerSets","../styler/Styler"],(function(_export,_context){"use strict";var styled,StylerSets,stylerVars,svg,svgCross;return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_stylerStylerSets){StylerSets=_stylerStylerSets.StylerSets},function(_stylerStyler){stylerVars=_stylerStyler.stylerVars}],execute:function(){StylerSets.register("low",styled.css`
|
|
3160
|
+
`.installGlobal("[data-html-editor-element=toolbar]")}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/toolbars/EditorToolbar");System.register(["@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/XNode","./EditorToolbar"],(function(_export,_context){"use strict";var Bind,XNode,EditorToolbar;function UndoRedoToolbar(){return XNode.create(EditorToolbar,{"data-element":"undo"},XNode.create("i",{"data-click-event":"undo",title:"Undo","data-disabled":Bind.oneWay((editor=>!editor.undoRedo.canUndo)),class:"fas fa-undo"}),XNode.create("i",{"data-click-event":"redo",title:"Redo","data-disabled":Bind.oneWay((editor=>!editor.undoRedo.canRedo)),class:"fas fa-redo"}))}_export("default",UndoRedoToolbar);return{setters:[function(_webAtomsCoreDistCoreBind){Bind=_webAtomsCoreDistCoreBind.default},function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_EditorToolbar){EditorToolbar=_EditorToolbar.default}],execute:function(){}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/toolbars/UndoRedoToolbar");System.register([],(function(_export,_context){"use strict";var StylerSets;return{setters:[],execute:function(){_export("StylerSets",StylerSets={low:[],high:[],register(where,selector,element){const target=this[where];if(element){target.push(element.expand(selector));return}target.push(selector)}})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/StylerSets");System.register(["@web-atoms/core/dist/style/styled","@web-atoms/core/dist/core/AtomBinder"],(function(_export,_context){"use strict";var styled,AtomBinder,StylerVariable,StylerPropertyOption,StylerProperty,camelToSnakeCase,prepareVariables,stylerVars,sizeVarList,colorVarList,pair,createSet,createVarSet,createVarSetWith;_export({StylerVariable:void 0,StylerPropertyOption:void 0,StylerProperty:void 0});return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_webAtomsCoreDistCoreAtomBinder){AtomBinder=_webAtomsCoreDistCoreAtomBinder.AtomBinder}],execute:function(){camelToSnakeCase=str=>str.replace(/[A-Z]/g,(letter=>`-${letter.toLowerCase()}`));prepareVariables=a=>{const r={};for(const key in a){if(Object.prototype.hasOwnProperty.call(a,key)){const value=a[key];const name=camelToSnakeCase(key);r[key]={name,value,toString(){return`var(--${name}, ${value})`}}}}return r};_export("stylerVars",stylerVars=prepareVariables({sizeZero:"0",sizeThin:"1px",sizeTiny:"2px",sizeSmall:"5px",sizeSmaller:"7px",sizeDefault:"10px",sizeLarger:"15px",sizeLarge:"20px",sizeVeryLarge:"40px",sizeAuto:"auto",sizeMobileWidth:"350px",sizeTabletWidth:"1024px",size10Pc:"10%",size20Pc:"20%",size25Pc:"25%",size30Pc:"30%",size33Pc:"33.3%",size40Pc:"40%",size50Pc:"50%",size60Pc:"60%",size66Pc:"66.6%",size70Pc:"70%",size75Pc:"75%",size80Pc:"80%",size90Pc:"90%",size100Pc:"100%",size10vw:"10vw",size20vw:"20vw",size25vw:"25vw",size30vw:"30vw",size33vw:"33.3vw",size40vw:"40vw",size50vw:"50vw",size60vw:"60vw",size66vw:"66.6vw",size70vw:"70vw",size75vw:"75vw",size80vw:"80vw",size90vw:"90vw",size100vw:"100vw",size10vh:"10vh",size20vh:"20vh",size25vh:"25vh",size30vh:"30vh",size33vh:"33.3vh",size40vh:"40vh",size50vh:"50vh",size60vh:"60vh",size66vh:"66.6vh",size70vh:"70vh",size75vh:"75vh",size80vh:"80vh",size90vh:"90vh",size100vh:"100vh",rem0_5:"0.5rem",rem1:"1rem",rem1_5:"1.5rem",rem2:"2rem",rem2_5:"2.5rem",rem3:"3rem",rem4:"4rem",rem5:"5rem",rem7_5:"7.5rem",rem10:"10rem",rem12_5:"12.5rem",rem15:"15rem",relSizeXS:"20rem",relSizeSmall:"24rem",relSizeMedium:"28rem",relSizeLarge:"32rem",relSizeXL:"36rem",relSize2XL:"42rem",relSize3XL:"48rem",relSize4XL:"56rem",relSize5XL:"64rem",relSize6XL:"72rem",relSize7XL:"80rem",relSizeFull:"100%",relSizeProse:"65ch",transparent:"transparent",bodyColor:"#dddddd50",defaultColor:"canvas",defaultTextColor:"canvastext",borderColor:"#aaaaaa70",headerColor:"#0571ff30",headerTextColor:"",accentColor:"blue",accentTextColor:"white",surfaceColor:"canvas",surfaceTextColor:"canvastext",noteColor:"#ffffe0",noteTextColor:"",warningColor:"#FFC107",warningTextColor:"darkgray",selectionColor:"highlight",selectionTextColor:"highlightText",hoverColor:"#A0A0A010",hoverTextColor:"CanvasText",stopColor:"red",stopTextColor:"white",goColor:"green",goTextColor:"white",acceptColor:"blue",acceptTextColor:"white",rejectColor:"red",rejectTextColor:"white",fontSizeSmall:"0.8125em",commandBgColor:"#F0F0F0",menuBgColor:"#808080",menuColor:"#F0F0F0",linkColor:"blue",buttonBackground:"lightgreen",buttonText:"gray",primaryBackground:"white",primaryColor:"gray",primaryBorderColor:"#aaaaaa70",primaryAccent:"#6145a9c9",primaryAccentText:"white",primarySurface:"#FFFFFFA0",primarySurfaceText:"gray",primaryButtonBackground:"lightblue",primaryButtonText:"gray",secondaryBackground:"#00808050",secondaryBorderColor:"#aaaaaa70",secondaryColor:"gray",secondaryAccent:"#318984a8",secondaryAccentText:"white",secondarySurface:"#FFFFFFA0",secondarySurfaceText:"gray",secondaryButtonBackground:"lightgreen",secondaryButtonText:"gray",tertiaryBackground:"#cfa55c87",tertiaryBorderColor:"#aaaaaa70",tertiaryColor:"gray",tertiaryAccent:"#e17b42cf",tertiaryAccentText:"white",tertiarySurface:"#FFFFFFA0",tertiarySurfaceText:"gray",tertiaryButtonBackground:"lightgreen",tertiaryButtonText:"gray",navBarBackground:"rgb(255 255 255 / 51%)",navBarBackDropFilter:"blur(14px) saturate(180%)"}));_export("sizeVarList",sizeVarList=[stylerVars.sizeZero,stylerVars.sizeAuto,stylerVars.sizeThin,stylerVars.sizeTiny,stylerVars.sizeSmall,stylerVars.sizeSmaller,stylerVars.sizeDefault,stylerVars.sizeLarger,stylerVars.sizeLarge,stylerVars.sizeMobileWidth,stylerVars.sizeTabletWidth,stylerVars.size10Pc,stylerVars.size20Pc,stylerVars.size25Pc,stylerVars.size30Pc,stylerVars.size33Pc,stylerVars.size40Pc,stylerVars.size50Pc,stylerVars.size60Pc,stylerVars.size66Pc,stylerVars.size70Pc,stylerVars.size75Pc,stylerVars.size80Pc,stylerVars.size90Pc,stylerVars.size100Pc,stylerVars.size10vw,stylerVars.size20vw,stylerVars.size25vw,stylerVars.size30vw,stylerVars.size33vw,stylerVars.size40vw,stylerVars.size50vw,stylerVars.size60vw,stylerVars.size66vw,stylerVars.size70vw,stylerVars.size75vw,stylerVars.size80vw,stylerVars.size90vw,stylerVars.size100vw,stylerVars.size10vh,stylerVars.size20vh,stylerVars.size25vh,stylerVars.size30vh,stylerVars.size33vh,stylerVars.size40vh,stylerVars.size50vh,stylerVars.size60vh,stylerVars.size66vh,stylerVars.size70vh,stylerVars.size75vh,stylerVars.size80vh,stylerVars.size90vh,stylerVars.size100vh,stylerVars.rem1,stylerVars.rem2,stylerVars.rem3,stylerVars.rem4,stylerVars.rem5,stylerVars.rem7_5,stylerVars.rem10,stylerVars.rem12_5,stylerVars.rem15,stylerVars.relSizeXS,stylerVars.relSizeSmall,stylerVars.relSizeMedium,stylerVars.relSizeLarge,stylerVars.relSizeXL,stylerVars.relSize2XL,stylerVars.relSize3XL,stylerVars.relSize4XL,stylerVars.relSize5XL,stylerVars.relSize6XL,stylerVars.relSize7XL,stylerVars.relSizeFull,stylerVars.relSizeProse]);_export("colorVarList",colorVarList=[stylerVars.transparent,stylerVars.defaultColor,stylerVars.defaultTextColor,stylerVars.surfaceColor,stylerVars.surfaceTextColor,stylerVars.accentColor,stylerVars.accentTextColor,stylerVars.acceptColor,stylerVars.accentTextColor,stylerVars.borderColor,stylerVars.goColor,stylerVars.goTextColor,stylerVars.headerColor,stylerVars.headerTextColor,stylerVars.hoverColor,stylerVars.hoverTextColor,stylerVars.linkColor,stylerVars.noteColor,stylerVars.noteTextColor,stylerVars.rejectColor,stylerVars.rejectTextColor,stylerVars.selectionColor,stylerVars.selectionTextColor,stylerVars.stopColor,stylerVars.stopTextColor,stylerVars.warningColor,stylerVars.warningTextColor]);_export("StylerVariable",StylerVariable=class StylerVariable{get currentValue(){if(this._currentValue){return this._currentValue}const{document}=this;if(document){return document.defaultView.getComputedStyle(document.body).getPropertyValue(this.propertyName)}return""}set currentValue(v){const{onChange}=this;this._currentValue=v;onChange===null||onChange===void 0?void 0:onChange(this.propertyName,v);AtomBinder.refreshValue(this,"currentValue")}constructor(name,value,document,onChange,propertyName=`--${name}`){this.name=name;this.value=value;this.document=document;this.onChange=onChange;this.propertyName=propertyName}toString(){return`--${this.name}: ${this.value};`}});_export("StylerPropertyOption",StylerPropertyOption=class StylerPropertyOption{constructor(name,value,description){this.name=name;this.description=description;this.value=value.toString()}toString(){return this.value.split("\n").join("\n\t")}toPair(){const description=this.description;const label=description?`${this.name} (${description})`:this.name;const value=this.name;return{label,value}}});_export("StylerProperty",StylerProperty=class StylerProperty{static create(key,styles){return new StylerProperty(key,styles)}constructor(key,values,prefix="",suffix="",media=""){this.key=key;this.prefix=prefix;this.suffix=suffix;this.media=media;this.values=[];const wrapInMedia=media?s=>`${media} {\n ${s} \n}`:s=>s;for(const k in values){if(Object.prototype.hasOwnProperty.call(values,k)){const element=values[k];this.values.push(new StylerPropertyOption(k,wrapInMedia(element.expand(`${prefix}[${this.key}=${k}]${suffix}`)),element.description))}}}toString(){return this.values.join("\n")}});_export("pair",pair=(name,value)=>(!value?(value=name,name=name.replace(" ","-")):name,{name,value}));_export("createSet",createSet=(name,values,appendGlobals=false,addCustom=false)=>{const r={};if(addCustom){r.custom=styled.css`${name}: var(--styler-${name});`}if(appendGlobals){values.push(...["inherit","initial","revert","revert-layer","unset"])}for(const iterator of values){if(typeof iterator==="string"){r[iterator]=styled.css`\t${name}: ${iterator};`;continue}r[iterator.name]=styled.css`\t${name}: ${iterator.value};`}return r});_export("createVarSet",createVarSet=(name,values,addCustom=true,addDefaults=false)=>{const r={};if(addCustom){r.custom=styled.css`${name}: var(--styler-${name});`}for(const iterator of values){r[iterator.name]=styled.css`\t${name}: var(--${iterator.name});`.withDescription(iterator.value)}if(addDefaults){for(const item of["inherit","initial","revert","revert-layer","unset"]){r[item]=styled.css`${name}: ${item}`}}return r});_export("createVarSetWith",createVarSetWith=(name,prefix,values,addCustom=true)=>{const r={};if(addCustom){r.custom=styled.css`${name}: var(--styler-${name});`}for(const iterator of values){r[iterator.name]=styled.css`\t${name}: var(--${iterator.name});`.withDescription(iterator.value)}return r})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/styler/Styler");System.register(["@web-atoms/core/dist/style/styled","../styler/StylerSets","../styler/Styler"],(function(_export,_context){"use strict";var styled,StylerSets,stylerVars,svg,svgCross;return{setters:[function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_stylerStylerSets){StylerSets=_stylerStylerSets.StylerSets},function(_stylerStyler){stylerVars=_stylerStyler.stylerVars}],execute:function(){StylerSets.register("low",styled.css`
|
|
3161
3161
|
display: flex;
|
|
3162
3162
|
flex-direction: column;
|
|
3163
3163
|
align-items: stretch;
|
|
@@ -4434,7 +4434,7 @@ display: grid;
|
|
|
4434
4434
|
}
|
|
4435
4435
|
|
|
4436
4436
|
|
|
4437
|
-
`.installGlobal("bread-crum");selectedProperty=AtomControl.registerProperty("selected-property","v1",((ac,e,value)=>{e.innerHTML="";if(!value){return}let start=value;if(!(start===null||start===void 0?void 0:start.ownerDocument)){return}const body=start.ownerDocument.body;while(start&&start!==body.parentElement){const typeName=start.className||start.getAttribute("styler-layout");const name=typeName?start.tagName+"("+typeName+")":start.tagName;const button=document.createElement("button");button.textContent=name;button["currentElement"]=start;e.insertAdjacentElement("afterbegin",button);start=start.parentElement;if(start===body){break}}}));onBreadCrumClick=({target})=>{const editor=AtomControl.from(target);const ce=target["currentElement"];if(ce){editor.selection.update(ce)}}}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/BreadCrum");System.register(["@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/XNode","@web-atoms/web-controls/dist/basic/Select"],(function(_export,_context){"use strict";var Bind,XNode,Select;function LanguageDropDown(){return XNode.create(Select,{"style-max-width":"80px","style-border":"none","style-display":Bind.oneWay((c=>!!c.languages)),items:Bind.oneWay((c=>{var _a;return(_a=c.languages)!==null&&_a!==void 0?_a:void 0})),labelPath:x=>x.label,valuePath:x=>x.value,value:Bind.twoWaysImmediate((c=>c.language))})}_export("default",LanguageDropDown);return{setters:[function(_webAtomsCoreDistCoreBind){Bind=_webAtomsCoreDistCoreBind.default},function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_webAtomsWebControlsDistBasicSelect){Select=_webAtomsWebControlsDistBasicSelect.default}],execute:function(){}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/LanguageDropDown");System.register(["tslib","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/services/FetchBuilder"],(function(_export,_context){"use strict";var __awaiter,sleep,FetchBuilder,CustomElementsProxy,WebComponents,webComponentsInstalled,addAttributes;_export("WebComponents",void 0);return{setters:[function(_tslib){__awaiter=_tslib.__awaiter},function(_webAtomsCoreDistCoreSleep){sleep=_webAtomsCoreDistCoreSleep.default},function(_webAtomsCoreDistServicesFetchBuilder){FetchBuilder=_webAtomsCoreDistServicesFetchBuilder.default}],execute:function(){webComponentsInstalled=Symbol("webComponentsInstalled");CustomElementsProxy=class CustomElementsProxy{constructor(elements=[]){this.elements=elements}define(name,factory){this.elements.push({name,factory})}};addAttributes=(target,values)=>{Object.defineProperty(target.prototype,"editableAttributes",{enumerable:true,configurable:true,get(){return values(this)}})};_export("WebComponents",WebComponents=class WebComponents{static run(frame,doc){return __awaiter(this,void 0,void 0,(function*(){if(doc[webComponentsInstalled]){return}doc[webComponentsInstalled]=true;const url=this.path+"/dist/editable.js";frame.sandbox.add("allow-scripts");const text=yield FetchBuilder.get(url).responseAsText();const proxy=new CustomElementsProxy;const win=doc.defaultView;const globals={window:win,document:win.document,Object:win.Object,Promise,console:win.console,Boolean:win.Boolean,String:win.String,Number:win.Number,Math:win.Math,Date:win.Date,Proxy:win.Proxy,Map:win.Map,Array:win.Array,RegExp:win.RegExp,PromiseRejectionEvent:win.PromiseRejectionEvent,setTimeout:(cb,n)=>setTimeout(cb,n),setInterval:(cb,n)=>setInterval(cb,n),clearTimeout:n=>clearTimeout(n),clearInterval:n=>clearInterval(n),Reflect:win.Reflect,requestAnimationFrame:win.requestAnimationFrame,requestIdleCallback:win.requestIdleCallback,Symbol:win.Symbol,HTMLElement:win.HTMLElement,MutationObserver:class extends win.MutationObserver{constructor(a){super(a)}},IntersectionObserver:class extends win.IntersectionObserver{constructor(a){super(a)}},customElements:proxy};win.HTMLElement.prototype.addEventListener=function(type,listener,options){return win.EventTarget.prototype.addEventListener.call(this,type,listener,options)};const keys=Object.keys(globals);const init=`${keys.map((x=>`var ${x} = globalWindow[${JSON.stringify(x)}]`)).join(";\n")}`;const sourceMappingURL=this.path+"/dist/editable.js.map";const script=`\n "use strict";\n ${init};\n Symbol.dispose ||= Symbol("dispose");\n ;${text.replace("//# sourceMappingURL=editable.js.map","//# sourceMappingURL="+sourceMappingURL)}\n `;const fx=new doc.defaultView.Function("globalWindow",script);fx.call(win,globals);addAttributes(win.HTMLElement,(()=>[{name:"title",type:"string",display:"Tool Tip"},{name:"lang",type:"lang",display:"Language"}]));addAttributes(win.HTMLAnchorElement,(()=>[{name:"href",type:"string",display:"Link"},{name:"target",type:"string",suggest:["_blank"],display:"Target"}]));addAttributes(win.HTMLImageElement,(()=>[{name:"src",type:"image",display:"Image"},{name:"alt",type:"string",display:"Alt"}]));addAttributes(win.HTMLVideoElement,(()=>[{name:"src",type:"video",display:"Video"},{name:"poster",type:"image",display:"Poster"},{name:"autoplay",type:"boolean",display:"Auto Play"},{name:"loop",type:"boolean",display:"Loop"},{name:"muted",type:"boolean",display:"Muted"}]));yield sleep(10);for(const{name,factory}of proxy.elements){doc.defaultView.customElements.define(name,factory)}frame.sandbox.remove("allow-scripts")}))}});WebComponents.path=`//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.157`}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath");System.register(["@web-atoms/core/dist/core/AtomBinder"],(function(_export,_context){"use strict";var AtomBinder,UndoRedo;_export("default",void 0);return{setters:[function(_webAtomsCoreDistCoreAtomBinder){AtomBinder=_webAtomsCoreDistCoreAtomBinder.AtomBinder}],execute:function(){_export("default",UndoRedo=class UndoRedo{constructor(doc,page){this.page=page;this.undoStack=[];this.redoStack=[];this.changed=false;this.canUndo=false;this.canRedo=false;this.silent=false;this.observer=new MutationObserver((x=>this.observe(x)));this.observer.observe(doc,{childList:true,subtree:true,attributes:true,attributeOldValue:true,characterData:true,characterDataOldValue:true})}observe(records){if(this.silent){return}if(!this.changed){AtomBinder.refreshValue(this.page,"modifiedDocument");this.page.element.dispatchEvent(new CustomEvent("htmlPageChanged",{detail:null,bubbles:true}));this.changed=true}this.canUndo=true;this.canRedo=false;this.redoStack.length=0;const undo=[];const redo=[];for(const x of records){const target=x.target;const node=x.target;switch(x.type){case"attributes":const value=target.getAttributeNS(x.attributeNamespace,x.attributeName);if(value===x.oldValue){break}undo.splice(0,0,(()=>target.setAttributeNS(x.attributeNamespace,x.attributeName,x.oldValue)));redo.push((()=>target.setAttributeNS(x.attributeNamespace,x.attributeName,value)));break;case"characterData":const data=node.data;if(data===x.oldValue){break}undo.splice(0,0,(()=>node.data=x.oldValue));redo.push((()=>node.data=data));break;case"childList":const{addedNodes,removedNodes,previousSibling,nextSibling}=x;for(let index=0;index<addedNodes.length;index++){const added=addedNodes[index];let{parentNode}=added;undo.splice(0,0,(()=>added.parentNode.removeChild(added)));if(previousSibling){redo.push((()=>previousSibling.parentNode?parentNode.insertBefore(added,previousSibling.nextSibling):parentNode.append(added)));continue}if(nextSibling){parentNode!==null&&parentNode!==void 0?parentNode:parentNode=nextSibling.parentNode;redo.push((()=>parentNode.insertBefore(added,nextSibling)));continue}redo.push((()=>target.append(added)))}for(let index=0;index<removedNodes.length;index++){const removed=removedNodes[index];redo.splice(0,0,(()=>removed.parentNode.removeChild(removed)));if(previousSibling){undo.push((()=>previousSibling.nextSibling?previousSibling.parentNode.insertBefore(removed,previousSibling.nextSibling):previousSibling.parentElement.append(removed)));continue}if(nextSibling){undo.push((()=>nextSibling.parentNode.insertBefore(removed,nextSibling)));continue}undo.push((()=>target.append(removed)))}break}}if(undo.length&&redo.length){this.undoStack.push({undo,redo})}}dispose(){this.observer.disconnect();this.observer=null}undo(){if(!this.undoStack.length){this.canUndo=false;return}this.silent=true;const change=this.undoStack.pop();this.redoStack.push(change);this.canRedo=true;for(const element of change.undo){element()}this.canUndo=this.undoStack.length>0;setTimeout((()=>this.silent=false),10)}redo(){if(!this.redoStack.length){this.canRedo=false;return}this.silent=true;const change=this.redoStack.pop();this.undoStack.push(change);this.canUndo=true;for(const element of change.redo){element()}this.canRedo=this.redoStack.length>0;setTimeout((()=>this.silent=false),10)}})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/UndoRedo");System.register(["tslib"],(function(_export,_context){"use strict";var __awaiter,DuplexStream,DomHelper;_export("default",void 0);return{setters:[function(_tslib){__awaiter=_tslib.__awaiter}],execute:function(){DuplexStream=class DuplexStream{constructor(element){this.index=-1;this.array=[];const all=element.querySelectorAll("*");for(let index=0;index<all.length;index++){const e=all[index];this.array.push({e,text:e.innerHTML})}}next(){const index=this.index++;if(index>=this.array.length){return{done:true}}return{index,value:this.array[index]}}reset(index){this.index=index}};_export("default",DomHelper=class DomHelper{static applyChanges(target,src){return __awaiter(this,void 0,void 0,(function*(){const persist=[];for(const element of Array.from(target.head.children)){if(element.hasAttribute("remove-when-save")){persist.push(element);continue}if(element.tagName==="BASE"){persist.push(element)}}target.head.innerHTML=src.head.innerHTML;for(const element of persist){target.head.insertAdjacentElement("afterbegin",element)}target.body.innerHTML=src.body.innerHTML}))}})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/DomHelper");System.register(["@web-atoms/core/dist/core/XNode","./Block"],(function(_export,_context){"use strict";var XNode,Block,FlipBox;return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_Block){Block=_Block.Block}],execute:function(){_export("FlipBox",FlipBox=Block({className:"fad fa-rotate",title:"Add Flip Box",factory:()=>XNode.create("flip-box",null,XNode.create("section",{class:"first-element","styler-layout":"column"},"Default Visible",XNode.create("br",null),"Front Face ",XNode.create("br",null),"Content Here."),XNode.create("section",{class:"back-element","styler-layout":"column"},"Default Visible",XNode.create("br",null),"Back Face ",XNode.create("br",null),"Content Here."))}))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/blocks/FlipBox");System.register(["tslib","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/style/styled","@web-atoms/core/dist/view-model/Action","@web-atoms/core/dist/web/controls/AtomControl","../drag-drop/DragDropHelper","../toolbars/UndoRedoToolbar","../blocks/WrapGrid","../toolbars/EditorToolbar","../properties/Properties","../styler/StylerSet","./SelectedElement","@web-atoms/core/dist/core/AtomBinder","../blocks/ImageBox","../blocks/RowBox","../blocks/ColumnBox","../blocks/VerticalImageBox","../blocks/Image","../blocks/ImageCard","../blocks/TextBox","../blocks/Card","../blocks/List","../blocks/Components","@web-atoms/core/dist/core/types","../blocks/Buttons","../blocks/Columns2","../blocks/Columns3","../blocks/RightImageBox","@web-atoms/core/dist/web/core/AtomUI","../blocks/PriceBox","@web-atoms/core/dist/core/BindableProperty","../blocks/Billboard","../blocks/OutlineText","../blocks/Carousel","../blocks/ImageGallery","@web-atoms/web-controls/dist/basic/InlinePopup","../blocks/VideoPlayer","../blocks/BackgroundVideo","../blocks/TextMask","../blocks/MarqueeText","../blocks/ImageGrid","../blocks/BoxFrame","../blocks/InjectBox","../blocks/PDFFlipBook","../blocks/PDFViewer","../blocks/Banner","./BreadCrum","./LanguageDropDown","./webComponentsPath","./UndoRedo","./DomHelper","../blocks/FlipBox"],(function(_export,_context){"use strict";var __awaiter,__decorate,__metadata,__rest,Bind,XNode,sleep,styled,Action,AtomControl,InstallDragDropHelper,UndoRedoToolbar,WrapGrid,EditorToolbar,Properties,StylerSet,SelectedElement,AtomBinder,ImageBox,RowBox,ColumnBox,VerticalImageBox,Image,ImageCard,TextBox,Card,List,BlogComponent,TypeWriterComponent,CancelToken,UMD,ImageLink,LinkButton,Columns2,Columns3,RightImageBox,descendentElementIterator,PriceTable,BindableProperty,Billboard,OutlineText,Carousel,ImageGallery,InlinePopupButton,VideoPlayer,BackgroundVideo,TextMask,MarqueeText,ImageGrid,BoxFrame,InjectBox,PDFFlipBook,PDFViewer,Banner,BreadCrum,LanguageDropDown,WebComponents,UndoRedo,DomHelper,FlipBox,HtmlPageEditor,desktopWidth,tabletWidth,mobileWidth,languageSymbol;_export("default",void 0);return{setters:[function(_tslib){__awaiter=_tslib.__awaiter;__decorate=_tslib.__decorate;__metadata=_tslib.__metadata;__rest=_tslib.__rest},function(_webAtomsCoreDistCoreBind){Bind=_webAtomsCoreDistCoreBind.default},function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_webAtomsCoreDistCoreSleep){sleep=_webAtomsCoreDistCoreSleep.default},function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_webAtomsCoreDistViewModelAction){Action=_webAtomsCoreDistViewModelAction.default},function(_webAtomsCoreDistWebControlsAtomControl){AtomControl=_webAtomsCoreDistWebControlsAtomControl.AtomControl},function(_dragDropDragDropHelper){InstallDragDropHelper=_dragDropDragDropHelper.InstallDragDropHelper},function(_toolbarsUndoRedoToolbar){UndoRedoToolbar=_toolbarsUndoRedoToolbar.default},function(_blocksWrapGrid){WrapGrid=_blocksWrapGrid.WrapGrid},function(_toolbarsEditorToolbar){EditorToolbar=_toolbarsEditorToolbar.default},function(_propertiesProperties){Properties=_propertiesProperties.default},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_SelectedElement){SelectedElement=_SelectedElement.SelectedElement},function(_webAtomsCoreDistCoreAtomBinder){AtomBinder=_webAtomsCoreDistCoreAtomBinder.AtomBinder},function(_blocksImageBox){ImageBox=_blocksImageBox.ImageBox},function(_blocksRowBox){RowBox=_blocksRowBox.RowBox},function(_blocksColumnBox){ColumnBox=_blocksColumnBox.ColumnBox},function(_blocksVerticalImageBox){VerticalImageBox=_blocksVerticalImageBox.VerticalImageBox},function(_blocksImage){Image=_blocksImage.Image},function(_blocksImageCard){ImageCard=_blocksImageCard.ImageCard},function(_blocksTextBox){TextBox=_blocksTextBox.TextBox},function(_blocksCard){Card=_blocksCard.Card},function(_blocksList){List=_blocksList.List},function(_blocksComponents){BlogComponent=_blocksComponents.BlogComponent;TypeWriterComponent=_blocksComponents.TypeWriterComponent},function(_webAtomsCoreDistCoreTypes){CancelToken=_webAtomsCoreDistCoreTypes.CancelToken;UMD=_webAtomsCoreDistCoreTypes.UMD},function(_blocksButtons){ImageLink=_blocksButtons.ImageLink;LinkButton=_blocksButtons.LinkButton},function(_blocksColumns){Columns2=_blocksColumns.Columns2},function(_blocksColumns2){Columns3=_blocksColumns2.Columns3},function(_blocksRightImageBox){RightImageBox=_blocksRightImageBox.RightImageBox},function(_webAtomsCoreDistWebCoreAtomUI){descendentElementIterator=_webAtomsCoreDistWebCoreAtomUI.descendentElementIterator},function(_blocksPriceBox){PriceTable=_blocksPriceBox.PriceTable},function(_webAtomsCoreDistCoreBindableProperty){BindableProperty=_webAtomsCoreDistCoreBindableProperty.BindableProperty},function(_blocksBillboard){Billboard=_blocksBillboard.Billboard},function(_blocksOutlineText){OutlineText=_blocksOutlineText.OutlineText},function(_blocksCarousel){Carousel=_blocksCarousel.Carousel},function(_blocksImageGallery){ImageGallery=_blocksImageGallery.ImageGallery},function(_webAtomsWebControlsDistBasicInlinePopup){InlinePopupButton=_webAtomsWebControlsDistBasicInlinePopup.InlinePopupButton},function(_blocksVideoPlayer){VideoPlayer=_blocksVideoPlayer.VideoPlayer},function(_blocksBackgroundVideo){BackgroundVideo=_blocksBackgroundVideo.BackgroundVideo},function(_blocksTextMask){TextMask=_blocksTextMask.TextMask},function(_blocksMarqueeText){MarqueeText=_blocksMarqueeText.MarqueeText},function(_blocksImageGrid){ImageGrid=_blocksImageGrid.ImageGrid},function(_blocksBoxFrame){BoxFrame=_blocksBoxFrame.BoxFrame},function(_blocksInjectBox){InjectBox=_blocksInjectBox.InjectBox},function(_blocksPDFFlipBook){PDFFlipBook=_blocksPDFFlipBook.PDFFlipBook},function(_blocksPDFViewer){PDFViewer=_blocksPDFViewer.PDFViewer},function(_blocksBanner){Banner=_blocksBanner.Banner},function(_BreadCrum){BreadCrum=_BreadCrum.default},function(_LanguageDropDown){LanguageDropDown=_LanguageDropDown.default},function(_webComponentsPath){WebComponents=_webComponentsPath.WebComponents},function(_UndoRedo){UndoRedo=_UndoRedo.default},function(_DomHelper){DomHelper=_DomHelper.default},function(_blocksFlipBox){FlipBox=_blocksFlipBox.FlipBox}],execute:function(){styled.css`
|
|
4437
|
+
`.installGlobal("bread-crum");selectedProperty=AtomControl.registerProperty("selected-property","v1",((ac,e,value)=>{e.innerHTML="";if(!value){return}let start=value;if(!(start===null||start===void 0?void 0:start.ownerDocument)){return}const body=start.ownerDocument.body;while(start&&start!==body.parentElement){const typeName=start.className||start.getAttribute("styler-layout");const name=typeName?start.tagName+"("+typeName+")":start.tagName;const button=document.createElement("button");button.textContent=name;button["currentElement"]=start;e.insertAdjacentElement("afterbegin",button);start=start.parentElement;if(start===body){break}}}));onBreadCrumClick=({target})=>{const editor=AtomControl.from(target);const ce=target["currentElement"];if(ce){editor.selection.update(ce)}}}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/BreadCrum");System.register(["@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/XNode","@web-atoms/web-controls/dist/basic/Select"],(function(_export,_context){"use strict";var Bind,XNode,Select;function LanguageDropDown(){return XNode.create(Select,{"style-max-width":"80px","style-border":"none","style-display":Bind.oneWay((c=>!!c.languages)),items:Bind.oneWay((c=>{var _a;return(_a=c.languages)!==null&&_a!==void 0?_a:void 0})),labelPath:x=>x.label,valuePath:x=>x.value,value:Bind.twoWaysImmediate((c=>c.language))})}_export("default",LanguageDropDown);return{setters:[function(_webAtomsCoreDistCoreBind){Bind=_webAtomsCoreDistCoreBind.default},function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_webAtomsWebControlsDistBasicSelect){Select=_webAtomsWebControlsDistBasicSelect.default}],execute:function(){}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/LanguageDropDown");System.register(["tslib","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/services/FetchBuilder"],(function(_export,_context){"use strict";var __awaiter,sleep,FetchBuilder,CustomElementsProxy,WebComponents,webComponentsInstalled,addAttributes;_export("WebComponents",void 0);return{setters:[function(_tslib){__awaiter=_tslib.__awaiter},function(_webAtomsCoreDistCoreSleep){sleep=_webAtomsCoreDistCoreSleep.default},function(_webAtomsCoreDistServicesFetchBuilder){FetchBuilder=_webAtomsCoreDistServicesFetchBuilder.default}],execute:function(){webComponentsInstalled=Symbol("webComponentsInstalled");CustomElementsProxy=class CustomElementsProxy{constructor(elements=[]){this.elements=elements}define(name,factory){this.elements.push({name,factory})}};addAttributes=(target,values)=>{Object.defineProperty(target.prototype,"editableAttributes",{enumerable:true,configurable:true,get(){return values(this)}})};_export("WebComponents",WebComponents=class WebComponents{static run(frame,doc){return __awaiter(this,void 0,void 0,(function*(){if(doc[webComponentsInstalled]){return}doc[webComponentsInstalled]=true;const url=this.path+"/dist/editable.js";frame.sandbox.add("allow-scripts");const text=yield FetchBuilder.get(url).responseAsText();const proxy=new CustomElementsProxy;const win=doc.defaultView;const globals={window:win,document:win.document,Object:win.Object,Promise,console:win.console,Boolean:win.Boolean,String:win.String,Number:win.Number,Math:win.Math,Date:win.Date,Proxy:win.Proxy,Map:win.Map,Array:win.Array,RegExp:win.RegExp,PromiseRejectionEvent:win.PromiseRejectionEvent,setTimeout:(cb,n)=>setTimeout(cb,n),setInterval:(cb,n)=>setInterval(cb,n),clearTimeout:n=>clearTimeout(n),clearInterval:n=>clearInterval(n),Reflect:win.Reflect,requestAnimationFrame:win.requestAnimationFrame,requestIdleCallback:win.requestIdleCallback,Symbol:win.Symbol,HTMLElement:win.HTMLElement,MutationObserver:class extends win.MutationObserver{constructor(a){super(a)}},IntersectionObserver:class extends win.IntersectionObserver{constructor(a){super(a)}},customElements:proxy};win.HTMLElement.prototype.addEventListener=function(type,listener,options){return win.EventTarget.prototype.addEventListener.call(this,type,listener,options)};const keys=Object.keys(globals);const init=`${keys.map((x=>`var ${x} = globalWindow[${JSON.stringify(x)}]`)).join(";\n")}`;const sourceMappingURL=this.path+"/dist/editable.js.map";const script=`\n "use strict";\n ${init};\n Symbol.dispose ||= Symbol("dispose");\n ;${text.replace("//# sourceMappingURL=editable.js.map","//# sourceMappingURL="+sourceMappingURL)}\n `;const fx=new doc.defaultView.Function("globalWindow",script);fx.call(win,globals);addAttributes(win.HTMLElement,(()=>[{name:"title",type:"string",display:"Tool Tip"},{name:"lang",type:"lang",display:"Language"}]));addAttributes(win.HTMLAnchorElement,(()=>[{name:"href",type:"string",display:"Link"},{name:"target",type:"string",suggest:["_blank"],display:"Target"}]));addAttributes(win.HTMLImageElement,(()=>[{name:"src",type:"image",display:"Image"},{name:"alt",type:"string",display:"Alt"}]));addAttributes(win.HTMLVideoElement,(()=>[{name:"src",type:"video",display:"Video"},{name:"poster",type:"image",display:"Poster"},{name:"autoplay",type:"boolean",display:"Auto Play"},{name:"loop",type:"boolean",display:"Loop"},{name:"muted",type:"boolean",display:"Muted"}]));yield sleep(10);for(const{name,factory}of proxy.elements){doc.defaultView.customElements.define(name,factory)}frame.sandbox.remove("allow-scripts")}))}});WebComponents.path=`//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.158`}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/webComponentsPath");System.register(["@web-atoms/core/dist/core/AtomBinder"],(function(_export,_context){"use strict";var AtomBinder,UndoRedo;_export("default",void 0);return{setters:[function(_webAtomsCoreDistCoreAtomBinder){AtomBinder=_webAtomsCoreDistCoreAtomBinder.AtomBinder}],execute:function(){_export("default",UndoRedo=class UndoRedo{constructor(doc,page){this.page=page;this.undoStack=[];this.redoStack=[];this.changed=false;this.canUndo=false;this.canRedo=false;this.silent=false;this.observer=new MutationObserver((x=>this.observe(x)));this.observer.observe(doc,{childList:true,subtree:true,attributes:true,attributeOldValue:true,characterData:true,characterDataOldValue:true})}observe(records){if(this.silent){return}if(!this.changed){AtomBinder.refreshValue(this.page,"modifiedDocument");this.page.element.dispatchEvent(new CustomEvent("htmlPageChanged",{detail:null,bubbles:true}));this.changed=true}this.canUndo=true;this.canRedo=false;this.redoStack.length=0;const undo=[];const redo=[];for(const x of records){const target=x.target;const node=x.target;switch(x.type){case"attributes":const value=target.getAttributeNS(x.attributeNamespace,x.attributeName);if(value===x.oldValue){break}undo.splice(0,0,(()=>target.setAttributeNS(x.attributeNamespace,x.attributeName,x.oldValue)));redo.push((()=>target.setAttributeNS(x.attributeNamespace,x.attributeName,value)));break;case"characterData":const data=node.data;if(data===x.oldValue){break}undo.splice(0,0,(()=>node.data=x.oldValue));redo.push((()=>node.data=data));break;case"childList":const{addedNodes,removedNodes,previousSibling,nextSibling}=x;for(let index=0;index<addedNodes.length;index++){const added=addedNodes[index];let{parentNode}=added;undo.splice(0,0,(()=>added.parentNode.removeChild(added)));if(previousSibling){redo.push((()=>previousSibling.parentNode?parentNode.insertBefore(added,previousSibling.nextSibling):parentNode.append(added)));continue}if(nextSibling){parentNode!==null&&parentNode!==void 0?parentNode:parentNode=nextSibling.parentNode;redo.push((()=>parentNode.insertBefore(added,nextSibling)));continue}redo.push((()=>target.append(added)))}for(let index=0;index<removedNodes.length;index++){const removed=removedNodes[index];redo.splice(0,0,(()=>removed.parentNode.removeChild(removed)));if(previousSibling){undo.push((()=>previousSibling.nextSibling?previousSibling.parentNode.insertBefore(removed,previousSibling.nextSibling):previousSibling.parentElement.append(removed)));continue}if(nextSibling){undo.push((()=>nextSibling.parentNode.insertBefore(removed,nextSibling)));continue}undo.push((()=>target.append(removed)))}break}}if(undo.length&&redo.length){this.undoStack.push({undo,redo})}}dispose(){this.observer.disconnect();this.observer=null}undo(){if(!this.undoStack.length){this.canUndo=false;return}this.silent=true;const change=this.undoStack.pop();this.redoStack.push(change);this.canRedo=true;for(const element of change.undo){element()}this.canUndo=this.undoStack.length>0;setTimeout((()=>this.silent=false),10)}redo(){if(!this.redoStack.length){this.canRedo=false;return}this.silent=true;const change=this.redoStack.pop();this.undoStack.push(change);this.canUndo=true;for(const element of change.redo){element()}this.canRedo=this.redoStack.length>0;setTimeout((()=>this.silent=false),10)}})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/UndoRedo");System.register(["tslib"],(function(_export,_context){"use strict";var __awaiter,DuplexStream,DomHelper;_export("default",void 0);return{setters:[function(_tslib){__awaiter=_tslib.__awaiter}],execute:function(){DuplexStream=class DuplexStream{constructor(element){this.index=-1;this.array=[];const all=element.querySelectorAll("*");for(let index=0;index<all.length;index++){const e=all[index];this.array.push({e,text:e.innerHTML})}}next(){const index=this.index++;if(index>=this.array.length){return{done:true}}return{index,value:this.array[index]}}reset(index){this.index=index}};_export("default",DomHelper=class DomHelper{static applyChanges(target,src){return __awaiter(this,void 0,void 0,(function*(){const persist=[];for(const element of Array.from(target.head.children)){if(element.hasAttribute("remove-when-save")){persist.push(element);continue}if(element.tagName==="BASE"){persist.push(element)}}target.head.innerHTML=src.head.innerHTML;for(const element of persist){target.head.insertAdjacentElement("afterbegin",element)}target.body.innerHTML=src.body.innerHTML}))}})}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/editor/DomHelper");System.register(["@web-atoms/core/dist/core/XNode","./Block"],(function(_export,_context){"use strict";var XNode,Block,FlipBox;return{setters:[function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_Block){Block=_Block.Block}],execute:function(){_export("FlipBox",FlipBox=Block({className:"fad fa-rotate",title:"Add Flip Box",factory:()=>XNode.create("flip-box",null,XNode.create("section",{class:"first-element","styler-layout":"column"},"Default Visible",XNode.create("br",null),"Front Face ",XNode.create("br",null),"Content Here."),XNode.create("section",{class:"back-element","styler-layout":"column"},"Default Visible",XNode.create("br",null),"Back Face ",XNode.create("br",null),"Content Here."))}))}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/blocks/FlipBox");System.register(["tslib","@web-atoms/core/dist/core/Bind","@web-atoms/core/dist/core/XNode","@web-atoms/core/dist/core/sleep","@web-atoms/core/dist/style/styled","@web-atoms/core/dist/view-model/Action","@web-atoms/core/dist/web/controls/AtomControl","../drag-drop/DragDropHelper","../toolbars/UndoRedoToolbar","../blocks/WrapGrid","../toolbars/EditorToolbar","../properties/Properties","../styler/StylerSet","./SelectedElement","@web-atoms/core/dist/core/AtomBinder","../blocks/ImageBox","../blocks/RowBox","../blocks/ColumnBox","../blocks/VerticalImageBox","../blocks/Image","../blocks/ImageCard","../blocks/TextBox","../blocks/Card","../blocks/List","../blocks/Components","@web-atoms/core/dist/core/types","../blocks/Buttons","../blocks/Columns2","../blocks/Columns3","../blocks/RightImageBox","@web-atoms/core/dist/web/core/AtomUI","../blocks/PriceBox","@web-atoms/core/dist/core/BindableProperty","../blocks/Billboard","../blocks/OutlineText","../blocks/Carousel","../blocks/ImageGallery","@web-atoms/web-controls/dist/basic/InlinePopup","../blocks/VideoPlayer","../blocks/BackgroundVideo","../blocks/TextMask","../blocks/MarqueeText","../blocks/ImageGrid","../blocks/BoxFrame","../blocks/InjectBox","../blocks/PDFFlipBook","../blocks/PDFViewer","../blocks/Banner","./BreadCrum","./LanguageDropDown","./webComponentsPath","./UndoRedo","./DomHelper","../blocks/FlipBox"],(function(_export,_context){"use strict";var __awaiter,__decorate,__metadata,__rest,Bind,XNode,sleep,styled,Action,AtomControl,InstallDragDropHelper,UndoRedoToolbar,WrapGrid,EditorToolbar,Properties,StylerSet,SelectedElement,AtomBinder,ImageBox,RowBox,ColumnBox,VerticalImageBox,Image,ImageCard,TextBox,Card,List,BlogComponent,TypeWriterComponent,CancelToken,UMD,ImageLink,LinkButton,Columns2,Columns3,RightImageBox,descendentElementIterator,PriceTable,BindableProperty,Billboard,OutlineText,Carousel,ImageGallery,InlinePopupButton,VideoPlayer,BackgroundVideo,TextMask,MarqueeText,ImageGrid,BoxFrame,InjectBox,PDFFlipBook,PDFViewer,Banner,BreadCrum,LanguageDropDown,WebComponents,UndoRedo,DomHelper,FlipBox,HtmlPageEditor,desktopWidth,tabletWidth,mobileWidth,languageSymbol;_export("default",void 0);return{setters:[function(_tslib){__awaiter=_tslib.__awaiter;__decorate=_tslib.__decorate;__metadata=_tslib.__metadata;__rest=_tslib.__rest},function(_webAtomsCoreDistCoreBind){Bind=_webAtomsCoreDistCoreBind.default},function(_webAtomsCoreDistCoreXNode){XNode=_webAtomsCoreDistCoreXNode.default},function(_webAtomsCoreDistCoreSleep){sleep=_webAtomsCoreDistCoreSleep.default},function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_webAtomsCoreDistViewModelAction){Action=_webAtomsCoreDistViewModelAction.default},function(_webAtomsCoreDistWebControlsAtomControl){AtomControl=_webAtomsCoreDistWebControlsAtomControl.AtomControl},function(_dragDropDragDropHelper){InstallDragDropHelper=_dragDropDragDropHelper.InstallDragDropHelper},function(_toolbarsUndoRedoToolbar){UndoRedoToolbar=_toolbarsUndoRedoToolbar.default},function(_blocksWrapGrid){WrapGrid=_blocksWrapGrid.WrapGrid},function(_toolbarsEditorToolbar){EditorToolbar=_toolbarsEditorToolbar.default},function(_propertiesProperties){Properties=_propertiesProperties.default},function(_stylerStylerSet){StylerSet=_stylerStylerSet.StylerSet},function(_SelectedElement){SelectedElement=_SelectedElement.SelectedElement},function(_webAtomsCoreDistCoreAtomBinder){AtomBinder=_webAtomsCoreDistCoreAtomBinder.AtomBinder},function(_blocksImageBox){ImageBox=_blocksImageBox.ImageBox},function(_blocksRowBox){RowBox=_blocksRowBox.RowBox},function(_blocksColumnBox){ColumnBox=_blocksColumnBox.ColumnBox},function(_blocksVerticalImageBox){VerticalImageBox=_blocksVerticalImageBox.VerticalImageBox},function(_blocksImage){Image=_blocksImage.Image},function(_blocksImageCard){ImageCard=_blocksImageCard.ImageCard},function(_blocksTextBox){TextBox=_blocksTextBox.TextBox},function(_blocksCard){Card=_blocksCard.Card},function(_blocksList){List=_blocksList.List},function(_blocksComponents){BlogComponent=_blocksComponents.BlogComponent;TypeWriterComponent=_blocksComponents.TypeWriterComponent},function(_webAtomsCoreDistCoreTypes){CancelToken=_webAtomsCoreDistCoreTypes.CancelToken;UMD=_webAtomsCoreDistCoreTypes.UMD},function(_blocksButtons){ImageLink=_blocksButtons.ImageLink;LinkButton=_blocksButtons.LinkButton},function(_blocksColumns){Columns2=_blocksColumns.Columns2},function(_blocksColumns2){Columns3=_blocksColumns2.Columns3},function(_blocksRightImageBox){RightImageBox=_blocksRightImageBox.RightImageBox},function(_webAtomsCoreDistWebCoreAtomUI){descendentElementIterator=_webAtomsCoreDistWebCoreAtomUI.descendentElementIterator},function(_blocksPriceBox){PriceTable=_blocksPriceBox.PriceTable},function(_webAtomsCoreDistCoreBindableProperty){BindableProperty=_webAtomsCoreDistCoreBindableProperty.BindableProperty},function(_blocksBillboard){Billboard=_blocksBillboard.Billboard},function(_blocksOutlineText){OutlineText=_blocksOutlineText.OutlineText},function(_blocksCarousel){Carousel=_blocksCarousel.Carousel},function(_blocksImageGallery){ImageGallery=_blocksImageGallery.ImageGallery},function(_webAtomsWebControlsDistBasicInlinePopup){InlinePopupButton=_webAtomsWebControlsDistBasicInlinePopup.InlinePopupButton},function(_blocksVideoPlayer){VideoPlayer=_blocksVideoPlayer.VideoPlayer},function(_blocksBackgroundVideo){BackgroundVideo=_blocksBackgroundVideo.BackgroundVideo},function(_blocksTextMask){TextMask=_blocksTextMask.TextMask},function(_blocksMarqueeText){MarqueeText=_blocksMarqueeText.MarqueeText},function(_blocksImageGrid){ImageGrid=_blocksImageGrid.ImageGrid},function(_blocksBoxFrame){BoxFrame=_blocksBoxFrame.BoxFrame},function(_blocksInjectBox){InjectBox=_blocksInjectBox.InjectBox},function(_blocksPDFFlipBook){PDFFlipBook=_blocksPDFFlipBook.PDFFlipBook},function(_blocksPDFViewer){PDFViewer=_blocksPDFViewer.PDFViewer},function(_blocksBanner){Banner=_blocksBanner.Banner},function(_BreadCrum){BreadCrum=_BreadCrum.default},function(_LanguageDropDown){LanguageDropDown=_LanguageDropDown.default},function(_webComponentsPath){WebComponents=_webComponentsPath.WebComponents},function(_UndoRedo){UndoRedo=_UndoRedo.default},function(_DomHelper){DomHelper=_DomHelper.default},function(_blocksFlipBox){FlipBox=_blocksFlipBox.FlipBox}],execute:function(){styled.css`
|
|
4438
4438
|
display: grid;
|
|
4439
4439
|
grid-template-columns: auto 1fr auto;
|
|
4440
4440
|
grid-template-rows: auto 1fr auto;
|