@ianicdev/datatables2 0.8.10 → 0.8.12

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 (49) hide show
  1. package/dist/Columns-9ukAZbwF.cjs +1 -0
  2. package/dist/Columns-BiIuzmZZ.js +28 -0
  3. package/dist/Comparison-BqTSsCLG.js +37 -0
  4. package/dist/Comparison-C6FIMUxe.cjs +1 -0
  5. package/dist/Datepicker-BVJaLzUE.cjs +1 -0
  6. package/dist/Datepicker-DFx2oByi.js +1246 -0
  7. package/dist/Download-C0jtXXJ0.js +164 -0
  8. package/dist/Download-CaNb669s.cjs +1 -0
  9. package/dist/Options-Bi0Fh84a.js +82 -0
  10. package/dist/Options-C6N7gzNo.cjs +1 -0
  11. package/dist/RefreshTable-DkVAsqS-.cjs +1 -0
  12. package/dist/RefreshTable-uBvnLVYW.js +26 -0
  13. package/dist/Search-6OIEj95Z.cjs +1 -0
  14. package/dist/Search-BlL-TqMI.js +72 -0
  15. package/dist/Table-BXmDR-au.js +64 -0
  16. package/dist/Table-CgJuX8RC.cjs +1 -0
  17. package/dist/TableServer-BU69vzbr.cjs +27 -0
  18. package/dist/TableServer-Dz-lY5mC.js +3937 -0
  19. package/dist/cellRender-CCUl5aCk.js +2269 -0
  20. package/dist/cellRender-CQYi-Dxl.cjs +1 -0
  21. package/dist/{dataTables-BBRhRgv5.js → dataTables-C3xrvV6a.js} +1535 -1470
  22. package/dist/dataTables-N06kO-u5.cjs +4 -0
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/datatables2.css +1 -1
  26. package/dist/escapeKeyString-B_mzfoez.js +17 -0
  27. package/dist/escapeKeyString-CQVlwp30.cjs +1 -0
  28. package/dist/exporttocsv-CUWOZ1Z_.js +88 -0
  29. package/dist/exporttocsv-RZvZEhmM.cjs +6 -0
  30. package/dist/filesaver-Deatpm3H.cjs +1 -0
  31. package/dist/filesaver-K4_fCr7v.js +75 -0
  32. package/dist/index-D5UVkV64.cjs +1 -0
  33. package/dist/index-DfHaDUjK.cjs +1 -0
  34. package/dist/index-DgwAqbjp.js +4316 -0
  35. package/dist/index-iDjxmkCZ.js +79 -0
  36. package/dist/{index.es-DaUkOvpZ.cjs → index.es-B0GUE7KM.cjs} +6 -6
  37. package/dist/{index.es-CP6kYYvo.js → index.es-sKSodxcW.js} +4 -3
  38. package/dist/jspdf-BDkAtFGI.cjs +194 -0
  39. package/dist/jspdf-CzuJJB6C.js +10998 -0
  40. package/dist/printjs-BbgDICDe.cjs +1 -0
  41. package/dist/printjs-kC3Qmb-l.js +689 -0
  42. package/dist/sortablejs-BhPwT7wS.cjs +6 -0
  43. package/dist/sortablejs-DSHM8iDp.js +1260 -0
  44. package/dist/xlsx-BBXALOAs.cjs +128 -0
  45. package/dist/xlsx-vtl6oPEm.js +15887 -0
  46. package/package.json +4 -4
  47. package/dist/dataTables-D3_DIrV3.cjs +0 -4
  48. package/dist/index-BLaSKZac.cjs +0 -357
  49. package/dist/index-CY13y4ao.js +0 -41216
