@wix/patterns-fields 1.82.0 → 1.83.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 (247) hide show
  1. package/dist/cjs/components/address/input/address-input.st.css.js +3 -3
  2. package/dist/cjs/components/address/input/address-input.st.css.js.map +1 -1
  3. package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js +3 -3
  4. package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
  5. package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js +4 -4
  6. package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
  7. package/dist/cjs/components/audio/audio-player/audio-player.st.css.js +2 -2
  8. package/dist/cjs/components/audio/audio-player/audio-player.st.css.js.map +1 -1
  9. package/dist/cjs/components/color-view/cell-color-view.st.css.js +3 -3
  10. package/dist/cjs/components/color-view/cell-color-view.st.css.js.map +1 -1
  11. package/dist/cjs/components/color-view/color-view.st.css.js +4 -4
  12. package/dist/cjs/components/color-view/color-view.st.css.js.map +1 -1
  13. package/dist/cjs/components/datetime-input/date-time-input.js +11 -6
  14. package/dist/cjs/components/datetime-input/date-time-input.js.map +1 -1
  15. package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js +3 -3
  16. package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
  17. package/dist/cjs/components/document/form-document-field.st.css.js +7 -7
  18. package/dist/cjs/components/document/form-document-field.st.css.js.map +1 -1
  19. package/dist/cjs/components/exclamation/exclamation.st.css.js +5 -5
  20. package/dist/cjs/components/exclamation/exclamation.st.css.js.map +1 -1
  21. package/dist/cjs/components/field-validation-settings/field-validation-settings-input.js +450 -0
  22. package/dist/cjs/components/field-validation-settings/field-validation-settings-input.js.map +1 -0
  23. package/dist/cjs/components/field-validation-settings/field-validation-settings.uni.driver.js +24 -0
  24. package/dist/cjs/components/field-validation-settings/field-validation-settings.uni.driver.js.map +1 -0
  25. package/dist/cjs/components/field-validation-settings/index.js +16 -0
  26. package/dist/cjs/components/field-validation-settings/index.js.map +1 -0
  27. package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js +5 -5
  28. package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
  29. package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js +3 -3
  30. package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
  31. package/dist/cjs/components/index.js +6 -0
  32. package/dist/cjs/components/index.js.map +1 -1
  33. package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js +2 -2
  34. package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js.map +1 -1
  35. package/dist/cjs/components/media-control/paste-url-button.st.css.js +4 -4
  36. package/dist/cjs/components/media-control/paste-url-button.st.css.js.map +1 -1
  37. package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js +10 -10
  38. package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
  39. package/dist/cjs/components/media-image/media-image.st.css.js +4 -4
  40. package/dist/cjs/components/media-image/media-image.st.css.js.map +1 -1
  41. package/dist/cjs/components/media-image/overlays/overlay.st.css.js +3 -3
  42. package/dist/cjs/components/media-image/overlays/overlay.st.css.js.map +1 -1
  43. package/dist/cjs/components/media-loader/media-loader.st.css.js +3 -3
  44. package/dist/cjs/components/media-loader/media-loader.st.css.js.map +1 -1
  45. package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
  46. package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
  47. package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js +3 -3
  48. package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js.map +1 -1
  49. package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js +5 -5
  50. package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
  51. package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js +2 -2
  52. package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
  53. package/dist/cjs/components/reference/cell-reference-input.st.css.js +3 -3
  54. package/dist/cjs/components/reference/cell-reference-input.st.css.js.map +1 -1
  55. package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +4 -4
  56. package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
  57. package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +3 -3
  58. package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
  59. package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
  60. package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
  61. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +3 -3
  62. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
  63. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +3 -3
  64. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
  65. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
  66. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
  67. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +7 -7
  68. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
  69. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +5 -5
  70. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
  71. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +4 -4
  72. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
  73. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +18 -18
  74. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
  75. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +4 -4
  76. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
  77. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +18 -18
  78. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
  79. package/dist/cjs/components/text/text-view.st.css.js +3 -3
  80. package/dist/cjs/components/text/text-view.st.css.js.map +1 -1
  81. package/dist/cjs/exports/unidriver.js +3 -1
  82. package/dist/cjs/exports/unidriver.js.map +1 -1
  83. package/dist/cjs/exports/validations.js +7 -0
  84. package/dist/cjs/exports/validations.js.map +1 -1
  85. package/dist/cjs/styles.global.css +1 -1
  86. package/dist/cjs/types/validation.js.map +1 -1
  87. package/dist/cjs/validations/field-validation-settings.js +110 -0
  88. package/dist/cjs/validations/field-validation-settings.js.map +1 -0
  89. package/dist/cjs/validations/field-validation-settings.spec.js +209 -0
  90. package/dist/cjs/validations/field-validation-settings.spec.js.map +1 -0
  91. package/dist/esm/components/address/input/address-input.st.css.js +2 -2
  92. package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js +2 -2
  93. package/dist/esm/components/audio/audio-field/form-audio-field.st.css.js +2 -2
  94. package/dist/esm/components/audio/audio-player/audio-player.st.css.js +2 -2
  95. package/dist/esm/components/color-view/cell-color-view.st.css.js +2 -2
  96. package/dist/esm/components/color-view/color-view.st.css.js +2 -2
  97. package/dist/esm/components/datetime-input/date-time-input.js +6 -1
  98. package/dist/esm/components/datetime-input/date-time-input.js.map +1 -1
  99. package/dist/esm/components/delete-dialog/delete-dialog.st.css.js +2 -2
  100. package/dist/esm/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
  101. package/dist/esm/components/document/form-document-field.st.css.js +2 -2
  102. package/dist/esm/components/exclamation/exclamation.st.css.js +2 -2
  103. package/dist/esm/components/exclamation/exclamation.st.css.js.map +1 -1
  104. package/dist/esm/components/field-validation-settings/field-validation-settings-input.js +121 -0
  105. package/dist/esm/components/field-validation-settings/field-validation-settings-input.js.map +1 -0
  106. package/dist/esm/components/field-validation-settings/field-validation-settings.uni.driver.js +20 -0
  107. package/dist/esm/components/field-validation-settings/field-validation-settings.uni.driver.js.map +1 -0
  108. package/dist/esm/components/field-validation-settings/index.js +3 -0
  109. package/dist/esm/components/field-validation-settings/index.js.map +1 -0
  110. package/dist/esm/components/highlighted-text/highlighted-text.st.css.js +3 -3
  111. package/dist/esm/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
  112. package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js +2 -2
  113. package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
  114. package/dist/esm/components/index.js +1 -0
  115. package/dist/esm/components/index.js.map +1 -1
  116. package/dist/esm/components/media-control/cell-media-edit-shell.st.css.js +2 -2
  117. package/dist/esm/components/media-control/paste-url-button.st.css.js +2 -2
  118. package/dist/esm/components/media-control/paste-url-button.st.css.js.map +1 -1
  119. package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js +2 -2
  120. package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
  121. package/dist/esm/components/media-image/media-image.st.css.js +3 -3
  122. package/dist/esm/components/media-image/media-image.st.css.js.map +1 -1
  123. package/dist/esm/components/media-image/overlays/overlay.st.css.js +2 -2
  124. package/dist/esm/components/media-image/overlays/overlay.st.css.js.map +1 -1
  125. package/dist/esm/components/media-loader/media-loader.st.css.js +2 -2
  126. package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
  127. package/dist/esm/components/multi-document/cell-multi-document-edit.st.css.js +2 -2
  128. package/dist/esm/components/multi-document/cell-multi-document-edit.st.css.js.map +1 -1
  129. package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js +2 -2
  130. package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
  131. package/dist/esm/components/reference/cell-multi-reference-input.st.css.js +2 -2
  132. package/dist/esm/components/reference/cell-reference-input.st.css.js +2 -2
  133. package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +2 -2
  134. package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +2 -2
  135. package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
  136. package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
  137. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +2 -2
  138. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +2 -2
  139. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
  140. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
  141. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +2 -2
  142. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +2 -2
  143. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
  144. package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +2 -2
  145. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +2 -2
  146. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
  147. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +2 -2
  148. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
  149. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +2 -2
  150. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
  151. package/dist/esm/components/text/text-view.st.css.js +2 -2
  152. package/dist/esm/components/text/text-view.st.css.js.map +1 -1
  153. package/dist/esm/exports/unidriver.js +1 -0
  154. package/dist/esm/exports/unidriver.js.map +1 -1
  155. package/dist/esm/exports/validations.js +1 -0
  156. package/dist/esm/exports/validations.js.map +1 -1
  157. package/dist/esm/styles.global.css +1 -1
  158. package/dist/esm/validations/field-validation-settings.js +98 -0
  159. package/dist/esm/validations/field-validation-settings.js.map +1 -0
  160. package/dist/esm/validations/field-validation-settings.spec.js +132 -0
  161. package/dist/esm/validations/field-validation-settings.spec.js.map +1 -0
  162. package/dist/types/components/datetime-input/date-time-input.d.ts.map +1 -1
  163. package/dist/types/components/delete-dialog/delete-dialog.st.css.d.ts.map +1 -1
  164. package/dist/types/components/exclamation/exclamation.st.css.d.ts.map +1 -1
  165. package/dist/types/components/field-validation-settings/field-validation-settings-input.d.ts +8 -0
  166. package/dist/types/components/field-validation-settings/field-validation-settings-input.d.ts.map +1 -0
  167. package/dist/types/components/field-validation-settings/field-validation-settings.uni.driver.d.ts +307 -0
  168. package/dist/types/components/field-validation-settings/field-validation-settings.uni.driver.d.ts.map +1 -0
  169. package/dist/types/components/field-validation-settings/index.d.ts +3 -0
  170. package/dist/types/components/field-validation-settings/index.d.ts.map +1 -0
  171. package/dist/types/components/highlighted-text/highlighted-text.st.css.d.ts.map +1 -1
  172. package/dist/types/components/image/thumbnail-replace-overlay.st.css.d.ts.map +1 -1
  173. package/dist/types/components/index.d.ts +1 -0
  174. package/dist/types/components/index.d.ts.map +1 -1
  175. package/dist/types/components/media-control/paste-url-button.st.css.d.ts.map +1 -1
  176. package/dist/types/components/media-gallery/form-media-gallery-field.st.css.d.ts.map +1 -1
  177. package/dist/types/components/media-image/media-image.st.css.d.ts.map +1 -1
  178. package/dist/types/components/media-image/overlays/overlay.st.css.d.ts.map +1 -1
  179. package/dist/types/components/multi-document/cell-multi-document-edit.st.css.d.ts.map +1 -1
  180. package/dist/types/components/multi-document/multi-document-input/form-multi-document.st.css.d.ts.map +1 -1
  181. package/dist/types/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.d.ts.map +1 -1
  182. package/dist/types/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.d.ts.map +1 -1
  183. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.d.ts.map +1 -1
  184. package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.d.ts.map +1 -1
  185. package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.d.ts.map +1 -1
  186. package/dist/types/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.d.ts.map +1 -1
  187. package/dist/types/components/text/text-view.st.css.d.ts.map +1 -1
  188. package/dist/types/exports/unidriver.d.ts +1 -0
  189. package/dist/types/exports/unidriver.d.ts.map +1 -1
  190. package/dist/types/exports/validations.d.ts +1 -0
  191. package/dist/types/exports/validations.d.ts.map +1 -1
  192. package/dist/types/types/validation.d.ts +67 -1
  193. package/dist/types/types/validation.d.ts.map +1 -1
  194. package/dist/types/validations/field-validation-settings.d.ts +10 -0
  195. package/dist/types/validations/field-validation-settings.d.ts.map +1 -0
  196. package/dist/types/validations/field-validation-settings.spec.d.ts +2 -0
  197. package/dist/types/validations/field-validation-settings.spec.d.ts.map +1 -0
  198. package/package.json +6 -6
  199. package/src/__tests__/components/datetime-input/date-time-input.spec.tsx +99 -0
  200. package/src/__tests__/components/field-validation-settings/field-validation-settings-input.spec.tsx +366 -0
  201. package/src/__tests__/exports/field-validation-settings.spec.ts +27 -0
  202. package/src/components/address/input/address-input.st.css.ts +2 -2
  203. package/src/components/audio/actions/actions-menu/actions-menu.st.css.ts +2 -2
  204. package/src/components/audio/audio-field/form-audio-field.st.css.ts +2 -2
  205. package/src/components/audio/audio-player/audio-player.st.css.ts +2 -2
  206. package/src/components/color-view/cell-color-view.st.css.ts +2 -2
  207. package/src/components/color-view/color-view.st.css.ts +2 -2
  208. package/src/components/datetime-input/date-time-input.tsx +8 -1
  209. package/src/components/delete-dialog/delete-dialog.st.css.ts +2 -2
  210. package/src/components/document/form-document-field.st.css.ts +2 -2
  211. package/src/components/exclamation/exclamation.st.css.ts +2 -2
  212. package/src/components/field-validation-settings/field-validation-settings-input.tsx +384 -0
  213. package/src/components/field-validation-settings/field-validation-settings.uni.driver.ts +60 -0
  214. package/src/components/field-validation-settings/index.ts +2 -0
  215. package/src/components/highlighted-text/highlighted-text.st.css.ts +3 -3
  216. package/src/components/image/thumbnail-replace-overlay.st.css.ts +2 -2
  217. package/src/components/index.ts +1 -0
  218. package/src/components/media-control/cell-media-edit-shell.st.css.ts +2 -2
  219. package/src/components/media-control/paste-url-button.st.css.ts +2 -2
  220. package/src/components/media-gallery/form-media-gallery-field.st.css.ts +2 -2
  221. package/src/components/media-image/media-image.st.css.ts +3 -3
  222. package/src/components/media-image/overlays/overlay.st.css.ts +2 -2
  223. package/src/components/media-loader/media-loader.st.css.ts +2 -2
  224. package/src/components/media-tag/web-media-tag/media-tag.st.css.ts +2 -2
  225. package/src/components/multi-document/cell-multi-document-edit.st.css.ts +2 -2
  226. package/src/components/multi-document/multi-document-input/form-multi-document.st.css.ts +2 -2
  227. package/src/components/reference/cell-multi-reference-input.st.css.ts +2 -2
  228. package/src/components/reference/cell-reference-input.st.css.ts +2 -2
  229. package/src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts +2 -2
  230. package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts +2 -2
  231. package/src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts +2 -2
  232. package/src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts +2 -2
  233. package/src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts +2 -2
  234. package/src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts +2 -2
  235. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts +2 -2
  236. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts +2 -2
  237. package/src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.ts +2 -2
  238. package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts +2 -2
  239. package/src/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.ts +2 -2
  240. package/src/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.ts +2 -2
  241. package/src/components/text/text-view.st.css.ts +2 -2
  242. package/src/exports/unidriver.ts +1 -0
  243. package/src/exports/validations.ts +2 -0
  244. package/src/styles.global.css +1 -1
  245. package/src/types/validation.ts +77 -1
  246. package/src/validations/field-validation-settings.spec.ts +180 -0
  247. package/src/validations/field-validation-settings.ts +144 -0
