@creaditor/newsletter-starterkit 1.0.45 → 1.0.46

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 (243) hide show
  1. package/dist/112.creaditor.bundle.js +3 -3
  2. package/dist/112.creaditor.bundle.js.gz +0 -0
  3. package/dist/1260.creaditor.bundle.js +11 -11
  4. package/dist/1260.creaditor.bundle.js.gz +0 -0
  5. package/dist/1271.creaditor.bundle.js +6 -6
  6. package/dist/1271.creaditor.bundle.js.gz +0 -0
  7. package/dist/1334.creaditor.bundle.js +3 -3
  8. package/dist/1334.creaditor.bundle.js.gz +0 -0
  9. package/dist/1452.creaditor.bundle.js +3 -3
  10. package/dist/1452.creaditor.bundle.js.gz +0 -0
  11. package/dist/1456.creaditor.bundle.js +3 -3
  12. package/dist/1456.creaditor.bundle.js.gz +0 -0
  13. package/dist/1529.creaditor.bundle.js +2 -2
  14. package/dist/1529.creaditor.bundle.js.gz +0 -0
  15. package/dist/1565.creaditor.bundle.js +100 -100
  16. package/dist/1565.creaditor.bundle.js.gz +0 -0
  17. package/dist/170.creaditor.bundle.js +8 -8
  18. package/dist/170.creaditor.bundle.js.gz +0 -0
  19. package/dist/175.creaditor.bundle.js +5 -5
  20. package/dist/175.creaditor.bundle.js.gz +0 -0
  21. package/dist/1972.creaditor.bundle.js +2 -2
  22. package/dist/1972.creaditor.bundle.js.gz +0 -0
  23. package/dist/211.creaditor.bundle.js +1 -1
  24. package/dist/211.creaditor.bundle.js.gz +0 -0
  25. package/dist/2112.creaditor.bundle.js +3 -3
  26. package/dist/2112.creaditor.bundle.js.gz +0 -0
  27. package/dist/2350.creaditor.bundle.js +3 -3
  28. package/dist/2350.creaditor.bundle.js.gz +0 -0
  29. package/dist/2377.creaditor.bundle.js +7 -7
  30. package/dist/2377.creaditor.bundle.js.gz +0 -0
  31. package/dist/2384.creaditor.bundle.js +6 -6
  32. package/dist/2384.creaditor.bundle.js.gz +0 -0
  33. package/dist/2397.creaditor.bundle.js +4 -4
  34. package/dist/2397.creaditor.bundle.js.gz +0 -0
  35. package/dist/2409.creaditor.bundle.js +4 -4
  36. package/dist/2409.creaditor.bundle.js.gz +0 -0
  37. package/dist/2438.creaditor.bundle.js +5 -5
  38. package/dist/2438.creaditor.bundle.js.gz +0 -0
  39. package/dist/2547.creaditor.bundle.js +2 -2
  40. package/dist/2547.creaditor.bundle.js.gz +0 -0
  41. package/dist/2590.creaditor.bundle.js +2 -2
  42. package/dist/2590.creaditor.bundle.js.gz +0 -0
  43. package/dist/271.creaditor.bundle.js +7 -7
  44. package/dist/271.creaditor.bundle.js.gz +0 -0
  45. package/dist/2773.creaditor.bundle.js +3 -3
  46. package/dist/2773.creaditor.bundle.js.gz +0 -0
  47. package/dist/2833.creaditor.bundle.js +3 -3
  48. package/dist/2833.creaditor.bundle.js.gz +0 -0
  49. package/dist/2834.creaditor.bundle.js +2 -2
  50. package/dist/2834.creaditor.bundle.js.gz +0 -0
  51. package/dist/2956.creaditor.bundle.js +3 -3
  52. package/dist/2956.creaditor.bundle.js.gz +0 -0
  53. package/dist/2963.creaditor.bundle.js +3 -3
  54. package/dist/2963.creaditor.bundle.js.gz +0 -0
  55. package/dist/307.creaditor.bundle.js +3 -3
  56. package/dist/307.creaditor.bundle.js.gz +0 -0
  57. package/dist/3095.creaditor.bundle.js +13 -13
  58. package/dist/3095.creaditor.bundle.js.gz +0 -0
  59. package/dist/3233.creaditor.bundle.js +2 -2
  60. package/dist/3233.creaditor.bundle.js.gz +0 -0
  61. package/dist/3521.creaditor.bundle.js +3 -3
  62. package/dist/3521.creaditor.bundle.js.gz +0 -0
  63. package/dist/353.creaditor.bundle.js +3 -3
  64. package/dist/353.creaditor.bundle.js.gz +0 -0
  65. package/dist/3553.creaditor.bundle.js +5 -5
  66. package/dist/3553.creaditor.bundle.js.gz +0 -0
  67. package/dist/3606.creaditor.bundle.js +5 -5
  68. package/dist/3606.creaditor.bundle.js.gz +0 -0
  69. package/dist/365.creaditor.bundle.js +3 -3
  70. package/dist/365.creaditor.bundle.js.gz +0 -0
  71. package/dist/3827.creaditor.bundle.js +3 -3
  72. package/dist/3827.creaditor.bundle.js.gz +0 -0
  73. package/dist/3875.creaditor.bundle.js +3 -3
  74. package/dist/3875.creaditor.bundle.js.gz +0 -0
  75. package/dist/3932.creaditor.bundle.js +3 -3
  76. package/dist/3932.creaditor.bundle.js.gz +0 -0
  77. package/dist/3971.creaditor.bundle.js +3 -3
  78. package/dist/3971.creaditor.bundle.js.gz +0 -0
  79. package/dist/407.creaditor.bundle.js +3 -3
  80. package/dist/407.creaditor.bundle.js.gz +0 -0
  81. package/dist/4074.creaditor.bundle.js +3 -3
  82. package/dist/4074.creaditor.bundle.js.gz +0 -0
  83. package/dist/4100.creaditor.bundle.js +2 -2
  84. package/dist/4100.creaditor.bundle.js.gz +0 -0
  85. package/dist/4114.creaditor.bundle.js +3 -3
  86. package/dist/4114.creaditor.bundle.js.gz +0 -0
  87. package/dist/4161.creaditor.bundle.js +3 -3
  88. package/dist/4161.creaditor.bundle.js.gz +0 -0
  89. package/dist/4217.creaditor.bundle.js +7 -7
  90. package/dist/4217.creaditor.bundle.js.gz +0 -0
  91. package/dist/4288.creaditor.bundle.js +4 -4
  92. package/dist/4288.creaditor.bundle.js.gz +0 -0
  93. package/dist/4413.creaditor.bundle.js +3 -3
  94. package/dist/4413.creaditor.bundle.js.gz +0 -0
  95. package/dist/4475.creaditor.bundle.js +3 -3
  96. package/dist/4475.creaditor.bundle.js.gz +0 -0
  97. package/dist/453.creaditor.bundle.js +12 -12
  98. package/dist/453.creaditor.bundle.js.gz +0 -0
  99. package/dist/4569.creaditor.bundle.js +72 -72
  100. package/dist/4569.creaditor.bundle.js.gz +0 -0
  101. package/dist/4615.creaditor.bundle.js +2 -2
  102. package/dist/4615.creaditor.bundle.js.gz +0 -0
  103. package/dist/467.creaditor.bundle.js +3 -3
  104. package/dist/467.creaditor.bundle.js.gz +0 -0
  105. package/dist/4762.creaditor.bundle.js +3 -3
  106. package/dist/4762.creaditor.bundle.js.gz +0 -0
  107. package/dist/4770.creaditor.bundle.js +3 -3
  108. package/dist/4770.creaditor.bundle.js.gz +0 -0
  109. package/dist/4947.creaditor.bundle.js +3 -3
  110. package/dist/4947.creaditor.bundle.js.gz +0 -0
  111. package/dist/4988.creaditor.bundle.js +2 -2
  112. package/dist/4988.creaditor.bundle.js.gz +0 -0
  113. package/dist/5133.creaditor.bundle.js +5 -5
  114. package/dist/5133.creaditor.bundle.js.gz +0 -0
  115. package/dist/5156.creaditor.bundle.js +7 -7
  116. package/dist/5156.creaditor.bundle.js.gz +0 -0
  117. package/dist/5340.creaditor.bundle.js +5 -5
  118. package/dist/5340.creaditor.bundle.js.gz +0 -0
  119. package/dist/5391.creaditor.bundle.js +3 -3
  120. package/dist/5391.creaditor.bundle.js.gz +0 -0
  121. package/dist/5411.creaditor.bundle.js +3 -3
  122. package/dist/5411.creaditor.bundle.js.gz +0 -0
  123. package/dist/5428.creaditor.bundle.js +3 -3
  124. package/dist/5428.creaditor.bundle.js.gz +0 -0
  125. package/dist/5501.creaditor.bundle.js +13 -13
  126. package/dist/5501.creaditor.bundle.js.gz +0 -0
  127. package/dist/5530.creaditor.bundle.js +4 -4
  128. package/dist/5530.creaditor.bundle.js.gz +0 -0
  129. package/dist/5666.creaditor.bundle.js +3 -3
  130. package/dist/5666.creaditor.bundle.js.gz +0 -0
  131. package/dist/567.creaditor.bundle.js +6 -6
  132. package/dist/567.creaditor.bundle.js.gz +0 -0
  133. package/dist/578.creaditor.bundle.js +4 -4
  134. package/dist/578.creaditor.bundle.js.gz +0 -0
  135. package/dist/5839.creaditor.bundle.js +2 -2
  136. package/dist/5839.creaditor.bundle.js.gz +0 -0
  137. package/dist/5849.creaditor.bundle.js +3 -3
  138. package/dist/5849.creaditor.bundle.js.gz +0 -0
  139. package/dist/5850.creaditor.bundle.js +3 -3
  140. package/dist/5850.creaditor.bundle.js.gz +0 -0
  141. package/dist/589.creaditor.bundle.js +5 -5
  142. package/dist/589.creaditor.bundle.js.gz +0 -0
  143. package/dist/5926.creaditor.bundle.js +6 -6
  144. package/dist/5926.creaditor.bundle.js.gz +0 -0
  145. package/dist/6036.creaditor.bundle.js +2 -2
  146. package/dist/6036.creaditor.bundle.js.gz +0 -0
  147. package/dist/638.creaditor.bundle.js +3 -3
  148. package/dist/638.creaditor.bundle.js.gz +0 -0
  149. package/dist/6442.creaditor.bundle.js +3 -3
  150. package/dist/6442.creaditor.bundle.js.gz +0 -0
  151. package/dist/6459.creaditor.bundle.js +3 -3
  152. package/dist/6459.creaditor.bundle.js.gz +0 -0
  153. package/dist/6496.creaditor.bundle.js +3 -3
  154. package/dist/6496.creaditor.bundle.js.gz +0 -0
  155. package/dist/653.creaditor.bundle.js +3 -3
  156. package/dist/653.creaditor.bundle.js.gz +0 -0
  157. package/dist/7155.creaditor.bundle.js +3 -3
  158. package/dist/7155.creaditor.bundle.js.gz +0 -0
  159. package/dist/7209.creaditor.bundle.js +26 -26
  160. package/dist/7209.creaditor.bundle.js.gz +0 -0
  161. package/dist/7238.creaditor.bundle.js +6 -6
  162. package/dist/7238.creaditor.bundle.js.gz +0 -0
  163. package/dist/7255.creaditor.bundle.js +2 -2
  164. package/dist/7255.creaditor.bundle.js.gz +0 -0
  165. package/dist/7307.creaditor.bundle.js +11 -11
  166. package/dist/7307.creaditor.bundle.js.gz +0 -0
  167. package/dist/738.creaditor.bundle.js +2 -2
  168. package/dist/738.creaditor.bundle.js.gz +0 -0
  169. package/dist/7380.creaditor.bundle.js +2 -2
  170. package/dist/7380.creaditor.bundle.js.gz +0 -0
  171. package/dist/752.creaditor.bundle.js +3 -3
  172. package/dist/752.creaditor.bundle.js.gz +0 -0
  173. package/dist/7523.creaditor.bundle.js +3 -3
  174. package/dist/7523.creaditor.bundle.js.gz +0 -0
  175. package/dist/767.creaditor.bundle.js +7 -7
  176. package/dist/767.creaditor.bundle.js.gz +0 -0
  177. package/dist/7759.creaditor.bundle.js +3 -3
  178. package/dist/7759.creaditor.bundle.js.gz +0 -0
  179. package/dist/7838.creaditor.bundle.js +3 -3
  180. package/dist/7838.creaditor.bundle.js.gz +0 -0
  181. package/dist/7937.creaditor.bundle.js +12 -12
  182. package/dist/7937.creaditor.bundle.js.gz +0 -0
  183. package/dist/7997.creaditor.bundle.js +3 -3
  184. package/dist/7997.creaditor.bundle.js.gz +0 -0
  185. package/dist/8042.creaditor.bundle.js +5 -5
  186. package/dist/8042.creaditor.bundle.js.gz +0 -0
  187. package/dist/8064.creaditor.bundle.js +3 -3
  188. package/dist/8064.creaditor.bundle.js.gz +0 -0
  189. package/dist/8141.creaditor.bundle.js +2 -2
  190. package/dist/8141.creaditor.bundle.js.gz +0 -0
  191. package/dist/8251.creaditor.bundle.js +3 -3
  192. package/dist/8251.creaditor.bundle.js.gz +0 -0
  193. package/dist/8305.creaditor.bundle.js +3 -3
  194. package/dist/8305.creaditor.bundle.js.gz +0 -0
  195. package/dist/8315.creaditor.bundle.js +2 -2
  196. package/dist/8315.creaditor.bundle.js.gz +0 -0
  197. package/dist/8443.creaditor.bundle.js +3 -3
  198. package/dist/8443.creaditor.bundle.js.gz +0 -0
  199. package/dist/8516.creaditor.bundle.js +2 -2
  200. package/dist/8516.creaditor.bundle.js.gz +0 -0
  201. package/dist/8570.creaditor.bundle.js +3 -3
  202. package/dist/8570.creaditor.bundle.js.gz +0 -0
  203. package/dist/8646.creaditor.bundle.js +5 -5
  204. package/dist/8646.creaditor.bundle.js.gz +0 -0
  205. package/dist/8654.creaditor.bundle.js +5 -5
  206. package/dist/8654.creaditor.bundle.js.gz +0 -0
  207. package/dist/8676.creaditor.bundle.js +3 -3
  208. package/dist/8676.creaditor.bundle.js.gz +0 -0
  209. package/dist/8854.creaditor.bundle.js +3 -3
  210. package/dist/8854.creaditor.bundle.js.gz +0 -0
  211. package/dist/8916.creaditor.bundle.js +2 -2
  212. package/dist/8916.creaditor.bundle.js.gz +0 -0
  213. package/dist/8921.creaditor.bundle.js +3 -3
  214. package/dist/8921.creaditor.bundle.js.gz +0 -0
  215. package/dist/9041.creaditor.bundle.js +8 -8
  216. package/dist/9041.creaditor.bundle.js.gz +0 -0
  217. package/dist/9089.creaditor.bundle.js +3 -3
  218. package/dist/9089.creaditor.bundle.js.gz +0 -0
  219. package/dist/9162.creaditor.bundle.js +3 -3
  220. package/dist/9162.creaditor.bundle.js.gz +0 -0
  221. package/dist/9184.creaditor.bundle.js +3 -3
  222. package/dist/9184.creaditor.bundle.js.gz +0 -0
  223. package/dist/9250.creaditor.bundle.js +3 -3
  224. package/dist/9250.creaditor.bundle.js.gz +0 -0
  225. package/dist/9386.creaditor.bundle.js +3 -3
  226. package/dist/9386.creaditor.bundle.js.gz +0 -0
  227. package/dist/9453.creaditor.bundle.js +3 -3
  228. package/dist/9453.creaditor.bundle.js.gz +0 -0
  229. package/dist/9570.creaditor.bundle.js +3 -3
  230. package/dist/9570.creaditor.bundle.js.gz +0 -0
  231. package/dist/975.creaditor.bundle.js +3 -3
  232. package/dist/975.creaditor.bundle.js.gz +0 -0
  233. package/dist/976.creaditor.bundle.js +3 -3
  234. package/dist/976.creaditor.bundle.js.gz +0 -0
  235. package/dist/9986.creaditor.bundle.js +3 -3
  236. package/dist/9986.creaditor.bundle.js.gz +0 -0
  237. package/dist/9990.creaditor.bundle.js +3 -3
  238. package/dist/9990.creaditor.bundle.js.gz +0 -0
  239. package/dist/creaditor.bundle.js +269 -268
  240. package/dist/creaditor.bundle.js.gz +0 -0
  241. package/dist/service-worker.js +1 -1
  242. package/dist/service-worker.js.gz +0 -0
  243. 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([[467],{467(t,e,i){i.r(e),i.d(e,{YoutubeIcon:()=>r});var s=i(24586),h=i(59929);class r extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy` <svg
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[467],{467(t,e,i){i.r(e),i.d(e,{YoutubeIcon:()=>h});var s=i(59929);class h extends s.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return s.qy` <svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  viewBox="0 0 24 24"
4
4
  width="24"
@@ -9,7 +9,7 @@
9
9
  <path
10
10
  d="M21.543 6.498C22 8.28 22 12 22 12s0 3.72-.457 5.502c-.254.985-.997 1.76-1.938 2.022C17.896 20 12 20 12 20s-5.893 0-7.605-.476c-.945-.266-1.687-1.04-1.938-2.022C2 15.72 2 12 2 12s0-3.72.457-5.502c.254-.985.997-1.76 1.938-2.022C6.107 4 12 4 12 4s5.896 0 7.605.476c.945.266 1.687 1.04 1.938 2.022zM10 15.5l6-3.5-6-3.5v7z"
11
11
  />
12
- </svg>`}}(0,s.A)(r,"styles",h.AH`
12
+ </svg>`}}h.styles=s.AH`
13
13
  :host {
14
14
  display: inherit;
15
15
  --cdtr-icon-width: 20px;
@@ -20,4 +20,4 @@
20
20
  height: var(--cdtr-icon-height);
21
21
  color: var(--cdtr-icon-color);
22
22
  }
23
- `),(0,s.A)(r,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-youtube-icon",r)}}]);
23
+ `,h.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-youtube-icon",h)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4762],{64762(e,t,r){r.r(t),r.d(t,{Page500:()=>i});var a=r(24586),o=r(59929);class i extends o.WF{constructor(){super()}render(){return o.qy`<div class="root">
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4762],{64762(e,t,r){r.r(t),r.d(t,{Page500:()=>o});var a=r(59929);class o extends a.WF{constructor(){super()}render(){return a.qy`<div class="root">
2
2
  <div class="container">
3
3
  <cdtr-row spacing="1rem">
4
4
  <h1><lang-text text="connection_error"></lang-text></h1>
@@ -18,7 +18,7 @@
18
18
  ></paper-button>
19
19
  </cdtr-row>
20
20
  </div>
21
- </div>`}}(0,a.A)(i,"properties",{}),(0,a.A)(i,"styles",o.AH`
21
+ </div>`}}o.properties={},o.styles=a.AH`
22
22
  :host {
23
23
  position: fixed;
24
24
  width: 100vw;
@@ -50,4 +50,4 @@
50
50
  color: var(--primary);
51
51
  margin: 0;
52
52
  }
53
- `),customElements.define("cdtr-500",i)}}]);
53
+ `,customElements.define("cdtr-500",o)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4770],{94770(e,t,c){c.r(t),c.d(t,{RangeByDeviceEditor:()=>s});var i=c(24586),n=c(59929);class s extends n.WF{constructor(e){super(),this.device="desktop",this.deviceEvent=new UIEvent("device",{view:window,bubbles:!0,cancelable:!0}),this.inputEvent=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0}),this.changeEvent=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0})}connectedCallback(){super.connectedCallback(),this.device="desktop"}disconnectedCallback(){super.disconnectedCallback()}onChange(e){const t=e.target.value;this.value=t,this.dispatchEvent(this.changeEvent)}onInput(e){const t=e.target.value;this.value=t,this.dispatchEvent(this.inputEvent)}pickerDevice(e){this.device=e.target.device,this.dispatchEvent(this.deviceEvent)}render(){return n.qy` <cdtr-row class="container">
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4770],{94770(e,t,c){c.r(t),c.d(t,{RangeByDeviceEditor:()=>n});var i=c(59929);class n extends i.WF{constructor(e){super(),this.device="desktop",this.deviceEvent=new UIEvent("device",{view:window,bubbles:!0,cancelable:!0}),this.inputEvent=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0}),this.changeEvent=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0})}connectedCallback(){super.connectedCallback(),this.device="desktop"}disconnectedCallback(){super.disconnectedCallback()}onChange(e){const t=e.target.value;this.value=t,this.dispatchEvent(this.changeEvent)}onInput(e){const t=e.target.value;this.value=t,this.dispatchEvent(this.inputEvent)}pickerDevice(e){this.device=e.target.device,this.dispatchEvent(this.deviceEvent)}render(){return i.qy` <cdtr-row class="container">
2
2
  <cdtr-col sm="12">
3
3
  <cdtr-row alignItems="center">
4
4
  <cdtr-title pb="0"
@@ -22,11 +22,11 @@
22
22
  min="${this.min}"
23
23
  ></cdtr-range-input
24
24
  ></cdtr-col>
25
- </cdtr-row>`}}(0,i.A)(s,"styles",n.AH`
25
+ </cdtr-row>`}}n.styles=i.AH`
26
26
  .device-picker {
27
27
  opacity: 0;
28
28
  }
29
29
  .container:hover .device-picker {
30
30
  opacity: 1;
31
31
  }
32
- `),(0,i.A)(s,"properties",{value:{type:Number},device:{type:String},max:{type:Number},min:{type:Number},text:{type:String},step:{type:Number}}),customElements.define("cdtr-range-device-editor",s)}}]);
32
+ `,n.properties={value:{type:Number},device:{type:String},max:{type:Number},min:{type:Number},text:{type:String},step:{type:Number}},customElements.define("cdtr-range-device-editor",n)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4947],{94947(t,e,i){i.r(e),i.d(e,{moveIcon:()=>n});var h=i(24586),s=i(59929);class n extends s.WF{constructor(){super(),this.iconStyle="fill:black;",this.width="24",this.height="24"}render(){return s.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4947],{94947(t,e,i){i.r(e),i.d(e,{moveIcon:()=>s});var h=i(59929);class s extends h.WF{constructor(){super(),this.iconStyle="fill:black;",this.width="24",this.height="24"}render(){return h.qy`
2
2
  <svg
