@creaditor/newsletter-starterkit 1.0.0

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 (392) hide show
  1. package/README.md +258 -0
  2. package/dist/1030.creaditor.bundle.js +318 -0
  3. package/dist/1030.creaditor.bundle.js.LICENSE.txt +11 -0
  4. package/dist/1030.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  5. package/dist/1030.creaditor.bundle.js.gz +0 -0
  6. package/dist/1101.creaditor.bundle.js +21 -0
  7. package/dist/1101.creaditor.bundle.js.gz +0 -0
  8. package/dist/116.creaditor.bundle.js +23 -0
  9. package/dist/116.creaditor.bundle.js.gz +0 -0
  10. package/dist/1199.creaditor.bundle.js +23 -0
  11. package/dist/1199.creaditor.bundle.js.gz +0 -0
  12. package/dist/132.creaditor.bundle.js +30 -0
  13. package/dist/132.creaditor.bundle.js.gz +0 -0
  14. package/dist/1366.creaditor.bundle.js +238 -0
  15. package/dist/1366.creaditor.bundle.js.LICENSE.txt +21 -0
  16. package/dist/1366.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  17. package/dist/1366.creaditor.bundle.js.gz +0 -0
  18. package/dist/1381.creaditor.bundle.js +6 -0
  19. package/dist/1381.creaditor.bundle.js.gz +0 -0
  20. package/dist/1410.creaditor.bundle.js +236 -0
  21. package/dist/1410.creaditor.bundle.js.LICENSE.txt +21 -0
  22. package/dist/1410.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  23. package/dist/1410.creaditor.bundle.js.gz +0 -0
  24. package/dist/1449.creaditor.bundle.js +604 -0
  25. package/dist/1449.creaditor.bundle.js.LICENSE.txt +10 -0
  26. package/dist/1449.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  27. package/dist/1449.creaditor.bundle.js.gz +0 -0
  28. package/dist/1582.creaditor.bundle.js +23 -0
  29. package/dist/1582.creaditor.bundle.js.gz +0 -0
  30. package/dist/1650.creaditor.bundle.js +23 -0
  31. package/dist/1650.creaditor.bundle.js.gz +0 -0
  32. package/dist/168.creaditor.bundle.js +142 -0
  33. package/dist/168.creaditor.bundle.js.LICENSE.txt +20 -0
  34. package/dist/168.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  35. package/dist/168.creaditor.bundle.js.gz +0 -0
  36. package/dist/1731.creaditor.bundle.js +51 -0
  37. package/dist/1731.creaditor.bundle.js.gz +0 -0
  38. package/dist/1790.creaditor.bundle.js +1 -0
  39. package/dist/1790.creaditor.bundle.js.gz +0 -0
  40. package/dist/185.creaditor.bundle.js +114 -0
  41. package/dist/185.creaditor.bundle.js.gz +0 -0
  42. package/dist/1867.creaditor.bundle.js +171 -0
  43. package/dist/1867.creaditor.bundle.js.gz +0 -0
  44. package/dist/19.creaditor.bundle.js +36 -0
  45. package/dist/19.creaditor.bundle.js.gz +0 -0
  46. package/dist/201.creaditor.bundle.js +98 -0
  47. package/dist/201.creaditor.bundle.js.gz +0 -0
  48. package/dist/2012.creaditor.bundle.js +6 -0
  49. package/dist/2012.creaditor.bundle.js.gz +0 -0
  50. package/dist/2022.creaditor.bundle.js +13 -0
  51. package/dist/2022.creaditor.bundle.js.gz +0 -0
  52. package/dist/2050.creaditor.bundle.js +16 -0
  53. package/dist/2050.creaditor.bundle.js.gz +0 -0
  54. package/dist/2087.creaditor.bundle.js +25 -0
  55. package/dist/2087.creaditor.bundle.js.gz +0 -0
  56. package/dist/2111.creaditor.bundle.js +23 -0
  57. package/dist/2111.creaditor.bundle.js.gz +0 -0
  58. package/dist/2118.creaditor.bundle.js +23 -0
  59. package/dist/2118.creaditor.bundle.js.gz +0 -0
  60. package/dist/2182.creaditor.bundle.js +27 -0
  61. package/dist/2182.creaditor.bundle.js.gz +0 -0
  62. package/dist/2340.creaditor.bundle.js +440 -0
  63. package/dist/2340.creaditor.bundle.js.LICENSE.txt +11 -0
  64. package/dist/2340.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  65. package/dist/2340.creaditor.bundle.js.gz +0 -0
  66. package/dist/2357.creaditor.bundle.js +25 -0
  67. package/dist/2357.creaditor.bundle.js.gz +0 -0
  68. package/dist/2365.creaditor.bundle.js +25 -0
  69. package/dist/2365.creaditor.bundle.js.gz +0 -0
  70. package/dist/2397.creaditor.bundle.js +661 -0
  71. package/dist/2397.creaditor.bundle.js.LICENSE.txt +11 -0
  72. package/dist/2397.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  73. package/dist/2397.creaditor.bundle.js.gz +0 -0
  74. package/dist/2416.creaditor.bundle.js +32 -0
  75. package/dist/2416.creaditor.bundle.js.gz +0 -0
  76. package/dist/2455.creaditor.bundle.js +75 -0
  77. package/dist/2455.creaditor.bundle.js.LICENSE.txt +1 -0
  78. package/dist/2455.creaditor.bundle.js.gz +0 -0
  79. package/dist/2475.creaditor.bundle.js +177 -0
  80. package/dist/2475.creaditor.bundle.js.LICENSE.txt +23 -0
  81. package/dist/2475.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  82. package/dist/2475.creaditor.bundle.js.gz +0 -0
  83. package/dist/2543.creaditor.bundle.js +112 -0
  84. package/dist/2543.creaditor.bundle.js.gz +0 -0
  85. package/dist/2605.creaditor.bundle.js +171 -0
  86. package/dist/2605.creaditor.bundle.js.LICENSE.txt +11 -0
  87. package/dist/2605.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  88. package/dist/2605.creaditor.bundle.js.gz +0 -0
  89. package/dist/2609.creaditor.bundle.js +2 -0
  90. package/dist/2609.creaditor.bundle.js.LICENSE.txt +10 -0
  91. package/dist/2609.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  92. package/dist/2609.creaditor.bundle.js.gz +0 -0
  93. package/dist/2721.creaditor.bundle.js +11 -0
  94. package/dist/2721.creaditor.bundle.js.gz +0 -0
  95. package/dist/2757.creaditor.bundle.js +1 -0
  96. package/dist/2757.creaditor.bundle.js.gz +0 -0
  97. package/dist/296.creaditor.bundle.js +11 -0
  98. package/dist/296.creaditor.bundle.js.LICENSE.txt +11 -0
  99. package/dist/296.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  100. package/dist/296.creaditor.bundle.js.gz +0 -0
  101. package/dist/2977.creaditor.bundle.js +53 -0
  102. package/dist/2977.creaditor.bundle.js.gz +0 -0
  103. package/dist/3020.creaditor.bundle.js +13 -0
  104. package/dist/3020.creaditor.bundle.js.gz +0 -0
  105. package/dist/308.creaditor.bundle.js +16 -0
  106. package/dist/308.creaditor.bundle.js.gz +0 -0
  107. package/dist/315.creaditor.bundle.js +142 -0
  108. package/dist/315.creaditor.bundle.js.LICENSE.txt +11 -0
  109. package/dist/315.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  110. package/dist/315.creaditor.bundle.js.gz +0 -0
  111. package/dist/335.creaditor.bundle.js +23 -0
  112. package/dist/335.creaditor.bundle.js.gz +0 -0
  113. package/dist/3381.creaditor.bundle.js +40 -0
  114. package/dist/3381.creaditor.bundle.js.gz +0 -0
  115. package/dist/3453.creaditor.bundle.js +23 -0
  116. package/dist/3453.creaditor.bundle.js.gz +0 -0
  117. package/dist/3585.creaditor.bundle.js +1 -0
  118. package/dist/3585.creaditor.bundle.js.gz +0 -0
  119. package/dist/3614.creaditor.bundle.js +26 -0
  120. package/dist/3614.creaditor.bundle.js.gz +0 -0
  121. package/dist/3622.creaditor.bundle.js +236 -0
  122. package/dist/3622.creaditor.bundle.js.gz +0 -0
  123. package/dist/3691.creaditor.bundle.js +2 -0
  124. package/dist/3691.creaditor.bundle.js.LICENSE.txt +1 -0
  125. package/dist/3691.creaditor.bundle.js.gz +0 -0
  126. package/dist/3727.creaditor.bundle.js +227 -0
  127. package/dist/3727.creaditor.bundle.js.gz +0 -0
  128. package/dist/3732.creaditor.bundle.js +15 -0
  129. package/dist/3732.creaditor.bundle.js.gz +0 -0
  130. package/dist/3755.creaditor.bundle.js +94 -0
  131. package/dist/3755.creaditor.bundle.js.gz +0 -0
  132. package/dist/3778.creaditor.bundle.js +1 -0
  133. package/dist/3778.creaditor.bundle.js.gz +0 -0
  134. package/dist/3794.creaditor.bundle.js +34 -0
  135. package/dist/3794.creaditor.bundle.js.gz +0 -0
  136. package/dist/3831.creaditor.bundle.js +23 -0
  137. package/dist/3831.creaditor.bundle.js.gz +0 -0
  138. package/dist/3847.creaditor.bundle.js +34 -0
  139. package/dist/3847.creaditor.bundle.js.gz +0 -0
  140. package/dist/4.creaditor.bundle.js +6 -0
  141. package/dist/4.creaditor.bundle.js.gz +0 -0
  142. package/dist/4050.creaditor.bundle.js +424 -0
  143. package/dist/4050.creaditor.bundle.js.LICENSE.txt +10 -0
  144. package/dist/4050.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  145. package/dist/4050.creaditor.bundle.js.gz +0 -0
  146. package/dist/4128.creaditor.bundle.js +395 -0
  147. package/dist/4128.creaditor.bundle.js.LICENSE.txt +10 -0
  148. package/dist/4128.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  149. package/dist/4128.creaditor.bundle.js.gz +0 -0
  150. package/dist/4159.creaditor.bundle.js +453 -0
  151. package/dist/4159.creaditor.bundle.js.LICENSE.txt +10 -0
  152. package/dist/4159.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  153. package/dist/4159.creaditor.bundle.js.gz +0 -0
  154. package/dist/42.creaditor.bundle.js +18 -0
  155. package/dist/42.creaditor.bundle.js.gz +0 -0
  156. package/dist/4212.creaditor.bundle.js +72 -0
  157. package/dist/4212.creaditor.bundle.js.gz +0 -0
  158. package/dist/4455.creaditor.bundle.js +16 -0
  159. package/dist/4455.creaditor.bundle.js.gz +0 -0
  160. package/dist/4473.creaditor.bundle.js +51 -0
  161. package/dist/4473.creaditor.bundle.js.gz +0 -0
  162. package/dist/4569.creaditor.bundle.js +23 -0
  163. package/dist/4569.creaditor.bundle.js.gz +0 -0
  164. package/dist/4648.creaditor.bundle.js +122 -0
  165. package/dist/4648.creaditor.bundle.js.gz +0 -0
  166. package/dist/4661.creaditor.bundle.js +25 -0
  167. package/dist/4661.creaditor.bundle.js.gz +0 -0
  168. package/dist/4807.creaditor.bundle.js +105 -0
  169. package/dist/4807.creaditor.bundle.js.gz +0 -0
  170. package/dist/4900.creaditor.bundle.js +19 -0
  171. package/dist/4900.creaditor.bundle.js.gz +0 -0
  172. package/dist/494.creaditor.bundle.js +23 -0
  173. package/dist/494.creaditor.bundle.js.gz +0 -0
  174. package/dist/5034.creaditor.bundle.js +27 -0
  175. package/dist/5034.creaditor.bundle.js.gz +0 -0
  176. package/dist/5090.creaditor.bundle.js +173 -0
  177. package/dist/5090.creaditor.bundle.js.gz +0 -0
  178. package/dist/5204.creaditor.bundle.js +1 -0
  179. package/dist/5204.creaditor.bundle.js.gz +0 -0
  180. package/dist/5246.creaditor.bundle.js +900 -0
  181. package/dist/5246.creaditor.bundle.js.LICENSE.txt +10 -0
  182. package/dist/5246.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  183. package/dist/5246.creaditor.bundle.js.gz +0 -0
  184. package/dist/5320.creaditor.bundle.js +408 -0
  185. package/dist/5320.creaditor.bundle.js.LICENSE.txt +11 -0
  186. package/dist/5320.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  187. package/dist/5320.creaditor.bundle.js.gz +0 -0
  188. package/dist/5349.creaditor.bundle.js +289 -0
  189. package/dist/5349.creaditor.bundle.js.LICENSE.txt +17 -0
  190. package/dist/5349.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  191. package/dist/5349.creaditor.bundle.js.gz +0 -0
  192. package/dist/5478.creaditor.bundle.js +18 -0
  193. package/dist/5478.creaditor.bundle.js.gz +0 -0
  194. package/dist/5581.creaditor.bundle.js +23 -0
  195. package/dist/5581.creaditor.bundle.js.gz +0 -0
  196. package/dist/5848.creaditor.bundle.js +14 -0
  197. package/dist/5848.creaditor.bundle.js.LICENSE.txt +5 -0
  198. package/dist/5848.creaditor.bundle.js.gz +0 -0
  199. package/dist/5910.creaditor.bundle.js +11 -0
  200. package/dist/5910.creaditor.bundle.js.gz +0 -0
  201. package/dist/5978.creaditor.bundle.js +73 -0
  202. package/dist/5978.creaditor.bundle.js.gz +0 -0
  203. package/dist/5985.creaditor.bundle.js +109 -0
  204. package/dist/5985.creaditor.bundle.js.gz +0 -0
  205. package/dist/6046.creaditor.bundle.js +36 -0
  206. package/dist/6046.creaditor.bundle.js.gz +0 -0
  207. package/dist/6052.creaditor.bundle.js +113 -0
  208. package/dist/6052.creaditor.bundle.js.gz +0 -0
  209. package/dist/6069.creaditor.bundle.js +1 -0
  210. package/dist/6069.creaditor.bundle.js.gz +0 -0
  211. package/dist/6080.creaditor.bundle.js +9 -0
  212. package/dist/6080.creaditor.bundle.js.gz +0 -0
  213. package/dist/6178.creaditor.bundle.js +60 -0
  214. package/dist/6178.creaditor.bundle.js.gz +0 -0
  215. package/dist/6196.creaditor.bundle.js +12 -0
  216. package/dist/6196.creaditor.bundle.js.gz +0 -0
  217. package/dist/6220.creaditor.bundle.js +381 -0
  218. package/dist/6220.creaditor.bundle.js.LICENSE.txt +10 -0
  219. package/dist/6220.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  220. package/dist/6220.creaditor.bundle.js.gz +0 -0
  221. package/dist/6234.creaditor.bundle.js +1 -0
  222. package/dist/6234.creaditor.bundle.js.gz +0 -0
  223. package/dist/6236.creaditor.bundle.js +51 -0
  224. package/dist/6236.creaditor.bundle.js.gz +0 -0
  225. package/dist/6308.creaditor.bundle.js +102 -0
  226. package/dist/6308.creaditor.bundle.js.gz +0 -0
  227. package/dist/6354.creaditor.bundle.js +179 -0
  228. package/dist/6354.creaditor.bundle.js.LICENSE.txt +21 -0
  229. package/dist/6354.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  230. package/dist/6354.creaditor.bundle.js.gz +0 -0
  231. package/dist/6430.creaditor.bundle.js +131 -0
  232. package/dist/6430.creaditor.bundle.js.gz +0 -0
  233. package/dist/6479.creaditor.bundle.js +24 -0
  234. package/dist/6479.creaditor.bundle.js.gz +0 -0
  235. package/dist/6491.creaditor.bundle.js +79 -0
  236. package/dist/6491.creaditor.bundle.js.gz +0 -0
  237. package/dist/6524.creaditor.bundle.js +20 -0
  238. package/dist/6524.creaditor.bundle.js.gz +0 -0
  239. package/dist/6577.creaditor.bundle.js +21 -0
  240. package/dist/6577.creaditor.bundle.js.gz +0 -0
  241. package/dist/6588.creaditor.bundle.js +99 -0
  242. package/dist/6588.creaditor.bundle.js.gz +0 -0
  243. package/dist/6593.creaditor.bundle.js +14 -0
  244. package/dist/6593.creaditor.bundle.js.gz +0 -0
  245. package/dist/6652.creaditor.bundle.js +1 -0
  246. package/dist/6652.creaditor.bundle.js.gz +0 -0
  247. package/dist/6700.creaditor.bundle.js +1 -0
  248. package/dist/6700.creaditor.bundle.js.gz +0 -0
  249. package/dist/6724.creaditor.bundle.js +75 -0
  250. package/dist/6724.creaditor.bundle.js.LICENSE.txt +1 -0
  251. package/dist/6724.creaditor.bundle.js.gz +0 -0
  252. package/dist/6737.creaditor.bundle.js +61 -0
  253. package/dist/6737.creaditor.bundle.js.gz +0 -0
  254. package/dist/6807.creaditor.bundle.js +21 -0
  255. package/dist/6807.creaditor.bundle.js.gz +0 -0
  256. package/dist/6826.creaditor.bundle.js +23 -0
  257. package/dist/6826.creaditor.bundle.js.gz +0 -0
  258. package/dist/6848.creaditor.bundle.js +130 -0
  259. package/dist/6848.creaditor.bundle.js.gz +0 -0
  260. package/dist/6883.creaditor.bundle.js +14 -0
  261. package/dist/6883.creaditor.bundle.js.gz +0 -0
  262. package/dist/6892.creaditor.bundle.js +17 -0
  263. package/dist/6892.creaditor.bundle.js.LICENSE.txt +5 -0
  264. package/dist/6892.creaditor.bundle.js.gz +0 -0
  265. package/dist/6961.creaditor.bundle.js +8 -0
  266. package/dist/6961.creaditor.bundle.js.LICENSE.txt +11 -0
  267. package/dist/6961.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  268. package/dist/6961.creaditor.bundle.js.gz +0 -0
  269. package/dist/6964.creaditor.bundle.js +162 -0
  270. package/dist/6964.creaditor.bundle.js.LICENSE.txt +17 -0
  271. package/dist/6964.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  272. package/dist/6964.creaditor.bundle.js.gz +0 -0
  273. package/dist/6993.creaditor.bundle.js +46 -0
  274. package/dist/6993.creaditor.bundle.js.gz +0 -0
  275. package/dist/7035.creaditor.bundle.js +67 -0
  276. package/dist/7035.creaditor.bundle.js.gz +0 -0
  277. package/dist/709.creaditor.bundle.js +18 -0
  278. package/dist/709.creaditor.bundle.js.gz +0 -0
  279. package/dist/7149.creaditor.bundle.js +23 -0
  280. package/dist/7149.creaditor.bundle.js.gz +0 -0
  281. package/dist/7302.creaditor.bundle.js +2 -0
  282. package/dist/7302.creaditor.bundle.js.LICENSE.txt +1 -0
  283. package/dist/7302.creaditor.bundle.js.gz +0 -0
  284. package/dist/7490.creaditor.bundle.js +1 -0
  285. package/dist/7490.creaditor.bundle.js.gz +0 -0
  286. package/dist/7511.creaditor.bundle.js +21 -0
  287. package/dist/7511.creaditor.bundle.js.LICENSE.txt +5 -0
  288. package/dist/7511.creaditor.bundle.js.gz +0 -0
  289. package/dist/7576.creaditor.bundle.js +23 -0
  290. package/dist/7576.creaditor.bundle.js.gz +0 -0
  291. package/dist/7597.creaditor.bundle.js +47 -0
  292. package/dist/7597.creaditor.bundle.js.gz +0 -0
  293. package/dist/7804.creaditor.bundle.js +60 -0
  294. package/dist/7804.creaditor.bundle.js.gz +0 -0
  295. package/dist/7837.creaditor.bundle.js +63 -0
  296. package/dist/7837.creaditor.bundle.js.gz +0 -0
  297. package/dist/7911.creaditor.bundle.js +965 -0
  298. package/dist/7911.creaditor.bundle.js.gz +0 -0
  299. package/dist/7946.creaditor.bundle.js +1 -0
  300. package/dist/7946.creaditor.bundle.js.gz +0 -0
  301. package/dist/7988.creaditor.bundle.js +440 -0
  302. package/dist/7988.creaditor.bundle.js.LICENSE.txt +11 -0
  303. package/dist/7988.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  304. package/dist/7988.creaditor.bundle.js.gz +0 -0
  305. package/dist/8073.creaditor.bundle.js +12 -0
  306. package/dist/8073.creaditor.bundle.js.gz +0 -0
  307. package/dist/8251.creaditor.bundle.js +23 -0
  308. package/dist/8251.creaditor.bundle.js.gz +0 -0
  309. package/dist/8287.creaditor.bundle.js +8 -0
  310. package/dist/8287.creaditor.bundle.js.gz +0 -0
  311. package/dist/8290.creaditor.bundle.js +23 -0
  312. package/dist/8290.creaditor.bundle.js.gz +0 -0
  313. package/dist/8312.creaditor.bundle.js +44 -0
  314. package/dist/8312.creaditor.bundle.js.gz +0 -0
  315. package/dist/8333.creaditor.bundle.js +40 -0
  316. package/dist/8333.creaditor.bundle.js.gz +0 -0
  317. package/dist/8522.creaditor.bundle.js +20 -0
  318. package/dist/8522.creaditor.bundle.js.gz +0 -0
  319. package/dist/8550.creaditor.bundle.js +2 -0
  320. package/dist/8550.creaditor.bundle.js.LICENSE.txt +11 -0
  321. package/dist/8550.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  322. package/dist/8550.creaditor.bundle.js.gz +0 -0
  323. package/dist/8642.creaditor.bundle.js +274 -0
  324. package/dist/8642.creaditor.bundle.js.gz +0 -0
  325. package/dist/865.creaditor.bundle.js +28 -0
  326. package/dist/865.creaditor.bundle.js.gz +0 -0
  327. package/dist/8718.creaditor.bundle.js +93 -0
  328. package/dist/8718.creaditor.bundle.js.gz +0 -0
  329. package/dist/8724.creaditor.bundle.js +15 -0
  330. package/dist/8724.creaditor.bundle.js.gz +0 -0
  331. package/dist/8885.creaditor.bundle.js +23 -0
  332. package/dist/8885.creaditor.bundle.js.gz +0 -0
  333. package/dist/9000.creaditor.bundle.js +1 -0
  334. package/dist/9000.creaditor.bundle.js.gz +0 -0
  335. package/dist/9001.creaditor.bundle.js +12 -0
  336. package/dist/9001.creaditor.bundle.js.gz +0 -0
  337. package/dist/901.creaditor.bundle.js +274 -0
  338. package/dist/901.creaditor.bundle.js.gz +0 -0
  339. package/dist/9050.creaditor.bundle.js +19 -0
  340. package/dist/9050.creaditor.bundle.js.gz +0 -0
  341. package/dist/9113.creaditor.bundle.js +407 -0
  342. package/dist/9113.creaditor.bundle.js.gz +0 -0
  343. package/dist/9136.creaditor.bundle.js +33 -0
  344. package/dist/9136.creaditor.bundle.js.gz +0 -0
  345. package/dist/9201.creaditor.bundle.js +130 -0
  346. package/dist/9201.creaditor.bundle.js.LICENSE.txt +20 -0
  347. package/dist/9201.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  348. package/dist/9201.creaditor.bundle.js.gz +0 -0
  349. package/dist/9203.creaditor.bundle.js +956 -0
  350. package/dist/9203.creaditor.bundle.js.LICENSE.txt +10 -0
  351. package/dist/9203.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  352. package/dist/9203.creaditor.bundle.js.gz +0 -0
  353. package/dist/9265.creaditor.bundle.js +1 -0
  354. package/dist/9265.creaditor.bundle.js.gz +0 -0
  355. package/dist/9394.creaditor.bundle.js +25 -0
  356. package/dist/9394.creaditor.bundle.js.gz +0 -0
  357. package/dist/9476.creaditor.bundle.js +72 -0
  358. package/dist/9476.creaditor.bundle.js.LICENSE.txt +5 -0
  359. package/dist/9476.creaditor.bundle.js.gz +0 -0
  360. package/dist/9530.creaditor.bundle.js +69 -0
  361. package/dist/9530.creaditor.bundle.js.gz +0 -0
  362. package/dist/9628.creaditor.bundle.js +455 -0
  363. package/dist/9628.creaditor.bundle.js.LICENSE.txt +10 -0
  364. package/dist/9628.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  365. package/dist/9628.creaditor.bundle.js.gz +0 -0
  366. package/dist/966.creaditor.bundle.js +23 -0
  367. package/dist/966.creaditor.bundle.js.gz +0 -0
  368. package/dist/9766.creaditor.bundle.js +267 -0
  369. package/dist/9766.creaditor.bundle.js.gz +0 -0
  370. package/dist/9800.creaditor.bundle.js +1 -0
  371. package/dist/9800.creaditor.bundle.js.gz +0 -0
  372. package/dist/9838.creaditor.bundle.js +65 -0
  373. package/dist/9838.creaditor.bundle.js.LICENSE.txt +17 -0
  374. package/dist/9838.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  375. package/dist/9838.creaditor.bundle.js.gz +0 -0
  376. package/dist/9928.creaditor.bundle.js +32 -0
  377. package/dist/9928.creaditor.bundle.js.gz +0 -0
  378. package/dist/creaditor-starterkit.js +5395 -0
  379. package/dist/creaditor-starterkit.js.LICENSE.txt +110 -0
  380. package/dist/creaditor-starterkit.js.LICENSE.txt.gz +0 -0
  381. package/dist/creaditor-starterkit.js.gz +0 -0
  382. package/dist/creaditor.bundle.js +5394 -0
  383. package/dist/creaditor.bundle.js.LICENSE.txt +110 -0
  384. package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
  385. package/dist/creaditor.bundle.js.gz +0 -0
  386. package/dist/index.html +1 -0
  387. package/dist/index.html.gz +0 -0
  388. package/dist/service-worker.js +1 -0
  389. package/dist/service-worker.js.gz +0 -0
  390. package/dist/workbox-e24b9bdc.js +1 -0
  391. package/dist/workbox-e24b9bdc.js.gz +0 -0
  392. package/package.json +35 -0
