@subiz/widget-v4 4.0.83 → 4.0.87

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 (85) hide show
  1. package/.prettierrc.js +1 -1
  2. package/compiled_src/chatbox/AgentsAvatar.js +20 -3
  3. package/compiled_src/chatbox/ChatButton.js +11 -8
  4. package/compiled_src/chatbox/Event.js +12 -0
  5. package/compiled_src/chatbox/Events.js +1 -0
  6. package/compiled_src/chatbox/MessageInput.js +6 -0
  7. package/compiled_src/chatbox/Typing.js +1 -1
  8. package/compiled_src/chatbox/Widget.js +50 -38
  9. package/compiled_src/chatbox/main.js +10 -0
  10. package/compiled_src/popup/popup.js +21 -2
  11. package/compiled_src/store/store.js +24 -40
  12. package/compiled_src/util/common.js +10 -10
  13. package/dist/132.js +162 -44
  14. package/dist/178.js +174 -341
  15. package/dist/182ed9b853b.132.js +1 -0
  16. package/dist/182ed9b853b.178.js +1 -0
  17. package/dist/{17f00e48d38.213.js → 182ed9b853b.213.js} +1 -1
  18. package/dist/{17f00e48d38.335.js → 182ed9b853b.335.js} +1 -1
  19. package/dist/182ed9b853b.362.js +1 -0
  20. package/dist/182ed9b853b.441.js +1 -0
  21. package/dist/{17f00e48d38.605.js → 182ed9b853b.605.js} +0 -0
  22. package/dist/182ed9b853b.678.js +1 -0
  23. package/dist/182ed9b853b.782.js +1 -0
  24. package/dist/182ed9b853b.app.js +1 -0
  25. package/dist/{17f00e48d38.index.html → 182ed9b853b.index.html} +7 -3
  26. package/dist/{17f00e48d38.library.html → 182ed9b853b.library.html} +7 -3
  27. package/dist/182ed9b853b.library.js +1 -0
  28. package/dist/{17f00e48d38.preview.html → 182ed9b853b.preview.html} +1 -1
  29. package/dist/182ed9b853b.preview.js +1 -0
  30. package/dist/182ed9b853b.screenshoot.js +1 -0
  31. package/dist/213.js +28 -1
  32. package/dist/335.js +2 -2
  33. package/dist/362.js +21 -71
  34. package/dist/441.js +152 -57
  35. package/dist/678.js +20 -70
  36. package/dist/782.js +21 -118
  37. package/dist/HASH +1 -1
  38. package/dist/screenshoot.html +1 -1
  39. package/dist/screenshoot.js +208 -174
  40. package/index.html +1 -1
  41. package/package.json +16 -16
  42. package/src/chatbox/AgentsAvatar.js +32 -10
  43. package/src/chatbox/ChatButton.js +11 -4
  44. package/src/chatbox/Event.js +23 -4
  45. package/src/chatbox/Events.js +3 -1
  46. package/src/chatbox/MessageInput.js +14 -5
  47. package/src/chatbox/Typing.js +10 -11
  48. package/src/chatbox/Widget.js +17 -11
  49. package/src/chatbox/main.js +8 -1
  50. package/src/popup/popup.js +37 -12
  51. package/src/store/store.js +24 -36
  52. package/src/util/common.js +16 -19
  53. package/dist/0b82fa7e5c3b07b40a44.png +0 -1
  54. package/dist/0f4af006e38ee8b93633.png +0 -1
  55. package/dist/17f00e48d38.132.js +0 -1
  56. package/dist/17f00e48d38.178.js +0 -1
  57. package/dist/17f00e48d38.362.js +0 -1
  58. package/dist/17f00e48d38.441.js +0 -1
  59. package/dist/17f00e48d38.678.js +0 -1
  60. package/dist/17f00e48d38.782.js +0 -1
  61. package/dist/17f00e48d38.app.js +0 -1
  62. package/dist/17f00e48d38.library.js +0 -1
  63. package/dist/17f00e48d38.preview.js +0 -1
  64. package/dist/17f00e48d38.screenshoot.js +0 -1
  65. package/dist/1ea1c6cd21d25176810c.png +0 -1
  66. package/dist/292d42404e1b03398f61.png +0 -1
  67. package/dist/312d376370831b7bea83.png +0 -1
  68. package/dist/313d1bfc1cf776d1aefe.png +0 -1
  69. package/dist/4aa58bb7a66bb44975aa.png +0 -1
  70. package/dist/56ce063bc6c81adb7322.png +0 -1
  71. package/dist/6a411166ef5cc79e0714.png +0 -1
  72. package/dist/6faf403782fefacc1649.png +0 -1
  73. package/dist/79dca33c68fab79c067f.png +0 -1
  74. package/dist/82da1578fa84f9debaeb.png +0 -1
  75. package/dist/8b8e0f0824743974b282.png +0 -1
  76. package/dist/8d551390d81e39130a3c.png +0 -1
  77. package/dist/9fc61b9479877ebdb6c7.png +0 -1
  78. package/dist/a165d31dcb3dc90f1057.png +0 -1
  79. package/dist/a98d4a5698812c4426b3.png +0 -1
  80. package/dist/c41606bf9d1b604e46d5.png +0 -1
  81. package/dist/ce1f7450ce6c1aacd330.png +0 -1
  82. package/dist/cf8c01e88f4770a6e3e5.png +0 -1
  83. package/dist/dfbcfeab1d5622a737e2.png +0 -1
  84. package/dist/e4893ed8c2f7b8329919.png +0 -1
  85. package/dist/ec2ab4eb4ef73d186186.png +0 -1
