@mintplayer/web-components 2.18.0 → 2.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1022) hide show
  1. package/a11y/index.mjs +1 -29
  2. package/accordion/index.mjs +190 -530
  3. package/calendar/index.mjs +1 -4
  4. package/card/index.mjs +59 -328
  5. package/card/src/mp-card.element.d.ts +5 -13
  6. package/carousel/index.mjs +392 -845
  7. package/charts/core/index.mjs +502 -32
  8. package/charts/hierarchy/index.mjs +812 -1197
  9. package/charts/sparkline/index.mjs +127 -161
  10. package/charts/trend/index.mjs +306 -411
  11. package/checkbox/index.mjs +1 -4
  12. package/chunks/a11y-C6aX-lsZ.mjs +532 -0
  13. package/chunks/ac-aJXc45zA.mjs +4 -0
  14. package/chunks/ad-BTMXfwNh.mjs +4 -0
  15. package/chunks/ae-BrzD6osX.mjs +4 -0
  16. package/chunks/af-3UZ2_zTj.mjs +4 -0
  17. package/chunks/ag-KRBsuK2a.mjs +4 -0
  18. package/chunks/ai-BswLJAYs.mjs +4 -0
  19. package/chunks/al-wkJnSVxF.mjs +4 -0
  20. package/chunks/all-flags.generated-DtfbMnSZ.mjs +249 -0
  21. package/chunks/am-CVqI42UW.mjs +4 -0
  22. package/chunks/ao-85WVAZW6.mjs +4 -0
  23. package/chunks/ar-DJGfKADQ.mjs +4 -0
  24. package/chunks/as-BA11KqFF.mjs +4 -0
  25. package/chunks/at-BWbwtZ8t.mjs +4 -0
  26. package/chunks/au-gcOCUxgy.mjs +4 -0
  27. package/chunks/aw-cquGJK0_.mjs +4 -0
  28. package/chunks/ax-CqFz-_7-.mjs +4 -0
  29. package/chunks/az-CtGxDo7C.mjs +4 -0
  30. package/chunks/ba-Du5giA_b.mjs +4 -0
  31. package/chunks/bb-Bv08A_ob.mjs +4 -0
  32. package/chunks/bd-DNB5oj3n.mjs +4 -0
  33. package/chunks/be-CRVNdrRc.mjs +4 -0
  34. package/chunks/bf-CkLDaLFq.mjs +4 -0
  35. package/chunks/bg-5J0EZyQA.mjs +4 -0
  36. package/chunks/bh-Dm3fVyBc.mjs +4 -0
  37. package/chunks/bi-BpldTGS9.mjs +4 -0
  38. package/chunks/bj-Bn2B1hkk.mjs +4 -0
  39. package/chunks/bl-Dozbp4JI.mjs +4 -0
  40. package/chunks/bm-DMwDEJDn.mjs +4 -0
  41. package/chunks/bn-38iFiYIW.mjs +4 -0
  42. package/chunks/bo-C7Z0bS7Y.mjs +4 -0
  43. package/chunks/bq-Bp_dK3bp.mjs +4 -0
  44. package/chunks/br-C1y3qYTo.mjs +4 -0
  45. package/chunks/bs-DvapNTm6.mjs +4 -0
  46. package/chunks/bt-4BBK2CzL.mjs +4 -0
  47. package/chunks/bw-gFoFnfsO.mjs +4 -0
  48. package/chunks/by-BcXeEIqn.mjs +4 -0
  49. package/chunks/bz-DiNvPmet.mjs +4 -0
  50. package/chunks/ca-B6_-P3Ki.mjs +4 -0
  51. package/chunks/calendar-BufRj_ob.mjs +270 -0
  52. package/chunks/cc-1.generated-Bz6a4Z5J.mjs +575 -0
  53. package/chunks/cc-20.generated-B2Zbp_CG.mjs +56 -0
  54. package/chunks/cc-211.generated-ChWU4ZnK.mjs +27 -0
  55. package/chunks/cc-212.generated-rW7bueR8.mjs +77 -0
  56. package/chunks/cc-213.generated-Dk100iVd.mjs +52 -0
  57. package/chunks/cc-216.generated-Da9XXIxn.mjs +37 -0
  58. package/chunks/cc-218.generated-B9dPA_jz.mjs +27 -0
  59. package/chunks/cc-220.generated-BD583LXg.mjs +26 -0
  60. package/chunks/cc-221.generated-FnrRCGhQ.mjs +41 -0
  61. package/chunks/cc-222.generated-RIcsN1By.mjs +30 -0
  62. package/chunks/cc-223.generated-BJYOhmxL.mjs +30 -0
  63. package/chunks/cc-224.generated-ZVRf4s4P.mjs +40 -0
  64. package/chunks/cc-225.generated-B37F4h_L.mjs +30 -0
  65. package/chunks/cc-226.generated-DX6w8SIQ.mjs +26 -0
  66. package/chunks/cc-227.generated-DWvIJCqw.mjs +35 -0
  67. package/chunks/cc-228.generated-CYnF-A2j.mjs +26 -0
  68. package/chunks/cc-229.generated-BHENEfHM.mjs +40 -0
  69. package/chunks/cc-230.generated-CCkgyUCO.mjs +53 -0
  70. package/chunks/cc-231.generated-Cy_W19Ec.mjs +50 -0
  71. package/chunks/cc-232.generated-bZc5ux9j.mjs +27 -0
  72. package/chunks/cc-233.generated-DtiURqLW.mjs +36 -0
  73. package/chunks/cc-234.generated-ISth71Yl.mjs +67 -0
  74. package/chunks/cc-235.generated-PAizMnHl.mjs +27 -0
  75. package/chunks/cc-236.generated-ZPS5oQTo.mjs +31 -0
  76. package/chunks/cc-237.generated-fOpKOXN1.mjs +34 -0
  77. package/chunks/cc-238.generated-DLsZAArj.mjs +36 -0
  78. package/chunks/cc-239.generated-Dq7UEEQw.mjs +26 -0
  79. package/chunks/cc-240.generated-B5rtjDFe.mjs +35 -0
  80. package/chunks/cc-241.generated-C2tPOfsp.mjs +40 -0
  81. package/chunks/cc-242.generated-12ELhWHE.mjs +35 -0
  82. package/chunks/cc-243.generated-Co_QscFq.mjs +64 -0
  83. package/chunks/cc-244.generated-CHVaQJzk.mjs +26 -0
  84. package/chunks/cc-245.generated-Dlfots5d.mjs +40 -0
  85. package/chunks/cc-246.generated-ml5FnCdW.mjs +26 -0
  86. package/chunks/cc-247.generated-D8iUb2b4.mjs +30 -0
  87. package/chunks/cc-248.generated-ByNbG_tW.mjs +37 -0
  88. package/chunks/cc-249.generated-B1uFXVYg.mjs +27 -0
  89. package/chunks/cc-250.generated-Db4-CYfI.mjs +44 -0
  90. package/chunks/cc-251.generated-Dk9Nsbz4.mjs +27 -0
  91. package/chunks/cc-252.generated-DzLVy7Wj.mjs +62 -0
  92. package/chunks/cc-253.generated-BAAxb4Dd.mjs +26 -0
  93. package/chunks/cc-254.generated-CQb3622R.mjs +55 -0
  94. package/chunks/cc-255.generated-CkU7A9vn.mjs +57 -0
  95. package/chunks/cc-256.generated-CPuR1ls2.mjs +46 -0
  96. package/chunks/cc-257.generated-Bop3IKkH.mjs +26 -0
  97. package/chunks/cc-258.generated-CrhWzLYO.mjs +34 -0
  98. package/chunks/cc-260.generated-CM31-F_r.mjs +42 -0
  99. package/chunks/cc-261.generated-Cc1Yk2ga.mjs +37 -0
  100. package/chunks/cc-262.generated-iNq4Bsyg.mjs +64 -0
  101. package/chunks/cc-263.generated-BNSZQW1U.mjs +100 -0
  102. package/chunks/cc-264.generated-BYq3HF_4.mjs +57 -0
  103. package/chunks/cc-265.generated-55Al2n2g.mjs +32 -0
  104. package/chunks/cc-266.generated-CC24vRZU.mjs +30 -0
  105. package/chunks/cc-267.generated-Cy1cO0r8.mjs +62 -0
  106. package/chunks/cc-268.generated-CuFPqOA0.mjs +40 -0
  107. package/chunks/cc-269.generated-CCOchMHW.mjs +31 -0
  108. package/chunks/cc-27.generated-CgwGi0oo.mjs +77 -0
  109. package/chunks/cc-290.generated-WRbX8Uzp.mjs +48 -0
  110. package/chunks/cc-291.generated-CHqtf344.mjs +27 -0
  111. package/chunks/cc-297.generated-BNaG__hC.mjs +36 -0
  112. package/chunks/cc-298.generated-BXnC-JHy.mjs +36 -0
  113. package/chunks/cc-299.generated-B9EtLFYo.mjs +36 -0
  114. package/chunks/cc-30.generated-JiXqSdPm.mjs +58 -0
  115. package/chunks/cc-31.generated-T-PhKf6W.mjs +91 -0
  116. package/chunks/cc-32.generated-3jhsIH05.mjs +58 -0
  117. package/chunks/cc-33.generated-CKpraBu-.mjs +43 -0
  118. package/chunks/cc-34.generated-4ZOoUv3E.mjs +41 -0
  119. package/chunks/cc-350.generated-BZeZIKv3.mjs +26 -0
  120. package/chunks/cc-351.generated-Ca4DVFZ8.mjs +41 -0
  121. package/chunks/cc-352.generated-C5JanZQk.mjs +96 -0
  122. package/chunks/cc-353.generated-BgLwqLra.mjs +98 -0
  123. package/chunks/cc-354.generated-BgTnQRlC.mjs +41 -0
  124. package/chunks/cc-355.generated-DGYepZoL.mjs +69 -0
  125. package/chunks/cc-356.generated-BsVo-WVa.mjs +36 -0
  126. package/chunks/cc-357.generated-b5F9kBHS.mjs +37 -0
  127. package/chunks/cc-358.generated-sIEQmG3a.mjs +136 -0
  128. package/chunks/cc-359.generated-Djbt0V64.mjs +92 -0
  129. package/chunks/cc-36.generated-GYQWm_pU.mjs +51 -0
  130. package/chunks/cc-370.generated-CRvXymMq.mjs +62 -0
  131. package/chunks/cc-371.generated-BR2fz2JU.mjs +37 -0
  132. package/chunks/cc-372.generated-DNvOnI-D.mjs +53 -0
  133. package/chunks/cc-373.generated-CIFhOyHu.mjs +52 -0
  134. package/chunks/cc-374.generated-C3JO10F2.mjs +58 -0
  135. package/chunks/cc-375.generated-CdSXpaA5.mjs +77 -0
  136. package/chunks/cc-376.generated-JuZXGLxH.mjs +47 -0
  137. package/chunks/cc-377.generated-D6OxfwEg.mjs +44 -0
  138. package/chunks/cc-378.generated-1P6hL48M.mjs +40 -0
  139. package/chunks/cc-380.generated-DgzzIFUj.mjs +58 -0
  140. package/chunks/cc-381.generated-D_ItFJFw.mjs +65 -0
  141. package/chunks/cc-382.generated-DuYOeAO_.mjs +37 -0
  142. package/chunks/cc-383.generated-R6R6iExY.mjs +58 -0
  143. package/chunks/cc-385.generated-CsDeMCh1.mjs +77 -0
  144. package/chunks/cc-386.generated-CprplXRX.mjs +67 -0
  145. package/chunks/cc-387.generated-7j6TIOUR.mjs +52 -0
  146. package/chunks/cc-389.generated-BoKyJU1O.mjs +52 -0
  147. package/chunks/cc-39.generated-CD2WXEy7.mjs +144 -0
  148. package/chunks/cc-40.generated-BXVz6ZEf.mjs +60 -0
  149. package/chunks/cc-41.generated-Blq73F9R.mjs +52 -0
  150. package/chunks/cc-420.generated-CGBM0u2Z.mjs +59 -0
  151. package/chunks/cc-421.generated-TZXTbujK.mjs +68 -0
  152. package/chunks/cc-423.generated-0jWk7aQw.mjs +51 -0
  153. package/chunks/cc-43.generated-CWC77-QL.mjs +124 -0
  154. package/chunks/cc-44.generated-BjNEEm72.mjs +185 -0
  155. package/chunks/cc-45.generated-D2fAEViK.mjs +31 -0
  156. package/chunks/cc-46.generated-Cc7ziKiQ.mjs +151 -0
  157. package/chunks/cc-47.generated-BfsXOmTn.mjs +68 -0
  158. package/chunks/cc-48.generated-qLLhGlDM.mjs +80 -0
  159. package/chunks/cc-49.generated-V5s3zaiK.mjs +207 -0
  160. package/chunks/cc-500.generated-BthGq2Lz.mjs +22 -0
  161. package/chunks/cc-501.generated-D3OEBYfs.mjs +34 -0
  162. package/chunks/cc-502.generated-DuGMlanj.mjs +35 -0
  163. package/chunks/cc-503.generated-D6WQdJRe.mjs +47 -0
  164. package/chunks/cc-504.generated-CnaVgqYu.mjs +30 -0
  165. package/chunks/cc-505.generated-BymEBjCD.mjs +30 -0
  166. package/chunks/cc-506.generated-DECPXw0C.mjs +40 -0
  167. package/chunks/cc-507.generated-B3GcK3L_.mjs +48 -0
  168. package/chunks/cc-508.generated-Dyuwoas9.mjs +45 -0
  169. package/chunks/cc-509.generated-CFrvVAgw.mjs +36 -0
  170. package/chunks/cc-51.generated-Chb_sPYg.mjs +59 -0
  171. package/chunks/cc-52.generated-ByiHdoYn.mjs +42 -0
  172. package/chunks/cc-53.generated-DJSsiaD5.mjs +63 -0
  173. package/chunks/cc-54.generated-CHWQhBUJ.mjs +99 -0
  174. package/chunks/cc-55.generated-B1A8n_Eu.mjs +62 -0
  175. package/chunks/cc-56.generated-BIagT3im.mjs +86 -0
  176. package/chunks/cc-57.generated-BI-iKXi5.mjs +56 -0
  177. package/chunks/cc-58.generated-ChHB0yFM.mjs +35 -0
  178. package/chunks/cc-590.generated-eh5bgg8N.mjs +96 -0
  179. package/chunks/cc-591.generated-DtljIXWS.mjs +48 -0
  180. package/chunks/cc-592.generated-BFJXRJtp.mjs +36 -0
  181. package/chunks/cc-593.generated-BnzrDC9X.mjs +57 -0
  182. package/chunks/cc-594.generated-GeVqoxTf.mjs +42 -0
  183. package/chunks/cc-595.generated-Cb147_Es.mjs +99 -0
  184. package/chunks/cc-596.generated-Awrujeyi.mjs +42 -0
  185. package/chunks/cc-597.generated-x82tPU7m.mjs +48 -0
  186. package/chunks/cc-598.generated-C0CFFA9e.mjs +90 -0
  187. package/chunks/cc-599.generated-CBNiFVLG.mjs +57 -0
  188. package/chunks/cc-60.generated-BsEWXQGR.mjs +72 -0
  189. package/chunks/cc-61.generated-D1GBs6cI.mjs +165 -0
  190. package/chunks/cc-62.generated-wMxDe6Yk.mjs +121 -0
  191. package/chunks/cc-63.generated-CdGxow0i.mjs +90 -0
  192. package/chunks/cc-64.generated-RnYaXyOf.mjs +88 -0
  193. package/chunks/cc-65.generated-DLu3ZfUr.mjs +57 -0
  194. package/chunks/cc-66.generated-Bak_QXSf.mjs +55 -0
  195. package/chunks/cc-670.generated-C99GtcUk.mjs +36 -0
  196. package/chunks/cc-672.generated-CSfxhA5g.mjs +30 -0
  197. package/chunks/cc-673.generated-CBepp8Kp.mjs +36 -0
  198. package/chunks/cc-674.generated-CUruGGLX.mjs +26 -0
  199. package/chunks/cc-675.generated-CJAYoKiM.mjs +41 -0
  200. package/chunks/cc-676.generated-D0aVoKBX.mjs +48 -0
  201. package/chunks/cc-677.generated-CboriHtH.mjs +36 -0
  202. package/chunks/cc-678.generated-tV4dzsm1.mjs +36 -0
  203. package/chunks/cc-679.generated-r1SqDRTw.mjs +35 -0
  204. package/chunks/cc-680.generated-CUJSNlon.mjs +26 -0
  205. package/chunks/cc-681.generated-CqZqTSzv.mjs +40 -0
  206. package/chunks/cc-682.generated-DsTDPJJe.mjs +26 -0
  207. package/chunks/cc-683.generated-C46F0xza.mjs +26 -0
  208. package/chunks/cc-685.generated-3mzM0WBI.mjs +47 -0
  209. package/chunks/cc-686.generated-B7jAfSaz.mjs +32 -0
  210. package/chunks/cc-687.generated-DUkxCl-t.mjs +31 -0
  211. package/chunks/cc-688.generated-Bwg6wtz6.mjs +42 -0
  212. package/chunks/cc-689.generated-DIjPyQbi.mjs +52 -0
  213. package/chunks/cc-690.generated-BkBOgCj0.mjs +27 -0
  214. package/chunks/cc-691.generated-CRgqR_eS.mjs +26 -0
  215. package/chunks/cc-692.generated-xoIqpcZG.mjs +36 -0
  216. package/chunks/cc-7.generated-CVaWdxzG.mjs +99 -0
  217. package/chunks/cc-81.generated-BsK5UKLx.mjs +100 -0
  218. package/chunks/cc-82.generated-BcgfVP49.mjs +96 -0
  219. package/chunks/cc-84.generated-C_NDe2op.mjs +81 -0
  220. package/chunks/cc-850.generated-5uPEB20Q.mjs +41 -0
  221. package/chunks/cc-852.generated-Cmcj41zv.mjs +66 -0
  222. package/chunks/cc-853.generated-5Q5aYzYP.mjs +34 -0
  223. package/chunks/cc-855.generated-CyoP_AvI.mjs +40 -0
  224. package/chunks/cc-856.generated-UaGUxAVX.mjs +45 -0
  225. package/chunks/cc-86.generated-C76vQ-PG.mjs +131 -0
  226. package/chunks/cc-880.generated-DTQZvOwQ.mjs +63 -0
  227. package/chunks/cc-886.generated-BlEIkmSb.mjs +89 -0
  228. package/chunks/cc-90.generated-B6QJof50.mjs +70 -0
  229. package/chunks/cc-91.generated-BFtdPEFf.mjs +120 -0
  230. package/chunks/cc-92.generated-Dmc8JLXg.mjs +84 -0
  231. package/chunks/cc-93.generated-zx8cBy1Z.mjs +27 -0
  232. package/chunks/cc-94.generated-Blu9IgSY.mjs +40 -0
  233. package/chunks/cc-95.generated-DCr59wbp.mjs +103 -0
  234. package/chunks/cc-960.generated-D1_nf00O.mjs +39 -0
  235. package/chunks/cc-961.generated-DxRflmbQ.mjs +42 -0
  236. package/chunks/cc-962.generated-DxZQb06J.mjs +58 -0
  237. package/chunks/cc-963.generated-uiT34jBy.mjs +34 -0
  238. package/chunks/cc-964.generated-BOKCnQHJ.mjs +45 -0
  239. package/chunks/cc-965.generated-CxNoEz0A.mjs +34 -0
  240. package/chunks/cc-966.generated-DhI8Ntyw.mjs +56 -0
  241. package/chunks/cc-967.generated-ContxwI-.mjs +36 -0
  242. package/chunks/cc-968.generated-v531jzFw.mjs +47 -0
  243. package/chunks/cc-970.generated-ChNVoJlm.mjs +55 -0
  244. package/chunks/cc-971.generated-xlS_839v.mjs +65 -0
  245. package/chunks/cc-972.generated-C5zT9loz.mjs +87 -0
  246. package/chunks/cc-973.generated-GoMZ3x5A.mjs +37 -0
  247. package/chunks/cc-974.generated-CHoLGfhR.mjs +48 -0
  248. package/chunks/cc-975.generated-BILSPn9k.mjs +30 -0
  249. package/chunks/cc-976.generated-4w3Zjm18.mjs +66 -0
  250. package/chunks/cc-977.generated-QcknaTKZ.mjs +48 -0
  251. package/chunks/cc-98.generated-C8ajgwoF.mjs +65 -0
  252. package/chunks/cc-992.generated-DUtoyFJd.mjs +44 -0
  253. package/chunks/cc-993.generated-DA_HUZYq.mjs +42 -0
  254. package/chunks/cc-994.generated-Bs9TDYzb.mjs +50 -0
  255. package/chunks/cc-995.generated-DeCplFKG.mjs +56 -0
  256. package/chunks/cc-996.generated-DIoF8HI4.mjs +45 -0
  257. package/chunks/cc-998.generated-mB6cuCsE.mjs +26 -0
  258. package/chunks/cc-C0VrlA3_.mjs +4 -0
  259. package/chunks/cd-TfcK0f07.mjs +4 -0
  260. package/chunks/cf-Cr0ikDYa.mjs +4 -0
  261. package/chunks/cg-BeLZ5g5O.mjs +4 -0
  262. package/chunks/ch-cyq7xzGy.mjs +4 -0
  263. package/chunks/checkbox-EnxkCGiC.mjs +271 -0
  264. package/chunks/ci-D2pSb2Ih.mjs +4 -0
  265. package/chunks/ck-htfFHGea.mjs +4 -0
  266. package/chunks/cl-CoYa3Pmk.mjs +4 -0
  267. package/chunks/cm-D6uug-DA.mjs +4 -0
  268. package/chunks/cn-D48FvmT7.mjs +4 -0
  269. package/chunks/co-Dww2Azv_.mjs +4 -0
  270. package/chunks/color-mode-warning-BWDrpfmR.mjs +11 -0
  271. package/chunks/cr-T0UM2nAQ.mjs +4 -0
  272. package/chunks/cu-CvSN3Q4W.mjs +4 -0
  273. package/chunks/cv-CselBvqy.mjs +4 -0
  274. package/chunks/cw-DBlAOQBG.mjs +4 -0
  275. package/chunks/cx-CT3aGae9.mjs +4 -0
  276. package/chunks/cy-BgOT9gkN.mjs +4 -0
  277. package/chunks/cz-pyOSY6aP.mjs +4 -0
  278. package/chunks/datatable-qkYf-N0c.mjs +1786 -0
  279. package/chunks/datetime-picker-BtroFVZZ.mjs +373 -0
  280. package/chunks/de-KGaNXoZN.mjs +4 -0
  281. package/chunks/decorate-_3lQte5d.mjs +9 -0
  282. package/chunks/dj-erTpydIV.mjs +4 -0
  283. package/chunks/dk-D1JuLNfO.mjs +4 -0
  284. package/chunks/dm-DCecBFF5.mjs +4 -0
  285. package/chunks/do-DSLfzWkU.mjs +4 -0
  286. package/chunks/dz-Ce9xahTz.mjs +4 -0
  287. package/chunks/ec-Bi76lWx3.mjs +4 -0
  288. package/chunks/ee-bSjXh051.mjs +4 -0
  289. package/chunks/eg-r6ELPNF6.mjs +4 -0
  290. package/chunks/eh-B9fkMRyx.mjs +4 -0
  291. package/chunks/er-udHBJByJ.mjs +4 -0
  292. package/chunks/es-Bu9WWdeR.mjs +4 -0
  293. package/chunks/et-CXZPC0sf.mjs +4 -0
  294. package/chunks/fi-dNG3mnm4.mjs +4 -0
  295. package/chunks/fj-DRC_-qUY.mjs +4 -0
  296. package/chunks/fk-J-PwBKbI.mjs +4 -0
  297. package/chunks/flags-BklZdqf-.mjs +268 -0
  298. package/chunks/fm-DdlXjhk_.mjs +4 -0
  299. package/chunks/fo-BF6Oan5b.mjs +4 -0
  300. package/chunks/form-check.styles-WIzQ8Lr8.mjs +5 -0
  301. package/chunks/form-control.styles-xkboF3PM.mjs +5 -0
  302. package/chunks/fr-m5fDKirC.mjs +4 -0
  303. package/chunks/ga-B4EBbkUA.mjs +4 -0
  304. package/chunks/gb-7vN41y_W.mjs +4 -0
  305. package/chunks/gd-oYxJTsCo.mjs +4 -0
  306. package/chunks/ge-DjFzwM58.mjs +4 -0
  307. package/chunks/gf-QpbaNTLf.mjs +4 -0
  308. package/chunks/gg-DD5U9436.mjs +4 -0
  309. package/chunks/gh-DwVF19eS.mjs +4 -0
  310. package/chunks/gi-UFWuuzET.mjs +4 -0
  311. package/chunks/gl-D6QboaPF.mjs +4 -0
  312. package/chunks/gm-DBMaPUVF.mjs +4 -0
  313. package/chunks/gn-CgBEf8H_.mjs +4 -0
  314. package/chunks/gp-CzgFkpC6.mjs +4 -0
  315. package/chunks/gq-Bnsg80y2.mjs +4 -0
  316. package/chunks/gr-BZRM9aE0.mjs +4 -0
  317. package/chunks/gt-BUUDyd82.mjs +4 -0
  318. package/chunks/gu-TRJAAUWQ.mjs +4 -0
  319. package/chunks/gw-D9LrzBrV.mjs +4 -0
  320. package/chunks/gy-DH746QP0.mjs +4 -0
  321. package/chunks/hk-JPHzGR1f.mjs +4 -0
  322. package/chunks/hn-tQE5mLlb.mjs +4 -0
  323. package/chunks/hr-BdLlK8MT.mjs +4 -0
  324. package/chunks/ht-efkMBTm5.mjs +4 -0
  325. package/chunks/hu-BQqGjm3B.mjs +4 -0
  326. package/chunks/id-DaJrUhdH.mjs +4 -0
  327. package/chunks/ie-BNbUpzRG.mjs +4 -0
  328. package/chunks/il-Cg79KHAv.mjs +4 -0
  329. package/chunks/im-Djx9n3WT.mjs +4 -0
  330. package/chunks/in-B43LtLH-.mjs +4 -0
  331. package/chunks/input-group-CjmHKUSw.mjs +48 -0
  332. package/chunks/invalid-feedback.styles-BAfKyqM0.mjs +5 -0
  333. package/chunks/io-BnYRzBj3.mjs +4 -0
  334. package/chunks/iq-DUn1QbRL.mjs +4 -0
  335. package/chunks/ir-DlyfLEkf.mjs +4 -0
  336. package/chunks/is-DQ_bn71q.mjs +4 -0
  337. package/chunks/it-BfPMagQk.mjs +4 -0
  338. package/chunks/je-BLm9fJmW.mjs +4 -0
  339. package/chunks/jm-CxLVl0Ry.mjs +4 -0
  340. package/chunks/jo-Cfupva0T.mjs +4 -0
  341. package/chunks/jp-iR_5eVnk.mjs +4 -0
  342. package/chunks/ke-QUXFhgYU.mjs +4 -0
  343. package/chunks/kg-C0ssUmgN.mjs +4 -0
  344. package/chunks/kh-9A3QNvDB.mjs +4 -0
  345. package/chunks/ki-bFdICXHj.mjs +4 -0
  346. package/chunks/km-CYuiTVlZ.mjs +4 -0
  347. package/chunks/kn-fqURi7WO.mjs +4 -0
  348. package/chunks/kp-B9J1sdkG.mjs +4 -0
  349. package/chunks/kr-hrrgo3DJ.mjs +4 -0
  350. package/chunks/kw-CsK5t1uI.mjs +4 -0
  351. package/chunks/ky-CIIoXV1x.mjs +4 -0
  352. package/chunks/kz-Q6lWH-Lp.mjs +4 -0
  353. package/chunks/la-BqrIQzV5.mjs +4 -0
  354. package/chunks/lb-f1wH5q4z.mjs +4 -0
  355. package/chunks/lc-DiPjKtKA.mjs +4 -0
  356. package/chunks/li-CC9A-Eoo.mjs +4 -0
  357. package/chunks/lk-DBBVyq9z.mjs +4 -0
  358. package/chunks/lr-CYmj0qzD.mjs +4 -0
  359. package/chunks/ls-5eFpOHA5.mjs +4 -0
  360. package/chunks/lt-DuXsTfKz.mjs +4 -0
  361. package/chunks/lu-l81BU1X-.mjs +4 -0
  362. package/chunks/lv-pBWGmb6y.mjs +4 -0
  363. package/chunks/ly-rQGukqgk.mjs +4 -0
  364. package/chunks/ma-D3s8fhJY.mjs +4 -0
  365. package/chunks/mc-C2UgSKD0.mjs +4 -0
  366. package/chunks/md-Bn-lDZyQ.mjs +4 -0
  367. package/chunks/me-CTM23YkQ.mjs +4 -0
  368. package/chunks/metadata-loaders.generated-BOHjz7Pm.mjs +250 -0
  369. package/chunks/mf-Dw6W2U1G.mjs +4 -0
  370. package/chunks/mg-BvSTuxdV.mjs +4 -0
  371. package/chunks/mh-DlNbre6t.mjs +4 -0
  372. package/chunks/mk-CMQgOxwU.mjs +4 -0
  373. package/chunks/ml-Dr5P0Yo_.mjs +4 -0
  374. package/chunks/mm-C6vWhwqu.mjs +4 -0
  375. package/chunks/mn-D3Xmr6k_.mjs +4 -0
  376. package/chunks/mo-BieTAs8C.mjs +4 -0
  377. package/chunks/mp-CkOXp1Ru.mjs +4 -0
  378. package/chunks/mq-Cjhq-UJo.mjs +4 -0
  379. package/chunks/mr-Dnfbj6zJ.mjs +4 -0
  380. package/chunks/ms-CTQctbcy.mjs +4 -0
  381. package/chunks/mt-CU4E0kx5.mjs +4 -0
  382. package/chunks/mu-D-VsOyS8.mjs +4 -0
  383. package/chunks/mv-BLAL7NFA.mjs +4 -0
  384. package/chunks/mw-v7uw9vtP.mjs +4 -0
  385. package/chunks/mx-eDyMiM1l.mjs +4 -0
  386. package/chunks/my-DZwL-5pY.mjs +4 -0
  387. package/chunks/mz-CUtVhMFS.mjs +4 -0
  388. package/chunks/na-BY29xZvs.mjs +4 -0
  389. package/chunks/nc-DeEXGMmA.mjs +4 -0
  390. package/chunks/ne-CLxU921A.mjs +4 -0
  391. package/chunks/nf-D_JOkQkl.mjs +4 -0
  392. package/chunks/ng-CR5xUr0F.mjs +4 -0
  393. package/chunks/ni-C15mTV4Y.mjs +4 -0
  394. package/chunks/nl-CLg7nWke.mjs +4 -0
  395. package/chunks/no-D56_k2KF.mjs +4 -0
  396. package/chunks/np-BAP7jy8o.mjs +4 -0
  397. package/chunks/nr-VKzWyaNU.mjs +4 -0
  398. package/chunks/nu-D3XZHNZP.mjs +4 -0
  399. package/chunks/nz-BdvILa2x.mjs +4 -0
  400. package/chunks/om-BuPCo8qp.mjs +4 -0
  401. package/chunks/overlay-kT0nfzL-.mjs +275 -0
  402. package/chunks/pa-CyYPeQbr.mjs +4 -0
  403. package/chunks/pagination-Bcz1TwlS.mjs +184 -0
  404. package/chunks/pe-B-P9yq9y.mjs +4 -0
  405. package/chunks/pf-BEygN2Xk.mjs +4 -0
  406. package/chunks/pg-BbFUBN-z.mjs +4 -0
  407. package/chunks/ph-BwijTsiw.mjs +4 -0
  408. package/chunks/pk-DyS4XqKp.mjs +4 -0
  409. package/chunks/pl-Bs4VwV81.mjs +4 -0
  410. package/chunks/pm-DLEa5i47.mjs +4 -0
  411. package/chunks/pr-BWsOEP9w.mjs +4 -0
  412. package/chunks/ps-B_qECKr4.mjs +4 -0
  413. package/chunks/pt-C2_djybD.mjs +4 -0
  414. package/chunks/pw-D_NY3JPr.mjs +4 -0
  415. package/chunks/py-CndItMw9.mjs +4 -0
  416. package/chunks/qa-CD1uNFb9.mjs +4 -0
  417. package/chunks/radio-BO6g4B91.mjs +260 -0
  418. package/chunks/re-BW_tVnq3.mjs +4 -0
  419. package/chunks/ro-1-zfxYpt.mjs +4 -0
  420. package/chunks/rs-BoYWG9vg.mjs +4 -0
  421. package/chunks/ru-CYVEtP_y.mjs +4 -0
  422. package/chunks/rw-Bg3jblyd.mjs +4 -0
  423. package/chunks/sa-B69Q0suF.mjs +4 -0
  424. package/chunks/sb-BsEiWQfb.mjs +4 -0
  425. package/chunks/sc-DbArtz_B.mjs +4 -0
  426. package/chunks/scheduler-core-CoFpfrl5.mjs +867 -0
  427. package/chunks/sd-BBHgjmhj.mjs +4 -0
  428. package/chunks/se-BIv2B636.mjs +4 -0
  429. package/chunks/select-R-96AksV.mjs +295 -0
  430. package/chunks/sg-C5hxvYqk.mjs +4 -0
  431. package/chunks/sh-HM3W4hDH.mjs +4 -0
  432. package/chunks/si-DP1aBcfC.mjs +4 -0
  433. package/chunks/sj-BW7y-uq5.mjs +4 -0
  434. package/chunks/sk-i105Khwu.mjs +4 -0
  435. package/chunks/sl-Di2GF_yv.mjs +4 -0
  436. package/chunks/sm-CBa0TK4H.mjs +4 -0
  437. package/chunks/sn-DUHpXra8.mjs +4 -0
  438. package/chunks/so-BNbpnsu-.mjs +4 -0
  439. package/chunks/splitter-ByLyrd5H.mjs +436 -0
  440. package/chunks/sr-ao-a5_9y.mjs +4 -0
  441. package/chunks/ss-DcnzauNo.mjs +4 -0
  442. package/chunks/st-UM_GVNxZ.mjs +4 -0
  443. package/chunks/sv-DGf1zbvG.mjs +4 -0
  444. package/chunks/swiper-core-kwEab-Zw.mjs +145 -0
  445. package/chunks/sx-BswzV8CI.mjs +4 -0
  446. package/chunks/sy-9m1S8Kc1.mjs +4 -0
  447. package/chunks/sz-D85TIkXG.mjs +4 -0
  448. package/chunks/tab-control-CW53taeE.mjs +202 -0
  449. package/chunks/tc-C7PcDjFx.mjs +4 -0
  450. package/chunks/td-BPQVoqMT.mjs +4 -0
  451. package/chunks/tg-BrHdehFU.mjs +4 -0
  452. package/chunks/th-Dy_pGi_n.mjs +4 -0
  453. package/chunks/timeline-core-B9Lu8Qq4.mjs +15 -0
  454. package/chunks/timepicker-LaSAPnxw.mjs +326 -0
  455. package/chunks/tj-DMpkq8L_.mjs +4 -0
  456. package/chunks/tk-BnQPtoCZ.mjs +4 -0
  457. package/chunks/tl-ogyf_25A.mjs +4 -0
  458. package/chunks/tm-ftTOaKfg.mjs +4 -0
  459. package/chunks/tn-DH-O9SRy.mjs +4 -0
  460. package/chunks/to-CDqWnE6l.mjs +4 -0
  461. package/chunks/toggle-button-H1Ty5nnF.mjs +196 -0
  462. package/chunks/tr-CRzwaC_7.mjs +4 -0
  463. package/chunks/treeview-BuznGbcj.mjs +302 -0
  464. package/chunks/tt-CddKczAn.mjs +4 -0
  465. package/chunks/tv-b-Y36_Oq.mjs +4 -0
  466. package/chunks/tw-BbdD_Tku.mjs +4 -0
  467. package/chunks/tz-Det_pKDO.mjs +4 -0
  468. package/chunks/ua-CdODx9f1.mjs +4 -0
  469. package/chunks/ug-CTIJi1Jn.mjs +4 -0
  470. package/chunks/us-Dsgn127D.mjs +4 -0
  471. package/chunks/uy-CtFb0Nfv.mjs +4 -0
  472. package/chunks/uz-CqlGrq2Q.mjs +4 -0
  473. package/chunks/va-C-PHbkgG.mjs +4 -0
  474. package/chunks/vc-CtVMqDKl.mjs +4 -0
  475. package/chunks/ve-CBHWNLnB.mjs +4 -0
  476. package/chunks/vg-BN0gTtPV.mjs +4 -0
  477. package/chunks/vi-D91NT7D5.mjs +4 -0
  478. package/chunks/vn-Dz72HCr4.mjs +4 -0
  479. package/chunks/vu-Cmk5qbSr.mjs +4 -0
  480. package/chunks/wf-DAPtyg32.mjs +4 -0
  481. package/chunks/ws-es9JGzNi.mjs +4 -0
  482. package/chunks/xk-st-Xu64D.mjs +4 -0
  483. package/chunks/ye-Dmo8XEYa.mjs +4 -0
  484. package/chunks/yt-CNEu1wkH.mjs +4 -0
  485. package/chunks/za-CiZ4NsPE.mjs +4 -0
  486. package/chunks/zm-DqQAAfzp.mjs +4 -0
  487. package/chunks/zw-BIGE1hob.mjs +4 -0
  488. package/code-snippet/index.mjs +472 -820
  489. package/custom-elements.json +7773 -7389
  490. package/datatable/index.mjs +1 -8
  491. package/datatable/src/components/column-resize.d.ts +22 -0
  492. package/datatable/src/components/mp-datatable.d.ts +143 -3
  493. package/datatable/src/types/column-def.d.ts +13 -1
  494. package/datatable/src/types/labels.d.ts +17 -0
  495. package/datepicker/index.mjs +128 -215
  496. package/datetime-picker/index.mjs +1 -4
  497. package/dock/index.mjs +1871 -2471
  498. package/dropdown-menu/index.mjs +157 -601
  499. package/file-manager/index.mjs +771 -1180
  500. package/flags/index.mjs +1 -264
  501. package/index.mjs +0 -1
  502. package/input-group/index.mjs +1 -4
  503. package/light-dom/index.mjs +188 -11
  504. package/multi-range/index.mjs +233 -402
  505. package/navbar/index.mjs +224 -1010
  506. package/otp-input/index.mjs +249 -374
  507. package/overlay/index.mjs +1 -7
  508. package/package.json +1 -1
  509. package/pagination/index.mjs +1 -5
  510. package/phone-core/index.mjs +120 -8
  511. package/phone-input/index.mjs +380 -493
  512. package/query-builder/index.mjs +1502 -2277
  513. package/radio/index.mjs +1 -4
  514. package/radio-group/index.mjs +126 -144
  515. package/ribbon/index.mjs +1158 -1497
  516. package/scheduler/index.mjs +3456 -6576
  517. package/scheduler-core/index.mjs +1 -197
  518. package/select/index.mjs +1 -4
  519. package/shell/index.mjs +98 -572
  520. package/signature-pad/index.mjs +180 -207
  521. package/splitter/index.mjs +1 -10
  522. package/swiper-core/index.mjs +1 -184
  523. package/tab-control/index.mjs +1 -6
  524. package/theming/index.mjs +229 -317
  525. package/tile-manager/index.mjs +746 -899
  526. package/timeline/index.mjs +476 -754
  527. package/timeline-core/index.mjs +1 -23
  528. package/timepicker/index.mjs +1 -9
  529. package/toggle-button/index.mjs +1 -5
  530. package/tree-select/index.mjs +467 -769
  531. package/treeview/index.mjs +1 -5
  532. package/badge/src/styles/badge.styles.d.ts +0 -2
  533. package/chunks/ac-C5mj7mOe.mjs +0 -5
  534. package/chunks/ad-DuKUeTXh.mjs +0 -5
  535. package/chunks/ae-BFJrplpe.mjs +0 -5
  536. package/chunks/af-BIQlNFtj.mjs +0 -5
  537. package/chunks/ag-B9GDO0Ip.mjs +0 -5
  538. package/chunks/ai-pifHTP5K.mjs +0 -5
  539. package/chunks/al-CWQ3OuN9.mjs +0 -5
  540. package/chunks/all-flags-BtYcfgjy.mjs +0 -8
  541. package/chunks/all-flags.generated-B7Rctzuq.mjs +0 -493
  542. package/chunks/am-Do56ciQl.mjs +0 -5
  543. package/chunks/ao-Ci_fen-O.mjs +0 -5
  544. package/chunks/ar-BEZTIgF7.mjs +0 -5
  545. package/chunks/as-B29efaG_.mjs +0 -5
  546. package/chunks/at-c7xv31cV.mjs +0 -5
  547. package/chunks/attributes-L3eKsbdy.mjs +0 -16
  548. package/chunks/au-DK4ZROf6.mjs +0 -5
  549. package/chunks/aw-eEmOo-kc.mjs +0 -5
  550. package/chunks/ax-CF1cgQbd.mjs +0 -5
  551. package/chunks/az-BXPec7pf.mjs +0 -5
  552. package/chunks/ba-EoocSiX0.mjs +0 -5
  553. package/chunks/bb-BomyOgY0.mjs +0 -5
  554. package/chunks/bd-C2Y9A316.mjs +0 -5
  555. package/chunks/be-DcE56El1.mjs +0 -5
  556. package/chunks/bf-g7XzTHJG.mjs +0 -5
  557. package/chunks/bg-DAHpwJAh.mjs +0 -5
  558. package/chunks/bh-BiHF8vqO.mjs +0 -5
  559. package/chunks/bi-DVAoOy2o.mjs +0 -5
  560. package/chunks/bj-CB6I0T1J.mjs +0 -5
  561. package/chunks/bl-DhUObXcB.mjs +0 -5
  562. package/chunks/bm-d77E6A-Q.mjs +0 -5
  563. package/chunks/bn-CG1_6Vfv.mjs +0 -5
  564. package/chunks/bo-ulcQ_Lws.mjs +0 -5
  565. package/chunks/bq-wOjRpmJJ.mjs +0 -5
  566. package/chunks/br-BwQAEpKL.mjs +0 -5
  567. package/chunks/bs-Cmq3uDf9.mjs +0 -5
  568. package/chunks/bt-Cik-3ebf.mjs +0 -5
  569. package/chunks/bw-ZUkpxAL1.mjs +0 -5
  570. package/chunks/by-Dh-5h5x1.mjs +0 -5
  571. package/chunks/bz-DB0s7-5N.mjs +0 -5
  572. package/chunks/ca-Coq88_mc.mjs +0 -5
  573. package/chunks/cc-1.generated-CkRogBGA.mjs +0 -4
  574. package/chunks/cc-20.generated-DMpg7apl.mjs +0 -4
  575. package/chunks/cc-211.generated-DSnuuKPM.mjs +0 -4
  576. package/chunks/cc-212.generated-Dcg3rrip.mjs +0 -4
  577. package/chunks/cc-213.generated-DPwtGlxT.mjs +0 -4
  578. package/chunks/cc-216.generated-Cgber7dX.mjs +0 -4
  579. package/chunks/cc-218.generated-CZGwxl9D.mjs +0 -4
  580. package/chunks/cc-220.generated-CKmXmpGe.mjs +0 -4
  581. package/chunks/cc-221.generated-BYzgBejl.mjs +0 -4
  582. package/chunks/cc-222.generated-YwuXcbvd.mjs +0 -4
  583. package/chunks/cc-223.generated-9iiHnni6.mjs +0 -4
  584. package/chunks/cc-224.generated-Okty02TJ.mjs +0 -4
  585. package/chunks/cc-225.generated-CYkDnG14.mjs +0 -4
  586. package/chunks/cc-226.generated-GT_rqbCO.mjs +0 -4
  587. package/chunks/cc-227.generated-B1VkrgoB.mjs +0 -4
  588. package/chunks/cc-228.generated-Bhck-C6Z.mjs +0 -4
  589. package/chunks/cc-229.generated-aAR4PP7n.mjs +0 -4
  590. package/chunks/cc-230.generated-CG5TxZtb.mjs +0 -4
  591. package/chunks/cc-231.generated-BjYHl_BP.mjs +0 -4
  592. package/chunks/cc-232.generated-CFDyaA7o.mjs +0 -4
  593. package/chunks/cc-233.generated-ChwvrW0E.mjs +0 -4
  594. package/chunks/cc-234.generated-BIpIojaD.mjs +0 -4
  595. package/chunks/cc-235.generated-Dklizfb9.mjs +0 -4
  596. package/chunks/cc-236.generated-EJZlz23v.mjs +0 -4
  597. package/chunks/cc-237.generated-DwOapZWZ.mjs +0 -4
  598. package/chunks/cc-238.generated-BkCWtGDY.mjs +0 -4
  599. package/chunks/cc-239.generated-S_foXUit.mjs +0 -4
  600. package/chunks/cc-240.generated-CtKfcEWk.mjs +0 -4
  601. package/chunks/cc-241.generated-aAUw2QzS.mjs +0 -4
  602. package/chunks/cc-242.generated-D5jMR3KR.mjs +0 -4
  603. package/chunks/cc-243.generated-Bk5dwdUf.mjs +0 -4
  604. package/chunks/cc-244.generated-DywGvISM.mjs +0 -4
  605. package/chunks/cc-245.generated-Bm7wVXl5.mjs +0 -4
  606. package/chunks/cc-246.generated-CFSezynW.mjs +0 -4
  607. package/chunks/cc-247.generated-DKXGq8p1.mjs +0 -4
  608. package/chunks/cc-248.generated-CnI_kkbi.mjs +0 -4
  609. package/chunks/cc-249.generated-Zenj8WBl.mjs +0 -4
  610. package/chunks/cc-250.generated-140A9gFx.mjs +0 -4
  611. package/chunks/cc-251.generated-BYtVzI1w.mjs +0 -4
  612. package/chunks/cc-252.generated-C9By3_Ih.mjs +0 -4
  613. package/chunks/cc-253.generated-DZIADgzo.mjs +0 -4
  614. package/chunks/cc-254.generated-Bkb5VbuX.mjs +0 -4
  615. package/chunks/cc-255.generated-U_k4UlnG.mjs +0 -4
  616. package/chunks/cc-256.generated-BBGMRLJL.mjs +0 -4
  617. package/chunks/cc-257.generated-2Jiadm-X.mjs +0 -4
  618. package/chunks/cc-258.generated-CSHZFQtI.mjs +0 -4
  619. package/chunks/cc-260.generated-CWgOLjv4.mjs +0 -4
  620. package/chunks/cc-261.generated-DzpnYK1v.mjs +0 -4
  621. package/chunks/cc-262.generated-uZY0cJ08.mjs +0 -4
  622. package/chunks/cc-263.generated-D2QbPttm.mjs +0 -4
  623. package/chunks/cc-264.generated-DhUT_yRg.mjs +0 -4
  624. package/chunks/cc-265.generated-BKIU4vGv.mjs +0 -4
  625. package/chunks/cc-266.generated-O_zgqaDo.mjs +0 -4
  626. package/chunks/cc-267.generated-DpLBLCK1.mjs +0 -4
  627. package/chunks/cc-268.generated-B9Y4LS_4.mjs +0 -4
  628. package/chunks/cc-269.generated-DPQ0A8VW.mjs +0 -4
  629. package/chunks/cc-27.generated-BxeFhsuD.mjs +0 -4
  630. package/chunks/cc-290.generated-DGy2isg7.mjs +0 -4
  631. package/chunks/cc-291.generated-C4LSfffl.mjs +0 -4
  632. package/chunks/cc-297.generated-4k_1JOUj.mjs +0 -4
  633. package/chunks/cc-298.generated-A2xB0PKR.mjs +0 -4
  634. package/chunks/cc-299.generated-BwDC9B1N.mjs +0 -4
  635. package/chunks/cc-30.generated-JhyYglqU.mjs +0 -4
  636. package/chunks/cc-31.generated-5GOCJzfN.mjs +0 -4
  637. package/chunks/cc-32.generated-CpVvykA2.mjs +0 -4
  638. package/chunks/cc-33.generated-BDzHxbR_.mjs +0 -4
  639. package/chunks/cc-34.generated-P3nQfhBw.mjs +0 -4
  640. package/chunks/cc-350.generated-BGl8hYsP.mjs +0 -4
  641. package/chunks/cc-351.generated-pJBouwSG.mjs +0 -4
  642. package/chunks/cc-352.generated-8_NbdAx6.mjs +0 -4
  643. package/chunks/cc-353.generated-Cfz2tBdq.mjs +0 -4
  644. package/chunks/cc-354.generated-CEgaa6qB.mjs +0 -4
  645. package/chunks/cc-355.generated-DGZ-kJ0i.mjs +0 -4
  646. package/chunks/cc-356.generated-BZqLs86A.mjs +0 -4
  647. package/chunks/cc-357.generated-CfCB5cHL.mjs +0 -4
  648. package/chunks/cc-358.generated-wL2JzNDk.mjs +0 -4
  649. package/chunks/cc-359.generated-BxJe3xGt.mjs +0 -4
  650. package/chunks/cc-36.generated-CJdA4Rvi.mjs +0 -4
  651. package/chunks/cc-370.generated-B6SpL74q.mjs +0 -4
  652. package/chunks/cc-371.generated-Cx6lrGG9.mjs +0 -4
  653. package/chunks/cc-372.generated-Ckc30SHu.mjs +0 -4
  654. package/chunks/cc-373.generated-BK0ypz55.mjs +0 -4
  655. package/chunks/cc-374.generated-B51ogwAh.mjs +0 -4
  656. package/chunks/cc-375.generated-CMbmbMav.mjs +0 -4
  657. package/chunks/cc-376.generated-DZngLeqA.mjs +0 -4
  658. package/chunks/cc-377.generated-BYuCOf7K.mjs +0 -4
  659. package/chunks/cc-378.generated-CuNlUjOw.mjs +0 -4
  660. package/chunks/cc-380.generated-A2e4FwA4.mjs +0 -4
  661. package/chunks/cc-381.generated-Cvwf7aDo.mjs +0 -4
  662. package/chunks/cc-382.generated-B-x4jIQ_.mjs +0 -4
  663. package/chunks/cc-383.generated-B6E63WN4.mjs +0 -4
  664. package/chunks/cc-385.generated-CbYlsCsW.mjs +0 -4
  665. package/chunks/cc-386.generated-BUSyzthQ.mjs +0 -4
  666. package/chunks/cc-387.generated-IhkhnsGu.mjs +0 -4
  667. package/chunks/cc-389.generated-SNuHIdqu.mjs +0 -4
  668. package/chunks/cc-39.generated-BGZK1sVL.mjs +0 -4
  669. package/chunks/cc-40.generated-Bo8WnsNc.mjs +0 -4
  670. package/chunks/cc-41.generated-CG0098r3.mjs +0 -4
  671. package/chunks/cc-420.generated-C59jh2M8.mjs +0 -4
  672. package/chunks/cc-421.generated-BhxO-pTK.mjs +0 -4
  673. package/chunks/cc-423.generated-B4UJk2xr.mjs +0 -4
  674. package/chunks/cc-43.generated-BIdhhcvA.mjs +0 -4
  675. package/chunks/cc-44.generated-BfeK0wEP.mjs +0 -4
  676. package/chunks/cc-45.generated-BEJCwF4o.mjs +0 -4
  677. package/chunks/cc-46.generated-DeEMtTcI.mjs +0 -4
  678. package/chunks/cc-47.generated-DQy2Xk_0.mjs +0 -4
  679. package/chunks/cc-48.generated-C4yA7R1Q.mjs +0 -4
  680. package/chunks/cc-49.generated-a02djmT4.mjs +0 -4
  681. package/chunks/cc-500.generated-glAZ4AUe.mjs +0 -4
  682. package/chunks/cc-501.generated-D-GCAbI8.mjs +0 -4
  683. package/chunks/cc-502.generated-Co-n0usI.mjs +0 -4
  684. package/chunks/cc-503.generated-BM58qC_M.mjs +0 -4
  685. package/chunks/cc-504.generated-cTtfXvjR.mjs +0 -4
  686. package/chunks/cc-505.generated-DLSKmmzY.mjs +0 -4
  687. package/chunks/cc-506.generated-BMyMgwgZ.mjs +0 -4
  688. package/chunks/cc-507.generated-DWOdIJMd.mjs +0 -4
  689. package/chunks/cc-508.generated-DN3D0FwY.mjs +0 -4
  690. package/chunks/cc-509.generated-D-jyniz5.mjs +0 -4
  691. package/chunks/cc-51.generated-Bjy1G3kG.mjs +0 -4
  692. package/chunks/cc-52.generated-CDeO-q1n.mjs +0 -4
  693. package/chunks/cc-53.generated-Bg_ETBvx.mjs +0 -4
  694. package/chunks/cc-54.generated-BCfSFUZP.mjs +0 -4
  695. package/chunks/cc-55.generated-C1iLoSl1.mjs +0 -4
  696. package/chunks/cc-56.generated-ChgDDlud.mjs +0 -4
  697. package/chunks/cc-57.generated-qfDFimii.mjs +0 -4
  698. package/chunks/cc-58.generated-Cl6DzTam.mjs +0 -4
  699. package/chunks/cc-590.generated-DhG2cP7S.mjs +0 -4
  700. package/chunks/cc-591.generated-CjxsaggL.mjs +0 -4
  701. package/chunks/cc-592.generated-DnF2AtPs.mjs +0 -4
  702. package/chunks/cc-593.generated-J4b4KU_z.mjs +0 -4
  703. package/chunks/cc-594.generated-BDqHqvBX.mjs +0 -4
  704. package/chunks/cc-595.generated-Di23-NWq.mjs +0 -4
  705. package/chunks/cc-596.generated-B92oLPvz.mjs +0 -4
  706. package/chunks/cc-597.generated-pdvIpWWG.mjs +0 -4
  707. package/chunks/cc-598.generated-C9i6NuuS.mjs +0 -4
  708. package/chunks/cc-599.generated-Cot_Tjya.mjs +0 -4
  709. package/chunks/cc-60.generated-Dt21L5ED.mjs +0 -4
  710. package/chunks/cc-61.generated-CsF19uOz.mjs +0 -4
  711. package/chunks/cc-62.generated-CXe9l8jN.mjs +0 -4
  712. package/chunks/cc-63.generated-CyxqKEMz.mjs +0 -4
  713. package/chunks/cc-64.generated-B1U2VUWE.mjs +0 -4
  714. package/chunks/cc-65.generated-BqB9SL91.mjs +0 -4
  715. package/chunks/cc-66.generated-DSW4cKRJ.mjs +0 -4
  716. package/chunks/cc-670.generated-B5lMBLIA.mjs +0 -4
  717. package/chunks/cc-672.generated-rtLnRViR.mjs +0 -4
  718. package/chunks/cc-673.generated-CCfKxiHb.mjs +0 -4
  719. package/chunks/cc-674.generated-DqEenJAu.mjs +0 -4
  720. package/chunks/cc-675.generated-CDZsNVmA.mjs +0 -4
  721. package/chunks/cc-676.generated-CtuzuSpR.mjs +0 -4
  722. package/chunks/cc-677.generated-B6Vdcheb.mjs +0 -4
  723. package/chunks/cc-678.generated-Bu-wQLCv.mjs +0 -4
  724. package/chunks/cc-679.generated-C_vQNfa9.mjs +0 -4
  725. package/chunks/cc-680.generated-DgD0sTpR.mjs +0 -4
  726. package/chunks/cc-681.generated-CgCDLpTf.mjs +0 -4
  727. package/chunks/cc-682.generated-BBdb0LCA.mjs +0 -4
  728. package/chunks/cc-683.generated-BYq9qGSN.mjs +0 -4
  729. package/chunks/cc-685.generated-BeVt0xOD.mjs +0 -4
  730. package/chunks/cc-686.generated-DSuHUyGC.mjs +0 -4
  731. package/chunks/cc-687.generated-CAYCkQGn.mjs +0 -4
  732. package/chunks/cc-688.generated-BxoYuhyI.mjs +0 -4
  733. package/chunks/cc-689.generated-D1LJPuEc.mjs +0 -4
  734. package/chunks/cc-690.generated-wBJlIR_d.mjs +0 -4
  735. package/chunks/cc-691.generated-D3313DJE.mjs +0 -4
  736. package/chunks/cc-692.generated-BjRLK6LH.mjs +0 -4
  737. package/chunks/cc-7.generated-Be8Per3z.mjs +0 -4
  738. package/chunks/cc-81.generated-Bfr_1Ik4.mjs +0 -4
  739. package/chunks/cc-82.generated-CXvQgAj0.mjs +0 -4
  740. package/chunks/cc-84.generated-DsMrssxQ.mjs +0 -4
  741. package/chunks/cc-850.generated-B6dMNsJB.mjs +0 -4
  742. package/chunks/cc-852.generated-DoLs1jmz.mjs +0 -4
  743. package/chunks/cc-853.generated-C9J4qDF6.mjs +0 -4
  744. package/chunks/cc-855.generated-rriF89dH.mjs +0 -4
  745. package/chunks/cc-856.generated-DWMBTBFS.mjs +0 -4
  746. package/chunks/cc-86.generated-C8Ob3yVb.mjs +0 -4
  747. package/chunks/cc-880.generated-gteZx8SL.mjs +0 -4
  748. package/chunks/cc-886.generated-QyIDP1_q.mjs +0 -4
  749. package/chunks/cc-90.generated-DSXR50SV.mjs +0 -4
  750. package/chunks/cc-91.generated-C_cDq0Xp.mjs +0 -4
  751. package/chunks/cc-92.generated-Cxd7f_QX.mjs +0 -4
  752. package/chunks/cc-93.generated-Cyqo0e91.mjs +0 -4
  753. package/chunks/cc-94.generated-EsnmfbnH.mjs +0 -4
  754. package/chunks/cc-95.generated-D_8p55mp.mjs +0 -4
  755. package/chunks/cc-960.generated-DletKApH.mjs +0 -4
  756. package/chunks/cc-961.generated-CXVHoWFk.mjs +0 -4
  757. package/chunks/cc-962.generated-B7EPSakT.mjs +0 -4
  758. package/chunks/cc-963.generated-D71Y75mr.mjs +0 -4
  759. package/chunks/cc-964.generated-B8-RYrVD.mjs +0 -4
  760. package/chunks/cc-965.generated-tesjPkaP.mjs +0 -4
  761. package/chunks/cc-966.generated-CkCCmcR2.mjs +0 -4
  762. package/chunks/cc-967.generated-Bz1kG3rR.mjs +0 -4
  763. package/chunks/cc-968.generated-B8izDjLu.mjs +0 -4
  764. package/chunks/cc-970.generated-CKTkdIET.mjs +0 -4
  765. package/chunks/cc-971.generated-Wzj17K10.mjs +0 -4
  766. package/chunks/cc-972.generated-CJO02ZmJ.mjs +0 -4
  767. package/chunks/cc-973.generated-CL9ZE2Of.mjs +0 -4
  768. package/chunks/cc-974.generated-ZkYqGi9L.mjs +0 -4
  769. package/chunks/cc-975.generated-DP2Teiuc.mjs +0 -4
  770. package/chunks/cc-976.generated-GGNMRuFQ.mjs +0 -4
  771. package/chunks/cc-977.generated-KwvwlHUw.mjs +0 -4
  772. package/chunks/cc-98.generated-DW-Wj2k5.mjs +0 -4
  773. package/chunks/cc-992.generated-NRREmly7.mjs +0 -4
  774. package/chunks/cc-993.generated-BNlup4k-.mjs +0 -4
  775. package/chunks/cc-994.generated-BUD4e8ho.mjs +0 -4
  776. package/chunks/cc-995.generated-8P4TnVbi.mjs +0 -4
  777. package/chunks/cc-996.generated-CKCe7foO.mjs +0 -4
  778. package/chunks/cc-998.generated-CsAmnJYd.mjs +0 -4
  779. package/chunks/cc-BZdCRpNT.mjs +0 -5
  780. package/chunks/cd-9O28tBfy.mjs +0 -5
  781. package/chunks/cf-BdhmyWlv.mjs +0 -5
  782. package/chunks/cg-C-Qu4NMU.mjs +0 -5
  783. package/chunks/ch-A1RQVYLO.mjs +0 -5
  784. package/chunks/ci-DZY7fgO7.mjs +0 -5
  785. package/chunks/ck-D-2C9a72.mjs +0 -5
  786. package/chunks/cl-3HNgrmyT.mjs +0 -5
  787. package/chunks/cm-DJ4mixO9.mjs +0 -5
  788. package/chunks/cn-Cw6Qlqzd.mjs +0 -5
  789. package/chunks/co-B6rvgyRo.mjs +0 -5
  790. package/chunks/color-mode-warning-71FmlzWX.mjs +0 -13
  791. package/chunks/cr-jJzoBrc7.mjs +0 -5
  792. package/chunks/cu-BRzz3vV_.mjs +0 -5
  793. package/chunks/cv-BzZilEMp.mjs +0 -5
  794. package/chunks/cw-5PnLdxCt.mjs +0 -5
  795. package/chunks/cx-C0sAUlCS.mjs +0 -5
  796. package/chunks/cy-DeC9FFGV.mjs +0 -5
  797. package/chunks/cz-C3rh8aUO.mjs +0 -5
  798. package/chunks/de-Q2c2XZ_v.mjs +0 -5
  799. package/chunks/dj-DWAmmYDE.mjs +0 -5
  800. package/chunks/dk-FTaySAJe.mjs +0 -5
  801. package/chunks/dm-DgSJioJq.mjs +0 -5
  802. package/chunks/do-C549n3on.mjs +0 -5
  803. package/chunks/dz-CPgKocaY.mjs +0 -5
  804. package/chunks/ec-DkC-cDOb.mjs +0 -5
  805. package/chunks/ee-BQmFOHXA.mjs +0 -5
  806. package/chunks/eg-DMVarwMR.mjs +0 -5
  807. package/chunks/eh--oxmiCXh.mjs +0 -5
  808. package/chunks/er-DjB_DDiD.mjs +0 -5
  809. package/chunks/error-text-B45eDAt1.mjs +0 -17
  810. package/chunks/es-D__9e8wL.mjs +0 -5
  811. package/chunks/et-C3reU7Z2.mjs +0 -5
  812. package/chunks/fi-C1K0Kh4o.mjs +0 -5
  813. package/chunks/fj-Cs7ECsE1.mjs +0 -5
  814. package/chunks/fk-DYEJDgjs.mjs +0 -5
  815. package/chunks/fm-C7r_OFnj.mjs +0 -5
  816. package/chunks/fo-DsT-wW0Q.mjs +0 -5
  817. package/chunks/focus-restore-DxuP1Oe2.mjs +0 -94
  818. package/chunks/focus-trap-DTOLJ5bb.mjs +0 -121
  819. package/chunks/form-associated-BR-fUvZ1.mjs +0 -43
  820. package/chunks/form-check.styles-DqvBnspm.mjs +0 -172
  821. package/chunks/form-control.styles-C3j87Sn3.mjs +0 -171
  822. package/chunks/fr-oy8Uo1bo.mjs +0 -5
  823. package/chunks/ga-DESElBvk.mjs +0 -5
  824. package/chunks/gb-D5r9QI-K.mjs +0 -5
  825. package/chunks/gd-BuRviRXt.mjs +0 -5
  826. package/chunks/ge-BpGz5nUs.mjs +0 -5
  827. package/chunks/gf-BQgWe_yS.mjs +0 -5
  828. package/chunks/gg-BLNQrqls.mjs +0 -5
  829. package/chunks/gh-BzVF8tSr.mjs +0 -5
  830. package/chunks/gi-DfKOJdRQ.mjs +0 -5
  831. package/chunks/gl-C558Toee.mjs +0 -5
  832. package/chunks/gm-DNdinxnD.mjs +0 -5
  833. package/chunks/gn-DwEBOZ3-.mjs +0 -5
  834. package/chunks/gp-oy8Uo1bo.mjs +0 -5
  835. package/chunks/gq-BSkOSQWe.mjs +0 -5
  836. package/chunks/gr-CTJJbGEC.mjs +0 -5
  837. package/chunks/gt-D4BwgazI.mjs +0 -5
  838. package/chunks/gu-CQpMzEB_.mjs +0 -5
  839. package/chunks/gw-DxZDYMtv.mjs +0 -5
  840. package/chunks/gy-BWZVUGl8.mjs +0 -5
  841. package/chunks/hk-BHxjZMf4.mjs +0 -5
  842. package/chunks/hn-BEVgQ0QQ.mjs +0 -5
  843. package/chunks/host-aria-WSGs7SPQ.mjs +0 -152
  844. package/chunks/hr-BpVWlAoF.mjs +0 -5
  845. package/chunks/ht-CfzU-07O.mjs +0 -5
  846. package/chunks/hu-5Yy5WRy5.mjs +0 -5
  847. package/chunks/id-BfVg05v7.mjs +0 -5
  848. package/chunks/ie-DvpkJVl8.mjs +0 -5
  849. package/chunks/il-DDofIlI0.mjs +0 -5
  850. package/chunks/im-CW65ei4K.mjs +0 -5
  851. package/chunks/in-i60GVnCJ.mjs +0 -5
  852. package/chunks/inert-regions-DXCnn1LN.mjs +0 -48
  853. package/chunks/install-light-styles-DbCAGFOC.mjs +0 -209
  854. package/chunks/invalid-feedback.styles-he0JYrJm.mjs +0 -11
  855. package/chunks/io-Diyu5soM.mjs +0 -5
  856. package/chunks/iq-B74bFnMJ.mjs +0 -5
  857. package/chunks/ir-BWGwwJq9.mjs +0 -5
  858. package/chunks/is-CK4oIk76.mjs +0 -5
  859. package/chunks/it-Y7rj3hMY.mjs +0 -5
  860. package/chunks/je-DMoX3evy.mjs +0 -5
  861. package/chunks/jm-DZUStFkR.mjs +0 -5
  862. package/chunks/jo-DVQ6-ojE.mjs +0 -5
  863. package/chunks/jp-Y5R0MQfN.mjs +0 -5
  864. package/chunks/ke-CGq6XP7w.mjs +0 -5
  865. package/chunks/kg-DAoQwbeR.mjs +0 -5
  866. package/chunks/kh-kMI7MghQ.mjs +0 -5
  867. package/chunks/ki-Cu7fdPLn.mjs +0 -5
  868. package/chunks/km-CM7URKBO.mjs +0 -5
  869. package/chunks/kn-DBVGPz8w.mjs +0 -5
  870. package/chunks/kp-D3Ea15h2.mjs +0 -5
  871. package/chunks/kr-DKM0Jy7P.mjs +0 -5
  872. package/chunks/kw-B7J-nbX9.mjs +0 -5
  873. package/chunks/ky-p4ckNq_W.mjs +0 -5
  874. package/chunks/kz-D936idA9.mjs +0 -5
  875. package/chunks/la-CUKVKbGp.mjs +0 -5
  876. package/chunks/lb-CzUWz90e.mjs +0 -5
  877. package/chunks/lc-DuHqL5FW.mjs +0 -5
  878. package/chunks/li-DgJDzs_F.mjs +0 -5
  879. package/chunks/live-announcer-Bi0orG4n.mjs +0 -58
  880. package/chunks/lk-3zaagaQ9.mjs +0 -5
  881. package/chunks/lr-B6Vn6C_9.mjs +0 -5
  882. package/chunks/ls-DrI0Fh7Y.mjs +0 -5
  883. package/chunks/lt-PBck9Sgv.mjs +0 -5
  884. package/chunks/lu-B_xY22fB.mjs +0 -5
  885. package/chunks/lv-D16yLm3v.mjs +0 -5
  886. package/chunks/ly-C1adX4Zr.mjs +0 -5
  887. package/chunks/ma-B7rH3zoW.mjs +0 -5
  888. package/chunks/mc-Xqh4jc6i.mjs +0 -5
  889. package/chunks/md-wW4zZzbN.mjs +0 -5
  890. package/chunks/me-DCy_XMtC.mjs +0 -5
  891. package/chunks/metadata-loaders.generated-Bu_7pFwU.mjs +0 -250
  892. package/chunks/mf-DP_tIA6i.mjs +0 -5
  893. package/chunks/mg-InflpHX7.mjs +0 -5
  894. package/chunks/mh-VKf434Ww.mjs +0 -5
  895. package/chunks/mk-C64VS9I-.mjs +0 -5
  896. package/chunks/ml-BjOQYgou.mjs +0 -5
  897. package/chunks/mm-DgKeX7WQ.mjs +0 -5
  898. package/chunks/mn-BBubqCvd.mjs +0 -5
  899. package/chunks/mo-BtY-l2cE.mjs +0 -5
  900. package/chunks/mp-DlkcjH8B.mjs +0 -5
  901. package/chunks/mp-calendar.element-BIHS9SZZ.mjs +0 -433
  902. package/chunks/mp-checkbox-zV83gILn.mjs +0 -321
  903. package/chunks/mp-datatable-CEpSxlkd.mjs +0 -2541
  904. package/chunks/mp-datetime-picker.element-Cxu5-qRE.mjs +0 -527
  905. package/chunks/mp-input-group-CQ55efCq.mjs +0 -206
  906. package/chunks/mp-pagination-hGy4dL7p.mjs +0 -334
  907. package/chunks/mp-radio-BhRVNdKp.mjs +0 -304
  908. package/chunks/mp-select-CgqYFvUj.mjs +0 -537
  909. package/chunks/mp-splitter-DLehrw3Y.mjs +0 -678
  910. package/chunks/mp-tab-page-CaCzX1ym.mjs +0 -415
  911. package/chunks/mp-timepicker.element-BiB9lkgc.mjs +0 -452
  912. package/chunks/mp-toggle-button-CaS9uYLE.mjs +0 -631
  913. package/chunks/mp-treeview-CaMTDrvY.mjs +0 -497
  914. package/chunks/mq-BK7HwZSV.mjs +0 -5
  915. package/chunks/mr-C0S-6dqR.mjs +0 -5
  916. package/chunks/ms-DpwSSTE-.mjs +0 -5
  917. package/chunks/mt-B1ie-04J.mjs +0 -5
  918. package/chunks/mu-DTA25SEP.mjs +0 -5
  919. package/chunks/mv-DW49amZl.mjs +0 -5
  920. package/chunks/mw-V-bbqGPN.mjs +0 -5
  921. package/chunks/mx-CtTJw0SX.mjs +0 -5
  922. package/chunks/my-DThIQKCq.mjs +0 -5
  923. package/chunks/mz-Btgk8Li_.mjs +0 -5
  924. package/chunks/na-D08-xA7q.mjs +0 -5
  925. package/chunks/nc-hb1s2KqL.mjs +0 -5
  926. package/chunks/ne-B5vEjeNk.mjs +0 -5
  927. package/chunks/nf-DDFUS5Ht.mjs +0 -5
  928. package/chunks/ng-DBhdmXcS.mjs +0 -5
  929. package/chunks/ni-_x4RKVT8.mjs +0 -5
  930. package/chunks/nl-DBxW_qVy.mjs +0 -5
  931. package/chunks/no-LyFCuMlU.mjs +0 -5
  932. package/chunks/np-DEvIQAys.mjs +0 -5
  933. package/chunks/nr-CuzElmFx.mjs +0 -5
  934. package/chunks/nu-C6vVHkwP.mjs +0 -5
  935. package/chunks/nz-BkhNYKha.mjs +0 -5
  936. package/chunks/om-BsI3oHrd.mjs +0 -5
  937. package/chunks/overlay-controller-BHDagokg.mjs +0 -389
  938. package/chunks/pa-CtNQVaHE.mjs +0 -5
  939. package/chunks/pe-vcSV6ioD.mjs +0 -5
  940. package/chunks/pf-BOetDvnB.mjs +0 -5
  941. package/chunks/pg-BDqa4YXR.mjs +0 -5
  942. package/chunks/ph-BlAaFzEE.mjs +0 -5
  943. package/chunks/pk-2auAZIDh.mjs +0 -5
  944. package/chunks/pl-W6WZfuq9.mjs +0 -5
  945. package/chunks/pm-oy8Uo1bo.mjs +0 -5
  946. package/chunks/pr-B3p98s5J.mjs +0 -5
  947. package/chunks/ps-RET8kTuo.mjs +0 -5
  948. package/chunks/pt-Z2yfZJAz.mjs +0 -5
  949. package/chunks/pw-Dm4Y4noS.mjs +0 -5
  950. package/chunks/py-1pKD7w9y.mjs +0 -5
  951. package/chunks/qa-DpK5_Q-a.mjs +0 -5
  952. package/chunks/re-oy8Uo1bo.mjs +0 -5
  953. package/chunks/resource.service--lqLwEqk.mjs +0 -1008
  954. package/chunks/ro-VYde6hop.mjs +0 -5
  955. package/chunks/roving-focus-CrL9982a.mjs +0 -129
  956. package/chunks/rs-Dj7Wicw9.mjs +0 -5
  957. package/chunks/ru-CkWEkuTy.mjs +0 -5
  958. package/chunks/rw-DjRHPIJ_.mjs +0 -5
  959. package/chunks/sa-BBdaW-_G.mjs +0 -5
  960. package/chunks/sb-nNr9S0gd.mjs +0 -5
  961. package/chunks/sc-DcbShXuj.mjs +0 -5
  962. package/chunks/scale-B0bRUdc7.mjs +0 -91
  963. package/chunks/sd-B1jbITc6.mjs +0 -5
  964. package/chunks/se-B-CIMrxu.mjs +0 -5
  965. package/chunks/sg-BIR0OErL.mjs +0 -5
  966. package/chunks/sh-BR9c9S8h.mjs +0 -5
  967. package/chunks/si-B5HzM3z8.mjs +0 -5
  968. package/chunks/sj-LyFCuMlU.mjs +0 -5
  969. package/chunks/sk-7ZEImIK5.mjs +0 -5
  970. package/chunks/sl-DuhHodH6.mjs +0 -5
  971. package/chunks/sm-BrM5UOOM.mjs +0 -5
  972. package/chunks/sn-jptojE_-.mjs +0 -5
  973. package/chunks/so-auBJUCeE.mjs +0 -5
  974. package/chunks/sr-DqWWIG11.mjs +0 -5
  975. package/chunks/ss-BcJF0rd5.mjs +0 -5
  976. package/chunks/st-D65H7-IP.mjs +0 -5
  977. package/chunks/sv-D8EgdK15.mjs +0 -5
  978. package/chunks/sx-Cmd53qC5.mjs +0 -5
  979. package/chunks/sy-LL8b7cLC.mjs +0 -5
  980. package/chunks/sz-D-qYq589.mjs +0 -5
  981. package/chunks/tc-AIE9LFuJ.mjs +0 -5
  982. package/chunks/td-C5AP4EiN.mjs +0 -5
  983. package/chunks/tg-Dt9WAF7L.mjs +0 -5
  984. package/chunks/th-DyfDlw-o.mjs +0 -5
  985. package/chunks/tj-U7xsGAAg.mjs +0 -5
  986. package/chunks/tk-BWjKruB4.mjs +0 -5
  987. package/chunks/tl-CcXsJf98.mjs +0 -5
  988. package/chunks/tm-DTASSSkf.mjs +0 -5
  989. package/chunks/tn-DttZvPz0.mjs +0 -5
  990. package/chunks/to-ChsX5Z4Q.mjs +0 -5
  991. package/chunks/tr-C2CRhai0.mjs +0 -5
  992. package/chunks/tt-DPpP-HbL.mjs +0 -5
  993. package/chunks/tv-CiTLokZi.mjs +0 -5
  994. package/chunks/tw--J7h_fxf.mjs +0 -5
  995. package/chunks/tz-qS3mKSkx.mjs +0 -5
  996. package/chunks/ua-DiZstskV.mjs +0 -5
  997. package/chunks/ug-BxVGZUby.mjs +0 -5
  998. package/chunks/us-BvyIwpav.mjs +0 -5
  999. package/chunks/uy-Dsr4HSrP.mjs +0 -5
  1000. package/chunks/uz-D25kmTp8.mjs +0 -5
  1001. package/chunks/va-hG27DTVe.mjs +0 -5
  1002. package/chunks/validation-ChktfuxI.mjs +0 -137
  1003. package/chunks/vc-7r46jyD5.mjs +0 -5
  1004. package/chunks/ve-R8UkJHAj.mjs +0 -5
  1005. package/chunks/vg-BLSugSwb.mjs +0 -5
  1006. package/chunks/vi-DSyJsPSD.mjs +0 -5
  1007. package/chunks/view-window-DGvFiDnW.mjs +0 -263
  1008. package/chunks/vn-BwGpRkWs.mjs +0 -5
  1009. package/chunks/vu-aFyzktTY.mjs +0 -5
  1010. package/chunks/wf-Ca9RrMIP.mjs +0 -5
  1011. package/chunks/ws-DphODgja.mjs +0 -5
  1012. package/chunks/xk-sugAykhS.mjs +0 -5
  1013. package/chunks/ye-D2MZq-93.mjs +0 -5
  1014. package/chunks/yt-tAecYEDU.mjs +0 -5
  1015. package/chunks/za-DadXcfMa.mjs +0 -5
  1016. package/chunks/zm--rp7ufAJ.mjs +0 -5
  1017. package/chunks/zw-BG5nNe2I.mjs +0 -5
  1018. package/query-builder/src/mp-query-builder.element.template.d.ts +0 -2
  1019. package/query-builder/src/mp-query-group.element.template.d.ts +0 -2
  1020. package/query-builder/src/mp-query-subquery.element.template.d.ts +0 -2
  1021. package/tree-select/src/styles/tree-select.styles.d.ts +0 -2
  1022. package/treeview/src/styles/treeview.styles.d.ts +0 -2
