@wix/patterns-fields 1.92.0 → 1.94.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 (223) 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/delete-dialog/delete-dialog.st.css.js +3 -3
  14. package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
  15. package/dist/cjs/components/document/form-document-field.st.css.js +7 -7
  16. package/dist/cjs/components/document/form-document-field.st.css.js.map +1 -1
  17. package/dist/cjs/components/exclamation/exclamation.st.css.js +5 -5
  18. package/dist/cjs/components/exclamation/exclamation.st.css.js.map +1 -1
  19. package/dist/cjs/components/field-validation-settings/field-validation-settings-input.js +9 -8
  20. package/dist/cjs/components/field-validation-settings/field-validation-settings-input.js.map +1 -1
  21. package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js +5 -5
  22. package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
  23. package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js +3 -3
  24. package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
  25. package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js +2 -2
  26. package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js.map +1 -1
  27. package/dist/cjs/components/media-control/paste-url-button.st.css.js +4 -4
  28. package/dist/cjs/components/media-control/paste-url-button.st.css.js.map +1 -1
  29. package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js +10 -10
  30. package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
  31. package/dist/cjs/components/media-image/media-image.st.css.js +4 -4
  32. package/dist/cjs/components/media-image/media-image.st.css.js.map +1 -1
  33. package/dist/cjs/components/media-image/overlays/overlay.st.css.js +3 -3
  34. package/dist/cjs/components/media-image/overlays/overlay.st.css.js.map +1 -1
  35. package/dist/cjs/components/media-loader/media-loader.st.css.js +3 -3
  36. package/dist/cjs/components/media-loader/media-loader.st.css.js.map +1 -1
  37. package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
  38. package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
  39. package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js +3 -3
  40. package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js.map +1 -1
  41. package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js +5 -5
  42. package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
  43. package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js +2 -2
  44. package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
  45. package/dist/cjs/components/reference/cell-reference-input.st.css.js +3 -3
  46. package/dist/cjs/components/reference/cell-reference-input.st.css.js.map +1 -1
  47. package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +4 -4
  48. package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
  49. package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +3 -3
  50. package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
  51. package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
  52. 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
  53. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +3 -3
  54. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
  55. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +3 -3
  56. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
  57. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
  58. package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
  59. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +7 -7
  60. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
  61. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +5 -5
  62. package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
  63. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +4 -4
  64. package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
  65. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +18 -18
  66. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
  67. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +4 -4
  68. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
  69. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +18 -18
  70. package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
  71. package/dist/cjs/components/text/form-long-text.js +14 -6
  72. package/dist/cjs/components/text/form-long-text.js.map +1 -1
  73. package/dist/cjs/components/text/form-short-text.js +15 -7
  74. package/dist/cjs/components/text/form-short-text.js.map +1 -1
  75. package/dist/cjs/components/text/text-view.st.css.js +3 -3
  76. package/dist/cjs/components/text/text-view.st.css.js.map +1 -1
  77. package/dist/cjs/components/url/form-url.js +20 -8
  78. package/dist/cjs/components/url/form-url.js.map +1 -1
  79. package/dist/cjs/styles.global.css +1 -1
  80. package/dist/cjs/types/validation.js.map +1 -1
  81. package/dist/cjs/validations/field-validation-settings.js +21 -11
  82. package/dist/cjs/validations/field-validation-settings.js.map +1 -1
  83. package/dist/cjs/validations/regex-safety.js +255 -0
  84. package/dist/cjs/validations/regex-safety.js.map +1 -0
  85. package/dist/esm/components/address/input/address-input.st.css.js +2 -2
  86. package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js +2 -2
  87. package/dist/esm/components/audio/audio-field/form-audio-field.st.css.js +2 -2
  88. package/dist/esm/components/audio/audio-player/audio-player.st.css.js +2 -2
  89. package/dist/esm/components/audio/audio-player/audio-player.st.css.js.map +1 -1
  90. package/dist/esm/components/color-view/cell-color-view.st.css.js +2 -2
  91. package/dist/esm/components/color-view/cell-color-view.st.css.js.map +1 -1
  92. package/dist/esm/components/color-view/color-view.st.css.js +2 -2
  93. package/dist/esm/components/color-view/color-view.st.css.js.map +1 -1
  94. package/dist/esm/components/delete-dialog/delete-dialog.st.css.js +2 -2
  95. package/dist/esm/components/document/form-document-field.st.css.js +2 -2
  96. package/dist/esm/components/exclamation/exclamation.st.css.js +2 -2
  97. package/dist/esm/components/field-validation-settings/field-validation-settings-input.js +8 -3
  98. package/dist/esm/components/field-validation-settings/field-validation-settings-input.js.map +1 -1
  99. package/dist/esm/components/highlighted-text/highlighted-text.st.css.js +3 -3
  100. package/dist/esm/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
  101. package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js +2 -2
  102. package/dist/esm/components/media-control/cell-media-edit-shell.st.css.js +2 -2
  103. package/dist/esm/components/media-control/paste-url-button.st.css.js +2 -2
  104. package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js +2 -2
  105. package/dist/esm/components/media-image/media-image.st.css.js +3 -3
  106. package/dist/esm/components/media-image/media-image.st.css.js.map +1 -1
  107. package/dist/esm/components/media-image/overlays/overlay.st.css.js +2 -2
  108. package/dist/esm/components/media-image/overlays/overlay.st.css.js.map +1 -1
  109. package/dist/esm/components/media-loader/media-loader.st.css.js +2 -2
  110. package/dist/esm/components/media-loader/media-loader.st.css.js.map +1 -1
  111. package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
  112. package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
  113. package/dist/esm/components/multi-document/cell-multi-document-edit.st.css.js +2 -2
  114. package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js +2 -2
  115. package/dist/esm/components/reference/cell-multi-reference-input.st.css.js +2 -2
  116. package/dist/esm/components/reference/cell-reference-input.st.css.js +2 -2
  117. package/dist/esm/components/reference/cell-reference-input.st.css.js.map +1 -1
  118. package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +2 -2
  119. package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +2 -2
  120. package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
  121. package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
  122. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +2 -2
  123. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +2 -2
  124. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
  125. package/dist/esm/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
  126. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +2 -2
  127. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
  128. package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +2 -2
  129. package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +2 -2
  130. package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
  131. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +2 -2
  132. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +2 -2
  133. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
  134. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +2 -2
  135. package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
  136. package/dist/esm/components/text/form-long-text.js +5 -0
  137. package/dist/esm/components/text/form-long-text.js.map +1 -1
  138. package/dist/esm/components/text/form-short-text.js +5 -0
  139. package/dist/esm/components/text/form-short-text.js.map +1 -1
  140. package/dist/esm/components/text/text-view.st.css.js +2 -2
  141. package/dist/esm/components/url/form-url.js +10 -2
  142. package/dist/esm/components/url/form-url.js.map +1 -1
  143. package/dist/esm/styles.global.css +1 -1
  144. package/dist/esm/validations/field-validation-settings.js +17 -11
  145. package/dist/esm/validations/field-validation-settings.js.map +1 -1
  146. package/dist/esm/validations/regex-safety.js +241 -0
  147. package/dist/esm/validations/regex-safety.js.map +1 -0
  148. package/dist/types/components/audio/audio-player/audio-player.st.css.d.ts.map +1 -1
  149. package/dist/types/components/color-view/cell-color-view.st.css.d.ts.map +1 -1
  150. package/dist/types/components/color-view/color-view.st.css.d.ts.map +1 -1
  151. package/dist/types/components/field-validation-settings/field-validation-settings-input.d.ts.map +1 -1
  152. package/dist/types/components/highlighted-text/highlighted-text.st.css.d.ts.map +1 -1
  153. package/dist/types/components/media-image/media-image.st.css.d.ts.map +1 -1
  154. package/dist/types/components/media-image/overlays/overlay.st.css.d.ts.map +1 -1
  155. package/dist/types/components/media-loader/media-loader.st.css.d.ts.map +1 -1
  156. package/dist/types/components/media-tag/web-media-tag/media-tag.st.css.d.ts.map +1 -1
  157. package/dist/types/components/reference/cell-reference-input.st.css.d.ts.map +1 -1
  158. package/dist/types/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.d.ts.map +1 -1
  159. package/dist/types/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.d.ts.map +1 -1
  160. package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.d.ts.map +1 -1
  161. package/dist/types/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.d.ts.map +1 -1
  162. package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.d.ts.map +1 -1
  163. package/dist/types/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.d.ts.map +1 -1
  164. package/dist/types/components/text/form-long-text.d.ts.map +1 -1
  165. package/dist/types/components/text/form-short-text.d.ts.map +1 -1
  166. package/dist/types/components/url/form-url.d.ts.map +1 -1
  167. package/dist/types/types/validation.d.ts +4 -1
  168. package/dist/types/types/validation.d.ts.map +1 -1
  169. package/dist/types/validations/field-validation-settings.d.ts +2 -0
  170. package/dist/types/validations/field-validation-settings.d.ts.map +1 -1
  171. package/dist/types/validations/regex-safety.d.ts +17 -0
  172. package/dist/types/validations/regex-safety.d.ts.map +1 -0
  173. package/package.json +4 -4
  174. package/src/__tests__/components/field-validation-settings/field-validation-settings-input.spec.tsx +42 -1
  175. package/src/__tests__/components/field-validation-settings/pattern-round-trip.spec.tsx +37 -0
  176. package/src/__tests__/components/text/form-long-text.spec.tsx +55 -0
  177. package/src/__tests__/components/text/form-short-text.spec.tsx +85 -0
  178. package/src/__tests__/components/url/form-url.spec.tsx +44 -0
  179. package/src/__tests__/validations/field-validation-settings-pattern.spec.ts +87 -0
  180. package/src/__tests__/validations/regex-safety.spec.ts +71 -0
  181. package/src/components/address/input/address-input.st.css.ts +2 -2
  182. package/src/components/audio/actions/actions-menu/actions-menu.st.css.ts +2 -2
  183. package/src/components/audio/audio-field/form-audio-field.st.css.ts +2 -2
  184. package/src/components/audio/audio-player/audio-player.st.css.ts +2 -2
  185. package/src/components/color-view/cell-color-view.st.css.ts +2 -2
  186. package/src/components/color-view/color-view.st.css.ts +2 -2
  187. package/src/components/delete-dialog/delete-dialog.st.css.ts +2 -2
  188. package/src/components/document/form-document-field.st.css.ts +2 -2
  189. package/src/components/exclamation/exclamation.st.css.ts +2 -2
  190. package/src/components/field-validation-settings/field-validation-settings-input.tsx +10 -6
  191. package/src/components/highlighted-text/highlighted-text.st.css.ts +3 -3
  192. package/src/components/image/thumbnail-replace-overlay.st.css.ts +2 -2
  193. package/src/components/media-control/cell-media-edit-shell.st.css.ts +2 -2
  194. package/src/components/media-control/paste-url-button.st.css.ts +2 -2
  195. package/src/components/media-gallery/form-media-gallery-field.st.css.ts +2 -2
  196. package/src/components/media-image/media-image.st.css.ts +3 -3
  197. package/src/components/media-image/overlays/overlay.st.css.ts +2 -2
  198. package/src/components/media-loader/media-loader.st.css.ts +2 -2
  199. package/src/components/media-tag/web-media-tag/media-tag.st.css.ts +2 -2
  200. package/src/components/multi-document/cell-multi-document-edit.st.css.ts +2 -2
  201. package/src/components/multi-document/multi-document-input/form-multi-document.st.css.ts +2 -2
  202. package/src/components/reference/cell-multi-reference-input.st.css.ts +2 -2
  203. package/src/components/reference/cell-reference-input.st.css.ts +2 -2
  204. package/src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts +2 -2
  205. package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts +2 -2
  206. package/src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts +2 -2
  207. package/src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts +2 -2
  208. package/src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts +2 -2
  209. package/src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts +2 -2
  210. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts +2 -2
  211. package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts +2 -2
  212. package/src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.ts +2 -2
  213. package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts +2 -2
  214. package/src/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.ts +2 -2
  215. package/src/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.ts +2 -2
  216. package/src/components/text/form-long-text.tsx +9 -0
  217. package/src/components/text/form-short-text.tsx +9 -0
  218. package/src/components/text/text-view.st.css.ts +2 -2
  219. package/src/components/url/form-url.tsx +18 -2
  220. package/src/styles.global.css +1 -1
  221. package/src/types/validation.ts +4 -1
  222. package/src/validations/field-validation-settings.ts +30 -12
  223. package/src/validations/regex-safety.ts +297 -0
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_mobxReactLite","_react2","_form","_string","_useTranslations","_formShortTextInput","_jsxFileName","specificValuesMessage","displayName","_FormShortText","props","_field$validation","_field$validation2","_controller$field$val","_field$validation4","_controller$fieldStat","_field$validation5","field","dataHook","formControl","data","translate","t","useWixPatternsContainer","tf","useTranslations","stringLengthRange","validation","minLength","maxLength","specificValues","controller","useController","name","id","control","defaultValue","rules","validate","value","_field$validation3","required","isEmpty","isShorterThan","charMin","isLongerThan","charMax","length","some","option","charCount","undefined","default","createElement","FormField","label","status","fieldState","error","statusMessage","message","__self","__source","fileName","lineNumber","columnNumber","FormShortTextInput","onChange","onBlur","options","invalid","Boolean","placeholder","emptyStateMessage","inputRef","ref","FormShortText","exports","observer"],"sources":["../../../../src/components/text/form-short-text.tsx"],"sourcesContent":["import React from 'react';\nimport { FormField } from '@wix/design-system';\nimport { observer } from 'mobx-react-lite';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useController } from '@wix/bex-core/form';\n\nimport { BaseInputProps } from '../../types/base-input';\nimport { isEmpty, isLongerThan, isShorterThan } from '../../validations/string';\nimport { useTranslations } from '../../hooks/use-translations';\nimport { FormShortTextInput } from './form-short-text-input';\n\nexport interface FormShortTextProps extends BaseInputProps<string> {}\n\nconst specificValuesMessage = (displayName: string) =>\n `${displayName} must be one of the allowed values`;\n\nconst _FormShortText = (props: FormShortTextProps) => {\n const { field, dataHook, formControl, data } = props;\n\n const { translate: t } = useWixPatternsContainer();\n const { t: tf } = useTranslations();\n\n const stringLengthRange = field.validation?.stringLengthRange;\n const minLength = stringLengthRange?.minLength;\n const maxLength = stringLengthRange?.maxLength;\n const specificValues = field.validation?.specificValues;\n\n const controller = useController({\n name: field.id,\n control: formControl,\n defaultValue: data?.[field.id],\n rules: {\n validate: (value) => {\n if (field.validation?.required && isEmpty(value)) {\n return t('cairo.fieldValidation.requiredField');\n }\n\n if (value && minLength && isShorterThan(value, minLength)) {\n return t('cairo.fieldValidation.minCharacter', {\n charMin: minLength,\n });\n }\n\n if (value && maxLength && isLongerThan(value, maxLength)) {\n return t('cairo.fieldValidation.maxCharacter', {\n charMax: maxLength,\n });\n }\n\n if (\n value &&\n specificValues?.length &&\n !specificValues.some((option) => option.id === value)\n ) {\n return specificValuesMessage(field.displayName);\n }\n\n return true;\n },\n },\n });\n\n const charCount = maxLength\n ? maxLength - controller.field.value?.length\n : undefined;\n\n return (\n <FormField\n label={field.displayName}\n required={field.validation?.required}\n charCount={charCount}\n status={controller.fieldState.error ? 'error' : undefined}\n statusMessage={controller.fieldState.error?.message}\n dataHook={dataHook}\n >\n <FormShortTextInput\n data={controller.field.value ?? ''}\n onChange={controller.field.onChange}\n onBlur={controller.field.onBlur}\n options={specificValues}\n required={field.validation?.required}\n invalid={Boolean(controller.fieldState.error)}\n placeholder={\n specificValues?.length\n ? tf('auto-patterns.fields.select_placeholder')\n : undefined\n }\n emptyStateMessage={tf('auto-patterns.fields.no_results_found')}\n inputRef={controller.field.ref}\n dataHook={`short-text-${field.id}`}\n />\n </FormField>\n );\n};\n\nexport const FormShortText = observer(_FormShortText);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAGA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AAA6D,IAAAQ,YAAA;AAI7D,MAAMC,qBAAqB,GAAIC,WAAmB,IAChD,GAAGA,WAAW,oCAAoC;AAEpD,MAAMC,cAAc,GAAIC,KAAyB,IAAK;EAAA,IAAAC,iBAAA,EAAAC,kBAAA,EAAAC,qBAAA,EAAAC,kBAAA,EAAAC,qBAAA,EAAAC,kBAAA;EACpD,MAAM;IAAEC,KAAK;IAAEC,QAAQ;IAAEC,WAAW;IAAEC;EAAK,CAAC,GAAGV,KAAK;EAEpD,MAAM;IAAEW,SAAS,EAAEC;EAAE,CAAC,GAAG,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AAzB,kBAAA,GAAEC,KAAK,CAACU,UAAU,qBAAhBX,kBAAA,CAAkByB,QAAS;IACrC6B,OAAO,EAAEC,OAAO,CAACxC,UAAU,CAAC0B,UAAU,CAACC,KAAK,CAAE;IAC9Cc,WAAW,EACT1C,cAAc,YAAdA,cAAc,CAAEiB,MAAM,GAClBvB,EAAE,CAAC,yCAAyC,CAAC,GAC7C2B,SACL;IACDsB,iBAAiB,EAAEjD,EAAE,CAAC,uCAAuC,CAAE;IAC/DkD,QAAQ,EAAE3C,UAAU,CAACd,KAAK,CAAC0D,GAAI;IAC/BzD,QAAQ,EAAE,cAAcD,KAAK,CAACiB,EAAE,EAAG;IAAA2B,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAzD,YAAA;MAAA0D,UAAA;MAAAC,YAAA;IAAA;EAAA,CACpC,CACQ,CAAC;AAEhB,CAAC;AAEM,MAAMW,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAAE,uBAAQ,EAACrE,cAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_mobxReactLite","_react2","_form","_string","_fieldValidationSettings","_useTranslations","_formShortTextInput","_jsxFileName","specificValuesMessage","displayName","_FormShortText","props","_field$validation","_field$validation2","_field$validation4","_controller$field$val","_field$validation6","_controller$fieldStat","_field$validation7","field","dataHook","formControl","data","translate","t","useWixPatternsContainer","tf","useTranslations","stringLengthRange","validation","minLength","maxLength","specificValues","patternRegex","React","useMemo","_field$validation3","compilePattern","pattern","controller","useController","name","id","control","defaultValue","rules","validate","value","_field$validation5","required","isEmpty","isShorterThan","charMin","isLongerThan","charMax","length","some","option","test","charCount","undefined","default","createElement","FormField","label","status","fieldState","error","statusMessage","message","__self","__source","fileName","lineNumber","columnNumber","FormShortTextInput","onChange","onBlur","options","invalid","Boolean","placeholder","emptyStateMessage","inputRef","ref","FormShortText","exports","observer"],"sources":["../../../../src/components/text/form-short-text.tsx"],"sourcesContent":["import React from 'react';\nimport { FormField } from '@wix/design-system';\nimport { observer } from 'mobx-react-lite';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useController } from '@wix/bex-core/form';\n\nimport { BaseInputProps } from '../../types/base-input';\nimport { isEmpty, isLongerThan, isShorterThan } from '../../validations/string';\nimport { compilePattern } from '../../validations/field-validation-settings';\nimport { useTranslations } from '../../hooks/use-translations';\nimport { FormShortTextInput } from './form-short-text-input';\n\nexport interface FormShortTextProps extends BaseInputProps<string> {}\n\nconst specificValuesMessage = (displayName: string) =>\n `${displayName} must be one of the allowed values`;\n\nconst _FormShortText = (props: FormShortTextProps) => {\n const { field, dataHook, formControl, data } = props;\n\n const { translate: t } = useWixPatternsContainer();\n const { t: tf } = useTranslations();\n\n const stringLengthRange = field.validation?.stringLengthRange;\n const minLength = stringLengthRange?.minLength;\n const maxLength = stringLengthRange?.maxLength;\n const specificValues = field.validation?.specificValues;\n const patternRegex = React.useMemo(\n () => compilePattern(field.validation?.pattern),\n [field.validation?.pattern],\n );\n\n const controller = useController({\n name: field.id,\n control: formControl,\n defaultValue: data?.[field.id],\n rules: {\n validate: (value) => {\n if (field.validation?.required && isEmpty(value)) {\n return t('cairo.fieldValidation.requiredField');\n }\n\n if (value && minLength && isShorterThan(value, minLength)) {\n return t('cairo.fieldValidation.minCharacter', {\n charMin: minLength,\n });\n }\n\n if (value && maxLength && isLongerThan(value, maxLength)) {\n return t('cairo.fieldValidation.maxCharacter', {\n charMax: maxLength,\n });\n }\n\n if (\n value &&\n specificValues?.length &&\n !specificValues.some((option) => option.id === value)\n ) {\n return specificValuesMessage(field.displayName);\n }\n\n if (value && patternRegex && !patternRegex.test(value)) {\n return t('cairo.fieldValidation.patternMismatch');\n }\n\n return true;\n },\n },\n });\n\n const charCount = maxLength\n ? maxLength - controller.field.value?.length\n : undefined;\n\n return (\n <FormField\n label={field.displayName}\n required={field.validation?.required}\n charCount={charCount}\n status={controller.fieldState.error ? 'error' : undefined}\n statusMessage={controller.fieldState.error?.message}\n dataHook={dataHook}\n >\n <FormShortTextInput\n data={controller.field.value ?? ''}\n onChange={controller.field.onChange}\n onBlur={controller.field.onBlur}\n options={specificValues}\n required={field.validation?.required}\n invalid={Boolean(controller.fieldState.error)}\n placeholder={\n specificValues?.length\n ? tf('auto-patterns.fields.select_placeholder')\n : undefined\n }\n emptyStateMessage={tf('auto-patterns.fields.no_results_found')}\n inputRef={controller.field.ref}\n dataHook={`short-text-${field.id}`}\n />\n </FormField>\n );\n};\n\nexport const FormShortText = observer(_FormShortText);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAGA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,wBAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,mBAAA,GAAAR,OAAA;AAA6D,IAAAS,YAAA;AAI7D,MAAMC,qBAAqB,GAAIC,WAAmB,IAChD,GAAGA,WAAW,oCAAoC;AAEpD,MAAMC,cAAc,GAAIC,KAAyB,IAAK;EAAA,IAAAC,iBAAA,EAAAC,kBAAA,EAAAC,kBAAA,EAAAC,qBAAA,EAAAC,kBAAA,EAAAC,qBAAA,EAAAC,kBAAA;EACpD,MAAM;IAAEC,KAAK;IAAEC,QAAQ;IAAEC,WAAW;IAAEC;EAAK,CAAC,GAAGX,KAAK;EAEpD,MAAM;IAAEY,SAAS,EAAEC;EAAE,CAAC,GAAG,IAAAC,+BAAuB,EAAC,CAAC;EAClD,MAAM;IAAED,CAAC,EAAEE;EAAG,CAAC,GAAG,IAAAC,gCAAe,EAAC,CAAC;EAEnC,MAAMC,iBAAiB,IAAAhB,iBAAA,GAAGO,KAAK,CAACU,UAAU,qBAAhBjB,iBAAA,CAAkBgB,iBAAiB;EAC7D,MAAME,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AI,EAAEiB,UAAU,CAACpB,KAAK,CAAC4B,KAAK,IAAI,EAAG;IACnC6B,QAAQ,EAAErC,UAAU,CAACpB,KAAK,CAACyD,QAAS;IACpCC,MAAM,EAAEtC,UAAU,CAACpB,KAAK,CAAC0D,MAAO;IAChCC,OAAO,EAAE9C,cAAe;IACxBiB,QAAQ,GAAA/B,kBAAA,GAAEC,KAAK,CAACU,UAAU,qBAAhBX,kBAAA,CAAkB+B,QAAS;IACrC8B,OAAO,EAAEC,OAAO,CAACzC,UAAU,CAAC2B,UAAU,CAACC,KAAK,CAAE;IAC9Cc,WAAW,EACTjD,cAAc,YAAdA,cAAc,CAAEuB,MAAM,GAClB7B,EAAE,CAAC,yCAAyC,CAAC,GAC7CkC,SACL;IACDsB,iBAAiB,EAAExD,EAAE,CAAC,uCAAuC,CAAE;IAC/DyD,QAAQ,EAAE5C,UAAU,CAACpB,KAAK,CAACiE,GAAI;IAC/BhE,QAAQ,EAAE,cAAcD,KAAK,CAACuB,EAAE,EAAG;IAAA4B,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAjE,YAAA;MAAAkE,UAAA;MAAAC,YAAA;IAAA;EAAA,CACpC,CACQ,CAAC;AAEhB,CAAC;AAEM,MAAMW,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAAE,uBAAQ,EAAC7E,cAAc,CAAC","ignoreList":[]}
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
5
5
  var _stylableEsmRuntime = require("../../stylable-esm-runtime.js");