@@ -1 +1 @@
1
- .addressinput2777595461__tableAddressInput{height:36px!important;margin-left:-1px;display:flex!important;align-items:center;width:100%}.addressinput2777595461__tableAddressInput>div{padding:0!important;width:100%}.addressinput2777595461__tableAddressInput:focus-within{margin-left:2px}.actionsmenu3604226520__action{margin-left:calc(var(--wds-space-100, 6px)*-1)}.formaudiofield2808568682__addItem{height:120px!important;box-sizing:border-box}.formaudiofield2808568682__addItem:focus-within{box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wds-color-blue-300, var(--wsr-color-B30)));border-radius:var(--wds-border-radius-400, 8px)}.formaudiofield2808568682__addItem.formaudiofield2808568682--disabled{pointer-events:auto!important}.formaudiofield2808568682__addItem.formaudiofield2808568682--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formaudiofield2808568682__mediaTitle{line-height:18px!important}.audioplayer2394194815__root{width:fit-content;z-index:1000;position:fixed!important;bottom:42px;right:48px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.cellcolorview2853374581__hashPrefix{color:var(--wsr-color-D40, #868aa5);font-size:14px;font-weight:300;line-height:1}.colorview1965999913__view{width:100%}.colorview1965999913__fillPreview{flex-shrink:0}.colorview1965999913__view .colorview1965999913__fillPreview{width:18px;height:18px;min-width:18px!important;min-height:18px!important}.deletedialog3537787483__layout{max-width:510px!important}.formdocumentfield908933936__viewWrapper{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formdocumentfield908933936__viewWrapper:hover{background:var(--wds-color-blue-500, var(--wsr-color-B50));cursor:pointer}.formdocumentfield908933936__textWidth{max-width:calc(100% - 196px)}.formdocumentfield908933936__documentLoader{padding-top:21px;padding-bottom:21px}.formdocumentfield908933936__addDocument{padding-top:17px!important;padding-bottom:17px!important}.formdocumentfield908933936__addDocument.formdocumentfield908933936--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formdocumentfield908933936__addItemWrapper:focus-within{box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wds-color-blue-300, var(--wsr-color-B30)));border-radius:var(--wds-border-radius-400, calc(2px * 4))}.exclamation1097267001__exclamation{display:flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:3px;cursor:pointer}.exclamation1097267001__exclamation.exclamation1097267001---type-7-warning:not(.exclamation1097267001--customSize),.exclamation1097267001__exclamation.exclamation1097267001---type-5-error:not(.exclamation1097267001--customSize){width:24px;height:24px}.exclamation1097267001__exclamation.exclamation1097267001---type-7-warning{color:var(--wds-color-fill-warning-primary)}.exclamation1097267001__exclamation.exclamation1097267001---type-5-error{color:var(--wds-color-fill-destructive-primary)}.exclamation1097267001__actions{display:flex;flex-direction:column}.exclamation1097267001__action{white-space:normal!important;height:auto!important;text-align:left;gap:6px}.exclamation1097267001__action+.exclamation1097267001__action{margin-top:6px}.exclamation1097267001__action.exclamation1097267001--accented{color:var(--wds-color-blue-100)}.exclamation1097267001__action.exclamation1097267001--accented:hover{color:var(--wds-color-blue-200)}.highlightedtext967560644__root.highlightedtext967560644--highlightedBackground{animation:highlightedtext967560644__highlighted 150ms ease-out 1 forwards}.highlightedtext967560644__substring.highlightedtext967560644--isHighlighted{animation:highlightedtext967560644__highlighted-match 150ms ease-out 50ms 1 forwards}@keyframes highlightedtext967560644__highlighted{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-400, var(--wsr-color-Y40))}}@keyframes highlightedtext967560644__highlighted-match{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-200, var(--wsr-color-Y20))}}.thumbnailreplaceoverlay4283151137__root{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);border-radius:3px}.thumbnailreplaceoverlay4283151137__icon{color:#fff;width:18px;height:18px}.cellmediaeditshell4287288142__root{width:100%;height:100%}.pasteurlbutton126272951__root{margin-top:6px}.pasteurlbutton126272951__iconButtonTooltip{height:max-content}.pasteurlbutton126272951__iconButton{width:24px;height:24px}.formmediagalleryfield3927830186__container{display:flex;min-height:128px;max-height:259px}.formmediagalleryfield3927830186__viewBox{display:flex;height:100%;width:100%;flex-wrap:wrap}.formmediagalleryfield3927830186__addItemWrapper{height:128px;width:100%;box-sizing:border-box}.formmediagalleryfield3927830186__addItem{box-sizing:border-box}.formmediagalleryfield3927830186__overlay{width:initial!important;min-width:382px!important}.formmediagalleryfield3927830186__image.formmediagalleryfield3927830186--withMarginRight{margin-right:3px}.formmediagalleryfield3927830186__image.formmediagalleryfield3927830186--withMarginTop{margin-top:3px}.formmediagalleryfield3927830186__previewImage{max-height:calc(100% - 12px)!important}.formmediagalleryfield3927830186__previewVideo{border-radius:8px;max-width:100%;max-height:calc(100% - 12px)!important}.mediaimage132335048__root{display:flex;align-items:center;flex-shrink:0;position:relative;box-sizing:border-box}.mediaimage132335048__root.mediaimage132335048--error{--mediaimage132335048-from:calc(50% - 0.5px);--mediaimage132335048-to:calc(50% + 0.5px);background-image:linear-gradient(to bottom right,transparent var(--mediaimage132335048-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage132335048-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage132335048-to),transparent var(--mediaimage132335048-to))}.mediaimage132335048__root.mediaimage132335048--error>*{opacity:0}.overlay1775946498__iconOverlay{position:absolute;color:var(--wds-color-white, var(--wsr-color-D80, #FFFFFF));background-color:transparent;filter:drop-shadow(0 1px 1px rgba(22,45,61,.6));-webkit-filter:drop-shadow(0 1px 1px rgba(22,45,61,.6))}.overlay1775946498__iconOverlay.overlay1775946498---size-5-small{width:20px;height:20px}.overlay1775946498__iconOverlay.overlay1775946498---size-6-medium{width:24px;height:24px}.overlay1775946498__iconOverlay.overlay1775946498---size-5-large{width:28px;height:28px}.overlay1775946498__iconOverlay.overlay1775946498---placement-7-topLeft{top:2px;left:2px}.overlay1775946498__iconOverlay.overlay1775946498---placement-10-bottomLeft{bottom:2px;left:2px}.medialoader1023843162__loader{border-radius:6px}.medialoader1023843162__loader.medialoader1023843162--isDashed{border:dashed 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.medialoader1023843162__loader.medialoader1023843162--isSolid{border:solid 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.mediatag2701854040__root{box-sizing:border-box;padding:3px 6px 3px 3px;border-radius:3px;max-height:24px;min-width:54px;max-width:100%;background-color:var(--wds-color-blue-400, var(--wsr-color-B40))}.cellmultidocumentedit3893077653__chipTrigger{display:flex;align-items:center;min-width:0;max-width:100%;margin:0;padding:0;border:0;background:0 0;font:inherit;color:inherit;text-align:inherit;cursor:pointer}.formmultidocument736770500__viewRoot{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formmultidocument736770500__singleViewWrapper{border-radius:0;border-bottom:1px solid var(--wds-color-neutral-600, var(--wsr-color-D60));background-color:transparent!important}.formmultidocument736770500__viewRoot>div:first-child .formmultidocument736770500__singleViewWrapper{border-top-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-top-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.formmultidocument736770500__singleViewWrapper:hover{background-color:var(--wds-color-blue-500, var(--wsr-color-B50))!important}.formmultidocument736770500__singleViewWrapper:focus-visible{border-bottom:1px solid transparent;position:relative;z-index:1}.formmultidocument736770500__addDocumentButton{border-bottom-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-bottom-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.formmultidocument736770500__addDocumentButton:focus-within{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-bottom-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.cellmultireferenceinput4055728602__root{width:100%;box-sizing:border-box;--wds-input-border-color:transparent;--wds-input-border-color-hover:transparent;--wds-input-border-color-focus:transparent;--wds-input-background-fill-default:transparent;--wds-input-background-fill-hover:transparent;--wds-input-shadow-focus-standard:0 0 0 0 transparent}.cellreferenceinput786408454__root{width:100%;height:100%;display:flex;align-items:center}.cellreferenceinput786408454__autocomplete{width:100%}.richcontentdefaultvalueinput2471303288__richContentEditorContainer .richcontentdefaultvalueinput2471303288__editor{max-height:calc(40vh - var(--topToolbarHeight) - var(--bottomToolbarHeight))}.richcontentforminput3353825129__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-input-border-color, var(--wsr-color-B40, #D6E6FE));border-radius:var(--wds-input-border-radius-default-medium, var(--wsr-border-radius-06, 6px))}.richcontentforminput3353825129__root:focus-within{border:1px solid var(--wds-input-border-color-focus, var(--wsr-color-B10, #116DFF));box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wsr-color-F00, #A6D0FF))}.richcontentforminput3353825129__root .richcontentforminput3353825129__editor{overflow-y:auto;max-height:calc(80vh - var(--topToolbarHeight) - var(--bottomToolbarHeight))}.richcontentformreadonlyinput2209035974__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-color-black-600);border-radius:var(--wds-border-radius-300)}.richcontentformreadonlyinput2209035974__root:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.fullscreenmodal3529452897__modalContent{display:flex;flex-direction:column;position:relative;height:100%;width:782px;background-color:var(--wds-color-white, var(--wsr-color-D80, #ffffff));border-radius:var(--wds-border-radius-300, var(--wsr-border-radius-06, 6px));margin-top:24px}.publishloader119823752__publishLoader{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--wds-color-white);z-index:5000;border-radius:inherit}.togglefullscreenbutton1890455040__root{z-index:5;box-sizing:border-box;position:absolute;right:0;top:calc(50% - 16px)!important;padding-right:3px}.togglefullscreenbutton1890455040__root button{border-radius:6px!important}.richcontenteditor3374597755__root{position:relative;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)}.richcontenteditor3374597755__root,.richcontenteditor3374597755__toolbarContainer,.richcontenteditor3374597755__footerToolbarContainer{width:100%;box-sizing:border-box}.richcontenteditor3374597755__toolbarContainer div{box-sizing:border-box}.richcontenteditor3374597755__toolbarAndFullScreenButtonWrapper{display:flex;position:relative}.richcontenteditor3374597755__editor{box-sizing:border-box;padding:36px 24px 36px 55px}.richcontenteditor3374597755__modalEditor{display:flex;flex-direction:column;flex:1;height:100%}.richcontenteditor3374597755__modalEditor .richcontenteditor3374597755__editor{overflow-y:auto;flex:1;min-width:592px;box-sizing:border-box}.richcontenteditor3374597755__modalEditor .richcontenteditor3374597755__footerToolbarContainer{margin-top:9px}.richcontenteditor3374597755__toolbarContainer button[data-hook~=text-button-headings]>span{display:inline-flex;padding-inline-end:3px!important}.richcontenteditor3374597755__toolbarContainer button[data-hook~=text-button-ai]>span{padding-inline-end:9px!important}.richcontenttoolbar935607166__toolbar{border-top:1px solid rgba(51,51,51,.1);z-index:2;margin-right:auto;padding-left:6px;margin-left:auto;position:relative;height:40px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box}.richcontenttoolbar935607166__toolbarButton{line-height:40px;background:0 0;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;margin:0 5px 0 0}.richcontenttoolbar935607166__toolbarButton:disabled{color:graytext}.richcontenttoolbar935607166__separator{width:1px;height:20px;margin:0 8px 0 3px;background:rgba(51,51,51,.1)}.richcontenttoolbar935607166__toolbar label{padding:0 8px}.richcontentviewer3225931309__root{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:36px}.richcontentviewer3225931309__root.richcontentviewer3225931309--isFullScreen{padding:12px 24px}.richcontentviewer3225931309__root:not(.richcontentviewer3225931309--isFullScreen){padding:6px 24px 6px 12px}.richcontentviewer3225931309__root ToggleButton{margin:0;padding:0;border:0;position:absolute;top:2px!important;right:2px;width:30px;height:30px}.richcontentviewer3225931309__viewer{height:calc(100% - 36px);width:100%}.richcontentviewer3225931309__modalViewer{min-width:592px;overflow:auto}.richtexteditor3804349384__root{width:100%;box-sizing:border-box;outline:0;overflow:hidden;border-radius:var(--wds-input-border-radius-default-medium, var(--wsr-border-radius-06, 6px))}.richtexteditor3804349384__root.richtexteditor3804349384---border-4-none{border:0}.richtexteditor3804349384__root.richtexteditor3804349384---border-8-standard{border:1px solid var(--wds-input-border-color, var(--wsr-color-B40, #D6E6FE))}.richtexteditor3804349384__root.richtexteditor3804349384---border-8-standard:focus,.richtexteditor3804349384__root.richtexteditor3804349384---border-8-standard:focus-within{border:1px solid var(--wds-input-border-color-focus, var(--wsr-color-B10, #116DFF));box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wsr-color-F00, #A6D0FF))}.richtexteditor3804349384__root.richtexteditor3804349384---border-8-standard.richtexteditor3804349384---status-5-error{border:1px solid var(--wds-color-border-destructive-secondary-active, var(--wsr-color-R10, #E62214))}.richtexteditor3804349384__root.richtexteditor3804349384---border-8-standard.richtexteditor3804349384---status-5-error:focus,.richtexteditor3804349384__root.richtexteditor3804349384---border-8-standard.richtexteditor3804349384---status-5-error:focus-within{border:1px solid var(--wds-color-border-destructive-secondary-active, var(--wsr-color-R10, #E62214));box-shadow:var(--wds-input-shadow-focus-destructive, 0 0 0 3px var(--wsr-color-R40, #FBD0CD))}.richtexteditor3804349384__root.richtexteditor3804349384---border-8-standard.richtexteditor3804349384---status-7-warning{border:1px solid var(--wds-color-border-warning-secondary-active, var(--wsr-color-Y10, #FFB700))}.richtexteditor3804349384__root.richtexteditor3804349384---border-8-standard.richtexteditor3804349384---status-7-warning:focus,.richtexteditor3804349384__root.richtexteditor3804349384---border-8-standard.richtexteditor3804349384---status-7-warning:focus-within{border:1px solid var(--wds-color-border-warning-secondary-active, var(--wsr-color-Y10, #FFB700));box-shadow:var(--wds-input-shadow-focus-warning, 0 0 0 3px var(--wsr-color-Y40, #FFE2A5))}.richtexteditor3804349384__nativeInput{position:absolute;opacity:0;padding:0;margin:0;border:0;width:0;height:0}.richtexteditor3804349384__editor{height:auto;line-height:auto;display:flex;width:100%;height:100%;min-height:234px;overflow:hidden;box-sizing:border-box;flex-direction:row;border-radius:var(--wds-input-border-radius-default-medium, var(--wsr-border-radius-06, 6px))}.richtexteditor3804349384__editor.richtexteditor3804349384--isFullScreen{max-width:782px;min-width:582px;background:var(--wds-color-black-700)}.richtexteditor3804349384__editor:not(.richtexteditor3804349384--isFullScreen){max-height:80vh}.richtexteditor3804349384__editor>div{flex:1;max-width:100%}.toolbar1113735627__root{padding:12px 18px;display:flex;border-bottom:1px solid var(--wds-color-blue-400, var(--wsr-color-B40, #d6dcff));background:var(--wds-color-white, var(--wsr-color-D80, #ffffff));align-items:center}.toolbar1113735627__item{display:flex;margin-right:12px}.toolbar1113735627__item svg,.toolbar1113735627__item svg path,.toolbar1113735627__item svg text{color:inherit;fill:currentColor}.toolbar1113735627__separator{display:inline-flex;margin-right:12px;border-left:1px solid #ddd;align-self:stretch}.toolbar1113735627__clearFormatting{margin-left:auto}.toolbar1113735627__fullScreen{margin-right:0}.toolbar1113735627__dropdownItemContent{height:36px;width:100%;display:flex;gap:12px;justify-content:space-between;align-items:center}.toolbar1113735627__dropdownItemContent.toolbar1113735627--selected .toolbar1113735627__dropdownItemTitle,.toolbar1113735627__dropdownItemContent.toolbar1113735627--selected .toolbar1113735627__dropdownItemSubtitle{color:var(--wds-color-white)!important}.toolbar1113735627__dropdownItemSubtitle{color:var(--wds-color-black-400)!important;padding-right:12px;flex-shrink:0}.toolbar1113735627__dropdownHeaderOne{font-weight:var(--wds-font-weight-bold)!important;font-size:36px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, var(--wsr-font-family, Madefor))!important}.toolbar1113735627__dropdownHeaderTwo{font-weight:var(--wds-font-weight-bold)!important;font-size:32px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar1113735627__dropdownHeaderThree{font-weight:var(--wds-font-weight-medium)!important;font-size:28px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar1113735627__dropdownHeaderFour{font-weight:var(--wds-font-weight-bold)!important;font-size:24px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar1113735627__dropdownHeaderFive{font-weight:var(--wds-font-weight-bold)!important;font-size:22px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar1113735627__dropdownHeaderSix{font-weight:var(--wds-font-weight-medium)!important;font-size:20px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar1113735627__dropdownParagraphOne{font-weight:var(--wds-font-weight-medium)!important;font-size:18px!important;line-height:1.33!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar1113735627__dropdownNormalText{font-weight:var(--wds-font-weight-medium)!important;font-size:var(--wds-font-size-500)!important;line-height:var(--wds-font-line-height-300)!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar1113735627__dropdownParagraphThree{font-weight:var(--wds-font-weight-medium)!important;font-size:14px!important;line-height:1.29!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.textview4013369427__textView::after{content:"";display:block}.richeditor138603824__root{display:flex;flex-direction:column;font-weight:var(--wds-font-weight-medium, 500);font-size:var(--wds-font-size-500);line-height:var(--wds-font-line-height-300);font-family:var(--wds-font-family-default, var(--wsr-font-family, Madefor))}.richeditor138603824__editor{box-sizing:border-box;overflow:auto;display:flex;flex-direction:column;flex:1;cursor:text;color:var(--wds-color-black-100, var(--wsr-color-D10, #131720));background:var(--wds-color-black-700, var(--wsr-color-D70, #edeef2))}.richeditor138603824__editor .DraftEditor-root{width:100%;height:100%}.richeditor138603824__editor .DraftEditor-root [data-contents]{overflow:auto}.richeditor138603824__editor .DraftEditor-editorContainer{display:flex;min-height:100%;background:#fff}.richeditor138603824__editor .public-DraftEditor-content{padding:12px 24px 24px;min-height:100%;width:100%;box-sizing:border-box}.richeditor138603824__editor .public-DraftEditor-content ol,.richeditor138603824__editor .public-DraftEditor-content ul{display:flex;flex-direction:column;padding:0}.richeditor138603824__editor .public-DraftEditor-content a,.richeditor138603824__editor .public-DraftEditor-content a:visited{color:inherit;text-decoration:none}.richeditor138603824__header-one:not(li),.richeditor138603824__header-two:not(li),.richeditor138603824__header-three:not(li),.richeditor138603824__header-four:not(li),.richeditor138603824__header-five:not(li),.richeditor138603824__header-six:not(li){margin-block:0;margin:0}.richeditor138603824__header-one,.richeditor138603824__editor li.richeditor138603824__header-one .public-DraftStyleDefault-block{font:var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__header-two,.richeditor138603824__editor li.richeditor138603824__header-two .public-DraftStyleDefault-block{font:var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__header-three,.richeditor138603824__editor li.richeditor138603824__header-three .public-DraftStyleDefault-block{font:var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__header-four,.richeditor138603824__editor li.richeditor138603824__header-four .public-DraftStyleDefault-block{font:var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__header-five,.richeditor138603824__editor li.richeditor138603824__header-five .public-DraftStyleDefault-block{font:var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__header-six,.richeditor138603824__editor li.richeditor138603824__header-six .public-DraftStyleDefault-block{font:var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__paragraph-one,.richeditor138603824__editor li.richeditor138603824__paragraph-one .public-DraftStyleDefault-block{font:var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__unstyled,.richeditor138603824__editor li.richeditor138603824__unstyled .public-DraftStyleDefault-block{font:var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__paragraph-three,.richeditor138603824__editor li.richeditor138603824__paragraph-three .public-DraftStyleDefault-block{font:var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__editor li.richeditor138603824__header-one:first-child~li{font:var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__editor li.richeditor138603824__header-one:first-child~li::marker{line-height:var(--rt-h1-fontSize, 72px)}.richeditor138603824__editor li.richeditor138603824__header-two:first-child~li{font:var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__editor li.richeditor138603824__header-two:first-child~li::marker{line-height:var(--rt-h2-fontSize, 42px)}.richeditor138603824__editor li.richeditor138603824__header-three:first-child~li{font:var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__editor li.richeditor138603824__header-three:first-child~li::marker{line-height:var(--rt-h3-fontSize, 38px)}.richeditor138603824__editor li.richeditor138603824__header-four:first-child~li{font:var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__editor li.richeditor138603824__header-four:first-child~li::marker{line-height:var(--rt-h4-fontSize, 34px)}.richeditor138603824__editor li.richeditor138603824__header-five:first-child~li{font:var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__editor li.richeditor138603824__header-five:first-child~li::marker{line-height:var(--rt-h5-fontSize, 28px)}.richeditor138603824__editor li.richeditor138603824__header-six:first-child~li{font:var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__editor li.richeditor138603824__header-six:first-child~li::marker{line-height:var(--rt-h6-fontSize, 22px)}.richeditor138603824__editor li.richeditor138603824__paragraph-one:first-child~li{font:var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__editor li.richeditor138603824__unstyled:first-child~li{font:var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor138603824__editor li.richeditor138603824__paragraph-three:first-child~li{font:var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth0{margin-inline-start:2ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth1{margin-inline-start:4ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth2{margin-inline-start:6ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth3{margin-inline-start:8ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth4{margin-inline-start:10ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth0:first-child{margin-inline-start:2ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0{margin-inline-start:2ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+10){margin-inline-start:3ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+100){margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+1000){margin-inline-start:5ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth1:first-child{margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1{margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+10){margin-inline-start:5ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+100){margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+1000){margin-inline-start:7ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth2:first-child{margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2{margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+10){margin-inline-start:7ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+100){margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+1000){margin-inline-start:9ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth3:first-child{margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3{margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+10){margin-inline-start:9ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+100){margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+1000){margin-inline-start:11ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth4:first-child{margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4{margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+10){margin-inline-start:11ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+100){margin-inline-start:12ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+1000){margin-inline-start:13ch}.richeditor138603824__align-left{text-align:left;align-self:flex-start}.richeditor138603824__align-right{text-align:right;align-self:flex-end}.richeditor138603824__align-center{text-align:center;align-self:center}.richeditor138603824__align-justify{text-align:justify;align-self:stretch}.richeditor138603824__withMargin{display:inline-block}.richeditor138603824__dir-rtl,.richeditor138603824__editor .public-DraftStyleDefault-rtl{direction:rtl}.richeditor138603824__editor .public-DraftStyleDefault-listRTL{direction:rtl;text-align:right;max-width:100%}
1
+ .addressinput1375149515__tableAddressInput{height:36px!important;margin-left:-1px;display:flex!important;align-items:center;width:100%}.addressinput1375149515__tableAddressInput>div{padding:0!important;width:100%}.addressinput1375149515__tableAddressInput:focus-within{margin-left:2px}.actionsmenu3707053799__action{margin-left:calc(var(--wds-space-100, 6px)*-1)}.formaudiofield1598691903__addItem{height:120px!important;box-sizing:border-box}.formaudiofield1598691903__addItem:focus-within{box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wds-color-blue-300, var(--wsr-color-B30)));border-radius:var(--wds-border-radius-400, 8px)}.formaudiofield1598691903__addItem.formaudiofield1598691903--disabled{pointer-events:auto!important}.formaudiofield1598691903__addItem.formaudiofield1598691903--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formaudiofield1598691903__mediaTitle{line-height:18px!important}.audioplayer1627877349__root{width:fit-content;z-index:1000;position:fixed!important;bottom:42px;right:48px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.cellcolorview3348088318__hashPrefix{color:var(--wsr-color-D40, #868aa5);font-size:14px;font-weight:300;line-height:1}.colorview2640372915__view{width:100%}.colorview2640372915__fillPreview{flex-shrink:0}.colorview2640372915__view .colorview2640372915__fillPreview{width:18px;height:18px;min-width:18px!important;min-height:18px!important}.deletedialog591839243__layout{max-width:510px!important}.formdocumentfield125589374__viewWrapper{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formdocumentfield125589374__viewWrapper:hover{background:var(--wds-color-blue-500, var(--wsr-color-B50));cursor:pointer}.formdocumentfield125589374__textWidth{max-width:calc(100% - 196px)}.formdocumentfield125589374__documentLoader{padding-top:21px;padding-bottom:21px}.formdocumentfield125589374__addDocument{padding-top:17px!important;padding-bottom:17px!important}.formdocumentfield125589374__addDocument.formdocumentfield125589374--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formdocumentfield125589374__addItemWrapper:focus-within{box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wds-color-blue-300, var(--wsr-color-B30)));border-radius:var(--wds-border-radius-400, calc(2px * 4))}.exclamation107353727__exclamation{display:flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:3px;cursor:pointer}.exclamation107353727__exclamation.exclamation107353727---type-7-warning:not(.exclamation107353727--customSize),.exclamation107353727__exclamation.exclamation107353727---type-5-error:not(.exclamation107353727--customSize){width:24px;height:24px}.exclamation107353727__exclamation.exclamation107353727---type-7-warning{color:var(--wds-color-fill-warning-primary)}.exclamation107353727__exclamation.exclamation107353727---type-5-error{color:var(--wds-color-fill-destructive-primary)}.exclamation107353727__actions{display:flex;flex-direction:column}.exclamation107353727__action{white-space:normal!important;height:auto!important;text-align:left;gap:6px}.exclamation107353727__action+.exclamation107353727__action{margin-top:6px}.exclamation107353727__action.exclamation107353727--accented{color:var(--wds-color-blue-100)}.exclamation107353727__action.exclamation107353727--accented:hover{color:var(--wds-color-blue-200)}.highlightedtext1316333891__root.highlightedtext1316333891--highlightedBackground{animation:highlightedtext1316333891__highlighted 150ms ease-out 1 forwards}.highlightedtext1316333891__substring.highlightedtext1316333891--isHighlighted{animation:highlightedtext1316333891__highlighted-match 150ms ease-out 50ms 1 forwards}@keyframes highlightedtext1316333891__highlighted{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-400, var(--wsr-color-Y40))}}@keyframes highlightedtext1316333891__highlighted-match{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-200, var(--wsr-color-Y20))}}.thumbnailreplaceoverlay476914298__root{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);border-radius:3px}.thumbnailreplaceoverlay476914298__icon{color:#fff;width:18px;height:18px}.cellmediaeditshell2329680740__root{width:100%;height:100%}.pasteurlbutton8757955__root{margin-top:6px}.pasteurlbutton8757955__iconButtonTooltip{height:max-content}.pasteurlbutton8757955__iconButton{width:24px;height:24px}.formmediagalleryfield466140145__container{display:flex;min-height:128px;max-height:259px}.formmediagalleryfield466140145__viewBox{display:flex;height:100%;width:100%;flex-wrap:wrap}.formmediagalleryfield466140145__addItemWrapper{height:128px;width:100%;box-sizing:border-box}.formmediagalleryfield466140145__addItem{box-sizing:border-box}.formmediagalleryfield466140145__overlay{width:initial!important;min-width:382px!important}.formmediagalleryfield466140145__image.formmediagalleryfield466140145--withMarginRight{margin-right:3px}.formmediagalleryfield466140145__image.formmediagalleryfield466140145--withMarginTop{margin-top:3px}.formmediagalleryfield466140145__previewImage{max-height:calc(100% - 12px)!important}.formmediagalleryfield466140145__previewVideo{border-radius:8px;max-width:100%;max-height:calc(100% - 12px)!important}.mediaimage3136155830__root{display:flex;align-items:center;flex-shrink:0;position:relative;box-sizing:border-box}.mediaimage3136155830__root.mediaimage3136155830--error{--mediaimage3136155830-from:calc(50% - 0.5px);--mediaimage3136155830-to:calc(50% + 0.5px);background-image:linear-gradient(to bottom right,transparent var(--mediaimage3136155830-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage3136155830-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage3136155830-to),transparent var(--mediaimage3136155830-to))}.mediaimage3136155830__root.mediaimage3136155830--error>*{opacity:0}.overlay929412153__iconOverlay{position:absolute;color:var(--wds-color-white, var(--wsr-color-D80, #FFFFFF));background-color:transparent;filter:drop-shadow(0 1px 1px rgba(22,45,61,.6));-webkit-filter:drop-shadow(0 1px 1px rgba(22,45,61,.6))}.overlay929412153__iconOverlay.overlay929412153---size-5-small{width:20px;height:20px}.overlay929412153__iconOverlay.overlay929412153---size-6-medium{width:24px;height:24px}.overlay929412153__iconOverlay.overlay929412153---size-5-large{width:28px;height:28px}.overlay929412153__iconOverlay.overlay929412153---placement-7-topLeft{top:2px;left:2px}.overlay929412153__iconOverlay.overlay929412153---placement-10-bottomLeft{bottom:2px;left:2px}.medialoader3943402091__loader{border-radius:6px}.medialoader3943402091__loader.medialoader3943402091--isDashed{border:dashed 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.medialoader3943402091__loader.medialoader3943402091--isSolid{border:solid 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.mediatag1858236787__root{box-sizing:border-box;padding:3px 6px 3px 3px;border-radius:3px;max-height:24px;min-width:54px;max-width:100%;background-color:var(--wds-color-blue-400, var(--wsr-color-B40))}.cellmultidocumentedit837926089__chipTrigger{display:flex;align-items:center;min-width:0;max-width:100%;margin:0;padding:0;border:0;background:0 0;font:inherit;color:inherit;text-align:inherit;cursor:pointer}.formmultidocument2239173731__viewRoot{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formmultidocument2239173731__singleViewWrapper{border-radius:0;border-bottom:1px solid var(--wds-color-neutral-600, var(--wsr-color-D60));background-color:transparent!important}.formmultidocument2239173731__viewRoot>div:first-child .formmultidocument2239173731__singleViewWrapper{border-top-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-top-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.formmultidocument2239173731__singleViewWrapper:hover{background-color:var(--wds-color-blue-500, var(--wsr-color-B50))!important}.formmultidocument2239173731__singleViewWrapper:focus-visible{border-bottom:1px solid transparent;position:relative;z-index:1}.formmultidocument2239173731__addDocumentButton{border-bottom-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-bottom-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.formmultidocument2239173731__addDocumentButton:focus-within{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--wds-border-radius-300, calc(2px * 3));border-bottom-right-radius:var(--wds-border-radius-300, calc(2px * 3))}.cellmultireferenceinput1250892502__root{width:100%;box-sizing:border-box;--wds-input-border-color:transparent;--wds-input-border-color-hover:transparent;--wds-input-border-color-focus:transparent;--wds-input-background-fill-default:transparent;--wds-input-background-fill-hover:transparent;--wds-input-shadow-focus-standard:0 0 0 0 transparent}.cellreferenceinput720776509__root{width:100%;height:100%;display:flex;align-items:center}.cellreferenceinput720776509__autocomplete{width:100%}.richcontentdefaultvalueinput1140021856__richContentEditorContainer .richcontentdefaultvalueinput1140021856__editor{max-height:calc(40vh - var(--topToolbarHeight) - var(--bottomToolbarHeight))}.richcontentforminput220691737__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-input-border-color, var(--wsr-color-B40, #D6E6FE));border-radius:var(--wds-input-border-radius-default-medium, var(--wsr-border-radius-06, 6px))}.richcontentforminput220691737__root:focus-within{border:1px solid var(--wds-input-border-color-focus, var(--wsr-color-B10, #116DFF));box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wsr-color-F00, #A6D0FF))}.richcontentforminput220691737__root .richcontentforminput220691737__editor{overflow-y:auto;max-height:calc(80vh - var(--topToolbarHeight) - var(--bottomToolbarHeight))}.richcontentformreadonlyinput3634540621__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-color-black-600);border-radius:var(--wds-border-radius-300)}.richcontentformreadonlyinput3634540621__root:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.fullscreenmodal1271704472__modalContent{display:flex;flex-direction:column;position:relative;height:100%;width:782px;background-color:var(--wds-color-white, var(--wsr-color-D80, #ffffff));border-radius:var(--wds-border-radius-300, var(--wsr-border-radius-06, 6px));margin-top:24px}.publishloader4081695798__publishLoader{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--wds-color-white);z-index:5000;border-radius:inherit}.togglefullscreenbutton3614480925__root{z-index:5;box-sizing:border-box;position:absolute;right:0;top:calc(50% - 16px)!important;padding-right:3px}.togglefullscreenbutton3614480925__root button{border-radius:6px!important}.richcontenteditor3438875334__root{position:relative;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)}.richcontenteditor3438875334__root,.richcontenteditor3438875334__toolbarContainer,.richcontenteditor3438875334__footerToolbarContainer{width:100%;box-sizing:border-box}.richcontenteditor3438875334__toolbarContainer div{box-sizing:border-box}.richcontenteditor3438875334__toolbarAndFullScreenButtonWrapper{display:flex;position:relative}.richcontenteditor3438875334__editor{box-sizing:border-box;padding:36px 24px 36px 55px}.richcontenteditor3438875334__modalEditor{display:flex;flex-direction:column;flex:1;height:100%}.richcontenteditor3438875334__modalEditor .richcontenteditor3438875334__editor{overflow-y:auto;flex:1;min-width:592px;box-sizing:border-box}.richcontenteditor3438875334__modalEditor .richcontenteditor3438875334__footerToolbarContainer{margin-top:9px}.richcontenteditor3438875334__toolbarContainer button[data-hook~=text-button-headings]>span{display:inline-flex;padding-inline-end:3px!important}.richcontenteditor3438875334__toolbarContainer button[data-hook~=text-button-ai]>span{padding-inline-end:9px!important}.richcontenttoolbar1684532750__toolbar{border-top:1px solid rgba(51,51,51,.1);z-index:2;margin-right:auto;padding-left:6px;margin-left:auto;position:relative;height:40px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box}.richcontenttoolbar1684532750__toolbarButton{line-height:40px;background:0 0;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;margin:0 5px 0 0}.richcontenttoolbar1684532750__toolbarButton:disabled{color:graytext}.richcontenttoolbar1684532750__separator{width:1px;height:20px;margin:0 8px 0 3px;background:rgba(51,51,51,.1)}.richcontenttoolbar1684532750__toolbar label{padding:0 8px}.richcontentviewer2057557000__root{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:36px}.richcontentviewer2057557000__root.richcontentviewer2057557000--isFullScreen{padding:12px 24px}.richcontentviewer2057557000__root:not(.richcontentviewer2057557000--isFullScreen){padding:6px 24px 6px 12px}.richcontentviewer2057557000__root ToggleButton{margin:0;padding:0;border:0;position:absolute;top:2px!important;right:2px;width:30px;height:30px}.richcontentviewer2057557000__viewer{height:calc(100% - 36px);width:100%}.richcontentviewer2057557000__modalViewer{min-width:592px;overflow:auto}.richtexteditor633349545__root{width:100%;box-sizing:border-box;outline:0;overflow:hidden;border-radius:var(--wds-input-border-radius-default-medium, var(--wsr-border-radius-06, 6px))}.richtexteditor633349545__root.richtexteditor633349545---border-4-none{border:0}.richtexteditor633349545__root.richtexteditor633349545---border-8-standard{border:1px solid var(--wds-input-border-color, var(--wsr-color-B40, #D6E6FE))}.richtexteditor633349545__root.richtexteditor633349545---border-8-standard:focus,.richtexteditor633349545__root.richtexteditor633349545---border-8-standard:focus-within{border:1px solid var(--wds-input-border-color-focus, var(--wsr-color-B10, #116DFF));box-shadow:var(--wds-input-shadow-focus-standard, 0 0 0 3px var(--wsr-color-F00, #A6D0FF))}.richtexteditor633349545__root.richtexteditor633349545---border-8-standard.richtexteditor633349545---status-5-error{border:1px solid var(--wds-color-border-destructive-secondary-active, var(--wsr-color-R10, #E62214))}.richtexteditor633349545__root.richtexteditor633349545---border-8-standard.richtexteditor633349545---status-5-error:focus,.richtexteditor633349545__root.richtexteditor633349545---border-8-standard.richtexteditor633349545---status-5-error:focus-within{border:1px solid var(--wds-color-border-destructive-secondary-active, var(--wsr-color-R10, #E62214));box-shadow:var(--wds-input-shadow-focus-destructive, 0 0 0 3px var(--wsr-color-R40, #FBD0CD))}.richtexteditor633349545__root.richtexteditor633349545---border-8-standard.richtexteditor633349545---status-7-warning{border:1px solid var(--wds-color-border-warning-secondary-active, var(--wsr-color-Y10, #FFB700))}.richtexteditor633349545__root.richtexteditor633349545---border-8-standard.richtexteditor633349545---status-7-warning:focus,.richtexteditor633349545__root.richtexteditor633349545---border-8-standard.richtexteditor633349545---status-7-warning:focus-within{border:1px solid var(--wds-color-border-warning-secondary-active, var(--wsr-color-Y10, #FFB700));box-shadow:var(--wds-input-shadow-focus-warning, 0 0 0 3px var(--wsr-color-Y40, #FFE2A5))}.richtexteditor633349545__nativeInput{position:absolute;opacity:0;padding:0;margin:0;border:0;width:0;height:0}.richtexteditor633349545__editor{height:auto;line-height:auto;display:flex;width:100%;height:100%;min-height:234px;overflow:hidden;box-sizing:border-box;flex-direction:row;border-radius:var(--wds-input-border-radius-default-medium, var(--wsr-border-radius-06, 6px))}.richtexteditor633349545__editor.richtexteditor633349545--isFullScreen{max-width:782px;min-width:582px;background:var(--wds-color-black-700)}.richtexteditor633349545__editor:not(.richtexteditor633349545--isFullScreen){max-height:80vh}.richtexteditor633349545__editor>div{flex:1;max-width:100%}.toolbar23812805__root{padding:12px 18px;display:flex;border-bottom:1px solid var(--wds-color-blue-400, var(--wsr-color-B40, #d6dcff));background:var(--wds-color-white, var(--wsr-color-D80, #ffffff));align-items:center}.toolbar23812805__item{display:flex;margin-right:12px}.toolbar23812805__item svg,.toolbar23812805__item svg path,.toolbar23812805__item svg text{color:inherit;fill:currentColor}.toolbar23812805__separator{display:inline-flex;margin-right:12px;border-left:1px solid #ddd;align-self:stretch}.toolbar23812805__clearFormatting{margin-left:auto}.toolbar23812805__fullScreen{margin-right:0}.toolbar23812805__dropdownItemContent{height:36px;width:100%;display:flex;gap:12px;justify-content:space-between;align-items:center}.toolbar23812805__dropdownItemContent.toolbar23812805--selected .toolbar23812805__dropdownItemTitle,.toolbar23812805__dropdownItemContent.toolbar23812805--selected .toolbar23812805__dropdownItemSubtitle{color:var(--wds-color-white)!important}.toolbar23812805__dropdownItemSubtitle{color:var(--wds-color-black-400)!important;padding-right:12px;flex-shrink:0}.toolbar23812805__dropdownHeaderOne{font-weight:var(--wds-font-weight-bold)!important;font-size:36px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, var(--wsr-font-family, Madefor))!important}.toolbar23812805__dropdownHeaderTwo{font-weight:var(--wds-font-weight-bold)!important;font-size:32px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar23812805__dropdownHeaderThree{font-weight:var(--wds-font-weight-medium)!important;font-size:28px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar23812805__dropdownHeaderFour{font-weight:var(--wds-font-weight-bold)!important;font-size:24px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar23812805__dropdownHeaderFive{font-weight:var(--wds-font-weight-bold)!important;font-size:22px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar23812805__dropdownHeaderSix{font-weight:var(--wds-font-weight-medium)!important;font-size:20px!important;line-height:1.2!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar23812805__dropdownParagraphOne{font-weight:var(--wds-font-weight-medium)!important;font-size:18px!important;line-height:1.33!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar23812805__dropdownNormalText{font-weight:var(--wds-font-weight-medium)!important;font-size:var(--wds-font-size-500)!important;line-height:var(--wds-font-line-height-300)!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.toolbar23812805__dropdownParagraphThree{font-weight:var(--wds-font-weight-medium)!important;font-size:14px!important;line-height:1.29!important;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)!important}.textview970162522__textView::after{content:"";display:block}.richeditor83967351__root{display:flex;flex-direction:column;font-weight:var(--wds-font-weight-medium, 500);font-size:var(--wds-font-size-500);line-height:var(--wds-font-line-height-300);font-family:var(--wds-font-family-default, var(--wsr-font-family, Madefor))}.richeditor83967351__editor{box-sizing:border-box;overflow:auto;display:flex;flex-direction:column;flex:1;cursor:text;color:var(--wds-color-black-100, var(--wsr-color-D10, #131720));background:var(--wds-color-black-700, var(--wsr-color-D70, #edeef2))}.richeditor83967351__editor .DraftEditor-root{width:100%;height:100%}.richeditor83967351__editor .DraftEditor-root [data-contents]{overflow:auto}.richeditor83967351__editor .DraftEditor-editorContainer{display:flex;min-height:100%;background:#fff}.richeditor83967351__editor .public-DraftEditor-content{padding:12px 24px 24px;min-height:100%;width:100%;box-sizing:border-box}.richeditor83967351__editor .public-DraftEditor-content ol,.richeditor83967351__editor .public-DraftEditor-content ul{display:flex;flex-direction:column;padding:0}.richeditor83967351__editor .public-DraftEditor-content a,.richeditor83967351__editor .public-DraftEditor-content a:visited{color:inherit;text-decoration:none}.richeditor83967351__header-one:not(li),.richeditor83967351__header-two:not(li),.richeditor83967351__header-three:not(li),.richeditor83967351__header-four:not(li),.richeditor83967351__header-five:not(li),.richeditor83967351__header-six:not(li){margin-block:0;margin:0}.richeditor83967351__header-one,.richeditor83967351__editor li.richeditor83967351__header-one .public-DraftStyleDefault-block{font:var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__header-two,.richeditor83967351__editor li.richeditor83967351__header-two .public-DraftStyleDefault-block{font:var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__header-three,.richeditor83967351__editor li.richeditor83967351__header-three .public-DraftStyleDefault-block{font:var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__header-four,.richeditor83967351__editor li.richeditor83967351__header-four .public-DraftStyleDefault-block{font:var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__header-five,.richeditor83967351__editor li.richeditor83967351__header-five .public-DraftStyleDefault-block{font:var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__header-six,.richeditor83967351__editor li.richeditor83967351__header-six .public-DraftStyleDefault-block{font:var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__paragraph-one,.richeditor83967351__editor li.richeditor83967351__paragraph-one .public-DraftStyleDefault-block{font:var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__unstyled,.richeditor83967351__editor li.richeditor83967351__unstyled .public-DraftStyleDefault-block{font:var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__paragraph-three,.richeditor83967351__editor li.richeditor83967351__paragraph-three .public-DraftStyleDefault-block{font:var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__editor li.richeditor83967351__header-one:first-child~li{font:var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__editor li.richeditor83967351__header-one:first-child~li::marker{line-height:var(--rt-h1-fontSize, 72px)}.richeditor83967351__editor li.richeditor83967351__header-two:first-child~li{font:var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__editor li.richeditor83967351__header-two:first-child~li::marker{line-height:var(--rt-h2-fontSize, 42px)}.richeditor83967351__editor li.richeditor83967351__header-three:first-child~li{font:var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__editor li.richeditor83967351__header-three:first-child~li::marker{line-height:var(--rt-h3-fontSize, 38px)}.richeditor83967351__editor li.richeditor83967351__header-four:first-child~li{font:var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__editor li.richeditor83967351__header-four:first-child~li::marker{line-height:var(--rt-h4-fontSize, 34px)}.richeditor83967351__editor li.richeditor83967351__header-five:first-child~li{font:var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__editor li.richeditor83967351__header-five:first-child~li::marker{line-height:var(--rt-h5-fontSize, 28px)}.richeditor83967351__editor li.richeditor83967351__header-six:first-child~li{font:var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__editor li.richeditor83967351__header-six:first-child~li::marker{line-height:var(--rt-h6-fontSize, 22px)}.richeditor83967351__editor li.richeditor83967351__paragraph-one:first-child~li{font:var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__editor li.richeditor83967351__unstyled:first-child~li{font:var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.richeditor83967351__editor li.richeditor83967351__paragraph-three:first-child~li{font:var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth0{margin-inline-start:2ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth1{margin-inline-start:4ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth2{margin-inline-start:6ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth3{margin-inline-start:8ch}.public-DraftStyleDefault-ul .public-DraftStyleDefault-depth4{margin-inline-start:10ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth0:first-child{margin-inline-start:2ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0{margin-inline-start:2ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+10){margin-inline-start:3ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+100){margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth0:nth-child(n+1000){margin-inline-start:5ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth1:first-child{margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1{margin-inline-start:4ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+10){margin-inline-start:5ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+100){margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth1:nth-child(n+1000){margin-inline-start:7ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth2:first-child{margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2{margin-inline-start:6ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+10){margin-inline-start:7ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+100){margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth2:nth-child(n+1000){margin-inline-start:9ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth3:first-child{margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3{margin-inline-start:8ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+10){margin-inline-start:9ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+100){margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth3:nth-child(n+1000){margin-inline-start:11ch}.public-DraftStyleDefault-ol li.public-DraftStyleDefault-depth4:first-child{margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4{margin-inline-start:10ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+10){margin-inline-start:11ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+100){margin-inline-start:12ch}.public-DraftStyleDefault-ol li:first-child~li.public-DraftStyleDefault-depth4:nth-child(n+1000){margin-inline-start:13ch}.richeditor83967351__align-left{text-align:left;align-self:flex-start}.richeditor83967351__align-right{text-align:right;align-self:flex-end}.richeditor83967351__align-center{text-align:center;align-self:center}.richeditor83967351__align-justify{text-align:justify;align-self:stretch}.richeditor83967351__withMargin{display:inline-block}.richeditor83967351__dir-rtl,.richeditor83967351__editor .public-DraftStyleDefault-rtl{direction:rtl}.richeditor83967351__editor .public-DraftStyleDefault-listRTL{direction:rtl;text-align:right;max-width:100%}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/types/validation.ts"],"sourcesContent":["import type { SpecificValue } from '@wix/bex-core';\n\nexport type RequiredValidationRule = {\n required: boolean;\n};\n\nexport type CharactersLimitValidationRule = {\n charactersLimit: { min?: number; max?: number };\n};\n\nexport type SpecificValuesValidationRule = {\n specificValues: SpecificValue[];\n};\n\nexport type DataValidationRules = Partial<\n RequiredValidationRule &\n CharactersLimitValidationRule &\n SpecificValuesValidationRule\n>;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/types/validation.ts"],"sourcesContent":["import type { SpecificValue } from '@wix/bex-core';\n\nexport type RequiredValidationRule = {\n required: boolean;\n};\n\nexport type CharactersLimitValidationRule = {\n charactersLimit: { min?: number; max?: number };\n};\n\nexport type SpecificValuesValidationRule = {\n specificValues: SpecificValue[];\n};\n\nexport type PatternValidationRule = {\n pattern: string;\n};\n\nexport interface RequiredFieldValidationRuleConfig {\n type: 'required';\n label: string;\n tooltip: string;\n}\n\nexport interface CharactersLimitFieldValidationRuleConfig {\n type: 'charactersLimit';\n label: string;\n tooltip: string;\n minLabel: string;\n maxLabel: string;\n separator: string;\n outOfBoundsError(min: number, max: number): string;\n maxBelowMinError: string;\n}\n\nexport interface SpecificValuesFieldValidationRuleConfig {\n type: 'specificValues';\n label: string;\n tooltip: string;\n blankError: string;\n duplicateError: string;\n addButton: string;\n removeButton: string;\n exclusiveRulesExplanation: string;\n}\n\nexport interface PatternFieldValidationRuleConfig {\n type: 'pattern';\n label: string;\n tooltip: string;\n inputLabel: string;\n invalidError: string;\n}\n\nexport type FieldValidationRuleConfig =\n | RequiredFieldValidationRuleConfig\n | CharactersLimitFieldValidationRuleConfig\n | SpecificValuesFieldValidationRuleConfig\n | PatternFieldValidationRuleConfig;\n\nexport type FieldValidationRule = FieldValidationRuleConfig['type'];\n\nexport interface FieldValidationSettingsValue {\n required?: boolean;\n charactersLimit?: { min?: number; max?: number };\n specificValues?: SpecificValue[];\n pattern?: string;\n}\n\nexport type FieldValidationViolation =\n | {\n rule: 'charactersLimit';\n type: 'outOfBounds';\n bound: 'min' | 'max';\n min: number;\n max: number;\n }\n | { rule: 'charactersLimit'; type: 'maxBelowMin' }\n | {\n rule: 'specificValues';\n type: 'blank' | 'duplicate';\n optionId: string;\n }\n | {\n rule: 'specificValues' | 'charactersLimit' | 'pattern';\n type: 'exclusiveRules';\n }\n | { rule: 'pattern'; type: 'invalidPattern' };\n\nexport type DataValidationRules = Partial<\n RequiredValidationRule &\n CharactersLimitValidationRule &\n SpecificValuesValidationRule &\n PatternValidationRule\n>;\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.hasFieldValidationSettingsError = exports.getFieldValidationSettingsViolations = void 0;
5
+ const CHARACTERS_CEILING = 256_000;
6
+ const MIN_CHARACTERS_FLOOR = 0;
7
+ const MIN_CHARACTERS_FLOOR_WHEN_REQUIRED = 1;
8
+ const MAX_CHARACTERS_FLOOR = 1;
9
+ const MAX_PATTERN_LENGTH = 500;
10
+ const isOutOfBounds = (value, min, max) => !Number.isFinite(value) || value < min || value > max;
11
+ const hasInvalidPattern = pattern => {
12
+ if (pattern === undefined) {
13
+ return false;
14
+ }
15
+ if (pattern.length > MAX_PATTERN_LENGTH) {
16
+ return true;
17
+ }
18
+ try {
19
+ new RegExp(pattern);
20
+ return false;
21
+ } catch {
22
+ return true;
23
+ }
24
+ };
25
+ const getFieldValidationSettingsViolations = (value, supportedRules, {
26
+ exclusiveSpecificValues = true
27
+ } = {}) => {
28
+ const violations = [];
29
+ const supports = rule => supportedRules === undefined || supportedRules.includes(rule);
30
+ const charactersLimit = supports('charactersLimit') ? value.charactersLimit : undefined;
31
+ const specificValues = supports('specificValues') ? value.specificValues : undefined;
32
+ const pattern = supports('pattern') ? value.pattern : undefined;
33
+ const minCharactersFloor = supports('required') && value.required ? MIN_CHARACTERS_FLOOR_WHEN_REQUIRED : MIN_CHARACTERS_FLOOR;
34
+ if ((charactersLimit == null ? void 0 : charactersLimit.min) != null && isOutOfBounds(charactersLimit.min, minCharactersFloor, CHARACTERS_CEILING)) {
35
+ violations.push({
36
+ rule: 'charactersLimit',
37
+ type: 'outOfBounds',
38
+ bound: 'min',
39
+ min: minCharactersFloor,
40
+ max: CHARACTERS_CEILING
41
+ });
42
+ }
43
+ if ((charactersLimit == null ? void 0 : charactersLimit.max) != null && isOutOfBounds(charactersLimit.max, MAX_CHARACTERS_FLOOR, CHARACTERS_CEILING)) {
44
+ violations.push({
45
+ rule: 'charactersLimit',
46
+ type: 'outOfBounds',
47
+ bound: 'max',
48
+ min: MAX_CHARACTERS_FLOOR,
49
+ max: CHARACTERS_CEILING
50
+ });
51
+ }
52
+ if ((charactersLimit == null ? void 0 : charactersLimit.min) != null && charactersLimit.max != null && charactersLimit.max < charactersLimit.min) {
53
+ violations.push({
54
+ rule: 'charactersLimit',
55
+ type: 'maxBelowMin'
56
+ });
57
+ }
58
+ if (specificValues !== undefined) {
59
+ const normalizedValues = specificValues.map(({
60
+ value: optionValue
61
+ }) => optionValue.trim());
62
+ specificValues.forEach((option, index) => {
63
+ if (!normalizedValues[index]) {
64
+ violations.push({
65
+ rule: 'specificValues',
66
+ type: 'blank',
67
+ optionId: option.id
68
+ });
69
+ } else if (normalizedValues.indexOf(normalizedValues[index]) !== index) {
70
+ violations.push({
71
+ rule: 'specificValues',
72
+ type: 'duplicate',
73
+ optionId: option.id
74
+ });
75
+ }
76
+ });
77
+ }
78
+ const hasSpecificValues = specificValues !== undefined;
79
+ const hasCharactersLimit = charactersLimit !== undefined;
80
+ const hasPattern = pattern !== undefined;
81
+ if (exclusiveSpecificValues && hasSpecificValues && (hasCharactersLimit || hasPattern)) {
82
+ violations.push({
83
+ rule: 'specificValues',
84
+ type: 'exclusiveRules'
85
+ });
86
+ if (hasCharactersLimit) {
87
+ violations.push({
88
+ rule: 'charactersLimit',
89
+ type: 'exclusiveRules'
90
+ });
91
+ }
92
+ if (hasPattern) {
93
+ violations.push({
94
+ rule: 'pattern',
95
+ type: 'exclusiveRules'
96
+ });
97
+ }
98
+ }
99
+ if (hasInvalidPattern(pattern)) {
100
+ violations.push({
101
+ rule: 'pattern',
102
+ type: 'invalidPattern'
103
+ });
104
+ }
105
+ return violations;
106
+ };
107
+ exports.getFieldValidationSettingsViolations = getFieldValidationSettingsViolations;
108
+ const hasFieldValidationSettingsError = (value, supportedRules, options) => getFieldValidationSettingsViolations(value, supportedRules, options).length > 0;
109
+ exports.hasFieldValidationSettingsError = hasFieldValidationSettingsError;
110
+ //# sourceMappingURL=field-validation-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["CHARACTERS_CEILING","MIN_CHARACTERS_FLOOR","MIN_CHARACTERS_FLOOR_WHEN_REQUIRED","MAX_CHARACTERS_FLOOR","MAX_PATTERN_LENGTH","isOutOfBounds","value","min","max","Number","isFinite","hasInvalidPattern","pattern","undefined","length","RegExp","getFieldValidationSettingsViolations","supportedRules","exclusiveSpecificValues","violations","supports","rule","includes","charactersLimit","specificValues","minCharactersFloor","required","push","type","bound","normalizedValues","map","optionValue","trim","forEach","option","index","optionId","id","indexOf","hasSpecificValues","hasCharactersLimit","hasPattern","exports","hasFieldValidationSettingsError","options"],"sources":["../../../src/validations/field-validation-settings.ts"],"sourcesContent":["import type {\n FieldValidationRule,\n FieldValidationSettingsValue,\n FieldValidationViolation,\n} from '../types/validation';\n\nconst CHARACTERS_CEILING = 256_000;\nconst MIN_CHARACTERS_FLOOR = 0;\nconst MIN_CHARACTERS_FLOOR_WHEN_REQUIRED = 1;\nconst MAX_CHARACTERS_FLOOR = 1;\nconst MAX_PATTERN_LENGTH = 500;\n\nconst isOutOfBounds = (value: number, min: number, max: number) =>\n !Number.isFinite(value) || value < min || value > max;\n\nconst hasInvalidPattern = (pattern: string | undefined) => {\n if (pattern === undefined) {\n return false;\n }\n\n if (pattern.length > MAX_PATTERN_LENGTH) {\n return true;\n }\n\n try {\n new RegExp(pattern);\n return false;\n } catch {\n return true;\n }\n};\n\nexport interface FieldValidationSettingsOptions {\n /** Whether `specificValues` rejects `charactersLimit`/`pattern` on the same\n * field. Callers that let a field carry both (e.g. a stored\n * `stringLengthRange` alongside `specificValues`) should pass `false`. */\n exclusiveSpecificValues?: boolean;\n}\n\nexport const getFieldValidationSettingsViolations = (\n value: FieldValidationSettingsValue,\n supportedRules?: readonly FieldValidationRule[],\n { exclusiveSpecificValues = true }: FieldValidationSettingsOptions = {},\n): FieldValidationViolation[] => {\n const violations: FieldValidationViolation[] = [];\n const supports = (rule: FieldValidationRule) =>\n supportedRules === undefined || supportedRules.includes(rule);\n const charactersLimit = supports('charactersLimit')\n ? value.charactersLimit\n : undefined;\n const specificValues = supports('specificValues')\n ? value.specificValues\n : undefined;\n const pattern = supports('pattern') ? value.pattern : undefined;\n\n const minCharactersFloor =\n supports('required') && value.required\n ? MIN_CHARACTERS_FLOOR_WHEN_REQUIRED\n : MIN_CHARACTERS_FLOOR;\n\n if (\n charactersLimit?.min != null &&\n isOutOfBounds(charactersLimit.min, minCharactersFloor, CHARACTERS_CEILING)\n ) {\n violations.push({\n rule: 'charactersLimit',\n type: 'outOfBounds',\n bound: 'min',\n min: minCharactersFloor,\n max: CHARACTERS_CEILING,\n });\n }\n\n if (\n charactersLimit?.max != null &&\n isOutOfBounds(charactersLimit.max, MAX_CHARACTERS_FLOOR, CHARACTERS_CEILING)\n ) {\n violations.push({\n rule: 'charactersLimit',\n type: 'outOfBounds',\n bound: 'max',\n min: MAX_CHARACTERS_FLOOR,\n max: CHARACTERS_CEILING,\n });\n }\n\n if (\n charactersLimit?.min != null &&\n charactersLimit.max != null &&\n charactersLimit.max < charactersLimit.min\n ) {\n violations.push({ rule: 'charactersLimit', type: 'maxBelowMin' });\n }\n\n if (specificValues !== undefined) {\n const normalizedValues = specificValues.map(({ value: optionValue }) =>\n optionValue.trim(),\n );\n\n specificValues.forEach((option, index) => {\n if (!normalizedValues[index]) {\n violations.push({\n rule: 'specificValues',\n type: 'blank',\n optionId: option.id,\n });\n } else if (normalizedValues.indexOf(normalizedValues[index]) !== index) {\n violations.push({\n rule: 'specificValues',\n type: 'duplicate',\n optionId: option.id,\n });\n }\n });\n }\n\n const hasSpecificValues = specificValues !== undefined;\n const hasCharactersLimit = charactersLimit !== undefined;\n const hasPattern = pattern !== undefined;\n\n if (exclusiveSpecificValues && hasSpecificValues && (hasCharactersLimit || hasPattern)) {\n violations.push({ rule: 'specificValues', type: 'exclusiveRules' });\n if (hasCharactersLimit) {\n violations.push({ rule: 'charactersLimit', type: 'exclusiveRules' });\n }\n if (hasPattern) {\n violations.push({ rule: 'pattern', type: 'exclusiveRules' });\n }\n }\n\n if (hasInvalidPattern(pattern)) {\n violations.push({ rule: 'pattern', type: 'invalidPattern' });\n }\n\n return violations;\n};\n\nexport const hasFieldValidationSettingsError = (\n value: FieldValidationSettingsValue,\n supportedRules?: readonly FieldValidationRule[],\n options?: FieldValidationSettingsOptions,\n) =>\n getFieldValidationSettingsViolations(value, supportedRules, options).length >\n 0;\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,209 @@
1
+ "use strict";
2
+
3
+ var _fieldValidationSettings = require("./field-validation-settings");
4
+ describe('field validation settings', () => {
5
+ it('allows absent character bounds', () => {
6
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)({
7
+ charactersLimit: {}
8
+ })).toEqual([]);
9
+ });
10
+ it.each([{
11
+ name: 'a negative optional minimum',
12
+ value: {
13
+ charactersLimit: {
14
+ min: -1
15
+ }
16
+ },
17
+ bound: 'min',
18
+ min: 0
19
+ }, {
20
+ name: 'a required minimum below one',
21
+ value: {
22
+ required: true,
23
+ charactersLimit: {
24
+ min: 0
25
+ }
26
+ },
27
+ bound: 'min',
28
+ min: 1
29
+ }, {
30
+ name: 'a maximum below one',
31
+ value: {
32
+ charactersLimit: {
33
+ max: 0
34
+ }
35
+ },
36
+ bound: 'max',
37
+ min: 1
38
+ }, {
39
+ name: 'a minimum above the ceiling',
40
+ value: {
41
+ charactersLimit: {
42
+ min: 256_001
43
+ }
44
+ },
45
+ bound: 'min',
46
+ min: 0
47
+ }, {
48
+ name: 'a maximum above the ceiling',
49
+ value: {
50
+ charactersLimit: {
51
+ max: 256_001
52
+ }
53
+ },
54
+ bound: 'max',
55
+ min: 1
56
+ }])('reports $name without changing it', ({
57
+ value,
58
+ bound,
59
+ min
60
+ }) => {
61
+ const snapshot = JSON.parse(JSON.stringify(value));
62
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)(value)).toContainEqual({
63
+ rule: 'charactersLimit',
64
+ type: 'outOfBounds',
65
+ bound,
66
+ min,
67
+ max: 256_000
68
+ });
69
+ expect(value).toEqual(snapshot);
70
+ });
71
+ it('reports a maximum below the minimum without changing the draft', () => {
72
+ const value = {
73
+ charactersLimit: {
74
+ min: 10,
75
+ max: 5
76
+ }
77
+ };
78
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)(value)).toContainEqual({
79
+ rule: 'charactersLimit',
80
+ type: 'maxBelowMin'
81
+ });
82
+ expect(value.charactersLimit).toEqual({
83
+ min: 10,
84
+ max: 5
85
+ });
86
+ });
87
+ it.each([Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY])('reports a non-finite character bound: %s', min => {
88
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)({
89
+ charactersLimit: {
90
+ min
91
+ }
92
+ })).toContainEqual({
93
+ rule: 'charactersLimit',
94
+ type: 'outOfBounds',
95
+ bound: 'min',
96
+ min: 0,
97
+ max: 256_000
98
+ });
99
+ });
100
+ it('makes a minimum of zero invalid only while required is enabled', () => {
101
+ const charactersLimit = {
102
+ min: 0
103
+ };
104
+ expect((0, _fieldValidationSettings.hasFieldValidationSettingsError)({
105
+ required: false,
106
+ charactersLimit
107
+ })).toBe(false);
108
+ expect((0, _fieldValidationSettings.hasFieldValidationSettingsError)({
109
+ required: true,
110
+ charactersLimit
111
+ })).toBe(true);
112
+ expect((0, _fieldValidationSettings.hasFieldValidationSettingsError)({
113
+ required: false,
114
+ charactersLimit
115
+ })).toBe(false);
116
+ expect(charactersLimit).toEqual({
117
+ min: 0
118
+ });
119
+ });
120
+ it('reports blank and duplicate specific values after trimming', () => {
121
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)({
122
+ specificValues: [{
123
+ id: 'blank',
124
+ value: ' '
125
+ }, {
126
+ id: 'first',
127
+ value: 'One'
128
+ }, {
129
+ id: 'duplicate',
130
+ value: ' One '
131
+ }, {
132
+ id: 'different-case',
133
+ value: 'one'
134
+ }]
135
+ })).toEqual([{
136
+ rule: 'specificValues',
137
+ type: 'blank',
138
+ optionId: 'blank'
139
+ }, {
140
+ rule: 'specificValues',
141
+ type: 'duplicate',
142
+ optionId: 'duplicate'
143
+ }]);
144
+ });
145
+ it('reports every side of an exclusive-rules conflict', () => {
146
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)({
147
+ charactersLimit: {},
148
+ specificValues: [],
149
+ pattern: '^value$'
150
+ })).toEqual(expect.arrayContaining([{
151
+ rule: 'specificValues',
152
+ type: 'exclusiveRules'
153
+ }, {
154
+ rule: 'charactersLimit',
155
+ type: 'exclusiveRules'
156
+ }, {
157
+ rule: 'pattern',
158
+ type: 'exclusiveRules'
159
+ }]));
160
+ });
161
+ it('reports invalid regular expressions without throwing', () => {
162
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)({
163
+ pattern: '['
164
+ })).toContainEqual({
165
+ rule: 'pattern',
166
+ type: 'invalidPattern'
167
+ });
168
+ expect((0, _fieldValidationSettings.hasFieldValidationSettingsError)({
169
+ pattern: ''
170
+ })).toBe(false);
171
+ expect((0, _fieldValidationSettings.hasFieldValidationSettingsError)({
172
+ pattern: '^valid$'
173
+ })).toBe(false);
174
+ });
175
+ it('allows specificValues alongside charactersLimit when the caller opts out of exclusivity', () => {
176
+ const value = {
177
+ charactersLimit: {},
178
+ specificValues: []
179
+ };
180
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)(value, undefined, {
181
+ exclusiveSpecificValues: false
182
+ })).toEqual([]);
183
+ expect((0, _fieldValidationSettings.hasFieldValidationSettingsError)(value, undefined, {
184
+ exclusiveSpecificValues: false
185
+ })).toBe(false);
186
+ });
187
+ it('reports an overlong pattern as invalid without constructing a RegExp', () => {
188
+ const pattern = '^'.repeat(501);
189
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)({
190
+ pattern
191
+ })).toContainEqual({
192
+ rule: 'pattern',
193
+ type: 'invalidPattern'
194
+ });
195
+ });
196
+ it('ignores values outside the caller supported rule set', () => {
197
+ const value = {
198
+ required: true,
199
+ charactersLimit: {
200
+ min: 0
201
+ },
202
+ specificValues: [],
203
+ pattern: '['
204
+ };
205
+ expect((0, _fieldValidationSettings.getFieldValidationSettingsViolations)(value, ['charactersLimit'])).toEqual([]);
206
+ expect((0, _fieldValidationSettings.hasFieldValidationSettingsError)(value, ['charactersLimit'])).toBe(false);
207
+ });
208
+ });
209
+ //# sourceMappingURL=field-validation-settings.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_fieldValidationSettings","require","describe","it","expect","getFieldValidationSettingsViolations","charactersLimit","toEqual","each","name","value","min","bound","required","max","snapshot","JSON","parse","stringify","toContainEqual","rule","type","Number","NaN","POSITIVE_INFINITY","NEGATIVE_INFINITY","hasFieldValidationSettingsError","toBe","specificValues","id","optionId","pattern","arrayContaining","undefined","exclusiveSpecificValues","repeat"],"sources":["../../../src/validations/field-validation-settings.spec.ts"],"sourcesContent":["import {\n getFieldValidationSettingsViolations,\n hasFieldValidationSettingsError,\n} from './field-validation-settings';\n\ndescribe('field validation settings', () => {\n it('allows absent character bounds', () => {\n expect(\n getFieldValidationSettingsViolations({ charactersLimit: {} }),\n ).toEqual([]);\n });\n\n it.each([\n {\n name: 'a negative optional minimum',\n value: { charactersLimit: { min: -1 } },\n bound: 'min',\n min: 0,\n },\n {\n name: 'a required minimum below one',\n value: { required: true, charactersLimit: { min: 0 } },\n bound: 'min',\n min: 1,\n },\n {\n name: 'a maximum below one',\n value: { charactersLimit: { max: 0 } },\n bound: 'max',\n min: 1,\n },\n {\n name: 'a minimum above the ceiling',\n value: { charactersLimit: { min: 256_001 } },\n bound: 'min',\n min: 0,\n },\n {\n name: 'a maximum above the ceiling',\n value: { charactersLimit: { max: 256_001 } },\n bound: 'max',\n min: 1,\n },\n ])('reports $name without changing it', ({ value, bound, min }) => {\n const snapshot = JSON.parse(JSON.stringify(value));\n\n expect(getFieldValidationSettingsViolations(value)).toContainEqual({\n rule: 'charactersLimit',\n type: 'outOfBounds',\n bound,\n min,\n max: 256_000,\n });\n expect(value).toEqual(snapshot);\n });\n\n it('reports a maximum below the minimum without changing the draft', () => {\n const value = { charactersLimit: { min: 10, max: 5 } };\n\n expect(getFieldValidationSettingsViolations(value)).toContainEqual({\n rule: 'charactersLimit',\n type: 'maxBelowMin',\n });\n expect(value.charactersLimit).toEqual({ min: 10, max: 5 });\n });\n\n it.each([Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY])(\n 'reports a non-finite character bound: %s',\n (min) => {\n expect(\n getFieldValidationSettingsViolations({ charactersLimit: { min } }),\n ).toContainEqual({\n rule: 'charactersLimit',\n type: 'outOfBounds',\n bound: 'min',\n min: 0,\n max: 256_000,\n });\n },\n );\n\n it('makes a minimum of zero invalid only while required is enabled', () => {\n const charactersLimit = { min: 0 };\n\n expect(\n hasFieldValidationSettingsError({ required: false, charactersLimit }),\n ).toBe(false);\n expect(\n hasFieldValidationSettingsError({ required: true, charactersLimit }),\n ).toBe(true);\n expect(\n hasFieldValidationSettingsError({ required: false, charactersLimit }),\n ).toBe(false);\n expect(charactersLimit).toEqual({ min: 0 });\n });\n\n it('reports blank and duplicate specific values after trimming', () => {\n expect(\n getFieldValidationSettingsViolations({\n specificValues: [\n { id: 'blank', value: ' ' },\n { id: 'first', value: 'One' },\n { id: 'duplicate', value: ' One ' },\n { id: 'different-case', value: 'one' },\n ],\n }),\n ).toEqual([\n { rule: 'specificValues', type: 'blank', optionId: 'blank' },\n {\n rule: 'specificValues',\n type: 'duplicate',\n optionId: 'duplicate',\n },\n ]);\n });\n\n it('reports every side of an exclusive-rules conflict', () => {\n expect(\n getFieldValidationSettingsViolations({\n charactersLimit: {},\n specificValues: [],\n pattern: '^value$',\n }),\n ).toEqual(\n expect.arrayContaining([\n { rule: 'specificValues', type: 'exclusiveRules' },\n { rule: 'charactersLimit', type: 'exclusiveRules' },\n { rule: 'pattern', type: 'exclusiveRules' },\n ]),\n );\n });\n\n it('reports invalid regular expressions without throwing', () => {\n expect(\n getFieldValidationSettingsViolations({ pattern: '[' }),\n ).toContainEqual({ rule: 'pattern', type: 'invalidPattern' });\n expect(hasFieldValidationSettingsError({ pattern: '' })).toBe(false);\n expect(hasFieldValidationSettingsError({ pattern: '^valid$' })).toBe(false);\n });\n\n it('allows specificValues alongside charactersLimit when the caller opts out of exclusivity', () => {\n const value = { charactersLimit: {}, specificValues: [] };\n\n expect(\n getFieldValidationSettingsViolations(value, undefined, {\n exclusiveSpecificValues: false,\n }),\n ).toEqual([]);\n expect(\n hasFieldValidationSettingsError(value, undefined, {\n exclusiveSpecificValues: false,\n }),\n ).toBe(false);\n });\n\n it('reports an overlong pattern as invalid without constructing a RegExp', () => {\n const pattern = '^'.repeat(501);\n\n expect(getFieldValidationSettingsViolations({ pattern })).toContainEqual({\n rule: 'pattern',\n type: 'invalidPattern',\n });\n });\n\n it('ignores values outside the caller supported rule set', () => {\n const value = {\n required: true,\n charactersLimit: { min: 0 },\n specificValues: [],\n pattern: '[',\n };\n\n expect(\n getFieldValidationSettingsViolations(value, ['charactersLimit']),\n ).toEqual([]);\n expect(hasFieldValidationSettingsError(value, ['charactersLimit'])).toBe(\n false,\n );\n });\n});\n"],"mappings":"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","ignoreList":[]}
@@ -1,12 +1,12 @@
1
1
  // @ts-nocheck
