@bigbinary/neeto-team-members-frontend 5.0.28 → 5.0.30

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 (194) hide show
  1. package/app/javascript/src/translations/ar.json +6 -4
  2. package/app/javascript/src/translations/bg.json +6 -4
  3. package/app/javascript/src/translations/ca.json +8 -6
  4. package/app/javascript/src/translations/cs.json +4 -2
  5. package/app/javascript/src/translations/da.json +4 -2
  6. package/app/javascript/src/translations/de.json +4 -2
  7. package/app/javascript/src/translations/en.json +8 -6
  8. package/app/javascript/src/translations/es-MX.json +8 -6
  9. package/app/javascript/src/translations/es.json +8 -6
  10. package/app/javascript/src/translations/et.json +6 -4
  11. package/app/javascript/src/translations/fi.json +4 -2
  12. package/app/javascript/src/translations/fil.json +9 -7
  13. package/app/javascript/src/translations/fr.json +5 -3
  14. package/app/javascript/src/translations/he.json +5 -3
  15. package/app/javascript/src/translations/hi.json +7 -5
  16. package/app/javascript/src/translations/hr.json +4 -2
  17. package/app/javascript/src/translations/hu.json +4 -2
  18. package/app/javascript/src/translations/id.json +10 -8
  19. package/app/javascript/src/translations/it.json +8 -6
  20. package/app/javascript/src/translations/ja.json +6 -4
  21. package/app/javascript/src/translations/ko.json +4 -2
  22. package/app/javascript/src/translations/nl.json +7 -5
  23. package/app/javascript/src/translations/pl.json +5 -3
  24. package/app/javascript/src/translations/pt-BR.json +10 -8
  25. package/app/javascript/src/translations/pt.json +10 -8
  26. package/app/javascript/src/translations/ro.json +9 -7
  27. package/app/javascript/src/translations/ru.json +5 -3
  28. package/app/javascript/src/translations/sk.json +6 -4
  29. package/app/javascript/src/translations/sl.json +7 -5
  30. package/app/javascript/src/translations/sv.json +4 -2
  31. package/app/javascript/src/translations/th.json +5 -3
  32. package/app/javascript/src/translations/tr.json +10 -8
  33. package/app/javascript/src/translations/uk.json +7 -5
  34. package/app/javascript/src/translations/vi.json +7 -5
  35. package/app/javascript/src/translations/zh-CN.json +6 -4
  36. package/app/javascript/src/translations/zh-TW.json +5 -3
  37. package/dist/.ready +1 -1
  38. package/dist/ActionBlock-C9Iy0jGZ.js +53 -0
  39. package/dist/ActionBlock-C9Iy0jGZ.js.map +1 -0
  40. package/dist/ActionBlock-jgw1N-As.js +46 -0
  41. package/dist/ActionBlock-jgw1N-As.js.map +1 -0
  42. package/dist/Groups.js +1 -0
  43. package/dist/Groups.js.map +1 -1
  44. package/dist/InviteLinkError-AphtWLhe.js +63 -0
  45. package/dist/InviteLinkError-AphtWLhe.js.map +1 -0
  46. package/dist/InviteLinkError-C6OLGrD0.js +41 -0
  47. package/dist/InviteLinkError-C6OLGrD0.js.map +1 -0
  48. package/dist/ManageMember.js +3 -2
  49. package/dist/ManageMember.js.map +1 -1
  50. package/dist/MembersInvite.js +1 -38
  51. package/dist/MembersInvite.js.map +1 -1
  52. package/dist/Permissions-Bd6kLoPt.js +233 -0
  53. package/dist/Permissions-Bd6kLoPt.js.map +1 -0
  54. package/dist/Permissions-Bn862irP.js +244 -0
  55. package/dist/Permissions-Bn862irP.js.map +1 -0
  56. package/dist/Profile.js +125 -106
  57. package/dist/Profile.js.map +1 -1
  58. package/dist/{ProfileImage-Cpprgo-V.js → ProfileImage-QeSzsfzl.js} +1 -7
  59. package/dist/{ProfileImage-B_gfcE6b.js.map → ProfileImage-QeSzsfzl.js.map} +1 -1
  60. package/dist/{ProfileImage-B_gfcE6b.js → ProfileImage-Ypf3HreX.js} +2 -7
  61. package/dist/{ProfileImage-Cpprgo-V.js.map → ProfileImage-Ypf3HreX.js.map} +1 -1
  62. package/dist/Roles.js +3 -1398
  63. package/dist/Roles.js.map +1 -1
  64. package/dist/RolesRadioGroup-fBmS68cW.js +393 -0
  65. package/dist/RolesRadioGroup-fBmS68cW.js.map +1 -0
  66. package/dist/RolesRadioGroup-tSNC-Wtu.js +352 -0
  67. package/dist/RolesRadioGroup-tSNC-Wtu.js.map +1 -0
  68. package/dist/Select-CshPoN2b.js +119 -0
  69. package/dist/Select-CshPoN2b.js.map +1 -0
  70. package/dist/Select-DZ56UG-l.js +109 -0
  71. package/dist/Select-DZ56UG-l.js.map +1 -0
  72. package/dist/TeamMembers.js +3 -2
  73. package/dist/TeamMembers.js.map +1 -1
  74. package/dist/cjs/Groups.js +1 -0
  75. package/dist/cjs/Groups.js.map +1 -1
  76. package/dist/cjs/ManageMember.js +3 -2
  77. package/dist/cjs/ManageMember.js.map +1 -1
  78. package/dist/cjs/MembersInvite.js +2 -39
  79. package/dist/cjs/MembersInvite.js.map +1 -1
  80. package/dist/cjs/Profile.js +125 -104
  81. package/dist/cjs/Profile.js.map +1 -1
  82. package/dist/cjs/Roles.js +6 -1402
  83. package/dist/cjs/Roles.js.map +1 -1
  84. package/dist/cjs/TeamMembers.js +3 -2
  85. package/dist/cjs/TeamMembers.js.map +1 -1
  86. package/dist/cjs/index.js +6 -2
  87. package/dist/cjs/index.js.map +1 -1
  88. package/dist/cjs/utils.js +3 -512
  89. package/dist/cjs/utils.js.map +1 -1
  90. package/dist/cjs/v2/Groups.js +781 -0
  91. package/dist/cjs/v2/Groups.js.map +1 -0
  92. package/dist/cjs/v2/ManageMember.js +49 -0
  93. package/dist/cjs/v2/ManageMember.js.map +1 -0
  94. package/dist/cjs/v2/MembersDropdown.js +200 -0
  95. package/dist/cjs/v2/MembersDropdown.js.map +1 -0
  96. package/dist/cjs/v2/MembersInvite.js +270 -0
  97. package/dist/cjs/v2/MembersInvite.js.map +1 -0
  98. package/dist/cjs/v2/Permissions.js +19 -0
  99. package/dist/cjs/v2/Permissions.js.map +1 -0
  100. package/dist/cjs/v2/Profile.js +686 -0
  101. package/dist/cjs/v2/Profile.js.map +1 -0
  102. package/dist/cjs/v2/Roles.js +1258 -0
  103. package/dist/cjs/v2/Roles.js.map +1 -0
  104. package/dist/cjs/v2/RolesRadioGroup.js +26 -0
  105. package/dist/cjs/v2/RolesRadioGroup.js.map +1 -0
  106. package/dist/cjs/v2/TeamMembers.js +949 -0
  107. package/dist/cjs/v2/TeamMembers.js.map +1 -0
  108. package/dist/cjs/v2/TeamsAndMembersDropdown.js +438 -0
  109. package/dist/cjs/v2/TeamsAndMembersDropdown.js.map +1 -0
  110. package/dist/cjs/v2/TeamsDropdown.js +112 -0
  111. package/dist/cjs/v2/TeamsDropdown.js.map +1 -0
  112. package/dist/cjs/v2/constants.js +28 -0
  113. package/dist/cjs/v2/constants.js.map +1 -0
  114. package/dist/cjs/v2/hooks.js +33 -0
  115. package/dist/cjs/v2/hooks.js.map +1 -0
  116. package/dist/cjs/v2/utils.js +34 -0
  117. package/dist/cjs/v2/utils.js.map +1 -0
  118. package/dist/constants-B1L6arSR.js +49 -0
  119. package/dist/constants-B1L6arSR.js.map +1 -0
  120. package/dist/constants-CMNbKvoF.js +61 -0
  121. package/dist/constants-CMNbKvoF.js.map +1 -0
  122. package/dist/index-BkEJugj1.js +184 -0
  123. package/dist/index-BkEJugj1.js.map +1 -0
  124. package/dist/index-C6ph58Vg.js +169 -0
  125. package/dist/index-C6ph58Vg.js.map +1 -0
  126. package/dist/{index-C26Vdbk5.js → index-DFFRcH_S.js} +2 -2
  127. package/dist/{index-C26Vdbk5.js.map → index-DFFRcH_S.js.map} +1 -1
  128. package/dist/{index-CeAVMlhg.js → index-DTONHIze.js} +2 -2
  129. package/dist/{index-CeAVMlhg.js.map → index-DTONHIze.js.map} +1 -1
  130. package/dist/index-DeYRFiJy.js +119 -0
  131. package/dist/index-DeYRFiJy.js.map +1 -0
  132. package/dist/index-DgxgaCRt.js +1317 -0
  133. package/dist/index-DgxgaCRt.js.map +1 -0
  134. package/dist/index-DqqXniGT.js +126 -0
  135. package/dist/index-DqqXniGT.js.map +1 -0
  136. package/dist/index-Dus0cbgo.js +1407 -0
  137. package/dist/index-Dus0cbgo.js.map +1 -0
  138. package/dist/index-aJIUa1Bd.js +1342 -0
  139. package/dist/index-aJIUa1Bd.js.map +1 -0
  140. package/dist/index-ureO6U2w.js +1401 -0
  141. package/dist/index-ureO6U2w.js.map +1 -0
  142. package/dist/index.js +6 -2
  143. package/dist/index.js.map +1 -1
  144. package/dist/pluralize-BoSEafiC.js +514 -0
  145. package/dist/pluralize-BoSEafiC.js.map +1 -0
  146. package/dist/pluralize-CFlSRsRn.js +516 -0
  147. package/dist/pluralize-CFlSRsRn.js.map +1 -0
  148. package/dist/queryClient-B-JFya8X.js +16 -0
  149. package/dist/queryClient-B-JFya8X.js.map +1 -0
  150. package/dist/queryClient-BncpekSV.js +14 -0
  151. package/dist/queryClient-BncpekSV.js.map +1 -0
  152. package/dist/useCountries-CQdvJz0R.js +249 -0
  153. package/dist/useCountries-CQdvJz0R.js.map +1 -0
  154. package/dist/useCountries-DePOPtue.js +235 -0
  155. package/dist/useCountries-DePOPtue.js.map +1 -0
  156. package/dist/useTeamsApi-CWp4G7JZ.js +179 -0
  157. package/dist/useTeamsApi-CWp4G7JZ.js.map +1 -0
  158. package/dist/useTeamsApi-Ch5sHR2_.js +197 -0
  159. package/dist/useTeamsApi-Ch5sHR2_.js.map +1 -0
  160. package/dist/utils.js +2 -511
  161. package/dist/utils.js.map +1 -1
  162. package/dist/v2/Groups.js +749 -0
  163. package/dist/v2/Groups.js.map +1 -0
  164. package/dist/v2/ManageMember.js +43 -0
  165. package/dist/v2/ManageMember.js.map +1 -0
  166. package/dist/v2/MembersDropdown.js +193 -0
  167. package/dist/v2/MembersDropdown.js.map +1 -0
  168. package/dist/v2/MembersInvite.js +242 -0
  169. package/dist/v2/MembersInvite.js.map +1 -0
  170. package/dist/v2/Permissions.js +13 -0
  171. package/dist/v2/Permissions.js.map +1 -0
  172. package/dist/v2/Profile.js +656 -0
  173. package/dist/v2/Profile.js.map +1 -0
  174. package/dist/v2/Roles.js +1242 -0
  175. package/dist/v2/Roles.js.map +1 -0
  176. package/dist/v2/RolesRadioGroup.js +20 -0
  177. package/dist/v2/RolesRadioGroup.js.map +1 -0
  178. package/dist/v2/TeamMembers.js +937 -0
  179. package/dist/v2/TeamMembers.js.map +1 -0
  180. package/dist/v2/TeamsAndMembersDropdown.js +430 -0
  181. package/dist/v2/TeamsAndMembersDropdown.js.map +1 -0
  182. package/dist/v2/TeamsDropdown.js +106 -0
  183. package/dist/v2/TeamsDropdown.js.map +1 -0
  184. package/dist/v2/constants.js +21 -0
  185. package/dist/v2/constants.js.map +1 -0
  186. package/dist/v2/hooks.js +29 -0
  187. package/dist/v2/hooks.js.map +1 -0
  188. package/dist/v2/utils.js +30 -0
  189. package/dist/v2/utils.js.map +1 -0
  190. package/dist/withReactQuery-CSuiy5RK.js +20 -0
  191. package/dist/withReactQuery-CSuiy5RK.js.map +1 -0
  192. package/dist/withReactQuery-DvSkXhEx.js +26 -0
  193. package/dist/withReactQuery-DvSkXhEx.js.map +1 -0
  194. package/package.json +31 -17