6
6
  // @ts-nocheck
7
7
 
8
- var _namespace_ = "textview2693583994";
8
+ var _namespace_ = "textview3095721063";
9
9
  var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
10
10
  var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
11
11
  var style = exports.style = _style_;
12
12
  var st = exports.st = _style_;
13
13
  var namespace = exports.namespace = _namespace_;
14
14
  var classes = exports.classes = {
15
- "root": "textview2693583994__root",
16
- "textView": "textview2693583994__textView"
15
+ "root": "textview3095721063__root",
16
+ "textView": "textview3095721063__textView"
17
17
  };
18
18
  var keyframes = exports.keyframes = {};
19
19
  var layers = exports.layers = {};
@@ -1 +1 @@
1
- {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/text/text-view.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"textview2693583994\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"textview2693583994__root\",\"textView\":\"textview2693583994__textView\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,oBAAoB;AACtC,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,0BAA0B;EAAC,UAAU,EAAC;AAA8B,CAAC;AAC3F,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../src/components/text/text-view.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"textview3095721063\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"textview3095721063__root\",\"textView\":\"textview3095721063__textView\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,oBAAoB;AACtC,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,0BAA0B;EAAC,UAAU,EAAC;AAA8B,CAAC;AAC3F,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
@@ -9,11 +9,12 @@ var _mobxReactLite = require("mobx-react-lite");
9
9
  var _react2 = require("@wix/bex-core/react");
10
10
  var _form = require("@wix/bex-core/form");
11
11
  var _string = require("../../validations/string");
12
+ var _fieldValidationSettings = require("../../validations/field-validation-settings");
12
13
  var _url = require("../../validations/url");
13
14
  var _formUrlInput = require("./form-url-input");
14
15
  var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/fields/dist/cjs/components/url/form-url.tsx";
15
16
  const _FormUrl = props => {
16
- var _field$validation2, _controller$fieldStat;
17
+ var _field$validation2, _field$validation4, _controller$fieldStat;
17
18
  const {
18
19
  field,
19
20
  dataHook,
@@ -23,17 +24,28 @@ const _FormUrl = props => {
23
24
  const {
24
25
  translate: t
25
26
  } = (0, _react2.useWixPatternsContainer)();
27
+ const patternRegex = _react.default.useMemo(() => {
28
+ var _field$validation;
29
+ return (0, _fieldValidationSettings.compilePattern)((_field$validation = field.validation) == null ? void 0 : _field$validation.pattern);
30
+ }, [(_field$validation2 = field.validation) == null ? void 0 : _field$validation2.pattern]);
26
31
  const controller = (0, _form.useController)({
27
32
  name: field.id,
28
33
  control: formControl,
29
34
  defaultValue: data == null ? void 0 : data[field.id],
30
35
  rules: {
31
36
  validate: value => {
32
- var _field$validation;
33
- if ((_field$validation = field.validation) != null && _field$validation.required && (0, _string.isEmpty)(value)) {
37
+ var _field$validation3;
38
+ if ((_field$validation3 = field.validation) != null && _field$validation3.required && (0, _string.isEmpty)(value)) {
34
39
  return t('cairo.fieldValidation.requiredField');
35
- } else if (value) {
36
- return (0, _url.isValidUri)(value) || t('cairo.customFields.url-input.error');
40
+ }
41
+ if (!value) {
42
+ return true;
43
+ }
44
+ if (!(0, _url.isValidUri)(value)) {
45
+ return t('cairo.customFields.url-input.error');
46
+ }
47
+ if (patternRegex && !patternRegex.test(value)) {
48
+ return t('cairo.fieldValidation.patternMismatch');
37
49
  }
38
50
  return true;
39
51
  }
@@ -41,14 +53,14 @@ const _FormUrl = props => {
41
53
  });
42
54
  return /*#__PURE__*/_react.default.createElement(_designSystem.FormField, {
43
55
  label: field.displayName,
44
- required: (_field$validation2 = field.validation) == null ? void 0 : _field$validation2.required,
56
+ required: (_field$validation4 = field.validation) == null ? void 0 : _field$validation4.required,
45
57
  dataHook: dataHook,
46
58
  status: controller.fieldState.error ? 'error' : undefined,
47
59
  statusMessage: (_controller$fieldStat = controller.fieldState.error) == null ? void 0 : _controller$fieldStat.message,
48
60
  __self: void 0,
49
61
  __source: {
50
62
  fileName: _jsxFileName,
51
- lineNumber: 35,
63
+ lineNumber: 51,
52
64
  columnNumber: 5
53
65
  }
54
66
  }, /*#__PURE__*/_react.default.createElement(_formUrlInput.FormUrlInput, {
@@ -62,7 +74,7 @@ const _FormUrl = props => {
62
74
  __self: void 0,
63
75
  __source: {
64
76
  fileName: _jsxFileName,
65
- lineNumber: 42,
77
+ lineNumber: 58,
66
78
  columnNumber: 7
67
79
  }
68
80
  }));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_mobxReactLite","_react2","_form","_string","_url","_formUrlInput","_jsxFileName","_FormUrl","props","_field$validation2","_controller$fieldStat","field","dataHook","formControl","data","translate","t","useWixPatternsContainer","controller","useController","name","id","control","defaultValue","rules","validate","value","_field$validation","validation","required","isEmpty","isValidUri","default","createElement","FormField","label","displayName","status","fieldState","error","undefined","statusMessage","message","__self","__source","fileName","lineNumber","columnNumber","FormUrlInput","placeholder","onChange","onBlur","inputRef","ref","invalid","Boolean","FormUrl","exports","observer"],"sources":["../../../../src/components/url/form-url.tsx"],"sourcesContent":["import React from 'react';\nimport { FormField } from '@wix/design-system';\nimport { observer } from 'mobx-react-lite';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useController } from '@wix/bex-core/form';\n\nimport { BaseInputProps } from '../../types/base-input';\nimport { isEmpty } from '../../validations/string';\nimport { isValidUri } from '../../validations/url';\nimport { FormUrlInput } from './form-url-input';\n\nexport interface FormUrlProps extends BaseInputProps<string> {}\n\nconst _FormUrl = (props: FormUrlProps) => {\n const { field, dataHook, formControl, data } = props;\n const { translate: t } = useWixPatternsContainer();\n\n const controller = useController({\n name: field.id,\n control: formControl,\n defaultValue: data?.[field.id],\n rules: {\n validate: (value: string | null | undefined) => {\n if (field.validation?.required && isEmpty(value)) {\n return t('cairo.fieldValidation.requiredField');\n } else if (value) {\n return isValidUri(value) || t('cairo.customFields.url-input.error');\n }\n return true;\n },\n },\n });\n\n return (\n <FormField\n label={field.displayName}\n required={field.validation?.required}\n dataHook={dataHook}\n status={controller.fieldState.error ? 'error' : undefined}\n statusMessage={controller.fieldState.error?.message}\n >\n <FormUrlInput\n placeholder={t('cairo.customFields.url-input.placeholder')}\n dataHook={`url-${field.id}`}\n data={controller.field.value ?? ''}\n onChange={controller.field.onChange}\n onBlur={controller.field.onBlur}\n inputRef={controller.field.ref}\n invalid={Boolean(controller.fieldState.error)}\n />\n </FormField>\n );\n};\n\nexport const FormUrl = observer(_FormUrl);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,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EE,KAAK,CAACiB,UAAU,qBAAhBnB,kBAAA,CAAkBoB,QAAS;IACrCjB,QAAQ,EAAEA,QAAS;IACnByB,MAAM,EAAEnB,UAAU,CAACoB,UAAU,CAACC,KAAK,GAAG,OAAO,GAAGC,SAAU;IAC1DC,aAAa,GAAA/B,qBAAA,GAAEQ,UAAU,CAACoB,UAAU,CAACC,KAAK,qBAA3B7B,qBAAA,CAA6BgC,OAAQ;IAAAC,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAvC,YAAA;MAAAwC,UAAA;MAAAC,YAAA;IAAA;EAAA,gBAEpDnD,MAAA,CAAAoC,OAAA,CAAAC,aAAA,CAAC5B,aAAA,CAAA2C,YAAY;IACXC,WAAW,EAAEjC,CAAC,CAAC,0CAA0C,CAAE;IAC3DJ,QAAQ,EAAE,OAAOD,KAAK,CAACU,EAAE,EAAG;IAC5BP,IAAI,EAAEI,UAAU,CAACP,KAAK,CAACe,KAAK,IAAI,EAAG;IACnCwB,QAAQ,EAAEhC,UAAU,CAACP,KAAK,CAACuC,QAAS;IACpCC,MAAM,EAAEjC,UAAU,CAACP,KAAK,CAACwC,MAAO;IAChCC,QAAQ,EAAElC,UAAU,CAACP,KAAK,CAAC0C,GAAI;IAC/BC,OAAO,EAAEC,OAAO,CAACrC,UAAU,CAACoB,UAAU,CAACC,KAAK,CAAE;IAAAI,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAvC,YAAA;MAAAwC,UAAA;MAAAC,YAAA;IAAA;EAAA,CAC/C,CACQ,CAAC;AAEhB,CAAC;AAEM,MAAMS,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,IAAAE,uBAAQ,EAACnD,QAAQ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_mobxReactLite","_react2","_form","_string","_fieldValidationSettings","_url","_formUrlInput","_jsxFileName","_FormUrl","props","_field$validation2","_field$validation4","_controller$fieldStat","field","dataHook","formControl","data","translate","t","useWixPatternsContainer","patternRegex","React","useMemo","_field$validation","compilePattern","validation","pattern","controller","useController","name","id","control","defaultValue","rules","validate","value","_field$validation3","required","isEmpty","isValidUri","test","default","createElement","FormField","label","displayName","status","fieldState","error","undefined","statusMessage","message","__self","__source","fileName","lineNumber","columnNumber","FormUrlInput","placeholder","onChange","onBlur","inputRef","ref","invalid","Boolean","FormUrl","exports","observer"],"sources":["../../../../src/components/url/form-url.tsx"],"sourcesContent":["import React from 'react';\nimport { FormField } from '@wix/design-system';\nimport { observer } from 'mobx-react-lite';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useController } from '@wix/bex-core/form';\n\nimport { BaseInputProps } from '../../types/base-input';\nimport { isEmpty } from '../../validations/string';\nimport { compilePattern } from '../../validations/field-validation-settings';\nimport { isValidUri } from '../../validations/url';\nimport { FormUrlInput } from './form-url-input';\n\nexport interface FormUrlProps extends BaseInputProps<string> {}\n\nconst _FormUrl = (props: FormUrlProps) => {\n const { field, dataHook, formControl, data } = props;\n const { translate: t } = useWixPatternsContainer();\n const patternRegex = React.useMemo(\n () => compilePattern(field.validation?.pattern),\n [field.validation?.pattern],\n );\n\n const controller = useController({\n name: field.id,\n control: formControl,\n defaultValue: data?.[field.id],\n rules: {\n validate: (value: string | null | undefined) => {\n if (field.validation?.required && isEmpty(value)) {\n return t('cairo.fieldValidation.requiredField');\n }\n\n if (!value) {\n return true;\n }\n\n if (!isValidUri(value)) {\n return t('cairo.customFields.url-input.error');\n }\n\n if (patternRegex && !patternRegex.test(value)) {\n return t('cairo.fieldValidation.patternMismatch');\n }\n\n return true;\n },\n },\n });\n\n return (\n <FormField\n label={field.displayName}\n required={field.validation?.required}\n dataHook={dataHook}\n status={controller.fieldState.error ? 'error' : undefined}\n statusMessage={controller.fieldState.error?.message}\n >\n <FormUrlInput\n placeholder={t('cairo.customFields.url-input.placeholder')}\n dataHook={`url-${field.id}`}\n data={controller.field.value ?? ''}\n onChange={controller.field.onChange}\n onBlur={controller.field.onBlur}\n inputRef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IACnCwB,QAAQ,EAAEhC,UAAU,CAACd,KAAK,CAAC8C,QAAS;IACpCC,MAAM,EAAEjC,UAAU,CAACd,KAAK,CAAC+C,MAAO;IAChCC,QAAQ,EAAElC,UAAU,CAACd,KAAK,CAACiD,GAAI;IAC/BC,OAAO,EAAEC,OAAO,CAACrC,UAAU,CAACoB,UAAU,CAACC,KAAK,CAAE;IAAAI,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA/C,YAAA;MAAAgD,UAAA;MAAAC,YAAA;IAAA;EAAA,CAC/C,CACQ,CAAC;AAEhB,CAAC;AAEM,MAAMS,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,IAAAE,uBAAQ,EAAC3D,QAAQ,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- .addressinput895093225__tableAddressInput{height:36px!important;margin-left:-1px;display:flex!important;align-items:center;width:100%}.addressinput895093225__tableAddressInput>div{padding:0!important;width:100%}.addressinput895093225__tableAddressInput:focus-within{margin-left:2px}.actionsmenu1124873622__action{margin-left:calc(var(--wds-space-100, 6px)*-1)}.formaudiofield2796832566__addItem{height:120px!important;box-sizing:border-box}.formaudiofield2796832566__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)}.formaudiofield2796832566__addItem.formaudiofield2796832566--disabled{pointer-events:auto!important}.formaudiofield2796832566__addItem.formaudiofield2796832566--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formaudiofield2796832566__mediaTitle{line-height:18px!important}.audioplayer2314821566__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}.cellcolorview3726532357__hashPrefix{color:var(--wsr-color-D40, #868aa5);font-size:14px;font-weight:300;line-height:1}.colorview2752136020__view{width:100%}.colorview2752136020__fillPreview{flex-shrink:0}.colorview2752136020__view .colorview2752136020__fillPreview{width:18px;height:18px;min-width:18px!important;min-height:18px!important}.deletedialog4001571140__layout{max-width:510px!important}.formdocumentfield4287416404__viewWrapper{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formdocumentfield4287416404__viewWrapper:hover{background:var(--wds-color-blue-500, var(--wsr-color-B50));cursor:pointer}.formdocumentfield4287416404__textWidth{max-width:calc(100% - 196px)}.formdocumentfield4287416404__documentLoader{padding-top:21px;padding-bottom:21px}.formdocumentfield4287416404__addDocument{padding-top:17px!important;padding-bottom:17px!important}.formdocumentfield4287416404__addDocument.formdocumentfield4287416404--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formdocumentfield4287416404__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))}.exclamation1635117531__exclamation{display:flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:3px;cursor:pointer}.exclamation1635117531__exclamation.exclamation1635117531---type-7-warning:not(.exclamation1635117531--customSize),.exclamation1635117531__exclamation.exclamation1635117531---type-5-error:not(.exclamation1635117531--customSize){width:24px;height:24px}.exclamation1635117531__exclamation.exclamation1635117531---type-7-warning{color:var(--wds-color-fill-warning-primary)}.exclamation1635117531__exclamation.exclamation1635117531---type-5-error{color:var(--wds-color-fill-destructive-primary)}.exclamation1635117531__actions{display:flex;flex-direction:column}.exclamation1635117531__action{white-space:normal!important;height:auto!important;text-align:left;gap:6px}.exclamation1635117531__action+.exclamation1635117531__action{margin-top:6px}.exclamation1635117531__action.exclamation1635117531--accented{color:var(--wds-color-blue-100)}.exclamation1635117531__action.exclamation1635117531--accented:hover{color:var(--wds-color-blue-200)}.highlightedtext2576463911__root.highlightedtext2576463911--highlightedBackground{animation:highlightedtext2576463911__highlighted 150ms ease-out 1 forwards}.highlightedtext2576463911__substring.highlightedtext2576463911--isHighlighted{animation:highlightedtext2576463911__highlighted-match 150ms ease-out 50ms 1 forwards}@keyframes highlightedtext2576463911__highlighted{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-400, var(--wsr-color-Y40))}}@keyframes highlightedtext2576463911__highlighted-match{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-200, var(--wsr-color-Y20))}}.thumbnailreplaceoverlay1803038003__root{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);border-radius:3px}.thumbnailreplaceoverlay1803038003__icon{color:#fff;width:18px;height:18px}.cellmediaeditshell3943410809__root{width:100%;height:100%}.pasteurlbutton1571372213__root{margin-top:6px}.pasteurlbutton1571372213__iconButtonTooltip{height:max-content}.pasteurlbutton1571372213__iconButton{width:24px;height:24px}.formmediagalleryfield1062205643__container{display:flex;min-height:128px;max-height:259px}.formmediagalleryfield1062205643__viewBox{display:flex;height:100%;width:100%;flex-wrap:wrap}.formmediagalleryfield1062205643__addItemWrapper{height:128px;width:100%;box-sizing:border-box}.formmediagalleryfield1062205643__addItem{box-sizing:border-box}.formmediagalleryfield1062205643__overlay{width:initial!important;min-width:382px!important}.formmediagalleryfield1062205643__image.formmediagalleryfield1062205643--withMarginRight{margin-right:3px}.formmediagalleryfield1062205643__image.formmediagalleryfield1062205643--withMarginTop{margin-top:3px}.formmediagalleryfield1062205643__previewImage{max-height:calc(100% - 12px)!important}.formmediagalleryfield1062205643__previewVideo{border-radius:8px;max-width:100%;max-height:calc(100% - 12px)!important}.mediaimage13032201__root{display:flex;align-items:center;flex-shrink:0;position:relative;box-sizing:border-box}.mediaimage13032201__root.mediaimage13032201--error{--mediaimage13032201-from:calc(50% - 0.5px);--mediaimage13032201-to:calc(50% + 0.5px);background-image:linear-gradient(to bottom right,transparent var(--mediaimage13032201-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage13032201-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage13032201-to),transparent var(--mediaimage13032201-to))}.mediaimage13032201__root.mediaimage13032201--error>*{opacity:0}.overlay11203936__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))}.overlay11203936__iconOverlay.overlay11203936---size-5-small{width:20px;height:20px}.overlay11203936__iconOverlay.overlay11203936---size-6-medium{width:24px;height:24px}.overlay11203936__iconOverlay.overlay11203936---size-5-large{width:28px;height:28px}.overlay11203936__iconOverlay.overlay11203936---placement-7-topLeft{top:2px;left:2px}.overlay11203936__iconOverlay.overlay11203936---placement-10-bottomLeft{bottom:2px;left:2px}.medialoader3297659240__loader{border-radius:6px}.medialoader3297659240__loader.medialoader3297659240--isDashed{border:dashed 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.medialoader3297659240__loader.medialoader3297659240--isSolid{border:solid 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.mediatag535023836__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))}.cellmultidocumentedit4202162288__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}.formmultidocument3376104653__viewRoot{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formmultidocument3376104653__singleViewWrapper{border-radius:0;border-bottom:1px solid var(--wds-color-neutral-600, var(--wsr-color-D60));background-color:transparent!important}.formmultidocument3376104653__viewRoot>div:first-child .formmultidocument3376104653__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))}.formmultidocument3376104653__singleViewWrapper:hover{background-color:var(--wds-color-blue-500, var(--wsr-color-B50))!important}.formmultidocument3376104653__singleViewWrapper:focus-visible{border-bottom:1px solid transparent;position:relative;z-index:1}.formmultidocument3376104653__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))}.formmultidocument3376104653__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))}.cellmultireferenceinput2402420917__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}.cellreferenceinput387050255__root{width:100%;height:100%;display:flex;align-items:center}.cellreferenceinput387050255__autocomplete{width:100%}.richcontentdefaultvalueinput1607913093__richContentEditorContainer .richcontentdefaultvalueinput1607913093__editor{max-height:calc(40vh - var(--topToolbarHeight) - var(--bottomToolbarHeight))}.richcontentforminput3986345257__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))}.richcontentforminput3986345257__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))}.richcontentforminput3986345257__root .richcontentforminput3986345257__editor{overflow-y:auto;max-height:calc(80vh - var(--topToolbarHeight) - var(--bottomToolbarHeight))}.richcontentformreadonlyinput580578301__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-color-black-600);border-radius:var(--wds-border-radius-300)}.richcontentformreadonlyinput580578301__root:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.fullscreenmodal3853373179__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}.publishloader917710904__publishLoader{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--wds-color-white);z-index:5000;border-radius:inherit}.togglefullscreenbutton2569657262__root{z-index:5;box-sizing:border-box;position:absolute;right:0;top:calc(50% - 16px)!important;padding-right:3px}.togglefullscreenbutton2569657262__root button{border-radius:6px!important}.richcontenteditor464613332__root{position:relative;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)}.richcontenteditor464613332__root,.richcontenteditor464613332__toolbarContainer,.richcontenteditor464613332__footerToolbarContainer{width:100%;box-sizing:border-box}.richcontenteditor464613332__toolbarContainer div{box-sizing:border-box}.richcontenteditor464613332__toolbarAndFullScreenButtonWrapper{display:flex;position:relative}.richcontenteditor464613332__editor{box-sizing:border-box;padding:36px 24px 36px 55px}.richcontenteditor464613332__modalEditor{display:flex;flex-direction:column;flex:1;height:100%}.richcontenteditor464613332__modalEditor .richcontenteditor464613332__editor{overflow-y:auto;flex:1;min-width:592px;box-sizing:border-box}.richcontenteditor464613332__modalEditor .richcontenteditor464613332__footerToolbarContainer{margin-top:9px}.richcontenteditor464613332__toolbarContainer button[data-hook~=text-button-headings]>span{display:inline-flex;padding-inline-end:3px!important}.richcontenteditor464613332__toolbarContainer button[data-hook~=text-button-ai]>span{padding-inline-end:9px!important}.richcontenttoolbar3755811011__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}.richcontenttoolbar3755811011__toolbarButton{line-height:40px;background:0 0;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;margin:0 5px 0 0}.richcontenttoolbar3755811011__toolbarButton:disabled{color:graytext}.richcontenttoolbar3755811011__separator{width:1px;height:20px;margin:0 8px 0 3px;background:rgba(51,51,51,.1)}.richcontenttoolbar3755811011__toolbar label{padding:0 8px}.richcontentviewer333893354__root{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:36px}.richcontentviewer333893354__root.richcontentviewer333893354--isFullScreen{padding:12px 24px}.richcontentviewer333893354__root:not(.richcontentviewer333893354--isFullScreen){padding:6px 24px 6px 12px}.richcontentviewer333893354__root ToggleButton{margin:0;padding:0;border:0;position:absolute;top:2px!important;right:2px;width:30px;height:30px}.richcontentviewer333893354__viewer{height:calc(100% - 36px);width:100%}.richcontentviewer333893354__modalViewer{min-width:592px;overflow:auto}.richtexteditor2583474094__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))}.richtexteditor2583474094__root.richtexteditor2583474094---border-4-none{border:0}.richtexteditor2583474094__root.richtexteditor2583474094---border-8-standard{border:1px solid var(--wds-input-border-color, var(--wsr-color-B40, #D6E6FE))}.richtexteditor2583474094__root.richtexteditor2583474094---border-8-standard:focus,.richtexteditor2583474094__root.richtexteditor2583474094---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))}.richtexteditor2583474094__root.richtexteditor2583474094---border-8-standard.richtexteditor2583474094---status-5-error{border:1px solid var(--wds-color-border-destructive-secondary-active, var(--wsr-color-R10, #E62214))}.richtexteditor2583474094__root.richtexteditor2583474094---border-8-standard.richtexteditor2583474094---status-5-error:focus,.richtexteditor2583474094__root.richtexteditor2583474094---border-8-standard.richtexteditor2583474094---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))}.richtexteditor2583474094__root.richtexteditor2583474094---border-8-standard.richtexteditor2583474094---status-7-warning{border:1px solid var(--wds-color-border-warning-secondary-active, var(--wsr-color-Y10, #FFB700))}.richtexteditor2583474094__root.richtexteditor2583474094---border-8-standard.richtexteditor2583474094---status-7-warning:focus,.richtexteditor2583474094__root.richtexteditor2583474094---border-8-standard.richtexteditor2583474094---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))}.richtexteditor2583474094__nativeInput{position:absolute;opacity:0;padding:0;margin:0;border:0;width:0;height:0}.richtexteditor2583474094__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))}.richtexteditor2583474094__editor.richtexteditor2583474094--isFullScreen{max-width:782px;min-width:582px;background:var(--wds-color-black-700)}.richtexteditor2583474094__editor:not(.richtexteditor2583474094--isFullScreen){max-height:80vh}.richtexteditor2583474094__editor>div{flex:1;max-width:100%}.toolbar332331519__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}.toolbar332331519__item{display:flex;margin-right:12px}.toolbar332331519__item svg,.toolbar332331519__item svg path,.toolbar332331519__item svg text{color:inherit;fill:currentColor}.toolbar332331519__separator{display:inline-flex;margin-right:12px;border-left:1px solid #ddd;align-self:stretch}.toolbar332331519__clearFormatting{margin-left:auto}.toolbar332331519__fullScreen{margin-right:0}.toolbar332331519__dropdownItemContent{height:36px;width:100%;display:flex;gap:12px;justify-content:space-between;align-items:center}.toolbar332331519__dropdownItemContent.toolbar332331519--selected .toolbar332331519__dropdownItemTitle,.toolbar332331519__dropdownItemContent.toolbar332331519--selected .toolbar332331519__dropdownItemSubtitle{color:var(--wds-color-white)!important}.toolbar332331519__dropdownItemSubtitle{color:var(--wds-color-black-400)!important;padding-right:12px;flex-shrink:0}.toolbar332331519__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}.toolbar332331519__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}.toolbar332331519__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}.toolbar332331519__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}.toolbar332331519__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}.toolbar332331519__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}.toolbar332331519__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}.toolbar332331519__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}.toolbar332331519__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}.textview2693583994__textView::after{content:"";display:block}.richeditor3246204544__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))}.richeditor3246204544__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))}.richeditor3246204544__editor .DraftEditor-root{width:100%;height:100%}.richeditor3246204544__editor .DraftEditor-root [data-contents]{overflow:auto}.richeditor3246204544__editor .DraftEditor-editorContainer{display:flex;min-height:100%;background:#fff}.richeditor3246204544__editor .public-DraftEditor-content{padding:12px 24px 24px;min-height:100%;width:100%;box-sizing:border-box}.richeditor3246204544__editor .public-DraftEditor-content ol,.richeditor3246204544__editor .public-DraftEditor-content ul{display:flex;flex-direction:column;padding:0}.richeditor3246204544__editor .public-DraftEditor-content a,.richeditor3246204544__editor .public-DraftEditor-content a:visited{color:inherit;text-decoration:none}.richeditor3246204544__header-one:not(li),.richeditor3246204544__header-two:not(li),.richeditor3246204544__header-three:not(li),.richeditor3246204544__header-four:not(li),.richeditor3246204544__header-five:not(li),.richeditor3246204544__header-six:not(li){margin-block:0;margin:0}.richeditor3246204544__header-one,.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__header-two,.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__header-three,.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__header-four,.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__header-five,.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__header-six,.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__paragraph-one,.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__unstyled,.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__paragraph-three,.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__editor li.richeditor3246204544__header-one:first-child~li::marker{line-height:var(--rt-h1-fontSize, 72px)}.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__editor li.richeditor3246204544__header-two:first-child~li::marker{line-height:var(--rt-h2-fontSize, 42px)}.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__editor li.richeditor3246204544__header-three:first-child~li::marker{line-height:var(--rt-h3-fontSize, 38px)}.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__editor li.richeditor3246204544__header-four:first-child~li::marker{line-height:var(--rt-h4-fontSize, 34px)}.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__editor li.richeditor3246204544__header-five:first-child~li::marker{line-height:var(--rt-h5-fontSize, 28px)}.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__editor li.richeditor3246204544__header-six:first-child~li::marker{line-height:var(--rt-h6-fontSize, 22px)}.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__editor li.richeditor3246204544__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)))}.richeditor3246204544__editor li.richeditor3246204544__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}.richeditor3246204544__align-left{text-align:left;align-self:flex-start}.richeditor3246204544__align-right{text-align:right;align-self:flex-end}.richeditor3246204544__align-center{text-align:center;align-self:center}.richeditor3246204544__align-justify{text-align:justify;align-self:stretch}.richeditor3246204544__withMargin{display:inline-block}.richeditor3246204544__dir-rtl,.richeditor3246204544__editor .public-DraftStyleDefault-rtl{direction:rtl}.richeditor3246204544__editor .public-DraftStyleDefault-listRTL{direction:rtl;text-align:right;max-width:100%}
1
+ .addressinput135427117__tableAddressInput{height:36px!important;margin-left:-1px;display:flex!important;align-items:center;width:100%}.addressinput135427117__tableAddressInput>div{padding:0!important;width:100%}.addressinput135427117__tableAddressInput:focus-within{margin-left:2px}.actionsmenu2358938485__action{margin-left:calc(var(--wds-space-100, 6px)*-1)}.formaudiofield1123005832__addItem{height:120px!important;box-sizing:border-box}.formaudiofield1123005832__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)}.formaudiofield1123005832__addItem.formaudiofield1123005832--disabled{pointer-events:auto!important}.formaudiofield1123005832__addItem.formaudiofield1123005832--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formaudiofield1123005832__mediaTitle{line-height:18px!important}.audioplayer905439661__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}.cellcolorview614177914__hashPrefix{color:var(--wsr-color-D40, #868aa5);font-size:14px;font-weight:300;line-height:1}.colorview434636090__view{width:100%}.colorview434636090__fillPreview{flex-shrink:0}.colorview434636090__view .colorview434636090__fillPreview{width:18px;height:18px;min-width:18px!important;min-height:18px!important}.deletedialog3489034795__layout{max-width:510px!important}.formdocumentfield1976509087__viewWrapper{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formdocumentfield1976509087__viewWrapper:hover{background:var(--wds-color-blue-500, var(--wsr-color-B50));cursor:pointer}.formdocumentfield1976509087__textWidth{max-width:calc(100% - 196px)}.formdocumentfield1976509087__documentLoader{padding-top:21px;padding-bottom:21px}.formdocumentfield1976509087__addDocument{padding-top:17px!important;padding-bottom:17px!important}.formdocumentfield1976509087__addDocument.formdocumentfield1976509087--error{border:1px solid var(--wds-color-red-100, var(--wsr-color-R10))!important}.formdocumentfield1976509087__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))}.exclamation3877731892__exclamation{display:flex;justify-content:center;align-items:center;box-sizing:border-box;border-radius:3px;cursor:pointer}.exclamation3877731892__exclamation.exclamation3877731892---type-7-warning:not(.exclamation3877731892--customSize),.exclamation3877731892__exclamation.exclamation3877731892---type-5-error:not(.exclamation3877731892--customSize){width:24px;height:24px}.exclamation3877731892__exclamation.exclamation3877731892---type-7-warning{color:var(--wds-color-fill-warning-primary)}.exclamation3877731892__exclamation.exclamation3877731892---type-5-error{color:var(--wds-color-fill-destructive-primary)}.exclamation3877731892__actions{display:flex;flex-direction:column}.exclamation3877731892__action{white-space:normal!important;height:auto!important;text-align:left;gap:6px}.exclamation3877731892__action+.exclamation3877731892__action{margin-top:6px}.exclamation3877731892__action.exclamation3877731892--accented{color:var(--wds-color-blue-100)}.exclamation3877731892__action.exclamation3877731892--accented:hover{color:var(--wds-color-blue-200)}.highlightedtext336599750__root.highlightedtext336599750--highlightedBackground{animation:highlightedtext336599750__highlighted 150ms ease-out 1 forwards}.highlightedtext336599750__substring.highlightedtext336599750--isHighlighted{animation:highlightedtext336599750__highlighted-match 150ms ease-out 50ms 1 forwards}@keyframes highlightedtext336599750__highlighted{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-400, var(--wsr-color-Y40))}}@keyframes highlightedtext336599750__highlighted-match{0%{background-color:transparent}to{background-color:var(--wds-color-yellow-200, var(--wsr-color-Y20))}}.thumbnailreplaceoverlay4087281964__root{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);border-radius:3px}.thumbnailreplaceoverlay4087281964__icon{color:#fff;width:18px;height:18px}.cellmediaeditshell2326789165__root{width:100%;height:100%}.pasteurlbutton1933392353__root{margin-top:6px}.pasteurlbutton1933392353__iconButtonTooltip{height:max-content}.pasteurlbutton1933392353__iconButton{width:24px;height:24px}.formmediagalleryfield3998473428__container{display:flex;min-height:128px;max-height:259px}.formmediagalleryfield3998473428__viewBox{display:flex;height:100%;width:100%;flex-wrap:wrap}.formmediagalleryfield3998473428__addItemWrapper{height:128px;width:100%;box-sizing:border-box}.formmediagalleryfield3998473428__addItem{box-sizing:border-box}.formmediagalleryfield3998473428__overlay{width:initial!important;min-width:382px!important}.formmediagalleryfield3998473428__image.formmediagalleryfield3998473428--withMarginRight{margin-right:3px}.formmediagalleryfield3998473428__image.formmediagalleryfield3998473428--withMarginTop{margin-top:3px}.formmediagalleryfield3998473428__previewImage{max-height:calc(100% - 12px)!important}.formmediagalleryfield3998473428__previewVideo{border-radius:8px;max-width:100%;max-height:calc(100% - 12px)!important}.mediaimage3148041009__root{display:flex;align-items:center;flex-shrink:0;position:relative;box-sizing:border-box}.mediaimage3148041009__root.mediaimage3148041009--error{--mediaimage3148041009-from:calc(50% - 0.5px);--mediaimage3148041009-to:calc(50% + 0.5px);background-image:linear-gradient(to bottom right,transparent var(--mediaimage3148041009-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage3148041009-from),var(--wds-color-red-200, var(--wsr-color-R20)) var(--mediaimage3148041009-to),transparent var(--mediaimage3148041009-to))}.mediaimage3148041009__root.mediaimage3148041009--error>*{opacity:0}.overlay2129544777__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))}.overlay2129544777__iconOverlay.overlay2129544777---size-5-small{width:20px;height:20px}.overlay2129544777__iconOverlay.overlay2129544777---size-6-medium{width:24px;height:24px}.overlay2129544777__iconOverlay.overlay2129544777---size-5-large{width:28px;height:28px}.overlay2129544777__iconOverlay.overlay2129544777---placement-7-topLeft{top:2px;left:2px}.overlay2129544777__iconOverlay.overlay2129544777---placement-10-bottomLeft{bottom:2px;left:2px}.medialoader598775488__loader{border-radius:6px}.medialoader598775488__loader.medialoader598775488--isDashed{border:dashed 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.medialoader598775488__loader.medialoader598775488--isSolid{border:solid 1px var(--wds-color-blue-300, var(--wsr-color-B30))}.mediatag1682102498__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))}.cellmultidocumentedit1914587532__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}.formmultidocument3094149956__viewRoot{border-radius:var(--wds-border-radius-300, calc(2px * 3));border:1px solid var(--wds-color-blue-300, var(--wsr-color-B30))}.formmultidocument3094149956__singleViewWrapper{border-radius:0;border-bottom:1px solid var(--wds-color-neutral-600, var(--wsr-color-D60));background-color:transparent!important}.formmultidocument3094149956__viewRoot>div:first-child .formmultidocument3094149956__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))}.formmultidocument3094149956__singleViewWrapper:hover{background-color:var(--wds-color-blue-500, var(--wsr-color-B50))!important}.formmultidocument3094149956__singleViewWrapper:focus-visible{border-bottom:1px solid transparent;position:relative;z-index:1}.formmultidocument3094149956__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))}.formmultidocument3094149956__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))}.cellmultireferenceinput3144614699__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}.cellreferenceinput3062114626__root{width:100%;height:100%;display:flex;align-items:center}.cellreferenceinput3062114626__autocomplete{width:100%}.richcontentdefaultvalueinput2404149612__richContentEditorContainer .richcontentdefaultvalueinput2404149612__editor{max-height:calc(40vh - var(--topToolbarHeight) - var(--bottomToolbarHeight))}.richcontentforminput1162537413__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))}.richcontentforminput1162537413__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))}.richcontentforminput1162537413__root .richcontentforminput1162537413__editor{overflow-y:auto;max-height:calc(80vh - var(--topToolbarHeight) - var(--bottomToolbarHeight))}.richcontentformreadonlyinput1239757923__root{outline:0;box-sizing:border-box;border:1px solid var(--wds-color-black-600);border-radius:var(--wds-border-radius-300)}.richcontentformreadonlyinput1239757923__root:focus-within{border:1px solid var(--wds-color-blue-100);box-shadow:var(--wds-input-shadow-focus-standard)}.fullscreenmodal3071761638__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}.publishloader2836839240__publishLoader{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--wds-color-white);z-index:5000;border-radius:inherit}.togglefullscreenbutton2223387734__root{z-index:5;box-sizing:border-box;position:absolute;right:0;top:calc(50% - 16px)!important;padding-right:3px}.togglefullscreenbutton2223387734__root button{border-radius:6px!important}.richcontenteditor2863737128__root{position:relative;font-family:var(--wds-font-family-default, Madefor, Helvetica Neue, Helvetica, Arial, sans-serif)}.richcontenteditor2863737128__root,.richcontenteditor2863737128__toolbarContainer,.richcontenteditor2863737128__footerToolbarContainer{width:100%;box-sizing:border-box}.richcontenteditor2863737128__toolbarContainer div{box-sizing:border-box}.richcontenteditor2863737128__toolbarAndFullScreenButtonWrapper{display:flex;position:relative}.richcontenteditor2863737128__editor{box-sizing:border-box;padding:36px 24px 36px 55px}.richcontenteditor2863737128__modalEditor{display:flex;flex-direction:column;flex:1;height:100%}.richcontenteditor2863737128__modalEditor .richcontenteditor2863737128__editor{overflow-y:auto;flex:1;min-width:592px;box-sizing:border-box}.richcontenteditor2863737128__modalEditor .richcontenteditor2863737128__footerToolbarContainer{margin-top:9px}.richcontenteditor2863737128__toolbarContainer button[data-hook~=text-button-headings]>span{display:inline-flex;padding-inline-end:3px!important}.richcontenteditor2863737128__toolbarContainer button[data-hook~=text-button-ai]>span{padding-inline-end:9px!important}.richcontenttoolbar2262554924__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}.richcontenttoolbar2262554924__toolbarButton{line-height:40px;background:0 0;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;margin:0 5px 0 0}.richcontenttoolbar2262554924__toolbarButton:disabled{color:graytext}.richcontenttoolbar2262554924__separator{width:1px;height:20px;margin:0 8px 0 3px;background:rgba(51,51,51,.1)}.richcontenttoolbar2262554924__toolbar label{padding:0 8px}.richcontentviewer3183431663__root{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:36px}.richcontentviewer3183431663__root.richcontentviewer3183431663--isFullScreen{padding:12px 24px}.richcontentviewer3183431663__root:not(.richcontentviewer3183431663--isFullScreen){padding:6px 24px 6px 12px}.richcontentviewer3183431663__root ToggleButton{margin:0;padding:0;border:0;position:absolute;top:2px!important;right:2px;width:30px;height:30px}.richcontentviewer3183431663__viewer{height:calc(100% - 36px);width:100%}.richcontentviewer3183431663__modalViewer{min-width:592px;overflow:auto}.richtexteditor667105446__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))}.richtexteditor667105446__root.richtexteditor667105446---border-4-none{border:0}.richtexteditor667105446__root.richtexteditor667105446---border-8-standard{border:1px solid var(--wds-input-border-color, var(--wsr-color-B40, #D6E6FE))}.richtexteditor667105446__root.richtexteditor667105446---border-8-standard:focus,.richtexteditor667105446__root.richtexteditor667105446---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))}.richtexteditor667105446__root.richtexteditor667105446---border-8-standard.richtexteditor667105446---status-5-error{border:1px solid var(--wds-color-border-destructive-secondary-active, var(--wsr-color-R10, #E62214))}.richtexteditor667105446__root.richtexteditor667105446---border-8-standard.richtexteditor667105446---status-5-error:focus,.richtexteditor667105446__root.richtexteditor667105446---border-8-standard.richtexteditor667105446---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))}.richtexteditor667105446__root.richtexteditor667105446---border-8-standard.richtexteditor667105446---status-7-warning{border:1px solid var(--wds-color-border-warning-secondary-active, var(--wsr-color-Y10, #FFB700))}.richtexteditor667105446__root.richtexteditor667105446---border-8-standard.richtexteditor667105446---status-7-warning:focus,.richtexteditor667105446__root.richtexteditor667105446---border-8-standard.richtexteditor667105446---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))}.richtexteditor667105446__nativeInput{position:absolute;opacity:0;padding:0;margin:0;border:0;width:0;height:0}.richtexteditor667105446__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))}.richtexteditor667105446__editor.richtexteditor667105446--isFullScreen{max-width:782px;min-width:582px;background:var(--wds-color-black-700)}.richtexteditor667105446__editor:not(.richtexteditor667105446--isFullScreen){max-height:80vh}.richtexteditor667105446__editor>div{flex:1;max-width:100%}.toolbar3247736524__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}.toolbar3247736524__item{display:flex;margin-right:12px}.toolbar3247736524__item svg,.toolbar3247736524__item svg path,.toolbar3247736524__item svg text{color:inherit;fill:currentColor}.toolbar3247736524__separator{display:inline-flex;margin-right:12px;border-left:1px solid #ddd;align-self:stretch}.toolbar3247736524__clearFormatting{margin-left:auto}.toolbar3247736524__fullScreen{margin-right:0}.toolbar3247736524__dropdownItemContent{height:36px;width:100%;display:flex;gap:12px;justify-content:space-between;align-items:center}.toolbar3247736524__dropdownItemContent.toolbar3247736524--selected .toolbar3247736524__dropdownItemTitle,.toolbar3247736524__dropdownItemContent.toolbar3247736524--selected .toolbar3247736524__dropdownItemSubtitle{color:var(--wds-color-white)!important}.toolbar3247736524__dropdownItemSubtitle{color:var(--wds-color-black-400)!important;padding-right:12px;flex-shrink:0}.toolbar3247736524__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}.toolbar3247736524__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}.toolbar3247736524__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}.toolbar3247736524__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}.toolbar3247736524__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}.toolbar3247736524__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}.toolbar3247736524__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}.toolbar3247736524__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}.toolbar3247736524__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}.textview3095721063__textView::after{content:"";display:block}.richeditor1940630501__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))}.richeditor1940630501__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))}.richeditor1940630501__editor .DraftEditor-root{width:100%;height:100%}.richeditor1940630501__editor .DraftEditor-root [data-contents]{overflow:auto}.richeditor1940630501__editor .DraftEditor-editorContainer{display:flex;min-height:100%;background:#fff}.richeditor1940630501__editor .public-DraftEditor-content{padding:12px 24px 24px;min-height:100%;width:100%;box-sizing:border-box}.richeditor1940630501__editor .public-DraftEditor-content ol,.richeditor1940630501__editor .public-DraftEditor-content ul{display:flex;flex-direction:column;padding:0}.richeditor1940630501__editor .public-DraftEditor-content a,.richeditor1940630501__editor .public-DraftEditor-content a:visited{color:inherit;text-decoration:none}.richeditor1940630501__header-one:not(li),.richeditor1940630501__header-two:not(li),.richeditor1940630501__header-three:not(li),.richeditor1940630501__header-four:not(li),.richeditor1940630501__header-five:not(li),.richeditor1940630501__header-six:not(li){margin-block:0;margin:0}.richeditor1940630501__header-one,.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__header-two,.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__header-three,.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__header-four,.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__header-five,.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__header-six,.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__paragraph-one,.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__unstyled,.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__paragraph-three,.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__editor li.richeditor1940630501__header-one:first-child~li::marker{line-height:var(--rt-h1-fontSize, 72px)}.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__editor li.richeditor1940630501__header-two:first-child~li::marker{line-height:var(--rt-h2-fontSize, 42px)}.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__editor li.richeditor1940630501__header-three:first-child~li::marker{line-height:var(--rt-h3-fontSize, 38px)}.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__editor li.richeditor1940630501__header-four:first-child~li::marker{line-height:var(--rt-h4-fontSize, 34px)}.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__editor li.richeditor1940630501__header-five:first-child~li::marker{line-height:var(--rt-h5-fontSize, 28px)}.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__editor li.richeditor1940630501__header-six:first-child~li::marker{line-height:var(--rt-h6-fontSize, 22px)}.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__editor li.richeditor1940630501__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)))}.richeditor1940630501__editor li.richeditor1940630501__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}.richeditor1940630501__align-left{text-align:left;align-self:flex-start}.richeditor1940630501__align-right{text-align:right;align-self:flex-end}.richeditor1940630501__align-center{text-align:center;align-self:center}.richeditor1940630501__align-justify{text-align:justify;align-self:stretch}.richeditor1940630501__withMargin{display:inline-block}.richeditor1940630501__dir-rtl,.richeditor1940630501__editor .public-DraftStyleDefault-rtl{direction:rtl}.richeditor1940630501__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 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":[]}
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 /** Shown for a pattern that compiles but is refused because matching it\n * could hang the page. Falls back to `invalidError`. */\n unsafeError?: 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' | 'unsafePattern' };\n\nexport type DataValidationRules = Partial<\n RequiredValidationRule &\n CharactersLimitValidationRule &\n SpecificValuesValidationRule &\n PatternValidationRule\n>;\n"],"mappings":"","ignoreList":[]}
@@ -1,27 +1,36 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.hasFieldValidationSettingsError = exports.getFieldValidationSettingsViolations = void 0;
4
+ exports.matchesPattern = exports.hasFieldValidationSettingsError = exports.getFieldValidationSettingsViolations = exports.compilePattern = void 0;
5
+ var _regexSafety = require("./regex-safety");
5
6
  const CHARACTERS_CEILING = 256_000;
6
7
  const MIN_CHARACTERS_FLOOR = 0;
7
8
  const MIN_CHARACTERS_FLOOR_WHEN_REQUIRED = 1;
8
9
  const MAX_CHARACTERS_FLOOR = 1;
9
10
  const MAX_PATTERN_LENGTH = 500;
10
11
  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;
12
+ const patternProblem = pattern => {
13
+ if (!pattern || pattern.length > MAX_PATTERN_LENGTH) {
14
+ return pattern ? 'invalidPattern' : undefined;
17
15
  }
18
16
  try {
19
17
  new RegExp(pattern);
20
- return false;
21
18
  } catch {
22
- return true;
19
+ return 'invalidPattern';
23
20
  }
21
+ return (0, _regexSafety.hasNestedQuantifier)(pattern) ? 'unsafePattern' : undefined;
22
+ };
23
+ const compilePattern = pattern => pattern && !patternProblem(pattern) ? new RegExp(pattern) : undefined;
24
+
25
+ // An unusable pattern enforces nothing rather than rejecting every value: the
26
+ // settings editor already surfaces `invalidPattern` to whoever authored it, and
27
+ // blocking data entry over it would strand the person typing.
28
+ exports.compilePattern = compilePattern;
29
+ const matchesPattern = (value, pattern) => {
30
+ var _compilePattern;
31
+ return ((_compilePattern = compilePattern(pattern)) == null ? void 0 : _compilePattern.test(value)) ?? true;
24
32
  };
33
+ exports.matchesPattern = matchesPattern;
25
34
  const getFieldValidationSettingsViolations = (value, supportedRules, {
26
35
  exclusiveSpecificValues = true
27
36
  } = {}) => {
@@ -96,10 +105,11 @@ const getFieldValidationSettingsViolations = (value, supportedRules, {
96
105
  });
97
106
  }
98
107
  }
99
- if (hasInvalidPattern(pattern)) {
108
+ const problem = patternProblem(pattern);
109
+ if (problem) {
100
110
  violations.push({
101
111
  rule: 'pattern',
102
- type: 'invalidPattern'
112
+ type: problem
103
113
  });
104
114
  }
105
115
  return violations;
@@ -1 +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":";;;;AAMA,MAAMA,kBAAkB,GAAG,OAAO;AAClC,MAAMC,oBAAoB,GAAG,CAAC;AAC9B,MAAMC,kCAAkC,GAAG,CAAC;AAC5C,MAAMC,oBAAoB,GAAG,CAAC;AAC9B,MAAMC,kBAAkB,GAAG,GAAG;AAE9B,MAAMC,aAAa,GAAGA,CAACC,KAAa,EAAEC,GAAW,EAAEC,GAAW,KAC5D,CAACC,MAAM,CAACC,QAAQ,CAACJ,KAAK,CAAC,IAAIA,KAAK,GAAGC,GAAG,IAAID,KAAK,GAAGE,GAAG;AAEvD,MAAMG,iBAAiB,GAAIC,OAA2B,IAAK;EACzD,IAAIA,OAAO,KAAKC,SAAS,EAAE;IACzB,OAAO,KAAK;EACd;EAEA,IAAID,OAAO,CAACE,MAAM,GAAGV,kBAAkB,EAAE;IACvC,OAAO,IAAI;EACb;EAEA,IAAI;IACF,IAAIW,MAAM,CAACH,OAAO,CAAC;IACnB,OAAO,KAAK;EACd,CAAC,CAAC,MAAM;IACN,OAAO,IAAI;EACb;AACF,CAAC;AASM,MAAMI,oCAAoC,GAAGA,CAClDV,KAAmC,EACnCW,cAA+C,EAC/C;EAAEC,uBAAuB,GAAG;AAAqC,CAAC,GAAG,CAAC,CAAC,KACxC;EAC/B,MAAMC,UAAsC,GAAG,EAAE;EACjD,MAAMC,QAAQ,GAAIC,IAAyB,IACzCJ,cAAc,KAAKJ,SAAS,IAAII,cAAc,CAACK,QAAQ,CAACD,IAAI,CAAC;EAC/D,MAAME,eAAe,GA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ACtE;IACA,IAAIc,UAAU,EAAE;MACdvB,UAAU,CAACQ,IAAI,CAAC;QAAEN,IAAI,EAAE,SAAS;QAAEO,IAAI,EAAE;MAAiB,CAAC,CAAC;IAC9D;EACF;EAEA,IAAIjB,iBAAiB,CAACC,OAAO,CAAC,EAAE;IAC9BO,UAAU,CAACQ,IAAI,CAAC;MAAEN,IAAI,EAAE,SAAS;MAAEO,IAAI,EAAE;IAAiB,CAAC,CAAC;EAC9D;EAEA,OAAOT,UAAU;AACnB,CAAC;AAACwB,OAAA,CAAA3B,oCAAA,GAAAA,oCAAA;AAEK,MAAM4B,+BAA+B,GAAGA,CAC7CtC,KAAmC,EACnCW,cAA+C,EAC/C4B,OAAwC,KAExC7B,oCAAoC,CAACV,KAAK,EAAEW,cAAc,EAAE4B,OAAO,CAAC,CAAC/B,MAAM,GAC3E,CAAC;AAAC6B,OAAA,CAAAC,+BAAA,GAAAA,+BAAA","ignoreList":[]}
1
+ {"version":3,"names":["_regexSafety","require","CHARACTERS_CEILING","MIN_CHARACTERS_FLOOR","MIN_CHARACTERS_FLOOR_WHEN_REQUIRED","MAX_CHARACTERS_FLOOR","MAX_PATTERN_LENGTH","isOutOfBounds","value","min","max","Number","isFinite","patternProblem","pattern","length","undefined","RegExp","hasNestedQuantifier","compilePattern","exports","matchesPattern","_compilePattern","test","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","problem","hasFieldValidationSettingsError","options"],"sources":["../../../src/validations/field-validation-settings.ts"],"sourcesContent":["import type {\n FieldValidationRule,\n FieldValidationSettingsValue,\n FieldValidationViolation,\n} from '../types/validation';\nimport { hasNestedQuantifier } from './regex-safety';\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 patternProblem = (\n pattern: string | undefined,\n): 'invalidPattern' | 'unsafePattern' | undefined => {\n if (!pattern || pattern.length > MAX_PATTERN_LENGTH) {\n return pattern ? 'invalidPattern' : undefined;\n }\n\n try {\n new RegExp(pattern);\n } catch {\n return 'invalidPattern';\n }\n\n return hasNestedQuantifier(pattern) ? 'unsafePattern' : undefined;\n};\n\nexport const compilePattern = (\n pattern: string | undefined,\n): RegExp | undefined =>\n pattern && !patternProblem(pattern) ? new RegExp(pattern) : undefined;\n\n// An unusable pattern enforces nothing rather than rejecting every value: the\n// settings editor already surfaces `invalidPattern` to whoever authored it, and\n// blocking data entry over it would strand the person typing.\nexport const matchesPattern = (\n value: string,\n pattern: string | undefined,\n): boolean => compilePattern(pattern)?.test(value) ?? true;\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 (\n exclusiveSpecificValues &&\n hasSpecificValues &&\n (hasCharactersLimit || hasPattern)\n ) {\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 const problem = patternProblem(pattern);\n if (problem) {\n violations.push({ rule: 'pattern', type: problem });\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,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