@sunggang/ui-lib 0.4.36 → 0.4.38
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/BaseCkeditor.cjs.js +7620 -7232
- package/BaseCkeditor.esm.js +7621 -7233
- package/CkEditor.cjs.js +99 -9
- package/CkEditor.esm.js +99 -9
- package/button.cjs.js +7 -1
- package/button.esm.js +7 -1
- package/index.cjs.css +74 -1
- package/index.cjs.js +2 -3
- package/index.cjs3.js +294 -253
- package/index.esm.cjs.js +132 -63
- package/index.esm.css +74 -1
- package/index.esm.esm.js +132 -63
- package/index.esm.js +1 -1
- package/index.esm3.js +294 -253
- package/package.json +1 -1
- package/src/components/ui/button.d.ts +1 -1
- package/src/lib/Ckeditor/BaseCkeditor.d.ts +16 -1
- package/src/lib/Ckeditor/index.d.ts +11 -4
- package/src/lib/Form/types.d.ts +25 -19
package/index.cjs3.js
CHANGED
|
@@ -623,7 +623,7 @@ var i$2 = function i(t, e) {
|
|
|
623
623
|
this._driver = t, this.liff = e, this.hooks = this._driver.hooks, this.internalHooks = this._driver.internalHooks;
|
|
624
624
|
}, r$7 = function r(t, e) {
|
|
625
625
|
this._driver = t, this.liff = e, this.hooks = this._driver.hooks;
|
|
626
|
-
}, s$
|
|
626
|
+
}, s$8 = function() {
|
|
627
627
|
function t(t, e) {
|
|
628
628
|
this.pluginCtx = new r$7(t, e), this.moduleCtx = new i$2(t, e);
|
|
629
629
|
}
|
|
@@ -655,7 +655,7 @@ var i$2 = function i(t, e) {
|
|
|
655
655
|
}, n.prototype.hasModule = function(t) {
|
|
656
656
|
return this.modules.has(t);
|
|
657
657
|
}, n;
|
|
658
|
-
}(), a$8 = function a() {}, l$
|
|
658
|
+
}(), a$8 = function a() {}, l$c = function l(t) {
|
|
659
659
|
return _instanceof$3(t, a$8);
|
|
660
660
|
}, c$b = function(t) {
|
|
661
661
|
function e(e, n, o) {
|
|
@@ -682,9 +682,9 @@ var i$2 = function i(t, e) {
|
|
|
682
682
|
var _$n = Object.assign({}, this.defaultOption, this.option).namespacePrefix;
|
|
683
683
|
return function(i, r) {
|
|
684
684
|
if (!i || "function" != typeof i.install || "string" != typeof i.name) return i$3.warn("To install the plugin, you need to define the `name` property and the `install` method."), this;
|
|
685
|
-
var s = l$
|
|
685
|
+
var s = l$c(i) ? i.name : "".concat(_$n).concat(i.name);
|
|
686
686
|
if (t.hasModule(s)) return this;
|
|
687
|
-
var u = l$
|
|
687
|
+
var u = l$c(i) ? i.install.call(i, e.moduleContext, r) : i.install.call(i, e.pluginContext, r);
|
|
688
688
|
return this["".concat(s)] ? (i$3.warn("There is a duplicate plugin name. `".concat(s, "` plugin namespace will be override.")), this["".concat(s)] = u) : void 0 !== u && (this["".concat(s)] = u), t.addModule(s, i), this;
|
|
689
689
|
};
|
|
690
690
|
}, e;
|
|
@@ -694,7 +694,7 @@ var e$5, n$3 = new Promise(function(n) {
|
|
|
694
694
|
e$5 = n;
|
|
695
695
|
});
|
|
696
696
|
|
|
697
|
-
var e$4 = "UNKNOWN", t = "UNAUTHORIZED", i$1 = "INVALID_ARGUMENT", I$5 = "INIT_FAILED", E$5 = "FORBIDDEN", n$2 = "INVALID_CONFIG", T$4 = "INVALID_ID_TOKEN", f$9 = "CREATE_SUBWINDOW_FAILED", N$2 = "EXCEPTION_IN_SUBWINDOW", o$3 = "liffEvent", l$
|
|
697
|
+
var e$4 = "UNKNOWN", t = "UNAUTHORIZED", i$1 = "INVALID_ARGUMENT", I$5 = "INIT_FAILED", E$5 = "FORBIDDEN", n$2 = "INVALID_CONFIG", T$4 = "INVALID_ID_TOKEN", f$9 = "CREATE_SUBWINDOW_FAILED", N$2 = "EXCEPTION_IN_SUBWINDOW", o$3 = "liffEvent", l$b = "LIFF_STORE", s$7 = "https://liff.".concat("line.me", "/"), a$7 = "https://miniapp.".concat("line.me", "/"), c$a = {
|
|
698
698
|
ACCESS_TOKEN: "accessToken",
|
|
699
699
|
ID_TOKEN: "IDToken",
|
|
700
700
|
DECODED_ID_TOKEN: "decodedIDToken",
|
|
@@ -726,13 +726,13 @@ var e$4 = "UNKNOWN", t = "UNAUTHORIZED", i$1 = "INVALID_ARGUMENT", I$5 = "INIT_F
|
|
|
726
726
|
"liff.ref.campaign",
|
|
727
727
|
"liff.ref.term",
|
|
728
728
|
"liff.ref.content"
|
|
729
|
-
], m$
|
|
729
|
+
], m$7 = "liff://subwindow", C$5 = {
|
|
730
730
|
INIT: "init",
|
|
731
731
|
SUBMIT: "submit",
|
|
732
732
|
CANCEL: "cancel",
|
|
733
733
|
CLOSE: "close",
|
|
734
734
|
ERROR: "error"
|
|
735
|
-
}, p$
|
|
735
|
+
}, p$9 = 100, S$5 = 100, L$5 = "liff.subwindow", R$5 = "healthCheck", U$4 = [
|
|
736
736
|
"profile",
|
|
737
737
|
"chat_message.write",
|
|
738
738
|
"openid",
|
|
@@ -763,29 +763,29 @@ function f$8(n, r) {
|
|
|
763
763
|
}
|
|
764
764
|
return 0;
|
|
765
765
|
}
|
|
766
|
-
function s$
|
|
766
|
+
function s$6(r) {
|
|
767
767
|
var t = r.replace("#", "").match(/.{2}/g) || [];
|
|
768
768
|
if (4 !== t.length) return i$3.warn("convertArgbToRgba: Received invalid ARGB color"), "";
|
|
769
769
|
var e = function(n) {
|
|
770
|
-
var _$r = p$
|
|
770
|
+
var _$r = p$8(n);
|
|
771
771
|
return Math.round(_$r / 255 * 100) / 100;
|
|
772
|
-
}(t[0]), _$o = p$
|
|
772
|
+
}(t[0]), _$o = p$8(t[1]), _$i = p$8(t[2]), a = p$8(t[3]);
|
|
773
773
|
return "rgba(".concat(_$o, ", ").concat(_$i, ", ").concat(a, ", ").concat(e, ")");
|
|
774
774
|
}
|
|
775
|
-
function p$
|
|
775
|
+
function p$8(n) {
|
|
776
776
|
return parseInt(n, 16);
|
|
777
777
|
}
|
|
778
|
-
function d$
|
|
778
|
+
function d$4(r) {
|
|
779
779
|
var t = r.replace("#", "").match(/.{2}/g) || [];
|
|
780
780
|
if (3 !== t.length) return i$3.warn("convertArgbToRgba: Received invalid hex color"), "";
|
|
781
|
-
var e = p$
|
|
781
|
+
var e = p$8(t[0]), _$o = p$8(t[1]), _$i = p$8(t[2]);
|
|
782
782
|
return "".concat(e, ", ").concat(_$o, ", ").concat(_$i);
|
|
783
783
|
}
|
|
784
|
-
function l$
|
|
784
|
+
function l$a(n) {
|
|
785
785
|
for(var r = n.length, t = new ArrayBuffer(r), e = new Uint8Array(t), _$o = 0; _$o < r; _$o++)e[_$o] = n.charCodeAt(_$o);
|
|
786
786
|
return t;
|
|
787
787
|
}
|
|
788
|
-
var v$
|
|
788
|
+
var v$6 = {
|
|
789
789
|
get: function get(n) {
|
|
790
790
|
var r = new RegExp("(?:(?:^|.*;\\s*)".concat(n, "\\s*\\=\\s*([^;]*).*$)|^.*$"));
|
|
791
791
|
return document.cookie.replace(r, "$1");
|
|
@@ -810,7 +810,7 @@ var v$5 = {
|
|
|
810
810
|
"404",
|
|
811
811
|
"429",
|
|
812
812
|
"500"
|
|
813
|
-
]), h$
|
|
813
|
+
]), h$7 = function(n) {
|
|
814
814
|
function t(r, t, e) {
|
|
815
815
|
var _$o = n.call(this, t, e) || this;
|
|
816
816
|
return _$o.code = r, _$o;
|
|
@@ -818,9 +818,9 @@ var v$5 = {
|
|
|
818
818
|
return _tslib.__extends(t, n), t;
|
|
819
819
|
}(Error);
|
|
820
820
|
function w$6(n, r, t) {
|
|
821
|
-
return (null == t ? void 0 : t.cause) && console.error("This is the cause of LiffError described below.", t.cause), new h$
|
|
821
|
+
return (null == t ? void 0 : t.cause) && console.error("This is the cause of LiffError described below.", t.cause), new h$7(n, r || "", t || {});
|
|
822
822
|
}
|
|
823
|
-
function m$
|
|
823
|
+
function m$6(n) {
|
|
824
824
|
var r = n.match(/([^-]+)-[^-]+/);
|
|
825
825
|
return r && r[1];
|
|
826
826
|
}
|
|
@@ -917,8 +917,8 @@ function E$4(n, r) {
|
|
|
917
917
|
e.searchParams.set(_$o, _$i);
|
|
918
918
|
}), e.toString();
|
|
919
919
|
}
|
|
920
|
-
var O$3, S$4 = ((R$4 = {})[s$
|
|
921
|
-
var n = $$2(s$
|
|
920
|
+
var O$3, S$4 = ((R$4 = {})[s$7] = function S() {
|
|
921
|
+
var n = $$2(s$7);
|
|
922
922
|
return new RegExp("^".concat(n, "(\\d+-\\w+)"));
|
|
923
923
|
}, R$4[a$7] = function() {
|
|
924
924
|
var n = $$2(a$7);
|
|
@@ -959,7 +959,7 @@ var J$1 = function J() {
|
|
|
959
959
|
|
|
960
960
|
var c$8 = null;
|
|
961
961
|
function u$7() {
|
|
962
|
-
return null === c$8 && (c$8 = B$2() || W$1() && /[#|&]access_token=/.test(location.hash) || "1" === sessionStorage.getItem("".concat(l$
|
|
962
|
+
return null === c$8 && (c$8 = B$2() || W$1() && /[#|&]access_token=/.test(location.hash) || "1" === sessionStorage.getItem("".concat(l$b, ":").concat(r$6)), sessionStorage.setItem("".concat(l$b, ":").concat(r$6), c$8 ? "1" : "0")), !!c$8;
|
|
963
963
|
}
|
|
964
964
|
(function(n) {
|
|
965
965
|
function o() {
|
|
@@ -982,31 +982,31 @@ function c$7() {
|
|
|
982
982
|
var n;
|
|
983
983
|
return null !== (n = window.__liffConfig) && void 0 !== n ? n : {};
|
|
984
984
|
}
|
|
985
|
-
function l$
|
|
985
|
+
function l$9(n) {
|
|
986
986
|
window.__liffConfig = n;
|
|
987
987
|
}
|
|
988
988
|
function a$6(n, t) {
|
|
989
989
|
if (!t) throw w$6(n$2, "liffId is necessary for liff.init()");
|
|
990
|
-
var o = (u$7() ? sessionStorage : localStorage).getItem("".concat(l$
|
|
990
|
+
var o = (u$7() ? sessionStorage : localStorage).getItem("".concat(l$b, ":").concat(t, ":").concat(n));
|
|
991
991
|
try {
|
|
992
992
|
return null === o ? null : JSON.parse(o);
|
|
993
993
|
} catch (f) {
|
|
994
994
|
return null;
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
function p$
|
|
997
|
+
function p$7(n) {
|
|
998
998
|
return a$6(n, c$7().liffId);
|
|
999
999
|
}
|
|
1000
|
-
function s$
|
|
1000
|
+
function s$5(n, t) {
|
|
1001
1001
|
var o = c$7().liffId;
|
|
1002
1002
|
if (!o) throw w$6(n$2, "liffId is necessary for liff.init()");
|
|
1003
|
-
(u$7() ? sessionStorage : localStorage).setItem("".concat(l$
|
|
1003
|
+
(u$7() ? sessionStorage : localStorage).setItem("".concat(l$b, ":").concat(o, ":").concat(n), JSON.stringify(t));
|
|
1004
1004
|
}
|
|
1005
1005
|
function E$3() {
|
|
1006
|
-
return p$
|
|
1006
|
+
return p$7(c$a.CONTEXT);
|
|
1007
1007
|
}
|
|
1008
1008
|
function I$3(n) {
|
|
1009
|
-
s$
|
|
1009
|
+
s$5(c$a.CONTEXT, n);
|
|
1010
1010
|
}
|
|
1011
1011
|
(function(t) {
|
|
1012
1012
|
function r() {
|
|
@@ -1082,61 +1082,61 @@ function S$3() {
|
|
|
1082
1082
|
}, r;
|
|
1083
1083
|
})(a$8);
|
|
1084
1084
|
function O$2() {
|
|
1085
|
-
return Boolean(p$
|
|
1085
|
+
return Boolean(p$7(c$a.IS_SUBSEQUENT_LIFF_APP));
|
|
1086
1086
|
}
|
|
1087
1087
|
function P$3(n) {
|
|
1088
|
-
s$
|
|
1088
|
+
s$5(c$a.IS_SUBSEQUENT_LIFF_APP, n);
|
|
1089
1089
|
}
|
|
1090
1090
|
function b$3() {
|
|
1091
|
-
return p$
|
|
1091
|
+
return p$7(c$a.APP_DATA);
|
|
1092
1092
|
}
|
|
1093
1093
|
function N$1(n) {
|
|
1094
|
-
s$
|
|
1094
|
+
s$5(c$a.APP_DATA, n);
|
|
1095
1095
|
}
|
|
1096
|
-
function h$
|
|
1097
|
-
return p$
|
|
1096
|
+
function h$6() {
|
|
1097
|
+
return p$7(c$a.MST_VERIFIER);
|
|
1098
1098
|
}
|
|
1099
1099
|
function A$2(n) {
|
|
1100
|
-
s$
|
|
1100
|
+
s$5(c$a.MST_VERIFIER, n);
|
|
1101
1101
|
}
|
|
1102
|
-
function v$
|
|
1103
|
-
return p$
|
|
1102
|
+
function v$5() {
|
|
1103
|
+
return p$7(c$a.MSIT);
|
|
1104
1104
|
}
|
|
1105
1105
|
function C$3(n) {
|
|
1106
|
-
s$
|
|
1106
|
+
s$5(c$a.MSIT, n);
|
|
1107
1107
|
}
|
|
1108
1108
|
function D() {
|
|
1109
|
-
return p$
|
|
1109
|
+
return p$7(c$a.MST);
|
|
1110
1110
|
}
|
|
1111
1111
|
function L$3(n) {
|
|
1112
|
-
s$
|
|
1112
|
+
s$5(c$a.MST, n);
|
|
1113
1113
|
}
|
|
1114
1114
|
function M() {
|
|
1115
|
-
return p$
|
|
1115
|
+
return p$7(c$a.MST_CHALLENGE);
|
|
1116
1116
|
}
|
|
1117
1117
|
function R$3(n) {
|
|
1118
|
-
s$
|
|
1118
|
+
s$5(c$a.MST_CHALLENGE, n);
|
|
1119
1119
|
}
|
|
1120
1120
|
function j() {
|
|
1121
|
-
return p$
|
|
1121
|
+
return p$7(c$a.CLIENT_ID);
|
|
1122
1122
|
}
|
|
1123
1123
|
function F$1(n) {
|
|
1124
|
-
s$
|
|
1124
|
+
s$5(c$a.CLIENT_ID, n);
|
|
1125
1125
|
}
|
|
1126
1126
|
function K() {
|
|
1127
|
-
return p$
|
|
1127
|
+
return p$7(c$a.RAW_CONTEXT);
|
|
1128
1128
|
}
|
|
1129
1129
|
function w$5() {
|
|
1130
|
-
return p$
|
|
1130
|
+
return p$7(c$a.FEATURE_TOKEN);
|
|
1131
1131
|
}
|
|
1132
1132
|
function U$2(n) {
|
|
1133
|
-
s$
|
|
1133
|
+
s$5(c$a.FEATURE_TOKEN, n);
|
|
1134
1134
|
}
|
|
1135
1135
|
function X$1() {
|
|
1136
|
-
return p$
|
|
1136
|
+
return p$7(c$a.ID_TOKEN);
|
|
1137
1137
|
}
|
|
1138
1138
|
function G$1(n) {
|
|
1139
|
-
s$
|
|
1139
|
+
s$5(c$a.ID_TOKEN, n);
|
|
1140
1140
|
}
|
|
1141
1141
|
(function(t) {
|
|
1142
1142
|
function r() {
|
|
@@ -1155,10 +1155,10 @@ function G$1(n) {
|
|
|
1155
1155
|
}, r;
|
|
1156
1156
|
})(a$8);
|
|
1157
1157
|
function x$3() {
|
|
1158
|
-
return p$
|
|
1158
|
+
return p$7(c$a.ACCESS_TOKEN);
|
|
1159
1159
|
}
|
|
1160
1160
|
function B$1(n) {
|
|
1161
|
-
s$
|
|
1161
|
+
s$5(c$a.ACCESS_TOKEN, n);
|
|
1162
1162
|
}
|
|
1163
1163
|
(function(t) {
|
|
1164
1164
|
function r() {
|
|
@@ -1179,20 +1179,20 @@ function B$1(n) {
|
|
|
1179
1179
|
function H$3(n) {
|
|
1180
1180
|
var _$t = c$7().liffId;
|
|
1181
1181
|
if (!_$t) throw w$6(n$2, "liffId is necessary for liff.init()");
|
|
1182
|
-
(u$7() ? sessionStorage : localStorage).removeItem("".concat(l$
|
|
1182
|
+
(u$7() ? sessionStorage : localStorage).removeItem("".concat(l$b, ":").concat(_$t, ":").concat(n));
|
|
1183
1183
|
}
|
|
1184
1184
|
function J() {
|
|
1185
|
-
return p$
|
|
1185
|
+
return p$7(c$a.LOGIN_TMP);
|
|
1186
1186
|
}
|
|
1187
1187
|
function Q$1(n) {
|
|
1188
|
-
s$
|
|
1188
|
+
s$5(c$a.LOGIN_TMP, n);
|
|
1189
1189
|
}
|
|
1190
1190
|
function W() {
|
|
1191
1191
|
H$3(c$a.LOGIN_TMP);
|
|
1192
1192
|
}
|
|
1193
1193
|
function q$2(n) {
|
|
1194
1194
|
var _$t = c$7();
|
|
1195
|
-
v$
|
|
1195
|
+
v$6.set("".concat(l$b, ":").concat(c$a.EXPIRES, ":").concat(_$t.liffId), n.getTime(), {
|
|
1196
1196
|
expires: n.toUTCString(),
|
|
1197
1197
|
path: "/",
|
|
1198
1198
|
secure: null
|
|
@@ -1200,19 +1200,19 @@ function q$2(n) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
function z$2() {
|
|
1202
1202
|
var n = c$7();
|
|
1203
|
-
return v$
|
|
1203
|
+
return v$6.get("".concat(l$b, ":").concat(c$a.EXPIRES, ":").concat(n.liffId));
|
|
1204
1204
|
}
|
|
1205
1205
|
function Y$1() {
|
|
1206
1206
|
var n = c$7();
|
|
1207
|
-
v$
|
|
1207
|
+
v$6.remove("".concat(l$b, ":").concat(c$a.EXPIRES, ":").concat(n.liffId), {
|
|
1208
1208
|
path: "/"
|
|
1209
1209
|
});
|
|
1210
1210
|
}
|
|
1211
1211
|
function Z$1() {
|
|
1212
|
-
return p$
|
|
1212
|
+
return p$7(c$a.DECODED_ID_TOKEN);
|
|
1213
1213
|
}
|
|
1214
1214
|
function $$1(n) {
|
|
1215
|
-
s$
|
|
1215
|
+
s$5(c$a.DECODED_ID_TOKEN, n);
|
|
1216
1216
|
}
|
|
1217
1217
|
(function(t) {
|
|
1218
1218
|
function r() {
|
|
@@ -1257,7 +1257,7 @@ function e$3() {
|
|
|
1257
1257
|
})(a$8);
|
|
1258
1258
|
|
|
1259
1259
|
function r$5() {
|
|
1260
|
-
return "2.27.
|
|
1260
|
+
return "2.27.3";
|
|
1261
1261
|
}
|
|
1262
1262
|
(function(n) {
|
|
1263
1263
|
function r() {
|
|
@@ -1271,7 +1271,7 @@ function r$5() {
|
|
|
1271
1271
|
configurable: !0
|
|
1272
1272
|
}), r.prototype.install = function() {
|
|
1273
1273
|
return function() {
|
|
1274
|
-
return "2.27.
|
|
1274
|
+
return "2.27.3";
|
|
1275
1275
|
};
|
|
1276
1276
|
}, r;
|
|
1277
1277
|
})(a$8);
|
|
@@ -1281,7 +1281,7 @@ var a$5 = function() {
|
|
|
1281
1281
|
return t.prototype.invoke = function() {
|
|
1282
1282
|
return G$2();
|
|
1283
1283
|
}, t;
|
|
1284
|
-
}(), l$
|
|
1284
|
+
}(), l$8 = function() {
|
|
1285
1285
|
function t(t) {
|
|
1286
1286
|
this.storage = t;
|
|
1287
1287
|
}
|
|
@@ -1294,26 +1294,26 @@ var a$5 = function() {
|
|
|
1294
1294
|
}), t.prototype.invoke = function() {
|
|
1295
1295
|
return new URLSearchParams(window.location.search).has(L$5) && this.setInSubWindow(!0), !(!this.getInSubWindow() && !this.getSubWindowIdentifier());
|
|
1296
1296
|
}, t.prototype.getInSubWindow = function() {
|
|
1297
|
-
var n = this.storage.getItem("".concat(l$
|
|
1297
|
+
var n = this.storage.getItem("".concat(l$b, ":").concat(this.getLiffId(), ":").concat(t.IN_SUB_WINDOW_KEY));
|
|
1298
1298
|
return null !== n && JSON.parse(n);
|
|
1299
1299
|
}, t.prototype.getSubWindowIdentifier = function() {
|
|
1300
1300
|
var _$t, n, i = "liff.subwindow.identifier", e = new URLSearchParams(window.location.search);
|
|
1301
1301
|
return e.get(i) || (_$t = i, (n = e.get("liff.state")) ? new URLSearchParams(n).get(_$t) : null) || null;
|
|
1302
1302
|
}, t.prototype.setInSubWindow = function(n) {
|
|
1303
|
-
this.storage.setItem("".concat(l$
|
|
1303
|
+
this.storage.setItem("".concat(l$b, ":").concat(this.getLiffId(), ":").concat(t.IN_SUB_WINDOW_KEY), String(n));
|
|
1304
1304
|
}, t.prototype.getLiffId = function() {
|
|
1305
1305
|
var _$t = c$7().liffId;
|
|
1306
1306
|
if (!_$t) throw w$6(n$2, "liffId is necessary for liff.init()");
|
|
1307
1307
|
return _$t;
|
|
1308
1308
|
}, t;
|
|
1309
|
-
}(), p$
|
|
1309
|
+
}(), p$6 = function(n) {
|
|
1310
1310
|
function i() {
|
|
1311
1311
|
var _$t = n.call(this) || this;
|
|
1312
1312
|
return J$1() ? _$t.impl = {
|
|
1313
1313
|
invoke: function invoke() {
|
|
1314
1314
|
return !1;
|
|
1315
1315
|
}
|
|
1316
|
-
} : u$7() ? _$t.impl = new a$5 : _$t.impl = new l$
|
|
1316
|
+
} : u$7() ? _$t.impl = new a$5 : _$t.impl = new l$8(window.sessionStorage), _$t;
|
|
1317
1317
|
}
|
|
1318
1318
|
return _tslib.__extends(i, n), Object.defineProperty(i.prototype, "name", {
|
|
1319
1319
|
get: function get() {
|
|
@@ -1324,7 +1324,7 @@ var a$5 = function() {
|
|
|
1324
1324
|
}), i.prototype.install = function() {
|
|
1325
1325
|
return this.impl.invoke.bind(this.impl);
|
|
1326
1326
|
}, i;
|
|
1327
|
-
}(a$8), m$
|
|
1327
|
+
}(a$8), m$5 = new p$6, d$3 = m$5.install();
|
|
1328
1328
|
|
|
1329
1329
|
function r$4() {
|
|
1330
1330
|
var n = navigator.userAgent.match(/Line\/\d+(\.\d+)*/i);
|
|
@@ -1376,7 +1376,7 @@ function g$3(e) {
|
|
|
1376
1376
|
var r, n = E$3();
|
|
1377
1377
|
return null === (r = null == n ? void 0 : n.availability) || void 0 === r ? void 0 : r[e];
|
|
1378
1378
|
}
|
|
1379
|
-
function h$
|
|
1379
|
+
function h$5(e, r, n) {
|
|
1380
1380
|
var i = g$3(e), o = n || e;
|
|
1381
1381
|
if (!i) return {
|
|
1382
1382
|
available: !1,
|
|
@@ -1418,13 +1418,13 @@ var w$4 = function w() {
|
|
|
1418
1418
|
code: E$5,
|
|
1419
1419
|
message: "Subwindow is not supported in this browser"
|
|
1420
1420
|
}
|
|
1421
|
-
} : d$
|
|
1421
|
+
} : d$3() ? {
|
|
1422
1422
|
available: !1,
|
|
1423
1423
|
error: {
|
|
1424
1424
|
code: E$5,
|
|
1425
1425
|
message: "this api can be only called in parent window"
|
|
1426
1426
|
}
|
|
1427
|
-
} : h$
|
|
1427
|
+
} : h$5("subwindowOpen", !0) : {
|
|
1428
1428
|
available: !1,
|
|
1429
1429
|
error: {
|
|
1430
1430
|
code: t,
|
|
@@ -1446,22 +1446,22 @@ var w$4 = function w() {
|
|
|
1446
1446
|
"iap"
|
|
1447
1447
|
], C$2 = {
|
|
1448
1448
|
scanCode: function scanCode() {
|
|
1449
|
-
return h$
|
|
1449
|
+
return h$5("scanCode");
|
|
1450
1450
|
},
|
|
1451
1451
|
getAdvertisingId: function getAdvertisingId() {
|
|
1452
|
-
return h$
|
|
1452
|
+
return h$5("getAdvertisingId");
|
|
1453
1453
|
},
|
|
1454
1454
|
bluetoothLeFunction: function bluetoothLeFunction() {
|
|
1455
|
-
return h$
|
|
1455
|
+
return h$5("bluetoothLeFunction");
|
|
1456
1456
|
},
|
|
1457
1457
|
shareTargetPicker: function shareTargetPicker() {
|
|
1458
|
-
return d$
|
|
1458
|
+
return d$3() ? {
|
|
1459
1459
|
available: !1,
|
|
1460
1460
|
error: {
|
|
1461
1461
|
code: E$5,
|
|
1462
1462
|
message: "this api can be only called in parent window"
|
|
1463
1463
|
}
|
|
1464
|
-
} : e$3() ? h$
|
|
1464
|
+
} : e$3() ? h$5("shareTargetPicker", !0) : {
|
|
1465
1465
|
available: !1,
|
|
1466
1466
|
error: {
|
|
1467
1467
|
code: t,
|
|
@@ -1497,16 +1497,16 @@ var w$4 = function w() {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
};
|
|
1499
1499
|
var e = w$4();
|
|
1500
|
-
return e.available ? h$
|
|
1500
|
+
return e.available ? h$5("scanCodeV2", !0) : e;
|
|
1501
1501
|
},
|
|
1502
1502
|
addToHomeScreen: function addToHomeScreen() {
|
|
1503
|
-
return d$
|
|
1503
|
+
return d$3() ? {
|
|
1504
1504
|
available: !1,
|
|
1505
1505
|
error: {
|
|
1506
1506
|
code: E$5,
|
|
1507
1507
|
message: "this api can be only called in parent window"
|
|
1508
1508
|
}
|
|
1509
|
-
} : h$
|
|
1509
|
+
} : h$5("addToHomeScreen");
|
|
1510
1510
|
},
|
|
1511
1511
|
skipChannelVerificationScreen: function skipChannelVerificationScreen() {
|
|
1512
1512
|
var e = E$3();
|
|
@@ -1516,7 +1516,7 @@ var w$4 = function w() {
|
|
|
1516
1516
|
code: E$5,
|
|
1517
1517
|
message: "skipChannelVerificationScreen is not allowed in OpenChat"
|
|
1518
1518
|
}
|
|
1519
|
-
} : h$
|
|
1519
|
+
} : h$5("skipChannelVerificationScreen") : {
|
|
1520
1520
|
available: !1,
|
|
1521
1521
|
error: {
|
|
1522
1522
|
code: E$5,
|
|
@@ -1525,7 +1525,7 @@ var w$4 = function w() {
|
|
|
1525
1525
|
};
|
|
1526
1526
|
},
|
|
1527
1527
|
createShortcutOnHomeScreen: function createShortcutOnHomeScreen() {
|
|
1528
|
-
if (d$
|
|
1528
|
+
if (d$3()) return {
|
|
1529
1529
|
available: !1,
|
|
1530
1530
|
error: {
|
|
1531
1531
|
code: E$5,
|
|
@@ -1546,10 +1546,10 @@ var w$4 = function w() {
|
|
|
1546
1546
|
code: E$5,
|
|
1547
1547
|
message: "this api can be only called in mobile device"
|
|
1548
1548
|
}
|
|
1549
|
-
} : h$
|
|
1549
|
+
} : h$5("addToHomeV2", !0, "createShortcutOnHomeScreen");
|
|
1550
1550
|
},
|
|
1551
1551
|
internalCreateShortcutOnHomeScreen: function internalCreateShortcutOnHomeScreen() {
|
|
1552
|
-
if (d$
|
|
1552
|
+
if (d$3()) return {
|
|
1553
1553
|
available: !1,
|
|
1554
1554
|
error: {
|
|
1555
1555
|
code: E$5,
|
|
@@ -1571,17 +1571,17 @@ var w$4 = function w() {
|
|
|
1571
1571
|
message: "this api can be only called in mobile device"
|
|
1572
1572
|
}
|
|
1573
1573
|
};
|
|
1574
|
-
var r = h$
|
|
1575
|
-
return r.available ? h$
|
|
1574
|
+
var r = h$5("addToHomeV2", !0, "internalCreateShortcutOnHomeScreen");
|
|
1575
|
+
return r.available ? h$5("addToHomeLineScheme", !0, "internalCreateShortcutOnHomeScreen") : r;
|
|
1576
1576
|
},
|
|
1577
1577
|
iap: function iap() {
|
|
1578
|
-
return u$7() ? e$3() ? d$
|
|
1578
|
+
return u$7() ? e$3() ? d$3() ? {
|
|
1579
1579
|
available: !1,
|
|
1580
1580
|
error: {
|
|
1581
1581
|
code: E$5,
|
|
1582
1582
|
message: "this api can be only called in parent window"
|
|
1583
1583
|
}
|
|
1584
|
-
} : h$
|
|
1584
|
+
} : h$5("iap", !1, "In-App Purchase") : {
|
|
1585
1585
|
available: !1,
|
|
1586
1586
|
error: {
|
|
1587
1587
|
code: t,
|
|
@@ -1710,7 +1710,7 @@ function u$6(t, n, e, o) {
|
|
|
1710
1710
|
l((o = o.apply(t, n || [])).next());
|
|
1711
1711
|
});
|
|
1712
1712
|
}
|
|
1713
|
-
function l$
|
|
1713
|
+
function l$7(t, n) {
|
|
1714
1714
|
var e, o, r, _$i, c = {
|
|
1715
1715
|
label: 0,
|
|
1716
1716
|
sent: function sent() {
|
|
@@ -1795,8 +1795,8 @@ function l$6(t, n) {
|
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
|
-
var s$
|
|
1799
|
-
return s$
|
|
1798
|
+
var s$4 = !1, a$4 = function a() {
|
|
1799
|
+
return s$4;
|
|
1800
1800
|
}, f$7 = function(t) {
|
|
1801
1801
|
function n() {
|
|
1802
1802
|
return null !== t && t.apply(this, arguments) || this;
|
|
@@ -1814,17 +1814,17 @@ var s$5 = !1, a$4 = function a() {
|
|
|
1814
1814
|
enumerable: !1,
|
|
1815
1815
|
configurable: !0
|
|
1816
1816
|
}), n.prototype.install = function() {
|
|
1817
|
-
s$
|
|
1817
|
+
s$4 = !0;
|
|
1818
1818
|
}, n;
|
|
1819
1819
|
}(a$8);
|
|
1820
|
-
function p$
|
|
1820
|
+
function p$5() {
|
|
1821
1821
|
var t;
|
|
1822
1822
|
return "ios" === e$2() ? (t = r$4()) && f$8(t, "9.19.0") < 0 ? "https://static.line-scdn.net/liff/edge/2/ios-918-extensions_2_22_0.js" : "https://static.line-scdn.net/liff/edge/2/ios-extensions_2_22_0.js" : "https://static.line-scdn.net/liff/edge/2/non-ios-extensions_2_22_0.js";
|
|
1823
1823
|
}
|
|
1824
1824
|
function y$2() {
|
|
1825
1825
|
return a$4() ? function() {
|
|
1826
1826
|
return u$6(this, void 0, void 0, function() {
|
|
1827
|
-
return l$
|
|
1827
|
+
return l$7(this, function(e) {
|
|
1828
1828
|
switch(e.label){
|
|
1829
1829
|
case 0:
|
|
1830
1830
|
return [
|
|
@@ -1840,7 +1840,7 @@ function y$2() {
|
|
|
1840
1840
|
return [
|
|
1841
1841
|
2,
|
|
1842
1842
|
new Promise(function(e, o) {
|
|
1843
|
-
var r = document.createElement("script"), _$i = p$
|
|
1843
|
+
var r = document.createElement("script"), _$i = p$5();
|
|
1844
1844
|
r.onload = function() {
|
|
1845
1845
|
var r = window.liffClientExtension;
|
|
1846
1846
|
r ? e(r) : o(w$6(I$5, "Unable to load client features. (Extension is empty)"));
|
|
@@ -1877,7 +1877,7 @@ function o$1() {
|
|
|
1877
1877
|
}, n;
|
|
1878
1878
|
})(a$8);
|
|
1879
1879
|
|
|
1880
|
-
var g$2 = /([\x90\x9D\x81\x8D\x8F<"{|}>\\^`“›„•‚ŽŠ…’—ž–‘”‡™‰ŒšŸ‹œ†¥¿©áÄýÍÎðô]|\n|.*#.*#|%(?![0-9A-Fa-f]{2})[^%]{0,2})/, v$
|
|
1880
|
+
var g$2 = /([\x90\x9D\x81\x8D\x8F<"{|}>\\^`“›„•‚ŽŠ…’—ž–‘”‡™‰ŒšŸ‹œ†¥¿©áÄýÍÎðô]|\n|.*#.*#|%(?![0-9A-Fa-f]{2})[^%]{0,2})/, v$4 = function v(n) {
|
|
1881
1881
|
if (g$2.test(n)) throw w$6(i$1, "invalid URL.");
|
|
1882
1882
|
var t = new URL(n), r = t.username, e = t.password, i = t.hash, a = t.search;
|
|
1883
1883
|
return {
|
|
@@ -1941,7 +1941,7 @@ var g$2 = /([\x90\x9D\x81\x8D\x8F<"{|}>\\^`“›„•‚ŽŠ…’—ž–‘
|
|
|
1941
1941
|
}, C$1 = function C(n, t) {
|
|
1942
1942
|
return 0 === t.indexOf(n) && (n.endsWith("/") && (n = n.substring(0, n.length - 1)), void 0 === t[n.length] || "/" === t[n.length]);
|
|
1943
1943
|
}, L$2 = function L(n, t) {
|
|
1944
|
-
var r = v$
|
|
1944
|
+
var r = v$4(n), e = new URL(t);
|
|
1945
1945
|
if (r.username !== e.username || r.password !== e.password) throw w$6(i$1, "invalid URL.");
|
|
1946
1946
|
if (e.origin !== r.origin || !C$1(e.pathname, r.pathname)) throw w$6(i$1, "invalid URL.");
|
|
1947
1947
|
}, P$2 = function(r) {
|
|
@@ -1971,13 +1971,13 @@ var g$2 = /([\x90\x9D\x81\x8D\x8F<"{|}>\\^`“›„•‚ŽŠ…’—ž–‘
|
|
|
1971
1971
|
b > -1 && w.splice(b, 1);
|
|
1972
1972
|
}
|
|
1973
1973
|
var L = w.join("&"), P = "".concat(l).concat("" !== L ? "?".concat(L) : "").concat(g ? "#".concat(g) : "");
|
|
1974
|
-
return "".concat(s$
|
|
1974
|
+
return "".concat(s$7).concat(c$7().liffId).concat(P);
|
|
1975
1975
|
}, _$e.createUrlBy = function(n) {
|
|
1976
1976
|
return _tslib.__awaiter(_$e, void 0, void 0, function() {
|
|
1977
1977
|
var _$t, _$r, _$e, _$i, _$o, c;
|
|
1978
1978
|
return _tslib.__generator(this, function(a) {
|
|
1979
1979
|
if (!(_$t = c$7().liffId)) throw w$6(I$5, "Should run after liff init.");
|
|
1980
|
-
return _$r = this.getAndValidateContext(), L$2(n, _$r.endpointUrl), _$e = v$
|
|
1980
|
+
return _$r = this.getAndValidateContext(), L$2(n, _$r.endpointUrl), _$e = v$4(n), _$i = new URL(_$r.endpointUrl), _$o = _$r.miniDomainAllowed ? a$7 : s$7, c = _$r.miniDomainAllowed && _$r.miniAppId ? _$r.miniAppId : _$t, [
|
|
1981
1981
|
2,
|
|
1982
1982
|
_$o.concat(c, x$2(_$e.pathname, _$i.pathname), y$1(_$e.search, _$i.search), b$2(_$e.hash))
|
|
1983
1983
|
];
|
|
@@ -2004,7 +2004,7 @@ var g$2 = /([\x90\x9D\x81\x8D\x8F<"{|}>\\^`“›„•‚ŽŠ…’—ž–‘
|
|
|
2004
2004
|
|
|
2005
2005
|
function c$5(a) {
|
|
2006
2006
|
return _tslib.__awaiter(this, void 0, void 0, function() {
|
|
2007
|
-
var _$e, r,
|
|
2007
|
+
var _$e, r, s;
|
|
2008
2008
|
return _tslib.__generator(this, function(t) {
|
|
2009
2009
|
switch(t.label){
|
|
2010
2010
|
case 0:
|
|
@@ -2041,7 +2041,7 @@ function c$5(a) {
|
|
|
2041
2041
|
})
|
|
2042
2042
|
];
|
|
2043
2043
|
case 5:
|
|
2044
|
-
throw
|
|
2044
|
+
throw s = t.sent(), w$6(s.error || s.errorCode || r, s.error_description || s.message);
|
|
2045
2045
|
}
|
|
2046
2046
|
});
|
|
2047
2047
|
});
|
|
@@ -2070,7 +2070,7 @@ function f$6(e, t) {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
return fetch(e, a).then(c$5);
|
|
2072
2072
|
}
|
|
2073
|
-
function p$
|
|
2073
|
+
function p$4(e, t) {
|
|
2074
2074
|
var a;
|
|
2075
2075
|
try {
|
|
2076
2076
|
a = u$5(t);
|
|
@@ -2079,90 +2079,93 @@ function p$5(e, t) {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
return fetch(e, a);
|
|
2081
2081
|
}
|
|
2082
|
-
function h$
|
|
2082
|
+
function h$4(e) {
|
|
2083
2083
|
var t = e.subdomain, a = void 0 === t ? "api" : t, n = e.pathname;
|
|
2084
2084
|
return "https://".concat(a, ".").concat("line.me", "/").concat(n);
|
|
2085
2085
|
}
|
|
2086
|
-
var m$
|
|
2087
|
-
token: h$
|
|
2086
|
+
var m$4 = {
|
|
2087
|
+
token: h$4({
|
|
2088
2088
|
pathname: "oauth2/v2.1/token"
|
|
2089
2089
|
}),
|
|
2090
|
-
certs: h$
|
|
2090
|
+
certs: h$4({
|
|
2091
2091
|
pathname: "oauth2/v2.1/certs"
|
|
2092
2092
|
}),
|
|
2093
|
-
"openid-configuration": h$
|
|
2093
|
+
"openid-configuration": h$4({
|
|
2094
2094
|
subdomain: "access",
|
|
2095
2095
|
pathname: ".well-known/openid-configuration"
|
|
2096
2096
|
}),
|
|
2097
|
-
authorize: h$
|
|
2097
|
+
authorize: h$4({
|
|
2098
2098
|
subdomain: "access",
|
|
2099
2099
|
pathname: "liff/v1/authorize"
|
|
2100
2100
|
}),
|
|
2101
|
-
profile: h$
|
|
2101
|
+
profile: h$4({
|
|
2102
2102
|
pathname: "v2/profile"
|
|
2103
2103
|
}),
|
|
2104
|
-
message: h$
|
|
2104
|
+
message: h$4({
|
|
2105
2105
|
pathname: "message/v3/share"
|
|
2106
2106
|
}),
|
|
2107
|
-
friendship: h$
|
|
2107
|
+
friendship: h$4({
|
|
2108
2108
|
pathname: "friendship/v1/status"
|
|
2109
2109
|
}),
|
|
2110
|
-
shareTargetPicker: h$
|
|
2110
|
+
shareTargetPicker: h$4({
|
|
2111
2111
|
subdomain: "access",
|
|
2112
2112
|
pathname: "oauth2/v2.1/liff/shareTargetPicker"
|
|
2113
2113
|
}),
|
|
2114
|
-
shareTargetPickerOtt: h$
|
|
2114
|
+
shareTargetPickerOtt: h$4({
|
|
2115
2115
|
pathname: "liff/v2/apps"
|
|
2116
2116
|
}),
|
|
2117
|
-
shareTargetPickerResult: h$
|
|
2117
|
+
shareTargetPickerResult: h$4({
|
|
2118
2118
|
subdomain: "access",
|
|
2119
2119
|
pathname: "oauth2/v2.1/liff/shareTargetPicker/result"
|
|
2120
2120
|
}),
|
|
2121
|
-
apps: h$
|
|
2121
|
+
apps: h$4({
|
|
2122
2122
|
pathname: "liff/v2/apps"
|
|
2123
2123
|
}),
|
|
2124
|
-
subWindowGetMSIT: h$
|
|
2124
|
+
subWindowGetMSIT: h$4({
|
|
2125
2125
|
pathname: "liff/v2/sub/msit"
|
|
2126
2126
|
}),
|
|
2127
|
-
subWindowGetMSTByMSIT: h$
|
|
2127
|
+
subWindowGetMSTByMSIT: h$4({
|
|
2128
2128
|
pathname: "liff/v2/sub/mst"
|
|
2129
2129
|
}),
|
|
2130
|
-
subWindowSubscribe: h$
|
|
2130
|
+
subWindowSubscribe: h$4({
|
|
2131
2131
|
subdomain: "liff",
|
|
2132
2132
|
pathname: "liff/v2/sub/waitResult"
|
|
2133
2133
|
}),
|
|
2134
|
-
subWindowPost: h$
|
|
2134
|
+
subWindowPost: h$4({
|
|
2135
2135
|
pathname: "liff/v2/sub/result"
|
|
2136
2136
|
}),
|
|
2137
|
-
subWindowGetAppData: h$
|
|
2137
|
+
subWindowGetAppData: h$4({
|
|
2138
2138
|
pathname: "liff/v2/sub/appData"
|
|
2139
2139
|
}),
|
|
2140
2140
|
subWindowGetOrigin: function subWindowGetOrigin(e) {
|
|
2141
|
-
return h$
|
|
2141
|
+
return h$4({
|
|
2142
2142
|
pathname: "liff/v2/sub/".concat(e, "/origin")
|
|
2143
2143
|
});
|
|
2144
2144
|
},
|
|
2145
|
-
accessTokenVerify: h$
|
|
2145
|
+
accessTokenVerify: h$4({
|
|
2146
2146
|
pathname: "oauth2/v2.1/verify"
|
|
2147
2147
|
}),
|
|
2148
|
-
unauthorizedPermissions: h$
|
|
2148
|
+
unauthorizedPermissions: h$4({
|
|
2149
2149
|
subdomain: "liff",
|
|
2150
2150
|
pathname: "liff/v2/incrementalAgreement/unauthorizedPermissions"
|
|
2151
2151
|
}),
|
|
2152
|
-
permanentLink: h$
|
|
2152
|
+
permanentLink: h$4({
|
|
2153
2153
|
subdomain: "liff",
|
|
2154
2154
|
pathname: "liff/v2/permanentLink"
|
|
2155
2155
|
}),
|
|
2156
|
-
createShortcutOnHomeScreen: h$
|
|
2156
|
+
createShortcutOnHomeScreen: h$4({
|
|
2157
2157
|
subdomain: "liff-shortcut",
|
|
2158
2158
|
pathname: "api/shortcut"
|
|
2159
|
+
}),
|
|
2160
|
+
iapVirtualConfirm: h$4({
|
|
2161
|
+
pathname: "iap/v1/product/virtualConfirm"
|
|
2159
2162
|
})
|
|
2160
2163
|
};
|
|
2161
|
-
function l$
|
|
2162
|
-
return m$
|
|
2164
|
+
function l$6(e) {
|
|
2165
|
+
return m$4[e];
|
|
2163
2166
|
}
|
|
2164
|
-
function d$
|
|
2165
|
-
return f$6("".concat(l$
|
|
2167
|
+
function d$2(e) {
|
|
2168
|
+
return f$6("".concat(l$6("accessTokenVerify"), "?access_token=").concat(encodeURIComponent(e)), {
|
|
2166
2169
|
headers: {
|
|
2167
2170
|
"Content-Type": "application/json",
|
|
2168
2171
|
Accept: "application/json"
|
|
@@ -2170,18 +2173,18 @@ function d$3(e) {
|
|
|
2170
2173
|
});
|
|
2171
2174
|
}
|
|
2172
2175
|
|
|
2173
|
-
var d$
|
|
2176
|
+
var d$1 = "liff.subwindow.identifier", u$4 = "liff.subwindow.cryptokey", f$5 = _tslib.__assign(_tslib.__assign({}, C$5), {
|
|
2174
2177
|
GET_DATA: "getData",
|
|
2175
2178
|
SET_DATA: "setData",
|
|
2176
2179
|
NOT_FOUND: "notFound",
|
|
2177
2180
|
TEARDOWN: "teardown"
|
|
2178
|
-
}), l$
|
|
2181
|
+
}), l$5 = {
|
|
2179
2182
|
BROADCAST: "broadcast",
|
|
2180
2183
|
COMMAND: "command"
|
|
2181
|
-
}, h$
|
|
2184
|
+
}, h$3 = {
|
|
2182
2185
|
MAIN: "main",
|
|
2183
2186
|
SUB: "sub"
|
|
2184
|
-
}, m$
|
|
2187
|
+
}, m$3 = function m(e) {
|
|
2185
2188
|
return _tslib.__awaiter(void 0, void 0, void 0, function() {
|
|
2186
2189
|
var _$t;
|
|
2187
2190
|
return _tslib.__generator(this, function(n) {
|
|
@@ -2233,7 +2236,7 @@ var d$2 = "liff.subwindow.identifier", u$4 = "liff.subwindow.cryptokey", f$5 = _
|
|
|
2233
2236
|
4
|
|
2234
2237
|
]), _$t = (new TextEncoder).encode(e), [
|
|
2235
2238
|
4,
|
|
2236
|
-
m$
|
|
2239
|
+
m$3(i)
|
|
2237
2240
|
];
|
|
2238
2241
|
case 1:
|
|
2239
2242
|
return a = n.sent(), [
|
|
@@ -2272,7 +2275,7 @@ var d$2 = "liff.subwindow.identifier", u$4 = "liff.subwindow.cryptokey", f$5 = _
|
|
|
2272
2275
|
4
|
|
2273
2276
|
]), _$t = (new TextEncoder).encode(e), [
|
|
2274
2277
|
4,
|
|
2275
|
-
m$
|
|
2278
|
+
m$3(i)
|
|
2276
2279
|
];
|
|
2277
2280
|
case 1:
|
|
2278
2281
|
for(a = n.sent(), _$o = atob(r), d = new Uint8Array(_$o.length), u = 0; u < _$o.length; u++)d[u] = _$o.charCodeAt(u);
|
|
@@ -2304,7 +2307,7 @@ var d$2 = "liff.subwindow.identifier", u$4 = "liff.subwindow.cryptokey", f$5 = _
|
|
|
2304
2307
|
}, E$2 = function E(e) {
|
|
2305
2308
|
return Object.keys(C$5).map(function(e) {
|
|
2306
2309
|
return C$5[e];
|
|
2307
|
-
}).includes(e) ? l$
|
|
2310
|
+
}).includes(e) ? l$5.BROADCAST : l$5.COMMAND;
|
|
2308
2311
|
};
|
|
2309
2312
|
function A$1() {
|
|
2310
2313
|
var _$e = document.createElement("form");
|
|
@@ -2313,7 +2316,7 @@ function A$1() {
|
|
|
2313
2316
|
t.type = "hidden", t.name = "identifier", t.value = "$IDENTIFIER", _$e.appendChild(t), document.body.appendChild(_$e), _$e.submit();
|
|
2314
2317
|
}
|
|
2315
2318
|
var T$1 = function T(o) {
|
|
2316
|
-
void 0 === o && (o = h$
|
|
2319
|
+
void 0 === o && (o = h$3.MAIN);
|
|
2317
2320
|
var d = this;
|
|
2318
2321
|
this.identification = {
|
|
2319
2322
|
identifier: "",
|
|
@@ -2328,8 +2331,8 @@ var T$1 = function T(o) {
|
|
|
2328
2331
|
var _$n = _$e.get("liff.state");
|
|
2329
2332
|
return _$n ? new URLSearchParams(_$n).get(t) : null;
|
|
2330
2333
|
}, r = this, d = {
|
|
2331
|
-
identifier: this.windowType === h$
|
|
2332
|
-
}, this.windowType !== h$
|
|
2334
|
+
identifier: this.windowType === h$3.MAIN ? x$4(12) : _$e.get("liff.subwindow.identifier") || i("liff.subwindow.identifier") || ""
|
|
2335
|
+
}, this.windowType !== h$3.MAIN ? [
|
|
2333
2336
|
3,
|
|
2334
2337
|
2
|
|
2335
2338
|
] : [
|
|
@@ -2502,7 +2505,7 @@ var T$1 = function T(o) {
|
|
|
2502
2505
|
if (!this.isReady()) throw w$6("message bus is not ready to send message");
|
|
2503
2506
|
if (!e.identifier || !e.timestamp) throw w$6(e$4, "target message is not valid");
|
|
2504
2507
|
return r = {
|
|
2505
|
-
action: l$
|
|
2508
|
+
action: l$5.BROADCAST
|
|
2506
2509
|
}, [
|
|
2507
2510
|
4,
|
|
2508
2511
|
this.getEncryptedContext(i)
|
|
@@ -2553,7 +2556,7 @@ var T$1 = function T(o) {
|
|
|
2553
2556
|
return _tslib.__generator(this, function(a) {
|
|
2554
2557
|
return r = i.data.messageBusEvent, "https://liff-subwindow.line.me" !== i.origin ? [
|
|
2555
2558
|
2
|
|
2556
|
-
] : r ? (this.sentMessages.includes(b$1(r)) || r.identifier !== this.identification.identifier || r.action !== l$
|
|
2559
|
+
] : r ? (this.sentMessages.includes(b$1(r)) || r.identifier !== this.identification.identifier || r.action !== l$5.BROADCAST && !r.replyTarget || this.listeners.forEach(function(i) {
|
|
2557
2560
|
return _tslib.__awaiter(s, void 0, void 0, function() {
|
|
2558
2561
|
var _$t, s, a;
|
|
2559
2562
|
return _tslib.__generator(this, function(n) {
|
|
@@ -2651,7 +2654,7 @@ var T$1 = function T(o) {
|
|
|
2651
2654
|
}, this.windowType = o;
|
|
2652
2655
|
};
|
|
2653
2656
|
|
|
2654
|
-
function l$
|
|
2657
|
+
function l$4(e) {
|
|
2655
2658
|
return new CustomEvent(o$3, {
|
|
2656
2659
|
detail: e
|
|
2657
2660
|
});
|
|
@@ -2666,7 +2669,7 @@ function l$3(e) {
|
|
|
2666
2669
|
}
|
|
2667
2670
|
}();
|
|
2668
2671
|
var f$4 = {}, c$4 = !1;
|
|
2669
|
-
function s$
|
|
2672
|
+
function s$3(e, i) {
|
|
2670
2673
|
c$4 || (c$4 = !0, window.addEventListener(o$3, function(t) {
|
|
2671
2674
|
t && t.detail && t.detail.type && f$4[t.detail.type] && f$4[t.detail.type].forEach(function(e) {
|
|
2672
2675
|
return e(t);
|
|
@@ -2682,20 +2685,20 @@ function u$3(t, e) {
|
|
|
2682
2685
|
o >= 0 && i.splice(o, 1);
|
|
2683
2686
|
}
|
|
2684
2687
|
}
|
|
2685
|
-
function v$
|
|
2688
|
+
function v$3(t) {
|
|
2686
2689
|
var i = {};
|
|
2687
2690
|
try {
|
|
2688
2691
|
i = JSON.parse(t);
|
|
2689
2692
|
} catch (r) {
|
|
2690
2693
|
throw w$6(i$1, r.message);
|
|
2691
2694
|
}
|
|
2692
|
-
var a = l$
|
|
2695
|
+
var a = l$4(i);
|
|
2693
2696
|
i$3.debug("[client dispatchEvent to js]", {
|
|
2694
2697
|
type: a.type,
|
|
2695
2698
|
detail: a.detail
|
|
2696
2699
|
}), window.dispatchEvent(a);
|
|
2697
2700
|
}
|
|
2698
|
-
function p$
|
|
2701
|
+
function p$3(t, a, d) {
|
|
2699
2702
|
void 0 === a && (a = {}), void 0 === d && (d = "");
|
|
2700
2703
|
var l = w$5();
|
|
2701
2704
|
if (!l) throw w$6(E$5, "Invalid featureToken for client features");
|
|
@@ -2716,7 +2719,7 @@ function w$1(t, e, l) {
|
|
|
2716
2719
|
}
|
|
2717
2720
|
n();
|
|
2718
2721
|
};
|
|
2719
|
-
s$
|
|
2722
|
+
s$3(t, _$a), p$3(t, e, l.callbackId);
|
|
2720
2723
|
})) : Promise.reject(w$6(E$5, "Invalid featureToken for client features"));
|
|
2721
2724
|
}
|
|
2722
2725
|
|
|
@@ -2742,7 +2745,7 @@ function r$1() {
|
|
|
2742
2745
|
})(a$8);
|
|
2743
2746
|
|
|
2744
2747
|
function G(t) {
|
|
2745
|
-
var e = l$
|
|
2748
|
+
var e = l$6("subWindowGetOrigin");
|
|
2746
2749
|
return f$6(e(t));
|
|
2747
2750
|
}
|
|
2748
2751
|
var V$1 = {};
|
|
@@ -2773,7 +2776,7 @@ var z$1, H$1, Q, X, Y, Z = function() {
|
|
|
2773
2776
|
}, t.prototype.clear = function() {
|
|
2774
2777
|
this.storage.clear();
|
|
2775
2778
|
}, t.prototype.getKeyPrefix = function() {
|
|
2776
|
-
return "".concat(l$
|
|
2779
|
+
return "".concat(l$b, ":").concat(this.getLiffId());
|
|
2777
2780
|
}, t.prototype.getLiffId = function() {
|
|
2778
2781
|
var _$t = c$7().liffId;
|
|
2779
2782
|
if (!_$t) throw w$6(n$2, "liffId is necessary for liff.init()");
|
|
@@ -2801,7 +2804,7 @@ function ot$1() {
|
|
|
2801
2804
|
}
|
|
2802
2805
|
function st$1() {
|
|
2803
2806
|
return _tslib.__awaiter(this, arguments, void 0, function(t) {
|
|
2804
|
-
return void 0 === t && (t = h$
|
|
2807
|
+
return void 0 === t && (t = h$3.MAIN), _tslib.__generator(this, function(e) {
|
|
2805
2808
|
switch(e.label){
|
|
2806
2809
|
case 0:
|
|
2807
2810
|
return [
|
|
@@ -3003,7 +3006,7 @@ function bt(i) {
|
|
|
3003
3006
|
st$1()
|
|
3004
3007
|
];
|
|
3005
3008
|
case 2:
|
|
3006
|
-
return a = e.sent(), u.searchParams.append(d$
|
|
3009
|
+
return a = e.sent(), u.searchParams.append(d$1, a.identification.identifier), u.searchParams.append(u$4, a.identification.cryptoKey), u.hostname = function(t) {
|
|
3007
3010
|
var _$e = _tslib.__read(t.split(".")), _$i = _$e[0], o = _$e.slice(1);
|
|
3008
3011
|
return _tslib.__spreadArray([
|
|
3009
3012
|
"".concat(_$i, "-ext")
|
|
@@ -3050,7 +3053,7 @@ function bt(i) {
|
|
|
3050
3053
|
}(window.setInterval(function() {
|
|
3051
3054
|
var _$t = rt$1();
|
|
3052
3055
|
_$t && _$t.closed && (ht(), nt$1(null), !1 === tt$1() && (et$1(!0), F(C$5.CLOSE, {})));
|
|
3053
|
-
}, p$
|
|
3056
|
+
}, p$9)), [
|
|
3054
3057
|
2
|
|
3055
3058
|
];
|
|
3056
3059
|
}
|
|
@@ -3113,7 +3116,7 @@ function St(i) {
|
|
|
3113
3116
|
5
|
|
3114
3117
|
]), [
|
|
3115
3118
|
4,
|
|
3116
|
-
p$
|
|
3119
|
+
p$4(l$6("subWindowSubscribe"), {
|
|
3117
3120
|
method: "POST",
|
|
3118
3121
|
body: JSON.stringify({
|
|
3119
3122
|
msit: o,
|
|
@@ -3275,7 +3278,7 @@ function Ct(n) {
|
|
|
3275
3278
|
var a = Object.assign({}, Pt, i);
|
|
3276
3279
|
return (function(t) {
|
|
3277
3280
|
var e = t.mainLiffId, _$n = t.subLiffId, r = t.mstChallenge, i = t.appData, o = t.view;
|
|
3278
|
-
return e && r ? f$6(l$
|
|
3281
|
+
return e && r ? f$6(l$6("subWindowGetMSIT"), {
|
|
3279
3282
|
method: "POST",
|
|
3280
3283
|
body: JSON.stringify({
|
|
3281
3284
|
mainLiffId: e,
|
|
@@ -3315,7 +3318,7 @@ function Ct(n) {
|
|
|
3315
3318
|
null === (o = n.onBeforeTransition) || void 0 === o ? void 0 : o.call(n)
|
|
3316
3319
|
];
|
|
3317
3320
|
case 1:
|
|
3318
|
-
return e.sent(), location.href = "".concat(m$
|
|
3321
|
+
return e.sent(), location.href = "".concat(m$7, "?url=").concat(encodeURIComponent(_$t), "&").concat(i.toString()), [
|
|
3319
3322
|
2
|
|
3320
3323
|
];
|
|
3321
3324
|
}
|
|
@@ -3330,13 +3333,13 @@ function Lt(t) {
|
|
|
3330
3333
|
function Et(t) {
|
|
3331
3334
|
if (!t.mst || !t.status) return Promise.reject(w$6(i$1, "no proper argument"));
|
|
3332
3335
|
var e = JSON.stringify(t);
|
|
3333
|
-
return f$6(l$
|
|
3336
|
+
return f$6(l$6("subWindowPost"), {
|
|
3334
3337
|
method: "POST",
|
|
3335
3338
|
body: e
|
|
3336
3339
|
});
|
|
3337
3340
|
}
|
|
3338
3341
|
function Nt() {
|
|
3339
|
-
if (!d$
|
|
3342
|
+
if (!d$3()) throw w$6(t, "this api can be only called in child window");
|
|
3340
3343
|
}
|
|
3341
3344
|
function Tt(n) {
|
|
3342
3345
|
return void 0 === n && (n = {}), Nt(), u$7() ? function() {
|
|
@@ -3462,7 +3465,7 @@ function Bt() {
|
|
|
3462
3465
|
}
|
|
3463
3466
|
function Dt(t) {
|
|
3464
3467
|
var e = t.msit, n = t.mstVerifier;
|
|
3465
|
-
return e && n ? f$6(l$
|
|
3468
|
+
return e && n ? f$6(l$6("subWindowGetMSTByMSIT"), {
|
|
3466
3469
|
method: "POST",
|
|
3467
3470
|
body: JSON.stringify({
|
|
3468
3471
|
msit: e,
|
|
@@ -3472,7 +3475,7 @@ function Dt(t) {
|
|
|
3472
3475
|
}
|
|
3473
3476
|
function At(t) {
|
|
3474
3477
|
var e = t.mst;
|
|
3475
|
-
return e ? f$6(l$
|
|
3478
|
+
return e ? f$6(l$6("subWindowGetAppData"), {
|
|
3476
3479
|
method: "POST",
|
|
3477
3480
|
body: JSON.stringify({
|
|
3478
3481
|
mst: e
|
|
@@ -3610,9 +3613,9 @@ var tinySha256 = {
|
|
|
3610
3613
|
});
|
|
3611
3614
|
}(tinySha256));
|
|
3612
3615
|
|
|
3613
|
-
var h$
|
|
3616
|
+
var h$2 = tinySha256.exports;
|
|
3614
3617
|
|
|
3615
|
-
var s$
|
|
3618
|
+
var s$2 = function s() {
|
|
3616
3619
|
var e = this;
|
|
3617
3620
|
this.type = "sync", this.fns = new Set, this.on = function(n) {
|
|
3618
3621
|
e.fns.add(n);
|
|
@@ -3674,8 +3677,8 @@ var s$3 = function s() {
|
|
|
3674
3677
|
};
|
|
3675
3678
|
};
|
|
3676
3679
|
|
|
3677
|
-
var v$
|
|
3678
|
-
var o, r = x$4(43), _$d = y$4(h$
|
|
3680
|
+
var v$2 = function v(i) {
|
|
3681
|
+
var o, r = x$4(43), _$d = y$4(h$2(r)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""), _ = c$7();
|
|
3679
3682
|
if (!_ || !_.liffId) throw w$6(n$2, "You need to define `liffId` for liff.login()");
|
|
3680
3683
|
var v = {
|
|
3681
3684
|
app_id: _.liffId,
|
|
@@ -3685,16 +3688,16 @@ var v$1 = function v(i) {
|
|
|
3685
3688
|
code_challenge: _$d,
|
|
3686
3689
|
liff_sdk_version: r$5()
|
|
3687
3690
|
};
|
|
3688
|
-
i && i.redirectUri && (v.redirect_uri = i.redirectUri), d$
|
|
3691
|
+
i && i.redirectUri && (v.redirect_uri = i.redirectUri), d$3() && !u$7() && ((null === (o = ut()) || void 0 === o ? void 0 : o.isReady()) ? v.redirect_uri = window.location.href : v.disable_auto_login = "true"), Q$1({
|
|
3689
3692
|
codeVerifier: r
|
|
3690
3693
|
});
|
|
3691
|
-
var w = l$
|
|
3694
|
+
var w = l$6("authorize") + "?" + A$3.stringify(v);
|
|
3692
3695
|
i$3.debug("[Redirect] ".concat(w)), window.location.href = w;
|
|
3693
3696
|
}, w = function(e) {
|
|
3694
3697
|
function t() {
|
|
3695
3698
|
var _$i = e.apply(this, _tslib.__spreadArray([], _tslib.__read(arguments), !1)) || this;
|
|
3696
3699
|
return _$i.hooks = {
|
|
3697
|
-
before: new s$
|
|
3700
|
+
before: new s$2
|
|
3698
3701
|
}, _$i;
|
|
3699
3702
|
}
|
|
3700
3703
|
return _tslib.__extends(t, e), Object.defineProperty(t.prototype, "name", {
|
|
@@ -3706,12 +3709,12 @@ var v$1 = function v(i) {
|
|
|
3706
3709
|
}), t.prototype.install = function() {
|
|
3707
3710
|
return this._login.bind(this);
|
|
3708
3711
|
}, t.prototype._login = function(i) {
|
|
3709
|
-
this.hooks.before.call(i), v$
|
|
3712
|
+
this.hooks.before.call(i), v$2(i);
|
|
3710
3713
|
}, t;
|
|
3711
3714
|
}(a$8);
|
|
3712
3715
|
|
|
3713
3716
|
var a$2, u$2 = "undefined" == typeof navigator ? "en" : null !== (a$2 = navigator.language) && void 0 !== a$2 ? a$2 : "en", c$3 = null;
|
|
3714
|
-
function l$
|
|
3717
|
+
function l$3(n) {
|
|
3715
3718
|
return _tslib.__awaiter(this, void 0, void 0, function() {
|
|
3716
3719
|
return _tslib.__generator(this, function(t) {
|
|
3717
3720
|
switch(t.label){
|
|
@@ -3761,11 +3764,11 @@ function f$3() {
|
|
|
3761
3764
|
});
|
|
3762
3765
|
});
|
|
3763
3766
|
}
|
|
3764
|
-
function p$
|
|
3767
|
+
function p$2(n) {
|
|
3765
3768
|
if (null === c$3) throw w$6(I$5, "please call xlt after liff.init");
|
|
3766
3769
|
return c$3[n];
|
|
3767
3770
|
}
|
|
3768
|
-
var d
|
|
3771
|
+
var d = function(i) {
|
|
3769
3772
|
function r() {
|
|
3770
3773
|
return null !== i && i.apply(this, arguments) || this;
|
|
3771
3774
|
}
|
|
@@ -3777,7 +3780,7 @@ var d$1 = function(i) {
|
|
|
3777
3780
|
configurable: !0
|
|
3778
3781
|
}), r.prototype.install = function(n) {
|
|
3779
3782
|
return n.internalHooks.init.beforeFinished(this.beforeInitFinished.bind(this)), {
|
|
3780
|
-
setLang: l$
|
|
3783
|
+
setLang: l$3
|
|
3781
3784
|
};
|
|
3782
3785
|
}, r.prototype.beforeInitFinished = function() {
|
|
3783
3786
|
return _tslib.__awaiter(this, void 0, void 0, function() {
|
|
@@ -3796,7 +3799,7 @@ var d$1 = function(i) {
|
|
|
3796
3799
|
});
|
|
3797
3800
|
});
|
|
3798
3801
|
}, r;
|
|
3799
|
-
}(a$8), h = new d
|
|
3802
|
+
}(a$8), h$1 = new d;
|
|
3800
3803
|
|
|
3801
3804
|
var Ee = {
|
|
3802
3805
|
iconColor: "#111111",
|
|
@@ -3852,7 +3855,7 @@ function De(t) {
|
|
|
3852
3855
|
}
|
|
3853
3856
|
function Oe(e) {
|
|
3854
3857
|
var t = e.iconColor, n = e.statusBarColor, r = e.titleTextColor, o = e.titleSubtextColor, i = e.titleButtonColor, a = e.titleBackgroundColor, _$c = e.progressBarColor, s = e.progressBackgroundColor, l = e.titleButtonAreaBackgroundColor, d = e.titleButtonAreaBorderColor, h = e.baseBackgroundColor, p = e.baseTextColor, v = e.lightButtonBorderColor;
|
|
3855
|
-
Ue("--liff-base-background-color", h), Ue("--liff-base-text-color", p), Ue("--liff-base-background-rgb-color", d$
|
|
3858
|
+
Ue("--liff-base-background-color", h), Ue("--liff-base-text-color", p), Ue("--liff-base-background-rgb-color", d$4(h)), Ue("--liff-base-text-rgb-color", d$4(p)), Ue("--liff-light-button-border-color", v), Ue("--liff-title-text-color", r), Ue("--liff-title-background-color", a), Ue("--liff-title-button-color", i), Ue("--liff-icon-color", t), Ue("--liff-status-bar-color", n), Ue("--liff-title-subtext-color", o), Ue("--liff-progress-bar-color", _$c), Ue("--liff-progress-background-color", s), Ue("--liff-title-button-area-background-color", s$6(l)), Ue("--liff-title-button-area-border-color", s$6(d));
|
|
3856
3859
|
}
|
|
3857
3860
|
function Ue(e, t) {
|
|
3858
3861
|
document.documentElement.style.setProperty(e, t);
|
|
@@ -3896,7 +3899,7 @@ function je() {
|
|
|
3896
3899
|
case 0:
|
|
3897
3900
|
return [
|
|
3898
3901
|
4,
|
|
3899
|
-
f$6(l$
|
|
3902
|
+
f$6(l$6("certs"))
|
|
3900
3903
|
];
|
|
3901
3904
|
case 1:
|
|
3902
3905
|
return [
|
|
@@ -3947,7 +3950,7 @@ function Re(e, o) {
|
|
|
3947
3950
|
return _tslib.__generator(this, function(n) {
|
|
3948
3951
|
switch(n.label){
|
|
3949
3952
|
case 0:
|
|
3950
|
-
return _$t = e.split("."), i = _tslib.__read(_$t, 3), a = i[0], _$c = i[1], s = i[2], l = JSON.parse(u$8.decode(a)), f = JSON.parse(u$8.decodeUnicode(_$c)), u = l$
|
|
3953
|
+
return _$t = e.split("."), i = _tslib.__read(_$t, 3), a = i[0], _$c = i[1], s = i[2], l = JSON.parse(u$8.decode(a)), f = JSON.parse(u$8.decodeUnicode(_$c)), u = l$a(u$8.decode(s)), v = l$a("".concat(a, ".").concat(_$c)), [
|
|
3951
3954
|
4,
|
|
3952
3955
|
je()
|
|
3953
3956
|
];
|
|
@@ -4053,7 +4056,7 @@ function ze(e, r) {
|
|
|
4053
4056
|
});
|
|
4054
4057
|
}
|
|
4055
4058
|
function Ge(e) {
|
|
4056
|
-
return f$6("".concat(l$
|
|
4059
|
+
return f$6("".concat(l$6("apps"), "/").concat(e, "/featureToken"));
|
|
4057
4060
|
}
|
|
4058
4061
|
function Qe(e) {
|
|
4059
4062
|
return _tslib.__awaiter(this, void 0, void 0, function() {
|
|
@@ -4093,8 +4096,8 @@ function Qe(e) {
|
|
|
4093
4096
|
id_token: X$1(),
|
|
4094
4097
|
client_id: j(),
|
|
4095
4098
|
mst_challenge: M(),
|
|
4096
|
-
mst_verifier: h$
|
|
4097
|
-
msit: v$
|
|
4099
|
+
mst_verifier: h$6(),
|
|
4100
|
+
msit: v$5()
|
|
4098
4101
|
}, _$t), qe() ? e$3() ? [
|
|
4099
4102
|
4,
|
|
4100
4103
|
Ge(e)
|
|
@@ -4108,7 +4111,7 @@ function Qe(e) {
|
|
|
4108
4111
|
case 1:
|
|
4109
4112
|
i = n.sent().featureToken, r.feature_token || (r.feature_token = i), n.label = 2;
|
|
4110
4113
|
case 2:
|
|
4111
|
-
(a = m$
|
|
4114
|
+
(a = m$6(e)) && (r.client_id = a), n.label = 3;
|
|
4112
4115
|
case 3:
|
|
4113
4116
|
return [
|
|
4114
4117
|
2,
|
|
@@ -4149,7 +4152,7 @@ function Ye(e) {
|
|
|
4149
4152
|
var _$n = function n() {
|
|
4150
4153
|
i$3.debug("ready event is fired"), u$3("ready", _$n), e();
|
|
4151
4154
|
};
|
|
4152
|
-
s$
|
|
4155
|
+
s$3("ready", _$n);
|
|
4153
4156
|
}
|
|
4154
4157
|
})
|
|
4155
4158
|
];
|
|
@@ -4164,7 +4167,7 @@ function Ye(e) {
|
|
|
4164
4167
|
I$3(He(o));
|
|
4165
4168
|
}
|
|
4166
4169
|
if (void 0 !== (null === (_ = E$3()) || void 0 === _ ? void 0 : _.liffId) && (null === (B = E$3()) || void 0 === B ? void 0 : B.liffId) !== e.liffId) throw w$6(I$5, "Invalid LIFF ID");
|
|
4167
|
-
return !d$
|
|
4170
|
+
return !d$3() && i && (!function(e, t) {
|
|
4168
4171
|
k("multipleLiffTransition") && Ke({
|
|
4169
4172
|
pathname: "app/".concat(e),
|
|
4170
4173
|
query: {
|
|
@@ -4179,7 +4182,7 @@ function Ye(e) {
|
|
|
4179
4182
|
5
|
|
4180
4183
|
] : qe() ? (h = E$4(location.href, {
|
|
4181
4184
|
"liff.hback": "2"
|
|
4182
|
-
}), v$
|
|
4185
|
+
}), v$2({
|
|
4183
4186
|
redirectUri: h
|
|
4184
4187
|
}), [
|
|
4185
4188
|
4,
|
|
@@ -4191,17 +4194,17 @@ function Ye(e) {
|
|
|
4191
4194
|
case 3:
|
|
4192
4195
|
n.sent(), n.label = 4;
|
|
4193
4196
|
case 4:
|
|
4194
|
-
throw v$
|
|
4197
|
+
throw v$2(), w$6(I$5, "Failed to parse feature_token or access_token");
|
|
4195
4198
|
case 5:
|
|
4196
4199
|
return r && i ? [
|
|
4197
4200
|
4,
|
|
4198
|
-
d$
|
|
4201
|
+
d$2(r)
|
|
4199
4202
|
] : [
|
|
4200
4203
|
3,
|
|
4201
4204
|
7
|
|
4202
4205
|
];
|
|
4203
4206
|
case 6:
|
|
4204
|
-
if (p = n.sent(), m = p.client_id, b = p.expires_in, k$1 = m$
|
|
4207
|
+
if (p = n.sent(), m = p.client_id, b = p.expires_in, k$1 = m$6(e.liffId), m !== k$1) throw v$2(), w$6(I$5, "Failed to verify access_token");
|
|
4205
4208
|
U$2(i), q$2(new Date(Date.now() + 1e3 * b)), B$1(r), n.label = 7;
|
|
4206
4209
|
case 7:
|
|
4207
4210
|
return [
|
|
@@ -4244,7 +4247,7 @@ function Ze(e) {
|
|
|
4244
4247
|
return _tslib.__generator(this, function(n) {
|
|
4245
4248
|
switch(n.label){
|
|
4246
4249
|
case 0:
|
|
4247
|
-
return _$t = l$
|
|
4250
|
+
return _$t = l$6("apps"), r = "".concat(_$t, "/").concat(e, "/contextToken"), o = x$3(), i = {
|
|
4248
4251
|
"Content-Type": "application/json",
|
|
4249
4252
|
Accept: "application/json"
|
|
4250
4253
|
}, o && (i.Authorization = "Bearer ".concat(o)), [
|
|
@@ -4305,7 +4308,7 @@ function et(e) {
|
|
|
4305
4308
|
code_verifier: f.codeVerifier,
|
|
4306
4309
|
redirect_uri: s.redirectUri || l.liffRedirectUri,
|
|
4307
4310
|
id_token_key_type: "JWK"
|
|
4308
|
-
}, d = A$3.stringify(u), f$6(l$
|
|
4311
|
+
}, d = A$3.stringify(u), f$6(l$6("token"), {
|
|
4309
4312
|
method: "POST",
|
|
4310
4313
|
headers: {
|
|
4311
4314
|
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
|
|
@@ -4383,7 +4386,7 @@ function tt() {
|
|
|
4383
4386
|
2
|
|
4384
4387
|
] : [
|
|
4385
4388
|
4,
|
|
4386
|
-
st$1(h$
|
|
4389
|
+
st$1(h$3.SUB)
|
|
4387
4390
|
];
|
|
4388
4391
|
case 1:
|
|
4389
4392
|
r = f.sent(), f.label = 2;
|
|
@@ -4543,7 +4546,7 @@ function rt(e, r) {
|
|
|
4543
4546
|
switch(n.label){
|
|
4544
4547
|
case 0:
|
|
4545
4548
|
if (!e.liffId) throw w$6(n$2, "liffId is necessary for liff.init()");
|
|
4546
|
-
return l$
|
|
4549
|
+
return l$9(e), !u$7() && e$3() && (z$2() || o$1()), _$t = A$3.parse(window.location.search), !d$3() || u$7() ? [
|
|
4547
4550
|
3,
|
|
4548
4551
|
2
|
|
4549
4552
|
] : [
|
|
@@ -4650,7 +4653,7 @@ var ot = function ot(e, t) {
|
|
|
4650
4653
|
4,
|
|
4651
4654
|
(_$n = x$4(6), new Promise(function() {
|
|
4652
4655
|
var e = document.createElement("div");
|
|
4653
|
-
e.innerHTML = '<lui-alert id="'.concat("liffAlert", "-").concat(_$n, '" shown title="').concat(p$
|
|
4656
|
+
e.innerHTML = '<lui-alert id="'.concat("liffAlert", "-").concat(_$n, '" shown title="').concat(p$2("alert.android.extBrowser.autoLoginWorkaround.title"), '" message="').concat(p$2("alert.android.extBrowser.autoLoginWorkaround.desc"), '" button="').concat(p$2("alert.android.extBrowser.autoLoginWorkaround.button.text"), '"></lui-alert>'), document.body.appendChild(e);
|
|
4654
4657
|
var _$t = document.getElementById("".concat("liffAlert", "-").concat(_$n));
|
|
4655
4658
|
_$t && _$t.addEventListener("lui-button-click", function() {
|
|
4656
4659
|
var e = window.open(E$4(window.location.href, {
|
|
@@ -4685,7 +4688,7 @@ function st() {
|
|
|
4685
4688
|
case 0:
|
|
4686
4689
|
return e = null !== (r = ct(window.location.href)) && void 0 !== r ? r : ct(window.document.referrer), !!e && f$8(e, "13.10.0") >= 0 ? [
|
|
4687
4690
|
2
|
|
4688
|
-
] : u$7() || "android" !== e$2() || (_$t = A$3.parse(window.location.search))[d$
|
|
4691
|
+
] : u$7() || "android" !== e$2() || (_$t = A$3.parse(window.location.search))[d$1] || _$t.liffIsEscapedFromApp ? [
|
|
4689
4692
|
2
|
|
4690
4693
|
] : _$t.liffClientId && document.referrer.includes("access.".concat("line.me")) ? (window.location.href = E$4(window.location.href, {
|
|
4691
4694
|
liffIsEscapedFromApp: "true"
|
|
@@ -4783,7 +4786,7 @@ var lt = function(e) {
|
|
|
4783
4786
|
return n.sent(), !e.withLoginOnExternalBrowser || e$3() ? [
|
|
4784
4787
|
3,
|
|
4785
4788
|
6
|
|
4786
|
-
] : (v$
|
|
4789
|
+
] : (v$2(), [
|
|
4787
4790
|
4,
|
|
4788
4791
|
new Promise(function() {})
|
|
4789
4792
|
]);
|
|
@@ -4904,7 +4907,7 @@ function I$2(r) {
|
|
|
4904
4907
|
return !!(null == _$t ? void 0 : _$t.scope.includes(e));
|
|
4905
4908
|
}(r) ? (_$e = x$3()) ? [
|
|
4906
4909
|
4,
|
|
4907
|
-
d$
|
|
4910
|
+
d$2(_$e)
|
|
4908
4911
|
] : [
|
|
4909
4912
|
3,
|
|
4910
4913
|
2
|
|
@@ -4952,7 +4955,7 @@ function A() {
|
|
|
4952
4955
|
}
|
|
4953
4956
|
function P$1() {
|
|
4954
4957
|
var e = c$7().liffId;
|
|
4955
|
-
if (e) return f$6("".concat(l$
|
|
4958
|
+
if (e) return f$6("".concat(l$6("unauthorizedPermissions"), "?liffId=").concat(e), {
|
|
4956
4959
|
headers: {
|
|
4957
4960
|
"Content-Type": "application/json",
|
|
4958
4961
|
Accept: "application/json",
|
|
@@ -5013,7 +5016,7 @@ var S$1, T = Jt.on, _ = Jt.off, q = Jt.open, x$1 = function() {
|
|
|
5013
5016
|
url: "".concat("https://liff.line.me/1656032314-Xgrw5Pmk"),
|
|
5014
5017
|
appData: {
|
|
5015
5018
|
liffId: t$1,
|
|
5016
|
-
channelId: m$
|
|
5019
|
+
channelId: m$6(t$1),
|
|
5017
5020
|
accessToken: x$3()
|
|
5018
5021
|
},
|
|
5019
5022
|
onBeforeTransition: e
|
|
@@ -5070,7 +5073,7 @@ function R$1() {
|
|
|
5070
5073
|
if (!(_$e = x$3())) throw w$6(t, "Need access_token for api call, Please login first");
|
|
5071
5074
|
return [
|
|
5072
5075
|
4,
|
|
5073
|
-
d$
|
|
5076
|
+
d$2(_$e)
|
|
5074
5077
|
];
|
|
5075
5078
|
case 1:
|
|
5076
5079
|
return n = t$1.sent(), [
|
|
@@ -5152,7 +5155,7 @@ var z = function(e) {
|
|
|
5152
5155
|
}(a$8), B = new z;
|
|
5153
5156
|
|
|
5154
5157
|
function n$1() {
|
|
5155
|
-
return f$6(l$
|
|
5158
|
+
return f$6(l$6("profile"));
|
|
5156
5159
|
}
|
|
5157
5160
|
(function(t) {
|
|
5158
5161
|
function e() {
|
|
@@ -5178,7 +5181,7 @@ var a$1 = function a(n, i) {
|
|
|
5178
5181
|
return -1 === n.indexOf("is_liff_external_open_window");
|
|
5179
5182
|
}).join("&").concat("".concat(i ? "#".concat(i) : ""))) : "".concat(i ? "#".concat(i) : "");
|
|
5180
5183
|
};
|
|
5181
|
-
function p$
|
|
5184
|
+
function p$1(n) {
|
|
5182
5185
|
if (!function(n) {
|
|
5183
5186
|
if (!n || "object" != typeof n) return !1;
|
|
5184
5187
|
var _$t = n, _$o = _$t.url, _$e = _$t.external, _$r = _tslib.__read([
|
|
@@ -5215,7 +5218,7 @@ function p$2(n) {
|
|
|
5215
5218
|
configurable: !0
|
|
5216
5219
|
}), t.prototype.install = function() {
|
|
5217
5220
|
return function(n) {
|
|
5218
|
-
return p$
|
|
5221
|
+
return p$1(n);
|
|
5219
5222
|
};
|
|
5220
5223
|
}, t;
|
|
5221
5224
|
})(a$8);
|
|
@@ -5227,20 +5230,20 @@ function _instanceof$1(left, right) {
|
|
|
5227
5230
|
return left instanceof right;
|
|
5228
5231
|
}
|
|
5229
5232
|
}
|
|
5230
|
-
var m$
|
|
5233
|
+
var m$2 = function m(r) {
|
|
5231
5234
|
return "object" == typeof r && null !== r && function(r) {
|
|
5232
5235
|
return "string" == typeof r || _instanceof$1(r, String);
|
|
5233
5236
|
}(r.type);
|
|
5234
5237
|
};
|
|
5235
|
-
function p
|
|
5238
|
+
function p(r) {
|
|
5236
5239
|
return Promise.reject(w$6(i$1, r));
|
|
5237
5240
|
}
|
|
5238
|
-
function l$
|
|
5241
|
+
function l$2(r) {
|
|
5239
5242
|
if (!function(r) {
|
|
5240
|
-
return Array.isArray(r) && r.every(m$
|
|
5241
|
-
}(r)) return p
|
|
5243
|
+
return Array.isArray(r) && r.every(m$2);
|
|
5244
|
+
}(r)) return p("Parameter 'messages' must be an array of { type, ... }");
|
|
5242
5245
|
var e = r.length;
|
|
5243
|
-
return e < 1 || e > 5 ? p
|
|
5246
|
+
return e < 1 || e > 5 ? p("Number of messages should be in range 1 to ".concat(5, ".")) : f$6(l$6("message"), {
|
|
5244
5247
|
method: "POST",
|
|
5245
5248
|
body: JSON.stringify({
|
|
5246
5249
|
messages: r
|
|
@@ -5264,12 +5267,12 @@ var c$2 = function c(r) {
|
|
|
5264
5267
|
enumerable: !1,
|
|
5265
5268
|
configurable: !0
|
|
5266
5269
|
}), t.prototype.install = function() {
|
|
5267
|
-
return V(l$
|
|
5270
|
+
return V(l$2, "chat_message.write");
|
|
5268
5271
|
}, t;
|
|
5269
5272
|
})(a$8);
|
|
5270
5273
|
|
|
5271
5274
|
function o() {
|
|
5272
|
-
return f$6(l$
|
|
5275
|
+
return f$6(l$6("friendship"));
|
|
5273
5276
|
}
|
|
5274
5277
|
(function(t) {
|
|
5275
5278
|
function e() {
|
|
@@ -5523,7 +5526,7 @@ var L$1 = function(c) {
|
|
|
5523
5526
|
}, p.prototype.initError = function() {
|
|
5524
5527
|
return this.injected && (this.setIsLiffSuccessful(!1), this.sendLiffInit()), Promise.resolve();
|
|
5525
5528
|
}, p;
|
|
5526
|
-
}(a$8), v = function v(t) {
|
|
5529
|
+
}(a$8), v$1 = function v(t) {
|
|
5527
5530
|
i$3.warn("[LIFF Analytics] LIFF Analytics is deprecated and will be removed in a future version. Please migrate to alternative analytics solutions. Called function: sendShareTargetPicker"), i$3.debug("[LIFFUTS][sendCustom] liff.shareTargetPicker"), t.sendCustom({
|
|
5528
5531
|
type: "liffSdk",
|
|
5529
5532
|
params: {
|
|
@@ -5532,7 +5535,7 @@ var L$1 = function(c) {
|
|
|
5532
5535
|
});
|
|
5533
5536
|
};
|
|
5534
5537
|
|
|
5535
|
-
var s$
|
|
5538
|
+
var s$1, u$1 = function() {
|
|
5536
5539
|
function o(o, t) {
|
|
5537
5540
|
var n = this;
|
|
5538
5541
|
this.resolve = o, this.reject = t, this.onSubmit = function(o) {
|
|
@@ -5555,26 +5558,26 @@ var s$2, u$1 = function() {
|
|
|
5555
5558
|
return o.prototype.start = function() {
|
|
5556
5559
|
Jt.on("submit", this.onSubmit), Jt.on("close", this.onClose), Jt.on("cancel", this.onCancel), Jt.on("error", this.onError);
|
|
5557
5560
|
}, o.prototype.destroy = function() {
|
|
5558
|
-
Jt.off("submit", this.onSubmit), Jt.off("close", this.onClose), Jt.off("cancel", this.onCancel), Jt.off("error", this.onError), s$
|
|
5561
|
+
Jt.off("submit", this.onSubmit), Jt.off("close", this.onClose), Jt.off("cancel", this.onCancel), Jt.off("error", this.onError), s$1 = void 0;
|
|
5559
5562
|
}, o;
|
|
5560
5563
|
}();
|
|
5561
5564
|
function f$1() {
|
|
5562
5565
|
return _tslib.__awaiter(this, void 0, void 0, function() {
|
|
5563
5566
|
return _tslib.__generator(this, function(o) {
|
|
5564
|
-
return H$2.scanCodeV2(), s$
|
|
5567
|
+
return H$2.scanCodeV2(), s$1 && s$1.destroy(), [
|
|
5565
5568
|
2,
|
|
5566
5569
|
new Promise(function(o, t) {
|
|
5567
|
-
s$
|
|
5570
|
+
s$1 = new u$1(o, t), Jt.open({
|
|
5568
5571
|
url: "https://liff.line.me/1656359117-jxmx5e11"
|
|
5569
5572
|
}).catch(function(o) {
|
|
5570
|
-
null == s$
|
|
5573
|
+
null == s$1 || s$1.destroy(), t(o);
|
|
5571
5574
|
});
|
|
5572
5575
|
})
|
|
5573
5576
|
];
|
|
5574
5577
|
});
|
|
5575
5578
|
});
|
|
5576
5579
|
}
|
|
5577
|
-
var l = function(t) {
|
|
5580
|
+
var l$1 = function(t) {
|
|
5578
5581
|
function n() {
|
|
5579
5582
|
return null !== t && t.apply(this, arguments) || this;
|
|
5580
5583
|
}
|
|
@@ -5587,13 +5590,13 @@ var l = function(t) {
|
|
|
5587
5590
|
}), n.prototype.install = function() {
|
|
5588
5591
|
return f$1;
|
|
5589
5592
|
}, n;
|
|
5590
|
-
}(a$8), c$1 = new l;
|
|
5593
|
+
}(a$8), c$1 = new l$1;
|
|
5591
5594
|
|
|
5592
5595
|
var n = {};
|
|
5593
5596
|
function i() {
|
|
5594
5597
|
return n;
|
|
5595
5598
|
}
|
|
5596
|
-
function s
|
|
5599
|
+
function s(e, r) {
|
|
5597
5600
|
var o = i(), n = _tslib.__read(r.split("."), 1)[0], s = o[r];
|
|
5598
5601
|
s && e.removeEventListener(n, s), o[r] = null;
|
|
5599
5602
|
}
|
|
@@ -5616,7 +5619,7 @@ function c(e, r, o, i) {
|
|
|
5616
5619
|
var c = _tslib.__read(r.split("."), 1)[0];
|
|
5617
5620
|
return new Promise(function(t) {
|
|
5618
5621
|
var f = function f(n) {
|
|
5619
|
-
t(n), o && o(n), i && i.once && s
|
|
5622
|
+
t(n), o && o(n), i && i.once && s(e, r);
|
|
5620
5623
|
};
|
|
5621
5624
|
!function(t, e) {
|
|
5622
5625
|
n[t] = e;
|
|
@@ -5635,7 +5638,7 @@ function u(t, o, n, i) {
|
|
|
5635
5638
|
};
|
|
5636
5639
|
t.postMessage(s, i);
|
|
5637
5640
|
}
|
|
5638
|
-
function m(t, e, r, n) {
|
|
5641
|
+
function m$1(t, e, r, n) {
|
|
5639
5642
|
c(t, "message.".concat(e), function(t, e, r) {
|
|
5640
5643
|
return function(n) {
|
|
5641
5644
|
i$3.debug("messageReceive", n), n.origin === r && n.data.name === t && e(n);
|
|
@@ -5709,7 +5712,7 @@ var R = function() {
|
|
|
5709
5712
|
this.finalize(), this.resetAllVariables();
|
|
5710
5713
|
}, i.prototype.finalize = function() {
|
|
5711
5714
|
var t, e;
|
|
5712
|
-
this.abortController && this.abortController.abort(), u$7() || (t = this.timeoutIDForHealthCheck, e = this.popupWindow, s
|
|
5715
|
+
this.abortController && this.abortController.abort(), u$7() || (t = this.timeoutIDForHealthCheck, e = this.popupWindow, s(window, "message.receivedHealthcheck"), t && clearTimeout(t), e && !e.closed && e.close());
|
|
5713
5716
|
}, i.prototype.buildPayloadToShareTargetPicker = function(t) {
|
|
5714
5717
|
return {
|
|
5715
5718
|
messages: t.messages,
|
|
@@ -5717,14 +5720,14 @@ var R = function() {
|
|
|
5717
5720
|
referrer: t.referrer
|
|
5718
5721
|
};
|
|
5719
5722
|
}, i.prototype.initAllowPostMessageOrigin = function(t) {
|
|
5720
|
-
return void 0 === t && (t = l$
|
|
5723
|
+
return void 0 === t && (t = l$6("shareTargetPicker")), T$3(t);
|
|
5721
5724
|
}, i.prototype.initOtt = function() {
|
|
5722
5725
|
return _tslib.__awaiter(this, void 0, void 0, function() {
|
|
5723
5726
|
var _$t, _$i, r;
|
|
5724
5727
|
return _tslib.__generator(this, function(e) {
|
|
5725
5728
|
switch(e.label){
|
|
5726
5729
|
case 0:
|
|
5727
|
-
return this.abortController && (_$t = this.abortController.signal), _$i = "".concat(l$
|
|
5730
|
+
return this.abortController && (_$t = this.abortController.signal), _$i = "".concat(l$6("shareTargetPickerOtt"), "/").concat(this.liffId, "/ott"), r = this, [
|
|
5728
5731
|
4,
|
|
5729
5732
|
f$6(_$i, {
|
|
5730
5733
|
method: "GET",
|
|
@@ -5756,13 +5759,13 @@ var R = function() {
|
|
|
5756
5759
|
liffId: e,
|
|
5757
5760
|
ott: i
|
|
5758
5761
|
};
|
|
5759
|
-
t.location.href = "".concat(l$
|
|
5762
|
+
t.location.href = "".concat(l$6("shareTargetPicker"), "?").concat(A$3.stringify(r));
|
|
5760
5763
|
}(this.popupWindow, this.liffId, this.ott);
|
|
5761
5764
|
}
|
|
5762
5765
|
var t, e, _$i, r;
|
|
5763
5766
|
}, i.prototype.initListener = function() {
|
|
5764
5767
|
var t, e;
|
|
5765
|
-
u$7() || (t = this.onReceivedHealthcheck.bind(this), e = this.allowPostMessageOrigin, m(window, "receivedHealthcheck", t, e));
|
|
5768
|
+
u$7() || (t = this.onReceivedHealthcheck.bind(this), e = this.allowPostMessageOrigin, m$1(window, "receivedHealthcheck", t, e));
|
|
5766
5769
|
}, i.prototype.healthCheck = function() {
|
|
5767
5770
|
return _tslib.__awaiter(this, void 0, void 0, function() {
|
|
5768
5771
|
var _$t;
|
|
@@ -5836,7 +5839,7 @@ var R = function() {
|
|
|
5836
5839
|
ott: this.ott
|
|
5837
5840
|
}, [
|
|
5838
5841
|
4,
|
|
5839
|
-
f$6("".concat(l$
|
|
5842
|
+
f$6("".concat(l$6("shareTargetPickerResult"), "?").concat(A$3.stringify(_$i)), {
|
|
5840
5843
|
method: "POST",
|
|
5841
5844
|
signal: _$t,
|
|
5842
5845
|
headers: {
|
|
@@ -5864,7 +5867,7 @@ var R = function() {
|
|
|
5864
5867
|
ott: this.ott
|
|
5865
5868
|
}, i$3.debug("fetch: getShareResult"), [
|
|
5866
5869
|
2,
|
|
5867
|
-
f$6("".concat(l$
|
|
5870
|
+
f$6("".concat(l$6("shareTargetPickerResult"), "?").concat(A$3.stringify(_$i)), {
|
|
5868
5871
|
method: "GET",
|
|
5869
5872
|
headers: {
|
|
5870
5873
|
Accept: "application/json"
|
|
@@ -5934,14 +5937,14 @@ var R = function() {
|
|
|
5934
5937
|
return _tslib.__awaiter(_$i, _tslib.__spreadArray([
|
|
5935
5938
|
n
|
|
5936
5939
|
], _tslib.__read(_$c), !1), void 0, function(t, i) {
|
|
5937
|
-
var _$r, _$o, _$n, _$c, u, f, v
|
|
5940
|
+
var _$r, _$o, _$n, _$c, u, f, v;
|
|
5938
5941
|
return void 0 === i && (i = {}), _tslib.__generator(this, function(e) {
|
|
5939
5942
|
switch(e.label){
|
|
5940
5943
|
case 0:
|
|
5941
5944
|
if (H$2.shareTargetPicker(), !t || !Array.isArray(t) || 0 === t.length) throw w$6(i$1, "no proper argument");
|
|
5942
5945
|
if (t.length > O$4) throw w$6(i$1, "exceed the limit of num of messages");
|
|
5943
5946
|
if (!(_$r = c$7().liffId)) throw w$6(n$2);
|
|
5944
|
-
window.liff && (_$o = window.liff).analytics && v(_$o.analytics), _$n = void 0 === i.isMultiple || i.isMultiple, e.label = 1;
|
|
5947
|
+
window.liff && (_$o = window.liff).analytics && v$1(_$o.analytics), _$n = void 0 === i.isMultiple || i.isMultiple, e.label = 1;
|
|
5945
5948
|
case 1:
|
|
5946
5949
|
return e.trys.push([
|
|
5947
5950
|
1,
|
|
@@ -5968,7 +5971,7 @@ var R = function() {
|
|
|
5968
5971
|
e.sent()
|
|
5969
5972
|
];
|
|
5970
5973
|
case 3:
|
|
5971
|
-
throw _instanceof(v
|
|
5974
|
+
throw _instanceof(v = e.sent(), h$7) ? v : w$6(N$2, v.message);
|
|
5972
5975
|
case 4:
|
|
5973
5976
|
return [
|
|
5974
5977
|
2
|
|
@@ -5995,7 +5998,7 @@ function S(n, e) {
|
|
|
5995
5998
|
return _tslib.__generator(this, function(r) {
|
|
5996
5999
|
switch(r.label){
|
|
5997
6000
|
case 0:
|
|
5998
|
-
return _$t = l$
|
|
6001
|
+
return _$t = l$6("createShortcutOnHomeScreen"), (i = new URL(_$t)).searchParams.append("liffId", n), i.searchParams.append("url", e.url), e.description && i.searchParams.append("description", e.description), [
|
|
5999
6002
|
4,
|
|
6000
6003
|
f$6(i.toString())
|
|
6001
6004
|
];
|
|
@@ -6033,7 +6036,7 @@ function I(n, e) {
|
|
|
6033
6036
|
S(n, e)
|
|
6034
6037
|
]);
|
|
6035
6038
|
case 2:
|
|
6036
|
-
return _$t = r.sent(), p$
|
|
6039
|
+
return _$t = r.sent(), p$1({
|
|
6037
6040
|
url: _$t,
|
|
6038
6041
|
external: !0
|
|
6039
6042
|
}), [
|
|
@@ -6076,7 +6079,7 @@ function P(n, e) {
|
|
|
6076
6079
|
S(n, e)
|
|
6077
6080
|
];
|
|
6078
6081
|
case 1:
|
|
6079
|
-
return _$t = r.sent(), p$
|
|
6082
|
+
return _$t = r.sent(), p$1({
|
|
6080
6083
|
url: _$t,
|
|
6081
6084
|
external: !0
|
|
6082
6085
|
}), [
|
|
@@ -6199,7 +6202,7 @@ var C = function(t) {
|
|
|
6199
6202
|
}, r;
|
|
6200
6203
|
}(a$8);
|
|
6201
6204
|
|
|
6202
|
-
function
|
|
6205
|
+
function l(e) {
|
|
6203
6206
|
return _tslib.__awaiter(this, arguments, void 0, function(t) {
|
|
6204
6207
|
var e = t.productIds;
|
|
6205
6208
|
return _tslib.__generator(this, function(t) {
|
|
@@ -6225,18 +6228,60 @@ function s(e) {
|
|
|
6225
6228
|
});
|
|
6226
6229
|
});
|
|
6227
6230
|
}
|
|
6228
|
-
var
|
|
6231
|
+
var h = function h(e) {
|
|
6232
|
+
return _tslib.__awaiter(void 0, [
|
|
6233
|
+
e
|
|
6234
|
+
], void 0, function(t) {
|
|
6235
|
+
var _$e = t.productId, o = t.orderId;
|
|
6236
|
+
return _tslib.__generator(this, function(t) {
|
|
6237
|
+
switch(t.label){
|
|
6238
|
+
case 0:
|
|
6239
|
+
if (!window.confirm("Proceed with a test in-app purchase?")) throw w$6("CANCELED", "Transaction was canceled.");
|
|
6240
|
+
return [
|
|
6241
|
+
4,
|
|
6242
|
+
f$6(l$6("iapVirtualConfirm"), {
|
|
6243
|
+
method: "POST",
|
|
6244
|
+
body: JSON.stringify({
|
|
6245
|
+
productId: _$e,
|
|
6246
|
+
orderId: o
|
|
6247
|
+
})
|
|
6248
|
+
})
|
|
6249
|
+
];
|
|
6250
|
+
case 1:
|
|
6251
|
+
return t.sent(), [
|
|
6252
|
+
2
|
|
6253
|
+
];
|
|
6254
|
+
}
|
|
6255
|
+
});
|
|
6256
|
+
});
|
|
6257
|
+
}, m = function m(e) {
|
|
6229
6258
|
return _tslib.__awaiter(void 0, [
|
|
6230
6259
|
e
|
|
6231
6260
|
], void 0, function(t) {
|
|
6232
|
-
var _$e = t.productId, n = t.orderId;
|
|
6261
|
+
var _$e, o = t.productId, n = t.orderId;
|
|
6233
6262
|
return _tslib.__generator(this, function(t) {
|
|
6234
6263
|
switch(t.label){
|
|
6235
6264
|
case 0:
|
|
6265
|
+
return (null == (_$e = E$3()) ? void 0 : _$e.isIapSandbox) ? [
|
|
6266
|
+
4,
|
|
6267
|
+
h({
|
|
6268
|
+
productId: o,
|
|
6269
|
+
orderId: n
|
|
6270
|
+
})
|
|
6271
|
+
] : [
|
|
6272
|
+
3,
|
|
6273
|
+
2
|
|
6274
|
+
];
|
|
6275
|
+
case 1:
|
|
6276
|
+
case 3:
|
|
6277
|
+
return t.sent(), [
|
|
6278
|
+
2
|
|
6279
|
+
];
|
|
6280
|
+
case 2:
|
|
6236
6281
|
return [
|
|
6237
6282
|
4,
|
|
6238
6283
|
w$1("iap.createPayment", {
|
|
6239
|
-
productId:
|
|
6284
|
+
productId: o,
|
|
6240
6285
|
orderId: n
|
|
6241
6286
|
}).catch(function(t) {
|
|
6242
6287
|
if (t.code && t.description) throw w$6(t.code, t.description);
|
|
@@ -6245,24 +6290,20 @@ var d = function d(e) {
|
|
|
6245
6290
|
});
|
|
6246
6291
|
})
|
|
6247
6292
|
];
|
|
6248
|
-
case 1:
|
|
6249
|
-
return t.sent(), [
|
|
6250
|
-
2
|
|
6251
|
-
];
|
|
6252
6293
|
}
|
|
6253
6294
|
});
|
|
6254
6295
|
});
|
|
6255
|
-
},
|
|
6256
|
-
function
|
|
6296
|
+
}, v = function(i) {
|
|
6297
|
+
function s() {
|
|
6257
6298
|
return null !== i && i.apply(this, arguments) || this;
|
|
6258
6299
|
}
|
|
6259
|
-
return _tslib.__extends(
|
|
6300
|
+
return _tslib.__extends(s, i), Object.defineProperty(s.prototype, "name", {
|
|
6260
6301
|
get: function get() {
|
|
6261
6302
|
return "iap";
|
|
6262
6303
|
},
|
|
6263
6304
|
enumerable: !1,
|
|
6264
6305
|
configurable: !0
|
|
6265
|
-
}),
|
|
6306
|
+
}), s.prototype.install = function() {
|
|
6266
6307
|
var _$e = this;
|
|
6267
6308
|
return {
|
|
6268
6309
|
getPlatformProducts: function getPlatformProducts() {
|
|
@@ -6271,7 +6312,7 @@ var d = function d(e) {
|
|
|
6271
6312
|
return _tslib.__generator(this, function(t) {
|
|
6272
6313
|
return H$2.iap(), [
|
|
6273
6314
|
2,
|
|
6274
|
-
|
|
6315
|
+
l.apply(void 0, _tslib.__spreadArray([], _tslib.__read(_$i), !1))
|
|
6275
6316
|
];
|
|
6276
6317
|
});
|
|
6277
6318
|
});
|
|
@@ -6282,7 +6323,7 @@ var d = function d(e) {
|
|
|
6282
6323
|
return _tslib.__generator(this, function(t) {
|
|
6283
6324
|
return H$2.iap(), [
|
|
6284
6325
|
2,
|
|
6285
|
-
|
|
6326
|
+
m.apply(void 0, _tslib.__spreadArray([], _tslib.__read(_$i), !1))
|
|
6286
6327
|
];
|
|
6287
6328
|
});
|
|
6288
6329
|
});
|
|
@@ -6317,7 +6358,7 @@ var d = function d(e) {
|
|
|
6317
6358
|
});
|
|
6318
6359
|
}
|
|
6319
6360
|
};
|
|
6320
|
-
},
|
|
6361
|
+
}, s;
|
|
6321
6362
|
}(a$8);
|
|
6322
6363
|
|
|
6323
6364
|
var liffInstance = {};
|
|
@@ -6383,7 +6424,7 @@ var liff$1 = Object.defineProperties(liffInstance, {
|
|
|
6383
6424
|
writable: true
|
|
6384
6425
|
},
|
|
6385
6426
|
openWindow: {
|
|
6386
|
-
value: p$
|
|
6427
|
+
value: p$1,
|
|
6387
6428
|
enumerable: true,
|
|
6388
6429
|
writable: true
|
|
6389
6430
|
},
|
|
@@ -6428,7 +6469,7 @@ var liff$1 = Object.defineProperties(liffInstance, {
|
|
|
6428
6469
|
writable: true
|
|
6429
6470
|
},
|
|
6430
6471
|
sendMessages: {
|
|
6431
|
-
value: V(l$
|
|
6472
|
+
value: V(l$2, "chat_message.write"),
|
|
6432
6473
|
enumerable: true,
|
|
6433
6474
|
writable: true
|
|
6434
6475
|
},
|
|
@@ -6449,7 +6490,7 @@ var liff$1 = Object.defineProperties(liffInstance, {
|
|
|
6449
6490
|
enumerable: true
|
|
6450
6491
|
},
|
|
6451
6492
|
_dispatchEvent: {
|
|
6452
|
-
value: v$
|
|
6493
|
+
value: v$3,
|
|
6453
6494
|
enumerable: true,
|
|
6454
6495
|
writable: true
|
|
6455
6496
|
},
|
|
@@ -6459,7 +6500,7 @@ var liff$1 = Object.defineProperties(liffInstance, {
|
|
|
6459
6500
|
writable: true
|
|
6460
6501
|
},
|
|
6461
6502
|
_addListener: {
|
|
6462
|
-
value: s$
|
|
6503
|
+
value: s$3,
|
|
6463
6504
|
enumerable: true,
|
|
6464
6505
|
writable: true
|
|
6465
6506
|
},
|
|
@@ -6469,13 +6510,13 @@ var liff$1 = Object.defineProperties(liffInstance, {
|
|
|
6469
6510
|
writable: true
|
|
6470
6511
|
},
|
|
6471
6512
|
_postMessage: {
|
|
6472
|
-
value: p$
|
|
6513
|
+
value: p$3,
|
|
6473
6514
|
enumerable: true,
|
|
6474
6515
|
writable: true
|
|
6475
6516
|
}
|
|
6476
6517
|
});
|
|
6477
6518
|
var driver = new u$9();
|
|
6478
|
-
var contextHolder = new s$
|
|
6519
|
+
var contextHolder = new s$8(driver, liff$1);
|
|
6479
6520
|
var use = new c$b(driver, contextHolder).install();
|
|
6480
6521
|
function applyModule(module) {
|
|
6481
6522
|
use.call(liff$1, module);
|
|
@@ -6487,14 +6528,14 @@ function applyModule(module) {
|
|
|
6487
6528
|
new L$1(),
|
|
6488
6529
|
c$1,
|
|
6489
6530
|
R$2,
|
|
6490
|
-
m$
|
|
6531
|
+
m$5,
|
|
6491
6532
|
B,
|
|
6492
6533
|
E,
|
|
6493
|
-
h,
|
|
6534
|
+
h$1,
|
|
6494
6535
|
new f$7(),
|
|
6495
6536
|
new C(),
|
|
6496
6537
|
new N(),
|
|
6497
|
-
new
|
|
6538
|
+
new v()
|
|
6498
6539
|
].forEach(applyModule);
|
|
6499
6540
|
var liff = liff$1;
|
|
6500
6541
|
|