@creaditor/web-starterkit 1.0.66 → 1.0.68

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 (495) hide show
  1. package/dist/{8854.creaditor.bundle.js → 1023.creaditor.bundle.js} +1 -1
  2. package/dist/1023.creaditor.bundle.js.gz +0 -0
  3. package/dist/{9041.creaditor.bundle.js → 115.creaditor.bundle.js} +1 -1
  4. package/dist/115.creaditor.bundle.js.gz +0 -0
  5. package/dist/{2963.creaditor.bundle.js → 118.creaditor.bundle.js} +1 -1
  6. package/dist/118.creaditor.bundle.js.gz +0 -0
  7. package/dist/{8042.creaditor.bundle.js → 128.creaditor.bundle.js} +1 -1
  8. package/dist/128.creaditor.bundle.js.gz +0 -0
  9. package/dist/1292.creaditor.bundle.js +1 -0
  10. package/dist/1292.creaditor.bundle.js.gz +0 -0
  11. package/dist/{8916.creaditor.bundle.js → 1294.creaditor.bundle.js} +1 -1
  12. package/dist/1294.creaditor.bundle.js.gz +0 -0
  13. package/dist/1317.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  14. package/dist/1317.creaditor.bundle.js.gz +0 -0
  15. package/dist/{2154.creaditor.bundle.js → 1336.creaditor.bundle.js} +1 -1
  16. package/dist/1336.creaditor.bundle.js.gz +0 -0
  17. package/dist/{2350.creaditor.bundle.js → 1355.creaditor.bundle.js} +1 -1
  18. package/dist/1355.creaditor.bundle.js.gz +0 -0
  19. package/dist/{3553.creaditor.bundle.js → 1364.creaditor.bundle.js} +1 -1
  20. package/dist/1364.creaditor.bundle.js.gz +0 -0
  21. package/dist/1381.creaditor.bundle.js +1 -0
  22. package/dist/1381.creaditor.bundle.js.gz +0 -0
  23. package/dist/1396.creaditor.bundle.js.gz +0 -0
  24. package/dist/{271.creaditor.bundle.js → 1397.creaditor.bundle.js} +1 -1
  25. package/dist/1397.creaditor.bundle.js.gz +0 -0
  26. package/dist/{5411.creaditor.bundle.js → 1426.creaditor.bundle.js} +1 -1
  27. package/dist/1426.creaditor.bundle.js.gz +0 -0
  28. package/dist/145.creaditor.bundle.js +6 -0
  29. package/dist/145.creaditor.bundle.js.gz +0 -0
  30. package/dist/{112.creaditor.bundle.js → 1450.creaditor.bundle.js} +1 -1
  31. package/dist/1450.creaditor.bundle.js.gz +0 -0
  32. package/dist/{6151.creaditor.bundle.js → 1606.creaditor.bundle.js} +1 -1
  33. package/dist/1606.creaditor.bundle.js.gz +0 -0
  34. package/dist/166.creaditor.bundle.js +34 -0
  35. package/dist/166.creaditor.bundle.js.gz +0 -0
  36. package/dist/168.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  37. package/dist/168.creaditor.bundle.js.gz +0 -0
  38. package/dist/{767.creaditor.bundle.js → 1691.creaditor.bundle.js} +1 -1
  39. package/dist/1691.creaditor.bundle.js.gz +0 -0
  40. package/dist/{3521.creaditor.bundle.js → 1694.creaditor.bundle.js} +2 -2
  41. package/dist/1694.creaditor.bundle.js.gz +0 -0
  42. package/dist/182.creaditor.bundle.js +12 -0
  43. package/dist/182.creaditor.bundle.js.gz +0 -0
  44. package/dist/{3827.creaditor.bundle.js → 1970.creaditor.bundle.js} +1 -1
  45. package/dist/1970.creaditor.bundle.js.gz +0 -0
  46. package/dist/{2234.creaditor.bundle.js → 2079.creaditor.bundle.js} +1 -1
  47. package/dist/2079.creaditor.bundle.js.gz +0 -0
  48. package/dist/{175.creaditor.bundle.js → 2194.creaditor.bundle.js} +1 -1
  49. package/dist/2194.creaditor.bundle.js.gz +0 -0
  50. package/dist/{2397.creaditor.bundle.js → 2218.creaditor.bundle.js} +1 -1
  51. package/dist/2218.creaditor.bundle.js.gz +0 -0
  52. package/dist/{8646.creaditor.bundle.js → 2232.creaditor.bundle.js} +1 -1
  53. package/dist/2232.creaditor.bundle.js.gz +0 -0
  54. package/dist/{5839.creaditor.bundle.js → 2260.creaditor.bundle.js} +1 -1
  55. package/dist/2260.creaditor.bundle.js.gz +0 -0
  56. package/dist/{7466.creaditor.bundle.js → 2268.creaditor.bundle.js} +1 -1
  57. package/dist/2268.creaditor.bundle.js.gz +0 -0
  58. package/dist/{7493.creaditor.bundle.js → 2318.creaditor.bundle.js} +1 -1
  59. package/dist/2318.creaditor.bundle.js.gz +0 -0
  60. package/dist/{353.creaditor.bundle.js → 2346.creaditor.bundle.js} +1 -1
  61. package/dist/2346.creaditor.bundle.js.gz +0 -0
  62. package/dist/235.creaditor.bundle.js.gz +0 -0
  63. package/dist/{4413.creaditor.bundle.js → 2358.creaditor.bundle.js} +1 -1
  64. package/dist/2358.creaditor.bundle.js.gz +0 -0
  65. package/dist/2377.creaditor.bundle.js +86 -57
  66. package/dist/2377.creaditor.bundle.js.gz +0 -0
  67. package/dist/{3971.creaditor.bundle.js → 2422.creaditor.bundle.js} +1 -1
  68. package/dist/2422.creaditor.bundle.js.gz +0 -0
  69. package/dist/2550.creaditor.bundle.js.gz +0 -0
  70. package/dist/{6442.creaditor.bundle.js → 2608.creaditor.bundle.js} +1 -1
  71. package/dist/2608.creaditor.bundle.js.gz +0 -0
  72. package/dist/{2956.creaditor.bundle.js → 27.creaditor.bundle.js} +1 -1
  73. package/dist/27.creaditor.bundle.js.gz +0 -0
  74. package/dist/2706.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  75. package/dist/2706.creaditor.bundle.js.gz +0 -0
  76. package/dist/2717.creaditor.bundle.js.gz +0 -0
  77. package/dist/2837.creaditor.bundle.js +1 -1
  78. package/dist/2837.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  79. package/dist/2837.creaditor.bundle.js.gz +0 -0
  80. package/dist/{976.creaditor.bundle.js → 2923.creaditor.bundle.js} +1 -1
  81. package/dist/2923.creaditor.bundle.js.gz +0 -0
  82. package/dist/{2655.creaditor.bundle.js → 2924.creaditor.bundle.js} +2 -2
  83. package/dist/2924.creaditor.bundle.js.gz +0 -0
  84. package/dist/{2547.creaditor.bundle.js → 2960.creaditor.bundle.js} +1 -1
  85. package/dist/2960.creaditor.bundle.js.gz +0 -0
  86. package/dist/{8196.creaditor.bundle.js → 2992.creaditor.bundle.js} +1 -1
  87. package/dist/2992.creaditor.bundle.js.gz +0 -0
  88. package/dist/3105.creaditor.bundle.js.gz +0 -0
  89. package/dist/{7155.creaditor.bundle.js → 3126.creaditor.bundle.js} +1 -1
  90. package/dist/3126.creaditor.bundle.js.gz +0 -0
  91. package/dist/3252.creaditor.bundle.js +1 -0
  92. package/dist/3252.creaditor.bundle.js.gz +0 -0
  93. package/dist/3274.creaditor.bundle.js +1 -0
  94. package/dist/3274.creaditor.bundle.js.gz +0 -0
  95. package/dist/3278.creaditor.bundle.js +87 -0
  96. package/dist/3278.creaditor.bundle.js.gz +0 -0
  97. package/dist/333.creaditor.bundle.js +1 -0
  98. package/dist/333.creaditor.bundle.js.gz +0 -0
  99. package/dist/{8251.creaditor.bundle.js → 3382.creaditor.bundle.js} +1 -1
  100. package/dist/3382.creaditor.bundle.js.gz +0 -0
  101. package/dist/{4114.creaditor.bundle.js → 3445.creaditor.bundle.js} +1 -1
  102. package/dist/3445.creaditor.bundle.js.gz +0 -0
  103. package/dist/3462.creaditor.bundle.js +288 -0
  104. package/dist/3462.creaditor.bundle.js.gz +0 -0
  105. package/dist/{8878.creaditor.bundle.js → 3515.creaditor.bundle.js} +1 -1
  106. package/dist/3515.creaditor.bundle.js.gz +0 -0
  107. package/dist/{5133.creaditor.bundle.js → 3535.creaditor.bundle.js} +1 -1
  108. package/dist/3535.creaditor.bundle.js.gz +0 -0
  109. package/dist/3545.creaditor.bundle.js +1 -1
  110. package/dist/3545.creaditor.bundle.js.gz +0 -0
  111. package/dist/{5666.creaditor.bundle.js → 3559.creaditor.bundle.js} +1 -1
  112. package/dist/3559.creaditor.bundle.js.gz +0 -0
  113. package/dist/{8299.creaditor.bundle.js → 3693.creaditor.bundle.js} +3 -3
  114. package/dist/3693.creaditor.bundle.js.gz +0 -0
  115. package/dist/{5391.creaditor.bundle.js → 370.creaditor.bundle.js} +1 -1
  116. package/dist/370.creaditor.bundle.js.gz +0 -0
  117. package/dist/{9453.creaditor.bundle.js → 38.creaditor.bundle.js} +1 -1
  118. package/dist/38.creaditor.bundle.js.gz +0 -0
  119. package/dist/{4100.creaditor.bundle.js → 3837.creaditor.bundle.js} +1 -1
  120. package/dist/3837.creaditor.bundle.js.gz +0 -0
  121. package/dist/{638.creaditor.bundle.js → 3972.creaditor.bundle.js} +1 -1
  122. package/dist/3972.creaditor.bundle.js.gz +0 -0
  123. package/dist/{1271.creaditor.bundle.js → 4003.creaditor.bundle.js} +1 -1
  124. package/dist/4003.creaditor.bundle.js.gz +0 -0
  125. package/dist/{5713.creaditor.bundle.js → 4038.creaditor.bundle.js} +2 -2
  126. package/dist/4038.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  127. package/dist/4038.creaditor.bundle.js.gz +0 -0
  128. package/dist/4109.creaditor.bundle.js.gz +0 -0
  129. package/dist/{5849.creaditor.bundle.js → 4206.creaditor.bundle.js} +1 -1
  130. package/dist/4206.creaditor.bundle.js.gz +0 -0
  131. package/dist/{1456.creaditor.bundle.js → 4257.creaditor.bundle.js} +1 -1
  132. package/dist/4257.creaditor.bundle.js.gz +0 -0
  133. package/dist/4323.creaditor.bundle.js +1 -0
  134. package/dist/4323.creaditor.bundle.js.gz +0 -0
  135. package/dist/{4161.creaditor.bundle.js → 4432.creaditor.bundle.js} +1 -1
  136. package/dist/4432.creaditor.bundle.js.gz +0 -0
  137. package/dist/4536.creaditor.bundle.js +1 -0
  138. package/dist/4536.creaditor.bundle.js.gz +0 -0
  139. package/dist/{8443.creaditor.bundle.js → 4637.creaditor.bundle.js} +1 -1
  140. package/dist/4637.creaditor.bundle.js.gz +0 -0
  141. package/dist/{8315.creaditor.bundle.js → 4678.creaditor.bundle.js} +1 -1
  142. package/dist/4678.creaditor.bundle.js.gz +0 -0
  143. package/dist/{6751.creaditor.bundle.js → 4684.creaditor.bundle.js} +1 -1
  144. package/dist/4684.creaditor.bundle.js.gz +0 -0
  145. package/dist/{8064.creaditor.bundle.js → 4801.creaditor.bundle.js} +1 -1
  146. package/dist/4801.creaditor.bundle.js.gz +0 -0
  147. package/dist/{7838.creaditor.bundle.js → 487.creaditor.bundle.js} +1 -1
  148. package/dist/487.creaditor.bundle.js.gz +0 -0
  149. package/dist/4987.creaditor.bundle.js.gz +0 -0
  150. package/dist/{170.creaditor.bundle.js → 4999.creaditor.bundle.js} +1 -1
  151. package/dist/4999.creaditor.bundle.js.gz +0 -0
  152. package/dist/{4061.creaditor.bundle.js → 5121.creaditor.bundle.js} +1 -1
  153. package/dist/5121.creaditor.bundle.js.gz +0 -0
  154. package/dist/{4475.creaditor.bundle.js → 5150.creaditor.bundle.js} +1 -1
  155. package/dist/5150.creaditor.bundle.js.gz +0 -0
  156. package/dist/{9250.creaditor.bundle.js → 5189.creaditor.bundle.js} +1 -1
  157. package/dist/5189.creaditor.bundle.js.gz +0 -0
  158. package/dist/{5501.creaditor.bundle.js → 5211.creaditor.bundle.js} +1 -1
  159. package/dist/5211.creaditor.bundle.js.gz +0 -0
  160. package/dist/5242.creaditor.bundle.js +162 -0
  161. package/dist/5242.creaditor.bundle.js.LICENSE.txt +17 -0
  162. package/dist/5242.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  163. package/dist/5242.creaditor.bundle.js.gz +0 -0
  164. package/dist/{2384.creaditor.bundle.js → 5259.creaditor.bundle.js} +1 -1
  165. package/dist/5259.creaditor.bundle.js.gz +0 -0
  166. package/dist/5284.creaditor.bundle.js.gz +0 -0
  167. package/dist/{7348.creaditor.bundle.js → 5328.creaditor.bundle.js} +11 -11
  168. package/dist/5328.creaditor.bundle.js.gz +0 -0
  169. package/dist/{1334.creaditor.bundle.js → 5473.creaditor.bundle.js} +1 -1
  170. package/dist/5473.creaditor.bundle.js.gz +0 -0
  171. package/dist/{1728.creaditor.bundle.js → 5541.creaditor.bundle.js} +2 -2
  172. package/dist/5541.creaditor.bundle.js.gz +0 -0
  173. package/dist/566.creaditor.bundle.js +20 -0
  174. package/dist/566.creaditor.bundle.js.gz +0 -0
  175. package/dist/567.creaditor.bundle.js +109 -539
  176. package/dist/567.creaditor.bundle.js.gz +0 -0
  177. package/dist/{7209.creaditor.bundle.js → 5728.creaditor.bundle.js} +26 -7
  178. package/dist/5728.creaditor.bundle.js.gz +0 -0
  179. package/dist/574.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  180. package/dist/574.creaditor.bundle.js.gz +0 -0
  181. package/dist/5780.creaditor.bundle.js +142 -0
  182. package/dist/5780.creaditor.bundle.js.LICENSE.txt +11 -0
  183. package/dist/5780.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  184. package/dist/5780.creaditor.bundle.js.gz +0 -0
  185. package/dist/579.creaditor.bundle.js +1 -0
  186. package/dist/579.creaditor.bundle.js.gz +0 -0
  187. package/dist/{5926.creaditor.bundle.js → 58.creaditor.bundle.js} +2 -2
  188. package/dist/58.creaditor.bundle.js.gz +0 -0
  189. package/dist/59.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  190. package/dist/59.creaditor.bundle.js.gz +0 -0
  191. package/dist/{6323.creaditor.bundle.js → 5978.creaditor.bundle.js} +7 -7
  192. package/dist/5978.creaditor.bundle.js.gz +0 -0
  193. package/dist/{407.creaditor.bundle.js → 60.creaditor.bundle.js} +1 -1
  194. package/dist/60.creaditor.bundle.js.gz +0 -0
  195. package/dist/{4186.creaditor.bundle.js → 6004.creaditor.bundle.js} +3 -3
  196. package/dist/6004.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  197. package/dist/6004.creaditor.bundle.js.gz +0 -0
  198. package/dist/6022.creaditor.bundle.js +335 -0
  199. package/dist/6022.creaditor.bundle.js.LICENSE.txt +11 -0
  200. package/dist/6022.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  201. package/dist/6022.creaditor.bundle.js.gz +0 -0
  202. package/dist/{3606.creaditor.bundle.js → 6024.creaditor.bundle.js} +1 -1
  203. package/dist/6024.creaditor.bundle.js.gz +0 -0
  204. package/dist/6036.creaditor.bundle.js +6 -32
  205. package/dist/6036.creaditor.bundle.js.gz +0 -0
  206. package/dist/{7654.creaditor.bundle.js → 6038.creaditor.bundle.js} +47 -13
  207. package/dist/6038.creaditor.bundle.js.LICENSE.txt +5 -0
  208. package/dist/6038.creaditor.bundle.js.gz +0 -0
  209. package/dist/{3847.creaditor.bundle.js → 6051.creaditor.bundle.js} +4 -4
  210. package/dist/6051.creaditor.bundle.js.gz +0 -0
  211. package/dist/{4762.creaditor.bundle.js → 6077.creaditor.bundle.js} +1 -1
  212. package/dist/6077.creaditor.bundle.js.gz +0 -0
  213. package/dist/{100.creaditor.bundle.js → 6182.creaditor.bundle.js} +2 -2
  214. package/dist/6182.creaditor.bundle.js.gz +0 -0
  215. package/dist/{9694.creaditor.bundle.js → 6205.creaditor.bundle.js} +1 -1
  216. package/dist/6205.creaditor.bundle.js.gz +0 -0
  217. package/dist/6216.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  218. package/dist/6216.creaditor.bundle.js.gz +0 -0
  219. package/dist/6339.creaditor.bundle.js +16 -0
  220. package/dist/6339.creaditor.bundle.js.gz +0 -0
  221. package/dist/{4639.creaditor.bundle.js → 6343.creaditor.bundle.js} +1 -1
  222. package/dist/6343.creaditor.bundle.js.gz +0 -0
  223. package/dist/{453.creaditor.bundle.js → 6412.creaditor.bundle.js} +1 -1
  224. package/dist/6412.creaditor.bundle.js.gz +0 -0
  225. package/dist/{380.creaditor.bundle.js → 6482.creaditor.bundle.js} +1 -1
  226. package/dist/6482.creaditor.bundle.js.gz +0 -0
  227. package/dist/6545.creaditor.bundle.js +15 -0
  228. package/dist/6545.creaditor.bundle.js.gz +0 -0
  229. package/dist/{2112.creaditor.bundle.js → 6565.creaditor.bundle.js} +1 -1
  230. package/dist/6565.creaditor.bundle.js.gz +0 -0
  231. package/dist/{2409.creaditor.bundle.js → 6579.creaditor.bundle.js} +1 -1
  232. package/dist/6579.creaditor.bundle.js.gz +0 -0
  233. package/dist/685.creaditor.bundle.js +12 -0
  234. package/dist/685.creaditor.bundle.js.gz +0 -0
  235. package/dist/{9386.creaditor.bundle.js → 6977.creaditor.bundle.js} +1 -1
  236. package/dist/6977.creaditor.bundle.js.gz +0 -0
  237. package/dist/7055.creaditor.bundle.js.gz +0 -0
  238. package/dist/{5850.creaditor.bundle.js → 707.creaditor.bundle.js} +1 -1
  239. package/dist/707.creaditor.bundle.js.gz +0 -0
  240. package/dist/{4770.creaditor.bundle.js → 7127.creaditor.bundle.js} +1 -1
  241. package/dist/7127.creaditor.bundle.js.gz +0 -0
  242. package/dist/7255.creaditor.bundle.js +1 -11
  243. package/dist/7255.creaditor.bundle.js.gz +0 -0
  244. package/dist/{8921.creaditor.bundle.js → 7326.creaditor.bundle.js} +1 -1
  245. package/dist/7326.creaditor.bundle.js.gz +0 -0
  246. package/dist/{4074.creaditor.bundle.js → 7399.creaditor.bundle.js} +1 -1
  247. package/dist/7399.creaditor.bundle.js.gz +0 -0
  248. package/dist/7463.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  249. package/dist/7463.creaditor.bundle.js.gz +0 -0
  250. package/dist/{4947.creaditor.bundle.js → 7514.creaditor.bundle.js} +1 -1
  251. package/dist/7514.creaditor.bundle.js.gz +0 -0
  252. package/dist/{9431.creaditor.bundle.js → 7573.creaditor.bundle.js} +1 -1
  253. package/dist/7573.creaditor.bundle.js.gz +0 -0
  254. package/dist/{4288.creaditor.bundle.js → 7630.creaditor.bundle.js} +1 -1
  255. package/dist/7630.creaditor.bundle.js.gz +0 -0
  256. package/dist/{7380.creaditor.bundle.js → 7733.creaditor.bundle.js} +1 -1
  257. package/dist/7733.creaditor.bundle.js.gz +0 -0
  258. package/dist/{578.creaditor.bundle.js → 7739.creaditor.bundle.js} +1 -1
  259. package/dist/7739.creaditor.bundle.js.gz +0 -0
  260. package/dist/7789.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  261. package/dist/7789.creaditor.bundle.js.gz +0 -0
  262. package/dist/{2833.creaditor.bundle.js → 8128.creaditor.bundle.js} +1 -1
  263. package/dist/8128.creaditor.bundle.js.gz +0 -0
  264. package/dist/8142.creaditor.bundle.js +11 -0
  265. package/dist/8142.creaditor.bundle.js.gz +0 -0
  266. package/dist/8173.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  267. package/dist/8173.creaditor.bundle.js.gz +0 -0
  268. package/dist/8230.creaditor.bundle.js +1 -0
  269. package/dist/8230.creaditor.bundle.js.gz +0 -0
  270. package/dist/{653.creaditor.bundle.js → 8260.creaditor.bundle.js} +1 -1
  271. package/dist/8260.creaditor.bundle.js.gz +0 -0
  272. package/dist/{9570.creaditor.bundle.js → 83.creaditor.bundle.js} +1 -1
  273. package/dist/83.creaditor.bundle.js.gz +0 -0
  274. package/dist/{752.creaditor.bundle.js → 8498.creaditor.bundle.js} +1 -1
  275. package/dist/8498.creaditor.bundle.js.gz +0 -0
  276. package/dist/{9986.creaditor.bundle.js → 8531.creaditor.bundle.js} +1 -1
  277. package/dist/8531.creaditor.bundle.js.gz +0 -0
  278. package/dist/8533.creaditor.bundle.js.gz +0 -0
  279. package/dist/{6496.creaditor.bundle.js → 8586.creaditor.bundle.js} +1 -1
  280. package/dist/8586.creaditor.bundle.js.gz +0 -0
  281. package/dist/{975.creaditor.bundle.js → 8696.creaditor.bundle.js} +1 -1
  282. package/dist/8696.creaditor.bundle.js.gz +0 -0
  283. package/dist/{738.creaditor.bundle.js → 8861.creaditor.bundle.js} +1 -1
  284. package/dist/8861.creaditor.bundle.js.gz +0 -0
  285. package/dist/{4615.creaditor.bundle.js → 8918.creaditor.bundle.js} +1 -1
  286. package/dist/8918.creaditor.bundle.js.gz +0 -0
  287. package/dist/{5379.creaditor.bundle.js → 8960.creaditor.bundle.js} +1 -1
  288. package/dist/8960.creaditor.bundle.js.gz +0 -0
  289. package/dist/898.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  290. package/dist/898.creaditor.bundle.js.gz +0 -0
  291. package/dist/8994.creaditor.bundle.js +544 -0
  292. package/dist/8994.creaditor.bundle.js.gz +0 -0
  293. package/dist/{9990.creaditor.bundle.js → 9028.creaditor.bundle.js} +1 -1
  294. package/dist/9028.creaditor.bundle.js.gz +0 -0
  295. package/dist/{5530.creaditor.bundle.js → 9069.creaditor.bundle.js} +1 -1
  296. package/dist/9069.creaditor.bundle.js.gz +0 -0
  297. package/dist/{7997.creaditor.bundle.js → 9082.creaditor.bundle.js} +1 -1
  298. package/dist/9082.creaditor.bundle.js.gz +0 -0
  299. package/dist/{6814.creaditor.bundle.js → 9136.creaditor.bundle.js} +1 -1
  300. package/dist/9136.creaditor.bundle.js.gz +0 -0
  301. package/dist/9158.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  302. package/dist/9158.creaditor.bundle.js.gz +0 -0
  303. package/dist/{1403.creaditor.bundle.js → 9384.creaditor.bundle.js} +1 -1
  304. package/dist/9384.creaditor.bundle.js.gz +0 -0
  305. package/dist/{8654.creaditor.bundle.js → 9468.creaditor.bundle.js} +1 -1
  306. package/dist/9468.creaditor.bundle.js.gz +0 -0
  307. package/dist/{8570.creaditor.bundle.js → 9672.creaditor.bundle.js} +1 -1
  308. package/dist/9672.creaditor.bundle.js.gz +0 -0
  309. package/dist/9700.creaditor.bundle.js +64 -0
  310. package/dist/9700.creaditor.bundle.js.gz +0 -0
  311. package/dist/{467.creaditor.bundle.js → 9786.creaditor.bundle.js} +1 -1
  312. package/dist/9786.creaditor.bundle.js.gz +0 -0
  313. package/dist/{8983.creaditor.bundle.js → 9791.creaditor.bundle.js} +1 -1
  314. package/dist/9791.creaditor.bundle.js.gz +0 -0
  315. package/dist/9823.creaditor.bundle.js +6 -0
  316. package/dist/9823.creaditor.bundle.js.gz +0 -0
  317. package/dist/993.creaditor.bundle.js +1 -0
  318. package/dist/993.creaditor.bundle.js.gz +0 -0
  319. package/dist/{7238.creaditor.bundle.js → 9931.creaditor.bundle.js} +1 -1
  320. package/dist/9931.creaditor.bundle.js.gz +0 -0
  321. package/dist/{7523.creaditor.bundle.js → 9976.creaditor.bundle.js} +1 -1
  322. package/dist/9976.creaditor.bundle.js.gz +0 -0
  323. package/dist/{2773.creaditor.bundle.js → 9998.creaditor.bundle.js} +1 -1
  324. package/dist/9998.creaditor.bundle.js.gz +0 -0
  325. package/dist/creaditor.bundle.js +342 -342
  326. package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
  327. package/dist/creaditor.bundle.js.gz +0 -0
  328. package/dist/index.html.gz +0 -0
  329. package/dist/service-worker.js +1 -1
  330. package/dist/service-worker.js.gz +0 -0
  331. package/dist/workbox-f3063069.js.gz +0 -0
  332. package/package.json +1 -1
  333. package/dist/100.creaditor.bundle.js.gz +0 -0
  334. package/dist/112.creaditor.bundle.js.gz +0 -0
  335. package/dist/1142.creaditor.bundle.js +0 -1
  336. package/dist/1142.creaditor.bundle.js.gz +0 -0
  337. package/dist/1271.creaditor.bundle.js.gz +0 -0
  338. package/dist/1334.creaditor.bundle.js.gz +0 -0
  339. package/dist/1403.creaditor.bundle.js.gz +0 -0
  340. package/dist/1456.creaditor.bundle.js.gz +0 -0
  341. package/dist/1529.creaditor.bundle.js +0 -16
  342. package/dist/1529.creaditor.bundle.js.gz +0 -0
  343. package/dist/170.creaditor.bundle.js.gz +0 -0
  344. package/dist/1728.creaditor.bundle.js.gz +0 -0
  345. package/dist/175.creaditor.bundle.js.gz +0 -0
  346. package/dist/1972.creaditor.bundle.js +0 -12
  347. package/dist/1972.creaditor.bundle.js.gz +0 -0
  348. package/dist/211.creaditor.bundle.js +0 -1
  349. package/dist/211.creaditor.bundle.js.gz +0 -0
  350. package/dist/2112.creaditor.bundle.js.gz +0 -0
  351. package/dist/2154.creaditor.bundle.js.gz +0 -0
  352. package/dist/2234.creaditor.bundle.js.gz +0 -0
  353. package/dist/2298.creaditor.bundle.js +0 -1
  354. package/dist/2298.creaditor.bundle.js.gz +0 -0
  355. package/dist/2350.creaditor.bundle.js.gz +0 -0
  356. package/dist/2384.creaditor.bundle.js.gz +0 -0
  357. package/dist/2397.creaditor.bundle.js.gz +0 -0
  358. package/dist/2409.creaditor.bundle.js.gz +0 -0
  359. package/dist/2547.creaditor.bundle.js.gz +0 -0
  360. package/dist/2590.creaditor.bundle.js +0 -6
  361. package/dist/2590.creaditor.bundle.js.gz +0 -0
  362. package/dist/2655.creaditor.bundle.js.gz +0 -0
  363. package/dist/271.creaditor.bundle.js.gz +0 -0
  364. package/dist/2765.creaditor.bundle.js +0 -1
  365. package/dist/2765.creaditor.bundle.js.gz +0 -0
  366. package/dist/2773.creaditor.bundle.js.gz +0 -0
  367. package/dist/2833.creaditor.bundle.js.gz +0 -0
  368. package/dist/2956.creaditor.bundle.js.gz +0 -0
  369. package/dist/2963.creaditor.bundle.js.gz +0 -0
  370. package/dist/3233.creaditor.bundle.js +0 -12
  371. package/dist/3233.creaditor.bundle.js.gz +0 -0
  372. package/dist/3418.creaditor.bundle.js +0 -1
  373. package/dist/3418.creaditor.bundle.js.gz +0 -0
  374. package/dist/3521.creaditor.bundle.js.gz +0 -0
  375. package/dist/353.creaditor.bundle.js.gz +0 -0
  376. package/dist/3553.creaditor.bundle.js.gz +0 -0
  377. package/dist/3600.creaditor.bundle.js +0 -1
  378. package/dist/3600.creaditor.bundle.js.gz +0 -0
  379. package/dist/3601.creaditor.bundle.js +0 -288
  380. package/dist/3601.creaditor.bundle.js.gz +0 -0
  381. package/dist/3606.creaditor.bundle.js.gz +0 -0
  382. package/dist/3792.creaditor.bundle.js +0 -1
  383. package/dist/3792.creaditor.bundle.js.gz +0 -0
  384. package/dist/380.creaditor.bundle.js.gz +0 -0
  385. package/dist/3827.creaditor.bundle.js.gz +0 -0
  386. package/dist/3847.creaditor.bundle.js.gz +0 -0
  387. package/dist/3875.creaditor.bundle.js +0 -8
  388. package/dist/3875.creaditor.bundle.js.gz +0 -0
  389. package/dist/3971.creaditor.bundle.js.gz +0 -0
  390. package/dist/4000.creaditor.bundle.js +0 -1
  391. package/dist/4000.creaditor.bundle.js.gz +0 -0
  392. package/dist/4061.creaditor.bundle.js.gz +0 -0
  393. package/dist/407.creaditor.bundle.js.gz +0 -0
  394. package/dist/4074.creaditor.bundle.js.gz +0 -0
  395. package/dist/4100.creaditor.bundle.js.gz +0 -0
  396. package/dist/4114.creaditor.bundle.js.gz +0 -0
  397. package/dist/4161.creaditor.bundle.js.gz +0 -0
  398. package/dist/4186.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  399. package/dist/4186.creaditor.bundle.js.gz +0 -0
  400. package/dist/4288.creaditor.bundle.js.gz +0 -0
  401. package/dist/4413.creaditor.bundle.js.gz +0 -0
  402. package/dist/4475.creaditor.bundle.js.gz +0 -0
  403. package/dist/453.creaditor.bundle.js.gz +0 -0
  404. package/dist/4615.creaditor.bundle.js.gz +0 -0
  405. package/dist/4639.creaditor.bundle.js.gz +0 -0
  406. package/dist/467.creaditor.bundle.js.gz +0 -0
  407. package/dist/4762.creaditor.bundle.js.gz +0 -0
  408. package/dist/4770.creaditor.bundle.js.gz +0 -0
  409. package/dist/4947.creaditor.bundle.js.gz +0 -0
  410. package/dist/4988.creaditor.bundle.js +0 -6
  411. package/dist/4988.creaditor.bundle.js.gz +0 -0
  412. package/dist/507.creaditor.bundle.js +0 -334
  413. package/dist/507.creaditor.bundle.js.gz +0 -0
  414. package/dist/5133.creaditor.bundle.js.gz +0 -0
  415. package/dist/5156.creaditor.bundle.js +0 -93
  416. package/dist/5156.creaditor.bundle.js.gz +0 -0
  417. package/dist/5379.creaditor.bundle.js.gz +0 -0
  418. package/dist/5391.creaditor.bundle.js.gz +0 -0
  419. package/dist/5411.creaditor.bundle.js.gz +0 -0
  420. package/dist/5501.creaditor.bundle.js.gz +0 -0
  421. package/dist/5530.creaditor.bundle.js.gz +0 -0
  422. package/dist/5666.creaditor.bundle.js.gz +0 -0
  423. package/dist/5713.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  424. package/dist/5713.creaditor.bundle.js.gz +0 -0
  425. package/dist/578.creaditor.bundle.js.gz +0 -0
  426. package/dist/5839.creaditor.bundle.js.gz +0 -0
  427. package/dist/5849.creaditor.bundle.js.gz +0 -0
  428. package/dist/5850.creaditor.bundle.js.gz +0 -0
  429. package/dist/5926.creaditor.bundle.js.gz +0 -0
  430. package/dist/6151.creaditor.bundle.js.gz +0 -0
  431. package/dist/6323.creaditor.bundle.js.gz +0 -0
  432. package/dist/638.creaditor.bundle.js.gz +0 -0
  433. package/dist/6442.creaditor.bundle.js.gz +0 -0
  434. package/dist/6496.creaditor.bundle.js.gz +0 -0
  435. package/dist/653.creaditor.bundle.js.gz +0 -0
  436. package/dist/6751.creaditor.bundle.js.gz +0 -0
  437. package/dist/6814.creaditor.bundle.js.gz +0 -0
  438. package/dist/6937.creaditor.bundle.js +0 -1
  439. package/dist/6937.creaditor.bundle.js.gz +0 -0
  440. package/dist/7155.creaditor.bundle.js.gz +0 -0
  441. package/dist/7209.creaditor.bundle.js.gz +0 -0
  442. package/dist/7238.creaditor.bundle.js.gz +0 -0
  443. package/dist/7348.creaditor.bundle.js.gz +0 -0
  444. package/dist/738.creaditor.bundle.js.gz +0 -0
  445. package/dist/7380.creaditor.bundle.js.gz +0 -0
  446. package/dist/7466.creaditor.bundle.js.gz +0 -0
  447. package/dist/7493.creaditor.bundle.js.gz +0 -0
  448. package/dist/752.creaditor.bundle.js.gz +0 -0
  449. package/dist/7523.creaditor.bundle.js.gz +0 -0
  450. package/dist/7564.creaditor.bundle.js +0 -1
  451. package/dist/7564.creaditor.bundle.js.gz +0 -0
  452. package/dist/7654.creaditor.bundle.js.gz +0 -0
  453. package/dist/767.creaditor.bundle.js.gz +0 -0
  454. package/dist/7838.creaditor.bundle.js.gz +0 -0
  455. package/dist/7997.creaditor.bundle.js.gz +0 -0
  456. package/dist/8042.creaditor.bundle.js.gz +0 -0
  457. package/dist/8064.creaditor.bundle.js.gz +0 -0
  458. package/dist/8088.creaditor.bundle.js +0 -141
  459. package/dist/8088.creaditor.bundle.js.gz +0 -0
  460. package/dist/8141.creaditor.bundle.js +0 -20
  461. package/dist/8141.creaditor.bundle.js.gz +0 -0
  462. package/dist/8196.creaditor.bundle.js.gz +0 -0
  463. package/dist/823.creaditor.bundle.js +0 -1
  464. package/dist/823.creaditor.bundle.js.gz +0 -0
  465. package/dist/8250.creaditor.bundle.js +0 -1
  466. package/dist/8250.creaditor.bundle.js.gz +0 -0
  467. package/dist/8251.creaditor.bundle.js.gz +0 -0
  468. package/dist/8299.creaditor.bundle.js.gz +0 -0
  469. package/dist/8315.creaditor.bundle.js.gz +0 -0
  470. package/dist/8443.creaditor.bundle.js.gz +0 -0
  471. package/dist/8516.creaditor.bundle.js +0 -15
  472. package/dist/8516.creaditor.bundle.js.gz +0 -0
  473. package/dist/8570.creaditor.bundle.js.gz +0 -0
  474. package/dist/8646.creaditor.bundle.js.gz +0 -0
  475. package/dist/8654.creaditor.bundle.js.gz +0 -0
  476. package/dist/8854.creaditor.bundle.js.gz +0 -0
  477. package/dist/8878.creaditor.bundle.js.gz +0 -0
  478. package/dist/8916.creaditor.bundle.js.gz +0 -0
  479. package/dist/8921.creaditor.bundle.js.gz +0 -0
  480. package/dist/8983.creaditor.bundle.js.gz +0 -0
  481. package/dist/9041.creaditor.bundle.js.gz +0 -0
  482. package/dist/9250.creaditor.bundle.js.gz +0 -0
  483. package/dist/9386.creaditor.bundle.js.gz +0 -0
  484. package/dist/9431.creaditor.bundle.js.gz +0 -0
  485. package/dist/9453.creaditor.bundle.js.gz +0 -0
  486. package/dist/9570.creaditor.bundle.js.gz +0 -0
  487. package/dist/9694.creaditor.bundle.js.gz +0 -0
  488. package/dist/975.creaditor.bundle.js.gz +0 -0
  489. package/dist/976.creaditor.bundle.js.gz +0 -0
  490. package/dist/9986.creaditor.bundle.js.gz +0 -0
  491. package/dist/9990.creaditor.bundle.js.gz +0 -0
  492. package/dist/9994.creaditor.bundle.js +0 -114
  493. package/dist/9994.creaditor.bundle.js.gz +0 -0
  494. /package/dist/{4186.creaditor.bundle.js.LICENSE.txt → 4038.creaditor.bundle.js.LICENSE.txt} +0 -0
  495. /package/dist/{5713.creaditor.bundle.js.LICENSE.txt → 6004.creaditor.bundle.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8854],{68854(a,t,r){r.r(t),r.d(t,{NoComponent:()=>e});var l=r(59929);class e extends l.WF{constructor(){super()}render(){return l.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1023],{81023(a,t,r){r.r(t),r.d(t,{NoComponent:()=>e});var l=r(59929);class e extends l.WF{constructor(){super()}render(){return l.qy`
2
2
  <svg
3
3
  xmlns="http://www.w3.org/2000/svg"
4
4
  id="currentIllo"
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9041],{19041(t,e,n){n.r(e),n.d(e,{ElementHandleBar:()=>p});var o=n(59929),i=n(86319),a=n(21421),r=n(54804),s=n(89531),c=n(83965),l=n(67549);const d=r.Ay;s.A,c.i,l.s;class p extends o.WF{constructor(){super(),this.animations=[],this.elementRef=(0,a._)(),this.canDisplayBar=!0;const t=i.M.get("config","editor","configure","editorProps");this.canDisplayBar=!t||!1!==t?.actionBar,this.selected=!1,this.connectWith=this.connectWith.bind(this),this.onRemove=this.onRemove.bind(this)}cloneElement(){let t,e=d.getComponent(this.for);const n=e?.closest("col");let o=0;n&&(o=n.children.length);const i="card"===e?.type||o<2?e.closest("col"):null;if(i&&(e=i),e&&(t=e.parent(),t)){let n=t.children.findIndex(t=>t===e.id);"col"===e.type&&(n+=1),"number"==typeof n&&d.cloneComponent({componentId:e.id,index:n,parentId:t.id})}}onRemove(){const t=i.M.get("components",this.for),e=t?.commands?.remove??t?.remove;"function"==typeof e&&e()}connectWith(){if(this.selected=!1,this.for){const t=d.components.find(t=>t.id===this.for);if(t){const e=t;if("function"!=typeof e.closest)return;const n=e.closest("col");n&&(n.element.getBoundingClientRect(),e.element.getBoundingClientRect());const o=e.closest("card");if(o&&this.elementRef.value){const t=o.element.getBoundingClientRect(),n=e.element.getBoundingClientRect();if(parseInt(String(t.top))>=parseInt(String(n.top))-40){let e=0;t.right>n.right?e=t.right-n.right-100+"px":t.left<n.left&&(e=t.left-n.left+20+"px"),n.left+parseInt(String(e))<t.left&&(e=0),this.elementRef.value.style.transform=`translate(${e},${n.height+10}px)`}else this.elementRef.value.style.transform=""}else this.elementRef.value&&(this.elementRef.value.style.transform="");this.selected=!!e.element?.closest("[draggable-element]");const a=e.props;this.animations=a.interactions?.filter(t=>"animation"===t.type)??[],this.hasAnimations=this.animations.length>0,this.name=a.name||i.M.get("lang",e.type)}}}justifyContent(t){d.store().execCommand("justify",t,{find:"col"})}connectedCallback(){super.connectedCallback(),d.on("select",this.connectWith),d.on("update",this.connectWith),this.classList.add("ignore-cdtr-blur")}disconnectedCallback(){super.disconnectedCallback(),d.off("select",this.connectWith),d.off("update",this.connectWith)}render(){return this.style.display=this.selected?"":"none",o.qy`<cdtr-row
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[115],{10115(t,e,n){n.r(e),n.d(e,{ElementHandleBar:()=>p});var o=n(59929),i=n(43180),a=n(21421),r=n(28795),s=n(60434),c=n(73378),l=n(94040);const d=r.Ay;s.A,c.i,l.s;class p extends o.WF{constructor(){super(),this.animations=[],this.elementRef=(0,a._)(),this.canDisplayBar=!0;const t=i.M.get("config","editor","configure","editorProps");this.canDisplayBar=!t||!1!==t?.actionBar,this.selected=!1,this.connectWith=this.connectWith.bind(this),this.onRemove=this.onRemove.bind(this)}cloneElement(){let t,e=d.getComponent(this.for);const n=e?.closest("col");let o=0;n&&(o=n.children.length);const i="card"===e?.type||o<2?e.closest("col"):null;if(i&&(e=i),e&&(t=e.parent(),t)){let n=t.children.findIndex(t=>t===e.id);"col"===e.type&&(n+=1),"number"==typeof n&&d.cloneComponent({componentId:e.id,index:n,parentId:t.id})}}onRemove(){const t=i.M.get("components",this.for),e=t?.commands?.remove??t?.remove;"function"==typeof e&&e()}connectWith(){if(this.selected=!1,this.for){const t=d.components.find(t=>t.id===this.for);if(t){const e=t;if("function"!=typeof e.closest)return;const n=e.closest("col");n&&(n.element.getBoundingClientRect(),e.element.getBoundingClientRect());const o=e.closest("card");if(o&&this.elementRef.value){const t=o.element.getBoundingClientRect(),n=e.element.getBoundingClientRect();if(parseInt(String(t.top))>=parseInt(String(n.top))-40){let e=0;t.right>n.right?e=t.right-n.right-100+"px":t.left<n.left&&(e=t.left-n.left+20+"px"),n.left+parseInt(String(e))<t.left&&(e=0),this.elementRef.value.style.transform=`translate(${e},${n.height+10}px)`}else this.elementRef.value.style.transform=""}else this.elementRef.value&&(this.elementRef.value.style.transform="");this.selected=!!e.element?.closest("[draggable-element]");const a=e.props;this.animations=a.interactions?.filter(t=>"animation"===t.type)??[],this.hasAnimations=this.animations.length>0,this.name=a.name||i.M.get("lang",e.type)}}}justifyContent(t){d.store().execCommand("justify",t,{find:"col"})}connectedCallback(){super.connectedCallback(),d.on("select",this.connectWith),d.on("update",this.connectWith),this.classList.add("ignore-cdtr-blur")}disconnectedCallback(){super.disconnectedCallback(),d.off("select",this.connectWith),d.off("update",this.connectWith)}render(){return this.style.display=this.selected?"":"none",o.qy`<cdtr-row
2
2
  ${(0,a.K)(this.elementRef)}
3
3
  class="bar"
4
4
  alignItems="center"
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2963],{32963(t,i,e){e.r(i),e.d(i,{AnchorIcon:()=>r});var h=e(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([[118],{80118(t,i,e){e.r(i),e.d(i,{AnchorIcon:()=>r});var h=e(59929);class r extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
2
2
  style="${this.iconStyle}"
3
3
  width="${this.width}"
4
4
  height="${this.height}"
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8042],{38042(e,t,i){i.r(t),i.d(t,{Resizeable:()=>m});var s,n,o,r,h,l,a,d,u=i(59088),p=i(36936),c=i(59929),g=i(49410),b=i(21421);let m=(s=(0,g.MZ)({type:Number,reflect:!0}),n=(0,g.MZ)({type:Number,reflect:!0}),o=(0,g.MZ)({type:Boolean,reflect:!0}),(d=class extends c.WF{constructor(){super(),(0,u.A)(this,"height",h,this),(0,u.A)(this,"delta",l,this),(0,u.A)(this,"isDragging",a,this),this.m_pos=0,this.onResizeEvent=void 0,this.finishedEvent=void 0,this.handleRef=(0,b._)(),this.isDragging=!1,this.height=200,this.resize=this.resize.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onResizeEvent=new UIEvent("resize",{view:window,bubbles:!0,cancelable:!0}),this.finishedEvent=new UIEvent("finished",{view:window,bubbles:!0,cancelable:!0})}resize(e){this.removeRange();const t=this.m_pos-e.y;this.m_pos=e.y;let i=this.getBoundingClientRect().height-t;i<=0&&(i=0),this.height=i+"px",this.dispatchEvent(this.onResizeEvent)}removeRange(){const e=window.getSelection();if(e&&e.rangeCount>1)for(let t=1;t<e.rangeCount;t++)e.removeRange(e.getRangeAt(t))}onMouseUp(){this.isDragging=!1,document.removeEventListener("mousemove",this.resize,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),this.dispatchEvent(this.finishedEvent)}onMouseDown(e){const t=this.handleRef.value;if(!t)return;const i=t.getBoundingClientRect();e.y>i.top&&e.y<i.bottom&&(this.isDragging=!0,this.m_pos=e.y,document.addEventListener("mousemove",this.resize,!1),document.addEventListener("mouseup",this.onMouseUp,!1))}disconnectedCallback(){document.removeEventListener("mousedown",this.onMouseDown)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{const e=this.parentElement;if(!e)return;const t=e.getBoundingClientRect(),i=this.getBoundingClientRect(),s=t.bottom;s-(i.top+i.height)>0&&(this.height=parseInt(String(s-i.top))+"px",this.style.height=String(this.height)),document.addEventListener("mousedown",this.onMouseDown)},200)}render(){return c.qy`<slot></slot>
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[128],{30128(e,t,i){i.r(t),i.d(t,{Resizeable:()=>m});var s,n,o,r,h,l,a,d,u=i(59088),p=i(36936),c=i(59929),g=i(49410),b=i(21421);let m=(s=(0,g.MZ)({type:Number,reflect:!0}),n=(0,g.MZ)({type:Number,reflect:!0}),o=(0,g.MZ)({type:Boolean,reflect:!0}),(d=class extends c.WF{constructor(){super(),(0,u.A)(this,"height",h,this),(0,u.A)(this,"delta",l,this),(0,u.A)(this,"isDragging",a,this),this.m_pos=0,this.onResizeEvent=void 0,this.finishedEvent=void 0,this.handleRef=(0,b._)(),this.isDragging=!1,this.height=200,this.resize=this.resize.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onResizeEvent=new UIEvent("resize",{view:window,bubbles:!0,cancelable:!0}),this.finishedEvent=new UIEvent("finished",{view:window,bubbles:!0,cancelable:!0})}resize(e){this.removeRange();const t=this.m_pos-e.y;this.m_pos=e.y;let i=this.getBoundingClientRect().height-t;i<=0&&(i=0),this.height=i+"px",this.dispatchEvent(this.onResizeEvent)}removeRange(){const e=window.getSelection();if(e&&e.rangeCount>1)for(let t=1;t<e.rangeCount;t++)e.removeRange(e.getRangeAt(t))}onMouseUp(){this.isDragging=!1,document.removeEventListener("mousemove",this.resize,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),this.dispatchEvent(this.finishedEvent)}onMouseDown(e){const t=this.handleRef.value;if(!t)return;const i=t.getBoundingClientRect();e.y>i.top&&e.y<i.bottom&&(this.isDragging=!0,this.m_pos=e.y,document.addEventListener("mousemove",this.resize,!1),document.addEventListener("mouseup",this.onMouseUp,!1))}disconnectedCallback(){document.removeEventListener("mousedown",this.onMouseDown)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{const e=this.parentElement;if(!e)return;const t=e.getBoundingClientRect(),i=this.getBoundingClientRect(),s=t.bottom;s-(i.top+i.height)>0&&(this.height=parseInt(String(s-i.top))+"px",this.style.height=String(this.height)),document.addEventListener("mousedown",this.onMouseDown)},200)}render(){return c.qy`<slot></slot>
2
2
  <div ${(0,b.K)(this.handleRef)} class="bottom-resize"></div>
3
3
  ${this.isDragging?c.qy`<div class="wrapper">
4
4
  <div style="height:${this.height}" class="center-line"></div>
Binary file
@@ -0,0 +1 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1292],{51292(e,n,t){t.r(n),t.d(n,{ParticlesJsBackground:()=>s});var i=t(59929),a=t(21421),o=t(12106);class s extends i.WF{constructor(){super(),this.containerRef=(0,a._)(),this.containerId="particles-"+(0,o.A)(),this.config={particles:{number:{value:20},color:{value:"#ffffff"},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5}},opacity:{value:.5,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:10,random:!0,anim:{enable:!1,speed:80,size_min:.1,sync:!1}},line_linked:{enable:!0,distance:300,color:"#484554",opacity:.4,width:2},move:{enable:!0,speed:5,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"repulse"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:800,line_linked:{opacity:1}},bubble:{distance:800,size:80,duration:2,opacity:.8,speed:3},repulse:{distance:400,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0}}createRenderRoot(){return this}render(){return i.qy`<div id=${this.containerId} ${(0,a.K)(this.containerRef)}></div>`}connectedCallback(){super.connectedCallback(),t.e(3545).then(t.t.bind(t,83545,23)).then(()=>{setTimeout(()=>{Array.isArray(window.pJSDom)||(window.pJSDom=[]),particlesJS(this.containerId,this.config)},0)})}disconnectedCallback(){super.disconnectedCallback();try{const e=window.pJSDom||[],n=[];for(let t=0;t<e.length;t++){const i=e[t]?.pJS?.canvas?.el;i&&i.parentElement&&i.parentElement.id===this.containerId?e[t].pJS.fn.vendors.destroypJS():n.push(e[t])}window.pJSDom=n}catch(e){Array.isArray(window.pJSDom)||(window.pJSDom=[])}}}s.properties={name:{}},s.styles=i.AH``,customElements.define("cdtr-particlesjs",s)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8916],{48916(e,r,t){t.r(r);var n=t(59929);class s extends n.WF{constructor(){super()}render(){return n.qy`<hr />`}}s.styles=n.AH`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1294],{51294(e,r,t){t.r(r);var n=t(59929);class s extends n.WF{constructor(){super()}render(){return n.qy`<hr />`}}s.styles=n.AH`
2
2
  :host {
3
3
  display: block;
4
4
  width: 100%;
Binary file
Binary file
@@ -1 +1 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2154],{62154(t,e,s){s.d(e,{default:()=>r});const n=t=>{{const{component:e,commands:s,helpers:n}=t;return{select:t=>{let{changeTab:e,tab:s}=t;"design"!==s.text&&e("design")},tabs:t=>{const e=[{text:"design"}];return e.forEach(e=>e.selected=e.selected=e.text===t),e},layout:t=>{let{tab:a,changeTab:i,tabs:o}=t;return[{type:"slider",title:"start",max:1e3,min:0,value:e.props.startVal,onInput:t=>{const e=t.target.value;s.execCommand("startVal",parseFloat(e))}},{type:"slider",title:"end",max:9999,min:0,value:e.props.endVal,onInput:t=>{const e=t.target.value;s.execCommand("endVal",parseFloat(e))}},{type:"slider",title:"duration",max:100,min:2,value:e.props.duration,onInput:t=>{const e=t.target.value;s.execCommand("duration",parseFloat(e))}},{type:"input",title:"prefix",value:e.props.prefix,onInput:t=>{const e=t.target.value;s.execCommand("prefix",e)}},{type:"input",title:"suffix",value:e.props.suffix,onInput:t=>{const e=t.target.value;s.execCommand("suffix",e)}},{type:"input",title:"separator",value:e.props.separator,onInput:t=>{const e=t.target.value;s.execCommand("separator",e)}},{type:"divider"},{type:"typography",bold:700===e.props.style.fontWeight,italic:"italic"===e.props.style.fontStyle,underline:"underline"===e.props.style.textDecoration,onChange:t=>{switch(t){case"bold":const t=700===e.props.style.fontWeight?400:700;s.execCommand("style",{fontWeight:t});break;case"italic":const n="italic"===e.props.style.fontStyle?"normal":"italic";s.execCommand("style",{fontStyle:n});break;case"underline":const a="underline"===e.props.style.textDecoration?"none":"underline";s.execCommand("style",{textDecoration:a})}}},{type:"divider"},{type:"fontFamily",value:e.props.style.fontFamily,weight:!0,weightValue:e.props.style.fontWeight,onChange:t=>{const e=t.target.value;s.execCommand("style",{fontFamily:e})},onWeightChange:t=>{s.execCommand("style",{fontWeight:t.detail.value})}},{type:"colorpicker",title:"color",value:e.props.style.color,onChange:t=>{const e=t.target.value;s.execCommand("style",{color:e})}},{type:"fontSize",title:"size",max:150,min:8,device:t=>{const s=t.target.device;t.target.value="phone"===s?parseInt(e.props?.breakpoints?.sm?.style?.fontSize)||14:parseInt(e.props.style.fontSize)||14},value:parseInt(e.props.style.fontSize)||14,onInput:t=>{const e=t.target.value;"phone"===t.target.device?s.execCommand("breakpoints",t=>{const s=t.props.breakpoints?.sm||{};return{sm:n.deepMerge(s,{style:{fontSize:e+"px"}})}}):s.execCommand("style",{fontSize:e+"px"})}}]}}}},a=t=>{let{helpers:e,template:s,countUpRef:n,reset:a}=t;return{set:(t,i,o)=>{switch(i){case"style":t[i]=e.deepMerge(t[i],o);for(const e in t[i])if(Object.hasOwnProperty.call(t[i],e)){const n=t[i][e];s.style[e]=n}return!0;case"endVal":return n.update(o),t[i]=o,!0;case"startVal":return n.startVal=o,t[i]=o,!0;case"separator":case"suffix":case"prefix":case"duration":return n[i]=o,t[i]=o,a(),!0}return!0}}};var i=function(){return i=Object.assign||function(t){for(var e,s=1,n=arguments.length;s<n;s++)for(var a in e=arguments[s])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},i.apply(this,arguments)},o=function(){function t(t,e,s){var n=this;this.endVal=e,this.options=s,this.version="2.10.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",autoAnimate:!1,autoAnimateDelay:200,autoAnimateOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){n.startTime||(n.startTime=t);var e=t-n.startTime;n.remaining=n.duration-e,n.useEasing?n.countDown?n.frameVal=n.startVal-n.easingFn(e,0,n.startVal-n.endVal,n.duration):n.frameVal=n.easingFn(e,n.startVal,n.endVal-n.startVal,n.duration):n.frameVal=n.startVal+(n.endVal-n.startVal)*(e/n.duration);var s=n.countDown?n.frameVal<n.endVal:n.frameVal>n.endVal;n.frameVal=s?n.endVal:n.frameVal,n.frameVal=Number(n.frameVal.toFixed(n.options.decimalPlaces)),n.printValue(n.frameVal),e<n.duration?n.rAF=requestAnimationFrame(n.count):null!==n.finalEndVal?n.update(n.finalEndVal):n.options.onCompleteCallback&&n.options.onCompleteCallback()},this.formatNumber=function(t){var e,s,a,i,o=t<0?"-":"";e=Math.abs(t).toFixed(n.options.decimalPlaces);var r=(e+="").split(".");if(s=r[0],a=r.length>1?n.options.decimal+r[1]:"",n.options.useGrouping){i="";for(var l=3,p=0,u=0,h=s.length;u<h;++u)n.options.useIndianSeparators&&4===u&&(l=2,p=1),0!==u&&p%l==0&&(i=n.options.separator+i),p++,i=s[h-u-1]+i;s=i}return n.options.numerals&&n.options.numerals.length&&(s=s.replace(/[0-9]/g,function(t){return n.options.numerals[+t]}),a=a.replace(/[0-9]/g,function(t){return n.options.numerals[+t]})),o+n.options.prefix+s+a+n.options.suffix},this.easeOutExpo=function(t,e,s,n){return s*(1-Math.pow(2,-10*t/n))*1024/1023+e},this.options=i(i({},this.defaults),s),this.options.enableScrollSpy&&(this.options.autoAnimate=!0),void 0!==this.options.scrollSpyDelay&&(this.options.autoAnimateDelay=this.options.scrollSpyDelay),this.options.scrollSpyOnce&&(this.options.autoAnimateOnce=!0),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof t?document.getElementById(t):t,e=null==e?this.parse(this.el.innerHTML):e,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.autoAnimate&&(this.error||"undefined"==typeof IntersectionObserver?this.error?console.error(this.error,t):console.error("IntersectionObserver is not supported by this browser"):this.setupObserver())}return t.prototype.setupObserver=function(){var e=this,s=t.observedElements.get(this.el);s&&s.unobserve(),t.observedElements.set(this.el,this),this.observer=new IntersectionObserver(function(t){for(var s=0,n=t;s<n.length;s++){var a=n[s];a.isIntersecting&&e.paused&&!e.once?(e.paused=!1,e.autoAnimateTimeout=setTimeout(function(){return e.start()},e.options.autoAnimateDelay),e.options.autoAnimateOnce&&(e.once=!0,e.observer.disconnect())):a.isIntersecting||e.paused||(clearTimeout(e.autoAnimateTimeout),e.reset())}},{threshold:0}),this.observer.observe(this.el)},t.prototype.unobserve=function(){var e;clearTimeout(this.autoAnimateTimeout),null===(e=this.observer)||void 0===e||e.disconnect(),t.observedElements.delete(this.el)},t.prototype.onDestroy=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.unobserve(),this.options.onCompleteCallback=null,this.options.onStartCallback=null},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var s=this.countDown?1:-1;this.endVal=t+s*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.once=!1,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e;if(this.el){var s=this.formattingFn(t);(null===(e=this.options.plugin)||void 0===e?void 0:e.render)?this.options.plugin.render(this.el,s):"INPUT"===this.el.tagName?this.el.value=s:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=s:this.el.innerHTML=s}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t.prototype.parse=function(t){var e=function(t){return t.replace(/([.,'  ])/g,"\\$1")},s=e(this.options.separator),n=e(this.options.decimal),a=t.replace(new RegExp(s,"g"),"").replace(new RegExp(n,"g"),".");return parseFloat(a)},t.observedElements=new WeakMap,t}();const r=()=>{const t="newsletter/count-up";return{name:t,menu:e=>{let{Compose:s}=e;return new s(()=>({type:t,props:{style:{fontSize:"80px",fontFamily:"Arial"},breakPoints:{sm:{style:{fontSize:"40px"}}},startVal:0,endVal:100,prefix:"",suffix:""}}),{group:"elements",name:t,puzzle:['<svg width="36" height="22" viewBox="0 0 36 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M33.8479 6.61923V8.7955C33.8479 9.01641 33.6688 9.1955 33.4479 9.1955H32.6175C32.3966 9.1955 32.2175 9.01641 32.2175 8.7955V6.61923C32.2175 6.39831 32.0384 6.21923 31.8175 6.21923H30.9333C30.5816 6.21923 30.4011 5.79808 30.6436 5.5434L32.7693 3.31093C32.9293 3.14288 33.1982 3.1458 33.3546 3.31728L35.3897 5.54975C35.6239 5.80657 35.4417 6.21923 35.0941 6.21923H34.2479C34.027 6.21923 33.8479 6.39831 33.8479 6.61923Z" fill="#5C5CE0"/>\n <path d="M32.1522 15.7719V13.5956C32.1522 13.3747 32.3313 13.1956 32.5522 13.1956H33.3826C33.6035 13.1956 33.7826 13.3747 33.7826 13.5956V15.7719C33.7826 15.9928 33.9617 16.1719 34.1826 16.1719H35.0668C35.4185 16.1719 35.599 16.593 35.3565 16.8477L33.2309 19.0802C33.0709 19.2482 32.8019 19.2453 32.6456 19.0738L30.6104 16.8414C30.3762 16.5845 30.5585 16.1719 30.906 16.1719H31.7522C31.9731 16.1719 32.1522 15.9928 32.1522 15.7719Z" fill="#5C5CE0"/>\n <path d="M1.31 8.072C1.31 7.35733 1.61933 6.77067 2.238 6.312C2.85667 5.85333 3.78467 5.624 5.022 5.624C6.25933 5.624 7.20867 5.85333 7.87 6.312C8.542 6.77067 8.878 7.45867 8.878 8.376C8.878 8.67467 8.85133 8.94667 8.798 9.192C8.74467 9.42667 8.622 9.67733 8.43 9.944C8.24867 10.2 8.06733 10.4293 7.886 10.632C7.71533 10.8347 7.41667 11.1013 6.99 11.432C6.35 11.944 5.678 12.456 4.974 12.968C4.27 13.4693 3.85933 13.7627 3.742 13.848L2.766 14.552H6.606C7.342 14.552 7.86467 14.392 8.174 14.072C8.48333 13.752 8.702 13.2507 8.83 12.568H9.102L8.942 17H1.422V15.144L3.038 13.656C4.13667 12.6533 4.91533 11.7627 5.374 10.984C5.83267 10.1947 6.062 9.33067 6.062 8.392C6.062 7.44267 5.96067 6.79733 5.758 6.456C5.55533 6.104 5.214 5.928 4.734 5.928C4.254 5.928 3.918 6.05067 3.726 6.296C3.534 6.54133 3.438 6.776 3.438 7C3.438 7.224 3.47 7.42133 3.534 7.592H4.014C4.09933 7.816 4.142 8.088 4.142 8.408C4.142 8.71733 4.00867 8.98933 3.742 9.224C3.47533 9.448 3.12333 9.56 2.686 9.56C2.24867 9.56 1.90733 9.42133 1.662 9.144C1.42733 8.856 1.31 8.49867 1.31 8.072ZM14.7941 17.16C13.2475 17.16 12.0688 16.6373 11.2581 15.592C10.4581 14.5467 10.0581 13.0853 10.0581 11.208C10.0581 9.33067 10.4901 7.93333 11.3541 7.016C12.2181 6.088 13.3968 5.624 14.8901 5.624C16.3941 5.624 17.5728 6.08267 18.4261 7C19.2901 7.91733 19.7221 9.37867 19.7221 11.384C19.7221 13.3893 19.2901 14.856 18.4261 15.784C17.5621 16.7013 16.3515 17.16 14.7941 17.16ZM13.3381 10.792V12.216C13.3381 13.2507 13.3435 13.9813 13.3541 14.408C13.3755 14.8347 13.4341 15.2773 13.5301 15.736C13.6261 16.1947 13.7808 16.4933 13.9941 16.632C14.2075 16.76 14.4581 16.824 14.7461 16.824C15.0341 16.824 15.2475 16.808 15.3861 16.776C15.5355 16.744 15.6635 16.68 15.7701 16.584C15.8875 16.4773 15.9835 16.376 16.0581 16.28C16.1328 16.1733 16.1915 16.0133 16.2341 15.8C16.2875 15.5867 16.3301 15.3893 16.3621 15.208C16.3941 15.0267 16.4155 14.76 16.4261 14.408C16.4475 13.7253 16.4581 13.0373 16.4581 12.344V10.936C16.4581 8.84533 16.3781 7.496 16.2181 6.888C16.0688 6.26933 15.6315 5.96 14.9061 5.96C14.1808 5.96 13.7381 6.27467 13.5781 6.904C13.4181 7.53333 13.3381 8.82933 13.3381 10.792ZM22.2351 6.216L20.4751 6.44L20.4431 6.12L24.0591 5.624H25.3551V16.696H26.6031V17H20.5551V16.696H22.2351V6.216Z" fill="black"/>\n </svg>\n '],tags:[t],index:null})},create:e=>{let{createElement:s,compose:i,helpers:r}=e;const l=document.createElement("div");for(const t in i.props.style)if(Object.hasOwnProperty.call(i.props.style,t)){const e=i.props.style[t];l.style[t]=e}let p=document.createElement("div");const u=document.createElement("cdtr-move-handle-bar");u.for=i.id,l.append(p),l.append(u);let h=new o(p,i.props.endVal,{prefix:i.props.prefix||"",suffix:i.props.suffix||"",separator:i.props.separator||"",startVal:i.props.startVal||0,duration:i.props.duration||2});return s({name:t,id:i.id,template:l,defaultProps:{},validator:a({template:l,helpers:r,countUpRef:h,reset:()=>{h=new o(p,i.props.endVal,{prefix:i.props.prefix||"",suffix:i.props.suffix||"",separator:i.props.separator||"",startVal:i.props.startVal,duration:i.props.duration}),h.start()}}),schema:i.schema,onSelect:t=>{l.classList.add(t)},onDeselect:t=>{l.classList.remove(t)},elementProps:i,remove:()=>{l.remove()},createEditor:n})}}}}}]);
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1336],{71336(t,e,s){s.d(e,{default:()=>r});const n=t=>{{const{component:e,commands:s,helpers:n}=t;return{select:t=>{let{changeTab:e,tab:s}=t;"design"!==s.text&&e("design")},tabs:t=>{const e=[{text:"design"}];return e.forEach(e=>e.selected=e.selected=e.text===t),e},layout:t=>{let{tab:a,changeTab:i,tabs:o}=t;return[{type:"slider",title:"start",max:1e3,min:0,value:e.props.startVal,onInput:t=>{const e=t.target.value;s.execCommand("startVal",parseFloat(e))}},{type:"slider",title:"end",max:9999,min:0,value:e.props.endVal,onInput:t=>{const e=t.target.value;s.execCommand("endVal",parseFloat(e))}},{type:"slider",title:"duration",max:100,min:2,value:e.props.duration,onInput:t=>{const e=t.target.value;s.execCommand("duration",parseFloat(e))}},{type:"input",title:"prefix",value:e.props.prefix,onInput:t=>{const e=t.target.value;s.execCommand("prefix",e)}},{type:"input",title:"suffix",value:e.props.suffix,onInput:t=>{const e=t.target.value;s.execCommand("suffix",e)}},{type:"input",title:"separator",value:e.props.separator,onInput:t=>{const e=t.target.value;s.execCommand("separator",e)}},{type:"divider"},{type:"typography",bold:700===e.props.style.fontWeight,italic:"italic"===e.props.style.fontStyle,underline:"underline"===e.props.style.textDecoration,onChange:t=>{switch(t){case"bold":const t=700===e.props.style.fontWeight?400:700;s.execCommand("style",{fontWeight:t});break;case"italic":const n="italic"===e.props.style.fontStyle?"normal":"italic";s.execCommand("style",{fontStyle:n});break;case"underline":const a="underline"===e.props.style.textDecoration?"none":"underline";s.execCommand("style",{textDecoration:a})}}},{type:"divider"},{type:"fontFamily",value:e.props.style.fontFamily,weight:!0,weightValue:e.props.style.fontWeight,onChange:t=>{const e=t.target.value;s.execCommand("style",{fontFamily:e})},onWeightChange:t=>{s.execCommand("style",{fontWeight:t.detail.value})}},{type:"colorpicker",title:"color",value:e.props.style.color,onChange:t=>{const e=t.target.value;s.execCommand("style",{color:e})}},{type:"fontSize",title:"size",max:150,min:8,device:t=>{const s=t.target.device;t.target.value="phone"===s?parseInt(e.props?.breakpoints?.sm?.style?.fontSize)||14:parseInt(e.props.style.fontSize)||14},value:parseInt(e.props.style.fontSize)||14,onInput:t=>{const e=t.target.value;"phone"===t.target.device?s.execCommand("breakpoints",t=>{const s=t.props.breakpoints?.sm||{};return{sm:n.deepMerge(s,{style:{fontSize:e+"px"}})}}):s.execCommand("style",{fontSize:e+"px"})}}]}}}},a=t=>{let{helpers:e,template:s,countUpRef:n,reset:a}=t;return{set:(t,i,o)=>{switch(i){case"style":t[i]=e.deepMerge(t[i],o);for(const e in t[i])if(Object.hasOwnProperty.call(t[i],e)){const n=t[i][e];s.style[e]=n}return!0;case"endVal":return n.update(o),t[i]=o,!0;case"startVal":return n.startVal=o,t[i]=o,!0;case"separator":case"suffix":case"prefix":case"duration":return n[i]=o,t[i]=o,a(),!0}return!0}}};var i=function(){return i=Object.assign||function(t){for(var e,s=1,n=arguments.length;s<n;s++)for(var a in e=arguments[s])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},i.apply(this,arguments)},o=function(){function t(t,e,s){var n=this;this.endVal=e,this.options=s,this.version="2.10.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",autoAnimate:!1,autoAnimateDelay:200,autoAnimateOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){n.startTime||(n.startTime=t);var e=t-n.startTime;n.remaining=n.duration-e,n.useEasing?n.countDown?n.frameVal=n.startVal-n.easingFn(e,0,n.startVal-n.endVal,n.duration):n.frameVal=n.easingFn(e,n.startVal,n.endVal-n.startVal,n.duration):n.frameVal=n.startVal+(n.endVal-n.startVal)*(e/n.duration);var s=n.countDown?n.frameVal<n.endVal:n.frameVal>n.endVal;n.frameVal=s?n.endVal:n.frameVal,n.frameVal=Number(n.frameVal.toFixed(n.options.decimalPlaces)),n.printValue(n.frameVal),e<n.duration?n.rAF=requestAnimationFrame(n.count):null!==n.finalEndVal?n.update(n.finalEndVal):n.options.onCompleteCallback&&n.options.onCompleteCallback()},this.formatNumber=function(t){var e,s,a,i,o=t<0?"-":"";e=Math.abs(t).toFixed(n.options.decimalPlaces);var r=(e+="").split(".");if(s=r[0],a=r.length>1?n.options.decimal+r[1]:"",n.options.useGrouping){i="";for(var l=3,p=0,u=0,h=s.length;u<h;++u)n.options.useIndianSeparators&&4===u&&(l=2,p=1),0!==u&&p%l==0&&(i=n.options.separator+i),p++,i=s[h-u-1]+i;s=i}return n.options.numerals&&n.options.numerals.length&&(s=s.replace(/[0-9]/g,function(t){return n.options.numerals[+t]}),a=a.replace(/[0-9]/g,function(t){return n.options.numerals[+t]})),o+n.options.prefix+s+a+n.options.suffix},this.easeOutExpo=function(t,e,s,n){return s*(1-Math.pow(2,-10*t/n))*1024/1023+e},this.options=i(i({},this.defaults),s),this.options.enableScrollSpy&&(this.options.autoAnimate=!0),void 0!==this.options.scrollSpyDelay&&(this.options.autoAnimateDelay=this.options.scrollSpyDelay),this.options.scrollSpyOnce&&(this.options.autoAnimateOnce=!0),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof t?document.getElementById(t):t,e=null==e?this.parse(this.el.innerHTML):e,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.autoAnimate&&(this.error||"undefined"==typeof IntersectionObserver?this.error?console.error(this.error,t):console.error("IntersectionObserver is not supported by this browser"):this.setupObserver())}return t.prototype.setupObserver=function(){var e=this,s=t.observedElements.get(this.el);s&&s.unobserve(),t.observedElements.set(this.el,this),this.observer=new IntersectionObserver(function(t){for(var s=0,n=t;s<n.length;s++){var a=n[s];a.isIntersecting&&e.paused&&!e.once?(e.paused=!1,e.autoAnimateTimeout=setTimeout(function(){return e.start()},e.options.autoAnimateDelay),e.options.autoAnimateOnce&&(e.once=!0,e.observer.disconnect())):a.isIntersecting||e.paused||(clearTimeout(e.autoAnimateTimeout),e.reset())}},{threshold:0}),this.observer.observe(this.el)},t.prototype.unobserve=function(){var e;clearTimeout(this.autoAnimateTimeout),null===(e=this.observer)||void 0===e||e.disconnect(),t.observedElements.delete(this.el)},t.prototype.onDestroy=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.unobserve(),this.options.onCompleteCallback=null,this.options.onStartCallback=null},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var s=this.countDown?1:-1;this.endVal=t+s*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.once=!1,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e;if(this.el){var s=this.formattingFn(t);(null===(e=this.options.plugin)||void 0===e?void 0:e.render)?this.options.plugin.render(this.el,s):"INPUT"===this.el.tagName?this.el.value=s:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=s:this.el.innerHTML=s}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t.prototype.parse=function(t){var e=function(t){return t.replace(/([.,'  ])/g,"\\$1")},s=e(this.options.separator),n=e(this.options.decimal),a=t.replace(new RegExp(s,"g"),"").replace(new RegExp(n,"g"),".");return parseFloat(a)},t.observedElements=new WeakMap,t}();const r=()=>{const t="newsletter/count-up";return{name:t,menu:e=>{let{Compose:s}=e;return new s(()=>({type:t,props:{style:{fontSize:"80px",fontFamily:"Arial"},breakPoints:{sm:{style:{fontSize:"40px"}}},startVal:0,endVal:100,prefix:"",suffix:""}}),{group:"elements",name:t,puzzle:['<svg width="36" height="22" viewBox="0 0 36 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M33.8479 6.61923V8.7955C33.8479 9.01641 33.6688 9.1955 33.4479 9.1955H32.6175C32.3966 9.1955 32.2175 9.01641 32.2175 8.7955V6.61923C32.2175 6.39831 32.0384 6.21923 31.8175 6.21923H30.9333C30.5816 6.21923 30.4011 5.79808 30.6436 5.5434L32.7693 3.31093C32.9293 3.14288 33.1982 3.1458 33.3546 3.31728L35.3897 5.54975C35.6239 5.80657 35.4417 6.21923 35.0941 6.21923H34.2479C34.027 6.21923 33.8479 6.39831 33.8479 6.61923Z" fill="#5C5CE0"/>\n <path d="M32.1522 15.7719V13.5956C32.1522 13.3747 32.3313 13.1956 32.5522 13.1956H33.3826C33.6035 13.1956 33.7826 13.3747 33.7826 13.5956V15.7719C33.7826 15.9928 33.9617 16.1719 34.1826 16.1719H35.0668C35.4185 16.1719 35.599 16.593 35.3565 16.8477L33.2309 19.0802C33.0709 19.2482 32.8019 19.2453 32.6456 19.0738L30.6104 16.8414C30.3762 16.5845 30.5585 16.1719 30.906 16.1719H31.7522C31.9731 16.1719 32.1522 15.9928 32.1522 15.7719Z" fill="#5C5CE0"/>\n <path d="M1.31 8.072C1.31 7.35733 1.61933 6.77067 2.238 6.312C2.85667 5.85333 3.78467 5.624 5.022 5.624C6.25933 5.624 7.20867 5.85333 7.87 6.312C8.542 6.77067 8.878 7.45867 8.878 8.376C8.878 8.67467 8.85133 8.94667 8.798 9.192C8.74467 9.42667 8.622 9.67733 8.43 9.944C8.24867 10.2 8.06733 10.4293 7.886 10.632C7.71533 10.8347 7.41667 11.1013 6.99 11.432C6.35 11.944 5.678 12.456 4.974 12.968C4.27 13.4693 3.85933 13.7627 3.742 13.848L2.766 14.552H6.606C7.342 14.552 7.86467 14.392 8.174 14.072C8.48333 13.752 8.702 13.2507 8.83 12.568H9.102L8.942 17H1.422V15.144L3.038 13.656C4.13667 12.6533 4.91533 11.7627 5.374 10.984C5.83267 10.1947 6.062 9.33067 6.062 8.392C6.062 7.44267 5.96067 6.79733 5.758 6.456C5.55533 6.104 5.214 5.928 4.734 5.928C4.254 5.928 3.918 6.05067 3.726 6.296C3.534 6.54133 3.438 6.776 3.438 7C3.438 7.224 3.47 7.42133 3.534 7.592H4.014C4.09933 7.816 4.142 8.088 4.142 8.408C4.142 8.71733 4.00867 8.98933 3.742 9.224C3.47533 9.448 3.12333 9.56 2.686 9.56C2.24867 9.56 1.90733 9.42133 1.662 9.144C1.42733 8.856 1.31 8.49867 1.31 8.072ZM14.7941 17.16C13.2475 17.16 12.0688 16.6373 11.2581 15.592C10.4581 14.5467 10.0581 13.0853 10.0581 11.208C10.0581 9.33067 10.4901 7.93333 11.3541 7.016C12.2181 6.088 13.3968 5.624 14.8901 5.624C16.3941 5.624 17.5728 6.08267 18.4261 7C19.2901 7.91733 19.7221 9.37867 19.7221 11.384C19.7221 13.3893 19.2901 14.856 18.4261 15.784C17.5621 16.7013 16.3515 17.16 14.7941 17.16ZM13.3381 10.792V12.216C13.3381 13.2507 13.3435 13.9813 13.3541 14.408C13.3755 14.8347 13.4341 15.2773 13.5301 15.736C13.6261 16.1947 13.7808 16.4933 13.9941 16.632C14.2075 16.76 14.4581 16.824 14.7461 16.824C15.0341 16.824 15.2475 16.808 15.3861 16.776C15.5355 16.744 15.6635 16.68 15.7701 16.584C15.8875 16.4773 15.9835 16.376 16.0581 16.28C16.1328 16.1733 16.1915 16.0133 16.2341 15.8C16.2875 15.5867 16.3301 15.3893 16.3621 15.208C16.3941 15.0267 16.4155 14.76 16.4261 14.408C16.4475 13.7253 16.4581 13.0373 16.4581 12.344V10.936C16.4581 8.84533 16.3781 7.496 16.2181 6.888C16.0688 6.26933 15.6315 5.96 14.9061 5.96C14.1808 5.96 13.7381 6.27467 13.5781 6.904C13.4181 7.53333 13.3381 8.82933 13.3381 10.792ZM22.2351 6.216L20.4751 6.44L20.4431 6.12L24.0591 5.624H25.3551V16.696H26.6031V17H20.5551V16.696H22.2351V6.216Z" fill="black"/>\n </svg>\n '],tags:[t],index:null})},create:e=>{let{createElement:s,compose:i,helpers:r}=e;const l=document.createElement("div");for(const t in i.props.style)if(Object.hasOwnProperty.call(i.props.style,t)){const e=i.props.style[t];l.style[t]=e}let p=document.createElement("div");const u=document.createElement("cdtr-move-handle-bar");u.for=i.id,l.append(p),l.append(u);let h=new o(p,i.props.endVal,{prefix:i.props.prefix||"",suffix:i.props.suffix||"",separator:i.props.separator||"",startVal:i.props.startVal||0,duration:i.props.duration||2});return s({name:t,id:i.id,template:l,defaultProps:{},validator:a({template:l,helpers:r,countUpRef:h,reset:()=>{h=new o(p,i.props.endVal,{prefix:i.props.prefix||"",suffix:i.props.suffix||"",separator:i.props.separator||"",startVal:i.props.startVal,duration:i.props.duration}),h.start()}}),schema:i.schema,onSelect:t=>{l.classList.add(t)},onDeselect:t=>{l.classList.remove(t)},elementProps:i,remove:()=>{l.remove()},createEditor:n})}}}}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2350],{72350(t,i,e){e.r(i),e.d(i,{ChatIcon:()=>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
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1355],{91355(t,i,e){e.r(i),e.d(i,{ChatIcon:()=>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}"
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3553],{3553(e,t,n){n.r(t),n.d(t,{AnimationEditor:()=>r});var s=n(59929),o=n(54804),i=n(49937),a=n(86319),c=n(49549);const d=[{id:1,name:"fade_in",class_code:"fadeIn",src:"",props:{},puzzle:[{type:"fade-in"}]},{id:1,name:"fade_in_down",class_code:"fadeInDown",puzzle:[{type:"fade-in-down"}],props:{}},{id:1,name:"back_in_down",class_code:"backInDown",puzzle:[{type:"back-in-down"}],props:{}},{id:1,name:"back_in_right",class_code:"backInRight",puzzle:[{type:"back-in-right"}],props:{}},{id:1,name:"bounce",class_code:"bounce",puzzle:[{type:"bounce"}],props:{}},{id:1,name:"tada",class_code:"tada",puzzle:[{type:"tada"}],props:{}}];class r extends s.WF{constructor(){super(),this.animationsOptions=[{type:"scroll",props:{},title:"on_scroll"}],this.stack=[],this.selectedAnimations=null,this.animations=d,this.onInspect=this.onInspect.bind(this)}onMouseClick(e,t){switch(e){case"scroll":o.Ay.store().execCommand("interactions",e=>{const n=e.props.interactions,s=n.findIndex(e=>"scroll"===e.on&&"animation"===e.type);let o;return-1!==s&&(o=n[s],n.splice(s,1)),o&&o.value===t.class_code&&"className"===o.as&&"scroll"===o.on?(i.A.dispatch("snackbar",{text:a.M.get("lang","animation_deleted")}),n):(n.push({on:"scroll",type:"animation",as:"className",value:t.class_code}),i.A.dispatch("snackbar",{text:a.M.get("lang","animation_added")}),n)});break;case"hover":o.Ay.store().execCommand("interactions",e=>{const n=e.props.interactions,s=n.findIndex(e=>"hover"===e.on&&"animation"===e.type);let o;return-1!==s&&(o=n[s],n.splice(s,1)),o&&o.value===t.class_code&&"className"===o.as&&"hover"===o.on?(i.A.dispatch("snackbar",{text:a.M.get("lang","animation_deleted")}),n):(n.push({on:"hover",type:"animation",as:"className",value:t.class_code}),i.A.dispatch("snackbar",{text:a.M.get("lang","animation_added")}),n)})}}onMouseEnter(e){setTimeout(()=>{e.overed=!0,o.Ay.components.forEach(t=>{this.stack.push({animation:e,component:t}),t.element.classList.add(`cdtr__animate__${e.class_code}`),t.element.classList.add("cdtr__animated")}),this.animations=JSON.parse(JSON.stringify(this.animations))},20)}onMouseLeave(e){e.overed=!1,this.stack.forEach(e=>{let{component:t,animation:n}=e;t.element.classList.remove(`cdtr__animate__${n.class_code}`),t.element.classList.remove("cdtr__animated")}),this.stack=[],this.animations=JSON.parse(JSON.stringify(this.animations))}onInspect(){const e=o.Ay.components[0];if(e){const t=e.props.interactions.filter(e=>e.type="animation");this.selectedAnimations=t}}connectedCallback(){super.connectedCallback(),this.style.zIndex=99,this.onInspect(),o.Ay.on("select",this.onInspect),o.Ay.on("update",this.onInspect)}disconnectedCallback(){super.disconnectedCallback(),o.Ay.off("select",this.onInspect),o.Ay.off("update",this.onInspect)}render(){return s.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1364],{1364(e,t,n){n.r(t),n.d(t,{AnimationEditor:()=>r});var s=n(59929),o=n(28795),i=n(58423),a=n(43180),c=n(49549);const d=[{id:1,name:"fade_in",class_code:"fadeIn",src:"",props:{},puzzle:[{type:"fade-in"}]},{id:1,name:"fade_in_down",class_code:"fadeInDown",puzzle:[{type:"fade-in-down"}],props:{}},{id:1,name:"back_in_down",class_code:"backInDown",puzzle:[{type:"back-in-down"}],props:{}},{id:1,name:"back_in_right",class_code:"backInRight",puzzle:[{type:"back-in-right"}],props:{}},{id:1,name:"bounce",class_code:"bounce",puzzle:[{type:"bounce"}],props:{}},{id:1,name:"tada",class_code:"tada",puzzle:[{type:"tada"}],props:{}}];class r extends s.WF{constructor(){super(),this.animationsOptions=[{type:"scroll",props:{},title:"on_scroll"}],this.stack=[],this.selectedAnimations=null,this.animations=d,this.onInspect=this.onInspect.bind(this)}onMouseClick(e,t){switch(e){case"scroll":o.Ay.store().execCommand("interactions",e=>{const n=e.props.interactions,s=n.findIndex(e=>"scroll"===e.on&&"animation"===e.type);let o;return-1!==s&&(o=n[s],n.splice(s,1)),o&&o.value===t.class_code&&"className"===o.as&&"scroll"===o.on?(i.A.dispatch("snackbar",{text:a.M.get("lang","animation_deleted")}),n):(n.push({on:"scroll",type:"animation",as:"className",value:t.class_code}),i.A.dispatch("snackbar",{text:a.M.get("lang","animation_added")}),n)});break;case"hover":o.Ay.store().execCommand("interactions",e=>{const n=e.props.interactions,s=n.findIndex(e=>"hover"===e.on&&"animation"===e.type);let o;return-1!==s&&(o=n[s],n.splice(s,1)),o&&o.value===t.class_code&&"className"===o.as&&"hover"===o.on?(i.A.dispatch("snackbar",{text:a.M.get("lang","animation_deleted")}),n):(n.push({on:"hover",type:"animation",as:"className",value:t.class_code}),i.A.dispatch("snackbar",{text:a.M.get("lang","animation_added")}),n)})}}onMouseEnter(e){setTimeout(()=>{e.overed=!0,o.Ay.components.forEach(t=>{this.stack.push({animation:e,component:t}),t.element.classList.add(`cdtr__animate__${e.class_code}`),t.element.classList.add("cdtr__animated")}),this.animations=JSON.parse(JSON.stringify(this.animations))},20)}onMouseLeave(e){e.overed=!1,this.stack.forEach(e=>{let{component:t,animation:n}=e;t.element.classList.remove(`cdtr__animate__${n.class_code}`),t.element.classList.remove("cdtr__animated")}),this.stack=[],this.animations=JSON.parse(JSON.stringify(this.animations))}onInspect(){const e=o.Ay.components[0];if(e){const t=e.props.interactions.filter(e=>e.type="animation");this.selectedAnimations=t}}connectedCallback(){super.connectedCallback(),this.style.zIndex=99,this.onInspect(),o.Ay.on("select",this.onInspect),o.Ay.on("update",this.onInspect)}disconnectedCallback(){super.disconnectedCallback(),o.Ay.off("select",this.onInspect),o.Ay.off("update",this.onInspect)}render(){return s.qy`
2
2
  <cdtr-accordion-item isOpen=${!0} label="on_scroll">
3
3
  <cdtr-row>
4
4
  ${(0,c.u)(this.animations,e=>e.id,e=>s.qy`<cdtr-col
Binary file
@@ -0,0 +1 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1381],{71381(e,t,n){n.d(t,{default:()=>l});const o=e=>{{const{component:t,commands:n,helpers:o}=e;return{select:e=>{let{changeTab:t,tab:n}=e;"style"!==n.text&&t("style")},tabs:e=>{const t=[{text:"style"},{text:"interactions"}];return t.forEach(t=>t.selected=t.selected=t.text===e),t},layout:e=>{let{tab:s,changeTab:r,tabs:l}=e;const i=!(!(t.props.prefix||"").trim()&&!(t.props.suffix||"").trim()),a="style"===s.text;return[{type:"linkpicker",active:"interactions"===s.text,protocol:t.props.onClick?.link?.protocol,target:t.props.onClick?.link?.target,href:t.props.onClick?.link?.href,onChange:e=>{const t={link:e.target.value};n.execCommand("onClick",t)}},{type:"heading",level:4,text:"text",active:a},{active:a,type:"input",title:"text_before",value:t.props.prefix||"",onInput:e=>{const t=e.target.value;n.execCommand("prefix",t)}},{active:a,type:"input",title:"text_after",value:t.props.suffix||"",onInput:e=>{const t=e.target.value;n.execCommand("suffix",t)}},{type:"heading",level:4,text:"typography",active:a&&i},{active:a&&i,type:"typography",bold:700===t.props.style.fontWeight,italic:"italic"===t.props.style.fontStyle,underline:"underline"===t.props.style.textDecoration,onChange:e=>{switch(e){case"bold":const e=700===t.props.style.fontWeight?400:700;n.execCommand("style",{fontWeight:e});break;case"italic":const o="italic"===t.props.style.fontStyle?"normal":"italic";n.execCommand("style",{fontStyle:o});break;case"underline":const s="underline"===t.props.style.textDecoration?"none":"underline";n.execCommand("style",{textDecoration:s})}}},{active:a&&i,type:"fontFamily",value:t.props.style.fontFamily,weight:!0,weightValue:t.props.style.fontWeight,onChange:e=>{const t=e.target.value;n.execCommand("style",{fontFamily:t})},onWeightChange:e=>{n.execCommand("style",{fontWeight:e.detail.value})}},{active:a&&i,type:"colorpicker",title:"color",value:t.props.style?.color,onChange:e=>{const t=e.target.value;n.execCommand("style",{color:t})}},{active:a&&i,type:"fontSize",min:8,max:80,title:"fontSize",value:parseInt(t.props.style?.fontSize)||14,device:e=>{const n=e.target.device;e.target.value="phone"===n?parseInt(t.props?.breakpoints?.sm?.style?.fontSize)||14:parseInt(t.props.style.fontSize)||14},value:parseInt(t.props.style.fontSize)||14,onInput:e=>{const t=e.target.value;"phone"===e.target.device?n.execCommand("breakpoints",e=>{const n=e.props.breakpoints?.sm||{};return{sm:o.deepMerge(n,{style:{fontSize:t+"px"}})}}):n.execCommand("style",{fontSize:t+"px"})}},{active:a,type:"divider"},{active:"style"===s.text,type:"heading",level:4,text:"svg"},{active:"style"===s.text,type:"slider",min:10,max:600,title:"size",value:parseInt(t.props.width)||14,onInput:e=>{const t=e.target.value;n.execCommand("width",t)}},{active:"style"===s.text,type:"colorpicker",title:"svg_color",value:t.props.fill,onChange:e=>{const t=e.target.value;n.execCommand("fill",t)}},{active:"style"===s.text,type:"svgpicker",value:t.props.content,onChange:e=>{n.execCommand("content",e.svg)}}]}}}},s=["fontWeight","color","fontSize","textDecdoration","fontStyle","fontFamily"],r=e=>{let{helpers:t,template:n,svgElement:o,suffix:r,prefix:l}=e;return{set:(e,i,a)=>{switch(i){case"style":e[i]=t.deepMerge(e[i],a);for(const t in e[i])if(Object.hasOwnProperty.call(e[i],t)&&-1!==s.indexOf(t)){const o=e[i][t];n.style[t]=o}return!0;case"suffix":return e[i]=a,r(a),!0;case"prefix":return e[i]=a,l(a),!0;case"onClick":if(a.link)return e.onClick||(e.onClick={}),e.onClick={...e.onClick,...a},!0;break;case"content":return o.innerHTML=a,e[i]=a,!0;case"width":case"height":case"fill":return e[i]=a,o.setAttribute(i,a),o.style[i]=a,o.style.height="auto",!0;default:return!0}}}},l=()=>({name:"svg",create:e=>{let{createElement:t,compose:n,helpers:l}=e;"string"==typeof n.props.content&&-1!==n.props.content.indexOf("<svg")&&(n.props.content=(new DOMParser).parseFromString(n.props.content,"text/xml").firstElementChild.innerHTML);const i=document.createElement("span");i.innerHTML=n.props.prefix||"";const a=document.createElement("span");a.innerHTML=n.props.suffix||"";let p=(new DOMParser).parseFromString(`<svg\n width="30"\n height="auto"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 24 24">${n.props.content}</svg>`,"text/xml").firstChild;p.setAttribute("width",n?.props?.width||n?.props?.style?.width),p.setAttribute("fill",n?.props?.fill||n.props.style.fill);const c=document.createElement("div");if(c.setAttribute("dir","auto"),c.style=n.props.style,c.style.display="flex",c.style.alignItems="center",n.props.style)for(const e in n.props.style)if(Object.hasOwnProperty.call(n.props.style,e)&&-1!==s.indexOf(e)){const t=n.props.style[e];c.style[e]=t}const f=document.createElement("cdtr-move-handle-bar");return f.for=n.id,c.append(a,p,i,f),t({name:"svg",id:n.id,template:c,defaultProps:{},draggable:{group:"elements"},validator:r({template:c,helpers:l,svgElement:p,suffix:e=>a.innerHTML=e,prefix:e=>i.innerHTML=e}),schema:n.schema,onSelect:e=>{c.classList.add(e)},onDeselect:e=>{c.classList.remove(e)},elementProps:n,remove:()=>{c.remove()},createEditor:o})}})}}]);
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[271],{40271(e,t,i){i.r(t),i.d(t,{Input:()=>r});var n=i(59929),s=i(21663),o=i(21421);class r extends n.WF{constructor(){super(),this.type=void 0,this.inputRef=(0,o._)(),this.sliderRef=(0,o._)(),this.sliderRefX=(0,o._)(),this.min=0,this.max=100,this.step=1,this.autofocus=!1,this.type="number",this.value="number"===this.type?"0":"",this.placeholder="",this.onMouseDown=this.onMouseDown.bind(this),this.onChangeValue=this.onChangeValue.bind(this)}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)}getFloatCtrl(e){return parseFloat(e.value)}getIntCtrl(e){return parseInt(e.value)}onMouseDown(e){const t=e.clientX;let i=this.getFloatCtrl(this);isNaN(i)&&(i=0);const n=e=>{const n=Math.ceil(e.clientX-t);this.scaledIntCtrl(i,n)},s=()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",s)};window.addEventListener("mousemove",n),window.addEventListener("mouseup",s)}scaledIntCtrl(e,t){const i=this.max,n=this.min,s=e+Math.round(Math.sign(t)*Math.pow(Math.abs(t)/10,1.6));if(s<=parseInt(String(i))&&s>=parseInt(String(n))){this.value=String(s);const e=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}}onChangeValue(e){this.value=e.target.value}mouseCtrl(){const e=this.sliderRef.value,t=this.sliderRefX.value;e?.addEventListener("mousedown",this.onMouseDown),t?.addEventListener("mousedown",this.onMouseDown)}render(){return n.qy`<form class="form" @submit=${this.onSubmit}>
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1397],{31397(e,t,i){i.r(t),i.d(t,{Input:()=>r});var n=i(59929),s=i(51129),o=i(21421);class r extends n.WF{constructor(){super(),this.type=void 0,this.inputRef=(0,o._)(),this.sliderRef=(0,o._)(),this.sliderRefX=(0,o._)(),this.min=0,this.max=100,this.step=1,this.autofocus=!1,this.type="number",this.value="number"===this.type?"0":"",this.placeholder="",this.onMouseDown=this.onMouseDown.bind(this),this.onChangeValue=this.onChangeValue.bind(this)}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)}getFloatCtrl(e){return parseFloat(e.value)}getIntCtrl(e){return parseInt(e.value)}onMouseDown(e){const t=e.clientX;let i=this.getFloatCtrl(this);isNaN(i)&&(i=0);const n=e=>{const n=Math.ceil(e.clientX-t);this.scaledIntCtrl(i,n)},s=()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",s)};window.addEventListener("mousemove",n),window.addEventListener("mouseup",s)}scaledIntCtrl(e,t){const i=this.max,n=this.min,s=e+Math.round(Math.sign(t)*Math.pow(Math.abs(t)/10,1.6));if(s<=parseInt(String(i))&&s>=parseInt(String(n))){this.value=String(s);const e=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}}onChangeValue(e){this.value=e.target.value}mouseCtrl(){const e=this.sliderRef.value,t=this.sliderRefX.value;e?.addEventListener("mousedown",this.onMouseDown),t?.addEventListener("mousedown",this.onMouseDown)}render(){return n.qy`<form class="form" @submit=${this.onSubmit}>
2
2
  <input
3
3
  ${(0,o.K)(this.inputRef)}
4
4
  style="${this.inputStyle}"
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:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1426],{91426(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}"
Binary file
@@ -0,0 +1,6 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[145],{145(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
+ :host {
3
+ display: inherit;
4
+ }
5
+
6
+ `,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-remove-icon",s)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[112],{50112(t,e,i){i.r(e),i.d(e,{SwatchIcon:()=>r});var h=i(59929);class r extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1450],{99069(t,e,i){i.r(e),i.d(e,{SwatchIcon:()=>r});var h=i(59929);class r 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}"
Binary file
@@ -1 +1 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6151],{36151(e,n,t){t.d(n,{default:()=>w});let a=!0;const o=e=>{{const{component:n,commands:t,helpers:o}=e,i=n.parent("col"),r=e=>"style"===e.text;return{select:e=>{let{changeTab:n,tab:t}=e;t.text||n("style")},tabs:e=>{const n=[{text:"style",selected:!0},{text:"interactions"},{text:"settings"}];return e?(n.forEach(n=>n.selected=n.text===e),n):n},layout:e=>{const{tab:o,changeTab:s,tabs:l}=e;return[{type:"heading",level:6,text:"image",active:()=>r(o)},{type:"gallery",active:()=>r(o),src:n.props.src,hasPreview:!0,previewWidth:n.props.style?.width,text:"openGalleryImage",justify:"flex-start",onChange:e=>{let n=e.detail;Array.isArray(n)&&(n=n[0]),t.execCommand("src",n.src)}},{type:"input",title:"altText",active:()=>r(o),value:n.props.alt||"",onChange:e=>{const n=e.target.value;t.execCommand("alt",n)}},{type:"input",title:"add_urlAddress_from_media_site",active:()=>r(o),value:n.props.src||"",onChange:e=>{const n=e.target.value;t.execCommand("src",n)}},{type:"checkbox",title:"fullWidthOnMobile",checked:!!n.props.isFullWidthOnMobile,active:()=>r(o),onChange:e=>{const n=e.target.checked;t.execCommand("isFullWidthOnMobile",n)}},{type:"heading",level:6,text:"size",active:()=>r(o)},{type:"checkbox",title:"keep_ratio",checked:!!a,active:()=>r(o),onChange:e=>{a=!a,s("style")}},{type:"slider",min:10,title:"size",active:()=>r(o)&&a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const n=e.target.value;t.execCommand("style",{width:n+"px",height:"auto"})}},{type:"slider",min:10,title:"width",active:()=>r(o)&&!a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().height;t.execCommand("style",{width:a+"px",height:o+"px"})}},{type:"slider",min:10,title:"height",active:()=>r(o)&&!a,max:2*i?.element?.offsetWidth,value:parseInt(n.props.style.height),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().width;t.execCommand("style",{height:a+"px",width:o+"px"})}},{type:"heading",level:6,text:"border_design",active:()=>r(o)},{type:"radius",title:"radius",active:()=>r(o),min:0,max:parseInt(n.props.style.width)/2,value:parseInt(n.props.style.borderRadius),elementId:n.id,borderTopRightRadius:parseInt(n.props.style.borderTopRightRadius),borderTopLeftRadius:parseInt(n.props.style.borderTopLeftRadius),borderBottomRightRadius:parseInt(n.props.style.borderBottomRightRadius),borderBottomLeftRadius:parseInt(n.props.style.borderBottomLeftRadius),onInput:e=>{const n=e.target.json;t.execCommand("style",{borderTopRightRadius:n.borderTopRightRadius+"px",borderTopLeftRadius:n.borderTopLeftRadius+"px",borderBottomRightRadius:n.borderBottomRightRadius+"px",borderBottomLeftRadius:n.borderBottomLeftRadius+"px",borderRadius:null})}},{type:"heading",level:6,text:"alignment",active:()=>r(o)},{type:"dropdown",title:"horizontal_align",active:()=>r(o),value:"auto"===n.props.style.marginLeft&&"auto"===n.props.style.marginRight?"center":"auto"===n.props.style.marginLeft?"right":"left",items:[{value:"left",label:"left"},{value:"center",label:"center"},{value:"right",label:"right"}],onChange:e=>{const n=e.target.value,a={marginLeft:null,marginRight:null};"center"===n?(a.marginLeft="auto",a.marginRight="auto"):"right"===n?(a.marginLeft="auto",a.marginRight="0"):(a.marginLeft="0",a.marginRight="auto"),t.execCommand("style",a)}},{type:"dropdown",title:"vertical_align",active:()=>r(o),value:n.props.style.verticalAlign||"top",items:[{value:"top",label:"top"},{value:"middle",label:"middle"},{value:"bottom",label:"bottom"}],onChange:e=>{const n=e.target.value;t.execCommand("style",{verticalAlign:n})}},{type:"heading",level:6,text:"ai",active:()=>r(o)},{type:"imagePrompt",active:()=>r(o),onChange:e=>{e.target.value}},{type:"heading",level:6,text:"link",active:()=>"interactions"===o.text},{type:"linkpicker",href:n.props.onClick?.link,protocol:n.props.onClick?.link?.protocol,target:n.props.onClick?.link?.target,autofocus:!0,active:()=>"interactions"===o.text,onChange:e=>{const n={link:e.target.value};t.execCommand("onClick",n)}}]}}}};var i=t(52144);const r=()=>({set:(e,n,t)=>{switch(n){case"src":case"isFullWidthOnMobile":case"isOpenWithModal":case"isCircle":case"alt":case"onClick":return e[n]=t,!0;case"style":if("object"==typeof t)return e[n]=(0,i.A)(e[n],t),!0}}});var s=t(72591),l=t.n(s),A=t(88639),d=t.n(A),p=t(88128),c=t.n(p),m=t(30855),g=t.n(m),u=t(93051),h=t.n(u),C=t(98481),E={};E.setAttributes=g(),E.insert=c().bind(null,"head"),E.domAPI=d(),E.insertStyleElement=h();l()(C.A,E);const v=C.A&&C.A.locals?C.A.locals:void 0;function b(e){const n=document.createElement("div");n.className=v.wrapper;const t=document.createElement("div");t.className=v.skeleton;const a=document.createElement("div");a.className=v.shimmer,t.appendChild(a);const o=document.createElement("div");o.className=v.scanline,t.appendChild(o);const i=document.createElement("div");i.className=v.imageContainer,i.appendChild(e);let r=!1;function s(){if(!r)return;r=!1,n.classList.remove(v.loading),n.classList.add(v.revealed),e.classList.remove(v.imageHidden),e.classList.add(v.imageRevealed);const t=()=>{n.classList.remove(v.revealed),e.classList.remove(v.imageRevealed),e.removeEventListener("animationend",t)};e.addEventListener("animationend",t)}return e.addEventListener("load",s),e.addEventListener("error",s),{wrapper:n,showLoader:function(){(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||e.src&&!e.complete)&&(r=!0,n.classList.add(v.loading),e.classList.add(v.imageHidden))},hideLoader:s,wrap:function(e){n.appendChild(t),n.appendChild(i),e.appendChild(n)},skeleton:t}}var y=t(15364),f=t(86319),k=t(44217),B={};B.setAttributes=g(),B.insert=c().bind(null,"head"),B.domAPI=d(),B.insertStyleElement=h();l()(k.A,B);const x=k.A&&k.A.locals?k.A.locals:void 0,w=()=>{const e="image";return{name:e,create:n=>{const{createElement:t,compose:a,helpers:i}=n,{arrayToString:s,mergeDiff:l}=i,A=document.createElement("img"),d=document.createElement("div");a.props.style&&!parseInt(a.props.style.height)&&(a.props.style.height="auto"),A.addEventListener("drop",e=>{e.preventDefault();var n=e.dataTransfer.getData("text/html");const t=document.createElement("div");t.innerHTML=n;const o=t.querySelector("img");o&&o.src&&a.editor.store().updateComponent(a,"src",o.src)}),A.draggable=!0,A.src=a.props.src;const p=s(a.classList);A.className=s(p,"editor-image",x.image),d.append(A);const c=b(A);c.wrap(d);let m=a.props.src;a.props.src&&c.showLoader();const g=document.createElement("button");g.type="button",g.className=v.cropButton;const u=f.M.get("lang","crop_image")||"Crop image";function h(e){const n=e.target;n.classList.contains("amazingbar-content-wrapper")&&"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&("Delete"!==e.key&&"Backspace"!==e.key||C.commands.remove())}g.title=u,g.setAttribute("aria-label",u),g.innerHTML='<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2v14a2 2 0 0 0 2 2h14"/><path d="M18 22V8a2 2 0 0 0-2-2H2"/></svg>',g.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),(0,y.f)(a)}),c.wrapper.appendChild(g),A.addEventListener("dblclick",()=>{const e=document.createElement("cdtr-gallery");e.opened=!0,e.multi=!0,document.body.append(e),e.addEventListener("file",n=>{let t=n.detail;Array.isArray(t)&&(t=t[0]),a.editor.store().execCommands([{key:"src",value:t.src},{key:"style",value:{height:"auto"}}]),e.opened=!1,setTimeout(()=>{e.remove()},1500)}),e.addEventListener("close",()=>{e.remove()})});const C=t({name:e,id:a.id,template:d,defaultProps:{style:{height:"auto",width:"200px"}},draggable:{group:"element"},droppable:{group:"element"},render:()=>{l(A,{style:a.props.style}),A.width=a.props.width||a.props.style.width,A.height=a.props.height||a.props.style.height,a.props.src&&a.props.src!==m&&(m=a.props.src,c.showLoader(!0)),l(A,{src:a.props.src}),l(A,{alt:a.props.alt})},resizeable:()=>d,handleBar:!0,validator:r(),schema:a.schema,onSelect:e=>{A.classList.add(e),document.addEventListener("keyup",h)},onDeselect:e=>{A.classList.remove(e),document.removeEventListener("keyup",h)},elementProps:a,remove:()=>{d.remove()},createEditor:o});let E=0,k=0,B=!1,w=!1,R=!1,L=!1;return A.addEventListener("dragover",e=>{e.preventDefault()}),A.addEventListener("dragstart",e=>{E=e.clientX,k=e.clientY,B=!0,w=!1,R=!1,L=!1}),A.addEventListener("drag",e=>{if(!B)return;const n=A.closest(".block-component")||A.closest("[data-block]")||A.parentElement;if(!n)return;const t=n.getBoundingClientRect(),a=t.width,o=t.left,i=e.clientX-o,r=.3*a,s=.7*a;if(i<r&&!w){w=!0,L=!1,R=!1;const e=C.parent("col");e&&e.commands.execCommand("justify","start")}else if(i>s&&!R){R=!0,L=!1,w=!1;const e=C.parent("col");e&&e.commands.execCommand("justify","end")}else if(i>=r&&i<=s&&!L){L=!0,w=!1,R=!1;const e=C.closest("col");e&&e.commands.execCommand("justify","center")}}),A.addEventListener("dragend",e=>{B=!1,w=!1,R=!1,L=!1}),C}}}},98481(e,n,t){t.d(n,{A:()=>s});var a=t(82001),o=t.n(a),i=t(40935),r=t.n(i)()(o());r.push([e.id,".lohuqKHS721dHgrbXSxR {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.svsvvszZebJje0J5_aR0 {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n/* Crop / edit-image button — appears on hover over the image */\n.pQ89uz0UlGnGPEecwX2t {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 2;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 8px;\n color: #fff;\n background: rgba(0, 0, 0, 0.55);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.15s ease-out, background 0.15s ease-out;\n}\n\n.lohuqKHS721dHgrbXSxR:hover .pQ89uz0UlGnGPEecwX2t {\n opacity: 1;\n}\n\n.pQ89uz0UlGnGPEecwX2t:hover {\n background: rgba(0, 0, 0, 0.75);\n}\n\n.X_p_Nfsu3cFahVFu4_Bw {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n._6bzBNhs7hY6_EZJBee1 {\n animation: RDp05pdkytBCK3jwjH1H 0.4s ease-out forwards;\n}\n\n@keyframes RDp05pdkytBCK3jwjH1H {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.gT24aWaYLc3ogXj85wMz {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: _Mzf8MsKMSARt4xYISlA 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.lohuqKHS721dHgrbXSxR.MhfE6WSo5ganwIXH6eLf .gT24aWaYLc3ogXj85wMz {\n opacity: 1;\n z-index: 1;\n}\n\n.lohuqKHS721dHgrbXSxR:not(.MhfE6WSo5ganwIXH6eLf) .gT24aWaYLc3ogXj85wMz {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.lohuqKHS721dHgrbXSxR.MsTRDhZG2BCJz9_2FibU .gT24aWaYLc3ogXj85wMz {\n animation: j0DUaUfa5Px2EIxpK3zU 0.4s ease-out forwards;\n}\n\n@keyframes _Mzf8MsKMSARt4xYISlA {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes j0DUaUfa5Px2EIxpK3zU {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.EcbfYuWAe3Ej6GnLZxPW {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: dOhdOxhPYbAyl0kAuAmR 2s ease-in-out infinite;\n}\n\n@keyframes dOhdOxhPYbAyl0kAuAmR {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.ixwwhz1RPbWh52COfXpg {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: qDDvb69LDcaVxWWlah1p 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes qDDvb69LDcaVxWWlah1p {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n","",{version:3,sources:["webpack://./../web-editors/image-editor-component/lib/image-loader.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,cAAc;EACd,cAAc;AAChB;;AAEA,+DAA+D;AAC/D;EACE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,UAAU;EACV,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;EACvB,WAAW;EACX,YAAY;EACZ,UAAU;EACV,YAAY;EACZ,kBAAkB;EAClB,WAAW;EACX,+BAA+B;EAC/B,eAAe;EACf,UAAU;EACV,6DAA6D;AAC/D;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,UAAU;EACV,kCAAkC;AACpC;;AAEA;EACE,sDAA6C;AAC/C;;AAEA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA,gDAAgD;AAChD;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,0BAA0B;EAC1B,yDAAoD;EACpD,oBAAoB;AACtB;;AAEA;EACE,UAAU;EACV,UAAU;AACZ;;AAEA;EACE,UAAU;EACV,oBAAoB;EACpB,WAAW;EACX,iCAAiC;AACnC;;AAEA;EACE,sDAAiD;AACnD;;AAEA;EACE;IACE,2BAA2B;EAC7B;EACA;IACE,4BAA4B;EAC9B;AACF;;AAEA;EACE;IACE,UAAU;EACZ;AACF;;AAEA,4BAA4B;AAC5B;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,yBAAyB;EACzB,uDAA+C;AACjD;;AAEA;EACE;IACE,4BAA4B;EAC9B;EACA;IACE,2BAA2B;EAC7B;AACF;;AAEA,yBAAyB;AACzB;EACE,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX;;;;;GAKC;EACD,yDAAiD;EACjD,4CAA4C;AAC9C;;AAEA;EACE;IACE,MAAM;IACN,UAAU;EACZ;EACA;IACE,SAAS;IACT,YAAY;EACd;EACA;IACE,SAAS;IACT,UAAU;EACZ;AACF",sourcesContent:[".wrapper {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.imageContainer {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n/* Crop / edit-image button — appears on hover over the image */\n.cropButton {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 2;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 8px;\n color: #fff;\n background: rgba(0, 0, 0, 0.55);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.15s ease-out, background 0.15s ease-out;\n}\n\n.wrapper:hover .cropButton {\n opacity: 1;\n}\n\n.cropButton:hover {\n background: rgba(0, 0, 0, 0.75);\n}\n\n.imageHidden {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n.imageRevealed {\n animation: imageFadeIn 0.4s ease-out forwards;\n}\n\n@keyframes imageFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.skeleton {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: skeletonShimmer 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.wrapper.loading .skeleton {\n opacity: 1;\n z-index: 1;\n}\n\n.wrapper:not(.loading) .skeleton {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.wrapper.revealed .skeleton {\n animation: skeletonFadeOut 0.4s ease-out forwards;\n}\n\n@keyframes skeletonShimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes skeletonFadeOut {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.shimmer {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: shimmerSweep 2s ease-in-out infinite;\n}\n\n@keyframes shimmerSweep {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.scanline {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: scanlineMove 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes scanlineMove {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n"],sourceRoot:""}]),r.locals={wrapper:"lohuqKHS721dHgrbXSxR",imageContainer:"svsvvszZebJje0J5_aR0",cropButton:"pQ89uz0UlGnGPEecwX2t",imageHidden:"X_p_Nfsu3cFahVFu4_Bw",imageRevealed:"_6bzBNhs7hY6_EZJBee1",imageFadeIn:"RDp05pdkytBCK3jwjH1H",skeleton:"gT24aWaYLc3ogXj85wMz",skeletonShimmer:"_Mzf8MsKMSARt4xYISlA",loading:"MhfE6WSo5ganwIXH6eLf",revealed:"MsTRDhZG2BCJz9_2FibU",skeletonFadeOut:"j0DUaUfa5Px2EIxpK3zU",shimmer:"EcbfYuWAe3Ej6GnLZxPW",shimmerSweep:"dOhdOxhPYbAyl0kAuAmR",scanline:"ixwwhz1RPbWh52COfXpg",scanlineMove:"qDDvb69LDcaVxWWlah1p"};const s=r},44217(e,n,t){t.d(n,{A:()=>s});var a=t(82001),o=t.n(a),i=t(40935),r=t.n(i)()(o());r.push([e.id,".YbsG1_k3QD06_W0gNo53{\n display: block;\n max-width: 100%;\n}","",{version:3,sources:["webpack://./../web-editors/image-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;IACI,cAAc;IACd,eAAe;AACnB",sourcesContent:[".image{\n display: block;\n max-width: 100%;\n}"],sourceRoot:""}]),r.locals={image:"YbsG1_k3QD06_W0gNo53"};const s=r}}]);
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1606],{41606(e,n,t){t.d(n,{default:()=>w});let a=!0;const o=e=>{{const{component:n,commands:t,helpers:o}=e,i=n.parent("col"),r=e=>"style"===e.text;return{select:e=>{let{changeTab:n,tab:t}=e;t.text||n("style")},tabs:e=>{const n=[{text:"style",selected:!0},{text:"interactions"},{text:"settings"}];return e?(n.forEach(n=>n.selected=n.text===e),n):n},layout:e=>{const{tab:o,changeTab:s,tabs:l}=e;return[{type:"heading",level:6,text:"image",active:()=>r(o)},{type:"gallery",active:()=>r(o),src:n.props.src,hasPreview:!0,previewWidth:n.props.style?.width,text:"openGalleryImage",justify:"flex-start",onChange:e=>{let n=e.detail;Array.isArray(n)&&(n=n[0]),t.execCommand("src",n.src)}},{type:"input",title:"altText",active:()=>r(o),value:n.props.alt||"",onChange:e=>{const n=e.target.value;t.execCommand("alt",n)}},{type:"input",title:"add_urlAddress_from_media_site",active:()=>r(o),value:n.props.src||"",onChange:e=>{const n=e.target.value;t.execCommand("src",n)}},{type:"checkbox",title:"fullWidthOnMobile",checked:!!n.props.isFullWidthOnMobile,active:()=>r(o),onChange:e=>{const n=e.target.checked;t.execCommand("isFullWidthOnMobile",n)}},{type:"heading",level:6,text:"size",active:()=>r(o)},{type:"checkbox",title:"keep_ratio",checked:!!a,active:()=>r(o),onChange:e=>{a=!a,s("style")}},{type:"slider",min:10,title:"size",active:()=>r(o)&&a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const n=e.target.value;t.execCommand("style",{width:n+"px",height:"auto"})}},{type:"slider",min:10,title:"width",active:()=>r(o)&&!a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().height;t.execCommand("style",{width:a+"px",height:o+"px"})}},{type:"slider",min:10,title:"height",active:()=>r(o)&&!a,max:2*i?.element?.offsetWidth,value:parseInt(n.props.style.height),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().width;t.execCommand("style",{height:a+"px",width:o+"px"})}},{type:"heading",level:6,text:"border_design",active:()=>r(o)},{type:"radius",title:"radius",active:()=>r(o),min:0,max:parseInt(n.props.style.width)/2,value:parseInt(n.props.style.borderRadius),elementId:n.id,borderTopRightRadius:parseInt(n.props.style.borderTopRightRadius),borderTopLeftRadius:parseInt(n.props.style.borderTopLeftRadius),borderBottomRightRadius:parseInt(n.props.style.borderBottomRightRadius),borderBottomLeftRadius:parseInt(n.props.style.borderBottomLeftRadius),onInput:e=>{const n=e.target.json;t.execCommand("style",{borderTopRightRadius:n.borderTopRightRadius+"px",borderTopLeftRadius:n.borderTopLeftRadius+"px",borderBottomRightRadius:n.borderBottomRightRadius+"px",borderBottomLeftRadius:n.borderBottomLeftRadius+"px",borderRadius:null})}},{type:"heading",level:6,text:"alignment",active:()=>r(o)},{type:"dropdown",title:"horizontal_align",active:()=>r(o),value:"auto"===n.props.style.marginLeft&&"auto"===n.props.style.marginRight?"center":"auto"===n.props.style.marginLeft?"right":"left",items:[{value:"left",label:"left"},{value:"center",label:"center"},{value:"right",label:"right"}],onChange:e=>{const n=e.target.value,a={marginLeft:null,marginRight:null};"center"===n?(a.marginLeft="auto",a.marginRight="auto"):"right"===n?(a.marginLeft="auto",a.marginRight="0"):(a.marginLeft="0",a.marginRight="auto"),t.execCommand("style",a)}},{type:"dropdown",title:"vertical_align",active:()=>r(o),value:n.props.style.verticalAlign||"top",items:[{value:"top",label:"top"},{value:"middle",label:"middle"},{value:"bottom",label:"bottom"}],onChange:e=>{const n=e.target.value;t.execCommand("style",{verticalAlign:n})}},{type:"heading",level:6,text:"ai",active:()=>r(o)},{type:"imagePrompt",active:()=>r(o),onChange:e=>{e.target.value}},{type:"heading",level:6,text:"link",active:()=>"interactions"===o.text},{type:"linkpicker",href:n.props.onClick?.link,protocol:n.props.onClick?.link?.protocol,target:n.props.onClick?.link?.target,autofocus:!0,active:()=>"interactions"===o.text,onChange:e=>{const n={link:e.target.value};t.execCommand("onClick",n)}}]}}}};var i=t(69893);const r=()=>({set:(e,n,t)=>{switch(n){case"src":case"isFullWidthOnMobile":case"isOpenWithModal":case"isCircle":case"alt":case"onClick":return e[n]=t,!0;case"style":if("object"==typeof t)return e[n]=(0,i.A)(e[n],t),!0}}});var s=t(72591),l=t.n(s),A=t(88639),d=t.n(A),p=t(88128),c=t.n(p),m=t(30855),g=t.n(m),u=t(93051),h=t.n(u),C=t(22868),E={};E.setAttributes=g(),E.insert=c().bind(null,"head"),E.domAPI=d(),E.insertStyleElement=h();l()(C.A,E);const v=C.A&&C.A.locals?C.A.locals:void 0;function b(e){const n=document.createElement("div");n.className=v.wrapper;const t=document.createElement("div");t.className=v.skeleton;const a=document.createElement("div");a.className=v.shimmer,t.appendChild(a);const o=document.createElement("div");o.className=v.scanline,t.appendChild(o);const i=document.createElement("div");i.className=v.imageContainer,i.appendChild(e);let r=!1;function s(){if(!r)return;r=!1,n.classList.remove(v.loading),n.classList.add(v.revealed),e.classList.remove(v.imageHidden),e.classList.add(v.imageRevealed);const t=()=>{n.classList.remove(v.revealed),e.classList.remove(v.imageRevealed),e.removeEventListener("animationend",t)};e.addEventListener("animationend",t)}return e.addEventListener("load",s),e.addEventListener("error",s),{wrapper:n,showLoader:function(){(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||e.src&&!e.complete)&&(r=!0,n.classList.add(v.loading),e.classList.add(v.imageHidden))},hideLoader:s,wrap:function(e){n.appendChild(t),n.appendChild(i),e.appendChild(n)},skeleton:t}}var y=t(58991),f=t(43180),k=t(74594),B={};B.setAttributes=g(),B.insert=c().bind(null,"head"),B.domAPI=d(),B.insertStyleElement=h();l()(k.A,B);const x=k.A&&k.A.locals?k.A.locals:void 0,w=()=>{const e="image";return{name:e,create:n=>{const{createElement:t,compose:a,helpers:i}=n,{arrayToString:s,mergeDiff:l}=i,A=document.createElement("img"),d=document.createElement("div");a.props.style&&!parseInt(a.props.style.height)&&(a.props.style.height="auto"),A.addEventListener("drop",e=>{e.preventDefault();var n=e.dataTransfer.getData("text/html");const t=document.createElement("div");t.innerHTML=n;const o=t.querySelector("img");o&&o.src&&a.editor.store().updateComponent(a,"src",o.src)}),A.draggable=!0,A.src=a.props.src;const p=s(a.classList);A.className=s(p,"editor-image",x.image),d.append(A);const c=b(A);c.wrap(d);let m=a.props.src;a.props.src&&c.showLoader();const g=document.createElement("button");g.type="button",g.className=v.cropButton;const u=f.M.get("lang","crop_image")||"Crop image";function h(e){const n=e.target;n.classList.contains("amazingbar-content-wrapper")&&"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&("Delete"!==e.key&&"Backspace"!==e.key||C.commands.remove())}g.title=u,g.setAttribute("aria-label",u),g.innerHTML='<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2v14a2 2 0 0 0 2 2h14"/><path d="M18 22V8a2 2 0 0 0-2-2H2"/></svg>',g.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),(0,y.f)(a)}),c.wrapper.appendChild(g),A.addEventListener("dblclick",()=>{const e=document.createElement("cdtr-gallery");e.opened=!0,e.multi=!0,document.body.append(e),e.addEventListener("file",n=>{let t=n.detail;Array.isArray(t)&&(t=t[0]),a.editor.store().execCommands([{key:"src",value:t.src},{key:"style",value:{height:"auto"}}]),e.opened=!1,setTimeout(()=>{e.remove()},1500)}),e.addEventListener("close",()=>{e.remove()})});const C=t({name:e,id:a.id,template:d,defaultProps:{style:{height:"auto",width:"200px"}},draggable:{group:"element"},droppable:{group:"element"},render:()=>{l(A,{style:a.props.style}),A.width=a.props.width||a.props.style.width,A.height=a.props.height||a.props.style.height,a.props.src&&a.props.src!==m&&(m=a.props.src,c.showLoader(!0)),l(A,{src:a.props.src}),l(A,{alt:a.props.alt})},resizeable:()=>d,handleBar:!0,validator:r(),schema:a.schema,onSelect:e=>{A.classList.add(e),document.addEventListener("keyup",h)},onDeselect:e=>{A.classList.remove(e),document.removeEventListener("keyup",h)},elementProps:a,remove:()=>{d.remove()},createEditor:o});let E=0,k=0,B=!1,w=!1,R=!1,L=!1;return A.addEventListener("dragover",e=>{e.preventDefault()}),A.addEventListener("dragstart",e=>{E=e.clientX,k=e.clientY,B=!0,w=!1,R=!1,L=!1}),A.addEventListener("drag",e=>{if(!B)return;const n=A.closest(".block-component")||A.closest("[data-block]")||A.parentElement;if(!n)return;const t=n.getBoundingClientRect(),a=t.width,o=t.left,i=e.clientX-o,r=.3*a,s=.7*a;if(i<r&&!w){w=!0,L=!1,R=!1;const e=C.parent("col");e&&e.commands.execCommand("justify","start")}else if(i>s&&!R){R=!0,L=!1,w=!1;const e=C.parent("col");e&&e.commands.execCommand("justify","end")}else if(i>=r&&i<=s&&!L){L=!0,w=!1,R=!1;const e=C.closest("col");e&&e.commands.execCommand("justify","center")}}),A.addEventListener("dragend",e=>{B=!1,w=!1,R=!1,L=!1}),C}}}},22868(e,n,t){t.d(n,{A:()=>s});var a=t(82001),o=t.n(a),i=t(40935),r=t.n(i)()(o());r.push([e.id,".lohuqKHS721dHgrbXSxR {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.svsvvszZebJje0J5_aR0 {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n/* Crop / edit-image button — appears on hover over the image */\n.pQ89uz0UlGnGPEecwX2t {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 2;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 8px;\n color: #fff;\n background: rgba(0, 0, 0, 0.55);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.15s ease-out, background 0.15s ease-out;\n}\n\n.lohuqKHS721dHgrbXSxR:hover .pQ89uz0UlGnGPEecwX2t {\n opacity: 1;\n}\n\n.pQ89uz0UlGnGPEecwX2t:hover {\n background: rgba(0, 0, 0, 0.75);\n}\n\n.X_p_Nfsu3cFahVFu4_Bw {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n._6bzBNhs7hY6_EZJBee1 {\n animation: RDp05pdkytBCK3jwjH1H 0.4s ease-out forwards;\n}\n\n@keyframes RDp05pdkytBCK3jwjH1H {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.gT24aWaYLc3ogXj85wMz {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: _Mzf8MsKMSARt4xYISlA 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.lohuqKHS721dHgrbXSxR.MhfE6WSo5ganwIXH6eLf .gT24aWaYLc3ogXj85wMz {\n opacity: 1;\n z-index: 1;\n}\n\n.lohuqKHS721dHgrbXSxR:not(.MhfE6WSo5ganwIXH6eLf) .gT24aWaYLc3ogXj85wMz {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.lohuqKHS721dHgrbXSxR.MsTRDhZG2BCJz9_2FibU .gT24aWaYLc3ogXj85wMz {\n animation: j0DUaUfa5Px2EIxpK3zU 0.4s ease-out forwards;\n}\n\n@keyframes _Mzf8MsKMSARt4xYISlA {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes j0DUaUfa5Px2EIxpK3zU {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.EcbfYuWAe3Ej6GnLZxPW {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: dOhdOxhPYbAyl0kAuAmR 2s ease-in-out infinite;\n}\n\n@keyframes dOhdOxhPYbAyl0kAuAmR {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.ixwwhz1RPbWh52COfXpg {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: qDDvb69LDcaVxWWlah1p 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes qDDvb69LDcaVxWWlah1p {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n","",{version:3,sources:["webpack://./../web-editors/image-editor-component/lib/image-loader.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,cAAc;EACd,cAAc;AAChB;;AAEA,+DAA+D;AAC/D;EACE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,UAAU;EACV,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;EACvB,WAAW;EACX,YAAY;EACZ,UAAU;EACV,YAAY;EACZ,kBAAkB;EAClB,WAAW;EACX,+BAA+B;EAC/B,eAAe;EACf,UAAU;EACV,6DAA6D;AAC/D;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,UAAU;EACV,kCAAkC;AACpC;;AAEA;EACE,sDAA6C;AAC/C;;AAEA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA,gDAAgD;AAChD;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,0BAA0B;EAC1B,yDAAoD;EACpD,oBAAoB;AACtB;;AAEA;EACE,UAAU;EACV,UAAU;AACZ;;AAEA;EACE,UAAU;EACV,oBAAoB;EACpB,WAAW;EACX,iCAAiC;AACnC;;AAEA;EACE,sDAAiD;AACnD;;AAEA;EACE;IACE,2BAA2B;EAC7B;EACA;IACE,4BAA4B;EAC9B;AACF;;AAEA;EACE;IACE,UAAU;EACZ;AACF;;AAEA,4BAA4B;AAC5B;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,yBAAyB;EACzB,uDAA+C;AACjD;;AAEA;EACE;IACE,4BAA4B;EAC9B;EACA;IACE,2BAA2B;EAC7B;AACF;;AAEA,yBAAyB;AACzB;EACE,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX;;;;;GAKC;EACD,yDAAiD;EACjD,4CAA4C;AAC9C;;AAEA;EACE;IACE,MAAM;IACN,UAAU;EACZ;EACA;IACE,SAAS;IACT,YAAY;EACd;EACA;IACE,SAAS;IACT,UAAU;EACZ;AACF",sourcesContent:[".wrapper {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.imageContainer {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n/* Crop / edit-image button — appears on hover over the image */\n.cropButton {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 2;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 8px;\n color: #fff;\n background: rgba(0, 0, 0, 0.55);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.15s ease-out, background 0.15s ease-out;\n}\n\n.wrapper:hover .cropButton {\n opacity: 1;\n}\n\n.cropButton:hover {\n background: rgba(0, 0, 0, 0.75);\n}\n\n.imageHidden {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n.imageRevealed {\n animation: imageFadeIn 0.4s ease-out forwards;\n}\n\n@keyframes imageFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.skeleton {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: skeletonShimmer 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.wrapper.loading .skeleton {\n opacity: 1;\n z-index: 1;\n}\n\n.wrapper:not(.loading) .skeleton {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.wrapper.revealed .skeleton {\n animation: skeletonFadeOut 0.4s ease-out forwards;\n}\n\n@keyframes skeletonShimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes skeletonFadeOut {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.shimmer {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: shimmerSweep 2s ease-in-out infinite;\n}\n\n@keyframes shimmerSweep {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.scanline {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: scanlineMove 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes scanlineMove {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n"],sourceRoot:""}]),r.locals={wrapper:"lohuqKHS721dHgrbXSxR",imageContainer:"svsvvszZebJje0J5_aR0",cropButton:"pQ89uz0UlGnGPEecwX2t",imageHidden:"X_p_Nfsu3cFahVFu4_Bw",imageRevealed:"_6bzBNhs7hY6_EZJBee1",imageFadeIn:"RDp05pdkytBCK3jwjH1H",skeleton:"gT24aWaYLc3ogXj85wMz",skeletonShimmer:"_Mzf8MsKMSARt4xYISlA",loading:"MhfE6WSo5ganwIXH6eLf",revealed:"MsTRDhZG2BCJz9_2FibU",skeletonFadeOut:"j0DUaUfa5Px2EIxpK3zU",shimmer:"EcbfYuWAe3Ej6GnLZxPW",shimmerSweep:"dOhdOxhPYbAyl0kAuAmR",scanline:"ixwwhz1RPbWh52COfXpg",scanlineMove:"qDDvb69LDcaVxWWlah1p"};const s=r},74594(e,n,t){t.d(n,{A:()=>s});var a=t(82001),o=t.n(a),i=t(40935),r=t.n(i)()(o());r.push([e.id,".YbsG1_k3QD06_W0gNo53{\n display: block;\n max-width: 100%;\n}","",{version:3,sources:["webpack://./../web-editors/image-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;IACI,cAAc;IACd,eAAe;AACnB",sourcesContent:[".image{\n display: block;\n max-width: 100%;\n}"],sourceRoot:""}]),r.locals={image:"YbsG1_k3QD06_W0gNo53"};const s=r}}]);
Binary file
@@ -0,0 +1,34 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[166],{30166(e,t,s){s.r(t),s.d(t,{ImageSkeleton:()=>n});var i=s(59929);class n extends i.WF{constructor(){super()}render(){return i.qy` <div class="skeleton-item skeleton-image"></div>`}}n.styles=i.AH`
2
+ :host {
3
+ display: block;
4
+ width: 100%;
5
+ height: 100%;
6
+ }
7
+ .skeleton-item {
8
+ background: #e8e4f0;
9
+ border-radius: 4px;
10
+ position: relative;
11
+ overflow: hidden;
12
+ width: 100%;
13
+ height: 100%;
14
+ }
15
+ .skeleton-item::after {
16
+ content: "";
17
+ position: absolute;
18
+ top: 0;
19
+ left: 0;
20
+ width: 100%;
21
+ height: 100%;
22
+ background: linear-gradient(90deg, #e8e4f0, #f0ecf8, #e8e4f0);
23
+ animation: skeleton-shimmer 1.6s ease-in-out infinite;
24
+ }
25
+
26
+ @keyframes skeleton-shimmer {
27
+ 0% {
28
+ transform: translate3d(-100%, 0, 0);
29
+ }
30
+ 100% {
31
+ transform: translate3d(100%, 0, 0);
32
+ }
33
+ }
34
+ `,customElements.define("cdtr-image-skeleton",n)}}]);
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[767],{70767(e,t,r){r.r(t),r.d(t,{PexelsGallery:()=>n});var a=r(59929),s=r(49549),o=r(93967),i=r(86959);function l(e){e||(e={query:"nature",per_page:1});const t=`${i.XW.agent_url}pexels/search/?query=${e.query||"marketing"}&per_page=${e.per_page||1}`;return fetch(t).then(e=>e.json()).then(e=>{if("success"===e.status&&e.data)return e.data.photos;throw new Error("Invalid response from backend")}).catch(e=>{throw console.error("Error fetching images:",e),e})}class n extends a.WF{constructor(){super(),this.images=[],this.loading=!1,this.searchQuery="",this.page=1,this.hasMore=!0,this.perPage=20,this.multi=!0,this.defaultSearchTerms=["nature","landscape","city","people","technology","food","architecture","travel","business","art"],this.cacheKey="pexels-gallery-cache",this.cacheExpiry=864e5,this.isTyping=!1,this.lastSearchQuery="",this.searchTimeout=null}connectedCallback(){super.connectedCallback(),this.loadFromCache()}getCacheData(){try{const e=localStorage.getItem(this.cacheKey);if(!e)return null;const t=JSON.parse(e),r=Date.now();return t.timestamp&&r-t.timestamp>this.cacheExpiry?(localStorage.removeItem(this.cacheKey),null):t}catch(e){return console.error("Error reading cache:",e),null}}saveToCache(){if(!this.isTyping)try{const e={images:this.images,searchQuery:this.searchQuery,page:this.page,hasMore:this.hasMore,timestamp:Date.now()};localStorage.setItem(this.cacheKey,JSON.stringify(e))}catch(e){console.error("Error saving to cache:",e)}}loadFromCache(){const e=this.getCacheData();e?(this.images=e.images||[],this.searchQuery=e.searchQuery||"",this.page=e.page||1,this.hasMore=void 0===e.hasMore||e.hasMore,console.log("Gallery state restored from cache"),this.requestUpdate(),this.updateComplete.then(()=>{this.updateSearchInput()})):this.loadRandomImages()}updateSearchInput(){const e=this.shadowRoot?.querySelector('cdtr-input[type="search"]');e&&(e.value=this.searchQuery)}async loadRandomImages(){this.loading=!0;try{const e=this.defaultSearchTerms[Math.floor(Math.random()*this.defaultSearchTerms.length)],t=await l({query:e,per_page:this.perPage});t?(this.images=t||[],this.hasMore=t&&t.length===this.perPage,this.searchQuery="",this.page=1,this.saveToCache()):(console.error("Failed to load images from Pexels"),this.images=[])}catch(e){console.error("Error loading images:",e),this.images=[]}finally{this.loading=!1}}async searchImages(e){if(!e.trim())return this.loadRandomImages();this.loading=!0,this.searchQuery=e,this.page=1;try{const t=await l({query:e,per_page:this.perPage});t?(this.images=t||[],this.hasMore=t&&t.length===this.perPage,this.saveToCache()):(console.error("Failed to search images from Pexels"),this.images=[])}catch(e){console.error("Error searching images:",e),this.images=[]}finally{this.loading=!1}}async loadMoreImages(){if(!this.loading&&this.hasMore){this.loading=!0,this.page++;try{const e=this.searchQuery||this.defaultSearchTerms[Math.floor(Math.random()*this.defaultSearchTerms.length)],t=await l({query:e,per_page:this.perPage});if(t.ok){const e=(await t.json()).photos||[];this.images=[...this.images,...e],this.hasMore=e.length===this.perPage,this.saveToCache()}}catch(e){console.error("Error loading more images:",e)}finally{this.loading=!1}}}onSearch(e){const t=e.target.value;this.isTyping=!0,t!==this.lastSearchQuery&&(this.lastSearchQuery=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.isTyping=!1,this.searchImages(t)},500))}onSelectImage(e){const t=`Photo by ${e.photographer} on Pexels`,r=`Photo by <a href="${e.photographer_url}" target="_blank" rel="noopener noreferrer">${e.photographer}</a> on <a href="${e.url}" target="_blank" rel="noopener noreferrer">Pexels</a>`,a={detail:{id:e.id,src:e.src.medium||e.src.large||e.src.original,name:`Pexels Image ${e.id}`,size:`${e.width}x${e.height}`,photographer:e.photographer,photographerUrl:e.photographer_url,pexelsUrl:e.url,alt:e.alt||`Photo by ${e.photographer} on Pexels`,attributionText:t,attributionHtml:r},bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",a))}sendSelectedImages(){const e={detail:this.images.filter(e=>e.selected).map(e=>{const t=`Photo by ${e.photographer} on Pexels`,r=`Photo by <a href="${e.photographer_url}" target="_blank" rel="noopener noreferrer">${e.photographer}</a> on <a href="${e.url}" target="_blank" rel="noopener noreferrer">Pexels</a>`;return{id:e.id,src:e.src.medium||e.src.large||e.src.original,name:`Pexels Image ${e.id}`,size:`${e.width}x${e.height}`,photographer:e.photographer,photographerUrl:e.photographer_url,pexelsUrl:e.url,alt:e.alt||`Photo by ${e.photographer} on Pexels`,attributionText:t,attributionHtml:r}}),bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",e))}onScroll(e){const t=e.target;t.scrollTop+t.offsetHeight>=t.scrollHeight-50&&this.loadMoreImages()}clearCache(){localStorage.removeItem(this.cacheKey),console.log("Gallery cache cleared")}render(){return a.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1691],{31691(e,t,r){r.r(t),r.d(t,{PexelsGallery:()=>n});var a=r(59929),s=r(49549),o=r(69990),i=r(66082);function l(e){e||(e={query:"nature",per_page:1});const t=`${i.XW.agent_url}pexels/search/?query=${e.query||"marketing"}&per_page=${e.per_page||1}`;return fetch(t).then(e=>e.json()).then(e=>{if("success"===e.status&&e.data)return e.data.photos;throw new Error("Invalid response from backend")}).catch(e=>{throw console.error("Error fetching images:",e),e})}class n extends a.WF{constructor(){super(),this.images=[],this.loading=!1,this.searchQuery="",this.page=1,this.hasMore=!0,this.perPage=20,this.multi=!0,this.defaultSearchTerms=["nature","landscape","city","people","technology","food","architecture","travel","business","art"],this.cacheKey="pexels-gallery-cache",this.cacheExpiry=864e5,this.isTyping=!1,this.lastSearchQuery="",this.searchTimeout=null}connectedCallback(){super.connectedCallback(),this.loadFromCache()}getCacheData(){try{const e=localStorage.getItem(this.cacheKey);if(!e)return null;const t=JSON.parse(e),r=Date.now();return t.timestamp&&r-t.timestamp>this.cacheExpiry?(localStorage.removeItem(this.cacheKey),null):t}catch(e){return console.error("Error reading cache:",e),null}}saveToCache(){if(!this.isTyping)try{const e={images:this.images,searchQuery:this.searchQuery,page:this.page,hasMore:this.hasMore,timestamp:Date.now()};localStorage.setItem(this.cacheKey,JSON.stringify(e))}catch(e){console.error("Error saving to cache:",e)}}loadFromCache(){const e=this.getCacheData();e?(this.images=e.images||[],this.searchQuery=e.searchQuery||"",this.page=e.page||1,this.hasMore=void 0===e.hasMore||e.hasMore,console.log("Gallery state restored from cache"),this.requestUpdate(),this.updateComplete.then(()=>{this.updateSearchInput()})):this.loadRandomImages()}updateSearchInput(){const e=this.shadowRoot?.querySelector('cdtr-input[type="search"]');e&&(e.value=this.searchQuery)}async loadRandomImages(){this.loading=!0;try{const e=this.defaultSearchTerms[Math.floor(Math.random()*this.defaultSearchTerms.length)],t=await l({query:e,per_page:this.perPage});t?(this.images=t||[],this.hasMore=t&&t.length===this.perPage,this.searchQuery="",this.page=1,this.saveToCache()):(console.error("Failed to load images from Pexels"),this.images=[])}catch(e){console.error("Error loading images:",e),this.images=[]}finally{this.loading=!1}}async searchImages(e){if(!e.trim())return this.loadRandomImages();this.loading=!0,this.searchQuery=e,this.page=1;try{const t=await l({query:e,per_page:this.perPage});t?(this.images=t||[],this.hasMore=t&&t.length===this.perPage,this.saveToCache()):(console.error("Failed to search images from Pexels"),this.images=[])}catch(e){console.error("Error searching images:",e),this.images=[]}finally{this.loading=!1}}async loadMoreImages(){if(!this.loading&&this.hasMore){this.loading=!0,this.page++;try{const e=this.searchQuery||this.defaultSearchTerms[Math.floor(Math.random()*this.defaultSearchTerms.length)],t=await l({query:e,per_page:this.perPage});if(t.ok){const e=(await t.json()).photos||[];this.images=[...this.images,...e],this.hasMore=e.length===this.perPage,this.saveToCache()}}catch(e){console.error("Error loading more images:",e)}finally{this.loading=!1}}}onSearch(e){const t=e.target.value;this.isTyping=!0,t!==this.lastSearchQuery&&(this.lastSearchQuery=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.isTyping=!1,this.searchImages(t)},500))}onSelectImage(e){const t=`Photo by ${e.photographer} on Pexels`,r=`Photo by <a href="${e.photographer_url}" target="_blank" rel="noopener noreferrer">${e.photographer}</a> on <a href="${e.url}" target="_blank" rel="noopener noreferrer">Pexels</a>`,a={detail:{id:e.id,src:e.src.medium||e.src.large||e.src.original,name:`Pexels Image ${e.id}`,size:`${e.width}x${e.height}`,photographer:e.photographer,photographerUrl:e.photographer_url,pexelsUrl:e.url,alt:e.alt||`Photo by ${e.photographer} on Pexels`,attributionText:t,attributionHtml:r},bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",a))}sendSelectedImages(){const e={detail:this.images.filter(e=>e.selected).map(e=>{const t=`Photo by ${e.photographer} on Pexels`,r=`Photo by <a href="${e.photographer_url}" target="_blank" rel="noopener noreferrer">${e.photographer}</a> on <a href="${e.url}" target="_blank" rel="noopener noreferrer">Pexels</a>`;return{id:e.id,src:e.src.medium||e.src.large||e.src.original,name:`Pexels Image ${e.id}`,size:`${e.width}x${e.height}`,photographer:e.photographer,photographerUrl:e.photographer_url,pexelsUrl:e.url,alt:e.alt||`Photo by ${e.photographer} on Pexels`,attributionText:t,attributionHtml:r}}),bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",e))}onScroll(e){const t=e.target;t.scrollTop+t.offsetHeight>=t.scrollHeight-50&&this.loadMoreImages()}clearCache(){localStorage.removeItem(this.cacheKey),console.log("Gallery cache cleared")}render(){return a.qy`
2
2
  <div class="gallery-container">
3
3
  <cdtr-row alignItems="center">
4
4
  <cdtr-input
Binary file
@@ -1,5 +1,5 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3521],{83521(t,e,i){i.r(e),i.d(e,{DesignFactory:()=>l});var o=i(5441),s=i(59929),n=i(54804),r=i(18057),d=i(86319),c=i(57327);i.e(8315).then(i.bind(i,68315));class l extends s.WF{constructor(){super(),this.lastEditor=null,this._selectedComponentId=null,this._injectedForId=null,d.M.set({injectEditor:t=>{this.injected=!0,this._injectedForId=this._selectedComponentId,this.lastEditor=this.editor,this.backToEditor=this.editor,this.editor=t}}),this.editor=s.qy`<cdtr-ilustration-preference
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1694],{81694(t,e,i){i.r(e),i.d(e,{DesignFactory:()=>l});var o=i(91009),s=i(59929),n=i(28795),r=i(44551),d=i(43180),c=i(26784);i.e(4678).then(i.bind(i,84678));class l extends s.WF{constructor(){super(),this.lastEditor=null,this._selectedComponentId=null,this._injectedForId=null,d.M.set({injectEditor:t=>{this.injected=!0,this._injectedForId=this._selectedComponentId,this.lastEditor=this.editor,this.backToEditor=this.editor,this.editor=t}}),this.editor=s.qy`<cdtr-ilustration-preference
2
2
  width="200px"
3
3
  height="200px"
4
- ></cdtr-ilustration-preference>`,this.delayer=new r.A,this.connect=this.connect.bind(this),this.editors={block:{selector:"block-editor",load:()=>i.e(8299).then(i.bind(i,68299)),component:null},no_editor:{selector:"cdtr-no-component",load:()=>i.e(8854).then(i.bind(i,68854)),component:null,attrs:{style:"margin:auto;display:block;max-width:150px;margin-top:30px;"}}},this.type=null,n.Ay.on("select",this.connect)}connect(t){let{editor:e,component:i}=t;if(!e)return;let s=e.type;if("string"!=typeof s)return;const n=i?.id??null;if(this.injected){if(null==n||n===this._injectedForId)return;this.injected=!1,this._injectedForId=null}if(this._selectedComponentId=n,this.editor?.type===s)return;if(!this.editors[s]){const t=d.M.get("config","editor","configure","plugins");if(Array.isArray(t)){const e=t.find(t=>t.name===s);if(e&&"function"==typeof e.createEditor){this.editor=document.createElement("cdtr-editor-builder"),this.editor.type=s;const t=e.createEditor();return void(t&&(this.editor.editors=t.layout,t!==this.backToEditor&&this.lastEditor&&(this.lastEditor=null)))}}s="no_editor"}this.type=s;const r=(0,o.A)("div",null,(0,o.A)("cdtr-block-loader",null),(0,o.A)("cdtr-title",{style:"text-align:center;"},(0,o.A)("lang-text",{text:"please_wait_downloading_new_version"})));this.editors[s]&&!this.editors[s].component&&(this.editors[s].load().then(()=>{if(r.remove(),this.editors[s].attrs)for(const t in this.editors[s].attrs)if(Object.hasOwnProperty.call(this.editors[s].attrs,t)){const e=this.editors[s].attrs[t];this.editors[s].component[t]=e}}),this.editors[s].component=document.createElement(this.editors[s].selector),this.editors[s].component.appendChild(r)),this.editors[s].component&&(this.editor=this.editors[s].component)}goBack(){this.lastEditor&&(this.editor=this.lastEditor,this.lastEditor=null,this.injected=!1,this._injectedForId=null)}createRenderRoot(){return this}render(){return s.qy` ${this.lastEditor?(0,c.T)(this.goBack):""}
4
+ ></cdtr-ilustration-preference>`,this.delayer=new r.A,this.connect=this.connect.bind(this),this.editors={block:{selector:"block-editor",load:()=>i.e(3693).then(i.bind(i,33693)),component:null},no_editor:{selector:"cdtr-no-component",load:()=>i.e(1023).then(i.bind(i,81023)),component:null,attrs:{style:"margin:auto;display:block;max-width:150px;margin-top:30px;"}}},this.type=null,n.Ay.on("select",this.connect)}connect(t){let{editor:e,component:i}=t;if(!e)return;let s=e.type;if("string"!=typeof s)return;const n=i?.id??null;if(this.injected){if(null==n||n===this._injectedForId)return;this.injected=!1,this._injectedForId=null}if(this._selectedComponentId=n,this.editor?.type===s)return;if(!this.editors[s]){const t=d.M.get("config","editor","configure","plugins");if(Array.isArray(t)){const e=t.find(t=>t.name===s);if(e&&"function"==typeof e.createEditor){this.editor=document.createElement("cdtr-editor-builder"),this.editor.type=s;const t=e.createEditor();return void(t&&(this.editor.editors=t.layout,t!==this.backToEditor&&this.lastEditor&&(this.lastEditor=null)))}}s="no_editor"}this.type=s;const r=(0,o.A)("div",null,(0,o.A)("cdtr-block-loader",null),(0,o.A)("cdtr-title",{style:"text-align:center;"},(0,o.A)("lang-text",{text:"please_wait_downloading_new_version"})));this.editors[s]&&!this.editors[s].component&&(this.editors[s].load().then(()=>{if(r.remove(),this.editors[s].attrs)for(const t in this.editors[s].attrs)if(Object.hasOwnProperty.call(this.editors[s].attrs,t)){const e=this.editors[s].attrs[t];this.editors[s].component[t]=e}}),this.editors[s].component=document.createElement(this.editors[s].selector),this.editors[s].component.appendChild(r)),this.editors[s].component&&(this.editor=this.editors[s].component)}goBack(){this.lastEditor&&(this.editor=this.lastEditor,this.lastEditor=null,this.injected=!1,this._injectedForId=null)}createRenderRoot(){return this}render(){return s.qy` ${this.lastEditor?(0,c.T)(this.goBack):""}
5
5
  ${this.editor}`}}l.properties={type:{type:String},editor:{type:Object},injected:{type:Boolean}},customElements.define("design-factory",l)}}]);
Binary file
@@ -0,0 +1,12 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[182],{60182(t,e,i){i.r(e),i.d(e,{DuplicateIcon:()=>r});var h=i(59929);class r extends h.WF{constructor(){super(),this.iconStyle=""}render(){return h.qy`<svg style="${this.iconStyle}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z" /><path d="M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1.001 1.001 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1H7zM5.003 8L5 20h10V8H5.003zM9 6h8v10h2V4H9v2z" /></svg>`}}r.styles=h.AH`
2
+ :host {
3
+ display: inherit;
4
+ --cdtr-icon-width: 20px;
5
+ --cdtr-icon-height: 20px;
6
+ }
7
+ svg {
8
+ width: var(--cdtr-icon-width);
9
+ height: var(--cdtr-icon-height);
10
+ color: var(--cdtr-icon-color);
11
+ }
12
+ `,r.properties={iconStyle:{type:String}},customElements.define("cdtr-dupicate-icon",r)}}]);
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3827],{93827(t,e,i){i.r(e),i.d(e,{DropOffIcon:()=>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
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1970],{91970(t,e,i){i.r(e),i.d(e,{DropOffIcon:()=>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
  style="${this.iconStyle}"
3
3
  xmlns="http://www.w3.org/2000/svg"
4
4
  viewBox="0 0 24 24"
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2234],{62234(t,a,s){s.r(a),s.d(a,{ToastProvider:()=>i});var e=s(59929),o=s(49937);let r=0;class i extends e.WF{constructor(){super(),this._toasts=[],this._handleSnackbar=this._handleSnackbar.bind(this)}connectedCallback(){super.connectedCallback(),o.A.subscribe("snackbar",this._handleSnackbar),window.snackbar=t=>{"string"==typeof t&&(t={text:t}),this._handleSnackbar(t)}}disconnectedCallback(){super.disconnectedCallback()}_handleSnackbar(){let{text:t,type:a,action:s,timeout:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t)return;const o=++r,i={id:o,text:t,type:a||"neutral",action:s||null};this._toasts=[...this._toasts,i],this._toasts.length>3&&(this._toasts=this._toasts.slice(-3)),setTimeout(()=>this._dismiss(o),e||4e3)}_dismiss(t){const a=this.shadowRoot?.querySelector(`[data-toast-id="${t}"]`);a?(a.classList.add("removing"),setTimeout(()=>{this._toasts=this._toasts.filter(a=>a.id!==t)},120)):this._toasts=this._toasts.filter(a=>a.id!==t)}_onAction(t){t.action&&"function"==typeof t.action.onClick&&t.action.onClick(),this._dismiss(t.id)}render(){return e.qy`${this._toasts.map(t=>e.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2079],{22079(t,a,s){s.r(a),s.d(a,{ToastProvider:()=>i});var e=s(59929),o=s(58423);let r=0;class i extends e.WF{constructor(){super(),this._toasts=[],this._handleSnackbar=this._handleSnackbar.bind(this)}connectedCallback(){super.connectedCallback(),o.A.subscribe("snackbar",this._handleSnackbar),window.snackbar=t=>{"string"==typeof t&&(t={text:t}),this._handleSnackbar(t)}}disconnectedCallback(){super.disconnectedCallback()}_handleSnackbar(){let{text:t,type:a,action:s,timeout:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t)return;const o=++r,i={id:o,text:t,type:a||"neutral",action:s||null};this._toasts=[...this._toasts,i],this._toasts.length>3&&(this._toasts=this._toasts.slice(-3)),setTimeout(()=>this._dismiss(o),e||4e3)}_dismiss(t){const a=this.shadowRoot?.querySelector(`[data-toast-id="${t}"]`);a?(a.classList.add("removing"),setTimeout(()=>{this._toasts=this._toasts.filter(a=>a.id!==t)},120)):this._toasts=this._toasts.filter(a=>a.id!==t)}_onAction(t){t.action&&"function"==typeof t.action.onClick&&t.action.onClick(),this._dismiss(t.id)}render(){return e.qy`${this._toasts.map(t=>e.qy`
2
2
  <div class="toast ${t.type}" data-toast-id="${t.id}">
3
3
  <span class="toast-text">${t.text}</span>
4
4
  ${t.action?e.qy`<button class="toast-action" @click=${()=>this._onAction(t)}>${t.action.label}</button>`:null}
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[175],{60175(t,e,r){r.r(e),r.d(e,{BorderEditor:()=>i});var o=r(59929),d=r(86319);class i extends o.WF{constructor(t){super(),this.theme=d.M.get("theme"),this.borderStyle="solid",this.borderTypes=[{name:"none",value:"none"},{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"}],this.cmds={onChangeBorderWidth:t=>{if(t.target.isLock)this.borderWidth=t.target.value+"px",this.borderTopWidth=t.target.value,this.borderBottomWidth=t.target.value,this.borderLeftWidth=t.target.value,this.borderRightWidth=t.target.value,this.key="borderWidth",this.dispacher();else{const e=t.target.topValue,r=t.target.bottomValue,o=t.target.leftValue,d=t.target.rightValue;this.borderWidth=e,this.borderTopWidth=e,this.borderBottomWidth=r,this.borderLeftWidth=o,this.borderRightWidth=d,this.key="borderWidth",this.dispacher()}},onChangeborderStyle:t=>{this.borderStyle=t,this.key="borderStyle",this.dispacher()},onChangeColor(t){const e=t.target.value;this.color=e,this.borderColor=e,this.key="color",this.dispacher()},onChangeRadius:t=>{const e=t.target.json;this.borderTopRightRadius=e.borderTopRightRadius,this.borderTopLeftRadius=e.borderTopLeftRadius,this.borderBottomRightRadius=e.borderBottomRightRadius,this.borderBottomLeftRadius=e.borderBottomLeftRadius,this.key="borderRadius",this.dispacher()}}}dispacher(){const t={borderColor:this.borderColor||this.color||"",borderStyle:this.borderStyle||"solid",borderWidth:this.borderWidth||0,borderTopWidth:this.borderTopWidth??0,borderBottomWidth:this.borderBottomWidth??0,borderLeftWidth:this.borderLeftWidth??0,borderRightWidth:this.borderRightWidth??0,borderRadius:this.borderRadius??0,borderTopRightRadius:this.borderTopRightRadius??0,borderTopLeftRadius:this.borderTopLeftRadius??0,borderBottomRightRadius:this.borderBottomRightRadius??0,borderBottomLeftRadius:this.borderBottomLeftRadius??0,key:this.key},e=new CustomEvent("change",{bubbles:!0,cancelable:!0,detail:t});this.dispatchEvent(e)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){const t=(this.borderRadius||"").toString().split(/\s+/);let[e=0,r=0,d=0,i=0]=t.map(t=>parseFloat(t)||0);const s=this.borderTopWidth||0,h=this.borderBottomWidth||0,a=this.borderLeftWidth||0,l=this.borderRightWidth||0;return e=this.borderTopRightRadius||e,r=this.borderTopLeftRadius||r,d=this.borderBottomRightRadius||d,i=this.borderBottomLeftRadius||i,o.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2194],{2194(t,e,r){r.r(e),r.d(e,{BorderEditor:()=>i});var o=r(59929),d=r(43180);class i extends o.WF{constructor(t){super(),this.theme=d.M.get("theme"),this.borderStyle="solid",this.borderTypes=[{name:"none",value:"none"},{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"}],this.cmds={onChangeBorderWidth:t=>{if(t.target.isLock)this.borderWidth=t.target.value+"px",this.borderTopWidth=t.target.value,this.borderBottomWidth=t.target.value,this.borderLeftWidth=t.target.value,this.borderRightWidth=t.target.value,this.key="borderWidth",this.dispacher();else{const e=t.target.topValue,r=t.target.bottomValue,o=t.target.leftValue,d=t.target.rightValue;this.borderWidth=e,this.borderTopWidth=e,this.borderBottomWidth=r,this.borderLeftWidth=o,this.borderRightWidth=d,this.key="borderWidth",this.dispacher()}},onChangeborderStyle:t=>{this.borderStyle=t,this.key="borderStyle",this.dispacher()},onChangeColor(t){const e=t.target.value;this.color=e,this.borderColor=e,this.key="color",this.dispacher()},onChangeRadius:t=>{const e=t.target.json;this.borderTopRightRadius=e.borderTopRightRadius,this.borderTopLeftRadius=e.borderTopLeftRadius,this.borderBottomRightRadius=e.borderBottomRightRadius,this.borderBottomLeftRadius=e.borderBottomLeftRadius,this.key="borderRadius",this.dispacher()}}}dispacher(){const t={borderColor:this.borderColor||this.color||"",borderStyle:this.borderStyle||"solid",borderWidth:this.borderWidth||0,borderTopWidth:this.borderTopWidth??0,borderBottomWidth:this.borderBottomWidth??0,borderLeftWidth:this.borderLeftWidth??0,borderRightWidth:this.borderRightWidth??0,borderRadius:this.borderRadius??0,borderTopRightRadius:this.borderTopRightRadius??0,borderTopLeftRadius:this.borderTopLeftRadius??0,borderBottomRightRadius:this.borderBottomRightRadius??0,borderBottomLeftRadius:this.borderBottomLeftRadius??0,key:this.key},e=new CustomEvent("change",{bubbles:!0,cancelable:!0,detail:t});this.dispatchEvent(e)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){const t=(this.borderRadius||"").toString().split(/\s+/);let[e=0,r=0,d=0,i=0]=t.map(t=>parseFloat(t)||0);const s=this.borderTopWidth||0,h=this.borderBottomWidth||0,a=this.borderLeftWidth||0,l=this.borderRightWidth||0;return e=this.borderTopRightRadius||e,r=this.borderTopLeftRadius||r,d=this.borderBottomRightRadius||d,i=this.borderBottomLeftRadius||i,o.qy`
2
2
  <h5>
3
3
  <lang-text text="border_editor"></lang-text>
4
4
  </h5>
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2397],{22397(t,i,e){e.r(i),e.d(i,{UndoRedoIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return"left"===this.direction?h.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2218],{32218(t,i,e){e.r(i),e.d(i,{UndoRedoIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return"left"===this.direction?h.qy`
2
2
  <svg
3
3
  style="${this.iconStyle}"
4
4
  width="${this.width}"
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8646],{48646(e,t,o){o.r(t),o.d(t,{Drawer:()=>r});var i=o(59929),s=o(69600);class r extends i.WF{constructor(){super(),this.closeEvent=void 0,this.openEvent=void 0,this.backdropColor="transparent",this.width="600px",this.obKeyDown=this.obKeyDown.bind(this),this.closeEvent=new UIEvent("close",{view:window,bubbles:!0,cancelable:!0}),this.openEvent=new UIEvent("open",{view:window,bubbles:!0,cancelable:!0})}onClickOutside(e){let{target:t}=e;t.closest(".drawer")||t.closest("cdtr-drawer")||this.onClose()}onClose(){const e=this.shadowRoot.querySelector(".drawer");e&&e.classList.add("slide-out"),setTimeout(()=>{this.dispatchEvent(this.closeEvent),e&&e.classList.remove("slide-out"),this.opened=!1,this.requestUpdate()},200)}obKeyDown(e){"Escape"===e.key?this.onClose():"m"===e.key&&e.ctrlKey&&this.dispatchEvent(this.openEvent)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.obKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.obKeyDown)}render(){return this.style.zIndex=(0,s.A)(),this.opened?i.qy`<div
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2232],{92232(e,t,o){o.r(t),o.d(t,{Drawer:()=>r});var i=o(59929),s=o(83669);class r extends i.WF{constructor(){super(),this.closeEvent=void 0,this.openEvent=void 0,this.backdropColor="transparent",this.width="600px",this.obKeyDown=this.obKeyDown.bind(this),this.closeEvent=new UIEvent("close",{view:window,bubbles:!0,cancelable:!0}),this.openEvent=new UIEvent("open",{view:window,bubbles:!0,cancelable:!0})}onClickOutside(e){let{target:t}=e;t.closest(".drawer")||t.closest("cdtr-drawer")||this.onClose()}onClose(){const e=this.shadowRoot.querySelector(".drawer");e&&e.classList.add("slide-out"),setTimeout(()=>{this.dispatchEvent(this.closeEvent),e&&e.classList.remove("slide-out"),this.opened=!1,this.requestUpdate()},200)}obKeyDown(e){"Escape"===e.key?this.onClose():"m"===e.key&&e.ctrlKey&&this.dispatchEvent(this.openEvent)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.obKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.obKeyDown)}render(){return this.style.zIndex=(0,s.A)(),this.opened?i.qy`<div
2
2
  @dragover=${e=>{e.preventDefault(),this.onClose()}}
3
3
  @mousedown=${this.onClickOutside}
4
4
  .style="background:${this.backdropColor};z-index:${(0,s.A)()};${this.backdropStyle};"
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:()=>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
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2260],{82260(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"
Binary file