@foxy.io/elements 1.32.0-beta.1 → 1.32.0-beta.3

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 (223) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +1 -1
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-admin-subscription-card.js +1 -1
  5. package/dist/cdn/foxy-admin-subscription-form.js +1 -1
  6. package/dist/cdn/foxy-api-browser.js +1 -1
  7. package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
  8. package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
  9. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  10. package/dist/cdn/foxy-attribute-card.js +1 -1
  11. package/dist/cdn/foxy-attribute-form.js +1 -1
  12. package/dist/cdn/foxy-billing-address-card.js +1 -1
  13. package/dist/cdn/foxy-cancellation-form.js +1 -1
  14. package/dist/cdn/foxy-cart-card.js +1 -1
  15. package/dist/cdn/foxy-cart-form.js +2 -2
  16. package/dist/cdn/foxy-client-card.js +1 -1
  17. package/dist/cdn/foxy-client-form.js +1 -1
  18. package/dist/cdn/foxy-collection-page.js +1 -1
  19. package/dist/cdn/foxy-collection-pages.js +1 -1
  20. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  21. package/dist/cdn/foxy-coupon-card.js +1 -1
  22. package/dist/cdn/foxy-coupon-code-card.js +1 -1
  23. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  24. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  25. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  26. package/dist/cdn/foxy-coupon-form.js +1 -1
  27. package/dist/cdn/foxy-custom-field-card.js +1 -1
  28. package/dist/cdn/foxy-custom-field-form.js +1 -1
  29. package/dist/cdn/foxy-customer-card.js +1 -1
  30. package/dist/cdn/foxy-customer-form.js +1 -1
  31. package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
  32. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  33. package/dist/cdn/foxy-customer-portal.js +1 -1
  34. package/dist/cdn/foxy-customer.js +1 -1
  35. package/dist/cdn/foxy-customers-table.js +1 -1
  36. package/dist/cdn/foxy-discount-builder.js +1 -1
  37. package/dist/cdn/foxy-discount-card.js +1 -1
  38. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  39. package/dist/cdn/foxy-donation.js +1 -1
  40. package/dist/cdn/foxy-downloadable-card.js +1 -1
  41. package/dist/cdn/foxy-downloadable-form.js +1 -1
  42. package/dist/cdn/foxy-email-template-card.js +1 -1
  43. package/dist/cdn/foxy-email-template-form.js +1 -1
  44. package/dist/cdn/foxy-error-entry-card.js +1 -1
  45. package/dist/cdn/foxy-filter-attribute-card.js +1 -1
  46. package/dist/cdn/foxy-filter-attribute-form.js +1 -1
  47. package/dist/cdn/foxy-form-dialog.js +1 -1
  48. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  49. package/dist/cdn/foxy-gift-card-card.js +1 -1
  50. package/dist/cdn/foxy-gift-card-code-card.js +1 -1
  51. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  52. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  53. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  54. package/dist/cdn/foxy-gift-card-form.js +1 -1
  55. package/dist/cdn/foxy-i18n-editor.js +1 -1
  56. package/dist/cdn/foxy-i18n.js +1 -1
  57. package/dist/cdn/foxy-integration-card.js +1 -1
  58. package/dist/cdn/foxy-integration-form.js +1 -1
  59. package/dist/cdn/foxy-item-card.js +1 -1
  60. package/dist/cdn/foxy-item-category-card.js +1 -1
  61. package/dist/cdn/foxy-item-category-form.js +1 -1
  62. package/dist/cdn/foxy-item-form.js +1 -1
  63. package/dist/cdn/foxy-item-option-card.js +1 -1
  64. package/dist/cdn/foxy-item-option-form.js +1 -1
  65. package/dist/cdn/foxy-items-form.js +1 -1
  66. package/dist/cdn/foxy-native-integration-card.js +1 -1
  67. package/dist/cdn/foxy-native-integration-form.js +1 -1
  68. package/dist/cdn/foxy-pagination.js +1 -1
  69. package/dist/cdn/foxy-passkey-card.js +1 -1
  70. package/dist/cdn/foxy-passkey-form.js +1 -1
  71. package/dist/cdn/foxy-payment-card-embed.js +1 -1
  72. package/dist/cdn/foxy-payment-card.js +1 -1
  73. package/dist/cdn/foxy-payment-method-card.js +1 -1
  74. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  75. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  76. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  77. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  78. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  79. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  80. package/dist/cdn/foxy-query-builder.js +1 -64
  81. package/dist/cdn/foxy-report-form.js +1 -1
  82. package/dist/cdn/foxy-reports-table.js +1 -1
  83. package/dist/cdn/foxy-shipment-card.js +1 -1
  84. package/dist/cdn/foxy-shipping-container-card.js +1 -1
  85. package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
  86. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  87. package/dist/cdn/foxy-shipping-service-card.js +1 -1
  88. package/dist/cdn/foxy-sign-in-form.js +1 -1
  89. package/dist/cdn/foxy-spinner.js +2 -2
  90. package/dist/cdn/foxy-store-card.js +1 -1
  91. package/dist/cdn/foxy-store-form.js +1 -1
  92. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  93. package/dist/cdn/foxy-subscription-card.js +1 -1
  94. package/dist/cdn/foxy-subscription-form.js +1 -1
  95. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  96. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  97. package/dist/cdn/foxy-table.js +1 -1
  98. package/dist/cdn/foxy-tax-card.js +1 -1
  99. package/dist/cdn/foxy-tax-form.js +1 -1
  100. package/dist/cdn/foxy-template-config-form.js +1 -1
  101. package/dist/cdn/foxy-template-form.js +1 -1
  102. package/dist/cdn/foxy-template-set-card.js +1 -1
  103. package/dist/cdn/foxy-template-set-form.js +1 -1
  104. package/dist/cdn/foxy-transaction-card.js +1 -1
  105. package/dist/cdn/foxy-transaction.js +1 -1
  106. package/dist/cdn/foxy-transactions-table.js +7 -7
  107. package/dist/cdn/foxy-update-payment-method-form.js +1 -1
  108. package/dist/cdn/foxy-user-card.js +1 -1
  109. package/dist/cdn/foxy-user-form.js +1 -1
  110. package/dist/cdn/foxy-user-invitation-card.js +1 -1
  111. package/dist/cdn/foxy-user-invitation-form.js +1 -1
  112. package/dist/cdn/foxy-users-table.js +1 -1
  113. package/dist/cdn/foxy-webhook-card.js +1 -1
  114. package/dist/cdn/foxy-webhook-form.js +1 -1
  115. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  116. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  117. package/dist/cdn/{shared-8fc527b7.js → shared-011d6240.js} +1 -1
  118. package/dist/cdn/{shared-c98881c7.js → shared-045bd59c.js} +1 -1
  119. package/dist/cdn/{shared-e709057b.js → shared-08c637a9.js} +1 -1
  120. package/dist/cdn/{shared-f893763a.js → shared-08e42e78.js} +1 -1
  121. package/dist/cdn/{shared-6f0504e2.js → shared-0a24f318.js} +1 -1
  122. package/dist/cdn/{shared-f67f6fc5.js → shared-0e44bfff.js} +1 -1
  123. package/dist/cdn/{shared-d3044c4c.js → shared-0f261023.js} +1 -1
  124. package/dist/cdn/{shared-9092b5db.js → shared-1c169878.js} +1 -1
  125. package/dist/cdn/{shared-9e360643.js → shared-1cd2db2d.js} +1 -1
  126. package/dist/cdn/{shared-f998f9c8.js → shared-1cfea4b6.js} +1 -1
  127. package/dist/cdn/{shared-11694c05.js → shared-24c7c37f.js} +1 -1
  128. package/dist/cdn/{shared-374e6faa.js → shared-25324930.js} +1 -1
  129. package/dist/cdn/{shared-c508d5dc.js → shared-26425c01.js} +1 -1
  130. package/dist/cdn/{shared-6b8c2a83.js → shared-30b4c05b.js} +1 -1
  131. package/dist/cdn/{shared-c5647b62.js → shared-3491d10e.js} +1 -1
  132. package/dist/cdn/{shared-40af05b3.js → shared-34c84b9f.js} +1 -1
  133. package/dist/cdn/{shared-74eedbe6.js → shared-37cf92bd.js} +1 -1
  134. package/dist/cdn/{shared-aaf72aad.js → shared-3a066450.js} +1 -1
  135. package/dist/cdn/{shared-185dffc3.js → shared-45bef1ac.js} +1 -1
  136. package/dist/cdn/{shared-8a3fd383.js → shared-45ecb912.js} +1 -1
  137. package/dist/cdn/{shared-ca0847b0.js → shared-4a86d1ca.js} +1 -1
  138. package/dist/cdn/{shared-adcfd50a.js → shared-4d543043.js} +1 -1
  139. package/dist/cdn/{shared-c4f15ea3.js → shared-4e1b5fa3.js} +1 -1
  140. package/dist/cdn/{shared-b726120d.js → shared-4efc6bb8.js} +1 -1
  141. package/dist/cdn/{shared-acd33590.js → shared-51bb937b.js} +1 -1
  142. package/dist/cdn/{shared-1a30f25e.js → shared-537d2efe.js} +1 -1
  143. package/dist/cdn/{shared-f8368b97.js → shared-55bc51c8.js} +1 -1
  144. package/dist/cdn/{shared-2bc0d0cd.js → shared-56d1eae5.js} +1 -1
  145. package/dist/cdn/{shared-c9346893.js → shared-57cc81b4.js} +1 -1
  146. package/dist/cdn/{shared-f5547471.js → shared-5ff1affd.js} +1 -1
  147. package/dist/cdn/shared-620dccaa.js +1 -0
  148. package/dist/cdn/{shared-4903b2e3.js → shared-64d9ac2a.js} +1 -1
  149. package/dist/cdn/shared-73c1d31e.js +1 -0
  150. package/dist/cdn/{shared-df51ee50.js → shared-783f6e58.js} +1 -1
  151. package/dist/cdn/{shared-193bb806.js → shared-787e52c4.js} +1 -1
  152. package/dist/cdn/{shared-5c35d93a.js → shared-838cc86b.js} +1 -1
  153. package/dist/cdn/{shared-92192fe1.js → shared-85989cf3.js} +1 -1
  154. package/dist/cdn/{shared-65479601.js → shared-8a8bfd72.js} +1 -1
  155. package/dist/cdn/{shared-7c15c149.js → shared-8b9ae780.js} +1 -1
  156. package/dist/cdn/{shared-482ba043.js → shared-8f3fdf8b.js} +5 -5
  157. package/dist/cdn/{shared-9a59aab2.js → shared-906fe068.js} +1 -1
  158. package/dist/cdn/{shared-15100be0.js → shared-91560256.js} +1 -1
  159. package/dist/cdn/{shared-2e090291.js → shared-9411a937.js} +1 -1
  160. package/dist/cdn/{shared-d4a1658e.js → shared-978aaaf2.js} +1 -1
  161. package/dist/cdn/shared-97e1f413.js +1 -0
  162. package/dist/cdn/{shared-97cfdcdb.js → shared-9de0a899.js} +1 -1
  163. package/dist/cdn/{shared-8b5e05df.js → shared-9e94c56d.js} +1 -1
  164. package/dist/cdn/{shared-19df2a73.js → shared-9ef03974.js} +1 -1
  165. package/dist/cdn/{shared-bc023a29.js → shared-a4b0ccf4.js} +1 -1
  166. package/dist/cdn/{shared-8a73d1aa.js → shared-ac6e1790.js} +1 -1
  167. package/dist/cdn/{shared-60209b2d.js → shared-b6ab5711.js} +1 -1
  168. package/dist/cdn/{shared-745f340a.js → shared-b74187e9.js} +1 -1
  169. package/dist/cdn/{shared-c538157f.js → shared-be093279.js} +1 -1
  170. package/dist/cdn/{shared-86a9b27a.js → shared-c40a4b0c.js} +1 -1
  171. package/dist/cdn/{shared-5c846a3b.js → shared-c6b69d4e.js} +1 -1
  172. package/dist/cdn/{shared-8da3186f.js → shared-c7ffb9f2.js} +2 -2
  173. package/dist/cdn/{shared-28ebee50.js → shared-c89f7ad5.js} +1 -1
  174. package/dist/cdn/{shared-239062b0.js → shared-c9f3f8d3.js} +1 -1
  175. package/dist/cdn/{shared-addddf0e.js → shared-d713c00f.js} +1 -1
  176. package/dist/cdn/{shared-562d466d.js → shared-d8cd61ed.js} +1 -1
  177. package/dist/cdn/{shared-7ceceb4c.js → shared-de45ad84.js} +1 -1
  178. package/dist/cdn/{shared-5513e830.js → shared-e1850e5f.js} +1 -1
  179. package/dist/cdn/{shared-6e1b5baf.js → shared-e3647540.js} +1 -1
  180. package/dist/cdn/{shared-9d309e97.js → shared-ed9c9bab.js} +1 -1
  181. package/dist/cdn/{shared-dfe41029.js → shared-eff5dcb0.js} +1 -1
  182. package/dist/cdn/{shared-913e1955.js → shared-f0d70be1.js} +1 -1
  183. package/dist/cdn/shared-f1b29592.js +64 -0
  184. package/dist/cdn/{shared-91d8985f.js → shared-f97ed2ff.js} +1 -1
  185. package/dist/cdn/translations/cart-form/en.json +79 -68
  186. package/dist/cdn/translations/coupon-form/en.json +8 -52
  187. package/dist/elements/internal/InternalArrayMapControl/InternalArrayMapControl.d.ts +12 -0
  188. package/dist/elements/internal/InternalArrayMapControl/InternalArrayMapControl.js +277 -0
  189. package/dist/elements/internal/InternalArrayMapControl/InternalArrayMapControl.js.map +1 -0
  190. package/dist/elements/internal/InternalArrayMapControl/index.d.ts +4 -0
  191. package/dist/elements/internal/InternalArrayMapControl/index.js +6 -0
  192. package/dist/elements/internal/InternalArrayMapControl/index.js.map +1 -0
  193. package/dist/elements/internal/InternalResourcePickerControl/InternalResourcePickerControl.d.ts +3 -0
  194. package/dist/elements/internal/InternalResourcePickerControl/InternalResourcePickerControl.js +51 -16
  195. package/dist/elements/internal/InternalResourcePickerControl/InternalResourcePickerControl.js.map +1 -1
  196. package/dist/elements/internal/InternalResourcePickerControl/index.d.ts +2 -0
  197. package/dist/elements/internal/InternalResourcePickerControl/index.js +2 -0
  198. package/dist/elements/internal/InternalResourcePickerControl/index.js.map +1 -1
  199. package/dist/elements/public/CartForm/CartForm.d.ts +2 -0
  200. package/dist/elements/public/CartForm/CartForm.js +15 -11
  201. package/dist/elements/public/CartForm/CartForm.js.map +1 -1
  202. package/dist/elements/public/CopyToClipboard/CopyToClipboard.d.ts +7 -1
  203. package/dist/elements/public/CopyToClipboard/CopyToClipboard.js +60 -30
  204. package/dist/elements/public/CopyToClipboard/CopyToClipboard.js.map +1 -1
  205. package/dist/elements/public/CouponForm/CouponForm.d.ts +2 -3
  206. package/dist/elements/public/CouponForm/CouponForm.js +51 -25
  207. package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
  208. package/dist/elements/public/CouponForm/index.d.ts +1 -0
  209. package/dist/elements/public/CouponForm/index.js +1 -0
  210. package/dist/elements/public/CouponForm/index.js.map +1 -1
  211. package/dist/elements/public/QueryBuilder/utils/parse.js +3 -1
  212. package/dist/elements/public/QueryBuilder/utils/parse.js.map +1 -1
  213. package/dist/elements/public/QueryBuilder/utils/stringify.js +10 -3
  214. package/dist/elements/public/QueryBuilder/utils/stringify.js.map +1 -1
  215. package/dist/elements/public/Transaction/index.d.ts +1 -0
  216. package/dist/elements/public/Transaction/index.js +1 -0
  217. package/dist/elements/public/Transaction/index.js.map +1 -1
  218. package/dist/mixins/themeable.js +4 -0
  219. package/dist/mixins/themeable.js.map +1 -1
  220. package/package.json +1 -1
  221. package/dist/cdn/shared-492da078.js +0 -1
  222. package/dist/cdn/shared-5e09e162.js +0 -1
  223. package/dist/cdn/shared-7275324b.js +0 -1
