@cruk/cruk-react-components 1.0.9 → 1.1.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 (251) hide show
  1. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  2. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
  3. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  4. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -1
  5. package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +8 -0
  6. package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -0
  7. package/lib/cjs/node_modules/focus-lock/dist/es2015/constants.js +1 -1
  8. package/lib/cjs/node_modules/focus-lock/dist/es2015/constants.js.map +1 -1
  9. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusInside.js +1 -1
  10. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -1
  11. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusIsHidden.js +1 -1
  12. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -1
  13. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusMerge.js +1 -1
  14. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusMerge.js.map +1 -1
  15. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusables.js +1 -1
  16. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusables.js.map +1 -1
  17. package/lib/cjs/node_modules/focus-lock/dist/es2015/index.js.map +1 -1
  18. package/lib/cjs/node_modules/focus-lock/dist/es2015/setFocus.js +1 -1
  19. package/lib/cjs/node_modules/focus-lock/dist/es2015/setFocus.js.map +1 -1
  20. package/lib/cjs/node_modules/focus-lock/dist/es2015/solver.js +1 -1
  21. package/lib/cjs/node_modules/focus-lock/dist/es2015/solver.js.map +1 -1
  22. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/DOMutils.js +1 -1
  23. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -1
  24. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/all-affected.js +1 -1
  25. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -1
  26. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -1
  27. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/correctFocus.js +1 -1
  28. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -1
  29. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +1 -1
  30. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js +2 -0
  31. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +1 -0
  32. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/is.js +1 -1
  33. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -1
  34. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/parenting.js +1 -1
  35. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -1
  36. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +1 -1
  37. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabUtils.js +1 -1
  38. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -1
  39. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +1 -1
  40. package/lib/cjs/node_modules/react-clientside-effect/lib/index.es.js.map +1 -1
  41. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -1
  42. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +1 -1
  43. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
  44. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
  45. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js +1 -1
  46. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
  47. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -1
  48. package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js +2 -0
  49. package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js.map +1 -0
  50. package/lib/cjs/node_modules/tslib/tslib.es6.js +1 -16
  51. package/lib/cjs/node_modules/tslib/tslib.es6.js.map +1 -1
  52. package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +1 -1
  53. package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
  54. package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -1
  55. package/lib/cjs/node_modules/use-sidecar/dist/es2015/medium.js +1 -1
  56. package/lib/cjs/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
  57. package/lib/cjs/src/components/AddressLookup/index.js +1 -1
  58. package/lib/cjs/src/components/Avatar/index.js +1 -1
  59. package/lib/cjs/src/components/Button/index.js +1 -1
  60. package/lib/cjs/src/components/Carousel/index.js +1 -1
  61. package/lib/cjs/src/components/Checkbox/index.js +1 -1
  62. package/lib/cjs/src/components/Checkbox/styles.js +1 -1
  63. package/lib/cjs/src/components/Collapse/index.js +1 -1
  64. package/lib/cjs/src/components/Collapse/styles.js +1 -1
  65. package/lib/cjs/src/components/DateField/styles.js +1 -1
  66. package/lib/cjs/src/components/GlobalStyle.js +1 -1
  67. package/lib/cjs/src/components/Heading/styles.js +1 -1
  68. package/lib/cjs/src/components/Icon/README.md.js +1 -1
  69. package/lib/cjs/src/components/Icon/README.md.js.map +1 -1
  70. package/lib/cjs/src/components/IconFa/README.md.js +2 -0
  71. package/lib/cjs/src/components/IconFa/README.md.js.map +1 -0
  72. package/lib/cjs/src/components/IconFa/index.js +2 -0
  73. package/lib/cjs/src/components/IconFa/index.js.map +1 -0
  74. package/lib/cjs/src/components/IconFa/styles.js +2 -0
  75. package/lib/cjs/src/components/IconFa/styles.js.map +1 -0
  76. package/lib/cjs/src/components/LegendWrapper/styles.js +1 -1
  77. package/lib/cjs/src/components/Link/README.md.js +1 -1
  78. package/lib/cjs/src/components/Link/README.md.js.map +1 -1
  79. package/lib/cjs/src/components/Link/index.js +1 -1
  80. package/lib/cjs/src/components/Link/styles.js +1 -1
  81. package/lib/cjs/src/components/Modal/index.js +1 -1
  82. package/lib/cjs/src/components/Text/styles.js +1 -1
  83. package/lib/cjs/src/components/index.js +1 -1
  84. package/lib/cjs/src/themes/cruk.js +1 -1
  85. package/lib/cjs/src/themes/su2c.js +1 -1
  86. package/lib/components/AddressLookup/{test.cypress.d.ts → AddressLookUp.test.cypress.d.ts} +0 -0
  87. package/lib/components/Avatar/{test.cypress.d.ts → Avatar.test.cypress.d.ts} +0 -0
  88. package/lib/components/Badge/{test.cypress.d.ts → Badge.test.cypress.d.ts} +0 -0
  89. package/lib/components/Box/{test.cypress.d.ts → Box.test.cypress.d.ts} +0 -0
  90. package/lib/components/Button/{test.cypress.d.ts → Button.test.cypress.d.ts} +0 -0
  91. package/lib/components/Carousel/{test.cypress.d.ts → Carousel.test.cypress.d.ts} +0 -0
  92. package/lib/components/Checkbox/{test.cypress.d.ts → CheckBox.test.cypress.d.ts} +0 -0
  93. package/lib/components/Checkbox/styles.d.ts +0 -1
  94. package/lib/components/Collapse/{test.cypress.d.ts → Collapse.test.cypress.d.ts} +0 -0
  95. package/lib/components/Collapse/index.d.ts +4 -2
  96. package/lib/components/Collapse/styles.d.ts +1 -1
  97. package/lib/components/DateField/{test.cypress.d.ts → DateField.test.cypress.d.ts} +0 -0
  98. package/lib/components/DateField/index.d.ts +2 -2
  99. package/lib/components/ErrorText/{test.cypress.d.ts → ErrorText.test.cypress.d.ts} +0 -0
  100. package/lib/components/Footer/{test.cypress.d.ts → Footer.test.cypress.d.ts} +0 -0
  101. package/lib/components/Header/{test.cypress.d.ts → Header.test.cypress.d.ts} +0 -0
  102. package/lib/components/Heading/{test.cypress.d.ts → Heading.test.cypress.d.ts} +0 -0
  103. package/lib/components/Heading/index.d.ts +7 -1
  104. package/lib/components/Heading/styles.d.ts +6 -0
  105. package/lib/components/Icon/{test.cypress.d.ts → Icon.test.cypress.d.ts} +0 -0
  106. package/lib/components/Icon/index.d.ts +1 -1
  107. package/lib/components/IconFa/IconFa.stories.d.ts +6 -0
  108. package/lib/components/{LegendWrapper/test.cypress.d.ts → IconFa/IconFa.test.cypress.d.ts} +0 -0
  109. package/lib/components/IconFa/index.d.ts +17 -0
  110. package/lib/components/IconFa/styles.d.ts +5 -0
  111. package/lib/components/{Link/test.cypress.d.ts → LegendWrapper/LegendWrapper.test.cypress.d.ts} +0 -0
  112. package/lib/components/{Loader/test.cypress.d.ts → Link/Link.test.cypress.d.ts} +0 -0
  113. package/lib/components/Link/styles.d.ts +2 -1
  114. package/lib/components/{Modal/test.cypress.d.ts → Loader/Loader.test.cypress.d.ts} +0 -0
  115. package/lib/components/{Pagination/test.cypress.d.ts → Modal/Modal.test.cypress.d.ts} +0 -0
  116. package/lib/components/{PopOver/test.cypress.d.ts → Pagination/Pagination.test.cypress.d.ts} +0 -0
  117. package/lib/components/{ProgressBar/test.cypress.d.ts → PopOver/PopOver.test.cypress.d.ts} +0 -0
  118. package/lib/components/{Radio/test.cypress.d.ts → ProgressBar/ProgressBar.test.cypress.d.ts} +0 -0
  119. package/lib/components/{RadioConsent/test.cypress.d.ts → Radio/Radio.test.cypress.d.ts} +0 -0
  120. package/lib/components/{Select/test.cypress.d.ts → RadioConsent/RadioConsent.test.cypress.d.ts} +0 -0
  121. package/lib/components/{Step/test.cypress.d.ts → Select/Select.test.cypress.d.ts} +0 -0
  122. package/lib/components/{Text/test.cypress.d.ts → Step/Step.test.cypress.d.ts} +0 -0
  123. package/lib/components/{TextAreaField/test.cypress.d.ts → Text/Text.test.cypress.d.ts} +0 -0
  124. package/lib/components/Text/index.d.ts +5 -3
  125. package/lib/components/Text/styles.d.ts +3 -1
  126. package/lib/components/{TextField/test.cypress.d.ts → TextAreaField/TextAreaField.test.cypress.d.ts} +0 -0
  127. package/lib/components/{Totaliser/test.cypress.d.ts → TextField/TextField.test.cypress.d.ts} +0 -0
  128. package/lib/components/{UserBlock/test.cypress.d.ts → Totaliser/Totaliser.test.cypress.d.ts} +0 -0
  129. package/lib/components/UserBlock/UserBlock.test.cypress.d.ts +1 -0
  130. package/lib/components/index.d.ts +2 -0
  131. package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  132. package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
  133. package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  134. package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -1
  135. package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +7 -0
  136. package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +1 -0
  137. package/lib/es/node_modules/focus-lock/dist/es2015/constants.js +1 -1
  138. package/lib/es/node_modules/focus-lock/dist/es2015/constants.js.map +1 -1
  139. package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js +1 -1
  140. package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -1
  141. package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js +1 -1
  142. package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -1
  143. package/lib/es/node_modules/focus-lock/dist/es2015/focusMerge.js +1 -1
  144. package/lib/es/node_modules/focus-lock/dist/es2015/focusMerge.js.map +1 -1
  145. package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js +1 -1
  146. package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js.map +1 -1
  147. package/lib/es/node_modules/focus-lock/dist/es2015/index.js.map +1 -1
  148. package/lib/es/node_modules/focus-lock/dist/es2015/setFocus.js +1 -1
  149. package/lib/es/node_modules/focus-lock/dist/es2015/setFocus.js.map +1 -1
  150. package/lib/es/node_modules/focus-lock/dist/es2015/solver.js +1 -1
  151. package/lib/es/node_modules/focus-lock/dist/es2015/solver.js.map +1 -1
  152. package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js +1 -1
  153. package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -1
  154. package/lib/es/node_modules/focus-lock/dist/es2015/utils/all-affected.js +1 -1
  155. package/lib/es/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -1
  156. package/lib/es/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -1
  157. package/lib/es/node_modules/focus-lock/dist/es2015/utils/correctFocus.js +1 -1
  158. package/lib/es/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -1
  159. package/lib/es/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js +2 -0
  160. package/lib/es/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +1 -0
  161. package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js +1 -1
  162. package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -1
  163. package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js +1 -1
  164. package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -1
  165. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +1 -1
  166. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js +1 -1
  167. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -1
  168. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +1 -1
  169. package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -1
  170. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +1 -1
  171. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -1
  172. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +1 -1
  173. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -1
  174. package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js +2 -0
  175. package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js.map +1 -0
  176. package/lib/es/node_modules/tslib/tslib.es6.js +0 -14
  177. package/lib/es/node_modules/tslib/tslib.es6.js.map +1 -1
  178. package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +1 -1
  179. package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
  180. package/lib/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -1
  181. package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js +1 -1
  182. package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
  183. package/lib/es/src/components/AddressLookup/README.md.js.map +1 -1
  184. package/lib/es/src/components/AddressLookup/index.js +1 -1
  185. package/lib/es/src/components/Avatar/README.md.js.map +1 -1
  186. package/lib/es/src/components/Avatar/index.js +1 -1
  187. package/lib/es/src/components/Badge/README.md.js.map +1 -1
  188. package/lib/es/src/components/Box/README.md.js.map +1 -1
  189. package/lib/es/src/components/Button/README.md.js.map +1 -1
  190. package/lib/es/src/components/Button/index.js +1 -1
  191. package/lib/es/src/components/Carousel/index.js +1 -1
  192. package/lib/es/src/components/Checkbox/README.md.js.map +1 -1
  193. package/lib/es/src/components/Checkbox/index.js +1 -1
  194. package/lib/es/src/components/Checkbox/styles.js +1 -1
  195. package/lib/es/src/components/Collapse/README.md.js.map +1 -1
  196. package/lib/es/src/components/Collapse/index.js +1 -1
  197. package/lib/es/src/components/Collapse/styles.js +1 -1
  198. package/lib/es/src/components/DateField/README.md.js.map +1 -1
  199. package/lib/es/src/components/DateField/styles.js +1 -1
  200. package/lib/es/src/components/ErrorText/README.md.js.map +1 -1
  201. package/lib/es/src/components/Footer/README.md.js.map +1 -1
  202. package/lib/es/src/components/GlobalStyle.js +1 -1
  203. package/lib/es/src/components/Header/README.md.js.map +1 -1
  204. package/lib/es/src/components/Heading/README.md.js.map +1 -1
  205. package/lib/es/src/components/Heading/styles.js +1 -1
  206. package/lib/es/src/components/Icon/README.md.js +1 -1
  207. package/lib/es/src/components/Icon/README.md.js.map +1 -1
  208. package/lib/es/src/components/IconFa/README.md.js +2 -0
  209. package/lib/es/src/components/IconFa/README.md.js.map +1 -0
  210. package/lib/es/src/components/IconFa/index.js +2 -0
  211. package/lib/es/src/components/IconFa/index.js.map +1 -0
  212. package/lib/es/src/components/IconFa/styles.js +2 -0
  213. package/lib/es/src/components/IconFa/styles.js.map +1 -0
  214. package/lib/es/src/components/LegendWrapper/README.md.js.map +1 -1
  215. package/lib/es/src/components/LegendWrapper/styles.js +1 -1
  216. package/lib/es/src/components/Link/README.md.js +1 -1
  217. package/lib/es/src/components/Link/README.md.js.map +1 -1
  218. package/lib/es/src/components/Link/index.js +1 -1
  219. package/lib/es/src/components/Link/styles.js +1 -1
  220. package/lib/es/src/components/Loader/README.md.js.map +1 -1
  221. package/lib/es/src/components/Modal/README.md.js.map +1 -1
  222. package/lib/es/src/components/Modal/index.js +1 -1
  223. package/lib/es/src/components/Pagination/README.md.js.map +1 -1
  224. package/lib/es/src/components/PopOver/README.md.js.map +1 -1
  225. package/lib/es/src/components/ProgressBar/README.md.js.map +1 -1
  226. package/lib/es/src/components/Radio/README.md.js.map +1 -1
  227. package/lib/es/src/components/RadioConsent/README.md.js.map +1 -1
  228. package/lib/es/src/components/Select/README.md.js.map +1 -1
  229. package/lib/es/src/components/Step/README.md.js.map +1 -1
  230. package/lib/es/src/components/Text/README.md.js.map +1 -1
  231. package/lib/es/src/components/Text/styles.js +1 -1
  232. package/lib/es/src/components/TextAreaField/README.md.js.map +1 -1
  233. package/lib/es/src/components/TextField/README.md.js.map +1 -1
  234. package/lib/es/src/components/Totaliser/README.md.js.map +1 -1
  235. package/lib/es/src/components/UserBlock/README.md.js.map +1 -1
  236. package/lib/es/src/components/index.js +1 -1
  237. package/lib/es/src/themes/cruk.js +1 -1
  238. package/lib/es/src/themes/su2c.js +1 -1
  239. package/lib/hooks/useKey.d.ts +1 -1
  240. package/lib/types.d.ts +2 -2
  241. package/lib/utils/Helper.d.ts +1 -1
  242. package/package.json +34 -32
  243. package/CHANGELOG.md +0 -169
  244. package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.m.js +0 -2
  245. package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.m.js.map +0 -1
  246. package/lib/cjs/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js +0 -17
  247. package/lib/cjs/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js.map +0 -1
  248. package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.m.js +0 -2
  249. package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.m.js.map +0 -1
  250. package/lib/es/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js +0 -16
  251. package/lib/es/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.FOCUS_ALLOW="data-no-focus-lock",exports.FOCUS_AUTO="data-autofocus-inside",exports.FOCUS_DISABLED="data-focus-lock-disabled",exports.FOCUS_GROUP="data-focus-lock";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.FOCUS_ALLOW="data-no-focus-lock",exports.FOCUS_AUTO="data-autofocus-inside",exports.FOCUS_DISABLED="data-focus-lock-disabled",exports.FOCUS_GROUP="data-focus-lock",exports.FOCUS_NO_AUTOFOCUS="data-no-autofocus";
