@creaditor/web-starterkit 1.0.6 → 1.0.8

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.
Files changed (87) hide show
  1. package/dist/1260.creaditor.bundle.js +297 -128
  2. package/dist/1260.creaditor.bundle.js.gz +0 -0
  3. package/dist/1271.creaditor.bundle.js +1 -439
  4. package/dist/1271.creaditor.bundle.js.gz +0 -0
  5. package/dist/1403.creaditor.bundle.js +110 -0
  6. package/dist/1403.creaditor.bundle.js.gz +0 -0
  7. package/dist/1529.creaditor.bundle.js +1 -1
  8. package/dist/1529.creaditor.bundle.js.gz +0 -0
  9. package/dist/1565.creaditor.bundle.js +311 -146
  10. package/dist/1565.creaditor.bundle.js.gz +0 -0
  11. package/dist/168.creaditor.bundle.js +4 -4
  12. package/dist/168.creaditor.bundle.js.gz +0 -0
  13. package/dist/170.creaditor.bundle.js +11 -5
  14. package/dist/170.creaditor.bundle.js.gz +0 -0
  15. package/dist/2384.creaditor.bundle.js +32 -16
  16. package/dist/2384.creaditor.bundle.js.gz +0 -0
  17. package/dist/2590.creaditor.bundle.js +1 -2
  18. package/dist/2590.creaditor.bundle.js.gz +0 -0
  19. package/dist/3095.creaditor.bundle.js +91 -58
  20. package/dist/3095.creaditor.bundle.js.gz +0 -0
  21. package/dist/3521.creaditor.bundle.js +11 -9
  22. package/dist/3521.creaditor.bundle.js.gz +0 -0
  23. package/dist/3553.creaditor.bundle.js +1 -1
  24. package/dist/3553.creaditor.bundle.js.gz +0 -0
  25. package/dist/3932.creaditor.bundle.js +3 -3
  26. package/dist/3932.creaditor.bundle.js.gz +0 -0
  27. package/dist/4114.creaditor.bundle.js +1 -0
  28. package/dist/4114.creaditor.bundle.js.gz +0 -0
  29. package/dist/4186.creaditor.bundle.js +1 -1
  30. package/dist/4186.creaditor.bundle.js.gz +0 -0
  31. package/dist/453.creaditor.bundle.js +1 -1
  32. package/dist/453.creaditor.bundle.js.gz +0 -0
  33. package/dist/4569.creaditor.bundle.js +30 -190
  34. package/dist/4569.creaditor.bundle.js.gz +0 -0
  35. package/dist/4819.creaditor.bundle.js +198 -235
  36. package/dist/4819.creaditor.bundle.js.gz +0 -0
  37. package/dist/5119.creaditor.bundle.js +1 -1
  38. package/dist/5119.creaditor.bundle.js.gz +0 -0
  39. package/dist/5340.creaditor.bundle.js +126 -36
  40. package/dist/5340.creaditor.bundle.js.gz +0 -0
  41. package/dist/574.creaditor.bundle.js +5 -5
  42. package/dist/574.creaditor.bundle.js.gz +0 -0
  43. package/dist/5926.creaditor.bundle.js +24 -31
  44. package/dist/5926.creaditor.bundle.js.gz +0 -0
  45. package/dist/6937.creaditor.bundle.js +1 -0
  46. package/dist/6937.creaditor.bundle.js.gz +0 -0
  47. package/dist/7209.creaditor.bundle.js +2 -3
  48. package/dist/7209.creaditor.bundle.js.gz +0 -0
  49. package/dist/7238.creaditor.bundle.js +3 -3
  50. package/dist/7238.creaditor.bundle.js.gz +0 -0
  51. package/dist/752.creaditor.bundle.js +3 -7
  52. package/dist/752.creaditor.bundle.js.gz +0 -0
  53. package/dist/7789.creaditor.bundle.js +25 -0
  54. package/dist/7789.creaditor.bundle.js.LICENSE.txt +32 -0
  55. package/dist/7789.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  56. package/dist/7789.creaditor.bundle.js.gz +0 -0
  57. package/dist/7937.creaditor.bundle.js +63 -115
  58. package/dist/7937.creaditor.bundle.js.gz +0 -0
  59. package/dist/8173.creaditor.bundle.js +1 -1
  60. package/dist/8173.creaditor.bundle.js.gz +0 -0
  61. package/dist/8196.creaditor.bundle.js +51 -0
  62. package/dist/8196.creaditor.bundle.js.gz +0 -0
  63. package/dist/8305.creaditor.bundle.js +6 -6
  64. package/dist/8305.creaditor.bundle.js.gz +0 -0
  65. package/dist/8478.creaditor.bundle.js +1 -0
  66. package/dist/8478.creaditor.bundle.js.gz +0 -0
  67. package/dist/8516.creaditor.bundle.js +1 -1
  68. package/dist/8516.creaditor.bundle.js.gz +0 -0
  69. package/dist/8676.creaditor.bundle.js +1 -0
  70. package/dist/8676.creaditor.bundle.js.gz +0 -0
  71. package/dist/8916.creaditor.bundle.js +4 -4
  72. package/dist/8916.creaditor.bundle.js.gz +0 -0
  73. package/dist/9041.creaditor.bundle.js +1 -1
  74. package/dist/9041.creaditor.bundle.js.gz +0 -0
  75. package/dist/9158.creaditor.bundle.js +613 -0
  76. package/dist/9158.creaditor.bundle.js.LICENSE.txt +10 -0
  77. package/dist/9158.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  78. package/dist/9158.creaditor.bundle.js.gz +0 -0
  79. package/dist/9162.creaditor.bundle.js +4 -3
  80. package/dist/9162.creaditor.bundle.js.gz +0 -0
  81. package/dist/9694.creaditor.bundle.js +1 -1
  82. package/dist/9694.creaditor.bundle.js.gz +0 -0
  83. package/dist/creaditor.bundle.js +2780 -906
  84. package/dist/creaditor.bundle.js.gz +0 -0
  85. package/dist/service-worker.js +1 -1
  86. package/dist/service-worker.js.gz +0 -0
  87. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1565,2384],{58691(t,e,r){r.r(e),r.d(e,{ImagePromptEditor:()=>l});var a,o,i=r(59929),n=r(49410);const s=new Set;let l=(0,n.EM)("cdtr-image-prompt-editor")(((o=class extends i.WF{constructor(){super(),this.prompt="",this.generatedImage="",this.isLoading=!1,this.addEventListener("keydown",this._handleKeyDown.bind(this))}_handleKeyDown(t){"Enter"===t.key&&t.ctrlKey&&this._submitPrompt()}_handlePromptChange(t){this.prompt=t.target.value}_submitPrompt(){this.prompt.trim()&&!this.isLoading&&(this.isLoading=!0,this.dispatchEvent(new CustomEvent("generate-image",{detail:{prompt:this.prompt,options:{size:"1024x1024",quality:"standard",style:"natural"}}})))}_handleInsertImage(){const t=(e=this.generatedImage).length<100?e:e.slice(0,50)+e.slice(-50);var e;s.has(t)||(s.add(t),this.dispatchEvent(new CustomEvent("insert-image",{detail:{imageUrl:this.generatedImage}})))}setGeneratedImage(t){this.isLoading=!1,this.generatedImage=t,this.requestUpdate()}copyToClipboard(){navigator.clipboard.writeText(this.generatedImage),window.snackbar&&window.snackbar({message:"copied_to_clipboard",type:"success"})}render(){return i.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1565,2384],{58691(t,e,r){r.r(e),r.d(e,{ImagePromptEditor:()=>l});var o,a,i=r(59929),n=r(49410);const s=new Set;let l=(0,n.EM)("cdtr-image-prompt-editor")(((a=class extends i.WF{constructor(){super(),this.prompt="",this.generatedImage="",this.isLoading=!1,this.addEventListener("keydown",this._handleKeyDown.bind(this))}_handleKeyDown(t){"Enter"===t.key&&t.ctrlKey&&this._submitPrompt()}_handlePromptChange(t){this.prompt=t.target.value}_submitPrompt(){this.prompt.trim()&&!this.isLoading&&(this.isLoading=!0,this.dispatchEvent(new CustomEvent("generate-image",{detail:{prompt:this.prompt,options:{size:"1024x1024",quality:"standard",style:"natural"}}})))}_handleInsertImage(){const t=(e=this.generatedImage).length<100?e:e.slice(0,50)+e.slice(-50);var e;s.has(t)||(s.add(t),this.dispatchEvent(new CustomEvent("insert-image",{detail:{imageUrl:this.generatedImage}})))}setGeneratedImage(t){this.isLoading=!1,this.generatedImage=t,this.requestUpdate()}copyToClipboard(){navigator.clipboard.writeText(this.generatedImage),window.snackbar&&window.snackbar({message:"copied_to_clipboard",type:"success"})}render(){return i.qy`
2
2
  <div class="container">
3
3
  <h6>
4
4
  <lang-text
@@ -53,7 +53,7 @@
53
53
  </div>
54
54
  </div>
55
55
  </div>
56
- `}}).properties={prompt:{type:String},generatedImage:{type:String},isLoading:{type:Boolean}},o.styles=i.AH`
56
+ `}}).properties={prompt:{type:String},generatedImage:{type:String},isLoading:{type:Boolean}},a.styles=i.AH`
57
57
  * {
58
58
  box-sizing: border-box;
59
59
  }
@@ -169,7 +169,154 @@
169
169
  margin-bottom: 0.5rem;
170
170
  color: #495057;
171
171
  }
172
- `,a=o))||a},61565(t,e,r){r.r(e),r.d(e,{EditorBuilder:()=>ut});var a=r(59929),o=r(86319),i=r(21421);const n=t=>{const e=(0,i._)();return a.qy` <cdtr-editor-container>
172
+ `,o=a))||o},15155(t,e,r){r.d(e,{A:()=>n});var o=r(59929),a=r(57176);class i extends o.WF{constructor(){super(),this.items=[],this.columns=2}async openPicker(t){const e=this.shadowRoot.querySelector(`#picker-${t}`);if(!e)return;await e.updateComplete;const r=e.shadowRoot?.querySelector("color-playground");if(r)if(await r.updateComplete,"function"==typeof r.openColorpicker)r.openColorpicker();else{(r.shadowRoot?.querySelector('[role="button"]')||r.shadowRoot?.querySelector("div")||r).click()}}render(){const t=1===this.columns?"grid single-col":"grid";return o.qy`
173
+ <div class="${t}">
174
+ ${(this.items||[]).map((t,e)=>o.qy`
175
+ <div class="swatch-item" @click=${()=>this.openPicker(e)}>
176
+ <div
177
+ class="swatch-circle"
178
+ style="background: ${t.value||"#fff"}"
179
+ ></div>
180
+ <span class="swatch-label">
181
+ <lang-text text="${t.title}"></lang-text>
182
+ </span>
183
+ <div class="hidden-picker">
184
+ <cdtr-colorpicker-editor
185
+ id="picker-${e}"
186
+ .hasAlpha=${!1}
187
+ .allowGradient=${!0===t.allowGradient}
188
+ @change=${t.onChange}
189
+ .value=${t.value}
190
+ text="${t.title}"
191
+ ></cdtr-colorpicker-editor>
192
+ </div>
193
+ </div>
194
+ `)}
195
+ </div>
196
+ `}}i.styles=[a.L,o.AH`
197
+ :host {
198
+ display: block;
199
+ direction: var(--direction-locale, ltr);
200
+ }
201
+ .grid {
202
+ display: grid;
203
+ grid-template-columns: 1fr 1fr;
204
+ gap: 6px;
205
+ }
206
+ .grid.single-col {
207
+ grid-template-columns: 1fr;
208
+ }
209
+ .swatch-item {
210
+ display: flex;
211
+ align-items: center;
212
+ gap: 8px;
213
+ padding: 8px 10px;
214
+ background: #f6f6f8;
215
+ border-radius: 8px;
216
+ cursor: pointer;
217
+ transition: background 0.15s ease;
218
+ min-width: 0;
219
+ overflow: hidden;
220
+ position: relative;
221
+ }
222
+ .swatch-item:hover {
223
+ background: #eeeff1;
224
+ }
225
+ .swatch-label {
226
+ font-size: 11px;
227
+ color: #555;
228
+ font-weight: 500;
229
+ line-height: 1;
230
+ white-space: nowrap;
231
+ overflow: hidden;
232
+ text-overflow: ellipsis;
233
+ min-width: 0;
234
+ flex: 1;
235
+ }
236
+ .hidden-picker {
237
+ position: absolute;
238
+ width: 1px;
239
+ height: 1px;
240
+ overflow: hidden;
241
+ clip: rect(0,0,0,0);
242
+ pointer-events: none;
243
+ }
244
+ `],i.properties={items:{type:Array},columns:{type:Number}},customElements.define("cdtr-color-swatch-group",i);const n=t=>o.qy`
245
+ <cdtr-color-swatch-group
246
+ .items=${t.items}
247
+ .columns=${t.columns||2}
248
+ ></cdtr-color-swatch-group>
249
+ `},12258(t,e,r){r.d(e,{A:()=>n});var o=r(59929),a=r(40648);class i extends o.WF{constructor(){super(),this.label="",this.open=!0,this.persistKey=""}toggle(){this.open=!this.open,(0,a.Q)(this.persistKey,this.open)}render(){return o.qy`
250
+ <div class="section">
251
+ <div class="header" @click=${this.toggle}>
252
+ <span class="title"><lang-text text="${this.label}"></lang-text></span>
253
+ <svg class="chevron ${this.open?"open":""}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
254
+ <polyline points="6 9 12 15 18 9"></polyline>
255
+ </svg>
256
+ </div>
257
+ <div class="content ${this.open?"open":""}">
258
+ <div class="content-inner">
259
+ <slot></slot>
260
+ </div>
261
+ </div>
262
+ </div>
263
+ `}}i.styles=o.AH`
264
+ :host {
265
+ display: block;
266
+ direction: var(--direction-locale, ltr);
267
+ --editor-container-inline-padding: 0;
268
+ }
269
+ .section {
270
+ border-bottom: 1px solid #eaeaee;
271
+ }
272
+ .header {
273
+ display: flex;
274
+ align-items: center;
275
+ justify-content: space-between;
276
+ padding: 12px 16px;
277
+ cursor: pointer;
278
+ user-select: none;
279
+ }
280
+ .title {
281
+ font-size: 12.5px;
282
+ font-weight: 600;
283
+ color: #222;
284
+ letter-spacing: 0.01em;
285
+ }
286
+ .chevron {
287
+ width: 16px;
288
+ height: 16px;
289
+ transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
290
+ color: #ccc;
291
+ }
292
+ .header:hover .chevron {
293
+ color: #888;
294
+ }
295
+ .chevron.open {
296
+ transform: rotate(180deg);
297
+ }
298
+ .content {
299
+ overflow: hidden;
300
+ transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
301
+ max-height: 0;
302
+ opacity: 0;
303
+ }
304
+ .content.open {
305
+ max-height: 1200px;
306
+ opacity: 1;
307
+ }
308
+ .content-inner {
309
+ padding: 0 16px 12px 16px;
310
+ }
311
+ `,i.properties={label:{type:String},open:{type:Boolean},persistKey:{type:String}},customElements.define("cdtr-editor-section",i);const n=(t,e)=>o.qy`
312
+ <cdtr-editor-section
313
+ .label=${t.label}
314
+ .open=${!1!==t.open}
315
+ .persistKey=${t.persistKey||""}
316
+ >
317
+ ${e}
318
+ </cdtr-editor-section>
319
+ `},61565(t,e,r){r.r(e),r.d(e,{EditorBuilder:()=>vt});var o=r(59929),a=r(86319),i=r(21421);const n=t=>{const e=(0,i._)();return o.qy` <cdtr-editor-container>
173
320
  <cdtr-row>
174
321
  <cdtr-title><lang-text text="${t.title}"></lang-text></cdtr-title>
175
322
  </cdtr-row>
@@ -193,19 +340,19 @@
193
340
  .couchOnEmpty=${!!t.couch}
194
341
  ></cdtr-input>
195
342
  <div style="position:absolute;left:0;top:0;">
196
- ${t.emoji&&a.qy`<cdtr-dropdown maxHeight="500" custom>
343
+ ${t.emoji&&o.qy`<cdtr-dropdown maxHeight="500" custom>
197
344
  <paper-button style="min-width:0;padding:2px;" slot="trigger">
198
345
  <cdtr-icon width="20" icon="face"></cdtr-icon>
199
346
  </paper-button>
200
- <div slot="content">${(()=>{const r=document.createElement("cdtr-emoji-picker");return r.onEmojiClick=(a,i)=>{const n=i.emoji,s=window.getSelection();if(s&&s.baseNode?.parentElement?.closest(".tiptap.ProseMirror")){const t=s.baseNode?.parentElement?.closest("[data-id][data-type]");if(t){const e=o.M.get("components",t.dataset.id);if(e){if(!e.commands.insertContent)throw new Error("setContent command is not defined in compose.commands");e.commands.insertContent(i.emoji);const t=r.closest("cdtr-dropdown");t?.close()}}}else{const r=e.value.inputRef.value,a=r.selectionStart,o=r.selectionEnd,i=r.value,s=i.slice(0,a)+n+i.slice(o);r.value=s,t.onInput({target:{value:s}}),r.selectionStart=r.selectionEnd=a+n.length,r.focus()}},r})()}</div>
347
+ <div slot="content">${(()=>{const r=document.createElement("cdtr-emoji-picker");return r.onEmojiClick=(o,i)=>{const n=i.emoji,s=window.getSelection();if(s&&s.baseNode?.parentElement?.closest(".tiptap.ProseMirror")){const t=s.baseNode?.parentElement?.closest("[data-id][data-type]");if(t){const e=a.M.get("components",t.dataset.id);if(e){if(!e.commands.insertContent)throw new Error("setContent command is not defined in compose.commands");e.commands.insertContent(i.emoji);const t=r.closest("cdtr-dropdown");t?.close()}}}else{const r=e.value.inputRef.value,o=r.selectionStart,a=r.selectionEnd,i=r.value,s=i.slice(0,o)+n+i.slice(a);r.value=s,t.onInput({target:{value:s}}),r.selectionStart=r.selectionEnd=o+n.length,r.focus()}},r})()}</div>
201
348
  </cdtr-dropdown>`}
202
349
  </div>
203
350
  </cdtr-row>
204
- ${t.mergeTags&&a.qy`<cdtr-merge-tags
351
+ ${t.mergeTags&&o.qy`<cdtr-merge-tags
205
352
  style="margin-top:10px;display:block;"
206
- @change=${r=>{let a=r.target.value;const o=e.value.inputRef.value,i=o.selectionStart,n=o.selectionEnd,s=o.value;a=s.slice(0,i)+a+s.slice(n),o.value=a,t.onInput({target:{value:a}}),o.selectionStart=o.selectionEnd=i+a.length,o.focus()}}
353
+ @change=${r=>{let o=r.target.value;const a=e.value.inputRef.value,i=a.selectionStart,n=a.selectionEnd,s=a.value;o=s.slice(0,i)+o+s.slice(n),a.value=o,t.onInput({target:{value:o}}),a.selectionStart=a.selectionEnd=i+o.length,a.focus()}}
207
354
  ></cdtr-merge-tags> `}
208
- </cdtr-editor-container>`},s=t=>{let e="function"==typeof t.value?t.value(t):t.value;return e||(e=""),a.qy`<cdtr-editor-container>
355
+ </cdtr-editor-container>`},s=t=>{let e="function"==typeof t.value?t.value(t):t.value;return e||(e=""),o.qy`<cdtr-editor-container>
209
356
  <cdtr-title><lang-text text="${t.title}"></lang-text></cdtr-title>
210
357
  <cdtr-dropdown
211
358
  style="width:100%;"
@@ -219,7 +366,7 @@
219
366
  ><lang-text text=${e}></lang-text>
220
367
  </cdtr-dropdown-button>
221
368
  <div slot="content">
222
- ${t.items.map(e=>a.qy` <cdtr-dropdown-item
369
+ ${t.items.map(e=>o.qy` <cdtr-dropdown-item
223
370
  .focused=${(e.key||e.value)===t.selected}
224
371
  .selected=${(e.key||e.value)===t.selected}
225
372
  value="${e.value}"
@@ -227,13 +374,13 @@
227
374
  </cdtr-dropdown-item>`)}
228
375
  </div>
229
376
  </cdtr-dropdown>
230
- </cdtr-editor-container>`};var l=r(9507);r(92384);const d=t=>a.qy`<cdtr-font-family-editor
377
+ </cdtr-editor-container>`};var l=r(36565);r(92384);const d=t=>o.qy`<cdtr-font-family-editor
231
378
  .name=${t.value}
232
379
  .showWeight=${!0===t.weight}
233
380
  .weight=${t.weightValue}
234
381
  @change=${t.onChange}
235
382
  @weightchange=${t.onWeightChange}
236
- ></cdtr-font-family-editor>`,c=t=>a.qy`<cdtr-editor-container>
383
+ ></cdtr-font-family-editor>`,c=t=>o.qy`<cdtr-editor-container>
237
384
  <cdtr-range-device-editor
238
385
  .value=${"function"==typeof t.value?t.value(t):t.value||0}
239
386
  .text=${t.title}
@@ -244,7 +391,7 @@
244
391
  @change=${t.onChange}
245
392
  @input=${t.onInput}
246
393
  ></cdtr-range-device-editor>
247
- </cdtr-editor-container>`;var p,h,g,u,x,m,v=r(59088),b=r(36936),f=r(49410),y=r(50742),w=r(74726);const $="#000 0px 0px 0px 0px",z={};let L=(p=(0,f.MZ)({type:String}),h=(0,f.MZ)({type:String}),m=class extends a.WF{constructor(){super(),(0,v.A)(this,"value",u,this),(0,v.A)(this,"boxShadow",x,this),this.tabName=void 0,this.theme=void 0,this.onChangeBoxShadow=(t,e)=>{const r={color:z.color,offsetY:z.offsetY,offsetX:z.offsetX,blurRadius:z.blurRadius,spreadRadius:z.spreadRadius,inset:!!z.inset};if(void 0!==r[t]&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)){r[t]=e,z[t]=e;const a=`${r.offsetX}px ${r.offsetY}px ${r.blurRadius}px ${r.spreadRadius}px ${r.color} ${r.inset?"inset":""}`;this.changeBoxShadowValue(a)}},this.tabName="design",this.theme=o.M.get("theme"),this.removeBoxShadow=this.removeBoxShadow.bind(this),this.onChangeBoxShadow=this.onChangeBoxShadow.bind(this)}changeBoxShadowValue(t){this.boxShadow=this.value=t;const e=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}removeBoxShadow(){this.boxShadow=this.value=$;const t=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}connectedCallback(){super.connectedCallback(),r.e(1456).then(r.bind(r,11456)),r.e(5666).then(r.bind(r,35666))}disconnectedCallback(){super.disconnectedCallback()}createRenderRoot(){return this}changeTab(t){this.tabName=t.target.value}render(){if(void 0===this.value||this.value!==this.boxShadow){this.value||(this.value=$),this.boxShadow=this.value;const t=(0,w.A)(this.value);Array.isArray(t)&&t.length>0?(z.offsetX=t[0].offsetX,z.offsetY=t[0].offsetY,z.blurRadius=t[0].blurRadius,z.spreadRadius=t[0].spreadRadius,z.color=t[0].color,z.inset=t[0].inset):(z.offsetX=0,z.offsetY=0,z.blurRadius=0,z.spreadRadius=0,z.color="#000",z.inset=void 0)}return a.qy`
394
+ </cdtr-editor-container>`;var p,h,g,u,x,m,v=r(59088),b=r(36936),f=r(49410),y=r(50742),w=r(74726);const $="#000 0px 0px 0px 0px",z={};let k=(p=(0,f.MZ)({type:String}),h=(0,f.MZ)({type:String}),m=class extends o.WF{constructor(){super(),(0,v.A)(this,"value",u,this),(0,v.A)(this,"boxShadow",x,this),this.tabName=void 0,this.theme=void 0,this.onChangeBoxShadow=(t,e)=>{const r={color:z.color,offsetY:z.offsetY,offsetX:z.offsetX,blurRadius:z.blurRadius,spreadRadius:z.spreadRadius,inset:!!z.inset};if(void 0!==r[t]&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)){r[t]=e,z[t]=e;const o=`${r.offsetX}px ${r.offsetY}px ${r.blurRadius}px ${r.spreadRadius}px ${r.color} ${r.inset?"inset":""}`;this.changeBoxShadowValue(o)}},this.tabName="design",this.theme=a.M.get("theme"),this.removeBoxShadow=this.removeBoxShadow.bind(this),this.onChangeBoxShadow=this.onChangeBoxShadow.bind(this)}changeBoxShadowValue(t){this.boxShadow=this.value=t;const e=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}removeBoxShadow(){this.boxShadow=this.value=$;const t=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}connectedCallback(){super.connectedCallback(),r.e(1456).then(r.bind(r,11456)),r.e(5666).then(r.bind(r,35666))}disconnectedCallback(){super.disconnectedCallback()}createRenderRoot(){return this}changeTab(t){this.tabName=t.target.value}render(){if(void 0===this.value||this.value!==this.boxShadow){this.value||(this.value=$),this.boxShadow=this.value;const t=(0,w.A)(this.value);Array.isArray(t)&&t.length>0?(z.offsetX=t[0].offsetX,z.offsetY=t[0].offsetY,z.blurRadius=t[0].blurRadius,z.spreadRadius=t[0].spreadRadius,z.color=t[0].color,z.inset=t[0].inset):(z.offsetX=0,z.offsetY=0,z.blurRadius=0,z.spreadRadius=0,z.color="#000",z.inset=void 0)}return o.qy`
248
395
  <cdtr-editor-container>
249
396
  <cdtr-row alignItems="center" justify="space-between">
250
397
  <cdtr-col>
@@ -253,7 +400,7 @@
253
400
  </cdtr-title>
254
401
  </cdtr-col>
255
402
  <cdtr-col sm="2">
256
- ${this.boxShadow!==$?a.qy` <paper-button
403
+ ${this.boxShadow!==$?o.qy` <paper-button
257
404
  style="min-width:40px;padding:0;"
258
405
  @click=${this.removeBoxShadow}
259
406
  ><cdtr-icon icon="x"></cdtr-icon
@@ -268,7 +415,7 @@
268
415
  ></paper-button>
269
416
  <div slot="content">
270
417
  <div>
271
- ${"design"===this.tabName?a.qy`
418
+ ${"design"===this.tabName?o.qy`
272
419
  <cdtr-editor-container>
273
420
  <h1 class="mb-2">
274
421
  <lang-text
@@ -334,13 +481,13 @@
334
481
  </cdtr-row>
335
482
  </cdtr-editor-container>
336
483
  `:null}
337
- ${"gallery"===this.tabName?a.qy`<cdtr-row
484
+ ${"gallery"===this.tabName?o.qy`<cdtr-row
338
485
  style="overflow-y: auto;
339
486
  max-height: 90vh;max-width:500px;"
340
487
  justify="center"
341
488
  spacing="10px"
342
489
  >
343
- ${y.P.map(t=>a.qy` <cdtr-col sm="5" style="height:120px;"
490
+ ${y.P.map(t=>o.qy` <cdtr-col sm="5" style="height:120px;"
344
491
  ><paper-button
345
492
  @click=${()=>this.changeBoxShadowValue(t.rule)}
346
493
  style="box-shadow:${t.rule};margin:0 25px;width:90%;height:90%;"
@@ -353,22 +500,23 @@ max-height: 90vh;max-width:500px;"
353
500
  </cdtr-col>
354
501
  </cdtr-row>
355
502
  </cdtr-editor-container>
356
- `}},m.styles=a.AH`
503
+ `}},m.styles=o.AH`
357
504
  :host {
358
505
  direction: var(--direction-locale);
359
506
  }
360
- `,g=m,u=(0,b.A)(g.prototype,"value",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,b.A)(g.prototype,"boxShadow",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g);customElements.define("cdtr-box-shadow-editor-v2",L);const M=t=>a.qy`<cdtr-box-shadow-editor-v2
507
+ `,g=m,u=(0,b.A)(g.prototype,"value",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,b.A)(g.prototype,"boxShadow",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g);customElements.define("cdtr-box-shadow-editor-v2",k);const L=t=>o.qy`<cdtr-box-shadow-editor-v2
361
508
  .name=${t.value}
362
509
  .value=${t.value}
363
510
  @change=${t.onChange}
364
- ></cdtr-box-shadow-editor-v2>`,C=t=>a.qy`<cdtr-editor-container>
511
+ ></cdtr-box-shadow-editor-v2>`,M=t=>o.qy`<cdtr-editor-container>
365
512
  <cdtr-colorpicker-editor
366
513
  .hasAlpha=${t.alpha}
514
+ .allowGradient=${!0===t.allowGradient}
367
515
  @change=${t.onChange}
368
516
  .value=${t.value}
369
517
  text="${t.title}"
370
518
  ></cdtr-colorpicker-editor>
371
- </cdtr-editor-container>`,H=t=>a.qy` <cdtr-editor-container>
519
+ </cdtr-editor-container>`,C=t=>o.qy` <cdtr-editor-container>
372
520
  <cdtr-width-editor
373
521
  text="${t.title}"
374
522
  unit="${t.unit}"
@@ -380,12 +528,12 @@ max-height: 90vh;max-width:500px;"
380
528
  @change=${t.onChange}
381
529
  .sizes=${t.sizes||[]}
382
530
  ></cdtr-width-editor>
383
- </cdtr-editor-container>`,k=t=>a.qy`<cdtr-divider></cdtr-divider>`;var R=r(70980);const S={margin:0};function I(t){return a.qy` <lang-text
531
+ </cdtr-editor-container>`,H=t=>o.qy`<cdtr-divider></cdtr-divider>`;var S=r(70980);const R={margin:0,color:"#1a1a1a",letterSpacing:"0.01em"};function _(t){return o.qy` <lang-text
384
532
  whiteSpace="break-spaces"
385
533
  text="${t}"
386
- ></lang-text>`}const _=t=>a.qy` <cdtr-editor-container>
387
- ${function(t){let{level:e,text:r}=t;switch(e){case 2:return a.qy` <h2 style=${(0,R.W)(S)}>${I(r)}</h2>`;case 3:return a.qy` <h3 style=${(0,R.W)(S)}>${I(r)}</h3>`;case 4:return a.qy` <h4 style=${(0,R.W)(S)}>${I(r)}</h4>`;case 5:return a.qy` <h5 style=${(0,R.W)(S)}>${I(r)}</h5>`;case 6:return a.qy` <h6 style=${(0,R.W)(S)}>${I(r)}</h6>`;default:const t={...S};return t.fontSize="13px",a.qy` <div style=${(0,R.W)(t)}>${I(r)}</div>`}}({level:t.level,text:t.text})}
388
- </cdtr-editor-container>`,V=t=>a.qy` <cdtr-editor-container pt="0">
534
+ ></lang-text>`}const I=t=>o.qy` <cdtr-editor-container>
535
+ ${function(t){let{level:e,text:r}=t;switch(e){case 2:return o.qy` <h2 style=${(0,S.W)({...R,fontSize:"16px",fontWeight:"700"})}>${_(r)}</h2>`;case 3:return o.qy` <h3 style=${(0,S.W)({...R,fontSize:"15px",fontWeight:"700",paddingTop:"6px"})}>${_(r)}</h3>`;case 4:return o.qy` <h4 style=${(0,S.W)({...R,fontSize:"14px",fontWeight:"600"})}>${_(r)}</h4>`;case 5:return o.qy` <h5 style=${(0,S.W)({...R,fontSize:"13px",fontWeight:"600"})}>${_(r)}</h5>`;case 6:return o.qy` <h6 style=${(0,S.W)({...R,fontSize:"12px",fontWeight:"600",textTransform:"uppercase",letterSpacing:"0.04em",color:"#666"})}>${_(r)}</h6>`;default:return o.qy` <div style=${(0,S.W)({...R,fontSize:"13px"})}>${_(r)}</div>`}}({level:t.level,text:t.text})}
536
+ </cdtr-editor-container>`,A=t=>o.qy` <cdtr-editor-container pt="0">
389
537
  <paper-button
390
538
  @click=${t.onClick}
391
539
  style="margin:0;padding:0;color:${t.color||"var(--primary)"};font-size:10px;"
@@ -397,7 +545,7 @@ max-height: 90vh;max-width:500px;"
397
545
  ></cdtr-icon>
398
546
  <lang-text whiteSpace="break-spaces" text="${t.text}"></lang-text>
399
547
  </paper-button>
400
- </cdtr-editor-container>`,A=t=>a.qy` <cdtr-editor-container>
548
+ </cdtr-editor-container>`,q=t=>o.qy` <cdtr-editor-container>
401
549
  <cdtr-row class="checkbox-wrapper" alignItems="center" justify="space-between">
402
550
  <cdtr-col sm="2">
403
551
  <cdtr-checkbox
@@ -409,75 +557,63 @@ max-height: 90vh;max-width:500px;"
409
557
  <cdtr-col @click=${t=>{const e=t.target.closest(".checkbox-wrapper");if(e){const t=e.querySelector("cdtr-checkbox");t&&t.toggle()}}} sm="${t.info?9:10}">
410
558
  <cdtr-title><lang-text text="${t.title}"></lang-text></cdtr-title>
411
559
  </cdtr-col>
412
- ${t.info?a.qy`<cdtr-col sm="1">
560
+ ${t.info?o.qy`<cdtr-col sm="1">
413
561
  <cdtr-tooltip content="${t.info}">
414
562
  <cdtr-icon color="#484553" icon="info" width="20"></cdtr-icon>
415
563
  </cdtr-tooltip>
416
564
  </cdtr-col>`:null}
417
565
  </cdtr-row>
418
- </cdtr-editor-container>`,q=t=>a.qy` <cdtr-editor-container>
566
+ </cdtr-editor-container>`,V=t=>o.qy` <cdtr-editor-container>
419
567
  <cdtr-title><lang-text text="${t.title}"></lang-text></cdtr-title>
420
- ${t.items?.length?t?.items.map((e,r)=>a.qy`
421
- <cdtr-row
422
- mt=".8"
423
- alignItems="center"
424
- justify="space-between"
425
- spacing="3px"
426
- >
427
- <cdtr-col sm="9">
428
- <cdtr-input
429
- type=${t.inputType}
430
- placeholder=${t.placeholder}
431
- .value="${"string"==typeof e?e:"string"==typeof e?.label?e.label:e.value}"
432
- @blur=${e=>{t.changeItemValue(r,e.target.value,e)}}
433
- style="width:100%"
434
- ></cdtr-input>
435
- </cdtr-col>
436
- ${t.onRemove?a.qy`<cdtr-col sm="2">
437
- <cdtr-dropdown style="display:flex;" class="option-menu-button">
438
- <paper-button
439
- style="padding:0;min-width:0;"
440
- class="add-button"
441
- slot="trigger"
442
- >
443
- <cdtr-icon icon="menu"></cdtr-icon>
444
- </paper-button>
445
- <div slot="content">
446
- <cdtr-dropdown-item
447
- @click=${()=>t.onRemove(r,e)}
448
- >
449
- <lang-text text="remove"></lang-text>
450
- <cdtr-remove-icon width="18" height="18"></cdtr-remove-icon>
451
- </cdtr-dropdown-item>
452
- </div>
453
- </cdtr-dropdown>
454
- </cdtr-col>`:null}
455
- </cdtr-row>
568
+ ${t.items?.length?t?.items.map((e,r)=>o.qy`
569
+ <div style="display:flex;align-items:center;gap:6px;margin-top:8px;">
570
+ <cdtr-input
571
+ type=${t.inputType}
572
+ placeholder=${t.placeholder}
573
+ .value="${"string"==typeof e?e:"string"==typeof e?.label?e.label:e.value}"
574
+ @blur=${e=>{t.changeItemValue(r,e.target.value,e)}}
575
+ style="flex:1;width:0;"
576
+ ></cdtr-input>
577
+ ${t.onRemove?o.qy`<span
578
+ style="color:#bbb;cursor:pointer;display:flex;align-items:center;flex-shrink:0;"
579
+ @click=${()=>t.onRemove(r,e)}
580
+ @mouseover=${t=>{t.currentTarget.style.color="#666"}}
581
+ @mouseout=${t=>{t.currentTarget.style.color="#bbb"}}
582
+ title="Remove"
583
+ >
584
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
585
+ <line x1="18" y1="6" x2="6" y2="18"></line>
586
+ <line x1="6" y1="6" x2="18" y2="18"></line>
587
+ </svg>
588
+ </span>`:null}
589
+ </div>
456
590
  `):""}
457
- ${t.onAddItem?a.qy` <paper-button
591
+ ${t.onAddItem?o.qy`<div
458
592
  @click=${t.onAddItem}
459
- style="color:var(--primary);font-size:14px;"
460
- ><lang-text text="add_item"></lang-text
461
- ><cdtr-icon color="var(--primary)" icon="add"></cdtr-icon
462
- ></paper-button>`:null}
463
-
464
- </cdtr-editor-container>`;r(54061);var E=r(73890);const T=t=>a.qy` <cdtr-editor-container>
593
+ style="display:inline-flex;align-items:center;gap:4px;margin-top:8px;font-size:12px;color:var(--accent, #5B5FC7);cursor:pointer;font-family:inherit;"
594
+ ><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
595
+ <line x1="12" y1="5" x2="12" y2="19"></line>
596
+ <line x1="5" y1="12" x2="19" y2="12"></line>
597
+ </svg><lang-text text="add_item"></lang-text
598
+ ></div>`:null}
599
+
600
+ </cdtr-editor-container>`;r(54061);var E=r(73890);const T=t=>o.qy` <cdtr-editor-container>
465
601
  <cdtr-title>
466
602
  <lang-text text="${t.title}"></lang-text>
467
603
  </cdtr-title>
468
604
  <cdtr-chips-input
469
605
  .removeable=${!!t.removeable}
470
606
  @remove=${t.onRemove}
471
- @click=${()=>function(t){let{items:e,title:r,onChange:o,onCreate:i}=t;const n=document.createElement("cdtr-drawer");n.width="500px",n.headerText=r,n.opened=!0;const s=document.createElement("div");n.appendChild(s),document.body.appendChild(n);const l=t=>{let{target:r}=t;const n=r.value,d=e.filter(t=>{const e={...t};return e.name||(e.name=""),e.label||(e.label=""),-1!==e.name.indexOf(n)||-1!==e.label.indexOf(n)});(0,a.XX)((0,E.A)({items:d,onChange:o,debounce:l,onCreate:i}),s)};(0,a.XX)((0,E.A)({items:e,onChange:o,debounce:l,onCreate:i}),s)}({items:t.list||[],title:t.title,onChange:t.onChange,onCreate:t.onCreate})}
607
+ @click=${()=>function(t){let{items:e,title:r,onChange:a,onCreate:i}=t;const n=document.createElement("cdtr-drawer");n.width="500px",n.headerText=r,n.opened=!0;const s=document.createElement("div");n.appendChild(s),document.body.appendChild(n);const l=t=>{let{target:r}=t;const n=r.value,d=e.filter(t=>{const e={...t};return e.name||(e.name=""),e.label||(e.label=""),-1!==e.name.indexOf(n)||-1!==e.label.indexOf(n)});(0,o.XX)((0,E.A)({items:d,onChange:a,debounce:l,onCreate:i}),s)};(0,o.XX)((0,E.A)({items:e,onChange:a,debounce:l,onCreate:i}),s)}({items:t.list||[],title:t.title,onChange:t.onChange,onCreate:t.onCreate})}
472
608
  .items=${t.items}
473
609
  .freeSolo=${!!t.freeSolo}
474
610
  >
475
611
  </cdtr-chips-input>
476
- </cdtr-editor-container>`;var B=r(88385),j=r(75068),W=r.n(j);const F={minWidth:0,margin:0},P=t=>a.qy`
612
+ </cdtr-editor-container>`;var B=r(88385),j=r(75068),W=r.n(j);const F={minWidth:0,margin:0},P=t=>o.qy`
477
613
  <cdtr-row alignItems="center" spacing="10px">
478
614
  <paper-button
479
615
  class="${t.underline?"bold":""}"
480
- style=${(0,R.W)(F)}
616
+ style=${(0,S.W)(F)}
481
617
  @click=${e=>t.onChange("bold",e)}
482
618
  ><cdtr-icon
483
619
  color="${t.bold?"var(--primary)":""}"
@@ -486,7 +622,7 @@ max-height: 90vh;max-width:500px;"
486
622
  ></cdtr-icon>
487
623
  </paper-button>
488
624
  <paper-button
489
- style=${(0,R.W)(F)}
625
+ style=${(0,S.W)(F)}
490
626
  @click=${e=>t.onChange("underline",e)}
491
627
  ><cdtr-icon
492
628
  color="${t.underline?"var(--primary)":""}"
@@ -495,7 +631,7 @@ max-height: 90vh;max-width:500px;"
495
631
  ></cdtr-icon>
496
632
  </paper-button>
497
633
  <paper-button
498
- style=${(0,R.W)(F)}
634
+ style=${(0,S.W)(F)}
499
635
  @click=${e=>t.onChange("italic",e)}
500
636
  ><cdtr-icon
501
637
  color="${t.italic?"var(--primary)":""}"
@@ -504,32 +640,30 @@ max-height: 90vh;max-width:500px;"
504
640
  ></cdtr-icon>
505
641
  </paper-button>
506
642
  </cdtr-row>
507
- `,U=t=>a.qy` <cdtr-editor-container>
508
- <cdtr-title style="color:var(--micro-info-color)">
509
- <i>
510
- <lang-text whiteSpace="break-spaces" text="${t.text}"></lang-text
511
- ></i>
512
- </cdtr-title>
513
- </cdtr-editor-container>`,N=()=>[{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"></path></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z"></path></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 18.26l-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928L12 18.26zm0-2.292l4.247 2.377-.949-4.773 3.573-3.305-4.833-.573L12 5.275l-2.038 4.42-4.833.572 3.573 3.305-.949 4.773L12 15.968z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 15.968l4.247 2.377-.949-4.773 3.573-3.305-4.833-.573L12 5.275v10.693zm0 2.292l-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928L12 18.26z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 18.26l-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 .5l4.226 6.183 7.187 2.109-4.575 5.93.215 7.486L12 19.69l-7.053 2.518.215-7.486-4.575-5.93 7.187-2.109L12 .5zm0 3.544L9.022 8.402 3.957 9.887l3.225 4.178-.153 5.275L12 17.566l4.97 1.774-.152-5.275 3.224-4.178-5.064-1.485L12 4.044zM10 12a2 2 0 1 0 4 0h2a4 4 0 1 1-8 0h2z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 .5l4.226 6.183 7.187 2.109-4.575 5.93.215 7.486L12 19.69l-7.053 2.518.215-7.486-4.575-5.93 7.187-2.109L12 .5zM10 12H8a4 4 0 0 0 7.995.2L16 12h-2a2 2 0 0 1-3.995.15L10 12z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M5 4.604v9.185a4 4 0 0 0 1.781 3.328L12 20.597l5.219-3.48A4 4 0 0 0 19 13.79V4.604L12 3.05 5 4.604zM3.783 2.826L12 1l8.217 1.826a1 1 0 0 1 .783.976v9.987a6 6 0 0 1-2.672 4.992L12 23l-6.328-4.219A6 6 0 0 1 3 13.79V3.802a1 1 0 0 1 .783-.976zM12 13.5l-2.939 1.545.561-3.272-2.377-2.318 3.286-.478L12 6l1.47 2.977 3.285.478-2.377 2.318.56 3.272L12 13.5z"/></svg>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M2 19h20v2H2v-2zM2 5l5 3.5L12 2l5 6.5L22 5v12H2V5zm2 3.841V15h16V8.841l-3.42 2.394L12 5.28l-4.58 5.955L4 8.84z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm0-2a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm6.5-.25a1.25 1.25 0 0 1-2.5 0 1.25 1.25 0 0 1 2.5 0zM12 4c-2.474 0-2.878.007-4.029.058-.784.037-1.31.142-1.798.332-.434.168-.747.369-1.08.703a2.89 2.89 0 0 0-.704 1.08c-.19.49-.295 1.015-.331 1.798C4.006 9.075 4 9.461 4 12c0 2.474.007 2.878.058 4.029.037.783.142 1.31.331 1.797.17.435.37.748.702 1.08.337.336.65.537 1.08.703.494.191 1.02.297 1.8.333C9.075 19.994 9.461 20 12 20c2.474 0 2.878-.007 4.029-.058.782-.037 1.309-.142 1.797-.331.433-.169.748-.37 1.08-.702.337-.337.538-.65.704-1.08.19-.493.296-1.02.332-1.8.052-1.104.058-1.49.058-4.029 0-2.474-.007-2.878-.058-4.029-.037-.782-.142-1.31-.332-1.798a2.911 2.911 0 0 0-.703-1.08 2.884 2.884 0 0 0-1.08-.704c-.49-.19-1.016-.295-1.798-.331C14.925 4.006 14.539 4 12 4zm0-2c2.717 0 3.056.01 4.122.06 1.065.05 1.79.217 2.428.465.66.254 1.216.598 1.772 1.153a4.908 4.908 0 0 1 1.153 1.772c.247.637.415 1.363.465 2.428.047 1.066.06 1.405.06 4.122 0 2.717-.01 3.056-.06 4.122-.05 1.065-.218 1.79-.465 2.428a4.883 4.883 0 0 1-1.153 1.772 4.915 4.915 0 0 1-1.772 1.153c-.637.247-1.363.415-2.428.465-1.066.047-1.405.06-4.122.06-2.717 0-3.056-.01-4.122-.06-1.065-.05-1.79-.218-2.428-.465a4.89 4.89 0 0 1-1.772-1.153 4.904 4.904 0 0 1-1.153-1.772c-.248-.637-.415-1.363-.465-2.428C2.013 15.056 2 14.717 2 12c0-2.717.01-3.056.06-4.122.05-1.066.217-1.79.465-2.428a4.88 4.88 0 0 1 1.153-1.772A4.897 4.897 0 0 1 5.45 2.525c.638-.248 1.362-.415 2.428-.465C8.944 2.013 9.283 2 12 2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M7.253 18.494l.724.423A7.953 7.953 0 0 0 12 20a8 8 0 1 0-8-8c0 1.436.377 2.813 1.084 4.024l.422.724-.653 2.401 2.4-.655zM2.004 22l1.352-4.968A9.954 9.954 0 0 1 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10a9.954 9.954 0 0 1-5.03-1.355L2.004 22zM8.391 7.308c.134-.01.269-.01.403-.004.054.004.108.01.162.016.159.018.334.115.393.249.298.676.588 1.357.868 2.04.062.152.025.347-.093.537a4.38 4.38 0 0 1-.263.372c-.113.145-.356.411-.356.411s-.099.118-.061.265c.014.056.06.137.102.205l.059.095c.256.427.6.86 1.02 1.268.12.116.237.235.363.346.468.413.998.75 1.57 1l.005.002c.085.037.128.057.252.11.062.026.126.049.191.066a.35.35 0 0 0 .367-.13c.724-.877.79-.934.796-.934v.002a.482.482 0 0 1 .378-.127c.06.004.121.015.177.04.531.243 1.4.622 1.4.622l.582.261c.098.047.187.158.19.265.004.067.01.175-.013.373-.032.259-.11.57-.188.733a1.155 1.155 0 0 1-.21.302 2.378 2.378 0 0 1-.33.288 3.71 3.71 0 0 1-.125.09 5.024 5.024 0 0 1-.383.22 1.99 1.99 0 0 1-.833.23c-.185.01-.37.024-.556.014-.008 0-.568-.087-.568-.087a9.448 9.448 0 0 1-3.84-2.046c-.226-.199-.435-.413-.649-.626-.89-.885-1.562-1.84-1.97-2.742A3.47 3.47 0 0 1 6.9 9.62a2.729 2.729 0 0 1 .564-1.68c.073-.094.142-.192.261-.305.127-.12.207-.184.294-.228a.961.961 0 0 1 .371-.1z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M7.764 19.225c.59-.26 1.25-.309 1.868-.139.77.21 1.565.316 2.368.314 4.585 0 8-3.287 8-7.7S16.585 4 12 4s-8 3.287-8 7.7c0 2.27.896 4.272 2.466 5.676a2.8 2.8 0 0 1 .942 2.006l.356-.157zM12 2c5.634 0 10 4.127 10 9.7 0 5.573-4.366 9.7-10 9.7a10.894 10.894 0 0 1-2.895-.384.8.8 0 0 0-.534.039l-1.984.876a.8.8 0 0 1-1.123-.707l-.055-1.78a.797.797 0 0 0-.268-.57C3.195 17.135 2 14.617 2 11.7 2 6.127 6.367 2 12 2zM5.995 14.537l2.937-4.66a1.5 1.5 0 0 1 2.17-.4l2.336 1.75a.6.6 0 0 0 .723 0l3.155-2.396c.421-.319.971.185.689.633l-2.937 4.66a1.5 1.5 0 0 1-2.17.4l-2.336-1.75a.6.6 0 0 0-.723 0l-3.155 2.395c-.421.319-.971-.185-.689-.633z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14 19h5V5H5v14h7v-5h-2v-2h2v-1.654c0-1.337.14-1.822.4-2.311A2.726 2.726 0 0 1 13.536 6.9c.382-.205.857-.328 1.687-.381.329-.021.755.005 1.278.08v1.9H16c-.917 0-1.296.043-1.522.164a.727.727 0 0 0-.314.314c-.12.226-.164.45-.164 1.368V12h2.5l-.5 2h-2v5zM4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/>'},{svg:'<path fill="none" d="M0 0H24V24H0z"/><path d="M5 3v16h16v2H3V3h2zm14.94 2.94l2.12 2.12L16 14.122l-3-3-3.94 3.94-2.12-2.122L13 6.88l3 3 3.94-3.94z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M9.366 10.682a10.556 10.556 0 0 0 3.952 3.952l.884-1.238a1 1 0 0 1 1.294-.296 11.422 11.422 0 0 0 4.583 1.364 1 1 0 0 1 .921.997v4.462a1 1 0 0 1-.898.995c-.53.055-1.064.082-1.602.082C9.94 21 3 14.06 3 5.5c0-.538.027-1.072.082-1.602A1 1 0 0 1 4.077 3h4.462a1 1 0 0 1 .997.921A11.422 11.422 0 0 0 10.9 8.504a1 1 0 0 1-.296 1.294l-1.238.884zm-2.522-.657l1.9-1.357A13.41 13.41 0 0 1 7.647 5H5.01c-.006.166-.009.333-.009.5C5 12.956 11.044 19 18.5 19c.167 0 .334-.003.5-.01v-2.637a13.41 13.41 0 0 1-3.668-1.097l-1.357 1.9a12.442 12.442 0 0 1-1.588-.75l-.058-.033a12.556 12.556 0 0 1-4.702-4.702l-.033-.058a12.442 12.442 0 0 1-.75-1.588z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M2 13h6v8H2v-8zm14-5h6v13h-6V8zM9 3h6v18H9V3zM4 15v4h2v-4H4zm7-10v14h2V5h-2zm7 5v9h2v-9h-2z"/>'},{svg:'<path fill="none" d="M0 0H24V24H0z"/><path d="M5.5 20c.828 0 1.5.672 1.5 1.5S6.328 23 5.5 23 4 22.328 4 21.5 4.672 20 5.5 20zm13 0c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zM2.172 1.757l3.827 3.828V17L20 17v2H5c-.552 0-1-.448-1-1V6.413L.756 3.172l1.415-1.415zM16 3c.552 0 1 .448 1 1v2h2.993C20.55 6 21 6.456 21 6.995v8.01c0 .55-.45.995-1.007.995H8.007C7.45 16 7 15.544 7 15.005v-8.01C7 6.445 7.45 6 8.007 6h2.992L11 4c0-.552.448-1 1-1h4zm-6 5H9v6h1V8zm6 0h-4v6h4V8zm3 0h-1v6h1V8zm-4-3h-2v1h2V5z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 13.5V21a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1H5v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-7.5l-1.243-.31A1 1 0 0 1 0 12.22v-.72a.5.5 0 0 1 .5-.5h1.875l2.138-5.702A2 2 0 0 1 6.386 4h11.228a2 2 0 0 1 1.873 1.298L21.625 11H23.5a.5.5 0 0 1 .5.5v.72a1 1 0 0 1-.757.97L22 13.5zM4 15v2a1 1 0 0 0 1 1h3.245a.5.5 0 0 0 .44-.736C7.88 15.754 6.318 15 4 15zm16 0c-2.317 0-3.879.755-4.686 2.264a.5.5 0 0 0 .441.736H19a1 1 0 0 0 1-1v-2zM6 6l-1.561 4.684A1 1 0 0 0 5.387 12h13.226a1 1 0 0 0 .948-1.316L18 6H6z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5 3h15a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-2v3a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4V4a1 1 0 0 1 1-1zm13 2v3h2V5h-2zM2 19h18v2H2v-2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14.5 2a3.5 3.5 0 0 1 3.163 5.001L21 7a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-8H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1l3.337.001a3.5 3.5 0 0 1 5.664-3.95A3.48 3.48 0 0 1 14.5 2zM18 13H6v7h12v-7zm2-4H4v2h16V9zM9.5 4a1.5 1.5 0 0 0-.144 2.993L9.5 7H11V5.5a1.5 1.5 0 0 0-1.356-1.493L9.5 4zm5 0l-.144.007a1.5 1.5 0 0 0-1.35 1.349L13 5.5V7h1.5l.144-.007a1.5 1.5 0 0 0 0-2.986L14.5 4z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M4 5v14h16V5H4zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm11.793 6.793L13 8h5v5l-1.793-1.793-3.864 3.864-2.121-2.121-2.829 2.828-1.414-1.414 4.243-4.243 2.121 2.122 2.45-2.45z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5 9a1 1 0 0 1 1 1 6.97 6.97 0 0 1 4.33 1.5h2.17c1.332 0 2.53.579 3.353 1.499L19 13a5 5 0 0 1 4.516 2.851C21.151 18.972 17.322 21 13 21c-2.79 0-5.15-.603-7.06-1.658A.998.998 0 0 1 5 20H2a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h3zm1.001 3L6 17.021l.045.033C7.84 18.314 10.178 19 13 19c3.004 0 5.799-1.156 7.835-3.13l.133-.133-.12-.1a2.994 2.994 0 0 0-1.643-.63L19 15l-2.112-.001c.073.322.112.657.112 1.001v1H8v-2l6.79-.001-.034-.078a2.501 2.501 0 0 0-2.092-1.416L12.5 13.5H9.57A4.985 4.985 0 0 0 6.002 12zM4 11H3v7h1v-7zm9.646-7.425L14 3.93l.354-.354a2.5 2.5 0 1 1 3.535 3.536L14 11l-3.89-3.89a2.5 2.5 0 1 1 3.536-3.535zm-2.12 1.415a.5.5 0 0 0-.06.637l.058.069L14 8.17l2.476-2.474a.5.5 0 0 0 .058-.638l-.058-.07a.5.5 0 0 0-.638-.057l-.07.058-1.769 1.768-1.767-1.77-.068-.056a.5.5 0 0 0-.638.058z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M17.5 21a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-11-9a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm12.571-4.485l1.414 1.414L4.93 20.485l-1.414-1.414L19.07 3.515z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M13 16.938V19h5v2H6v-2h5v-2.062A8.001 8.001 0 0 1 4 9V3h16v6a8.001 8.001 0 0 1-7 7.938zM6 5v4a6 6 0 1 0 12 0V5H6zM1 5h2v4H1V5zm20 0h2v4h-2V5z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M3.492 8.065L4.778 19h14.444l1.286-10.935-4.01 2.673L12 4.441l-4.498 6.297-4.01-2.673zM2.801 5.2L7 8l4.186-5.86a1 1 0 0 1 1.628 0L17 8l4.2-2.8a1 1 0 0 1 1.547.95l-1.643 13.967a1 1 0 0 1-.993.883H3.889a1 1 0 0 1-.993-.883L1.253 6.149A1 1 0 0 1 2.8 5.2zM12 15a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 2a6 6 0 0 1 6 6v1h4v2h-1.167l-.757 9.083a1 1 0 0 1-.996.917H4.92a1 1 0 0 1-.996-.917L3.166 11H2V9h4V8a6 6 0 0 1 6-6zm6.826 9H5.173l.667 8h12.319l.667-8zM13 13v4h-2v-4h2zm-4 0v4H7v-4h2zm8 0v4h-2v-4h2zm-5-9a4 4 0 0 0-3.995 3.8L8 8v1h8V8a4 4 0 0 0-3.8-3.995L12 4z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M4 6.414L.757 3.172l1.415-1.415L5.414 5h15.242a1 1 0 0 1 .958 1.287l-2.4 8a1 1 0 0 1-.958.713H6v2h11v2H5a1 1 0 0 1-1-1V6.414zM6 7v6h11.512l1.8-6H6zm-.5 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm12 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5.671 4.257c3.928-3.219 9.733-2.995 13.4.672 3.905 3.905 3.905 10.237 0 14.142-3.905 3.905-10.237 3.905-14.142 0A9.993 9.993 0 0 1 2.25 9.767l.077-.313 1.934.51a8 8 0 1 0 3.053-4.45l-.221.166 1.017 1.017-4.596 1.06 1.06-4.596 1.096 1.096zM13 6v2h2.5v2H10a.5.5 0 0 0-.09.992L10 11h4a2.5 2.5 0 1 1 0 5h-1v2h-2v-2H8.5v-2H14a.5.5 0 0 0 .09-.992L14 13h-4a2.5 2.5 0 1 1 0-5h1V6h2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M24 12l-5.657 5.657-1.414-1.414L21.172 12l-4.243-4.243 1.414-1.414L24 12zM2.828 12l4.243 4.243-1.414 1.414L0 12l5.657-5.657L7.07 7.757 2.828 12zm6.96 9H7.66l6.552-18h2.128L9.788 21z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5.33 3.271a3.5 3.5 0 0 1 4.254 4.963l10.709 10.71-1.414 1.414-10.71-10.71a3.502 3.502 0 0 1-4.962-4.255L5.444 7.63a1.5 1.5 0 1 0 2.121-2.121L5.329 3.27zm10.367 1.884l3.182-1.768 1.414 1.414-1.768 3.182-1.768.354-2.12 2.121-1.415-1.414 2.121-2.121.354-1.768zm-6.718 8.132l1.414 1.414-5.303 5.303a1 1 0 0 1-1.492-1.327l.078-.087 5.303-5.303z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5.636 12.707l1.828 1.829L8.88 13.12 7.05 11.293l1.414-1.414 1.829 1.828 1.414-1.414L9.88 8.464l1.414-1.414L13.12 8.88l1.415-1.415-1.829-1.828 2.829-2.828a1 1 0 0 1 1.414 0l4.242 4.242a1 1 0 0 1 0 1.414L8.464 21.192a1 1 0 0 1-1.414 0L2.808 16.95a1 1 0 0 1 0-1.414l2.828-2.829zm8.485 5.656l4.243-4.242L21 16.757V21h-4.242l-2.637-2.637zM5.636 9.878L2.807 7.05a1 1 0 0 1 0-1.415l2.829-2.828a1 1 0 0 1 1.414 0L9.88 5.635 5.636 9.878z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M15.728 9.686l-1.414-1.414L5 17.586V19h1.414l9.314-9.314zm1.414-1.414l1.414-1.414-1.414-1.414-1.414 1.414 1.414 1.414zM7.242 21H3v-4.243L16.435 3.322a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414L7.243 21z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M20.083 15.2l1.202.721a.5.5 0 0 1 0 .858l-8.77 5.262a1 1 0 0 1-1.03 0l-8.77-5.262a.5.5 0 0 1 0-.858l1.202-.721L12 20.05l8.083-4.85zm0-4.7l1.202.721a.5.5 0 0 1 0 .858L12 17.65l-9.285-5.571a.5.5 0 0 1 0-.858l1.202-.721L12 15.35l8.083-4.85zm-7.569-9.191l8.771 5.262a.5.5 0 0 1 0 .858L12 13 2.715 7.429a.5.5 0 0 1 0-.858l8.77-5.262a1 1 0 0 1 1.03 0zM12 3.332L5.887 7 12 10.668 18.113 7 12 3.332z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14.121 10.48a1 1 0 0 0-1.414 0l-.707.706a2 2 0 1 1-2.828-2.828l5.63-5.632a6.5 6.5 0 0 1 6.377 10.568l-2.108 2.135-4.95-4.95zM3.161 4.468a6.503 6.503 0 0 1 8.009-.938L7.757 6.944a4 4 0 0 0 5.513 5.794l.144-.137 4.243 4.242-4.243 4.243a2 2 0 0 1-2.828 0L3.16 13.66a6.5 6.5 0 0 1 0-9.192z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M17 15.245v6.872a.5.5 0 0 1-.757.429L12 20l-4.243 2.546a.5.5 0 0 1-.757-.43v-6.87a8 8 0 1 1 10 0zM12 15a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm0-2a4 4 0 1 1 0-8 4 4 0 0 1 0 8z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 8.5l2.116 5.088 5.492.44-4.184 3.584 1.278 5.36L12 20.1l-4.702 2.872 1.278-5.36-4.184-3.584 5.492-.44L12 8.5zm0 5.207l-.739 1.777-1.916.153 1.46 1.251-.447 1.871L12 17.756l1.641 1.003-.446-1.87 1.459-1.252-1.915-.153L12 13.707zM8 2v9H6V2h2zm10 0v9h-2V2h2zm-5 0v5h-2V2h2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 17.002a6.002 6.002 0 0 1-4.713 5.86l-.638-1.914A4.003 4.003 0 0 0 19.465 19H17a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h2.938a8.001 8.001 0 0 0-15.876 0H7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5C2 6.477 6.477 2 12 2s10 4.477 10 10V17.002zM20 17v-4h-3v4h3zM4 13v4h3v-4H4z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 20.007a1 1 0 0 1-.992.993H2.992A.993.993 0 0 1 2 20.007V19h18V7.3l-8 7.2-10-9V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v16.007zM4.434 5L12 11.81 19.566 5H4.434zM0 15h8v2H0v-2zm0-5h5v2H0v-2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zm-.692-2H20V5H4v13.385L5.763 17zm5.53-4.879l4.243-4.242 1.414 1.414-5.657 5.657-3.89-3.89 1.415-1.414 2.475 2.475z"/>'},{tags:[],name:"",svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 14h-2V7.238l-7.928 7.1L4 7.216V19h10v2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v10zM4.511 5l7.55 6.662L19.502 5H4.511zM19 22l-3.536-3.536 1.415-1.414L19 19.172l3.536-3.536 1.414 1.414L19 22z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M20 7.238l-7.928 7.1L4 7.216V19h9v2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v7h-2V7.238zM19.501 5H4.511l7.55 6.662L19.502 5zM22 17h1v5h-8v-5h1v-1a3 3 0 0 1 6 0v1zm-2 0v-1a1 1 0 0 0-2 0v1h2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M9 1v2h6V1h2v2h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4V1h2zm11 9H4v9h16v-9zm-4.964 1.136l1.414 1.414-4.95 4.95-3.536-3.536L9.38 12.55l2.121 2.122 3.536-3.536zM7 5H4v3h16V5h-3v1h-2V5H9v1H7V5z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14.6 8H21a2 2 0 0 1 2 2v2.104a2 2 0 0 1-.15.762l-3.095 7.515a1 1 0 0 1-.925.619H2a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1h3.482a1 1 0 0 0 .817-.423L11.752.85a.5.5 0 0 1 .632-.159l1.814.907a2.5 2.5 0 0 1 1.305 2.853L14.6 8zM7 10.588V19h11.16L21 12.104V10h-6.4a2 2 0 0 1-1.938-2.493l.903-3.548a.5.5 0 0 0-.261-.571l-.661-.33-4.71 6.672c-.25.354-.57.644-.933.858zM5 11H3v8h2v-8z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M19 21H5a1 1 0 0 1-1-1v-9H1l10.327-9.388a1 1 0 0 1 1.346 0L23 11h-3v9a1 1 0 0 1-1 1zm-6-2h5V9.157l-6-5.454-6 5.454V19h5v-6h2v6z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M21 20h2v2H1v-2h2V3a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v17zm-2 0V4H5v16h14zM8 11h3v2H8v-2zm0-4h3v2H8V7zm0 8h3v2H8v-2zm5 0h3v2h-3v-2zm0-4h3v2h-3v-2zm0-4h3v2h-3V7z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zm-.692-2H20V5H4v13.385L5.763 17zM11 10h2v2h-2v-2zm-4 0h2v2H7v-2zm8 0h2v2h-2v-2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M9.4 16H3a2 2 0 0 1-2-2v-2.104a2 2 0 0 1 .15-.762L4.246 3.62A1 1 0 0 1 5.17 3H22a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3.482a1 1 0 0 0-.817.423l-5.453 7.726a.5.5 0 0 1-.632.159L9.802 22.4a2.5 2.5 0 0 1-1.305-2.853L9.4 16zm7.6-2.588V5H5.84L3 11.896V14h6.4a2 2 0 0 1 1.938 2.493l-.903 3.548a.5.5 0 0 0 .261.571l.661.33 4.71-6.672c.25-.354.57-.644.933-.858zM19 13h2V5h-2v8z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M7 4v16h10V4H7zM6 2h12a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm6 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M15.396 10.58l.02-.249a32.392 32.392 0 0 0 .083-2.326c0-.87-.294-1.486-.914-2.063-.66-.614-1.459-.942-2.59-.942-1.137 0-1.958.335-2.51.888-.696.695-.958 1.218-.958 2.1 0 .521.061 1.994.096 2.618a2 2 0 0 1-.469 1.402c.055.098.105.204.153.317.3.771.198 1.543-.152 2.271-.392.818-.731 1.393-1.41 2.154a7.973 7.973 0 0 1-.642.643 1.999 1.999 0 0 1 .412.565 5.886 5.886 0 0 1 1.585.074c.81.146 1.324.434 2.194 1.061l.016.011.213.152c.619.44.877.546 1.473.546.609 0 .91-.121 1.523-.552l.207-.146c.876-.632 1.407-.928 2.231-1.076a6.664 6.664 0 0 1 1.559-.074 1.999 1.999 0 0 1 .417-.567 8.409 8.409 0 0 1-.616-.616 9.235 9.235 0 0 1-1.447-2.16c-.363-.749-.47-1.54-.137-2.321.04-.098.085-.19.132-.276a2 2 0 0 1-.469-1.435zm-10.315-.102c.419 0 .6.305 1.219.305.157 0 .26-.035.326-.066-.009-.156-.099-1.986-.099-2.729 0-1.688.72-2.69 1.543-3.514C8.893 3.65 10.175 3 11.996 3c1.82 0 3.066.653 3.952 1.478.886.825 1.551 1.93 1.551 3.528 0 1.555-.099 2.594-.108 2.716a.59.59 0 0 0 .279.065c.63 0 .63-.31 1.33-.31.685 0 .983.57.983.823 0 .621-.833.967-1.33 1.126-.369.117-.931.291-1.075.635-.074.174-.043.4.092.678.003.008 1.26 2.883 3.93 3.326.235.035.391.241.391.483 0 .332-.37.617-.726.782-.443.2-1.091.37-1.952.505-.043.078-.134.485-.235.887-.135.542-.801.366-.991.326A4.997 4.997 0 0 0 16.291 20c-.482.087-.913.378-1.395.726-.713.504-1.465 1.076-2.9 1.076-1.436 0-2.144-.572-2.857-1.076-.482-.348-.905-.637-1.396-.726-.898-.163-1.57.036-1.795.057-.226.02-.842.244-.996-.327-.045-.166-.191-.808-.235-.895-.856-.135-1.508-.313-1.952-.513-.365-.165-.726-.443-.726-.779 0-.235.158-.44.391-.482 2.644-.483 3.766-3.005 3.922-3.33.132-.276.161-.5.091-.679-.143-.343-.704-.513-1.073-.635-.105-.034-1.336-.373-1.336-1.117 0-.24.205-.573.582-.73a1.36 1.36 0 0 1 .465-.092z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14 10.25L17 8v6l-3-2.25V14H7V8h7v2.25zM5.763 17H20V5H4v13.385L5.763 17zm.692 2L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455z"/>'},{svg:'<path d="M17 1L1.15533 8.23675C1.08581 8.2685 1.07616 8.36335 1.13788 8.40845L5.8 11.8154M17 1V19.8031C17 19.8849 16.9071 19.9321 16.841 19.8838L9.44214 14.477M17 1L5.8 11.8154M17 1L9.44214 14.477M5.8 11.8154L9.44214 14.477M5.8 11.8154L6.57033 17.5855C6.58178 17.6712 6.68936 17.703 6.74552 17.6372L9.44214 14.477" stroke="none"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M20 3v14a4 4 0 1 1-2-3.465V6H9v11a4 4 0 1 1-2-3.465V3h13z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 13.535V3h8v3h-6v11a4 4 0 1 1-2-3.465z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 4a8 8 0 0 0-8 8h3a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7C2 6.477 6.477 2 12 2s10 4.477 10 10v7a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h3a8 8 0 0 0-8-8zM4 14v5h3v-5H4zm13 0v5h3v-5h-3z"/>'}];var O=r(49549);const G=t=>a.qy` <cdtr-editor-container>
643
+ `,O=t=>o.qy` <cdtr-editor-container pt="16px">
644
+ <p style="font-size:12px;color:#888;line-height:1.5;margin:0;font-style:italic;">
645
+ <lang-text whiteSpace="break-spaces" text="${t.text}"></lang-text>
646
+ </p>
647
+ </cdtr-editor-container>`,N=()=>[{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"></path></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z"></path></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 18.26l-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928L12 18.26zm0-2.292l4.247 2.377-.949-4.773 3.573-3.305-4.833-.573L12 5.275l-2.038 4.42-4.833.572 3.573 3.305-.949 4.773L12 15.968z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 15.968l4.247 2.377-.949-4.773 3.573-3.305-4.833-.573L12 5.275v10.693zm0 2.292l-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928L12 18.26z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 18.26l-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 .5l4.226 6.183 7.187 2.109-4.575 5.93.215 7.486L12 19.69l-7.053 2.518.215-7.486-4.575-5.93 7.187-2.109L12 .5zm0 3.544L9.022 8.402 3.957 9.887l3.225 4.178-.153 5.275L12 17.566l4.97 1.774-.152-5.275 3.224-4.178-5.064-1.485L12 4.044zM10 12a2 2 0 1 0 4 0h2a4 4 0 1 1-8 0h2z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M12 .5l4.226 6.183 7.187 2.109-4.575 5.93.215 7.486L12 19.69l-7.053 2.518.215-7.486-4.575-5.93 7.187-2.109L12 .5zM10 12H8a4 4 0 0 0 7.995.2L16 12h-2a2 2 0 0 1-3.995.15L10 12z"/></svg>'},{svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z"/><path d="M5 4.604v9.185a4 4 0 0 0 1.781 3.328L12 20.597l5.219-3.48A4 4 0 0 0 19 13.79V4.604L12 3.05 5 4.604zM3.783 2.826L12 1l8.217 1.826a1 1 0 0 1 .783.976v9.987a6 6 0 0 1-2.672 4.992L12 23l-6.328-4.219A6 6 0 0 1 3 13.79V3.802a1 1 0 0 1 .783-.976zM12 13.5l-2.939 1.545.561-3.272-2.377-2.318 3.286-.478L12 6l1.47 2.977 3.285.478-2.377 2.318.56 3.272L12 13.5z"/></svg>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M2 19h20v2H2v-2zM2 5l5 3.5L12 2l5 6.5L22 5v12H2V5zm2 3.841V15h16V8.841l-3.42 2.394L12 5.28l-4.58 5.955L4 8.84z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm0-2a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm6.5-.25a1.25 1.25 0 0 1-2.5 0 1.25 1.25 0 0 1 2.5 0zM12 4c-2.474 0-2.878.007-4.029.058-.784.037-1.31.142-1.798.332-.434.168-.747.369-1.08.703a2.89 2.89 0 0 0-.704 1.08c-.19.49-.295 1.015-.331 1.798C4.006 9.075 4 9.461 4 12c0 2.474.007 2.878.058 4.029.037.783.142 1.31.331 1.797.17.435.37.748.702 1.08.337.336.65.537 1.08.703.494.191 1.02.297 1.8.333C9.075 19.994 9.461 20 12 20c2.474 0 2.878-.007 4.029-.058.782-.037 1.309-.142 1.797-.331.433-.169.748-.37 1.08-.702.337-.337.538-.65.704-1.08.19-.493.296-1.02.332-1.8.052-1.104.058-1.49.058-4.029 0-2.474-.007-2.878-.058-4.029-.037-.782-.142-1.31-.332-1.798a2.911 2.911 0 0 0-.703-1.08 2.884 2.884 0 0 0-1.08-.704c-.49-.19-1.016-.295-1.798-.331C14.925 4.006 14.539 4 12 4zm0-2c2.717 0 3.056.01 4.122.06 1.065.05 1.79.217 2.428.465.66.254 1.216.598 1.772 1.153a4.908 4.908 0 0 1 1.153 1.772c.247.637.415 1.363.465 2.428.047 1.066.06 1.405.06 4.122 0 2.717-.01 3.056-.06 4.122-.05 1.065-.218 1.79-.465 2.428a4.883 4.883 0 0 1-1.153 1.772 4.915 4.915 0 0 1-1.772 1.153c-.637.247-1.363.415-2.428.465-1.066.047-1.405.06-4.122.06-2.717 0-3.056-.01-4.122-.06-1.065-.05-1.79-.218-2.428-.465a4.89 4.89 0 0 1-1.772-1.153 4.904 4.904 0 0 1-1.153-1.772c-.248-.637-.415-1.363-.465-2.428C2.013 15.056 2 14.717 2 12c0-2.717.01-3.056.06-4.122.05-1.066.217-1.79.465-2.428a4.88 4.88 0 0 1 1.153-1.772A4.897 4.897 0 0 1 5.45 2.525c.638-.248 1.362-.415 2.428-.465C8.944 2.013 9.283 2 12 2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M7.253 18.494l.724.423A7.953 7.953 0 0 0 12 20a8 8 0 1 0-8-8c0 1.436.377 2.813 1.084 4.024l.422.724-.653 2.401 2.4-.655zM2.004 22l1.352-4.968A9.954 9.954 0 0 1 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10a9.954 9.954 0 0 1-5.03-1.355L2.004 22zM8.391 7.308c.134-.01.269-.01.403-.004.054.004.108.01.162.016.159.018.334.115.393.249.298.676.588 1.357.868 2.04.062.152.025.347-.093.537a4.38 4.38 0 0 1-.263.372c-.113.145-.356.411-.356.411s-.099.118-.061.265c.014.056.06.137.102.205l.059.095c.256.427.6.86 1.02 1.268.12.116.237.235.363.346.468.413.998.75 1.57 1l.005.002c.085.037.128.057.252.11.062.026.126.049.191.066a.35.35 0 0 0 .367-.13c.724-.877.79-.934.796-.934v.002a.482.482 0 0 1 .378-.127c.06.004.121.015.177.04.531.243 1.4.622 1.4.622l.582.261c.098.047.187.158.19.265.004.067.01.175-.013.373-.032.259-.11.57-.188.733a1.155 1.155 0 0 1-.21.302 2.378 2.378 0 0 1-.33.288 3.71 3.71 0 0 1-.125.09 5.024 5.024 0 0 1-.383.22 1.99 1.99 0 0 1-.833.23c-.185.01-.37.024-.556.014-.008 0-.568-.087-.568-.087a9.448 9.448 0 0 1-3.84-2.046c-.226-.199-.435-.413-.649-.626-.89-.885-1.562-1.84-1.97-2.742A3.47 3.47 0 0 1 6.9 9.62a2.729 2.729 0 0 1 .564-1.68c.073-.094.142-.192.261-.305.127-.12.207-.184.294-.228a.961.961 0 0 1 .371-.1z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M7.764 19.225c.59-.26 1.25-.309 1.868-.139.77.21 1.565.316 2.368.314 4.585 0 8-3.287 8-7.7S16.585 4 12 4s-8 3.287-8 7.7c0 2.27.896 4.272 2.466 5.676a2.8 2.8 0 0 1 .942 2.006l.356-.157zM12 2c5.634 0 10 4.127 10 9.7 0 5.573-4.366 9.7-10 9.7a10.894 10.894 0 0 1-2.895-.384.8.8 0 0 0-.534.039l-1.984.876a.8.8 0 0 1-1.123-.707l-.055-1.78a.797.797 0 0 0-.268-.57C3.195 17.135 2 14.617 2 11.7 2 6.127 6.367 2 12 2zM5.995 14.537l2.937-4.66a1.5 1.5 0 0 1 2.17-.4l2.336 1.75a.6.6 0 0 0 .723 0l3.155-2.396c.421-.319.971.185.689.633l-2.937 4.66a1.5 1.5 0 0 1-2.17.4l-2.336-1.75a.6.6 0 0 0-.723 0l-3.155 2.395c-.421.319-.971-.185-.689-.633z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14 19h5V5H5v14h7v-5h-2v-2h2v-1.654c0-1.337.14-1.822.4-2.311A2.726 2.726 0 0 1 13.536 6.9c.382-.205.857-.328 1.687-.381.329-.021.755.005 1.278.08v1.9H16c-.917 0-1.296.043-1.522.164a.727.727 0 0 0-.314.314c-.12.226-.164.45-.164 1.368V12h2.5l-.5 2h-2v5zM4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/>'},{svg:'<path fill="none" d="M0 0H24V24H0z"/><path d="M5 3v16h16v2H3V3h2zm14.94 2.94l2.12 2.12L16 14.122l-3-3-3.94 3.94-2.12-2.122L13 6.88l3 3 3.94-3.94z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M9.366 10.682a10.556 10.556 0 0 0 3.952 3.952l.884-1.238a1 1 0 0 1 1.294-.296 11.422 11.422 0 0 0 4.583 1.364 1 1 0 0 1 .921.997v4.462a1 1 0 0 1-.898.995c-.53.055-1.064.082-1.602.082C9.94 21 3 14.06 3 5.5c0-.538.027-1.072.082-1.602A1 1 0 0 1 4.077 3h4.462a1 1 0 0 1 .997.921A11.422 11.422 0 0 0 10.9 8.504a1 1 0 0 1-.296 1.294l-1.238.884zm-2.522-.657l1.9-1.357A13.41 13.41 0 0 1 7.647 5H5.01c-.006.166-.009.333-.009.5C5 12.956 11.044 19 18.5 19c.167 0 .334-.003.5-.01v-2.637a13.41 13.41 0 0 1-3.668-1.097l-1.357 1.9a12.442 12.442 0 0 1-1.588-.75l-.058-.033a12.556 12.556 0 0 1-4.702-4.702l-.033-.058a12.442 12.442 0 0 1-.75-1.588z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M2 13h6v8H2v-8zm14-5h6v13h-6V8zM9 3h6v18H9V3zM4 15v4h2v-4H4zm7-10v14h2V5h-2zm7 5v9h2v-9h-2z"/>'},{svg:'<path fill="none" d="M0 0H24V24H0z"/><path d="M5.5 20c.828 0 1.5.672 1.5 1.5S6.328 23 5.5 23 4 22.328 4 21.5 4.672 20 5.5 20zm13 0c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zM2.172 1.757l3.827 3.828V17L20 17v2H5c-.552 0-1-.448-1-1V6.413L.756 3.172l1.415-1.415zM16 3c.552 0 1 .448 1 1v2h2.993C20.55 6 21 6.456 21 6.995v8.01c0 .55-.45.995-1.007.995H8.007C7.45 16 7 15.544 7 15.005v-8.01C7 6.445 7.45 6 8.007 6h2.992L11 4c0-.552.448-1 1-1h4zm-6 5H9v6h1V8zm6 0h-4v6h4V8zm3 0h-1v6h1V8zm-4-3h-2v1h2V5z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 13.5V21a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1H5v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-7.5l-1.243-.31A1 1 0 0 1 0 12.22v-.72a.5.5 0 0 1 .5-.5h1.875l2.138-5.702A2 2 0 0 1 6.386 4h11.228a2 2 0 0 1 1.873 1.298L21.625 11H23.5a.5.5 0 0 1 .5.5v.72a1 1 0 0 1-.757.97L22 13.5zM4 15v2a1 1 0 0 0 1 1h3.245a.5.5 0 0 0 .44-.736C7.88 15.754 6.318 15 4 15zm16 0c-2.317 0-3.879.755-4.686 2.264a.5.5 0 0 0 .441.736H19a1 1 0 0 0 1-1v-2zM6 6l-1.561 4.684A1 1 0 0 0 5.387 12h13.226a1 1 0 0 0 .948-1.316L18 6H6z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5 3h15a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-2v3a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4V4a1 1 0 0 1 1-1zm13 2v3h2V5h-2zM2 19h18v2H2v-2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14.5 2a3.5 3.5 0 0 1 3.163 5.001L21 7a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1v8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-8H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1l3.337.001a3.5 3.5 0 0 1 5.664-3.95A3.48 3.48 0 0 1 14.5 2zM18 13H6v7h12v-7zm2-4H4v2h16V9zM9.5 4a1.5 1.5 0 0 0-.144 2.993L9.5 7H11V5.5a1.5 1.5 0 0 0-1.356-1.493L9.5 4zm5 0l-.144.007a1.5 1.5 0 0 0-1.35 1.349L13 5.5V7h1.5l.144-.007a1.5 1.5 0 0 0 0-2.986L14.5 4z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M4 5v14h16V5H4zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm11.793 6.793L13 8h5v5l-1.793-1.793-3.864 3.864-2.121-2.121-2.829 2.828-1.414-1.414 4.243-4.243 2.121 2.122 2.45-2.45z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5 9a1 1 0 0 1 1 1 6.97 6.97 0 0 1 4.33 1.5h2.17c1.332 0 2.53.579 3.353 1.499L19 13a5 5 0 0 1 4.516 2.851C21.151 18.972 17.322 21 13 21c-2.79 0-5.15-.603-7.06-1.658A.998.998 0 0 1 5 20H2a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h3zm1.001 3L6 17.021l.045.033C7.84 18.314 10.178 19 13 19c3.004 0 5.799-1.156 7.835-3.13l.133-.133-.12-.1a2.994 2.994 0 0 0-1.643-.63L19 15l-2.112-.001c.073.322.112.657.112 1.001v1H8v-2l6.79-.001-.034-.078a2.501 2.501 0 0 0-2.092-1.416L12.5 13.5H9.57A4.985 4.985 0 0 0 6.002 12zM4 11H3v7h1v-7zm9.646-7.425L14 3.93l.354-.354a2.5 2.5 0 1 1 3.535 3.536L14 11l-3.89-3.89a2.5 2.5 0 1 1 3.536-3.535zm-2.12 1.415a.5.5 0 0 0-.06.637l.058.069L14 8.17l2.476-2.474a.5.5 0 0 0 .058-.638l-.058-.07a.5.5 0 0 0-.638-.057l-.07.058-1.769 1.768-1.767-1.77-.068-.056a.5.5 0 0 0-.638.058z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M17.5 21a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-11-9a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm12.571-4.485l1.414 1.414L4.93 20.485l-1.414-1.414L19.07 3.515z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M13 16.938V19h5v2H6v-2h5v-2.062A8.001 8.001 0 0 1 4 9V3h16v6a8.001 8.001 0 0 1-7 7.938zM6 5v4a6 6 0 1 0 12 0V5H6zM1 5h2v4H1V5zm20 0h2v4h-2V5z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M3.492 8.065L4.778 19h14.444l1.286-10.935-4.01 2.673L12 4.441l-4.498 6.297-4.01-2.673zM2.801 5.2L7 8l4.186-5.86a1 1 0 0 1 1.628 0L17 8l4.2-2.8a1 1 0 0 1 1.547.95l-1.643 13.967a1 1 0 0 1-.993.883H3.889a1 1 0 0 1-.993-.883L1.253 6.149A1 1 0 0 1 2.8 5.2zM12 15a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 2a6 6 0 0 1 6 6v1h4v2h-1.167l-.757 9.083a1 1 0 0 1-.996.917H4.92a1 1 0 0 1-.996-.917L3.166 11H2V9h4V8a6 6 0 0 1 6-6zm6.826 9H5.173l.667 8h12.319l.667-8zM13 13v4h-2v-4h2zm-4 0v4H7v-4h2zm8 0v4h-2v-4h2zm-5-9a4 4 0 0 0-3.995 3.8L8 8v1h8V8a4 4 0 0 0-3.8-3.995L12 4z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M4 6.414L.757 3.172l1.415-1.415L5.414 5h15.242a1 1 0 0 1 .958 1.287l-2.4 8a1 1 0 0 1-.958.713H6v2h11v2H5a1 1 0 0 1-1-1V6.414zM6 7v6h11.512l1.8-6H6zm-.5 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm12 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5.671 4.257c3.928-3.219 9.733-2.995 13.4.672 3.905 3.905 3.905 10.237 0 14.142-3.905 3.905-10.237 3.905-14.142 0A9.993 9.993 0 0 1 2.25 9.767l.077-.313 1.934.51a8 8 0 1 0 3.053-4.45l-.221.166 1.017 1.017-4.596 1.06 1.06-4.596 1.096 1.096zM13 6v2h2.5v2H10a.5.5 0 0 0-.09.992L10 11h4a2.5 2.5 0 1 1 0 5h-1v2h-2v-2H8.5v-2H14a.5.5 0 0 0 .09-.992L14 13h-4a2.5 2.5 0 1 1 0-5h1V6h2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M24 12l-5.657 5.657-1.414-1.414L21.172 12l-4.243-4.243 1.414-1.414L24 12zM2.828 12l4.243 4.243-1.414 1.414L0 12l5.657-5.657L7.07 7.757 2.828 12zm6.96 9H7.66l6.552-18h2.128L9.788 21z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5.33 3.271a3.5 3.5 0 0 1 4.254 4.963l10.709 10.71-1.414 1.414-10.71-10.71a3.502 3.502 0 0 1-4.962-4.255L5.444 7.63a1.5 1.5 0 1 0 2.121-2.121L5.329 3.27zm10.367 1.884l3.182-1.768 1.414 1.414-1.768 3.182-1.768.354-2.12 2.121-1.415-1.414 2.121-2.121.354-1.768zm-6.718 8.132l1.414 1.414-5.303 5.303a1 1 0 0 1-1.492-1.327l.078-.087 5.303-5.303z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M5.636 12.707l1.828 1.829L8.88 13.12 7.05 11.293l1.414-1.414 1.829 1.828 1.414-1.414L9.88 8.464l1.414-1.414L13.12 8.88l1.415-1.415-1.829-1.828 2.829-2.828a1 1 0 0 1 1.414 0l4.242 4.242a1 1 0 0 1 0 1.414L8.464 21.192a1 1 0 0 1-1.414 0L2.808 16.95a1 1 0 0 1 0-1.414l2.828-2.829zm8.485 5.656l4.243-4.242L21 16.757V21h-4.242l-2.637-2.637zM5.636 9.878L2.807 7.05a1 1 0 0 1 0-1.415l2.829-2.828a1 1 0 0 1 1.414 0L9.88 5.635 5.636 9.878z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M15.728 9.686l-1.414-1.414L5 17.586V19h1.414l9.314-9.314zm1.414-1.414l1.414-1.414-1.414-1.414-1.414 1.414 1.414 1.414zM7.242 21H3v-4.243L16.435 3.322a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414L7.243 21z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M20.083 15.2l1.202.721a.5.5 0 0 1 0 .858l-8.77 5.262a1 1 0 0 1-1.03 0l-8.77-5.262a.5.5 0 0 1 0-.858l1.202-.721L12 20.05l8.083-4.85zm0-4.7l1.202.721a.5.5 0 0 1 0 .858L12 17.65l-9.285-5.571a.5.5 0 0 1 0-.858l1.202-.721L12 15.35l8.083-4.85zm-7.569-9.191l8.771 5.262a.5.5 0 0 1 0 .858L12 13 2.715 7.429a.5.5 0 0 1 0-.858l8.77-5.262a1 1 0 0 1 1.03 0zM12 3.332L5.887 7 12 10.668 18.113 7 12 3.332z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14.121 10.48a1 1 0 0 0-1.414 0l-.707.706a2 2 0 1 1-2.828-2.828l5.63-5.632a6.5 6.5 0 0 1 6.377 10.568l-2.108 2.135-4.95-4.95zM3.161 4.468a6.503 6.503 0 0 1 8.009-.938L7.757 6.944a4 4 0 0 0 5.513 5.794l.144-.137 4.243 4.242-4.243 4.243a2 2 0 0 1-2.828 0L3.16 13.66a6.5 6.5 0 0 1 0-9.192z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M17 15.245v6.872a.5.5 0 0 1-.757.429L12 20l-4.243 2.546a.5.5 0 0 1-.757-.43v-6.87a8 8 0 1 1 10 0zM12 15a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm0-2a4 4 0 1 1 0-8 4 4 0 0 1 0 8z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 8.5l2.116 5.088 5.492.44-4.184 3.584 1.278 5.36L12 20.1l-4.702 2.872 1.278-5.36-4.184-3.584 5.492-.44L12 8.5zm0 5.207l-.739 1.777-1.916.153 1.46 1.251-.447 1.871L12 17.756l1.641 1.003-.446-1.87 1.459-1.252-1.915-.153L12 13.707zM8 2v9H6V2h2zm10 0v9h-2V2h2zm-5 0v5h-2V2h2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 17.002a6.002 6.002 0 0 1-4.713 5.86l-.638-1.914A4.003 4.003 0 0 0 19.465 19H17a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h2.938a8.001 8.001 0 0 0-15.876 0H7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5C2 6.477 6.477 2 12 2s10 4.477 10 10V17.002zM20 17v-4h-3v4h3zM4 13v4h3v-4H4z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 20.007a1 1 0 0 1-.992.993H2.992A.993.993 0 0 1 2 20.007V19h18V7.3l-8 7.2-10-9V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v16.007zM4.434 5L12 11.81 19.566 5H4.434zM0 15h8v2H0v-2zm0-5h5v2H0v-2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zm-.692-2H20V5H4v13.385L5.763 17zm5.53-4.879l4.243-4.242 1.414 1.414-5.657 5.657-3.89-3.89 1.415-1.414 2.475 2.475z"/>'},{tags:[],name:"",svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M22 14h-2V7.238l-7.928 7.1L4 7.216V19h10v2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v10zM4.511 5l7.55 6.662L19.502 5H4.511zM19 22l-3.536-3.536 1.415-1.414L19 19.172l3.536-3.536 1.414 1.414L19 22z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M20 7.238l-7.928 7.1L4 7.216V19h9v2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v7h-2V7.238zM19.501 5H4.511l7.55 6.662L19.502 5zM22 17h1v5h-8v-5h1v-1a3 3 0 0 1 6 0v1zm-2 0v-1a1 1 0 0 0-2 0v1h2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M9 1v2h6V1h2v2h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4V1h2zm11 9H4v9h16v-9zm-4.964 1.136l1.414 1.414-4.95 4.95-3.536-3.536L9.38 12.55l2.121 2.122 3.536-3.536zM7 5H4v3h16V5h-3v1h-2V5H9v1H7V5z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14.6 8H21a2 2 0 0 1 2 2v2.104a2 2 0 0 1-.15.762l-3.095 7.515a1 1 0 0 1-.925.619H2a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1h3.482a1 1 0 0 0 .817-.423L11.752.85a.5.5 0 0 1 .632-.159l1.814.907a2.5 2.5 0 0 1 1.305 2.853L14.6 8zM7 10.588V19h11.16L21 12.104V10h-6.4a2 2 0 0 1-1.938-2.493l.903-3.548a.5.5 0 0 0-.261-.571l-.661-.33-4.71 6.672c-.25.354-.57.644-.933.858zM5 11H3v8h2v-8z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M19 21H5a1 1 0 0 1-1-1v-9H1l10.327-9.388a1 1 0 0 1 1.346 0L23 11h-3v9a1 1 0 0 1-1 1zm-6-2h5V9.157l-6-5.454-6 5.454V19h5v-6h2v6z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M21 20h2v2H1v-2h2V3a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v17zm-2 0V4H5v16h14zM8 11h3v2H8v-2zm0-4h3v2H8V7zm0 8h3v2H8v-2zm5 0h3v2h-3v-2zm0-4h3v2h-3v-2zm0-4h3v2h-3V7z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zm-.692-2H20V5H4v13.385L5.763 17zM11 10h2v2h-2v-2zm-4 0h2v2H7v-2zm8 0h2v2h-2v-2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M9.4 16H3a2 2 0 0 1-2-2v-2.104a2 2 0 0 1 .15-.762L4.246 3.62A1 1 0 0 1 5.17 3H22a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3.482a1 1 0 0 0-.817.423l-5.453 7.726a.5.5 0 0 1-.632.159L9.802 22.4a2.5 2.5 0 0 1-1.305-2.853L9.4 16zm7.6-2.588V5H5.84L3 11.896V14h6.4a2 2 0 0 1 1.938 2.493l-.903 3.548a.5.5 0 0 0 .261.571l.661.33 4.71-6.672c.25-.354.57-.644.933-.858zM19 13h2V5h-2v8z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M7 4v16h10V4H7zM6 2h12a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm6 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M15.396 10.58l.02-.249a32.392 32.392 0 0 0 .083-2.326c0-.87-.294-1.486-.914-2.063-.66-.614-1.459-.942-2.59-.942-1.137 0-1.958.335-2.51.888-.696.695-.958 1.218-.958 2.1 0 .521.061 1.994.096 2.618a2 2 0 0 1-.469 1.402c.055.098.105.204.153.317.3.771.198 1.543-.152 2.271-.392.818-.731 1.393-1.41 2.154a7.973 7.973 0 0 1-.642.643 1.999 1.999 0 0 1 .412.565 5.886 5.886 0 0 1 1.585.074c.81.146 1.324.434 2.194 1.061l.016.011.213.152c.619.44.877.546 1.473.546.609 0 .91-.121 1.523-.552l.207-.146c.876-.632 1.407-.928 2.231-1.076a6.664 6.664 0 0 1 1.559-.074 1.999 1.999 0 0 1 .417-.567 8.409 8.409 0 0 1-.616-.616 9.235 9.235 0 0 1-1.447-2.16c-.363-.749-.47-1.54-.137-2.321.04-.098.085-.19.132-.276a2 2 0 0 1-.469-1.435zm-10.315-.102c.419 0 .6.305 1.219.305.157 0 .26-.035.326-.066-.009-.156-.099-1.986-.099-2.729 0-1.688.72-2.69 1.543-3.514C8.893 3.65 10.175 3 11.996 3c1.82 0 3.066.653 3.952 1.478.886.825 1.551 1.93 1.551 3.528 0 1.555-.099 2.594-.108 2.716a.59.59 0 0 0 .279.065c.63 0 .63-.31 1.33-.31.685 0 .983.57.983.823 0 .621-.833.967-1.33 1.126-.369.117-.931.291-1.075.635-.074.174-.043.4.092.678.003.008 1.26 2.883 3.93 3.326.235.035.391.241.391.483 0 .332-.37.617-.726.782-.443.2-1.091.37-1.952.505-.043.078-.134.485-.235.887-.135.542-.801.366-.991.326A4.997 4.997 0 0 0 16.291 20c-.482.087-.913.378-1.395.726-.713.504-1.465 1.076-2.9 1.076-1.436 0-2.144-.572-2.857-1.076-.482-.348-.905-.637-1.396-.726-.898-.163-1.57.036-1.795.057-.226.02-.842.244-.996-.327-.045-.166-.191-.808-.235-.895-.856-.135-1.508-.313-1.952-.513-.365-.165-.726-.443-.726-.779 0-.235.158-.44.391-.482 2.644-.483 3.766-3.005 3.922-3.33.132-.276.161-.5.091-.679-.143-.343-.704-.513-1.073-.635-.105-.034-1.336-.373-1.336-1.117 0-.24.205-.573.582-.73a1.36 1.36 0 0 1 .465-.092z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M14 10.25L17 8v6l-3-2.25V14H7V8h7v2.25zM5.763 17H20V5H4v13.385L5.763 17zm.692 2L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455z"/>'},{svg:'<path d="M17 1L1.15533 8.23675C1.08581 8.2685 1.07616 8.36335 1.13788 8.40845L5.8 11.8154M17 1V19.8031C17 19.8849 16.9071 19.9321 16.841 19.8838L9.44214 14.477M17 1L5.8 11.8154M17 1L9.44214 14.477M5.8 11.8154L9.44214 14.477M5.8 11.8154L6.57033 17.5855C6.58178 17.6712 6.68936 17.703 6.74552 17.6372L9.44214 14.477" stroke="none"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M20 3v14a4 4 0 1 1-2-3.465V6H9v11a4 4 0 1 1-2-3.465V3h13z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 13.535V3h8v3h-6v11a4 4 0 1 1-2-3.465z"/>'},{svg:'<path fill="none" d="M0 0h24v24H0z"/><path d="M12 4a8 8 0 0 0-8 8h3a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7C2 6.477 6.477 2 12 2s10 4.477 10 10v7a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h3a8 8 0 0 0-8-8zM4 14v5h3v-5H4zm13 0v5h3v-5h-3z"/>'}];var U=r(49549);const G=t=>o.qy` <cdtr-editor-container>
514
648
  <cdtr-title><lang-text text="${t.title}"></lang-text></cdtr-title>
515
649
  <cdtr-row style="padding:var(--add-padding-row)" justify="center">
516
- ${(0,O.u)(N(),t=>t.svg,e=>{const r=(new DOMParser).parseFromString(`<svg\n width="30"\n height="30"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 24 24">${e.svg}</svg>`,"text/xml").firstChild;return a.qy`<cdtr-col sm="3">
650
+ ${(0,U.u)(N(),t=>t.svg,e=>{const r=(new DOMParser).parseFromString(`<svg\n width="30"\n height="30"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 24 24">${e.svg}</svg>`,"text/xml").firstChild;return o.qy`<cdtr-col sm="3">
517
651
  <paper-button style="min-width:0;padding:3px" @click=${()=>t.onChange(e)}>
518
652
  ${r}
519
653
  </paper-button>
520
654
  </cdtr-col>`})}
521
655
  </cdtr-row>
522
- </cdtr-editor-container>`,D=t=>a.qy`
656
+ </cdtr-editor-container>`,D=t=>o.qy`
523
657
  <cdtr-editor-container pt="0">
524
658
  <cdtr-row @click=${t=>{const e=t.currentTarget;if(e){if(t.target.closest("cdtr-gallery"))return;const r=e.querySelector("cdtr-gallery");r&&(r.opened&&(r.opened=!1),setTimeout(()=>{r.opened=!0},100))}}} style="padding:0.7rem 0px;" justify="${t.justify||"center"}" alignItems="center">
525
- ${t.src&&t.hasPreview?a.qy`
659
+ ${t.src&&t.hasPreview?o.qy`
526
660
  <div style="position: relative; width: 100%; margin-bottom: 10px; border: 1px solid #eee; border-radius: 4px; overflow: hidden;">
527
661
  <img
528
662
  src="${t.src}"
529
663
  style="width: 100%; height: 120px; object-fit: cover; display: block;"
530
664
  onerror="this.style.display='none'"
531
665
  />
532
- ${t.isDeletable?a.qy`
666
+ ${t.isDeletable?o.qy`
533
667
  <paper-button
534
668
  style="position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.5); color: white; padding: 4px 8px; min-width: auto;"
535
669
  @click=${e=>{e.stopPropagation(),"function"==typeof t.onDelete&&t.onDelete(e)}}
@@ -548,7 +682,7 @@ max-height: 90vh;max-width:500px;"
548
682
  ></cdtr-gallery>
549
683
  </cdtr-row>
550
684
  </cdtr-editor-container>
551
- `,J=t=>{const e=JSON.parse(JSON.stringify(t.data)),r=e[0].items.length;if(""!==e[e.length-1].items[0].value){const t={items:[]};e.push(t);for(let a=0;a<r;a++)t.items.push({key:e[0].items[a].key,value:""})}""!==e[e.length-1].items[0].key&&e.forEach(t=>{t.items.push({key:"",value:""})});return a.qy`
685
+ `,K=t=>{const e=JSON.parse(JSON.stringify(t.data)),r=e[0].items.length;if(""!==e[e.length-1].items[0].value){const t={items:[]};e.push(t);for(let o=0;o<r;o++)t.items.push({key:e[0].items[o].key,value:""})}""!==e[e.length-1].items[0].key&&e.forEach(t=>{t.items.push({key:"",value:""})});return o.qy`
552
686
  <div>
553
687
  <div style="width:100%;overflow-x:auto;">
554
688
  <cdtr-editor-container>
@@ -558,29 +692,29 @@ max-height: 90vh;max-width:500px;"
558
692
  >
559
693
  <thead>
560
694
  <tr>
561
- ${e[0].items.map((r,o)=>a.qy`<th
695
+ ${e[0].items.map((r,a)=>o.qy`<th
562
696
  style=" border: 1px solid #dddddd;
563
697
  padding: 8px;"
564
698
  >
565
699
  <cdtr-input
566
700
  inputStyle="font-weight:700;border:none;"
567
- @change=${r=>((r,a)=>{t.onChangeHeader&&(e.forEach((t,e)=>{t.items[a].key=r}),K(e),t.onChangeHeader(e,r,a))})(r.target.value,o)}
701
+ @change=${r=>((r,o)=>{t.onChangeHeader&&(e.forEach((t,e)=>{t.items[o].key=r}),J(e),t.onChangeHeader(e,r,o))})(r.target.value,a)}
568
702
  value=${r.key}
569
703
  ></cdtr-input>
570
704
  </th> `)}
571
705
  </tr>
572
706
  </thead>
573
707
  <tbody>
574
- ${e.map((r,o)=>a.qy`
708
+ ${e.map((r,a)=>o.qy`
575
709
  <tr style="color: ${r.color}">
576
- ${r.items.map((i,n)=>a.qy`<td
710
+ ${r.items.map((i,n)=>o.qy`<td
577
711
  style=" border: 1px solid #dddddd;
578
712
  padding: 8px;"
579
713
  >
580
714
  <cdtr-input
581
715
  inputStyle="border:none;"
582
716
  .disabled=${0!==n&&""===r.items[0].value}
583
- @change=${r=>((r,a)=>{let{groupIndex:o,itemIndex:i}=a;t.onChangeValue&&(e[o].items[i].value=r,K(e),t.onChangeValue(e,{groupIndex:o,itemIndex:i,value:r}))})(r.target.value,{itemIndex:n,groupIndex:o})}
717
+ @change=${r=>((r,o)=>{let{groupIndex:a,itemIndex:i}=o;t.onChangeValue&&(e[a].items[i].value=r,J(e),t.onChangeValue(e,{groupIndex:a,itemIndex:i,value:r}))})(r.target.value,{itemIndex:n,groupIndex:a})}
584
718
  value=${i.value}
585
719
  ></cdtr-input>
586
720
  </td>`)}
@@ -596,20 +730,20 @@ max-height: 90vh;max-width:500px;"
596
730
  </h3>
597
731
  </cdtr-editor-container>
598
732
 
599
- ${e[0].items.map((r,o)=>a.qy`
733
+ ${e[0].items.map((r,a)=>o.qy`
600
734
  <cdtr-editor-container>
601
735
  <cdtr-row justify="space-between" alignItems="center">
602
736
  <b>${r.key}</b>
603
- ${t.editableColor&&r.key?a.qy`<color-playground
604
- @change=${r=>((r,a)=>{t.onChangeHeader&&(e[a].color=r,K(e),t.onChangeHeader(e,r,a))})(r.target.value,o)}
605
- value=${e[o].color}
737
+ ${t.editableColor&&r.key?o.qy`<color-playground
738
+ @change=${r=>((r,o)=>{t.onChangeHeader&&(e[o].color=r,J(e),t.onChangeHeader(e,r,o))})(r.target.value,a)}
739
+ value=${e[a].color}
606
740
  style="height:18px"
607
741
  ></color-playground>`:null}
608
742
  </cdtr-row>
609
743
  </cdtr-editor-container>
610
744
  `)}
611
745
  </div>
612
- `};function K(t){t.forEach((t,e)=>{t.items=Array.from(t.items).filter(t=>t.key)})}const X=t=>a.qy`
746
+ `};function J(t){t.forEach((t,e)=>{t.items=Array.from(t.items).filter(t=>t.key)})}const X=t=>o.qy`
613
747
  <cdtr-editor-container>
614
748
  <cdtr-link-element
615
749
  .autofocus=${t.autofocus}
@@ -618,7 +752,7 @@ max-height: 90vh;max-width:500px;"
618
752
  .target=${t.target}
619
753
  @change=${t.onChange}
620
754
  ></cdtr-link-element
621
- ></cdtr-editor-container>`,Y=[{name:"solid",value:"solid"},{name:"dashed",value:"dashed"},{name:"dotted",value:"dotted"},{name:"outset",value:"outset"},{name:"groove",value:"groove"},{name:"double",value:"double"},{name:"ridge",value:"ridge"}],Z=t=>a.qy`<cdtr-editor-container>
755
+ ></cdtr-editor-container>`,Y=[{name:"solid",value:"solid"},{name:"dashed",value:"dashed"},{name:"dotted",value:"dotted"},{name:"outset",value:"outset"},{name:"groove",value:"groove"},{name:"double",value:"double"},{name:"ridge",value:"ridge"}],Z=t=>o.qy`<cdtr-editor-container>
622
756
  <cdtr-row alignItems="center" jusitfyContent="space-between">
623
757
  <cdtr-col>
624
758
  <cdtr-title><lang-text text="type"></lang-text></cdtr-title>
@@ -632,7 +766,7 @@ max-height: 90vh;max-width:500px;"
632
766
  ><lang-text text="${t.borderType||t.value}"></lang-text>
633
767
  </cdtr-dropdown-button>
634
768
  <div slot="content">
635
- ${Y.map(e=>a.qy`<cdtr-dropdown-item
769
+ ${Y.map(e=>o.qy`<cdtr-dropdown-item
636
770
  .focused=${e.value===t.borderStyle||e.value===t.value}
637
771
  .selected=${e.value===t.borderStyle||e.value===t.value}
638
772
  value="${e.value}"
@@ -649,7 +783,7 @@ max-height: 90vh;max-width:500px;"
649
783
  />
650
784
  </cdtr-col>
651
785
  </cdtr-row>
652
- </cdtr-editor-container>`,Q=t=>{const e="alignItems"===t.type?[{value:"flex-start",label:"top"},{value:"center",label:"middle"},{value:"flex-end",label:"bottom"}]:[{value:"flex-end",label:"right"},{value:"center",label:"center"},{value:"flex-start",label:"left"}];"end"===t.value?t.value="flex-end":"start"===t.value&&(t.value="flex-start");const r=e.find(e=>e.value===t.value)?.label;return a.qy` <cdtr-editor-container>
786
+ </cdtr-editor-container>`,Q=t=>{const e="alignItems"===t.type?[{value:"flex-start",label:"top"},{value:"center",label:"middle"},{value:"flex-end",label:"bottom"}]:[{value:"flex-end",label:"right"},{value:"center",label:"center"},{value:"flex-start",label:"left"}];"end"===t.value?t.value="flex-end":"start"===t.value&&(t.value="flex-start");const r=e.find(e=>e.value===t.value)?.label;return o.qy` <cdtr-editor-container>
653
787
  <cdtr-title>
654
788
  <lang-text text=${t.title||"justifyContent"}></lang-text>
655
789
  </cdtr-title>
@@ -661,7 +795,7 @@ max-height: 90vh;max-width:500px;"
661
795
  ><lang-text text="${r||t.value}"></lang-text>
662
796
  </cdtr-dropdown-button>
663
797
  <div slot="content">
664
- ${e.map(e=>a.qy`<cdtr-dropdown-item
798
+ ${e.map(e=>o.qy`<cdtr-dropdown-item
665
799
  .focused=${e.value===t.value}
666
800
  .selected=${e.value===t.value}
667
801
  .value="${e.value}"
@@ -669,16 +803,16 @@ max-height: 90vh;max-width:500px;"
669
803
  </cdtr-dropdown-item>`)}
670
804
  </div>
671
805
  </cdtr-dropdown>
672
- </cdtr-editor-container>`};class tt extends a.WF{constructor(){super(),this.onInput=this.onInput.bind(this),this.isLocked=!0,this.borderTopRightRadius=0,this.borderTopLeftRadius=0,this.borderBottomRightRadius=0,this.borderBottomLeftRadius=0}connectedCallback(){super.connectedCallback()}onInput(t,e){t.preventDefault();const r=t.target.value,a=r;this.isLocked?(this.borderTopRightRadius=r,this.borderTopLeftRadius=r,this.borderBottomRightRadius=r,this.borderBottomLeftRadius=r,this.json={borderTopRightRadius:a,borderTopLeftRadius:a,borderBottomRightRadius:a,borderBottomLeftRadius:a,borderRadius:null}):(this.borderTopRightRadius=parseInt(this.borderTopRightRadius||0),this.borderTopLeftRadius=parseInt(this.borderTopLeftRadius||0),this.borderBottomRightRadius=parseInt(this.borderBottomRightRadius||0),this.borderBottomLeftRadius=parseInt(this.borderBottomLeftRadius||0),this.json={borderTopRightRadius:parseInt(this.borderTopRightRadius||0),borderTopLeftRadius:parseInt(this.borderTopLeftRadius||0),borderBottomRightRadius:parseInt(this.borderBottomRightRadius||0),borderBottomLeftRadius:parseInt(this.borderBottomLeftRadius||0),borderRadius:null},this.json[e]=a),this.value=r,this.radiusKey=e;const o=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(o)}resolveIcon(t){let e;switch(t){case"borderTopRightRadius":e="arrowTopRight";break;case"borderTopLeftRadius":e="arrowTopLeft";break;case"borderBottomRightRadius":e="arrowBottomRight";break;case"borderBottomLeftRadius":e="arrowBottomLeft"}return a.qy`<cdtr-icon
806
+ </cdtr-editor-container>`};class tt extends o.WF{constructor(){super(),this.onInput=this.onInput.bind(this),this.isLocked=!0,this.borderTopRightRadius=0,this.borderTopLeftRadius=0,this.borderBottomRightRadius=0,this.borderBottomLeftRadius=0}connectedCallback(){super.connectedCallback()}onInput(t,e){t.preventDefault();const r=t.target.value,o=r;this.isLocked?(this.borderTopRightRadius=r,this.borderTopLeftRadius=r,this.borderBottomRightRadius=r,this.borderBottomLeftRadius=r,this.json={borderTopRightRadius:o,borderTopLeftRadius:o,borderBottomRightRadius:o,borderBottomLeftRadius:o,borderRadius:null}):(this.borderTopRightRadius=parseInt(this.borderTopRightRadius||0),this.borderTopLeftRadius=parseInt(this.borderTopLeftRadius||0),this.borderBottomRightRadius=parseInt(this.borderBottomRightRadius||0),this.borderBottomLeftRadius=parseInt(this.borderBottomLeftRadius||0),this.json={borderTopRightRadius:parseInt(this.borderTopRightRadius||0),borderTopLeftRadius:parseInt(this.borderTopLeftRadius||0),borderBottomRightRadius:parseInt(this.borderBottomRightRadius||0),borderBottomLeftRadius:parseInt(this.borderBottomLeftRadius||0),borderRadius:null},this.json[e]=o),this.value=r,this.radiusKey=e;const a=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(a)}resolveIcon(t){let e;switch(t){case"borderTopRightRadius":e="arrowTopRight";break;case"borderTopLeftRadius":e="arrowTopLeft";break;case"borderBottomRightRadius":e="arrowBottomRight";break;case"borderBottomLeftRadius":e="arrowBottomLeft"}return o.qy`<cdtr-icon
673
807
  width="15"
674
808
  height="15"
675
809
  icon="${e}"
676
- ></cdtr-icon>`}onChangeLock(){this.isLocked=!this.isLocked}render(){this.elementId&&this.elementId!==this.lastElementId&&(this.lastElementId=this.elementId,this.isLocked=this.borderTopRightRadius===this.borderTopLeftRadius&&this.borderBottomRightRadius===this.borderBottomLeftRadius&&this.borderTopRightRadius===this.borderBottomLeftRadius);this.onChange;const t=this.onInput;return a.qy`<cdtr-row
810
+ ></cdtr-icon>`}onChangeLock(){this.isLocked=!this.isLocked}render(){this.elementId&&this.elementId!==this.lastElementId&&(this.lastElementId=this.elementId,this.isLocked=this.borderTopRightRadius===this.borderTopLeftRadius&&this.borderBottomRightRadius===this.borderBottomLeftRadius&&this.borderTopRightRadius===this.borderBottomLeftRadius);this.onChange;const t=this.onInput;return o.qy`<cdtr-row
677
811
  alignItems="center"
678
812
  spacing="3px"
679
813
  style="position:relative;"
680
814
  >
681
- ${["borderTopRightRadius","borderTopLeftRadius","borderBottomRightRadius","borderBottomLeftRadius"].map(e=>a.qy`<cdtr-col>
815
+ ${["borderTopRightRadius","borderTopLeftRadius","borderBottomRightRadius","borderBottomLeftRadius"].map(e=>o.qy`<cdtr-col>
682
816
  ${this.resolveIcon(e)}
683
817
  <cdtr-number-input
684
818
  .type=${"number"}
@@ -697,7 +831,7 @@ max-height: 90vh;max-width:500px;"
697
831
  .icon="${this.isLocked?"lock":"unlock"}"
698
832
  ></cdtr-icon>
699
833
  </cdtr-button>
700
- </cdtr-row>`}}tt.properties={value:{type:Number},json:{type:Object},onChange:{type:Function},borderTopRightRadius:{type:Number},borderTopLeftRadius:{type:Number},borderBottomRightRadius:{type:Number},borderBottomLeftRadius:{type:Number},isLocked:{type:Boolean},elementId:{type:String},radiusKey:{type:String}},customElements.define("cdtr-radius-editor",tt);const et=t=>a.qy` <cdtr-editor-container>
834
+ </cdtr-row>`}}tt.properties={value:{type:Number},json:{type:Object},onChange:{type:Function},borderTopRightRadius:{type:Number},borderTopLeftRadius:{type:Number},borderBottomRightRadius:{type:Number},borderBottomLeftRadius:{type:Number},isLocked:{type:Boolean},elementId:{type:String},radiusKey:{type:String}},customElements.define("cdtr-radius-editor",tt);const et=t=>o.qy` <cdtr-editor-container>
701
835
  <cdtr-row>
702
836
  <cdtr-title><lang-text text="${t.title}"></lang-text></cdtr-title>
703
837
  </cdtr-row>
@@ -710,7 +844,7 @@ max-height: 90vh;max-width:500px;"
710
844
  .borderBottomRightRadius=${t.borderBottomRightRadius||t.value||0}
711
845
  .borderBottomLeftRadius=${t.borderBottomLeftRadius||t.value||0}
712
846
  ></cdtr-radius-editor>
713
- </cdtr-editor-container>`,rt=t=>a.qy` <cdtr-editor-container>
847
+ </cdtr-editor-container>`,rt=t=>o.qy` <cdtr-editor-container>
714
848
  <cdtr-title class="dir-lang"
715
849
  ><lang-text text="choose_your_duo_date"></lang-text
716
850
  ></cdtr-title>
@@ -718,53 +852,53 @@ max-height: 90vh;max-width:500px;"
718
852
  @change=${t.onChange}
719
853
  .value="${t.value}"
720
854
  ></cdtr-datetimepicker>
721
- </cdtr-editor-container>`,at=t=>{let e="";return t.bgColor&&(e+=`background:${t.bgColor};`),t.color&&(e+=`color:${t.color};`),a.qy` <cdtr-editor-container>
855
+ </cdtr-editor-container>`,ot=t=>{let e="";return t.bgColor&&(e+=`background:${t.bgColor};`),t.color&&(e+=`color:${t.color};`),o.qy` <cdtr-editor-container>
722
856
  <paper-button fullwidth style=${e} @click=${t.onClick}
723
- ><lang-text text="${t.text}"></lang-text>${t.icon?a.qy`${" "}<cdtr-icon
857
+ ><lang-text text="${t.text}"></lang-text>${t.icon?o.qy`${" "}<cdtr-icon
724
858
  style="margin-right:5px;display:block;font-size:12px;"
725
859
  width="15px"
726
860
  color="${t.color}"
727
861
  icon=${t.icon}
728
862
  ></cdtr-icon>`:null}</paper-button
729
863
  >
730
- </cdtr-editor-container>`},ot=t=>a.qy` <cdtr-editor-container>
864
+ </cdtr-editor-container>`},at=t=>o.qy` <cdtr-editor-container>
731
865
  <cdtr-title><lang-text text="${t.title}"></lang-text></cdtr-title>
732
866
  <cdtr-merge-tags></cdtr-merge-tags>
733
- </cdtr-editor-container>`;r(58691);var it=r(86959);const nt=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{const r=await fetch((0,it.Ay)()?"http://localhost:8000/api/v1/prompt/image":"https://agent.creaditor.ai/api/v1/prompt/image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:t,options:{size:e.size||"1024x1024",quality:e.quality||"standard",style:e.style||"vivid",context:e.context||""}})});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const a=await r.json();return{status:a.status||"complete",image:a.image,metadata:{prompt:a.metadata?.prompt||t,size:a.metadata?.size||e.size||"1024x1024",quality:a.metadata?.quality||e.quality||"standard",style:a.metadata?.style||e.style||"vivid",fal_ai_result:a.metadata?.fal_ai_result||a}}}catch(t){throw console.error("Error generating image:",t),t}};var st=r(13681);class lt extends a.WF{constructor(){super(),this.generatedImage=localStorage.getItem("lastGeneratedImage")||"",this.isGenerating=!1}handleInsertImage(t){const e=t.startsWith("data:")||!t.startsWith("http");st.vP.dispatch("on:upload-file",{image:t,type:e?"base64":"url"})}async handleGenerateImage(t,e){try{this.isGenerating=!0,this.requestUpdate();const r=l.Ay.getSelectedComponent(),a=r[0].closest("section"),o=a?.element,i=o?o.innerText:"",n=i.length>500?i.slice(-500):i;e.context=n;const s=await nt(t,e);return this.generatedImage=s.image,localStorage.setItem("lastGeneratedImage",s.image),this.isGenerating=!1,this.requestUpdate(),s}catch(t){throw this.isGenerating=!1,this.requestUpdate(),console.error("Failed to generate image:",t),t}}render(){return a.qy` <cdtr-editor-container>
867
+ </cdtr-editor-container>`;r(58691);var it=r(86959);const nt=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{const r=await fetch((0,it.Ay)()?"http://localhost:8000/api/v1/prompt/image":"https://agent.creaditor.ai/api/v1/prompt/image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:t,options:{size:e.size||"1024x1024",quality:e.quality||"standard",style:e.style||"vivid",context:e.context||""}})});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const o=await r.json();return{status:o.status||"complete",image:o.image,metadata:{prompt:o.metadata?.prompt||t,size:o.metadata?.size||e.size||"1024x1024",quality:o.metadata?.quality||e.quality||"standard",style:o.metadata?.style||e.style||"vivid",fal_ai_result:o.metadata?.fal_ai_result||o}}}catch(t){throw console.error("Error generating image:",t),t}};var st=r(13681);class lt extends o.WF{constructor(){super(),this.generatedImage=localStorage.getItem("lastGeneratedImage")||"",this.isGenerating=!1}handleInsertImage(t){const e=t.startsWith("data:")||!t.startsWith("http");st.vP.dispatch("on:upload-file",{image:t,type:e?"base64":"url"})}async handleGenerateImage(t,e){try{this.isGenerating=!0,this.requestUpdate();const r=l.Ay.getSelectedComponent(),o=r[0].closest("section"),a=o?.element,i=a?a.innerText:"",n=i.length>500?i.slice(-500):i;e.context=n;const s=await nt(t,e);return this.generatedImage=s.image,localStorage.setItem("lastGeneratedImage",s.image),this.isGenerating=!1,this.requestUpdate(),s}catch(t){throw this.isGenerating=!1,this.requestUpdate(),console.error("Failed to generate image:",t),t}}render(){return o.qy` <cdtr-editor-container>
734
868
  <cdtr-image-prompt-editor
735
869
  @insert-image=${t=>this.handleInsertImage(t.detail.imageUrl)}
736
870
  .generatedImage=${this.generatedImage}
737
871
  .isLoading=${this.isGenerating}
738
872
  @generate-image=${t=>this.handleGenerateImage(t.detail.prompt,t.detail.options)}
739
873
  ></cdtr-image-prompt-editor>
740
- </cdtr-editor-container>`}}lt.properties={generatedImage:{type:String},isGenerating:{type:Boolean}},customElements.define("cdtr-image-prompt-builder",lt);const dt="https://img.creaditor.ai",ct="creaditor_giphy_last_search";class pt extends a.WF{constructor(){super(),this.selectedSrc="",this.searchTerm="",this._gifs=[],this._loading=!1,this._searchDebounce=null}connectedCallback(){super.connectedCallback();const t=this._getLastSearch();t&&t.trim()?(this.searchTerm=t,this._doSearch()):this._loadTrending()}_getLastSearch(){try{return sessionStorage.getItem(ct)||""}catch{return""}}_setLastSearch(t){try{t&&t.trim()?sessionStorage.setItem(ct,t.trim()):sessionStorage.removeItem(ct)}catch{}}render(){return a.qy`
874
+ </cdtr-editor-container>`}}lt.properties={generatedImage:{type:String},isGenerating:{type:Boolean}},customElements.define("cdtr-image-prompt-builder",lt);const dt="https://img.creaditor.ai",ct="creaditor_giphy_last_search";class pt extends o.WF{constructor(){super(),this.selectedSrc="",this.searchTerm="",this._gifs=[],this._loading=!1,this._searchDebounce=null}connectedCallback(){super.connectedCallback();const t=this._getLastSearch();t&&t.trim()?(this.searchTerm=t,this._doSearch()):this._loadTrending()}_getLastSearch(){try{return sessionStorage.getItem(ct)||""}catch{return""}}_setLastSearch(t){try{t&&t.trim()?sessionStorage.setItem(ct,t.trim()):sessionStorage.removeItem(ct)}catch{}}render(){return o.qy`
741
875
  <div class="picker-container">
742
876
  <div class="search-row">
743
877
  <input
744
878
  type="search"
745
879
  class="search-input"
746
- placeholder=${o.M.get("lang","giphy_search_placeholder")||"Search GIFs (e.g. happy, celebration…)"}
880
+ placeholder=${a.M.get("lang","giphy_search_placeholder")||"Search GIFs (e.g. happy, celebration…)"}
747
881
  .value=${this.searchTerm}
748
882
  @input=${this._handleSearchInput}
749
883
  @keydown=${t=>"Enter"===t.key&&this._doSearch()}
750
884
  />
751
885
  <button class="search-btn" @click=${()=>this._doSearch()}><lang-text text="search"></lang-text></button>
752
- <button class="random-btn" @click=${this._loadRandom} title=${o.M.get("lang","giphy_random_title")||"Random GIF"}>🎲</button>
886
+ <button class="random-btn" @click=${this._loadRandom} title=${a.M.get("lang","giphy_random_title")||"Random GIF"}>🎲</button>
753
887
  </div>
754
888
 
755
889
  <div class="gallery-grid">
756
- ${this._loading?a.qy`<div class="loading"><lang-text text="loading"></lang-text></div>`:0===this._gifs.length?a.qy`<div class="no-results"><lang-text text="${this._getEmptyMessageKey()}"></lang-text></div>`:this._gifs.map(t=>this._renderGifItem(t))}
890
+ ${this._loading?o.qy`<div class="loading"><lang-text text="loading"></lang-text></div>`:0===this._gifs.length?o.qy`<div class="no-results"><lang-text text="${this._getEmptyMessageKey()}"></lang-text></div>`:this._gifs.map(t=>this._renderGifItem(t))}
757
891
  </div>
758
892
  </div>
759
- `}_getEmptyMessageKey(){return this.searchTerm.trim()?"giphy_no_results":"giphy_no_available"}_renderGifItem(t){const e=function(t){return"string"==typeof t?t:t?.images.fixed_height.url||t?.images?.fixed_height?.url?t.images.fixed_height.url:t?.images?.fixed_height_small?.webp?t.images.fixed_height_small.url:t?.images?.original?.webp?t.images.original.url:t?.images?.downsized?.webp?t.images.downsized.url:null}(t);if(!e)return null;const r=function(t){return"string"==typeof t?"GIF":t?.title||t?.slug||"GIF"}(t),o=this.selectedSrc===e;return a.qy`
893
+ `}_getEmptyMessageKey(){return this.searchTerm.trim()?"giphy_no_results":"giphy_no_available"}_renderGifItem(t){const e=function(t){return"string"==typeof t?t:t?.images.fixed_height.url||t?.images?.fixed_height?.url?t.images.fixed_height.url:t?.images?.fixed_height_small?.webp?t.images.fixed_height_small.url:t?.images?.original?.webp?t.images.original.url:t?.images?.downsized?.webp?t.images.downsized.url:null}(t);if(!e)return null;const r=function(t){return"string"==typeof t?"GIF":t?.title||t?.slug||"GIF"}(t),a=this.selectedSrc===e;return o.qy`
760
894
  <div
761
- class="gif-item ${o?"selected":""}"
895
+ class="gif-item ${a?"selected":""}"
762
896
  @click=${()=>this._selectGif(e,r)}
763
897
  title="${r}"
764
898
  >
765
899
  <img src="${e}" alt="${r}" loading="lazy" />
766
900
  </div>
767
- `}_handleSearchInput(t){this.searchTerm=t.target.value,this._searchDebounce&&clearTimeout(this._searchDebounce);if(!this.searchTerm.trim())return this._loadTrending(),void this._setLastSearch("");this._searchDebounce=setTimeout(()=>this._doSearch(),400)}async _doSearch(){const t=this.searchTerm.trim();if(t){this._loading=!0,this._gifs=[];try{const e=await fetch(`${dt}/giphy/search?${new URLSearchParams({q:t,limit:20})}`);if(!e.ok)throw new Error(e.statusText);const r=await e.json();this._gifs=this._normalizeResponse(r),this._setLastSearch(t)}catch(t){console.warn("Giphy search failed:",t),this._gifs=[]}finally{this._loading=!1}}else this._loadTrending()}async _loadTrending(){this._loading=!0,this._gifs=[];try{const t=await fetch(`${dt}/giphy/trending?limit=20`);if(!t.ok)throw new Error(t.statusText);const e=await t.json();this._gifs=this._normalizeResponse(e)}catch(t){console.warn("Giphy trending failed:",t),this._gifs=[]}finally{this._loading=!1}}async _loadRandom(){this._loading=!0,this._gifs=[];try{const t=this.searchTerm.trim()||"fun",e=await fetch(`${dt}/giphy/random?${new URLSearchParams({tag:t})}`);if(!e.ok)throw new Error(e.statusText);const r=await e.json(),a=this._normalizeResponse(r);this._gifs=Array.isArray(a)?a:a?[a]:[]}catch(t){console.warn("Giphy random failed:",t),this._gifs=[]}finally{this._loading=!1}}_normalizeResponse(t){return Array.isArray(t)?t:t?.data&&Array.isArray(t.data)?t.data:t?.data&&"object"==typeof t.data?[t.data]:[]}_selectGif(t,e){this.selectedSrc=t,this.dispatchEvent(new CustomEvent("gif-selected",{detail:{src:t,alt:e},bubbles:!0,composed:!0}))}}pt.properties={selectedSrc:{type:String},searchTerm:{type:String},_gifs:{type:Array,state:!0},_loading:{type:Boolean,state:!0},_searchDebounce:{type:Object,state:!0}},pt.styles=a.AH`
901
+ `}_handleSearchInput(t){this.searchTerm=t.target.value,this._searchDebounce&&clearTimeout(this._searchDebounce);if(!this.searchTerm.trim())return this._loadTrending(),void this._setLastSearch("");this._searchDebounce=setTimeout(()=>this._doSearch(),400)}async _doSearch(){const t=this.searchTerm.trim();if(t){this._loading=!0,this._gifs=[];try{const e=await fetch(`${dt}/giphy/search?${new URLSearchParams({q:t,limit:20})}`);if(!e.ok)throw new Error(e.statusText);const r=await e.json();this._gifs=this._normalizeResponse(r),this._setLastSearch(t)}catch(t){console.warn("Giphy search failed:",t),this._gifs=[]}finally{this._loading=!1}}else this._loadTrending()}async _loadTrending(){this._loading=!0,this._gifs=[];try{const t=await fetch(`${dt}/giphy/trending?limit=20`);if(!t.ok)throw new Error(t.statusText);const e=await t.json();this._gifs=this._normalizeResponse(e)}catch(t){console.warn("Giphy trending failed:",t),this._gifs=[]}finally{this._loading=!1}}async _loadRandom(){this._loading=!0,this._gifs=[];try{const t=this.searchTerm.trim()||"fun",e=await fetch(`${dt}/giphy/random?${new URLSearchParams({tag:t})}`);if(!e.ok)throw new Error(e.statusText);const r=await e.json(),o=this._normalizeResponse(r);this._gifs=Array.isArray(o)?o:o?[o]:[]}catch(t){console.warn("Giphy random failed:",t),this._gifs=[]}finally{this._loading=!1}}_normalizeResponse(t){return Array.isArray(t)?t:t?.data&&Array.isArray(t.data)?t.data:t?.data&&"object"==typeof t.data?[t.data]:[]}_selectGif(t,e){this.selectedSrc=t,this.dispatchEvent(new CustomEvent("gif-selected",{detail:{src:t,alt:e},bubbles:!0,composed:!0}))}}pt.properties={selectedSrc:{type:String},searchTerm:{type:String},_gifs:{type:Array,state:!0},_loading:{type:Boolean,state:!0},_searchDebounce:{type:Object,state:!0}},pt.styles=o.AH`
768
902
  :host {
769
903
  display: block;
770
904
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
@@ -875,7 +1009,7 @@ max-height: 90vh;max-width:500px;"
875
1009
  color: #666;
876
1010
  grid-column: 1 / -1;
877
1011
  }
878
- `,customElements.define("giphy-picker",pt);const ht=t=>a.qy`<cdtr-editor-container>
1012
+ `,customElements.define("giphy-picker",pt);const ht=t=>o.qy`<cdtr-editor-container>
879
1013
  <cdtr-col sm="12">
880
1014
  <cdtr-title style="display:block" class="align-lang"
881
1015
  ><lang-text text="${t.title||"spacing"}"></lang-text
@@ -896,17 +1030,17 @@ max-height: 90vh;max-width:500px;"
896
1030
  .hasBottom=${t.hasBottom||!0}
897
1031
  ></cdtr-spacing>
898
1032
  </cdtr-row>
899
- </cdtr-editor-container>`,gt=t=>a.qy`
1033
+ </cdtr-editor-container>`;var gt=r(12258),ut=r(40648),xt=r(15155);const mt=t=>o.qy`
900
1034
  <cdtr-editor-container pt="0">
901
1035
  <cdtr-row style="padding:0.7rem 0px;" justify="${t.justify||"center"}" alignItems="center">
902
- ${t.src&&t.hasPreview?a.qy`
1036
+ ${t.src&&t.hasPreview?o.qy`
903
1037
  <div style="position: relative; width: 100%; margin-bottom: 10px; border: 1px solid #eee; border-radius: 4px; overflow: hidden;">
904
1038
  <img
905
1039
  src="${t.src}"
906
1040
  style="width: 100%; height: 120px; object-fit: cover; display: block;"
907
1041
  onerror="this.style.display='none'"
908
1042
  />
909
- ${t.isDeletable?a.qy`
1043
+ ${t.isDeletable?o.qy`
910
1044
  <paper-button
911
1045
  style="position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.5); color: white; padding: 4px 8px; min-width: auto;"
912
1046
  @click=${e=>{e.stopPropagation(),"function"==typeof t.onDelete&&t.onDelete(e)}}
@@ -916,14 +1050,14 @@ max-height: 90vh;max-width:500px;"
916
1050
  `:""}
917
1051
  </div>
918
1052
  `:""}
919
- <paper-button @click=${t=>{const e=t.currentTarget;if(e){const r=t.target.parentElement?.closest("cdtr-gallery");if(r)return;const a=e.parentElement?.querySelector("cdtr-gallery");a&&(a.opened&&(a.opened=!1),setTimeout(()=>{a.opened=!0},100))}}} style="margin-top:10px;width:100%;background:var(--primary);color:${t.buttonProps?.color||"var(--primary-text)"};"><lang-text text="${t.text||"gallery"}" ></lang-text>
1053
+ <paper-button @click=${t=>{const e=t.currentTarget;if(e){const r=t.target.parentElement?.closest("cdtr-gallery");if(r)return;const o=e.parentElement?.querySelector("cdtr-gallery");o&&(o.opened&&(o.opened=!1),setTimeout(()=>{o.opened=!0},100))}}} style="margin-top:10px;width:100%;background:var(--primary);color:${t.buttonProps?.color||"var(--primary-text)"};"><lang-text text="${t.text||"gallery"}" ></lang-text>
920
1054
  </paper-button>
921
1055
  <cdtr-gallery
922
1056
  @close=${e=>{e.opened=!1,"function"==typeof t.close&&t.close(e)}}
923
1057
  .opened=${t.opened}
924
1058
  @file=${e=>{e.target.opened=!1,"function"==typeof t.onChange&&t.onChange(e)}}
925
1059
  ></cdtr-gallery>
926
- ${t.hasInput?a.qy`
1060
+ ${t.hasInput?o.qy`
927
1061
  <cdtr-input placeholder="https://...png,jpg,jpeg,gif,svg"
928
1062
  .value=${t.src}
929
1063
  fullWidth
@@ -933,32 +1067,47 @@ max-height: 90vh;max-width:500px;"
933
1067
  `:null}
934
1068
  </cdtr-row>
935
1069
  </cdtr-editor-container>
936
- `;r.e(4217).then(r.bind(r,94217));r(45888);Promise.resolve().then(r.bind(r,58691));class ut extends a.WF{constructor(){super(),this.editor={},this.tabName="",this.factory=this.factory.bind(this),this.execCommandWrapper=this.execCommandWrapper.bind(this),this.connectWith=this.connectWith.bind(this),this.changeTab=this.changeTab.bind(this),this.$select=this.$select.bind(this),this.$update=this.$update.bind(this),this.handleJustifyContent=this.handleJustifyContent.bind(this),this.handleAlignItems=this.handleAlignItems.bind(this)}$select(){this.editor&&this.editor.select&&this.editor.select({changeTab:this.changeTab,tab:this.tabName}),this.connectWith("select")}$update(){this.connectWith("update")}connectedCallback(){super.connectedCallback(),l.Ay.on("update",this.$update),l.Ay.on("select",this.$select),this.connectWith("load")}disconnectedCallback(){super.disconnectedCallback(),l.Ay.off("update",this.$update),l.Ay.off("select",this.$select)}connectWith(){const t=new UIEvent(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t);const e=l.Ay.components.find(t=>t.type===this.type);e&&(this.component={...e},this.props=e.props,this.editor=e.createEditor(this.commandsBuilder()))}factory(t,e){if("function"==typeof t&&(t=t()),t.debug,"boolean"==typeof t.active&&!t.active)return null;if("function"==typeof t.active){if(!1===t.active())return null}const r=t.type;switch(r){case"background":return gt(t);case"datetime":return rt(t);case"radius":return et(t);case"justifyContent":case"alignItems":return Q(t,r);case"node":case"lit":case"custom":return t.node();case"button":return at(t);case"borderpicker":return Z(t);case"linkpicker":return X(t);case"input":return n(t);case"dropdown":return s(t);case"fontSize":return c(t);case"fontFamily":return d(t);case"mergeTags":return ot(t);case"boxShadow":return M(t);case"colorpicker":return C(t);case"slider":return H(t);case"divider":return k(t);case"heading":return _(t);case"option":return V(t);case"checkbox":return A(t);case"stringListBuilder":return q(t);case"chipsInput":return T(t);case"typography":return P(t);case"icons":return a.qy`<icons-gallery
1070
+ `;r.e(4217).then(r.bind(r,94217));r(45888);Promise.resolve().then(r.bind(r,58691));class vt extends o.WF{constructor(){super(),this.editor={},this.tabName="",this.factory=this.factory.bind(this),this.execCommandWrapper=this.execCommandWrapper.bind(this),this.connectWith=this.connectWith.bind(this),this.changeTab=this.changeTab.bind(this),this.$select=this.$select.bind(this),this.$update=this.$update.bind(this),this.handleJustifyContent=this.handleJustifyContent.bind(this),this.handleAlignItems=this.handleAlignItems.bind(this),this._onToggleAll=this._onToggleAll.bind(this),this._sectionsExpanded=!1}$select(){this.editor&&this.editor.select&&this.editor.select({changeTab:this.changeTab,tab:this.tabName}),this.connectWith("select")}$update(){this.connectWith("update")}_onToggleAll(){this._sectionsExpanded=!this._sectionsExpanded,this.querySelectorAll("cdtr-editor-section").forEach(t=>{t.open=this._sectionsExpanded,(0,ut.Q)(t.persistKey,t.open)})}_sectionScope(){return`${this.type||""}:${this.tabName||""}`}_applyPersistedOpen(t){const e=this._sectionScope();for(const r of t)if(r&&"section"===r.type){r.persistKey=`${e}::${r.label}`;const t=(0,ut.i)(r.persistKey);void 0!==t&&(r.open=t)}return t}connectedCallback(){super.connectedCallback(),l.Ay.on("update",this.$update),l.Ay.on("select",this.$select),this.addEventListener("toggle-all-sections",this._onToggleAll),this.connectWith("load")}disconnectedCallback(){super.disconnectedCallback(),l.Ay.off("update",this.$update),l.Ay.off("select",this.$select),this.removeEventListener("toggle-all-sections",this._onToggleAll)}connectWith(){const t=new UIEvent(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t);const e=l.Ay.components.find(t=>t.type===this.type);e&&(this.component={...e},this.props=e.props,this.editor=e.createEditor(this.commandsBuilder()))}factory(t,e){if("function"==typeof t&&(t=t()),t.debug,"boolean"==typeof t.active&&!t.active)return null;if("function"==typeof t.active){if(!1===t.active())return null}const r=t.type;switch(r){case"background":return mt(t);case"datetime":return rt(t);case"radius":return et(t);case"justifyContent":case"alignItems":return Q(t,r);case"node":case"lit":case"custom":return t.node();case"button":return ot(t);case"borderpicker":return Z(t);case"linkpicker":return X(t);case"input":return n(t);case"dropdown":return s(t);case"fontSize":return c(t);case"fontFamily":return d(t);case"mergeTags":return at(t);case"boxShadow":return L(t);case"colorpicker":return M(t);case"slider":return C(t);case"divider":return H(t);case"heading":return I(t);case"option":return A(t);case"checkbox":return q(t);case"stringListBuilder":return V(t);case"chipsInput":return T(t);case"typography":return P(t);case"icons":return o.qy`<icons-gallery
937
1071
  .selectedIcon=${t.selectedIcon}
938
1072
  .useIconsApi=${!0===t.useIconsApi}
939
1073
  .iconColor=${t.iconColor??"000000"}
940
1074
  .iconSize=${"number"==typeof t.iconSize?t.iconSize:24}
941
1075
  @icon-selected=${t.onChange}
942
- ></icons-gallery>`;case"info":return U(t);case"svgpicker":return G(t);case"gallery":return"ai-edit"===o.M.get("config","mode")?null:D(t);case"giphy":return a.qy`<giphy-picker
1076
+ ></icons-gallery>`;case"info":return O(t);case"svgpicker":return G(t);case"gallery":return"ai-edit"===a.M.get("config","mode")?null:D(t);case"giphy":return o.qy`<giphy-picker
943
1077
  .selectedSrc=${t.selectedSrc||""}
944
1078
  @gif-selected=${t.onChange}
945
- ></giphy-picker>`;case"table":return J(t);case"accordion":return a.qy`<cdtr-accordion-item
1079
+ ></giphy-picker>`;case"table":return K(t);case"accordion":return o.qy`<cdtr-accordion-item
946
1080
  .onToggle=${t.onToggle}
947
1081
  .label="${t.label}"
948
1082
  .isOpen=${t.isOpen}
949
1083
  >
950
1084
  ${t.children.map(t=>this.factory(t))}
951
- </cdtr-accordion-item>`;case"imagePrompt":return document.createElement("cdtr-image-prompt-builder");case"spacingPicker":return ht(t)}}execCommandWrapper(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.components=[this.component],l.Ay.store().execCommand(t,e,r)}commandsBuilder(){return{tab:this.tabName,helpers:{Url:B.A,deepMerge:W()},commands:{execCommand:this.execCommandWrapper,injectEditor:o.M.get("injectEditor")}}}changeTab(t){this.tabName=t,this.editor=this.component.createEditor(this.commandsBuilder())}getColElementData(t){const e=t[0]?.closest("col");return e?{colElement:e,justifyValue:e.props.justify,alignItemsValue:e.props.alignItems,colElementRect:e.element.getBoundingClientRect()}:null}shouldShowDesignControls(t,e){const r=t[0]?.element.getBoundingClientRect(),a=t[0]?.type,o=e.find(t=>t.selected)?.text;let i=("design"===o||void 0===o)&&!["root","section","block","row","col"].includes(a);const n=this.getColElementData(t);return n&&n.colElementRect.width===r.width&&(i=!1),i}handleJustifyContent(t){const e=t.target.value,r=l.Ay.getSelectedComponent(),a=r[0]?.closest("col");a&&l.Ay.store().execCommand("justify",e,{find:"col"})}handleAlignItems(t){const e=t.target.value,r=l.Ay.getSelectedComponent(),a=r[0]?.closest("col");a&&l.Ay.store().execCommand("alignItems",e,{find:"col"})}renderJustifyAlignControls(t){return t?a.qy`${Q({value:t.justifyValue,onChange:this.handleJustifyContent})}
952
- ${Q({value:t.alignItemsValue,type:"alignItems",title:"alignItems",onChange:this.handleAlignItems})}`:null}createRenderRoot(){return this}render(){if(!this.editor)return;const t=l.Ay.getSelectedComponent(),e=this.editor?.tabs(this.tabName),r=this.getColElementData(t),o=this.shouldShowDesignControls(t,e);return a.qy`<cdtr-editor-tabs
1085
+ </cdtr-accordion-item>`;case"imagePrompt":return document.createElement("cdtr-image-prompt-builder");case"spacingPicker":return ht(t);case"section":return(0,gt.A)(t,(t.children||[]).map((t,e)=>this.factory(t,e)));case"colorSwatchGroup":return(0,xt.A)(t)}}execCommandWrapper(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.components=[this.component],l.Ay.store().execCommand(t,e,r)}commandsBuilder(){return{tab:this.tabName,helpers:{Url:B.A,deepMerge:W()},commands:{execCommand:this.execCommandWrapper,injectEditor:a.M.get("injectEditor")}}}changeTab(t){this.tabName=t,this.editor=this.component.createEditor(this.commandsBuilder())}getColElementData(t){const e=t[0]?.closest("col");return e?{colElement:e,justifyValue:e.props.justify,alignItemsValue:e.props.alignItems,colElementRect:e.element.getBoundingClientRect()}:null}shouldShowDesignControls(t,e){const r=t[0]?.element.getBoundingClientRect(),o=t[0]?.type,a=e.find(t=>t.selected)?.text;let i=("design"===a||void 0===a)&&!["root","section","block","row","col"].includes(o);const n=this.getColElementData(t);return n&&n.colElementRect.width===r.width&&(i=!1),i}handleJustifyContent(t){const e=t.target.value,r=l.Ay.getSelectedComponent(),o=r[0]?.closest("col");o&&l.Ay.store().execCommand("justify",e,{find:"col"})}handleAlignItems(t){const e=t.target.value,r=l.Ay.getSelectedComponent(),o=r[0]?.closest("col");o&&l.Ay.store().execCommand("alignItems",e,{find:"col"})}renderJustifyAlignControls(t){return t?(0,gt.A)({label:"alignment",open:!1},[Q({value:t.justifyValue,onChange:this.handleJustifyContent}),Q({value:t.alignItemsValue,type:"alignItems",title:"alignItems",onChange:this.handleAlignItems})]):null}preprocessLayout(t){if(!t||0===t.length)return t;if(t.some(t=>t&&"section"===t.type))return this._applyPersistedOpen(t);t=t.filter(t=>!!t&&("boolean"==typeof t.active?t.active:"function"!=typeof t.active||!1!==t.active()));const e=[];let r=[];for(const o of t)o&&("function"!=typeof o?"divider"===o.type?(r.length>0&&e.push(r),r=[]):"heading"===o.type?(r.length>0&&e.push(r),r=[o]):r.push(o):r.push(o));r.length>0&&e.push(r);const o=[];let a=0;for(let t=0;t<e.length;t++){const r=e[t];if(r[0]&&"heading"===r[0].type){const t=r[0].text||"settings",e=r.slice(1);e.length>0&&(a++,o.push({type:"section",label:t,open:!0,children:e}))}else o.push(...r)}if(a>=4)for(const t of o)"section"===t.type&&(t.open=!1);return this._applyPersistedOpen(o)}createRenderRoot(){return this}render(){if(!this.editor)return;if("function"!=typeof this.editor.tabs)return;const t=l.Ay.getSelectedComponent(),e=this.editor?.tabs(this.tabName),r=this.getColElementData(t),a=this.shouldShowDesignControls(t,e),i=this.preprocessLayout(this.editor.layout({tabs:e,tab:e.find(t=>t.selected)||{text:"design"},changeTab:this.changeTab})),n=i.filter(t=>t&&"section"===t.type).length>=3;return o.qy`<cdtr-editor-tabs
953
1086
  .value=${this.tabName}
954
1087
  @tabChanged=${t=>this.changeTab(t.target.value)}
955
1088
  .tabs=${e}
956
1089
  >
957
1090
  <div slot="content">
958
- ${this.editor.layout({tabs:e,tab:e.find(t=>t.selected)||{text:"design"},changeTab:this.changeTab}).map(this.factory)}
959
- ${o?this.renderJustifyAlignControls(r):null}
1091
+ ${n?o.qy`
1092
+ <div style="display:flex;justify-content:flex-start;padding:4px 16px 4px;">
1093
+ <span
1094
+ @click=${()=>this._onToggleAll()}
1095
+ @mouseover=${t=>{t.currentTarget.style.color="#333",t.currentTarget.style.textDecoration="underline"}}
1096
+ @mouseout=${t=>{t.currentTarget.style.color="#555",t.currentTarget.style.textDecoration="none"}}
1097
+ style="display:inline-flex;align-items:center;gap:3px;font-size:12px;color:#555;cursor:pointer;font-family:inherit;"
1098
+ >
1099
+ <lang-text text=${this._sectionsExpanded?"collapse_all":"expand_all"}></lang-text>
1100
+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1101
+ <polyline points="7 8 12 3 17 8"></polyline>
1102
+ <polyline points="7 16 12 21 17 16"></polyline>
1103
+ </svg>
1104
+ </span>
1105
+ </div>
1106
+ `:null}
1107
+ ${i.map(this.factory)}
1108
+ ${a?this.renderJustifyAlignControls(r):null}
960
1109
  </div>
961
- </cdtr-editor-tabs> `}}ut.styles=a.AH`
1110
+ </cdtr-editor-tabs> `}}vt.styles=o.AH`
962
1111
  [disabled] {
963
1112
  opacity: 0.3;
964
1113
  pointer-events: none;
@@ -971,7 +1120,7 @@ max-height: 90vh;max-width:500px;"
971
1120
  background: BLACK;
972
1121
  color: #fff;
973
1122
  }
974
- `,ut.properties={type:{type:String},editor:{},tabName:{type:String},tabs:{type:Array}},customElements.define("cdtr-editor-builder",ut)},92384(t,e,r){r.r(e),r.d(e,{FONT_WEIGHTS:()=>n,FontFamilyEditor:()=>s});var a=r(59929),o=r(40120),i=r(86319);const n=[{name:"Thin",value:100},{name:"Light",value:300},{name:"Regular",value:400},{name:"Medium",value:500},{name:"SemiBold",value:600},{name:"Bold",value:700},{name:"Black",value:900}];class s extends a.WF{constructor(){super(),this.onchangeFontWeight=t=>{const e=parseInt(t.target.value,10);Number.isNaN(e)||(this.weight=e,this.dispatchEvent(new CustomEvent("weightchange",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}})))},this.onchangeFontFamily=t=>{const e=t.target.value,r=this.fontFamilies.find(t=>t.name===e);if(!r)return void console.error("cant set font family, font family not founded..");(0,o.sw)(r),this.value=r.cssRule,this.name=e;const a=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(a)},this.onFilteredFonts=t=>{const e=t.target.value;this.filteredFonts=this.fontFamilies.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))},this.filteredFonts=[],this.fontFamilies=[],this.showWeight=!1}connectedCallback(){super.connectedCallback();const t=i.M.get("config","editor","configure","editorProps","fonts"),e=Array.isArray(t)?t:[];this.filteredFonts=this.fontFamilies=e,e.forEach(t=>{t&&t.url&&t.id&&function(t){if(document.getElementById(t.id))return;const e=document.createElement("link");e.href=t.url,e.id=t.id,e.setAttribute("data-name",t.name),e.rel="stylesheet",e.type="text/css",document.head.appendChild(e)}(t)})}disconnectedCallback(){super.disconnectedCallback()}render(){const t=this.fontFamilies.find(t=>"string"==typeof t?.cssRule&&(-1!==t.cssRule.indexOf(this.value||"")||-1!==t.cssRule.indexOf(this.name||"")));t&&(this.name=t.name);const e=a.qy`<cdtr-dropdown
1123
+ `,vt.properties={type:{type:String},editor:{},tabName:{type:String},tabs:{type:Array},_sectionsExpanded:{type:Boolean,state:!0}},customElements.define("cdtr-editor-builder",vt)},40648(t,e,r){r.d(e,{Q:()=>n,i:()=>i});const o="cdtr:section-open";function a(){try{const t=localStorage.getItem(o);return t?JSON.parse(t):{}}catch(t){return{}}}function i(t){if(!t)return;const e=a();return Object.prototype.hasOwnProperty.call(e,t)?!!e[t]:void 0}function n(t,e){if(!t)return;const r=a();r[t]=!!e,function(t){try{localStorage.setItem(o,JSON.stringify(t))}catch(t){}}(r)}},92384(t,e,r){r.r(e),r.d(e,{FONT_WEIGHTS:()=>n,FontFamilyEditor:()=>s});var o=r(59929),a=r(40120),i=r(86319);const n=[{name:"Thin",value:100},{name:"Light",value:300},{name:"Regular",value:400},{name:"Medium",value:500},{name:"SemiBold",value:600},{name:"Bold",value:700},{name:"Black",value:900}];class s extends o.WF{constructor(){super(),this.onchangeFontWeight=t=>{const e=parseInt(t.target.value,10);Number.isNaN(e)||(this.weight=e,this.dispatchEvent(new CustomEvent("weightchange",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}})))},this.onchangeFontFamily=t=>{const e=t.target.value,r=this.fontFamilies.find(t=>t.name===e);if(!r)return void console.error("cant set font family, font family not founded..");(0,a.sw)(r),this.value=r.cssRule,this.name=e;const o=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(o)},this.onFilteredFonts=t=>{const e=t.target.value;this.filteredFonts=this.fontFamilies.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))},this.filteredFonts=[],this.fontFamilies=[],this.showWeight=!1}async connectedCallback(){super.connectedCallback();const t=await(0,a.VH)(),e=Array.isArray(t)?t:[];this.filteredFonts=this.fontFamilies=e,e.forEach(t=>{t&&t.url&&t.id&&function(t){if(document.getElementById(t.id))return;const e=document.createElement("link");e.href=t.url,e.id=t.id,e.setAttribute("data-name",t.name),e.rel="stylesheet",e.type="text/css",document.head.appendChild(e)}(t)})}disconnectedCallback(){super.disconnectedCallback()}render(){const t=this.fontFamilies.find(t=>"string"==typeof t?.cssRule&&(-1!==t.cssRule.indexOf(this.value||"")||-1!==t.cssRule.indexOf(this.name||"")));t&&(this.name=t.name);const e=o.qy`<cdtr-dropdown
975
1124
  style="width:100%"
976
1125
  .value="${this.name}"
977
1126
  @change=${this.onchangeFontFamily}
@@ -988,7 +1137,7 @@ max-height: 90vh;max-width:500px;"
988
1137
  @input=${this.onFilteredFonts}
989
1138
  type="search"
990
1139
  ></cdtr-input>
991
- ${this.filteredFonts.map(t=>a.qy`<cdtr-dropdown-item
1140
+ ${this.filteredFonts.map(t=>o.qy`<cdtr-dropdown-item
992
1141
  .focused=${t.name===this.name}
993
1142
  .selected=${t.name===this.name}
994
1143
  value="${t.name}"
@@ -999,12 +1148,9 @@ max-height: 90vh;max-width:500px;"
999
1148
  >${t.name}</span>
1000
1149
  </cdtr-dropdown-item>`)}
1001
1150
  </div>
1002
- </cdtr-dropdown>`,r=a.qy`
1151
+ </cdtr-dropdown>`,r=o.qy`
1003
1152
  <cdtr-editor-container>
1004
1153
  <cdtr-row alignItems="center" justify="space-between">
1005
- <cdtr-title pb="0" style="display:block" class="align-lang"
1006
- ><lang-text text="fontFamily"></lang-text
1007
- ></cdtr-title>
1008
1154
  <cdtr-col sm="12">
1009
1155
  <cdtr-row alignItems="center" justify="flex-end">
1010
1156
  ${e}
@@ -1012,26 +1158,26 @@ max-height: 90vh;max-width:500px;"
1012
1158
  </cdtr-col>
1013
1159
  </cdtr-row>
1014
1160
  </cdtr-editor-container>
1015
- `,o=n.find(t=>String(t.value)===String(this.weight))||n.find(t=>400===t.value),s=a.qy`<cdtr-dropdown
1161
+ `,a=n.find(t=>String(t.value)===String(this.weight))||n.find(t=>400===t.value),s=o.qy`<cdtr-dropdown
1016
1162
  style="width:100%"
1017
- .value="${String(o?.value)}"
1163
+ .value="${String(a?.value)}"
1018
1164
  @change=${this.onchangeFontWeight}
1019
1165
  >
1020
1166
  <cdtr-dropdown-button
1021
1167
  minWidth=${100}
1022
1168
  class="dropdown-button"
1023
1169
  slot="trigger"
1024
- >${o?.value}
1170
+ >${a?.value}
1025
1171
  </cdtr-dropdown-button>
1026
1172
  <div slot="content">
1027
- ${n.map(t=>a.qy`<cdtr-dropdown-item
1028
- .focused=${String(t.value)===String(o?.value)}
1029
- .selected=${String(t.value)===String(o?.value)}
1173
+ ${n.map(t=>o.qy`<cdtr-dropdown-item
1174
+ .focused=${String(t.value)===String(a?.value)}
1175
+ .selected=${String(t.value)===String(a?.value)}
1030
1176
  value="${t.value}"
1031
1177
  ><span style="font-weight:${t.value};">${t.value}</span>
1032
1178
  </cdtr-dropdown-item>`)}
1033
1179
  </div>
1034
- </cdtr-dropdown>`,l=a.qy`
1180
+ </cdtr-dropdown>`,l=o.qy`
1035
1181
  <cdtr-editor-container>
1036
1182
  <cdtr-row alignItems="center" justify="space-between">
1037
1183
  <cdtr-title pb="0" style="display:block" class="align-lang"
@@ -1044,8 +1190,27 @@ max-height: 90vh;max-width:500px;"
1044
1190
  </cdtr-col>
1045
1191
  </cdtr-row>
1046
1192
  </cdtr-editor-container>
1047
- `;return this.light?this.showWeight?a.qy`${e}${s}`:e:this.showWeight?a.qy`${r}${l}`:r}}s.properties={value:{type:String},name:{type:String},fontFamilies:{type:Array},filteredFonts:{type:Array},isOpen:{type:Boolean},light:{type:Boolean},showWeight:{type:Boolean,attribute:!1},weight:{}},s.styles=a.AH`
1193
+ `;return this.light?this.showWeight?o.qy`<div class="toolbar-flat">${e}${s}</div>`:o.qy`<div class="toolbar-flat">${e}</div>`:this.showWeight?o.qy`${r}${l}`:r}}s.properties={value:{type:String},name:{type:String},fontFamilies:{type:Array},filteredFonts:{type:Array},isOpen:{type:Boolean},light:{type:Boolean},showWeight:{type:Boolean,attribute:!1},weight:{}},s.styles=o.AH`
1048
1194
  .dropdown-button {
1049
1195
  min-width: 100px;
1050
1196
  }
1051
- `,customElements.define("cdtr-font-family-editor",s)},74726(t,e,r){function a(t){try{return function(t){const e=t.split(/ (?![^(]*\))/);let r="",a=0,o=0,i=0,n=0,s=!1;for(let t of e)t=t.trim(),"inset"===t?s=!0:t.endsWith("px")||t.endsWith("em")?0===o?o=parseFloat(t):0===a?a=parseFloat(t):0===i?i=parseFloat(t):0===n&&(n=parseFloat(t)):(t.includes("rgb")||t.includes("#"))&&(r=t);return[{color:r,offsetY:a,offsetX:o,blurRadius:i,spreadRadius:n,inset:s}]}(t)}catch(t){console.error(t)}}r.d(e,{A:()=>a})},13681(t,e,r){r.d(e,{vP:()=>c});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 n(t){return crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then(t=>Array.from(new Uint8Array(t)).map(t=>t.toString(16).padStart(2,"0")).join(""))}function s(t){if(t.length%2!=0)throw new Error("Invalid hex string");const e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)e[r/2]=parseInt(t.substr(r,2),16);return e}async function l(t){const e=await n(t),r=o[e];if(r){const t=await crypto.subtle.importKey("raw",s(e),{name:"AES-GCM"},!1,["encrypt","decrypt"]),a=await async function(t,e,r){const a=await crypto.subtle.decrypt({name:"AES-GCM",iv:e},t,r);return(new TextDecoder).decode(a)}(t,r.iv,r.encrypted);return JSON.parse(a)}return null}function d(t,e){if(i[t])for(const r in i[t])Object.prototype.hasOwnProperty.call(i[t],r)&&i[t][r].forEach(t=>t(e));Array.isArray(i["*"])&&i["*"].forEach(t=>t(e))}window.__cdtrEvents=i;const c={set:async function(t,e){const r=JSON.parse(JSON.stringify(e)),a=await n(t),l=await crypto.subtle.importKey("raw",s(a),{name:"AES-GCM"},!1,["encrypt","decrypt"]),c=await async function(t,e){const r=crypto.getRandomValues(new Uint8Array(12)),a=(new TextEncoder).encode(e),o=await crypto.subtle.encrypt({name:"AES-GCM",iv:r},t,a);return{iv:r,encrypted:new Uint8Array(o)}}(l,JSON.stringify(r));o[a]=c,i.set&&i.set[a]&&i.set[a].forEach(t=>t(r)),Array.isArray(i["*"])&&i["*"].forEach(t=>t(r)),d(t,r)},get:l,remove:async function(t){const e=await n(t);delete o[e]},on:async function(t,e,r){i[t]||(i[t]={});const a=await n(e);i[t][a]||(i[t][a]=[]),i[t][a].push(t=>{!function(){const t=(new Error).stack;if(t&&t.indexOf(" at <anonymous>:1")>-1)throw console.warn("Function call blocked: Detected console execution."),new Error("Function call blocked: Detected console execution.")}(),r(t)});const o=await l(e);return o&&r(o),a},off:function(t,e){i[t]&&i[t][e]&&delete i[t][e]},dispatch:d,OPTIONS:{SET:"set"}}},88385(t,e,r){r.d(e,{A:()=>s});const a=t=>!(!t||!t.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)),o=t=>!(!t||!t.replace("-","").match(/^[+]*[(]{0,1}[0-9]{9,9}[)]{0,1}[-\s\./0-9]*$/g)&&!t.match(/[0-9]{3}-[0-9]{3}-[0-9]{4}/));function i(t){const e={},r=/([^&=]+)=?([^&]*)/g,a=t=>{try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t.replace(/\+/g," ")}},o=t.indexOf("?");let i,n=-1!==o?t.substring(o+1):"";for(;null!==(i=r.exec(n));){const t=a(i[1]),r=a(i[2]);t&&(e[t]=r)}return e}function n(t){if(!t)return"";let e=t.replace(/^[^:]+:(?:\/\/)?/,"");return e=e.replace(/^\/+/,""),e=e.split("?")[0],encodeURIComponent(e).replace(/%24/g,"$")}class s{static getProtocol(t){if(!t)return"";const e=t.indexOf(":");return e>0?t.slice(0,e):""}constructor(t,e){if(this.protocol="",this.href="",this.fullHref="",this.target="_self",this.isEmail=!1,this.isPhone=!1,this.isAnchor=!1,this.url="",this.isValid=!0,this.params={},"string"==typeof t?this.href=t:t&&"object"==typeof t&&Object.assign(this,t),/^\[\[[^\]]+\]\]\?/.test(this.href)){const t=this.href;this.isValid=!1,this.protocol=e?.protocol??"",this.isEmail=!1,this.isPhone=!1,this.isAnchor=!1,this.params={...this.params,...e?.params,...i(t)};const r=t.indexOf("?");return this.url=r>-1?t.slice(0,r):t,this.href=t,void(this.fullHref=t)}this.isValid=this.isValidUrl(this.href),this.protocol=e?.protocol??s.getProtocol(this.href);const r=function(t){if(!t)return"";let e=t.replace(/^[^:]+:(?:\/\/)?/,"");return e=e.replace(/^\/+/,""),e=e.split("?")[0],e}(this.href);if(this.isEmail=a(r),this.isPhone=o(r),this.protocol||(this.isEmail?this.protocol="mailto:":this.isPhone?this.protocol="tel:":this.isValid&&(this.protocol="https:")),this.isAnchor=this.href.startsWith("#"),e?.target){if(!["_blank","_self","_parent","_top"].includes(e.target))throw new Error(`Url: invalid target "${e.target}"`);this.target=e.target}this.params={...this.params,...e?.params,...i(this.href)},this.url=n(this.href),this.protocol&&!this.protocol.endsWith(":")&&(this.protocol+=":");const l="http:"===this.protocol||"https:"===this.protocol;this.href=l?`${this.protocol}//${this.url}`:this.protocol+this.url,this.fullHref=this.getUrlWithParams(),this.href=this.getUrlWithParams()}addParam(t,e){this.href=this.href.replace(new RegExp(`${t}=[^&]*`),`${t}=${e}`),this.params[t]=e}getUrlWithParams(){let t,e="";try{t=decodeURIComponent(this.url)}catch(e){t=this.url}if(Object.keys(this.params).length>0){t+="?",e="?";for(const r in this.params){const a=this.params[r],o=encodeURIComponent(r).replace(/%24/g,"$");if(a){const r=encodeURIComponent(a).replace(/%24/g,"$");t+=`${o}=${r}&`,e+=`${o}=${r}&`}else t+=`${o}&`,e+=`${o}&`}t=t.slice(0,-1)}const r=t=>{try{return decodeURIComponent(t)}catch{return t}};if(this.protocol&&("http:"===this.protocol||"https:"===this.protocol))return r(this.protocol+"//"+t);if("whatsapp:"===this.protocol){const a=this.extractPhoneFromTextUsingRegex(t);return a.length>0?r("https://wa.me/"+a[0]+e):r("https://wa.me/"+e)}return r(this.protocol+t)}extractPhoneFromTextUsingRegex(t){if(!t)return[];const e=[...t.matchAll(/(?:whatsapp:([^?\s]+)|\+?[\d\s\-\(\)\.]{7,20})/g)];return Array.from(new Set(e.map(t=>t[1]||t[0]).filter(t=>{const e=t.replace(/\D/g,"");return e.length>=7&&e.length<=15}).map(t=>t.trim())))}isValidUrl(t){if(!t)return!1;return/^(https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/.test(t)}}s.resetURL=n},50742(t,e,r){r.d(e,{P:()=>a});const a=[{rule:"rgba(149, 157, 165, 0.2) 0px 8px 24px;"},{rule:"rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;"},{rule:"rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;"},{rule:"rgba(0, 0, 0, 0.35) 0px 5px 15px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 1px 4px;"},{rule:"rgba(0, 0, 0, 0.24) 0px 3px 8px;"},{rule:"rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(51, 51, 51) 0px 0px 0px 3px;"},{rule:"rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 4px 12px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;"},{rule:"rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;"},{rule:"rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;"},{rule:"rgb(38, 57, 77) 0px 20px 30px -10px;"},{rule:"rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;"},{rule:"rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;"},{rule:"rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;"},{rule:"rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;"},{rule:"rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;"},{rule:"rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;"},{rule:"rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;"},{rule:"rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;"},{rule:"rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;"},{rule:"rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;"},{rule:"rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 10px 50px;"},{rule:"rgba(240, 46, 170, 0.4) -5px 5px, rgba(240, 46, 170, 0.3) -10px 10px, rgba(240, 46, 170, 0.2) -15px 15px, rgba(240, 46, 170, 0.1) -20px 20px, rgba(240, 46, 170, 0.05) -25px 25px;"},{rule:"rgba(240, 46, 170, 0.4) 0px 5px, rgba(240, 46, 170, 0.3) 0px 10px, rgba(240, 46, 170, 0.2) 0px 15px, rgba(240, 46, 170, 0.1) 0px 20px, rgba(240, 46, 170, 0.05) 0px 25px;"},{rule:"rgba(240, 46, 170, 0.4) 5px 5px, rgba(240, 46, 170, 0.3) 10px 10px, rgba(240, 46, 170, 0.2) 15px 15px, rgba(240, 46, 170, 0.1) 20px 20px, rgba(240, 46, 170, 0.05) 25px 25px;"}]}}]);
1197
+ /* Toolbar ("light") mode: flatten the picker so it reads as one of the
1198
+ flat icon controls rather than a bordered <select>. Scoped to this
1199
+ instance only — the bordered look is preserved everywhere else. */
1200
+ .toolbar-flat cdtr-dropdown-button::part(button) {
1201
+ height: 28px;
1202
+ padding: 0 6px 0 8px;
1203
+ border-color: transparent !important;
1204
+ background: transparent !important;
1205
+ border-radius: 7px;
1206
+ color: #444b58;
1207
+ font-size: 13px;
1208
+ font-weight: 500;
1209
+ transition: background 0.12s ease, color 0.12s ease;
1210
+ }
1211
+ .toolbar-flat cdtr-dropdown-button::part(button):hover {
1212
+ border-color: transparent !important;
1213
+ background: rgba(16, 24, 40, 0.055) !important;
1214
+ color: #14171f;
1215
+ }
1216
+ `,customElements.define("cdtr-font-family-editor",s)},74726(t,e,r){function o(t){try{return function(t){const e=t.split(/ (?![^(]*\))/);let r="",o=0,a=0,i=0,n=0,s=!1;for(let t of e)t=t.trim(),"inset"===t?s=!0:t.endsWith("px")||t.endsWith("em")?0===a?a=parseFloat(t):0===o?o=parseFloat(t):0===i?i=parseFloat(t):0===n&&(n=parseFloat(t)):(t.includes("rgb")||t.includes("#"))&&(r=t);return[{color:r,offsetY:o,offsetX:a,blurRadius:i,spreadRadius:n,inset:s}]}(t)}catch(t){console.error(t)}}r.d(e,{A:()=>o})},13681(t,e,r){r.d(e,{vP:()=>c});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 n(t){return crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then(t=>Array.from(new Uint8Array(t)).map(t=>t.toString(16).padStart(2,"0")).join(""))}function s(t){if(t.length%2!=0)throw new Error("Invalid hex string");const e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)e[r/2]=parseInt(t.substr(r,2),16);return e}async function l(t){const e=await n(t),r=a[e];if(r){const t=await crypto.subtle.importKey("raw",s(e),{name:"AES-GCM"},!1,["encrypt","decrypt"]),o=await async function(t,e,r){const o=await crypto.subtle.decrypt({name:"AES-GCM",iv:e},t,r);return(new TextDecoder).decode(o)}(t,r.iv,r.encrypted);return JSON.parse(o)}return null}function d(t,e){if(i[t])for(const r in i[t])Object.prototype.hasOwnProperty.call(i[t],r)&&i[t][r].forEach(t=>t(e));Array.isArray(i["*"])&&i["*"].forEach(t=>t(e))}window.__cdtrEvents=i;const c={set:async function(t,e){const r=JSON.parse(JSON.stringify(e)),o=await n(t),l=await crypto.subtle.importKey("raw",s(o),{name:"AES-GCM"},!1,["encrypt","decrypt"]),c=await async function(t,e){const r=crypto.getRandomValues(new Uint8Array(12)),o=(new TextEncoder).encode(e),a=await crypto.subtle.encrypt({name:"AES-GCM",iv:r},t,o);return{iv:r,encrypted:new Uint8Array(a)}}(l,JSON.stringify(r));a[o]=c,i.set&&i.set[o]&&i.set[o].forEach(t=>t(r)),Array.isArray(i["*"])&&i["*"].forEach(t=>t(r)),d(t,r)},get:l,remove:async function(t){const e=await n(t);delete a[e]},on:async function(t,e,r){i[t]||(i[t]={});const o=await n(e);i[t][o]||(i[t][o]=[]),i[t][o].push(t=>{!function(){const t=(new Error).stack;if(t&&t.indexOf(" at <anonymous>:1")>-1)throw console.warn("Function call blocked: Detected console execution."),new Error("Function call blocked: Detected console execution.")}(),r(t)});const a=await l(e);return a&&r(a),o},off:function(t,e){i[t]&&i[t][e]&&delete i[t][e]},dispatch:d,OPTIONS:{SET:"set"}}},88385(t,e,r){r.d(e,{A:()=>s});const o=t=>!(!t||!t.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)),a=t=>!(!t||!t.replace("-","").match(/^[+]*[(]{0,1}[0-9]{9,9}[)]{0,1}[-\s\./0-9]*$/g)&&!t.match(/[0-9]{3}-[0-9]{3}-[0-9]{4}/));function i(t){const e={},r=/([^&=]+)=?([^&]*)/g,o=t=>{try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t.replace(/\+/g," ")}},a=t.indexOf("?");let i,n=-1!==a?t.substring(a+1):"";for(;null!==(i=r.exec(n));){const t=o(i[1]),r=o(i[2]);t&&(e[t]=r)}return e}function n(t){if(!t)return"";let e=t.replace(/^[^:]+:(?:\/\/)?/,"");return e=e.replace(/^\/+/,""),e=e.split("?")[0],encodeURIComponent(e).replace(/%24/g,"$")}class s{static getProtocol(t){if(!t)return"";const e=t.indexOf(":");return e>0?t.slice(0,e):""}constructor(t,e){if(this.protocol="",this.href="",this.fullHref="",this.target="_self",this.isEmail=!1,this.isPhone=!1,this.isAnchor=!1,this.url="",this.isValid=!0,this.params={},"string"==typeof t?this.href=t:t&&"object"==typeof t&&Object.assign(this,t),/^\[\[[^\]]+\]\]\?/.test(this.href)){const t=this.href;this.isValid=!1,this.protocol=e?.protocol??"",this.isEmail=!1,this.isPhone=!1,this.isAnchor=!1,this.params={...this.params,...e?.params,...i(t)};const r=t.indexOf("?");return this.url=r>-1?t.slice(0,r):t,this.href=t,void(this.fullHref=t)}this.isValid=this.isValidUrl(this.href),this.protocol=e?.protocol??s.getProtocol(this.href);const r=function(t){if(!t)return"";let e=t.replace(/^[^:]+:(?:\/\/)?/,"");return e=e.replace(/^\/+/,""),e=e.split("?")[0],e}(this.href);if(this.isEmail=o(r),this.isPhone=a(r),this.protocol||(this.isEmail?this.protocol="mailto:":this.isPhone?this.protocol="tel:":this.isValid&&(this.protocol="https:")),this.isAnchor=this.href.startsWith("#"),e?.target){if(!["_blank","_self","_parent","_top"].includes(e.target))throw new Error(`Url: invalid target "${e.target}"`);this.target=e.target}this.params={...this.params,...e?.params,...i(this.href)},this.url=n(this.href),this.protocol&&!this.protocol.endsWith(":")&&(this.protocol+=":");const l="http:"===this.protocol||"https:"===this.protocol;this.href=l?`${this.protocol}//${this.url}`:this.protocol+this.url,this.fullHref=this.getUrlWithParams(),this.href=this.getUrlWithParams()}addParam(t,e){this.href=this.href.replace(new RegExp(`${t}=[^&]*`),`${t}=${e}`),this.params[t]=e}getUrlWithParams(){let t,e="";try{t=decodeURIComponent(this.url)}catch(e){t=this.url}if(Object.keys(this.params).length>0){t+="?",e="?";for(const r in this.params){const o=this.params[r],a=encodeURIComponent(r).replace(/%24/g,"$");if(o){const r=encodeURIComponent(o).replace(/%24/g,"$");t+=`${a}=${r}&`,e+=`${a}=${r}&`}else t+=`${a}&`,e+=`${a}&`}t=t.slice(0,-1)}const r=t=>{try{return decodeURIComponent(t)}catch{return t}};if(this.protocol&&("http:"===this.protocol||"https:"===this.protocol))return r(this.protocol+"//"+t);if("whatsapp:"===this.protocol){const o=this.extractPhoneFromTextUsingRegex(t);return o.length>0?r("https://wa.me/"+o[0]+e):r("https://wa.me/"+e)}return r(this.protocol+t)}extractPhoneFromTextUsingRegex(t){if(!t)return[];const e=[...t.matchAll(/(?:whatsapp:([^?\s]+)|\+?[\d\s\-\(\)\.]{7,20})/g)];return Array.from(new Set(e.map(t=>t[1]||t[0]).filter(t=>{const e=t.replace(/\D/g,"");return e.length>=7&&e.length<=15}).map(t=>t.trim())))}isValidUrl(t){if(!t)return!1;return/^(https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/.test(t)}}s.resetURL=n},50742(t,e,r){r.d(e,{P:()=>o});const o=[{rule:"rgba(149, 157, 165, 0.2) 0px 8px 24px;"},{rule:"rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;"},{rule:"rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;"},{rule:"rgba(0, 0, 0, 0.35) 0px 5px 15px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 1px 4px;"},{rule:"rgba(0, 0, 0, 0.24) 0px 3px 8px;"},{rule:"rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(51, 51, 51) 0px 0px 0px 3px;"},{rule:"rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 4px 12px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;"},{rule:"rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;"},{rule:"rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;"},{rule:"rgb(38, 57, 77) 0px 20px 30px -10px;"},{rule:"rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;"},{rule:"rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;"},{rule:"rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;"},{rule:"rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;"},{rule:"rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;"},{rule:"rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;"},{rule:"rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;"},{rule:"rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;"},{rule:"rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;"},{rule:"rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;"},{rule:"rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 10px 50px;"},{rule:"rgba(240, 46, 170, 0.4) -5px 5px, rgba(240, 46, 170, 0.3) -10px 10px, rgba(240, 46, 170, 0.2) -15px 15px, rgba(240, 46, 170, 0.1) -20px 20px, rgba(240, 46, 170, 0.05) -25px 25px;"},{rule:"rgba(240, 46, 170, 0.4) 0px 5px, rgba(240, 46, 170, 0.3) 0px 10px, rgba(240, 46, 170, 0.2) 0px 15px, rgba(240, 46, 170, 0.1) 0px 20px, rgba(240, 46, 170, 0.05) 0px 25px;"},{rule:"rgba(240, 46, 170, 0.4) 5px 5px, rgba(240, 46, 170, 0.3) 10px 10px, rgba(240, 46, 170, 0.2) 15px 15px, rgba(240, 46, 170, 0.1) 20px 20px, rgba(240, 46, 170, 0.05) 25px 25px;"}]}}]);