((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(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(e, t) { return null != t && "undefined" != typeof Symbol && t[Symbol.hasInstance] ? !!t[Symbol.hasInstance](e) : e instanceof t } 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(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(e, t, i) { r.prototype.updatePosition = function(e, t) { this.left = e, this.top = t }; var n = r; 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 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(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 if (!formatter) { return null } try { var s = "formatter=" + formatter; eval(s) } catch (err) { console.log(err) } // if (this.printElementType.formatter && (formatter = this.printElementType.formatter), this.options.formatter) try { // var s = "formatter=" + this.options.formatter; // 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(A, e) { var a = this, o = void 0, s = void 0; A.attr("tabindex", "1"), A.keydown(function(e) { if ("INPUT" != e.target.tagName && (!a._editing || e.altKey) && !1 !== a.options.draggable) { var t = a.panel.printElements.filter(function(e) { return "block" == e.designTarget.children().last().css("display") && !e.printElementType.type.includes("table") }), i = 1 < t.length, n = _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance; switch (e.keyCode) { case 8: case 46: var r = _HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(a.templateId); r.deletePrintElement(a), hinnn.event.trigger("hiprintTemplateDataChanged_" + a.templateId, "删除"), hinnn.event.trigger("clearSettingContainer"), t.forEach(function(e) { r.deletePrintElement(e), hinnn.event.trigger("hiprintTemplateDataChanged_" + e.templateId, "删除") }), hinnn.event.trigger("clearSettingContainer"); break; case 37: o = a.options.getLeft(), i ? t.forEach(function(e) { e.updatePositionByMultipleSelect(0 - n, 0) }) : (a.updateSizeAndPositionOptions(o - n), A.css("left", a.options.displayLeft())), e.preventDefault(); break; case 38: s = a.options.getTop(), i ? t.forEach(function(e) { e.updatePositionByMultipleSelect(0, 0 - n) }) : (a.updateSizeAndPositionOptions(void 0, s - n), A.css("top", a.options.displayTop())), e.preventDefault(); break; case 39: o = a.options.getLeft(), i ? t.forEach(function(e) { e.updatePositionByMultipleSelect(n, 0) }) : (a.updateSizeAndPositionOptions(o + n), A.css("left", a.options.displayLeft())), e.preventDefault(); break; case 40: s = a.options.getTop(), i ? t.forEach(function(e) { e.updatePositionByMultipleSelect(0, n) }) : (a.updateSizeAndPositionOptions(void 0, s + n), A.css("top", a.options.displayTop())), e.preventDefault() } [37, 38, 39, 40].includes(e.keyCode) && hinnn.event.trigger("hiprintTemplateDataChanged_" + a.templateId, "键盘移动") } }) }, BasePrintElement.prototype.inRect = function(e) { var t = 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, a = jquery__WEBPACK_IMPORTED_MODULE_65___default()(e.target[0]).position().left / t, t = jquery__WEBPACK_IMPORTED_MODULE_65___default()(e.target[0]).position().top / t, o = e.target[0].offsetHeight, e = e.target[0].offsetWidth; return a < A && i < a + e && n < t + o && t < r }, BasePrintElement.prototype.multipleSelect = function(e) { e ? this.designTarget.addClass("multipleSelect") : this.designTarget.removeClass("multipleSelect") }, BasePrintElement.prototype.updatePositionByMultipleSelect = function(e, t) { !1 !== this.options.draggable && (this.updateSizeAndPositionOptions(e + this.options.getLeft(), t + this.options.getTop()), this.designTarget.css("left", this.options.displayLeft()), this.designTarget.css("top", this.options.displayTop())) }, BasePrintElement }() }, function(e, t, i) { I.prototype.init = function(e) { this.target = jquery__WEBPACK_IMPORTED_MODULE_65___default()(''), e.getTarget().append(this.target), this.target.focus() }, I.prototype.getValue = function() { return this.target.val() }, I.prototype.setValue = function(e) { this.target.val(e) }, I.prototype.destroy = function() { this.target.remove() }; var n = I, r = (Object.defineProperty(b, "Instance", { get: function() { return b._instance = b._instance ? b._instance : new b }, enumerable: !0, configurable: !0 }), b), A = (v.prototype.init = function(e, i) { var n = '", this.target = jquery__WEBPACK_IMPORTED_MODULE_65___default()(n), i.getTarget().append(this.target), this.target.focus() }, v.prototype.getValue = function() { var e = this.target.val(); return this.target.find('option[value="' + e + '"]').text() + "#" + e }, v.prototype.setValue = function(e) { e && !this.target.find('option[value="' + e + '"]').length && this.target.find("select").prepend('"), this.target.find("select").val(e) }, v.prototype.destroy = function() { this.target.remove() }, v), a = (Object.defineProperty(m, "Instance", { get: function() { return m._instance = m._instance ? m._instance : new m }, enumerable: !0, configurable: !0 }), m), o = (Object.defineProperty(g, "Instance", { get: function() { return g._instance = r._instance ? g._instance : new g }, enumerable: !0, configurable: !0 }), g.prototype.createEditor = function(e) { return jquery__WEBPACK_IMPORTED_MODULE_65___default.a.extend({}, r.Instance[e]) }, g.prototype.createSelect = function(e) { return jquery__WEBPACK_IMPORTED_MODULE_65___default.a.extend({}, a.Instance[e]) }, g), s = i(10), c = i(14), l = i(11), p = (h.prototype.init = function(e, t) { var i = this; this.tableOptions = t, this.title = e.title, this.field = e.field, e.getTarget().unbind("dblclick.hitable").bind("dblclick.hitable", function() { e.isEditing = !0, i.beginEdit(e) }) }, h.prototype.getDisplayHtml = function() { return this.title }, h.prototype.beginEdit = function(t) { var i = this; i.tableOptions.options.fields && i.tableOptions.options.fields.length ? (this.editor = o.Instance.createSelect("select"), t.getTarget().html(""), this.editor.init(i.tableOptions.options.fields, t), this.editor.setValue(this.field || ""), jquery__WEBPACK_IMPORTED_MODULE_65___default()(this.editor.target).keydown(function(e) { 13 == e.keyCode && i.endEdit(t) }), jquery__WEBPACK_IMPORTED_MODULE_65___default()(this.editor.target).change(function(e) { i.endEdit(t) }), jquery__WEBPACK_IMPORTED_MODULE_65___default()(this.editor.target).blur(function(e) { i.endEdit(t) })) : (this.editor = o.Instance.createEditor("text"), t.getTarget().html(""), this.editor.init(t), (this.title || this.field) && (this.tableOptions.options.isEnableEditField ? this.editor.setValue((this.title || "") + "#" + (this.field || "")) : this.editor.setValue(this.title || "")), jquery__WEBPACK_IMPORTED_MODULE_65___default()(this.editor.target).keydown(function(e) { 13 == e.keyCode && i.endEdit(t) }), jquery__WEBPACK_IMPORTED_MODULE_65___default()(this.editor.target).blur(function(e) { i.endEdit(t) }), this.tableOptions.editingCell && this.tableOptions.editingCell.id != t.id && this.tableOptions.editingCell.innerElement.endEdit(this.tableOptions.editingCell), this.tableOptions.editingCell = t) }, h.prototype.endEdit = function(e) { e.isEditing = 0; var t, i = this.editor.getValue(); i ? this.tableOptions.options.isEnableEditField || this.tableOptions.options.fields ? (t = i.split("#"), e.title = this.title = t[0], 0 < t.length && (e.columnId = e.field = this.field = t[1]), e.id && e.target.attr("id", e.id), e.columnId && e.target.attr("column-id", e.columnId), hinnn.event.trigger("hiprintTemplateDataChanged_" + this.tableOptions.options.templateId, "调整表格列字段")) : e.title = this.title = i : this.tableOptions.options.isEnableEditField ? (e.title = this.title = "", e.field = this.field = "") : e.title = this.title = "", this.editor.destroy(), e.getTarget().html(this.title) }, h), d = function(e) { this.title = e.title, this.field = e.field, this.width = e.width, this.align = e.align, this.halign = e.halign, this.vAlign = e.vAlign, this.colspan = e.colspan, this.rowspan = e.rowspan, this.checked = e.checked, this.columnId = e.columnId, 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, this.renderFormatter = e.renderFormatter && e.renderFormatter.toString(), this.formatter2 = e.formatter2 && e.formatter2.toString(), this.styler2 = e.styler2 && e.styler2.toString(), this.stylerHeader = e.stylerHeader && e.stylerHeader.toString(), this.tableColumnHeight = e.tableColumnHeight, this.tableTextType = e.tableTextType, this.tableBarcodeMode = e.tableBarcodeMode, this.tableQRCodeLevel = e.tableQRCodeLevel }, u = (f.prototype.init = function(e, t, i, n) { this.isHead = n, this.rowId = i, this.isEditing = !1; n = /^[0-9]*$/, this.target = e, this.tableOptions = t, i = this.target.attr("colspan"), this.colspan = n.test(i) ? parseInt(i) : 1, e = this.target.attr("rowspan"); this.rowspan = n.test(e) ? parseInt(e) : 1, this.initEvent(), this.isHead && this.initInnerEelement() }, f.prototype.beginEdit = function() { var e; !this.isEditing && this.tableOptions.isEnableEdit && this.tableOptions.onBeforEdit(this) && (e = this.getValue(), this.editor = o.Instance.createEditor("text"), this.isEditing = !0, (this.tableOptions.editingCell = this).target.html(""), this.editor.init(this), this.editor.setValue(e)) }, f.prototype.endEdit = function() { this.isEditing = !1; var e = this.editor.getValue(); this.editor.destroy(), this.target.html(e) }, f.prototype.getTarget = function() { return this.target }, f.prototype.getValue = function() { return this.target.html() }, f.prototype.setValue = function(e) {}, f.prototype.initInnerEelement = function() { this.innerElement = new p, this.innerElement.init(this, this.tableOptions) }, f.prototype.initEvent = function() {}, f.prototype.isXYinCell = function(e, t) { e = new s.b({ x: e, y: t, height: 0, width: 0 }); return this.isOverlap(e) }, f.prototype.getTableRect = function() { return new s.b({ x: this.target.offset().left, y: this.target.offset().top, height: this.target[0].offsetHeight, width: this.target[0].offsetWidth }) }, f.prototype.isOverlap = function(e) { var t = this.getTableRect(); return e.x + e.width > t.x && t.x + t.width > e.x && e.y + e.height > t.y && t.y + t.height > e.y }, f.prototype.isInRect = function(e) { var t = e.rect, i = this.getTableRect(); return i.x >= t.x && i.x + i.width <= t.x + t.width && i.y >= t.y && i.y + i.height <= t.y + t.height && (i = c.a.mergeRect(t, i), JSON.stringify(t) == JSON.stringify(i) || (e.changed = !0, e.rect = i, !0)) }, f.prototype.isSelected = function() { return this.target.hasClass("selected") }, f.prototype.select = function() { this.target.addClass("selected") }, f.prototype.isHeader = function() { return !1 }, f.prototype.setAlign = function(e) { (this.align = e) ? this.target.css("text-align", e): this.target[0].style.textAlign = "" }, f.prototype.setVAlign = function(e) { (this.vAlign = e) ? this.target.css("vertical-align", e): this.target[0].style.verticalAlign = "" }, f.prototype.getEntity = function() { return new d(this) }, f); function f() { this.id = l.a.createId() } function h() {} function g() {} function m() { this.select = new A } function v() {} function b() { this.text = new n } function I() {} i.d(t, "a", function() { return B }); (function(e, t) { (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) })(y = _, i = w = u), y.prototype = null === i ? Object.create(i) : (x.prototype = i.prototype, new x), _.prototype.css = function(e) {}; var w, y, B = _; function _(e) { var t = this; return e = e || {}, (t = w.call(this) || this).width = e.width ? parseFloat(e.width.toString()) : 100, t.title = e.title, t.descTitle = e.descTitle, t.field = e.field, t.fixed = e.fixed, t.rowspan = e.rowspan ? parseInt(e.rowspan) : 1, t.colspan = e.colspan ? parseInt(e.colspan) : 1, t.align = e.align, t.halign = e.halign, t.vAlign = e.vAlign, t.formatter = e.formatter, t.styler = e.styler, t.renderFormatter = e.renderFormatter, t.formatter2 = e.formatter2, t.styler2 = e.styler2, t.stylerHeader = e.stylerHeader, t.checkbox = e.checkbox, t.checked = 0 != e.checked, t.columnId = e.columnId || e.field, t.tableColumnHeight = e.tableColumnHeight, t.tableTextType = e.tableTextType, t.tableBarcodeMode = e.tableBarcodeMode, t.tableQRCodeLevel = e.tableQRCodeLevel, t.tableSummaryTitle = e.tableSummaryTitle, t.tableSummaryText = e.tableSummaryText, t.tableSummaryColspan = e.tableSummaryColspan, t.tableSummary = e.tableSummary, t.tableSummaryAlign = e.tableSummaryAlign, t.tableSummaryNumFormat = e.tableSummaryNumFormat, t.tableSummaryFormatter = e.tableSummaryFormatter, t.showCodeTitle = e.showCodeTitle, t.upperCase = e.upperCase, t } function x() { this.constructor = y } }, function(e, t, i) { i.d(t, "a", function() { return n }); var n = function(e) { this.printLine = e.printLine, this.target = e.target, this.referenceElement = e.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(e, t) { for (var i = TableExcelHelper.reconsitutionTableColumnTree(e), n = jquery__WEBPACK_IMPORTED_MODULE_65___default()(""), A = jquery__WEBPACK_IMPORTED_MODULE_65___default()("| '); a.push(" |