2
2
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/constants.js"],"sourcesContent":["export var FOCUS_GROUP = 'data-focus-lock';\nexport var FOCUS_DISABLED = 'data-focus-lock-disabled';\nexport var FOCUS_ALLOW = 'data-no-focus-lock';\nexport var FOCUS_AUTO = 'data-autofocus-inside';\n"],"names":[],"mappings":"wFAEyB,wCACD,+CAFI,+CADH"}
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/constants.js"],"sourcesContent":["/**\n * defines a focus group\n */\nexport var FOCUS_GROUP = 'data-focus-lock';\n/**\n * disables element discovery inside a group marked by key\n */\nexport var FOCUS_DISABLED = 'data-focus-lock-disabled';\n/**\n * allows uncontrolled focus within the marked area, effectively disabling focus lock for it's content\n */\nexport var FOCUS_ALLOW = 'data-no-focus-lock';\n/**\n * instructs autofocus engine to pick default autofocus inside a given node\n * can be set on the element or container\n */\nexport var FOCUS_AUTO = 'data-autofocus-inside';\n/**\n * instructs autofocus to ignore elements within a given node\n * can be set on the element or container\n */\nexport var FOCUS_NO_AUTOFOCUS = 'data-no-autofocus';\n"],"names":[],"mappings":"wFAWyB,wCAKD,+CATI,+CAJH,6CAkBO"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/all-affected.js"),t=require("./utils/array.js"),r=function(e){return Boolean(t.toArray(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))};exports.focusInside=function(t){var u=document&&document.activeElement;return!(!u||u.dataset&&u.dataset.focusGuard)&&e.getAllAffectedNodes(t).reduce((function(e,t){return e||t.contains(u)||r(t)}),!1)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/DOMutils.js"),t=require("./utils/all-affected.js"),r=require("./utils/array.js"),u=require("./utils/getActiveElement.js"),s=function(e){return Boolean(r.toArray(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))};exports.focusInside=function(r){var n=document&&u.getActiveElement();return!(!n||n.dataset&&n.dataset.focusGuard)&&t.getAllAffectedNodes(r).some((function(t){return e.contains(t,n)||s(t)}))};
2
2
  //# sourceMappingURL=focusInside.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"focusInside.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusInside.js"],"sourcesContent":["import { getAllAffectedNodes } from './utils/all-affected';\nimport { toArray } from './utils/array';\nvar focusInFrame = function (frame) { return frame === document.activeElement; };\nvar focusInsideIframe = function (topNode) {\n return Boolean(toArray(topNode.querySelectorAll('iframe')).some(function (node) { return focusInFrame(node); }));\n};\nexport var focusInside = function (topNode) {\n var activeElement = document && document.activeElement;\n if (!activeElement || (activeElement.dataset && activeElement.dataset.focusGuard)) {\n return false;\n }\n return getAllAffectedNodes(topNode).reduce(function (result, node) { return result || node.contains(activeElement) || focusInsideIframe(node); }, false);\n};\n"],"names":["focusInsideIframe","topNode","Boolean","toArray","querySelectorAll","some","node","document","activeElement","dataset","focusGuard","getAllAffectedNodes","reduce","result","contains"],"mappings":"2IAGIA,EAAoB,SAAUC,GAC9B,OAAOC,QAAQC,UAAQF,EAAQG,iBAAiB,WAAWC,MAAK,SAAUC,GAAQ,OAAoBA,IAFnDC,SAASC,uCAIvC,SAAUP,GAC/B,IAAIO,EAAgBD,UAAYA,SAASC,cACzC,SAAKA,GAAkBA,EAAcC,SAAWD,EAAcC,QAAQC,aAG/DC,sBAAoBV,GAASW,QAAO,SAAUC,EAAQP,GAAQ,OAAOO,GAAUP,EAAKQ,SAASN,IAAkBR,EAAkBM,MAAU"}
1
+ {"version":3,"file":"focusInside.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusInside.js"],"sourcesContent":["import { contains } from './utils/DOMutils';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { toArray } from './utils/array';\nimport { getActiveElement } from './utils/getActiveElement';\nvar focusInFrame = function (frame) { return frame === document.activeElement; };\nvar focusInsideIframe = function (topNode) {\n return Boolean(toArray(topNode.querySelectorAll('iframe')).some(function (node) { return focusInFrame(node); }));\n};\n/**\n * @returns {Boolean} true, if the current focus is inside given node or nodes\n */\nexport var focusInside = function (topNode) {\n var activeElement = document && getActiveElement();\n if (!activeElement || (activeElement.dataset && activeElement.dataset.focusGuard)) {\n return false;\n }\n return getAllAffectedNodes(topNode).some(function (node) { return contains(node, activeElement) || focusInsideIframe(node); });\n};\n"],"names":["focusInsideIframe","topNode","Boolean","toArray","querySelectorAll","some","node","document","activeElement","getActiveElement","dataset","focusGuard","getAllAffectedNodes","contains"],"mappings":"qNAKIA,EAAoB,SAAUC,GAC9B,OAAOC,QAAQC,EAAAA,QAAQF,EAAQG,iBAAiB,WAAWC,MAAK,SAAUC,GAAQ,OAAoBA,IAFnDC,SAASC,uCAOvC,SAAUP,GAC/B,IAAIO,EAAgBD,UAAYE,EAAAA,mBAChC,SAAKD,GAAkBA,EAAcE,SAAWF,EAAcE,QAAQC,aAG/DC,EAAmBA,oBAACX,GAASI,MAAK,SAAUC,GAAQ,OAAOO,EAAQA,SAACP,EAAME,IAAkBR,EAAkBM"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./constants.js"),t=require("./utils/array.js");exports.focusIsHidden=function(){return document&&t.toArray(document.querySelectorAll("["+e.FOCUS_ALLOW+"]")).some((function(e){return e.contains(document.activeElement)}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./constants.js"),t=require("./utils/DOMutils.js"),r=require("./utils/array.js"),s=require("./utils/getActiveElement.js");exports.focusIsHidden=function(){var u=document&&s.getActiveElement();return!!u&&r.toArray(document.querySelectorAll("[".concat(e.FOCUS_ALLOW,"]"))).some((function(e){return t.contains(e,u)}))};
2
2
  //# sourceMappingURL=focusIsHidden.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"focusIsHidden.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusIsHidden.js"],"sourcesContent":["import { FOCUS_ALLOW } from './constants';\nimport { toArray } from './utils/array';\nexport var focusIsHidden = function () {\n return document &&\n toArray(document.querySelectorAll(\"[\" + FOCUS_ALLOW + \"]\")).some(function (node) { return node.contains(document.activeElement); });\n};\n"],"names":["document","toArray","querySelectorAll","FOCUS_ALLOW","some","node","contains","activeElement"],"mappings":"wJAE2B,WACvB,OAAOA,UACHC,UAAQD,SAASE,iBAAiB,IAAMC,cAAc,MAAMC,MAAK,SAAUC,GAAQ,OAAOA,EAAKC,SAASN,SAASO"}
1
+ {"version":3,"file":"focusIsHidden.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusIsHidden.js"],"sourcesContent":["import { FOCUS_ALLOW } from './constants';\nimport { contains } from './utils/DOMutils';\nimport { toArray } from './utils/array';\nimport { getActiveElement } from './utils/getActiveElement';\n/**\n * focus is hidden FROM the focus-lock\n * ie contained inside a node focus-lock shall ignore\n * @returns {boolean} focus is currently is in \"allow\" area\n */\nexport var focusIsHidden = function () {\n var activeElement = document && getActiveElement();\n if (!activeElement) {\n return false;\n }\n // this does not support setting FOCUS_ALLOW within shadow dom\n return toArray(document.querySelectorAll(\"[\".concat(FOCUS_ALLOW, \"]\"))).some(function (node) { return contains(node, activeElement); });\n};\n"],"names":["activeElement","document","getActiveElement","toArray","querySelectorAll","concat","FOCUS_ALLOW","some","node","contains"],"mappings":"kOAS2B,WACvB,IAAIA,EAAgBC,UAAYC,EAAAA,mBAChC,QAAKF,GAIEG,EAAAA,QAAQF,SAASG,iBAAiB,IAAIC,OAAOC,EAAAA,YAAa,OAAOC,MAAK,SAAUC,GAAQ,OAAOC,EAAAA,SAASD,EAAMR"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./solver.js"),t=require("./utils/all-affected.js"),r=require("./utils/DOMutils.js"),u=require("./utils/firstFocus.js"),n=require("./utils/is.js"),o=require("./utils/parenting.js");exports.getFocusMerge=function(i,s){var a=document&&document.activeElement,l=t.getAllAffectedNodes(i).filter(n.isNotAGuard),c=o.getTopCommonParent(a||i,i,l),f=new Map,d=r.getAllTabbableNodes(l,f),p=r.getTabbableNodes(l,f).filter((function(e){var t=e.node;return n.isNotAGuard(t)}));if(p[0]||(p=d)[0]){var b,g,m,v,F=r.getAllTabbableNodes([c],f).map((function(e){return e.node})),j=(b=F,g=p,m=new Map,g.forEach((function(e){return m.set(e.node,e)})),b.map((function(e){return m.get(e)})).filter(n.isDefined)),A=j.map((function(e){return e.node})),N=e.newFocus(A,F,a,s);if(N===e.NEW_FOCUS){var q=d.map((function(e){return e.node})).filter((v=o.allParentAutofocusables(l,f),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||v.indexOf(e)>=0}));return{node:q&&q.length?u.pickFirstFocus(q):u.pickFirstFocus(A)}}return void 0===N?N:j[N]}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./solver.js"),t=require("./utils/DOMutils.js"),r=require("./utils/all-affected.js"),u=require("./utils/firstFocus.js"),i=require("./utils/getActiveElement.js"),o=require("./utils/is.js"),n=require("./utils/parenting.js");exports.getFocusMerge=function(s,l){var a=document&&i.getActiveElement(),c=r.getAllAffectedNodes(s).filter(o.isNotAGuard),f=n.getTopCommonParent(a||s,s,c),d=new Map,b=t.getAllTabbableNodes(c,d),g=t.getTabbableNodes(c,d).filter((function(e){var t=e.node;return o.isNotAGuard(t)}));if(g[0]||(g=b)[0]){var p,v,A,F,m=t.getAllTabbableNodes([f],d).map((function(e){return e.node})),j=(p=m,v=g,A=new Map,v.forEach((function(e){return A.set(e.node,e)})),p.map((function(e){return A.get(e)})).filter(o.isDefined)),q=j.map((function(e){return e.node})),N=e.newFocus(q,m,a,l);if(N===e.NEW_FOCUS){var M=t.filterAutoFocusable(b.map((function(e){return e.node}))).filter((F=n.allParentAutofocusables(c,d),function(e){var t;return e.autofocus||!!(null===(t=o.getDataset(e))||void 0===t?void 0:t.autofocus)||F.indexOf(e)>=0}));return{node:M&&M.length?u.pickFirstFocus(M):u.pickFirstFocus(t.filterAutoFocusable(q))}}return void 0===N?N:j[N]}};
2
2
  //# sourceMappingURL=focusMerge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"focusMerge.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusMerge.js"],"sourcesContent":["import { NEW_FOCUS, newFocus } from './solver';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { getAllTabbableNodes, getTabbableNodes } from './utils/DOMutils';\nimport { pickFirstFocus } from './utils/firstFocus';\nimport { isDefined, isNotAGuard } from './utils/is';\nimport { allParentAutofocusables, getTopCommonParent } from './utils/parenting';\nvar findAutoFocused = function (autoFocusables) { return function (node) {\n return node.autofocus || (node.dataset && !!node.dataset.autofocus) || autoFocusables.indexOf(node) >= 0;\n}; };\nvar reorderNodes = function (srcNodes, dstNodes) {\n var remap = new Map();\n dstNodes.forEach(function (entity) { return remap.set(entity.node, entity); });\n return srcNodes.map(function (node) { return remap.get(node); }).filter(isDefined);\n};\nexport var getFocusMerge = function (topNode, lastNode) {\n var activeElement = (document && document.activeElement);\n var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);\n var commonParent = getTopCommonParent(activeElement || topNode, topNode, entries);\n var visibilityCache = new Map();\n var anyFocusable = getAllTabbableNodes(entries, visibilityCache);\n var innerElements = getTabbableNodes(entries, visibilityCache).filter(function (_a) {\n var node = _a.node;\n return isNotAGuard(node);\n });\n if (!innerElements[0]) {\n innerElements = anyFocusable;\n if (!innerElements[0]) {\n return undefined;\n }\n }\n var outerNodes = getAllTabbableNodes([commonParent], visibilityCache).map(function (_a) {\n var node = _a.node;\n return node;\n });\n var orderedInnerElements = reorderNodes(outerNodes, innerElements);\n var innerNodes = orderedInnerElements.map(function (_a) {\n var node = _a.node;\n return node;\n });\n var newId = newFocus(innerNodes, outerNodes, activeElement, lastNode);\n if (newId === NEW_FOCUS) {\n var autoFocusable = anyFocusable\n .map(function (_a) {\n var node = _a.node;\n return node;\n })\n .filter(findAutoFocused(allParentAutofocusables(entries, visibilityCache)));\n return {\n node: autoFocusable && autoFocusable.length ? pickFirstFocus(autoFocusable) : pickFirstFocus(innerNodes),\n };\n }\n if (newId === undefined) {\n return newId;\n }\n return orderedInnerElements[newId];\n};\n"],"names":["topNode","lastNode","activeElement","document","entries","getAllAffectedNodes","filter","isNotAGuard","commonParent","getTopCommonParent","visibilityCache","Map","anyFocusable","getAllTabbableNodes","innerElements","getTabbableNodes","_a","node","srcNodes","dstNodes","remap","autoFocusables","outerNodes","map","orderedInnerElements","forEach","entity","set","get","isDefined","innerNodes","newId","newFocus","NEW_FOCUS","autoFocusable","allParentAutofocusables","autofocus","dataset","indexOf","length","pickFirstFocus","undefined"],"mappings":"6RAc2B,SAAUA,EAASC,GAC1C,IAAIC,EAAiBC,UAAYA,SAASD,cACtCE,EAAUC,sBAAoBL,GAASM,OAAOC,eAC9CC,EAAeC,qBAAmBP,GAAiBF,EAASA,EAASI,GACrEM,EAAkB,IAAIC,IACtBC,EAAeC,sBAAoBT,EAASM,GAC5CI,EAAgBC,mBAAiBX,EAASM,GAAiBJ,QAAO,SAAUU,GAC5E,IAAIC,EAAOD,EAAGC,KACd,OAAOV,cAAYU,MAEvB,GAAKH,EAAc,KACfA,EAAgBF,GACG,GAFvB,CAMA,IArByBM,EAAUC,EAC/BC,EAJwBC,EAwBxBC,EAAaT,sBAAoB,CAACL,GAAeE,GAAiBa,KAAI,SAAUP,GAEhF,OADWA,EAAGC,QAGdO,GAzBqBN,EAyBeI,EAzBLH,EAyBiBL,EAxBhDM,EAAQ,IAAIT,IAChBQ,EAASM,SAAQ,SAAUC,GAAU,OAAON,EAAMO,IAAID,EAAOT,KAAMS,MAC5DR,EAASK,KAAI,SAAUN,GAAQ,OAAOG,EAAMQ,IAAIX,MAAUX,OAAOuB,cAuBpEC,EAAaN,EAAqBD,KAAI,SAAUP,GAEhD,OADWA,EAAGC,QAGdc,EAAQC,WAASF,EAAYR,EAAYpB,EAAeD,GAC5D,GAAI8B,IAAUE,YAAW,CACrB,IAAIC,EAAgBtB,EACfW,KAAI,SAAUP,GAEf,OADWA,EAAGC,QAGbX,QAxCmBe,EAwCIc,0BAAwB/B,EAASM,GAxCZ,SAAUO,GAC/D,OAAOA,EAAKmB,WAAcnB,EAAKoB,WAAapB,EAAKoB,QAAQD,WAAcf,EAAeiB,QAAQrB,IAAS,KAwCnG,MAAO,CACHA,KAAMiB,GAAiBA,EAAcK,OAASC,iBAAeN,GAAiBM,iBAAeV,IAGrG,YAAcW,IAAVV,EACOA,EAEJP,EAAqBO"}
1
+ {"version":3,"file":"focusMerge.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusMerge.js"],"sourcesContent":["import { NEW_FOCUS, newFocus } from './solver';\nimport { filterAutoFocusable, getAllTabbableNodes, getTabbableNodes } from './utils/DOMutils';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { pickFirstFocus } from './utils/firstFocus';\nimport { getActiveElement } from './utils/getActiveElement';\nimport { getDataset, isDefined, isNotAGuard } from './utils/is';\nimport { allParentAutofocusables, getTopCommonParent } from './utils/parenting';\nvar findAutoFocused = function (autoFocusables) {\n return function (node) { var _a; \n // @ts-expect-error\n return node.autofocus || !!((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.autofocus) || autoFocusables.indexOf(node) >= 0; };\n};\nvar reorderNodes = function (srcNodes, dstNodes) {\n var remap = new Map();\n // no Set(dstNodes) for IE11 :(\n dstNodes.forEach(function (entity) { return remap.set(entity.node, entity); });\n // remap to dstNodes\n return srcNodes.map(function (node) { return remap.get(node); }).filter(isDefined);\n};\n/**\n * given top node(s) and the last active element return the element to be focused next\n * @param topNode\n * @param lastNode\n */\nexport var getFocusMerge = function (topNode, lastNode) {\n var activeElement = document && getActiveElement();\n var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);\n var commonParent = getTopCommonParent(activeElement || topNode, topNode, entries);\n var visibilityCache = new Map();\n var anyFocusable = getAllTabbableNodes(entries, visibilityCache);\n var innerElements = getTabbableNodes(entries, visibilityCache).filter(function (_a) {\n var node = _a.node;\n return isNotAGuard(node);\n });\n if (!innerElements[0]) {\n innerElements = anyFocusable;\n if (!innerElements[0]) {\n return undefined;\n }\n }\n var outerNodes = getAllTabbableNodes([commonParent], visibilityCache).map(function (_a) {\n var node = _a.node;\n return node;\n });\n var orderedInnerElements = reorderNodes(outerNodes, innerElements);\n var innerNodes = orderedInnerElements.map(function (_a) {\n var node = _a.node;\n return node;\n });\n var newId = newFocus(innerNodes, outerNodes, activeElement, lastNode);\n if (newId === NEW_FOCUS) {\n var autoFocusable = filterAutoFocusable(anyFocusable.map(function (_a) {\n var node = _a.node;\n return node;\n })).filter(findAutoFocused(allParentAutofocusables(entries, visibilityCache)));\n return {\n node: autoFocusable && autoFocusable.length\n ? pickFirstFocus(autoFocusable)\n : pickFirstFocus(filterAutoFocusable(innerNodes)),\n };\n }\n if (newId === undefined) {\n return newId;\n }\n return orderedInnerElements[newId];\n};\n"],"names":["topNode","lastNode","activeElement","document","getActiveElement","entries","getAllAffectedNodes","filter","isNotAGuard","commonParent","getTopCommonParent","visibilityCache","Map","anyFocusable","getAllTabbableNodes","innerElements","getTabbableNodes","_a","node","srcNodes","dstNodes","remap","autoFocusables","outerNodes","map","orderedInnerElements","forEach","entity","set","get","isDefined","innerNodes","newId","newFocus","NEW_FOCUS","autoFocusable","filterAutoFocusable","allParentAutofocusables","autofocus","getDataset","indexOf","length","pickFirstFocus","undefined"],"mappings":"sUAwB2B,SAAUA,EAASC,GAC1C,IAAIC,EAAgBC,UAAYC,EAAAA,mBAC5BC,EAAUC,EAAAA,oBAAoBN,GAASO,OAAOC,EAAWA,aACzDC,EAAeC,EAAAA,mBAAmBR,GAAiBF,EAASA,EAASK,GACrEM,EAAkB,IAAIC,IACtBC,EAAeC,EAAAA,oBAAoBT,EAASM,GAC5CI,EAAgBC,EAAAA,iBAAiBX,EAASM,GAAiBJ,QAAO,SAAUU,GAC5E,IAAIC,EAAOD,EAAGC,KACd,OAAOV,EAAAA,YAAYU,MAEvB,GAAKH,EAAc,KACfA,EAAgBF,GACG,GAFvB,CAMA,IA5ByBM,EAAUC,EAC/BC,EANwBC,EAiCxBC,EAAaT,EAAmBA,oBAAC,CAACL,GAAeE,GAAiBa,KAAI,SAAUP,GAEhF,OADWA,EAAGC,QAGdO,GAhCqBN,EAgCeI,EAhCLH,EAgCiBL,EA/BhDM,EAAQ,IAAIT,IAEhBQ,EAASM,SAAQ,SAAUC,GAAU,OAAON,EAAMO,IAAID,EAAOT,KAAMS,MAE5DR,EAASK,KAAI,SAAUN,GAAQ,OAAOG,EAAMQ,IAAIX,MAAUX,OAAOuB,EAASA,YA4B7EC,EAAaN,EAAqBD,KAAI,SAAUP,GAEhD,OADWA,EAAGC,QAGdc,EAAQC,EAAAA,SAASF,EAAYR,EAAYrB,EAAeD,GAC5D,GAAI+B,IAAUE,EAAAA,UAAW,CACrB,IAAIC,EAAgBC,EAAmBA,oBAACvB,EAAaW,KAAI,SAAUP,GAE/D,OADWA,EAAGC,SAEdX,QA/CoBe,EA+CGe,EAAuBA,wBAAChC,EAASM,GA9CzD,SAAUO,GAAQ,IAAID,EAE7B,OAAOC,EAAKoB,cAA4C,QAA3BrB,EAAKsB,EAAAA,WAAWrB,UAA0B,IAAPD,OAAgB,EAASA,EAAGqB,YAAchB,EAAekB,QAAQtB,IAAS,KA6CtI,MAAO,CACHA,KAAMiB,GAAiBA,EAAcM,OAC/BC,EAAAA,eAAeP,GACfO,iBAAeN,EAAAA,oBAAoBL,KAGjD,YAAcY,IAAVX,EACOA,EAEJP,EAAqBO"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/all-affected.js"),r=require("./utils/DOMutils.js"),t=require("./utils/is.js"),n=require("./utils/parenting.js");exports.getFocusabledIn=function(i){var u=e.getAllAffectedNodes(i).filter(t.isNotAGuard),o=n.getTopCommonParent(i,i,u),s=new Map,a=r.getTabbableNodes([o],s,!0),d=r.getTabbableNodes(u,s).filter((function(e){var r=e.node;return t.isNotAGuard(r)})).map((function(e){return e.node}));return a.map((function(e){var r=e.node;return{node:r,index:e.index,lockItem:d.indexOf(r)>=0,guard:t.isGuard(r)}}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/DOMutils.js"),r=require("./utils/all-affected.js"),t=require("./utils/is.js"),n=require("./utils/parenting.js");exports.getFocusabledIn=function(i){var u=r.getAllAffectedNodes(i).filter(t.isNotAGuard),o=n.getTopCommonParent(i,i,u),s=new Map,a=e.getTabbableNodes([o],s,!0),d=e.getTabbableNodes(u,s).filter((function(e){var r=e.node;return t.isNotAGuard(r)})).map((function(e){return e.node}));return a.map((function(e){var r=e.node;return{node:r,index:e.index,lockItem:d.indexOf(r)>=0,guard:t.isGuard(r)}}))};
2
2
  //# sourceMappingURL=focusables.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"focusables.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusables.js"],"sourcesContent":["import { getAllAffectedNodes } from './utils/all-affected';\nimport { getTabbableNodes } from './utils/DOMutils';\nimport { isGuard, isNotAGuard } from './utils/is';\nimport { getTopCommonParent } from './utils/parenting';\nexport var getFocusabledIn = function (topNode) {\n var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);\n var commonParent = getTopCommonParent(topNode, topNode, entries);\n var visibilityCache = new Map();\n var outerNodes = getTabbableNodes([commonParent], visibilityCache, true);\n var innerElements = getTabbableNodes(entries, visibilityCache)\n .filter(function (_a) {\n var node = _a.node;\n return isNotAGuard(node);\n })\n .map(function (_a) {\n var node = _a.node;\n return node;\n });\n return outerNodes.map(function (_a) {\n var node = _a.node, index = _a.index;\n return ({\n node: node,\n index: index,\n lockItem: innerElements.indexOf(node) >= 0,\n guard: isGuard(node),\n });\n });\n};\n"],"names":["topNode","entries","getAllAffectedNodes","filter","isNotAGuard","commonParent","getTopCommonParent","visibilityCache","Map","outerNodes","getTabbableNodes","innerElements","_a","node","map","index","lockItem","indexOf","guard","isGuard"],"mappings":"mOAI6B,SAAUA,GACnC,IAAIC,EAAUC,sBAAoBF,GAASG,OAAOC,eAC9CC,EAAeC,qBAAmBN,EAASA,EAASC,GACpDM,EAAkB,IAAIC,IACtBC,EAAaC,mBAAiB,CAACL,GAAeE,GAAiB,GAC/DI,EAAgBD,mBAAiBT,EAASM,GACzCJ,QAAO,SAAUS,GAClB,IAAIC,EAAOD,EAAGC,KACd,OAAOT,cAAYS,MAElBC,KAAI,SAAUF,GAEf,OADWA,EAAGC,QAGlB,OAAOJ,EAAWK,KAAI,SAAUF,GAC5B,IAAIC,EAAOD,EAAGC,KACd,OACIA,KAAMA,EACNE,MAHwBH,EAAGG,MAI3BC,SAAUL,EAAcM,QAAQJ,IAAS,EACzCK,MAAOC,UAAQN"}
