@creaditor/web-starterkit 1.0.39 → 1.0.40

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 (284) hide show
  1. package/dist/112.creaditor.bundle.js.gz +0 -0
  2. package/dist/1142.creaditor.bundle.js.gz +0 -0
  3. package/dist/1204.creaditor.bundle.js.gz +0 -0
  4. package/dist/1271.creaditor.bundle.js.gz +0 -0
  5. package/dist/1317.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  6. package/dist/1317.creaditor.bundle.js.gz +0 -0
  7. package/dist/1334.creaditor.bundle.js.gz +0 -0
  8. package/dist/1396.creaditor.bundle.js.gz +0 -0
  9. package/dist/1403.creaditor.bundle.js.gz +0 -0
  10. package/dist/1456.creaditor.bundle.js.gz +0 -0
  11. package/dist/1529.creaditor.bundle.js.gz +0 -0
  12. package/dist/168.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  13. package/dist/168.creaditor.bundle.js.gz +0 -0
  14. package/dist/170.creaditor.bundle.js.gz +0 -0
  15. package/dist/175.creaditor.bundle.js.gz +0 -0
  16. package/dist/1972.creaditor.bundle.js.gz +0 -0
  17. package/dist/2001.creaditor.bundle.js +16 -16
  18. package/dist/2001.creaditor.bundle.js.gz +0 -0
  19. package/dist/211.creaditor.bundle.js.gz +0 -0
  20. package/dist/2112.creaditor.bundle.js.gz +0 -0
  21. package/dist/2154.creaditor.bundle.js.gz +0 -0
  22. package/dist/2234.creaditor.bundle.js.gz +0 -0
  23. package/dist/2298.creaditor.bundle.js.gz +0 -0
  24. package/dist/235.creaditor.bundle.js.gz +0 -0
  25. package/dist/2350.creaditor.bundle.js.gz +0 -0
  26. package/dist/2377.creaditor.bundle.js.gz +0 -0
  27. package/dist/2384.creaditor.bundle.js.gz +0 -0
  28. package/dist/2397.creaditor.bundle.js.gz +0 -0
  29. package/dist/2409.creaditor.bundle.js.gz +0 -0
  30. package/dist/2547.creaditor.bundle.js.gz +0 -0
  31. package/dist/2550.creaditor.bundle.js.gz +0 -0
  32. package/dist/2590.creaditor.bundle.js.gz +0 -0
  33. package/dist/2682.creaditor.bundle.js +195 -0
  34. package/dist/{7051.creaditor.bundle.js.LICENSE.txt → 2682.creaditor.bundle.js.LICENSE.txt} +0 -6
  35. package/dist/{7051.creaditor.bundle.js.LICENSE.txt.gz → 2682.creaditor.bundle.js.LICENSE.txt.gz} +0 -0
  36. package/dist/2682.creaditor.bundle.js.gz +0 -0
  37. package/dist/2706.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  38. package/dist/2706.creaditor.bundle.js.gz +0 -0
  39. package/dist/271.creaditor.bundle.js.gz +0 -0
  40. package/dist/2717.creaditor.bundle.js.gz +0 -0
  41. package/dist/2765.creaditor.bundle.js.gz +0 -0
  42. package/dist/2773.creaditor.bundle.js.gz +0 -0
  43. package/dist/2833.creaditor.bundle.js.gz +0 -0
  44. package/dist/2837.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  45. package/dist/2837.creaditor.bundle.js.gz +0 -0
  46. package/dist/2956.creaditor.bundle.js.gz +0 -0
  47. package/dist/2963.creaditor.bundle.js.gz +0 -0
  48. package/dist/3105.creaditor.bundle.js.gz +0 -0
  49. package/dist/3233.creaditor.bundle.js.gz +0 -0
  50. package/dist/3418.creaditor.bundle.js.gz +0 -0
  51. package/dist/3521.creaditor.bundle.js.gz +0 -0
  52. package/dist/353.creaditor.bundle.js.gz +0 -0
  53. package/dist/3545.creaditor.bundle.js.gz +0 -0
  54. package/dist/3553.creaditor.bundle.js.gz +0 -0
  55. package/dist/3606.creaditor.bundle.js.gz +0 -0
  56. package/dist/3792.creaditor.bundle.js.gz +0 -0
  57. package/dist/380.creaditor.bundle.js.gz +0 -0
  58. package/dist/3827.creaditor.bundle.js.gz +0 -0
  59. package/dist/3847.creaditor.bundle.js.gz +0 -0
  60. package/dist/3875.creaditor.bundle.js.gz +0 -0
  61. package/dist/3971.creaditor.bundle.js.gz +0 -0
  62. package/dist/4061.creaditor.bundle.js.gz +0 -0
  63. package/dist/407.creaditor.bundle.js.gz +0 -0
  64. package/dist/4074.creaditor.bundle.js.gz +0 -0
  65. package/dist/4100.creaditor.bundle.js.gz +0 -0
  66. package/dist/4109.creaditor.bundle.js.gz +0 -0
  67. package/dist/4114.creaditor.bundle.js.gz +0 -0
  68. package/dist/4161.creaditor.bundle.js.gz +0 -0
  69. package/dist/4186.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  70. package/dist/4186.creaditor.bundle.js.gz +0 -0
  71. package/dist/4288.creaditor.bundle.js.gz +0 -0
  72. package/dist/4413.creaditor.bundle.js.gz +0 -0
  73. package/dist/4475.creaditor.bundle.js.gz +0 -0
  74. package/dist/453.creaditor.bundle.js.gz +0 -0
  75. package/dist/4615.creaditor.bundle.js.gz +0 -0
  76. package/dist/4639.creaditor.bundle.js.gz +0 -0
  77. package/dist/467.creaditor.bundle.js.gz +0 -0
  78. package/dist/4762.creaditor.bundle.js.gz +0 -0
  79. package/dist/4770.creaditor.bundle.js.gz +0 -0
  80. package/dist/4819.creaditor.bundle.js +235 -198
  81. package/dist/4819.creaditor.bundle.js.gz +0 -0
  82. package/dist/4947.creaditor.bundle.js.gz +0 -0
  83. package/dist/4987.creaditor.bundle.js.gz +0 -0
  84. package/dist/4988.creaditor.bundle.js.gz +0 -0
  85. package/dist/5119.creaditor.bundle.js.gz +0 -0
  86. package/dist/5133.creaditor.bundle.js.gz +0 -0
  87. package/dist/5156.creaditor.bundle.js +1 -1
  88. package/dist/5156.creaditor.bundle.js.gz +0 -0
  89. package/dist/5284.creaditor.bundle.js.gz +0 -0
  90. package/dist/5379.creaditor.bundle.js.gz +0 -0
  91. package/dist/5391.creaditor.bundle.js.gz +0 -0
  92. package/dist/5411.creaditor.bundle.js.gz +0 -0
  93. package/dist/5501.creaditor.bundle.js.gz +0 -0
  94. package/dist/5530.creaditor.bundle.js.gz +0 -0
  95. package/dist/5666.creaditor.bundle.js.gz +0 -0
  96. package/dist/567.creaditor.bundle.js.gz +0 -0
  97. package/dist/5713.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  98. package/dist/5713.creaditor.bundle.js.gz +0 -0
  99. package/dist/574.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  100. package/dist/574.creaditor.bundle.js.gz +0 -0
  101. package/dist/578.creaditor.bundle.js.gz +0 -0
  102. package/dist/5791.creaditor.bundle.js.gz +0 -0
  103. package/dist/5839.creaditor.bundle.js.gz +0 -0
  104. package/dist/5849.creaditor.bundle.js.gz +0 -0
  105. package/dist/5850.creaditor.bundle.js.gz +0 -0
  106. package/dist/5884.creaditor.bundle.js.gz +0 -0
  107. package/dist/59.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  108. package/dist/59.creaditor.bundle.js.gz +0 -0
  109. package/dist/5909.creaditor.bundle.js +19 -19
  110. package/dist/5909.creaditor.bundle.js.gz +0 -0
  111. package/dist/5926.creaditor.bundle.js.gz +0 -0
  112. package/dist/6036.creaditor.bundle.js.gz +0 -0
  113. package/dist/6216.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  114. package/dist/6216.creaditor.bundle.js.gz +0 -0
  115. package/dist/638.creaditor.bundle.js.gz +0 -0
  116. package/dist/6442.creaditor.bundle.js.gz +0 -0
  117. package/dist/6496.creaditor.bundle.js.gz +0 -0
  118. package/dist/653.creaditor.bundle.js.gz +0 -0
  119. package/dist/6751.creaditor.bundle.js.gz +0 -0
  120. package/dist/6814.creaditor.bundle.js.gz +0 -0
  121. package/dist/6937.creaditor.bundle.js.gz +0 -0
  122. package/dist/7055.creaditor.bundle.js.gz +0 -0
  123. package/dist/715.creaditor.bundle.js +4 -4
  124. package/dist/715.creaditor.bundle.js.gz +0 -0
  125. package/dist/7155.creaditor.bundle.js.gz +0 -0
  126. package/dist/7209.creaditor.bundle.js +32 -30
  127. package/dist/7209.creaditor.bundle.js.gz +0 -0
  128. package/dist/7238.creaditor.bundle.js.gz +0 -0
  129. package/dist/7255.creaditor.bundle.js.gz +0 -0
  130. package/dist/738.creaditor.bundle.js.gz +0 -0
  131. package/dist/7380.creaditor.bundle.js.gz +0 -0
  132. package/dist/7463.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  133. package/dist/7463.creaditor.bundle.js.gz +0 -0
  134. package/dist/7466.creaditor.bundle.js.gz +0 -0
  135. package/dist/752.creaditor.bundle.js.gz +0 -0
  136. package/dist/7523.creaditor.bundle.js.gz +0 -0
  137. package/dist/7564.creaditor.bundle.js.gz +0 -0
  138. package/dist/7654.creaditor.bundle.js.gz +0 -0
  139. package/dist/767.creaditor.bundle.js +26 -70
  140. package/dist/767.creaditor.bundle.js.gz +0 -0
  141. package/dist/7789.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  142. package/dist/7789.creaditor.bundle.js.gz +0 -0
  143. package/dist/7838.creaditor.bundle.js.gz +0 -0
  144. package/dist/7918.creaditor.bundle.js.gz +0 -0
  145. package/dist/7937.creaditor.bundle.js.gz +0 -0
  146. package/dist/7997.creaditor.bundle.js.gz +0 -0
  147. package/dist/8042.creaditor.bundle.js.gz +0 -0
  148. package/dist/8064.creaditor.bundle.js.gz +0 -0
  149. package/dist/8141.creaditor.bundle.js.gz +0 -0
  150. package/dist/8173.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  151. package/dist/8173.creaditor.bundle.js.gz +0 -0
  152. package/dist/8196.creaditor.bundle.js.gz +0 -0
  153. package/dist/823.creaditor.bundle.js.gz +0 -0
  154. package/dist/8250.creaditor.bundle.js.gz +0 -0
  155. package/dist/8251.creaditor.bundle.js.gz +0 -0
  156. package/dist/8299.creaditor.bundle.js.gz +0 -0
  157. package/dist/8315.creaditor.bundle.js.gz +0 -0
  158. package/dist/8443.creaditor.bundle.js.gz +0 -0
  159. package/dist/8516.creaditor.bundle.js.gz +0 -0
  160. package/dist/8533.creaditor.bundle.js.gz +0 -0
  161. package/dist/8547.creaditor.bundle.js.gz +0 -0
  162. package/dist/8570.creaditor.bundle.js.gz +0 -0
  163. package/dist/8646.creaditor.bundle.js +36 -37
  164. package/dist/8646.creaditor.bundle.js.gz +0 -0
  165. package/dist/8654.creaditor.bundle.js.gz +0 -0
  166. package/dist/8854.creaditor.bundle.js.gz +0 -0
  167. package/dist/8878.creaditor.bundle.js.gz +0 -0
  168. package/dist/8916.creaditor.bundle.js.gz +0 -0
  169. package/dist/8921.creaditor.bundle.js.gz +0 -0
  170. package/dist/898.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  171. package/dist/898.creaditor.bundle.js.gz +0 -0
  172. package/dist/8983.creaditor.bundle.js.gz +0 -0
  173. package/dist/9041.creaditor.bundle.js.gz +0 -0
  174. package/dist/9158.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  175. package/dist/9158.creaditor.bundle.js.gz +0 -0
  176. package/dist/9250.creaditor.bundle.js.gz +0 -0
  177. package/dist/9386.creaditor.bundle.js.gz +0 -0
  178. package/dist/9431.creaditor.bundle.js.gz +0 -0
  179. package/dist/9453.creaditor.bundle.js.gz +0 -0
  180. package/dist/9570.creaditor.bundle.js.gz +0 -0
  181. package/dist/9694.creaditor.bundle.js.gz +0 -0
  182. package/dist/975.creaditor.bundle.js.gz +0 -0
  183. package/dist/976.creaditor.bundle.js.gz +0 -0
  184. package/dist/9986.creaditor.bundle.js.gz +0 -0
  185. package/dist/9990.creaditor.bundle.js.gz +0 -0
  186. package/dist/9994.creaditor.bundle.js.gz +0 -0
  187. package/dist/creaditor.bundle.js +173 -173
  188. package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
  189. package/dist/creaditor.bundle.js.gz +0 -0
  190. package/dist/index.html.gz +0 -0
  191. package/dist/service-worker.js +1 -1
  192. package/dist/service-worker.js.gz +0 -0
  193. package/dist/workbox-f3063069.js.gz +0 -0
  194. package/package.json +2 -2
  195. package/dist/1260.creaditor.bundle.js +0 -459
  196. package/dist/1260.creaditor.bundle.js.gz +0 -0
  197. package/dist/1393.creaditor.bundle.js +0 -1
  198. package/dist/1393.creaditor.bundle.js.gz +0 -0
  199. package/dist/1452.creaditor.bundle.js +0 -23
  200. package/dist/1452.creaditor.bundle.js.gz +0 -0
  201. package/dist/1565.creaditor.bundle.js +0 -1216
  202. package/dist/1565.creaditor.bundle.js.gz +0 -0
  203. package/dist/1756.creaditor.bundle.js +0 -1
  204. package/dist/1756.creaditor.bundle.js.gz +0 -0
  205. package/dist/1936.creaditor.bundle.js +0 -177
  206. package/dist/1936.creaditor.bundle.js.LICENSE.txt +0 -29
  207. package/dist/1936.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  208. package/dist/1936.creaditor.bundle.js.gz +0 -0
  209. package/dist/2438.creaditor.bundle.js +0 -67
  210. package/dist/2438.creaditor.bundle.js.gz +0 -0
  211. package/dist/2834.creaditor.bundle.js +0 -14
  212. package/dist/2834.creaditor.bundle.js.LICENSE.txt +0 -5
  213. package/dist/2834.creaditor.bundle.js.gz +0 -0
  214. package/dist/307.creaditor.bundle.js +0 -23
  215. package/dist/307.creaditor.bundle.js.gz +0 -0
  216. package/dist/3095.creaditor.bundle.js +0 -194
  217. package/dist/3095.creaditor.bundle.js.gz +0 -0
  218. package/dist/365.creaditor.bundle.js +0 -26
  219. package/dist/365.creaditor.bundle.js.gz +0 -0
  220. package/dist/3778.creaditor.bundle.js +0 -1
  221. package/dist/3778.creaditor.bundle.js.gz +0 -0
  222. package/dist/3932.creaditor.bundle.js +0 -30
  223. package/dist/3932.creaditor.bundle.js.gz +0 -0
  224. package/dist/4217.creaditor.bundle.js +0 -105
  225. package/dist/4217.creaditor.bundle.js.gz +0 -0
  226. package/dist/453.creaditor.bundle.js.LICENSE.txt +0 -5
  227. package/dist/4569.creaditor.bundle.js +0 -887
  228. package/dist/4569.creaditor.bundle.js.gz +0 -0
  229. package/dist/4739.creaditor.bundle.js +0 -1
  230. package/dist/4739.creaditor.bundle.js.gz +0 -0
  231. package/dist/4970.creaditor.bundle.js +0 -1316
  232. package/dist/4970.creaditor.bundle.js.gz +0 -0
  233. package/dist/5340.creaditor.bundle.js +0 -157
  234. package/dist/5340.creaditor.bundle.js.gz +0 -0
  235. package/dist/5428.creaditor.bundle.js +0 -23
  236. package/dist/5428.creaditor.bundle.js.gz +0 -0
  237. package/dist/5813.creaditor.bundle.js +0 -613
  238. package/dist/5813.creaditor.bundle.js.LICENSE.txt +0 -10
  239. package/dist/5813.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  240. package/dist/5813.creaditor.bundle.js.gz +0 -0
  241. package/dist/6151.creaditor.bundle.js +0 -1
  242. package/dist/6151.creaditor.bundle.js.gz +0 -0
  243. package/dist/6459.creaditor.bundle.js +0 -23
  244. package/dist/6459.creaditor.bundle.js.gz +0 -0
  245. package/dist/6713.creaditor.bundle.js +0 -151
  246. package/dist/6713.creaditor.bundle.js.gz +0 -0
  247. package/dist/7051.creaditor.bundle.js +0 -162
  248. package/dist/7051.creaditor.bundle.js.gz +0 -0
  249. package/dist/763.creaditor.bundle.js +0 -1
  250. package/dist/763.creaditor.bundle.js.gz +0 -0
  251. package/dist/7759.creaditor.bundle.js +0 -25
  252. package/dist/7759.creaditor.bundle.js.gz +0 -0
  253. package/dist/8141.creaditor.bundle.js.LICENSE.txt +0 -5
  254. package/dist/8303.creaditor.bundle.js +0 -57
  255. package/dist/8303.creaditor.bundle.js.LICENSE.txt +0 -10
  256. package/dist/8303.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  257. package/dist/8303.creaditor.bundle.js.gz +0 -0
  258. package/dist/8305.creaditor.bundle.js +0 -32
  259. package/dist/8305.creaditor.bundle.js.gz +0 -0
  260. package/dist/8386.creaditor.bundle.js +0 -1420
  261. package/dist/8386.creaditor.bundle.js.gz +0 -0
  262. package/dist/84702e107adede1a967468c78921d455.mp4 +0 -0
  263. package/dist/8478.creaditor.bundle.js +0 -1
  264. package/dist/8478.creaditor.bundle.js.gz +0 -0
  265. package/dist/8676.creaditor.bundle.js +0 -24
  266. package/dist/8676.creaditor.bundle.js.gz +0 -0
  267. package/dist/88.creaditor.bundle.js +0 -1
  268. package/dist/88.creaditor.bundle.js.gz +0 -0
  269. package/dist/8876.creaditor.bundle.js +0 -25
  270. package/dist/8876.creaditor.bundle.js.LICENSE.txt +0 -32
  271. package/dist/8876.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  272. package/dist/8876.creaditor.bundle.js.gz +0 -0
  273. package/dist/9089.creaditor.bundle.js +0 -21
  274. package/dist/9089.creaditor.bundle.js.gz +0 -0
  275. package/dist/9162.creaditor.bundle.js +0 -24
  276. package/dist/9162.creaditor.bundle.js.gz +0 -0
  277. package/dist/9184.creaditor.bundle.js +0 -23
  278. package/dist/9184.creaditor.bundle.js.gz +0 -0
  279. package/dist/9193.creaditor.bundle.js +0 -1
  280. package/dist/9193.creaditor.bundle.js.gz +0 -0
  281. package/dist/9338.creaditor.bundle.js +0 -1
  282. package/dist/9338.creaditor.bundle.js.gz +0 -0
  283. package/dist/951.creaditor.bundle.js +0 -1
  284. package/dist/951.creaditor.bundle.js.gz +0 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,9 +1,9 @@