@@ -0,0 +1,1407 @@
1
+ 'use strict';
2
+
3
+ var _commonjsHelpers = require('./_commonjsHelpers-BJu3ubxk.js');
4
+ var React = require('react');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var React__default = /*#__PURE__*/_interopDefault(React);
9
+
10
+ var dist = {exports: {}};
11
+
12
+ (function (module, exports$1) {
13
+ (function webpackUniversalModuleDefinition(root, factory) {
14
+ module.exports = factory(React__default.default);
15
+ })(_commonjsHelpers.commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_4__) {
16
+ return /******/ (function(modules) { // webpackBootstrap
17
+ /******/ // The module cache
18
+ /******/ var installedModules = {};
19
+ /******/
20
+ /******/ // The require function
21
+ /******/ function __webpack_require__(moduleId) {
22
+ /******/
23
+ /******/ // Check if module is in cache
24
+ /******/ if(installedModules[moduleId]) {
25
+ /******/ return installedModules[moduleId].exports;
26
+ /******/ }
27
+ /******/ // Create a new module (and put it into the cache)
28
+ /******/ var module = installedModules[moduleId] = {
29
+ /******/ i: moduleId,
30
+ /******/ l: false,
31
+ /******/ exports: {}
32
+ /******/ };
33
+ /******/
34
+ /******/ // Execute the module function
35
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
36
+ /******/
37
+ /******/ // Flag the module as loaded
38
+ /******/ module.l = true;
39
+ /******/
40
+ /******/ // Return the exports of the module
41
+ /******/ return module.exports;
42
+ /******/ }
43
+ /******/
44
+ /******/
45
+ /******/ // expose the modules object (__webpack_modules__)
46
+ /******/ __webpack_require__.m = modules;
47
+ /******/
48
+ /******/ // expose the module cache
49
+ /******/ __webpack_require__.c = installedModules;
50
+ /******/
51
+ /******/ // identity function for calling harmony imports with the correct context
52
+ /******/ __webpack_require__.i = function(value) { return value; };
53
+ /******/
54
+ /******/ // define getter function for harmony exports
55
+ /******/ __webpack_require__.d = function(exports$1, name, getter) {
56
+ /******/ if(!__webpack_require__.o(exports$1, name)) {
57
+ /******/ Object.defineProperty(exports$1, name, {
58
+ /******/ configurable: false,
59
+ /******/ enumerable: true,
60
+ /******/ get: getter
61
+ /******/ });
62
+ /******/ }
63
+ /******/ };
64
+ /******/
65
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
66
+ /******/ __webpack_require__.n = function(module) {
67
+ /******/ var getter = module && module.__esModule ?
68
+ /******/ function getDefault() { return module['default']; } :
69
+ /******/ function getModuleExports() { return module; };
70
+ /******/ __webpack_require__.d(getter, 'a', getter);
71
+ /******/ return getter;
72
+ /******/ };
73
+ /******/
74
+ /******/ // Object.prototype.hasOwnProperty.call
75
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
76
+ /******/
77
+ /******/ // __webpack_public_path__
78
+ /******/ __webpack_require__.p = "";
79
+ /******/
80
+ /******/ // Load entry module and return exports
81
+ /******/ return __webpack_require__(__webpack_require__.s = 10);
82
+ /******/ })
83
+ /************************************************************************/
84
+ /******/ ([
85
+ /* 0 */
86
+ /***/ (function(module, exports$1) {
87
+
88
+ // shim for using process in browser
89
+ var process = module.exports = {};
90
+
91
+ // cached from whatever global is present so that test runners that stub it
92
+ // don't break things. But we need to wrap it in a try catch in case it is
93
+ // wrapped in strict mode code which doesn't define any globals. It's inside a
94
+ // function because try/catches deoptimize in certain engines.
95
+
96
+ var cachedSetTimeout;
97
+ var cachedClearTimeout;
98
+
99
+ function defaultSetTimout() {
100
+ throw new Error('setTimeout has not been defined');
101
+ }
102
+ function defaultClearTimeout () {
103
+ throw new Error('clearTimeout has not been defined');
104
+ }
105
+ (function () {
106
+ try {
107
+ if (typeof setTimeout === 'function') {
108
+ cachedSetTimeout = setTimeout;
109
+ } else {
110
+ cachedSetTimeout = defaultSetTimout;
111
+ }
112
+ } catch (e) {
113
+ cachedSetTimeout = defaultSetTimout;
114
+ }
115
+ try {
116
+ if (typeof clearTimeout === 'function') {
117
+ cachedClearTimeout = clearTimeout;
118
+ } else {
119
+ cachedClearTimeout = defaultClearTimeout;
120
+ }
121
+ } catch (e) {
122
+ cachedClearTimeout = defaultClearTimeout;
123
+ }
124
+ } ());
125
+ function runTimeout(fun) {
126
+ if (cachedSetTimeout === setTimeout) {
127
+ //normal enviroments in sane situations
128
+ return setTimeout(fun, 0);
129
+ }
130
+ // if setTimeout wasn't available but was latter defined
131
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
132
+ cachedSetTimeout = setTimeout;
133
+ return setTimeout(fun, 0);
134
+ }
135
+ try {
136
+ // when when somebody has screwed with setTimeout but no I.E. maddness
137
+ return cachedSetTimeout(fun, 0);
138
+ } catch(e){
139
+ try {
140
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
141
+ return cachedSetTimeout.call(null, fun, 0);
142
+ } catch(e){
143
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
144
+ return cachedSetTimeout.call(this, fun, 0);
145
+ }
146
+ }
147
+
148
+
149
+ }
150
+ function runClearTimeout(marker) {
151
+ if (cachedClearTimeout === clearTimeout) {
152
+ //normal enviroments in sane situations
153
+ return clearTimeout(marker);
154
+ }
155
+ // if clearTimeout wasn't available but was latter defined
156
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
157
+ cachedClearTimeout = clearTimeout;
158
+ return clearTimeout(marker);
159
+ }
160
+ try {
161
+ // when when somebody has screwed with setTimeout but no I.E. maddness
162
+ return cachedClearTimeout(marker);
163
+ } catch (e){
164
+ try {
165
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
166
+ return cachedClearTimeout.call(null, marker);
167
+ } catch (e){
168
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
169
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
170
+ return cachedClearTimeout.call(this, marker);
171
+ }
172
+ }
173
+
174
+
175
+
176
+ }
177
+ var queue = [];
178
+ var draining = false;
179
+ var currentQueue;
180
+ var queueIndex = -1;
181
+
182
+ function cleanUpNextTick() {
183
+ if (!draining || !currentQueue) {
184
+ return;
185
+ }
186
+ draining = false;
187
+ if (currentQueue.length) {
188
+ queue = currentQueue.concat(queue);
189
+ } else {
190
+ queueIndex = -1;
191
+ }
192
+ if (queue.length) {
193
+ drainQueue();
194
+ }
195
+ }
196
+
197
+ function drainQueue() {
198
+ if (draining) {
199
+ return;
200
+ }
201
+ var timeout = runTimeout(cleanUpNextTick);
202
+ draining = true;
203
+
204
+ var len = queue.length;
205
+ while(len) {
206
+ currentQueue = queue;
207
+ queue = [];
208
+ while (++queueIndex < len) {
209
+ if (currentQueue) {
210
+ currentQueue[queueIndex].run();
211
+ }
212
+ }
213
+ queueIndex = -1;
214
+ len = queue.length;
215
+ }
216
+ currentQueue = null;
217
+ draining = false;
218
+ runClearTimeout(timeout);
219
+ }
220
+
221
+ process.nextTick = function (fun) {
222
+ var args = new Array(arguments.length - 1);
223
+ if (arguments.length > 1) {
224
+ for (var i = 1; i < arguments.length; i++) {
225
+ args[i - 1] = arguments[i];
226
+ }
227
+ }
228
+ queue.push(new Item(fun, args));
229
+ if (queue.length === 1 && !draining) {
230
+ runTimeout(drainQueue);
231
+ }
232
+ };
233
+
234
+ // v8 likes predictible objects
235
+ function Item(fun, array) {
236
+ this.fun = fun;
237
+ this.array = array;
238
+ }
239
+ Item.prototype.run = function () {
240
+ this.fun.apply(null, this.array);
241
+ };
242
+ process.title = 'browser';
243
+ process.browser = true;
244
+ process.env = {};
245
+ process.argv = [];
246
+ process.version = ''; // empty string to avoid regexp issues
247
+ process.versions = {};
248
+
249
+ function noop() {}
250
+
251
+ process.on = noop;
252
+ process.addListener = noop;
253
+ process.once = noop;
254
+ process.off = noop;
255
+ process.removeListener = noop;
256
+ process.removeAllListeners = noop;
257
+ process.emit = noop;
258
+ process.prependListener = noop;
259
+ process.prependOnceListener = noop;
260
+
261
+ process.listeners = function (name) { return [] };
262
+
263
+ process.binding = function (name) {
264
+ throw new Error('process.binding is not supported');
265
+ };
266
+
267
+ process.cwd = function () { return '/' };
268
+ process.chdir = function (dir) {
269
+ throw new Error('process.chdir is not supported');
270
+ };
271
+ process.umask = function() { return 0; };
272
+
273
+
274
+ /***/ }),
275
+ /* 1 */
276
+ /***/ (function(module, exports$1, __webpack_require__) {
277
+
278
+
279
+ /**
280
+ * Copyright (c) 2013-present, Facebook, Inc.
281
+ * All rights reserved.
282
+ *
283
+ * This source code is licensed under the BSD-style license found in the
284
+ * LICENSE file in the root directory of this source tree. An additional grant
285
+ * of patent rights can be found in the PATENTS file in the same directory.
286
+ *
287
+ *
288
+ */
289
+
290
+ function makeEmptyFunction(arg) {
291
+ return function () {
292
+ return arg;
293
+ };
294
+ }
295
+
296
+ /**
297
+ * This function accepts and discards inputs; it has no side effects. This is
298
+ * primarily useful idiomatically for overridable function endpoints which
299
+ * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
300
+ */
301
+ var emptyFunction = function emptyFunction() {};
302
+
303
+ emptyFunction.thatReturns = makeEmptyFunction;
304
+ emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
305
+ emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
306
+ emptyFunction.thatReturnsNull = makeEmptyFunction(null);
307
+ emptyFunction.thatReturnsThis = function () {
308
+ return this;
309
+ };
310
+ emptyFunction.thatReturnsArgument = function (arg) {
311
+ return arg;
312
+ };
313
+
314
+ module.exports = emptyFunction;
315
+
316
+ /***/ }),
317
+ /* 2 */
318
+ /***/ (function(module, exports$1, __webpack_require__) {
319
+ /* WEBPACK VAR INJECTION */(function(process) {/**
320
+ * Copyright (c) 2013-present, Facebook, Inc.
321
+ * All rights reserved.
322
+ *
323
+ * This source code is licensed under the BSD-style license found in the
324
+ * LICENSE file in the root directory of this source tree. An additional grant
325
+ * of patent rights can be found in the PATENTS file in the same directory.
326
+ *
327
+ */
328
+
329
+ function invariant(condition, format, a, b, c, d, e, f) {
330
+
331
+ if (!condition) {
332
+ var error;
333
+ if (format === undefined) {
334
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
335
+ } else {
336
+ var args = [a, b, c, d, e, f];
337
+ var argIndex = 0;
338
+ error = new Error(format.replace(/%s/g, function () {
339
+ return args[argIndex++];
340
+ }));
341
+ error.name = 'Invariant Violation';
342
+ }
343
+
344
+ error.framesToPop = 1; // we don't care about invariant's own frame
345
+ throw error;
346
+ }
347
+ }
348
+
349
+ module.exports = invariant;
350
+ /* WEBPACK VAR INJECTION */}.call(exports$1, __webpack_require__(0)));
351
+
352
+ /***/ }),
353
+ /* 3 */
354
+ /***/ (function(module, exports$1, __webpack_require__) {
355
+ /**
356
+ * Copyright 2013-present, Facebook, Inc.
357
+ * All rights reserved.
358
+ *
359
+ * This source code is licensed under the BSD-style license found in the
360
+ * LICENSE file in the root directory of this source tree. An additional grant
361
+ * of patent rights can be found in the PATENTS file in the same directory.
362
+ */
363
+
364
+
365
+
366
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
367
+
368
+ module.exports = ReactPropTypesSecret;
369
+
370
+
371
+ /***/ }),
372
+ /* 4 */
373
+ /***/ (function(module, exports$1) {
374
+
375
+ module.exports = __WEBPACK_EXTERNAL_MODULE_4__;
376
+
377
+ /***/ }),
378
+ /* 5 */
379
+ /***/ (function(module, exports$1, __webpack_require__) {
380
+
381
+
382
+ Object.defineProperty(exports$1, "__esModule", {
383
+ value: true
384
+ });
385
+
386
+ var _react = __webpack_require__(4);
387
+
388
+ var _react2 = _interopRequireDefault(_react);
389
+
390
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
391
+
392
+ var ScrollSyncContext = _react2.default.createContext({
393
+ registerPane: function registerPane() {},
394
+ unregisterPane: function unregisterPane() {}
395
+ });
396
+
397
+ exports$1.default = ScrollSyncContext;
398
+ module.exports = exports$1['default'];
399
+
400
+ /***/ }),
401
+ /* 6 */
402
+ /***/ (function(module, exports$1, __webpack_require__) {
403
+ /* WEBPACK VAR INJECTION */(function(process) {/**
404
+ * Copyright 2014-2015, Facebook, Inc.
405
+ * All rights reserved.
406
+ *
407
+ * This source code is licensed under the BSD-style license found in the
408
+ * LICENSE file in the root directory of this source tree. An additional grant
409
+ * of patent rights can be found in the PATENTS file in the same directory.
410
+ *
411
+ */
412
+
413
+
414
+
415
+ var emptyFunction = __webpack_require__(1);
416
+
417
+ /**
418
+ * Similar to invariant but only logs a warning if the condition is not met.
419
+ * This can be used to log issues in development environments in critical
420
+ * paths. Removing the logging code for production environments will keep the
421
+ * same logic and follow the same code paths.
422
+ */
423
+
424
+ var warning = emptyFunction;
425
+
426
+ module.exports = warning;
427
+ /* WEBPACK VAR INJECTION */}.call(exports$1, __webpack_require__(0)));
428
+
429
+ /***/ }),
430
+ /* 7 */
431
+ /***/ (function(module, exports$1, __webpack_require__) {
432
+
433
+ /* WEBPACK VAR INJECTION */(function(process) {/**
434
+ * Copyright 2013-present, Facebook, Inc.
435
+ * All rights reserved.
436
+ *
437
+ * This source code is licensed under the BSD-style license found in the
438
+ * LICENSE file in the root directory of this source tree. An additional grant
439
+ * of patent rights can be found in the PATENTS file in the same directory.
440
+ */
441
+
442
+ {
443
+ // By explicitly using `prop-types` you are opting into new production behavior.
444
+ // http://fb.me/prop-types-in-prod
445
+ module.exports = __webpack_require__(12)();
446
+ }
447
+
448
+ /* WEBPACK VAR INJECTION */}.call(exports$1, __webpack_require__(0)));
449
+
450
+ /***/ }),
451
+ /* 8 */
452
+ /***/ (function(module, exports$1, __webpack_require__) {
453
+
454
+
455
+ Object.defineProperty(exports$1, "__esModule", {
456
+ value: true
457
+ });
458
+
459
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
460
+
461
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
462
+
463
+ var _react = __webpack_require__(4);
464
+
465
+ var _react2 = _interopRequireDefault(_react);
466
+
467
+ var _propTypes = __webpack_require__(7);
468
+
469
+ var _propTypes2 = _interopRequireDefault(_propTypes);
470
+
471
+ var _ScrollSyncContext = __webpack_require__(5);
472
+
473
+ var _ScrollSyncContext2 = _interopRequireDefault(_ScrollSyncContext);
474
+
475
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
476
+
477
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
478
+
479
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
480
+
481
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
482
+
483
+ /**
484
+ * ScrollSync provider component
485
+ *
486
+ */
487
+
488
+ var ScrollSync = function (_Component) {
489
+ _inherits(ScrollSync, _Component);
490
+
491
+ function ScrollSync() {
492
+ var _ref;
493
+
494
+ var _temp, _this, _ret;
495
+
496
+ _classCallCheck(this, ScrollSync);
497
+
498
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
499
+ args[_key] = arguments[_key];
500
+ }
501
+
502
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ScrollSync.__proto__ || Object.getPrototypeOf(ScrollSync)).call.apply(_ref, [this].concat(args))), _this), _this.panes = {}, _this.registerPane = function (node, groups) {
503
+ groups.forEach(function (group) {
504
+ if (!_this.panes[group]) {
505
+ _this.panes[group] = [];
506
+ }
507
+
508
+ if (!_this.findPane(node, group)) {
509
+ if (_this.panes[group].length > 0) {
510
+ _this.syncScrollPosition(_this.panes[group][0], node);
511
+ }
512
+ _this.panes[group].push(node);
513
+ }
514
+ });
515
+ _this.addEvents(node);
516
+ }, _this.unregisterPane = function (node, groups) {
517
+ groups.forEach(function (group) {
518
+ if (_this.findPane(node, group)) {
519
+ _this.removeEvents(node);
520
+ _this.panes[group].splice(_this.panes[group].indexOf(node), 1);
521
+ }
522
+ });
523
+ }, _this.addEvents = function (node) {
524
+ /* For some reason element.addEventListener doesnt work with document.body */
525
+ var nodeGroups = [];
526
+ if (_this.panes && _typeof(_this.panes) === 'object') {
527
+ Object.keys(_this.panes).forEach(function (pane) {
528
+ if (_this.findNode(_this.panes[pane], node)) nodeGroups.push(pane);
529
+ });
530
+ }
531
+ node.onscroll = _this.handlePaneScroll.bind(_this, node, nodeGroups); // eslint-disable-line
532
+ }, _this.removeEvents = function (node) {
533
+ /* For some reason element.removeEventListener doesnt work with document.body */
534
+ node.onscroll = null; // eslint-disable-line
535
+ }, _this.findPane = function (node, group) {
536
+ if (!_this.panes[group]) {
537
+ return false;
538
+ }
539
+
540
+ return _this.panes[group].find(function (pane) {
541
+ return pane === node;
542
+ });
543
+ }, _this.findNode = function (pane, node) {
544
+ if (!pane) {
545
+ return false;
546
+ }
547
+
548
+ return pane.find(function (savedNode) {
549
+ return savedNode === node;
550
+ });
551
+ }, _this.handlePaneScroll = function (node, groups) {
552
+ if (!_this.props.enabled) {
553
+ return;
554
+ }
555
+
556
+ window.requestAnimationFrame(function () {
557
+ _this.syncScrollPositions(node, groups);
558
+ });
559
+ }, _this.syncScrollPositions = function (scrolledPane, groups) {
560
+ groups.forEach(function (group) {
561
+ _this.panes[group].forEach(function (pane) {
562
+ /* For all panes beside the currently scrolling one */
563
+ if (scrolledPane !== pane) {
564
+ /* Remove event listeners from the node that we'll manipulate */
565
+ _this.removeEvents(pane, group);
566
+ _this.syncScrollPosition(scrolledPane, pane);
567
+ /* Re-attach event listeners after we're done scrolling */
568
+ window.requestAnimationFrame(function () {
569
+ _this.addEvents(pane);
570
+ });
571
+ }
572
+ });
573
+ });
574
+ if (_this.props.onSync) _this.props.onSync(scrolledPane);
575
+ }, _temp), _possibleConstructorReturn(_this, _ret);
576
+ }
577
+
578
+ _createClass(ScrollSync, [{
579
+ key: 'getContextValue',
580
+ value: function getContextValue() {
581
+ return {
582
+ registerPane: this.registerPane,
583
+ unregisterPane: this.unregisterPane
584
+ };
585
+ }
586
+ }, {
587
+ key: 'syncScrollPosition',
588
+ value: function syncScrollPosition(scrolledPane, pane) {
589
+ var scrollTop = scrolledPane.scrollTop,
590
+ scrollHeight = scrolledPane.scrollHeight,
591
+ clientHeight = scrolledPane.clientHeight,
592
+ scrollLeft = scrolledPane.scrollLeft,
593
+ scrollWidth = scrolledPane.scrollWidth,
594
+ clientWidth = scrolledPane.clientWidth;
595
+
596
+
597
+ var scrollTopOffset = scrollHeight - clientHeight;
598
+ var scrollLeftOffset = scrollWidth - clientWidth;
599
+
600
+ var _props = this.props,
601
+ proportional = _props.proportional,
602
+ vertical = _props.vertical,
603
+ horizontal = _props.horizontal;
604
+
605
+ /* Calculate the actual pane height */
606
+
607
+ var paneHeight = pane.scrollHeight - clientHeight;
608
+ var paneWidth = pane.scrollWidth - clientWidth;
609
+ /* Adjust the scrollTop position of it accordingly */
610
+ if (vertical && scrollTopOffset > 0) {
611
+ pane.scrollTop = proportional ? paneHeight * scrollTop / scrollTopOffset : scrollTop; // eslint-disable-line
612
+ }
613
+ if (horizontal && scrollLeftOffset > 0) {
614
+ pane.scrollLeft = proportional ? paneWidth * scrollLeft / scrollLeftOffset : scrollLeft; // eslint-disable-line
615
+ }
616
+ }
617
+ }, {
618
+ key: 'render',
619
+ value: function render() {
620
+ return _react2.default.createElement(
621
+ _ScrollSyncContext2.default.Provider,
622
+ { value: this.getContextValue() },
623
+ _react2.default.Children.only(this.props.children)
624
+ );
625
+ }
626
+ }]);
627
+
628
+ return ScrollSync;
629
+ }(_react.Component);
630
+
631
+ ScrollSync.propTypes = {
632
+ /**
633
+ * Callback to be invoked any time synchronization happens
634
+ *
635
+ * @param {Element} el The element that has received the scroll event
636
+ */
637
+ onSync: _propTypes2.default.func,
638
+ children: _propTypes2.default.element.isRequired,
639
+ proportional: _propTypes2.default.bool,
640
+ vertical: _propTypes2.default.bool,
641
+ horizontal: _propTypes2.default.bool,
642
+ enabled: _propTypes2.default.bool
643
+ };
644
+ ScrollSync.defaultProps = {
645
+ proportional: true,
646
+ vertical: true,
647
+ horizontal: true,
648
+ enabled: true
649
+ };
650
+ exports$1.default = ScrollSync;
651
+ module.exports = exports$1['default'];
652
+
653
+ /***/ }),
654
+ /* 9 */
655
+ /***/ (function(module, exports$1, __webpack_require__) {
656
+
657
+
658
+ Object.defineProperty(exports$1, "__esModule", {
659
+ value: true
660
+ });
661
+
662
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
663
+
664
+ var _react = __webpack_require__(4);
665
+
666
+ var _propTypes = __webpack_require__(7);
667
+
668
+ var _propTypes2 = _interopRequireDefault(_propTypes);
669
+
670
+ var _ScrollSyncContext = __webpack_require__(5);
671
+
672
+ var _ScrollSyncContext2 = _interopRequireDefault(_ScrollSyncContext);
673
+
674
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
675
+
676
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
677
+
678
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
679
+
680
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/no-find-dom-node: 0 */
681
+
682
+ /**
683
+ * ScrollSyncPane Component
684
+ *
685
+ * Wrap your content in it to keep its scroll position in sync with other panes
686
+ *
687
+ * @example ./example.md
688
+ */
689
+
690
+ var ScrollSyncPane = function (_Component) {
691
+ _inherits(ScrollSyncPane, _Component);
692
+
693
+ function ScrollSyncPane(props) {
694
+ _classCallCheck(this, ScrollSyncPane);
695
+
696
+ var _this = _possibleConstructorReturn(this, (ScrollSyncPane.__proto__ || Object.getPrototypeOf(ScrollSyncPane)).call(this, props));
697
+
698
+ _this.toArray = function (groups) {
699
+ return [].concat(groups);
700
+ };
701
+
702
+ _this.updateNode = function () {
703
+ if (_this.props.attachTo) {
704
+ _this.node = _this.props.attachTo.current;
705
+ } else {
706
+ _this.node = _this.childRef.current;
707
+ }
708
+ };
709
+
710
+ _this.childRef = props.innerRef ? props.innerRef : (0, _react.createRef)();
711
+ return _this;
712
+ }
713
+
714
+ _createClass(ScrollSyncPane, [{
715
+ key: 'componentDidMount',
716
+ value: function componentDidMount() {
717
+ if (this.props.enabled) {
718
+ this.updateNode();
719
+ if (this.node) {
720
+ this.context.registerPane(this.node, this.toArray(this.props.group));
721
+ }
722
+ }
723
+ }
724
+ }, {
725
+ key: 'componentDidUpdate',
726
+ value: function componentDidUpdate(prevProps) {
727
+ if (this.props.attachTo !== prevProps.attachTo) {
728
+ if (this.node) {
729
+ this.context.unregisterPane(this.node, this.toArray(prevProps.group));
730
+ }
731
+ this.updateNode();
732
+ if (this.node) {
733
+ this.context.registerPane(this.node, this.toArray(prevProps.group));
734
+ }
735
+ }
736
+ if (this.node && this.props.enabled !== prevProps.enabled) {
737
+ if (this.props.enabled) {
738
+ this.context.registerPane(this.node, this.toArray(prevProps.group));
739
+ } else {
740
+ this.context.unregisterPane(this.node, this.toArray(prevProps.group));
741
+ }
742
+ }
743
+ if (this.node && this.props.enabled && this.props.group !== prevProps.group) {
744
+ this.context.unregisterPane(this.node, this.toArray(prevProps.group));
745
+ this.context.registerPane(this.node, this.toArray(this.props.group));
746
+ }
747
+ }
748
+ }, {
749
+ key: 'componentWillUnmount',
750
+ value: function componentWillUnmount() {
751
+ if (this.node && this.props.enabled) {
752
+ this.context.unregisterPane(this.node, this.toArray(this.props.group));
753
+ }
754
+ }
755
+ }, {
756
+ key: 'render',
757
+ value: function render() {
758
+ if (this.props.attachTo) {
759
+ return this.props.children;
760
+ }
761
+ return (0, _react.cloneElement)(_react.Children.only(this.props.children), {
762
+ ref: this.childRef
763
+ });
764
+ }
765
+ }]);
766
+
767
+ return ScrollSyncPane;
768
+ }(_react.Component);
769
+
770
+ ScrollSyncPane.contextType = _ScrollSyncContext2.default;
771
+ ScrollSyncPane.propTypes = {
772
+ children: _propTypes2.default.node.isRequired,
773
+ attachTo: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.shape({ current: _propTypes2.default.any })]),
774
+ group: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.arrayOf(_propTypes2.default.string)]),
775
+ enabled: _propTypes2.default.bool,
776
+ innerRef: _propTypes2.default.oneOfType([// Either a function
777
+ _propTypes2.default.func, _propTypes2.default.shape({ current: _propTypes2.default.any })])
778
+ };
779
+ ScrollSyncPane.defaultProps = {
780
+ group: 'default',
781
+ enabled: true
782
+ };
783
+ exports$1.default = ScrollSyncPane;
784
+ module.exports = exports$1['default'];
785
+
786
+ /***/ }),
787
+ /* 10 */
788
+ /***/ (function(module, exports$1, __webpack_require__) {
789
+
790
+
791
+ Object.defineProperty(exports$1, "__esModule", {
792
+ value: true
793
+ });
794
+
795
+ var _ScrollSync = __webpack_require__(8);
796
+
797
+ Object.defineProperty(exports$1, 'ScrollSync', {
798
+ enumerable: true,
799
+ get: function get() {
800
+ return _interopRequireDefault(_ScrollSync).default;
801
+ }
802
+ });
803
+
804
+ var _ScrollSyncPane = __webpack_require__(9);
805
+
806
+ Object.defineProperty(exports$1, 'ScrollSyncPane', {
807
+ enumerable: true,
808
+ get: function get() {
809
+ return _interopRequireDefault(_ScrollSyncPane).default;
810
+ }
811
+ });
812
+
813
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
814
+
815
+ /***/ }),
816
+ /* 11 */
817
+ /***/ (function(module, exports$1, __webpack_require__) {
818
+ /* WEBPACK VAR INJECTION */(function(process) {/**
819
+ * Copyright 2013-present, Facebook, Inc.
820
+ * All rights reserved.
821
+ *
822
+ * This source code is licensed under the BSD-style license found in the
823
+ * LICENSE file in the root directory of this source tree. An additional grant
824
+ * of patent rights can be found in the PATENTS file in the same directory.
825
+ */
826
+
827
+ /**
828
+ * Assert that the values match with the type specs.
829
+ * Error messages are memorized and will only be shown once.
830
+ *
831
+ * @param {object} typeSpecs Map of name to a ReactPropType
832
+ * @param {object} values Runtime values that need to be type-checked
833
+ * @param {string} location e.g. "prop", "context", "child context"
834
+ * @param {string} componentName Name of the component for error messages.
835
+ * @param {?Function} getStack Returns the component stack.
836
+ * @private
837
+ */
838
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
839
+ }
840
+
841
+ module.exports = checkPropTypes;
842
+
843
+ /* WEBPACK VAR INJECTION */}.call(exports$1, __webpack_require__(0)));
844
+
845
+ /***/ }),
846
+ /* 12 */
847
+ /***/ (function(module, exports$1, __webpack_require__) {
848
+ /**
849
+ * Copyright 2013-present, Facebook, Inc.
850
+ * All rights reserved.
851
+ *
852
+ * This source code is licensed under the BSD-style license found in the
853
+ * LICENSE file in the root directory of this source tree. An additional grant
854
+ * of patent rights can be found in the PATENTS file in the same directory.
855
+ */
856
+
857
+
858
+
859
+ var emptyFunction = __webpack_require__(1);
860
+ var invariant = __webpack_require__(2);
861
+ var ReactPropTypesSecret = __webpack_require__(3);
862
+
863
+ module.exports = function() {
864
+ function shim(props, propName, componentName, location, propFullName, secret) {
865
+ if (secret === ReactPropTypesSecret) {
866
+ // It is still safe when called from React.
867
+ return;
868
+ }
869
+ invariant(
870
+ false,
871
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
872
+ 'Use PropTypes.checkPropTypes() to call them. ' +
873
+ 'Read more at http://fb.me/use-check-prop-types'
874
+ );
875
+ } shim.isRequired = shim;
876
+ function getShim() {
877
+ return shim;
878
+ } // Important!
879
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
880
+ var ReactPropTypes = {
881
+ array: shim,
882
+ bool: shim,
883
+ func: shim,
884
+ number: shim,
885
+ object: shim,
886
+ string: shim,
887
+ symbol: shim,
888
+
889
+ any: shim,
890
+ arrayOf: getShim,
891
+ element: shim,
892
+ instanceOf: getShim,
893
+ node: shim,
894
+ objectOf: getShim,
895
+ oneOf: getShim,
896
+ oneOfType: getShim,
897
+ shape: getShim
898
+ };
899
+
900
+ ReactPropTypes.checkPropTypes = emptyFunction;
901
+ ReactPropTypes.PropTypes = ReactPropTypes;
902
+
903
+ return ReactPropTypes;
904
+ };
905
+
906
+
907
+ /***/ }),
908
+ /* 13 */
909
+ /***/ (function(module, exports$1, __webpack_require__) {
910
+ /* WEBPACK VAR INJECTION */(function(process) {/**
911
+ * Copyright 2013-present, Facebook, Inc.
912
+ * All rights reserved.
913
+ *
914
+ * This source code is licensed under the BSD-style license found in the
915
+ * LICENSE file in the root directory of this source tree. An additional grant
916
+ * of patent rights can be found in the PATENTS file in the same directory.
917
+ */
918
+
919
+
920
+
921
+ var emptyFunction = __webpack_require__(1);
922
+ var invariant = __webpack_require__(2);
923
+ var warning = __webpack_require__(6);
924
+
925
+ var ReactPropTypesSecret = __webpack_require__(3);
926
+ var checkPropTypes = __webpack_require__(11);
927
+
928
+ module.exports = function(isValidElement, throwOnDirectAccess) {
929
+ /* global Symbol */
930
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
931
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
932
+
933
+ /**
934
+ * Returns the iterator method function contained on the iterable object.
935
+ *
936
+ * Be sure to invoke the function with the iterable as context:
937
+ *
938
+ * var iteratorFn = getIteratorFn(myIterable);
939
+ * if (iteratorFn) {
940
+ * var iterator = iteratorFn.call(myIterable);
941
+ * ...
942
+ * }
943
+ *
944
+ * @param {?object} maybeIterable
945
+ * @return {?function}
946
+ */
947
+ function getIteratorFn(maybeIterable) {
948
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
949
+ if (typeof iteratorFn === 'function') {
950
+ return iteratorFn;
951
+ }
952
+ }
953
+
954
+ /**
955
+ * Collection of methods that allow declaration and validation of props that are
956
+ * supplied to React components. Example usage:
957
+ *
958
+ * var Props = require('ReactPropTypes');
959
+ * var MyArticle = React.createClass({
960
+ * propTypes: {
961
+ * // An optional string prop named "description".
962
+ * description: Props.string,
963
+ *
964
+ * // A required enum prop named "category".
965
+ * category: Props.oneOf(['News','Photos']).isRequired,
966
+ *
967
+ * // A prop named "dialog" that requires an instance of Dialog.
968
+ * dialog: Props.instanceOf(Dialog).isRequired
969
+ * },
970
+ * render: function() { ... }
971
+ * });
972
+ *
973
+ * A more formal specification of how these methods are used:
974
+ *
975
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
976
+ * decl := ReactPropTypes.{type}(.isRequired)?
977
+ *
978
+ * Each and every declaration produces a function with the same signature. This
979
+ * allows the creation of custom validation functions. For example:
980
+ *
981
+ * var MyLink = React.createClass({
982
+ * propTypes: {
983
+ * // An optional string or URI prop named "href".
984
+ * href: function(props, propName, componentName) {
985
+ * var propValue = props[propName];
986
+ * if (propValue != null && typeof propValue !== 'string' &&
987
+ * !(propValue instanceof URI)) {
988
+ * return new Error(
989
+ * 'Expected a string or an URI for ' + propName + ' in ' +
990
+ * componentName
991
+ * );
992
+ * }
993
+ * }
994
+ * },
995
+ * render: function() {...}
996
+ * });
997
+ *
998
+ * @internal
999
+ */
1000
+
1001
+ var ANONYMOUS = '<<anonymous>>';
1002
+
1003
+ // Important!
1004
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1005
+ var ReactPropTypes = {
1006
+ array: createPrimitiveTypeChecker('array'),
1007
+ bool: createPrimitiveTypeChecker('boolean'),
1008
+ func: createPrimitiveTypeChecker('function'),
1009
+ number: createPrimitiveTypeChecker('number'),
1010
+ object: createPrimitiveTypeChecker('object'),
1011
+ string: createPrimitiveTypeChecker('string'),
1012
+ symbol: createPrimitiveTypeChecker('symbol'),
1013
+
1014
+ any: createAnyTypeChecker(),
1015
+ arrayOf: createArrayOfTypeChecker,
1016
+ element: createElementTypeChecker(),
1017
+ instanceOf: createInstanceTypeChecker,
1018
+ node: createNodeChecker(),
1019
+ objectOf: createObjectOfTypeChecker,
1020
+ oneOf: createEnumTypeChecker,
1021
+ oneOfType: createUnionTypeChecker,
1022
+ shape: createShapeTypeChecker
1023
+ };
1024
+
1025
+ /**
1026
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
1027
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1028
+ */
1029
+ /*eslint-disable no-self-compare*/
1030
+ function is(x, y) {
1031
+ // SameValue algorithm
1032
+ if (x === y) {
1033
+ // Steps 1-5, 7-10
1034
+ // Steps 6.b-6.e: +0 != -0
1035
+ return x !== 0 || 1 / x === 1 / y;
1036
+ } else {
1037
+ // Step 6.a: NaN == NaN
1038
+ return x !== x && y !== y;
1039
+ }
1040
+ }
1041
+ /*eslint-enable no-self-compare*/
1042
+
1043
+ /**
1044
+ * We use an Error-like object for backward compatibility as people may call
1045
+ * PropTypes directly and inspect their output. However, we don't use real
1046
+ * Errors anymore. We don't inspect their stack anyway, and creating them
1047
+ * is prohibitively expensive if they are created too often, such as what
1048
+ * happens in oneOfType() for any type before the one that matched.
1049
+ */
1050
+ function PropTypeError(message) {
1051
+ this.message = message;
1052
+ this.stack = '';
1053
+ }
1054
+ // Make `instanceof Error` still work for returned errors.
1055
+ PropTypeError.prototype = Error.prototype;
1056
+
1057
+ function createChainableTypeChecker(validate) {
1058
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1059
+ componentName = componentName || ANONYMOUS;
1060
+ propFullName = propFullName || propName;
1061
+
1062
+ if (secret !== ReactPropTypesSecret) {
1063
+ if (throwOnDirectAccess) {
1064
+ // New behavior only for users of `prop-types` package
1065
+ invariant(
1066
+ false,
1067
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1068
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
1069
+ 'Read more at http://fb.me/use-check-prop-types'
1070
+ );
1071
+ }
1072
+ }
1073
+ if (props[propName] == null) {
1074
+ if (isRequired) {
1075
+ if (props[propName] === null) {
1076
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1077
+ }
1078
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1079
+ }
1080
+ return null;
1081
+ } else {
1082
+ return validate(props, propName, componentName, location, propFullName);
1083
+ }
1084
+ }
1085
+
1086
+ var chainedCheckType = checkType.bind(null, false);
1087
+ chainedCheckType.isRequired = checkType.bind(null, true);
1088
+
1089
+ return chainedCheckType;
1090
+ }
1091
+
1092
+ function createPrimitiveTypeChecker(expectedType) {
1093
+ function validate(props, propName, componentName, location, propFullName, secret) {
1094
+ var propValue = props[propName];
1095
+ var propType = getPropType(propValue);
1096
+ if (propType !== expectedType) {
1097
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
1098
+ // check, but we can offer a more precise error message here rather than
1099
+ // 'of type `object`'.
1100
+ var preciseType = getPreciseType(propValue);
1101
+
1102
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
1103
+ }
1104
+ return null;
1105
+ }
1106
+ return createChainableTypeChecker(validate);
1107
+ }
1108
+
1109
+ function createAnyTypeChecker() {
1110
+ return createChainableTypeChecker(emptyFunction.thatReturnsNull);
1111
+ }
1112
+
1113
+ function createArrayOfTypeChecker(typeChecker) {
1114
+ function validate(props, propName, componentName, location, propFullName) {
1115
+ if (typeof typeChecker !== 'function') {
1116
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1117
+ }
1118
+ var propValue = props[propName];
1119
+ if (!Array.isArray(propValue)) {
1120
+ var propType = getPropType(propValue);
1121
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1122
+ }
1123
+ for (var i = 0; i < propValue.length; i++) {
1124
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1125
+ if (error instanceof Error) {
1126
+ return error;
1127
+ }
1128
+ }
1129
+ return null;
1130
+ }
1131
+ return createChainableTypeChecker(validate);
1132
+ }
1133
+
1134
+ function createElementTypeChecker() {
1135
+ function validate(props, propName, componentName, location, propFullName) {
1136
+ var propValue = props[propName];
1137
+ if (!isValidElement(propValue)) {
1138
+ var propType = getPropType(propValue);
1139
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1140
+ }
1141
+ return null;
1142
+ }
1143
+ return createChainableTypeChecker(validate);
1144
+ }
1145
+
1146
+ function createInstanceTypeChecker(expectedClass) {
1147
+ function validate(props, propName, componentName, location, propFullName) {
1148
+ if (!(props[propName] instanceof expectedClass)) {
1149
+ var expectedClassName = expectedClass.name || ANONYMOUS;
1150
+ var actualClassName = getClassName(props[propName]);
1151
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1152
+ }
1153
+ return null;
1154
+ }
1155
+ return createChainableTypeChecker(validate);
1156
+ }
1157
+
1158
+ function createEnumTypeChecker(expectedValues) {
1159
+ if (!Array.isArray(expectedValues)) {
1160
+ return emptyFunction.thatReturnsNull;
1161
+ }
1162
+
1163
+ function validate(props, propName, componentName, location, propFullName) {
1164
+ var propValue = props[propName];
1165
+ for (var i = 0; i < expectedValues.length; i++) {
1166
+ if (is(propValue, expectedValues[i])) {
1167
+ return null;
1168
+ }
1169
+ }
1170
+
1171
+ var valuesString = JSON.stringify(expectedValues);
1172
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1173
+ }
1174
+ return createChainableTypeChecker(validate);
1175
+ }
1176
+
1177
+ function createObjectOfTypeChecker(typeChecker) {
1178
+ function validate(props, propName, componentName, location, propFullName) {
1179
+ if (typeof typeChecker !== 'function') {
1180
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1181
+ }
1182
+ var propValue = props[propName];
1183
+ var propType = getPropType(propValue);
1184
+ if (propType !== 'object') {
1185
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1186
+ }
1187
+ for (var key in propValue) {
1188
+ if (propValue.hasOwnProperty(key)) {
1189
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1190
+ if (error instanceof Error) {
1191
+ return error;
1192
+ }
1193
+ }
1194
+ }
1195
+ return null;
1196
+ }
1197
+ return createChainableTypeChecker(validate);
1198
+ }
1199
+
1200
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
1201
+ if (!Array.isArray(arrayOfTypeCheckers)) {
1202
+ return emptyFunction.thatReturnsNull;
1203
+ }
1204
+
1205
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1206
+ var checker = arrayOfTypeCheckers[i];
1207
+ if (typeof checker !== 'function') {
1208
+ warning(
1209
+ false,
1210
+ 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
1211
+ 'received %s at index %s.',
1212
+ getPostfixForTypeWarning(checker),
1213
+ i
1214
+ );
1215
+ return emptyFunction.thatReturnsNull;
1216
+ }
1217
+ }
1218
+
1219
+ function validate(props, propName, componentName, location, propFullName) {
1220
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1221
+ var checker = arrayOfTypeCheckers[i];
1222
+ if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
1223
+ return null;
1224
+ }
1225
+ }
1226
+
1227
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1228
+ }
1229
+ return createChainableTypeChecker(validate);
1230
+ }
1231
+
1232
+ function createNodeChecker() {
1233
+ function validate(props, propName, componentName, location, propFullName) {
1234
+ if (!isNode(props[propName])) {
1235
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1236
+ }
1237
+ return null;
1238
+ }
1239
+ return createChainableTypeChecker(validate);
1240
+ }
1241
+
1242
+ function createShapeTypeChecker(shapeTypes) {
1243
+ function validate(props, propName, componentName, location, propFullName) {
1244
+ var propValue = props[propName];
1245
+ var propType = getPropType(propValue);
1246
+ if (propType !== 'object') {
1247
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1248
+ }
1249
+ for (var key in shapeTypes) {
1250
+ var checker = shapeTypes[key];
1251
+ if (!checker) {
1252
+ continue;
1253
+ }
1254
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1255
+ if (error) {
1256
+ return error;
1257
+ }
1258
+ }
1259
+ return null;
1260
+ }
1261
+ return createChainableTypeChecker(validate);
1262
+ }
1263
+
1264
+ function isNode(propValue) {
1265
+ switch (typeof propValue) {
1266
+ case 'number':
1267
+ case 'string':
1268
+ case 'undefined':
1269
+ return true;
1270
+ case 'boolean':
1271
+ return !propValue;
1272
+ case 'object':
1273
+ if (Array.isArray(propValue)) {
1274
+ return propValue.every(isNode);
1275
+ }
1276
+ if (propValue === null || isValidElement(propValue)) {
1277
+ return true;
1278
+ }
1279
+
1280
+ var iteratorFn = getIteratorFn(propValue);
1281
+ if (iteratorFn) {
1282
+ var iterator = iteratorFn.call(propValue);
1283
+ var step;
1284
+ if (iteratorFn !== propValue.entries) {
1285
+ while (!(step = iterator.next()).done) {
1286
+ if (!isNode(step.value)) {
1287
+ return false;
1288
+ }
1289
+ }
1290
+ } else {
1291
+ // Iterator will provide entry [k,v] tuples rather than values.
1292
+ while (!(step = iterator.next()).done) {
1293
+ var entry = step.value;
1294
+ if (entry) {
1295
+ if (!isNode(entry[1])) {
1296
+ return false;
1297
+ }
1298
+ }
1299
+ }
1300
+ }
1301
+ } else {
1302
+ return false;
1303
+ }
1304
+
1305
+ return true;
1306
+ default:
1307
+ return false;
1308
+ }
1309
+ }
1310
+
1311
+ function isSymbol(propType, propValue) {
1312
+ // Native Symbol.
1313
+ if (propType === 'symbol') {
1314
+ return true;
1315
+ }
1316
+
1317
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1318
+ if (propValue['@@toStringTag'] === 'Symbol') {
1319
+ return true;
1320
+ }
1321
+
1322
+ // Fallback for non-spec compliant Symbols which are polyfilled.
1323
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1324
+ return true;
1325
+ }
1326
+
1327
+ return false;
1328
+ }
1329
+
1330
+ // Equivalent of `typeof` but with special handling for array and regexp.
1331
+ function getPropType(propValue) {
1332
+ var propType = typeof propValue;
1333
+ if (Array.isArray(propValue)) {
1334
+ return 'array';
1335
+ }
1336
+ if (propValue instanceof RegExp) {
1337
+ // Old webkits (at least until Android 4.0) return 'function' rather than
1338
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1339
+ // passes PropTypes.object.
1340
+ return 'object';
1341
+ }
1342
+ if (isSymbol(propType, propValue)) {
1343
+ return 'symbol';
1344
+ }
1345
+ return propType;
1346
+ }
1347
+
1348
+ // This handles more types than `getPropType`. Only used for error messages.
1349
+ // See `createPrimitiveTypeChecker`.
1350
+ function getPreciseType(propValue) {
1351
+ if (typeof propValue === 'undefined' || propValue === null) {
1352
+ return '' + propValue;
1353
+ }
1354
+ var propType = getPropType(propValue);
1355
+ if (propType === 'object') {
1356
+ if (propValue instanceof Date) {
1357
+ return 'date';
1358
+ } else if (propValue instanceof RegExp) {
1359
+ return 'regexp';
1360
+ }
1361
+ }
1362
+ return propType;
1363
+ }
1364
+
1365
+ // Returns a string that is postfixed to a warning about an invalid type.
1366
+ // For example, "undefined" or "of type array"
1367
+ function getPostfixForTypeWarning(value) {
1368
+ var type = getPreciseType(value);
1369
+ switch (type) {
1370
+ case 'array':
1371
+ case 'object':
1372
+ return 'an ' + type;
1373
+ case 'boolean':
1374
+ case 'date':
1375
+ case 'regexp':
1376
+ return 'a ' + type;
1377
+ default:
1378
+ return type;
1379
+ }
1380
+ }
1381
+
1382
+ // Returns class name of the object, if any.
1383
+ function getClassName(propValue) {
1384
+ if (!propValue.constructor || !propValue.constructor.name) {
1385
+ return ANONYMOUS;
1386
+ }
1387
+ return propValue.constructor.name;
1388
+ }
1389
+
1390
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1391
+ ReactPropTypes.PropTypes = ReactPropTypes;
1392
+
1393
+ return ReactPropTypes;
1394
+ };
1395
+
1396
+ /* WEBPACK VAR INJECTION */}.call(exports$1, __webpack_require__(0)));
1397
+
1398
+ /***/ })
1399
+ /******/ ]);
1400
+ });
1401
+
1402
+ } (dist));
1403
+
1404
+ var distExports = dist.exports;
1405
+
1406
+ exports.distExports = distExports;
1407
+ //# sourceMappingURL=index-Dus0cbgo.js.map