@@ -1 +1 @@
1
- import{_ as e}from"./shared-d1195c27.js";import{y as s}from"./shared-b726120d.js";import{h as t}from"./shared-dc73b9a5.js";let r,a,i,o=e=>e;class d extends s{constructor(){super(...arguments),this.disabled=!1,this.items=[]}static get properties(){return e(e({},super.properties),{},{disabled:{type:Boolean,reflect:!0},items:{attribute:!1}})}render(){return t(r||(r=o` <p class="font-lumo text-xs leading-s text-secondary"> ${0} </p> `),this.items.map((({name:e,value:s},r)=>t(a||(a=o`${0}${0} ${0}`),0===r?"":t(i||(i=o`&bull;`)),e,s))))}}export{d as M};
1
+ import{_ as e}from"./shared-d1195c27.js";import{y as s}from"./shared-4efc6bb8.js";import{h as t}from"./shared-dc73b9a5.js";let r,a,i,o=e=>e;class p extends s{constructor(){super(...arguments),this.disabled=!1,this.items=[]}static get properties(){return e(e({},super.properties),{},{disabled:{type:Boolean,reflect:!0},items:{attribute:!1}})}render(){return t(r||(r=o` <p class="font-lumo text-xs leading-s text-secondary"> ${0} </p> `),this.items.map((({name:e,value:s},r)=>t(a||(a=o`${0}${0} ${0}`),0===r?"":t(i||(i=o`&bull;`)),e,s))))}}export{p as M};
@@ -1,4 +1,4 @@
1
- import"./shared-f998f9c8.js";import{O as e}from"./shared-40af05b3.js";import"./shared-9a59aab2.js";import{h as t,P as i,D as s,t as o,a as l,m as n,A as r,y as a,v as h,x as d}from"./shared-adcfd50a.js";import"./shared-8fc527b7.js";import{T as c,D as u,E as _}from"./shared-65479601.js";import{I as m}from"./shared-651c44fa.js";import"./shared-562d466d.js";import"./shared-8b5e05df.js";import{C as p}from"./shared-61ade33e.js";import{t as f,m as g,F as v,f as y,d as b,P as I,O as x,D as S,a as w}from"./shared-5513e830.js";import{I as P,a as C}from"./shared-f893763a.js";import{I as V}from"./shared-97cfdcdb.js";
1
+ import"./shared-1cfea4b6.js";import{O as e}from"./shared-34c84b9f.js";import"./shared-906fe068.js";import{h as t,P as i,D as s,t as o,a as l,m as n,A as r,y as a,v as h,x as d}from"./shared-4d543043.js";import"./shared-011d6240.js";import{T as c,D as u,E as _}from"./shared-8a8bfd72.js";import{I as m}from"./shared-651c44fa.js";import"./shared-d8cd61ed.js";import"./shared-9e94c56d.js";import{C as p}from"./shared-61ade33e.js";import{t as f,m as g,F as v,f as y,d as b,P as I,O as x,D as S,a as w}from"./shared-e1850e5f.js";import{I as P,a as C}from"./shared-08e42e78.js";import{I as V}from"./shared-9de0a899.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -0,0 +1,64 @@
1
+ import"./shared-64d9ac2a.js";import"./shared-e1850e5f.js";import{_ as e}from"./shared-d1195c27.js";import{s as l,h as t,c as a,L as s}from"./shared-dc73b9a5.js";import{T as n,O as r}from"./shared-8874ec69.js";import{o}from"./shared-8438d4ca.js";import{c as i}from"./shared-4e709717.js";import{i as d}from"./shared-9803aa7c.js";import{a as u}from"./shared-79d0699c.js";import{r as c}from"./shared-a0c6a159.js";import{R as v,T as p,a as b}from"./shared-4efc6bb8.js";import{I as h}from"./shared-17a61265.js";import{C as f}from"./shared-d1cb97c6.js";let g;const m=l(g||(g=(e=>e)`
2
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M26.4 14.7399C26.4 15.2922 25.9523 15.7399 25.4 15.7399H10.6C10.0477 15.7399 9.60001 15.2922 9.60001 14.7399V14.2C9.60001 13.6477 10.0477 13.2 10.6 13.2H25.4C25.9523 13.2 26.4 13.6477 26.4 14.2V14.7399ZM26.4 21.8C26.4 22.3523 25.9523 22.8 25.4 22.8H10.6C10.0477 22.8 9.60001 22.3523 9.60001 21.8V21.2601C9.60001 20.7078 10.0477 20.2601 10.6 20.2601H25.4C25.9523 20.2601 26.4 20.7078 26.4 21.2601V21.8Z" class="fill-current"/>
4
+ </svg>
5
+ `));let C;const y=l(C||(C=(e=>e)`
6
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
7
+ <path d="M12.8656 14.6695C12.3425 14.4581 12 13.9503 12 13.386C12 12.3748 13.0489 11.7048 13.9663 12.1299L23.8937 16.7295C24.5323 17.0254 24.941 17.6652 24.941 18.369C24.941 19.0735 24.5316 19.7137 23.8921 20.0092L13.971 24.5938C13.0509 25.019 12 24.347 12 23.3334C12 22.7709 12.3394 22.264 12.8594 22.0496L21.341 18.3046L12.8656 14.6695Z" class="fill-current"/>
8
+ </svg>
9
+ `));let x;const w=l(x||(x=(e=>e)`
10
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
11
+ <path d="M12.5 9.8C11.0088 9.8 9.8 11.0088 9.8 12.5V23.5C9.8 24.9912 11.0088 26.2 12.5 26.2H14C14.6627 26.2 15.2 25.6627 15.2 25C15.2 24.3373 14.6627 23.8 14 23.8H13.5C12.782 23.8 12.2 23.218 12.2 22.5V13.5C12.2 12.782 12.782 12.2 13.5 12.2H14C14.6627 12.2 15.2 11.6627 15.2 11C15.2 10.3373 14.6627 9.8 14 9.8H12.5Z" class="fill-current"/>
12
+ <path d="M22 9.8C21.3373 9.8 20.8 10.3373 20.8 11C20.8 11.6627 21.3373 12.2 22 12.2H22.5C23.218 12.2 23.8 12.782 23.8 13.5V22.5C23.8 23.218 23.218 23.8 22.5 23.8H22C21.3373 23.8 20.8 24.3373 20.8 25C20.8 25.6627 21.3373 26.2 22 26.2H23.5C24.9912 26.2 26.2 24.9912 26.2 23.5V12.5C26.2 11.0088 24.9912 9.8 23.5 9.8H22Z" class="fill-current"/>
13
+ </svg>
14
+ `));let V;const $=l(V||(V=(e=>e)`
15
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
16
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.05 23.58L20.04 23.59L17.64 21.19L18.7 20.13L20.05 21.48L22.54 19L23.6 20.06L20.06 23.6L20.05 23.58ZM18 8C12.5 8 8 12.5 8 18C8 23.5 12.5 28 18 28C23.5 28 28 23.5 28 18C28 12.5 23.5 8 18 8ZM13.34 12.28L14.75 13.69L16.16 12.28L17.22 13.34L15.81 14.75L17.22 16.16L16.16 17.22L14.75 15.81L13.34 17.22L12.28 16.16L13.69 14.75L12.28 13.34L13.34 12.28ZM18 26C15.8 26 13.8 25.1 12.3 23.7L23.7 12.3C25.1 13.8 26 15.8 26 18C26 22.4 22.4 26 18 26Z" class="fill-current"/>
17
+ </svg>
18
+ `));let H;const L=l(H||(H=(e=>e)`
19
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
20
+ <path d="M22.8754 22.054C23.3985 22.2655 23.741 22.7733 23.741 23.3375C23.741 24.3487 22.6922 25.0187 21.7747 24.5936L11.8473 19.994C11.2087 19.6981 10.8 19.0583 10.8 18.3545C10.8 17.65 11.2094 17.0098 11.8489 16.7143L21.7701 12.1297C22.6902 11.7045 23.741 12.3765 23.741 13.3902C23.741 13.9526 23.4017 14.4596 22.8816 14.6739L14.4 18.4189L22.8754 22.054Z" class="fill-current"/>
21
+ </svg>
22
+ `));let M;const Z=l(M||(M=(e=>e)`
23
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
24
+ <path d="M22.8754 19.654C23.3985 19.8655 23.741 20.3733 23.741 20.9375C23.741 21.9487 22.6922 22.6187 21.7747 22.1936L11.8473 17.594C11.2087 17.2981 10.8 16.6584 10.8 15.9545C10.8 15.25 11.2094 14.6098 11.8489 14.3143L21.7701 9.72971C22.6902 9.30453 23.741 9.97655 23.741 10.9902C23.741 11.5527 23.4017 12.0596 22.8816 12.2739L14.4 16.0189L22.8754 19.654Z" class="fill-current"/>
25
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.9169 20.9941C11.2134 20.3281 11.9937 20.0286 12.6597 20.3251L22.8548 24.8643C23.5208 25.1608 23.8203 25.9411 23.5238 26.6071C23.2273 27.2731 22.447 27.5726 21.781 27.2761L11.5859 22.7369C10.9199 22.4404 10.6204 21.6601 10.9169 20.9941Z" class="fill-current"/>
26
+ </svg>
27
+ `));let O;const j=l(O||(O=(e=>e)`
28
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
29
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M24.0049 7.11C24.6649 7.49107 24.8911 8.33507 24.51 8.99511L13.1621 28.6503C12.781 29.3103 11.937 29.5365 11.277 29.1554C10.6169 28.7743 10.3908 27.9303 10.7719 27.2703L22.1198 7.61511C22.5009 6.95507 23.3448 6.72892 24.0049 7.11Z" class="fill-current"/>
30
+ <path d="M17.5097 13.2H10.8C10.1373 13.2 9.60001 13.7373 9.60001 14.4V14.5399C9.60001 15.2026 10.1373 15.7399 10.8 15.7399H16.0433L17.5097 13.2Z" class="fill-current"/>
31
+ <path d="M13.4336 20.2601H10.8C10.1373 20.2601 9.60001 20.7973 9.60001 21.4601V21.6C9.60001 22.2627 10.1373 22.8 10.8 22.8H11.9671L13.4336 20.2601Z" class="fill-current"/>
32
+ <path d="M17.9254 22.8H25.2C25.8627 22.8 26.4 22.2627 26.4 21.6V21.4601C26.4 20.7973 25.8627 20.2601 25.2 20.2601H19.3918L17.9254 22.8Z" class="fill-current"/>
33
+ <path d="M22.0015 15.7399H25.2C25.8627 15.7399 26.4 15.2026 26.4 14.5399V14.4C26.4 13.7373 25.8627 13.2 25.2 13.2H23.468L22.0015 15.7399Z" class="fill-current"/>
34
+ </svg>
35
+ `));let I;const N=l(I||(I=(e=>e)`
36
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
37
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18 8C12.48 8 8 12.48 8 18C8 23.52 12.48 28 18 28C23.52 28 28 23.52 28 18C28 12.48 23.52 8 18 8ZM18 26C13.59 26 10 22.41 10 18C10 13.59 13.59 10 18 10C22.41 10 26 13.59 26 18C26 22.41 22.41 26 18 26Z" class="fill-current"/>
38
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19.49 17.38C19.92 16.16 19.66 14.74 18.68 13.76C17.57 12.65 15.89 12.46 14.58 13.17L16.93 15.52L15.52 16.93L13.17 14.58C12.46 15.9 12.65 17.57 13.76 18.68C14.74 19.66 16.16 19.92 17.38 19.49L20.79 22.9C20.99 23.1 21.3 23.1 21.5 22.9L22.9 21.5C23.1 21.3 23.1 20.99 22.9 20.79L19.49 17.38Z" class="fill-current"/>
39
+ </svg>
40
+ `));let A;const B=l(A||(A=(e=>e)`
41
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
42
+ <path d="M10 13V15C10 15.55 9.55 16 9 16H8V20H9C9.55 20 10 20.45 10 21V23C10 24.65 11.35 26 13 26H16V24H13C12.45 24 12 23.55 12 23V21C12 19.7 11.16 18.58 10 18.17V17.83C11.16 17.42 12 16.3 12 15V13C12 12.45 12.45 12 13 12H16V10H13C11.35 10 10 11.35 10 13Z" class="fill-current"/>
43
+ <path d="M27 16C26.45 16 26 15.55 26 15V13C26 11.35 24.65 10 23 10H20V12H23C23.55 12 24 12.45 24 13V15C24 16.3 24.84 17.42 26 17.83V18.17C24.84 18.58 24 19.69 24 21V23C24 23.55 23.55 24 23 24H20V26H23C24.65 26 26 24.65 26 23V21C26 20.45 26.45 20 27 20H28V16H27Z" class="fill-current"/>
44
+ </svg>
45
+ `));let T;const _=l(T||(T=(e=>e)`
46
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
47
+ <path d="M23.8333 17.0588H22.0833V11.7647H20.3333V10H23.8333V17.0588Z" class="fill-current"/>
48
+ <path d="M15.6667 10H12.1667C11.525 10 11 10.5294 11 11.1765V15.8824C11 16.5294 11.525 17.0588 12.1667 17.0588H15.6667C16.3083 17.0588 16.8333 16.5294 16.8333 15.8824V11.1765C16.8333 10.5294 16.3083 10 15.6667 10ZM15.0833 15.2941H12.75V11.7647H15.0833V15.2941Z" class="fill-current"/>
49
+ <path d="M15.6667 26.4706H13.9167V21.1765H12.1667V19.4118H15.6667V26.4706Z" class="fill-current"/>
50
+ <path d="M23.8333 19.4118H20.3333C19.6917 19.4118 19.1667 19.9412 19.1667 20.5882V25.2941C19.1667 25.9412 19.6917 26.4706 20.3333 26.4706H23.8333C24.475 26.4706 25 25.9412 25 25.2941V20.5882C25 19.9412 24.475 19.4118 23.8333 19.4118ZM23.25 24.7059H20.9167V21.1765H23.25V24.7059Z" class="fill-current"/>
51
+ </svg>
52
+ `));let D;const S=l(D||(D=(e=>e)`
53
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
54
+ <path d="M25 10H24V8H22V10H14V8H12V10H11C9.89 10 9.01 10.9 9.01 12L9 26C9 27.1 9.89 28 11 28H25C26.1 28 27 27.1 27 26V12C27 10.9 26.1 10 25 10ZM25 26H11V16H25V26ZM25 14H11V12H25V14ZM23 19H18V24H23V19Z" class="fill-current"/>
55
+ </svg>
56
+ `));let k;const z=l(k||(k=(e=>e)`
57
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
58
+ <path d="M26.5 16L27 14H23L24 10H22L21 14H17L18 10H16L15 14H11L10.5 16H14.5L13.5 20H9.5L9 22H13L12 26H14L15 22H19L18 26H20L21 22H25L25.5 20H21.5L22.5 16H26.5ZM19.5 20H15.5L16.5 16H20.5L19.5 20Z" class="fill-current"/>
59
+ </svg>
60
+ `));let E;const R=l(E||(E=(e=>e)`
61
+ <svg class="w-full h-full" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
62
+ <path d="M11 11V14H16.5V26H19.5V14H25V11H11Z" class="fill-current"/>
63
+ </svg>
64
+ `));let q,U,G,W,F,Q=e=>e;function J(e){var l,a,s;const n=null===(a=null===(l=e.list)||void 0===l?void 0:l.every((l=>l.value!==e.value)))||void 0===a||a;return t(q||(q=Q` <label class="${0}"> <div class="relative flex-1 min-w-0 overflow-hidden"> <select class="${0}" ?disabled="${0}" @change="${0}"> ${0} ${0} </select> </div> ${0} </label> `),i({"flex items-center transition-colors group text-tertiary":!0,"cursor-pointer hover-bg-contrast-5":!e.disabled&&!e.readonly,"cursor-default":e.disabled||e.readonly}),i({"bg-transparent relative appearance-none flex h-m px-s":!0,"font-medium w-full max-w-full whitespace-nowrap focus-outline-none":!0,"text-tertiary":n&&!e.disabled,"text-body":!n&&!e.disabled&&!e.readonly,"text-disabled":e.disabled,"text-secondary":!n&&e.readonly,"cursor-pointer":!e.disabled&&!e.readonly,"cursor-default":e.disabled||e.readonly}),e.disabled||e.readonly,(l=>{const t=l.currentTarget,a=t.options[t.options.selectedIndex].value;e.onChange(a)}),n?t(U||(U=Q` <option value="" disabled="disabled" ?selected="${0}">${0}</option> `),n,e.t(e.label)):"",null===(s=e.list)||void 0===s?void 0:s.map((({label:l,value:a})=>t(G||(G=Q` <option value="${0}" ?selected="${0}"> ${0} </option> `),a,a===e.value,e.t(l)))),n?"":t(W||(W=Q` <span class="${0}"> ${0} </span> ${0} `),i({"font-tnum text-xs font-medium border mr-s px-xs rounded-s border-current inline-block":!0,"text-body":!e.disabled&&!e.readonly,"text-disabled":e.disabled,"text-secondary":e.readonly}),e.t(e.label),e.clearable&&!e.readonly?t(F||(F=Q` <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <iron-icon aria-hidden="true" class="icon-inline text-l" icon="icons:remove-circle-outline"> </iron-icon> </button> `),e.t("delete"),i({"w-s h-s mr-xs flex items-center justify-center transition-colors rounded-full":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"hover-bg-contrast-5 hover-text-error text-body":!e.disabled,"text-disabled":e.disabled}),e.disabled,(()=>e.onChange(""))):""))}let K,P,X,Y,ee,le=e=>e;function te(e){var l;const a=`${null!==(l=e.id)&&void 0!==l?l:String(Math.floor(Math.random()*Math.pow(10,8)))}-list`,s=!!e.displayValue;let n=e.value;if("date"===e.type){const l=new Date(e.value);n=isNaN(l.getTime())?"":u(l)}return t(K||(K=le` <label class="relative flex items-center cursor-text group text-tertiary"> <div class="relative flex-1 min-w-0 overflow-hidden"> ${0} <input placeholder="${0}" class="${0}" list="${0}" type="${0}" max="${0}" .value="${0}" ?disabled="${0}" @input="${0}"> </div> <span class="${0}"> ${0} </span> ${0} ${0} </label> `),s?t(P||(P=le` <div aria-hidden="true" class="${0}"> <div class="truncate">${0}</div> </div> `),i({"absolute inset-0 h-m px-s font-medium flex items-center":!0,"text-body":!e.disabled&&!e.readonly,"text-disabled":e.disabled,"text-secondary":e.readonly}),e.t(e.displayValue)):"",n||"date"===e.type?"":e.t(e.label),i({"bg-base relative flex h-m px-s font-medium w-full":!0,"text-body":!e.disabled&&!e.readonly,"text-disabled":e.disabled,"text-secondary":e.readonly,"flex max-w-full whitespace-nowrap":!0,"focus-outline-none":!0,"opacity-0 focus-opacity-100":s}),d(e.list?a:void 0),"date"===e.type?"datetime-local":e.type,d("date"===e.type?"9999-12-31T23:59":""),n,e.disabled||e.readonly,(l=>{const t=l.currentTarget;let a=t.value;try{if("date"===e.type){const e=new Date(t.value);isNaN(e.getTime())||(a=e.toISOString())}}catch(e){}e.onChange(a)}),i({"font-tnum text-xs font-medium border border-current mr-s px-xs rounded-s":!0,"inline-block":!!n||"date"===e.type,"sr-only":!n&&"date"!==e.type,"text-body":!e.disabled&&!e.readonly,"text-disabled":e.disabled,"text-secondary":e.readonly}),e.t(e.label),e.list?t(X||(X=le` <datalist id="${0}"> ${0} </datalist> `),a,e.list.map((({label:l,value:a})=>t(Y||(Y=le`<option value="${0}">${0}</option>`),a,e.t(l))))):"",e.disabled||e.readonly?"":t(ee||(ee=le` <div class="absolute inset-0 transition-colors bg-transparent group-hover-bg-contrast-5 pointer-events-none"></div> `)))}let ae,se,ne=e=>e;let re,oe=e=>e;function ie({parsedValue:l,disabled:t,readonly:a,options:s,option:n,t:r,onChange:o}){return te({displayValue:null==n?void 0:n.label,disabled:t,readonly:a,value:l.path,label:"field",list:s.map((l=>e(e({},l),{},{value:l.path}))),type:"text",id:"path",t:r,onChange:e=>o({operator:null,value:"",path:e})})}let de,ue=e=>e;let ce,ve,pe=e=>e;function be(l){var a,s;const{parsedValue:d,isFullSize:u,isNested:v,readonly:p,disabled:b,options:h,t:f,onConvert:g,onDelete:C,onChange:x}=l,V=null!==(a=h.find((e=>e.path===d.path)))&&void 0!==a?a:null,H=null!==(s=null==V?void 0:V.type)&&void 0!==s?s:n.Any,M=d.operator,O={parsedValue:d,operators:l.operators,disabled:b,readonly:p,options:h,option:V,t:f,onChange:x},I={[n.Attribute]:B,[n.Boolean]:_,[n.Number]:z,[n.String]:R,[n.Date]:S,[n.Any]:N};return t(ce||(ce=pe` <div class="flex items-center space-x-s" aria-label="${0}"> <div class="${0}"> <div class="bg-contrast-10"> <div class="grid gap-1px grid-vertical sm-grid-horizontal"> <div class="bg-base" title="${0}"> <div class="${0}" aria-hidden="true"> ${0} </div> </div> <div class="bg-base"> ${0} </div> <div class="bg-base">${0}</div> <div class="bg-base"> ${0} </div> </div> </div> </div> <div class="${0}"> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <iron-icon aria-hidden="true" class="m-auto icon-inline text-xl" icon="icons:remove-circle-outline"> </iron-icon> </button> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <iron-icon aria-hidden="true" class="m-auto icon-inline text-xl" icon="icons:add-circle-outline"> </iron-icon> </button> </div> </div> `),f("query_builder_rule"),i({"flex-1 bg-base rounded overflow-hidden border":!0,"border-contrast-10":!v&&!p,"border-contrast-50":!!v||p,"border-dashed":p,"border-solid":!p}),f(`type_${H}`),i({"w-m h-m":!0,"text-tertiary":!p&&!b,"text-disabled":p||b}),V?I[H]:N,d.path&&(H===n.Attribute||d.name)?t(ve||(ve=pe` <div class="bg-contrast-10 grid gap-1px grid-cols-1 sm-grid-cols-2"> <div class="bg-base">${0}</div> <div class="bg-base">${0}</div> </div> `),ie(O),function(l){var t;return te({disabled:l.disabled,readonly:l.readonly,value:null!==(t=l.parsedValue.name)&&void 0!==t?t:"",label:"name",type:"text",t:l.t,onChange:t=>l.onChange(e(e({},l.parsedValue),{},{name:t}))})}(O)):ie(O),function(l){const a=l.parsedValue.operator,s={[r.GreaterThan]:y,[r.GreaterThanOrEqual]:o,[r.In]:w,[r.IsDefined]:$,[r.LessThan]:L,[r.LessThanOrEqual]:Z,[r.Not]:j},d={[n.Attribute]:[r.In,r.Not,r.IsDefined],[n.Boolean]:[],[n.String]:[r.In,r.Not],[n.Number]:[r.In,r.Not,r.GreaterThan,r.LessThan,r.GreaterThanOrEqual,r.LessThanOrEqual],[n.Date]:[r.In,r.Not],[n.Any]:Object.values(r)},u=(l.option?d[l.option.type]:l.parsedValue.name?Object.values(r):Object.values(r).filter((e=>e!==r.IsDefined))).filter((e=>l.operators.includes(e))),c=l.disabled||l.readonly||0===u.length||!l.parsedValue.path;return t(re||(re=oe` <button title="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <div aria-hidden="true">${0}</div> </button> `),l.t(`operator_${null!=a?a:"equal"}`),i({"flex items-center justify-center w-m h-m transition-colors":!0,"focus-outline-none focus-ring-2 focus-ring-inset focus-ring-primary-50":!0,"text-body hover-bg-contrast-5":!c&&u.length>1,"cursor-default text-tertiary":!c&&u.length<=1,"text-disabled cursor-default":c}),c||u.length<=1,(()=>{var t;const s=a?u.indexOf(a):-1,n=null!==(t=u[s+1])&&void 0!==t?t:null;l.onChange(e(e({},l.parsedValue),{},{operator:n,value:l.parsedValue.value}))}),a?s[a]:m)}(O),M===r.In?function(l){var a,s,r,o;const i=(null===(a=l.option)||void 0===a?void 0:a.list)?J:te,d=l.parsedValue.value.split(","),u=null!==(r=null===(s=l.option)||void 0===s?void 0:s.type)&&void 0!==r?r:n.Any,v=u===n.Number?"number":u===n.Date?"date":"text",p=null===(o=l.option)||void 0===o?void 0:o.list,b=[...d.filter((e=>!!e))];return l.readonly||b.push(null),t(ae||(ae=ne` <div class="bg-contrast-10 grid grid-cols-1 gap-1px"> ${0} </div> `),c(b,((e,l)=>l),((a,s)=>{var n;return t(se||(se=ne` <div class="bg-base"> ${0} </div> `),i({type:v,list:p,t:l.t,value:null!=a?a:"",label:a?String(s+1):"add_value",disabled:l.disabled,readonly:l.readonly,clearable:!0,displayValue:null===(n=null==p?void 0:p.find((e=>e.value===a)))||void 0===n?void 0:n.label,onChange:t=>{t?d[s]=t:d.splice(s,1),l.onChange(e(e({},l.parsedValue),{},{value:d.join(",")}))}}))})))}(O):M===r.IsDefined?function(l){return J({readonly:l.readonly,disabled:l.disabled,value:l.parsedValue.value,label:"value",list:[{label:"is_defined_true",value:"true"},{label:"is_defined_false",value:"false"}],t:l.t,onChange:t=>l.onChange(e(e({},l.parsedValue),{},{value:t}))})}(O):H===n.Boolean?function(l){var t,a,s,n,r,o;const{parsedValue:i,option:d,readonly:u,disabled:c,t:v,onChange:p}=l,b=null!==(s=null===(a=null===(t=null==d?void 0:d.list)||void 0===t?void 0:t.find((e=>"false"===e.value)))||void 0===a?void 0:a.label)&&void 0!==s?s:"false",h=[{label:null!==(o=null===(r=null===(n=null==d?void 0:d.list)||void 0===n?void 0:n.find((e=>"true"===e.value)))||void 0===r?void 0:r.label)&&void 0!==o?o:"true",value:"true"},{label:b,value:"false"}];return J({disabled:c,readonly:u,value:i.value,label:"value",list:h,t:v,onChange:l=>p(e(e({},i),{},{value:l}))})}(O):null===M&&[n.Number,n.Date].includes(H)?function(l){var a,s,r;const{t:o,parsedValue:i,option:d,readonly:u,disabled:c,onChange:v}=l,p=i.value.split(".."),b=p.length>=1?p[0]:"",h=p.length>=2?p[1]:"",f=(null==d?void 0:d.list)?J:te,g=null!==(a=null==d?void 0:d.type)&&void 0!==a?a:n.Any,m=g===n.Number?"number":g===n.Date?"date":"text",C=null==d?void 0:d.list;return t(de||(de=ue` <div class="grid bg-contrast-10 gap-1px grid-cols-1 grid-rows-2 sm-grid-cols-2 sm-grid-rows-1"> <div class="bg-base"> ${0} </div> <div class="bg-base"> ${0} </div> </div> `),f({displayValue:null===(s=null==C?void 0:C.find((e=>e.value===b)))||void 0===s?void 0:s.label,readonly:u,disabled:c,value:b,label:"range_from",type:m,list:C,t:o,onChange:l=>v(e(e({},i),{},{value:`${l}..${h}`}))}),f({displayValue:null===(r=null==C?void 0:C.find((e=>e.value===h)))||void 0===r?void 0:r.label,readonly:u,disabled:c,label:"range_to",value:h,type:m,list:C,t:o,onChange:l=>v(e(e({},i),{},{value:`${b}..${l}`}))}))}(O):function(l){var t,a,s,r;const{t:o,option:i,parsedValue:d,readonly:u,disabled:c,onChange:v}=l,p=(null==i?void 0:i.list)?J:te,b=null!==(t=null==i?void 0:i.type)&&void 0!==t?t:n.Any;return p({displayValue:null===(s=null===(a=null==i?void 0:i.list)||void 0===a?void 0:a.find((e=>e.value===d.value)))||void 0===s?void 0:s.label,readonly:u,disabled:c||!d.path,value:null!==(r=d.value)&&void 0!==r?r:"",label:"value",type:b===n.Number?"number":b===n.Date?"date":"text",list:null==i?void 0:i.list,t:o,onChange:l=>v(e(e({},d),{},{value:l}))})}(O),i({"-mr-s self-start flex-col sm-flex-row flex-shrink-0 items-center":!0,"border-t border-b border-transparent divide-y divide-transparent":!0,hidden:!!u||p,flex:!u}),f("delete"),i({"box-content flex w-m h-m rounded-full transition-colors":!0,"text-secondary hover-bg-contrast-5 hover-text-error":!b,"cursor-default text-disabled":b,"focus-outline-none focus-ring-2 ring-primary-50":!0,"opacity-0":!d.path}),b||p||!d.path,C,f("add_or_clause"),i({"box-content flex w-m h-m rounded-full transition-colors":!0,"text-success hover-bg-contrast-5":!b,"cursor-default text-disabled":b,"focus-outline-none focus-ring-2 ring-primary-50":!0,"opacity-0":!d.path||!!v||l.disableOr}),b||p||!d.path,g)}let he,fe,ge,me,Ce=e=>e;function ye(l){const a=l.parsedValues.some((e=>Array.isArray(e))),s=t(he||(he=Ce`<div class="${0}"></div>`),a?"h-xs":"mt-s"),n=t(fe||(fe=Ce` <div class="flex items-center h-s"> <div class="w-m text-center leading-none uppercase font-medium text-xs text-contrast-30"> ${0} </div> <div class="flex-1 border-t border-contrast-20"></div> <div class="w-m ml-s flex-shrink-0"></div> <div class="hidden sm-block w-m flex-shrink-0"></div> </div> `),l.t("or"));return t(ge||(ge=Ce` <div aria-label="${0}"> ${0} </div> `),l.t("query_builder_group"),c([...l.parsedValues,null],((e,l)=>String(l)),((a,r)=>{const o=r>0?l.isNested?n:s:"";return null===a?[o,be({operators:l.operators,disableOr:l.disableOr,isFullSize:!l.isNested&&0===l.parsedValues.length,isNested:l.isNested,disabled:l.disabled,readonly:l.readonly,options:l.options,parsedValue:{path:"",operator:null,value:""},t:l.t,onChange:e=>l.onChange([...l.parsedValues,e])})]:Array.isArray(a)?[o,t(me||(me=Ce` <div class="bg-contrast-10 rounded-t-l rounded-b-l p-s -m-s"> ${0} </div> `),ye({parsedValues:a,disableOr:l.disableOr,operators:l.operators,isNested:!0,disabled:l.disabled,readonly:l.readonly,options:l.options,t:l.t,onChange:e=>{const t=[...l.parsedValues],a=e;t[r]=e.length>1?a:a[0],l.onChange(t)}}))]:[o,be({parsedValue:a,disableOr:l.disableOr,operators:l.operators,isNested:l.isNested,disabled:l.disabled,readonly:l.readonly,options:l.options,t:l.t,onChange:e=>{const t=[...l.parsedValues];t[r]=e,l.onChange(t)},onDelete:()=>{const e=l.parsedValues.filter(((e,l)=>l!==r));l.onChange(e)},onConvert:()=>{const t=[...l.parsedValues];t[r]=[a,e(e({},a),{},{operator:null,value:""})],l.onChange(t)}})]})))}function xe(e){var l;const t=e.indexOf("="),a=decodeURIComponent(e.substring(0,t)),s=decodeURIComponent(e.substring(t+1)),n=null!==(l=Object.values(r).find((e=>a.endsWith(`:${e}`))))&&void 0!==l?l:null;let o,i=a.substring(0,n?a.lastIndexOf(":"):void 0);const d=a.lastIndexOf("[");return i.endsWith("]")&&-1!==d&&(o=i.substring(d+1,i.length-1),i=i.substring(0,d),i.endsWith(":name")&&(i=i.substring(0,i.length-5))),{name:o,path:i,value:s,operator:n}}function we(e){return e.split("&").filter((e=>!!e)).map((e=>{const[l,t]=e.split("=").map(decodeURIComponent);return(null==t?void 0:t.includes("|"))?`${encodeURIComponent(l)}=${t}`.split("|").map((e=>xe(e))):xe(e)}))}function Ve(e){let l=e.path;return e.name&&(l+=`:name[${e.name}]`),e.operator&&(l+=`:${e.operator}`),l=`${encodeURIComponent(l)}=${encodeURIComponent(e.value)}`,"="===l?"":l}function $e(e){const l=e.reduce(((e,l)=>{if(Array.isArray(l)){let t=l[0].path;l[0].name&&(t+=`:name[${l[0].name}]`),l[0].operator&&(t+=`:${l[0].operator}`);const a=[l[0].value,...l.slice(1).map((e=>decodeURIComponent(Ve(e))))];e.push(`${t}=${encodeURIComponent(a.join("|"))}`)}else"zoom"!==l.path&&e.push(Ve(l));return e}),[]),t=He(e).join(",");return t&&l.push(`zoom=${encodeURIComponent(t)}`),l.join("&")}function He(e){return e.map((e=>{if(Array.isArray(e))return He(e);if(e.name)return[e.path];const l=e.path.split(":");return l.slice(0,l.length-1)})).flat().sort(((e,l)=>l.length-e.length)).filter(((e,l,t)=>t.every(((t,a)=>(a>=l||t!==e)&&!t.startsWith(`${e}:`)))))}let Le;const Me=a(Le||(Le=(e=>e)`.gap-1px{gap:1px}.grid-vertical{grid-template:auto/var(--lumo-size-m) 1fr}:host([sm]) .sm-grid-horizontal{grid-template:auto/var(--lumo-size-m) 1fr var(--lumo-size-m) 1fr}`)),Ze=f(v(p(b(h(s),"query-builder"))));class Oe extends Ze{constructor(){super(...arguments),this.operators=Object.values(r),this.disableOr=!1,this.options=null,this.value=null}static get properties(){return e(e({},super.properties),{},{disableOr:{type:Boolean,attribute:"disable-or"},operators:{type:Array},options:{type:Array},value:{type:String}})}static get styles(){return[super.styles,Me]}render(){var e,l,t;const a=new Set(["zoom","limit","offset","order","fields"]),s=[],n=[];return we(null!==(e=this.value)&&void 0!==e?e:"").forEach((e=>{Array.isArray(e)||!a.has(e.path)?n.push(e):s.push(e)})),ye({parsedValues:n,disableOr:this.disableOr,operators:null!==(l=this.operators)&&void 0!==l?l:[],disabled:this.disabled,readonly:this.readonly,options:null!==(t=this.options)&&void 0!==t?t:[],t:this.t.bind(this),onChange:e=>{this.value=$e([...e,...s]),this.dispatchEvent(new Oe.ChangeEvent("change"))}})}}Oe.ChangeEvent=class extends CustomEvent{},Oe.Operator=r,Oe.Type=n,customElements.define("foxy-query-builder",Oe);export{Oe as Q,we as p,$e as s};
@@ -1 +1 @@
1
- import"./shared-f998f9c8.js";const n=document.createElement("template");n.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(n.content);
1
+ import"./shared-1cfea4b6.js";const n=document.createElement("template");n.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(n.content);
@@ -56,80 +56,91 @@
56
56
  "placeholder": "Synced with template set",