@@ -1,1704 +1,944 @@
1
- import { unsafeCSS as T, LitElement as M, nothing as m } from "lit";
2
- import { d as W, s as I, i as L } from "../chunks/install-light-styles-DbCAGFOC.mjs";
3
- import { createContext as P, ContextConsumer as h, ContextProvider as x } from "@lit/context";
4
- import { createRef as me, ref as pe } from "lit/directives/ref.js";
5
- import { w as be } from "../chunks/color-mode-warning-71FmlzWX.mjs";
6
- import "../chunks/mp-select-CgqYFvUj.mjs";
7
- import "../chunks/mp-checkbox-zV83gILn.mjs";
8
- const J = {
9
- string: [
10
- "equals",
11
- "not-equals",
12
- "contains",
13
- "does-not-contain",
14
- "starts-with",
15
- "ends-with",
16
- "is-null",
17
- "is-not-null",
18
- "in",
19
- "not-in"
20
- ],
21
- number: [
22
- "equals",
23
- "not-equals",
24
- "lt",
25
- "lte",
26
- "gt",
27
- "gte",
28
- "between",
29
- "not-between",
30
- "is-null",
31
- "is-not-null",
32
- "in",
33
- "not-in"
34
- ],
35
- integer: [
36
- "equals",
37
- "not-equals",
38
- "lt",
39
- "lte",
40
- "gt",
41
- "gte",
42
- "between",
43
- "not-between",
44
- "is-null",
45
- "is-not-null",
46
- "in",
47
- "not-in"
48
- ],
49
- date: [
50
- "equals",
51
- "not-equals",
52
- "lt",
53
- "lte",
54
- "gt",
55
- "gte",
56
- "between",
57
- "not-between",
58
- "is-null",
59
- "is-not-null",
60
- "today",
61
- "yesterday",
62
- "this-week",
63
- "last-week",
64
- "next-week",
65
- "this-month",
66
- "last-month",
67
- "next-month",
68
- "this-year",
69
- "last-year",
70
- "next-year",
71
- "last-n-days",
72
- "next-n-days",
73
- "year-to-date"
74
- ],
75
- datetime: [
76
- "equals",
77
- "not-equals",
78
- "lt",
79
- "lte",
80
- "gt",
81
- "gte",
82
- "between",
83
- "not-between",
84
- "is-null",
85
- "is-not-null",
86
- "today",
87
- "yesterday",
88
- "this-week",
89
- "last-week",
90
- "next-week",
91
- "this-month",
92
- "last-month",
93
- "next-month",
94
- "this-year",
95
- "last-year",
96
- "next-year",
97
- "last-n-days",
98
- "next-n-days",
99
- "year-to-date"
100
- ],
101
- boolean: ["is-true", "is-false", "is-null", "is-not-null"],
102
- enum: ["equals", "not-equals", "in", "not-in", "is-null", "is-not-null"],
103
- relation: ["in", "not-in"],
104
- array: ["any-of", "all-of", "none-of", "is-empty", "is-not-empty"]
105
- }, he = /* @__PURE__ */ new Set([
106
- "is-null",
107
- "is-not-null",
108
- "is-true",
109
- "is-false",
110
- "is-empty",
111
- "is-not-empty",
112
- "today",
113
- "yesterday",
114
- "this-week",
115
- "last-week",
116
- "next-week",
117
- "this-month",
118
- "last-month",
119
- "next-month",
120
- "this-year",
121
- "last-year",
122
- "next-year",
123
- "year-to-date"
124
- ]), fe = /* @__PURE__ */ new Set(["between", "not-between"]), ye = /* @__PURE__ */ new Set([
125
- "in",
126
- "not-in",
127
- "any-of",
128
- "all-of",
129
- "none-of"
130
- ]), ge = /* @__PURE__ */ new Set(["last-n-days", "next-n-days"]);
131
- function q(o) {
132
- return he.has(o) ? "null" : fe.has(o) ? "tuple" : ye.has(o) ? "array" : ge.has(o) ? "n-input" : "scalar";
133
- }
134
- function N(o) {
135
- switch (q(o)) {
136
- case "null":
137
- return null;
138
- case "tuple":
139
- return [null, null];
140
- case "array":
141
- return [];
142
- case "n-input":
143
- return { n: 1 };
144
- case "scalar":
145
- return null;
146
- }
147
- }
148
- function k(o, e = J) {
149
- return e[o] ?? [];
150
- }
151
- function lt(o, e, t = J) {
152
- const r = {
153
- sanitized: {},
154
- warnings: []
155
- };
156
- if (!e) return r;
157
- const n = /* @__PURE__ */ new Map();
158
- for (const i of o)
159
- for (const s of i.fields)
160
- n.has(s.name) || n.set(s.name, { entity: i.name, type: s.type });
161
- for (const [i, s] of Object.entries(e)) {
162
- const d = s ?? [], a = n.get(i);
163
- if (!a) {
164
- r.warnings.push(
165
- `[operatorOverrides] Unknown field "${i}" — no entity in schema declares it. Override ignored.`
166
- );
167
- continue;
168
- }
169
- const u = new Set(k(a.type, t)), l = [], c = [];
170
- for (const b of d)
171
- u.has(b) ? l.push(b) : c.push(b);
172
- c.length > 0 && r.warnings.push(
173
- `[operatorOverrides] Field "${i}" (${a.entity}.${i}, type=${a.type}) has operator(s) [${c.join(", ")}] not in the catalog for that type. Stripping.`
174
- ), l.length === 0 && d.length > 0 && r.warnings.push(
175
- `[operatorOverrides] Field "${i}" has no valid operators after intersection — empty operator dropdown.`
176
- ), r.sanitized[i] = l;
177
- }
178
- return r;
179
- }
180
- function ve() {
181
- if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
182
- return crypto.randomUUID();
183
- const o = typeof crypto < "u" && typeof crypto.getRandomValues == "function" ? crypto.getRandomValues(new Uint8Array(16)) : Uint8Array.from({ length: 16 }, () => Math.floor(Math.random() * 256));
184
- o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128;
185
- const e = Array.from(o, (t) => t.toString(16).padStart(2, "0"));
186
- return `${e.slice(0, 4).join("")}-${e.slice(4, 6).join("")}-${e.slice(6, 8).join("")}-${e.slice(8, 10).join("")}-${e.slice(10, 16).join("")}`;
187
- }
188
- function C() {
189
- return ve();
190
- }
191
- function H(o = "and") {
192
- return { kind: "group", id: C(), logic: o, children: [] };
193
- }
194
- function qe(o) {
195
- const e = o.fields.find((r) => r.type !== "relation") ?? o.fields[0];
196
- if (!e)
197
- return { kind: "condition", id: C(), field: "", operator: "equals", value: null };
198
- const t = k(e.type)[0] ?? "equals";
199
- return {
200
- kind: "condition",
201
- id: C(),
202
- field: e.name,
203
- operator: t,
204
- value: N(t)
205
- };
206
- }
207
- function we(o) {
208
- const e = o.fields.find((t) => t.type === "relation" && t.targetEntity);
209
- return e ? {
210
- kind: "subquery",
211
- id: C(),
212
- field: e.name,
213
- operator: "in",
214
- subQuery: H("and")
215
- } : null;
216
- }
217
- function G(o) {
218
- switch (o.kind) {
219
- case "group":
220
- return {
221
- ...o,
222
- children: o.children.map((e) => G(e))
223
- };
224
- case "condition":
225
- return {
226
- ...o,
227
- value: O(o.value)
228
- };
229
- case "subquery":
230
- return {
231
- ...o,
232
- subQuery: G(o.subQuery)
233
- };
234
- }
235
- }
236
- function O(o) {
237
- return o == null ? o : Array.isArray(o) ? o.map(O) : typeof o == "object" ? Object.fromEntries(
238
- Object.entries(o).map(([e, t]) => [e, O(t)])
239
- ) : o;
240
- }
241
- function S(o, e) {
242
- const t = e(o);
243
- if (t === null) return null;
244
- if (t.kind === "group") {
245
- const r = t.children.map((n) => S(n, e)).filter((n) => n !== null);
246
- return { ...t, children: r };
247
- }
248
- if (t.kind === "subquery") {
249
- const r = S(t.subQuery, e);
250
- return r !== null && r.kind === "group" ? { ...t, subQuery: r } : { ...t, subQuery: H("and") };
251
- }
252
- return t;
253
- }
254
- function w(o, e) {
255
- return S(o, e);
256
- }
257
- function $(o, e) {
258
- return o.id === e ? o : o.kind === "group" ? Z(o.children, (t) => $(t, e)) : o.kind === "subquery" ? $(o.subQuery, e) : null;
259
- }
260
- function Z(o, e) {
261
- return o.reduce((t, r) => t ?? e(r), null);
262
- }
263
- function D(o, e) {
264
- if (o.kind === "group") {
265
- const t = o.children.findIndex((r) => r.id === e);
266
- return t >= 0 ? { parent: o, index: t } : Z(o.children, (r) => D(r, e));
267
- }
268
- return o.kind === "subquery" ? D(o.subQuery, e) : null;
269
- }
270
- function ee(o) {
271
- const e = (t) => t.kind === "group" ? [t.id, ...t.children.flatMap(e)] : t.kind === "subquery" ? [t.id, ...e(t.subQuery)] : [t.id];
272
- return new Set(e(o));
273
- }
274
- function B(o, e, t) {
275
- return w(o, (r) => r.kind === "group" && r.id === e ? { ...r, children: [...r.children, t] } : r);
276
- }
277
- function _e(o, e, t) {
278
- return B(o, e, qe(t));
279
- }
280
- function $e(o, e, t = "and") {
281
- return B(o, e, H(t));
282
- }
283
- function Ee(o, e, t) {
284
- const r = we(t);
285
- return r ? B(o, e, r) : o;
286
- }
287
- function te(o, e) {
288
- return S(o, (r) => r.id === e ? null : r) ?? o;
289
- }
290
- function ke(o, e, t) {
291
- return w(o, (r) => r.kind === "group" && r.id === e ? { ...r, logic: t } : r);
292
- }
293
- function xe(o, e, t) {
294
- return w(o, (r) => {
295
- if ((r.kind === "condition" || r.kind === "subquery") && r.id === e) {
296
- if (r.kind === "subquery") {
297
- const i = { ...r };
298
- return t.field !== void 0 && (i.field = t.field), t.operator !== void 0 && (t.operator === "in" || t.operator === "not-in") && (i.operator = t.operator), i;
299
- }
300
- const n = { ...r };
301
- return t.field !== void 0 && (n.field = t.field), t.operator !== void 0 && (n.operator = t.operator), t.value !== void 0 && (n.value = t.value), n;
302
- }
303
- return r;
304
- });
305
- }
306
- function Ce(o, e, t) {
307
- return w(o, (r) => r.kind === "condition" && r.id === e ? re(r, t) : r);
308
- }
309
- function re(o, e) {
310
- const t = k(e.type);
311
- if (t.includes(o.operator)) return { ...o, field: e.name };
312
- const r = t[0] ?? "equals";
313
- return { ...o, field: e.name, operator: r, value: N(r) };
314
- }
315
- function Se(o, e, t) {
316
- return w(o, (r) => {
317
- if (r.kind === "condition" && r.id === e) {
318
- const i = q(r.operator) === q(t) ? r.value : N(t);
319
- return { ...r, operator: t, value: i };
320
- }
321
- return r;
322
- });
323
- }
324
- function j(o, e, t, r, n) {
325
- if (e === t) return o;
326
- const i = $(o, e);
327
- if (!i) return o;
328
- const s = $(o, t);
329
- if (!s || s.kind !== "group" || ee(i).has(t)) return o;
330
- const a = n ? oe(i, n) : i, u = te(o, e);
331
- return w(u, (l) => {
332
- if (l.kind === "group" && l.id === t) {
333
- const c = [...l.children], b = Math.max(0, Math.min(r, c.length));
334
- return c.splice(b, 0, a), { ...l, children: c };
335
- }
336
- return l;
337
- });
338
- }
339
- function oe(o, e) {
340
- const t = e.fields.find((r) => r.type !== "relation");
341
- if (o.kind === "condition") {
342
- const r = e.fields.find((i) => i.name === o.field);
343
- if (r && r.type !== "relation") return re(o, r);
344
- if (!t) return o;
345
- const n = k(t.type)[0] ?? "equals";
346
- return {
347
- ...o,
348
- field: t.name,
349
- operator: n,
350
- value: N(n)
351
- };
352
- }
353
- return o.kind === "group" ? { ...o, children: o.children.map((r) => oe(r, e)) } : o;
354
- }
355
- class ne extends Error {
356
- constructor(e, t) {
357
- super(`Query tree depth ${e} exceeds maxDepth ${t}.`), this.depth = e, this.maxDepth = t, this.name = "MaxDepthExceededError";
358
- }
359
- }
360
- const f = {
361
- addCondition: "Add condition",
362
- addGroup: "Add group",
363
- addSubquery: "Add sub-query",
364
- removeRow: "Remove",
365
- removeGroup: "Remove group",
366
- logicAnd: "AND",
367
- logicOr: "OR",
368
- saveCurrentAs: "Save current as…",
369
- loadQuery: "Load",
370
- deleteQuery: "Delete",
371
- treeTooDeep: "Tree too deep",
372
- dropHerePlaceholder: "Drop here",
373
- emptyGroup: "(empty group)",
374
- savedQueryName: "Name for saved query",
375
- entity: "Entity",
376
- columns: "Columns",
377
- sortBy: "Sort by",
378
- reorderHint: "Drag or use Alt+Up/Down to reorder",
379
- field: "Field",
380
- operator: "Operator",
381
- groupLogic: "Group logic",
382
- operators: {
383
- equals: "=",
384
- "not-equals": "≠",
385
- contains: "contains",
386
- "does-not-contain": "does not contain",
387
- "starts-with": "starts with",
388
- "ends-with": "ends with",
389
- lt: "<",
390
- lte: "≤",
391
- gt: ">",
392
- gte: "≥",
393
- between: "between",
394
- "not-between": "not between",
395
- in: "in",
396
- "not-in": "not in",
397
- "is-null": "is null",
398
- "is-not-null": "is not null",
399
- "is-true": "is true",
400
- "is-false": "is false",
401
- today: "is today",
402
- yesterday: "is yesterday",
403
- "this-week": "is this week",
404
- "last-week": "is last week",
405
- "next-week": "is next week",
406
- "this-month": "is this month",
407
- "last-month": "is last month",
408
- "next-month": "is next month",
409
- "this-year": "is this year",
410
- "last-year": "is last year",
411
- "next-year": "is next year",
412
- "last-n-days": "is in the last N days",
413
- "next-n-days": "is in the next N days",
414
- "year-to-date": "is year-to-date",
415
- "any-of": "any of",
416
- "all-of": "all of",
417
- "none-of": "none of",
418
- "is-empty": "is empty",
419
- "is-not-empty": "is not empty"
420
- }
421
- }, De = 32;
422
- function ut(o, e, t, r = {}) {
423
- const n = r.maxDepth ?? De, i = {
424
- schema: t.schema,
425
- currentEntity: t.rootEntity,
426
- depth: 0
427
- };
428
- return z(o, e, i, n);
429
- }
430
- function z(o, e, t, r) {
431
- if (t.depth > r) throw new ne(t.depth, r);
432
- switch (o.kind) {
433
- case "condition":
434
- return e.condition(o, t);
435
- case "group": {
436
- const n = { ...t, depth: t.depth + 1 }, i = o.children.map((s) => z(s, e, n, r));
437
- return e.group(o, i, t);
438
- }
439
- case "subquery": {
440
- const n = t.schema.find((u) => u.name === t.currentEntity);
441
- if (!n) throw new Error(`visitTree: schema has no entity "${t.currentEntity}".`);
442
- const i = n.fields.find((u) => u.name === o.field);
443
- if (!i) throw new Error(`visitTree: entity "${t.currentEntity}" has no field "${o.field}".`);
444
- if (i.type !== "relation" || !i.targetEntity)
445
- throw new Error(`visitTree: field "${o.field}" is not a relation.`);
446
- const s = i.targetEntity;
447
- if (!t.schema.some((u) => u.name === s))
448
- throw new Error(`visitTree: relation target "${s}" missing from schema.`);
449
- const d = {
450
- ...t,
451
- currentEntity: s,
452
- depth: t.depth + 1
453
- }, a = () => z(o.subQuery, e, d, r);
454
- return e.subquery(o, t, a);
455
- }
456
- }
457
- }
458
- const Re = 32;
459
- function Ae(o, e, t = {}) {
460
- const r = Te(t.messages), n = t.maxDepth ?? Re, i = t.rootEntity ?? e[0]?.name ?? "";
461
- return U(o, e, i, r, 0, n);
462
- }
463
- function Te(o) {
464
- return {
465
- ...f,
466
- ...o ?? {},
467
- operators: { ...f.operators, ...o?.operators ?? {} }
468
- };
469
- }
470
- function U(o, e, t, r, n, i) {
471
- if (n > i) throw new ne(n, i);
472
- switch (o.kind) {
473
- case "group":
474
- return Me(o, e, t, r, n, i);
475
- case "condition":
476
- return Ie(o, e, t, r);
477
- case "subquery":
478
- return Le(o, e, t, r, n, i);
479
- }
480
- }
481
- function Me(o, e, t, r, n, i) {
482
- if (o.children.length === 0)
483
- return o.logic === "and" ? "TRUE" : "FALSE";
484
- const s = o.logic === "and" ? ` ${r.logicAnd} ` : ` ${r.logicOr} `;
485
- return `(${o.children.map((a) => U(a, e, t, r, n + 1, i)).join(s)})`;
486
- }
487
- function Ie(o, e, t, r) {
488
- const i = ie(e, t, o.field)?.label ?? o.field, s = r.operators[o.operator] ?? o.operator, d = Pe(o.operator, o.value);
489
- return d === "" ? `${i} ${s}` : `${i} ${s} ${d}`;
490
- }
491
- function Le(o, e, t, r, n, i) {
492
- const s = ie(e, t, o.field), d = s?.label ?? o.field, a = r.operators[o.operator] ?? o.operator, u = s?.targetEntity ?? "", l = U(o.subQuery, e, u, r, n + 1, i);
493
- return `${d} ${a} ${l}`;
494
- }
495
- function Pe(o, e) {
496
- const t = q(o);
497
- if (t === "null") return "";
498
- if (t === "tuple" && Array.isArray(e))
499
- return `[${e.map(F).join(", ")}]`;
500
- if (t === "array" && Array.isArray(e))
501
- return `[${e.map(F).join(", ")}]`;
502
- if (t === "n-input" && typeof e == "object" && e !== null) {
503
- const r = e.n;
504
- return typeof r == "number" ? String(r) : JSON.stringify(e);
505
- }
506
- return F(e);
507
- }
508
- function F(o) {
509
- return o == null ? "?" : typeof o == "string" ? `"${o}"` : o instanceof Date ? o.toISOString() : String(o);
510
- }
511
- function ie(o, e, t) {
512
- return o.find((r) => r.name === e)?.fields.find((r) => r.name === t);
513
- }
514
- const Ne = T(`.form-control[data-mps=query-builder] {
515
- display: block;
516
- width: 100%;
517
- padding: 0.375rem 0.75rem;
518
- font-size: 1rem;
519
- font-weight: 400;
520
- line-height: 1.5;
521
- color: var(--bs-body-color);
522
- appearance: none;
523
- background-color: var(--bs-body-bg);
524
- background-clip: padding-box;
525
- border: var(--bs-border-width) solid var(--bs-border-color);
526
- border-radius: var(--bs-border-radius);
527
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
528
- }
529
- @media (prefers-reduced-motion: reduce) {
530
- .form-control[data-mps=query-builder] {
531
- transition: none;
532
- }
533
- }
534
- .form-control[type=file][data-mps=query-builder] {
535
- overflow: hidden;
536
- }
537
- .form-control[type=file]:not(:disabled):not([readonly])[data-mps=query-builder] {
538
- cursor: pointer;
539
- }
540
- .form-control:focus[data-mps=query-builder] {
541
- color: var(--bs-body-color);
542
- background-color: var(--bs-body-bg);
543
- border-color: rgb(52.5490196078%, 71.568627451%, 99.6078431373%);
544
- outline: 0;
545
- box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
546
- }
547
- .form-control[data-mps=query-builder]::-webkit-date-and-time-value {
548
- min-width: 85px;
549
- height: 1.5em;
550
- margin: 0;
551
- }
552
- .form-control[data-mps=query-builder]::-webkit-datetime-edit {
553
- display: block;
554
- padding: 0;
555
- }
556
- .form-control[data-mps=query-builder]::placeholder {
557
- color: var(--bs-secondary-color);
558
- opacity: 1;
559
- }
560
- .form-control:disabled[data-mps=query-builder] {
561
- background-color: var(--bs-secondary-bg);
562
- opacity: 1;
563
- }
564
- .form-control[data-mps=query-builder]::file-selector-button {
565
- padding: 0.375rem 0.75rem;
566
- margin: -0.375rem -0.75rem;
567
- margin-inline-end: 0.75rem;
568
- color: var(--bs-body-color);
569
- background-color: var(--bs-tertiary-bg);
570
- pointer-events: none;
571
- border-color: inherit;
572
- border-style: solid;
573
- border-width: 0;
574
- border-inline-end-width: var(--bs-border-width);
575
- border-radius: 0;
576
- transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
577
- }
578
- @media (prefers-reduced-motion: reduce) {
579
- .form-control[data-mps=query-builder]::file-selector-button {
580
- transition: none;
581
- }
582
- }
583
- .form-control:hover:not(:disabled):not([readonly])[data-mps=query-builder]::file-selector-button {
584
- background-color: var(--bs-secondary-bg);
585
- }
586
-
587
- .form-control-plaintext[data-mps=query-builder] {
588
- display: block;
589
- width: 100%;
590
- padding: 0.375rem 0;
591
- margin-bottom: 0;
592
- line-height: 1.5;
593
- color: var(--bs-body-color);
594
- background-color: transparent;
595
- border: solid transparent;
596
- border-width: var(--bs-border-width) 0;
597
- }
598
- .form-control-plaintext:focus[data-mps=query-builder] {
599
- outline: 0;
600
- }
601
- .form-control-plaintext.form-control-sm[data-mps=query-builder], .form-control-plaintext.form-control-lg[data-mps=query-builder] {
602
- padding-right: 0;
603
- padding-left: 0;
604
- }
605
-
606
- .form-control-sm[data-mps=query-builder] {
607
- min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
608
- padding: 0.25rem 0.5rem;
609
- font-size: 0.875rem;
610
- border-radius: var(--bs-border-radius-sm);
611
- }
612
- .form-control-sm[data-mps=query-builder]::file-selector-button {
613
- padding: 0.25rem 0.5rem;
614
- margin: -0.25rem -0.5rem;
615
- margin-inline-end: 0.5rem;
616
- }
617
-
618
- .form-control-lg[data-mps=query-builder] {
619
- min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
620
- padding: 0.5rem 1rem;
621
- font-size: 1.25rem;
622
- border-radius: var(--bs-border-radius-lg);
623
- }
624
- .form-control-lg[data-mps=query-builder]::file-selector-button {
625
- padding: 0.5rem 1rem;
626
- margin: -0.5rem -1rem;
627
- margin-inline-end: 1rem;
628
- }
629
-
630
- textarea.form-control[data-mps=query-builder] {
631
- min-height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));
632
- }
633
- textarea.form-control-sm[data-mps=query-builder] {
634
- min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
635
- }
636
- textarea.form-control-lg[data-mps=query-builder] {
637
- min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
638
- }
639
-
640
- .form-control-color[data-mps=query-builder] {
641
- width: 3rem;
642
- height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));
643
- padding: 0.375rem;
644
- }
645
- .form-control-color:not(:disabled):not([readonly])[data-mps=query-builder] {
646
- cursor: pointer;
647
- }
648
- .form-control-color[data-mps=query-builder]::-moz-color-swatch {
649
- border: 0 !important;
650
- border-radius: var(--bs-border-radius);
651
- }
652
- .form-control-color[data-mps=query-builder]::-webkit-color-swatch {
653
- border: 0 !important;
654
- border-radius: var(--bs-border-radius);
655
- }
656
- .form-control-color.form-control-sm[data-mps=query-builder] {
657
- height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
658
- }
659
- .form-control-color.form-control-lg[data-mps=query-builder] {
660
- height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
661
- }
662
-
663
- mp-query-builder {
664
- display: block;
665
- font-family: var(--bs-body-font-family, system-ui);
666
- font-size: var(--bs-body-font-size, 1rem);
667
- color: var(--bs-body-color, currentColor);
668
- }
669
-
670
- .qb-root[data-mps=query-builder] {
671
- border: 1px solid var(--bs-border-color, #dee2e6);
672
- border-radius: var(--bs-border-radius, 0.375rem);
673
- padding: 0.5rem;
674
- background: var(--bs-body-bg, transparent);
675
- }
676
-
677
- .qb-toolbar[data-mps=query-builder] {
678
- display: flex;
679
- flex-wrap: wrap;
680
- gap: 0.75rem;
681
- align-items: center;
682
- margin-bottom: 0.5rem;
683
- padding: 0.5rem;
684
- background: var(--bs-tertiary-bg, #f8f9fa);
685
- border: 1px solid var(--bs-border-color, #dee2e6);
686
- border-radius: var(--bs-border-radius-sm, 0.25rem);
687
- }
688
-
689
- .qb-toolbar-label[data-mps=query-builder] {
690
- display: inline-flex;
691
- align-items: center;
692
- gap: 0.375rem;
693
- font-size: 0.875rem;
694
- font-weight: 500;
695
- margin: 0;
696
- }
697
-
698
- .qb-entity-picker[data-mps=query-builder] {
699
- width: auto;
700
- min-width: 8rem;
701
- }
702
-
703
- .qb-toolbar-section[data-mps=query-builder] {
704
- display: inline-flex;
705
- flex-wrap: wrap;
706
- gap: 0.5rem;
707
- align-items: center;
708
- }
709
-
710
- .qb-field-checkbox[data-mps=query-builder] {
711
- display: inline-flex;
712
- align-items: center;
713
- gap: 0.25rem;
714
- font-size: 0.875rem;
715
- font-weight: 400;
716
- margin: 0;
717
- cursor: pointer;
718
- }
719
- .qb-field-checkbox[data-mps=query-builder] input[type=checkbox][data-mps=query-builder] {
720
- margin: 0;
721
- }
722
-
723
- .qb-sort-row[data-mps=query-builder] {
724
- display: inline-flex;
725
- align-items: center;
726
- gap: 0.25rem;
727
- font-size: 0.875rem;
728
- }
729
- .qb-sort-row[data-mps=query-builder] .qb-sort-field[data-mps=query-builder],
730
- .qb-sort-row[data-mps=query-builder] .qb-sort-direction[data-mps=query-builder] {
731
- width: auto;
732
- }
733
- .qb-sort-row[data-mps=query-builder] .qb-sort-field[data-mps=query-builder] {
734
- min-width: 6rem;
735
- }
736
- .qb-sort-row[data-mps=query-builder] .qb-sort-direction[data-mps=query-builder] {
737
- min-width: 4.5rem;
738
- }
739
- .qb-sort-row[data-mps=query-builder] .qb-sort-remove[data-mps=query-builder] {
740
- padding: 0 0.375rem;
741
- line-height: 1;
742
- color: var(--bs-danger, #dc3545);
743
- }
744
-
745
- .qb-sort-add[data-mps=query-builder] {
746
- --bs-btn-color: var(--bs-secondary-color);
747
- }
748
-
749
- .qb-too-deep[data-mps=query-builder] {
750
- padding: 0.5rem;
751
- color: var(--bs-warning-text-emphasis, #997404);
752
- background: var(--bs-warning-bg-subtle, #fff3cd);
753
- border: 1px solid var(--bs-warning-border-subtle, #ffe69c);
754
- border-radius: var(--bs-border-radius, 0.375rem);
755
- font-style: italic;
756
- }
757
-
758
- .qb-saved[data-mps=query-builder] {
759
- display: flex;
760
- flex-wrap: wrap;
761
- gap: 0.5rem;
762
- align-items: center;
763
- margin-bottom: 0.5rem;
764
- padding: 0.5rem;
765
- background: var(--bs-tertiary-bg, #f8f9fa);
766
- border: 1px solid var(--bs-border-color, #dee2e6);
767
- border-radius: var(--bs-border-radius-sm, 0.25rem);
768
- }
769
-
770
- .qb-saved-list[data-mps=query-builder] {
771
- display: flex;
772
- flex-wrap: wrap;
773
- gap: 0.5rem;
774
- }
775
-
776
- .qb-saved-row[data-mps=query-builder] {
777
- display: inline-flex;
778
- align-items: center;
779
- gap: 0.125rem;
780
- }
781
-
782
- .qb-saved-new[data-mps=query-builder] {
783
- display: inline-flex;
784
- align-items: center;
785
- gap: 0.25rem;
786
- margin-left: auto;
787
- }
788
-
789
- .qb-saved-empty[data-mps=query-builder] {
790
- color: var(--bs-secondary-color, #6c757d);
791
- font-style: italic;
792
- font-size: 0.875rem;
793
- }
794
-
795
- .qb-preview[data-mps=query-builder] {
796
- margin: 0 0 0.5rem;
797
- padding: 0.5rem;
798
- background: var(--bs-secondary-bg, #f8f9fa);
799
- border: 1px solid var(--bs-border-color, #dee2e6);
800
- border-radius: var(--bs-border-radius-sm, 0.25rem);
801
- font-family: var(--bs-font-monospace, monospace);
802
- font-size: 0.8125rem;
803
- color: var(--bs-body-color, currentColor);
804
- white-space: pre-wrap;
805
- word-break: break-word;
806
- }`), Fe = T(`.form-control[data-mps=query-condition] {
807
- display: block;
808
- width: 100%;
809
- padding: 0.375rem 0.75rem;
810
- font-size: 1rem;
811
- font-weight: 400;
812
- line-height: 1.5;
813
- color: var(--bs-body-color);
814
- appearance: none;
815
- background-color: var(--bs-body-bg);
816
- background-clip: padding-box;
817
- border: var(--bs-border-width) solid var(--bs-border-color);
818
- border-radius: var(--bs-border-radius);
819
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
820
- }
821
- @media (prefers-reduced-motion: reduce) {
822
- .form-control[data-mps=query-condition] {
823
- transition: none;
824
- }
825
- }
826
- .form-control[type=file][data-mps=query-condition] {
827
- overflow: hidden;
828
- }
829
- .form-control[type=file]:not(:disabled):not([readonly])[data-mps=query-condition] {
830
- cursor: pointer;
831
- }
832
- .form-control:focus[data-mps=query-condition] {
833
- color: var(--bs-body-color);
834
- background-color: var(--bs-body-bg);
835
- border-color: rgb(52.5490196078%, 71.568627451%, 99.6078431373%);
836
- outline: 0;
837
- box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
838
- }
839
- .form-control[data-mps=query-condition]::-webkit-date-and-time-value {
840
- min-width: 85px;
841
- height: 1.5em;
842
- margin: 0;
843
- }
844
- .form-control[data-mps=query-condition]::-webkit-datetime-edit {
845
- display: block;
846
- padding: 0;
847
- }
848
- .form-control[data-mps=query-condition]::placeholder {
849
- color: var(--bs-secondary-color);
850
- opacity: 1;
851
- }
852
- .form-control:disabled[data-mps=query-condition] {
853
- background-color: var(--bs-secondary-bg);
854
- opacity: 1;
855
- }
856
- .form-control[data-mps=query-condition]::file-selector-button {
857
- padding: 0.375rem 0.75rem;
858
- margin: -0.375rem -0.75rem;
859
- margin-inline-end: 0.75rem;
860
- color: var(--bs-body-color);
861
- background-color: var(--bs-tertiary-bg);
862
- pointer-events: none;
863
- border-color: inherit;
864
- border-style: solid;
865
- border-width: 0;
866
- border-inline-end-width: var(--bs-border-width);
867
- border-radius: 0;
868
- transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
869
- }
870
- @media (prefers-reduced-motion: reduce) {
871
- .form-control[data-mps=query-condition]::file-selector-button {
872
- transition: none;
873
- }
874
- }
875
- .form-control:hover:not(:disabled):not([readonly])[data-mps=query-condition]::file-selector-button {
876
- background-color: var(--bs-secondary-bg);
877
- }
878
-
879
- .form-control-plaintext[data-mps=query-condition] {
880
- display: block;
881
- width: 100%;
882
- padding: 0.375rem 0;
883
- margin-bottom: 0;
884
- line-height: 1.5;
885
- color: var(--bs-body-color);
886
- background-color: transparent;
887
- border: solid transparent;
888
- border-width: var(--bs-border-width) 0;
889
- }
890
- .form-control-plaintext:focus[data-mps=query-condition] {
891
- outline: 0;
892
- }
893
- .form-control-plaintext.form-control-sm[data-mps=query-condition], .form-control-plaintext.form-control-lg[data-mps=query-condition] {
894
- padding-right: 0;
895
- padding-left: 0;
896
- }
897
-
898
- .form-control-sm[data-mps=query-condition] {
899
- min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
900
- padding: 0.25rem 0.5rem;
901
- font-size: 0.875rem;
902
- border-radius: var(--bs-border-radius-sm);
903
- }
904
- .form-control-sm[data-mps=query-condition]::file-selector-button {
905
- padding: 0.25rem 0.5rem;
906
- margin: -0.25rem -0.5rem;
907
- margin-inline-end: 0.5rem;
908
- }
909
-
910
- .form-control-lg[data-mps=query-condition] {
911
- min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
912
- padding: 0.5rem 1rem;
913
- font-size: 1.25rem;
914
- border-radius: var(--bs-border-radius-lg);
915
- }
916
- .form-control-lg[data-mps=query-condition]::file-selector-button {
917
- padding: 0.5rem 1rem;
918
- margin: -0.5rem -1rem;
919
- margin-inline-end: 1rem;
920
- }
921
-
922
- textarea.form-control[data-mps=query-condition] {
923
- min-height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));
924
- }
925
- textarea.form-control-sm[data-mps=query-condition] {
926
- min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
927
- }
928
- textarea.form-control-lg[data-mps=query-condition] {
929
- min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
930
- }
931
-
932
- .form-control-color[data-mps=query-condition] {
933
- width: 3rem;
934
- height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));
935
- padding: 0.375rem;
936
- }
937
- .form-control-color:not(:disabled):not([readonly])[data-mps=query-condition] {
938
- cursor: pointer;
939
- }
940
- .form-control-color[data-mps=query-condition]::-moz-color-swatch {
941
- border: 0 !important;
942
- border-radius: var(--bs-border-radius);
943
- }
944
- .form-control-color[data-mps=query-condition]::-webkit-color-swatch {
945
- border: 0 !important;
946
- border-radius: var(--bs-border-radius);
947
- }
948
- .form-control-color.form-control-sm[data-mps=query-condition] {
949
- height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
950
- }
951
- .form-control-color.form-control-lg[data-mps=query-condition] {
952
- height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
953
- }
954
-
955
- .form-select[data-mps=query-condition] {
956
- --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
957
- display: block;
958
- width: 100%;
959
- padding: 0.375rem 2.25rem 0.375rem 0.75rem;
960
- font-size: 1rem;
961
- font-weight: 400;
962
- line-height: 1.5;
963
- color: var(--bs-body-color);
964
- appearance: none;
965
- background-color: var(--bs-body-bg);
966
- background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
967
- background-repeat: no-repeat;
968
- background-position: right 0.75rem center;
969
- background-size: 16px 12px;
970
- border: var(--bs-border-width) solid var(--bs-border-color);
971
- border-radius: var(--bs-border-radius);
972
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
973
- }
974
- @media (prefers-reduced-motion: reduce) {
975
- .form-select[data-mps=query-condition] {
976
- transition: none;
977
- }
978
- }
979
- .form-select:focus[data-mps=query-condition] {
980
- border-color: rgb(52.5490196078%, 71.568627451%, 99.6078431373%);
981
- outline: 0;
982
- box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
983
- }
984
- .form-select[multiple][data-mps=query-condition], .form-select[size]:not([size="1"])[data-mps=query-condition] {
985
- padding-right: 0.75rem;
986
- background-image: none;
987
- }
988
- .form-select:disabled[data-mps=query-condition] {
989
- background-color: var(--bs-secondary-bg);
990
- }
991
- .form-select:-moz-focusring[data-mps=query-condition] {
992
- color: transparent;
993
- text-shadow: 0 0 0 var(--bs-body-color);
994
- }
995
-
996
- .form-select-sm[data-mps=query-condition] {
997
- padding-top: 0.25rem;
998
- padding-bottom: 0.25rem;
999
- padding-left: 0.5rem;
1000
- font-size: 0.875rem;
1001
- border-radius: var(--bs-border-radius-sm);
1002
- }
1003
-
1004
- .form-select-lg[data-mps=query-condition] {
1005
- padding-top: 0.5rem;
1006
- padding-bottom: 0.5rem;
1007
- padding-left: 1rem;
1008
- font-size: 1.25rem;
1009
- border-radius: var(--bs-border-radius-lg);
1010
- }
1011
-
1012
- @container style(--mp-color-mode: dark) {
1013
- .form-select[data-mps=query-condition] {
1014
- --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
1015
- }
1016
- }
1017
- @media (forced-colors: active) {
1018
- .form-select[data-mps=query-condition] {
1019
- appearance: auto;
1020
- background-image: none;
1021
- }
1022
- }
1023
- mp-query-condition {
1024
- display: block;
1025
- }
1026
-
1027
- .qb-condition[data-mps=query-condition] {
1028
- display: flex;
1029
- align-items: center;
1030
- gap: 0.5rem;
1031
- padding: 0.25rem 0;
1032
- font-size: 0.875rem;
1033
- flex-wrap: wrap;
1034
- }
1035
-
1036
- .qb-field-select[data-mps=query-condition],
1037
- .qb-operator-select[data-mps=query-condition] {
1038
- display: inline-block;
1039
- width: auto;
1040
- min-width: 8rem;
1041
- }
1042
-
1043
- .qb-remove[data-mps=query-condition] {
1044
- flex: 0 0 auto;
1045
- margin-left: auto;
1046
- padding: 0 0.5rem;
1047
- line-height: 1;
1048
- font-size: 1rem;
1049
- color: var(--bs-danger, #dc3545);
1050
- }
1051
-
1052
- .qb-drag-handle[data-mps=query-condition] {
1053
- flex: 0 0 auto;
1054
- display: inline-flex;
1055
- align-items: center;
1056
- justify-content: center;
1057
- width: 1rem;
1058
- height: 1.25rem;
1059
- padding: 0;
1060
- background: transparent;
1061
- border: 0;
1062
- color: var(--bs-secondary-color, #6c757d);
1063
- cursor: grab;
1064
- font-size: 1rem;
1065
- line-height: 1;
1066
- touch-action: none;
1067
- }
1068
-
1069
- .qb-drag-handle:active[data-mps=query-condition] {
1070
- cursor: grabbing;
1071
- }
1072
-
1073
- .qb-drag-handle:disabled[data-mps=query-condition] {
1074
- cursor: not-allowed;
1075
- opacity: 0.5;
1076
- }
1077
-
1078
- .qb-field[data-mps=query-condition] {
1079
- font-weight: 600;
1080
- color: var(--bs-body-color, currentColor);
1081
- }
1082
-
1083
- .qb-operator[data-mps=query-condition] {
1084
- color: var(--bs-secondary-color, #6c757d);
1085
- }
1086
-
1087
- .qb-value[data-mps=query-condition] {
1088
- color: var(--bs-primary-text-emphasis, #084298);
1089
- }
1090
-
1091
- .qb-value-list[data-mps=query-condition] {
1092
- display: inline-flex;
1093
- gap: 0.25rem;
1094
- }
1095
-
1096
- .qb-value-pill[data-mps=query-condition] {
1097
- display: inline-block;
1098
- padding: 0 0.375rem;
1099
- background: var(--bs-info-bg-subtle, #cff4fc);
1100
- color: var(--bs-info-text-emphasis, #055160);
1101
- border-radius: var(--bs-border-radius-sm, 0.25rem);
1102
- }
1103
-
1104
- .qb-missing[data-mps=query-condition] {
1105
- color: var(--bs-danger-text-emphasis, #842029);
1106
- font-style: italic;
1107
- }
1108
-
1109
- .qb-editor-input[data-mps=query-condition] {
1110
- display: inline-block;
1111
- width: auto;
1112
- min-width: 6rem;
1113
- vertical-align: middle;
1114
- }
1115
-
1116
- .qb-editor-n-input[data-mps=query-condition] {
1117
- min-width: 4rem;
1118
- max-width: 6rem;
1119
- }
1120
-
1121
- .qb-editor-select[data-mps=query-condition],
1122
- .qb-editor-multiselect[data-mps=query-condition] {
1123
- display: inline-block;
1124
- width: auto;
1125
- min-width: 8rem;
1126
- vertical-align: middle;
1127
- }
1128
-
1129
- .qb-editor-tuple[data-mps=query-condition] {
1130
- display: inline-flex;
1131
- align-items: center;
1132
- gap: 0.25rem;
1133
- }
1134
-
1135
- .qb-editor-tuple-sep[data-mps=query-condition] {
1136
- color: var(--bs-secondary-color, #6c757d);
1137
- font-size: 0.875rem;
1138
- }
1139
-
1140
- .qb-editor-chip-input[data-mps=query-condition] {
1141
- display: inline-flex;
1142
- flex-wrap: wrap;
1143
- align-items: center;
1144
- gap: 0.25rem;
1145
- padding: 0.125rem;
1146
- border: 1px solid var(--bs-border-color, #dee2e6);
1147
- border-radius: var(--bs-border-radius-sm, 0.25rem);
1148
- background: var(--bs-body-bg, transparent);
1149
- min-height: 1.75rem;
1150
- }
1151
-
1152
- .qb-editor-chip[data-mps=query-condition] {
1153
- display: inline-flex;
1154
- align-items: center;
1155
- gap: 0.25rem;
1156
- padding: 0 0.375rem;
1157
- background: var(--bs-info-bg-subtle, #cff4fc);
1158
- color: var(--bs-info-text-emphasis, #055160);
1159
- border-radius: var(--bs-border-radius-sm, 0.25rem);
1160
- font-size: 0.75rem;
1161
- }
1162
-
1163
- .qb-editor-chip-remove[data-mps=query-condition] {
1164
- background: transparent;
1165
- border: 0;
1166
- padding: 0 0.125rem;
1167
- color: inherit;
1168
- cursor: pointer;
1169
- line-height: 1;
1170
- font-size: 0.875rem;
1171
- }
1172
-
1173
- .qb-editor-chip-remove:disabled[data-mps=query-condition] {
1174
- cursor: not-allowed;
1175
- opacity: 0.5;
1176
- }
1177
-
1178
- .qb-editor-chip-add[data-mps=query-condition] {
1179
- display: inline-block;
1180
- width: auto;
1181
- border: 0;
1182
- padding: 0 0.25rem;
1183
- font-size: 0.875rem;
1184
- background: transparent;
1185
- min-width: 4rem;
1186
- }
1187
-
1188
- .qb-editor-chip-add:focus[data-mps=query-condition] {
1189
- outline: none;
1190
- box-shadow: none;
1191
- }`), Oe = T(`mp-query-group {
1192
- display: block;
1193
- margin: 0.25rem 0;
1194
- }
1195
-
1196
- .qb-group[data-mps=query-group] {
1197
- border-left: 3px solid var(--bs-border-color, #dee2e6);
1198
- padding-left: 0.5rem;
1199
- }
1200
-
1201
- .qb-group-header[data-mps=query-group] {
1202
- display: flex;
1203
- align-items: center;
1204
- gap: 0.5rem;
1205
- font-size: 0.875rem;
1206
- margin-bottom: 0.25rem;
1207
- flex-wrap: wrap;
1208
- }
1209
-
1210
- .qb-group-actions[data-mps=query-group] {
1211
- display: inline-flex;
1212
- align-items: center;
1213
- gap: 0.25rem;
1214
- margin-left: auto;
1215
- }
1216
-
1217
- .qb-logic-btn[data-mps=query-group] {
1218
- font-size: 0.75rem;
1219
- text-transform: uppercase;
1220
- letter-spacing: 0.05em;
1221
- padding: 0.125rem 0.5rem;
1222
- }
1223
-
1224
- .qb-remove-group[data-mps=query-group] {
1225
- padding: 0 0.5rem;
1226
- line-height: 1;
1227
- font-size: 1rem;
1228
- color: var(--bs-danger, #dc3545);
1229
- }
1230
-
1231
- .qb-children[data-mps=query-group] {
1232
- display: flex;
1233
- flex-direction: column;
1234
- gap: 0.125rem;
1235
- }
1236
-
1237
- .qb-empty[data-mps=query-group] {
1238
- color: var(--bs-secondary-color, #6c757d);
1239
- font-style: italic;
1240
- font-size: 0.875rem;
1241
- padding: 0.25rem 0;
1242
- }
1243
-
1244
- .qb-drop-slot[data-mps=query-group] {
1245
- display: block;
1246
- height: 0.25rem;
1247
- margin: 0.0625rem 0;
1248
- border-radius: 2px;
1249
- background: transparent;
1250
- transition: background 0.1s ease-in-out, height 0.1s ease-in-out;
1251
- }
1252
-
1253
- .qb-drop-slot:hover[data-mps=query-group] {
1254
- background: var(--bs-primary, #0d6efd);
1255
- height: 0.375rem;
1256
- }
1257
-
1258
- .qb-drop-slot-placeholder[data-mps=query-group] {
1259
- height: 2rem;
1260
- display: flex;
1261
- align-items: center;
1262
- justify-content: center;
1263
- color: var(--bs-secondary-color, #6c757d);
1264
- font-style: italic;
1265
- border: 2px dashed var(--bs-border-color, #dee2e6);
1266
- background: var(--bs-tertiary-bg, #f8f9fa);
1267
- }
1268
-
1269
- @media (prefers-reduced-motion: reduce) {
1270
- [data-mps=query-group] {
1271
- transition-duration: 0.01ms !important;
1272
- }
1273
- }`), ze = T(`mp-query-subquery {
1274
- display: block;
1275
- margin: 0.25rem 0;
1276
- }
1277
-
1278
- .qb-subquery[data-mps=query-subquery] {
1279
- border: 1px dashed var(--bs-border-color, #dee2e6);
1280
- border-radius: var(--bs-border-radius, 0.375rem);
1281
- padding: 0.5rem;
1282
- background: var(--bs-tertiary-bg, #f8f9fa);
1283
- }
1284
-
1285
- .qb-subquery-header[data-mps=query-subquery] {
1286
- display: flex;
1287
- align-items: center;
1288
- gap: 0.5rem;
1289
- font-size: 0.875rem;
1290
- margin-bottom: 0.5rem;
1291
- }
1292
-
1293
- .qb-subquery-field[data-mps=query-subquery] {
1294
- font-weight: 600;
1295
- }
1296
-
1297
- .qb-subquery-operator[data-mps=query-subquery] {
1298
- color: var(--bs-secondary-color, #6c757d);
1299
- text-transform: lowercase;
1300
- }
1301
-
1302
- .qb-subquery-target[data-mps=query-subquery] {
1303
- font-style: italic;
1304
- color: var(--bs-secondary-color, #6c757d);
1305
- }`), Qe = 99999;
1306
- class He {
1307
- constructor() {
1308
- this._source = null, this._ghost = null, this._lastTarget = null, this._offsetX = 0, this._offsetY = 0;
1309
- }
1310
- isActive() {
1311
- return this._source !== null;
1312
- }
1313
- source() {
1314
- return this._source;
1315
- }
1316
- currentTarget() {
1317
- return this._lastTarget;
1318
- }
1319
- start(e, t) {
1320
- if (typeof document > "u") return;
1321
- this._source = e;
1322
- const r = e.rowElement.getBoundingClientRect();
1323
- this._offsetX = t.clientX - r.left, this._offsetY = t.clientY - r.top;
1324
- const n = e.rowElement.cloneNode(!0);
1325
- n.style.position = "fixed", n.style.top = `${r.top}px`, n.style.left = `${r.left}px`, n.style.width = `${r.width}px`, n.style.pointerEvents = "none", n.style.zIndex = String(Qe), n.style.opacity = "0.85", n.classList.add("qb-drag-ghost"), document.body.appendChild(n), this._ghost = n;
1326
- }
1327
- move(e) {
1328
- if (!this._source || !this._ghost) return;
1329
- this._ghost.style.top = `${e.clientY - this._offsetY}px`, this._ghost.style.left = `${e.clientX - this._offsetX}px`;
1330
- const t = this.resolveDropTarget(e.clientX, e.clientY);
1331
- this._lastTarget = t;
1332
- }
1333
- end(e) {
1334
- const t = this._lastTarget;
1335
- return this.cleanup(), t;
1336
- }
1337
- cancel() {
1338
- this.cleanup();
1339
- }
1340
- cleanup() {
1341
- this._ghost && typeof document < "u" && this._ghost.remove(), this._ghost = null, this._source = null, this._lastTarget = null, this._offsetX = 0, this._offsetY = 0;
1342
- }
1343
- /**
1344
- * The one hit-test seam: every element under (x, y), topmost first.
1345
- * `document.elementsFromPoint` (evergreen: Chromium, Firefox, WebKit 11.1+)
1346
- * stops at a shadow host, so the chain is extended one level into the
1347
- * shadow root of any host it contains — the builder may itself live inside
1348
- * another component's shadow root. Specs stub this method to say which
1349
- * element is under the pointer; they never fake geometry.
1350
- */
1351
- elementsAt(e, t) {
1352
- return Be(document.elementsFromPoint(e, t), e, t);
1353
- }
1354
- /**
1355
- * Returns the first `[data-drop-slot]` under the pointer (or its ancestor)
1356
- * that carries a complete target and whose data-parent-id is NOT in the
1357
- * source's descendant set (cycle prevention).
1358
- */
1359
- resolveDropTarget(e, t) {
1360
- const r = this._source;
1361
- if (!r) return null;
1362
- const i = this.elementsAt(e, t).map((s) => s.closest("[data-drop-slot]")).map((s) => s && {
1363
- parentId: s.dataset.parentId,
1364
- index: s.dataset.index,
1365
- qbRoot: s.dataset.qbRoot
1366
- }).find((s) => !!s && !!s.parentId && !!s.index && !!s.qbRoot && !r.descendantIds.has(s.parentId));
1367
- return i ? { parentId: i.parentId, index: Number(i.index), qbRoot: i.qbRoot } : null;
1368
- }
1369
- }
1370
- function Be(o, e, t) {
1371
- const r = [...new Set(o.map((n) => n.shadowRoot).filter((n) => !!n))].map((n) => n.elementFromPoint(e, t)).filter((n) => !!n);
1372
- return [...o, ...r];
1373
- }
1374
- const Q = P(
1375
- Symbol("mp-query-builder.editorRegistry")
1376
- ), R = P(
1377
- Symbol("mp-query-builder.disabled")
1378
- ), E = P(
1379
- Symbol("mp-query-builder.messages")
1380
- ), V = P(
1381
- Symbol("mp-query-builder.maxDepth")
1382
- ), se = "query-condition";
1383
- function Ue(o) {
1384
- return (e) => {
1385
- const t = o(e);
1386
- return W(t.element, se), t;
1387
- };
1388
- }
1389
- function A(o, e, t, r, n = {}) {
1390
- const i = document.createElement("input");
1391
- i.type = o, i.className = "form-control form-control-sm qb-editor-input", i.value = e, r && (i.disabled = !0);
1392
- for (const [d, a] of Object.entries(n))
1393
- a !== void 0 && i.setAttribute(d, a);
1394
- const s = () => t(i.value);
1395
- return i.addEventListener("input", s), i.addEventListener("change", s), i;
1396
- }
1397
- function ae(o, e) {
1398
- return o == null ? "" : e === "date" && o instanceof Date ? o.toISOString().slice(0, 10) : e === "datetime" && o instanceof Date ? o.toISOString().slice(0, 16) : typeof o == "string" && (e === "date" || e === "datetime") ? e === "date" ? o.slice(0, 10) : o.slice(0, 16) : String(o);
1399
- }
1400
- function de(o, e) {
1401
- if (o === "") return null;
1402
- switch (e) {
1403
- case "number":
1404
- return Number(o);
1405
- case "integer":
1406
- return Number.parseInt(o, 10);
1407
- case "date":
1408
- case "datetime":
1409
- return o;
1410
- // Keep as ISO string; backend parses.
1411
- default:
1412
- return o;
1413
- }
1414
- }
1415
- function _(o) {
1416
- return (e) => {
1417
- const t = o === "string" ? "text" : o === "date" ? "date" : o === "datetime" ? "datetime-local" : "number", r = {};
1418
- o === "integer" && (r.step = "1"), o === "number" && (r.step = "any");
1419
- const n = ae(e.value, o), i = A(
1420
- t,
1421
- n,
1422
- (s) => e.onChange(de(s, o)),
1423
- e.disabled,
1424
- r
1425
- );
1426
- return i.setAttribute("aria-label", e.field.label), { element: i };
1427
- };
1428
- }
1429
- function X(o) {
1430
- return (e) => {
1431
- const t = document.createElement("span");
1432
- t.className = "qb-editor-tuple";
1433
- let r = Array.isArray(e.value) ? [e.value[0] ?? null, e.value[1] ?? null] : [null, null];
1434
- const [n, i] = r, s = (y, le) => {
1435
- r = r.map((ue, ce) => ce === y ? de(le, o) : ue), e.onChange(r);
1436
- }, d = (y) => ae(y, o), a = o === "date" ? "date" : o === "datetime" ? "datetime-local" : "number", u = {};
1437
- o === "integer" && (u.step = "1"), o === "number" && (u.step = "any");
1438
- const l = A(a, d(n), (y) => s(0, y), e.disabled, u), c = A(a, d(i), (y) => s(1, y), e.disabled, u);
1439
- l.setAttribute("aria-label", `${e.field.label} (from)`), c.setAttribute("aria-label", `${e.field.label} (to)`);
1440
- const b = document.createElement("span");
1441
- return b.textContent = " … ", b.className = "qb-editor-tuple-sep", t.append(l, b, c), { element: t };
1442
- };
1443
- }
1444
- function Ge() {
1445
- return (o) => {
1446
- const e = typeof o.value == "object" && o.value !== null ? String(o.value.n ?? 1) : "1", t = A(
1447
- "number",
1448
- e,
1449
- (r) => {
1450
- const n = Math.max(1, Number.parseInt(r, 10) || 1);
1451
- o.onChange({ n });
1452
- },
1453
- o.disabled,
1454
- { min: "1", step: "1" }
1455
- );
1456
- return t.classList.add("qb-editor-n-input"), t.setAttribute("aria-label", `${o.field.label} — number of days`), { element: t };
1457
- };
1458
- }
1459
- function je(o) {
1460
- return (e) => {
1461
- const t = document.createElement("select");
1462
- t.className = "form-select form-select-sm qb-editor-select", t.setAttribute("aria-label", e.field.label), e.disabled && (t.disabled = !0);
1463
- const r = document.createElement("option");
1464
- r.value = "", r.textContent = "—", t.appendChild(r);
1465
- for (const n of o) {
1466
- const i = document.createElement("option");
1467
- i.value = String(n.value), i.textContent = n.label, e.value === n.value && (i.selected = !0), t.appendChild(i);
1468
- }
1469
- return t.addEventListener("change", () => {
1470
- if (t.value === "") {
1471
- e.onChange(null);
1472
- return;
1473
- }
1474
- const n = o.find((i) => String(i.value) === t.value);
1475
- e.onChange(n?.value ?? t.value);
1476
- }), { element: t };
1477
- };
1478
- }
1479
- function Ve(o) {
1480
- return (e) => {
1481
- const t = document.createElement("select");
1482
- t.className = "form-select form-select-sm qb-editor-multiselect", t.multiple = !0, t.setAttribute("aria-label", e.field.label), e.disabled && (t.disabled = !0);
1483
- const r = Array.isArray(e.value) ? e.value : [];
1484
- for (const n of o) {
1485
- const i = document.createElement("option");
1486
- i.value = String(n.value), i.textContent = n.label, r.includes(n.value) && (i.selected = !0), t.appendChild(i);
1487
- }
1488
- return t.addEventListener("change", () => {
1489
- const n = Array.from(t.selectedOptions).map((i) => o.find((d) => String(d.value) === i.value)?.value ?? i.value);
1490
- e.onChange(n);
1491
- }), { element: t };
1492
- };
1493
- }
1494
- function Y(o) {
1495
- return (e) => {
1496
- const t = document.createElement("span");
1497
- t.className = "qb-editor-chip-input";
1498
- let r = Array.isArray(e.value) ? [...e.value] : [];
1499
- const n = document.createElement("input");
1500
- n.type = "text", n.className = "form-control form-control-sm qb-editor-chip-add", n.placeholder = "+ add", n.size = 8, n.setAttribute("aria-label", `${e.field.label} — add value`), e.disabled && (n.disabled = !0);
1501
- const i = (a) => {
1502
- r = a, d(), e.onChange(a);
1503
- }, s = (a, u) => {
1504
- const l = document.createElement("span");
1505
- l.className = "qb-editor-chip", l.textContent = String(a);
1506
- const c = document.createElement("button");
1507
- return c.type = "button", c.className = "qb-editor-chip-remove", c.setAttribute("aria-label", `Remove ${String(a)}`), c.textContent = "×", e.disabled && (c.disabled = !0), c.addEventListener("click", () => i(r.filter((b, y) => y !== u))), l.appendChild(c), W(l, se), l;
1508
- }, d = () => {
1509
- const a = document.createRange();
1510
- a.selectNodeContents(t), a.setEndBefore(n), a.deleteContents(), n.before(...r.map(s));
1511
- };
1512
- return t.appendChild(n), n.addEventListener("keydown", (a) => {
1513
- if (a.key === "Enter" && n.value.trim() !== "") {
1514
- a.preventDefault();
1515
- const u = o(n.value.trim());
1516
- n.value = "", i([...r, u]);
1517
- }
1518
- }), d(), {
1519
- element: t,
1520
- dispose: () => {
1521
- }
1522
- };
1523
- };
1524
- }
1525
- function Xe(o, e) {
1526
- const t = Ye(o, e);
1527
- return t ? Ue(t) : null;
1528
- }
1529
- function Ye(o, e) {
1530
- const t = q(e);
1531
- if (t === "null") return null;
1532
- if (t === "n-input") return Ge();
1533
- if (t === "tuple") {
1534
- const r = o.type;
1535
- return X(r === "number" || r === "integer" || r === "date" || r === "datetime" ? r : "number");
1536
- }
1537
- return t === "array" ? o.options && o.options.length > 0 ? Ve(o.options) : o.type === "number" || o.type === "integer" ? Y(
1538
- (r) => o.type === "integer" ? Number.parseInt(r, 10) : Number(r)
1539
- ) : Y((r) => r) : o.type === "enum" && o.options && o.options.length > 0 ? je(o.options) : o.type === "string" ? _("string") : o.type === "number" ? _("number") : o.type === "integer" ? _("integer") : o.type === "date" ? _("date") : o.type === "datetime" ? _("datetime") : null;
1540
- }
1541
- const v = I("query-condition");
1542
- class Ke extends M {
1543
- constructor() {
1544
- super(...arguments), this.node = null, this.schema = [], this.currentEntity = "", this._messagesConsumer = new h(this, {
1545
- context: E,
1546
- subscribe: !0
1547
- }), this._disabledConsumer = new h(this, {
1548
- context: R,
1549
- subscribe: !0
1550
- }), this._registryConsumer = new h(this, {
1551
- context: Q,
1552
- subscribe: !0
1553
- }), this._editorMount = me(), this._currentHandle = null, this._editorKey = "", this._registryTokens = /* @__PURE__ */ new WeakMap(), this._nextRegistryToken = 1, this._onFieldChange = (e) => {
1554
- const t = e.target, r = this.node;
1555
- r && this.dispatchEvent(new CustomEvent("condition-field-change", {
1556
- detail: { id: r.id, field: t.value },
1557
- bubbles: !0,
1558
- composed: !0
1559
- }));
1560
- }, this._onOperatorChange = (e) => {
1561
- const t = e.target, r = this.node;
1562
- r && this.dispatchEvent(new CustomEvent("condition-operator-change", {
1563
- detail: { id: r.id, operator: t.value },
1564
- bubbles: !0,
1565
- composed: !0
1566
- }));
1567
- }, this._onRemove = () => {
1568
- const e = this.node;
1569
- e && this.dispatchEvent(new CustomEvent("node-remove", {
1570
- detail: { id: e.id },
1571
- bubbles: !0,
1572
- composed: !0
1573
- }));
1574
- }, this._onRowKeyDown = (e) => {
1575
- if (!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
1576
- const t = this.node;
1577
- if (!t || this.isDisabled()) return;
1578
- const r = this.renderRoot?.querySelector(".qb-condition"), n = e.composedPath()[0], i = n instanceof HTMLElement && n.classList.contains("qb-drag-handle");
1579
- n !== r && !i || (e.preventDefault(), this.dispatchEvent(new CustomEvent("qb-keyboard-move", {
1580
- detail: { id: t.id, direction: e.key === "ArrowUp" ? "up" : "down" },
1581
- bubbles: !0,
1582
- composed: !0
1583
- })));
1584
- }, this._onDragPointerDown = (e) => {
1585
- if (this.isDisabled()) return;
1586
- const t = this.node;
1587
- if (!t) return;
1588
- const r = this.renderRoot?.querySelector(".qb-condition");
1589
- r && this.dispatchEvent(new CustomEvent("qb-drag-start", {
1590
- detail: {
1591
- id: t.id,
1592
- pointerId: e.pointerId,
1593
- clientX: e.clientX,
1594
- clientY: e.clientY,
1595
- rowElement: r
1596
- },
1597
- bubbles: !0,
1598
- composed: !0
1599
- }));
1600
- };
1601
- }
1602
- createRenderRoot() {
1603
- return this;
1604
- }
1605
- static {
1606
- this.properties = {
1607
- node: { attribute: !1 },
1608
- schema: { attribute: !1 },
1609
- currentEntity: { attribute: !1 }
1610
- };
1611
- }
1612
- _registryIdentityToken(e) {
1613
- if (!e) return 0;
1614
- const t = this._registryTokens.get(e);
1615
- if (t !== void 0) return t;
1616
- const r = this._nextRegistryToken++;
1617
- return this._registryTokens.set(e, r), r;
1618
- }
1619
- connectedCallback() {
1620
- super.connectedCallback(), be();
1621
- }
1622
- disconnectedCallback() {
1623
- super.disconnectedCallback(), this._disposeEditor();
1624
- }
1625
- _disposeEditor() {
1626
- const e = this._currentHandle;
1627
- if (e) {
1628
- try {
1629
- e.dispose?.();
1630
- } catch {
1631
- }
1632
- e.element.remove(), this._currentHandle = null;
1633
- }
1634
- }
1635
- resolveField(e) {
1636
- return this.schema.find((t) => t.name === this.currentEntity)?.fields.find((t) => t.name === e);
1637
- }
1638
- messages() {
1639
- const e = this._messagesConsumer.value ?? {};
1640
- return {
1641
- ...f,
1642
- ...e,
1643
- operators: { ...f.operators, ...e.operators ?? {} }
1644
- };
1645
- }
1646
- isDisabled() {
1647
- return this._disabledConsumer.value ?? !1;
1648
- }
1649
- updated(e) {
1650
- this._refreshEditor();
1651
- }
1652
- _refreshEditor() {
1653
- const e = this._editorMount.value, t = this.node;
1654
- if (!e || !t) {
1655
- this._disposeEditor();
1656
- return;
1657
- }
1658
- const r = this.resolveField(t.field);
1659
- if (!r) {
1660
- this._disposeEditor();
1661
- return;
1662
- }
1663
- const n = this.isDisabled(), i = this._registryConsumer.value, s = i?.[r.name], d = s ? `r${this._registryIdentityToken(i)}` : "b", a = `${r.name}|${t.operator}|${n ? "1" : "0"}|${d}`;
1664
- if (this._currentHandle && a === this._editorKey) return;
1665
- this._disposeEditor();
1666
- const u = s ?? Xe(r, t.operator);
1667
- if (!u) return;
1668
- const l = {
1669
- field: r,
1670
- operator: t.operator,
1671
- value: t.value,
1672
- disabled: n,
1673
- onChange: (b) => {
1674
- this.dispatchEvent(new CustomEvent("condition-value-change", {
1675
- detail: { id: t.id, value: b },
1676
- bubbles: !0,
1677
- composed: !0
1678
- }));
1679
- }
1680
- }, c = u(l);
1681
- e.appendChild(c.element), this._currentHandle = c, this._editorKey = a;
1682
- }
1683
- _availableFields() {
1684
- return this.schema.find((e) => e.name === this.currentEntity)?.fields.filter((e) => e.type !== "relation") ?? [];
1685
- }
1686
- _availableOperators(e) {
1687
- return e ? k(e.type) : [];
1688
- }
1689
- render() {
1690
- const e = this.node;
1691
- if (!e) return m;
1692
- const t = this.resolveField(e.field), r = this.messages(), n = q(e.operator), i = this.isDisabled(), s = this._availableFields(), d = this._availableOperators(t);
1693
- return v`
1
+ import { installLightStyles as e, scopedHtml as t, stampScope as n } from "../light-dom/index.mjs";
2
+ import { t as r } from "../chunks/color-mode-warning-BWDrpfmR.mjs";
3
+ import "../chunks/checkbox-EnxkCGiC.mjs";
4
+ import "../chunks/select-R-96AksV.mjs";
5
+ import { LitElement as i, nothing as a, unsafeCSS as o } from "lit";
6
+ import { createRef as s, ref as c } from "lit/directives/ref.js";
7
+ import { ContextConsumer as l, ContextProvider as u, createContext as d } from "@lit/context";
8
+ //#region libs/mintplayer-web-components/query-builder/src/model/operators.ts
9
+ var f = {
10
+ string: [
11
+ "equals",
12
+ "not-equals",
13
+ "contains",
14
+ "does-not-contain",
15
+ "starts-with",
16
+ "ends-with",
17
+ "is-null",
18
+ "is-not-null",
19
+ "in",
20
+ "not-in"
21
+ ],
22
+ number: [
23
+ "equals",
24
+ "not-equals",
25
+ "lt",
26
+ "lte",
27
+ "gt",
28
+ "gte",
29
+ "between",
30
+ "not-between",
31
+ "is-null",
32
+ "is-not-null",
33
+ "in",
34
+ "not-in"
35
+ ],
36
+ integer: [
37
+ "equals",
38
+ "not-equals",
39
+ "lt",
40
+ "lte",
41
+ "gt",
42
+ "gte",
43
+ "between",
44
+ "not-between",
45
+ "is-null",
46
+ "is-not-null",
47
+ "in",
48
+ "not-in"
49
+ ],
50
+ date: [
51
+ "equals",
52
+ "not-equals",
53
+ "lt",
54
+ "lte",
55
+ "gt",
56
+ "gte",
57
+ "between",
58
+ "not-between",
59
+ "is-null",
60
+ "is-not-null",
61
+ "today",
62
+ "yesterday",
63
+ "this-week",
64
+ "last-week",
65
+ "next-week",
66
+ "this-month",
67
+ "last-month",
68
+ "next-month",
69
+ "this-year",
70
+ "last-year",
71
+ "next-year",
72
+ "last-n-days",
73
+ "next-n-days",
74
+ "year-to-date"
75
+ ],
76
+ datetime: [
77
+ "equals",
78
+ "not-equals",
79
+ "lt",
80
+ "lte",
81
+ "gt",
82
+ "gte",
83
+ "between",
84
+ "not-between",
85
+ "is-null",
86
+ "is-not-null",
87
+ "today",
88
+ "yesterday",
89
+ "this-week",
90
+ "last-week",
91
+ "next-week",
92
+ "this-month",
93
+ "last-month",
94
+ "next-month",
95
+ "this-year",
96
+ "last-year",
97
+ "next-year",
98
+ "last-n-days",
99
+ "next-n-days",
100
+ "year-to-date"
101
+ ],
102
+ boolean: [
103
+ "is-true",
104
+ "is-false",
105
+ "is-null",
106
+ "is-not-null"
107
+ ],
108
+ enum: [
109
+ "equals",
110
+ "not-equals",
111
+ "in",
112
+ "not-in",
113
+ "is-null",
114
+ "is-not-null"
115
+ ],
116
+ relation: ["in", "not-in"],
117
+ array: [
118
+ "any-of",
119
+ "all-of",
120
+ "none-of",
121
+ "is-empty",
122
+ "is-not-empty"
123
+ ]
124
+ }, ee = /* @__PURE__ */ new Set([
125
+ "is-null",
126
+ "is-not-null",
127
+ "is-true",
128
+ "is-false",
129
+ "is-empty",
130
+ "is-not-empty",
131
+ "today",
132
+ "yesterday",
133
+ "this-week",
134
+ "last-week",
135
+ "next-week",
136
+ "this-month",
137
+ "last-month",
138
+ "next-month",
139
+ "this-year",
140
+ "last-year",
141
+ "next-year",
142
+ "year-to-date"
143
+ ]), te = /* @__PURE__ */ new Set(["between", "not-between"]), ne = /* @__PURE__ */ new Set([
144
+ "in",
145
+ "not-in",
146
+ "any-of",
147
+ "all-of",
148
+ "none-of"
149
+ ]), re = /* @__PURE__ */ new Set(["last-n-days", "next-n-days"]);
150
+ function p(e) {
151
+ return ee.has(e) ? "null" : te.has(e) ? "tuple" : ne.has(e) ? "array" : re.has(e) ? "n-input" : "scalar";
152
+ }
153
+ function m(e) {
154
+ switch (p(e)) {
155
+ case "null": return null;
156
+ case "tuple": return [null, null];
157
+ case "array": return [];
158
+ case "n-input": return { n: 1 };
159
+ case "scalar": return null;
160
+ }
161
+ }
162
+ function h(e, t = f) {
163
+ return t[e] ?? [];
164
+ }
165
+ //#endregion
166
+ //#region libs/mintplayer-web-components/query-builder/src/model/operator-overrides.ts
167
+ function ie(e, t, n = f) {
168
+ let r = {
169
+ sanitized: {},
170
+ warnings: []
171
+ };
172
+ if (!t) return r;
173
+ let i = /* @__PURE__ */ new Map();
174
+ for (let t of e) for (let e of t.fields) i.has(e.name) || i.set(e.name, {
175
+ entity: t.name,
176
+ type: e.type
177
+ });
178
+ for (let [e, a] of Object.entries(t)) {
179
+ let t = a ?? [], o = i.get(e);
180
+ if (!o) {
181
+ r.warnings.push(`[operatorOverrides] Unknown field "${e}" — no entity in schema declares it. Override ignored.`);
182
+ continue;
183
+ }
184
+ let s = new Set(h(o.type, n)), c = [], l = [];
185
+ for (let e of t) s.has(e) ? c.push(e) : l.push(e);
186
+ l.length > 0 && r.warnings.push(`[operatorOverrides] Field "${e}" (${o.entity}.${e}, type=${o.type}) has operator(s) [${l.join(", ")}] not in the catalog for that type. Stripping.`), c.length === 0 && t.length > 0 && r.warnings.push(`[operatorOverrides] Field "${e}" has no valid operators after intersection — empty operator dropdown.`), r.sanitized[e] = c;
187
+ }
188
+ return r;
189
+ }
190
+ //#endregion
191
+ //#region libs/mintplayer-web-components/query-builder/src/model/default-tree.ts
192
+ function ae() {
193
+ if (typeof crypto < "u" && typeof crypto.randomUUID == "function") return crypto.randomUUID();
194
+ let e = typeof crypto < "u" && typeof crypto.getRandomValues == "function" ? crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16)) : Uint8Array.from({ length: 16 }, () => Math.floor(Math.random() * 256));
195
+ e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
196
+ let t = Array.from(e, (e) => e.toString(16).padStart(2, "0"));
197
+ return `${t.slice(0, 4).join("")}-${t.slice(4, 6).join("")}-${t.slice(6, 8).join("")}-${t.slice(8, 10).join("")}-${t.slice(10, 16).join("")}`;
198
+ }
199
+ function g() {
200
+ return ae();
201
+ }
202
+ function _(e = "and") {
203
+ return {
204
+ kind: "group",
205
+ id: g(),
206
+ logic: e,
207
+ children: []
208
+ };
209
+ }
210
+ function oe(e) {
211
+ let t = e.fields.find((e) => e.type !== "relation") ?? e.fields[0];
212
+ if (!t) return {
213
+ kind: "condition",
214
+ id: g(),
215
+ field: "",
216
+ operator: "equals",
217
+ value: null
218
+ };
219
+ let n = h(t.type)[0] ?? "equals";
220
+ return {
221
+ kind: "condition",
222
+ id: g(),
223
+ field: t.name,
224
+ operator: n,
225
+ value: m(n)
226
+ };
227
+ }
228
+ function v(e) {
229
+ let t = e.fields.find((e) => e.type === "relation" && e.targetEntity);
230
+ return t ? {
231
+ kind: "subquery",
232
+ id: g(),
233
+ field: t.name,
234
+ operator: "in",
235
+ subQuery: _("and")
236
+ } : null;
237
+ }
238
+ function y(e) {
239
+ switch (e.kind) {
240
+ case "group": return {
241
+ ...e,
242
+ children: e.children.map((e) => y(e))
243
+ };
244
+ case "condition": return {
245
+ ...e,
246
+ value: b(e.value)
247
+ };
248
+ case "subquery": return {
249
+ ...e,
250
+ subQuery: y(e.subQuery)
251
+ };
252
+ }
253
+ }
254
+ function b(e) {
255
+ return e == null ? e : Array.isArray(e) ? e.map(b) : typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e, b(t)])) : e;
256
+ }
257
+ //#endregion
258
+ //#region libs/mintplayer-web-components/query-builder/src/model/tree-ops.ts
259
+ function x(e, t) {
260
+ let n = t(e);
261
+ if (n === null) return null;
262
+ if (n.kind === "group") {
263
+ let e = n.children.map((e) => x(e, t)).filter((e) => e !== null);
264
+ return {
265
+ ...n,
266
+ children: e
267
+ };
268
+ }
269
+ if (n.kind === "subquery") {
270
+ let e = x(n.subQuery, t);
271
+ return e !== null && e.kind === "group" ? {
272
+ ...n,
273
+ subQuery: e
274
+ } : {
275
+ ...n,
276
+ subQuery: _("and")
277
+ };
278
+ }
279
+ return n;
280
+ }
281
+ function S(e, t) {
282
+ return x(e, t);
283
+ }
284
+ function C(e, t) {
285
+ return e.id === t ? e : e.kind === "group" ? se(e.children, (e) => C(e, t)) : e.kind === "subquery" ? C(e.subQuery, t) : null;
286
+ }
287
+ function se(e, t) {
288
+ return e.reduce((e, n) => e ?? t(n), null);
289
+ }
290
+ function w(e, t) {
291
+ if (e.kind === "group") {
292
+ let n = e.children.findIndex((e) => e.id === t);
293
+ return n >= 0 ? {
294
+ parent: e,
295
+ index: n
296
+ } : se(e.children, (e) => w(e, t));
297
+ }
298
+ return e.kind === "subquery" ? w(e.subQuery, t) : null;
299
+ }
300
+ function T(e) {
301
+ let t = (e) => e.kind === "group" ? [e.id, ...e.children.flatMap(t)] : e.kind === "subquery" ? [e.id, ...t(e.subQuery)] : [e.id];
302
+ return new Set(t(e));
303
+ }
304
+ function E(e, t, n) {
305
+ return S(e, (e) => e.kind === "group" && e.id === t ? {
306
+ ...e,
307
+ children: [...e.children, n]
308
+ } : e);
309
+ }
310
+ function ce(e, t, n) {
311
+ return E(e, t, oe(n));
312
+ }
313
+ function D(e, t, n = "and") {
314
+ return E(e, t, _(n));
315
+ }
316
+ function O(e, t, n) {
317
+ let r = v(n);
318
+ return r ? E(e, t, r) : e;
319
+ }
320
+ function k(e, t) {
321
+ return x(e, (e) => e.id === t ? null : e) ?? e;
322
+ }
323
+ function A(e, t, n) {
324
+ return S(e, (e) => e.kind === "group" && e.id === t ? {
325
+ ...e,
326
+ logic: n
327
+ } : e);
328
+ }
329
+ function j(e, t, n) {
330
+ return S(e, (e) => {
331
+ if ((e.kind === "condition" || e.kind === "subquery") && e.id === t) {
332
+ if (e.kind === "subquery") {
333
+ let t = { ...e };
334
+ return n.field !== void 0 && (t.field = n.field), n.operator !== void 0 && (n.operator === "in" || n.operator === "not-in") && (t.operator = n.operator), t;
335
+ }
336
+ let t = { ...e };
337
+ return n.field !== void 0 && (t.field = n.field), n.operator !== void 0 && (t.operator = n.operator), n.value !== void 0 && (t.value = n.value), t;
338
+ }
339
+ return e;
340
+ });
341
+ }
342
+ function le(e, t, n) {
343
+ return S(e, (e) => e.kind === "condition" && e.id === t ? ue(e, n) : e);
344
+ }
345
+ function ue(e, t) {
346
+ let n = h(t.type);
347
+ if (n.includes(e.operator)) return {
348
+ ...e,
349
+ field: t.name
350
+ };
351
+ let r = n[0] ?? "equals";
352
+ return {
353
+ ...e,
354
+ field: t.name,
355
+ operator: r,
356
+ value: m(r)
357
+ };
358
+ }
359
+ function de(e, t, n) {
360
+ return S(e, (e) => {
361
+ if (e.kind === "condition" && e.id === t) {
362
+ let t = p(e.operator) === p(n) ? e.value : m(n);
363
+ return {
364
+ ...e,
365
+ operator: n,
366
+ value: t
367
+ };
368
+ }
369
+ return e;
370
+ });
371
+ }
372
+ function M(e, t, n, r, i) {
373
+ if (t === n) return e;
374
+ let a = C(e, t);
375
+ if (!a) return e;
376
+ let o = C(e, n);
377
+ if (!o || o.kind !== "group" || T(a).has(n)) return e;
378
+ let s = i ? fe(a, i) : a;
379
+ return S(k(e, t), (e) => {
380
+ if (e.kind === "group" && e.id === n) {
381
+ let t = [...e.children], n = Math.max(0, Math.min(r, t.length));
382
+ return t.splice(n, 0, s), {
383
+ ...e,
384
+ children: t
385
+ };
386
+ }
387
+ return e;
388
+ });
389
+ }
390
+ function fe(e, t) {
391
+ let n = t.fields.find((e) => e.type !== "relation");
392
+ if (e.kind === "condition") {
393
+ let r = t.fields.find((t) => t.name === e.field);
394
+ if (r && r.type !== "relation") return ue(e, r);
395
+ if (!n) return e;
396
+ let i = h(n.type)[0] ?? "equals";
397
+ return {
398
+ ...e,
399
+ field: n.name,
400
+ operator: i,
401
+ value: m(i)
402
+ };
403
+ }
404
+ return e.kind === "group" ? {
405
+ ...e,
406
+ children: e.children.map((e) => fe(e, t))
407
+ } : e;
408
+ }
409
+ //#endregion
410
+ //#region libs/mintplayer-web-components/query-builder/src/model/errors.ts
411
+ var N = class extends Error {
412
+ constructor(e, t) {
413
+ super(`Query tree depth ${e} exceeds maxDepth ${t}.`), this.depth = e, this.maxDepth = t, this.name = "MaxDepthExceededError";
414
+ }
415
+ }, P = {
416
+ addCondition: "Add condition",
417
+ addGroup: "Add group",
418
+ addSubquery: "Add sub-query",
419
+ removeRow: "Remove",
420
+ removeGroup: "Remove group",
421
+ logicAnd: "AND",
422
+ logicOr: "OR",
423
+ saveCurrentAs: "Save current as…",
424
+ loadQuery: "Load",
425
+ deleteQuery: "Delete",
426
+ treeTooDeep: "Tree too deep",
427
+ dropHerePlaceholder: "Drop here",
428
+ emptyGroup: "(empty group)",
429
+ savedQueryName: "Name for saved query",
430
+ entity: "Entity",
431
+ columns: "Columns",
432
+ sortBy: "Sort by",
433
+ reorderHint: "Drag or use Alt+Up/Down to reorder",
434
+ field: "Field",
435
+ operator: "Operator",
436
+ groupLogic: "Group logic",
437
+ operators: {
438
+ equals: "=",
439
+ "not-equals": "≠",
440
+ contains: "contains",
441
+ "does-not-contain": "does not contain",
442
+ "starts-with": "starts with",
443
+ "ends-with": "ends with",
444
+ lt: "<",
445
+ lte: "≤",
446
+ gt: ">",
447
+ gte: "≥",
448
+ between: "between",
449
+ "not-between": "not between",
450
+ in: "in",
451
+ "not-in": "not in",
452
+ "is-null": "is null",
453
+ "is-not-null": "is not null",
454
+ "is-true": "is true",
455
+ "is-false": "is false",
456
+ today: "is today",
457
+ yesterday: "is yesterday",
458
+ "this-week": "is this week",
459
+ "last-week": "is last week",
460
+ "next-week": "is next week",
461
+ "this-month": "is this month",
462
+ "last-month": "is last month",
463
+ "next-month": "is next month",
464
+ "this-year": "is this year",
465
+ "last-year": "is last year",
466
+ "next-year": "is next year",
467
+ "last-n-days": "is in the last N days",
468
+ "next-n-days": "is in the next N days",
469
+ "year-to-date": "is year-to-date",
470
+ "any-of": "any of",
471
+ "all-of": "all of",
472
+ "none-of": "none of",
473
+ "is-empty": "is empty",
474
+ "is-not-empty": "is not empty"
475
+ }
476
+ }, pe = 32;
477
+ function me(e, t, n, r = {}) {
478
+ let i = r.maxDepth ?? pe;
479
+ return F(e, t, {
480
+ schema: n.schema,
481
+ currentEntity: n.rootEntity,
482
+ depth: 0
483
+ }, i);
484
+ }
485
+ function F(e, t, n, r) {
486
+ if (n.depth > r) throw new N(n.depth, r);
487
+ switch (e.kind) {
488
+ case "condition": return t.condition(e, n);
489
+ case "group": {
490
+ let i = {
491
+ ...n,
492
+ depth: n.depth + 1
493
+ }, a = e.children.map((e) => F(e, t, i, r));
494
+ return t.group(e, a, n);
495
+ }
496
+ case "subquery": {
497
+ let i = n.schema.find((e) => e.name === n.currentEntity);
498
+ if (!i) throw Error(`visitTree: schema has no entity "${n.currentEntity}".`);
499
+ let a = i.fields.find((t) => t.name === e.field);
500
+ if (!a) throw Error(`visitTree: entity "${n.currentEntity}" has no field "${e.field}".`);
501
+ if (a.type !== "relation" || !a.targetEntity) throw Error(`visitTree: field "${e.field}" is not a relation.`);
502
+ let o = a.targetEntity;
503
+ if (!n.schema.some((e) => e.name === o)) throw Error(`visitTree: relation target "${o}" missing from schema.`);
504
+ let s = {
505
+ ...n,
506
+ currentEntity: o,
507
+ depth: n.depth + 1
508
+ };
509
+ return t.subquery(e, n, () => F(e.subQuery, t, s, r));
510
+ }
511
+ }
512
+ }
513
+ //#endregion
514
+ //#region libs/mintplayer-web-components/query-builder/src/preview/render-expression.ts
515
+ var he = 32;
516
+ function I(e, t, n = {}) {
517
+ let r = ge(n.messages), i = n.maxDepth ?? he;
518
+ return L(e, t, n.rootEntity ?? t[0]?.name ?? "", r, 0, i);
519
+ }
520
+ function ge(e) {
521
+ return {
522
+ ...P,
523
+ ...e ?? {},
524
+ operators: {
525
+ ...P.operators,
526
+ ...e?.operators ?? {}
527
+ }
528
+ };
529
+ }
530
+ function L(e, t, n, r, i, a) {
531
+ if (i > a) throw new N(i, a);
532
+ switch (e.kind) {
533
+ case "group": return _e(e, t, n, r, i, a);
534
+ case "condition": return ve(e, t, n, r);
535
+ case "subquery": return ye(e, t, n, r, i, a);
536
+ }
537
+ }
538
+ function _e(e, t, n, r, i, a) {
539
+ if (e.children.length === 0) return e.logic === "and" ? "TRUE" : "FALSE";
540
+ let o = e.logic === "and" ? ` ${r.logicAnd} ` : ` ${r.logicOr} `;
541
+ return `(${e.children.map((e) => L(e, t, n, r, i + 1, a)).join(o)})`;
542
+ }
543
+ function ve(e, t, n, r) {
544
+ let i = z(t, n, e.field)?.label ?? e.field, a = r.operators[e.operator] ?? e.operator, o = be(e.operator, e.value);
545
+ return o === "" ? `${i} ${a}` : `${i} ${a} ${o}`;
546
+ }
547
+ function ye(e, t, n, r, i, a) {
548
+ let o = z(t, n, e.field), s = o?.label ?? e.field, c = r.operators[e.operator] ?? e.operator, l = o?.targetEntity ?? "";
549
+ return `${s} ${c} ${L(e.subQuery, t, l, r, i + 1, a)}`;
550
+ }
551
+ function be(e, t) {
552
+ let n = p(e);
553
+ if (n === "null") return "";
554
+ if (n === "tuple" && Array.isArray(t) || n === "array" && Array.isArray(t)) return `[${t.map(R).join(", ")}]`;
555
+ if (n === "n-input" && typeof t == "object" && t) {
556
+ let e = t.n;
557
+ return typeof e == "number" ? String(e) : JSON.stringify(t);
558
+ }
559
+ return R(t);
560
+ }
561
+ function R(e) {
562
+ return e == null ? "?" : typeof e == "string" ? `"${e}"` : e instanceof Date ? e.toISOString() : String(e);
563
+ }
564
+ function z(e, t, n) {
565
+ return e.find((e) => e.name === t)?.fields.find((e) => e.name === n);
566
+ }
567
+ //#endregion
568
+ //#region libs/mintplayer-web-components/query-builder/src/mp-query-builder.light.styles.ts
569
+ var B = o(".form-control[data-mps=query-builder] {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: var(--bs-body-color);\n appearance: none;\n background-color: var(--bs-body-bg);\n background-clip: padding-box;\n border: var(--bs-border-width) solid var(--bs-border-color);\n border-radius: var(--bs-border-radius);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-control[data-mps=query-builder] {\n transition: none;\n }\n}\n.form-control[type=file][data-mps=query-builder] {\n overflow: hidden;\n}\n.form-control[type=file]:not(:disabled):not([readonly])[data-mps=query-builder] {\n cursor: pointer;\n}\n.form-control:focus[data-mps=query-builder] {\n color: var(--bs-body-color);\n background-color: var(--bs-body-bg);\n border-color: rgb(52.5490196078%, 71.568627451%, 99.6078431373%);\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.form-control[data-mps=query-builder]::-webkit-date-and-time-value {\n min-width: 85px;\n height: 1.5em;\n margin: 0;\n}\n.form-control[data-mps=query-builder]::-webkit-datetime-edit {\n display: block;\n padding: 0;\n}\n.form-control[data-mps=query-builder]::placeholder {\n color: var(--bs-secondary-color);\n opacity: 1;\n}\n.form-control:disabled[data-mps=query-builder] {\n background-color: var(--bs-secondary-bg);\n opacity: 1;\n}\n.form-control[data-mps=query-builder]::file-selector-button {\n padding: 0.375rem 0.75rem;\n margin: -0.375rem -0.75rem;\n margin-inline-end: 0.75rem;\n color: var(--bs-body-color);\n background-color: var(--bs-tertiary-bg);\n pointer-events: none;\n border-color: inherit;\n border-style: solid;\n border-width: 0;\n border-inline-end-width: var(--bs-border-width);\n border-radius: 0;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-control[data-mps=query-builder]::file-selector-button {\n transition: none;\n }\n}\n.form-control:hover:not(:disabled):not([readonly])[data-mps=query-builder]::file-selector-button {\n background-color: var(--bs-secondary-bg);\n}\n\n.form-control-plaintext[data-mps=query-builder] {\n display: block;\n width: 100%;\n padding: 0.375rem 0;\n margin-bottom: 0;\n line-height: 1.5;\n color: var(--bs-body-color);\n background-color: transparent;\n border: solid transparent;\n border-width: var(--bs-border-width) 0;\n}\n.form-control-plaintext:focus[data-mps=query-builder] {\n outline: 0;\n}\n.form-control-plaintext.form-control-sm[data-mps=query-builder], .form-control-plaintext.form-control-lg[data-mps=query-builder] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.form-control-sm[data-mps=query-builder] {\n min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n border-radius: var(--bs-border-radius-sm);\n}\n.form-control-sm[data-mps=query-builder]::file-selector-button {\n padding: 0.25rem 0.5rem;\n margin: -0.25rem -0.5rem;\n margin-inline-end: 0.5rem;\n}\n\n.form-control-lg[data-mps=query-builder] {\n min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n padding: 0.5rem 1rem;\n font-size: 1.25rem;\n border-radius: var(--bs-border-radius-lg);\n}\n.form-control-lg[data-mps=query-builder]::file-selector-button {\n padding: 0.5rem 1rem;\n margin: -0.5rem -1rem;\n margin-inline-end: 1rem;\n}\n\ntextarea.form-control[data-mps=query-builder] {\n min-height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));\n}\ntextarea.form-control-sm[data-mps=query-builder] {\n min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n}\ntextarea.form-control-lg[data-mps=query-builder] {\n min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n}\n\n.form-control-color[data-mps=query-builder] {\n width: 3rem;\n height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));\n padding: 0.375rem;\n}\n.form-control-color:not(:disabled):not([readonly])[data-mps=query-builder] {\n cursor: pointer;\n}\n.form-control-color[data-mps=query-builder]::-moz-color-swatch {\n border: 0 !important;\n border-radius: var(--bs-border-radius);\n}\n.form-control-color[data-mps=query-builder]::-webkit-color-swatch {\n border: 0 !important;\n border-radius: var(--bs-border-radius);\n}\n.form-control-color.form-control-sm[data-mps=query-builder] {\n height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n}\n.form-control-color.form-control-lg[data-mps=query-builder] {\n height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n}\n\nmp-query-builder {\n display: block;\n font-family: var(--bs-body-font-family, system-ui);\n font-size: var(--bs-body-font-size, 1rem);\n color: var(--bs-body-color, currentColor);\n}\n\n.qb-root[data-mps=query-builder] {\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius, 0.375rem);\n padding: 0.5rem;\n background: var(--bs-body-bg, transparent);\n}\n\n.qb-toolbar[data-mps=query-builder] {\n display: flex;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n margin-bottom: 0.5rem;\n padding: 0.5rem;\n background: var(--bs-tertiary-bg, #f8f9fa);\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n}\n\n.qb-toolbar-label[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n font-size: 0.875rem;\n font-weight: 500;\n margin: 0;\n}\n\n.qb-entity-picker[data-mps=query-builder] {\n width: auto;\n min-width: 8rem;\n}\n\n.qb-toolbar-section[data-mps=query-builder] {\n display: inline-flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n align-items: center;\n}\n\n.qb-field-checkbox[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n font-size: 0.875rem;\n font-weight: 400;\n margin: 0;\n cursor: pointer;\n}\n.qb-field-checkbox[data-mps=query-builder] input[type=checkbox][data-mps=query-builder] {\n margin: 0;\n}\n\n.qb-sort-row[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n font-size: 0.875rem;\n}\n.qb-sort-row[data-mps=query-builder] .qb-sort-field[data-mps=query-builder],\n.qb-sort-row[data-mps=query-builder] .qb-sort-direction[data-mps=query-builder] {\n width: auto;\n}\n.qb-sort-row[data-mps=query-builder] .qb-sort-field[data-mps=query-builder] {\n min-width: 6rem;\n}\n.qb-sort-row[data-mps=query-builder] .qb-sort-direction[data-mps=query-builder] {\n min-width: 4.5rem;\n}\n.qb-sort-row[data-mps=query-builder] .qb-sort-remove[data-mps=query-builder] {\n padding: 0 0.375rem;\n line-height: 1;\n color: var(--bs-danger, #dc3545);\n}\n\n.qb-sort-add[data-mps=query-builder] {\n --bs-btn-color: var(--bs-secondary-color);\n}\n\n.qb-too-deep[data-mps=query-builder] {\n padding: 0.5rem;\n color: var(--bs-warning-text-emphasis, #997404);\n background: var(--bs-warning-bg-subtle, #fff3cd);\n border: 1px solid var(--bs-warning-border-subtle, #ffe69c);\n border-radius: var(--bs-border-radius, 0.375rem);\n font-style: italic;\n}\n\n.qb-saved[data-mps=query-builder] {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n align-items: center;\n margin-bottom: 0.5rem;\n padding: 0.5rem;\n background: var(--bs-tertiary-bg, #f8f9fa);\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n}\n\n.qb-saved-list[data-mps=query-builder] {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.qb-saved-row[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.125rem;\n}\n\n.qb-saved-new[data-mps=query-builder] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n margin-left: auto;\n}\n\n.qb-saved-empty[data-mps=query-builder] {\n color: var(--bs-secondary-color, #6c757d);\n font-style: italic;\n font-size: 0.875rem;\n}\n\n.qb-preview[data-mps=query-builder] {\n margin: 0 0 0.5rem;\n padding: 0.5rem;\n background: var(--bs-secondary-bg, #f8f9fa);\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n font-family: var(--bs-font-monospace, monospace);\n font-size: 0.8125rem;\n color: var(--bs-body-color, currentColor);\n white-space: pre-wrap;\n word-break: break-word;\n}"), V = o(".form-control[data-mps=query-condition] {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: var(--bs-body-color);\n appearance: none;\n background-color: var(--bs-body-bg);\n background-clip: padding-box;\n border: var(--bs-border-width) solid var(--bs-border-color);\n border-radius: var(--bs-border-radius);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-control[data-mps=query-condition] {\n transition: none;\n }\n}\n.form-control[type=file][data-mps=query-condition] {\n overflow: hidden;\n}\n.form-control[type=file]:not(:disabled):not([readonly])[data-mps=query-condition] {\n cursor: pointer;\n}\n.form-control:focus[data-mps=query-condition] {\n color: var(--bs-body-color);\n background-color: var(--bs-body-bg);\n border-color: rgb(52.5490196078%, 71.568627451%, 99.6078431373%);\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.form-control[data-mps=query-condition]::-webkit-date-and-time-value {\n min-width: 85px;\n height: 1.5em;\n margin: 0;\n}\n.form-control[data-mps=query-condition]::-webkit-datetime-edit {\n display: block;\n padding: 0;\n}\n.form-control[data-mps=query-condition]::placeholder {\n color: var(--bs-secondary-color);\n opacity: 1;\n}\n.form-control:disabled[data-mps=query-condition] {\n background-color: var(--bs-secondary-bg);\n opacity: 1;\n}\n.form-control[data-mps=query-condition]::file-selector-button {\n padding: 0.375rem 0.75rem;\n margin: -0.375rem -0.75rem;\n margin-inline-end: 0.75rem;\n color: var(--bs-body-color);\n background-color: var(--bs-tertiary-bg);\n pointer-events: none;\n border-color: inherit;\n border-style: solid;\n border-width: 0;\n border-inline-end-width: var(--bs-border-width);\n border-radius: 0;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-control[data-mps=query-condition]::file-selector-button {\n transition: none;\n }\n}\n.form-control:hover:not(:disabled):not([readonly])[data-mps=query-condition]::file-selector-button {\n background-color: var(--bs-secondary-bg);\n}\n\n.form-control-plaintext[data-mps=query-condition] {\n display: block;\n width: 100%;\n padding: 0.375rem 0;\n margin-bottom: 0;\n line-height: 1.5;\n color: var(--bs-body-color);\n background-color: transparent;\n border: solid transparent;\n border-width: var(--bs-border-width) 0;\n}\n.form-control-plaintext:focus[data-mps=query-condition] {\n outline: 0;\n}\n.form-control-plaintext.form-control-sm[data-mps=query-condition], .form-control-plaintext.form-control-lg[data-mps=query-condition] {\n padding-right: 0;\n padding-left: 0;\n}\n\n.form-control-sm[data-mps=query-condition] {\n min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n border-radius: var(--bs-border-radius-sm);\n}\n.form-control-sm[data-mps=query-condition]::file-selector-button {\n padding: 0.25rem 0.5rem;\n margin: -0.25rem -0.5rem;\n margin-inline-end: 0.5rem;\n}\n\n.form-control-lg[data-mps=query-condition] {\n min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n padding: 0.5rem 1rem;\n font-size: 1.25rem;\n border-radius: var(--bs-border-radius-lg);\n}\n.form-control-lg[data-mps=query-condition]::file-selector-button {\n padding: 0.5rem 1rem;\n margin: -0.5rem -1rem;\n margin-inline-end: 1rem;\n}\n\ntextarea.form-control[data-mps=query-condition] {\n min-height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));\n}\ntextarea.form-control-sm[data-mps=query-condition] {\n min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n}\ntextarea.form-control-lg[data-mps=query-condition] {\n min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n}\n\n.form-control-color[data-mps=query-condition] {\n width: 3rem;\n height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));\n padding: 0.375rem;\n}\n.form-control-color:not(:disabled):not([readonly])[data-mps=query-condition] {\n cursor: pointer;\n}\n.form-control-color[data-mps=query-condition]::-moz-color-swatch {\n border: 0 !important;\n border-radius: var(--bs-border-radius);\n}\n.form-control-color[data-mps=query-condition]::-webkit-color-swatch {\n border: 0 !important;\n border-radius: var(--bs-border-radius);\n}\n.form-control-color.form-control-sm[data-mps=query-condition] {\n height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));\n}\n.form-control-color.form-control-lg[data-mps=query-condition] {\n height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));\n}\n\n.form-select[data-mps=query-condition] {\n --bs-form-select-bg-img: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\");\n display: block;\n width: 100%;\n padding: 0.375rem 2.25rem 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: var(--bs-body-color);\n appearance: none;\n background-color: var(--bs-body-bg);\n background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);\n background-repeat: no-repeat;\n background-position: right 0.75rem center;\n background-size: 16px 12px;\n border: var(--bs-border-width) solid var(--bs-border-color);\n border-radius: var(--bs-border-radius);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .form-select[data-mps=query-condition] {\n transition: none;\n }\n}\n.form-select:focus[data-mps=query-condition] {\n border-color: rgb(52.5490196078%, 71.568627451%, 99.6078431373%);\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.form-select[multiple][data-mps=query-condition], .form-select[size]:not([size=\"1\"])[data-mps=query-condition] {\n padding-right: 0.75rem;\n background-image: none;\n}\n.form-select:disabled[data-mps=query-condition] {\n background-color: var(--bs-secondary-bg);\n}\n.form-select:-moz-focusring[data-mps=query-condition] {\n color: transparent;\n text-shadow: 0 0 0 var(--bs-body-color);\n}\n\n.form-select-sm[data-mps=query-condition] {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n padding-left: 0.5rem;\n font-size: 0.875rem;\n border-radius: var(--bs-border-radius-sm);\n}\n\n.form-select-lg[data-mps=query-condition] {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n padding-left: 1rem;\n font-size: 1.25rem;\n border-radius: var(--bs-border-radius-lg);\n}\n\n@container style(--mp-color-mode: dark) {\n .form-select[data-mps=query-condition] {\n --bs-form-select-bg-img: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\");\n }\n}\n@media (forced-colors: active) {\n .form-select[data-mps=query-condition] {\n appearance: auto;\n background-image: none;\n }\n}\nmp-query-condition {\n display: block;\n}\n\n.qb-condition[data-mps=query-condition] {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.25rem 0;\n font-size: 0.875rem;\n flex-wrap: wrap;\n}\n\n.qb-field-select[data-mps=query-condition],\n.qb-operator-select[data-mps=query-condition] {\n display: inline-block;\n width: auto;\n min-width: 8rem;\n}\n\n.qb-remove[data-mps=query-condition] {\n flex: 0 0 auto;\n margin-left: auto;\n padding: 0 0.5rem;\n line-height: 1;\n font-size: 1rem;\n color: var(--bs-danger, #dc3545);\n}\n\n.qb-drag-handle[data-mps=query-condition] {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1rem;\n height: 1.25rem;\n padding: 0;\n background: transparent;\n border: 0;\n color: var(--bs-secondary-color, #6c757d);\n cursor: grab;\n font-size: 1rem;\n line-height: 1;\n touch-action: none;\n}\n\n.qb-drag-handle:active[data-mps=query-condition] {\n cursor: grabbing;\n}\n\n.qb-drag-handle:disabled[data-mps=query-condition] {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.qb-field[data-mps=query-condition] {\n font-weight: 600;\n color: var(--bs-body-color, currentColor);\n}\n\n.qb-operator[data-mps=query-condition] {\n color: var(--bs-secondary-color, #6c757d);\n}\n\n.qb-value[data-mps=query-condition] {\n color: var(--bs-primary-text-emphasis, #084298);\n}\n\n.qb-value-list[data-mps=query-condition] {\n display: inline-flex;\n gap: 0.25rem;\n}\n\n.qb-value-pill[data-mps=query-condition] {\n display: inline-block;\n padding: 0 0.375rem;\n background: var(--bs-info-bg-subtle, #cff4fc);\n color: var(--bs-info-text-emphasis, #055160);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n}\n\n.qb-missing[data-mps=query-condition] {\n color: var(--bs-danger-text-emphasis, #842029);\n font-style: italic;\n}\n\n.qb-editor-input[data-mps=query-condition] {\n display: inline-block;\n width: auto;\n min-width: 6rem;\n vertical-align: middle;\n}\n\n.qb-editor-n-input[data-mps=query-condition] {\n min-width: 4rem;\n max-width: 6rem;\n}\n\n.qb-editor-select[data-mps=query-condition],\n.qb-editor-multiselect[data-mps=query-condition] {\n display: inline-block;\n width: auto;\n min-width: 8rem;\n vertical-align: middle;\n}\n\n.qb-editor-tuple[data-mps=query-condition] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.qb-editor-tuple-sep[data-mps=query-condition] {\n color: var(--bs-secondary-color, #6c757d);\n font-size: 0.875rem;\n}\n\n.qb-editor-chip-input[data-mps=query-condition] {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.25rem;\n padding: 0.125rem;\n border: 1px solid var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n background: var(--bs-body-bg, transparent);\n min-height: 1.75rem;\n}\n\n.qb-editor-chip[data-mps=query-condition] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n padding: 0 0.375rem;\n background: var(--bs-info-bg-subtle, #cff4fc);\n color: var(--bs-info-text-emphasis, #055160);\n border-radius: var(--bs-border-radius-sm, 0.25rem);\n font-size: 0.75rem;\n}\n\n.qb-editor-chip-remove[data-mps=query-condition] {\n background: transparent;\n border: 0;\n padding: 0 0.125rem;\n color: inherit;\n cursor: pointer;\n line-height: 1;\n font-size: 0.875rem;\n}\n\n.qb-editor-chip-remove:disabled[data-mps=query-condition] {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.qb-editor-chip-add[data-mps=query-condition] {\n display: inline-block;\n width: auto;\n border: 0;\n padding: 0 0.25rem;\n font-size: 0.875rem;\n background: transparent;\n min-width: 4rem;\n}\n\n.qb-editor-chip-add:focus[data-mps=query-condition] {\n outline: none;\n box-shadow: none;\n}"), H = o("mp-query-group {\n display: block;\n margin: 0.25rem 0;\n}\n\n.qb-group[data-mps=query-group] {\n border-left: 3px solid var(--bs-border-color, #dee2e6);\n padding-left: 0.5rem;\n}\n\n.qb-group-header[data-mps=query-group] {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n font-size: 0.875rem;\n margin-bottom: 0.25rem;\n flex-wrap: wrap;\n}\n\n.qb-group-actions[data-mps=query-group] {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n margin-left: auto;\n}\n\n.qb-logic-btn[data-mps=query-group] {\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n padding: 0.125rem 0.5rem;\n}\n\n.qb-remove-group[data-mps=query-group] {\n padding: 0 0.5rem;\n line-height: 1;\n font-size: 1rem;\n color: var(--bs-danger, #dc3545);\n}\n\n.qb-children[data-mps=query-group] {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.qb-empty[data-mps=query-group] {\n color: var(--bs-secondary-color, #6c757d);\n font-style: italic;\n font-size: 0.875rem;\n padding: 0.25rem 0;\n}\n\n.qb-drop-slot[data-mps=query-group] {\n display: block;\n height: 0.25rem;\n margin: 0.0625rem 0;\n border-radius: 2px;\n background: transparent;\n transition: background 0.1s ease-in-out, height 0.1s ease-in-out;\n}\n\n.qb-drop-slot:hover[data-mps=query-group] {\n background: var(--bs-primary, #0d6efd);\n height: 0.375rem;\n}\n\n.qb-drop-slot-placeholder[data-mps=query-group] {\n height: 2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--bs-secondary-color, #6c757d);\n font-style: italic;\n border: 2px dashed var(--bs-border-color, #dee2e6);\n background: var(--bs-tertiary-bg, #f8f9fa);\n}\n\n@media (prefers-reduced-motion: reduce) {\n [data-mps=query-group] {\n transition-duration: 0.01ms !important;\n }\n}"), U = o("mp-query-subquery {\n display: block;\n margin: 0.25rem 0;\n}\n\n.qb-subquery[data-mps=query-subquery] {\n border: 1px dashed var(--bs-border-color, #dee2e6);\n border-radius: var(--bs-border-radius, 0.375rem);\n padding: 0.5rem;\n background: var(--bs-tertiary-bg, #f8f9fa);\n}\n\n.qb-subquery-header[data-mps=query-subquery] {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n font-size: 0.875rem;\n margin-bottom: 0.5rem;\n}\n\n.qb-subquery-field[data-mps=query-subquery] {\n font-weight: 600;\n}\n\n.qb-subquery-operator[data-mps=query-subquery] {\n color: var(--bs-secondary-color, #6c757d);\n text-transform: lowercase;\n}\n\n.qb-subquery-target[data-mps=query-subquery] {\n font-style: italic;\n color: var(--bs-secondary-color, #6c757d);\n}"), xe = 99999, Se = class {
570
+ constructor() {
571
+ this._source = null, this._ghost = null, this._lastTarget = null, this._offsetX = 0, this._offsetY = 0;
572
+ }
573
+ isActive() {
574
+ return this._source !== null;
575
+ }
576
+ source() {
577
+ return this._source;
578
+ }
579
+ currentTarget() {
580
+ return this._lastTarget;
581
+ }
582
+ start(e, t) {
583
+ if (typeof document > "u") return;
584
+ this._source = e;
585
+ let n = e.rowElement.getBoundingClientRect();
586
+ this._offsetX = t.clientX - n.left, this._offsetY = t.clientY - n.top;
587
+ let r = e.rowElement.cloneNode(!0);
588
+ r.style.position = "fixed", r.style.top = `${n.top}px`, r.style.left = `${n.left}px`, r.style.width = `${n.width}px`, r.style.pointerEvents = "none", r.style.zIndex = String(xe), r.style.opacity = "0.85", r.classList.add("qb-drag-ghost"), document.body.appendChild(r), this._ghost = r;
589
+ }
590
+ move(e) {
591
+ if (!this._source || !this._ghost) return;
592
+ this._ghost.style.top = `${e.clientY - this._offsetY}px`, this._ghost.style.left = `${e.clientX - this._offsetX}px`;
593
+ let t = this.resolveDropTarget(e.clientX, e.clientY);
594
+ this._lastTarget = t;
595
+ }
596
+ end(e) {
597
+ let t = this._lastTarget;
598
+ return this.cleanup(), t;
599
+ }
600
+ cancel() {
601
+ this.cleanup();
602
+ }
603
+ cleanup() {
604
+ this._ghost && typeof document < "u" && this._ghost.remove(), this._ghost = null, this._source = null, this._lastTarget = null, this._offsetX = 0, this._offsetY = 0;
605
+ }
606
+ elementsAt(e, t) {
607
+ return Ce(document.elementsFromPoint(e, t), e, t);
608
+ }
609
+ resolveDropTarget(e, t) {
610
+ let n = this._source;
611
+ if (!n) return null;
612
+ let r = this.elementsAt(e, t).map((e) => e.closest("[data-drop-slot]")).map((e) => e && {
613
+ parentId: e.dataset.parentId,
614
+ index: e.dataset.index,
615
+ qbRoot: e.dataset.qbRoot
616
+ }).find((e) => !!e && !!e.parentId && !!e.index && !!e.qbRoot && !n.descendantIds.has(e.parentId));
617
+ return r ? {
618
+ parentId: r.parentId,
619
+ index: Number(r.index),
620
+ qbRoot: r.qbRoot
621
+ } : null;
622
+ }
623
+ };
624
+ function Ce(e, t, n) {
625
+ let r = [...new Set(e.map((e) => e.shadowRoot).filter((e) => !!e))].map((e) => e.elementFromPoint(t, n)).filter((e) => !!e);
626
+ return [...e, ...r];
627
+ }
628
+ //#endregion
629
+ //#region libs/mintplayer-web-components/query-builder/src/context.ts
630
+ var W = d(Symbol("mp-query-builder.editorRegistry")), G = d(Symbol("mp-query-builder.disabled")), K = d(Symbol("mp-query-builder.messages")), q = d(Symbol("mp-query-builder.maxDepth")), we = "query-condition";
631
+ function Te(e) {
632
+ return (t) => {
633
+ let r = e(t);
634
+ return n(r.element, we), r;
635
+ };
636
+ }
637
+ function J(e, t, n, r, i = {}) {
638
+ let a = document.createElement("input");
639
+ a.type = e, a.className = "form-control form-control-sm qb-editor-input", a.value = t, r && (a.disabled = !0);
640
+ for (let [e, t] of Object.entries(i)) t !== void 0 && a.setAttribute(e, t);
641
+ let o = () => n(a.value);
642
+ return a.addEventListener("input", o), a.addEventListener("change", o), a;
643
+ }
644
+ function Ee(e, t) {
645
+ return e == null ? "" : t === "date" && e instanceof Date ? e.toISOString().slice(0, 10) : t === "datetime" && e instanceof Date ? e.toISOString().slice(0, 16) : typeof e == "string" && (t === "date" || t === "datetime") ? t === "date" ? e.slice(0, 10) : e.slice(0, 16) : String(e);
646
+ }
647
+ function De(e, t) {
648
+ if (e === "") return null;
649
+ switch (t) {
650
+ case "number": return Number(e);
651
+ case "integer": return Number.parseInt(e, 10);
652
+ case "date":
653
+ case "datetime": return e;
654
+ default: return e;
655
+ }
656
+ }
657
+ function Y(e) {
658
+ return (t) => {
659
+ let n = e === "string" ? "text" : e === "date" ? "date" : e === "datetime" ? "datetime-local" : "number", r = {};
660
+ e === "integer" && (r.step = "1"), e === "number" && (r.step = "any");
661
+ let i = J(n, Ee(t.value, e), (n) => t.onChange(De(n, e)), t.disabled, r);
662
+ return i.setAttribute("aria-label", t.field.label), { element: i };
663
+ };
664
+ }
665
+ function Oe(e) {
666
+ return (t) => {
667
+ let n = document.createElement("span");
668
+ n.className = "qb-editor-tuple";
669
+ let r = Array.isArray(t.value) ? [t.value[0] ?? null, t.value[1] ?? null] : [null, null], [i, a] = r, o = (n, i) => {
670
+ r = r.map((t, r) => r === n ? De(i, e) : t), t.onChange(r);
671
+ }, s = (t) => Ee(t, e), c = e === "date" ? "date" : e === "datetime" ? "datetime-local" : "number", l = {};
672
+ e === "integer" && (l.step = "1"), e === "number" && (l.step = "any");
673
+ let u = J(c, s(i), (e) => o(0, e), t.disabled, l), d = J(c, s(a), (e) => o(1, e), t.disabled, l);
674
+ u.setAttribute("aria-label", `${t.field.label} (from)`), d.setAttribute("aria-label", `${t.field.label} (to)`);
675
+ let f = document.createElement("span");
676
+ return f.textContent = " … ", f.className = "qb-editor-tuple-sep", n.append(u, f, d), { element: n };
677
+ };
678
+ }
679
+ function ke() {
680
+ return (e) => {
681
+ let t = J("number", typeof e.value == "object" && e.value !== null ? String(e.value.n ?? 1) : "1", (t) => {
682
+ let n = Math.max(1, Number.parseInt(t, 10) || 1);
683
+ e.onChange({ n });
684
+ }, e.disabled, {
685
+ min: "1",
686
+ step: "1"
687
+ });
688
+ return t.classList.add("qb-editor-n-input"), t.setAttribute("aria-label", `${e.field.label} — number of days`), { element: t };
689
+ };
690
+ }
691
+ function Ae(e) {
692
+ return (t) => {
693
+ let n = document.createElement("select");
694
+ n.className = "form-select form-select-sm qb-editor-select", n.setAttribute("aria-label", t.field.label), t.disabled && (n.disabled = !0);
695
+ let r = document.createElement("option");
696
+ r.value = "", r.textContent = "—", n.appendChild(r);
697
+ for (let r of e) {
698
+ let e = document.createElement("option");
699
+ e.value = String(r.value), e.textContent = r.label, t.value === r.value && (e.selected = !0), n.appendChild(e);
700
+ }
701
+ return n.addEventListener("change", () => {
702
+ if (n.value === "") {
703
+ t.onChange(null);
704
+ return;
705
+ }
706
+ let r = e.find((e) => String(e.value) === n.value);
707
+ t.onChange(r?.value ?? n.value);
708
+ }), { element: n };
709
+ };
710
+ }
711
+ function je(e) {
712
+ return (t) => {
713
+ let n = document.createElement("select");
714
+ n.className = "form-select form-select-sm qb-editor-multiselect", n.multiple = !0, n.setAttribute("aria-label", t.field.label), t.disabled && (n.disabled = !0);
715
+ let r = Array.isArray(t.value) ? t.value : [];
716
+ for (let t of e) {
717
+ let e = document.createElement("option");
718
+ e.value = String(t.value), e.textContent = t.label, r.includes(t.value) && (e.selected = !0), n.appendChild(e);
719
+ }
720
+ return n.addEventListener("change", () => {
721
+ let r = Array.from(n.selectedOptions).map((t) => e.find((e) => String(e.value) === t.value)?.value ?? t.value);
722
+ t.onChange(r);
723
+ }), { element: n };
724
+ };
725
+ }
726
+ function Me(e) {
727
+ return (t) => {
728
+ let r = document.createElement("span");
729
+ r.className = "qb-editor-chip-input";
730
+ let i = Array.isArray(t.value) ? [...t.value] : [], a = document.createElement("input");
731
+ a.type = "text", a.className = "form-control form-control-sm qb-editor-chip-add", a.placeholder = "+ add", a.size = 8, a.setAttribute("aria-label", `${t.field.label} — add value`), t.disabled && (a.disabled = !0);
732
+ let o = (e) => {
733
+ i = e, c(), t.onChange(e);
734
+ }, s = (e, r) => {
735
+ let a = document.createElement("span");
736
+ a.className = "qb-editor-chip", a.textContent = String(e);
737
+ let s = document.createElement("button");
738
+ return s.type = "button", s.className = "qb-editor-chip-remove", s.setAttribute("aria-label", `Remove ${String(e)}`), s.textContent = "×", t.disabled && (s.disabled = !0), s.addEventListener("click", () => o(i.filter((e, t) => t !== r))), a.appendChild(s), n(a, we), a;
739
+ }, c = () => {
740
+ let e = document.createRange();
741
+ e.selectNodeContents(r), e.setEndBefore(a), e.deleteContents(), a.before(...i.map(s));
742
+ };
743
+ return r.appendChild(a), a.addEventListener("keydown", (t) => {
744
+ if (t.key === "Enter" && a.value.trim() !== "") {
745
+ t.preventDefault();
746
+ let n = e(a.value.trim());
747
+ a.value = "", o([...i, n]);
748
+ }
749
+ }), c(), {
750
+ element: r,
751
+ dispose: () => {}
752
+ };
753
+ };
754
+ }
755
+ function Ne(e, t) {
756
+ let n = Pe(e, t);
757
+ return n ? Te(n) : null;
758
+ }
759
+ function Pe(e, t) {
760
+ let n = p(t);
761
+ if (n === "null") return null;
762
+ if (n === "n-input") return ke();
763
+ if (n === "tuple") {
764
+ let t = e.type;
765
+ return Oe(t === "number" || t === "integer" || t === "date" || t === "datetime" ? t : "number");
766
+ }
767
+ return n === "array" ? e.options && e.options.length > 0 ? je(e.options) : e.type === "number" || e.type === "integer" ? Me((t) => e.type === "integer" ? Number.parseInt(t, 10) : Number(t)) : Me((e) => e) : e.type === "enum" && e.options && e.options.length > 0 ? Ae(e.options) : e.type === "string" ? Y("string") : e.type === "number" ? Y("number") : e.type === "integer" ? Y("integer") : e.type === "date" ? Y("date") : e.type === "datetime" ? Y("datetime") : null;
768
+ }
769
+ //#endregion
770
+ //#region libs/mintplayer-web-components/query-builder/src/mp-query-condition.element.ts
771
+ var X = t("query-condition"), Fe = class extends i {
772
+ constructor(...e) {
773
+ super(...e), this.node = null, this.schema = [], this.currentEntity = "", this._messagesConsumer = new l(this, {
774
+ context: K,
775
+ subscribe: !0
776
+ }), this._disabledConsumer = new l(this, {
777
+ context: G,
778
+ subscribe: !0
779
+ }), this._registryConsumer = new l(this, {
780
+ context: W,
781
+ subscribe: !0
782
+ }), this._editorMount = s(), this._currentHandle = null, this._editorKey = "", this._registryTokens = /* @__PURE__ */ new WeakMap(), this._nextRegistryToken = 1, this._onFieldChange = (e) => {
783
+ let t = e.target, n = this.node;
784
+ n && this.dispatchEvent(new CustomEvent("condition-field-change", {
785
+ detail: {
786
+ id: n.id,
787
+ field: t.value
788
+ },
789
+ bubbles: !0,
790
+ composed: !0
791
+ }));
792
+ }, this._onOperatorChange = (e) => {
793
+ let t = e.target, n = this.node;
794
+ n && this.dispatchEvent(new CustomEvent("condition-operator-change", {
795
+ detail: {
796
+ id: n.id,
797
+ operator: t.value
798
+ },
799
+ bubbles: !0,
800
+ composed: !0
801
+ }));
802
+ }, this._onRemove = () => {
803
+ let e = this.node;
804
+ e && this.dispatchEvent(new CustomEvent("node-remove", {
805
+ detail: { id: e.id },
806
+ bubbles: !0,
807
+ composed: !0
808
+ }));
809
+ }, this._onRowKeyDown = (e) => {
810
+ if (!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
811
+ let t = this.node;
812
+ if (!t || this.isDisabled()) return;
813
+ let n = this.renderRoot?.querySelector(".qb-condition"), r = e.composedPath()[0], i = r instanceof HTMLElement && r.classList.contains("qb-drag-handle");
814
+ (r === n || i) && (e.preventDefault(), this.dispatchEvent(new CustomEvent("qb-keyboard-move", {
815
+ detail: {
816
+ id: t.id,
817
+ direction: e.key === "ArrowUp" ? "up" : "down"
818
+ },
819
+ bubbles: !0,
820
+ composed: !0
821
+ })));
822
+ }, this._onDragPointerDown = (e) => {
823
+ if (this.isDisabled()) return;
824
+ let t = this.node;
825
+ if (!t) return;
826
+ let n = this.renderRoot?.querySelector(".qb-condition");
827
+ n && this.dispatchEvent(new CustomEvent("qb-drag-start", {
828
+ detail: {
829
+ id: t.id,
830
+ pointerId: e.pointerId,
831
+ clientX: e.clientX,
832
+ clientY: e.clientY,
833
+ rowElement: n
834
+ },
835
+ bubbles: !0,
836
+ composed: !0
837
+ }));
838
+ };
839
+ }
840
+ createRenderRoot() {
841
+ return this;
842
+ }
843
+ static {
844
+ this.properties = {
845
+ node: { attribute: !1 },
846
+ schema: { attribute: !1 },
847
+ currentEntity: { attribute: !1 }
848
+ };
849
+ }
850
+ _registryIdentityToken(e) {
851
+ if (!e) return 0;
852
+ let t = this._registryTokens.get(e);
853
+ if (t !== void 0) return t;
854
+ let n = this._nextRegistryToken++;
855
+ return this._registryTokens.set(e, n), n;
856
+ }
857
+ connectedCallback() {
858
+ super.connectedCallback(), r();
859
+ }
860
+ disconnectedCallback() {
861
+ super.disconnectedCallback(), this._disposeEditor();
862
+ }
863
+ _disposeEditor() {
864
+ let e = this._currentHandle;
865
+ if (e) {
866
+ try {
867
+ e.dispose?.();
868
+ } catch {}
869
+ e.element.remove(), this._currentHandle = null;
870
+ }
871
+ }
872
+ resolveField(e) {
873
+ return this.schema.find((e) => e.name === this.currentEntity)?.fields.find((t) => t.name === e);
874
+ }
875
+ messages() {
876
+ let e = this._messagesConsumer.value ?? {};
877
+ return {
878
+ ...P,
879
+ ...e,
880
+ operators: {
881
+ ...P.operators,
882
+ ...e.operators ?? {}
883
+ }
884
+ };
885
+ }
886
+ isDisabled() {
887
+ return this._disabledConsumer.value ?? !1;
888
+ }
889
+ updated(e) {
890
+ this._refreshEditor();
891
+ }
892
+ _refreshEditor() {
893
+ let e = this._editorMount.value, t = this.node;
894
+ if (!e || !t) {
895
+ this._disposeEditor();
896
+ return;
897
+ }
898
+ let n = this.resolveField(t.field);
899
+ if (!n) {
900
+ this._disposeEditor();
901
+ return;
902
+ }
903
+ let r = this.isDisabled(), i = this._registryConsumer.value, a = i?.[n.name], o = a ? `r${this._registryIdentityToken(i)}` : "b", s = `${n.name}|${t.operator}|${r ? "1" : "0"}|${o}`;
904
+ if (this._currentHandle && s === this._editorKey) return;
905
+ this._disposeEditor();
906
+ let c = a ?? Ne(n, t.operator);
907
+ if (!c) return;
908
+ let l = c({
909
+ field: n,
910
+ operator: t.operator,
911
+ value: t.value,
912
+ disabled: r,
913
+ onChange: (e) => {
914
+ this.dispatchEvent(new CustomEvent("condition-value-change", {
915
+ detail: {
916
+ id: t.id,
917
+ value: e
918
+ },
919
+ bubbles: !0,
920
+ composed: !0
921
+ }));
922
+ }
923
+ });
924
+ e.appendChild(l.element), this._currentHandle = l, this._editorKey = s;
925
+ }
926
+ _availableFields() {
927
+ return this.schema.find((e) => e.name === this.currentEntity)?.fields.filter((e) => e.type !== "relation") ?? [];
928
+ }
929
+ _availableOperators(e) {
930
+ return e ? h(e.type) : [];
931
+ }
932
+ render() {
933
+ let e = this.node;
934
+ if (!e) return a;
935
+ let t = this.resolveField(e.field), n = this.messages(), r = p(e.operator), i = this.isDisabled(), o = this._availableFields(), s = this._availableOperators(t);
936
+ return X`
1694
937
  <div
1695
938
  class="qb-condition"
1696
939
  tabindex="0"
1697
940
  role="group"
1698
- aria-label=${// The row is a tab stop (Alt+Up/Down reorder) — without a role and
1699
- // name a blind user lands on silence. The name tracks the row's
1700
- // current field + operator, re-derived every render (§11a).
1701
- `${t?.label ?? e.field} ${r.operators[e.operator] ?? e.operator}`}
941
+ aria-label=${`${t?.label ?? e.field} ${n.operators[e.operator] ?? e.operator}`}
1702
942
  data-row-id=${e.id}
1703
943
  @keydown=${this._onRowKeyDown}
1704
944
  >
@@ -1706,8 +946,8 @@ class Ke extends M {
1706
946
  type="button"
1707
947
  class="qb-drag-handle"
1708
948
  ?disabled=${i}
1709
- aria-label=${r.reorderHint}
1710
- title=${r.reorderHint}
949
+ aria-label=${n.reorderHint}
950
+ title=${n.reorderHint}
1711
951
  @pointerdown=${this._onDragPointerDown}
1712
952
  >⋮</button>
1713
953
  <mp-select
@@ -1716,10 +956,10 @@ class Ke extends M {
1716
956
  .value=${e.field}
1717
957
  ?disabled=${i}
1718
958
  @change=${this._onFieldChange}
1719
- aria-label=${r.field}
959
+ aria-label=${n.field}
1720
960
  >
1721
- ${s.map((a) => v`<option value=${a.name}>${a.label}</option>`)}
1722
- ${t ? m : v`<option value=${e.field}>(${e.field})</option>`}
961
+ ${o.map((e) => X`<option value=${e.name}>${e.label}</option>`)}
962
+ ${t ? a : X`<option value=${e.field}>(${e.field})</option>`}
1723
963
  </mp-select>
1724
964
  <mp-select
1725
965
  class="qb-operator-select"
@@ -1727,159 +967,172 @@ class Ke extends M {
1727
967
  .value=${e.operator}
1728
968
  ?disabled=${i || !t}
1729
969
  @change=${this._onOperatorChange}
1730
- aria-label=${r.operator}
970
+ aria-label=${n.operator}
1731
971
  >
1732
- ${d.map((a) => v`
1733
- <option value=${a}>${r.operators[a] ?? a}</option>
972
+ ${s.map((e) => X`
973
+ <option value=${e}>${n.operators[e] ?? e}</option>
1734
974
  `)}
1735
- ${d.includes(e.operator) ? m : v`<option value=${e.operator}>${e.operator}</option>`}
975
+ ${s.includes(e.operator) ? a : X`<option value=${e.operator}>${e.operator}</option>`}
1736
976
  </mp-select>
1737
- ${n === "null" ? m : v`<span class="qb-value" ${pe(this._editorMount)}></span>`}
977
+ ${r === "null" ? a : X`<span class="qb-value" ${c(this._editorMount)}></span>`}
1738
978
  <button
1739
979
  type="button"
1740
980
  class="btn btn-sm btn-link qb-remove"
1741
981
  ?disabled=${i}
1742
982
  @click=${this._onRemove}
1743
- aria-label=${r.removeRow}
1744
- title=${r.removeRow}
983
+ aria-label=${n.removeRow}
984
+ title=${n.removeRow}
1745
985
  >×</button>
1746
986
  </div>
1747
987
  `;
1748
- }
1749
- }
1750
- L("query-condition", Fe);
1751
- typeof customElements < "u" && !customElements.get("mp-query-condition") && customElements.define("mp-query-condition", Ke);
1752
- const K = I("query-subquery");
1753
- class We extends M {
1754
- constructor() {
1755
- super(...arguments), this.node = null, this.schema = [], this.currentEntity = "", this.depth = 0, this.qbRoot = "", this.isDragging = !1, this._messagesConsumer = new h(this, {
1756
- context: E,
1757
- subscribe: !0
1758
- }), this._onHeaderKeyDown = (e) => {
1759
- if (!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
1760
- const t = this.node;
1761
- if (!t) return;
1762
- const r = this.renderRoot?.querySelector(".qb-subquery-header");
1763
- e.composedPath()[0] === r && (e.preventDefault(), this.dispatchEvent(new CustomEvent("qb-keyboard-move", {
1764
- detail: { id: t.id, direction: e.key === "ArrowUp" ? "up" : "down" },
1765
- bubbles: !0,
1766
- composed: !0
1767
- })));
1768
- };
1769
- }
1770
- createRenderRoot() {
1771
- return this;
1772
- }
1773
- static {
1774
- this.properties = {
1775
- node: { attribute: !1 },
1776
- schema: { attribute: !1 },
1777
- currentEntity: { attribute: !1 },
1778
- depth: { attribute: !1 },
1779
- qbRoot: { attribute: !1 },
1780
- isDragging: { attribute: !1 }
1781
- };
1782
- }
1783
- resolveField(e) {
1784
- return this.schema.find((t) => t.name === this.currentEntity)?.fields.find((t) => t.name === e);
1785
- }
1786
- messages() {
1787
- const e = this._messagesConsumer.value ?? {};
1788
- return {
1789
- ...f,
1790
- ...e,
1791
- operators: { ...f.operators, ...e.operators ?? {} }
1792
- };
1793
- }
1794
- render() {
1795
- const e = this.node;
1796
- if (!e) return m;
1797
- const t = this.resolveField(e.field), r = this.messages(), n = t?.label ?? e.field, i = r.operators[e.operator] ?? e.operator, s = t?.targetEntity ?? "";
1798
- return K`
988
+ }
989
+ };
990
+ e("query-condition", V), typeof customElements < "u" && !customElements.get("mp-query-condition") && customElements.define("mp-query-condition", Fe);
991
+ //#endregion
992
+ //#region libs/mintplayer-web-components/query-builder/src/mp-query-subquery.element.ts
993
+ var Z = t("query-subquery"), Ie = class extends i {
994
+ constructor(...e) {
995
+ super(...e), this.node = null, this.schema = [], this.currentEntity = "", this.depth = 0, this.qbRoot = "", this.isDragging = !1, this._messagesConsumer = new l(this, {
996
+ context: K,
997
+ subscribe: !0
998
+ }), this._onHeaderKeyDown = (e) => {
999
+ if (!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
1000
+ let t = this.node;
1001
+ if (!t) return;
1002
+ let n = this.renderRoot?.querySelector(".qb-subquery-header");
1003
+ e.composedPath()[0] === n && (e.preventDefault(), this.dispatchEvent(new CustomEvent("qb-keyboard-move", {
1004
+ detail: {
1005
+ id: t.id,
1006
+ direction: e.key === "ArrowUp" ? "up" : "down"
1007
+ },
1008
+ bubbles: !0,
1009
+ composed: !0
1010
+ })));
1011
+ };
1012
+ }
1013
+ createRenderRoot() {
1014
+ return this;
1015
+ }
1016
+ static {
1017
+ this.properties = {
1018
+ node: { attribute: !1 },
1019
+ schema: { attribute: !1 },
1020
+ currentEntity: { attribute: !1 },
1021
+ depth: { attribute: !1 },
1022
+ qbRoot: { attribute: !1 },
1023
+ isDragging: { attribute: !1 }
1024
+ };
1025
+ }
1026
+ resolveField(e) {
1027
+ return this.schema.find((e) => e.name === this.currentEntity)?.fields.find((t) => t.name === e);
1028
+ }
1029
+ messages() {
1030
+ let e = this._messagesConsumer.value ?? {};
1031
+ return {
1032
+ ...P,
1033
+ ...e,
1034
+ operators: {
1035
+ ...P.operators,
1036
+ ...e.operators ?? {}
1037
+ }
1038
+ };
1039
+ }
1040
+ render() {
1041
+ let e = this.node;
1042
+ if (!e) return a;
1043
+ let t = this.resolveField(e.field), n = this.messages(), r = t?.label ?? e.field, i = n.operators[e.operator] ?? e.operator, o = t?.targetEntity ?? "";
1044
+ return Z`
1799
1045
  <div class="qb-subquery" data-row-id=${e.id}>
1800
1046
  <div
1801
1047
  class="qb-subquery-header"
1802
1048
  tabindex="0"
1803
1049
  role="group"
1804
- aria-label=${// Focusable reorder stop — role + a name mirroring the visible
1805
- // field/operator/target text, re-derived every render (§11a).
1806
- `${n} ${i}${s ? ` ${s}` : ""}`}
1050
+ aria-label=${`${r} ${i}${o ? ` ${o}` : ""}`}
1807
1051
  @keydown=${this._onHeaderKeyDown}
1808
1052
  >
1809
- <span class="qb-subquery-field">${n}</span>
1053
+ <span class="qb-subquery-field">${r}</span>
1810
1054
  <span class="qb-subquery-operator">${i}</span>
1811
- ${s ? K`<span class="qb-subquery-target">(${s})</span>` : m}
1055
+ ${o ? Z`<span class="qb-subquery-target">(${o})</span>` : a}
1812
1056
  </div>
1813
1057
  <mp-query-builder
1814
1058
  .query=${e.subQuery}
1815
1059
  .schema=${this.schema}
1816
- .rootEntity=${s}
1060
+ .rootEntity=${o}
1817
1061
  .depth=${this.depth + 1}
1818
1062
  .dragActive=${this.isDragging}
1819
1063
  ></mp-query-builder>
1820
1064
  </div>
1821
1065
  `;
1822
- }
1823
- }
1824
- L("query-subquery", ze);
1825
- typeof customElements < "u" && !customElements.get("mp-query-subquery") && customElements.define("mp-query-subquery", We);
1826
- const g = I("query-group");
1827
- class Je extends M {
1828
- constructor() {
1829
- super(...arguments), this.node = null, this.schema = [], this.currentEntity = "", this.depth = 0, this.isRoot = !1, this.qbRoot = "", this.isDragging = !1, this._messagesConsumer = new h(this, {
1830
- context: E,
1831
- subscribe: !0
1832
- }), this._disabledConsumer = new h(this, {
1833
- context: R,
1834
- subscribe: !0
1835
- }), this._onLogicChange = (e) => {
1836
- const t = this.node;
1837
- !t || t.logic === e || this._emit("group-logic-change", { id: t.id, logic: e });
1838
- }, this._onAddCondition = () => {
1839
- this.node && this._emit("add-condition", { groupId: this.node.id });
1840
- }, this._onAddGroup = () => {
1841
- this.node && this._emit("add-group", { groupId: this.node.id });
1842
- }, this._onAddSubquery = () => {
1843
- this.node && this._emit("add-subquery", { groupId: this.node.id });
1844
- }, this._onRemove = () => {
1845
- this.node && this._emit("node-remove", { id: this.node.id });
1846
- };
1847
- }
1848
- createRenderRoot() {
1849
- return this;
1850
- }
1851
- static {
1852
- this.properties = {
1853
- node: { attribute: !1 },
1854
- schema: { attribute: !1 },
1855
- currentEntity: { attribute: !1 },
1856
- depth: { attribute: !1 },
1857
- isRoot: { attribute: !1 },
1858
- qbRoot: { attribute: !1 },
1859
- isDragging: { attribute: !1 }
1860
- };
1861
- }
1862
- isDisabled() {
1863
- return this._disabledConsumer.value ?? !1;
1864
- }
1865
- _hasRelation() {
1866
- return (this.schema.find((e) => e.name === this.currentEntity)?.fields ?? []).some((e) => e.type === "relation" && !!e.targetEntity);
1867
- }
1868
- _emit(e, t) {
1869
- this.dispatchEvent(new CustomEvent(e, { detail: t, bubbles: !0, composed: !0 }));
1870
- }
1871
- messages() {
1872
- const e = this._messagesConsumer.value ?? {};
1873
- return {
1874
- ...f,
1875
- ...e,
1876
- operators: { ...f.operators, ...e.operators ?? {} }
1877
- };
1878
- }
1879
- renderChild(e) {
1880
- switch (e.kind) {
1881
- case "group":
1882
- return g`<mp-query-group
1066
+ }
1067
+ };
1068
+ e("query-subquery", U), typeof customElements < "u" && !customElements.get("mp-query-subquery") && customElements.define("mp-query-subquery", Ie);
1069
+ //#endregion
1070
+ //#region libs/mintplayer-web-components/query-builder/src/mp-query-group.element.ts
1071
+ var Q = t("query-group"), Le = class extends i {
1072
+ constructor(...e) {
1073
+ super(...e), this.node = null, this.schema = [], this.currentEntity = "", this.depth = 0, this.isRoot = !1, this.qbRoot = "", this.isDragging = !1, this._messagesConsumer = new l(this, {
1074
+ context: K,
1075
+ subscribe: !0
1076
+ }), this._disabledConsumer = new l(this, {
1077
+ context: G,
1078
+ subscribe: !0
1079
+ }), this._onLogicChange = (e) => {
1080
+ let t = this.node;
1081
+ t && t.logic !== e && this._emit("group-logic-change", {
1082
+ id: t.id,
1083
+ logic: e
1084
+ });
1085
+ }, this._onAddCondition = () => {
1086
+ this.node && this._emit("add-condition", { groupId: this.node.id });
1087
+ }, this._onAddGroup = () => {
1088
+ this.node && this._emit("add-group", { groupId: this.node.id });
1089
+ }, this._onAddSubquery = () => {
1090
+ this.node && this._emit("add-subquery", { groupId: this.node.id });
1091
+ }, this._onRemove = () => {
1092
+ this.node && this._emit("node-remove", { id: this.node.id });
1093
+ };
1094
+ }
1095
+ createRenderRoot() {
1096
+ return this;
1097
+ }
1098
+ static {
1099
+ this.properties = {
1100
+ node: { attribute: !1 },
1101
+ schema: { attribute: !1 },
1102
+ currentEntity: { attribute: !1 },
1103
+ depth: { attribute: !1 },
1104
+ isRoot: { attribute: !1 },
1105
+ qbRoot: { attribute: !1 },
1106
+ isDragging: { attribute: !1 }
1107
+ };
1108
+ }
1109
+ isDisabled() {
1110
+ return this._disabledConsumer.value ?? !1;
1111
+ }
1112
+ _hasRelation() {
1113
+ return (this.schema.find((e) => e.name === this.currentEntity)?.fields ?? []).some((e) => e.type === "relation" && !!e.targetEntity);
1114
+ }
1115
+ _emit(e, t) {
1116
+ this.dispatchEvent(new CustomEvent(e, {
1117
+ detail: t,
1118
+ bubbles: !0,
1119
+ composed: !0
1120
+ }));
1121
+ }
1122
+ messages() {
1123
+ let e = this._messagesConsumer.value ?? {};
1124
+ return {
1125
+ ...P,
1126
+ ...e,
1127
+ operators: {
1128
+ ...P.operators,
1129
+ ...e.operators ?? {}
1130
+ }
1131
+ };
1132
+ }
1133
+ renderChild(e) {
1134
+ switch (e.kind) {
1135
+ case "group": return Q`<mp-query-group
1883
1136
  .node=${e}
1884
1137
  .schema=${this.schema}
1885
1138
  .currentEntity=${this.currentEntity}
@@ -1887,14 +1140,12 @@ class Je extends M {
1887
1140
  .qbRoot=${this.qbRoot}
1888
1141
  .isDragging=${this.isDragging}
1889
1142
  ></mp-query-group>`;
1890
- case "condition":
1891
- return g`<mp-query-condition
1143
+ case "condition": return Q`<mp-query-condition
1892
1144
  .node=${e}
1893
1145
  .schema=${this.schema}
1894
1146
  .currentEntity=${this.currentEntity}
1895
1147
  ></mp-query-condition>`;
1896
- case "subquery":
1897
- return g`<mp-query-subquery
1148
+ case "subquery": return Q`<mp-query-subquery
1898
1149
  .node=${e}
1899
1150
  .schema=${this.schema}
1900
1151
  .currentEntity=${this.currentEntity}
@@ -1902,10 +1153,10 @@ class Je extends M {
1902
1153
  .qbRoot=${this.qbRoot}
1903
1154
  .isDragging=${this.isDragging}
1904
1155
  ></mp-query-subquery>`;
1905
- }
1906
- }
1907
- renderDropSlot(e) {
1908
- return !this.isDragging || !this.node ? m : g`<div
1156
+ }
1157
+ }
1158
+ renderDropSlot(e) {
1159
+ return !this.isDragging || !this.node ? a : Q`<div
1909
1160
  class="qb-drop-slot"
1910
1161
  data-drop-slot
1911
1162
  data-parent-id=${this.node.id}
@@ -1913,16 +1164,15 @@ class Je extends M {
1913
1164
  data-qb-root=${this.qbRoot}
1914
1165
  aria-hidden="true"
1915
1166
  ></div>`;
1916
- }
1917
- _renderChildrenWithSlots(e) {
1918
- const t = [];
1919
- this.isDragging && t.push(this.renderDropSlot(0));
1920
- for (let r = 0; r < e.length; r++)
1921
- t.push(this.renderChild(e[r])), this.isDragging && t.push(this.renderDropSlot(r + 1));
1922
- return t;
1923
- }
1924
- _dropPlaceholder() {
1925
- return g`<div
1167
+ }
1168
+ _renderChildrenWithSlots(e) {
1169
+ let t = [];
1170
+ this.isDragging && t.push(this.renderDropSlot(0));
1171
+ for (let n = 0; n < e.length; n++) t.push(this.renderChild(e[n])), this.isDragging && t.push(this.renderDropSlot(n + 1));
1172
+ return t;
1173
+ }
1174
+ _dropPlaceholder() {
1175
+ return Q`<div
1926
1176
  class="qb-drop-slot qb-drop-slot-placeholder"
1927
1177
  data-drop-slot
1928
1178
  data-parent-id=${this.node?.id ?? ""}
@@ -1930,34 +1180,31 @@ class Je extends M {
1930
1180
  data-qb-root=${this.qbRoot}
1931
1181
  aria-hidden="true"
1932
1182
  >Drop here</div>`;
1933
- }
1934
- render() {
1935
- const e = this.node;
1936
- if (!e) return m;
1937
- const t = this.messages(), r = this.isDisabled(), n = this._hasRelation();
1938
- return g`
1183
+ }
1184
+ render() {
1185
+ let e = this.node;
1186
+ if (!e) return a;
1187
+ let t = this.messages(), n = this.isDisabled(), r = this._hasRelation();
1188
+ return Q`
1939
1189
  <div
1940
1190
  class="qb-group"
1941
1191
  data-row-id=${e.id}
1942
1192
  role="group"
1943
- aria-label=${// Depth rides in the NAME: aria-level is not an allowed attribute
1944
- // on role=group (axe aria-allowed-attr, serious) — it belongs to
1945
- // treeitem/row/heading.
1946
- `${e.logic === "and" ? "AND" : "OR"} group${this.depth > 0 ? `, level ${this.depth + 1}` : ""}`}
1193
+ aria-label=${`${e.logic === "and" ? "AND" : "OR"} group${this.depth > 0 ? `, level ${this.depth + 1}` : ""}`}
1947
1194
  >
1948
1195
  <div class="qb-group-header">
1949
1196
  <span class="qb-logic-toggle btn-group btn-group-sm" role="group" aria-label=${t.groupLogic}>
1950
1197
  <button
1951
1198
  type="button"
1952
1199
  class="btn ${e.logic === "and" ? "btn-primary" : "btn-outline-primary"} qb-logic-btn"
1953
- ?disabled=${r}
1200
+ ?disabled=${n}
1954
1201
  @click=${() => this._onLogicChange("and")}
1955
1202
  aria-pressed=${e.logic === "and"}
1956
1203
  >${t.logicAnd}</button>
1957
1204
  <button
1958
1205
  type="button"
1959
1206
  class="btn ${e.logic === "or" ? "btn-primary" : "btn-outline-primary"} qb-logic-btn"
1960
- ?disabled=${r}
1207
+ ?disabled=${n}
1961
1208
  @click=${() => this._onLogicChange("or")}
1962
1209
  aria-pressed=${e.logic === "or"}
1963
1210
  >${t.logicOr}</button>
@@ -1966,25 +1213,25 @@ class Je extends M {
1966
1213
  <button
1967
1214
  type="button"
1968
1215
  class="btn btn-sm btn-outline-secondary qb-add-condition"
1969
- ?disabled=${r}
1216
+ ?disabled=${n}
1970
1217
  @click=${this._onAddCondition}
1971
1218
  >+ ${t.addCondition}</button>
1972
1219
  <button
1973
1220
  type="button"
1974
1221
  class="btn btn-sm btn-outline-secondary qb-add-group"
1975
- ?disabled=${r}
1222
+ ?disabled=${n}
1976
1223
  @click=${this._onAddGroup}
1977
1224
  >+ ${t.addGroup}</button>
1978
- ${n ? g`<button
1225
+ ${r ? Q`<button
1979
1226
  type="button"
1980
1227
  class="btn btn-sm btn-outline-secondary qb-add-subquery"
1981
- ?disabled=${r}
1228
+ ?disabled=${n}
1982
1229
  @click=${this._onAddSubquery}
1983
- >+ ${t.addSubquery}</button>` : m}
1984
- ${this.isRoot ? m : g`<button
1230
+ >+ ${t.addSubquery}</button>` : a}
1231
+ ${this.isRoot ? a : Q`<button
1985
1232
  type="button"
1986
1233
  class="btn btn-sm btn-link qb-remove-group"
1987
- ?disabled=${r}
1234
+ ?disabled=${n}
1988
1235
  @click=${this._onRemove}
1989
1236
  aria-label=${t.removeGroup}
1990
1237
  title=${t.removeGroup}
@@ -1992,266 +1239,279 @@ class Je extends M {
1992
1239
  </span>
1993
1240
  </div>
1994
1241
  <div class="qb-children">
1995
- ${e.children.length === 0 ? g`<div class="qb-empty">${this.isDragging ? this._dropPlaceholder() : t.emptyGroup}</div>` : this._renderChildrenWithSlots(e.children)}
1242
+ ${e.children.length === 0 ? Q`<div class="qb-empty">${this.isDragging ? this._dropPlaceholder() : t.emptyGroup}</div>` : this._renderChildrenWithSlots(e.children)}
1996
1243
  </div>
1997
1244
  </div>
1998
1245
  `;
1999
- }
2000
- }
2001
- L("query-group", Oe);
2002
- typeof customElements < "u" && !customElements.get("mp-query-group") && customElements.define("mp-query-group", Je);
2003
- const Ze = "mp-query-group, mp-query-condition, mp-query-subquery, mp-query-builder", p = I("query-builder"), et = 32;
2004
- class tt extends M {
2005
- constructor() {
2006
- super(...arguments), this.query = null, this.schema = [], this.rootEntity = "", this.multiEntityPickerEnabled = !1, this.selectedFields = [], this.sortBy = [], this.disabled = !1, this.editorRegistry = void 0, this.messages = void 0, this.maxDepth = et, this.showPreview = !1, this.showSavedQueries = !1, this.savedQueries = [], this._saveDraftName = "", this.depth = 0, this.dragActive = !1, this._qbRootId = `qb-${Math.random().toString(36).slice(2, 10)}`, this._isDragging = !1, this._drag = new He(), this._pointerMoveHandler = null, this._pointerUpHandler = null, this._pointerCancelHandler = null, this._registryConsumer = new h(this, {
2007
- context: Q,
2008
- subscribe: !0
2009
- }), this._registryProvider = new x(this, {
2010
- context: Q,
2011
- initialValue: void 0
2012
- }), this._disabledConsumer = new h(this, {
2013
- context: R,
2014
- subscribe: !0
2015
- }), this._disabledProvider = new x(this, {
2016
- context: R,
2017
- initialValue: void 0
2018
- }), this._messagesConsumer = new h(this, {
2019
- context: E,
2020
- subscribe: !0
2021
- }), this._messagesProvider = new x(this, {
2022
- context: E,
2023
- initialValue: void 0
2024
- }), this._maxDepthConsumer = new h(this, {
2025
- context: V,
2026
- subscribe: !0
2027
- }), this._maxDepthProvider = new x(this, {
2028
- context: V,
2029
- initialValue: void 0
2030
- }), this._lastMessagesOwn = void 0, this._lastMessagesConsumed = void 0, this._lastEffMessages = void 0, this._onConditionFieldChange = (e) => {
2031
- if (!this._handlesEvents()) return;
2032
- e.stopPropagation();
2033
- const { id: t, field: r } = e.detail, n = this.query;
2034
- if (!n) return;
2035
- const s = this._resolveEntityForNode(t)?.fields.find((d) => d.name === r);
2036
- s && this._mutate(Ce(n, t, s));
2037
- }, this._onConditionOperatorChange = (e) => {
2038
- if (!this._handlesEvents()) return;
2039
- e.stopPropagation();
2040
- const { id: t, operator: r } = e.detail, n = this.query;
2041
- n && this._mutate(Se(n, t, r));
2042
- }, this._onConditionValueChange = (e) => {
2043
- if (!this._handlesEvents()) return;
2044
- e.stopPropagation();
2045
- const { id: t, value: r } = e.detail, n = this.query;
2046
- n && this._mutate(xe(n, t, { value: r }));
2047
- }, this._onGroupLogicChange = (e) => {
2048
- if (!this._handlesEvents()) return;
2049
- e.stopPropagation();
2050
- const { id: t, logic: r } = e.detail, n = this.query;
2051
- n && this._mutate(ke(n, t, r));
2052
- }, this._onAddCondition = (e) => {
2053
- if (!this._handlesEvents()) return;
2054
- e.stopPropagation();
2055
- const { groupId: t } = e.detail, r = this.query;
2056
- if (!r) return;
2057
- const n = this._resolveEntityForNode(t);
2058
- n && this._mutate(_e(r, t, n));
2059
- }, this._onAddGroup = (e) => {
2060
- if (!this._handlesEvents()) return;
2061
- e.stopPropagation();
2062
- const { groupId: t } = e.detail, r = this.query;
2063
- r && this._mutate($e(r, t, "and"));
2064
- }, this._onAddSubquery = (e) => {
2065
- if (!this._handlesEvents()) return;
2066
- e.stopPropagation();
2067
- const { groupId: t } = e.detail, r = this.query;
2068
- if (!r) return;
2069
- const n = this._resolveEntityForNode(t);
2070
- n && this._mutate(Ee(r, t, n));
2071
- }, this._onNodeRemove = (e) => {
2072
- if (!this._handlesEvents()) return;
2073
- e.stopPropagation();
2074
- const { id: t } = e.detail, r = this.query;
2075
- if (!r || r.id === t) return;
2076
- const n = D(r, t);
2077
- this._pendingRefocusId = n?.parent.id ?? r.id, this._mutate(te(r, t));
2078
- }, this._pendingRefocusId = null, this._onKeyboardMove = (e) => {
2079
- if (!this._handlesEvents()) return;
2080
- e.stopPropagation();
2081
- const { id: t, direction: r } = e.detail, n = this.query;
2082
- if (!n) return;
2083
- const i = D(n, t);
2084
- if (!i) return;
2085
- const s = r === "up" ? i.index - 1 : i.index + 1;
2086
- s < 0 || s >= i.parent.children.length || (this._pendingRefocusId = t, this._mutate(j(n, t, i.parent.id, s)));
2087
- }, this._onDragStart = (e) => {
2088
- if (!this._handlesEvents()) return;
2089
- e.stopPropagation();
2090
- const t = e.detail, r = this.query;
2091
- if (!r) return;
2092
- const n = $(r, t.id);
2093
- if (!n) return;
2094
- const i = ee(n);
2095
- this._drag.start(
2096
- {
2097
- id: t.id,
2098
- descendantIds: i,
2099
- qbRoot: this._qbRootId,
2100
- rowElement: t.rowElement
2101
- },
2102
- new PointerEvent("pointerdown", { pointerId: t.pointerId, clientX: t.clientX, clientY: t.clientY })
2103
- ), this._isDragging = !0, typeof window < "u" && (this._pointerMoveHandler = (s) => this._drag.move(s), this._pointerUpHandler = (s) => this._finishDrag(s), this._pointerCancelHandler = () => this._cancelDrag(), window.addEventListener("pointermove", this._pointerMoveHandler), window.addEventListener("pointerup", this._pointerUpHandler), window.addEventListener("pointercancel", this._pointerCancelHandler));
2104
- }, this._onSaveDraftInput = (e) => {
2105
- this._saveDraftName = e.target.value;
2106
- }, this._onSaveQuery = () => {
2107
- const e = this._saveDraftName.trim();
2108
- if (!e) return;
2109
- const t = this.query;
2110
- t && (this.dispatchEvent(new CustomEvent("save-query", {
2111
- detail: { name: e, tree: t },
2112
- bubbles: !1
2113
- })), this._saveDraftName = "");
2114
- }, this._onLoadQuery = (e) => {
2115
- this.dispatchEvent(new CustomEvent("load-query", {
2116
- detail: { name: e },
2117
- bubbles: !1
2118
- }));
2119
- }, this._onDeleteQuery = (e) => {
2120
- this.dispatchEvent(new CustomEvent("delete-query", {
2121
- detail: { name: e },
2122
- bubbles: !1
2123
- }));
2124
- }, this._onRootEntityChange = (e) => {
2125
- const t = e.target.value;
2126
- t !== this.rootEntity && (this.rootEntity = t, this.dispatchEvent(new CustomEvent("root-entity-change", {
2127
- detail: { rootEntity: t },
2128
- bubbles: !1,
2129
- composed: !1
2130
- })));
2131
- };
2132
- }
2133
- createRenderRoot() {
2134
- return this;
2135
- }
2136
- static {
2137
- this.properties = {
2138
- query: { attribute: !1 },
2139
- schema: { attribute: !1 },
2140
- rootEntity: { attribute: "root-entity", type: String, reflect: !0 },
2141
- multiEntityPickerEnabled: { attribute: "multi-entity-picker-enabled", type: Boolean, reflect: !0 },
2142
- selectedFields: { attribute: !1 },
2143
- sortBy: { attribute: !1 },
2144
- disabled: { attribute: "disabled", type: Boolean, reflect: !0 },
2145
- editorRegistry: { attribute: !1 },
2146
- messages: { attribute: !1 },
2147
- maxDepth: { attribute: "max-depth", type: Number, reflect: !0 },
2148
- showPreview: { attribute: "show-preview", type: Boolean, reflect: !0 },
2149
- showSavedQueries: { attribute: "show-saved-queries", type: Boolean, reflect: !0 },
2150
- savedQueries: { attribute: !1 },
2151
- depth: { attribute: !1 },
2152
- dragActive: { attribute: !1 },
2153
- _isDragging: { state: !0 },
2154
- _saveDraftName: { state: !0 }
2155
- };
2156
- }
2157
- willUpdate(e) {
2158
- const t = this.editorRegistry ?? this._registryConsumer.value;
2159
- this._registryProvider.setValue(t);
2160
- const r = (this._disabledConsumer.value ?? !1) || (this.disabled ?? !1);
2161
- this._disabledProvider.setValue(r);
2162
- const n = this.messages, i = this._messagesConsumer.value;
2163
- let s;
2164
- this._lastEffMessages !== void 0 && this._lastMessagesOwn === n && this._lastMessagesConsumed === i ? s = this._lastEffMessages : (s = { ...i ?? {}, ...n ?? {} }, this._lastMessagesOwn = n, this._lastMessagesConsumed = i, this._lastEffMessages = s), this._messagesProvider.setValue(s);
2165
- const a = this._maxDepthConsumer.value ?? this.maxDepth;
2166
- this._maxDepthProvider.setValue(a);
2167
- }
2168
- updated(e) {
2169
- if (this._pendingRefocusId === null) return;
2170
- const t = this._pendingRefocusId;
2171
- this._pendingRefocusId = null, this._descendantsSettled().then(() => this._focusRowById(t));
2172
- }
2173
- async _descendantsSettled() {
2174
- const e = Array.from(this.querySelectorAll(Ze)).filter((t) => t.isUpdatePending);
2175
- if (e.length !== 0)
2176
- return await Promise.all(e.map((t) => t.updateComplete)), this._descendantsSettled();
2177
- }
2178
- _focusRowById(e) {
2179
- const t = this.querySelector(`[data-row-id="${e}"]`);
2180
- if (!t) return;
2181
- (t.querySelector(
2182
- ":scope > .qb-subquery-header, :scope > .qb-group-header .qb-add-condition"
2183
- ) ?? t).focus();
2184
- }
2185
- /**
2186
- * Effective max-depth used for the render check. The OUTER builder's
2187
- * configured maxDepth flows in via context; if absent, we fall back to
2188
- * this WC's own `maxDepth` property (which defaults to 32).
2189
- */
2190
- effectiveMaxDepth() {
2191
- return this._maxDepthConsumer.value ?? this.maxDepth;
2192
- }
2193
- _entitySchemaForCurrentRoot() {
2194
- return this.schema.find((e) => e.name === this.rootEntity) ?? null;
2195
- }
2196
- // Walk the entire tree (incl. sub-query bodies) to find the entity context
2197
- // that contains a given node id. Falls back to rootEntity.
2198
- _resolveEntityForNode(e) {
2199
- const t = this._entitySchemaForCurrentRoot();
2200
- if (!t) return null;
2201
- const r = this.query;
2202
- if (!r) return t;
2203
- const n = { entity: t }, i = (s, d) => {
2204
- if (s.id === e)
2205
- return n.entity = d, !0;
2206
- if (s.kind === "group") {
2207
- for (const a of s.children)
2208
- if (i(a, d)) return !0;
2209
- } else if (s.kind === "subquery") {
2210
- const a = d.fields.find((l) => l.name === s.field), u = a?.targetEntity ? this.schema.find((l) => l.name === a.targetEntity) ?? d : d;
2211
- if (i(s.subQuery, u)) return !0;
2212
- }
2213
- return !1;
2214
- };
2215
- return i(r, t), n.entity;
2216
- }
2217
- _mutate(e) {
2218
- this.query = e, this.dispatchEvent(new CustomEvent("query-change", {
2219
- detail: { tree: e },
2220
- // M7 will consolidate and re-dispatch externally; for now expose
2221
- // to outside listeners on the root builder only.
2222
- bubbles: !1,
2223
- composed: !1
2224
- }));
2225
- }
2226
- // Inner sub-query builders (depth > 0) skip their handlers so events bubble
2227
- // up to the outermost root, which owns the canonical tree.
2228
- _handlesEvents() {
2229
- return this.depth === 0;
2230
- }
2231
- _finishDrag(e) {
2232
- const t = this._drag.source(), r = this._drag.end(e);
2233
- this._teardownDragListeners(), this._isDragging = !1, !(!r || !t) && this._applyDrop(t, r);
2234
- }
2235
- _cancelDrag() {
2236
- this._drag.cancel(), this._teardownDragListeners(), this._isDragging = !1;
2237
- }
2238
- _teardownDragListeners() {
2239
- typeof window > "u" || (this._pointerMoveHandler && window.removeEventListener("pointermove", this._pointerMoveHandler), this._pointerUpHandler && window.removeEventListener("pointerup", this._pointerUpHandler), this._pointerCancelHandler && window.removeEventListener("pointercancel", this._pointerCancelHandler), this._pointerMoveHandler = null, this._pointerUpHandler = null, this._pointerCancelHandler = null);
2240
- }
2241
- _applyDrop(e, t) {
2242
- const r = this.query;
2243
- if (!r) return;
2244
- const n = t.qbRoot !== e.qbRoot ? this._resolveEntityForNode(t.parentId) ?? void 0 : void 0, i = j(r, e.id, t.parentId, t.index, n);
2245
- this._mutate(i);
2246
- }
2247
- disconnectedCallback() {
2248
- super.disconnectedCallback(), this._teardownDragListeners(), this._drag.cancel();
2249
- }
2250
- _renderSavedPicker(e) {
2251
- return p`
1246
+ }
1247
+ };
1248
+ e("query-group", H), typeof customElements < "u" && !customElements.get("mp-query-group") && customElements.define("mp-query-group", Le);
1249
+ //#endregion
1250
+ //#region libs/mintplayer-web-components/query-builder/src/mp-query-builder.element.ts
1251
+ var Re = "mp-query-group, mp-query-condition, mp-query-subquery, mp-query-builder", $ = t("query-builder"), ze = 32, Be = class extends i {
1252
+ constructor(...e) {
1253
+ super(...e), this.query = null, this.schema = [], this.rootEntity = "", this.multiEntityPickerEnabled = !1, this.selectedFields = [], this.sortBy = [], this.disabled = !1, this.editorRegistry = void 0, this.messages = void 0, this.maxDepth = ze, this.showPreview = !1, this.showSavedQueries = !1, this.savedQueries = [], this._saveDraftName = "", this.depth = 0, this.dragActive = !1, this._qbRootId = `qb-${Math.random().toString(36).slice(2, 10)}`, this._isDragging = !1, this._drag = new Se(), this._pointerMoveHandler = null, this._pointerUpHandler = null, this._pointerCancelHandler = null, this._registryConsumer = new l(this, {
1254
+ context: W,
1255
+ subscribe: !0
1256
+ }), this._registryProvider = new u(this, {
1257
+ context: W,
1258
+ initialValue: void 0
1259
+ }), this._disabledConsumer = new l(this, {
1260
+ context: G,
1261
+ subscribe: !0
1262
+ }), this._disabledProvider = new u(this, {
1263
+ context: G,
1264
+ initialValue: void 0
1265
+ }), this._messagesConsumer = new l(this, {
1266
+ context: K,
1267
+ subscribe: !0
1268
+ }), this._messagesProvider = new u(this, {
1269
+ context: K,
1270
+ initialValue: void 0
1271
+ }), this._maxDepthConsumer = new l(this, {
1272
+ context: q,
1273
+ subscribe: !0
1274
+ }), this._maxDepthProvider = new u(this, {
1275
+ context: q,
1276
+ initialValue: void 0
1277
+ }), this._lastMessagesOwn = void 0, this._lastMessagesConsumed = void 0, this._lastEffMessages = void 0, this._onConditionFieldChange = (e) => {
1278
+ if (!this._handlesEvents()) return;
1279
+ e.stopPropagation();
1280
+ let { id: t, field: n } = e.detail, r = this.query;
1281
+ if (!r) return;
1282
+ let i = this._resolveEntityForNode(t)?.fields.find((e) => e.name === n);
1283
+ i && this._mutate(le(r, t, i));
1284
+ }, this._onConditionOperatorChange = (e) => {
1285
+ if (!this._handlesEvents()) return;
1286
+ e.stopPropagation();
1287
+ let { id: t, operator: n } = e.detail, r = this.query;
1288
+ r && this._mutate(de(r, t, n));
1289
+ }, this._onConditionValueChange = (e) => {
1290
+ if (!this._handlesEvents()) return;
1291
+ e.stopPropagation();
1292
+ let { id: t, value: n } = e.detail, r = this.query;
1293
+ r && this._mutate(j(r, t, { value: n }));
1294
+ }, this._onGroupLogicChange = (e) => {
1295
+ if (!this._handlesEvents()) return;
1296
+ e.stopPropagation();
1297
+ let { id: t, logic: n } = e.detail, r = this.query;
1298
+ r && this._mutate(A(r, t, n));
1299
+ }, this._onAddCondition = (e) => {
1300
+ if (!this._handlesEvents()) return;
1301
+ e.stopPropagation();
1302
+ let { groupId: t } = e.detail, n = this.query;
1303
+ if (!n) return;
1304
+ let r = this._resolveEntityForNode(t);
1305
+ r && this._mutate(ce(n, t, r));
1306
+ }, this._onAddGroup = (e) => {
1307
+ if (!this._handlesEvents()) return;
1308
+ e.stopPropagation();
1309
+ let { groupId: t } = e.detail, n = this.query;
1310
+ n && this._mutate(D(n, t, "and"));
1311
+ }, this._onAddSubquery = (e) => {
1312
+ if (!this._handlesEvents()) return;
1313
+ e.stopPropagation();
1314
+ let { groupId: t } = e.detail, n = this.query;
1315
+ if (!n) return;
1316
+ let r = this._resolveEntityForNode(t);
1317
+ r && this._mutate(O(n, t, r));
1318
+ }, this._onNodeRemove = (e) => {
1319
+ if (!this._handlesEvents()) return;
1320
+ e.stopPropagation();
1321
+ let { id: t } = e.detail, n = this.query;
1322
+ if (!n || n.id === t) return;
1323
+ let r = w(n, t);
1324
+ this._pendingRefocusId = r?.parent.id ?? n.id, this._mutate(k(n, t));
1325
+ }, this._pendingRefocusId = null, this._onKeyboardMove = (e) => {
1326
+ if (!this._handlesEvents()) return;
1327
+ e.stopPropagation();
1328
+ let { id: t, direction: n } = e.detail, r = this.query;
1329
+ if (!r) return;
1330
+ let i = w(r, t);
1331
+ if (!i) return;
1332
+ let a = n === "up" ? i.index - 1 : i.index + 1;
1333
+ a < 0 || a >= i.parent.children.length || (this._pendingRefocusId = t, this._mutate(M(r, t, i.parent.id, a)));
1334
+ }, this._onDragStart = (e) => {
1335
+ if (!this._handlesEvents()) return;
1336
+ e.stopPropagation();
1337
+ let t = e.detail, n = this.query;
1338
+ if (!n) return;
1339
+ let r = C(n, t.id);
1340
+ if (!r) return;
1341
+ let i = T(r);
1342
+ this._drag.start({
1343
+ id: t.id,
1344
+ descendantIds: i,
1345
+ qbRoot: this._qbRootId,
1346
+ rowElement: t.rowElement
1347
+ }, new PointerEvent("pointerdown", {
1348
+ pointerId: t.pointerId,
1349
+ clientX: t.clientX,
1350
+ clientY: t.clientY
1351
+ })), this._isDragging = !0, typeof window < "u" && (this._pointerMoveHandler = (e) => this._drag.move(e), this._pointerUpHandler = (e) => this._finishDrag(e), this._pointerCancelHandler = () => this._cancelDrag(), window.addEventListener("pointermove", this._pointerMoveHandler), window.addEventListener("pointerup", this._pointerUpHandler), window.addEventListener("pointercancel", this._pointerCancelHandler));
1352
+ }, this._onSaveDraftInput = (e) => {
1353
+ this._saveDraftName = e.target.value;
1354
+ }, this._onSaveQuery = () => {
1355
+ let e = this._saveDraftName.trim();
1356
+ if (!e) return;
1357
+ let t = this.query;
1358
+ t && (this.dispatchEvent(new CustomEvent("save-query", {
1359
+ detail: {
1360
+ name: e,
1361
+ tree: t
1362
+ },
1363
+ bubbles: !1
1364
+ })), this._saveDraftName = "");
1365
+ }, this._onLoadQuery = (e) => {
1366
+ this.dispatchEvent(new CustomEvent("load-query", {
1367
+ detail: { name: e },
1368
+ bubbles: !1
1369
+ }));
1370
+ }, this._onDeleteQuery = (e) => {
1371
+ this.dispatchEvent(new CustomEvent("delete-query", {
1372
+ detail: { name: e },
1373
+ bubbles: !1
1374
+ }));
1375
+ }, this._onRootEntityChange = (e) => {
1376
+ let t = e.target.value;
1377
+ t !== this.rootEntity && (this.rootEntity = t, this.dispatchEvent(new CustomEvent("root-entity-change", {
1378
+ detail: { rootEntity: t },
1379
+ bubbles: !1,
1380
+ composed: !1
1381
+ })));
1382
+ };
1383
+ }
1384
+ createRenderRoot() {
1385
+ return this;
1386
+ }
1387
+ static {
1388
+ this.properties = {
1389
+ query: { attribute: !1 },
1390
+ schema: { attribute: !1 },
1391
+ rootEntity: {
1392
+ attribute: "root-entity",
1393
+ type: String,
1394
+ reflect: !0
1395
+ },
1396
+ multiEntityPickerEnabled: {
1397
+ attribute: "multi-entity-picker-enabled",
1398
+ type: Boolean,
1399
+ reflect: !0
1400
+ },
1401
+ selectedFields: { attribute: !1 },
1402
+ sortBy: { attribute: !1 },
1403
+ disabled: {
1404
+ attribute: "disabled",
1405
+ type: Boolean,
1406
+ reflect: !0
1407
+ },
1408
+ editorRegistry: { attribute: !1 },
1409
+ messages: { attribute: !1 },
1410
+ maxDepth: {
1411
+ attribute: "max-depth",
1412
+ type: Number,
1413
+ reflect: !0
1414
+ },
1415
+ showPreview: {
1416
+ attribute: "show-preview",
1417
+ type: Boolean,
1418
+ reflect: !0
1419
+ },
1420
+ showSavedQueries: {
1421
+ attribute: "show-saved-queries",
1422
+ type: Boolean,
1423
+ reflect: !0
1424
+ },
1425
+ savedQueries: { attribute: !1 },
1426
+ depth: { attribute: !1 },
1427
+ dragActive: { attribute: !1 },
1428
+ _isDragging: { state: !0 },
1429
+ _saveDraftName: { state: !0 }
1430
+ };
1431
+ }
1432
+ willUpdate(e) {
1433
+ let t = this.editorRegistry ?? this._registryConsumer.value;
1434
+ this._registryProvider.setValue(t);
1435
+ let n = (this._disabledConsumer.value ?? !1) || (this.disabled ?? !1);
1436
+ this._disabledProvider.setValue(n);
1437
+ let r = this.messages, i = this._messagesConsumer.value, a;
1438
+ this._lastEffMessages !== void 0 && this._lastMessagesOwn === r && this._lastMessagesConsumed === i ? a = this._lastEffMessages : (a = {
1439
+ ...i ?? {},
1440
+ ...r ?? {}
1441
+ }, this._lastMessagesOwn = r, this._lastMessagesConsumed = i, this._lastEffMessages = a), this._messagesProvider.setValue(a);
1442
+ let o = this._maxDepthConsumer.value ?? this.maxDepth;
1443
+ this._maxDepthProvider.setValue(o);
1444
+ }
1445
+ updated(e) {
1446
+ if (this._pendingRefocusId === null) return;
1447
+ let t = this._pendingRefocusId;
1448
+ this._pendingRefocusId = null, this._descendantsSettled().then(() => this._focusRowById(t));
1449
+ }
1450
+ async _descendantsSettled() {
1451
+ let e = Array.from(this.querySelectorAll(Re)).filter((e) => e.isUpdatePending);
1452
+ if (e.length !== 0) return await Promise.all(e.map((e) => e.updateComplete)), this._descendantsSettled();
1453
+ }
1454
+ _focusRowById(e) {
1455
+ let t = this.querySelector(`[data-row-id="${e}"]`);
1456
+ t && (t.querySelector(":scope > .qb-subquery-header, :scope > .qb-group-header .qb-add-condition") ?? t).focus();
1457
+ }
1458
+ effectiveMaxDepth() {
1459
+ return this._maxDepthConsumer.value ?? this.maxDepth;
1460
+ }
1461
+ _entitySchemaForCurrentRoot() {
1462
+ return this.schema.find((e) => e.name === this.rootEntity) ?? null;
1463
+ }
1464
+ _resolveEntityForNode(e) {
1465
+ let t = this._entitySchemaForCurrentRoot();
1466
+ if (!t) return null;
1467
+ let n = this.query;
1468
+ if (!n) return t;
1469
+ let r = { entity: t }, i = (t, n) => {
1470
+ if (t.id === e) return r.entity = n, !0;
1471
+ if (t.kind === "group") {
1472
+ for (let e of t.children) if (i(e, n)) return !0;
1473
+ } else if (t.kind === "subquery") {
1474
+ let e = n.fields.find((e) => e.name === t.field), r = e?.targetEntity ? this.schema.find((t) => t.name === e.targetEntity) ?? n : n;
1475
+ if (i(t.subQuery, r)) return !0;
1476
+ }
1477
+ return !1;
1478
+ };
1479
+ return i(n, t), r.entity;
1480
+ }
1481
+ _mutate(e) {
1482
+ this.query = e, this.dispatchEvent(new CustomEvent("query-change", {
1483
+ detail: { tree: e },
1484
+ bubbles: !1,
1485
+ composed: !1
1486
+ }));
1487
+ }
1488
+ _handlesEvents() {
1489
+ return this.depth === 0;
1490
+ }
1491
+ _finishDrag(e) {
1492
+ let t = this._drag.source(), n = this._drag.end(e);
1493
+ this._teardownDragListeners(), this._isDragging = !1, n && t && this._applyDrop(t, n);
1494
+ }
1495
+ _cancelDrag() {
1496
+ this._drag.cancel(), this._teardownDragListeners(), this._isDragging = !1;
1497
+ }
1498
+ _teardownDragListeners() {
1499
+ typeof window < "u" && (this._pointerMoveHandler && window.removeEventListener("pointermove", this._pointerMoveHandler), this._pointerUpHandler && window.removeEventListener("pointerup", this._pointerUpHandler), this._pointerCancelHandler && window.removeEventListener("pointercancel", this._pointerCancelHandler), this._pointerMoveHandler = null, this._pointerUpHandler = null, this._pointerCancelHandler = null);
1500
+ }
1501
+ _applyDrop(e, t) {
1502
+ let n = this.query;
1503
+ if (!n) return;
1504
+ let r = t.qbRoot === e.qbRoot ? void 0 : this._resolveEntityForNode(t.parentId) ?? void 0, i = M(n, e.id, t.parentId, t.index, r);
1505
+ this._mutate(i);
1506
+ }
1507
+ disconnectedCallback() {
1508
+ super.disconnectedCallback(), this._teardownDragListeners(), this._drag.cancel();
1509
+ }
1510
+ _renderSavedPicker(e) {
1511
+ return $`
2252
1512
  <div class="qb-saved">
2253
1513
  <div class="qb-saved-list">
2254
- ${this.savedQueries.length === 0 ? p`<span class="qb-saved-empty">No saved queries</span>` : this.savedQueries.map((t) => p`
1514
+ ${this.savedQueries.length === 0 ? $`<span class="qb-saved-empty">No saved queries</span>` : this.savedQueries.map((t) => $`
2255
1515
  <span class="qb-saved-row" data-name=${t.name}>
2256
1516
  <button
2257
1517
  type="button"
@@ -2285,19 +1545,11 @@ class tt extends M {
2285
1545
  </span>
2286
1546
  </div>
2287
1547
  `;
2288
- }
2289
- /**
2290
- * Toolbar render. Only emits when `depth === 0` (sub-query builders have
2291
- * no toolbar of their own — they inherit the outer one) AND
2292
- * `multiEntityPickerEnabled` is true AND `schema.length > 1`. Future
2293
- * Phase-2 widgets (field projection, sort-by) hang off this same toolbar.
2294
- */
2295
- _renderToolbar() {
2296
- if (this.depth !== 0) return m;
2297
- if (!this.multiEntityPickerEnabled) return m;
2298
- if (this.schema.length < 2) return m;
2299
- const t = this.schema.find((n) => n.name === this.rootEntity)?.fields.filter((n) => n.type !== "relation") ?? [], r = this._messages();
2300
- return p`
1548
+ }
1549
+ _renderToolbar() {
1550
+ if (this.depth !== 0 || !this.multiEntityPickerEnabled || this.schema.length < 2) return a;
1551
+ let e = this.schema.find((e) => e.name === this.rootEntity)?.fields.filter((e) => e.type !== "relation") ?? [], t = this._messages();
1552
+ return $`
2301
1553
  <div class="qb-toolbar">
2302
1554
  <label class="qb-toolbar-label">
2303
1555
  Entity:
@@ -2307,56 +1559,56 @@ class tt extends M {
2307
1559
  .value=${this.rootEntity}
2308
1560
  ?disabled=${this.disabled}
2309
1561
  @change=${this._onRootEntityChange}
2310
- aria-label=${r.entity}
1562
+ aria-label=${t.entity}
2311
1563
  >
2312
- ${this.schema.map((n) => p`<option value=${n.name}>${n.label}</option>`)}
1564
+ ${this.schema.map((e) => $`<option value=${e.name}>${e.label}</option>`)}
2313
1565
  </mp-select>
2314
1566
  </label>
2315
- ${t.length > 0 ? p`
2316
- <span class="qb-toolbar-section qb-field-projection" role="group" aria-label=${r.columns}>
2317
- <span class="qb-toolbar-label">${r.columns}:</span>
2318
- ${t.map((n) => p`
1567
+ ${e.length > 0 ? $`
1568
+ <span class="qb-toolbar-section qb-field-projection" role="group" aria-label=${t.columns}>
1569
+ <span class="qb-toolbar-label">${t.columns}:</span>
1570
+ ${e.map((e) => $`
2319
1571
  <mp-checkbox
2320
1572
  class="qb-field-checkbox"
2321
- value=${n.name}
2322
- ?checked=${this.selectedFields.includes(n.name)}
1573
+ value=${e.name}
1574
+ ?checked=${this.selectedFields.includes(e.name)}
2323
1575
  ?disabled=${this.disabled}
2324
- @change=${(i) => this._onFieldProjectionToggle(n.name, i)}
2325
- aria-label=${n.label}
2326
- >${n.label}</mp-checkbox>
1576
+ @change=${(t) => this._onFieldProjectionToggle(e.name, t)}
1577
+ aria-label=${e.label}
1578
+ >${e.label}</mp-checkbox>
2327
1579
  `)}
2328
1580
  </span>
2329
- ` : m}
2330
- ${t.length > 0 ? this._renderSortBy(t) : m}
1581
+ ` : a}
1582
+ ${e.length > 0 ? this._renderSortBy(e) : a}
2331
1583
  </div>
2332
1584
  `;
2333
- }
2334
- _renderSortBy(e) {
2335
- const t = this._messages();
2336
- return p`
1585
+ }
1586
+ _renderSortBy(e) {
1587
+ let t = this._messages();
1588
+ return $`
2337
1589
  <span class="qb-toolbar-section qb-sort-by" role="group" aria-label=${t.sortBy}>
2338
1590
  <span class="qb-toolbar-label">${t.sortBy}:</span>
2339
- ${this.sortBy.map((r, n) => p`
1591
+ ${this.sortBy.map((t, n) => $`
2340
1592
  <span class="qb-sort-row">
2341
1593
  <mp-select
2342
1594
  class="qb-sort-field"
2343
1595
  size="sm"
2344
- .value=${r.field}
1596
+ .value=${t.field}
2345
1597
  ?disabled=${this.disabled}
2346
- @change=${(i) => this._onSortFieldChange(n, i)}
1598
+ @change=${(e) => this._onSortFieldChange(n, e)}
2347
1599
  aria-label=${`Sort ${n + 1} field`}
2348
1600
  >
2349
- ${e.map((i) => p`<option value=${i.name}>${i.label}</option>`)}
2350
- ${e.some((i) => i.name === r.field) ? m : p`
2351
- <option value=${r.field}>(${r.field})</option>
1601
+ ${e.map((e) => $`<option value=${e.name}>${e.label}</option>`)}
1602
+ ${e.some((e) => e.name === t.field) ? a : $`
1603
+ <option value=${t.field}>(${t.field})</option>
2352
1604
  `}
2353
1605
  </mp-select>
2354
1606
  <mp-select
2355
1607
  class="qb-sort-direction"
2356
1608
  size="sm"
2357
- .value=${r.direction}
1609
+ .value=${t.direction}
2358
1610
  ?disabled=${this.disabled}
2359
- @change=${(i) => this._onSortDirectionChange(n, i)}
1611
+ @change=${(e) => this._onSortDirectionChange(n, e)}
2360
1612
  aria-label=${`Sort ${n + 1} direction`}
2361
1613
  >
2362
1614
  <option value="asc">Asc</option>
@@ -2380,47 +1632,55 @@ class tt extends M {
2380
1632
  >+ Add sort</button>
2381
1633
  </span>
2382
1634
  `;
2383
- }
2384
- _emitSortBy(e) {
2385
- this.sortBy = e, this.dispatchEvent(new CustomEvent("sort-by-change", {
2386
- detail: { sortBy: e },
2387
- bubbles: !1,
2388
- composed: !1
2389
- }));
2390
- }
2391
- _onSortFieldChange(e, t) {
2392
- const r = t.target.value, n = this.sortBy.map((i, s) => s === e ? { ...i, field: r } : i);
2393
- this._emitSortBy(n);
2394
- }
2395
- _onSortDirectionChange(e, t) {
2396
- const r = t.target.value, n = this.sortBy.map((i, s) => s === e ? { ...i, direction: r } : i);
2397
- this._emitSortBy(n);
2398
- }
2399
- _onSortRemove(e) {
2400
- const t = this.sortBy.filter((r, n) => n !== e);
2401
- this._emitSortBy(t);
2402
- }
2403
- _onSortAdd(e) {
2404
- const t = e[0];
2405
- if (!t) return;
2406
- const r = new Set(this.sortBy.map((i) => i.field)), n = e.find((i) => !r.has(i.name)) ?? t;
2407
- this._emitSortBy([...this.sortBy, { field: n.name, direction: "asc" }]);
2408
- }
2409
- _onFieldProjectionToggle(e, t) {
2410
- const r = t.target.checked, n = new Set(this.selectedFields);
2411
- r ? n.add(e) : n.delete(e);
2412
- const i = Array.from(n);
2413
- this.selectedFields = i, this.dispatchEvent(new CustomEvent("selected-fields-change", {
2414
- detail: { selectedFields: i },
2415
- bubbles: !1,
2416
- composed: !1
2417
- }));
2418
- }
2419
- render() {
2420
- if (this.depth > this.effectiveMaxDepth())
2421
- return p`<div class="qb-too-deep" role="alert">Tree too deep</div>`;
2422
- const e = this.query;
2423
- return e ? p`
1635
+ }
1636
+ _emitSortBy(e) {
1637
+ this.sortBy = e, this.dispatchEvent(new CustomEvent("sort-by-change", {
1638
+ detail: { sortBy: e },
1639
+ bubbles: !1,
1640
+ composed: !1
1641
+ }));
1642
+ }
1643
+ _onSortFieldChange(e, t) {
1644
+ let n = t.target.value, r = this.sortBy.map((t, r) => r === e ? {
1645
+ ...t,
1646
+ field: n
1647
+ } : t);
1648
+ this._emitSortBy(r);
1649
+ }
1650
+ _onSortDirectionChange(e, t) {
1651
+ let n = t.target.value, r = this.sortBy.map((t, r) => r === e ? {
1652
+ ...t,
1653
+ direction: n
1654
+ } : t);
1655
+ this._emitSortBy(r);
1656
+ }
1657
+ _onSortRemove(e) {
1658
+ let t = this.sortBy.filter((t, n) => n !== e);
1659
+ this._emitSortBy(t);
1660
+ }
1661
+ _onSortAdd(e) {
1662
+ let t = e[0];
1663
+ if (!t) return;
1664
+ let n = new Set(this.sortBy.map((e) => e.field)), r = e.find((e) => !n.has(e.name)) ?? t;
1665
+ this._emitSortBy([...this.sortBy, {
1666
+ field: r.name,
1667
+ direction: "asc"
1668
+ }]);
1669
+ }
1670
+ _onFieldProjectionToggle(e, t) {
1671
+ let n = t.target.checked, r = new Set(this.selectedFields);
1672
+ n ? r.add(e) : r.delete(e);
1673
+ let i = Array.from(r);
1674
+ this.selectedFields = i, this.dispatchEvent(new CustomEvent("selected-fields-change", {
1675
+ detail: { selectedFields: i },
1676
+ bubbles: !1,
1677
+ composed: !1
1678
+ }));
1679
+ }
1680
+ render() {
1681
+ if (this.depth > this.effectiveMaxDepth()) return $`<div class="qb-too-deep" role="alert">Tree too deep</div>`;
1682
+ let e = this.query;
1683
+ return e ? $`
2424
1684
  <div
2425
1685
  class="qb-root"
2426
1686
  data-qb-root=${this._qbRootId}
@@ -2436,44 +1696,48 @@ class tt extends M {
2436
1696
  @qb-keyboard-move=${this._onKeyboardMove}
2437
1697
  >
2438
1698
  ${this._renderToolbar()}
2439
- ${this.showSavedQueries && this.depth === 0 ? this._renderSavedPicker(this._messages()) : m}
2440
- ${this.showPreview && this.depth === 0 ? p`<pre class="qb-preview">${this._renderPreview(e)}</pre>` : m}
1699
+ ${this.showSavedQueries && this.depth === 0 ? this._renderSavedPicker(this._messages()) : a}
1700
+ ${this.showPreview && this.depth === 0 ? $`<pre class="qb-preview">${this._renderPreview(e)}</pre>` : a}
2441
1701
  ${this.renderTreeRoot(e)}
2442
1702
  </div>
2443
- ` : m;
2444
- }
2445
- _messages() {
2446
- const e = this._messagesConsumer.value ?? {};
2447
- return {
2448
- ...f,
2449
- ...e,
2450
- ...this.messages ?? {},
2451
- operators: {
2452
- ...f.operators,
2453
- ...e.operators ?? {},
2454
- ...this.messages?.operators ?? {}
2455
- }
2456
- };
2457
- }
2458
- _renderPreview(e) {
2459
- try {
2460
- const t = {
2461
- ...this._messagesConsumer.value ?? {},
2462
- ...this.messages ?? {}
2463
- };
2464
- return Ae(e, this.schema, {
2465
- messages: t,
2466
- rootEntity: this.rootEntity,
2467
- maxDepth: this.effectiveMaxDepth()
2468
- });
2469
- } catch (t) {
2470
- return t instanceof Error ? t.message : String(t);
2471
- }
2472
- }
2473
- renderTreeRoot(e) {
2474
- const t = e.kind === "group" ? e : { kind: "group", id: "synthetic-root", logic: "and", children: [e] };
2475
- return p`<mp-query-group
2476
- .node=${t}
1703
+ ` : a;
1704
+ }
1705
+ _messages() {
1706
+ let e = this._messagesConsumer.value ?? {};
1707
+ return {
1708
+ ...P,
1709
+ ...e,
1710
+ ...this.messages ?? {},
1711
+ operators: {
1712
+ ...P.operators,
1713
+ ...e.operators ?? {},
1714
+ ...this.messages?.operators ?? {}
1715
+ }
1716
+ };
1717
+ }
1718
+ _renderPreview(e) {
1719
+ try {
1720
+ let t = {
1721
+ ...this._messagesConsumer.value ?? {},
1722
+ ...this.messages ?? {}
1723
+ };
1724
+ return I(e, this.schema, {
1725
+ messages: t,
1726
+ rootEntity: this.rootEntity,
1727
+ maxDepth: this.effectiveMaxDepth()
1728
+ });
1729
+ } catch (e) {
1730
+ return e instanceof Error ? e.message : String(e);
1731
+ }
1732
+ }
1733
+ renderTreeRoot(e) {
1734
+ return $`<mp-query-group
1735
+ .node=${e.kind === "group" ? e : {
1736
+ kind: "group",
1737
+ id: "synthetic-root",
1738
+ logic: "and",
1739
+ children: [e]
1740
+ }}
2477
1741
  .schema=${this.schema}
2478
1742
  .currentEntity=${this.rootEntity}
2479
1743
  .depth=${this.depth}
@@ -2481,47 +1745,8 @@ class tt extends M {
2481
1745
  .qbRoot=${this._qbRootId}
2482
1746
  .isDragging=${this._isDragging || this.dragActive}
2483
1747
  ></mp-query-group>`;
2484
- }
2485
- }
2486
- L("query-builder", Ne);
2487
- typeof customElements < "u" && !customElements.get("mp-query-builder") && customElements.define("mp-query-builder", tt);
2488
- export {
2489
- f as DEFAULT_MESSAGES,
2490
- J as DEFAULT_OPERATOR_CATALOG,
2491
- ne as MaxDepthExceededError,
2492
- tt as MpQueryBuilderElement,
2493
- Ke as MpQueryConditionElement,
2494
- Je as MpQueryGroupElement,
2495
- We as MpQuerySubqueryElement,
2496
- B as addChild,
2497
- _e as addEmptyConditionTo,
2498
- $e as addEmptyGroupTo,
2499
- Ee as addEmptySubqueryTo,
2500
- Ce as changeConditionField,
2501
- Se as changeConditionOperator,
2502
- G as cloneTree,
2503
- ee as collectDescendantIds,
2504
- N as defaultValueFor,
2505
- R as disabledContext,
2506
- Q as editorRegistryContext,
2507
- qe as emptyCondition,
2508
- H as emptyGroup,
2509
- we as emptySubquery,
2510
- $ as findNodeById,
2511
- S as mapTree,
2512
- E as messagesContext,
2513
- j as moveNode,
2514
- C as newId,
2515
- k as operatorsForType,
2516
- Ne as queryBuilderLightStyles,
2517
- Fe as queryConditionLightStyles,
2518
- Oe as queryGroupLightStyles,
2519
- ze as querySubqueryLightStyles,
2520
- te as removeNode,
2521
- Ae as renderExpression,
2522
- ke as setGroupLogic,
2523
- xe as updateCondition,
2524
- lt as validateOperatorOverrides,
2525
- q as valueShapeFor,
2526
- ut as visitTree
1748
+ }
2527
1749
  };
1750
+ e("query-builder", B), typeof customElements < "u" && !customElements.get("mp-query-builder") && customElements.define("mp-query-builder", Be);
1751
+ //#endregion
1752
+ export { P as DEFAULT_MESSAGES, f as DEFAULT_OPERATOR_CATALOG, N as MaxDepthExceededError, Be as MpQueryBuilderElement, Fe as MpQueryConditionElement, Le as MpQueryGroupElement, Ie as MpQuerySubqueryElement, E as addChild, ce as addEmptyConditionTo, D as addEmptyGroupTo, O as addEmptySubqueryTo, le as changeConditionField, de as changeConditionOperator, y as cloneTree, T as collectDescendantIds, m as defaultValueFor, G as disabledContext, W as editorRegistryContext, oe as emptyCondition, _ as emptyGroup, v as emptySubquery, C as findNodeById, x as mapTree, K as messagesContext, M as moveNode, g as newId, h as operatorsForType, B as queryBuilderLightStyles, V as queryConditionLightStyles, H as queryGroupLightStyles, U as querySubqueryLightStyles, k as removeNode, I as renderExpression, A as setGroupLogic, j as updateCondition, ie as validateOperatorOverrides, p as valueShapeFor, me as visitTree };