@creaditor/web-starterkit 1.0.67 → 1.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (495) hide show
  1. package/dist/{8854.creaditor.bundle.js → 1023.creaditor.bundle.js} +1 -1
  2. package/dist/1023.creaditor.bundle.js.gz +0 -0
  3. package/dist/{9041.creaditor.bundle.js → 115.creaditor.bundle.js} +1 -1
  4. package/dist/115.creaditor.bundle.js.gz +0 -0
  5. package/dist/{2963.creaditor.bundle.js → 118.creaditor.bundle.js} +1 -1
  6. package/dist/118.creaditor.bundle.js.gz +0 -0
  7. package/dist/{8042.creaditor.bundle.js → 128.creaditor.bundle.js} +1 -1
  8. package/dist/128.creaditor.bundle.js.gz +0 -0
  9. package/dist/1292.creaditor.bundle.js +1 -0
  10. package/dist/1292.creaditor.bundle.js.gz +0 -0
  11. package/dist/{8916.creaditor.bundle.js → 1294.creaditor.bundle.js} +1 -1
  12. package/dist/1294.creaditor.bundle.js.gz +0 -0
  13. package/dist/1317.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  14. package/dist/1317.creaditor.bundle.js.gz +0 -0
  15. package/dist/{2154.creaditor.bundle.js → 1336.creaditor.bundle.js} +1 -1
  16. package/dist/1336.creaditor.bundle.js.gz +0 -0
  17. package/dist/{2350.creaditor.bundle.js → 1355.creaditor.bundle.js} +1 -1
  18. package/dist/1355.creaditor.bundle.js.gz +0 -0
  19. package/dist/{3553.creaditor.bundle.js → 1364.creaditor.bundle.js} +1 -1
  20. package/dist/1364.creaditor.bundle.js.gz +0 -0
  21. package/dist/1381.creaditor.bundle.js +1 -0
  22. package/dist/1381.creaditor.bundle.js.gz +0 -0
  23. package/dist/1396.creaditor.bundle.js.gz +0 -0
  24. package/dist/{271.creaditor.bundle.js → 1397.creaditor.bundle.js} +1 -1
  25. package/dist/1397.creaditor.bundle.js.gz +0 -0
  26. package/dist/{5411.creaditor.bundle.js → 1426.creaditor.bundle.js} +1 -1
  27. package/dist/1426.creaditor.bundle.js.gz +0 -0
  28. package/dist/145.creaditor.bundle.js +6 -0
  29. package/dist/145.creaditor.bundle.js.gz +0 -0
  30. package/dist/{112.creaditor.bundle.js → 1450.creaditor.bundle.js} +1 -1
  31. package/dist/1450.creaditor.bundle.js.gz +0 -0
  32. package/dist/{6151.creaditor.bundle.js → 1606.creaditor.bundle.js} +1 -1
  33. package/dist/1606.creaditor.bundle.js.gz +0 -0
  34. package/dist/166.creaditor.bundle.js +34 -0
  35. package/dist/166.creaditor.bundle.js.gz +0 -0
  36. package/dist/168.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  37. package/dist/168.creaditor.bundle.js.gz +0 -0
  38. package/dist/{767.creaditor.bundle.js → 1691.creaditor.bundle.js} +1 -1
  39. package/dist/1691.creaditor.bundle.js.gz +0 -0
  40. package/dist/{3521.creaditor.bundle.js → 1694.creaditor.bundle.js} +2 -2
  41. package/dist/1694.creaditor.bundle.js.gz +0 -0
  42. package/dist/182.creaditor.bundle.js +12 -0
  43. package/dist/182.creaditor.bundle.js.gz +0 -0
  44. package/dist/{3827.creaditor.bundle.js → 1970.creaditor.bundle.js} +1 -1
  45. package/dist/1970.creaditor.bundle.js.gz +0 -0
  46. package/dist/{2234.creaditor.bundle.js → 2079.creaditor.bundle.js} +1 -1
  47. package/dist/2079.creaditor.bundle.js.gz +0 -0
  48. package/dist/{175.creaditor.bundle.js → 2194.creaditor.bundle.js} +1 -1
  49. package/dist/2194.creaditor.bundle.js.gz +0 -0
  50. package/dist/{2397.creaditor.bundle.js → 2218.creaditor.bundle.js} +1 -1
  51. package/dist/2218.creaditor.bundle.js.gz +0 -0
  52. package/dist/{8646.creaditor.bundle.js → 2232.creaditor.bundle.js} +1 -1
  53. package/dist/2232.creaditor.bundle.js.gz +0 -0
  54. package/dist/{5839.creaditor.bundle.js → 2260.creaditor.bundle.js} +1 -1
  55. package/dist/2260.creaditor.bundle.js.gz +0 -0
  56. package/dist/{7466.creaditor.bundle.js → 2268.creaditor.bundle.js} +1 -1
  57. package/dist/2268.creaditor.bundle.js.gz +0 -0
  58. package/dist/{7493.creaditor.bundle.js → 2318.creaditor.bundle.js} +1 -1
  59. package/dist/2318.creaditor.bundle.js.gz +0 -0
  60. package/dist/{353.creaditor.bundle.js → 2346.creaditor.bundle.js} +1 -1
  61. package/dist/2346.creaditor.bundle.js.gz +0 -0
  62. package/dist/235.creaditor.bundle.js.gz +0 -0
  63. package/dist/{4413.creaditor.bundle.js → 2358.creaditor.bundle.js} +1 -1
  64. package/dist/2358.creaditor.bundle.js.gz +0 -0
  65. package/dist/2377.creaditor.bundle.js +86 -57
  66. package/dist/2377.creaditor.bundle.js.gz +0 -0
  67. package/dist/{3971.creaditor.bundle.js → 2422.creaditor.bundle.js} +1 -1
  68. package/dist/2422.creaditor.bundle.js.gz +0 -0
  69. package/dist/2550.creaditor.bundle.js.gz +0 -0
  70. package/dist/{6442.creaditor.bundle.js → 2608.creaditor.bundle.js} +1 -1
  71. package/dist/2608.creaditor.bundle.js.gz +0 -0
  72. package/dist/{2956.creaditor.bundle.js → 27.creaditor.bundle.js} +1 -1
  73. package/dist/27.creaditor.bundle.js.gz +0 -0
  74. package/dist/2706.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  75. package/dist/2706.creaditor.bundle.js.gz +0 -0
  76. package/dist/2717.creaditor.bundle.js.gz +0 -0
  77. package/dist/2837.creaditor.bundle.js +1 -1
  78. package/dist/2837.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  79. package/dist/2837.creaditor.bundle.js.gz +0 -0
  80. package/dist/{976.creaditor.bundle.js → 2923.creaditor.bundle.js} +1 -1
  81. package/dist/2923.creaditor.bundle.js.gz +0 -0
  82. package/dist/{2655.creaditor.bundle.js → 2924.creaditor.bundle.js} +2 -2
  83. package/dist/2924.creaditor.bundle.js.gz +0 -0
  84. package/dist/{2547.creaditor.bundle.js → 2960.creaditor.bundle.js} +1 -1
  85. package/dist/2960.creaditor.bundle.js.gz +0 -0
  86. package/dist/{8196.creaditor.bundle.js → 2992.creaditor.bundle.js} +1 -1
  87. package/dist/2992.creaditor.bundle.js.gz +0 -0
  88. package/dist/3105.creaditor.bundle.js.gz +0 -0
  89. package/dist/{7155.creaditor.bundle.js → 3126.creaditor.bundle.js} +1 -1
  90. package/dist/3126.creaditor.bundle.js.gz +0 -0
  91. package/dist/3252.creaditor.bundle.js +1 -0
  92. package/dist/3252.creaditor.bundle.js.gz +0 -0
  93. package/dist/3274.creaditor.bundle.js +1 -0
  94. package/dist/3274.creaditor.bundle.js.gz +0 -0
  95. package/dist/3278.creaditor.bundle.js +87 -0
  96. package/dist/3278.creaditor.bundle.js.gz +0 -0
  97. package/dist/333.creaditor.bundle.js +1 -0
  98. package/dist/333.creaditor.bundle.js.gz +0 -0
  99. package/dist/{8251.creaditor.bundle.js → 3382.creaditor.bundle.js} +1 -1
  100. package/dist/3382.creaditor.bundle.js.gz +0 -0
  101. package/dist/{4114.creaditor.bundle.js → 3445.creaditor.bundle.js} +1 -1
  102. package/dist/3445.creaditor.bundle.js.gz +0 -0
  103. package/dist/3462.creaditor.bundle.js +288 -0
  104. package/dist/3462.creaditor.bundle.js.gz +0 -0
  105. package/dist/{8878.creaditor.bundle.js → 3515.creaditor.bundle.js} +1 -1
  106. package/dist/3515.creaditor.bundle.js.gz +0 -0
  107. package/dist/{5133.creaditor.bundle.js → 3535.creaditor.bundle.js} +1 -1
  108. package/dist/3535.creaditor.bundle.js.gz +0 -0
  109. package/dist/3545.creaditor.bundle.js +1 -1
  110. package/dist/3545.creaditor.bundle.js.gz +0 -0
  111. package/dist/{5666.creaditor.bundle.js → 3559.creaditor.bundle.js} +1 -1
  112. package/dist/3559.creaditor.bundle.js.gz +0 -0
  113. package/dist/{8299.creaditor.bundle.js → 3693.creaditor.bundle.js} +3 -3
  114. package/dist/3693.creaditor.bundle.js.gz +0 -0
  115. package/dist/{5391.creaditor.bundle.js → 370.creaditor.bundle.js} +1 -1
  116. package/dist/370.creaditor.bundle.js.gz +0 -0
  117. package/dist/{9453.creaditor.bundle.js → 38.creaditor.bundle.js} +1 -1
  118. package/dist/38.creaditor.bundle.js.gz +0 -0
  119. package/dist/{4100.creaditor.bundle.js → 3837.creaditor.bundle.js} +1 -1
  120. package/dist/3837.creaditor.bundle.js.gz +0 -0
  121. package/dist/{638.creaditor.bundle.js → 3972.creaditor.bundle.js} +1 -1
  122. package/dist/3972.creaditor.bundle.js.gz +0 -0
  123. package/dist/{1271.creaditor.bundle.js → 4003.creaditor.bundle.js} +1 -1
  124. package/dist/4003.creaditor.bundle.js.gz +0 -0
  125. package/dist/{5713.creaditor.bundle.js → 4038.creaditor.bundle.js} +2 -2
  126. package/dist/4038.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  127. package/dist/4038.creaditor.bundle.js.gz +0 -0
  128. package/dist/4109.creaditor.bundle.js.gz +0 -0
  129. package/dist/{5849.creaditor.bundle.js → 4206.creaditor.bundle.js} +1 -1
  130. package/dist/4206.creaditor.bundle.js.gz +0 -0
  131. package/dist/{1456.creaditor.bundle.js → 4257.creaditor.bundle.js} +1 -1
  132. package/dist/4257.creaditor.bundle.js.gz +0 -0
  133. package/dist/4323.creaditor.bundle.js +1 -0
  134. package/dist/4323.creaditor.bundle.js.gz +0 -0
  135. package/dist/{4161.creaditor.bundle.js → 4432.creaditor.bundle.js} +1 -1
  136. package/dist/4432.creaditor.bundle.js.gz +0 -0
  137. package/dist/4536.creaditor.bundle.js +1 -0
  138. package/dist/4536.creaditor.bundle.js.gz +0 -0
  139. package/dist/{8443.creaditor.bundle.js → 4637.creaditor.bundle.js} +1 -1
  140. package/dist/4637.creaditor.bundle.js.gz +0 -0
  141. package/dist/{8315.creaditor.bundle.js → 4678.creaditor.bundle.js} +1 -1
  142. package/dist/4678.creaditor.bundle.js.gz +0 -0
  143. package/dist/{6751.creaditor.bundle.js → 4684.creaditor.bundle.js} +1 -1
  144. package/dist/4684.creaditor.bundle.js.gz +0 -0
  145. package/dist/{8064.creaditor.bundle.js → 4801.creaditor.bundle.js} +1 -1
  146. package/dist/4801.creaditor.bundle.js.gz +0 -0
  147. package/dist/{7838.creaditor.bundle.js → 487.creaditor.bundle.js} +1 -1
  148. package/dist/487.creaditor.bundle.js.gz +0 -0
  149. package/dist/4987.creaditor.bundle.js.gz +0 -0
  150. package/dist/{170.creaditor.bundle.js → 4999.creaditor.bundle.js} +1 -1
  151. package/dist/4999.creaditor.bundle.js.gz +0 -0
  152. package/dist/{4061.creaditor.bundle.js → 5121.creaditor.bundle.js} +1 -1
  153. package/dist/5121.creaditor.bundle.js.gz +0 -0
  154. package/dist/{4475.creaditor.bundle.js → 5150.creaditor.bundle.js} +1 -1
  155. package/dist/5150.creaditor.bundle.js.gz +0 -0
  156. package/dist/{9250.creaditor.bundle.js → 5189.creaditor.bundle.js} +1 -1
  157. package/dist/5189.creaditor.bundle.js.gz +0 -0
  158. package/dist/{5501.creaditor.bundle.js → 5211.creaditor.bundle.js} +1 -1
  159. package/dist/5211.creaditor.bundle.js.gz +0 -0
  160. package/dist/5242.creaditor.bundle.js +162 -0
  161. package/dist/5242.creaditor.bundle.js.LICENSE.txt +17 -0
  162. package/dist/5242.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  163. package/dist/5242.creaditor.bundle.js.gz +0 -0
  164. package/dist/{2384.creaditor.bundle.js → 5259.creaditor.bundle.js} +1 -1
  165. package/dist/5259.creaditor.bundle.js.gz +0 -0
  166. package/dist/5284.creaditor.bundle.js.gz +0 -0
  167. package/dist/{7348.creaditor.bundle.js → 5328.creaditor.bundle.js} +11 -11
  168. package/dist/5328.creaditor.bundle.js.gz +0 -0
  169. package/dist/{1334.creaditor.bundle.js → 5473.creaditor.bundle.js} +1 -1
  170. package/dist/5473.creaditor.bundle.js.gz +0 -0
  171. package/dist/{1728.creaditor.bundle.js → 5541.creaditor.bundle.js} +2 -2
  172. package/dist/5541.creaditor.bundle.js.gz +0 -0
  173. package/dist/566.creaditor.bundle.js +20 -0
  174. package/dist/566.creaditor.bundle.js.gz +0 -0
  175. package/dist/567.creaditor.bundle.js +109 -539
  176. package/dist/567.creaditor.bundle.js.gz +0 -0
  177. package/dist/{7209.creaditor.bundle.js → 5728.creaditor.bundle.js} +26 -7
  178. package/dist/5728.creaditor.bundle.js.gz +0 -0
  179. package/dist/574.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  180. package/dist/574.creaditor.bundle.js.gz +0 -0
  181. package/dist/5780.creaditor.bundle.js +142 -0
  182. package/dist/5780.creaditor.bundle.js.LICENSE.txt +11 -0
  183. package/dist/5780.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  184. package/dist/5780.creaditor.bundle.js.gz +0 -0
  185. package/dist/579.creaditor.bundle.js +1 -0
  186. package/dist/579.creaditor.bundle.js.gz +0 -0
  187. package/dist/{5926.creaditor.bundle.js → 58.creaditor.bundle.js} +2 -2
  188. package/dist/58.creaditor.bundle.js.gz +0 -0
  189. package/dist/59.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  190. package/dist/59.creaditor.bundle.js.gz +0 -0
  191. package/dist/{6323.creaditor.bundle.js → 5978.creaditor.bundle.js} +7 -7
  192. package/dist/5978.creaditor.bundle.js.gz +0 -0
  193. package/dist/{407.creaditor.bundle.js → 60.creaditor.bundle.js} +1 -1
  194. package/dist/60.creaditor.bundle.js.gz +0 -0
  195. package/dist/{4186.creaditor.bundle.js → 6004.creaditor.bundle.js} +3 -3
  196. package/dist/6004.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  197. package/dist/6004.creaditor.bundle.js.gz +0 -0
  198. package/dist/6022.creaditor.bundle.js +335 -0
  199. package/dist/6022.creaditor.bundle.js.LICENSE.txt +11 -0
  200. package/dist/6022.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  201. package/dist/6022.creaditor.bundle.js.gz +0 -0
  202. package/dist/{3606.creaditor.bundle.js → 6024.creaditor.bundle.js} +1 -1
  203. package/dist/6024.creaditor.bundle.js.gz +0 -0
  204. package/dist/6036.creaditor.bundle.js +6 -32
  205. package/dist/6036.creaditor.bundle.js.gz +0 -0
  206. package/dist/{7654.creaditor.bundle.js → 6038.creaditor.bundle.js} +47 -13
  207. package/dist/6038.creaditor.bundle.js.LICENSE.txt +5 -0
  208. package/dist/6038.creaditor.bundle.js.gz +0 -0
  209. package/dist/{3847.creaditor.bundle.js → 6051.creaditor.bundle.js} +4 -4
  210. package/dist/6051.creaditor.bundle.js.gz +0 -0
  211. package/dist/{4762.creaditor.bundle.js → 6077.creaditor.bundle.js} +1 -1
  212. package/dist/6077.creaditor.bundle.js.gz +0 -0
  213. package/dist/{100.creaditor.bundle.js → 6182.creaditor.bundle.js} +5 -5
  214. package/dist/6182.creaditor.bundle.js.gz +0 -0
  215. package/dist/{9694.creaditor.bundle.js → 6205.creaditor.bundle.js} +1 -1
  216. package/dist/6205.creaditor.bundle.js.gz +0 -0
  217. package/dist/6216.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  218. package/dist/6216.creaditor.bundle.js.gz +0 -0
  219. package/dist/6339.creaditor.bundle.js +16 -0
  220. package/dist/6339.creaditor.bundle.js.gz +0 -0
  221. package/dist/{4639.creaditor.bundle.js → 6343.creaditor.bundle.js} +1 -1
  222. package/dist/6343.creaditor.bundle.js.gz +0 -0
  223. package/dist/{453.creaditor.bundle.js → 6412.creaditor.bundle.js} +1 -1
  224. package/dist/6412.creaditor.bundle.js.gz +0 -0
  225. package/dist/{380.creaditor.bundle.js → 6482.creaditor.bundle.js} +1 -1
  226. package/dist/6482.creaditor.bundle.js.gz +0 -0
  227. package/dist/6545.creaditor.bundle.js +15 -0
  228. package/dist/6545.creaditor.bundle.js.gz +0 -0
  229. package/dist/{2112.creaditor.bundle.js → 6565.creaditor.bundle.js} +1 -1
  230. package/dist/6565.creaditor.bundle.js.gz +0 -0
  231. package/dist/{2409.creaditor.bundle.js → 6579.creaditor.bundle.js} +1 -1
  232. package/dist/6579.creaditor.bundle.js.gz +0 -0
  233. package/dist/685.creaditor.bundle.js +12 -0
  234. package/dist/685.creaditor.bundle.js.gz +0 -0
  235. package/dist/{9386.creaditor.bundle.js → 6977.creaditor.bundle.js} +1 -1
  236. package/dist/6977.creaditor.bundle.js.gz +0 -0
  237. package/dist/7055.creaditor.bundle.js.gz +0 -0
  238. package/dist/{5850.creaditor.bundle.js → 707.creaditor.bundle.js} +1 -1
  239. package/dist/707.creaditor.bundle.js.gz +0 -0
  240. package/dist/{4770.creaditor.bundle.js → 7127.creaditor.bundle.js} +1 -1
  241. package/dist/7127.creaditor.bundle.js.gz +0 -0
  242. package/dist/7255.creaditor.bundle.js +1 -11
  243. package/dist/7255.creaditor.bundle.js.gz +0 -0
  244. package/dist/{8921.creaditor.bundle.js → 7326.creaditor.bundle.js} +1 -1
  245. package/dist/7326.creaditor.bundle.js.gz +0 -0
  246. package/dist/{4074.creaditor.bundle.js → 7399.creaditor.bundle.js} +1 -1
  247. package/dist/7399.creaditor.bundle.js.gz +0 -0
  248. package/dist/7463.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  249. package/dist/7463.creaditor.bundle.js.gz +0 -0
  250. package/dist/{4947.creaditor.bundle.js → 7514.creaditor.bundle.js} +1 -1
  251. package/dist/7514.creaditor.bundle.js.gz +0 -0
  252. package/dist/{9431.creaditor.bundle.js → 7573.creaditor.bundle.js} +1 -1
  253. package/dist/7573.creaditor.bundle.js.gz +0 -0
  254. package/dist/{4288.creaditor.bundle.js → 7630.creaditor.bundle.js} +1 -1
  255. package/dist/7630.creaditor.bundle.js.gz +0 -0
  256. package/dist/{7380.creaditor.bundle.js → 7733.creaditor.bundle.js} +1 -1
  257. package/dist/7733.creaditor.bundle.js.gz +0 -0
  258. package/dist/{578.creaditor.bundle.js → 7739.creaditor.bundle.js} +1 -1
  259. package/dist/7739.creaditor.bundle.js.gz +0 -0
  260. package/dist/7789.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  261. package/dist/7789.creaditor.bundle.js.gz +0 -0
  262. package/dist/{2833.creaditor.bundle.js → 8128.creaditor.bundle.js} +1 -1
  263. package/dist/8128.creaditor.bundle.js.gz +0 -0
  264. package/dist/8142.creaditor.bundle.js +11 -0
  265. package/dist/8142.creaditor.bundle.js.gz +0 -0
  266. package/dist/8173.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  267. package/dist/8173.creaditor.bundle.js.gz +0 -0
  268. package/dist/8230.creaditor.bundle.js +1 -0
  269. package/dist/8230.creaditor.bundle.js.gz +0 -0
  270. package/dist/{653.creaditor.bundle.js → 8260.creaditor.bundle.js} +1 -1
  271. package/dist/8260.creaditor.bundle.js.gz +0 -0
  272. package/dist/{9570.creaditor.bundle.js → 83.creaditor.bundle.js} +1 -1
  273. package/dist/83.creaditor.bundle.js.gz +0 -0
  274. package/dist/{752.creaditor.bundle.js → 8498.creaditor.bundle.js} +1 -1
  275. package/dist/8498.creaditor.bundle.js.gz +0 -0
  276. package/dist/{9986.creaditor.bundle.js → 8531.creaditor.bundle.js} +1 -1
  277. package/dist/8531.creaditor.bundle.js.gz +0 -0
  278. package/dist/8533.creaditor.bundle.js.gz +0 -0
  279. package/dist/{6496.creaditor.bundle.js → 8586.creaditor.bundle.js} +1 -1
  280. package/dist/8586.creaditor.bundle.js.gz +0 -0
  281. package/dist/{975.creaditor.bundle.js → 8696.creaditor.bundle.js} +1 -1
  282. package/dist/8696.creaditor.bundle.js.gz +0 -0
  283. package/dist/{738.creaditor.bundle.js → 8861.creaditor.bundle.js} +1 -1
  284. package/dist/8861.creaditor.bundle.js.gz +0 -0
  285. package/dist/{4615.creaditor.bundle.js → 8918.creaditor.bundle.js} +1 -1
  286. package/dist/8918.creaditor.bundle.js.gz +0 -0
  287. package/dist/{5379.creaditor.bundle.js → 8960.creaditor.bundle.js} +1 -1
  288. package/dist/8960.creaditor.bundle.js.gz +0 -0
  289. package/dist/898.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  290. package/dist/898.creaditor.bundle.js.gz +0 -0
  291. package/dist/8994.creaditor.bundle.js +544 -0
  292. package/dist/8994.creaditor.bundle.js.gz +0 -0
  293. package/dist/{9990.creaditor.bundle.js → 9028.creaditor.bundle.js} +1 -1
  294. package/dist/9028.creaditor.bundle.js.gz +0 -0
  295. package/dist/{5530.creaditor.bundle.js → 9069.creaditor.bundle.js} +1 -1
  296. package/dist/9069.creaditor.bundle.js.gz +0 -0
  297. package/dist/{7997.creaditor.bundle.js → 9082.creaditor.bundle.js} +1 -1
  298. package/dist/9082.creaditor.bundle.js.gz +0 -0
  299. package/dist/{6814.creaditor.bundle.js → 9136.creaditor.bundle.js} +1 -1
  300. package/dist/9136.creaditor.bundle.js.gz +0 -0
  301. package/dist/9158.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  302. package/dist/9158.creaditor.bundle.js.gz +0 -0
  303. package/dist/{1403.creaditor.bundle.js → 9384.creaditor.bundle.js} +1 -1
  304. package/dist/9384.creaditor.bundle.js.gz +0 -0
  305. package/dist/{8654.creaditor.bundle.js → 9468.creaditor.bundle.js} +1 -1
  306. package/dist/9468.creaditor.bundle.js.gz +0 -0
  307. package/dist/{8570.creaditor.bundle.js → 9672.creaditor.bundle.js} +1 -1
  308. package/dist/9672.creaditor.bundle.js.gz +0 -0
  309. package/dist/9700.creaditor.bundle.js +64 -0
  310. package/dist/9700.creaditor.bundle.js.gz +0 -0
  311. package/dist/{467.creaditor.bundle.js → 9786.creaditor.bundle.js} +1 -1
  312. package/dist/9786.creaditor.bundle.js.gz +0 -0
  313. package/dist/{8983.creaditor.bundle.js → 9791.creaditor.bundle.js} +1 -1
  314. package/dist/9791.creaditor.bundle.js.gz +0 -0
  315. package/dist/9823.creaditor.bundle.js +6 -0
  316. package/dist/9823.creaditor.bundle.js.gz +0 -0
  317. package/dist/993.creaditor.bundle.js +1 -0
  318. package/dist/993.creaditor.bundle.js.gz +0 -0
  319. package/dist/{7238.creaditor.bundle.js → 9931.creaditor.bundle.js} +1 -1
  320. package/dist/9931.creaditor.bundle.js.gz +0 -0
  321. package/dist/{7523.creaditor.bundle.js → 9976.creaditor.bundle.js} +1 -1
  322. package/dist/9976.creaditor.bundle.js.gz +0 -0
  323. package/dist/{2773.creaditor.bundle.js → 9998.creaditor.bundle.js} +1 -1
  324. package/dist/9998.creaditor.bundle.js.gz +0 -0
  325. package/dist/creaditor.bundle.js +342 -342
  326. package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
  327. package/dist/creaditor.bundle.js.gz +0 -0
  328. package/dist/index.html.gz +0 -0
  329. package/dist/service-worker.js +1 -1
  330. package/dist/service-worker.js.gz +0 -0
  331. package/dist/workbox-f3063069.js.gz +0 -0
  332. package/package.json +1 -1
  333. package/dist/100.creaditor.bundle.js.gz +0 -0
  334. package/dist/112.creaditor.bundle.js.gz +0 -0
  335. package/dist/1271.creaditor.bundle.js.gz +0 -0
  336. package/dist/1334.creaditor.bundle.js.gz +0 -0
  337. package/dist/1403.creaditor.bundle.js.gz +0 -0
  338. package/dist/1456.creaditor.bundle.js.gz +0 -0
  339. package/dist/1529.creaditor.bundle.js +0 -16
  340. package/dist/1529.creaditor.bundle.js.gz +0 -0
  341. package/dist/170.creaditor.bundle.js.gz +0 -0
  342. package/dist/1728.creaditor.bundle.js.gz +0 -0
  343. package/dist/175.creaditor.bundle.js.gz +0 -0
  344. package/dist/1972.creaditor.bundle.js +0 -12
  345. package/dist/1972.creaditor.bundle.js.gz +0 -0
  346. package/dist/211.creaditor.bundle.js +0 -1
  347. package/dist/211.creaditor.bundle.js.gz +0 -0
  348. package/dist/2112.creaditor.bundle.js.gz +0 -0
  349. package/dist/2154.creaditor.bundle.js.gz +0 -0
  350. package/dist/2234.creaditor.bundle.js.gz +0 -0
  351. package/dist/2298.creaditor.bundle.js +0 -1
  352. package/dist/2298.creaditor.bundle.js.gz +0 -0
  353. package/dist/2350.creaditor.bundle.js.gz +0 -0
  354. package/dist/2384.creaditor.bundle.js.gz +0 -0
  355. package/dist/2397.creaditor.bundle.js.gz +0 -0
  356. package/dist/2409.creaditor.bundle.js.gz +0 -0
  357. package/dist/2547.creaditor.bundle.js.gz +0 -0
  358. package/dist/2590.creaditor.bundle.js +0 -6
  359. package/dist/2590.creaditor.bundle.js.gz +0 -0
  360. package/dist/2655.creaditor.bundle.js.gz +0 -0
  361. package/dist/271.creaditor.bundle.js.gz +0 -0
  362. package/dist/2765.creaditor.bundle.js +0 -1
  363. package/dist/2765.creaditor.bundle.js.gz +0 -0
  364. package/dist/2773.creaditor.bundle.js.gz +0 -0
  365. package/dist/2833.creaditor.bundle.js.gz +0 -0
  366. package/dist/2956.creaditor.bundle.js.gz +0 -0
  367. package/dist/2963.creaditor.bundle.js.gz +0 -0
  368. package/dist/3233.creaditor.bundle.js +0 -12
  369. package/dist/3233.creaditor.bundle.js.gz +0 -0
  370. package/dist/3418.creaditor.bundle.js +0 -1
  371. package/dist/3418.creaditor.bundle.js.gz +0 -0
  372. package/dist/3521.creaditor.bundle.js.gz +0 -0
  373. package/dist/353.creaditor.bundle.js.gz +0 -0
  374. package/dist/3553.creaditor.bundle.js.gz +0 -0
  375. package/dist/3600.creaditor.bundle.js +0 -1
  376. package/dist/3600.creaditor.bundle.js.gz +0 -0
  377. package/dist/3601.creaditor.bundle.js +0 -288
  378. package/dist/3601.creaditor.bundle.js.gz +0 -0
  379. package/dist/3606.creaditor.bundle.js.gz +0 -0
  380. package/dist/3792.creaditor.bundle.js +0 -1
  381. package/dist/3792.creaditor.bundle.js.gz +0 -0
  382. package/dist/380.creaditor.bundle.js.gz +0 -0
  383. package/dist/3827.creaditor.bundle.js.gz +0 -0
  384. package/dist/3847.creaditor.bundle.js.gz +0 -0
  385. package/dist/3875.creaditor.bundle.js +0 -8
  386. package/dist/3875.creaditor.bundle.js.gz +0 -0
  387. package/dist/3971.creaditor.bundle.js.gz +0 -0
  388. package/dist/4000.creaditor.bundle.js +0 -1
  389. package/dist/4000.creaditor.bundle.js.gz +0 -0
  390. package/dist/4061.creaditor.bundle.js.gz +0 -0
  391. package/dist/407.creaditor.bundle.js.gz +0 -0
  392. package/dist/4074.creaditor.bundle.js.gz +0 -0
  393. package/dist/4100.creaditor.bundle.js.gz +0 -0
  394. package/dist/4114.creaditor.bundle.js.gz +0 -0
  395. package/dist/4161.creaditor.bundle.js.gz +0 -0
  396. package/dist/4186.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  397. package/dist/4186.creaditor.bundle.js.gz +0 -0
  398. package/dist/4288.creaditor.bundle.js.gz +0 -0
  399. package/dist/4413.creaditor.bundle.js.gz +0 -0
  400. package/dist/4475.creaditor.bundle.js.gz +0 -0
  401. package/dist/453.creaditor.bundle.js.gz +0 -0
  402. package/dist/4615.creaditor.bundle.js.gz +0 -0
  403. package/dist/4639.creaditor.bundle.js.gz +0 -0
  404. package/dist/467.creaditor.bundle.js.gz +0 -0
  405. package/dist/4762.creaditor.bundle.js.gz +0 -0
  406. package/dist/4770.creaditor.bundle.js.gz +0 -0
  407. package/dist/4947.creaditor.bundle.js.gz +0 -0
  408. package/dist/4988.creaditor.bundle.js +0 -6
  409. package/dist/4988.creaditor.bundle.js.gz +0 -0
  410. package/dist/507.creaditor.bundle.js +0 -334
  411. package/dist/507.creaditor.bundle.js.gz +0 -0
  412. package/dist/5133.creaditor.bundle.js.gz +0 -0
  413. package/dist/5156.creaditor.bundle.js +0 -93
  414. package/dist/5156.creaditor.bundle.js.gz +0 -0
  415. package/dist/5379.creaditor.bundle.js.gz +0 -0
  416. package/dist/5391.creaditor.bundle.js.gz +0 -0
  417. package/dist/5411.creaditor.bundle.js.gz +0 -0
  418. package/dist/5501.creaditor.bundle.js.gz +0 -0
  419. package/dist/5530.creaditor.bundle.js.gz +0 -0
  420. package/dist/5666.creaditor.bundle.js.gz +0 -0
  421. package/dist/5713.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  422. package/dist/5713.creaditor.bundle.js.gz +0 -0
  423. package/dist/578.creaditor.bundle.js.gz +0 -0
  424. package/dist/5839.creaditor.bundle.js.gz +0 -0
  425. package/dist/5849.creaditor.bundle.js.gz +0 -0
  426. package/dist/5850.creaditor.bundle.js.gz +0 -0
  427. package/dist/5926.creaditor.bundle.js.gz +0 -0
  428. package/dist/6151.creaditor.bundle.js.gz +0 -0
  429. package/dist/6323.creaditor.bundle.js.gz +0 -0
  430. package/dist/638.creaditor.bundle.js.gz +0 -0
  431. package/dist/6442.creaditor.bundle.js.gz +0 -0
  432. package/dist/6496.creaditor.bundle.js.gz +0 -0
  433. package/dist/653.creaditor.bundle.js.gz +0 -0
  434. package/dist/6751.creaditor.bundle.js.gz +0 -0
  435. package/dist/6814.creaditor.bundle.js.gz +0 -0
  436. package/dist/6937.creaditor.bundle.js +0 -1
  437. package/dist/6937.creaditor.bundle.js.gz +0 -0
  438. package/dist/7155.creaditor.bundle.js.gz +0 -0
  439. package/dist/7209.creaditor.bundle.js.gz +0 -0
  440. package/dist/7238.creaditor.bundle.js.gz +0 -0
  441. package/dist/7348.creaditor.bundle.js.gz +0 -0
  442. package/dist/738.creaditor.bundle.js.gz +0 -0
  443. package/dist/7380.creaditor.bundle.js.gz +0 -0
  444. package/dist/7466.creaditor.bundle.js.gz +0 -0
  445. package/dist/7493.creaditor.bundle.js.gz +0 -0
  446. package/dist/752.creaditor.bundle.js.gz +0 -0
  447. package/dist/7523.creaditor.bundle.js.gz +0 -0
  448. package/dist/7564.creaditor.bundle.js +0 -1
  449. package/dist/7564.creaditor.bundle.js.gz +0 -0
  450. package/dist/7654.creaditor.bundle.js.gz +0 -0
  451. package/dist/767.creaditor.bundle.js.gz +0 -0
  452. package/dist/7838.creaditor.bundle.js.gz +0 -0
  453. package/dist/7997.creaditor.bundle.js.gz +0 -0
  454. package/dist/8042.creaditor.bundle.js.gz +0 -0
  455. package/dist/8064.creaditor.bundle.js.gz +0 -0
  456. package/dist/8088.creaditor.bundle.js +0 -141
  457. package/dist/8088.creaditor.bundle.js.gz +0 -0
  458. package/dist/8141.creaditor.bundle.js +0 -20
  459. package/dist/8141.creaditor.bundle.js.gz +0 -0
  460. package/dist/8196.creaditor.bundle.js.gz +0 -0
  461. package/dist/823.creaditor.bundle.js +0 -1
  462. package/dist/823.creaditor.bundle.js.gz +0 -0
  463. package/dist/8250.creaditor.bundle.js +0 -1
  464. package/dist/8250.creaditor.bundle.js.gz +0 -0
  465. package/dist/8251.creaditor.bundle.js.gz +0 -0
  466. package/dist/8299.creaditor.bundle.js.gz +0 -0
  467. package/dist/8315.creaditor.bundle.js.gz +0 -0
  468. package/dist/8443.creaditor.bundle.js.gz +0 -0
  469. package/dist/8516.creaditor.bundle.js +0 -15
  470. package/dist/8516.creaditor.bundle.js.gz +0 -0
  471. package/dist/8570.creaditor.bundle.js.gz +0 -0
  472. package/dist/8646.creaditor.bundle.js.gz +0 -0
  473. package/dist/8654.creaditor.bundle.js.gz +0 -0
  474. package/dist/8758.creaditor.bundle.js +0 -1
  475. package/dist/8758.creaditor.bundle.js.gz +0 -0
  476. package/dist/8854.creaditor.bundle.js.gz +0 -0
  477. package/dist/8878.creaditor.bundle.js.gz +0 -0
  478. package/dist/8916.creaditor.bundle.js.gz +0 -0
  479. package/dist/8921.creaditor.bundle.js.gz +0 -0
  480. package/dist/8983.creaditor.bundle.js.gz +0 -0
  481. package/dist/9041.creaditor.bundle.js.gz +0 -0
  482. package/dist/9250.creaditor.bundle.js.gz +0 -0
  483. package/dist/9386.creaditor.bundle.js.gz +0 -0
  484. package/dist/9431.creaditor.bundle.js.gz +0 -0
  485. package/dist/9453.creaditor.bundle.js.gz +0 -0
  486. package/dist/9570.creaditor.bundle.js.gz +0 -0
  487. package/dist/9694.creaditor.bundle.js.gz +0 -0
  488. package/dist/975.creaditor.bundle.js.gz +0 -0
  489. package/dist/976.creaditor.bundle.js.gz +0 -0
  490. package/dist/9986.creaditor.bundle.js.gz +0 -0
  491. package/dist/9990.creaditor.bundle.js.gz +0 -0
  492. package/dist/9994.creaditor.bundle.js +0 -114
  493. package/dist/9994.creaditor.bundle.js.gz +0 -0
  494. /package/dist/{4186.creaditor.bundle.js.LICENSE.txt → 4038.creaditor.bundle.js.LICENSE.txt} +0 -0
  495. /package/dist/{5713.creaditor.bundle.js.LICENSE.txt → 6004.creaditor.bundle.js.LICENSE.txt} +0 -0
