diff --git a/node_modules/vue-plugin-hiprint/dist/vue-plugin-hiprint.js b/node_modules/vue-plugin-hiprint/dist/vue-plugin-hiprint.js
index 4e34559..134206f 100644
--- a/node_modules/vue-plugin-hiprint/dist/vue-plugin-hiprint.js
+++ b/node_modules/vue-plugin-hiprint/dist/vue-plugin-hiprint.js
@@ -1,1283 +1,1364 @@
-! function (t, e) {
- "object" == typeof exports && "object" == typeof module ? module.exports = e(require("jquery"), require("jsbarcode"), require("socket.io-client"), require("jspdf"), require("html2canvas"), require("canvg")) : "function" == typeof define && define.amd ? define("vue-plugin-hiprint", ["jquery", "jsbarcode", "socket.io-client", "jspdf", "html2canvas", "canvg"], e) : "object" == typeof exports ? exports["vue-plugin-hiprint"] = e(require("jquery"), require("jsbarcode"), require("socket.io-client"), require("jspdf"), require("html2canvas"), require("canvg")) : t["vue-plugin-hiprint"] = e(t.jQuery, t.JsBarcode, t.io, t.jspdf, t.html2canvas, t.canvg)
-}(window, function (__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__106__, __WEBPACK_EXTERNAL_MODULE__157__, __WEBPACK_EXTERNAL_MODULE__160__, __WEBPACK_EXTERNAL_MODULE__161__, __WEBPACK_EXTERNAL_MODULE__162__) {
- return function (i) {
- var n = {};
+((e, t) => {
+ "object" == typeof exports && "object" == typeof module ? module.exports = t(require("jquery"), require("jsbarcode"), require("socket.io-client"), require("jspdf"), require("canvg")) : "function" == typeof define && define.amd ? define("vue-plugin-hiprint", ["jquery", "jsbarcode", "socket.io-client", "jspdf", "canvg"], t) : "object" == typeof exports ? exports["vue-plugin-hiprint"] = t(require("jquery"), require("jsbarcode"), require("socket.io-client"), require("jspdf"), require("canvg")) : e["vue-plugin-hiprint"] = t(e.jQuery, e.JsBarcode, e.io, e.jspdf, e.canvg)
+})(window, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__108__, __WEBPACK_EXTERNAL_MODULE__166__, __WEBPACK_EXTERNAL_MODULE__169__, __WEBPACK_EXTERNAL_MODULE__171__) {
+ return (i => {
+ var n = {};
- function r(t) {
- var e;
- return (n[t] || (e = n[t] = {
- i: t,
- l: !1,
- exports: {}
- }, i[t].call(e.exports, e, e.exports, r), e.l = !0, e)).exports
- }
- return r.m = i, r.c = n, r.d = function (t, e, i) {
- r.o(t, e) || Object.defineProperty(t, e, {
- enumerable: !0,
- get: i
- })
- }, r.r = function (t) {
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
- value: "Module"
- }), Object.defineProperty(t, "__esModule", {
- value: !0
- })
- }, r.t = function (e, t) {
- if (1 & t && (e = r(e)), 8 & t) return e;
- if (4 & t && "object" == typeof e && e && e.__esModule) return e;
- var i = Object.create(null);
- if (r.r(i), Object.defineProperty(i, "default", {
- enumerable: !0,
- value: e
- }), 2 & t && "string" != typeof e)
- for (var n in e) r.d(i, n, function (t) {
- return e[t]
- }.bind(null, n));
- return i
- }, r.n = function (t) {
- var e = t && t.__esModule ? function () {
- return t.default
- } : function () {
- return t
- };
- return r.d(e, "a", e), e
- }, r.o = function (t, e) {
- return Object.prototype.hasOwnProperty.call(t, e)
- }, r.p = "/dist/", r(r.s = 165)
- }([function (t, e) {
- t.exports = __WEBPACK_EXTERNAL_MODULE__0__
- }, function (t, e, i) {
- "use strict";
- var i = i(56),
- n = Function.prototype,
- r = n.call,
- n = i && n.bind.bind(r, r);
- t.exports = i ? n : function (t) {
- return function () {
- return r.apply(t, arguments)
- }
- }
- }, function (t, e, i) {
- "use strict";
- t.exports = function (t) {
- try {
- return !!t()
- } catch (t) {
- return !0
- }
- }
- }, function (t, e, i) {
- "use strict";
- var l = i(4),
- p = i(36).f,
- d = i(24),
- u = i(15),
- f = i(80),
- h = i(84),
- m = i(86);
- t.exports = function (t, e) {
- var i, n, r, a = t.target,
- o = t.global,
- s = t.stat,
- c = o ? l : s ? l[a] || f(a, {}) : (l[a] || {}).prototype;
- if (c)
- for (i in e) {
- if (n = e[i], r = t.dontCallGetSet ? (r = p(c, i)) && r.value : c[i], !m(o ? i : a + (s ? "." : "#") + i, t.forced) && void 0 !== r) {
- if (typeof n == typeof r) continue;
- h(n, r)
- } (t.sham || r && r.sham) && d(n, "sham", !0), u(c, i, n, t)
- }
- }
- }, function (i, t, e) {
- "use strict";
- ! function (t) {
- function e(t) {
- return t && t.Math === Math && t
- }
- i.exports = e("object" == typeof globalThis && globalThis) || e("object" == typeof window && window) || e("object" == typeof self && self) || e("object" == typeof t && t) || function () {
- return this
- }() || this || Function("return this")()
- }.call(this, e(168))
- }, function (t, e, i) {
- "use strict";
- i = i(2);
- t.exports = !i(function () {
- return 7 !== Object.defineProperty({}, 1, {
- get: function () {
- return 7
- }
- })[1]
- })
- }, function (t, e, i) {
- "use strict";
- var n = i(4),
- r = i(39),
- a = i(9),
- o = i(81),
- s = i(37),
- i = i(110),
- c = n.Symbol,
- l = r("wks"),
- p = i ? c.for || c : c && c.withoutSetter || o;
- t.exports = function (t) {
- return a(l, t) || (l[t] = s && a(c, t) ? c[t] : p("Symbol." + t)), l[t]
- }
- }, function (t, e, i) {
- "use strict";
- var n = i(49),
- r = String;
- t.exports = function (t) {
- if ("Symbol" === n(t)) throw new TypeError("Cannot convert a Symbol value to a string");
- return r(t)
- }
- }, function (t, e, i) {
- "use strict";
- var i = i(109),
- n = i.all;
- t.exports = i.IS_HTMLDDA ? function (t) {
- return "function" == typeof t || t === n
- } : function (t) {
- return "function" == typeof t
- }
- }, function (t, e, i) {
- "use strict";
- var n = i(1),
- r = i(16),
- a = n({}.hasOwnProperty);
- t.exports = Object.hasOwn || function (t, e) {
- return a(r(t), e)
- }
- }, function (t, e, i) {
- "use strict";
- var i = i(56),
- n = Function.prototype.call;
- t.exports = i ? n.bind(n) : function () {
- return n.apply(n, arguments)
- }
- }, function (t, e, i) {
- "use strict";
- var n = i(13),
- r = String,
- a = TypeError;
- t.exports = function (t) {
- if (n(t)) return t;
- throw new a(r(t) + " is not an object")
- }
- }, function (t, e, i) {
- "use strict";
- var n = i(5),
- r = i(111),
- a = i(112),
- o = i(11),
- s = i(58),
- c = TypeError,
- l = Object.defineProperty,
- p = Object.getOwnPropertyDescriptor,
- d = "enumerable",
- u = "configurable",
- f = "writable";
- e.f = n ? a ? function (t, e, i) {
- var n;
- return o(t), e = s(e), o(i), "function" == typeof t && "prototype" === e && "value" in i && f in i && !i[f] && (n = p(t, e)) && n[f] && (t[e] = i.value, i = {
- configurable: (u in i ? i : n)[u],
- enumerable: (d in i ? i : n)[d],
- writable: !1
- }), l(t, e, i)
- } : l : function (t, e, i) {
- if (o(t), e = s(e), o(i), r) try {
- return l(t, e, i)
- } catch (t) { }
- if ("get" in i || "set" in i) throw new c("Accessors not supported");
- return "value" in i && (t[e] = i.value), t
- }
- }, function (t, e, i) {
- "use strict";
- var n = i(8),
- i = i(109),
- r = i.all;
- t.exports = i.IS_HTMLDDA ? function (t) {
- return "object" == typeof t ? null !== t : n(t) || t === r
- } : function (t) {
- return "object" == typeof t ? null !== t : n(t)
- }
- }, function (t, e, i) {
- "use strict";
- var n = i(4),
- r = i(8);
- t.exports = function (t, e) {
- return arguments.length < 2 ? (i = n[t], r(i) ? i : void 0) : n[t] && n[t][e];
- var i
- }
- }, function (t, e, i) {
- "use strict";
- var o = i(8),
- s = i(12),
- c = i(83),
- l = i(80);
- t.exports = function (t, e, i, n) {
- var r = (n = n || {}).enumerable,
- a = void 0 !== n.name ? n.name : e;
- if (o(i) && c(i, a, n), n.global) r ? t[e] = i : l(e, i);
- else {
- try {
- n.unsafe ? t[e] && (r = !0) : delete t[e]
- } catch (t) { }
- r ? t[e] = i : s.f(t, e, {
- value: i,
- enumerable: !1,
- configurable: !n.nonConfigurable,
- writable: !n.nonWritable
- })
- }
- return t
- }
- }, function (t, e, i) {
- "use strict";
- var n = i(17),
- r = Object;
- t.exports = function (t) {
- return r(n(t))
- }
- }, function (t, e, i) {
- "use strict";
- var n = i(32),
- r = TypeError;
- t.exports = function (t) {
- if (n(t)) throw new r("Can't call method on " + t);
- return t
- }
- }, function (t, e, i) {
- "use strict";
- t.exports = !1
- }, function (module, __webpack_exports__, __webpack_require__) {
- "use strict";
- ! function (jQuery) {
- __webpack_require__.d(__webpack_exports__, "b", function () {
- return hiprint
- }), __webpack_require__.d(__webpack_exports__, "a", function () {
- return defaultElementTypeProvider
- });
- var _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35),
- _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23),
- _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26),
- core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(166),
- core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_3___default = __webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_3__),
- core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(181),
- core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_4___default = __webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_4__),
- core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89),
- core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = __webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__),
- core_js_modules_es_symbol_has_instance_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(183),
- core_js_modules_es_symbol_has_instance_js__WEBPACK_IMPORTED_MODULE_6___default = __webpack_require__.n(core_js_modules_es_symbol_has_instance_js__WEBPACK_IMPORTED_MODULE_6__),
- core_js_modules_es_function_has_instance_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(184),
- core_js_modules_es_function_has_instance_js__WEBPACK_IMPORTED_MODULE_7___default = __webpack_require__.n(core_js_modules_es_function_has_instance_js__WEBPACK_IMPORTED_MODULE_7__),
- core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(186),
- core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_8___default = __webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_8__),
- core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(122),
- core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_9___default = __webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_9__),
- core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(189),
- core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10___default = __webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__),
- core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(190),
- core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11___default = __webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__),
- core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(54),
- core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_12___default = __webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_12__),
- core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(131),
- core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_13___default = __webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_13__),
- core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(192),
- core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_14___default = __webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_14__),
- core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(98),
- core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_15___default = __webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_15__),
- core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(194),
- core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_16___default = __webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_16__),
- core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(196),
- core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_17___default = __webpack_require__.n(core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_17__),
- core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(197),
- core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_18___default = __webpack_require__.n(core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_18__),
- core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(134),
- core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_19___default = __webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_19__),
- core_js_modules_es_symbol_to_string_tag_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(198),
- core_js_modules_es_symbol_to_string_tag_js__WEBPACK_IMPORTED_MODULE_20___default = __webpack_require__.n(core_js_modules_es_symbol_to_string_tag_js__WEBPACK_IMPORTED_MODULE_20__),
- core_js_modules_es_json_to_string_tag_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(199),
- core_js_modules_es_json_to_string_tag_js__WEBPACK_IMPORTED_MODULE_21___default = __webpack_require__.n(core_js_modules_es_json_to_string_tag_js__WEBPACK_IMPORTED_MODULE_21__),
- core_js_modules_es_math_to_string_tag_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(200),
- core_js_modules_es_math_to_string_tag_js__WEBPACK_IMPORTED_MODULE_22___default = __webpack_require__.n(core_js_modules_es_math_to_string_tag_js__WEBPACK_IMPORTED_MODULE_22__),
- core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(135),
- core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_23___default = __webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_23__),
- core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(201),
- core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_24___default = __webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_24__),
- core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(138),
- core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_25___default = __webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_25__),
- core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(202),
- core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_26___default = __webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_26__),
- core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(120),
- core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_27___default = __webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_27__),
- core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(203),
- core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_28___default = __webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_28__),
- core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(101),
- core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_29___default = __webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_29__),
- core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(139),
- core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_30___default = __webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_30__),
- core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(204),
- core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_31___default = __webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_31__),
- core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(206),
- core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_32___default = __webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_32__),
- core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(141),
- core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_33___default = __webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_33__),
- core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(207),
- core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_34___default = __webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_34__),
- core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(208),
- core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_35___default = __webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_35__),
- core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(142),
- core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_36___default = __webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_36__),
- core_js_modules_es_string_fixed_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(209),
- core_js_modules_es_string_fixed_js__WEBPACK_IMPORTED_MODULE_37___default = __webpack_require__.n(core_js_modules_es_string_fixed_js__WEBPACK_IMPORTED_MODULE_37__),
- core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(210),
- core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_38___default = __webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_38__),
- core_js_modules_es_object_proto_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(211),
- core_js_modules_es_object_proto_js__WEBPACK_IMPORTED_MODULE_39___default = __webpack_require__.n(core_js_modules_es_object_proto_js__WEBPACK_IMPORTED_MODULE_39__),
- core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(212),
- core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_40___default = __webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_40__),
- core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(213),
- core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_41___default = __webpack_require__.n(core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_41__),
- core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(147),
- core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_42___default = __webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_42__),
- core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(215),
- core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_43___default = __webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_43__),
- core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(148),
- core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_44___default = __webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_44__),
- core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(220),
- core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_45___default = __webpack_require__.n(core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_45__),
- core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(221),
- core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_46___default = __webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_46__),
- core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(223),
- core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_47___default = __webpack_require__.n(core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_47__),
- core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(224),
- core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_48___default = __webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_48__),
- core_js_modules_web_btoa_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(228),
- core_js_modules_web_btoa_js__WEBPACK_IMPORTED_MODULE_49___default = __webpack_require__.n(core_js_modules_web_btoa_js__WEBPACK_IMPORTED_MODULE_49__),
- core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(229),
- core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_50___default = __webpack_require__.n(core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_50__),
- core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(233),
- core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_51___default = __webpack_require__.n(core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_51__),
- core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(234),
- core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_52___default = __webpack_require__.n(core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_52__),
- core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(235),
- core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_53___default = __webpack_require__.n(core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_53__),
- core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(236),
- core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_54___default = __webpack_require__.n(core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_54__),
- core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(245),
- core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_55___default = __webpack_require__.n(core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_55__),
- core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(246),
- core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_56___default = __webpack_require__.n(core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_56__),
- core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(247),
- core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_57___default = __webpack_require__.n(core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_57__),
- core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(248),
- core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_58___default = __webpack_require__.n(core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_58__),
- core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(249),
- core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_59___default = __webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_59__),
- jquery__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(0),
- jquery__WEBPACK_IMPORTED_MODULE_60___default = __webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_60__),
- _claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(252),
- _claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_61___default = __webpack_require__.n(_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_61__),
- jsbarcode__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(106),
- jsbarcode__WEBPACK_IMPORTED_MODULE_62___default = __webpack_require__.n(jsbarcode__WEBPACK_IMPORTED_MODULE_62__),
- _plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(253),
- _plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_63___default = __webpack_require__.n(_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_63__),
- bwip_js__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(107),
- bwip_js__WEBPACK_IMPORTED_MODULE_64___default = __webpack_require__.n(bwip_js__WEBPACK_IMPORTED_MODULE_64__),
- _plugins_watermark_js__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(77),
- socket_io_client__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(157),
- socket_io_client__WEBPACK_IMPORTED_MODULE_66___default = __webpack_require__.n(socket_io_client__WEBPACK_IMPORTED_MODULE_66__),
- _css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(158),
- _css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_67___default = __webpack_require__.n(_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_67__),
- _css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(159),
- _css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_68___default = __webpack_require__.n(_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_68__),
- jspdf__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(160),
- jspdf__WEBPACK_IMPORTED_MODULE_69___default = __webpack_require__.n(jspdf__WEBPACK_IMPORTED_MODULE_69__),
- html2canvas__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(161),
- html2canvas__WEBPACK_IMPORTED_MODULE_70___default = __webpack_require__.n(html2canvas__WEBPACK_IMPORTED_MODULE_70__),
- nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(27),
- nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default = __webpack_require__.n(nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71__),
- canvg__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(162),
- canvg__WEBPACK_IMPORTED_MODULE_72___default = __webpack_require__.n(canvg__WEBPACK_IMPORTED_MODULE_72__),
- _etypes_default_etyps_provider__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(163);
+ function r(e) {
+ var t;
+ return (n[e] || (t = n[e] = {
+ i: e,
+ l: !1,
+ exports: {}
+ }, i[e].call(t.exports, t, t.exports, r), t.l = !0, t)).exports
+ }
+ return r.m = i, r.c = n, r.d = function(e, t, i) {
+ r.o(e, t) || Object.defineProperty(e, t, {
+ enumerable: !0,
+ get: i
+ })
+ }, r.r = function(e) {
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
+ value: "Module"
+ }), Object.defineProperty(e, "__esModule", {
+ value: !0
+ })
+ }, r.t = function(t, e) {
+ if (1 & e && (t = r(t)), 8 & e) return t;
+ if (4 & e && "object" == typeof t && t && t.__esModule) return t;
+ var i = Object.create(null);
+ if (r.r(i), Object.defineProperty(i, "default", {
+ enumerable: !0,
+ value: t
+ }), 2 & e && "string" != typeof t)
+ for (var n in t) r.d(i, n, function(e) {
+ return t[e]
+ }.bind(null, n));
+ return i
+ }, r.n = function(e) {
+ var t = e && e.__esModule ? function() {
+ return e.default
+ } : function() {
+ return e
+ };
+ return r.d(t, "a", t), t
+ }, r.o = function(e, t) {
+ return Object.prototype.hasOwnProperty.call(e, t)
+ }, r.p = "/dist/", r(r.s = 176)
+ })([function(e, t) {
+ e.exports = __WEBPACK_EXTERNAL_MODULE__0__
+ }, function(e, t, i) {
+ var i = i(63),
+ n = Function.prototype,
+ r = n.call,
+ n = i && n.bind.bind(r, r);
+ e.exports = i ? n : function(e) {
+ return function() {
+ return r.apply(e, arguments)
+ }
+ }
+ }, function(e, t, i) {
+ e.exports = function(e) {
+ try {
+ return !!e()
+ } catch (e) {
+ return !0
+ }
+ }
+ }, function(e, t, i) {
+ var c = i(4),
+ l = i(36).f,
+ p = i(27),
+ d = i(15),
+ u = i(83),
+ f = i(86),
+ h = i(69);
+ e.exports = function(e, t) {
+ var i, n, r, A = e.target,
+ a = e.global,
+ o = e.stat,
+ s = a ? c : o ? c[A] || u(A, {}) : c[A] && c[A].prototype;
+ if (s)
+ for (i in t) {
+ if (n = t[i], r = e.dontCallGetSet ? (r = l(s, i)) && r.value : s[i], !h(a ? i : A + (o ? "." : "#") + i, e.forced) && void 0 !== r) {
+ if (typeof n == typeof r) continue;
+ f(n, r)
+ }(e.sham || r && r.sham) && p(n, "sham", !0), d(s, i, n, e)
+ }
+ }
+ }, function(i, e, t) {
+ ! function(e) {
+ function t(e) {
+ return e && e.Math === Math && e
+ }
+ i.exports = t("object" == typeof globalThis && globalThis) || t("object" == typeof window && window) || t("object" == typeof self && self) || t("object" == typeof e && e) || t("object" == typeof this && this) || function() {
+ return this
+ }() || Function("return this")()
+ }.call(this, t(179))
+ }, function(e, t, i) {
+ i = i(2);
+ e.exports = !i(function() {
+ return 7 !== Object.defineProperty({}, 1, {
+ get: function() {
+ return 7
+ }
+ })[1]
+ })
+ }, function(e, t, i) {
+ var n = i(4),
+ r = i(40),
+ A = i(10),
+ a = i(66),
+ o = i(37),
+ i = i(111),
+ s = n.Symbol,
+ c = r("wks"),
+ l = i ? s.for || s : s && s.withoutSetter || a;
+ e.exports = function(e) {
+ return A(c, e) || (c[e] = o && A(s, e) ? s[e] : l("Symbol." + e)), c[e]
+ }
+ }, function(e, t, i) {
+ var n = i(54),
+ r = String;
+ e.exports = function(e) {
+ if ("Symbol" === n(e)) throw new TypeError("Cannot convert a Symbol value to a string");
+ return r(e)
+ }
+ }, function(e, t, i) {
+ var n = "object" == typeof document && document.all;
+ e.exports = void 0 === n && void 0 !== n ? function(e) {
+ return "function" == typeof e || e === n
+ } : function(e) {
+ return "function" == typeof e
+ }
+ }, function(e, t, i) {
+ var i = i(63),
+ n = Function.prototype.call;
+ e.exports = i ? n.bind(n) : function() {
+ return n.apply(n, arguments)
+ }
+ }, function(e, t, i) {
+ var n = i(1),
+ r = i(17),
+ A = n({}.hasOwnProperty);
+ e.exports = Object.hasOwn || function(e, t) {
+ return A(r(e), t)
+ }
+ }, function(e, t, i) {
+ var n = i(8);
+ e.exports = function(e) {
+ return "object" == typeof e ? null !== e : n(e)
+ }
+ }, function(e, t, i) {
+ var n = i(11),
+ r = String,
+ A = TypeError;
+ e.exports = function(e) {
+ if (n(e)) return e;
+ throw new A(r(e) + " is not an object")
+ }
+ }, function(e, t, i) {
+ var n = i(5),
+ r = i(112),
+ A = i(113),
+ a = i(12),
+ o = i(81),
+ s = TypeError,
+ c = Object.defineProperty,
+ l = Object.getOwnPropertyDescriptor,
+ p = "enumerable",
+ d = "configurable",
+ u = "writable";
+ t.f = n ? A ? function(e, t, i) {
+ var n;
+ return a(e), t = o(t), a(i), "function" == typeof e && "prototype" === t && "value" in i && u in i && !i[u] && (n = l(e, t)) && n[u] && (e[t] = i.value, i = {
+ configurable: (d in i ? i : n)[d],
+ enumerable: (p in i ? i : n)[p],
+ writable: !1
+ }), c(e, t, i)
+ } : c : function(e, t, i) {
+ if (a(e), t = o(t), a(i), r) try {
+ return c(e, t, i)
+ } catch (e) {}
+ if ("get" in i || "set" in i) throw new s("Accessors not supported");
+ return "value" in i && (e[t] = i.value), e
+ }
+ }, function(e, t, i) {
+ var n = i(4),
+ r = i(8);
+ e.exports = function(e, t) {
+ return arguments.length < 2 ? (i = n[e], r(i) ? i : void 0) : n[e] && n[e][t];
+ var i
+ }
+ }, function(e, t, i) {
+ var a = i(8),
+ o = i(13),
+ s = i(85),
+ c = i(83);
+ e.exports = function(e, t, i, n) {
+ var r = (n = n || {}).enumerable,
+ A = void 0 !== n.name ? n.name : t;
+ if (a(i) && s(i, A, n), n.global) r ? e[t] = i : c(t, i);
+ else {
+ try {
+ n.unsafe ? e[t] && (r = !0) : delete e[t]
+ } catch (e) {}
+ r ? e[t] = i : o.f(e, t, {
+ value: i,
+ enumerable: !1,
+ configurable: !n.nonConfigurable,
+ writable: !n.nonWritable
+ })
+ }
+ return e
+ }
+ }, function(e, t, i) {
+ var n = i(33),
+ r = TypeError;
+ e.exports = function(e) {
+ if (n(e)) throw new r("Can't call method on " + e);
+ return e
+ }
+ }, function(e, t, i) {
+ var n = i(16),
+ r = Object;
+ e.exports = function(e) {
+ return r(n(e))
+ }
+ }, function(e, t, i) {
+ var i = i(1),
+ n = i({}.toString),
+ r = i("".slice);
+ e.exports = function(e) {
+ return r(n(e), 8, -1)
+ }
+ }, function(e, t, i) {
+ e.exports = !1
+ }, function(e, t, i) {
+ var n, r, A, a, o = i(181),
+ s = i(4),
+ c = i(11),
+ l = i(27),
+ p = i(10),
+ d = i(82),
+ u = i(67),
+ i = i(52),
+ f = "Object already initialized",
+ h = s.TypeError,
+ s = s.WeakMap,
+ g = o || d.state ? ((A = d.state || (d.state = new s)).get = A.get, A.has = A.has, A.set = A.set, n = function(e, t) {
+ if (A.has(e)) throw new h(f);
+ return t.facade = e, A.set(e, t), t
+ }, r = function(e) {
+ return A.get(e) || {}
+ }, function(e) {
+ return A.has(e)
+ }) : (i[a = u("state")] = !0, n = function(e, t) {
+ if (p(e, a)) throw new h(f);
+ return t.facade = e, l(e, a, t), t
+ }, r = function(e) {
+ return p(e, a) ? e[a] : {}
+ }, function(e) {
+ return p(e, a)
+ });
+ e.exports = {
+ set: n,
+ get: r,
+ has: g,
+ enforce: function(e) {
+ return g(e) ? r(e) : n(e, {})
+ },
+ getterFor: function(t) {
+ return function(e) {
+ if (c(e) && (e = r(e)).type === t) return e;
+ throw new h("Incompatible receiver, " + t + " required")
+ }
+ }
+ }
+ }, function(e, t, i) {
+ var n = i(85),
+ r = i(13);
+ e.exports = function(e, t, i) {
+ return i.get && n(i.get, t, {
+ getter: !0
+ }), i.set && n(i.set, t, {
+ setter: !0
+ }), r.f(e, t, i)
+ }
+ }, function(module, __webpack_exports__, __webpack_require__) {
+ ! function(jQuery) {
+ __webpack_require__.d(__webpack_exports__, "b", function() {
+ return hiprint
+ }), __webpack_require__.d(__webpack_exports__, "a", function() {
+ return defaultElementTypeProvider
+ });
+ var _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(174),
+ _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(165),
+ _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(175),
+ _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24),
+ _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25),
+ _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29),
+ core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(177),
+ core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_6___default = __webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_6__),
+ core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(191),
+ core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_7___default = __webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_7__),
+ core_js_modules_es_symbol_has_instance_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(192),
+ core_js_modules_es_symbol_has_instance_js__WEBPACK_IMPORTED_MODULE_8___default = __webpack_require__.n(core_js_modules_es_symbol_has_instance_js__WEBPACK_IMPORTED_MODULE_8__),
+ core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(193),
+ core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_9___default = __webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_9__),
+ core_js_modules_es_symbol_to_string_tag_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(194),
+ core_js_modules_es_symbol_to_string_tag_js__WEBPACK_IMPORTED_MODULE_10___default = __webpack_require__.n(core_js_modules_es_symbol_to_string_tag_js__WEBPACK_IMPORTED_MODULE_10__),
+ core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(123),
+ core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11___default = __webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11__),
+ core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(93),
+ core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_12___default = __webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_12__),
+ core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(201),
+ core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_13___default = __webpack_require__.n(core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_13__),
+ core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(203),
+ core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14___default = __webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__),
+ core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(204),
+ core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_15___default = __webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_15__),
+ core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(205),
+ core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_16___default = __webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_16__),
+ core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(126),
+ core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_17___default = __webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_17__),
+ core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(127),
+ core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_18___default = __webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_18__),
+ core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(206),
+ core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_19___default = __webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_19__),
+ core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(128),
+ core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_20___default = __webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_20__),
+ core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(130),
+ core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_21___default = __webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_21__),
+ core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(207),
+ core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_22___default = __webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_22__),
+ core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(211),
+ core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_23___default = __webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_23__),
+ core_js_modules_es_function_has_instance_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(212),
+ core_js_modules_es_function_has_instance_js__WEBPACK_IMPORTED_MODULE_24___default = __webpack_require__.n(core_js_modules_es_function_has_instance_js__WEBPACK_IMPORTED_MODULE_24__),
+ core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(213),
+ core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_25___default = __webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_25__),
+ core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(122),
+ core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_26___default = __webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_26__),
+ core_js_modules_es_json_to_string_tag_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(214),
+ core_js_modules_es_json_to_string_tag_js__WEBPACK_IMPORTED_MODULE_27___default = __webpack_require__.n(core_js_modules_es_json_to_string_tag_js__WEBPACK_IMPORTED_MODULE_27__),
+ core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(215),
+ core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_28___default = __webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_28__),
+ core_js_modules_es_math_to_string_tag_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(224),
+ core_js_modules_es_math_to_string_tag_js__WEBPACK_IMPORTED_MODULE_29___default = __webpack_require__.n(core_js_modules_es_math_to_string_tag_js__WEBPACK_IMPORTED_MODULE_29__),
+ core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(225),
+ core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_30___default = __webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_30__),
+ core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(226),
+ core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_31___default = __webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_31__),
+ core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(228),
+ core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_32___default = __webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_32__),
+ core_js_modules_es_object_proto_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(229),
+ core_js_modules_es_object_proto_js__WEBPACK_IMPORTED_MODULE_33___default = __webpack_require__.n(core_js_modules_es_object_proto_js__WEBPACK_IMPORTED_MODULE_33__),
+ core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(230),
+ core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_34___default = __webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_34__),
+ core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(98),
+ core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_35___default = __webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_35__),
+ core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(232),
+ core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_36___default = __webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_36__),
+ core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(233),
+ core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_37___default = __webpack_require__.n(core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_37__),
+ core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(61),
+ core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_38___default = __webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_38__),
+ core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(234),
+ core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_39___default = __webpack_require__.n(core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_39__),
+ core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(149),
+ core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_40___default = __webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_40__),
+ core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(150),
+ core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_41___default = __webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_41__),
+ core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(235),
+ core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_42___default = __webpack_require__.n(core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_42__),
+ core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(151),
+ core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_43___default = __webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_43__),
+ core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(152),
+ core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_44___default = __webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_44__),
+ core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(153),
+ core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_45___default = __webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_45__),
+ core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(107),
+ core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_46___default = __webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_46__),
+ core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(237),
+ core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_47___default = __webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_47__),
+ core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(240),
+ core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_48___default = __webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_48__),
+ core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(241),
+ core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_49___default = __webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_49__),
+ core_js_modules_es_string_fixed_js__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(243),
+ core_js_modules_es_string_fixed_js__WEBPACK_IMPORTED_MODULE_50___default = __webpack_require__.n(core_js_modules_es_string_fixed_js__WEBPACK_IMPORTED_MODULE_50__),
+ core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(244),
+ core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_51___default = __webpack_require__.n(core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_51__),
+ core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(245),
+ core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_52___default = __webpack_require__.n(core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_52__),
+ core_js_modules_web_btoa_js__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(246),
+ core_js_modules_web_btoa_js__WEBPACK_IMPORTED_MODULE_53___default = __webpack_require__.n(core_js_modules_web_btoa_js__WEBPACK_IMPORTED_MODULE_53__),
+ core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(247),
+ core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_54___default = __webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_54__),
+ core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(249),
+ core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_55___default = __webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_55__),
+ core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(250),
+ core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_56___default = __webpack_require__.n(core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_56__),
+ core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(255),
+ core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_57___default = __webpack_require__.n(core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_57__),
+ core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(256),
+ core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_58___default = __webpack_require__.n(core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_58__),
+ core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(257),
+ core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_59___default = __webpack_require__.n(core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_59__),
+ core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(265),
+ core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_60___default = __webpack_require__.n(core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_60__),
+ core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(266),
+ core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_61___default = __webpack_require__.n(core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_61__),
+ core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(267),
+ core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_62___default = __webpack_require__.n(core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_62__),
+ core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(268),
+ core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_63___default = __webpack_require__.n(core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_63__),
+ core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(269),
+ core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_64___default = __webpack_require__.n(core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_64__),
+ jquery__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(0),
+ jquery__WEBPACK_IMPORTED_MODULE_65___default = __webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_65__),
+ _claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(270),
+ _claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_66___default = __webpack_require__.n(_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_66__),
+ jsbarcode__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(108),
+ jsbarcode__WEBPACK_IMPORTED_MODULE_67___default = __webpack_require__.n(jsbarcode__WEBPACK_IMPORTED_MODULE_67__),
+ _plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(271),
+ _plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_68___default = __webpack_require__.n(_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_68__),
+ bwip_js__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(109),
+ bwip_js__WEBPACK_IMPORTED_MODULE_69___default = __webpack_require__.n(bwip_js__WEBPACK_IMPORTED_MODULE_69__),
+ _plugins_watermark_js__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(79),
+ socket_io_client__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(166),
+ socket_io_client__WEBPACK_IMPORTED_MODULE_71___default = __webpack_require__.n(socket_io_client__WEBPACK_IMPORTED_MODULE_71__),
+ _css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(167),
+ _css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_72___default = __webpack_require__.n(_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_72__),
+ _css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(168),
+ _css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_73___default = __webpack_require__.n(_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_73__),
+ jspdf__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(169),
+ jspdf__WEBPACK_IMPORTED_MODULE_74___default = __webpack_require__.n(jspdf__WEBPACK_IMPORTED_MODULE_74__),
+ _wtto00_html2canvas__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(170),
+ _wtto00_html2canvas__WEBPACK_IMPORTED_MODULE_75___default = __webpack_require__.n(_wtto00_html2canvas__WEBPACK_IMPORTED_MODULE_75__),
+ nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(30),
+ nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default = __webpack_require__.n(nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76__),
+ canvg__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(171),
+ canvg__WEBPACK_IMPORTED_MODULE_77___default = __webpack_require__.n(canvg__WEBPACK_IMPORTED_MODULE_77__),
+ _etypes_default_etyps_provider__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(172),
+ _excluded = ["fragmentSize", "sendInterval", "html", "generateHTMLInterval", "printByFragments"];
- function _instanceof(t, e) {
- return null != e && "undefined" != typeof Symbol && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](t) : t instanceof e
- }
+ function _instanceof(e, t) {
+ return null != t && "undefined" != typeof Symbol && t[Symbol.hasInstance] ? !!t[Symbol.hasInstance](e) : e instanceof t
+ }
- function _typeof(t) {
- return (_typeof = "function" == typeof Symbol && "symbol" === Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__.a)(Symbol.iterator) ? function (t) {
- return Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__.a)(t)
- } : function (t) {
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__.a)(t)
- })(t)
- }
- window.$ = window.jQuery = jquery__WEBPACK_IMPORTED_MODULE_60___default.a, window.autoConnect = !0, window.io = socket_io_client__WEBPACK_IMPORTED_MODULE_66__.io;
- var languages = {},
- ctx = __webpack_require__(254),
- i18n = (ctx.keys().forEach(function (t) {
- languages[t.match(/\.\/([^.]+)/)[1]] = ctx(t)
- }), {
- lang: "cn",
- languages: languages,
- __: function (t, e) {
- var i = this.languages[this.lang][t] || t;
- return e && e instanceof Object ? (Object.keys(e).forEach(function (t) {
- i = i.replace(new RegExp("{{".concat(t, "}}"), "g"), e[t])
- }), i) : e ? i = i.replace(/%s/g, e) : i
- },
- __n: function (t, e) {
- return this.languages[this.lang][t].replace(/%s/g, e)
- }
- }),
- hiprint = function (i) {
- var n = {};
+ function _typeof(e) {
+ return (_typeof = "function" == typeof Symbol && "symbol" === Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_5__.a)(Symbol.iterator) ? function(e) {
+ return Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_5__.a)(e)
+ } : function(e) {
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_5__.a)(e)
+ })(e)
+ }
+ window.$ = window.jQuery = jquery__WEBPACK_IMPORTED_MODULE_65___default.a, window.autoConnect = !0, window.io = socket_io_client__WEBPACK_IMPORTED_MODULE_71__.io;
+ var languages = {},
+ ctx = __webpack_require__(272),
+ i18n = (ctx.keys().forEach(function(e) {
+ languages[e.match(/\.\/([^.]+)/)[1]] = ctx(e)
+ }), {
+ lang: "cn",
+ languages: languages,
+ __: function(e, t) {
+ var i = this.languages[this.lang][e] || e;
+ return t && t instanceof Object ? (Object.keys(t).forEach(function(e) {
+ i = i.replace(new RegExp("{{".concat(e, "}}"), "g"), t[e])
+ }), i) : t ? i = i.replace(/%s/g, t) : i
+ },
+ __n: function(e, t) {
+ return this.languages[this.lang][e].replace(/%s/g, t)
+ }
+ }),
+ hiprint = (i => {
+ var n = {};
- function r(t) {
- var e;
- return (n[t] || (e = n[t] = {
- i: t,
- l: !1,
- exports: {}
- }, i[t].call(e.exports, e, e.exports, r), e.l = !0, e)).exports
- }
- return r.m = i, r.c = n, r.d = function (t, e, i) {
- r.o(t, e) || Object.defineProperty(t, e, {
- enumerable: !0,
- get: i
- })
- }, r.r = function (t) {
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
- value: "Module"
- }), Object.defineProperty(t, "__esModule", {
- value: !0
- })
- }, r.t = function (e, t) {
- if (1 & t && (e = r(e)), 8 & t) return e;
- if (4 & t && "object" == _typeof(e) && e && e.__esModule) return e;
- var i = Object.create(null);
- if (r.r(i), Object.defineProperty(i, "default", {
- enumerable: !0,
- value: e
- }), 2 & t && "string" != typeof e)
- for (var n in e) r.d(i, n, function (t) {
- return e[t]
- }.bind(null, n));
- return i
- }, r.n = function (t) {
- var e = t && t.__esModule ? function () {
- return t.default
- } : function () {
- return t
- };
- return r.d(e, "a", e), e
- }, r.o = function (t, e) {
- return Object.prototype.hasOwnProperty.call(t, e)
- }, r.p = "/", r(r.s = 21)
- }([function (t, e, i) {
- var a;
- i.d(e, "a", function () {
- return hinnn
- }), window.hinnn = {}, hinnn.event = (a = {}, {
- on: function (t, e) {
- a[t] || (a[t] = []), a[t].push(e)
- },
- id: 0,
- off: function (t, e) {
- var i = a[t];
- if (i) {
- for (var n = -1, r = 0; r < i.length; r++)
- if (i[r] === e) {
- n = r;
- break
- } n < 0 || a[t].splice(n, 1)
- }
- },
- trigger: function (t) {
- var e = a[t];
- if (e && e.length)
- for (var i = Array.prototype.slice.call(arguments, 1), n = 0; n < e.length; n++) e[n].apply(this, i)
- },
- clear: function (t) {
- a[t] = []
- },
- getId: function () {
- return this.id += 1, this.id
- },
- getNameWithId: function (t) {
- return t + "-" + this.getId()
- }
- }), hinnn.form = {
- serialize: function (t) {
- var t = jquery__WEBPACK_IMPORTED_MODULE_60___default()(t).serializeArray(),
- e = {};
- return jquery__WEBPACK_IMPORTED_MODULE_60___default.a.each(t, function () {
- e[this.name] ? "[object Array]" == Object.prototype.toString.call(e[this.name]) ? e[this.name].push(this.value) : e[this.name] = [e[this.name], this.value] : e[this.name] = this.value
- }), e
- }
- }, hinnn.pt = {
- toPx: function (t) {
- return t * (this.getDpi() / 72)
- },
- toMm: function (t) {
- return hinnn.px.toMm(hinnn.pt.toPx(t))
- },
- dpi: 0,
- getDpi: function () {
- var t;
- return this.dpi || ((t = document.createElement("DIV")).style.cssText = "width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden", document.body.appendChild(t), this.dpi = t.offsetHeight), this.dpi
- }
- }, hinnn.px = {
- toPt: function (t) {
- return t * (72 / this.getDpi())
- },
- toMm: function (t) {
- return Math.round(t / this.getDpi() * 25.4 * 100) / 100
- },
- dpi: 0,
- getDpi: function () {
- var t;
- return this.dpi || ((t = document.createElement("DIV")).style.cssText = "width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden", document.body.appendChild(t), this.dpi = t.offsetHeight), this.dpi
- }
- }, hinnn.mm = {
- toPt: function (t) {
- return 72 / 25.4 * t
- },
- toPx: function (t) {
- return hinnn.pt.toPx(hinnn.mm.toPt(t))
- }
- }, hinnn.throttle = function (i, n, r) {
- function a() {
- p = !1 === r.leading ? 0 : _.now(), l = null, c = i.apply(o, s), l || (o = s = null)
- }
- var o, s, c, l = null,
- p = 0;
- r = r || {};
- return function () {
- var t = _.now(),
- e = (p || !1 !== r.leading || (p = t), n - (t - p));
- return o = this, s = arguments, e <= 0 || n < e ? (l && (clearTimeout(l), l = null), p = t, c = i.apply(o, s), l || (o = s = null)) : l || !1 === r.trailing || (l = setTimeout(a, e)), c
- }
- }, hinnn.debounce = function (e, i, n) {
- function r() {
- var t = _.now() - c;
- t < i && 0 <= t ? a = setTimeout(r, i - t) : (a = null, n || (l = e.apply(s, o), a) || (s = o = null))
- }
- var a, o, s, c, l;
- return function () {
- s = this, o = arguments, c = _.now();
- var t = n && !a;
- return a = a || setTimeout(r, i), t && (l = e.apply(s, o), s = o = null), l
- }
- }, hinnn.toUtf8 = function (t) {
- for (var e, i = "", n = t.length, r = 0; r < n; r++) 1 <= (e = t.charCodeAt(r)) && e <= 127 ? i += t.charAt(r) : (2047 < e ? i = (i += String.fromCharCode(224 | e >> 12 & 15)) + String.fromCharCode(128 | e >> 6 & 63) : i += String.fromCharCode(192 | e >> 6 & 31), i += String.fromCharCode(128 | e >> 0 & 63));
- return i
- }, hinnn.groupBy = function (t, n, r) {
- var a = {};
- return t.forEach(function (e) {
- var i = JSON.stringify(r(e));
- a[i] || (a[i] = {
- rows: []
- }, n.forEach(function (t) {
- a[i][t] = e[t]
- })), a[i].rows.push(e)
- }), Object.keys(a).map(function (t) {
- return a[t]
- })
- }, hinnn.orderBy = function (t, e) {
- if (t.length <= 1) return t;
- var i = Math.floor(t.length / 2),
- n = t.splice(i, 1)[0],
- r = [],
- a = [],
- o = !0,
- i = !1,
- s = void 0;
- try {
- for (var c, l = t[Symbol.iterator](); !(o = (c = l.next()).done); o = !0) {
- var p = c.value;
- (e(p) < e(n) ? r : a).push(p)
- }
- } catch (t) {
- i = !0, s = t
- } finally {
- try {
- o || null == l.return || l.return()
- } finally {
- if (i) throw s
- }
- }
- return this.orderBy(r, e).concat([n], this.orderBy(a, e))
- }, hinnn.dateFormat = function (t, e) {
- if (t) try {
- var i, n = "string" == typeof t ? new Date(t) : t,
- r = {
- "y+": n.getFullYear(),
- "M+": n.getMonth() + 1,
- "d+": n.getDate(),
- "H+": n.getHours(),
- "m+": n.getMinutes(),
- "s+": n.getSeconds(),
- "q+": Math.floor((n.getMonth() + 3) / 3),
- S: n.getMilliseconds()
- };
- for (i in /(y+)/.test(e) && (e = e.replace(RegExp.$1, (n.getFullYear() + "").substr(4 - RegExp.$1.length))), r) new RegExp("(" + i + ")").test(e) && (e = e.replace(RegExp.$1, 1 == RegExp.$1.length ? r[i] : ("00" + r[i]).substr(("" + r[i]).length)));
- return e
- } catch (t) { }
- return ""
- }, hinnn.numFormat = function (t, e) {
- if (null != t) try {
- var i = "string" == typeof t ? parseFloat(t) : t,
- n = parseInt(e);
- return 0 < n ? i.toFixed(n) : parseInt(i.toString())
- } catch (t) { }
- return ""
- }, hinnn.toUpperCase = function (t, e) {
- if (!nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default.a) return e;
- var i = e;
- switch (t) {
- case "0":
- i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default.a.cn.encodeS(e);
- break;
- case "1":
- i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default.a.cn.encodeS(e, {
- tenMin: !1
- });
- break;
- case "2":
- i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default.a.cn.encodeB(e, {
- tenMin: !0
- });
- break;
- case "3":
- i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default.a.cn.encodeB(e);
- break;
- case "4":
- i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default.a.cn.toMoney(e, {
- tenMin: !0
- });
- break;
- case "5":
- i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default.a.cn.toMoney(e);
- break;
- case "6":
- i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default.a.cn.toMoney(e, {
- complete: !0
- });
- break;
- case "7":
- i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_71___default.a.cn.toMoney(e, {
- complete: !0,
- outSymbol: !1
- })
- }
- return i
- }
- }, function (t, e, i) {
- i.d(e, "a", function () {
- return r
- });
- var n = i(9),
- r = (a.prototype.init = function (t) {
- t && jquery__WEBPACK_IMPORTED_MODULE_60___default.a.extend(this, t)
- }, a.prototype.on = function (t, e) {
- hinnn.event.on(t, e)
- }, a.prototype.clear = function (t) {
- hinnn.event.clear(t)
- }, a.prototype.registerItems = function (t) {
- t.forEach(function (t) {
- n.a.registerItem(new t)
- })
- }, Object.defineProperty(a, "instance", {
- get: function () {
- return a._instance || (a._instance = new a, window.HIPRINT_CONFIG && jquery__WEBPACK_IMPORTED_MODULE_60___default.a.extend(a._instance, HIPRINT_CONFIG), a._instance.optionItems && a._instance.optionItems.forEach(function (t) {
- n.a.registerItem(new t)
- })), a._instance
- },
- enumerable: !0,
- configurable: !0
- }), a);
+ function r(e) {
+ var t;
+ return (n[e] || (t = n[e] = {
+ i: e,
+ l: !1,
+ exports: {}
+ }, i[e].call(t.exports, t, t.exports, r), t.l = !0, t)).exports
+ }
+ return r.m = i, r.c = n, r.d = function(e, t, i) {
+ r.o(e, t) || Object.defineProperty(e, t, {
+ enumerable: !0,
+ get: i
+ })
+ }, r.r = function(e) {
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
+ value: "Module"
+ }), Object.defineProperty(e, "__esModule", {
+ value: !0
+ })
+ }, r.t = function(t, e) {
+ if (1 & e && (t = r(t)), 8 & e) return t;
+ if (4 & e && "object" == _typeof(t) && t && t.__esModule) return t;
+ var i = Object.create(null);
+ if (r.r(i), Object.defineProperty(i, "default", {
+ enumerable: !0,
+ value: t
+ }), 2 & e && "string" != typeof t)
+ for (var n in t) r.d(i, n, function(e) {
+ return t[e]
+ }.bind(null, n));
+ return i
+ }, r.n = function(e) {
+ var t = e && e.__esModule ? function() {
+ return e.default
+ } : function() {
+ return e
+ };
+ return r.d(t, "a", t), t
+ }, r.o = function(e, t) {
+ return Object.prototype.hasOwnProperty.call(e, t)
+ }, r.p = "/", r(r.s = 21)
+ })([function(e, t, i) {
+ var A;
+ i.d(t, "a", function() {
+ return hinnn
+ }), window.hinnn = {}, hinnn.event = (A = {}, {
+ on: function(e, t) {
+ A[e] || (A[e] = []), A[e].push(t)
+ },
+ id: 0,
+ off: function(e, t) {
+ var i = A[e];
+ if (i) {
+ for (var n = -1, r = 0; r < i.length; r++)
+ if (i[r] === t) {
+ n = r;
+ break
+ } n < 0 || A[e].splice(n, 1)
+ }
+ },
+ trigger: function(e) {
+ var t = A[e];
+ if (t && t.length)
+ for (var i = Array.prototype.slice.call(arguments, 1), n = 0; n < t.length; n++) t[n].apply(this, i)
+ },
+ clear: function(e) {
+ A[e] = []
+ },
+ getId: function() {
+ return this.id += 1, this.id
+ },
+ getNameWithId: function(e) {
+ return e + "-" + this.getId()
+ }
+ }), hinnn.form = {
+ serialize: function(e) {
+ var e = jquery__WEBPACK_IMPORTED_MODULE_65___default()(e).serializeArray(),
+ t = {};
+ return jquery__WEBPACK_IMPORTED_MODULE_65___default.a.each(e, function() {
+ t[this.name] ? "[object Array]" == Object.prototype.toString.call(t[this.name]) ? t[this.name].push(this.value) : t[this.name] = [t[this.name], this.value] : t[this.name] = this.value
+ }), t
+ }
+ }, hinnn.pt = {
+ toPx: function(e) {
+ return e * (this.getDpi() / 72)
+ },
+ toMm: function(e) {
+ return hinnn.px.toMm(hinnn.pt.toPx(e))
+ },
+ dpi: 0,
+ getDpi: function() {
+ var e;
+ return this.dpi || ((e = document.createElement("DIV")).style.cssText = "width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden", document.body.appendChild(e), this.dpi = e.offsetHeight), this.dpi
+ }
+ }, hinnn.px = {
+ toPt: function(e) {
+ return e * (72 / this.getDpi())
+ },
+ toMm: function(e) {
+ return Math.round(e / this.getDpi() * 25.4 * 100) / 100
+ },
+ dpi: 0,
+ getDpi: function() {
+ var e;
+ return this.dpi || ((e = document.createElement("DIV")).style.cssText = "width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden", document.body.appendChild(e), this.dpi = e.offsetHeight), this.dpi
+ }
+ }, hinnn.mm = {
+ toPt: function(e) {
+ return 72 / 25.4 * e
+ },
+ toPx: function(e) {
+ return hinnn.pt.toPx(hinnn.mm.toPt(e))
+ }
+ }, hinnn.throttle = function(i, n, r) {
+ function A() {
+ l = !1 === r.leading ? 0 : _.now(), c = null, s = i.apply(a, o), c || (a = o = null)
+ }
+ var a, o, s, c = null,
+ l = 0;
+ r = r || {};
+ return function() {
+ var e = _.now(),
+ t = (l || !1 !== r.leading || (l = e), n - (e - l));
+ return a = this, o = arguments, t <= 0 || n < t ? (c && (clearTimeout(c), c = null), l = e, s = i.apply(a, o), c || (a = o = null)) : c || !1 === r.trailing || (c = setTimeout(A, t)), s
+ }
+ }, hinnn.debounce = function(t, i, n) {
+ function r() {
+ var e = _.now() - s;
+ e < i && 0 <= e ? A = setTimeout(r, i - e) : (A = null, n || (c = t.apply(o, a), A) || (o = a = null))
+ }
+ var A, a, o, s, c;
+ return function() {
+ o = this, a = arguments, s = _.now();
+ var e = n && !A;
+ return A = A || setTimeout(r, i), e && (c = t.apply(o, a), o = a = null), c
+ }
+ }, hinnn.toUtf8 = function(e) {
+ for (var t, i = "", n = e.length, r = 0; r < n; r++) 1 <= (t = e.charCodeAt(r)) && t <= 127 ? i += e.charAt(r) : (2047 < t ? i = (i += String.fromCharCode(224 | t >> 12 & 15)) + String.fromCharCode(128 | t >> 6 & 63) : i += String.fromCharCode(192 | t >> 6 & 31), i += String.fromCharCode(128 | t >> 0 & 63));
+ return i
+ }, hinnn.groupBy = function(e, n, r) {
+ var A = {};
+ return e.forEach(function(t) {
+ var i = JSON.stringify(r(t));
+ A[i] || (A[i] = {
+ rows: []
+ }, n.forEach(function(e) {
+ A[i][e] = t[e]
+ })), A[i].rows.push(t)
+ }), Object.keys(A).map(function(e) {
+ return A[e]
+ })
+ }, hinnn.orderBy = function(e, t) {
+ if (e.length <= 1) return e;
+ var i = Math.floor(e.length / 2),
+ n = e.splice(i, 1)[0],
+ r = [],
+ A = [],
+ a = !0,
+ i = !1,
+ o = void 0;
+ try {
+ for (var s, c = e[Symbol.iterator](); !(a = (s = c.next()).done); a = !0) {
+ var l = s.value;
+ (t(l) < t(n) ? r : A).push(l)
+ }
+ } catch (e) {
+ i = !0, o = e
+ } finally {
+ try {
+ a || null == c.return || c.return()
+ } finally {
+ if (i) throw o
+ }
+ }
+ return this.orderBy(r, t).concat([n], this.orderBy(A, t))
+ }, hinnn.dateFormat = function(e, t) {
+ if (e) try {
+ var i, n = "string" == typeof e ? new Date(e) : e,
+ r = {
+ "y+": n.getFullYear(),
+ "M+": n.getMonth() + 1,
+ "d+": n.getDate(),
+ "H+": n.getHours(),
+ "m+": n.getMinutes(),
+ "s+": n.getSeconds(),
+ "q+": Math.floor((n.getMonth() + 3) / 3),
+ S: n.getMilliseconds()
+ };
+ for (i in /(y+)/.test(t) && (t = t.replace(RegExp.$1, (n.getFullYear() + "").substr(4 - RegExp.$1.length))), r) new RegExp("(" + i + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? r[i] : ("00" + r[i]).substr(("" + r[i]).length)));
+ return t
+ } catch (e) {}
+ return ""
+ }, hinnn.numFormat = function(e, t) {
+ if (null != e) try {
+ var i = "string" == typeof e ? parseFloat(e) : e,
+ n = parseInt(t);
+ return 0 < n ? i.toFixed(n) : parseInt(i.toString())
+ } catch (e) {}
+ return ""
+ }, hinnn.toUpperCase = function(e, t) {
+ if (!nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default.a) return t;
+ var i = t;
+ switch (e) {
+ case "0":
+ i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default.a.cn.encodeS(t);
+ break;
+ case "1":
+ i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default.a.cn.encodeS(t, {
+ tenMin: !1
+ });
+ break;
+ case "2":
+ i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default.a.cn.encodeB(t, {
+ tenMin: !0
+ });
+ break;
+ case "3":
+ i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default.a.cn.encodeB(t);
+ break;
+ case "4":
+ i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default.a.cn.toMoney(t, {
+ tenMin: !0
+ });
+ break;
+ case "5":
+ i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default.a.cn.toMoney(t);
+ break;
+ case "6":
+ i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default.a.cn.toMoney(t, {
+ complete: !0
+ });
+ break;
+ case "7":
+ i = nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_76___default.a.cn.toMoney(t, {
+ complete: !0,
+ outSymbol: !1
+ })
+ }
+ return i
+ }
+ }, function(e, t, i) {
+ i.d(t, "a", function() {
+ return r
+ });
+ var n = i(9),
+ r = (A.prototype.init = function(e) {
+ e && jquery__WEBPACK_IMPORTED_MODULE_65___default.a.extend(this, e)
+ }, A.prototype.on = function(e, t) {
+ hinnn.event.on(e, t)
+ }, A.prototype.clear = function(e) {
+ hinnn.event.clear(e)
+ }, A.prototype.registerItems = function(e) {
+ e.forEach(function(e) {
+ n.a.registerItem(new e)
+ })
+ }, Object.defineProperty(A, "instance", {
+ get: function() {
+ return A._instance || (A._instance = new A, window.HIPRINT_CONFIG && jquery__WEBPACK_IMPORTED_MODULE_65___default.a.extend(A._instance, HIPRINT_CONFIG), A._instance.optionItems && A._instance.optionItems.forEach(function(e) {
+ n.a.registerItem(new e)
+ })), A._instance
+ },
+ enumerable: !0,
+ configurable: !0
+ }), A);
- function a() { }
- }, function (t, e, i) {
- r.prototype.updatePosition = function (t, e) {
- this.left = t, this.top = e
- };
- var n = r;
+ function A() {}
+ }, function(e, t, i) {
+ r.prototype.updatePosition = function(e, t) {
+ this.left = e, this.top = t
+ };
+ var n = r;
- function r(t) {
- this.printElement = t
- }
- i.d(e, "a", function () {
- return a
- });
- Object.defineProperty(o, "instance", {
- get: function () {
- return this._instance || (this._instance = new o), this._instance
- },
- enumerable: !0,
- configurable: !0
- }), o.prototype.getDragingPrintElement = function () {
- return o.instance.dragingPrintElement
- }, o.prototype.setDragingPrintElement = function (t) {
- o.instance.dragingPrintElement = new n(t)
- }, o.prototype.guid = function () {
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (t) {
- var e = 16 * Math.random() | 0;
- return ("x" == t ? e : 3 & e | 8).toString(16)
- })
- }, o.prototype.imageToBase64 = function (t) {
- if (-1 == jquery__WEBPACK_IMPORTED_MODULE_60___default()(t).attr("src").indexOf("base64")) try {
- var e = document.createElement("canvas"),
- i = new Image;
- i.src = t.attr("src"), e.width = i.width, e.height = i.height, e.getContext("2d").drawImage(i, 0, 0), t.attr("src", e.toDataURL("image/png"))
- } catch (e) {
- try {
- this.xhrLoadImage(t)
- } catch (t) { }
- }
- }, o.prototype.xhrLoadImage = function (t) { }, o.prototype.transformImg = function (t) {
- var i = this;
- t.map(function (t, e) {
- i.imageToBase64(jquery__WEBPACK_IMPORTED_MODULE_60___default()(e))
- })
- }, o.prototype.getPrintTemplateById = function (t) {
- return o.instance.printTemplateContainer[t]
- }, o.prototype.setPrintTemplateById = function (t, e) {
- return o.instance.printTemplateContainer[t] = e
- };
- var a = o;
+ function r(e) {
+ this.printElement = e
+ }
+ i.d(t, "a", function() {
+ return A
+ });
+ Object.defineProperty(a, "instance", {
+ get: function() {
+ return this._instance || (this._instance = new a), this._instance
+ },
+ enumerable: !0,
+ configurable: !0
+ }), a.prototype.getDragingPrintElement = function() {
+ return a.instance.dragingPrintElement
+ }, a.prototype.setDragingPrintElement = function(e) {
+ a.instance.dragingPrintElement = new n(e)
+ }, a.prototype.guid = function() {
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
+ var t = 16 * Math.random() | 0;
+ return ("x" == e ? t : 3 & t | 8).toString(16)
+ })
+ }, a.prototype.imageToBase64 = function(e) {
+ if (-1 == jquery__WEBPACK_IMPORTED_MODULE_65___default()(e).attr("src").indexOf("base64")) try {
+ var t = document.createElement("canvas"),
+ i = new Image;
+ i.src = e.attr("src"), t.width = i.width, t.height = i.height, t.getContext("2d").drawImage(i, 0, 0), e.attr("src", t.toDataURL("image/png"))
+ } catch (t) {
+ try {
+ this.xhrLoadImage(e)
+ } catch (e) {}
+ }
+ }, a.prototype.xhrLoadImage = function(e) {}, a.prototype.transformImg = function(e) {
+ var i = this;
+ e.map(function(e, t) {
+ i.imageToBase64(jquery__WEBPACK_IMPORTED_MODULE_65___default()(t))
+ })
+ }, a.prototype.getPrintTemplateById = function(e) {
+ return a.instance.printTemplateContainer[e]
+ }, a.prototype.setPrintTemplateById = function(e, t) {
+ return a.instance.printTemplateContainer[e] = t
+ };
+ var A = a;
- function o() {
- this.printTemplateContainer = {}, this.A1 = {
- width: 841,
- height: 594
- }, this.A2 = {
- width: 420,
- height: 594
- }, this.A3 = {
- width: 420,
- height: 297
- }, this.A4 = {
- width: 210,
- height: 297
- }, this.A5 = {
- width: 210,
- height: 148
- }, this.A6 = {
- width: 105,
- height: 148
- }, this.A7 = {
- width: 105,
- height: 74
- }, this.A8 = {
- width: 52,
- height: 74
- }, this.B1 = {
- width: 1e3,
- height: 707
- }, this.B2 = {
- width: 500,
- height: 707
- }, this.B3 = {
- width: 500,
- height: 353
- }, this.B4 = {
- width: 250,
- height: 353
- }, this.B5 = {
- width: 250,
- height: 176
- }, this.B6 = {
- width: 125,
- height: 176
- }, this.B7 = {
- width: 125,
- height: 88
- }, this.B8 = {
- width: 62,
- height: 88
- }, this.dragLengthCNum = function (t, e) {
- return Math.round(.75 * t / e) * e
- }
- }
- }, function (t, e, i) {
- var r = function () { },
- n = (i.d(e, "a", function () {
- return n
- }), a.prototype.setDefault = function (t) {
- var e = this;
- this.defaultOptions = t, this.initSize(), Object.keys(this.defaultOptions).forEach(function (t) {
- e[t] = e[t] || e.defaultOptions[t]
- })
- }, a.prototype.initSize = function () {
- this.width || this.setWidth(this.defaultOptions.width), this.height || this.setHeight(this.defaultOptions.height)
- }, a.prototype.initSizeByHtml = function (t, e) {
- this.width || this.setWidth(t), this.height || this.setHeight(e)
- }, a.prototype.getRectInfo = function () {
- var t, e, i, n, r, a, o = {
- w: 0,
- h: 0,
- diffW: 0,
- diffH: 0
- };
- return this.transform && (e = this.transform * Math.PI / 180, n = this.width, t = this.height, a = Math.sin(e), e = Math.cos(e), r = (n - (i = Math.abs(n * e) + Math.abs(t * a))) / 2, a = (t - (n = Math.abs(n * a) + Math.abs(t * e))) / 2, o.w = i, o.h = n, o.diffW = r, o.diffH = a), o
- }, a.prototype.getLeft = function () {
- return this.left
- }, a.prototype.posLeft = function () {
- var t = this.left;
- return this.transform && (t += this.getRectInfo().diffW), Math.floor(10 * t) / 10
- }, a.prototype.setRotate = function (t) {
- null != t && (this.transform = t)
- }, a.prototype.displayLeft = function (t) {
- return this.transform && t ? this.left + this.getRectInfo().diffW + "pt" : this.left + "pt"
- }, a.prototype.setLeft = function (t) {
- null != t && (this.left = t)
- }, a.prototype.getTop = function () {
- return this.top
- }, a.prototype.posTop = function () {
- var t = this.top;
- return this.transform && (t += this.getRectInfo().diffH), Math.floor(10 * t) / 10
- }, a.prototype.getTopInDesign = function () {
- return this.topInDesign
- }, a.prototype.displayTop = function (t) {
- return this.transform && t ? this.top + this.getRectInfo().diffH + "pt" : this.top + "pt"
- }, a.prototype.setTop = function (t) {
- null != t && (this.top = t)
- }, a.prototype.copyDesignTopFromTop = function () {
- this.topInDesign = this.top
- }, a.prototype.getHeight = function () {
- var t;
- return this.transform ? (t = this.getRectInfo()).h + t.diffH : this.height
- }, a.prototype.displayHeight = function () {
- return this.height + "pt"
- }, a.prototype.setHeight = function (t) {
- null != t && (this.height = t)
- }, a.prototype.getWidth = function () {
- var t;
- return this.transform ? (t = this.getRectInfo()).w + t.diffW : this.width
- }, a.prototype.displayWidth = function () {
- return this.width + "pt"
- }, a.prototype.setWidth = function (t) {
- null != t && (this.width = t)
- }, a.prototype.getValueFromOptionsOrDefault = function (t) {
- return (null == this[t] ? this.defaultOptions : this)[t]
- }, a.prototype.getPrintElementOptionEntity = function () {
- var i = new r,
- n = this;
- return Object.keys(this).filter(function (t) {
- return "topInDesign" != t
- }).forEach(function (t) {
- var e;
- "number" != typeof n[t] && "string" != typeof n[t] && !["fields"].includes(t) && _typeof(n[t]) != _typeof(!0) || (i[t] = n[t]), "style" == t && (i.style = {}, e = n[t]) && Object.keys(e).forEach(function (t) {
- "number" != typeof e[t] && "string" != typeof e[t] || (i.style[t] = e[t])
- })
- }), i
- }, a.prototype.init = function (e) {
- var i = this;
- e && Object.keys(e).forEach(function (t) {
- i[t] = e[t]
- })
- }, a);
+ function a() {
+ this.printTemplateContainer = {}, this.A1 = {
+ width: 841,
+ height: 594
+ }, this.A2 = {
+ width: 420,
+ height: 594
+ }, this.A3 = {
+ width: 420,
+ height: 297
+ }, this.A4 = {
+ width: 210,
+ height: 297
+ }, this.A5 = {
+ width: 210,
+ height: 148
+ }, this.A6 = {
+ width: 105,
+ height: 148
+ }, this.A7 = {
+ width: 105,
+ height: 74
+ }, this.A8 = {
+ width: 52,
+ height: 74
+ }, this.B1 = {
+ width: 1e3,
+ height: 707
+ }, this.B2 = {
+ width: 500,
+ height: 707
+ }, this.B3 = {
+ width: 500,
+ height: 353
+ }, this.B4 = {
+ width: 250,
+ height: 353
+ }, this.B5 = {
+ width: 250,
+ height: 176
+ }, this.B6 = {
+ width: 125,
+ height: 176
+ }, this.B7 = {
+ width: 125,
+ height: 88
+ }, this.B8 = {
+ width: 62,
+ height: 88
+ }, this.dragLengthCNum = function(e, t) {
+ return Math.round(.75 * e / t) * t
+ }
+ }
+ }, function(e, t, i) {
+ var r = function() {},
+ n = (i.d(t, "a", function() {
+ return n
+ }), A.prototype.setDefault = function(e) {
+ var t = this;
+ this.defaultOptions = e, this.initSize(), Object.keys(this.defaultOptions).forEach(function(e) {
+ t[e] = t[e] || t.defaultOptions[e]
+ })
+ }, A.prototype.initSize = function() {
+ this.width || this.setWidth(this.defaultOptions.width), this.height || this.setHeight(this.defaultOptions.height)
+ }, A.prototype.initSizeByHtml = function(e, t) {
+ this.width || this.setWidth(e), this.height || this.setHeight(t)
+ }, A.prototype.getRectInfo = function() {
+ var e, t, i, n, r, A, a = {
+ w: 0,
+ h: 0,
+ diffW: 0,
+ diffH: 0
+ };
+ return this.transform && (t = this.transform * Math.PI / 180, n = this.width, e = this.height, A = Math.sin(t), t = Math.cos(t), r = (n - (i = Math.abs(n * t) + Math.abs(e * A))) / 2, A = (e - (n = Math.abs(n * A) + Math.abs(e * t))) / 2, a.w = i, a.h = n, a.diffW = r, a.diffH = A), a
+ }, A.prototype.getLeft = function() {
+ return this.left
+ }, A.prototype.posLeft = function() {
+ var e = this.left;
+ return this.transform && (e += this.getRectInfo().diffW), Math.floor(10 * e) / 10
+ }, A.prototype.setRotate = function(e) {
+ null != e && (this.transform = e)
+ }, A.prototype.displayLeft = function(e) {
+ return this.transform && e ? this.left + this.getRectInfo().diffW + "pt" : this.left + "pt"
+ }, A.prototype.setLeft = function(e) {
+ null != e && (this.left = e)
+ }, A.prototype.getTop = function() {
+ return this.top
+ }, A.prototype.posTop = function() {
+ var e = this.top;
+ return this.transform && (e += this.getRectInfo().diffH), Math.floor(10 * e) / 10
+ }, A.prototype.getTopInDesign = function() {
+ return this.topInDesign
+ }, A.prototype.displayTop = function(e) {
+ return this.transform && e ? this.top + this.getRectInfo().diffH + "pt" : this.top + "pt"
+ }, A.prototype.setTop = function(e) {
+ null != e && (this.top = e)
+ }, A.prototype.copyDesignTopFromTop = function() {
+ this.topInDesign = this.top
+ }, A.prototype.getHeight = function() {
+ var e;
+ return this.transform ? (e = this.getRectInfo()).h + e.diffH : this.height
+ }, A.prototype.displayHeight = function() {
+ return this.height + "pt"
+ }, A.prototype.setHeight = function(e) {
+ null != e && (this.height = e)
+ }, A.prototype.getWidth = function() {
+ var e;
+ return this.transform ? (e = this.getRectInfo()).w + e.diffW : this.width
+ }, A.prototype.displayWidth = function() {
+ return this.width + "pt"
+ }, A.prototype.setWidth = function(e) {
+ null != e && (this.width = e)
+ }, A.prototype.getValueFromOptionsOrDefault = function(e) {
+ return (null == this[e] ? this.defaultOptions : this)[e]
+ }, A.prototype.getPrintElementOptionEntity = function() {
+ var i = new r,
+ n = this;
+ return Object.keys(this).filter(function(e) {
+ return "topInDesign" != e
+ }).forEach(function(e) {
+ var t;
+ "number" != typeof n[e] && "string" != typeof n[e] && !["fields"].includes(e) && _typeof(n[e]) != _typeof(!0) || (i[e] = n[e]), "style" == e && (i.style = {}, t = n[e]) && Object.keys(t).forEach(function(e) {
+ "number" != typeof t[e] && "string" != typeof t[e] || (i.style[e] = t[e])
+ })
+ }), i
+ }, A.prototype.init = function(t) {
+ var i = this;
+ t && Object.keys(t).forEach(function(e) {
+ i[e] = t[e]
+ })
+ }, A);
- function a(t) {
- this.left = (t = t || {}).left, this.top = t.top, this.topInDesign = this.top, this.height = t.height, this.width = t.width, this.transform = t.transform, this.init(t)
- }
- }, function (module, __webpack_exports__, __webpack_require__) {
- __webpack_require__.d(__webpack_exports__, "a", function () {
- return BasePrintElement
- });
- var _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17),
- _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1),
- _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9),
- _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6),
- _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0),
- _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8),
- _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2),
- BasePrintElement = function () {
- function BasePrintElement(t) {
- this.printElementType = t, this.id = _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.guid()
- }
- return BasePrintElement.prototype.getConfigOptionsByName = function (t) {
- return _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance[t]
- }, BasePrintElement.prototype.getProxyTarget = function (t) {
- t && this.SetProxyTargetOption(t);
- var t = this.getData(),
- e = this.createTarget(this.getTitle(), t);
- return this.updateTargetSize(e), this.css(e, t), e
- }, BasePrintElement.prototype.SetProxyTargetOption = function (t) {
- this.options.getPrintElementOptionEntity(), jquery__WEBPACK_IMPORTED_MODULE_60___default.a.extend(this.options, t), this.copyFromType()
- }, BasePrintElement.prototype.showInPage = function (t, e) {
- var i = this.options.showInPage,
- n = this.options.unShowInPage;
- if (i) {
- if ("first" == i) return 0 == t;
- if (t == e - 1 && "last" == n) return !1;
- if ("odd" == i) return (0 != t || "first" != n) && t % 2 == 0;
- if ("even" == i) return t % 2 == 1;
- if ("last" == i) return t == e - 1
- }
- return !(0 == t && "first" == n || t == e - 1 && "last" == n)
- }, BasePrintElement.prototype.setTemplateId = function (t) {
- this.templateId = t
- }, BasePrintElement.prototype.setPanel = function (t) {
- this.panel = t
- }, BasePrintElement.prototype.getField = function () {
- return this.options.field || this.printElementType.field
- }, BasePrintElement.prototype.getTitle = function () {
- return this.printElementType.title
- }, BasePrintElement.prototype.updateSizeAndPositionOptions = function (t, e, i, n) {
- this.options.setLeft(t), this.options.setTop(e), this.options.copyDesignTopFromTop(), this.options.setWidth(i), this.options.setHeight(n)
- }, BasePrintElement.prototype.initSizeByHtml = function (t) {
- t && t.length && (this.createTempContainer(), t = t.clone(), this.getTempContainer().append(t), this.options.initSizeByHtml(parseInt(hinnn.px.toPt(t.width()).toString()), parseInt(hinnn.px.toPt(t.height()).toString())), this.removeTempContainer())
- }, BasePrintElement.prototype.updateTargetSize = function (t) {
- t.css("width", this.options.displayWidth()), t.css("height", this.options.displayHeight())
- }, BasePrintElement.prototype.updateTargetWidth = function (t) {
- t.css("width", this.options.displayWidth())
- }, BasePrintElement.prototype.getDesignTarget = function (t) {
- var n = this,
- e = 0;
- return this.designTarget = this.getHtml(t)[0].target, this.designPaper = t, this.designTarget.click(function (t) {
- 500 < t.timeStamp - e && hinnn.event.trigger(n.getPrintElementSelectEventKey(), {
- printElement: n
- }), e = t.timeStamp
- }), this.designTarget.dblclick(function (t) {
- var e, i = n.designTarget.find(".hiprint-printElement-content");
- i && (e = n.designTarget.find(".resize-panel"), "text" != n.printElementType.type || n.options.textType && "text" != n.options.textType || (n._editing = !0, n.designTarget.hidraggable("update", {
- draggable: !1
- }), i.css("cursor", "text"), i.addClass("editing"), n.designTarget.addClass("editing"), i.click(function (t) {
- n._editing && t.stopPropagation()
- }), i.attr("contenteditable", !0), e && e.css("display", "none"), n.selectEnd(i)))
- }), this.designTarget
- }, BasePrintElement.prototype.selectEnd = function (t) {
- var e, i;
- t.focus(), void 0 !== window.getSelection && void 0 !== document.createRange ? ((i = document.createRange()).selectNodeContents(t[0]), i.collapse(!1), (e = window.getSelection()).removeAllRanges(), e.addRange(i)) : void 0 !== document.body.createTextRange && ((i = document.body.createTextRange()).moveToElementText(t[0]), i.collapse(!1), i.select())
- }, BasePrintElement.prototype.updateByContent = function (t) {
- var e, i = this,
- n = i.designTarget.find(".hiprint-printElement-content");
- i._editing && (n && n.css("cursor", "") && n.removeClass("editing") && n.removeAttr("contenteditable"), i.designTarget.removeClass("editing"), n = n.text(), e = i.options.title + ":", n.startsWith(e) && i.options.field ? n.length > e.length ? i.options.testData = n.split(":")[1] : (i.options.title = n, i.options.testData = "") : i.options.title = n, t || hinnn.event.trigger(i.getPrintElementSelectEventKey(), {
- printElement: i
- }), i.updateDesignViewFromOptions(), hinnn.event.trigger("hiprintTemplateDataChanged_" + i.templateId, "编辑修改"), i._editing = !1, e = null == i.options.draggable || 1 == i.options.draggable, i.designTarget.hidraggable("update", {
- draggable: e
- }))
- }, BasePrintElement.prototype.getPrintElementSelectEventKey = function () {
- return "PrintElementSelectEventKey_" + this.templateId
- }, BasePrintElement.prototype.design = function (t, c) {
- var l = this;
- this.designTarget.hidraggable({
- draggable: l.options.draggable,
- axis: l.options.axis || void 0,
- designTarget: l,
- onDrag: function (t, e, i) {
- var n, r, a = l.panel.printElements.filter(function (t) {
- return "block" == t.designTarget.children().last().css("display") && t.designTarget.children().last().hasClass("selected") && !t.printElementType.type.includes("table")
- }),
- o = 1 < a.length,
- s = !l.designTarget.children().last().hasClass("selected");
- o && (n = e - l.options.left, r = i - l.options.top, a.forEach(function (t) {
- t.updateSizeAndPositionOptions(n + t.options.getLeft(), r + t.options.getTop()), t.designTarget.css("left", t.options.displayLeft()), t.designTarget.css("top", t.options.displayTop()), t.createLineOfPosition(c)
- }), !s) || (l.updateSizeAndPositionOptions(e, i), l.createLineOfPosition(c)), _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed = !0
- },
- moveUnit: "pt",
- minMove: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,
- onBeforeDrag: function (t) {
- _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !0, l.designTarget.focus(), l.createLineOfPosition(c)
- },
- getScale: function () {
- return l.designPaper.scale || 1
- },
- onStopDrag: function (t) {
- _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed && hinnn.event.trigger("hiprintTemplateDataChanged_" + l.templateId, "移动"), _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !1, _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed = !1;
- var e = l.panel.printElements.filter(function (t) {
- return "block" == t.designTarget.children().last().css("display") && !t.printElementType.type.includes("table")
- });
- 1 < e.length ? e.forEach(function (t) {
- t.removeLineOfPosition()
- }) : l.removeLineOfPosition()
- }
- }), this.setResizePanel(), this.bingCopyEvent(this.designTarget), this.bingKeyboardMoveEvent(this.designTarget, c)
- }, BasePrintElement.prototype.getPrintElementEntity = function (t) {
- return t ? new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(void 0, this.options.getPrintElementOptionEntity(), this.printElementType.getPrintElementTypeEntity()) : new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(this.printElementType.tid, this.options.getPrintElementOptionEntity())
- }, BasePrintElement.prototype.submitOption = function () {
- var r = this,
- t = this.getConfigOptions();
- t && t.tabs && t.tabs.length ? this.getPrintElementOptionTabs().forEach(function (t) {
- t.list.forEach(function (t) {
- var e = t.getValue(),
- i = "textType" == t.name && r.options[t.name] !== e,
- n = "axis" == t.name && r.options[t.name] !== e;
- e && "object" == _typeof(e) ? Object.keys(e).forEach(function (t) {
- r.options[t] = e[t]
- }) : r.options[t.name] = e, i && r.setResizePanel(), n && r.designTarget.hidraggable("update", {
- axis: e
- })
- })
- }) : this.getPrintElementOptionItems().forEach(function (t) {
- var e = t.getValue(),
- i = "textType" == t.name && r.options[t.name] !== e,
- n = "axis" == t.name && r.options[t.name] !== e;
- e && "object" == _typeof(e) ? Object.keys(e).forEach(function (t) {
- r.options[t] = e[t]
- }) : r.options[t.name] = e, i && r.setResizePanel(), n && r.designTarget.hidraggable("update", {
- axis: e
- })
- }), this.updateDesignViewFromOptions(), hinnn.event.trigger("hiprintTemplateDataChanged_" + this.templateId, "元素修改")
- }, BasePrintElement.prototype.updateOption = function (t, e, i) {
- try {
- var n = this.getConfigOptions(),
- r = [];
- n && n.tabs && n.tabs.length ? n.tabs.forEach(function (t) {
- t.options.forEach(function (t) {
- r.push(t.name)
- })
- }) : r = n.supportOptions.map(function (t) {
- return t.name
- }), r && r.includes(t) && (this.options[t] = e, this.updateDesignViewFromOptions(), i || hinnn.event.trigger("hiprintTemplateDataChanged_" + this.templateId, "参数修改"))
- } catch (n) { }
- }, BasePrintElement.prototype.getReizeableShowPoints = function () {
- return ["barcode", "qrcode"].includes(this.options.textType) ? ["se", "r"] : ["s", "e", "r"]
- }, BasePrintElement.prototype.setResizePanel = function () {
- var o = this,
- s = this.designPaper;
- this.designTarget.hireizeable({
- showPoints: o.getReizeableShowPoints(),
- draggable: o.options.draggable,
- showSizeBox: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.showSizeBox,
- getScale: function () {
- return o.designPaper.scale || 1
- },
- onBeforeResize: function () {
- _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !0
- },
- onResize: function (t, e, i, n, r, a) {
- null != a ? o.onRotate(t, a) : o.onResize(t, e, i, n, r), o.createLineOfPosition(s)
- },
- onStopResize: function (t) {
- hinnn.event.trigger("hiprintTemplateDataChanged_" + o.templateId, t ? "旋转" : "大小"), _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !1, o.removeLineOfPosition()
- }
- })
- }, BasePrintElement.prototype.onRotate = function (t, e) {
- this.options.setRotate(e)
- }, BasePrintElement.prototype.onResize = function (t, e, i, n, r) {
- this.updateSizeAndPositionOptions(r, n, i, e)
- }, BasePrintElement.prototype.getOrderIndex = function () {
- return this.options.getTop()
- }, BasePrintElement.prototype.getHtml = function (t, e, i) {
- this.setCurrenttemplateData(e);
- var n = [],
- r = this.getBeginPrintTopInPaperByReferenceElement(t),
- a = t.getPaperFooter(0),
- a = (this.isHeaderOrFooter() || this.isFixed() || a < r && "none" != t.panelPageRule && (n.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
- target: void 0,
- printLine: void 0
- })), r = r - a + t.paperHeader, t.getPaperFooter(1)), this.getData(e)),
- i = this.createTarget(this.getTitle(), a, i);
- return this.updateTargetSize(i), this.css(i, a), i.css("position", "absolute"), i.css("left", this.options.displayLeft()), i.css("top", r + "pt"), n.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
- target: i,
- printLine: r + this.options.getHeight(),
- referenceElement: new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({
- top: this.options.getTop(),
- left: this.options.getLeft(),
- height: this.options.getHeight(),
- width: this.options.getWidth(),
- beginPrintPaperIndex: t.index,
- bottomInLastPaper: r + this.options.getHeight(),
- printTopInPaper: r
- })
- })), e && this.options.pageBreak && (n[0].target.css("top", t.paperHeader + "pt"), n[0].referenceElement.top = this.options.getTop() - this.options.getHeight() - t.paperHeader, n[0].printLine = t.paperHeader, n[0].referenceElement.bottomInLastPaper = 0, n[0].referenceElement.printTopInPaper = t.paperHeader, n.unshift(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
- target: i,
- printLine: t.height,
- referenceElement: new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({
- top: 0,
- left: 0,
- height: 0,
- width: 0,
- beginPrintPaperIndex: t.index,
- bottomInLastPaper: t.height,
- printTopInPaper: t.paperHeader
- })
- }))), n
- }, BasePrintElement.prototype.getHtml2 = function (t, e, i) {
- var n = 0,
- r = (this.setCurrenttemplateData(e), []),
- a = this.getBeginPrintTopInPaperByReferenceElement(t),
- o = t.getPaperFooter(n),
- n = (this.isHeaderOrFooter() || this.isFixed() || ("none" != t.panelPageRule && o < a && (r.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
- target: void 0,
- printLine: void 0
- })), a = a - o + t.paperHeader, o = t.getPaperFooter(++n)), a <= o && e && a + this.options.getHeight() > o && "none" != t.panelPageRule && (r.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
- target: void 0,
- printLine: void 0
- })), a = t.paperHeader, o = t.getPaperFooter(++n))), this.getData(e)),
- s = this.createTarget(this.getTitle(), n);
- return "none" == t.panelPageRule && a + this.options.getHeight() > o && this.updatePanelHeight(a + this.options.getHeight(), t), this.updateTargetSize(s), this.css(s, n), s.css("position", "absolute"), s.css("left", this.options.displayLeft()), s.css("top", a + "pt"), r.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
- target: s,
- printLine: a + this.options.getHeight(),
- referenceElement: new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({
- top: this.options.getTop(),
- left: this.options.getLeft(),
- height: this.options.getHeight(),
- width: this.options.getWidth(),
- beginPrintPaperIndex: t.index,
- bottomInLastPaper: a + this.options.getHeight(),
- printTopInPaper: a
- })
- })), e && this.options.pageBreak && (r[0].target.css("top", t.paperHeader + "pt"), r[0].referenceElement.top = this.options.getTop() - this.options.getHeight() - t.paperHeader, r[0].printLine = t.paperHeader, r[0].referenceElement.bottomInLastPaper = 0, r[0].referenceElement.printTopInPaper = t.paperHeader, r.unshift(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
- target: s,
- printLine: t.height,
- referenceElement: new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({
- top: 0,
- left: 0,
- height: 0,
- width: 0,
- beginPrintPaperIndex: t.index,
- bottomInLastPaper: t.height,
- printTopInPaper: t.paperHeader
- })
- }))), r
- }, BasePrintElement.prototype.updatePanelHeight = function (t, e) {
- var i;
- "none" == this.panel.panelPageRule && (i = hinnn.pt.toMm(t), e.paperFooter = t, e.target.css("height", i + "mm"), e.target.attr("original-height", i))
- }, BasePrintElement.prototype.getBeginPrintTopInPaperByReferenceElement = function (t) {
- var e = this.options.getTop();
- return this.isHeaderOrFooter() || this.isFixed() ? e : t.referenceElement.isPositionLeftOrRight(e) ? t.referenceElement.printTopInPaper + (e - t.referenceElement.top) : t.referenceElement.bottomInLastPaper + (e - (t.referenceElement.top + t.referenceElement.height))
- }, BasePrintElement.prototype.css = function (i, t) {
- var e, n = this,
- r = [],
- a = this.getConfigOptions();
- a && (a.tabs && a.tabs.length ? (e = [], a.tabs.forEach(function (t) {
- e = e.concat(t.options)
- })) : e = a.supportOptions, e) && e.forEach(function (t) {
- var e = _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(t.name);
- e && e.css && (e = e.css(i, n.options.getValueFromOptionsOrDefault(t.name))) && r.push(e)
- }), this.stylerCss(i, t)
- }, BasePrintElement.prototype.stylerCss = function (e, t) {
- var i, n = this.getStyler();
- n && (i = n(t, this.options, e, this._currenttemplateData)) && Object.keys(i).forEach(function (t) {
- e.css(t, i[t])
- })
- }, BasePrintElement.prototype.getData = function (i) {
- var t = this.getField();
- return i ? t && t.split(".").reduce(function (t, e) {
- return t ? t[e] : i ? i[e] : ""
- }, !1) || "" : this.printElementType.getData()
- }, BasePrintElement.prototype.copyFromType = function () {
- var e = this.options,
- i = this.printElementType,
- t = this.getConfigOptions(),
- n = [];
- return t && t.tabs && t.tabs.length ? t.tabs.forEach(function (t) {
- t.options.forEach(function (t) {
- n.push(t.name)
- })
- }) : n = t.supportOptions.map(function (t) {
- return t.name
- }), Object.keys(i).forEach(function (t) {
- i[t] && "columns" != t && -1 < n.indexOf(t) && (e[t] = "function" == _typeof(i[t]) ? i[t].toString() : i[t])
- }), e
- }, BasePrintElement.prototype.getPrintElementOptionTabs = function () {
- var i, t;
- return this._printElementOptionTabs || (i = [], (t = this.getConfigOptions()) && (t = t.tabs) && t.forEach(function (t, e) {
- i.push({
- name: t.name,
- list: []
- }), t.options.filter(function (t) {
- return !t.hidden
- }).forEach(function (t) {
- t = _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(t.name);
- i[e].list.push(t)
- })
- }), this._printElementOptionTabs = i, this._printElementOptionItems = void 0), this._printElementOptionTabs
- }, BasePrintElement.prototype.getPrintElementOptionItems = function () {
- var e, t, i;
- return this._printElementOptionItems || (e = [], (t = this.getConfigOptions()) && (t.tabs && t.tabs.length ? (i = [], t.tabs.forEach(function (t) {
- t.concat(t.options)
- })) : i = t.supportOptions, i) && i.filter(function (t) {
- return !t.hidden
- }).forEach(function (t) {
- t = _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(t.name);
- e.push(t)
- }), this._printElementOptionItems = this.filterOptionItems(e.concat()), this._printElementOptionTabs = void 0), this._printElementOptionItems
- }, BasePrintElement.prototype.getPrintElementOptionItemsByName = function (t) {
- var e, i = [],
- t = this.getConfigOptionsByName(t);
- return t && (t.tabs && t.tabs.length ? (e = [], t.tabs.forEach(function (t) {
- e = e.concat(t.options)
- })) : e = t.supportOptions, e) && e.filter(function (t) {
- return !t.hidden
- }).forEach(function (t) {
- t = _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(t.name);
- i.push(t)
- }), i.concat()
- }, BasePrintElement.prototype.filterOptionItems = function (t) {
- return this.printElementType.field ? t.filter(function (t) {
- return "field" != t.name
- }) : t
- }, BasePrintElement.prototype.createTempContainer = function () {
- this.removeTempContainer(), jquery__WEBPACK_IMPORTED_MODULE_60___default()("body").append(jquery__WEBPACK_IMPORTED_MODULE_60___default()('
'))
- }, BasePrintElement.prototype.removeTempContainer = function () {
- jquery__WEBPACK_IMPORTED_MODULE_60___default()(".hiprint_temp_Container").remove()
- }, BasePrintElement.prototype.getTempContainer = function () {
- return jquery__WEBPACK_IMPORTED_MODULE_60___default()(".hiprint_temp_Container")
- }, BasePrintElement.prototype.isHeaderOrFooter = function () {
- return this.options.getTopInDesign() < this.panel.paperHeader || this.options.getTopInDesign() >= this.panel.paperFooter
- }, BasePrintElement.prototype.delete = function () {
- this.designTarget && this.designTarget.remove()
- }, BasePrintElement.prototype.setCurrenttemplateData = function (t) {
- this._currenttemplateData = t
- }, BasePrintElement.prototype.isFixed = function () {
- return this.options.fixed
- }, BasePrintElement.prototype.onRendered = function (t, e) {
- this.printElementType && this.printElementType.onRendered && this.printElementType.onRendered(e, this.options, t.getTarget())
- }, BasePrintElement.prototype.createLineOfPosition = function (t) {
- var e = jquery__WEBPACK_IMPORTED_MODULE_60___default()(".toplineOfPosition.id" + this.id),
- i = jquery__WEBPACK_IMPORTED_MODULE_60___default()(".topPosition.id" + this.id),
- n = jquery__WEBPACK_IMPORTED_MODULE_60___default()(".leftlineOfPosition.id" + this.id),
- r = jquery__WEBPACK_IMPORTED_MODULE_60___default()(".leftPosition.id" + this.id),
- a = jquery__WEBPACK_IMPORTED_MODULE_60___default()(".rightlineOfPosition.id" + this.id),
- o = jquery__WEBPACK_IMPORTED_MODULE_60___default()(".bottomlineOfPosition.id" + this.id),
- s = _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance;
- e.length ? e.css("top", this.options.displayTop(!0)) : ((e = jquery__WEBPACK_IMPORTED_MODULE_60___default()('')).css("top", this.options.displayTop(!0)), e.css("width", t.displayWidth()), this.designTarget.parents(".hiprint-printPaper-content").append(e)), s.showPosition && (i.length ? (i.toggleClass("topPosition-lineMode", s.positionLineMode), i.text(this.options.posTop() + (s.positionUnit ? "pt" : "")), i.css("top", this.options.posTop() - i.height() + "pt"), s.positionLineMode ? i.css("left", this.options.posLeft() - i.width() / 2 + "pt") : i.css("left", this.options.posLeft() + 2 + "pt"), this.designTarget.find(".size-box") && this.designTarget.find(".size-box").toggleClass("hide", !0)) : ((i = jquery__WEBPACK_IMPORTED_MODULE_60___default()('')).toggleClass("topPosition-lineMode", s.positionLineMode), i.text(this.options.posTop() + (s.positionUnit ? "pt" : "")), s.positionLineMode ? i.css("left", this.options.posLeft() - i.width() / 2 + "pt") : i.css("left", this.options.posLeft() + 2 + "pt"), this.designTarget.find(".size-box") && this.designTarget.find(".size-box").toggleClass("hide", !0), this.designTarget.parents(".hiprint-printPaper-content").append(i), i.css("top", this.options.posTop() - i.height() + "pt"))), n.length ? n.css("left", this.options.displayLeft(!0)) : ((e = jquery__WEBPACK_IMPORTED_MODULE_60___default()('')).css("left", this.options.displayLeft(!0)), e.css("height", t.displayHeight()), this.designTarget.parents(".hiprint-printPaper-content").append(e)), s.showPosition && (r.length ? (r.text(this.options.posLeft() + (s.positionUnit ? "pt" : "")), r.toggleClass("leftPosition-lineMode", s.positionLineMode), r.css("left", this.options.posLeft() - r.width() + "pt"), s.positionLineMode ? r.css("top", this.options.posTop() - r.height() / 3 + "pt") : r.css("top", this.options.posTop() + 2 + "pt")) : ((r = jquery__WEBPACK_IMPORTED_MODULE_60___default()('')).text(this.options.posLeft() + (s.positionUnit ? "pt" : "")), r.toggleClass("leftPosition-lineMode", s.positionLineMode), s.positionLineMode ? r.css("top", this.options.posTop() - r.height() / 3 + "pt") : r.css("top", this.options.posTop() + 2 + "pt"), this.designTarget.parents(".hiprint-printPaper-content").append(r), r.css("left", this.options.posLeft() - r.width() + "pt"))), a.length ? a.css("left", this.options.getLeft() + this.options.getWidth() + "pt") : ((i = jquery__WEBPACK_IMPORTED_MODULE_60___default()('')).css("left", this.options.getLeft() + this.options.getWidth() + "pt"), i.css("height", t.displayHeight()), this.designTarget.parents(".hiprint-printPaper-content").append(i)), o.length ? o.css("top", this.options.getTop() + this.options.getHeight() + "pt") : ((n = jquery__WEBPACK_IMPORTED_MODULE_60___default()('')).css("top", this.options.getTop() + this.options.getHeight() + "pt"), n.css("width", t.displayWidth()), this.designTarget.parents(".hiprint-printPaper-content").append(n))
- }, BasePrintElement.prototype.removeLineOfPosition = function () {
- jquery__WEBPACK_IMPORTED_MODULE_60___default()(".toplineOfPosition.id" + this.id).remove(), jquery__WEBPACK_IMPORTED_MODULE_60___default()(".topPosition.id" + this.id).remove(), this.designTarget.find(".size-box") && this.designTarget.find(".size-box").toggleClass("hide", !1), jquery__WEBPACK_IMPORTED_MODULE_60___default()(".leftlineOfPosition.id" + this.id).remove(), jquery__WEBPACK_IMPORTED_MODULE_60___default()(".leftPosition.id" + this.id).remove(), jquery__WEBPACK_IMPORTED_MODULE_60___default()(".rightlineOfPosition.id" + this.id).remove(), jquery__WEBPACK_IMPORTED_MODULE_60___default()(".bottomlineOfPosition.id" + this.id).remove()
- }, BasePrintElement.prototype.getFontList = function () {
- var t = this.options.fontList;
- return t || _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getFontList()
- }, BasePrintElement.prototype.getFields = function () {
- return "table" == this.printElementType.type ? this.options.tableFields : this.options.fields || _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getFields()
- }, BasePrintElement.prototype.getOnImageChooseClick = function () {
- var t = this.options.onImageChooseClick;
- return t || _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getOnImageChooseClick()
- }, BasePrintElement.prototype.bingCopyEvent = function (t) {
- var e = this;
- t.keydown(function (t) {
- e._editing && !t.altKey && 13 == t.keyCode ? e.updateByContent() : (t.ctrlKey || t.metaKey) && 67 == t.keyCode && (e.copyJson(), t.preventDefault())
- })
- }, BasePrintElement.prototype.copyJson = function () {
- try {
- var t = this,
- e = jquery__WEBPACK_IMPORTED_MODULE_60___default()("#copyArea"),
- i = (e.length || (e = jquery__WEBPACK_IMPORTED_MODULE_60___default()('')), jquery__WEBPACK_IMPORTED_MODULE_60___default()("body").append(e), JSON.stringify({
- options: t.options,
- printElementType: t.printElementType,
- id: t.id,
- templateId: t.templateId
- })),
- n = (e.text(i), e.css("visibility", "visible"), e.focus(), e.setSelectionRange ? e.setSelectionRange(0, e.value.length) : e.select(), !1),
- n = document.execCommand("copy");
- e.css("visibility", "hidden"), t.designTarget.focus()
- } catch (t) {
- n = !1
- }
- return n
- }, BasePrintElement.prototype.clone = function (t) {
- var e = this,
- i = e.printElementType.createPrintElement();
- return Object.keys(e.options).forEach(function (t) {
- i.options[t] = e.options[t]
- }), i
- }, BasePrintElement.prototype.getFormatter = function () {
+ function A(e) {
+ this.left = (e = e || {}).left, this.top = e.top, this.topInDesign = this.top, this.height = e.height, this.width = e.width, this.transform = e.transform, this.init(e)
+ }
+ }, function(module, __webpack_exports__, __webpack_require__) {
+ __webpack_require__.d(__webpack_exports__, "a", function() {
+ return BasePrintElement
+ });
+ var _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17),
+ _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1),
+ _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9),
+ _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6),
+ _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0),
+ _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8),
+ _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2),
+ BasePrintElement = function() {
+ function BasePrintElement(e) {
+ this.printElementType = e, this.id = _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.guid()
+ }
+ return BasePrintElement.prototype.getConfigOptionsByName = function(e) {
+ return _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance[e]
+ }, BasePrintElement.prototype.getProxyTarget = function(e) {
+ e && this.SetProxyTargetOption(e);
+ var e = this.getData(),
+ t = this.createTarget(this.getTitle(), e);
+ return this.updateTargetSize(t), this.css(t, e), t
+ }, BasePrintElement.prototype.SetProxyTargetOption = function(e) {
+ this.options.getPrintElementOptionEntity(), jquery__WEBPACK_IMPORTED_MODULE_65___default.a.extend(this.options, e), this.copyFromType()
+ }, BasePrintElement.prototype.showInPage = function(e, t) {
+ var i = this.options.showInPage,
+ n = this.options.unShowInPage;
+ if (i) {
+ if ("first" == i) return 0 == e;
+ if (e == t - 1 && "last" == n) return !1;
+ if ("odd" == i) return (0 != e || "first" != n) && e % 2 == 0;
+ if ("even" == i) return e % 2 == 1;
+ if ("last" == i) return e == t - 1
+ }
+ return !(0 == e && "first" == n || e == t - 1 && "last" == n)
+ }, BasePrintElement.prototype.setTemplateId = function(e) {
+ this.templateId = e
+ }, BasePrintElement.prototype.setPanel = function(e) {
+ this.panel = e
+ }, BasePrintElement.prototype.getField = function() {
+ return this.options.field || this.printElementType.field
+ }, BasePrintElement.prototype.getTitle = function() {
+ return this.printElementType.title
+ }, BasePrintElement.prototype.updateSizeAndPositionOptions = function(e, t, i, n) {
+ var r = _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId);
+ if (void 0 !== this.panel && !r.willOutOfBounds) {
+ var r = hinnn.mm.toPt(this.panel.width),
+ A = hinnn.mm.toPt(this.panel.height);
+ if (e < 0) return;
+ if (t < 0) return;
+ if (e + this.options.width > r) return;
+ if (t + this.options.height > A) return
+ }
+ this.options.setLeft(e), this.options.setTop(t), this.options.copyDesignTopFromTop(), this.options.setWidth(i), this.options.setHeight(n)
+ }, BasePrintElement.prototype.initSizeByHtml = function(e) {
+ e && e.length && (this.createTempContainer(), e = e.clone(), this.getTempContainer().append(e), this.options.initSizeByHtml(parseInt(hinnn.px.toPt(e.width()).toString()), parseInt(hinnn.px.toPt(e.height()).toString())), this.removeTempContainer())
+ }, BasePrintElement.prototype.updateTargetSize = function(e) {
+ e.css("width", this.options.displayWidth()), e.css("height", this.options.displayHeight())
+ }, BasePrintElement.prototype.updateTargetWidth = function(e) {
+ e.css("width", this.options.displayWidth())
+ }, BasePrintElement.prototype.getDesignTarget = function(e) {
+ var n = this,
+ t = 0;
+ return this.designTarget = this.getHtml(e)[0].target, this.designPaper = e, this.designTarget.click(function(e) {
+ 500 < e.timeStamp - t && hinnn.event.trigger(n.getPrintElementSelectEventKey(), {
+ printElement: n
+ }), t = e.timeStamp
+ }), this.designTarget.dblclick(function(e) {
+ var t, i = n.designTarget.find(".hiprint-printElement-content");
+ i && (t = n.designTarget.find(".resize-panel"), "text" != n.printElementType.type || n.options.textType && "text" != n.options.textType || (n._editing = !0, n.designTarget.hidraggable("update", {
+ draggable: !1
+ }), i.css("cursor", "text"), i.addClass("editing"), n.designTarget.addClass("editing"), i.click(function(e) {
+ n._editing && e.stopPropagation()
+ }), i.attr("contenteditable", !0), t && t.css("display", "none"), n.selectEnd(i)))
+ }), this.designTarget
+ }, BasePrintElement.prototype.selectEnd = function(e) {
+ var t, i;
+ e.focus(), void 0 !== window.getSelection && void 0 !== document.createRange ? ((i = document.createRange()).selectNodeContents(e[0]), i.collapse(!1), (t = window.getSelection()).removeAllRanges(), t.addRange(i)) : void 0 !== document.body.createTextRange && ((i = document.body.createTextRange()).moveToElementText(e[0]), i.collapse(!1), i.select())
+ }, BasePrintElement.prototype.updateByContent = function(e) {
+ var t, i = this,
+ n = i.designTarget.find(".hiprint-printElement-content");
+ i._editing && (n && n.css("cursor", "") && n.removeClass("editing") && n.removeAttr("contenteditable"), i.designTarget.removeClass("editing"), n = n.text(), t = i.options.title, n.startsWith(t) && i.options.field ? n.length > t.length ? i.options.testData = n.split(":")[1] : (i.options.title = n, i.options.testData = "") : i.options.title = n, i.options.title = i.options.title.split(":")[0], e || hinnn.event.trigger(i.getPrintElementSelectEventKey(), {
+ printElement: i
+ }), i.updateDesignViewFromOptions(), hinnn.event.trigger("hiprintTemplateDataChanged_" + i.templateId, "编辑修改"), i._editing = !1, t = null == i.options.draggable || 1 == i.options.draggable, i.designTarget.hidraggable("update", {
+ draggable: t
+ }))
+ }, BasePrintElement.prototype.getPrintElementSelectEventKey = function() {
+ return "PrintElementSelectEventKey_" + this.templateId
+ }, BasePrintElement.prototype.design = function(e, s) {
+ var c = this;
+ this.designTarget.hidraggable({
+ draggable: c.options.draggable,
+ axis: c.options.axis || void 0,
+ designTarget: c,
+ onDrag: function(e, t, i) {
+ var n, r, A = c.panel.printElements.filter(function(e) {
+ return "block" == e.designTarget.children().last().css("display") && e.designTarget.children().last().hasClass("selected") && !e.printElementType.type.includes("table")
+ }),
+ a = 1 < A.length,
+ o = !c.designTarget.children().last().hasClass("selected");
+ a && (n = t - c.options.left, r = i - c.options.top, A.forEach(function(e) {
+ e.updateSizeAndPositionOptions(n + e.options.getLeft(), r + e.options.getTop()), e.designTarget.css("left", e.options.displayLeft()), e.designTarget.css("top", e.options.displayTop()), e.createLineOfPosition(s)
+ }), !o) || (c.updateSizeAndPositionOptions(t, i), c.createLineOfPosition(s)), _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed = !0
+ },
+ moveUnit: "pt",
+ minMove: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,
+ onBeforeDrag: function(e) {
+ _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !0, c.designTarget.focus(), c.createLineOfPosition(s)
+ },
+ onBeforeSelectAllDrag: function() {
+ _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !0, c.designTarget.focus()
+ },
+ getScale: function() {
+ return c.designPaper.scale || 1
+ },
+ onStopDrag: function(e) {
+ _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed && hinnn.event.trigger("hiprintTemplateDataChanged_" + c.templateId, "移动"), _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !1, _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed = !1;
+ var t = c.panel.printElements.filter(function(e) {
+ return "block" == e.designTarget.children().last().css("display") && !e.printElementType.type.includes("table")
+ });
+ 1 < t.length ? t.forEach(function(e) {
+ e.removeLineOfPosition()
+ }) : c.removeLineOfPosition()
+ }
+ }), this.setResizePanel(), this.bingCopyEvent(this.designTarget), this.bingKeyboardMoveEvent(this.designTarget, s)
+ }, BasePrintElement.prototype.getPrintElementEntity = function(e) {
+ return e ? new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(void 0, this.options.getPrintElementOptionEntity(), this.printElementType.getPrintElementTypeEntity()) : new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(this.printElementType.tid, this.options.getPrintElementOptionEntity())
+ }, BasePrintElement.prototype.submitOption = function() {
+ var t = this,
+ i = (i = this.panel.printElements.filter(function(e) {
+ return "block" == e.designTarget.children().last().css("display") && e.designTarget.children().last().hasClass("selected") && !e.printElementType.type.includes("table")
+ })).filter(function(e) {
+ return e.printElementType.type == t.printElementType.type
+ }),
+ r = this,
+ e = this.getConfigOptions();
+ e && e.tabs && e.tabs.length ? this.getPrintElementOptionTabs().forEach(function(e) {
+ "样式" === e.name && i.length ? e.list.forEach(function(r) {
+ i.forEach(function(t) {
+ var i = r.getValue(),
+ e = "textType" == r.name && t.options[r.name] !== i,
+ n = "axis" == r.name && t.options[r.name] !== i;
+ i && "object" == _typeof(i) ? Object.keys(i).forEach(function(e) {
+ t.options[e] = i[e]
+ }) : t.options[r.name] = i, e && t.setResizePanel(), n && t.designTarget.hidraggable("update", {
+ axis: i
+ })
+ })
+ }) : e.list.forEach(function(e) {
+ var t = e.getValue(),
+ i = "textType" == e.name && r.options[e.name] !== t,
+ n = "axis" == e.name && r.options[e.name] !== t;
+ t && "object" == _typeof(t) ? Object.keys(t).forEach(function(e) {
+ r.options[e] = t[e]
+ }) : r.options[e.name] = t, i && r.setResizePanel(), n && r.designTarget.hidraggable("update", {
+ axis: t
+ })
+ })
+ }) : this.getPrintElementOptionItems().forEach(function(e) {
+ var t = e.getValue(),
+ i = "textType" == e.name && r.options[e.name] !== t,
+ n = "axis" == e.name && r.options[e.name] !== t;
+ t && "object" == _typeof(t) ? Object.keys(t).forEach(function(e) {
+ r.options[e] = t[e]
+ }) : r.options[e.name] = t, i && r.setResizePanel(), n && r.designTarget.hidraggable("update", {
+ axis: t
+ })
+ }), this.updateDesignViewFromOptions(), hinnn.event.trigger("hiprintTemplateDataChanged_" + this.templateId, "元素修改")
+ }, BasePrintElement.prototype.updateOption = function(i, n, e) {
+ try {
+ var t = this.getConfigOptions(),
+ r = [];
+ t && t.tabs && t.tabs.length ? t.tabs.forEach(function(e) {
+ e.options.forEach(function(e) {
+ r.push(e.name)
+ })
+ }) : r = t.supportOptions.map(function(e) {
+ return e.name
+ }), r && r.includes(i) && (this.options[i] = n, this.updateDesignViewFromOptions(), e || hinnn.event.trigger("hiprintTemplateDataChanged_" + this.templateId, "参数修改")), this._printElementOptionTabs.forEach(function(e) {
+ e.list.forEach(function(e) {
+ var t;
+ e.name === i && (null != (t = e.target.find("select")) && t.val(n.toString()), null != (t = e.target.find("input"))) && t.val(n.toString())
+ })
+ })
+ } catch (t) {}
+ }, BasePrintElement.prototype.getReizeableShowPoints = function() {
+ return ["barcode", "qrcode"].includes(this.options.textType) ? ["se", "s", "e", "r"] : ["s", "e", "r"]
+ }, BasePrintElement.prototype.setResizePanel = function() {
+ var a = this,
+ o = this.designPaper;
+ this.designTarget.hireizeable({
+ showPoints: a.getReizeableShowPoints(),
+ draggable: a.options.draggable,
+ showSizeBox: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.showSizeBox,
+ getScale: function() {
+ return a.designPaper.scale || 1
+ },
+ onBeforeResize: function() {
+ _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !0
+ },
+ onResize: function(e, t, i, n, r, A) {
+ null != A ? a.onRotate(e, A) : a.onResize(e, t, i, n, r), a.createLineOfPosition(o)
+ },
+ onStopResize: function(e) {
+ hinnn.event.trigger("hiprintTemplateDataChanged_" + a.templateId, e ? "旋转" : "大小"), _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging = !1, a.removeLineOfPosition()
+ }
+ })
+ }, BasePrintElement.prototype.onRotate = function(e, t) {
+ this.options.setRotate(t)
+ }, BasePrintElement.prototype.onResize = function(e, t, i, n, r) {
+ this.updateSizeAndPositionOptions(r, n, i, t)
+ }, BasePrintElement.prototype.getOrderIndex = function() {
+ return this.options.getTop()
+ }, BasePrintElement.prototype.getHtml = function(e, t, i) {
+ this.setCurrenttemplateData(t);
+ var n = [],
+ r = this.getBeginPrintTopInPaperByReferenceElement(e),
+ A = e.getPaperFooter(0),
+ A = (this.isHeaderOrFooter() || this.isFixed() || A < r && "none" != e.panelPageRule && (n.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
+ target: void 0,
+ printLine: void 0
+ })), r = r - A + e.paperHeader, e.getPaperFooter(1)), this.getData(t)),
+ i = this.createTarget(this.getTitle(), A, i);
+ return this.updateTargetSize(i), this.css(i, A), i.css("position", "absolute"), i.css("left", this.options.displayLeft()), i.css("top", r + "pt"), n.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
+ target: i,
+ printLine: r + this.options.getHeight(),
+ referenceElement: new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({
+ top: this.options.getTop(),
+ left: this.options.getLeft(),
+ height: this.options.getHeight(),
+ width: this.options.getWidth(),
+ beginPrintPaperIndex: e.index,
+ bottomInLastPaper: r + this.options.getHeight(),
+ printTopInPaper: r
+ })
+ })), t && this.options.pageBreak && (n[0].target.css("top", e.paperHeader + "pt"), n[0].referenceElement.top = this.options.getTop() - this.options.getHeight() - e.paperHeader, n[0].printLine = e.paperHeader, n[0].referenceElement.bottomInLastPaper = 0, n[0].referenceElement.printTopInPaper = e.paperHeader, n.unshift(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
+ target: i,
+ printLine: e.height,
+ referenceElement: new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({
+ top: 0,
+ left: 0,
+ height: 0,
+ width: 0,
+ beginPrintPaperIndex: e.index,
+ bottomInLastPaper: e.height,
+ printTopInPaper: e.paperHeader
+ })
+ }))), n
+ }, BasePrintElement.prototype.getHtml2 = function(e, t, i) {
+ var n = 0,
+ r = (this.setCurrenttemplateData(t), []),
+ A = this.getBeginPrintTopInPaperByReferenceElement(e),
+ a = e.getPaperFooter(n),
+ n = (this.isHeaderOrFooter() || this.isFixed() || ("none" != e.panelPageRule && a < A && (r.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
+ target: void 0,
+ printLine: void 0
+ })), A = A - a + e.paperHeader, a = e.getPaperFooter(++n)), A <= a && t && A + this.options.getHeight() > a && "none" != e.panelPageRule && (r.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
+ target: void 0,
+ printLine: void 0
+ })), A = e.paperHeader, a = e.getPaperFooter(++n))), this.getData(t)),
+ o = this.createTarget(this.getTitle(), n);
+ return "none" == e.panelPageRule && A + this.options.getHeight() > a && this.updatePanelHeight(A + this.options.getHeight(), e), this.updateTargetSize(o), this.css(o, n), o.css("position", "absolute"), o.css("left", this.options.displayLeft()), o.css("top", A + "pt"), r.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
+ target: o,
+ printLine: A + this.options.getHeight(),
+ referenceElement: new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({
+ top: this.options.getTop(),
+ left: this.options.getLeft(),
+ height: this.options.getHeight(),
+ width: this.options.getWidth(),
+ beginPrintPaperIndex: e.index,
+ bottomInLastPaper: A + this.options.getHeight(),
+ printTopInPaper: A
+ })
+ })), t && this.options.pageBreak && (r[0].target.css("top", e.paperHeader + "pt"), r[0].referenceElement.top = this.options.getTop() - this.options.getHeight() - e.paperHeader, r[0].printLine = e.paperHeader, r[0].referenceElement.bottomInLastPaper = 0, r[0].referenceElement.printTopInPaper = e.paperHeader, r.unshift(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({
+ target: o,
+ printLine: e.height,
+ referenceElement: new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({
+ top: 0,
+ left: 0,
+ height: 0,
+ width: 0,
+ beginPrintPaperIndex: e.index,
+ bottomInLastPaper: e.height,
+ printTopInPaper: e.paperHeader
+ })
+ }))), r
+ }, BasePrintElement.prototype.updatePanelHeight = function(e, t) {
+ var i;
+ "none" == this.panel.panelPageRule && (i = hinnn.pt.toMm(e), t.paperFooter = e, t.target.css("height", i + "mm"), t.target.attr("original-height", i))
+ }, BasePrintElement.prototype.getBeginPrintTopInPaperByReferenceElement = function(e) {
+ var t = this.options.getTop();
+ return this.isHeaderOrFooter() || this.isFixed() ? t : e.referenceElement.isPositionLeftOrRight(t) ? e.referenceElement.printTopInPaper + (t - e.referenceElement.top) : e.referenceElement.bottomInLastPaper + (t - (e.referenceElement.top + e.referenceElement.height))
+ }, BasePrintElement.prototype.css = function(i, e) {
+ var t, n = this,
+ r = [],
+ A = this.getConfigOptions();
+ A && (A.tabs && A.tabs.length ? (t = [], A.tabs.forEach(function(e) {
+ t = t.concat(e.options)
+ })) : t = A.supportOptions, t) && t.forEach(function(e) {
+ var t = _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(e.name);
+ t && t.css && (t = t.css(i, n.options.getValueFromOptionsOrDefault(e.name))) && r.push(t)
+ }), this.stylerCss(i, e)
+ }, BasePrintElement.prototype.stylerCss = function(t, e) {
+ var i, n = this.getStyler();
+ n && (i = n(e, this.options, t, this._currenttemplateData)) && Object.keys(i).forEach(function(e) {
+ t.css(e, i[e])
+ })
+ }, BasePrintElement.prototype.getData = function(i) {
+ var e = this.getField();
+ return i ? e && e.split(".").reduce(function(e, t) {
+ return e ? e[t] : i ? i[t] : ""
+ }, !1) || "" : this.printElementType.getData()
+ }, BasePrintElement.prototype.copyFromType = function() {
+ var t = this.options,
+ i = this.printElementType,
+ e = this.getConfigOptions(),
+ n = [];
+ return e && e.tabs && e.tabs.length ? e.tabs.forEach(function(e) {
+ e.options.forEach(function(e) {
+ n.push(e.name)
+ })
+ }) : n = e.supportOptions.map(function(e) {
+ return e.name
+ }), Object.keys(i).forEach(function(e) {
+ i[e] && "columns" != e && -1 < n.indexOf(e) && (t[e] = "function" == _typeof(i[e]) ? i[e].toString() : i[e])
+ }), t
+ }, BasePrintElement.prototype.getPrintElementOptionTabs = function() {
+ var i, e;
+ return this._printElementOptionTabs || (i = [], (e = this.getConfigOptions()) && (e = e.tabs) && e.forEach(function(e, t) {
+ i.push({
+ name: e.name,
+ list: []
+ }), e.options.filter(function(e) {
+ return !e.hidden
+ }).forEach(function(e) {
+ e = _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(e.name);
+ i[t].list.push(e)
+ })
+ }), this._printElementOptionTabs = i, this._printElementOptionItems = void 0), this._printElementOptionTabs
+ }, BasePrintElement.prototype.getPrintElementOptionItems = function() {
+ var t, e, i;
+ return this._printElementOptionItems || (t = [], (e = this.getConfigOptions()) && (e.tabs && e.tabs.length ? (i = [], e.tabs.forEach(function(e) {
+ e.concat(e.options)
+ })) : i = e.supportOptions, i) && i.filter(function(e) {
+ return !e.hidden
+ }).forEach(function(e) {
+ e = _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(e.name);
+ t.push(e)
+ }), this._printElementOptionItems = this.filterOptionItems(t.concat()), this._printElementOptionTabs = void 0), this._printElementOptionItems
+ }, BasePrintElement.prototype.getPrintElementOptionItemsByName = function(e) {
+ var t, i = [],
+ e = this.getConfigOptionsByName(e);
+ return e && (e.tabs && e.tabs.length ? (t = [], e.tabs.forEach(function(e) {
+ t = t.concat(e.options)
+ })) : t = e.supportOptions, t) && t.filter(function(e) {
+ return !e.hidden
+ }).forEach(function(e) {
+ e = _print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(e.name);
+ i.push(e)
+ }), i.concat()
+ }, BasePrintElement.prototype.filterOptionItems = function(e) {
+ return this.printElementType.field ? e.filter(function(e) {
+ return "field" != e.name
+ }) : e
+ }, BasePrintElement.prototype.createTempContainer = function() {
+ this.removeTempContainer(), jquery__WEBPACK_IMPORTED_MODULE_65___default()("body").append(jquery__WEBPACK_IMPORTED_MODULE_65___default()(''))
+ }, BasePrintElement.prototype.removeTempContainer = function() {
+ jquery__WEBPACK_IMPORTED_MODULE_65___default()(".hiprint_temp_Container").remove()
+ }, BasePrintElement.prototype.getTempContainer = function() {
+ return jquery__WEBPACK_IMPORTED_MODULE_65___default()(".hiprint_temp_Container")
+ }, BasePrintElement.prototype.isHeaderOrFooter = function() {
+ return this.options.getTopInDesign() < this.panel.paperHeader || this.options.getTopInDesign() >= this.panel.paperFooter
+ }, BasePrintElement.prototype.delete = function() {
+ this.designTarget && this.designTarget.remove()
+ }, BasePrintElement.prototype.setCurrenttemplateData = function(e) {
+ this._currenttemplateData = e
+ }, BasePrintElement.prototype.isFixed = function() {
+ return this.options.fixed
+ }, BasePrintElement.prototype.onRendered = function(e, t) {
+ this.printElementType && this.printElementType.onRendered && this.printElementType.onRendered(t, this.options, e.getTarget())
+ }, BasePrintElement.prototype.createLineOfPosition = function(e) {
+ var t = jquery__WEBPACK_IMPORTED_MODULE_65___default()(".toplineOfPosition.id" + this.id),
+ i = jquery__WEBPACK_IMPORTED_MODULE_65___default()(".topPosition.id" + this.id),
+ n = jquery__WEBPACK_IMPORTED_MODULE_65___default()(".leftlineOfPosition.id" + this.id),
+ r = jquery__WEBPACK_IMPORTED_MODULE_65___default()(".leftPosition.id" + this.id),
+ A = jquery__WEBPACK_IMPORTED_MODULE_65___default()(".rightlineOfPosition.id" + this.id),
+ a = jquery__WEBPACK_IMPORTED_MODULE_65___default()(".bottomlineOfPosition.id" + this.id),
+ o = _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance;
+ t.length ? t.css("top", this.options.displayTop(!0)) : ((t = jquery__WEBPACK_IMPORTED_MODULE_65___default()('')).css("top", this.options.displayTop(!0)), t.css("width", e.displayWidth()), this.designTarget.parents(".hiprint-printPaper-content").append(t)), o.showPosition && (i.length ? (i.toggleClass("topPosition-lineMode", o.positionLineMode), i.text(this.options.posTop() + (o.positionUnit ? "pt" : "")), i.css("top", this.options.posTop() - i.height() + "pt"), o.positionLineMode ? i.css("left", this.options.posLeft() - i.width() / 2 + "pt") : i.css("left", this.options.posLeft() + 2 + "pt"), this.designTarget.find(".size-box") && this.designTarget.find(".size-box").toggleClass("hide", !0)) : ((i = jquery__WEBPACK_IMPORTED_MODULE_65___default()('')).toggleClass("topPosition-lineMode", o.positionLineMode), i.text(this.options.posTop() + (o.positionUnit ? "pt" : "")), o.positionLineMode ? i.css("left", this.options.posLeft() - i.width() / 2 + "pt") : i.css("left", this.options.posLeft() + 2 + "pt"), this.designTarget.find(".size-box") && this.designTarget.find(".size-box").toggleClass("hide", !0), this.designTarget.parents(".hiprint-printPaper-content").append(i), i.css("top", this.options.posTop() - i.height() + "pt"))), n.length ? n.css("left", this.options.displayLeft(!0)) : ((t = jquery__WEBPACK_IMPORTED_MODULE_65___default()('')).css("left", this.options.displayLeft(!0)), t.css("height", e.displayHeight()), this.designTarget.parents(".hiprint-printPaper-content").append(t)), o.showPosition && (r.length ? (r.text(this.options.posLeft() + (o.positionUnit ? "pt" : "")), r.toggleClass("leftPosition-lineMode", o.positionLineMode), r.css("left", this.options.posLeft() - r.width() + "pt"), o.positionLineMode ? r.css("top", this.options.posTop() - r.height() / 3 + "pt") : r.css("top", this.options.posTop() + 2 + "pt")) : ((r = jquery__WEBPACK_IMPORTED_MODULE_65___default()('')).text(this.options.posLeft() + (o.positionUnit ? "pt" : "")), r.toggleClass("leftPosition-lineMode", o.positionLineMode), o.positionLineMode ? r.css("top", this.options.posTop() - r.height() / 3 + "pt") : r.css("top", this.options.posTop() + 2 + "pt"), this.designTarget.parents(".hiprint-printPaper-content").append(r), r.css("left", this.options.posLeft() - r.width() + "pt"))), A.length ? A.css("left", this.options.getLeft() + this.options.getWidth() + "pt") : ((i = jquery__WEBPACK_IMPORTED_MODULE_65___default()('')).css("left", this.options.getLeft() + this.options.getWidth() + "pt"), i.css("height", e.displayHeight()), this.designTarget.parents(".hiprint-printPaper-content").append(i)), a.length ? a.css("top", this.options.getTop() + this.options.getHeight() + "pt") : ((n = jquery__WEBPACK_IMPORTED_MODULE_65___default()('')).css("top", this.options.getTop() + this.options.getHeight() + "pt"), n.css("width", e.displayWidth()), this.designTarget.parents(".hiprint-printPaper-content").append(n))
+ }, BasePrintElement.prototype.removeLineOfPosition = function() {
+ jquery__WEBPACK_IMPORTED_MODULE_65___default()(".toplineOfPosition.id" + this.id).remove(), jquery__WEBPACK_IMPORTED_MODULE_65___default()(".topPosition.id" + this.id).remove(), this.designTarget.find(".size-box") && this.designTarget.find(".size-box").toggleClass("hide", !1), jquery__WEBPACK_IMPORTED_MODULE_65___default()(".leftlineOfPosition.id" + this.id).remove(), jquery__WEBPACK_IMPORTED_MODULE_65___default()(".leftPosition.id" + this.id).remove(), jquery__WEBPACK_IMPORTED_MODULE_65___default()(".rightlineOfPosition.id" + this.id).remove(), jquery__WEBPACK_IMPORTED_MODULE_65___default()(".bottomlineOfPosition.id" + this.id).remove()
+ }, BasePrintElement.prototype.getFontList = function() {
+ var e = this.options.fontList;
+ return e || _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getFontList()
+ }, BasePrintElement.prototype.getFields = function() {
+ return "table" == this.printElementType.type ? this.options.tableFields : this.options.fields || _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getFields()
+ }, BasePrintElement.prototype.getOnImageChooseClick = function() {
+ var e = this.options.onImageChooseClick;
+ return e || _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getOnImageChooseClick()
+ }, BasePrintElement.prototype.bingCopyEvent = function(e) {
+ var t = this;
+ e.keydown(function(e) {
+ t._editing && !e.altKey && 13 == e.keyCode ? t.updateByContent() : (e.ctrlKey || e.metaKey) && 67 == e.keyCode && (t.copyJson(), e.preventDefault())
+ })
+ }, BasePrintElement.prototype.copyJson = function() {
+ try {
+ var e = jquery__WEBPACK_IMPORTED_MODULE_65___default()("#copyArea");
+ e.length || (e = jquery__WEBPACK_IMPORTED_MODULE_65___default()('')), jquery__WEBPACK_IMPORTED_MODULE_65___default()("body").append(e);
+ var t = (t = this.panel.printElements.filter(function(e) {
+ return "block" == e.designTarget.children().last().css("display") && !e.printElementType.type.includes("table")
+ })).map(function(e) {
+ return {
+ options: e.options,
+ printElementType: e.printElementType,
+ id: e.id,
+ templateId: e.templateId
+ }
+ }),
+ i = JSON.stringify(t),
+ n = (e.text(i), e.css("visibility", "visible"), e.setSelectionRange ? e.setSelectionRange(0, e.value.length) : e.select(), !1),
+ n = document.execCommand("copy");
+ e.css("visibility", "hidden"), this.designTarget.focus()
+ } catch (e) {
+ n = !1
+ }
+ return n
+ }, BasePrintElement.prototype.clone = function(e) {
+ var t = this,
+ i = t.printElementType.createPrintElement();
+ return Object.keys(t.options).forEach(function(e) {
+ i.options[e] = t.options[e]
+ }), i
+ }, BasePrintElement.prototype.getFormatter = function() {
var formatter = void 0;
formatter = this.printElementType.formatter || this.options.formatter
@@ -1295,54637 +1376,60989 @@
// eval(s)
// } catch (t) {}
return window.formatter
- }, BasePrintElement.prototype.getStyler = function () {
- var fnstyler = void 0;
- if (this.printElementType.styler && (fnstyler = this.printElementType.styler), this.options.styler) try {
- var s = "fnstyler=" + this.options.styler;
- eval(s)
- } catch (t) { }
- return fnstyler
- }, BasePrintElement.prototype.bingKeyboardMoveEvent = function (r, t) {
- var a = this,
- o = void 0,
- s = void 0;
- r.attr("tabindex", "1"), r.keydown(function (t) {
- if ("INPUT" != t.target.tagName && (!a._editing || t.altKey) && !1 !== a.options.draggable) {
- var e = a.panel.printElements.filter(function (t) {
- return "block" == t.designTarget.children().last().css("display") && !t.printElementType.type.includes("table")
- }),
- i = 1 < e.length,
- n = _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance;
- switch (t.keyCode) {
- case 8:
- case 46:
- _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(a.templateId).deletePrintElement(a), hinnn.event.trigger("hiprintTemplateDataChanged_" + a.templateId, "删除"), hinnn.event.trigger("clearSettingContainer");
- break;
- case 37:
- o = a.options.getLeft(), i ? e.forEach(function (t) {
- t.updatePositionByMultipleSelect(0 - n, 0)
- }) : (a.updateSizeAndPositionOptions(o - n), r.css("left", a.options.displayLeft())), t.preventDefault();
- break;
- case 38:
- s = a.options.getTop(), i ? e.forEach(function (t) {
- t.updatePositionByMultipleSelect(0, 0 - n)
- }) : (a.updateSizeAndPositionOptions(void 0, s - n), r.css("top", a.options.displayTop())), t.preventDefault();
- break;
- case 39:
- o = a.options.getLeft(), i ? e.forEach(function (t) {
- t.updatePositionByMultipleSelect(n, 0)
- }) : (a.updateSizeAndPositionOptions(o + n), r.css("left", a.options.displayLeft())), t.preventDefault();
- break;
- case 40:
- s = a.options.getTop(), i ? e.forEach(function (t) {
- t.updatePositionByMultipleSelect(0, n)
- }) : (a.updateSizeAndPositionOptions(void 0, s + n), r.css("top", a.options.displayTop())), t.preventDefault()
- }[37, 38, 39, 40].includes(t.keyCode) && hinnn.event.trigger("hiprintTemplateDataChanged_" + a.templateId, "键盘移动")
- }
- })
- }, BasePrintElement.prototype.inRect = function (t) {
- var e = this.designPaper.scale || 1,
- i = this.designTarget[0].offsetLeft,
- n = this.designTarget[0].offsetTop,
- r = this.designTarget[0].offsetHeight,
- a = i + this.designTarget[0].offsetWidth,
- r = n + r,
- o = jquery__WEBPACK_IMPORTED_MODULE_60___default()(t.target[0]).position().left / e,
- e = jquery__WEBPACK_IMPORTED_MODULE_60___default()(t.target[0]).position().top / e,
- s = t.target[0].offsetHeight,
- t = t.target[0].offsetWidth;
- return o < a && i < o + t && n < e + s && e < r
- }, BasePrintElement.prototype.multipleSelect = function (t) {
- t ? this.designTarget.addClass("multipleSelect") : this.designTarget.removeClass("multipleSelect")
- }, BasePrintElement.prototype.updatePositionByMultipleSelect = function (t, e) {
- !1 !== this.options.draggable && (this.updateSizeAndPositionOptions(t + this.options.getLeft(), e + this.options.getTop()), this.designTarget.css("left", this.options.displayLeft()), this.designTarget.css("top", this.options.displayTop()))
- }, BasePrintElement
- }()
- }, function (t, e, i) {
- A.prototype.init = function (t) {
- this.target = jquery__WEBPACK_IMPORTED_MODULE_60___default()(''), t.getTarget().append(this.target), this.target.focus()
- }, A.prototype.getValue = function () {
- return this.target.val()
- }, A.prototype.setValue = function (t) {
- this.target.val(t)
- }, A.prototype.destroy = function () {
- this.target.remove()
- };
- var n = A,
- r = (Object.defineProperty(I, "Instance", {
- get: function () {
- return I._instance = I._instance ? I._instance : new I
- },
- enumerable: !0,
- configurable: !0
- }), I),
- a = (b.prototype.init = function (t, i) {
- var n = '", this.target = jquery__WEBPACK_IMPORTED_MODULE_60___default()(n), i.getTarget().append(this.target), this.target.focus()
- }, b.prototype.getValue = function () {
- var t = this.target.val();
- return this.target.find('option[value="' + t + '"]').text() + "#" + t
- }, b.prototype.setValue = function (t) {
- t && !this.target.find('option[value="' + t + '"]').length && this.target.find("select").prepend('"), this.target.find("select").val(t)
- }, b.prototype.destroy = function () {
- this.target.remove()
- }, b),
- o = (Object.defineProperty(v, "Instance", {
- get: function () {
- return v._instance = v._instance ? v._instance : new v
- },
- enumerable: !0,
- configurable: !0
- }), v),
- s = (Object.defineProperty(g, "Instance", {
- get: function () {
- return g._instance = r._instance ? g._instance : new g
- },
- enumerable: !0,
- configurable: !0
- }), g.prototype.createEditor = function (t) {
- return jquery__WEBPACK_IMPORTED_MODULE_60___default.a.extend({}, r.Instance[t])
- }, g.prototype.createSelect = function (t) {
- return jquery__WEBPACK_IMPORTED_MODULE_60___default.a.extend({}, o.Instance[t])
- }, g),
- c = i(10),
- l = i(14),
- p = i(11),
- d = (m.prototype.init = function (t, e) {
- var i = this;
- this.tableOptions = e, this.title = t.title, this.field = t.field, t.getTarget().unbind("dblclick.hitable").bind("dblclick.hitable", function () {
- t.isEditing = !0, i.beginEdit(t)
- })
- }, m.prototype.getDisplayHtml = function () {
- return this.title
- }, m.prototype.beginEdit = function (e) {
- var i = this;
- i.tableOptions.options.fields && i.tableOptions.options.fields.length ? (this.editor = s.Instance.createSelect("select"), e.getTarget().html(""), this.editor.init(i.tableOptions.options.fields, e), this.editor.setValue(this.field || ""), jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.editor.target).keydown(function (t) {
- 13 == t.keyCode && i.endEdit(e)
- }), jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.editor.target).change(function (t) {
- i.endEdit(e)
- }), jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.editor.target).blur(function (t) {
- i.endEdit(e)
- })) : (this.editor = s.Instance.createEditor("text"), e.getTarget().html(""), this.editor.init(e), (this.title || this.field) && (this.tableOptions.options.isEnableEditField ? this.editor.setValue((this.title || "") + "#" + (this.field || "")) : this.editor.setValue(this.title || "")), jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.editor.target).keydown(function (t) {
- 13 == t.keyCode && i.endEdit(e)
- }), jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.editor.target).blur(function (t) {
- i.endEdit(e)
- }), this.tableOptions.editingCell && this.tableOptions.editingCell.id != e.id && this.tableOptions.editingCell.innerElement.endEdit(this.tableOptions.editingCell), this.tableOptions.editingCell = e)
- }, m.prototype.endEdit = function (t) {
- t.isEditing = 0;
- var e, i = this.editor.getValue();
- i ? this.tableOptions.options.isEnableEditField || this.tableOptions.options.fields ? (e = i.split("#"), t.title = this.title = e[0], 0 < e.length && (t.columnId = t.field = this.field = e[1]), t.id && t.target.attr("id", t.id), t.columnId && t.target.attr("column-id", t.columnId), hinnn.event.trigger("hiprintTemplateDataChanged_" + this.tableOptions.options.templateId, "调整表格列字段")) : t.title = this.title = i : this.tableOptions.options.isEnableEditField ? (t.title = this.title = "", t.field = this.field = "") : t.title = this.title = "", this.editor.destroy(), t.getTarget().html(this.title)
- }, m),
- u = function (t) {
- this.title = t.title, this.field = t.field, this.width = t.width, this.align = t.align, this.halign = t.halign, this.vAlign = t.vAlign, this.colspan = t.colspan, this.rowspan = t.rowspan, this.checked = t.checked, this.columnId = t.columnId, this.tableSummaryTitle = t.tableSummaryTitle, this.tableSummaryText = t.tableSummaryText, this.tableSummaryColspan = t.tableSummaryColspan, this.tableSummary = t.tableSummary, this.tableSummaryAlign = t.tableSummaryAlign, this.tableSummaryNumFormat = t.tableSummaryNumFormat, this.tableSummaryFormatter = t.tableSummaryFormatter, this.upperCase = t.upperCase, this.renderFormatter = t.renderFormatter && t.renderFormatter.toString(), this.formatter2 = t.formatter2 && t.formatter2.toString(), this.styler2 = t.styler2 && t.styler2.toString(), this.stylerHeader = t.stylerHeader && t.stylerHeader.toString(), this.tableColumnHeight = t.tableColumnHeight, this.tableTextType = t.tableTextType, this.tableBarcodeMode = t.tableBarcodeMode, this.tableQRCodeLevel = t.tableQRCodeLevel
- },
- f = (h.prototype.init = function (t, e, i, n) {
- this.isHead = n, this.rowId = i, this.isEditing = !1;
- n = /^[0-9]*$/, this.target = t, this.tableOptions = e, i = this.target.attr("colspan"), this.colspan = n.test(i) ? parseInt(i) : 1, t = this.target.attr("rowspan");
- this.rowspan = n.test(t) ? parseInt(t) : 1, this.initEvent(), this.isHead && this.initInnerEelement()
- }, h.prototype.beginEdit = function () {
- var t;
- !this.isEditing && this.tableOptions.isEnableEdit && this.tableOptions.onBeforEdit(this) && (t = this.getValue(), this.editor = s.Instance.createEditor("text"), this.isEditing = !0, (this.tableOptions.editingCell = this).target.html(""), this.editor.init(this), this.editor.setValue(t))
- }, h.prototype.endEdit = function () {
- this.isEditing = !1;
- var t = this.editor.getValue();
- this.editor.destroy(), this.target.html(t)
- }, h.prototype.getTarget = function () {
- return this.target
- }, h.prototype.getValue = function () {
- return this.target.html()
- }, h.prototype.setValue = function (t) { }, h.prototype.initInnerEelement = function () {
- this.innerElement = new d, this.innerElement.init(this, this.tableOptions)
- }, h.prototype.initEvent = function () { }, h.prototype.isXYinCell = function (t, e) {
- t = new c.b({
- x: t,
- y: e,
- height: 0,
- width: 0
- });
- return this.isOverlap(t)
- }, h.prototype.getTableRect = function () {
- return new c.b({
- x: this.target.offset().left,
- y: this.target.offset().top,
- height: this.target[0].offsetHeight,
- width: this.target[0].offsetWidth
- })
- }, h.prototype.isOverlap = function (t) {
- var e = this.getTableRect();
- return t.x + t.width > e.x && e.x + e.width > t.x && t.y + t.height > e.y && e.y + e.height > t.y
- }, h.prototype.isInRect = function (t) {
- var e = t.rect,
- i = this.getTableRect();
- return i.x >= e.x && i.x + i.width <= e.x + e.width && i.y >= e.y && i.y + i.height <= e.y + e.height && (i = l.a.mergeRect(e, i), JSON.stringify(e) == JSON.stringify(i) || (t.changed = !0, t.rect = i, !0))
- }, h.prototype.isSelected = function () {
- return this.target.hasClass("selected")
- }, h.prototype.select = function () {
- this.target.addClass("selected")
- }, h.prototype.isHeader = function () {
- return !1
- }, h.prototype.setAlign = function (t) {
- (this.align = t) ? this.target.css("text-align", t) : this.target[0].style.textAlign = ""
- }, h.prototype.setVAlign = function (t) {
- (this.vAlign = t) ? this.target.css("vertical-align", t) : this.target[0].style.verticalAlign = ""
- }, h.prototype.getEntity = function () {
- return new u(this)
- }, h);
-
- function h() {
- this.id = p.a.createId()
- }
-
- function m() { }
-
- function g() { }
-
- function v() {
- this.select = new a
- }
-
- function b() { }
-
- function I() {
- this.text = new n
- }
-
- function A() { }
- i.d(e, "a", function () {
- return x
- });
- (function (t, e) {
- (Object.setPrototypeOf || (_instanceof({
- __proto__: []
- }, Array) ? function (t, e) {
- t.__proto__ = e
- } : function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- }))(t, e)
- })(y = w, i = _ = f), y.prototype = null === i ? Object.create(i) : (M.prototype = i.prototype, new M), w.prototype.css = function (t) { };
- var _, y, x = w;
-
- function w(t) {
- var e = this;
- return t = t || {}, (e = _.call(this) || this).width = t.width ? parseFloat(t.width.toString()) : 100, e.title = t.title, e.descTitle = t.descTitle, e.field = t.field, e.fixed = t.fixed, e.rowspan = t.rowspan ? parseInt(t.rowspan) : 1, e.colspan = t.colspan ? parseInt(t.colspan) : 1, e.align = t.align, e.halign = t.halign, e.vAlign = t.vAlign, e.formatter = t.formatter, e.styler = t.styler, e.renderFormatter = t.renderFormatter, e.formatter2 = t.formatter2, e.styler2 = t.styler2, e.stylerHeader = t.stylerHeader, e.checkbox = t.checkbox, e.checked = 0 != t.checked, e.columnId = t.columnId || t.field, e.tableColumnHeight = t.tableColumnHeight, e.tableTextType = t.tableTextType, e.tableBarcodeMode = t.tableBarcodeMode, e.tableQRCodeLevel = t.tableQRCodeLevel, e.tableSummaryTitle = t.tableSummaryTitle, e.tableSummaryText = t.tableSummaryText, e.tableSummaryColspan = t.tableSummaryColspan, e.tableSummary = t.tableSummary, e.tableSummaryAlign = t.tableSummaryAlign, e.tableSummaryNumFormat = t.tableSummaryNumFormat, e.tableSummaryFormatter = t.tableSummaryFormatter, e.upperCase = t.upperCase, e
- }
-
- function M() {
- this.constructor = y
- }
- }, function (t, e, i) {
- i.d(e, "a", function () {
- return n
- });
- var n = function (t) {
- this.printLine = t.printLine, this.target = t.target, this.referenceElement = t.referenceElement
- }
- }, function (module, __webpack_exports__, __webpack_require__) {
- __webpack_require__.d(__webpack_exports__, "a", function () {
- return TableExcelHelper
- });
- var _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19),
- _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0),
- TableExcelHelper = function () {
- function TableExcelHelper() { }
- return TableExcelHelper.createTableHead = function (t, e) {
- for (var i = TableExcelHelper.reconsitutionTableColumnTree(t), n = jquery__WEBPACK_IMPORTED_MODULE_60___default()(""), a = TableExcelHelper.getColumnsWidth(i, e), r = 0; r < i.totalLayer; r++) ! function (t) {
- var r = jquery__WEBPACK_IMPORTED_MODULE_60___default()("
");
- i[t].filter(function (t) {
- return t.checked
- }).forEach(function (t) {
- var e, i = jquery__WEBPACK_IMPORTED_MODULE_60___default()("
"),
- n = (t.id && i.attr("id", t.id), t.columnId && i.attr("column-id", t.columnId), (t.align || t.halign) && i.css("text-align", t.halign || t.align), t.vAlign && i.css("vertical-align", t.vAlign), 1 < t.colspan && i.attr("colspan", t.colspan), 1 < t.rowspan && i.attr("rowspan", t.rowspan), i.html(t.title), a[t.id] ? (t.hasWidth = !0, t.targetWidth = a[t.id], i.attr("haswidth", "haswidth"), i.css("width", a[t.id] + "pt")) : t.hasWidth = !1, TableExcelHelper.getHeaderStyler(t));
- n && (e = n(t)) && Object.keys(e).forEach(function (t) {
- i.css(t, e[t])
- }), r.append(i)
- }), n.append(r)
- }(r);
- return TableExcelHelper.syncTargetWidthToOption(t), n
- }, TableExcelHelper.createTableFooter = function (t, f, h, e, m, i) {
- var g, n = jquery__WEBPACK_IMPORTED_MODULE_60___default()(""),
- e = this.getFooterFormatter(h, e),
- v = this.tableSummaryTitle,
- b = "last" == h.tableFooterRepeat ? f : i,
- r = h.columns.length - 1,
- r = this.rowColumns || h.columns[r].columns;
- return "no" != h.tableFooterRepeat && r.some(function (t) {
- return t.tableSummary
- }) && (g = jquery__WEBPACK_IMPORTED_MODULE_60___default()("
"), r.filter(function (t) {
- return t.checked
- }).forEach(function (e) {
- var t = b.filter(function (t) {
- return t && t[e.field]
- }).map(function (t) {
- return new RegExp("^-?(0|[1-9]\\d*)(\\.\\d+)?").test(t[e.field]) ? Number(t[e.field]) : 0
- }),
- i = e.tableSummaryText,
- n = e.tableSummaryNumFormat || 2,
- r = "text-align: ".concat(e.tableSummaryAlign || "center"),
- a = null == e.tableSummaryColspan ? 1 : e.tableSummaryColspan,
- o = e.upperCase,
- s = _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a,
- c = s.toUpperCase,
- l = s.numFormat,
- s = TableExcelHelper.getColumnTableSummaryFormatter(e),
- s = s ? s(e, t, f, h) : "";
- if (s) g.append(s);
- else switch (e.tableSummary) {
- case "count":
- var p = v(e, i || "".concat(i18n.__("计数"), ":"), m),
- d = c(o, b.filter(function (t) {
- return t
- }).length || 0);
- g.append('
').concat(p).concat(d, "
"));
- break;
- case "sum":
- p = (u = c(o, l(u = parseFloat(Number(t.reduce(function (t, e) {
- return t + e
- }, 0))), n)), v(e, i || "".concat(i18n.__("合计"), ":"), m));
- g.append('
').concat(p).concat(u, "
"));
- break;
- case "avg":
- var u = parseFloat(Number(t.reduce(function (t, e) {
- return t + e
- }, 0))),
- d = c(o, l(parseFloat(Number(u / (t.length || 1))), n)),
- p = v(e, i || "".concat(i18n.__("平均值"), ":"), m);
- g.append('
').concat(p).concat(d, "
"));
- break;
- case "min":
- u = Math.min.apply(Math, Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.a)(t)) || 0, p = (u = c(o, l(u = u == 1 / 0 ? 0 : u, n)), v(e, i || "".concat(i18n.__("最小值"), ":"), m));
- g.append('
').concat(p).concat(u || 0, "
"));
- break;
- case "max":
- d = Math.max.apply(Math, Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.a)(t)), p = (d = c(o, l(d = d == -1 / 0 ? 0 : d, n)), v(e, i || "".concat(i18n.__("最大值"), ":"), m));
- g.append('
').concat(p).concat(d || 0, "
"));
- break;
- case "text":
- g.append('
').concat(i || "", "
"));
- break;
- default:
- 1 <= a && g.append('
').concat(i || "", "
"))
- }
- }), n.append(g)), e && n.append(e(h, f, m, i)), n
- }, TableExcelHelper.tableSummaryTitle = function (t, e, i) {
- return null == t.tableSummaryTitle || 1 == t.tableSummaryTitle ? "".concat(e) : i ? "" : ''.concat(e, "")
- }, TableExcelHelper.createTableRow = function (t, r, a, o, s) {
- var c = this,
- l = TableExcelHelper.reconsitutionTableColumnTree(t),
- p = jquery__WEBPACK_IMPORTED_MODULE_60___default()(""),
- t = c.getGroupFieldsFormatter(o, s),
- n = t ? o.groupFields = t(s, o, r) : s.groupFields || [];
- return r = r || [], n.length ? _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a.groupBy(r, n, function (e) {
- var i = {};
- return n.forEach(function (t) {
- return i[t] = e[t]
- }), i
- }).forEach(function (t) {
- var e, i = c.getGroupFormatter(o, s),
- i = (i && ((e = jquery__WEBPACK_IMPORTED_MODULE_60___default()("
")).append(i(l.colspan, r, a, t, o)), p.append(e)), c.getGroupFooterFormatter(o, s)),
- n = t;
- n.rows.forEach(function (t, e) {
- t = TableExcelHelper.createRowTarget(l, t, o, s, e, n.rows, a);
- p.append(t)
- }), i && ((e = jquery__WEBPACK_IMPORTED_MODULE_60___default()("
")).append(i(l.colspan, r, a, t, o)), p.append(e))
- }) : r.forEach(function (t, e) {
- t = TableExcelHelper.createRowTarget(l, t, o, s, e, r, a);
- p.append(t)
- }), p
- }, TableExcelHelper.createRowTarget = function (t, e, n, i, rowIndex, tableData, printData) {
- var o = jquery__WEBPACK_IMPORTED_MODULE_60___default()("
'), imagebox.find("img").attr("src", p), r.html(imagebox)), "qrcode" == t.tableTextType) {
- r.html("");
- try {
- var qrcodebox = jquery__WEBPACK_IMPORTED_MODULE_60___default()(""),
- l, u;
- p && (l = parseInt(t.width || t.targetWidth || 20), u = parseInt(t.tableColumnHeight || 20), qrcodebox.css("height", (u < l ? u : l) + "pt"), new QRCode(qrcodebox[0], {
- width: u < l ? u : l,
- height: u < l ? u : l,
- colorDark: "#000000",
- useSVG: !0,
- correctLevel: t.tableQRCodeLevel || 0
- }).makeCode(p), r.html(qrcodebox))
- } catch (t) {
- r.html("".concat(i18n.__("二维码生成失败")))
- }
- }
- "sequence" === t.tableTextType && r.html(rowIndex + 1)
- }
- var s = TableExcelHelper.getColumnStyler(t),
- l;
- s && (l = s(e[t.field], e, i, n), l) && Object.keys(l).forEach(function (t) {
- r.css(t, l[t])
- }), o.append(r)
- }
- }), TableExcelHelper.getRowStyler(n, i)),
- a;
- return r && (a = r(e, n), a) && Object.keys(a).forEach(function (t) {
- o.css(t, a[t])
- }), o
- }, TableExcelHelper.createEmptyRowTarget = function (t, e) {
- var t = TableExcelHelper.reconsitutionTableColumnTree(t),
- n = jquery__WEBPACK_IMPORTED_MODULE_60___default()("
");
- return t.rowColumns.filter(function (t) {
- return t.checked
- }).forEach(function (t, e) {
- var i = jquery__WEBPACK_IMPORTED_MODULE_60___default()("
");
- t.field && i.attr("field", t.field), t.align && i.css("text-align", t.align), t.vAlign && i.css("vertical-align", t.vAlign), n.append(i)
- }), e && e.options.tableBodyRowHeight && n.find("td:not([rowspan])").css("height", e.options.tableBodyRowHeight + "pt"), n
- }, TableExcelHelper.getColumnsWidth = function (t, i) {
- var n = {},
- r = TableExcelHelper.allAutoWidth(t),
- a = TableExcelHelper.allFixedWidth(t);
- return t.rowColumns.filter(function (t) {
- return t.checked
- }).forEach(function (t) {
- var e;
- t.fixed ? n[t.id] = t.width : (e = t.width / r * (0 < (e = i - a) ? e : 0), n[t.id] = e)
- }), n
- }, TableExcelHelper.resizeTableCellWidth = function (t, e, i) {
- var e = TableExcelHelper.reconsitutionTableColumnTree(e),
- n = TableExcelHelper.getColumnsWidth(e, i);
- t.find("thead tr td[haswidth]").map(function (t, e) {
- var i = jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).attr("id"),
- i = n[i];
- jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).css("width", i + "pt")
- })
- }, TableExcelHelper.allAutoWidth = function (t) {
- var e = 0,
- i = {};
- return t.rowColumns.filter(function (t) {
- return t.checked
- }).forEach(function (t) {
- i[t.id] ? i[t.id] = 0 : i[t.id] = t.width, e += t.fixed ? 0 : i[t.id]
- }), e
- }, TableExcelHelper.allFixedWidth = function (t) {
- var e = 0,
- i = {};
- return t.rowColumns.filter(function (t) {
- return t.checked
- }).forEach(function (t) {
- i[t.id] ? i[t.id] = 0 : i[t.id] = t.width, e += t.fixed ? i[t.id] : 0
- }), e
- }, TableExcelHelper.reconsitutionTableColumnTree = function (t, e, i) {
- for (var n = e || new _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__.a, r = n.colspan = 0; r < t.length; r++) ! function (e) {
- n.totalLayer = e + 1, n[e] = t[e].columns, 0 == e && t[e].columns.forEach(function (t) {
- 0 == e && (n.colspan += t.colspan)
- })
- }(r);
- return n.rowColumns = TableExcelHelper.getOrderdColumns(n), n
- }, TableExcelHelper.syncTargetWidthToOption = function (t) {
- t.forEach(function (t) {
- t.columns.forEach(function (t) {
- t.hasWidth && (t.width = t.targetWidth)
- })
- })
- }, TableExcelHelper.getGroupFieldsFormatter = function (options, tablePrintElementType) {
- var groupFieldsFormatter = void 0,
- arr;
- if (tablePrintElementType.groupFields && tablePrintElementType.groupFields.length && (arr = "string" == typeof tablePrintElementType.groupFields ? tablePrintElementType.groupFields : JSON.stringify(tablePrintElementType.groupFields), options.groupFieldsFormatter = "function(type,options,data){ return " + arr + " }"), tablePrintElementType.groupFieldsFormatter && (groupFieldsFormatter = tablePrintElementType.groupFieldsFormatter), options.groupFieldsFormatter) try {
- var s = "groupFieldsFormatter=" + options.groupFieldsFormatter;
- eval(s)
- } catch (t) { }
- return groupFieldsFormatter
- }, TableExcelHelper.getGroupFormatter = function (options, tablePrintElementType) {
- var groupFormatter = void 0;
- if (tablePrintElementType.groupFormatter && (groupFormatter = tablePrintElementType.groupFormatter), options.groupFormatter) try {
- var s = "groupFormatter=" + options.groupFormatter;
- eval(s)
- } catch (t) { }
- return groupFormatter
- }, TableExcelHelper.getGroupFooterFormatter = function (options, tablePrintElementType) {
- var groupFooterFormatter = void 0;
- if (tablePrintElementType.groupFooterFormatter && (groupFooterFormatter = tablePrintElementType.groupFooterFormatter), options.groupFooterFormatter) try {
- var s = "groupFooterFormatter=" + options.groupFooterFormatter;
- eval(s)
- } catch (t) { }
- return groupFooterFormatter
- }, TableExcelHelper.getFooterFormatter = function (options, tablePrintElementType) {
- var footerFormatter = void 0;
- if (tablePrintElementType.footerFormatter && (footerFormatter = tablePrintElementType.footerFormatter), options.footerFormatter) try {
- var s = "footerFormatter=" + options.footerFormatter;
- eval(s)
- } catch (t) { }
- return footerFormatter
- }, TableExcelHelper.getRowStyler = function (options, tablePrintElementType) {
- var rowStyler = void 0;
- if (tablePrintElementType.rowStyler && (rowStyler = tablePrintElementType.rowStyler), options.rowStyler) try {
- var s = "rowStyler=" + options.rowStyler;
- eval(s)
- } catch (t) { }
- return rowStyler
- }, TableExcelHelper.getColumnTableSummaryFormatter = function (column) {
- var tableSummaryFormatter = void 0;
- if (column.tableSummaryFormatter && (tableSummaryFormatter = column.tableSummaryFormatter), column.tableSummaryFormatter) try {
- var s = "tableSummaryFormatter=" + column.tableSummaryFormatter;
- eval(s)
- } catch (t) { }
- return tableSummaryFormatter
- }, TableExcelHelper.getColumnStyler = function (column) {
- var styler = void 0;
- if (column.styler && (styler = column.styler), column.styler2) try {
- var s = "styler=" + column.styler2;
- eval(s)
- } catch (t) { }
- return styler
- }, TableExcelHelper.getHeaderStyler = function (column) {
- var stylerHeader = void 0;
- if (column.stylerHeader && (stylerHeader = column.stylerHeader), column.stylerHeader) try {
- var s = "stylerHeader=" + column.stylerHeader;
- eval(s)
- } catch (t) { }
- return stylerHeader
- }, TableExcelHelper.getColumnRenderFormatter = function (column) {
- var renderFormatter = void 0;
- if (column.renderFormatter && (renderFormatter = column.renderFormatter), column.renderFormatter) try {
- var s = "renderFormatter=" + column.renderFormatter;
- eval(s)
- } catch (t) { }
- return renderFormatter
- }, TableExcelHelper.getColumnFormatter = function (column) {
- var formatter = void 0;
- if (column.formatter && (formatter = column.formatter), column.formatter2) try {
- var s = "formatter=" + column.formatter2;
- eval(s)
- } catch (t) { }
- return formatter
- }, TableExcelHelper.getOrderdColumns = function (t) {
- for (var r = {}, e = 0; e < t.totalLayer; e++) ! function (n) {
- r[n] = [], t[n].forEach(function (t, e) {
- var i;
- (i = r[n]).push.apply(i, Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.a)(new Array(t.colspan).fill(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__.a)(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__.a)({}, t), {}, {
- colspan: 1
- }))))
- })
- }(e);
- for (var i = 0; i < t.totalLayer; i++) ! function (n) {
- r[n].forEach(function (t, e) {
- for (var i = 1; i < t.rowspan; i++) r[n + i].splice(e, 0, Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__.a)(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__.a)({}, t), {}, {
- rowspan: 1
- }))
- })
- }(i);
- for (var n = [], a = 0; a < t.totalLayer; a++) ! function (i) {
- i >= t.totalLayer - 1 ? r[i].forEach(function (t, e) {
- t.field || (t.field = n[e])
- }) : r[i].forEach(function (t, e) {
- 0 == i ? n.push(t.field || "") : t.field && (n[e] = t.field)
- })
- }(a);
- return this.rowColumns = r[t.totalLayer - 1], r[t.totalLayer - 1]
- }, TableExcelHelper
- }()
- }, function (t, e, i) {
- i.d(e, "a", function () {
- return n
- });
- r.prototype.isPositionLeftOrRight = function (t) {
- return this.top <= t && this.top + this.height > t
- };
- var n = r;
-
- function r(t) {
- this.top = t.top, this.left = t.left, this.height = t.height, this.width = t.width, this.bottomInLastPaper = t.bottomInLastPaper, this.beginPrintPaperIndex = t.beginPrintPaperIndex, this.printTopInPaper = t.printTopInPaper, this.endPrintPaperIndex = t.endPrintPaperIndex
- }
- }, function (U, H, R) {
- ln.prototype.css = function (t, e) {
- if (t && t.length) {
- if (e) return t.css("line-height", e + "pt"), "line-height:" + e + "pt";
- t[0].style.lineHeight = ""
- }
- return null
- }, ln.prototype.createTarget = function () {
- return this.target = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
\n
\n '.concat(i18n.__("字体行高"), '\n
\n
\n \n
\n
')), this.target
- }, ln.prototype.getValue = function () {
- var t = this.target.find("select").val();
- if (t) return parseFloat(t.toString())
- }, ln.prototype.setValue = function (t) {
- t && !this.target.find('option[value="' + t + '"]').length && this.target.find("select").prepend('"), this.target.find("select").val(t)
- }, ln.prototype.destroy = function () {
- this.target.remove()
- };
- var z = ln,
- O = (cn.prototype.createTarget = function (t) {
- var i, e = void 0;
- return (e = t ? t.getFontList() : e) ? (i = '
'))
+ }), n.append(r)
+ })(r);
+ return TableExcelHelper.syncTargetWidthToOption(e), [n, A]
+ }, TableExcelHelper.createTableFooter = function(e, u, f, t, h, i, n) {
+ var g, r = jquery__WEBPACK_IMPORTED_MODULE_65___default()(""),
+ t = this.getFooterFormatter(f, t),
+ m = this.tableSummaryTitle,
+ v = "last" == f.tableFooterRepeat ? u : i,
+ A = f.columns.length - 1,
+ A = this.rowColumns || f.columns[A].columns;
+ return "no" != f.tableFooterRepeat && A.some(function(e) {
+ return e.tableSummary
+ }) && (g = jquery__WEBPACK_IMPORTED_MODULE_65___default()("
"), A.filter(function(e) {
+ return e.checked
+ }).forEach(function(t) {
+ var e = v.filter(function(e) {
+ return e && e[t.field]
+ }).map(function(e) {
+ return new RegExp("^-?(0|[1-9]\\d*)(\\.\\d+)?").test(e[t.field]) ? Number(e[t.field]) : 0
+ }),
+ i = t.tableSummaryText,
+ n = t.tableSummaryNumFormat || 2,
+ r = "text-align: ".concat(t.tableSummaryAlign || "center"),
+ A = null == t.tableSummaryColspan ? 1 : t.tableSummaryColspan,
+ a = t.upperCase,
+ o = _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a,
+ s = o.toUpperCase,
+ c = o.numFormat,
+ o = TableExcelHelper.getColumnTableSummaryFormatter(t),
+ o = o ? o(t, e, u, f) : "";
+ if (o) g.append(o);
+ else switch (t.tableSummary) {
+ case "count":
+ var l = m(t, i || "".concat(i18n.__("计数"), ":"), h),
+ p = s(a, v.filter(function(e) {
+ return e
+ }).length || 0);
+ g.append('
').concat(l).concat(p, "
"));
+ break;
+ case "sum":
+ l = (d = s(a, c(d = parseFloat(Number(e.reduce(function(e, t) {
+ return e + t
+ }, 0))), n)), m(t, i || "".concat(i18n.__("合计"), ":"), h));
+ g.append('
').concat(l).concat(d, "
"));
+ break;
+ case "avg":
+ var d = parseFloat(Number(e.reduce(function(e, t) {
+ return e + t
+ }, 0))),
+ p = s(a, c(parseFloat(Number(d / (e.length || 1))), n)),
+ l = m(t, i || "".concat(i18n.__("平均值"), ":"), h);
+ g.append('
').concat(l).concat(p, "
"));
+ break;
+ case "min":
+ d = Math.min.apply(Math, Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4__.a)(e)) || 0, l = (d = s(a, c(d = d == 1 / 0 ? 0 : d, n)), m(t, i || "".concat(i18n.__("最小值"), ":"), h));
+ g.append('
').concat(l).concat(d || 0, "
"));
+ break;
+ case "max":
+ p = Math.max.apply(Math, Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4__.a)(e)), l = (p = s(a, c(p = p == -1 / 0 ? 0 : p, n)), m(t, i || "".concat(i18n.__("最大值"), ":"), h));
+ g.append('
').concat(l).concat(p || 0, "
"));
+ break;
+ case "text":
+ g.append('
').concat(i || "", "
"));
+ break;
+ default:
+ 1 <= A && g.append('
').concat(i || "", "
"))
+ }
+ }), r.append(g)), t && r.append(t(f, u, h, i, n)), r
+ }, TableExcelHelper.tableSummaryTitle = function(e, t, i) {
+ return null == e.tableSummaryTitle || 1 == e.tableSummaryTitle ? "".concat(t) : i ? "" : ''.concat(t, "")
+ }, TableExcelHelper.createTableRow = function(e, n, r, A, a) {
+ var o = this,
+ s = TableExcelHelper.reconsitutionTableColumnTree(e),
+ c = jquery__WEBPACK_IMPORTED_MODULE_65___default()(""),
+ e = o.getGroupFieldsFormatter(A, a),
+ l = 0,
+ p = e ? A.groupFields = e(a, A, n) : a.groupFields || [];
+ return n = n || [], p.length ? _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a.groupBy(n, p, function(t) {
+ var i = {};
+ return p.forEach(function(e) {
+ return i[e] = t[e]
+ }), i
+ }).forEach(function(e) {
+ var t = o.getGroupFormatter(A, a),
+ t = (t && (t = t(s.colspan, n, r, e, A), jquery__WEBPACK_IMPORTED_MODULE_65___default()(t).is("tr") ? c.append(t) : jquery__WEBPACK_IMPORTED_MODULE_65___default()(t).is("td") ? c.append("
".concat(t, "
")) : c.append("
".concat(t, "
"))), o.getGroupFooterFormatter(A, a)),
+ i = e;
+ i.rows.forEach(function(e, t) {
+ t = A.groupSequenceContinue ? l : t, e = TableExcelHelper.createRowTarget(s, e, A, a, t, i.rows, r);
+ c.append(e), l += 1
+ }), t && (t = t(s.colspan, n, r, e, A), jquery__WEBPACK_IMPORTED_MODULE_65___default()(t).is("tr") ? c.append(t) : jquery__WEBPACK_IMPORTED_MODULE_65___default()(t).is("td") ? c.append("
".concat(t, "
")) : c.append("
".concat(t, "
")))
+ }) : n.forEach(function(e, t) {
+ e = TableExcelHelper.createRowTarget(s, e, A, a, t, n, r);
+ c.append(e)
+ }), c
+ }, TableExcelHelper.createRowTarget = function(t, e, n, i, rowIndex, tableData, printData) {
+ var o = jquery__WEBPACK_IMPORTED_MODULE_65___default()("
").append(n.css("background", "blue")),
- length: e,
- height: _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(d),
- isEnd: !1
- }) : 0 == c.find("tr").length ? 0 == e && a ? {
- target: void 0,
- length: 0,
- height: 0,
- isEnd: !0
- } : {
- target: i.clone(),
- length: e,
- height: _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(d),
- isEnd: !0
- } : {
- target: i.clone(),
- length: e,
- height: _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(d),
- isEnd: !1
- }
- }, TablePrintElement.prototype.fixMergeSpan = function (t, e) {
- var i = this,
- n = 1,
- r = !1,
- a = 1,
- o = !1;
- return t.nextAll().each(function (t) {
- 0 < jquery__WEBPACK_IMPORTED_MODULE_60___default()(this).children().filter("td[rowspan=0]").length && !r ? n += 1 : r = !0, 0 < jquery__WEBPACK_IMPORTED_MODULE_60___default()(this).children().filter("td[colspan=0]").length && !o ? a += 1 : o = !0
- }), t.children().each(function (t, e) {
- jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).attr("rowspan") < 1 && (jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).attr("rowspan", n), jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).css("display", ""), i.options.rowsColumnsMergeClean) && jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).text(""), jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).attr("colspan") < 1 && (jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).attr("colspan", a), jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).css("display", ""), i.options.rowsColumnsMergeClean) && jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).text("")
- }), t
- }, TablePrintElement.prototype.autoCompletion = function (t, e, i) {
- for (var n, r = this.getEmptyRowTarget(), a = e.outerHeight() + i; a < t && (n = r.clone(), e.find("tbody").append(n), a = e.outerHeight() + i, !(this.options.maxRows && e.find("tbody").children().length > this.options.maxRows)););
- n && n.remove()
- }, TablePrintElement.prototype.getData = function (i) {
- if (!i) try {
- var t = this.options.testData || "[{}]";
- return JSON.parse(t)
- } catch (e) {
- return [{}]
- }
- var t = this.getField(),
- e = t && t.split(".").reduce(function (t, e) {
- return t ? t[e] : i ? i[e] : ""
- }, !1) || "";
- return e ? JSON.parse(JSON.stringify(e)) : []
- }, TablePrintElement.prototype.onResize = function (t, e, i, n, r) {
- _super.prototype.updateSizeAndPositionOptions.call(this, r, n, i, e), _table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.resizeTableCellWidth(this.designTarget, this.getColumns(), this.options.getWidth())
- }, TablePrintElement.prototype.getReizeableShowPoints = function () {
- return ["s", "e"]
- }, TablePrintElement.prototype.design = function (t, a) {
- var o = this;
- this.designTarget.hidraggable({
- handle: this.designTarget.find(".hiprint-printElement-table-handle"),
- axis: o.options.axis || void 0,
- designTarget: o,
- onDrag: function (t, e, i) {
- o.updateSizeAndPositionOptions(e, i), o.createLineOfPosition(a), _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed = !0
- },
- moveUnit: "pt",
- minMove: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,
- onBeforeDrag: function (t) {
- _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging = !0, o.createLineOfPosition(a)
- },
- getScale: function () {
- return o.designPaper.scale || 1
- },
- onStopDrag: function (t) {
- _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed && _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger("hiprintTemplateDataChanged_" + o.templateId, "移动"), _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging = !1, _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed = !1, o.removeLineOfPosition()
- }
- }), this.printElementType.editable && this.setHitable(), this.setColumnsOptions(), this.designTarget.hireizeable({
- showPoints: o.getReizeableShowPoints(),
- showSizeBox: _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.showSizeBox,
- noContainer: !0,
- onBeforeResize: function () {
- _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging = !0
- },
- getScale: function () {
- return o.designPaper.scale || 1
- },
- onResize: function (t, e, i, n, r) {
- o.onResize(t, e, i, n, r), o.hitable && o.hitable.updateColumnGrips(), o.createLineOfPosition(a)
- },
- onStopResize: function (t) {
- _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger("hiprintTemplateDataChanged_" + o.templateId, t ? "旋转" : "大小"), _HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging = !1, o.removeLineOfPosition()
- }
- }), this.bingKeyboardMoveEvent(this.designTarget, a)
- }, TablePrintElement.prototype.setHitable = function () {
- var t = this;
- this.hitable = new _hitable_HiTale__WEBPACK_IMPORTED_MODULE_7__.a({
- templateId: t.templateId,
- table: this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)"),
- rows: this.getColumns(),
- resizeRow: !1,
- resizeColumn: !0,
- fields: this.options.fields,
- trs: this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("tbody tr"),
- handle: this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("thead"),
- isEnableEdit: this.printElementType.editable || !0,
- columnDisplayEditable: null == this.printElementType.columnDisplayEditable || this.printElementType.columnDisplayEditable,
- columnDisplayIndexEditable: null == this.printElementType.columnDisplayIndexEditable || this.printElementType.columnDisplayIndexEditable,
- columnResizable: null == this.printElementType.columnResizable || this.printElementType.columnResizable,
- columnAlignEditable: null == this.printElementType.columnAlignEditable || this.printElementType.columnAlignEditable,
- isEnableEditText: null == this.printElementType.columnTitleEditable || this.printElementType.columnTitleEditable,
- isEnableEditField: null == this.printElementType.isEnableEditField || this.printElementType.isEnableEditField,
- isEnableContextMenu: null == this.printElementType.isEnableContextMenu || this.printElementType.isEnableContextMenu,
- isEnableInsertRow: null == this.printElementType.isEnableInsertRow || this.printElementType.isEnableInsertRow,
- isEnableDeleteRow: null == this.printElementType.isEnableDeleteRow || this.printElementType.isEnableDeleteRow,
- isEnableInsertColumn: null == this.printElementType.isEnableInsertColumn || this.printElementType.isEnableInsertColumn,
- isEnableDeleteColumn: null == this.printElementType.isEnableDeleteColumn || this.printElementType.isEnableDeleteColumn,
- isEnableMergeCell: null == this.printElementType.isEnableMergeCell || this.printElementType.isEnableMergeCell
- }), _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.on("updateTable" + this.hitable.id, function () {
- t.updateDesignViewFromOptions(), _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger("hiprintTemplateDataChanged_" + t.templateId, "调整表头")
- })
- }, TablePrintElement.prototype.setColumnsOptions = function () {
- var n = this;
- this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("thead td").bind("click.hiprint", function (t) {
- var e, t = jquery__WEBPACK_IMPORTED_MODULE_60___default()(t.target).attr("id") || jquery__WEBPACK_IMPORTED_MODULE_60___default()(t.target).attr("column-id"),
- i = n.getColumnByColumnId(t);
- i ? (e = n.getPrintElementOptionItemsByName("tableColumn"), _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger(n.getPrintElementSelectEventKey(), {
- printElement: n,
- customOptionsInput: [{
- title: (i.title || "".concat(i.id, "(id)")) + "-".concat(i18n.__("列属性")),
- optionItems: e,
- options: i,
- callback: function (t) {
- e.forEach(function (t) {
- var e = t.getValue();
- "title" != t.name || !e || e.trim().endsWith("#") || e.trim().startsWith("#") ? i[t.name] = e : (e = e ? e.split("#") : "", i.title = e[0], 1 < e.length && (i.columnId = i.field = e[1]), i.columnId && i.target.attr("column-id", i.columnId), t.target.find("textarea").val(e[0]))
- })
- }
- }]
- })) : _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger(n.getPrintElementSelectEventKey(), {
- printElement: n
- })
- })
- }, TablePrintElement.prototype.filterOptionItems = function (t) {
- var e = _super.prototype.filterOptionItems.call(this, t);
- return this.printElementType.editable && 1 == this.options.columns.length ? e : t.filter(function (t) {
- return "columns" != t.name
- })
- }, TablePrintElement.prototype.getFooterFormatter = function () {
- var footerFormatter = void 0;
- if (this.printElementType.footerFormatter && (footerFormatter = this.printElementType.footerFormatter), this.options.footerFormatter) try {
- var s = "footerFormatter=" + this.options.footerFormatter;
- eval(s)
- } catch (t) { }
- return footerFormatter
- }, TablePrintElement.prototype.getGridColumnsFooterFormatter = function () {
- var gridColumnsFooterFormatter = void 0;
- if (this.printElementType.gridColumnsFooterFormatter && (gridColumnsFooterFormatter = this.printElementType.gridColumnsFooterFormatter), this.options.gridColumnsFooterFormatter) try {
- var s = "gridColumnsFooterFormatter=" + this.options.gridColumnsFooterFormatter;
- eval(s)
- } catch (t) { }
- return gridColumnsFooterFormatter
- }, TablePrintElement
- }(_BasePrintElement__WEBPACK_IMPORTED_MODULE_0__.a)
- }, function (t, e, i) {
- var n = function (t) {
- this.table = t.table, this.templateId = t.templateId, this.fields = t.fields, this.isEnableEdit = t.isEnableEdit, this.trs = t.trs, this.resizeRow = t.resizeRow, this.resizeColumn = t.resizeColumn, this.isEnableEditField = t.isEnableEditField, this.isEnableContextMenu = t.isEnableContextMenu, this.isEnableEditField = t.isEnableEditField, this.isEnableInsertRow = t.isEnableInsertRow, this.isEnableDeleteRow = t.isEnableDeleteRow, this.isEnableInsertColumn = t.isEnableInsertColumn, this.isEnableDeleteColumn = t.isEnableDeleteColumn, this.isEnableMergeCell = t.isEnableMergeCell, this.columnResizable = t.columnResizable, this.columnAlignEditable = t.columnAlignEditable
- },
- r = (y.prototype.enableEidt = function () {
- this.options.isEnableEdit
- }, y.prototype.disableEdit = function () {
- this.options.isEnableEdit
- }, y.prototype.isEnableEdit = function () {
- return this.options.isEnableEdit
- }, y),
- p = i(0),
- d = function (t) {
- this.cell = t.cell, this.link = t.link, this.linkType = t.linkType, this.bottom = t.bottom, this.rightMost = t.rightMost, this.rowLevel = t.rowLevel, this.columnLevel = t.columnLevel, this.indexInTableGridRow = t.indexInTableGridRow, this.indexInTableGridColumn = t.indexInTableGridColumn
- },
- a = i(10),
- s = (_.getLeftTableCell = function (t, i) {
- var n;
- return t.forEach(function (t, e) {
- t.cell && e < i && (n = t.cell)
- }), n
- }, _.getIndex = function (t, i) {
- var n;
- return t.forEach(function (t, e) {
- t.cell && t.cell.id == i && (n = e)
- }), n
- }, _),
- c = i(13),
- o = i(11),
- l = function (t, e) {
- this.target = t, this.grips = e
- },
- u = function (t) {
- this.target = t
- },
- f = function () {
- this.rowColumns = []
- },
- h = (A.getColumnsWidth = function (t, i) {
- var n = {},
- r = A.allAutoWidth(t);
- return t.rowColumns.forEach(function (t) {
- var e = +i,
- e = t.width / r * (0 < e ? e : 0);
- n[t.id] = e
- }), n
- }, A.resizeTableCellWeight = function (t) {
- t.forEach(function (t) {
- t.columns.forEach(function (t) {
- t.hasWidth && jquery__WEBPACK_IMPORTED_MODULE_60___default()(t.getTarget()).css("width", t.width + "pt")
- })
- })
- }, A.allAutoWidth = function (t) {
- var e = 0;
- return t.rowColumns.forEach(function (t) {
- e += t.width
- }), e
- }, A.reconsitutionTableColumnTree = function (i, t, e) {
- for (var n = t || new f, r = 0; r < i.length; r++) ! function (e) {
- n.totalLayer = e + 1, n[e] = i[e].columns, n.rowColumns = n.rowColumns.concat(n[e].filter(function (t) {
- return t.rowspan == i.length - e
- }))
- }(r);
- return n
- }, A),
- m = i(2),
- g = (I.prototype.init = function () {
- this.addResizeRowAndColumn(), this.hitable.optionsCoat.options.resizeColumn && this.createColumnGrips(), this.hitable.optionsCoat.options.resizeRow && this.createRowGrips()
- }, I.prototype.resizeTableCellWidth = function () {
- h.resizeTableCellWeight(this.rows)
- }, I.prototype.addResizeRowAndColumn = function () { }, I.prototype.createColumnGrips = function () {
- var r = this,
- a = this,
- o = [],
- s = jquery__WEBPACK_IMPORTED_MODULE_60___default()('');
- s.width(this.target.width()), this.rows.forEach(function (t) {
- (t.columns || []).filter(function (t) {
- return t.checked
- }).forEach(function (t, e) {
- var i, n;
- t.getTarget().attr("haswidth") && (i = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
'), s.append(i), n = new u(i), 0 < o.length && (o[o.length - 1].nextGrip = n), o.push(n), r.syncGrips(t, n), jquery__WEBPACK_IMPORTED_MODULE_60___default()(i).hidraggable({
- axis: "h",
- onDrag: function (t, e, i) { },
- moveUnit: "pt",
- minMove: 1,
- getScale: function () {
- return jquery__WEBPACK_IMPORTED_MODULE_60___default()(".hiprint-printPaper")[0].style.transform && parseFloat(jquery__WEBPACK_IMPORTED_MODULE_60___default()(".hiprint-printPaper")[0].style.transform.slice(6, -1)) || 1
- },
- onBeforeDrag: function (t) {
- if (m.a.instance.draging = !0, !n.nextGrip) return !1;
- a.dragingGrip = n, a.dragingGrip.left = parseFloat(a.dragingGrip.target.css("left").replace("px", "")), n.target.addClass("columngripDraging")
- },
- onStopDrag: function (t) {
- m.a.instance.draging = !1;
- var e = parseFloat(a.dragingGrip.target.css("left").replace("px", "")),
- e = p.a.px.toPt(e - a.dragingGrip.left);
- n.cell.width + e < 10 ? e = 10 - n.cell.width : n.nextGrip.cell.width - e < 10 && (e = n.nextGrip.cell.width - 10), n.cell.width = n.cell.width + e, n.nextGrip.cell.width = n.nextGrip.cell.width - e, r.resizeTableCellWidth(), n.target.removeClass("columngripDraging"), a.updateColumnGrips()
- }
- }))
- })
- }), this.target.before(s), this.cgripContariner = new l(s, o)
- }, I.prototype.updateColumnGrips = function () {
- this.cgripContariner && (this.cgripContariner.target.remove(), this.createColumnGrips())
- }, I.prototype.updateRowGrips = function () {
- this.rgripContariner && (this.rgripContariner.target.remove(), this.createRowGrips())
- }, I.prototype.createRowGrips = function () {
- var r = this,
- a = this,
- o = [],
- s = jquery__WEBPACK_IMPORTED_MODULE_60___default()('');
- this.rows.forEach(function (t, i) {
- var e = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
'),
- n = (s.append(e), new u(e));
- o.push(n), 0 < i && i < r.rows.length && jquery__WEBPACK_IMPORTED_MODULE_60___default()(e).hidraggable({
- axis: "v",
- onDrag: function (t, e, i) { },
- moveUnit: "pt",
- minMove: 1,
- onBeforeDrag: function (t) {
- a.dragingGrip = n, a.dragingGrip.top = parseFloat(a.dragingGrip.target.css("top").replace("px", "")), n.target.addClass("rowgripDraging")
- },
- onStopDrag: function (t) {
- var e = parseFloat(a.dragingGrip.target.css("top").replace("px", "")),
- e = p.a.px.toPt(e - a.dragingGrip.top + a.rows[i].columns[0].getTarget().height());
- a.rows[i].columns[0].getTarget().css("height", e + "pt"), a.syncRowGrips(), n.target.removeClass("rowgripDraging")
- }
- })
- }), this.target.before(s), this.rgripContariner = new l(s, o), this.syncRowGrips()
- }, I.prototype.syncGrips = function (t, e) {
- var i = t.getTarget();
- e.cell = t, e.target.css({
- left: i.offset().left - this.target.offset().left + i.outerWidth(!1),
- height: 30
- })
- }, I.prototype.syncRowGrips = function () {
- var i = this;
- this.rgripContariner.target.height(this.target.height()), this.rows.forEach(function (t, e) {
- t = t.columns[0].getTarget();
- i.rgripContariner.grips[e].target.css({
- top: t.offset().top - i.target.offset().top + t.outerHeight(!1),
- width: 30
- })
- })
- }, I.prototype.addResizerHeadRow = function () {
- this.target.find("thead").prepend()
- }, I),
- v = (b.prototype.init = function () { }, b.prototype.updateRowGrips = function () { }, b.prototype.updateColumnGrips = function () { }, b);
-
- function b() { }
-
- function I(t) {
- this.signature = "HiTresizer", this.hitable = t, this.rows = t.rows, this.target = t.target
- }
-
- function A() { }
-
- function _() { }
-
- function y(t) {
- this.options = new n(t)
- }
- i.d(e, "a", function () {
- return x
- });
- w.prototype.insertRow = function (t, e, i) {
- var e = e || this.tableCellSelector.getSingleSelect(),
- n = e.cell,
- r = this.rows[e.rowIndex],
- e = e.rowIndex,
- a = this.getCellGrid(),
- o = new c.a;
- o.init(this.optionsCoat, void 0, r.isHead), i && o.getTarget().addClass(i), "above" == t ? (a[e].forEach(function (t) {
- var e, i = t.link || t.cell,
- i = i.width / i.colspan;
- 0 == t.columnLevel ? ((e = o.createTableCell()).width = i, o.insertCellToLast(e)) : ("column" == t.linkType && (i = t.link.getTarget(), t.link.rowspan += 1, i.attr("rowspan", t.link.rowspan)), t.linkType)
- }), this.rows.splice(e, 0, o), r.getTarget().before(o.getTarget())) : (a[i = e + n.rowspan - 1].forEach(function (t) {
- var e, i, n = t.link || t.cell,
- n = n.width / n.colspan;
- t.bottom ? ((e = o.createTableCell()).width = n, o.insertCellToLast(e)) : (t.cell && (i = t.cell.getTarget(), t.cell.rowspan += 1, i.attr("rowspan", t.cell.rowspan)), "column" == t.linkType && (i = t.link.getTarget(), t.link.rowspan += 1, i.attr("rowspan", t.link.rowspan)))
- }), this.rows.splice(1 + i, 0, o), this.rows[i].getTarget().after(o.getTarget())), p.a.event.trigger("newRow" + this.id, o)
- }, w.prototype.insertColumn = function (t, e, a, o) {
- var r, s, c = this,
- l = this.rows.concat(this.trRows),
- e = e || this.tableCellSelector.getSingleSelect(),
- i = e.cell,
- e = e.rowIndex,
- n = this.getCellGrid(l),
- e = n[e].filter(function (t) {
- return t.cell && t.cell.id == i.id || t.link && t.link.id == i.id
- });
- "left" == t ? (r = e[0].indexInTableGridRow, n.forEach(function (t, e) {
- var i, n = t[r],
- t = t.filter(function (t, e) {
- return r <= e && t.cell
- });
- 0 == n.rowLevel ? (i = l[e], e = l[e].createTableCell(), a && e.getTarget().addClass(a), null != o && (e.width = o), t.length ? i.insertToTargetCellLeft(t[0].cell, e) : i.insertCellToLast(e), p.a.event.trigger("newCell" + c.id, e)) : "row" == n.linkType && (t = n.link.getTarget(), n.link.colspan += 1, t.attr("colspan", n.link.colspan))
- })) : (s = e[e.length - 1].indexInTableGridRow, n.forEach(function (t, e) {
- var i, n, r = t[s],
- t = t.filter(function (t, e) {
- return e <= s && t.cell
- });
- r.rightMost ? (i = (e = l[e]).createTableCell(), a && i.getTarget().addClass(a), null != o && (i.width = o), t.length ? e.insertToTargetCellRight(t[t.length - 1].cell, i) : e.insertCellToFirst(i), p.a.event.trigger("newCell" + c.id, i)) : (t = r.link || r.cell, "row" == r.linkType && (n = t.getTarget(), t.colspan += 1, n.attr("colspan", t.colspan)), r.cell && (n = t.getTarget(), t.colspan += 1, n.attr("colspan", t.colspan)))
- }))
- }, w.prototype.deleteRow = function () {
- var a = this,
- t = this.tableCellSelector.getSingleSelect(),
- o = (t.cell, this.rows[t.rowIndex], t.rowIndex),
- s = this.getCellGrid(),
- c = this.rows[o];
- s[o].forEach(function (t, i) {
- var e, n, r;
- t.cell ? 1 == t.cell.rowspan ? c.removeCell(t.cell) : (c.removeCell(t.cell), r = s[o + 1].filter(function (t, e) {
- return t.cell && i < e
- }), n = (e = a.rows[o + 1]).createTableCell(t.cell.rowspan - 1, t.cell.colspan), r.length ? e.insertToTargetCellLeft(r[0].cell, n) : e.insertCellToLast(n)) : "column" == t.linkType && (--(r = t.link).rowspan, r.getTarget().attr("rowspan", r.rowspan))
- }), c.getTarget().remove(), this.rows.splice(o, 1)
- }, w.prototype.deleteColums = function () {
- var i = this.rows.concat(this.trRows),
- t = this.tableCellSelector.getSingleSelect(),
- e = t.cell,
- t = t.rowIndex,
- n = this.getCellGrid(i),
- r = n[t].filter(function (t) {
- return t.cell && t.cell.id == e.id || t.link && t.link.id == e.id
- })[0].indexInTableGridRow;
- n.forEach(function (t, e) {
- t = t[r];
- t.cell ? 1 == t.cell.colspan ? i[e].removeCell(t.cell) : (--t.cell.colspan, t.cell.getTarget().attr("colspan", t.cell.colspan)) : "row" == t.linkType && (--t.link.colspan, t.link.getTarget().attr("colspan", t.link.colspan))
- })
- }, w.prototype.mergeCell = function () {
- var n, r = this,
- a = this.tableCellSelector.getSelectedCells();
- 0 != a.length && (n = a[0][0].cell, a.forEach(function (t, i) {
- t.forEach(function (t, e) {
- 0 == i ? 0 != e && (n.colspan += t.cell.colspan, r.rows[t.rowIndex].removeCell(t.cell)) : r.rows[t.rowIndex].removeCell(t.cell), 0 == e && a[0][0].rowIndex + n.rowspan - 1 < t.rowIndex && (n.rowspan += t.cell.rowspan)
- })
- }), n.getTarget().attr("colspan", n.colspan), n.getTarget().attr("rowspan", n.rowspan), this.tableCellSelector.setSingleSelect(a[0][0]))
- }, w.prototype.splitCell = function () {
- var t = this.tableCellSelector.getSingleSelect(),
- e = this.getCellGrid(),
- i = s.getIndex(e[t.rowIndex], t.cell.id);
- if (t) {
- for (var n = t.rowIndex; n < t.rowIndex + t.cell.rowspan; n++)
- for (var r = this.rows[n], a = n == t.rowIndex ? t.cell : s.getLeftTableCell(e[n], i), o = 0; o < t.cell.colspan; o++) n == t.rowIndex && 0 == o || (a ? r.insertToTargetCellRight(a, r.createTableCell()) : r.insertCellToFirst(r.createTableCell()));
- t.cell.rowspan = 1, t.cell.colspan = 1, t.cell.getTarget().attr("colspan", t.cell.colspan), t.cell.getTarget().attr("rowspan", t.cell.rowspan)
- }
- }, w.prototype.init = function (e) {
- var i = this;
- jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.target).addClass("hitable"), this.optionsCoat.onBeforEdit = function (t) {
- return !(i.optionsCoat.options.onBeforEdit && !1 === e.onBeforEdit(t) || (i.optionsCoat.editingCell && i.optionsCoat.editingCell.endEdit(), 0))
- }, jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.target).mousedown(function (t) {
- i.optionsCoat.isLeftMouseButtonDown = !0
- }), jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.target).mouseup(function (t) {
- i.optionsCoat.isLeftMouseButtonDown = !1
- }), this.initContext(), this.target.on("mousemove", function (t) {
- 1 === t.buttons && i.tableCellSelector.multipleSelectByXY(t.pageX, t.pageY)
- }).on("mousedown", function (t) {
- 1 === t.buttons && i.tableCellSelector.singleSelectByXY(t.pageX, t.pageY)
- })
- }, w.prototype.initRows = function (t) {
- var i = this;
- this.trRows = [], t ? ((this.rows = t).forEach(function (t, e) {
- t.init(i.optionsCoat, i.target.find("tr:eq(" + e + ")"), !0)
- }), (t = this.optionsCoat.options.trs) && this.initRowsByTrs(t).forEach(function (t) {
- i.trRows.push(t)
- })) : this.rows = this.initRowsByTrs(this.target.find("tr"))
- }, w.prototype.initRowsByTrs = function (t) {
- var n = this;
- return t.map(function (t, e) {
- var i = new c.a;
- return i.init(n.optionsCoat, jquery__WEBPACK_IMPORTED_MODULE_60___default()(e)), i
- }).get()
- }, w.prototype.enableEidt = function () {
- this.optionsCoat.enableEidt()
- }, w.prototype.disableEdit = function () {
- this.optionsCoat.disableEdit()
- }, w.prototype.getCellGrid = function (t) {
- var t = t || this.rows,
- c = this.getColumnStep(),
- l = new Array;
- return t.forEach(function (t, s) {
- t.columns.forEach(function (t, e) {
- for (var i = 0; i < t.colspan; i++)
- for (var n = 0, r = !1; n < c && !r;) {
- if (l[s] = l[s] || [], !l[s][n]) {
- l[s][n] = new d({
- cell: 0 == i ? t : void 0,
- link: 0 != i ? t : void 0,
- linkType: 0 < i ? "row" : void 0,
- rightMost: i == t.colspan - 1 || void 0,
- bottom: 0 == t.rowspan - 1,
- rowLevel: i,
- columnLevel: 0,
- indexInTableGridRow: n,
- indexInTableGridColumn: s
- });
- for (var a = s + 1, o = 1; o < t.rowspan; o++) l[a] = l[a] || [], l[a][n] = new d({
- cell: void 0,
- link: t,
- linkType: 0 < i ? "rowColumn" : "column",
- rightMost: i == t.colspan - 1 || void 0,
- bottom: o == t.rowspan - 1,
- rowLevel: i,
- columnLevel: o,
- indexInTableGridRow: n,
- indexInTableGridColumn: a
- }), a += 1;
- r = !0
- }
- n++
- }
- })
- }), l
- }, w.prototype.setAlign = function (t) {
- var e = this.tableCellSelector.getSingleSelect();
- e && e.cell.setAlign(t)
- }, w.prototype.setVAlign = function (t) {
- var e = this.tableCellSelector.getSingleSelect();
- e && e.cell.setVAlign(t)
- }, w.prototype.getColumnStep = function (t) {
- var e = 0;
- return this.rows.length && this.rows[t || 0].columns.forEach(function (t) {
- e += t.colspan
- }), e
- }, w.prototype.initContext = function () {
- var e = this;
- if (!this.optionsCoat.options.isEnableContextMenu) return !1;
- jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.handle).hicontextMenu({
- menus: [{
- text: "".concat(i18n.__("在上方插入行")),
- enabled: this.optionsCoat.options.isEnableInsertRow,
- disable: function () {
- return !e.tableCellSelector.getSingleSelect()
- },
- callback: function () {
- e.insertRow("above"), e.resizer.updateRowGrips(), p.a.event.trigger("updateTable" + e.id)
- }
- }, {
- text: "".concat(i18n.__("在下方插入行")),
- borderBottom: !0,
- enabled: this.optionsCoat.options.isEnableInsertRow,
- disable: function () {
- return !e.tableCellSelector.getSingleSelect()
- },
- callback: function () {
- e.insertRow("below"), e.resizer.updateRowGrips(), p.a.event.trigger("updateTable" + e.id)
- }
- }, {
- text: "".concat(i18n.__("向左方插入列")),
- enabled: this.optionsCoat.options.isEnableInsertColumn,
- disable: function () {
- return !e.tableCellSelector.getSingleSelect()
- },
- callback: function () {
- e.insertColumn("left"), e.resizer.updateColumnGrips(), p.a.event.trigger("updateTable" + e.id)
- }
- }, {
- text: "".concat(i18n.__("向右方插入列")),
- enabled: this.optionsCoat.options.isEnableInsertColumn,
- disable: function () {
- return !e.tableCellSelector.getSingleSelect()
- },
- borderBottom: !0,
- callback: function () {
- e.insertColumn("right"), e.resizer.updateColumnGrips(), p.a.event.trigger("updateTable" + e.id)
- }
- }, {
- text: "".concat(i18n.__("删除行")),
- enabled: this.optionsCoat.options.isEnableDeleteRow,
- disable: function () {
- return !e.tableCellSelector.getSingleSelect() || e.rows.length <= 1
- },
- callback: function () {
- e.deleteRow(), e.resizer.updateRowGrips(), p.a.event.trigger("updateTable" + e.id)
- }
- }, {
- text: "".concat(i18n.__("删除列")),
- borderBottom: !0,
- enabled: this.optionsCoat.options.isEnableDeleteColumn,
- disable: function () {
- return !e.tableCellSelector.getSingleSelect() || 0 < e.rows.length && e.rows[0].columns.length <= 1
- },
- callback: function () {
- e.deleteColums(), e.resizer.updateColumnGrips(), p.a.event.trigger("updateTable" + e.id)
- }
- }, {
- text: "".concat(i18n.__("对齐")),
- borderBottom: !0,
- enabled: this.optionsCoat.options.columnAlignEditable,
- menus: [{
- text: "".concat(i18n.__("左")),
- callback: function () {
- e.setAlign("left")
- }
- }, {
- text: "".concat(i18n.__("左右居中")),
- callback: function () {
- e.setAlign("center")
- }
- }, {
- text: "".concat(i18n.__("右")),
- callback: function () {
- e.setAlign("right")
- }
- }, {
- text: "".concat(i18n.__("默认")),
- borderBottom: !0,
- callback: function () {
- e.setAlign("")
- }
- }, {
- text: "".concat(i18n.__("上")),
- callback: function () {
- e.setVAlign("top")
- }
- }, {
- text: "".concat(i18n.__("垂直居中")),
- callback: function () {
- e.setVAlign("middle")
- }
- }, {
- text: "".concat(i18n.__("下")),
- callback: function () {
- e.setVAlign("bottom")
- }
- }, {
- text: "".concat(i18n.__("默认")),
- callback: function () {
- e.setVAlign("")
- }
- }]
- }, {
- text: "".concat(i18n.__("合并单元格")),
- enabled: this.optionsCoat.options.isEnableMergeCell,
- disable: function () {
- return e.tableCellSelector.getSingleSelect()
- },
- callback: function () {
- e.mergeCell(), p.a.event.trigger("updateTable" + e.id)
- }
- }, {
- text: "".concat(i18n.__("解开单元格")),
- enabled: this.optionsCoat.options.isEnableMergeCell,
- disable: function () {
- var t = e.tableCellSelector.getSingleSelect();
- return !t || 1 == t.cell.rowspan && 1 == t.cell.colspan
- },
- callback: function () {
- e.splitCell(), p.a.event.trigger("updateTable" + e.id)
- }
- }].filter(function (t) {
- return t.enabled
- })
- })
- }, w.prototype.getTableWidth = function () {
- return p.a.px.toPt(this.target.outerWidth(!1))
- }, w.prototype.updateColumnGrips = function () {
- this.resizer.updateColumnGrips()
- }, w.prototype.updateRowGrips = function () {
- this.resizer.updateRowGrips()
- };
- var x = w;
-
- function w(t) {
- this.id = o.a.createId(), this.optionsCoat = new r(t), this.handle = t.handle, this.target = t.table, this.initRows(t.rows), this.init(t), this.tableCellSelector = new a.a(this.rows, this.target), this.resizer = this.optionsCoat.options.columnResizable ? new g(this) : new v, this.resizer.init()
- }
- }, function (t, e, i) {
- i.d(e, "a", function () {
- return n
- });
- var n = function (t, e, i) {
- this.tid = t, this.options = e, this.printElementType = i
- }
- }, function (t, e, i) {
- var n = i(3),
- r = i(12),
- a = function (t) {
- this.width = t.width, this.title = t.title, this.field = t.field, this.checked = t.checked, this.columnId = t.columnId, this.fixed = !1, this.rowspan = t.rowspan || 1, this.colspan = t.colspan || 1, this.align = t.align, this.halign = t.halign, this.vAlign = t.vAlign, this.renderFormatter = t.renderFormatter, this.formatter2 = t.formatter2, this.styler2 = t.styler2, this.stylerHeader = t.stylerHeader, this.tableColumnHeight = t.tableColumnHeight, this.tableTextType = t.tableTextType, this.tableBarcodeMode = t.tableBarcodeMode, this.tableQRCodeLevel = t.tableQRCodeLevel, this.tableSummaryTitle = t.tableSummaryTitle, this.tableSummaryText = t.tableSummaryText, this.tableSummaryColspan = t.tableSummaryColspan, this.tableSummary = t.tableSummary, this.tableSummaryAlign = t.tableSummaryAlign, this.tableSummaryNumFormat = t.tableSummaryNumFormat, this.tableSummaryFormatter = t.tableSummaryFormatter, this.upperCase = t.upperCase
- },
- o = i(5);
- i.d(e, "a", function () {
- return p
- });
- s = function (t, e) {
- return (s = Object.setPrototypeOf || (_instanceof({
- __proto__: []
- }, Array) ? function (t, e) {
- t.__proto__ = e
- } : function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- }))(t, e)
- };
- c = n.a, s(l = d, i = c), l.prototype = null === i ? Object.create(i) : (u.prototype = i.prototype, new u), d.prototype.getColumnByColumnId = function (t) {
- return this.makeColumnObj()[t]
- }, d.prototype.makeColumnObj = function () {
- var e = {};
- return this.columns && this.columns.forEach(function (t) {
- t.columns.forEach(function (t) {
- (t.id || t.columnId) && (e[t.id || t.columnId] = t)
- })
- }), e
- }, d.prototype.getGridColumns = function () {
- return this.gridColumns || 1
- }, d.prototype.getPrintElementOptionEntity = function () {
- var e = c.prototype.getPrintElementOptionEntity.call(this);
- return e.fields = this.fields, this.columns && (e.columns = [], this.columns.forEach(function (t) {
- t = t.getPrintElementOptionEntity().map(function (t) {
- return new a(t)
- });
- e.columns.push(t)
- })), e
- };
- var s, c, l, p = d;
-
- function d(t, n) {
- var e = this;
- return (e = c.call(this, t = t || {}) || this).lHeight = t.lHeight, e.autoCompletion = t.autoCompletion, e.tableFooterRepeat = t.tableFooterRepeat, n && (e.columns = [], n.editable && t.columns && t.columns.length ? t.columns.forEach(function (t) {
- var i = [];
- t.forEach(function (t) {
- var t = new a(t),
- e = n.getColumnByColumnId(t.columnId),
- e = e ? jquery__WEBPACK_IMPORTED_MODULE_60___default.a.extend(e, t) : new o.a(t);
- i.push(e)
- }), e.columns.push(new r.a(i))
- }) : n.columns.forEach(function (t) {
- e.columns.push(new r.a(t))
- })), e
- }
-
- function u() {
- this.constructor = l
- }
- }, function (t, e, i) {
- i.d(e, "a", function () {
- return n
- });
- var n = function () {
- this.rowColumns = []
- }
- }, function (t, e, i) {
- i.d(e, "a", function () {
- return n
- });
- r.prototype.getByIndex = function (t) {
- return this.target.find(".hi-grid-col:eq(" + t + ")")
- };
- var n = r;
-
- function r(t, e) {
- this.gridColumns = t, this.target = e
- }
- }, function (t, e, i) {
- t.exports = i(33)
- }, function (t, e) {
- function I(t) {
- var e = M.data(t.data.target, "hidraggable"),
- i = e.options,
- n = e.proxy,
- r = t.data,
- a = r.startLeft + (t.pageX - r.startX) / (e.options.getScale() || 1),
- e = r.startTop + (t.pageY - r.startY) / (e.options.getScale() || 1);
- n && (n.parent()[0] == document.body ? (a = null != i.deltaX && null != i.deltaX ? t.pageX + i.deltaX : t.pageX - t.data.offsetWidth, e = null != i.deltaY && null != i.deltaY ? t.pageY + i.deltaY : t.pageY - t.data.offsetHeight) : (null != i.deltaX && null != i.deltaX && (a += t.data.offsetWidth + i.deltaX), null != i.deltaY && null != i.deltaY && (e += t.data.offsetHeight + i.deltaY))), t.data.parent != document.body && (a += M(t.data.parent).scrollLeft(), e += M(t.data.parent).scrollTop()), "h" == i.axis ? r.left = a : "v" == i.axis || t.shiftKey && t.altKey ? r.top = e : t.shiftKey ? r.left = a : (r.left = a, r.top = e)
- }
-
- function A(t) {
- var e = M.data(t.data.target, "hidraggable"),
- i = e.options;
- (e.proxy || M(t.data.target)).css({
- left: M.fn.dragLengthC(t.data.left, i),
- top: M.fn.dragLengthC(t.data.top, i)
- }), M("body").css("cursor", i.cursor)
- }
-
- function c(e) {
- M.fn.hidraggable.isDragging = !0;
- var t = M.data(e.data.target, "hidraggable"),
- i = t.options,
- n = M(".hidroppable").filter(function () {
- return e.data.target != this
- }).filter(function () {
- var t = M.data(this, "hidroppable").options.accept;
- return !t || 0 < M(t).filter(function () {
- return this == e.data.target
- }).length
- }),
- n = (t.hidroppables = n, t.proxy);
- return n || (i.proxy ? (n = "clone" == i.proxy ? M(e.data.target).clone().insertAfter(e.data.target) : i.proxy.call(e.data.target, e.data.target), t.proxy = n) : n = M(e.data.target)), n.css("position", "absolute"), I(e), A(e), i.onStartDrag.call(e.data.target, e), !1
- }
-
- function _(t, e, i, n, r, a) {
- Math.abs(t[i] - e[n]) <= HIPRINT_CONFIG.adsorbLineMin ? t.v.length ? t.v.css("left", t[i] + "pt") : (t.v = jquery__WEBPACK_IMPORTED_MODULE_60___default()(""), t.v.css("height", r + "pt"), t.v.css("left", t[i] + "pt"), a.append(t.v)) : t.v && t.v.remove()
- }
-
- function y(t) {
- t && t.v && t.v.remove(), jquery__WEBPACK_IMPORTED_MODULE_60___default()(".verLine").remove()
- }
-
- function x(t, e, i, n, r, a) {
- Math.abs(t[i] - e[n]) <= HIPRINT_CONFIG.adsorbLineMin ? t.h.length ? t.h.css("top", t[i] + "pt") : (t.h = jquery__WEBPACK_IMPORTED_MODULE_60___default()(""), t.h.css("width", r + "pt"), t.h.css("top", t[i] + "pt"), a.append(t.h)) : t.h && t.h.remove()
- }
-
- function w(t) {
- t && t.h && t.h.remove(), jquery__WEBPACK_IMPORTED_MODULE_60___default()(".horLine").remove()
- }
-
- function l(i) {
- var t, u, e, n, r, a, o, s, c, l, p, d, f, h, m, g, v = M.data(i.data.target, "hidraggable"),
- b = (I(i), i.ctrlKey || i.metaKey || !i.data.target.className.startsWith("resize-panel") && "2" != i.data.target.style.zIndex && !i.data.target.className.startsWith("hiprint-printElement") || (t = i.data, 0 == M(".mouseRect").length && v.options.designTarget && v.options.designTarget.panel.printElements.filter(function (t) {
- return "block" == t.designTarget.children().last().css("display") && !t.printElementType.type.includes("table")
- }).length <= 1 && (l = window.hinnn.px.toPt(t.left), e = window.hinnn.px.toPt(t.top), (u = v.options.designTarget.options).left = l, u.top = e, u.right = l + u.width, u.bottom = e + u.height, u.vCenter = l + u.width / 2, u.hCenter = e + u.height / 2, c = v.options.designTarget.panel.printElements.filter(function (t) {
- return t.id != v.options.designTarget.id
- }).map(function (t) {
- var e = t.options,
- i = e.left,
- n = e.top,
- r = e.width,
- e = e.height,
- a = i + r,
- o = i + r / 2,
- s = n + e / 2,
- c = u.left + u.width / 2,
- l = u.top + u.height / 2,
- p = u.left + u.width,
- d = Math.sqrt(Math.pow(i - u.left, 2) + Math.pow(s - l, 2)),
- c = Math.sqrt(Math.pow(o - c, 2) + Math.pow(s - l, 2)),
- a = Math.sqrt(Math.pow(a - p, 2) + Math.pow(s - l, 2)),
- p = Math.min(d, c, a);
- return Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__.a)(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__.a)({}, t.options), {}, {
- distance: p,
- h: jquery__WEBPACK_IMPORTED_MODULE_60___default()(".horLine.id-" + t.id),
- v: jquery__WEBPACK_IMPORTED_MODULE_60___default()(".verLine.id-" + t.id),
- bottom: n + e,
- right: i + r,
- vCenter: o,
- hCenter: s
- })
- }).sort(function (t, e) {
- return t.distance - e.distance
- }).slice(0, 1), l = v.options.designTarget.designPaper, p = l.target.find(".hiprint-printPaper-content"), d = l.width, f = l.height, h = HIPRINT_CONFIG.showAdsorbLine, m = HIPRINT_CONFIG.adsorbMin, g = HIPRINT_CONFIG.adsorbLineMin, c.forEach(function (t, e) {
- Math.abs(c[e].left - u.left) <= m ? (u.left = c[e].left, y(c[e])) : Math.abs(c[e].vCenter - u.left) <= m ? (u.left = c[e].vCenter, y(c[e])) : Math.abs(c[e].right - u.left) <= m && (u.left = c[e].right, y(c[e])), Math.abs(c[e].left - u.vCenter) <= m ? (u.left = c[e].left - u.width / 2, y(c[e])) : Math.abs(c[e].vCenter - u.vCenter) <= m ? (u.left = c[e].vCenter - u.width / 2, y(c[e])) : Math.abs(c[e].right - u.vCenter) <= m && (u.left = c[e].right - u.width / 2, y(c[e])), Math.abs(c[e].left - u.right) <= m ? (u.left = c[e].left - u.width, y(c[e])) : Math.abs(c[e].vCenter - u.right) <= m ? (u.left = c[e].vCenter - u.width, y(c[e])) : Math.abs(c[e].right - u.right) <= m && (u.left = c[e].right - u.width, y(c[e])), Math.abs(c[e].top - u.top) <= m ? (u.top = c[e].top, w(c[e])) : Math.abs(c[e].hCenter - u.top) <= m ? (u.top = c[e].hCenter, w(c[e])) : Math.abs(c[e].bottom - u.top) <= m && (u.top = c[e].bottom, w(c[e])), Math.abs(c[e].top - u.hCenter) <= m ? (u.top = c[e].top - u.height / 2, w(c[e])) : Math.abs(c[e].hCenter - u.hCenter) <= m ? (u.top = c[e].hCenter - u.height / 2, w(c[e])) : Math.abs(c[e].bottom - u.hCenter) <= m && (u.top = c[e].bottom - u.height / 2, w(c[e])), Math.abs(c[e].top - u.bottom) <= m ? (u.top = c[e].top - u.height, w(c[e])) : Math.abs(c[e].hCenter - u.bottom) <= m ? (u.top = c[e].hCenter - u.height, w(c[e])) : Math.abs(c[e].bottom - u.bottom) <= m && (u.top = c[e].bottom - u.height, w(c[e])), h && (Math.abs(c[e].left - u.left) > m && Math.abs(c[e].left - u.left) <= g ? _(c[e], u, "left", "left", f, p) : Math.abs(c[e].vCenter - u.left) > m && Math.abs(c[e].vCenter - u.left) <= g ? _(c[e], u, "vCenter", "left", f, p) : Math.abs(c[e].right - u.left) > m && Math.abs(c[e].right - u.left) <= g ? _(c[e], u, "right", "left", f, p) : Math.abs(c[e].left - u.vCenter) > m && Math.abs(c[e].left - u.vCenter) <= g ? _(c[e], u, "left", "vCenter", f, p) : Math.abs(c[e].vCenter - u.vCenter) > m && Math.abs(c[e].vCenter - u.vCenter) <= g ? _(c[e], u, "vCenter", "vCenter", f, p) : Math.abs(c[e].right - u.vCenter) > m && Math.abs(c[e].right - u.vCenter) <= g ? _(c[e], u, "right", "vCenter", f, p) : Math.abs(c[e].left - u.right) > m && Math.abs(c[e].left - u.right) <= g ? _(c[e], u, "left", "right", f, p) : Math.abs(c[e].vCenter - u.right) > m && Math.abs(c[e].vCenter - u.right) <= g ? _(c[e], u, "vCenter", "right", f, p) : Math.abs(c[e].right - u.right) > m && Math.abs(c[e].right - u.right) <= g ? _(c[e], u, "right", "right", f, p) : Math.abs(c[e].top - u.top) > m && Math.abs(c[e].top - u.top) <= g ? x(c[e], u, "top", "top", d, p) : Math.abs(c[e].hCenter - u.top) > m && Math.abs(c[e].hCenter - u.top) <= g ? x(c[e], u, "hCenter", "top", d, p) : Math.abs(c[e].bottom - u.top) > m && Math.abs(c[e].bottom - u.top) <= g ? x(c[e], u, "bottom", "top", d, p) : Math.abs(c[e].top - u.hCenter) > m && Math.abs(c[e].top - u.hCenter) <= g ? x(c[e], u, "top", "hCenter", d, p) : Math.abs(c[e].hCenter - u.hCenter) > m && Math.abs(c[e].hCenter - u.hCenter) <= g ? x(c[e], u, "hCenter", "hCenter", d, p) : Math.abs(c[e].bottom - u.hCenter) > m && Math.abs(c[e].bottom - u.hCenter) <= g ? x(c[e], u, "bottom", "hCenter", d, p) : Math.abs(c[e].top - u.bottom) > m && Math.abs(c[e].top - u.bottom) <= g ? x(c[e], u, "top", "bottom", d, p) : Math.abs(c[e].hCenter - u.bottom) > m && Math.abs(c[e].hCenter - u.bottom) <= g ? x(c[e], u, "hCenter", "bottom", d, p) : Math.abs(c[e].bottom - u.bottom) > m && Math.abs(c[e].bottom - u.bottom) <= g ? x(c[e], u, "bottom", "bottom", d, p) : (y(c[e]), w(c[e])))
- }), i.data.left = window.hinnn.pt.toPx(u.left), i.data.top = window.hinnn.pt.toPx(u.top)), l = (e = t.parent.className.endsWith("design") ? t.parent : t.parent.offsetParent).clientWidth, e = e.clientHeight, n = t.target.clientWidth, r = t.target.clientHeight, s = o = 0, v.options.designTarget && v.options.designTarget.options.transform && (a = v.options.designTarget.options.getRectInfo(), o = window.hinnn.pt.toPx(a.diffW), s = window.hinnn.pt.toPx(a.diffH)), t.left < 0 - o ? t.left = 0 - o : t.left >= l - n + o && (t.left = l - n + o), t.top < 0 - s ? t.top = 0 - s : t.top >= e - r + s && (t.top = e - r + s), i.data = t), 0 != v.options.onDrag.call(i.data.target, i, M.fn.dragLengthCNum(i.data.left, v.options), M.fn.dragLengthCNum(i.data.top, v.options)) && A(i), i.data.target);
- return v.hidroppables.each(function () {
- var t, e = M(this);
- e.hidroppable("options").disabled || (t = e.offset(), i.pageX > t.left && i.pageX < t.left + e.outerWidth() && i.pageY > t.top && i.pageY < t.top + e.outerHeight() ? (this.entered || (M(this).trigger("_dragenter", [b]), this.entered = !0), M(this).trigger("_dragover", [b])) : this.entered && (M(this).trigger("_dragleave", [b]), this.entered = !1))
- }), !1
- }
-
- function p(r) {
- M.fn.hidraggable.isDragging = !1, y(), w();
- var t, e, i = M.data(r.data.target, "hidraggable"),
- n = i.proxy,
- a = i.options;
-
- function o() {
- n && n.remove(), i.proxy = null
- }
-
- function s() {
- var n = !1;
- return i.hidroppables.each(function () {
- var t, e, i = M(this);
- if (!i.hidroppable("options").disabled) return t = i.offset(), e = this.style.transform && parseFloat(this.style.transform.slice(6, -1)) || 1, r.pageX > t.left && r.pageX < t.left + i.outerWidth() * e && r.pageY > t.top && r.pageY < t.top + i.outerHeight() * e ? (a.revert && M(r.data.target).css({
- position: r.data.startPosition,
- left: r.data.startLeft,
- top: r.data.startTop
- }), M(this).trigger("_drop", [r.data.target]), o(), n = !0, this.entered = !1) : void 0
- }), n || a.revert || o(), n
- }
- return a.revert ? 1 == s() ? M(r.data.target).css({
- position: r.data.startPosition,
- left: r.data.startLeft,
- top: r.data.startTop
- }) : n ? (e = n.parent()[0] == document.body ? (t = r.data.startX - r.data.offsetWidth, r.data.startY - r.data.offsetHeight) : (t = r.data.startLeft, r.data.startTop), n.animate({
- left: t,
- top: e
- }, function () {
- o()
- })) : M(r.data.target).animate({
- left: r.data.startLeft,
- top: r.data.startTop
- }, function () {
- M(r.data.target).css("position", r.data.startPosition)
- }) : (M(r.data.target).css({
- position: "absolute",
- left: M.fn.dragLengthC(r.data.left, a),
- top: M.fn.dragLengthC(r.data.top, a)
- }), s()), a.onStopDrag.call(r.data.target, r), M(document).unbind(".hidraggable"), setTimeout(function () {
- M("body").css("cursor", "")
- }, 100), !1
- }
- var M;
- (M = jQuery).fn.hidraggable = function (i, t) {
- return "string" == typeof i ? M.fn.hidraggable.methods[i](this, t) : this.each(function () {
- var t = M.data(this, "hidraggable"),
- t = t ? (t.handle.unbind(".hidraggable"), M.extend(t.options, i)) : M.extend({}, M.fn.hidraggable.defaults, M.fn.hidraggable.parseOptions(this), i || {}),
- e = t.handle ? "string" == typeof t.handle ? M(t.handle, this) : t.handle : M(this);
-
- function s(t) {
- var e = M.data(t.data.target, "hidraggable"),
- i = e.handle,
- n = M(i).offset(),
- r = M(i)[0].style.transform && parseInt(M(i)[0].style.transform.slice(7, -1)),
- a = e.options.getScale(),
- o = M(i).outerWidth(),
- s = M(i).outerHeight(),
- c = (r && (r = r * Math.PI / 180, c = M(i).outerWidth(), i = M(i).outerHeight(), l = Math.sin(r), r = Math.cos(r), o = Math.abs(c * r) + Math.abs(i * l), s = Math.abs(c * l) + Math.abs(i * r)), a && (o *= a, s *= a), t.pageY - n.top),
- l = n.left + o - t.pageX,
- i = n.top + s - t.pageY,
- r = t.pageX - n.left;
- return Math.min(c, l, i, r) > e.options.edge
- }
- M.data(this, "hidraggable", {
- options: t,
- handle: e
- }), t.disabled ? M(this).css("cursor", "") : e.unbind(".hidraggable").bind("mousemove.hidraggable", {
- target: this
- }, function (t) {
- var e;
- M.fn.hidraggable.isDragging || (e = M.data(t.data.target, "hidraggable").options, s(t) ? M(this).css("cursor", e.cursor) : M(this).css("cursor", ""))
- }).bind("mouseleave.hidraggable", {
- target: this
- }, function (t) {
- M(this).css("cursor", "")
- }).bind("mousedown.hidraggable", {
- target: this
- }, function (t) {
- var e, i, n, r, a, o;
- 0 != s(t) && (M(this).css("cursor", ""), e = M(t.data.target).position(), r = M(t.data.target).offset(), !(e = {
- startPosition: M(t.data.target).css("position"),
- startLeft: e.left,
- startTop: e.top,
- left: e.left,
- top: e.top,
- startX: t.pageX,
- startY: t.pageY,
- offsetWidth: t.pageX - r.left,
- offsetHeight: t.pageY - r.top,
- target: t.data.target,
- parent: M(t.data.target).parent()[0]
- }) !== (r = M.data(t.data.target, "hidraggable")).options.draggable) && "r resizebtn" != t.target.className && ((r = r.options.getScale()) && (e.left /= r, e.top /= r, e.startLeft /= r, e.startTop /= r), (r = e.target.style.transform && parseInt(e.target.style.transform.slice(7, -1))) && (r = r * Math.PI / 180, o = M(t.data.target).outerWidth(), i = M(t.data.target).outerHeight(), n = Math.sin(r), r = Math.cos(r), a = (Math.abs(o * r) + Math.abs(i * n) - o) / 2, o = (Math.abs(o * n) + Math.abs(i * r) - i) / 2, e.left += a, e.top += o, e.startLeft += a, e.startTop += o), M.extend(t.data, e), 0 != M.data(t.data.target, "hidraggable").options.onBeforeDrag.call(t.data.target, t)) && (M(document).bind("mousedown.hidraggable", t.data, c), M(document).bind("mousemove.hidraggable", t.data, l), M(document).bind("mouseup.hidraggable", t.data, p))
- })
- })
- }, M.fn.hidraggable.methods = {
- options: function (t) {
- return M.data(t[0], "hidraggable").options
- },
- update: function (e, i) {
- i && "object" == Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__.a)(i) && M.data(e[0], "hidraggable") && Object.keys(i).forEach(function (t) {
- M.data(e[0], "hidraggable").options[t] = i[t]
- })
- },
- proxy: function (t) {
- return M.data(t[0], "hidraggable").proxy
- },
- enable: function (t) {
- return t.each(function () {
- M(this).hidraggable({
- disabled: !1
- })
- })
- },
- disable: function (t) {
- return t.each(function () {
- M(this).hidraggable({
- disabled: !0
- })
- })
- }
- }, M.fn.hidraggable.parseOptions = function (t) {
- var e = M(t);
- return M.extend({}, M.hiprintparser.parseOptions(t, ["cursor", "handle", "axis", {
- revert: "boolean",
- deltaX: "number",
- deltaY: "number",
- edge: "number"
- }]), {
- disabled: !!e.attr("disabled") || void 0
- })
- }, M.fn.hidraggable.defaults = {
- proxy: null,
- revert: !1,
- cursor: "move",
- deltaX: null,
- deltaY: null,
- handle: null,
- disabled: !1,
- edge: 0,
- axis: null,
- getScale: function (t) { },
- onBeforeDrag: function (t) { },
- onStartDrag: function (t) { },
- onDrag: function (t) { },
- onStopDrag: function (t) { }
- }, M.fn.hidraggable.isDragging = !1
- }, function (t, e) {
- var n;
- (n = jQuery).fn.hidroppable = function (e, t) {
- return "string" == typeof e ? n.fn.hidroppable.methods[e](this, t) : (e = e || {}, this.each(function () {
- var i, t = n.data(this, "hidroppable");
- t ? n.extend(t.options, e) : (n(i = this).addClass("hidroppable"), n(i).bind("_dragenter", function (t, e) {
- n.data(i, "hidroppable").options.onDragEnter.apply(i, [t, e])
- }), n(i).bind("_dragleave", function (t, e) {
- n.data(i, "hidroppable").options.onDragLeave.apply(i, [t, e])
- }), n(i).bind("_dragover", function (t, e) {
- n.data(i, "hidroppable").options.onDragOver.apply(i, [t, e])
- }), n(i).bind("_drop", function (t, e) {
- n.data(i, "hidroppable").options.onDrop.apply(i, [t, e])
- }), n.data(this, "hidroppable", {
- options: n.extend({}, n.fn.hidroppable.defaults, n.fn.hidroppable.parseOptions(this), e)
- }))
- }))
- }, n.fn.hidroppable.methods = {
- options: function (t) {
- return n.data(t[0], "hidroppable").options
- },
- enable: function (t) {
- return t.each(function () {
- n(this).hidroppable({
- disabled: !1
- })
- })
- },
- disable: function (t) {
- return t.each(function () {
- n(this).hidroppable({
- disabled: !0
- })
- })
- }
- }, n.fn.hidroppable.parseOptions = function (t) {
- var e = n(t);
- return n.extend({}, n.hiprintparser.parseOptions(t, ["accept"]), {
- disabled: !!e.attr("disabled") || void 0
- })
- }, n.fn.hidroppable.defaults = {
- accept: null,
- disabled: !1,
- onDragEnter: function (t, e) { },
- onDragOver: function (t, e) { },
- onDragLeave: function (t, e) { },
- onDrop: function (t, e) { }
- }
- }, function (t, e) {
- var p;
- (p = jQuery).hiprintparser = {
- parseOptions: function (t, e) {
- var i = p(t),
- n = {},
- r = p.trim(i.attr("data-options"));
- if (r && ("{" != r.substring(0, 1) && (r = "{" + r + "}"), n = new Function("return " + r)()), e) {
- for (var a = {}, o = 0; o < e.length; o++) {
- var s = e[o];
- if ("string" == typeof s) a[s] = "width" == s || "height" == s || "left" == s || "top" == s ? parseInt(t.style[s]) || void 0 : i.attr(s);
- else
- for (var c in s) {
- var l = s[c];
- "boolean" == l ? a[c] = i.attr(c) ? "true" == i.attr(c) : void 0 : "number" == l && (a[c] = "0" == i.attr(c) ? 0 : parseFloat(i.attr(c)) || void 0)
- }
- }
- p.extend(n, a)
- }
- return n
- }
- }, p.fn.dragLengthC = function (t, e) {
- return "pt" == e.moveUnit ? p.fn.dragLengthCNum(t, e) + "pt" : p.fn.dragLengthCNum(t, e)
- }, p.fn.dragLengthCNum = function (t, e) {
- var i, n = 3;
- return "pt" == e.moveUnit && (i = .75 * t, e.minMove) && (n = e.minMove), Math.round(i / n) * n
- }
- }, function (t, e) {
- var i, w = jQuery,
- m = {
- maxPanelIndex: 0
- };
- (i = function (t) {
- this.options = w.data(t.target, "hireizeable").options, this.init(t.target)
- }).prototype = {
- numHandlerText: function (t) {
- return this.numHandler(t) + "pt"
- },
- numHandler: function (t) {
- var e = 1.5;
- return this.options.minResize && (e = this.options.minResize), Math.round(.75 * t / e) * e
- },
- init: function (t) {
- this.initResizeBox(t)
- },
- initResizeBox: function (f) {
- var h = this;
- w(f).each(function () {
- function t() {
- var i = [],
- n = h.options.showPoints;
- return w.each([r, a, o, s, c, l, p, d], function (t, e) {
- -1 < w.inArray(e.name, n) && i.push(e.target)
- }), i
- }
- m.maxPanelIndex += 1, h.options.noContainer ? e = w(f) : (e = w("')).css({
- width: "100%",
- height: "100%",
- top: 0,
- left: 0,
- position: "absolute",
- "background-color": "rgba(0,0,0,0.5)",
- cursor: "move",
- display: "none"
- }), h.appendHandler(e, w(this));
- var e, r = {
- name: "n",
- target: w('')
- },
- a = {
- name: "s",
- target: w('')
- },
- o = {
- name: "w",
- target: w('')
- },
- s = {
- name: "e",
- target: w('')
- },
- c = {
- name: "ne",
- target: w('')
- },
- l = {
- name: "nw",
- target: w('')
- },
- p = {
- name: "se",
- target: w('')
- },
- d = {
- name: "sw",
- target: w('')
- },
- r = {
- name: "r",
- target: w('')
- },
- i = w(''),
- n = w('
✕
'),
- u = (h.refreshSizeBox(void 0, i, e), 0 != h.options.draggable && (e.append(n), e.on("mousedown", ".del-btn", function () {
- var t = new KeyboardEvent("keydown", {
- bubbles: !0,
- keyCode: 46
- });
- f.dispatchEvent(t)
- })), h.addHandlerCss(t()), h.appendHandler(t(), e), h.bindResizeEvent(e, w(this)), w(this));
- w(e).on("mousedown", ".resizebtn", function () {
- u.addClass("resizeing")
- }), w(".easyui-droppable").on("mouseup", function () {
- u.removeClass("resizeing")
- }), h.bindTrigger(w(this))
- }), h.bindHidePanel()
- },
- addHandlerCss: function (t) {
- for (var e = 0; e < t.length; e++) t[e].css({
- position: "absolute",
- width: "8px",
- height: "8px",
- background: "#ff6600",
- "border-radius": "50%"
- })
- },
- appendHandler: function (t, e) {
- e.find(".resize-panel").remove();
- for (var i = 0; i < t.length; i++) e.append(t[i])
- },
- refreshSizeBox: function (t, e, i) {
- if (this.options.showSizeBox) {
- var n, r;
- if (e && i.append(e), t && t.length) n = t[0].style, r = t.children("div[panelindex]").find(".size-box");
- else if (i && i.parent()) {
- if ((t = i.parent()).hasClass("hiprint-printPaper-content")) return;
- (n = t[0].style).width || (n.width = hinnn.px.toPt(t[0].offsetWidth) + "pt"), n.height || (n.height = hinnn.px.toPt(t[0].offsetHeight) + "pt"), r = t.children("div[panelindex]").find(".size-box")
- }
- r && (r.text(n.width + " x " + n.height), r.css("top", -(r.outerHeight() || 20)))
- }
- },
- triggerResize: function (t, e) {
- e.ctrlKey || e.metaKey || (t.siblings().children("div[panelindex]").removeClass("selected"), t.siblings().children("div[panelindex]").css({
- display: "none"
- })), t.children("div[panelindex]").addClass("selected"), t.children("div[panelindex]").css({
- display: "block"
- }), this.refreshSizeBox(t)
- },
- bindResizeEvent: function (a, t) {
- var o = this,
- s = 0,
- c = 0,
- l = a.width(),
- p = a.height(),
- d = a.offset().left,
- u = a.offset().top,
- f = o.options.noContainer ? w(t) : a.parent(),
- h = !1,
- m = (a.on("mousedown", ".e", function (t) {
- s = t.pageX, l = a.width(), h = !0
- }), !1),
- g = (a.on("mousedown", ".s", function (t) {
- c = t.pageY, p = a.height(), m = !0
- }), !1),
- v = (a.on("mousedown", ".w", function (t) {
- s = t.pageX, l = a.width(), g = !0, d = f.offset().left
- }), !1),
- b = (a.on("mousedown", ".n", function (t) {
- c = t.pageY, p = a.height(), v = !0, u = f.offset().top
- }), !1),
- I = (a.on("mousedown", ".ne", function (t) {
- s = t.pageX, c = t.pageY, l = a.width(), p = a.height(), b = !0, u = f.offset().top
- }), !1),
- A = (a.on("mousedown", ".nw", function (t) {
- s = t.pageX, c = t.pageY, l = a.width(), p = a.height(), u = f.offset().top, d = f.offset().left, I = !0
- }), !1),
- _ = (a.on("mousedown", ".se", function (t) {
- s = t.pageX, c = t.pageY, l = a.width(), p = a.height(), A = !0
- }), !1),
- y = (a.on("mousedown", ".sw", function (t) {
- s = t.pageX, c = t.pageY, l = a.width(), p = a.height(), _ = !0, d = f.offset().left
- }), !1),
- x = (a.on("mousedown", ".r", function (t) {
- s = t.pageX, c = t.pageY, l = a.width(), p = a.height(), y = !0, d = l / 2 + f.offset().left, u = p / 2 + f.offset().top
- }), a.on("dblclick", ".r", function (t) {
- f.css({
- transform: "rotate(0deg)"
- }), o.options.onResize(t, void 0, void 0, void 0, void 0, 0)
- }), !1);
- a.on("mousedown", function (t) {
- o.options.onBeforeResize(), s = t.pageX, c = t.pageY, u = f.offset().top, d = f.offset().left, x = !1
- }), w(o.options.stage).on("mousemove", function (t) {
- var e, i, n, r;
- h ? (n = (t.pageX - s) / o.options.getScale(), a.css({
- width: "100%"
- }), f.css({
- width: o.numHandlerText(l + n)
- }), o.options.onResize(t, void 0, o.numHandler(l + n), void 0, void 0)) : m ? (r = (t.pageY - c) / o.options.getScale(), a.css({
- height: "100%"
- }), f.css({
- height: o.numHandlerText(p + r)
- }), o.options.onResize(t, o.numHandler(p + r), void 0, void 0, void 0)) : y ? (a.css({
- height: "100%"
- }), i = t.pageX, t.pageY, i = 360 * (i - s) / 100, s = t.pageX, i = (f[0].style.transform && parseInt(f[0].style.transform.slice(7, -1)) || 0) + i, 360 < Math.abs(i) && (i %= 360), f.css({
- transform: "rotate(" + i + "deg)"
- }), o.options.onResize(t, void 0, void 0, void 0, void 0, i)) : g ? (n = (t.pageX - s) / o.options.getScale(), a.css({
- width: "100%"
- }), f.css({
- width: o.numHandlerText(l - n),
- left: o.numHandlerText(o.options.noDrag ? void 0 : o.numHandler(d + n))
- }), o.options.onResize(t, void 0, o.numHandler(l - n), void 0, o.options.noDrag ? void 0 : o.numHandler(d + n))) : v ? (r = (t.pageY - c) / o.options.getScale(), a.css({
- height: "100%"
- }), f.css({
- height: o.numHandlerText(p - r),
- top: o.numHandlerText(o.options.noDrag ? void 0 : u + r)
- }), o.options.onResize(t, o.numHandler(p - r), void 0, o.options.noDrag ? void 0 : o.numHandler(u + r), void 0)) : b ? (n = (t.pageX - s) / o.options.getScale(), r = (t.pageY - c) / o.options.getScale(), a.css({
- height: "100%",
- width: "100%"
- }), f.css({
- height: o.numHandlerText(p - r),
- top: o.numHandlerText(o.options.noDrag ? void 0 : u + r),
- width: o.numHandlerText(l + n)
- }), o.options.onResize(t, o.numHandler(p - r), o.numHandler(l + n), o.options.noDrag ? void 0 : o.numHandler(u + r), void 0)) : I ? (n = (t.pageX - s) / o.options.getScale(), r = (t.pageY - c) / o.options.getScale(), a.css({
- height: "100%",
- width: "100%"
- }), f.css({
- height: o.numHandlerText(p - r),
- top: o.numHandlerText(o.options.noDrag ? void 0 : u + r),
- width: o.numHandlerText(l - n),
- left: o.numHandlerText(o.options.noDrag ? void 0 : d + n)
- }), o.options.onResize(t, o.numHandler(p - r), o.numHandler(l - n), o.options.noDrag ? void 0 : o.numHandler(u + r), o.options.noDrag ? void 0 : o.numHandler(d + n))) : A ? (n = (t.pageX - s) / o.options.getScale(), r = (t.pageY - c) / o.options.getScale(), a.css({
- width: "100%",
- height: "100%"
- }), t.shiftKey ? (f.css({
- width: o.numHandlerText(l + n),
- height: o.numHandlerText(p + r)
- }), o.options.onResize(t, o.numHandler(p + r), o.numHandler(l + n), void 0, void 0)) : (i = p + r, i = (e = l + n) * (p / l), f.css({
- width: o.numHandlerText(e),
- height: o.numHandlerText(i)
- }), o.options.onResize(t, o.numHandler(i), o.numHandler(e), void 0, void 0))) : _ ? (n = (t.pageX - s) / o.options.getScale(), r = (t.pageY - c) / o.options.getScale(), a.css({
- width: "100%",
- height: "100%"
- }), f.css({
- width: o.numHandlerText(l - n),
- left: o.numHandlerText(o.options.noDrag ? void 0 : d + n),
- height: o.numHandlerText(p + r)
- }), o.options.onResize(t, o.numHandler(p + r), o.numHandler(l - n), o.numHandler(otundefinedop), o.options.noDrag ? void 0 : o.numHandler(d + n))) : x && (n = (t.pageX - s) / o.options.getScale(), r = (t.pageY - c) / o.options.getScale(), f.css({
- left: o.numHandlerText(o.options.noDrag ? void 0 : d + n),
- top: o.numHandlerText(o.options.noDrag ? void 0 : u + r)
- }), o.options.onResize(t, void 0, void 0, o.options.noDrag ? void 0 : o.numHandler(u + r), o.options.noDrag ? void 0 : o.numHandler(d + n)))
- }).on("mouseup", function (t) {
- (h || m || g || v || b || I || _ || A || x || y) && o.options.onStopResize(y), y = x = A = _ = I = b = v = g = m = h = !1
- })
- },
- bindTrigger: function (e) {
- var i = this;
- e.on("click", function (t) {
- t.stopPropagation(), i.triggerResize(e, t), w(".mouseRect").remove()
- })
- },
- bindHidePanel: function (t) {
- var e;
- m.maxPanelIndex < 2 && (e = this.options.stage, w(e).bind("click", function (t) {
- t.target.className && "string" == _typeof(t.target.className) && t.target.className.includes("design") && (t.stopPropagation(), w("div[panelindex]").css({
- display: "none"
- }), w("div[panelindex]").removeClass("selected"))
- }))
- }
- }, w.fn.extend({
- hireizeable: function (e) {
- return this.each(function () {
- var t = w.data(this, "hireizeable"),
- t = t ? w.extend({}, t.options, e || {}) : w.extend({}, w.fn.hireizeable.defaults, e || {});
- w.data(this, "hireizeable", {
- options: t
- }), new i({
- target: this,
- onResize: function (t, e, i, n, r) { },
- onStopResize: function (t, e, i, n, r) { }
- })
- })
- }
- }), w.fn.hireizeable.defaults = {
- stage: document,
- reizeUnit: "pt",
- minResize: 1.5,
- showSizeBox: !0,
- showPoints: ["s", "e"],
- noContainer: !1,
- onBeforeResize: function (t, e, i, n, r) { },
- onResize: function (t, e, i, n, r) { },
- onStopResize: function (t, e, i, n, r) { },
- noDrag: !1
- }
- }, function (t, e) {
- var r = "connected",
- i = "reconnecting";
- window.hiwebSocket = {
- opened: !1,
- name: "webSockets",
- host: "http://localhost:17521",
- token: null,
- reconnectTimeout: 6e4,
- reconnectWindowSetTimeout: null,
- reconnectDelay: 2e3,
- supportsKeepAlive: function () {
- return !0
- },
- hasIo: function (t) {
- return window.io
- },
- send: function (t) {
- try {
- this.socket.emit("news", t)
- } catch (t) { }
- },
- getPrinterList: function () {
- return this.printerList
- },
- refreshPrinterList: function () {
- try {
- this.socket.emit("refreshPrinterList")
- } catch (t) { }
- },
- getClients: function () {
- try {
- this.socket.emit("getClients")
- } catch (t) { }
- },
- getAddress: function (t) {
- try {
- for (var e, i = arguments.length, n = new Array(1 < i ? i - 1 : 0), r = 1; r < i; r++) n[r - 1] = arguments[r];
- (e = this.socket).emit.apply(e, ["address", t].concat(n))
- } catch (t) { }
- },
- ippPrint: function (t) {
- try {
- this.socket.emit("ippPrint", t)
- } catch (t) { }
- },
- ippRequest: function (t) {
- try {
- this.socket.emit("ippRequest", t)
- } catch (t) { }
- },
- setHost: function (t, e, i) {
- "function" == typeof e && (i = e, e = void 0), this.host = t, this.token = e, this.stop(), this.start(i)
- },
- start: function (e) {
- var i = this,
- n = this;
- window.WebSocket && !this.socket && (this.socket = window.io(this.host, {
- transports: ["websocket"],
- reconnectionAttempts: 5,
- auth: {
- token: this.token
- }
- }), this.socket.on("connect", function (t) {
- n.opened = !0, i.socket.on("successs", function (t) {
- hinnn.event.trigger("printSuccess_" + t.templateId, t)
- }), i.socket.on("error", function (t) {
- hinnn.event.trigger("printError_" + t.templateId, t)
- }), i.socket.on("clients", function (t) {
- n.clients = t, hinnn.event.trigger("clients", t)
- }), i.socket.on("clientInfo", function (t) {
- n.clientInfo = t, hinnn.event.trigger("clientInfo", t)
- }), i.socket.on("printerList", function (t) {
- n.printerList = t, hinnn.event.trigger("printerList", t)
- }), i.socket.on("address", function (t, e, i) {
- hinnn.event.trigger("address_" + t, {
- addr: e,
- e: i
- })
- }), i.socket.on("ippPrinterConnected", function (t) {
- hinnn.event.trigger("ippPrinterConnected", t)
- }), i.socket.on("ippPrinterCallback", function (t, e) {
- hinnn.event.trigger("ippPrinterCallback", {
- err: t,
- res: e
- })
- }), i.socket.on("ippRequestCallback", function (t, e) {
- hinnn.event.trigger("ippRequestCallback", {
- err: t,
- res: e
- })
- }), n.state = r, e && e(!0, t)
- }), this.socket.on("connect_error", function (t) {
- hinnn.event.trigger("connect_error", t)
- }), this.socket.on("disconnect", function () {
- n.opened = !1, e && e(!1)
- })), e && e(!1)
- },
- reconnect: function () {
- this.state !== r && this.state !== i || (this.stop(), this.ensureReconnectingState() && this.start())
- },
- stop: function () {
- this.socket && (this.socket.close(), this.socket = null, this.printerList = [])
- },
- ensureReconnectingState: function () {
- return this.state = i, this.state === i
- }
- }
- }, function (t, e, i) {
- var n = i(28);
- "string" == typeof n && (n = [
- [t.i, n, ""]
- ]);
- i(30)(n, {
- hmr: !0,
- transform: void 0,
- insertInto: void 0
- }), n.locals && (t.exports = n.locals)
- }, function (t, e, i) {
- (t.exports = i(29)(!1)).push([t.i, ".hicontextmenu {\r\n\tposition: absolute;\r\n\tdisplay: inline-block;\r\n\twidth: 215px;\r\n\tpadding: 0 0;\r\n\tmargin: 0;\r\n\tfont-family: inherit;\r\n\tfont-size: inherit;\r\n\tlist-style-type: none;\r\n\tlist-style: none;\r\n\tbackground: #fff;\r\n\tborder: 1px solid #bebebe;\r\n\tborder-radius: 2px;\r\n\tfont-size: 13px;\r\n}\r\n\r\n.hicontextmenuroot .hicontextmenuitem {\r\n\tposition: relative;\r\n\t-webkit-box-sizing: content-box;\r\n\t-moz-box-sizing: content-box;\r\n\tbox-sizing: content-box;\r\n\tpadding: .2em 12px;\r\n\tcolor: #2f2f2f;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\ttext-decoration: none;\r\n\r\n\tuser-select: none;\r\n\tbackground-color: #fff;\r\n\r\n}\r\n\r\n.hicontextmenuroot>.hicontextmenuitem:hover,\r\n.hicontextmenuroot .hicontextmenuitem > a:hover {\r\n\tbackground-color: #f3f3f3;\r\n}\r\n\r\n.hicontextmenuroot .hicontextmenuitem>a {\r\n\ttext-decoration: none;\r\n\tcolor: #363636;\r\n\tline-height: 22px;\r\n\r\n}\r\n\r\n.hicontextmenuroot .hicontextsubmenu>ul {\r\n\tdisplay: none;\r\n\tposition: absolute;\r\n\r\n}\r\n\r\n.hicontextmenuroot .hicontextsubmenu:hover>ul {\r\n\tdisplay: block;\r\n\tleft: 100%;\r\n\ttop: -1px;\r\n\tmargin-left: 0px;\r\n}\r\n\r\n.hicontextmenuroot .borderBottom {\r\n\tborder-bottom: 1px solid #efe6e6;\r\n}\r\n\r\n.hicontextmenuroot .disable> a {\r\n \r\n color: #ccc;\r\n \r\n}\r\n.hicontextmenuroot>.disable:hover,\r\n.hicontextmenuroot .disable> a:hover {\r\n\tbackground-color:#fff;\r\n}", ""])
- }, function (t, e, i) {
- t.exports = function (a) {
- var o = [];
- return o.toString = function () {
- return this.map(function (t) {
- i = t[1] || "";
- var e, i, n, r = (n = t[3]) ? (a && "function" == typeof btoa ? (e = "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(n)))) + " */", r = n.sources.map(function (t) {
- return "/*# sourceURL=" + n.sourceRoot + t + " */"
- }), [i].concat(r).concat([e])) : [i]).join("\n") : i;
- return t[2] ? "@media " + t[2] + "{" + r + "}" : r
- }).join("")
- }, o.i = function (t, e) {
- "string" == typeof t && (t = [
- [null, t, ""]
- ]);
- for (var i = {}, n = 0; n < this.length; n++) {
- var r = this[n][0];
- null != r && (i[r] = !0)
- }
- for (n = 0; n < t.length; n++) {
- var a = t[n];
- null != a[0] && i[a[0]] || (e && !a[2] ? a[2] = e : e && (a[2] = "(" + a[2] + ") and (" + e + ")"), o.push(a))
- }
- }, o
- }
- }, function (t, e, n) {
- var i, r, a, c = {},
- o = (i = function () {
- return window && document && document.all && !window.atob
- }, a = {}, function (t, e) {
- if ("function" == typeof t) return t();
- if (void 0 === a[t]) {
- e = function (t, e) {
- return (e || document).querySelector(t)
- }.call(this, t, e);
- if (window.HTMLIFrameElement && _instanceof(e, window.HTMLIFrameElement)) try {
- e = e.contentDocument.head
- } catch (t) {
- e = null
- }
- a[t] = e
- }
- return a[t]
- }),
- s = null,
- l = 0,
- p = [],
- d = n(31);
-
- function u(t, e) {
- for (var i = 0; i < t.length; i++) {
- var n = t[i],
- r = c[n.id];
- if (r) {
- r.refs++;
- for (var a = 0; a < r.parts.length; a++) r.parts[a](n.parts[a]);
- for (; a < n.parts.length; a++) r.parts.push(b(n.parts[a], e))
- } else {
- for (var o = [], a = 0; a < n.parts.length; a++) o.push(b(n.parts[a], e));
- c[n.id] = {
- id: n.id,
- refs: 1,
- parts: o
- }
- }
- }
- }
-
- function f(t, e) {
- for (var i = [], n = {}, r = 0; r < t.length; r++) {
- var a = t[r],
- o = e.base ? a[0] + e.base : a[0],
- a = {
- css: a[1],
- media: a[2],
- sourceMap: a[3]
- };
- n[o] ? n[o].parts.push(a) : i.push(n[o] = {
- id: o,
- parts: [a]
- })
- }
- return i
- }
-
- function h(t, e) {
- var i = o(t.insertInto);
- if (!i) throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
- var n = p[p.length - 1];
- if ("top" === t.insertAt) n ? n.nextSibling ? i.insertBefore(e, n.nextSibling) : i.appendChild(e) : i.insertBefore(e, i.firstChild), p.push(e);
- else if ("bottom" === t.insertAt) i.appendChild(e);
- else {
- if ("object" != _typeof(t.insertAt) || !t.insertAt.before) throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
- n = o(t.insertAt.before, i);
- i.insertBefore(e, n)
- }
- }
-
- function m(t) {
- null !== t.parentNode && (t.parentNode.removeChild(t), 0 <= (t = p.indexOf(t))) && p.splice(t, 1)
- }
-
- function g(t) {
- var e, i = document.createElement("style");
- return void 0 === t.attrs.type && (t.attrs.type = "text/css"), void 0 === t.attrs.nonce && (e = n.nc) && (t.attrs.nonce = e), v(i, t.attrs), h(t, i), i
- }
-
- function v(e, i) {
- Object.keys(i).forEach(function (t) {
- e.setAttribute(t, i[t])
- })
- }
-
- function b(e, t) {
- var i, n, r, a, o;
- if (t.transform && e.css) {
- if (!(a = "function" == typeof t.transform ? t.transform(e.css) : t.transform.default(e.css))) return function () { };
- e.css = a
- }
- return r = t.singleton ? (a = l++, i = s = s || g(t), n = _.bind(null, i, a, !1), _.bind(null, i, a, !0)) : e.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (a = t, o = document.createElement("link"), void 0 === a.attrs.type && (a.attrs.type = "text/css"), a.attrs.rel = "stylesheet", v(o, a.attrs), h(a, o), i = o, n = function (t, e, i) {
- var n = i.css,
- i = i.sourceMap,
- r = void 0 === e.convertToAbsoluteUrls && i,
- e = ((e.convertToAbsoluteUrls || r) && (n = d(n)), i && (n += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */"), new Blob([n], {
- type: "text/css"
- })),
- r = t.href;
- t.href = URL.createObjectURL(e), r && URL.revokeObjectURL(r)
- }.bind(null, i, t), function () {
- m(i), i.href && URL.revokeObjectURL(i.href)
- }) : (i = g(t), n = function (t, e) {
- var i = e.css,
- e = e.media;
- if (e && t.setAttribute("media", e), t.styleSheet) t.styleSheet.cssText = i;
- else {
- for (; t.firstChild;) t.removeChild(t.firstChild);
- t.appendChild(document.createTextNode(i))
- }
- }.bind(null, i), function () {
- m(i)
- }), n(e),
- function (t) {
- t ? t.css === e.css && t.media === e.media && t.sourceMap === e.sourceMap || n(e = t) : r()
- }
- }
- t.exports = function (t, o) {
- if ("undefined" != typeof DEBUG && DEBUG && "object" != ("undefined" == typeof document ? "undefined" : _typeof(document))) throw new Error("The style-loader cannot be used in a non-browser environment");
- (o = o || {}).attrs = "object" == _typeof(o.attrs) ? o.attrs : {}, o.singleton || "boolean" == typeof o.singleton || (o.singleton = function () {
- return r = void 0 === r ? i.apply(this, arguments) : r
- }()), o.insertInto || (o.insertInto = "head"), o.insertAt || (o.insertAt = "bottom");
- var s = f(t, o);
- return u(s, o),
- function (t) {
- for (var e, i = [], n = 0; n < s.length; n++) {
- var r = s[n];
- (e = c[r.id]).refs--, i.push(e)
- }
- for (t && u(f(t, o), o), n = 0; n < i.length; n++)
- if (0 === (e = i[n]).refs) {
- for (var a = 0; a < e.parts.length; a++) e.parts[a]();
- delete c[e.id]
- }
- }
- };
- I = [];
- var I, A = function (t, e) {
- return I[t] = e, I.filter(Boolean).join("\n")
- };
-
- function _(t, e, i, n) {
- var i = i ? "" : n.css;
- t.styleSheet ? t.styleSheet.cssText = A(e, i) : (n = document.createTextNode(i), (i = t.childNodes)[e] && t.removeChild(i[e]), i.length ? t.insertBefore(n, i[e]) : t.appendChild(n))
- }
- }, function (t, e) {
- t.exports = function (t) {
- var i, n, e = "undefined" != typeof window && window.location;
- if (e) return t && "string" == typeof t ? (i = e.protocol + "//" + e.host, n = i + e.pathname.replace(/\/[^\/]*$/, "/"), t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function (t, e) {
- e = e.trim().replace(/^"(.*)"$/, function (t, e) {
- return e
- }).replace(/^'(.*)'$/, function (t, e) {
- return e
- });
- return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(e) ? t : (t = 0 === e.indexOf("//") ? e : 0 === e.indexOf("/") ? i + e : n + e.replace(/^\.\//, ""), "url(" + JSON.stringify(t) + ")")
- })) : t;
- throw new Error("fixUrls requires window.location")
- }
- }, function (t, e) {
- var i, n;
- window, document, i = jQuery, (n = function (t, e) {
- this.init(t, e)
- }).prototype = {
- init: function (t, e) {
- this.ele = t, this.defaults = {
- menu: [{
- text: "text",
- menus: [{}, {}],
- callback: function () { }
- }],
- target: function (t) { },
- width: 100,
- itemHeight: 28,
- bgColor: "#fff",
- color: "#333",
- fontSize: 14,
- hoverBgColor: "#f5f5f5"
- }, this.opts = i.extend(!0, {}, this.defaults, e), this.random = (new Date).getTime() + parseInt(1e3 * Math.random()), this.eventBind()
- },
- renderMenu: function (t, e) {
- var r, a = this,
- i = e;
- t && t.length && (r = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
'), i || (i = r).addClass("hicontextmenuroot"), jquery__WEBPACK_IMPORTED_MODULE_60___default.a.each(t, function (t, e) {
- var i = !!e.disable && e.disable(),
- n = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
")))
- }
- }, t.prototype.createTarget = function (t, e) {
- var i = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
');
- return this.initQrcode(i, t, e), i
- }, t.prototype.getHtml = function (t, e, i) {
- return this.getHtml2(t, e, i)
- }, t
- }(f.a),
- W = function () {
- function t() { }
- return t.createPrintElement = function (t, e) {
- return "text" == t.type ? new D(t, e) : "image" == t.type ? new v(t, e) : "longText" == t.type ? new w(t, e) : "table" == t.type ? new d.a(t, e) : "html" == t.type ? new S(t, e) : "vline" == t.type ? new F(t, e) : "hline" == t.type ? new A(t, e) : "rect" == t.type ? new k(t, e) : "oval" == t.type ? new V(t, e) : "barcode" == t.type ? new barcode(t, e) : "qrcode" == t.type ? new qrcode(t, e) : void 0
- }, t
- }(),
- j = function () {
- function t(t) {
- this.field = t.field, this.fields = t.fields, this.title = t.title, this.text = t.text, this.tid = t.tid, this.data = t.data, this.styler = t.styler, this.formatter = t.formatter, this.type = t.type, this.onRendered = t.onRendered, this.options = t.options
- }
- return t.prototype.getText = function (t) {
- return t ? this.title || this.text || "" : this.text || this.title || ""
- }, t.prototype.getData = function () {
- return this.data
- }, t.prototype.createPrintElement = function (t) {
- var e = {};
- return jquery__WEBPACK_IMPORTED_MODULE_60___default.a.extend(e, t || {}), W.createPrintElement(this, e)
- }, t.prototype.getPrintElementTypeEntity = function () {
- return new c({
- title: this.title,
- type: this.type
- })
- }, t.prototype.getFields = function () {
- return this.fields
- }, t.prototype.getOptions = function () {
- return this.options || {}
- }, t
- }(),
- U = n(16),
- K = n(12),
- G = function () {
- var n = function (t, e) {
- return (n = Object.setPrototypeOf || (_instanceof({
- __proto__: []
- }, Array) ? function (t, e) {
- t.__proto__ = e
- } : function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- }))(t, e)
- };
- return function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e), t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype, new i)
- }
- }(),
- q = function (i) {
- function t(t) {
- var e = i.call(this, t) || this;
- return (t = t || {}).columns ? (e.columns = [], t.columns.forEach(function (t) {
- e.columns.push(new K.a(t))
- })) : e.columns = [new K.a({
- columns: [new u.a({
- width: 100
- }), new u.a({
- width: 100
- })]
- })], e.lHeight = t.lHeight, e.autoCompletion = t.autoCompletion, e.tableFooterRepeat = t.tableFooterRepeat, e
- }
- return G(t, i), t.prototype.getPrintElementOptionEntity = function () {
- var e = i.prototype.getPrintElementOptionEntity.call(this);
- return e.fields = this.fields, e.columns = [], this.columns.forEach(function (t) {
- e.columns.push(t.getPrintElementOptionEntity())
- }), e
- }, t
- }(g.a),
- Q = function () {
- var n = function (t, e) {
- return (n = Object.setPrototypeOf || (_instanceof({
- __proto__: []
- }, Array) ? function (t, e) {
- t.__proto__ = e
- } : function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- }))(t, e)
- };
- return function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e), t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype, new i)
- }
- }(),
- tt = function () {
- var n = function (t, e) {
- return (n = Object.setPrototypeOf || (_instanceof({
- __proto__: []
- }, Array) ? function (t, e) {
- t.__proto__ = e
- } : function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- }))(t, e)
- };
- return function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e), t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype, new i)
- }
- }(),
- et = function (e) {
- function t(t) {
- return e.call(this, t) || this
- }
- return tt(t, e), t.prototype.createPrintElement = function (t) {
- var e = {};
- return jquery__WEBPACK_IMPORTED_MODULE_60___default.a.extend(e, t || {}), W.createPrintElement(this, e)
- }, t.prototype.getPrintElementTypeEntity = function () {
- return new c({
- title: this.title,
- type: this.type
- })
- }, t
- }(j),
- nt = function () {
- function t() { }
- return t.createPrintElementType = function (t) {
- return t.type = t.type || "text", new ("text" == t.type ? et : "table" == t.type ? h : j)(t)
- }, t
- }(),
- it = function () {
- function i() { }
- return i.getElementTypeGroups = function (t) {
- t = i.formatterModule(t);
- return a.instance[t] || []
- }, i.getElementType = function (t, e) {
- if (t) return a.instance.getElementType(t);
- nt.createPrintElementType({
- type: e
- })
- }, i.build = function (t, e) {
- e = i.formatterModule(e), t = (new l).createPrintElementTypeHtml(t, this.getElementTypeGroups(e));
- this.enableDrag(t)
- }, i.buildByHtml = function (t) {
- this.enableDrag(t)
- }, i.enableDrag = function (t) {
- t.hidraggable({
- revert: !0,
- proxy: function (t) {
- var e = s.a.instance.getDragingPrintElement(),
- e = e.printElement.getProxyTarget(e.printElement.printElementType.getOptions());
- return e.appendTo("body"), e.css("z-index", "9999"), e
- },
- moveUnit: "pt",
- minMove: 4,
- onBeforeDrag: function (t) {
- s.a.instance.draging = !0;
- var e = jquery__WEBPACK_IMPORTED_MODULE_60___default()(t.data.target).attr("tid"),
- t = i.getElementType(e, jquery__WEBPACK_IMPORTED_MODULE_60___default()(t.data.target).attr("ptype"));
- if (!t) throw new Error("".concat(i18n.__("请检查 hiprint.init 的 provider 是否配置了"), " [").concat(e, "]"));
- e = t.createPrintElement();
- if (e || "tableCustom" != t.type) return s.a.instance.setDragingPrintElement(e), !0;
- throw new Error("".concat(i18n.__("已移除'tableCustom',请替换使用'table'详情见更新记录")))
- },
- onDrag: function (t, e, i) {
- s.a.instance.getDragingPrintElement().updatePosition(e, i)
- },
- onStopDrag: function (t) {
- s.a.instance.draging = !1
- }
- })
- }, i.formatterModule = function (t) {
- return t || "_default"
- }, i
- }(),
- ot = function (t, e) {
- var i = this;
- this.name = t, this.printElementTypes = [], e.forEach(function (t) {
- i.printElementTypes.push(nt.createPrintElementType(t))
- })
- },
- rt = function (t) {
- var e;
- this.index = t.index, this.name = t.name, this.paperType = t.paperType, !this.paperType || (e = s.a.instance[this.paperType], t.height) ? (this.height = t.height, this.width = t.width) : (this.height = e.height, this.width = e.width), this.paperHeader = t.paperHeader || 0, this.paperFooter = t.paperFooter || o.a.mm.toPt(this.height), this.printElements = t.printElements || [], this.paperNumberLeft = t.paperNumberLeft, this.paperNumberTop = t.paperNumberTop, this.paperNumberDisabled = t.paperNumberDisabled, this.paperNumberContinue = t.paperNumberContinue, this.paperNumberFormat = t.paperNumberFormat, this.panelPaperRule = t.panelPaperRule, this.panelPageRule = t.panelPageRule, this.rotate = t.rotate || void 0, this.firstPaperFooter = t.firstPaperFooter, this.evenPaperFooter = t.evenPaperFooter, this.oddPaperFooter = t.oddPaperFooter, this.lastPaperFooter = t.lastPaperFooter, this.topOffset = t.topOffset, this.fontFamily = t.fontFamily, this.leftOffset = t.leftOffset, this.orient = t.orient, this.scale = t.scale, this.watermarkOptions = t.watermarkOptions
- },
- at = function () {
- function t(t, e, i, n) {
- this.bx = t, this.by = e, this.ex = t, this.ey = e, this.startX = this.minX = t, this.startY = this.minY = e, this.maxX = t, this.maxY = e, this.lastLeft = i, this.lastTop = n
- }
- return t.prototype.updateRect = function (t, e) {
- this.ex = t, this.ey = e, this.minX = this.startX < t ? this.startX : t, this.minY = this.startY < e ? this.startY : e, this.maxX = this.startX < t ? t : this.startX, this.maxY = this.startY < e ? e : this.startY
- }, t.prototype.updatePositionByMultipleSelect = function (t, e) {
- null != t && (this.lastLeft = this.lastLeft + t), null != e && (this.lastTop = this.lastTop + e), this.target.css({
- left: this.lastLeft + "pt",
- top: this.lastTop + "pt"
- })
- }, t
- }(),
- pt = function () {
- function t(t, e) {
- this.templateId = e, this.index = t.index, this.name = t.name, this.width = t.width, this.height = t.height, this.paperType = t.paperType, this.paperHeader = t.paperHeader, this.paperFooter = t.paperFooter, this.initPrintElements(t.printElements), this.paperNumberLeft = t.paperNumberLeft, this.paperNumberTop = t.paperNumberTop, this.paperNumberDisabled = t.paperNumberDisabled, this.paperNumberContinue = null == t.paperNumberContinue || t.paperNumberContinue, this.paperNumberFormat = t.paperNumberFormat, this.panelPaperRule = t.panelPaperRule, this.panelPageRule = t.panelPageRule, this.firstPaperFooter = t.firstPaperFooter, this.evenPaperFooter = t.evenPaperFooter, this.oddPaperFooter = t.oddPaperFooter, this.lastPaperFooter = t.lastPaperFooter, this.topOffset = t.topOffset, this.leftOffset = t.leftOffset, this.fontFamily = t.fontFamily, this.orient = t.orient, this.target = this.createTarget(), this.rotate = t.rotate, this.scale = t.scale, this.watermarkOptions = t.watermarkOptions || {}
- }
- return t.prototype.design = function (e) {
- var i = this;
- this.orderPrintElements(), this.designPaper = this.createNewPage(0), this.target.html(""), this.target.append(this.designPaper.getTarget()), this.droppablePaper(this.designPaper), this.designPaper.design(e), this.designPaper.subscribePaperBaseInfoChanged(function (t) {
- i.paperHeader = t.paperHeader, i.paperFooter = t.paperFooter, i.paperNumberLeft = t.paperNumberLeft, i.paperNumberTop = t.paperNumberTop, i.paperNumberDisabled = t.paperNumberDisabled, i.paperNumberFormat = t.paperNumberFormat
- }), this.printElements.forEach(function (t) {
- i.appendDesignPrintElement(i.designPaper, t), t.design(e, i.designPaper)
- }), this.target.bind("click.hiprint", function (t) {
- var e = {
- panelPaperRule: i.panelPaperRule,
- panelPageRule: i.panelPageRule,
- firstPaperFooter: i.firstPaperFooter,
- evenPaperFooter: i.evenPaperFooter,
- oddPaperFooter: i.oddPaperFooter,
- lastPaperFooter: i.lastPaperFooter,
- leftOffset: i.leftOffset,
- topOffset: i.topOffset,
- fontFamily: i.fontFamily,
- orient: i.orient,
- paperNumberDisabled: i.paperNumberDisabled,
- paperNumberContinue: i.paperNumberContinue,
- paperNumberFormat: i.paperNumberFormat,
- watermarkOptions: i.watermarkOptions || {}
- };
- p.a.instance.paperNumberContinue || delete e.paperNumberContinue, o.a.event.trigger("BuildCustomOptionSettingEventKey_" + i.templateId, {
- options: e,
- callback: function (t) {
- i.watermarkOptions = t.watermarkOptions || void 0, t.watermarkOptions && i.designPaper.createWaterMark(!0, 1, t.watermarkOptions), i.panelPaperRule = t.panelPaperRule, i.panelPageRule = t.panelPageRule, i.firstPaperFooter = t.firstPaperFooter, i.evenPaperFooter = t.evenPaperFooter, i.oddPaperFooter = t.oddPaperFooter, i.lastPaperFooter = t.lastPaperFooter, i.leftOffset = t.leftOffset, i.topOffset = t.topOffset, i.fontFamily = t.fontFamily, i.orient = t.orient, i.paperNumberDisabled = i.designPaper.paperNumberDisabled = !!t.paperNumberDisabled || void 0, i.paperNumberContinue = i.designPaper.paperNumberContinue = t.paperNumberContinue, i.paperNumberFormat = t.paperNumberFormat, i.designPaper.paperNumberFormat = t.paperNumberFormat, t.paperNumberFormat && (i.designPaper.paperNumberTarget = i.designPaper.createPaperNumber(i.designPaper.formatPaperNumber(1, 1), !0)), i.designPaper.setOffset(i.leftOffset, i.topOffset), i.css(i.target), i.designPaper.resetPaperNumber(i.designPaper.paperNumberTarget), i.designPaper.triggerOnPaperBaseInfoChanged()
- }
- })
- }), this.bindShortcutKeyEvent(), this.bingPasteEvent(), this.bindBatchMoveElement()
- }, t.prototype.update = function (e) {
- try {
- Date.now();
- var i = this;
- this.index = e.index, this.name = e.name, this.width = e.width, this.height = e.height, this.paperType = e.paperType, this.paperHeader = e.paperHeader, this.paperFooter = e.paperFooter, this.designPaper.width = o.a.mm.toPt(e.width), this.designPaper.height = o.a.mm.toPt(this.height), this.designPaper.paperType = this.paperType, this.designPaper.paperHeader = this.paperHeader, this.designPaper.paperFooter = this.paperFooter, this.designPaper.mmheight = e.height, this.designPaper.mmwidth = e.width, this.designPaper.headerLinetarget.css("top", (this.paperHeader || -1) + "pt"), 0 == this.paperHeader && this.designPaper.headerLinetarget.addClass("hideheaderLinetarget"), this.designPaper.footerLinetarget.css("top", parseInt(this.paperFooter.toString()) + "pt"), this.paperFooter == this.height && this.designPaper.footerLinetarget.css("top", e.height - p.a.instance.paperHeightTrim + "mm"), this.watermarkOptions = e.watermarkOptions || {}, this.designPaper.createWaterMark(!0, this.index, this.watermarkOptions), this.paperNumberLeft = e.paperNumberLeft, this.paperNumberTop = e.paperNumberTop, this.paperNumberDisabled = e.paperNumberDisabled, this.paperNumberContinue = e.paperNumberContinue, this.paperNumberFormat = e.paperNumberFormat, this.designPaper.paperNumberLeft = this.paperNumberLeft, this.designPaper.paperNumberTop = this.paperNumberTop, this.designPaper.paperNumberDisabled = this.paperNumberDisabled, this.designPaper.paperNumberContinue = this.paperNumberContinue, this.designPaper.paperNumberFormat = this.paperNumberFormat, this.designPaper.paperNumberTarget.css("top", this.paperNumberTop + "pt").css("left", this.paperNumberLeft + "pt"), this.designPaper.resetPaperNumber(this.designPaper.paperNumberTarget), this.fontFamily = e.fontFamily, this.orient = e.orient, this.rotate = e.rotate, this.scale = e.scale, this.designPaper.fontFamily = this.fontFamily, this.designPaper.orient = this.orient, this.designPaper.scale = i.designPaper.scale || this.scale, this.panelPaperRule = e.panelPaperRule, this.panelPageRule = e.panelPageRule, this.firstPaperFooter = e.firstPaperFooter, this.evenPaperFooter = e.evenPaperFooter, this.oddPaperFooter = e.oddPaperFooter, this.lastPaperFooter = e.lastPaperFooter, this.topOffset = e.topOffset, this.leftOffset = e.leftOffset, this.designPaper.setFooter(this.firstPaperFooter, this.evenPaperFooter, this.oddPaperFooter, this.lastPaperFooter), this.designPaper.setOffset(this.leftOffset, this.topOffset), Date.now(), this.printElements.forEach(function (t) {
- t.designTarget && t.designTarget.length && t.designTarget.remove()
- }), this.printElements = [], Date.now(), this.initPrintElements(e.printElements), Date.now(), this.printElements.forEach(function (t) {
- i.appendDesignPrintElement(i.designPaper, t), t.design(e, i.designPaper)
- }), Date.now()
- } catch (i) { }
- }, t.prototype.bindShortcutKeyEvent = function () {
- var e = this;
- jquery__WEBPACK_IMPORTED_MODULE_60___default()(document).keydown(function (t) {
- "INPUT" != t.target.tagName && (t.ctrlKey || t.metaKey) && 90 == t.keyCode && (t.shiftKey ? o.a.event.trigger("hiprintTemplateDataShortcutKey_" + e.templateId, "redo") : o.a.event.trigger("hiprintTemplateDataShortcutKey_" + e.templateId, "undo"), t.preventDefault())
- })
- }, t.prototype.bingPasteEvent = function () {
- var e = this;
- e.designPaper.target.attr("tabindex", "1"), e.designPaper.target.keydown(function (t) {
- "INPUT" != t.target.tagName && (t.ctrlKey || t.metaKey) && 86 == t.keyCode && (e.pasteJson(t), t.preventDefault())
- })
- }, t.prototype.pasteJson = function (t) {
- var e = jquery__WEBPACK_IMPORTED_MODULE_60___default()("#copyArea");
- if (e.length) try {
- var i, n, r, a, s, c, l, p = e.text(),
- d = JSON.parse(p);
- (d.printElementType || d.templateId) && (i = this, n = d.options, r = i.getElementById(d.id)) && (a = r.clone(d)) && (c = !(s = t.currentTarget.className != t.target.className) && i.mouseOffsetX && o.a.px.toPt(i.mouseOffsetX) || (n.left += 10), l = !s && i.mouseOffsetY && o.a.px.toPt(i.mouseOffsetY) || (n.top += 10), a.options.setLeft(c), a.options.setTop(l), a.setTemplateId(i.templateId), a.setPanel(i), i.appendDesignPrintElement(i.designPaper, a, !1), i.printElements.push(a), a.design(void 0, i.designPaper), o.a.event.trigger("hiprintTemplateDataChanged_" + i.templateId, "复制"), a.designTarget.children(".resize-panel").trigger(jquery__WEBPACK_IMPORTED_MODULE_60___default.a.Event("click")))
- } catch (t) { }
- }, t.prototype.css = function (t) {
- this.fontFamily ? t.css("fontFamily", this.fontFamily) : t[0].style.fontFamily = ""
- }, t.prototype.getConfig = function () {
- return p.a.instance
- }, t.prototype.getHtml = function (e, i, r, t, n) {
- var a, o = this,
- s = (this.orderPrintElements(), o.getConfig()),
- c = r || [],
- l = t || this,
- p = void 0;
- return t ? (p = c[c.length - 1], a = p.getPanelTarget(), p.updateReferenceElement(new E.a({
- top: this.paperHeader,
- left: 0,
- height: 0,
- width: 0,
- bottomInLastPaper: p.referenceElement.bottomInLastPaper,
- beginPrintPaperIndex: c.length - 1,
- printTopInPaper: p.referenceElement.bottomInLastPaper,
- endPrintPaperIndex: c.length - 1
- }))) : (a = l.createTarget(), p = l.createNewPage(c.length), c.push(p), a.append(p.getTarget())), this.printElements.filter(function (t) {
- return !t.isFixed() && !t.isHeaderOrFooter()
- }).forEach(function (i) {
- var n = [],
- t = c[c.length - 1];
- p = t.referenceElement.isPositionLeftOrRight(i.options.getTop()) ? c[t.referenceElement.beginPrintPaperIndex] : c[t.referenceElement.endPrintPaperIndex], (n = i.getHtml(p, e)).forEach(function (t, e) {
- t.referenceElement && (t.referenceElement.endPrintPaperIndex = t.referenceElement.beginPrintPaperIndex + n.length - 1), 0 < e && (p.index < c.length - 1 ? p = c[p.index + 1] : (p = l.createNewPage(c.length, p.referenceElement), c.push(p)), a.append(p.getTarget())), t.target && ("none" != i.options.showInPage && p.append(t.target), p.updatePrintLine(t.printLine), i.onRendered(p, t.target)), e == n.length - 1 && t.referenceElement && p.updateReferenceElement(t.referenceElement)
- })
- }), n && n.templates.forEach(function (t, e) {
- var i = t.data || {},
- n = t.options || {};
- t.template.printPanels.forEach(function (t) {
- t.getHtml(i, n, r, o)
- })
- }), s.paperNumberContinue && (o.paperNumberContinue ? hinnn._paperList = [].concat(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.a)(hinnn._paperList || []), Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.a)(c)) : hinnn._paperList = Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.a)(c)), t || (this.lastPaperFooter && c[c.length - 1].printLine > this.lastPaperFooter && (p = l.createNewPage(c.length, p.referenceElement), c.push(p), a.append(p.getTarget())), this.panelPaperRule && ("odd" == this.panelPaperRule && c.length % 2 == 0 && (p = l.createNewPage(c.length, p.referenceElement), c.push(p), a.append(p.getTarget())), "even" == this.panelPaperRule) && c.length % 2 == 1 && (p = l.createNewPage(c.length, p.referenceElement), c.push(p), a.append(p.getTarget())), c.forEach(function (t) {
- t.updatePaperNumber(t.index + 1, c.length, i.paperNumberToggleInEven), o.fillPaperHeaderAndFooter(t, e, c.length), i && (null != i.leftOffset && t.setLeftOffset(i.leftOffset), null != i.topOffset) && t.setTopOffset(i.topOffset)
- }), a.prepend(this.getPrintStyle()), s.paperNumberContinue && hinnn._paperList.forEach(function (t, e) {
- t.updatePaperNumber(e + 1, hinnn._paperList.length)
- })), a
- }, t.prototype.resize = function (t, e, i, n) {
- this.width = e, this.height = i, this.paperType = t, this.rotate = n, this.designPaper.resize(e, i)
- }, t.prototype.rotatePaper = function () {
- null == this.rotate && (this.rotate = !1), this.rotate = !this.rotate, this.resize(this.paperType, this.height, this.width, this.rotate)
- }, t.prototype.zoom = function (t, e) {
- this.scale = e ? t : void 0, this.designPaper.zoom(t)
- }, t.prototype.getTarget = function () {
- return this.target
- }, t.prototype.enable = function () {
- this.target.removeClass("hipanel-disable")
- }, t.prototype.disable = function () {
- this.target.addClass("hipanel-disable")
- }, t.prototype.getPanelEntity = function (e) {
- var i = [];
- return this.printElements.forEach(function (t) {
- i.push(t.getPrintElementEntity(e))
- }), new rt({
- index: this.index,
- name: this.name || this.index + 1,
- width: this.width,
- height: this.height,
- paperType: this.paperType,
- paperHeader: this.paperHeader,
- paperFooter: this.paperFooter,
- paperNumberDisabled: !!this.paperNumberDisabled || void 0,
- paperNumberContinue: null == this.paperNumberContinue || this.paperNumberContinue,
- paperNumberFormat: this.paperNumberFormat || void 0,
- panelPaperRule: this.panelPaperRule || void 0,
- panelPageRule: this.panelPageRule || void 0,
- paperNumberLeft: this.paperNumberLeft,
- paperNumberTop: this.paperNumberTop,
- printElements: i,
- rotate: this.rotate,
- firstPaperFooter: this.firstPaperFooter,
- evenPaperFooter: this.evenPaperFooter,
- oddPaperFooter: this.oddPaperFooter,
- lastPaperFooter: this.lastPaperFooter,
- topOffset: this.topOffset,
- fontFamily: this.fontFamily,
- orient: this.orient,
- scale: this.scale,
- watermarkOptions: this.watermarkOptions || void 0,
- leftOffset: this.leftOffset
- })
- }, t.prototype.createTarget = function () {
- var t = jquery__WEBPACK_IMPORTED_MODULE_60___default()('');
- return this.css(t), t
- }, t.prototype.droppablePaper = function (c) {
- var l = this;
- c.getTarget().hidroppable({
- accept: ".ep-draggable-item",
- onDrop: function (t, e) {
- var i = s.a.instance.getDragingPrintElement(),
- n = i.printElement,
- r = l.designPaper.scale || 1,
- a = (i.left - o.a.px.toPt(l.target.children(".hiprint-printPaper").offset().left)) / r,
- i = (i.top - o.a.px.toPt(l.target.children(".hiprint-printPaper").offset().top)) / r;
- n.updateSizeAndPositionOptions(l.mathroundToporleft(a), l.mathroundToporleft(i)), n.setTemplateId(l.templateId), n.setPanel(l), l.appendDesignPrintElement(l.designPaper, n, !0), l.printElements.push(n), n.design(void 0, c), o.a.event.trigger("hiprintTemplateDataChanged_" + l.templateId, "新增")
- }
- })
- }, t.prototype.initPrintElements = function (t) {
- var i = this;
- this.printElements = [], t && t.forEach(function (t) {
- var e;
- (e = t.printElementType ? nt.createPrintElementType(t.printElementType) : a.instance.getElementType(t.tid)) && ((e = e.createPrintElement(t.options)).setTemplateId(i.templateId), e.setPanel(i), i.printElements.push(e))
- })
- }, t.prototype.mathroundToporleft = function (t) {
- var e = p.a.instance.movingDistance;
- return Math.round(t / e) * e
- }, t.prototype.appendDesignPrintElement = function (t, e, i, className) {
- e.setCurrenttemplateData(void 0);
- var n = e.getDesignTarget(t);
- const isAddClass = !!e.options.field
- n.addClass(`design ${isAddClass ? 'dynamicField' : ''}`), i && e.initSizeByHtml(n), t.append(n)
- }, t.prototype.createNewPage = function (t, e) {
- t = new T(this.templateId, this.index, this.watermarkOptions, this.panelPageRule, this.scale, this.width, this.height, this.paperHeader, this.paperFooter, this.paperNumberLeft, this.paperNumberTop, this.paperNumberDisabled, this.paperNumberContinue, this.paperNumberFormat, t, e);
- return t.setFooter(this.firstPaperFooter, this.evenPaperFooter, this.oddPaperFooter, this.lastPaperFooter), t.setOffset(this.leftOffset, this.topOffset), t
- }, t.prototype.orderPrintElements = function () {
- this.printElements = o.a.orderBy(this.printElements, function (t) {
- return t.options.getLeft()
- }), this.printElements = o.a.orderBy(this.printElements, function (t) {
- return t.options.getTop()
- })
- }, t.prototype.fillPaperHeaderAndFooter = function (e, i, n) {
- this.printElements.filter(function (t) {
- return t.isFixed() || t.isHeaderOrFooter()
- }).forEach(function (t) {
- t.isFixed(), t.showInPage(e.index, n) && (t = t.getHtml(e, i)).length && e.append(t[0].target)
- })
- }, t.prototype.clear = function () {
- this.printElements.forEach(function (t) {
- t.designTarget && t.designTarget.length && t.designTarget.remove()
- }), this.printElements = [], o.a.event.trigger("hiprintTemplateDataChanged_" + this.templateId, "清空")
- }, t.prototype.insertPrintElementToPanel = function (t) {
- var e = this.getPrintElementTypeByEntity(t);
- e && ((e = e.createPrintElement(t.options)).setTemplateId(this.templateId), e.setPanel(this), this.printElements.push(e))
- }, t.prototype.addPrintText = function (t) {
- t.printElementType = t.printElementType || {}, t.printElementType.type = "text", this.insertPrintElementToPanel(t)
- }, t.prototype.addPrintHtml = function (t) {
- t.printElementType = t.printElementType || {}, t.printElementType.type = "html", this.insertPrintElementToPanel(t)
- }, t.prototype.addPrintTable = function (t) {
- var e;
- t.printElementType = t.printElementType || {}, t.printElementType.type = "table", t.options && t.options.columns && (e = jquery__WEBPACK_IMPORTED_MODULE_60___default.a.extend({}, t.options.columns), t.printElementType.columns = e.columns, e.columns = void 0), this.insertPrintElementToPanel(t)
- }, t.prototype.addPrintImage = function (t) {
- t.printElementType = t.printElementType || {}, t.printElementType.type = "image", this.insertPrintElementToPanel(t)
- }, t.prototype.addPrintLongText = function (t) {
- t.printElementType = t.printElementType || {}, t.printElementType.type = "longText", this.insertPrintElementToPanel(t)
- }, t.prototype.addPrintVline = function (t) {
- t.printElementType = t.printElementType || {}, t.printElementType.type = "vline", this.insertPrintElementToPanel(t)
- }, t.prototype.addPrintHline = function (t) {
- t.printElementType = t.printElementType || {}, t.printElementType.type = "hline", this.insertPrintElementToPanel(t)
- }, t.prototype.addPrintRect = function (t) {
- t.printElementType = t.printElementType || {}, t.printElementType.type = "rect", this.insertPrintElementToPanel(t)
- }, t.prototype.addPrintOval = function (t) {
- t.printElementType = t.printElementType || {}, t.printElementType.type = "oval", this.insertPrintElementToPanel(t)
- }, t.prototype.getPrintElementTypeByEntity = function (t) {
- return t.tid ? a.instance.getElementType(t.tid) : nt.createPrintElementType(t.printElementType)
- }, t.prototype.getPrintStyle = function () {
- return " \n"
- }, t.prototype.getPrintSizeStyle = function () {
- return this.paperType ? "size:" + this.paperType + " " + (this.height > this.width ? "portrait" : "landscape") + ";" : "size: " + this.width + "mm " + this.height + "mm " + (this.orient ? 1 == this.orient ? "portrait" : "landscape" : "") + ";"
- }, t.prototype.deletePrintElement = function (i) {
- var n = this;
- this.printElements.filter(function (t, e) {
- t.id == i.id && (i.delete(), n.printElements.splice(e, 1))
- })
- }, t.prototype.getElementByTid = function (e) {
- return this.printElements.filter(function (t) {
- return t.printElementType.tid === e
- }).map(function (t, e) {
- return t
- })
- }, t.prototype.getElementByName = function (e) {
- return this.printElements.filter(function (t) {
- return t.options.name === e
- }).map(function (t, e) {
- return t
- })
- }, t.prototype.getElementById = function (e) {
- return this.printElements.find(function (t) {
- return t.id === e
- })
- }, t.prototype.getFieldsInPanel = function () {
- var e = [];
- return this.printElements.forEach(function (t) {
- t.options && t.options.field ? e.push(t.options.field) : t.printElementType.field && e.push(t.printElementType.field)
- }), e
- }, t.prototype.getTestData = function () {
- var e = {};
- return this.printElements.forEach(function (t) {
- "table" != t.printElementType.type && (t.options && t.options.field ? e[t.options.field] = t.options.testData : t.printElementType.field && (e[t.printElementType.field] = t.printElementType.data || t.options.testData))
- }), e
- }, t.prototype.bindBatchMoveElement = function () {
- var e = this;
- this.designPaper.getTarget().on("mousemove", function (t) {
- t.target.className && "string" == _typeof(t.target.className) && t.target.className.includes("editing") || (t.currentTarget.className == e.designPaper.target[0].className ? (e.mouseOffsetX = t.offsetX, e.mouseOffsetY = t.offsetY) : e.mouseOffsetX = e.mouseOffsetY = void 0, s.a.instance.draging) || 1 === t.buttons && s.a.instance.rectDraging && e.mouseRect && (e.mouseRect.updateRect(t.pageX, t.pageY), e.updateRectPanel(e.mouseRect))
- }).on("mousedown", function (t) {
- s.a.instance.rectDraging = !0, t.target.className && "string" == _typeof(t.target.className) && t.target.className.includes("editing") || s.a.instance.draging || (e.mouseRect && e.mouseRect.target && e.mouseRect.target.remove(), 1 === t.buttons && "string" == _typeof(t.target.className) && t.target.className.includes("hiprint-printPaper hidroppable design") && (e.mouseRect = new at(t.pageX, t.pageY, s.a.instance.dragLengthCNum(t.pageX - e.designPaper.getTarget().offset().left, p.a.instance.movingDistance), s.a.instance.dragLengthCNum(t.pageY - e.designPaper.getTarget().offset().top, p.a.instance.movingDistance))))
- }).on("mouseup", function (t) {
- s.a.instance.rectDraging = !1
- })
- }, t.prototype.getElementInRect = function (e) {
- var i = [];
- return this.printElements.filter(function (t) {
- return !1 !== t.options.draggable
- }).forEach(function (t) {
- t.inRect(e) && i.push(t)
- }), i
- }, t.prototype.updateRectPanel = function (t) {
- var e, i, n = this,
- r = this.designPaper.getTarget(),
- a = this.designPaper.scale || 1;
- this.mouseRect.target || (this.mouseRect.target = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
'), r.find(".hiprint-printPaper-content").append(this.mouseRect.target), this.bingKeyboardMoveEvent(this.mouseRect.target), this.mouseRect.target.hidraggable({
- onDrag: function (t, e, i) {
- n.mouseRect.lastLeft = n.mouseRect.lastLeft ? o.a.px.toPt(n.mouseRect.target[0].offsetLeft) : e / a, n.mouseRect.lastTop = n.mouseRect.lastTop ? o.a.px.toPt(n.mouseRect.target[0].offsetTop) : i / a, (n.mouseRect.mouseRectSelectedElement || []).forEach(function (t) {
- t.updatePositionByMultipleSelect(e - n.mouseRect.lastLeft, i - n.mouseRect.lastTop)
- }), n.mouseRect.lastLeft = e / a, n.mouseRect.lastTop = i / a, s.a.instance.changed = !0
- },
- moveUnit: "pt",
- minMove: p.a.instance.movingDistance,
- onBeforeDrag: function (t) {
- n.mouseRect.target.focus(), s.a.instance.draging = !0, n.mouseRect.mouseRectSelectedElement || (n.mouseRect.mouseRectSelectedElement = n.getElementInRect(n.mouseRect)), n.mouseRect.target.css({
- transform: "unset"
- })
- },
- getScale: function () {
- return n.designPaper.scale || 1
- },
- onStopDrag: function (t) {
- s.a.instance.changed && o.a.event.trigger("hiprintTemplateDataChanged_" + r.templateId, "框选移动"), s.a.instance.draging = !1, s.a.instance.changed = !1
- }
- })), t.ex >= t.bx && t.ey >= t.by ? this.mouseRect.target.css({
- height: t.maxY - t.minY + "px",
- width: t.maxX - t.minX + "px",
- left: t.lastLeft / a + "pt",
- top: t.lastTop / a + "pt",
- transform: "unset"
- }) : t.ex < t.bx && t.ey < t.by ? this.mouseRect.target.css({
- height: t.maxY - t.minY + "px",
- width: t.maxX - t.minX + "px",
- left: t.lastLeft / a + "pt",
- top: t.lastTop / a + "pt",
- transform: "rotate(180deg)",
- "transform-origin": "0 0"
- }) : (e = "", i = "rotate(180deg)", t.startX == t.minX || t.startX == t.maxX ? e = t.ey >= t.by ? (i = "scaleX(-1)", "left") : "center top" : t.startY != t.minY && t.startY != t.maxY || (e = t.ex >= t.bx ? "right" : "left"), this.mouseRect.target.css({
- height: t.maxY - t.minY + "px",
- width: t.maxX - t.minX + "px",
- left: t.lastLeft / a + "pt",
- top: t.lastTop / a + "pt",
- transform: i,
- "transform-origin": e
- })), t.target.focus()
- }, t.prototype.bingKeyboardMoveEvent = function (t) {
- var i = this;
- t.attr("tabindex", "1"), t.keydown(function (t) {
- i.mouseRect.mouseRectSelectedElement || (i.mouseRect.mouseRectSelectedElement = i.getElementInRect(i.mouseRect));
- var e = i.mouseRect.mouseRectSelectedElement || [];
- switch (t.keyCode) {
- case 37:
- i.mouseRect.updatePositionByMultipleSelect(0 - p.a.instance.movingDistance, 0), e.forEach(function (t) {
- t.updatePositionByMultipleSelect(0 - p.a.instance.movingDistance, 0)
- }), t.preventDefault();
- break;
- case 38:
- i.mouseRect.updatePositionByMultipleSelect(0, 0 - p.a.instance.movingDistance), e.forEach(function (t) {
- t.updatePositionByMultipleSelect(0, 0 - p.a.instance.movingDistance)
- }), t.preventDefault();
- break;
- case 39:
- i.mouseRect.updatePositionByMultipleSelect(p.a.instance.movingDistance, 0), e.forEach(function (t) {
- t.updatePositionByMultipleSelect(p.a.instance.movingDistance, 0)
- }), t.preventDefault();
- break;
- case 40:
- i.mouseRect.updatePositionByMultipleSelect(0, p.a.instance.movingDistance), e.forEach(function (t) {
- t.updatePositionByMultipleSelect(0, p.a.instance.movingDistance)
- }), t.preventDefault()
- }[37, 38, 39, 40].includes(t.keyCode) && o.a.event.trigger("hiprintTemplateDataChanged_" + i.templateId, "框选移动")
- })
- }, t
- }(),
- st = function (t) {
- if (t)
- if (t.panels) {
- this.panels = [];
- for (var e = 0; e < t.panels.length; e++) this.panels.push(new rt(t.panels[e]))
- } else this.panels = []
- },
- lt = n(9),
- ut = function () {
- function t(t, e) {
- var i = this;
- this.printElementOptionSettingPanel = {}, this.printTemplate = t, this.settingContainer = jquery__WEBPACK_IMPORTED_MODULE_60___default()(e), o.a.event.on(t.getPrintElementSelectEventKey(), function (t) {
- i.buildSetting(t)
- }), o.a.event.on(t.getBuildCustomOptionSettingEventKey(), function (t) {
- i.buildSettingByCustomOptions(t)
- }), o.a.event.on("clearSettingContainer", function () {
- i.clearSettingContainer()
- })
- }
- return t.prototype.init = function () { }, t.prototype.clearSettingContainer = function () {
- this.clearLastPrintElement(), this.settingContainer.html("")
- }, t.prototype.clearLastPrintElement = function () {
- this.lastPrintElement && (this.lastPrintElement._editing && this.lastPrintElement.updateByContent(!0), this.lastPrintElement._printElementOptionTabs && this.lastPrintElement._printElementOptionTabs.forEach(function (t) {
- t.list && t.list.forEach(function (t) {
- t.destroy()
- })
- }), this.lastPrintElement._printElementOptionItems) && this.lastPrintElement._printElementOptionItems.forEach(function (t) {
- t.destroy()
- }), this.lastPrintElement = void 0
- }, t.prototype.buildSetting = function (t) {
- var i, e, n = this,
- a = this,
- o = t.printElement,
- s = t.customOptionsInput,
- t = o.getPrintElementOptionTabs(),
- r = (n.clearSettingContainer(), t.length ? (i = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
'), t.forEach(function (t) {
- var e = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
' + i18n.__(t.name) + "
"),
- r = (i.find(".prop-tab-items").append(e), jquery__WEBPACK_IMPORTED_MODULE_60___default()(''));
- t.list.forEach(function (t) {
- t.submit = function (t) {
- o.submitOption()
- };
- var e = t.createTarget(o, o.options, o.printElementType);
- n.printElementOptionSettingPanel[t.name] = e, r.append(e), ["columns", "dataType"].includes(t.name) ? t.setValue(o.options[t.name], o.options, o.printElementType) : ["coordinate", "widthHeight"].includes(t.name) ? t.setValue(o.options, o) : t.setValue(o.options[t.name] || o.printElementType[t.name]), e.find("textarea").bind("dblclick.textarea", function (t) {
- jquery__WEBPACK_IMPORTED_MODULE_60___default()(this).val() || (t = t.target.placeholder || "", jquery__WEBPACK_IMPORTED_MODULE_60___default()(this).val(t))
- })
- }), 0 == t.list.length && s && s.length && s.forEach(function (e) {
- var i = e.callback,
- n = (e.callback = function (t) {
- i && i(t)
- }, e.optionItems);
- e.title && r.append('
\n
\n ' + e.title + "\n
\n
"), n.forEach(function (t) {
- t.submit = function (t) {
- e.callback(a.getValueByOptionItems(n))
- }, r.append(t.createTarget(a.printTemplate, e.options, void 0)), t.setValue(e.options[t.name], e.options, void 0)
- }), r.find(".auto-submit").change(function () {
- e.callback(a.getValueByOptionItems(n))
- }), r.find(".auto-submit:input").bind("keydown.submitOption", function (t) {
- 13 === t.keyCode && e.callback(a.getValueByOptionItems(n))
- }), r.find("textarea").bind("dblclick.textarea", function (t) {
- jquery__WEBPACK_IMPORTED_MODULE_60___default()(this).val() || (t = t.target.placeholder || "", jquery__WEBPACK_IMPORTED_MODULE_60___default()(this).val(t))
- })
- }), i.append(r)
- })) : (i = jquery__WEBPACK_IMPORTED_MODULE_60___default()(''), o.getPrintElementOptionItems().forEach(function (t) {
- t.submit = function (t) {
- o.submitOption()
- };
- var e = t.createTarget(o, o.options, o.printElementType);
- n.printElementOptionSettingPanel[t.name] = e, i.append(e), ["columns", "dataType"].includes(t.name) ? t.setValue(o.options[t.name], o.options, o.printElementType) : ["coordinate", "widthHeight"].includes(t.name) ? t.setValue(o.options, o) : t.setValue(o.options[t.name] || o.printElementType[t.name])
- })), jquery__WEBPACK_IMPORTED_MODULE_60___default()('"))),
- c = jquery__WEBPACK_IMPORTED_MODULE_60___default()('"));
- i.append(r), 0 != o.options.draggable && i.append(c), t.length && (i.on("click", ".prop-tab-item", function () {
- var t = jquery__WEBPACK_IMPORTED_MODULE_60___default()(this),
- e = t.index(),
- t = (n.settingContainer.data("last-index", e), t.addClass("active"), t.siblings().removeClass("active"), i.find(".hiprint-option-items:eq(" + e + ")"));
- t.addClass("active"), t.siblings().removeClass("active")
- }), (e = +(n.settingContainer.data("last-index") || 0)) >= t.length && (e = 0), i.find(".prop-tab-item:eq(" + e + ")").click()), r.bind("click.submitOption", function () {
- o.submitOption()
- }), c.bind("click.deleteBtn", function () {
- hinnn.event.trigger("hiprintTemplateDataChanged_" + o.templateId, "删除"), a.printTemplate.deletePrintElement(o), n.clearSettingContainer()
- }), i.find(".auto-submit").change(function (t) {
- o.submitOption()
- }), i.find(".auto-submit:input").bind("keydown.submitOption", function (t) {
- 13 == t.keyCode && o.submitOption()
- }), this.settingContainer.append(i), t.length < 1 && s && s.forEach(function (t) {
- var e = t.callback;
- t.callback = function (t) {
- e && (e(t), o.submitOption())
- }, n.buildSettingByCustomOptions(t, n.settingContainer)
- }), this.lastPrintElement = o
- }, t.prototype.buildSettingByCustomOptions = function (e, t) {
- var i = this,
- n = (this.clearLastPrintElement(), t || this.settingContainer),
- r = (t || this.settingContainer.html(""), []),
- a = p.a.instance.panel.supportOptions.filter(function (t) {
- return !t.hidden
- }).map(function (t) {
- return t.name
- }),
- o = (e.optionItems ? r = e.optionItems : Object.keys(e.options).filter(function (t) {
- return a.includes(t)
- }).forEach(function (t) {
- t = lt.a.getItem(t);
- t && r.push(t)
- }), jquery__WEBPACK_IMPORTED_MODULE_60___default()('')),
- t = (e.title && o.append('
\n
\n ' + e.title + "\n
\n
"), r.forEach(function (t) {
- t.submit = function (t) {
- e.callback(i.getValueByOptionItems(r))
- }, o.append(t.createTarget(i.printTemplate, e.options, void 0)), t.setValue(e.options[t.name], e.options, void 0)
- }), jquery__WEBPACK_IMPORTED_MODULE_60___default()('")));
- o.append(t), t.bind("click.submitOption", function () {
- e.callback(i.getValueByOptionItems(r))
- }), o.find(".auto-submit").change(function (t) {
- e.callback(i.getValueByOptionItems(r))
- }), o.find(".auto-submit:input").bind("keydown.submitOption", function (t) {
- 13 == t.keyCode && e.callback(i.getValueByOptionItems(r))
- }), n.append(o)
- }, t.prototype.getValueByOptionItems = function (t) {
- var e = {};
- return t.forEach(function (t) {
- e[t.name] = t.getValue()
- }), e
- }, t
- }(),
- dt = function () {
- function t(t, e) {
- this.paginationContainer = t, this.jqPaginationContainer = jquery__WEBPACK_IMPORTED_MODULE_60___default()(this.paginationContainer), this.template = e
- }
- return t.prototype.buildPagination = function (t) {
- var e = this.template.getPaneltotal(),
- n = this;
- this.jqPaginationContainer.html("");
- for (var r = jquery__WEBPACK_IMPORTED_MODULE_60___default()('
'), a = 0; a < e; a++) ! function () {
- var t = a,
- e = n.template.printPanels[t].name || t + 1,
- i = jquery__WEBPACK_IMPORTED_MODULE_60___default()("
'),
+ n = (o.append(t), new d(t));
+ a.push(n), 0 < i && i < r.rows.length && jquery__WEBPACK_IMPORTED_MODULE_65___default()(t).hidraggable({
+ axis: "v",
+ onDrag: function(e, t, i) {},
+ moveUnit: "pt",
+ minMove: 1,
+ onBeforeDrag: function(e) {
+ A.dragingGrip = n, A.dragingGrip.top = parseFloat(A.dragingGrip.target.css("top").replace("px", "")), n.target.addClass("rowgripDraging")
+ },
+ onStopDrag: function(e) {
+ var t = parseFloat(A.dragingGrip.target.css("top").replace("px", "")),
+ t = l.a.px.toPt(t - A.dragingGrip.top + A.rows[i].columns[0].getTarget().height());
+ A.rows[i].columns[0].getTarget().css("height", t + "pt"), A.syncRowGrips(), n.target.removeClass("rowgripDraging")
+ }
+ })
+ }), this.target.before(o), this.rgripContariner = new c(o, a), this.syncRowGrips()
+ }, b.prototype.syncGrips = function(e, t) {
+ var i = e.getTarget(),
+ n = jquery__WEBPACK_IMPORTED_MODULE_65___default()(".hiprint-printPaper")[0].style.transform && parseFloat(jquery__WEBPACK_IMPORTED_MODULE_65___default()(".hiprint-printPaper")[0].style.transform.slice(6, -1)) || 1;
+ t.cell = e, t.target.css({
+ left: i.offset().left / n - this.target.offset().left / n + i.outerWidth(!1),
+ height: 30
+ })
+ }, b.prototype.syncRowGrips = function() {
+ var i = this;
+ this.rgripContariner.target.height(this.target.height()), this.rows.forEach(function(e, t) {
+ e = e.columns[0].getTarget();
+ i.rgripContariner.grips[t].target.css({
+ top: e.offset().top - i.target.offset().top + e.outerHeight(!1),
+ width: 30
+ })
+ })
+ }, b.prototype.addResizerHeadRow = function() {
+ this.target.find("thead").prepend()
+ }, b),
+ m = (v.prototype.init = function() {}, v.prototype.updateRowGrips = function() {}, v.prototype.updateColumnGrips = function() {}, v);
+
+ function v() {}
+
+ function b(e) {
+ this.signature = "HiTresizer", this.hitable = e, this.rows = e.rows, this.target = e.target
+ }
+
+ function I() {}
+
+ function w() {}
+
+ function y(e) {
+ this.options = new n(e)
+ }
+ i.d(t, "a", function() {
+ return B
+ });
+ _.prototype.insertRow = function(e, t, i) {
+ var t = t || this.tableCellSelector.getSingleSelect(),
+ n = t.cell,
+ r = this.rows[t.rowIndex],
+ t = t.rowIndex,
+ A = this.getCellGrid(),
+ a = new s.a;
+ a.init(this.optionsCoat, void 0, r.isHead), i && a.getTarget().addClass(i), "above" == e ? (A[t].forEach(function(e) {
+ var t, i = e.link || e.cell,
+ i = i.width / i.colspan;
+ 0 == e.columnLevel ? ((t = a.createTableCell()).width = i, a.insertCellToLast(t)) : "column" == e.linkType && (i = e.link.getTarget(), e.link.rowspan += 1, i.attr("rowspan", e.link.rowspan))
+ }), this.rows.splice(t, 0, a), r.getTarget().before(a.getTarget())) : (A[i = t + n.rowspan - 1].forEach(function(e) {
+ var t, i, n = e.link || e.cell,
+ n = n.width / n.colspan;
+ e.bottom ? ((t = a.createTableCell()).width = n, a.insertCellToLast(t)) : (e.cell && (i = e.cell.getTarget(), e.cell.rowspan += 1, i.attr("rowspan", e.cell.rowspan)), "column" == e.linkType && (i = e.link.getTarget(), e.link.rowspan += 1, i.attr("rowspan", e.link.rowspan)))
+ }), this.rows.splice(1 + i, 0, a), this.rows[i].getTarget().after(a.getTarget())), l.a.event.trigger("newRow" + this.id, a)
+ }, _.prototype.insertColumn = function(e, t, A, a) {
+ var r, o, s = this,
+ c = this.rows.concat(this.trRows),
+ t = t || this.tableCellSelector.getSingleSelect(),
+ i = t.cell,
+ t = t.rowIndex,
+ n = this.getCellGrid(c),
+ t = n[t].filter(function(e) {
+ return e.cell && e.cell.id == i.id || e.link && e.link.id == i.id
+ });
+ "left" == e ? (r = t[0].indexInTableGridRow, n.forEach(function(e, t) {
+ var i, n = e[r],
+ e = e.filter(function(e, t) {
+ return r <= t && e.cell
+ });
+ 0 == n.rowLevel ? (i = c[t], t = c[t].createTableCell(), A && t.getTarget().addClass(A), null != a && (t.width = a), e.length ? i.insertToTargetCellLeft(e[0].cell, t) : i.insertCellToLast(t), l.a.event.trigger("newCell" + s.id, t)) : "row" == n.linkType && (e = n.link.getTarget(), n.link.colspan += 1, e.attr("colspan", n.link.colspan))
+ })) : (o = t[t.length - 1].indexInTableGridRow, n.forEach(function(e, t) {
+ var i, n, r = e[o],
+ e = e.filter(function(e, t) {
+ return t <= o && e.cell
+ });
+ r.rightMost ? (i = (t = c[t]).createTableCell(), A && i.getTarget().addClass(A), null != a && (i.width = a), e.length ? t.insertToTargetCellRight(e[e.length - 1].cell, i) : t.insertCellToFirst(i), l.a.event.trigger("newCell" + s.id, i)) : (e = r.link || r.cell, "row" == r.linkType && (n = e.getTarget(), e.colspan += 1, n.attr("colspan", e.colspan)), r.cell && (n = e.getTarget(), e.colspan += 1, n.attr("colspan", e.colspan)))
+ }))
+ }, _.prototype.deleteRow = function() {
+ var A = this,
+ e = this.tableCellSelector.getSingleSelect(),
+ a = (e.cell, this.rows[e.rowIndex], e.rowIndex),
+ o = this.getCellGrid(),
+ s = this.rows[a];
+ o[a].forEach(function(e, i) {
+ var t, n, r;
+ e.cell ? 1 == e.cell.rowspan ? s.removeCell(e.cell) : (s.removeCell(e.cell), r = o[a + 1].filter(function(e, t) {
+ return e.cell && i < t
+ }), n = (t = A.rows[a + 1]).createTableCell(e.cell.rowspan - 1, e.cell.colspan), r.length ? t.insertToTargetCellLeft(r[0].cell, n) : t.insertCellToLast(n)) : "column" == e.linkType && (--(r = e.link).rowspan, r.getTarget().attr("rowspan", r.rowspan))
+ }), s.getTarget().remove(), this.rows.splice(a, 1)
+ }, _.prototype.deleteColums = function() {
+ var i = this.rows.concat(this.trRows),
+ e = this.tableCellSelector.getSingleSelect(),
+ t = e.cell,
+ e = e.rowIndex,
+ n = this.getCellGrid(i),
+ r = n[e].filter(function(e) {
+ return e.cell && e.cell.id == t.id || e.link && e.link.id == t.id
+ })[0].indexInTableGridRow;
+ n.forEach(function(e, t) {
+ e = e[r];
+ e.cell ? 1 == e.cell.colspan ? i[t].removeCell(e.cell) : (--e.cell.colspan, e.cell.getTarget().attr("colspan", e.cell.colspan)) : "row" == e.linkType && (--e.link.colspan, e.link.getTarget().attr("colspan", e.link.colspan))
+ })
+ }, _.prototype.mergeCell = function() {
+ var n, r = this,
+ A = this.tableCellSelector.getSelectedCells();
+ 0 != A.length && (n = A[0][0].cell, A.forEach(function(e, i) {
+ e.forEach(function(e, t) {
+ 0 == i ? 0 != t && (n.colspan += e.cell.colspan, r.rows[e.rowIndex].removeCell(e.cell)) : r.rows[e.rowIndex].removeCell(e.cell), 0 == t && A[0][0].rowIndex + n.rowspan - 1 < e.rowIndex && (n.rowspan += e.cell.rowspan)
+ })
+ }), n.getTarget().attr("colspan", n.colspan), n.getTarget().attr("rowspan", n.rowspan), this.tableCellSelector.setSingleSelect(A[0][0]))
+ }, _.prototype.splitCell = function() {
+ var e = this.tableCellSelector.getSingleSelect(),
+ t = this.getCellGrid(),
+ i = o.getIndex(t[e.rowIndex], e.cell.id);
+ if (e) {
+ for (var n = e.rowIndex; n < e.rowIndex + e.cell.rowspan; n++)
+ for (var r = this.rows[n], A = n == e.rowIndex ? e.cell : o.getLeftTableCell(t[n], i), a = 0; a < e.cell.colspan; a++) n == e.rowIndex && 0 == a || (A ? r.insertToTargetCellRight(A, r.createTableCell()) : r.insertCellToFirst(r.createTableCell()));
+ e.cell.rowspan = 1, e.cell.colspan = 1, e.cell.getTarget().attr("colspan", e.cell.colspan), e.cell.getTarget().attr("rowspan", e.cell.rowspan)
+ }
+ }, _.prototype.init = function(t) {
+ var i = this;
+ jquery__WEBPACK_IMPORTED_MODULE_65___default()(this.target).addClass("hitable"), this.optionsCoat.onBeforEdit = function(e) {
+ return !(i.optionsCoat.options.onBeforEdit && !1 === t.onBeforEdit(e) || (i.optionsCoat.editingCell && i.optionsCoat.editingCell.endEdit(), 0))
+ }, jquery__WEBPACK_IMPORTED_MODULE_65___default()(this.target).mousedown(function(e) {
+ i.optionsCoat.isLeftMouseButtonDown = !0
+ }), jquery__WEBPACK_IMPORTED_MODULE_65___default()(this.target).mouseup(function(e) {
+ i.optionsCoat.isLeftMouseButtonDown = !1
+ }), this.initContext(), this.target.on("mousemove", function(e) {
+ 1 === e.buttons && i.tableCellSelector.multipleSelectByXY(e.pageX, e.pageY)
+ }).on("mousedown", function(e) {
+ 1 === e.buttons && i.tableCellSelector.singleSelectByXY(e.pageX, e.pageY)
+ })
+ }, _.prototype.initRows = function(e) {
+ var i = this;
+ this.trRows = [], e ? ((this.rows = e).forEach(function(e, t) {
+ e.init(i.optionsCoat, i.target.find("tr:eq(" + t + ")"), !0)
+ }), (e = this.optionsCoat.options.trs) && this.initRowsByTrs(e).forEach(function(e) {
+ i.trRows.push(e)
+ })) : this.rows = this.initRowsByTrs(this.target.find("tr"))
+ }, _.prototype.initRowsByTrs = function(e) {
+ var n = this;
+ return e.map(function(e, t) {
+ var i = new s.a;
+ return i.init(n.optionsCoat, jquery__WEBPACK_IMPORTED_MODULE_65___default()(t)), i
+ }).get()
+ }, _.prototype.enableEidt = function() {
+ this.optionsCoat.enableEidt()
+ }, _.prototype.disableEdit = function() {
+ this.optionsCoat.disableEdit()
+ }, _.prototype.getCellGrid = function(e) {
+ var e = e || this.rows,
+ s = this.getColumnStep(),
+ c = new Array;
+ return e.forEach(function(e, o) {
+ e.columns.forEach(function(e, t) {
+ for (var i = 0; i < e.colspan; i++)
+ for (var n = 0, r = !1; n < s && !r;) {
+ if (c[o] = c[o] || [], !c[o][n]) {
+ c[o][n] = new p({
+ cell: 0 == i ? e : void 0,
+ link: 0 != i ? e : void 0,
+ linkType: 0 < i ? "row" : void 0,
+ rightMost: i == e.colspan - 1 || void 0,
+ bottom: 0 == e.rowspan - 1,
+ rowLevel: i,
+ columnLevel: 0,
+ indexInTableGridRow: n,
+ indexInTableGridColumn: o
+ });
+ for (var A = o + 1, a = 1; a < e.rowspan; a++) c[A] = c[A] || [], c[A][n] = new p({
+ cell: void 0,
+ link: e,
+ linkType: 0 < i ? "rowColumn" : "column",
+ rightMost: i == e.colspan - 1 || void 0,
+ bottom: a == e.rowspan - 1,
+ rowLevel: i,
+ columnLevel: a,
+ indexInTableGridRow: n,
+ indexInTableGridColumn: A
+ }), A += 1;
+ r = !0
+ }
+ n++
+ }
+ })
+ }), c
+ }, _.prototype.setAlign = function(e) {
+ var t = this.tableCellSelector.getSingleSelect();
+ t && t.cell.setAlign(e)
+ }, _.prototype.setVAlign = function(e) {
+ var t = this.tableCellSelector.getSingleSelect();
+ t && t.cell.setVAlign(e)
+ }, _.prototype.getColumnStep = function(e) {
+ var t = 0;
+ return this.rows.length && this.rows[e || 0].columns.forEach(function(e) {
+ t += e.colspan
+ }), t
+ }, _.prototype.initContext = function() {
+ var t = this;
+ if (!this.optionsCoat.options.isEnableContextMenu) return !1;
+ jquery__WEBPACK_IMPORTED_MODULE_65___default()(this.handle).hicontextMenu({
+ menus: [{
+ text: "".concat(i18n.__("在上方插入行")),
+ enabled: this.optionsCoat.options.isEnableInsertRow,
+ disable: function() {
+ return !t.tableCellSelector.getSingleSelect()
+ },
+ callback: function() {
+ t.insertRow("above"), t.resizer.updateRowGrips(), l.a.event.trigger("updateTable" + t.id)
+ }
+ }, {
+ text: "".concat(i18n.__("在下方插入行")),
+ borderBottom: !0,
+ enabled: this.optionsCoat.options.isEnableInsertRow,
+ disable: function() {
+ return !t.tableCellSelector.getSingleSelect()
+ },
+ callback: function() {
+ t.insertRow("below"), t.resizer.updateRowGrips(), l.a.event.trigger("updateTable" + t.id)
+ }
+ }, {
+ text: "".concat(i18n.__("向左方插入列")),
+ enabled: this.optionsCoat.options.isEnableInsertColumn,
+ disable: function() {
+ return !t.tableCellSelector.getSingleSelect()
+ },
+ callback: function() {
+ t.insertColumn("left"), t.resizer.updateColumnGrips(), l.a.event.trigger("updateTable" + t.id)
+ }
+ }, {
+ text: "".concat(i18n.__("向右方插入列")),
+ enabled: this.optionsCoat.options.isEnableInsertColumn,
+ disable: function() {
+ return !t.tableCellSelector.getSingleSelect()
+ },
+ borderBottom: !0,
+ callback: function() {
+ t.insertColumn("right"), t.resizer.updateColumnGrips(), l.a.event.trigger("updateTable" + t.id)
+ }
+ }, {
+ text: "".concat(i18n.__("删除行")),
+ enabled: this.optionsCoat.options.isEnableDeleteRow,
+ disable: function() {
+ return !t.tableCellSelector.getSingleSelect() || t.rows.length <= 1
+ },
+ callback: function() {
+ t.deleteRow(), t.resizer.updateRowGrips(), l.a.event.trigger("updateTable" + t.id)
+ }
+ }, {
+ text: "".concat(i18n.__("删除列")),
+ borderBottom: !0,
+ enabled: this.optionsCoat.options.isEnableDeleteColumn,
+ disable: function() {
+ return !t.tableCellSelector.getSingleSelect() || 0 < t.rows.length && t.rows[0].columns.length <= 1
+ },
+ callback: function() {
+ t.deleteColums(), t.resizer.updateColumnGrips(), l.a.event.trigger("updateTable" + t.id)
+ }
+ }, {
+ text: "".concat(i18n.__("对齐")),
+ borderBottom: !0,
+ enabled: this.optionsCoat.options.columnAlignEditable,
+ menus: [{
+ text: "".concat(i18n.__("左")),
+ callback: function() {
+ t.setAlign("left")
+ }
+ }, {
+ text: "".concat(i18n.__("左右居中")),
+ callback: function() {
+ t.setAlign("center")
+ }
+ }, {
+ text: "".concat(i18n.__("右")),
+ callback: function() {
+ t.setAlign("right")
+ }
+ }, {
+ text: "".concat(i18n.__("默认")),
+ borderBottom: !0,
+ callback: function() {
+ t.setAlign("")
+ }
+ }, {
+ text: "".concat(i18n.__("上")),
+ callback: function() {
+ t.setVAlign("top")
+ }
+ }, {
+ text: "".concat(i18n.__("垂直居中")),
+ callback: function() {
+ t.setVAlign("middle")
+ }
+ }, {
+ text: "".concat(i18n.__("下")),
+ callback: function() {
+ t.setVAlign("bottom")
+ }
+ }, {
+ text: "".concat(i18n.__("默认")),
+ callback: function() {
+ t.setVAlign("")
+ }
+ }]
+ }, {
+ text: "".concat(i18n.__("合并单元格")),
+ enabled: this.optionsCoat.options.isEnableMergeCell,
+ disable: function() {
+ return t.tableCellSelector.getSingleSelect()
+ },
+ callback: function() {
+ t.mergeCell(), l.a.event.trigger("updateTable" + t.id)
+ }
+ }, {
+ text: "".concat(i18n.__("解开单元格")),
+ enabled: this.optionsCoat.options.isEnableMergeCell,
+ disable: function() {
+ var e = t.tableCellSelector.getSingleSelect();
+ return !e || 1 == e.cell.rowspan && 1 == e.cell.colspan
+ },
+ callback: function() {
+ t.splitCell(), l.a.event.trigger("updateTable" + t.id)
+ }
+ }].filter(function(e) {
+ return e.enabled
+ })
+ })
+ }, _.prototype.getTableWidth = function() {
+ return l.a.px.toPt(this.target.outerWidth(!1))
+ }, _.prototype.updateColumnGrips = function() {
+ this.resizer.updateColumnGrips()
+ }, _.prototype.updateRowGrips = function() {
+ this.resizer.updateRowGrips()
+ };
+ var B = _;
+
+ function _(e) {
+ this.id = a.a.createId(), this.optionsCoat = new r(e), this.handle = e.handle, this.target = e.table, this.initRows(e.rows), this.init(e), this.tableCellSelector = new A.a(this.rows, this.target), this.resizer = this.optionsCoat.options.columnResizable ? new g(this) : new m, this.resizer.init()
+ }
+ }, function(e, t, i) {
+ i.d(t, "a", function() {
+ return n
+ });
+ var n = function(e, t, i) {
+ this.tid = e, this.options = t, this.printElementType = i
+ }
+ }, function(e, t, i) {
+ var n = i(3),
+ r = i(12),
+ A = function(e) {
+ this.width = e.width, this.title = e.title, this.field = e.field, this.checked = e.checked, this.columnId = e.columnId, this.fixed = !1, this.rowspan = e.rowspan || 1, this.colspan = e.colspan || 1, this.align = e.align, this.halign = e.halign, this.vAlign = e.vAlign, this.renderFormatter = e.renderFormatter, this.formatter2 = e.formatter2, this.styler2 = e.styler2, this.stylerHeader = e.stylerHeader, this.tableColumnHeight = e.tableColumnHeight, this.tableTextType = e.tableTextType, this.tableBarcodeMode = e.tableBarcodeMode, this.tableQRCodeLevel = e.tableQRCodeLevel, this.tableSummaryTitle = e.tableSummaryTitle, this.tableSummaryText = e.tableSummaryText, this.tableSummaryColspan = e.tableSummaryColspan, this.tableSummary = e.tableSummary, this.tableSummaryAlign = e.tableSummaryAlign, this.tableSummaryNumFormat = e.tableSummaryNumFormat, this.tableSummaryFormatter = e.tableSummaryFormatter, this.showCodeTitle = e.showCodeTitle, this.upperCase = e.upperCase
+ },
+ a = i(5);
+ i.d(t, "a", function() {
+ return l
+ });
+ o = function(e, t) {
+ return (o = Object.setPrototypeOf || (_instanceof({
+ __proto__: []
+ }, Array) ? function(e, t) {
+ e.__proto__ = t
+ } : function(e, t) {
+ for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i])
+ }))(e, t)
+ };
+ s = n.a, o(c = p, i = s), c.prototype = null === i ? Object.create(i) : (d.prototype = i.prototype, new d), p.prototype.getColumnByColumnId = function(e) {
+ return this.makeColumnObj()[e]
+ }, p.prototype.makeColumnObj = function() {
+ var t = {};
+ return this.columns && this.columns.forEach(function(e) {
+ e.columns.forEach(function(e) {
+ (e.id || e.columnId) && (t[e.id || e.columnId] = e)
+ })
+ }), t
+ }, p.prototype.getGridColumns = function() {
+ return this.gridColumns || 1
+ }, p.prototype.getPrintElementOptionEntity = function() {
+ var t = s.prototype.getPrintElementOptionEntity.call(this);
+ return t.fields = this.fields, this.columns && (t.columns = [], this.columns.forEach(function(e) {
+ e = e.getPrintElementOptionEntity().map(function(e) {
+ return new A(e)
+ });
+ t.columns.push(e)
+ })), t
+ };
+ var o, s, c, l = p;
+
+ function p(e, n) {
+ var t = this;
+ return (t = s.call(this, e = e || {}) || this).lHeight = e.lHeight, t.autoCompletion = e.autoCompletion, t.tableFooterRepeat = e.tableFooterRepeat, n && (t.columns = [], n.editable && e.columns && e.columns.length ? e.columns.forEach(function(e) {
+ var i = [];
+ e.forEach(function(e) {
+ var e = new A(e),
+ t = n.getColumnByColumnId(e.columnId),
+ t = t ? jquery__WEBPACK_IMPORTED_MODULE_65___default.a.extend(t, e) : new a.a(e);
+ i.push(t)
+ }), t.columns.push(new r.a(i))
+ }) : n.columns.forEach(function(e) {
+ t.columns.push(new r.a(e))
+ })), t
+ }
+
+ function d() {
+ this.constructor = c
+ }
+ }, function(e, t, i) {
+ i.d(t, "a", function() {
+ return n
+ });
+ var n = function() {
+ this.rowColumns = []
+ }
+ }, function(e, t, i) {
+ i.d(t, "a", function() {
+ return n
+ });
+ r.prototype.getByIndex = function(e) {
+ return this.target.find(".hi-grid-col:eq(" + e + ")")
+ };
+ var n = r;
+
+ function r(e, t) {
+ this.gridColumns = e, this.target = t
+ }
+ }, function(e, t, i) {
+ e.exports = i(33)
+ }, function(e, t) {
+ function b(e) {
+ var t = x.data(e.data.target, "hidraggable"),
+ i = t.options,
+ n = t.proxy,
+ r = e.data,
+ A = r.startLeft + (e.pageX - r.startX) / (t.options.getScale() || 1),
+ t = r.startTop + (e.pageY - r.startY) / (t.options.getScale() || 1);
+ n && (n.parent()[0] == document.body ? (A = null != i.deltaX && null != i.deltaX ? e.pageX + i.deltaX : e.pageX - e.data.offsetWidth, t = null != i.deltaY && null != i.deltaY ? e.pageY + i.deltaY : e.pageY - e.data.offsetHeight) : (null != i.deltaX && null != i.deltaX && (A += e.data.offsetWidth + i.deltaX), null != i.deltaY && null != i.deltaY && (t += e.data.offsetHeight + i.deltaY))), e.data.parent != document.body && (A += x(e.data.parent).scrollLeft(), t += x(e.data.parent).scrollTop()), "h" == i.axis ? r.left = A : "v" == i.axis || e.shiftKey && e.altKey ? r.top = t : e.shiftKey ? r.left = A : (r.left = A, r.top = t)
+ }
+
+ function I(e) {
+ var t = x.data(e.data.target, "hidraggable"),
+ i = t.options;
+ (t.proxy || x(e.data.target)).css({
+ left: x.fn.dragLengthC(e.data.left, i),
+ top: x.fn.dragLengthC(e.data.top, i)
+ }), x("body").css("cursor", i.cursor)
+ }
+
+ function s(t) {
+ x.fn.hidraggable.isDragging = !0;
+ var e = x.data(t.data.target, "hidraggable"),
+ i = e.options,
+ n = x(".hidroppable").filter(function() {
+ return t.data.target != this
+ }).filter(function() {
+ var e = x.data(this, "hidroppable").options.accept;
+ return !e || 0 < x(e).filter(function() {
+ return this == t.data.target
+ }).length
+ }),
+ n = (e.hidroppables = n, e.proxy);
+ return n || (i.proxy ? (n = "clone" == i.proxy ? x(t.data.target).clone().insertAfter(t.data.target) : i.proxy.call(t.data.target, t.data.target), e.proxy = n) : n = x(t.data.target)), n.css("position", "absolute"), b(t), I(t), i.onStartDrag.call(t.data.target, t), !1
+ }
+
+ function w(e, t, i, n, r, A) {
+ Math.abs(e[i] - t[n]) <= HIPRINT_CONFIG.adsorbLineMin ? e.v.length ? e.v.css("left", e[i] + "pt") : (e.v = jquery__WEBPACK_IMPORTED_MODULE_65___default()(""), e.v.css("height", r + "pt"), e.v.css("left", e[i] + "pt"), A.append(e.v)) : e.v && e.v.remove()
+ }
+
+ function y(e) {
+ e && e.v && e.v.remove(), jquery__WEBPACK_IMPORTED_MODULE_65___default()(".verLine").remove()
+ }
+
+ function B(e, t, i, n, r, A) {
+ Math.abs(e[i] - t[n]) <= HIPRINT_CONFIG.adsorbLineMin ? e.h.length ? e.h.css("top", e[i] + "pt") : (e.h = jquery__WEBPACK_IMPORTED_MODULE_65___default()(""), e.h.css("width", r + "pt"), e.h.css("top", e[i] + "pt"), A.append(e.h)) : e.h && e.h.remove()
+ }
+
+ function _(e) {
+ e && e.h && e.h.remove(), jquery__WEBPACK_IMPORTED_MODULE_65___default()(".horLine").remove()
+ }
+
+ function c(i) {
+ var e, d, t, n, r, A, a, o, s, c, l, p, u, f, h, g, m = x.data(i.data.target, "hidraggable"),
+ v = (b(i), i.ctrlKey || i.metaKey || !i.data.target.className.startsWith("resize-panel") && "2" != i.data.target.style.zIndex && !i.data.target.className.startsWith("hiprint-printElement") || (e = i.data, 0 == x(".mouseRect").length && m.options.designTarget && m.options.designTarget.panel.printElements.filter(function(e) {
+ return "block" == e.designTarget.children().last().css("display") && !e.printElementType.type.includes("table")
+ }).length <= 1 && (c = window.hinnn.px.toPt(e.left), t = window.hinnn.px.toPt(e.top), (d = m.options.designTarget.options).left = c, d.top = t, d.right = c + d.width, d.bottom = t + d.height, d.vCenter = c + d.width / 2, d.hCenter = t + d.height / 2, s = m.options.designTarget.panel.printElements.filter(function(e) {
+ return e.id != m.options.designTarget.id
+ }).map(function(e) {
+ var t = e.options,
+ i = t.left,
+ n = t.top,
+ r = t.width,
+ t = t.height,
+ A = i + r,
+ a = i + r / 2,
+ o = n + t / 2,
+ s = d.left + d.width / 2,
+ c = d.top + d.height / 2,
+ l = d.left + d.width,
+ p = Math.sqrt(Math.pow(i - d.left, 2) + Math.pow(o - c, 2)),
+ s = Math.sqrt(Math.pow(a - s, 2) + Math.pow(o - c, 2)),
+ A = Math.sqrt(Math.pow(A - l, 2) + Math.pow(o - c, 2)),
+ l = Math.min(p, s, A);
+ return Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.a)({}, e.options), {}, {
+ distance: l,
+ h: jquery__WEBPACK_IMPORTED_MODULE_65___default()(".horLine.id-" + e.id),
+ v: jquery__WEBPACK_IMPORTED_MODULE_65___default()(".verLine.id-" + e.id),
+ bottom: n + t,
+ right: i + r,
+ vCenter: a,
+ hCenter: o
+ })
+ }).sort(function(e, t) {
+ return e.distance - t.distance
+ }).slice(0, 1), c = m.options.designTarget.designPaper, l = c.target.find(".hiprint-printPaper-content"), p = c.width, u = c.height, f = HIPRINT_CONFIG.showAdsorbLine, h = HIPRINT_CONFIG.adsorbMin, g = HIPRINT_CONFIG.adsorbLineMin, s.forEach(function(e, t) {
+ Math.abs(s[t].left - d.left) <= h ? (d.left = s[t].left, y(s[t])) : Math.abs(s[t].vCenter - d.left) <= h ? (d.left = s[t].vCenter, y(s[t])) : Math.abs(s[t].right - d.left) <= h && (d.left = s[t].right, y(s[t])), Math.abs(s[t].left - d.vCenter) <= h ? (d.left = s[t].left - d.width / 2, y(s[t])) : Math.abs(s[t].vCenter - d.vCenter) <= h ? (d.left = s[t].vCenter - d.width / 2, y(s[t])) : Math.abs(s[t].right - d.vCenter) <= h && (d.left = s[t].right - d.width / 2, y(s[t])), Math.abs(s[t].left - d.right) <= h ? (d.left = s[t].left - d.width, y(s[t])) : Math.abs(s[t].vCenter - d.right) <= h ? (d.left = s[t].vCenter - d.width, y(s[t])) : Math.abs(s[t].right - d.right) <= h && (d.left = s[t].right - d.width, y(s[t])), Math.abs(s[t].top - d.top) <= h ? (d.top = s[t].top, _(s[t])) : Math.abs(s[t].hCenter - d.top) <= h ? (d.top = s[t].hCenter, _(s[t])) : Math.abs(s[t].bottom - d.top) <= h && (d.top = s[t].bottom, _(s[t])), Math.abs(s[t].top - d.hCenter) <= h ? (d.top = s[t].top - d.height / 2, _(s[t])) : Math.abs(s[t].hCenter - d.hCenter) <= h ? (d.top = s[t].hCenter - d.height / 2, _(s[t])) : Math.abs(s[t].bottom - d.hCenter) <= h && (d.top = s[t].bottom - d.height / 2, _(s[t])), Math.abs(s[t].top - d.bottom) <= h ? (d.top = s[t].top - d.height, _(s[t])) : Math.abs(s[t].hCenter - d.bottom) <= h ? (d.top = s[t].hCenter - d.height, _(s[t])) : Math.abs(s[t].bottom - d.bottom) <= h && (d.top = s[t].bottom - d.height, _(s[t])), f && (Math.abs(s[t].left - d.left) > h && Math.abs(s[t].left - d.left) <= g ? w(s[t], d, "left", "left", u, l) : Math.abs(s[t].vCenter - d.left) > h && Math.abs(s[t].vCenter - d.left) <= g ? w(s[t], d, "vCenter", "left", u, l) : Math.abs(s[t].right - d.left) > h && Math.abs(s[t].right - d.left) <= g ? w(s[t], d, "right", "left", u, l) : Math.abs(s[t].left - d.vCenter) > h && Math.abs(s[t].left - d.vCenter) <= g ? w(s[t], d, "left", "vCenter", u, l) : Math.abs(s[t].vCenter - d.vCenter) > h && Math.abs(s[t].vCenter - d.vCenter) <= g ? w(s[t], d, "vCenter", "vCenter", u, l) : Math.abs(s[t].right - d.vCenter) > h && Math.abs(s[t].right - d.vCenter) <= g ? w(s[t], d, "right", "vCenter", u, l) : Math.abs(s[t].left - d.right) > h && Math.abs(s[t].left - d.right) <= g ? w(s[t], d, "left", "right", u, l) : Math.abs(s[t].vCenter - d.right) > h && Math.abs(s[t].vCenter - d.right) <= g ? w(s[t], d, "vCenter", "right", u, l) : Math.abs(s[t].right - d.right) > h && Math.abs(s[t].right - d.right) <= g ? w(s[t], d, "right", "right", u, l) : Math.abs(s[t].top - d.top) > h && Math.abs(s[t].top - d.top) <= g ? B(s[t], d, "top", "top", p, l) : Math.abs(s[t].hCenter - d.top) > h && Math.abs(s[t].hCenter - d.top) <= g ? B(s[t], d, "hCenter", "top", p, l) : Math.abs(s[t].bottom - d.top) > h && Math.abs(s[t].bottom - d.top) <= g ? B(s[t], d, "bottom", "top", p, l) : Math.abs(s[t].top - d.hCenter) > h && Math.abs(s[t].top - d.hCenter) <= g ? B(s[t], d, "top", "hCenter", p, l) : Math.abs(s[t].hCenter - d.hCenter) > h && Math.abs(s[t].hCenter - d.hCenter) <= g ? B(s[t], d, "hCenter", "hCenter", p, l) : Math.abs(s[t].bottom - d.hCenter) > h && Math.abs(s[t].bottom - d.hCenter) <= g ? B(s[t], d, "bottom", "hCenter", p, l) : Math.abs(s[t].top - d.bottom) > h && Math.abs(s[t].top - d.bottom) <= g ? B(s[t], d, "top", "bottom", p, l) : Math.abs(s[t].hCenter - d.bottom) > h && Math.abs(s[t].hCenter - d.bottom) <= g ? B(s[t], d, "hCenter", "bottom", p, l) : Math.abs(s[t].bottom - d.bottom) > h && Math.abs(s[t].bottom - d.bottom) <= g ? B(s[t], d, "bottom", "bottom", p, l) : (y(s[t]), _(s[t])))
+ }), i.data.left = window.hinnn.pt.toPx(d.left), i.data.top = window.hinnn.pt.toPx(d.top)), c = (t = e.parent.className.endsWith("design") ? e.parent : e.parent.offsetParent).clientWidth, t = t.clientHeight, n = e.target.clientWidth, r = e.target.clientHeight, o = a = 0, m.options.designTarget && m.options.designTarget.options.transform && (A = m.options.designTarget.options.getRectInfo(), a = window.hinnn.pt.toPx(A.diffW), o = window.hinnn.pt.toPx(A.diffH)), e.left < 0 - a ? e.left = 0 - a : e.left >= c - n + a && (e.left = c - n + a), e.top < 0 - o ? e.top = 0 - o : e.top >= t - r + o && (e.top = t - r + o), i.data = e), 0 != m.options.onDrag.call(i.data.target, i, x.fn.dragLengthCNum(i.data.left, m.options), x.fn.dragLengthCNum(i.data.top, m.options)) && I(i), i.data.target);
+ return m.hidroppables.each(function() {
+ var e, t = x(this);
+ t.hidroppable("options").disabled || (e = t.offset(), i.pageX > e.left && i.pageX < e.left + t.outerWidth() && i.pageY > e.top && i.pageY < e.top + t.outerHeight() ? (this.entered || (x(this).trigger("_dragenter", [v]), this.entered = !0), x(this).trigger("_dragover", [v])) : this.entered && (x(this).trigger("_dragleave", [v]), this.entered = !1))
+ }), !1
+ }
+
+ function l(r) {
+ x.fn.hidraggable.isDragging = !1, y(), _();
+ var e, t, i = x.data(r.data.target, "hidraggable"),
+ n = i.proxy,
+ A = i.options;
+
+ function a() {
+ n && n.remove(), i.proxy = null
+ }
+
+ function o() {
+ var n = !1;
+ return i.hidroppables.each(function() {
+ var e, t, i = x(this);
+ if (!i.hidroppable("options").disabled) return e = i.offset(), t = this.style.transform && parseFloat(this.style.transform.slice(6, -1)) || 1, r.pageX > e.left && r.pageX < e.left + i.outerWidth() * t && r.pageY > e.top && r.pageY < e.top + i.outerHeight() * t ? (A.revert && x(r.data.target).css({
+ position: r.data.startPosition,
+ left: r.data.startLeft,
+ top: r.data.startTop
+ }), x(this).trigger("_drop", [r.data.target]), a(), n = !0, this.entered = !1) : void 0
+ }), n || A.revert || a(), n
+ }
+ return A.revert ? 1 == o() ? x(r.data.target).css({
+ position: r.data.startPosition,
+ left: r.data.startLeft,
+ top: r.data.startTop
+ }) : n ? (t = n.parent()[0] == document.body ? (e = r.data.startX - r.data.offsetWidth, r.data.startY - r.data.offsetHeight) : (e = r.data.startLeft, r.data.startTop), n.animate({
+ left: e,
+ top: t
+ }, function() {
+ a()
+ })) : x(r.data.target).animate({
+ left: r.data.startLeft,
+ top: r.data.startTop
+ }, function() {
+ x(r.data.target).css("position", r.data.startPosition)
+ }) : (x(r.data.target).css({
+ position: "absolute",
+ left: x.fn.dragLengthC(r.data.left, A),
+ top: x.fn.dragLengthC(r.data.top, A)
+ }), o()), A.onStopDrag.call(r.data.target, r), x(document).unbind(".hidraggable"), setTimeout(function() {
+ x("body").css("cursor", "")
+ }, 100), !1
+ }
+ var x;
+ (x = jQuery).fn.hidraggable = function(i, e) {
+ return "string" == typeof i ? x.fn.hidraggable.methods[i](this, e) : this.each(function() {
+ var e = x.data(this, "hidraggable"),
+ e = e ? (e.handle.unbind(".hidraggable"), x.extend(e.options, i)) : x.extend({}, x.fn.hidraggable.defaults, x.fn.hidraggable.parseOptions(this), i || {}),
+ t = e.handle ? "string" == typeof e.handle ? x(e.handle, this) : e.handle : x(this);
+
+ function o(e) {
+ var t = x.data(e.data.target, "hidraggable"),
+ i = t.handle,
+ n = x(i).offset(),
+ r = x(i)[0].style.transform && parseInt(x(i)[0].style.transform.slice(7, -1)),
+ A = t.options.getScale(),
+ a = x(i).outerWidth(),
+ o = x(i).outerHeight(),
+ s = (r && (r = r * Math.PI / 180, s = x(i).outerWidth(), i = x(i).outerHeight(), c = Math.sin(r), r = Math.cos(r), a = Math.abs(s * r) + Math.abs(i * c), o = Math.abs(s * c) + Math.abs(i * r)), A && (a *= A, o *= A), e.pageY - n.top),
+ c = n.left + a - e.pageX,
+ i = n.top + o - e.pageY,
+ r = e.pageX - n.left;
+ return Math.min(s, c, i, r) > t.options.edge
+ }
+ x.data(this, "hidraggable", {
+ options: e,
+ handle: t
+ }), e.disabled ? x(this).css("cursor", "") : t.unbind(".hidraggable").bind("mousemove.hidraggable", {
+ target: this
+ }, function(e) {
+ var t;
+ x.fn.hidraggable.isDragging || (t = x.data(e.data.target, "hidraggable").options, o(e) ? x(this).css("cursor", t.cursor) : x(this).css("cursor", ""))
+ }).bind("mouseleave.hidraggable", {
+ target: this
+ }, function(e) {
+ x(this).css("cursor", "")
+ }).bind("mousedown.hidraggable", {
+ target: this
+ }, function(e) {
+ var t, i, n, r, A, a;
+ 0 != o(e) && (x(this).css("cursor", ""), t = x(e.data.target).position(), r = x(e.data.target).offset(), !(t = {
+ startPosition: x(e.data.target).css("position"),
+ startLeft: t.left,
+ startTop: t.top,
+ left: t.left,
+ top: t.top,
+ startX: e.pageX,
+ startY: e.pageY,
+ offsetWidth: e.pageX - r.left,
+ offsetHeight: e.pageY - r.top,
+ target: e.data.target,
+ parent: x(e.data.target).parent()[0]
+ }) !== (r = x.data(e.data.target, "hidraggable")).options.draggable) && "r resizebtn" != e.target.className && ((r = r.options.getScale()) && (t.left /= r, t.top /= r, t.startLeft /= r, t.startTop /= r), (r = t.target.style.transform && parseInt(t.target.style.transform.slice(7, -1))) && (r = r * Math.PI / 180, a = x(e.data.target).outerWidth(), i = x(e.data.target).outerHeight(), n = Math.sin(r), r = Math.cos(r), A = (Math.abs(a * r) + Math.abs(i * n) - a) / 2, a = (Math.abs(a * n) + Math.abs(i * r) - i) / 2, t.left += A, t.top += a, t.startLeft += A, t.startTop += a), x.extend(e.data, t), 0 != x.data(e.data.target, "hidraggable").options.onBeforeDrag.call(e.data.target, e)) && (x(document).bind("mousedown.hidraggable", e.data, s), x(document).bind("mousemove.hidraggable", e.data, c), x(document).bind("mouseup.hidraggable", e.data, l))
+ })
+ })
+ }, x.fn.hidraggable.methods = {
+ options: function(e) {
+ return x.data(e[0], "hidraggable").options
+ },
+ update: function(t, i) {
+ i && "object" == Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_5__.a)(i) && x.data(t[0], "hidraggable") && Object.keys(i).forEach(function(e) {
+ x.data(t[0], "hidraggable").options[e] = i[e]
+ })
+ },
+ proxy: function(e) {
+ return x.data(e[0], "hidraggable").proxy
+ },
+ enable: function(e) {
+ return e.each(function() {
+ x(this).hidraggable({
+ disabled: !1
+ })
+ })
+ },
+ disable: function(e) {
+ return e.each(function() {
+ x(this).hidraggable({
+ disabled: !0
+ })
+ })
+ }
+ }, x.fn.hidraggable.parseOptions = function(e) {
+ var t = x(e);
+ return x.extend({}, x.hiprintparser.parseOptions(e, ["cursor", "handle", "axis", {
+ revert: "boolean",
+ deltaX: "number",
+ deltaY: "number",
+ edge: "number"
+ }]), {
+ disabled: !!t.attr("disabled") || void 0
+ })
+ }, x.fn.hidraggable.defaults = {
+ proxy: null,
+ revert: !1,
+ cursor: "move",
+ deltaX: null,
+ deltaY: null,
+ handle: null,
+ disabled: !1,
+ edge: 0,
+ axis: null,
+ getScale: function(e) {},
+ onBeforeDrag: function(e) {},
+ onStartDrag: function(e) {},
+ onDrag: function(e) {},
+ onStopDrag: function(e) {}
+ }, x.fn.hidraggable.isDragging = !1
+ }, function(e, t) {
+ var n;
+ (n = jQuery).fn.hidroppable = function(t, e) {
+ return "string" == typeof t ? n.fn.hidroppable.methods[t](this, e) : (t = t || {}, this.each(function() {
+ var i, e = n.data(this, "hidroppable");
+ e ? n.extend(e.options, t) : (n(i = this).addClass("hidroppable"), n(i).bind("_dragenter", function(e, t) {
+ n.data(i, "hidroppable").options.onDragEnter.apply(i, [e, t])
+ }), n(i).bind("_dragleave", function(e, t) {
+ n.data(i, "hidroppable").options.onDragLeave.apply(i, [e, t])
+ }), n(i).bind("_dragover", function(e, t) {
+ n.data(i, "hidroppable").options.onDragOver.apply(i, [e, t])
+ }), n(i).bind("_drop", function(e, t) {
+ n.data(i, "hidroppable").options.onDrop.apply(i, [e, t])
+ }), n.data(this, "hidroppable", {
+ options: n.extend({}, n.fn.hidroppable.defaults, n.fn.hidroppable.parseOptions(this), t)
+ }))
+ }))
+ }, n.fn.hidroppable.methods = {
+ options: function(e) {
+ return n.data(e[0], "hidroppable").options
+ },
+ enable: function(e) {
+ return e.each(function() {
+ n(this).hidroppable({
+ disabled: !1
+ })
+ })
+ },
+ disable: function(e) {
+ return e.each(function() {
+ n(this).hidroppable({
+ disabled: !0
+ })
+ })
+ }
+ }, n.fn.hidroppable.parseOptions = function(e) {
+ var t = n(e);
+ return n.extend({}, n.hiprintparser.parseOptions(e, ["accept"]), {
+ disabled: !!t.attr("disabled") || void 0
+ })
+ }, n.fn.hidroppable.defaults = {
+ accept: null,
+ disabled: !1,
+ onDragEnter: function(e, t) {},
+ onDragOver: function(e, t) {},
+ onDragLeave: function(e, t) {},
+ onDrop: function(e, t) {}
+ }
+ }, function(e, t) {
+ var l;
+ (l = jQuery).hiprintparser = {
+ parseOptions: function(e, t) {
+ var i = l(e),
+ n = {},
+ r = l.trim(i.attr("data-options"));
+ if (r && ("{" != r.substring(0, 1) && (r = "{" + r + "}"), n = new Function("return " + r)()), t) {
+ for (var A = {}, a = 0; a < t.length; a++) {
+ var o = t[a];
+ if ("string" == typeof o) A[o] = "width" == o || "height" == o || "left" == o || "top" == o ? parseInt(e.style[o]) || void 0 : i.attr(o);
+ else
+ for (var s in o) {
+ var c = o[s];
+ "boolean" == c ? A[s] = i.attr(s) ? "true" == i.attr(s) : void 0 : "number" == c && (A[s] = "0" == i.attr(s) ? 0 : parseFloat(i.attr(s)) || void 0)
+ }
+ }
+ l.extend(n, A)
+ }
+ return n
+ }
+ }, l.fn.dragLengthC = function(e, t) {
+ return "pt" == t.moveUnit ? l.fn.dragLengthCNum(e, t) + "pt" : l.fn.dragLengthCNum(e, t)
+ }, l.fn.dragLengthCNum = function(e, t) {
+ var i, n = 3;
+ return "pt" == t.moveUnit && (i = .75 * e, t.minMove) && (n = t.minMove), Math.round(i / n) * n
+ }
+ }, function(e, t) {
+ var i, _ = jQuery,
+ h = {
+ maxPanelIndex: 0
+ };
+ (i = function(e) {
+ this.options = _.data(e.target, "hireizeable").options, this.init(e.target)
+ }).prototype = {
+ numHandlerText: function(e) {
+ return this.numHandler(e) + "pt"
+ },
+ numHandler: function(e) {
+ var t = 1.5;
+ return this.options.minResize && (t = this.options.minResize), Math.round(.75 * e / t) * t
+ },
+ init: function(e) {
+ this.initResizeBox(e)
+ },
+ initResizeBox: function(u) {
+ var f = this;
+ _(u).each(function() {
+ function e() {
+ var i = [],
+ n = f.options.showPoints;
+ return _.each([r, A, a, o, s, c, l, p], function(e, t) {
+ -1 < _.inArray(t.name, n) && i.push(t.target)
+ }), i
+ }
+ h.maxPanelIndex += 1, f.options.noContainer ? t = _(u) : (t = _("')).css({
+ width: "100%",
+ height: "100%",
+ top: 0,
+ left: 0,
+ position: "absolute",
+ "background-color": "rgba(0,0,0,0.5)",
+ cursor: "move",
+ display: "none"
+ }), f.appendHandler(t, _(this));
+ var t, r = {
+ name: "n",
+ target: _('')
+ },
+ A = {
+ name: "s",
+ target: _('')
+ },
+ a = {
+ name: "w",
+ target: _('')
+ },
+ o = {
+ name: "e",
+ target: _('')
+ },
+ s = {
+ name: "ne",
+ target: _('')
+ },
+ c = {
+ name: "nw",
+ target: _('')
+ },
+ l = {
+ name: "se",
+ target: _('')
+ },
+ p = {
+ name: "sw",
+ target: _('')
+ },
+ r = {
+ name: "r",
+ target: _('')
+ },
+ i = _(''),
+ n = _('
✕
'),
+ d = (f.refreshSizeBox(void 0, i, t), 0 != f.options.draggable && (t.append(n), t.on("mousedown", ".del-btn", function() {
+ var e = new KeyboardEvent("keydown", {
+ bubbles: !0,
+ keyCode: 46
+ });
+ u.dispatchEvent(e)
+ })), f.addHandlerCss(e()), f.appendHandler(e(), t), f.bindResizeEvent(t, _(this)), _(this));
+ _(t).on("mousedown", ".resizebtn", function() {
+ d.addClass("resizeing")
+ }), _(".easyui-droppable").on("mouseup", function() {
+ d.removeClass("resizeing")
+ }), f.bindTrigger(_(this))
+ }), f.bindHidePanel()
+ },
+ addHandlerCss: function(e) {
+ for (var t = 0; t < e.length; t++) e[t].css({
+ position: "absolute",
+ width: "8px",
+ height: "8px",
+ background: "#ff6600",
+ "border-radius": "50%"
+ })
+ },
+ appendHandler: function(e, t) {
+ t.find(".resize-panel").remove();
+ for (var i = 0; i < e.length; i++) t.append(e[i])
+ },
+ refreshSizeBox: function(e, t, i) {
+ if (this.options.showSizeBox) {
+ var n, r;
+ if (t && i.append(t), e && e.length) n = e[0].style, r = e.children("div[panelindex]").find(".size-box");
+ else if (i && i.parent()) {
+ if ((e = i.parent()).hasClass("hiprint-printPaper-content")) return;
+ (n = e[0].style).width || (n.width = hinnn.px.toPt(e[0].offsetWidth) + "pt"), n.height || (n.height = hinnn.px.toPt(e[0].offsetHeight) + "pt"), r = e.children("div[panelindex]").find(".size-box")
+ }
+ r && (r.text(n.width + " x " + n.height), r.css("top", -(r.outerHeight() || 20)))
+ }
+ },
+ triggerResize: function(e, t) {
+ t.ctrlKey || t.metaKey || (e.siblings().children("div[panelindex]").removeClass("selected"), e.siblings().children("div[panelindex]").css({
+ display: "none"
+ })), e.children("div[panelindex]").addClass("selected"), e.children("div[panelindex]").css({
+ display: "block"
+ }), this.refreshSizeBox(e)
+ },
+ bindResizeEvent: function(A, e) {
+ var a = this,
+ o = 0,
+ s = 0,
+ c = A.width(),
+ l = A.height(),
+ p = A.offset().left,
+ d = A.offset().top,
+ u = a.options.noContainer ? _(e) : A.parent(),
+ f = !1,
+ h = (A.on("mousedown", ".e", function(e) {
+ o = e.pageX, c = A.width(), f = !0
+ }), !1),
+ g = (A.on("mousedown", ".s", function(e) {
+ s = e.pageY, l = A.height(), h = !0
+ }), !1),
+ m = (A.on("mousedown", ".w", function(e) {
+ o = e.pageX, c = A.width(), g = !0, p = u.offset().left
+ }), !1),
+ v = (A.on("mousedown", ".n", function(e) {
+ s = e.pageY, l = A.height(), m = !0, d = u.offset().top
+ }), !1),
+ b = (A.on("mousedown", ".ne", function(e) {
+ o = e.pageX, s = e.pageY, c = A.width(), l = A.height(), v = !0, d = u.offset().top
+ }), !1),
+ I = (A.on("mousedown", ".nw", function(e) {
+ o = e.pageX, s = e.pageY, c = A.width(), l = A.height(), d = u.offset().top, p = u.offset().left, b = !0
+ }), !1),
+ w = (A.on("mousedown", ".se", function(e) {
+ o = e.pageX, s = e.pageY, c = A.width(), l = A.height(), I = !0
+ }), !1),
+ y = (A.on("mousedown", ".sw", function(e) {
+ o = e.pageX, s = e.pageY, c = A.width(), l = A.height(), w = !0, p = u.offset().left
+ }), !1),
+ B = (A.on("mousedown", ".r", function(e) {
+ o = e.pageX, s = e.pageY, c = A.width(), l = A.height(), y = !0, p = c / 2 + u.offset().left, d = l / 2 + u.offset().top
+ }), A.on("dblclick", ".r", function(e) {
+ u.css({
+ transform: "rotate(0deg)"
+ }), a.options.onResize(e, void 0, void 0, void 0, void 0, 0)
+ }), !1);
+ A.on("mousedown", function(e) {
+ a.options.onBeforeResize(), o = e.pageX, s = e.pageY, d = u.offset().top, p = u.offset().left, B = !1
+ }), _(a.options.stage).on("mousemove", function(e) {
+ var t, i, n, r;
+ f ? (n = (e.pageX - o) / a.options.getScale(), A.css({
+ width: "100%"
+ }), u.css({
+ width: a.numHandlerText(c + n)
+ }), a.options.onResize(e, void 0, a.numHandler(c + n), void 0, void 0)) : h ? (r = (e.pageY - s) / a.options.getScale(), A.css({
+ height: "100%"
+ }), u.css({
+ height: a.numHandlerText(l + r)
+ }), a.options.onResize(e, a.numHandler(l + r), void 0, void 0, void 0)) : y ? (A.css({
+ height: "100%"
+ }), i = e.pageX, i = 360 * (i - o) / 100, o = e.pageX, i = (u[0].style.transform && parseInt(u[0].style.transform.slice(7, -1)) || 0) + i, 360 < Math.abs(i) && (i %= 360), u.css({
+ transform: "rotate(" + i + "deg)"
+ }), a.options.onResize(e, void 0, void 0, void 0, void 0, i)) : g ? (n = (e.pageX - o) / a.options.getScale(), A.css({
+ width: "100%"
+ }), u.css({
+ width: a.numHandlerText(c - n),
+ left: a.numHandlerText(a.options.noDrag ? void 0 : a.numHandler(p + n))
+ }), a.options.onResize(e, void 0, a.numHandler(c - n), void 0, a.options.noDrag ? void 0 : a.numHandler(p + n))) : m ? (r = (e.pageY - s) / a.options.getScale(), A.css({
+ height: "100%"
+ }), u.css({
+ height: a.numHandlerText(l - r),
+ top: a.numHandlerText(a.options.noDrag ? void 0 : d + r)
+ }), a.options.onResize(e, a.numHandler(l - r), void 0, a.options.noDrag ? void 0 : a.numHandler(d + r), void 0)) : v ? (n = (e.pageX - o) / a.options.getScale(), r = (e.pageY - s) / a.options.getScale(), A.css({
+ height: "100%",
+ width: "100%"
+ }), u.css({
+ height: a.numHandlerText(l - r),
+ top: a.numHandlerText(a.options.noDrag ? void 0 : d + r),
+ width: a.numHandlerText(c + n)
+ }), a.options.onResize(e, a.numHandler(l - r), a.numHandler(c + n), a.options.noDrag ? void 0 : a.numHandler(d + r), void 0)) : b ? (n = (e.pageX - o) / a.options.getScale(), r = (e.pageY - s) / a.options.getScale(), A.css({
+ height: "100%",
+ width: "100%"
+ }), u.css({
+ height: a.numHandlerText(l - r),
+ top: a.numHandlerText(a.options.noDrag ? void 0 : d + r),
+ width: a.numHandlerText(c - n),
+ left: a.numHandlerText(a.options.noDrag ? void 0 : p + n)
+ }), a.options.onResize(e, a.numHandler(l - r), a.numHandler(c - n), a.options.noDrag ? void 0 : a.numHandler(d + r), a.options.noDrag ? void 0 : a.numHandler(p + n))) : I ? (n = (e.pageX - o) / a.options.getScale(), r = (e.pageY - s) / a.options.getScale(), A.css({
+ width: "100%",
+ height: "100%"
+ }), e.shiftKey ? (u.css({
+ width: a.numHandlerText(c + n),
+ height: a.numHandlerText(l + r)
+ }), a.options.onResize(e, a.numHandler(l + r), a.numHandler(c + n), void 0, void 0)) : (i = l + r, i = (t = c + n) * (l / c), u.css({
+ width: a.numHandlerText(t),
+ height: a.numHandlerText(i)
+ }), a.options.onResize(e, a.numHandler(i), a.numHandler(t), void 0, void 0))) : w ? (n = (e.pageX - o) / a.options.getScale(), r = (e.pageY - s) / a.options.getScale(), A.css({
+ width: "100%",
+ height: "100%"
+ }), u.css({
+ width: a.numHandlerText(c - n),
+ left: a.numHandlerText(a.options.noDrag ? void 0 : p + n),
+ height: a.numHandlerText(l + r)
+ }), a.options.onResize(e, a.numHandler(l + r), a.numHandler(c - n), a.numHandler(otundefinedop), a.options.noDrag ? void 0 : a.numHandler(p + n))) : B && (n = (e.pageX - o) / a.options.getScale(), r = (e.pageY - s) / a.options.getScale(), u.css({
+ left: a.numHandlerText(a.options.noDrag ? void 0 : p + n),
+ top: a.numHandlerText(a.options.noDrag ? void 0 : d + r)
+ }), a.options.onResize(e, void 0, void 0, a.options.noDrag ? void 0 : a.numHandler(d + r), a.options.noDrag ? void 0 : a.numHandler(p + n)))
+ }).on("mouseup", function(e) {
+ (f || h || g || m || v || b || w || I || B || y) && a.options.onStopResize(y), y = B = I = w = b = v = m = g = h = f = !1
+ })
+ },
+ bindTrigger: function(t) {
+ var i = this;
+ t.on("click", function(e) {
+ e.stopPropagation(), i.triggerResize(t, e), _(".mouseRect").remove()
+ })
+ },
+ bindHidePanel: function(e) {
+ var t;
+ h.maxPanelIndex < 2 && (t = this.options.stage, _(t).bind("click", function(e) {
+ e.target.className && "string" == _typeof(e.target.className) && e.target.className.includes("design") && (e.stopPropagation(), _("div[panelindex]").css({
+ display: "none"
+ }), _("div[panelindex]").removeClass("selected"))
+ }))
+ }
+ }, _.fn.extend({
+ hireizeable: function(t) {
+ return this.each(function() {
+ var e = _.data(this, "hireizeable"),
+ e = e ? _.extend({}, e.options, t || {}) : _.extend({}, _.fn.hireizeable.defaults, t || {});
+ _.data(this, "hireizeable", {
+ options: e
+ }), new i({
+ target: this,
+ onResize: function(e, t, i, n, r) {},
+ onStopResize: function(e, t, i, n, r) {}
+ })
+ })
+ }
+ }), _.fn.hireizeable.defaults = {
+ stage: document,
+ reizeUnit: "pt",
+ minResize: 1.5,
+ showSizeBox: !0,
+ showPoints: ["s", "e"],
+ noContainer: !1,
+ onBeforeResize: function(e, t, i, n, r) {},
+ onResize: function(e, t, i, n, r) {},
+ onStopResize: function(e, t, i, n, r) {},
+ noDrag: !1
+ }
+ }, function(e, t) {
+ var r = "connected",
+ i = "reconnecting";
+ window.hiwebSocket = {
+ opened: !1,
+ name: "webSockets",
+ host: "http://localhost:17521",
+ token: "vue-plugin-hiprint",
+ reconnectTimeout: 6e4,
+ reconnectWindowSetTimeout: null,
+ reconnectDelay: 2e3,
+ supportsKeepAlive: function() {
+ return !0
+ },
+ hasIo: function(e) {
+ return window.io
+ },
+ send: function(e) {
+ try {
+ this.socket.emit("news", e)
+ } catch (e) {}
+ },
+ sendByFragments: function(e) {
+ var r = this;
+ try {
+ var t = e.fragmentSize,
+ A = void 0 === t ? 5e4 : t,
+ i = e.sendInterval,
+ a = void 0 === i ? 10 : i,
+ o = e.html,
+ s = Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2__.a)(e, _excluded),
+ c = e.html.length,
+ l = Math.ceil(c / A);
+ Array.apply(void 0, {
+ length: l
+ }).forEach(function(e, t) {
+ var i = t * A,
+ n = t + 1 === A ? c : (t + 1) * A;
+ setTimeout(function() {
+ r.socket.emit("printByFragments", Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.a)(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.a)({}, s), {}, {
+ index: t,
+ total: l,
+ htmlFragment: o.slice(i, n)
+ }))
+ }, a * t)
+ })
+ } catch (e) {}
+ },
+ getPrinterList: function() {
+ return this.printerList
+ },
+ refreshPrinterList: function() {
+ try {
+ this.socket.emit("refreshPrinterList")
+ } catch (e) {}
+ },
+ getPaperSizeInfo: function(e) {
+ try {
+ this.socket.emit("getPaperSizeInfo", e)
+ } catch (e) {}
+ },
+ getClients: function() {
+ try {
+ this.socket.emit("getClients")
+ } catch (e) {}
+ },
+ getClientInfo: function() {
+ try {
+ this.socket.emit("getClientInfo")
+ } catch (e) {}
+ },
+ getAddress: function(e) {
+ try {
+ for (var t, i = arguments.length, n = new Array(1 < i ? i - 1 : 0), r = 1; r < i; r++) n[r - 1] = arguments[r];
+ (t = this.socket).emit.apply(t, ["address", e].concat(n))
+ } catch (e) {}
+ },
+ ippPrint: function(e) {
+ try {
+ this.socket.emit("ippPrint", e)
+ } catch (e) {}
+ },
+ ippRequest: function(e) {
+ try {
+ this.socket.emit("ippRequest", e)
+ } catch (e) {}
+ },
+ setHost: function(e, t, i) {
+ "function" == typeof t && (i = t, t = void 0), this.host = e, this.token = t, this.stop(), this.start(i)
+ },
+ start: function(t) {
+ var i = this,
+ n = this;
+ window.WebSocket && !this.socket && (this.socket = window.io(this.host, {
+ transports: ["websocket"],
+ reconnectionAttempts: 5,
+ auth: {
+ token: this.token
+ }
+ }), this.socket.on("connect", function(e) {
+ n.opened = !0, i.socket.on("success", function(e) {
+ hinnn.event.trigger("printSuccess_" + e.templateId, e)
+ }), i.socket.on("error", function(e) {
+ hinnn.event.trigger("printError_" + e.templateId, e)
+ }), i.socket.on("clients", function(e) {
+ n.clients = e, hinnn.event.trigger("clients", e)
+ }), i.socket.on("clientInfo", function(e) {
+ n.clientInfo = e, hinnn.event.trigger("clientInfo", e)
+ }), i.socket.on("printerList", function(e) {
+ n.printerList = e, hinnn.event.trigger("printerList", e)
+ }), i.socket.on("paperSizeInfo", function(e) {
+ n.paperSize = Array.isArray(e) ? e : [e], hinnn.event.trigger("paperSizeInfo", n.paperSize)
+ }), i.socket.on("address", function(e, t, i) {
+ hinnn.event.trigger("address_" + e, {
+ addr: t,
+ e: i
+ })
+ }), i.socket.on("ippPrinterConnected", function(e) {
+ hinnn.event.trigger("ippPrinterConnected", e)
+ }), i.socket.on("ippPrinterCallback", function(e, t) {
+ hinnn.event.trigger("ippPrinterCallback", {
+ err: e,
+ res: t
+ })
+ }), i.socket.on("ippRequestCallback", function(e, t) {
+ hinnn.event.trigger("ippRequestCallback", {
+ err: e,
+ res: t
+ })
+ }), n.state = r, t && t(!0, e)
+ }), this.socket.on("connect_error", function(e) {
+ hinnn.event.trigger("connect_error", e)
+ }), this.socket.on("disconnect", function() {
+ n.opened = !1, t && t(!1)
+ })), t && t(!1)
+ },
+ reconnect: function() {
+ this.state !== r && this.state !== i || (this.stop(), this.ensureReconnectingState() && this.start())
+ },
+ stop: function() {
+ this.socket && (this.socket.close(), this.socket = null, this.printerList = [])
+ },
+ ensureReconnectingState: function() {
+ return this.state = i, this.state === i
+ }
+ }
+ }, function(e, t, i) {
+ var n = i(28);
+ "string" == typeof n && (n = [
+ [e.i, n, ""]
+ ]);
+ i(30)(n, {
+ hmr: !0,
+ transform: void 0,
+ insertInto: void 0
+ }), n.locals && (e.exports = n.locals)
+ }, function(e, t, i) {
+ (e.exports = i(29)(!1)).push([e.i, ".hicontextmenu {\r\n\tposition: absolute;\r\n\tdisplay: inline-block;\r\n\twidth: 215px;\r\n\tpadding: 0 0;\r\n\tmargin: 0;\r\n\tfont-family: inherit;\r\n\tfont-size: inherit;\r\n\tlist-style-type: none;\r\n\tlist-style: none;\r\n\tbackground: #fff;\r\n\tborder: 1px solid #bebebe;\r\n\tborder-radius: 2px;\r\n\tfont-size: 13px;\r\n}\r\n\r\n.hicontextmenuroot .hicontextmenuitem {\r\n\tposition: relative;\r\n\t-webkit-box-sizing: content-box;\r\n\t-moz-box-sizing: content-box;\r\n\tbox-sizing: content-box;\r\n\tpadding: .2em 12px;\r\n\tcolor: #2f2f2f;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\ttext-decoration: none;\r\n\r\n\tuser-select: none;\r\n\tbackground-color: #fff;\r\n\r\n}\r\n\r\n.hicontextmenuroot>.hicontextmenuitem:hover,\r\n.hicontextmenuroot .hicontextmenuitem > a:hover {\r\n\tbackground-color: #f3f3f3;\r\n}\r\n\r\n.hicontextmenuroot .hicontextmenuitem>a {\r\n\ttext-decoration: none;\r\n\tcolor: #363636;\r\n\tline-height: 22px;\r\n\r\n}\r\n\r\n.hicontextmenuroot .hicontextsubmenu>ul {\r\n\tdisplay: none;\r\n\tposition: absolute;\r\n\r\n}\r\n\r\n.hicontextmenuroot .hicontextsubmenu:hover>ul {\r\n\tdisplay: block;\r\n\tleft: 100%;\r\n\ttop: -1px;\r\n\tmargin-left: 0px;\r\n}\r\n\r\n.hicontextmenuroot .borderBottom {\r\n\tborder-bottom: 1px solid #efe6e6;\r\n}\r\n\r\n.hicontextmenuroot .disable> a {\r\n \r\n color: #ccc;\r\n \r\n}\r\n.hicontextmenuroot>.disable:hover,\r\n.hicontextmenuroot .disable> a:hover {\r\n\tbackground-color:#fff;\r\n}", ""])
+ }, function(e, t, i) {
+ e.exports = function(A) {
+ var a = [];
+ return a.toString = function() {
+ return this.map(function(e) {
+ i = e[1] || "";
+ var t, i, n, r = (n = e[3]) ? (A && "function" == typeof btoa ? (t = "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(n)))) + " */", r = n.sources.map(function(e) {
+ return "/*# sourceURL=" + n.sourceRoot + e + " */"
+ }), [i].concat(r).concat([t])) : [i]).join("\n") : i;
+ return e[2] ? "@media " + e[2] + "{" + r + "}" : r
+ }).join("")
+ }, a.i = function(e, t) {
+ "string" == typeof e && (e = [
+ [null, e, ""]
+ ]);
+ for (var i = {}, n = 0; n < this.length; n++) {
+ var r = this[n][0];
+ null != r && (i[r] = !0)
+ }
+ for (n = 0; n < e.length; n++) {
+ var A = e[n];
+ null != A[0] && i[A[0]] || (t && !A[2] ? A[2] = t : t && (A[2] = "(" + A[2] + ") and (" + t + ")"), a.push(A))
+ }
+ }, a
+ }
+ }, function(e, t, n) {
+ var i, r, A, s = {},
+ a = (i = function() {
+ return window && document && document.all && !window.atob
+ }, A = {}, function(e, t) {
+ if ("function" == typeof e) return e();
+ if (void 0 === A[e]) {
+ t = function(e, t) {
+ return (t || document).querySelector(e)
+ }.call(this, e, t);
+ if (window.HTMLIFrameElement && _instanceof(t, window.HTMLIFrameElement)) try {
+ t = t.contentDocument.head
+ } catch (e) {
+ t = null
+ }
+ A[e] = t
+ }
+ return A[e]
+ }),
+ o = null,
+ c = 0,
+ l = [],
+ p = n(31);
+
+ function d(e, t) {
+ for (var i = 0; i < e.length; i++) {
+ var n = e[i],
+ r = s[n.id];
+ if (r) {
+ r.refs++;
+ for (var A = 0; A < r.parts.length; A++) r.parts[A](n.parts[A]);
+ for (; A < n.parts.length; A++) r.parts.push(v(n.parts[A], t))
+ } else {
+ for (var a = [], A = 0; A < n.parts.length; A++) a.push(v(n.parts[A], t));
+ s[n.id] = {
+ id: n.id,
+ refs: 1,
+ parts: a
+ }
+ }
+ }
+ }
+
+ function u(e, t) {
+ for (var i = [], n = {}, r = 0; r < e.length; r++) {
+ var A = e[r],
+ a = t.base ? A[0] + t.base : A[0],
+ A = {
+ css: A[1],
+ media: A[2],
+ sourceMap: A[3]
+ };
+ n[a] ? n[a].parts.push(A) : i.push(n[a] = {
+ id: a,
+ parts: [A]
+ })
+ }
+ return i
+ }
+
+ function f(e, t) {
+ var i = a(e.insertInto);
+ if (!i) throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
+ var n = l[l.length - 1];
+ if ("top" === e.insertAt) n ? n.nextSibling ? i.insertBefore(t, n.nextSibling) : i.appendChild(t) : i.insertBefore(t, i.firstChild), l.push(t);
+ else if ("bottom" === e.insertAt) i.appendChild(t);
+ else {
+ if ("object" != _typeof(e.insertAt) || !e.insertAt.before) throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
+ n = a(e.insertAt.before, i);
+ i.insertBefore(t, n)
+ }
+ }
+
+ function h(e) {
+ null !== e.parentNode && (e.parentNode.removeChild(e), 0 <= (e = l.indexOf(e))) && l.splice(e, 1)
+ }
+
+ function g(e) {
+ var t, i = document.createElement("style");
+ return void 0 === e.attrs.type && (e.attrs.type = "text/css"), void 0 === e.attrs.nonce && (t = n.nc) && (e.attrs.nonce = t), m(i, e.attrs), f(e, i), i
+ }
+
+ function m(t, i) {
+ Object.keys(i).forEach(function(e) {
+ t.setAttribute(e, i[e])
+ })
+ }
+
+ function v(t, e) {
+ var i, n, r, A, a;
+ if (e.transform && t.css) {
+ if (!(A = "function" == typeof e.transform ? e.transform(t.css) : e.transform.default(t.css))) return function() {};
+ t.css = A
+ }
+ return r = e.singleton ? (A = c++, i = o = o || g(e), n = w.bind(null, i, A, !1), w.bind(null, i, A, !0)) : t.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (A = e, a = document.createElement("link"), void 0 === A.attrs.type && (A.attrs.type = "text/css"), A.attrs.rel = "stylesheet", m(a, A.attrs), f(A, a), i = a, n = function(e, t, i) {
+ var n = i.css,
+ i = i.sourceMap,
+ r = void 0 === t.convertToAbsoluteUrls && i,
+ t = ((t.convertToAbsoluteUrls || r) && (n = p(n)), i && (n += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */"), new Blob([n], {
+ type: "text/css"
+ })),
+ r = e.href;
+ e.href = URL.createObjectURL(t), r && URL.revokeObjectURL(r)
+ }.bind(null, i, e), function() {
+ h(i), i.href && URL.revokeObjectURL(i.href)
+ }) : (i = g(e), n = function(e, t) {
+ var i = t.css,
+ t = t.media;
+ if (t && e.setAttribute("media", t), e.styleSheet) e.styleSheet.cssText = i;
+ else {
+ for (; e.firstChild;) e.removeChild(e.firstChild);
+ e.appendChild(document.createTextNode(i))
+ }
+ }.bind(null, i), function() {
+ h(i)
+ }), n(t),
+ function(e) {
+ e ? e.css === t.css && e.media === t.media && e.sourceMap === t.sourceMap || n(t = e) : r()
+ }
+ }
+ e.exports = function(e, a) {
+ if ("undefined" != typeof DEBUG && DEBUG && "object" != ("undefined" == typeof document ? "undefined" : _typeof(document))) throw new Error("The style-loader cannot be used in a non-browser environment");
+ (a = a || {}).attrs = "object" == _typeof(a.attrs) ? a.attrs : {}, a.singleton || "boolean" == typeof a.singleton || (a.singleton = function() {
+ return r = void 0 === r ? i.apply(this, arguments) : r
+ }()), a.insertInto || (a.insertInto = "head"), a.insertAt || (a.insertAt = "bottom");
+ var o = u(e, a);
+ return d(o, a),
+ function(e) {
+ for (var t, i = [], n = 0; n < o.length; n++) {
+ var r = o[n];
+ (t = s[r.id]).refs--, i.push(t)
+ }
+ for (e && d(u(e, a), a), n = 0; n < i.length; n++)
+ if (0 === (t = i[n]).refs) {
+ for (var A = 0; A < t.parts.length; A++) t.parts[A]();
+ delete s[t.id]
+ }
+ }
+ };
+ b = [];
+ var b, I = function(e, t) {
+ return b[e] = t, b.filter(Boolean).join("\n")
+ };
+
+ function w(e, t, i, n) {
+ var i = i ? "" : n.css;
+ e.styleSheet ? e.styleSheet.cssText = I(t, i) : (n = document.createTextNode(i), (i = e.childNodes)[t] && e.removeChild(i[t]), i.length ? e.insertBefore(n, i[t]) : e.appendChild(n))
+ }
+ }, function(e, t) {
+ e.exports = function(e) {
+ var i, n, t = "undefined" != typeof window && window.location;
+ if (t) return e && "string" == typeof e ? (i = t.protocol + "//" + t.host, n = i + t.pathname.replace(/\/[^\/]*$/, "/"), e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(e, t) {
+ t = t.trim().replace(/^"(.*)"$/, function(e, t) {
+ return t
+ }).replace(/^'(.*)'$/, function(e, t) {
+ return t
+ });
+ return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(t) ? e : (e = 0 === t.indexOf("//") ? t : 0 === t.indexOf("/") ? i + t : n + t.replace(/^\.\//, ""), "url(" + JSON.stringify(e) + ")")
+ })) : e;
+ throw new Error("fixUrls requires window.location")
+ }
+ }, function(e, t) {
+ var i, n;
+ window, document, i = jQuery, (n = function(e, t) {
+ this.init(e, t)
+ }).prototype = {
+ init: function(e, t) {
+ this.ele = e, this.defaults = {
+ menu: [{
+ text: "text",
+ menus: [{}, {}],
+ callback: function() {}
+ }],
+ target: function(e) {},
+ width: 100,
+ itemHeight: 28,
+ bgColor: "#fff",
+ color: "#333",
+ fontSize: 14,
+ hoverBgColor: "#f5f5f5"
+ }, this.opts = i.extend(!0, {}, this.defaults, t), this.random = (new Date).getTime() + parseInt(1e3 * Math.random()), this.eventBind()
+ },
+ renderMenu: function(e, t) {
+ var r, A = this,
+ i = t;
+ e && e.length && (r = jquery__WEBPACK_IMPORTED_MODULE_65___default()('
'), i || (i = r).addClass("hicontextmenuroot"), jquery__WEBPACK_IMPORTED_MODULE_65___default.a.each(e, function(e, t) {
+ var i = !!t.disable && t.disable(),
+ n = jquery__WEBPACK_IMPORTED_MODULE_65___default()('