@ikas/storefront 0.2.0 → 0.3.0-alpha.1
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/build/__generated__/global-types.d.ts +34 -0
- package/build/api/index.d.ts +1 -0
- package/build/api/raffle/__generated__/getRafflesByCustomerId.d.ts +41 -0
- package/build/api/raffle/__generated__/listRaffle.d.ts +58 -0
- package/build/api/raffle/__generated__/listRaffleMetaData.d.ts +21 -0
- package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +30 -0
- package/build/api/raffle/index.d.ts +24 -0
- package/build/index.es.js +1336 -101
- package/build/index.js +1347 -100
- package/build/models/data/index.d.ts +1 -0
- package/build/models/data/raffle/index.d.ts +63 -0
- package/build/models/theme/component/prop/index.d.ts +2 -0
- package/build/models/theme/index.d.ts +2 -0
- package/build/models/theme/page/component/prop-value/raffle-list.d.ts +5 -0
- package/build/models/theme/page/component/prop-value/raffle.d.ts +5 -0
- package/build/models/theme/page/index.d.ts +4 -1
- package/build/models/ui/index.d.ts +2 -0
- package/build/models/ui/raffle-list/index.d.ts +54 -0
- package/build/models/ui/validator/form/raffle-form.d.ts +60 -0
- package/build/models/ui/validator/rules/index.d.ts +4 -0
- package/build/pages/account/raffles.d.ts +6 -0
- package/build/pages/index.d.ts +4 -1
- package/build/pages/raffle/[slug].d.ts +7 -0
- package/build/pages/raffle/index.d.ts +6 -0
- package/build/providers/page-data-init.d.ts +7 -1
- package/build/providers/placeholders.d.ts +2 -1
- package/build/providers/prop-value/custom.d.ts +2 -0
- package/build/providers/prop-value/raffle-list.d.ts +5 -0
- package/build/providers/prop-value/raffle.d.ts +11 -0
- package/build/store/customer.d.ts +1 -0
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -24151,6 +24151,108 @@ var IkasProductOptionSet = /** @class */ (function () {
|
|
|
24151
24151
|
return IkasProductOptionSet;
|
|
24152
24152
|
}());
|
|
24153
24153
|
|
|
24154
|
+
var RaffleDateRangeField = /** @class */ (function () {
|
|
24155
|
+
function RaffleDateRangeField(data) {
|
|
24156
|
+
this.start = data.start || null;
|
|
24157
|
+
this.end = data.end || null;
|
|
24158
|
+
makeAutoObservable(this);
|
|
24159
|
+
}
|
|
24160
|
+
return RaffleDateRangeField;
|
|
24161
|
+
}());
|
|
24162
|
+
var IkasRaffleVerificationTypeEnum;
|
|
24163
|
+
(function (IkasRaffleVerificationTypeEnum) {
|
|
24164
|
+
IkasRaffleVerificationTypeEnum["EMAIL"] = "EMAIL";
|
|
24165
|
+
IkasRaffleVerificationTypeEnum["MERSIS"] = "MERSIS";
|
|
24166
|
+
})(IkasRaffleVerificationTypeEnum || (IkasRaffleVerificationTypeEnum = {}));
|
|
24167
|
+
var IkasRaffle = /** @class */ (function () {
|
|
24168
|
+
function IkasRaffle(data) {
|
|
24169
|
+
if (data === void 0) { data = {}; }
|
|
24170
|
+
var _a;
|
|
24171
|
+
this.id = data.id || Date.now() + "";
|
|
24172
|
+
this.createdAt = data.createdAt || Date.now();
|
|
24173
|
+
this.updatedAt = data.updatedAt || Date.now();
|
|
24174
|
+
this.deleted = data.deleted || null;
|
|
24175
|
+
this.name = data.name || "";
|
|
24176
|
+
this.participantCount = data.participantCount || 0;
|
|
24177
|
+
this.requiredCustomerAccount = data.requiredCustomerAccount || false;
|
|
24178
|
+
this.status = data.status || false;
|
|
24179
|
+
this.verificationType =
|
|
24180
|
+
data.verificationType || IkasRaffleVerificationTypeEnum.EMAIL;
|
|
24181
|
+
this.dateRange = data.dateRange
|
|
24182
|
+
? new RaffleDateRangeField(data.dateRange)
|
|
24183
|
+
: null;
|
|
24184
|
+
this.metadata = data.metadata
|
|
24185
|
+
? new IkasRaffleMetaData(data.metadata)
|
|
24186
|
+
: null;
|
|
24187
|
+
this.variants =
|
|
24188
|
+
((_a = data.variants) === null || _a === void 0 ? void 0 : _a.map(function (v) { return new IkasRaffleAppliedProduct(v); })) || [];
|
|
24189
|
+
}
|
|
24190
|
+
Object.defineProperty(IkasRaffle.prototype, "isRaffleAvailable", {
|
|
24191
|
+
get: function () {
|
|
24192
|
+
var _a, _b;
|
|
24193
|
+
var now = moment().utc(true);
|
|
24194
|
+
if (!this.status)
|
|
24195
|
+
return false;
|
|
24196
|
+
else if (!now.isBetween((_a = this.dateRange) === null || _a === void 0 ? void 0 : _a.start, (_b = this.dateRange) === null || _b === void 0 ? void 0 : _b.end, undefined, "[]"))
|
|
24197
|
+
return false;
|
|
24198
|
+
else
|
|
24199
|
+
return true;
|
|
24200
|
+
},
|
|
24201
|
+
enumerable: false,
|
|
24202
|
+
configurable: true
|
|
24203
|
+
});
|
|
24204
|
+
return IkasRaffle;
|
|
24205
|
+
}());
|
|
24206
|
+
var IkasRaffleMetadataTargetType;
|
|
24207
|
+
(function (IkasRaffleMetadataTargetType) {
|
|
24208
|
+
IkasRaffleMetadataTargetType["RAFFLE"] = "RAFFLE";
|
|
24209
|
+
})(IkasRaffleMetadataTargetType || (IkasRaffleMetadataTargetType = {}));
|
|
24210
|
+
var IkasRaffleMetaData = /** @class */ (function () {
|
|
24211
|
+
function IkasRaffleMetaData(data) {
|
|
24212
|
+
this.id = data.id || Date.now() + "";
|
|
24213
|
+
this.createdAt = data.createdAt || Date.now();
|
|
24214
|
+
this.updatedAt = data.updatedAt || Date.now();
|
|
24215
|
+
this.deleted = data.deleted || null;
|
|
24216
|
+
this.description = data.description || "";
|
|
24217
|
+
this.pageTitle = data.pageTitle || "";
|
|
24218
|
+
this.slug = data.slug || "";
|
|
24219
|
+
this.targetId = data.targetId || "";
|
|
24220
|
+
this.targetType = data.targetType || IkasRaffleMetadataTargetType.RAFFLE;
|
|
24221
|
+
}
|
|
24222
|
+
return IkasRaffleMetaData;
|
|
24223
|
+
}());
|
|
24224
|
+
var IkasRaffleParticipant = /** @class */ (function () {
|
|
24225
|
+
function IkasRaffleParticipant(data) {
|
|
24226
|
+
this.id = data.id || null;
|
|
24227
|
+
this.createdAt = data.createdAt || Date.now();
|
|
24228
|
+
this.updatedAt = data.updatedAt || Date.now();
|
|
24229
|
+
this.deleted = data.deleted || false;
|
|
24230
|
+
this.customerId = data.customerId || null;
|
|
24231
|
+
this.raffleId = data.raffleId || "";
|
|
24232
|
+
this.firstName = data.firstName || "";
|
|
24233
|
+
this.lastName = data.lastName || "";
|
|
24234
|
+
this.fullName = data.fullName || null;
|
|
24235
|
+
this.email = data.email || "";
|
|
24236
|
+
this.applicationDate = data.applicationDate || 0;
|
|
24237
|
+
this.phone = data.phone || null;
|
|
24238
|
+
this.isWinner = data.isWinner || null;
|
|
24239
|
+
this.extraData = data.extraData || {};
|
|
24240
|
+
this.appliedProducts = data.appliedProducts
|
|
24241
|
+
? data.appliedProducts.map(function (ap) { return new IkasRaffleAppliedProduct(ap); })
|
|
24242
|
+
: [];
|
|
24243
|
+
makeAutoObservable(this);
|
|
24244
|
+
}
|
|
24245
|
+
return IkasRaffleParticipant;
|
|
24246
|
+
}());
|
|
24247
|
+
var IkasRaffleAppliedProduct = /** @class */ (function () {
|
|
24248
|
+
function IkasRaffleAppliedProduct(data) {
|
|
24249
|
+
this.productId = data.productId || "";
|
|
24250
|
+
this.variantId = data.variantId || "";
|
|
24251
|
+
makeAutoObservable(this);
|
|
24252
|
+
}
|
|
24253
|
+
return IkasRaffleAppliedProduct;
|
|
24254
|
+
}());
|
|
24255
|
+
|
|
24154
24256
|
var IkasThemeComponentProp = /** @class */ (function () {
|
|
24155
24257
|
function IkasThemeComponentProp(data) {
|
|
24156
24258
|
this.id = data.id || Date.now() + "";
|
|
@@ -24189,6 +24291,8 @@ var IkasThemeComponentPropType;
|
|
|
24189
24291
|
IkasThemeComponentPropType["BLOG_LIST"] = "BLOG_LIST";
|
|
24190
24292
|
IkasThemeComponentPropType["BLOG_CATEGORY"] = "BLOG_CATEGORY";
|
|
24191
24293
|
IkasThemeComponentPropType["BLOG_CATEGORY_LIST"] = "BLOG_CATEGORY_LIST";
|
|
24294
|
+
IkasThemeComponentPropType["RAFFLE"] = "RAFFLE";
|
|
24295
|
+
IkasThemeComponentPropType["RAFFLE_LIST"] = "RAFFLE_LIST";
|
|
24192
24296
|
IkasThemeComponentPropType["OBJECT"] = "OBJECT";
|
|
24193
24297
|
IkasThemeComponentPropType["STATIC_LIST"] = "STATIC_LIST";
|
|
24194
24298
|
IkasThemeComponentPropType["DYNAMIC_LIST"] = "DYNAMIC_LIST";
|
|
@@ -24316,6 +24420,9 @@ var IkasThemePageType;
|
|
|
24316
24420
|
IkasThemePageType["BLOG_INDEX"] = "BLOG_INDEX";
|
|
24317
24421
|
IkasThemePageType["BLOG_CATEGORY"] = "BLOG_CATEGORY";
|
|
24318
24422
|
IkasThemePageType["CHECKOUT"] = "CHECKOUT";
|
|
24423
|
+
IkasThemePageType["RAFFLE"] = "RAFFLE";
|
|
24424
|
+
IkasThemePageType["RAFFLE_DETAIL"] = "RAFFLE_DETAIL";
|
|
24425
|
+
IkasThemePageType["RAFFLE_ACOUNT"] = "RAFFLE_ACCOUNT";
|
|
24319
24426
|
})(IkasThemePageType || (IkasThemePageType = {}));
|
|
24320
24427
|
|
|
24321
24428
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
@@ -37782,6 +37889,13 @@ var ProductSearchShowStockOptionEnum;
|
|
|
37782
37889
|
ProductSearchShowStockOptionEnum["SHOW_ALL"] = "SHOW_ALL";
|
|
37783
37890
|
ProductSearchShowStockOptionEnum["SHOW_OUT_OF_STOCK_AT_END"] = "SHOW_OUT_OF_STOCK_AT_END";
|
|
37784
37891
|
})(ProductSearchShowStockOptionEnum || (ProductSearchShowStockOptionEnum = {}));
|
|
37892
|
+
/**
|
|
37893
|
+
* RaffleMetadataTargetTypeEnum
|
|
37894
|
+
*/
|
|
37895
|
+
var RaffleMetadataTargetTypeEnum;
|
|
37896
|
+
(function (RaffleMetadataTargetTypeEnum) {
|
|
37897
|
+
RaffleMetadataTargetTypeEnum["RAFFLE"] = "RAFFLE";
|
|
37898
|
+
})(RaffleMetadataTargetTypeEnum || (RaffleMetadataTargetTypeEnum = {}));
|
|
37785
37899
|
/**
|
|
37786
37900
|
* Shipping Method Enum
|
|
37787
37901
|
*/
|
|
@@ -37864,6 +37978,14 @@ var VariantSelectionTypeEnum;
|
|
|
37864
37978
|
VariantSelectionTypeEnum["CHOICE"] = "CHOICE";
|
|
37865
37979
|
VariantSelectionTypeEnum["COLOR"] = "COLOR";
|
|
37866
37980
|
})(VariantSelectionTypeEnum || (VariantSelectionTypeEnum = {}));
|
|
37981
|
+
/**
|
|
37982
|
+
* Verification Type Enum
|
|
37983
|
+
*/
|
|
37984
|
+
var VerificationTypeEnum;
|
|
37985
|
+
(function (VerificationTypeEnum) {
|
|
37986
|
+
VerificationTypeEnum["EMAIL"] = "EMAIL";
|
|
37987
|
+
VerificationTypeEnum["MERSIS"] = "MERSIS";
|
|
37988
|
+
})(VerificationTypeEnum || (VerificationTypeEnum = {}));
|
|
37867
37989
|
//==============================================================
|
|
37868
37990
|
// END Enums and Input Objects
|
|
37869
37991
|
//==============================================================
|
|
@@ -39546,6 +39668,75 @@ var EqualsRule = /** @class */ (function (_super) {
|
|
|
39546
39668
|
});
|
|
39547
39669
|
};
|
|
39548
39670
|
return EqualsRule;
|
|
39671
|
+
}(ValidationRule));
|
|
39672
|
+
var IdentityNumberRule = /** @class */ (function (_super) {
|
|
39673
|
+
__extends(IdentityNumberRule, _super);
|
|
39674
|
+
function IdentityNumberRule() {
|
|
39675
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
39676
|
+
}
|
|
39677
|
+
Object.defineProperty(IdentityNumberRule.prototype, "errorMessage", {
|
|
39678
|
+
get: function () {
|
|
39679
|
+
if (!this.message)
|
|
39680
|
+
return "";
|
|
39681
|
+
if (typeof this.message === "string")
|
|
39682
|
+
return this.message;
|
|
39683
|
+
return this.message(this.model);
|
|
39684
|
+
},
|
|
39685
|
+
enumerable: false,
|
|
39686
|
+
configurable: true
|
|
39687
|
+
});
|
|
39688
|
+
IdentityNumberRule.prototype.run = function () {
|
|
39689
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
39690
|
+
var identityNumber, tcknString, odd, even, result, TCSum, incorrect, i;
|
|
39691
|
+
return __generator(this, function (_a) {
|
|
39692
|
+
identityNumber = this.value;
|
|
39693
|
+
if (!identityNumber)
|
|
39694
|
+
return [2 /*return*/, false];
|
|
39695
|
+
tcknString = identityNumber.toString();
|
|
39696
|
+
odd = 0, even = 0, result = 0, TCSum = 0, incorrect = [
|
|
39697
|
+
11111111110,
|
|
39698
|
+
22222222220,
|
|
39699
|
+
33333333330,
|
|
39700
|
+
44444444440,
|
|
39701
|
+
55555555550,
|
|
39702
|
+
66666666660,
|
|
39703
|
+
7777777770,
|
|
39704
|
+
88888888880,
|
|
39705
|
+
99999999990,
|
|
39706
|
+
];
|
|
39707
|
+
if (tcknString.length !== 11)
|
|
39708
|
+
return [2 /*return*/, false];
|
|
39709
|
+
if (isNaN(identityNumber))
|
|
39710
|
+
return [2 /*return*/, false];
|
|
39711
|
+
if (tcknString[0] === "0")
|
|
39712
|
+
return [2 /*return*/, false];
|
|
39713
|
+
odd =
|
|
39714
|
+
parseInt(tcknString[0]) +
|
|
39715
|
+
parseInt(tcknString[2]) +
|
|
39716
|
+
parseInt(tcknString[4]) +
|
|
39717
|
+
parseInt(tcknString[6]) +
|
|
39718
|
+
parseInt(tcknString[8]);
|
|
39719
|
+
even =
|
|
39720
|
+
parseInt(tcknString[1]) +
|
|
39721
|
+
parseInt(tcknString[3]) +
|
|
39722
|
+
parseInt(tcknString[5]) +
|
|
39723
|
+
parseInt(tcknString[7]);
|
|
39724
|
+
odd = odd * 7;
|
|
39725
|
+
result = Math.abs(odd - even);
|
|
39726
|
+
if (result % 10 !== parseInt(tcknString[9]))
|
|
39727
|
+
return [2 /*return*/, false];
|
|
39728
|
+
for (i = 0; i < 10; i++) {
|
|
39729
|
+
TCSum += parseInt(tcknString[i]);
|
|
39730
|
+
}
|
|
39731
|
+
if (TCSum % 10 !== parseInt(tcknString[10]))
|
|
39732
|
+
return [2 /*return*/, false];
|
|
39733
|
+
if (incorrect.toString().indexOf(tcknString) !== -1)
|
|
39734
|
+
return [2 /*return*/, false];
|
|
39735
|
+
return [2 /*return*/, true];
|
|
39736
|
+
});
|
|
39737
|
+
});
|
|
39738
|
+
};
|
|
39739
|
+
return IdentityNumberRule;
|
|
39549
39740
|
}(ValidationRule));
|
|
39550
39741
|
|
|
39551
39742
|
var LoginForm = /** @class */ (function () {
|
|
@@ -40950,6 +41141,281 @@ var AccountInfoForm = /** @class */ (function () {
|
|
|
40950
41141
|
return AccountInfoForm;
|
|
40951
41142
|
}());
|
|
40952
41143
|
|
|
41144
|
+
var RaffleForm = /** @class */ (function () {
|
|
41145
|
+
function RaffleForm(props) {
|
|
41146
|
+
var _this = this;
|
|
41147
|
+
var _a, _b, _c;
|
|
41148
|
+
this.model = {
|
|
41149
|
+
firstName: ((_a = IkasStorefrontConfig.store.customerStore.customer) === null || _a === void 0 ? void 0 : _a.firstName) || "",
|
|
41150
|
+
lastName: ((_b = IkasStorefrontConfig.store.customerStore.customer) === null || _b === void 0 ? void 0 : _b.lastName) || "",
|
|
41151
|
+
email: ((_c = IkasStorefrontConfig.store.customerStore.customer) === null || _c === void 0 ? void 0 : _c.email) || "",
|
|
41152
|
+
extraData: {
|
|
41153
|
+
birthYear: null,
|
|
41154
|
+
identityNumber: null,
|
|
41155
|
+
},
|
|
41156
|
+
phone: "",
|
|
41157
|
+
};
|
|
41158
|
+
this.onFirstNameChange = function (value) {
|
|
41159
|
+
_this.firstName = value;
|
|
41160
|
+
};
|
|
41161
|
+
this.onLastNameChange = function (value) {
|
|
41162
|
+
_this.lastName = value;
|
|
41163
|
+
};
|
|
41164
|
+
this.onEmailChange = function (value) {
|
|
41165
|
+
_this.email = value;
|
|
41166
|
+
};
|
|
41167
|
+
this.onBirthYearChange = function (value) {
|
|
41168
|
+
_this.birthYear = value;
|
|
41169
|
+
};
|
|
41170
|
+
this.onIdentityNumberChange = function (value) {
|
|
41171
|
+
_this.identityNumber = value;
|
|
41172
|
+
};
|
|
41173
|
+
this.onPhoneChange = function (value) {
|
|
41174
|
+
_this.phone = value;
|
|
41175
|
+
};
|
|
41176
|
+
makeObservable(this, {
|
|
41177
|
+
emailErrorMessage: computed,
|
|
41178
|
+
firstNameErrorMessage: computed,
|
|
41179
|
+
lastNameErrorMessage: computed,
|
|
41180
|
+
birthYearErrorMessage: computed,
|
|
41181
|
+
identityNumberErrorMessage: computed,
|
|
41182
|
+
hasValidatorError: computed,
|
|
41183
|
+
results: computed,
|
|
41184
|
+
redirect: computed,
|
|
41185
|
+
model: observable,
|
|
41186
|
+
validateAll: action,
|
|
41187
|
+
});
|
|
41188
|
+
this.raffle = props.raffle;
|
|
41189
|
+
this.validator = new Validator(this.model, [
|
|
41190
|
+
new RequiredRule({
|
|
41191
|
+
fieldKey: "firstName",
|
|
41192
|
+
valuePath: "firstName",
|
|
41193
|
+
message: props.message.requiredRule,
|
|
41194
|
+
}),
|
|
41195
|
+
new RequiredRule({
|
|
41196
|
+
fieldKey: "lastName",
|
|
41197
|
+
valuePath: "lastName",
|
|
41198
|
+
message: props.message.requiredRule,
|
|
41199
|
+
}),
|
|
41200
|
+
new RequiredRule({
|
|
41201
|
+
fieldKey: "email",
|
|
41202
|
+
valuePath: "email",
|
|
41203
|
+
message: props.message.requiredRule,
|
|
41204
|
+
}),
|
|
41205
|
+
new RequiredRule({
|
|
41206
|
+
fieldKey: "birthYear",
|
|
41207
|
+
valuePath: "extraData.birthYear",
|
|
41208
|
+
message: props.message.requiredRule,
|
|
41209
|
+
}),
|
|
41210
|
+
new RequiredRule({
|
|
41211
|
+
fieldKey: "identityNumber",
|
|
41212
|
+
valuePath: "extraData.identityNumber",
|
|
41213
|
+
message: props.message.requiredRule,
|
|
41214
|
+
}),
|
|
41215
|
+
new EmailRule({
|
|
41216
|
+
fieldKey: "email",
|
|
41217
|
+
valuePath: "email",
|
|
41218
|
+
message: props.message.emailRule,
|
|
41219
|
+
}),
|
|
41220
|
+
new PhoneRule({
|
|
41221
|
+
fieldKey: "phone",
|
|
41222
|
+
valuePath: "phone",
|
|
41223
|
+
message: props.message.phoneRule,
|
|
41224
|
+
}),
|
|
41225
|
+
new MinRule({
|
|
41226
|
+
fieldKey: "birthYear",
|
|
41227
|
+
valuePath: "extraData.birthYear",
|
|
41228
|
+
message: props.message.birthdayRule,
|
|
41229
|
+
minValue: 1000,
|
|
41230
|
+
}),
|
|
41231
|
+
new MaxRule({
|
|
41232
|
+
fieldKey: "birthYear",
|
|
41233
|
+
valuePath: "extraData.birthYear",
|
|
41234
|
+
message: props.message.birthdayRule,
|
|
41235
|
+
maxValue: 9999,
|
|
41236
|
+
}),
|
|
41237
|
+
new IdentityNumberRule({
|
|
41238
|
+
fieldKey: "identityNumber",
|
|
41239
|
+
valuePath: "extraData.identityNumber",
|
|
41240
|
+
message: props.message.identityNumberRule,
|
|
41241
|
+
}),
|
|
41242
|
+
]);
|
|
41243
|
+
}
|
|
41244
|
+
Object.defineProperty(RaffleForm.prototype, "firstName", {
|
|
41245
|
+
get: function () {
|
|
41246
|
+
return this.model.firstName;
|
|
41247
|
+
},
|
|
41248
|
+
set: function (value) {
|
|
41249
|
+
this.model.firstName = value;
|
|
41250
|
+
},
|
|
41251
|
+
enumerable: false,
|
|
41252
|
+
configurable: true
|
|
41253
|
+
});
|
|
41254
|
+
Object.defineProperty(RaffleForm.prototype, "lastName", {
|
|
41255
|
+
get: function () {
|
|
41256
|
+
return this.model.lastName;
|
|
41257
|
+
},
|
|
41258
|
+
set: function (value) {
|
|
41259
|
+
this.model.lastName = value;
|
|
41260
|
+
},
|
|
41261
|
+
enumerable: false,
|
|
41262
|
+
configurable: true
|
|
41263
|
+
});
|
|
41264
|
+
Object.defineProperty(RaffleForm.prototype, "email", {
|
|
41265
|
+
get: function () {
|
|
41266
|
+
return this.model.email;
|
|
41267
|
+
},
|
|
41268
|
+
set: function (value) {
|
|
41269
|
+
this.model.email = value;
|
|
41270
|
+
},
|
|
41271
|
+
enumerable: false,
|
|
41272
|
+
configurable: true
|
|
41273
|
+
});
|
|
41274
|
+
Object.defineProperty(RaffleForm.prototype, "birthYear", {
|
|
41275
|
+
get: function () {
|
|
41276
|
+
return this.model.extraData.birthYear;
|
|
41277
|
+
},
|
|
41278
|
+
set: function (value) {
|
|
41279
|
+
this.model.extraData.birthYear = value;
|
|
41280
|
+
},
|
|
41281
|
+
enumerable: false,
|
|
41282
|
+
configurable: true
|
|
41283
|
+
});
|
|
41284
|
+
Object.defineProperty(RaffleForm.prototype, "identityNumber", {
|
|
41285
|
+
get: function () {
|
|
41286
|
+
return this.model.extraData.identityNumber;
|
|
41287
|
+
},
|
|
41288
|
+
set: function (value) {
|
|
41289
|
+
this.model.extraData.identityNumber = value;
|
|
41290
|
+
},
|
|
41291
|
+
enumerable: false,
|
|
41292
|
+
configurable: true
|
|
41293
|
+
});
|
|
41294
|
+
Object.defineProperty(RaffleForm.prototype, "phone", {
|
|
41295
|
+
get: function () {
|
|
41296
|
+
return this.model.phone;
|
|
41297
|
+
},
|
|
41298
|
+
set: function (value) {
|
|
41299
|
+
this.model.phone = value;
|
|
41300
|
+
},
|
|
41301
|
+
enumerable: false,
|
|
41302
|
+
configurable: true
|
|
41303
|
+
});
|
|
41304
|
+
Object.defineProperty(RaffleForm.prototype, "firstNameErrorMessage", {
|
|
41305
|
+
get: function () {
|
|
41306
|
+
return this.validator.results.firstName.errorMessage;
|
|
41307
|
+
},
|
|
41308
|
+
enumerable: false,
|
|
41309
|
+
configurable: true
|
|
41310
|
+
});
|
|
41311
|
+
Object.defineProperty(RaffleForm.prototype, "lastNameErrorMessage", {
|
|
41312
|
+
get: function () {
|
|
41313
|
+
return this.validator.results.lastName.errorMessage;
|
|
41314
|
+
},
|
|
41315
|
+
enumerable: false,
|
|
41316
|
+
configurable: true
|
|
41317
|
+
});
|
|
41318
|
+
Object.defineProperty(RaffleForm.prototype, "emailErrorMessage", {
|
|
41319
|
+
get: function () {
|
|
41320
|
+
return this.validator.results.email.errorMessage;
|
|
41321
|
+
},
|
|
41322
|
+
enumerable: false,
|
|
41323
|
+
configurable: true
|
|
41324
|
+
});
|
|
41325
|
+
Object.defineProperty(RaffleForm.prototype, "birthYearErrorMessage", {
|
|
41326
|
+
get: function () {
|
|
41327
|
+
return this.validator.results.birthYear.errorMessage;
|
|
41328
|
+
},
|
|
41329
|
+
enumerable: false,
|
|
41330
|
+
configurable: true
|
|
41331
|
+
});
|
|
41332
|
+
Object.defineProperty(RaffleForm.prototype, "identityNumberErrorMessage", {
|
|
41333
|
+
get: function () {
|
|
41334
|
+
return this.validator.results.identityNumber.errorMessage;
|
|
41335
|
+
},
|
|
41336
|
+
enumerable: false,
|
|
41337
|
+
configurable: true
|
|
41338
|
+
});
|
|
41339
|
+
Object.defineProperty(RaffleForm.prototype, "phoneErrorMessage", {
|
|
41340
|
+
get: function () {
|
|
41341
|
+
return this.validator.results.phone.errorMessage;
|
|
41342
|
+
},
|
|
41343
|
+
enumerable: false,
|
|
41344
|
+
configurable: true
|
|
41345
|
+
});
|
|
41346
|
+
Object.defineProperty(RaffleForm.prototype, "redirect", {
|
|
41347
|
+
get: function () {
|
|
41348
|
+
if (typeof window !== "undefined") {
|
|
41349
|
+
var urlSearch = new URLSearchParams(window.location.search);
|
|
41350
|
+
return urlSearch.get("redirect");
|
|
41351
|
+
}
|
|
41352
|
+
},
|
|
41353
|
+
enumerable: false,
|
|
41354
|
+
configurable: true
|
|
41355
|
+
});
|
|
41356
|
+
Object.defineProperty(RaffleForm.prototype, "hasValidatorError", {
|
|
41357
|
+
get: function () {
|
|
41358
|
+
return this.validator.hasError;
|
|
41359
|
+
},
|
|
41360
|
+
enumerable: false,
|
|
41361
|
+
configurable: true
|
|
41362
|
+
});
|
|
41363
|
+
Object.defineProperty(RaffleForm.prototype, "results", {
|
|
41364
|
+
get: function () {
|
|
41365
|
+
return this.validator.results;
|
|
41366
|
+
},
|
|
41367
|
+
enumerable: false,
|
|
41368
|
+
configurable: true
|
|
41369
|
+
});
|
|
41370
|
+
RaffleForm.prototype.validateAll = function () {
|
|
41371
|
+
return this.validator.validateAll();
|
|
41372
|
+
};
|
|
41373
|
+
RaffleForm.prototype.submit = function () {
|
|
41374
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41375
|
+
var response, hasFormError, isRaffleFormSuccess;
|
|
41376
|
+
return __generator(this, function (_a) {
|
|
41377
|
+
switch (_a.label) {
|
|
41378
|
+
case 0:
|
|
41379
|
+
response = { isFormError: false, isSuccess: false };
|
|
41380
|
+
return [4 /*yield*/, this.validateAll()];
|
|
41381
|
+
case 1:
|
|
41382
|
+
hasFormError = _a.sent();
|
|
41383
|
+
if (hasFormError) {
|
|
41384
|
+
response.isFormError = true;
|
|
41385
|
+
return [2 /*return*/, response];
|
|
41386
|
+
}
|
|
41387
|
+
_a.label = 2;
|
|
41388
|
+
case 2:
|
|
41389
|
+
_a.trys.push([2, 4, , 5]);
|
|
41390
|
+
return [4 /*yield*/, IkasRaffleAPI.saveRaffleParticipant(new IkasRaffleParticipant({
|
|
41391
|
+
appliedProducts: this.raffle.variants || [],
|
|
41392
|
+
email: this.email,
|
|
41393
|
+
firstName: this.firstName,
|
|
41394
|
+
lastName: this.lastName,
|
|
41395
|
+
raffleId: this.raffle.id,
|
|
41396
|
+
extraData: {
|
|
41397
|
+
birthYear: this.birthYear,
|
|
41398
|
+
identityNumber: this.identityNumber,
|
|
41399
|
+
},
|
|
41400
|
+
phone: this.phone,
|
|
41401
|
+
}))];
|
|
41402
|
+
case 3:
|
|
41403
|
+
isRaffleFormSuccess = _a.sent();
|
|
41404
|
+
if (isRaffleFormSuccess) {
|
|
41405
|
+
response.isSuccess = true;
|
|
41406
|
+
}
|
|
41407
|
+
return [2 /*return*/, response];
|
|
41408
|
+
case 4:
|
|
41409
|
+
_a.sent();
|
|
41410
|
+
return [2 /*return*/, response];
|
|
41411
|
+
case 5: return [2 /*return*/];
|
|
41412
|
+
}
|
|
41413
|
+
});
|
|
41414
|
+
});
|
|
41415
|
+
};
|
|
41416
|
+
return RaffleForm;
|
|
41417
|
+
}());
|
|
41418
|
+
|
|
40953
41419
|
var CustomerReviewForm = /** @class */ (function () {
|
|
40954
41420
|
function CustomerReviewForm(props) {
|
|
40955
41421
|
var _this = this;
|
|
@@ -41090,6 +41556,263 @@ var IkasComponentRenderer = /** @class */ (function () {
|
|
|
41090
41556
|
return IkasComponentRenderer;
|
|
41091
41557
|
}());
|
|
41092
41558
|
|
|
41559
|
+
var IkasRaffleList = /** @class */ (function () {
|
|
41560
|
+
function IkasRaffleList(data) {
|
|
41561
|
+
var _this = this;
|
|
41562
|
+
if (data === void 0) { data = {}; }
|
|
41563
|
+
this._initialized = false;
|
|
41564
|
+
this._minPage = null;
|
|
41565
|
+
this._isLoading = false;
|
|
41566
|
+
this.getInitial = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
41567
|
+
var response, err_1;
|
|
41568
|
+
var _this = this;
|
|
41569
|
+
return __generator(this, function (_a) {
|
|
41570
|
+
switch (_a.label) {
|
|
41571
|
+
case 0:
|
|
41572
|
+
if (this._isLoading)
|
|
41573
|
+
return [2 /*return*/];
|
|
41574
|
+
this._isLoading = true;
|
|
41575
|
+
_a.label = 1;
|
|
41576
|
+
case 1:
|
|
41577
|
+
_a.trys.push([1, 3, 4, 5]);
|
|
41578
|
+
return [4 /*yield*/, this.getRaffleList(this.page, this.limit)];
|
|
41579
|
+
case 2:
|
|
41580
|
+
response = _a.sent();
|
|
41581
|
+
this.data = response.raffles;
|
|
41582
|
+
this._count = response.count;
|
|
41583
|
+
this._initialized = true;
|
|
41584
|
+
this._minPage = this.page;
|
|
41585
|
+
return [3 /*break*/, 5];
|
|
41586
|
+
case 3:
|
|
41587
|
+
err_1 = _a.sent();
|
|
41588
|
+
console.log(err_1);
|
|
41589
|
+
return [3 /*break*/, 5];
|
|
41590
|
+
case 4:
|
|
41591
|
+
runInAction(function () {
|
|
41592
|
+
_this._isLoading = false;
|
|
41593
|
+
});
|
|
41594
|
+
return [7 /*endfinally*/];
|
|
41595
|
+
case 5: return [2 /*return*/];
|
|
41596
|
+
}
|
|
41597
|
+
});
|
|
41598
|
+
}); };
|
|
41599
|
+
this.getPrev = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
41600
|
+
var minPage_1, response_1, err_2;
|
|
41601
|
+
var _this = this;
|
|
41602
|
+
return __generator(this, function (_a) {
|
|
41603
|
+
switch (_a.label) {
|
|
41604
|
+
case 0:
|
|
41605
|
+
if (this._isLoading || !this.hasPrev)
|
|
41606
|
+
return [2 /*return*/];
|
|
41607
|
+
this._isLoading = true;
|
|
41608
|
+
_a.label = 1;
|
|
41609
|
+
case 1:
|
|
41610
|
+
_a.trys.push([1, 3, 4, 5]);
|
|
41611
|
+
minPage_1 = this._minPage - 1;
|
|
41612
|
+
return [4 /*yield*/, this.getRaffleList(minPage_1, this.limit)];
|
|
41613
|
+
case 2:
|
|
41614
|
+
response_1 = _a.sent();
|
|
41615
|
+
runInAction(function () {
|
|
41616
|
+
_this.data = response_1.raffles.concat(_this.data);
|
|
41617
|
+
_this._count = response_1.count;
|
|
41618
|
+
_this._minPage = minPage_1;
|
|
41619
|
+
});
|
|
41620
|
+
return [3 /*break*/, 5];
|
|
41621
|
+
case 3:
|
|
41622
|
+
err_2 = _a.sent();
|
|
41623
|
+
console.log(err_2);
|
|
41624
|
+
return [3 /*break*/, 5];
|
|
41625
|
+
case 4:
|
|
41626
|
+
runInAction(function () {
|
|
41627
|
+
_this._isLoading = false;
|
|
41628
|
+
});
|
|
41629
|
+
return [7 /*endfinally*/];
|
|
41630
|
+
case 5: return [2 /*return*/];
|
|
41631
|
+
}
|
|
41632
|
+
});
|
|
41633
|
+
}); };
|
|
41634
|
+
this.getNext = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
41635
|
+
var response_2, err_3;
|
|
41636
|
+
var _this = this;
|
|
41637
|
+
return __generator(this, function (_a) {
|
|
41638
|
+
switch (_a.label) {
|
|
41639
|
+
case 0:
|
|
41640
|
+
if (this._isLoading || !this.hasNext)
|
|
41641
|
+
return [2 /*return*/];
|
|
41642
|
+
this._isLoading = true;
|
|
41643
|
+
_a.label = 1;
|
|
41644
|
+
case 1:
|
|
41645
|
+
_a.trys.push([1, 3, 4, 5]);
|
|
41646
|
+
return [4 /*yield*/, this.getRaffleList(this.page + 1, this.limit)];
|
|
41647
|
+
case 2:
|
|
41648
|
+
response_2 = _a.sent();
|
|
41649
|
+
runInAction(function () {
|
|
41650
|
+
_this.data = _this.data.concat(response_2.raffles);
|
|
41651
|
+
_this._count = response_2.count;
|
|
41652
|
+
_this._page = _this.page + 1;
|
|
41653
|
+
});
|
|
41654
|
+
return [3 /*break*/, 5];
|
|
41655
|
+
case 3:
|
|
41656
|
+
err_3 = _a.sent();
|
|
41657
|
+
console.log(err_3);
|
|
41658
|
+
return [3 /*break*/, 5];
|
|
41659
|
+
case 4:
|
|
41660
|
+
runInAction(function () {
|
|
41661
|
+
_this._isLoading = false;
|
|
41662
|
+
});
|
|
41663
|
+
return [7 /*endfinally*/];
|
|
41664
|
+
case 5: return [2 /*return*/];
|
|
41665
|
+
}
|
|
41666
|
+
});
|
|
41667
|
+
}); };
|
|
41668
|
+
this.getPage = function (page) { return __awaiter(_this, void 0, void 0, function () {
|
|
41669
|
+
var response_3, err_4;
|
|
41670
|
+
var _this = this;
|
|
41671
|
+
return __generator(this, function (_a) {
|
|
41672
|
+
switch (_a.label) {
|
|
41673
|
+
case 0:
|
|
41674
|
+
if (this._isLoading)
|
|
41675
|
+
return [2 /*return*/];
|
|
41676
|
+
this._isLoading = true;
|
|
41677
|
+
_a.label = 1;
|
|
41678
|
+
case 1:
|
|
41679
|
+
_a.trys.push([1, 3, 4, 5]);
|
|
41680
|
+
return [4 /*yield*/, this.getRaffleList(page, this.limit)];
|
|
41681
|
+
case 2:
|
|
41682
|
+
response_3 = _a.sent();
|
|
41683
|
+
runInAction(function () {
|
|
41684
|
+
_this.data = response_3.raffles;
|
|
41685
|
+
_this._count = response_3.count;
|
|
41686
|
+
_this._page = page;
|
|
41687
|
+
_this._minPage = page;
|
|
41688
|
+
});
|
|
41689
|
+
return [3 /*break*/, 5];
|
|
41690
|
+
case 3:
|
|
41691
|
+
err_4 = _a.sent();
|
|
41692
|
+
console.log(err_4);
|
|
41693
|
+
return [3 /*break*/, 5];
|
|
41694
|
+
case 4:
|
|
41695
|
+
runInAction(function () {
|
|
41696
|
+
_this._isLoading = false;
|
|
41697
|
+
});
|
|
41698
|
+
return [7 /*endfinally*/];
|
|
41699
|
+
case 5: return [2 /*return*/];
|
|
41700
|
+
}
|
|
41701
|
+
});
|
|
41702
|
+
}); };
|
|
41703
|
+
this.data = data.data ? data.data.map(function (r) { return new IkasRaffle(r); }) : [];
|
|
41704
|
+
this._limit = data.limit || 20;
|
|
41705
|
+
this._page = data.page || 1;
|
|
41706
|
+
this._count = data.count || 0;
|
|
41707
|
+
this._initialized = data.initialized || false;
|
|
41708
|
+
this._minPage = data.minPage || null;
|
|
41709
|
+
this._start = data.start || null;
|
|
41710
|
+
this._end = data.end || null;
|
|
41711
|
+
this._includeDeleted = data.includeDeleted || null;
|
|
41712
|
+
this._name = data.name || null;
|
|
41713
|
+
this._search = data.search || null;
|
|
41714
|
+
this._id = data.id || null;
|
|
41715
|
+
makeAutoObservable(this);
|
|
41716
|
+
}
|
|
41717
|
+
Object.defineProperty(IkasRaffleList.prototype, "limit", {
|
|
41718
|
+
get: function () {
|
|
41719
|
+
return this._limit;
|
|
41720
|
+
},
|
|
41721
|
+
enumerable: false,
|
|
41722
|
+
configurable: true
|
|
41723
|
+
});
|
|
41724
|
+
Object.defineProperty(IkasRaffleList.prototype, "page", {
|
|
41725
|
+
get: function () {
|
|
41726
|
+
return this._page;
|
|
41727
|
+
},
|
|
41728
|
+
enumerable: false,
|
|
41729
|
+
configurable: true
|
|
41730
|
+
});
|
|
41731
|
+
Object.defineProperty(IkasRaffleList.prototype, "count", {
|
|
41732
|
+
get: function () {
|
|
41733
|
+
return this._count;
|
|
41734
|
+
},
|
|
41735
|
+
enumerable: false,
|
|
41736
|
+
configurable: true
|
|
41737
|
+
});
|
|
41738
|
+
Object.defineProperty(IkasRaffleList.prototype, "pageCount", {
|
|
41739
|
+
get: function () {
|
|
41740
|
+
return Math.ceil(this._count / this._limit);
|
|
41741
|
+
},
|
|
41742
|
+
enumerable: false,
|
|
41743
|
+
configurable: true
|
|
41744
|
+
});
|
|
41745
|
+
Object.defineProperty(IkasRaffleList.prototype, "isInitialized", {
|
|
41746
|
+
get: function () {
|
|
41747
|
+
return this._initialized;
|
|
41748
|
+
},
|
|
41749
|
+
enumerable: false,
|
|
41750
|
+
configurable: true
|
|
41751
|
+
});
|
|
41752
|
+
Object.defineProperty(IkasRaffleList.prototype, "hasPrev", {
|
|
41753
|
+
get: function () {
|
|
41754
|
+
if (!this._minPage)
|
|
41755
|
+
return false;
|
|
41756
|
+
return this._minPage > 1;
|
|
41757
|
+
},
|
|
41758
|
+
enumerable: false,
|
|
41759
|
+
configurable: true
|
|
41760
|
+
});
|
|
41761
|
+
Object.defineProperty(IkasRaffleList.prototype, "hasNext", {
|
|
41762
|
+
get: function () {
|
|
41763
|
+
return this.page * this.limit < this.count;
|
|
41764
|
+
},
|
|
41765
|
+
enumerable: false,
|
|
41766
|
+
configurable: true
|
|
41767
|
+
});
|
|
41768
|
+
Object.defineProperty(IkasRaffleList.prototype, "isLoading", {
|
|
41769
|
+
get: function () {
|
|
41770
|
+
return this._isLoading;
|
|
41771
|
+
},
|
|
41772
|
+
enumerable: false,
|
|
41773
|
+
configurable: true
|
|
41774
|
+
});
|
|
41775
|
+
Object.defineProperty(IkasRaffleList.prototype, "minPage", {
|
|
41776
|
+
get: function () {
|
|
41777
|
+
return this._minPage || 1;
|
|
41778
|
+
},
|
|
41779
|
+
enumerable: false,
|
|
41780
|
+
configurable: true
|
|
41781
|
+
});
|
|
41782
|
+
IkasRaffleList.prototype.getRaffleList = function (page, limit) {
|
|
41783
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41784
|
+
return __generator(this, function (_a) {
|
|
41785
|
+
switch (_a.label) {
|
|
41786
|
+
case 0: return [4 /*yield*/, IkasRaffleAPI.listRaffles({
|
|
41787
|
+
start: this._start,
|
|
41788
|
+
end: this._end,
|
|
41789
|
+
includeDeleted: this._includeDeleted || false,
|
|
41790
|
+
name: this._name,
|
|
41791
|
+
id: this._id,
|
|
41792
|
+
search: this._search || undefined,
|
|
41793
|
+
pagination: {
|
|
41794
|
+
limit: limit,
|
|
41795
|
+
page: page,
|
|
41796
|
+
},
|
|
41797
|
+
})];
|
|
41798
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
41799
|
+
}
|
|
41800
|
+
});
|
|
41801
|
+
});
|
|
41802
|
+
};
|
|
41803
|
+
IkasRaffleList.prototype.toJSON = function () {
|
|
41804
|
+
return {
|
|
41805
|
+
data: this.data,
|
|
41806
|
+
limit: this._limit,
|
|
41807
|
+
page: this._page,
|
|
41808
|
+
count: this._count,
|
|
41809
|
+
initialized: this._initialized,
|
|
41810
|
+
minPage: this._minPage,
|
|
41811
|
+
};
|
|
41812
|
+
};
|
|
41813
|
+
return IkasRaffleList;
|
|
41814
|
+
}());
|
|
41815
|
+
|
|
41093
41816
|
var IkasProductListPropValue = /** @class */ (function () {
|
|
41094
41817
|
function IkasProductListPropValue(data) {
|
|
41095
41818
|
this.initialSort = null;
|
|
@@ -41211,6 +41934,30 @@ var IkasBlogCategoryListPropValue = /** @class */ (function () {
|
|
|
41211
41934
|
return IkasBlogCategoryListPropValue;
|
|
41212
41935
|
}());
|
|
41213
41936
|
|
|
41937
|
+
var IkasRafflePropValue = /** @class */ (function () {
|
|
41938
|
+
function IkasRafflePropValue(data) {
|
|
41939
|
+
this.raffleId = null;
|
|
41940
|
+
// Only for raffle detail page
|
|
41941
|
+
this.usePageData = null;
|
|
41942
|
+
this.raffleId = data.raffleId;
|
|
41943
|
+
this.usePageData = data.usePageData;
|
|
41944
|
+
makeAutoObservable(this);
|
|
41945
|
+
}
|
|
41946
|
+
return IkasRafflePropValue;
|
|
41947
|
+
}());
|
|
41948
|
+
|
|
41949
|
+
var IkasRaffleListPropValue = /** @class */ (function () {
|
|
41950
|
+
function IkasRaffleListPropValue(data) {
|
|
41951
|
+
this.initialLimit = null;
|
|
41952
|
+
// Only for static lists
|
|
41953
|
+
this.raffleIds = null;
|
|
41954
|
+
this.initialLimit = data.initialLimit || 20;
|
|
41955
|
+
this.raffleIds = data.raffleIds;
|
|
41956
|
+
makeAutoObservable(this);
|
|
41957
|
+
}
|
|
41958
|
+
return IkasRaffleListPropValue;
|
|
41959
|
+
}());
|
|
41960
|
+
|
|
41214
41961
|
var IkasBrandAPI = /** @class */ (function () {
|
|
41215
41962
|
function IkasBrandAPI() {
|
|
41216
41963
|
}
|
|
@@ -43459,6 +44206,230 @@ var IkasProductOptionSetAPI = /** @class */ (function () {
|
|
|
43459
44206
|
}());
|
|
43460
44207
|
var templateObject_1$i;
|
|
43461
44208
|
|
|
44209
|
+
var IkasRaffleAPI = /** @class */ (function () {
|
|
44210
|
+
function IkasRaffleAPI() {
|
|
44211
|
+
}
|
|
44212
|
+
IkasRaffleAPI.listRaffles = function (params) {
|
|
44213
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
44214
|
+
var LIST_QUERY, _a, data, errors, count, raffles, error_1;
|
|
44215
|
+
return __generator(this, function (_b) {
|
|
44216
|
+
switch (_b.label) {
|
|
44217
|
+
case 0:
|
|
44218
|
+
LIST_QUERY = src(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n query listRaffle(\n $end: DateFilterInput\n $start: DateFilterInput\n $id: StringFilterInput\n $includeDeleted: Boolean\n $name: StringFilterInput\n $pagination: PaginationInput\n $search: String\n ) {\n listRaffle(\n start: $start\n end: $end\n id: $id\n includeDeleted: $includeDeleted\n name: $name\n pagination: $pagination\n search: $search\n ) {\n count\n hasNext\n limit\n page\n data {\n createdAt\n variants {\n productId\n variantId\n }\n verificationType\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n participantCount\n requiredCustomerAccount\n status\n updatedAt\n }\n }\n }\n "], ["\n query listRaffle(\n $end: DateFilterInput\n $start: DateFilterInput\n $id: StringFilterInput\n $includeDeleted: Boolean\n $name: StringFilterInput\n $pagination: PaginationInput\n $search: String\n ) {\n listRaffle(\n start: $start\n end: $end\n id: $id\n includeDeleted: $includeDeleted\n name: $name\n pagination: $pagination\n search: $search\n ) {\n count\n hasNext\n limit\n page\n data {\n createdAt\n variants {\n productId\n variantId\n }\n verificationType\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n participantCount\n requiredCustomerAccount\n status\n updatedAt\n }\n }\n }\n "])));
|
|
44219
|
+
_b.label = 1;
|
|
44220
|
+
case 1:
|
|
44221
|
+
_b.trys.push([1, 3, , 4]);
|
|
44222
|
+
return [4 /*yield*/, apollo
|
|
44223
|
+
.getClient()
|
|
44224
|
+
.query({
|
|
44225
|
+
query: LIST_QUERY,
|
|
44226
|
+
variables: {
|
|
44227
|
+
start: params.start ? { eq: params.start } : undefined,
|
|
44228
|
+
end: params.end ? { eq: params.end } : undefined,
|
|
44229
|
+
id: params.id ? { eq: params.id } : undefined,
|
|
44230
|
+
includeDeleted: params.includeDeleted
|
|
44231
|
+
? params.includeDeleted
|
|
44232
|
+
: params.includeDeleted,
|
|
44233
|
+
name: params.name ? { eq: params.name } : undefined,
|
|
44234
|
+
pagination: params.pagination
|
|
44235
|
+
? {
|
|
44236
|
+
limit: params.pagination.limit,
|
|
44237
|
+
page: params.pagination.page,
|
|
44238
|
+
}
|
|
44239
|
+
: undefined,
|
|
44240
|
+
search: params.search,
|
|
44241
|
+
},
|
|
44242
|
+
})];
|
|
44243
|
+
case 2:
|
|
44244
|
+
_a = _b.sent(), data = _a.data, errors = _a.errors;
|
|
44245
|
+
if (errors && errors.length) {
|
|
44246
|
+
return [2 /*return*/, {
|
|
44247
|
+
raffles: [],
|
|
44248
|
+
count: 0,
|
|
44249
|
+
}];
|
|
44250
|
+
}
|
|
44251
|
+
count = data.listRaffle.count;
|
|
44252
|
+
raffles = data.listRaffle.data.map(function (raffle) {
|
|
44253
|
+
var _a, _b;
|
|
44254
|
+
return new IkasRaffle({
|
|
44255
|
+
id: raffle.id,
|
|
44256
|
+
dateRange: {
|
|
44257
|
+
end: (_a = raffle.dateRange) === null || _a === void 0 ? void 0 : _a.end,
|
|
44258
|
+
start: (_b = raffle.dateRange) === null || _b === void 0 ? void 0 : _b.start,
|
|
44259
|
+
},
|
|
44260
|
+
createdAt: raffle.createdAt,
|
|
44261
|
+
deleted: raffle.deleted,
|
|
44262
|
+
metadata: raffle.metadata || undefined,
|
|
44263
|
+
name: raffle.name,
|
|
44264
|
+
participantCount: raffle.participantCount,
|
|
44265
|
+
requiredCustomerAccount: raffle.requiredCustomerAccount,
|
|
44266
|
+
status: raffle.status,
|
|
44267
|
+
updatedAt: raffle.updatedAt,
|
|
44268
|
+
variants: raffle.variants.length > 0
|
|
44269
|
+
? raffle.variants.map(function (v) { return new IkasRaffleAppliedProduct(v); })
|
|
44270
|
+
: undefined,
|
|
44271
|
+
verificationType: raffle.verificationType,
|
|
44272
|
+
});
|
|
44273
|
+
});
|
|
44274
|
+
return [2 /*return*/, {
|
|
44275
|
+
count: count,
|
|
44276
|
+
raffles: raffles,
|
|
44277
|
+
}];
|
|
44278
|
+
case 3:
|
|
44279
|
+
error_1 = _b.sent();
|
|
44280
|
+
console.log(error_1);
|
|
44281
|
+
return [2 /*return*/, {
|
|
44282
|
+
raffles: [],
|
|
44283
|
+
count: 0,
|
|
44284
|
+
}];
|
|
44285
|
+
case 4: return [2 /*return*/];
|
|
44286
|
+
}
|
|
44287
|
+
});
|
|
44288
|
+
});
|
|
44289
|
+
};
|
|
44290
|
+
IkasRaffleAPI.saveRaffleParticipant = function (participant) {
|
|
44291
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
44292
|
+
var SAVE_RAFFLE_PARTICIPANT, _a, data, errors, error_2;
|
|
44293
|
+
return __generator(this, function (_b) {
|
|
44294
|
+
switch (_b.label) {
|
|
44295
|
+
case 0:
|
|
44296
|
+
SAVE_RAFFLE_PARTICIPANT = src(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n mutation saveRaffleParticipant($input: RaffleParticipantsInput!) {\n saveRaffleParticipant(input: $input) {\n applicationDate\n isWinner\n lastName\n phone\n raffleId\n updatedAt\n appliedProducts {\n productId\n variantId\n }\n createdAt\n customerId\n deleted\n email\n extraData\n firstName\n fullName\n id\n }\n }\n "], ["\n mutation saveRaffleParticipant($input: RaffleParticipantsInput!) {\n saveRaffleParticipant(input: $input) {\n applicationDate\n isWinner\n lastName\n phone\n raffleId\n updatedAt\n appliedProducts {\n productId\n variantId\n }\n createdAt\n customerId\n deleted\n email\n extraData\n firstName\n fullName\n id\n }\n }\n "])));
|
|
44297
|
+
_b.label = 1;
|
|
44298
|
+
case 1:
|
|
44299
|
+
_b.trys.push([1, 3, , 4]);
|
|
44300
|
+
return [4 /*yield*/, apollo
|
|
44301
|
+
.getClient()
|
|
44302
|
+
.mutate({
|
|
44303
|
+
mutation: SAVE_RAFFLE_PARTICIPANT,
|
|
44304
|
+
variables: {
|
|
44305
|
+
input: {
|
|
44306
|
+
appliedProducts: participant.appliedProducts,
|
|
44307
|
+
email: participant.email,
|
|
44308
|
+
firstName: participant.firstName,
|
|
44309
|
+
lastName: participant.lastName,
|
|
44310
|
+
raffleId: participant.raffleId,
|
|
44311
|
+
extraData: participant.extraData,
|
|
44312
|
+
phone: participant.phone,
|
|
44313
|
+
},
|
|
44314
|
+
},
|
|
44315
|
+
})];
|
|
44316
|
+
case 2:
|
|
44317
|
+
_a = _b.sent(), data = _a.data, errors = _a.errors;
|
|
44318
|
+
if (errors && errors.length) {
|
|
44319
|
+
console.log(errors);
|
|
44320
|
+
}
|
|
44321
|
+
if (data && data.saveRaffleParticipant)
|
|
44322
|
+
return [2 /*return*/, new IkasRaffleParticipant(data.saveRaffleParticipant)];
|
|
44323
|
+
return [3 /*break*/, 4];
|
|
44324
|
+
case 3:
|
|
44325
|
+
error_2 = _b.sent();
|
|
44326
|
+
console.log(error_2);
|
|
44327
|
+
return [3 /*break*/, 4];
|
|
44328
|
+
case 4: return [2 /*return*/];
|
|
44329
|
+
}
|
|
44330
|
+
});
|
|
44331
|
+
});
|
|
44332
|
+
};
|
|
44333
|
+
IkasRaffleAPI.listRaffleMetaData = function (slug, targetId, targetType) {
|
|
44334
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
44335
|
+
var LIST_QUERY, _a, data, errors, err_1;
|
|
44336
|
+
return __generator(this, function (_b) {
|
|
44337
|
+
switch (_b.label) {
|
|
44338
|
+
case 0:
|
|
44339
|
+
LIST_QUERY = src(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n query listRaffleMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: RaffleMetadataTargetTypeEnumFilter\n ) {\n listRaffleMetadata(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n "], ["\n query listRaffleMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: RaffleMetadataTargetTypeEnumFilter\n ) {\n listRaffleMetadata(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n "])));
|
|
44340
|
+
_b.label = 1;
|
|
44341
|
+
case 1:
|
|
44342
|
+
_b.trys.push([1, 3, , 4]);
|
|
44343
|
+
return [4 /*yield*/, apollo
|
|
44344
|
+
.getClient()
|
|
44345
|
+
.query({
|
|
44346
|
+
query: LIST_QUERY,
|
|
44347
|
+
variables: {
|
|
44348
|
+
slug: slug
|
|
44349
|
+
? {
|
|
44350
|
+
eq: slug,
|
|
44351
|
+
}
|
|
44352
|
+
: undefined,
|
|
44353
|
+
targetId: targetId
|
|
44354
|
+
? {
|
|
44355
|
+
eq: targetId,
|
|
44356
|
+
}
|
|
44357
|
+
: undefined,
|
|
44358
|
+
targetType: targetType
|
|
44359
|
+
? {
|
|
44360
|
+
in: targetType,
|
|
44361
|
+
}
|
|
44362
|
+
: undefined,
|
|
44363
|
+
},
|
|
44364
|
+
})];
|
|
44365
|
+
case 2:
|
|
44366
|
+
_a = _b.sent(), data = _a.data, errors = _a.errors;
|
|
44367
|
+
if (errors && errors.length) {
|
|
44368
|
+
return [2 /*return*/, []];
|
|
44369
|
+
}
|
|
44370
|
+
return [2 /*return*/, data.listRaffleMetadata.map(function (d) { return new IkasRaffleMetaData(d); })];
|
|
44371
|
+
case 3:
|
|
44372
|
+
err_1 = _b.sent();
|
|
44373
|
+
console.log(err_1);
|
|
44374
|
+
return [2 /*return*/, []];
|
|
44375
|
+
case 4: return [2 /*return*/];
|
|
44376
|
+
}
|
|
44377
|
+
});
|
|
44378
|
+
});
|
|
44379
|
+
};
|
|
44380
|
+
IkasRaffleAPI.getRafflesByCustomerId = function () {
|
|
44381
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
44382
|
+
var LIST_QUERY, data, raffles, error_3;
|
|
44383
|
+
return __generator(this, function (_a) {
|
|
44384
|
+
switch (_a.label) {
|
|
44385
|
+
case 0:
|
|
44386
|
+
LIST_QUERY = src(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n query getRafflesByCustomerId {\n getRafflesByCustomerId {\n createdAt\n variants {\n productId\n variantId\n }\n verificationType\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n participantCount\n requiredCustomerAccount\n status\n updatedAt\n }\n }\n "], ["\n query getRafflesByCustomerId {\n getRafflesByCustomerId {\n createdAt\n variants {\n productId\n variantId\n }\n verificationType\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n participantCount\n requiredCustomerAccount\n status\n updatedAt\n }\n }\n "])));
|
|
44387
|
+
_a.label = 1;
|
|
44388
|
+
case 1:
|
|
44389
|
+
_a.trys.push([1, 3, , 4]);
|
|
44390
|
+
return [4 /*yield*/, apollo
|
|
44391
|
+
.getClient()
|
|
44392
|
+
.query({
|
|
44393
|
+
query: LIST_QUERY,
|
|
44394
|
+
})];
|
|
44395
|
+
case 2:
|
|
44396
|
+
data = (_a.sent()).data;
|
|
44397
|
+
raffles = data.getRafflesByCustomerId.map(function (raffle) {
|
|
44398
|
+
var _a, _b;
|
|
44399
|
+
return new IkasRaffle({
|
|
44400
|
+
id: raffle.id,
|
|
44401
|
+
dateRange: {
|
|
44402
|
+
end: (_a = raffle.dateRange) === null || _a === void 0 ? void 0 : _a.end,
|
|
44403
|
+
start: (_b = raffle.dateRange) === null || _b === void 0 ? void 0 : _b.start,
|
|
44404
|
+
},
|
|
44405
|
+
createdAt: raffle.createdAt,
|
|
44406
|
+
deleted: raffle.deleted,
|
|
44407
|
+
metadata: raffle.metadata || undefined,
|
|
44408
|
+
name: raffle.name,
|
|
44409
|
+
participantCount: raffle.participantCount,
|
|
44410
|
+
requiredCustomerAccount: raffle.requiredCustomerAccount,
|
|
44411
|
+
status: raffle.status,
|
|
44412
|
+
updatedAt: raffle.updatedAt,
|
|
44413
|
+
variants: raffle.variants.length > 0
|
|
44414
|
+
? raffle.variants.map(function (v) { return new IkasRaffleAppliedProduct(v); })
|
|
44415
|
+
: undefined,
|
|
44416
|
+
verificationType: raffle.verificationType,
|
|
44417
|
+
});
|
|
44418
|
+
});
|
|
44419
|
+
return [2 /*return*/, raffles];
|
|
44420
|
+
case 3:
|
|
44421
|
+
error_3 = _a.sent();
|
|
44422
|
+
console.log(error_3);
|
|
44423
|
+
return [3 /*break*/, 4];
|
|
44424
|
+
case 4: return [2 /*return*/];
|
|
44425
|
+
}
|
|
44426
|
+
});
|
|
44427
|
+
});
|
|
44428
|
+
};
|
|
44429
|
+
return IkasRaffleAPI;
|
|
44430
|
+
}());
|
|
44431
|
+
var templateObject_1$j, templateObject_2$9, templateObject_3$5, templateObject_4$3;
|
|
44432
|
+
|
|
43462
44433
|
var IkasProductBackInStockReminderAPI = /** @class */ (function () {
|
|
43463
44434
|
function IkasProductBackInStockReminderAPI() {
|
|
43464
44435
|
}
|
|
@@ -43468,7 +44439,7 @@ var IkasProductBackInStockReminderAPI = /** @class */ (function () {
|
|
|
43468
44439
|
return __generator(this, function (_b) {
|
|
43469
44440
|
switch (_b.label) {
|
|
43470
44441
|
case 0:
|
|
43471
|
-
QUERY = src(templateObject_1$
|
|
44442
|
+
QUERY = src(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n query listProductBackInStockRemind(\n $id: StringFilterInput\n $updatedAt: DateFilterInput\n $includeDeleted: Boolean\n $email: StringFilterInput\n $productId: StringFilterInput\n $variantId: StringFilterInput\n ) {\n listProductBackInStockRemind(\n id: $id\n updatedAt: $updatedAt\n includeDeleted: $includeDeleted\n email: $email\n productId: $productId\n variantId: $variantId\n ) {\n createdAt\n customerId\n deleted\n email\n id\n productId\n storefrontId\n updatedAt\n variantId\n }\n }\n "], ["\n query listProductBackInStockRemind(\n $id: StringFilterInput\n $updatedAt: DateFilterInput\n $includeDeleted: Boolean\n $email: StringFilterInput\n $productId: StringFilterInput\n $variantId: StringFilterInput\n ) {\n listProductBackInStockRemind(\n id: $id\n updatedAt: $updatedAt\n includeDeleted: $includeDeleted\n email: $email\n productId: $productId\n variantId: $variantId\n ) {\n createdAt\n customerId\n deleted\n email\n id\n productId\n storefrontId\n updatedAt\n variantId\n }\n }\n "])));
|
|
43472
44443
|
_b.label = 1;
|
|
43473
44444
|
case 1:
|
|
43474
44445
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -43508,7 +44479,7 @@ var IkasProductBackInStockReminderAPI = /** @class */ (function () {
|
|
|
43508
44479
|
return __generator(this, function (_b) {
|
|
43509
44480
|
switch (_b.label) {
|
|
43510
44481
|
case 0:
|
|
43511
|
-
MUTATION = src(templateObject_2$
|
|
44482
|
+
MUTATION = src(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n mutation saveProductBackInStockRemind(\n $input: ProductBackInStockRemindInput!\n ) {\n saveProductBackInStockRemind(input: $input) {\n createdAt\n customerId\n deleted\n email\n id\n productId\n storefrontId\n updatedAt\n variantId\n }\n }\n "], ["\n mutation saveProductBackInStockRemind(\n $input: ProductBackInStockRemindInput!\n ) {\n saveProductBackInStockRemind(input: $input) {\n createdAt\n customerId\n deleted\n email\n id\n productId\n storefrontId\n updatedAt\n variantId\n }\n }\n "])));
|
|
43512
44483
|
_b.label = 1;
|
|
43513
44484
|
case 1:
|
|
43514
44485
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -43539,7 +44510,7 @@ var IkasProductBackInStockReminderAPI = /** @class */ (function () {
|
|
|
43539
44510
|
};
|
|
43540
44511
|
return IkasProductBackInStockReminderAPI;
|
|
43541
44512
|
}());
|
|
43542
|
-
var templateObject_1$
|
|
44513
|
+
var templateObject_1$k, templateObject_2$a;
|
|
43543
44514
|
|
|
43544
44515
|
var IkasProductListPropValueProvider = /** @class */ (function () {
|
|
43545
44516
|
function IkasProductListPropValueProvider(pageType, productListPropValue, pageSpecificData) {
|
|
@@ -43611,6 +44582,9 @@ function getPlaceholderBlog() {
|
|
|
43611
44582
|
}
|
|
43612
44583
|
function getPlaceholderBlogCategory() {
|
|
43613
44584
|
return new IkasBlogCategory();
|
|
44585
|
+
}
|
|
44586
|
+
function getPlaceholderRaffle() {
|
|
44587
|
+
return new IkasRaffle();
|
|
43614
44588
|
}
|
|
43615
44589
|
|
|
43616
44590
|
var IkasProductDetailPropValueProvider = /** @class */ (function () {
|
|
@@ -44290,6 +45264,64 @@ var IkasBlogCategoryListPropValueProvider = /** @class */ (function () {
|
|
|
44290
45264
|
return IkasBlogCategoryListPropValueProvider;
|
|
44291
45265
|
}());
|
|
44292
45266
|
|
|
45267
|
+
var IkasRaffleListPropValueProvider = /** @class */ (function () {
|
|
45268
|
+
function IkasRaffleListPropValueProvider() {
|
|
45269
|
+
}
|
|
45270
|
+
IkasRaffleListPropValueProvider.prototype.getValue = function () {
|
|
45271
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
45272
|
+
var raffleList;
|
|
45273
|
+
return __generator(this, function (_a) {
|
|
45274
|
+
switch (_a.label) {
|
|
45275
|
+
case 0:
|
|
45276
|
+
raffleList = new IkasRaffleList();
|
|
45277
|
+
//@ts-ignore
|
|
45278
|
+
return [4 /*yield*/, raffleList.getInitial()];
|
|
45279
|
+
case 1:
|
|
45280
|
+
//@ts-ignore
|
|
45281
|
+
_a.sent();
|
|
45282
|
+
return [2 /*return*/, raffleList];
|
|
45283
|
+
}
|
|
45284
|
+
});
|
|
45285
|
+
});
|
|
45286
|
+
};
|
|
45287
|
+
return IkasRaffleListPropValueProvider;
|
|
45288
|
+
}());
|
|
45289
|
+
|
|
45290
|
+
var IkasRafflePropValueProvider = /** @class */ (function () {
|
|
45291
|
+
function IkasRafflePropValueProvider(propValue) {
|
|
45292
|
+
this.rafflePropValue = propValue;
|
|
45293
|
+
}
|
|
45294
|
+
IkasRafflePropValueProvider.prototype.getValue = function () {
|
|
45295
|
+
var _a;
|
|
45296
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
45297
|
+
var raffle;
|
|
45298
|
+
return __generator(this, function (_b) {
|
|
45299
|
+
switch (_b.label) {
|
|
45300
|
+
case 0:
|
|
45301
|
+
if ((_a = this.rafflePropValue) === null || _a === void 0 ? void 0 : _a.usePageData) {
|
|
45302
|
+
return [2 /*return*/, {
|
|
45303
|
+
raffle: null,
|
|
45304
|
+
rafflePropValue: this.rafflePropValue,
|
|
45305
|
+
}];
|
|
45306
|
+
}
|
|
45307
|
+
if (!this.rafflePropValue.raffleId)
|
|
45308
|
+
return [2 /*return*/, null];
|
|
45309
|
+
return [4 /*yield*/, IkasRaffleAPI.listRaffles({
|
|
45310
|
+
id: this.rafflePropValue.raffleId,
|
|
45311
|
+
})];
|
|
45312
|
+
case 1:
|
|
45313
|
+
raffle = _b.sent();
|
|
45314
|
+
return [2 /*return*/, {
|
|
45315
|
+
raffle: raffle.raffles[0] || getPlaceholderRaffle(),
|
|
45316
|
+
rafflePropValue: this.rafflePropValue,
|
|
45317
|
+
}];
|
|
45318
|
+
}
|
|
45319
|
+
});
|
|
45320
|
+
});
|
|
45321
|
+
};
|
|
45322
|
+
return IkasRafflePropValueProvider;
|
|
45323
|
+
}());
|
|
45324
|
+
|
|
44293
45325
|
var IkasCustomPropValueProvider = /** @class */ (function () {
|
|
44294
45326
|
function IkasCustomPropValueProvider(value, customData, theme, pageType, pageDataProvider, pageSpecificData, pageParams) {
|
|
44295
45327
|
this.value = value;
|
|
@@ -44306,11 +45338,12 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
|
|
|
44306
45338
|
return __generator(this, function (_b) {
|
|
44307
45339
|
switch (_b.label) {
|
|
44308
45340
|
case 0:
|
|
44309
|
-
if (this.value === undefined || this.value === null)
|
|
45341
|
+
if ((this.value === undefined || this.value === null) &&
|
|
45342
|
+
this.customData.type !== IkasThemeComponentPropType.RAFFLE_LIST)
|
|
44310
45343
|
return [2 /*return*/, { value: null, customData: this.customData }];
|
|
44311
45344
|
_b.label = 1;
|
|
44312
45345
|
case 1:
|
|
44313
|
-
_b.trys.push([1,
|
|
45346
|
+
_b.trys.push([1, 56, , 57]);
|
|
44314
45347
|
_a = this.customData.type;
|
|
44315
45348
|
switch (_a) {
|
|
44316
45349
|
case IkasThemeComponentPropType.TEXT: return [3 /*break*/, 2];
|
|
@@ -44339,111 +45372,121 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
|
|
|
44339
45372
|
case IkasThemeComponentPropType.BLOG: return [3 /*break*/, 42];
|
|
44340
45373
|
case IkasThemeComponentPropType.BLOG_LIST: return [3 /*break*/, 44];
|
|
44341
45374
|
case IkasThemeComponentPropType.BLOG_CATEGORY: return [3 /*break*/, 46];
|
|
44342
|
-
case IkasThemeComponentPropType.
|
|
45375
|
+
case IkasThemeComponentPropType.BLOG_CATEGORY_LIST: return [3 /*break*/, 48];
|
|
45376
|
+
case IkasThemeComponentPropType.RAFFLE: return [3 /*break*/, 50];
|
|
45377
|
+
case IkasThemeComponentPropType.RAFFLE_LIST: return [3 /*break*/, 52];
|
|
44343
45378
|
}
|
|
44344
|
-
return [3 /*break*/,
|
|
45379
|
+
return [3 /*break*/, 54];
|
|
44345
45380
|
case 2: return [4 /*yield*/, this.getTextValue()];
|
|
44346
45381
|
case 3:
|
|
44347
45382
|
customDataValue = _b.sent();
|
|
44348
|
-
return [3 /*break*/,
|
|
45383
|
+
return [3 /*break*/, 55];
|
|
44349
45384
|
case 4: return [4 /*yield*/, this.getRichTextPropValue()];
|
|
44350
45385
|
case 5:
|
|
44351
45386
|
customDataValue = _b.sent();
|
|
44352
|
-
return [3 /*break*/,
|
|
45387
|
+
return [3 /*break*/, 55];
|
|
44353
45388
|
case 6: return [4 /*yield*/, this.getBooleanValue()];
|
|
44354
45389
|
case 7:
|
|
44355
45390
|
customDataValue = _b.sent();
|
|
44356
|
-
return [3 /*break*/,
|
|
45391
|
+
return [3 /*break*/, 55];
|
|
44357
45392
|
case 8: return [4 /*yield*/, this.getBrandListPropValue()];
|
|
44358
45393
|
case 9:
|
|
44359
45394
|
customDataValue = _b.sent();
|
|
44360
|
-
return [3 /*break*/,
|
|
45395
|
+
return [3 /*break*/, 55];
|
|
44361
45396
|
case 10: return [4 /*yield*/, this.getBrandPropValue()];
|
|
44362
45397
|
case 11:
|
|
44363
45398
|
customDataValue = _b.sent();
|
|
44364
|
-
return [3 /*break*/,
|
|
45399
|
+
return [3 /*break*/, 55];
|
|
44365
45400
|
case 12: return [4 /*yield*/, this.getCategoryListPropValue()];
|
|
44366
45401
|
case 13:
|
|
44367
45402
|
customDataValue = _b.sent();
|
|
44368
|
-
return [3 /*break*/,
|
|
45403
|
+
return [3 /*break*/, 55];
|
|
44369
45404
|
case 14: return [4 /*yield*/, this.getCategoryPropValue()];
|
|
44370
45405
|
case 15:
|
|
44371
45406
|
customDataValue = _b.sent();
|
|
44372
|
-
return [3 /*break*/,
|
|
45407
|
+
return [3 /*break*/, 55];
|
|
44373
45408
|
case 16: return [4 /*yield*/, this.getColorPropValue()];
|
|
44374
45409
|
case 17:
|
|
44375
45410
|
customDataValue = _b.sent();
|
|
44376
|
-
return [3 /*break*/,
|
|
45411
|
+
return [3 /*break*/, 55];
|
|
44377
45412
|
case 18: return [4 /*yield*/, this.getImageListPropValue()];
|
|
44378
45413
|
case 19:
|
|
44379
45414
|
customDataValue = _b.sent();
|
|
44380
|
-
return [3 /*break*/,
|
|
45415
|
+
return [3 /*break*/, 55];
|
|
44381
45416
|
case 20: return [4 /*yield*/, this.getImagePropValue()];
|
|
44382
45417
|
case 21:
|
|
44383
45418
|
customDataValue = _b.sent();
|
|
44384
|
-
return [3 /*break*/,
|
|
45419
|
+
return [3 /*break*/, 55];
|
|
44385
45420
|
case 22: return [4 /*yield*/, this.getLinkPropValue()];
|
|
44386
45421
|
case 23:
|
|
44387
45422
|
customDataValue = _b.sent();
|
|
44388
|
-
return [3 /*break*/,
|
|
45423
|
+
return [3 /*break*/, 55];
|
|
44389
45424
|
case 24: return [4 /*yield*/, this.getProductDetailPropValue()];
|
|
44390
45425
|
case 25:
|
|
44391
45426
|
customDataValue = _b.sent();
|
|
44392
|
-
return [3 /*break*/,
|
|
45427
|
+
return [3 /*break*/, 55];
|
|
44393
45428
|
case 26: return [4 /*yield*/, this.getProductListPropValue()];
|
|
44394
45429
|
case 27:
|
|
44395
45430
|
customDataValue = _b.sent();
|
|
44396
|
-
return [3 /*break*/,
|
|
45431
|
+
return [3 /*break*/, 55];
|
|
44397
45432
|
case 28: return [4 /*yield*/, this.getProductAttributePropValue()];
|
|
44398
45433
|
case 29:
|
|
44399
45434
|
customDataValue = _b.sent();
|
|
44400
|
-
return [3 /*break*/,
|
|
45435
|
+
return [3 /*break*/, 55];
|
|
44401
45436
|
case 30: return [4 /*yield*/, this.getProductAttributeListPropValue()];
|
|
44402
45437
|
case 31:
|
|
44403
45438
|
customDataValue = _b.sent();
|
|
44404
|
-
return [3 /*break*/,
|
|
45439
|
+
return [3 /*break*/, 55];
|
|
44405
45440
|
case 32: return [4 /*yield*/, this.getObjectValue()];
|
|
44406
45441
|
case 33:
|
|
44407
45442
|
customDataValue = _b.sent();
|
|
44408
|
-
return [3 /*break*/,
|
|
45443
|
+
return [3 /*break*/, 55];
|
|
44409
45444
|
case 34: return [4 /*yield*/, this.getArrayValue()];
|
|
44410
45445
|
case 35:
|
|
44411
45446
|
customDataValue = _b.sent();
|
|
44412
|
-
return [3 /*break*/,
|
|
45447
|
+
return [3 /*break*/, 55];
|
|
44413
45448
|
case 36: return [4 /*yield*/, this.getEnumValue()];
|
|
44414
45449
|
case 37:
|
|
44415
45450
|
customDataValue = _b.sent();
|
|
44416
|
-
return [3 /*break*/,
|
|
45451
|
+
return [3 /*break*/, 55];
|
|
44417
45452
|
case 38: return [4 /*yield*/, this.getCustomDataValue()];
|
|
44418
45453
|
case 39:
|
|
44419
45454
|
customDataValue = _b.sent();
|
|
44420
|
-
return [3 /*break*/,
|
|
45455
|
+
return [3 /*break*/, 55];
|
|
44421
45456
|
case 40: return [4 /*yield*/, this.getComponentListValue()];
|
|
44422
45457
|
case 41:
|
|
44423
45458
|
customDataValue = _b.sent();
|
|
44424
|
-
return [3 /*break*/,
|
|
45459
|
+
return [3 /*break*/, 55];
|
|
44425
45460
|
case 42: return [4 /*yield*/, this.getBlogValue()];
|
|
44426
45461
|
case 43:
|
|
44427
45462
|
customDataValue = _b.sent();
|
|
44428
|
-
return [3 /*break*/,
|
|
45463
|
+
return [3 /*break*/, 55];
|
|
44429
45464
|
case 44: return [4 /*yield*/, this.getBlogListValue()];
|
|
44430
45465
|
case 45:
|
|
44431
45466
|
customDataValue = _b.sent();
|
|
44432
|
-
return [3 /*break*/,
|
|
45467
|
+
return [3 /*break*/, 55];
|
|
44433
45468
|
case 46: return [4 /*yield*/, this.getBlogCategoryValue()];
|
|
44434
45469
|
case 47:
|
|
44435
45470
|
customDataValue = _b.sent();
|
|
44436
|
-
return [3 /*break*/,
|
|
45471
|
+
return [3 /*break*/, 55];
|
|
44437
45472
|
case 48: return [4 /*yield*/, this.getBlogCategoryListValue()];
|
|
44438
45473
|
case 49:
|
|
44439
45474
|
customDataValue = _b.sent();
|
|
44440
|
-
return [3 /*break*/,
|
|
44441
|
-
case 50: return [
|
|
44442
|
-
case 51:
|
|
44443
|
-
|
|
45475
|
+
return [3 /*break*/, 55];
|
|
45476
|
+
case 50: return [4 /*yield*/, this.getRaffleValue()];
|
|
45477
|
+
case 51:
|
|
45478
|
+
customDataValue = _b.sent();
|
|
45479
|
+
return [3 /*break*/, 55];
|
|
45480
|
+
case 52: return [4 /*yield*/, this.getRaffleListValue()];
|
|
45481
|
+
case 53:
|
|
45482
|
+
customDataValue = _b.sent();
|
|
45483
|
+
return [3 /*break*/, 55];
|
|
45484
|
+
case 54: return [3 /*break*/, 55];
|
|
45485
|
+
case 55: return [3 /*break*/, 57];
|
|
45486
|
+
case 56:
|
|
44444
45487
|
_b.sent();
|
|
44445
45488
|
return [2 /*return*/];
|
|
44446
|
-
case
|
|
45489
|
+
case 57:
|
|
44447
45490
|
if (this.customData.isRequired &&
|
|
44448
45491
|
((customDataValue === null || customDataValue === void 0 ? void 0 : customDataValue.value) === undefined || (customDataValue === null || customDataValue === void 0 ? void 0 : customDataValue.value) === null))
|
|
44449
45492
|
return [2 /*return*/];
|
|
@@ -44738,6 +45781,7 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
|
|
|
44738
45781
|
return [3 /*break*/, 3];
|
|
44739
45782
|
nestedValue = this.value[nestedData.key];
|
|
44740
45783
|
if (nestedData.isRequired &&
|
|
45784
|
+
nestedData.type !== IkasThemeComponentPropType.RAFFLE_LIST &&
|
|
44741
45785
|
(nestedValue === undefined || nestedValue === null))
|
|
44742
45786
|
throw new Error("Required data is missing");
|
|
44743
45787
|
nestedProvider = new IkasCustomPropValueProvider(nestedValue, nestedData, this.theme, this.pageType, this.pageDataProvider, this.pageSpecificData);
|
|
@@ -44776,6 +45820,7 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
|
|
|
44776
45820
|
if (!(_i < _a.length)) return [3 /*break*/, 4];
|
|
44777
45821
|
itemValue = _a[_i];
|
|
44778
45822
|
if (nestedData.isRequired &&
|
|
45823
|
+
nestedData.type !== IkasThemeComponentPropType.RAFFLE_LIST &&
|
|
44779
45824
|
(itemValue === undefined || itemValue === null))
|
|
44780
45825
|
throw new Error("Required data is missing");
|
|
44781
45826
|
provider = new IkasCustomPropValueProvider(itemValue, nestedData, this.theme, this.pageType, this.pageDataProvider, this.pageSpecificData);
|
|
@@ -44926,6 +45971,42 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
|
|
|
44926
45971
|
});
|
|
44927
45972
|
});
|
|
44928
45973
|
};
|
|
45974
|
+
IkasCustomPropValueProvider.prototype.getRaffleValue = function () {
|
|
45975
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
45976
|
+
var provider, value;
|
|
45977
|
+
return __generator(this, function (_a) {
|
|
45978
|
+
switch (_a.label) {
|
|
45979
|
+
case 0:
|
|
45980
|
+
provider = new IkasRafflePropValueProvider(this.value);
|
|
45981
|
+
return [4 /*yield*/, provider.getValue()];
|
|
45982
|
+
case 1:
|
|
45983
|
+
value = _a.sent();
|
|
45984
|
+
return [2 /*return*/, {
|
|
45985
|
+
value: value,
|
|
45986
|
+
customData: this.customData,
|
|
45987
|
+
}];
|
|
45988
|
+
}
|
|
45989
|
+
});
|
|
45990
|
+
});
|
|
45991
|
+
};
|
|
45992
|
+
IkasCustomPropValueProvider.prototype.getRaffleListValue = function () {
|
|
45993
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
45994
|
+
var provider, value;
|
|
45995
|
+
return __generator(this, function (_a) {
|
|
45996
|
+
switch (_a.label) {
|
|
45997
|
+
case 0:
|
|
45998
|
+
provider = new IkasRaffleListPropValueProvider();
|
|
45999
|
+
return [4 /*yield*/, provider.getValue()];
|
|
46000
|
+
case 1:
|
|
46001
|
+
value = _a.sent();
|
|
46002
|
+
return [2 /*return*/, {
|
|
46003
|
+
value: value,
|
|
46004
|
+
customData: this.customData,
|
|
46005
|
+
}];
|
|
46006
|
+
}
|
|
46007
|
+
});
|
|
46008
|
+
});
|
|
46009
|
+
};
|
|
44929
46010
|
return IkasCustomPropValueProvider;
|
|
44930
46011
|
}());
|
|
44931
46012
|
|
|
@@ -45050,12 +46131,12 @@ var IkasPageDataProvider = /** @class */ (function () {
|
|
|
45050
46131
|
});
|
|
45051
46132
|
};
|
|
45052
46133
|
IkasPageDataProvider.prototype.getPageSpecificData = function () {
|
|
45053
|
-
var _a, _b;
|
|
46134
|
+
var _a, _b, _c;
|
|
45054
46135
|
return __awaiter(this, void 0, void 0, function () {
|
|
45055
|
-
var slug, metaDataList, metaData, handleProductPage, handleBrandPage, handleCategoryPage, handleBlogPage, handleBlogCategoryPage,
|
|
46136
|
+
var slug, metaDataList, metaData, handleProductPage, handleBrandPage, handleCategoryPage, handleBlogPage, handleBlogCategoryPage, handleRafflePage, _d;
|
|
45056
46137
|
var _this = this;
|
|
45057
|
-
return __generator(this, function (
|
|
45058
|
-
switch (
|
|
46138
|
+
return __generator(this, function (_e) {
|
|
46139
|
+
switch (_e.label) {
|
|
45059
46140
|
case 0:
|
|
45060
46141
|
if (this.pageType &&
|
|
45061
46142
|
![
|
|
@@ -45064,6 +46145,7 @@ var IkasPageDataProvider = /** @class */ (function () {
|
|
|
45064
46145
|
IkasThemePageType.CATEGORY,
|
|
45065
46146
|
IkasThemePageType.BLOG,
|
|
45066
46147
|
IkasThemePageType.BLOG_CATEGORY,
|
|
46148
|
+
IkasThemePageType.RAFFLE_DETAIL,
|
|
45067
46149
|
].includes(this.pageType))
|
|
45068
46150
|
return [2 /*return*/];
|
|
45069
46151
|
slug = this.pageParams.slug;
|
|
@@ -45074,17 +46156,25 @@ var IkasPageDataProvider = /** @class */ (function () {
|
|
|
45074
46156
|
if (!(((_a = this.possiblePageTypes) === null || _a === void 0 ? void 0 : _a.includes(IkasThemePageType.BLOG)) || ((_b = this.possiblePageTypes) === null || _b === void 0 ? void 0 : _b.includes(IkasThemePageType.BLOG_CATEGORY)))) return [3 /*break*/, 2];
|
|
45075
46157
|
return [4 /*yield*/, IkasBlogAPI.listBlogMetaData(slug)];
|
|
45076
46158
|
case 1:
|
|
45077
|
-
metaDataList =
|
|
46159
|
+
metaDataList = _e.sent();
|
|
45078
46160
|
if (!metaDataList.length)
|
|
45079
46161
|
return [2 /*return*/];
|
|
45080
|
-
return [3 /*break*/,
|
|
45081
|
-
case 2:
|
|
46162
|
+
return [3 /*break*/, 6];
|
|
46163
|
+
case 2:
|
|
46164
|
+
if (!((_c = this.possiblePageTypes) === null || _c === void 0 ? void 0 : _c.includes(IkasThemePageType.RAFFLE_DETAIL))) return [3 /*break*/, 4];
|
|
46165
|
+
return [4 /*yield*/, IkasRaffleAPI.listRaffleMetaData(slug)];
|
|
45082
46166
|
case 3:
|
|
45083
|
-
metaDataList =
|
|
46167
|
+
metaDataList = _e.sent();
|
|
46168
|
+
if (!metaDataList.length)
|
|
46169
|
+
return [2 /*return*/];
|
|
46170
|
+
return [3 /*break*/, 6];
|
|
46171
|
+
case 4: return [4 /*yield*/, IkasHTMLMetaDataAPI.listHTMLMetaData(slug)];
|
|
46172
|
+
case 5:
|
|
46173
|
+
metaDataList = _e.sent();
|
|
45084
46174
|
if (!metaDataList || !metaDataList.length)
|
|
45085
46175
|
return [2 /*return*/];
|
|
45086
|
-
|
|
45087
|
-
case
|
|
46176
|
+
_e.label = 6;
|
|
46177
|
+
case 6:
|
|
45088
46178
|
metaData = metaDataList[0];
|
|
45089
46179
|
if (!metaData.targetId)
|
|
45090
46180
|
return [2 /*return*/];
|
|
@@ -45209,27 +46299,49 @@ var IkasPageDataProvider = /** @class */ (function () {
|
|
|
45209
46299
|
}
|
|
45210
46300
|
});
|
|
45211
46301
|
}); };
|
|
45212
|
-
|
|
45213
|
-
|
|
45214
|
-
|
|
45215
|
-
|
|
45216
|
-
|
|
45217
|
-
|
|
45218
|
-
|
|
46302
|
+
handleRafflePage = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
46303
|
+
var response, raffle;
|
|
46304
|
+
return __generator(this, function (_a) {
|
|
46305
|
+
switch (_a.label) {
|
|
46306
|
+
case 0: return [4 /*yield*/, IkasRaffleAPI.listRaffles({
|
|
46307
|
+
id: metaData.targetId,
|
|
46308
|
+
})];
|
|
46309
|
+
case 1:
|
|
46310
|
+
response = _a.sent();
|
|
46311
|
+
if (!response)
|
|
46312
|
+
return [2 /*return*/];
|
|
46313
|
+
raffle = response.raffles[0];
|
|
46314
|
+
this.pageSpecificData = raffle;
|
|
46315
|
+
this.pageType = IkasThemePageType.RAFFLE_DETAIL;
|
|
46316
|
+
this.setPageMetaData(metaData);
|
|
46317
|
+
return [2 /*return*/];
|
|
46318
|
+
}
|
|
46319
|
+
});
|
|
46320
|
+
}); };
|
|
46321
|
+
_d = metaData.targetType;
|
|
46322
|
+
switch (_d) {
|
|
46323
|
+
case IkasHTMLMetaDataTargetType.BRAND: return [3 /*break*/, 7];
|
|
46324
|
+
case IkasHTMLMetaDataTargetType.CATEGORY: return [3 /*break*/, 9];
|
|
46325
|
+
case IkasHTMLMetaDataTargetType.PRODUCT: return [3 /*break*/, 11];
|
|
46326
|
+
case IkasBlogMetadataTargetType.BLOG: return [3 /*break*/, 13];
|
|
46327
|
+
case IkasBlogMetadataTargetType.BLOG_CATEGORY: return [3 /*break*/, 15];
|
|
46328
|
+
case IkasRaffleMetadataTargetType.RAFFLE: return [3 /*break*/, 17];
|
|
45219
46329
|
}
|
|
45220
|
-
return [3 /*break*/,
|
|
45221
|
-
case
|
|
45222
|
-
case
|
|
45223
|
-
case
|
|
45224
|
-
case
|
|
45225
|
-
case
|
|
45226
|
-
case
|
|
45227
|
-
case
|
|
45228
|
-
case
|
|
45229
|
-
case
|
|
45230
|
-
case
|
|
45231
|
-
case
|
|
45232
|
-
case
|
|
46330
|
+
return [3 /*break*/, 19];
|
|
46331
|
+
case 7: return [4 /*yield*/, handleBrandPage()];
|
|
46332
|
+
case 8: return [2 /*return*/, _e.sent()];
|
|
46333
|
+
case 9: return [4 /*yield*/, handleCategoryPage()];
|
|
46334
|
+
case 10: return [2 /*return*/, _e.sent()];
|
|
46335
|
+
case 11: return [4 /*yield*/, handleProductPage()];
|
|
46336
|
+
case 12: return [2 /*return*/, _e.sent()];
|
|
46337
|
+
case 13: return [4 /*yield*/, handleBlogPage()];
|
|
46338
|
+
case 14: return [2 /*return*/, _e.sent()];
|
|
46339
|
+
case 15: return [4 /*yield*/, handleBlogCategoryPage()];
|
|
46340
|
+
case 16: return [2 /*return*/, _e.sent()];
|
|
46341
|
+
case 17: return [4 /*yield*/, handleRafflePage()];
|
|
46342
|
+
case 18: return [2 /*return*/, _e.sent()];
|
|
46343
|
+
case 19: return [3 /*break*/, 20];
|
|
46344
|
+
case 20: return [2 /*return*/];
|
|
45233
46345
|
}
|
|
45234
46346
|
});
|
|
45235
46347
|
});
|
|
@@ -45271,13 +46383,15 @@ var IkasPageDataProvider = /** @class */ (function () {
|
|
|
45271
46383
|
};
|
|
45272
46384
|
IkasPageDataProvider.prototype.getPageComponentPropValue = function (pageComponent, prop) {
|
|
45273
46385
|
return __awaiter(this, void 0, void 0, function () {
|
|
45274
|
-
var propValueProvider, propValue, _a, customData, pageComponents;
|
|
46386
|
+
var propValueProvider, propValue, emptyPropValueTypes, _a, customData, pageComponents;
|
|
45275
46387
|
var _this = this;
|
|
45276
46388
|
return __generator(this, function (_b) {
|
|
45277
46389
|
switch (_b.label) {
|
|
45278
46390
|
case 0:
|
|
45279
46391
|
propValue = pageComponent.propValues[prop.name];
|
|
45280
|
-
|
|
46392
|
+
emptyPropValueTypes = [IkasThemeComponentPropType.RAFFLE_LIST];
|
|
46393
|
+
if ((propValue === null || propValue === undefined) &&
|
|
46394
|
+
!emptyPropValueTypes.includes(prop.type))
|
|
45281
46395
|
return [2 /*return*/, null];
|
|
45282
46396
|
_a = prop.type;
|
|
45283
46397
|
switch (_a) {
|
|
@@ -45304,78 +46418,86 @@ var IkasPageDataProvider = /** @class */ (function () {
|
|
|
45304
46418
|
case IkasThemeComponentPropType.BLOG_LIST: return [3 /*break*/, 20];
|
|
45305
46419
|
case IkasThemeComponentPropType.BLOG_CATEGORY: return [3 /*break*/, 21];
|
|
45306
46420
|
case IkasThemeComponentPropType.BLOG_CATEGORY_LIST: return [3 /*break*/, 22];
|
|
46421
|
+
case IkasThemeComponentPropType.RAFFLE: return [3 /*break*/, 23];
|
|
46422
|
+
case IkasThemeComponentPropType.RAFFLE_LIST: return [3 /*break*/, 24];
|
|
45307
46423
|
}
|
|
45308
|
-
return [3 /*break*/,
|
|
46424
|
+
return [3 /*break*/, 25];
|
|
45309
46425
|
case 1:
|
|
45310
46426
|
propValueProvider = new IkasTextPropValueProvider(propValue);
|
|
45311
|
-
return [3 /*break*/,
|
|
46427
|
+
return [3 /*break*/, 26];
|
|
45312
46428
|
case 2:
|
|
45313
46429
|
propValueProvider = new IkasRichTextPropValueProvider(propValue);
|
|
45314
|
-
return [3 /*break*/,
|
|
46430
|
+
return [3 /*break*/, 26];
|
|
45315
46431
|
case 3:
|
|
45316
46432
|
propValueProvider = new IkasBooleanPropValueProvider(propValue);
|
|
45317
|
-
return [3 /*break*/,
|
|
46433
|
+
return [3 /*break*/, 26];
|
|
45318
46434
|
case 4:
|
|
45319
46435
|
propValueProvider = new IkasImagePropValueProvider(propValue);
|
|
45320
|
-
return [3 /*break*/,
|
|
46436
|
+
return [3 /*break*/, 26];
|
|
45321
46437
|
case 5:
|
|
45322
46438
|
propValueProvider = new IkasImageListPropValueProvider(propValue);
|
|
45323
|
-
return [3 /*break*/,
|
|
46439
|
+
return [3 /*break*/, 26];
|
|
45324
46440
|
case 6:
|
|
45325
46441
|
propValueProvider = new IkasBrandPropValueProvider(propValue);
|
|
45326
|
-
return [3 /*break*/,
|
|
46442
|
+
return [3 /*break*/, 26];
|
|
45327
46443
|
case 7:
|
|
45328
46444
|
propValueProvider = new IkasBrandListPropValueProvider(propValue);
|
|
45329
|
-
return [3 /*break*/,
|
|
46445
|
+
return [3 /*break*/, 26];
|
|
45330
46446
|
case 8:
|
|
45331
46447
|
propValueProvider = new IkasProductListPropValueProvider(this.pageType, propValue, this.pageSpecificData);
|
|
45332
|
-
return [3 /*break*/,
|
|
46448
|
+
return [3 /*break*/, 26];
|
|
45333
46449
|
case 9:
|
|
45334
46450
|
propValueProvider = new IkasProductDetailPropValueProvider(propValue);
|
|
45335
|
-
return [3 /*break*/,
|
|
46451
|
+
return [3 /*break*/, 26];
|
|
45336
46452
|
case 10:
|
|
45337
46453
|
propValueProvider = new IkasAttributePropValueProvider(propValue);
|
|
45338
|
-
return [3 /*break*/,
|
|
46454
|
+
return [3 /*break*/, 26];
|
|
45339
46455
|
case 11:
|
|
45340
46456
|
propValueProvider = new IkasAttributeListPropValueProvider(propValue);
|
|
45341
|
-
return [3 /*break*/,
|
|
46457
|
+
return [3 /*break*/, 26];
|
|
45342
46458
|
case 12:
|
|
45343
46459
|
propValueProvider = new IkasCategoryPropValueProvider(propValue);
|
|
45344
|
-
return [3 /*break*/,
|
|
46460
|
+
return [3 /*break*/, 26];
|
|
45345
46461
|
case 13:
|
|
45346
46462
|
propValueProvider = new IkasCategoryListPropValueProvider(propValue);
|
|
45347
|
-
return [3 /*break*/,
|
|
46463
|
+
return [3 /*break*/, 26];
|
|
45348
46464
|
case 14:
|
|
45349
46465
|
propValueProvider = new IkasLinkPropValueProvider(propValue, this.theme);
|
|
45350
|
-
return [3 /*break*/,
|
|
46466
|
+
return [3 /*break*/, 26];
|
|
45351
46467
|
case 15:
|
|
45352
46468
|
propValueProvider = new IkasColorPropValueProvider(propValue);
|
|
45353
|
-
return [3 /*break*/,
|
|
46469
|
+
return [3 /*break*/, 26];
|
|
45354
46470
|
case 16:
|
|
45355
46471
|
customData = this.theme.customData.find(function (cd) { return cd.id === prop.customDataId; });
|
|
45356
46472
|
if (!customData)
|
|
45357
46473
|
return [2 /*return*/];
|
|
45358
46474
|
propValueProvider = new IkasCustomPropValueProvider(propValue, customData, this.theme, this.pageType, this, this.pageSpecificData, this.pageParams);
|
|
45359
|
-
return [3 /*break*/,
|
|
46475
|
+
return [3 /*break*/, 26];
|
|
45360
46476
|
case 17:
|
|
45361
46477
|
pageComponents = propValue;
|
|
45362
46478
|
return [4 /*yield*/, Promise.all(pageComponents.map(function (tp) { return _this.getPageComponentPropValues(tp); }))];
|
|
45363
46479
|
case 18: return [2 /*return*/, _b.sent()];
|
|
45364
46480
|
case 19:
|
|
45365
46481
|
propValueProvider = new IkasBlogPropValueProvider(propValue);
|
|
45366
|
-
return [3 /*break*/,
|
|
46482
|
+
return [3 /*break*/, 26];
|
|
45367
46483
|
case 20:
|
|
45368
46484
|
propValueProvider = new IkasBlogListPropValueProvider(this.pageType, propValue, this.pageSpecificData);
|
|
45369
|
-
return [3 /*break*/,
|
|
46485
|
+
return [3 /*break*/, 26];
|
|
45370
46486
|
case 21:
|
|
45371
46487
|
propValueProvider = new IkasBlogCategoryPropValueProvider(propValue);
|
|
45372
|
-
return [3 /*break*/,
|
|
46488
|
+
return [3 /*break*/, 26];
|
|
45373
46489
|
case 22:
|
|
45374
46490
|
propValueProvider = new IkasBlogCategoryListPropValueProvider(propValue);
|
|
45375
|
-
return [3 /*break*/,
|
|
45376
|
-
case 23:
|
|
45377
|
-
|
|
45378
|
-
|
|
46491
|
+
return [3 /*break*/, 26];
|
|
46492
|
+
case 23:
|
|
46493
|
+
propValueProvider = new IkasRafflePropValueProvider(propValue);
|
|
46494
|
+
return [3 /*break*/, 26];
|
|
46495
|
+
case 24:
|
|
46496
|
+
propValueProvider = new IkasRaffleListPropValueProvider();
|
|
46497
|
+
return [3 /*break*/, 26];
|
|
46498
|
+
case 25: return [3 /*break*/, 26];
|
|
46499
|
+
case 26: return [4 /*yield*/, (propValueProvider === null || propValueProvider === void 0 ? void 0 : propValueProvider.getValue())];
|
|
46500
|
+
case 27: return [2 /*return*/, _b.sent()];
|
|
45379
46501
|
}
|
|
45380
46502
|
});
|
|
45381
46503
|
});
|
|
@@ -45433,6 +46555,10 @@ var IkasPageDataInit = /** @class */ (function () {
|
|
|
45433
46555
|
var blogCategory = parsed;
|
|
45434
46556
|
IkasPageDataInit.pageSpecificData = new IkasBlogCategory(blogCategory);
|
|
45435
46557
|
break;
|
|
46558
|
+
case IkasThemePageType.RAFFLE_DETAIL:
|
|
46559
|
+
var raffle_detail = parsed;
|
|
46560
|
+
IkasPageDataInit.pageSpecificData = new IkasRaffle(raffle_detail);
|
|
46561
|
+
break;
|
|
45436
46562
|
}
|
|
45437
46563
|
};
|
|
45438
46564
|
IkasPageDataInit.isServer = function () {
|
|
@@ -45507,6 +46633,12 @@ var IkasPageDataInit = /** @class */ (function () {
|
|
|
45507
46633
|
case IkasThemeComponentPropType.BLOG_LIST:
|
|
45508
46634
|
IkasPageDataInit.initBlogCategoryListPropValue(prop, propValue, pageComponentPropValue);
|
|
45509
46635
|
break;
|
|
46636
|
+
case IkasThemeComponentPropType.RAFFLE:
|
|
46637
|
+
IkasPageDataInit.initRafflePropValue(prop, propValue, pageComponentPropValue);
|
|
46638
|
+
break;
|
|
46639
|
+
case IkasThemeComponentPropType.RAFFLE_LIST:
|
|
46640
|
+
IkasPageDataInit.initRaffleListPropValue(prop, propValue, pageComponentPropValue);
|
|
46641
|
+
break;
|
|
45510
46642
|
}
|
|
45511
46643
|
});
|
|
45512
46644
|
});
|
|
@@ -45695,6 +46827,10 @@ var IkasPageDataInit = /** @class */ (function () {
|
|
|
45695
46827
|
return this._initBlogCategoryPropValue(propValue);
|
|
45696
46828
|
case IkasThemeComponentPropType.BLOG_CATEGORY_LIST:
|
|
45697
46829
|
return this._initBlogCategoryListPropValue(propValue);
|
|
46830
|
+
case IkasThemeComponentPropType.RAFFLE:
|
|
46831
|
+
return this._initRafflePropValue(propValue);
|
|
46832
|
+
case IkasThemeComponentPropType.RAFFLE_LIST:
|
|
46833
|
+
return this._initRaffleListPropValue(propValue);
|
|
45698
46834
|
case IkasThemeComponentPropType.OBJECT:
|
|
45699
46835
|
var objectValue = {};
|
|
45700
46836
|
for (var _i = 0, _a = customData.nestedData || []; _i < _a.length; _i++) {
|
|
@@ -45800,6 +46936,24 @@ var IkasPageDataInit = /** @class */ (function () {
|
|
|
45800
46936
|
IkasPageDataInit._initBlogCategoryListPropValue = function (propValue) {
|
|
45801
46937
|
return new IkasBlogCategoryList(propValue);
|
|
45802
46938
|
};
|
|
46939
|
+
IkasPageDataInit.initRafflePropValue = function (prop, propValue, pageComponentPropValue) {
|
|
46940
|
+
pageComponentPropValue.propValues[prop.name] = IkasPageDataInit._initRafflePropValue(propValue);
|
|
46941
|
+
};
|
|
46942
|
+
IkasPageDataInit._initRafflePropValue = function (propValue) {
|
|
46943
|
+
if (propValue.rafflePropValue.usePageData) {
|
|
46944
|
+
return this.pageSpecificData;
|
|
46945
|
+
}
|
|
46946
|
+
if (propValue.raffle) {
|
|
46947
|
+
return new IkasRaffle(propValue.raffle);
|
|
46948
|
+
}
|
|
46949
|
+
return getPlaceholderRaffle();
|
|
46950
|
+
};
|
|
46951
|
+
IkasPageDataInit.initRaffleListPropValue = function (prop, propValue, pageComponentPropValue) {
|
|
46952
|
+
pageComponentPropValue.propValues[prop.name] = this._initRaffleListPropValue(propValue);
|
|
46953
|
+
};
|
|
46954
|
+
IkasPageDataInit._initRaffleListPropValue = function (propValue) {
|
|
46955
|
+
return new IkasRaffleList(propValue);
|
|
46956
|
+
};
|
|
45803
46957
|
IkasPageDataInit.pageSpecificData = observable({});
|
|
45804
46958
|
return IkasPageDataInit;
|
|
45805
46959
|
}());
|
|
@@ -46245,7 +47399,7 @@ var IkasStorefront = /** @class */ (function () {
|
|
|
46245
47399
|
return IkasStorefront;
|
|
46246
47400
|
}());
|
|
46247
47401
|
|
|
46248
|
-
var PACKAGE_VERSION = "0.0
|
|
47402
|
+
var PACKAGE_VERSION = "0.2.0";
|
|
46249
47403
|
// import { version as PACKAGE_VERSION } from "../../../package.json";
|
|
46250
47404
|
var IkasPageEditorViewModel = /** @class */ (function () {
|
|
46251
47405
|
function IkasPageEditorViewModel(router) {
|
|
@@ -46363,9 +47517,9 @@ var IkasPageEditorViewModel = /** @class */ (function () {
|
|
|
46363
47517
|
this.getPagePropValues = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
46364
47518
|
var pageDataProvider;
|
|
46365
47519
|
var _this = this;
|
|
46366
|
-
var _a, _b, _c;
|
|
46367
|
-
return __generator(this, function (
|
|
46368
|
-
switch (
|
|
47520
|
+
var _a, _b, _c, _d;
|
|
47521
|
+
return __generator(this, function (_e) {
|
|
47522
|
+
switch (_e.label) {
|
|
46369
47523
|
case 0:
|
|
46370
47524
|
pageDataProvider = new IkasPageDataProvider(this.theme, this.pageParams, (_a = this.page) === null || _a === void 0 ? void 0 : _a.type);
|
|
46371
47525
|
if (((_b = this.pageParams) === null || _b === void 0 ? void 0 : _b.blogId) || ((_c = this.pageParams) === null || _c === void 0 ? void 0 : _c.blogCategoryId)) {
|
|
@@ -46374,10 +47528,13 @@ var IkasPageEditorViewModel = /** @class */ (function () {
|
|
|
46374
47528
|
IkasThemePageType.BLOG_CATEGORY,
|
|
46375
47529
|
];
|
|
46376
47530
|
}
|
|
47531
|
+
if ((_d = this.pageParams) === null || _d === void 0 ? void 0 : _d.raffleId) {
|
|
47532
|
+
pageDataProvider.possiblePageTypes = [IkasThemePageType.RAFFLE_DETAIL];
|
|
47533
|
+
}
|
|
46377
47534
|
this.isLoading = true;
|
|
46378
47535
|
return [4 /*yield*/, pageDataProvider.getPageData()];
|
|
46379
47536
|
case 1:
|
|
46380
|
-
|
|
47537
|
+
_e.sent();
|
|
46381
47538
|
if (pageDataProvider.pageSpecificData) {
|
|
46382
47539
|
IkasPageDataInit.setPageSpecificData(JSON.stringify(pageDataProvider.pageSpecificData), this.page.type, true);
|
|
46383
47540
|
}
|
|
@@ -46589,7 +47746,7 @@ var IkasPageEditorViewModel = /** @class */ (function () {
|
|
|
46589
47746
|
Object.defineProperty(IkasPageEditorViewModel.prototype, "specification", {
|
|
46590
47747
|
get: function () {
|
|
46591
47748
|
var _this = this;
|
|
46592
|
-
var _a, _b, _c, _d, _e;
|
|
47749
|
+
var _a, _b, _c, _d, _e, _f;
|
|
46593
47750
|
var selectedPage = this.page;
|
|
46594
47751
|
var specification;
|
|
46595
47752
|
if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.PRODUCT) {
|
|
@@ -46607,6 +47764,9 @@ var IkasPageEditorViewModel = /** @class */ (function () {
|
|
|
46607
47764
|
if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.BLOG_CATEGORY) {
|
|
46608
47765
|
specification = (_e = selectedPage.specifications) === null || _e === void 0 ? void 0 : _e.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.blogCategoryId); });
|
|
46609
47766
|
}
|
|
47767
|
+
if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.RAFFLE_DETAIL) {
|
|
47768
|
+
specification = (_f = selectedPage.specifications) === null || _f === void 0 ? void 0 : _f.find(function (s) { var _a; return s.id === ((_a = _this.pageParams) === null || _a === void 0 ? void 0 : _a.raffleId); });
|
|
47769
|
+
}
|
|
46610
47770
|
return specification;
|
|
46611
47771
|
},
|
|
46612
47772
|
enumerable: false,
|
|
@@ -71578,7 +72738,7 @@ var IkasStorefrontAPI = /** @class */ (function () {
|
|
|
71578
72738
|
return __generator(this, function (_b) {
|
|
71579
72739
|
switch (_b.label) {
|
|
71580
72740
|
case 0:
|
|
71581
|
-
QUERY = src(templateObject_1$
|
|
72741
|
+
QUERY = src(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n query getStorefront($id: String!) {\n getStorefront(id: $id) {\n createdAt\n emailSettingsId\n fbpId\n gtmId\n id\n localizations {\n createdAt\n id\n isDefault\n locale\n name\n }\n mainStorefrontThemeId\n name\n salesChannelId\n routings {\n countryCodes\n createdAt\n domain\n id\n locale\n path\n priceListId\n updatedAt\n }\n status\n themes {\n createdAt\n id\n isMainTheme\n name\n status\n themeId\n themeVersionId\n updatedAt\n }\n }\n }\n "], ["\n query getStorefront($id: String!) {\n getStorefront(id: $id) {\n createdAt\n emailSettingsId\n fbpId\n gtmId\n id\n localizations {\n createdAt\n id\n isDefault\n locale\n name\n }\n mainStorefrontThemeId\n name\n salesChannelId\n routings {\n countryCodes\n createdAt\n domain\n id\n locale\n path\n priceListId\n updatedAt\n }\n status\n themes {\n createdAt\n id\n isMainTheme\n name\n status\n themeId\n themeVersionId\n updatedAt\n }\n }\n }\n "])));
|
|
71582
72742
|
_b.label = 1;
|
|
71583
72743
|
case 1:
|
|
71584
72744
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -71609,7 +72769,7 @@ var IkasStorefrontAPI = /** @class */ (function () {
|
|
|
71609
72769
|
};
|
|
71610
72770
|
return IkasStorefrontAPI;
|
|
71611
72771
|
}());
|
|
71612
|
-
var templateObject_1$
|
|
72772
|
+
var templateObject_1$l;
|
|
71613
72773
|
|
|
71614
72774
|
var IkasNextPageDataProvider = /** @class */ (function () {
|
|
71615
72775
|
function IkasNextPageDataProvider() {
|
|
@@ -71803,7 +72963,8 @@ var IkasNextPageDataProvider = /** @class */ (function () {
|
|
|
71803
72963
|
IkasStorefrontConfig.productBackInStockSettings = productBackInStockSettings;
|
|
71804
72964
|
IkasStorefrontConfig.customerReviewSettings = customerReviewSettings;
|
|
71805
72965
|
provider = new IkasPageDataProvider(themeLocalization.themeJson, context.params, pageType);
|
|
71806
|
-
provider.possiblePageTypes =
|
|
72966
|
+
provider.possiblePageTypes =
|
|
72967
|
+
possiblePageTypes || (pageType ? [pageType] : []);
|
|
71807
72968
|
if (!!isEditor) return [3 /*break*/, 3];
|
|
71808
72969
|
return [4 /*yield*/, provider.getPageData()];
|
|
71809
72970
|
case 2:
|
|
@@ -72427,6 +73588,72 @@ var _slug_$3 = /*#__PURE__*/Object.freeze({
|
|
|
72427
73588
|
getStaticProps: getStaticProps$h
|
|
72428
73589
|
});
|
|
72429
73590
|
|
|
73591
|
+
var Page$i = function (props) {
|
|
73592
|
+
return createElement(IkasPage, __assign({}, props));
|
|
73593
|
+
};
|
|
73594
|
+
var _slug_$4 = observer(Page$i);
|
|
73595
|
+
var getStaticPaths$3 = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
73596
|
+
return __generator(this, function (_a) {
|
|
73597
|
+
return [2 /*return*/, {
|
|
73598
|
+
paths: [],
|
|
73599
|
+
fallback: "blocking",
|
|
73600
|
+
}];
|
|
73601
|
+
});
|
|
73602
|
+
}); };
|
|
73603
|
+
var getStaticProps$i = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73604
|
+
return __generator(this, function (_a) {
|
|
73605
|
+
switch (_a.label) {
|
|
73606
|
+
case 0: return [4 /*yield*/, IkasNextPageDataProvider.getStaticProps(context, IkasThemePageType.RAFFLE_DETAIL)];
|
|
73607
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
73608
|
+
}
|
|
73609
|
+
});
|
|
73610
|
+
}); };
|
|
73611
|
+
|
|
73612
|
+
var _slug_$5 = /*#__PURE__*/Object.freeze({
|
|
73613
|
+
__proto__: null,
|
|
73614
|
+
'default': _slug_$4,
|
|
73615
|
+
getStaticPaths: getStaticPaths$3,
|
|
73616
|
+
getStaticProps: getStaticProps$i
|
|
73617
|
+
});
|
|
73618
|
+
|
|
73619
|
+
var Page$j = function (props) {
|
|
73620
|
+
return createElement(IkasPage, __assign({}, props, { addOgpMetas: true }));
|
|
73621
|
+
};
|
|
73622
|
+
var index$9 = observer(Page$j);
|
|
73623
|
+
var getStaticProps$j = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73624
|
+
return __generator(this, function (_a) {
|
|
73625
|
+
switch (_a.label) {
|
|
73626
|
+
case 0: return [4 /*yield*/, IkasNextPageDataProvider.getStaticProps(context, IkasThemePageType.RAFFLE)];
|
|
73627
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
73628
|
+
}
|
|
73629
|
+
});
|
|
73630
|
+
}); };
|
|
73631
|
+
|
|
73632
|
+
var index$a = /*#__PURE__*/Object.freeze({
|
|
73633
|
+
__proto__: null,
|
|
73634
|
+
'default': index$9,
|
|
73635
|
+
getStaticProps: getStaticProps$j
|
|
73636
|
+
});
|
|
73637
|
+
|
|
73638
|
+
var Page$k = function (props) {
|
|
73639
|
+
return createElement(IkasPage, __assign({}, props));
|
|
73640
|
+
};
|
|
73641
|
+
var raffles = observer(Page$k);
|
|
73642
|
+
var getStaticProps$k = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73643
|
+
return __generator(this, function (_a) {
|
|
73644
|
+
switch (_a.label) {
|
|
73645
|
+
case 0: return [4 /*yield*/, IkasNextPageDataProvider.getStaticProps(context, IkasThemePageType.RAFFLE_ACOUNT)];
|
|
73646
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
73647
|
+
}
|
|
73648
|
+
});
|
|
73649
|
+
}); };
|
|
73650
|
+
|
|
73651
|
+
var raffles$1 = /*#__PURE__*/Object.freeze({
|
|
73652
|
+
__proto__: null,
|
|
73653
|
+
'default': raffles,
|
|
73654
|
+
getStaticProps: getStaticProps$k
|
|
73655
|
+
});
|
|
73656
|
+
|
|
72430
73657
|
/**
|
|
72431
73658
|
* Flattens `array` a single level deep.
|
|
72432
73659
|
*
|
|
@@ -73024,6 +74251,14 @@ var IkasCustomerStore = /** @class */ (function () {
|
|
|
73024
74251
|
}, 100);
|
|
73025
74252
|
});
|
|
73026
74253
|
};
|
|
74254
|
+
this.getRaffles = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
74255
|
+
return __generator(this, function (_a) {
|
|
74256
|
+
switch (_a.label) {
|
|
74257
|
+
case 0: return [4 /*yield*/, IkasRaffleAPI.getRafflesByCustomerId()];
|
|
74258
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
74259
|
+
}
|
|
74260
|
+
});
|
|
74261
|
+
}); };
|
|
73027
74262
|
this.baseStore = baseStore;
|
|
73028
74263
|
this.init();
|
|
73029
74264
|
makeAutoObservable(this);
|
|
@@ -73730,4 +74965,4 @@ var en$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Ob
|
|
|
73730
74965
|
'default': en
|
|
73731
74966
|
}));
|
|
73732
74967
|
|
|
73733
|
-
export { AccountInfoForm, index$4 as AccountPage, AddressForm, addresses$1 as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$8 as BlogPage, _slug_$3 as BlogSlugPage, cart$1 as CartPage, checkout$1 as CheckoutPage, ContactForm, _slug_$1 as CustomPage, CustomerReviewForm, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts$1 as FavoriteProductsPage, ForgotPasswordForm, forgotPassword$1 as ForgotPasswordPage, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasAttributeDetail, IkasAttributeList, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogCategoryList, IkasBlogCategoryListPropValue, IkasBlogCategoryListType, IkasBlogCategoryPropValue, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogTag, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutCustomer, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasCustomerReview, IkasCustomerReviewAPI, IkasCustomerReviewList, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderRefundSettings, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeType, IkasProductAttributeValue, IkasProductBackInStockReminderAPI, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductOption, IkasProductOptionDateSettings, IkasProductOptionFileSettings, IkasProductOptionSelectSettings, IkasProductOptionSelectType, IkasProductOptionSelectValue, IkasProductOptionSelectValueTranslations, IkasProductOptionSet, IkasProductOptionSetAPI, IkasProductOptionSetTranslations, IkasProductOptionTextSettings, IkasProductOptionTranslations, IkasProductOptionType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontConfig, IkasTheme, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home$1 as IndexPage, LessThanRule, LoginForm, login$1 as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_$1 as OrderDetailPage, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, index$6 as OrdersPage, PhoneRule, RangeValue, RecoverPasswordForm, recoverPassword$1 as RecoverPasswordPage, RegisterForm, register$1 as RegisterPage, RequiredRule, search$1 as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, createTranslationInputData, decodeBase64, findAllIndexes, formatDate, formatMoney, getCurrencySymbol, parseRangeStr, pascalCase, stringSorter, stringToSlug, tryForEach, useTranslation, validatePhoneNumber };
|
|
74968
|
+
export { AccountInfoForm, index$4 as AccountPage, raffles$1 as AccountRafflesPage, AddressForm, addresses$1 as AddressesPage, Analytics, AnalyticsBody, AnalyticsHead, index$8 as BlogPage, _slug_$3 as BlogSlugPage, cart$1 as CartPage, checkout$1 as CheckoutPage, ContactForm, _slug_$1 as CustomPage, CustomerReviewForm, editor$1 as EditorPage, EmailRule, EqualsRule, favoriteProducts$1 as FavoriteProductsPage, ForgotPasswordForm, forgotPassword$1 as ForgotPasswordPage, IdentityNumberRule, IkasAmountTypeEnum$1 as IkasAmountTypeEnum, IkasApplicableProductFilterValue, IkasAttributeDetail, IkasAttributeList, IkasBaseStore, IkasBlog, IkasBlogAPI, IkasBlogCategory, IkasBlogCategoryList, IkasBlogCategoryListPropValue, IkasBlogCategoryListType, IkasBlogCategoryPropValue, IkasBlogContent, IkasBlogList, IkasBlogListPropValue, IkasBlogListType, IkasBlogMetaData, IkasBlogMetadataTargetType, IkasBlogPropValue, IkasBlogTag, IkasBlogWriter, IkasBrand, IkasBrandAPI, IkasBrandList, IkasBrandListPropValue, IkasBrandListSortType, IkasBrandListType, IkasBrandPropValue, IkasCardAssociation, IkasCardType, IkasCartAPI, IkasCategory, IkasCategoryAPI, IkasCategoryList, IkasCategoryListPropValue, IkasCategoryListSortType, IkasCategoryListType, IkasCategoryPropValue, IkasCheckout, IkasCheckoutAPI, IkasCheckoutCustomer, IkasCheckoutRecoveryEmailStatus, IkasCheckoutRecoveryStatus, IkasCheckoutStatus, IkasCityAPI, IkasComponentRenderer, IkasContactForm, IkasContactFormAPI, IkasCountryAPI, IkasCustomer, IkasCustomerAPI, IkasCustomerAddress, IkasCustomerReview, IkasCustomerReviewAPI, IkasCustomerReviewList, IkasDistrictAPI, IkasFavoriteProduct, IkasFavoriteProductAPI, IkasHTMLMetaData, IkasHTMLMetaDataAPI, IkasHTMLMetaDataTargetType, IkasImage, IkasLinkPropValue, IkasLinkType, IkasMerchantAPI, IkasMerchantSettings, IkasNavigationLink, IkasOrder, IkasOrderCancelledReason, IkasOrderLineItem, IkasOrderPackageFulfillStatus, IkasOrderPackageStatus, IkasOrderPaymentStatus, IkasOrderRefundSettings, IkasOrderShippingMethod, IkasOrderStatus, IkasOrderTransaction, IkasPage, IkasPageEditor, IkasPageHead, IkasPaymentMethod, IkasProduct, IkasProductAttribute, IkasProductAttributeAPI, IkasProductAttributeType, IkasProductAttributeValue, IkasProductBackInStockReminderAPI, IkasProductDetail, IkasProductDetailPropValue, IkasProductFilter, IkasProductFilterDisplayType, IkasProductFilterSettings, IkasProductFilterSortType, IkasProductFilterType, IkasProductFilterValue, IkasProductList, IkasProductListPropValue, IkasProductListSortType, IkasProductListType, IkasProductOption, IkasProductOptionDateSettings, IkasProductOptionFileSettings, IkasProductOptionSelectSettings, IkasProductOptionSelectType, IkasProductOptionSelectValue, IkasProductOptionSelectValueTranslations, IkasProductOptionSet, IkasProductOptionSetAPI, IkasProductOptionSetTranslations, IkasProductOptionTextSettings, IkasProductOptionTranslations, IkasProductOptionType, IkasProductPrice, IkasProductSearchAPI, IkasProductType, IkasProductVariant, IkasProductVariantType, IkasRaffle, IkasRaffleAPI, IkasRaffleList, IkasRaffleListPropValue, IkasRaffleMetaData, IkasRaffleParticipant, IkasRafflePropValue, IkasShippingMethod, IkasShippingMethodEnum, IkasStateAPI, IkasStorefrontConfig, IkasTheme, IkasThemeComponent, IkasThemeComponentProp, IkasThemeComponentPropType, IkasThemeCustomData, IkasThemePage, IkasThemePageComponent, IkasThemePageType, IkasThemeSettings, IkasTransactionStatusEnum, IkasTransactionTypeEnum, IkasVariantSelectionType, IkasVariantType, IkasVariantTypeAPI, IkasVariantValue, Image, home$1 as IndexPage, LessThanRule, LoginForm, login$1 as LoginPage, MaxRule, MinRule, _404 as NotFoundPage, _id_$1 as OrderDetailPage, OrderLineItemStatusEnum$1 as OrderLineItemStatusEnum, index$6 as OrdersPage, PhoneRule, RaffleForm, _slug_$5 as RafflePage, index$a as RafflesPage, RangeValue, RecoverPasswordForm, recoverPassword$1 as RecoverPasswordPage, RegisterForm, register$1 as RegisterPage, RequiredRule, search$1 as SearchPage, index$2 as SlugPage, ValidationRule, Validator, ValidatorErrorType, apollo, createTranslationInputData, decodeBase64, findAllIndexes, formatDate, formatMoney, getCurrencySymbol, parseRangeStr, pascalCase, stringSorter, stringToSlug, tryForEach, useTranslation, validatePhoneNumber };
|