package/dist/441.js CHANGED
@@ -96,6 +96,9 @@ function escape(html, encode) {
96
96
 
97
97
  const unescapeTest = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
98
98
 
99
+ /**
100
+ * @param {string} html
101
+ */
99
102
  function unescape(html) {
100
103
  // explicitly match decimal, hex, and named HTML entities
101
104
  return html.replace(unescapeTest, (_, n) => {
@@ -111,8 +114,13 @@ function unescape(html) {
111
114
  }
112
115
 
113
116
  const caret = /(^|[^\[])\^/g;
117
+
118
+ /**
119
+ * @param {string | RegExp} regex
120
+ * @param {string} opt
121
+ */
114
122
  function edit(regex, opt) {
115
- regex = regex.source || regex;
123
+ regex = typeof regex === 'string' ? regex : regex.source;
116
124
  opt = opt || '';
117
125
  const obj = {
118
126
  replace: (name, val) => {
@@ -130,6 +138,12 @@ function edit(regex, opt) {
130
138
 
131
139
  const nonWordAndColonTest = /[^\w:]/g;
132
140
  const originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
141
+
142
+ /**
143
+ * @param {boolean} sanitize
144
+ * @param {string} base
145
+ * @param {string} href
146
+ */
133
147
  function cleanUrl(sanitize, base, href) {
134
148
  if (sanitize) {
135
149
  let prot;
@@ -160,6 +174,10 @@ const justDomain = /^[^:]+:\/*[^/]*$/;
160
174
  const protocol = /^([^:]+:)[\s\S]*$/;
161
175
  const domain = /^([^:]+:\/*[^/]*)[\s\S]*$/;
162
176
 
177
+ /**
178
+ * @param {string} base
179
+ * @param {string} href
180
+ */
163
181
  function resolveUrl(base, href) {
164
182
  if (!baseUrls[' ' + base]) {
165
183
  // we can ignore everything in base after the last slash of its path component,
@@ -244,9 +262,14 @@ function splitCells(tableRow, count) {
244
262
  return cells;
245
263
  }
246
264
 
247
- // Remove trailing 'c's. Equivalent to str.replace(/c*$/, '').
248
- // /c*$/ is vulnerable to REDOS.
249
- // invert: Remove suffix of non-c chars instead. Default falsey.
265
+ /**
266
+ * Remove trailing 'c's. Equivalent to str.replace(/c*$/, '').
267
+ * /c*$/ is vulnerable to REDOS.
268
+ *
269
+ * @param {string} str
270
+ * @param {string} c
271
+ * @param {boolean} invert Remove suffix of non-c chars instead. Default falsey.
272
+ */
250
273
  function rtrim(str, c, invert) {
251
274
  const l = str.length;
252
275
  if (l === 0) {
@@ -268,7 +291,7 @@ function rtrim(str, c, invert) {
268
291
  }
269
292
  }
270
293
 
271
- return str.substr(0, l - suffLen);
294
+ return str.slice(0, l - suffLen);
272
295
  }
273
296
 
274
297
  function findClosingBracket(str, b) {
@@ -300,6 +323,10 @@ function checkSanitizeDeprecation(opt) {
300
323
  }
301
324
 
302
325
  // copied from https://stackoverflow.com/a/5450113/806777
326
+ /**
327
+ * @param {string} pattern
328
+ * @param {number} count
329
+ */
303
330
  function repeatString(pattern, count) {
304
331
  if (count < 1) {
305
332
  return '';
@@ -332,15 +359,14 @@ function outputLink(cap, link, raw, lexer) {
332
359
  };
333
360
  lexer.state.inLink = false;
334
361
  return token;
335
- } else {
336
- return {
337
- type: 'image',
338
- raw,
339
- href,
340
- title,
341
- text: escape(text)
342
- };
343
362
  }
363
+ return {
364
+ type: 'image',
365
+ raw,
366
+ href,
367
+ title,
368
+ text: escape(text)
369
+ };
344
370
  }
345
371
 
346
372
  function indentCodeCompensation(raw, text) {
@@ -439,7 +465,7 @@ class Tokenizer {
439
465
  type: 'heading',
440
466
  raw: cap[0],
441
467
  depth: cap[1].length,
442
- text: text,
468
+ text,
443
469
  tokens: []
444
470
  };
445
471
  this.lexer.inline(token.text, token.tokens);
@@ -460,7 +486,7 @@ class Tokenizer {
460
486
  blockquote(src) {
461
487
  const cap = this.rules.block.blockquote.exec(src);
462
488
  if (cap) {
463
- const text = cap[0].replace(/^ *> ?/gm, '');
489
+ const text = cap[0].replace(/^ *>[ \t]?/gm, '');
464
490
 
465
491
  return {
466
492
  type: 'blockquote',
@@ -496,7 +522,7 @@ class Tokenizer {
496
522
  }
497
523
 
498
524
  // Get next list item
499
- const itemRegex = new RegExp(`^( {0,3}${bull})((?: [^\\n]*)?(?:\\n|$))`);
525
+ const itemRegex = new RegExp(`^( {0,3}${bull})((?:[\t ][^\\n]*)?(?:\\n|$))`);
500
526
 
501
527
  // Check if current bullet point can start a new List Item
502
528
  while (src) {
@@ -534,7 +560,10 @@ class Tokenizer {
534
560
  }
535
561
 
536
562
  if (!endEarly) {
537
- const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])`);
563
+ const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`);
564
+ const hrRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);
565
+ const fencesBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:\`\`\`|~~~)`);
566
+ const headingBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}#`);
538
567
 
539
568
  // Check if following lines should be included in List Item
540
569
  while (src) {
@@ -546,11 +575,26 @@ class Tokenizer {
546
575
  line = line.replace(/^ {1,4}(?=( {4})*[^ ])/g, ' ');
547
576
  }
548
577
 
578
+ // End list item if found code fences
579
+ if (fencesBeginRegex.test(line)) {
580
+ break;
581
+ }
582
+
583
+ // End list item if found start of new heading
584
+ if (headingBeginRegex.test(line)) {
585
+ break;
586
+ }
587
+
549
588
  // End list item if found start of new bullet
550
589
  if (nextBulletRegex.test(line)) {
551
590
  break;
552
591
  }
553
592
 
593
+ // Horizontal rule found
594
+ if (hrRegex.test(src)) {
595
+ break;
596
+ }
597
+
554
598
  if (line.search(/[^ ]/) >= indent || !line.trim()) { // Dedent if possible
555
599
  itemContents += '\n' + line.slice(indent);
556
600
  } else if (!blankLine) { // Until blank line, item doesn't need indentation
@@ -588,7 +632,7 @@ class Tokenizer {
588
632
 
589
633
  list.items.push({
590
634
  type: 'list_item',
591
- raw: raw,
635
+ raw,
592
636
  task: !!istask,
593
637
  checked: ischecked,
594
638
  loose: false,
@@ -709,7 +753,7 @@ class Tokenizer {
709
753
  l = item.header.length;
710
754
  for (j = 0; j < l; j++) {
711
755
  item.header[j].tokens = [];
712
- this.lexer.inlineTokens(item.header[j].text, item.header[j].tokens);
756
+ this.lexer.inline(item.header[j].text, item.header[j].tokens);
713
757
  }
714
758
 
715
759
  // cell child tokens
@@ -718,7 +762,7 @@ class Tokenizer {
718
762
  row = item.rows[j];
719
763
  for (k = 0; k < row.length; k++) {
720
764
  row[k].tokens = [];
721
- this.lexer.inlineTokens(row[k].text, row[k].tokens);
765
+ this.lexer.inline(row[k].text, row[k].tokens);
722
766
  }
723
767
  }
724
768
 
@@ -1083,10 +1127,10 @@ const block = {
1083
1127
  newline: /^(?: *(?:\n|$))+/,
1084
1128
  code: /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,
1085
1129
  fences: /^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
1086
- hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,
1130
+ hr: /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,
1087
1131
  heading: /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
1088
1132
  blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
1089
- list: /^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,
1133
+ list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,
1090
1134
  html: '^ {0,3}(?:' // optional indentation
1091
1135
  + '<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)' // (1)
1092
1136
  + '|comment[^\\n]*(\\n+|$)' // (2)
@@ -1240,9 +1284,9 @@ const inline = {
1240
1284
  emStrong: {
1241
1285
  lDelim: /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,
1242
1286
  // (1) and (2) can only be a Right Delimiter. (3) and (4) can only be Left. (5) and (6) can be either Left or Right.
1243
- // () Skip orphan delim inside strong (1) #*** (2) a***#, a*** (3) #***a, ***a (4) ***# (5) #***# (6) a***a
1244
- rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,
1245
- rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ // ^- Not allowed for _
1287
+ // () Skip orphan inside strong () Consume to delim (1) #*** (2) a***#, a*** (3) #***a, ***a (4) ***# (5) #***# (6) a***a
1288
+ rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,
1289
+ rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ // ^- Not allowed for _
1246
1290
  },
1247
1291
  code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
1248
1292
  br: /^( {2,}|\\)\n(?!\s*$)/,
@@ -1375,6 +1419,7 @@ inline.breaks = merge({}, inline.gfm, {
1375
1419
 
1376
1420
  /**
1377
1421
  * smartypants text replacement
1422
+ * @param {string} text
1378
1423
  */
1379
1424
  function smartypants(text) {
1380
1425
  return text
@@ -1396,6 +1441,7 @@ function smartypants(text) {
1396
1441
 
1397
1442
  /**
1398
1443
  * mangle email addresses
1444
+ * @param {string} text
1399
1445
  */
1400
1446
  function mangle(text) {
1401
1447
  let out = '',
@@ -1483,8 +1529,7 @@ class Lexer {
1483
1529
  */
1484
1530
  lex(src) {
1485
1531
  src = src
1486
- .replace(/\r\n|\r/g, '\n')
1487
- .replace(/\t/g, ' ');
1532
+ .replace(/\r\n|\r/g, '\n');
1488
1533
 
1489
1534
  this.blockTokens(src, this.tokens);
1490
1535
 
@@ -1501,8 +1546,13 @@ class Lexer {
1501
1546
  */
1502
1547
  blockTokens(src, tokens = []) {
1503
1548
  if (this.options.pedantic) {
1504
- src = src.replace(/^ +$/gm, '');
1549
+ src = src.replace(/\t/g, ' ').replace(/^ +$/gm, '');
1550
+ } else {
1551
+ src = src.replace(/^( *)(\t+)/gm, (_, leading, tabs) => {
1552
+ return leading + ' '.repeat(tabs.length);
1553
+ });
1505
1554
  }
1555
+
1506
1556
  let token, lastToken, cutSrc, lastParagraphClipped;
1507
1557
 
1508
1558
  while (src) {
@@ -1680,8 +1730,9 @@ class Lexer {
1680
1730
  return tokens;
1681
1731
  }
1682
1732
 
1683
- inline(src, tokens) {
1733
+ inline(src, tokens = []) {
1684
1734
  this.inlineQueue.push({ src, tokens });
1735
+ return tokens;
1685
1736
  }
1686
1737
 
1687
1738
  /**
@@ -1898,29 +1949,31 @@ class Renderer {
1898
1949
  + '</code></pre>\n';
1899
1950
  }
1900
1951
 
1952
+ /**
1953
+ * @param {string} quote
1954
+ */
1901
1955
  blockquote(quote) {
1902
- return '<blockquote>\n' + quote + '</blockquote>\n';
1956
+ return `<blockquote>\n${quote}</blockquote>\n`;
1903
1957
  }
1904
1958
 
1905
1959
  html(html) {
1906
1960
  return html;
1907
1961
  }
1908
1962
 
1963
+ /**
1964
+ * @param {string} text
1965
+ * @param {string} level
1966
+ * @param {string} raw
1967
+ * @param {any} slugger
1968
+ */
1909
1969
  heading(text, level, raw, slugger) {
1910
1970
  if (this.options.headerIds) {
1911
- return '<h'
1912
- + level
1913
- + ' id="'
1914
- + this.options.headerPrefix
1915
- + slugger.slug(raw)
1916
- + '">'
1917
- + text
1918
- + '</h'
1919
- + level
1920
- + '>\n';
1971
+ const id = this.options.headerPrefix + slugger.slug(raw);
1972
+ return `<h${level} id="${id}">${text}</h${level}>\n`;
1921
1973
  }
1974
+
1922
1975
  // ignore IDs
1923
- return '<h' + level + '>' + text + '</h' + level + '>\n';
1976
+ return `<h${level}>${text}</h${level}>\n`;
1924
1977
  }
1925
1978
 
1926
1979
  hr() {
@@ -1933,8 +1986,11 @@ class Renderer {
1933
1986
  return '<' + type + startatt + '>\n' + body + '</' + type + '>\n';
1934
1987
  }
1935
1988
 
1989
+ /**
1990
+ * @param {string} text
1991
+ */
1936
1992
  listitem(text) {
1937
- return '<li>' + text + '</li>\n';
1993
+ return `<li>${text}</li>\n`;
1938
1994
  }
1939
1995
 
1940
1996
  checkbox(checked) {
@@ -1945,12 +2001,19 @@ class Renderer {
1945
2001
  + '> ';
1946
2002
  }
1947
2003
 
2004
+ /**
2005
+ * @param {string} text
2006
+ */
1948
2007
  paragraph(text) {
1949
- return '<p>' + text + '</p>\n';
2008
+ return `<p>${text}</p>\n`;
1950
2009
  }
1951
2010
 
2011
+ /**
2012
+ * @param {string} header
2013
+ * @param {string} body
2014
+ */
1952
2015
  table(header, body) {
1953
- if (body) body = '<tbody>' + body + '</tbody>';
2016
+ if (body) body = `<tbody>${body}</tbody>`;
1954
2017
 
1955
2018
  return '<table>\n'
1956
2019
  + '<thead>\n'
@@ -1960,39 +2023,59 @@ class Renderer {
1960
2023
  + '</table>\n';
1961
2024
  }
1962
2025
 
2026
+ /**
2027
+ * @param {string} content
2028
+ */
1963
2029
  tablerow(content) {
1964
- return '<tr>\n' + content + '</tr>\n';
2030
+ return `<tr>\n${content}</tr>\n`;
1965
2031
  }
1966
2032
 
1967
2033
  tablecell(content, flags) {
1968
2034
  const type = flags.header ? 'th' : 'td';
1969
2035
  const tag = flags.align
1970
- ? '<' + type + ' align="' + flags.align + '">'
1971
- : '<' + type + '>';
1972
- return tag + content + '</' + type + '>\n';
2036
+ ? `<${type} align="${flags.align}">`
2037
+ : `<${type}>`;
2038
+ return tag + content + `</${type}>\n`;
1973
2039
  }
1974
2040
 
1975
- // span level renderer
2041
+ /**
2042
+ * span level renderer
2043
+ * @param {string} text
2044
+ */
1976
2045
  strong(text) {
1977
- return '<strong>' + text + '</strong>';
2046
+ return `<strong>${text}</strong>`;
1978
2047
  }
1979
2048
 
2049
+ /**
2050
+ * @param {string} text
2051
+ */
1980
2052
  em(text) {
1981
- return '<em>' + text + '</em>';
2053
+ return `<em>${text}</em>`;
1982
2054
  }
1983
2055
 
2056
+ /**
2057
+ * @param {string} text
2058
+ */
1984
2059
  codespan(text) {
1985
- return '<code>' + text + '</code>';
2060
+ return `<code>${text}</code>`;
1986
2061
  }
1987
2062
 
1988
2063
  br() {
1989
2064
  return this.options.xhtml ? '<br/>' : '<br>';
1990
2065
  }
1991
2066
 
2067
+ /**
2068
+ * @param {string} text
2069
+ */
1992
2070
  del(text) {
1993
- return '<del>' + text + '</del>';
2071
+ return `<del>${text}</del>`;
1994
2072
  }
1995
2073
 
2074
+ /**
2075
+ * @param {string} href
2076
+ * @param {string} title
2077
+ * @param {string} text
2078
+ */
1996
2079
  link(href, title, text) {
1997
2080
  href = cleanUrl(this.options.sanitize, this.options.baseUrl, href);
1998
2081
  if (href === null) {
@@ -2006,15 +2089,20 @@ class Renderer {
2006
2089
  return out;
2007
2090
  }
2008
2091
 
2092
+ /**
2093
+ * @param {string} href
2094
+ * @param {string} title
2095
+ * @param {string} text
2096
+ */
2009
2097
  image(href, title, text) {
2010
2098
  href = cleanUrl(this.options.sanitize, this.options.baseUrl, href);
2011
2099
  if (href === null) {
2012
2100
  return text;
2013
2101
  }
2014
2102
 
2015
- let out = '<img src="' + href + '" alt="' + text + '"';
2103
+ let out = `<img src="${href}" alt="${text}"`;
2016
2104
  if (title) {
2017
- out += ' title="' + title + '"';
2105
+ out += ` title="${title}"`;
2018
2106
  }
2019
2107
  out += this.options.xhtml ? '/>' : '>';
2020
2108
  return out;
@@ -2076,6 +2164,9 @@ class Slugger {
2076
2164
  this.seen = {};
2077
2165
  }
2078
2166
 
2167
+ /**
2168
+ * @param {string} value
2169
+ */
2079
2170
  serialize(value) {
2080
2171
  return value
2081
2172
  .toLowerCase()
@@ -2089,6 +2180,8 @@ class Slugger {
2089
2180
 
2090
2181
  /**
2091
2182
  * Finds the next safe (unique) slug to use
2183
+ * @param {string} originalSlug
2184
+ * @param {boolean} isDryRun
2092
2185
  */
2093
2186
  getNextSafeSlug(originalSlug, isDryRun) {
2094
2187
  let slug = originalSlug;
@@ -2109,8 +2202,9 @@ class Slugger {
2109
2202
 
2110
2203
  /**
2111
2204
  * Convert string to unique id
2112
- * @param {object} options
2113
- * @param {boolean} options.dryrun Generates the next unique slug without updating the internal accumulator.
2205
+ * @param {object} [options]
2206
+ * @param {boolean} [options.dryrun] Generates the next unique slug without
2207
+ * updating the internal accumulator.
2114
2208
  */
2115
2209
  slug(value, options = {}) {
2116
2210
  const slug = this.serialize(value);
@@ -2671,6 +2765,7 @@ marked.walkTokens = function(tokens, callback) {
2671
2765
 
2672
2766
  /**
2673
2767
  * Parse Inline
2768
+ * @param {string} src
2674
2769
  */
2675
2770
  marked.parseInline = function(src, opt) {
2676
2771
  // throw error in case of non string input
package/dist/678.js CHANGED
@@ -19,14 +19,11 @@ __webpack_require__.r(__webpack_exports__);
19
19
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20
20
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21
21
  /* harmony export */ });
22
- /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8081);
23
- /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
24
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3645);
25
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
22
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
23
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
26
24
  // Imports
27
25
 
28
-
29
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
26
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
30
27
  // Module
31
28
  ___CSS_LOADER_EXPORT___.push([module.id, "/*\n#sbz92 * {\n\tall: unset !important;\n}\n\n#sbz92 {\n\tz-index: @z-index + 100 !important;\n\t#makeImportant() !important;\n}\n\n// prevent #subiz inheriting client site styles\ndiv#sbz92 {\n\tall: initial;\n}\n\n// prevent #subiz inheriting client site !important styles\nbody div#sbz92 {\n\tall: initial !important;\n}\n\nbody div#sbz92 .overlay {\n\tposition: fixed !important;\n\tuser-select: none !important;\n}\n*/\n#sbz92 {\n z-index: 2000000100 !important;\n /* Handle on hover */\n}\n#sbz92 *,\n#sbz92 *::before,\n#sbz92 *::after {\n box-sizing: border-box;\n}\n#sbz92 [tabindex='-1']:focus:not(:focus-visible) {\n outline: 0;\n}\n#sbz92 b,\n#sbz92 strong {\n font-weight: 500;\n}\n#sbz92 a {\n color: #020202;\n text-decoration: none;\n background-color: transparent;\n}\n#sbz92 a:hover {\n cursor: pointer;\n color: #000000;\n text-decoration: underline;\n}\n#sbz92 a:not([href]) {\n color: inherit;\n text-decoration: none;\n}\n#sbz92 a:not([href]):hover {\n color: inherit;\n text-decoration: none;\n}\n#sbz92 img {\n vertical-align: middle;\n border-style: none;\n}\n#sbz92 svg {\n overflow: hidden;\n vertical-align: middle;\n}\n#sbz92 label {\n display: inline-block;\n}\n#sbz92 button {\n border-radius: 0;\n}\n#sbz92 button:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n#sbz92 input,\n#sbz92 button,\n#sbz92 select,\n#sbz92 optgroup,\n#sbz92 textarea {\n margin: 0;\n}\n#sbz92 button,\n#sbz92 input {\n overflow: visible;\n}\n#sbz92 button,\n#sbz92 select {\n text-transform: none;\n}\n#sbz92 select {\n word-wrap: normal;\n}\n#sbz92 button,\n#sbz92 [type=\"button\"],\n#sbz92 [type=\"reset\"],\n#sbz92 [type=\"submit\"] {\n -webkit-appearance: button;\n}\n#sbz92 button:not(:disabled),\n#sbz92 [type='button']:not(:disabled),\n#sbz92 [type='reset']:not(:disabled),\n#sbz92 [type='submit']:not(:disabled) {\n cursor: pointer;\n}\n#sbz92 button::-moz-focus-inner,\n#sbz92 [type='button']::-moz-focus-inner,\n#sbz92 [type='reset']::-moz-focus-inner,\n#sbz92 [type='submit']::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n#sbz92 input[type='radio'],\n#sbz92 input[type='checkbox'] {\n box-sizing: border-box;\n padding: 0;\n}\n#sbz92 input[type='date'],\n#sbz92 input[type='time'],\n#sbz92 input[type='datetime-local'],\n#sbz92 input[type='month'] {\n -webkit-appearance: listbox;\n}\n#sbz92 textarea {\n overflow: auto;\n resize: vertical;\n}\n#sbz92 [type='number']::-webkit-inner-spin-button,\n#sbz92 [type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n#sbz92 [hidden] {\n display: none;\n}\n#sbz92 ::-webkit-input-placeholder {\n /* Edge */\n color: #777;\n}\n#sbz92 :-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n color: #777;\n}\n#sbz92 ::placeholder {\n color: #777;\n}\n#sbz92 div {\n display: block;\n text-rendering: geometricPrecision;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n#sbz92 ::-webkit-scrollbar {\n width: 7px;\n height: 7px;\n}\n#sbz92 ::-webkit-scrollbar-track {\n border-radius: 10px;\n}\n#sbz92 ::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background: #d6d6d6;\n}\n#sbz92 ::-webkit-scrollbar-thumb:hover {\n background: #aaa;\n}\n#sbz92 .overlay {\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: #000c;\n z-index: 20000000000100;\n overflow: auto;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n#sbz92 .overlay.overlay__hidden {\n display: none;\n}\n#sbz92 .map_modal {\n max-with: 80%;\n max-height: 80%;\n width: 400px;\n height: 400px;\n background: white;\n}\n#sbz92 .map_body {\n width: 100%;\n height: 100%;\n display: flex;\n}\n#sbz92 .map_location {\n border-bottom: 1px solid lightgray;\n padding: 20px;\n font-size: 16px;\n font-family: 'roboto';\n}\n#sbz92 .map_title {\n font-size: 18px;\n font-weight: 500;\n padding: 10px;\n text-align: center;\n border-bottom: 1px solid lightgray;\n font-family: 'roboto';\n}\n#sbz92 .map_locations {\n border-right: 1px solid lightgray;\n width: 200px;\n height: 100%;\n}\n#sbz92 .sm.contact_button {\n width: 40px;\n height: 40px;\n}\n#sbz92 .lg.contact_button {\n width: 60px;\n height: 60px;\n}\n#sbz92 .contact_button {\n width: 50px;\n height: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background: pink;\n}\n", ""]);
32
29
  // Exports
@@ -44,55 +41,37 @@ ___CSS_LOADER_EXPORT___.push([module.id, "/*\n#sbz92 * {\n\tall: unset !importan
44
41
  MIT License http://www.opensource.org/licenses/mit-license.php
45
42
  Author Tobias Koppers @sokra
46
43
  */
44
+ // css base code, injected by the css-loader
45
+ // eslint-disable-next-line func-names
47
46
  module.exports = function (cssWithMappingToString) {
48
47
  var list = []; // return the list of modules as css string
49
48
 
50
49
  list.toString = function toString() {
51
50
  return this.map(function (item) {
52
- var content = "";
53
- var needLayer = typeof item[5] !== "undefined";
54
-
55
- if (item[4]) {
56
- content += "@supports (".concat(item[4], ") {");
57
- }
51
+ var content = cssWithMappingToString(item);
58
52
 
59
53
  if (item[2]) {
60
- content += "@media ".concat(item[2], " {");
61
- }
62
-
63
- if (needLayer) {
64
- content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
65
- }
66
-
67
- content += cssWithMappingToString(item);
68
-
69
- if (needLayer) {
70
- content += "}";
71
- }
72
-
73
- if (item[2]) {
74
- content += "}";
75
- }
76
-
77
- if (item[4]) {
78
- content += "}";
54
+ return "@media ".concat(item[2], " {").concat(content, "}");
79
55
  }
80
56
 
81
57
  return content;
82
58
  }).join("");
83
59
  }; // import a list of modules into the list
60
+ // eslint-disable-next-line func-names
84
61
 
85
62
 
86
- list.i = function i(modules, media, dedupe, supports, layer) {
63
+ list.i = function (modules, mediaQuery, dedupe) {
87
64
  if (typeof modules === "string") {
88
- modules = [[null, modules, undefined]];
65
+ // eslint-disable-next-line no-param-reassign
66
+ modules = [[null, modules, ""]];
89
67
  }
90
68
 
91
69
  var alreadyImportedModules = {};
92
70
 
93
71
  if (dedupe) {
94
- for (var k = 0; k < this.length; k++) {
95
- var id = this[k][0];
72
+ for (var i = 0; i < this.length; i++) {
73
+ // eslint-disable-next-line prefer-destructuring
74
+ var id = this[i][0];
96
75
 
97
76
  if (id != null) {
98
77
  alreadyImportedModules[id] = true;
@@ -100,37 +79,19 @@ module.exports = function (cssWithMappingToString) {
100
79
  }
101
80
  }
102
81
 
103
- for (var _k = 0; _k < modules.length; _k++) {
104
- var item = [].concat(modules[_k]);
82
+ for (var _i = 0; _i < modules.length; _i++) {
83
+ var item = [].concat(modules[_i]);
105
84
 
106
85
  if (dedupe && alreadyImportedModules[item[0]]) {
86
+ // eslint-disable-next-line no-continue
107
87
  continue;
108
88
  }
109
89
 
110
- if (typeof layer !== "undefined") {
111
- if (typeof item[5] === "undefined") {
112
- item[5] = layer;
113
- } else {
114
- item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
115
- item[5] = layer;
116
- }
117
- }
118
-
119
- if (media) {
90
+ if (mediaQuery) {
120
91
  if (!item[2]) {
121
- item[2] = media;
92
+ item[2] = mediaQuery;
122
93
  } else {
123
- item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
124
- item[2] = media;
125
- }
126
- }
127
-
128
- if (supports) {
129
- if (!item[4]) {
130
- item[4] = "".concat(supports);
131
- } else {
132
- item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
133
- item[4] = supports;
94
+ item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
134
95
  }
135
96
  }
136
97
 
@@ -141,17 +102,6 @@ module.exports = function (cssWithMappingToString) {
141
102
  return list;
142
103
  };
143
104
 
144
- /***/ }),
145
-
146
- /***/ 8081:
147
- /***/ ((module) => {
148
-
149
-
150
-
151
- module.exports = function (i) {
152
- return i[1];
153
- };
154
-
155
105
  /***/ })
156
106
 
157
107
  }]);