@bigbinary/neeto-form-frontend 4.4.7 → 4.4.8

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 (55) hide show
  1. package/dist/BuildForm.js +3077 -0
  2. package/dist/BuildForm.js.map +1 -0
  3. package/dist/ExternalForm.js +647 -0
  4. package/dist/ExternalForm.js.map +1 -0
  5. package/dist/NeetoFormProvider.js +11 -0
  6. package/dist/NeetoFormProvider.js.map +1 -0
  7. package/dist/Submission.js +2832 -0
  8. package/dist/Submission.js.map +1 -0
  9. package/dist/UrlBuilder.js +317 -0
  10. package/dist/UrlBuilder.js.map +1 -0
  11. package/dist/buildForm-CrOWLvLE.js +35 -0
  12. package/dist/buildForm-CrOWLvLE.js.map +1 -0
  13. package/dist/buildForm-DfMpfuSp.js +38 -0
  14. package/dist/buildForm-DfMpfuSp.js.map +1 -0
  15. package/dist/cjs/BuildForm.js +3098 -0
  16. package/dist/cjs/BuildForm.js.map +1 -0
  17. package/dist/cjs/ExternalForm.js +649 -0
  18. package/dist/cjs/ExternalForm.js.map +1 -0
  19. package/dist/cjs/NeetoFormProvider.js +13 -0
  20. package/dist/cjs/NeetoFormProvider.js.map +1 -0
  21. package/dist/cjs/Submission.js +2834 -0
  22. package/dist/cjs/Submission.js.map +1 -0
  23. package/dist/cjs/UrlBuilder.js +319 -0
  24. package/dist/cjs/UrlBuilder.js.map +1 -0
  25. package/dist/cjs/hooks.js +33 -0
  26. package/dist/cjs/hooks.js.map +1 -0
  27. package/dist/cjs/index.js +113 -0
  28. package/dist/cjs/index.js.map +1 -0
  29. package/dist/constants-Cj0XxE8a.js +494 -0
  30. package/dist/constants-Cj0XxE8a.js.map +1 -0
  31. package/dist/constants-D5JlvWws.js +513 -0
  32. package/dist/constants-D5JlvWws.js.map +1 -0
  33. package/dist/hooks.js +20 -0
  34. package/dist/hooks.js.map +1 -0
  35. package/dist/index-Beo6ztaM.js +51 -0
  36. package/dist/index-Beo6ztaM.js.map +1 -0
  37. package/dist/index-DhtQJpD_.js +43 -0
  38. package/dist/index-DhtQJpD_.js.map +1 -0
  39. package/dist/index.js +95 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/main.css +2 -0
  42. package/dist/main.css.map +1 -0
  43. package/dist/useFormSubmission-D3O7sDHp.js +24 -0
  44. package/dist/useFormSubmission-D3O7sDHp.js.map +1 -0
  45. package/dist/useFormSubmission-PLRMfzJ3.js +22 -0
  46. package/dist/useFormSubmission-PLRMfzJ3.js.map +1 -0
  47. package/dist/utils-CI844li1.js +2718 -0
  48. package/dist/utils-CI844li1.js.map +1 -0
  49. package/dist/utils-baAzU7l8.js +2749 -0
  50. package/dist/utils-baAzU7l8.js.map +1 -0
  51. package/dist/yup-CSYHMEsr.js +1014 -0
  52. package/dist/yup-CSYHMEsr.js.map +1 -0
  53. package/dist/yup-DMlViLLB.js +1097 -0
  54. package/dist/yup-DMlViLLB.js.map +1 -0
  55. package/package.json +5 -1