@@ -1,544 +1,114 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[567],{70567(e,t,s){s.r(t),s.d(t,{TextPromptEditor:()=>b});var n,i,o=s(86959),a=s(86319),r=s(59929),l=s(49410);const c="/api/text-color",p=()=>{try{const e=a.M.get("app","_id");return"string"==typeof e&&e.length>0?e:null}catch(e){return null}},d="#111827",h="#ffffff",g=e=>{const t=/^#?([0-9a-f]{6})$/i.exec((e||"").trim());if(!t)return null;const s=parseInt(t[1],16);return{r:s>>16&255,g:s>>8&255,b:255&s}},m=e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},u=e=>{let{r:t,g:s,b:n}=e;return.2126*m(t)+.7152*m(s)+.0722*m(n)},f=(e,t)=>{const s=g(e),n=g(t);if(!s||!n)return 1;const i=u(s),o=u(n);return(Math.max(i,o)+.05)/(Math.min(i,o)+.05)},_=(e,t,s)=>e&&f(e,t)>=s?e:f(d,t)>=f(h,t)?d:h,x={en:{title:"Edit with AI",placeholder:"Tell me how to change this text…",send:"Send",thinking:"Working…",keepLength:"Keep length",editingSelection:"Selection",editingElement:"Whole text",error:"Something went wrong. Please try again.",empty:"Ask me to improve, shorten, or rewrite this text.",roleHeading:"Headings",roleBody:"Body",colorize:"Colorize",colorizing:"Picking colors…",colorizeDone:"Applied on-brand colors.",actions:{improve:"Improve",shorten:"Shorten",lengthen:"Lengthen",grammar:"Fix grammar",tone:"Warmer tone"},prompts:{improve:"Improve this text — make it clearer and more compelling. Keep the meaning.",shorten:"Make this shorter and more concise, without losing the key point.",lengthen:"Expand this with a little more detail and flow.",grammar:"Fix any spelling and grammar mistakes. Keep the wording and meaning.",tone:"Make the tone warmer and friendlier."}},he:{title:"עריכה עם AI",placeholder:"כתבו לי איך לשנות את הטקסט…",send:"שליחה",thinking:"עובד…",keepLength:"שמור על האורך",editingSelection:"קטע מסומן",editingElement:"כל הטקסט",error:"משהו השתבש. נסו שוב.",empty:"בקשו ממני לשפר, לקצר או לנסח מחדש את הטקסט.",roleHeading:"כותרות",roleBody:"טקסט",colorize:"צביעה חכמה",colorizing:"בוחר צבעים…",colorizeDone:"הוחלו צבעים בהתאמה למותג.",actions:{improve:"שיפור",shorten:"קיצור",lengthen:"הרחבה",grammar:"תיקון שגיאות",tone:"טון חם יותר"},prompts:{improve:"שפר את הטקסט הזה — שיהיה ברור ומשכנע יותר, בלי לשנות את המשמעות.",shorten:"קצר את הטקסט הזה ותהפוך אותו לתמציתי יותר, בלי לאבד את העיקר.",lengthen:"הרחב את הטקסט הזה עם עוד קצת פירוט וזרימה.",grammar:"תקן שגיאות כתיב ודקדוק. שמור על הניסוח והמשמעות.",tone:"הפוך את הטון לחם וידידותי יותר."}}};let b=(0,l.EM)("cdtr-text-prompt-editor")(((i=class extends r.WF{constructor(){super(),this.commands=null,this.elementId=null,this._messages=[],this._input="",this._busy=!1,this._colorizing=!1,this._scope="element",this._error="",this._keepLength=!1,this._lang="he",this._selPreview="",this._streamingIdx=null}connectedCallback(){super.connectedCallback();const e=a.M.get("config","language"),t=this.commands&&this.commands.getText&&this.commands.getText()||"";this._lang="he"===e||"en"===e?e:t?/[\u0590-\u05FF]/.test(t||"")?"he":"en":"rtl"===document?.documentElement?.dir?"he":"en",this._scope=this._currentScope(),this._selPreview=this._readSelPreview(),this._onSelChange=()=>{const e=this._currentScope();e!==this._scope&&(this._scope=e);const t=this._readSelPreview();t!==this._selPreview&&(this._selPreview=t)},this.commands?.onSelectionChange&&(this._unsubSel=this.commands.onSelectionChange(this._onSelChange)),document.addEventListener("selectionchange",this._onSelChange),setTimeout(()=>{const e=this.renderRoot?.querySelector(".composer-input");e&&e.focus()},50),this._hydrate()}async _hydrate(){const e=p();if(!e||!this.elementId)return;const t=await this._resolveToken(!1);if(!t)return;const s=`${o.XW.studio_url}/api/datastore/sessions/by-doc?doc_id=${encodeURIComponent(e)}&surface=text-element&element_id=${encodeURIComponent(this.elementId)}`;try{const e=await fetch(s,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${t}`}});if(!e.ok)return;const n=await e.json(),i=Array.isArray(n?.messages)?n.messages:[];if(0===i.length)return;if(this._messages.length>0||this._busy)return;this._messages=i.filter(e=>e&&("user"===e.role||"assistant"===e.role)).map(e=>({role:e.role,content:e.content})).filter(e=>"string"==typeof e.content&&e.content.length>0)}catch(e){}}disconnectedCallback(){super.disconnectedCallback(),this._unsubSel&&(this._unsubSel(),this._unsubSel=null),this._onSelChange&&(document.removeEventListener("selectionchange",this._onSelChange),this._onSelChange=null)}get t(){const e=x[this._lang]||x.en,t=e=>{const t=a.M.get("lang",e);return"string"==typeof t&&t?t:void 0};return{title:t("text_ai_title")??e.title,placeholder:t("text_ai_placeholder")??e.placeholder,send:t("text_ai_send")??e.send,thinking:t("text_ai_thinking")??e.thinking,keepLength:t("text_ai_keep_length")??e.keepLength,editingSelection:t("text_ai_scope_selection")??e.editingSelection,editingElement:t("text_ai_scope_element")??e.editingElement,error:t("text_ai_error")??e.error,empty:t("text_ai_empty")??e.empty,roleHeading:t("text_ai_role_heading")??e.roleHeading,roleBody:t("text_ai_role_body")??e.roleBody,colorize:t("text_ai_action_colorize")??e.colorize,colorizing:t("text_ai_colorizing")??e.colorizing,colorizeDone:t("text_ai_colorize_done")??e.colorizeDone,actions:{improve:t("text_ai_action_improve")??e.actions.improve,shorten:t("text_ai_action_shorten")??e.actions.shorten,lengthen:t("text_ai_action_lengthen")??e.actions.lengthen,grammar:t("text_ai_action_grammar")??e.actions.grammar,tone:t("text_ai_action_tone")??e.actions.tone},prompts:{improve:t("text_ai_prompt_improve")??e.prompts.improve,shorten:t("text_ai_prompt_shorten")??e.prompts.shorten,lengthen:t("text_ai_prompt_lengthen")??e.prompts.lengthen,grammar:t("text_ai_prompt_grammar")??e.prompts.grammar,tone:t("text_ai_prompt_tone")??e.prompts.tone}}}_currentScope(){const e=this.commands;return e&&e.hasSelection&&e.hasSelection()?"selection":"element"}_readSelPreview(){const e=this.commands;if(!e||!e.hasSelection||!e.hasSelection())return"";const t=e.getSelectionText&&e.getSelectionText()||"";return this._truncateMiddle(t.replace(/\s+/g," ").trim(),96)}_truncateMiddle(e,t){if(e.length<=t)return e;const s=Math.ceil(.6*(t-1)),n=t-1-s;return`${e.slice(0,s)}…${e.slice(e.length-n)}`}_dismissSelection(){const e=this.commands,t=e&&e.getSelectionRange&&e.getSelectionRange();t&&e.setSelectionRange&&e.setSelectionRange(t.to,t.to),this._scope="element",this._selPreview=""}_onInput(e){this._input=e.target.value}_onKeydown(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),this._send(this._input))}_quickAction(e){this._send(this.t.prompts[e])}_toggleKeepLength(e){this._keepLength=!!e.target.checked}async _send(e){const t=(e||"").trim();if(!t||this._busy||!this.commands)return;const s=this._currentScope();this._scope=s;const n="selection"===s?this.commands.getSelectionHTML?.()??this.commands.getSelectionText():this.commands.getHTML?.()??this.commands.getText(),i="heading"===(this.commands.getBlockType?.()||{}).type?"title":"paragraph";this._messages=[...this._messages,{role:"user",content:t}],this._input="",this._error="",this._busy=!0;const o=this._messages.filter(e=>"user"===e.role||"assistant"===e.role).map(e=>({role:e.role,content:(e.content||"").slice(0,8e3)})).filter(e=>e.content.length>0),a=p(),r={messages:o,text:(n||"").slice(0,4e4),scope:s,format:"html",contentType:i,keepLength:this._keepLength,language:this._lang,...a?{doc_id:a}:{},...a&&this.elementId?{element_id:this.elementId}:{}};try{await this._runStream(r,s)}catch(e){console.error("[text-chat] turn failed:",e),this._error=this.t.error,this._messages=[...this._messages,{role:"error",content:this.t.error}]}finally{this._busy=!1,this._streamingIdx=null,this._scope=this._currentScope(),this._selPreview=this._readSelPreview()}}async _resolveToken(e){const t=a.M.get("resolveStudioToken");if("function"!=typeof t)return console.warn("[text-chat] no resolveStudioToken on store; request will likely 401."),null;try{return await t({forceRefresh:!!e})}catch(e){return console.warn("[text-chat] token resolution failed:",e),null}}async _postTo(e,t,s,n){const i=await this._resolveToken(s),a={"Content-Type":"application/json",Accept:n||"application/json"};return i&&(a.Authorization=`Bearer ${i}`),fetch(o.XW.studio_url+e,{method:"POST",headers:a,body:JSON.stringify(t)})}async _post(e,t){return this._postTo("/api/text-chat",e,t,"text/event-stream, application/json")}_gatherPalette(){const e=new Set,t=(s,n)=>{if(!(n>5||null==s))return"string"==typeof s?(t=>{const s=/^#?([0-9a-f]{6})$/i.exec((t||"").trim());s&&e.add(`#${s[1].toLowerCase()}`)})(s):Array.isArray(s)?s.forEach(e=>t(e,n+1)):"object"==typeof s?Object.values(s).forEach(e=>t(e,n+1)):void 0};try{t(a.M.get("colorPalletes"),0)}catch(e){}return Array.from(e).slice(0,48)}async _postColor(e){let t=await this._postTo(c,e,!1);401===t.status&&(t=await this._postTo(c,e,!0));let s=null;try{s=await t.json()}catch(e){}if(!t.ok||!s||!1===s.ok)throw new Error(s&&s.reason||`HTTP ${t.status}`);return s}async _colorize(){if(this._busy||this._colorizing||!this.commands)return;const e=this.commands,t=e.getBlocks&&e.getBlocks()||[];if(!t.length)return;const s=e=>"heading"===e.type?"heading":"body",n=Array.from(new Set(t.map(s))),i=e.getBackgroundColor&&e.getBackgroundColor()||h,o=this._gatherPalette(),a=t.filter(e=>"heading"===s(e)).map(e=>e.text).join(" ").slice(0,500),r=t.filter(e=>"body"===s(e)).map(e=>e.text).join(" ").slice(0,500);this._messages=[...this._messages,{role:"user",content:`🎨 ${this.t.colorize}`}],this._error="",this._colorizing=!0,this._busy=!0;try{const l=await this._postColor({roles:n,background:i,palette:o,...a?{headingText:a}:{},...r?{bodyText:r}:{},language:this._lang}),c=l.heading?_(l.heading,i,3):null,p=l.body?_(l.body,i,4.5):null;t.forEach(t=>{const n="heading"===s(t)?c:p;n&&e.setColorRange&&e.setColorRange(t.from,t.to,n)});const d=[];c&&d.push({label:this.t.roleHeading,color:c}),p&&d.push({label:this.t.roleBody,color:p}),this._messages=[...this._messages,{role:"assistant",content:l.rationale||this.t.colorizeDone,swatches:d}]}catch(e){console.error("[text-color] colorize failed:",e),this._error=this.t.error,this._messages=[...this._messages,{role:"error",content:this.t.error}]}finally{this._colorizing=!1,this._busy=!1}}async _runStream(e,t){let s=await this._post(e,!1);if(401===s.status&&(s=await this._post(e,!0)),!s.ok){let e=`HTTP ${s.status}`;try{const t=await s.json();t&&t.reason&&(e=t.reason)}catch{}throw new Error(e)}const n=this._messages.length;this._messages=[...this._messages,{role:"assistant",content:""}],this._streamingIdx=n;let i="";await this._consumeSse(s.body,(e,t)=>{if("text"===e&&t&&"string"==typeof t.delta)i+=t.delta,this._updateAssistant(n,(e=>{const t=document.createElement("div");return t.innerHTML=e||"",(t.textContent||"").replace(/^[#>\-\s]+/gm,"").replace(/\*\*?|__?|`|~~/g,"").replace(/\|/g," ").replace(/\n{2,}/g,"\n").trim()})(i));else if("error"===e)throw new Error(t&&t.reason||"stream error")}),i.trim()&&("element"===t?(this.commands.selectAll(),this.commands.insertContentHtml(i)):this.commands.insertInlineMarkdown?this.commands.insertInlineMarkdown(i):this.commands.insertContent(i))}_updateAssistant(e,t){const s=this._messages.slice();s[e]&&(s[e]={role:"assistant",content:t}),this._messages=s}async _consumeSse(e,t){const s=e.getReader(),n=new TextDecoder;let i="";try{for(;;){const{done:e,value:o}=await s.read();if(e)break;let a;for(i+=n.decode(o,{stream:!0});-1!==(a=i.indexOf("\n\n"));){const e=i.slice(0,a);i=i.slice(a+2);let s,n="message",o="";for(const t of e.split("\n"))t.startsWith("event:")?n=t.slice(6).trim():t.startsWith("data:")&&(o+=(o?"\n":"")+t.slice(5).replace(/^ /,""));if(o){try{s=JSON.parse(o)}catch{continue}t(n,s)}}}}finally{try{s.releaseLock()}catch{}}}render(){const e=this.t,t="he"===this._lang,s=this._messages.length>0||this._busy,n=!this._busy&&this._input.trim().length>0;return r.qy`
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[567],{90567(p,x,r){r.r(x),r.d(x,{BoxShadowEditor:()=>m});var e=r(59088),t=r(36936),a=r(59929),o=r(49410),i=r(43180);const d=[{rule:"rgba(149, 157, 165, 0.2) 0px 8px 24px;"},{rule:"rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;"},{rule:"rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;"},{rule:"rgba(0, 0, 0, 0.35) 0px 5px 15px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 1px 4px;"},{rule:"rgba(0, 0, 0, 0.24) 0px 3px 8px;"},{rule:"rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(51, 51, 51) 0px 0px 0px 3px;"},{rule:"rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 4px 12px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;"},{rule:"rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;"},{rule:"rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;"},{rule:"rgb(38, 57, 77) 0px 20px 30px -10px;"},{rule:"rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;"},{rule:"rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;"},{rule:"rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;"},{rule:"rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;"},{rule:"rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;"},{rule:"rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;"},{rule:"rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;"},{rule:"rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;"},{rule:"rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;"},{rule:"rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;"},{rule:"rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 10px 50px;"},{rule:"rgba(240, 46, 170, 0.4) -5px 5px, rgba(240, 46, 170, 0.3) -10px 10px, rgba(240, 46, 170, 0.2) -15px 15px, rgba(240, 46, 170, 0.1) -20px 20px, rgba(240, 46, 170, 0.05) -25px 25px;"},{rule:"rgba(240, 46, 170, 0.4) 0px 5px, rgba(240, 46, 170, 0.3) 0px 10px, rgba(240, 46, 170, 0.2) 0px 15px, rgba(240, 46, 170, 0.1) 0px 20px, rgba(240, 46, 170, 0.05) 0px 25px;"},{rule:"rgba(240, 46, 170, 0.4) 5px 5px, rgba(240, 46, 170, 0.3) 10px 10px, rgba(240, 46, 170, 0.2) 15px 15px, rgba(240, 46, 170, 0.1) 20px 20px, rgba(240, 46, 170, 0.05) 25px 25px;"}];function l(p){try{return function(p){const x=p.split(/ (?![^(]*\))/);let r="",e=0,t=0,a=0,o=0,i=!1;for(let p of x)p=p.trim(),"inset"===p?i=!0:p.endsWith("px")||p.endsWith("em")?0===t?t=parseFloat(p):0===e?e=parseFloat(p):0===a?a=parseFloat(p):0===o&&(o=parseFloat(p)):(p.includes("rgb")||p.includes("#"))&&(r=p);return[{color:r,offsetY:e,offsetX:t,blurRadius:a,spreadRadius:o,inset:i}]}(p)}catch(p){console.error(p)}}var s,n,b,g,u,c;const h=r(28795).Ay,w="#000 0px 0px 0px 0px",f={};let m=(s=(0,o.MZ)({type:String}),n=(0,o.MZ)({type:String}),(c=class extends a.WF{constructor(){super(),(0,e.A)(this,"value",g,this),(0,e.A)(this,"boxShadow",u,this),this.tabName=void 0,this.theme=void 0,this.onChangeBoxShadow=(p,x)=>{const r={color:f.color,offsetY:f.offsetY,offsetX:f.offsetX,blurRadius:f.blurRadius,spreadRadius:f.spreadRadius,inset:!!f.inset};if(void 0!==r[p]&&("string"==typeof x||"number"==typeof x||"boolean"==typeof x)){r[p]=x,f[p]=x;const e=`${r.offsetX}px ${r.offsetY}px ${r.blurRadius}px ${r.spreadRadius}px ${r.color} ${r.inset?"inset":""}`;this.changeBoxShadowValue(e)}},this.tabName="design",this.theme=i.M.get("theme"),this.removeBoxShadow=this.removeBoxShadow.bind(this),this.onChangeBoxShadow=this.onChangeBoxShadow.bind(this)}changeBoxShadowValue(p){h.store().execCommand("style",{boxShadow:p}),this.boxShadow=this.value=p}removeBoxShadow(){h.store().execCommand("style",{boxShadow:w}),this.boxShadow=this.value=w}connectedCallback(){super.connectedCallback(),r.e(4257).then(r.bind(r,54257)),r.e(3559).then(r.bind(r,23559))}disconnectedCallback(){super.disconnectedCallback()}createRenderRoot(){return this}changeTab(p){this.tabName=p.target.value}render(){if(void 0===this.value||this.value!==this.boxShadow){this.value||(this.value=w),this.boxShadow=this.value;const p=l(this.value);Array.isArray(p)&&p.length>0?(f.offsetX=p[0].offsetX,f.offsetY=p[0].offsetY,f.blurRadius=p[0].blurRadius,f.spreadRadius=p[0].spreadRadius,f.color=p[0].color,f.inset=p[0].inset):(f.offsetX=0,f.offsetY=0,f.blurRadius=0,f.spreadRadius=0,f.color="#000",f.inset=void 0)}return a.qy`
2
2
  <cdtr-editor-container>
3
- <div class="ai" dir=${t?"rtl":"ltr"}>
4
- <header class="ai-head">
5
- <span class="brand">
6
- <span class="spark">✨</span>
7
- <span class="brand-title">${e.title}</span>
8
- </span>
9
- <span class="scope" data-scope=${this._scope}>
10
- ${"selection"===this._scope?e.editingSelection:e.editingElement}
11
- </span>
12
- </header>
13
-
14
- <div class="quick">
15
- ${["improve","shorten","lengthen","grammar","tone"].map(t=>r.qy`
16
- <button
17
- class="chip"
18
- ?disabled=${this._busy}
19
- @click=${()=>this._quickAction(t)}
20
- >
21
- ${e.actions[t]}
22
- </button>
23
- `)}
24
- <button
25
- class="chip chip--color"
26
- ?disabled=${this._busy}
27
- @click=${()=>this._colorize()}
28
- title=${e.colorize}
29
- >
30
- <span class="chip-swatch"></span>
31
- ${this._colorizing?e.colorizing:e.colorize}
32
- </button>
33
- </div>
34
-
35
- <label class="keeplen">
36
- <input
37
- type="checkbox"
38
- .checked=${this._keepLength}
39
- ?disabled=${this._busy}
40
- @change=${this._toggleKeepLength}
41
- />
42
- <span>${e.keepLength}</span>
43
- </label>
44
-
45
- ${s?r.qy`<div class="log">
46
- ${this._messages.map((e,t)=>{const s="assistant"===e.role&&t===this._streamingIdx,n=s&&!e.content;return r.qy`
47
- <div class="msg ${e.role}">
48
- <div
49
- class="bubble ${s?"streaming":""} ${n?"thinking":""}"
3
+ <cdtr-row alignItems="center" justify="space-between">
4
+ <cdtr-col>
5
+ <cdtr-title>
6
+ <lang-text text="box-shadow"></lang-text>
7
+ </cdtr-title>
8
+ </cdtr-col>
9
+ <cdtr-col sm="2">
10
+ ${this.boxShadow!==w?a.qy` <paper-button
11
+ style="min-width:40px;padding:0;"
12
+ @click=${this.removeBoxShadow}
13
+ ><cdtr-icon icon="x"></cdtr-icon
14
+ ></paper-button>`:null}
15
+ </cdtr-col>
16
+ <cdtr-col sm="3">
17
+ <cdtr-dropdown custom overflow maxHeight="900px" top=${200}>
18
+ <paper-button slot="trigger"
19
+ ><cdtr-box-shadow-icon
20
+ .iconStyle="box-shadow:${this.value};"
21
+ ></cdtr-box-shadow-icon
22
+ ></paper-button>
23
+ <div slot="content">
24
+ <div>
25
+ ${"design"===this.tabName?a.qy`
26
+ <cdtr-editor-container>
27
+ <h1 class="mb-2">
28
+ <lang-text
29
+ whiteSpace="break-spaces"
30
+ text="box-shadow"
31
+ ></lang-text>
32
+ </h1>
33
+ <cdtr-width-editor
34
+ text="horizontal_shadow_length"
35
+ unit="px"
36
+ max="200"
37
+ min="-200"
38
+ .value=${f.offsetX}
39
+ @input=${p=>this.onChangeBoxShadow("offsetX",p.target.value)}
40
+ ></cdtr-width-editor>
41
+ </cdtr-editor-container>
42
+ <cdtr-editor-container>
43
+ <cdtr-width-editor
44
+ text="vertical_shadow_length"
45
+ unit="px"
46
+ max="400"
47
+ min="-400"
48
+ .value=${f.offsetY}
49
+ @input=${p=>this.onChangeBoxShadow("offsetY",p.target.value)}
50
+ ></cdtr-width-editor>
51
+ </cdtr-editor-container>
52
+ <cdtr-editor-container>
53
+ <cdtr-width-editor
54
+ text="blur_radius"
55
+ unit="px"
56
+ max="400"
57
+ min="0"
58
+ .value=${f.blurRadius}
59
+ @input=${p=>this.onChangeBoxShadow("blurRadius",p.target.value)}
60
+ ></cdtr-width-editor>
61
+ </cdtr-editor-container>
62
+ <cdtr-editor-container>
63
+ <cdtr-width-editor
64
+ text="spread_radius"
65
+ unit="px"
66
+ max="200"
67
+ min="-200"
68
+ .value=${f.spreadRadius}
69
+ @input=${p=>this.onChangeBoxShadow("spreadRadius",p.target.value)}
70
+ ></cdtr-width-editor>
71
+ </cdtr-editor-container>
72
+ <cdtr-editor-container>
73
+ <cdtr-colorpicker-editor
74
+ @input=${p=>this.onChangeBoxShadow("color",p.target.value)}
75
+ .value=${f.color}
76
+ text="shadow_color"
77
+ ></cdtr-colorpicker-editor>
78
+ </cdtr-editor-container>
79
+
80
+ <cdtr-editor-container>
81
+ <cdtr-row justify="space-between" alignItems="center">
82
+ <cdtr-title
83
+ ><lang-text text="inset"></lang-text
84
+ ></cdtr-title>
85
+ <cdtr-toggle
86
+ @change=${p=>this.onChangeBoxShadow("inset",!p.target.checked)}
87
+ ></cdtr-toggle>
88
+ </cdtr-row>
89
+ </cdtr-editor-container>
90
+ `:null}
91
+ ${"gallery"===this.tabName?a.qy`<cdtr-row
92
+ style="overflow-y: auto;
93
+ max-height: 90vh;max-width:500px;"
94
+ justify="center"
95
+ spacing="10px"
50
96
  >
51
- ${n?r.qy`<span class="dot"></span><span class="dot"></span
52
- ><span class="dot"></span>`:r.qy`${e.content}${e.swatches&&e.swatches.length?r.qy`<span class="swatches">
53
- ${e.swatches.map(e=>r.qy`<span
54
- class="swatch"
55
- title=${e.label}
56
- >
57
- <span
58
- class="swatch-dot"
59
- style="background:${e.color}"
60
- ></span>
61
- <span class="swatch-label"
62
- >${e.label}</span
63
- >
64
- </span>`)}
65
- </span>`:""}`}
66
- </div>
67
- </div>
68
- `})}
69
- ${this._busy&&null===this._streamingIdx?r.qy`<div class="msg assistant">
70
- <div class="bubble thinking">
71
- <span class="dot"></span><span class="dot"></span
72
- ><span class="dot"></span>
73
- </div>
74
- </div>`:""}
75
- </div>`:r.qy`<p class="hint">${e.empty}</p>`}
76
-
77
- ${"selection"===this._scope&&this._selPreview?r.qy`<div class="selpill" title=${this._selPreview}>
78
- <span class="selpill-label">${e.editingSelection}</span>
79
- <span class="selpill-text">"${this._selPreview}"</span>
80
- <button
81
- class="selpill-x"
82
- title=${e.editingElement}
83
- aria-label=${e.editingElement}
84
- ?disabled=${this._busy}
85
- @click=${this._dismissSelection}
86
- >
87
- ✕
88
- </button>
89
- </div>`:""}
90
-
91
- <div class="composer">
92
- <textarea
93
- class="composer-input"
94
- rows="1"
95
- .value=${this._input}
96
- placeholder=${e.placeholder}
97
- ?disabled=${this._busy}
98
- @input=${this._onInput}
99
- @keydown=${this._onKeydown}
100
- ></textarea>
101
- <button
102
- class="send"
103
- title=${e.send}
104
- aria-label=${e.send}
105
- ?disabled=${!n}
106
- @click=${()=>this._send(this._input)}
107
- >
108
- <svg
109
- class=${t?"flip":""}
110
- viewBox="0 0 24 24"
111
- width="18"
112
- height="18"
113
- fill="none"
114
- stroke="currentColor"
115
- stroke-width="2"
116
- stroke-linecap="round"
117
- stroke-linejoin="round"
118
- >
119
- <path d="M22 2 11 13" />
120
- <path d="M22 2 15 22 11 13 2 9z" />
121
- </svg>
122
- </button>
123
- </div>
124
- </div>
97
+ ${d.map(p=>a.qy` <cdtr-col sm="5" style="height:120px;"
98
+ ><paper-button
99
+ @click=${()=>this.changeBoxShadowValue(p.rule)}
100
+ style="box-shadow:${p.rule};margin:0 25px;width:90%;height:90%;"
101
+ ></paper-button
102
+ ></cdtr-col>`)}
103
+ </cdtr-row>`:null}
104
+ </div>
105
+ </div>
106
+ </cdtr-dropdown>
107
+ </cdtr-col>
108
+ </cdtr-row>
125
109
  </cdtr-editor-container>
126
- `}}).properties={commands:{attribute:!1},elementId:{attribute:!1},_messages:{state:!0},_input:{state:!0},_busy:{state:!0},_colorizing:{state:!0},_scope:{state:!0},_error:{state:!0},_keepLength:{state:!0},_selPreview:{state:!0},_streamingIdx:{state:!0},_lang:{state:!0}},i.styles=r.AH`
127
- *,
128
- *::before,
129
- *::after {
130
- box-sizing: border-box;
131
- }
110
+ `}}).styles=a.AH`
132
111
  :host {
133
- display: block;
134
- font-family: inherit;
135
- --accent: #7c3aed;
136
- --accent-2: #a855f7;
137
- --ink: #1f2937;
138
- --muted: #6b7280;
139
- --line: #ececf1;
140
- --surface: #f6f6f9;
141
- }
142
- .ai {
143
- display: flex;
144
- flex-direction: column;
145
- gap: 12px;
146
- width: 100%;
147
- min-width: 0;
148
- padding: 2px;
149
- color: var(--ink);
150
- }
151
-
152
- /* Header */
153
- .ai-head {
154
- display: flex;
155
- align-items: center;
156
- justify-content: space-between;
157
- gap: 8px;
158
- min-width: 0;
159
- }
160
- .brand {
161
- display: inline-flex;
162
- align-items: center;
163
- gap: 7px;
164
- min-width: 0;
165
- }
166
- .spark {
167
- font-size: 15px;
168
- line-height: 1;
169
- }
170
- .brand-title {
171
- font-weight: 700;
172
- font-size: 14px;
173
- letter-spacing: -0.01em;
174
- white-space: nowrap;
175
- overflow: hidden;
176
- text-overflow: ellipsis;
177
- }
178
- .scope {
179
- flex: none;
180
- font-size: 11px;
181
- font-weight: 600;
182
- color: var(--accent);
183
- background: #f3ecff;
184
- border-radius: 999px;
185
- padding: 3px 9px;
186
- white-space: nowrap;
187
- }
188
- .scope[data-scope="selection"] {
189
- color: #b45309;
190
- background: #fdf1dc;
191
- }
192
-
193
- /* Quick actions */
194
- .quick {
195
- display: flex;
196
- flex-wrap: wrap;
197
- gap: 6px;
198
- }
199
- .chip {
200
- border: 1px solid var(--line);
201
- background: #fff;
202
- color: #374151;
203
- border-radius: 8px;
204
- padding: 6px 11px;
205
- font: inherit;
206
- font-size: 12px;
207
- font-weight: 500;
208
- cursor: pointer;
209
- transition: border-color 0.12s ease, color 0.12s ease,
210
- background 0.12s ease;
211
- }
212
- .chip:hover:not(:disabled) {
213
- border-color: var(--accent-2);
214
- color: var(--accent);
215
- background: #faf6ff;
216
- }
217
- .chip:active:not(:disabled) {
218
- transform: translateY(0.5px);
219
- }
220
- .chip:disabled {
221
- opacity: 0.45;
222
- cursor: default;
223
- }
224
-
225
- /* Colorize chip — accented so it reads as a distinct "smart color" action */
226
- .chip--color {
227
- display: inline-flex;
228
- align-items: center;
229
- gap: 6px;
230
- border-color: transparent;
231
- color: #fff;
232
- background: linear-gradient(135deg, var(--accent), var(--accent-2));
233
- }
234
- .chip--color:hover:not(:disabled) {
235
- color: #fff;
236
- background: linear-gradient(135deg, var(--accent-2), var(--accent));
237
- filter: brightness(1.03);
238
- }
239
- .chip-swatch {
240
- width: 11px;
241
- height: 11px;
242
- border-radius: 3px;
243
- background: conic-gradient(
244
- from 0deg,
245
- #f87171,
246
- #fbbf24,
247
- #34d399,
248
- #60a5fa,
249
- #a855f7,
250
- #f87171
251
- );
252
- box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
253
- }
254
-
255
- /* Applied-color swatches shown under a colorize result bubble */
256
- .swatches {
257
- display: flex;
258
- flex-wrap: wrap;
259
- gap: 6px 12px;
260
- margin-top: 7px;
261
- }
262
- .swatch {
263
- display: inline-flex;
264
- align-items: center;
265
- gap: 5px;
266
- font-size: 11px;
267
- color: var(--muted);
268
- }
269
- .swatch-dot {
270
- width: 13px;
271
- height: 13px;
272
- border-radius: 4px;
273
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
274
- }
275
-
276
- /* Keep-length toggle */
277
- .keeplen {
278
- display: inline-flex;
279
- align-items: center;
280
- gap: 7px;
281
- font-size: 12px;
282
- color: var(--muted);
283
- cursor: pointer;
284
- user-select: none;
285
- align-self: flex-start;
286
- }
287
- .keeplen input {
288
- width: 15px;
289
- height: 15px;
290
- accent-color: var(--accent);
291
- cursor: pointer;
292
- margin: 0;
293
- }
294
-
295
- /* Hint (empty state) */
296
- .hint {
297
- margin: 0;
298
- font-size: 12.5px;
299
- line-height: 1.5;
300
- color: #9aa1ad;
301
- }
302
-
303
- /* Message log */
304
- .log {
305
- display: flex;
306
- flex-direction: column;
307
- gap: 8px;
308
- max-height: 240px;
309
- overflow-y: auto;
310
- padding: 2px 1px;
311
- scrollbar-width: thin;
312
- }
313
- .msg {
314
- display: flex;
315
- }
316
- .msg.user {
317
- justify-content: flex-end;
318
- }
319
- .msg.assistant,
320
- .msg.error {
321
- justify-content: flex-start;
322
- }
323
- .bubble {
324
- max-width: 88%;
325
- padding: 8px 11px;
326
- border-radius: 13px;
327
- font-size: 13px;
328
- line-height: 1.45;
329
- white-space: pre-wrap;
330
- overflow-wrap: anywhere;
331
- }
332
- .msg.user .bubble {
333
- background: linear-gradient(135deg, var(--accent), var(--accent-2));
334
- color: #fff;
335
- border-end-end-radius: 4px;
336
- }
337
- .msg.assistant .bubble {
338
- background: var(--surface);
339
- color: var(--ink);
340
- border-end-start-radius: 4px;
341
- }
342
- .msg.error .bubble {
343
- background: #fef2f2;
344
- color: #b91c1c;
345
- border: 1px solid #fecaca;
346
- }
347
- .bubble.thinking {
348
- display: inline-flex;
349
- align-items: center;
350
- gap: 4px;
351
- padding: 11px;
352
- }
353
- .dot {
354
- width: 6px;
355
- height: 6px;
356
- border-radius: 50%;
357
- background: var(--accent-2);
358
- display: inline-block;
359
- animation: blink 1.2s infinite both;
360
- }
361
- .dot:nth-child(2) {
362
- animation-delay: 0.15s;
363
- }
364
- .dot:nth-child(3) {
365
- animation-delay: 0.3s;
366
- }
367
- @keyframes blink {
368
- 0%,
369
- 80%,
370
- 100% {
371
- opacity: 0.25;
372
- transform: translateY(0);
373
- }
374
- 40% {
375
- opacity: 1;
376
- transform: translateY(-1px);
377
- }
378
- }
379
-
380
- /* Streaming shimmer FX — a soft light sweeps across the bubble while the
381
- model types, plus a gentle purple glow. Text stays fully readable. */
382
- .msg.assistant .bubble.streaming {
383
- position: relative;
384
- overflow: hidden;
385
- box-shadow: 0 0 0 1px #ece0ff, 0 4px 16px -6px rgba(124, 58, 237, 0.4);
386
- animation: bubbleGlow 1.8s ease-in-out infinite;
387
- }
388
- .msg.assistant .bubble.streaming::after {
389
- content: "";
390
- position: absolute;
391
- inset: 0;
392
- background: linear-gradient(
393
- 105deg,
394
- transparent 20%,
395
- rgba(168, 85, 247, 0.22) 50%,
396
- transparent 80%
397
- );
398
- transform: translateX(-120%);
399
- animation: sweep 1.5s ease-in-out infinite;
400
- pointer-events: none;
401
- }
402
- @keyframes sweep {
403
- to {
404
- transform: translateX(120%);
405
- }
406
- }
407
- @keyframes bubbleGlow {
408
- 0%,
409
- 100% {
410
- box-shadow: 0 0 0 1px #ece0ff, 0 3px 12px -6px rgba(124, 58, 237, 0.3);
411
- }
412
- 50% {
413
- box-shadow: 0 0 0 1px #e3d0ff, 0 6px 20px -6px rgba(168, 85, 247, 0.55);
414
- }
415
- }
416
-
417
- /* Selection context pill (what a "Selection" edit will target) */
418
- .selpill {
419
- display: flex;
420
- align-items: center;
421
- gap: 7px;
422
- min-width: 0;
423
- padding: 6px 8px 6px 11px;
424
- border: 1px solid #f0e4d3;
425
- background: linear-gradient(90deg, #fdf6ea, #fef1dc);
426
- border-radius: 10px;
427
- font-size: 12px;
428
- animation: pillIn 0.18s ease;
429
- }
430
- .selpill-label {
431
- flex: none;
432
- font-weight: 700;
433
- color: #b45309;
434
- white-space: nowrap;
435
- }
436
- .selpill-text {
437
- flex: 1 1 auto;
438
- min-width: 0;
439
- color: #7c5a2a;
440
- white-space: nowrap;
441
- overflow: hidden;
442
- text-overflow: ellipsis;
443
- font-style: italic;
444
- }
445
- .selpill-x {
446
- flex: none;
447
- width: 20px;
448
- height: 20px;
449
- display: inline-flex;
450
- align-items: center;
451
- justify-content: center;
452
- border: none;
453
- border-radius: 6px;
454
- background: transparent;
455
- color: #b08a55;
456
- font-size: 12px;
457
- line-height: 1;
458
- cursor: pointer;
459
- transition: background 0.12s ease, color 0.12s ease;
460
- }
461
- .selpill-x:hover:not(:disabled) {
462
- background: #f6e6cd;
463
- color: #92400e;
464
- }
465
- .selpill-x:disabled {
466
- opacity: 0.4;
467
- cursor: default;
468
- }
469
- @keyframes pillIn {
470
- from {
471
- opacity: 0;
472
- transform: translateY(3px);
473
- }
474
- }
475
-
476
- /* Composer */
477
- .composer {
478
- display: flex;
479
- align-items: flex-end;
480
- gap: 8px;
481
- border: 1px solid var(--line);
482
- border-radius: 14px;
483
- padding: 6px 6px 6px 10px;
484
- background: #fff;
485
- transition: border-color 0.12s ease, box-shadow 0.12s ease;
486
- }
487
- .composer:focus-within {
488
- border-color: var(--accent-2);
489
- box-shadow: 0 0 0 3px #f1e9ff;
490
- }
491
- .composer-input {
492
- flex: 1 1 auto;
493
- min-width: 0;
494
- resize: none;
495
- border: none;
496
- outline: none;
497
- background: transparent;
498
- padding: 6px 2px;
499
- font: inherit;
500
- font-size: 13px;
501
- line-height: 1.4;
502
- color: var(--ink);
503
- max-height: 96px;
504
- }
505
- .composer-input::placeholder {
506
- color: #aab0bb;
507
- }
508
- .send {
509
- flex: none;
510
- width: 34px;
511
- height: 34px;
512
- display: inline-flex;
513
- align-items: center;
514
- justify-content: center;
515
- border: none;
516
- border-radius: 10px;
517
- background: linear-gradient(135deg, var(--accent), var(--accent-2));
518
- color: #fff;
519
- cursor: pointer;
520
- transition: opacity 0.12s ease, transform 0.12s ease;
521
- }
522
- .send:hover:not(:disabled) {
523
- transform: translateY(-1px);
524
- }
525
- .send:disabled {
526
- opacity: 0.4;
527
- cursor: default;
528
- }
529
- .send svg.flip {
530
- transform: scaleX(-1);
531
- }
532
-
533
- @media (prefers-reduced-motion: reduce) {
534
- .dot,
535
- .send,
536
- .chip,
537
- .selpill,
538
- .msg.assistant .bubble.streaming,
539
- .msg.assistant .bubble.streaming::after {
540
- animation: none;
541
- transition: none;
542
- }
112
+ direction: var(--direction-locale);
543
113
  }
544
- `,n=i))||n}}]);
114
+ `,b=c,g=(0,t.A)(b.prototype,"value",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,t.A)(b.prototype,"boxShadow",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b);customElements.define("cdtr-box-shadow-editor",m)}}]);