source: public/assets/js/clipboard.min.js@ 24a616f

develop
Last change on this file since 24a616f was 24a616f, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added documents crud, added last_seen_to_user, edited views

  • Property mode set to 100644
File size: 16.4 KB
Line 
1/******/ (() => { // webpackBootstrap
2/******/ var __webpack_modules__ = ({
3
4/***/ "./resources/assets/js/clipboard.min.js":
5/*!**********************************************!*\
6 !*** ./resources/assets/js/clipboard.min.js ***!
7 \**********************************************/
8/***/ (function(module, exports, __webpack_require__) {
9
10/* module decorator */ module = __webpack_require__.nmd(module);
11var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
12
13/*!
14 * clipboard.js v2.0.8
15 * https://clipboardjs.com/
16 *
17 * Licensed MIT © Zeno Rocha
18 */
19!function (t, e) {
20 "object" == ( false ? 0 : _typeof(exports)) && "object" == ( false ? 0 : _typeof(module)) ? module.exports = e() : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (e),
21 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
22 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
23 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;
24}(this, function () {
25 return n = {
26 686: function _(t, e, n) {
27 "use strict";
28
29 n.d(e, {
30 "default": function _default() {
31 return o;
32 }
33 });
34 var e = n(279),
35 i = n.n(e),
36 e = n(370),
37 u = n.n(e),
38 e = n(817),
39 c = n.n(e);
40
41 function a(t) {
42 try {
43 return document.execCommand(t);
44 } catch (t) {
45 return;
46 }
47 }
48
49 var f = function f(t) {
50 t = c()(t);
51 return a("cut"), t;
52 };
53
54 var l = function l(t) {
55 var e,
56 n,
57 o,
58 r = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {
59 container: document.body
60 },
61 i = "";
62 return "string" == typeof t ? (e = t, n = "rtl" === document.documentElement.getAttribute("dir"), (o = document.createElement("textarea")).style.fontSize = "12pt", o.style.border = "0", o.style.padding = "0", o.style.margin = "0", o.style.position = "absolute", o.style[n ? "right" : "left"] = "-9999px", n = window.pageYOffset || document.documentElement.scrollTop, o.style.top = "".concat(n, "px"), o.setAttribute("readonly", ""), o.value = e, o = o, r.container.appendChild(o), i = c()(o), a("copy"), o.remove()) : (i = c()(t), a("copy")), i;
63 };
64
65 function r(t) {
66 return (r = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (t) {
67 return _typeof(t);
68 } : function (t) {
69 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : _typeof(t);
70 })(t);
71 }
72
73 var s = function s() {
74 var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {},
75 e = t.action,
76 n = void 0 === e ? "copy" : e,
77 o = t.container,
78 e = t.target,
79 t = t.text;
80 if ("copy" !== n && "cut" !== n) throw new Error('Invalid "action" value, use either "copy" or "cut"');
81
82 if (void 0 !== e) {
83 if (!e || "object" !== r(e) || 1 !== e.nodeType) throw new Error('Invalid "target" value, use a valid Element');
84 if ("copy" === n && e.hasAttribute("disabled")) throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
85 if ("cut" === n && (e.hasAttribute("readonly") || e.hasAttribute("disabled"))) throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');
86 }
87
88 return t ? l(t, {
89 container: o
90 }) : e ? "cut" === n ? f(e) : l(e, {
91 container: o
92 }) : void 0;
93 };
94
95 function d(t) {
96 return (d = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (t) {
97 return _typeof(t);
98 } : function (t) {
99 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : _typeof(t);
100 })(t);
101 }
102
103 function p(t, e) {
104 for (var n = 0; n < e.length; n++) {
105 var o = e[n];
106 o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
107 }
108 }
109
110 function y(t, e) {
111 return (y = Object.setPrototypeOf || function (t, e) {
112 return t.__proto__ = e, t;
113 })(t, e);
114 }
115
116 function h(n) {
117 var o = function () {
118 if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
119 if (Reflect.construct.sham) return !1;
120 if ("function" == typeof Proxy) return !0;
121
122 try {
123 return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0;
124 } catch (t) {
125 return !1;
126 }
127 }();
128
129 return function () {
130 var t,
131 e = m(n);
132 return t = o ? (t = m(this).constructor, Reflect.construct(e, arguments, t)) : e.apply(this, arguments), e = this, !(t = t) || "object" !== d(t) && "function" != typeof t ? function (t) {
133 if (void 0 !== t) return t;
134 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
135 }(e) : t;
136 };
137 }
138
139 function m(t) {
140 return (m = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
141 return t.__proto__ || Object.getPrototypeOf(t);
142 })(t);
143 }
144
145 function v(t, e) {
146 t = "data-clipboard-".concat(t);
147 if (e.hasAttribute(t)) return e.getAttribute(t);
148 }
149
150 var o = function () {
151 !function (t, e) {
152 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
153 t.prototype = Object.create(e && e.prototype, {
154 constructor: {
155 value: t,
156 writable: !0,
157 configurable: !0
158 }
159 }), e && y(t, e);
160 }(r, i());
161 var t,
162 e,
163 n,
164 o = h(r);
165
166 function r(t, e) {
167 var n;
168 return function (t) {
169 if (!(t instanceof r)) throw new TypeError("Cannot call a class as a function");
170 }(this), (n = o.call(this)).resolveOptions(e), n.listenClick(t), n;
171 }
172
173 return t = r, n = [{
174 key: "copy",
175 value: function value(t) {
176 var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {
177 container: document.body
178 };
179 return l(t, e);
180 }
181 }, {
182 key: "cut",
183 value: function value(t) {
184 return f(t);
185 }
186 }, {
187 key: "isSupported",
188 value: function value() {
189 var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : ["copy", "cut"],
190 t = "string" == typeof t ? [t] : t,
191 e = !!document.queryCommandSupported;
192 return t.forEach(function (t) {
193 e = e && !!document.queryCommandSupported(t);
194 }), e;
195 }
196 }], (e = [{
197 key: "resolveOptions",
198 value: function value() {
199 var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
200 this.action = "function" == typeof t.action ? t.action : this.defaultAction, this.target = "function" == typeof t.target ? t.target : this.defaultTarget, this.text = "function" == typeof t.text ? t.text : this.defaultText, this.container = "object" === d(t.container) ? t.container : document.body;
201 }
202 }, {
203 key: "listenClick",
204 value: function value(t) {
205 var e = this;
206 this.listener = u()(t, "click", function (t) {
207 return e.onClick(t);
208 });
209 }
210 }, {
211 key: "onClick",
212 value: function value(t) {
213 var e = t.delegateTarget || t.currentTarget,
214 t = s({
215 action: this.action(e),
216 container: this.container,
217 target: this.target(e),
218 text: this.text(e)
219 });
220 this.emit(t ? "success" : "error", {
221 action: this.action,
222 text: t,
223 trigger: e,
224 clearSelection: function clearSelection() {
225 e && e.focus(), document.activeElement.blur(), window.getSelection().removeAllRanges();
226 }
227 });
228 }
229 }, {
230 key: "defaultAction",
231 value: function value(t) {
232 return v("action", t);
233 }
234 }, {
235 key: "defaultTarget",
236 value: function value(t) {
237 t = v("target", t);
238 if (t) return document.querySelector(t);
239 }
240 }, {
241 key: "defaultText",
242 value: function value(t) {
243 return v("text", t);
244 }
245 }, {
246 key: "destroy",
247 value: function value() {
248 this.listener.destroy();
249 }
250 }]) && p(t.prototype, e), n && p(t, n), r;
251 }();
252 },
253 828: function _(t) {
254 var e;
255 "undefined" == typeof Element || Element.prototype.matches || ((e = Element.prototype).matches = e.matchesSelector || e.mozMatchesSelector || e.msMatchesSelector || e.oMatchesSelector || e.webkitMatchesSelector), t.exports = function (t, e) {
256 for (; t && 9 !== t.nodeType;) {
257 if ("function" == typeof t.matches && t.matches(e)) return t;
258 t = t.parentNode;
259 }
260 };
261 },
262 438: function _(t, e, n) {
263 var u = n(828);
264
265 function i(t, e, n, o, r) {
266 var i = function (e, n, t, o) {
267 return function (t) {
268 t.delegateTarget = u(t.target, n), t.delegateTarget && o.call(e, t);
269 };
270 }.apply(this, arguments);
271
272 return t.addEventListener(n, i, r), {
273 destroy: function destroy() {
274 t.removeEventListener(n, i, r);
275 }
276 };
277 }
278
279 t.exports = function (t, e, n, o, r) {
280 return "function" == typeof t.addEventListener ? i.apply(null, arguments) : "function" == typeof n ? i.bind(null, document).apply(null, arguments) : ("string" == typeof t && (t = document.querySelectorAll(t)), Array.prototype.map.call(t, function (t) {
281 return i(t, e, n, o, r);
282 }));
283 };
284 },
285 879: function _(t, n) {
286 n.node = function (t) {
287 return void 0 !== t && t instanceof HTMLElement && 1 === t.nodeType;
288 }, n.nodeList = function (t) {
289 var e = Object.prototype.toString.call(t);
290 return void 0 !== t && ("[object NodeList]" === e || "[object HTMLCollection]" === e) && "length" in t && (0 === t.length || n.node(t[0]));
291 }, n.string = function (t) {
292 return "string" == typeof t || t instanceof String;
293 }, n.fn = function (t) {
294 return "[object Function]" === Object.prototype.toString.call(t);
295 };
296 },
297 370: function _(t, e, n) {
298 var f = n(879),
299 l = n(438);
300
301 t.exports = function (t, e, n) {
302 if (!t && !e && !n) throw new Error("Missing required arguments");
303 if (!f.string(e)) throw new TypeError("Second argument must be a String");
304 if (!f.fn(n)) throw new TypeError("Third argument must be a Function");
305 if (f.node(t)) return c = e, a = n, (u = t).addEventListener(c, a), {
306 destroy: function destroy() {
307 u.removeEventListener(c, a);
308 }
309 };
310 if (f.nodeList(t)) return o = t, r = e, i = n, Array.prototype.forEach.call(o, function (t) {
311 t.addEventListener(r, i);
312 }), {
313 destroy: function destroy() {
314 Array.prototype.forEach.call(o, function (t) {
315 t.removeEventListener(r, i);
316 });
317 }
318 };
319 if (f.string(t)) return t = t, e = e, n = n, l(document.body, t, e, n);
320 throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
321 var o, r, i, u, c, a;
322 };
323 },
324 817: function _(t) {
325 t.exports = function (t) {
326 var e,
327 n = "SELECT" === t.nodeName ? (t.focus(), t.value) : "INPUT" === t.nodeName || "TEXTAREA" === t.nodeName ? ((e = t.hasAttribute("readonly")) || t.setAttribute("readonly", ""), t.select(), t.setSelectionRange(0, t.value.length), e || t.removeAttribute("readonly"), t.value) : (t.hasAttribute("contenteditable") && t.focus(), n = window.getSelection(), (e = document.createRange()).selectNodeContents(t), n.removeAllRanges(), n.addRange(e), n.toString());
328 return n;
329 };
330 },
331 279: function _(t) {
332 function e() {}
333
334 e.prototype = {
335 on: function on(t, e, n) {
336 var o = this.e || (this.e = {});
337 return (o[t] || (o[t] = [])).push({
338 fn: e,
339 ctx: n
340 }), this;
341 },
342 once: function once(t, e, n) {
343 var o = this;
344
345 function r() {
346 o.off(t, r), e.apply(n, arguments);
347 }
348
349 return r._ = e, this.on(t, r, n);
350 },
351 emit: function emit(t) {
352 for (var e = [].slice.call(arguments, 1), n = ((this.e || (this.e = {}))[t] || []).slice(), o = 0, r = n.length; o < r; o++) {
353 n[o].fn.apply(n[o].ctx, e);
354 }
355
356 return this;
357 },
358 off: function off(t, e) {
359 var n = this.e || (this.e = {}),
360 o = n[t],
361 r = [];
362 if (o && e) for (var i = 0, u = o.length; i < u; i++) {
363 o[i].fn !== e && o[i].fn._ !== e && r.push(o[i]);
364 }
365 return r.length ? n[t] = r : delete n[t], this;
366 }
367 }, t.exports = e, t.exports.TinyEmitter = e;
368 }
369 }, r = {}, o.n = function (t) {
370 var e = t && t.__esModule ? function () {
371 return t["default"];
372 } : function () {
373 return t;
374 };
375 return o.d(e, {
376 a: e
377 }), e;
378 }, o.d = function (t, e) {
379 for (var n in e) {
380 o.o(e, n) && !o.o(t, n) && Object.defineProperty(t, n, {
381 enumerable: !0,
382 get: e[n]
383 });
384 }
385 }, o.o = function (t, e) {
386 return Object.prototype.hasOwnProperty.call(t, e);
387 }, o(686)["default"];
388
389 function o(t) {
390 if (r[t]) return r[t].exports;
391 var e = r[t] = {
392 exports: {}
393 };
394 return n[t](e, e.exports, o), e.exports;
395 }
396
397 var n, r;
398});
399
400/***/ })
401
402/******/ });
403/************************************************************************/
404/******/ // The module cache
405/******/ var __webpack_module_cache__ = {};
406/******/
407/******/ // The require function
408/******/ function __webpack_require__(moduleId) {
409/******/ // Check if module is in cache
410/******/ var cachedModule = __webpack_module_cache__[moduleId];
411/******/ if (cachedModule !== undefined) {
412/******/ return cachedModule.exports;
413/******/ }
414/******/ // Create a new module (and put it into the cache)
415/******/ var module = __webpack_module_cache__[moduleId] = {
416/******/ id: moduleId,
417/******/ loaded: false,
418/******/ exports: {}
419/******/ };
420/******/
421/******/ // Execute the module function
422/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
423/******/
424/******/ // Flag the module as loaded
425/******/ module.loaded = true;
426/******/
427/******/ // Return the exports of the module
428/******/ return module.exports;
429/******/ }
430/******/
431/************************************************************************/
432/******/ /* webpack/runtime/node module decorator */
433/******/ (() => {
434/******/ __webpack_require__.nmd = (module) => {
435/******/ module.paths = [];
436/******/ if (!module.children) module.children = [];
437/******/ return module;
438/******/ };
439/******/ })();
440/******/
441/************************************************************************/
442/******/
443/******/ // startup
444/******/ // Load entry module and return exports
445/******/ // This entry module is referenced by other modules so it can't be inlined
446/******/ var __webpack_exports__ = __webpack_require__("./resources/assets/js/clipboard.min.js");
447/******/
448/******/ })()
449;
Note: See TracBrowser for help on using the repository browser.