1
1
  /*! For license information please see 2001.creaditor.bundle.js.LICENSE.txt */
2
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2001],{92001(t,e,i){i.r(e),i.d(e,{AttachedFilesPlugin:()=>ft});const s=globalThis,r=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),n=new WeakMap;let l=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==o)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 i=void 0!==e&&1===e.length;i&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&n.set(e,t))}return t}toString(){return this.cssText}};const a=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new l("string"==typeof t?t:t+"",void 0,o))(e)})(t):t,{is:h,defineProperty:d,getOwnPropertyDescriptor:c,getOwnPropertyNames:p,getOwnPropertySymbols:u,getPrototypeOf:f}=Object,g=globalThis,v=g.trustedTypes,m=v?v.emptyScript:"",$=g.reactiveElementPolyfillSupport,y=(t,e)=>t,_={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},x=(t,e)=>!h(t,e),b={attribute:!0,type:String,converter:_,reflect:!1,useDefault:!1,hasChanged:x};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),g.litPropertyMetadata??(g.litPropertyMetadata=new WeakMap);let A=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]: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 i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&d(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const o=null==s?void 0:s.call(this);null==r||r.call(this,e),this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(y("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(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...p(t),...u(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);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 i of e){const e=document.createElement("style"),r=s.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=i.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,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(void 0!==r&&!0===s.reflect){const o=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:_).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var i,s;const r=this.constructor,o=r._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=r.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:_;this._$Em=o;const l=n.fromAttribute(e,t.type);this[o]=l??(null==(s=this._$Ej)?void 0:s.get(o))??l,this._$Em=null}}requestUpdate(t,e,i){var s;if(void 0!==t){const r=this.constructor,o=this[t];if(i??(i=r.getPropertyOptions(t)),!((i.hasChanged??x)(o,e)||i.useDefault&&i.reflect&&o===(null==(s=this._$Ej)?void 0:s.get(t))&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,i,s){let{useDefault:r,reflect:o,wrapped:n}=i;r&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),!0!==n||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||r||(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,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach(t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)}),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}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){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[y("elementProperties")]=new Map,A[y("finalized")]=new Map,null==$||$({ReactiveElement:A}),(g.reactiveElementVersions??(g.reactiveElementVersions=[])).push("2.1.1");const w=globalThis,E=w.trustedTypes,S=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",L=`lit$${Math.random().toFixed(9).slice(2)}$`,z="?"+L,P=`<${z}>`,M=document,T=()=>M.createComment(""),H=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,U="[ \t\n\f\r]",F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,k=/>/g,N=RegExp(`>|${U}(?:([^\\s"'>=/]+)(${U}*=${U}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,V=/"/g,B=/^(?:script|style|textarea|title)$/i,D=(K=1,function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return{_$litType$:K,strings:t,values:i}}),q=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),Z=new WeakMap,W=M.createTreeWalker(M,129);var K;function J(t,e){if(!O(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(e):e}class G{constructor(t,e){let i,{strings:s,_$litType$:r}=t;this.parts=[];let o=0,n=0;const l=s.length-1,a=this.parts,[h,d]=((t,e)=>{const i=t.length-1,s=[];let r,o=2===e?"<svg>":3===e?"<math>":"",n=F;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===F?"!--"===a[1]?n=R:void 0!==a[1]?n=k:void 0!==a[2]?(B.test(a[2])&&(r=RegExp("</"+a[2],"g")),n=N):void 0!==a[3]&&(n=N):n===N?">"===a[0]?(n=r??F,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?N:'"'===a[3]?V:j):n===V||n===j?n=N:n===R||n===k?n=F:(n=N,r=void 0);const c=n===N&&t[e+1].startsWith("/>")?" ":"";o+=n===F?i+P:h>=0?(s.push(l),i.slice(0,h)+C+i.slice(h)+L+c):i+L+(-2===h?e:c)}return[J(t,o+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(s,r);if(this.el=G.createElement(h,e),W.currentNode=this.el.content,2===r||3===r){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=W.nextNode())&&a.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(C)){const e=d[n++],s=i.getAttribute(t).split(L),r=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:r[2],strings:s,ctor:"."===r[1]?et:"?"===r[1]?it:"@"===r[1]?st:tt}),i.removeAttribute(t)}else t.startsWith(L)&&(a.push({type:6,index:o}),i.removeAttribute(t));if(B.test(i.tagName)){const t=i.textContent.split(L),e=t.length-1;if(e>0){i.textContent=E?E.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],T()),W.nextNode(),a.push({type:2,index:++o});i.append(t[e],T())}}}else if(8===i.nodeType)if(i.data===z)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(L,t+1));)a.push({type:7,index:o}),t+=L.length-1}o++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function Q(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3?arguments[3]:void 0;var r,o;if(e===q)return e;let n=void 0!==s?null==(r=i._$Co)?void 0:r[s]:i._$Cl;const l=H(e)?void 0:e._$litDirective$;return(null==n?void 0:n.constructor)!==l&&(null==(o=null==n?void 0:n._$AO)||o.call(n,!1),void 0===l?n=void 0:(n=new l(t),n._$AT(t,i,s)),void 0!==s?(i._$Co??(i._$Co=[]))[s]=n:i._$Cl=n),void 0!==n&&(e=Q(t,n._$AS(t,e.values),n,s)),e}class X{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:i}=this._$AD,s=((null==t?void 0:t.creationScope)??M).importNode(e,!0);W.currentNode=s;let r=W.nextNode(),o=0,n=0,l=i[0];for(;void 0!==l;){if(o===l.index){let e;2===l.type?e=new Y(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new rt(r,this,t)),this._$AV.push(e),l=i[++n]}o!==(null==l?void 0:l.index)&&(r=W.nextNode(),o++)}return W.currentNode=M,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Y{get _$AU(){var t;return(null==(t=this._$AM)?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(null==s?void 0:s.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=Q(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),H(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>O(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!==I&&H(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,r="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=G.createElement(J(s.h,s.h[0]),this.options)),s);if((null==(e=this._$AH)?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new X(r,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Z.get(t.strings);return void 0===e&&Z.set(t.strings,e=new G(t)),e}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new Y(this.O(T()),this.O(T()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,e=arguments.length>1?arguments[1]:void 0;var i;for(null==(i=this._$AP)||i.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 tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}_$AI(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;const r=this.strings;let o=!1;if(void 0===r)t=Q(this,t,e,0),o=!H(t)||t!==this._$AH&&t!==q,o&&(this._$AH=t);else{const s=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=Q(this,s[i+n],e,n),l===q&&(l=this._$AH[n]),o||(o=!H(l)||l!==this._$AH[n]),l===I?t=I:t!==I&&(t+=(l??"")+r[n+1]),this._$AH[n]=l}o&&!s&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}class it extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==I)}}class st extends tt{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t){if((t=Q(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0)??I)===q)return;const e=this._$AH,i=t===I&&e!==I||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,s=t!==I&&(e===I||i);i&&this.element.removeEventListener(this.name,this,e),s&&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 rt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const ot=w.litHtmlPolyfillSupport;null==ot||ot(G,Y),(w.litHtmlVersions??(w.litHtmlVersions=[])).push("3.3.1");const nt=globalThis;class lt extends A{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,i)=>{const s=(null==i?void 0:i.renderBefore)??e;let r=s._$litPart$;if(void 0===r){const t=(null==i?void 0:i.renderBefore)??null;s._$litPart$=r=new Y(e.insertBefore(T(),t),t,void 0,i??{})}return r._$AI(t),r})(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 q}}var at;lt._$litElement$=!0,lt.finalized=!0,null==(at=nt.litElementHydrateSupport)||at.call(nt,{LitElement:lt});const ht=nt.litElementPolyfillSupport;null==ht||ht({LitElement:lt}),(nt.litElementVersions??(nt.litElementVersions=[])).push("4.2.1");const dt={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:x};var ct=Object.defineProperty,pt=Object.getOwnPropertyDescriptor,ut=(t,e,i,s)=>{for(var r,o=s>1?void 0:s?pt(e,i):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s?r(e,i,o):r(o))||o);return s&&o&&ct(e,i,o),o};let ft=class extends lt{constructor(){super(),this.files=[],this.maxFiles=1/0,this.maxFileSizeMB=1/0,this.isLoading=!1,this.buttonText="Attached Files",this.addFilesText="Add Files",this.maxFilesReachedText="Maximum number of files reached",this.fileTooLargeText="File size exceeds the limit",this.error="",this.customColor="",this.customTextColor="",this.iconColor="",this.loadingText="Loading files...",this.lazyLoad=null,this._isOpen=!1,this._lazyLoadPromise=null,this.initializeLazyLoad()}initializeLazyLoad(){let t,e;const i=new Promise((i,s)=>{t=i,e=s});this._lazyLoadPromise={promise:i,resolve:t,reject:e},this.lazyLoad=this._lazyLoadPromise,this._lazyLoadPromise.promise.then(t=>{this.handleLazyLoadedFiles(t)}).catch(t=>{console.error("Lazy load promise rejected:",t),this.error=`Failed to load files: ${t.message}`})}handleLazyLoadedFiles(t){if(!Array.isArray(t))return void console.error("Lazy loaded files must be an array");const e=t.filter(t=>t&&"object"==typeof t?!!(t.id&&t.name&&t.type&&t.url)||(console.warn("File missing required properties:",t),!1):(console.warn("Invalid file object:",t),!1));if(0===e.length)return void console.warn("No valid files found in lazy load");const i=this.maxFiles-this.files.length;if(i<=0)return this.error=this.maxFilesReachedText,void this.dispatchEvent(new CustomEvent("max-files-reached",{detail:{maxFiles:this.maxFiles},bubbles:!0,composed:!0}));const s=e.slice(0,i);this.files=[...this.files,...s],this.error="",this.dispatchEvent(new CustomEvent("lazy-files-loaded",{detail:{files:s,totalFiles:this.files.length},bubbles:!0,composed:!0})),this.requestUpdate()}resolveLazyLoad(t){this._lazyLoadPromise&&this._lazyLoadPromise.resolve(t)}rejectLazyLoad(t){this._lazyLoadPromise&&this._lazyLoadPromise.reject(t)}getLazyLoadPromise(){var t;return(null==(t=this._lazyLoadPromise)?void 0:t.promise)||null}resetLazyLoad(){this.initializeLazyLoad()}showLoading(t){this.isLoading=!0,t&&(this.loadingText=t),this.requestUpdate()}hideLoading(){this.isLoading=!1,this.requestUpdate()}formatFileSize(t){if(0===t)return"0 B";const e=Math.floor(Math.log(t)/Math.log(1024));return`${parseFloat((t/Math.pow(1024,e)).toFixed(2))} ${["B","KB","MB","GB"][e]}`}getFilePreview(t){switch(t.type){case"image":return D`<img
2
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2001],{92001(t,e,i){i.r(e),i.d(e,{AttachedFilesPlugin:()=>gt});const s=globalThis,r=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),n=new WeakMap;let l=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==o)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 i=void 0!==e&&1===e.length;i&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&n.set(e,t))}return t}toString(){return this.cssText}};const a=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new l("string"==typeof t?t:t+"",void 0,o))(e)})(t):t,{is:h,defineProperty:d,getOwnPropertyDescriptor:c,getOwnPropertyNames:p,getOwnPropertySymbols:u,getPrototypeOf:f}=Object,g=globalThis,v=g.trustedTypes,m=v?v.emptyScript:"",$=g.reactiveElementPolyfillSupport,y=(t,e)=>t,_={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},x=(t,e)=>!h(t,e),b={attribute:!0,type:String,converter:_,reflect:!1,useDefault:!1,hasChanged:x};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),g.litPropertyMetadata??(g.litPropertyMetadata=new WeakMap);let A=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]: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 i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&d(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const o=null==s?void 0:s.call(this);null==r||r.call(this,e),this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(y("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(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...p(t),...u(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);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 i of e){const e=document.createElement("style"),r=s.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=i.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,i){this._$AK(t,i)}_$ET(t,e){var i;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(void 0!==r&&!0===s.reflect){const o=(void 0!==(null==(i=s.converter)?void 0:i.toAttribute)?s.converter:_).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var i,s;const r=this.constructor,o=r._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=r.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:_;this._$Em=o;const l=n.fromAttribute(e,t.type);this[o]=l??(null==(s=this._$Ej)?void 0:s.get(o))??l,this._$Em=null}}requestUpdate(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0;var o;if(void 0!==t){const n=this.constructor;if(!1===s&&(r=this[t]),i??(i=n.getPropertyOptions(t)),!((i.hasChanged??x)(r,e)||i.useDefault&&i.reflect&&r===(null==(o=this._$Ej)?void 0:o.get(t))&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,i,s){let{useDefault:r,reflect:o,wrapped:n}=i;r&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,s??e??this[t]),!0!==n||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||r||(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,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach(t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)}),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}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){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[y("elementProperties")]=new Map,A[y("finalized")]=new Map,null==$||$({ReactiveElement:A}),(g.reactiveElementVersions??(g.reactiveElementVersions=[])).push("2.1.2");const w=globalThis,E=t=>t,S=w.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",z=`lit$${Math.random().toFixed(9).slice(2)}$`,P="?"+z,M=`<${P}>`,T=document,H=()=>T.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,F="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,N=/>/g,j=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,B=/"/g,D=/^(?:script|style|textarea|title)$/i,q=(J=1,function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];return{_$litType$:J,strings:t,values:i}}),I=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),W=new WeakMap,K=T.createTreeWalker(T,129);var J;function G(t,e){if(!U(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}class Q{constructor(t,e){let i,{strings:s,_$litType$:r}=t;this.parts=[];let o=0,n=0;const l=s.length-1,a=this.parts,[h,d]=((t,e)=>{const i=t.length-1,s=[];let r,o=2===e?"<svg>":3===e?"<math>":"",n=R;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===R?"!--"===a[1]?n=k:void 0!==a[1]?n=N:void 0!==a[2]?(D.test(a[2])&&(r=RegExp("</"+a[2],"g")),n=j):void 0!==a[3]&&(n=j):n===j?">"===a[0]?(n=r??R,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?j:'"'===a[3]?B:V):n===B||n===V?n=j:n===k||n===N?n=R:(n=j,r=void 0);const c=n===j&&t[e+1].startsWith("/>")?" ":"";o+=n===R?i+M:h>=0?(s.push(l),i.slice(0,h)+L+i.slice(h)+z+c):i+z+(-2===h?e:c)}return[G(t,o+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(s,r);if(this.el=Q.createElement(h,e),K.currentNode=this.el.content,2===r||3===r){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=K.nextNode())&&a.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(L)){const e=d[n++],s=i.getAttribute(t).split(z),r=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:r[2],strings:s,ctor:"."===r[1]?it:"?"===r[1]?st:"@"===r[1]?rt:et}),i.removeAttribute(t)}else t.startsWith(z)&&(a.push({type:6,index:o}),i.removeAttribute(t));if(D.test(i.tagName)){const t=i.textContent.split(z),e=t.length-1;if(e>0){i.textContent=S?S.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],H()),K.nextNode(),a.push({type:2,index:++o});i.append(t[e],H())}}}else if(8===i.nodeType)if(i.data===P)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(z,t+1));)a.push({type:7,index:o}),t+=z.length-1}o++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}}function X(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3?arguments[3]:void 0;var r,o;if(e===I)return e;let n=void 0!==s?null==(r=i._$Co)?void 0:r[s]:i._$Cl;const l=O(e)?void 0:e._$litDirective$;return(null==n?void 0:n.constructor)!==l&&(null==(o=null==n?void 0:n._$AO)||o.call(n,!1),void 0===l?n=void 0:(n=new l(t),n._$AT(t,i,s)),void 0!==s?(i._$Co??(i._$Co=[]))[s]=n:i._$Cl=n),void 0!==n&&(e=X(t,n._$AS(t,e.values),n,s)),e}class Y{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:i}=this._$AD,s=((null==t?void 0:t.creationScope)??T).importNode(e,!0);K.currentNode=s;let r=K.nextNode(),o=0,n=0,l=i[0];for(;void 0!==l;){if(o===l.index){let e;2===l.type?e=new tt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ot(r,this,t)),this._$AV.push(e),l=i[++n]}o!==(null==l?void 0:l.index)&&(r=K.nextNode(),o++)}return K.currentNode=T,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class tt{get _$AU(){var t;return(null==(t=this._$AM)?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(null==s?void 0:s.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=X(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),O(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==I&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>U(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!==Z&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,r="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=Q.createElement(G(s.h,s.h[0]),this.options)),s);if((null==(e=this._$AH)?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new Y(r,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new Q(t)),e}k(t){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new tt(this.O(H()),this.O(H()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,e=arguments.length>1?arguments[1]:void 0;var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t!==this._$AB;){const e=E(t).nextSibling;E(t).remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}_$AI(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;const r=this.strings;let o=!1;if(void 0===r)t=X(this,t,e,0),o=!O(t)||t!==this._$AH&&t!==I,o&&(this._$AH=t);else{const s=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=X(this,s[i+n],e,n),l===I&&(l=this._$AH[n]),o||(o=!O(l)||l!==this._$AH[n]),l===Z?t=Z:t!==Z&&(t+=(l??"")+r[n+1]),this._$AH[n]=l}o&&!s&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class it extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}class st extends et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Z)}}class rt extends et{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t){if((t=X(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0)??Z)===I)return;const e=this._$AH,i=t===Z&&e!==Z||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,s=t!==Z&&(e===Z||i);i&&this.element.removeEventListener(this.name,this,e),s&&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 ot{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const nt=w.litHtmlPolyfillSupport;null==nt||nt(Q,tt),(w.litHtmlVersions??(w.litHtmlVersions=[])).push("3.3.2");const lt=globalThis;class at extends A{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,i)=>{const s=(null==i?void 0:i.renderBefore)??e;let r=s._$litPart$;if(void 0===r){const t=(null==i?void 0:i.renderBefore)??null;s._$litPart$=r=new tt(e.insertBefore(H(),t),t,void 0,i??{})}return r._$AI(t),r})(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 I}}var ht;at._$litElement$=!0,at.finalized=!0,null==(ht=lt.litElementHydrateSupport)||ht.call(lt,{LitElement:at});const dt=lt.litElementPolyfillSupport;null==dt||dt({LitElement:at}),(lt.litElementVersions??(lt.litElementVersions=[])).push("4.2.2");const ct={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:x};var pt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,ft=(t,e,i,s)=>{for(var r,o=s>1?void 0:s?ut(e,i):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s?r(e,i,o):r(o))||o);return s&&o&&pt(e,i,o),o};let gt=class extends at{constructor(){super(),this.files=[],this.maxFiles=1/0,this.maxFileSizeMB=1/0,this.isLoading=!1,this.buttonText="Attached Files",this.addFilesText="Add Files",this.maxFilesReachedText="Maximum number of files reached",this.fileTooLargeText="File size exceeds the limit",this.error="",this.customColor="",this.customTextColor="",this.iconColor="",this.loadingText="Loading files...",this.lazyLoad=null,this._isOpen=!1,this._lazyLoadPromise=null,this.initializeLazyLoad()}initializeLazyLoad(){let t,e;const i=new Promise((i,s)=>{t=i,e=s});this._lazyLoadPromise={promise:i,resolve:t,reject:e},this.lazyLoad=this._lazyLoadPromise,this._lazyLoadPromise.promise.then(t=>{this.handleLazyLoadedFiles(t)}).catch(t=>{console.error("Lazy load promise rejected:",t),this.error=`Failed to load files: ${t.message}`})}handleLazyLoadedFiles(t){if(!Array.isArray(t))return void console.error("Lazy loaded files must be an array");const e=t.filter(t=>t&&"object"==typeof t?!!(t.id&&t.name&&t.type&&t.url)||(console.warn("File missing required properties:",t),!1):(console.warn("Invalid file object:",t),!1));if(0===e.length)return void console.warn("No valid files found in lazy load");const i=this.maxFiles-this.files.length;if(i<=0)return this.error=this.maxFilesReachedText,void this.dispatchEvent(new CustomEvent("max-files-reached",{detail:{maxFiles:this.maxFiles},bubbles:!0,composed:!0}));const s=e.slice(0,i);this.files=[...this.files,...s],this.error="",this.dispatchEvent(new CustomEvent("lazy-files-loaded",{detail:{files:s,totalFiles:this.files.length},bubbles:!0,composed:!0})),this.requestUpdate()}resolveLazyLoad(t){this._lazyLoadPromise&&this._lazyLoadPromise.resolve(t)}rejectLazyLoad(t){this._lazyLoadPromise&&this._lazyLoadPromise.reject(t)}getLazyLoadPromise(){var t;return(null==(t=this._lazyLoadPromise)?void 0:t.promise)||null}resetLazyLoad(){this.initializeLazyLoad()}showLoading(t){this.isLoading=!0,t&&(this.loadingText=t),this.requestUpdate()}hideLoading(){this.isLoading=!1,this.requestUpdate()}formatFileSize(t){if(0===t)return"0 B";const e=Math.floor(Math.log(t)/Math.log(1024));return`${parseFloat((t/Math.pow(1024,e)).toFixed(2))} ${["B","KB","MB","GB"][e]}`}getFilePreview(t){switch(t.type){case"image":return q`<img
3
3
  class="file-preview"
4
4
  src=${t.url}
5
5
  alt=${t.name}
6
- />`;case"pdf":return D`<cdtr-icon name="pdf" size="48"></cdtr-icon>`;case"video":return D`<cdtr-icon name="video" size="48"></cdtr-icon>`;case"audio":return D`<cdtr-icon name="audio" size="48"></cdtr-icon>`;default:return D`<cdtr-icon name="file" size="48"></cdtr-icon>`}}handleFileSelect(t){const e=t.target;if(e.files&&e.files.length>0){const t=this.maxFiles-this.files.length;if(t<=0)return this.error=this.maxFilesReachedText,void this.dispatchEvent(new CustomEvent("max-files-reached",{detail:{maxFiles:this.maxFiles},bubbles:!0,composed:!0}));const i=1024*this.maxFileSizeMB*1024,s=Array.from(e.files).filter(t=>t.size>i);if(s.length>0)return this.error=`${this.fileTooLargeText} (${this.maxFileSizeMB}MB)`,void this.dispatchEvent(new CustomEvent("file-too-large",{detail:{files:s,maxSize:this.maxFileSizeMB},bubbles:!0,composed:!0}));this.error="",this.isLoading=!0;const r=Array.from(e.files).slice(0,t);let o=0;r.forEach(t=>{const e=new FileReader;e.onload=e=>{var i;const s={id:Math.random().toString(36).substr(2,9),name:t.name,type:t.type.split("/")[0],url:null==(i=e.target)?void 0:i.result,size:t.size};this.files=[...this.files,s],this.dispatchEvent(new CustomEvent("file-added",{detail:s,bubbles:!0,composed:!0})),o++,o===r.length&&(this.isLoading=!1)},e.readAsDataURL(t)})}}handleRemoveFile(t){const e=this.files.find(e=>e.id===t);e&&(this.files=this.files.filter(e=>e.id!==t),this.dispatchEvent(new CustomEvent("file-removed",{detail:e,bubbles:!0,composed:!0})))}render(){return Array.isArray(this.files)||(this.files=[]),D`
6
+ />`;case"pdf":return q`<cdtr-icon name="pdf" size="48"></cdtr-icon>`;case"video":return q`<cdtr-icon name="video" size="48"></cdtr-icon>`;case"audio":return q`<cdtr-icon name="audio" size="48"></cdtr-icon>`;default:return q`<cdtr-icon name="file" size="48"></cdtr-icon>`}}handleFileSelect(t){const e=t.target;if(e.files&&e.files.length>0){const t=this.maxFiles-this.files.length;if(t<=0)return this.error=this.maxFilesReachedText,void this.dispatchEvent(new CustomEvent("max-files-reached",{detail:{maxFiles:this.maxFiles},bubbles:!0,composed:!0}));const i=1024*this.maxFileSizeMB*1024,s=Array.from(e.files).filter(t=>t.size>i);if(s.length>0)return this.error=`${this.fileTooLargeText} (${this.maxFileSizeMB}MB)`,void this.dispatchEvent(new CustomEvent("file-too-large",{detail:{files:s,maxSize:this.maxFileSizeMB},bubbles:!0,composed:!0}));this.error="",this.isLoading=!0;const r=Array.from(e.files).slice(0,t);let o=0;r.forEach(t=>{const e=new FileReader;e.onload=e=>{var i;const s={id:Math.random().toString(36).substr(2,9),name:t.name,type:t.type.split("/")[0],url:null==(i=e.target)?void 0:i.result,size:t.size};this.files=[...this.files,s],this.dispatchEvent(new CustomEvent("file-added",{detail:s,bubbles:!0,composed:!0})),o++,o===r.length&&(this.isLoading=!1)},e.readAsDataURL(t)})}}handleRemoveFile(t){const e=this.files.find(e=>e.id===t);e&&(this.files=this.files.filter(e=>e.id!==t),this.dispatchEvent(new CustomEvent("file-removed",{detail:e,bubbles:!0,composed:!0})))}render(){return Array.isArray(this.files)||(this.files=[]),q`
7
7
  <div class="button-container">
8
8
  <cdtr-popover
9
9
  ?opened=${this._isOpen}
@@ -14,7 +14,7 @@
14
14
  dir="auto"
15
15
  class=${this.isLoading?"loading-button":""}
16
16
  >
17
- ${this.isLoading?D`<div class="button-loading-spinner"></div>`:D`<svg
17
+ ${this.isLoading?q`<div class="button-loading-spinner"></div>`:q`<svg
18
18
  style="color: ${this.iconColor};"
19
19
  width="18"
20
20
  xmlns="http://www.w3.org/2000/svg"
@@ -27,9 +27,9 @@
27
27
  </svg>`}
28
28
  </paper-button>
29
29
  <div slot="content" class="popover-content" dir="auto">
30
- ${this.error?D` <div class="error-message">${this.error}</div> `:""}
30
+ ${this.error?q` <div class="error-message">${this.error}</div> `:""}
31
31
  <div class="file-grid">
32
- ${this.files.map(t=>D`
32
+ ${this.files.map(t=>q`
33
33
  <div class="file-card">
34
34
  <button
35
35
  class="remove-btn"
@@ -49,12 +49,12 @@
49
49
  </button>
50
50
  ${this.getFilePreview(t)}
51
51
  <div class="file-name">${t.name}</div>
52
- ${t.size?D`<div class="file-size">
52
+ ${t.size?q`<div class="file-size">
53
53
  ${this.formatFileSize(t.size)}
54
54
  </div>`:""}
55
55
  </div>
56
56
  `)}
57
- ${this.files.length<this.maxFiles?D`
57
+ ${this.files.length<this.maxFiles?q`
58
58
  <div class="file-card">
59
59
  <label class="add-files-btn">
60
60
  <cdtr-icon name="add" size="32"></cdtr-icon>
@@ -66,12 +66,12 @@
66
66
  @change=${this.handleFileSelect}
67
67
  />
68
68
  </label>
69
- ${this.isLoading?D`<div class="loading-overlay">
69
+ ${this.isLoading?q`<div class="loading-overlay">
70
70
  <div class="loading-spinner"></div>
71
71
  <div class="loading-text">${this.loadingText}</div>
72
72
  </div>`:""}
73
73
  </div>
74
- `:D`
74
+ `:q`
75
75
  <div class="error-message">
76
76
  ${this.maxFilesReachedText} (${this.maxFiles})
77
77
  </div>
@@ -79,14 +79,14 @@
79
79
  </div>
80
80
  </div>
81
81
  </cdtr-popover>
82
- ${this.files.length>0?D`
82
+ ${this.files.length>0?q`
83
83
  <div class="preview-strip">
84
- ${this.files.slice(0,3).map(t=>D`
85
- ${"image"===t.type?D`<img
84
+ ${this.files.slice(0,3).map(t=>q`
85
+ ${"image"===t.type?q`<img
86
86
  class="preview-icon-image"
87
87
  src=${t.url}
88
88
  alt=${t.name}
89
- />`:D` <div class="preview-icon-card">
89
+ />`:q` <div class="preview-icon-card">
90
90
  <svg
91
91
  class="preview-icon"
92
92
  xmlns="http://www.w3.org/2000/svg"
@@ -99,13 +99,13 @@
99
99
  </svg>
100
100
  </div>`}
101
101
  `)}
102
- ${this.files.length>3?D`<span class="preview-count"
102
+ ${this.files.length>3?q`<span class="preview-count"
103
103
  >+${this.files.length-3}</span
104
104
  >`:""}
105
105
  </div>
106
106
  `:""}
107
107
  </div>
108
- `}};ft.styles=(function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];const r=1===t.length?t[0]:i.reduce((e,i,s)=>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.")})(i)+t[s+1],t[0]);return new l(r,t,o)})`
108
+ `}};gt.styles=(function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];const r=1===t.length?t[0]:i.reduce((e,i,s)=>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.")})(i)+t[s+1],t[0]);return new l(r,t,o)})`
109
109
  .file-grid {
110
110
  display: grid;
111
111
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
@@ -315,4 +315,4 @@
315
315
  }
316
316
 
317
317
 
318
- `,ft.properties={files:{type:Array},maxFiles:{type:Number},maxFileSizeMB:{type:Number},isLoading:{type:Boolean},buttonText:{type:String},addFilesText:{type:String},maxFilesReachedText:{type:String},iconColor:{type:String},fileTooLargeText:{type:String},error:{type:String},customColor:{type:String},customTextColor:{type:String},loadingText:{type:String}},ut([function(t){return(e,i)=>"object"==typeof i?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dt,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;const{kind:s,metadata:r}=i;let o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),o.set(i.name,t),"accessor"===s){const{name:s}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(s,r,t)},init(e){return void 0!==e&&this.C(s,void 0,t,e),e}}}if("setter"===s){const{name:s}=i;return function(i){const r=this[s];e.call(this,i),this.requestUpdate(s,r,t)}}throw Error("Unsupported decorator location: "+s)}(t,e,i):((t,e,i)=>{const s=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),s?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}({type:Object,attribute:!1})],ft.prototype,"lazyLoad",2),ft=ut([(t=>(e,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)})("cdtr-attached-files-plugin")],ft)}}]);
318
+ `,gt.properties={files:{type:Array},maxFiles:{type:Number},maxFileSizeMB:{type:Number},isLoading:{type:Boolean},buttonText:{type:String},addFilesText:{type:String},maxFilesReachedText:{type:String},iconColor:{type:String},fileTooLargeText:{type:String},error:{type:String},customColor:{type:String},customTextColor:{type:String},loadingText:{type:String}},ft([function(t){return(e,i)=>"object"==typeof i?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ct,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;const{kind:s,metadata:r}=i;let o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),o.set(i.name,t),"accessor"===s){const{name:s}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(s,r,t,!0,i)},init(e){return void 0!==e&&this.C(s,void 0,t,e),e}}}if("setter"===s){const{name:s}=i;return function(i){const r=this[s];e.call(this,i),this.requestUpdate(s,r,t,!0,i)}}throw Error("Unsupported decorator location: "+s)}(t,e,i):((t,e,i)=>{const s=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),s?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}({type:Object,attribute:!1})],gt.prototype,"lazyLoad",2),gt=ft([(t=>(e,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)})("cdtr-attached-files-plugin")],gt)}}]);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,195 @@
1
+ /*! For license information please see 2682.creaditor.bundle.js.LICENSE.txt */
2
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2682],{2682(e,t,s){s.r(t);var o=s(14583),i=Object.defineProperty,n=(e,t,s)=>((e,t,s)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s)(e,"symbol"!=typeof t?t+"":t,s);const r=2;class d{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const c=(e,t)=>{var s;const o=e._$AN;if(void 0===o)return!1;for(const e of o)null==(s=e._$AO)||s.call(e,t,!1),c(e,t);return!0},a=e=>{let t,s;do{if(void 0===(t=e._$AM))break;s=t._$AN,s.delete(e),e=t}while(0===(null==s?void 0:s.size))},h=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(void 0===s)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),p(t)}};function l(e){void 0!==this._$AN?(a(this),this._$AM=e,h(this)):this._$AM=e}function u(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(o))for(let e=s;e<o.length;e++)c(o[e],!1),a(o[e]);else null!=o&&(c(o,!1),a(o));else c(this,e)}const p=e=>{e.type==r&&(e._$AP??(e._$AP=u),e._$AQ??(e._$AQ=l))};class b extends d{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,s){super._$AT(e,t,s),h(this),this.isConnected=e._$AU}_$AO(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var s,o;e!==this.isConnected&&(this.isConnected=e,e?null==(s=this.reconnected)||s.call(this):null==(o=this.disconnected)||o.call(this)),t&&(c(this,e),a(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class f{}const v=new WeakMap,m=(g=class extends b{render(e){return o.A}update(e,t){let[s]=t;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=e.options)?void 0:i.host,this.rt(this.ct=e.element)),o.A}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){const t=this.ht??globalThis;let s=v.get(t);void 0===s&&(s=new WeakMap,v.set(t,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){var e,t;return"function"==typeof this.G?null==(e=v.get(this.ht??globalThis))?void 0:e.get(this.G):null==(t=this.G)?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}},function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return{_$litDirective$:g,values:t}});var g;let w=1500;function y(){return w++}class x extends o.i{constructor(){super(),n(this,"contentRef",new f),this.toggle=this.toggle.bind(this),this.onEnter=this.onEnter.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.scheduleCalc=this.scheduleCalc.bind(this),this._calcScheduled=!1,this._resizeObserver=null,this.overflow=!0,this.maxHeight=300,this.left=0,this.top=0,this.custom=!1,this.opened=!1}close(){this.toggle()}onBouncing(e){this.searchText=e.target.value;const t=new UIEvent("search",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}render(){return o.b`
3
+ <slot @click=${()=>this.toggle()} tabindex="0" name="trigger"></slot>
4
+ ${this.opened?o.b` <div
5
+ @mouseup=${this.onClickOutside}
6
+ @mousemove=${this.onPointerMove}
7
+ class="backdrop"
8
+ style="z-index:${y()};"
9
+ >
10
+ <div
11
+ ${m(this.contentRef)}
12
+ @mouseup=${this.preventClosing}
13
+ style="z-index:${y()};left:${this.left}px;top:${this.top}px;"
14
+ class="dropdown-content fade-in ${this.custom?"":"dropdown-background"}"
15
+ >
16
+ ${this.search?o.b`<cdtr-input
17
+ @input=${this.onBouncing}
18
+ type="search"
19
+ value=${this.searchText}
20
+ ></cdtr-input>`:null}
21
+ <slot name="content"></slot>
22
+ </div>
23
+ </div>`:null}
24
+ `}preventClosing(e){return e.stopPropagation(),setTimeout(()=>{this.calcRects()},0),!1}onClickOutside(){this.toggle(!1)}updated(){const e=this.contentRef.value;this.opened&&e?(e.classList.add("fade-in"),this.scheduleCalc(),!this._resizeObserver&&typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(this.scheduleCalc),this._resizeObserver.observe(e))):!this.opened&&this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}scheduleCalc(){this._calcScheduled||(this._calcScheduled=!0,requestAnimationFrame(()=>{this._calcScheduled=!1,this.opened&&this.calcRects()}))}calcRects(){var e;const t=null==(e=this.contentRef)?void 0:e.value;if(!t)return;const s=this.getBoundingClientRect(),o=document.documentElement,i=o.clientWidth||window.innerWidth,n=o.clientHeight||window.innerHeight,r=i-16,d=n-16;t.style.maxWidth=`${r}px`,t.style.maxHeight=`${Math.min(this.maxHeight||d,d)}px`;const c=t.getBoundingClientRect(),a=c.width,h=c.height;let l=s.left;l+a>i-8&&(l=i-8-a),l<8&&(l=8);let u=s.bottom;if(u+h>n-8){const e=s.top-h;u=e>=8?e:n-8-h}u<8&&(u=8),this.left=l,this.top=u,t.style.left=`${l}px`,t.style.top=`${u}px`,t.style.overflow=this.overflow?"hidden auto":"hidden"}toggle(){var e;const t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]||!this.opened;t?(window.removeEventListener("keydown",this.onKeydown),window.addEventListener("keydown",this.onKeydown),this.style.removeProperty("--cdtr-item-hover"),this.opened=t,setTimeout(()=>{const e=this.focusedItem=this.querySelector("cdtr-dropdown-item[focused]")||this.querySelector("cdtr-dropdown-item");e&&e.focus()},20)):(window.removeEventListener("keydown",this.onKeydown),null==(e=this.contentRef.value)||e.classList.add("fade-out"),setTimeout(()=>{this.opened=t},150)),this.setAttribute("aria-expanded",t)}onEnter(e){e.target===this&&13===e.keyCode&&this.toggle()}onPointerMove(){this.style.removeProperty("--cdtr-item-hover")}onKeydown(e){(40===e.keyCode||38===e.keyCode)&&this.style.setProperty("--cdtr-item-hover","transparent"),this.focusedItem&&40===e.keyCode&&this.focusedItem.nextElementSibling&&"CDTR-DROPDOWN-ITEM"===this.focusedItem.nextElementSibling.nodeName?(this.focusedItem=this.focusedItem.nextElementSibling,this.focusedItem&&this.focusedItem.focus()):this.focusedItem&&38===e.keyCode&&this.focusedItem.previousElementSibling&&"CDTR-DROPDOWN-ITEM"===this.focusedItem.previousElementSibling.nodeName?(this.focusedItem=this.focusedItem.previousElementSibling,this.focusedItem&&this.focusedItem.focus()):27===e.keyCode&&this.toggle();const t=new UIEvent("keypress",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}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),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}patch(e){this.value=e,this.toggle(!1);const t=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t),setTimeout(()=>{this.focus()},0)}}n(x,"styles",o.a`
25
+ :host {
26
+ display: inline-block;
27
+ overflow: hidden;
28
+ box-sizing: border-box;
29
+ }
30
+
31
+ .backdrop {
32
+ position: fixed;
33
+ top: 0;
34
+ left: 0;
35
+ width: 100%;
36
+ height: 100%;
37
+ background: transparent;
38
+ overflow: hidden;
39
+ }
40
+ /* padding lives here so custom content stays flush against the panel */
41
+ .dropdown-background {
42
+ background: #fff;
43
+ padding: 4px;
44
+ }
45
+ .dropdown-content {
46
+ box-sizing: border-box;
47
+ min-width: 180px;
48
+ min-height: 40px;
49
+ position: fixed;
50
+ border-radius: 10px;
51
+ border: 1px solid #eceef1;
52
+ /* layered depth: a tight ambient edge + a soft key shadow */
53
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06),
54
+ 0 8px 24px -6px rgba(16, 24, 40, 0.16);
55
+ transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
56
+ }
57
+ .fade-in {
58
+ animation: fade-in 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
59
+ }
60
+ .fade-out {
61
+ animation: fade-out 140ms ease both;
62
+ opacity: 0;
63
+ }
64
+ @keyframes fade-in {
65
+ from {
66
+ opacity: 0;
67
+ transform: translateY(-6px) scale(0.98);
68
+ }
69
+ to {
70
+ opacity: 1;
71
+ transform: none;
72
+ }
73
+ }
74
+ @keyframes fade-out {
75
+ from {
76
+ opacity: 1;
77
+ }
78
+ to {
79
+ opacity: 0;
80
+ transform: translateY(-4px);
81
+ }
82
+ }
83
+ @media (prefers-reduced-motion: reduce) {
84
+ .fade-in,
85
+ .fade-out {
86
+ animation-duration: 1ms;
87
+ transform: none;
88
+ }
89
+ }
90
+ `),n(x,"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 k extends o.i{constructor(){super(),this.minWidth=50}render(){return o.b`<paper-button style="min-width:${this.minWidth}px"
91
+ ><slot></slot> <cdtr-dd-arrow-icon></cdtr-dd-arrow-icon
92
+ ></paper-button>`}}n(k,"properties",{minWidth:{type:Number}}),n(k,"styles",o.a`
93
+ paper-button {
94
+ display: flex;
95
+ align-items: center;
96
+ justify-content: space-between;
97
+ gap: 8px;
98
+ text-transform: capitalize;
99
+ width: 100%;
100
+ line-height: 1.4;
101
+ font-size: 13px;
102
+ font-weight: 500;
103
+ color: rgb(33, 37, 41);
104
+ background: rgb(255, 255, 255);
105
+ background-clip: padding-box;
106
+ border: 1px solid var(--input-border-color, #ced4da);
107
+ appearance: none;
108
+ border-radius: 8px;
109
+ transition: border-color 0.15s ease-in-out 0s,
110
+ box-shadow 0.15s ease-in-out 0s, background-color 0.15s ease-in-out 0s;
111
+ margin: 0px;
112
+ font-family: var(--font-family, "Inter", Arial, sans-serif);
113
+ box-sizing: border-box;
114
+ padding: 7px 10px;
115
+ cursor: pointer;
116
+ }
117
+ paper-button:hover {
118
+ border-color: #9aa1a9;
119
+ background: #fbfbfc;
120
+ }
121
+ paper-button:focus,
122
+ paper-button:focus-within {
123
+ outline: none;
124
+ border-color: var(--cdtr-dropdown-accent, #7c5cf6);
125
+ box-shadow: 0 0 0 3px rgba(124, 92, 246, 0.2);
126
+ }
127
+ `);class $ extends o.i{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(e){if(this.notClickable)return;const t=this.closest("cdtr-dropdown");t&&t.patch(this.value,e,this)}onPress(e){if(13===e.keyCode){const t=new UIEvent("click",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t);const s=this.closest("cdtr-dropdown");s&&s.patch(this.value,e,this)}}connectedCallback(){super.connectedCallback(),this.selected&&this.scrollIntoView({behavior:"smooth",block:"start"})}render(){return o.b`<div role="button"
128
+ @click=${this.onClick}
129
+ @keydown=${this.onPress}
130
+ @blur=${this.onBlur}
131
+ @focus=${this.onFocus}
132
+ class="dropdown-item"
133
+ tabindex="0"
134
+ >
135
+ <slot></slot>
136
+ ${this.selected?o.b` <svg
137
+ class="check"
138
+ fill="currentColor"
139
+ xmlns="http://www.w3.org/2000/svg"
140
+ viewBox="0 0 24 24"
141
+ aria-hidden="true"
142
+ >
143
+ <path fill="none" d="M0 0h24v24H0z" />
144
+ <path
145
+ d="M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z"
146
+ />
147
+ </svg>`:null}
148
+ </div>`}}n($,"properties",{focused:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},value:{type:String,reflect:!0},notClickable:{type:Boolean}}),n($,"styles",o.a`
149
+ .dropdown-item {
150
+ position: relative;
151
+ box-sizing: border-box;
152
+ display: flex;
153
+ align-items: center;
154
+ justify-content: space-between;
155
+ gap: 10px;
156
+ width: 100%;
157
+ padding: 8px 12px;
158
+ border-radius: 6px;
159
+ font-family: var(--font-family, "Inter", Arial, sans-serif);
160
+ font-size: 13px;
161
+ line-height: 1.4;
162
+ color: #212529;
163
+ cursor: pointer;
164
+ user-select: none;
165
+ transition: background-color 120ms ease, color 120ms ease,
166
+ box-shadow 120ms ease;
167
+ }
168
+ /* hover = a translucent violet wash: ephemeral pointer feedback. The
169
+ parent sets --cdtr-item-hover to transparent while arrow-key
170
+ navigating so it never competes with the keyboard cursor below. */
171
+ .dropdown-item:hover {
172
+ background: var(--cdtr-item-hover, rgba(124, 92, 246, 0.1));
173
+ }
174
+ /* keyboard cursor: stronger wash + a left accent bar, so "where am I"
175
+ reads at a glance and is distinct from both hover and selected */
176
+ .dropdown-item:focus {
177
+ outline: none;
178
+ background: rgba(124, 92, 246, 0.16);
179
+ color: var(--cdtr-dropdown-accent-ink, #5a3cc9);
180
+ box-shadow: inset 3px 0 0 var(--cdtr-dropdown-accent, #7c5cf6);
181
+ }
182
+ /* selected = the committed choice: a SOLID chip (opaque, not a wash),
183
+ accent text, weight, and a check — so it can't be mistaken for hover */
184
+ :host([selected]) .dropdown-item {
185
+ color: var(--cdtr-dropdown-accent-ink, #5a3cc9);
186
+ font-weight: 600;
187
+ background: var(--cdtr-dropdown-selected-bg, #efeaff);
188
+ }
189
+ .check {
190
+ width: 16px;
191
+ height: 16px;
192
+ flex: none;
193
+ color: var(--cdtr-dropdown-accent, #7c5cf6);
194
+ }
195
+ `),customElements.get("cdtr-dropdown-item")||customElements.define("cdtr-dropdown-item",$),customElements.get("cdtr-dropdown-button")||customElements.define("cdtr-dropdown-button",k),customElements.get("cdtr-dropdown")||customElements.define("cdtr-dropdown",x)}}]);
@@ -4,12 +4,6 @@
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
6
 
7
- /**
8
- * @license
9
- * Copyright 2019 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */
12
-
13
7
  /**
14
8
  * @license
15
9
  * Copyright 2020 Google LLC
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file