@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 @@
1
+ /*! For license information please see index.js.LICENSE.txt */
Binary file
@@ -0,0 +1,61 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6737],{36737:(t,e,r)=>{r.r(e),r.d(e,{BorderEditor:()=>n});var o=r(56666),d=r(21293),i=r(70235);r(45607);class n extends d.oi{constructor(t){super(),this.theme=i.h.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={onChangeSize:t=>{const e=t.target.value;this.borderWidth=e+"px",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()}}}dispacher(){const t=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){return d.dy`
2
+ <cdtr-editor-container>
3
+ <cdtr-colorpicker-editor
4
+ @change=${this.cmds.onChangeColor}
5
+ .value=${this.color||this.borderColor}
6
+ text="color"
7
+ ></cdtr-colorpicker-editor>
8
+ </cdtr-editor-container>
9
+
10
+ <cdtr-editor-container>
11
+ <cdtr-row>
12
+ <cdtr-title><lang-text text="size"></lang-text></cdtr-title>
13
+ </cdtr-row>
14
+ <cdtr-range-input
15
+ .value="${parseInt(this.borderWidth)||0}"
16
+ @input=${this.cmds.onChangeSize}
17
+ unitColor=${this.theme.primary}
18
+ unit="px"
19
+ max="20"
20
+ min="1"
21
+ ></cdtr-range-input>
22
+ </cdtr-editor-container>
23
+ <cdtr-editor-container>
24
+ <cdtr-row alignItems="center" jusitfyContent="space-between">
25
+ <cdtr-col>
26
+ <cdtr-title><lang-text text="type"></lang-text></cdtr-title>
27
+ <cdtr-col>
28
+ <cdtr-row>
29
+ <cdtr-dropdown
30
+ @change=${t=>this.cmds.onChangeborderStyle(t.target.value)}
31
+ >
32
+ <cdtr-dropdown-button
33
+ minWidth=${100}
34
+ class=" dropdown-button"
35
+ slot="trigger"
36
+ ><lang-text text="${this.borderStyle}"></lang-text>
37
+ </cdtr-dropdown-button>
38
+ <div slot="content">
39
+ ${this.borderTypes.map((t=>d.dy`<cdtr-dropdown-item
40
+ .focused=${t.value===this.borderStyle}
41
+ .selected=${t.value===this.borderStyle}
42
+ value="${t.value}"
43
+ ><lang-text text="${t.value}"></lang-text>
44
+ </cdtr-dropdown-item>`))}
45
+ </div>
46
+ </cdtr-dropdown>
47
+ </cdtr-row>
48
+ </cdtr-col>
49
+ </cdtr-col>
50
+ <cdtr-col sm="3">
51
+ <hr
52
+ style="border-top-color:${this.color};width:60%;margin:10px;margin-top:27px;border-top-width:${this.borderTopWidth}px;border-top-style:${this.borderStyle};"
53
+ />
54
+ </cdtr-col>
55
+ </cdtr-row>
56
+ </cdtr-editor-container>
57
+ `}}(0,o.Z)(n,"styles",d.iv`
58
+ :host {
59
+ direction: var(--direction-locale);
60
+ }
61
+ `),(0,o.Z)(n,"properties",{type:{type:String},color:{type:String},borderColor:{type:String},borderStyle:{type:String},borderWidth:{type:Number}}),customElements.define("cdtr-border-editor",n)}}]);
Binary file
@@ -0,0 +1,21 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6807],{36807:(t,i,e)=>{e.r(i),e.d(i,{AddIcon:()=>r});var h=e(56666),s=e(21293);class r extends s.oi{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return s.dy`<svg
2
+ style="${this.iconStyle}"
3
+ width="${this.width}"
4
+ height="${this.height}"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ viewBox="0 0 24 24"
7
+ >
8
+ <path fill="none" d="M0 0h24v24H0z" />
9
+ <path d="M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z" />
10
+ </svg>`}}(0,h.Z)(r,"styles",s.iv`
11
+ :host {
12
+ display: inherit;
13
+ --cdtr-icon-width: 20px;
14
+ --cdtr-icon-height: 20px;
15
+ }
16
+ svg {
17
+ width: var(--cdtr-icon-width);
18
+ height: var(--cdtr-icon-height);
19
+ color: var(--cdtr-icon-color);
20
+ }
21
+ `),(0,h.Z)(r,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-add-icon",r)}}]);
Binary file
@@ -0,0 +1,23 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6826],{36826:(t,i,e)=>{e.r(i),e.d(i,{LinkIcon:()=>r});var h=e(56666),s=e(21293);class r extends s.oi{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return s.dy`<svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ viewBox="0 0 24 24"
4
+ style="${this.iconStyle}"
5
+ width="${this.width}"
6
+ height="${this.height}"
7
+ >
8
+ <path fill="none" d="M0 0h24v24H0z" />
9
+ <path
10
+ d="M17.657 14.828l-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829l-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"
11
+ />
12
+ </svg>`}}(0,h.Z)(r,"styles",s.iv`
13
+ :host {
14
+ display: inherit;
15
+ --cdtr-icon-width: 20px;
16
+ --cdtr-icon-height: 20px;
17
+ }
18
+ svg {
19
+ width: var(--cdtr-icon-width);
20
+ height: var(--cdtr-icon-height);
21
+ color: var(--cdtr-icon-color);
22
+ }
23
+ `),(0,h.Z)(r,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-link-icon",r)}}]);
Binary file
@@ -0,0 +1,130 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6848],{6848:(t,e,i)=>{i.r(e),i.d(e,{EditorTabItem:()=>c});var n=i(56666),o=i(21293);class c extends o.oi{constructor(){super()}firstUpdated(){super.firstUpdated()}focus(){const t=this.shadowRoot.querySelector("paper-button");t?t.focus():super.focus()}onClickItem(t){this.value=t;const e=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleKeyDown(t){if(console.log("Key pressed:",t.key,"on icon:",this.icon),"Enter"===t.key||" "===t.key)return t.preventDefault(),t.stopPropagation(),void this.onClickItem(this.icon);if("ArrowUp"===t.key||"ArrowDown"===t.key||"ArrowLeft"===t.key||"ArrowRight"===t.key){t.preventDefault(),t.stopPropagation(),console.log("Dispatching arrow navigation event for:",t.key,"current icon:",this.icon);const e=new CustomEvent("arrow-navigation",{detail:{key:t.key,currentIcon:this.icon},bubbles:!0,cancelable:!0});this.dispatchEvent(e)}}factory(){let t=this.selected?"fill: var(--primary);":"";switch(this.icon){case"box-shadow":return i.e(5978).then(i.bind(i,25978)),o.dy`<cdtr-box-shadow-icon
2
+ iconStyle=${t}
3
+ ></cdtr-box-shadow-icon>`;case"design":return i.e(2111).then(i.bind(i,72111)),o.dy`<cdtr-design-icon iconStyle=${t}></cdtr-design-icon>`;case"text":case"typography":return i.e(6577).then(i.bind(i,46577)),o.dy`<cdtr-text-icon iconStyle=${t}></cdtr-text-icon>`;case"animations":return i.e(7576).then(i.bind(i,27576)),o.dy`<cdtr-animation-icon
4
+ iconStyle=${t}
5
+ ></cdtr-animation-icon>`;case"settings":return i.e(6524).then(i.bind(i,54050)),o.dy`<cdtr-setting-icon
6
+ iconStyle=${t}
7
+ ></cdtr-setting-icon>`;case"link":return i.e(6826).then(i.bind(i,36826)),o.dy`<cdtr-link-icon iconStyle=${t}></cdtr-link-icon>`;case"spacing":return i.e(3614).then(i.bind(i,73614)),o.dy`<cdtr-spacing-icon
8
+ iconStyle=${t}
9
+ ></cdtr-spacing-icon>`;case"background":case"image":return i.e(3453).then(i.bind(i,13453)),o.dy`<cdtr-background-icon
10
+ iconStyle=${t}
11
+ ></cdtr-background-icon>`;case"video":return i.e(9394).then(i.bind(i,19394)),o.dy`<cdtr-video-icon iconStyle=${t}></cdtr-video-icon>`;case"list-check":return i.e(1582).then(i.bind(i,61582)),o.dy`<cdtr-list-check-icon
12
+ iconStyle=${t}
13
+ ></cdtr-list-check-icon>`;case"time":return i.e(335).then(i.bind(i,20335)),o.dy`<cdtr-time-icon iconStyle=${t}></cdtr-time-icon>`;case"icons":return o.dy`<cdtr-icon icon="emoji"></cdtr-icon>`;case"list-settings":return i.e(8885).then(i.bind(i,98885)),o.dy`<cdtr-list-settings-icon
14
+ iconStyle=${t}
15
+ ></cdtr-list-settings-icon>`;case"automations":return i.e(9928).then(i.bind(i,69928)),o.dy`<cdtr-automation-icon
16
+ iconStyle=${t}
17
+ ></cdtr-automation-icon>`;case"ai":return o.dy`<svg
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ xmlnsXlink="http://www.w3.org/1999/xlink"
20
+ width="20"
21
+ zoomAndPan="magnify"
22
+ viewBox="0 0 20.25 20.999999"
23
+ height="28"
24
+ preserveAspectRatio="xMidYMid meet"
25
+ version="1.0"
26
+ >
27
+ <defs>
28
+ <clippath id="84a0f9f97b">
29
+ <path
30
+ d="M 0 0.375 L 19.527344 0.375 L 19.527344 19.902344 L 0 19.902344 Z M 0 0.375 "
31
+ clip-rule="nonzero"
32
+ ></path>
33
+ </clippath>
34
+ </defs>
35
+ <g clip-path="url(#84a0f9f97b)">
36
+ <path
37
+ fill="#9747ff"
38
+ d="M 12.316406 0.679688 C 12.160156 0.382812 11.734375 0.382812 11.574219 0.679688 L 11.132812 1.507812 C 11.09375 1.582031 11.035156 1.640625 10.960938 1.679688 L 10.128906 2.117188 C 9.828125 2.277344 9.828125 2.699219 10.128906 2.855469 L 10.960938 3.296875 C 11.035156 3.335938 11.09375 3.394531 11.132812 3.46875 L 11.574219 4.296875 C 11.734375 4.59375 12.160156 4.59375 12.316406 4.296875 L 12.757812 3.46875 C 12.800781 3.394531 12.859375 3.335938 12.933594 3.296875 L 13.765625 2.855469 C 14.0625 2.699219 14.0625 2.277344 13.765625 2.117188 L 12.933594 1.679688 C 12.859375 1.640625 12.800781 1.582031 12.757812 1.507812 Z M 15.167969 16.96875 L 16.875 17.617188 L 16.226562 15.917969 Z M 16.882812 13.496094 L 5.136719 1.816406 C 4.15625 0.839844 2.558594 0.839844 1.574219 1.816406 L 0.984375 2.40625 C 0 3.382812 0 4.96875 0.984375 5.949219 L 12.730469 17.625 C 12.929688 17.824219 13.273438 18.039062 13.542969 18.140625 L 17.152344 19.507812 C 18.167969 19.890625 19.164062 18.902344 18.777344 17.890625 L 17.402344 14.300781 C 17.300781 14.035156 17.085938 13.695312 16.882812 13.496094 Z M 15.316406 14.296875 L 5.730469 4.769531 L 3.953125 6.535156 L 13.535156 16.066406 Z M 3.949219 3 L 4.542969 3.585938 L 2.765625 5.355469 L 2.171875 4.765625 C 1.84375 4.441406 1.84375 3.910156 2.171875 3.585938 L 2.761719 3 C 3.089844 2.671875 3.621094 2.671875 3.949219 3 Z M 4.550781 12.996094 C 4.390625 12.699219 3.964844 12.699219 3.808594 12.996094 L 3 14.503906 C 2.960938 14.578125 2.902344 14.640625 2.828125 14.679688 L 1.308594 15.480469 C 1.011719 15.636719 1.011719 16.058594 1.308594 16.214844 L 2.828125 17.015625 C 2.902344 17.054688 2.960938 17.117188 3 17.191406 L 3.808594 18.699219 C 3.964844 18.996094 4.390625 18.996094 4.550781 18.699219 L 5.355469 17.191406 C 5.394531 17.117188 5.453125 17.054688 5.527344 17.015625 L 7.046875 16.214844 C 7.34375 16.058594 7.34375 15.636719 7.046875 15.480469 L 5.527344 14.679688 C 5.453125 14.640625 5.394531 14.578125 5.355469 14.503906 Z M 17.355469 5.480469 C 17.199219 5.183594 16.773438 5.183594 16.613281 5.480469 L 16.027344 6.582031 C 15.988281 6.65625 15.929688 6.714844 15.855469 6.753906 L 14.746094 7.335938 C 14.449219 7.496094 14.449219 7.917969 14.746094 8.074219 L 15.855469 8.660156 C 15.929688 8.699219 15.988281 8.757812 16.027344 8.832031 L 16.613281 9.933594 C 16.773438 10.230469 17.199219 10.230469 17.355469 9.933594 L 17.945312 8.832031 C 17.984375 8.757812 18.042969 8.699219 18.117188 8.660156 L 19.226562 8.074219 C 19.523438 7.917969 19.523438 7.496094 19.226562 7.335938 L 18.117188 6.753906 C 18.042969 6.714844 17.984375 6.65625 17.945312 6.582031 Z M 17.355469 5.480469 "
39
+ fill-opacity="1"
40
+ fill-rule="evenodd"
41
+ ></path>
42
+ </g>
43
+ </svg>`;default:return null}}render(){return o.dy`
44
+ <paper-button
45
+ data-icon="${this.icon}"
46
+ tabindex="0"
47
+ @keydown=${t=>this.handleKeyDown(t)}
48
+ @click=${()=>this.onClickItem(this.icon)}
49
+ style="outline: none;"
50
+ ><cdtr-row style="position:relative;min-height:40px;" justify="center">
51
+ <cdtr-col sm="12">
52
+ <div
53
+ class="${this.selected?"tab-item selected":"tab-item"}"
54
+ ></div>
55
+ <cdtr-row justify="center"
56
+ ><span style="transform:translateY(50%)" class="factory-item"
57
+ >${this.factory()}</span
58
+ >
59
+ </cdtr-row>
60
+ </cdtr-col>
61
+ <cdtr-col style="margin-top: 7px;" sm="12">
62
+ <cdtr-title
63
+ style="${this.selected?"color:var(--primary)":""}"
64
+ ><lang-text
65
+ style="font-size:10px;"
66
+ class="label-item"
67
+ text="${this.icon}"
68
+ ></lang-text
69
+ ></cdtr-title>
70
+ </cdtr-col> </cdtr-row
71
+ ></paper-button>
72
+ `}}(0,n.Z)(c,"styles",o.iv`
73
+ :host {
74
+ display: flex;
75
+ margin-bottom: 10px;
76
+ }
77
+ paper-button {
78
+ min-width: 0;
79
+ margin: 0;
80
+ width: 100%;
81
+ padding: 0;
82
+ height: 50px;
83
+ }
84
+ .factory-item {
85
+ transition: transform 0.5s ease-in-out;
86
+ }
87
+
88
+ .tab-item {
89
+ padding: 5px 0;
90
+ position: absolute;
91
+ top: 50%;
92
+ left: 50%;
93
+ opacity: 0.1;
94
+ width: 100%;
95
+ height: 40px;
96
+ transform: translate(-50%, -50%);
97
+ }
98
+ .tab-selected:after {
99
+ content: "";
100
+ position: absolute;
101
+ top: 0;
102
+ left: 0;
103
+ width: 1px;
104
+ transform: translateX(-1px);
105
+ height: 100%;
106
+ background: #fff;
107
+ opacity: 1;
108
+ z-index: 1;
109
+ }
110
+ .label-item {
111
+ transform: translateY(-50%);
112
+ }
113
+
114
+ .tab-item:hover {
115
+ background: #9a9a9a;
116
+ }
117
+ .selected {
118
+ background: var(--primary) !important;
119
+ border-top: 1px solid black;
120
+ border-bottom: 1px solid black;
121
+ }
122
+
123
+ cdtr-title {
124
+ text-align: center;
125
+ display: block;
126
+ margin: auto;
127
+ width: 100%;
128
+ }
129
+
130
+ `),(0,n.Z)(c,"properties",{icon:{},labelMode:{},selected:{}}),customElements.define("cdtr-editor-tab-item",c)}}]);
Binary file
@@ -0,0 +1,14 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6883],{46883:(t,e,i)=>{i.r(e),i.d(e,{UploadIcon:()=>r});var s=i(56666),h=i(21293);class r extends h.oi{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.dy`<svg
2
+ stroke="currentColor"
3
+ fill="currentColor"
4
+ stroke-width="0"
5
+ viewBox="0 0 640 512"
6
+ style="${this.iconStyle}"
7
+ width="${this.width}"
8
+ height="${this.height}"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ >
11
+ <path
12
+ d="M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"
13
+ ></path>
14
+ </svg>`}}(0,s.Z)(r,"styles",h.iv``),(0,s.Z)(r,"properties",{iconStyle:{type:String},width:{type:String},height:{type:String}}),customElements.define("cdtr-upload-icon",r)}}]);
Binary file
@@ -0,0 +1,17 @@
1
+ /*! For license information please see 6892.creaditor.bundle.js.LICENSE.txt */
2
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6892],{6892:(e,t,s)=>{s.r(t),s.d(t,{EditorBar:()=>l});var i=s(56666),n=s(21293),r=s(58860),o=s(45607),d=(s(3959),s(49120));class l extends n.oi{constructor(){super(),this.opened=!1,this.offsetY=50,this.offsetX=0,this.reRender=this.reRender.bind(this)}reRender(){if(this.opened&&this.componentId){const e=o.Z.getComponent(this.componentId);if(e&&e.element){const t=e.element.getBoundingClientRect();let s=t.top-this.offsetY;-1!==this.direction.indexOf("left")?this.left=t.left+this.offsetX+"px":this.left=t.left+t.width+"px",this.top=s+"px",-1!==this.direction.indexOf("bottom")&&(this.top=t.top-this.offsetY+t.height+20+"px")}}}render(){return this.opened?(this.style.display=null,this.style.left=this.left,this.style.top=this.top,this.style.zIndex=(0,d.Z)(),this.style.transform=`translate(${-1!==this.direction.indexOf("left")?"0":"100%"},${-1!==this.direction.indexOf("bottom")?"100%":"0"})`,n.dy` <slot></slot>`):(this.style.display="none",null)}disconnectedCallback(){super.disconnectedCallback(),r.Z.unSubscribe("onScroll",this.reRender),o.Z.off("update",this.reRender)}connectedCallback(){super.connectedCallback(),r.Z.subscribe("onScroll",this.reRender),o.Z.on("update",this.reRender),setTimeout((()=>{this.reRender()}),0)}}(0,i.Z)(l,"styles",n.iv`
3
+ :host {
4
+ position: fixed;
5
+ border-radius: 2px;
6
+ box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
7
+ min-height: 40px;
8
+ min-width: 40px;
9
+ background-color: #fff;
10
+ display: flex;
11
+ align-items: center;
12
+ border-radius: 3px;
13
+ transform: translateX(-100%);
14
+ transition: top 10ms ease-in-out, left 0.2s ease-in-out;
15
+ z-index: 2;
16
+ }
17
+ `),(0,i.Z)(l,"properties",{componentId:{type:String},opened:{type:Boolean},left:{type:String},top:{type:String},offsetY:{type:Number},offsetX:{type:Number},direction:{type:String}}),customElements.define("cdtr-editor-bar",l)},3959:(e,t,s)=>{s.d(t,{V:()=>d});var i=s(33692),n=s(50875);const r="important",o=" !"+r,d=(0,n.XM)(class extends n.Xe{constructor(e){if(super(e),e.type!==n.pX.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,s)=>{const i=e[s];return null==i?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(e,[t]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?s.removeProperty(e):s[e]=null);for(const e in t){const i=t[e];if(null!=i){this.ft.add(e);const t="string"==typeof i&&i.endsWith(o);e.includes("-")||t?s.setProperty(e,t?i.slice(0,-11):i,t?r:""):s[e]=i}}return i.Jb}})}}]);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2018 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
Binary file
@@ -0,0 +1,8 @@
1
+ /*! For license information please see 6961.creaditor.bundle.js.LICENSE.txt */
2
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6961],{6961:(t,e,s)=>{s.r(e),s.d(e,{TitleEditor:()=>$t});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 l{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 a=(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)}},c=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new l("string"==typeof t?t:t+"",void 0,r))(e)})(t):t,{is:d,defineProperty:p,getOwnPropertyDescriptor:u,getOwnPropertyNames:$,getOwnPropertySymbols:_,getPrototypeOf:f}=Object,A=globalThis,g=A.trustedTypes,y=g?g.emptyScript:"",m=A.reactiveElementPolyfillSupport,v=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?y: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}},S=(t,e)=>!d(t,e),b={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),A.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=b){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)??b}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(c(t))}else void 0!==t&&e.push(c(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 a(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:E).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:E;this._$Em=i,this[i]=n.fromAttribute(e,t.type)??this._$Ej?.get(i)??null,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??S)(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,m?.({ReactiveElement:w}),(A.reactiveElementVersions??=[]).push("2.1.0");const C=globalThis,x=C.trustedTypes,P=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,H="?"+O,M=`<${H}>`,T=document,N=()=>T.createComment(""),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,D=t=>k(t)||"function"==typeof t?.[Symbol.iterator],L="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,B=/>/g,I=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),W=/'/g,q=/"/g,V=/^(?:script|style|textarea|title)$/i,Z=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),F=Z(1),J=(Z(2),Z(3),Symbol.for("lit-noChange")),K=Symbol.for("lit-nothing"),G=new WeakMap,Q=T.createTreeWalker(T,129);function X(t,e){if(!k(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=j;for(let e=0;e<s;e++){const s=t[e];let h,l,a=-1,c=0;for(;c<s.length&&(r.lastIndex=c,l=r.exec(s),null!==l);)c=r.lastIndex,r===j?"!--"===l[1]?r=z:void 0!==l[1]?r=B:void 0!==l[2]?(V.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=I):void 0!==l[3]&&(r=I):r===I?">"===l[0]?(r=n??j,a=-1):void 0===l[1]?a=-2:(a=r.lastIndex-l[2].length,h=l[1],r=void 0===l[3]?I:'"'===l[3]?q:W):r===q||r===W?r=I:r===z||r===B?r=j:(r=I,n=void 0);const d=r===I&&t[e+1].startsWith("/>")?" ":"";o+=r===j?s+M:a>=0?(i.push(h),s.slice(0,a)+U+s.slice(a)+O+d):s+O+(-2===a?e:d)}return[X(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,[l,a]=Y(t,e);if(this.el=tt.createElement(l,s),Q.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Q.nextNode())&&h.length<r;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(U)){const e=a[o++],s=i.getAttribute(t).split(O),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(O)&&(h.push({type:6,index:n}),i.removeAttribute(t));if(V.test(i.tagName)){const t=i.textContent.split(O),e=t.length-1;if(e>0){i.textContent=x?x.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],N()),Q.nextNode(),h.push({type:2,index:++n});i.append(t[e],N())}}}else if(8===i.nodeType)if(i.data===H)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(O,t+1));)h.push({type:7,index:n}),t+=O.length-1}n++}}static createElement(t,e){const s=T.createElement("template");return s.innerHTML=t,s}}function et(t,e,s=t,i){if(e===J)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const o=R(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??T).importNode(e,!0);Q.currentNode=i;let n=Q.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 lt(n,this,t)),this._$AV.push(e),h=s[++r]}o!==h?.index&&(n=Q.nextNode(),o++)}return Q.currentNode=T,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=K,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),R(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):D(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!==K&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.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(X(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=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new tt(t)),e}k(t){k(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(N()),this.O(N()),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&&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=K,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=K}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(void 0===n)t=et(this,t,e,0),o=!R(t)||t!==this._$AH&&t!==J,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===J&&(h=this._$AH[r]),o||=!R(h)||h!==this._$AH[r],h===K?t=K:t!==K&&(t+=(h??"")+n[r+1]),this._$AH[r]=h}o&&!i&&this.j(t)}j(t){t===K?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===K?void 0:t}}class rt extends nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}}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)??K)===J)return;const s=this._$AH,i=t===K&&s!==K||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==K&&(s===K||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 lt{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 at=C.litHtmlPolyfillSupport;at?.(tt,it),(C.litHtmlVersions??=[]).push("3.3.0");const ct=globalThis;class dt 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(N(),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 J}}dt._$litElement$=!0,dt.finalized=!0,ct.litElementHydrateSupport?.({LitElement:dt});const pt=ct.litElementPolyfillSupport;pt?.({LitElement:dt});(ct.litElementVersions??=[]).push("4.2.0");var ut=s(70235);class $t extends dt{constructor(){super(),this.text="",this.whiteSpace="pre"}connectedCallback(){super.connectedCallback(),this.style.fontFamily="var(--font-family)",this.bold&&(this.style.fontWeight="bold")}render(){const t=ut.h.get("theme");t&&(this.style.direction=t.direction,this.style.textAlign=this.textAlign||t.textAlign);const e=ut.h.get("lang",this.text);return F`<slot
3
+ ><span
4
+ style="-webkit-font-smoothing: antialiased;
5
+ display:inline-block;direction:var(--direction-locale);text-align:var(--text-align-locale);white-space:${this.whiteSpace}"
6
+ >${e||this.text}</span
7
+ ></slot
8
+ >`}}(0,i.Z)($t,"properties",{text:{type:String,reflect:!1},whiteSpace:{type:String},textAlign:{type:String},bold:{type:Boolean}}),customElements.get("lang-text")||customElements.define("lang-text",$t)}}]);
@@ -0,0 +1,11 @@
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
+ */
Binary file
@@ -0,0 +1,162 @@
1
+ /*! For license information please see 6964.creaditor.bundle.js.LICENSE.txt */
2
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6964],{6964:(t,e,s)=>{s.r(e),s.d(e,{default:()=>St});var i=Object.defineProperty,n=(t,e,s)=>((t,e,s)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s)(t,"symbol"!=typeof e?e+"":e,s);const o=globalThis,r=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),h=new WeakMap;let a=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==l)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(r&&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 d=function(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];const n=1===t.length?t[0]:s.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(n,t,l)},c=r?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,l))(e)})(t):t,{is:u,defineProperty:p,getOwnPropertyDescriptor:f,getOwnPropertyNames:$,getOwnPropertySymbols:v,getPrototypeOf:g}=Object,m=globalThis,_=m.trustedTypes,y=_?_.emptyScript:"",b=m.reactiveElementPolyfillSupport,A=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?y: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{s=null}}return s}},E=(t,e)=>!u(t,e),x={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:E};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);let C=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x;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}=f(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=null==i?void 0:i.call(this);null==n||n.call(this,e),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(A("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(A("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(A("properties"))){const t=this.properties,e=[...$(t),...v(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(c(t))}else void 0!==t&&e.push(c(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(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(e=t.hostConnected)||e.call(t))}removeController(t){var e;null==(e=this._$EO)||e.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((t,e)=>{if(r)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),i=o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=s.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var s;const i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(void 0!==n&&!0===i.reflect){const o=(void 0!==(null==(s=i.converter)?void 0:s.toAttribute)?i.converter:w).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var s,i;const n=this.constructor,o=n._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=n.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(s=t.converter)?void 0:s.fromAttribute)?t.converter:w;this._$Em=o;const l=r.fromAttribute(e,t.type);this[o]=l??(null==(i=this._$Ej)?void 0:i.get(o))??l,this._$Em=null}}requestUpdate(t,e,s){var i;if(void 0!==t){const n=this.constructor,o=this[t];if(s??(s=n.getPropertyOptions(t)),!((s.hasChanged??E)(o,e)||s.useDefault&&s.reflect&&o===(null==(i=this._$Ej)?void 0:i.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,s,i){let{useDefault:n,reflect:o,wrapped:r}=s;n&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,i??e??this[t]),!0!==r||void 0!==i)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??(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(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(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 e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(s)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),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=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[A("elementProperties")]=new Map,C[A("finalized")]=new Map,null==b||b({ReactiveElement:C}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.1.1");const S=globalThis,k=S.trustedTypes,P=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,R="$lit$",T=`lit$${Math.random().toFixed(9).slice(2)}$`,U="?"+T,N=`<${U}>`,O=document,H=()=>O.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,z="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,L=/>/g,j=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),W=/'/g,G=/"/g,V=/^(?:script|style|textarea|title)$/i,q=(Z=1,function(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];return{_$litType$:Z,strings:t,values:s}}),K=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),J=new WeakMap,Q=O.createTreeWalker(O,129);var Z;function X(t,e){if(!I(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(e):e}class Y{constructor(t,e){let s,{strings:i,_$litType$:n}=t;this.parts=[];let o=0,r=0;const l=i.length-1,h=this.parts,[a,d]=((t,e)=>{const s=t.length-1,i=[];let n,o=2===e?"<svg>":3===e?"<math>":"",r=B;for(let e=0;e<s;e++){const s=t[e];let l,h,a=-1,d=0;for(;d<s.length&&(r.lastIndex=d,h=r.exec(s),null!==h);)d=r.lastIndex,r===B?"!--"===h[1]?r=D:void 0!==h[1]?r=L:void 0!==h[2]?(V.test(h[2])&&(n=RegExp("</"+h[2],"g")),r=j):void 0!==h[3]&&(r=j):r===j?">"===h[0]?(r=n??B,a=-1):void 0===h[1]?a=-2:(a=r.lastIndex-h[2].length,l=h[1],r=void 0===h[3]?j:'"'===h[3]?G:W):r===G||r===W?r=j:r===D||r===L?r=B:(r=j,n=void 0);const c=r===j&&t[e+1].startsWith("/>")?" ":"";o+=r===B?s+N:a>=0?(i.push(l),s.slice(0,a)+R+s.slice(a)+T+c):s+T+(-2===a?e:c)}return[X(t,o+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]})(i,n);if(this.el=Y.createElement(a,e),Q.currentNode=this.el.content,2===n||3===n){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=Q.nextNode())&&h.length<l;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(R)){const e=d[r++],i=s.getAttribute(t).split(T),n=/([.?@])?(.*)/.exec(e);h.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?nt:"?"===n[1]?ot:"@"===n[1]?rt:it}),s.removeAttribute(t)}else t.startsWith(T)&&(h.push({type:6,index:o}),s.removeAttribute(t));if(V.test(s.tagName)){const t=s.textContent.split(T),e=t.length-1;if(e>0){s.textContent=k?k.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],H()),Q.nextNode(),h.push({type:2,index:++o});s.append(t[e],H())}}}else if(8===s.nodeType)if(s.data===U)h.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(T,t+1));)h.push({type:7,index:o}),t+=T.length-1}o++}}static createElement(t,e){const s=O.createElement("template");return s.innerHTML=t,s}}function tt(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3?arguments[3]:void 0;var n,o;if(e===K)return e;let r=void 0!==i?null==(n=s._$Co)?void 0:n[i]:s._$Cl;const l=M(e)?void 0:e._$litDirective$;return(null==r?void 0:r.constructor)!==l&&(null==(o=null==r?void 0:r._$AO)||o.call(r,!1),void 0===l?r=void 0:(r=new l(t),r._$AT(t,s,i)),void 0!==i?(s._$Co??(s._$Co=[]))[i]=r:s._$Cl=r),void 0!==r&&(e=tt(t,r._$AS(t,e.values),r,i)),e}class et{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=((null==t?void 0:t.creationScope)??O).importNode(e,!0);Q.currentNode=i;let n=Q.nextNode(),o=0,r=0,l=s[0];for(;void 0!==l;){if(o===l.index){let e;2===l.type?e=new st(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new lt(n,this,t)),this._$AV.push(e),l=s[++r]}o!==(null==l?void 0:l.index)&&(n=Q.nextNode(),o++)}return Q.currentNode=O,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 st{get _$AU(){var t;return(null==(t=this._$AM)?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(null==i?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t){t=tt(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),M(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==K&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>I(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(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!==F&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=Y.createElement(X(i.h,i.h[0]),this.options)),i);if((null==(e=this._$AH)?void 0:e._$AD)===n)this._$AH.p(s);else{const t=new et(n,this),e=t.u(this.options);t.p(s),this.T(e),this._$AH=t}}_$AC(t){let e=J.get(t.strings);return void 0===e&&J.set(t.strings,e=new Y(t)),e}k(t){I(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 st(this.O(H()),this.O(H()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,e=arguments.length>1?arguments[1]:void 0;var s;for(null==(s=this._$AP)||s.call(this,!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class it{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=F,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=F}_$AI(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,s=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;const n=this.strings;let o=!1;if(void 0===n)t=tt(this,t,e,0),o=!M(t)||t!==this._$AH&&t!==K,o&&(this._$AH=t);else{const i=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=tt(this,i[s+r],e,r),l===K&&(l=this._$AH[r]),o||(o=!M(l)||l!==this._$AH[r]),l===F?t=F:t!==F&&(t+=(l??"")+n[r+1]),this._$AH[r]=l}o&&!i&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class nt extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}class ot extends it{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==F)}}class rt extends it{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t){if((t=tt(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0)??F)===K)return;const e=this._$AH,s=t===F&&e!==F||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==F&&(e===F||s);s&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;"function"==typeof this._$AH?this._$AH.call((null==(e=this.options)?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class lt{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){tt(this,t)}}const ht=S.litHtmlPolyfillSupport;null==ht||ht(Y,st),(S.litHtmlVersions??(S.litHtmlVersions=[])).push("3.3.1");const at=globalThis;let dt=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const i=(null==s?void 0:s.renderBefore)??e;let n=i._$litPart$;if(void 0===n){const t=(null==s?void 0:s.renderBefore)??null;i._$litPart$=n=new st(e.insertBefore(H(),t),t,void 0,s??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return K}};var ct;dt._$litElement$=!0,dt.finalized=!0,null==(ct=at.litElementHydrateSupport)||ct.call(at,{LitElement:dt});const ut=at.litElementPolyfillSupport;null==ut||ut({LitElement:dt}),(at.litElementVersions??(at.litElementVersions=[])).push("4.2.1");const pt=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 $t=(t,e)=>{var s;const i=t._$AN;if(void 0===i)return!1;for(const t of i)null==(s=t._$AO)||s.call(t,e,!1),$t(t,e);return!0},vt=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===(null==s?void 0:s.size))},gt=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),yt(e)}};function mt(t){void 0!==this._$AN?(vt(this),this._$AM=t,gt(this)):this._$AM=t}function _t(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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++)$t(i[t],!1),vt(i[t]);else null!=i&&($t(i,!1),vt(i));else $t(this,t)}const yt=t=>{t.type==pt&&(t._$AP??(t._$AP=_t),t._$AQ??(t._$AQ=mt))};class bt extends ft{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),gt(this),this.isConnected=t._$AU}_$AO(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var s,i;t!==this.isConnected&&(this.isConnected=t,t?null==(s=this.reconnected)||s.call(this):null==(i=this.disconnected)||i.call(this)),e&&($t(this,t),vt(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 At{}const wt=new WeakMap,Et=(t=>function(){for(var e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];return{_$litDirective$:t,values:s}})(class extends bt{render(t){return F}update(t,e){let[s]=e;var i;const n=s!==this.G;return n&&void 0!==this.G&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=s,this.ht=null==(i=t.options)?void 0:i.host,this.rt(this.ct=t.element)),F}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(){var t,e;return"function"==typeof this.G?null==(t=wt.get(this.ht??globalThis))?void 0:t.get(this.G):null==(e=this.G)?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});let xt=1500;function Ct(){return xt++}class St extends dt{constructor(){super(),n(this,"contentRef",new At),this.toggle=this.toggle.bind(this),this.onEnter=this.onEnter.bind(this),this.onKeydown=this.onKeydown.bind(this),this.overflow=!0,this.maxHeight=300,this.left=0,this.top=0,this.custom=!1,this.opened=!1}close(){this.toggle()}onBouncing(t){this.searchText=t.target.value;const e=new UIEvent("search",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}render(){return q`
3
+ <slot @click=${()=>this.toggle()} tabindex="0" name="trigger"></slot>
4
+ ${this.opened?q` <div
5
+ @mouseup=${this.onClickOutside}
6
+ class="backdrop"
7
+ style="z-index:${Ct()};"
8
+ >
9
+ <div
10
+ ${Et(this.contentRef)}
11
+ @mouseup=${this.preventClosing}
12
+ style="z-index:${Ct()};left:${this.left}px;top:${this.top}px;"
13
+ class="dropdown-content fade-in ${this.custom?"":"dropdown-background"}"
14
+ >
15
+ ${this.search?q`<cdtr-input
16
+ @input=${this.onBouncing}
17
+ type="search"
18
+ value=${this.searchText}
19
+ ></cdtr-input>`:null}
20
+ <slot name="content"></slot>
21
+ </div>
22
+ </div>`:null}
23
+ `}preventClosing(t){return t.stopPropagation(),setTimeout((()=>{this.calcRects()}),0),!1}onClickOutside(){this.toggle(!1)}updated(){var t;this.opened&&(setTimeout((()=>{this.calcRects()}),0),null==(t=this.contentRef.value)||t.classList.add("fade-in"),this.contentRef.value.style.maxHeight=`${this.maxHeight}px`)}calcRects(){var t,e;let s=0,i=0;const n=this.getBoundingClientRect(),o=null==(e=null==(t=this.contentRef)?void 0:t.value)?void 0:e.getBoundingClientRect();o&&(s=n.left,i=n.top,s<0&&(s=0),i<0&&(i=0),s+o.width>window.innerWidth&&(s=window.innerWidth-o.width),i+o.height>window.innerHeight&&(i=window.innerHeight-o.height),this.left=s,this.top=i,this.contentRef.value.style.left=`${n.left}px`,this.contentRef.value.style.top=`${i+n.height}px`,this.contentRef.value.style.overflow=this.overflow?"hidden auto":"hidden")}toggle(){var t;const e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]||!this.opened;e?(window.removeEventListener("keydown",this.onKeydown),window.addEventListener("keydown",this.onKeydown),this.opened=e,setTimeout((()=>{const t=this.focusedItem=this.querySelector("cdtr-dropdown-item[focused]")||this.querySelector("cdtr-dropdown-item");t&&t.focus()}),20)):(window.removeEventListener("keydown",this.onKeydown),null==(t=this.contentRef.value)||t.classList.add("fade-out"),setTimeout((()=>{this.opened=e}),150)),this.setAttribute("aria-expanded",e)}onEnter(t){t.target===this&&13===t.keyCode&&this.toggle()}onKeydown(t){this.focusedItem&&40===t.keyCode&&this.focusedItem.nextElementSibling&&"CDTR-DROPDOWN-ITEM"===this.focusedItem.nextElementSibling.nodeName?(this.focusedItem=this.focusedItem.nextElementSibling,this.focusedItem&&this.focusedItem.focus()):this.focusedItem&&38===t.keyCode&&this.focusedItem.previousElementSibling&&"CDTR-DROPDOWN-ITEM"===this.focusedItem.previousElementSibling.nodeName?(this.focusedItem=this.focusedItem.previousElementSibling,this.focusedItem&&this.focusedItem.focus()):27===t.keyCode&&this.toggle();const e=new UIEvent("keypress",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("tabindex","0"),this.setAttribute("aria-disabled","false"),this.setAttribute("aria-haspopup","true"),this.setAttribute("aria-expanded",this.opened),this.addEventListener("keydown",this.onEnter),setTimeout((()=>{this.opened&&this.toggle(!0)}),50)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this.onKeydown)}patch(t){this.value=t,this.toggle(!1);const e=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e),setTimeout((()=>{this.focus()}),0)}}n(St,"styles",d`
24
+ :host {
25
+ display: inline-block;
26
+ overflow: hidden;
27
+ box-sizing: border-box;
28
+ }
29
+
30
+ .backdrop {
31
+ position: fixed;
32
+ top: 0;
33
+ left: 0;
34
+ width: 100%;
35
+ height: 100%;
36
+ background: transparent;
37
+ overflow: hidden;
38
+ }
39
+ .dropdown-background {
40
+ background: #fff;
41
+ }
42
+ .dropdown-content {
43
+ box-sizing: border-box;
44
+ min-width: 50px;
45
+ min-height: 50;
46
+ position: fixed;
47
+ border-radius: 0.25rem;
48
+ /* padding: 3px; */
49
+ box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
50
+ transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
51
+ }
52
+ .fade-in {
53
+ animation: fade-in 0.3s;
54
+ }
55
+ .fade-out {
56
+ animation: fade-out 0.3s;
57
+ opacity: 0;
58
+ }
59
+ @keyframes fade-in {
60
+ from {
61
+ opacity: 0;
62
+ margin-top: 5px;
63
+ }
64
+ to {
65
+ opacity: 1;
66
+ }
67
+ }
68
+ @keyframes fade-out {
69
+ from {
70
+ opacity: 1;
71
+ }
72
+ to {
73
+ margin-top: 5px;
74
+ opacity: 0;
75
+ }
76
+ }
77
+ `),n(St,"properties",{search:{type:Boolean},searchText:{type:String},left:{type:Number},top:{type:Number},opened:{type:Boolean},maxHeight:{type:Number},overflow:{type:Boolean},value:{type:String},custom:{type:String}});class kt extends dt{constructor(){super(),this.minWidth=50}render(){return q`<paper-button style="min-width:${this.minWidth}px"
78
+ ><slot></slot> <cdtr-dd-arrow-icon></cdtr-dd-arrow-icon
79
+ ></paper-button>`}}n(kt,"properties",{minWidth:{type:Number}}),n(kt,"styles",d`
80
+ paper-button {
81
+ display: flex;
82
+ justify-content: space-between;
83
+ text-transform: capitalize;
84
+ width: 100%;
85
+ font-size: 14px;
86
+ font-weight: 400;
87
+ line-height: 1.5;
88
+ color: rgb(33, 37, 41);
89
+ background: rgb(255, 255, 255);
90
+ background-clip: padding-box;
91
+ border-width: 1px;
92
+ border-style: solid;
93
+ border-image: initial;
94
+ appearance: none;
95
+ border-radius: 0.25rem;
96
+ transition: border-color 0.15s ease-in-out 0s,
97
+ box-shadow 0.15s ease-in-out 0s;
98
+ margin: 0px;
99
+ font-family: var(--font-family);
100
+ border-color: var(--input-border-color);
101
+ box-sizing: border-box;
102
+ padding: 5px;
103
+ font-size: 12px;
104
+ }
105
+ paper-button:hover {
106
+ border-color: black;
107
+ }
108
+ `);class Pt extends dt{constructor(){super(),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}focus(){this.shadowRoot.querySelector(".dropdown-item").focus()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}onClick(t){if(this.notClickable)return;const e=this.closest("cdtr-dropdown");e&&e.patch(this.value,t,this)}onPress(t){if(13===t.keyCode){const e=new UIEvent("click",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e);const s=this.closest("cdtr-dropdown");s&&s.patch(this.value,t,this)}}connectedCallback(){super.connectedCallback(),this.selected&&this.scrollIntoView({behavior:"smooth",block:"start"})}render(){return q`<div role="button"
109
+ @click=${this.onClick}
110
+ @keydown=${this.onPress}
111
+ @blur=${this.onBlur}
112
+ @focus=${this.onFocus}
113
+ class="dropdown-item"
114
+ tabindex="0"
115
+ >
116
+ ${this.selected?q` <svg
117
+ class="selected-svg"
118
+ fill="var(--primary)"
119
+ xmlns="http://www.w3.org/2000/svg"
120
+ viewBox="0 0 24 24"
121
+ width="24"
122
+ height="24"
123
+ >
124
+ <path fill="none" d="M0 0h24v24H0z" />
125
+ <path
126
+ d="M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z"
127
+ />
128
+ </svg>`:null}
129
+ <slot></slot>
130
+ </div>`}}n(Pt,"properties",{focused:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},value:{type:String,reflect:!0},notClickable:{type:Boolean}}),n(Pt,"styles",d`
131
+ .dropdown-item {
132
+ position: relative;
133
+ box-sizing: border-box;
134
+ display: flex;
135
+ font-family: Arial, Helvetica, sans-serif;
136
+ font-size: 12px;
137
+ cursor: pointer;
138
+ margin-bottom: 2px;
139
+ display: flex;
140
+ align-items: center;
141
+ user-select: none;
142
+ width: 100%;
143
+ justify-content: space-between;
144
+ box-sizing: border-box;
145
+ padding: 10px 20px;
146
+ }
147
+ .dropdown-item:hover {
148
+ background: #f3f3f396;
149
+ }
150
+ .dropdown-item:focus {
151
+ color: var(--primary-color);
152
+ outline: none;
153
+ background: #f3f3f3;
154
+ }
155
+ .selected-svg {
156
+ width: 16px;
157
+ position: absolute;
158
+ left: 95%;
159
+ transform: translate(-70%, -50%);
160
+ top: 50%;
161
+ }
162
+ `),customElements.get("cdtr-dropdown-item")||customElements.define("cdtr-dropdown-item",Pt),customElements.get("cdtr-dropdown-button")||customElements.define("cdtr-dropdown-button",kt),customElements.get("cdtr-dropdown")||customElements.define("cdtr-dropdown",St)}}]);
@@ -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