@@ -0,0 +1,267 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9766],{29766:(t,e,o)=>{o.r(e),o.d(e,{BlockEditor:()=>p});var r=o(56666),i=o(21293),d=o(70235),n=(o(67237),o(45607)),a=o(58860),s=o(1670),c=o(98766);var l=o(50939),g=o(35210),h=o(11961);o(7592);o.e(4807).then(o.bind(o,54807));class p extends i.oi{constructor(t){super(),(0,r.Z)(this,"onChangeBakgroundExpanding",(t=>{const e=t.target.checked;n.Z.store().execCommand("expand_image_for_outlook",!e)})),(0,r.Z)(this,"getInnerBlocks",(()=>{const t=[],e=this.component.parent("section");return e&&(t.push(e),e.children.forEach((e=>{const o=d.h.get("components",e);o&&"block"===o.type&&t.push(o)}))),t})),this.onChangeWidth=this.onChangeWidth.bind(this),this.getInnerBlocks=this.getInnerBlocks.bind(this),this.isBackgroundImage=!1,this.backgroundVideo="",this.galleryOpened=!1,this.onChangeBakgroundExpanding=this.onChangeBakgroundExpanding.bind(this),this.tabs=[{text:"background"},{text:"design",selected:!0},{text:"settings"}],this.tabName="design",this.maxWidth=0,this.background="",this.padding={topValue:0,bottomValue:0,leftValue:0,rightValue:0},this.margin={topValue:0,bottomValue:0},this.borderStyle="solid",this.borderWidth=0,this.borderColor="#000",this.theme=d.h.get("theme"),this.connectWith=this.connectWith.bind(this),this.cmds={onchangeRadius:t=>{n.Z.store().execCommand("style",{...t.target.json})},toggleResponsive:t=>{this.noResponsive=!t.target.checked,n.Z.store().execCommand("noResponsive",this.noResponsive)},onChangeBorderStyle:t=>{this.borderStyle=t.target.borderStyle||"solid",this.borderWidth=t.target.borderWidth||1,this.borderColor=t.target.borderColor||"#000",n.Z.store().execCommand("style",{borderStyle:t.target.borderStyle,borderWidth:t.target.borderWidth,borderColor:t.target.borderColor})},onRemoveBackgroundVideo:()=>{this.backgroundVideo="",this.backgroundInstance={},n.Z.store().execCommand("background","transparent")},onChangeBackgroundVideo:t=>{const e=t.target.value;let o;if((0,s.Z)(e)){const t=h.x.find((t=>"images"===t.type));t.preset.properties.src=e,o=t.preset}else if((0,c.Z)(e));else if(function(t){if(t&&t.match(/^(?:https?:\/\/)?(?:m\.|www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/))return!0;return!1}(e)){const t=h.x.find((t=>"video"===t.type));t.preset.properties.url=e,delete t.preset.properties.videoPath,o=t.preset}o&&(n.Z.store().execCommand("background",o),n.Z.store().execCommand("style",{background:null})),this.backgroundVideo=e},onChangeImage:t=>{const e=t.detail,o=[];Array.isArray(e)?e.forEach((t=>o.push(t.src))):o.push(e.src),this.cmds.onChangeBackgroundVideo({target:{value:o.join(",")}}),this.galleryOpened=!1},onChangeHeight:t=>{const e=t.target.value;n.Z.store().execCommand("style",{height:e+"%"}),this.height=e},onChangeMargin:t=>{const e=t.target.value,o=t.target.direction;"all"===o?(n.Z.store().execCommand("style",{marginTop:e+"px",marginBottom:e+"px"}),this.margin={topValue:e,bottomValue:e}):n.Z.store().execCommand("style",{[(0,l.Z)(`margin-${o.toLowerCase()}`)]:e+"px"})},onChangePadding:t=>{const e=t.target.value,o=t.target.direction,r=(0,l.Z)(`padding-${o.toLowerCase()}`);"all"===o?(n.Z.store().execCommand("style",{padding:null,"padding-top":null,"padding-bottom":null,"padding-left":null,"padding-right":null,paddingTop:e+"px",paddingBottom:e+"px",paddingLeft:e+"px",paddingRight:e+"px","padding-right":null,"padding-left":null,"padding-top":null,"padding-bottom":null}),this.padding={topValue:e,bottomValue:e,leftValue:e,rightValue:e}):(n.Z.store().execCommand("style",{[r]:e+"px",[`padding-${o.toLowerCase()}`]:null}),this.props.style={[r]:e+"px"},this[`padding${o.toLowerCase()}`]=e)},onChangebackground(t){const e=t.target.value;this.background=e;n.Z.components.forEach((t=>{const o=t.find("text");if(o&&!o.closest("card")){let t=o.tiptap.getAttributes("textStyle").color;if(!t){const e=o.element.querySelector("p,h1,h2,h3,h4,h5,h6");e&&(t=window.getComputedStyle(e).color)}if(t&&!t.includes("var(--")&&!e.includes("var(--")){const r=(0,g.R)(t,e);o.tiptap.chain().selectAll().setColor(r).run()}}})),n.Z.store().execCommand("style",{background:e,backgroundColor:null});"web"!==d.h.get("config","channel")&&n.Z.store().execCommand("background",null)}}}onChangeImageBackgroundProp(t){const e=t.detail,{key:o,value:r}=e;if(this.props.background){const t=JSON.parse(JSON.stringify(this.props.background)),e=t.properties;if(!e.style[o])throw new Error(`${o} is not a valid property`);e.style[o]=r,n.Z.store().execCommand("background",t)}}connectedCallback(){super.connectedCallback(),this.connectWith(),n.Z.on("update",this.connectWith)}disconnectedCallback(){super.disconnectedCallback(),n.Z.off("update",this.connectWith)}onChangeWidth(t){let e=t.target.value;e<500&&(e=500),e>1e3&&(e=1e3);const o=this.getInnerBlocks();n.Z.store().execCommand2({transactions:[{key:"style",value:{width:e+"px",maxWidth:"100%"}}],update:[...o]}),this.maxWidth=e}connectWith(){const t=n.Z.components[n.Z.components.length-1];if(this.component=t,t&&"block"===t.type){this.props=t.props;let{style:e}=this.props;e||(e={}),t.props||(t.props={}),t.props.style||(t.props.style={}),this.expand_image_for_outlook=!!t.props.expand_image_for_outlook,this.boxShadow=t.props.style.boxShadow,this.borderStyle=t.props.style.borderStyle,this.borderWidth=t.props.style.borderWidth,this.borderColor=t.props.style.borderColor;const o=t.props.background;if(this.isBackgroundImage="images"===o?.type,this.noResponsive=!!t.props.noResponsive,this.isBackgroundImage){const t=o.properties;this.backgroundAttachment=t.style.backgroundAttachment,this.backgroundPosition=t.style.backgroundPosition,this.backgroundRepeat=t.style.backgroundRepeat,this.backgroundSize=t.style.backgroundSize}this.backgroundInstance=o,this.backgroundVideo=o?.properties?.src||o?.properties?.url||"";const r=t.element,i=window.getComputedStyle(r);this.maxWidth=parseInt(i.width),this.width=parseInt(e.width,10)||this.maxWidth,this.background=e.background||i.background,this.padding={topValue:parseInt(i.paddingTop),bottomValue:parseInt(i.paddingBottom),leftValue:parseInt(i.paddingLeft),rightValue:parseInt(i.paddingRight)},this.margin={topValue:parseInt(i.marginTop),bottomValue:parseInt(i.marginBottom)}}}changeTab(t){this.tabName=t.target.value}render(){const t=d.h.get("config","channel");return i.dy`
2
+ <cdtr-editor-tabs .tabs=${this.tabs} @tabChanged=${this.changeTab}>
3
+ <div slot="content">
4
+ ${"background"===this.tabName?i.dy` <cdtr-editor-container>
5
+ <cdtr-row justify="space-between">
6
+ <cdtr-col sm="5"
7
+ ><paper-button
8
+ class="gallery"
9
+ raised
10
+ @click=${()=>this.galleryOpened=!0}
11
+ ><lang-text
12
+ text="openGalleryImage"
13
+ ></lang-text></paper-button
14
+ ></cdtr-col>
15
+ <cdtr-col sm="5">
16
+ <paper-button
17
+ class="backgrounds"
18
+ raised
19
+ @click=${()=>a.Z.dispatch("open_add_menu",{type:"backgrounds",disabledOptions:!0,target:n.Z.components[0]})}
20
+ ><lang-text
21
+ text="backgrounds"
22
+ ></lang-text></paper-button
23
+ ></cdtr-col>
24
+ </cdtr-row>
25
+ </cdtr-editor-container>
26
+ ${this.isBackgroundImage&&"web"===t?i.dy`<cdtr-editor-container>
27
+ <background-editor-plugin
28
+ backgroundAttachment=${this.backgroundAttachment}
29
+ backgroundPosition=${this.backgroundPosition}
30
+ backgroundRepeat=${this.backgroundRepeat}
31
+ backgroundSize=${this.backgroundSize}
32
+ @change=${this.onChangeImageBackgroundProp}
33
+ ></background-editor-plugin
34
+ ></cdtr-editor-container>`:null}
35
+ <cdtr-editor-container>
36
+ <cdtr-row>
37
+ <cdtr-title
38
+ ><lang-text
39
+ text="add_urlAddress_from_media_site"
40
+ ></lang-text
41
+ ></cdtr-title>
42
+ </cdtr-row>
43
+ <cdtr-row>
44
+ <cdtr-input
45
+ .value="${this.backgroundVideo}"
46
+ @input=${this.cmds.onChangeBackgroundVideo}
47
+ style="width:100%;direction:ltr;text-align:left;"
48
+ placeholder="https://"
49
+ ></cdtr-input>
50
+ ${"object"==typeof this.backgroundInstance&&this.backgroundInstance?.component?i.dy`<paper-button
51
+ style=" font-size: 13px;
52
+ padding: 0;
53
+ text-align: var(--text-align-locale);
54
+ direction: var(--direction-locale);
55
+ justify-content: flex-start;
56
+ color:red;
57
+ margin: 0;"
58
+ @click=${this.cmds.onRemoveBackgroundVideo}
59
+ ><lang-text text="remove_background_movie"></lang-text
60
+ ></paper-button>`:null}
61
+ </cdtr-row>
62
+ </cdtr-editor-container>
63
+ <cdtr-divider></cdtr-divider>
64
+ <cdtr-editor-container>
65
+ <cdtr-colorpicker-editor
66
+ .hasAlpha=${"web"===t}
67
+ @change=${this.cmds.onChangebackground}
68
+ .value=${this.background}
69
+ text="backgroundColor"
70
+ ></cdtr-colorpicker-editor>
71
+ </cdtr-editor-container>
72
+ <cdtr-divider></cdtr-divider>
73
+ <cdtr-editor-container>
74
+ <cdtr-checkbox
75
+ @change=${t=>this.onChangeBakgroundExpanding(t)}
76
+ .checked=${this.expand_image_for_outlook}
77
+ >
78
+ <cdtr-title
79
+ ><lang-text text="expand_image_for_outlook"></lang-text
80
+ ></cdtr-title>
81
+ </cdtr-checkbox>
82
+ <h6>
83
+ <lang-text
84
+ whiteSpace="break-spaces"
85
+ text="expand_image_for_outlook_description"
86
+ ></lang-text>
87
+ </h6>
88
+ </cdtr-editor-container>
89
+ <cdtr-divider></cdtr-divider>`:null}
90
+ ${"design"===this.tabName?i.dy`
91
+ <cdtr-editor-container>
92
+ <cdtr-colorpicker-editor
93
+ .hasAlpha=${!1}
94
+ @change=${this.cmds.onChangebackground}
95
+ .value=${this.background}
96
+ text="backgroundColor"
97
+ ></cdtr-colorpicker-editor>
98
+ </cdtr-editor-container>
99
+ <cdtr-editor-container>
100
+ <cdtr-width-editor
101
+ text="width"
102
+ unit="px"
103
+ max="1000"
104
+ min="500"
105
+ .value="${this.width}"
106
+ @input=${this.onChangeWidth}
107
+ .sizes=${[{name:d.h.get("lang","recommended")||"recommended",value:600,default:!0},{name:d.h.get("lang","large")||"large",value:1e3}]}
108
+ ></cdtr-width-editor>
109
+ <p style="font-size:12px">
110
+ <lang-text whiteSpace="" text="email_600"></lang-text>
111
+ </p>
112
+ </cdtr-editor-container>
113
+ <cdtr-divider></cdtr-divider>
114
+ <cdtr-editor-container>
115
+ <cdtr-row justify="center">
116
+ <cdtr-col sm="12"
117
+ ><cdtr-title style="display:block" class="align-lang"
118
+ ><lang-text text="padding"></lang-text></cdtr-title
119
+ ></cdtr-col>
120
+ <cdtr-col sm="6"
121
+ ><cdtr-spacing
122
+ .topValue="${this.padding.topValue}"
123
+ .bottomValue="${this.padding.bottomValue}"
124
+ .leftValue="${this.padding.leftValue}"
125
+ .rightValue="${this.padding.rightValue}"
126
+ isLock=${!1}
127
+ max="500"
128
+ @input=${this.cmds.onChangePadding}
129
+ ></cdtr-spacing
130
+ ></cdtr-col>
131
+ </cdtr-row>
132
+ </cdtr-editor-container>
133
+
134
+ <cdtr-divider></cdtr-divider>
135
+ <cdtr-editor-container>
136
+ <cdtr-row alignItems="center" justify="space-between">
137
+ <cdtr-col>
138
+ <cdtr-title>
139
+ <lang-text text="no_responsive"></lang-text>
140
+ </cdtr-title>
141
+ </cdtr-col>
142
+ <cdtr-col sm="1">
143
+ <cdtr-checkbox
144
+ @change=${this.cmds.toggleResponsive}
145
+ .checked="${this.noResponsive}"
146
+ ></cdtr-checkbox>
147
+ </cdtr-col>
148
+ </cdtr-row>
149
+ </cdtr-editor-container>
150
+ <!-- <cdtr-divider></cdtr-divider>
151
+ <cdtr-editor-container>
152
+ <cdtr-radius-editor
153
+ @input=${this.cmds.onchangeRadius}
154
+ ></cdtr-radius-editor>
155
+ </cdtr-editor-container> -->
156
+ <cdtr-divider></cdtr-divider>
157
+
158
+ <cdtr-editor-container>
159
+ <cdtr-border-editor
160
+ .borderStyle=${this.borderStyle}
161
+ .borderWidth=${this.borderWidth}
162
+ .borderColor=${this.borderColor}
163
+ @change=${this.cmds.onChangeBorderStyle}
164
+ ></cdtr-border-editor>
165
+ </cdtr-editor-container>
166
+ `:null}
167
+
168
+ <!-- ${"typography"===this.tabName?i.dy` <cdtr-text-editor-plugin></cdtr-text-editor-plugin> `:null} -->
169
+ <!-- ${"spacing"===this.tabName?i.dy`
170
+ <cdtr-editor-container>
171
+ <cdtr-row justify="center">
172
+ <cdtr-col sm="12"
173
+ ><cdtr-title style="display:block" class="align-lang"
174
+ ><lang-text text="padding"></lang-text></cdtr-title
175
+ ></cdtr-col>
176
+ <cdtr-col sm="6"
177
+ ><cdtr-spacing
178
+ .topValue="${this.padding.topValue}"
179
+ .bottomValue="${this.padding.bottomValue}"
180
+ .leftValue="${this.padding.leftValue}"
181
+ .rightValue="${this.padding.rightValue}"
182
+ isLock=${!1}
183
+ max="500"
184
+ @input=${this.cmds.onChangePadding}
185
+ ></cdtr-spacing
186
+ ></cdtr-col>
187
+ </cdtr-row>
188
+ </cdtr-editor-container>
189
+ <cdtr-editor-container>
190
+ <cdtr-row justify="center">
191
+ <cdtr-col sm="12"
192
+ ><cdtr-title style="display:block" class="align-lang"
193
+ ><lang-text text="margin"></lang-text></cdtr-title
194
+ ></cdtr-col>
195
+ <cdtr-col sm="6"
196
+ ><cdtr-spacing
197
+ .topValue=${this.margin.topValue}
198
+ .bottomValue=${this.margin.bottomValue}
199
+ isLock=${!1}
200
+ max="500"
201
+ .hasLeft=${!1}
202
+ .hasRight=${!1}
203
+ @input=${this.cmds.onChangeMargin}
204
+ ></cdtr-spacing
205
+ ></cdtr-col>
206
+ </cdtr-row>
207
+ </cdtr-editor-container>
208
+ `:null} -->
209
+ </div>
210
+ </cdtr-editor-tabs>
211
+ <cdtr-gallery
212
+ .multi=${!0}
213
+ @close=${()=>{this.galleryOpened=!1}}
214
+ .opened=${this.galleryOpened}
215
+ @file=${this.cmds.onChangeImage}
216
+ ></cdtr-gallery>
217
+ `}}(0,r.Z)(p,"styles",i.iv`
218
+ paper-button.gallery {
219
+ background: var(--primary);
220
+ color: var(--primary-text);
221
+ }
222
+ paper-button.backgrounds {
223
+ background: BLACK;
224
+ color: #fff;
225
+ }
226
+ `),(0,r.Z)(p,"properties",{maxWidth:{type:Number},backgroundInstance:{type:Object},padding:{type:Object},margin:{type:Object},tabs:{type:Array},tabName:{type:String},galleryOpened:{type:Boolean},backgroundVideo:{type:String,reflect:!0},isBackgroundImage:{type:Boolean},backgroundAttachment:{type:String},backgroundPosition:{type:String},backgroundRepeat:{type:String},backgroundSize:{type:String},noResponsive:{type:Boolean},borderStyle:{type:String},borderWidth:{type:Number},borderColor:{type:String}}),customElements.define("block-editor",p)},7592:(t,e,o)=>{o.d(e,{Z:()=>n});var r=o(56666),i=o(21293);class d extends i.oi{constructor(){super(),this.onInput=this.onInput.bind(this),this.isLocked=!0,this.borderTopRightRadius=0,this.borderTopLeftRadius=0,this.borderBottomRightRadius=0,this.borderBottomLeftRadius=0}connectedCallback(){super.connectedCallback()}onInput(t,e){t.preventDefault();const o=t.target.value,r=o+"px";this.isLocked?(this.borderTopRightRadius=o,this.borderTopLeftRadius=o,this.borderBottomRightRadius=o,this.borderBottomLeftRadius=o,this.json={borderTopRightRadius:r,borderTopLeftRadius:r,borderBottomRightRadius:r,borderBottomLeftRadius:r,borderRadius:null}):(this.json={borderTopRightRadius:parseInt(this.borderTopRightRadius||0)+"px",borderTopLeftRadius:parseInt(this.borderTopLeftRadius||0)+"px",borderBottomRightRadius:parseInt(this.borderBottomRightRadius||0)+"px",borderBottomLeftRadius:parseInt(this.borderBottomLeftRadius||0)+"px",borderRadius:null},this.json[e]=r),this.value=o,this.radiusKey=e;const i=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(i)}resolveIcon(t){let e;switch(t){case"borderTopRightRadius":e="arrowTopRight";break;case"borderTopLeftRadius":e="arrowTopLeft";break;case"borderBottomRightRadius":e="arrowBottomRight";break;case"borderBottomLeftRadius":e="arrowBottomLeft"}return i.dy`<cdtr-icon
227
+ width="15"
228
+ height="15"
229
+ icon="${e}"
230
+ ></cdtr-icon>`}onChangeLock(){this.isLocked=!this.isLocked}render(){this.elementId&&this.elementId!==this.lastElementId&&(this.lastElementId=this.elementId,this.isLocked=this.borderTopRightRadius===this.borderTopLeftRadius&&this.borderBottomRightRadius===this.borderBottomLeftRadius&&this.borderTopRightRadius===this.borderBottomLeftRadius);this.onChange;const t=this.onInput;return i.dy`<cdtr-row
231
+ alignItems="center"
232
+ spacing="3px"
233
+ style="position:relative;"
234
+ >
235
+ ${["borderTopRightRadius","borderTopLeftRadius","borderBottomRightRadius","borderBottomLeftRadius"].map((e=>i.dy`<cdtr-col>
236
+ ${this.resolveIcon(e)}
237
+ <cdtr-number-input
238
+ .type=${"number"}
239
+ .max=${300}
240
+ .min=${0}
241
+ value="${parseFloat(this[e])}"
242
+ @input=${o=>t(o,e)}
243
+ style="width:100%"
244
+ ></cdtr-number-input
245
+ ></cdtr-col>`))}
246
+ <cdtr-button @click=${this.onChangeLock}>
247
+ <cdtr-icon
248
+ style="height:10px"
249
+ width="20"
250
+ height="20"
251
+ .icon="${this.isLocked?"lock":"unlock"}"
252
+ ></cdtr-icon>
253
+ </cdtr-button>
254
+ </cdtr-row>`}}(0,r.Z)(d,"properties",{value:{type:Number},json:{type:Object},onChange:{type:Function},borderTopRightRadius:{type:Number},borderTopLeftRadius:{type:Number},borderBottomRightRadius:{type:Number},borderBottomLeftRadius:{type:Number},isLocked:{type:Boolean},elementId:{type:String},radiusKey:{type:String}}),customElements.define("cdtr-radius-editor",d);const n=t=>i.dy` <cdtr-editor-container>
255
+ <cdtr-row>
256
+ <cdtr-title><lang-text text="${t.title}"></lang-text></cdtr-title>
257
+ </cdtr-row>
258
+ <cdtr-radius-editor
259
+ .elementId=${t.elementId}
260
+ @input=${t.onInput}
261
+ .value=${t.value}
262
+ .borderTopRightRadius=${t.borderTopRightRadius||t.value||0}
263
+ .borderTopLeftRadius=${t.borderTopLeftRadius||t.value||0}
264
+ .borderBottomRightRadius=${t.borderBottomRightRadius||t.value||0}
265
+ .borderBottomLeftRadius=${t.borderBottomLeftRadius||t.value||0}
266
+ ></cdtr-radius-editor>
267
+ </cdtr-editor-container>`},98766:(t,e,o)=>{o.d(e,{Z:()=>i});const r=JSON.parse('["3g2","3gp","aaf","asf","avchd","avi","drc","flv","m2v","m3u8","m4p","m4v","mkv","mng","mov","mp2","mp4","mpe","mpeg","mpg","mpv","mxf","nsv","ogg","ogv","qt","rm","rmvb","roq","svi","vob","webm","wmv","yuv"]');function i(t){const e=/(?:\.([^.]+))?$/.exec(t.toLowerCase())[1];return-1!==r.findIndex((t=>t===e))}}}]);
Binary file
@@ -0,0 +1 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9800],{29800:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var o=n(35210);const i=e=>{{const{component:t,commands:n,helpers:i}=e;return{select:e=>{let{changeTab:t,tab:n}=e},tabs:e=>{const t=[{text:"design",selected:!0},{text:"link"},{text:"icons"},{text:"settings"}];return t.forEach((t=>t.selected=t.selected=t.text===e)),t},layout:e=>{let{tab:i,changeTab:r,tabs:s}=e;return[{type:"input",title:"whatTheBtnSays",mergeTags:!0,emoji:!0,active:()=>"design"===i.text,value:t.props.text||"",onInput:e=>{const t=e.target.value;n.execCommand("text",t)}},{type:"divider",active:()=>"design"===i.text},{type:"divider",active:()=>"design"===i.text},{type:"typography",active:()=>"design"===i.text,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 i="underline"===t.props.style.textDecoration?"none":"underline";n.execCommand("style",{textDecoration:i})}}},{type:"divider",active:()=>"design"===i.text},{type:"fontFamily",active:()=>"design"===i.text,value:t.props.style.fontFamily,onChange:e=>{const t=e.target.value;n.execCommand("style",{fontFamily:t})}},{type:"divider",active:()=>"design"===i.text},{type:"slider",title:"fontSize",step:1,min:8,max:50,active:()=>"design"===i.text,value:parseInt(t.props.style.fontSize)||14,onInput:e=>{const t=e.target.value;n.execCommand("style",{fontSize:t+"px",height:"auto"})}},{type:"divider",active:()=>"design"===i.text},{type:"slider",title:"width",min:10,max:500,active:()=>"design"===i.text,value:parseInt(t.props.style.width),onInput:e=>{const t=e.target.value;n.execCommand("style",{width:t+"px",minWidth:null})}},{type:"divider",active:()=>"design"===i.text},{type:"colorpicker",alpha:!1,title:"button_background",active:()=>"design"===i.text,value:t.props.style.background,onChange:e=>{const i=e.target.value,r=(0,o.R)(t.props.style.color,i);n.execCommand("style",{color:r}),n.execCommand("style",{background:i})}},{type:"divider",active:()=>"design"===i.text},{type:"colorpicker",title:"font_color",alpha:!1,active:()=>"design"===i.text,value:t.props.style.color,onChange:e=>{const t=e.target.value;n.execCommand("style",{color:t})}},{type:"divider",active:()=>"design"===i.text},{type:"slider",title:"radius",min:0,max:100,active:()=>"design"===i.text,value:parseInt(t.props.style.borderRadius),onInput:e=>{const t=e.target.value;n.execCommand("style",{borderRadius:t+"px"})}},{type:"divider",active:()=>"design"===i.text},{type:"linkpicker",href:t.props.onClick?.link,protocol:t.props.onClick?.link?.protocol,target:t.props.onClick?.link?.target,autofocus:!0,active:()=>"link"===i.text,onChange:e=>{const t={link:e.target.value};n.execCommand("onClick",t)}},{type:"checkbox",title:"hasIcon",checked:!!t.props.hasIcon,active:()=>"icons"===i.text,onChange:e=>{const t=e.target.checked;n.execCommand("hasIcon",t),n.execCommand("iconDirection","left")}},{type:"dropdown",active:()=>"icons"===i.text&&!0===t.props.hasIcon,title:"iconDirection",value:t.props.iconDirection,onChange:e=>{const t=e.target.value;n.execCommand("iconDirection",t)},items:[{value:"left",label:"left"},{value:"right",label:"right"}]},{type:"slider",title:"size",min:10,max:100,active:()=>"icons"===i.text&&!0===t.props.hasIcon,value:t.props.iconSize||16,onInput:e=>{const t=e.target.value;n.execCommand("iconSize",t)}},{type:"icons",active:()=>"icons"===i.text&&!0===t.props.hasIcon,selectedIcon:t.props.iconUrl,onChange:e=>{const t=e.detail;n.execCommand("iconUrl",t.src)}}]}}}},r=e=>{let{helpers:t,editor:n,getFocused:o}=e;return{set:(e,i,r)=>{switch(i){case"style":return e[i]=t.deepMerge(e[i],r),!0;case"text":return e.text=r,o()||n.chain().setContent(r).run(),!0;case"ripple":case"rippleColor":case"scaleOnHover":case"hasIcon":case"iconUrl":case"iconSize":case"iconDirection":return e[i]=r,!0;case"onClick":if(r.link)return e[i]=r,!0}}}};var s=n(46062),a=n.n(s),c=n(32877),l=n.n(c),d=n(96793),p=n.n(d),u=n(17892),m=n.n(u),A=n(11173),g=n.n(A),h=n(96186),x={};x.setAttributes=m(),x.insert=p().bind(null,"head"),x.domAPI=l(),x.insertStyleElement=g();a()(h.Z,x);const y=h.Z&&h.Z.locals?h.Z.locals:void 0;var C=n(88573),v=n(42626);const b=C.NB.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,C.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}});var f=n(64652),E=n(39615);const k=C.hj.create({addKeyboardShortcuts:()=>({Enter:()=>!0})});const S=()=>{const e="button";return{name:e,create:t=>{const{createElement:n,compose:o,helpers:s}=t,{arrayToString:a,mergeDiff:c}=s;let l=!1;const d=document.createElement("div"),p=document.createElement("div"),{editor:u}=function(e){let{content:t,element:n}=e;return{element:n,editor:new C.ML({element:n,extensions:[v.Z,b,E.Z,f.ZP,k],content:t})}}({content:o.props.text,element:p});d.appendChild(p);return u.view.dom.setAttribute("dir","auto"),u.on("update",(e=>{let{editor:t}=e;const n=t.getText();o.editor.store().updateComponent(o,"text",n)})),u.on("focus",(e=>{let{event:t,editor:n}=e;l=!0})),u.on("blur",(e=>{let{event:t,editor:n}=e;l=!1})),d.className=y.button,n({name:e,id:o.id,template:d,commands:{insertContent:e=>{u.commands.insertContent(e),u.chain().focus()}},defaultProps:{style:{height:"auto",width:"200px",padding:"10px",borderRadius:"5px",fontFamily:"Arial"},text:"button"},render:()=>{try{o.props.style.display="",o.props.style.direction=""}catch(e){console.error(e)}c(d,{style:o.props.style}),d.style.height="auto";const e=o.props.hasIcon,t=o.props.iconUrl,n=o.props.iconDirection,i=o.props.iconSize,r="icon_in_button";let s=d.querySelector(`.${r}`)||document.createElement("img");e&&t?(s.className=r,s.src=t,s.style.width=(i||16)+"px",s.style.height=(i||16)+"px",s.style.marginRight="8px",s.style.marginLeft="8px","left"===n?d.insertBefore(s,d.firstChild):d.appendChild(s)):s.remove()},draggable:{group:"element"},droppable:{group:"element"},resizeable:()=>d,handleBar:!0,validator:r({template:d,helpers:s,editor:u,getFocused:function(){return l}}),schema:o.schema,onSelect:e=>{d.classList.add(e)},onDeselect:e=>{d.classList.remove(e)},elementProps:o,destroy:()=>{u.destroy()},remove:()=>{d.remove()},createEditor:i})}}}},96186:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(40272),i=n.n(o),r=n(82609),s=n.n(r)()(i());s.push([e.id,".vjErS0oxa7pSGS7JqfxF {\n cursor: text !important;\n}\n.vjErS0oxa7pSGS7JqfxF {\n min-width: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding:10px;\n}\n.vjErS0oxa7pSGS7JqfxF p {\n margin: 0;\n line-height: 1;\n}\n.eicX5x7SmY60CCQnENoO {\n width: 100%;\n}\n.WAp1CoJW6d3eiztdh2uT {\n position: absolute;\n z-index: 9;\n width: 3px;\n height: 90%;\n background: var(--resizer-color);\n border-radius: 20px;\n}\n.EcbMG0N6j40eXKTfBpGy {\n left: -8px;\n cursor: w-resize;\n}\n.mtf6071V9prUmvmTszKr {\n left: calc(100% + 5px);\n cursor: e-resize;\n}\n\n.vjErS0oxa7pSGS7JqfxF .WAp1CoJW6d3eiztdh2uT {\n display: none;\n}\n.vjErS0oxa7pSGS7JqfxF.sTe_74tbJp9DHRljPoY5 .WAp1CoJW6d3eiztdh2uT {\n display: block;\n}\n/* .handle{\n display: none;\n}\n.button.selected .handle{\n display: block;\n} */\n","",{version:3,sources:["webpack://./../button-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;EACE,uBAAuB;AAOzB;AARA;EAEE,eAAe;EACf,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,kBAAkB;EAClB,YAAY;AACd;AACA;EACE,SAAS;EACT,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,UAAU;EACV,WAAW;EACX,gCAAgC;EAChC,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;;;;;GAKG",sourcesContent:[".button {\n cursor: text !important;\n min-width: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding:10px;\n}\n.button p {\n margin: 0;\n line-height: 1;\n}\n.contentEditable {\n width: 100%;\n}\n.margin {\n position: absolute;\n z-index: 9;\n width: 3px;\n height: 90%;\n background: var(--resizer-color);\n border-radius: 20px;\n}\n.marginLeft {\n left: -8px;\n cursor: w-resize;\n}\n.marginRight {\n left: calc(100% + 5px);\n cursor: e-resize;\n}\n\n.button .margin {\n display: none;\n}\n.button.selected .margin {\n display: block;\n}\n/* .handle{\n display: none;\n}\n.button.selected .handle{\n display: block;\n} */\n"],sourceRoot:""}]),s.locals={button:"vjErS0oxa7pSGS7JqfxF",contentEditable:"eicX5x7SmY60CCQnENoO",margin:"WAp1CoJW6d3eiztdh2uT",marginLeft:"EcbMG0N6j40eXKTfBpGy",marginRight:"mtf6071V9prUmvmTszKr",selected:"sTe_74tbJp9DHRljPoY5"};const a=s}}]);
Binary file
@@ -0,0 +1,65 @@
1
+ /*! For license information please see 9838.creaditor.bundle.js.LICENSE.txt */
2
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9838],{19838:(t,e,s)=>{s.r(e),s.d(e,{default:()=>Ut});var i=s(56666);const n=globalThis,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),h=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&h.set(e,t))}return t}toString(){return this.cssText}}const l=(t,e)=>{if(o)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),i=n.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=s.cssText,t.appendChild(e)}},d=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,r))(e)})(t):t,{is:c,defineProperty:p,getOwnPropertyDescriptor:u,getOwnPropertyNames:$,getOwnPropertySymbols:_,getPrototypeOf:f}=Object,g=globalThis,A=g.trustedTypes,m=A?A.emptyScript:"",y=g.reactiveElementPolyfillSupport,v=(t,e)=>t,b={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},E=(t,e)=>!c(t,e),S={attribute:!0,type:String,converter:b,reflect:!1,useDefault:!1,hasChanged:E};Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&p(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);n?.call(this,e),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...$(t),..._(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(d(t))}else void 0!==t&&e.push(d(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return l(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const n=(void 0!==s.converter?.toAttribute?s.converter:b).toAttribute(e,s.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:b;this._$Em=i;const o=n.fromAttribute(e,t.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,n=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??E)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},o){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==n||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[v("elementProperties")]=new Map,w[v("finalized")]=new Map,y?.({ReactiveElement:w}),(g.reactiveElementVersions??=[]).push("2.1.1");const x=globalThis,C=x.trustedTypes,P=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",M=`lit$${Math.random().toFixed(9).slice(2)}$`,N="?"+M,O=`<${N}>`,H=document,T=()=>H.createComment(""),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,I=t=>R(t)||"function"==typeof t?.[Symbol.iterator],z="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,B=/>/g,j=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),W=/'/g,G=/"/g,V=/^(?:script|style|textarea|title)$/i,q=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),Z=q(1),F=(q(2),q(3),Symbol.for("lit-noChange")),J=Symbol.for("lit-nothing"),K=new WeakMap,X=H.createTreeWalker(H,129);function Q(t,e){if(!R(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(e):e}const Y=(t,e)=>{const s=t.length-1,i=[];let n,o=2===e?"<svg>":3===e?"<math>":"",r=D;for(let e=0;e<s;e++){const s=t[e];let h,a,l=-1,d=0;for(;d<s.length&&(r.lastIndex=d,a=r.exec(s),null!==a);)d=r.lastIndex,r===D?"!--"===a[1]?r=L:void 0!==a[1]?r=B:void 0!==a[2]?(V.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=j):void 0!==a[3]&&(r=j):r===j?">"===a[0]?(r=n??D,l=-1):void 0===a[1]?l=-2:(l=r.lastIndex-a[2].length,h=a[1],r=void 0===a[3]?j:'"'===a[3]?G:W):r===G||r===W?r=j:r===L||r===B?r=D:(r=j,n=void 0);const c=r===j&&t[e+1].startsWith("/>")?" ":"";o+=r===D?s+O:l>=0?(i.push(h),s.slice(0,l)+U+s.slice(l)+M+c):s+M+(-2===l?e:c)}return[Q(t,o+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class tt{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const r=t.length-1,h=this.parts,[a,l]=Y(t,e);if(this.el=tt.createElement(a,s),X.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=X.nextNode())&&h.length<r;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(U)){const e=l[o++],s=i.getAttribute(t).split(M),r=/([.?@])?(.*)/.exec(e);h.push({type:1,index:n,name:r[2],strings:s,ctor:"."===r[1]?ot:"?"===r[1]?rt:"@"===r[1]?ht:nt}),i.removeAttribute(t)}else t.startsWith(M)&&(h.push({type:6,index:n}),i.removeAttribute(t));if(V.test(i.tagName)){const t=i.textContent.split(M),e=t.length-1;if(e>0){i.textContent=C?C.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],T()),X.nextNode(),h.push({type:2,index:++n});i.append(t[e],T())}}}else if(8===i.nodeType)if(i.data===N)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(M,t+1));)h.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,e){const s=H.createElement("template");return s.innerHTML=t,s}}function et(t,e,s=t,i){if(e===F)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const o=k(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=et(t,n._$AS(t,e.values),n,i)),e}class st{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??H).importNode(e,!0);X.currentNode=i;let n=X.nextNode(),o=0,r=0,h=s[0];for(;void 0!==h;){if(o===h.index){let e;2===h.type?e=new it(n,n.nextSibling,this,t):1===h.type?e=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(e=new at(n,this,t)),this._$AV.push(e),h=s[++r]}o!==h?.index&&(n=X.nextNode(),o++)}return X.currentNode=H,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class it{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),k(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):I(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==J&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(H.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=tt.createElement(Q(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new st(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new tt(t)),e}k(t){R(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new it(this.O(T()),this.O(T()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class nt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=J}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(void 0===n)t=et(this,t,e,0),o=!k(t)||t!==this._$AH&&t!==F,o&&(this._$AH=t);else{const i=t;let r,h;for(t=n[0],r=0;r<n.length-1;r++)h=et(this,i[s+r],e,r),h===F&&(h=this._$AH[r]),o||=!k(h)||h!==this._$AH[r],h===J?t=J:t!==J&&(t+=(h??"")+n[r+1]),this._$AH[r]=h}o&&!i&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ot extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}class rt extends nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}}class ht extends nt{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=et(this,t,e,0)??J)===F)return;const s=this._$AH,i=t===J&&s!==J||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==J&&(s===J||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const lt={M:U,P:M,A:N,C:1,L:Y,R:st,D:I,V:et,I:it,H:nt,N:rt,U:ht,B:ot,F:at},dt=x.litHtmlPolyfillSupport;dt?.(tt,it),(x.litHtmlVersions??=[]).push("3.3.1");const ct=globalThis;class pt extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const i=s?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=s?.renderBefore??null;i._$litPart$=n=new it(e.insertBefore(T(),t),t,void 0,s??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return F}}pt._$litElement$=!0,pt.finalized=!0,ct.litElementHydrateSupport?.({LitElement:pt});const ut=ct.litElementPolyfillSupport;ut?.({LitElement:pt});(ct.litElementVersions??=[]).push("4.2.1");const{I:$t}=lt,_t=2;class ft{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const gt=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),gt(t,e);return!0},At=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},mt=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),bt(e)}};function yt(t){void 0!==this._$AN?(At(this),this._$AM=t,mt(this)):this._$AM=t}function vt(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)gt(i[t],!1),At(i[t]);else null!=i&&(gt(i,!1),At(i));else gt(this,t)}const bt=t=>{t.type==_t&&(t._$AP??=vt,t._$AQ??=yt)};class Et extends ft{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),mt(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(gt(this,t),At(this))}setValue(t){if((t=>void 0===t.strings)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class St{}const wt=new WeakMap,xt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends Et{render(t){return J}update(t,[e]){const s=e!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),J}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=wt.get(e);void 0===s&&(s=new WeakMap,wt.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?wt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Ct=s(49120);const Pt=[];class Ut extends pt{constructor(){super(),(0,i.Z)(this,"contentRef",new St),this.left=0,this.top=0,this.opened=!1,this.width=200,this.height=300}updated(t){t.has("opened")&&(this.opened&&(0,Ct.t)(this),Pt.forEach((t=>{t!==this&&(t.opened=!1)})))}connectedCallback(){super.connectedCallback(),Pt.push(this)}disconnectedCallback(){super.disconnectedCallback();const t=Pt.indexOf(this);t>-1&&Pt.splice(t,1),this.close()}handleWindowClick(t){t&&(this.positionInitialized||(this.left||(this.left=`${t.clientX}`),this.top||(this.top=`${t.clientY}`),this.positionInitialized=!0))}close(){this.opened=!1}toggle(t){this.handleWindowClick(t),this.opened=!this.opened,this.opened?requestAnimationFrame((()=>this.updatePosition())):this.positionInitialized=!1}updatePosition(){const t=this.contentRef.value;if(t){const e=t.getBoundingClientRect(),s=window.innerWidth,i=window.innerHeight;e.right>s&&(this.left=""+(s-e.width-30)),e.top-e.height>i&&(this.top=""+(i-this.height-10))}else setTimeout((()=>{this.updatePosition()}),100)}render(){return this.height=parseInt(this.height,10)||400,Z`
3
+ <slot @click=${this.toggle} tabindex="0" name="trigger"></slot>
4
+ <cdtr-draggable-element
5
+ handle=".header"
6
+ @move=${t=>{this.left=t.target.x,this.top=t.target.y}}
7
+ >
8
+ <div
9
+ role="dialog"
10
+ aria-modal="true"
11
+ aria-labelledby="dialog-title"
12
+ ${xt(this.contentRef)}
13
+ @mouseup=${this.preventClosing}
14
+ style="height:auto;max-height:${this.height+"px"};z-index:${(0,Ct.Z)()};left:${this.left}px;top:${this.top}px;width:${this.width}px;display:${this.opened?"block":"none"};"
15
+ class="box-content fade-in"
16
+ >
17
+ <paper-button @click=${()=>{this.close()}} style="position:absolute;left:0;top:0;">
18
+ <cdtr-icon icon="x"></cdtr-icon>
19
+ </paper-button>
20
+ <div id="dialog-title" class="header">
21
+ <slot class="header" name="header"></slot>
22
+ ${this.title?Z`<lang-text text=${this.title}></lang-text>`:""}
23
+ </div>
24
+ <cdtr-divider></cdtr-divider>
25
+ ${this.opened?Z`<div
26
+ style="max-height:${this.height-100}px;overflow:auto;"
27
+ class="content drop-modal-draggable"
28
+ >
29
+ <slot name="content"></slot>
30
+ </div>`:null}
31
+ </div>
32
+ </cdtr-draggable-element>
33
+ `}}(0,i.Z)(Ut,"styles",((t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new a(s,t,r)})`
34
+ .box-content {
35
+ position: fixed;
36
+ width: auto;
37
+ overflow: hidden;
38
+ max-width: 100%;
39
+ position: fixed;
40
+ z-index: 9999;
41
+ background: rgb(255, 255, 255);
42
+ height: 100%;
43
+ padding: 10px;
44
+ box-shadow: rgb(99 99 99 / 20%) 0px 2px 8px 0px;
45
+ box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
46
+ border-radius: 10px;
47
+ }
48
+ .header {
49
+ cursor: move;
50
+ min-height:30px;
51
+ }
52
+
53
+ .fade-in {
54
+ animation: fadeIn 0.3s;
55
+ }
56
+ @keyframes fadeIn {
57
+ from {
58
+ opacity: 0;
59
+ transform: translateX(-10px);
60
+ }
61
+ to {
62
+ opacity: 1;
63
+ }
64
+ }
65
+ `),(0,i.Z)(Ut,"properties",{title:{type:String},opened:{type:Boolean},width:{type:Number},height:{type:Number},left:{type:String},top:{type:String}}),customElements.define("cdtr-draggable-box",Ut)}}]);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
7
+ /**
8
+ * @license
9
+ * Copyright 2019 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */
12
+
13
+ /**
14
+ * @license
15
+ * Copyright 2020 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */
Binary file
@@ -0,0 +1,32 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9928],{69928:(t,C,i)=>{i.r(C),i.d(C,{AutomationIcon:()=>s});var e=i(56666),h=i(21293);class s extends h.oi{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.dy`<svg
2
+ style="${this.iconStyle}"
3
+ width="${this.width}"
4
+ height="${this.height}"
5
+ viewBox="0 0 24 24"
6
+ fill="none"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ >
9
+ <path
10
+ d="M6 4H21C21.2652 4 21.5196 4.10536 21.7071 4.29289C21.8946 4.48043 22 4.73478 22 5V12H20V6H6V9L1 5L6 1V4ZM18 20H3C2.73478 20 2.48043 19.8946 2.29289 19.7071C2.10536 19.5196 2 19.2652 2 19V12H4V18H18V15L23 19L18 23V20Z"
11
+ fill="black"
12
+ />
13
+ <path
14
+ d="M7.10782 13.0297C6.96406 12.3508 6.96406 11.6492 7.10782 10.9703C7.66267 11.0353 8.14754 10.8518 8.30549 10.4699C8.46395 10.0875 8.25151 9.61514 7.81263 9.26874C8.19105 8.68705 8.68705 8.19105 9.26874 7.81263C9.61464 8.25101 10.0875 8.46395 10.4699 8.30549C10.8523 8.14704 11.0358 7.66267 10.9703 7.10782C11.6492 6.96406 12.3508 6.96406 13.0297 7.10782C12.9647 7.66267 13.1482 8.14754 13.5301 8.30549C13.9125 8.46395 14.3849 8.25151 14.7313 7.81263C15.3129 8.19105 15.809 8.68705 16.1874 9.26874C15.749 9.61464 15.536 10.0875 15.6945 10.4699C15.853 10.8523 16.3373 11.0358 16.8922 10.9703C17.0359 11.6492 17.0359 12.3508 16.8922 13.0297C16.3373 12.9647 15.8525 13.1482 15.6945 13.5301C15.536 13.9125 15.7485 14.3849 16.1874 14.7313C15.809 15.3129 15.3129 15.809 14.7313 16.1874C14.3854 15.749 13.9125 15.536 13.5301 15.6945C13.1477 15.853 12.9642 16.3373 13.0297 16.8922C12.3508 17.0359 11.6492 17.0359 10.9703 16.8922C11.0353 16.3373 10.8518 15.8525 10.4699 15.6945C10.0875 15.536 9.61514 15.7485 9.26874 16.1874C8.68705 15.809 8.19105 15.3129 7.81263 14.7313C8.25101 14.3854 8.46395 13.9125 8.30549 13.5301C8.14704 13.1477 7.66267 12.9642 7.10782 13.0297ZM8.00108 12.105C8.55093 12.2574 9.00431 12.6058 9.22925 13.1477C9.45369 13.69 9.37921 14.2574 9.09828 14.7533C9.14627 14.8042 9.19575 14.8537 9.24674 14.9017C9.74311 14.6208 10.31 14.5468 10.8523 14.7708C11.3942 14.9957 11.7426 15.4491 11.895 15.9989C11.965 16.0009 12.035 16.0009 12.105 15.9989C12.2574 15.4491 12.6058 14.9957 13.1477 14.7708C13.69 14.5463 14.2574 14.6208 14.7533 14.9017C14.8042 14.8537 14.8537 14.8042 14.9017 14.7533C14.6208 14.2569 14.5468 13.69 14.7708 13.1477C14.9957 12.6058 15.4491 12.2574 15.9989 12.105C16.0009 12.035 16.0009 11.965 15.9989 11.895C15.4491 11.7426 14.9957 11.3942 14.7708 10.8523C14.5463 10.31 14.6208 9.74261 14.9017 9.24674C14.8536 9.19595 14.804 9.14645 14.7533 9.09828C14.2569 9.37921 13.69 9.45319 13.1477 9.22925C12.6058 9.00431 12.2574 8.55093 12.105 8.00108C12.035 7.99922 11.965 7.99922 11.895 8.00108C11.7426 8.55093 11.3942 9.00431 10.8523 9.22925C10.31 9.45369 9.74261 9.37921 9.24674 9.09828C9.19575 9.14627 9.14627 9.19575 9.09828 9.24674C9.37921 9.74311 9.45319 10.31 9.22925 10.8523C9.00431 11.3942 8.55093 11.7426 8.00108 11.895C7.99908 11.965 7.99908 12.035 8.00108 12.105Z"
15
+ fill="black"
16
+ />
17
+ <path
18
+ d="M13.55 11.7402C13.75 11.8557 13.75 12.1443 13.55 12.2598L11.45 13.4722C11.25 13.5877 11 13.4434 11 13.2124V10.7876C11 10.5566 11.25 10.4123 11.45 10.5278L13.55 11.7402Z"
19
+ fill="black"
20
+ />
21
+ </svg> `}}(0,e.Z)(s,"styles",h.iv`
22
+ :host {
23
+ display: inherit;
24
+ --cdtr-icon-width: 20px;
25
+ --cdtr-icon-height: 20px;
26
+ }
27
+ svg {
28
+ width: var(--cdtr-icon-width);
29
+ height: var(--cdtr-icon-height);
30
+ color: var(--cdtr-icon-color);
31
+ }
32
+ `),(0,e.Z)(s,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-automation-icon",s)}}]);
Binary file