1
+ {"version":3,"file":"focusables.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusables.js"],"sourcesContent":["import { getTabbableNodes } from './utils/DOMutils';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { isGuard, isNotAGuard } from './utils/is';\nimport { getTopCommonParent } from './utils/parenting';\n/**\n * return list of focusable elements inside a given top node\n * @deprecated use {@link getFocusableIn}. Yep, there is typo in the function name\n */\nexport var getFocusabledIn = function (topNode) {\n var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);\n var commonParent = getTopCommonParent(topNode, topNode, entries);\n var visibilityCache = new Map();\n var outerNodes = getTabbableNodes([commonParent], visibilityCache, true);\n var innerElements = getTabbableNodes(entries, visibilityCache)\n .filter(function (_a) {\n var node = _a.node;\n return isNotAGuard(node);\n })\n .map(function (_a) {\n var node = _a.node;\n return node;\n });\n return outerNodes.map(function (_a) {\n var node = _a.node, index = _a.index;\n return ({\n node: node,\n index: index,\n lockItem: innerElements.indexOf(node) >= 0,\n guard: isGuard(node),\n });\n });\n};\n/**\n * return list of focusable elements inside a given top node\n */\nexport var getFocusableIn = getFocusabledIn;\n"],"names":["topNode","entries","getAllAffectedNodes","filter","isNotAGuard","commonParent","getTopCommonParent","visibilityCache","Map","outerNodes","getTabbableNodes","innerElements","_a","node","map","index","lockItem","indexOf","guard","isGuard"],"mappings":"mOAQ6B,SAAUA,GACnC,IAAIC,EAAUC,EAAAA,oBAAoBF,GAASG,OAAOC,EAAWA,aACzDC,EAAeC,EAAkBA,mBAACN,EAASA,EAASC,GACpDM,EAAkB,IAAIC,IACtBC,EAAaC,EAAAA,iBAAiB,CAACL,GAAeE,GAAiB,GAC/DI,EAAgBD,EAAAA,iBAAiBT,EAASM,GACzCJ,QAAO,SAAUS,GAClB,IAAIC,EAAOD,EAAGC,KACd,OAAOT,EAAAA,YAAYS,MAElBC,KAAI,SAAUF,GAEf,OADWA,EAAGC,QAGlB,OAAOJ,EAAWK,KAAI,SAAUF,GAC5B,IAAIC,EAAOD,EAAGC,KACd,MAAQ,CACJA,KAAMA,EACNE,MAHwBH,EAAGG,MAI3BC,SAAUL,EAAcM,QAAQJ,IAAS,EACzCK,MAAOC,EAAOA,QAACN"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/index.js"],"sourcesContent":["import * as constants from './constants';\nimport { focusInside } from './focusInside';\nimport { focusIsHidden } from './focusIsHidden';\nimport { getFocusMerge as focusMerge } from './focusMerge';\nimport { getFocusabledIn, getFocusableIn } from './focusables';\nimport { setFocus } from './setFocus';\nimport { focusNextElement, focusPrevElement } from './sibling';\nimport tabHook from './tabHook';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { getActiveElement } from './utils/getActiveElement';\nexport { tabHook, focusInside, focusIsHidden, focusMerge, getFocusableIn, getFocusabledIn, constants, getAllAffectedNodes, focusNextElement, focusPrevElement, getActiveElement, };\nexport default setFocus;\n//\n"],"names":["moveFocusInside"],"mappings":"wEAWAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./focusMerge.js"),o=function(e,o){e.focus(o),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},t=0,n=!1;exports.focusOn=o,exports.setFocus=function(c,s,u){void 0===u&&(u={});var i=e.getFocusMerge(c,s);if(!n&&i){if(t>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),n=!0,void setTimeout((function(){n=!1}),1);t++,o(i.node,u.focusOptions),t--}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./focusMerge.js"),o=function(e,o){"focus"in e&&e.focus(o),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},t=0,n=!1;exports.focusOn=o,exports.setFocus=function(c,s,u){void 0===u&&(u={});var i=e.getFocusMerge(c,s);if(!n&&i){if(t>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),n=!0,void setTimeout((function(){n=!1}),1);t++,o(i.node,u.focusOptions),t--}};
2
2
  //# sourceMappingURL=setFocus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"setFocus.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/setFocus.js"],"sourcesContent":["import { getFocusMerge } from './focusMerge';\nexport var focusOn = function (target, focusOptions) {\n target.focus(focusOptions);\n if ('contentWindow' in target && target.contentWindow) {\n target.contentWindow.focus();\n }\n};\nvar guardCount = 0;\nvar lockDisabled = false;\nexport var setFocus = function (topNode, lastNode, options) {\n if (options === void 0) { options = {}; }\n var focusable = getFocusMerge(topNode, lastNode);\n if (lockDisabled) {\n return;\n }\n if (focusable) {\n if (guardCount > 2) {\n console.error('FocusLock: focus-fighting detected. Only one focus management system could be active. ' +\n 'See https://github.com/theKashey/focus-lock/#focus-fighting');\n lockDisabled = true;\n setTimeout(function () {\n lockDisabled = false;\n }, 1);\n return;\n }\n guardCount++;\n focusOn(focusable.node, options.focusOptions);\n guardCount--;\n }\n};\n"],"names":["focusOn","target","focusOptions","focus","contentWindow","guardCount","lockDisabled","topNode","lastNode","options","focusable","getFocusMerge","console","error","setTimeout","node"],"mappings":"qGACWA,EAAU,SAAUC,EAAQC,GACnCD,EAAOE,MAAMD,GACT,kBAAmBD,GAAUA,EAAOG,eACpCH,EAAOG,cAAcD,SAGzBE,EAAa,EACbC,GAAe,qCACG,SAAUC,EAASC,EAAUC,QAC/B,IAAZA,IAAsBA,EAAU,IACpC,IAAIC,EAAYC,gBAAcJ,EAASC,GACvC,IAAIF,GAGAI,EAAW,CACX,GAAIL,EAAa,EAOb,OANAO,QAAQC,MAAM,qJAEdP,GAAe,OACfQ,YAAW,WACPR,GAAe,IAChB,GAGPD,IACAL,EAAQU,EAAUK,KAAMN,EAAQP,cAChCG"}
1
+ {"version":3,"file":"setFocus.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/setFocus.js"],"sourcesContent":["import { getFocusMerge } from './focusMerge';\nexport var focusOn = function (target, focusOptions) {\n if ('focus' in target) {\n target.focus(focusOptions);\n }\n if ('contentWindow' in target && target.contentWindow) {\n target.contentWindow.focus();\n }\n};\nvar guardCount = 0;\nvar lockDisabled = false;\n/**\n * Sets focus at a given node. The last focused element will help to determine which element(first or last) should be focused.\n * HTML markers (see {@link import('./constants').FOCUS_AUTO} constants) can control autofocus\n * @param topNode\n * @param lastNode\n * @param options\n */\nexport var setFocus = function (topNode, lastNode, options) {\n if (options === void 0) { options = {}; }\n var focusable = getFocusMerge(topNode, lastNode);\n if (lockDisabled) {\n return;\n }\n if (focusable) {\n if (guardCount > 2) {\n // tslint:disable-next-line:no-console\n console.error('FocusLock: focus-fighting detected. Only one focus management system could be active. ' +\n 'See https://github.com/theKashey/focus-lock/#focus-fighting');\n lockDisabled = true;\n setTimeout(function () {\n lockDisabled = false;\n }, 1);\n return;\n }\n guardCount++;\n focusOn(focusable.node, options.focusOptions);\n guardCount--;\n }\n};\n"],"names":["focusOn","target","focusOptions","focus","contentWindow","guardCount","lockDisabled","topNode","lastNode","options","focusable","getFocusMerge","console","error","setTimeout","node"],"mappings":"qGACWA,EAAU,SAAUC,EAAQC,GAC/B,UAAWD,GACXA,EAAOE,MAAMD,GAEb,kBAAmBD,GAAUA,EAAOG,eACpCH,EAAOG,cAAcD,SAGzBE,EAAa,EACbC,GAAe,qCAQG,SAAUC,EAASC,EAAUC,QAC/B,IAAZA,IAAsBA,EAAU,IACpC,IAAIC,EAAYC,EAAAA,cAAcJ,EAASC,GACvC,IAAIF,GAGAI,EAAW,CACX,GAAIL,EAAa,EAQb,OANAO,QAAQC,MAAM,qJAEdP,GAAe,OACfQ,YAAW,WACPR,GAAe,IAChB,GAGPD,IACAL,EAAQU,EAAUK,KAAMN,EAAQP,cAChCG"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/correctFocus.js"),s=require("./utils/firstFocus.js"),i=require("./utils/is.js");exports.NEW_FOCUS="NEW_FOCUS",exports.newFocus=function(r,t,u,a){var o=r.length,c=r[0],n=r[o-1],d=i.isGuard(u);if(!(r.indexOf(u)>=0)){var f=t.indexOf(u),O=a?t.indexOf(a):f,x=a?r.indexOf(a):-1,l=f-O,F=t.indexOf(c),b=t.indexOf(n),p=e.correctNodes(t),h=p.indexOf(u)-(a?p.indexOf(a):f),v=s.pickFocusable(r,0),M=s.pickFocusable(r,o-1);return-1===f||-1===x?"NEW_FOCUS":!l&&x>=0?x:f<=F&&d&&Math.abs(l)>1?M:f>=b&&d&&Math.abs(l)>1?v:l&&Math.abs(h)>1?x:f<=F?M:f>b?v:l?Math.abs(l)>1?x:(o+x+l)%o:void 0}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/correctFocus.js"),i=require("./utils/firstFocus.js"),s=require("./utils/is.js");exports.NEW_FOCUS="NEW_FOCUS",exports.newFocus=function(r,t,o,u){var a=r.length,d=r[0],c=r[a-1],n=s.isGuard(o);if(!(o&&r.indexOf(o)>=0)){var f=void 0!==o?t.indexOf(o):-1,O=u?t.indexOf(u):f,x=u?r.indexOf(u):-1,l=f-O,F=t.indexOf(d),b=t.indexOf(c),v=e.correctNodes(t),p=(void 0!==o?v.indexOf(o):-1)-(u?v.indexOf(u):f),h=i.pickFocusable(r,0),M=i.pickFocusable(r,a-1);return-1===f||-1===x?"NEW_FOCUS":!l&&x>=0?x:f<=F&&n&&Math.abs(l)>1?M:f>=b&&n&&Math.abs(l)>1?h:l&&Math.abs(p)>1?x:f<=F?M:f>b?h:l?Math.abs(l)>1?x:(a+x+l)%a:void 0}};
2
2
  //# sourceMappingURL=solver.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solver.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/solver.js"],"sourcesContent":["import { correctNodes } from './utils/correctFocus';\nimport { pickFocusable } from './utils/firstFocus';\nimport { isGuard } from './utils/is';\nexport var NEW_FOCUS = 'NEW_FOCUS';\nexport var newFocus = function (innerNodes, outerNodes, activeElement, lastNode) {\n var cnt = innerNodes.length;\n var firstFocus = innerNodes[0];\n var lastFocus = innerNodes[cnt - 1];\n var isOnGuard = isGuard(activeElement);\n if (innerNodes.indexOf(activeElement) >= 0) {\n return undefined;\n }\n var activeIndex = outerNodes.indexOf(activeElement);\n var lastIndex = lastNode ? outerNodes.indexOf(lastNode) : activeIndex;\n var lastNodeInside = lastNode ? innerNodes.indexOf(lastNode) : -1;\n var indexDiff = activeIndex - lastIndex;\n var firstNodeIndex = outerNodes.indexOf(firstFocus);\n var lastNodeIndex = outerNodes.indexOf(lastFocus);\n var correctedNodes = correctNodes(outerNodes);\n var correctedIndexDiff = correctedNodes.indexOf(activeElement) - (lastNode ? correctedNodes.indexOf(lastNode) : activeIndex);\n var returnFirstNode = pickFocusable(innerNodes, 0);\n var returnLastNode = pickFocusable(innerNodes, cnt - 1);\n if (activeIndex === -1 || lastNodeInside === -1) {\n return NEW_FOCUS;\n }\n if (!indexDiff && lastNodeInside >= 0) {\n return lastNodeInside;\n }\n if (activeIndex <= firstNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnLastNode;\n }\n if (activeIndex >= lastNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnFirstNode;\n }\n if (indexDiff && Math.abs(correctedIndexDiff) > 1) {\n return lastNodeInside;\n }\n if (activeIndex <= firstNodeIndex) {\n return returnLastNode;\n }\n if (activeIndex > lastNodeIndex) {\n return returnFirstNode;\n }\n if (indexDiff) {\n if (Math.abs(indexDiff) > 1) {\n return lastNodeInside;\n }\n return (cnt + lastNodeInside + indexDiff) % cnt;\n }\n return undefined;\n};\n"],"names":["innerNodes","outerNodes","activeElement","lastNode","cnt","length","firstFocus","lastFocus","isOnGuard","isGuard","indexOf","activeIndex","lastIndex","lastNodeInside","indexDiff","firstNodeIndex","lastNodeIndex","correctedNodes","correctNodes","correctedIndexDiff","returnFirstNode","pickFocusable","returnLastNode","Math","abs"],"mappings":"6LAGuB,6BACD,SAAUA,EAAYC,EAAYC,EAAeC,GACnE,IAAIC,EAAMJ,EAAWK,OACjBC,EAAaN,EAAW,GACxBO,EAAYP,EAAWI,EAAM,GAC7BI,EAAYC,UAAQP,GACxB,KAAIF,EAAWU,QAAQR,IAAkB,GAAzC,CAGA,IAAIS,EAAcV,EAAWS,QAAQR,GACjCU,EAAYT,EAAWF,EAAWS,QAAQP,GAAYQ,EACtDE,EAAiBV,EAAWH,EAAWU,QAAQP,IAAa,EAC5DW,EAAYH,EAAcC,EAC1BG,EAAiBd,EAAWS,QAAQJ,GACpCU,EAAgBf,EAAWS,QAAQH,GACnCU,EAAiBC,eAAajB,GAC9BkB,EAAqBF,EAAeP,QAAQR,IAAkBC,EAAWc,EAAeP,QAAQP,GAAYQ,GAC5GS,EAAkBC,gBAAcrB,EAAY,GAC5CsB,EAAiBD,gBAAcrB,EAAYI,EAAM,GACrD,OAAqB,IAAjBO,IAA0C,IAApBE,EAnBP,aAsBdC,GAAaD,GAAkB,EACzBA,EAEPF,GAAeI,GAAkBP,GAAae,KAAKC,IAAIV,GAAa,EAC7DQ,EAEPX,GAAeK,GAAiBR,GAAae,KAAKC,IAAIV,GAAa,EAC5DM,EAEPN,GAAaS,KAAKC,IAAIL,GAAsB,EACrCN,EAEPF,GAAeI,EACRO,EAEPX,EAAcK,EACPI,EAEPN,EACIS,KAAKC,IAAIV,GAAa,EACfD,GAEHT,EAAMS,EAAiBC,GAAaV,OAJhD"}