3
3
  xmlns="http://www.w3.org/2000/svg"
4
4
  viewBox="0 0 24 24"
@@ -11,8 +11,8 @@
11
11
  d="M18 11V8l4 4-4 4v-3h-5v5h3l-4 4-4-4h3v-5H6v3l-4-4 4-4v3h5V6H8l4-4 4 4h-3v5z"
12
12
  />
13
13
  </svg>
14
- `}}(0,h.A)(n,"styles",s.AH`
14
+ `}}s.styles=h.AH`
15
15
  :host {
16
16
  display: inherit;
17
17
  }
18
- `),(0,h.A)(n,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-move-icon",n)}}]);
18
+ `,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-move-icon",s)}}]);
Binary file
@@ -1,6 +1,6 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4988],{94988(t,e,h){h.r(e),h.d(e,{removeIcon:()=>n});var i=h(24586),s=h(59929);class n extends s.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return s.qy` <svg style="${this.iconStyle}" width="${this.width}" height="${this.height}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z" /><path d="M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm1 2H6v12h12V8zM9 4v2h6V4H9z" /></svg>`}}(0,i.A)(n,"styles",s.AH`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4988],{94988(t,e,h){h.r(e),h.d(e,{removeIcon:()=>s});var i=h(59929);class s extends i.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return i.qy` <svg style="${this.iconStyle}" width="${this.width}" height="${this.height}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path fill="none" d="M0 0h24v24H0z" /><path d="M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm1 2H6v12h12V8zM9 4v2h6V4H9z" /></svg>`}}s.styles=i.AH`
2
2
  :host {
3
3
  display: inherit;
4
4
  }
5
5
 
6
- `),(0,i.A)(n,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-remove-icon",n)}}]);
6
+ `,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-remove-icon",s)}}]);
Binary file
@@ -1,6 +1,6 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5133],{15133(e,t,i){i.r(t),i.d(t,{TextArea:()=>V});var l,n,a,r,o,s,u,h,p,c,b,f,d,m,g,y,v,w,A,x,z,$,M,Z,k,S,C,R,E=i(59088),B=i(24586),U=i(36936),W=i(59929),D=i(49410),I=i(21663),N=i(21421),T=i(86319);let V=(l=(0,D.MZ)({type:String,reflect:!0}),n=(0,D.MZ)({type:String}),a=(0,D.MZ)({type:Number}),r=(0,D.MZ)({type:Boolean}),o=(0,D.MZ)({type:Number}),s=(0,D.MZ)({type:Boolean}),u=(0,D.MZ)({type:Boolean}),h=(0,D.MZ)({type:Number}),p=(0,D.MZ)({type:String}),c=(0,D.MZ)({type:Number}),b=(0,D.MZ)({type:String,reflect:!0}),f=(0,D.MZ)({type:Boolean,reflect:!0}),d=(0,D.MZ)({type:String,reflect:!0}),R=class extends W.WF{constructor(){super(),(0,E.A)(this,"value",g,this),(0,E.A)(this,"autoComplete",y,this),(0,E.A)(this,"maxlength",v,this),(0,E.A)(this,"fullWidth",w,this),(0,E.A)(this,"minlength",A,this),(0,E.A)(this,"disabled",x,this),(0,E.A)(this,"readonly",z,this),(0,E.A)(this,"rows",$,this),(0,E.A)(this,"name",M,this),(0,E.A)(this,"cols",Z,this),(0,E.A)(this,"placeholder",k,this),(0,E.A)(this,"autofocus",S,this),(0,E.A)(this,"inputStyle",C,this),(0,B.A)(this,"inputRef",(0,N._)()),this.minlength=0,this.maxlength=250,this.autofocus=!1,this.value="",this.autoComplete="off",this.placeholder="",this.fullWidth=!1,this.rows=5}onSubmit(e){e.preventDefault();const t=new UIEvent("submit",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}onFocus(){const e=new UIEvent("focus",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}onBlur(){const e=new UIEvent("blur",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}render(){this.fullWidth&&(this.style.width="100%");const e=T.M.get("lang",this.placeholder)||this.placeholder||"";return W.qy`<form @submit=${this.onSubmit}>
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5133],{15133(e,t,i){i.r(t),i.d(t,{TextArea:()=>o});var s=i(59929),n=i(21663),a=i(21421),l=i(86319);class o extends s.WF{constructor(){super(),this.inputRef=(0,a._)(),this.minlength=0,this.maxlength=250,this.autofocus=!1,this.value="",this.autoComplete="off",this.placeholder="",this.fullWidth=!1,this.rows=5}onSubmit(e){e.preventDefault();const t=new UIEvent("submit",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}onFocus(){const e=new UIEvent("focus",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}onBlur(){const e=new UIEvent("blur",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}render(){this.fullWidth&&(this.style.width="100%");const e=l.M.get("lang",this.placeholder)||this.placeholder||"";return s.qy`<form @submit=${this.onSubmit}>
2
2
  <textarea
3
- ${(0,N.K)(this.inputRef)}
3
+ ${(0,a.K)(this.inputRef)}
4
4
  style="${this.inputStyle}"
5
5
  .autofocus="${this.autofocus}"
6
6
  .placeholder="${e}"
@@ -14,10 +14,10 @@
14
14
  .rows=${this.rows}
15
15
  .cols=${this.cols}
16
16
  ></textarea
17
- >${this.maxlength?W.qy`<span class="counter"
17
+ >${this.maxlength?s.qy`<span class="counter"
18
18
  >${this.value.length}/${this.maxlength}</span
19
19
  > `:null}
20
- </form>`}firstUpdated(){setTimeout(()=>{this.autofocus&&this.inputRef.value&&this.inputRef.value.focus()},200)}focus(){super.focus(),this.inputRef.value&&this.inputRef.value.focus()}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.setDir()},50)}setValue(e){if(!this.inputRef.value)return;const t=this.inputRef.value;if(this.max&&t.value.length>this.max)return t.value=this.value,void this.inputRef.value.focus();if(this.value=t.value,this.value){this.setDir();const t=new UIEvent(e.type,{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}}setDir(){const e=this.inputRef.value;e&&(!this.value||(0,I.A)(this.value)?(e.style.textAlign="right",e.style.direction="rtl"):(e.style.textAlign="left",e.style.direction="ltr"))}patch(e){this.value=e}},(0,B.A)(R,"styles",W.AH`
20
+ </form>`}firstUpdated(){setTimeout(()=>{this.autofocus&&this.inputRef.value&&this.inputRef.value.focus()},200)}focus(){super.focus(),this.inputRef.value&&this.inputRef.value.focus()}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.setDir()},50)}setValue(e){if(!this.inputRef.value)return;const t=this.inputRef.value;if(this.max&&t.value.length>this.max)return t.value=this.value,void this.inputRef.value.focus();if(this.value=t.value,this.value){this.setDir();const t=new UIEvent(e.type,{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}}setDir(){const e=this.inputRef.value;e&&(!this.value||(0,n.A)(this.value)?(e.style.textAlign="right",e.style.direction="rtl"):(e.style.textAlign="left",e.style.direction="ltr"))}patch(e){this.value=e}}o.properties={value:{type:String,reflect:!0},autoComplete:{type:String},maxlength:{type:Number},fullWidth:{type:Boolean},minlength:{type:Number},disabled:{type:Boolean},readonly:{type:Boolean},rows:{type:Number},name:{type:String},cols:{type:Number},placeholder:{type:String,reflect:!0},autofocus:{type:Boolean,reflect:!0},inputStyle:{type:String,reflect:!0}},o.styles=s.AH`
21
21
  :host {
22
22
  display: inline-block;
23
23
  --cdtr-input-height: 30px;
@@ -57,4 +57,4 @@
57
57
  textarea:focus {
58
58
  border-color: var(--primary);
59
59
  }
60
- `),m=R,g=(0,U.A)(m.prototype,"value",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,U.A)(m.prototype,"autoComplete",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,U.A)(m.prototype,"maxlength",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,U.A)(m.prototype,"fullWidth",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,U.A)(m.prototype,"minlength",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,U.A)(m.prototype,"disabled",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,U.A)(m.prototype,"readonly",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,U.A)(m.prototype,"rows",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,U.A)(m.prototype,"name",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,U.A)(m.prototype,"cols",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,U.A)(m.prototype,"placeholder",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,U.A)(m.prototype,"autofocus",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,U.A)(m.prototype,"inputStyle",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m);customElements.define("cdtr-textarea",V)}}]);
60
+ `,customElements.define("cdtr-textarea",o)}}]);
Binary file
@@ -1,21 +1,21 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5156],{85156(e,t,i){i.r(t),i.d(t,{EditorImageCard:()=>d});var r=i(24586),s=i(5441),o=i(59929),a=i(21421);class d extends o.WF{constructor(){super(),(0,r.A)(this,"previewModalRef",(0,a._)()),this.type="image",this.name="",this.liked=!1,this.imageOptions=[{index:1,value:"delete",onClick:()=>{this.onFileOption("delete")}}]}onFileOption(e){if(this.dialog&&this.dialog.remove(),"preview"===e)"image"===this.type?this.isPreview=!0:window.open(this.src);else if("delete"===e)if("folder"===this.type)this.dispatchEvent(new CustomEvent("deleteFolder",{}));else this.dispatchEvent(new CustomEvent("deleteFile",{}))}firstUpdated(){super.firstUpdated(),"folder"!==this.type&&this.imageOptions.unshift({index:0,value:"preview",onClick:()=>{this.onFileOption("preview")}})}previewFactory(){if("image"===this.type)return(0,s.A)("img",{loading:"lazy",style:"height: 500px; width: auto; max-width: 95%; margin: auto; display: block;",alt:this.name,src:this.src})}factory(){switch(this.type){case"image":return o.qy`<img alt=${this.name} src="${this.src}" />`;case"audio":case"video":case"pdf":default:break;case"folder":return o.qy`<cdtr-folder-icon
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5156],{85156(e,t,i){i.r(t),i.d(t,{EditorImageCard:()=>a});var r=i(5441),s=i(59929),o=i(21421);class a extends s.WF{constructor(){super(),this.previewModalRef=(0,o._)(),this.type="image",this.name="",this.liked=!1,this.imageOptions=[{index:1,value:"delete",onClick:()=>{this.onFileOption("delete")}}]}onFileOption(e){if(this.dialog&&this.dialog.remove(),"preview"===e)"image"===this.type?this.isPreview=!0:window.open(this.src);else if("delete"===e)if("folder"===this.type)this.dispatchEvent(new CustomEvent("deleteFolder",{}));else this.dispatchEvent(new CustomEvent("deleteFile",{}))}firstUpdated(){super.firstUpdated(),"folder"!==this.type&&this.imageOptions.unshift({index:0,value:"preview",onClick:()=>{this.onFileOption("preview")}})}previewFactory(){if("image"===this.type)return(0,r.A)("img",{loading:"lazy",style:"height: 500px; width: auto; max-width: 95%; margin: auto; display: block;",alt:this.name,src:this.src})}factory(){switch(this.type){case"image":return s.qy`<img alt=${this.name} src="${this.src}" />`;case"audio":case"video":case"pdf":default:break;case"folder":return s.qy`<cdtr-folder-icon
2
2
  width="100"
3
3
  height="100"
4
- ></cdtr-folder-icon>`}}like(){const e={detail:!this.like,bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("like",e))}render(){return o.qy`
4
+ ></cdtr-folder-icon>`}}like(){const e={detail:!this.like,bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("like",e))}render(){return s.qy`
5
5
  <div class="wrapper ${this.selected?"selected":""}">
6
- ${this.controls?o.qy`<div class="controls">
6
+ ${this.controls?s.qy`<div class="controls">
7
7
  <cdtr-dropdown>
8
8
  <paper-button slot="trigger" class="fab">
9
9
  <cdtr-more-icon></cdtr-more-icon>
10
10
  </paper-button>
11
11
  <div slot="content">
12
- ${this.imageOptions.map(e=>o.qy`<cdtr-dropdown-item @click=${e.onClick} .value="${e.value}"
12
+ ${this.imageOptions.map(e=>s.qy`<cdtr-dropdown-item @click=${e.onClick} .value="${e.value}"
13
13
  ><lang-text text="${e.value}"></lang-text>
14
14
  </cdtr-dropdown-item>`)}
15
15
  </div>
16
16
  </cdtr-dropdown>
17
17
 
18
- ${"folder"!==this.type?o.qy` <paper-button @click=${this.like} class="fab">
18
+ ${"folder"!==this.type?s.qy` <paper-button @click=${this.like} class="fab">
19
19
  <cdtr-heart-icon .full=${this.liked}></cdtr-heart-icon>
20
20
  </paper-button>`:null}
21
21
  </div>`:null}
@@ -29,7 +29,7 @@
29
29
  >
30
30
  ${this.previewFactory()}
31
31
  </paper-dialog>
32
- `}}(0,r.A)(d,"styles",o.AH`
32
+ `}}a.styles=s.AH`
33
33
  .wrapper {
34
34
  position: relative;
35
35
  overflow: hidden;
@@ -90,4 +90,4 @@
90
90
  color: grey;
91
91
  font-size: 10px;
92
92
  }
93
- `),(0,r.A)(d,"properties",{type:{type:String},src:{type:String},name:{type:String},subTitle:{type:String},liked:{type:Boolean},controls:{type:Boolean},selected:{type:Boolean},isPreview:{type:Boolean}}),customElements.define("cdtr-editor-media-card",d)}}]);
93
+ `,a.properties={type:{type:String},src:{type:String},name:{type:String},subTitle:{type:String},liked:{type:Boolean},controls:{type:Boolean},selected:{type:Boolean},isPreview:{type:Boolean}},customElements.define("cdtr-editor-media-card",a)}}]);
Binary file
@@ -1,5 +1,5 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5340],{45340(t,e,o){o.r(e),o.d(e,{SettingEditor:()=>r});var n=o(24586),c=o(59929),s=o(9507);class r extends c.WF{constructor(){super(),this.onInspect=this.onInspect.bind(this),this.name="",this.element_ID=" ",this.cmds={onToggleDisplayMode:(t,e)=>{s.Ay.store().execCommand(`show_on_${t}`,e),this[`show_on_${t}`]=e},onChangeElementID(t){s.Ay.store().execCommand("element_ID",t.target.value)},onChangeName(t){s.Ay.store().execCommand("name",t.target.value)}}}onInspect(){if(s.Ay.components.length>0){const t=s.Ay.components[0].props;this.show_on_desktop=!!t.show_on_desktop,this.show_on_tablet=!!t.show_on_tablet,this.show_on_mobile=!!t.show_on_mobile,this.name=t.name||"",this.element_ID=t.element_ID||""}}connectedCallback(){super.connectedCallback(),s.Ay.on("select",this.onInspect),s.Ay.on("update",this.onInspect),this.onInspect()}disconnectedCallback(){super.disconnectedCallback(),s.Ay.off("select",this.onInspect),s.Ay.off("update",this.onInspect)}render(){const t="block"===s.Ay.getSelectedComponent()[0].type;return c.qy`
2
- ${t?c.qy`<cdtr-accordion-item isOpen="true" label="display_mode">
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5340],{45340(t,e,o){o.r(e),o.d(e,{SettingEditor:()=>s});var n=o(59929),c=o(9507);class s extends n.WF{constructor(){super(),this.onInspect=this.onInspect.bind(this),this.name="",this.element_ID=" ",this.cmds={onToggleDisplayMode:(t,e)=>{c.Ay.store().execCommand(`show_on_${t}`,e),this[`show_on_${t}`]=e},onChangeElementID(t){c.Ay.store().execCommand("element_ID",t.target.value)},onChangeName(t){c.Ay.store().execCommand("name",t.target.value)}}}onInspect(){if(c.Ay.components.length>0){const t=c.Ay.components[0].props;this.show_on_desktop=!!t.show_on_desktop,this.show_on_tablet=!!t.show_on_tablet,this.show_on_mobile=!!t.show_on_mobile,this.name=t.name||"",this.element_ID=t.element_ID||""}}connectedCallback(){super.connectedCallback(),c.Ay.on("select",this.onInspect),c.Ay.on("update",this.onInspect),this.onInspect()}disconnectedCallback(){super.disconnectedCallback(),c.Ay.off("select",this.onInspect),c.Ay.off("update",this.onInspect)}render(){const t="block"===c.Ay.getSelectedComponent()[0].type;return n.qy`
2
+ ${t?n.qy`<cdtr-accordion-item isOpen="true" label="display_mode">
3
3
  <cdtr-editor-container>
4
4
  <cdtr-row mt="1" alignItems="center">
5
5
  <cdtr-checkbox
@@ -30,7 +30,7 @@
30
30
  ></cdtr-checkbox>
31
31
  </cdtr-row>
32
32
  </cdtr-editor-container>
33
- </cdtr-accordion-item>`:c.qy``}
33
+ </cdtr-accordion-item>`:n.qy``}
34
34
  <cdtr-accordion-item isOpen="true" label="properties">
35
35
  <cdtr-editor-container>
36
36
  <cdtr-row mt="1">
@@ -59,8 +59,8 @@
59
59
  </cdtr-row>
60
60
  </cdtr-editor-container>
61
61
  </cdtr-accordion-item>
62
- `}}(0,n.A)(r,"properties",{name:{},element_ID:{},show_on_desktop:{},show_on_tablet:{},show_on_mobile:{}}),(0,n.A)(r,"styles",c.AH`
62
+ `}}s.properties={name:{},element_ID:{},show_on_desktop:{},show_on_tablet:{},show_on_mobile:{}},s.styles=n.AH`
63
63
  :host {
64
64
  direction: var(--direction-locale);
65
65
  }
66
- `),customElements.define("cdtr-setting-editor",r)}}]);
66
+ `,customElements.define("cdtr-setting-editor",s)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5391],{85391(n,o,a){var i=a(24586),r=a(59929);class t extends r.WF{constructor(){super()}render(){return r.qy`<div class="background">
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5391],{85391(n,o,a){var i=a(59929);class r extends i.WF{constructor(){super()}render(){return i.qy`<div class="background">
2
2
  <span></span>
3
3
  <span></span>
4
4
  <span></span>
@@ -19,7 +19,7 @@
19
19
  <span></span>
20
20
  <span></span>
21
21
  <span></span>
22
- </div>`}}(0,i.A)(t,"properties",{}),(0,i.A)(t,"styles",r.AH`
22
+ </div>`}}r.properties={},r.styles=i.AH`
23
23
  .background {
24
24
  width: 100vw;
25
25
  min-height: 100vh;
@@ -224,4 +224,4 @@
224
224
  transform: translate3d(0, 0, 1px) rotate(360deg);
225
225
  }
226
226
  }
227
- `),customElements.define("cdtr-glows-preset",t)}}]);
227
+ `,customElements.define("cdtr-glows-preset",r)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5411],{15411(t,i,e){e.r(i),e.d(i,{PropsIcon:()=>r});var h=e(24586),s=e(59929);class r extends s.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return s.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5411],{15411(t,i,e){e.r(i),e.d(i,{PropsIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`
2
2
  <svg
3
3
  style="${this.iconStyle}"
4
4
  width="${this.width}"
@@ -13,7 +13,7 @@
13
13
  d="M5.764 8l-.295-.73a1 1 0 0 1 .553-1.302l9.272-3.746a1 1 0 0 1 1.301.552l5.62 13.908a1 1 0 0 1-.553 1.302L12.39 21.73a1 1 0 0 1-1.302-.553L11 20.96V21H7a1 1 0 0 1-1-1v-.27l-3.35-1.353a1 1 0 0 1-.552-1.302L5.764 8zM8 19h2.209L8 13.533V19zm-2-6.244l-1.673 4.141L6 17.608v-4.852zm1.698-5.309l4.87 12.054 7.418-2.997-4.87-12.053-7.418 2.996zm2.978 2.033a1 1 0 1 1-.749-1.855 1 1 0 0 1 .75 1.855z"
14
14
  />
15
15
  </svg>
16
- `}}(0,h.A)(r,"styles",s.AH`
16
+ `}}s.styles=h.AH`
17
17
  :host {
18
18
  display: inherit;
19
19
  --cdtr-icon-width: 24px;
@@ -24,4 +24,4 @@
24
24
  height: var(--cdtr-icon-height);
25
25
  color: var(--cdtr-icon-color);
26
26
  }
27
- `),(0,h.A)(r,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-props-icon",r)}}]);
27
+ `,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-props-icon",s)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5428],{85428(t,i,e){e.r(i),e.d(i,{LinkIcon:()=>r});var h=e(24586),s=e(59929);class r extends s.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return s.qy`<svg
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5428],{85428(t,i,e){e.r(i),e.d(i,{LinkIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  viewBox="0 0 24 24"
4
4
  style="${this.iconStyle}"
@@ -9,7 +9,7 @@
9
9
  <path
10
10
  d="M17.657 14.828l-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829l-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"
11
11
  />
12
- </svg>`}}(0,h.A)(r,"styles",s.AH`
12
+ </svg>`}}s.styles=h.AH`
13
13
  :host {
14
14
  display: inherit;
15
15
  --cdtr-icon-width: 20px;
@@ -20,4 +20,4 @@
20
20
  height: var(--cdtr-icon-height);
21
21
  color: var(--cdtr-icon-color);
22
22
  }
23
- `),(0,h.A)(r,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-link-icon",r)}}]);
23
+ `,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-link-icon",s)}}]);
Binary file
@@ -1,9 +1,9 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5501],{35501(t,e,i){i.r(e),i.d(e,{ListPicker:()=>a});var l=i(24586),s=i(59929),r=i(21421);class a extends s.WF{constructor(){super(),(0,l.A)(this,"storage",{}),(0,l.A)(this,"createdEvent",null),(0,l.A)(this,"inputRef",(0,r._)()),(0,l.A)(this,"modalRef",(0,r._)()),this.level=0,this.storage={},this.filtered=[],this.list=[],this.dispatch=this.dispatch.bind(this)}disconnectedCallback(){super.disconnectedCallback()}connectedCallback(){super.connectedCallback(),this.storage[0]||(this.storage={0:[...this.list]}),this.createdEvent=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0})}findSelected(){if(this.selected){const t=(e,i)=>{for(const l of e){if(l.value===this.selected)return this.level=i,this.storage[i]=[...e],!0;if(l.children&&t(l.children,i+1))return!0}return!1};t(this.storage[0],0)}}onSearch(t){const e=t.target.value;if(""===e)return void(this.filtered=[]);const i=function(t){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=[];for(const r of t){if(r.label.toLowerCase().includes(e.toLowerCase())){let t=s.find(t=>t.parentLabel===l);t||(t={parentLabel:l,items:[]},s.push(t)),t.items.push(r)}r.children&&(s=s.concat(i(r.children,r.label)))}return s};this.filtered=i(this.storage[0])}close(){this.opened=!1,this.modalRef.value?.close()}dispatch(t){this.value=t,this.createdEvent&&this.dispatchEvent(this.createdEvent),this.inputRef&&this.inputRef.value&&(this.inputRef.value.value=""),this.close(),this.filtered=[]}updated(t){t.has("selected")&&this.findSelected()}render(){const t=s.qy`${(t=>this.filtered&&this.filtered.length>0?this.filtered.map(t=>{let{items:e,parentLabel:i}=t;return s.qy`<h3
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5501],{35501(t,e,i){i.r(e),i.d(e,{ListPicker:()=>r});var l=i(59929),s=i(21421);class r extends l.WF{constructor(){super(),this.storage={},this.createdEvent=null,this.inputRef=(0,s._)(),this.modalRef=(0,s._)(),this.level=0,this.storage={},this.filtered=[],this.list=[],this.dispatch=this.dispatch.bind(this)}disconnectedCallback(){super.disconnectedCallback()}connectedCallback(){super.connectedCallback(),this.storage[0]||(this.storage={0:[...this.list]}),this.createdEvent=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0})}findSelected(){if(this.selected){const t=(e,i)=>{for(const l of e){if(l.value===this.selected)return this.level=i,this.storage[i]=[...e],!0;if(l.children&&t(l.children,i+1))return!0}return!1};t(this.storage[0],0)}}onSearch(t){const e=t.target.value;if(""===e)return void(this.filtered=[]);const i=function(t){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=[];for(const r of t){if(r.label.toLowerCase().includes(e.toLowerCase())){let t=s.find(t=>t.parentLabel===l);t||(t={parentLabel:l,items:[]},s.push(t)),t.items.push(r)}r.children&&(s=s.concat(i(r.children,r.label)))}return s};this.filtered=i(this.storage[0])}close(){this.opened=!1,this.modalRef.value?.close()}dispatch(t){this.value=t,this.createdEvent&&this.dispatchEvent(this.createdEvent),this.inputRef&&this.inputRef.value&&(this.inputRef.value.value=""),this.close(),this.filtered=[]}updated(t){t.has("selected")&&this.findSelected()}render(){const t=l.qy`${(t=>this.filtered&&this.filtered.length>0?this.filtered.map(t=>{let{items:e,parentLabel:i}=t;return l.qy`<h3
2
2
  style="font-size:16px;text-align:var(--text-align-locale)"
3
3
  >
4
4
  ${i}
5
5
  </h3>
6
- ${e.map(t=>s.qy` <cdtr-dropdown-item
6
+ ${e.map(t=>l.qy` <cdtr-dropdown-item
7
7
  class="${t.value===this.selected?"selected":""}"
8
8
  @click=${()=>this.dispatch(t.value)}
9
9
  .value="${t.value}"
@@ -12,7 +12,7 @@
12
12
  <lang-text text="${t.label}"></lang-text>
13
13
  </cdtr-row>
14
14
  </cdtr-dropdown-item>`)}
15
- <cdtr-divider></cdtr-divider>`}):t.map(t=>t.children&&t.children.length>0?s.qy`
15
+ <cdtr-divider></cdtr-divider>`}):t.map(t=>t.children&&t.children.length>0?l.qy`
16
16
  <cdtr-dropdown-item
17
17
  class="slideFromLeft"
18
18
  @click=${()=>{this.level++,this.storage[this.level]=[...t.children],this.list=t.children}}
@@ -38,7 +38,7 @@
38
38
  </svg>
39
39
  </cdtr-row>
40
40
  </cdtr-dropdown-item>
41
- `:s.qy`<cdtr-dropdown-item
41
+ `:l.qy`<cdtr-dropdown-item
42
42
  class="slideFromLeft ${t.value===this.selected?"selected":""}"
43
43
  @click=${()=>this.dispatch(t.value)}
44
44
  .value="${t.value}"
@@ -46,12 +46,12 @@
46
46
  ${t.value===this.selected?" ✓ ":""}${" "}
47
47
  <lang-text text="${t.label}"></lang-text>
48
48
  </cdtr-row>
49
- </cdtr-dropdown-item>`))(this.filtered.length>0?this.filtered:this.storage[this.level])}`,e=s.qy`<cdtr-row
49
+ </cdtr-dropdown-item>`))(this.filtered.length>0?this.filtered:this.storage[this.level])}`,e=l.qy`<cdtr-row
50
50
  slot="header"
51
51
  class="header"
52
52
  justify="flex-start"
53
53
  >
54
- ${this.level>0?s.qy` <paper-button
54
+ ${this.level>0?l.qy` <paper-button
55
55
  @click=${t=>{this.level--,this.level<0?(this.level=0,this.list=this.storage[this.level],this.close()):this.list=this.storage[this.level]}}
56
56
  >
57
57
  <cdtr-arrow-icon></cdtr-arrow-icon>
@@ -62,22 +62,22 @@
62
62
  ></lang-text>
63
63
  </cdtr-title>
64
64
  </paper-button>`:""}
65
- ${0===this.level?s.qy`<cdtr-col sm="12"
65
+ ${0===this.level?l.qy`<cdtr-col sm="12"
66
66
  ><h3
67
67
  style="padding:0 3px;text-align:var(--text-align-locale);font-size:20px !important;"
68
68
  >
69
69
  <lang-text text="${this.heading}"></lang-text>
70
70
  </h3>
71
71
  </cdtr-col>`:""}
72
- ${this.hasSearch&&s.qy`<cdtr-input
73
- ${(0,r.K)(this.inputRef)}
72
+ ${this.hasSearch&&l.qy`<cdtr-input
73
+ ${(0,s.K)(this.inputRef)}
74
74
  placeholder="search"
75
75
  @input=${this.onSearch}
76
76
  style="width:100%"
77
77
  ></cdtr-input>`}
78
78
  </cdtr-row>
79
- <div style="direction:var(--direction);" slot="content">${t}</div>`;return this.hasModal?s.qy` <cdtr-draggable-box
80
- ${(0,r.K)(this.modalRef)}
79
+ <div style="direction:var(--direction);" slot="content">${t}</div>`;return this.hasModal?l.qy` <cdtr-draggable-box
80
+ ${(0,s.K)(this.modalRef)}
81
81
  style="direction:var(--direction);"
82
82
  .height=${this.height||300}
83
83
  .left=${this.left}
@@ -90,7 +90,7 @@
90
90
  ><lang-text text="${this.title}"></lang-text
91
91
  ></cdtr-dropdown-button>
92
92
  ${e}
93
- </cdtr-draggable-box>`:e}}(0,l.A)(a,"properties",{value:{type:String,reflect:!1},title:{type:String,reflect:!1},heading:{type:String},list:{type:Array},level:{type:Number},left:{type:String},top:{type:String},opened:{type:Boolean},hasModal:{type:Boolean},hasSearch:{type:Boolean},selected:{type:String},height:{type:Number},filtered:{type:Array}}),(0,l.A)(a,"styles",s.AH`
93
+ </cdtr-draggable-box>`:e}}r.properties={value:{type:String,reflect:!1},title:{type:String,reflect:!1},heading:{type:String},list:{type:Array},level:{type:Number},left:{type:String},top:{type:String},opened:{type:Boolean},hasModal:{type:Boolean},hasSearch:{type:Boolean},selected:{type:String},height:{type:Number},filtered:{type:Array}},r.styles=l.AH`
94
94
  .selected {
95
95
  background: #f1f1f1 !important;
96
96
  border-radius: 5px;
@@ -109,4 +109,4 @@
109
109
  transform: translateX(0);
110
110
  }
111
111
  }
112
- `),customElements.define("cdtr-list-picker",a)}}]);
112
+ `,customElements.define("cdtr-list-picker",r)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5530],{55530(t,e,i){i.r(e),i.d(e,{HeartIcon:()=>h});var r=i(24586),s=i(59929);class h extends s.WF{constructor(){super(),this.iconStyle="",this.width="18"}render(){return this.full?s.qy` <svg
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5530],{55530(t,e,i){i.r(e),i.d(e,{HeartIcon:()=>s});var r=i(59929);class s extends r.WF{constructor(){super(),this.iconStyle="",this.width="18"}render(){return this.full?r.qy` <svg
2
2
  style="${this.iconStyle}"
3
3
  width="${this.width}"
4
4
  stroke="currentColor"
@@ -10,7 +10,7 @@
10
10
  <path
11
11
  d="M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"
12
12
  ></path>
13
- </svg>`:s.qy`<svg
13
+ </svg>`:r.qy`<svg
14
14
  style="${this.iconStyle}"
15
15
  width="${this.width}"
16
16
  stroke="currentColor"
@@ -22,7 +22,7 @@
22
22
  <path
23
23
  d="M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"
24
24
  ></path>
25
- </svg>`}}(0,r.A)(h,"styles",s.AH`
25
+ </svg>`}}s.styles=r.AH`
26
26
  :host {
27
27
  display:inherit;
28
28
  --cdtr-icon-width: 18px;
@@ -33,4 +33,4 @@
33
33
  height: var(--cdtr-icon-height);
34
34
  fill: var(--cdtr-icon-color);
35
35
  }
36
- `),(0,r.A)(h,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String},full:{type:Boolean}}),customElements.define("cdtr-heart-icon",h)}}]);
36
+ `,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String},full:{type:Boolean}},customElements.define("cdtr-heart-icon",s)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5666],{35666(t,e,i){i.r(e),i.d(e,{LineIcon:()=>s});var r=i(24586),n=i(59929);class s extends n.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return n.qy`<svg
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5666],{35666(t,e,i){i.r(e),i.d(e,{LineIcon:()=>n});var r=i(59929);class n extends r.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return r.qy`<svg
2
2
  width="28"
3
3
  height="2"
4
4
  viewBox="0 0 28 2"
@@ -14,7 +14,7 @@
14
14
  stroke-width="2"
15
15
  stroke-linecap="round"
16
16
  />
17
- </svg> `}}(0,r.A)(s,"styles",n.AH`
17
+ </svg> `}}n.styles=r.AH`
18
18
  :host {
19
19
  display: inherit;
20
20
  --cdtr-icon-width: 20px;
@@ -25,4 +25,4 @@
25
25
  height: var(--cdtr-icon-height);
26
26
  color: var(--cdtr-icon-color);
27
27
  }
28
- `),(0,r.A)(s,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-line-icon",s)}}]);
28
+ `,n.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-line-icon",n)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[567],{70567(t,e,n){n.r(e),n.d(e,{TextPromptEditor:()=>p});var r,a,o=n(24586),i=n(86959),s=n(59929);let p=(0,n(49410).EM)("cdtr-text-prompt-editor")((a=class extends s.WF{constructor(){super(),this.prompt=localStorage.getItem("textPromptEditor_prompt")||"",this.generatedText="",this.isLoading=!1,this.context="",this.businessType=localStorage.getItem("textPromptEditor_businessType")||"",this.businessName=localStorage.getItem("textPromptEditor_businessName")||"",this.includeContext="true"===localStorage.getItem("textPromptEditor_includeContext")||!1,this.url=localStorage.getItem("textPromptEditor_url")||"",this.detectCurrentElementType()}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.detectCurrentElementType()},100)}detectCurrentElementType(){try{const t=window.getSelection();if(t&&t.rangeCount>0){const e=t.getRangeAt(0).commonAncestorContainer;let n=e.nodeType===Node.TEXT_NODE?e.parentElement:e;for(;n&&n!==document.body;){if(n.tagName&&/^h[1-6]$/i.test(n.tagName)){const t=n.parentElement,e=Array.from(t?.children||[]),r=e.some(t=>t!==n&&/^h[1-6]$/i.test(t.tagName)),a=e.some(t=>t!==n&&/^p$|^div$/i.test(t.tagName));return!a||r&&!a?(this.contentType="title",void console.log("TextPromptEditor: Detected standalone heading from DOM")):(this.contentType="paragraph",void console.log("TextPromptEditor: Detected heading within paragraph structure"))}this.contentType="paragraph",n=n.parentElement}}this.contentType||(this.contentType="paragraph",console.log("TextPromptEditor: Defaulting to paragraph"))}catch(t){console.warn("Error detecting current element type:",t),this.contentType||(this.contentType="paragraph")}}handleIncludeContextChange(t){this.includeContext=!t.target.checked,localStorage.setItem("textPromptEditor_includeContext",this.includeContext)}handleContentTypeChange(t){this.contentType=t,this.dispatchEvent(new CustomEvent("content-type-changed",{detail:{contentType:this.contentType},bubbles:!0,composed:!0}))}handlePromptChange(t){this.prompt=t.target.value,localStorage.setItem("textPromptEditor_prompt",this.prompt);["כתוב כותרת","כתוב תמונה","כתבי כותרת","write heading"].some(t=>this.prompt.startsWith(t))&&this.handleContentTypeChange("title")}handleBusinessTypeChange(t){this.businessType=t.target.value,localStorage.setItem("textPromptEditor_businessType",this.businessType)}handleBusinessNameChange(t){this.businessName=t.target.value,localStorage.setItem("textPromptEditor_businessName",this.businessName)}handleUrlChange(t){this.url=t.target.value,localStorage.setItem("textPromptEditor_url",this.url)}async handleGenerate(){this.isLoading=!0,this.generatedText="";try{if("title"===this.contentType){Array.from(document.querySelectorAll(".text-component")).map(t=>t.textContent).join("\n")}this.context.length>1500&&(this.context=this.context.slice(0,1500));const t=i.XW.agent_url,e=await fetch(t+"prompt/text",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:this.prompt,context:this.includeContext?this.context:"",businessType:this.businessType,businessName:this.businessName,contentType:this.contentType,url:this.url,options:{maxTokens:1e3,temperature:0,model:"gpt-3.5-turbo"}})});if(!e.ok)throw new Error("Failed to generate text");const n=e.body.getReader(),r=new TextDecoder;let a="";for(;;){const{done:t,value:e}=await n.read();if(t){this.dispatchEvent(new CustomEvent("text-generation-complete",{detail:{text:this.generatedText},bubbles:!0,composed:!0}));break}a+=r.decode(e,{stream:!0});const o=a.split("\n\n");for(let t=0;t<o.length-1;t++){const e=o[t];if(e.startsWith("data: "))try{const t=e.slice(6),n=JSON.parse(t);if("start"===n.metadata?.type){this.generatedText="",this.dispatchEvent(new CustomEvent("text-generation-start",{detail:{model:n.metadata.model},bubbles:!0,composed:!0}));continue}n.text&&(this.generatedText+=n.text,this.dispatchEvent(new CustomEvent("text-generation-chunk",{detail:{chunk:n.text,fullText:this.generatedText},bubbles:!0,composed:!0}))),"complete"===n.status&&(this.generatedText=this.generatedText.replace(/^"|"$/g,""),this.dispatchEvent(new CustomEvent("text-generation-complete",{detail:{text:this.generatedText},bubbles:!0,composed:!0})))}catch(t){console.error("Error parsing JSON:",t)}}a=o[o.length-1]}}catch(t){console.error("Error generating text:",t),this.dispatchEvent(new CustomEvent("text-generation-error",{detail:{error:t.message},bubbles:!0,composed:!0}))}finally{this.isLoading=!1}}render(){const t=this.contentType;return s.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[567],{70567(t,e,n){n.r(e),n.d(e,{TextPromptEditor:()=>s});var r,a,o=n(86959),i=n(59929);let s=(0,n(49410).EM)("cdtr-text-prompt-editor")(((a=class extends i.WF{constructor(){super(),this.prompt=localStorage.getItem("textPromptEditor_prompt")||"",this.generatedText="",this.isLoading=!1,this.context="",this.businessType=localStorage.getItem("textPromptEditor_businessType")||"",this.businessName=localStorage.getItem("textPromptEditor_businessName")||"",this.includeContext="true"===localStorage.getItem("textPromptEditor_includeContext")||!1,this.url=localStorage.getItem("textPromptEditor_url")||"",this.detectCurrentElementType()}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.detectCurrentElementType()},100)}detectCurrentElementType(){try{const t=window.getSelection();if(t&&t.rangeCount>0){const e=t.getRangeAt(0).commonAncestorContainer;let n=e.nodeType===Node.TEXT_NODE?e.parentElement:e;for(;n&&n!==document.body;){if(n.tagName&&/^h[1-6]$/i.test(n.tagName)){const t=n.parentElement,e=Array.from(t?.children||[]),r=e.some(t=>t!==n&&/^h[1-6]$/i.test(t.tagName)),a=e.some(t=>t!==n&&/^p$|^div$/i.test(t.tagName));return!a||r&&!a?(this.contentType="title",void console.log("TextPromptEditor: Detected standalone heading from DOM")):(this.contentType="paragraph",void console.log("TextPromptEditor: Detected heading within paragraph structure"))}this.contentType="paragraph",n=n.parentElement}}this.contentType||(this.contentType="paragraph",console.log("TextPromptEditor: Defaulting to paragraph"))}catch(t){console.warn("Error detecting current element type:",t),this.contentType||(this.contentType="paragraph")}}handleIncludeContextChange(t){this.includeContext=!t.target.checked,localStorage.setItem("textPromptEditor_includeContext",this.includeContext)}handleContentTypeChange(t){this.contentType=t,this.dispatchEvent(new CustomEvent("content-type-changed",{detail:{contentType:this.contentType},bubbles:!0,composed:!0}))}handlePromptChange(t){this.prompt=t.target.value,localStorage.setItem("textPromptEditor_prompt",this.prompt);["כתוב כותרת","כתוב תמונה","כתבי כותרת","write heading"].some(t=>this.prompt.startsWith(t))&&this.handleContentTypeChange("title")}handleBusinessTypeChange(t){this.businessType=t.target.value,localStorage.setItem("textPromptEditor_businessType",this.businessType)}handleBusinessNameChange(t){this.businessName=t.target.value,localStorage.setItem("textPromptEditor_businessName",this.businessName)}handleUrlChange(t){this.url=t.target.value,localStorage.setItem("textPromptEditor_url",this.url)}async handleGenerate(){this.isLoading=!0,this.generatedText="";try{if("title"===this.contentType){Array.from(document.querySelectorAll(".text-component")).map(t=>t.textContent).join("\n")}this.context.length>1500&&(this.context=this.context.slice(0,1500));const t=o.XW.agent_url,e=await fetch(t+"prompt/text",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:this.prompt,context:this.includeContext?this.context:"",businessType:this.businessType,businessName:this.businessName,contentType:this.contentType,url:this.url,options:{maxTokens:1e3,temperature:0,model:"gpt-3.5-turbo"}})});if(!e.ok)throw new Error("Failed to generate text");const n=e.body.getReader(),r=new TextDecoder;let a="";for(;;){const{done:t,value:e}=await n.read();if(t){this.dispatchEvent(new CustomEvent("text-generation-complete",{detail:{text:this.generatedText},bubbles:!0,composed:!0}));break}a+=r.decode(e,{stream:!0});const o=a.split("\n\n");for(let t=0;t<o.length-1;t++){const e=o[t];if(e.startsWith("data: "))try{const t=e.slice(6),n=JSON.parse(t);if("start"===n.metadata?.type){this.generatedText="",this.dispatchEvent(new CustomEvent("text-generation-start",{detail:{model:n.metadata.model},bubbles:!0,composed:!0}));continue}n.text&&(this.generatedText+=n.text,this.dispatchEvent(new CustomEvent("text-generation-chunk",{detail:{chunk:n.text,fullText:this.generatedText},bubbles:!0,composed:!0}))),"complete"===n.status&&(this.generatedText=this.generatedText.replace(/^"|"$/g,""),this.dispatchEvent(new CustomEvent("text-generation-complete",{detail:{text:this.generatedText},bubbles:!0,composed:!0})))}catch(t){console.error("Error parsing JSON:",t)}}a=o[o.length-1]}}catch(t){console.error("Error generating text:",t),this.dispatchEvent(new CustomEvent("text-generation-error",{detail:{error:t.message},bubbles:!0,composed:!0}))}finally{this.isLoading=!1}}render(){const t=this.contentType;return i.qy`
2
2
  <cdtr-editor-container>
3
3
  <div class="editor-container">
4
4
  <div class="prompt-section">
@@ -78,21 +78,21 @@
78
78
  ?disabled=${this.isLoading||!this.prompt}
79
79
  @click=${this.handleGenerate}
80
80
  >
81
- ${this.isLoading?s.qy`
81
+ ${this.isLoading?i.qy`
82
82
  <div class="loading-spinner"></div>
83
83
  <lang-text text="creating_magic"></lang-text>
84
- `:s.qy` <lang-text text="generate_content"></lang-text> `}
84
+ `:i.qy` <lang-text text="generate_content"></lang-text> `}
85
85
  </paper-button>
86
86
  </div>
87
87
 
88
- ${this.generatedText?s.qy`
88
+ ${this.generatedText?i.qy`
89
89
  <div class="result-section">
90
90
  <div class="result-content">${this.generatedText}</div>
91
91
  </div>
92
92
  `:""}
93
93
  </div>
94
94
  </cdtr-editor-container>
95
- `}},(0,o.A)(a,"properties",{prompt:{type:String},generatedText:{type:String},isLoading:{type:Boolean},context:{type:String},includeContext:{type:Boolean},businessType:{type:String},businessName:{type:String},contentType:{type:String},url:{type:String}}),(0,o.A)(a,"styles",s.AH`
95
+ `}}).properties={prompt:{type:String},generatedText:{type:String},isLoading:{type:Boolean},context:{type:String},includeContext:{type:Boolean},businessType:{type:String},businessName:{type:String},contentType:{type:String},url:{type:String}},a.styles=i.AH`
96
96
  :host {
97
97
  --primary: #7c3aed;
98
98
  --primary-light: #a78bfa;
@@ -436,4 +436,4 @@
436
436
  opacity: 0.3;
437
437
  }
438
438
  }
439
- `),r=a))||r}}]);
439
+ `,r=a))||r}}]);
Binary file
@@ -1,13 +1,13 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[578],{10578(t,e,i){i.r(e),i.d(e,{default:()=>r});var o=i(24586),s=i(59929);class n extends s.WF{constructor(){super(),this.onInput=this.onInput.bind(this),this.isLocked=!0,this.top=0,this.left=0,this.bottom=0,this.right=0}connectedCallback(){super.connectedCallback()}onInput(t,e){t.preventDefault();const i=t.target.value,o=i;this.isLocked?(this.top=i,this.left=i,this.bottom=i,this.right=i,this.json={top:o,left:o,bottom:o,right:o}):(this.top=parseInt(this.top||0)||0,this.left=parseInt(this.left||0)||0,this.bottom=parseInt(this.bottom||0)||0,this.right=parseInt(this.right||0)||0,this.json={top:parseInt(this.top||0)||0,left:parseInt(this.left||0)||0,bottom:parseInt(this.bottom||0)||0,right:parseInt(this.right||0)||0},this.json[e]=o),this.value=i,this.directionKey=e;const s=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(s)}resolveIcon(t){let e;switch(t){case"top":e="arrowUp";break;case"left":e="arrowLeft";break;case"bottom":e="arrowDown";break;case"right":e="arrowRight"}return s.qy`<cdtr-icon
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[578],{10578(t,e,i){i.r(e),i.d(e,{default:()=>n});var o=i(59929);class s extends o.WF{constructor(){super(),this.onInput=this.onInput.bind(this),this.isLocked=!0,this.top=0,this.left=0,this.bottom=0,this.right=0}connectedCallback(){super.connectedCallback()}onInput(t,e){t.preventDefault();const i=t.target.value,o=i;this.isLocked?(this.top=i,this.left=i,this.bottom=i,this.right=i,this.json={top:o,left:o,bottom:o,right:o}):(this.top=parseInt(this.top||0)||0,this.left=parseInt(this.left||0)||0,this.bottom=parseInt(this.bottom||0)||0,this.right=parseInt(this.right||0)||0,this.json={top:parseInt(this.top||0)||0,left:parseInt(this.left||0)||0,bottom:parseInt(this.bottom||0)||0,right:parseInt(this.right||0)||0},this.json[e]=o),this.value=i,this.directionKey=e;const s=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(s)}resolveIcon(t){let e;switch(t){case"top":e="arrowUp";break;case"left":e="arrowLeft";break;case"bottom":e="arrowDown";break;case"right":e="arrowRight"}return o.qy`<cdtr-icon
2
2
  width="15"
3
3
  height="15"
4
4
  icon="${e}"
5
- ></cdtr-icon>`}onChangeLock(){this.isLocked=!this.isLocked}render(){this.isLocked=this.top===this.left&&this.bottom===this.right&&this.top===this.bottom;this.onChange;const t=this.onInput;return s.qy`<cdtr-row
5
+ ></cdtr-icon>`}onChangeLock(){this.isLocked=!this.isLocked}render(){this.isLocked=this.top===this.left&&this.bottom===this.right&&this.top===this.bottom;this.onChange;const t=this.onInput;return o.qy`<cdtr-row
6
6
  alignItems="center"
7
7
  spacing="3px"
8
8
  style="position:relative;"
9
9
  >
10
- ${["top","left","bottom","right"].map(e=>s.qy`<cdtr-col>
10
+ ${["top","left","bottom","right"].map(e=>o.qy`<cdtr-col>
11
11
  ${this.resolveIcon(e)}
12
12
  <cdtr-number-input
13
13
  .type=${"number"}
@@ -26,4 +26,4 @@
26
26
  .icon="${this.isLocked?"lock":"unlock"}"
27
27
  ></cdtr-icon>
28
28
  </cdtr-button>
29
- </cdtr-row>`}}(0,o.A)(n,"properties",{value:{type:Number},json:{type:Object},onChange:{type:Function},top:{type:Number},left:{type:Number},bottom:{type:Number},right:{type:Number},isLocked:{type:Boolean},directionKey:{type:String}});const r=n}}]);
29
+ </cdtr-row>`}}s.properties={value:{type:Number},json:{type:Object},onChange:{type:Function},top:{type:Number},left:{type:Number},bottom:{type:Number},right:{type:Number},isLocked:{type:Boolean},directionKey:{type:String}};const n=s}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5839],{15839(t,e,i){i.r(e),i.d(e,{DevicesIcon:()=>s});var r=i(24586),h=i(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy` <svg
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5839],{15839(t,e,i){i.r(e),i.d(e,{DevicesIcon:()=>h});var r=i(59929);class h extends r.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return r.qy` <svg
2
2
  width="37"
3
3
  height="28"
4
4
  viewBox="0 0 37 28"
@@ -44,4 +44,4 @@
44
44
  stroke-width="2"
45
45
  />
46
46
  <circle cx="22" cy="24" r="1" fill="var(--top-navbar)" />
47
- </svg>`}}(0,r.A)(s,"styles",h.AH``),(0,r.A)(s,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-devices-icon",s)}}]);
47
+ </svg>`}}h.styles=r.AH``,h.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-devices-icon",h)}}]);
Binary file