@@ -0,0 +1,689 @@
1
+ var S = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function w(g) {
3
+ return g && g.__esModule && Object.prototype.hasOwnProperty.call(g, "default") ? g.default : g;
4
+ }
5
+ var j = { exports: {} }, M;
6
+ function C() {
7
+ return M || (M = 1, (function(g, P) {
8
+ (function(a, n) {
9
+ g.exports = n();
10
+ })(window, function() {
11
+ return (
12
+ /******/
13
+ (function(h) {
14
+ var a = {};
15
+ function n(o) {
16
+ if (a[o])
17
+ return a[o].exports;
18
+ var s = a[o] = {
19
+ /******/
20
+ i: o,
21
+ /******/
22
+ l: !1,
23
+ /******/
24
+ exports: {}
25
+ /******/
26
+ };
27
+ return h[o].call(s.exports, s, s.exports, n), s.l = !0, s.exports;
28
+ }
29
+ return n.m = h, n.c = a, n.d = function(o, s, f) {
30
+ n.o(o, s) || Object.defineProperty(o, s, { enumerable: !0, get: f });
31
+ }, n.r = function(o) {
32
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(o, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(o, "__esModule", { value: !0 });
33
+ }, n.t = function(o, s) {
34
+ if (s & 1 && (o = n(o)), s & 8 || s & 4 && typeof o == "object" && o && o.__esModule) return o;
35
+ var f = /* @__PURE__ */ Object.create(null);
36
+ if (n.r(f), Object.defineProperty(f, "default", { enumerable: !0, value: o }), s & 2 && typeof o != "string") for (var b in o) n.d(f, b, (function(i) {
37
+ return o[i];
38
+ }).bind(null, b));
39
+ return f;
40
+ }, n.n = function(o) {
41
+ var s = o && o.__esModule ? (
42
+ /******/
43
+ function() {
44
+ return o.default;
45
+ }
46
+ ) : (
47
+ /******/
48
+ function() {
49
+ return o;
50
+ }
51
+ );
52
+ return n.d(s, "a", s), s;
53
+ }, n.o = function(o, s) {
54
+ return Object.prototype.hasOwnProperty.call(o, s);
55
+ }, n.p = "", n(n.s = 0);
56
+ })({
57
+ /***/
58
+ "./src/index.js": (
59
+ /*!**********************!*\
60
+ !*** ./src/index.js ***!
61
+ \**********************/
62
+ /*! exports provided: default */
63
+ /***/
64
+ (function(h, a, n) {
65
+ n.r(a), n(
66
+ /*! ./sass/index.scss */
67
+ "./src/sass/index.scss"
68
+ );
69
+ var o = n(
70
+ /*! ./js/init */
71
+ "./src/js/init.js"
72
+ ), s = o.default.init;
73
+ typeof window < "u" && (window.printJS = s), a.default = s;
74
+ })
75
+ ),
76
+ /***/
77
+ "./src/js/browser.js": (
78
+ /*!***************************!*\
79
+ !*** ./src/js/browser.js ***!
80
+ \***************************/
81
+ /*! exports provided: default */
82
+ /***/
83
+ (function(h, a, n) {
84
+ n.r(a);
85
+ var o = {
86
+ // Firefox 1.0+
87
+ isFirefox: function() {
88
+ return typeof InstallTrigger < "u";
89
+ },
90
+ // Internet Explorer 6-11
91
+ isIE: function() {
92
+ return navigator.userAgent.indexOf("MSIE") !== -1 || !!document.documentMode;
93
+ },
94
+ // Edge 20+
95
+ isEdge: function() {
96
+ return !o.isIE() && !!window.StyleMedia;
97
+ },
98
+ // Chrome 1+
99
+ isChrome: function() {
100
+ var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
101
+ return !!f.chrome;
102
+ },
103
+ // At least Safari 3+: "[object HTMLElementConstructor]"
104
+ isSafari: function() {
105
+ return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 || navigator.userAgent.toLowerCase().indexOf("safari") !== -1;
106
+ },
107
+ // IOS Chrome
108
+ isIOSChrome: function() {
109
+ return navigator.userAgent.toLowerCase().indexOf("crios") !== -1;
110
+ }
111
+ };
112
+ a.default = o;
113
+ })
114
+ ),
115
+ /***/
116
+ "./src/js/functions.js": (
117
+ /*!*****************************!*\
118
+ !*** ./src/js/functions.js ***!
119
+ \*****************************/
120
+ /*! exports provided: addWrapper, capitalizePrint, collectStyles, addHeader, cleanUp, isRawHTML */
121
+ /***/
122
+ (function(h, a, n) {
123
+ n.r(a), n.d(a, "addWrapper", function() {
124
+ return b;
125
+ }), n.d(a, "capitalizePrint", function() {
126
+ return i;
127
+ }), n.d(a, "collectStyles", function() {
128
+ return l;
129
+ }), n.d(a, "addHeader", function() {
130
+ return e;
131
+ }), n.d(a, "cleanUp", function() {
132
+ return u;
133
+ }), n.d(a, "isRawHTML", function() {
134
+ return y;
135
+ });
136
+ var o = n(
137
+ /*! ./modal */
138
+ "./src/js/modal.js"
139
+ ), s = n(
140
+ /*! ./browser */
141
+ "./src/js/browser.js"
142
+ );
143
+ function f(t) {
144
+ "@babel/helpers - typeof";
145
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? f = function(c) {
146
+ return typeof c;
147
+ } : f = function(c) {
148
+ return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c;
149
+ }, f(t);
150
+ }
151
+ function b(t, d) {
152
+ var c = "font-family:" + d.font + " !important; font-size: " + d.font_size + " !important; width:100%;";
153
+ return '<div style="' + c + '">' + t + "</div>";
154
+ }
155
+ function i(t) {
156
+ return t.charAt(0).toUpperCase() + t.slice(1);
157
+ }
158
+ function l(t, d) {
159
+ for (var c = document.defaultView || window, E = "", p = c.getComputedStyle(t, ""), m = 0; m < p.length; m++)
160
+ (d.targetStyles.indexOf("*") !== -1 || d.targetStyle.indexOf(p[m]) !== -1 || r(d.targetStyles, p[m])) && p.getPropertyValue(p[m]) && (E += p[m] + ":" + p.getPropertyValue(p[m]) + ";");
161
+ return E += "max-width: " + d.maxWidth + "px !important; font-size: " + d.font_size + " !important;", E;
162
+ }
163
+ function r(t, d) {
164
+ for (var c = 0; c < t.length; c++)
165
+ if (f(d) === "object" && d.indexOf(t[c]) !== -1) return !0;
166
+ return !1;
167
+ }
168
+ function e(t, d) {
169
+ var c = document.createElement("div");
170
+ if (y(d.header))
171
+ c.innerHTML = d.header;
172
+ else {
173
+ var E = document.createElement("h1"), p = document.createTextNode(d.header);
174
+ E.appendChild(p), E.setAttribute("style", d.headerStyle), c.appendChild(E);
175
+ }
176
+ t.insertBefore(c, t.childNodes[0]);
177
+ }
178
+ function u(t) {
179
+ t.showModal && o.default.close(), t.onLoadingEnd && t.onLoadingEnd(), (t.showModal || t.onLoadingStart) && window.URL.revokeObjectURL(t.printable);
180
+ var d = "mouseover";
181
+ (s.default.isChrome() || s.default.isFirefox()) && (d = "focus");
182
+ var c = function E() {
183
+ window.removeEventListener(d, E), t.onPrintDialogClose();
184
+ var p = document.getElementById(t.frameId);
185
+ p && p.remove();
186
+ };
187
+ window.addEventListener(d, c);
188
+ }
189
+ function y(t) {
190
+ var d = new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");
191
+ return d.test(t);
192
+ }
193
+ })
194
+ ),
195
+ /***/
196
+ "./src/js/html.js": (
197
+ /*!************************!*\
198
+ !*** ./src/js/html.js ***!
199
+ \************************/
200
+ /*! exports provided: default */
201
+ /***/
202
+ (function(h, a, n) {
203
+ n.r(a);
204
+ var o = n(
205
+ /*! ./functions */
206
+ "./src/js/functions.js"
207
+ ), s = n(
208
+ /*! ./print */
209
+ "./src/js/print.js"
210
+ );
211
+ function f(l) {
212
+ "@babel/helpers - typeof";
213
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? f = function(e) {
214
+ return typeof e;
215
+ } : f = function(e) {
216
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
217
+ }, f(l);
218
+ }
219
+ a.default = {
220
+ print: function(r, e) {
221
+ var u = i(r.printable) ? r.printable : document.getElementById(r.printable);
222
+ if (!u) {
223
+ window.console.error("Invalid HTML element id: " + r.printable);
224
+ return;
225
+ }
226
+ r.printableElement = b(u, r), r.header && Object(o.addHeader)(r.printableElement, r), s.default.send(r, e);
227
+ }
228
+ };
229
+ function b(l, r) {
230
+ for (var e = l.cloneNode(), u = Array.prototype.slice.call(l.childNodes), y = 0; y < u.length; y++)
231
+ if (r.ignoreElements.indexOf(u[y].id) === -1) {
232
+ var t = b(u[y], r);
233
+ e.appendChild(t);
234
+ }
235
+ switch (r.scanStyles && l.nodeType === 1 && e.setAttribute("style", Object(o.collectStyles)(l, r)), l.tagName) {
236
+ case "SELECT":
237
+ e.value = l.value;
238
+ break;
239
+ case "CANVAS":
240
+ e.getContext("2d").drawImage(l, 0, 0);
241
+ break;
242
+ }
243
+ return e;
244
+ }
245
+ function i(l) {
246
+ return f(l) === "object" && l && (l instanceof HTMLElement || l.nodeType === 1);
247
+ }
248
+ })
249
+ ),
250
+ /***/
251
+ "./src/js/image.js": (
252
+ /*!*************************!*\
253
+ !*** ./src/js/image.js ***!
254
+ \*************************/
255
+ /*! exports provided: default */
256
+ /***/
257
+ (function(h, a, n) {
258
+ n.r(a);
259
+ var o = n(
260
+ /*! ./functions */
261
+ "./src/js/functions.js"
262
+ ), s = n(
263
+ /*! ./print */
264
+ "./src/js/print.js"
265
+ ), f = n(
266
+ /*! ./browser */
267
+ "./src/js/browser.js"
268
+ );
269
+ a.default = {
270
+ print: function(i, l) {
271
+ i.printable.constructor !== Array && (i.printable = [i.printable]), i.printableElement = document.createElement("div"), i.printable.forEach(function(r) {
272
+ var e = document.createElement("img");
273
+ if (e.setAttribute("style", i.imageStyle), e.src = r, f.default.isFirefox()) {
274
+ var u = e.src;
275
+ e.src = u;
276
+ }
277
+ var y = document.createElement("div");
278
+ y.appendChild(e), i.printableElement.appendChild(y);
279
+ }), i.header && Object(o.addHeader)(i.printableElement, i), s.default.send(i, l);
280
+ }
281
+ };
282
+ })
283
+ ),
284
+ /***/
285
+ "./src/js/init.js": (
286
+ /*!************************!*\
287
+ !*** ./src/js/init.js ***!
288
+ \************************/
289
+ /*! exports provided: default */
290
+ /***/
291
+ (function(h, a, n) {
292
+ n.r(a);
293
+ var o = n(
294
+ /*! ./browser */
295
+ "./src/js/browser.js"
296
+ ), s = n(
297
+ /*! ./modal */
298
+ "./src/js/modal.js"
299
+ ), f = n(
300
+ /*! ./pdf */
301
+ "./src/js/pdf.js"
302
+ ), b = n(
303
+ /*! ./html */
304
+ "./src/js/html.js"
305
+ ), i = n(
306
+ /*! ./raw-html */
307
+ "./src/js/raw-html.js"
308
+ ), l = n(
309
+ /*! ./image */
310
+ "./src/js/image.js"
311
+ ), r = n(
312
+ /*! ./json */
313
+ "./src/js/json.js"
314
+ );
315
+ function e(y) {
316
+ "@babel/helpers - typeof";
317
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? e = function(d) {
318
+ return typeof d;
319
+ } : e = function(d) {
320
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
321
+ }, e(y);
322
+ }
323
+ var u = ["pdf", "html", "image", "json", "raw-html"];
324
+ a.default = {
325
+ init: function() {
326
+ var t = {
327
+ printable: null,
328
+ fallbackPrintable: null,
329
+ type: "pdf",
330
+ header: null,
331
+ headerStyle: "font-weight: 300;",
332
+ maxWidth: 800,
333
+ properties: null,
334
+ gridHeaderStyle: "font-weight: bold; padding: 5px; border: 1px solid #dddddd;",
335
+ gridStyle: "border: 1px solid lightgray; margin-bottom: -1px;",
336
+ showModal: !1,
337
+ onError: function(O) {
338
+ throw O;
339
+ },
340
+ onLoadingStart: null,
341
+ onLoadingEnd: null,
342
+ onPrintDialogClose: function() {
343
+ },
344
+ onIncompatibleBrowser: function() {
345
+ },
346
+ modalMessage: "Retrieving Document...",
347
+ frameId: "printJS",
348
+ printableElement: null,
349
+ documentTitle: "Document",
350
+ targetStyle: ["clear", "display", "width", "min-width", "height", "min-height", "max-height"],
351
+ targetStyles: ["border", "box", "break", "text-decoration"],
352
+ ignoreElements: [],
353
+ repeatTableHeader: !0,
354
+ css: null,
355
+ style: null,
356
+ scanStyles: !0,
357
+ base64: !1,
358
+ // Deprecated
359
+ onPdfOpen: null,
360
+ font: "TimesNewRoman",
361
+ font_size: "12pt",
362
+ honorMarginPadding: !0,
363
+ honorColor: !1,
364
+ imageStyle: "max-width: 100%;"
365
+ }, d = arguments[0];
366
+ if (d === void 0)
367
+ throw new Error("printJS expects at least 1 attribute.");
368
+ switch (e(d)) {
369
+ case "string":
370
+ t.printable = encodeURI(d), t.fallbackPrintable = t.printable, t.type = arguments[1] || t.type;
371
+ break;
372
+ case "object":
373
+ t.printable = d.printable, t.fallbackPrintable = typeof d.fallbackPrintable < "u" ? d.fallbackPrintable : t.printable, t.fallbackPrintable = t.base64 ? "data:application/pdf;base64,".concat(t.fallbackPrintable) : t.fallbackPrintable;
374
+ for (var c in t)
375
+ c === "printable" || c === "fallbackPrintable" || (t[c] = typeof d[c] < "u" ? d[c] : t[c]);
376
+ break;
377
+ default:
378
+ throw new Error('Unexpected argument type! Expected "string" or "object", got ' + e(d));
379
+ }
380
+ if (!t.printable) throw new Error("Missing printable information.");
381
+ if (!t.type || typeof t.type != "string" || u.indexOf(t.type.toLowerCase()) === -1)
382
+ throw new Error("Invalid print type. Available types are: pdf, html, image and json.");
383
+ t.showModal && s.default.show(t), t.onLoadingStart && t.onLoadingStart();
384
+ var E = document.getElementById(t.frameId);
385
+ E && E.parentNode.removeChild(E);
386
+ var p = document.createElement("iframe");
387
+ switch (o.default.isFirefox() ? p.setAttribute("style", "width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0") : p.setAttribute("style", "visibility: hidden; height: 0; width: 0; position: absolute; border: 0"), p.setAttribute("id", t.frameId), t.type !== "pdf" && (p.srcdoc = "<html><head><title>" + t.documentTitle + "</title>", t.css && (Array.isArray(t.css) || (t.css = [t.css]), t.css.forEach(function(v) {
388
+ p.srcdoc += '<link rel="stylesheet" href="' + v + '">';
389
+ })), p.srcdoc += "</head><body></body></html>"), t.type) {
390
+ case "pdf":
391
+ if (o.default.isIE())
392
+ try {
393
+ console.info("Print.js doesn't support PDF printing in Internet Explorer.");
394
+ var m = window.open(t.fallbackPrintable, "_blank");
395
+ m.focus(), t.onIncompatibleBrowser();
396
+ } catch (v) {
397
+ t.onError(v);
398
+ } finally {
399
+ t.showModal && s.default.close(), t.onLoadingEnd && t.onLoadingEnd();
400
+ }
401
+ else
402
+ f.default.print(t, p);
403
+ break;
404
+ case "image":
405
+ l.default.print(t, p);
406
+ break;
407
+ case "html":
408
+ b.default.print(t, p);
409
+ break;
410
+ case "raw-html":
411
+ i.default.print(t, p);
412
+ break;
413
+ case "json":
414
+ r.default.print(t, p);
415
+ break;
416
+ }
417
+ }
418
+ };
419
+ })
420
+ ),
421
+ /***/
422
+ "./src/js/json.js": (
423
+ /*!************************!*\
424
+ !*** ./src/js/json.js ***!
425
+ \************************/
426
+ /*! exports provided: default */
427
+ /***/
428
+ (function(h, a, n) {
429
+ n.r(a);
430
+ var o = n(
431
+ /*! ./functions */
432
+ "./src/js/functions.js"
433
+ ), s = n(
434
+ /*! ./print */
435
+ "./src/js/print.js"
436
+ );
437
+ function f(i) {
438
+ "@babel/helpers - typeof";
439
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? f = function(r) {
440
+ return typeof r;
441
+ } : f = function(r) {
442
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
443
+ }, f(i);
444
+ }
445
+ a.default = {
446
+ print: function(l, r) {
447
+ if (f(l.printable) !== "object")
448
+ throw new Error("Invalid javascript data object (JSON).");
449
+ if (typeof l.repeatTableHeader != "boolean")
450
+ throw new Error("Invalid value for repeatTableHeader attribute (JSON).");
451
+ if (!l.properties || !Array.isArray(l.properties))
452
+ throw new Error("Invalid properties array for your JSON data.");
453
+ l.properties = l.properties.map(function(e) {
454
+ return {
455
+ field: f(e) === "object" ? e.field : e,
456
+ displayName: f(e) === "object" ? e.displayName : e,
457
+ columnSize: f(e) === "object" && e.columnSize ? e.columnSize + ";" : 100 / l.properties.length + "%;"
458
+ };
459
+ }), l.printableElement = document.createElement("div"), l.header && Object(o.addHeader)(l.printableElement, l), l.printableElement.innerHTML += b(l), s.default.send(l, r);
460
+ }
461
+ };
462
+ function b(i) {
463
+ var l = i.printable, r = i.properties, e = '<table style="border-collapse: collapse; width: 100%;">';
464
+ i.repeatTableHeader && (e += "<thead>"), e += "<tr>";
465
+ for (var u = 0; u < r.length; u++)
466
+ e += '<th style="width:' + r[u].columnSize + ";" + i.gridHeaderStyle + '">' + Object(o.capitalizePrint)(r[u].displayName) + "</th>";
467
+ e += "</tr>", i.repeatTableHeader && (e += "</thead>"), e += "<tbody>";
468
+ for (var y = 0; y < l.length; y++) {
469
+ e += "<tr>";
470
+ for (var t = 0; t < r.length; t++) {
471
+ var d = l[y], c = r[t].field.split(".");
472
+ if (c.length > 1)
473
+ for (var E = 0; E < c.length; E++)
474
+ d = d[c[E]];
475
+ else
476
+ d = d[r[t].field];
477
+ e += '<td style="width:' + r[t].columnSize + i.gridStyle + '">' + d + "</td>";
478
+ }
479
+ e += "</tr>";
480
+ }
481
+ return e += "</tbody></table>", e;
482
+ }
483
+ })
484
+ ),
485
+ /***/
486
+ "./src/js/modal.js": (
487
+ /*!*************************!*\
488
+ !*** ./src/js/modal.js ***!
489
+ \*************************/
490
+ /*! exports provided: default */
491
+ /***/
492
+ (function(h, a, n) {
493
+ n.r(a);
494
+ var o = {
495
+ show: function(f) {
496
+ var b = "font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;", i = document.createElement("div");
497
+ i.setAttribute("style", b), i.setAttribute("id", "printJS-Modal");
498
+ var l = document.createElement("div");
499
+ l.setAttribute("style", "display:table-cell; vertical-align:middle; padding-bottom:100px;");
500
+ var r = document.createElement("div");
501
+ r.setAttribute("class", "printClose"), r.setAttribute("id", "printClose"), l.appendChild(r);
502
+ var e = document.createElement("span");
503
+ e.setAttribute("class", "printSpinner"), l.appendChild(e);
504
+ var u = document.createTextNode(f.modalMessage);
505
+ l.appendChild(u), i.appendChild(l), document.getElementsByTagName("body")[0].appendChild(i), document.getElementById("printClose").addEventListener("click", function() {
506
+ o.close();
507
+ });
508
+ },
509
+ close: function() {
510
+ var f = document.getElementById("printJS-Modal");
511
+ f && f.parentNode.removeChild(f);
512
+ }
513
+ };
514
+ a.default = o;
515
+ })
516
+ ),
517
+ /***/
518
+ "./src/js/pdf.js": (
519
+ /*!***********************!*\
520
+ !*** ./src/js/pdf.js ***!
521
+ \***********************/
522
+ /*! exports provided: default */
523
+ /***/
524
+ (function(h, a, n) {
525
+ n.r(a);
526
+ var o = n(
527
+ /*! ./print */
528
+ "./src/js/print.js"
529
+ ), s = n(
530
+ /*! ./functions */
531
+ "./src/js/functions.js"
532
+ );
533
+ a.default = {
534
+ print: function(i, l) {
535
+ if (i.base64) {
536
+ var r = Uint8Array.from(atob(i.printable), function(u) {
537
+ return u.charCodeAt(0);
538
+ });
539
+ f(i, l, r);
540
+ return;
541
+ }
542
+ i.printable = /^(blob|http|\/\/)/i.test(i.printable) ? i.printable : window.location.origin + (i.printable.charAt(0) !== "/" ? "/" + i.printable : i.printable);
543
+ var e = new window.XMLHttpRequest();
544
+ e.responseType = "arraybuffer", e.addEventListener("error", function() {
545
+ Object(s.cleanUp)(i), i.onError(e.statusText, e);
546
+ }), e.addEventListener("load", function() {
547
+ if ([200, 201].indexOf(e.status) === -1) {
548
+ Object(s.cleanUp)(i), i.onError(e.statusText, e);
549
+ return;
550
+ }
551
+ f(i, l, e.response);
552
+ }), e.open("GET", i.printable, !0), e.send();
553
+ }
554
+ };
555
+ function f(b, i, l) {
556
+ var r = new window.Blob([l], {
557
+ type: "application/pdf"
558
+ });
559
+ r = window.URL.createObjectURL(r), i.setAttribute("src", r), o.default.send(b, i);
560
+ }
561
+ })
562
+ ),
563
+ /***/
564
+ "./src/js/print.js": (
565
+ /*!*************************!*\
566
+ !*** ./src/js/print.js ***!
567
+ \*************************/
568
+ /*! exports provided: default */
569
+ /***/
570
+ (function(h, a, n) {
571
+ n.r(a);
572
+ var o = n(
573
+ /*! ./browser */
574
+ "./src/js/browser.js"
575
+ ), s = n(
576
+ /*! ./functions */
577
+ "./src/js/functions.js"
578
+ ), f = {
579
+ send: function(e, u) {
580
+ document.getElementsByTagName("body")[0].appendChild(u);
581
+ var y = document.getElementById(e.frameId);
582
+ y.onload = function() {
583
+ if (e.type === "pdf") {
584
+ o.default.isFirefox() ? setTimeout(function() {
585
+ return b(y, e);
586
+ }, 1e3) : b(y, e);
587
+ return;
588
+ }
589
+ var t = y.contentWindow || y.contentDocument;
590
+ if (t.document && (t = t.document), t.body.appendChild(e.printableElement), e.type !== "pdf" && e.style) {
591
+ var d = document.createElement("style");
592
+ d.innerHTML = e.style, t.head.appendChild(d);
593
+ }
594
+ var c = t.getElementsByTagName("img");
595
+ c.length > 0 ? i(Array.from(c)).then(function() {
596
+ return b(y, e);
597
+ }) : b(y, e);
598
+ };
599
+ }
600
+ };
601
+ function b(r, e) {
602
+ try {
603
+ if (r.focus(), o.default.isEdge() || o.default.isIE())
604
+ try {
605
+ r.contentWindow.document.execCommand("print", !1, null);
606
+ } catch {
607
+ r.contentWindow.print();
608
+ }
609
+ else
610
+ r.contentWindow.print();
611
+ } catch (u) {
612
+ e.onError(u);
613
+ } finally {
614
+ o.default.isFirefox() && (r.style.visibility = "hidden", r.style.left = "-1px"), Object(s.cleanUp)(e);
615
+ }
616
+ }
617
+ function i(r) {
618
+ var e = r.map(function(u) {
619
+ if (u.src && u.src !== window.location.href)
620
+ return l(u);
621
+ });
622
+ return Promise.all(e);
623
+ }
624
+ function l(r) {
625
+ return new Promise(function(e) {
626
+ var u = function y() {
627
+ !r || typeof r.naturalWidth > "u" || r.naturalWidth === 0 || !r.complete ? setTimeout(y, 500) : e();
628
+ };
629
+ u();
630
+ });
631
+ }
632
+ a.default = f;
633
+ })
634
+ ),
635
+ /***/
636
+ "./src/js/raw-html.js": (
637
+ /*!****************************!*\
638
+ !*** ./src/js/raw-html.js ***!
639
+ \****************************/
640
+ /*! exports provided: default */
641
+ /***/
642
+ (function(h, a, n) {
643
+ n.r(a);
644
+ var o = n(
645
+ /*! ./print */
646
+ "./src/js/print.js"
647
+ );
648
+ a.default = {
649
+ print: function(f, b) {
650
+ f.printableElement = document.createElement("div"), f.printableElement.setAttribute("style", "width:100%"), f.printableElement.innerHTML = f.printable, o.default.send(f, b);
651
+ }
652
+ };
653
+ })
654
+ ),
655
+ /***/
656
+ "./src/sass/index.scss": (
657
+ /*!*****************************!*\
658
+ !*** ./src/sass/index.scss ***!
659
+ \*****************************/
660
+ /*! no static exports found */
661
+ /***/
662
+ (function(h, a, n) {
663
+ })
664
+ ),
665
+ /***/
666
+ 0: (
667
+ /*!****************************!*\
668
+ !*** multi ./src/index.js ***!
669
+ \****************************/
670
+ /*! no static exports found */
671
+ /***/
672
+ (function(h, a, n) {
673
+ h.exports = n(
674
+ /*! ./src/index.js */
675
+ "./src/index.js"
676
+ );
677
+ })
678
+ )
679
+ /******/
680
+ }).default
681
+ );
682
+ });
683
+ })(j)), j.exports;
684
+ }
685
+ export {
686
+ S as c,
687
+ w as g,
688
+ C as r
689
+ };