1
+ {"version":3,"file":"solver.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/solver.js"],"sourcesContent":["import { correctNodes } from './utils/correctFocus';\nimport { pickFocusable } from './utils/firstFocus';\nimport { isGuard } from './utils/is';\nexport var NEW_FOCUS = 'NEW_FOCUS';\n/**\n * Main solver for the \"find next focus\" question\n * @param innerNodes\n * @param outerNodes\n * @param activeElement\n * @param lastNode\n * @returns {number|string|undefined|*}\n */\nexport var newFocus = function (innerNodes, outerNodes, activeElement, lastNode) {\n var cnt = innerNodes.length;\n var firstFocus = innerNodes[0];\n var lastFocus = innerNodes[cnt - 1];\n var isOnGuard = isGuard(activeElement);\n // focus is inside\n if (activeElement && innerNodes.indexOf(activeElement) >= 0) {\n return undefined;\n }\n var activeIndex = activeElement !== undefined ? outerNodes.indexOf(activeElement) : -1;\n var lastIndex = lastNode ? outerNodes.indexOf(lastNode) : activeIndex;\n var lastNodeInside = lastNode ? innerNodes.indexOf(lastNode) : -1;\n var indexDiff = activeIndex - lastIndex;\n var firstNodeIndex = outerNodes.indexOf(firstFocus);\n var lastNodeIndex = outerNodes.indexOf(lastFocus);\n var correctedNodes = correctNodes(outerNodes);\n var correctedIndex = activeElement !== undefined ? correctedNodes.indexOf(activeElement) : -1;\n var correctedIndexDiff = correctedIndex - (lastNode ? correctedNodes.indexOf(lastNode) : activeIndex);\n var returnFirstNode = pickFocusable(innerNodes, 0);\n var returnLastNode = pickFocusable(innerNodes, cnt - 1);\n // new focus\n if (activeIndex === -1 || lastNodeInside === -1) {\n return NEW_FOCUS;\n }\n // old focus\n if (!indexDiff && lastNodeInside >= 0) {\n return lastNodeInside;\n }\n // first element\n if (activeIndex <= firstNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnLastNode;\n }\n // last element\n if (activeIndex >= lastNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnFirstNode;\n }\n // jump out, but not on the guard\n if (indexDiff && Math.abs(correctedIndexDiff) > 1) {\n return lastNodeInside;\n }\n // focus above lock\n if (activeIndex <= firstNodeIndex) {\n return returnLastNode;\n }\n // focus below lock\n if (activeIndex > lastNodeIndex) {\n return returnFirstNode;\n }\n // index is inside tab order, but outside Lock\n if (indexDiff) {\n if (Math.abs(indexDiff) > 1) {\n return lastNodeInside;\n }\n return (cnt + lastNodeInside + indexDiff) % cnt;\n }\n // do nothing\n return undefined;\n};\n"],"names":["innerNodes","outerNodes","activeElement","lastNode","cnt","length","firstFocus","lastFocus","isOnGuard","isGuard","indexOf","activeIndex","undefined","lastIndex","lastNodeInside","indexDiff","firstNodeIndex","lastNodeIndex","correctedNodes","correctNodes","correctedIndexDiff","returnFirstNode","pickFocusable","returnLastNode","Math","abs"],"mappings":"6LAGuB,6BASD,SAAUA,EAAYC,EAAYC,EAAeC,GACnE,IAAIC,EAAMJ,EAAWK,OACjBC,EAAaN,EAAW,GACxBO,EAAYP,EAAWI,EAAM,GAC7BI,EAAYC,UAAQP,GAExB,KAAIA,GAAiBF,EAAWU,QAAQR,IAAkB,GAA1D,CAGA,IAAIS,OAAgCC,IAAlBV,EAA8BD,EAAWS,QAAQR,IAAkB,EACjFW,EAAYV,EAAWF,EAAWS,QAAQP,GAAYQ,EACtDG,EAAiBX,EAAWH,EAAWU,QAAQP,IAAa,EAC5DY,EAAYJ,EAAcE,EAC1BG,EAAiBf,EAAWS,QAAQJ,GACpCW,EAAgBhB,EAAWS,QAAQH,GACnCW,EAAiBC,eAAalB,GAE9BmB,QADmCR,IAAlBV,EAA8BgB,EAAeR,QAAQR,IAAkB,IACjDC,EAAWe,EAAeR,QAAQP,GAAYQ,GACrFU,EAAkBC,EAAAA,cAActB,EAAY,GAC5CuB,EAAiBD,EAAaA,cAACtB,EAAYI,EAAM,GAErD,OAAqB,IAAjBO,IAA0C,IAApBG,EA9BP,aAkCdC,GAAaD,GAAkB,EACzBA,EAGPH,GAAeK,GAAkBR,GAAagB,KAAKC,IAAIV,GAAa,EAC7DQ,EAGPZ,GAAeM,GAAiBT,GAAagB,KAAKC,IAAIV,GAAa,EAC5DM,EAGPN,GAAaS,KAAKC,IAAIL,GAAsB,EACrCN,EAGPH,GAAeK,EACRO,EAGPZ,EAAcM,EACPI,EAGPN,EACIS,KAAKC,IAAIV,GAAa,EACfD,GAEHV,EAAMU,EAAiBC,GAAaX,OAJhD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./array.js"),r=require("./is.js"),t=require("./tabOrder.js"),s=require("./tabUtils.js"),u=function(t,s){return e.toArray(t).filter((function(e){return r.isVisibleCached(s,e)})).filter((function(e){return r.notHiddenInput(e)}))};exports.filterFocusable=u,exports.getAllTabbableNodes=function(e,r){return t.orderByTabIndex(u(s.getFocusables(e),r),!1)},exports.getTabbableNodes=function(e,r,n){return t.orderByTabIndex(u(s.getFocusables(e,n),r),!0,n)},exports.parentAutofocusables=function(e,r){return u(s.getParentAutofocusables(e),r)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./array.js"),t=require("./is.js"),r=require("./tabOrder.js"),o=require("./tabUtils.js"),n=function(r,o){return e.toArray(r).filter((function(e){return t.isVisibleCached(o,e)})).filter((function(e){return t.notHiddenInput(e)}))},u=function(t,r){return(t.shadowRoot?u(t.shadowRoot,r):Object.getPrototypeOf(t).contains.call(t,r))||e.toArray(t.children).some((function(e){return u(e,r)}))};exports.contains=u,exports.filterAutoFocusable=function(r,o){return void 0===o&&(o=new Map),e.toArray(r).filter((function(e){return t.isAutoFocusAllowedCached(o,e)}))},exports.filterFocusable=n,exports.getAllTabbableNodes=function(e,t){return r.orderByTabIndex(n(o.getFocusables(e),t),!1)},exports.getTabbableNodes=function(e,t,u){return r.orderByTabIndex(n(o.getFocusables(e,u),t),!0,u)},exports.parentAutofocusables=function(e,t){return n(o.getParentAutofocusables(e),t)};
2
2
  //# sourceMappingURL=DOMutils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DOMutils.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/DOMutils.js"],"sourcesContent":["import { toArray } from './array';\nimport { isVisibleCached, notHiddenInput } from './is';\nimport { orderByTabIndex } from './tabOrder';\nimport { getFocusables, getParentAutofocusables } from './tabUtils';\nexport var filterFocusable = function (nodes, visibilityCache) {\n return toArray(nodes)\n .filter(function (node) { return isVisibleCached(visibilityCache, node); })\n .filter(function (node) { return notHiddenInput(node); });\n};\nexport var getTabbableNodes = function (topNodes, visibilityCache, withGuards) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes, withGuards), visibilityCache), true, withGuards);\n};\nexport var getAllTabbableNodes = function (topNodes, visibilityCache) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes), visibilityCache), false);\n};\nexport var parentAutofocusables = function (topNode, visibilityCache) {\n return filterFocusable(getParentAutofocusables(topNode), visibilityCache);\n};\n"],"names":["filterFocusable","nodes","visibilityCache","toArray","filter","node","isVisibleCached","notHiddenInput","topNodes","orderByTabIndex","getFocusables","withGuards","topNode","getParentAutofocusables"],"mappings":"2KAIWA,EAAkB,SAAUC,EAAOC,GAC1C,OAAOC,UAAQF,GACVG,QAAO,SAAUC,GAAQ,OAAOC,kBAAgBJ,EAAiBG,MACjED,QAAO,SAAUC,GAAQ,OAAOE,iBAAeF,6DAKvB,SAAUG,EAAUN,GACjD,OAAOO,kBAAgBT,EAAgBU,gBAAcF,GAAWN,IAAkB,6BAJxD,SAAUM,EAAUN,EAAiBS,GAC/D,OAAOF,kBAAgBT,EAAgBU,gBAAcF,EAAUG,GAAaT,IAAkB,EAAMS,iCAKtE,SAAUC,EAASV,GACjD,OAAOF,EAAgBa,0BAAwBD,GAAUV"}
1
+ {"version":3,"file":"DOMutils.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/DOMutils.js"],"sourcesContent":["import { toArray } from './array';\nimport { isAutoFocusAllowedCached, isVisibleCached, notHiddenInput } from './is';\nimport { orderByTabIndex } from './tabOrder';\nimport { getFocusables, getParentAutofocusables } from './tabUtils';\n/**\n * given list of focusable elements keeps the ones user can interact with\n * @param nodes\n * @param visibilityCache\n */\nexport var filterFocusable = function (nodes, visibilityCache) {\n return toArray(nodes)\n .filter(function (node) { return isVisibleCached(visibilityCache, node); })\n .filter(function (node) { return notHiddenInput(node); });\n};\nexport var filterAutoFocusable = function (nodes, cache) {\n if (cache === void 0) { cache = new Map(); }\n return toArray(nodes).filter(function (node) { return isAutoFocusAllowedCached(cache, node); });\n};\n/**\n * only tabbable ones\n * (but with guards which would be ignored)\n */\nexport var getTabbableNodes = function (topNodes, visibilityCache, withGuards) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes, withGuards), visibilityCache), true, withGuards);\n};\n/**\n * actually anything \"focusable\", not only tabbable\n * (without guards, as long as they are not expected to be focused)\n */\nexport var getAllTabbableNodes = function (topNodes, visibilityCache) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes), visibilityCache), false);\n};\n/**\n * return list of nodes which are expected to be auto-focused\n * @param topNode\n * @param visibilityCache\n */\nexport var parentAutofocusables = function (topNode, visibilityCache) {\n return filterFocusable(getParentAutofocusables(topNode), visibilityCache);\n};\n/*\n * Determines if element is contained in scope, including nested shadow DOMs\n */\nexport var contains = function (scope, element) {\n return ((scope.shadowRoot\n ? contains(scope.shadowRoot, element)\n : Object.getPrototypeOf(scope).contains.call(scope, element)) ||\n toArray(scope.children).some(function (child) { return contains(child, element); }));\n};\n"],"names":["filterFocusable","nodes","visibilityCache","toArray","filter","node","isVisibleCached","notHiddenInput","contains","scope","element","shadowRoot","Object","getPrototypeOf","call","children","some","child","cache","Map","isAutoFocusAllowedCached","topNodes","orderByTabIndex","getFocusables","withGuards","topNode","getParentAutofocusables"],"mappings":"2KASWA,EAAkB,SAAUC,EAAOC,GAC1C,OAAOC,EAAAA,QAAQF,GACVG,QAAO,SAAUC,GAAQ,OAAOC,EAAeA,gBAACJ,EAAiBG,MACjED,QAAO,SAAUC,GAAQ,OAAOE,EAAcA,eAACF,OA+B7CG,EAAW,SAAUC,EAAOC,GACnC,OAASD,EAAME,WACTH,EAASC,EAAME,WAAYD,GAC3BE,OAAOC,eAAeJ,GAAOD,SAASM,KAAKL,EAAOC,KACpDP,EAAAA,QAAQM,EAAMM,UAAUC,MAAK,SAAUC,GAAS,OAAOT,EAASS,EAAOP,sDAjC9C,SAAUT,EAAOiB,GAE9C,YADc,IAAVA,IAAoBA,EAAQ,IAAIC,KAC7BhB,UAAQF,GAAOG,QAAO,SAAUC,GAAQ,OAAOe,EAAAA,yBAAyBF,EAAOb,6DAazD,SAAUgB,EAAUnB,GACjD,OAAOoB,EAAAA,gBAAgBtB,EAAgBuB,EAAaA,cAACF,GAAWnB,IAAkB,6BARxD,SAAUmB,EAAUnB,EAAiBsB,GAC/D,OAAOF,EAAeA,gBAACtB,EAAgBuB,EAAAA,cAAcF,EAAUG,GAAatB,IAAkB,EAAMsB,iCActE,SAAUC,EAASvB,GACjD,OAAOF,EAAgB0B,EAAuBA,wBAACD,GAAUvB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../constants.js"),r=require("./array.js"),t=function(e){return e.parentNode?t(e.parentNode):e};exports.getAllAffectedNodes=function(n){return r.asArray(n).filter(Boolean).reduce((function(n,o){var a=o.getAttribute(e.FOCUS_GROUP);return n.push.apply(n,a?function(e){for(var r=new Set,t=e.length,n=0;n<t;n+=1)for(var o=n+1;o<t;o+=1){var a=e[n].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&r.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(n)}return e.filter((function(e,t){return!r.has(t)}))}(r.toArray(t(o).querySelectorAll("["+e.FOCUS_GROUP+'="'+a+'"]:not(['+e.FOCUS_DISABLED+'="disabled"])'))):[o]),n}),[])};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../constants.js"),r=require("./array.js"),t=function(e){return e.parentNode?t(e.parentNode):e};exports.getAllAffectedNodes=function(n){return r.asArray(n).filter(Boolean).reduce((function(n,o){var a=o.getAttribute(e.FOCUS_GROUP);return n.push.apply(n,a?function(e){for(var r=new Set,t=e.length,n=0;n<t;n+=1)for(var o=n+1;o<t;o+=1){var a=e[n].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&r.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(n)}return e.filter((function(e,t){return!r.has(t)}))}(r.toArray(t(o).querySelectorAll("[".concat(e.FOCUS_GROUP,'="').concat(a,'"]:not([').concat(e.FOCUS_DISABLED,'="disabled"])')))):[o]),n}),[])};
2
2
  //# sourceMappingURL=all-affected.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"all-affected.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/all-affected.js"],"sourcesContent":["import { FOCUS_DISABLED, FOCUS_GROUP } from '../constants';\nimport { asArray, toArray } from './array';\nvar filterNested = function (nodes) {\n var contained = new Set();\n var l = nodes.length;\n for (var i = 0; i < l; i += 1) {\n for (var j = i + 1; j < l; j += 1) {\n var position = nodes[i].compareDocumentPosition(nodes[j]);\n if ((position & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0) {\n contained.add(j);\n }\n if ((position & Node.DOCUMENT_POSITION_CONTAINS) > 0) {\n contained.add(i);\n }\n }\n }\n return nodes.filter(function (_, index) { return !contained.has(index); });\n};\nvar getTopParent = function (node) {\n return node.parentNode ? getTopParent(node.parentNode) : node;\n};\nexport var getAllAffectedNodes = function (node) {\n var nodes = asArray(node);\n return nodes.filter(Boolean).reduce(function (acc, currentNode) {\n var group = currentNode.getAttribute(FOCUS_GROUP);\n acc.push.apply(acc, (group\n ? filterNested(toArray(getTopParent(currentNode).querySelectorAll(\"[\" + FOCUS_GROUP + \"=\\\"\" + group + \"\\\"]:not([\" + FOCUS_DISABLED + \"=\\\"disabled\\\"])\")))\n : [currentNode]));\n return acc;\n }, []);\n};\n"],"names":["getTopParent","node","parentNode","asArray","filter","Boolean","reduce","acc","currentNode","group","getAttribute","FOCUS_GROUP","push","apply","nodes","contained","Set","l","length","i","j","position","compareDocumentPosition","Node","DOCUMENT_POSITION_CONTAINED_BY","add","DOCUMENT_POSITION_CONTAINS","_","index","has","filterNested","toArray","querySelectorAll","FOCUS_DISABLED"],"mappings":"6HAkBIA,EAAe,SAAUC,GACzB,OAAOA,EAAKC,WAAaF,EAAaC,EAAKC,YAAcD,+BAE5B,SAAUA,GAEvC,OADYE,UAAQF,GACPG,OAAOC,SAASC,QAAO,SAAUC,EAAKC,GAC/C,IAAIC,EAAQD,EAAYE,aAAaC,eAIrC,OAHAJ,EAAIK,KAAKC,MAAMN,EAAME,EAvBV,SAAUK,GAGzB,IAFA,IAAIC,EAAY,IAAIC,IAChBC,EAAIH,EAAMI,OACLC,EAAI,EAAGA,EAAIF,EAAGE,GAAK,EACxB,IAAK,IAAIC,EAAID,EAAI,EAAGC,EAAIH,EAAGG,GAAK,EAAG,CAC/B,IAAIC,EAAWP,EAAMK,GAAGG,wBAAwBR,EAAMM,KACjDC,EAAWE,KAAKC,gCAAkC,GACnDT,EAAUU,IAAIL,IAEbC,EAAWE,KAAKG,4BAA8B,GAC/CX,EAAUU,IAAIN,GAI1B,OAAOL,EAAMV,QAAO,SAAUuB,EAAGC,GAAS,OAAQb,EAAUc,IAAID,MAUtDE,CAAaC,UAAQ/B,EAAaQ,GAAawB,iBAAiB,IAAMrB,cAAc,KAAQF,EAAQ,WAAcwB,iBAAiB,mBACnI,CAACzB,IACAD,IACR"}
1
+ {"version":3,"file":"all-affected.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/all-affected.js"],"sourcesContent":["import { FOCUS_DISABLED, FOCUS_GROUP } from '../constants';\nimport { asArray, toArray } from './array';\n/**\n * in case of multiple nodes nested inside each other\n * keeps only top ones\n * this is O(nlogn)\n * @param nodes\n * @returns {*}\n */\nvar filterNested = function (nodes) {\n var contained = new Set();\n var l = nodes.length;\n for (var i = 0; i < l; i += 1) {\n for (var j = i + 1; j < l; j += 1) {\n var position = nodes[i].compareDocumentPosition(nodes[j]);\n /* eslint-disable no-bitwise */\n if ((position & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0) {\n contained.add(j);\n }\n if ((position & Node.DOCUMENT_POSITION_CONTAINS) > 0) {\n contained.add(i);\n }\n /* eslint-enable */\n }\n }\n return nodes.filter(function (_, index) { return !contained.has(index); });\n};\n/**\n * finds top most parent for a node\n * @param node\n * @returns {*}\n */\nvar getTopParent = function (node) {\n return node.parentNode ? getTopParent(node.parentNode) : node;\n};\n/**\n * returns all \"focus containers\" inside a given node\n * @param node\n * @returns {T}\n */\nexport var getAllAffectedNodes = function (node) {\n var nodes = asArray(node);\n return nodes.filter(Boolean).reduce(function (acc, currentNode) {\n var group = currentNode.getAttribute(FOCUS_GROUP);\n acc.push.apply(acc, (group\n ? filterNested(toArray(getTopParent(currentNode).querySelectorAll(\"[\".concat(FOCUS_GROUP, \"=\\\"\").concat(group, \"\\\"]:not([\").concat(FOCUS_DISABLED, \"=\\\"disabled\\\"])\"))))\n : [currentNode]));\n return acc;\n }, []);\n};\n"],"names":["getTopParent","node","parentNode","asArray","filter","Boolean","reduce","acc","currentNode","group","getAttribute","FOCUS_GROUP","push","apply","nodes","contained","Set","l","length","i","j","position","compareDocumentPosition","Node","DOCUMENT_POSITION_CONTAINED_BY","add","DOCUMENT_POSITION_CONTAINS","_","index","has","filterNested","toArray","querySelectorAll","concat","FOCUS_DISABLED"],"mappings":"6HAgCIA,EAAe,SAAUC,GACzB,OAAOA,EAAKC,WAAaF,EAAaC,EAAKC,YAAcD,+BAO5B,SAAUA,GAEvC,OADYE,UAAQF,GACPG,OAAOC,SAASC,QAAO,SAAUC,EAAKC,GAC/C,IAAIC,EAAQD,EAAYE,aAAaC,EAAWA,aAIhD,OAHAJ,EAAIK,KAAKC,MAAMN,EAAME,EAnCV,SAAUK,GAGzB,IAFA,IAAIC,EAAY,IAAIC,IAChBC,EAAIH,EAAMI,OACLC,EAAI,EAAGA,EAAIF,EAAGE,GAAK,EACxB,IAAK,IAAIC,EAAID,EAAI,EAAGC,EAAIH,EAAGG,GAAK,EAAG,CAC/B,IAAIC,EAAWP,EAAMK,GAAGG,wBAAwBR,EAAMM,KAEjDC,EAAWE,KAAKC,gCAAkC,GACnDT,EAAUU,IAAIL,IAEbC,EAAWE,KAAKG,4BAA8B,GAC/CX,EAAUU,IAAIN,GAK1B,OAAOL,EAAMV,QAAO,SAAUuB,EAAGC,GAAS,OAAQb,EAAUc,IAAID,MAoBtDE,CAAaC,EAAOA,QAAC/B,EAAaQ,GAAawB,iBAAiB,IAAIC,OAAOtB,EAAWA,YAAE,MAAOsB,OAAOxB,EAAO,YAAawB,OAAOC,iBAAgB,oBACjJ,CAAC1B,IACAD,IACR"}
@@ -1 +1 @@
1
- {"version":3,"file":"array.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/array.js"],"sourcesContent":["export var toArray = function (a) {\n var ret = Array(a.length);\n for (var i = 0; i < a.length; ++i) {\n ret[i] = a[i];\n }\n return ret;\n};\nexport var asArray = function (a) { return (Array.isArray(a) ? a : [a]); };\n"],"names":["a","Array","isArray","ret","length","i"],"mappings":"oFAOqB,SAAUA,GAAK,OAAQC,MAAMC,QAAQF,GAAKA,EAAI,CAACA,oBAP/C,SAAUA,GAE3B,IADA,IAAIG,EAAMF,MAAMD,EAAEI,QACTC,EAAI,EAAGA,EAAIL,EAAEI,SAAUC,EAC5BF,EAAIE,GAAKL,EAAEK,GAEf,OAAOF"}
1
+ {"version":3,"file":"array.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/array.js"],"sourcesContent":["/*\nIE11 support\n */\nexport var toArray = function (a) {\n var ret = Array(a.length);\n for (var i = 0; i < a.length; ++i) {\n ret[i] = a[i];\n }\n return ret;\n};\nexport var asArray = function (a) { return (Array.isArray(a) ? a : [a]); };\n"],"names":["a","Array","isArray","ret","length","i"],"mappings":"oFAUqB,SAAUA,GAAK,OAAQC,MAAMC,QAAQF,GAAKA,EAAI,CAACA,oBAP/C,SAAUA,GAE3B,IADA,IAAIG,EAAMF,MAAMD,EAAEI,QACTC,EAAI,EAAGA,EAAIL,EAAEI,SAAUC,EAC5BF,EAAIE,GAAKL,EAAEK,GAEf,OAAOF"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e){return"INPUT"===e.tagName&&"radio"===e.type},r=function(r,t){return e(r)&&r.name?function(r,t){return t.filter(e).filter((function(e){return e.name===r.name})).filter((function(e){return e.checked}))[0]||r}(r,t):r};exports.correctNode=r,exports.correctNodes=function(e){var t=new Set;return e.forEach((function(n){return t.add(r(n,e))})),e.filter((function(e){return t.has(e)}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./is.js"),r=function(r,t){return e.isRadioElement(r)&&r.name?function(r,t){return t.filter(e.isRadioElement).filter((function(e){return e.name===r.name})).filter((function(e){return e.checked}))[0]||r}(r,t):r};exports.correctNode=r,exports.correctNodes=function(e){var t=new Set;return e.forEach((function(n){return t.add(r(n,e))})),e.filter((function(e){return t.has(e)}))};
2
2
  //# sourceMappingURL=correctFocus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"correctFocus.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/correctFocus.js"],"sourcesContent":["var isRadio = function (node) { return node.tagName === 'INPUT' && node.type === 'radio'; };\nvar findSelectedRadio = function (node, nodes) {\n return nodes\n .filter(isRadio)\n .filter(function (el) { return el.name === node.name; })\n .filter(function (el) { return el.checked; })[0] || node;\n};\nexport var correctNode = function (node, nodes) {\n if (isRadio(node) && node.name) {\n return findSelectedRadio(node, nodes);\n }\n return node;\n};\nexport var correctNodes = function (nodes) {\n var resultSet = new Set();\n nodes.forEach(function (node) { return resultSet.add(correctNode(node, nodes)); });\n return nodes.filter(function (node) { return resultSet.has(node); });\n};\n"],"names":["isRadio","node","tagName","type","correctNode","nodes","name","filter","el","checked","findSelectedRadio","resultSet","Set","forEach","add","has"],"mappings":"oEAAA,IAAIA,EAAU,SAAUC,GAAQ,MAAwB,UAAjBA,EAAKC,SAAqC,UAAdD,EAAKE,MAO7DC,EAAc,SAAUH,EAAMI,GACrC,OAAIL,EAAQC,IAASA,EAAKK,KAPN,SAAUL,EAAMI,GACpC,OAAOA,EACFE,OAAOP,GACPO,QAAO,SAAUC,GAAM,OAAOA,EAAGF,OAASL,EAAKK,QAC/CC,QAAO,SAAUC,GAAM,OAAOA,EAAGC,WAAY,IAAMR,EAI7CS,CAAkBT,EAAMI,GAE5BJ,8CAEe,SAAUI,GAChC,IAAIM,EAAY,IAAIC,IAEpB,OADAP,EAAMQ,SAAQ,SAAUZ,GAAQ,OAAOU,EAAUG,IAAIV,EAAYH,EAAMI,OAChEA,EAAME,QAAO,SAAUN,GAAQ,OAAOU,EAAUI,IAAId"}
1
+ {"version":3,"file":"correctFocus.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/correctFocus.js"],"sourcesContent":["import { isRadioElement } from './is';\nvar findSelectedRadio = function (node, nodes) {\n return nodes\n .filter(isRadioElement)\n .filter(function (el) { return el.name === node.name; })\n .filter(function (el) { return el.checked; })[0] || node;\n};\nexport var correctNode = function (node, nodes) {\n if (isRadioElement(node) && node.name) {\n return findSelectedRadio(node, nodes);\n }\n return node;\n};\n/**\n * giving a set of radio inputs keeps only selected (tabbable) ones\n * @param nodes\n */\nexport var correctNodes = function (nodes) {\n // IE11 has no Set(array) constructor\n var resultSet = new Set();\n nodes.forEach(function (node) { return resultSet.add(correctNode(node, nodes)); });\n // using filter to support IE11\n return nodes.filter(function (node) { return resultSet.has(node); });\n};\n"],"names":["correctNode","node","nodes","isRadioElement","name","filter","el","checked","findSelectedRadio","resultSet","Set","forEach","add","has"],"mappings":"6FAOWA,EAAc,SAAUC,EAAMC,GACrC,OAAIC,iBAAeF,IAASA,EAAKG,KAPb,SAAUH,EAAMC,GACpC,OAAOA,EACFG,OAAOF,EAAAA,gBACPE,QAAO,SAAUC,GAAM,OAAOA,EAAGF,OAASH,EAAKG,QAC/CC,QAAO,SAAUC,GAAM,OAAOA,EAAGC,WAAY,IAAMN,EAI7CO,CAAkBP,EAAMC,GAE5BD,8CAMe,SAAUC,GAEhC,IAAIO,EAAY,IAAIC,IAGpB,OAFAR,EAAMS,SAAQ,SAAUV,GAAQ,OAAOQ,EAAUG,IAAIZ,EAAYC,EAAMC,OAEhEA,EAAMG,QAAO,SAAUJ,GAAQ,OAAOQ,EAAUI,IAAIZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"firstFocus.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/firstFocus.js"],"sourcesContent":["import { correctNode } from './correctFocus';\nexport var pickFirstFocus = function (nodes) {\n if (nodes[0] && nodes.length > 1) {\n return correctNode(nodes[0], nodes);\n }\n return nodes[0];\n};\nexport var pickFocusable = function (nodes, index) {\n if (nodes.length > 1) {\n return nodes.indexOf(correctNode(nodes[index], nodes));\n }\n return index;\n};\n"],"names":["nodes","length","correctNode","index","indexOf"],"mappings":"8HAC4B,SAAUA,GAClC,OAAIA,EAAM,IAAMA,EAAMC,OAAS,EACpBC,cAAYF,EAAM,GAAIA,GAE1BA,EAAM,0BAEU,SAAUA,EAAOG,GACxC,OAAIH,EAAMC,OAAS,EACRD,EAAMI,QAAQF,cAAYF,EAAMG,GAAQH,IAE5CG"}
1
+ {"version":3,"file":"firstFocus.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/firstFocus.js"],"sourcesContent":["import { correctNode } from './correctFocus';\nexport var pickFirstFocus = function (nodes) {\n if (nodes[0] && nodes.length > 1) {\n return correctNode(nodes[0], nodes);\n }\n return nodes[0];\n};\nexport var pickFocusable = function (nodes, index) {\n if (nodes.length > 1) {\n return nodes.indexOf(correctNode(nodes[index], nodes));\n }\n return index;\n};\n"],"names":["nodes","length","correctNode","index","indexOf"],"mappings":"8HAC4B,SAAUA,GAClC,OAAIA,EAAM,IAAMA,EAAMC,OAAS,EACpBC,EAAWA,YAACF,EAAM,GAAIA,GAE1BA,EAAM,0BAEU,SAAUA,EAAOG,GACxC,OAAIH,EAAMC,OAAS,EACRD,EAAMI,QAAQF,EAAWA,YAACF,EAAMG,GAAQH,IAE5CG"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(t){return t.activeElement?t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement:void 0};exports.getActiveElement=function(){return document.activeElement?document.activeElement.shadowRoot?e(document.activeElement.shadowRoot):document.activeElement:void 0};
2
+ //# sourceMappingURL=getActiveElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getActiveElement.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/getActiveElement.js"],"sourcesContent":["var getNestedShadowActiveElement = function (shadowRoot) {\n return shadowRoot.activeElement\n ? shadowRoot.activeElement.shadowRoot\n ? getNestedShadowActiveElement(shadowRoot.activeElement.shadowRoot)\n : shadowRoot.activeElement\n : undefined;\n};\n/**\n * returns active element from document or from nested shadowdoms\n */\nexport var getActiveElement = function () {\n return (document.activeElement\n ? document.activeElement.shadowRoot\n ? getNestedShadowActiveElement(document.activeElement.shadowRoot)\n : document.activeElement\n : undefined); // eslint-disable-next-line @typescript-eslint/no-explicit-any\n};\n"],"names":["getNestedShadowActiveElement","shadowRoot","activeElement","undefined","document"],"mappings":"oEAAA,IAAIA,EAA+B,SAAUC,GACzC,OAAOA,EAAWC,cACZD,EAAWC,cAAcD,WACrBD,EAA6BC,EAAWC,cAAcD,YACtDA,EAAWC,mBACfC,4BAKoB,WAC1B,OAAQC,SAASF,cACXE,SAASF,cAAcD,WACnBD,EAA6BI,SAASF,cAAcD,YACpDG,SAASF,mBACbC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},t=function(n,r){var o=n.get(r);if(void 0!==o)return o;var d=e(r,t.bind(void 0,n));return n.set(r,d),d},n=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)};exports.isDefined=function(e){return Boolean(e)},exports.isGuard=n,exports.isNotAGuard=function(e){return!n(e)},exports.isVisibleCached=t,exports.notHiddenInput=function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../constants.js"),t=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},n=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},r=function(e,r){return!e||n(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&r(t(e))},o=function(e,t){var n=e.get(t);if(void 0!==n)return n;var u=r(t,o.bind(void 0,e));return e.set(t,u),u},u=function(e,r){var o=e.get(r);if(void 0!==o)return o;var i=function(e,r){return!(e&&!n(e))||!!a(e)&&r(t(e))}(r,u.bind(void 0,e));return e.set(r,i),i},i=function(e){return e.dataset},d=function(e){return"BUTTON"===e.tagName},s=function(e){return"INPUT"===e.tagName},a=function(t){var n=t.getAttribute(e.FOCUS_NO_AUTOFOCUS);return![!0,"true",""].includes(n)},p=function(e){var t;return Boolean(e&&(null===(t=i(e))||void 0===t?void 0:t.focusGuard))};exports.getDataset=i,exports.isAutoFocusAllowed=a,exports.isAutoFocusAllowedCached=u,exports.isDefined=function(e){return Boolean(e)},exports.isGuard=p,exports.isHTMLButtonElement=d,exports.isHTMLInputElement=s,exports.isNotAGuard=function(e){return!p(e)},exports.isRadioElement=function(e){return s(e)&&"radio"===e.type},exports.isVisibleCached=o,exports.notHiddenInput=function(e){return!((s(e)||d(e))&&("hidden"===e.type||e.disabled))};
2
2
  //# sourceMappingURL=is.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/is.js"],"sourcesContent":["var isElementHidden = function (node) {\n if (node.nodeType !== Node.ELEMENT_NODE) {\n return false;\n }\n var computedStyle = window.getComputedStyle(node, null);\n if (!computedStyle || !computedStyle.getPropertyValue) {\n return false;\n }\n return (computedStyle.getPropertyValue('display') === 'none' || computedStyle.getPropertyValue('visibility') === 'hidden');\n};\nvar isVisibleUncached = function (node, checkParent) {\n return !node ||\n node === document ||\n (node && node.nodeType === Node.DOCUMENT_NODE) ||\n (!isElementHidden(node) &&\n checkParent(node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE\n ? node.parentNode.host\n : node.parentNode));\n};\nexport var isVisibleCached = function (visibilityCache, node) {\n var cached = visibilityCache.get(node);\n if (cached !== undefined) {\n return cached;\n }\n var result = isVisibleUncached(node, isVisibleCached.bind(undefined, visibilityCache));\n visibilityCache.set(node, result);\n return result;\n};\nexport var notHiddenInput = function (node) {\n return !((node.tagName === 'INPUT' || node.tagName === 'BUTTON') && (node.type === 'hidden' || node.disabled));\n};\nexport var isGuard = function (node) { return Boolean(node && node.dataset && node.dataset.focusGuard); };\nexport var isNotAGuard = function (node) { return !isGuard(node); };\nexport var isDefined = function (x) { return Boolean(x); };\n"],"names":["isVisibleUncached","node","checkParent","document","nodeType","Node","DOCUMENT_NODE","ELEMENT_NODE","computedStyle","window","getComputedStyle","getPropertyValue","isElementHidden","parentNode","DOCUMENT_FRAGMENT_NODE","host","isVisibleCached","visibilityCache","cached","get","undefined","result","bind","set","isGuard","Boolean","dataset","focusGuard","x","tagName","type","disabled"],"mappings":"oEAAA,IAUIA,EAAoB,SAAUC,EAAMC,GACpC,OAAQD,GACJA,IAASE,UACRF,GAAQA,EAAKG,WAAaC,KAAKC,gBAblB,SAAUL,GAC5B,GAAIA,EAAKG,WAAaC,KAAKE,aACvB,OAAO,EAEX,IAAIC,EAAgBC,OAAOC,iBAAiBT,EAAM,MAClD,SAAKO,IAAkBA,EAAcG,kBAGiB,SAA9CH,EAAcG,iBAAiB,YAA0E,WAAjDH,EAAcG,iBAAiB,eAMzFC,CAAgBX,IACdC,EAAYD,EAAKY,YAAcZ,EAAKY,WAAWT,WAAaC,KAAKS,uBAC3Db,EAAKY,WAAWE,KAChBd,EAAKY,aAEZG,EAAkB,SAAUC,EAAiBhB,GACpD,IAAIiB,EAASD,EAAgBE,IAAIlB,GACjC,QAAemB,IAAXF,EACA,OAAOA,EAEX,IAAIG,EAASrB,EAAkBC,EAAMe,EAAgBM,UAAKF,EAAWH,IAErE,OADAA,EAAgBM,IAAItB,EAAMoB,GACnBA,GAKAG,EAAU,SAAUvB,GAAQ,OAAOwB,QAAQxB,GAAQA,EAAKyB,SAAWzB,EAAKyB,QAAQC,+BAEpE,SAAUC,GAAK,OAAOH,QAAQG,0CAD5B,SAAU3B,GAAQ,OAAQuB,EAAQvB,qDAJ/B,SAAUA,GAClC,SAA2B,UAAjBA,EAAK4B,SAAwC,WAAjB5B,EAAK4B,WAAwC,WAAd5B,EAAK6B,MAAqB7B,EAAK8B"}
1
+ {"version":3,"file":"is.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/is.js"],"sourcesContent":["import { FOCUS_NO_AUTOFOCUS } from '../constants';\nvar isElementHidden = function (node) {\n // we can measure only \"elements\"\n // consider others as \"visible\"\n if (node.nodeType !== Node.ELEMENT_NODE) {\n return false;\n }\n var computedStyle = window.getComputedStyle(node, null);\n if (!computedStyle || !computedStyle.getPropertyValue) {\n return false;\n }\n return (computedStyle.getPropertyValue('display') === 'none' || computedStyle.getPropertyValue('visibility') === 'hidden');\n};\nvar getParentNode = function (node) {\n // DOCUMENT_FRAGMENT_NODE can also point on ShadowRoot. In this case .host will point on the next node\n return node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n node.parentNode.host\n : node.parentNode;\n};\nvar isTopNode = function (node) {\n // @ts-ignore\n return node === document || (node && node.nodeType === Node.DOCUMENT_NODE);\n};\nvar isVisibleUncached = function (node, checkParent) {\n return !node || isTopNode(node) || (!isElementHidden(node) && checkParent(getParentNode(node)));\n};\nexport var isVisibleCached = function (visibilityCache, node) {\n var cached = visibilityCache.get(node);\n if (cached !== undefined) {\n return cached;\n }\n var result = isVisibleUncached(node, isVisibleCached.bind(undefined, visibilityCache));\n visibilityCache.set(node, result);\n return result;\n};\nvar isAutoFocusAllowedUncached = function (node, checkParent) {\n return node && !isTopNode(node) ? (isAutoFocusAllowed(node) ? checkParent(getParentNode(node)) : false) : true;\n};\nexport var isAutoFocusAllowedCached = function (cache, node) {\n var cached = cache.get(node);\n if (cached !== undefined) {\n return cached;\n }\n var result = isAutoFocusAllowedUncached(node, isAutoFocusAllowedCached.bind(undefined, cache));\n cache.set(node, result);\n return result;\n};\nexport var getDataset = function (node) {\n // @ts-ignore\n return node.dataset;\n};\nexport var isHTMLButtonElement = function (node) { return node.tagName === 'BUTTON'; };\nexport var isHTMLInputElement = function (node) { return node.tagName === 'INPUT'; };\nexport var isRadioElement = function (node) {\n return isHTMLInputElement(node) && node.type === 'radio';\n};\nexport var notHiddenInput = function (node) {\n return !((isHTMLInputElement(node) || isHTMLButtonElement(node)) && (node.type === 'hidden' || node.disabled));\n};\nexport var isAutoFocusAllowed = function (node) {\n var attribute = node.getAttribute(FOCUS_NO_AUTOFOCUS);\n return ![true, 'true', ''].includes(attribute);\n};\nexport var isGuard = function (node) { var _a; return Boolean(node && ((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.focusGuard)); };\nexport var isNotAGuard = function (node) { return !isGuard(node); };\nexport var isDefined = function (x) { return Boolean(x); };\n"],"names":["getParentNode","node","parentNode","nodeType","Node","DOCUMENT_FRAGMENT_NODE","host","isTopNode","document","DOCUMENT_NODE","isVisibleUncached","checkParent","ELEMENT_NODE","computedStyle","window","getComputedStyle","getPropertyValue","isElementHidden","isVisibleCached","visibilityCache","cached","get","undefined","result","bind","set","isAutoFocusAllowedCached","cache","isAutoFocusAllowed","isAutoFocusAllowedUncached","getDataset","dataset","isHTMLButtonElement","tagName","isHTMLInputElement","attribute","getAttribute","FOCUS_NO_AUTOFOCUS","includes","isGuard","_a","Boolean","focusGuard","x","type","disabled"],"mappings":"qGAaIA,EAAgB,SAAUC,GAE1B,OAAOA,EAAKC,YAAcD,EAAKC,WAAWC,WAAaC,KAAKC,uBAEpDJ,EAAKC,WAAWI,KAClBL,EAAKC,YAEXK,EAAY,SAAUN,GAEtB,OAAOA,IAASO,UAAaP,GAAQA,EAAKE,WAAaC,KAAKK,eAE5DC,EAAoB,SAAUT,EAAMU,GACpC,OAAQV,GAAQM,EAAUN,KAxBR,SAAUA,GAG5B,GAAIA,EAAKE,WAAaC,KAAKQ,aACvB,OAAO,EAEX,IAAIC,EAAgBC,OAAOC,iBAAiBd,EAAM,MAClD,SAAKY,IAAkBA,EAAcG,kBAGiB,SAA9CH,EAAcG,iBAAiB,YAA0E,WAAjDH,EAAcG,iBAAiB,eAc1DC,CAAgBhB,IAASU,EAAYX,EAAcC,KAEjFiB,EAAkB,SAAUC,EAAiBlB,GACpD,IAAImB,EAASD,EAAgBE,IAAIpB,GACjC,QAAeqB,IAAXF,EACA,OAAOA,EAEX,IAAIG,EAASb,EAAkBT,EAAMiB,EAAgBM,UAAKF,EAAWH,IAErE,OADAA,EAAgBM,IAAIxB,EAAMsB,GACnBA,GAKAG,EAA2B,SAAUC,EAAO1B,GACnD,IAAImB,EAASO,EAAMN,IAAIpB,GACvB,QAAeqB,IAAXF,EACA,OAAOA,EAEX,IAAIG,EARyB,SAAUtB,EAAMU,GAC7C,QAAOV,IAASM,EAAUN,OAAS2B,EAAmB3B,IAAQU,EAAYX,EAAcC,IAO3E4B,CAA2B5B,EAAMyB,EAAyBF,UAAKF,EAAWK,IAEvF,OADAA,EAAMF,IAAIxB,EAAMsB,GACTA,GAEAO,EAAa,SAAU7B,GAE9B,OAAOA,EAAK8B,SAELC,EAAsB,SAAU/B,GAAQ,MAAwB,WAAjBA,EAAKgC,SACpDC,EAAqB,SAAUjC,GAAQ,MAAwB,UAAjBA,EAAKgC,SAOnDL,EAAqB,SAAU3B,GACtC,IAAIkC,EAAYlC,EAAKmC,aAAaC,EAAkBA,oBACpD,OAAQ,EAAC,EAAM,OAAQ,IAAIC,SAASH,IAE7BI,EAAU,SAAUtC,GAAQ,IAAIuC,EAAI,OAAOC,QAAQxC,IAAqC,QAA3BuC,EAAKV,EAAW7B,UAA0B,IAAPuC,OAAgB,EAASA,EAAGE,qHAEhH,SAAUC,GAAK,OAAOF,QAAQE,qGAD5B,SAAU1C,GAAQ,OAAQsC,EAAQtC,2BAX/B,SAAUA,GAClC,OAAOiC,EAAmBjC,IAAuB,UAAdA,EAAK2C,uDAEhB,SAAU3C,GAClC,SAAUiC,EAAmBjC,IAAS+B,EAAoB/B,MAAyB,WAAdA,EAAK2C,MAAqB3C,EAAK4C"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./array.js"),e=require("./DOMutils.js"),t=function(r,e){return void 0===e&&(e=[]),e.push(r),r.parentNode&&t(r.parentNode,e),e},n=function(r,e){for(var n=t(r),o=t(e),a=0;a<n.length;a+=1){var u=n[a];if(o.indexOf(u)>=0)return u}return!1};exports.allParentAutofocusables=function(r,t){return r.reduce((function(r,n){return r.concat(e.parentAutofocusables(n,t))}),[])},exports.getCommonParent=n,exports.getTopCommonParent=function(e,t,o){var a=r.asArray(e),u=r.asArray(t),i=a[0],s=!1;return u.filter(Boolean).forEach((function(r){s=n(s||r,r)||s,o.filter(Boolean).forEach((function(r){var e=n(i,r);e&&(s=!s||e.contains(s)?e:n(e,s))}))})),s};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./DOMutils.js"),e=require("./array.js"),t=function(r,e){return void 0===e&&(e=[]),e.push(r),r.parentNode&&t(r.parentNode.host||r.parentNode,e),e},n=function(r,e){for(var n=t(r),o=t(e),a=0;a<n.length;a+=1){var u=n[a];if(o.indexOf(u)>=0)return u}return!1};exports.allParentAutofocusables=function(e,t){return e.reduce((function(e,n){return e.concat(r.parentAutofocusables(n,t))}),[])},exports.getCommonParent=n,exports.getTopCommonParent=function(t,o,a){var u=e.asArray(t),s=e.asArray(o),i=u[0],c=!1;return s.filter(Boolean).forEach((function(e){c=n(c||e,e)||c,a.filter(Boolean).forEach((function(e){var t=n(i,e);t&&(c=!c||r.contains(t,c)?t:n(t,c))}))})),c};
2
2
  //# sourceMappingURL=parenting.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parenting.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/parenting.js"],"sourcesContent":["import { asArray } from './array';\nimport { parentAutofocusables } from './DOMutils';\nvar getParents = function (node, parents) {\n if (parents === void 0) { parents = []; }\n parents.push(node);\n if (node.parentNode) {\n getParents(node.parentNode, parents);\n }\n return parents;\n};\nexport var getCommonParent = function (nodeA, nodeB) {\n var parentsA = getParents(nodeA);\n var parentsB = getParents(nodeB);\n for (var i = 0; i < parentsA.length; i += 1) {\n var currentParent = parentsA[i];\n if (parentsB.indexOf(currentParent) >= 0) {\n return currentParent;\n }\n }\n return false;\n};\nexport var getTopCommonParent = function (baseActiveElement, leftEntry, rightEntries) {\n var activeElements = asArray(baseActiveElement);\n var leftEntries = asArray(leftEntry);\n var activeElement = activeElements[0];\n var topCommon = false;\n leftEntries.filter(Boolean).forEach(function (entry) {\n topCommon = getCommonParent(topCommon || entry, entry) || topCommon;\n rightEntries.filter(Boolean).forEach(function (subEntry) {\n var common = getCommonParent(activeElement, subEntry);\n if (common) {\n if (!topCommon || common.contains(topCommon)) {\n topCommon = common;\n }\n else {\n topCommon = getCommonParent(common, topCommon);\n }\n }\n });\n });\n return topCommon;\n};\nexport var allParentAutofocusables = function (entries, visibilityCache) {\n return entries.reduce(function (acc, node) { return acc.concat(parentAutofocusables(node, visibilityCache)); }, []);\n};\n"],"names":["getParents","node","parents","push","parentNode","getCommonParent","nodeA","nodeB","parentsA","parentsB","i","length","currentParent","indexOf","entries","visibilityCache","reduce","acc","concat","parentAutofocusables","baseActiveElement","leftEntry","rightEntries","activeElements","asArray","leftEntries","activeElement","topCommon","filter","Boolean","forEach","entry","subEntry","common","contains"],"mappings":"2HAEIA,EAAa,SAAUC,EAAMC,GAM7B,YALgB,IAAZA,IAAsBA,EAAU,IACpCA,EAAQC,KAAKF,GACTA,EAAKG,YACLJ,EAAWC,EAAKG,WAAYF,GAEzBA,GAEAG,EAAkB,SAAUC,EAAOC,GAG1C,IAFA,IAAIC,EAAWR,EAAWM,GACtBG,EAAWT,EAAWO,GACjBG,EAAI,EAAGA,EAAIF,EAASG,OAAQD,GAAK,EAAG,CACzC,IAAIE,EAAgBJ,EAASE,GAC7B,GAAID,EAASI,QAAQD,IAAkB,EACnC,OAAOA,EAGf,OAAO,mCAuB0B,SAAUE,EAASC,GACpD,OAAOD,EAAQE,QAAO,SAAUC,EAAKhB,GAAQ,OAAOgB,EAAIC,OAAOC,uBAAqBlB,EAAMc,MAAsB,0DAtBpF,SAAUK,EAAmBC,EAAWC,GACpE,IAAIC,EAAiBC,UAAQJ,GACzBK,EAAcD,UAAQH,GACtBK,EAAgBH,EAAe,GAC/BI,GAAY,EAehB,OAdAF,EAAYG,OAAOC,SAASC,SAAQ,SAAUC,GAC1CJ,EAAYtB,EAAgBsB,GAAaI,EAAOA,IAAUJ,EAC1DL,EAAaM,OAAOC,SAASC,SAAQ,SAAUE,GAC3C,IAAIC,EAAS5B,EAAgBqB,EAAeM,GACxCC,IAEIN,GADCA,GAAaM,EAAOC,SAASP,GAClBM,EAGA5B,EAAgB4B,EAAQN,UAK7CA"}
1
+ {"version":3,"file":"parenting.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/parenting.js"],"sourcesContent":["import { parentAutofocusables } from './DOMutils';\nimport { contains } from './DOMutils';\nimport { asArray } from './array';\nvar getParents = function (node, parents) {\n if (parents === void 0) { parents = []; }\n parents.push(node);\n if (node.parentNode) {\n getParents(node.parentNode.host || node.parentNode, parents);\n }\n return parents;\n};\n/**\n * finds a parent for both nodeA and nodeB\n * @param nodeA\n * @param nodeB\n * @returns {boolean|*}\n */\nexport var getCommonParent = function (nodeA, nodeB) {\n var parentsA = getParents(nodeA);\n var parentsB = getParents(nodeB);\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < parentsA.length; i += 1) {\n var currentParent = parentsA[i];\n if (parentsB.indexOf(currentParent) >= 0) {\n return currentParent;\n }\n }\n return false;\n};\nexport var getTopCommonParent = function (baseActiveElement, leftEntry, rightEntries) {\n var activeElements = asArray(baseActiveElement);\n var leftEntries = asArray(leftEntry);\n var activeElement = activeElements[0];\n var topCommon = false;\n leftEntries.filter(Boolean).forEach(function (entry) {\n topCommon = getCommonParent(topCommon || entry, entry) || topCommon;\n rightEntries.filter(Boolean).forEach(function (subEntry) {\n var common = getCommonParent(activeElement, subEntry);\n if (common) {\n if (!topCommon || contains(common, topCommon)) {\n topCommon = common;\n }\n else {\n topCommon = getCommonParent(common, topCommon);\n }\n }\n });\n });\n // TODO: add assert here?\n return topCommon;\n};\n/**\n * return list of nodes which are expected to be autofocused inside a given top nodes\n * @param entries\n * @param visibilityCache\n */\nexport var allParentAutofocusables = function (entries, visibilityCache) {\n return entries.reduce(function (acc, node) { return acc.concat(parentAutofocusables(node, visibilityCache)); }, []);\n};\n"],"names":["getParents","node","parents","push","parentNode","host","getCommonParent","nodeA","nodeB","parentsA","parentsB","i","length","currentParent","indexOf","entries","visibilityCache","reduce","acc","concat","parentAutofocusables","baseActiveElement","leftEntry","rightEntries","activeElements","asArray","leftEntries","activeElement","topCommon","filter","Boolean","forEach","entry","subEntry","common","contains"],"mappings":"2HAGIA,EAAa,SAAUC,EAAMC,GAM7B,YALgB,IAAZA,IAAsBA,EAAU,IACpCA,EAAQC,KAAKF,GACTA,EAAKG,YACLJ,EAAWC,EAAKG,WAAWC,MAAQJ,EAAKG,WAAYF,GAEjDA,GAQAI,EAAkB,SAAUC,EAAOC,GAI1C,IAHA,IAAIC,EAAWT,EAAWO,GACtBG,EAAWV,EAAWQ,GAEjBG,EAAI,EAAGA,EAAIF,EAASG,OAAQD,GAAK,EAAG,CACzC,IAAIE,EAAgBJ,EAASE,GAC7B,GAAID,EAASI,QAAQD,IAAkB,EACnC,OAAOA,EAGf,OAAO,mCA6B0B,SAAUE,EAASC,GACpD,OAAOD,EAAQE,QAAO,SAAUC,EAAKjB,GAAQ,OAAOiB,EAAIC,OAAOC,EAAoBA,qBAACnB,EAAMe,MAAsB,0DA5BpF,SAAUK,EAAmBC,EAAWC,GACpE,IAAIC,EAAiBC,UAAQJ,GACzBK,EAAcD,UAAQH,GACtBK,EAAgBH,EAAe,GAC/BI,GAAY,EAgBhB,OAfAF,EAAYG,OAAOC,SAASC,SAAQ,SAAUC,GAC1CJ,EAAYtB,EAAgBsB,GAAaI,EAAOA,IAAUJ,EAC1DL,EAAaM,OAAOC,SAASC,SAAQ,SAAUE,GAC3C,IAAIC,EAAS5B,EAAgBqB,EAAeM,GACxCC,IAEIN,GADCA,GAAaO,EAAAA,SAASD,EAAQN,GACnBM,EAGA5B,EAAgB4B,EAAQN,UAM7CA"}
@@ -1 +1 @@
1
- {"version":3,"file":"tabOrder.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabOrder.js"],"sourcesContent":["import { toArray } from './array';\nexport var tabSort = function (a, b) {\n var tabDiff = a.tabIndex - b.tabIndex;\n var indexDiff = a.index - b.index;\n if (tabDiff) {\n if (!a.tabIndex) {\n return 1;\n }\n if (!b.tabIndex) {\n return -1;\n }\n }\n return tabDiff || indexDiff;\n};\nexport var orderByTabIndex = function (nodes, filterNegative, keepGuards) {\n return toArray(nodes)\n .map(function (node, index) { return ({\n node: node,\n index: index,\n tabIndex: keepGuards && node.tabIndex === -1 ? ((node.dataset || {}).focusGuard ? 0 : -1) : node.tabIndex,\n }); })\n .filter(function (data) { return !filterNegative || data.tabIndex >= 0; })\n .sort(tabSort);\n};\n"],"names":["tabSort","a","b","tabDiff","tabIndex","indexDiff","index","nodes","filterNegative","keepGuards","toArray","map","node","dataset","focusGuard","filter","data","sort"],"mappings":"gGACWA,EAAU,SAAUC,EAAGC,GAC9B,IAAIC,EAAUF,EAAEG,SAAWF,EAAEE,SACzBC,EAAYJ,EAAEK,MAAQJ,EAAEI,MAC5B,GAAIH,EAAS,CACT,IAAKF,EAAEG,SACH,OAAO,EAEX,IAAKF,EAAEE,SACH,OAAQ,EAGhB,OAAOD,GAAWE,2BAEO,SAAUE,EAAOC,EAAgBC,GAC1D,OAAOC,UAAQH,GACVI,KAAI,SAAUC,EAAMN,GAAS,OAC9BM,KAAMA,EACNN,MAAOA,EACPF,SAAUK,IAAiC,IAAnBG,EAAKR,UAAoBQ,EAAKC,SAAW,IAAIC,WAAa,GAAK,EAAKF,EAAKR,aAEhGW,QAAO,SAAUC,GAAQ,OAAQR,GAAkBQ,EAAKZ,UAAY,KACpEa,KAAKjB"}
1
+ {"version":3,"file":"tabOrder.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabOrder.js"],"sourcesContent":["import { toArray } from './array';\nexport var tabSort = function (a, b) {\n var tabDiff = a.tabIndex - b.tabIndex;\n var indexDiff = a.index - b.index;\n if (tabDiff) {\n if (!a.tabIndex) {\n return 1;\n }\n if (!b.tabIndex) {\n return -1;\n }\n }\n return tabDiff || indexDiff;\n};\nexport var orderByTabIndex = function (nodes, filterNegative, keepGuards) {\n return toArray(nodes)\n .map(function (node, index) { return ({\n node: node,\n index: index,\n tabIndex: keepGuards && node.tabIndex === -1 ? ((node.dataset || {}).focusGuard ? 0 : -1) : node.tabIndex,\n }); })\n .filter(function (data) { return !filterNegative || data.tabIndex >= 0; })\n .sort(tabSort);\n};\n"],"names":["tabSort","a","b","tabDiff","tabIndex","indexDiff","index","nodes","filterNegative","keepGuards","toArray","map","node","dataset","focusGuard","filter","data","sort"],"mappings":"gGACWA,EAAU,SAAUC,EAAGC,GAC9B,IAAIC,EAAUF,EAAEG,SAAWF,EAAEE,SACzBC,EAAYJ,EAAEK,MAAQJ,EAAEI,MAC5B,GAAIH,EAAS,CACT,IAAKF,EAAEG,SACH,OAAO,EAEX,IAAKF,EAAEE,SACH,OAAQ,EAGhB,OAAOD,GAAWE,2BAEO,SAAUE,EAAOC,EAAgBC,GAC1D,OAAOC,EAAAA,QAAQH,GACVI,KAAI,SAAUC,EAAMN,GAAS,MAAQ,CACtCM,KAAMA,EACNN,MAAOA,EACPF,SAAUK,IAAiC,IAAnBG,EAAKR,UAAoBQ,EAAKC,SAAW,IAAIC,WAAa,GAAK,EAAKF,EAAKR,aAEhGW,QAAO,SAAUC,GAAQ,OAAQR,GAAkBQ,EAAKZ,UAAY,KACpEa,KAAKjB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../constants.js"),r=require("./array.js"),t=require("./tabbables.js").tabbables.join(","),u=t+", [data-focus-guard]",n=function(e,n){return e.reduce((function(e,o){return e.concat(r.toArray(o.querySelectorAll(n?u:t)),o.parentNode?r.toArray(o.parentNode.querySelectorAll(t)).filter((function(e){return e===o})):[])}),[])};exports.getFocusables=n,exports.getParentAutofocusables=function(t){var u=t.querySelectorAll("["+e.FOCUS_AUTO+"]");return r.toArray(u).map((function(e){return n([e])})).reduce((function(e,r){return e.concat(r)}),[])};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../constants.js"),e=require("./array.js"),t=require("./tabbables.js").tabbables.join(","),n="".concat(t,", [data-focus-guard]"),o=function(r,u){var c;return e.toArray((null===(c=r.shadowRoot)||void 0===c?void 0:c.children)||r.children).reduce((function(r,e){return r.concat(e.matches(u?n:t)?[e]:[],o(e))}),[])},u=function(r,n){return r.reduce((function(r,u){return r.concat(o(u,n),u.parentNode?e.toArray(u.parentNode.querySelectorAll(t)).filter((function(r){return r===u})):[])}),[])};exports.getFocusables=u,exports.getParentAutofocusables=function(t){var n=t.querySelectorAll("[".concat(r.FOCUS_AUTO,"]"));return e.toArray(n).map((function(r){return u([r])})).reduce((function(r,e){return r.concat(e)}),[])};
2
2
  //# sourceMappingURL=tabUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabUtils.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabUtils.js"],"sourcesContent":["import { FOCUS_AUTO } from '../constants';\nimport { toArray } from './array';\nimport { tabbables } from './tabbables';\nvar queryTabbables = tabbables.join(',');\nvar queryGuardTabbables = queryTabbables + \", [data-focus-guard]\";\nexport var getFocusables = function (parents, withGuards) {\n return parents.reduce(function (acc, parent) {\n return acc.concat(toArray(parent.querySelectorAll(withGuards ? queryGuardTabbables : queryTabbables)), parent.parentNode\n ? toArray(parent.parentNode.querySelectorAll(queryTabbables)).filter(function (node) { return node === parent; })\n : []);\n }, []);\n};\nexport var getParentAutofocusables = function (parent) {\n var parentFocus = parent.querySelectorAll(\"[\" + FOCUS_AUTO + \"]\");\n return toArray(parentFocus)\n .map(function (node) { return getFocusables([node]); })\n .reduce(function (acc, nodes) { return acc.concat(nodes); }, []);\n};\n"],"names":["queryTabbables","join","queryGuardTabbables","getFocusables","parents","withGuards","reduce","acc","parent","concat","toArray","querySelectorAll","parentNode","filter","node","parentFocus","FOCUS_AUTO","map","nodes"],"mappings":"6HAGIA,sCAA2BC,KAAK,KAChCC,EAAsBF,EAAiB,uBAChCG,EAAgB,SAAUC,EAASC,GAC1C,OAAOD,EAAQE,QAAO,SAAUC,EAAKC,GACjC,OAAOD,EAAIE,OAAOC,UAAQF,EAAOG,iBAAiBN,EAAaH,EAAsBF,IAAkBQ,EAAOI,WACxGF,UAAQF,EAAOI,WAAWD,iBAAiBX,IAAiBa,QAAO,SAAUC,GAAQ,OAAOA,IAASN,KACrG,MACP,6DAE8B,SAAUA,GAC3C,IAAIO,EAAcP,EAAOG,iBAAiB,IAAMK,aAAa,KAC7D,OAAON,UAAQK,GACVE,KAAI,SAAUH,GAAQ,OAAOX,EAAc,CAACW,OAC5CR,QAAO,SAAUC,EAAKW,GAAS,OAAOX,EAAIE,OAAOS,KAAW"}