57
57
  "helper_text": ""
58
58
  },
59
- "customer-uri": {
60
- "label": "Customer",
61
- "helper_text": "",
62
- "value": "{{ resource.first_name }} {{ resource.last_name }} • {{ resource.email }}",
63
- "value_busy": "Loading...",
64
- "value_fail": "Failed to load",
59
+ "customer-email": {
60
+ "label": "Customer email",
65
61
  "placeholder": "Not set",
66
- "dialog": {
67
- "cancel": "Cancel",
68
- "close": "Close",
69
- "header": "Select an account",
70
- "selection": {
71
- "label": "Customers",
72
- "helper_text": "",
73
- "search": "Search",
74
- "clear": "Clear",
75
- "query-builder": {
76
- "filter_is_anonymous": "Account type",
77
- "filter_is_anonymous_value_false": "Registered",
78
- "filter_is_anonymous_value_true": "Guest",
79
- "filter_email": "Email",
80
- "add_or_clause": "Add OR clause",
81
- "add_value": "Add value",
82
- "date": "{{value, date}}",
83
- "delete": "Delete",
84
- "field": "Field",
85
- "hidden": "Hidden",
86
- "is_defined_false": "Not defined",
87
- "is_defined_true": "Defined",
88
- "name": "Name",
89
- "operator_equal": "Equal",
90
- "operator_greaterthan": "Greater than",
91
- "operator_greaterthanorequal": "Greater than or equal",
92
- "operator_in": "One of",
93
- "operator_isdefined": "Is defined",
94
- "operator_lessthan": "Less than",
95
- "operator_lessthanorequal": "Less than or equal",
96
- "operator_not": "Not equal",
97
- "or": "Or",
98
- "query_builder_group": "Group of filters",
99
- "query_builder_rule": "Filter",
100
- "range_from": "From",
101
- "range_to": "To",
102
- "type": "Type",
103
- "type_any": "Field of unknown type",
104
- "type_attribute": "Key-value resource",
105
- "type_date": "Date field",
106
- "type_here": "Type here...",
107
- "type_number": "Numeric field",
108
- "type_string": "Text field",
109
- "value": "Value"
110
- },
111
- "pagination": {
112
- "search_button_text": "Search",
113
- "first": "First",
114
- "last": "Last",
115
- "next": "Next",
116
- "pagination": "{{from}}-{{to}} out of {{total}}",
117
- "previous": "Previous",
118
- "card": {
119
- "spinner": {
120
- "loading_busy": "Loading",
121
- "loading_empty": "No customers found",
122
- "loading_error": "Unknown error"
123
- }
62
+ "helper_text": "Use this field to store the email for a customer who may not have an account yet."
63
+ }
64
+ },
65
+ "customer-uri": {
66
+ "label": "Customer",
67
+ "helper_text": "",
68
+ "clear": "Clear",
69
+ "view": "View",
70
+ "copy-id": {
71
+ "failed_to_copy": "Failed to copy",
72
+ "click_to_copy": "Copy ID",
73
+ "copying": "Copying...",
74
+ "done": "Copied"
75
+ },
76
+ "dialog": {
77
+ "cancel": "Cancel",
78
+ "close": "Close",
79
+ "header": "Select an account",
80
+ "selection": {
81
+ "label": "Customers",
82
+ "helper_text": "",
83
+ "search": "Search",
84
+ "clear": "Clear",
85
+ "query-builder": {
86
+ "filter_is_anonymous": "Account type",
87
+ "filter_is_anonymous_value_false": "Registered",
88
+ "filter_is_anonymous_value_true": "Guest",
89
+ "filter_email": "Email",
90
+ "add_or_clause": "Add OR clause",
91
+ "add_value": "Add value",
92
+ "date": "{{value, date}}",
93
+ "delete": "Delete",
94
+ "field": "Field",
95
+ "hidden": "Hidden",
96
+ "is_defined_false": "Not defined",
97
+ "is_defined_true": "Defined",
98
+ "name": "Name",
99
+ "operator_equal": "Equal",
100
+ "operator_greaterthan": "Greater than",
101
+ "operator_greaterthanorequal": "Greater than or equal",
102
+ "operator_in": "One of",
103
+ "operator_isdefined": "Is defined",
104
+ "operator_lessthan": "Less than",
105
+ "operator_lessthanorequal": "Less than or equal",
106
+ "operator_not": "Not equal",
107
+ "or": "Or",
108
+ "query_builder_group": "Group of filters",
109
+ "query_builder_rule": "Filter",
110
+ "range_from": "From",
111
+ "range_to": "To",
112
+ "type": "Type",
113
+ "type_any": "Field of unknown type",
114
+ "type_attribute": "Key-value resource",
115
+ "type_date": "Date field",
116
+ "type_here": "Type here...",
117
+ "type_number": "Numeric field",
118
+ "type_string": "Text field",
119
+ "value": "Value"
120
+ },
121
+ "pagination": {
122
+ "search_button_text": "Search",
123
+ "first": "First",
124
+ "last": "Last",
125
+ "next": "Next",
126
+ "pagination": "{{from}}-{{to}} out of {{total}}",
127
+ "previous": "Previous",
128
+ "card": {
129
+ "spinner": {
130
+ "loading_busy": "Loading",
131
+ "loading_empty": "No customers found",
132
+ "loading_error": "Unknown error"
124
133
  }
125
134
  }
126
135
  }
127
136
  }
128
137
  },
129
- "customer-email": {
130
- "label": "Customer email",
131
- "placeholder": "Not set",
132
- "helper_text": "Use this field to store the email for a customer who may not have an account yet."
138
+ "card": {
139
+ "spinner": {
140
+ "loading_busy": "Loading",
141
+ "loading_empty": "Not set click to select",
142
+ "loading_error": "Unknown error"
143
+ }
133
144
  }
134
145
  },
135
146
  "billing": {
@@ -535,42 +535,10 @@
535
535
  "label": "Item option restrictions",
536
536
  "helper_text": "This restricts the usage of a coupon code based on an item option's name and value. When defined, the coupon will only apply to items with the specified option name and value. Wildcards are allowed.",
537
537
  "v8n_too_long": "Unfortunately we are unable to store that many item option restrictions at the moment. Please reduce the number of rules in this section until this message disappears.",
538
- "query-builder": {
539
- "add_or_clause": "Add OR clause",
540
- "add_value": "Add option value",
541
- "code": "Code",
542
- "date": "{{value, date}}",
543
- "date_created": "Created on",
544
- "date_modified": "Last updated on",
545
- "delete": "Delete",
546
- "field": "Option name",
547
- "hidden": "Hidden",
548
- "is_defined_false": "Not defined",
549
- "is_defined_true": "Defined",
550
- "name": "Name",
551
- "operator_equal": "Equal",
552
- "operator_greaterthan": "Greater than",
553
- "operator_greaterthanorequal": "Greater than or equal",
554
- "operator_in": "One of",
555
- "operator_isdefined": "Is defined",
556
- "operator_lessthan": "Less than",
557
- "operator_lessthanorequal": "Less than or equal",
558
- "operator_not": "Not equal",
559
- "or": "Or",
560
- "query_builder_group": "Group of filters",
561
- "query_builder_rule": "Filter",
562
- "range_from": "From",
563
- "range_to": "To",
564
- "type": "Type",
565
- "type_any": "Field of unknown type",
566
- "type_attribute": "Key-value resource",
567
- "type_date": "Date field",
568
- "type_here": "Type here...",
569
- "type_number": "Numeric field",
570
- "type_string": "Text field",
571
- "used_codes": "Codes used",
572
- "value": "Option value"
573
- }
538
+ "delete": "Delete",
539
+ "add_value": "Add value",
540
+ "option_name": "Option name",
541
+ "rule": "Rule"
574
542
  },
575
543
  "category-restrictions": {
576
544
  "label": "Item category restrictions",
@@ -603,15 +571,10 @@
603
571
  "add_or_clause": "Add OR clause",
604
572
  "add_value": "Add value",
605
573
  "code": "Code",
606
- "date": "{{value, date}}",
607
- "date_created": "Created on",
608
- "date_modified": "Last updated on",
609
574
  "delete": "Delete",
610
- "field": "Field",
611
- "hidden": "Hidden",
575
+ "field": "Attribute name",
612
576
  "is_defined_false": "Not defined",
613
577
  "is_defined_true": "Defined",
614
- "name": "Name",
615
578
  "operator_equal": "Equal",
616
579
  "operator_greaterthan": "Greater than",
617
580
  "operator_greaterthanorequal": "Greater than or equal",
@@ -621,19 +584,12 @@
621
584
  "operator_lessthanorequal": "Less than or equal",
622
585
  "operator_not": "Not equal",
623
586
  "or": "Or",
624
- "query_builder_group": "Group of filters",
625
- "query_builder_rule": "Filter",
626
- "range_from": "From",
627
- "range_to": "To",
587
+ "query_builder_group": "Group of rules",
588
+ "query_builder_rule": "Rule",
628
589
  "type": "Type",
629
590
  "type_any": "Field of unknown type",
630
- "type_attribute": "Key-value resource",
631
- "type_date": "Date field",
632
591
  "type_here": "Type here...",
633
- "type_number": "Numeric field",
634
- "type_string": "Text field",
635
- "used_codes": "Codes used",
636
- "value": "Value"
592
+ "value": "Attribute value"
637
593
  }
638
594
  },
639
595
  "customer-subscription-restrictions": {
@@ -0,0 +1,12 @@
1
+ import type { CSSResultArray, TemplateResult } from 'lit-element';
2
+ import { InternalEditableControl } from '../InternalEditableControl/InternalEditableControl';
3
+ declare const InternalArrayMapControl_base: typeof InternalEditableControl;
4
+ declare class InternalArrayMapControl extends InternalArrayMapControl_base {
5
+ static get styles(): CSSResultArray;
6
+ renderControl(): TemplateResult;
7
+ protected get _value(): Record<string, string[]>;
8
+ protected set _value(value: Record<string, string[]>);
9
+ private __renderRule;
10
+ private __renderInput;
11
+ }
12
+ export { InternalArrayMapControl };