@creaditor/newsletter-starterkit 1.0.55 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1142.creaditor.bundle.js +1 -1
- package/dist/1142.creaditor.bundle.js.gz +0 -0
- package/dist/1260.creaditor.bundle.js +133 -77
- package/dist/1260.creaditor.bundle.js.gz +0 -0
- package/dist/1271.creaditor.bundle.js +544 -1
- package/dist/1271.creaditor.bundle.js.gz +0 -0
- package/dist/1334.creaditor.bundle.js +3 -3
- package/dist/1334.creaditor.bundle.js.gz +0 -0
- package/dist/170.creaditor.bundle.js +160 -32
- package/dist/170.creaditor.bundle.js.gz +0 -0
- package/dist/211.creaditor.bundle.js +1 -1
- package/dist/211.creaditor.bundle.js.gz +0 -0
- package/dist/2234.creaditor.bundle.js +121 -1
- package/dist/2234.creaditor.bundle.js.gz +0 -0
- package/dist/2590.creaditor.bundle.js +1 -1
- package/dist/2590.creaditor.bundle.js.gz +0 -0
- package/dist/271.creaditor.bundle.js +6 -6
- package/dist/271.creaditor.bundle.js.gz +0 -0
- package/dist/2765.creaditor.bundle.js +1 -1
- package/dist/2765.creaditor.bundle.js.gz +0 -0
- package/dist/2956.creaditor.bundle.js +1 -1
- package/dist/2956.creaditor.bundle.js.gz +0 -0
- package/dist/3521.creaditor.bundle.js +2 -2
- package/dist/3521.creaditor.bundle.js.gz +0 -0
- package/dist/353.creaditor.bundle.js +3 -3
- package/dist/353.creaditor.bundle.js.gz +0 -0
- package/dist/3553.creaditor.bundle.js +1 -1
- package/dist/3553.creaditor.bundle.js.gz +0 -0
- package/dist/3606.creaditor.bundle.js +12 -4
- package/dist/3606.creaditor.bundle.js.gz +0 -0
- package/dist/3932.creaditor.bundle.js +4 -4
- package/dist/3932.creaditor.bundle.js.gz +0 -0
- package/dist/4061.creaditor.bundle.js +177 -0
- package/dist/4061.creaditor.bundle.js.LICENSE.txt +23 -0
- package/dist/4061.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/4061.creaditor.bundle.js.gz +0 -0
- package/dist/4186.creaditor.bundle.js +5 -1
- package/dist/4186.creaditor.bundle.js.gz +0 -0
- package/dist/4288.creaditor.bundle.js +10 -10
- package/dist/4288.creaditor.bundle.js.gz +0 -0
- package/dist/4475.creaditor.bundle.js +1 -1
- package/dist/4475.creaditor.bundle.js.gz +0 -0
- package/dist/453.creaditor.bundle.js +12 -111
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4569.creaditor.bundle.js +3 -3
- package/dist/4569.creaditor.bundle.js.gz +0 -0
- package/dist/4639.creaditor.bundle.js +1 -1
- package/dist/4639.creaditor.bundle.js.gz +0 -0
- package/dist/4762.creaditor.bundle.js +4 -4
- package/dist/4762.creaditor.bundle.js.gz +0 -0
- package/dist/4770.creaditor.bundle.js +3 -3
- package/dist/4770.creaditor.bundle.js.gz +0 -0
- package/dist/4970.creaditor.bundle.js +1314 -0
- package/dist/4970.creaditor.bundle.js.gz +0 -0
- package/dist/5133.creaditor.bundle.js +3 -3
- package/dist/5133.creaditor.bundle.js.gz +0 -0
- package/dist/5340.creaditor.bundle.js +17 -17
- package/dist/5340.creaditor.bundle.js.gz +0 -0
- package/dist/5379.creaditor.bundle.js +70 -0
- package/dist/5379.creaditor.bundle.js.gz +0 -0
- package/dist/5391.creaditor.bundle.js +1 -1
- package/dist/5391.creaditor.bundle.js.gz +0 -0
- package/dist/567.creaditor.bundle.js +469 -364
- package/dist/567.creaditor.bundle.js.gz +0 -0
- package/dist/5849.creaditor.bundle.js +2 -2
- package/dist/5849.creaditor.bundle.js.gz +0 -0
- package/dist/589.creaditor.bundle.js +25 -8
- package/dist/589.creaditor.bundle.js.gz +0 -0
- package/dist/5909.creaditor.bundle.js +651 -0
- package/dist/5909.creaditor.bundle.js.gz +0 -0
- package/dist/5926.creaditor.bundle.js +221 -35
- package/dist/5926.creaditor.bundle.js.gz +0 -0
- package/dist/638.creaditor.bundle.js +49 -20
- package/dist/638.creaditor.bundle.js.gz +0 -0
- package/dist/6814.creaditor.bundle.js +1 -1
- package/dist/6814.creaditor.bundle.js.gz +0 -0
- package/dist/7209.creaditor.bundle.js +98 -56
- package/dist/7209.creaditor.bundle.js.gz +0 -0
- package/dist/752.creaditor.bundle.js +8 -6
- package/dist/752.creaditor.bundle.js.gz +0 -0
- package/dist/7564.creaditor.bundle.js +1 -1
- package/dist/7564.creaditor.bundle.js.gz +0 -0
- package/dist/763.creaditor.bundle.js +34 -1
- package/dist/763.creaditor.bundle.js.gz +0 -0
- package/dist/7654.creaditor.bundle.js +221 -0
- package/dist/7654.creaditor.bundle.js.gz +0 -0
- package/dist/7918.creaditor.bundle.js +1 -0
- package/dist/7918.creaditor.bundle.js.gz +0 -0
- package/dist/7937.creaditor.bundle.js +23 -50
- package/dist/7937.creaditor.bundle.js.gz +0 -0
- package/dist/7997.creaditor.bundle.js +1 -1
- package/dist/7997.creaditor.bundle.js.gz +0 -0
- package/dist/8141.creaditor.bundle.js +2 -3
- package/dist/8141.creaditor.bundle.js.gz +0 -0
- package/dist/8250.creaditor.bundle.js +1 -1
- package/dist/8250.creaditor.bundle.js.gz +0 -0
- package/dist/8443.creaditor.bundle.js +1 -1
- package/dist/8443.creaditor.bundle.js.gz +0 -0
- package/dist/8547.creaditor.bundle.js +1270 -0
- package/dist/8547.creaditor.bundle.js.gz +0 -0
- package/dist/8570.creaditor.bundle.js +3 -3
- package/dist/8570.creaditor.bundle.js.gz +0 -0
- package/dist/8646.creaditor.bundle.js +20 -23
- package/dist/8646.creaditor.bundle.js.gz +0 -0
- package/dist/8654.creaditor.bundle.js +7 -7
- package/dist/8654.creaditor.bundle.js.gz +0 -0
- package/dist/8854.creaditor.bundle.js +4 -4
- package/dist/8854.creaditor.bundle.js.gz +0 -0
- package/dist/8916.creaditor.bundle.js +3 -1
- package/dist/8916.creaditor.bundle.js.gz +0 -0
- package/dist/9041.creaditor.bundle.js +14 -16
- package/dist/9041.creaditor.bundle.js.gz +0 -0
- package/dist/9250.creaditor.bundle.js +1 -1
- package/dist/9250.creaditor.bundle.js.gz +0 -0
- package/dist/9431.creaditor.bundle.js +1 -1
- package/dist/9431.creaditor.bundle.js.gz +0 -0
- package/dist/9694.creaditor.bundle.js +1 -1
- package/dist/9694.creaditor.bundle.js.gz +0 -0
- package/dist/9994.creaditor.bundle.js +114 -0
- package/dist/9994.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +3508 -2299
- package/dist/creaditor.bundle.js.LICENSE.txt +6 -0
- package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
- 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
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[7654],{12258(e,t,o){o.d(t,{A:()=>a});var n=o(59929),r=o(40648);class s extends n.WF{constructor(){super(),this.label="",this.open=!0,this.persistKey=""}toggle(){this.open=!this.open,(0,r.Q)(this.persistKey,this.open)}render(){return n.qy`
|
|
2
|
+
<div class="section">
|
|
3
|
+
<div class="header" @click=${this.toggle}>
|
|
4
|
+
<span class="title"><lang-text text="${this.label}"></lang-text></span>
|
|
5
|
+
<svg class="chevron ${this.open?"open":""}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
6
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
7
|
+
</svg>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="content ${this.open?"open":""}">
|
|
10
|
+
<div class="content-inner">
|
|
11
|
+
<slot></slot>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
`}}s.styles=n.AH`
|
|
16
|
+
:host {
|
|
17
|
+
display: block;
|
|
18
|
+
direction: var(--direction-locale, ltr);
|
|
19
|
+
--editor-container-inline-padding: 0;
|
|
20
|
+
}
|
|
21
|
+
.section {
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
/* Inset to the content gutter, not full-bleed: an edge-to-edge rule reads
|
|
25
|
+
as a table border. */
|
|
26
|
+
.section::after {
|
|
27
|
+
content: "";
|
|
28
|
+
display: block;
|
|
29
|
+
height: 1px;
|
|
30
|
+
margin: 0 var(--space-4, 16px);
|
|
31
|
+
background: var(--color-border-subtle, rgba(0, 0, 0, 0.06));
|
|
32
|
+
}
|
|
33
|
+
:host(:last-of-type) .section::after {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
.header {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
padding: var(--space-3) var(--space-4);
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
user-select: none;
|
|
43
|
+
/* Keeps the group name visible while its controls scroll past. */
|
|
44
|
+
position: sticky;
|
|
45
|
+
top: 0;
|
|
46
|
+
z-index: 1;
|
|
47
|
+
background: var(--color-bg, #fff);
|
|
48
|
+
}
|
|
49
|
+
.header:hover {
|
|
50
|
+
background: var(--color-bg-subtle, #fafbfc);
|
|
51
|
+
}
|
|
52
|
+
.title {
|
|
53
|
+
/* Larger and lighter than the labels inside it, not bolder — the labels
|
|
54
|
+
are what you act on. */
|
|
55
|
+
font-size: var(--text-md);
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
color: var(--color-text);
|
|
58
|
+
letter-spacing: 0;
|
|
59
|
+
}
|
|
60
|
+
.chevron {
|
|
61
|
+
width: 14px;
|
|
62
|
+
height: 14px;
|
|
63
|
+
transition: transform var(--duration-normal) var(--ease-default), color var(--duration-fast) var(--ease-default);
|
|
64
|
+
color: var(--color-text-faint);
|
|
65
|
+
}
|
|
66
|
+
.header:hover .chevron {
|
|
67
|
+
color: var(--color-text-muted);
|
|
68
|
+
}
|
|
69
|
+
.chevron.open {
|
|
70
|
+
transform: rotate(180deg);
|
|
71
|
+
}
|
|
72
|
+
.content {
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
transition: max-height var(--duration-normal) var(--ease-default), opacity var(--duration-fast) var(--ease-default);
|
|
75
|
+
max-height: 0;
|
|
76
|
+
opacity: 0;
|
|
77
|
+
}
|
|
78
|
+
.content.open {
|
|
79
|
+
max-height: 1200px;
|
|
80
|
+
opacity: 1;
|
|
81
|
+
}
|
|
82
|
+
.content-inner {
|
|
83
|
+
/* Light on top: the controls inside bring their own leading pad. */
|
|
84
|
+
padding: var(--space-1) var(--space-4) var(--space-3) var(--space-4);
|
|
85
|
+
}
|
|
86
|
+
`,s.properties={label:{type:String,reflect:!0,attribute:"data-label"},open:{type:Boolean,reflect:!0},persistKey:{type:String}},customElements.define("cdtr-editor-section",s);const a=(e,t)=>n.qy`
|
|
87
|
+
<cdtr-editor-section
|
|
88
|
+
.label=${e.label}
|
|
89
|
+
.open=${!1!==e.open}
|
|
90
|
+
.persistKey=${e.persistKey||""}
|
|
91
|
+
>
|
|
92
|
+
${t}
|
|
93
|
+
</cdtr-editor-section>
|
|
94
|
+
`},37654(e,t,o){o.r(t),o.d(t,{SettingEditor:()=>c});var n=o(59929),r=o(86319),s=o(36565);o(12258);const a=n.JW`<path d="M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.99C2.44 18 2 17.55 2 17V4.01C2 3.45 2.46 3 2.99 3H21.01C21.56 3 22 3.45 22 4.01V17C22 17.55 21.54 18 21.01 18H13Z"/>`,i=n.JW`<path d="M4 6H20V18H4V6ZM2 5C2 4.45 2.45 4 3 4H21C21.55 4 22 4.45 22 5V19C22 19.55 21.55 20 21 20H3C2.45 20 2 19.55 2 19V5ZM17 11C17 11.55 17.45 12 18 12C18.55 12 19 11.55 19 11C19 10.45 18.55 10 18 10C17.45 10 17 10.45 17 11Z"/>`,l=n.JW`<path d="M7 4V20H17V4H7ZM6 2H18C18.55 2 19 2.45 19 3V21C19 21.55 18.55 22 18 22H6C5.45 22 5 21.55 5 21V3C5 2.45 5.45 2 6 2ZM12 17C12.55 17 13 17.45 13 18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18C11 17.45 11.45 17 12 17Z"/>`;class c extends n.WF{constructor(){super(),this.onInspect=this.onInspect.bind(this),this.name="",this.element_ID=" ",this.cmds={onToggleDisplayMode:(e,t)=>{s.Ay.store().execCommand(`show_on_${e}`,t),this[`show_on_${e}`]=t},onChangeElementID(e){s.Ay.store().execCommand("element_ID",e.target.value)},onChangeName(e){s.Ay.store().execCommand("name",e.target.value)}}}onInspect(){if(s.Ay.components.length>0){const e=s.Ay.components[0].props;this.show_on_desktop=!!e.show_on_desktop,this.show_on_tablet=!!e.show_on_tablet,this.show_on_mobile=!!e.show_on_mobile,this.name=e.name||"",this.element_ID=e.element_ID||""}}connectedCallback(){super.connectedCallback(),s.Ay.on("select",this.onInspect),s.Ay.on("update",this.onInspect),this.onInspect()}disconnectedCallback(){super.disconnectedCallback(),s.Ay.off("select",this.onInspect),s.Ay.off("update",this.onInspect)}renderCheck(){return n.qy`<svg class="check" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
95
|
+
<circle cx="12" cy="12" r="12" fill="currentColor"></circle>
|
|
96
|
+
<path d="M7 12.5l3.2 3.2L17 9" stroke="#fff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
97
|
+
</svg>`}render(){const e=s.Ay.getSelectedComponent();if(!e||0===e.length)return n.qy``;const t="block"===e[0].type,o="web"===r.M.get("config","channel")||t;return n.qy`
|
|
98
|
+
${o?n.qy`<cdtr-editor-section label="display_mode" .open=${!0}>
|
|
99
|
+
<span class="device-toggle-title"><lang-text text="show_element_on"></lang-text></span>
|
|
100
|
+
<div class="device-toggle-row">
|
|
101
|
+
<div
|
|
102
|
+
class="device-toggle-btn ${this.show_on_desktop?"active":""}"
|
|
103
|
+
@click=${()=>this.cmds.onToggleDisplayMode("desktop",!this.show_on_desktop)}
|
|
104
|
+
>
|
|
105
|
+
${this.renderCheck()}
|
|
106
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">${a}</svg>
|
|
107
|
+
<lang-text text="desktop"></lang-text>
|
|
108
|
+
</div>
|
|
109
|
+
<div
|
|
110
|
+
class="device-toggle-btn ${this.show_on_tablet?"active":""}"
|
|
111
|
+
@click=${()=>this.cmds.onToggleDisplayMode("tablet",!this.show_on_tablet)}
|
|
112
|
+
>
|
|
113
|
+
${this.renderCheck()}
|
|
114
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">${i}</svg>
|
|
115
|
+
<lang-text text="tablet"></lang-text>
|
|
116
|
+
</div>
|
|
117
|
+
<div
|
|
118
|
+
class="device-toggle-btn ${this.show_on_mobile?"active":""}"
|
|
119
|
+
@click=${()=>this.cmds.onToggleDisplayMode("mobile",!this.show_on_mobile)}
|
|
120
|
+
>
|
|
121
|
+
${this.renderCheck()}
|
|
122
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">${l}</svg>
|
|
123
|
+
<lang-text text="mobile"></lang-text>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</cdtr-editor-section>`:n.qy``}
|
|
127
|
+
<cdtr-editor-section label="properties" .open=${!0}>
|
|
128
|
+
<cdtr-row mt="1">
|
|
129
|
+
<cdtr-title><lang-text text="name"></lang-text></cdtr-title>
|
|
130
|
+
</cdtr-row>
|
|
131
|
+
<cdtr-row>
|
|
132
|
+
<cdtr-input
|
|
133
|
+
max="30"
|
|
134
|
+
@change=${this.cmds.onChangeName}
|
|
135
|
+
.value=${this.name}
|
|
136
|
+
style="width:100%"
|
|
137
|
+
></cdtr-input>
|
|
138
|
+
</cdtr-row>
|
|
139
|
+
<cdtr-row mt="1">
|
|
140
|
+
<cdtr-title
|
|
141
|
+
><lang-text text="ID_with_description"></lang-text
|
|
142
|
+
></cdtr-title>
|
|
143
|
+
</cdtr-row>
|
|
144
|
+
<cdtr-row>
|
|
145
|
+
<cdtr-input
|
|
146
|
+
max="50"
|
|
147
|
+
@change=${this.cmds.onChangeElementID}
|
|
148
|
+
.value=${this.element_ID}
|
|
149
|
+
style="width:100%"
|
|
150
|
+
></cdtr-input>
|
|
151
|
+
</cdtr-row>
|
|
152
|
+
</cdtr-editor-section>
|
|
153
|
+
`}}c.properties={name:{},element_ID:{},show_on_desktop:{},show_on_tablet:{},show_on_mobile:{}},c.styles=n.AH`
|
|
154
|
+
:host {
|
|
155
|
+
direction: var(--direction-locale);
|
|
156
|
+
}
|
|
157
|
+
.device-toggle-title {
|
|
158
|
+
display: block;
|
|
159
|
+
margin-bottom: var(--space-2, 8px);
|
|
160
|
+
font-size: var(--text-sm, 13px);
|
|
161
|
+
font-weight: 600;
|
|
162
|
+
color: var(--color-text, #333);
|
|
163
|
+
}
|
|
164
|
+
.device-toggle-row {
|
|
165
|
+
display: flex;
|
|
166
|
+
gap: var(--space-2, 8px);
|
|
167
|
+
}
|
|
168
|
+
.device-toggle-btn {
|
|
169
|
+
position: relative;
|
|
170
|
+
flex: 1 1 0;
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-direction: column;
|
|
173
|
+
align-items: center;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
gap: var(--space-2, 8px);
|
|
176
|
+
padding: var(--space-3, 12px) var(--space-2, 8px);
|
|
177
|
+
border: 1px solid var(--color-border, #e6e6ea);
|
|
178
|
+
border-radius: var(--radius-md, 10px);
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
color: var(--color-text-faint, #bbb);
|
|
181
|
+
background: var(--color-bg, #fff);
|
|
182
|
+
transition: background var(--duration-fast, 120ms) var(--ease-default, ease),
|
|
183
|
+
color var(--duration-fast, 120ms) var(--ease-default, ease),
|
|
184
|
+
border-color var(--duration-fast, 120ms) var(--ease-default, ease),
|
|
185
|
+
box-shadow var(--duration-fast, 120ms) var(--ease-default, ease);
|
|
186
|
+
font-size: var(--text-xs, 12px);
|
|
187
|
+
font-weight: 500;
|
|
188
|
+
text-align: center;
|
|
189
|
+
}
|
|
190
|
+
.device-toggle-btn:hover {
|
|
191
|
+
border-color: var(--color-border-strong, #d0d0d6);
|
|
192
|
+
color: var(--color-text-muted, #888);
|
|
193
|
+
background: var(--color-bg-muted, #f7f7f9);
|
|
194
|
+
}
|
|
195
|
+
.device-toggle-btn svg {
|
|
196
|
+
width: 22px;
|
|
197
|
+
height: 22px;
|
|
198
|
+
fill: currentColor;
|
|
199
|
+
flex-shrink: 0;
|
|
200
|
+
}
|
|
201
|
+
.device-toggle-btn.active {
|
|
202
|
+
border-color: var(--color-primary, #6366f1);
|
|
203
|
+
background: var(--color-primary-soft, rgba(99, 102, 241, 0.08));
|
|
204
|
+
color: var(--color-primary, #6366f1);
|
|
205
|
+
}
|
|
206
|
+
.device-toggle-btn .check {
|
|
207
|
+
position: absolute;
|
|
208
|
+
top: 6px;
|
|
209
|
+
inset-inline-end: 6px;
|
|
210
|
+
width: 14px;
|
|
211
|
+
height: 14px;
|
|
212
|
+
opacity: 0;
|
|
213
|
+
transform: scale(0.6);
|
|
214
|
+
transition: opacity var(--duration-fast, 120ms) var(--ease-default, ease),
|
|
215
|
+
transform var(--duration-fast, 120ms) var(--ease-default, ease);
|
|
216
|
+
}
|
|
217
|
+
.device-toggle-btn.active .check {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
transform: scale(1);
|
|
220
|
+
}
|
|
221
|
+
`,customElements.define("cdtr-setting-editor",c)}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[7918],{47918(e,n,t){t.d(n,{default:()=>R});let o=!0;const a=e=>{{const{component:n,commands:t,helpers:a}=e,i=n.parent("col"),r=e=>"style"===e.text;return{select:e=>{let{changeTab:n,tab:t}=e;t.text||n("style")},tabs:e=>{const n=[{text:"style",selected:!0},{text:"interactions"},{text:"settings"}];return e?(n.forEach(n=>n.selected=n.text===e),n):n},layout:e=>{const{tab:a,changeTab:s,tabs:l}=e;return[{type:"heading",level:6,text:"image",active:()=>r(a)},{type:"gallery",active:()=>r(a),src:n.props.src,hasPreview:!0,previewWidth:n.props.style?.width,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:"altText",active:()=>r(a),value:n.props.alt||"",onChange:e=>{const n=e.target.value;t.execCommand("alt",n)}},{type:"input",title:"add_urlAddress_from_media_site",active:()=>r(a),value:n.props.src||"",onChange:e=>{const n=e.target.value;t.execCommand("src",n)}},{type:"checkbox",title:"fullWidthOnMobile",checked:!!n.props.isFullWidthOnMobile,active:()=>r(a),onChange:e=>{const n=e.target.checked;t.execCommand("isFullWidthOnMobile",n)}},{type:"heading",level:6,text:"size",active:()=>r(a)},{type:"checkbox",title:"keep_ratio",checked:!!o,active:()=>r(a),onChange:e=>{o=!o,s("style")}},{type:"slider",min:10,title:"size",active:()=>r(a)&&o,max:o?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:()=>r(a)&&!o,max:o?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const o=e.target.value,a=n.atomElement.getBoundingClientRect().height;t.execCommand("style",{width:o+"px",height:a+"px"})}},{type:"slider",min:10,title:"height",active:()=>r(a)&&!o,max:2*i?.element?.offsetWidth,value:parseInt(n.props.style.height),onInput:e=>{const o=e.target.value,a=n.atomElement.getBoundingClientRect().width;t.execCommand("style",{height:o+"px",width:a+"px"})}},{type:"heading",level:6,text:"border_design",active:()=>r(a)},{type:"radius",title:"radius",active:()=>r(a),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:"heading",level:6,text:"alignment",active:()=>r(a)},{type:"dropdown",title:"horizontal_align",active:()=>r(a),value:"auto"===n.props.style.marginLeft&&"auto"===n.props.style.marginRight?"center":"auto"===n.props.style.marginLeft?"right":"left",items:[{value:"left",label:"left"},{value:"center",label:"center"},{value:"right",label:"right"}],onChange:e=>{const n=e.target.value,o={marginLeft:null,marginRight:null};"center"===n?(o.marginLeft="auto",o.marginRight="auto"):"right"===n?(o.marginLeft="auto",o.marginRight="0"):(o.marginLeft="0",o.marginRight="auto"),t.execCommand("style",o)}},{type:"dropdown",title:"vertical_align",active:()=>r(a),value:n.props.style.verticalAlign||"top",items:[{value:"top",label:"top"},{value:"middle",label:"middle"},{value:"bottom",label:"bottom"}],onChange:e=>{const n=e.target.value;t.execCommand("style",{verticalAlign:n})}},{type:"heading",level:6,text:"ai",active:()=>r(a)},{type:"imagePrompt",active:()=>r(a),onChange:e=>{e.target.value}},{type:"heading",level:6,text:"link",active:()=>"interactions"===a.text},{type:"linkpicker",href:n.props.onClick?.link,protocol:n.props.onClick?.link?.protocol,target:n.props.onClick?.link?.target,autofocus:!0,active:()=>"interactions"===a.text,onChange:e=>{const n={link:e.target.value};t.execCommand("onClick",n)}}]}}}};var i=t(52144);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.A)(e[n],t),!0}}});var s=t(72591),l=t.n(s),c=t(88639),d=t.n(c),p=t(88128),A=t.n(p),u=t(30855),m=t.n(u),g=t(93051),h=t.n(g),y=t(98481),E={};E.setAttributes=m(),E.insert=A().bind(null,"head"),E.domAPI=d(),E.insertStyleElement=h();l()(y.A,E);const f=y.A&&y.A.locals?y.A.locals:void 0;function v(e){const n=document.createElement("div");n.className=f.wrapper;const t=document.createElement("div");t.className=f.skeleton;const o=document.createElement("div");o.className=f.shimmer,t.appendChild(o);const a=document.createElement("div");a.className=f.scanline,t.appendChild(a);const i=document.createElement("div");i.className=f.imageContainer,i.appendChild(e);let r=!1;function s(){if(!r)return;r=!1,n.classList.remove(f.loading),n.classList.add(f.revealed),e.classList.remove(f.imageHidden),e.classList.add(f.imageRevealed);const t=()=>{n.classList.remove(f.revealed),e.classList.remove(f.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(f.loading),e.classList.add(f.imageHidden))},hideLoader:s,wrap:function(e){n.appendChild(t),n.appendChild(i),e.appendChild(n)},skeleton:t}}var C=t(13681),b=t(86319);const w=(e,n)=>b.M.get("lang",e)||n;function x(e){const n=e?.props?.src;if(!n)return;const t=new Image;t.crossOrigin="anonymous";let o=!1;t.addEventListener("load",()=>o=!0),t.src=n;const a=document.createElement("div");a.style.cssText="\n position: fixed; inset: 0; z-index: 10000;\n display: flex; flex-direction: column; align-items: center; justify-content: center;\n gap: 16px; background: rgba(0,0,0,0.7);\n font-family: var(--font-family, Arial, Helvetica, sans-serif);\n ";const i=document.createElement("div");i.style.cssText="position: relative; line-height: 0; touch-action: none;";const r=document.createElement("img");r.src=n,r.draggable=!1,r.style.cssText="display: block; user-select: none; pointer-events: none; -webkit-user-drag: none;";const s=document.createElement("div");s.style.cssText="\n position: absolute; box-sizing: border-box;\n border: 1px solid #fff; cursor: move;\n box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);\n ";const l=["nw","ne","sw","se"],c={};l.forEach(e=>{const n=document.createElement("div"),t="n"===e[0]?"top: -6px;":"bottom: -6px;",o="w"===e[1]?"left: -6px;":"right: -6px;",a="nw"===e||"se"===e?"nwse-resize":"nesw-resize";n.style.cssText=`\n position: absolute; width: 12px; height: 12px; ${t} ${o}\n background: #fff; border-radius: 2px; cursor: ${a};\n `,n.dataset.corner=e,s.appendChild(n),c[e]=n});const d=document.createElement("div");d.style.cssText="position: relative; z-index: 1; display: flex; gap: 12px;";const p=(e,n)=>{const t=document.createElement("button");return t.type="button",t.textContent=e,t.style.cssText=`\n padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer;\n font-family: inherit; font-size: 14px; font-weight: 600;\n ${n?"background: #6b4eff; color: #fff;":"background: rgba(255,255,255,0.15); color: #fff;"}\n `,t},A=p(w("cancel","Cancel"),!1),u=p(w("apply","Apply"),!0);d.append(A,u);const m=document.createElement("div");m.style.cssText="\n width: 44px; height: 44px; border-radius: 50%;\n border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff;\n ";const g=m.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:800,iterations:1/0});i.style.visibility="hidden",u.disabled=!0,u.style.opacity="0.5",u.style.cursor="default";const h={x:0,y:0,w:0,h:0};let y=0,E=0;function f(){s.style.left=`${h.x}px`,s.style.top=`${h.y}px`,s.style.width=`${h.w}px`,s.style.height=`${h.h}px`}const v=(e,n,t)=>Math.max(n,Math.min(t,e));let b=null,x=0,k=0,B=null;function L(e,n){e.preventDefault(),e.stopPropagation(),b=n,x=e.clientX,k=e.clientY,B={...h},window.addEventListener("pointermove",R),window.addEventListener("pointerup",S)}function R(e){if(!b)return;const n=e.clientX-x,t=e.clientY-k;if("move"===b)h.x=v(B.x+n,0,y-h.w),h.y=v(B.y+t,0,E-h.h);else{const e=B.x+B.w,o=B.y+B.h;b.includes("w")&&(h.x=v(B.x+n,0,e-24),h.w=e-h.x),b.includes("e")&&(h.w=v(B.w+n,24,y-h.x)),b.includes("n")&&(h.y=v(B.y+t,0,o-24),h.h=o-h.y),b.includes("s")&&(h.h=v(B.h+t,24,E-h.y))}f()}function S(){b=null,window.removeEventListener("pointermove",R),window.removeEventListener("pointerup",S)}function M(){window.removeEventListener("pointermove",R),window.removeEventListener("pointerup",S),document.removeEventListener("keydown",D),a.remove()}function D(e){"Escape"===e.key&&M()}s.addEventListener("pointerdown",e=>L(e,"move")),l.forEach(e=>c[e].addEventListener("pointerdown",n=>L(n,c[e].dataset.corner))),A.addEventListener("click",M),u.addEventListener("click",function(){const e=r.naturalWidth/y,n=o?t:r,a=Math.round(h.x*e),i=Math.round(h.y*e),s=Math.max(1,Math.round(h.w*e)),l=Math.max(1,Math.round(h.h*e)),c=document.createElement("canvas");let d;c.width=s,c.height=l,c.getContext("2d").drawImage(n,a,i,s,l,0,0,s,l);try{d=c.toDataURL("image/png")}catch(e){return console.error("Crop export failed (tainted canvas / CORS):",e),void alert(w("crop_cors_error","This image can’t be cropped in the browser because it’s served without CORS headers. Re-upload it through the gallery and try again."))}C.vP.dispatch("on:upload-file",{image:d,type:"base64"}),M()}),a.addEventListener("pointerdown",e=>{e.target===a&&M()}),document.addEventListener("keydown",D),r.addEventListener("load",()=>{const e=r.naturalWidth,n=r.naturalHeight,t=Math.min(.8*window.innerWidth,e),o=.7*window.innerHeight,a=Math.min(t/e,o/n,1);y=Math.round(e*a),E=Math.round(n*a),r.style.width=`${y}px`,r.style.height=`${E}px`,h.x=Math.round(.1*y),h.y=Math.round(.1*E),h.w=Math.round(.8*y),h.h=Math.round(.8*E),f(),g.cancel(),m.remove(),i.style.visibility="visible",u.disabled=!1,u.style.opacity="",u.style.cursor="pointer"}),r.addEventListener("error",()=>{console.error("Cropper: failed to load image",n),M()}),i.append(r,s),a.append(i,m,d),document.body.appendChild(a),r.complete&&r.naturalWidth&&r.dispatchEvent(new Event("load"))}var k=t(44217),B={};B.setAttributes=m(),B.insert=A().bind(null,"head"),B.domAPI=d(),B.insertStyleElement=h();l()(k.A,B);const L=k.A&&k.A.locals?k.A.locals:void 0,R=()=>{const e="image";return{name:e,create:n=>{const{createElement:t,compose:o,helpers:i}=n,{arrayToString:s,mergeDiff:l}=i,c=document.createElement("img"),d=document.createElement("div");o.props.style&&!parseInt(o.props.style.height)&&(o.props.style.height="auto"),c.addEventListener("drop",e=>{e.preventDefault();var n=e.dataTransfer.getData("text/html");const t=document.createElement("div");t.innerHTML=n;const a=t.querySelector("img");a&&a.src&&o.editor.store().updateComponent(o,"src",a.src)}),c.draggable=!0,c.src=o.props.src;const p=s(o.classList);c.className=s(p,"editor-image",L.image),d.append(c);const A=v(c);A.wrap(d);let u=o.props.src;o.props.src&&A.showLoader();const m=document.createElement("button");m.type="button",m.className=f.cropButton;const g=b.M.get("lang","crop_image")||"Crop image";function h(e){const n=e.target;n.classList.contains("amazingbar-content-wrapper")&&"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&("Delete"!==e.key&&"Backspace"!==e.key||y.commands.remove())}m.title=g,m.setAttribute("aria-label",g),m.innerHTML='<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2v14a2 2 0 0 0 2 2h14"/><path d="M18 22V8a2 2 0 0 0-2-2H2"/></svg>',m.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),x(o)}),A.wrapper.appendChild(m),c.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]),o.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 y=t({name:e,id:o.id,template:d,defaultProps:{style:{height:"auto",width:"200px"}},draggable:{group:"element"},droppable:{group:"element"},render:()=>{l(c,{style:o.props.style}),c.width=o.props.width||o.props.style.width,c.height=o.props.height||o.props.style.height,o.props.src&&o.props.src!==u&&(u=o.props.src,A.showLoader(!0)),l(c,{src:o.props.src}),l(c,{alt:o.props.alt})},resizeable:()=>d,handleBar:!0,validator:r(),schema:o.schema,onSelect:e=>{c.classList.add(e),document.addEventListener("keyup",h)},onDeselect:e=>{c.classList.remove(e),document.removeEventListener("keyup",h)},elementProps:o,remove:()=>{d.remove()},createEditor:a});let E=0,C=0,w=!1,k=!1,B=!1,R=!1;return c.addEventListener("dragover",e=>{e.preventDefault()}),c.addEventListener("dragstart",e=>{E=e.clientX,C=e.clientY,w=!0,k=!1,B=!1,R=!1}),c.addEventListener("drag",e=>{if(!w)return;const n=c.closest(".block-component")||c.closest("[data-block]")||c.parentElement;if(!n)return;const t=n.getBoundingClientRect(),o=t.width,a=t.left,i=e.clientX-a,r=.3*o,s=.7*o;if(i<r&&!k){k=!0,R=!1,B=!1;const e=y.parent("col");e&&e.commands.execCommand("justify","start")}else if(i>s&&!B){B=!0,R=!1,k=!1;const e=y.parent("col");e&&e.commands.execCommand("justify","end")}else if(i>=r&&i<=s&&!R){R=!0,k=!1,B=!1;const e=y.closest("col");e&&e.commands.execCommand("justify","center")}}),c.addEventListener("dragend",e=>{w=!1,k=!1,B=!1,R=!1}),y}}}},98481(e,n,t){t.d(n,{A:()=>s});var o=t(82001),a=t.n(o),i=t(40935),r=t.n(i)()(a());r.push([e.id,".lohuqKHS721dHgrbXSxR {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.svsvvszZebJje0J5_aR0 {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n/* Crop / edit-image button — appears on hover over the image */\n.pQ89uz0UlGnGPEecwX2t {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 2;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 8px;\n color: #fff;\n background: rgba(0, 0, 0, 0.55);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.15s ease-out, background 0.15s ease-out;\n}\n\n.lohuqKHS721dHgrbXSxR:hover .pQ89uz0UlGnGPEecwX2t {\n opacity: 1;\n}\n\n.pQ89uz0UlGnGPEecwX2t:hover {\n background: rgba(0, 0, 0, 0.75);\n}\n\n.X_p_Nfsu3cFahVFu4_Bw {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n._6bzBNhs7hY6_EZJBee1 {\n animation: RDp05pdkytBCK3jwjH1H 0.4s ease-out forwards;\n}\n\n@keyframes RDp05pdkytBCK3jwjH1H {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.gT24aWaYLc3ogXj85wMz {\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: _Mzf8MsKMSARt4xYISlA 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.lohuqKHS721dHgrbXSxR.MhfE6WSo5ganwIXH6eLf .gT24aWaYLc3ogXj85wMz {\n opacity: 1;\n z-index: 1;\n}\n\n.lohuqKHS721dHgrbXSxR:not(.MhfE6WSo5ganwIXH6eLf) .gT24aWaYLc3ogXj85wMz {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.lohuqKHS721dHgrbXSxR.MsTRDhZG2BCJz9_2FibU .gT24aWaYLc3ogXj85wMz {\n animation: j0DUaUfa5Px2EIxpK3zU 0.4s ease-out forwards;\n}\n\n@keyframes _Mzf8MsKMSARt4xYISlA {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes j0DUaUfa5Px2EIxpK3zU {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.EcbfYuWAe3Ej6GnLZxPW {\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: dOhdOxhPYbAyl0kAuAmR 2s ease-in-out infinite;\n}\n\n@keyframes dOhdOxhPYbAyl0kAuAmR {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.ixwwhz1RPbWh52COfXpg {\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: qDDvb69LDcaVxWWlah1p 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes qDDvb69LDcaVxWWlah1p {\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://./../web-editors/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,+DAA+D;AAC/D;EACE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,UAAU;EACV,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;EACvB,WAAW;EACX,YAAY;EACZ,UAAU;EACV,YAAY;EACZ,kBAAkB;EAClB,WAAW;EACX,+BAA+B;EAC/B,eAAe;EACf,UAAU;EACV,6DAA6D;AAC/D;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,+BAA+B;AACjC;;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/* Crop / edit-image button — appears on hover over the image */\n.cropButton {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 2;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 8px;\n color: #fff;\n background: rgba(0, 0, 0, 0.55);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.15s ease-out, background 0.15s ease-out;\n}\n\n.wrapper:hover .cropButton {\n opacity: 1;\n}\n\n.cropButton:hover {\n background: rgba(0, 0, 0, 0.75);\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:"lohuqKHS721dHgrbXSxR",imageContainer:"svsvvszZebJje0J5_aR0",cropButton:"pQ89uz0UlGnGPEecwX2t",imageHidden:"X_p_Nfsu3cFahVFu4_Bw",imageRevealed:"_6bzBNhs7hY6_EZJBee1",imageFadeIn:"RDp05pdkytBCK3jwjH1H",skeleton:"gT24aWaYLc3ogXj85wMz",skeletonShimmer:"_Mzf8MsKMSARt4xYISlA",loading:"MhfE6WSo5ganwIXH6eLf",revealed:"MsTRDhZG2BCJz9_2FibU",skeletonFadeOut:"j0DUaUfa5Px2EIxpK3zU",shimmer:"EcbfYuWAe3Ej6GnLZxPW",shimmerSweep:"dOhdOxhPYbAyl0kAuAmR",scanline:"ixwwhz1RPbWh52COfXpg",scanlineMove:"qDDvb69LDcaVxWWlah1p"};const s=r},44217(e,n,t){t.d(n,{A:()=>s});var o=t(82001),a=t.n(o),i=t(40935),r=t.n(i)()(a());r.push([e.id,".YbsG1_k3QD06_W0gNo53{\n display: block;\n max-width: 100%;\n}","",{version:3,sources:["webpack://./../web-editors/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:"YbsG1_k3QD06_W0gNo53"};const s=r},13681(e,n,t){t.d(n,{vP:()=>d});const o=window.cdtrSignalKey||`___${Math.random().toString(36).substr(2,9)}`;window.cdtrSignalKey=o,window[o]||(window[o]={});const a=window[o],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 l(e){const n=await r(e),t=a[n];if(t){const e=await crypto.subtle.importKey("raw",s(n),{name:"AES-GCM"},!1,["encrypt","decrypt"]),o=await async function(e,n,t){const o=await crypto.subtle.decrypt({name:"AES-GCM",iv:n},e,t);return(new TextDecoder).decode(o)}(e,t.iv,t.encrypted);return JSON.parse(o)}return null}function c(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 d={set:async function(e,n){const t=JSON.parse(JSON.stringify(n)),o=await r(e),l=await crypto.subtle.importKey("raw",s(o),{name:"AES-GCM"},!1,["encrypt","decrypt"]),d=await async function(e,n){const t=crypto.getRandomValues(new Uint8Array(12)),o=(new TextEncoder).encode(n),a=await crypto.subtle.encrypt({name:"AES-GCM",iv:t},e,o);return{iv:t,encrypted:new Uint8Array(a)}}(l,JSON.stringify(t));a[o]=d,i.set&&i.set[o]&&i.set[o].forEach(e=>e(t)),Array.isArray(i["*"])&&i["*"].forEach(e=>e(t)),c(e,t)},get:l,remove:async function(e){const n=await r(e);delete a[n]},on:async function(e,n,t){i[e]||(i[e]={});const o=await r(n);i[e][o]||(i[e][o]=[]),i[e][o].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 a=await l(n);return a&&t(a),o},off:function(e,n){i[e]&&i[e][n]&&delete i[e][n]},dispatch:c,OPTIONS:{SET:"set"}}}}]);
|
|
Binary file
|
|
@@ -1,78 +1,51 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[7937],{67937(t,
|
|
2
|
-
<defs><clippath id="ai-clip"><path d="M 0 0.375 L 19.527344 0.375 L 19.527344 19.902344 L 0 19.902344 Z" clip-rule="nonzero"></path></clippath></defs>
|
|
3
|
-
<g clip-path="url(#ai-clip)"><path fill="#9747ff" d="M 12.316406 0.679688 C 12.160156 0.382812 11.734375 0.382812 11.574219 0.679688 L 11.132812 1.507812 C 11.09375 1.582031 11.035156 1.640625 10.960938 1.679688 L 10.128906 2.117188 C 9.828125 2.277344 9.828125 2.699219 10.128906 2.855469 L 10.960938 3.296875 C 11.035156 3.335938 11.09375 3.394531 11.132812 3.46875 L 11.574219 4.296875 C 11.734375 4.59375 12.160156 4.59375 12.316406 4.296875 L 12.757812 3.46875 C 12.800781 3.394531 12.859375 3.335938 12.933594 3.296875 L 13.765625 2.855469 C 14.0625 2.699219 14.0625 2.277344 13.765625 2.117188 L 12.933594 1.679688 C 12.859375 1.640625 12.800781 1.582031 12.757812 1.507812 Z M 15.167969 16.96875 L 16.875 17.617188 L 16.226562 15.917969 Z M 16.882812 13.496094 L 5.136719 1.816406 C 4.15625 0.839844 2.558594 0.839844 1.574219 1.816406 L 0.984375 2.40625 C 0 3.382812 0 4.96875 0.984375 5.949219 L 12.730469 17.625 C 12.929688 17.824219 13.273438 18.039062 13.542969 18.140625 L 17.152344 19.507812 C 18.167969 19.890625 19.164062 18.902344 18.777344 17.890625 L 17.402344 14.300781 C 17.300781 14.035156 17.085938 13.695312 16.882812 13.496094 Z M 15.316406 14.296875 L 5.730469 4.769531 L 3.953125 6.535156 L 13.535156 16.066406 Z M 3.949219 3 L 4.542969 3.585938 L 2.765625 5.355469 L 2.171875 4.765625 C 1.84375 4.441406 1.84375 3.910156 2.171875 3.585938 L 2.761719 3 C 3.089844 2.671875 3.621094 2.671875 3.949219 3 Z M 4.550781 12.996094 C 4.390625 12.699219 3.964844 12.699219 3.808594 12.996094 L 3 14.503906 C 2.960938 14.578125 2.902344 14.640625 2.828125 14.679688 L 1.308594 15.480469 C 1.011719 15.636719 1.011719 16.058594 1.308594 16.214844 L 2.828125 17.015625 C 2.902344 17.054688 2.960938 17.117188 3 17.191406 L 3.808594 18.699219 C 3.964844 18.996094 4.390625 18.996094 4.550781 18.699219 L 5.355469 17.191406 C 5.394531 17.117188 5.453125 17.054688 5.527344 17.015625 L 7.046875 16.214844 C 7.34375 16.058594 7.34375 15.636719 7.046875 15.480469 L 5.527344 14.679688 C 5.453125 14.640625 5.394531 14.578125 5.355469 14.503906 Z M 17.355469 5.480469 C 17.199219 5.183594 16.773438 5.183594 16.613281 5.480469 L 16.027344 6.582031 C 15.988281 6.65625 15.929688 6.714844 15.855469 6.753906 L 14.746094 7.335938 C 14.449219 7.496094 14.449219 7.917969 14.746094 8.074219 L 15.855469 8.660156 C 15.929688 8.699219 15.988281 8.757812 16.027344 8.832031 L 16.613281 9.933594 C 16.773438 10.230469 17.199219 10.230469 17.355469 9.933594 L 17.945312 8.832031 C 17.984375 8.757812 18.042969 8.699219 18.117188 8.660156 L 19.226562 8.074219 C 19.523438 7.917969 19.523438 7.496094 19.226562 7.335938 L 18.117188 6.753906 C 18.042969 6.714844 17.984375 6.65625 17.945312 6.582031 Z" fill-opacity="1" fill-rule="evenodd"></path></g>
|
|
4
|
-
</svg>`;default:return null}}render(){return i.qy`
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[7937],{67937(e,t,o){o.r(t),o.d(t,{EditorTabItem:()=>a});var n=o(59929);class a extends n.WF{focus(){const e=this.shadowRoot.querySelector(".tab-btn");e?e.focus():super.focus()}onClickItem(e){this.value=e,this.dispatchEvent(new UIEvent("change",{view:window,bubbles:!0,cancelable:!0}))}handleKeyDown(e){if("Enter"===e.key||" "===e.key)return e.preventDefault(),e.stopPropagation(),void this.onClickItem(this.icon);["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new CustomEvent("arrow-navigation",{detail:{key:e.key,currentIcon:this.icon},bubbles:!0,cancelable:!0})))}render(){return n.qy`
|
|
5
2
|
<button
|
|
6
3
|
class="tab-btn ${this.selected?"selected":""}"
|
|
7
4
|
data-icon="${this.icon}"
|
|
8
5
|
tabindex="0"
|
|
9
|
-
@keydown=${
|
|
6
|
+
@keydown=${e=>this.handleKeyDown(e)}
|
|
10
7
|
@click=${()=>this.onClickItem(this.icon)}
|
|
11
8
|
>
|
|
12
|
-
<span class="icon">${this.factory()}</span>
|
|
13
9
|
<span class="label"><lang-text text="${this.icon}"></lang-text></span>
|
|
14
10
|
</button>
|
|
15
|
-
`}}
|
|
11
|
+
`}}a.styles=n.AH`
|
|
16
12
|
:host {
|
|
17
13
|
display: block;
|
|
18
|
-
direction: ltr;
|
|
19
14
|
}
|
|
20
15
|
.tab-btn {
|
|
21
16
|
width: 100%;
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
17
|
+
display: inline-flex;
|
|
24
18
|
align-items: center;
|
|
25
19
|
justify-content: center;
|
|
26
|
-
|
|
27
|
-
padding: 6px 2px;
|
|
20
|
+
padding: var(--space-2, 9px) var(--space-3, 12px);
|
|
28
21
|
cursor: pointer;
|
|
29
22
|
border: none;
|
|
23
|
+
border-bottom: 2px solid transparent;
|
|
30
24
|
background: transparent;
|
|
31
25
|
outline: none;
|
|
32
|
-
|
|
33
|
-
transition:
|
|
26
|
+
font-family: inherit;
|
|
27
|
+
transition: color var(--duration-fast, 120ms) var(--ease-default, ease),
|
|
28
|
+
border-color var(--duration-fast, 120ms) var(--ease-default, ease);
|
|
34
29
|
}
|
|
35
|
-
.tab-btn:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.tab-btn.selected {
|
|
39
|
-
background: color-mix(in srgb, var(--accent, #5B5FC7) 12%, transparent);
|
|
40
|
-
}
|
|
41
|
-
.icon {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
--cdtr-icon-width: 18px;
|
|
46
|
-
--cdtr-icon-height: 18px;
|
|
47
|
-
opacity: 0.55;
|
|
48
|
-
transition: opacity 0.15s ease, color 0.15s ease;
|
|
49
|
-
color: #666;
|
|
50
|
-
}
|
|
51
|
-
.tab-btn:hover:not(.selected) .icon {
|
|
52
|
-
opacity: 0.8;
|
|
53
|
-
color: #444;
|
|
54
|
-
}
|
|
55
|
-
.tab-btn.selected .icon {
|
|
56
|
-
opacity: 1;
|
|
57
|
-
color: var(--accent, #5B5FC7);
|
|
30
|
+
.tab-btn:focus-visible {
|
|
31
|
+
box-shadow: var(--focus-ring-inset, inset 0 0 0 2px #6366f1);
|
|
32
|
+
border-radius: 4px;
|
|
58
33
|
}
|
|
59
34
|
.label {
|
|
60
|
-
font-size:
|
|
61
|
-
color: #888;
|
|
35
|
+
font-size: 13px;
|
|
62
36
|
font-weight: 500;
|
|
63
|
-
text-
|
|
64
|
-
line-height: 1;
|
|
65
|
-
max-width: 100%;
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
text-overflow: ellipsis;
|
|
37
|
+
color: var(--color-text-muted, #888);
|
|
68
38
|
white-space: nowrap;
|
|
69
|
-
transition: color
|
|
39
|
+
transition: color var(--duration-fast, 120ms) var(--ease-default, ease);
|
|
40
|
+
}
|
|
41
|
+
.tab-btn:hover:not(.selected) .label {
|
|
42
|
+
color: var(--color-text-secondary, #444);
|
|
43
|
+
}
|
|
44
|
+
.tab-btn.selected {
|
|
45
|
+
border-bottom-color: var(--color-primary, #6366f1);
|
|
70
46
|
}
|
|
71
47
|
.tab-btn.selected .label {
|
|
72
|
-
color: var(--
|
|
48
|
+
color: var(--color-primary, #6366f1);
|
|
73
49
|
font-weight: 600;
|
|
74
50
|
}
|
|
75
|
-
|
|
76
|
-
color: #444;
|
|
77
|
-
}
|
|
78
|
-
`,c.properties={icon:{},labelMode:{},selected:{}},customElements.define("cdtr-editor-tab-item",c)}}]);
|
|
51
|
+
`,a.properties={icon:{},selected:{}},customElements.define("cdtr-editor-tab-item",a)}}]);
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8141],{68141(e,t,s){var i=s(59929),r=s(64749),n=s(70980);class o extends i.WF{constructor(){super(),this.index=0}render(){"string"!=typeof this.src&&(this.src="");const e=this.src.split(",");e.length>1&&setTimeout(()=>{const t=this.shadowRoot.querySelector(".background");t.classList.remove("fade-in"),this.index<e.length-1?this.index++:this.index=0,t&&setTimeout(()=>{t.classList.add("fade-in"),setTimeout(()=>{t.classList.remove("fade-in")},1e3)},0)},4500);const t=(0,r.t)(this.getAttribute("style"));return t.backgroundImage=`url(${e[this.index]})`,i.qy`<div style="${(0,n.W)(t)}" class="background"></div>`}}o.properties={src:{type:String},index:{type:Number},style:{type:String}},o.styles=i.AH`
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8141],{68141(e,t,s){s.r(t),s.d(t,{ImagesPreset:()=>o});var i=s(59929),r=s(64749),n=s(70980);class o extends i.WF{constructor(){super(),this.index=0}render(){"string"!=typeof this.src&&(this.src="");const e=this.src.split(",");e.length>1&&setTimeout(()=>{const t=this.shadowRoot.querySelector(".background");t.classList.remove("fade-in"),this.index<e.length-1?this.index++:this.index=0,t&&setTimeout(()=>{t.classList.add("fade-in"),setTimeout(()=>{t.classList.remove("fade-in")},1e3)},0)},4500);const t=(0,r.t)(this.getAttribute("style"));return t.backgroundImage=`url(${e[this.index]})`,i.qy`<div style="${(0,n.W)(t)}" class="background"></div>`}}o.properties={src:{type:String},index:{type:Number},style:{type:String}},o.styles=i.AH`
|
|
3
2
|
.background {
|
|
4
3
|
background-position: center center;
|
|
5
4
|
background-size: cover;
|
|
@@ -18,4 +17,4 @@
|
|
|
18
17
|
opacity: 1;
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
`,customElements.define("cdtr-images-preset",o)}
|
|
20
|
+
`,customElements.define("cdtr-images-preset",o)}}]);
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8250],{78250(e,t,o){o.d(t,{default:()=>l});const a=e=>{{const{component:t,commands:o,helpers:a}=e;return{select:e=>{let{changeTab:t,tab:o}=e},tabs:e=>{const t=[{text:"
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8250],{78250(e,t,o){o.d(t,{default:()=>l});const a=e=>{{const{component:t,commands:o,helpers:a}=e;return{select:e=>{let{changeTab:t,tab:o}=e},tabs:e=>{const t=[{text:"style"}];return t.forEach(t=>t.selected=t.selected=t.text===e),t},layout:e=>{let{tab:a,changeTab:r,tabs:n}=e;const l=t.parent("col");return[{type:"datetime",value:t.props.date,active:"style"===a.text,onChange:e=>{const t=e.target.value;o.execCommand("date",t.toString())}},{type:"slider",title:"width",max:l.element.offsetWidth,min:100,value:parseFloat(t.props.containerWidth),active:"style"===a.text,onInput:e=>{const t=e.target.value;o.execCommand("containerWidth",t+"px")}},{type:"divider",active:"style"===a.text},{type:"heading",level:5,text:"numbers"},{type:"fontFamily",title:"font",value:t.props.numberFontFamily,onChange:e=>{const t=e.target.value;o.execCommand("numberFontFamily",t)}},{type:"slider",title:"size",max:100,min:10,value:parseFloat(t.props.numberSize),onInput:e=>{const t=e.target.value;o.execCommand("numberSize",t+"px")}},{type:"colorpicker",title:"color",value:t.props.numberColor,onChange:e=>{const t=e.target.value;o.execCommand("numberColor",t)}},{type:"divider"},{type:"heading",level:5,text:"labels"},{type:"checkbox",title:"counterTitle",checked:t.props.hasLabels,onChange:e=>{const t=e.target.checked;o.execCommand("hasLabels",t)}},{type:"fontFamily",title:"font",value:t.props.labelFontFamily,onChange:e=>{const t=e.target.value;o.execCommand("labelFontFamily",t)}},{type:"slider",title:"size",max:100,min:10,value:parseFloat(t.props.labelSize),onInput:e=>{const t=e.target.value;o.execCommand("labelSize",t+"px")}},{type:"colorpicker",title:"color",value:t.props.labelColor,onChange:e=>{const t=e.target.value;o.execCommand("labelColor",t)}},{type:"divider"},{type:"heading",level:5,text:"border"},{type:"colorpicker",title:"color",value:t.props.borderColor,onChange:e=>{const t=e.target.value;o.execCommand("borderColor",t)}},{type:"slider",title:"size",max:10,min:0,value:parseFloat(t.props.colBorderSize),onInput:e=>{const t=e.target.value;o.execCommand("colBorderSize",t+"px")}},{type:"borderpicker",title:"style",value:t.props.borderStyle,onChange:e=>{const t=e.target.value;o.execCommand("colBorderStyle",t)}},{type:"colorpicker",title:"background",value:t.props.colBg,onChange:e=>{const t=e.target.value;o.execCommand("colBg",t)}}]}}}};var r=o(52144);const n=e=>{let{helpers:t,template:o,countdown:a}=e;return{set:(e,t,o)=>{switch(t){case"containerWidth":case"numberFontFamily":case"colorpicker":case"labelSize":case"labelColor":case"colBg":case"numberSize":case"numberColor":case"colBorderSize":case"colBorderColor":case"hasLabels":case"colBorderSize":case"labelFontFamily":case"numberFontFamily":return a[t]=e[t]=o,!0;case"style":return e[t]=(0,r.A)(e[t],o),!0}}}};(function(e,t){try{const o=document.head.querySelector(`script[src="${e}"]`);if(o){const e=parseInt(o.dataset.requested,10)||1;return o.dataset.requested=String(e+1),void("function"==typeof t&&t())}const a=document.createElement("script");a.type=e.includes("?module")?"module":"text/javascript",a.dataset.loaded="false",a.async=!0,a.defer=!0,a.src=e,a.addEventListener("load",()=>{a.dataset.loaded="true",a.dataset.requested=String((parseInt(a.dataset.requested,10)||0)+1),"function"==typeof t&&t()},{once:!0}),a.addEventListener("error",()=>{a.dataset.error="true"},{once:!0}),document.head.appendChild(a)}catch(e){console.error("loadScript:",e)}})("https://unpkg.com/@creaditor/countdown@latest/dist/countdown-element.js?module");const l=()=>{const e="countdown";return{name:e,create:t=>{let{createElement:o,compose:r,helpers:l}=t;const{arrayToString:c,mergeDiff:s}=l,d=r.props,i=document.createElement("div"),p=document.createElement("countdown-element");return i.append(p),o({name:e,id:r.id,template:i,render:()=>{!function(){for(const e in d)if(Object.hasOwnProperty.call(d,e)){const t=d[e];p[e]=t}}(),s(p,{style:r.props.style})},defaultProps:{hasColons:!0,hasLabels:!0,data:"",language:"he",style:{},classList:[],containerWidth:"400px",containerBg:"transparent",containerRadius:"0",colBg:"transparent",colBorderStyle:"none",colBorderSize:"0",colBorderColor:"none",colBorderPadding:"0",colBorderRadius:"100px",numberSize:"30px",numberColor:"black",numberFontFamily:"Arial",labelSize:"14px",labelColor:"black",labelfontFamily:"Arial"},validator:n({template:i,helpers:l,countdown:p}),draggable:{group:"element"},droppable:{group:"element"},handleBar:!0,schema:r.schema,onSelect:e=>{p.classList.add(e)},onDeselect:e=>{p.classList.remove(e)},elementProps:r,remove:()=>{i.remove()},createEditor:a})}}}}}]);
|
|
Binary file
|
|
Binary file
|