@creaditor/newsletter-starterkit 1.0.36 → 1.0.37-preview.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/dist/1630.creaditor.bundle.js +33 -1
- package/dist/1630.creaditor.bundle.js.gz +0 -0
- package/dist/2397.creaditor.bundle.js +1 -1
- package/dist/2397.creaditor.bundle.js.gz +0 -0
- package/dist/289.creaditor.bundle.js +171 -0
- package/dist/289.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/289.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/289.creaditor.bundle.js.gz +0 -0
- package/dist/3794.creaditor.bundle.js +27 -23
- package/dist/3794.creaditor.bundle.js.gz +0 -0
- package/dist/4217.creaditor.bundle.js +1 -1
- package/dist/4217.creaditor.bundle.js.gz +0 -0
- package/dist/6652.creaditor.bundle.js +1 -1
- package/dist/6652.creaditor.bundle.js.gz +0 -0
- package/dist/6961.creaditor.bundle.js +2 -2
- package/dist/6961.creaditor.bundle.js.gz +0 -0
- package/dist/7837.creaditor.bundle.js +4 -4
- package/dist/7837.creaditor.bundle.js.gz +0 -0
- package/dist/7988.creaditor.bundle.js +1 -1
- package/dist/7988.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +610 -139
- package/dist/creaditor.bundle.js.gz +0 -0
- package/dist/service-worker.js +1 -1
- package/dist/service-worker.js.gz +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -241,7 +241,27 @@ function NewsletterEditor() {
|
|
|
241
241
|
|
|
242
242
|
## Changelog
|
|
243
243
|
|
|
244
|
-
###
|
|
244
|
+
### 1.0.37-preview.2
|
|
245
|
+
|
|
246
|
+
**Merged updates since `1.0.37-preview.1`**
|
|
247
|
+
|
|
248
|
+
- **Link editing and picker fixes:**
|
|
249
|
+
- Improved link insertion and unlink behavior in the text editor so selection handling is more reliable and link styles do not leak into surrounding content.
|
|
250
|
+
- Fixed link-related styling resets after insertion and improved URL processing behavior.
|
|
251
|
+
- **Transfer data / sharing workflow:**
|
|
252
|
+
- Replaced the old import/export panel with a new transfer data flow in the sidebar.
|
|
253
|
+
- Added UI for generating and entering access codes, API versioning support, improved template loading feedback, and multilingual strings for the new flow.
|
|
254
|
+
- Cleaned up related state handling, subscriptions, and timers for better stability.
|
|
255
|
+
- **Custom bullet enhancements:**
|
|
256
|
+
- Added support for custom bullet icons, including icon URL handling, default images, color and size controls, and conditional icon options in the sidebar.
|
|
257
|
+
- Improved spacing and styling support for bullet content.
|
|
258
|
+
- **Editor polish:**
|
|
259
|
+
- Swapped the undo/redo icons to match expected behavior.
|
|
260
|
+
- Added smaller editor consistency fixes, including dataset assignment during sorting and preserving default button text when creating new buttons.
|
|
261
|
+
|
|
262
|
+
### 1.0.37-preview.1
|
|
263
|
+
|
|
264
|
+
**Link picker URL input**
|
|
245
265
|
|
|
246
266
|
- **Fixed:** Typing a dot (`.`) in the URL field (e.g. `sendmsg.co`) no longer removes the character. The input was controlled from parent state and re-renders were overwriting the value before the dot was applied.
|
|
247
267
|
- **Protocol input (`@creaditor/linkpicker`):**
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1630],{41630:(e,t,a)=>{a.r(t),a.d(t,{default:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1630],{41630:(e,t,a)=>{a.r(t),a.d(t,{default:()=>v});var n=a(8427),o=a(1547);const r="https://img.creaditor.ai/countdown.gif";function l(e){let{color:t,background:a,font:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=new URLSearchParams;if(l.set("loop","10m"),l.set("template",String(e)),t){const e=(0,o.Z)(t).toHexString();l.set("color",e.startsWith("#")?e:"#"+e)}if("transparent"===a)l.set("background","transparent");else if(a){const e=(0,o.Z)(a).toHexString();l.set("background",e.startsWith("#")?e:"#"+e)}return n&&l.set("font",n),`${r}?${l.toString().replace(/#/g,"%23")}`}const i=[{value:1,label:"1 — Big HH:MM:SS"},{value:2,label:"2 — Label + smaller time"},{value:3,label:"3 — Four boxes D/H/M/S"},{value:4,label:"4 — Pill badge"},{value:5,label:"5 — Split (label, line, time)"},{value:6,label:"6 — Dark strip"},{value:7,label:"7 — Accent bar"},{value:8,label:"8 — Dots HH·MM·SS"},{value:9,label:"9 — Four circles"}],s=["Inter","Roboto","Poppins","amatic-sc","heebo","hebrew","saira","titillium-web","rubik-storm","bitcount-single","tagesschrift"],c=[{value:"he",label:"Hebrew"},{value:"en",label:"English"},{value:"ar",label:"Arabic"}],d=[{value:"target",label:"תאריך"},{value:"loop",label:"מחזורי"}],p=e=>{{const{component:t,commands:a}=e;return{select:e=>{let{changeTab:t,tab:a}=e},tabs:e=>{const t=[{text:"time"},{text:"design"}];return t.forEach((t=>t.selected=t.selected=t.text===e)),t},layout:e=>{let{tab:o}=e;const r="loop"===(t.props.countdownMode||"target"),p=t.props.language||"he",u="he"===p?"דקות (5m, 10m, 1h, 1d)":"Minutes (5m, 10m, 1h, 1d)",g=(()=>{const e=t.props.loopDuration;if(null==e||""===e)return 10;if("number"==typeof e&&!Number.isNaN(e))return e;const a=String(e).trim();return/^\d+m$/.test(a)?parseInt(a,10)||10:/^\d+$/.test(a)&&parseInt(a,10)||10})();return[{type:"dropdown",title:"סוג",active:!0,value:t.props.countdownMode||"target",selected:t.props.countdownMode||"target",items:d,onChange:e=>{a.execCommand("countdownMode",e.target.value)}},{type:"datetime",value:t.props.date,active:!r,onChange:e=>{const t=e.target.value;a.execCommand("date",t.toString())}},{type:"input",inputType:"number",title:u,active:r,value:g,placeholder:"10",onChange:e=>{a.execCommand("loopDuration",(e.target.value||"").trim())}},{type:"slider",title:"size",max:500,min:200,value:parseFloat(t.props.containerWidth),active:"design"===o.text,onInput:e=>{const t=e.target.value;a.execCommand("containerWidth",t+"px")}},{type:"divider",active:"design"===o.text},{type:"heading",level:5,text:"layout",active:"design"===o.text},{type:"custom",active:"design"===o.text,node:()=>{const e=Number(t.props.template)||1,o={color:t.props.numberColor,background:t.props.containerBg,font:t.props.numberFontFamily};return n.dy`<cdtr-editor-container>
|
|
2
|
+
<cdtr-title><lang-text text="template"></lang-text></cdtr-title>
|
|
3
|
+
<cdtr-dropdown
|
|
4
|
+
style="width:100%;"
|
|
5
|
+
.value=${String(e)}
|
|
6
|
+
@change=${e=>{const t=Number(e.target.value);a.execCommand("template",t)}}
|
|
7
|
+
>
|
|
8
|
+
<cdtr-dropdown-button
|
|
9
|
+
style="width:100%;"
|
|
10
|
+
class="dropdown-button"
|
|
11
|
+
slot="trigger"
|
|
12
|
+
>
|
|
13
|
+
<img
|
|
14
|
+
src="${l(e,o)}"
|
|
15
|
+
alt=""
|
|
16
|
+
style="height:28px;object-fit:contain;width:100%;"
|
|
17
|
+
/>
|
|
18
|
+
</cdtr-dropdown-button>
|
|
19
|
+
<div slot="content" style="min-width:200px;max-height:320px;">
|
|
20
|
+
${i.map((t=>{const a=l(t.value,o),r=t.value===e;return n.dy`<cdtr-dropdown-item
|
|
21
|
+
.focused=${r}
|
|
22
|
+
.selected=${r}
|
|
23
|
+
value="${t.value}"
|
|
24
|
+
>
|
|
25
|
+
<img
|
|
26
|
+
src="${a}"
|
|
27
|
+
alt=""
|
|
28
|
+
style="height:36px;object-fit:contain;width:100%;border-radius:4px;"
|
|
29
|
+
/>
|
|
30
|
+
</cdtr-dropdown-item>`}))}
|
|
31
|
+
</div>
|
|
32
|
+
</cdtr-dropdown>
|
|
33
|
+
</cdtr-editor-container>`}},{type:"dropdown",title:"font",active:"design"===o.text,value:t.props.numberFontFamily||"Inter",items:s.map((e=>({value:e,label:e}))),onChange:e=>{a.execCommand("numberFontFamily",e.target.value)}},{type:"divider",active:"design"===o.text},{type:"heading",level:5,text:"background",active:"design"===o.text},{type:"checkbox",title:"transparent (beta)",checked:"transparent"===t.props.containerBg,active:"design"===o.text,onChange:e=>{const t=e.target.checked;a.execCommand("containerBg",t?"transparent":"#ffffff")}},{type:"colorpicker",title:"color",alpha:!1,value:"transparent"===t.props.containerBg?"#ffffff":t.props.containerBg,active:"design"===o.text&&"transparent"!==t.props.containerBg,onChange:e=>{a.execCommand("containerBg",e.target.value)}},{type:"divider",active:"design"===o.text},{type:"heading",level:5,text:"numbers",active:"design"===o.text},{type:"colorpicker",title:"color",alpha:!1,value:t.props.numberColor,active:"design"===o.text,onChange:e=>{a.execCommand("numberColor",e.target.value)}},{type:"divider",active:"design"===o.text},{type:"heading",level:5,text:"labels",active:"design"===o.text},{type:"dropdown",title:"language",active:"design"===o.text,value:t.props.lang||"he",items:c,onChange:e=>{a.execCommand("lang",e.target.value)}},{type:"colorpicker",title:"color",alpha:!1,value:t.props.labelColor,active:"design"===o.text,onChange:e=>{a.execCommand("labelColor",e.target.value)}},{type:"divider",active:"design"===o.text}]}}}},u=()=>({set:(e,t,a)=>{switch(t){case"containerWidth":case"countdownMode":case"loopDuration":case"template":case"labelText":case"numberFontFamily":case"labelSize":case"numberSize":case"colBorderSize":case"hasLabels":case"lang":case"labelFontFamily":case"date":return e[t]=a,!0;case"labelColor":case"colBg":case"numberColor":case"colBorderColor":return a="#"+(0,o.Z)(a).toHex(),e[t]=a,!0;case"containerBg":return"transparent"===a?(e[t]="transparent",!0):(e[t]="#"+(0,o.Z)(a).toHex(),!0)}}});var g=a(70235);const m="https://img.creaditor.ai/countdown.gif",b=["inter","roboto","poppins","amatic-sc","heebo","hebrew","saira","titillium-web","rubik-storm","bitcount-single","tagesschrift"];function h(e){let{target:t,loop:a,template:n=1,color:r,background:l,font:i,hasLabels:s,labelText:c,language:d}=e;const p=new URLSearchParams;if(a&&String(a).trim())p.set("loop",String(a).trim());else{if(!t)return"";p.set("target",t)}if(p.set("template",String(n)),r){const e=(0,o.Z)(r).toHexString();p.set("color",e.startsWith("#")?e:"#"+e)}if("transparent"===l)p.set("background","transparent");else if(l){const e=(0,o.Z)(l).toHexString(),t=e.startsWith("#")?e:"#"+e;p.set("background",t)}i&&b.includes(String(i).toLowerCase().replace(/\s/g,"-"))&&p.set("font",i),p.set("text","");const u=function(e){if(!e)return null;const t=String(e).toLowerCase();return"he"===t||"hebrew"===t||"iw"===t?"he":"ar"===t||"arabic"===t?"ar":null}(d);u&&p.set("lang",u);const g=p.toString().replace(/#/g,"%23");return`${m}?${g}`}const v=()=>{const e="countdown-v2";return{name:e,create:t=>{let{createElement:a,compose:n,helpers:r}=t;const l=n.props,i=document.createElement("div");i.style.position="relative";const s=document.createElement("img");s.style.maxWidth="100%";const c=document.createElement("cdtr-block-loader");function d(){let{key:e,value:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c.parentElement||"containerWidth"===e||i.append(c);const a=m.closest("col");let r;if(a&&(r=a.props?.style?.background),!r){const e=m.closest("block");e&&(r=r=e.props?.style?.background)}if(!r){const e=m.closest("section");e&&(r=r=e.props?.style?.background)}if(!r){const e=m.closest("root");e&&(r=r=e.props?.style?.background)}if("transparent"===r&&(r="#fff"),r||(r="#fff"),"transparent"!==n.props.containerBg){const e=(0,o.Z)(r);n.props.containerBg="#"+e.toHex()}const d=g.h.get("config","language")||l.language||"he",p=l.countdownMode||"target",u="target"===p?function(e){const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}(n.props.date):null,b="loop"===p?function(e){if(null==e||""===e)return"10m";const t=String(e).trim();return/^\d+$/.test(t)?t+"m":t}(l.loopDuration):null;if("target"===p&&!u)return;if("loop"===p&&!b)return;const v=h({target:"target"===p?u:void 0,loop:"loop"===p?b:void 0,template:l.template??1,color:l.numberColor,background:"transparent"===l.containerBg?"transparent":l.containerBg,font:l.numberFontFamily,hasLabels:!!l.hasLabels,labelText:l.labelText,language:d});s.src=v,s.addEventListener("load",(()=>{setTimeout((()=>{c.remove()}),0)}),{once:!0}),l.containerWidth&&(s.style.width=l.containerWidth)}c.style.position="absolute",c.style.left="50%",c.style.top="50%",c.style.transform="translate(-50%,-50%)",c.color="var(--primary-color)",i.append(s);const m=a({name:e,id:n.id,template:i,defaultProps:{hasColons:!0,hasLabels:!0,date:"",countdownMode:"target",loopDuration:10,language:"he",style:{},classList:[],containerWidth:"800px",containerBg:"#fff",containerRadius:"0",colBg:"transparent",colBorderStyle:"none",colBorderSize:"0",colBorderColor:"none",colBorderPadding:"0",colBorderRadius:"100px",template:1,labelText:"",numberSize:"30px",numberColor:"black",numberFontFamily:"Inter",labelSize:"14px",labelColor:"black",labelfontFamily:"Arial"},render:e=>{d(e)},validator:u(),draggable:{group:"element"},droppable:{group:"element"},handleBar:!0,schema:n.schema,onSelect:e=>{s.classList.add(e)},onDeselect:e=>{s.classList.remove(e)},elementProps:n,remove:()=>{i.remove()},createEditor:p});return d(),m}}}}}]);
|
|
Binary file
|
|
@@ -654,7 +654,7 @@
|
|
|
654
654
|
></cdtr-gallery-files>
|
|
655
655
|
</cdtr-drawer>`}}(0,i.Z)(v,"styles",r.iv``),(0,i.Z)(v,"properties",{folders:{type:Array},files:{type:Array},pageCount:{type:Number},prevUrl:{type:String},nextUrl:{type:String},opened:{type:Boolean},multi:{type:Boolean},uploadStatus:{type:Object}}),customElements.define("cdtr-gallery",v)},6961:(t,e,s)=>{s.r(e),s.d(e,{TitleEditor:()=>ft});var i=s(56666);const r=globalThis,o=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),l=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&l.set(e,t))}return t}toString(){return this.cssText}}const d=(t,e)=>{if(o)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),i=r.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=s.cssText,t.appendChild(e)}},c=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,{is:h,defineProperty:p,getOwnPropertyDescriptor:u,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,v=globalThis,y=v.trustedTypes,b=y?y.emptyScript:"",$=v.reactiveElementPolyfillSupport,x=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},_=(t,e)=>!h(t,e),E={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:_};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;class A extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=E){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&p(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);r?.call(this,e),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??E}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const t=this.properties,e=[...f(t),...m(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return d(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:w).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=i,this[i]=r.fromAttribute(e,t.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??_)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},o){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[x("elementProperties")]=new Map,A[x("finalized")]=new Map,$?.({ReactiveElement:A}),(v.reactiveElementVersions??=[]).push("2.1.0");const S=globalThis,k=S.trustedTypes,C=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",U=`lit$${Math.random().toFixed(9).slice(2)}$`,F="?"+U,N=`<${F}>`,P=document,T=()=>P.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,R=t=>O(t)||"function"==typeof t?.[Symbol.iterator],D="[ \t\n\f\r]",L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,z=/>/g,j=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,q=/"/g,V=/^(?:script|style|textarea|title)$/i,Z=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),W=Z(1),G=(Z(2),Z(3),Symbol.for("lit-noChange")),J=Symbol.for("lit-nothing"),K=new WeakMap,X=P.createTreeWalker(P,129);function Y(t,e){if(!O(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const Q=(t,e)=>{const s=t.length-1,i=[];let r,o=2===e?"<svg>":3===e?"<math>":"",n=L;for(let e=0;e<s;e++){const s=t[e];let l,a,d=-1,c=0;for(;c<s.length&&(n.lastIndex=c,a=n.exec(s),null!==a);)c=n.lastIndex,n===L?"!--"===a[1]?n=H:void 0!==a[1]?n=z:void 0!==a[2]?(V.test(a[2])&&(r=RegExp("</"+a[2],"g")),n=j):void 0!==a[3]&&(n=j):n===j?">"===a[0]?(n=r??L,d=-1):void 0===a[1]?d=-2:(d=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?j:'"'===a[3]?q:B):n===q||n===B?n=j:n===H||n===z?n=L:(n=j,r=void 0);const h=n===j&&t[e+1].startsWith("/>")?" ":"";o+=n===L?s+N:d>=0?(i.push(l),s.slice(0,d)+I+s.slice(d)+U+h):s+U+(-2===d?e:h)}return[Y(t,o+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class tt{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,o=0;const n=t.length-1,l=this.parts,[a,d]=Q(t,e);if(this.el=tt.createElement(a,s),X.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=X.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(I)){const e=d[o++],s=i.getAttribute(t).split(U),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:n[2],strings:s,ctor:"."===n[1]?ot:"?"===n[1]?nt:"@"===n[1]?lt:rt}),i.removeAttribute(t)}else t.startsWith(U)&&(l.push({type:6,index:r}),i.removeAttribute(t));if(V.test(i.tagName)){const t=i.textContent.split(U),e=t.length-1;if(e>0){i.textContent=k?k.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],T()),X.nextNode(),l.push({type:2,index:++r});i.append(t[e],T())}}}else if(8===i.nodeType)if(i.data===F)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(U,t+1));)l.push({type:7,index:r}),t+=U.length-1}r++}}static createElement(t,e){const s=P.createElement("template");return s.innerHTML=t,s}}function et(t,e,s=t,i){if(e===G)return e;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const o=M(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),void 0===o?r=void 0:(r=new o(t),r._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=r:s._$Cl=r),void 0!==r&&(e=et(t,r._$AS(t,e.values),r,i)),e}class st{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??P).importNode(e,!0);X.currentNode=i;let r=X.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let e;2===l.type?e=new it(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new at(r,this,t)),this._$AV.push(e),l=s[++n]}o!==l?.index&&(r=X.nextNode(),o++)}return X.currentNode=P,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class it{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),M(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==G&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):R(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==J&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=tt.createElement(Y(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new st(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new tt(t)),e}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new it(this.O(T()),this.O(T()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class rt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=J}_$AI(t,e=this,s,i){const r=this.strings;let o=!1;if(void 0===r)t=et(this,t,e,0),o=!M(t)||t!==this._$AH&&t!==G,o&&(this._$AH=t);else{const i=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=et(this,i[s+n],e,n),l===G&&(l=this._$AH[n]),o||=!M(l)||l!==this._$AH[n],l===J?t=J:t!==J&&(t+=(l??"")+r[n+1]),this._$AH[n]=l}o&&!i&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ot extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}class nt extends rt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}}class lt extends rt{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=et(this,t,e,0)??J)===G)return;const s=this._$AH,i=t===J&&s!==J||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==J&&(s===J||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const dt=S.litHtmlPolyfillSupport;dt?.(tt,it),(S.litHtmlVersions??=[]).push("3.3.0");const ct=globalThis;class ht extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const i=s?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=s?.renderBefore??null;i._$litPart$=r=new it(e.insertBefore(T(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return G}}ht._$litElement$=!0,ht.finalized=!0,ct.litElementHydrateSupport?.({LitElement:ht});const pt=ct.litElementPolyfillSupport;pt?.({LitElement:ht});(ct.litElementVersions??=[]).push("4.2.0");var ut=s(70235);class ft extends ht{constructor(){super(),this.text="",this.whiteSpace="pre"}connectedCallback(){super.connectedCallback(),this.style.fontFamily="var(--font-family)",this.bold&&(this.style.fontWeight="bold")}render(){const t=ut.h.get("theme");t&&(this.style.direction=t.direction,this.style.textAlign=this.textAlign||t.textAlign);const e=ut.h.get("lang",this.text);return W`<slot
|
|
656
656
|
><span
|
|
657
|
-
style="-webkit-font-smoothing: antialiased;
|
|
657
|
+
style="-webkit-font-smoothing: antialiased;text-transform:capitalize;
|
|
658
658
|
display:inline-block;direction:var(--direction-locale);text-align:var(--text-align-locale);white-space:${this.whiteSpace}"
|
|
659
659
|
>${e||this.text}</span
|
|
660
660
|
></slot
|
|
Binary file
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/*! For license information please see 289.creaditor.bundle.js.LICENSE.txt */
|
|
2
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[289],{30289:(t,e,s)=>{s.r(e),s.d(e,{SendTestEmailsPlugin:()=>jt});const i=globalThis,r=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),n=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&n.set(e,t))}return t}toString(){return this.cssText}}const h=(t,e)=>{if(r)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),r=i.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=s.cssText,t.appendChild(e)}},l=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,o))(e)})(t):t,{is:d,defineProperty:c,getOwnPropertyDescriptor:p,getOwnPropertyNames:u,getOwnPropertySymbols:f,getPrototypeOf:m}=Object,$=globalThis,g=$.trustedTypes,_=g?g.emptyScript:"",y=$.reactiveElementPolyfillSupport,v=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},b=(t,e)=>!d(t,e),A={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),$.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=A){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&c(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);r?.call(this,e),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??A}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=m(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...u(t),...f(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return h(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:E).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i;const o=r.fromAttribute(e,t.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??b)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},o){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[v("elementProperties")]=new Map,S[v("finalized")]=new Map,y?.({ReactiveElement:S}),($.reactiveElementVersions??=[]).push("2.1.1");const w=globalThis,x=w.trustedTypes,C=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",U=`lit$${Math.random().toFixed(9).slice(2)}$`,O="?"+U,T=`<${O}>`,M=document,H=()=>M.createComment(""),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,N=t=>k(t)||"function"==typeof t?.[Symbol.iterator],L="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,D=/>/g,j=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,I=/"/g,q=/^(?:script|style|textarea|title)$/i,W=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),Z=W(1),J=(W(2),W(3),Symbol.for("lit-noChange")),K=Symbol.for("lit-nothing"),F=new WeakMap,G=M.createTreeWalker(M,129);function Q(t,e){if(!k(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const X=(t,e)=>{const s=t.length-1,i=[];let r,o=2===e?"<svg>":3===e?"<math>":"",n=z;for(let e=0;e<s;e++){const s=t[e];let a,h,l=-1,d=0;for(;d<s.length&&(n.lastIndex=d,h=n.exec(s),null!==h);)d=n.lastIndex,n===z?"!--"===h[1]?n=V:void 0!==h[1]?n=D:void 0!==h[2]?(q.test(h[2])&&(r=RegExp("</"+h[2],"g")),n=j):void 0!==h[3]&&(n=j):n===j?">"===h[0]?(n=r??z,l=-1):void 0===h[1]?l=-2:(l=n.lastIndex-h[2].length,a=h[1],n=void 0===h[3]?j:'"'===h[3]?I:B):n===I||n===B?n=j:n===V||n===D?n=z:(n=j,r=void 0);const c=n===j&&t[e+1].startsWith("/>")?" ":"";o+=n===z?s+T:l>=0?(i.push(a),s.slice(0,l)+P+s.slice(l)+U+c):s+U+(-2===l?e:c)}return[Q(t,o+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class Y{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,o=0;const n=t.length-1,a=this.parts,[h,l]=X(t,e);if(this.el=Y.createElement(h,s),G.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=G.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(P)){const e=l[o++],s=i.getAttribute(t).split(U),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:n[2],strings:s,ctor:"."===n[1]?rt:"?"===n[1]?ot:"@"===n[1]?nt:it}),i.removeAttribute(t)}else t.startsWith(U)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(q.test(i.tagName)){const t=i.textContent.split(U),e=t.length-1;if(e>0){i.textContent=x?x.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],H()),G.nextNode(),a.push({type:2,index:++r});i.append(t[e],H())}}}else if(8===i.nodeType)if(i.data===O)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(U,t+1));)a.push({type:7,index:r}),t+=U.length-1}r++}}static createElement(t,e){const s=M.createElement("template");return s.innerHTML=t,s}}function tt(t,e,s=t,i){if(e===J)return e;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const o=R(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),void 0===o?r=void 0:(r=new o(t),r._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=r:s._$Cl=r),void 0!==r&&(e=tt(t,r._$AS(t,e.values),r,i)),e}class et{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??M).importNode(e,!0);G.currentNode=i;let r=G.nextNode(),o=0,n=0,a=s[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new st(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new at(r,this,t)),this._$AV.push(e),a=s[++n]}o!==a?.index&&(r=G.nextNode(),o++)}return G.currentNode=M,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class st{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),R(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):N(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==K&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=Y.createElement(Q(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new et(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new Y(t)),e}k(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new st(this.O(H()),this.O(H()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class it{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=K}_$AI(t,e=this,s,i){const r=this.strings;let o=!1;if(void 0===r)t=tt(this,t,e,0),o=!R(t)||t!==this._$AH&&t!==J,o&&(this._$AH=t);else{const i=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=tt(this,i[s+n],e,n),a===J&&(a=this._$AH[n]),o||=!R(a)||a!==this._$AH[n],a===K?t=K:t!==K&&(t+=(a??"")+r[n+1]),this._$AH[n]=a}o&&!i&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class rt extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}}class ot extends it{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}}class nt extends it{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=tt(this,t,e,0)??K)===J)return;const s=this._$AH,i=t===K&&s!==K||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==K&&(s===K||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const ht=w.litHtmlPolyfillSupport;ht?.(Y,st),(w.litHtmlVersions??=[]).push("3.3.1");const lt=globalThis;class dt extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const i=s?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=s?.renderBefore??null;i._$litPart$=r=new st(e.insertBefore(H(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return J}}dt._$litElement$=!0,dt.finalized=!0,lt.litElementHydrateSupport?.({LitElement:dt});const ct=lt.litElementPolyfillSupport;ct?.({LitElement:dt});(lt.litElementVersions??=[]).push("4.2.1");const pt=globalThis,ut=pt.ShadowRoot&&(void 0===pt.ShadyCSS||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ft=Symbol(),mt=new WeakMap;const $t=t=>new class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ft)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ut&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=mt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&mt.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,ft),gt=ut?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return $t(e)})(t):t,{is:_t,defineProperty:yt,getOwnPropertyDescriptor:vt,getOwnPropertyNames:Et,getOwnPropertySymbols:bt,getPrototypeOf:At}=Object,St=globalThis,wt=St.trustedTypes,xt=wt?wt.emptyScript:"",Ct=St.reactiveElementPolyfillSupport,Pt=(t,e)=>t,Ut={toAttribute(t,e){switch(e){case Boolean:t=t?xt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},Ot=(t,e)=>!_t(t,e),Tt={attribute:!0,type:String,converter:Ut,reflect:!1,useDefault:!1,hasChanged:Ot};Symbol.metadata??=Symbol("metadata"),St.litPropertyMetadata??=new WeakMap;class Mt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tt;if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&yt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=vt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);r?.call(this,e),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Tt}static _$Ei(){if(this.hasOwnProperty(Pt("elementProperties")))return;const t=At(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pt("properties"))){const t=this.properties,e=[...Et(t),...bt(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(gt(t))}else void 0!==t&&e.push(gt(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(ut)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),i=pt.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=s.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:Ut).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Ut;this._$Em=i;const o=r.fromAttribute(e,t.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??Ot)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,s,i){let{useDefault:r,reflect:o,wrapped:n}=s;r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),!0!==n||void 0!==i)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}Mt.elementStyles=[],Mt.shadowRootOptions={mode:"open"},Mt[Pt("elementProperties")]=new Map,Mt[Pt("finalized")]=new Map,Ct?.({ReactiveElement:Mt}),(St.reactiveElementVersions??=[]).push("2.1.1");const Ht={attribute:!0,type:String,converter:Ut,reflect:!1,hasChanged:Ot},Rt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,e=arguments.length>1?arguments[1]:void 0,s=arguments.length>2?arguments[2]:void 0;const{kind:i,metadata:r}=s;let o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===i&&((t=Object.create(t)).wrapped=!0),o.set(s.name,t),"accessor"===i){const{name:i}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t,e),e}}}if("setter"===i){const{name:i}=s;return function(s){const r=this[i];e.call(this,s),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function kt(t){return(e,s)=>"object"==typeof s?Rt(t,e,s):((t,e,s)=>{const i=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),i?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function Nt(t){return kt({...t,state:!0,attribute:!1})}var Lt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,Vt=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?zt(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Lt(e,s,o),o};const Dt="cdtr-test-emails";let jt=class extends dt{constructor(){super(...arguments),this.emails=[],this.inputValue="",this.error="",this.isLoading=!1,this.customColor="#000",this.customTextColor="#ffffff",this.buttonText="#ffffff",this.triggerText="Send Test Emails",this.headerText="Send Test Emails",this.inputPlaceholder="Enter email addresses (comma or enter to add)",this.sendButtonText="Send",this.loadingText="Sending...",this.invalidEmailError="Please enter a valid email address",this.noEmailsError="Please add at least one email address"}connectedCallback(){super.connectedCallback();const t=localStorage.getItem(Dt);t&&(this.emails=JSON.parse(t))}validateEmail(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}handleInput(t){const e=t.target;this.inputValue=e.value,this.error=""}handleKeyDown(t){"Enter"!==t.key&&","!==t.key||(t.preventDefault(),this.addEmail())}addEmail(){const t=this.inputValue.trim();t&&(this.validateEmail(t)?(this.emails.includes(t)||(this.emails=[...this.emails,t],localStorage.setItem(Dt,JSON.stringify(this.emails)),this.dispatchEvent(new CustomEvent("email-added",{detail:{email:t},bubbles:!0,composed:!0}))),this.inputValue=""):this.error=this.invalidEmailError)}removeEmail(t){this.emails=this.emails.filter((e=>e!==t)),localStorage.setItem(Dt,JSON.stringify(this.emails)),this.dispatchEvent(new CustomEvent("email-removed",{detail:{email:t},bubbles:!0,composed:!0}))}sendEmails(){this.inputValue.trim()&&this.validateEmail(this.inputValue.trim())&&this.addEmail(),0!==this.emails.length?(this.isLoading=!0,this.dispatchEvent(new CustomEvent("sendEmails",{detail:{emails:this.emails},bubbles:!0,composed:!0})),setTimeout((()=>{this.isLoading=!1;const t=this.shadowRoot?.querySelector("cdtr-popover");t&&t.close&&t.close()}),1e3)):this.error=this.noEmailsError}render(){return Z`
|
|
3
|
+
<cdtr-popover>
|
|
4
|
+
<paper-button
|
|
5
|
+
color="primary"
|
|
6
|
+
slot="trigger"
|
|
7
|
+
style="color: ${this.customTextColor};"
|
|
8
|
+
>
|
|
9
|
+
<svg
|
|
10
|
+
width="20"
|
|
11
|
+
height="20"
|
|
12
|
+
xmlns="http://www.w3. org/2000/svg"
|
|
13
|
+
viewBox="0 0 24 24"
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
>
|
|
16
|
+
<path
|
|
17
|
+
d="M21 3C21.5523 3 22 3.44772 22 4V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V19H20V7.3L12 14.5L2 5.5V4C2 3.44772 2.44772 3 3 3H21ZM8 15V17H0V15H8ZM5 10V12H0V10H5ZM19.5659 5H4.43414L12 11.8093L19.5659 5Z"
|
|
18
|
+
></path>
|
|
19
|
+
</svg>
|
|
20
|
+
<span dir="auto">${this.triggerText}</span>
|
|
21
|
+
</paper-button>
|
|
22
|
+
<div slot="content" class="popover-content" dir="auto">
|
|
23
|
+
<div class="popover-header">
|
|
24
|
+
<svg
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
viewBox="0 0 24 24"
|
|
27
|
+
fill="currentColor"
|
|
28
|
+
>
|
|
29
|
+
<path
|
|
30
|
+
d="M21 3C21.5523 3 22 3.44772 22 4V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V19H20V7.3L12 14.5L2 5.5V4C2 3.44772 2.44772 3 3 3H21ZM8 15V17H0V15H8ZM5 10V12H0V10H5ZM19.5659 5H4.43414L12 11.8093L19.5659 5Z"
|
|
31
|
+
></path>
|
|
32
|
+
</svg>
|
|
33
|
+
<h3>${this.headerText}</h3>
|
|
34
|
+
</div>
|
|
35
|
+
<input
|
|
36
|
+
name="emails"
|
|
37
|
+
class="email-input"
|
|
38
|
+
type="text"
|
|
39
|
+
.value=${this.inputValue}
|
|
40
|
+
@input=${this.handleInput}
|
|
41
|
+
@keydown=${this.handleKeyDown}
|
|
42
|
+
placeholder=${this.inputPlaceholder}
|
|
43
|
+
dir="auto"
|
|
44
|
+
/>
|
|
45
|
+
${this.error?Z`<div class="error" dir="auto">${this.error}</div>`:""}
|
|
46
|
+
<div class="email-tags">
|
|
47
|
+
${this.emails.map((t=>Z`
|
|
48
|
+
<div class="email-tag" dir="auto">
|
|
49
|
+
${t}
|
|
50
|
+
<span
|
|
51
|
+
class="remove-tag"
|
|
52
|
+
@click=${()=>this.removeEmail(t)}
|
|
53
|
+
>×</span
|
|
54
|
+
>
|
|
55
|
+
</div>
|
|
56
|
+
`))}
|
|
57
|
+
</div>
|
|
58
|
+
<paper-button
|
|
59
|
+
size="sm"
|
|
60
|
+
fullwidth
|
|
61
|
+
@click=${this.sendEmails}
|
|
62
|
+
?disabled=${this.isLoading}
|
|
63
|
+
class="send-button"
|
|
64
|
+
style="background: ${this.customColor}; color: ${this.customTextColor};width:100%;"
|
|
65
|
+
>
|
|
66
|
+
${this.isLoading?Z`
|
|
67
|
+
<span class="loading-spinner"></span>
|
|
68
|
+
<span dir="auto">${this.loadingText}</span>
|
|
69
|
+
`:Z`<span dir="auto">${this.sendButtonText}</span>`}
|
|
70
|
+
</paper-button>
|
|
71
|
+
</div>
|
|
72
|
+
</cdtr-popover>
|
|
73
|
+
`}};jt.styles=((t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new a(s,t,o)})`
|
|
74
|
+
:host {
|
|
75
|
+
display: block;
|
|
76
|
+
}
|
|
77
|
+
* {
|
|
78
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
}
|
|
81
|
+
paper-button {
|
|
82
|
+
text-transform: none;
|
|
83
|
+
min-width: 10px;
|
|
84
|
+
}
|
|
85
|
+
.popover-content {
|
|
86
|
+
padding: 16px;
|
|
87
|
+
min-width: 300px;
|
|
88
|
+
}
|
|
89
|
+
.popover-header {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: 8px;
|
|
93
|
+
margin-bottom: 16px;
|
|
94
|
+
padding-bottom: 8px;
|
|
95
|
+
border-bottom: 1px solid #e0e0e0;
|
|
96
|
+
}
|
|
97
|
+
.popover-header h3 {
|
|
98
|
+
margin: 0;
|
|
99
|
+
font-size: 16px;
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
color: #333;
|
|
102
|
+
}
|
|
103
|
+
.popover-header svg {
|
|
104
|
+
width: 20px;
|
|
105
|
+
height: 20px;
|
|
106
|
+
color: #666;
|
|
107
|
+
}
|
|
108
|
+
.email-input {
|
|
109
|
+
padding: 8px 12px;
|
|
110
|
+
border: 1px solid #ccc;
|
|
111
|
+
border-radius: 4px;
|
|
112
|
+
width: 100%;
|
|
113
|
+
margin-bottom: 8px;
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
transition: border-color 0.2s;
|
|
116
|
+
}
|
|
117
|
+
.email-input:focus {
|
|
118
|
+
outline: none;
|
|
119
|
+
border-color: #666;
|
|
120
|
+
}
|
|
121
|
+
.email-tags {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-wrap: wrap;
|
|
124
|
+
gap: 4px;
|
|
125
|
+
margin-bottom: 16px;
|
|
126
|
+
max-width: 200px;
|
|
127
|
+
}
|
|
128
|
+
.email-tag {
|
|
129
|
+
background: #f0f0f0;
|
|
130
|
+
padding: 4px 8px;
|
|
131
|
+
border-radius: 4px;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
gap: 4px;
|
|
135
|
+
font-size: 13px;
|
|
136
|
+
}
|
|
137
|
+
.remove-tag {
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
color: #666;
|
|
140
|
+
font-size: 16px;
|
|
141
|
+
line-height: 1;
|
|
142
|
+
padding: 0 2px;
|
|
143
|
+
}
|
|
144
|
+
.remove-tag:hover {
|
|
145
|
+
color: #ff0000;
|
|
146
|
+
}
|
|
147
|
+
.error {
|
|
148
|
+
color: #ff0000;
|
|
149
|
+
font-size: 12px;
|
|
150
|
+
margin-bottom: 8px;
|
|
151
|
+
}
|
|
152
|
+
.loading-spinner {
|
|
153
|
+
display: inline-block;
|
|
154
|
+
width: 16px;
|
|
155
|
+
height: 16px;
|
|
156
|
+
border: 2px solid #ffffff;
|
|
157
|
+
border-radius: 50%;
|
|
158
|
+
border-top-color: transparent;
|
|
159
|
+
animation: spin 1s ease-in-out infinite;
|
|
160
|
+
margin-right: 8px;
|
|
161
|
+
}
|
|
162
|
+
@keyframes spin {
|
|
163
|
+
to {
|
|
164
|
+
transform: rotate(360deg);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
.send-button:disabled {
|
|
168
|
+
opacity: 0.6;
|
|
169
|
+
cursor: not-allowed;
|
|
170
|
+
}
|
|
171
|
+
`,Vt([Nt()],jt.prototype,"emails",2),Vt([Nt()],jt.prototype,"inputValue",2),Vt([Nt()],jt.prototype,"error",2),Vt([Nt()],jt.prototype,"isLoading",2),Vt([kt({type:String})],jt.prototype,"customColor",2),Vt([kt({type:String})],jt.prototype,"customTextColor",2),Vt([kt({type:String})],jt.prototype,"buttonText",2),Vt([kt({type:String})],jt.prototype,"triggerText",2),Vt([kt({type:String})],jt.prototype,"headerText",2),Vt([kt({type:String})],jt.prototype,"inputPlaceholder",2),Vt([kt({type:String})],jt.prototype,"sendButtonText",2),Vt([kt({type:String})],jt.prototype,"loadingText",2),Vt([kt({type:String})],jt.prototype,"invalidEmailError",2),Vt([kt({type:String})],jt.prototype,"noEmailsError",2),jt=Vt([(t=>(e,s)=>{void 0!==s?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("cdtr-send-test-emails-plugin")],jt)}}]);
|
|
Binary file
|
|
Binary file
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3794],{83794:(t,i,e)=>{e.r(i),e.d(i,{UndoRedoIcon:()=>d});var h=e(56666),s=e(21293);class d extends s.oi{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return"left"===this.direction?s.dy`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3794],{83794:(t,i,e)=>{e.r(i),e.d(i,{UndoRedoIcon:()=>d});var h=e(56666),s=e(21293);class d extends s.oi{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return"left"===this.direction?s.dy`
|
|
2
|
+
<svg
|
|
3
|
+
style="${this.iconStyle}"
|
|
4
|
+
width="${this.width}"
|
|
5
|
+
height="${this.height}"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
>
|
|
9
|
+
<path fill="none" d="M0 0h24v24H0z" />
|
|
10
|
+
<path
|
|
11
|
+
d="M18.172 7H11a6 6 0 1 0 0 12h9v2h-9a8 8 0 1 1 0-16h7.172l-2.536-2.536L17.05 1.05 22 6l-4.95 4.95-1.414-1.414L18.172 7z"
|
|
12
|
+
/>
|
|
13
|
+
</svg>
|
|
14
|
+
`:s.dy`
|
|
15
|
+
<svg
|
|
16
|
+
style="${this.iconStyle}"
|
|
17
|
+
width="${this.width}"
|
|
18
|
+
height="${this.height}"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
viewBox="0 0 24 24"
|
|
21
|
+
>
|
|
22
|
+
<path fill="none" d="M0 0h24v24H0z" />
|
|
23
|
+
<path
|
|
24
|
+
d="M5.828 7l2.536 2.536L6.95 10.95 2 6l4.95-4.95 1.414 1.414L5.828 5H13a8 8 0 1 1 0 16H4v-2h9a6 6 0 1 0 0-12H5.828z"
|
|
25
|
+
/>
|
|
26
|
+
</svg>
|
|
27
|
+
`}}(0,h.Z)(d,"styles",s.iv`
|
|
24
28
|
:host {
|
|
25
29
|
display: inherit;
|
|
26
30
|
--cdtr-icon-width: 20px;
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4217],{84217:(e,n,t)=>{t.r(n),t.d(n,{default:()=>w});t(30814),t(70235);let a=!0;const o=e=>{{const{component:n,commands:t,helpers:o}=e,i=n.parent("col");return{select:e=>{let{changeTab:n,tab:t}=e;t.text||n("image")},tabs:e=>{const n=[{text:"image",selected:!0},{text:"design"},{text:"link"},{text:"ai"},{text:"settings"}];return e?(n.forEach((n=>n.selected=n.selected=n.text===e)),n):n},layout:e=>{const{tab:o,changeTab:r,tabs:s}=e;return[{type:"info",text:"image_micro_copy",active:()=>"image"===o.text},{type:"imagePrompt",active:()=>"ai"===o.text,onChange:e=>{e.target.value}},{type:"gallery",active:()=>"image"===o.text,src:n.props.src,hasPreview:!0,text:"openGalleryImage",justify:"flex-start",onChange:e=>{let n=e.detail;Array.isArray(n)&&(n=n[0]),t.execCommand("src",n.src)}},{type:"input",title:"add_urlAddress_from_media_site",active:()=>"image"===o.text,value:n.props.src||"",onChange:e=>{const n=e.target.value;t.execCommand("src",n)}},{type:"input",title:"altText",active:()=>"image"===o.text,value:n.props.alt||"",onChange:e=>{const n=e.target.value;t.execCommand("alt",n)}},{type:"checkbox",title:"fullWidthOnMobile",checked:!!n.props.isFullWidthOnMobile,active:()=>"image"===o.text,onChange:e=>{const n=e.target.checked;t.execCommand("isFullWidthOnMobile",n)}},{type:"divider",active:()=>"design"===o.text},{type:"checkbox",title:"keep_ratio",checked:!!a,active:()=>"design"===o.text,onChange:e=>{a=!a,r("design")}},{type:"slider",min:10,title:"size",active:()=>"design"===o.text&&a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const n=e.target.value;t.execCommand("style",{width:n+"px",height:"auto"})}},{type:"slider",min:10,title:"width",active:()=>"design"===o.text&&!a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().height;t.execCommand("style",{width:a+"px",height:o+"px"})}},{type:"slider",min:10,title:"height",active:()=>"design"===o.text&&!a,max:2*i?.element?.offsetWidth,value:parseInt(n.props.style.height),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().width;t.execCommand("style",{height:a+"px",width:o+"px"})}},{type:"radius",title:"radius",active:()=>"design"===o.text,min:0,max:parseInt(n.props.style.width)/2,value:parseInt(n.props.style.borderRadius),elementId:n.id,borderTopRightRadius:parseInt(n.props.style.borderTopRightRadius),borderTopLeftRadius:parseInt(n.props.style.borderTopLeftRadius),borderBottomRightRadius:parseInt(n.props.style.borderBottomRightRadius),borderBottomLeftRadius:parseInt(n.props.style.borderBottomLeftRadius),onInput:e=>{const n=e.target.json;t.execCommand("style",{borderTopRightRadius:n.borderTopRightRadius+"px",borderTopLeftRadius:n.borderTopLeftRadius+"px",borderBottomRightRadius:n.borderBottomRightRadius+"px",borderBottomLeftRadius:n.borderBottomLeftRadius+"px",borderRadius:null})}},{type:"divider",active:()=>"design"===o.text},{type:"linkpicker",href:n.props.onClick?.link,protocol:n.props.onClick?.link?.protocol,target:n.props.onClick?.link?.target,autofocus:!0,active:()=>"link"===o.text,onChange:e=>{const n={link:e.target.value};t.execCommand("onClick",n)}}]}}}};var i=t(46245);const r=()=>({set:(e,n,t)=>{switch(n){case"src":case"isFullWidthOnMobile":case"isOpenWithModal":case"isCircle":case"alt":case"onClick":return e[n]=t,!0;case"style":if("object"==typeof t)return e[n]=(0,i.Z)(e[n],t),!0}}});var s=t(46062),c=t.n(s),d=t(32877),l=t.n(d),p=t(96793),A=t.n(p),m=t(17892),u=t.n(m),g=t(11173),h=t.n(g),E=t(4257),y={};y.setAttributes=u(),y.insert=A().bind(null,"head"),y.domAPI=l(),y.insertStyleElement=h();c()(E.Z,y);const C=E.Z&&E.Z.locals?E.Z.locals:void 0;function f(e){const n=document.createElement("div");n.className=C.wrapper;const t=document.createElement("div");t.className=C.skeleton;const a=document.createElement("div");a.className=C.shimmer,t.appendChild(a);const o=document.createElement("div");o.className=C.scanline,t.appendChild(o);const i=document.createElement("div");i.className=C.imageContainer,i.appendChild(e);let r=!1;function s(){if(!r)return;r=!1,n.classList.remove(C.loading),n.classList.add(C.revealed),e.classList.remove(C.imageHidden),e.classList.add(C.imageRevealed);const t=()=>{n.classList.remove(C.revealed),e.classList.remove(C.imageRevealed),e.removeEventListener("animationend",t)};e.addEventListener("animationend",t)}return e.addEventListener("load",s),e.addEventListener("error",s),{wrapper:n,showLoader:function(){(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||e.src&&!e.complete)&&(r=!0,n.classList.add(C.loading),e.classList.add(C.imageHidden))},hideLoader:s,wrap:function(e){n.appendChild(t),n.appendChild(i),e.appendChild(n)},skeleton:t}}var v=t(76555),b={};b.setAttributes=u(),b.insert=A().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=h();c()(v.Z,b);const k=v.Z&&v.Z.locals?v.Z.locals:void 0,w=()=>{const e="image";return{name:e,create:n=>{const{createElement:t,compose:a,helpers:i}=n,{arrayToString:s,mergeDiff:c}=i,d=document.createElement("img"),l=document.createElement("div");a.props.style&&!parseInt(a.props.style.height)&&(a.props.style.height="auto"),d.addEventListener("drop",(e=>{e.preventDefault();var n=e.dataTransfer.getData("text/html");const t=document.createElement("div");t.innerHTML=n;const o=t.querySelector("img");o&&o.src&&a.editor.store().updateComponent(a,"src",o.src)})),d.draggable=!0,d.src=a.props.src;const p=s(a.classList);d.className=s(p,"editor-image",k.image),l.append(d);const A=f(d);A.wrap(l);let m=a.props.src;function u(e){const n=e.target;n.classList.contains("amazingbar-content-wrapper")&&"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&("Delete"!==e.key&&"Backspace"!==e.key||g.commands.remove())}a.props.src&&A.showLoader(),d.addEventListener("dblclick",(()=>{const e=document.createElement("cdtr-gallery");e.opened=!0,e.multi=!0,document.body.append(e),e.addEventListener("file",(n=>{let t=n.detail;Array.isArray(t)&&(t=t[0]),a.editor.store().execCommands([{key:"src",value:t.src},{key:"style",value:{height:"auto"}}]),e.opened=!1,setTimeout((()=>{e.remove()}),1500)})),e.addEventListener("close",(()=>{e.remove()}))}));const g=t({name:e,id:a.id,template:l,defaultProps:{style:{height:"auto",width:"200px"}},draggable:{group:"element"},droppable:{group:"element"},render:()=>{c(d,{style:a.props.style}),d.width=a.props.width||a.props.style.width,d.height=a.props.height||a.props.style.height,a.props.src&&a.props.src!==m&&(m=a.props.src,A.showLoader(!0)),c(d,{src:a.props.src}),c(d,{alt:a.props.alt})},resizeable:()=>l,handleBar:!0,validator:r({template:l,image:d,helpers:i}),schema:a.schema,onSelect:e=>{d.classList.add(e),document.addEventListener("keyup",u)},onDeselect:e=>{d.classList.remove(e),document.removeEventListener("keyup",u)},elementProps:a,remove:()=>{l.remove()},createEditor:o});let h=0,E=0,y=!1,C=!1,v=!1,b=!1;return d.addEventListener("dragover",(e=>{e.preventDefault()})),d.addEventListener("dragstart",(e=>{h=e.clientX,E=e.clientY,y=!0,C=!1,v=!1,b=!1})),d.addEventListener("drag",(e=>{if(!y)return;const n=d.closest(".block-component")||d.closest("[data-block]")||d.parentElement;if(!n)return;const t=n.getBoundingClientRect(),a=t.width,o=t.left,i=e.clientX-o,r=.3*a,s=.7*a;if(i<r&&!C){C=!0,b=!1,v=!1;const e=g.parent("col");e&&e.commands.execCommand("justify","start")}else if(i>s&&!v){v=!0,b=!1,C=!1;const e=g.parent("col");e&&e.commands.execCommand("justify","end")}else if(i>=r&&i<=s&&!b){b=!0,C=!1,v=!1;const e=g.closest("col");e&&e.commands.execCommand("justify","center")}})),d.addEventListener("dragend",(e=>{y=!1,C=!1,v=!1,b=!1})),g}}}},4257:(e,n,t)=>{t.d(n,{Z:()=>s});var a=t(40272),o=t.n(a),i=t(82609),r=t.n(i)()(o());r.push([e.id,".dvyeXDEWGDwQldC0Fv8X {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.Nm0m1lLy5PfrkcLEFbKK {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n.dogylpRtyD7KXQzaAELM {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n.G31NNGIMzJODgwFanTWa {\n animation: kVMR3qotZ5zoT096EjqQ 0.4s ease-out forwards;\n}\n\n@keyframes kVMR3qotZ5zoT096EjqQ {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.a0StLItf00WRhmpEbZgN {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: Z6Vx9hDUR58e_YIwbFpH 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.dvyeXDEWGDwQldC0Fv8X.Ppaid5QaGvjws84qIQzc .a0StLItf00WRhmpEbZgN {\n opacity: 1;\n z-index: 1;\n}\n\n.dvyeXDEWGDwQldC0Fv8X:not(.Ppaid5QaGvjws84qIQzc) .a0StLItf00WRhmpEbZgN {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.dvyeXDEWGDwQldC0Fv8X.dpeZ0kyhzQiISwO8GTXa .a0StLItf00WRhmpEbZgN {\n animation: E7r0bceMAcn0gX52ytIX 0.4s ease-out forwards;\n}\n\n@keyframes Z6Vx9hDUR58e_YIwbFpH {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes E7r0bceMAcn0gX52ytIX {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.nYxhEQAmC2ND9Dl5SkoX {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: mH_hfMLh7RKw5vWazHwT 2s ease-in-out infinite;\n}\n\n@keyframes mH_hfMLh7RKw5vWazHwT {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.m4vo4fZkraouC_mbmxb0 {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: Tpj4rBpkPWx1OrWANbU0 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes Tpj4rBpkPWx1OrWANbU0 {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n","",{version:3,sources:["webpack://./../image-editor-component/lib/image-loader.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,cAAc;EACd,cAAc;AAChB;;AAEA;EACE,UAAU;EACV,kCAAkC;AACpC;;AAEA;EACE,sDAA6C;AAC/C;;AAEA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA,gDAAgD;AAChD;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,0BAA0B;EAC1B,yDAAoD;EACpD,oBAAoB;AACtB;;AAEA;EACE,UAAU;EACV,UAAU;AACZ;;AAEA;EACE,UAAU;EACV,oBAAoB;EACpB,WAAW;EACX,iCAAiC;AACnC;;AAEA;EACE,sDAAiD;AACnD;;AAEA;EACE;IACE,2BAA2B;EAC7B;EACA;IACE,4BAA4B;EAC9B;AACF;;AAEA;EACE;IACE,UAAU;EACZ;AACF;;AAEA,4BAA4B;AAC5B;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,yBAAyB;EACzB,uDAA+C;AACjD;;AAEA;EACE;IACE,4BAA4B;EAC9B;EACA;IACE,2BAA2B;EAC7B;AACF;;AAEA,yBAAyB;AACzB;EACE,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX;;;;;GAKC;EACD,yDAAiD;EACjD,4CAA4C;AAC9C;;AAEA;EACE;IACE,MAAM;IACN,UAAU;EACZ;EACA;IACE,SAAS;IACT,YAAY;EACd;EACA;IACE,SAAS;IACT,UAAU;EACZ;AACF",sourcesContent:[".wrapper {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.imageContainer {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n.imageHidden {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n.imageRevealed {\n animation: imageFadeIn 0.4s ease-out forwards;\n}\n\n@keyframes imageFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.skeleton {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: skeletonShimmer 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.wrapper.loading .skeleton {\n opacity: 1;\n z-index: 1;\n}\n\n.wrapper:not(.loading) .skeleton {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.wrapper.revealed .skeleton {\n animation: skeletonFadeOut 0.4s ease-out forwards;\n}\n\n@keyframes skeletonShimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes skeletonFadeOut {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.shimmer {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: shimmerSweep 2s ease-in-out infinite;\n}\n\n@keyframes shimmerSweep {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.scanline {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: scanlineMove 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes scanlineMove {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n"],sourceRoot:""}]),r.locals={wrapper:"dvyeXDEWGDwQldC0Fv8X",imageContainer:"Nm0m1lLy5PfrkcLEFbKK",imageHidden:"dogylpRtyD7KXQzaAELM",imageRevealed:"G31NNGIMzJODgwFanTWa",imageFadeIn:"kVMR3qotZ5zoT096EjqQ",skeleton:"a0StLItf00WRhmpEbZgN",skeletonShimmer:"Z6Vx9hDUR58e_YIwbFpH",loading:"Ppaid5QaGvjws84qIQzc",revealed:"dpeZ0kyhzQiISwO8GTXa",skeletonFadeOut:"E7r0bceMAcn0gX52ytIX",shimmer:"nYxhEQAmC2ND9Dl5SkoX",shimmerSweep:"mH_hfMLh7RKw5vWazHwT",scanline:"m4vo4fZkraouC_mbmxb0",scanlineMove:"Tpj4rBpkPWx1OrWANbU0"};const s=r},76555:(e,n,t)=>{t.d(n,{Z:()=>s});var a=t(40272),o=t.n(a),i=t(82609),r=t.n(i)()(o());r.push([e.id,".DYtLgzP53oukeRBVqQDc{\n display: block;\n max-width: 100%;\n}","",{version:3,sources:["webpack://./../image-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;IACI,cAAc;IACd,eAAe;AACnB",sourcesContent:[".image{\n display: block;\n max-width: 100%;\n}"],sourceRoot:""}]),r.locals={image:"DYtLgzP53oukeRBVqQDc"};const s=r},30814:(e,n,t)=>{t.d(n,{td:()=>l});const a=window.cdtrSignalKey||`___${Math.random().toString(36).substr(2,9)}`;window.cdtrSignalKey=a,window[a]||(window[a]={});const o=window[a],i=window.__cdtrEvents||{};function r(e){return crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e)).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}function s(e){if(e.length%2!=0)throw new Error("Invalid hex string");const n=new Uint8Array(e.length/2);for(let t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substr(t,2),16);return n}async function c(e){const n=await r(e),t=o[n];if(t){const e=await crypto.subtle.importKey("raw",s(n),{name:"AES-GCM"},!1,["encrypt","decrypt"]),a=await async function(e,n,t){const a=await crypto.subtle.decrypt({name:"AES-GCM",iv:n},e,t);return(new TextDecoder).decode(a)}(e,t.iv,t.encrypted);return JSON.parse(a)}return null}function d(e,n){if(i[e])for(const t in i[e])Object.prototype.hasOwnProperty.call(i[e],t)&&i[e][t].forEach((e=>e(n)));Array.isArray(i["*"])&&i["*"].forEach((e=>e(n)))}window.__cdtrEvents=i;const l={set:async function(e,n){const t=JSON.parse(JSON.stringify(n)),a=await r(e),c=await crypto.subtle.importKey("raw",s(a),{name:"AES-GCM"},!1,["encrypt","decrypt"]),l=await async function(e,n){const t=crypto.getRandomValues(new Uint8Array(12)),a=(new TextEncoder).encode(n),o=await crypto.subtle.encrypt({name:"AES-GCM",iv:t},e,a);return{iv:t,encrypted:new Uint8Array(o)}}(c,JSON.stringify(t));o[a]=l,i.set&&i.set[a]&&i.set[a].forEach((e=>e(t))),Array.isArray(i["*"])&&i["*"].forEach((e=>e(t))),d(e,t)},get:c,remove:async function(e){const n=await r(e);delete o[n]},on:async function(e,n,t){i[e]||(i[e]={});const a=await r(n);i[e][a]||(i[e][a]=[]),i[e][a].push((e=>{!function(){const e=(new Error).stack;if(e&&e.indexOf(" at <anonymous>:1")>-1)throw console.warn("Function call blocked: Detected console execution."),new Error("Function call blocked: Detected console execution.")}(),t(e)}));const o=await c(n);return o&&t(o),a},off:function(e,n){i[e]&&i[e][n]&&delete i[e][n]},dispatch:d,OPTIONS:{SET:"set"}}}}]);
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4217],{84217:(e,n,t)=>{t.r(n),t.d(n,{default:()=>w});t(30814),t(70235);let a=!0;const o=e=>{{const{component:n,commands:t,helpers:o}=e,i=n.parent("col");return{select:e=>{let{changeTab:n,tab:t}=e;t.text||n("image")},tabs:e=>{const n=[{text:"image",selected:!0},{text:"design"},{text:"link"},{text:"ai"},{text:"settings"}];return e?(n.forEach((n=>n.selected=n.selected=n.text===e)),n):n},layout:e=>{const{tab:o,changeTab:r,tabs:s}=e;return[{type:"info",text:"image_micro_copy",active:()=>"image"===o.text},{type:"imagePrompt",active:()=>"ai"===o.text,onChange:e=>{e.target.value}},{type:"gallery",active:()=>"image"===o.text,src:n.props.src,hasPreview:!0,text:"openGalleryImage",justify:"flex-start",onChange:e=>{let n=e.detail;Array.isArray(n)&&(n=n[0]),t.execCommand("src",n.src)}},{type:"input",title:"add_urlAddress_from_media_site",active:()=>"image"===o.text,value:n.props.src||"",onChange:e=>{const n=e.target.value;t.execCommand("src",n)}},{type:"input",title:"altText",active:()=>"image"===o.text,value:n.props.alt||"",onChange:e=>{const n=e.target.value;t.execCommand("alt",n)}},{type:"checkbox",title:"fullWidthOnMobile",checked:!!n.props.isFullWidthOnMobile,active:()=>"image"===o.text,onChange:e=>{const n=e.target.checked;t.execCommand("isFullWidthOnMobile",n)}},{type:"divider",active:()=>"design"===o.text},{type:"checkbox",title:"keep_ratio",checked:!!a,active:()=>"design"===o.text,onChange:e=>{a=!a,r("design")}},{type:"slider",min:10,title:"size",active:()=>"design"===o.text&&a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const n=e.target.value;t.execCommand("style",{width:n+"px",height:"auto"})}},{type:"slider",min:10,title:"width",active:()=>"design"===o.text&&!a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().height;t.execCommand("style",{width:a+"px",height:o+"px"})}},{type:"slider",min:10,title:"height",active:()=>"design"===o.text&&!a,max:2*i?.element?.offsetWidth,value:parseInt(n.props.style.height),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().width;t.execCommand("style",{height:a+"px",width:o+"px"})}},{type:"radius",title:"radius",active:()=>"design"===o.text,min:0,max:parseInt(n.props.style.width)/2,value:parseInt(n.props.style.borderRadius),elementId:n.id,borderTopRightRadius:parseInt(n.props.style.borderTopRightRadius),borderTopLeftRadius:parseInt(n.props.style.borderTopLeftRadius),borderBottomRightRadius:parseInt(n.props.style.borderBottomRightRadius),borderBottomLeftRadius:parseInt(n.props.style.borderBottomLeftRadius),onInput:e=>{const n=e.target.json;t.execCommand("style",{borderTopRightRadius:n.borderTopRightRadius+"px",borderTopLeftRadius:n.borderTopLeftRadius+"px",borderBottomRightRadius:n.borderBottomRightRadius+"px",borderBottomLeftRadius:n.borderBottomLeftRadius+"px",borderRadius:null})}},{type:"divider",active:()=>"design"===o.text},{type:"linkpicker",href:n.props.onClick?.link,protocol:n.props.onClick?.link?.protocol,target:n.props.onClick?.link?.target,autofocus:!0,active:()=>"link"===o.text,onChange:e=>{const n={link:e.target.value};t.execCommand("onClick",n)}}]}}}};var i=t(46245);const r=()=>({set:(e,n,t)=>{switch(n){case"src":case"isFullWidthOnMobile":case"isOpenWithModal":case"isCircle":case"alt":case"onClick":return e[n]=t,!0;case"style":if("object"==typeof t)return e[n]=(0,i.Z)(e[n],t),!0}}});var s=t(46062),c=t.n(s),d=t(32877),l=t.n(d),p=t(96793),A=t.n(p),m=t(17892),u=t.n(m),g=t(11173),h=t.n(g),E=t(4257),y={};y.setAttributes=u(),y.insert=A().bind(null,"head"),y.domAPI=l(),y.insertStyleElement=h();c()(E.Z,y);const C=E.Z&&E.Z.locals?E.Z.locals:void 0;function f(e){const n=document.createElement("div");n.className=C.wrapper;const t=document.createElement("div");t.className=C.skeleton;const a=document.createElement("div");a.className=C.shimmer,t.appendChild(a);const o=document.createElement("div");o.className=C.scanline,t.appendChild(o);const i=document.createElement("div");i.className=C.imageContainer,i.appendChild(e);let r=!1;function s(){if(!r)return;r=!1,n.classList.remove(C.loading),n.classList.add(C.revealed),e.classList.remove(C.imageHidden),e.classList.add(C.imageRevealed);const t=()=>{n.classList.remove(C.revealed),e.classList.remove(C.imageRevealed),e.removeEventListener("animationend",t)};e.addEventListener("animationend",t)}return e.addEventListener("load",s),e.addEventListener("error",s),{wrapper:n,showLoader:function(){(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||e.src&&!e.complete)&&(r=!0,n.classList.add(C.loading),e.classList.add(C.imageHidden))},hideLoader:s,wrap:function(e){n.appendChild(t),n.appendChild(i),e.appendChild(n)},skeleton:t}}var v=t(76555),b={};b.setAttributes=u(),b.insert=A().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=h();c()(v.Z,b);const k=v.Z&&v.Z.locals?v.Z.locals:void 0,w=()=>{const e="image";return{name:e,create:n=>{const{createElement:t,compose:a,helpers:i}=n,{arrayToString:s,mergeDiff:c}=i,d=document.createElement("img"),l=document.createElement("div");a.props.style&&!parseInt(a.props.style.height)&&(a.props.style.height="auto"),d.addEventListener("drop",(e=>{e.preventDefault();var n=e.dataTransfer.getData("text/html");const t=document.createElement("div");t.innerHTML=n;const o=t.querySelector("img");o&&o.src&&a.editor.store().updateComponent(a,"src",o.src)})),d.draggable=!0,d.src=a.props.src;const p=s(a.classList);d.className=s(p,"editor-image",k.image),l.append(d);const A=f(d);A.wrap(l);let m=a.props.src;function u(e){const n=e.target;n.classList.contains("amazingbar-content-wrapper")&&"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&("Delete"!==e.key&&"Backspace"!==e.key||g.commands.remove())}a.props.src&&A.showLoader(),d.addEventListener("dblclick",(()=>{const e=document.createElement("cdtr-gallery");e.opened=!0,e.multi=!0,document.body.append(e),e.addEventListener("file",(n=>{let t=n.detail;Array.isArray(t)&&(t=t[0]),a.editor.store().execCommands([{key:"src",value:t.src},{key:"style",value:{height:"auto"}}]),e.opened=!1,setTimeout((()=>{e.remove()}),1500)})),e.addEventListener("close",(()=>{e.remove()}))}));const g=t({name:e,id:a.id,template:l,defaultProps:{style:{height:"auto",width:"200px"}},draggable:{group:"element"},droppable:{group:"element"},render:()=>{c(d,{style:a.props.style}),d.width=a.props.width||a.props.style.width,d.height=a.props.height||a.props.style.height,a.props.src&&a.props.src!==m&&(m=a.props.src,A.showLoader(!0)),c(d,{src:a.props.src}),c(d,{alt:a.props.alt})},resizeable:()=>l,handleBar:!0,validator:r(),schema:a.schema,onSelect:e=>{d.classList.add(e),document.addEventListener("keyup",u)},onDeselect:e=>{d.classList.remove(e),document.removeEventListener("keyup",u)},elementProps:a,remove:()=>{l.remove()},createEditor:o});let h=0,E=0,y=!1,C=!1,v=!1,b=!1;return d.addEventListener("dragover",(e=>{e.preventDefault()})),d.addEventListener("dragstart",(e=>{h=e.clientX,E=e.clientY,y=!0,C=!1,v=!1,b=!1})),d.addEventListener("drag",(e=>{if(!y)return;const n=d.closest(".block-component")||d.closest("[data-block]")||d.parentElement;if(!n)return;const t=n.getBoundingClientRect(),a=t.width,o=t.left,i=e.clientX-o,r=.3*a,s=.7*a;if(i<r&&!C){C=!0,b=!1,v=!1;const e=g.parent("col");e&&e.commands.execCommand("justify","start")}else if(i>s&&!v){v=!0,b=!1,C=!1;const e=g.parent("col");e&&e.commands.execCommand("justify","end")}else if(i>=r&&i<=s&&!b){b=!0,C=!1,v=!1;const e=g.closest("col");e&&e.commands.execCommand("justify","center")}})),d.addEventListener("dragend",(e=>{y=!1,C=!1,v=!1,b=!1})),g}}}},4257:(e,n,t)=>{t.d(n,{Z:()=>s});var a=t(40272),o=t.n(a),i=t(82609),r=t.n(i)()(o());r.push([e.id,".dvyeXDEWGDwQldC0Fv8X {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.Nm0m1lLy5PfrkcLEFbKK {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n.dogylpRtyD7KXQzaAELM {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n.G31NNGIMzJODgwFanTWa {\n animation: kVMR3qotZ5zoT096EjqQ 0.4s ease-out forwards;\n}\n\n@keyframes kVMR3qotZ5zoT096EjqQ {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.a0StLItf00WRhmpEbZgN {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: Z6Vx9hDUR58e_YIwbFpH 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.dvyeXDEWGDwQldC0Fv8X.Ppaid5QaGvjws84qIQzc .a0StLItf00WRhmpEbZgN {\n opacity: 1;\n z-index: 1;\n}\n\n.dvyeXDEWGDwQldC0Fv8X:not(.Ppaid5QaGvjws84qIQzc) .a0StLItf00WRhmpEbZgN {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.dvyeXDEWGDwQldC0Fv8X.dpeZ0kyhzQiISwO8GTXa .a0StLItf00WRhmpEbZgN {\n animation: E7r0bceMAcn0gX52ytIX 0.4s ease-out forwards;\n}\n\n@keyframes Z6Vx9hDUR58e_YIwbFpH {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes E7r0bceMAcn0gX52ytIX {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.nYxhEQAmC2ND9Dl5SkoX {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: mH_hfMLh7RKw5vWazHwT 2s ease-in-out infinite;\n}\n\n@keyframes mH_hfMLh7RKw5vWazHwT {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.m4vo4fZkraouC_mbmxb0 {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: Tpj4rBpkPWx1OrWANbU0 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes Tpj4rBpkPWx1OrWANbU0 {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n","",{version:3,sources:["webpack://./../image-editor-component/lib/image-loader.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,cAAc;EACd,cAAc;AAChB;;AAEA;EACE,UAAU;EACV,kCAAkC;AACpC;;AAEA;EACE,sDAA6C;AAC/C;;AAEA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA,gDAAgD;AAChD;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,0BAA0B;EAC1B,yDAAoD;EACpD,oBAAoB;AACtB;;AAEA;EACE,UAAU;EACV,UAAU;AACZ;;AAEA;EACE,UAAU;EACV,oBAAoB;EACpB,WAAW;EACX,iCAAiC;AACnC;;AAEA;EACE,sDAAiD;AACnD;;AAEA;EACE;IACE,2BAA2B;EAC7B;EACA;IACE,4BAA4B;EAC9B;AACF;;AAEA;EACE;IACE,UAAU;EACZ;AACF;;AAEA,4BAA4B;AAC5B;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,yBAAyB;EACzB,uDAA+C;AACjD;;AAEA;EACE;IACE,4BAA4B;EAC9B;EACA;IACE,2BAA2B;EAC7B;AACF;;AAEA,yBAAyB;AACzB;EACE,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX;;;;;GAKC;EACD,yDAAiD;EACjD,4CAA4C;AAC9C;;AAEA;EACE;IACE,MAAM;IACN,UAAU;EACZ;EACA;IACE,SAAS;IACT,YAAY;EACd;EACA;IACE,SAAS;IACT,UAAU;EACZ;AACF",sourcesContent:[".wrapper {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.imageContainer {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n.imageHidden {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n.imageRevealed {\n animation: imageFadeIn 0.4s ease-out forwards;\n}\n\n@keyframes imageFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.skeleton {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: skeletonShimmer 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.wrapper.loading .skeleton {\n opacity: 1;\n z-index: 1;\n}\n\n.wrapper:not(.loading) .skeleton {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.wrapper.revealed .skeleton {\n animation: skeletonFadeOut 0.4s ease-out forwards;\n}\n\n@keyframes skeletonShimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes skeletonFadeOut {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.shimmer {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: shimmerSweep 2s ease-in-out infinite;\n}\n\n@keyframes shimmerSweep {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.scanline {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: scanlineMove 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes scanlineMove {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n"],sourceRoot:""}]),r.locals={wrapper:"dvyeXDEWGDwQldC0Fv8X",imageContainer:"Nm0m1lLy5PfrkcLEFbKK",imageHidden:"dogylpRtyD7KXQzaAELM",imageRevealed:"G31NNGIMzJODgwFanTWa",imageFadeIn:"kVMR3qotZ5zoT096EjqQ",skeleton:"a0StLItf00WRhmpEbZgN",skeletonShimmer:"Z6Vx9hDUR58e_YIwbFpH",loading:"Ppaid5QaGvjws84qIQzc",revealed:"dpeZ0kyhzQiISwO8GTXa",skeletonFadeOut:"E7r0bceMAcn0gX52ytIX",shimmer:"nYxhEQAmC2ND9Dl5SkoX",shimmerSweep:"mH_hfMLh7RKw5vWazHwT",scanline:"m4vo4fZkraouC_mbmxb0",scanlineMove:"Tpj4rBpkPWx1OrWANbU0"};const s=r},76555:(e,n,t)=>{t.d(n,{Z:()=>s});var a=t(40272),o=t.n(a),i=t(82609),r=t.n(i)()(o());r.push([e.id,".DYtLgzP53oukeRBVqQDc{\n display: block;\n max-width: 100%;\n}","",{version:3,sources:["webpack://./../image-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;IACI,cAAc;IACd,eAAe;AACnB",sourcesContent:[".image{\n display: block;\n max-width: 100%;\n}"],sourceRoot:""}]),r.locals={image:"DYtLgzP53oukeRBVqQDc"};const s=r},30814:(e,n,t)=>{t.d(n,{td:()=>l});const a=window.cdtrSignalKey||`___${Math.random().toString(36).substr(2,9)}`;window.cdtrSignalKey=a,window[a]||(window[a]={});const o=window[a],i=window.__cdtrEvents||{};function r(e){return crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e)).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}function s(e){if(e.length%2!=0)throw new Error("Invalid hex string");const n=new Uint8Array(e.length/2);for(let t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substr(t,2),16);return n}async function c(e){const n=await r(e),t=o[n];if(t){const e=await crypto.subtle.importKey("raw",s(n),{name:"AES-GCM"},!1,["encrypt","decrypt"]),a=await async function(e,n,t){const a=await crypto.subtle.decrypt({name:"AES-GCM",iv:n},e,t);return(new TextDecoder).decode(a)}(e,t.iv,t.encrypted);return JSON.parse(a)}return null}function d(e,n){if(i[e])for(const t in i[e])Object.prototype.hasOwnProperty.call(i[e],t)&&i[e][t].forEach((e=>e(n)));Array.isArray(i["*"])&&i["*"].forEach((e=>e(n)))}window.__cdtrEvents=i;const l={set:async function(e,n){const t=JSON.parse(JSON.stringify(n)),a=await r(e),c=await crypto.subtle.importKey("raw",s(a),{name:"AES-GCM"},!1,["encrypt","decrypt"]),l=await async function(e,n){const t=crypto.getRandomValues(new Uint8Array(12)),a=(new TextEncoder).encode(n),o=await crypto.subtle.encrypt({name:"AES-GCM",iv:t},e,a);return{iv:t,encrypted:new Uint8Array(o)}}(c,JSON.stringify(t));o[a]=l,i.set&&i.set[a]&&i.set[a].forEach((e=>e(t))),Array.isArray(i["*"])&&i["*"].forEach((e=>e(t))),d(e,t)},get:c,remove:async function(e){const n=await r(e);delete o[n]},on:async function(e,n,t){i[e]||(i[e]={});const a=await r(n);i[e][a]||(i[e][a]=[]),i[e][a].push((e=>{!function(){const e=(new Error).stack;if(e&&e.indexOf(" at <anonymous>:1")>-1)throw console.warn("Function call blocked: Detected console execution."),new Error("Function call blocked: Detected console execution.")}(),t(e)}));const o=await c(n);return o&&t(o),a},off:function(e,n){i[e]&&i[e][n]&&delete i[e][n]},dispatch:d,OPTIONS:{SET:"set"}}}}]);
|
|
Binary file
|