@feedmepos/mf-order-setting 0.0.56 → 0.0.57
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/{KioskDevicesView-CMKNjgWx.js → KioskDevicesView-CVnUSyRk.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-B1sNvlUC.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-D-XcAx8n.js} +2 -2
- package/dist/KioskSettingView-CyAxzbP1.js +744 -0
- package/dist/{KioskView-Cl6eCUYX.js → KioskView-DYESsVun.js} +60 -57
- package/dist/{OrderSettingsView-Dj0Nd22Z.js → OrderSettingsView-BKkoSdAX.js} +4 -4
- package/dist/{app-DpOjaFJw.js → app-DaX8cX_Q.js} +126 -118
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CuRr-wlf.js → dayjs.min-puCJYept.js} +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +8 -0
- package/dist/frontend/mf-order/src/main.d.ts +8 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-Bj0bCGTm.js → index-CtMw6yZU.js} +1 -1
- package/dist/{menu.dto-DAh1J2ES.js → menu.dto-Csu6ZBea.js} +2 -0
- package/dist/package/entity/food-court/order.do.d.ts +4 -24
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +1 -12341
- package/dist/package/entity/order/order.do.d.ts +1 -6357
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +5 -0
- package/dist/package/entity/websocket/websocket.dto.d.ts +12 -0
- package/package.json +1 -1
- package/src/locales/en-US.json +2 -0
- package/src/locales/ja-JP.json +11 -9
- package/src/locales/th-TH.json +2 -0
- package/src/locales/zh-CN.json +2 -0
- package/src/main.ts +5 -5
- package/src/modules/order-setting/kiosk/interface.ts +19 -17
- package/src/stores/order-setting/mapper.ts +66 -63
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +19 -1
- package/src/views/kiosk/settings/KioskSettingView.vue +68 -48
- package/src/views/order-settings/OrderSettingsView.vue +1 -1
- package/src/views/order-settings/drive-thru/DriveThruSetting.vue +4 -4
- package/src/views/order-settings/servicecharge/ServiceChargeRule.vue +1 -5
- package/dist/KioskSettingView-D1tvuPDv.js +0 -722
|
@@ -96,6 +96,8 @@ const yi = {
|
|
|
96
96
|
deliveryZone: "Delivery Zone",
|
|
97
97
|
deviceBinding: "Device Binding",
|
|
98
98
|
deviceDetails: "Device Details",
|
|
99
|
+
otaChannel: "OTA channel",
|
|
100
|
+
otaChannelHint: "Optional. Leave blank to use the default OTA feed.",
|
|
99
101
|
dineIn: "Dine In",
|
|
100
102
|
dineInCanTakeaway: "Allow Takeaway",
|
|
101
103
|
driveThru: "Drive Thru",
|
|
@@ -468,6 +470,8 @@ const yi = {
|
|
|
468
470
|
deliveryZone: "配送区域",
|
|
469
471
|
deviceBinding: "设备绑定",
|
|
470
472
|
deviceDetails: "设备详情",
|
|
473
|
+
otaChannel: "OTA 渠道",
|
|
474
|
+
otaChannelHint: "可选。留空将使用默认的 OTA 源。",
|
|
471
475
|
dineIn: "堂食",
|
|
472
476
|
dineInCanTakeaway: "允许外带",
|
|
473
477
|
driveThru: "得来速",
|
|
@@ -841,6 +845,8 @@ const yi = {
|
|
|
841
845
|
deliveryZone: "โซนการจัดส่ง",
|
|
842
846
|
deviceBinding: "การผูกอุปกรณ์",
|
|
843
847
|
deviceDetails: "รายละเอียดอุปกรณ์",
|
|
848
|
+
otaChannel: "ช่อง OTA",
|
|
849
|
+
otaChannelHint: "ไม่บังคับ เว้นว่างเพื่อใช้ฟีด OTA เริ่มต้น",
|
|
844
850
|
dineIn: "รับประทานอาหารที่ร้าน",
|
|
845
851
|
dineInCanTakeaway: "อนุญาตให้นำกลับบ้าน",
|
|
846
852
|
driveThru: "ไดรฟ์ทรู",
|
|
@@ -1207,6 +1213,8 @@ const yi = {
|
|
|
1207
1213
|
deliveryZone: "配達エリア",
|
|
1208
1214
|
deviceBinding: "デバイス紐付け",
|
|
1209
1215
|
deviceDetails: "デバイス詳細",
|
|
1216
|
+
otaChannel: "OTAチャネル",
|
|
1217
|
+
otaChannelHint: "任意。空欄の場合はデフォルトのOTAフィードを使用します。",
|
|
1210
1218
|
dineIn: "店内飲食",
|
|
1211
1219
|
dineInCanTakeaway: "テイクアウト許可",
|
|
1212
1220
|
driveThru: "ドライブスルー",
|
|
@@ -1475,7 +1483,7 @@ const yi = {
|
|
|
1475
1483
|
promotion: "プロモーション",
|
|
1476
1484
|
voucher: "バウチャー"
|
|
1477
1485
|
}
|
|
1478
|
-
},
|
|
1486
|
+
}, Ti = {
|
|
1479
1487
|
title: "メニュー",
|
|
1480
1488
|
common: {
|
|
1481
1489
|
actions: {
|
|
@@ -2889,9 +2897,9 @@ const yi = {
|
|
|
2889
2897
|
tax_setting: {
|
|
2890
2898
|
title: "税金設定"
|
|
2891
2899
|
}
|
|
2892
|
-
},
|
|
2900
|
+
}, ki = {
|
|
2893
2901
|
order: wi,
|
|
2894
|
-
menu:
|
|
2902
|
+
menu: Ti
|
|
2895
2903
|
}, tt = ui(null), on = () => tt.value;
|
|
2896
2904
|
function Ei(t) {
|
|
2897
2905
|
tt.value || (tt.value = t);
|
|
@@ -2923,7 +2931,7 @@ function Ac({
|
|
|
2923
2931
|
}
|
|
2924
2932
|
return n.map((s) => ({ lat: s.lat(), lng: s.lng() }));
|
|
2925
2933
|
}
|
|
2926
|
-
function
|
|
2934
|
+
function Cc(t) {
|
|
2927
2935
|
if (!t.length) return;
|
|
2928
2936
|
const { lat: e, lng: n } = Pt(t[0]), { maxLng: i, minLng: r, maxLat: s, minLat: a } = t.reduce((c, o) => {
|
|
2929
2937
|
const { lng: l, lat: u } = Pt(o);
|
|
@@ -3159,11 +3167,11 @@ class Ai extends Error {
|
|
|
3159
3167
|
super(...arguments), this.name = "DecodeBase64StringError";
|
|
3160
3168
|
}
|
|
3161
3169
|
}
|
|
3162
|
-
const
|
|
3170
|
+
const Ci = function(t) {
|
|
3163
3171
|
const e = cn(t);
|
|
3164
3172
|
return ln.encodeByteArray(e, !0);
|
|
3165
3173
|
}, Me = function(t) {
|
|
3166
|
-
return
|
|
3174
|
+
return Ci(t).replace(/\./g, "");
|
|
3167
3175
|
}, un = function(t) {
|
|
3168
3176
|
try {
|
|
3169
3177
|
return ln.decodeString(t, !0);
|
|
@@ -3188,7 +3196,7 @@ const Ri = function(t) {
|
|
|
3188
3196
|
* See the License for the specific language governing permissions and
|
|
3189
3197
|
* limitations under the License.
|
|
3190
3198
|
*/
|
|
3191
|
-
function
|
|
3199
|
+
function Ri() {
|
|
3192
3200
|
if (typeof self < "u")
|
|
3193
3201
|
return self;
|
|
3194
3202
|
if (typeof window < "u")
|
|
@@ -3213,7 +3221,7 @@ function Ci() {
|
|
|
3213
3221
|
* See the License for the specific language governing permissions and
|
|
3214
3222
|
* limitations under the License.
|
|
3215
3223
|
*/
|
|
3216
|
-
const Di = () =>
|
|
3224
|
+
const Di = () => Ri().__FIREBASE_DEFAULTS__, Oi = () => {
|
|
3217
3225
|
if (typeof process > "u" || typeof At > "u")
|
|
3218
3226
|
return;
|
|
3219
3227
|
const t = At.__FIREBASE_DEFAULTS__;
|
|
@@ -3452,7 +3460,7 @@ function xe(t, e) {
|
|
|
3452
3460
|
if (!i.includes(r))
|
|
3453
3461
|
return !1;
|
|
3454
3462
|
const s = t[r], a = e[r];
|
|
3455
|
-
if (
|
|
3463
|
+
if (Ct(s) && Ct(a)) {
|
|
3456
3464
|
if (!xe(s, a))
|
|
3457
3465
|
return !1;
|
|
3458
3466
|
} else if (s !== a)
|
|
@@ -3463,7 +3471,7 @@ function xe(t, e) {
|
|
|
3463
3471
|
return !1;
|
|
3464
3472
|
return !0;
|
|
3465
3473
|
}
|
|
3466
|
-
function
|
|
3474
|
+
function Ct(t) {
|
|
3467
3475
|
return t !== null && typeof t == "object";
|
|
3468
3476
|
}
|
|
3469
3477
|
/**
|
|
@@ -3604,7 +3612,7 @@ function ze() {
|
|
|
3604
3612
|
* See the License for the specific language governing permissions and
|
|
3605
3613
|
* limitations under the License.
|
|
3606
3614
|
*/
|
|
3607
|
-
function
|
|
3615
|
+
function C(t) {
|
|
3608
3616
|
return t && t._delegate ? t._delegate : t;
|
|
3609
3617
|
}
|
|
3610
3618
|
class ee {
|
|
@@ -3976,9 +3984,9 @@ class fn {
|
|
|
3976
3984
|
}
|
|
3977
3985
|
}
|
|
3978
3986
|
const sr = (t, e) => e.some((n) => t instanceof n);
|
|
3979
|
-
let
|
|
3987
|
+
let Rt, Dt;
|
|
3980
3988
|
function ar() {
|
|
3981
|
-
return
|
|
3989
|
+
return Rt || (Rt = [
|
|
3982
3990
|
IDBDatabase,
|
|
3983
3991
|
IDBObjectStore,
|
|
3984
3992
|
IDBIndex,
|
|
@@ -4163,7 +4171,7 @@ const rt = "@firebase/app", Nt = "0.10.13";
|
|
|
4163
4171
|
* See the License for the specific language governing permissions and
|
|
4164
4172
|
* limitations under the License.
|
|
4165
4173
|
*/
|
|
4166
|
-
const L = new fn("@firebase/app"), vr = "@firebase/app-compat", _r = "@firebase/analytics-compat", br = "@firebase/analytics", Ir = "@firebase/app-check-compat", Sr = "@firebase/app-check", wr = "@firebase/auth",
|
|
4174
|
+
const L = new fn("@firebase/app"), vr = "@firebase/app-compat", _r = "@firebase/analytics-compat", br = "@firebase/analytics", Ir = "@firebase/app-check-compat", Sr = "@firebase/app-check", wr = "@firebase/auth", Tr = "@firebase/auth-compat", kr = "@firebase/database", Er = "@firebase/data-connect", Pr = "@firebase/database-compat", Ar = "@firebase/functions", Cr = "@firebase/functions-compat", Rr = "@firebase/installations", Dr = "@firebase/installations-compat", Or = "@firebase/messaging", Nr = "@firebase/messaging-compat", Mr = "@firebase/performance", xr = "@firebase/performance-compat", Lr = "@firebase/remote-config", Ur = "@firebase/remote-config-compat", Fr = "@firebase/storage", Br = "@firebase/storage-compat", Hr = "@firebase/firestore", Vr = "@firebase/vertexai-preview", $r = "@firebase/firestore-compat", jr = "firebase", Wr = "10.14.1";
|
|
4167
4175
|
/**
|
|
4168
4176
|
* @license
|
|
4169
4177
|
* Copyright 2019 Google LLC
|
|
@@ -4188,13 +4196,13 @@ const st = "[DEFAULT]", qr = {
|
|
|
4188
4196
|
[Sr]: "fire-app-check",
|
|
4189
4197
|
[Ir]: "fire-app-check-compat",
|
|
4190
4198
|
[wr]: "fire-auth",
|
|
4191
|
-
[
|
|
4192
|
-
[
|
|
4199
|
+
[Tr]: "fire-auth-compat",
|
|
4200
|
+
[kr]: "fire-rtdb",
|
|
4193
4201
|
[Er]: "fire-data-connect",
|
|
4194
4202
|
[Pr]: "fire-rtdb-compat",
|
|
4195
4203
|
[Ar]: "fire-fn",
|
|
4196
|
-
[
|
|
4197
|
-
[
|
|
4204
|
+
[Cr]: "fire-fn-compat",
|
|
4205
|
+
[Rr]: "fire-iid",
|
|
4198
4206
|
[Dr]: "fire-iid-compat",
|
|
4199
4207
|
[Or]: "fire-fcm",
|
|
4200
4208
|
[Nr]: "fire-fcm-compat",
|
|
@@ -4704,7 +4712,7 @@ const Le = new fn("@firebase/auth");
|
|
|
4704
4712
|
function cs(t, ...e) {
|
|
4705
4713
|
Le.logLevel <= p.WARN && Le.warn(`Auth (${le}): ${t}`, ...e);
|
|
4706
4714
|
}
|
|
4707
|
-
function
|
|
4715
|
+
function Re(t, ...e) {
|
|
4708
4716
|
Le.logLevel <= p.ERROR && Le.error(`Auth (${le}): ${t}`, ...e);
|
|
4709
4717
|
}
|
|
4710
4718
|
/**
|
|
@@ -4751,7 +4759,7 @@ function d(t, e, ...n) {
|
|
|
4751
4759
|
}
|
|
4752
4760
|
function N(t) {
|
|
4753
4761
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
4754
|
-
throw
|
|
4762
|
+
throw Re(e), new Error(e);
|
|
4755
4763
|
}
|
|
4756
4764
|
function F(t, e) {
|
|
4757
4765
|
t || N(e);
|
|
@@ -5030,7 +5038,7 @@ function Ve(t, e) {
|
|
|
5030
5038
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5031
5039
|
}
|
|
5032
5040
|
async function ue(t, e, n, i, r = {}) {
|
|
5033
|
-
return
|
|
5041
|
+
return Tn(t, r, async () => {
|
|
5034
5042
|
let s = {}, a = {};
|
|
5035
5043
|
i && (e === "GET" ? a = i : s = {
|
|
5036
5044
|
body: JSON.stringify(i)
|
|
@@ -5050,7 +5058,7 @@ async function ue(t, e, n, i, r = {}) {
|
|
|
5050
5058
|
return Fi() || (l.referrerPolicy = "no-referrer"), wn.fetch()(En(t, t.config.apiHost, n, c), l);
|
|
5051
5059
|
});
|
|
5052
5060
|
}
|
|
5053
|
-
async function
|
|
5061
|
+
async function Tn(t, e, n) {
|
|
5054
5062
|
t._canInitEmulator = !1;
|
|
5055
5063
|
const i = Object.assign(Object.assign({}, hs), e);
|
|
5056
5064
|
try {
|
|
@@ -5061,17 +5069,17 @@ async function kn(t, e, n) {
|
|
|
5061
5069
|
r.clearNetworkTimeout();
|
|
5062
5070
|
const a = await s.json();
|
|
5063
5071
|
if ("needConfirmation" in a)
|
|
5064
|
-
throw
|
|
5072
|
+
throw ke(t, "account-exists-with-different-credential", a);
|
|
5065
5073
|
if (s.ok && !("errorMessage" in a))
|
|
5066
5074
|
return a;
|
|
5067
5075
|
{
|
|
5068
5076
|
const c = s.ok ? a.errorMessage : a.error.message, [o, l] = c.split(" : ");
|
|
5069
5077
|
if (o === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
5070
|
-
throw
|
|
5078
|
+
throw ke(t, "credential-already-in-use", a);
|
|
5071
5079
|
if (o === "EMAIL_EXISTS")
|
|
5072
|
-
throw
|
|
5080
|
+
throw ke(t, "email-already-in-use", a);
|
|
5073
5081
|
if (o === "USER_DISABLED")
|
|
5074
|
-
throw
|
|
5082
|
+
throw ke(t, "user-disabled", a);
|
|
5075
5083
|
const u = i[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5076
5084
|
if (l)
|
|
5077
5085
|
throw Sn(t, u, l);
|
|
@@ -5083,7 +5091,7 @@ async function kn(t, e, n) {
|
|
|
5083
5091
|
U(t, "network-request-failed", { message: String(r) });
|
|
5084
5092
|
}
|
|
5085
5093
|
}
|
|
5086
|
-
async function
|
|
5094
|
+
async function kn(t, e, n, i, r = {}) {
|
|
5087
5095
|
const s = await ue(t, e, n, i, r);
|
|
5088
5096
|
return "mfaPendingCredential" in s && U(t, "multi-factor-auth-required", {
|
|
5089
5097
|
_serverResponse: s
|
|
@@ -5107,7 +5115,7 @@ class fs {
|
|
|
5107
5115
|
clearTimeout(this.timer);
|
|
5108
5116
|
}
|
|
5109
5117
|
}
|
|
5110
|
-
function
|
|
5118
|
+
function ke(t, e, n) {
|
|
5111
5119
|
const i = {
|
|
5112
5120
|
appName: t.name
|
|
5113
5121
|
};
|
|
@@ -5163,7 +5171,7 @@ function pe(t) {
|
|
|
5163
5171
|
}
|
|
5164
5172
|
}
|
|
5165
5173
|
async function gs(t, e = !1) {
|
|
5166
|
-
const n =
|
|
5174
|
+
const n = C(t), i = await n.getIdToken(e), r = vt(i);
|
|
5167
5175
|
d(
|
|
5168
5176
|
r && r.exp && r.auth_time && r.iat,
|
|
5169
5177
|
n.auth,
|
|
@@ -5187,12 +5195,12 @@ function Xe(t) {
|
|
|
5187
5195
|
function vt(t) {
|
|
5188
5196
|
const [e, n, i] = t.split(".");
|
|
5189
5197
|
if (e === void 0 || n === void 0 || i === void 0)
|
|
5190
|
-
return
|
|
5198
|
+
return Re("JWT malformed, contained fewer than 3 sections"), null;
|
|
5191
5199
|
try {
|
|
5192
5200
|
const r = un(n);
|
|
5193
|
-
return r ? JSON.parse(r) : (
|
|
5201
|
+
return r ? JSON.parse(r) : (Re("Failed to decode base64 JWT payload"), null);
|
|
5194
5202
|
} catch (r) {
|
|
5195
|
-
return
|
|
5203
|
+
return Re("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
|
|
5196
5204
|
}
|
|
5197
5205
|
}
|
|
5198
5206
|
function Bt(t) {
|
|
@@ -5376,7 +5384,7 @@ async function Ue(t) {
|
|
|
5376
5384
|
Object.assign(t, h);
|
|
5377
5385
|
}
|
|
5378
5386
|
async function _s(t) {
|
|
5379
|
-
const e =
|
|
5387
|
+
const e = C(t);
|
|
5380
5388
|
await Ue(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5381
5389
|
}
|
|
5382
5390
|
function bs(t, e) {
|
|
@@ -5412,7 +5420,7 @@ function An(t) {
|
|
|
5412
5420
|
* limitations under the License.
|
|
5413
5421
|
*/
|
|
5414
5422
|
async function Is(t, e) {
|
|
5415
|
-
const n = await
|
|
5423
|
+
const n = await Tn(t, {}, async () => {
|
|
5416
5424
|
const i = be({
|
|
5417
5425
|
grant_type: "refresh_token",
|
|
5418
5426
|
refresh_token: e
|
|
@@ -5633,14 +5641,14 @@ class M {
|
|
|
5633
5641
|
}
|
|
5634
5642
|
static _fromJSON(e, n) {
|
|
5635
5643
|
var i, r, s, a, c, o, l, u;
|
|
5636
|
-
const h = (i = n.displayName) !== null && i !== void 0 ? i : void 0, f = (r = n.email) !== null && r !== void 0 ? r : void 0, y = (s = n.phoneNumber) !== null && s !== void 0 ? s : void 0, b = (a = n.photoURL) !== null && a !== void 0 ? a : void 0,
|
|
5644
|
+
const h = (i = n.displayName) !== null && i !== void 0 ? i : void 0, f = (r = n.email) !== null && r !== void 0 ? r : void 0, y = (s = n.phoneNumber) !== null && s !== void 0 ? s : void 0, b = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, R = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, v = (o = n._redirectEventId) !== null && o !== void 0 ? o : void 0, D = (l = n.createdAt) !== null && l !== void 0 ? l : void 0, k = (u = n.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: w, emailVerified: _, isAnonymous: J, providerData: X, stsTokenManager: Te } = n;
|
|
5637
5645
|
d(
|
|
5638
|
-
w &&
|
|
5646
|
+
w && Te,
|
|
5639
5647
|
e,
|
|
5640
5648
|
"internal-error"
|
|
5641
5649
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5642
5650
|
);
|
|
5643
|
-
const de = se.fromJSON(this.name,
|
|
5651
|
+
const de = se.fromJSON(this.name, Te);
|
|
5644
5652
|
d(
|
|
5645
5653
|
typeof w == "string",
|
|
5646
5654
|
e,
|
|
@@ -5656,7 +5664,7 @@ class M {
|
|
|
5656
5664
|
e,
|
|
5657
5665
|
"internal-error"
|
|
5658
5666
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5659
|
-
), H(y, e.name), H(b, e.name), H(
|
|
5667
|
+
), H(y, e.name), H(b, e.name), H(R, e.name), H(v, e.name), H(D, e.name), H(k, e.name);
|
|
5660
5668
|
const qe = new M({
|
|
5661
5669
|
uid: w,
|
|
5662
5670
|
auth: e,
|
|
@@ -5666,10 +5674,10 @@ class M {
|
|
|
5666
5674
|
isAnonymous: J,
|
|
5667
5675
|
photoURL: b,
|
|
5668
5676
|
phoneNumber: y,
|
|
5669
|
-
tenantId:
|
|
5677
|
+
tenantId: R,
|
|
5670
5678
|
stsTokenManager: de,
|
|
5671
5679
|
createdAt: D,
|
|
5672
|
-
lastLoginAt:
|
|
5680
|
+
lastLoginAt: k
|
|
5673
5681
|
});
|
|
5674
5682
|
return X && Array.isArray(X) && (qe.providerData = X.map((li) => Object.assign({}, li))), v && (qe._redirectEventId = v), qe;
|
|
5675
5683
|
}
|
|
@@ -5761,7 +5769,7 @@ function x(t) {
|
|
|
5761
5769
|
* See the License for the specific language governing permissions and
|
|
5762
5770
|
* limitations under the License.
|
|
5763
5771
|
*/
|
|
5764
|
-
class
|
|
5772
|
+
class Cn {
|
|
5765
5773
|
constructor() {
|
|
5766
5774
|
this.type = "NONE", this.storage = {};
|
|
5767
5775
|
}
|
|
@@ -5783,8 +5791,8 @@ class Rn {
|
|
|
5783
5791
|
_removeListener(e, n) {
|
|
5784
5792
|
}
|
|
5785
5793
|
}
|
|
5786
|
-
|
|
5787
|
-
const Vt =
|
|
5794
|
+
Cn.type = "NONE";
|
|
5795
|
+
const Vt = Cn;
|
|
5788
5796
|
/**
|
|
5789
5797
|
* @license
|
|
5790
5798
|
* Copyright 2019 Google LLC
|
|
@@ -5889,7 +5897,7 @@ function $t(t) {
|
|
|
5889
5897
|
return "IE";
|
|
5890
5898
|
if (e.includes("edge/"))
|
|
5891
5899
|
return "Edge";
|
|
5892
|
-
if (
|
|
5900
|
+
if (Rn(e))
|
|
5893
5901
|
return "Firefox";
|
|
5894
5902
|
if (e.includes("silk/"))
|
|
5895
5903
|
return "Silk";
|
|
@@ -5910,7 +5918,7 @@ function $t(t) {
|
|
|
5910
5918
|
}
|
|
5911
5919
|
return "Other";
|
|
5912
5920
|
}
|
|
5913
|
-
function
|
|
5921
|
+
function Rn(t = S()) {
|
|
5914
5922
|
return /firefox\//i.test(t);
|
|
5915
5923
|
}
|
|
5916
5924
|
function Dn(t = S()) {
|
|
@@ -5939,7 +5947,7 @@ function ws(t = S()) {
|
|
|
5939
5947
|
var e;
|
|
5940
5948
|
return _t(t) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
5941
5949
|
}
|
|
5942
|
-
function
|
|
5950
|
+
function Ts() {
|
|
5943
5951
|
return Vi() && document.documentMode === 10;
|
|
5944
5952
|
}
|
|
5945
5953
|
function Un(t = S()) {
|
|
@@ -5992,7 +6000,7 @@ function Fn(t, e = []) {
|
|
|
5992
6000
|
* See the License for the specific language governing permissions and
|
|
5993
6001
|
* limitations under the License.
|
|
5994
6002
|
*/
|
|
5995
|
-
class
|
|
6003
|
+
class ks {
|
|
5996
6004
|
constructor(e) {
|
|
5997
6005
|
this.auth = e, this.queue = [];
|
|
5998
6006
|
}
|
|
@@ -6154,9 +6162,9 @@ class As {
|
|
|
6154
6162
|
* See the License for the specific language governing permissions and
|
|
6155
6163
|
* limitations under the License.
|
|
6156
6164
|
*/
|
|
6157
|
-
class
|
|
6165
|
+
class Cs {
|
|
6158
6166
|
constructor(e, n, i, r) {
|
|
6159
|
-
this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new jt(this), this.idTokenSubscription = new jt(this), this.beforeStateQueue = new
|
|
6167
|
+
this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new jt(this), this.idTokenSubscription = new jt(this), this.beforeStateQueue = new ks(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = In, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
|
|
6160
6168
|
}
|
|
6161
6169
|
_initializeWithPersistence(e, n) {
|
|
6162
6170
|
return n && (this._popupRedirectResolver = x(n)), this._initializationPromise = this.queue(async () => {
|
|
@@ -6258,7 +6266,7 @@ class Rs {
|
|
|
6258
6266
|
async updateCurrentUser(e) {
|
|
6259
6267
|
if (O(this.app))
|
|
6260
6268
|
return Promise.reject(Q(this));
|
|
6261
|
-
const n = e ?
|
|
6269
|
+
const n = e ? C(e) : null;
|
|
6262
6270
|
return n && d(
|
|
6263
6271
|
n.auth.config.apiKey === this.config.apiKey,
|
|
6264
6272
|
this,
|
|
@@ -6488,7 +6496,7 @@ class Rs {
|
|
|
6488
6496
|
}
|
|
6489
6497
|
}
|
|
6490
6498
|
function $e(t) {
|
|
6491
|
-
return
|
|
6499
|
+
return C(t);
|
|
6492
6500
|
}
|
|
6493
6501
|
class jt {
|
|
6494
6502
|
constructor(e) {
|
|
@@ -6527,7 +6535,7 @@ let bt = {
|
|
|
6527
6535
|
recaptchaEnterpriseScript: "",
|
|
6528
6536
|
gapiScript: ""
|
|
6529
6537
|
};
|
|
6530
|
-
function
|
|
6538
|
+
function Rs(t) {
|
|
6531
6539
|
bt = t;
|
|
6532
6540
|
}
|
|
6533
6541
|
function Ds(t) {
|
|
@@ -6683,7 +6691,7 @@ class Hn {
|
|
|
6683
6691
|
* limitations under the License.
|
|
6684
6692
|
*/
|
|
6685
6693
|
async function oe(t, e) {
|
|
6686
|
-
return
|
|
6694
|
+
return kn(t, "POST", "/v1/accounts:signInWithIdp", Ve(t, e));
|
|
6687
6695
|
}
|
|
6688
6696
|
/**
|
|
6689
6697
|
* @license
|
|
@@ -7315,7 +7323,7 @@ async function $s(t, e, n = !1) {
|
|
|
7315
7323
|
* limitations under the License.
|
|
7316
7324
|
*/
|
|
7317
7325
|
async function js(t, e) {
|
|
7318
|
-
return
|
|
7326
|
+
return kn(t, "POST", "/v1/accounts:signInWithCustomToken", Ve(t, e));
|
|
7319
7327
|
}
|
|
7320
7328
|
/**
|
|
7321
7329
|
* @license
|
|
@@ -7333,7 +7341,7 @@ async function js(t, e) {
|
|
|
7333
7341
|
* See the License for the specific language governing permissions and
|
|
7334
7342
|
* limitations under the License.
|
|
7335
7343
|
*/
|
|
7336
|
-
async function
|
|
7344
|
+
async function Rc(t, e) {
|
|
7337
7345
|
if (O(t.app))
|
|
7338
7346
|
return Promise.reject(Q(t));
|
|
7339
7347
|
const n = $e(t), i = await js(n, {
|
|
@@ -7343,13 +7351,13 @@ async function Cc(t, e) {
|
|
|
7343
7351
|
return await n._updateCurrentUser(r.user), r;
|
|
7344
7352
|
}
|
|
7345
7353
|
function Ws(t, e, n, i) {
|
|
7346
|
-
return
|
|
7354
|
+
return C(t).onIdTokenChanged(e, n, i);
|
|
7347
7355
|
}
|
|
7348
7356
|
function qs(t, e, n) {
|
|
7349
|
-
return
|
|
7357
|
+
return C(t).beforeAuthStateChanged(e, n);
|
|
7350
7358
|
}
|
|
7351
7359
|
function Dc(t) {
|
|
7352
|
-
return
|
|
7360
|
+
return C(t).signOut();
|
|
7353
7361
|
}
|
|
7354
7362
|
const Be = "__sak";
|
|
7355
7363
|
/**
|
|
@@ -7437,7 +7445,7 @@ class Wn extends jn {
|
|
|
7437
7445
|
const a = this.storage.getItem(i);
|
|
7438
7446
|
!n && this.localCache[i] === a || this.notifyListeners(i, a);
|
|
7439
7447
|
}, s = this.storage.getItem(i);
|
|
7440
|
-
|
|
7448
|
+
Ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Ks) : r();
|
|
7441
7449
|
}
|
|
7442
7450
|
notifyListeners(e, n) {
|
|
7443
7451
|
this.localCache[e] = n;
|
|
@@ -8489,8 +8497,8 @@ async function Sa(t, e = {}) {
|
|
|
8489
8497
|
* See the License for the specific language governing permissions and
|
|
8490
8498
|
* limitations under the License.
|
|
8491
8499
|
*/
|
|
8492
|
-
const wa = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,
|
|
8493
|
-
async function
|
|
8500
|
+
const wa = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ta = /^https?/;
|
|
8501
|
+
async function ka(t) {
|
|
8494
8502
|
if (t.config.emulator)
|
|
8495
8503
|
return;
|
|
8496
8504
|
const { authorizedDomains: e } = await Sa(t);
|
|
@@ -8512,7 +8520,7 @@ function Ea(t) {
|
|
|
8512
8520
|
const a = new URL(t);
|
|
8513
8521
|
return a.hostname === "" && i === "" ? n === "chrome-extension:" && t.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : n === "chrome-extension:" && a.hostname === i;
|
|
8514
8522
|
}
|
|
8515
|
-
if (!
|
|
8523
|
+
if (!Ta.test(n))
|
|
8516
8524
|
return !1;
|
|
8517
8525
|
if (wa.test(t))
|
|
8518
8526
|
return i === t;
|
|
@@ -8582,7 +8590,7 @@ function Aa(t) {
|
|
|
8582
8590
|
});
|
|
8583
8591
|
}
|
|
8584
8592
|
let Ne = null;
|
|
8585
|
-
function
|
|
8593
|
+
function Ca(t) {
|
|
8586
8594
|
return Ne = Ne || Aa(t), Ne;
|
|
8587
8595
|
}
|
|
8588
8596
|
/**
|
|
@@ -8601,7 +8609,7 @@ function Ra(t) {
|
|
|
8601
8609
|
* See the License for the specific language governing permissions and
|
|
8602
8610
|
* limitations under the License.
|
|
8603
8611
|
*/
|
|
8604
|
-
const
|
|
8612
|
+
const Ra = new Ie(5e3, 15e3), Da = "__/auth/iframe", Oa = "emulator/auth/iframe", Na = {
|
|
8605
8613
|
style: {
|
|
8606
8614
|
position: "absolute",
|
|
8607
8615
|
top: "-100px",
|
|
@@ -8634,7 +8642,7 @@ function xa(t) {
|
|
|
8634
8642
|
return s.length && (i.fw = s.join(",")), `${n}?${be(i).slice(1)}`;
|
|
8635
8643
|
}
|
|
8636
8644
|
async function La(t) {
|
|
8637
|
-
const e = await
|
|
8645
|
+
const e = await Ca(t), n = A().gapi;
|
|
8638
8646
|
return d(
|
|
8639
8647
|
n,
|
|
8640
8648
|
t,
|
|
@@ -8657,7 +8665,7 @@ async function La(t) {
|
|
|
8657
8665
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
8658
8666
|
), c = A().setTimeout(() => {
|
|
8659
8667
|
s(a);
|
|
8660
|
-
},
|
|
8668
|
+
}, Ra.get());
|
|
8661
8669
|
function o() {
|
|
8662
8670
|
A().clearTimeout(c), r(i);
|
|
8663
8671
|
}
|
|
@@ -8709,7 +8717,7 @@ function $a(t, e, n, i = Fa, r = Ba) {
|
|
|
8709
8717
|
top: s,
|
|
8710
8718
|
left: a
|
|
8711
8719
|
}), l = S().toLowerCase();
|
|
8712
|
-
n && (c = On(l) ? Ha : n),
|
|
8720
|
+
n && (c = On(l) ? Ha : n), Rn(l) && (e = e || Va, o.scrollbars = "yes");
|
|
8713
8721
|
const u = Object.entries(o).reduce((f, [y, b]) => `${f}${y}=${b},`, "");
|
|
8714
8722
|
if (ws(l) && c !== "_self")
|
|
8715
8723
|
return ja(e || "", c), new Jt(null);
|
|
@@ -8859,7 +8867,7 @@ class Ga {
|
|
|
8859
8867
|
}
|
|
8860
8868
|
_originValidation(e) {
|
|
8861
8869
|
const n = e._key();
|
|
8862
|
-
return this.originValidationPromises[n] || (this.originValidationPromises[n] =
|
|
8870
|
+
return this.originValidationPromises[n] || (this.originValidationPromises[n] = ka(e)), this.originValidationPromises[n];
|
|
8863
8871
|
}
|
|
8864
8872
|
get _shouldInitProactively() {
|
|
8865
8873
|
return Un() || Dn() || _t();
|
|
@@ -8964,7 +8972,7 @@ function Ya(t) {
|
|
|
8964
8972
|
tokenApiHost: "securetoken.googleapis.com",
|
|
8965
8973
|
apiScheme: "https",
|
|
8966
8974
|
sdkClientVersion: Fn(t)
|
|
8967
|
-
}, l = new
|
|
8975
|
+
}, l = new Cs(i, r, s, o);
|
|
8968
8976
|
return xs(l, n), l;
|
|
8969
8977
|
},
|
|
8970
8978
|
"PUBLIC"
|
|
@@ -9049,7 +9057,7 @@ function io() {
|
|
|
9049
9057
|
var t, e;
|
|
9050
9058
|
return (e = (t = document.getElementsByTagName("head")) === null || t === void 0 ? void 0 : t[0]) !== null && e !== void 0 ? e : document;
|
|
9051
9059
|
}
|
|
9052
|
-
|
|
9060
|
+
Rs({
|
|
9053
9061
|
loadJS(t) {
|
|
9054
9062
|
return new Promise((e, n) => {
|
|
9055
9063
|
const i = document.createElement("script");
|
|
@@ -9212,7 +9220,7 @@ function he(t) {
|
|
|
9212
9220
|
* See the License for the specific language governing permissions and
|
|
9213
9221
|
* limitations under the License.
|
|
9214
9222
|
*/
|
|
9215
|
-
class
|
|
9223
|
+
class T {
|
|
9216
9224
|
constructor(e, n) {
|
|
9217
9225
|
this.bucket = e, this.path_ = n;
|
|
9218
9226
|
}
|
|
@@ -9232,9 +9240,9 @@ class k {
|
|
|
9232
9240
|
static makeFromBucketSpec(e, n) {
|
|
9233
9241
|
let i;
|
|
9234
9242
|
try {
|
|
9235
|
-
i =
|
|
9243
|
+
i = T.makeFromUrl(e, n);
|
|
9236
9244
|
} catch {
|
|
9237
|
-
return new
|
|
9245
|
+
return new T(e, "");
|
|
9238
9246
|
}
|
|
9239
9247
|
if (i.path === "")
|
|
9240
9248
|
return i;
|
|
@@ -9250,7 +9258,7 @@ class k {
|
|
|
9250
9258
|
function l(_) {
|
|
9251
9259
|
_.path_ = decodeURIComponent(_.path);
|
|
9252
9260
|
}
|
|
9253
|
-
const u = "v[A-Za-z0-9_]+", h = n.replace(/[.]/g, "\\."), f = "(/([^?#]*).*)?$", y = new RegExp(`^https?://${h}/${u}/b/${r}/o${f}`, "i"), b = { bucket: 1, path: 3 },
|
|
9261
|
+
const u = "v[A-Za-z0-9_]+", h = n.replace(/[.]/g, "\\."), f = "(/([^?#]*).*)?$", y = new RegExp(`^https?://${h}/${u}/b/${r}/o${f}`, "i"), b = { bucket: 1, path: 3 }, R = n === Zn ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, v = "([^?#]*)", D = new RegExp(`^https?://${R}/${r}/${v}`, "i"), w = [
|
|
9254
9262
|
{ regex: c, indices: o, postModify: s },
|
|
9255
9263
|
{
|
|
9256
9264
|
regex: y,
|
|
@@ -9266,9 +9274,9 @@ class k {
|
|
|
9266
9274
|
for (let _ = 0; _ < w.length; _++) {
|
|
9267
9275
|
const J = w[_], X = J.regex.exec(e);
|
|
9268
9276
|
if (X) {
|
|
9269
|
-
const
|
|
9277
|
+
const Te = X[J.indices.bucket];
|
|
9270
9278
|
let de = X[J.indices.path];
|
|
9271
|
-
de || (de = ""), i = new
|
|
9279
|
+
de || (de = ""), i = new T(Te, de), J.postModify(i);
|
|
9272
9280
|
break;
|
|
9273
9281
|
}
|
|
9274
9282
|
}
|
|
@@ -9340,12 +9348,12 @@ function bo(t, e, n) {
|
|
|
9340
9348
|
c === 1 ? (c = 2, w = 0) : w = (i + Math.random()) * 1e3, h(w);
|
|
9341
9349
|
}
|
|
9342
9350
|
let b = !1;
|
|
9343
|
-
function
|
|
9351
|
+
function R(v) {
|
|
9344
9352
|
b || (b = !0, f(), !l && (r !== null ? (v || (c = 2), clearTimeout(r), h(0)) : v || (c = 1)));
|
|
9345
9353
|
}
|
|
9346
9354
|
return h(0), s = setTimeout(() => {
|
|
9347
|
-
a = !0,
|
|
9348
|
-
}, n),
|
|
9355
|
+
a = !0, R(!0);
|
|
9356
|
+
}, n), R;
|
|
9349
9357
|
}
|
|
9350
9358
|
function Io(t) {
|
|
9351
9359
|
t(!1);
|
|
@@ -9376,9 +9384,9 @@ function ni(t) {
|
|
|
9376
9384
|
return typeof t == "string" || t instanceof String;
|
|
9377
9385
|
}
|
|
9378
9386
|
function tn(t) {
|
|
9379
|
-
return
|
|
9387
|
+
return Tt() && t instanceof Blob;
|
|
9380
9388
|
}
|
|
9381
|
-
function
|
|
9389
|
+
function Tt() {
|
|
9382
9390
|
return typeof Blob < "u";
|
|
9383
9391
|
}
|
|
9384
9392
|
function nn(t, e, n, i) {
|
|
@@ -9403,11 +9411,11 @@ function nn(t, e, n, i) {
|
|
|
9403
9411
|
* See the License for the specific language governing permissions and
|
|
9404
9412
|
* limitations under the License.
|
|
9405
9413
|
*/
|
|
9406
|
-
function
|
|
9414
|
+
function To(t, e, n) {
|
|
9407
9415
|
let i = e;
|
|
9408
9416
|
return n == null && (i = `https://${e}`), `${n}://${i}/v0${t}`;
|
|
9409
9417
|
}
|
|
9410
|
-
function
|
|
9418
|
+
function ko(t) {
|
|
9411
9419
|
const e = encodeURIComponent;
|
|
9412
9420
|
let n = "?";
|
|
9413
9421
|
for (const i in t)
|
|
@@ -9533,18 +9541,18 @@ class Ee {
|
|
|
9533
9541
|
function Ao(t, e) {
|
|
9534
9542
|
e !== null && e.length > 0 && (t.Authorization = "Firebase " + e);
|
|
9535
9543
|
}
|
|
9536
|
-
function
|
|
9544
|
+
function Co(t, e) {
|
|
9537
9545
|
t["X-Firebase-Storage-Version"] = "webjs/" + (e ?? "AppManager");
|
|
9538
9546
|
}
|
|
9539
|
-
function
|
|
9547
|
+
function Ro(t, e) {
|
|
9540
9548
|
e && (t["X-Firebase-GMPID"] = e);
|
|
9541
9549
|
}
|
|
9542
9550
|
function Do(t, e) {
|
|
9543
9551
|
e !== null && (t["X-Firebase-AppCheck"] = e);
|
|
9544
9552
|
}
|
|
9545
9553
|
function Oo(t, e, n, i, r, s, a = !0) {
|
|
9546
|
-
const c =
|
|
9547
|
-
return
|
|
9554
|
+
const c = ko(t.urlParams), o = t.url + c, l = Object.assign({}, t.headers);
|
|
9555
|
+
return Ro(l, e), Ao(l, n), Co(l, s), Do(l, i), new Po(o, t.method, l, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, r, a);
|
|
9548
9556
|
}
|
|
9549
9557
|
/**
|
|
9550
9558
|
* @license
|
|
@@ -9573,7 +9581,7 @@ function Mo(...t) {
|
|
|
9573
9581
|
n.append(t[i]);
|
|
9574
9582
|
return n.getBlob();
|
|
9575
9583
|
} else {
|
|
9576
|
-
if (
|
|
9584
|
+
if (Tt())
|
|
9577
9585
|
return new Blob(t);
|
|
9578
9586
|
throw new g(m.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
|
|
9579
9587
|
}
|
|
@@ -9782,7 +9790,7 @@ class q {
|
|
|
9782
9790
|
}
|
|
9783
9791
|
}
|
|
9784
9792
|
static getBlob(...e) {
|
|
9785
|
-
if (
|
|
9793
|
+
if (Tt()) {
|
|
9786
9794
|
const n = e.map((i) => i instanceof q ? i.data_ : i);
|
|
9787
9795
|
return new q(Mo.apply(null, n));
|
|
9788
9796
|
} else {
|
|
@@ -9904,7 +9912,7 @@ function Ko() {
|
|
|
9904
9912
|
}
|
|
9905
9913
|
function Go(t, e) {
|
|
9906
9914
|
function n() {
|
|
9907
|
-
const i = t.bucket, r = t.fullPath, s = new
|
|
9915
|
+
const i = t.bucket, r = t.fullPath, s = new T(i, r);
|
|
9908
9916
|
return e._makeStorageReference(s);
|
|
9909
9917
|
}
|
|
9910
9918
|
Object.defineProperty(t, "ref", { get: n });
|
|
@@ -10000,8 +10008,8 @@ Content-Type: ` + l.contentType + `\r
|
|
|
10000
10008
|
--` + o + "--", y = q.getBlob(h, i, f);
|
|
10001
10009
|
if (y === null)
|
|
10002
10010
|
throw go();
|
|
10003
|
-
const b = { name: l.fullPath },
|
|
10004
|
-
return
|
|
10011
|
+
const b = { name: l.fullPath }, R = To(s, t.host, t._protocol), v = "POST", D = t.maxUploadRetryTime, k = new Yo(R, v, ec(t, n), D);
|
|
10012
|
+
return k.urlParams = b, k.headers = a, k.body = y.uploadData(), k.errorHandler = tc(e), k;
|
|
10005
10013
|
}
|
|
10006
10014
|
class sc {
|
|
10007
10015
|
constructor() {
|
|
@@ -10087,7 +10095,7 @@ function oc() {
|
|
|
10087
10095
|
*/
|
|
10088
10096
|
class ie {
|
|
10089
10097
|
constructor(e, n) {
|
|
10090
|
-
this._service = e, n instanceof
|
|
10098
|
+
this._service = e, n instanceof T ? this._location = n : this._location = T.makeFromUrl(n, e.host);
|
|
10091
10099
|
}
|
|
10092
10100
|
/**
|
|
10093
10101
|
* Returns the URL for the bucket and path this object references,
|
|
@@ -10104,7 +10112,7 @@ class ie {
|
|
|
10104
10112
|
* A reference to the root of this object's bucket.
|
|
10105
10113
|
*/
|
|
10106
10114
|
get root() {
|
|
10107
|
-
const e = new
|
|
10115
|
+
const e = new T(this._location.bucket, "");
|
|
10108
10116
|
return this._newRef(this._service, e);
|
|
10109
10117
|
}
|
|
10110
10118
|
/**
|
|
@@ -10140,7 +10148,7 @@ class ie {
|
|
|
10140
10148
|
const e = jo(this._location.path);
|
|
10141
10149
|
if (e === null)
|
|
10142
10150
|
return null;
|
|
10143
|
-
const n = new
|
|
10151
|
+
const n = new T(this._location.bucket, e);
|
|
10144
10152
|
return new ie(this._service, n);
|
|
10145
10153
|
}
|
|
10146
10154
|
/**
|
|
@@ -10160,7 +10168,7 @@ function cc(t, e, n) {
|
|
|
10160
10168
|
}));
|
|
10161
10169
|
}
|
|
10162
10170
|
function lc(t, e) {
|
|
10163
|
-
const n = Wo(t._location.path, e), i = new
|
|
10171
|
+
const n = Wo(t._location.path, e), i = new T(t._location.bucket, n);
|
|
10164
10172
|
return new ie(t.storage, i);
|
|
10165
10173
|
}
|
|
10166
10174
|
/**
|
|
@@ -10186,7 +10194,7 @@ function dc(t, e) {
|
|
|
10186
10194
|
return new ie(t, e);
|
|
10187
10195
|
}
|
|
10188
10196
|
function oi(t, e) {
|
|
10189
|
-
if (t instanceof
|
|
10197
|
+
if (t instanceof kt) {
|
|
10190
10198
|
const n = t;
|
|
10191
10199
|
if (n._bucket == null)
|
|
10192
10200
|
throw mo();
|
|
@@ -10197,7 +10205,7 @@ function oi(t, e) {
|
|
|
10197
10205
|
}
|
|
10198
10206
|
function hc(t, e) {
|
|
10199
10207
|
if (e && uc(e)) {
|
|
10200
|
-
if (t instanceof
|
|
10208
|
+
if (t instanceof kt)
|
|
10201
10209
|
return dc(t, e);
|
|
10202
10210
|
throw ut("To use ref(service, url), the first argument must be a Storage instance.");
|
|
10203
10211
|
} else
|
|
@@ -10205,16 +10213,16 @@ function hc(t, e) {
|
|
|
10205
10213
|
}
|
|
10206
10214
|
function rn(t, e) {
|
|
10207
10215
|
const n = e == null ? void 0 : e[ei];
|
|
10208
|
-
return n == null ? null :
|
|
10216
|
+
return n == null ? null : T.makeFromBucketSpec(n, t);
|
|
10209
10217
|
}
|
|
10210
10218
|
function pc(t, e, n, i = {}) {
|
|
10211
10219
|
t.host = `${e}:${n}`, t._protocol = "http";
|
|
10212
10220
|
const { mockUserToken: r } = i;
|
|
10213
10221
|
r && (t._overrideAuthToken = typeof r == "string" ? r : Li(r, t.app.options.projectId));
|
|
10214
10222
|
}
|
|
10215
|
-
class
|
|
10223
|
+
class kt {
|
|
10216
10224
|
constructor(e, n, i, r, s) {
|
|
10217
|
-
this.app = e, this._authProvider = n, this._appCheckProvider = i, this._url = r, this._firebaseVersion = s, this._bucket = null, this._host = Zn, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = ro, this._maxUploadRetryTime = so, this._requests = /* @__PURE__ */ new Set(), r != null ? this._bucket =
|
|
10225
|
+
this.app = e, this._authProvider = n, this._appCheckProvider = i, this._url = r, this._firebaseVersion = s, this._bucket = null, this._host = Zn, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = ro, this._maxUploadRetryTime = so, this._requests = /* @__PURE__ */ new Set(), r != null ? this._bucket = T.makeFromBucketSpec(r, this._host) : this._bucket = rn(this._host, this.app.options);
|
|
10218
10226
|
}
|
|
10219
10227
|
/**
|
|
10220
10228
|
* The host string for this service, in the form of `host` or
|
|
@@ -10224,7 +10232,7 @@ class Tt {
|
|
|
10224
10232
|
return this._host;
|
|
10225
10233
|
}
|
|
10226
10234
|
set host(e) {
|
|
10227
|
-
this._host = e, this._url != null ? this._bucket =
|
|
10235
|
+
this._host = e, this._url != null ? this._bucket = T.makeFromBucketSpec(this._url, e) : this._bucket = rn(e, this.app.options);
|
|
10228
10236
|
}
|
|
10229
10237
|
/**
|
|
10230
10238
|
* The maximum time to retry uploads in milliseconds.
|
|
@@ -10326,13 +10334,13 @@ const sn = "@firebase/storage", an = "0.13.2";
|
|
|
10326
10334
|
*/
|
|
10327
10335
|
const ci = "storage";
|
|
10328
10336
|
function Oc(t, e, n) {
|
|
10329
|
-
return t =
|
|
10337
|
+
return t = C(t), cc(t, e, n);
|
|
10330
10338
|
}
|
|
10331
10339
|
function Nc(t, e) {
|
|
10332
|
-
return t =
|
|
10340
|
+
return t = C(t), hc(t, e);
|
|
10333
10341
|
}
|
|
10334
10342
|
function fc(t = ft(), e) {
|
|
10335
|
-
t =
|
|
10343
|
+
t = C(t);
|
|
10336
10344
|
const i = pt(t, ci).getImmediate({
|
|
10337
10345
|
identifier: e
|
|
10338
10346
|
}), r = Mi("storage");
|
|
@@ -10343,7 +10351,7 @@ function mc(t, e, n, i = {}) {
|
|
|
10343
10351
|
}
|
|
10344
10352
|
function gc(t, { instanceIdentifier: e }) {
|
|
10345
10353
|
const n = t.getProvider("app").getImmediate(), i = t.getProvider("auth-internal"), r = t.getProvider("app-check-internal");
|
|
10346
|
-
return new
|
|
10354
|
+
return new kt(n, i, r, e, le);
|
|
10347
10355
|
}
|
|
10348
10356
|
function yc() {
|
|
10349
10357
|
ce(new ee(
|
|
@@ -10394,37 +10402,37 @@ const _c = { class: "flex-1 overflow-auto" }, Lc = /* @__PURE__ */ di({
|
|
|
10394
10402
|
]);
|
|
10395
10403
|
};
|
|
10396
10404
|
}
|
|
10397
|
-
}), bc = "/kiosk", Ic = "/kiosk/device", Sc = "/kiosk/order-setting", wc = "/order-settings",
|
|
10405
|
+
}), bc = "/kiosk", Ic = "/kiosk/device", Sc = "/kiosk/order-setting", wc = "/order-settings", Ce = {
|
|
10398
10406
|
KioskRoute: bc,
|
|
10399
10407
|
KioskDeviceRoute: Ic,
|
|
10400
10408
|
KioskOrderSettingRoute: Sc,
|
|
10401
10409
|
OrderSettingView: wc
|
|
10402
10410
|
}, Uc = [
|
|
10403
10411
|
{
|
|
10404
|
-
path:
|
|
10412
|
+
path: Ce.KioskRoute,
|
|
10405
10413
|
name: "Kiosk",
|
|
10406
|
-
component: () => import("./KioskView-
|
|
10414
|
+
component: () => import("./KioskView-DYESsVun.js")
|
|
10407
10415
|
},
|
|
10408
10416
|
{
|
|
10409
|
-
path:
|
|
10417
|
+
path: Ce.KioskDeviceRoute,
|
|
10410
10418
|
name: "Kiosk Device",
|
|
10411
|
-
component: () => import("./KioskDevicesView-
|
|
10419
|
+
component: () => import("./KioskDevicesView-CVnUSyRk.js")
|
|
10412
10420
|
},
|
|
10413
10421
|
{
|
|
10414
|
-
path:
|
|
10422
|
+
path: Ce.KioskOrderSettingRoute,
|
|
10415
10423
|
name: "Kiosk Order Setting",
|
|
10416
|
-
component: () => import("./KioskSettingView-
|
|
10424
|
+
component: () => import("./KioskSettingView-CyAxzbP1.js")
|
|
10417
10425
|
},
|
|
10418
10426
|
{
|
|
10419
|
-
path:
|
|
10427
|
+
path: Ce.OrderSettingView,
|
|
10420
10428
|
name: "Order Setting View",
|
|
10421
|
-
component: () => import("./OrderSettingsView-
|
|
10429
|
+
component: () => import("./OrderSettingsView-BKkoSdAX.js")
|
|
10422
10430
|
}
|
|
10423
10431
|
], Fc = {
|
|
10424
10432
|
"en-US": vi,
|
|
10425
10433
|
"zh-CN": bi,
|
|
10426
10434
|
"th-TH": Si,
|
|
10427
|
-
"ja-JP":
|
|
10435
|
+
"ja-JP": ki
|
|
10428
10436
|
};
|
|
10429
10437
|
export {
|
|
10430
10438
|
Lc as _,
|
|
@@ -10436,10 +10444,10 @@ export {
|
|
|
10436
10444
|
Ac as f,
|
|
10437
10445
|
Mc as g,
|
|
10438
10446
|
Pc as h,
|
|
10439
|
-
|
|
10447
|
+
Cc as i,
|
|
10440
10448
|
Fc as j,
|
|
10441
10449
|
Uc as k,
|
|
10442
10450
|
Nc as r,
|
|
10443
|
-
|
|
10451
|
+
Rc as s,
|
|
10444
10452
|
Oc as u
|
|
10445
10453
|
};
|