@ikas/storefront 0.3.0-alpha.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/__generated__/global-types.d.ts +0 -34
  2. package/build/api/index.d.ts +0 -1
  3. package/build/index.es.js +101 -1336
  4. package/build/index.js +100 -1347
  5. package/build/models/data/index.d.ts +0 -1
  6. package/build/models/theme/component/prop/index.d.ts +0 -2
  7. package/build/models/theme/index.d.ts +0 -2
  8. package/build/models/theme/page/index.d.ts +1 -4
  9. package/build/models/ui/index.d.ts +0 -2
  10. package/build/models/ui/validator/rules/index.d.ts +0 -4
  11. package/build/pages/index.d.ts +1 -4
  12. package/build/providers/page-data-init.d.ts +1 -7
  13. package/build/providers/placeholders.d.ts +1 -2
  14. package/build/providers/prop-value/custom.d.ts +0 -2
  15. package/build/store/customer.d.ts +0 -1
  16. package/package.json +1 -1
  17. package/build/api/raffle/__generated__/getRafflesByCustomerId.d.ts +0 -41
  18. package/build/api/raffle/__generated__/listRaffle.d.ts +0 -58
  19. package/build/api/raffle/__generated__/listRaffleMetaData.d.ts +0 -21
  20. package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +0 -30
  21. package/build/api/raffle/index.d.ts +0 -24
  22. package/build/models/data/raffle/index.d.ts +0 -63
  23. package/build/models/theme/page/component/prop-value/raffle-list.d.ts +0 -5
  24. package/build/models/theme/page/component/prop-value/raffle.d.ts +0 -5
  25. package/build/models/ui/raffle-list/index.d.ts +0 -54
  26. package/build/models/ui/validator/form/raffle-form.d.ts +0 -60
  27. package/build/pages/account/raffles.d.ts +0 -6
  28. package/build/pages/raffle/[slug].d.ts +0 -7
  29. package/build/pages/raffle/index.d.ts +0 -6
  30. package/build/providers/prop-value/raffle-list.d.ts +0 -5
  31. package/build/providers/prop-value/raffle.d.ts +0 -11
package/build/index.es.js CHANGED
@@ -24151,108 +24151,6 @@ 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
-
24256
24154
  var IkasThemeComponentProp = /** @class */ (function () {
24257
24155
  function IkasThemeComponentProp(data) {
24258
24156
  this.id = data.id || Date.now() + "";
@@ -24291,8 +24189,6 @@ var IkasThemeComponentPropType;
24291
24189
  IkasThemeComponentPropType["BLOG_LIST"] = "BLOG_LIST";
24292
24190
  IkasThemeComponentPropType["BLOG_CATEGORY"] = "BLOG_CATEGORY";
24293
24191
  IkasThemeComponentPropType["BLOG_CATEGORY_LIST"] = "BLOG_CATEGORY_LIST";
24294
- IkasThemeComponentPropType["RAFFLE"] = "RAFFLE";
24295
- IkasThemeComponentPropType["RAFFLE_LIST"] = "RAFFLE_LIST";
24296
24192
  IkasThemeComponentPropType["OBJECT"] = "OBJECT";
24297
24193
  IkasThemeComponentPropType["STATIC_LIST"] = "STATIC_LIST";
24298
24194
  IkasThemeComponentPropType["DYNAMIC_LIST"] = "DYNAMIC_LIST";
@@ -24420,9 +24316,6 @@ var IkasThemePageType;
24420
24316
  IkasThemePageType["BLOG_INDEX"] = "BLOG_INDEX";
24421
24317
  IkasThemePageType["BLOG_CATEGORY"] = "BLOG_CATEGORY";
24422
24318
  IkasThemePageType["CHECKOUT"] = "CHECKOUT";
24423
- IkasThemePageType["RAFFLE"] = "RAFFLE";
24424
- IkasThemePageType["RAFFLE_DETAIL"] = "RAFFLE_DETAIL";
24425
- IkasThemePageType["RAFFLE_ACOUNT"] = "RAFFLE_ACCOUNT";
24426
24319
  })(IkasThemePageType || (IkasThemePageType = {}));
24427
24320
 
24428
24321
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
@@ -37889,13 +37782,6 @@ var ProductSearchShowStockOptionEnum;
37889
37782
  ProductSearchShowStockOptionEnum["SHOW_ALL"] = "SHOW_ALL";
37890
37783
  ProductSearchShowStockOptionEnum["SHOW_OUT_OF_STOCK_AT_END"] = "SHOW_OUT_OF_STOCK_AT_END";
37891
37784
  })(ProductSearchShowStockOptionEnum || (ProductSearchShowStockOptionEnum = {}));