2
2
  import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js";
3
- var _namespace_ = "addressinput2777595461";
3
+ var _namespace_ = "addressinput1375149515";
4
4
  var _style_ = classesRuntime.bind(null, _namespace_);
5
5
  export var cssStates = statesRuntime.bind(null, _namespace_);
6
6
  export var style = _style_;
7
7
  export var st = _style_;
8
8
  export var namespace = _namespace_;
9
- export var classes = { "root": "addressinput2777595461__root", "tableAddressInput": "addressinput2777595461__tableAddressInput" };
9
+ export var classes = { "root": "addressinput1375149515__root", "tableAddressInput": "addressinput1375149515__tableAddressInput" };
10
10
  export var keyframes = {};
11
11
  export var layers = {};
12
12
  export var containers = {};
@@ -1,12 +1,12 @@
1
1
  // @ts-nocheck
2
2
  import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.js";
3
- var _namespace_ = "actionsmenu3604226520";
3
+ var _namespace_ = "actionsmenu3707053799";
4
4
  var _style_ = classesRuntime.bind(null, _namespace_);
5
5
  export var cssStates = statesRuntime.bind(null, _namespace_);
6
6
  export var style = _style_;
7
7
  export var st = _style_;
8
8
  export var namespace = _namespace_;
9
- export var classes = { "root": "actionsmenu3604226520__root", "action": "actionsmenu3604226520__action" };
9
+ export var classes = { "root": "actionsmenu3707053799__root", "action": "actionsmenu3707053799__action" };
10
10
  export var keyframes = {};
