@d19n/webchat 1.0.5 → 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 (302) hide show
  1. package/README.md +19 -14
  2. package/dist/TwilioChat/Chat.d.ts +3 -12
  3. package/dist/TwilioChat/components/ChatHeader.d.ts +5 -0
  4. package/dist/TwilioChat/components/ChatInput.d.ts +5 -0
  5. package/dist/TwilioChat/components/Container.d.ts +6 -0
  6. package/dist/TwilioChat/components/Message.d.ts +29 -0
  7. package/dist/TwilioChat/components/MessageList.d.ts +5 -0
  8. package/dist/TwilioChat/components/NotificationBar.d.ts +3 -0
  9. package/dist/TwilioChat/components/TypingIndicator.d.ts +5 -0
  10. package/dist/TwilioChat/components/Widget.d.ts +5 -0
  11. package/dist/TwilioChat/components/styled/ChatContent.d.ts +3 -0
  12. package/dist/TwilioChat/components/styled/ChatContentList.d.ts +3 -0
  13. package/dist/TwilioChat/components/styled/ChatWrapper.d.ts +3 -0
  14. package/dist/TwilioChat/components/styled/EventPost.d.ts +3 -0
  15. package/dist/TwilioChat/components/styled/Header.d.ts +3 -0
  16. package/dist/TwilioChat/components/styled/InputForm.d.ts +3 -0
  17. package/dist/TwilioChat/components/styled/MyPost.d.ts +3 -0
  18. package/dist/TwilioChat/components/styled/Splitter.d.ts +3 -0
  19. package/dist/TwilioChat/components/styled/WidgetButton.d.ts +3 -0
  20. package/dist/TwilioChat/components/styled/YFPost.d.ts +3 -0
  21. package/dist/TwilioChat/index.d.ts +2 -12
  22. package/dist/_virtual/_commonjsHelpers.js +1 -1
  23. package/dist/_virtual/index11.js +1 -1
  24. package/dist/_virtual/index2.js +1 -1
  25. package/dist/_virtual/index3.js +1 -1
  26. package/dist/_virtual/index5.js +1 -1
  27. package/dist/_virtual/index6.js +1 -1
  28. package/dist/_virtual/index7.js +1 -1
  29. package/dist/_virtual/index8.js +1 -1
  30. package/dist/assets/assets.d.ts +44 -0
  31. package/dist/assets/images/{svg/youfibre-upload.svg → youfibre-upload.svg} +4 -4
  32. package/dist/assets/styles/app.scss +242 -210
  33. package/dist/context/ChatGlobalContext.d.ts +31 -0
  34. package/dist/index.d.ts +2 -8
  35. package/dist/index.js +6 -36
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +6 -36
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +1 -1
  40. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -1
  41. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +2 -0
  42. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
  43. package/dist/node_modules/attr-accept/dist/es/index.js +1 -1
  44. package/dist/node_modules/classnames/index.js +1 -1
  45. package/dist/node_modules/engine.io-client/build/esm/transport.js +1 -1
  46. package/dist/node_modules/engine.io-client/build/esm/transport.js.map +1 -1
  47. package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.js.map +1 -1
  48. package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js.map +1 -1
  49. package/dist/node_modules/mdast-util-gfm-strikethrough/from-markdown.js +1 -1
  50. package/dist/node_modules/mdast-util-gfm-table/from-markdown.js +1 -1
  51. package/dist/node_modules/micromark-extension-gfm-autolink-literal/syntax.js +1 -1
  52. package/dist/node_modules/micromark-extension-gfm-autolink-literal/syntax.js.map +1 -1
  53. package/dist/node_modules/micromark-extension-gfm-table/syntax.js +1 -1
  54. package/dist/node_modules/micromark-extension-gfm-table/syntax.js.map +1 -1
  55. package/dist/node_modules/micromark-extension-gfm-task-list-item/syntax.js +1 -1
  56. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  57. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
  58. package/dist/node_modules/prop-types/index.js +1 -1
  59. package/dist/node_modules/prop-types/index.js.map +1 -1
  60. package/dist/node_modules/react-bootstrap/esm/Col.js +1 -1
  61. package/dist/node_modules/react-bootstrap/esm/Row.js +1 -1
  62. package/dist/node_modules/react-dropzone/dist/es/index.js.map +1 -1
  63. package/dist/node_modules/react-dropzone/dist/es/utils/index.js +1 -1
  64. package/dist/node_modules/react-dropzone/dist/es/utils/index.js.map +1 -1
  65. package/dist/node_modules/react-icons/bs/index.js +2 -0
  66. package/dist/node_modules/react-icons/bs/index.js.map +1 -0
  67. package/dist/node_modules/react-icons/io/index.js +2 -0
  68. package/dist/node_modules/react-icons/io/index.js.map +1 -0
  69. package/dist/node_modules/react-icons/lib/iconBase.js +2 -0
  70. package/dist/node_modules/react-icons/lib/iconBase.js.map +1 -0
  71. package/dist/node_modules/react-icons/lib/iconContext.js.map +1 -0
  72. package/dist/node_modules/react-is/cjs/react-is.development.js +3 -4
  73. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  74. package/dist/node_modules/{react-markdown/node_modules/react-is → react-is}/cjs/react-is.production.min.js +1 -1
  75. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  76. package/dist/node_modules/react-is/index.js +1 -1
  77. package/dist/node_modules/react-is/index.js.map +1 -1
  78. package/dist/node_modules/react-markdown/lib/ast-to-react.js +1 -1
  79. package/dist/node_modules/react-markdown/lib/ast-to-react.js.map +1 -1
  80. package/dist/node_modules/react-modal-image/es/Image.js.map +1 -1
  81. package/dist/node_modules/react-modal-image/es/Lightbox.js.map +1 -1
  82. package/dist/node_modules/react-modal-image/es/styles.js.map +1 -1
  83. package/dist/node_modules/react-timer-hook/dist/index.js +1 -1
  84. package/dist/node_modules/react-toastify/dist/react-toastify.esm.js.map +1 -1
  85. package/dist/node_modules/socket.io-client/build/esm/manager.js.map +1 -1
  86. package/dist/node_modules/socket.io-client/build/esm/socket.js +1 -1
  87. package/dist/node_modules/socket.io-client/build/esm/socket.js.map +1 -1
  88. package/dist/node_modules/socket.io-parser/build/esm/index.js +1 -1
  89. package/dist/node_modules/socket.io-parser/build/esm/index.js.map +1 -1
  90. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +1 -1
  91. package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js +1 -1
  92. package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js.map +1 -1
  93. package/dist/node_modules/stylis/src/Enum.js +2 -0
  94. package/dist/node_modules/stylis/src/Enum.js.map +1 -0
  95. package/dist/node_modules/stylis/src/Middleware.js +2 -0
  96. package/dist/node_modules/stylis/src/Middleware.js.map +1 -0
  97. package/dist/node_modules/stylis/src/Parser.js +2 -0
  98. package/dist/node_modules/stylis/src/Parser.js.map +1 -0
  99. package/dist/node_modules/stylis/src/Prefixer.js +2 -0
  100. package/dist/node_modules/stylis/src/Prefixer.js.map +1 -0
  101. package/dist/node_modules/stylis/src/Serializer.js +2 -0
  102. package/dist/node_modules/stylis/src/Serializer.js.map +1 -0
  103. package/dist/node_modules/stylis/src/Tokenizer.js +2 -0
  104. package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -0
  105. package/dist/node_modules/stylis/src/Utility.js +2 -0
  106. package/dist/node_modules/stylis/src/Utility.js.map +1 -0
  107. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  108. package/dist/package.json/package.json +30 -19
  109. package/dist/services/chatService.d.ts +48 -0
  110. package/dist/src/TwilioChat/Chat.js +1 -1
  111. package/dist/src/TwilioChat/Chat.js.map +1 -1
  112. package/dist/src/TwilioChat/components/ChatHeader.js +2 -0
  113. package/dist/src/TwilioChat/components/ChatHeader.js.map +1 -0
  114. package/dist/src/TwilioChat/components/ChatInput.js +2 -0
  115. package/dist/src/TwilioChat/components/ChatInput.js.map +1 -0
  116. package/dist/src/TwilioChat/components/Container.js +2 -0
  117. package/dist/src/TwilioChat/components/Container.js.map +1 -0
  118. package/dist/src/TwilioChat/components/Message.js +2 -0
  119. package/dist/src/TwilioChat/components/Message.js.map +1 -0
  120. package/dist/src/TwilioChat/components/MessageList.js +2 -0
  121. package/dist/src/TwilioChat/components/MessageList.js.map +1 -0
  122. package/dist/src/TwilioChat/components/NotificationBar.js +2 -0
  123. package/dist/src/TwilioChat/components/NotificationBar.js.map +1 -0
  124. package/dist/src/TwilioChat/components/TypingIndicator.js +2 -0
  125. package/dist/src/TwilioChat/components/TypingIndicator.js.map +1 -0
  126. package/dist/src/TwilioChat/components/Widget.js +2 -0
  127. package/dist/src/TwilioChat/components/Widget.js.map +1 -0
  128. package/dist/src/TwilioChat/components/styled/ChatContent.js +2 -0
  129. package/dist/src/TwilioChat/components/styled/ChatContent.js.map +1 -0
  130. package/dist/src/TwilioChat/components/styled/ChatContentList.js +2 -0
  131. package/dist/src/TwilioChat/components/styled/ChatContentList.js.map +1 -0
  132. package/dist/src/TwilioChat/components/styled/ChatWrapper.js +2 -0
  133. package/dist/src/TwilioChat/components/styled/ChatWrapper.js.map +1 -0
  134. package/dist/src/TwilioChat/components/styled/EventPost.js +2 -0
  135. package/dist/src/TwilioChat/components/styled/EventPost.js.map +1 -0
  136. package/dist/src/TwilioChat/components/styled/Header.js +2 -0
  137. package/dist/src/TwilioChat/components/styled/Header.js.map +1 -0
  138. package/dist/src/TwilioChat/components/styled/InputForm.js +2 -0
  139. package/dist/src/TwilioChat/components/styled/InputForm.js.map +1 -0
  140. package/dist/src/TwilioChat/components/styled/MyPost.js +2 -0
  141. package/dist/src/TwilioChat/components/styled/MyPost.js.map +1 -0
  142. package/dist/src/TwilioChat/components/styled/Splitter.js +2 -0
  143. package/dist/src/TwilioChat/components/styled/Splitter.js.map +1 -0
  144. package/dist/src/TwilioChat/components/styled/WidgetButton.js +2 -0
  145. package/dist/src/TwilioChat/components/styled/WidgetButton.js.map +1 -0
  146. package/dist/src/TwilioChat/components/styled/YFPost.js +2 -0
  147. package/dist/src/TwilioChat/components/styled/YFPost.js.map +1 -0
  148. package/dist/src/TwilioChat/index.js +1 -1
  149. package/dist/src/TwilioChat/index.js.map +1 -1
  150. package/dist/src/assets/audio/notification.wav.js +2 -0
  151. package/dist/src/assets/audio/notification.wav.js.map +1 -0
  152. package/dist/src/assets/images/chat.svg.js +2 -0
  153. package/dist/src/assets/images/chat.svg.js.map +1 -0
  154. package/dist/src/assets/images/close.svg.js +2 -0
  155. package/dist/src/assets/images/close.svg.js.map +1 -0
  156. package/dist/src/assets/images/favicon.svg.js +2 -0
  157. package/dist/src/assets/images/favicon.svg.js.map +1 -0
  158. package/dist/src/assets/images/ico-close.png.js +2 -0
  159. package/dist/src/assets/images/ico-close.png.js.map +1 -0
  160. package/dist/src/assets/images/loader-transparent.gif.js +2 -0
  161. package/dist/src/assets/images/loader-transparent.gif.js.map +1 -0
  162. package/dist/src/assets/images/youfibre-upload.svg.js +2 -0
  163. package/dist/src/assets/images/youfibre-upload.svg.js.map +1 -0
  164. package/dist/src/assets/styles/app.scss.js +1 -1
  165. package/dist/src/context/ChatGlobalContext.js +2 -0
  166. package/dist/src/context/ChatGlobalContext.js.map +1 -0
  167. package/dist/src/index.js +1 -1
  168. package/dist/src/index.js.map +1 -1
  169. package/dist/src/services/chatService.js +2 -0
  170. package/dist/src/services/chatService.js.map +1 -0
  171. package/dist/src/utils/alert.js.map +1 -1
  172. package/dist/src/utils/chats.js +2 -0
  173. package/dist/src/utils/chats.js.map +1 -0
  174. package/dist/src/utils/helperFn.js +1 -1
  175. package/dist/src/utils/helperFn.js.map +1 -1
  176. package/dist/src/utils/validate.js +2 -0
  177. package/dist/src/utils/validate.js.map +1 -0
  178. package/dist/utils/helperFn.d.ts +18 -2
  179. package/dist/utils/validate.d.ts +3 -0
  180. package/package.json +26 -19
  181. package/dist/NotificationBar/index.d.ts +0 -3
  182. package/dist/_virtual/ConfigApi.js +0 -2
  183. package/dist/_virtual/ConfigApi.js.map +0 -1
  184. package/dist/_virtual/ConfigApi2.js +0 -2
  185. package/dist/_virtual/ConfigApi2.js.map +0 -1
  186. package/dist/_virtual/api.provider.js +0 -2
  187. package/dist/_virtual/api.provider.js.map +0 -1
  188. package/dist/_virtual/errors.js +0 -2
  189. package/dist/_virtual/errors.js.map +0 -1
  190. package/dist/_virtual/helpers.js +0 -2
  191. package/dist/_virtual/helpers.js.map +0 -1
  192. package/dist/_virtual/hoist-non-react-statics.cjs.js +0 -2
  193. package/dist/_virtual/hoist-non-react-statics.cjs.js.map +0 -1
  194. package/dist/_virtual/index12.js +0 -2
  195. package/dist/_virtual/index12.js.map +0 -1
  196. package/dist/_virtual/index13.js +0 -2
  197. package/dist/_virtual/index13.js.map +0 -1
  198. package/dist/_virtual/index14.js +0 -2
  199. package/dist/_virtual/index14.js.map +0 -1
  200. package/dist/_virtual/index15.js +0 -2
  201. package/dist/_virtual/index15.js.map +0 -1
  202. package/dist/_virtual/index16.js +0 -2
  203. package/dist/_virtual/index16.js.map +0 -1
  204. package/dist/_virtual/react-is.development2.js +0 -2
  205. package/dist/_virtual/react-is.development2.js.map +0 -1
  206. package/dist/_virtual/react-is.development3.js +0 -2
  207. package/dist/_virtual/react-is.development3.js.map +0 -1
  208. package/dist/_virtual/react-is.development4.js +0 -2
  209. package/dist/_virtual/react-is.development4.js.map +0 -1
  210. package/dist/_virtual/react-is.production.js +0 -2
  211. package/dist/_virtual/react-is.production.js.map +0 -1
  212. package/dist/_virtual/react-is.production.min2.js +0 -2
  213. package/dist/_virtual/react-is.production.min2.js.map +0 -1
  214. package/dist/_virtual/react-is.production.min3.js +0 -2
  215. package/dist/_virtual/react-is.production.min3.js.map +0 -1
  216. package/dist/_virtual/schema.types.js +0 -2
  217. package/dist/_virtual/schema.types.js.map +0 -1
  218. package/dist/api/api.d.ts +0 -17
  219. package/dist/assets/images/png/ico-chat.png +0 -0
  220. package/dist/context/GlobalContext.d.ts +0 -18
  221. package/dist/node_modules/@d19n/odin-sdk-generator/dist/api.provider.js +0 -2
  222. package/dist/node_modules/@d19n/odin-sdk-generator/dist/api.provider.js.map +0 -1
  223. package/dist/node_modules/@d19n/odin-sdk-generator/dist/utilities/helpers.js +0 -2
  224. package/dist/node_modules/@d19n/odin-sdk-generator/dist/utilities/helpers.js.map +0 -1
  225. package/dist/node_modules/@d19n/odin-types/dist/types/errors.js +0 -2
  226. package/dist/node_modules/@d19n/odin-types/dist/types/errors.js.map +0 -1
  227. package/dist/node_modules/@d19n/odin-types/dist/types/schema.types.js +0 -2
  228. package/dist/node_modules/@d19n/odin-types/dist/types/schema.types.js.map +0 -1
  229. package/dist/node_modules/@d19n/youfibre-odin-sdk/dist/api-sdk-v2/ConfigApi.js +0 -2
  230. package/dist/node_modules/@d19n/youfibre-odin-sdk/dist/api-sdk-v2/ConfigApi.js.map +0 -1
  231. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js +0 -2
  232. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js.map +0 -1
  233. package/dist/node_modules/@emotion/unitless/dist/unitless.browser.esm.js +0 -2
  234. package/dist/node_modules/@emotion/unitless/dist/unitless.browser.esm.js.map +0 -1
  235. package/dist/node_modules/camel-case/dist.es2015/index.js +0 -2
  236. package/dist/node_modules/camel-case/dist.es2015/index.js.map +0 -1
  237. package/dist/node_modules/capital-case/dist.es2015/index.js +0 -2
  238. package/dist/node_modules/capital-case/dist.es2015/index.js.map +0 -1
  239. package/dist/node_modules/change-case/dist.es2015/index.js +0 -2
  240. package/dist/node_modules/change-case/dist.es2015/index.js.map +0 -1
  241. package/dist/node_modules/constant-case/dist.es2015/index.js +0 -2
  242. package/dist/node_modules/constant-case/dist.es2015/index.js.map +0 -1
  243. package/dist/node_modules/dot-case/dist.es2015/index.js +0 -2
  244. package/dist/node_modules/dot-case/dist.es2015/index.js.map +0 -1
  245. package/dist/node_modules/header-case/dist.es2015/index.js +0 -2
  246. package/dist/node_modules/header-case/dist.es2015/index.js.map +0 -1
  247. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -2
  248. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +0 -1
  249. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -10
  250. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  251. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -10
  252. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  253. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -2
  254. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +0 -1
  255. package/dist/node_modules/lower-case/dist.es2015/index.js +0 -2
  256. package/dist/node_modules/lower-case/dist.es2015/index.js.map +0 -1
  257. package/dist/node_modules/no-case/dist.es2015/index.js +0 -2
  258. package/dist/node_modules/no-case/dist.es2015/index.js.map +0 -1
  259. package/dist/node_modules/param-case/dist.es2015/index.js +0 -2
  260. package/dist/node_modules/param-case/dist.es2015/index.js.map +0 -1
  261. package/dist/node_modules/pascal-case/dist.es2015/index.js +0 -2
  262. package/dist/node_modules/pascal-case/dist.es2015/index.js.map +0 -1
  263. package/dist/node_modules/path-case/dist.es2015/index.js +0 -2
  264. package/dist/node_modules/path-case/dist.es2015/index.js.map +0 -1
  265. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -10
  266. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  267. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -10
  268. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  269. package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -2
  270. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  271. package/dist/node_modules/react-icons/bs/index.esm.js +0 -2
  272. package/dist/node_modules/react-icons/bs/index.esm.js.map +0 -1
  273. package/dist/node_modules/react-icons/lib/esm/iconBase.js +0 -2
  274. package/dist/node_modules/react-icons/lib/esm/iconBase.js.map +0 -1
  275. package/dist/node_modules/react-icons/lib/esm/iconContext.js.map +0 -1
  276. package/dist/node_modules/react-is/cjs/react-is.production.js +0 -11
  277. package/dist/node_modules/react-is/cjs/react-is.production.js.map +0 -1
  278. package/dist/node_modules/react-markdown/node_modules/react-is/cjs/react-is.development.js +0 -10
  279. package/dist/node_modules/react-markdown/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  280. package/dist/node_modules/react-markdown/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  281. package/dist/node_modules/react-markdown/node_modules/react-is/index.js +0 -2
  282. package/dist/node_modules/react-markdown/node_modules/react-is/index.js.map +0 -1
  283. package/dist/node_modules/sentence-case/dist.es2015/index.js +0 -2
  284. package/dist/node_modules/sentence-case/dist.es2015/index.js.map +0 -1
  285. package/dist/node_modules/snake-case/dist.es2015/index.js +0 -2
  286. package/dist/node_modules/snake-case/dist.es2015/index.js.map +0 -1
  287. package/dist/node_modules/upper-case/dist.es2015/index.js +0 -2
  288. package/dist/node_modules/upper-case/dist.es2015/index.js.map +0 -1
  289. package/dist/node_modules/upper-case-first/dist.es2015/index.js +0 -2
  290. package/dist/node_modules/upper-case-first/dist.es2015/index.js.map +0 -1
  291. package/dist/src/NotificationBar/index.js +0 -2
  292. package/dist/src/NotificationBar/index.js.map +0 -1
  293. package/dist/src/api/api.js +0 -2
  294. package/dist/src/api/api.js.map +0 -1
  295. package/dist/src/context/GlobalContext.js +0 -2
  296. package/dist/src/context/GlobalContext.js.map +0 -1
  297. /package/dist/assets/images/{svg/chat.svg → chat.svg} +0 -0
  298. /package/dist/assets/images/{svg/close.svg → close.svg} +0 -0
  299. /package/dist/assets/images/{svg/favicon.svg → favicon.svg} +0 -0
  300. /package/dist/assets/images/{png/ico-close.png → ico-close.png} +0 -0
  301. /package/dist/assets/images/{gif/loader-transparent.gif → loader-transparent.gif} +0 -0
  302. /package/dist/node_modules/react-icons/lib/{esm/iconContext.js → iconContext.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/react-dropzone/dist/es/utils/index.js"],"sourcesContent":["function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport _accepts from \"attr-accept\";\nvar accepts = typeof _accepts === \"function\" ? _accepts : _accepts.default; // Error codes\n\nexport var FILE_INVALID_TYPE = \"file-invalid-type\";\nexport var FILE_TOO_LARGE = \"file-too-large\";\nexport var FILE_TOO_SMALL = \"file-too-small\";\nexport var TOO_MANY_FILES = \"too-many-files\";\nexport var ErrorCode = {\n FileInvalidType: FILE_INVALID_TYPE,\n FileTooLarge: FILE_TOO_LARGE,\n FileTooSmall: FILE_TOO_SMALL,\n TooManyFiles: TOO_MANY_FILES\n};\n/**\n *\n * @param {string} accept\n */\n\nexport var getInvalidTypeRejectionErr = function getInvalidTypeRejectionErr() {\n var accept = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var acceptArr = accept.split(\",\");\n var msg = acceptArr.length > 1 ? \"one of \".concat(acceptArr.join(\", \")) : acceptArr[0];\n return {\n code: FILE_INVALID_TYPE,\n message: \"File type must be \".concat(msg)\n };\n};\nexport var getTooLargeRejectionErr = function getTooLargeRejectionErr(maxSize) {\n return {\n code: FILE_TOO_LARGE,\n message: \"File is larger than \".concat(maxSize, \" \").concat(maxSize === 1 ? \"byte\" : \"bytes\")\n };\n};\nexport var getTooSmallRejectionErr = function getTooSmallRejectionErr(minSize) {\n return {\n code: FILE_TOO_SMALL,\n message: \"File is smaller than \".concat(minSize, \" \").concat(minSize === 1 ? \"byte\" : \"bytes\")\n };\n};\nexport var TOO_MANY_FILES_REJECTION = {\n code: TOO_MANY_FILES,\n message: \"Too many files\"\n};\n/**\n * Check if file is accepted.\n *\n * Firefox versions prior to 53 return a bogus MIME type for every file drag,\n * so dragovers with that MIME type will always be accepted.\n *\n * @param {File} file\n * @param {string} accept\n * @returns\n */\n\nexport function fileAccepted(file, accept) {\n var isAcceptable = file.type === \"application/x-moz-file\" || accepts(file, accept);\n return [isAcceptable, isAcceptable ? null : getInvalidTypeRejectionErr(accept)];\n}\nexport function fileMatchSize(file, minSize, maxSize) {\n if (isDefined(file.size)) {\n if (isDefined(minSize) && isDefined(maxSize)) {\n if (file.size > maxSize) return [false, getTooLargeRejectionErr(maxSize)];\n if (file.size < minSize) return [false, getTooSmallRejectionErr(minSize)];\n } else if (isDefined(minSize) && file.size < minSize) return [false, getTooSmallRejectionErr(minSize)];else if (isDefined(maxSize) && file.size > maxSize) return [false, getTooLargeRejectionErr(maxSize)];\n }\n\n return [true, null];\n}\n\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\n/**\n *\n * @param {object} options\n * @param {File[]} options.files\n * @param {string} [options.accept]\n * @param {number} [options.minSize]\n * @param {number} [options.maxSize]\n * @param {boolean} [options.multiple]\n * @param {number} [options.maxFiles]\n * @param {(f: File) => FileError|FileError[]|null} [options.validator]\n * @returns\n */\n\n\nexport function allFilesAccepted(_ref) {\n var files = _ref.files,\n accept = _ref.accept,\n minSize = _ref.minSize,\n maxSize = _ref.maxSize,\n multiple = _ref.multiple,\n maxFiles = _ref.maxFiles,\n validator = _ref.validator;\n\n if (!multiple && files.length > 1 || multiple && maxFiles >= 1 && files.length > maxFiles) {\n return false;\n }\n\n return files.every(function (file) {\n var _fileAccepted = fileAccepted(file, accept),\n _fileAccepted2 = _slicedToArray(_fileAccepted, 1),\n accepted = _fileAccepted2[0];\n\n var _fileMatchSize = fileMatchSize(file, minSize, maxSize),\n _fileMatchSize2 = _slicedToArray(_fileMatchSize, 1),\n sizeMatch = _fileMatchSize2[0];\n\n var customErrors = validator ? validator(file) : null;\n return accepted && sizeMatch && !customErrors;\n });\n} // React's synthetic events has event.isPropagationStopped,\n// but to remain compatibility with other libs (Preact) fall back\n// to check event.cancelBubble\n\nexport function isPropagationStopped(event) {\n if (typeof event.isPropagationStopped === \"function\") {\n return event.isPropagationStopped();\n } else if (typeof event.cancelBubble !== \"undefined\") {\n return event.cancelBubble;\n }\n\n return false;\n}\nexport function isEvtWithFiles(event) {\n if (!event.dataTransfer) {\n return !!event.target && !!event.target.files;\n } // https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types\n // https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Recommended_drag_types#file\n\n\n return Array.prototype.some.call(event.dataTransfer.types, function (type) {\n return type === \"Files\" || type === \"application/x-moz-file\";\n });\n}\nexport function isKindFile(item) {\n return _typeof(item) === \"object\" && item !== null && item.kind === \"file\";\n} // allow the entire document to be a drag target\n\nexport function onDocumentDragOver(event) {\n event.preventDefault();\n}\n\nfunction isIe(userAgent) {\n return userAgent.indexOf(\"MSIE\") !== -1 || userAgent.indexOf(\"Trident/\") !== -1;\n}\n\nfunction isEdge(userAgent) {\n return userAgent.indexOf(\"Edge/\") !== -1;\n}\n\nexport function isIeOrEdge() {\n var userAgent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.navigator.userAgent;\n return isIe(userAgent) || isEdge(userAgent);\n}\n/**\n * This is intended to be used to compose event handlers\n * They are executed in order until one of them calls `event.isPropagationStopped()`.\n * Note that the check is done on the first invoke too,\n * meaning that if propagation was stopped before invoking the fns,\n * no handlers will be executed.\n *\n * @param {Function} fns the event hanlder functions\n * @return {Function} the event handler to add to an element\n */\n\nexport function composeEventHandlers() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (event) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n return fns.some(function (fn) {\n if (!isPropagationStopped(event) && fn) {\n fn.apply(void 0, [event].concat(args));\n }\n\n return isPropagationStopped(event);\n });\n };\n}\n/**\n * canUseFileSystemAccessAPI checks if the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API)\n * is supported by the browser.\n * @returns {boolean}\n */\n\nexport function canUseFileSystemAccessAPI() {\n return \"showOpenFilePicker\" in window;\n}\n/**\n * Convert the `{accept}` dropzone prop to the\n * `{types}` option for https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker\n *\n * @param {AcceptProp} accept\n * @returns {{accept: string[]}[]}\n */\n\nexport function pickerOptionsFromAccept(accept) {\n if (isDefined(accept)) {\n var acceptForPicker = Object.entries(accept).filter(function (_ref2) {\n var _ref3 = _slicedToArray(_ref2, 2),\n mimeType = _ref3[0],\n ext = _ref3[1];\n\n var ok = true;\n\n if (!isMIMEType(mimeType)) {\n console.warn(\"Skipped \\\"\".concat(mimeType, \"\\\" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.\"));\n ok = false;\n }\n\n if (!Array.isArray(ext) || !ext.every(isExt)) {\n console.warn(\"Skipped \\\"\".concat(mimeType, \"\\\" because an invalid file extension was provided.\"));\n ok = false;\n }\n\n return ok;\n }).reduce(function (agg, _ref4) {\n var _ref5 = _slicedToArray(_ref4, 2),\n mimeType = _ref5[0],\n ext = _ref5[1];\n\n return _objectSpread(_objectSpread({}, agg), {}, _defineProperty({}, mimeType, ext));\n }, {});\n return [{\n // description is required due to https://crbug.com/1264708\n description: \"Files\",\n accept: acceptForPicker\n }];\n }\n\n return accept;\n}\n/**\n * Convert the `{accept}` dropzone prop to an array of MIME types/extensions.\n * @param {AcceptProp} accept\n * @returns {string}\n */\n\nexport function acceptPropAsAcceptAttr(accept) {\n if (isDefined(accept)) {\n return Object.entries(accept).reduce(function (a, _ref6) {\n var _ref7 = _slicedToArray(_ref6, 2),\n mimeType = _ref7[0],\n ext = _ref7[1];\n\n return [].concat(_toConsumableArray(a), [mimeType], _toConsumableArray(ext));\n }, []) // Silently discard invalid entries as pickerOptionsFromAccept warns about these\n .filter(function (v) {\n return isMIMEType(v) || isExt(v);\n }).join(\",\");\n }\n\n return undefined;\n}\n/**\n * Check if v is an exception caused by aborting a request (e.g window.showOpenFilePicker()).\n *\n * See https://developer.mozilla.org/en-US/docs/Web/API/DOMException.\n * @param {any} v\n * @returns {boolean} True if v is an abort exception.\n */\n\nexport function isAbort(v) {\n return v instanceof DOMException && (v.name === \"AbortError\" || v.code === v.ABORT_ERR);\n}\n/**\n * Check if v is a security error.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/API/DOMException.\n * @param {any} v\n * @returns {boolean} True if v is a security error.\n */\n\nexport function isSecurityError(v) {\n return v instanceof DOMException && (v.name === \"SecurityError\" || v.code === v.SECURITY_ERR);\n}\n/**\n * Check if v is a MIME type string.\n *\n * See accepted format: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers.\n *\n * @param {string} v\n */\n\nexport function isMIMEType(v) {\n return v === \"audio/*\" || v === \"video/*\" || v === \"image/*\" || v === \"text/*\" || v === \"application/*\" || /\\w+\\/[-+.\\w]+/g.test(v);\n}\n/**\n * Check if v is a file extension.\n * @param {string} v\n */\n\nexport function isExt(v) {\n return /^.*\\.[\\w]+$/.test(v);\n}\n/**\n * @typedef {Object.<string, string[]>} AcceptProp\n */\n\n/**\n * @typedef {object} FileError\n * @property {string} message\n * @property {ErrorCode|string} code\n */\n\n/**\n * @typedef {\"file-invalid-type\"|\"file-too-large\"|\"file-too-small\"|\"too-many-files\"} ErrorCode\n */"],"names":["_toConsumableArray","arr","Array","isArray","_arrayLikeToArray","_arrayWithoutHoles","iter","Symbol","iterator","from","_iterableToArray","_unsupportedIterableToArray","TypeError","_nonIterableSpread","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","value","configurable","writable","_slicedToArray","_arrayWithHoles","_i","_s","_e","_arr","_n","_d","call","next","done","err","_iterableToArrayLimit","_nonIterableRest","o","minLen","n","prototype","toString","slice","constructor","name","test","len","arr2","accepts","_accepts","default","FILE_INVALID_TYPE","FILE_TOO_LARGE","FILE_TOO_SMALL","TOO_MANY_FILES","getInvalidTypeRejectionErr","acceptArr","undefined","split","msg","concat","join","code","message","getTooLargeRejectionErr","maxSize","getTooSmallRejectionErr","minSize","TOO_MANY_FILES_REJECTION","fileAccepted","file","accept","isAcceptable","type","fileMatchSize","isDefined","size","allFilesAccepted","_ref","files","multiple","maxFiles","validator","every","accepted","sizeMatch","customErrors","isPropagationStopped","event","cancelBubble","isEvtWithFiles","dataTransfer","some","types","onDocumentDragOver","preventDefault","isIeOrEdge","userAgent","window","navigator","indexOf","isIe","isEdge","composeEventHandlers","_len","fns","_key","_len2","args","_key2","fn","canUseFileSystemAccessAPI","pickerOptionsFromAccept","description","entries","_ref2","_ref3","mimeType","ext","ok","isMIMEType","console","warn","isExt","reduce","agg","_ref4","_ref5","acceptPropAsAcceptAttr","a","_ref6","_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AAIsH,GAAM,GAAI9G,EAAgB,CAAA,EAAIsG,EAAUC,GACjF,EAAG,CAAA,KAQE/C,CACT,CAOO,SAASyD,EAAuBzD,GACrC,GAAII,EAAUJ,GACZ,OAAOzE,OAAOoH,QAAQ3C,GAAQqD,OAAO,SAAUK,EAAGC,GAChD,IAAIC,EAAQ5G,EAAe2G,EAAO,GAC9Bb,EAAWc,EAAM,GACjBb,EAAMa,EAAM,GAEhB,MAAO,GAAGvE,OAAOhF,EAAmBqJ,GAAI,CAACZ,GAAWzI,EAAmB0I,GACzE,EAAG,IACFrH,OAAO,SAAUmI,GAChB,OAAOZ,EAAWY,IAAMT,EAAMS,EAChC,GAAGvE,KAAK,IAIZ,CASO,SAASwE,EAAQD,GACtB,OAAOA,aAAaE,eAA4B,eAAXF,EAAExF,MAAyBwF,EAAEtE,OAASsE,EAAEG,UAC/E,CASO,SAASC,EAAgBJ,GAC9B,OAAOA,aAAaE,eAA4B,kBAAXF,EAAExF,MAA4BwF,EAAEtE,OAASsE,EAAEK,aAClF,CASO,SAASjB,EAAWY,GACzB,MAAa,YAANA,GAAyB,YAANA,GAAyB,YAANA,GAAyB,WAANA,GAAwB,kBAANA,GAAyB,iBAAiBvF,KAAKuF,EACnI,CAMO,SAAST,EAAMS,GACpB,MAAO,cAAcvF,KAAKuF,EAC5B","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/react-dropzone/dist/es/utils/index.js"],"sourcesContent":["function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport _accepts from \"attr-accept\";\nvar accepts = typeof _accepts === \"function\" ? _accepts : _accepts.default; // Error codes\n\nexport var FILE_INVALID_TYPE = \"file-invalid-type\";\nexport var FILE_TOO_LARGE = \"file-too-large\";\nexport var FILE_TOO_SMALL = \"file-too-small\";\nexport var TOO_MANY_FILES = \"too-many-files\";\nexport var ErrorCode = {\n FileInvalidType: FILE_INVALID_TYPE,\n FileTooLarge: FILE_TOO_LARGE,\n FileTooSmall: FILE_TOO_SMALL,\n TooManyFiles: TOO_MANY_FILES\n};\n/**\n *\n * @param {string} accept\n */\n\nexport var getInvalidTypeRejectionErr = function getInvalidTypeRejectionErr() {\n var accept = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var acceptArr = accept.split(\",\");\n var msg = acceptArr.length > 1 ? \"one of \".concat(acceptArr.join(\", \")) : acceptArr[0];\n return {\n code: FILE_INVALID_TYPE,\n message: \"File type must be \".concat(msg)\n };\n};\nexport var getTooLargeRejectionErr = function getTooLargeRejectionErr(maxSize) {\n return {\n code: FILE_TOO_LARGE,\n message: \"File is larger than \".concat(maxSize, \" \").concat(maxSize === 1 ? \"byte\" : \"bytes\")\n };\n};\nexport var getTooSmallRejectionErr = function getTooSmallRejectionErr(minSize) {\n return {\n code: FILE_TOO_SMALL,\n message: \"File is smaller than \".concat(minSize, \" \").concat(minSize === 1 ? \"byte\" : \"bytes\")\n };\n};\nexport var TOO_MANY_FILES_REJECTION = {\n code: TOO_MANY_FILES,\n message: \"Too many files\"\n};\n/**\n * Check if file is accepted.\n *\n * Firefox versions prior to 53 return a bogus MIME type for every file drag,\n * so dragovers with that MIME type will always be accepted.\n *\n * @param {File} file\n * @param {string} accept\n * @returns\n */\n\nexport function fileAccepted(file, accept) {\n var isAcceptable = file.type === \"application/x-moz-file\" || accepts(file, accept);\n return [isAcceptable, isAcceptable ? null : getInvalidTypeRejectionErr(accept)];\n}\nexport function fileMatchSize(file, minSize, maxSize) {\n if (isDefined(file.size)) {\n if (isDefined(minSize) && isDefined(maxSize)) {\n if (file.size > maxSize) return [false, getTooLargeRejectionErr(maxSize)];\n if (file.size < minSize) return [false, getTooSmallRejectionErr(minSize)];\n } else if (isDefined(minSize) && file.size < minSize) return [false, getTooSmallRejectionErr(minSize)];else if (isDefined(maxSize) && file.size > maxSize) return [false, getTooLargeRejectionErr(maxSize)];\n }\n\n return [true, null];\n}\n\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\n/**\n *\n * @param {object} options\n * @param {File[]} options.files\n * @param {string} [options.accept]\n * @param {number} [options.minSize]\n * @param {number} [options.maxSize]\n * @param {boolean} [options.multiple]\n * @param {number} [options.maxFiles]\n * @param {(f: File) => FileError|FileError[]|null} [options.validator]\n * @returns\n */\n\n\nexport function allFilesAccepted(_ref) {\n var files = _ref.files,\n accept = _ref.accept,\n minSize = _ref.minSize,\n maxSize = _ref.maxSize,\n multiple = _ref.multiple,\n maxFiles = _ref.maxFiles,\n validator = _ref.validator;\n\n if (!multiple && files.length > 1 || multiple && maxFiles >= 1 && files.length > maxFiles) {\n return false;\n }\n\n return files.every(function (file) {\n var _fileAccepted = fileAccepted(file, accept),\n _fileAccepted2 = _slicedToArray(_fileAccepted, 1),\n accepted = _fileAccepted2[0];\n\n var _fileMatchSize = fileMatchSize(file, minSize, maxSize),\n _fileMatchSize2 = _slicedToArray(_fileMatchSize, 1),\n sizeMatch = _fileMatchSize2[0];\n\n var customErrors = validator ? validator(file) : null;\n return accepted && sizeMatch && !customErrors;\n });\n} // React's synthetic events has event.isPropagationStopped,\n// but to remain compatibility with other libs (Preact) fall back\n// to check event.cancelBubble\n\nexport function isPropagationStopped(event) {\n if (typeof event.isPropagationStopped === \"function\") {\n return event.isPropagationStopped();\n } else if (typeof event.cancelBubble !== \"undefined\") {\n return event.cancelBubble;\n }\n\n return false;\n}\nexport function isEvtWithFiles(event) {\n if (!event.dataTransfer) {\n return !!event.target && !!event.target.files;\n } // https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types\n // https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Recommended_drag_types#file\n\n\n return Array.prototype.some.call(event.dataTransfer.types, function (type) {\n return type === \"Files\" || type === \"application/x-moz-file\";\n });\n}\nexport function isKindFile(item) {\n return _typeof(item) === \"object\" && item !== null && item.kind === \"file\";\n} // allow the entire document to be a drag target\n\nexport function onDocumentDragOver(event) {\n event.preventDefault();\n}\n\nfunction isIe(userAgent) {\n return userAgent.indexOf(\"MSIE\") !== -1 || userAgent.indexOf(\"Trident/\") !== -1;\n}\n\nfunction isEdge(userAgent) {\n return userAgent.indexOf(\"Edge/\") !== -1;\n}\n\nexport function isIeOrEdge() {\n var userAgent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.navigator.userAgent;\n return isIe(userAgent) || isEdge(userAgent);\n}\n/**\n * This is intended to be used to compose event handlers\n * They are executed in order until one of them calls `event.isPropagationStopped()`.\n * Note that the check is done on the first invoke too,\n * meaning that if propagation was stopped before invoking the fns,\n * no handlers will be executed.\n *\n * @param {Function} fns the event hanlder functions\n * @return {Function} the event handler to add to an element\n */\n\nexport function composeEventHandlers() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (event) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n return fns.some(function (fn) {\n if (!isPropagationStopped(event) && fn) {\n fn.apply(void 0, [event].concat(args));\n }\n\n return isPropagationStopped(event);\n });\n };\n}\n/**\n * canUseFileSystemAccessAPI checks if the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API)\n * is supported by the browser.\n * @returns {boolean}\n */\n\nexport function canUseFileSystemAccessAPI() {\n return \"showOpenFilePicker\" in window;\n}\n/**\n * Convert the `{accept}` dropzone prop to the\n * `{types}` option for https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker\n *\n * @param {AcceptProp} accept\n * @returns {{accept: string[]}[]}\n */\n\nexport function pickerOptionsFromAccept(accept) {\n if (isDefined(accept)) {\n var acceptForPicker = Object.entries(accept).filter(function (_ref2) {\n var _ref3 = _slicedToArray(_ref2, 2),\n mimeType = _ref3[0],\n ext = _ref3[1];\n\n var ok = true;\n\n if (!isMIMEType(mimeType)) {\n console.warn(\"Skipped \\\"\".concat(mimeType, \"\\\" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.\"));\n ok = false;\n }\n\n if (!Array.isArray(ext) || !ext.every(isExt)) {\n console.warn(\"Skipped \\\"\".concat(mimeType, \"\\\" because an invalid file extension was provided.\"));\n ok = false;\n }\n\n return ok;\n }).reduce(function (agg, _ref4) {\n var _ref5 = _slicedToArray(_ref4, 2),\n mimeType = _ref5[0],\n ext = _ref5[1];\n\n return _objectSpread(_objectSpread({}, agg), {}, _defineProperty({}, mimeType, ext));\n }, {});\n return [{\n // description is required due to https://crbug.com/1264708\n description: \"Files\",\n accept: acceptForPicker\n }];\n }\n\n return accept;\n}\n/**\n * Convert the `{accept}` dropzone prop to an array of MIME types/extensions.\n * @param {AcceptProp} accept\n * @returns {string}\n */\n\nexport function acceptPropAsAcceptAttr(accept) {\n if (isDefined(accept)) {\n return Object.entries(accept).reduce(function (a, _ref6) {\n var _ref7 = _slicedToArray(_ref6, 2),\n mimeType = _ref7[0],\n ext = _ref7[1];\n\n return [].concat(_toConsumableArray(a), [mimeType], _toConsumableArray(ext));\n }, []) // Silently discard invalid entries as pickerOptionsFromAccept warns about these\n .filter(function (v) {\n return isMIMEType(v) || isExt(v);\n }).join(\",\");\n }\n\n return undefined;\n}\n/**\n * Check if v is an exception caused by aborting a request (e.g window.showOpenFilePicker()).\n *\n * See https://developer.mozilla.org/en-US/docs/Web/API/DOMException.\n * @param {any} v\n * @returns {boolean} True if v is an abort exception.\n */\n\nexport function isAbort(v) {\n return v instanceof DOMException && (v.name === \"AbortError\" || v.code === v.ABORT_ERR);\n}\n/**\n * Check if v is a security error.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/API/DOMException.\n * @param {any} v\n * @returns {boolean} True if v is a security error.\n */\n\nexport function isSecurityError(v) {\n return v instanceof DOMException && (v.name === \"SecurityError\" || v.code === v.SECURITY_ERR);\n}\n/**\n * Check if v is a MIME type string.\n *\n * See accepted format: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers.\n *\n * @param {string} v\n */\n\nexport function isMIMEType(v) {\n return v === \"audio/*\" || v === \"video/*\" || v === \"image/*\" || v === \"text/*\" || v === \"application/*\" || /\\w+\\/[-+.\\w]+/g.test(v);\n}\n/**\n * Check if v is a file extension.\n * @param {string} v\n */\n\nexport function isExt(v) {\n return /^.*\\.[\\w]+$/.test(v);\n}\n/**\n * @typedef {Object.<string, string[]>} AcceptProp\n */\n\n/**\n * @typedef {object} FileError\n * @property {string} message\n * @property {ErrorCode|string} code\n */\n\n/**\n * @typedef {\"file-invalid-type\"|\"file-too-large\"|\"file-too-small\"|\"too-many-files\"} ErrorCode\n */"],"names":["_toConsumableArray","arr","Array","isArray","_arrayLikeToArray","_arrayWithoutHoles","iter","Symbol","iterator","from","_iterableToArray","_unsupportedIterableToArray","TypeError","_nonIterableSpread","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","value","configurable","writable","_slicedToArray","_arrayWithHoles","_i","_s","_e","_arr","_n","_d","call","next","done","err","_iterableToArrayLimit","_nonIterableRest","o","minLen","n","prototype","toString","slice","constructor","name","test","len","arr2","accepts","_accepts","default","FILE_INVALID_TYPE","FILE_TOO_LARGE","FILE_TOO_SMALL","TOO_MANY_FILES","getInvalidTypeRejectionErr","acceptArr","undefined","split","msg","concat","join","code","message","getTooLargeRejectionErr","maxSize","getTooSmallRejectionErr","minSize","TOO_MANY_FILES_REJECTION","fileAccepted","file","accept","isAcceptable","type","fileMatchSize","isDefined","size","allFilesAccepted","_ref","files","multiple","maxFiles","validator","every","accepted","sizeMatch","customErrors","isPropagationStopped","event","cancelBubble","isEvtWithFiles","dataTransfer","some","types","onDocumentDragOver","preventDefault","isIeOrEdge","userAgent","window","navigator","indexOf","isIe","isEdge","composeEventHandlers","_len","fns","_key","_len2","args","_key2","fn","canUseFileSystemAccessAPI","pickerOptionsFromAccept","description","entries","_ref2","_ref3","mimeType","ext","ok","isMIMEType","console","warn","isExt","reduce","agg","_ref4","_ref5","acceptPropAsAcceptAttr","a","_ref6","_ref7","v","isAbort","DOMException","ABORT_ERR","isSecurityError","SECURITY_ERR"],"mappings":"iDAAA,SAASA,EAAmBC,GAAO,OAMnC,SAA4BA,GAAO,GAAIC,MAAMC,QAAQF,GAAM,OAAOG,EAAkBH,EAAM,CANhDI,CAAmBJ,IAI7D,SAA0BK,GAAQ,GAAsB,oBAAXC,QAAmD,MAAzBD,EAAKC,OAAOC,WAA2C,MAAtBF,EAAK,cAAuB,OAAOJ,MAAMO,KAAKH,EAAO,CAJxFI,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ACZ,GAAWzI,EAAmB0I,GACzE,EAAG,IACFrH,OAAO,SAAUmI,GAChB,OAAOZ,EAAWY,IAAMT,EAAMS,EAChC,GAAGvE,KAAK,IAIZ,CASO,SAASwE,EAAQD,GACtB,OAAOA,aAAaE,eAA4B,eAAXF,EAAExF,MAAyBwF,EAAEtE,OAASsE,EAAEG,UAC/E,CASO,SAASC,EAAgBJ,GAC9B,OAAOA,aAAaE,eAA4B,kBAAXF,EAAExF,MAA4BwF,EAAEtE,OAASsE,EAAEK,aAClF,CASO,SAASjB,EAAWY,GACzB,MAAa,YAANA,GAAyB,YAANA,GAAyB,YAANA,GAAyB,WAANA,GAAwB,kBAANA,GAAyB,iBAAiBvF,KAAKuF,EACnI,CAMO,SAAST,EAAMS,GACpB,MAAO,cAAcvF,KAAKuF,EAC5B","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{GenIcon as h}from"../lib/iconBase.js";import"../lib/iconContext.js";function a(a){return h({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zm-4.911 9.67h-.443v-.609h.422a.7.7 0 0 0 .322-.073.56.56 0 0 0 .22-.2.5.5 0 0 0 .076-.284.49.49 0 0 0-.176-.392.65.65 0 0 0-.442-.15.7.7 0 0 0-.252.041.6.6 0 0 0-.193.112.5.5 0 0 0-.179.349H7.71q.009-.235.102-.437.094-.202.27-.352.176-.152.428-.237.255-.085.583-.088.418-.003.723.132.304.135.472.372a.9.9 0 0 1 .173.539.83.83 0 0 1-.12.478.96.96 0 0 1-.619.439v.041a1 1 0 0 1 .718.434.9.9 0 0 1 .144.521q.003.285-.117.507a1.1 1.1 0 0 1-.329.378q-.21.152-.486.234-.273.08-.583.08-.451 0-.77-.153a1.2 1.2 0 0 1-.487-.41 1.1 1.1 0 0 1-.178-.563h.726a.46.46 0 0 0 .106.258.7.7 0 0 0 .249.179 1 1 0 0 0 .357.067.9.9 0 0 0 .384-.076.6.6 0 0 0 .252-.217.56.56 0 0 0 .088-.319.56.56 0 0 0-.334-.522.8.8 0 0 0-.372-.079ZM.706 15.925v-2.66h.038l.952 2.16h.516l.946-2.16h.038v2.66h.715v-3.999h-.8l-1.14 2.596h-.026l-1.14-2.596H0v4zm5.458-3.999h-1.6v4h.792v-1.342h.803q.43 0 .732-.173.304-.177.463-.475a1.4 1.4 0 0 0 .161-.677q0-.374-.158-.677a1.2 1.2 0 0 0-.46-.477 1.4 1.4 0 0 0-.733-.179m.545 1.333a.8.8 0 0 1-.085.381.57.57 0 0 1-.237.24.8.8 0 0 1-.375.082h-.66v-1.406h.66q.328 0 .513.182.184.181.184.521"},child:[]}]})(a)}function v(a){return h({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2v-1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM.706 15.849v-2.66h.038l.952 2.16h.516l.946-2.16h.038v2.66h.715V11.85h-.8l-1.14 2.596h-.026L.805 11.85H0v3.999zm5.278-3.999h-1.6v3.999h.792v-1.342h.803q.43 0 .732-.173.304-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477 1.4 1.4 0 0 0-.733-.179m.545 1.333a.8.8 0 0 1-.085.38.57.57 0 0 1-.237.241.8.8 0 0 1-.375.082h-.66V12.48h.66q.329 0 .513.181.184.183.184.522m1.505-.032q.4-.65.791-1.301h1.14v2.62h.49v.638h-.49v.741h-.741v-.741H7.287v-.648q.353-.66.747-1.31Zm-.029 1.298v.02h1.219v-2.021h-.041q-.302.477-.607.984-.3.507-.571 1.017"},child:[]}]})(a)}function l(a){return h({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803q.43 0 .732-.173.305-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38.57.57 0 0 1-.238.241.8.8 0 0 1-.375.082H.788V12.48h.66q.327 0 .512.181.185.183.185.522m1.217-1.333v3.999h1.46q.602 0 .998-.237a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084 0-.63-.196-1.075a1.43 1.43 0 0 0-.589-.68q-.396-.234-1.005-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592 1.1 1.1 0 0 1-.196.422.8.8 0 0 1-.334.252 1.3 1.3 0 0 1-.483.082h-.563zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638z"},child:[]}]})(a)}function t(a){return h({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-2v-1h2a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.928 15.849v-3.337h1.136v-.662H0v.662h1.134v3.337zm4.689-3.999h-.894L4.9 13.289h-.035l-.832-1.439h-.932l1.228 1.983-1.24 2.016h.862l.853-1.415h.035l.85 1.415h.907l-1.253-1.992zm1.93.662v3.337h-.794v-3.337H6.619v-.662h3.064v.662H8.546Z"},child:[]}]})(a)}export{a as BsFiletypeMp3,v as BsFiletypeMp4,l as BsFiletypePdf,t as BsFiletypeTxt};
2
+ //# sourceMappingURL=index.js.map