1
+ {"version":3,"file":"tabUtils.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabUtils.js"],"sourcesContent":["import { FOCUS_AUTO } from '../constants';\nimport { toArray } from './array';\nimport { tabbables } from './tabbables';\nvar queryTabbables = tabbables.join(',');\nvar queryGuardTabbables = \"\".concat(queryTabbables, \", [data-focus-guard]\");\nvar getFocusablesWithShadowDom = function (parent, withGuards) {\n var _a;\n return toArray(((_a = parent.shadowRoot) === null || _a === void 0 ? void 0 : _a.children) || parent.children).reduce(function (acc, child) {\n return acc.concat(child.matches(withGuards ? queryGuardTabbables : queryTabbables) ? [child] : [], getFocusablesWithShadowDom(child));\n }, []);\n};\nexport var getFocusables = function (parents, withGuards) {\n return parents.reduce(function (acc, parent) {\n return acc.concat(\n // add all tabbables inside and within shadow DOMs in DOM order\n getFocusablesWithShadowDom(parent, withGuards), \n // add if node is tabbable itself\n parent.parentNode\n ? toArray(parent.parentNode.querySelectorAll(queryTabbables)).filter(function (node) { return node === parent; })\n : []);\n }, []);\n};\n/**\n * return a list of focusable nodes within an area marked as \"auto-focusable\"\n * @param parent\n */\nexport var getParentAutofocusables = function (parent) {\n var parentFocus = parent.querySelectorAll(\"[\".concat(FOCUS_AUTO, \"]\"));\n return toArray(parentFocus)\n .map(function (node) { return getFocusables([node]); })\n .reduce(function (acc, nodes) { return acc.concat(nodes); }, []);\n};\n"],"names":["queryTabbables","tabbables","join","queryGuardTabbables","concat","getFocusablesWithShadowDom","parent","withGuards","_a","toArray","shadowRoot","children","reduce","acc","child","matches","getFocusables","parents","parentNode","querySelectorAll","filter","node","parentFocus","FOCUS_AUTO","map","nodes"],"mappings":"6HAGIA,4BAA0BC,UAACC,KAAK,KAChCC,EAAsB,GAAGC,OAAOJ,EAAgB,wBAChDK,EAA6B,SAAUC,EAAQC,GAC/C,IAAIC,EACJ,OAAOC,EAAOA,SAA+B,QAA5BD,EAAKF,EAAOI,kBAA+B,IAAPF,OAAgB,EAASA,EAAGG,WAAaL,EAAOK,UAAUC,QAAO,SAAUC,EAAKC,GACjI,OAAOD,EAAIT,OAAOU,EAAMC,QAAQR,EAAaJ,EAAsBH,GAAkB,CAACc,GAAS,GAAIT,EAA2BS,MAC/H,KAEIE,EAAgB,SAAUC,EAASV,GAC1C,OAAOU,EAAQL,QAAO,SAAUC,EAAKP,GACjC,OAAOO,EAAIT,OAEXC,EAA2BC,EAAQC,GAEnCD,EAAOY,WACDT,EAAAA,QAAQH,EAAOY,WAAWC,iBAAiBnB,IAAiBoB,QAAO,SAAUC,GAAQ,OAAOA,IAASf,KACrG,MACP,6DAM8B,SAAUA,GAC3C,IAAIgB,EAAchB,EAAOa,iBAAiB,IAAIf,OAAOmB,EAAUA,WAAE,MACjE,OAAOd,EAAAA,QAAQa,GACVE,KAAI,SAAUH,GAAQ,OAAOL,EAAc,CAACK,OAC5CT,QAAO,SAAUC,EAAKY,GAAS,OAAOZ,EAAIT,OAAOqB,KAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"tabbables.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabbables.js"],"sourcesContent":["export var tabbables = [\n 'button:enabled',\n 'select:enabled',\n 'textarea:enabled',\n 'input:enabled',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[tabindex]',\n '[contenteditable]',\n '[autofocus]',\n];\n"],"names":[],"mappings":"sFAAuB,CACnB,iBACA,iBACA,mBACA,gBACA,UACA,aACA,UACA,SACA,SACA,QACA,kBACA,kBACA,aACA,oBACA"}
1
+ {"version":3,"file":"tabbables.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabbables.js"],"sourcesContent":["/**\n * list of the object to be considered as focusable\n */\nexport var tabbables = [\n 'button:enabled',\n 'select:enabled',\n 'textarea:enabled',\n 'input:enabled',\n // elements with explicit roles will also use explicit tabindex\n // '[role=\"button\"]',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[tabindex]',\n '[contenteditable]',\n '[autofocus]',\n];\n"],"names":[],"mappings":"sFAGuB,CACnB,iBACA,iBACA,mBACA,gBAGA,UACA,aACA,UACA,SACA,SACA,QACA,kBACA,kBACA,aACA,oBACA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../node_modules/react-clientside-effect/lib/index.es.js"],"sourcesContent":["import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport React, { PureComponent } from 'react';\n\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n }\n\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n\n return function wrap(WrappedComponent) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n }\n\n var mountedInstances = [];\n var state;\n\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n handleStateChangeOnClient(state);\n }\n\n var SideEffect = /*#__PURE__*/function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n SideEffect.peek = function peek() {\n return state;\n };\n\n var _proto = SideEffect.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n mountedInstances.push(this);\n emitChange();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(WrappedComponent, this.props);\n };\n\n return SideEffect;\n }(PureComponent);\n\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n\n return SideEffect;\n };\n}\n\nexport default withSideEffect;\n"],"names":["reducePropsToState","handleStateChangeOnClient","process","env","NODE_ENV","Error","WrappedComponent","state","mountedInstances","emitChange","map","instance","props","SideEffect","_PureComponent","apply","this","arguments","_inheritsLoose","peek","_proto","prototype","componentDidMount","push","componentDidUpdate","componentWillUnmount","index","indexOf","splice","render","React","createElement","PureComponent","_defineProperty","displayName","name","getDisplayName"],"mappings":"6TAIA,SAAwBA,EAAoBC,GAC1C,GAA6B,eAAzBC,QAAQC,IAAIC,SAA2B,CACzC,GAAkC,mBAAvBJ,EACT,MAAM,IAAIK,MAAM,iDAGlB,GAAyC,mBAA9BJ,EACT,MAAM,IAAII,MAAM,wDAQpB,OAAO,SAAcC,GACnB,GAA6B,eAAzBJ,QAAQC,IAAIC,UACkB,mBAArBE,EACT,MAAM,IAAID,MAAM,sDAIpB,IACIE,EADAC,EAAmB,GAGvB,SAASC,IACPF,EAAQP,EAAmBQ,EAAiBE,KAAI,SAAUC,GACxD,OAAOA,EAASC,UAElBX,EAA0BM,GAG5B,IAAIM,EAA0B,SAAUC,GAGtC,SAASD,IACP,OAAOC,EAAeC,MAAMC,KAAMC,YAAcD,KAHlDE,UAAeL,EAAYC,GAO3BD,EAAWM,KAAO,WAChB,OAAOZ,GAGT,IAAIa,EAASP,EAAWQ,UAqBxB,OAnBAD,EAAOE,kBAAoB,WACzBd,EAAiBe,KAAKP,MACtBP,KAGFW,EAAOI,mBAAqB,WAC1Bf,KAGFW,EAAOK,qBAAuB,WAC5B,IAAIC,EAAQlB,EAAiBmB,QAAQX,MACrCR,EAAiBoB,OAAOF,EAAO,GAC/BjB,KAGFW,EAAOS,OAAS,WACd,OAAoBC,UAAMC,cAAczB,EAAkBU,KAAKJ,QAG1DC,EAjCqB,CAkC5BmB,iBAIF,OAFAC,UAAgBpB,EAAY,cAAe,cAzD7C,SAAwBP,GACtB,OAAOA,EAAiB4B,aAAe5B,EAAiB6B,MAAQ,YAwDLC,CAAe9B,GAAoB,KAEvFO"}
1
+ {"version":3,"file":"index.es.js","sources":["../../../../../node_modules/react-clientside-effect/lib/index.es.js"],"sourcesContent":["import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport React, { PureComponent } from 'react';\n\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n }\n\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n\n return function wrap(WrappedComponent) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n }\n\n var mountedInstances = [];\n var state;\n\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n handleStateChangeOnClient(state);\n }\n\n var SideEffect = /*#__PURE__*/function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n SideEffect.peek = function peek() {\n return state;\n };\n\n var _proto = SideEffect.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n mountedInstances.push(this);\n emitChange();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(WrappedComponent, this.props);\n };\n\n return SideEffect;\n }(PureComponent);\n\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n\n return SideEffect;\n };\n}\n\nexport default withSideEffect;\n"],"names":["reducePropsToState","handleStateChangeOnClient","process","env","NODE_ENV","Error","WrappedComponent","state","mountedInstances","emitChange","map","instance","props","SideEffect","_PureComponent","apply","this","arguments","_inheritsLoose","peek","_proto","prototype","componentDidMount","push","componentDidUpdate","componentWillUnmount","index","indexOf","splice","render","React","createElement","PureComponent","_defineProperty","displayName","name","getDisplayName"],"mappings":"6TAIA,SAAwBA,EAAoBC,GAC1C,GAA6B,eAAzBC,QAAQC,IAAIC,SAA2B,CACzC,GAAkC,mBAAvBJ,EACT,MAAM,IAAIK,MAAM,iDAGlB,GAAyC,mBAA9BJ,EACT,MAAM,IAAII,MAAM,wDAQpB,OAAO,SAAcC,GACnB,GAA6B,eAAzBJ,QAAQC,IAAIC,UACkB,mBAArBE,EACT,MAAM,IAAID,MAAM,sDAIpB,IACIE,EADAC,EAAmB,GAGvB,SAASC,IACPF,EAAQP,EAAmBQ,EAAiBE,KAAI,SAAUC,GACxD,OAAOA,EAASC,UAElBX,EAA0BM,GAG5B,IAAIM,EAA0B,SAAUC,GAGtC,SAASD,IACP,OAAOC,EAAeC,MAAMC,KAAMC,YAAcD,KAHlDE,UAAeL,EAAYC,GAO3BD,EAAWM,KAAO,WAChB,OAAOZ,GAGT,IAAIa,EAASP,EAAWQ,UAqBxB,OAnBAD,EAAOE,kBAAoB,WACzBd,EAAiBe,KAAKP,MACtBP,KAGFW,EAAOI,mBAAqB,WAC1Bf,KAGFW,EAAOK,qBAAuB,WAC5B,IAAIC,EAAQlB,EAAiBmB,QAAQX,MACrCR,EAAiBoB,OAAOF,EAAO,GAC/BjB,KAGFW,EAAOS,OAAS,WACd,OAAoBC,EAAK,QAACC,cAAczB,EAAkBU,KAAKJ,QAG1DC,EAjCqB,CAkC5BmB,EAAaA,eAIf,OAFAC,EAAe,QAACpB,EAAY,cAAe,cAzD7C,SAAwBP,GACtB,OAAOA,EAAiB4B,aAAe5B,EAAiB6B,MAAQ,YAwDLC,CAAe9B,GAAoB,KAEvFO"}
@@ -1 +1 @@
1
- {"version":3,"file":"Combination.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Combination.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport FocusLockUI from './Lock';\nimport FocusTrap from './Trap';\n/* that would be a BREAKING CHANGE!\n// delaying sidecar execution till the first usage\nconst RequireSideCar = (props) => {\n // eslint-disable-next-line global-require\n const SideCar = require('./Trap').default;\n return <SideCar {...props} />;\n};\n*/\n\nvar FocusLockCombination = /*#__PURE__*/React.forwardRef(function FocusLockUICombination(props, ref) {\n return /*#__PURE__*/React.createElement(FocusLockUI, _extends({\n sideCar: FocusTrap,\n ref: ref\n }, props));\n});\n\nvar _ref = FocusLockUI.propTypes || {},\n sideCar = _ref.sideCar,\n propTypes = _objectWithoutPropertiesLoose(_ref, [\"sideCar\"]);\n\nFocusLockCombination.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nexport default FocusLockCombination;"],"names":["FocusLockCombination","React","forwardRef","props","ref","createElement","FocusLockUI","_extends","sideCar","FocusTrap","_ref","propTypes","_objectWithoutPropertiesLoose","process","env","NODE_ENV"],"mappings":"gkBAcIA,EAAoCC,EAAMC,YAAW,SAAgCC,EAAOC,GAC9F,OAAoBH,EAAMI,cAAcC,UAAaC,UAAS,CAC5DC,QAASC,UACTL,IAAKA,GACJD,OAGDO,EAAOJ,UAAYK,WAAa,GACtBD,EAAKF,YACfG,EAAYC,UAA8BF,EAAM,CAAC,YAErDV,EAAqBW,UAAqC,eAAzBE,QAAQC,IAAIC,SAA4BJ,EAAY,GACrF,MAAeX"}
1
+ {"version":3,"file":"Combination.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Combination.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport FocusLockUI from './Lock';\nimport FocusTrap from './Trap';\n/* that would be a BREAKING CHANGE!\n// delaying sidecar execution till the first usage\nconst RequireSideCar = (props) => {\n // eslint-disable-next-line global-require\n const SideCar = require('./Trap').default;\n return <SideCar {...props} />;\n};\n*/\n\nvar FocusLockCombination = /*#__PURE__*/React.forwardRef(function FocusLockUICombination(props, ref) {\n return /*#__PURE__*/React.createElement(FocusLockUI, _extends({\n sideCar: FocusTrap,\n ref: ref\n }, props));\n});\n\nvar _ref = FocusLockUI.propTypes || {},\n sideCar = _ref.sideCar,\n propTypes = _objectWithoutPropertiesLoose(_ref, [\"sideCar\"]);\n\nFocusLockCombination.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nexport default FocusLockCombination;"],"names":["FocusLockCombination","React","forwardRef","props","ref","createElement","FocusLockUI","_extends","sideCar","FocusTrap","_ref","propTypes","_objectWithoutPropertiesLoose","process","env","NODE_ENV","FocusLock"],"mappings":"gkBAcIA,EAAoCC,EAAMC,YAAW,SAAgCC,EAAOC,GAC9F,OAAoBH,EAAMI,cAAcC,EAAW,QAAEC,UAAS,CAC5DC,QAASC,EAAS,QAClBL,IAAKA,GACJD,OAGDO,EAAOJ,EAAAA,QAAYK,WAAa,GACtBD,EAAKF,QACf,IAAAG,EAAYC,EAA6B,QAACF,EAAM,CAAC,YAErDV,EAAqBW,UAAqC,eAAzBE,QAAQC,IAAIC,SAA4BJ,EAAY,GACrF,IAAAK,EAAehB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FocusGuard.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/FocusGuard.js"],"sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nexport var hiddenGuard = {\n width: '1px',\n height: '0px',\n padding: 0,\n overflow: 'hidden',\n position: 'fixed',\n top: '1px',\n left: '1px'\n};\n\nvar InFocusGuard = function InFocusGuard(_ref) {\n var children = _ref.children;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }), children, children && /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-last\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }));\n};\n\nInFocusGuard.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node\n} : {};\nInFocusGuard.defaultProps = {\n children: null\n};\nexport default InFocusGuard;"],"names":["process","env","NODE_ENV","PropTypes","node","width","height","padding","overflow","position","top","left"],"mappings":"4LA2BkD,eAAzBA,QAAQC,IAAIC,UACzBC,UAAUC,yBA1BG,CACvBC,MAAO,MACPC,OAAQ,MACRC,QAAS,EACTC,SAAU,SACVC,SAAU,QACVC,IAAK,MACLC,KAAM"}
1
+ {"version":3,"file":"FocusGuard.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/FocusGuard.js"],"sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nexport var hiddenGuard = {\n width: '1px',\n height: '0px',\n padding: 0,\n overflow: 'hidden',\n position: 'fixed',\n top: '1px',\n left: '1px'\n};\n\nvar InFocusGuard = function InFocusGuard(_ref) {\n var children = _ref.children;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }), children, children && /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-last\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }));\n};\n\nInFocusGuard.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node\n} : {};\nInFocusGuard.defaultProps = {\n children: null\n};\nexport default InFocusGuard;"],"names":["process","env","NODE_ENV","PropTypes","node","width","height","padding","overflow","position","top","left"],"mappings":"4LA2BkD,eAAzBA,QAAQC,IAAIC,UACzBC,EAAS,QAACC,yBA1BG,CACvBC,MAAO,MACPC,OAAQ,MACRC,QAAS,EACTC,SAAU,SACVC,SAAU,QACVC,IAAK,MACLC,KAAM"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/extends.js"),o=require("react"),t=require("prop-types"),r=require("../../../focus-lock/dist/es2015/constants.js"),s=require("./FocusGuard.js"),u=require("./medium.js"),n=require("../../../use-callback-ref/dist/es2015/useMergeRef.js");function c(e){if(e&&e.__esModule)return e;var o=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),o.default=e,Object.freeze(o)}var a=c(o),i=[],d=a.forwardRef((function(t,c){var d,l=a.useState(),f=l[0],v=l[1],b=a.useRef(),p=a.useRef(!1),m=a.useRef(null),F=t.children,y=t.disabled,O=t.noFocusGuards,g=t.persistentFocus,h=t.crossFrame,j=t.autoFocus,k=t.allowTextSelection,E=t.group,w=t.className,x=t.whiteList,C=t.shards,S=void 0===C?i:C,D=t.as,P=void 0===D?"div":D,R=t.lockProps,q=void 0===R?{}:R,G=t.sideCar,N=t.returnFocus,_=t.focusOptions,L=t.onActivation,T=t.onDeactivation,M=a.useState({})[0],A=a.useCallback((function(){m.current=m.current||document&&document.activeElement,b.current&&L&&L(b.current),p.current=!0}),[L]),B=a.useCallback((function(){p.current=!1,T&&T(b.current)}),[T]);o.useEffect((function(){y||(m.current=null)}),[]);var I=a.useCallback((function(e){var o=m.current;if(o&&o.focus){var t="function"==typeof N?N(o):N;if(Boolean(t)){var r="object"==typeof t?t:void 0;m.current=null,e?Promise.resolve().then((function(){return o.focus(r)})):o.focus(r)}}}),[N]),U=a.useCallback((function(e){p.current&&u.mediumFocus.useMedium(e)}),[]),V=u.mediumBlur.useMedium,z=a.useCallback((function(e){b.current!==e&&(b.current=e,v(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==k&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),a.useEffect((function(){b.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var H=e.default(((d={})[r.FOCUS_DISABLED]=y&&"disabled",d[r.FOCUS_GROUP]=E,d),q),J=!0!==O,K=J&&"tail"!==O,Q=n.useMergeRefs([c,z]);return a.createElement(a.Fragment,null,J&&[a.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:y?-1:0,style:s.hiddenGuard}),a.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:y?-1:1,style:s.hiddenGuard})],!y&&a.createElement(G,{id:M,sideCar:u.mediumSidecar,observed:f,disabled:y,persistentFocus:g,crossFrame:h,autoFocus:j,whiteList:x,shards:S,onActivation:A,onDeactivation:B,returnFocus:I,focusOptions:_}),a.createElement(P,e.default({ref:Q},H,{className:w,onBlur:V,onFocus:U}),F),K&&a.createElement("div",{"data-focus-guard":!0,tabIndex:y?-1:0,style:s.hiddenGuard}))}));d.propTypes="production"!==process.env.NODE_ENV?{children:t.node,disabled:t.bool,returnFocus:t.oneOfType([t.bool,t.object,t.func]),focusOptions:t.object,noFocusGuards:t.bool,allowTextSelection:t.bool,autoFocus:t.bool,persistentFocus:t.bool,crossFrame:t.bool,group:t.string,className:t.string,whiteList:t.func,shards:t.arrayOf(t.any),as:t.oneOfType([t.string,t.func,t.object]),lockProps:t.object,onActivation:t.func,onDeactivation:t.func,sideCar:t.any.isRequired}:{},d.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var l=d;exports.default=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/extends.js"),o=require("react"),t=require("prop-types"),r=require("../../../focus-lock/dist/es2015/constants.js"),s=require("./FocusGuard.js"),u=require("./medium.js"),n=require("../../../use-callback-ref/dist/es2015/useMergeRef.js");function c(e){if(e&&e.__esModule)return e;var o=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),o.default=e,Object.freeze(o)}var a=c(o),i=[],d=a.forwardRef((function(t,c){var d,l=a.useState(),f=l[0],v=l[1],b=a.useRef(),p=a.useRef(!1),m=a.useRef(null),F=t.children,h=t.disabled,y=t.noFocusGuards,O=t.persistentFocus,g=t.crossFrame,j=t.autoFocus,k=t.allowTextSelection,E=t.group,P=t.className,w=t.whiteList,x=t.hasPositiveIndices,C=t.shards,S=void 0===C?i:C,D=t.as,R=void 0===D?"div":D,q=t.lockProps,G=void 0===q?{}:q,N=t.sideCar,_=t.returnFocus,I=t.focusOptions,L=t.onActivation,T=t.onDeactivation,M=a.useState({})[0],A=a.useCallback((function(){m.current=m.current||document&&document.activeElement,b.current&&L&&L(b.current),p.current=!0}),[L]),B=a.useCallback((function(){p.current=!1,T&&T(b.current)}),[T]);o.useEffect((function(){h||(m.current=null)}),[]);var U=a.useCallback((function(e){var o=m.current;if(o&&o.focus){var t="function"==typeof _?_(o):_;if(t){var r="object"==typeof t?t:void 0;m.current=null,e?Promise.resolve().then((function(){return o.focus(r)})):o.focus(r)}}}),[_]),V=a.useCallback((function(e){p.current&&u.mediumFocus.useMedium(e)}),[]),z=u.mediumBlur.useMedium,H=a.useCallback((function(e){b.current!==e&&(b.current=e,v(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==k&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),a.useEffect((function(){b.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var J=e.default(((d={})[r.FOCUS_DISABLED]=h&&"disabled",d[r.FOCUS_GROUP]=E,d),G),K=!0!==y,Q=K&&"tail"!==y,W=n.useMergeRefs([c,H]);return a.createElement(a.Fragment,null,K&&[a.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:s.hiddenGuard}),x?a.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:s.hiddenGuard}):null],!h&&a.createElement(N,{id:M,sideCar:u.mediumSidecar,observed:f,disabled:h,persistentFocus:O,crossFrame:g,autoFocus:j,whiteList:w,shards:S,onActivation:A,onDeactivation:B,returnFocus:U,focusOptions:I}),a.createElement(R,e.default({ref:W},J,{className:P,onBlur:z,onFocus:V}),F),Q&&a.createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:s.hiddenGuard}))}));d.propTypes="production"!==process.env.NODE_ENV?{children:t.node,disabled:t.bool,returnFocus:t.oneOfType([t.bool,t.object,t.func]),focusOptions:t.object,noFocusGuards:t.bool,hasPositiveIndices:t.bool,allowTextSelection:t.bool,autoFocus:t.bool,persistentFocus:t.bool,crossFrame:t.bool,group:t.string,className:t.string,whiteList:t.func,shards:t.arrayOf(t.any),as:t.oneOfType([t.string,t.func,t.object]),lockProps:t.object,onActivation:t.func,onDeactivation:t.func,sideCar:t.any.isRequired}:{},d.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var l=d;exports.default=l;
2
2
  //# sourceMappingURL=Lock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Lock.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Lock.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { node, bool, string, any, arrayOf, oneOfType, object, func } from 'prop-types';\nimport * as constants from 'focus-lock/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { hiddenGuard } from './FocusGuard';\nimport { mediumFocus, mediumBlur, mediumSidecar } from './medium';\nimport { useEffect } from \"react\";\nvar emptyArray = [];\nvar FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parentRef) {\n var _extends2;\n\n var _React$useState = React.useState(),\n realObserved = _React$useState[0],\n setObserved = _React$useState[1];\n\n var observed = React.useRef();\n var isActive = React.useRef(false);\n var originalFocusedElement = React.useRef(null);\n var children = props.children,\n disabled = props.disabled,\n noFocusGuards = props.noFocusGuards,\n persistentFocus = props.persistentFocus,\n crossFrame = props.crossFrame,\n autoFocus = props.autoFocus,\n allowTextSelection = props.allowTextSelection,\n group = props.group,\n className = props.className,\n whiteList = props.whiteList,\n _props$shards = props.shards,\n shards = _props$shards === void 0 ? emptyArray : _props$shards,\n _props$as = props.as,\n Container = _props$as === void 0 ? 'div' : _props$as,\n _props$lockProps = props.lockProps,\n containerProps = _props$lockProps === void 0 ? {} : _props$lockProps,\n SideCar = props.sideCar,\n shouldReturnFocus = props.returnFocus,\n focusOptions = props.focusOptions,\n onActivationCallback = props.onActivation,\n onDeactivationCallback = props.onDeactivation;\n\n var _React$useState2 = React.useState({}),\n id = _React$useState2[0]; // SIDE EFFECT CALLBACKS\n\n\n var onActivation = React.useCallback(function () {\n originalFocusedElement.current = originalFocusedElement.current || document && document.activeElement;\n\n if (observed.current && onActivationCallback) {\n onActivationCallback(observed.current);\n }\n\n isActive.current = true;\n }, [onActivationCallback]);\n var onDeactivation = React.useCallback(function () {\n isActive.current = false;\n\n if (onDeactivationCallback) {\n onDeactivationCallback(observed.current);\n }\n }, [onDeactivationCallback]);\n useEffect(function () {\n if (!disabled) {\n // cleanup return focus on trap deactivation\n // sideEffect/returnFocus should happen by this time\n originalFocusedElement.current = null;\n }\n }, []);\n var returnFocus = React.useCallback(function (allowDefer) {\n var returnFocusTo = originalFocusedElement.current;\n\n if (returnFocusTo && returnFocusTo.focus) {\n var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;\n\n if (Boolean(howToReturnFocus)) {\n var returnFocusOptions = typeof howToReturnFocus === 'object' ? howToReturnFocus : undefined;\n originalFocusedElement.current = null;\n\n if (allowDefer) {\n // React might return focus after update\n // it's safer to defer the action\n Promise.resolve().then(function () {\n return returnFocusTo.focus(returnFocusOptions);\n });\n } else {\n returnFocusTo.focus(returnFocusOptions);\n }\n }\n }\n }, [shouldReturnFocus]); // MEDIUM CALLBACKS\n\n var onFocus = React.useCallback(function (event) {\n if (isActive.current) {\n mediumFocus.useMedium(event);\n }\n }, []);\n var onBlur = mediumBlur.useMedium; // REF PROPAGATION\n // not using real refs due to race conditions\n\n var setObserveNode = React.useCallback(function (newObserved) {\n if (observed.current !== newObserved) {\n observed.current = newObserved;\n setObserved(newObserved);\n }\n }, []);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof allowTextSelection !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default');\n }\n\n React.useEffect(function () {\n if (!observed.current) {\n // eslint-disable-next-line no-console\n console.error('FocusLock: could not obtain ref to internal node');\n }\n }, []);\n }\n\n var lockProps = _extends((_extends2 = {}, _extends2[constants.FOCUS_DISABLED] = disabled && 'disabled', _extends2[constants.FOCUS_GROUP] = group, _extends2), containerProps);\n\n var hasLeadingGuards = noFocusGuards !== true;\n var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';\n var mergedRef = useMergeRefs([parentRef, setObserveNode]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, hasLeadingGuards && [/*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }),\n /*#__PURE__*/\n // nearest focus guard\n React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) // first tabbed element guard\n ], !disabled && /*#__PURE__*/React.createElement(SideCar, {\n id: id,\n sideCar: mediumSidecar,\n observed: realObserved,\n disabled: disabled,\n persistentFocus: persistentFocus,\n crossFrame: crossFrame,\n autoFocus: autoFocus,\n whiteList: whiteList,\n shards: shards,\n onActivation: onActivation,\n onDeactivation: onDeactivation,\n returnFocus: returnFocus,\n focusOptions: focusOptions\n }), /*#__PURE__*/React.createElement(Container, _extends({\n ref: mergedRef\n }, lockProps, {\n className: className,\n onBlur: onBlur,\n onFocus: onFocus\n }), children), hasTailingGuards && /*#__PURE__*/React.createElement(\"div\", {\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }));\n});\nFocusLock.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: node,\n disabled: bool,\n returnFocus: oneOfType([bool, object, func]),\n focusOptions: object,\n noFocusGuards: bool,\n allowTextSelection: bool,\n autoFocus: bool,\n persistentFocus: bool,\n crossFrame: bool,\n group: string,\n className: string,\n whiteList: func,\n shards: arrayOf(any),\n as: oneOfType([string, func, object]),\n lockProps: object,\n onActivation: func,\n onDeactivation: func,\n sideCar: any.isRequired\n} : {};\nFocusLock.defaultProps = {\n children: undefined,\n disabled: false,\n returnFocus: false,\n focusOptions: undefined,\n noFocusGuards: false,\n autoFocus: true,\n persistentFocus: false,\n crossFrame: true,\n allowTextSelection: undefined,\n group: undefined,\n className: undefined,\n whiteList: undefined,\n shards: undefined,\n as: 'div',\n lockProps: {},\n onActivation: undefined,\n onDeactivation: undefined\n};\nexport default FocusLock;"],"names":["emptyArray","FocusLock","React","forwardRef","props","parentRef","_extends2","_React$useState","useState","realObserved","setObserved","observed","useRef","isActive","originalFocusedElement","children","disabled","noFocusGuards","persistentFocus","crossFrame","autoFocus","allowTextSelection","group","className","whiteList","_props$shards","shards","_props$as","as","Container","_props$lockProps","lockProps","containerProps","SideCar","sideCar","shouldReturnFocus","returnFocus","focusOptions","onActivationCallback","onActivation","onDeactivationCallback","onDeactivation","id","useCallback","current","document","activeElement","useEffect","allowDefer","returnFocusTo","focus","howToReturnFocus","Boolean","returnFocusOptions","undefined","Promise","resolve","then","onFocus","event","mediumFocus","useMedium","onBlur","mediumBlur","setObserveNode","newObserved","process","env","NODE_ENV","console","warn","error","_extends","constants.FOCUS_DISABLED","constants.FOCUS_GROUP","hasLeadingGuards","hasTailingGuards","mergedRef","useMergeRefs","createElement","Fragment","key","tabIndex","style","hiddenGuard","mediumSidecar","ref","propTypes","node","bool","oneOfType","object","func","string","arrayOf","any","isRequired","defaultProps"],"mappings":"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"}
1
+ {"version":3,"file":"Lock.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Lock.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { node, bool, string, any, arrayOf, oneOfType, object, func } from 'prop-types';\nimport * as constants from 'focus-lock/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { useEffect } from 'react';\nimport { hiddenGuard } from './FocusGuard';\nimport { mediumFocus, mediumBlur, mediumSidecar } from './medium';\nvar emptyArray = [];\nvar FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parentRef) {\n var _extends2;\n\n var _React$useState = React.useState(),\n realObserved = _React$useState[0],\n setObserved = _React$useState[1];\n\n var observed = React.useRef();\n var isActive = React.useRef(false);\n var originalFocusedElement = React.useRef(null);\n var children = props.children,\n disabled = props.disabled,\n noFocusGuards = props.noFocusGuards,\n persistentFocus = props.persistentFocus,\n crossFrame = props.crossFrame,\n autoFocus = props.autoFocus,\n allowTextSelection = props.allowTextSelection,\n group = props.group,\n className = props.className,\n whiteList = props.whiteList,\n hasPositiveIndices = props.hasPositiveIndices,\n _props$shards = props.shards,\n shards = _props$shards === void 0 ? emptyArray : _props$shards,\n _props$as = props.as,\n Container = _props$as === void 0 ? 'div' : _props$as,\n _props$lockProps = props.lockProps,\n containerProps = _props$lockProps === void 0 ? {} : _props$lockProps,\n SideCar = props.sideCar,\n shouldReturnFocus = props.returnFocus,\n focusOptions = props.focusOptions,\n onActivationCallback = props.onActivation,\n onDeactivationCallback = props.onDeactivation;\n\n var _React$useState2 = React.useState({}),\n id = _React$useState2[0]; // SIDE EFFECT CALLBACKS\n\n\n var onActivation = React.useCallback(function () {\n originalFocusedElement.current = originalFocusedElement.current || document && document.activeElement;\n\n if (observed.current && onActivationCallback) {\n onActivationCallback(observed.current);\n }\n\n isActive.current = true;\n }, [onActivationCallback]);\n var onDeactivation = React.useCallback(function () {\n isActive.current = false;\n\n if (onDeactivationCallback) {\n onDeactivationCallback(observed.current);\n }\n }, [onDeactivationCallback]);\n useEffect(function () {\n if (!disabled) {\n // cleanup return focus on trap deactivation\n // sideEffect/returnFocus should happen by this time\n originalFocusedElement.current = null;\n }\n }, []);\n var returnFocus = React.useCallback(function (allowDefer) {\n var returnFocusTo = originalFocusedElement.current;\n\n if (returnFocusTo && returnFocusTo.focus) {\n var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;\n\n if (howToReturnFocus) {\n var returnFocusOptions = typeof howToReturnFocus === 'object' ? howToReturnFocus : undefined;\n originalFocusedElement.current = null;\n\n if (allowDefer) {\n // React might return focus after update\n // it's safer to defer the action\n Promise.resolve().then(function () {\n return returnFocusTo.focus(returnFocusOptions);\n });\n } else {\n returnFocusTo.focus(returnFocusOptions);\n }\n }\n }\n }, [shouldReturnFocus]); // MEDIUM CALLBACKS\n\n var onFocus = React.useCallback(function (event) {\n if (isActive.current) {\n mediumFocus.useMedium(event);\n }\n }, []);\n var onBlur = mediumBlur.useMedium; // REF PROPAGATION\n // not using real refs due to race conditions\n\n var setObserveNode = React.useCallback(function (newObserved) {\n if (observed.current !== newObserved) {\n observed.current = newObserved;\n setObserved(newObserved);\n }\n }, []);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof allowTextSelection !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default');\n }\n\n React.useEffect(function () {\n if (!observed.current) {\n // eslint-disable-next-line no-console\n console.error('FocusLock: could not obtain ref to internal node');\n }\n }, []);\n }\n\n var lockProps = _extends((_extends2 = {}, _extends2[constants.FOCUS_DISABLED] = disabled && 'disabled', _extends2[constants.FOCUS_GROUP] = group, _extends2), containerProps);\n\n var hasLeadingGuards = noFocusGuards !== true;\n var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';\n var mergedRef = useMergeRefs([parentRef, setObserveNode]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, hasLeadingGuards && [\n /*#__PURE__*/\n // nearest focus guard\n React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }), // first tabbed element guard\n hasPositiveIndices ? /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) : null], !disabled && /*#__PURE__*/React.createElement(SideCar, {\n id: id,\n sideCar: mediumSidecar,\n observed: realObserved,\n disabled: disabled,\n persistentFocus: persistentFocus,\n crossFrame: crossFrame,\n autoFocus: autoFocus,\n whiteList: whiteList,\n shards: shards,\n onActivation: onActivation,\n onDeactivation: onDeactivation,\n returnFocus: returnFocus,\n focusOptions: focusOptions\n }), /*#__PURE__*/React.createElement(Container, _extends({\n ref: mergedRef\n }, lockProps, {\n className: className,\n onBlur: onBlur,\n onFocus: onFocus\n }), children), hasTailingGuards && /*#__PURE__*/React.createElement(\"div\", {\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }));\n});\nFocusLock.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: node,\n disabled: bool,\n returnFocus: oneOfType([bool, object, func]),\n focusOptions: object,\n noFocusGuards: bool,\n hasPositiveIndices: bool,\n allowTextSelection: bool,\n autoFocus: bool,\n persistentFocus: bool,\n crossFrame: bool,\n group: string,\n className: string,\n whiteList: func,\n shards: arrayOf(any),\n as: oneOfType([string, func, object]),\n lockProps: object,\n onActivation: func,\n onDeactivation: func,\n sideCar: any.isRequired\n} : {};\nFocusLock.defaultProps = {\n children: undefined,\n disabled: false,\n returnFocus: false,\n focusOptions: undefined,\n noFocusGuards: false,\n autoFocus: true,\n persistentFocus: false,\n crossFrame: true,\n hasPositiveIndices: undefined,\n allowTextSelection: undefined,\n group: undefined,\n className: undefined,\n whiteList: undefined,\n shards: undefined,\n as: 'div',\n lockProps: {},\n onActivation: undefined,\n onDeactivation: undefined\n};\nexport default FocusLock;"],"names":["emptyArray","FocusLock","React","forwardRef","props","parentRef","_extends2","_React$useState","useState","realObserved","setObserved","observed","useRef","isActive","originalFocusedElement","children","disabled","noFocusGuards","persistentFocus","crossFrame","autoFocus","allowTextSelection","group","className","whiteList","hasPositiveIndices","_props$shards","shards","_props$as","as","Container","_props$lockProps","lockProps","containerProps","SideCar","sideCar","shouldReturnFocus","returnFocus","focusOptions","onActivationCallback","onActivation","onDeactivationCallback","onDeactivation","id","useCallback","current","document","activeElement","useEffect","allowDefer","returnFocusTo","focus","howToReturnFocus","returnFocusOptions","undefined","Promise","resolve","then","onFocus","event","mediumFocus","useMedium","onBlur","mediumBlur","setObserveNode","newObserved","process","env","NODE_ENV","console","warn","error","_extends","constants.FOCUS_DISABLED","constants.FOCUS_GROUP","FOCUS_GROUP","hasLeadingGuards","hasTailingGuards","mergedRef","useMergeRefs","createElement","Fragment","key","tabIndex","style","hiddenGuard","mediumSidecar","ref","propTypes","node","bool","oneOfType","object","func","string","arrayOf","any","isRequired","defaultProps","FocusLockUI"],"mappings":"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"}