mg-ocr-invoice 0.4.11 → 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -5288,7 +5288,7 @@ defineComponent({
|
|
|
5288
5288
|
};
|
|
5289
5289
|
}
|
|
5290
5290
|
});
|
|
5291
|
-
const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
5291
|
+
const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-784ab8b0"), n = n(), popScopeId(), n), _hoisted_1$4 = { class: "Invoice" }, _hoisted_2$4 = { class: "top" }, _hoisted_3$4 = ["src"], _hoisted_4$4 = { class: "inovice-content" }, _hoisted_5$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "Field-title" }, [
|
|
5292
5292
|
/* @__PURE__ */ createElementVNode("span", { class: "titleLeft" }, "公司信息")
|
|
5293
5293
|
], -1)), _hoisted_6$3 = { class: "marPX" }, _hoisted_7$3 = { class: "inv-cell" }, _hoisted_8$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "销售方", -1)), _hoisted_9$1 = { class: "cell-icon" }, _hoisted_10$1 = {
|
|
5294
5294
|
key: 0,
|
|
@@ -5320,7 +5320,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
5320
5320
|
}, _hoisted_54$1 = {
|
|
5321
5321
|
key: 1,
|
|
5322
5322
|
class: "gg-chevron-up"
|
|
5323
|
-
}, _hoisted_55$1 = { key: 0 }, _hoisted_56$1 = { class: "inv-cell" }, _hoisted_57$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "发票号码", -1)), _hoisted_58$1 = { class: "inv-cell" }, _hoisted_59$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "校验码", -1)), _hoisted_60$1 = { class: "marPX" }, _hoisted_61$1 = { class: "inv-cell" }, _hoisted_62$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "开票日期", -1)), _hoisted_63$1 = ["value"], _hoisted_64$1 = { class: "marPX" }, _hoisted_65$1 = { class: "inv-cell" }, _hoisted_66$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "查验状态", -1)), _hoisted_67$1 = ["value"], _hoisted_68$1 = { class: "submit" }, _hoisted_69$1 = { class: "content" }, _hoisted_70$1 = { class: "inv-cell" }, _hoisted_71
|
|
5323
|
+
}, _hoisted_55$1 = { key: 0 }, _hoisted_56$1 = { class: "inv-cell" }, _hoisted_57$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "发票号码", -1)), _hoisted_58$1 = { class: "inv-cell" }, _hoisted_59$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "校验码", -1)), _hoisted_60$1 = { class: "marPX" }, _hoisted_61$1 = { class: "inv-cell" }, _hoisted_62$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "开票日期", -1)), _hoisted_63$1 = ["value"], _hoisted_64$1 = { class: "marPX" }, _hoisted_65$1 = { class: "inv-cell" }, _hoisted_66$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "查验状态", -1)), _hoisted_67$1 = ["value"], _hoisted_68$1 = { class: "submit" }, _hoisted_69$1 = { class: "content" }, _hoisted_70$1 = { class: "inv-cell" }, _hoisted_71 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "不含税金额", -1)), _hoisted_72 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "cell-icon" }, null, -1)), _hoisted_73 = { class: "inv-cell" }, _hoisted_74 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "税率", -1)), _hoisted_75 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "cell-icon" }, "%", -1)), _hoisted_76 = { class: "inv-cell" }, _hoisted_77 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("label", null, "税额", -1)), _hoisted_78 = ["value"], _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
5324
5324
|
__name: "index",
|
|
5325
5325
|
props: ["ids", "invoiceData"],
|
|
5326
5326
|
emits: ["saveSuccess"],
|
|
@@ -5545,7 +5545,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
5545
5545
|
_hoisted_35$1,
|
|
5546
5546
|
createElementVNode("input", {
|
|
5547
5547
|
readonly: "",
|
|
5548
|
-
value: t.invoiceData.
|
|
5548
|
+
value: t.invoiceData.invoiceRootType,
|
|
5549
5549
|
placeholder: "",
|
|
5550
5550
|
type: "text"
|
|
5551
5551
|
}, null, 8, _hoisted_36$1)
|
|
@@ -5683,7 +5683,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
5683
5683
|
content: withCtx(() => [
|
|
5684
5684
|
createElementVNode("div", _hoisted_69$1, [
|
|
5685
5685
|
createElementVNode("div", _hoisted_70$1, [
|
|
5686
|
-
_hoisted_71
|
|
5686
|
+
_hoisted_71,
|
|
5687
5687
|
withDirectives(createElementVNode("input", {
|
|
5688
5688
|
class: "input-color",
|
|
5689
5689
|
"onUpdate:modelValue": $e[15] || ($e[15] = (J) => R.value.itemExTaxAmount = J),
|
|
@@ -5731,7 +5731,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
5731
5731
|
}, 8, ["modelValue", "title"])
|
|
5732
5732
|
], 64));
|
|
5733
5733
|
}
|
|
5734
|
-
}),
|
|
5734
|
+
}), index_vue_vue_type_style_index_0_scoped_784ab8b0_lang = "", Invoice = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-784ab8b0"]]), _withScopeId$2 = (n) => (pushScopeId("data-v-4f642fc4"), n = n(), popScopeId(), n), _hoisted_1$3 = { class: "skeleton-card" }, _hoisted_2$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "skeleton-title" }, null, -1)), _hoisted_3$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "skeleton-tags" }, [
|
|
5735
5735
|
/* @__PURE__ */ createElementVNode("div", { class: "skeleton-tag" }),
|
|
5736
5736
|
/* @__PURE__ */ createElementVNode("div", { class: "skeleton-tag" })
|
|
5737
5737
|
], -1)), _hoisted_4$3 = { class: "skeleton-content" }, _hoisted_5$2 = { class: "skeleton-row" }, _hoisted_6$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "skeleton-label" }, null, -1)), _hoisted_7$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "skeleton-value" }, null, -1)), _hoisted_8$2 = [
|
|
@@ -5798,53 +5798,50 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
5798
5798
|
}, r.oncancel = () => {
|
|
5799
5799
|
document.body.removeChild(r);
|
|
5800
5800
|
}, r.click();
|
|
5801
|
-
}), _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
5801
|
+
}), _withScopeId$1 = (n) => (pushScopeId("data-v-4c446cb4"), n = n(), popScopeId(), n), _hoisted_1$2 = { class: "InvoiceList" }, _hoisted_2$2 = { class: "selectAll" }, _hoisted_3$2 = { class: "left" }, _hoisted_4$2 = { class: "right" }, _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", null, "全选", -1)), _hoisted_6$1 = { class: "card" }, _hoisted_7$1 = ["onClick"], _hoisted_8$1 = ["onClick"], _hoisted_9 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "gg-more-alt" }, null, -1)), _hoisted_10 = [
|
|
5802
5802
|
_hoisted_9
|
|
5803
|
-
], _hoisted_11 = { class: "storeName" }, _hoisted_12 = { class: "name" }, _hoisted_13 = { class: "left" }, _hoisted_14 = {
|
|
5804
|
-
key: 0,
|
|
5805
|
-
class: "right"
|
|
5806
|
-
}, _hoisted_15 = { class: "tags" }, _hoisted_16 = {
|
|
5803
|
+
], _hoisted_11 = { class: "storeName" }, _hoisted_12 = { class: "name" }, _hoisted_13 = { class: "left" }, _hoisted_14 = { class: "tags" }, _hoisted_15 = {
|
|
5807
5804
|
key: 0,
|
|
5808
5805
|
class: "manual"
|
|
5809
|
-
},
|
|
5806
|
+
}, _hoisted_16 = { key: 1 }, _hoisted_17 = { class: "InvoiceInfo" }, _hoisted_18 = { class: "leftinfo" }, _hoisted_19 = { class: "item-info" }, _hoisted_20 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "label" }, "发票金额", -1)), _hoisted_21 = { class: "value price" }, _hoisted_22 = { class: "item-info" }, _hoisted_23 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "label" }, "发票税额", -1)), _hoisted_24 = { class: "value price" }, _hoisted_25 = { class: "item-info" }, _hoisted_26 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "label" }, "发票税率", -1)), _hoisted_27 = { class: "value price" }, _hoisted_28 = { class: "item-info" }, _hoisted_29 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "label" }, "发票抬头", -1)), _hoisted_30 = { class: "value" }, _hoisted_31 = { class: "item-info" }, _hoisted_32 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "label" }, "发票类型", -1)), _hoisted_33 = { class: "value" }, _hoisted_34 = { class: "item-info" }, _hoisted_35 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", {
|
|
5810
5807
|
class: "label",
|
|
5811
5808
|
style: { "flex-shrink": "0" }
|
|
5812
|
-
}, "发票号码", -1)),
|
|
5809
|
+
}, "发票号码", -1)), _hoisted_36 = {
|
|
5813
5810
|
key: 0,
|
|
5814
5811
|
class: "value"
|
|
5815
|
-
},
|
|
5812
|
+
}, _hoisted_37 = {
|
|
5816
5813
|
key: 1,
|
|
5817
5814
|
class: "value",
|
|
5818
5815
|
style: { color: "red", "font-size": "12px" }
|
|
5819
|
-
},
|
|
5816
|
+
}, _hoisted_38 = { class: "item-info" }, _hoisted_39 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "label" }, "发票时间", -1)), _hoisted_40 = { class: "value" }, _hoisted_41 = {
|
|
5820
5817
|
key: 0,
|
|
5821
5818
|
class: "item-info"
|
|
5822
|
-
},
|
|
5819
|
+
}, _hoisted_42 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "label" }, "发票红冲", -1)), _hoisted_43 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", {
|
|
5823
5820
|
class: "value",
|
|
5824
5821
|
style: { color: "#ff7f25" }
|
|
5825
|
-
}, " 部分红冲票 ", -1)),
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
],
|
|
5822
|
+
}, " 部分红冲票 ", -1)), _hoisted_44 = [
|
|
5823
|
+
_hoisted_42,
|
|
5824
|
+
_hoisted_43
|
|
5825
|
+
], _hoisted_45 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { style: { color: "#5CB933", "font-size": "12px" } }, " 提示:请核对下票面金额、税额与发票数据一致,如果不一致,请点击右上角修改发票数据 ", -1)), _hoisted_46 = {
|
|
5829
5826
|
key: 0,
|
|
5830
5827
|
style: { color: "red", "text-align": "center" }
|
|
5831
|
-
},
|
|
5828
|
+
}, _hoisted_47 = {
|
|
5832
5829
|
key: 1,
|
|
5833
5830
|
style: { color: "red", "text-align": "center" }
|
|
5834
|
-
},
|
|
5831
|
+
}, _hoisted_48 = { class: "rightCheckbox" }, _hoisted_49 = ["onUpdate:modelValue"], _hoisted_50 = {
|
|
5835
5832
|
key: 1,
|
|
5836
5833
|
style: { "background-color": "#fff", padding: "21px 0 15px 12px", position: "relative", width: "100%" }
|
|
5837
|
-
},
|
|
5834
|
+
}, _hoisted_51 = {
|
|
5838
5835
|
key: 2,
|
|
5839
5836
|
class: "err-card"
|
|
5840
|
-
},
|
|
5837
|
+
}, _hoisted_52 = ["onClick"], _hoisted_53 = ["src"], _hoisted_54 = { class: "right-errText" }, _hoisted_55 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "title" }, [
|
|
5841
5838
|
/* @__PURE__ */ createElementVNode("span", null, "识别失败")
|
|
5842
|
-
], -1)),
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
],
|
|
5846
|
-
|
|
5847
|
-
],
|
|
5839
|
+
], -1)), _hoisted_56 = { class: "content" }, _hoisted_57 = { class: "recognitionResult" }, _hoisted_58 = { key: 0 }, _hoisted_59 = { key: 1 }, _hoisted_60 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("p", { class: "errContent" }, "OCR识别失败", -1)), _hoisted_61 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("p", null, "可以重新拍照识别,或手动添加信息导入", -1)), _hoisted_62 = [
|
|
5840
|
+
_hoisted_60,
|
|
5841
|
+
_hoisted_61
|
|
5842
|
+
], _hoisted_63 = ["onUpdate:modelValue"], _hoisted_64 = { class: "btn-form" }, _hoisted_65 = { class: "operate" }, _hoisted_66 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", null, "移除", -1)), _hoisted_67 = [
|
|
5843
|
+
_hoisted_66
|
|
5844
|
+
], _hoisted_68 = { class: "right-btn" }, _hoisted_69 = { class: "select-item" }, _hoisted_70 = { class: "select-item" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
5848
5845
|
__name: "index",
|
|
5849
5846
|
props: {
|
|
5850
5847
|
listId: {
|
|
@@ -6110,11 +6107,10 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6110
6107
|
}, toDisplayString(Nt.invoiceCompanyType), 3),
|
|
6111
6108
|
createElementVNode("div", _hoisted_11, [
|
|
6112
6109
|
createElementVNode("div", _hoisted_12, [
|
|
6113
|
-
createElementVNode("div", _hoisted_13, toDisplayString(Nt.sellerName), 1)
|
|
6114
|
-
Nt.taskStatus === "repeat" ? (openBlock(), createElementBlock("div", _hoisted_14, " 已收录 ")) : createCommentVNode("", !0)
|
|
6110
|
+
createElementVNode("div", _hoisted_13, toDisplayString(Nt.sellerName), 1)
|
|
6115
6111
|
]),
|
|
6116
|
-
createElementVNode("div",
|
|
6117
|
-
Nt.manualModify ? (openBlock(), createElementBlock("span",
|
|
6112
|
+
createElementVNode("div", _hoisted_14, [
|
|
6113
|
+
Nt.manualModify ? (openBlock(), createElementBlock("span", _hoisted_15, " 手工录入 ")) : Nt.invoiceExceptionInfo ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
6118
6114
|
createElementVNode("span", {
|
|
6119
6115
|
class: normalizeClass(unref(setClass)(Nt.invoiceExceptionInfo))
|
|
6120
6116
|
}, toDisplayString(unref(const_invoiceExceptionInfo)[Nt.invoiceExceptionInfo]), 3)
|
|
@@ -6126,44 +6122,44 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6126
6122
|
class: normalizeClass(unref(setClass)(Nt.invoiceStatus))
|
|
6127
6123
|
}, toDisplayString(unref(const_invoiceStatus)[Nt.invoiceStatus]), 3)
|
|
6128
6124
|
]),
|
|
6129
|
-
createElementVNode("div",
|
|
6130
|
-
createElementVNode("div",
|
|
6131
|
-
createElementVNode("div",
|
|
6132
|
-
|
|
6133
|
-
createElementVNode("span",
|
|
6125
|
+
createElementVNode("div", _hoisted_17, [
|
|
6126
|
+
createElementVNode("div", _hoisted_18, [
|
|
6127
|
+
createElementVNode("div", _hoisted_19, [
|
|
6128
|
+
_hoisted_20,
|
|
6129
|
+
createElementVNode("span", _hoisted_21, "¥" + toDisplayString(Nt.priceTaxTotalFigure || Nt.noTaxAmountTotal), 1)
|
|
6134
6130
|
]),
|
|
6135
|
-
createElementVNode("div",
|
|
6136
|
-
|
|
6137
|
-
createElementVNode("span",
|
|
6131
|
+
createElementVNode("div", _hoisted_22, [
|
|
6132
|
+
_hoisted_23,
|
|
6133
|
+
createElementVNode("span", _hoisted_24, "¥" + toDisplayString(Nt.taxAmountTotal), 1)
|
|
6138
6134
|
]),
|
|
6139
|
-
createElementVNode("div",
|
|
6140
|
-
|
|
6141
|
-
createElementVNode("span",
|
|
6135
|
+
createElementVNode("div", _hoisted_25, [
|
|
6136
|
+
_hoisted_26,
|
|
6137
|
+
createElementVNode("span", _hoisted_27, toDisplayString(Nt.taxRate), 1)
|
|
6142
6138
|
]),
|
|
6143
|
-
createElementVNode("div",
|
|
6144
|
-
|
|
6145
|
-
createElementVNode("span",
|
|
6139
|
+
createElementVNode("div", _hoisted_28, [
|
|
6140
|
+
_hoisted_29,
|
|
6141
|
+
createElementVNode("span", _hoisted_30, toDisplayString(Nt.payerName), 1)
|
|
6146
6142
|
]),
|
|
6147
|
-
createElementVNode("div",
|
|
6148
|
-
|
|
6149
|
-
createElementVNode("span",
|
|
6143
|
+
createElementVNode("div", _hoisted_31, [
|
|
6144
|
+
_hoisted_32,
|
|
6145
|
+
createElementVNode("span", _hoisted_33, toDisplayString(Nt.invoiceRootType), 1)
|
|
6150
6146
|
]),
|
|
6151
|
-
createElementVNode("div",
|
|
6152
|
-
|
|
6153
|
-
Nt.invoiceNum ? (openBlock(), createElementBlock("span",
|
|
6147
|
+
createElementVNode("div", _hoisted_34, [
|
|
6148
|
+
_hoisted_35,
|
|
6149
|
+
Nt.invoiceNum ? (openBlock(), createElementBlock("span", _hoisted_36, toDisplayString(Nt.invoiceNum), 1)) : (openBlock(), createElementBlock("span", _hoisted_37, "未识别出发票号码,不允许使用,请点击右上角,进入详情修改"))
|
|
6154
6150
|
]),
|
|
6155
|
-
createElementVNode("div",
|
|
6156
|
-
|
|
6157
|
-
createElementVNode("span",
|
|
6151
|
+
createElementVNode("div", _hoisted_38, [
|
|
6152
|
+
_hoisted_39,
|
|
6153
|
+
createElementVNode("span", _hoisted_40, toDisplayString(Nt.invoiceDate), 1)
|
|
6158
6154
|
]),
|
|
6159
|
-
Nt.invalidFlag === "8" ? (openBlock(), createElementBlock("div",
|
|
6160
|
-
|
|
6155
|
+
Nt.invalidFlag === "8" ? (openBlock(), createElementBlock("div", _hoisted_41, _hoisted_44)) : createCommentVNode("", !0),
|
|
6156
|
+
_hoisted_45,
|
|
6161
6157
|
createElementVNode("div", null, [
|
|
6162
|
-
Nt.invalidFlag === "2" ? (openBlock(), createElementBlock("p",
|
|
6163
|
-
Nt.invalidFlag === "9" ? (openBlock(), createElementBlock("p",
|
|
6158
|
+
Nt.invalidFlag === "2" ? (openBlock(), createElementBlock("p", _hoisted_46, " 发票已经被作废,无法使用 ")) : createCommentVNode("", !0),
|
|
6159
|
+
Nt.invalidFlag === "9" ? (openBlock(), createElementBlock("p", _hoisted_47, " 发票被全额红冲,请联系商家确认 ")) : createCommentVNode("", !0)
|
|
6164
6160
|
])
|
|
6165
6161
|
]),
|
|
6166
|
-
createElementVNode("div",
|
|
6162
|
+
createElementVNode("div", _hoisted_48, [
|
|
6167
6163
|
withDirectives(createElementVNode("input", {
|
|
6168
6164
|
onClick: We[2] || (We[2] = withModifiers(() => {
|
|
6169
6165
|
}, ["stop"])),
|
|
@@ -6172,13 +6168,13 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6172
6168
|
onChange: Ue,
|
|
6173
6169
|
"onUpdate:modelValue": (Xt) => Nt.selected = Xt,
|
|
6174
6170
|
"icon-size": "22px"
|
|
6175
|
-
}, null, 40,
|
|
6171
|
+
}, null, 40, _hoisted_49), [
|
|
6176
6172
|
[vModelCheckbox, Nt.selected]
|
|
6177
6173
|
])
|
|
6178
6174
|
])
|
|
6179
6175
|
])
|
|
6180
6176
|
])
|
|
6181
|
-
], 8, _hoisted_7$1)) : Nt.taskStatus === "ocr_doing" || Nt.taskStatus === "ocr_success" ? (openBlock(), createElementBlock("div",
|
|
6177
|
+
], 8, _hoisted_7$1)) : Nt.taskStatus === "ocr_doing" || Nt.taskStatus === "ocr_success" ? (openBlock(), createElementBlock("div", _hoisted_50, [
|
|
6182
6178
|
createVNode(Loading, {
|
|
6183
6179
|
class: "loading",
|
|
6184
6180
|
style: { "background-color": "rgba(255, 255, 255, 0.5)" },
|
|
@@ -6189,7 +6185,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6189
6185
|
title: "",
|
|
6190
6186
|
row: 5
|
|
6191
6187
|
})
|
|
6192
|
-
])) : (openBlock(), createElementBlock("div",
|
|
6188
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_51, [
|
|
6193
6189
|
createElementVNode("div", {
|
|
6194
6190
|
class: "left-img",
|
|
6195
6191
|
onClick: (Xt) => fn(Nt.fileUrlKey)
|
|
@@ -6197,13 +6193,13 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6197
6193
|
createElementVNode("img", {
|
|
6198
6194
|
src: Nt.fileUrlKey,
|
|
6199
6195
|
alt: ""
|
|
6200
|
-
}, null, 8,
|
|
6201
|
-
], 8,
|
|
6202
|
-
createElementVNode("div",
|
|
6203
|
-
|
|
6204
|
-
createElementVNode("div",
|
|
6205
|
-
createElementVNode("div",
|
|
6206
|
-
Nt.statusInfo ? (openBlock(), createElementBlock("div",
|
|
6196
|
+
}, null, 8, _hoisted_53)
|
|
6197
|
+
], 8, _hoisted_52),
|
|
6198
|
+
createElementVNode("div", _hoisted_54, [
|
|
6199
|
+
_hoisted_55,
|
|
6200
|
+
createElementVNode("div", _hoisted_56, [
|
|
6201
|
+
createElementVNode("div", _hoisted_57, [
|
|
6202
|
+
Nt.statusInfo ? (openBlock(), createElementBlock("div", _hoisted_58, toDisplayString(Nt.statusInfo), 1)) : (openBlock(), createElementBlock("div", _hoisted_59, _hoisted_62))
|
|
6207
6203
|
]),
|
|
6208
6204
|
createElementVNode("div", null, [
|
|
6209
6205
|
withDirectives(createElementVNode("input", {
|
|
@@ -6212,7 +6208,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6212
6208
|
onClick: We[3] || (We[3] = withModifiers(() => {
|
|
6213
6209
|
}, ["stop"])),
|
|
6214
6210
|
"onUpdate:modelValue": (Xt) => Nt.selected = Xt
|
|
6215
|
-
}, null, 8,
|
|
6211
|
+
}, null, 8, _hoisted_63), [
|
|
6216
6212
|
[vModelCheckbox, Nt.selected]
|
|
6217
6213
|
])
|
|
6218
6214
|
])
|
|
@@ -6221,13 +6217,13 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6221
6217
|
]))
|
|
6222
6218
|
]))), 128))
|
|
6223
6219
|
]),
|
|
6224
|
-
createElementVNode("div",
|
|
6225
|
-
createElementVNode("div",
|
|
6220
|
+
createElementVNode("div", _hoisted_64, [
|
|
6221
|
+
createElementVNode("div", _hoisted_65, [
|
|
6226
6222
|
createElementVNode("div", {
|
|
6227
6223
|
class: "delete",
|
|
6228
6224
|
onClick: $e
|
|
6229
|
-
},
|
|
6230
|
-
createElementVNode("div",
|
|
6225
|
+
}, _hoisted_67),
|
|
6226
|
+
createElementVNode("div", _hoisted_68, [
|
|
6231
6227
|
createElementVNode("span", {
|
|
6232
6228
|
class: "add",
|
|
6233
6229
|
onClick: withModifiers(J, ["stop"])
|
|
@@ -6247,7 +6243,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6247
6243
|
"onUpdate:modelValue": We[4] || (We[4] = (Nt) => u.value = Nt)
|
|
6248
6244
|
}, {
|
|
6249
6245
|
"OCR-action-sheet-item": withCtx(({ item: Nt }) => [
|
|
6250
|
-
createElementVNode("div",
|
|
6246
|
+
createElementVNode("div", _hoisted_69, [
|
|
6251
6247
|
createElementVNode("span", {
|
|
6252
6248
|
class: normalizeClass([Nt.icon])
|
|
6253
6249
|
}, null, 2),
|
|
@@ -6263,7 +6259,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6263
6259
|
"onUpdate:modelValue": We[5] || (We[5] = (Nt) => B.value = Nt)
|
|
6264
6260
|
}, {
|
|
6265
6261
|
"OCR-action-sheet-item": withCtx(({ item: Nt }) => [
|
|
6266
|
-
createElementVNode("div",
|
|
6262
|
+
createElementVNode("div", _hoisted_70, [
|
|
6267
6263
|
createElementVNode("span", {
|
|
6268
6264
|
class: normalizeClass([Nt.icon])
|
|
6269
6265
|
}, null, 2),
|
|
@@ -6274,7 +6270,7 @@ const viewer = "", _withScopeId$3 = (n) => (pushScopeId("data-v-47fef101"), n =
|
|
|
6274
6270
|
}, 8, ["options", "modelValue"])
|
|
6275
6271
|
]));
|
|
6276
6272
|
}
|
|
6277
|
-
}),
|
|
6273
|
+
}), index_vue_vue_type_style_index_0_scoped_4c446cb4_lang = "", InvoiceList = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-4c446cb4"]]), _withScopeId = (n) => (pushScopeId("data-v-754186cd"), n = n(), popScopeId(), n), _hoisted_1$1 = { class: "PaymentMode" }, _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "title" }, "选择识别方式", -1)), _hoisted_3$1 = { class: "list" }, _hoisted_4$1 = ["onClick"], _hoisted_5 = { class: "left-text" }, _hoisted_6 = { class: "icon-left" }, _hoisted_7 = { class: "text" }, _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "right-icon" }, [
|
|
6278
6274
|
/* @__PURE__ */ createElementVNode("i", { class: "gg-chevron-right" })
|
|
6279
6275
|
], -1)), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
6280
6276
|
__name: "index",
|
package/dist/index.umd.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* Released under the MIT license
|
|
18
18
|
*
|
|
19
19
|
* Date: 2024-11-24T04:32:19.116Z
|
|
20
|
-
*/function _classCallCheck(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(n,o){for(var t=0;t<o.length;t++){var r=o[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,_toPropertyKey(r.key),r)}}function _createClass(n,o,t){return o&&_defineProperties(n.prototype,o),t&&_defineProperties(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function _defineProperty(n,o,t){return(o=_toPropertyKey(o))in n?Object.defineProperty(n,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[o]=t,n}function ownKeys(n,o){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);o&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),t.push.apply(t,r)}return t}function _objectSpread2(n){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?arguments[o]:{};o%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function _toPrimitive(n,o){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,o||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(n)}function _toPropertyKey(n){var o=_toPrimitive(n,"string");return typeof o=="symbol"?o:o+""}function _typeof(n){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(n)}var DEFAULTS={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},TEMPLATE='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',IS_BROWSER=typeof window<"u"&&typeof window.document<"u",WINDOW=IS_BROWSER?window:{},IS_TOUCH_DEVICE=IS_BROWSER&&WINDOW.document.documentElement?"ontouchstart"in WINDOW.document.documentElement:!1,HAS_POINTER_EVENT=IS_BROWSER?"PointerEvent"in WINDOW:!1,NAMESPACE="viewer",ACTION_MOVE="move",ACTION_SWITCH="switch",ACTION_ZOOM="zoom",CLASS_ACTIVE="".concat(NAMESPACE,"-active"),CLASS_CLOSE="".concat(NAMESPACE,"-close"),CLASS_FADE="".concat(NAMESPACE,"-fade"),CLASS_FIXED="".concat(NAMESPACE,"-fixed"),CLASS_FULLSCREEN="".concat(NAMESPACE,"-fullscreen"),CLASS_FULLSCREEN_EXIT="".concat(NAMESPACE,"-fullscreen-exit"),CLASS_HIDE="".concat(NAMESPACE,"-hide"),CLASS_HIDE_MD_DOWN="".concat(NAMESPACE,"-hide-md-down"),CLASS_HIDE_SM_DOWN="".concat(NAMESPACE,"-hide-sm-down"),CLASS_HIDE_XS_DOWN="".concat(NAMESPACE,"-hide-xs-down"),CLASS_IN="".concat(NAMESPACE,"-in"),CLASS_INVISIBLE="".concat(NAMESPACE,"-invisible"),CLASS_LOADING="".concat(NAMESPACE,"-loading"),CLASS_MOVE="".concat(NAMESPACE,"-move"),CLASS_OPEN="".concat(NAMESPACE,"-open"),CLASS_SHOW="".concat(NAMESPACE,"-show"),CLASS_TRANSITION="".concat(NAMESPACE,"-transition"),EVENT_CLICK="click",EVENT_DBLCLICK="dblclick",EVENT_DRAG_START="dragstart",EVENT_FOCUSIN="focusin",EVENT_KEY_DOWN="keydown",EVENT_LOAD="load",EVENT_ERROR="error",EVENT_TOUCH_END=IS_TOUCH_DEVICE?"touchend touchcancel":"mouseup",EVENT_TOUCH_MOVE=IS_TOUCH_DEVICE?"touchmove":"mousemove",EVENT_TOUCH_START=IS_TOUCH_DEVICE?"touchstart":"mousedown",EVENT_POINTER_DOWN=HAS_POINTER_EVENT?"pointerdown":EVENT_TOUCH_START,EVENT_POINTER_MOVE=HAS_POINTER_EVENT?"pointermove":EVENT_TOUCH_MOVE,EVENT_POINTER_UP=HAS_POINTER_EVENT?"pointerup pointercancel":EVENT_TOUCH_END,EVENT_RESIZE="resize",EVENT_TRANSITION_END="transitionend",EVENT_WHEEL="wheel",EVENT_READY="ready",EVENT_SHOW="show",EVENT_SHOWN="shown",EVENT_HIDE="hide",EVENT_HIDDEN="hidden",EVENT_VIEW="view",EVENT_VIEWED="viewed",EVENT_MOVE="move",EVENT_MOVED="moved",EVENT_ROTATE="rotate",EVENT_ROTATED="rotated",EVENT_SCALE="scale",EVENT_SCALED="scaled",EVENT_ZOOM="zoom",EVENT_ZOOMED="zoomed",EVENT_PLAY="play",EVENT_STOP="stop",DATA_ACTION="".concat(NAMESPACE,"Action"),REGEXP_SPACES=/\s\s*/,BUTTONS=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function isString(n){return typeof n=="string"}var isNaN$1=Number.isNaN||WINDOW.isNaN;function isNumber(n){return typeof n=="number"&&!isNaN$1(n)}function isUndefined(n){return typeof n>"u"}function isObject(n){return _typeof(n)==="object"&&n!==null}var hasOwnProperty=Object.prototype.hasOwnProperty;function isPlainObject(n){if(!isObject(n))return!1;try{var o=n.constructor,t=o.prototype;return o&&t&&hasOwnProperty.call(t,"isPrototypeOf")}catch{return!1}}function isFunction(n){return typeof n=="function"}function forEach(n,o){if(n&&isFunction(o))if(Array.isArray(n)||isNumber(n.length)){var t=n.length,r;for(r=0;r<t&&o.call(n,n[r],r,n)!==!1;r+=1);}else isObject(n)&&Object.keys(n).forEach(function(c){o.call(n,n[c],c,n)});return n}var assign=Object.assign||function(o){for(var t=arguments.length,r=new Array(t>1?t-1:0),c=1;c<t;c++)r[c-1]=arguments[c];return isObject(o)&&r.length>0&&r.forEach(function(u){isObject(u)&&Object.keys(u).forEach(function(e){o[e]=u[e]})}),o},REGEXP_SUFFIX=/^(?:width|height|left|top|marginLeft|marginTop)$/;function setStyle(n,o){var t=n.style;forEach(o,function(r,c){REGEXP_SUFFIX.test(c)&&isNumber(r)&&(r+="px"),t[c]=r})}function escapeHTMLEntities(n){return isString(n)?n.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):n}function hasClass(n,o){return!n||!o?!1:n.classList?n.classList.contains(o):n.className.indexOf(o)>-1}function addClass(n,o){if(!(!n||!o)){if(isNumber(n.length)){forEach(n,function(r){addClass(r,o)});return}if(n.classList){n.classList.add(o);return}var t=n.className.trim();t?t.indexOf(o)<0&&(n.className="".concat(t," ").concat(o)):n.className=o}}function removeClass(n,o){if(!(!n||!o)){if(isNumber(n.length)){forEach(n,function(t){removeClass(t,o)});return}if(n.classList){n.classList.remove(o);return}n.className.indexOf(o)>=0&&(n.className=n.className.replace(o,""))}}function toggleClass(n,o,t){if(o){if(isNumber(n.length)){forEach(n,function(r){toggleClass(r,o,t)});return}t?addClass(n,o):removeClass(n,o)}}var REGEXP_HYPHENATE=/([a-z\d])([A-Z])/g;function hyphenate(n){return n.replace(REGEXP_HYPHENATE,"$1-$2").toLowerCase()}function getData(n,o){return isObject(n[o])?n[o]:n.dataset?n.dataset[o]:n.getAttribute("data-".concat(hyphenate(o)))}function setData(n,o,t){isObject(t)?n[o]=t:n.dataset?n.dataset[o]=t:n.setAttribute("data-".concat(hyphenate(o)),t)}var onceSupported=function(){var n=!1;if(IS_BROWSER){var o=!1,t=function(){},r=Object.defineProperty({},"once",{get:function(){return n=!0,o},set:function(u){o=u}});WINDOW.addEventListener("test",t,r),WINDOW.removeEventListener("test",t,r)}return n}();function removeListener(n,o,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=t;o.trim().split(REGEXP_SPACES).forEach(function(u){if(!onceSupported){var e=n.listeners;e&&e[u]&&e[u][t]&&(c=e[u][t],delete e[u][t],Object.keys(e[u]).length===0&&delete e[u],Object.keys(e).length===0&&delete n.listeners)}n.removeEventListener(u,c,r)})}function addListener(n,o,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=t;o.trim().split(REGEXP_SPACES).forEach(function(u){if(r.once&&!onceSupported){var e=n.listeners,p=e===void 0?{}:e;c=function(){delete p[u][t],n.removeEventListener(u,c,r);for(var _=arguments.length,T=new Array(_),x=0;x<_;x++)T[x]=arguments[x];t.apply(n,T)},p[u]||(p[u]={}),p[u][t]&&n.removeEventListener(u,p[u][t],r),p[u][t]=c,n.listeners=p}n.addEventListener(u,c,r)})}function dispatchEvent(n,o,t,r){var c;return isFunction(Event)&&isFunction(CustomEvent)?c=new CustomEvent(o,_objectSpread2({bubbles:!0,cancelable:!0,detail:t},r)):(c=document.createEvent("CustomEvent"),c.initCustomEvent(o,!0,!0,t)),n.dispatchEvent(c)}function getOffset(n){var o=n.getBoundingClientRect();return{left:o.left+(window.pageXOffset-document.documentElement.clientLeft),top:o.top+(window.pageYOffset-document.documentElement.clientTop)}}function getTransforms(n){var o=n.rotate,t=n.scaleX,r=n.scaleY,c=n.translateX,u=n.translateY,e=[];isNumber(c)&&c!==0&&e.push("translateX(".concat(c,"px)")),isNumber(u)&&u!==0&&e.push("translateY(".concat(u,"px)")),isNumber(o)&&o!==0&&e.push("rotate(".concat(o,"deg)")),isNumber(t)&&t!==1&&e.push("scaleX(".concat(t,")")),isNumber(r)&&r!==1&&e.push("scaleY(".concat(r,")"));var p=e.length?e.join(" "):"none";return{WebkitTransform:p,msTransform:p,transform:p}}function getImageNameFromURL(n){return isString(n)?decodeURIComponent(n.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var IS_SAFARI=WINDOW.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(WINDOW.navigator.userAgent);function getImageNaturalSizes(n,o,t){var r=document.createElement("img");if(n.naturalWidth&&!IS_SAFARI)return t(n.naturalWidth,n.naturalHeight),r;var c=document.body||document.documentElement;return r.onload=function(){t(r.width,r.height),IS_SAFARI||c.removeChild(r)},forEach(o.inheritedAttributes,function(u){var e=n.getAttribute(u);e!==null&&r.setAttribute(u,e)}),r.src=n.src,IS_SAFARI||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",c.appendChild(r)),r}function getResponsiveClass(n){switch(n){case 2:return CLASS_HIDE_XS_DOWN;case 3:return CLASS_HIDE_SM_DOWN;case 4:return CLASS_HIDE_MD_DOWN;default:return""}}function getMaxZoomRatio(n){var o=_objectSpread2({},n),t=[];return forEach(n,function(r,c){delete o[c],forEach(o,function(u){var e=Math.abs(r.startX-u.startX),p=Math.abs(r.startY-u.startY),y=Math.abs(r.endX-u.endX),_=Math.abs(r.endY-u.endY),T=Math.sqrt(e*e+p*p),x=Math.sqrt(y*y+_*_),D=(x-T)/T;t.push(D)})}),t.sort(function(r,c){return Math.abs(r)<Math.abs(c)}),t[0]}function getPointer(n,o){var t=n.pageX,r=n.pageY,c={endX:t,endY:r};return o?c:_objectSpread2({timeStamp:Date.now(),startX:t,startY:r},c)}function getPointersCenter(n){var o=0,t=0,r=0;return forEach(n,function(c){var u=c.startX,e=c.startY;o+=u,t+=e,r+=1}),o/=r,t/=r,{pageX:o,pageY:t}}var render={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var o=this.element.ownerDocument,t=o.body||o.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-o.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var o=this.options,t=this.parent,r;o.inline&&(r={width:Math.max(t.offsetWidth,o.minWidth),height:Math.max(t.offsetHeight,o.minHeight)},this.parentData=r),(this.fulled||!r)&&(r=this.containerData),this.viewerData=assign({},r)},renderViewer:function(){this.options.inline&&!this.fulled&&setStyle(this.viewer,this.viewerData)},initList:function(){var o=this,t=this.element,r=this.options,c=this.list,u=[];c.innerHTML="",forEach(this.images,function(e,p){var y=e.src,_=e.alt||getImageNameFromURL(y),T=o.getImageURL(e);if(y||T){var x=document.createElement("li"),D=document.createElement("img");forEach(r.inheritedAttributes,function(A){var B=e.getAttribute(A);B!==null&&D.setAttribute(A,B)}),r.navbar&&(D.src=y||T),D.alt=_,D.setAttribute("data-original-url",T||y),x.setAttribute("data-index",p),x.setAttribute("data-viewer-action","view"),x.setAttribute("role","button"),r.keyboard&&x.setAttribute("tabindex",0),x.appendChild(D),c.appendChild(x),u.push(x)}}),this.items=u,forEach(u,function(e){var p=e.firstElementChild,y,_;setData(p,"filled",!0),r.loading&&addClass(e,CLASS_LOADING),addListener(p,EVENT_LOAD,y=function(x){removeListener(p,EVENT_ERROR,_),r.loading&&removeClass(e,CLASS_LOADING),o.loadImage(x)},{once:!0}),addListener(p,EVENT_ERROR,_=function(){removeListener(p,EVENT_LOAD,y),r.loading&&removeClass(e,CLASS_LOADING)},{once:!0})}),r.transition&&addListener(t,EVENT_VIEWED,function(){addClass(c,CLASS_TRANSITION)},{once:!0})},renderList:function(){var o=this.index,t=this.items[o];if(t){var r=t.nextElementSibling,c=parseInt(window.getComputedStyle(r||t).marginLeft,10),u=t.offsetWidth,e=u+c;setStyle(this.list,assign({width:e*this.length-c},getTransforms({translateX:(this.viewerData.width-u)/2-e*o})))}},resetList:function(){var o=this.list;o.innerHTML="",removeClass(o,CLASS_TRANSITION),setStyle(o,getTransforms({translateX:0}))},initImage:function(o){var t=this,r=this.options,c=this.image,u=this.viewerData,e=this.footer.offsetHeight,p=u.width,y=Math.max(u.height-e,e),_=this.imageData||{},T;this.imageInitializing={abort:function(){T.onload=null}},T=getImageNaturalSizes(c,r,function(x,D){var A=x/D,B=Math.max(0,Math.min(1,r.initialCoverage)),U=p,be=y;t.imageInitializing=!1,y*A>p?be=p/A:U=y*A,B=isNumber(B)?B:.9,U=Math.min(U*B,x),be=Math.min(be*B,D);var q=(p-U)/2,J=(y-be)/2,me={left:q,top:J,x:q,y:J,width:U,height:be,oldRatio:1,ratio:U/x,aspectRatio:A,naturalWidth:x,naturalHeight:D},Re=assign({},me);r.rotatable&&(me.rotate=_.rotate||0,Re.rotate=0),r.scalable&&(me.scaleX=_.scaleX||1,me.scaleY=_.scaleY||1,Re.scaleX=1,Re.scaleY=1),t.imageData=me,t.initialImageData=Re,o&&o()})},renderImage:function(o){var t=this,r=this.image,c=this.imageData;if(setStyle(r,assign({width:c.width,height:c.height,marginLeft:c.x,marginTop:c.y},getTransforms(c))),o)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&hasClass(r,CLASS_TRANSITION)){var u=function(){t.imageRendering=!1,o()};this.imageRendering={abort:function(){removeListener(r,EVENT_TRANSITION_END,u)}},addListener(r,EVENT_TRANSITION_END,u,{once:!0})}else o()},resetImage:function(){var o=this.image;o&&(this.viewing&&this.viewing.abort(),o.parentNode.removeChild(o),this.image=null,this.title.innerHTML="")}},events={bind:function(){var o=this.options,t=this.viewer,r=this.canvas,c=this.element.ownerDocument;addListener(t,EVENT_CLICK,this.onClick=this.click.bind(this)),addListener(t,EVENT_DRAG_START,this.onDragStart=this.dragstart.bind(this)),addListener(r,EVENT_POINTER_DOWN,this.onPointerDown=this.pointerdown.bind(this)),addListener(c,EVENT_POINTER_MOVE,this.onPointerMove=this.pointermove.bind(this)),addListener(c,EVENT_POINTER_UP,this.onPointerUp=this.pointerup.bind(this)),addListener(c,EVENT_KEY_DOWN,this.onKeyDown=this.keydown.bind(this)),addListener(window,EVENT_RESIZE,this.onResize=this.resize.bind(this)),o.zoomable&&o.zoomOnWheel&&addListener(t,EVENT_WHEEL,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),o.toggleOnDblclick&&addListener(r,EVENT_DBLCLICK,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var o=this.options,t=this.viewer,r=this.canvas,c=this.element.ownerDocument;removeListener(t,EVENT_CLICK,this.onClick),removeListener(t,EVENT_DRAG_START,this.onDragStart),removeListener(r,EVENT_POINTER_DOWN,this.onPointerDown),removeListener(c,EVENT_POINTER_MOVE,this.onPointerMove),removeListener(c,EVENT_POINTER_UP,this.onPointerUp),removeListener(c,EVENT_KEY_DOWN,this.onKeyDown),removeListener(window,EVENT_RESIZE,this.onResize),o.zoomable&&o.zoomOnWheel&&removeListener(t,EVENT_WHEEL,this.onWheel,{passive:!1,capture:!0}),o.toggleOnDblclick&&removeListener(r,EVENT_DBLCLICK,this.onDblclick)}},handlers={click:function(o){var t=this.options,r=this.imageData,c=o.target,u=getData(c,DATA_ACTION);switch(!u&&c.localName==="img"&&c.parentElement.localName==="li"&&(c=c.parentElement,u=getData(c,DATA_ACTION)),IS_TOUCH_DEVICE&&o.isTrusted&&c===this.canvas&&clearTimeout(this.clickCanvasTimeout),u){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(getData(c,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-r.scaleX||-1);break;case"flip-vertical":this.scaleY(-r.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(o){o.preventDefault(),this.viewed&&o.target===this.image&&(IS_TOUCH_DEVICE&&o.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(o.isTrusted?o:o.detail&&o.detail.originalEvent))},load:function(){var o=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,r=this.options,c=this.image,u=this.index,e=this.viewerData;removeClass(c,CLASS_INVISIBLE),r.loading&&removeClass(this.canvas,CLASS_LOADING),c.style.cssText="height:0;"+"margin-left:".concat(e.width/2,"px;")+"margin-top:".concat(e.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){toggleClass(c,CLASS_MOVE,r.movable),toggleClass(c,CLASS_TRANSITION,r.transition),o.renderImage(function(){o.viewed=!0,o.viewing=!1,isFunction(r.viewed)&&addListener(t,EVENT_VIEWED,r.viewed,{once:!0}),dispatchEvent(t,EVENT_VIEWED,{originalImage:o.images[u],index:u,image:c},{cancelable:!1})})})},loadImage:function(o){var t=o.target,r=t.parentNode,c=r.offsetWidth||30,u=r.offsetHeight||50,e=!!getData(t,"filled");getImageNaturalSizes(t,this.options,function(p,y){var _=p/y,T=c,x=u;u*_>c?e?T=u*_:x=c/_:e?x=c/_:T=u*_,setStyle(t,assign({width:T,height:x},getTransforms({translateX:(c-T)/2,translateY:(u-x)/2})))})},keydown:function(o){var t=this.options;if(t.keyboard){var r=o.keyCode||o.which||o.charCode;switch(r){case 13:this.viewer.contains(o.target)&&this.click(o);break}if(this.fulled)switch(r){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:o.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:o.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:o.ctrlKey&&(o.preventDefault(),this.toggle());break}}},dragstart:function(o){o.target.localName==="img"&&o.preventDefault()},pointerdown:function(o){var t=this.options,r=this.pointers,c=o.buttons,u=o.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(o.type==="mousedown"||o.type==="pointerdown"&&o.pointerType==="mouse")&&(isNumber(c)&&c!==1||isNumber(u)&&u!==0||o.ctrlKey))){o.preventDefault(),o.changedTouches?forEach(o.changedTouches,function(p){r[p.identifier]=getPointer(p)}):r[o.pointerId||0]=getPointer(o);var e=t.movable?ACTION_MOVE:!1;t.zoomOnTouch&&t.zoomable&&Object.keys(r).length>1?e=ACTION_ZOOM:t.slideOnTouch&&(o.pointerType==="touch"||o.type==="touchstart")&&this.isSwitchable()&&(e=ACTION_SWITCH),t.transition&&(e===ACTION_MOVE||e===ACTION_ZOOM)&&removeClass(this.image,CLASS_TRANSITION),this.action=e}},pointermove:function(o){var t=this.pointers,r=this.action;!this.viewed||!r||(o.preventDefault(),o.changedTouches?forEach(o.changedTouches,function(c){assign(t[c.identifier]||{},getPointer(c,!0))}):assign(t[o.pointerId||0]||{},getPointer(o,!0)),this.change(o))},pointerup:function(o){var t=this,r=this.options,c=this.action,u=this.pointers,e;o.changedTouches?forEach(o.changedTouches,function(p){e=u[p.identifier],delete u[p.identifier]}):(e=u[o.pointerId||0],delete u[o.pointerId||0]),c&&(o.preventDefault(),r.transition&&(c===ACTION_MOVE||c===ACTION_ZOOM)&&addClass(this.image,CLASS_TRANSITION),this.action=!1,IS_TOUCH_DEVICE&&c!==ACTION_ZOOM&&e&&Date.now()-e.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&o.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){dispatchEvent(t.image,EVENT_DBLCLICK,{originalEvent:o})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){t.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&r.backdrop!=="static"&&o.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){dispatchEvent(t.canvas,EVENT_CLICK,{originalEvent:o})},50)))))},resize:function(){var o=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){o.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}forEach(this.player.getElementsByTagName("img"),function(t){addListener(t,EVENT_LOAD,o.loadImage.bind(o),{once:!0}),dispatchEvent(t,EVENT_LOAD)})}},wheel:function(o){var t=this;if(this.viewed&&(o.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var r=Number(this.options.zoomRatio)||.1,c=1;o.deltaY?c=o.deltaY>0?1:-1:o.wheelDelta?c=-o.wheelDelta/120:o.detail&&(c=o.detail>0?1:-1),this.zoom(-c*r,!0,null,o)}}},methods={show:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.element,r=this.options;if(r.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(o),this;if(isFunction(r.show)&&addListener(t,EVENT_SHOW,r.show,{once:!0}),dispatchEvent(t,EVENT_SHOW)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var c=this.viewer;if(removeClass(c,CLASS_HIDE),c.setAttribute("role","dialog"),c.setAttribute("aria-labelledby",this.title.id),c.setAttribute("aria-modal",!0),c.removeAttribute("aria-hidden"),r.transition&&!o){var u=this.shown.bind(this);this.transitioning={abort:function(){removeListener(c,EVENT_TRANSITION_END,u),removeClass(c,CLASS_IN)}},addClass(c,CLASS_TRANSITION),c.initialOffsetWidth=c.offsetWidth,addListener(c,EVENT_TRANSITION_END,u,{once:!0}),addClass(c,CLASS_IN)}else addClass(c,CLASS_IN),this.shown();return this},hide:function(){var o=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.element,c=this.options;if(c.inline||this.hiding||!(this.isShown||this.showing))return this;if(isFunction(c.hide)&&addListener(r,EVENT_HIDE,c.hide,{once:!0}),dispatchEvent(r,EVENT_HIDE)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var u=this.viewer,e=this.image,p=function(){removeClass(u,CLASS_IN),o.hidden()};if(c.transition&&!t){var y=function(x){x&&x.target===u&&(removeListener(u,EVENT_TRANSITION_END,y),o.hidden())},_=function(){hasClass(u,CLASS_TRANSITION)?(addListener(u,EVENT_TRANSITION_END,y),removeClass(u,CLASS_IN)):p()};this.transitioning={abort:function(){o.viewed&&hasClass(e,CLASS_TRANSITION)?removeListener(e,EVENT_TRANSITION_END,_):hasClass(u,CLASS_TRANSITION)&&removeListener(u,EVENT_TRANSITION_END,y)}},this.viewed&&hasClass(e,CLASS_TRANSITION)?(addListener(e,EVENT_TRANSITION_END,_,{once:!0}),this.zoomTo(0,!1,null,null,!0)):_()}else p();return this},view:function(){var o=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var r=this.element,c=this.options,u=this.title,e=this.canvas,p=this.items[t],y=p.querySelector("img"),_=getData(y,"originalUrl"),T=y.getAttribute("alt"),x=document.createElement("img");if(forEach(c.inheritedAttributes,function(be){var q=y.getAttribute(be);q!==null&&x.setAttribute(be,q)}),x.src=_,x.alt=T,isFunction(c.view)&&addListener(r,EVENT_VIEW,c.view,{once:!0}),dispatchEvent(r,EVENT_VIEW,{originalImage:this.images[t],index:t,image:x})===!1||!this.isShown||this.hiding||this.played)return this;var D=this.items[this.index];D&&(removeClass(D,CLASS_ACTIVE),D.removeAttribute("aria-selected")),addClass(p,CLASS_ACTIVE),p.setAttribute("aria-selected",!0),c.focus&&p.focus(),this.image=x,this.viewed=!1,this.index=t,this.imageData={},addClass(x,CLASS_INVISIBLE),c.loading&&addClass(e,CLASS_LOADING),e.innerHTML="",e.appendChild(x),this.renderList(),u.innerHTML="";var A=function(){var q=o.imageData,J=Array.isArray(c.title)?c.title[1]:c.title;u.innerHTML=escapeHTMLEntities(isFunction(J)?J.call(o,x,q):"".concat(T," (").concat(q.naturalWidth," × ").concat(q.naturalHeight,")"))},B,U;return addListener(r,EVENT_VIEWED,A,{once:!0}),this.viewing={abort:function(){removeListener(r,EVENT_VIEWED,A),x.complete?o.imageRendering?o.imageRendering.abort():o.imageInitializing&&o.imageInitializing.abort():(x.src="",removeListener(x,EVENT_LOAD,B),o.timeout&&clearTimeout(o.timeout))}},x.complete?this.load():(addListener(x,EVENT_LOAD,B=function(){removeListener(x,EVENT_ERROR,U),o.load()},{once:!0}),addListener(x,EVENT_ERROR,U=function(){removeListener(x,EVENT_LOAD,B),o.timeout&&(clearTimeout(o.timeout),o.timeout=!1),removeClass(x,CLASS_INVISIBLE),c.loading&&removeClass(o.canvas,CLASS_LOADING)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){removeClass(x,CLASS_INVISIBLE),o.timeout=!1},1e3)),this},prev:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.index-1;return t<0&&(t=o?this.length-1:0),this.view(t),this},next:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.length-1,r=this.index+1;return r>t&&(r=o?0:t),this.view(r),this},move:function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,r=this.imageData;return this.moveTo(isUndefined(o)?o:r.x+Number(o),isUndefined(t)?t:r.y+Number(t)),this},moveTo:function(o){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=this.element,e=this.options,p=this.imageData;if(o=Number(o),r=Number(r),this.viewed&&!this.played&&e.movable){var y=p.x,_=p.y,T=!1;if(isNumber(o)?T=!0:o=y,isNumber(r)?T=!0:r=_,T){if(isFunction(e.move)&&addListener(u,EVENT_MOVE,e.move,{once:!0}),dispatchEvent(u,EVENT_MOVE,{x:o,y:r,oldX:y,oldY:_,originalEvent:c})===!1)return this;p.x=o,p.y=r,p.left=o,p.top=r,this.moving=!0,this.renderImage(function(){t.moving=!1,isFunction(e.moved)&&addListener(u,EVENT_MOVED,e.moved,{once:!0}),dispatchEvent(u,EVENT_MOVED,{x:o,y:r,oldX:y,oldY:_,originalEvent:c},{cancelable:!1})})}}return this},rotate:function(o){return this.rotateTo((this.imageData.rotate||0)+Number(o)),this},rotateTo:function(o){var t=this,r=this.element,c=this.options,u=this.imageData;if(o=Number(o),isNumber(o)&&this.viewed&&!this.played&&c.rotatable){var e=u.rotate;if(isFunction(c.rotate)&&addListener(r,EVENT_ROTATE,c.rotate,{once:!0}),dispatchEvent(r,EVENT_ROTATE,{degree:o,oldDegree:e})===!1)return this;u.rotate=o,this.rotating=!0,this.renderImage(function(){t.rotating=!1,isFunction(c.rotated)&&addListener(r,EVENT_ROTATED,c.rotated,{once:!0}),dispatchEvent(r,EVENT_ROTATED,{degree:o,oldDegree:e},{cancelable:!1})})}return this},scaleX:function(o){return this.scale(o,this.imageData.scaleY),this},scaleY:function(o){return this.scale(this.imageData.scaleX,o),this},scale:function(o){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,c=this.element,u=this.options,e=this.imageData;if(o=Number(o),r=Number(r),this.viewed&&!this.played&&u.scalable){var p=e.scaleX,y=e.scaleY,_=!1;if(isNumber(o)?_=!0:o=p,isNumber(r)?_=!0:r=y,_){if(isFunction(u.scale)&&addListener(c,EVENT_SCALE,u.scale,{once:!0}),dispatchEvent(c,EVENT_SCALE,{scaleX:o,scaleY:r,oldScaleX:p,oldScaleY:y})===!1)return this;e.scaleX=o,e.scaleY=r,this.scaling=!0,this.renderImage(function(){t.scaling=!1,isFunction(u.scaled)&&addListener(c,EVENT_SCALED,u.scaled,{once:!0}),dispatchEvent(c,EVENT_SCALED,{scaleX:o,scaleY:r,oldScaleX:p,oldScaleY:y},{cancelable:!1})})}}return this},zoom:function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,u=this.imageData;return o=Number(o),o<0?o=1/(1-o):o=1+o,this.zoomTo(u.width*o/u.naturalWidth,t,r,c),this},zoomTo:function(o){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,p=this.element,y=this.options,_=this.pointers,T=this.imageData,x=T.x,D=T.y,A=T.width,B=T.height,U=T.naturalWidth,be=T.naturalHeight;if(o=Math.max(0,o),isNumber(o)&&this.viewed&&!this.played&&(e||y.zoomable)){if(!e){var q=Math.max(.01,y.minZoomRatio),J=Math.min(100,y.maxZoomRatio);o=Math.min(Math.max(o,q),J)}if(u)switch(u.type){case"wheel":y.zoomRatio>=.055&&o>.95&&o<1.05&&(o=1);break;case"pointermove":case"touchmove":case"mousemove":o>.99&&o<1.01&&(o=1);break}var me=U*o,Re=be*o,Oe=me-A,K=Re-B,Le=T.ratio;if(isFunction(y.zoom)&&addListener(p,EVENT_ZOOM,y.zoom,{once:!0}),dispatchEvent(p,EVENT_ZOOM,{ratio:o,oldRatio:Le,originalEvent:u})===!1)return this;if(this.zooming=!0,u){var Fe=getOffset(this.viewer),kt=_&&Object.keys(_).length>0?getPointersCenter(_):{pageX:u.pageX,pageY:u.pageY};T.x-=Oe*((kt.pageX-Fe.left-x)/A),T.y-=K*((kt.pageY-Fe.top-D)/B)}else isPlainObject(c)&&isNumber(c.x)&&isNumber(c.y)?(T.x-=Oe*((c.x-x)/A),T.y-=K*((c.y-D)/B)):(T.x-=Oe/2,T.y-=K/2);T.left=T.x,T.top=T.y,T.width=me,T.height=Re,T.oldRatio=Le,T.ratio=o,this.renderImage(function(){t.zooming=!1,isFunction(y.zoomed)&&addListener(p,EVENT_ZOOMED,y.zoomed,{once:!0}),dispatchEvent(p,EVENT_ZOOMED,{ratio:o,oldRatio:Le,originalEvent:u},{cancelable:!1})}),r&&this.tooltip()}return this},play:function(){var o=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var r=this.element,c=this.options;if(isFunction(c.play)&&addListener(r,EVENT_PLAY,c.play,{once:!0}),dispatchEvent(r,EVENT_PLAY)===!1)return this;var u=this.player,e=this.loadImage.bind(this),p=[],y=0,_=0;if(this.played=!0,this.onLoadWhenPlay=e,t&&this.requestFullscreen(t),addClass(u,CLASS_SHOW),forEach(this.items,function(D,A){var B=D.querySelector("img"),U=document.createElement("img");U.src=getData(B,"originalUrl"),U.alt=B.getAttribute("alt"),U.referrerPolicy=B.referrerPolicy,y+=1,addClass(U,CLASS_FADE),toggleClass(U,CLASS_TRANSITION,c.transition),hasClass(D,CLASS_ACTIVE)&&(addClass(U,CLASS_IN),_=A),p.push(U),addListener(U,EVENT_LOAD,e,{once:!0}),u.appendChild(U)}),isNumber(c.interval)&&c.interval>0){var T=function(){clearTimeout(o.playing.timeout),removeClass(p[_],CLASS_IN),_-=1,_=_>=0?_:y-1,addClass(p[_],CLASS_IN),o.playing.timeout=setTimeout(T,c.interval)},x=function(){clearTimeout(o.playing.timeout),removeClass(p[_],CLASS_IN),_+=1,_=_<y?_:0,addClass(p[_],CLASS_IN),o.playing.timeout=setTimeout(x,c.interval)};y>1&&(this.playing={prev:T,next:x,timeout:setTimeout(x,c.interval)})}return this},stop:function(){var o=this;if(!this.played)return this;var t=this.element,r=this.options;if(isFunction(r.stop)&&addListener(t,EVENT_STOP,r.stop,{once:!0}),dispatchEvent(t,EVENT_STOP)===!1)return this;var c=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,forEach(c.getElementsByTagName("img"),function(u){removeListener(u,EVENT_LOAD,o.onLoadWhenPlay)}),removeClass(c,CLASS_SHOW),c.innerHTML="",this.exitFullscreen(),this},full:function(){var o=this,t=this.options,r=this.viewer,c=this.image,u=this.list;return!this.isShown||this.played||this.fulled||!t.inline?this:(this.fulled=!0,this.open(),addClass(this.button,CLASS_FULLSCREEN_EXIT),t.transition&&(removeClass(u,CLASS_TRANSITION),this.viewed&&removeClass(c,CLASS_TRANSITION)),addClass(r,CLASS_FIXED),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("style"),setStyle(r,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=assign({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){o.renderImage(function(){t.transition&&setTimeout(function(){addClass(c,CLASS_TRANSITION),addClass(u,CLASS_TRANSITION)},0)})}),this)},exit:function(){var o=this,t=this.options,r=this.viewer,c=this.image,u=this.list;return!this.isShown||this.played||!this.fulled||!t.inline?this:(this.fulled=!1,this.close(),removeClass(this.button,CLASS_FULLSCREEN_EXIT),t.transition&&(removeClass(u,CLASS_TRANSITION),this.viewed&&removeClass(c,CLASS_TRANSITION)),t.focus&&this.clearEnforceFocus(),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),removeClass(r,CLASS_FIXED),setStyle(r,{zIndex:t.zIndexInline}),this.viewerData=assign({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){o.renderImage(function(){t.transition&&setTimeout(function(){addClass(c,CLASS_TRANSITION),addClass(u,CLASS_TRANSITION)},0)})}),this)},tooltip:function(){var o=this,t=this.options,r=this.tooltipBox,c=this.imageData;return!this.viewed||this.played||!t.tooltip?this:(r.textContent="".concat(Math.round(c.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&dispatchEvent(r,EVENT_TRANSITION_END),addClass(r,CLASS_SHOW),addClass(r,CLASS_FADE),addClass(r,CLASS_TRANSITION),r.removeAttribute("aria-hidden"),r.initialOffsetWidth=r.offsetWidth,addClass(r,CLASS_IN)):(addClass(r,CLASS_SHOW),r.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){t.transition?(addListener(r,EVENT_TRANSITION_END,function(){removeClass(r,CLASS_SHOW),removeClass(r,CLASS_FADE),removeClass(r,CLASS_TRANSITION),r.setAttribute("aria-hidden",!0),o.fading=!1},{once:!0}),removeClass(r,CLASS_IN),o.fading=!0):(removeClass(r,CLASS_SHOW),r.setAttribute("aria-hidden",!0)),o.tooltipping=!1},1e3),this)},toggle:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,o):this.zoomTo(1,!0,null,o),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=assign({},this.initialImageData),this.renderImage()),this},update:function(){var o=this,t=this.element,r=this.options,c=this.isImg;if(c&&!t.parentNode)return this.destroy();var u=[];if(forEach(c?[t]:t.querySelectorAll("img"),function(_){isFunction(r.filter)?r.filter.call(o,_)&&u.push(_):o.getImageURL(_)&&u.push(_)}),!u.length)return this;if(this.images=u,this.length=u.length,this.ready){var e=[];if(forEach(this.items,function(_,T){var x=_.querySelector("img"),D=u[T];D&&x?(D.src!==x.src||D.alt!==x.alt)&&e.push(T):e.push(T)}),setStyle(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var p=e.indexOf(this.index);if(p>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-p,this.length-1),0));else{var y=this.items[this.index];addClass(y,CLASS_ACTIVE),y.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var o=this.element,t=this.options;return o[NAMESPACE]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||removeListener(o,EVENT_CLICK,this.onStart),o[NAMESPACE]=void 0,this):this}},others={getImageURL:function(o){var t=this.options.url;return isString(t)?t=o.getAttribute(t):isFunction(t)?t=t.call(this,o):t="",t},enforceFocus:function(){var o=this;this.clearEnforceFocus(),addListener(document,EVENT_FOCUSIN,this.onFocusin=function(t){var r=o.viewer,c=t.target;if(!(c===document||c===r||r.contains(c))){for(;c;){if(c.getAttribute("tabindex")!==null||c.getAttribute("aria-modal")==="true")return;c=c.parentElement}r.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(removeListener(document,EVENT_FOCUSIN,this.onFocusin),this.onFocusin=null)},open:function(){var o=this.body;addClass(o,CLASS_OPEN),this.scrollbarWidth>0&&(o.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var o=this.body;removeClass(o,CLASS_OPEN),this.scrollbarWidth>0&&(o.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var o=this.element,t=this.options,r=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(r.focus(),this.enforceFocus()),isFunction(t.shown)&&addListener(o,EVENT_SHOWN,t.shown,{once:!0}),dispatchEvent(o,EVENT_SHOWN)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var o=this.element,t=this.options,r=this.viewer;t.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),addClass(r,CLASS_HIDE),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),r.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(isFunction(t.hidden)&&addListener(o,EVENT_HIDDEN,t.hidden,{once:!0}),dispatchEvent(o,EVENT_HIDDEN,null,{cancelable:!1}))},requestFullscreen:function(o){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var r=t.documentElement;r.requestFullscreen?isPlainObject(o)?r.requestFullscreen(o):r.requestFullscreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):r.mozRequestFullScreen?r.mozRequestFullScreen():r.msRequestFullscreen&&r.msRequestFullscreen()}},exitFullscreen:function(){var o=this.element.ownerDocument;this.fulled&&(o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement)&&(o.exitFullscreen?o.exitFullscreen():o.webkitExitFullscreen?o.webkitExitFullscreen():o.mozCancelFullScreen?o.mozCancelFullScreen():o.msExitFullscreen&&o.msExitFullscreen())},change:function(o){var t=this.options,r=this.pointers,c=r[Object.keys(r)[0]];if(c){var u=c.endX-c.startX,e=c.endY-c.startY;switch(this.action){case ACTION_MOVE:(u!==0||e!==0)&&(this.pointerMoved=!0,this.move(u,e,o));break;case ACTION_ZOOM:this.zoom(getMaxZoomRatio(r),!1,null,o);break;case ACTION_SWITCH:{this.action="switched";var p=Math.abs(u);p>1&&p>Math.abs(e)&&(this.pointers={},u>1?this.prev(t.loop):u<-1&&this.next(t.loop));break}}forEach(r,function(y){y.startX=y.endX,y.startY=y.endY})}},isSwitchable:function(){var o=this.imageData,t=this.viewerData;return this.length>1&&o.x>=0&&o.y>=0&&o.width<=t.width&&o.height<=t.height}},AnotherViewer=WINDOW.Viewer,getUniqueID=function(n){return function(){return n+=1,n}}(-1),Viewer=function(){function n(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,n),!o||o.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=o,this.options=assign({},DEFAULTS,isPlainObject(t)&&t),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=getUniqueID(),this.init()}return _createClass(n,[{key:"init",value:function(){var t=this,r=this.element,c=this.options;if(!r[NAMESPACE]){r[NAMESPACE]=this,c.focus&&!c.keyboard&&(c.focus=!1);var u=r.localName==="img",e=[];if(forEach(u?[r]:r.querySelectorAll("img"),function(_){isFunction(c.filter)?c.filter.call(t,_)&&e.push(_):t.getImageURL(_)&&e.push(_)}),this.isImg=u,this.length=e.length,this.images=e,this.initBody(),isUndefined(document.createElement(NAMESPACE).style.transition)&&(c.transition=!1),c.inline){var p=0,y=function(){if(p+=1,p===t.length){var T;t.initializing=!1,t.delaying={abort:function(){clearTimeout(T)}},T=setTimeout(function(){t.delaying=!1,t.build()},0)}};this.initializing={abort:function(){forEach(e,function(T){T.complete||(removeListener(T,EVENT_LOAD,y),removeListener(T,EVENT_ERROR,y))})}},forEach(e,function(_){if(_.complete)y();else{var T,x;addListener(_,EVENT_LOAD,T=function(){removeListener(_,EVENT_ERROR,x),y()},{once:!0}),addListener(_,EVENT_ERROR,x=function(){removeListener(_,EVENT_LOAD,T),y()},{once:!0})}})}else addListener(r,EVENT_CLICK,this.onStart=function(_){var T=_.target;T.localName==="img"&&(!isFunction(c.filter)||c.filter.call(t,T))&&t.view(t.images.indexOf(T))})}}},{key:"build",value:function(){if(!this.ready){var t=this.element,r=this.options,c=t.parentNode,u=document.createElement("div");u.innerHTML=TEMPLATE;var e=u.querySelector(".".concat(NAMESPACE,"-container")),p=e.querySelector(".".concat(NAMESPACE,"-title")),y=e.querySelector(".".concat(NAMESPACE,"-toolbar")),_=e.querySelector(".".concat(NAMESPACE,"-navbar")),T=e.querySelector(".".concat(NAMESPACE,"-button")),x=e.querySelector(".".concat(NAMESPACE,"-canvas"));if(this.parent=c,this.viewer=e,this.title=p,this.toolbar=y,this.navbar=_,this.button=T,this.canvas=x,this.footer=e.querySelector(".".concat(NAMESPACE,"-footer")),this.tooltipBox=e.querySelector(".".concat(NAMESPACE,"-tooltip")),this.player=e.querySelector(".".concat(NAMESPACE,"-player")),this.list=e.querySelector(".".concat(NAMESPACE,"-list")),e.id="".concat(NAMESPACE).concat(this.id),p.id="".concat(NAMESPACE,"Title").concat(this.id),addClass(p,r.title?getResponsiveClass(Array.isArray(r.title)?r.title[0]:r.title):CLASS_HIDE),addClass(_,r.navbar?getResponsiveClass(r.navbar):CLASS_HIDE),toggleClass(T,CLASS_HIDE,!r.button),r.keyboard&&T.setAttribute("tabindex",0),r.backdrop&&(addClass(e,"".concat(NAMESPACE,"-backdrop")),!r.inline&&r.backdrop!=="static"&&setData(x,DATA_ACTION,"hide")),isString(r.className)&&r.className&&r.className.split(REGEXP_SPACES).forEach(function(me){addClass(e,me)}),r.toolbar){var D=document.createElement("ul"),A=isPlainObject(r.toolbar),B=BUTTONS.slice(0,3),U=BUTTONS.slice(7,9),be=BUTTONS.slice(9);A||addClass(y,getResponsiveClass(r.toolbar)),forEach(A?r.toolbar:BUTTONS,function(me,Re){var Oe=A&&isPlainObject(me),K=A?hyphenate(Re):me,Le=Oe&&!isUndefined(me.show)?me.show:me;if(!(!Le||!r.zoomable&&B.indexOf(K)!==-1||!r.rotatable&&U.indexOf(K)!==-1||!r.scalable&&be.indexOf(K)!==-1)){var Fe=Oe&&!isUndefined(me.size)?me.size:me,kt=Oe&&!isUndefined(me.click)?me.click:me,Wt=document.createElement("li");r.keyboard&&Wt.setAttribute("tabindex",0),Wt.setAttribute("role","button"),addClass(Wt,"".concat(NAMESPACE,"-").concat(K)),isFunction(kt)||setData(Wt,DATA_ACTION,K),isNumber(Le)&&addClass(Wt,getResponsiveClass(Le)),["small","large"].indexOf(Fe)!==-1?addClass(Wt,"".concat(NAMESPACE,"-").concat(Fe)):K==="play"&&addClass(Wt,"".concat(NAMESPACE,"-large")),isFunction(kt)&&addListener(Wt,EVENT_CLICK,kt),D.appendChild(Wt)}}),y.appendChild(D)}else addClass(y,CLASS_HIDE);if(!r.rotatable){var q=y.querySelectorAll('li[class*="rotate"]');addClass(q,CLASS_INVISIBLE),forEach(q,function(me){y.appendChild(me)})}if(r.inline)addClass(T,CLASS_FULLSCREEN),setStyle(e,{zIndex:r.zIndexInline}),window.getComputedStyle(c).position==="static"&&setStyle(c,{position:"relative"}),c.insertBefore(e,t.nextSibling);else{addClass(T,CLASS_CLOSE),addClass(e,CLASS_FIXED),addClass(e,CLASS_FADE),addClass(e,CLASS_HIDE),setStyle(e,{zIndex:r.zIndex});var J=r.container;isString(J)&&(J=t.ownerDocument.querySelector(J)),J||(J=this.body),J.appendChild(e)}if(r.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,isFunction(r.ready)&&addListener(t,EVENT_READY,r.ready,{once:!0}),dispatchEvent(t,EVENT_READY)===!1){this.ready=!1;return}this.ready&&r.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=AnotherViewer,n}},{key:"setDefaults",value:function(t){assign(DEFAULTS,isPlainObject(t)&&t)}}])}();assign(Viewer.prototype,render,events,handlers,methods,others);var je=typeof global=="object"&&global&&global.Object===Object&&global;const re=je;var _e=typeof self=="object"&&self&&self.Object===Object&&self,Ae=re||_e||Function("return this")();const E=Ae;var xe=E.Symbol;const S=xe;var te=Object.prototype,Pe=te.hasOwnProperty,Se=te.toString,O=S?S.toStringTag:void 0;function Ie(n){var o=Pe.call(n,O),t=n[O];try{n[O]=void 0;var r=!0}catch{}var c=Se.call(n);return r&&(o?n[O]=t:delete n[O]),c}var Ee=Object.prototype,Me=Ee.toString;function Ve(n){return Me.call(n)}var Ce="[object Null]",Be="[object Undefined]",H=S?S.toStringTag:void 0;function M(n){return n==null?n===void 0?Be:Ce:H&&H in Object(n)?Ie(n):Ve(n)}function V(n){return n!=null&&typeof n=="object"}var Ne=Array.isArray;const De=Ne;function b(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function ne(n){return n}var Xe="[object AsyncFunction]",ze="[object Function]",Qe="[object GeneratorFunction]",Ye="[object Proxy]";function ie(n){if(!b(n))return!1;var o=M(n);return o==ze||o==Qe||o==Xe||o==Ye}var Ze=E["__core-js_shared__"];const F=Ze;var X=function(){var n=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function ke(n){return!!X&&X in n}var er=Function.prototype,rr=er.toString;function tr(n){if(n!=null){try{return rr.call(n)}catch{}try{return n+""}catch{}}return""}var nr=/[\\^$.*+?()[\]{}|]/g,ir=/^\[object .+?Constructor\]$/,or=Function.prototype,ar=Object.prototype,ur=or.toString,sr=ar.hasOwnProperty,cr=RegExp("^"+ur.call(sr).replace(nr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fr(n){if(!b(n)||ke(n))return!1;var o=ie(n)?cr:ir;return o.test(tr(n))}function dr(n,o){return n==null?void 0:n[o]}function lr(n,o){var t=dr(n,o);return fr(t)?t:void 0}function pr(n,o,t){switch(t.length){case 0:return n.call(o);case 1:return n.call(o,t[0]);case 2:return n.call(o,t[0],t[1]);case 3:return n.call(o,t[0],t[1],t[2])}return n.apply(o,t)}var gr=800,vr=16,yr=Date.now;function br(n){var o=0,t=0;return function(){var r=yr(),c=vr-(r-t);if(t=r,c>0){if(++o>=gr)return arguments[0]}else o=0;return n.apply(void 0,arguments)}}function mr(n){return function(){return n}}var hr=function(){try{var n=lr(Object,"defineProperty");return n({},"",{}),n}catch{}}();const I=hr;var wr=I?function(n,o){return I(n,"toString",{configurable:!0,enumerable:!1,value:mr(o),writable:!0})}:ne;const Tr=wr;var $r=br(Tr);const Or=$r;var jr=9007199254740991,_r=/^(?:0|[1-9]\d*)$/;function oe(n,o){var t=typeof n;return o=o??jr,!!o&&(t=="number"||t!="symbol"&&_r.test(n))&&n>-1&&n%1==0&&n<o}function ae(n,o,t){o=="__proto__"&&I?I(n,o,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[o]=t}function W(n,o){return n===o||n!==n&&o!==o}var Ar=Object.prototype,xr=Ar.hasOwnProperty;function ue(n,o,t){var r=n[o];(!(xr.call(n,o)&&W(r,t))||t===void 0&&!(o in n))&&ae(n,o,t)}function Pr(n,o,t,r){var c=!t;t||(t={});for(var u=-1,e=o.length;++u<e;){var p=o[u],y=r?r(t[p],n[p],p,t,n):void 0;y===void 0&&(y=n[p]),c?ae(t,p,y):ue(t,p,y)}return t}var z=Math.max;function Sr(n,o,t){return o=z(o===void 0?n.length-1:o,0),function(){for(var r=arguments,c=-1,u=z(r.length-o,0),e=Array(u);++c<u;)e[c]=r[o+c];c=-1;for(var p=Array(o+1);++c<o;)p[c]=r[c];return p[o]=t(e),pr(n,this,p)}}function se(n,o){return Or(Sr(n,o,ne),n+"")}var Ir=9007199254740991;function ce(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Ir}function C(n){return n!=null&&ce(n.length)&&!ie(n)}function fe(n,o,t){if(!b(t))return!1;var r=typeof o;return(r=="number"?C(t)&&oe(o,t.length):r=="string"&&o in t)?W(t[o],n):!1}function Er(n){return se(function(o,t){var r=-1,c=t.length,u=c>1?t[c-1]:void 0,e=c>2?t[2]:void 0;for(u=n.length>3&&typeof u=="function"?(c--,u):void 0,e&&fe(t[0],t[1],e)&&(u=c<3?void 0:u,c=1),o=Object(o);++r<c;){var p=t[r];p&&n(o,p,r,u)}return o})}var Mr=Object.prototype;function L(n){var o=n&&n.constructor,t=typeof o=="function"&&o.prototype||Mr;return n===t}function Vr(n,o){for(var t=-1,r=Array(n);++t<n;)r[t]=o(t);return r}var Cr="[object Arguments]";function Q(n){return V(n)&&M(n)==Cr}var de=Object.prototype,Br=de.hasOwnProperty,Ur=de.propertyIsEnumerable,Fr=Q(function(){return arguments}())?Q:function(n){return V(n)&&Br.call(n,"callee")&&!Ur.call(n,"callee")};const Nr=Fr;function Dr(){return!1}var le=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Y=le&&typeof module=="object"&&module&&!module.nodeType&&module,Wr=Y&&Y.exports===le,Z=Wr?E.Buffer:void 0,Lr=Z?Z.isBuffer:void 0,Rr=Lr||Dr;const Kr=Rr;var Gr="[object Arguments]",Hr="[object Array]",qr="[object Boolean]",Jr="[object Date]",Xr="[object Error]",zr="[object Function]",Qr="[object Map]",Yr="[object Number]",Zr="[object Object]",kr="[object RegExp]",et="[object Set]",rt="[object String]",tt="[object WeakMap]",nt="[object ArrayBuffer]",it="[object DataView]",ot="[object Float32Array]",at="[object Float64Array]",ut="[object Int8Array]",st="[object Int16Array]",ct="[object Int32Array]",ft="[object Uint8Array]",dt="[object Uint8ClampedArray]",lt="[object Uint16Array]",pt="[object Uint32Array]",f={};f[ot]=f[at]=f[ut]=f[st]=f[ct]=f[ft]=f[dt]=f[lt]=f[pt]=!0,f[Gr]=f[Hr]=f[nt]=f[qr]=f[it]=f[Jr]=f[Xr]=f[zr]=f[Qr]=f[Yr]=f[Zr]=f[kr]=f[et]=f[rt]=f[tt]=!1;function gt(n){return V(n)&&ce(n.length)&&!!f[M(n)]}function vt(n){return function(o){return n(o)}}var pe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j=pe&&typeof module=="object"&&module&&!module.nodeType&&module,yt=j&&j.exports===pe,N=yt&&re.process,bt=function(){try{var n=j&&j.require&&j.require("util").types;return n||N&&N.binding&&N.binding("util")}catch{}}();const k=bt;var ee=k&&k.isTypedArray,mt=ee?vt(ee):gt;const ht=mt;var wt=Object.prototype,Tt=wt.hasOwnProperty;function ge(n,o){var t=De(n),r=!t&&Nr(n),c=!t&&!r&&Kr(n),u=!t&&!r&&!c&&ht(n),e=t||r||c||u,p=e?Vr(n.length,String):[],y=p.length;for(var _ in n)(o||Tt.call(n,_))&&!(e&&(_=="length"||c&&(_=="offset"||_=="parent")||u&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||oe(_,y)))&&p.push(_);return p}function $t(n,o){return function(t){return n(o(t))}}var Ot=$t(Object.keys,Object);const jt=Ot;var _t=Object.prototype,At=_t.hasOwnProperty;function xt(n){if(!L(n))return jt(n);var o=[];for(var t in Object(n))At.call(n,t)&&t!="constructor"&&o.push(t);return o}function Pt(n){return C(n)?ge(n):xt(n)}var St=Object.prototype,It=St.hasOwnProperty,Et=Er(function(n,o){if(L(o)||C(o)){Pr(o,Pt(o),n);return}for(var t in o)It.call(o,t)&&ue(n,t,o[t])});const Mt=Et;function Vt(n){var o=[];if(n!=null)for(var t in Object(n))o.push(t);return o}var Ct=Object.prototype,Bt=Ct.hasOwnProperty;function Ut(n){if(!b(n))return Vt(n);var o=L(n),t=[];for(var r in n)r=="constructor"&&(o||!Bt.call(n,r))||t.push(r);return t}function Ft(n){return C(n)?ge(n,!0):Ut(n)}var ve=Object.prototype,Kt=ve.hasOwnProperty;se(function(n,o){n=Object(n);var t=-1,r=o.length,c=r>2?o[2]:void 0;for(c&&fe(o[0],o[1],c)&&(r=1);++t<r;)for(var u=o[t],e=Ft(u),p=-1,y=e.length;++p<y;){var _=e[p],T=n[_];(T===void 0||W(T,ve[_])&&!Kt.call(n,_))&&(n[_]=u[_])}return n});const qt=({images:n=[],options:o})=>{o=Mt(o,{inline:!1});const t=document.createElement("div"),r=vue.h("div",{style:{display:"none"},class:["__viewer-token"]},n.map(p=>vue.h("img",typeof p=="string"?{src:p}:p)));vue.render(r,t);const c=t.firstElementChild;document.body.appendChild(c);const u=new Viewer(c,o),e=u.destroy.bind(u);return u.destroy=function(){return e(),vue.render(null,t),u},u.show(),c.addEventListener("hidden",function(){this.viewer===u&&u.destroy()}),u};vue.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(n,{emit:o}){let t;const r=vue.ref();function c(){t=new Viewer(r.value,n.options),o("inited",t)}function u(){t&&t.destroy()}function e(){u(),c()}function p(){t?(t.update(),o("inited",t)):c()}function y(){n.rebuild?e():p()}const _={deep:!0};return vue.watch(()=>n.images,()=>{vue.nextTick(()=>{y()})},_),vue.watch(()=>n.trigger,()=>{vue.nextTick(()=>{y()})},_),vue.watch(()=>n.options,()=>{vue.nextTick(()=>{e()})},_),vue.onMounted(()=>c()),vue.onUnmounted(()=>u()),{root:r,createViewer:c,rebuildViewer:e,updateViewer:p,destroyViewer:u}}});const viewer="",_withScopeId$3=n=>(vue.pushScopeId("data-v-47fef101"),n=n(),vue.popScopeId(),n),_hoisted_1$4={class:"Invoice"},_hoisted_2$4={class:"top"},_hoisted_3$4=["src"],_hoisted_4$4={class:"inovice-content"},_hoisted_5$3=_withScopeId$3(()=>vue.createElementVNode("div",{class:"Field-title"},[vue.createElementVNode("span",{class:"titleLeft"},"公司信息")],-1)),_hoisted_6$3={class:"marPX"},_hoisted_7$3={class:"inv-cell"},_hoisted_8$3=_withScopeId$3(()=>vue.createElementVNode("label",null,"销售方",-1)),_hoisted_9$1={class:"cell-icon"},_hoisted_10$1={key:0,class:"gg-chevron-down"},_hoisted_11$1={key:1,class:"gg-chevron-up"},_hoisted_12$1={key:0},_hoisted_13$1={class:"inv-cell"},_hoisted_14$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"纳税人识别号",-1)),_hoisted_15$1=_withScopeId$3(()=>vue.createElementVNode("div",{class:"cell-icon"},null,-1)),_hoisted_16$1={class:"inv-cell"},_hoisted_17$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"地址/电话",-1)),_hoisted_18$1={class:"inv-cell"},_hoisted_19$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"开户银行/银行账号",-1)),_hoisted_20$1={class:"marPX"},_hoisted_21$1={class:"inv-cell"},_hoisted_22$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"购买方",-1)),_hoisted_23$1={class:"cell-icon"},_hoisted_24$1={key:0,class:"gg-chevron-down"},_hoisted_25$1={key:1,class:"gg-chevron-up"},_hoisted_26$1={key:0},_hoisted_27$1={class:"inv-cell"},_hoisted_28$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"纳税人识别号",-1)),_hoisted_29$1={class:"inv-cell"},_hoisted_30$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"地址/电话",-1)),_hoisted_31$1={class:"inv-cell"},_hoisted_32$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"开户银行/银行账号",-1)),_hoisted_33$1={class:"marPX"},_hoisted_34$1={class:"inv-cell"},_hoisted_35$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"发票类型",-1)),_hoisted_36$1=["value"],_hoisted_37$1=_withScopeId$3(()=>vue.createElementVNode("div",{style:{color:"orange","font-size":"12px"}}," 请确认票面金额、税额与发票数据一致 ",-1)),_hoisted_38$1={class:"marPX"},_hoisted_39$1={class:"inv-cell"},_hoisted_40$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"价税合计",-1)),_hoisted_41$1=["value"],_hoisted_42$1={class:"cell-icon"},_hoisted_43$1={key:0,class:"gg-chevron-down"},_hoisted_44$1={key:1,class:"gg-chevron-up"},_hoisted_45$1={key:0},_hoisted_46$1={class:"inv-cell"},_hoisted_47$1=_withScopeId$3(()=>vue.createElementVNode("thead",null,[vue.createElementVNode("tr",null,[vue.createElementVNode("th",null,"商品金额(不含税)"),vue.createElementVNode("th",null,"税率"),vue.createElementVNode("th",null,"税额")])],-1)),_hoisted_48$1=["onClick"],_hoisted_49$1={class:"marPX"},_hoisted_50$1={class:"inv-cell"},_hoisted_51$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"发票代码",-1)),_hoisted_52$1={class:"cell-icon"},_hoisted_53$1={key:0,class:"gg-chevron-down"},_hoisted_54$1={key:1,class:"gg-chevron-up"},_hoisted_55$1={key:0},_hoisted_56$1={class:"inv-cell"},_hoisted_57$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"发票号码",-1)),_hoisted_58$1={class:"inv-cell"},_hoisted_59$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"校验码",-1)),_hoisted_60$1={class:"marPX"},_hoisted_61$1={class:"inv-cell"},_hoisted_62$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"开票日期",-1)),_hoisted_63$1=["value"],_hoisted_64$1={class:"marPX"},_hoisted_65$1={class:"inv-cell"},_hoisted_66$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"查验状态",-1)),_hoisted_67$1=["value"],_hoisted_68$1={class:"submit"},_hoisted_69$1={class:"content"},_hoisted_70$1={class:"inv-cell"},_hoisted_71$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"不含税金额",-1)),_hoisted_72=_withScopeId$3(()=>vue.createElementVNode("div",{class:"cell-icon"},null,-1)),_hoisted_73={class:"inv-cell"},_hoisted_74=_withScopeId$3(()=>vue.createElementVNode("label",null,"税率",-1)),_hoisted_75=_withScopeId$3(()=>vue.createElementVNode("div",{class:"cell-icon"},"%",-1)),_hoisted_76={class:"inv-cell"},_hoisted_77=_withScopeId$3(()=>vue.createElementVNode("label",null,"税额",-1)),_hoisted_78=["value"],_sfc_main$4=vue.defineComponent({__name:"index",props:["ids","invoiceData"],emits:["saveSuccess"],setup(n,{emit:o}){const t=n,r=vue.ref({codeReq:{invoiceCode:"",invoiceNum:"",checkCode:""},itemAmountReqs:[{detailCode:"",itemExTaxAmount:0,itemTaxRate:0,itemTaxAmount:0}],payerReq:{payerAccount:"",payerContact:"",payerId:"",payerName:""},sellerReq:{sellerAccount:"",sellerContact:"",sellerId:"",sellerName:""},taskId:""}),c=o;document.title="发票信息";const u=vue.ref({}),e=()=>{c("saveSuccess")},p=()=>{qt({images:[t.invoiceData.attachmentLink],options:{zIndex:OCR_getMaxZIndex()+1}})},y=vue.computed(()=>t.invoiceData.realStatus==="noNeed"||t.invoiceData.invoiceExceptionInfo==="abnormal"||t.invoiceData.manualModify||t.invoiceData.realStatus==="checkFail"||t.invoiceData.realStatus==="notCheck"),_=async()=>{const Re=new CreateLoading;Re.show();try{(await __updateInvoiceData(r.value)).code===200&&(showMessage({type:"success",message:"保存成功"}),c("saveSuccess"))}catch(Oe){showMessage({type:"error",message:Oe.msg}),c("saveSuccess")}Re.hide()},T=()=>{r.value.sellerReq.sellerName=t.invoiceData.sellerName,r.value.sellerReq.sellerAccount=t.invoiceData.sellerAccount,r.value.sellerReq.sellerContact=t.invoiceData.sellerContact,r.value.sellerReq.sellerId=t.invoiceData.sellerId,r.value.payerReq.payerAccount=t.invoiceData.payerAccount,r.value.payerReq.payerContact=t.invoiceData.payerContact,r.value.payerReq.payerName=t.invoiceData.payerName,r.value.payerReq.payerId=t.invoiceData.payerId,r.value.codeReq.invoiceCode=t.invoiceData.invoiceCode,r.value.codeReq.invoiceNum=t.invoiceData.invoiceNum,r.value.codeReq.checkCode=t.invoiceData.checkCode,r.value.taskId=t.invoiceData.taskId,r.value.itemAmountReqs=JSON.parse(JSON.stringify(t.invoiceData.deatis)).map(Re=>({detailCode:Re.code,itemExTaxAmount:Re.itemExTaxAmount,itemTaxRate:Re.itemTaxRate.replace(/%/g,""),itemTaxAmount:Re.itemTaxAmount}))},x=vue.ref(!1),D=vue.ref({}),A=vue.ref(0),B=Re=>`第${Re+1}行金额`,U=(Re,Oe)=>{D.value=JSON.parse(JSON.stringify(Re)),D.value.itemTaxRate=filterNumber(D.value.itemTaxRate),A.value=Oe,x.value=!0},be=()=>{r.value.itemAmountReqs[A.value].detailCode=D.value.detailCode,r.value.itemAmountReqs[A.value].itemExTaxAmount=D.value.itemExTaxAmount,r.value.itemAmountReqs[A.value].itemTaxRate=D.value.itemTaxRate,r.value.itemAmountReqs[A.value].itemTaxAmount=Number(new Decimal(filterNumber(D.value.itemExTaxAmount)||0).times(new Decimal(filterNumber(D.value.itemTaxRate/100))).toFixed(2)),x.value=!1},q=(Re,Oe)=>{let K=D.value[Oe];D.value[Oe]=filterNumber(K)||0},J=vue.computed(()=>{let Re=new Decimal(0);return r.value.itemAmountReqs.forEach(Oe=>{Re=Re.plus(new Decimal(filterNumber(Oe.itemExTaxAmount)||0).plus(new Decimal(Oe.itemTaxAmount||0)))}),Re.toFixed(2)}),me=vue.computed(()=>new Decimal(filterNumber(Number(D.value.itemExTaxAmount))).times(new Decimal(filterNumber(D.value.itemTaxRate/100))).toFixed(2));return vue.onMounted(()=>{T()}),(Re,Oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$4,[vue.createElementVNode("div",_hoisted_2$4,[vue.createElementVNode("img",{src:t.invoiceData.attachmentLink,onClick:vue.withModifiers(p,["stop"]),alt:""},null,8,_hoisted_3$4)]),vue.createElementVNode("div",_hoisted_4$4,[_hoisted_5$3,vue.createElementVNode("div",_hoisted_6$3,[vue.createElementVNode("div",_hoisted_7$3,[_hoisted_8$3,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[0]||(Oe[0]=K=>r.value.sellerReq.sellerName=K),placeholder:"请输入销售方",type:"text"},null,512),[[vue.vModelText,r.value.sellerReq.sellerName]]),vue.createElementVNode("div",_hoisted_9$1,[vue.createElementVNode("div",{onClick:Oe[1]||(Oe[1]=K=>u.value.showSeller=!u.value.showSeller)},[u.value.showSeller?(vue.openBlock(),vue.createElementBlock("i",_hoisted_11$1)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_10$1))])])]),vue.createVNode(vue.Transition,{name:"flod-fade",appear:""},{default:vue.withCtx(()=>[u.value.showSeller?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$1,[vue.createElementVNode("div",_hoisted_13$1,[_hoisted_14$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[2]||(Oe[2]=K=>r.value.sellerReq.sellerId=K),placeholder:"请输入纳税人识别号",type:"text"},null,512),[[vue.vModelText,r.value.sellerReq.sellerId]]),_hoisted_15$1]),vue.createElementVNode("div",_hoisted_16$1,[_hoisted_17$1,vue.withDirectives(vue.createElementVNode("textarea",{autocapitalize:"off","onUpdate:modelValue":Oe[3]||(Oe[3]=K=>r.value.sellerReq.sellerContact=K),placeholder:"请输入地址/电话",type:"textarea"},null,512),[[vue.vModelText,r.value.sellerReq.sellerContact]])]),vue.createElementVNode("div",_hoisted_18$1,[_hoisted_19$1,vue.withDirectives(vue.createElementVNode("textarea",{autocapitalize:"off","onUpdate:modelValue":Oe[4]||(Oe[4]=K=>r.value.sellerReq.sellerAccount=K),placeholder:"请输入开户银行+银行账户",type:"textarea"},null,512),[[vue.vModelText,r.value.sellerReq.sellerAccount]])])])):vue.createCommentVNode("",!0)]),_:1})]),vue.createElementVNode("div",_hoisted_20$1,[vue.createElementVNode("div",_hoisted_21$1,[_hoisted_22$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[5]||(Oe[5]=K=>r.value.payerReq.payerName=K),placeholder:"请输入购买方名称",type:"text"},null,512),[[vue.vModelText,r.value.payerReq.payerName]]),vue.createElementVNode("div",_hoisted_23$1,[vue.createElementVNode("div",{onClick:Oe[6]||(Oe[6]=K=>u.value.showPurchaser=!u.value.showPurchaser)},[u.value.showPurchaser?(vue.openBlock(),vue.createElementBlock("i",_hoisted_25$1)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_24$1))])])]),vue.createVNode(vue.Transition,{name:"flod-fade",appear:""},{default:vue.withCtx(()=>[u.value.showPurchaser?(vue.openBlock(),vue.createElementBlock("div",_hoisted_26$1,[vue.createElementVNode("div",_hoisted_27$1,[_hoisted_28$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[7]||(Oe[7]=K=>r.value.payerReq.payerId=K),placeholder:"请输入纳税人识别号",type:"text"},null,512),[[vue.vModelText,r.value.payerReq.payerId]])]),vue.createElementVNode("div",_hoisted_29$1,[_hoisted_30$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[8]||(Oe[8]=K=>r.value.payerReq.payerContact=K),placeholder:"请输入地址/电话",type:"textarea"},null,512),[[vue.vModelText,r.value.payerReq.payerContact]])]),vue.createElementVNode("div",_hoisted_31$1,[_hoisted_32$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[9]||(Oe[9]=K=>r.value.payerReq.payerAccount=K),placeholder:"请输入开户银行/银行账号",type:"textarea"},null,512),[[vue.vModelText,r.value.payerReq.payerAccount]])])])):vue.createCommentVNode("",!0)]),_:1})]),vue.createElementVNode("div",_hoisted_33$1,[vue.createElementVNode("div",_hoisted_34$1,[_hoisted_35$1,vue.createElementVNode("input",{readonly:"",value:t.invoiceData.description,placeholder:"",type:"text"},null,8,_hoisted_36$1)])]),_hoisted_37$1,vue.createElementVNode("div",_hoisted_38$1,[vue.createElementVNode("div",_hoisted_39$1,[_hoisted_40$1,vue.createElementVNode("input",{readonly:"",value:J.value,placeholder:"",type:"text"},null,8,_hoisted_41$1),vue.createElementVNode("div",_hoisted_42$1,[vue.createElementVNode("div",{onClick:Oe[10]||(Oe[10]=K=>u.value.showPrice=!u.value.showPrice)},[u.value.showPrice?(vue.openBlock(),vue.createElementBlock("i",_hoisted_44$1)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_43$1))])])]),vue.createVNode(vue.Transition,{name:"flod-fade"},{default:vue.withCtx(()=>[u.value.showPrice?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_45$1,[vue.createElementVNode("div",_hoisted_46$1,[vue.createElementVNode("table",null,[_hoisted_47$1,vue.createElementVNode("tbody",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.value.itemAmountReqs,(K,Le)=>(vue.openBlock(),vue.createElementBlock("tr",{onClick:Fe=>U(K,Le)},[vue.createElementVNode("td",null,vue.toDisplayString(K.itemExTaxAmount),1),vue.createElementVNode("td",null,vue.toDisplayString(K.itemTaxRate),1),vue.createElementVNode("td",null,vue.toDisplayString(K.itemTaxAmount),1)],8,_hoisted_48$1))),256))])])])]))]),_:1})]),vue.createElementVNode("div",_hoisted_49$1,[vue.createElementVNode("div",_hoisted_50$1,[_hoisted_51$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[11]||(Oe[11]=K=>r.value.codeReq.invoiceCode=K),placeholder:"请输入发票代码",type:"text"},null,512),[[vue.vModelText,r.value.codeReq.invoiceCode]]),vue.createElementVNode("div",_hoisted_52$1,[vue.createElementVNode("div",{onClick:Oe[12]||(Oe[12]=K=>u.value.invoiceCode=!u.value.invoiceCode)},[u.value.invoiceCode?(vue.openBlock(),vue.createElementBlock("i",_hoisted_54$1)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_53$1))])])]),vue.createVNode(vue.Transition,{name:"flod-fade",appear:""},{default:vue.withCtx(()=>[u.value.invoiceCode?(vue.openBlock(),vue.createElementBlock("div",_hoisted_55$1,[vue.createElementVNode("div",_hoisted_56$1,[_hoisted_57$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[13]||(Oe[13]=K=>r.value.codeReq.invoiceNum=K),placeholder:"请输入发票号码",type:"text"},null,512),[[vue.vModelText,r.value.codeReq.invoiceNum]])]),vue.createElementVNode("div",_hoisted_58$1,[_hoisted_59$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[14]||(Oe[14]=K=>r.value.codeReq.checkCode=K),placeholder:"请输入校验码",type:"text"},null,512),[[vue.vModelText,r.value.codeReq.checkCode]])])])):vue.createCommentVNode("",!0)]),_:1})]),vue.createElementVNode("div",_hoisted_60$1,[vue.createElementVNode("div",_hoisted_61$1,[_hoisted_62$1,vue.createElementVNode("input",{readonly:"",value:t.invoiceData.invoiceDate,placeholder:"请输入校验码",type:"text"},null,8,_hoisted_63$1)])]),vue.createElementVNode("div",_hoisted_64$1,[vue.createElementVNode("div",_hoisted_65$1,[_hoisted_66$1,vue.createElementVNode("input",{value:vue.unref(const_realStatus)[t.invoiceData.realStatus],placeholder:"",type:"text"},null,8,_hoisted_67$1)])]),vue.createElementVNode("div",_hoisted_68$1,[vue.createElementVNode("span",{class:"back-btn",style:{flex:"1","background-color":"#07c160",color:"#fff"},onClick:e}," 返回 "),y.value?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"save-btn",onClick:_},"保存")):vue.createCommentVNode("",!0)])])]),vue.createVNode(InvoicePopup,{modelValue:x.value,"onUpdate:modelValue":Oe[19]||(Oe[19]=K=>x.value=K),title:B(A.value)},{content:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_69$1,[vue.createElementVNode("div",_hoisted_70$1,[_hoisted_71$1,vue.withDirectives(vue.createElementVNode("input",{class:"input-color","onUpdate:modelValue":Oe[15]||(Oe[15]=K=>D.value.itemExTaxAmount=K),onBlur:Oe[16]||(Oe[16]=K=>q(K,"itemExTaxAmount")),placeholder:"请输入金额",type:"text"},null,544),[[vue.vModelText,D.value.itemExTaxAmount]]),_hoisted_72]),vue.createElementVNode("div",_hoisted_73,[_hoisted_74,vue.withDirectives(vue.createElementVNode("input",{class:"input-color","onUpdate:modelValue":Oe[17]||(Oe[17]=K=>D.value.itemTaxRate=K),onBlur:Oe[18]||(Oe[18]=K=>q(K,"itemTaxRate")),placeholder:"请输入税率",type:"text"},null,544),[[vue.vModelText,D.value.itemTaxRate]]),_hoisted_75]),vue.createElementVNode("div",_hoisted_76,[_hoisted_77,vue.createElementVNode("input",{value:me.value,readonly:"",placeholder:"",type:"text"},null,8,_hoisted_78)])])]),footer:vue.withCtx(()=>[vue.createElementVNode("div",{class:"footer-confirm-btn"},[vue.createElementVNode("button",{class:"confirm-btn",onClick:be},"确定")])]),_:1},8,["modelValue","title"])],64))}}),index_vue_vue_type_style_index_0_scoped_47fef101_lang="",Invoice=_export_sfc(_sfc_main$4,[["__scopeId","data-v-47fef101"]]),_withScopeId$2=n=>(vue.pushScopeId("data-v-4f642fc4"),n=n(),vue.popScopeId(),n),_hoisted_1$3={class:"skeleton-card"},_hoisted_2$3=_withScopeId$2(()=>vue.createElementVNode("div",{class:"skeleton-title"},null,-1)),_hoisted_3$3=_withScopeId$2(()=>vue.createElementVNode("div",{class:"skeleton-tags"},[vue.createElementVNode("div",{class:"skeleton-tag"}),vue.createElementVNode("div",{class:"skeleton-tag"})],-1)),_hoisted_4$3={class:"skeleton-content"},_hoisted_5$2={class:"skeleton-row"},_hoisted_6$2=_withScopeId$2(()=>vue.createElementVNode("div",{class:"skeleton-label"},null,-1)),_hoisted_7$2=_withScopeId$2(()=>vue.createElementVNode("div",{class:"skeleton-value"},null,-1)),_hoisted_8$2=[_hoisted_6$2,_hoisted_7$2],_sfc_main$3=vue.defineComponent({__name:"Skeleton",props:{row:{type:Number,default(){return 3}}},setup(n){const o=n;return(t,r)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[_hoisted_2$3,_hoisted_3$3,vue.createElementVNode("div",_hoisted_4$3,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.row,c=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$2,_hoisted_8$2))),256))])]))}}),Skeleton_vue_vue_type_style_index_0_scoped_4f642fc4_lang="",Skeleton=_export_sfc(_sfc_main$3,[["__scopeId","data-v-4f642fc4"]]),takePhoto=()=>new Promise((n,o)=>{var t=document.createElement("input");t.type="file",t.accept="image/*",t.capture="camera",t.style.display="none",document.body.appendChild(t),t.onchange=async function(r){var c=r.target.files[0];const u=c.size,e=20*1024*1024;if(u>e)return showMessage({message:"文件大小不能超过20MB"}),document.body.removeChild(t),o();n([c]),document.body.removeChild(t)},t.oncancel=()=>{document.body.removeChild(t)},t.click()}),fileType=[".jpg ,.png ,.bpm ,.jpeg ,.pdf ,.ofd ,.ofdx ,.jpe",".JPG ,.PNG ,.BPM ,.JPEG ,.PDF ,.OFD ,.OFDX ,.JPE"],selectPhoto=async n=>new Promise((o,t)=>{var r=document.createElement("input");r.type="file",r.accept=fileType.join(","),r.multiple=n,r.style.display="none",document.body.appendChild(r),r.onchange=async function(c){var u=c.target.files;if(u.length>9){r.value="",showMessage({message:"一次最多选择9个文件!",type:"error"});return}for(let e=0;e<u.length;e++){const _=u[e].size,T=20*1024*1024;if(_>T){showMessage({message:"文件大小不能超过20MB",type:"error"}),t();break}}o(u),document.body.removeChild(r)},r.oncancel=()=>{document.body.removeChild(r)},r.click()}),_withScopeId$1=n=>(vue.pushScopeId("data-v-c92c3db5"),n=n(),vue.popScopeId(),n),_hoisted_1$2={class:"InvoiceList"},_hoisted_2$2={class:"selectAll"},_hoisted_3$2={class:"left"},_hoisted_4$2={class:"right"},_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("span",null,"全选",-1)),_hoisted_6$1={class:"card"},_hoisted_7$1=["onClick"],_hoisted_8$1=["onClick"],_hoisted_9=_withScopeId$1(()=>vue.createElementVNode("i",{class:"gg-more-alt"},null,-1)),_hoisted_10=[_hoisted_9],_hoisted_11={class:"storeName"},_hoisted_12={class:"name"},_hoisted_13={class:"left"},_hoisted_14={key:0,class:"right"},_hoisted_15={class:"tags"},_hoisted_16={key:0,class:"manual"},_hoisted_17={key:1},_hoisted_18={class:"InvoiceInfo"},_hoisted_19={class:"leftinfo"},_hoisted_20={class:"item-info"},_hoisted_21=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票金额",-1)),_hoisted_22={class:"value price"},_hoisted_23={class:"item-info"},_hoisted_24=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票税额",-1)),_hoisted_25={class:"value price"},_hoisted_26={class:"item-info"},_hoisted_27=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票税率",-1)),_hoisted_28={class:"value price"},_hoisted_29={class:"item-info"},_hoisted_30=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票抬头",-1)),_hoisted_31={class:"value"},_hoisted_32={class:"item-info"},_hoisted_33=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票类型",-1)),_hoisted_34={class:"value"},_hoisted_35={class:"item-info"},_hoisted_36=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label",style:{"flex-shrink":"0"}},"发票号码",-1)),_hoisted_37={key:0,class:"value"},_hoisted_38={key:1,class:"value",style:{color:"red","font-size":"12px"}},_hoisted_39={class:"item-info"},_hoisted_40=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票时间",-1)),_hoisted_41={class:"value"},_hoisted_42={key:0,class:"item-info"},_hoisted_43=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票红冲",-1)),_hoisted_44=_withScopeId$1(()=>vue.createElementVNode("span",{class:"value",style:{color:"#ff7f25"}}," 部分红冲票 ",-1)),_hoisted_45=[_hoisted_43,_hoisted_44],_hoisted_46=_withScopeId$1(()=>vue.createElementVNode("div",{style:{color:"orange","font-size":"12px"}}," 请确认票面金额、税额与发票数据一致,点击右上角修改发票数据 ",-1)),_hoisted_47={key:0,style:{color:"red","text-align":"center"}},_hoisted_48={key:1,style:{color:"red","text-align":"center"}},_hoisted_49={class:"rightCheckbox"},_hoisted_50=["onUpdate:modelValue"],_hoisted_51={key:1,style:{"background-color":"#fff",padding:"21px 0 15px 12px",position:"relative",width:"100%"}},_hoisted_52={key:2,class:"err-card"},_hoisted_53=["onClick"],_hoisted_54=["src"],_hoisted_55={class:"right-errText"},_hoisted_56=_withScopeId$1(()=>vue.createElementVNode("div",{class:"title"},[vue.createElementVNode("span",null,"识别失败")],-1)),_hoisted_57={class:"content"},_hoisted_58={class:"recognitionResult"},_hoisted_59={key:0},_hoisted_60={key:1},_hoisted_61=_withScopeId$1(()=>vue.createElementVNode("p",{class:"errContent"},"OCR识别失败",-1)),_hoisted_62=_withScopeId$1(()=>vue.createElementVNode("p",null,"可以重新拍照识别,或手动添加信息导入",-1)),_hoisted_63=[_hoisted_61,_hoisted_62],_hoisted_64=["onUpdate:modelValue"],_hoisted_65={class:"btn-form"},_hoisted_66={class:"operate"},_hoisted_67=_withScopeId$1(()=>vue.createElementVNode("span",null,"移除",-1)),_hoisted_68=[_hoisted_67],_hoisted_69={class:"right-btn"},_hoisted_70={class:"select-item"},_hoisted_71={class:"select-item"},_sfc_main$2=vue.defineComponent({__name:"index",props:{listId:{required:!1,type:String},multiple:{required:!0,type:Boolean},catchList:{},businessLicense:{required:!1,type:String},taxCode:{required:!1,type:String},allUrlParams:{required:!1,type:Object,default:()=>({})},allParams:{required:!1,type:Object,default:()=>({})}},emits:["edit","ok"],setup(n,{emit:o}){const t=o,r=n,c=vue.ref(sessionStorage.getItem("token")),u=vue.ref(!1),e=vue.ref([]);r.catchList&&(e.value=r.catchList);const p=vue.ref(""),y=vue.computed(()=>e.value.filter($e=>$e.selected).map($e=>$e.taskId)),_=vue.computed(()=>Object.assign({},r.allParams,r.allUrlParams)),T=async()=>new Promise(async($e,He)=>{let Lt={};if(Lt.batchId=r.listId,Lt=Object.assign(Lt,_.value),!!Lt.batchId)try{const Qt=await __getUploadInvoiceList(Lt,c.value);Qt.code===200&&(e.value=Qt.data.invoiceList.map(zt=>{let Nt=e.value.find(we=>we.taskId===zt.taskId)||{};return{...zt,selected:Nt.selected}}),p.value=Qt.data.batchId,e.value.length<=0?J.value=!1:Re(),$e(e.value))}catch(Qt){console.log(Qt),He(Qt)}}),x=vue.ref([{name:"查看/编辑发票"}]),D=vue.ref({}),A=vue.ref(!1),B=$e=>{$e.name==="查看/编辑发票"&&t("edit",{taskId:D.value.taskId,batchId:p.value},D.value,e.value)},U=$e=>{if(!$e.invoiceStatus)return showMessage({teleport:api.get("teleport")||null,message:"发票无效!"});if($e.invoiceStatus!=="unused")return showMessage({message:"发票已被使用!"});if(!$e.invoiceNum)return showMessage({message:"发票号码为空,无法使用"});if($e.invalidFlag==="2")return showMessage({message:"发票已经被作废,无法使用"});if($e.invalidFlag==="9")return showMessage({message:"发票被全额红冲,请联系商家确认"});$e.selected=!$e.selected},be=$e=>{A.value=!0,D.value=$e},q=$e=>$e.invalidFlag==="2"||$e.invalidFlag==="9"||!$e.invoiceNum?!1:$e.invoiceStatus==="unused"?!!($e.manualModify||!$e.invoiceExceptionInfo):!1,J=vue.ref(!1),me=$e=>{J.value&&showMessage({message:"已选择全部可用发票"}),e.value.forEach(He=>{He.selected=q(He)&&J.value})},Re=()=>{const $e=e.value.filter(He=>q(He)).every(He=>He.selected);J.value=$e&&y.value.length>0},Oe=()=>{if(y.value.length<=0){showMessage({message:"请先选择发票"});return}showConfirmDialog({title:"提醒",message:"请确认是否需要移除选中项,移除后不可恢复!"}).then(async()=>{const $e=y.value.join(",");let He={batchId:p.value,taskIds:$e};He=Object.assign(He,_.value);var Lt=new URLSearchParams;for(const zt in He)Lt.append(zt,He[zt]);(await __deleteInvoice(Lt,c.value)).code===200&&(showMessage({type:"success",message:"移除成功"}),T())})},K=()=>{u.value=!0},Le=vue.ref([{name:"从相册中选择",icon:"gg-image"},{name:"拍照上传",icon:"gg-smart-home-wash-machine"}]),Fe=async $e=>{console.log($e);let He=[];$e.name==="从相册中选择"?He=await selectPhoto(r.multiple):He=await takePhoto();let Lt=new FormData;for(let Nt=0;Nt<He.length;Nt++)Lt.append("invoiceFiles",He[Nt]);let Qt={businessLicense:r.businessLicense||"",taxCode:r.taxCode||"",batchId:p.value};Qt=Object.assign(Qt,_.value);for(const Nt in Qt)Lt.append(Nt,Qt[Nt]);const zt=new CreateLoading;zt.show(),u.value=!1;try{(await __uploadInvoice(Lt)).code===200&&(showMessage({type:"success",message:"上传成功"}),an())}catch(Nt){console.log(Nt),an()}zt.hide()},kt=vue.computed(()=>e.value.filter(He=>He.selected).every(He=>q(He))&&e.value.filter(He=>He.selected).length>0),Wt=vue.computed(()=>e.value.filter($e=>$e.selected&&q($e)).length),Xt=vue.computed(()=>e.value.filter($e=>q($e)).length),dn=$e=>{qt({images:[$e],options:{zIndex:OCR_getMaxZIndex()+1}})},Jt=()=>{if(y.value.length<=0){showMessage({message:"请先选择发票"});return}if(!kt.value){showMessage({message:"发票无效或已被使用,请进行确认"});return}const $e=e.value.filter(Qt=>Qt.selected).map(Qt=>{let zt=VerificationOfTruth(Qt);return{...Qt,...zt}}),He=$e.filter(Qt=>Qt.invoiceCompanyType==="异常抬头"||Qt.invoiceCompanyType==="异常税号");if(He.some(Qt=>Qt.invoiceRootType==="专票"||Qt.invoiceRootType==="普票")){showConfirmDialog({title:"财务要求",message:()=>vue.h("div",{style:"color:#EF1725;",innerHTML:"专票和普票不允许出现异常抬头或异常税号,请取消勾选后继续提交"}),showCancelButton:!1});return}if(He.length>0){showConfirmDialog({title:"提醒",message:"存在异常抬头发票,请确认是否继续提交?",cancelText:"返回修改",confirmText:"继续提交"}).then(()=>{t("ok",$e,p.value)}).catch(Qt=>{console.log(Qt)});return}t("ok",$e,p.value)},gn=vue.ref(null),sn=vue.ref(null),an=()=>{T().then($e=>{if(!$e.some(Lt=>Lt.taskStatus==="ocr_doing"||Lt.taskStatus==="ocr_success")){clearTimeout(gn.value),clearTimeout(sn.value);return}gn.value=setTimeout(an,2e3)}).catch($e=>{sn.value=setTimeout(an,2e3)})};return vue.onMounted(()=>{an()}),vue.onUnmounted(()=>{clearTimeout(gn.value),clearTimeout(sn.value)}),($e,He)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",_hoisted_2$2,[vue.createElementVNode("div",_hoisted_3$2," 已选 "+vue.toDisplayString(Wt.value)+"/"+vue.toDisplayString(Xt.value),1),vue.createElementVNode("div",_hoisted_4$2,[_hoisted_5$1,vue.withDirectives(vue.createElementVNode("input",{type:"checkbox",onChange:vue.withModifiers(me,["self"]),"onUpdate:modelValue":He[0]||(He[0]=Lt=>J.value=Lt),onClick:He[1]||(He[1]=vue.withModifiers(()=>{},["stop"])),class:"inv-checkbox"},null,544),[[vue.vModelCheckbox,J.value]])])]),vue.createElementVNode("div",_hoisted_6$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.value,(Lt,Qt)=>(vue.openBlock(),vue.createElementBlock("div",{class:"li",key:Qt},[Lt.taskStatus==="finish"||Lt.taskStatus==="repeat"?(vue.openBlock(),vue.createElementBlock("div",{key:0,onClick:zt=>U(Lt),class:"item-card"},[vue.createElementVNode("div",{class:"details-btn",onClick:vue.withModifiers(zt=>be(Lt),["stop"])},_hoisted_10,8,_hoisted_8$1),vue.createElementVNode("div",{class:vue.normalizeClass(["title",{company:Lt.invoiceCompanyType==="公司",err:Lt.invoiceCompanyType==="异常抬头"||Lt.invoiceCompanyType==="异常税号"}])},vue.toDisplayString(Lt.invoiceCompanyType),3),vue.createElementVNode("div",_hoisted_11,[vue.createElementVNode("div",_hoisted_12,[vue.createElementVNode("div",_hoisted_13,vue.toDisplayString(Lt.sellerName),1),Lt.taskStatus==="repeat"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14," 已收录 ")):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_15,[Lt.manualModify?(vue.openBlock(),vue.createElementBlock("span",_hoisted_16," 手工录入 ")):Lt.invoiceExceptionInfo?(vue.openBlock(),vue.createElementBlock("div",_hoisted_17,[vue.createElementVNode("span",{class:vue.normalizeClass(vue.unref(setClass)(Lt.invoiceExceptionInfo))},vue.toDisplayString(vue.unref(const_invoiceExceptionInfo)[Lt.invoiceExceptionInfo]),3)])):(vue.openBlock(),vue.createElementBlock("span",{key:2,class:vue.normalizeClass(vue.unref(setClass)(Lt.realStatus))},vue.toDisplayString(vue.unref(const_realStatus)[Lt.realStatus]),3)),vue.createElementVNode("span",{class:vue.normalizeClass(vue.unref(setClass)(Lt.invoiceStatus))},vue.toDisplayString(vue.unref(const_invoiceStatus)[Lt.invoiceStatus]),3)]),vue.createElementVNode("div",_hoisted_18,[vue.createElementVNode("div",_hoisted_19,[vue.createElementVNode("div",_hoisted_20,[_hoisted_21,vue.createElementVNode("span",_hoisted_22,"¥"+vue.toDisplayString(Lt.priceTaxTotalFigure||Lt.noTaxAmountTotal),1)]),vue.createElementVNode("div",_hoisted_23,[_hoisted_24,vue.createElementVNode("span",_hoisted_25,"¥"+vue.toDisplayString(Lt.taxAmountTotal),1)]),vue.createElementVNode("div",_hoisted_26,[_hoisted_27,vue.createElementVNode("span",_hoisted_28,vue.toDisplayString(Lt.taxRate),1)]),vue.createElementVNode("div",_hoisted_29,[_hoisted_30,vue.createElementVNode("span",_hoisted_31,vue.toDisplayString(Lt.payerName),1)]),vue.createElementVNode("div",_hoisted_32,[_hoisted_33,vue.createElementVNode("span",_hoisted_34,vue.toDisplayString(Lt.invoiceRootType),1)]),vue.createElementVNode("div",_hoisted_35,[_hoisted_36,Lt.invoiceNum?(vue.openBlock(),vue.createElementBlock("span",_hoisted_37,vue.toDisplayString(Lt.invoiceNum),1)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_38,"未识别出发票号码,不允许使用,请点击右上角,进入详情修改"))]),vue.createElementVNode("div",_hoisted_39,[_hoisted_40,vue.createElementVNode("span",_hoisted_41,vue.toDisplayString(Lt.invoiceDate),1)]),Lt.invalidFlag==="8"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_42,_hoisted_45)):vue.createCommentVNode("",!0),_hoisted_46,vue.createElementVNode("div",null,[Lt.invalidFlag==="2"?(vue.openBlock(),vue.createElementBlock("p",_hoisted_47," 发票已经被作废,无法使用 ")):vue.createCommentVNode("",!0),Lt.invalidFlag==="9"?(vue.openBlock(),vue.createElementBlock("p",_hoisted_48," 发票被全额红冲,请联系商家确认 ")):vue.createCommentVNode("",!0)])]),vue.createElementVNode("div",_hoisted_49,[vue.withDirectives(vue.createElementVNode("input",{onClick:He[2]||(He[2]=vue.withModifiers(()=>{},["stop"])),type:"checkbox",class:"inv-checkbox",onChange:Re,"onUpdate:modelValue":zt=>Lt.selected=zt,"icon-size":"22px"},null,40,_hoisted_50),[[vue.vModelCheckbox,Lt.selected]])])])])],8,_hoisted_7$1)):Lt.taskStatus==="ocr_doing"||Lt.taskStatus==="ocr_success"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_51,[vue.createVNode(Loading,{class:"loading",style:{"background-color":"rgba(255, 255, 255, 0.5)"},loadingText:"识别中..."}),vue.createVNode(Skeleton,{loading:!0,title:"",row:5})])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_52,[vue.createElementVNode("div",{class:"left-img",onClick:zt=>dn(Lt.fileUrlKey)},[vue.createElementVNode("img",{src:Lt.fileUrlKey,alt:""},null,8,_hoisted_54)],8,_hoisted_53),vue.createElementVNode("div",_hoisted_55,[_hoisted_56,vue.createElementVNode("div",_hoisted_57,[vue.createElementVNode("div",_hoisted_58,[Lt.statusInfo?(vue.openBlock(),vue.createElementBlock("div",_hoisted_59,vue.toDisplayString(Lt.statusInfo),1)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_60,_hoisted_63))]),vue.createElementVNode("div",null,[vue.withDirectives(vue.createElementVNode("input",{type:"checkbox",class:"inv-checkbox",onClick:He[3]||(He[3]=vue.withModifiers(()=>{},["stop"])),"onUpdate:modelValue":zt=>Lt.selected=zt},null,8,_hoisted_64),[[vue.vModelCheckbox,Lt.selected]])])])])]))]))),128))]),vue.createElementVNode("div",_hoisted_65,[vue.createElementVNode("div",_hoisted_66,[vue.createElementVNode("div",{class:"delete",onClick:Oe},_hoisted_68),vue.createElementVNode("div",_hoisted_69,[vue.createElementVNode("span",{class:"add",onClick:vue.withModifiers(K,["stop"])},"继续添加发票"),vue.createElementVNode("span",{class:vue.normalizeClass(["ok",{disabledColor:!kt.value}]),onClick:Jt},"确定选择",2)])])]),vue.createVNode(InvoicePopup,{title:"添加发票",onOnSelect:Fe,options:Le.value,modelValue:u.value,"onUpdate:modelValue":He[4]||(He[4]=Lt=>u.value=Lt)},{"OCR-action-sheet-item":vue.withCtx(({item:Lt})=>[vue.createElementVNode("div",_hoisted_70,[vue.createElementVNode("span",{class:vue.normalizeClass([Lt.icon])},null,2),vue.createElementVNode("span",null,vue.toDisplayString(Lt.name),1)])]),_:1},8,["options","modelValue"]),vue.createVNode(InvoicePopup,{onOnSelect:B,options:x.value,modelValue:A.value,"onUpdate:modelValue":He[5]||(He[5]=Lt=>A.value=Lt)},{"OCR-action-sheet-item":vue.withCtx(({item:Lt})=>[vue.createElementVNode("div",_hoisted_71,[vue.createElementVNode("span",{class:vue.normalizeClass([Lt.icon])},null,2),vue.createElementVNode("span",null,vue.toDisplayString(Lt.name),1)])]),_:1},8,["options","modelValue"])]))}}),index_vue_vue_type_style_index_0_scoped_c92c3db5_lang="",InvoiceList=_export_sfc(_sfc_main$2,[["__scopeId","data-v-c92c3db5"]]),_withScopeId=n=>(vue.pushScopeId("data-v-754186cd"),n=n(),vue.popScopeId(),n),_hoisted_1$1={class:"PaymentMode"},_hoisted_2$1=_withScopeId(()=>vue.createElementVNode("div",{class:"title"},"选择识别方式",-1)),_hoisted_3$1={class:"list"},_hoisted_4$1=["onClick"],_hoisted_5={class:"left-text"},_hoisted_6={class:"icon-left"},_hoisted_7={class:"text"},_hoisted_8=_withScopeId(()=>vue.createElementVNode("div",{class:"right-icon"},[vue.createElementVNode("i",{class:"gg-chevron-right"})],-1)),_sfc_main$1=vue.defineComponent({__name:"index",props:["multiple","batchId","taxCode","businessLicense","allUrlParams","allParams"],emits:["uploadSuccess"],setup(n,{emit:o}){const t=n,r=o,c=[{text:"拍照",leftIcon:"gg-smart-home-wash-machine"},{text:"相册",leftIcon:"gg-image"}],u=vue.computed(()=>Object.assign({},t.allParams,t.allUrlParams)),e=async p=>{let y=[];p=="拍照"&&(y=await takePhoto()),p=="相册"&&(y=await selectPhoto(t.multiple)),console.log(y);let _=new FormData;for(let D=0;D<y.length;D++)_.append("invoiceFiles",y[D]);let T={businessLicense:t.businessLicense||"",taxCode:t.taxCode||""};t.batchId&&(T.batchId=t.batchId),T=Object.assign(T,u.value);for(const D in T)_.append(D,T[D]);const x=showLoading();x.show();try{const D=await __uploadInvoice(_);D.code===200&&r("uploadSuccess",D.data)}catch(D){console.log(D),showMessage({type:"error",message:D.msg})}x.hide()};return(p,y)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1,[_hoisted_2$1,vue.createElementVNode("div",_hoisted_3$1,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(c,(_,T)=>vue.createElementVNode("div",{class:"method-item",onClick:x=>e(_.text),key:_.id||T},[vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("span",_hoisted_6,[vue.createElementVNode("i",{class:vue.normalizeClass(["iconfont",_.leftIcon])},null,2)]),vue.createElementVNode("span",_hoisted_7,vue.toDisplayString(_.text),1)]),_hoisted_8],8,_hoisted_4$1)),64))])]))}}),index_vue_vue_type_style_index_0_scoped_754186cd_lang="",PaymentMode=_export_sfc(_sfc_main$1,[["__scopeId","data-v-754186cd"]]);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var vconsole_min={exports:{}};/*!
|
|
20
|
+
*/function _classCallCheck(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(n,o){for(var t=0;t<o.length;t++){var r=o[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,_toPropertyKey(r.key),r)}}function _createClass(n,o,t){return o&&_defineProperties(n.prototype,o),t&&_defineProperties(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function _defineProperty(n,o,t){return(o=_toPropertyKey(o))in n?Object.defineProperty(n,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[o]=t,n}function ownKeys(n,o){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);o&&(r=r.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),t.push.apply(t,r)}return t}function _objectSpread2(n){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?arguments[o]:{};o%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function _toPrimitive(n,o){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,o||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(n)}function _toPropertyKey(n){var o=_toPrimitive(n,"string");return typeof o=="symbol"?o:o+""}function _typeof(n){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(n)}var DEFAULTS={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},TEMPLATE='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',IS_BROWSER=typeof window<"u"&&typeof window.document<"u",WINDOW=IS_BROWSER?window:{},IS_TOUCH_DEVICE=IS_BROWSER&&WINDOW.document.documentElement?"ontouchstart"in WINDOW.document.documentElement:!1,HAS_POINTER_EVENT=IS_BROWSER?"PointerEvent"in WINDOW:!1,NAMESPACE="viewer",ACTION_MOVE="move",ACTION_SWITCH="switch",ACTION_ZOOM="zoom",CLASS_ACTIVE="".concat(NAMESPACE,"-active"),CLASS_CLOSE="".concat(NAMESPACE,"-close"),CLASS_FADE="".concat(NAMESPACE,"-fade"),CLASS_FIXED="".concat(NAMESPACE,"-fixed"),CLASS_FULLSCREEN="".concat(NAMESPACE,"-fullscreen"),CLASS_FULLSCREEN_EXIT="".concat(NAMESPACE,"-fullscreen-exit"),CLASS_HIDE="".concat(NAMESPACE,"-hide"),CLASS_HIDE_MD_DOWN="".concat(NAMESPACE,"-hide-md-down"),CLASS_HIDE_SM_DOWN="".concat(NAMESPACE,"-hide-sm-down"),CLASS_HIDE_XS_DOWN="".concat(NAMESPACE,"-hide-xs-down"),CLASS_IN="".concat(NAMESPACE,"-in"),CLASS_INVISIBLE="".concat(NAMESPACE,"-invisible"),CLASS_LOADING="".concat(NAMESPACE,"-loading"),CLASS_MOVE="".concat(NAMESPACE,"-move"),CLASS_OPEN="".concat(NAMESPACE,"-open"),CLASS_SHOW="".concat(NAMESPACE,"-show"),CLASS_TRANSITION="".concat(NAMESPACE,"-transition"),EVENT_CLICK="click",EVENT_DBLCLICK="dblclick",EVENT_DRAG_START="dragstart",EVENT_FOCUSIN="focusin",EVENT_KEY_DOWN="keydown",EVENT_LOAD="load",EVENT_ERROR="error",EVENT_TOUCH_END=IS_TOUCH_DEVICE?"touchend touchcancel":"mouseup",EVENT_TOUCH_MOVE=IS_TOUCH_DEVICE?"touchmove":"mousemove",EVENT_TOUCH_START=IS_TOUCH_DEVICE?"touchstart":"mousedown",EVENT_POINTER_DOWN=HAS_POINTER_EVENT?"pointerdown":EVENT_TOUCH_START,EVENT_POINTER_MOVE=HAS_POINTER_EVENT?"pointermove":EVENT_TOUCH_MOVE,EVENT_POINTER_UP=HAS_POINTER_EVENT?"pointerup pointercancel":EVENT_TOUCH_END,EVENT_RESIZE="resize",EVENT_TRANSITION_END="transitionend",EVENT_WHEEL="wheel",EVENT_READY="ready",EVENT_SHOW="show",EVENT_SHOWN="shown",EVENT_HIDE="hide",EVENT_HIDDEN="hidden",EVENT_VIEW="view",EVENT_VIEWED="viewed",EVENT_MOVE="move",EVENT_MOVED="moved",EVENT_ROTATE="rotate",EVENT_ROTATED="rotated",EVENT_SCALE="scale",EVENT_SCALED="scaled",EVENT_ZOOM="zoom",EVENT_ZOOMED="zoomed",EVENT_PLAY="play",EVENT_STOP="stop",DATA_ACTION="".concat(NAMESPACE,"Action"),REGEXP_SPACES=/\s\s*/,BUTTONS=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function isString(n){return typeof n=="string"}var isNaN$1=Number.isNaN||WINDOW.isNaN;function isNumber(n){return typeof n=="number"&&!isNaN$1(n)}function isUndefined(n){return typeof n>"u"}function isObject(n){return _typeof(n)==="object"&&n!==null}var hasOwnProperty=Object.prototype.hasOwnProperty;function isPlainObject(n){if(!isObject(n))return!1;try{var o=n.constructor,t=o.prototype;return o&&t&&hasOwnProperty.call(t,"isPrototypeOf")}catch{return!1}}function isFunction(n){return typeof n=="function"}function forEach(n,o){if(n&&isFunction(o))if(Array.isArray(n)||isNumber(n.length)){var t=n.length,r;for(r=0;r<t&&o.call(n,n[r],r,n)!==!1;r+=1);}else isObject(n)&&Object.keys(n).forEach(function(c){o.call(n,n[c],c,n)});return n}var assign=Object.assign||function(o){for(var t=arguments.length,r=new Array(t>1?t-1:0),c=1;c<t;c++)r[c-1]=arguments[c];return isObject(o)&&r.length>0&&r.forEach(function(u){isObject(u)&&Object.keys(u).forEach(function(e){o[e]=u[e]})}),o},REGEXP_SUFFIX=/^(?:width|height|left|top|marginLeft|marginTop)$/;function setStyle(n,o){var t=n.style;forEach(o,function(r,c){REGEXP_SUFFIX.test(c)&&isNumber(r)&&(r+="px"),t[c]=r})}function escapeHTMLEntities(n){return isString(n)?n.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):n}function hasClass(n,o){return!n||!o?!1:n.classList?n.classList.contains(o):n.className.indexOf(o)>-1}function addClass(n,o){if(!(!n||!o)){if(isNumber(n.length)){forEach(n,function(r){addClass(r,o)});return}if(n.classList){n.classList.add(o);return}var t=n.className.trim();t?t.indexOf(o)<0&&(n.className="".concat(t," ").concat(o)):n.className=o}}function removeClass(n,o){if(!(!n||!o)){if(isNumber(n.length)){forEach(n,function(t){removeClass(t,o)});return}if(n.classList){n.classList.remove(o);return}n.className.indexOf(o)>=0&&(n.className=n.className.replace(o,""))}}function toggleClass(n,o,t){if(o){if(isNumber(n.length)){forEach(n,function(r){toggleClass(r,o,t)});return}t?addClass(n,o):removeClass(n,o)}}var REGEXP_HYPHENATE=/([a-z\d])([A-Z])/g;function hyphenate(n){return n.replace(REGEXP_HYPHENATE,"$1-$2").toLowerCase()}function getData(n,o){return isObject(n[o])?n[o]:n.dataset?n.dataset[o]:n.getAttribute("data-".concat(hyphenate(o)))}function setData(n,o,t){isObject(t)?n[o]=t:n.dataset?n.dataset[o]=t:n.setAttribute("data-".concat(hyphenate(o)),t)}var onceSupported=function(){var n=!1;if(IS_BROWSER){var o=!1,t=function(){},r=Object.defineProperty({},"once",{get:function(){return n=!0,o},set:function(u){o=u}});WINDOW.addEventListener("test",t,r),WINDOW.removeEventListener("test",t,r)}return n}();function removeListener(n,o,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=t;o.trim().split(REGEXP_SPACES).forEach(function(u){if(!onceSupported){var e=n.listeners;e&&e[u]&&e[u][t]&&(c=e[u][t],delete e[u][t],Object.keys(e[u]).length===0&&delete e[u],Object.keys(e).length===0&&delete n.listeners)}n.removeEventListener(u,c,r)})}function addListener(n,o,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=t;o.trim().split(REGEXP_SPACES).forEach(function(u){if(r.once&&!onceSupported){var e=n.listeners,p=e===void 0?{}:e;c=function(){delete p[u][t],n.removeEventListener(u,c,r);for(var _=arguments.length,T=new Array(_),x=0;x<_;x++)T[x]=arguments[x];t.apply(n,T)},p[u]||(p[u]={}),p[u][t]&&n.removeEventListener(u,p[u][t],r),p[u][t]=c,n.listeners=p}n.addEventListener(u,c,r)})}function dispatchEvent(n,o,t,r){var c;return isFunction(Event)&&isFunction(CustomEvent)?c=new CustomEvent(o,_objectSpread2({bubbles:!0,cancelable:!0,detail:t},r)):(c=document.createEvent("CustomEvent"),c.initCustomEvent(o,!0,!0,t)),n.dispatchEvent(c)}function getOffset(n){var o=n.getBoundingClientRect();return{left:o.left+(window.pageXOffset-document.documentElement.clientLeft),top:o.top+(window.pageYOffset-document.documentElement.clientTop)}}function getTransforms(n){var o=n.rotate,t=n.scaleX,r=n.scaleY,c=n.translateX,u=n.translateY,e=[];isNumber(c)&&c!==0&&e.push("translateX(".concat(c,"px)")),isNumber(u)&&u!==0&&e.push("translateY(".concat(u,"px)")),isNumber(o)&&o!==0&&e.push("rotate(".concat(o,"deg)")),isNumber(t)&&t!==1&&e.push("scaleX(".concat(t,")")),isNumber(r)&&r!==1&&e.push("scaleY(".concat(r,")"));var p=e.length?e.join(" "):"none";return{WebkitTransform:p,msTransform:p,transform:p}}function getImageNameFromURL(n){return isString(n)?decodeURIComponent(n.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var IS_SAFARI=WINDOW.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(WINDOW.navigator.userAgent);function getImageNaturalSizes(n,o,t){var r=document.createElement("img");if(n.naturalWidth&&!IS_SAFARI)return t(n.naturalWidth,n.naturalHeight),r;var c=document.body||document.documentElement;return r.onload=function(){t(r.width,r.height),IS_SAFARI||c.removeChild(r)},forEach(o.inheritedAttributes,function(u){var e=n.getAttribute(u);e!==null&&r.setAttribute(u,e)}),r.src=n.src,IS_SAFARI||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",c.appendChild(r)),r}function getResponsiveClass(n){switch(n){case 2:return CLASS_HIDE_XS_DOWN;case 3:return CLASS_HIDE_SM_DOWN;case 4:return CLASS_HIDE_MD_DOWN;default:return""}}function getMaxZoomRatio(n){var o=_objectSpread2({},n),t=[];return forEach(n,function(r,c){delete o[c],forEach(o,function(u){var e=Math.abs(r.startX-u.startX),p=Math.abs(r.startY-u.startY),y=Math.abs(r.endX-u.endX),_=Math.abs(r.endY-u.endY),T=Math.sqrt(e*e+p*p),x=Math.sqrt(y*y+_*_),D=(x-T)/T;t.push(D)})}),t.sort(function(r,c){return Math.abs(r)<Math.abs(c)}),t[0]}function getPointer(n,o){var t=n.pageX,r=n.pageY,c={endX:t,endY:r};return o?c:_objectSpread2({timeStamp:Date.now(),startX:t,startY:r},c)}function getPointersCenter(n){var o=0,t=0,r=0;return forEach(n,function(c){var u=c.startX,e=c.startY;o+=u,t+=e,r+=1}),o/=r,t/=r,{pageX:o,pageY:t}}var render={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var o=this.element.ownerDocument,t=o.body||o.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-o.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var o=this.options,t=this.parent,r;o.inline&&(r={width:Math.max(t.offsetWidth,o.minWidth),height:Math.max(t.offsetHeight,o.minHeight)},this.parentData=r),(this.fulled||!r)&&(r=this.containerData),this.viewerData=assign({},r)},renderViewer:function(){this.options.inline&&!this.fulled&&setStyle(this.viewer,this.viewerData)},initList:function(){var o=this,t=this.element,r=this.options,c=this.list,u=[];c.innerHTML="",forEach(this.images,function(e,p){var y=e.src,_=e.alt||getImageNameFromURL(y),T=o.getImageURL(e);if(y||T){var x=document.createElement("li"),D=document.createElement("img");forEach(r.inheritedAttributes,function(A){var B=e.getAttribute(A);B!==null&&D.setAttribute(A,B)}),r.navbar&&(D.src=y||T),D.alt=_,D.setAttribute("data-original-url",T||y),x.setAttribute("data-index",p),x.setAttribute("data-viewer-action","view"),x.setAttribute("role","button"),r.keyboard&&x.setAttribute("tabindex",0),x.appendChild(D),c.appendChild(x),u.push(x)}}),this.items=u,forEach(u,function(e){var p=e.firstElementChild,y,_;setData(p,"filled",!0),r.loading&&addClass(e,CLASS_LOADING),addListener(p,EVENT_LOAD,y=function(x){removeListener(p,EVENT_ERROR,_),r.loading&&removeClass(e,CLASS_LOADING),o.loadImage(x)},{once:!0}),addListener(p,EVENT_ERROR,_=function(){removeListener(p,EVENT_LOAD,y),r.loading&&removeClass(e,CLASS_LOADING)},{once:!0})}),r.transition&&addListener(t,EVENT_VIEWED,function(){addClass(c,CLASS_TRANSITION)},{once:!0})},renderList:function(){var o=this.index,t=this.items[o];if(t){var r=t.nextElementSibling,c=parseInt(window.getComputedStyle(r||t).marginLeft,10),u=t.offsetWidth,e=u+c;setStyle(this.list,assign({width:e*this.length-c},getTransforms({translateX:(this.viewerData.width-u)/2-e*o})))}},resetList:function(){var o=this.list;o.innerHTML="",removeClass(o,CLASS_TRANSITION),setStyle(o,getTransforms({translateX:0}))},initImage:function(o){var t=this,r=this.options,c=this.image,u=this.viewerData,e=this.footer.offsetHeight,p=u.width,y=Math.max(u.height-e,e),_=this.imageData||{},T;this.imageInitializing={abort:function(){T.onload=null}},T=getImageNaturalSizes(c,r,function(x,D){var A=x/D,B=Math.max(0,Math.min(1,r.initialCoverage)),U=p,be=y;t.imageInitializing=!1,y*A>p?be=p/A:U=y*A,B=isNumber(B)?B:.9,U=Math.min(U*B,x),be=Math.min(be*B,D);var q=(p-U)/2,J=(y-be)/2,me={left:q,top:J,x:q,y:J,width:U,height:be,oldRatio:1,ratio:U/x,aspectRatio:A,naturalWidth:x,naturalHeight:D},Re=assign({},me);r.rotatable&&(me.rotate=_.rotate||0,Re.rotate=0),r.scalable&&(me.scaleX=_.scaleX||1,me.scaleY=_.scaleY||1,Re.scaleX=1,Re.scaleY=1),t.imageData=me,t.initialImageData=Re,o&&o()})},renderImage:function(o){var t=this,r=this.image,c=this.imageData;if(setStyle(r,assign({width:c.width,height:c.height,marginLeft:c.x,marginTop:c.y},getTransforms(c))),o)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&hasClass(r,CLASS_TRANSITION)){var u=function(){t.imageRendering=!1,o()};this.imageRendering={abort:function(){removeListener(r,EVENT_TRANSITION_END,u)}},addListener(r,EVENT_TRANSITION_END,u,{once:!0})}else o()},resetImage:function(){var o=this.image;o&&(this.viewing&&this.viewing.abort(),o.parentNode.removeChild(o),this.image=null,this.title.innerHTML="")}},events={bind:function(){var o=this.options,t=this.viewer,r=this.canvas,c=this.element.ownerDocument;addListener(t,EVENT_CLICK,this.onClick=this.click.bind(this)),addListener(t,EVENT_DRAG_START,this.onDragStart=this.dragstart.bind(this)),addListener(r,EVENT_POINTER_DOWN,this.onPointerDown=this.pointerdown.bind(this)),addListener(c,EVENT_POINTER_MOVE,this.onPointerMove=this.pointermove.bind(this)),addListener(c,EVENT_POINTER_UP,this.onPointerUp=this.pointerup.bind(this)),addListener(c,EVENT_KEY_DOWN,this.onKeyDown=this.keydown.bind(this)),addListener(window,EVENT_RESIZE,this.onResize=this.resize.bind(this)),o.zoomable&&o.zoomOnWheel&&addListener(t,EVENT_WHEEL,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),o.toggleOnDblclick&&addListener(r,EVENT_DBLCLICK,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var o=this.options,t=this.viewer,r=this.canvas,c=this.element.ownerDocument;removeListener(t,EVENT_CLICK,this.onClick),removeListener(t,EVENT_DRAG_START,this.onDragStart),removeListener(r,EVENT_POINTER_DOWN,this.onPointerDown),removeListener(c,EVENT_POINTER_MOVE,this.onPointerMove),removeListener(c,EVENT_POINTER_UP,this.onPointerUp),removeListener(c,EVENT_KEY_DOWN,this.onKeyDown),removeListener(window,EVENT_RESIZE,this.onResize),o.zoomable&&o.zoomOnWheel&&removeListener(t,EVENT_WHEEL,this.onWheel,{passive:!1,capture:!0}),o.toggleOnDblclick&&removeListener(r,EVENT_DBLCLICK,this.onDblclick)}},handlers={click:function(o){var t=this.options,r=this.imageData,c=o.target,u=getData(c,DATA_ACTION);switch(!u&&c.localName==="img"&&c.parentElement.localName==="li"&&(c=c.parentElement,u=getData(c,DATA_ACTION)),IS_TOUCH_DEVICE&&o.isTrusted&&c===this.canvas&&clearTimeout(this.clickCanvasTimeout),u){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(getData(c,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-r.scaleX||-1);break;case"flip-vertical":this.scaleY(-r.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(o){o.preventDefault(),this.viewed&&o.target===this.image&&(IS_TOUCH_DEVICE&&o.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(o.isTrusted?o:o.detail&&o.detail.originalEvent))},load:function(){var o=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,r=this.options,c=this.image,u=this.index,e=this.viewerData;removeClass(c,CLASS_INVISIBLE),r.loading&&removeClass(this.canvas,CLASS_LOADING),c.style.cssText="height:0;"+"margin-left:".concat(e.width/2,"px;")+"margin-top:".concat(e.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){toggleClass(c,CLASS_MOVE,r.movable),toggleClass(c,CLASS_TRANSITION,r.transition),o.renderImage(function(){o.viewed=!0,o.viewing=!1,isFunction(r.viewed)&&addListener(t,EVENT_VIEWED,r.viewed,{once:!0}),dispatchEvent(t,EVENT_VIEWED,{originalImage:o.images[u],index:u,image:c},{cancelable:!1})})})},loadImage:function(o){var t=o.target,r=t.parentNode,c=r.offsetWidth||30,u=r.offsetHeight||50,e=!!getData(t,"filled");getImageNaturalSizes(t,this.options,function(p,y){var _=p/y,T=c,x=u;u*_>c?e?T=u*_:x=c/_:e?x=c/_:T=u*_,setStyle(t,assign({width:T,height:x},getTransforms({translateX:(c-T)/2,translateY:(u-x)/2})))})},keydown:function(o){var t=this.options;if(t.keyboard){var r=o.keyCode||o.which||o.charCode;switch(r){case 13:this.viewer.contains(o.target)&&this.click(o);break}if(this.fulled)switch(r){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:o.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:o.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:o.ctrlKey&&(o.preventDefault(),this.toggle());break}}},dragstart:function(o){o.target.localName==="img"&&o.preventDefault()},pointerdown:function(o){var t=this.options,r=this.pointers,c=o.buttons,u=o.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(o.type==="mousedown"||o.type==="pointerdown"&&o.pointerType==="mouse")&&(isNumber(c)&&c!==1||isNumber(u)&&u!==0||o.ctrlKey))){o.preventDefault(),o.changedTouches?forEach(o.changedTouches,function(p){r[p.identifier]=getPointer(p)}):r[o.pointerId||0]=getPointer(o);var e=t.movable?ACTION_MOVE:!1;t.zoomOnTouch&&t.zoomable&&Object.keys(r).length>1?e=ACTION_ZOOM:t.slideOnTouch&&(o.pointerType==="touch"||o.type==="touchstart")&&this.isSwitchable()&&(e=ACTION_SWITCH),t.transition&&(e===ACTION_MOVE||e===ACTION_ZOOM)&&removeClass(this.image,CLASS_TRANSITION),this.action=e}},pointermove:function(o){var t=this.pointers,r=this.action;!this.viewed||!r||(o.preventDefault(),o.changedTouches?forEach(o.changedTouches,function(c){assign(t[c.identifier]||{},getPointer(c,!0))}):assign(t[o.pointerId||0]||{},getPointer(o,!0)),this.change(o))},pointerup:function(o){var t=this,r=this.options,c=this.action,u=this.pointers,e;o.changedTouches?forEach(o.changedTouches,function(p){e=u[p.identifier],delete u[p.identifier]}):(e=u[o.pointerId||0],delete u[o.pointerId||0]),c&&(o.preventDefault(),r.transition&&(c===ACTION_MOVE||c===ACTION_ZOOM)&&addClass(this.image,CLASS_TRANSITION),this.action=!1,IS_TOUCH_DEVICE&&c!==ACTION_ZOOM&&e&&Date.now()-e.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&o.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){dispatchEvent(t.image,EVENT_DBLCLICK,{originalEvent:o})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){t.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&r.backdrop!=="static"&&o.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){dispatchEvent(t.canvas,EVENT_CLICK,{originalEvent:o})},50)))))},resize:function(){var o=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){o.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}forEach(this.player.getElementsByTagName("img"),function(t){addListener(t,EVENT_LOAD,o.loadImage.bind(o),{once:!0}),dispatchEvent(t,EVENT_LOAD)})}},wheel:function(o){var t=this;if(this.viewed&&(o.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var r=Number(this.options.zoomRatio)||.1,c=1;o.deltaY?c=o.deltaY>0?1:-1:o.wheelDelta?c=-o.wheelDelta/120:o.detail&&(c=o.detail>0?1:-1),this.zoom(-c*r,!0,null,o)}}},methods={show:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.element,r=this.options;if(r.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(o),this;if(isFunction(r.show)&&addListener(t,EVENT_SHOW,r.show,{once:!0}),dispatchEvent(t,EVENT_SHOW)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var c=this.viewer;if(removeClass(c,CLASS_HIDE),c.setAttribute("role","dialog"),c.setAttribute("aria-labelledby",this.title.id),c.setAttribute("aria-modal",!0),c.removeAttribute("aria-hidden"),r.transition&&!o){var u=this.shown.bind(this);this.transitioning={abort:function(){removeListener(c,EVENT_TRANSITION_END,u),removeClass(c,CLASS_IN)}},addClass(c,CLASS_TRANSITION),c.initialOffsetWidth=c.offsetWidth,addListener(c,EVENT_TRANSITION_END,u,{once:!0}),addClass(c,CLASS_IN)}else addClass(c,CLASS_IN),this.shown();return this},hide:function(){var o=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.element,c=this.options;if(c.inline||this.hiding||!(this.isShown||this.showing))return this;if(isFunction(c.hide)&&addListener(r,EVENT_HIDE,c.hide,{once:!0}),dispatchEvent(r,EVENT_HIDE)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var u=this.viewer,e=this.image,p=function(){removeClass(u,CLASS_IN),o.hidden()};if(c.transition&&!t){var y=function(x){x&&x.target===u&&(removeListener(u,EVENT_TRANSITION_END,y),o.hidden())},_=function(){hasClass(u,CLASS_TRANSITION)?(addListener(u,EVENT_TRANSITION_END,y),removeClass(u,CLASS_IN)):p()};this.transitioning={abort:function(){o.viewed&&hasClass(e,CLASS_TRANSITION)?removeListener(e,EVENT_TRANSITION_END,_):hasClass(u,CLASS_TRANSITION)&&removeListener(u,EVENT_TRANSITION_END,y)}},this.viewed&&hasClass(e,CLASS_TRANSITION)?(addListener(e,EVENT_TRANSITION_END,_,{once:!0}),this.zoomTo(0,!1,null,null,!0)):_()}else p();return this},view:function(){var o=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var r=this.element,c=this.options,u=this.title,e=this.canvas,p=this.items[t],y=p.querySelector("img"),_=getData(y,"originalUrl"),T=y.getAttribute("alt"),x=document.createElement("img");if(forEach(c.inheritedAttributes,function(be){var q=y.getAttribute(be);q!==null&&x.setAttribute(be,q)}),x.src=_,x.alt=T,isFunction(c.view)&&addListener(r,EVENT_VIEW,c.view,{once:!0}),dispatchEvent(r,EVENT_VIEW,{originalImage:this.images[t],index:t,image:x})===!1||!this.isShown||this.hiding||this.played)return this;var D=this.items[this.index];D&&(removeClass(D,CLASS_ACTIVE),D.removeAttribute("aria-selected")),addClass(p,CLASS_ACTIVE),p.setAttribute("aria-selected",!0),c.focus&&p.focus(),this.image=x,this.viewed=!1,this.index=t,this.imageData={},addClass(x,CLASS_INVISIBLE),c.loading&&addClass(e,CLASS_LOADING),e.innerHTML="",e.appendChild(x),this.renderList(),u.innerHTML="";var A=function(){var q=o.imageData,J=Array.isArray(c.title)?c.title[1]:c.title;u.innerHTML=escapeHTMLEntities(isFunction(J)?J.call(o,x,q):"".concat(T," (").concat(q.naturalWidth," × ").concat(q.naturalHeight,")"))},B,U;return addListener(r,EVENT_VIEWED,A,{once:!0}),this.viewing={abort:function(){removeListener(r,EVENT_VIEWED,A),x.complete?o.imageRendering?o.imageRendering.abort():o.imageInitializing&&o.imageInitializing.abort():(x.src="",removeListener(x,EVENT_LOAD,B),o.timeout&&clearTimeout(o.timeout))}},x.complete?this.load():(addListener(x,EVENT_LOAD,B=function(){removeListener(x,EVENT_ERROR,U),o.load()},{once:!0}),addListener(x,EVENT_ERROR,U=function(){removeListener(x,EVENT_LOAD,B),o.timeout&&(clearTimeout(o.timeout),o.timeout=!1),removeClass(x,CLASS_INVISIBLE),c.loading&&removeClass(o.canvas,CLASS_LOADING)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){removeClass(x,CLASS_INVISIBLE),o.timeout=!1},1e3)),this},prev:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.index-1;return t<0&&(t=o?this.length-1:0),this.view(t),this},next:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.length-1,r=this.index+1;return r>t&&(r=o?0:t),this.view(r),this},move:function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,r=this.imageData;return this.moveTo(isUndefined(o)?o:r.x+Number(o),isUndefined(t)?t:r.y+Number(t)),this},moveTo:function(o){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=this.element,e=this.options,p=this.imageData;if(o=Number(o),r=Number(r),this.viewed&&!this.played&&e.movable){var y=p.x,_=p.y,T=!1;if(isNumber(o)?T=!0:o=y,isNumber(r)?T=!0:r=_,T){if(isFunction(e.move)&&addListener(u,EVENT_MOVE,e.move,{once:!0}),dispatchEvent(u,EVENT_MOVE,{x:o,y:r,oldX:y,oldY:_,originalEvent:c})===!1)return this;p.x=o,p.y=r,p.left=o,p.top=r,this.moving=!0,this.renderImage(function(){t.moving=!1,isFunction(e.moved)&&addListener(u,EVENT_MOVED,e.moved,{once:!0}),dispatchEvent(u,EVENT_MOVED,{x:o,y:r,oldX:y,oldY:_,originalEvent:c},{cancelable:!1})})}}return this},rotate:function(o){return this.rotateTo((this.imageData.rotate||0)+Number(o)),this},rotateTo:function(o){var t=this,r=this.element,c=this.options,u=this.imageData;if(o=Number(o),isNumber(o)&&this.viewed&&!this.played&&c.rotatable){var e=u.rotate;if(isFunction(c.rotate)&&addListener(r,EVENT_ROTATE,c.rotate,{once:!0}),dispatchEvent(r,EVENT_ROTATE,{degree:o,oldDegree:e})===!1)return this;u.rotate=o,this.rotating=!0,this.renderImage(function(){t.rotating=!1,isFunction(c.rotated)&&addListener(r,EVENT_ROTATED,c.rotated,{once:!0}),dispatchEvent(r,EVENT_ROTATED,{degree:o,oldDegree:e},{cancelable:!1})})}return this},scaleX:function(o){return this.scale(o,this.imageData.scaleY),this},scaleY:function(o){return this.scale(this.imageData.scaleX,o),this},scale:function(o){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,c=this.element,u=this.options,e=this.imageData;if(o=Number(o),r=Number(r),this.viewed&&!this.played&&u.scalable){var p=e.scaleX,y=e.scaleY,_=!1;if(isNumber(o)?_=!0:o=p,isNumber(r)?_=!0:r=y,_){if(isFunction(u.scale)&&addListener(c,EVENT_SCALE,u.scale,{once:!0}),dispatchEvent(c,EVENT_SCALE,{scaleX:o,scaleY:r,oldScaleX:p,oldScaleY:y})===!1)return this;e.scaleX=o,e.scaleY=r,this.scaling=!0,this.renderImage(function(){t.scaling=!1,isFunction(u.scaled)&&addListener(c,EVENT_SCALED,u.scaled,{once:!0}),dispatchEvent(c,EVENT_SCALED,{scaleX:o,scaleY:r,oldScaleX:p,oldScaleY:y},{cancelable:!1})})}}return this},zoom:function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,u=this.imageData;return o=Number(o),o<0?o=1/(1-o):o=1+o,this.zoomTo(u.width*o/u.naturalWidth,t,r,c),this},zoomTo:function(o){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,p=this.element,y=this.options,_=this.pointers,T=this.imageData,x=T.x,D=T.y,A=T.width,B=T.height,U=T.naturalWidth,be=T.naturalHeight;if(o=Math.max(0,o),isNumber(o)&&this.viewed&&!this.played&&(e||y.zoomable)){if(!e){var q=Math.max(.01,y.minZoomRatio),J=Math.min(100,y.maxZoomRatio);o=Math.min(Math.max(o,q),J)}if(u)switch(u.type){case"wheel":y.zoomRatio>=.055&&o>.95&&o<1.05&&(o=1);break;case"pointermove":case"touchmove":case"mousemove":o>.99&&o<1.01&&(o=1);break}var me=U*o,Re=be*o,Oe=me-A,K=Re-B,Le=T.ratio;if(isFunction(y.zoom)&&addListener(p,EVENT_ZOOM,y.zoom,{once:!0}),dispatchEvent(p,EVENT_ZOOM,{ratio:o,oldRatio:Le,originalEvent:u})===!1)return this;if(this.zooming=!0,u){var Fe=getOffset(this.viewer),kt=_&&Object.keys(_).length>0?getPointersCenter(_):{pageX:u.pageX,pageY:u.pageY};T.x-=Oe*((kt.pageX-Fe.left-x)/A),T.y-=K*((kt.pageY-Fe.top-D)/B)}else isPlainObject(c)&&isNumber(c.x)&&isNumber(c.y)?(T.x-=Oe*((c.x-x)/A),T.y-=K*((c.y-D)/B)):(T.x-=Oe/2,T.y-=K/2);T.left=T.x,T.top=T.y,T.width=me,T.height=Re,T.oldRatio=Le,T.ratio=o,this.renderImage(function(){t.zooming=!1,isFunction(y.zoomed)&&addListener(p,EVENT_ZOOMED,y.zoomed,{once:!0}),dispatchEvent(p,EVENT_ZOOMED,{ratio:o,oldRatio:Le,originalEvent:u},{cancelable:!1})}),r&&this.tooltip()}return this},play:function(){var o=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var r=this.element,c=this.options;if(isFunction(c.play)&&addListener(r,EVENT_PLAY,c.play,{once:!0}),dispatchEvent(r,EVENT_PLAY)===!1)return this;var u=this.player,e=this.loadImage.bind(this),p=[],y=0,_=0;if(this.played=!0,this.onLoadWhenPlay=e,t&&this.requestFullscreen(t),addClass(u,CLASS_SHOW),forEach(this.items,function(D,A){var B=D.querySelector("img"),U=document.createElement("img");U.src=getData(B,"originalUrl"),U.alt=B.getAttribute("alt"),U.referrerPolicy=B.referrerPolicy,y+=1,addClass(U,CLASS_FADE),toggleClass(U,CLASS_TRANSITION,c.transition),hasClass(D,CLASS_ACTIVE)&&(addClass(U,CLASS_IN),_=A),p.push(U),addListener(U,EVENT_LOAD,e,{once:!0}),u.appendChild(U)}),isNumber(c.interval)&&c.interval>0){var T=function(){clearTimeout(o.playing.timeout),removeClass(p[_],CLASS_IN),_-=1,_=_>=0?_:y-1,addClass(p[_],CLASS_IN),o.playing.timeout=setTimeout(T,c.interval)},x=function(){clearTimeout(o.playing.timeout),removeClass(p[_],CLASS_IN),_+=1,_=_<y?_:0,addClass(p[_],CLASS_IN),o.playing.timeout=setTimeout(x,c.interval)};y>1&&(this.playing={prev:T,next:x,timeout:setTimeout(x,c.interval)})}return this},stop:function(){var o=this;if(!this.played)return this;var t=this.element,r=this.options;if(isFunction(r.stop)&&addListener(t,EVENT_STOP,r.stop,{once:!0}),dispatchEvent(t,EVENT_STOP)===!1)return this;var c=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,forEach(c.getElementsByTagName("img"),function(u){removeListener(u,EVENT_LOAD,o.onLoadWhenPlay)}),removeClass(c,CLASS_SHOW),c.innerHTML="",this.exitFullscreen(),this},full:function(){var o=this,t=this.options,r=this.viewer,c=this.image,u=this.list;return!this.isShown||this.played||this.fulled||!t.inline?this:(this.fulled=!0,this.open(),addClass(this.button,CLASS_FULLSCREEN_EXIT),t.transition&&(removeClass(u,CLASS_TRANSITION),this.viewed&&removeClass(c,CLASS_TRANSITION)),addClass(r,CLASS_FIXED),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("style"),setStyle(r,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=assign({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){o.renderImage(function(){t.transition&&setTimeout(function(){addClass(c,CLASS_TRANSITION),addClass(u,CLASS_TRANSITION)},0)})}),this)},exit:function(){var o=this,t=this.options,r=this.viewer,c=this.image,u=this.list;return!this.isShown||this.played||!this.fulled||!t.inline?this:(this.fulled=!1,this.close(),removeClass(this.button,CLASS_FULLSCREEN_EXIT),t.transition&&(removeClass(u,CLASS_TRANSITION),this.viewed&&removeClass(c,CLASS_TRANSITION)),t.focus&&this.clearEnforceFocus(),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),removeClass(r,CLASS_FIXED),setStyle(r,{zIndex:t.zIndexInline}),this.viewerData=assign({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){o.renderImage(function(){t.transition&&setTimeout(function(){addClass(c,CLASS_TRANSITION),addClass(u,CLASS_TRANSITION)},0)})}),this)},tooltip:function(){var o=this,t=this.options,r=this.tooltipBox,c=this.imageData;return!this.viewed||this.played||!t.tooltip?this:(r.textContent="".concat(Math.round(c.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&dispatchEvent(r,EVENT_TRANSITION_END),addClass(r,CLASS_SHOW),addClass(r,CLASS_FADE),addClass(r,CLASS_TRANSITION),r.removeAttribute("aria-hidden"),r.initialOffsetWidth=r.offsetWidth,addClass(r,CLASS_IN)):(addClass(r,CLASS_SHOW),r.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){t.transition?(addListener(r,EVENT_TRANSITION_END,function(){removeClass(r,CLASS_SHOW),removeClass(r,CLASS_FADE),removeClass(r,CLASS_TRANSITION),r.setAttribute("aria-hidden",!0),o.fading=!1},{once:!0}),removeClass(r,CLASS_IN),o.fading=!0):(removeClass(r,CLASS_SHOW),r.setAttribute("aria-hidden",!0)),o.tooltipping=!1},1e3),this)},toggle:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,o):this.zoomTo(1,!0,null,o),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=assign({},this.initialImageData),this.renderImage()),this},update:function(){var o=this,t=this.element,r=this.options,c=this.isImg;if(c&&!t.parentNode)return this.destroy();var u=[];if(forEach(c?[t]:t.querySelectorAll("img"),function(_){isFunction(r.filter)?r.filter.call(o,_)&&u.push(_):o.getImageURL(_)&&u.push(_)}),!u.length)return this;if(this.images=u,this.length=u.length,this.ready){var e=[];if(forEach(this.items,function(_,T){var x=_.querySelector("img"),D=u[T];D&&x?(D.src!==x.src||D.alt!==x.alt)&&e.push(T):e.push(T)}),setStyle(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var p=e.indexOf(this.index);if(p>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-p,this.length-1),0));else{var y=this.items[this.index];addClass(y,CLASS_ACTIVE),y.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var o=this.element,t=this.options;return o[NAMESPACE]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||removeListener(o,EVENT_CLICK,this.onStart),o[NAMESPACE]=void 0,this):this}},others={getImageURL:function(o){var t=this.options.url;return isString(t)?t=o.getAttribute(t):isFunction(t)?t=t.call(this,o):t="",t},enforceFocus:function(){var o=this;this.clearEnforceFocus(),addListener(document,EVENT_FOCUSIN,this.onFocusin=function(t){var r=o.viewer,c=t.target;if(!(c===document||c===r||r.contains(c))){for(;c;){if(c.getAttribute("tabindex")!==null||c.getAttribute("aria-modal")==="true")return;c=c.parentElement}r.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(removeListener(document,EVENT_FOCUSIN,this.onFocusin),this.onFocusin=null)},open:function(){var o=this.body;addClass(o,CLASS_OPEN),this.scrollbarWidth>0&&(o.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var o=this.body;removeClass(o,CLASS_OPEN),this.scrollbarWidth>0&&(o.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var o=this.element,t=this.options,r=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(r.focus(),this.enforceFocus()),isFunction(t.shown)&&addListener(o,EVENT_SHOWN,t.shown,{once:!0}),dispatchEvent(o,EVENT_SHOWN)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var o=this.element,t=this.options,r=this.viewer;t.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),addClass(r,CLASS_HIDE),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),r.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(isFunction(t.hidden)&&addListener(o,EVENT_HIDDEN,t.hidden,{once:!0}),dispatchEvent(o,EVENT_HIDDEN,null,{cancelable:!1}))},requestFullscreen:function(o){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var r=t.documentElement;r.requestFullscreen?isPlainObject(o)?r.requestFullscreen(o):r.requestFullscreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):r.mozRequestFullScreen?r.mozRequestFullScreen():r.msRequestFullscreen&&r.msRequestFullscreen()}},exitFullscreen:function(){var o=this.element.ownerDocument;this.fulled&&(o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement)&&(o.exitFullscreen?o.exitFullscreen():o.webkitExitFullscreen?o.webkitExitFullscreen():o.mozCancelFullScreen?o.mozCancelFullScreen():o.msExitFullscreen&&o.msExitFullscreen())},change:function(o){var t=this.options,r=this.pointers,c=r[Object.keys(r)[0]];if(c){var u=c.endX-c.startX,e=c.endY-c.startY;switch(this.action){case ACTION_MOVE:(u!==0||e!==0)&&(this.pointerMoved=!0,this.move(u,e,o));break;case ACTION_ZOOM:this.zoom(getMaxZoomRatio(r),!1,null,o);break;case ACTION_SWITCH:{this.action="switched";var p=Math.abs(u);p>1&&p>Math.abs(e)&&(this.pointers={},u>1?this.prev(t.loop):u<-1&&this.next(t.loop));break}}forEach(r,function(y){y.startX=y.endX,y.startY=y.endY})}},isSwitchable:function(){var o=this.imageData,t=this.viewerData;return this.length>1&&o.x>=0&&o.y>=0&&o.width<=t.width&&o.height<=t.height}},AnotherViewer=WINDOW.Viewer,getUniqueID=function(n){return function(){return n+=1,n}}(-1),Viewer=function(){function n(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,n),!o||o.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=o,this.options=assign({},DEFAULTS,isPlainObject(t)&&t),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=getUniqueID(),this.init()}return _createClass(n,[{key:"init",value:function(){var t=this,r=this.element,c=this.options;if(!r[NAMESPACE]){r[NAMESPACE]=this,c.focus&&!c.keyboard&&(c.focus=!1);var u=r.localName==="img",e=[];if(forEach(u?[r]:r.querySelectorAll("img"),function(_){isFunction(c.filter)?c.filter.call(t,_)&&e.push(_):t.getImageURL(_)&&e.push(_)}),this.isImg=u,this.length=e.length,this.images=e,this.initBody(),isUndefined(document.createElement(NAMESPACE).style.transition)&&(c.transition=!1),c.inline){var p=0,y=function(){if(p+=1,p===t.length){var T;t.initializing=!1,t.delaying={abort:function(){clearTimeout(T)}},T=setTimeout(function(){t.delaying=!1,t.build()},0)}};this.initializing={abort:function(){forEach(e,function(T){T.complete||(removeListener(T,EVENT_LOAD,y),removeListener(T,EVENT_ERROR,y))})}},forEach(e,function(_){if(_.complete)y();else{var T,x;addListener(_,EVENT_LOAD,T=function(){removeListener(_,EVENT_ERROR,x),y()},{once:!0}),addListener(_,EVENT_ERROR,x=function(){removeListener(_,EVENT_LOAD,T),y()},{once:!0})}})}else addListener(r,EVENT_CLICK,this.onStart=function(_){var T=_.target;T.localName==="img"&&(!isFunction(c.filter)||c.filter.call(t,T))&&t.view(t.images.indexOf(T))})}}},{key:"build",value:function(){if(!this.ready){var t=this.element,r=this.options,c=t.parentNode,u=document.createElement("div");u.innerHTML=TEMPLATE;var e=u.querySelector(".".concat(NAMESPACE,"-container")),p=e.querySelector(".".concat(NAMESPACE,"-title")),y=e.querySelector(".".concat(NAMESPACE,"-toolbar")),_=e.querySelector(".".concat(NAMESPACE,"-navbar")),T=e.querySelector(".".concat(NAMESPACE,"-button")),x=e.querySelector(".".concat(NAMESPACE,"-canvas"));if(this.parent=c,this.viewer=e,this.title=p,this.toolbar=y,this.navbar=_,this.button=T,this.canvas=x,this.footer=e.querySelector(".".concat(NAMESPACE,"-footer")),this.tooltipBox=e.querySelector(".".concat(NAMESPACE,"-tooltip")),this.player=e.querySelector(".".concat(NAMESPACE,"-player")),this.list=e.querySelector(".".concat(NAMESPACE,"-list")),e.id="".concat(NAMESPACE).concat(this.id),p.id="".concat(NAMESPACE,"Title").concat(this.id),addClass(p,r.title?getResponsiveClass(Array.isArray(r.title)?r.title[0]:r.title):CLASS_HIDE),addClass(_,r.navbar?getResponsiveClass(r.navbar):CLASS_HIDE),toggleClass(T,CLASS_HIDE,!r.button),r.keyboard&&T.setAttribute("tabindex",0),r.backdrop&&(addClass(e,"".concat(NAMESPACE,"-backdrop")),!r.inline&&r.backdrop!=="static"&&setData(x,DATA_ACTION,"hide")),isString(r.className)&&r.className&&r.className.split(REGEXP_SPACES).forEach(function(me){addClass(e,me)}),r.toolbar){var D=document.createElement("ul"),A=isPlainObject(r.toolbar),B=BUTTONS.slice(0,3),U=BUTTONS.slice(7,9),be=BUTTONS.slice(9);A||addClass(y,getResponsiveClass(r.toolbar)),forEach(A?r.toolbar:BUTTONS,function(me,Re){var Oe=A&&isPlainObject(me),K=A?hyphenate(Re):me,Le=Oe&&!isUndefined(me.show)?me.show:me;if(!(!Le||!r.zoomable&&B.indexOf(K)!==-1||!r.rotatable&&U.indexOf(K)!==-1||!r.scalable&&be.indexOf(K)!==-1)){var Fe=Oe&&!isUndefined(me.size)?me.size:me,kt=Oe&&!isUndefined(me.click)?me.click:me,Wt=document.createElement("li");r.keyboard&&Wt.setAttribute("tabindex",0),Wt.setAttribute("role","button"),addClass(Wt,"".concat(NAMESPACE,"-").concat(K)),isFunction(kt)||setData(Wt,DATA_ACTION,K),isNumber(Le)&&addClass(Wt,getResponsiveClass(Le)),["small","large"].indexOf(Fe)!==-1?addClass(Wt,"".concat(NAMESPACE,"-").concat(Fe)):K==="play"&&addClass(Wt,"".concat(NAMESPACE,"-large")),isFunction(kt)&&addListener(Wt,EVENT_CLICK,kt),D.appendChild(Wt)}}),y.appendChild(D)}else addClass(y,CLASS_HIDE);if(!r.rotatable){var q=y.querySelectorAll('li[class*="rotate"]');addClass(q,CLASS_INVISIBLE),forEach(q,function(me){y.appendChild(me)})}if(r.inline)addClass(T,CLASS_FULLSCREEN),setStyle(e,{zIndex:r.zIndexInline}),window.getComputedStyle(c).position==="static"&&setStyle(c,{position:"relative"}),c.insertBefore(e,t.nextSibling);else{addClass(T,CLASS_CLOSE),addClass(e,CLASS_FIXED),addClass(e,CLASS_FADE),addClass(e,CLASS_HIDE),setStyle(e,{zIndex:r.zIndex});var J=r.container;isString(J)&&(J=t.ownerDocument.querySelector(J)),J||(J=this.body),J.appendChild(e)}if(r.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,isFunction(r.ready)&&addListener(t,EVENT_READY,r.ready,{once:!0}),dispatchEvent(t,EVENT_READY)===!1){this.ready=!1;return}this.ready&&r.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=AnotherViewer,n}},{key:"setDefaults",value:function(t){assign(DEFAULTS,isPlainObject(t)&&t)}}])}();assign(Viewer.prototype,render,events,handlers,methods,others);var je=typeof global=="object"&&global&&global.Object===Object&&global;const re=je;var _e=typeof self=="object"&&self&&self.Object===Object&&self,Ae=re||_e||Function("return this")();const E=Ae;var xe=E.Symbol;const S=xe;var te=Object.prototype,Pe=te.hasOwnProperty,Se=te.toString,O=S?S.toStringTag:void 0;function Ie(n){var o=Pe.call(n,O),t=n[O];try{n[O]=void 0;var r=!0}catch{}var c=Se.call(n);return r&&(o?n[O]=t:delete n[O]),c}var Ee=Object.prototype,Me=Ee.toString;function Ve(n){return Me.call(n)}var Ce="[object Null]",Be="[object Undefined]",H=S?S.toStringTag:void 0;function M(n){return n==null?n===void 0?Be:Ce:H&&H in Object(n)?Ie(n):Ve(n)}function V(n){return n!=null&&typeof n=="object"}var Ne=Array.isArray;const De=Ne;function b(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function ne(n){return n}var Xe="[object AsyncFunction]",ze="[object Function]",Qe="[object GeneratorFunction]",Ye="[object Proxy]";function ie(n){if(!b(n))return!1;var o=M(n);return o==ze||o==Qe||o==Xe||o==Ye}var Ze=E["__core-js_shared__"];const F=Ze;var X=function(){var n=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function ke(n){return!!X&&X in n}var er=Function.prototype,rr=er.toString;function tr(n){if(n!=null){try{return rr.call(n)}catch{}try{return n+""}catch{}}return""}var nr=/[\\^$.*+?()[\]{}|]/g,ir=/^\[object .+?Constructor\]$/,or=Function.prototype,ar=Object.prototype,ur=or.toString,sr=ar.hasOwnProperty,cr=RegExp("^"+ur.call(sr).replace(nr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fr(n){if(!b(n)||ke(n))return!1;var o=ie(n)?cr:ir;return o.test(tr(n))}function dr(n,o){return n==null?void 0:n[o]}function lr(n,o){var t=dr(n,o);return fr(t)?t:void 0}function pr(n,o,t){switch(t.length){case 0:return n.call(o);case 1:return n.call(o,t[0]);case 2:return n.call(o,t[0],t[1]);case 3:return n.call(o,t[0],t[1],t[2])}return n.apply(o,t)}var gr=800,vr=16,yr=Date.now;function br(n){var o=0,t=0;return function(){var r=yr(),c=vr-(r-t);if(t=r,c>0){if(++o>=gr)return arguments[0]}else o=0;return n.apply(void 0,arguments)}}function mr(n){return function(){return n}}var hr=function(){try{var n=lr(Object,"defineProperty");return n({},"",{}),n}catch{}}();const I=hr;var wr=I?function(n,o){return I(n,"toString",{configurable:!0,enumerable:!1,value:mr(o),writable:!0})}:ne;const Tr=wr;var $r=br(Tr);const Or=$r;var jr=9007199254740991,_r=/^(?:0|[1-9]\d*)$/;function oe(n,o){var t=typeof n;return o=o??jr,!!o&&(t=="number"||t!="symbol"&&_r.test(n))&&n>-1&&n%1==0&&n<o}function ae(n,o,t){o=="__proto__"&&I?I(n,o,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[o]=t}function W(n,o){return n===o||n!==n&&o!==o}var Ar=Object.prototype,xr=Ar.hasOwnProperty;function ue(n,o,t){var r=n[o];(!(xr.call(n,o)&&W(r,t))||t===void 0&&!(o in n))&&ae(n,o,t)}function Pr(n,o,t,r){var c=!t;t||(t={});for(var u=-1,e=o.length;++u<e;){var p=o[u],y=r?r(t[p],n[p],p,t,n):void 0;y===void 0&&(y=n[p]),c?ae(t,p,y):ue(t,p,y)}return t}var z=Math.max;function Sr(n,o,t){return o=z(o===void 0?n.length-1:o,0),function(){for(var r=arguments,c=-1,u=z(r.length-o,0),e=Array(u);++c<u;)e[c]=r[o+c];c=-1;for(var p=Array(o+1);++c<o;)p[c]=r[c];return p[o]=t(e),pr(n,this,p)}}function se(n,o){return Or(Sr(n,o,ne),n+"")}var Ir=9007199254740991;function ce(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Ir}function C(n){return n!=null&&ce(n.length)&&!ie(n)}function fe(n,o,t){if(!b(t))return!1;var r=typeof o;return(r=="number"?C(t)&&oe(o,t.length):r=="string"&&o in t)?W(t[o],n):!1}function Er(n){return se(function(o,t){var r=-1,c=t.length,u=c>1?t[c-1]:void 0,e=c>2?t[2]:void 0;for(u=n.length>3&&typeof u=="function"?(c--,u):void 0,e&&fe(t[0],t[1],e)&&(u=c<3?void 0:u,c=1),o=Object(o);++r<c;){var p=t[r];p&&n(o,p,r,u)}return o})}var Mr=Object.prototype;function L(n){var o=n&&n.constructor,t=typeof o=="function"&&o.prototype||Mr;return n===t}function Vr(n,o){for(var t=-1,r=Array(n);++t<n;)r[t]=o(t);return r}var Cr="[object Arguments]";function Q(n){return V(n)&&M(n)==Cr}var de=Object.prototype,Br=de.hasOwnProperty,Ur=de.propertyIsEnumerable,Fr=Q(function(){return arguments}())?Q:function(n){return V(n)&&Br.call(n,"callee")&&!Ur.call(n,"callee")};const Nr=Fr;function Dr(){return!1}var le=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Y=le&&typeof module=="object"&&module&&!module.nodeType&&module,Wr=Y&&Y.exports===le,Z=Wr?E.Buffer:void 0,Lr=Z?Z.isBuffer:void 0,Rr=Lr||Dr;const Kr=Rr;var Gr="[object Arguments]",Hr="[object Array]",qr="[object Boolean]",Jr="[object Date]",Xr="[object Error]",zr="[object Function]",Qr="[object Map]",Yr="[object Number]",Zr="[object Object]",kr="[object RegExp]",et="[object Set]",rt="[object String]",tt="[object WeakMap]",nt="[object ArrayBuffer]",it="[object DataView]",ot="[object Float32Array]",at="[object Float64Array]",ut="[object Int8Array]",st="[object Int16Array]",ct="[object Int32Array]",ft="[object Uint8Array]",dt="[object Uint8ClampedArray]",lt="[object Uint16Array]",pt="[object Uint32Array]",f={};f[ot]=f[at]=f[ut]=f[st]=f[ct]=f[ft]=f[dt]=f[lt]=f[pt]=!0,f[Gr]=f[Hr]=f[nt]=f[qr]=f[it]=f[Jr]=f[Xr]=f[zr]=f[Qr]=f[Yr]=f[Zr]=f[kr]=f[et]=f[rt]=f[tt]=!1;function gt(n){return V(n)&&ce(n.length)&&!!f[M(n)]}function vt(n){return function(o){return n(o)}}var pe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j=pe&&typeof module=="object"&&module&&!module.nodeType&&module,yt=j&&j.exports===pe,N=yt&&re.process,bt=function(){try{var n=j&&j.require&&j.require("util").types;return n||N&&N.binding&&N.binding("util")}catch{}}();const k=bt;var ee=k&&k.isTypedArray,mt=ee?vt(ee):gt;const ht=mt;var wt=Object.prototype,Tt=wt.hasOwnProperty;function ge(n,o){var t=De(n),r=!t&&Nr(n),c=!t&&!r&&Kr(n),u=!t&&!r&&!c&&ht(n),e=t||r||c||u,p=e?Vr(n.length,String):[],y=p.length;for(var _ in n)(o||Tt.call(n,_))&&!(e&&(_=="length"||c&&(_=="offset"||_=="parent")||u&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||oe(_,y)))&&p.push(_);return p}function $t(n,o){return function(t){return n(o(t))}}var Ot=$t(Object.keys,Object);const jt=Ot;var _t=Object.prototype,At=_t.hasOwnProperty;function xt(n){if(!L(n))return jt(n);var o=[];for(var t in Object(n))At.call(n,t)&&t!="constructor"&&o.push(t);return o}function Pt(n){return C(n)?ge(n):xt(n)}var St=Object.prototype,It=St.hasOwnProperty,Et=Er(function(n,o){if(L(o)||C(o)){Pr(o,Pt(o),n);return}for(var t in o)It.call(o,t)&&ue(n,t,o[t])});const Mt=Et;function Vt(n){var o=[];if(n!=null)for(var t in Object(n))o.push(t);return o}var Ct=Object.prototype,Bt=Ct.hasOwnProperty;function Ut(n){if(!b(n))return Vt(n);var o=L(n),t=[];for(var r in n)r=="constructor"&&(o||!Bt.call(n,r))||t.push(r);return t}function Ft(n){return C(n)?ge(n,!0):Ut(n)}var ve=Object.prototype,Kt=ve.hasOwnProperty;se(function(n,o){n=Object(n);var t=-1,r=o.length,c=r>2?o[2]:void 0;for(c&&fe(o[0],o[1],c)&&(r=1);++t<r;)for(var u=o[t],e=Ft(u),p=-1,y=e.length;++p<y;){var _=e[p],T=n[_];(T===void 0||W(T,ve[_])&&!Kt.call(n,_))&&(n[_]=u[_])}return n});const qt=({images:n=[],options:o})=>{o=Mt(o,{inline:!1});const t=document.createElement("div"),r=vue.h("div",{style:{display:"none"},class:["__viewer-token"]},n.map(p=>vue.h("img",typeof p=="string"?{src:p}:p)));vue.render(r,t);const c=t.firstElementChild;document.body.appendChild(c);const u=new Viewer(c,o),e=u.destroy.bind(u);return u.destroy=function(){return e(),vue.render(null,t),u},u.show(),c.addEventListener("hidden",function(){this.viewer===u&&u.destroy()}),u};vue.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(n,{emit:o}){let t;const r=vue.ref();function c(){t=new Viewer(r.value,n.options),o("inited",t)}function u(){t&&t.destroy()}function e(){u(),c()}function p(){t?(t.update(),o("inited",t)):c()}function y(){n.rebuild?e():p()}const _={deep:!0};return vue.watch(()=>n.images,()=>{vue.nextTick(()=>{y()})},_),vue.watch(()=>n.trigger,()=>{vue.nextTick(()=>{y()})},_),vue.watch(()=>n.options,()=>{vue.nextTick(()=>{e()})},_),vue.onMounted(()=>c()),vue.onUnmounted(()=>u()),{root:r,createViewer:c,rebuildViewer:e,updateViewer:p,destroyViewer:u}}});const viewer="",_withScopeId$3=n=>(vue.pushScopeId("data-v-784ab8b0"),n=n(),vue.popScopeId(),n),_hoisted_1$4={class:"Invoice"},_hoisted_2$4={class:"top"},_hoisted_3$4=["src"],_hoisted_4$4={class:"inovice-content"},_hoisted_5$3=_withScopeId$3(()=>vue.createElementVNode("div",{class:"Field-title"},[vue.createElementVNode("span",{class:"titleLeft"},"公司信息")],-1)),_hoisted_6$3={class:"marPX"},_hoisted_7$3={class:"inv-cell"},_hoisted_8$3=_withScopeId$3(()=>vue.createElementVNode("label",null,"销售方",-1)),_hoisted_9$1={class:"cell-icon"},_hoisted_10$1={key:0,class:"gg-chevron-down"},_hoisted_11$1={key:1,class:"gg-chevron-up"},_hoisted_12$1={key:0},_hoisted_13$1={class:"inv-cell"},_hoisted_14$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"纳税人识别号",-1)),_hoisted_15$1=_withScopeId$3(()=>vue.createElementVNode("div",{class:"cell-icon"},null,-1)),_hoisted_16$1={class:"inv-cell"},_hoisted_17$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"地址/电话",-1)),_hoisted_18$1={class:"inv-cell"},_hoisted_19$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"开户银行/银行账号",-1)),_hoisted_20$1={class:"marPX"},_hoisted_21$1={class:"inv-cell"},_hoisted_22$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"购买方",-1)),_hoisted_23$1={class:"cell-icon"},_hoisted_24$1={key:0,class:"gg-chevron-down"},_hoisted_25$1={key:1,class:"gg-chevron-up"},_hoisted_26$1={key:0},_hoisted_27$1={class:"inv-cell"},_hoisted_28$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"纳税人识别号",-1)),_hoisted_29$1={class:"inv-cell"},_hoisted_30$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"地址/电话",-1)),_hoisted_31$1={class:"inv-cell"},_hoisted_32$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"开户银行/银行账号",-1)),_hoisted_33$1={class:"marPX"},_hoisted_34$1={class:"inv-cell"},_hoisted_35$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"发票类型",-1)),_hoisted_36$1=["value"],_hoisted_37$1=_withScopeId$3(()=>vue.createElementVNode("div",{style:{color:"orange","font-size":"12px"}}," 请确认票面金额、税额与发票数据一致 ",-1)),_hoisted_38$1={class:"marPX"},_hoisted_39$1={class:"inv-cell"},_hoisted_40$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"价税合计",-1)),_hoisted_41$1=["value"],_hoisted_42$1={class:"cell-icon"},_hoisted_43$1={key:0,class:"gg-chevron-down"},_hoisted_44$1={key:1,class:"gg-chevron-up"},_hoisted_45$1={key:0},_hoisted_46$1={class:"inv-cell"},_hoisted_47$1=_withScopeId$3(()=>vue.createElementVNode("thead",null,[vue.createElementVNode("tr",null,[vue.createElementVNode("th",null,"商品金额(不含税)"),vue.createElementVNode("th",null,"税率"),vue.createElementVNode("th",null,"税额")])],-1)),_hoisted_48$1=["onClick"],_hoisted_49$1={class:"marPX"},_hoisted_50$1={class:"inv-cell"},_hoisted_51$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"发票代码",-1)),_hoisted_52$1={class:"cell-icon"},_hoisted_53$1={key:0,class:"gg-chevron-down"},_hoisted_54$1={key:1,class:"gg-chevron-up"},_hoisted_55$1={key:0},_hoisted_56$1={class:"inv-cell"},_hoisted_57$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"发票号码",-1)),_hoisted_58$1={class:"inv-cell"},_hoisted_59$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"校验码",-1)),_hoisted_60$1={class:"marPX"},_hoisted_61$1={class:"inv-cell"},_hoisted_62$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"开票日期",-1)),_hoisted_63$1=["value"],_hoisted_64$1={class:"marPX"},_hoisted_65$1={class:"inv-cell"},_hoisted_66$1=_withScopeId$3(()=>vue.createElementVNode("label",null,"查验状态",-1)),_hoisted_67$1=["value"],_hoisted_68$1={class:"submit"},_hoisted_69$1={class:"content"},_hoisted_70$1={class:"inv-cell"},_hoisted_71=_withScopeId$3(()=>vue.createElementVNode("label",null,"不含税金额",-1)),_hoisted_72=_withScopeId$3(()=>vue.createElementVNode("div",{class:"cell-icon"},null,-1)),_hoisted_73={class:"inv-cell"},_hoisted_74=_withScopeId$3(()=>vue.createElementVNode("label",null,"税率",-1)),_hoisted_75=_withScopeId$3(()=>vue.createElementVNode("div",{class:"cell-icon"},"%",-1)),_hoisted_76={class:"inv-cell"},_hoisted_77=_withScopeId$3(()=>vue.createElementVNode("label",null,"税额",-1)),_hoisted_78=["value"],_sfc_main$4=vue.defineComponent({__name:"index",props:["ids","invoiceData"],emits:["saveSuccess"],setup(n,{emit:o}){const t=n,r=vue.ref({codeReq:{invoiceCode:"",invoiceNum:"",checkCode:""},itemAmountReqs:[{detailCode:"",itemExTaxAmount:0,itemTaxRate:0,itemTaxAmount:0}],payerReq:{payerAccount:"",payerContact:"",payerId:"",payerName:""},sellerReq:{sellerAccount:"",sellerContact:"",sellerId:"",sellerName:""},taskId:""}),c=o;document.title="发票信息";const u=vue.ref({}),e=()=>{c("saveSuccess")},p=()=>{qt({images:[t.invoiceData.attachmentLink],options:{zIndex:OCR_getMaxZIndex()+1}})},y=vue.computed(()=>t.invoiceData.realStatus==="noNeed"||t.invoiceData.invoiceExceptionInfo==="abnormal"||t.invoiceData.manualModify||t.invoiceData.realStatus==="checkFail"||t.invoiceData.realStatus==="notCheck"),_=async()=>{const Re=new CreateLoading;Re.show();try{(await __updateInvoiceData(r.value)).code===200&&(showMessage({type:"success",message:"保存成功"}),c("saveSuccess"))}catch(Oe){showMessage({type:"error",message:Oe.msg}),c("saveSuccess")}Re.hide()},T=()=>{r.value.sellerReq.sellerName=t.invoiceData.sellerName,r.value.sellerReq.sellerAccount=t.invoiceData.sellerAccount,r.value.sellerReq.sellerContact=t.invoiceData.sellerContact,r.value.sellerReq.sellerId=t.invoiceData.sellerId,r.value.payerReq.payerAccount=t.invoiceData.payerAccount,r.value.payerReq.payerContact=t.invoiceData.payerContact,r.value.payerReq.payerName=t.invoiceData.payerName,r.value.payerReq.payerId=t.invoiceData.payerId,r.value.codeReq.invoiceCode=t.invoiceData.invoiceCode,r.value.codeReq.invoiceNum=t.invoiceData.invoiceNum,r.value.codeReq.checkCode=t.invoiceData.checkCode,r.value.taskId=t.invoiceData.taskId,r.value.itemAmountReqs=JSON.parse(JSON.stringify(t.invoiceData.deatis)).map(Re=>({detailCode:Re.code,itemExTaxAmount:Re.itemExTaxAmount,itemTaxRate:Re.itemTaxRate.replace(/%/g,""),itemTaxAmount:Re.itemTaxAmount}))},x=vue.ref(!1),D=vue.ref({}),A=vue.ref(0),B=Re=>`第${Re+1}行金额`,U=(Re,Oe)=>{D.value=JSON.parse(JSON.stringify(Re)),D.value.itemTaxRate=filterNumber(D.value.itemTaxRate),A.value=Oe,x.value=!0},be=()=>{r.value.itemAmountReqs[A.value].detailCode=D.value.detailCode,r.value.itemAmountReqs[A.value].itemExTaxAmount=D.value.itemExTaxAmount,r.value.itemAmountReqs[A.value].itemTaxRate=D.value.itemTaxRate,r.value.itemAmountReqs[A.value].itemTaxAmount=Number(new Decimal(filterNumber(D.value.itemExTaxAmount)||0).times(new Decimal(filterNumber(D.value.itemTaxRate/100))).toFixed(2)),x.value=!1},q=(Re,Oe)=>{let K=D.value[Oe];D.value[Oe]=filterNumber(K)||0},J=vue.computed(()=>{let Re=new Decimal(0);return r.value.itemAmountReqs.forEach(Oe=>{Re=Re.plus(new Decimal(filterNumber(Oe.itemExTaxAmount)||0).plus(new Decimal(Oe.itemTaxAmount||0)))}),Re.toFixed(2)}),me=vue.computed(()=>new Decimal(filterNumber(Number(D.value.itemExTaxAmount))).times(new Decimal(filterNumber(D.value.itemTaxRate/100))).toFixed(2));return vue.onMounted(()=>{T()}),(Re,Oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$4,[vue.createElementVNode("div",_hoisted_2$4,[vue.createElementVNode("img",{src:t.invoiceData.attachmentLink,onClick:vue.withModifiers(p,["stop"]),alt:""},null,8,_hoisted_3$4)]),vue.createElementVNode("div",_hoisted_4$4,[_hoisted_5$3,vue.createElementVNode("div",_hoisted_6$3,[vue.createElementVNode("div",_hoisted_7$3,[_hoisted_8$3,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[0]||(Oe[0]=K=>r.value.sellerReq.sellerName=K),placeholder:"请输入销售方",type:"text"},null,512),[[vue.vModelText,r.value.sellerReq.sellerName]]),vue.createElementVNode("div",_hoisted_9$1,[vue.createElementVNode("div",{onClick:Oe[1]||(Oe[1]=K=>u.value.showSeller=!u.value.showSeller)},[u.value.showSeller?(vue.openBlock(),vue.createElementBlock("i",_hoisted_11$1)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_10$1))])])]),vue.createVNode(vue.Transition,{name:"flod-fade",appear:""},{default:vue.withCtx(()=>[u.value.showSeller?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$1,[vue.createElementVNode("div",_hoisted_13$1,[_hoisted_14$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[2]||(Oe[2]=K=>r.value.sellerReq.sellerId=K),placeholder:"请输入纳税人识别号",type:"text"},null,512),[[vue.vModelText,r.value.sellerReq.sellerId]]),_hoisted_15$1]),vue.createElementVNode("div",_hoisted_16$1,[_hoisted_17$1,vue.withDirectives(vue.createElementVNode("textarea",{autocapitalize:"off","onUpdate:modelValue":Oe[3]||(Oe[3]=K=>r.value.sellerReq.sellerContact=K),placeholder:"请输入地址/电话",type:"textarea"},null,512),[[vue.vModelText,r.value.sellerReq.sellerContact]])]),vue.createElementVNode("div",_hoisted_18$1,[_hoisted_19$1,vue.withDirectives(vue.createElementVNode("textarea",{autocapitalize:"off","onUpdate:modelValue":Oe[4]||(Oe[4]=K=>r.value.sellerReq.sellerAccount=K),placeholder:"请输入开户银行+银行账户",type:"textarea"},null,512),[[vue.vModelText,r.value.sellerReq.sellerAccount]])])])):vue.createCommentVNode("",!0)]),_:1})]),vue.createElementVNode("div",_hoisted_20$1,[vue.createElementVNode("div",_hoisted_21$1,[_hoisted_22$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[5]||(Oe[5]=K=>r.value.payerReq.payerName=K),placeholder:"请输入购买方名称",type:"text"},null,512),[[vue.vModelText,r.value.payerReq.payerName]]),vue.createElementVNode("div",_hoisted_23$1,[vue.createElementVNode("div",{onClick:Oe[6]||(Oe[6]=K=>u.value.showPurchaser=!u.value.showPurchaser)},[u.value.showPurchaser?(vue.openBlock(),vue.createElementBlock("i",_hoisted_25$1)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_24$1))])])]),vue.createVNode(vue.Transition,{name:"flod-fade",appear:""},{default:vue.withCtx(()=>[u.value.showPurchaser?(vue.openBlock(),vue.createElementBlock("div",_hoisted_26$1,[vue.createElementVNode("div",_hoisted_27$1,[_hoisted_28$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[7]||(Oe[7]=K=>r.value.payerReq.payerId=K),placeholder:"请输入纳税人识别号",type:"text"},null,512),[[vue.vModelText,r.value.payerReq.payerId]])]),vue.createElementVNode("div",_hoisted_29$1,[_hoisted_30$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[8]||(Oe[8]=K=>r.value.payerReq.payerContact=K),placeholder:"请输入地址/电话",type:"textarea"},null,512),[[vue.vModelText,r.value.payerReq.payerContact]])]),vue.createElementVNode("div",_hoisted_31$1,[_hoisted_32$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[9]||(Oe[9]=K=>r.value.payerReq.payerAccount=K),placeholder:"请输入开户银行/银行账号",type:"textarea"},null,512),[[vue.vModelText,r.value.payerReq.payerAccount]])])])):vue.createCommentVNode("",!0)]),_:1})]),vue.createElementVNode("div",_hoisted_33$1,[vue.createElementVNode("div",_hoisted_34$1,[_hoisted_35$1,vue.createElementVNode("input",{readonly:"",value:t.invoiceData.invoiceRootType,placeholder:"",type:"text"},null,8,_hoisted_36$1)])]),_hoisted_37$1,vue.createElementVNode("div",_hoisted_38$1,[vue.createElementVNode("div",_hoisted_39$1,[_hoisted_40$1,vue.createElementVNode("input",{readonly:"",value:J.value,placeholder:"",type:"text"},null,8,_hoisted_41$1),vue.createElementVNode("div",_hoisted_42$1,[vue.createElementVNode("div",{onClick:Oe[10]||(Oe[10]=K=>u.value.showPrice=!u.value.showPrice)},[u.value.showPrice?(vue.openBlock(),vue.createElementBlock("i",_hoisted_44$1)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_43$1))])])]),vue.createVNode(vue.Transition,{name:"flod-fade"},{default:vue.withCtx(()=>[u.value.showPrice?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_45$1,[vue.createElementVNode("div",_hoisted_46$1,[vue.createElementVNode("table",null,[_hoisted_47$1,vue.createElementVNode("tbody",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(r.value.itemAmountReqs,(K,Le)=>(vue.openBlock(),vue.createElementBlock("tr",{onClick:Fe=>U(K,Le)},[vue.createElementVNode("td",null,vue.toDisplayString(K.itemExTaxAmount),1),vue.createElementVNode("td",null,vue.toDisplayString(K.itemTaxRate),1),vue.createElementVNode("td",null,vue.toDisplayString(K.itemTaxAmount),1)],8,_hoisted_48$1))),256))])])])]))]),_:1})]),vue.createElementVNode("div",_hoisted_49$1,[vue.createElementVNode("div",_hoisted_50$1,[_hoisted_51$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[11]||(Oe[11]=K=>r.value.codeReq.invoiceCode=K),placeholder:"请输入发票代码",type:"text"},null,512),[[vue.vModelText,r.value.codeReq.invoiceCode]]),vue.createElementVNode("div",_hoisted_52$1,[vue.createElementVNode("div",{onClick:Oe[12]||(Oe[12]=K=>u.value.invoiceCode=!u.value.invoiceCode)},[u.value.invoiceCode?(vue.openBlock(),vue.createElementBlock("i",_hoisted_54$1)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_53$1))])])]),vue.createVNode(vue.Transition,{name:"flod-fade",appear:""},{default:vue.withCtx(()=>[u.value.invoiceCode?(vue.openBlock(),vue.createElementBlock("div",_hoisted_55$1,[vue.createElementVNode("div",_hoisted_56$1,[_hoisted_57$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[13]||(Oe[13]=K=>r.value.codeReq.invoiceNum=K),placeholder:"请输入发票号码",type:"text"},null,512),[[vue.vModelText,r.value.codeReq.invoiceNum]])]),vue.createElementVNode("div",_hoisted_58$1,[_hoisted_59$1,vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":Oe[14]||(Oe[14]=K=>r.value.codeReq.checkCode=K),placeholder:"请输入校验码",type:"text"},null,512),[[vue.vModelText,r.value.codeReq.checkCode]])])])):vue.createCommentVNode("",!0)]),_:1})]),vue.createElementVNode("div",_hoisted_60$1,[vue.createElementVNode("div",_hoisted_61$1,[_hoisted_62$1,vue.createElementVNode("input",{readonly:"",value:t.invoiceData.invoiceDate,placeholder:"请输入校验码",type:"text"},null,8,_hoisted_63$1)])]),vue.createElementVNode("div",_hoisted_64$1,[vue.createElementVNode("div",_hoisted_65$1,[_hoisted_66$1,vue.createElementVNode("input",{value:vue.unref(const_realStatus)[t.invoiceData.realStatus],placeholder:"",type:"text"},null,8,_hoisted_67$1)])]),vue.createElementVNode("div",_hoisted_68$1,[vue.createElementVNode("span",{class:"back-btn",style:{flex:"1","background-color":"#07c160",color:"#fff"},onClick:e}," 返回 "),y.value?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"save-btn",onClick:_},"保存")):vue.createCommentVNode("",!0)])])]),vue.createVNode(InvoicePopup,{modelValue:x.value,"onUpdate:modelValue":Oe[19]||(Oe[19]=K=>x.value=K),title:B(A.value)},{content:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_69$1,[vue.createElementVNode("div",_hoisted_70$1,[_hoisted_71,vue.withDirectives(vue.createElementVNode("input",{class:"input-color","onUpdate:modelValue":Oe[15]||(Oe[15]=K=>D.value.itemExTaxAmount=K),onBlur:Oe[16]||(Oe[16]=K=>q(K,"itemExTaxAmount")),placeholder:"请输入金额",type:"text"},null,544),[[vue.vModelText,D.value.itemExTaxAmount]]),_hoisted_72]),vue.createElementVNode("div",_hoisted_73,[_hoisted_74,vue.withDirectives(vue.createElementVNode("input",{class:"input-color","onUpdate:modelValue":Oe[17]||(Oe[17]=K=>D.value.itemTaxRate=K),onBlur:Oe[18]||(Oe[18]=K=>q(K,"itemTaxRate")),placeholder:"请输入税率",type:"text"},null,544),[[vue.vModelText,D.value.itemTaxRate]]),_hoisted_75]),vue.createElementVNode("div",_hoisted_76,[_hoisted_77,vue.createElementVNode("input",{value:me.value,readonly:"",placeholder:"",type:"text"},null,8,_hoisted_78)])])]),footer:vue.withCtx(()=>[vue.createElementVNode("div",{class:"footer-confirm-btn"},[vue.createElementVNode("button",{class:"confirm-btn",onClick:be},"确定")])]),_:1},8,["modelValue","title"])],64))}}),index_vue_vue_type_style_index_0_scoped_784ab8b0_lang="",Invoice=_export_sfc(_sfc_main$4,[["__scopeId","data-v-784ab8b0"]]),_withScopeId$2=n=>(vue.pushScopeId("data-v-4f642fc4"),n=n(),vue.popScopeId(),n),_hoisted_1$3={class:"skeleton-card"},_hoisted_2$3=_withScopeId$2(()=>vue.createElementVNode("div",{class:"skeleton-title"},null,-1)),_hoisted_3$3=_withScopeId$2(()=>vue.createElementVNode("div",{class:"skeleton-tags"},[vue.createElementVNode("div",{class:"skeleton-tag"}),vue.createElementVNode("div",{class:"skeleton-tag"})],-1)),_hoisted_4$3={class:"skeleton-content"},_hoisted_5$2={class:"skeleton-row"},_hoisted_6$2=_withScopeId$2(()=>vue.createElementVNode("div",{class:"skeleton-label"},null,-1)),_hoisted_7$2=_withScopeId$2(()=>vue.createElementVNode("div",{class:"skeleton-value"},null,-1)),_hoisted_8$2=[_hoisted_6$2,_hoisted_7$2],_sfc_main$3=vue.defineComponent({__name:"Skeleton",props:{row:{type:Number,default(){return 3}}},setup(n){const o=n;return(t,r)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[_hoisted_2$3,_hoisted_3$3,vue.createElementVNode("div",_hoisted_4$3,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.row,c=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$2,_hoisted_8$2))),256))])]))}}),Skeleton_vue_vue_type_style_index_0_scoped_4f642fc4_lang="",Skeleton=_export_sfc(_sfc_main$3,[["__scopeId","data-v-4f642fc4"]]),takePhoto=()=>new Promise((n,o)=>{var t=document.createElement("input");t.type="file",t.accept="image/*",t.capture="camera",t.style.display="none",document.body.appendChild(t),t.onchange=async function(r){var c=r.target.files[0];const u=c.size,e=20*1024*1024;if(u>e)return showMessage({message:"文件大小不能超过20MB"}),document.body.removeChild(t),o();n([c]),document.body.removeChild(t)},t.oncancel=()=>{document.body.removeChild(t)},t.click()}),fileType=[".jpg ,.png ,.bpm ,.jpeg ,.pdf ,.ofd ,.ofdx ,.jpe",".JPG ,.PNG ,.BPM ,.JPEG ,.PDF ,.OFD ,.OFDX ,.JPE"],selectPhoto=async n=>new Promise((o,t)=>{var r=document.createElement("input");r.type="file",r.accept=fileType.join(","),r.multiple=n,r.style.display="none",document.body.appendChild(r),r.onchange=async function(c){var u=c.target.files;if(u.length>9){r.value="",showMessage({message:"一次最多选择9个文件!",type:"error"});return}for(let e=0;e<u.length;e++){const _=u[e].size,T=20*1024*1024;if(_>T){showMessage({message:"文件大小不能超过20MB",type:"error"}),t();break}}o(u),document.body.removeChild(r)},r.oncancel=()=>{document.body.removeChild(r)},r.click()}),_withScopeId$1=n=>(vue.pushScopeId("data-v-4c446cb4"),n=n(),vue.popScopeId(),n),_hoisted_1$2={class:"InvoiceList"},_hoisted_2$2={class:"selectAll"},_hoisted_3$2={class:"left"},_hoisted_4$2={class:"right"},_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("span",null,"全选",-1)),_hoisted_6$1={class:"card"},_hoisted_7$1=["onClick"],_hoisted_8$1=["onClick"],_hoisted_9=_withScopeId$1(()=>vue.createElementVNode("i",{class:"gg-more-alt"},null,-1)),_hoisted_10=[_hoisted_9],_hoisted_11={class:"storeName"},_hoisted_12={class:"name"},_hoisted_13={class:"left"},_hoisted_14={class:"tags"},_hoisted_15={key:0,class:"manual"},_hoisted_16={key:1},_hoisted_17={class:"InvoiceInfo"},_hoisted_18={class:"leftinfo"},_hoisted_19={class:"item-info"},_hoisted_20=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票金额",-1)),_hoisted_21={class:"value price"},_hoisted_22={class:"item-info"},_hoisted_23=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票税额",-1)),_hoisted_24={class:"value price"},_hoisted_25={class:"item-info"},_hoisted_26=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票税率",-1)),_hoisted_27={class:"value price"},_hoisted_28={class:"item-info"},_hoisted_29=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票抬头",-1)),_hoisted_30={class:"value"},_hoisted_31={class:"item-info"},_hoisted_32=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票类型",-1)),_hoisted_33={class:"value"},_hoisted_34={class:"item-info"},_hoisted_35=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label",style:{"flex-shrink":"0"}},"发票号码",-1)),_hoisted_36={key:0,class:"value"},_hoisted_37={key:1,class:"value",style:{color:"red","font-size":"12px"}},_hoisted_38={class:"item-info"},_hoisted_39=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票时间",-1)),_hoisted_40={class:"value"},_hoisted_41={key:0,class:"item-info"},_hoisted_42=_withScopeId$1(()=>vue.createElementVNode("span",{class:"label"},"发票红冲",-1)),_hoisted_43=_withScopeId$1(()=>vue.createElementVNode("span",{class:"value",style:{color:"#ff7f25"}}," 部分红冲票 ",-1)),_hoisted_44=[_hoisted_42,_hoisted_43],_hoisted_45=_withScopeId$1(()=>vue.createElementVNode("div",{style:{color:"#5CB933","font-size":"12px"}}," 提示:请核对下票面金额、税额与发票数据一致,如果不一致,请点击右上角修改发票数据 ",-1)),_hoisted_46={key:0,style:{color:"red","text-align":"center"}},_hoisted_47={key:1,style:{color:"red","text-align":"center"}},_hoisted_48={class:"rightCheckbox"},_hoisted_49=["onUpdate:modelValue"],_hoisted_50={key:1,style:{"background-color":"#fff",padding:"21px 0 15px 12px",position:"relative",width:"100%"}},_hoisted_51={key:2,class:"err-card"},_hoisted_52=["onClick"],_hoisted_53=["src"],_hoisted_54={class:"right-errText"},_hoisted_55=_withScopeId$1(()=>vue.createElementVNode("div",{class:"title"},[vue.createElementVNode("span",null,"识别失败")],-1)),_hoisted_56={class:"content"},_hoisted_57={class:"recognitionResult"},_hoisted_58={key:0},_hoisted_59={key:1},_hoisted_60=_withScopeId$1(()=>vue.createElementVNode("p",{class:"errContent"},"OCR识别失败",-1)),_hoisted_61=_withScopeId$1(()=>vue.createElementVNode("p",null,"可以重新拍照识别,或手动添加信息导入",-1)),_hoisted_62=[_hoisted_60,_hoisted_61],_hoisted_63=["onUpdate:modelValue"],_hoisted_64={class:"btn-form"},_hoisted_65={class:"operate"},_hoisted_66=_withScopeId$1(()=>vue.createElementVNode("span",null,"移除",-1)),_hoisted_67=[_hoisted_66],_hoisted_68={class:"right-btn"},_hoisted_69={class:"select-item"},_hoisted_70={class:"select-item"},_sfc_main$2=vue.defineComponent({__name:"index",props:{listId:{required:!1,type:String},multiple:{required:!0,type:Boolean},catchList:{},businessLicense:{required:!1,type:String},taxCode:{required:!1,type:String},allUrlParams:{required:!1,type:Object,default:()=>({})},allParams:{required:!1,type:Object,default:()=>({})}},emits:["edit","ok"],setup(n,{emit:o}){const t=o,r=n,c=vue.ref(sessionStorage.getItem("token")),u=vue.ref(!1),e=vue.ref([]);r.catchList&&(e.value=r.catchList);const p=vue.ref(""),y=vue.computed(()=>e.value.filter($e=>$e.selected).map($e=>$e.taskId)),_=vue.computed(()=>Object.assign({},r.allParams,r.allUrlParams)),T=async()=>new Promise(async($e,He)=>{let Lt={};if(Lt.batchId=r.listId,Lt=Object.assign(Lt,_.value),!!Lt.batchId)try{const Qt=await __getUploadInvoiceList(Lt,c.value);Qt.code===200&&(e.value=Qt.data.invoiceList.map(zt=>{let Nt=e.value.find(we=>we.taskId===zt.taskId)||{};return{...zt,selected:Nt.selected}}),p.value=Qt.data.batchId,e.value.length<=0?J.value=!1:Re(),$e(e.value))}catch(Qt){console.log(Qt),He(Qt)}}),x=vue.ref([{name:"查看/编辑发票"}]),D=vue.ref({}),A=vue.ref(!1),B=$e=>{$e.name==="查看/编辑发票"&&t("edit",{taskId:D.value.taskId,batchId:p.value},D.value,e.value)},U=$e=>{if(!$e.invoiceStatus)return showMessage({teleport:api.get("teleport")||null,message:"发票无效!"});if($e.invoiceStatus!=="unused")return showMessage({message:"发票已被使用!"});if(!$e.invoiceNum)return showMessage({message:"发票号码为空,无法使用"});if($e.invalidFlag==="2")return showMessage({message:"发票已经被作废,无法使用"});if($e.invalidFlag==="9")return showMessage({message:"发票被全额红冲,请联系商家确认"});$e.selected=!$e.selected},be=$e=>{A.value=!0,D.value=$e},q=$e=>$e.invalidFlag==="2"||$e.invalidFlag==="9"||!$e.invoiceNum?!1:$e.invoiceStatus==="unused"?!!($e.manualModify||!$e.invoiceExceptionInfo):!1,J=vue.ref(!1),me=$e=>{J.value&&showMessage({message:"已选择全部可用发票"}),e.value.forEach(He=>{He.selected=q(He)&&J.value})},Re=()=>{const $e=e.value.filter(He=>q(He)).every(He=>He.selected);J.value=$e&&y.value.length>0},Oe=()=>{if(y.value.length<=0){showMessage({message:"请先选择发票"});return}showConfirmDialog({title:"提醒",message:"请确认是否需要移除选中项,移除后不可恢复!"}).then(async()=>{const $e=y.value.join(",");let He={batchId:p.value,taskIds:$e};He=Object.assign(He,_.value);var Lt=new URLSearchParams;for(const zt in He)Lt.append(zt,He[zt]);(await __deleteInvoice(Lt,c.value)).code===200&&(showMessage({type:"success",message:"移除成功"}),T())})},K=()=>{u.value=!0},Le=vue.ref([{name:"从相册中选择",icon:"gg-image"},{name:"拍照上传",icon:"gg-smart-home-wash-machine"}]),Fe=async $e=>{console.log($e);let He=[];$e.name==="从相册中选择"?He=await selectPhoto(r.multiple):He=await takePhoto();let Lt=new FormData;for(let Nt=0;Nt<He.length;Nt++)Lt.append("invoiceFiles",He[Nt]);let Qt={businessLicense:r.businessLicense||"",taxCode:r.taxCode||"",batchId:p.value};Qt=Object.assign(Qt,_.value);for(const Nt in Qt)Lt.append(Nt,Qt[Nt]);const zt=new CreateLoading;zt.show(),u.value=!1;try{(await __uploadInvoice(Lt)).code===200&&(showMessage({type:"success",message:"上传成功"}),an())}catch(Nt){console.log(Nt),an()}zt.hide()},kt=vue.computed(()=>e.value.filter(He=>He.selected).every(He=>q(He))&&e.value.filter(He=>He.selected).length>0),Wt=vue.computed(()=>e.value.filter($e=>$e.selected&&q($e)).length),Xt=vue.computed(()=>e.value.filter($e=>q($e)).length),dn=$e=>{qt({images:[$e],options:{zIndex:OCR_getMaxZIndex()+1}})},Jt=()=>{if(y.value.length<=0){showMessage({message:"请先选择发票"});return}if(!kt.value){showMessage({message:"发票无效或已被使用,请进行确认"});return}const $e=e.value.filter(Qt=>Qt.selected).map(Qt=>{let zt=VerificationOfTruth(Qt);return{...Qt,...zt}}),He=$e.filter(Qt=>Qt.invoiceCompanyType==="异常抬头"||Qt.invoiceCompanyType==="异常税号");if(He.some(Qt=>Qt.invoiceRootType==="专票"||Qt.invoiceRootType==="普票")){showConfirmDialog({title:"财务要求",message:()=>vue.h("div",{style:"color:#EF1725;",innerHTML:"专票和普票不允许出现异常抬头或异常税号,请取消勾选后继续提交"}),showCancelButton:!1});return}if(He.length>0){showConfirmDialog({title:"提醒",message:"存在异常抬头发票,请确认是否继续提交?",cancelText:"返回修改",confirmText:"继续提交"}).then(()=>{t("ok",$e,p.value)}).catch(Qt=>{console.log(Qt)});return}t("ok",$e,p.value)},gn=vue.ref(null),sn=vue.ref(null),an=()=>{T().then($e=>{if(!$e.some(Lt=>Lt.taskStatus==="ocr_doing"||Lt.taskStatus==="ocr_success")){clearTimeout(gn.value),clearTimeout(sn.value);return}gn.value=setTimeout(an,2e3)}).catch($e=>{sn.value=setTimeout(an,2e3)})};return vue.onMounted(()=>{an()}),vue.onUnmounted(()=>{clearTimeout(gn.value),clearTimeout(sn.value)}),($e,He)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",_hoisted_2$2,[vue.createElementVNode("div",_hoisted_3$2," 已选 "+vue.toDisplayString(Wt.value)+"/"+vue.toDisplayString(Xt.value),1),vue.createElementVNode("div",_hoisted_4$2,[_hoisted_5$1,vue.withDirectives(vue.createElementVNode("input",{type:"checkbox",onChange:vue.withModifiers(me,["self"]),"onUpdate:modelValue":He[0]||(He[0]=Lt=>J.value=Lt),onClick:He[1]||(He[1]=vue.withModifiers(()=>{},["stop"])),class:"inv-checkbox"},null,544),[[vue.vModelCheckbox,J.value]])])]),vue.createElementVNode("div",_hoisted_6$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.value,(Lt,Qt)=>(vue.openBlock(),vue.createElementBlock("div",{class:"li",key:Qt},[Lt.taskStatus==="finish"||Lt.taskStatus==="repeat"?(vue.openBlock(),vue.createElementBlock("div",{key:0,onClick:zt=>U(Lt),class:"item-card"},[vue.createElementVNode("div",{class:"details-btn",onClick:vue.withModifiers(zt=>be(Lt),["stop"])},_hoisted_10,8,_hoisted_8$1),vue.createElementVNode("div",{class:vue.normalizeClass(["title",{company:Lt.invoiceCompanyType==="公司",err:Lt.invoiceCompanyType==="异常抬头"||Lt.invoiceCompanyType==="异常税号"}])},vue.toDisplayString(Lt.invoiceCompanyType),3),vue.createElementVNode("div",_hoisted_11,[vue.createElementVNode("div",_hoisted_12,[vue.createElementVNode("div",_hoisted_13,vue.toDisplayString(Lt.sellerName),1)]),vue.createElementVNode("div",_hoisted_14,[Lt.manualModify?(vue.openBlock(),vue.createElementBlock("span",_hoisted_15," 手工录入 ")):Lt.invoiceExceptionInfo?(vue.openBlock(),vue.createElementBlock("div",_hoisted_16,[vue.createElementVNode("span",{class:vue.normalizeClass(vue.unref(setClass)(Lt.invoiceExceptionInfo))},vue.toDisplayString(vue.unref(const_invoiceExceptionInfo)[Lt.invoiceExceptionInfo]),3)])):(vue.openBlock(),vue.createElementBlock("span",{key:2,class:vue.normalizeClass(vue.unref(setClass)(Lt.realStatus))},vue.toDisplayString(vue.unref(const_realStatus)[Lt.realStatus]),3)),vue.createElementVNode("span",{class:vue.normalizeClass(vue.unref(setClass)(Lt.invoiceStatus))},vue.toDisplayString(vue.unref(const_invoiceStatus)[Lt.invoiceStatus]),3)]),vue.createElementVNode("div",_hoisted_17,[vue.createElementVNode("div",_hoisted_18,[vue.createElementVNode("div",_hoisted_19,[_hoisted_20,vue.createElementVNode("span",_hoisted_21,"¥"+vue.toDisplayString(Lt.priceTaxTotalFigure||Lt.noTaxAmountTotal),1)]),vue.createElementVNode("div",_hoisted_22,[_hoisted_23,vue.createElementVNode("span",_hoisted_24,"¥"+vue.toDisplayString(Lt.taxAmountTotal),1)]),vue.createElementVNode("div",_hoisted_25,[_hoisted_26,vue.createElementVNode("span",_hoisted_27,vue.toDisplayString(Lt.taxRate),1)]),vue.createElementVNode("div",_hoisted_28,[_hoisted_29,vue.createElementVNode("span",_hoisted_30,vue.toDisplayString(Lt.payerName),1)]),vue.createElementVNode("div",_hoisted_31,[_hoisted_32,vue.createElementVNode("span",_hoisted_33,vue.toDisplayString(Lt.invoiceRootType),1)]),vue.createElementVNode("div",_hoisted_34,[_hoisted_35,Lt.invoiceNum?(vue.openBlock(),vue.createElementBlock("span",_hoisted_36,vue.toDisplayString(Lt.invoiceNum),1)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_37,"未识别出发票号码,不允许使用,请点击右上角,进入详情修改"))]),vue.createElementVNode("div",_hoisted_38,[_hoisted_39,vue.createElementVNode("span",_hoisted_40,vue.toDisplayString(Lt.invoiceDate),1)]),Lt.invalidFlag==="8"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_41,_hoisted_44)):vue.createCommentVNode("",!0),_hoisted_45,vue.createElementVNode("div",null,[Lt.invalidFlag==="2"?(vue.openBlock(),vue.createElementBlock("p",_hoisted_46," 发票已经被作废,无法使用 ")):vue.createCommentVNode("",!0),Lt.invalidFlag==="9"?(vue.openBlock(),vue.createElementBlock("p",_hoisted_47," 发票被全额红冲,请联系商家确认 ")):vue.createCommentVNode("",!0)])]),vue.createElementVNode("div",_hoisted_48,[vue.withDirectives(vue.createElementVNode("input",{onClick:He[2]||(He[2]=vue.withModifiers(()=>{},["stop"])),type:"checkbox",class:"inv-checkbox",onChange:Re,"onUpdate:modelValue":zt=>Lt.selected=zt,"icon-size":"22px"},null,40,_hoisted_49),[[vue.vModelCheckbox,Lt.selected]])])])])],8,_hoisted_7$1)):Lt.taskStatus==="ocr_doing"||Lt.taskStatus==="ocr_success"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_50,[vue.createVNode(Loading,{class:"loading",style:{"background-color":"rgba(255, 255, 255, 0.5)"},loadingText:"识别中..."}),vue.createVNode(Skeleton,{loading:!0,title:"",row:5})])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_51,[vue.createElementVNode("div",{class:"left-img",onClick:zt=>dn(Lt.fileUrlKey)},[vue.createElementVNode("img",{src:Lt.fileUrlKey,alt:""},null,8,_hoisted_53)],8,_hoisted_52),vue.createElementVNode("div",_hoisted_54,[_hoisted_55,vue.createElementVNode("div",_hoisted_56,[vue.createElementVNode("div",_hoisted_57,[Lt.statusInfo?(vue.openBlock(),vue.createElementBlock("div",_hoisted_58,vue.toDisplayString(Lt.statusInfo),1)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_59,_hoisted_62))]),vue.createElementVNode("div",null,[vue.withDirectives(vue.createElementVNode("input",{type:"checkbox",class:"inv-checkbox",onClick:He[3]||(He[3]=vue.withModifiers(()=>{},["stop"])),"onUpdate:modelValue":zt=>Lt.selected=zt},null,8,_hoisted_63),[[vue.vModelCheckbox,Lt.selected]])])])])]))]))),128))]),vue.createElementVNode("div",_hoisted_64,[vue.createElementVNode("div",_hoisted_65,[vue.createElementVNode("div",{class:"delete",onClick:Oe},_hoisted_67),vue.createElementVNode("div",_hoisted_68,[vue.createElementVNode("span",{class:"add",onClick:vue.withModifiers(K,["stop"])},"继续添加发票"),vue.createElementVNode("span",{class:vue.normalizeClass(["ok",{disabledColor:!kt.value}]),onClick:Jt},"确定选择",2)])])]),vue.createVNode(InvoicePopup,{title:"添加发票",onOnSelect:Fe,options:Le.value,modelValue:u.value,"onUpdate:modelValue":He[4]||(He[4]=Lt=>u.value=Lt)},{"OCR-action-sheet-item":vue.withCtx(({item:Lt})=>[vue.createElementVNode("div",_hoisted_69,[vue.createElementVNode("span",{class:vue.normalizeClass([Lt.icon])},null,2),vue.createElementVNode("span",null,vue.toDisplayString(Lt.name),1)])]),_:1},8,["options","modelValue"]),vue.createVNode(InvoicePopup,{onOnSelect:B,options:x.value,modelValue:A.value,"onUpdate:modelValue":He[5]||(He[5]=Lt=>A.value=Lt)},{"OCR-action-sheet-item":vue.withCtx(({item:Lt})=>[vue.createElementVNode("div",_hoisted_70,[vue.createElementVNode("span",{class:vue.normalizeClass([Lt.icon])},null,2),vue.createElementVNode("span",null,vue.toDisplayString(Lt.name),1)])]),_:1},8,["options","modelValue"])]))}}),index_vue_vue_type_style_index_0_scoped_4c446cb4_lang="",InvoiceList=_export_sfc(_sfc_main$2,[["__scopeId","data-v-4c446cb4"]]),_withScopeId=n=>(vue.pushScopeId("data-v-754186cd"),n=n(),vue.popScopeId(),n),_hoisted_1$1={class:"PaymentMode"},_hoisted_2$1=_withScopeId(()=>vue.createElementVNode("div",{class:"title"},"选择识别方式",-1)),_hoisted_3$1={class:"list"},_hoisted_4$1=["onClick"],_hoisted_5={class:"left-text"},_hoisted_6={class:"icon-left"},_hoisted_7={class:"text"},_hoisted_8=_withScopeId(()=>vue.createElementVNode("div",{class:"right-icon"},[vue.createElementVNode("i",{class:"gg-chevron-right"})],-1)),_sfc_main$1=vue.defineComponent({__name:"index",props:["multiple","batchId","taxCode","businessLicense","allUrlParams","allParams"],emits:["uploadSuccess"],setup(n,{emit:o}){const t=n,r=o,c=[{text:"拍照",leftIcon:"gg-smart-home-wash-machine"},{text:"相册",leftIcon:"gg-image"}],u=vue.computed(()=>Object.assign({},t.allParams,t.allUrlParams)),e=async p=>{let y=[];p=="拍照"&&(y=await takePhoto()),p=="相册"&&(y=await selectPhoto(t.multiple)),console.log(y);let _=new FormData;for(let D=0;D<y.length;D++)_.append("invoiceFiles",y[D]);let T={businessLicense:t.businessLicense||"",taxCode:t.taxCode||""};t.batchId&&(T.batchId=t.batchId),T=Object.assign(T,u.value);for(const D in T)_.append(D,T[D]);const x=showLoading();x.show();try{const D=await __uploadInvoice(_);D.code===200&&r("uploadSuccess",D.data)}catch(D){console.log(D),showMessage({type:"error",message:D.msg})}x.hide()};return(p,y)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1,[_hoisted_2$1,vue.createElementVNode("div",_hoisted_3$1,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(c,(_,T)=>vue.createElementVNode("div",{class:"method-item",onClick:x=>e(_.text),key:_.id||T},[vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("span",_hoisted_6,[vue.createElementVNode("i",{class:vue.normalizeClass(["iconfont",_.leftIcon])},null,2)]),vue.createElementVNode("span",_hoisted_7,vue.toDisplayString(_.text),1)]),_hoisted_8],8,_hoisted_4$1)),64))])]))}}),index_vue_vue_type_style_index_0_scoped_754186cd_lang="",PaymentMode=_export_sfc(_sfc_main$1,[["__scopeId","data-v-754186cd"]]);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var vconsole_min={exports:{}};/*!
|
|
21
21
|
* vConsole v3.15.1 (https://github.com/Tencent/vConsole)
|
|
22
22
|
*
|
|
23
23
|
* Tencent is pleased to support the open source community by making vConsole available.
|
package/dist/style.css
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
*
|
|
8
8
|
* Date: 2024-11-24T04:32:14.526Z
|
|
9
|
-
*/.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;-webkit-transition:opacity .15s;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;left:0;position:absolute;right:0;top:0;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;-webkit-transition:background-color .15s;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;-webkit-transition:opacity .15s;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;-webkit-transition:background-color .15s;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:-webkit-grab;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{-webkit-transition:all .3s;transition:all .3s}@-webkit-keyframes viewer-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes viewer-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.viewer-loading:after{-webkit-animation:viewer-spinner 1s linear infinite;animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}}.content[data-v-47fef101]{background-color:#f7f8fa}.content[data-v-47fef101] .van-field__value{border:1px solid #2196f3;border-radius:4px}.content[data-v-47fef101] .van-field__value input{padding-left:12px}.content .btn[data-v-47fef101]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;gap:12px;padding:12px 16px 0}.content .btn button[data-v-47fef101]{-webkit-box-flex:1;-webkit-flex:1;flex:1;border-radius:25px}[data-v-47fef101] .van-cell-group{background-color:transparent}[data-v-47fef101] .van-cell-group .van-field__label{color:#333;font-size:16px;font-weight:400}[data-v-47fef101] .van-cell-group .van-field__control{font-size:16px}.footer-confirm-btn[data-v-47fef101]{margin-top:12px;margin-bottom:6px;width:100%;padding:0 12px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.footer-confirm-btn .confirm-btn[data-v-47fef101]{width:calc(100% - 24px);padding:12px 0;color:#fff;background-color:#1989fa;border:none;border-radius:25px}.inv-cell[data-v-47fef101]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:100%;background-color:#fff;padding:12px}.inv-cell label[data-v-47fef101]{margin-right:4px;font-size:14px;font-weight:700;width:100px;color:#333}.inv-cell .cell-icon[data-v-47fef101]{margin-left:4px;min-width:16px;text-align:right}.inv-cell .cell-icon i[data-v-47fef101]{color:#8c8d8fe3}.inv-cell input[data-v-47fef101]{-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#333;border:none;height:24px;outline:none;font-size:14px;font-weight:500}.inv-cell input[data-v-47fef101]::-webkit-input-placeholder{color:#d1d2d5}.inv-cell input[data-v-47fef101]::-moz-placeholder{color:#d1d2d5}.inv-cell input[data-v-47fef101]::placeholder{color:#d1d2d5}.inv-cell textarea[data-v-47fef101]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:60px;padding:4px;border:none;outline:none;resize:none}.inv-cell textarea[data-v-47fef101]::-webkit-input-placeholder{color:#d1d2d5}.inv-cell textarea[data-v-47fef101]::-moz-placeholder{color:#d1d2d5}.inv-cell textarea[data-v-47fef101]::placeholder{color:#d1d2d5}.inv-cell .input-color[data-v-47fef101]{border:1px solid #1989fa;border-radius:5px;padding:0 1em}.Invoice[data-v-47fef101]{width:100%;height:100%;background-color:#f2f4f7;overflow:auto;padding-bottom:100px}.Invoice .top[data-v-47fef101]{width:100%;padding:12px 4px}.Invoice .top img[data-v-47fef101]{width:100%;height:179px;display:block;-o-object-fit:contain;object-fit:contain}.Invoice .inovice-content[data-v-47fef101]{padding:0 16px}.Invoice .Field-title[data-v-47fef101]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:12px}.Invoice .Field-title .titleLeft[data-v-47fef101]{font-size:16px;color:#333;font-family:PingFangSC-Medium,PingFang SC;font-weight:600}.Invoice .Field-title .titleLeft[data-v-47fef101]:before{margin-right:4px;display:inline-block;content:"";width:4px;height:14px;background-color:#266fe8;border-radius:2px}.Invoice .Field-title .titleright[data-v-47fef101]{font-size:14px;color:#266fe8}.Invoice .marPX[data-v-47fef101]{margin-bottom:12px}.Invoice table[data-v-47fef101]{background-color:#fff;border-radius:4px;border:1px solid #f2f4f7;width:100%;border-spacing:0}.Invoice thead[data-v-47fef101]{background-color:#f2f4f7;font-size:12px;color:#666}.Invoice thead th[data-v-47fef101]{padding:12px 0;text-align:center;font-size:14px}.Invoice tbody td[data-v-47fef101]{text-align:center;padding:10px 0;white-space:nowrap}.Invoice .submit[data-v-47fef101]{position:fixed;bottom:0;left:0;width:100%;box-shadow:0 -1px 12px #adadad1a;height:90px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 12px;z-index:2;background-color:#fff;gap:12px}.Invoice .submit span[data-v-47fef101]{-webkit-box-flex:2;-webkit-flex:2;flex:2;background-color:#266fe8;font-size:15px;color:#fff;height:44px;text-align:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.flod-fade-enter-active[data-v-47fef101]{-webkit-transition:all .3s ease-out;transition:all .3s ease-out}.flod-fade-leave-active[data-v-47fef101]{-webkit-transition:all .1s cubic-bezier(1,.5,.8,1);transition:all .1s cubic-bezier(1,.5,.8,1)}.flod-fade-enter-from[data-v-47fef101],.flod-fade-leave-to[data-v-47fef101]{-webkit-transform:translateY(-20px);transform:translateY(-20px);opacity:0}.skeleton-card[data-v-4f642fc4]{background:#fff;position:relative;overflow:hidden;-webkit-animation:skeleton-loading-4f642fc4 1.2s infinite alternate;animation:skeleton-loading-4f642fc4 1.2s infinite alternate}.skeleton-title[data-v-4f642fc4]{width:80px;height:20px;background:#f0f0f0;border-radius:4px;margin-bottom:8px}.skeleton-tags[data-v-4f642fc4]{display:-webkit-box;display:-webkit-flex;display:flex;gap:12px;margin-bottom:16px}.skeleton-tag[data-v-4f642fc4]{height:18px;background:#f0f0f0;border-radius:3px}.skeleton-tag[data-v-4f642fc4]:first-child{width:70px}.skeleton-tag[data-v-4f642fc4]:last-child{width:40px}.skeleton-content[data-v-4f642fc4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;gap:12px}.skeleton-row[data-v-4f642fc4]{display:-webkit-box;display:-webkit-flex;display:flex;gap:12px}.skeleton-label[data-v-4f642fc4]{width:70px;height:14px;background:#f0f0f0;border-radius:2px}.skeleton-value[data-v-4f642fc4]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:14px;background:#f0f0f0;border-radius:2px}@-webkit-keyframes skeleton-loading-4f642fc4{0%{opacity:.6}to{opacity:1}}@keyframes skeleton-loading-4f642fc4{0%{opacity:.6}to{opacity:1}}.skeleton-card[data-v-4f642fc4]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:-webkit-linear-gradient(left,transparent,rgba(255,255,255,.3),transparent);background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);-webkit-animation:skeleton-shine-4f642fc4 1.5s infinite;animation:skeleton-shine-4f642fc4 1.5s infinite}@-webkit-keyframes skeleton-shine-4f642fc4{0%{-webkit-transform:translateX(-100%);transform:translate(-100%)}to{-webkit-transform:translateX(100%);transform:translate(100%)}}@keyframes skeleton-shine-4f642fc4{0%{-webkit-transform:translateX(-100%);transform:translate(-100%)}to{-webkit-transform:translateX(100%);transform:translate(100%)}}.select-item[data-v-c92c3db5]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:12px}.disabledColor[data-v-c92c3db5]{opacity:.6;cursor:not-allowed}.InvoiceList[data-v-c92c3db5]{padding-bottom:100px;position:relative;width:100%;height:100%;background-color:#f3f4f6;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.InvoiceList .selectAll[data-v-c92c3db5]{background-color:#f3f4f6;padding:12px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.InvoiceList .selectAll .right[data-v-c92c3db5]{display:-webkit-box;display:-webkit-flex;display:flex;gap:5px;padding-right:12px}.InvoiceList .card[data-v-c92c3db5]{width:100%;height:inherit;overflow:auto}.InvoiceList .card .li[data-v-c92c3db5]{width:100%;border-radius:4px;padding:0 12px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;margin-bottom:12px}.InvoiceList .card .li .item-card[data-v-c92c3db5]{-webkit-box-flex:1;-webkit-flex:1;flex:1;position:relative;background-color:#fff;padding-bottom:12px;min-width:100%}.InvoiceList .card .li .item-card .details-btn[data-v-c92c3db5]{position:absolute;top:0;right:0;font-size:14px;color:#333;border-radius:2px;-webkit-flex-shrink:0;flex-shrink:0;text-align:right;padding:8px 16px 16px}.InvoiceList .card .li .item-card div.company[data-v-c92c3db5]{background-color:#ff8b26}.InvoiceList .card .li .item-card div.err[data-v-c92c3db5]{background-color:#d5001c}.InvoiceList .card .li .item-card .title[data-v-c92c3db5]{color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;width:-webkit-max-content;width:-moz-max-content;width:max-content;text-align:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:12px;border-radius:4px 0;padding:2px 4px;background-color:#266fe8;margin-bottom:5px}.InvoiceList .card .li .item-card .storeName[data-v-c92c3db5]{padding:0 12px}.InvoiceList .card .li .item-card .storeName .name[data-v-c92c3db5]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;width:100%;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.InvoiceList .card .li .item-card .storeName .name .left[data-v-c92c3db5]{font-size:15px;color:#333;font-weight:700}.InvoiceList .card .li .item-card .storeName .name .right[data-v-c92c3db5]{font-size:12px;color:#ee0a24}.InvoiceList .card .li .item-card .storeName .tags[data-v-c92c3db5]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:7px;margin-top:8px;margin-bottom:15px}.InvoiceList .card .li .item-card .storeName .tags .manual[data-v-c92c3db5]{background-color:#facd91;color:#c77458}.InvoiceList .card .li .item-card .storeName .tags span[data-v-c92c3db5]{padding:2px 4px;font-size:12px;font-weight:400;border-radius:2px}.InvoiceList .card .li .item-card .storeName .tags span.ok[data-v-c92c3db5]{background-color:#266fe81a;color:#266fe8}.InvoiceList .card .li .item-card .storeName .tags span.warning[data-v-c92c3db5]{background-color:#fffbe6;color:#ff8f26}.InvoiceList .card .li .item-card .storeName .tags span.error[data-v-c92c3db5]{background-color:#fff2f0;color:#ff4d4f}.InvoiceList .card .li .item-card .storeName .tags span.default[data-v-c92c3db5]{background-color:#9993;color:#666}.InvoiceList .card .li .item-card .storeName .tags span.success[data-v-c92c3db5]{background-color:#e6ffdd;color:#2ba500;opacity:.68}.InvoiceList .card .li .item-card .storeName .InvoiceInfo[data-v-c92c3db5]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info[data-v-c92c3db5]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:16px;margin-bottom:6px}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info[data-v-c92c3db5]:last-child{margin-bottom:0}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info span[data-v-c92c3db5]{font-size:14px}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info span.label[data-v-c92c3db5]{color:#999}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info span.value[data-v-c92c3db5]{color:#333}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info span.price[data-v-c92c3db5]{color:#266fe8;font-weight:700}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .rightCheckbox[data-v-c92c3db5]{height:-webkit-max-content;height:-moz-max-content;height:max-content}.InvoiceList .card .li .err-card[data-v-c92c3db5]{background-color:#fff;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;gap:9px}.InvoiceList .card .li .err-card .left-img[data-v-c92c3db5]{width:113px;height:79px;margin:10px 0 10px 10px;-webkit-flex-shrink:0;flex-shrink:0}.InvoiceList .card .li .err-card .left-img img[data-v-c92c3db5]{width:100%;height:100%}.InvoiceList .card .li .err-card .right-errText .title[data-v-c92c3db5]{color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;text-align:right;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;margin-bottom:5px}.InvoiceList .card .li .err-card .right-errText .title span[data-v-c92c3db5]{background-color:#ee0a241a;color:#ee0a24;padding:2px 4px;font-size:12px;border-radius:0 4px}.InvoiceList .card .li .err-card .right-errText .content[data-v-c92c3db5]{display:-webkit-box;display:-webkit-flex;display:flex;padding-right:12px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:12px;gap:18px}.InvoiceList .card .li .err-card .right-errText .content .recognitionResult[data-v-c92c3db5]{gap:5px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.InvoiceList .card .li .err-card .right-errText .content .recognitionResult p[data-v-c92c3db5]{color:#666;font-size:14px}.InvoiceList .card .loading[data-v-c92c3db5]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:100}.InvoiceList .btn-form[data-v-c92c3db5]{z-index:99;position:fixed;bottom:0;left:0;background-color:#fff;height:90px;width:100%}.InvoiceList .btn-form .operate[data-v-c92c3db5]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;gap:12px;padding:12px 12px 34px;font-size:15px}.InvoiceList .btn-form .operate span[data-v-c92c3db5]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-weight:500;font-size:15px;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.InvoiceList .btn-form .operate .delete[data-v-c92c3db5]{border:1px solid #e8e8e8;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 44px}.InvoiceList .btn-form .operate .right-btn[data-v-c92c3db5]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1}.InvoiceList .btn-form .operate .right-btn span[data-v-c92c3db5]{color:#fff}.InvoiceList .btn-form .operate .right-btn .add[data-v-c92c3db5]{background-color:#ff8b26;border-radius:4px 0 0 4px}.InvoiceList .btn-form .operate .right-btn .ok[data-v-c92c3db5]{border-radius:0 4px 4px 0;background-color:#266fe8}.boxPopup[data-v-c92c3db5]{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:16px 23px 34px}.boxPopup div[data-v-c92c3db5]{width:100%;font-size:14px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.boxPopup .title[data-v-c92c3db5]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:16px;font-weight:700;padding-bottom:24px}.boxPopup .title .close[data-v-c92c3db5]{font-size:22px}.inv-checkbox[data-v-c92c3db5]{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:inline-block;width:22px;height:22px;border:1px solid #c9cacd;border-radius:50%;outline:none;cursor:pointer;position:relative}.inv-checkbox[data-v-c92c3db5]:checked{width:22px;height:22px;border-radius:50%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABI9JREFUWEfVmV1oHFUUx//nzm4aFaUNye4mjeBHdjeiQcEHYwRbW7QqWPAjD0X64AfVYpNMqCL4Yt7Ez51NlErEPoj4kopYkahtUQqm7UtVKrSZjaEPSbMfYlJF8rG798hsmGSzH7N3tqt193Hnf879zZl7zzn3XkKd/ajOeFFT4K79C1sy3qWtLOh6KxAk+S9PunH23KHN87UKzBUBd/TNtGuehicly50EugfMvpJgREkGnxEkTmQzK59PjbTPVPsCVQF36HPbBYtXGXiQwJqbwRmUJeCYJPnmlNH6gxvb3FdzY3DLSzMhr9c7wswPubErpyWi79LpdN/0B+2mqj9l4HB/4kUGR0BoVHWupGMsEWhwctj/oYq+MnAva8GtiVFiPKvisFoNEw7HZv37MEZZJx/OwL2shdqSYwA/Xi2IOzv6wrzk63WCdgQO6vGP/+3IFr5QLtJG4Lmy877cg9ycJT7kLkK1URPT/nJzumSErWzg0Ty/1HyBqb4PYymTzdxZKnuUBA7riW9rlbpUGQt1VsqbNPy7iv4v/GO1KND31Q6kYsegswS+DGAbAFHORhI/UFhciiIcGkiMA/ywysBVaRhvmMOB1yzbkJ7YC+ZPyvuhb8yo/5H85xuArd6AhPei23KrCk6gzyaj/qdt/fYh9lyaTy4DXDLKVhlnmb4pv/fYABzW4zozIqoA7nQ0IaVvx9QILdt2nX2pbVJkHfsJEkKfjPiitk0h8FFmPOYOREk9LSV3T420pmx1+ECqjTV5BuB2Jw9M+CpmBHaXBA4NxJMAWpQQFEUMWgBpPTGj+bxt0raPr73umsRJAu6u6IYoaRp+fxGw1XwvNyz9UdGBKwGlWWiPxiLNx9fMhliE5pNH3JT7TSuNTfYmYG1K3NYfvyNLOOeKp4KYSXshZrSM5svC+tzbzPSym3E0Rtf54cCvls0acKeeuFcyTyg4ygB0kYGbnbMJv2tGWzeAhfTU8+DsRwpjbJAIop4Lhv9UNcCprBA9v0V8U0E9eRexPALg1iIAwpfmZv8TGCJpPwv1x3eCMA7AWxNgxSnxvhkN9NkD3j54uSktF8cA7FhfFHR2wcv3J94J/L0Ge/D3TmSyEwBvcQtr6UtOCbVFR8fMqH/j9miIPaH5hJW7DwA0A7HSbUZunF2H/bMZmcXTABd/CUX6kovOslVKa8zvmU2BV/I/t2UbHkw+Ixk/xQzfzzZHR19sk9BuOAHm+xTZimXl0pqlDOrxo6RUOGg8s+jdMz3aZDUwZX/B/sSnRLxWiquBdiwc4cHkAEtpKDlmXMhA7J4e9sVK6UP9c6+DaEjJl4PIsTS7bn6Y5lmIvTGj5ev1MZmCevIgSX4L5O4YoZC7YvOzOo/dtpfERHySGT8SUwML7AJz15VGdtW+QntpSf6LBl71ZZQa+NyKr6ctkgVcd5vQXJTraZtvz7GrcpDCOBwbruIgJQddb0dVNnT9HAbm5Z/6OW7Ng66rA+38ZF83VwaFFSp3KaN5nrIaeGZ0O+y4U0Q4jat1KVOutP7vr71Ue4Ja6irfcdRytBr4+gcxLidLt448SAAAAABJRU5ErkJggg==) no-repeat center;background-size:110%;border:none}.PaymentMode[data-v-754186cd]{width:100%;height:100%;padding:20px 12px 0;background-color:#f3f4f6}.PaymentMode .title[data-v-754186cd]{font-size:14px;font-weight:600}.PaymentMode .list .method-item[data-v-754186cd]{width:100%;height:60px;background-color:#fff;margin-top:12px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 12px}.PaymentMode .list .method-item .left-text[data-v-754186cd]{display:grid;grid-auto-flow:column;grid-template-columns:auto;grid-template-rows:auto;grid-gap:11px;font-size:16px;font-weight:700}.PaymentMode .list .method-item .left-text span[data-v-754186cd]{-webkit-align-self:center;align-self:center}.PaymentMode .list .method-item .left-text .icon-left i[data-v-754186cd]{font-size:22px;font-weight:initial}.PaymentMode .list .method-item .right-icon[data-v-754186cd]{background-color:#266fe81a;border-radius:50%;width:24px;height:24px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.PaymentMode .list .method-item .right-icon i[data-v-754186cd]{color:#266fe8;font-size:12px}.OCRInvoice[data-v-4ad9061c],.OCRInvoice .box[data-v-4ad9061c]{width:100%;height:100%}
|
|
9
|
+
*/.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;-webkit-transition:opacity .15s;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;left:0;position:absolute;right:0;top:0;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;-webkit-transition:background-color .15s;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;-webkit-transition:opacity .15s;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;-webkit-transition:background-color .15s;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:-webkit-grab;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{-webkit-transition:all .3s;transition:all .3s}@-webkit-keyframes viewer-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes viewer-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.viewer-loading:after{-webkit-animation:viewer-spinner 1s linear infinite;animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}}.content[data-v-784ab8b0]{background-color:#f7f8fa}.content[data-v-784ab8b0] .van-field__value{border:1px solid #2196f3;border-radius:4px}.content[data-v-784ab8b0] .van-field__value input{padding-left:12px}.content .btn[data-v-784ab8b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;gap:12px;padding:12px 16px 0}.content .btn button[data-v-784ab8b0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;border-radius:25px}[data-v-784ab8b0] .van-cell-group{background-color:transparent}[data-v-784ab8b0] .van-cell-group .van-field__label{color:#333;font-size:16px;font-weight:400}[data-v-784ab8b0] .van-cell-group .van-field__control{font-size:16px}.footer-confirm-btn[data-v-784ab8b0]{margin-top:12px;margin-bottom:6px;width:100%;padding:0 12px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.footer-confirm-btn .confirm-btn[data-v-784ab8b0]{width:calc(100% - 24px);padding:12px 0;color:#fff;background-color:#1989fa;border:none;border-radius:25px}.inv-cell[data-v-784ab8b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:100%;background-color:#fff;padding:12px}.inv-cell label[data-v-784ab8b0]{margin-right:4px;font-size:14px;font-weight:700;width:100px;color:#333}.inv-cell .cell-icon[data-v-784ab8b0]{margin-left:4px;min-width:16px;text-align:right}.inv-cell .cell-icon i[data-v-784ab8b0]{color:#8c8d8fe3}.inv-cell input[data-v-784ab8b0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#333;border:none;height:24px;outline:none;font-size:14px;font-weight:500}.inv-cell input[data-v-784ab8b0]::-webkit-input-placeholder{color:#d1d2d5}.inv-cell input[data-v-784ab8b0]::-moz-placeholder{color:#d1d2d5}.inv-cell input[data-v-784ab8b0]::placeholder{color:#d1d2d5}.inv-cell textarea[data-v-784ab8b0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:60px;padding:4px;border:none;outline:none;resize:none}.inv-cell textarea[data-v-784ab8b0]::-webkit-input-placeholder{color:#d1d2d5}.inv-cell textarea[data-v-784ab8b0]::-moz-placeholder{color:#d1d2d5}.inv-cell textarea[data-v-784ab8b0]::placeholder{color:#d1d2d5}.inv-cell .input-color[data-v-784ab8b0]{border:1px solid #1989fa;border-radius:5px;padding:0 1em}.Invoice[data-v-784ab8b0]{width:100%;height:100%;background-color:#f2f4f7;overflow:auto;padding-bottom:100px}.Invoice .top[data-v-784ab8b0]{width:100%;padding:12px 4px}.Invoice .top img[data-v-784ab8b0]{width:100%;height:179px;display:block;-o-object-fit:contain;object-fit:contain}.Invoice .inovice-content[data-v-784ab8b0]{padding:0 16px}.Invoice .Field-title[data-v-784ab8b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:12px}.Invoice .Field-title .titleLeft[data-v-784ab8b0]{font-size:16px;color:#333;font-family:PingFangSC-Medium,PingFang SC;font-weight:600}.Invoice .Field-title .titleLeft[data-v-784ab8b0]:before{margin-right:4px;display:inline-block;content:"";width:4px;height:14px;background-color:#266fe8;border-radius:2px}.Invoice .Field-title .titleright[data-v-784ab8b0]{font-size:14px;color:#266fe8}.Invoice .marPX[data-v-784ab8b0]{margin-bottom:12px}.Invoice table[data-v-784ab8b0]{background-color:#fff;border-radius:4px;border:1px solid #f2f4f7;width:100%;border-spacing:0}.Invoice thead[data-v-784ab8b0]{background-color:#f2f4f7;font-size:12px;color:#666}.Invoice thead th[data-v-784ab8b0]{padding:12px 0;text-align:center;font-size:14px}.Invoice tbody td[data-v-784ab8b0]{text-align:center;padding:10px 0;white-space:nowrap}.Invoice .submit[data-v-784ab8b0]{position:fixed;bottom:0;left:0;width:100%;box-shadow:0 -1px 12px #adadad1a;height:90px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 12px;z-index:2;background-color:#fff;gap:12px}.Invoice .submit span[data-v-784ab8b0]{-webkit-box-flex:2;-webkit-flex:2;flex:2;background-color:#266fe8;font-size:15px;color:#fff;height:44px;text-align:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.flod-fade-enter-active[data-v-784ab8b0]{-webkit-transition:all .3s ease-out;transition:all .3s ease-out}.flod-fade-leave-active[data-v-784ab8b0]{-webkit-transition:all .1s cubic-bezier(1,.5,.8,1);transition:all .1s cubic-bezier(1,.5,.8,1)}.flod-fade-enter-from[data-v-784ab8b0],.flod-fade-leave-to[data-v-784ab8b0]{-webkit-transform:translateY(-20px);transform:translateY(-20px);opacity:0}.skeleton-card[data-v-4f642fc4]{background:#fff;position:relative;overflow:hidden;-webkit-animation:skeleton-loading-4f642fc4 1.2s infinite alternate;animation:skeleton-loading-4f642fc4 1.2s infinite alternate}.skeleton-title[data-v-4f642fc4]{width:80px;height:20px;background:#f0f0f0;border-radius:4px;margin-bottom:8px}.skeleton-tags[data-v-4f642fc4]{display:-webkit-box;display:-webkit-flex;display:flex;gap:12px;margin-bottom:16px}.skeleton-tag[data-v-4f642fc4]{height:18px;background:#f0f0f0;border-radius:3px}.skeleton-tag[data-v-4f642fc4]:first-child{width:70px}.skeleton-tag[data-v-4f642fc4]:last-child{width:40px}.skeleton-content[data-v-4f642fc4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;gap:12px}.skeleton-row[data-v-4f642fc4]{display:-webkit-box;display:-webkit-flex;display:flex;gap:12px}.skeleton-label[data-v-4f642fc4]{width:70px;height:14px;background:#f0f0f0;border-radius:2px}.skeleton-value[data-v-4f642fc4]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:14px;background:#f0f0f0;border-radius:2px}@-webkit-keyframes skeleton-loading-4f642fc4{0%{opacity:.6}to{opacity:1}}@keyframes skeleton-loading-4f642fc4{0%{opacity:.6}to{opacity:1}}.skeleton-card[data-v-4f642fc4]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:-webkit-linear-gradient(left,transparent,rgba(255,255,255,.3),transparent);background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);-webkit-animation:skeleton-shine-4f642fc4 1.5s infinite;animation:skeleton-shine-4f642fc4 1.5s infinite}@-webkit-keyframes skeleton-shine-4f642fc4{0%{-webkit-transform:translateX(-100%);transform:translate(-100%)}to{-webkit-transform:translateX(100%);transform:translate(100%)}}@keyframes skeleton-shine-4f642fc4{0%{-webkit-transform:translateX(-100%);transform:translate(-100%)}to{-webkit-transform:translateX(100%);transform:translate(100%)}}.select-item[data-v-4c446cb4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:12px}.disabledColor[data-v-4c446cb4]{opacity:.6;cursor:not-allowed}.InvoiceList[data-v-4c446cb4]{padding-bottom:100px;position:relative;width:100%;height:100%;background-color:#f3f4f6;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.InvoiceList .selectAll[data-v-4c446cb4]{background-color:#f3f4f6;padding:12px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.InvoiceList .selectAll .right[data-v-4c446cb4]{display:-webkit-box;display:-webkit-flex;display:flex;gap:5px;padding-right:12px}.InvoiceList .card[data-v-4c446cb4]{width:100%;height:inherit;overflow:auto}.InvoiceList .card .li[data-v-4c446cb4]{width:100%;border-radius:4px;padding:0 12px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden;margin-bottom:12px}.InvoiceList .card .li .item-card[data-v-4c446cb4]{-webkit-box-flex:1;-webkit-flex:1;flex:1;position:relative;background-color:#fff;padding-bottom:12px;min-width:100%}.InvoiceList .card .li .item-card .details-btn[data-v-4c446cb4]{position:absolute;top:0;right:0;font-size:14px;color:#333;border-radius:2px;-webkit-flex-shrink:0;flex-shrink:0;text-align:right;padding:8px 16px 16px}.InvoiceList .card .li .item-card div.company[data-v-4c446cb4]{background-color:#ff8b26}.InvoiceList .card .li .item-card div.err[data-v-4c446cb4]{background-color:#d5001c}.InvoiceList .card .li .item-card .title[data-v-4c446cb4]{color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;width:-webkit-max-content;width:-moz-max-content;width:max-content;text-align:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:12px;border-radius:4px 0;padding:2px 4px;background-color:#266fe8;margin-bottom:5px}.InvoiceList .card .li .item-card .storeName[data-v-4c446cb4]{padding:0 12px}.InvoiceList .card .li .item-card .storeName .name[data-v-4c446cb4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;width:100%;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.InvoiceList .card .li .item-card .storeName .name .left[data-v-4c446cb4]{font-size:15px;color:#333;font-weight:700}.InvoiceList .card .li .item-card .storeName .name .right[data-v-4c446cb4]{font-size:12px;color:#ee0a24}.InvoiceList .card .li .item-card .storeName .tags[data-v-4c446cb4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:7px;margin-top:8px;margin-bottom:15px}.InvoiceList .card .li .item-card .storeName .tags .manual[data-v-4c446cb4]{background-color:#facd91;color:#c77458}.InvoiceList .card .li .item-card .storeName .tags span[data-v-4c446cb4]{padding:2px 4px;font-size:12px;font-weight:400;border-radius:2px}.InvoiceList .card .li .item-card .storeName .tags span.ok[data-v-4c446cb4]{background-color:#266fe81a;color:#266fe8}.InvoiceList .card .li .item-card .storeName .tags span.warning[data-v-4c446cb4]{background-color:#fffbe6;color:#ff8f26}.InvoiceList .card .li .item-card .storeName .tags span.error[data-v-4c446cb4]{background-color:#fff2f0;color:#ff4d4f}.InvoiceList .card .li .item-card .storeName .tags span.default[data-v-4c446cb4]{background-color:#9993;color:#666}.InvoiceList .card .li .item-card .storeName .tags span.success[data-v-4c446cb4]{background-color:#e6ffdd;color:#2ba500;opacity:.68}.InvoiceList .card .li .item-card .storeName .InvoiceInfo[data-v-4c446cb4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info[data-v-4c446cb4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:16px;margin-bottom:6px}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info[data-v-4c446cb4]:last-child{margin-bottom:0}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info span[data-v-4c446cb4]{font-size:14px}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info span.label[data-v-4c446cb4]{color:#999}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info span.value[data-v-4c446cb4]{color:#333}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .leftinfo .item-info span.price[data-v-4c446cb4]{color:#266fe8;font-weight:700}.InvoiceList .card .li .item-card .storeName .InvoiceInfo .rightCheckbox[data-v-4c446cb4]{height:-webkit-max-content;height:-moz-max-content;height:max-content}.InvoiceList .card .li .err-card[data-v-4c446cb4]{background-color:#fff;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;gap:9px}.InvoiceList .card .li .err-card .left-img[data-v-4c446cb4]{width:113px;height:79px;margin:10px 0 10px 10px;-webkit-flex-shrink:0;flex-shrink:0}.InvoiceList .card .li .err-card .left-img img[data-v-4c446cb4]{width:100%;height:100%}.InvoiceList .card .li .err-card .right-errText .title[data-v-4c446cb4]{color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;text-align:right;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;margin-bottom:5px}.InvoiceList .card .li .err-card .right-errText .title span[data-v-4c446cb4]{background-color:#ee0a241a;color:#ee0a24;padding:2px 4px;font-size:12px;border-radius:0 4px}.InvoiceList .card .li .err-card .right-errText .content[data-v-4c446cb4]{display:-webkit-box;display:-webkit-flex;display:flex;padding-right:12px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:12px;gap:18px}.InvoiceList .card .li .err-card .right-errText .content .recognitionResult[data-v-4c446cb4]{gap:5px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.InvoiceList .card .li .err-card .right-errText .content .recognitionResult p[data-v-4c446cb4]{color:#666;font-size:14px}.InvoiceList .card .loading[data-v-4c446cb4]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:100}.InvoiceList .btn-form[data-v-4c446cb4]{z-index:99;position:fixed;bottom:0;left:0;background-color:#fff;height:90px;width:100%}.InvoiceList .btn-form .operate[data-v-4c446cb4]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;gap:12px;padding:12px 12px 34px;font-size:15px}.InvoiceList .btn-form .operate span[data-v-4c446cb4]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-weight:500;font-size:15px;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.InvoiceList .btn-form .operate .delete[data-v-4c446cb4]{border:1px solid #e8e8e8;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 44px}.InvoiceList .btn-form .operate .right-btn[data-v-4c446cb4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1}.InvoiceList .btn-form .operate .right-btn span[data-v-4c446cb4]{color:#fff}.InvoiceList .btn-form .operate .right-btn .add[data-v-4c446cb4]{background-color:#ff8b26;border-radius:4px 0 0 4px}.InvoiceList .btn-form .operate .right-btn .ok[data-v-4c446cb4]{border-radius:0 4px 4px 0;background-color:#266fe8}.boxPopup[data-v-4c446cb4]{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:16px 23px 34px}.boxPopup div[data-v-4c446cb4]{width:100%;font-size:14px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.boxPopup .title[data-v-4c446cb4]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:16px;font-weight:700;padding-bottom:24px}.boxPopup .title .close[data-v-4c446cb4]{font-size:22px}.inv-checkbox[data-v-4c446cb4]{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:inline-block;width:22px;height:22px;border:1px solid #c9cacd;border-radius:50%;outline:none;cursor:pointer;position:relative}.inv-checkbox[data-v-4c446cb4]:checked{width:22px;height:22px;border-radius:50%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABI9JREFUWEfVmV1oHFUUx//nzm4aFaUNye4mjeBHdjeiQcEHYwRbW7QqWPAjD0X64AfVYpNMqCL4Yt7Ez51NlErEPoj4kopYkahtUQqm7UtVKrSZjaEPSbMfYlJF8rG798hsmGSzH7N3tqt193Hnf879zZl7zzn3XkKd/ajOeFFT4K79C1sy3qWtLOh6KxAk+S9PunH23KHN87UKzBUBd/TNtGuehicly50EugfMvpJgREkGnxEkTmQzK59PjbTPVPsCVQF36HPbBYtXGXiQwJqbwRmUJeCYJPnmlNH6gxvb3FdzY3DLSzMhr9c7wswPubErpyWi79LpdN/0B+2mqj9l4HB/4kUGR0BoVHWupGMsEWhwctj/oYq+MnAva8GtiVFiPKvisFoNEw7HZv37MEZZJx/OwL2shdqSYwA/Xi2IOzv6wrzk63WCdgQO6vGP/+3IFr5QLtJG4Lmy877cg9ycJT7kLkK1URPT/nJzumSErWzg0Ty/1HyBqb4PYymTzdxZKnuUBA7riW9rlbpUGQt1VsqbNPy7iv4v/GO1KND31Q6kYsegswS+DGAbAFHORhI/UFhciiIcGkiMA/ywysBVaRhvmMOB1yzbkJ7YC+ZPyvuhb8yo/5H85xuArd6AhPei23KrCk6gzyaj/qdt/fYh9lyaTy4DXDLKVhlnmb4pv/fYABzW4zozIqoA7nQ0IaVvx9QILdt2nX2pbVJkHfsJEkKfjPiitk0h8FFmPOYOREk9LSV3T420pmx1+ECqjTV5BuB2Jw9M+CpmBHaXBA4NxJMAWpQQFEUMWgBpPTGj+bxt0raPr73umsRJAu6u6IYoaRp+fxGw1XwvNyz9UdGBKwGlWWiPxiLNx9fMhliE5pNH3JT7TSuNTfYmYG1K3NYfvyNLOOeKp4KYSXshZrSM5svC+tzbzPSym3E0Rtf54cCvls0acKeeuFcyTyg4ygB0kYGbnbMJv2tGWzeAhfTU8+DsRwpjbJAIop4Lhv9UNcCprBA9v0V8U0E9eRexPALg1iIAwpfmZv8TGCJpPwv1x3eCMA7AWxNgxSnxvhkN9NkD3j54uSktF8cA7FhfFHR2wcv3J94J/L0Ge/D3TmSyEwBvcQtr6UtOCbVFR8fMqH/j9miIPaH5hJW7DwA0A7HSbUZunF2H/bMZmcXTABd/CUX6kovOslVKa8zvmU2BV/I/t2UbHkw+Ixk/xQzfzzZHR19sk9BuOAHm+xTZimXl0pqlDOrxo6RUOGg8s+jdMz3aZDUwZX/B/sSnRLxWiquBdiwc4cHkAEtpKDlmXMhA7J4e9sVK6UP9c6+DaEjJl4PIsTS7bn6Y5lmIvTGj5ev1MZmCevIgSX4L5O4YoZC7YvOzOo/dtpfERHySGT8SUwML7AJz15VGdtW+QntpSf6LBl71ZZQa+NyKr6ctkgVcd5vQXJTraZtvz7GrcpDCOBwbruIgJQddb0dVNnT9HAbm5Z/6OW7Ng66rA+38ZF83VwaFFSp3KaN5nrIaeGZ0O+y4U0Q4jat1KVOutP7vr71Ue4Ja6irfcdRytBr4+gcxLidLt448SAAAAABJRU5ErkJggg==) no-repeat center;background-size:110%;border:none}.PaymentMode[data-v-754186cd]{width:100%;height:100%;padding:20px 12px 0;background-color:#f3f4f6}.PaymentMode .title[data-v-754186cd]{font-size:14px;font-weight:600}.PaymentMode .list .method-item[data-v-754186cd]{width:100%;height:60px;background-color:#fff;margin-top:12px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 12px}.PaymentMode .list .method-item .left-text[data-v-754186cd]{display:grid;grid-auto-flow:column;grid-template-columns:auto;grid-template-rows:auto;grid-gap:11px;font-size:16px;font-weight:700}.PaymentMode .list .method-item .left-text span[data-v-754186cd]{-webkit-align-self:center;align-self:center}.PaymentMode .list .method-item .left-text .icon-left i[data-v-754186cd]{font-size:22px;font-weight:initial}.PaymentMode .list .method-item .right-icon[data-v-754186cd]{background-color:#266fe81a;border-radius:50%;width:24px;height:24px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.PaymentMode .list .method-item .right-icon i[data-v-754186cd]{color:#266fe8;font-size:12px}.OCRInvoice[data-v-4ad9061c],.OCRInvoice .box[data-v-4ad9061c]{width:100%;height:100%}
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mg-ocr-invoice",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.13",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"main": "dist/index.umd.js",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
9
12
|
"files": [
|
|
10
13
|
"dist",
|
|
11
14
|
"src/components"
|
|
@@ -40,4 +43,4 @@
|
|
|
40
43
|
"peerDependencies": {
|
|
41
44
|
"sass": "^1.63.2"
|
|
42
45
|
}
|
|
43
|
-
}
|
|
46
|
+
}
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
<div class="storeName">
|
|
37
37
|
<div class="name">
|
|
38
38
|
<div class="left">{{ item.sellerName }}</div>
|
|
39
|
-
<div class="right" v-if="item.taskStatus === 'repeat'">
|
|
39
|
+
<!-- <div class="right" v-if="item.taskStatus === 'repeat'">
|
|
40
40
|
已收录
|
|
41
|
-
</div>
|
|
41
|
+
</div> -->
|
|
42
42
|
</div>
|
|
43
43
|
<div class="tags">
|
|
44
44
|
<span v-if="item.manualModify" class="manual"> 手工录入 </span>
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
<span class="label">发票红冲</span>
|
|
106
106
|
<span class="value" style="color: #ff7f25"> 部分红冲票 </span>
|
|
107
107
|
</div>
|
|
108
|
-
<div style="color:
|
|
109
|
-
|
|
108
|
+
<div style="color: #5CB933; font-size: 12px">
|
|
109
|
+
提示:请核对下票面金额、税额与发票数据一致,如果不一致,请点击右上角修改发票数据
|
|
110
110
|
</div>
|
|
111
111
|
<div>
|
|
112
112
|
<p
|