@memberstack/dom 1.9.2 → 1.9.3
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/lib/auth/index.d.ts +7 -0
- package/lib/auth/{persistence/methods.js → index.js} +15 -25
- package/lib/constants/endpoints.d.ts +3 -0
- package/lib/constants/{endpoint.js → endpoints.js} +1 -2
- package/lib/index.d.ts +41 -48
- package/lib/methods/dom/index.d.ts +0 -2
- package/lib/methods/dom/index.js +0 -12
- package/lib/methods/dom/main-dom.js +156 -273
- package/lib/methods/dom/methods.d.ts +2 -14
- package/lib/methods/dom/methods.js +21 -85
- package/lib/methods/index.d.ts +42 -61
- package/lib/methods/index.js +20 -72
- package/lib/methods/requests/index.d.ts +55 -0
- package/lib/methods/requests/index.js +615 -0
- package/lib/methods/requests/requests.d.ts +24 -0
- package/lib/methods/requests/requests.js +113 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/{auth/persistence → types}/index.js +7 -2
- package/lib/types/params.d.ts +143 -0
- package/lib/types/params.js +2 -0
- package/lib/types/payloads.d.ts +45 -0
- package/lib/types/payloads.js +2 -0
- package/lib/types/utils/payloads.d.ts +222 -0
- package/lib/types/utils/payloads.js +3 -0
- package/lib/utils/cookies.d.ts +1 -1
- package/lib/utils/cookies.js +3 -3
- package/package.json +10 -4
- package/lib/auth/persistence/index.d.ts +0 -1
- package/lib/auth/persistence/local.d.ts +0 -5
- package/lib/auth/persistence/local.js +0 -20
- package/lib/auth/persistence/methods.d.ts +0 -13
- package/lib/auth/persistence/session.d.ts +0 -5
- package/lib/auth/persistence/session.js +0 -20
- package/lib/constants/cookies.d.ts +0 -3
- package/lib/constants/cookies.js +0 -7
- package/lib/constants/endpoint.d.ts +0 -4
- package/lib/constants/storage.d.ts +0 -1
- package/lib/constants/storage.js +0 -4
- package/lib/constants/window.d.ts +0 -4
- package/lib/constants/window.js +0 -7
- package/lib/methods/client.d.ts +0 -43
- package/lib/methods/client.js +0 -35
- package/lib/methods/dom/script.d.ts +0 -3
- package/lib/methods/dom/script.js +0 -50
- package/lib/utils/interceptor.d.ts +0 -4
- package/lib/utils/interceptor.js +0 -18
- package/lib/utils/logger.d.ts +0 -3
- package/lib/utils/logger.js +0 -51
- package/lib/utils/proxy.d.ts +0 -2
- package/lib/utils/proxy.js +0 -105
|
@@ -464,7 +464,7 @@ var SvelteComponent = /** @class */ (function () {
|
|
|
464
464
|
return SvelteComponent;
|
|
465
465
|
}());
|
|
466
466
|
/* src/icons/LoadingIcon.svelte generated by Svelte v3.48.0 */
|
|
467
|
-
function create_fragment$
|
|
467
|
+
function create_fragment$t(ctx) {
|
|
468
468
|
var svg;
|
|
469
469
|
var path;
|
|
470
470
|
var animateTransform;
|
|
@@ -509,13 +509,13 @@ var LoadingIcon = /** @class */ (function (_super) {
|
|
|
509
509
|
__extends(LoadingIcon, _super);
|
|
510
510
|
function LoadingIcon(options) {
|
|
511
511
|
var _this = _super.call(this) || this;
|
|
512
|
-
init(_this, options, null, create_fragment$
|
|
512
|
+
init(_this, options, null, create_fragment$t, safe_not_equal, {});
|
|
513
513
|
return _this;
|
|
514
514
|
}
|
|
515
515
|
return LoadingIcon;
|
|
516
516
|
}(SvelteComponent));
|
|
517
517
|
/* src/components/Loader.svelte generated by Svelte v3.48.0 */
|
|
518
|
-
function create_fragment$
|
|
518
|
+
function create_fragment$s(ctx) {
|
|
519
519
|
var div;
|
|
520
520
|
var loadingicon;
|
|
521
521
|
var current;
|
|
@@ -553,13 +553,13 @@ var Loader = /** @class */ (function (_super) {
|
|
|
553
553
|
__extends(Loader, _super);
|
|
554
554
|
function Loader(options) {
|
|
555
555
|
var _this = _super.call(this) || this;
|
|
556
|
-
init(_this, options, null, create_fragment$
|
|
556
|
+
init(_this, options, null, create_fragment$s, safe_not_equal, {});
|
|
557
557
|
return _this;
|
|
558
558
|
}
|
|
559
559
|
return Loader;
|
|
560
560
|
}(SvelteComponent));
|
|
561
561
|
/* src/icons/CloseIcon.svelte generated by Svelte v3.48.0 */
|
|
562
|
-
function create_fragment$
|
|
562
|
+
function create_fragment$r(ctx) {
|
|
563
563
|
var svg;
|
|
564
564
|
var path;
|
|
565
565
|
return {
|
|
@@ -591,13 +591,13 @@ var CloseIcon = /** @class */ (function (_super) {
|
|
|
591
591
|
__extends(CloseIcon, _super);
|
|
592
592
|
function CloseIcon(options) {
|
|
593
593
|
var _this = _super.call(this) || this;
|
|
594
|
-
init(_this, options, null, create_fragment$
|
|
594
|
+
init(_this, options, null, create_fragment$r, safe_not_equal, {});
|
|
595
595
|
return _this;
|
|
596
596
|
}
|
|
597
597
|
return CloseIcon;
|
|
598
598
|
}(SvelteComponent));
|
|
599
599
|
/* src/components/CloseButton.svelte generated by Svelte v3.48.0 */
|
|
600
|
-
function create_fragment$
|
|
600
|
+
function create_fragment$q(ctx) {
|
|
601
601
|
var div;
|
|
602
602
|
var button;
|
|
603
603
|
var closeicon;
|
|
@@ -660,13 +660,13 @@ var CloseButton = /** @class */ (function (_super) {
|
|
|
660
660
|
__extends(CloseButton, _super);
|
|
661
661
|
function CloseButton(options) {
|
|
662
662
|
var _this = _super.call(this) || this;
|
|
663
|
-
init(_this, options, instance$d, create_fragment$
|
|
663
|
+
init(_this, options, instance$d, create_fragment$q, safe_not_equal, { closeModal: 0 });
|
|
664
664
|
return _this;
|
|
665
665
|
}
|
|
666
666
|
return CloseButton;
|
|
667
667
|
}(SvelteComponent));
|
|
668
668
|
/* src/icons/MemberstackIcon.svelte generated by Svelte v3.48.0 */
|
|
669
|
-
function create_fragment$
|
|
669
|
+
function create_fragment$p(ctx) {
|
|
670
670
|
var svg;
|
|
671
671
|
var path0;
|
|
672
672
|
var path1;
|
|
@@ -720,13 +720,13 @@ var MemberstackIcon = /** @class */ (function (_super) {
|
|
|
720
720
|
__extends(MemberstackIcon, _super);
|
|
721
721
|
function MemberstackIcon(options) {
|
|
722
722
|
var _this = _super.call(this) || this;
|
|
723
|
-
init(_this, options, null, create_fragment$
|
|
723
|
+
init(_this, options, null, create_fragment$p, safe_not_equal, {});
|
|
724
724
|
return _this;
|
|
725
725
|
}
|
|
726
726
|
return MemberstackIcon;
|
|
727
727
|
}(SvelteComponent));
|
|
728
728
|
/* src/components/FigureElement.svelte generated by Svelte v3.48.0 */
|
|
729
|
-
function create_fragment$
|
|
729
|
+
function create_fragment$o(ctx) {
|
|
730
730
|
var figure;
|
|
731
731
|
var memberstackicon;
|
|
732
732
|
var current;
|
|
@@ -764,7 +764,7 @@ var FigureElement = /** @class */ (function (_super) {
|
|
|
764
764
|
__extends(FigureElement, _super);
|
|
765
765
|
function FigureElement(options) {
|
|
766
766
|
var _this = _super.call(this) || this;
|
|
767
|
-
init(_this, options, null, create_fragment$
|
|
767
|
+
init(_this, options, null, create_fragment$o, safe_not_equal, {});
|
|
768
768
|
return _this;
|
|
769
769
|
}
|
|
770
770
|
return FigureElement;
|
|
@@ -833,7 +833,7 @@ function create_if_block$6(ctx) {
|
|
|
833
833
|
}
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
|
-
function create_fragment$
|
|
836
|
+
function create_fragment$n(ctx) {
|
|
837
837
|
var div;
|
|
838
838
|
var current_block_type_index;
|
|
839
839
|
var if_block;
|
|
@@ -914,13 +914,13 @@ var SubmitButton = /** @class */ (function (_super) {
|
|
|
914
914
|
__extends(SubmitButton, _super);
|
|
915
915
|
function SubmitButton(options) {
|
|
916
916
|
var _this = _super.call(this) || this;
|
|
917
|
-
init(_this, options, instance$c, create_fragment$
|
|
917
|
+
init(_this, options, instance$c, create_fragment$n, safe_not_equal, { buttonText: 0, isLoading: 1 });
|
|
918
918
|
return _this;
|
|
919
919
|
}
|
|
920
920
|
return SubmitButton;
|
|
921
921
|
}(SvelteComponent));
|
|
922
922
|
/* src/icons/ErrorIcon.svelte generated by Svelte v3.48.0 */
|
|
923
|
-
function create_fragment$
|
|
923
|
+
function create_fragment$m(ctx) {
|
|
924
924
|
var svg;
|
|
925
925
|
var path;
|
|
926
926
|
return {
|
|
@@ -950,7 +950,7 @@ var ErrorIcon = /** @class */ (function (_super) {
|
|
|
950
950
|
__extends(ErrorIcon, _super);
|
|
951
951
|
function ErrorIcon(options) {
|
|
952
952
|
var _this = _super.call(this) || this;
|
|
953
|
-
init(_this, options, null, create_fragment$
|
|
953
|
+
init(_this, options, null, create_fragment$m, safe_not_equal, {});
|
|
954
954
|
return _this;
|
|
955
955
|
}
|
|
956
956
|
return ErrorIcon;
|
|
@@ -996,7 +996,7 @@ function create_if_block$5(ctx) {
|
|
|
996
996
|
}
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
|
-
function create_fragment$
|
|
999
|
+
function create_fragment$l(ctx) {
|
|
1000
1000
|
var div;
|
|
1001
1001
|
var label;
|
|
1002
1002
|
var t1;
|
|
@@ -1010,7 +1010,7 @@ function create_fragment$n(ctx) {
|
|
|
1010
1010
|
c: function () {
|
|
1011
1011
|
div = element("div");
|
|
1012
1012
|
label = element("label");
|
|
1013
|
-
label.textContent = ""
|
|
1013
|
+
label.textContent = "".concat(emailLabel);
|
|
1014
1014
|
t1 = space();
|
|
1015
1015
|
input = element("input");
|
|
1016
1016
|
t2 = space();
|
|
@@ -1112,13 +1112,13 @@ var EmailInput = /** @class */ (function (_super) {
|
|
|
1112
1112
|
__extends(EmailInput, _super);
|
|
1113
1113
|
function EmailInput(options) {
|
|
1114
1114
|
var _this = _super.call(this) || this;
|
|
1115
|
-
init(_this, options, instance$b, create_fragment$
|
|
1115
|
+
init(_this, options, instance$b, create_fragment$l, safe_not_equal, { emailInputValid: 2 });
|
|
1116
1116
|
return _this;
|
|
1117
1117
|
}
|
|
1118
1118
|
return EmailInput;
|
|
1119
1119
|
}(SvelteComponent));
|
|
1120
1120
|
/* src/icons/EyeIcon.svelte generated by Svelte v3.48.0 */
|
|
1121
|
-
function create_fragment$
|
|
1121
|
+
function create_fragment$k(ctx) {
|
|
1122
1122
|
var svg;
|
|
1123
1123
|
var path;
|
|
1124
1124
|
return {
|
|
@@ -1149,13 +1149,13 @@ var EyeIcon = /** @class */ (function (_super) {
|
|
|
1149
1149
|
__extends(EyeIcon, _super);
|
|
1150
1150
|
function EyeIcon(options) {
|
|
1151
1151
|
var _this = _super.call(this) || this;
|
|
1152
|
-
init(_this, options, null, create_fragment$
|
|
1152
|
+
init(_this, options, null, create_fragment$k, safe_not_equal, {});
|
|
1153
1153
|
return _this;
|
|
1154
1154
|
}
|
|
1155
1155
|
return EyeIcon;
|
|
1156
1156
|
}(SvelteComponent));
|
|
1157
1157
|
/* src/icons/EyeSlashIcon.svelte generated by Svelte v3.48.0 */
|
|
1158
|
-
function create_fragment$
|
|
1158
|
+
function create_fragment$j(ctx) {
|
|
1159
1159
|
var svg;
|
|
1160
1160
|
var path;
|
|
1161
1161
|
return {
|
|
@@ -1186,7 +1186,7 @@ var EyeSlashIcon = /** @class */ (function (_super) {
|
|
|
1186
1186
|
__extends(EyeSlashIcon, _super);
|
|
1187
1187
|
function EyeSlashIcon(options) {
|
|
1188
1188
|
var _this = _super.call(this) || this;
|
|
1189
|
-
init(_this, options, null, create_fragment$
|
|
1189
|
+
init(_this, options, null, create_fragment$j, safe_not_equal, {});
|
|
1190
1190
|
return _this;
|
|
1191
1191
|
}
|
|
1192
1192
|
return EyeSlashIcon;
|
|
@@ -1194,23 +1194,24 @@ var EyeSlashIcon = /** @class */ (function (_super) {
|
|
|
1194
1194
|
/* src/components/PasswordInput.svelte generated by Svelte v3.48.0 */
|
|
1195
1195
|
function create_if_block_2$2(ctx) {
|
|
1196
1196
|
var div;
|
|
1197
|
-
var
|
|
1197
|
+
var button;
|
|
1198
1198
|
var mounted;
|
|
1199
1199
|
var dispose;
|
|
1200
1200
|
return {
|
|
1201
1201
|
c: function () {
|
|
1202
1202
|
div = element("div");
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
attr(
|
|
1206
|
-
attr(
|
|
1203
|
+
button = element("button");
|
|
1204
|
+
button.textContent = "Forgot Password?";
|
|
1205
|
+
attr(button, "data-cy", "forgot-password-btn");
|
|
1206
|
+
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
1207
|
+
attr(button, "tabindex", "-1");
|
|
1207
1208
|
attr(div, "class", "ms-form__label ms-form__label--right");
|
|
1208
1209
|
},
|
|
1209
1210
|
m: function (target, anchor) {
|
|
1210
1211
|
insert(target, div, anchor);
|
|
1211
|
-
append(div,
|
|
1212
|
+
append(div, button);
|
|
1212
1213
|
if (!mounted) {
|
|
1213
|
-
dispose = listen(
|
|
1214
|
+
dispose = listen(button, "click", /*click_handler*/ ctx[10]);
|
|
1214
1215
|
mounted = true;
|
|
1215
1216
|
}
|
|
1216
1217
|
},
|
|
@@ -1320,7 +1321,7 @@ function create_if_block$4(ctx) {
|
|
|
1320
1321
|
}
|
|
1321
1322
|
};
|
|
1322
1323
|
}
|
|
1323
|
-
function create_fragment$
|
|
1324
|
+
function create_fragment$i(ctx) {
|
|
1324
1325
|
var div3;
|
|
1325
1326
|
var div0;
|
|
1326
1327
|
var label;
|
|
@@ -1553,7 +1554,7 @@ var PasswordInput = /** @class */ (function (_super) {
|
|
|
1553
1554
|
__extends(PasswordInput, _super);
|
|
1554
1555
|
function PasswordInput(options) {
|
|
1555
1556
|
var _this = _super.call(this) || this;
|
|
1556
|
-
init(_this, options, instance$a, create_fragment$
|
|
1557
|
+
init(_this, options, instance$a, create_fragment$i, safe_not_equal, {
|
|
1557
1558
|
showForgotPasswordLabel: 1,
|
|
1558
1559
|
passwordInputValid: 9,
|
|
1559
1560
|
passwordLabel: 2,
|
|
@@ -1565,7 +1566,7 @@ var PasswordInput = /** @class */ (function (_super) {
|
|
|
1565
1566
|
return PasswordInput;
|
|
1566
1567
|
}(SvelteComponent));
|
|
1567
1568
|
/* src/icons/SecuredIcon.svelte generated by Svelte v3.48.0 */
|
|
1568
|
-
function create_fragment$
|
|
1569
|
+
function create_fragment$h(ctx) {
|
|
1569
1570
|
var svg;
|
|
1570
1571
|
var path;
|
|
1571
1572
|
return {
|
|
@@ -1596,13 +1597,13 @@ var SecuredIcon = /** @class */ (function (_super) {
|
|
|
1596
1597
|
__extends(SecuredIcon, _super);
|
|
1597
1598
|
function SecuredIcon(options) {
|
|
1598
1599
|
var _this = _super.call(this) || this;
|
|
1599
|
-
init(_this, options, null, create_fragment$
|
|
1600
|
+
init(_this, options, null, create_fragment$h, safe_not_equal, {});
|
|
1600
1601
|
return _this;
|
|
1601
1602
|
}
|
|
1602
1603
|
return SecuredIcon;
|
|
1603
1604
|
}(SvelteComponent));
|
|
1604
1605
|
/* src/components/ModalFooter.svelte generated by Svelte v3.48.0 */
|
|
1605
|
-
function create_fragment$
|
|
1606
|
+
function create_fragment$g(ctx) {
|
|
1606
1607
|
var div;
|
|
1607
1608
|
var a;
|
|
1608
1609
|
var securedicon;
|
|
@@ -1648,7 +1649,7 @@ var ModalFooter = /** @class */ (function (_super) {
|
|
|
1648
1649
|
__extends(ModalFooter, _super);
|
|
1649
1650
|
function ModalFooter(options) {
|
|
1650
1651
|
var _this = _super.call(this) || this;
|
|
1651
|
-
init(_this, options, null, create_fragment$
|
|
1652
|
+
init(_this, options, null, create_fragment$g, safe_not_equal, {});
|
|
1652
1653
|
return _this;
|
|
1653
1654
|
}
|
|
1654
1655
|
return ModalFooter;
|
|
@@ -1656,23 +1657,22 @@ var ModalFooter = /** @class */ (function (_super) {
|
|
|
1656
1657
|
/* src/modals/LoginModal.svelte generated by Svelte v3.48.0 */
|
|
1657
1658
|
function create_if_block$3(ctx) {
|
|
1658
1659
|
var div;
|
|
1659
|
-
var
|
|
1660
|
+
var button;
|
|
1660
1661
|
var mounted;
|
|
1661
1662
|
var dispose;
|
|
1662
1663
|
return {
|
|
1663
1664
|
c: function () {
|
|
1664
1665
|
div = element("div");
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
attr(
|
|
1668
|
-
attr(a, "href", "#");
|
|
1666
|
+
button = element("button");
|
|
1667
|
+
button.textContent = "Don't have an account?";
|
|
1668
|
+
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
1669
1669
|
attr(div, "class", "ms-form__flex ms-form__flex--centered");
|
|
1670
1670
|
},
|
|
1671
1671
|
m: function (target, anchor) {
|
|
1672
1672
|
insert(target, div, anchor);
|
|
1673
|
-
append(div,
|
|
1673
|
+
append(div, button);
|
|
1674
1674
|
if (!mounted) {
|
|
1675
|
-
dispose = listen(
|
|
1675
|
+
dispose = listen(button, "click", /*click_handler*/ ctx[11]);
|
|
1676
1676
|
mounted = true;
|
|
1677
1677
|
}
|
|
1678
1678
|
},
|
|
@@ -1685,7 +1685,7 @@ function create_if_block$3(ctx) {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
};
|
|
1687
1687
|
}
|
|
1688
|
-
function create_fragment$
|
|
1688
|
+
function create_fragment$f(ctx) {
|
|
1689
1689
|
var div1;
|
|
1690
1690
|
var closebutton;
|
|
1691
1691
|
var t0;
|
|
@@ -1897,8 +1897,8 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
1897
1897
|
return __generator(this, function (_a) {
|
|
1898
1898
|
switch (_a.label) {
|
|
1899
1899
|
case 0:
|
|
1900
|
-
emailInput = e.target[
|
|
1901
|
-
passwordInput = e.target[
|
|
1900
|
+
emailInput = e.target.querySelector("[name=eml]");
|
|
1901
|
+
passwordInput = e.target.querySelector("[name=psw]");
|
|
1902
1902
|
if (!emailInputValid || !passwordInputValid)
|
|
1903
1903
|
return [2 /*return*/];
|
|
1904
1904
|
$$invalidate(3, showLoader = true);
|
|
@@ -1966,7 +1966,7 @@ var LoginModal = /** @class */ (function (_super) {
|
|
|
1966
1966
|
__extends(LoginModal, _super);
|
|
1967
1967
|
function LoginModal(options) {
|
|
1968
1968
|
var _this = _super.call(this) || this;
|
|
1969
|
-
init(_this, options, instance$9, create_fragment$
|
|
1969
|
+
init(_this, options, instance$9, create_fragment$f, safe_not_equal, {
|
|
1970
1970
|
closeModal: 1,
|
|
1971
1971
|
display: 0,
|
|
1972
1972
|
onSuccessLogin: 7,
|
|
@@ -1977,7 +1977,7 @@ var LoginModal = /** @class */ (function (_super) {
|
|
|
1977
1977
|
return LoginModal;
|
|
1978
1978
|
}(SvelteComponent));
|
|
1979
1979
|
/* src/modals/SignupModal.svelte generated by Svelte v3.48.0 */
|
|
1980
|
-
function create_fragment$
|
|
1980
|
+
function create_fragment$e(ctx) {
|
|
1981
1981
|
var div2;
|
|
1982
1982
|
var closebutton;
|
|
1983
1983
|
var t0;
|
|
@@ -1996,7 +1996,7 @@ function create_fragment$g(ctx) {
|
|
|
1996
1996
|
var submitbutton;
|
|
1997
1997
|
var t6;
|
|
1998
1998
|
var div0;
|
|
1999
|
-
var
|
|
1999
|
+
var button;
|
|
2000
2000
|
var t8;
|
|
2001
2001
|
var modalfooter;
|
|
2002
2002
|
var current;
|
|
@@ -2050,13 +2050,12 @@ function create_fragment$g(ctx) {
|
|
|
2050
2050
|
create_component(submitbutton.$$.fragment);
|
|
2051
2051
|
t6 = space();
|
|
2052
2052
|
div0 = element("div");
|
|
2053
|
-
|
|
2054
|
-
|
|
2053
|
+
button = element("button");
|
|
2054
|
+
button.textContent = "Already have an account?";
|
|
2055
2055
|
t8 = space();
|
|
2056
2056
|
create_component(modalfooter.$$.fragment);
|
|
2057
2057
|
attr(h2, "class", "ms-modal__title");
|
|
2058
|
-
attr(
|
|
2059
|
-
attr(a, "href", "#");
|
|
2058
|
+
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
2060
2059
|
attr(div0, "class", "ms-form__flex ms-form__flex--centered");
|
|
2061
2060
|
attr(form, "class", "ms-form");
|
|
2062
2061
|
attr(form, "action", "");
|
|
@@ -2083,13 +2082,13 @@ function create_fragment$g(ctx) {
|
|
|
2083
2082
|
mount_component(submitbutton, form, null);
|
|
2084
2083
|
append(form, t6);
|
|
2085
2084
|
append(form, div0);
|
|
2086
|
-
append(div0,
|
|
2085
|
+
append(div0, button);
|
|
2087
2086
|
append(div2, t8);
|
|
2088
2087
|
mount_component(modalfooter, div2, null);
|
|
2089
2088
|
current = true;
|
|
2090
2089
|
if (!mounted) {
|
|
2091
2090
|
dispose = [
|
|
2092
|
-
listen(
|
|
2091
|
+
listen(button, "click", /*click_handler*/ ctx[10]),
|
|
2093
2092
|
listen(form, "submit", stop_propagation(prevent_default(/*submitSignup*/ ctx[5])))
|
|
2094
2093
|
];
|
|
2095
2094
|
mounted = true;
|
|
@@ -2237,7 +2236,7 @@ var SignupModal = /** @class */ (function (_super) {
|
|
|
2237
2236
|
__extends(SignupModal, _super);
|
|
2238
2237
|
function SignupModal(options) {
|
|
2239
2238
|
var _this = _super.call(this) || this;
|
|
2240
|
-
init(_this, options, instance$8, create_fragment$
|
|
2239
|
+
init(_this, options, instance$8, create_fragment$e, safe_not_equal, {
|
|
2241
2240
|
closeModal: 1,
|
|
2242
2241
|
display: 0,
|
|
2243
2242
|
onSuccessSignup: 6,
|
|
@@ -2248,7 +2247,7 @@ var SignupModal = /** @class */ (function (_super) {
|
|
|
2248
2247
|
return SignupModal;
|
|
2249
2248
|
}(SvelteComponent));
|
|
2250
2249
|
/* src/icons/BackIcon.svelte generated by Svelte v3.48.0 */
|
|
2251
|
-
function create_fragment$
|
|
2250
|
+
function create_fragment$d(ctx) {
|
|
2252
2251
|
var svg;
|
|
2253
2252
|
var path;
|
|
2254
2253
|
return {
|
|
@@ -2278,13 +2277,13 @@ var BackIcon = /** @class */ (function (_super) {
|
|
|
2278
2277
|
__extends(BackIcon, _super);
|
|
2279
2278
|
function BackIcon(options) {
|
|
2280
2279
|
var _this = _super.call(this) || this;
|
|
2281
|
-
init(_this, options, null, create_fragment$
|
|
2280
|
+
init(_this, options, null, create_fragment$d, safe_not_equal, {});
|
|
2282
2281
|
return _this;
|
|
2283
2282
|
}
|
|
2284
2283
|
return BackIcon;
|
|
2285
2284
|
}(SvelteComponent));
|
|
2286
2285
|
/* src/modals/PassResetModal.svelte generated by Svelte v3.48.0 */
|
|
2287
|
-
function create_fragment$
|
|
2286
|
+
function create_fragment$c(ctx) {
|
|
2288
2287
|
var div3;
|
|
2289
2288
|
var div0;
|
|
2290
2289
|
var button;
|
|
@@ -2356,9 +2355,10 @@ function create_fragment$e(ctx) {
|
|
|
2356
2355
|
create_component(submitbutton.$$.fragment);
|
|
2357
2356
|
t8 = space();
|
|
2358
2357
|
div1 = element("div");
|
|
2359
|
-
div1.innerHTML = "<a class=\"ms-form__link\" href=\"
|
|
2358
|
+
div1.innerHTML = "<a class=\"ms-form__link\" href=\"mailto:support@memberstack.com?subject=Question%20from%20modal\">Still need help? <u>Contact us</u></a>";
|
|
2360
2359
|
t11 = space();
|
|
2361
2360
|
create_component(modalfooter.$$.fragment);
|
|
2361
|
+
attr(div0, "data-cy", "back-btn");
|
|
2362
2362
|
attr(div0, "class", "ms-modal__back");
|
|
2363
2363
|
attr(h2, "class", "ms-modal__title ms-modal__title--sub-text");
|
|
2364
2364
|
attr(p, "class", "ms-modal__text");
|
|
@@ -2516,7 +2516,7 @@ var PassResetModal = /** @class */ (function (_super) {
|
|
|
2516
2516
|
__extends(PassResetModal, _super);
|
|
2517
2517
|
function PassResetModal(options) {
|
|
2518
2518
|
var _this = _super.call(this) || this;
|
|
2519
|
-
init(_this, options, instance$7, create_fragment$
|
|
2519
|
+
init(_this, options, instance$7, create_fragment$c, safe_not_equal, { closeModal: 1, display: 0 });
|
|
2520
2520
|
return _this;
|
|
2521
2521
|
}
|
|
2522
2522
|
return PassResetModal;
|
|
@@ -2558,7 +2558,7 @@ function create_if_block$2(ctx) {
|
|
|
2558
2558
|
}
|
|
2559
2559
|
};
|
|
2560
2560
|
}
|
|
2561
|
-
function create_fragment$
|
|
2561
|
+
function create_fragment$b(ctx) {
|
|
2562
2562
|
var div4;
|
|
2563
2563
|
var div0;
|
|
2564
2564
|
var button;
|
|
@@ -2594,20 +2594,20 @@ function create_fragment$d(ctx) {
|
|
|
2594
2594
|
props: { closeModal: /*closeModal*/ ctx[1] }
|
|
2595
2595
|
});
|
|
2596
2596
|
figureelement = new FigureElement({});
|
|
2597
|
-
var if_block = !ctx[
|
|
2597
|
+
var if_block = !ctx[3] && create_if_block$2();
|
|
2598
2598
|
function passwordinput_passwordInputValid_binding(value) {
|
|
2599
|
-
/*passwordinput_passwordInputValid_binding*/ ctx[
|
|
2599
|
+
/*passwordinput_passwordInputValid_binding*/ ctx[8](value);
|
|
2600
2600
|
}
|
|
2601
2601
|
var passwordinput_props = { passwordLabel: "Choose a new password" };
|
|
2602
|
-
if ( /*passwordInputValid*/ctx[
|
|
2603
|
-
passwordinput_props.passwordInputValid = /*passwordInputValid*/ ctx[
|
|
2602
|
+
if ( /*passwordInputValid*/ctx[4] !== void 0) {
|
|
2603
|
+
passwordinput_props.passwordInputValid = /*passwordInputValid*/ ctx[4];
|
|
2604
2604
|
}
|
|
2605
2605
|
passwordinput = new PasswordInput({ props: passwordinput_props });
|
|
2606
2606
|
binding_callbacks.push(function () { return bind(passwordinput, 'passwordInputValid', passwordinput_passwordInputValid_binding); });
|
|
2607
2607
|
submitbutton = new SubmitButton({
|
|
2608
2608
|
props: {
|
|
2609
2609
|
buttonText: "Confirm & Reset",
|
|
2610
|
-
isLoading:
|
|
2610
|
+
isLoading: /*showLoader*/ ctx[2]
|
|
2611
2611
|
}
|
|
2612
2612
|
});
|
|
2613
2613
|
modalfooter = new ModalFooter({});
|
|
@@ -2642,7 +2642,7 @@ function create_fragment$d(ctx) {
|
|
|
2642
2642
|
create_component(submitbutton.$$.fragment);
|
|
2643
2643
|
t15 = space();
|
|
2644
2644
|
div2 = element("div");
|
|
2645
|
-
div2.innerHTML = "<a class=\"ms-form__link\" href=\"
|
|
2645
|
+
div2.innerHTML = "<a class=\"ms-form__link\" href=\"mailto:support@memberstack.com?subject=Question%20from%20modal\">Still need help? <u>Contact us</u></a>";
|
|
2646
2646
|
t18 = space();
|
|
2647
2647
|
create_component(modalfooter.$$.fragment);
|
|
2648
2648
|
attr(div0, "class", "ms-modal__back");
|
|
@@ -2693,8 +2693,8 @@ function create_fragment$d(ctx) {
|
|
|
2693
2693
|
current = true;
|
|
2694
2694
|
if (!mounted) {
|
|
2695
2695
|
dispose = [
|
|
2696
|
-
listen(button, "click", /*click_handler*/ ctx[
|
|
2697
|
-
listen(form, "submit", stop_propagation(prevent_default(/*submitPasswordToken*/ ctx[
|
|
2696
|
+
listen(button, "click", /*click_handler*/ ctx[7]),
|
|
2697
|
+
listen(form, "submit", stop_propagation(prevent_default(/*submitPasswordToken*/ ctx[5])))
|
|
2698
2698
|
];
|
|
2699
2699
|
mounted = true;
|
|
2700
2700
|
}
|
|
@@ -2705,9 +2705,9 @@ function create_fragment$d(ctx) {
|
|
|
2705
2705
|
if (dirty & /*closeModal*/ 2)
|
|
2706
2706
|
closebutton_changes.closeModal = /*closeModal*/ ctx[1];
|
|
2707
2707
|
closebutton.$set(closebutton_changes);
|
|
2708
|
-
if (!ctx[
|
|
2708
|
+
if (!ctx[3]) {
|
|
2709
2709
|
if (if_block) {
|
|
2710
|
-
if (dirty & /*tokenInputValid*/
|
|
2710
|
+
if (dirty & /*tokenInputValid*/ 8) {
|
|
2711
2711
|
transition_in(if_block, 1);
|
|
2712
2712
|
}
|
|
2713
2713
|
}
|
|
@@ -2726,12 +2726,16 @@ function create_fragment$d(ctx) {
|
|
|
2726
2726
|
check_outros();
|
|
2727
2727
|
}
|
|
2728
2728
|
var passwordinput_changes = {};
|
|
2729
|
-
if (!updating_passwordInputValid && dirty & /*passwordInputValid*/
|
|
2729
|
+
if (!updating_passwordInputValid && dirty & /*passwordInputValid*/ 16) {
|
|
2730
2730
|
updating_passwordInputValid = true;
|
|
2731
|
-
passwordinput_changes.passwordInputValid = /*passwordInputValid*/ ctx[
|
|
2731
|
+
passwordinput_changes.passwordInputValid = /*passwordInputValid*/ ctx[4];
|
|
2732
2732
|
add_flush_callback(function () { return updating_passwordInputValid = false; });
|
|
2733
2733
|
}
|
|
2734
2734
|
passwordinput.$set(passwordinput_changes);
|
|
2735
|
+
var submitbutton_changes = {};
|
|
2736
|
+
if (dirty & /*showLoader*/ 4)
|
|
2737
|
+
submitbutton_changes.isLoading = /*showLoader*/ ctx[2];
|
|
2738
|
+
submitbutton.$set(submitbutton_changes);
|
|
2735
2739
|
},
|
|
2736
2740
|
i: function (local) {
|
|
2737
2741
|
if (current)
|
|
@@ -2775,6 +2779,7 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
2775
2779
|
var closeModal = $$props.closeModal;
|
|
2776
2780
|
var display = $$props.display;
|
|
2777
2781
|
var onSuccessPasswordReset = $$props.onSuccessPasswordReset;
|
|
2782
|
+
var showLoader = false;
|
|
2778
2783
|
var tokenInputValid = true;
|
|
2779
2784
|
var passwordInputValid = true;
|
|
2780
2785
|
onMount(function () {
|
|
@@ -2806,10 +2811,10 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
2806
2811
|
return false;
|
|
2807
2812
|
});
|
|
2808
2813
|
if (hasEmpty) {
|
|
2809
|
-
$$invalidate(
|
|
2814
|
+
$$invalidate(3, tokenInputValid = false);
|
|
2810
2815
|
}
|
|
2811
2816
|
else {
|
|
2812
|
-
$$invalidate(
|
|
2817
|
+
$$invalidate(3, tokenInputValid = true);
|
|
2813
2818
|
}
|
|
2814
2819
|
return !hasEmpty;
|
|
2815
2820
|
};
|
|
@@ -2833,11 +2838,13 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
2833
2838
|
_a.label = 1;
|
|
2834
2839
|
case 1:
|
|
2835
2840
|
_a.trys.push([1, 3, , 4]);
|
|
2841
|
+
$$invalidate(2, showLoader = true);
|
|
2836
2842
|
return [4 /*yield*/, window.$memberstackDom.resetMemberPassword({ token: token, newPassword: passwordInput.value })];
|
|
2837
2843
|
case 2:
|
|
2838
2844
|
data = (_a.sent()).data;
|
|
2845
|
+
window.$memberstackDom._showMessage("Password successfully reset", false);
|
|
2839
2846
|
onSuccessPasswordReset({ type: "PASSWORD_RESET", data: data });
|
|
2840
|
-
showLoader = false;
|
|
2847
|
+
$$invalidate(2, showLoader = false);
|
|
2841
2848
|
return [3 /*break*/, 4];
|
|
2842
2849
|
case 3:
|
|
2843
2850
|
err_4 = _a.sent();
|
|
@@ -2855,7 +2862,7 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
2855
2862
|
var click_handler = function () { return $$invalidate(0, display = "forgot_password"); };
|
|
2856
2863
|
function passwordinput_passwordInputValid_binding(value) {
|
|
2857
2864
|
passwordInputValid = value;
|
|
2858
|
-
$$invalidate(
|
|
2865
|
+
$$invalidate(4, passwordInputValid);
|
|
2859
2866
|
}
|
|
2860
2867
|
$$self.$$set = function ($$props) {
|
|
2861
2868
|
if ('closeModal' in $$props)
|
|
@@ -2863,11 +2870,12 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
2863
2870
|
if ('display' in $$props)
|
|
2864
2871
|
$$invalidate(0, display = $$props.display);
|
|
2865
2872
|
if ('onSuccessPasswordReset' in $$props)
|
|
2866
|
-
$$invalidate(
|
|
2873
|
+
$$invalidate(6, onSuccessPasswordReset = $$props.onSuccessPasswordReset);
|
|
2867
2874
|
};
|
|
2868
2875
|
return [
|
|
2869
2876
|
display,
|
|
2870
2877
|
closeModal,
|
|
2878
|
+
showLoader,
|
|
2871
2879
|
tokenInputValid,
|
|
2872
2880
|
passwordInputValid,
|
|
2873
2881
|
submitPasswordToken,
|
|
@@ -2880,17 +2888,17 @@ var PassTokenModal = /** @class */ (function (_super) {
|
|
|
2880
2888
|
__extends(PassTokenModal, _super);
|
|
2881
2889
|
function PassTokenModal(options) {
|
|
2882
2890
|
var _this = _super.call(this) || this;
|
|
2883
|
-
init(_this, options, instance$6, create_fragment$
|
|
2891
|
+
init(_this, options, instance$6, create_fragment$b, safe_not_equal, {
|
|
2884
2892
|
closeModal: 1,
|
|
2885
2893
|
display: 0,
|
|
2886
|
-
onSuccessPasswordReset:
|
|
2894
|
+
onSuccessPasswordReset: 6
|
|
2887
2895
|
});
|
|
2888
2896
|
return _this;
|
|
2889
2897
|
}
|
|
2890
2898
|
return PassTokenModal;
|
|
2891
2899
|
}(SvelteComponent));
|
|
2892
2900
|
/* src/icons/ProfileIcon.svelte generated by Svelte v3.48.0 */
|
|
2893
|
-
function create_fragment$
|
|
2901
|
+
function create_fragment$a(ctx) {
|
|
2894
2902
|
var svg;
|
|
2895
2903
|
var path;
|
|
2896
2904
|
return {
|
|
@@ -2920,13 +2928,13 @@ var ProfileIcon = /** @class */ (function (_super) {
|
|
|
2920
2928
|
__extends(ProfileIcon, _super);
|
|
2921
2929
|
function ProfileIcon(options) {
|
|
2922
2930
|
var _this = _super.call(this) || this;
|
|
2923
|
-
init(_this, options, null, create_fragment$
|
|
2931
|
+
init(_this, options, null, create_fragment$a, safe_not_equal, {});
|
|
2924
2932
|
return _this;
|
|
2925
2933
|
}
|
|
2926
2934
|
return ProfileIcon;
|
|
2927
2935
|
}(SvelteComponent));
|
|
2928
2936
|
/* src/icons/SecurityIcon.svelte generated by Svelte v3.48.0 */
|
|
2929
|
-
function create_fragment$
|
|
2937
|
+
function create_fragment$9(ctx) {
|
|
2930
2938
|
var svg;
|
|
2931
2939
|
var path;
|
|
2932
2940
|
return {
|
|
@@ -2955,104 +2963,13 @@ function create_fragment$b(ctx) {
|
|
|
2955
2963
|
var SecurityIcon = /** @class */ (function (_super) {
|
|
2956
2964
|
__extends(SecurityIcon, _super);
|
|
2957
2965
|
function SecurityIcon(options) {
|
|
2958
|
-
var _this = _super.call(this) || this;
|
|
2959
|
-
init(_this, options, null, create_fragment$b, safe_not_equal, {});
|
|
2960
|
-
return _this;
|
|
2961
|
-
}
|
|
2962
|
-
return SecurityIcon;
|
|
2963
|
-
}(SvelteComponent));
|
|
2964
|
-
/* src/icons/ProductsIcon.svelte generated by Svelte v3.48.0 */
|
|
2965
|
-
function create_fragment$a(ctx) {
|
|
2966
|
-
var svg;
|
|
2967
|
-
var path;
|
|
2968
|
-
return {
|
|
2969
|
-
c: function () {
|
|
2970
|
-
svg = svg_element("svg");
|
|
2971
|
-
path = svg_element("path");
|
|
2972
|
-
attr(path, "d", "m14.55 11c0.75 0 1.41-0.41 1.75-1.03l3.58-6.49c0.37-0.66-0.11-1.48-0.87-1.48h-14.8l-0.94-2h-3.27v2h2l3.6 7.59-1.35 2.44c-0.73 1.34 0.23 2.97 1.75 2.97h12v-2h-12l1.1-2h7.45zm-9.39-7h12.15l-2.76 5h-7.02l-2.37-5zm0.84 12c-1.1 0-1.99 0.9-1.99 2s0.89 2 1.99 2 2-0.9 2-2-0.9-2-2-2zm10 0c-1.1 0-1.99 0.9-1.99 2s0.89 2 1.99 2 2-0.9 2-2-0.9-2-2-2z");
|
|
2973
|
-
attr(path, "fill", "currentColor");
|
|
2974
|
-
attr(svg, "fill", "none");
|
|
2975
|
-
attr(svg, "viewBox", "0 0 21 20");
|
|
2976
|
-
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
2977
|
-
},
|
|
2978
|
-
m: function (target, anchor) {
|
|
2979
|
-
insert(target, svg, anchor);
|
|
2980
|
-
append(svg, path);
|
|
2981
|
-
},
|
|
2982
|
-
p: noop,
|
|
2983
|
-
i: noop,
|
|
2984
|
-
o: noop,
|
|
2985
|
-
d: function (detaching) {
|
|
2986
|
-
if (detaching)
|
|
2987
|
-
detach(svg);
|
|
2988
|
-
}
|
|
2989
|
-
};
|
|
2990
|
-
}
|
|
2991
|
-
var ProductsIcon = /** @class */ (function (_super) {
|
|
2992
|
-
__extends(ProductsIcon, _super);
|
|
2993
|
-
function ProductsIcon(options) {
|
|
2994
|
-
var _this = _super.call(this) || this;
|
|
2995
|
-
init(_this, options, null, create_fragment$a, safe_not_equal, {});
|
|
2996
|
-
return _this;
|
|
2997
|
-
}
|
|
2998
|
-
return ProductsIcon;
|
|
2999
|
-
}(SvelteComponent));
|
|
3000
|
-
/* src/icons/InvoicesIcon.svelte generated by Svelte v3.48.0 */
|
|
3001
|
-
function create_fragment$9(ctx) {
|
|
3002
|
-
var svg;
|
|
3003
|
-
var path0;
|
|
3004
|
-
var path1;
|
|
3005
|
-
var path2;
|
|
3006
|
-
var path3;
|
|
3007
|
-
var path4;
|
|
3008
|
-
return {
|
|
3009
|
-
c: function () {
|
|
3010
|
-
svg = svg_element("svg");
|
|
3011
|
-
path0 = svg_element("path");
|
|
3012
|
-
path1 = svg_element("path");
|
|
3013
|
-
path2 = svg_element("path");
|
|
3014
|
-
path3 = svg_element("path");
|
|
3015
|
-
path4 = svg_element("path");
|
|
3016
|
-
attr(path0, "d", "m16.5 1.5-1.5-1.5-1.5 1.5-1.5-1.5-1.5 1.5-1.5-1.5-1.5 1.5-1.5-1.5-1.5 1.5-1.5-1.5v14h-3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3v-17l-1.5 1.5zm-4.5 16.5h-9c-0.55 0-1-0.45-1-1v-1h10v2zm4-1c0 0.55-0.45 1-1 1s-1-0.45-1-1v-3h-9v-11h11v14z");
|
|
3017
|
-
attr(path0, "fill", "currentColor");
|
|
3018
|
-
attr(path1, "d", "M12 5H6V7H12V5Z");
|
|
3019
|
-
attr(path1, "fill", "currentColor");
|
|
3020
|
-
attr(path2, "d", "m15 5h-2v2h2v-2z");
|
|
3021
|
-
attr(path2, "fill", "currentColor");
|
|
3022
|
-
attr(path3, "d", "m12 8h-6v2h6v-2z");
|
|
3023
|
-
attr(path3, "fill", "currentColor");
|
|
3024
|
-
attr(path4, "d", "m15 8h-2v2h2v-2z");
|
|
3025
|
-
attr(path4, "fill", "currentColor");
|
|
3026
|
-
attr(svg, "viewBox", "0 0 18 20");
|
|
3027
|
-
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
3028
|
-
},
|
|
3029
|
-
m: function (target, anchor) {
|
|
3030
|
-
insert(target, svg, anchor);
|
|
3031
|
-
append(svg, path0);
|
|
3032
|
-
append(svg, path1);
|
|
3033
|
-
append(svg, path2);
|
|
3034
|
-
append(svg, path3);
|
|
3035
|
-
append(svg, path4);
|
|
3036
|
-
},
|
|
3037
|
-
p: noop,
|
|
3038
|
-
i: noop,
|
|
3039
|
-
o: noop,
|
|
3040
|
-
d: function (detaching) {
|
|
3041
|
-
if (detaching)
|
|
3042
|
-
detach(svg);
|
|
3043
|
-
}
|
|
3044
|
-
};
|
|
3045
|
-
}
|
|
3046
|
-
var InvoicesIcon = /** @class */ (function (_super) {
|
|
3047
|
-
__extends(InvoicesIcon, _super);
|
|
3048
|
-
function InvoicesIcon(options) {
|
|
3049
2966
|
var _this = _super.call(this) || this;
|
|
3050
2967
|
init(_this, options, null, create_fragment$9, safe_not_equal, {});
|
|
3051
2968
|
return _this;
|
|
3052
2969
|
}
|
|
3053
|
-
return
|
|
2970
|
+
return SecurityIcon;
|
|
3054
2971
|
}(SvelteComponent));
|
|
3055
|
-
/* src/icons/
|
|
2972
|
+
/* src/icons/LinkOutIcon.svelte generated by Svelte v3.48.0 */
|
|
3056
2973
|
function create_fragment$8(ctx) {
|
|
3057
2974
|
var svg;
|
|
3058
2975
|
var path;
|
|
@@ -3060,10 +2977,10 @@ function create_fragment$8(ctx) {
|
|
|
3060
2977
|
c: function () {
|
|
3061
2978
|
svg = svg_element("svg");
|
|
3062
2979
|
path = svg_element("path");
|
|
3063
|
-
attr(path, "d", "m18 0h-16c-1.11 0-1.99 0.89-1.99 2l-0.01 12c0 1.11 0.89 2 2 2h16c1.11 0 2-0.89 2-2v-12c0-1.11-0.89-2-2-2zm0 14h-16v-6h16v6zm0-10h-16v-2h16v2z");
|
|
3064
2980
|
attr(path, "fill", "currentColor");
|
|
2981
|
+
attr(path, "d", "M16 16H2V2H9V0H2C0.89 0 0 0.9 0 2V16C0 17.1 0.89 18 2 18H16C17.1 18 18 17.1 18 16V9H16V16ZM11 0V2H14.59L4.76 11.83L6.17 13.24L16 3.41V7H18V0H11Z");
|
|
3065
2982
|
attr(svg, "fill", "none");
|
|
3066
|
-
attr(svg, "viewBox", "0 0
|
|
2983
|
+
attr(svg, "viewBox", "0 0 18 18");
|
|
3067
2984
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
3068
2985
|
},
|
|
3069
2986
|
m: function (target, anchor) {
|
|
@@ -3079,14 +2996,14 @@ function create_fragment$8(ctx) {
|
|
|
3079
2996
|
}
|
|
3080
2997
|
};
|
|
3081
2998
|
}
|
|
3082
|
-
var
|
|
3083
|
-
__extends(
|
|
3084
|
-
function
|
|
2999
|
+
var LinkOutIcon = /** @class */ (function (_super) {
|
|
3000
|
+
__extends(LinkOutIcon, _super);
|
|
3001
|
+
function LinkOutIcon(options) {
|
|
3085
3002
|
var _this = _super.call(this) || this;
|
|
3086
3003
|
init(_this, options, null, create_fragment$8, safe_not_equal, {});
|
|
3087
3004
|
return _this;
|
|
3088
3005
|
}
|
|
3089
|
-
return
|
|
3006
|
+
return LinkOutIcon;
|
|
3090
3007
|
}(SvelteComponent));
|
|
3091
3008
|
/* src/icons/LogoutIcon.svelte generated by Svelte v3.48.0 */
|
|
3092
3009
|
function create_fragment$7(ctx) {
|
|
@@ -3128,112 +3045,89 @@ var LogoutIcon = /** @class */ (function (_super) {
|
|
|
3128
3045
|
}(SvelteComponent));
|
|
3129
3046
|
/* src/components/ProfileModalNav.svelte generated by Svelte v3.48.0 */
|
|
3130
3047
|
function create_fragment$6(ctx) {
|
|
3131
|
-
var
|
|
3048
|
+
var button0;
|
|
3132
3049
|
var profileicon;
|
|
3133
3050
|
var t0;
|
|
3134
3051
|
var t1;
|
|
3135
|
-
var
|
|
3052
|
+
var button1;
|
|
3136
3053
|
var securityicon;
|
|
3137
3054
|
var t2;
|
|
3138
3055
|
var t3;
|
|
3139
|
-
var
|
|
3140
|
-
var
|
|
3056
|
+
var button2;
|
|
3057
|
+
var linkouticon;
|
|
3141
3058
|
var t4;
|
|
3142
3059
|
var t5;
|
|
3143
|
-
var
|
|
3144
|
-
var invoicesicon;
|
|
3145
|
-
var t6;
|
|
3146
|
-
var t7;
|
|
3147
|
-
var div4;
|
|
3148
|
-
var paymenticon;
|
|
3149
|
-
var t8;
|
|
3150
|
-
var t9;
|
|
3151
|
-
var div5;
|
|
3060
|
+
var button3;
|
|
3152
3061
|
var logouticon;
|
|
3153
|
-
var
|
|
3062
|
+
var t6;
|
|
3154
3063
|
var current;
|
|
3155
3064
|
var mounted;
|
|
3156
3065
|
var dispose;
|
|
3157
3066
|
profileicon = new ProfileIcon({});
|
|
3158
3067
|
securityicon = new SecurityIcon({});
|
|
3159
|
-
|
|
3160
|
-
invoicesicon = new InvoicesIcon({});
|
|
3161
|
-
paymenticon = new PaymentIcon({});
|
|
3068
|
+
linkouticon = new LinkOutIcon({});
|
|
3162
3069
|
logouticon = new LogoutIcon({});
|
|
3163
3070
|
return {
|
|
3164
3071
|
c: function () {
|
|
3165
|
-
|
|
3072
|
+
button0 = element("button");
|
|
3166
3073
|
create_component(profileicon.$$.fragment);
|
|
3167
3074
|
t0 = text(" Profile");
|
|
3168
3075
|
t1 = space();
|
|
3169
|
-
|
|
3076
|
+
button1 = element("button");
|
|
3170
3077
|
create_component(securityicon.$$.fragment);
|
|
3171
3078
|
t2 = text(" Security");
|
|
3172
3079
|
t3 = space();
|
|
3173
|
-
|
|
3174
|
-
create_component(
|
|
3175
|
-
t4 = text("
|
|
3080
|
+
button2 = element("button");
|
|
3081
|
+
create_component(linkouticon.$$.fragment);
|
|
3082
|
+
t4 = text(" Billing Portal");
|
|
3176
3083
|
t5 = space();
|
|
3177
|
-
|
|
3178
|
-
create_component(invoicesicon.$$.fragment);
|
|
3179
|
-
t6 = text(" Invoices");
|
|
3180
|
-
t7 = space();
|
|
3181
|
-
div4 = element("div");
|
|
3182
|
-
create_component(paymenticon.$$.fragment);
|
|
3183
|
-
t8 = text(" Payment Methods");
|
|
3184
|
-
t9 = space();
|
|
3185
|
-
div5 = element("div");
|
|
3084
|
+
button3 = element("button");
|
|
3186
3085
|
create_component(logouticon.$$.fragment);
|
|
3187
|
-
|
|
3188
|
-
attr(
|
|
3189
|
-
toggle_class(
|
|
3190
|
-
attr(
|
|
3191
|
-
toggle_class(
|
|
3192
|
-
attr(
|
|
3193
|
-
attr(
|
|
3194
|
-
attr(div4, "class", "ms-modal__profile-option");
|
|
3195
|
-
attr(div5, "class", "ms-modal__profile-option");
|
|
3086
|
+
t6 = text(" Logout");
|
|
3087
|
+
attr(button0, "class", "ms-modal__profile-option");
|
|
3088
|
+
toggle_class(button0, "ms-modal__profile-option--active", /*displayProfile*/ ctx[0] === "profile");
|
|
3089
|
+
attr(button1, "class", "ms-modal__profile-option");
|
|
3090
|
+
toggle_class(button1, "ms-modal__profile-option--active", /*displayProfile*/ ctx[0] === "security" || /*displayProfile*/ ctx[0] === "changePassword");
|
|
3091
|
+
attr(button2, "class", "ms-modal__profile-option");
|
|
3092
|
+
attr(button3, "class", "ms-modal__profile-option");
|
|
3196
3093
|
},
|
|
3197
3094
|
m: function (target, anchor) {
|
|
3198
|
-
insert(target,
|
|
3199
|
-
mount_component(profileicon,
|
|
3200
|
-
append(
|
|
3095
|
+
insert(target, button0, anchor);
|
|
3096
|
+
mount_component(profileicon, button0, null);
|
|
3097
|
+
append(button0, t0);
|
|
3201
3098
|
insert(target, t1, anchor);
|
|
3202
|
-
insert(target,
|
|
3203
|
-
mount_component(securityicon,
|
|
3204
|
-
append(
|
|
3099
|
+
insert(target, button1, anchor);
|
|
3100
|
+
mount_component(securityicon, button1, null);
|
|
3101
|
+
append(button1, t2);
|
|
3205
3102
|
insert(target, t3, anchor);
|
|
3206
|
-
insert(target,
|
|
3207
|
-
mount_component(
|
|
3208
|
-
append(
|
|
3103
|
+
insert(target, button2, anchor);
|
|
3104
|
+
mount_component(linkouticon, button2, null);
|
|
3105
|
+
append(button2, t4);
|
|
3209
3106
|
insert(target, t5, anchor);
|
|
3210
|
-
insert(target,
|
|
3211
|
-
mount_component(
|
|
3212
|
-
append(
|
|
3213
|
-
insert(target, t7, anchor);
|
|
3214
|
-
insert(target, div4, anchor);
|
|
3215
|
-
mount_component(paymenticon, div4, null);
|
|
3216
|
-
append(div4, t8);
|
|
3217
|
-
insert(target, t9, anchor);
|
|
3218
|
-
insert(target, div5, anchor);
|
|
3219
|
-
mount_component(logouticon, div5, null);
|
|
3220
|
-
append(div5, t10);
|
|
3107
|
+
insert(target, button3, anchor);
|
|
3108
|
+
mount_component(logouticon, button3, null);
|
|
3109
|
+
append(button3, t6);
|
|
3221
3110
|
current = true;
|
|
3222
3111
|
if (!mounted) {
|
|
3223
3112
|
dispose = [
|
|
3224
|
-
listen(
|
|
3225
|
-
listen(
|
|
3113
|
+
listen(button0, "click", /*click_handler*/ ctx[2]),
|
|
3114
|
+
listen(button1, "click", /*click_handler_1*/ ctx[3]),
|
|
3115
|
+
listen(button2, "click", function () {
|
|
3116
|
+
if (is_function(/*displayBilling*/ ctx[1])) /*displayBilling*/
|
|
3117
|
+
ctx[1].apply(this, arguments);
|
|
3118
|
+
})
|
|
3226
3119
|
];
|
|
3227
3120
|
mounted = true;
|
|
3228
3121
|
}
|
|
3229
3122
|
},
|
|
3230
|
-
p: function (
|
|
3123
|
+
p: function (new_ctx, _a) {
|
|
3231
3124
|
var _b = __read(_a, 1), dirty = _b[0];
|
|
3125
|
+
ctx = new_ctx;
|
|
3232
3126
|
if (dirty & /*displayProfile*/ 1) {
|
|
3233
|
-
toggle_class(
|
|
3127
|
+
toggle_class(button0, "ms-modal__profile-option--active", /*displayProfile*/ ctx[0] === "profile");
|
|
3234
3128
|
}
|
|
3235
3129
|
if (dirty & /*displayProfile*/ 1) {
|
|
3236
|
-
toggle_class(
|
|
3130
|
+
toggle_class(button1, "ms-modal__profile-option--active", /*displayProfile*/ ctx[0] === "security" || /*displayProfile*/ ctx[0] === "changePassword");
|
|
3237
3131
|
}
|
|
3238
3132
|
},
|
|
3239
3133
|
i: function (local) {
|
|
@@ -3241,49 +3135,35 @@ function create_fragment$6(ctx) {
|
|
|
3241
3135
|
return;
|
|
3242
3136
|
transition_in(profileicon.$$.fragment, local);
|
|
3243
3137
|
transition_in(securityicon.$$.fragment, local);
|
|
3244
|
-
transition_in(
|
|
3245
|
-
transition_in(invoicesicon.$$.fragment, local);
|
|
3246
|
-
transition_in(paymenticon.$$.fragment, local);
|
|
3138
|
+
transition_in(linkouticon.$$.fragment, local);
|
|
3247
3139
|
transition_in(logouticon.$$.fragment, local);
|
|
3248
3140
|
current = true;
|
|
3249
3141
|
},
|
|
3250
3142
|
o: function (local) {
|
|
3251
3143
|
transition_out(profileicon.$$.fragment, local);
|
|
3252
3144
|
transition_out(securityicon.$$.fragment, local);
|
|
3253
|
-
transition_out(
|
|
3254
|
-
transition_out(invoicesicon.$$.fragment, local);
|
|
3255
|
-
transition_out(paymenticon.$$.fragment, local);
|
|
3145
|
+
transition_out(linkouticon.$$.fragment, local);
|
|
3256
3146
|
transition_out(logouticon.$$.fragment, local);
|
|
3257
3147
|
current = false;
|
|
3258
3148
|
},
|
|
3259
3149
|
d: function (detaching) {
|
|
3260
3150
|
if (detaching)
|
|
3261
|
-
detach(
|
|
3151
|
+
detach(button0);
|
|
3262
3152
|
destroy_component(profileicon);
|
|
3263
3153
|
if (detaching)
|
|
3264
3154
|
detach(t1);
|
|
3265
3155
|
if (detaching)
|
|
3266
|
-
detach(
|
|
3156
|
+
detach(button1);
|
|
3267
3157
|
destroy_component(securityicon);
|
|
3268
3158
|
if (detaching)
|
|
3269
3159
|
detach(t3);
|
|
3270
3160
|
if (detaching)
|
|
3271
|
-
detach(
|
|
3272
|
-
destroy_component(
|
|
3161
|
+
detach(button2);
|
|
3162
|
+
destroy_component(linkouticon);
|
|
3273
3163
|
if (detaching)
|
|
3274
3164
|
detach(t5);
|
|
3275
3165
|
if (detaching)
|
|
3276
|
-
detach(
|
|
3277
|
-
destroy_component(invoicesicon);
|
|
3278
|
-
if (detaching)
|
|
3279
|
-
detach(t7);
|
|
3280
|
-
if (detaching)
|
|
3281
|
-
detach(div4);
|
|
3282
|
-
destroy_component(paymenticon);
|
|
3283
|
-
if (detaching)
|
|
3284
|
-
detach(t9);
|
|
3285
|
-
if (detaching)
|
|
3286
|
-
detach(div5);
|
|
3166
|
+
detach(button3);
|
|
3287
3167
|
destroy_component(logouticon);
|
|
3288
3168
|
mounted = false;
|
|
3289
3169
|
run_all(dispose);
|
|
@@ -3292,19 +3172,22 @@ function create_fragment$6(ctx) {
|
|
|
3292
3172
|
}
|
|
3293
3173
|
function instance$5($$self, $$props, $$invalidate) {
|
|
3294
3174
|
var displayProfile = $$props.displayProfile;
|
|
3175
|
+
var displayBilling = $$props.displayBilling;
|
|
3295
3176
|
var click_handler = function () { return $$invalidate(0, displayProfile = "profile"); };
|
|
3296
3177
|
var click_handler_1 = function () { return $$invalidate(0, displayProfile = "security"); };
|
|
3297
3178
|
$$self.$$set = function ($$props) {
|
|
3298
3179
|
if ('displayProfile' in $$props)
|
|
3299
3180
|
$$invalidate(0, displayProfile = $$props.displayProfile);
|
|
3181
|
+
if ('displayBilling' in $$props)
|
|
3182
|
+
$$invalidate(1, displayBilling = $$props.displayBilling);
|
|
3300
3183
|
};
|
|
3301
|
-
return [displayProfile, click_handler, click_handler_1];
|
|
3184
|
+
return [displayProfile, displayBilling, click_handler, click_handler_1];
|
|
3302
3185
|
}
|
|
3303
3186
|
var ProfileModalNav = /** @class */ (function (_super) {
|
|
3304
3187
|
__extends(ProfileModalNav, _super);
|
|
3305
3188
|
function ProfileModalNav(options) {
|
|
3306
3189
|
var _this = _super.call(this) || this;
|
|
3307
|
-
init(_this, options, instance$5, create_fragment$6, safe_not_equal, { displayProfile: 0 });
|
|
3190
|
+
init(_this, options, instance$5, create_fragment$6, safe_not_equal, { displayProfile: 0, displayBilling: 1 });
|
|
3308
3191
|
return _this;
|
|
3309
3192
|
}
|
|
3310
3193
|
return ProfileModalNav;
|
|
@@ -4146,7 +4029,7 @@ var ProfileModal = /** @class */ (function (_super) {
|
|
|
4146
4029
|
}(SvelteComponent));
|
|
4147
4030
|
/* src/Main.svelte generated by Svelte v3.48.0 */
|
|
4148
4031
|
function add_css(target) {
|
|
4149
|
-
append_styles(target, "svelte-
|
|
4032
|
+
append_styles(target, "svelte-uf1bmf", "@import url(\"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap\");#msOverlay.svelte-uf1bmf{position:fixed;display:flex;justify-content:center;align-items:center;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);z-index:99999;overflow:scroll;font-family:\"Plus Jakarta Sans\", sans-serif}.--hide{display:none}.ms__loader{position:relative;z-index:10000000}#msLoader path{fill:#007ace}.ms-modal{box-sizing:border-box;margin:auto;min-width:0;position:relative;outline:none;background:white;border-radius:16px;box-shadow:2px 2px 12px rgb(0 0 0 / 10%);width:360px;color:rgb(10, 10, 10)}.ms-modal--profile{width:700px}.ms-modal__close{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;right:16px;z-index:10;line-height:0}.ms-modal__close button{appearance:none;padding:0;outline:none;width:12px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__close button:hover{color:#0a0a0a}.ms-modal__back{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__back button{appearance:none;padding:0;outline:none;width:12px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__back button:hover, .ms-modal__profile-back button:hover{color:#0a0a0a}.ms-modal__back svg{height:12px}.ms-modal__profile-back button{appearance:none;padding:5px;margin-right:6px;outline:none;width:25px;height:25px;border:0;background:transparent;cursor:pointer;color:#5c5c5c;display:flex;align-items:stretch;justify-content:center}.ms-modal__header{display:flex;align-items:center;padding:12px}.ms-modal__content{padding:28px 28px 20px;width:100%;box-sizing:border-box;margin:0 auto}.ms-modal__content--profile{padding:0;display:flex;flex-wrap:wrap;align-content:stretch;align-items:stretch;border-top:1px solid #DDDDDD}.ms-modal__content-left{display:flex;flex-direction:column;align-items:flex-start;padding:20px;border-right:1px solid #DDDDDD;min-width:160px}.ms-modal__content-right{padding:20px;flex-grow:1;min-height:300px;max-height:400px;overflow-y:auto}.ms-modal__figure{box-sizing:border-box;margin:8px auto;display:flex;width:44px;height:44px;border-radius:100%;border:1px solid rgb(235, 235, 235);box-shadow:rgb(0 0 0 / 4%) 0px 2px 2px 0px;padding:7px}.ms-modal__figure--profile{width:24px;height:24px;padding:3px;margin:0px 8px 0px 0px}.ms-modal__title-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.ms-modal__title{margin-bottom:36px;margin-top:0;text-align:center;font-size:24px;line-height:32px;font-weight:500}.ms-modal__title--profile{margin-bottom:0px}.ms-modal__title-group{display:flex;align-items:center}.ms-modal__title--sub-text{margin-bottom:8px}.ms-modal__text{font-weight:500;font-size:16px;line-height:28px;text-align:center;margin:0 0 20px 0}.ms-form{width:100%}.ms-form__group{margin-bottom:20px}.ms-form__flex{display:flex;justify-content:space-between;align-content:center}.ms-form__flex--centered{justify-content:center}.ms-form__label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500}.ms-form__fieldset{display:flex;justify-content:space-between;padding:0;border:none}.ms-form__input{box-sizing:border-box;margin:0px;border:1px solid rgb(201, 201, 201);border-radius:6px;font-size:16px;font-weight:400;padding:15px;width:100%}.ms-form__password-container{display:flex;justify-content:space-between;align-content:center;box-sizing:border-box;margin:0px;border:1px solid rgb(201, 201, 201);border-radius:6px;width:100%}.ms-form__password-container:focus-within{border:1px solid rgb(0, 68, 252);outline:rgb(0, 68, 252) solid 1px}.ms-form__password-container:focus-within input{outline:none;border-color:rgb(201, 201, 201);box-shadow:none}.ms-form__input--password{border:none}.ms-form__input--token{font-weight:500;font-size:24.19px;line-height:32px;text-align:center;color:#000000;padding:9px;max-width:42px}.ms-form__show-toggle{cursor:pointer;background:transparent;border-radius:0px 6px 6px 0px;padding:0px 8px;display:flex;align-items:center}.ms-form__eye{display:block;width:22px}.ms-form__eye-slash{display:block;width:22px}.ms-form__error{font-weight:500;font-size:12px;line-height:16px;color:#e40023;margin-top:4px;display:flex;align-items:baseline}.ms-form__error svg{width:10px;height:10px;margin-right:5px}.ms-form__label--right a{color:rgb(10, 10, 10) !important;text-decoration:none;font-weight:400}.ms-form__button{border-radius:6px;font-weight:700;font-size:16px;padding-left:22px;padding-right:22px;height:52px;border:none;display:block;width:100%;background-color:rgb(41, 98, 255);color:#fff;transition:background-color 0.5s ease;cursor:pointer}.ms-form__button:hover{background-color:#0745ff}.ms-form__button:disabled{background-color:#96C0FE;color:#fff;pointer-events:none}.ms-form__button--text{background-color:transparent;padding:0px;height:auto;margin-bottom:0px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500;color:rgb(10, 10, 10)}.ms-form__button--text:hover{background-color:transparent}#msFormLoader path{fill:#fff}a.ms-form__link{margin-top:8px;font-weight:500;font-size:14px;line-height:24px;color:rgb(10, 10, 10) !important;text-decoration:none}.ms-modal__cancel-button{background:#F6F6F6;color:#828282;padding:8px;margin-right:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__save-button{background:#2962FF;color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__outline-button{background:#fff;color:#0A0A0A;font-weight:700;font-size:14px;line-height:16px;padding:12px;margin-right:8px;border-radius:4px;border:1px solid #DDDDDD;cursor:pointer}.ms-modal__outline-button svg{height:14px;margin-right:6px}.ms-modal__button-label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500}.ms-modal__profile-option{cursor:pointer;margin-bottom:20px;font-weight:500;font-size:16px;line-height:28px;background:transparent;border:none;padding:0px}.ms-modal__profile-option svg{height:14px;margin-right:8px}.ms-modal__profile-option:hover{color:#2962FF}.ms-modal__profile-option--active{color:#2962FF}.ms-modal__social-divider{display:flex;align-items:center;margin:20px 0px}.ms-modal__divider-line{text-align:center;background:#dddddd;height:1px;width:100%}.ms-modal__divider-text{padding:0px 4px}.ms-modal__footer{text-align:center;width:100%;box-sizing:border-box;margin:0;min-width:0;background:#f6f6f6;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:16px;border-bottom-right-radius:16px;border-top:1px solid;border-top-color:#dddddd;font-size:12px;line-height:16px;font-weight:500}.ms-modal__footer a{color:rgb(10, 10, 10);text-decoration:none}.ms-modal__footer svg{height:12px;width:12px}");
|
|
4150
4033
|
}
|
|
4151
4034
|
// (23:2) {#if showLoader}
|
|
4152
4035
|
function create_if_block_5(ctx) {
|
|
@@ -4487,7 +4370,7 @@ function create_fragment(ctx) {
|
|
|
4487
4370
|
if (if_block1)
|
|
4488
4371
|
if_block1.c();
|
|
4489
4372
|
attr(main, "id", "msOverlay");
|
|
4490
|
-
attr(main, "class", "svelte-
|
|
4373
|
+
attr(main, "class", "svelte-uf1bmf");
|
|
4491
4374
|
},
|
|
4492
4375
|
m: function (target, anchor) {
|
|
4493
4376
|
insert(target, main, anchor);
|