11
11
  export var layers = {};
12
12
  export var containers = {};
@@ -1,12 +1,12 @@
1
1
  // @ts-nocheck
2
2
  import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js";
3
- var _namespace_ = "formaudiofield2808568682";
3
+ var _namespace_ = "formaudiofield1598691903";
4
4
  var _style_ = classesRuntime.bind(null, _namespace_);
5
5
  export var cssStates = statesRuntime.bind(null, _namespace_);
6
6
  export var style = _style_;
7
7
  export var st = _style_;
8
8
  export var namespace = _namespace_;
9
- export var classes = { "root": "formaudiofield2808568682__root", "addItem": "formaudiofield2808568682__addItem", "mediaTitle": "formaudiofield2808568682__mediaTitle" };
9
+ export var classes = { "root": "formaudiofield1598691903__root", "addItem": "formaudiofield1598691903__addItem", "mediaTitle": "formaudiofield1598691903__mediaTitle" };
10
10
  export var keyframes = {};
11
11
  export var layers = {};
12
12
  export var containers = {};
@@ -1,12 +1,12 @@
1
1
  // @ts-nocheck
2
2
  import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js";
3
- var _namespace_ = "audioplayer2394194815";
3
+ var _namespace_ = "audioplayer1627877349";
4
4
  var _style_ = classesRuntime.bind(null, _namespace_);