@@ -0,0 +1,2834 @@
1
+ 'use strict';
2
+
3
+ var _typeof = require('@babel/runtime/helpers/typeof');
4
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
5
+ var Honeybadger = require('@honeybadger-io/js');
6
+ var classnames = require('classnames');
7
+ var neetoCist = require('@bigbinary/neeto-cist');
8
+ var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
9
+ var Typography = require('@bigbinary/neetoui/Typography');
10
+ var constants = require('../constants-D5JlvWws.js');
11
+ var i18next = require('i18next');
12
+ var utils$1 = require('@bigbinary/neeto-commons-frontend/utils');
13
+ var EditorContent = require('@bigbinary/neeto-editor/EditorContent');
14
+ var utils = require('@bigbinary/neeto-editor/utils');
15
+ var CopyToClipboardButton = require('@bigbinary/neeto-molecules/CopyToClipboardButton');
16
+ var PhoneNumber = require('@bigbinary/neeto-molecules/PhoneNumber');
17
+ var ramda = require('ramda');
18
+ var React$2 = require('react');
19
+ var jsxRuntime = require('react/jsx-runtime');
20
+ require('@babel/runtime/helpers/toConsumableArray');
21
+ require('@babel/runtime/helpers/objectWithoutProperties');
22
+ require('@tanstack/react-query');
23
+ require('@bigbinary/neeto-commons-frontend/constants');
24
+ require('@bigbinary/neeto-commons-frontend/react-utils');
25
+ require('axios');
26
+ require('@babel/runtime/helpers/slicedToArray');
27
+
28
+ var dist = {};
29
+
30
+ var Linkify$1 = {};
31
+
32
+ var defaultComponentDecorator = {};
33
+
34
+ Object.defineProperty(defaultComponentDecorator, "__esModule", {
35
+ value: true
36
+ });
37
+
38
+ var _react$1 = React$2;
39
+
40
+ var React$1 = _interopRequireWildcard$1(_react$1);
41
+
42
+ function _interopRequireWildcard$1(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
43
+
44
+ defaultComponentDecorator.default = function (decoratedHref, decoratedText, key) {
45
+ return React$1.createElement(
46
+ 'a',
47
+ { href: decoratedHref, key: key },
48
+ decoratedText
49
+ );
50
+ };
51
+
52
+ var defaultHrefDecorator = {};
53
+
54
+ Object.defineProperty(defaultHrefDecorator, "__esModule", {
55
+ value: true
56
+ });
57
+
58
+ defaultHrefDecorator.default = function (href) {
59
+ return href;
60
+ };
61
+
62
+ var defaultMatchDecorator = {};
63
+
64
+ var regex$3;
65
+ var hasRequiredRegex$3;
66
+
67
+ function requireRegex$3 () {
68
+ if (hasRequiredRegex$3) return regex$3;
69
+ hasRequiredRegex$3 = 1;
70
+ regex$3=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
71
+ return regex$3;
72
+ }
73
+
74
+ var regex$2;
75
+ var hasRequiredRegex$2;
76
+
77
+ function requireRegex$2 () {
78
+ if (hasRequiredRegex$2) return regex$2;
79
+ hasRequiredRegex$2 = 1;
80
+ regex$2=/[\0-\x1F\x7F-\x9F]/;
81
+ return regex$2;
82
+ }
83
+
84
+ var regex$1;
85
+ var hasRequiredRegex$1;
86
+
87
+ function requireRegex$1 () {
88
+ if (hasRequiredRegex$1) return regex$1;
89
+ hasRequiredRegex$1 = 1;
90
+ regex$1=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
91
+ return regex$1;
92
+ }
93
+
94
+ var regex;
95
+ var hasRequiredRegex;
96
+
97
+ function requireRegex () {
98
+ if (hasRequiredRegex) return regex;
99
+ hasRequiredRegex = 1;
100
+ regex=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;
101
+ return regex;
102
+ }
103
+
104
+ var re;
105
+ var hasRequiredRe;
106
+
107
+ function requireRe () {
108
+ if (hasRequiredRe) return re;
109
+ hasRequiredRe = 1;
110
+
111
+
112
+ re = function (opts) {
113
+ var re = {};
114
+
115
+ // Use direct extract instead of `regenerate` to reduse browserified size
116
+ re.src_Any = requireRegex$3().source;
117
+ re.src_Cc = requireRegex$2().source;
118
+ re.src_Z = requireRegex$1().source;
119
+ re.src_P = requireRegex().source;
120
+
121
+ // \p{\Z\P\Cc\CF} (white spaces + control + format + punctuation)
122
+ re.src_ZPCc = [ re.src_Z, re.src_P, re.src_Cc ].join('|');
123
+
124
+ // \p{\Z\Cc} (white spaces + control)
125
+ re.src_ZCc = [ re.src_Z, re.src_Cc ].join('|');
126
+
127
+ // Experimental. List of chars, completely prohibited in links
128
+ // because can separate it from other part of text
129
+ var text_separators = '[><\uff5c]';
130
+
131
+ // All possible word characters (everything without punctuation, spaces & controls)
132
+ // Defined via punctuation & spaces to save space
133
+ // Should be something like \p{\L\N\S\M} (\w but without `_`)
134
+ re.src_pseudo_letter = '(?:(?!' + text_separators + '|' + re.src_ZPCc + ')' + re.src_Any + ')';
135
+ // The same as abothe but without [0-9]
136
+ // var src_pseudo_letter_non_d = '(?:(?![0-9]|' + src_ZPCc + ')' + src_Any + ')';
137
+
138
+ ////////////////////////////////////////////////////////////////////////////////
139
+
140
+ re.src_ip4 =
141
+
142
+ '(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)';
143
+
144
+ // Prohibit any of "@/[]()" in user/pass to avoid wrong domain fetch.
145
+ re.src_auth = '(?:(?:(?!' + re.src_ZCc + '|[@/\\[\\]()]).)+@)?';
146
+
147
+ re.src_port =
148
+
149
+ '(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?';
150
+
151
+ re.src_host_terminator =
152
+
153
+ '(?=$|' + text_separators + '|' + re.src_ZPCc + ')(?!-|_|:\\d|\\.-|\\.(?!$|' + re.src_ZPCc + '))';
154
+
155
+ re.src_path =
156
+
157
+ '(?:' +
158
+ '[/?#]' +
159
+ '(?:' +
160
+ '(?!' + re.src_ZCc + '|' + text_separators + '|[()[\\]{}.,"\'?!\\-]).|' +
161
+ '\\[(?:(?!' + re.src_ZCc + '|\\]).)*\\]|' +
162
+ '\\((?:(?!' + re.src_ZCc + '|[)]).)*\\)|' +
163
+ '\\{(?:(?!' + re.src_ZCc + '|[}]).)*\\}|' +
164
+ '\\"(?:(?!' + re.src_ZCc + '|["]).)+\\"|' +
165
+ "\\'(?:(?!" + re.src_ZCc + "|[']).)+\\'|" +
166
+ "\\'(?=" + re.src_pseudo_letter + '|[-]).|' + // allow `I'm_king` if no pair found
167
+ '\\.{2,4}[a-zA-Z0-9%/]|' + // github has ... in commit range links,
168
+ // google has .... in links (issue #66)
169
+ // Restrict to
170
+ // - english
171
+ // - percent-encoded
172
+ // - parts of file path
173
+ // until more examples found.
174
+ '\\.(?!' + re.src_ZCc + '|[.]).|' +
175
+ (opts && opts['---'] ?
176
+ '\\-(?!--(?:[^-]|$))(?:-*)|' // `---` => long dash, terminate
177
+ :
178
+ '\\-+|'
179
+ ) +
180
+ '\\,(?!' + re.src_ZCc + ').|' + // allow `,,,` in paths
181
+ '\\!(?!' + re.src_ZCc + '|[!]).|' +
182
+ '\\?(?!' + re.src_ZCc + '|[?]).' +
183
+ ')+' +
184
+ '|\\/' +
185
+ ')?';
186
+
187
+ // Allow anything in markdown spec, forbid quote (") at the first position
188
+ // because emails enclosed in quotes are far more common
189
+ re.src_email_name =
190
+
191
+ '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*';
192
+
193
+ re.src_xn =
194
+
195
+ 'xn--[a-z0-9\\-]{1,59}';
196
+
197
+ // More to read about domain names
198
+ // http://serverfault.com/questions/638260/
199
+
200
+ re.src_domain_root =
201
+
202
+ // Allow letters & digits (http://test1)
203
+ '(?:' +
204
+ re.src_xn +
205
+ '|' +
206
+ re.src_pseudo_letter + '{1,63}' +
207
+ ')';
208
+
209
+ re.src_domain =
210
+
211
+ '(?:' +
212
+ re.src_xn +
213
+ '|' +
214
+ '(?:' + re.src_pseudo_letter + ')' +
215
+ '|' +
216
+ '(?:' + re.src_pseudo_letter + '(?:-|' + re.src_pseudo_letter + '){0,61}' + re.src_pseudo_letter + ')' +
217
+ ')';
218
+
219
+ re.src_host =
220
+
221
+ '(?:' +
222
+ // Don't need IP check, because digits are already allowed in normal domain names
223
+ // src_ip4 +
224
+ // '|' +
225
+ '(?:(?:(?:' + re.src_domain + ')\\.)*' + re.src_domain/*_root*/ + ')' +
226
+ ')';
227
+
228
+ re.tpl_host_fuzzy =
229
+
230
+ '(?:' +
231
+ re.src_ip4 +
232
+ '|' +
233
+ '(?:(?:(?:' + re.src_domain + ')\\.)+(?:%TLDS%))' +
234
+ ')';
235
+
236
+ re.tpl_host_no_ip_fuzzy =
237
+
238
+ '(?:(?:(?:' + re.src_domain + ')\\.)+(?:%TLDS%))';
239
+
240
+ re.src_host_strict =
241
+
242
+ re.src_host + re.src_host_terminator;
243
+
244
+ re.tpl_host_fuzzy_strict =
245
+
246
+ re.tpl_host_fuzzy + re.src_host_terminator;
247
+
248
+ re.src_host_port_strict =
249
+
250
+ re.src_host + re.src_port + re.src_host_terminator;
251
+
252
+ re.tpl_host_port_fuzzy_strict =
253
+
254
+ re.tpl_host_fuzzy + re.src_port + re.src_host_terminator;
255
+
256
+ re.tpl_host_port_no_ip_fuzzy_strict =
257
+
258
+ re.tpl_host_no_ip_fuzzy + re.src_port + re.src_host_terminator;
259
+
260
+
261
+ ////////////////////////////////////////////////////////////////////////////////
262
+ // Main rules
263
+
264
+ // Rude test fuzzy links by host, for quick deny
265
+ re.tpl_host_fuzzy_test =
266
+
267
+ 'localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:' + re.src_ZPCc + '|>|$))';
268
+
269
+ re.tpl_email_fuzzy =
270
+
271
+ '(^|' + text_separators + '|"|\\(|' + re.src_ZCc + ')' +
272
+ '(' + re.src_email_name + '@' + re.tpl_host_fuzzy_strict + ')';
273
+
274
+ re.tpl_link_fuzzy =
275
+ // Fuzzy link can't be prepended with .:/\- and non punctuation.
276
+ // but can start with > (markdown blockquote)
277
+ '(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|' + re.src_ZPCc + '))' +
278
+ '((?![$+<=>^`|\uff5c])' + re.tpl_host_port_fuzzy_strict + re.src_path + ')';
279
+
280
+ re.tpl_link_no_ip_fuzzy =
281
+ // Fuzzy link can't be prepended with .:/\- and non punctuation.
282
+ // but can start with > (markdown blockquote)
283
+ '(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|' + re.src_ZPCc + '))' +
284
+ '((?![$+<=>^`|\uff5c])' + re.tpl_host_port_no_ip_fuzzy_strict + re.src_path + ')';
285
+
286
+ return re;
287
+ };
288
+ return re;
289
+ }
290
+
291
+ ////////////////////////////////////////////////////////////////////////////////
292
+ // Helpers
293
+
294
+ // Merge objects
295
+ //
296
+ function assign(obj /*from1, from2, from3, ...*/) {
297
+ var sources = Array.prototype.slice.call(arguments, 1);
298
+
299
+ sources.forEach(function (source) {
300
+ if (!source) { return; }
301
+
302
+ Object.keys(source).forEach(function (key) {
303
+ obj[key] = source[key];
304
+ });
305
+ });
306
+
307
+ return obj;
308
+ }
309
+
310
+ function _class(obj) { return Object.prototype.toString.call(obj); }
311
+ function isString(obj) { return _class(obj) === '[object String]'; }
312
+ function isObject(obj) { return _class(obj) === '[object Object]'; }
313
+ function isRegExp(obj) { return _class(obj) === '[object RegExp]'; }
314
+ function isFunction(obj) { return _class(obj) === '[object Function]'; }
315
+
316
+
317
+ function escapeRE(str) { return str.replace(/[.?*+^$[\]\\(){}|-]/g, '\\$&'); }
318
+
319
+ ////////////////////////////////////////////////////////////////////////////////
320
+
321
+
322
+ var defaultOptions = {
323
+ fuzzyLink: true,
324
+ fuzzyEmail: true,
325
+ fuzzyIP: false
326
+ };
327
+
328
+
329
+ function isOptionsObj(obj) {
330
+ return Object.keys(obj || {}).reduce(function (acc, k) {
331
+ return acc || defaultOptions.hasOwnProperty(k);
332
+ }, false);
333
+ }
334
+
335
+
336
+ var defaultSchemas = {
337
+ 'http:': {
338
+ validate: function (text, pos, self) {
339
+ var tail = text.slice(pos);
340
+
341
+ if (!self.re.http) {
342
+ // compile lazily, because "host"-containing variables can change on tlds update.
343
+ self.re.http = new RegExp(
344
+ '^\\/\\/' + self.re.src_auth + self.re.src_host_port_strict + self.re.src_path, 'i'
345
+ );
346
+ }
347
+ if (self.re.http.test(tail)) {
348
+ return tail.match(self.re.http)[0].length;
349
+ }
350
+ return 0;
351
+ }
352
+ },
353
+ 'https:': 'http:',
354
+ 'ftp:': 'http:',
355
+ '//': {
356
+ validate: function (text, pos, self) {
357
+ var tail = text.slice(pos);
358
+
359
+ if (!self.re.no_http) {
360
+ // compile lazily, because "host"-containing variables can change on tlds update.
361
+ self.re.no_http = new RegExp(
362
+ '^' +
363
+ self.re.src_auth +
364
+ // Don't allow single-level domains, because of false positives like '//test'
365
+ // with code comments
366
+ '(?:localhost|(?:(?:' + self.re.src_domain + ')\\.)+' + self.re.src_domain_root + ')' +
367
+ self.re.src_port +
368
+ self.re.src_host_terminator +
369
+ self.re.src_path,
370
+
371
+ 'i'
372
+ );
373
+ }
374
+
375
+ if (self.re.no_http.test(tail)) {
376
+ // should not be `://` & `///`, that protects from errors in protocol name
377
+ if (pos >= 3 && text[pos - 3] === ':') { return 0; }
378
+ if (pos >= 3 && text[pos - 3] === '/') { return 0; }
379
+ return tail.match(self.re.no_http)[0].length;
380
+ }
381
+ return 0;
382
+ }
383
+ },
384
+ 'mailto:': {
385
+ validate: function (text, pos, self) {
386
+ var tail = text.slice(pos);
387
+
388
+ if (!self.re.mailto) {
389
+ self.re.mailto = new RegExp(
390
+ '^' + self.re.src_email_name + '@' + self.re.src_host_strict, 'i'
391
+ );
392
+ }
393
+ if (self.re.mailto.test(tail)) {
394
+ return tail.match(self.re.mailto)[0].length;
395
+ }
396
+ return 0;
397
+ }
398
+ }
399
+ };
400
+
401
+ /*eslint-disable max-len*/
402
+
403
+ // RE pattern for 2-character tlds (autogenerated by ./support/tlds_2char_gen.js)
404
+ var tlds_2ch_src_re = 'a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]';
405
+
406
+ // DON'T try to make PRs with changes. Extend TLDs with LinkifyIt.tlds() instead
407
+ var tlds_default = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|');
408
+
409
+ /*eslint-enable max-len*/
410
+
411
+ ////////////////////////////////////////////////////////////////////////////////
412
+
413
+ function resetScanCache(self) {
414
+ self.__index__ = -1;
415
+ self.__text_cache__ = '';
416
+ }
417
+
418
+ function createValidator(re) {
419
+ return function (text, pos) {
420
+ var tail = text.slice(pos);
421
+
422
+ if (re.test(tail)) {
423
+ return tail.match(re)[0].length;
424
+ }
425
+ return 0;
426
+ };
427
+ }
428
+
429
+ function createNormalizer() {
430
+ return function (match, self) {
431
+ self.normalize(match);
432
+ };
433
+ }
434
+
435
+ // Schemas compiler. Build regexps.
436
+ //
437
+ function compile(self) {
438
+
439
+ // Load & clone RE patterns.
440
+ var re = self.re = requireRe()(self.__opts__);
441
+
442
+ // Define dynamic patterns
443
+ var tlds = self.__tlds__.slice();
444
+
445
+ self.onCompile();
446
+
447
+ if (!self.__tlds_replaced__) {
448
+ tlds.push(tlds_2ch_src_re);
449
+ }
450
+ tlds.push(re.src_xn);
451
+
452
+ re.src_tlds = tlds.join('|');
453
+
454
+ function untpl(tpl) { return tpl.replace('%TLDS%', re.src_tlds); }
455
+
456
+ re.email_fuzzy = RegExp(untpl(re.tpl_email_fuzzy), 'i');
457
+ re.link_fuzzy = RegExp(untpl(re.tpl_link_fuzzy), 'i');
458
+ re.link_no_ip_fuzzy = RegExp(untpl(re.tpl_link_no_ip_fuzzy), 'i');
459
+ re.host_fuzzy_test = RegExp(untpl(re.tpl_host_fuzzy_test), 'i');
460
+
461
+ //
462
+ // Compile each schema
463
+ //
464
+
465
+ var aliases = [];
466
+
467
+ self.__compiled__ = {}; // Reset compiled data
468
+
469
+ function schemaError(name, val) {
470
+ throw new Error('(LinkifyIt) Invalid schema "' + name + '": ' + val);
471
+ }
472
+
473
+ Object.keys(self.__schemas__).forEach(function (name) {
474
+ var val = self.__schemas__[name];
475
+
476
+ // skip disabled methods
477
+ if (val === null) { return; }
478
+
479
+ var compiled = { validate: null, link: null };
480
+
481
+ self.__compiled__[name] = compiled;
482
+
483
+ if (isObject(val)) {
484
+ if (isRegExp(val.validate)) {
485
+ compiled.validate = createValidator(val.validate);
486
+ } else if (isFunction(val.validate)) {
487
+ compiled.validate = val.validate;
488
+ } else {
489
+ schemaError(name, val);
490
+ }
491
+
492
+ if (isFunction(val.normalize)) {
493
+ compiled.normalize = val.normalize;
494
+ } else if (!val.normalize) {
495
+ compiled.normalize = createNormalizer();
496
+ } else {
497
+ schemaError(name, val);
498
+ }
499
+
500
+ return;
501
+ }
502
+
503
+ if (isString(val)) {
504
+ aliases.push(name);
505
+ return;
506
+ }
507
+
508
+ schemaError(name, val);
509
+ });
510
+
511
+ //
512
+ // Compile postponed aliases
513
+ //
514
+
515
+ aliases.forEach(function (alias) {
516
+ if (!self.__compiled__[self.__schemas__[alias]]) {
517
+ // Silently fail on missed schemas to avoid errons on disable.
518
+ // schemaError(alias, self.__schemas__[alias]);
519
+ return;
520
+ }
521
+
522
+ self.__compiled__[alias].validate =
523
+ self.__compiled__[self.__schemas__[alias]].validate;
524
+ self.__compiled__[alias].normalize =
525
+ self.__compiled__[self.__schemas__[alias]].normalize;
526
+ });
527
+
528
+ //
529
+ // Fake record for guessed links
530
+ //
531
+ self.__compiled__[''] = { validate: null, normalize: createNormalizer() };
532
+
533
+ //
534
+ // Build schema condition
535
+ //
536
+ var slist = Object.keys(self.__compiled__)
537
+ .filter(function (name) {
538
+ // Filter disabled & fake schemas
539
+ return name.length > 0 && self.__compiled__[name];
540
+ })
541
+ .map(escapeRE)
542
+ .join('|');
543
+ // (?!_) cause 1.5x slowdown
544
+ self.re.schema_test = RegExp('(^|(?!_)(?:[><\uff5c]|' + re.src_ZPCc + '))(' + slist + ')', 'i');
545
+ self.re.schema_search = RegExp('(^|(?!_)(?:[><\uff5c]|' + re.src_ZPCc + '))(' + slist + ')', 'ig');
546
+
547
+ self.re.pretest = RegExp(
548
+ '(' + self.re.schema_test.source + ')|(' + self.re.host_fuzzy_test.source + ')|@',
549
+ 'i'
550
+ );
551
+
552
+ //
553
+ // Cleanup
554
+ //
555
+
556
+ resetScanCache(self);
557
+ }
558
+
559
+ /**
560
+ * class Match
561
+ *
562
+ * Match result. Single element of array, returned by [[LinkifyIt#match]]
563
+ **/
564
+ function Match(self, shift) {
565
+ var start = self.__index__,
566
+ end = self.__last_index__,
567
+ text = self.__text_cache__.slice(start, end);
568
+
569
+ /**
570
+ * Match#schema -> String
571
+ *
572
+ * Prefix (protocol) for matched string.
573
+ **/
574
+ this.schema = self.__schema__.toLowerCase();
575
+ /**
576
+ * Match#index -> Number
577
+ *
578
+ * First position of matched string.
579
+ **/
580
+ this.index = start + shift;
581
+ /**
582
+ * Match#lastIndex -> Number
583
+ *
584
+ * Next position after matched string.
585
+ **/
586
+ this.lastIndex = end + shift;
587
+ /**
588
+ * Match#raw -> String
589
+ *
590
+ * Matched string.
591
+ **/
592
+ this.raw = text;
593
+ /**
594
+ * Match#text -> String
595
+ *
596
+ * Notmalized text of matched string.
597
+ **/
598
+ this.text = text;
599
+ /**
600
+ * Match#url -> String
601
+ *
602
+ * Normalized url of matched string.
603
+ **/
604
+ this.url = text;
605
+ }
606
+
607
+ function createMatch(self, shift) {
608
+ var match = new Match(self, shift);
609
+
610
+ self.__compiled__[match.schema].normalize(match, self);
611
+
612
+ return match;
613
+ }
614
+
615
+
616
+ /**
617
+ * class LinkifyIt
618
+ **/
619
+
620
+ /**
621
+ * new LinkifyIt(schemas, options)
622
+ * - schemas (Object): Optional. Additional schemas to validate (prefix/validator)
623
+ * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }
624
+ *
625
+ * Creates new linkifier instance with optional additional schemas.
626
+ * Can be called without `new` keyword for convenience.
627
+ *
628
+ * By default understands:
629
+ *
630
+ * - `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links
631
+ * - "fuzzy" links and emails (example.com, foo@bar.com).
632
+ *
633
+ * `schemas` is an object, where each key/value describes protocol/rule:
634
+ *
635
+ * - __key__ - link prefix (usually, protocol name with `:` at the end, `skype:`
636
+ * for example). `linkify-it` makes shure that prefix is not preceeded with
637
+ * alphanumeric char and symbols. Only whitespaces and punctuation allowed.
638
+ * - __value__ - rule to check tail after link prefix
639
+ * - _String_ - just alias to existing rule
640
+ * - _Object_
641
+ * - _validate_ - validator function (should return matched length on success),
642
+ * or `RegExp`.
643
+ * - _normalize_ - optional function to normalize text & url of matched result
644
+ * (for example, for @twitter mentions).
645
+ *
646
+ * `options`:
647
+ *
648
+ * - __fuzzyLink__ - recognige URL-s without `http(s):` prefix. Default `true`.
649
+ * - __fuzzyIP__ - allow IPs in fuzzy links above. Can conflict with some texts
650
+ * like version numbers. Default `false`.
651
+ * - __fuzzyEmail__ - recognize emails without `mailto:` prefix.
652
+ *
653
+ **/
654
+ function LinkifyIt(schemas, options) {
655
+ if (!(this instanceof LinkifyIt)) {
656
+ return new LinkifyIt(schemas, options);
657
+ }
658
+
659
+ if (!options) {
660
+ if (isOptionsObj(schemas)) {
661
+ options = schemas;
662
+ schemas = {};
663
+ }
664
+ }
665
+
666
+ this.__opts__ = assign({}, defaultOptions, options);
667
+
668
+ // Cache last tested result. Used to skip repeating steps on next `match` call.
669
+ this.__index__ = -1;
670
+ this.__last_index__ = -1; // Next scan position
671
+ this.__schema__ = '';
672
+ this.__text_cache__ = '';
673
+
674
+ this.__schemas__ = assign({}, defaultSchemas, schemas);
675
+ this.__compiled__ = {};
676
+
677
+ this.__tlds__ = tlds_default;
678
+ this.__tlds_replaced__ = false;
679
+
680
+ this.re = {};
681
+
682
+ compile(this);
683
+ }
684
+
685
+
686
+ /** chainable
687
+ * LinkifyIt#add(schema, definition)
688
+ * - schema (String): rule name (fixed pattern prefix)
689
+ * - definition (String|RegExp|Object): schema definition
690
+ *
691
+ * Add new rule definition. See constructor description for details.
692
+ **/
693
+ LinkifyIt.prototype.add = function add(schema, definition) {
694
+ this.__schemas__[schema] = definition;
695
+ compile(this);
696
+ return this;
697
+ };
698
+
699
+
700
+ /** chainable
701
+ * LinkifyIt#set(options)
702
+ * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }
703
+ *
704
+ * Set recognition options for links without schema.
705
+ **/
706
+ LinkifyIt.prototype.set = function set(options) {
707
+ this.__opts__ = assign(this.__opts__, options);
708
+ return this;
709
+ };
710
+
711
+
712
+ /**
713
+ * LinkifyIt#test(text) -> Boolean
714
+ *
715
+ * Searches linkifiable pattern and returns `true` on success or `false` on fail.
716
+ **/
717
+ LinkifyIt.prototype.test = function test(text) {
718
+ // Reset scan cache
719
+ this.__text_cache__ = text;
720
+ this.__index__ = -1;
721
+
722
+ if (!text.length) { return false; }
723
+
724
+ var m, ml, me, len, shift, next, re, tld_pos, at_pos;
725
+
726
+ // try to scan for link with schema - that's the most simple rule
727
+ if (this.re.schema_test.test(text)) {
728
+ re = this.re.schema_search;
729
+ re.lastIndex = 0;
730
+ while ((m = re.exec(text)) !== null) {
731
+ len = this.testSchemaAt(text, m[2], re.lastIndex);
732
+ if (len) {
733
+ this.__schema__ = m[2];
734
+ this.__index__ = m.index + m[1].length;
735
+ this.__last_index__ = m.index + m[0].length + len;
736
+ break;
737
+ }
738
+ }
739
+ }
740
+
741
+ if (this.__opts__.fuzzyLink && this.__compiled__['http:']) {
742
+ // guess schemaless links
743
+ tld_pos = text.search(this.re.host_fuzzy_test);
744
+ if (tld_pos >= 0) {
745
+ // if tld is located after found link - no need to check fuzzy pattern
746
+ if (this.__index__ < 0 || tld_pos < this.__index__) {
747
+ if ((ml = text.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null) {
748
+
749
+ shift = ml.index + ml[1].length;
750
+
751
+ if (this.__index__ < 0 || shift < this.__index__) {
752
+ this.__schema__ = '';
753
+ this.__index__ = shift;
754
+ this.__last_index__ = ml.index + ml[0].length;
755
+ }
756
+ }
757
+ }
758
+ }
759
+ }
760
+
761
+ if (this.__opts__.fuzzyEmail && this.__compiled__['mailto:']) {
762
+ // guess schemaless emails
763
+ at_pos = text.indexOf('@');
764
+ if (at_pos >= 0) {
765
+ // We can't skip this check, because this cases are possible:
766
+ // 192.168.1.1@gmail.com, my.in@example.com
767
+ if ((me = text.match(this.re.email_fuzzy)) !== null) {
768
+
769
+ shift = me.index + me[1].length;
770
+ next = me.index + me[0].length;
771
+
772
+ if (this.__index__ < 0 || shift < this.__index__ ||
773
+ (shift === this.__index__ && next > this.__last_index__)) {
774
+ this.__schema__ = 'mailto:';
775
+ this.__index__ = shift;
776
+ this.__last_index__ = next;
777
+ }
778
+ }
779
+ }
780
+ }
781
+
782
+ return this.__index__ >= 0;
783
+ };
784
+
785
+
786
+ /**
787
+ * LinkifyIt#pretest(text) -> Boolean
788
+ *
789
+ * Very quick check, that can give false positives. Returns true if link MAY BE
790
+ * can exists. Can be used for speed optimization, when you need to check that
791
+ * link NOT exists.
792
+ **/
793
+ LinkifyIt.prototype.pretest = function pretest(text) {
794
+ return this.re.pretest.test(text);
795
+ };
796
+
797
+
798
+ /**
799
+ * LinkifyIt#testSchemaAt(text, name, position) -> Number
800
+ * - text (String): text to scan
801
+ * - name (String): rule (schema) name
802
+ * - position (Number): text offset to check from
803
+ *
804
+ * Similar to [[LinkifyIt#test]] but checks only specific protocol tail exactly
805
+ * at given position. Returns length of found pattern (0 on fail).
806
+ **/
807
+ LinkifyIt.prototype.testSchemaAt = function testSchemaAt(text, schema, pos) {
808
+ // If not supported schema check requested - terminate
809
+ if (!this.__compiled__[schema.toLowerCase()]) {
810
+ return 0;
811
+ }
812
+ return this.__compiled__[schema.toLowerCase()].validate(text, pos, this);
813
+ };
814
+
815
+
816
+ /**
817
+ * LinkifyIt#match(text) -> Array|null
818
+ *
819
+ * Returns array of found link descriptions or `null` on fail. We strongly
820
+ * recommend to use [[LinkifyIt#test]] first, for best speed.
821
+ *
822
+ * ##### Result match description
823
+ *
824
+ * - __schema__ - link schema, can be empty for fuzzy links, or `//` for
825
+ * protocol-neutral links.
826
+ * - __index__ - offset of matched text
827
+ * - __lastIndex__ - index of next char after mathch end
828
+ * - __raw__ - matched text
829
+ * - __text__ - normalized text
830
+ * - __url__ - link, generated from matched text
831
+ **/
832
+ LinkifyIt.prototype.match = function match(text) {
833
+ var shift = 0, result = [];
834
+
835
+ // Try to take previous element from cache, if .test() called before
836
+ if (this.__index__ >= 0 && this.__text_cache__ === text) {
837
+ result.push(createMatch(this, shift));
838
+ shift = this.__last_index__;
839
+ }
840
+
841
+ // Cut head if cache was used
842
+ var tail = shift ? text.slice(shift) : text;
843
+
844
+ // Scan string until end reached
845
+ while (this.test(tail)) {
846
+ result.push(createMatch(this, shift));
847
+
848
+ tail = tail.slice(this.__last_index__);
849
+ shift += this.__last_index__;
850
+ }
851
+
852
+ if (result.length) {
853
+ return result;
854
+ }
855
+
856
+ return null;
857
+ };
858
+
859
+
860
+ /** chainable
861
+ * LinkifyIt#tlds(list [, keepOld]) -> this
862
+ * - list (Array): list of tlds
863
+ * - keepOld (Boolean): merge with current list if `true` (`false` by default)
864
+ *
865
+ * Load (or merge) new tlds list. Those are user for fuzzy links (without prefix)
866
+ * to avoid false positives. By default this algorythm used:
867
+ *
868
+ * - hostname with any 2-letter root zones are ok.
869
+ * - biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф
870
+ * are ok.
871
+ * - encoded (`xn--...`) root zones are ok.
872
+ *
873
+ * If list is replaced, then exact match for 2-chars root zones will be checked.
874
+ **/
875
+ LinkifyIt.prototype.tlds = function tlds(list, keepOld) {
876
+ list = Array.isArray(list) ? list : [ list ];
877
+
878
+ if (!keepOld) {
879
+ this.__tlds__ = list.slice();
880
+ this.__tlds_replaced__ = true;
881
+ compile(this);
882
+ return this;
883
+ }
884
+
885
+ this.__tlds__ = this.__tlds__.concat(list)
886
+ .sort()
887
+ .filter(function (el, idx, arr) {
888
+ return el !== arr[idx - 1];
889
+ })
890
+ .reverse();
891
+
892
+ compile(this);
893
+ return this;
894
+ };
895
+
896
+ /**
897
+ * LinkifyIt#normalize(match)
898
+ *
899
+ * Default normalizer (if schema does not define it's own).
900
+ **/
901
+ LinkifyIt.prototype.normalize = function normalize(match) {
902
+
903
+ // Do minimal possible changes by default. Need to collect feedback prior
904
+ // to move forward https://github.com/markdown-it/linkify-it/issues/1
905
+
906
+ if (!match.schema) { match.url = 'http://' + match.url; }
907
+
908
+ if (match.schema === 'mailto:' && !/^mailto:/i.test(match.url)) {
909
+ match.url = 'mailto:' + match.url;
910
+ }
911
+ };
912
+
913
+
914
+ /**
915
+ * LinkifyIt#onCompile()
916
+ *
917
+ * Override to modify basic RegExp-s.
918
+ **/
919
+ LinkifyIt.prototype.onCompile = function onCompile() {
920
+ };
921
+
922
+
923
+ var linkifyIt = LinkifyIt;
924
+
925
+ var require$$1 = [
926
+ "aaa",
927
+ "aarp",
928
+ "abb",
929
+ "abbott",
930
+ "abbvie",
931
+ "abc",
932
+ "able",
933
+ "abogado",
934
+ "abudhabi",
935
+ "ac",
936
+ "academy",
937
+ "accenture",
938
+ "accountant",
939
+ "accountants",
940
+ "aco",
941
+ "actor",
942
+ "ad",
943
+ "ads",
944
+ "adult",
945
+ "ae",
946
+ "aeg",
947
+ "aero",
948
+ "aetna",
949
+ "af",
950
+ "afl",
951
+ "africa",
952
+ "ag",
953
+ "agakhan",
954
+ "agency",
955
+ "ai",
956
+ "aig",
957
+ "airbus",
958
+ "airforce",
959
+ "airtel",
960
+ "akdn",
961
+ "al",
962
+ "alibaba",
963
+ "alipay",
964
+ "allfinanz",
965
+ "allstate",
966
+ "ally",
967
+ "alsace",
968
+ "alstom",
969
+ "am",
970
+ "amazon",
971
+ "americanexpress",
972
+ "americanfamily",
973
+ "amex",
974
+ "amfam",
975
+ "amica",
976
+ "amsterdam",
977
+ "analytics",
978
+ "android",
979
+ "anquan",
980
+ "anz",
981
+ "ao",
982
+ "aol",
983
+ "apartments",
984
+ "app",
985
+ "apple",
986
+ "aq",
987
+ "aquarelle",
988
+ "ar",
989
+ "arab",
990
+ "aramco",
991
+ "archi",
992
+ "army",
993
+ "arpa",
994
+ "art",
995
+ "arte",
996
+ "as",
997
+ "asda",
998
+ "asia",
999
+ "associates",
1000
+ "at",
1001
+ "athleta",
1002
+ "attorney",
1003
+ "au",
1004
+ "auction",
1005
+ "audi",
1006
+ "audible",
1007
+ "audio",
1008
+ "auspost",
1009
+ "author",
1010
+ "auto",
1011
+ "autos",
1012
+ "avianca",
1013
+ "aw",
1014
+ "aws",
1015
+ "ax",
1016
+ "axa",
1017
+ "az",
1018
+ "azure",
1019
+ "ba",
1020
+ "baby",
1021
+ "baidu",
1022
+ "banamex",
1023
+ "bananarepublic",
1024
+ "band",
1025
+ "bank",
1026
+ "bar",
1027
+ "barcelona",
1028
+ "barclaycard",
1029
+ "barclays",
1030
+ "barefoot",
1031
+ "bargains",
1032
+ "baseball",
1033
+ "basketball",
1034
+ "bauhaus",
1035
+ "bayern",
1036
+ "bb",
1037
+ "bbc",
1038
+ "bbt",
1039
+ "bbva",
1040
+ "bcg",
1041
+ "bcn",
1042
+ "bd",
1043
+ "be",
1044
+ "beats",
1045
+ "beauty",
1046
+ "beer",
1047
+ "bentley",
1048
+ "berlin",
1049
+ "best",
1050
+ "bestbuy",
1051
+ "bet",
1052
+ "bf",
1053
+ "bg",
1054
+ "bh",
1055
+ "bharti",
1056
+ "bi",
1057
+ "bible",
1058
+ "bid",
1059
+ "bike",
1060
+ "bing",
1061
+ "bingo",
1062
+ "bio",
1063
+ "biz",
1064
+ "bj",
1065
+ "black",
1066
+ "blackfriday",
1067
+ "blockbuster",
1068
+ "blog",
1069
+ "bloomberg",
1070
+ "blue",
1071
+ "bm",
1072
+ "bms",
1073
+ "bmw",
1074
+ "bn",
1075
+ "bnpparibas",
1076
+ "bo",
1077
+ "boats",
1078
+ "boehringer",
1079
+ "bofa",
1080
+ "bom",
1081
+ "bond",
1082
+ "boo",
1083
+ "book",
1084
+ "booking",
1085
+ "bosch",
1086
+ "bostik",
1087
+ "boston",
1088
+ "bot",
1089
+ "boutique",
1090
+ "box",
1091
+ "br",
1092
+ "bradesco",
1093
+ "bridgestone",
1094
+ "broadway",
1095
+ "broker",
1096
+ "brother",
1097
+ "brussels",
1098
+ "bs",
1099
+ "bt",
1100
+ "build",
1101
+ "builders",
1102
+ "business",
1103
+ "buy",
1104
+ "buzz",
1105
+ "bv",
1106
+ "bw",
1107
+ "by",
1108
+ "bz",
1109
+ "bzh",
1110
+ "ca",
1111
+ "cab",
1112
+ "cafe",
1113
+ "cal",
1114
+ "call",
1115
+ "calvinklein",
1116
+ "cam",
1117
+ "camera",
1118
+ "camp",
1119
+ "canon",
1120
+ "capetown",
1121
+ "capital",
1122
+ "capitalone",
1123
+ "car",
1124
+ "caravan",
1125
+ "cards",
1126
+ "care",
1127
+ "career",
1128
+ "careers",
1129
+ "cars",
1130
+ "casa",
1131
+ "case",
1132
+ "cash",
1133
+ "casino",
1134
+ "cat",
1135
+ "catering",
1136
+ "catholic",
1137
+ "cba",
1138
+ "cbn",
1139
+ "cbre",
1140
+ "cc",
1141
+ "cd",
1142
+ "center",
1143
+ "ceo",
1144
+ "cern",
1145
+ "cf",
1146
+ "cfa",
1147
+ "cfd",
1148
+ "cg",
1149
+ "ch",
1150
+ "chanel",
1151
+ "channel",
1152
+ "charity",
1153
+ "chase",
1154
+ "chat",
1155
+ "cheap",
1156
+ "chintai",
1157
+ "christmas",
1158
+ "chrome",
1159
+ "church",
1160
+ "ci",
1161
+ "cipriani",
1162
+ "circle",
1163
+ "cisco",
1164
+ "citadel",
1165
+ "citi",
1166
+ "citic",
1167
+ "city",
1168
+ "ck",
1169
+ "cl",
1170
+ "claims",
1171
+ "cleaning",
1172
+ "click",
1173
+ "clinic",
1174
+ "clinique",
1175
+ "clothing",
1176
+ "cloud",
1177
+ "club",
1178
+ "clubmed",
1179
+ "cm",
1180
+ "cn",
1181
+ "co",
1182
+ "coach",
1183
+ "codes",
1184
+ "coffee",
1185
+ "college",
1186
+ "cologne",
1187
+ "com",
1188
+ "comcast",
1189
+ "commbank",
1190
+ "community",
1191
+ "company",
1192
+ "compare",
1193
+ "computer",
1194
+ "comsec",
1195
+ "condos",
1196
+ "construction",
1197
+ "consulting",
1198
+ "contact",
1199
+ "contractors",
1200
+ "cooking",
1201
+ "cool",
1202
+ "coop",
1203
+ "corsica",
1204
+ "country",
1205
+ "coupon",
1206
+ "coupons",
1207
+ "courses",
1208
+ "cpa",
1209
+ "cr",
1210
+ "credit",
1211
+ "creditcard",
1212
+ "creditunion",
1213
+ "cricket",
1214
+ "crown",
1215
+ "crs",
1216
+ "cruise",
1217
+ "cruises",
1218
+ "cu",
1219
+ "cuisinella",
1220
+ "cv",
1221
+ "cw",
1222
+ "cx",
1223
+ "cy",
1224
+ "cymru",
1225
+ "cyou",
1226
+ "cz",
1227
+ "dabur",
1228
+ "dad",
1229
+ "dance",
1230
+ "data",
1231
+ "date",
1232
+ "dating",
1233
+ "datsun",
1234
+ "day",
1235
+ "dclk",
1236
+ "dds",
1237
+ "de",
1238
+ "deal",
1239
+ "dealer",
1240
+ "deals",
1241
+ "degree",
1242
+ "delivery",
1243
+ "dell",
1244
+ "deloitte",
1245
+ "delta",
1246
+ "democrat",
1247
+ "dental",
1248
+ "dentist",
1249
+ "desi",
1250
+ "design",
1251
+ "dev",
1252
+ "dhl",
1253
+ "diamonds",
1254
+ "diet",
1255
+ "digital",
1256
+ "direct",
1257
+ "directory",
1258
+ "discount",
1259
+ "discover",
1260
+ "dish",
1261
+ "diy",
1262
+ "dj",
1263
+ "dk",
1264
+ "dm",
1265
+ "dnp",
1266
+ "do",
1267
+ "docs",
1268
+ "doctor",
1269
+ "dog",
1270
+ "domains",
1271
+ "dot",
1272
+ "download",
1273
+ "drive",
1274
+ "dtv",
1275
+ "dubai",
1276
+ "dunlop",
1277
+ "dupont",
1278
+ "durban",
1279
+ "dvag",
1280
+ "dvr",
1281
+ "dz",
1282
+ "earth",
1283
+ "eat",
1284
+ "ec",
1285
+ "eco",
1286
+ "edeka",
1287
+ "edu",
1288
+ "education",
1289
+ "ee",
1290
+ "eg",
1291
+ "email",
1292
+ "emerck",
1293
+ "energy",
1294
+ "engineer",
1295
+ "engineering",
1296
+ "enterprises",
1297
+ "epson",
1298
+ "equipment",
1299
+ "er",
1300
+ "ericsson",
1301
+ "erni",
1302
+ "es",
1303
+ "esq",
1304
+ "estate",
1305
+ "et",
1306
+ "etisalat",
1307
+ "eu",
1308
+ "eurovision",
1309
+ "eus",
1310
+ "events",
1311
+ "exchange",
1312
+ "expert",
1313
+ "exposed",
1314
+ "express",
1315
+ "extraspace",
1316
+ "fage",
1317
+ "fail",
1318
+ "fairwinds",
1319
+ "faith",
1320
+ "family",
1321
+ "fan",
1322
+ "fans",
1323
+ "farm",
1324
+ "farmers",
1325
+ "fashion",
1326
+ "fast",
1327
+ "fedex",
1328
+ "feedback",
1329
+ "ferrari",
1330
+ "ferrero",
1331
+ "fi",
1332
+ "fidelity",
1333
+ "fido",
1334
+ "film",
1335
+ "final",
1336
+ "finance",
1337
+ "financial",
1338
+ "fire",
1339
+ "firestone",
1340
+ "firmdale",
1341
+ "fish",
1342
+ "fishing",
1343
+ "fit",
1344
+ "fitness",
1345
+ "fj",
1346
+ "fk",
1347
+ "flickr",
1348
+ "flights",
1349
+ "flir",
1350
+ "florist",
1351
+ "flowers",
1352
+ "fly",
1353
+ "fm",
1354
+ "fo",
1355
+ "foo",
1356
+ "food",
1357
+ "football",
1358
+ "ford",
1359
+ "forex",
1360
+ "forsale",
1361
+ "forum",
1362
+ "foundation",
1363
+ "fox",
1364
+ "fr",
1365
+ "free",
1366
+ "fresenius",
1367
+ "frl",
1368
+ "frogans",
1369
+ "frontier",
1370
+ "ftr",
1371
+ "fujitsu",
1372
+ "fun",
1373
+ "fund",
1374
+ "furniture",
1375
+ "futbol",
1376
+ "fyi",
1377
+ "ga",
1378
+ "gal",
1379
+ "gallery",
1380
+ "gallo",
1381
+ "gallup",
1382
+ "game",
1383
+ "games",
1384
+ "gap",
1385
+ "garden",
1386
+ "gay",
1387
+ "gb",
1388
+ "gbiz",
1389
+ "gd",
1390
+ "gdn",
1391
+ "ge",
1392
+ "gea",
1393
+ "gent",
1394
+ "genting",
1395
+ "george",
1396
+ "gf",
1397
+ "gg",
1398
+ "ggee",
1399
+ "gh",
1400
+ "gi",
1401
+ "gift",
1402
+ "gifts",
1403
+ "gives",
1404
+ "giving",
1405
+ "gl",
1406
+ "glass",
1407
+ "gle",
1408
+ "global",
1409
+ "globo",
1410
+ "gm",
1411
+ "gmail",
1412
+ "gmbh",
1413
+ "gmo",
1414
+ "gmx",
1415
+ "gn",
1416
+ "godaddy",
1417
+ "gold",
1418
+ "goldpoint",
1419
+ "golf",
1420
+ "goo",
1421
+ "goodyear",
1422
+ "goog",
1423
+ "google",
1424
+ "gop",
1425
+ "got",
1426
+ "gov",
1427
+ "gp",
1428
+ "gq",
1429
+ "gr",
1430
+ "grainger",
1431
+ "graphics",
1432
+ "gratis",
1433
+ "green",
1434
+ "gripe",
1435
+ "grocery",
1436
+ "group",
1437
+ "gs",
1438
+ "gt",
1439
+ "gu",
1440
+ "guardian",
1441
+ "gucci",
1442
+ "guge",
1443
+ "guide",
1444
+ "guitars",
1445
+ "guru",
1446
+ "gw",
1447
+ "gy",
1448
+ "hair",
1449
+ "hamburg",
1450
+ "hangout",
1451
+ "haus",
1452
+ "hbo",
1453
+ "hdfc",
1454
+ "hdfcbank",
1455
+ "health",
1456
+ "healthcare",
1457
+ "help",
1458
+ "helsinki",
1459
+ "here",
1460
+ "hermes",
1461
+ "hiphop",
1462
+ "hisamitsu",
1463
+ "hitachi",
1464
+ "hiv",
1465
+ "hk",
1466
+ "hkt",
1467
+ "hm",
1468
+ "hn",
1469
+ "hockey",
1470
+ "holdings",
1471
+ "holiday",
1472
+ "homedepot",
1473
+ "homegoods",
1474
+ "homes",
1475
+ "homesense",
1476
+ "honda",
1477
+ "horse",
1478
+ "hospital",
1479
+ "host",
1480
+ "hosting",
1481
+ "hot",
1482
+ "hotels",
1483
+ "hotmail",
1484
+ "house",
1485
+ "how",
1486
+ "hr",
1487
+ "hsbc",
1488
+ "ht",
1489
+ "hu",
1490
+ "hughes",
1491
+ "hyatt",
1492
+ "hyundai",
1493
+ "ibm",
1494
+ "icbc",
1495
+ "ice",
1496
+ "icu",
1497
+ "id",
1498
+ "ie",
1499
+ "ieee",
1500
+ "ifm",
1501
+ "ikano",
1502
+ "il",
1503
+ "im",
1504
+ "imamat",
1505
+ "imdb",
1506
+ "immo",
1507
+ "immobilien",
1508
+ "in",
1509
+ "inc",
1510
+ "industries",
1511
+ "infiniti",
1512
+ "info",
1513
+ "ing",
1514
+ "ink",
1515
+ "institute",
1516
+ "insurance",
1517
+ "insure",
1518
+ "int",
1519
+ "international",
1520
+ "intuit",
1521
+ "investments",
1522
+ "io",
1523
+ "ipiranga",
1524
+ "iq",
1525
+ "ir",
1526
+ "irish",
1527
+ "is",
1528
+ "ismaili",
1529
+ "ist",
1530
+ "istanbul",
1531
+ "it",
1532
+ "itau",
1533
+ "itv",
1534
+ "jaguar",
1535
+ "java",
1536
+ "jcb",
1537
+ "je",
1538
+ "jeep",
1539
+ "jetzt",
1540
+ "jewelry",
1541
+ "jio",
1542
+ "jll",
1543
+ "jm",
1544
+ "jmp",
1545
+ "jnj",
1546
+ "jo",
1547
+ "jobs",
1548
+ "joburg",
1549
+ "jot",
1550
+ "joy",
1551
+ "jp",
1552
+ "jpmorgan",
1553
+ "jprs",
1554
+ "juegos",
1555
+ "juniper",
1556
+ "kaufen",
1557
+ "kddi",
1558
+ "ke",
1559
+ "kerryhotels",
1560
+ "kerrylogistics",
1561
+ "kerryproperties",
1562
+ "kfh",
1563
+ "kg",
1564
+ "kh",
1565
+ "ki",
1566
+ "kia",
1567
+ "kids",
1568
+ "kim",
1569
+ "kindle",
1570
+ "kitchen",
1571
+ "kiwi",
1572
+ "km",
1573
+ "kn",
1574
+ "koeln",
1575
+ "komatsu",
1576
+ "kosher",
1577
+ "kp",
1578
+ "kpmg",
1579
+ "kpn",
1580
+ "kr",
1581
+ "krd",
1582
+ "kred",
1583
+ "kuokgroup",
1584
+ "kw",
1585
+ "ky",
1586
+ "kyoto",
1587
+ "kz",
1588
+ "la",
1589
+ "lacaixa",
1590
+ "lamborghini",
1591
+ "lamer",
1592
+ "lancaster",
1593
+ "land",
1594
+ "landrover",
1595
+ "lanxess",
1596
+ "lasalle",
1597
+ "lat",
1598
+ "latino",
1599
+ "latrobe",
1600
+ "law",
1601
+ "lawyer",
1602
+ "lb",
1603
+ "lc",
1604
+ "lds",
1605
+ "lease",
1606
+ "leclerc",
1607
+ "lefrak",
1608
+ "legal",
1609
+ "lego",
1610
+ "lexus",
1611
+ "lgbt",
1612
+ "li",
1613
+ "lidl",
1614
+ "life",
1615
+ "lifeinsurance",
1616
+ "lifestyle",
1617
+ "lighting",
1618
+ "like",
1619
+ "lilly",
1620
+ "limited",
1621
+ "limo",
1622
+ "lincoln",
1623
+ "link",
1624
+ "lipsy",
1625
+ "live",
1626
+ "living",
1627
+ "lk",
1628
+ "llc",
1629
+ "llp",
1630
+ "loan",
1631
+ "loans",
1632
+ "locker",
1633
+ "locus",
1634
+ "lol",
1635
+ "london",
1636
+ "lotte",
1637
+ "lotto",
1638
+ "love",
1639
+ "lpl",
1640
+ "lplfinancial",
1641
+ "lr",
1642
+ "ls",
1643
+ "lt",
1644
+ "ltd",
1645
+ "ltda",
1646
+ "lu",
1647
+ "lundbeck",
1648
+ "luxe",
1649
+ "luxury",
1650
+ "lv",
1651
+ "ly",
1652
+ "ma",
1653
+ "madrid",
1654
+ "maif",
1655
+ "maison",
1656
+ "makeup",
1657
+ "man",
1658
+ "management",
1659
+ "mango",
1660
+ "map",
1661
+ "market",
1662
+ "marketing",
1663
+ "markets",
1664
+ "marriott",
1665
+ "marshalls",
1666
+ "mattel",
1667
+ "mba",
1668
+ "mc",
1669
+ "mckinsey",
1670
+ "md",
1671
+ "me",
1672
+ "med",
1673
+ "media",
1674
+ "meet",
1675
+ "melbourne",
1676
+ "meme",
1677
+ "memorial",
1678
+ "men",
1679
+ "menu",
1680
+ "merckmsd",
1681
+ "mg",
1682
+ "mh",
1683
+ "miami",
1684
+ "microsoft",
1685
+ "mil",
1686
+ "mini",
1687
+ "mint",
1688
+ "mit",
1689
+ "mitsubishi",
1690
+ "mk",
1691
+ "ml",
1692
+ "mlb",
1693
+ "mls",
1694
+ "mm",
1695
+ "mma",
1696
+ "mn",
1697
+ "mo",
1698
+ "mobi",
1699
+ "mobile",
1700
+ "moda",
1701
+ "moe",
1702
+ "moi",
1703
+ "mom",
1704
+ "monash",
1705
+ "money",
1706
+ "monster",
1707
+ "mormon",
1708
+ "mortgage",
1709
+ "moscow",
1710
+ "moto",
1711
+ "motorcycles",
1712
+ "mov",
1713
+ "movie",
1714
+ "mp",
1715
+ "mq",
1716
+ "mr",
1717
+ "ms",
1718
+ "msd",
1719
+ "mt",
1720
+ "mtn",
1721
+ "mtr",
1722
+ "mu",
1723
+ "museum",
1724
+ "music",
1725
+ "mv",
1726
+ "mw",
1727
+ "mx",
1728
+ "my",
1729
+ "mz",
1730
+ "na",
1731
+ "nab",
1732
+ "nagoya",
1733
+ "name",
1734
+ "natura",
1735
+ "navy",
1736
+ "nba",
1737
+ "nc",
1738
+ "ne",
1739
+ "nec",
1740
+ "net",
1741
+ "netbank",
1742
+ "netflix",
1743
+ "network",
1744
+ "neustar",
1745
+ "new",
1746
+ "news",
1747
+ "next",
1748
+ "nextdirect",
1749
+ "nexus",
1750
+ "nf",
1751
+ "nfl",
1752
+ "ng",
1753
+ "ngo",
1754
+ "nhk",
1755
+ "ni",
1756
+ "nico",
1757
+ "nike",
1758
+ "nikon",
1759
+ "ninja",
1760
+ "nissan",
1761
+ "nissay",
1762
+ "nl",
1763
+ "no",
1764
+ "nokia",
1765
+ "norton",
1766
+ "now",
1767
+ "nowruz",
1768
+ "nowtv",
1769
+ "np",
1770
+ "nr",
1771
+ "nra",
1772
+ "nrw",
1773
+ "ntt",
1774
+ "nu",
1775
+ "nyc",
1776
+ "nz",
1777
+ "obi",
1778
+ "observer",
1779
+ "office",
1780
+ "okinawa",
1781
+ "olayan",
1782
+ "olayangroup",
1783
+ "oldnavy",
1784
+ "ollo",
1785
+ "om",
1786
+ "omega",
1787
+ "one",
1788
+ "ong",
1789
+ "onl",
1790
+ "online",
1791
+ "ooo",
1792
+ "open",
1793
+ "oracle",
1794
+ "orange",
1795
+ "org",
1796
+ "organic",
1797
+ "origins",
1798
+ "osaka",
1799
+ "otsuka",
1800
+ "ott",
1801
+ "ovh",
1802
+ "pa",
1803
+ "page",
1804
+ "panasonic",
1805
+ "paris",
1806
+ "pars",
1807
+ "partners",
1808
+ "parts",
1809
+ "party",
1810
+ "pay",
1811
+ "pccw",
1812
+ "pe",
1813
+ "pet",
1814
+ "pf",
1815
+ "pfizer",
1816
+ "pg",
1817
+ "ph",
1818
+ "pharmacy",
1819
+ "phd",
1820
+ "philips",
1821
+ "phone",
1822
+ "photo",
1823
+ "photography",
1824
+ "photos",
1825
+ "physio",
1826
+ "pics",
1827
+ "pictet",
1828
+ "pictures",
1829
+ "pid",
1830
+ "pin",
1831
+ "ping",
1832
+ "pink",
1833
+ "pioneer",
1834
+ "pizza",
1835
+ "pk",
1836
+ "pl",
1837
+ "place",
1838
+ "play",
1839
+ "playstation",
1840
+ "plumbing",
1841
+ "plus",
1842
+ "pm",
1843
+ "pn",
1844
+ "pnc",
1845
+ "pohl",
1846
+ "poker",
1847
+ "politie",
1848
+ "porn",
1849
+ "post",
1850
+ "pr",
1851
+ "pramerica",
1852
+ "praxi",
1853
+ "press",
1854
+ "prime",
1855
+ "pro",
1856
+ "prod",
1857
+ "productions",
1858
+ "prof",
1859
+ "progressive",
1860
+ "promo",
1861
+ "properties",
1862
+ "property",
1863
+ "protection",
1864
+ "pru",
1865
+ "prudential",
1866
+ "ps",
1867
+ "pt",
1868
+ "pub",
1869
+ "pw",
1870
+ "pwc",
1871
+ "py",
1872
+ "qa",
1873
+ "qpon",
1874
+ "quebec",
1875
+ "quest",
1876
+ "racing",
1877
+ "radio",
1878
+ "re",
1879
+ "read",
1880
+ "realestate",
1881
+ "realtor",
1882
+ "realty",
1883
+ "recipes",
1884
+ "red",
1885
+ "redstone",
1886
+ "redumbrella",
1887
+ "rehab",
1888
+ "reise",
1889
+ "reisen",
1890
+ "reit",
1891
+ "reliance",
1892
+ "ren",
1893
+ "rent",
1894
+ "rentals",
1895
+ "repair",
1896
+ "report",
1897
+ "republican",
1898
+ "rest",
1899
+ "restaurant",
1900
+ "review",
1901
+ "reviews",
1902
+ "rexroth",
1903
+ "rich",
1904
+ "richardli",
1905
+ "ricoh",
1906
+ "ril",
1907
+ "rio",
1908
+ "rip",
1909
+ "ro",
1910
+ "rocks",
1911
+ "rodeo",
1912
+ "rogers",
1913
+ "room",
1914
+ "rs",
1915
+ "rsvp",
1916
+ "ru",
1917
+ "rugby",
1918
+ "ruhr",
1919
+ "run",
1920
+ "rw",
1921
+ "rwe",
1922
+ "ryukyu",
1923
+ "sa",
1924
+ "saarland",
1925
+ "safe",
1926
+ "safety",
1927
+ "sakura",
1928
+ "sale",
1929
+ "salon",
1930
+ "samsclub",
1931
+ "samsung",
1932
+ "sandvik",
1933
+ "sandvikcoromant",
1934
+ "sanofi",
1935
+ "sap",
1936
+ "sarl",
1937
+ "sas",
1938
+ "save",
1939
+ "saxo",
1940
+ "sb",
1941
+ "sbi",
1942
+ "sbs",
1943
+ "sc",
1944
+ "sca",
1945
+ "scb",
1946
+ "schaeffler",
1947
+ "schmidt",
1948
+ "scholarships",
1949
+ "school",
1950
+ "schule",
1951
+ "schwarz",
1952
+ "science",
1953
+ "scot",
1954
+ "sd",
1955
+ "se",
1956
+ "search",
1957
+ "seat",
1958
+ "secure",
1959
+ "security",
1960
+ "seek",
1961
+ "select",
1962
+ "sener",
1963
+ "services",
1964
+ "seven",
1965
+ "sew",
1966
+ "sex",
1967
+ "sexy",
1968
+ "sfr",
1969
+ "sg",
1970
+ "sh",
1971
+ "shangrila",
1972
+ "sharp",
1973
+ "shaw",
1974
+ "shell",
1975
+ "shia",
1976
+ "shiksha",
1977
+ "shoes",
1978
+ "shop",
1979
+ "shopping",
1980
+ "shouji",
1981
+ "show",
1982
+ "si",
1983
+ "silk",
1984
+ "sina",
1985
+ "singles",
1986
+ "site",
1987
+ "sj",
1988
+ "sk",
1989
+ "ski",
1990
+ "skin",
1991
+ "sky",
1992
+ "skype",
1993
+ "sl",
1994
+ "sling",
1995
+ "sm",
1996
+ "smart",
1997
+ "smile",
1998
+ "sn",
1999
+ "sncf",
2000
+ "so",
2001
+ "soccer",
2002
+ "social",
2003
+ "softbank",
2004
+ "software",
2005
+ "sohu",
2006
+ "solar",
2007
+ "solutions",
2008
+ "song",
2009
+ "sony",
2010
+ "soy",
2011
+ "spa",
2012
+ "space",
2013
+ "sport",
2014
+ "spot",
2015
+ "sr",
2016
+ "srl",
2017
+ "ss",
2018
+ "st",
2019
+ "stada",
2020
+ "staples",
2021
+ "star",
2022
+ "statebank",
2023
+ "statefarm",
2024
+ "stc",
2025
+ "stcgroup",
2026
+ "stockholm",
2027
+ "storage",
2028
+ "store",
2029
+ "stream",
2030
+ "studio",
2031
+ "study",
2032
+ "style",
2033
+ "su",
2034
+ "sucks",
2035
+ "supplies",
2036
+ "supply",
2037
+ "support",
2038
+ "surf",
2039
+ "surgery",
2040
+ "suzuki",
2041
+ "sv",
2042
+ "swatch",
2043
+ "swiss",
2044
+ "sx",
2045
+ "sy",
2046
+ "sydney",
2047
+ "systems",
2048
+ "sz",
2049
+ "tab",
2050
+ "taipei",
2051
+ "talk",
2052
+ "taobao",
2053
+ "target",
2054
+ "tatamotors",
2055
+ "tatar",
2056
+ "tattoo",
2057
+ "tax",
2058
+ "taxi",
2059
+ "tc",
2060
+ "tci",
2061
+ "td",
2062
+ "tdk",
2063
+ "team",
2064
+ "tech",
2065
+ "technology",
2066
+ "tel",
2067
+ "temasek",
2068
+ "tennis",
2069
+ "teva",
2070
+ "tf",
2071
+ "tg",
2072
+ "th",
2073
+ "thd",
2074
+ "theater",
2075
+ "theatre",
2076
+ "tiaa",
2077
+ "tickets",
2078
+ "tienda",
2079
+ "tips",
2080
+ "tires",
2081
+ "tirol",
2082
+ "tj",
2083
+ "tjmaxx",
2084
+ "tjx",
2085
+ "tk",
2086
+ "tkmaxx",
2087
+ "tl",
2088
+ "tm",
2089
+ "tmall",
2090
+ "tn",
2091
+ "to",
2092
+ "today",
2093
+ "tokyo",
2094
+ "tools",
2095
+ "top",
2096
+ "toray",
2097
+ "toshiba",
2098
+ "total",
2099
+ "tours",
2100
+ "town",
2101
+ "toyota",
2102
+ "toys",
2103
+ "tr",
2104
+ "trade",
2105
+ "trading",
2106
+ "training",
2107
+ "travel",
2108
+ "travelers",
2109
+ "travelersinsurance",
2110
+ "trust",
2111
+ "trv",
2112
+ "tt",
2113
+ "tube",
2114
+ "tui",
2115
+ "tunes",
2116
+ "tushu",
2117
+ "tv",
2118
+ "tvs",
2119
+ "tw",
2120
+ "tz",
2121
+ "ua",
2122
+ "ubank",
2123
+ "ubs",
2124
+ "ug",
2125
+ "uk",
2126
+ "unicom",
2127
+ "university",
2128
+ "uno",
2129
+ "uol",
2130
+ "ups",
2131
+ "us",
2132
+ "uy",
2133
+ "uz",
2134
+ "va",
2135
+ "vacations",
2136
+ "vana",
2137
+ "vanguard",
2138
+ "vc",
2139
+ "ve",
2140
+ "vegas",
2141
+ "ventures",
2142
+ "verisign",
2143
+ "vermögensberater",
2144
+ "vermögensberatung",
2145
+ "versicherung",
2146
+ "vet",
2147
+ "vg",
2148
+ "vi",
2149
+ "viajes",
2150
+ "video",
2151
+ "vig",
2152
+ "viking",
2153
+ "villas",
2154
+ "vin",
2155
+ "vip",
2156
+ "virgin",
2157
+ "visa",
2158
+ "vision",
2159
+ "viva",
2160
+ "vivo",
2161
+ "vlaanderen",
2162
+ "vn",
2163
+ "vodka",
2164
+ "volkswagen",
2165
+ "volvo",
2166
+ "vote",
2167
+ "voting",
2168
+ "voto",
2169
+ "voyage",
2170
+ "vu",
2171
+ "wales",
2172
+ "walmart",
2173
+ "walter",
2174
+ "wang",
2175
+ "wanggou",
2176
+ "watch",
2177
+ "watches",
2178
+ "weather",
2179
+ "weatherchannel",
2180
+ "webcam",
2181
+ "weber",
2182
+ "website",
2183
+ "wed",
2184
+ "wedding",
2185
+ "weibo",
2186
+ "weir",
2187
+ "wf",
2188
+ "whoswho",
2189
+ "wien",
2190
+ "wiki",
2191
+ "williamhill",
2192
+ "win",
2193
+ "windows",
2194
+ "wine",
2195
+ "winners",
2196
+ "wme",
2197
+ "wolterskluwer",
2198
+ "woodside",
2199
+ "work",
2200
+ "works",
2201
+ "world",
2202
+ "wow",
2203
+ "ws",
2204
+ "wtc",
2205
+ "wtf",
2206
+ "xbox",
2207
+ "xerox",
2208
+ "xfinity",
2209
+ "xihuan",
2210
+ "xin",
2211
+ "xxx",
2212
+ "xyz",
2213
+ "yachts",
2214
+ "yahoo",
2215
+ "yamaxun",
2216
+ "yandex",
2217
+ "ye",
2218
+ "yodobashi",
2219
+ "yoga",
2220
+ "yokohama",
2221
+ "you",
2222
+ "youtube",
2223
+ "yt",
2224
+ "yun",
2225
+ "za",
2226
+ "zappos",
2227
+ "zara",
2228
+ "zero",
2229
+ "zip",
2230
+ "zm",
2231
+ "zone",
2232
+ "zuerich",
2233
+ "zw",
2234
+ "ελ",
2235
+ "ευ",
2236
+ "бг",
2237
+ "бел",
2238
+ "дети",
2239
+ "ею",
2240
+ "католик",
2241
+ "ком",
2242
+ "мкд",
2243
+ "мон",
2244
+ "москва",
2245
+ "онлайн",
2246
+ "орг",
2247
+ "рус",
2248
+ "рф",
2249
+ "сайт",
2250
+ "срб",
2251
+ "укр",
2252
+ "қаз",
2253
+ "հայ",
2254
+ "ישראל",
2255
+ "קום",
2256
+ "ابوظبي",
2257
+ "اتصالات",
2258
+ "ارامكو",
2259
+ "الاردن",
2260
+ "البحرين",
2261
+ "الجزائر",
2262
+ "السعودية",
2263
+ "العليان",
2264
+ "المغرب",
2265
+ "امارات",
2266
+ "ایران",
2267
+ "بارت",
2268
+ "بازار",
2269
+ "بيتك",
2270
+ "بھارت",
2271
+ "تونس",
2272
+ "سودان",
2273
+ "سورية",
2274
+ "شبكة",
2275
+ "عراق",
2276
+ "عرب",
2277
+ "عمان",
2278
+ "فلسطين",
2279
+ "قطر",
2280
+ "كاثوليك",
2281
+ "كوم",
2282
+ "مصر",
2283
+ "مليسيا",
2284
+ "موريتانيا",
2285
+ "موقع",
2286
+ "همراه",
2287
+ "پاکستان",
2288
+ "ڀارت",
2289
+ "कॉम",
2290
+ "नेट",
2291
+ "भारत",
2292
+ "भारतम्",
2293
+ "भारोत",
2294
+ "संगठन",
2295
+ "বাংলা",
2296
+ "ভারত",
2297
+ "ভাৰত",
2298
+ "ਭਾਰਤ",
2299
+ "ભારત",
2300
+ "ଭାରତ",
2301
+ "இந்தியா",
2302
+ "இலங்கை",
2303
+ "சிங்கப்பூர்",
2304
+ "భారత్",
2305
+ "ಭಾರತ",
2306
+ "ഭാരതം",
2307
+ "ලංකා",
2308
+ "คอม",
2309
+ "ไทย",
2310
+ "ລາວ",
2311
+ "გე",
2312
+ "みんな",
2313
+ "アマゾン",
2314
+ "クラウド",
2315
+ "グーグル",
2316
+ "コム",
2317
+ "ストア",
2318
+ "セール",
2319
+ "ファッション",
2320
+ "ポイント",
2321
+ "世界",
2322
+ "中信",
2323
+ "中国",
2324
+ "中國",
2325
+ "中文网",
2326
+ "亚马逊",
2327
+ "企业",
2328
+ "佛山",
2329
+ "信息",
2330
+ "健康",
2331
+ "八卦",
2332
+ "公司",
2333
+ "公益",
2334
+ "台湾",
2335
+ "台灣",
2336
+ "商城",
2337
+ "商店",
2338
+ "商标",
2339
+ "嘉里",
2340
+ "嘉里大酒店",
2341
+ "在线",
2342
+ "大拿",
2343
+ "天主教",
2344
+ "娱乐",
2345
+ "家電",
2346
+ "广东",
2347
+ "微博",
2348
+ "慈善",
2349
+ "我爱你",
2350
+ "手机",
2351
+ "招聘",
2352
+ "政务",
2353
+ "政府",
2354
+ "新加坡",
2355
+ "新闻",
2356
+ "时尚",
2357
+ "書籍",
2358
+ "机构",
2359
+ "淡马锡",
2360
+ "游戏",
2361
+ "澳門",
2362
+ "点看",
2363
+ "移动",
2364
+ "组织机构",
2365
+ "网址",
2366
+ "网店",
2367
+ "网站",
2368
+ "网络",
2369
+ "联通",
2370
+ "谷歌",
2371
+ "购物",
2372
+ "通販",
2373
+ "集团",
2374
+ "電訊盈科",
2375
+ "飞利浦",
2376
+ "食品",
2377
+ "餐厅",
2378
+ "香格里拉",
2379
+ "香港",
2380
+ "닷넷",
2381
+ "닷컴",
2382
+ "삼성",
2383
+ "한국"
2384
+ ];
2385
+
2386
+ Object.defineProperty(defaultMatchDecorator, "__esModule", {
2387
+ value: true
2388
+ });
2389
+
2390
+ var _linkifyIt = linkifyIt;
2391
+
2392
+ var _linkifyIt2 = _interopRequireDefault$2(_linkifyIt);
2393
+
2394
+ var _tlds = require$$1;
2395
+
2396
+ var _tlds2 = _interopRequireDefault$2(_tlds);
2397
+
2398
+ function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2399
+
2400
+ var linkify = new _linkifyIt2.default();
2401
+ linkify.tlds(_tlds2.default);
2402
+
2403
+ defaultMatchDecorator.default = function (text) {
2404
+ return linkify.match(text);
2405
+ };
2406
+
2407
+ var defaultTextDecorator = {};
2408
+
2409
+ Object.defineProperty(defaultTextDecorator, "__esModule", {
2410
+ value: true
2411
+ });
2412
+
2413
+ defaultTextDecorator.default = function (text) {
2414
+ return text;
2415
+ };
2416
+
2417
+ Object.defineProperty(Linkify$1, "__esModule", {
2418
+ value: true
2419
+ });
2420
+
2421
+ 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; }; }();
2422
+
2423
+ var _react = React$2;
2424
+
2425
+ var React = _interopRequireWildcard(_react);
2426
+
2427
+ var _defaultComponentDecorator = defaultComponentDecorator;
2428
+
2429
+ var _defaultComponentDecorator2 = _interopRequireDefault$1(_defaultComponentDecorator);
2430
+
2431
+ var _defaultHrefDecorator = defaultHrefDecorator;
2432
+
2433
+ var _defaultHrefDecorator2 = _interopRequireDefault$1(_defaultHrefDecorator);
2434
+
2435
+ var _defaultMatchDecorator = defaultMatchDecorator;
2436
+
2437
+ var _defaultMatchDecorator2 = _interopRequireDefault$1(_defaultMatchDecorator);
2438
+
2439
+ var _defaultTextDecorator = defaultTextDecorator;
2440
+
2441
+ var _defaultTextDecorator2 = _interopRequireDefault$1(_defaultTextDecorator);
2442
+
2443
+ function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2444
+
2445
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
2446
+
2447
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2448
+
2449
+ 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; }
2450
+
2451
+ 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; }
2452
+
2453
+ var Linkify = function (_React$Component) {
2454
+ _inherits(Linkify, _React$Component);
2455
+
2456
+ function Linkify() {
2457
+ _classCallCheck(this, Linkify);
2458
+
2459
+ return _possibleConstructorReturn(this, (Linkify.__proto__ || Object.getPrototypeOf(Linkify)).apply(this, arguments));
2460
+ }
2461
+
2462
+ _createClass(Linkify, [{
2463
+ key: 'parseString',
2464
+ value: function parseString(string) {
2465
+ var _this2 = this;
2466
+
2467
+ if (string === '') {
2468
+ return string;
2469
+ }
2470
+
2471
+ var matches = this.props.matchDecorator(string);
2472
+ if (!matches) {
2473
+ return string;
2474
+ }
2475
+
2476
+ var elements = [];
2477
+ var lastIndex = 0;
2478
+ matches.forEach(function (match, i) {
2479
+ // Push preceding text if there is any
2480
+ if (match.index > lastIndex) {
2481
+ elements.push(string.substring(lastIndex, match.index));
2482
+ }
2483
+
2484
+ var decoratedHref = _this2.props.hrefDecorator(match.url);
2485
+ var decoratedText = _this2.props.textDecorator(match.text);
2486
+ var decoratedComponent = _this2.props.componentDecorator(decoratedHref, decoratedText, i);
2487
+ elements.push(decoratedComponent);
2488
+
2489
+ lastIndex = match.lastIndex;
2490
+ });
2491
+
2492
+ // Push remaining text if there is any
2493
+ if (string.length > lastIndex) {
2494
+ elements.push(string.substring(lastIndex));
2495
+ }
2496
+
2497
+ return elements.length === 1 ? elements[0] : elements;
2498
+ }
2499
+ }, {
2500
+ key: 'parse',
2501
+ value: function parse(children) {
2502
+ var _this3 = this;
2503
+
2504
+ var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
2505
+
2506
+ if (typeof children === 'string') {
2507
+ return this.parseString(children);
2508
+ } else if (React.isValidElement(children) && children.type !== 'a' && children.type !== 'button') {
2509
+ return React.cloneElement(children, { key: key }, this.parse(children.props.children));
2510
+ } else if (Array.isArray(children)) {
2511
+ return children.map(function (child, i) {
2512
+ return _this3.parse(child, i);
2513
+ });
2514
+ }
2515
+
2516
+ return children;
2517
+ }
2518
+ }, {
2519
+ key: 'render',
2520
+ value: function render() {
2521
+ return React.createElement(
2522
+ React.Fragment,
2523
+ null,
2524
+ this.parse(this.props.children)
2525
+ );
2526
+ }
2527
+ }]);
2528
+
2529
+ return Linkify;
2530
+ }(React.Component);
2531
+
2532
+ Linkify.defaultProps = {
2533
+ componentDecorator: _defaultComponentDecorator2.default,
2534
+ hrefDecorator: _defaultHrefDecorator2.default,
2535
+ matchDecorator: _defaultMatchDecorator2.default,
2536
+ textDecorator: _defaultTextDecorator2.default
2537
+ };
2538
+ Linkify$1.default = Linkify;
2539
+
2540
+ Object.defineProperty(dist, "__esModule", {
2541
+ value: true
2542
+ });
2543
+
2544
+ var _Linkify = Linkify$1;
2545
+
2546
+ var _Linkify2 = _interopRequireDefault(_Linkify);
2547
+
2548
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2549
+
2550
+ var _default = dist.default = _Linkify2.default;
2551
+
2552
+ var Address = function Address(_ref) {
2553
+ var responses = _ref.responses;
2554
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2555
+ className: "space-y-2",
2556
+ children: responses.map(function (_ref2, index) {
2557
+ var label = _ref2.label,
2558
+ value = _ref2.value;
2559
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
2560
+ className: "flex min-w-0 items-center gap-2",
2561
+ children: [/*#__PURE__*/jsxRuntime.jsxs(Typography, {
2562
+ className: "neeto-ui-text-gray-600 shrink-0",
2563
+ style: "body2",
2564
+ children: [label, " :"]
2565
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
2566
+ className: "grow truncate overflow-hidden",
2567
+ component: "span",
2568
+ style: "body2",
2569
+ children: value
2570
+ })]
2571
+ }, index);
2572
+ })
2573
+ });
2574
+ };
2575
+
2576
+ var FileUpload = function FileUpload(_ref) {
2577
+ var files = _ref.files;
2578
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2579
+ className: "space-y-2",
2580
+ children: files === null || files === void 0 ? void 0 : files.map(function (_ref2, index) {
2581
+ var url = _ref2.url,
2582
+ name = _ref2.name;
2583
+ return /*#__PURE__*/jsxRuntime.jsx(Typography, {
2584
+ className: "break-all",
2585
+ style: "body2",
2586
+ children: /*#__PURE__*/jsxRuntime.jsx(_default, {
2587
+ componentDecorator: function componentDecorator() {
2588
+ return linkifyDecorator(url, name, index);
2589
+ },
2590
+ children: url
2591
+ })
2592
+ }, index);
2593
+ })
2594
+ });
2595
+ };
2596
+
2597
+ function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2598
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2599
+ var LinkifiedText = function LinkifiedText(_ref) {
2600
+ var value = _ref.value,
2601
+ answerProps = _ref.answerProps;
2602
+ return /*#__PURE__*/jsxRuntime.jsx(Typography, _objectSpread$1(_objectSpread$1({
2603
+ className: "whitespace-pre-line",
2604
+ weight: "semibold"
2605
+ }, answerProps), {}, {
2606
+ children: /*#__PURE__*/jsxRuntime.jsx(_default, {
2607
+ componentDecorator: linkifyDecorator,
2608
+ children: value
2609
+ })
2610
+ }));
2611
+ };
2612
+ var normalizeName = function normalizeName(normalizedResponses, response) {
2613
+ var isSplitMode = response.isSplitMode,
2614
+ fullNameLabel = response.fullNameLabel,
2615
+ firstNameLabel = response.firstNameLabel,
2616
+ lastNameLabel = response.lastNameLabel,
2617
+ _response$value = response.value,
2618
+ _response$value2 = _response$value === void 0 ? {
2619
+ fullName: "",
2620
+ firstName: "",
2621
+ lastName: ""
2622
+ } : _response$value,
2623
+ _response$value2$full = _response$value2.fullName,
2624
+ fullName = _response$value2$full === void 0 ? "" : _response$value2$full,
2625
+ _response$value2$firs = _response$value2.firstName,
2626
+ firstName = _response$value2$firs === void 0 ? "" : _response$value2$firs,
2627
+ _response$value2$last = _response$value2.lastName,
2628
+ lastName = _response$value2$last === void 0 ? "" : _response$value2$last;
2629
+ if (isSplitMode) {
2630
+ normalizedResponses.push({
2631
+ value: firstName,
2632
+ label: firstNameLabel
2633
+ });
2634
+ normalizedResponses.push({
2635
+ value: lastName,
2636
+ label: lastNameLabel
2637
+ });
2638
+ } else {
2639
+ normalizedResponses.push({
2640
+ value: fullName,
2641
+ label: fullNameLabel
2642
+ });
2643
+ }
2644
+ };
2645
+ var normalizeResponses = function normalizeResponses(_ref2) {
2646
+ var responses = _ref2.responses,
2647
+ omitKinds = _ref2.omitKinds,
2648
+ answerProps = _ref2.answerProps;
2649
+ var normalizedResponses = [];
2650
+ responses.forEach(function (response) {
2651
+ var kind = response.kind;
2652
+ var label = response.label;
2653
+ var value = response.value;
2654
+ if (omitKinds.includes(kind)) return;
2655
+ if (kind === constants.QUESTION_TYPES.RICH_TEXT && utils.isEditorEmpty(value)) {
2656
+ normalizedResponses.push({
2657
+ label: label,
2658
+ value: /*#__PURE__*/jsxRuntime.jsx("i", {
2659
+ children: i18next.t("neetoForm.common.unanswered")
2660
+ })
2661
+ });
2662
+ return;
2663
+ }
2664
+
2665
+ // Name field doesn't have "label"
2666
+ if (kind !== constants.QUESTION_TYPES.NAME && ramda.isEmpty(value)) {
2667
+ normalizedResponses.push({
2668
+ label: label,
2669
+ value: /*#__PURE__*/jsxRuntime.jsx("i", {
2670
+ children: i18next.t("neetoForm.common.unanswered")
2671
+ })
2672
+ });
2673
+ return;
2674
+ }
2675
+ if (kind === constants.QUESTION_TYPES.NAME) {
2676
+ normalizeName(normalizedResponses, response);
2677
+ } else if (kind === constants.QUESTION_TYPES.EMAIL) {
2678
+ normalizedResponses.push({
2679
+ label: label,
2680
+ value: /*#__PURE__*/jsxRuntime.jsxs("div", {
2681
+ className: "flex items-center gap-2",
2682
+ children: [/*#__PURE__*/jsxRuntime.jsx(LinkifiedText, {
2683
+ answerProps: answerProps,
2684
+ value: value
2685
+ }), /*#__PURE__*/jsxRuntime.jsx(CopyToClipboardButton, {
2686
+ value: value,
2687
+ className: "shrink-0",
2688
+ "data-testid": "copy-button",
2689
+ size: "small",
2690
+ style: "text"
2691
+ })]
2692
+ })
2693
+ });
2694
+ } else if (kind === constants.QUESTION_TYPES.ADDITIONAL_GUESTS) {
2695
+ if (neetoCist.isNotPresent(value)) return;
2696
+ normalizedResponses.push({
2697
+ label: label,
2698
+ value: value.join(", ")
2699
+ });
2700
+ } else if (kind === constants.QUESTION_TYPES.FILE_UPLOAD) {
2701
+ normalizedResponses.push({
2702
+ label: label,
2703
+ value: /*#__PURE__*/jsxRuntime.jsx(FileUpload, {
2704
+ files: value
2705
+ })
2706
+ });
2707
+ } else if (kind === constants.QUESTION_TYPES.ADDRESS) {
2708
+ normalizedResponses.push({
2709
+ label: label,
2710
+ value: /*#__PURE__*/jsxRuntime.jsx(Address, {
2711
+ responses: value
2712
+ })
2713
+ });
2714
+ } else if (kind === constants.QUESTION_TYPES.DATE) {
2715
+ normalizedResponses.push({
2716
+ label: label,
2717
+ value: utils$1.dateFormat.date(value)
2718
+ });
2719
+ } else if ([constants.QUESTION_TYPES.PHONE, constants.QUESTION_TYPES.SMS_REMINDER].includes(kind)) {
2720
+ normalizedResponses.push({
2721
+ label: label,
2722
+ value: /*#__PURE__*/jsxRuntime.jsx(PhoneNumber.PhoneNumber, {
2723
+ value: value,
2724
+ showEmoji: true
2725
+ })
2726
+ });
2727
+ } else if (kind === constants.QUESTION_TYPES.RICH_TEXT) {
2728
+ // TODO test when rich text field is empty
2729
+ normalizedResponses.push({
2730
+ label: label,
2731
+ value: /*#__PURE__*/jsxRuntime.jsx(EditorContent, {
2732
+ content: value
2733
+ })
2734
+ });
2735
+ } else if (kind === constants.QUESTION_TYPES.CONDITION) {
2736
+ normalizedResponses.push({
2737
+ label: label,
2738
+ value: value.toLowerCase() === "true" ? i18next.t("neetoForm.common.yes") : i18next.t("neetoForm.common.no")
2739
+ });
2740
+ } else {
2741
+ normalizedResponses.push({
2742
+ label: label,
2743
+ value: /*#__PURE__*/jsxRuntime.jsx(LinkifiedText, {
2744
+ answerProps: answerProps,
2745
+ value: value
2746
+ })
2747
+ });
2748
+ }
2749
+ });
2750
+ return normalizedResponses;
2751
+ };
2752
+ var linkifyDecorator = function linkifyDecorator(decoratedHref, decoratedText, key) {
2753
+ return /*#__PURE__*/jsxRuntime.jsx("a", {
2754
+ className: "neeto-ui-text-accent-800 hover:neeto-ui-text-accent-800",
2755
+ href: decoratedHref,
2756
+ rel: "noreferrer",
2757
+ target: "_blank",
2758
+ children: decoratedText
2759
+ }, key);
2760
+ };
2761
+
2762
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2763
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2764
+ var Submission = function Submission(_ref) {
2765
+ var _ref$formId = _ref.formId,
2766
+ formId = _ref$formId === void 0 ? "" : _ref$formId,
2767
+ _ref$submissionId = _ref.submissionId,
2768
+ submissionId = _ref$submissionId === void 0 ? "" : _ref$submissionId,
2769
+ _ref$className = _ref.className,
2770
+ className = _ref$className === void 0 ? "" : _ref$className,
2771
+ _ref$fetchPublicSubmi = _ref.fetchPublicSubmission,
2772
+ fetchPublicSubmission = _ref$fetchPublicSubmi === void 0 ? true : _ref$fetchPublicSubmi,
2773
+ _ref$questionLabelPro = _ref.questionLabelProps,
2774
+ questionLabelProps = _ref$questionLabelPro === void 0 ? {} : _ref$questionLabelPro,
2775
+ _ref$answerProps = _ref.answerProps,
2776
+ answerProps = _ref$answerProps === void 0 ? {} : _ref$answerProps,
2777
+ _ref$omitKinds = _ref.omitKinds,
2778
+ omitKinds = _ref$omitKinds === void 0 ? [] : _ref$omitKinds;
2779
+ var _useSubmission = constants.useSubmission({
2780
+ formId: formId,
2781
+ submissionId: submissionId,
2782
+ fetchPublicSubmission: fetchPublicSubmission,
2783
+ enabled: !!(formId && submissionId)
2784
+ }),
2785
+ _useSubmission$data = _useSubmission.data,
2786
+ _useSubmission$data2 = _useSubmission$data === void 0 ? {
2787
+ responses: []
2788
+ } : _useSubmission$data,
2789
+ responses = _useSubmission$data2.responses,
2790
+ isLoading = _useSubmission.isLoading;
2791
+ var normalizedResponses = normalizeResponses({
2792
+ responses: responses,
2793
+ omitKinds: omitKinds,
2794
+ answerProps: answerProps
2795
+ });
2796
+ Honeybadger.setContext({
2797
+ responses: responses
2798
+ });
2799
+ if (isLoading) {
2800
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2801
+ className: "flex h-full w-full items-center justify-center",
2802
+ children: /*#__PURE__*/jsxRuntime.jsx(PageLoader, {})
2803
+ });
2804
+ }
2805
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2806
+ className: classnames("mx-auto flex h-full w-full flex-col items-start", _defineProperty({}, className, className)),
2807
+ children: normalizedResponses.map(function (_ref2) {
2808
+ var label = _ref2.label,
2809
+ value = _ref2.value;
2810
+ // React components is also an object, we distinguish them by the ones not having props
2811
+ if (_typeof(value) === "object" && neetoCist.isNotPresent(value.props)) {
2812
+ Honeybadger.notify("value is an object", {
2813
+ context: {
2814
+ value: value,
2815
+ label: label
2816
+ }
2817
+ });
2818
+ }
2819
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
2820
+ className: "mb-4",
2821
+ "data-testid": "booking-response-".concat(neetoCist.hyphenate(label)),
2822
+ children: [/*#__PURE__*/jsxRuntime.jsx(Typography, _objectSpread(_objectSpread({
2823
+ style: "h5",
2824
+ weight: "light"
2825
+ }, questionLabelProps), {}, {
2826
+ children: label
2827
+ })), value]
2828
+ }, label);
2829
+ })
2830
+ });
2831
+ };
2832
+
2833
+ module.exports = Submission;
2834
+ //# sourceMappingURL=Submission.js.map