37892
- /**
37893
- * RaffleMetadataTargetTypeEnum
37894
- */
37895
- var RaffleMetadataTargetTypeEnum;
37896
- (function (RaffleMetadataTargetTypeEnum) {
37897
- RaffleMetadataTargetTypeEnum["RAFFLE"] = "RAFFLE";
37898
- })(RaffleMetadataTargetTypeEnum || (RaffleMetadataTargetTypeEnum = {}));
37899
37785
  /**
37900
37786
  * Shipping Method Enum
37901
37787
  */
@@ -37978,14 +37864,6 @@ var VariantSelectionTypeEnum;
37978
37864
  VariantSelectionTypeEnum["CHOICE"] = "CHOICE";
37979
37865
  VariantSelectionTypeEnum["COLOR"] = "COLOR";
37980
37866
  })(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 = {}));
37989
37867
  //==============================================================
37990
37868
  // END Enums and Input Objects
37991
37869
  //==============================================================
@@ -39668,75 +39546,6 @@ var EqualsRule = /** @class */ (function (_super) {
39668
39546
  });
39669
39547
  };
39670
39548
  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;
39740
39549
  }(ValidationRule));
39741
39550
 
39742
39551
  var LoginForm = /** @class */ (function () {
@@ -41141,281 +40950,6 @@ var AccountInfoForm = /** @class */ (function () {
41141
40950
  return AccountInfoForm;
41142
40951
  }());
41143
40952
 
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
-
41419
40953
  var CustomerReviewForm = /** @class */ (function () {
41420
40954
  function CustomerReviewForm(props) {
41421
40955
  var _this = this;
@@ -41556,263 +41090,6 @@ var IkasComponentRenderer = /** @class */ (function () {
41556
41090
  return IkasComponentRenderer;
41557
41091
  }());
41558
41092
 
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
-
41816
41093
  var IkasProductListPropValue = /** @class */ (function () {
41817
41094
  function IkasProductListPropValue(data) {
41818
41095
  this.initialSort = null;
@@ -41934,30 +41211,6 @@ var IkasBlogCategoryListPropValue = /** @class */ (function () {
41934
41211
  return IkasBlogCategoryListPropValue;
41935
41212
  }());
41936
41213
 
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
-
41961
41214
  var IkasBrandAPI = /** @class */ (function () {
41962
41215
  function IkasBrandAPI() {
41963
41216
  }
@@ -44206,230 +43459,6 @@ var IkasProductOptionSetAPI = /** @class */ (function () {
44206
43459
  }());
44207
43460
  var templateObject_1$i;
44208
43461
 
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
-
44433
43462
  var IkasProductBackInStockReminderAPI = /** @class */ (function () {
44434
43463
  function IkasProductBackInStockReminderAPI() {
44435
43464
  }
@@ -44439,7 +43468,7 @@ var IkasProductBackInStockReminderAPI = /** @class */ (function () {
44439
43468
  return __generator(this, function (_b) {
44440
43469
  switch (_b.label) {
44441
43470
  case 0:
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 "])));
43471
+ QUERY = src(templateObject_1$j || (templateObject_1$j = __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 "])));
44443
43472
  _b.label = 1;
44444
43473
  case 1:
44445
43474
  _b.trys.push([1, 3, , 4]);
@@ -44479,7 +43508,7 @@ var IkasProductBackInStockReminderAPI = /** @class */ (function () {
44479
43508
  return __generator(this, function (_b) {
44480
43509
  switch (_b.label) {
44481
43510
  case 0:
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 "])));
43511
+ MUTATION = src(templateObject_2$9 || (templateObject_2$9 = __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 "])));
44483
43512
  _b.label = 1;
44484
43513
  case 1:
44485
43514
  _b.trys.push([1, 3, , 4]);
@@ -44510,7 +43539,7 @@ var IkasProductBackInStockReminderAPI = /** @class */ (function () {
44510
43539
  };
44511
43540
  return IkasProductBackInStockReminderAPI;
44512
43541
  }());
44513
- var templateObject_1$k, templateObject_2$a;
43542
+ var templateObject_1$j, templateObject_2$9;
44514
43543
 
44515
43544
  var IkasProductListPropValueProvider = /** @class */ (function () {
44516
43545
  function IkasProductListPropValueProvider(pageType, productListPropValue, pageSpecificData) {
@@ -44582,9 +43611,6 @@ function getPlaceholderBlog() {
44582
43611
  }
44583
43612
  function getPlaceholderBlogCategory() {
44584
43613
  return new IkasBlogCategory();
44585
- }
44586
- function getPlaceholderRaffle() {
44587
- return new IkasRaffle();
44588
43614
  }
44589
43615
 
44590
43616
  var IkasProductDetailPropValueProvider = /** @class */ (function () {
@@ -45264,64 +44290,6 @@ var IkasBlogCategoryListPropValueProvider = /** @class */ (function () {
45264
44290
  return IkasBlogCategoryListPropValueProvider;
45265
44291
  }());
45266
44292
 
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
-
45325
44293
  var IkasCustomPropValueProvider = /** @class */ (function () {
45326
44294
  function IkasCustomPropValueProvider(value, customData, theme, pageType, pageDataProvider, pageSpecificData, pageParams) {
45327
44295
  this.value = value;
@@ -45338,12 +44306,11 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
45338
44306
  return __generator(this, function (_b) {
45339
44307
  switch (_b.label) {
45340
44308
  case 0:
45341
- if ((this.value === undefined || this.value === null) &&
45342
- this.customData.type !== IkasThemeComponentPropType.RAFFLE_LIST)
44309
+ if (this.value === undefined || this.value === null)
45343
44310
  return [2 /*return*/, { value: null, customData: this.customData }];
45344
44311
  _b.label = 1;
45345
44312
  case 1:
45346
- _b.trys.push([1, 56, , 57]);
44313
+ _b.trys.push([1, 52, , 53]);
45347
44314
  _a = this.customData.type;
45348
44315
  switch (_a) {
45349
44316
  case IkasThemeComponentPropType.TEXT: return [3 /*break*/, 2];
@@ -45372,121 +44339,111 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
45372
44339
  case IkasThemeComponentPropType.BLOG: return [3 /*break*/, 42];
45373
44340
  case IkasThemeComponentPropType.BLOG_LIST: return [3 /*break*/, 44];
45374
44341
  case IkasThemeComponentPropType.BLOG_CATEGORY: return [3 /*break*/, 46];
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];
44342
+ case IkasThemeComponentPropType.BLOG_LIST: return [3 /*break*/, 48];
45378
44343
  }
45379
- return [3 /*break*/, 54];
44344
+ return [3 /*break*/, 50];
45380
44345
  case 2: return [4 /*yield*/, this.getTextValue()];
45381
44346
  case 3:
45382
44347
  customDataValue = _b.sent();
45383
- return [3 /*break*/, 55];
44348
+ return [3 /*break*/, 51];
45384
44349
  case 4: return [4 /*yield*/, this.getRichTextPropValue()];
45385
44350
  case 5:
45386
44351
  customDataValue = _b.sent();
45387
- return [3 /*break*/, 55];
44352
+ return [3 /*break*/, 51];
45388
44353
  case 6: return [4 /*yield*/, this.getBooleanValue()];
45389
44354
  case 7:
45390
44355
  customDataValue = _b.sent();
45391
- return [3 /*break*/, 55];
44356
+ return [3 /*break*/, 51];
45392
44357
  case 8: return [4 /*yield*/, this.getBrandListPropValue()];
45393
44358
  case 9:
45394
44359
  customDataValue = _b.sent();
45395
- return [3 /*break*/, 55];
44360
+ return [3 /*break*/, 51];
45396
44361
  case 10: return [4 /*yield*/, this.getBrandPropValue()];
45397
44362
  case 11:
45398
44363
  customDataValue = _b.sent();
45399
- return [3 /*break*/, 55];
44364
+ return [3 /*break*/, 51];
45400
44365
  case 12: return [4 /*yield*/, this.getCategoryListPropValue()];
45401
44366
  case 13:
45402
44367
  customDataValue = _b.sent();
45403
- return [3 /*break*/, 55];
44368
+ return [3 /*break*/, 51];
45404
44369
  case 14: return [4 /*yield*/, this.getCategoryPropValue()];
45405
44370
  case 15:
45406
44371
  customDataValue = _b.sent();
45407
- return [3 /*break*/, 55];
44372
+ return [3 /*break*/, 51];
45408
44373
  case 16: return [4 /*yield*/, this.getColorPropValue()];
45409
44374
  case 17:
45410
44375
  customDataValue = _b.sent();
45411
- return [3 /*break*/, 55];
44376
+ return [3 /*break*/, 51];
45412
44377
  case 18: return [4 /*yield*/, this.getImageListPropValue()];
45413
44378
  case 19:
45414
44379
  customDataValue = _b.sent();
45415
- return [3 /*break*/, 55];
44380
+ return [3 /*break*/, 51];
45416
44381
  case 20: return [4 /*yield*/, this.getImagePropValue()];
45417
44382
  case 21:
45418
44383
  customDataValue = _b.sent();
45419
- return [3 /*break*/, 55];
44384
+ return [3 /*break*/, 51];
45420
44385
  case 22: return [4 /*yield*/, this.getLinkPropValue()];
45421
44386
  case 23:
45422
44387
  customDataValue = _b.sent();
45423
- return [3 /*break*/, 55];
44388
+ return [3 /*break*/, 51];
45424
44389
  case 24: return [4 /*yield*/, this.getProductDetailPropValue()];
45425
44390
  case 25:
45426
44391
  customDataValue = _b.sent();
45427
- return [3 /*break*/, 55];
44392
+ return [3 /*break*/, 51];
45428
44393
  case 26: return [4 /*yield*/, this.getProductListPropValue()];
45429
44394
  case 27:
45430
44395
  customDataValue = _b.sent();
45431
- return [3 /*break*/, 55];
44396
+ return [3 /*break*/, 51];
45432
44397
  case 28: return [4 /*yield*/, this.getProductAttributePropValue()];
45433
44398
  case 29:
45434
44399
  customDataValue = _b.sent();
45435
- return [3 /*break*/, 55];
44400
+ return [3 /*break*/, 51];
45436
44401
  case 30: return [4 /*yield*/, this.getProductAttributeListPropValue()];
45437
44402
  case 31:
45438
44403
  customDataValue = _b.sent();
45439
- return [3 /*break*/, 55];
44404
+ return [3 /*break*/, 51];
45440
44405
  case 32: return [4 /*yield*/, this.getObjectValue()];
45441
44406
  case 33:
45442
44407
  customDataValue = _b.sent();
45443
- return [3 /*break*/, 55];
44408
+ return [3 /*break*/, 51];
45444
44409
  case 34: return [4 /*yield*/, this.getArrayValue()];
45445
44410
  case 35:
45446
44411
  customDataValue = _b.sent();
45447
- return [3 /*break*/, 55];
44412
+ return [3 /*break*/, 51];
45448
44413
  case 36: return [4 /*yield*/, this.getEnumValue()];
45449
44414
  case 37:
45450
44415
  customDataValue = _b.sent();
45451
- return [3 /*break*/, 55];
44416
+ return [3 /*break*/, 51];
45452
44417
  case 38: return [4 /*yield*/, this.getCustomDataValue()];
45453
44418
  case 39:
45454
44419
  customDataValue = _b.sent();
45455
- return [3 /*break*/, 55];
44420
+ return [3 /*break*/, 51];
45456
44421
  case 40: return [4 /*yield*/, this.getComponentListValue()];
45457
44422
  case 41:
45458
44423
  customDataValue = _b.sent();
45459
- return [3 /*break*/, 55];
44424
+ return [3 /*break*/, 51];
45460
44425
  case 42: return [4 /*yield*/, this.getBlogValue()];
45461
44426
  case 43:
45462
44427
  customDataValue = _b.sent();
45463
- return [3 /*break*/, 55];
44428
+ return [3 /*break*/, 51];
45464
44429
  case 44: return [4 /*yield*/, this.getBlogListValue()];
45465
44430
  case 45:
45466
44431
  customDataValue = _b.sent();
45467
- return [3 /*break*/, 55];
44432
+ return [3 /*break*/, 51];
45468
44433
  case 46: return [4 /*yield*/, this.getBlogCategoryValue()];
45469
44434
  case 47:
45470
44435
  customDataValue = _b.sent();
45471
- return [3 /*break*/, 55];
44436
+ return [3 /*break*/, 51];
45472
44437
  case 48: return [4 /*yield*/, this.getBlogCategoryListValue()];
45473
44438
  case 49:
45474
44439
  customDataValue = _b.sent();
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:
44440
+ return [3 /*break*/, 51];
44441
+ case 50: return [3 /*break*/, 51];
44442
+ case 51: return [3 /*break*/, 53];
44443
+ case 52:
45487
44444
  _b.sent();
45488
44445
  return [2 /*return*/];
45489
- case 57:
44446
+ case 53:
45490
44447
  if (this.customData.isRequired &&
45491
44448
  ((customDataValue === null || customDataValue === void 0 ? void 0 : customDataValue.value) === undefined || (customDataValue === null || customDataValue === void 0 ? void 0 : customDataValue.value) === null))
45492
44449
  return [2 /*return*/];
@@ -45781,7 +44738,6 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
45781
44738
  return [3 /*break*/, 3];
45782
44739
  nestedValue = this.value[nestedData.key];
45783
44740
  if (nestedData.isRequired &&
45784
- nestedData.type !== IkasThemeComponentPropType.RAFFLE_LIST &&
45785
44741
  (nestedValue === undefined || nestedValue === null))
45786
44742
  throw new Error("Required data is missing");
45787
44743
  nestedProvider = new IkasCustomPropValueProvider(nestedValue, nestedData, this.theme, this.pageType, this.pageDataProvider, this.pageSpecificData);
@@ -45820,7 +44776,6 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
45820
44776
  if (!(_i < _a.length)) return [3 /*break*/, 4];
45821
44777
  itemValue = _a[_i];
45822
44778
  if (nestedData.isRequired &&
45823
- nestedData.type !== IkasThemeComponentPropType.RAFFLE_LIST &&
45824
44779
  (itemValue === undefined || itemValue === null))
45825
44780
  throw new Error("Required data is missing");
45826
44781
  provider = new IkasCustomPropValueProvider(itemValue, nestedData, this.theme, this.pageType, this.pageDataProvider, this.pageSpecificData);
@@ -45971,42 +44926,6 @@ var IkasCustomPropValueProvider = /** @class */ (function () {
45971
44926
  });
45972
44927
  });
45973
44928
  };
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
- };
46010
44929
  return IkasCustomPropValueProvider;
46011
44930
  }());
46012
44931
 
@@ -46131,12 +45050,12 @@ var IkasPageDataProvider = /** @class */ (function () {
46131
45050
  });
46132
45051
  };
46133
45052
  IkasPageDataProvider.prototype.getPageSpecificData = function () {
46134
- var _a, _b, _c;
45053
+ var _a, _b;
46135
45054
  return __awaiter(this, void 0, void 0, function () {
46136
- var slug, metaDataList, metaData, handleProductPage, handleBrandPage, handleCategoryPage, handleBlogPage, handleBlogCategoryPage, handleRafflePage, _d;
45055
+ var slug, metaDataList, metaData, handleProductPage, handleBrandPage, handleCategoryPage, handleBlogPage, handleBlogCategoryPage, _c;
46137
45056
  var _this = this;
46138
- return __generator(this, function (_e) {
46139
- switch (_e.label) {
45057
+ return __generator(this, function (_d) {
45058
+ switch (_d.label) {
46140
45059
  case 0:
46141
45060
  if (this.pageType &&
46142
45061
  ![
@@ -46145,7 +45064,6 @@ var IkasPageDataProvider = /** @class */ (function () {
46145
45064
  IkasThemePageType.CATEGORY,
46146
45065
  IkasThemePageType.BLOG,
46147
45066
  IkasThemePageType.BLOG_CATEGORY,
46148
- IkasThemePageType.RAFFLE_DETAIL,
46149
45067
  ].includes(this.pageType))
46150
45068
  return [2 /*return*/];
46151
45069
  slug = this.pageParams.slug;
@@ -46156,25 +45074,17 @@ var IkasPageDataProvider = /** @class */ (function () {
46156
45074
  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];
46157
45075
  return [4 /*yield*/, IkasBlogAPI.listBlogMetaData(slug)];
46158
45076
  case 1:
46159
- metaDataList = _e.sent();
45077
+ metaDataList = _d.sent();
46160
45078
  if (!metaDataList.length)
46161
45079
  return [2 /*return*/];
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)];
45080
+ return [3 /*break*/, 4];
45081
+ case 2: return [4 /*yield*/, IkasHTMLMetaDataAPI.listHTMLMetaData(slug)];
46166
45082
  case 3:
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();
45083
+ metaDataList = _d.sent();
46174
45084
  if (!metaDataList || !metaDataList.length)
46175
45085
  return [2 /*return*/];
46176
- _e.label = 6;
46177
- case 6:
45086
+ _d.label = 4;
45087
+ case 4:
46178
45088
  metaData = metaDataList[0];
46179
45089
  if (!metaData.targetId)
46180
45090
  return [2 /*return*/];
@@ -46299,49 +45209,27 @@ var IkasPageDataProvider = /** @class */ (function () {
46299
45209
  }
46300
45210
  });
46301
45211
  }); };
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];
45212
+ _c = metaData.targetType;
45213
+ switch (_c) {
45214
+ case IkasHTMLMetaDataTargetType.BRAND: return [3 /*break*/, 5];
45215
+ case IkasHTMLMetaDataTargetType.CATEGORY: return [3 /*break*/, 7];
45216
+ case IkasHTMLMetaDataTargetType.PRODUCT: return [3 /*break*/, 9];
45217
+ case IkasBlogMetadataTargetType.BLOG: return [3 /*break*/, 11];
45218
+ case IkasBlogMetadataTargetType.BLOG_CATEGORY: return [3 /*break*/, 13];
46329
45219
  }
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*/];
45220
+ return [3 /*break*/, 15];
45221
+ case 5: return [4 /*yield*/, handleBrandPage()];
45222
+ case 6: return [2 /*return*/, _d.sent()];
45223
+ case 7: return [4 /*yield*/, handleCategoryPage()];
45224
+ case 8: return [2 /*return*/, _d.sent()];
45225
+ case 9: return [4 /*yield*/, handleProductPage()];
45226
+ case 10: return [2 /*return*/, _d.sent()];
45227
+ case 11: return [4 /*yield*/, handleBlogPage()];
45228
+ case 12: return [2 /*return*/, _d.sent()];
45229
+ case 13: return [4 /*yield*/, handleBlogCategoryPage()];
45230
+ case 14: return [2 /*return*/, _d.sent()];
45231
+ case 15: return [3 /*break*/, 16];
45232
+ case 16: return [2 /*return*/];
46345
45233
  }
46346
45234
  });
46347
45235
  });
@@ -46383,15 +45271,13 @@ var IkasPageDataProvider = /** @class */ (function () {
46383
45271
  };
46384
45272
  IkasPageDataProvider.prototype.getPageComponentPropValue = function (pageComponent, prop) {
46385
45273
  return __awaiter(this, void 0, void 0, function () {
46386
- var propValueProvider, propValue, emptyPropValueTypes, _a, customData, pageComponents;
45274
+ var propValueProvider, propValue, _a, customData, pageComponents;
46387
45275
  var _this = this;
46388
45276
  return __generator(this, function (_b) {
46389
45277
  switch (_b.label) {
46390
45278
  case 0:
46391
45279
  propValue = pageComponent.propValues[prop.name];
46392
- emptyPropValueTypes = [IkasThemeComponentPropType.RAFFLE_LIST];
46393
- if ((propValue === null || propValue === undefined) &&
46394
- !emptyPropValueTypes.includes(prop.type))
45280
+ if (propValue === null || propValue === undefined)
46395
45281
  return [2 /*return*/, null];
46396
45282
  _a = prop.type;
46397
45283
  switch (_a) {
@@ -46418,86 +45304,78 @@ var IkasPageDataProvider = /** @class */ (function () {
46418
45304
  case IkasThemeComponentPropType.BLOG_LIST: return [3 /*break*/, 20];
46419
45305
  case IkasThemeComponentPropType.BLOG_CATEGORY: return [3 /*break*/, 21];
46420
45306
  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];
46423
45307
  }
46424
- return [3 /*break*/, 25];
45308
+ return [3 /*break*/, 23];
46425
45309
  case 1:
46426
45310
  propValueProvider = new IkasTextPropValueProvider(propValue);
46427
- return [3 /*break*/, 26];
45311
+ return [3 /*break*/, 24];
46428
45312
  case 2:
46429
45313
  propValueProvider = new IkasRichTextPropValueProvider(propValue);
46430
- return [3 /*break*/, 26];
45314
+ return [3 /*break*/, 24];
46431
45315
  case 3:
46432
45316
  propValueProvider = new IkasBooleanPropValueProvider(propValue);
46433
- return [3 /*break*/, 26];
45317
+ return [3 /*break*/, 24];
46434
45318
  case 4:
46435
45319
  propValueProvider = new IkasImagePropValueProvider(propValue);
46436
- return [3 /*break*/, 26];
45320
+ return [3 /*break*/, 24];
46437
45321
  case 5:
46438
45322
  propValueProvider = new IkasImageListPropValueProvider(propValue);
46439
- return [3 /*break*/, 26];
45323
+ return [3 /*break*/, 24];
46440
45324
  case 6:
46441
45325
  propValueProvider = new IkasBrandPropValueProvider(propValue);
46442
- return [3 /*break*/, 26];
45326
+ return [3 /*break*/, 24];
46443
45327
  case 7:
46444
45328
  propValueProvider = new IkasBrandListPropValueProvider(propValue);
46445
- return [3 /*break*/, 26];
45329
+ return [3 /*break*/, 24];
46446
45330
  case 8:
46447
45331
  propValueProvider = new IkasProductListPropValueProvider(this.pageType, propValue, this.pageSpecificData);
46448
- return [3 /*break*/, 26];
45332
+ return [3 /*break*/, 24];
46449
45333
  case 9:
46450
45334
  propValueProvider = new IkasProductDetailPropValueProvider(propValue);
46451
- return [3 /*break*/, 26];
45335
+ return [3 /*break*/, 24];
46452
45336
  case 10:
46453
45337
  propValueProvider = new IkasAttributePropValueProvider(propValue);
46454
- return [3 /*break*/, 26];
45338
+ return [3 /*break*/, 24];
46455
45339
  case 11:
46456
45340
  propValueProvider = new IkasAttributeListPropValueProvider(propValue);
46457
- return [3 /*break*/, 26];
45341
+ return [3 /*break*/, 24];
46458
45342
  case 12:
46459
45343
  propValueProvider = new IkasCategoryPropValueProvider(propValue);
46460
- return [3 /*break*/, 26];
45344
+ return [3 /*break*/, 24];
46461
45345
  case 13:
46462
45346
  propValueProvider = new IkasCategoryListPropValueProvider(propValue);
46463
- return [3 /*break*/, 26];
45347
+ return [3 /*break*/, 24];
46464
45348
  case 14:
46465
45349
  propValueProvider = new IkasLinkPropValueProvider(propValue, this.theme);
46466
- return [3 /*break*/, 26];
45350
+ return [3 /*break*/, 24];
46467
45351
  case 15:
46468
45352
  propValueProvider = new IkasColorPropValueProvider(propValue);
46469
- return [3 /*break*/, 26];
45353
+ return [3 /*break*/, 24];
46470
45354
  case 16:
46471
45355
  customData = this.theme.customData.find(function (cd) { return cd.id === prop.customDataId; });
46472
45356
  if (!customData)
46473
45357
  return [2 /*return*/];
46474
45358
  propValueProvider = new IkasCustomPropValueProvider(propValue, customData, this.theme, this.pageType, this, this.pageSpecificData, this.pageParams);
46475
- return [3 /*break*/, 26];
45359
+ return [3 /*break*/, 24];
46476
45360
  case 17:
46477
45361
  pageComponents = propValue;
46478
45362
  return [4 /*yield*/, Promise.all(pageComponents.map(function (tp) { return _this.getPageComponentPropValues(tp); }))];
46479
45363
  case 18: return [2 /*return*/, _b.sent()];
46480
45364
  case 19:
46481
45365
  propValueProvider = new IkasBlogPropValueProvider(propValue);
46482
- return [3 /*break*/, 26];
45366
+ return [3 /*break*/, 24];
46483
45367
  case 20:
46484
45368
  propValueProvider = new IkasBlogListPropValueProvider(this.pageType, propValue, this.pageSpecificData);
46485
- return [3 /*break*/, 26];
45369
+ return [3 /*break*/, 24];
46486
45370
  case 21:
46487
45371
  propValueProvider = new IkasBlogCategoryPropValueProvider(propValue);
46488
- return [3 /*break*/, 26];
45372
+ return [3 /*break*/, 24];
46489
45373
  case 22:
46490
45374
  propValueProvider = new IkasBlogCategoryListPropValueProvider(propValue);
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()];
45375
+ return [3 /*break*/, 24];
45376
+ case 23: return [3 /*break*/, 24];
45377
+ case 24: return [4 /*yield*/, (propValueProvider === null || propValueProvider === void 0 ? void 0 : propValueProvider.getValue())];
45378
+ case 25: return [2 /*return*/, _b.sent()];
46501
45379
  }
46502
45380
  });
46503
45381
  });
@@ -46555,10 +45433,6 @@ var IkasPageDataInit = /** @class */ (function () {
46555
45433
  var blogCategory = parsed;
46556
45434
  IkasPageDataInit.pageSpecificData = new IkasBlogCategory(blogCategory);
46557
45435
  break;
46558
- case IkasThemePageType.RAFFLE_DETAIL:
46559
- var raffle_detail = parsed;
46560
- IkasPageDataInit.pageSpecificData = new IkasRaffle(raffle_detail);
46561
- break;
46562
45436
  }
46563
45437
  };
46564
45438
  IkasPageDataInit.isServer = function () {
@@ -46633,12 +45507,6 @@ var IkasPageDataInit = /** @class */ (function () {
46633
45507
  case IkasThemeComponentPropType.BLOG_LIST:
46634
45508
  IkasPageDataInit.initBlogCategoryListPropValue(prop, propValue, pageComponentPropValue);
46635
45509
  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;
46642
45510
  }
46643
45511
  });
46644
45512
  });
@@ -46827,10 +45695,6 @@ var IkasPageDataInit = /** @class */ (function () {
46827
45695
  return this._initBlogCategoryPropValue(propValue);
46828
45696
  case IkasThemeComponentPropType.BLOG_CATEGORY_LIST:
46829
45697
  return this._initBlogCategoryListPropValue(propValue);
46830
- case IkasThemeComponentPropType.RAFFLE:
46831
- return this._initRafflePropValue(propValue);
46832
- case IkasThemeComponentPropType.RAFFLE_LIST:
46833
- return this._initRaffleListPropValue(propValue);
46834
45698
  case IkasThemeComponentPropType.OBJECT:
46835
45699
  var objectValue = {};
46836
45700
  for (var _i = 0, _a = customData.nestedData || []; _i < _a.length; _i++) {
@@ -46936,24 +45800,6 @@ var IkasPageDataInit = /** @class */ (function () {
46936
45800
  IkasPageDataInit._initBlogCategoryListPropValue = function (propValue) {
46937
45801
  return new IkasBlogCategoryList(propValue);
46938
45802
  };
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
- };
46957
45803
  IkasPageDataInit.pageSpecificData = observable({});
46958
45804
  return IkasPageDataInit;
46959
45805
  }());
@@ -47399,7 +46245,7 @@ var IkasStorefront = /** @class */ (function () {
47399
46245
  return IkasStorefront;
47400
46246
  }());
47401
46247
 
47402
- var PACKAGE_VERSION = "0.2.0";
46248
+ var PACKAGE_VERSION = "0.0.163-alpha.13";
47403
46249
  // import { version as PACKAGE_VERSION } from "../../../package.json";
47404
46250
  var IkasPageEditorViewModel = /** @class */ (function () {
47405
46251
  function IkasPageEditorViewModel(router) {
@@ -47517,9 +46363,9 @@ var IkasPageEditorViewModel = /** @class */ (function () {
47517
46363
  this.getPagePropValues = function () { return __awaiter(_this, void 0, void 0, function () {
47518
46364
  var pageDataProvider;
47519
46365
  var _this = this;
47520
- var _a, _b, _c, _d;
47521
- return __generator(this, function (_e) {
47522
- switch (_e.label) {
46366
+ var _a, _b, _c;
46367
+ return __generator(this, function (_d) {
46368
+ switch (_d.label) {
47523
46369
  case 0:
47524
46370
  pageDataProvider = new IkasPageDataProvider(this.theme, this.pageParams, (_a = this.page) === null || _a === void 0 ? void 0 : _a.type);
47525
46371
  if (((_b = this.pageParams) === null || _b === void 0 ? void 0 : _b.blogId) || ((_c = this.pageParams) === null || _c === void 0 ? void 0 : _c.blogCategoryId)) {
@@ -47528,13 +46374,10 @@ var IkasPageEditorViewModel = /** @class */ (function () {
47528
46374
  IkasThemePageType.BLOG_CATEGORY,
47529
46375
  ];
47530
46376
  }
47531
- if ((_d = this.pageParams) === null || _d === void 0 ? void 0 : _d.raffleId) {
47532
- pageDataProvider.possiblePageTypes = [IkasThemePageType.RAFFLE_DETAIL];
47533
- }
47534
46377
  this.isLoading = true;
47535
46378
  return [4 /*yield*/, pageDataProvider.getPageData()];
47536
46379
  case 1:
47537
- _e.sent();
46380
+ _d.sent();
47538
46381
  if (pageDataProvider.pageSpecificData) {
47539
46382
  IkasPageDataInit.setPageSpecificData(JSON.stringify(pageDataProvider.pageSpecificData), this.page.type, true);
47540
46383
  }
@@ -47746,7 +46589,7 @@ var IkasPageEditorViewModel = /** @class */ (function () {
47746
46589
  Object.defineProperty(IkasPageEditorViewModel.prototype, "specification", {
47747
46590
  get: function () {
47748
46591
  var _this = this;
47749
- var _a, _b, _c, _d, _e, _f;
46592
+ var _a, _b, _c, _d, _e;
47750
46593
  var selectedPage = this.page;
47751
46594
  var specification;
47752
46595
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.PRODUCT) {
@@ -47764,9 +46607,6 @@ var IkasPageEditorViewModel = /** @class */ (function () {
47764
46607
  if ((selectedPage === null || selectedPage === void 0 ? void 0 : selectedPage.type) === IkasThemePageType.BLOG_CATEGORY) {
47765
46608
  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); });
47766
46609
  }
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
- }
47770
46610
  return specification;
47771
46611
  },
47772
46612
  enumerable: false,
@@ -72738,7 +71578,7 @@ var IkasStorefrontAPI = /** @class */ (function () {
72738
71578
  return __generator(this, function (_b) {
72739
71579
  switch (_b.label) {
72740
71580
  case 0:
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 "])));
71581
+ QUERY = src(templateObject_1$k || (templateObject_1$k = __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 "])));
72742
71582
  _b.label = 1;
72743
71583
  case 1:
72744
71584
  _b.trys.push([1, 3, , 4]);
@@ -72769,7 +71609,7 @@ var IkasStorefrontAPI = /** @class */ (function () {
72769
71609
  };
72770
71610
  return IkasStorefrontAPI;
72771
71611
  }());
72772
- var templateObject_1$l;
71612
+ var templateObject_1$k;
72773
71613
 
72774
71614
  var IkasNextPageDataProvider = /** @class */ (function () {
72775
71615
  function IkasNextPageDataProvider() {
@@ -72963,8 +71803,7 @@ var IkasNextPageDataProvider = /** @class */ (function () {
72963
71803
  IkasStorefrontConfig.productBackInStockSettings = productBackInStockSettings;
72964
71804
  IkasStorefrontConfig.customerReviewSettings = customerReviewSettings;
72965
71805
  provider = new IkasPageDataProvider(themeLocalization.themeJson, context.params, pageType);
72966
- provider.possiblePageTypes =
72967
- possiblePageTypes || (pageType ? [pageType] : []);
71806
+ provider.possiblePageTypes = possiblePageTypes;
72968
71807
  if (!!isEditor) return [3 /*break*/, 3];
72969
71808
  return [4 /*yield*/, provider.getPageData()];
72970
71809
  case 2:
@@ -73588,72 +72427,6 @@ var _slug_$3 = /*#__PURE__*/Object.freeze({
73588
72427
  getStaticProps: getStaticProps$h
73589
72428
  });
73590
72429
 
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
-
73657
72430
  /**
73658
72431
  * Flattens `array` a single level deep.
73659
72432
  *
@@ -74251,14 +73024,6 @@ var IkasCustomerStore = /** @class */ (function () {
74251
73024
  }, 100);
74252
73025
  });
74253
73026
  };
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
- }); };
74262
73027
  this.baseStore = baseStore;
74263
73028
  this.init();
74264
73029
  makeAutoObservable(this);
@@ -74965,4 +73730,4 @@ var en$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Ob
74965
73730
  'default': en
74966
73731
  }));
74967
73732
 
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 };
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 };