5
5
  export var cssStates = statesRuntime.bind(null, _namespace_);
6
6
  export var style = _style_;
7
7
  export var st = _style_;
8
8
  export var namespace = _namespace_;
9
- export var classes = { "root": "audioplayer2394194815__root" };
9
+ export var classes = { "root": "audioplayer1627877349__root" };
10
10
  export var keyframes = {};
11
11
  export var layers = {};
12
12
  export var containers = {};
@@ -1,12 +1,12 @@
1
1
  // @ts-nocheck
2
2
  import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
3
- var _namespace_ = "cellcolorview2853374581";
3
+ var _namespace_ = "cellcolorview3348088318";
4
4
  var _style_ = classesRuntime.bind(null, _namespace_);
5
5
  export var cssStates = statesRuntime.bind(null, _namespace_);
6
6
  export var style = _style_;
7
7
  export var st = _style_;
8
8
  export var namespace = _namespace_;
9
- export var classes = { "root": "cellcolorview2853374581__root", "hashPrefix": "cellcolorview2853374581__hashPrefix" };
9
+ export var classes = { "root": "cellcolorview3348088318__root", "hashPrefix": "cellcolorview3348088318__hashPrefix" };
10
10
  export var keyframes = {};
11
11
  export var layers = {};
12
12
  export var containers = {};
