@bigbinary/neeto-form-frontend 4.4.5 → 4.4.7

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