@invoice-sdk/widget 1.50.11 → 1.51.0
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.
|
@@ -406,14 +406,14 @@ class ne extends oe {
|
|
|
406
406
|
for (let k = 0; k < J.length; k++)
|
|
407
407
|
q.push(J[k]);
|
|
408
408
|
else this.options.saveMissingTo === "all" ? q = this.languageUtils.toResolveHierarchy(i.lng || this.language) : q.push(i.lng || this.language);
|
|
409
|
-
const me = (k,
|
|
409
|
+
const me = (k, E, V) => {
|
|
410
410
|
var ve;
|
|
411
411
|
const ye = N && V !== h ? V : L;
|
|
412
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(k, l,
|
|
412
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(k, l, E, ye, F, i) : (ve = this.backendConnector) != null && ve.saveMissing && this.backendConnector.saveMissing(k, l, E, ye, F, i), this.emit("missingKey", k, l, E, h);
|
|
413
413
|
};
|
|
414
414
|
this.options.saveMissing && (this.options.saveMissingPlurals && x ? q.forEach((k) => {
|
|
415
|
-
const
|
|
416
|
-
B && i[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
415
|
+
const E = this.pluralResolver.getSuffixes(k, i);
|
|
416
|
+
B && i[`defaultValue${this.options.pluralSeparator}zero`] && E.indexOf(`${this.options.pluralSeparator}zero`) < 0 && E.push(`${this.options.pluralSeparator}zero`), E.forEach((V) => {
|
|
417
417
|
me([k], a + V, i[`defaultValue${V}`] || P);
|
|
418
418
|
});
|
|
419
419
|
}) : me(q, a, P));
|
|
@@ -1283,7 +1283,7 @@ b.setDefaultNamespace;
|
|
|
1283
1283
|
b.hasLoadedNamespace;
|
|
1284
1284
|
b.loadNamespaces;
|
|
1285
1285
|
b.loadLanguages;
|
|
1286
|
-
const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", Ft = "Back ID Card", Dt = "Bank Name",
|
|
1286
|
+
const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", Ft = "Back ID Card", Dt = "Bank Name", At = "Beneficiary Bank", Et = "Business Registration License", jt = "Cancel", Ut = "Cancel Transaction", Mt = "Close", Ht = "C (With tax authority code)", Kt = "K (Without code)", Bt = "C: With tax authority code, K: Without code", qt = "Coming Soon", Vt = "Unit Name", zt = "Complete your payment within", Qt = "Complete registration", Gt = "Confirm", Wt = "Important Notice:", Xt = "3. Contact Person Information:", _t = "Copy", Jt = "Country", Yt = "2 custom characters (default: YY)", Zt = "Custom quantity", en = "Date of Birth", tn = "Decrease", nn = "Digital Signature Package", on = "District", sn = "Duration", rn = "E-Contract", an = "Edit", cn = "e-invoices", ln = "Email", un = "Enter ID Card Number", dn = "Enter Invoice Symbol", hn = "Enter Passport Number", fn = "Enter Provider Name", gn = "Enter Tax Authority Code", pn = "Failed to check customer status", mn = "Failed to create order", yn = "Error fetching tax information.", vn = "File format not supported", bn = "File size is too large", Sn = "Access denied", xn = "Address cannot contain special characters", $n = "Invalid ID card", Pn = "Invalid date of birth", kn = "Invalid email address", Cn = "Invalid ID card number", wn = "Only letters, numbers and underscores allowed", Tn = "Invalid phone number", On = "Invalid provider name", Ln = "Invalid request", In = "Invalid tax authority code", Nn = "Invalid tax code", Rn = "Failed to load data", Fn = "Failed to load registration packages", Dn = "Failed to load invoice packages", An = "Failed to load signature packages", En = "Network connection error", jn = "Data not found", Un = "Unable to check order payment status. Please try again.", Mn = "Unable to generate QR payment code. Please try again.", Hn = "This field is required", Kn = "Failed to search packages", Bn = "Server error, please try again later", qn = "Service temporarily unavailable", Vn = "Too many requests, please try again later", zn = "Unauthorized access", Qn = "An error occurred", Gn = "Invalid data", Wn = "Female", Xn = "Format", _n = "Front ID Card", Jn = "Full Name", Yn = "Gender", Zn = "Have you used e-invoices?", ei = "Are you using another e-invoice provider other than M-invoice?", ti = "(Free Consulting and Support Hotline)", ni = "Hotline:", ii = "ID Card Number", oi = "Increase", si = "Information sent to the provider", ri = "Invoice Package", ai = "Invoice Symbol", ci = "Invoice Template", li = { 1: "1 (VAT Invoice)", 2: "2 (Sales Invoice)", 3: "3 (Public Asset Sales)", 4: "4 (National Reserve Sales)", 5: "5 (Stamps, Tickets, Other Cards)", 6: "6 (Internal Documents)", 7: "7 (Commercial Invoice)", 8: "8 (VAT with Integrated Tax)", 9: "9 (Sales with Integrated Tax)" }, ui = "B (Agent)", di = "D (Asset)", hi = "G (VAT Stamp)", fi = "H (Sales Stamp)", gi = "L (Tax Authority)", pi = "M (Cash Register)", mi = "N (Internal)", yi = "T (Registration)", vi = "Invoice type", bi = "X (Commercial)", Si = "4. E-INVOICE USAGE INFORMATION:", xi = "invoices/month", $i = "2. Legal Representative Information:", Pi = "Please check and enter the correct legal representative name according to the uploaded business license.", ki = "Loading...", Ci = "Male", wi = "Max 500KB", Ti = "Month", Oi = "Most Suitable Package", Li = "Continue", Ii = "No data available", Ni = "No package found.", Ri = "Please check your email inbox regularly to receive account information notifications from the provider.", Fi = "If you have not received the email account information (username/password) within 2 hours, please contact the information below for the fastest support:", Di = "of", Ai = "OK", Ei = "Optional", ji = "or", Ui = "Order created successfully", Mi = "Order has expired", Hi = "Order Information", Ki = "Order Summary", Bi = "Organization Registration Certificate", qi = "Passport", Vi = "Payment Amount", zi = "Payment Failed", Qi = ["Open your banking app or digital wallet on your phone", "Select the QR Code scan feature in the app", "Scan the QR code on this page and make payment"], Gi = "QR Payment Instructions", Wi = "Payment Method:", Xi = "Payment Successful!", _i = "Payment timeout", Ji = "Payment timeout! Please try again.", Yi = "Payment", Zi = "Permanent address", eo = "Phone Number", to = "Product", no = "Provider", io = "Provider Name", oo = "Province/City", so = "QR Code Payment", ro = "Scan QR Code to Pay", ao = "Quantity", co = "Registration Fee", lo = "Required", uo = "Return Home", ho = "Return to step 1", fo = "Invoice template number (1-9)", go = "Save", po = "Units per month", mo = "Select File", yo = "Select E-Invoice Package", vo = "Select Provider", bo = "Select Digital Signature Package", So = "Select Subscription Package", xo = "Selected Products", $o = "Settings", Po = "Digital Signature Package", ko = "E-invoice software license", Co = "Information", wo = "Confirmation & Payment", To = "Invoice Package", Oo = "Subscription Package", Lo = "Tax Authority", Io = "5 characters issued by the Authority for cash register bills", No = "Unit Tax Code", Ro = "Terms and Usage Policy", Fo = "Time Left", Do = "Total", Ao = "Total Amount", Eo = "Total Price", jo = "Transaction has been canceled. Returning to registration page.", Uo = "Unit", Mo = "1. Unit Information", Ho = "units/month", Ko = "Unit Price", Bo = "units/ month", qo = "Upload Back ID Card", Vo = "Upload File", zo = "Upload Front ID Card", Qo = "Upload Logo", Go = "Usage Policy", Wo = "Ward", Xo = "Website", _o = "E-Invoice Registration", Jo = "Release year (last 2 digits)", Yo = {
|
|
1287
1287
|
accountName: Tt,
|
|
1288
1288
|
accountNumber: Ot,
|
|
1289
1289
|
address: Lt,
|
|
@@ -1292,8 +1292,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1292
1292
|
back: Rt,
|
|
1293
1293
|
backIdCard: Ft,
|
|
1294
1294
|
bankName: Dt,
|
|
1295
|
-
beneficiaryBank:
|
|
1296
|
-
businessLicense:
|
|
1295
|
+
beneficiaryBank: At,
|
|
1296
|
+
businessLicense: Et,
|
|
1297
1297
|
cancel: jt,
|
|
1298
1298
|
cancelTransaction: Ut,
|
|
1299
1299
|
close: Mt,
|
|
@@ -1346,8 +1346,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1346
1346
|
errorLoadingData: Rn,
|
|
1347
1347
|
errorLoadingInitPackages: Fn,
|
|
1348
1348
|
errorLoadingInvoicePackages: Dn,
|
|
1349
|
-
errorLoadingSignaturePackages:
|
|
1350
|
-
errorNetwork:
|
|
1349
|
+
errorLoadingSignaturePackages: An,
|
|
1350
|
+
errorNetwork: En,
|
|
1351
1351
|
errorNotFound: jn,
|
|
1352
1352
|
errorOrderStatus: Un,
|
|
1353
1353
|
errorQRGeneration: Mn,
|
|
@@ -1402,8 +1402,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1402
1402
|
"notice3.1": "After being granted an account, please go to the Link",
|
|
1403
1403
|
"notice3.2": "to connect and use the service HDDT",
|
|
1404
1404
|
of: Di,
|
|
1405
|
-
ok:
|
|
1406
|
-
optional:
|
|
1405
|
+
ok: Ai,
|
|
1406
|
+
optional: Ei,
|
|
1407
1407
|
or: ji,
|
|
1408
1408
|
orderCreated: Ui,
|
|
1409
1409
|
orderExpired: Mi,
|
|
@@ -1456,8 +1456,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1456
1456
|
termsAndUsagePolicy: Ro,
|
|
1457
1457
|
timeLeft: Fo,
|
|
1458
1458
|
total: Do,
|
|
1459
|
-
totalAmount:
|
|
1460
|
-
totalPrice:
|
|
1459
|
+
totalAmount: Ao,
|
|
1460
|
+
totalPrice: Eo,
|
|
1461
1461
|
transactionCanceled: jo,
|
|
1462
1462
|
unit: Uo,
|
|
1463
1463
|
unitInfo: Mo,
|
|
@@ -1473,7 +1473,7 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1473
1473
|
website: Xo,
|
|
1474
1474
|
widgetTitle: _o,
|
|
1475
1475
|
yearTooltip: Jo
|
|
1476
|
-
}, Zo = "Tên tài khoản", es = "Số tài khoản", ts = "Địa chỉ đơn vị", ns = "Tôi đồng ý với", is = "và", os = "Quay lại", ss = "Mặt sau CCCD", rs = "Ngân hàng", as = "Ngân hàng thụ hưởng", cs = "Giấy phép đăng ký kinh doanh", ls = "Hủy", us = "Hủy giao dịch", ds = "Đóng", hs = "C (Có mã CQT)", fs = "K (Không mã)", gs = "C: Có mã CQT, K: Không mã", ps = "Sắp ra mắt", ms = "Tên đơn vị", ys = "Hoàn tất thanh toán của bạn trong", vs = "Hoàn tất đăng ký", bs = "Xác nhận", Ss = "Thông tin lưu ý:", xs = "3. Thông tin người liên hệ:", $s = "Bản", Ps = "Quốc gia", ks = "2 ký tự tùy chọn (mặc định: YY)", Cs = "Số lượng tùy chỉnh", ws = "Ngày sinh", Ts = "Giảm", Os = "Gói chữ ký số", Ls = "Quận/Huyện", Is = "Thời hạn", Ns = "E-Contract", Rs = "Chỉnh sửa", Fs = "hóa đơn điện tử", Ds = "Email",
|
|
1476
|
+
}, Zo = "Tên tài khoản", es = "Số tài khoản", ts = "Địa chỉ đơn vị", ns = "Tôi đồng ý với", is = "và", os = "Quay lại", ss = "Mặt sau CCCD", rs = "Ngân hàng", as = "Ngân hàng thụ hưởng", cs = "Giấy phép đăng ký kinh doanh", ls = "Hủy", us = "Hủy giao dịch", ds = "Đóng", hs = "C (Có mã CQT)", fs = "K (Không mã)", gs = "C: Có mã CQT, K: Không mã", ps = "Sắp ra mắt", ms = "Tên đơn vị", ys = "Hoàn tất thanh toán của bạn trong", vs = "Hoàn tất đăng ký", bs = "Xác nhận", Ss = "Thông tin lưu ý:", xs = "3. Thông tin người liên hệ:", $s = "Bản", Ps = "Quốc gia", ks = "2 ký tự tùy chọn (mặc định: YY)", Cs = "Số lượng tùy chỉnh", ws = "Ngày sinh", Ts = "Giảm", Os = "Gói chữ ký số", Ls = "Quận/Huyện", Is = "Thời hạn", Ns = "E-Contract", Rs = "Chỉnh sửa", Fs = "hóa đơn điện tử", Ds = "Email", As = "Nhập số CMND/CCCD", Es = "Nhập ký hiệu hóa đơn", js = "Nhập số hộ chiếu", Us = "Nhập tên nhà cung cấp", Ms = "Nhập mã CQT cấp", Hs = "Không thể kiểm tra trạng thái khách hàng", Ks = "Không thể tạo đơn hàng", Bs = "Lỗi khi lấy thông tin mã số thuế.", qs = "Định dạng tệp không được hỗ trợ", Vs = "Kích thước tệp quá lớn", zs = "Truy cập bị từ chối", Qs = "Địa chỉ không được chứa ký tự đặc biệt", Gs = "CCCD không hợp lệ", Ws = "Ngày sinh không hợp lệ", Xs = "Email không hợp lệ", _s = "Số CCCD không hợp lệ", Js = "Chỉ được dùng chữ cái, số và dấu gạch dưới", Ys = "Số điện thoại không hợp lệ", Zs = "Tên nhà cung cấp không hợp lệ", er = "Yêu cầu không hợp lệ", tr = "Mã CQT cấp không hợp lệ", nr = "Mã số thuế không hợp lệ", ir = "Không thể tải dữ liệu", or = "Không thể tải gói đăng ký", sr = "Không thể tải gói hóa đơn", rr = "Không thể tải gói chữ ký số", ar = "Lỗi kết nối mạng", cr = "Không tìm thấy dữ liệu", lr = "Không thể kiểm tra trạng thái thanh toán đơn hàng. Vui lòng thử lại.", ur = "Không thể tạo mã QR thanh toán. Vui lòng thử lại.", dr = "Trường này là bắt buộc", hr = "Không thể tìm kiếm gói", fr = "Lỗi máy chủ, vui lòng thử lại sau", gr = "Dịch vụ tạm thời không khả dụng", pr = "Quá nhiều yêu cầu, vui lòng thử lại sau", mr = "Không có quyền truy cập", yr = "Đã xảy ra lỗi", vr = "Dữ liệu không hợp lệ", br = "Nữ", Sr = "Định dạng", xr = "Mặt trước CCCD", $r = "Họ và tên", Pr = "Giới tính", kr = "Bạn đã sử dụng hoá đơn điện tử?", Cr = "Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?", wr = "(Tổng đài Tư vấn, Hỗ trợ miễn phí)", Tr = "Hotline:", Or = "CCCD", Lr = "Tăng", Ir = "Đã gửi thông tin sang nhà cung cấp", Nr = "Gói hóa đơn", Rr = "Ký hiệu hóa đơn", Fr = "Mẫu số", Dr = { 1: "1 (Hóa đơn GTGT)", 2: "2 (Hóa đơn bán hàng)", 3: "3 (Bán tài sản công)", 4: "4 (Bán dự trữ quốc gia)", 5: "5 (Tem, vé, thẻ khác)", 6: "6 (Chứng từ nội bộ)", 7: "7 (Hóa đơn thương mại)", 8: "8 (GTGT tích hợp thuế)", 9: "9 (Bán hàng tích hợp thuế)" }, Ar = "B (Đại lý)", Er = "D (Tài sản)", jr = "G (Tem GTGT)", Ur = "H (Tem bán hàng)", Mr = "L (CQT)", Hr = "M (Máy tính tiền)", Kr = "N (Nội bộ)", Br = "T (Đăng ký)", qr = "Loại hóa đơn", Vr = "X (Thương mại)", zr = "4. THÔNG TIN SỬ DỤNG HDDT:", Qr = "hóa đơn/tháng", Gr = "2. Thông tin người đại diện pháp luật:", Wr = "Vui lòng kiểm tra và nhập đúng tên người đại diện theo Giấy phép kinh doanh đã tải lên.", Xr = "Đang tải...", _r = "Nam", Jr = "Tối đa 500Kb", Yr = "Tháng", Zr = "Gói phù hợp nhất", ea = "Tiếp tục", ta = "Không có dữ liệu", na = "Không tìm thấy gói nào.", ia = "Vui lòng thường xuyên kiểm tra hộp thư Email nhận thông báo thông tin tài khoản từ nhà cung cấp", oa = "Trong vòng 2 giờ nếu chưa nhận được thông tin Email tài khoản (username/password). Bạn có thể liên hệ thông tin phía bên dưới để được hỗ trợ sớm nhất:", sa = "của", ra = "OK", aa = "Tùy chọn", ca = "hoặc", la = "Đơn hàng đã được tạo thành công", ua = "Đơn hàng đã hết hạn", da = "Thông tin đơn hàng", ha = "Tóm tắt đơn hàng", fa = "Giấy chứng nhận đăng ký doanh nghiệp", ga = "Hộ chiếu", pa = "Số tiền thanh toán", ma = "Thanh toán thất bại", ya = ["Mở ứng dụng Ngân hàng hoặc Ví điện tử trên điện thoại", "Trên ứng dụng chọn tính năng Quét mã QR", "Quét mã QR ở trang này và thanh toán"], va = "Hướng dẫn thanh toán QR", ba = "Hình thức thanh toán:", Sa = "Thanh toán thành công!", xa = "Hết thời gian thanh toán", $a = "Hết thời gian thanh toán! Vui lòng thử lại.", Pa = "Thanh toán", ka = "Địa chỉ thường trú", Ca = "Số điện thoại", wa = "Sản phẩm", Ta = "Nhà cung cấp", Oa = "Tên NCC", La = "Tỉnh/Thành phố", Ia = "Thanh toán qua mã QR", Na = "Quét mã QR để thanh toán", Ra = "Số lượng", Fa = "Phí đăng ký", Da = "Bắt buộc", Aa = "Trở về trang chủ", Ea = "Quay lại bước 1", ja = "Mẫu số hóa đơn (1-9)", Ua = "Lưu", Ma = "Số đơn/tháng", Ha = "Chọn tệp", Ka = "Chọn gói hóa đơn điện tử", Ba = "Chọn nhà cung cấp", qa = "Chọn gói chữ ký số", Va = "Chọn gói đăng ký", za = "Sản phẩm đã chọn", Qa = "Thiết lập", Ga = "Gói chữ ký số", Wa = "Bản quyền phần mềm hóa đơn điện tử", Xa = "Thông Tin", _a = "Xác Nhận Và Thanh Toán", Ja = "Gói Hóa Đơn", Ya = "Gói đăng ký", Za = "CQT quản lý", ec = "5 ký tự do CQT cấp cho loại hóa đơn máy tính tiền", tc = "Mã số thuế đơn vị", nc = "Điều khoản và Chính sách sử dụng", ic = "Thời gian còn lại", oc = "Tổng cộng", sc = "Tổng tiền", rc = "Thành tiền", ac = "Giao dịch đã được hủy. Quay về trang đăng ký.", cc = "Đơn vị tính", lc = "1. Thông tin đơn vị", uc = "đơn/tháng", dc = "Đơn giá", hc = "đơn/ tháng", fc = "Tải lên mặt sau CCCD", gc = "Tải lên tệp", pc = "Tải lên mặt trước CCCD", mc = "Tải logo lên", yc = "Chính sách sử dụng", vc = "Phường/Xã", bc = "Website", Sc = "Đăng ký hóa đơn điện tử", xc = "Năm phát hành (2 chữ số cuối)", $c = {
|
|
1477
1477
|
accountName: Zo,
|
|
1478
1478
|
accountNumber: es,
|
|
1479
1479
|
address: ts,
|
|
@@ -1511,8 +1511,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1511
1511
|
edit: Rs,
|
|
1512
1512
|
electronicInvoices: Fs,
|
|
1513
1513
|
email: Ds,
|
|
1514
|
-
enterIdCard:
|
|
1515
|
-
enterInvoiceSymbol:
|
|
1514
|
+
enterIdCard: As,
|
|
1515
|
+
enterInvoiceSymbol: Es,
|
|
1516
1516
|
enterPassport: js,
|
|
1517
1517
|
enterProviderName: Us,
|
|
1518
1518
|
enterTaxAuthorityCode: Ms,
|
|
@@ -1565,8 +1565,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1565
1565
|
invoiceSymbol: Rr,
|
|
1566
1566
|
invoiceTemplate: Fr,
|
|
1567
1567
|
invoiceTemplateTypes: Dr,
|
|
1568
|
-
invoiceTypeB:
|
|
1569
|
-
invoiceTypeD:
|
|
1568
|
+
invoiceTypeB: Ar,
|
|
1569
|
+
invoiceTypeD: Er,
|
|
1570
1570
|
invoiceTypeG: jr,
|
|
1571
1571
|
invoiceTypeH: Ur,
|
|
1572
1572
|
invoiceTypeL: Mr,
|
|
@@ -1622,8 +1622,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
|
|
|
1622
1622
|
quantity: Ra,
|
|
1623
1623
|
registrationFee: Fa,
|
|
1624
1624
|
required: Da,
|
|
1625
|
-
returnHome:
|
|
1626
|
-
returnToStep1:
|
|
1625
|
+
returnHome: Aa,
|
|
1626
|
+
returnToStep1: Ea,
|
|
1627
1627
|
sampleNumberTooltip: ja,
|
|
1628
1628
|
save: Ua,
|
|
1629
1629
|
searchUnits: Ma,
|
|
@@ -1677,7 +1677,7 @@ function Cc(o) {
|
|
|
1677
1677
|
function wc(o) {
|
|
1678
1678
|
return typeof o != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((t) => t.test(o));
|
|
1679
1679
|
}
|
|
1680
|
-
const
|
|
1680
|
+
const Ae = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
|
|
1681
1681
|
const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
1682
1682
|
path: "/"
|
|
1683
1683
|
}, i = encodeURIComponent(e);
|
|
@@ -1688,12 +1688,12 @@ const Ee = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
|
|
|
1688
1688
|
s += `; Max-Age=${Math.floor(r)}`;
|
|
1689
1689
|
}
|
|
1690
1690
|
if (n.domain) {
|
|
1691
|
-
if (!
|
|
1691
|
+
if (!Ae.test(n.domain))
|
|
1692
1692
|
throw new TypeError("option domain is invalid");
|
|
1693
1693
|
s += `; Domain=${n.domain}`;
|
|
1694
1694
|
}
|
|
1695
1695
|
if (n.path) {
|
|
1696
|
-
if (!
|
|
1696
|
+
if (!Ae.test(n.path))
|
|
1697
1697
|
throw new TypeError("option path is invalid");
|
|
1698
1698
|
s += `; Path=${n.path}`;
|
|
1699
1699
|
}
|
|
@@ -1720,7 +1720,7 @@ const Ee = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
|
|
|
1720
1720
|
throw new TypeError("option sameSite is invalid");
|
|
1721
1721
|
}
|
|
1722
1722
|
return n.partitioned && (s += "; Partitioned"), s;
|
|
1723
|
-
},
|
|
1723
|
+
}, Ee = {
|
|
1724
1724
|
create(o, e, t, n) {
|
|
1725
1725
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
1726
1726
|
path: "/",
|
|
@@ -1749,7 +1749,7 @@ var Oc = {
|
|
|
1749
1749
|
lookupCookie: e
|
|
1750
1750
|
} = o;
|
|
1751
1751
|
if (e && typeof document != "undefined")
|
|
1752
|
-
return
|
|
1752
|
+
return Ee.read(e) || void 0;
|
|
1753
1753
|
},
|
|
1754
1754
|
// Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
|
|
1755
1755
|
cacheUserLanguage(o, e) {
|
|
@@ -1759,7 +1759,7 @@ var Oc = {
|
|
|
1759
1759
|
cookieDomain: i,
|
|
1760
1760
|
cookieOptions: s
|
|
1761
1761
|
} = e;
|
|
1762
|
-
t && typeof document != "undefined" &&
|
|
1762
|
+
t && typeof document != "undefined" && Ee.create(t, o, n, i, s);
|
|
1763
1763
|
}
|
|
1764
1764
|
}, Lc = {
|
|
1765
1765
|
name: "querystring",
|
|
@@ -1900,7 +1900,7 @@ var Rc = {
|
|
|
1900
1900
|
const n = e || (typeof document != "undefined" ? document.documentElement : null);
|
|
1901
1901
|
return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
|
|
1902
1902
|
}
|
|
1903
|
-
},
|
|
1903
|
+
}, Ac = {
|
|
1904
1904
|
name: "path",
|
|
1905
1905
|
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
1906
1906
|
lookup(o) {
|
|
@@ -1912,7 +1912,7 @@ var Rc = {
|
|
|
1912
1912
|
const t = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
1913
1913
|
return Array.isArray(t) ? (i = t[typeof e == "number" ? e : 0]) == null ? void 0 : i.replace("/", "") : void 0;
|
|
1914
1914
|
}
|
|
1915
|
-
},
|
|
1915
|
+
}, Ec = {
|
|
1916
1916
|
name: "subdomain",
|
|
1917
1917
|
lookup(o) {
|
|
1918
1918
|
var i, s;
|
|
@@ -1953,7 +1953,7 @@ class We {
|
|
|
1953
1953
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
1954
1954
|
languageUtils: {}
|
|
1955
1955
|
}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1956
|
-
this.services = e, this.options = Cc(t, this.options || {}, jc()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Oc), this.addDetector(Lc), this.addDetector(Nc), this.addDetector(Rc), this.addDetector(Fc), this.addDetector(Dc), this.addDetector(
|
|
1956
|
+
this.services = e, this.options = Cc(t, this.options || {}, jc()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Oc), this.addDetector(Lc), this.addDetector(Nc), this.addDetector(Rc), this.addDetector(Fc), this.addDetector(Dc), this.addDetector(Ac), this.addDetector(Ec), this.addDetector(Ic);
|
|
1957
1957
|
}
|
|
1958
1958
|
addDetector(e) {
|
|
1959
1959
|
return this.detectors[e.name] = e, this;
|
|
@@ -2038,17 +2038,17 @@ function j(o) {
|
|
|
2038
2038
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2039
2039
|
}, j(o);
|
|
2040
2040
|
}
|
|
2041
|
-
var
|
|
2042
|
-
typeof global != "undefined" && global.fetch ?
|
|
2041
|
+
var A = typeof fetch == "function" ? fetch : void 0;
|
|
2042
|
+
typeof global != "undefined" && global.fetch ? A = global.fetch : typeof window != "undefined" && window.fetch && (A = window.fetch);
|
|
2043
2043
|
var X;
|
|
2044
2044
|
Xe() && (typeof global != "undefined" && global.XMLHttpRequest ? X = global.XMLHttpRequest : typeof window != "undefined" && window.XMLHttpRequest && (X = window.XMLHttpRequest));
|
|
2045
2045
|
var ie;
|
|
2046
2046
|
typeof ActiveXObject == "function" && (typeof global != "undefined" && global.ActiveXObject ? ie = global.ActiveXObject : typeof window != "undefined" && window.ActiveXObject && (ie = window.ActiveXObject));
|
|
2047
|
-
typeof
|
|
2048
|
-
if (!
|
|
2047
|
+
typeof A != "function" && (A = void 0);
|
|
2048
|
+
if (!A && !X && !ie)
|
|
2049
2049
|
try {
|
|
2050
2050
|
import("./browser-ponyfill-BxQPfTD2.js").then((o) => o.b).then(function(o) {
|
|
2051
|
-
|
|
2051
|
+
A = o.default;
|
|
2052
2052
|
}).catch(function() {
|
|
2053
2053
|
});
|
|
2054
2054
|
} catch (o) {
|
|
@@ -2081,7 +2081,7 @@ var he = function(e, t) {
|
|
|
2081
2081
|
return;
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
|
-
typeof fetch == "function" ? fetch(e, t).then(s).catch(n) :
|
|
2084
|
+
typeof fetch == "function" ? fetch(e, t).then(s).catch(n) : A(e, t).then(s).catch(n);
|
|
2085
2085
|
}, Be = !1, qc = function(e, t, n, i) {
|
|
2086
2086
|
e.queryStringParams && (t = he(t, e.queryStringParams));
|
|
2087
2087
|
var s = He({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
|
|
@@ -2124,7 +2124,7 @@ var he = function(e, t) {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
}, zc = function(e, t, n, i) {
|
|
2126
2126
|
if (typeof n == "function" && (i = n, n = void 0), i = i || function() {
|
|
2127
|
-
},
|
|
2127
|
+
}, A && t.indexOf("file:") !== 0)
|
|
2128
2128
|
return qc(e, t, n, i);
|
|
2129
2129
|
if (Xe() || typeof ActiveXObject == "function")
|
|
2130
2130
|
return Vc(e, t, n, i);
|
|
@@ -2340,7 +2340,7 @@ b.use(Ye).use(We).init({
|
|
|
2340
2340
|
function Jc(o) {
|
|
2341
2341
|
b.changeLanguage(o);
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function ol(o, e) {
|
|
2344
2344
|
return b.t(o, p({ returnObjects: !0 }, e));
|
|
2345
2345
|
}
|
|
2346
2346
|
function Yc(o = "dev") {
|
|
@@ -2398,15 +2398,19 @@ function Zc() {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return "dev";
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function sl() {
|
|
2402
2402
|
const o = Zc();
|
|
2403
2403
|
return Yc(o);
|
|
2404
2404
|
}
|
|
2405
|
+
const el = { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0, isActive: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0, isActive: !0 } }, tl = { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", link: "https://minvoice.vn", name: "fpt", onboarding: !0, sso: !0, isActive: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !0, isActive: !0 } }, nl = {
|
|
2406
|
+
bvb: el,
|
|
2407
|
+
ocb: tl
|
|
2408
|
+
};
|
|
2405
2409
|
let ce = null, le = null;
|
|
2406
|
-
function
|
|
2410
|
+
function rl(o) {
|
|
2407
2411
|
return se(this, null, function* () {
|
|
2408
2412
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !le) {
|
|
2409
|
-
const { InvoiceRegisterWidget: n } = yield import("./widget-
|
|
2413
|
+
const { InvoiceRegisterWidget: n } = yield import("./widget-Bgx-AQsK.js");
|
|
2410
2414
|
le = n;
|
|
2411
2415
|
}
|
|
2412
2416
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|
|
@@ -2425,10 +2429,10 @@ function il(o) {
|
|
|
2425
2429
|
), { destroy: t };
|
|
2426
2430
|
});
|
|
2427
2431
|
}
|
|
2428
|
-
function
|
|
2432
|
+
function al(o) {
|
|
2429
2433
|
return se(this, null, function* () {
|
|
2430
2434
|
if (o.mode && Ze(o.mode), o.language && et(o.language), !ce) {
|
|
2431
|
-
const { EContractWidget: n } = yield import("./widget-
|
|
2435
|
+
const { EContractWidget: n } = yield import("./widget-Bgx-AQsK.js");
|
|
2432
2436
|
ce = n;
|
|
2433
2437
|
}
|
|
2434
2438
|
const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
|
|
@@ -2448,18 +2452,23 @@ function et(o) {
|
|
|
2448
2452
|
e.rerender && e.rerender();
|
|
2449
2453
|
});
|
|
2450
2454
|
}
|
|
2451
|
-
function
|
|
2455
|
+
function cl(o) {
|
|
2452
2456
|
ge.add(o);
|
|
2453
2457
|
}
|
|
2454
|
-
function
|
|
2458
|
+
function ll(o) {
|
|
2455
2459
|
ge.delete(o);
|
|
2456
2460
|
}
|
|
2461
|
+
function ul() {
|
|
2462
|
+
return nl;
|
|
2463
|
+
}
|
|
2457
2464
|
export {
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
sl as
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
+
al as a,
|
|
2466
|
+
et as b,
|
|
2467
|
+
ul as c,
|
|
2468
|
+
sl as g,
|
|
2469
|
+
rl as i,
|
|
2470
|
+
cl as r,
|
|
2471
|
+
nl as s,
|
|
2472
|
+
ol as t,
|
|
2473
|
+
ll as u
|
|
2465
2474
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { i, a,
|
|
1
|
+
import { c as i, i as a, a as s, r as g, b as r, u as n } from "./index-D-cq4tAm.js";
|
|
2
2
|
export {
|
|
3
|
-
i as
|
|
4
|
-
a as
|
|
5
|
-
s as
|
|
3
|
+
i as getSettings,
|
|
4
|
+
a as init,
|
|
5
|
+
s as initEContract,
|
|
6
|
+
g as registerWidget,
|
|
6
7
|
r as setWidgetLanguage,
|
|
7
|
-
|
|
8
|
+
n as unregisterWidget
|
|
8
9
|
};
|