@@ -1,12 +1,12 @@
1
1
  // @ts-nocheck
2
2
  import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
3
- var _namespace_ = "colorview1965999913";
3
+ var _namespace_ = "colorview2640372915";
4
4
  var _style_ = classesRuntime.bind(null, _namespace_);
5
5
  export var cssStates = statesRuntime.bind(null, _namespace_);
6
6
  export var style = _style_;
7
7
  export var st = _style_;
8
8
  export var namespace = _namespace_;
9
- export var classes = { "root": "colorview1965999913__root", "view": "colorview1965999913__view", "fillPreview": "colorview1965999913__fillPreview" };
9
+ export var classes = { "root": "colorview2640372915__root", "view": "colorview2640372915__view", "fillPreview": "colorview2640372915__fillPreview" };
10
10
  export var keyframes = {};
11
11
  export var layers = {};
12
12
  export var containers = {};
@@ -14,9 +14,14 @@ export const ControlledDateTimeInput = ({ data, onChange, onBlur, readOnly, auto
14
14
  const { i18n } = useTranslations();
15
15
  const value = useMemo(() => parseDate(data), [data]);
16
16
  return (React.createElement("div", { "data-hook": dataHook, onBlur: (event) => {
17
+ // The calendar and time dropdowns render outside this wrapper (a
18
+ // Drawer with role="dialog" on mobile, a Popover with a
19
+ // data-hook*="calendar" or the TimeInput dropdown on desktop), so
20
+ // `contains()` alone would treat moving focus into them as leaving
21
+ // the field.
17
22
  const relatedTarget = event.relatedTarget;
18
23
  if (relatedTarget instanceof Element &&
19
- relatedTarget.closest('[role="dialog"], [data-hook*="calendar"]')) {
24
+ relatedTarget.closest('[role="dialog"], [data-hook*="calendar"], [data-hook="TimeInput-dropdown"]')) {
20
25
  return;
21
26
  }
22
27
  if (!event.currentTarget.contains(event.relatedTarget)) {