@ikas/storefront 0.0.124 → 0.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/__generated__/global-types.d.ts +11 -2
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +1 -0
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -0
- package/build/api/customer/__generated__/customerLogin.d.ts +1 -0
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +2 -1
- package/build/api/html-meta-data/index.d.ts +1 -1
- package/build/components/checkout/components/form-item/model.d.ts +4 -2
- package/build/components/checkout/model.d.ts +1 -0
- package/build/index.es.js +49 -57
- package/build/index.js +49 -57
- package/build/models/data/checkout/index.d.ts +1 -0
- package/build/models/data/checkout-settings/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -229,16 +229,20 @@ export declare enum SortByTypeEnum {
|
|
|
229
229
|
PRICE = "PRICE"
|
|
230
230
|
}
|
|
231
231
|
/**
|
|
232
|
-
*
|
|
232
|
+
* StorefrontStatusEnum
|
|
233
233
|
*/
|
|
234
234
|
export declare enum StorefrontStatusTypes {
|
|
235
|
+
FAILED = "FAILED",
|
|
236
|
+
NOT_DEPLOYED = "NOT_DEPLOYED",
|
|
235
237
|
READY = "READY",
|
|
236
238
|
WAITING = "WAITING"
|
|
237
239
|
}
|
|
238
240
|
/**
|
|
239
|
-
*
|
|
241
|
+
* StorefrontThemeStatusEnum
|
|
240
242
|
*/
|
|
241
243
|
export declare enum StorefrontThemeStatus {
|
|
244
|
+
FAILED = "FAILED",
|
|
245
|
+
NOT_DEPLOYED = "NOT_DEPLOYED",
|
|
242
246
|
READY = "READY",
|
|
243
247
|
WAITING = "WAITING"
|
|
244
248
|
}
|
|
@@ -350,6 +354,10 @@ export interface CustomerAddressStateInput {
|
|
|
350
354
|
id?: string | null;
|
|
351
355
|
name?: string | null;
|
|
352
356
|
}
|
|
357
|
+
export interface HTMLMetaDataTargetTypeEnumFilter {
|
|
358
|
+
eq?: HTMLMetaDataTargetTypeEnum | null;
|
|
359
|
+
in?: HTMLMetaDataTargetTypeEnum[] | null;
|
|
360
|
+
}
|
|
353
361
|
export interface OrderAddressCityInput {
|
|
354
362
|
code?: string | null;
|
|
355
363
|
id?: string | null;
|
|
@@ -431,6 +439,7 @@ export interface SaveCheckoutInput {
|
|
|
431
439
|
customer?: CheckoutCustomerInput | null;
|
|
432
440
|
deleted?: boolean | null;
|
|
433
441
|
id?: string | null;
|
|
442
|
+
note?: string | null;
|
|
434
443
|
shippingAddress?: OrderAddressInput | null;
|
|
435
444
|
shippingMethod: ShippingMethodEnum;
|
|
436
445
|
shippingSettingsId?: string | null;
|
|
@@ -174,6 +174,7 @@ export interface getCheckoutById_getCheckoutById_adjustments {
|
|
|
174
174
|
export interface getCheckoutById_getCheckoutById {
|
|
175
175
|
__typename: "Checkout";
|
|
176
176
|
totalFinalPrice: number;
|
|
177
|
+
note: string | null;
|
|
177
178
|
availableShippingMethods: getCheckoutById_getCheckoutById_availableShippingMethods[] | null;
|
|
178
179
|
billingAddress: getCheckoutById_getCheckoutById_billingAddress | null;
|
|
179
180
|
cartId: string;
|
|
@@ -13,6 +13,7 @@ export interface listCheckoutSettings_listCheckoutSettings {
|
|
|
13
13
|
isTermsAndConditionsDefaultChecked: boolean | null;
|
|
14
14
|
options: listCheckoutSettings_listCheckoutSettings_options[] | null;
|
|
15
15
|
phoneRequirement: CheckoutRequirementEnum;
|
|
16
|
+
showCheckoutNote: boolean | null;
|
|
16
17
|
showTermsAndConditionsCheckbox: boolean;
|
|
17
18
|
storefrontId: string;
|
|
18
19
|
updatedAt: any | null;
|
|
@@ -27,6 +27,7 @@ export interface customerLogin_customerLogin_customer_addresses {
|
|
|
27
27
|
__typename: "CustomerAddress";
|
|
28
28
|
addressLine1: string;
|
|
29
29
|
addressLine2: string | null;
|
|
30
|
+
identityNumber: string | null;
|
|
30
31
|
city: customerLogin_customerLogin_customer_addresses_city;
|
|
31
32
|
company: string | null;
|
|
32
33
|
country: customerLogin_customerLogin_customer_addresses_country;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StringFilterInput, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
1
|
+
import { StringFilterInput, HTMLMetaDataTargetTypeEnumFilter, HTMLMetaDataTargetTypeEnum } from "../../../__generated__/global-types";
|
|
2
2
|
export interface listHTMLMetaData_listHTMLMetaData {
|
|
3
3
|
__typename: "HTMLMetaData";
|
|
4
4
|
slug: string;
|
|
@@ -14,4 +14,5 @@ export interface listHTMLMetaData {
|
|
|
14
14
|
export interface listHTMLMetaDataVariables {
|
|
15
15
|
slug?: StringFilterInput | null;
|
|
16
16
|
targetId?: StringFilterInput | null;
|
|
17
|
+
targetType?: HTMLMetaDataTargetTypeEnumFilter | null;
|
|
17
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IkasHTMLMetaData } from "../../models/index";
|
|
2
2
|
export declare class IkasHTMLMetaDataAPI {
|
|
3
|
-
static listHTMLMetaData(slug?: string, targetId?: string): Promise<IkasHTMLMetaData[]>;
|
|
3
|
+
static listHTMLMetaData(slug?: string, targetId?: string, targetType?: string[]): Promise<IkasHTMLMetaData[]>;
|
|
4
4
|
}
|
|
@@ -11,6 +11,7 @@ export default class FormItemViewModel implements Props {
|
|
|
11
11
|
get labelStyle(): string;
|
|
12
12
|
get inputStyle(): string;
|
|
13
13
|
onValueChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
onTextAreaValueChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
14
15
|
onSelectChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
15
16
|
}
|
|
16
17
|
export interface Props {
|
|
@@ -25,8 +26,9 @@ export interface Props {
|
|
|
25
26
|
}
|
|
26
27
|
export declare enum FormItemType {
|
|
27
28
|
TEXT = 0,
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
TEXT_AREA = 1,
|
|
30
|
+
SELECT = 2,
|
|
31
|
+
TEL = 3
|
|
30
32
|
}
|
|
31
33
|
export declare type FormItemSelectOption = {
|
|
32
34
|
value: string;
|
|
@@ -68,6 +68,7 @@ export default class CheckoutViewModel {
|
|
|
68
68
|
onSelectedShippingAddressIdChange: (value: string) => void;
|
|
69
69
|
onSelectedBillingAddressIdChange: (value: string) => void;
|
|
70
70
|
onTermsAndConditionsCheckedChange: (value: boolean) => void;
|
|
71
|
+
onCheckoutNoteChange: (value: string) => void;
|
|
71
72
|
onCardNumberChange: (value: string) => void;
|
|
72
73
|
onCardHolderNameChange: (value: string) => void;
|
|
73
74
|
onExpirationDateChange: (value: string) => void;
|
package/build/index.es.js
CHANGED
|
@@ -11896,6 +11896,9 @@ var ThemeComponent = observer(function (_a) {
|
|
|
11896
11896
|
});
|
|
11897
11897
|
});
|
|
11898
11898
|
var Component = components[pageComponent.componentId];
|
|
11899
|
+
if (!Component) {
|
|
11900
|
+
console.error("COMPONENT NOT FOUND!", pageComponent.id, pageComponent.componentId, components ? Object.keys(components) : []);
|
|
11901
|
+
}
|
|
11899
11902
|
return (createElement("div", { id: index + "" }, hasNullValue.get() ? null : (createElement(Component, __assign({ key: pageComponent.id }, propValues, { settings: settings, store: store })))));
|
|
11900
11903
|
});
|
|
11901
11904
|
|
|
@@ -12982,7 +12985,10 @@ var IkasCheckoutSettings = /** @class */ (function () {
|
|
|
12982
12985
|
this.isTermsAndConditionsDefaultChecked =
|
|
12983
12986
|
data.isTermsAndConditionsDefaultChecked || false;
|
|
12984
12987
|
this.showTermsAndConditionsCheckbox =
|
|
12985
|
-
data.showTermsAndConditionsCheckbox
|
|
12988
|
+
data.showTermsAndConditionsCheckbox !== undefined
|
|
12989
|
+
? data.showTermsAndConditionsCheckbox
|
|
12990
|
+
: true;
|
|
12991
|
+
this.showCheckoutNote = data.showCheckoutNote || false;
|
|
12986
12992
|
this.storefrontId = data.storefrontId || "";
|
|
12987
12993
|
}
|
|
12988
12994
|
return IkasCheckoutSettings;
|
|
@@ -13321,6 +13327,7 @@ var IkasCheckout = /** @class */ (function () {
|
|
|
13321
13327
|
this.recoveryStatus = null;
|
|
13322
13328
|
this.totalFinalPrice = null;
|
|
13323
13329
|
this.adjustments = null;
|
|
13330
|
+
this.note = null;
|
|
13324
13331
|
this.id = data.id;
|
|
13325
13332
|
this.createdAt = data.createdAt;
|
|
13326
13333
|
this.updatedAt = data.updatedAt;
|
|
@@ -13347,6 +13354,7 @@ var IkasCheckout = /** @class */ (function () {
|
|
|
13347
13354
|
this.recoveryStatus = data.recoveryStatus;
|
|
13348
13355
|
this.totalFinalPrice = data.totalFinalPrice;
|
|
13349
13356
|
this.adjustments = data.adjustments;
|
|
13357
|
+
this.note = data.note || null;
|
|
13350
13358
|
makeAutoObservable(this);
|
|
13351
13359
|
}
|
|
13352
13360
|
Object.defineProperty(IkasCheckout.prototype, "shippingTotal", {
|
|
@@ -18390,6 +18398,9 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
18390
18398
|
this.onTermsAndConditionsCheckedChange = function (value) {
|
|
18391
18399
|
_this.isTermsAndConditionsChecked = value;
|
|
18392
18400
|
};
|
|
18401
|
+
this.onCheckoutNoteChange = function (value) {
|
|
18402
|
+
_this.checkout.note = value;
|
|
18403
|
+
};
|
|
18393
18404
|
// CREDIT CARD START
|
|
18394
18405
|
this.onCardNumberChange = function (value) {
|
|
18395
18406
|
if (!_this.cardData)
|
|
@@ -25164,7 +25175,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
25164
25175
|
return __generator(this, function (_b) {
|
|
25165
25176
|
switch (_b.label) {
|
|
25166
25177
|
case 0:
|
|
25167
|
-
QUERY = src(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n }\n }\n }\n "], ["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n }\n }\n }\n "])));
|
|
25178
|
+
QUERY = src(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n note\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n }\n }\n }\n "], ["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n note\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n }\n }\n }\n "])));
|
|
25168
25179
|
_b.label = 1;
|
|
25169
25180
|
case 1:
|
|
25170
25181
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -25263,6 +25274,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
25263
25274
|
lastName: (_d = checkout.customer) === null || _d === void 0 ? void 0 : _d.lastName,
|
|
25264
25275
|
}
|
|
25265
25276
|
: null,
|
|
25277
|
+
note: checkout.note,
|
|
25266
25278
|
},
|
|
25267
25279
|
},
|
|
25268
25280
|
})];
|
|
@@ -25441,7 +25453,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
25441
25453
|
return __generator(this, function (_b) {
|
|
25442
25454
|
switch (_b.label) {
|
|
25443
25455
|
case 0:
|
|
25444
|
-
QUERY = src(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n }\n }\n "], ["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n }\n }\n "])));
|
|
25456
|
+
QUERY = src(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n }\n }\n "], ["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n }\n }\n "])));
|
|
25445
25457
|
_b.label = 1;
|
|
25446
25458
|
case 1:
|
|
25447
25459
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -26087,13 +26099,13 @@ var templateObject_1$7;
|
|
|
26087
26099
|
var IkasHTMLMetaDataAPI = /** @class */ (function () {
|
|
26088
26100
|
function IkasHTMLMetaDataAPI() {
|
|
26089
26101
|
}
|
|
26090
|
-
IkasHTMLMetaDataAPI.listHTMLMetaData = function (slug, targetId) {
|
|
26102
|
+
IkasHTMLMetaDataAPI.listHTMLMetaData = function (slug, targetId, targetType) {
|
|
26091
26103
|
return __awaiter(this, void 0, void 0, function () {
|
|
26092
26104
|
var LIST_QUERY, _a, data, errors, err_1;
|
|
26093
26105
|
return __generator(this, function (_b) {
|
|
26094
26106
|
switch (_b.label) {
|
|
26095
26107
|
case 0:
|
|
26096
|
-
LIST_QUERY = src(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n ) {\n listHTMLMetaData(slug: $slug
|
|
26108
|
+
LIST_QUERY = src(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n "], ["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n "])));
|
|
26097
26109
|
_b.label = 1;
|
|
26098
26110
|
case 1:
|
|
26099
26111
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -26112,6 +26124,11 @@ var IkasHTMLMetaDataAPI = /** @class */ (function () {
|
|
|
26112
26124
|
eq: targetId,
|
|
26113
26125
|
}
|
|
26114
26126
|
: undefined,
|
|
26127
|
+
targetType: targetType
|
|
26128
|
+
? {
|
|
26129
|
+
in: targetType,
|
|
26130
|
+
}
|
|
26131
|
+
: undefined,
|
|
26115
26132
|
},
|
|
26116
26133
|
})];
|
|
26117
26134
|
case 2:
|
|
@@ -26696,7 +26713,7 @@ function styleInject(css, ref) {
|
|
|
26696
26713
|
}
|
|
26697
26714
|
}
|
|
26698
26715
|
|
|
26699
|
-
var css_248z = ".style-module_FormSectionTitle__2LxF2 {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 1.5em; }\n .style-module_FormSectionTitle__2LxF2 .style-module_Title__2PxW0 {\n flex: 1 1 auto;\n padding-bottom: 0.7em;\n color: #333333;\n font-size: 1.15em;\n line-height: 1.15em; }\n .style-module_FormSectionTitle__2LxF2 .style-module_Title__2PxW0.style-module_WithSubTitle__36X7i {\n line-height: auto;\n padding-bottom: 0; }\n\n.style-module_SubTitle__2UOsH {\n color: #737373;\n font-size: 0.8em;\n padding-bottom: 0.7em;\n padding-top: 0.3em; }\n\n.style-module_Grid__1eODF {\n display: grid;\n grid-gap: 0.7em; }\n .style-module_Grid__1eODF.style-module_Grid2__1HTRV {\n grid-template-columns: repeat(2, 1fr); }\n .style-module_Grid__1eODF.style-module_Grid3__uN7io {\n grid-template-columns: repeat(3, 1fr); }\n @media only screen and (max-width: 768px) {\n .style-module_Grid__1eODF {\n grid-template-columns: 1fr !important; } }\n\n.style-module_FormContainer__2IVCZ {\n padding: 0 0.7em; }\n\n.style-module_mtFormRow__2YwG- {\n margin-top: 0.7em; }\n\n.style-module_mt1__1OQuA {\n margin-top: 1em; }\n\n.style-module_mt2__Yumkn {\n margin-top: 2em; }\n\n@keyframes style-module_fadeInFromRight__L_PAx {\n from {\n opacity: 0;\n transform: translateY(10px); }\n to {\n opacity: 1;\n transform: translateY(0); } }\n\n.style-module_FormItem__1o0fc {\n width: 100%; }\n .style-module_FormItemWrapper__2NOxU {\n width: 100%; }\n .style-module_FormItemInputWrapper__2eOdJ {\n position: relative;\n width: 100%; }\n .style-module_FormItemInputWrapper__2eOdJ label.style-module_FieldLabel__2Tx0b {\n color: #737373;\n position: absolute;\n top: 0;\n left: 0.7em;\n width: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: transform .1s;\n transform: translateY(70%);\n font-size: 0.85em; }\n .style-module_FormItemInputWrapper__2eOdJ label.style-module_FieldLabelTop__1nOBq {\n transform: translateY(6px);\n font-size: 0.7em; }\n .style-module_FormItemInputWrapper__2eOdJ input,\n .style-module_FormItemInputWrapper__2eOdJ select {\n border: 1px solid #d9d9d9;\n background-color: white;\n color: #333333;\n background-clip: padding-box;\n border-radius: 6px;\n display: block;\n width: 100%;\n height: 3em;\n padding: 0.5em;\n outline: none;\n transition: padding .1s, border-color .5s, box-shadow .5s;\n box-shadow: 0 0 0 1px transparent;\n -moz-appearance: none;\n -webkit-appearance: none; }\n .style-module_FormItemInputWrapper__2eOdJ input:focus,\n .style-module_FormItemInputWrapper__2eOdJ select:focus {\n box-shadow: 0 0 0 1px #111111;\n border-color: #111111; }\n .style-module_FormItemInputWrapper__2eOdJ input.style-module_Bottom__3s4pZ,\n .style-module_FormItemInputWrapper__2eOdJ select.style-module_Bottom__3s4pZ {\n padding-top: 1.2em;\n padding-bottom: 0.2em; }\n .style-module_FormItemInputWrapper__2eOdJ input.style-module_Error__nif12,\n .style-module_FormItemInputWrapper__2eOdJ select.style-module_Error__nif12 {\n box-shadow: 0 0 0 1px #ff6d6d;\n border-color: #ff6d6d; }\n .style-module_FormItemInputWrapper__2eOdJ input::-ms-expand,\n .style-module_FormItemInputWrapper__2eOdJ select::-ms-expand {\n display: none; }\n .style-module_FormItemInputWrapper__2eOdJ .style-module_ArrowContainer__27ejm {\n position: absolute;\n right: 1px;\n padding-right: 0.5em;\n top: 1px;\n height: calc(100% - 2px);\n display: flex;\n align-items: center;\n color: #737373;\n background-color: white;\n z-index: 2;\n border-radius: 6px; }\n .style-module_FormItem__1o0fc .style-module_ErrorMsg__3How6 {\n color: #ff6d6d;\n font-size: 0.8em;\n margin: 0.5em 0.25em;\n animation-name: style-module_fadeInFromRight__L_PAx;\n animation-duration: .3s; }\n";
|
|
26716
|
+
var css_248z = ".style-module_FormSectionTitle__2LxF2 {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 1.5em; }\n .style-module_FormSectionTitle__2LxF2 .style-module_Title__2PxW0 {\n flex: 1 1 auto;\n padding-bottom: 0.7em;\n color: #333333;\n font-size: 1.15em;\n line-height: 1.15em; }\n .style-module_FormSectionTitle__2LxF2 .style-module_Title__2PxW0.style-module_WithSubTitle__36X7i {\n line-height: auto;\n padding-bottom: 0; }\n\n.style-module_SubTitle__2UOsH {\n color: #737373;\n font-size: 0.8em;\n padding-bottom: 0.7em;\n padding-top: 0.3em; }\n\n.style-module_Grid__1eODF {\n display: grid;\n grid-gap: 0.7em; }\n .style-module_Grid__1eODF.style-module_Grid2__1HTRV {\n grid-template-columns: repeat(2, 1fr); }\n .style-module_Grid__1eODF.style-module_Grid3__uN7io {\n grid-template-columns: repeat(3, 1fr); }\n @media only screen and (max-width: 768px) {\n .style-module_Grid__1eODF {\n grid-template-columns: 1fr !important; } }\n\n.style-module_FormContainer__2IVCZ {\n padding: 0 0.7em; }\n\n.style-module_mtFormRow__2YwG- {\n margin-top: 0.7em; }\n\n.style-module_mt1__1OQuA {\n margin-top: 1em; }\n\n.style-module_mt2__Yumkn {\n margin-top: 2em; }\n\n@keyframes style-module_fadeInFromRight__L_PAx {\n from {\n opacity: 0;\n transform: translateY(10px); }\n to {\n opacity: 1;\n transform: translateY(0); } }\n\n.style-module_FormItem__1o0fc {\n width: 100%; }\n .style-module_FormItemWrapper__2NOxU {\n width: 100%; }\n .style-module_FormItemInputWrapper__2eOdJ {\n position: relative;\n width: 100%; }\n .style-module_FormItemInputWrapper__2eOdJ label.style-module_FieldLabel__2Tx0b {\n color: #737373;\n position: absolute;\n top: 0;\n left: 0.7em;\n width: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: transform .1s;\n transform: translateY(70%);\n font-size: 0.85em; }\n .style-module_FormItemInputWrapper__2eOdJ label.style-module_FieldLabelTop__1nOBq {\n transform: translateY(6px);\n font-size: 0.7em; }\n .style-module_FormItemInputWrapper__2eOdJ input,\n .style-module_FormItemInputWrapper__2eOdJ select,\n .style-module_FormItemInputWrapper__2eOdJ textarea {\n border: 1px solid #d9d9d9;\n background-color: white;\n color: #333333;\n background-clip: padding-box;\n border-radius: 6px;\n display: block;\n width: 100%;\n height: 3em;\n padding: 0.5em;\n outline: none;\n transition: padding .1s, border-color .5s, box-shadow .5s;\n box-shadow: 0 0 0 1px transparent;\n -moz-appearance: none;\n -webkit-appearance: none; }\n .style-module_FormItemInputWrapper__2eOdJ input:focus,\n .style-module_FormItemInputWrapper__2eOdJ select:focus,\n .style-module_FormItemInputWrapper__2eOdJ textarea:focus {\n box-shadow: 0 0 0 1px #111111;\n border-color: #111111; }\n .style-module_FormItemInputWrapper__2eOdJ input.style-module_Bottom__3s4pZ,\n .style-module_FormItemInputWrapper__2eOdJ select.style-module_Bottom__3s4pZ,\n .style-module_FormItemInputWrapper__2eOdJ textarea.style-module_Bottom__3s4pZ {\n padding-top: 1.2em;\n padding-bottom: 0.2em; }\n .style-module_FormItemInputWrapper__2eOdJ input.style-module_Error__nif12,\n .style-module_FormItemInputWrapper__2eOdJ select.style-module_Error__nif12,\n .style-module_FormItemInputWrapper__2eOdJ textarea.style-module_Error__nif12 {\n box-shadow: 0 0 0 1px #ff6d6d;\n border-color: #ff6d6d; }\n .style-module_FormItemInputWrapper__2eOdJ input::-ms-expand,\n .style-module_FormItemInputWrapper__2eOdJ select::-ms-expand,\n .style-module_FormItemInputWrapper__2eOdJ textarea::-ms-expand {\n display: none; }\n .style-module_FormItemInputWrapper__2eOdJ textarea {\n min-height: 120px; }\n .style-module_FormItemInputWrapper__2eOdJ .style-module_ArrowContainer__27ejm {\n position: absolute;\n right: 1px;\n padding-right: 0.5em;\n top: 1px;\n height: calc(100% - 2px);\n display: flex;\n align-items: center;\n color: #737373;\n background-color: white;\n z-index: 2;\n border-radius: 6px; }\n .style-module_FormItem__1o0fc .style-module_ErrorMsg__3How6 {\n color: #ff6d6d;\n font-size: 0.8em;\n margin: 0.5em 0.25em;\n animation-name: style-module_fadeInFromRight__L_PAx;\n animation-duration: .3s; }\n";
|
|
26700
26717
|
var styles = {"FormSectionTitle":"style-module_FormSectionTitle__2LxF2","Title":"style-module_Title__2PxW0","WithSubTitle":"style-module_WithSubTitle__36X7i","SubTitle":"style-module_SubTitle__2UOsH","Grid":"style-module_Grid__1eODF","Grid2":"style-module_Grid2__1HTRV","Grid3":"style-module_Grid3__uN7io","FormContainer":"style-module_FormContainer__2IVCZ","mtFormRow":"style-module_mtFormRow__2YwG-","mt1":"style-module_mt1__1OQuA","mt2":"style-module_mt2__Yumkn","FormItem":"style-module_FormItem__1o0fc","FormItemWrapper":"style-module_FormItemWrapper__2NOxU","FormItemInputWrapper":"style-module_FormItemInputWrapper__2eOdJ","FieldLabel":"style-module_FieldLabel__2Tx0b","FieldLabelTop":"style-module_FieldLabelTop__1nOBq","Bottom":"style-module_Bottom__3s4pZ","Error":"style-module_Error__nif12","ArrowContainer":"style-module_ArrowContainer__27ejm","ErrorMsg":"style-module_ErrorMsg__3How6","fadeInFromRight":"style-module_fadeInFromRight__L_PAx"};
|
|
26701
26718
|
styleInject(css_248z);
|
|
26702
26719
|
|
|
@@ -26706,6 +26723,9 @@ var FormItemViewModel = /** @class */ (function () {
|
|
|
26706
26723
|
this.onValueChange = function (e) {
|
|
26707
26724
|
_this.onChange(e.target.value);
|
|
26708
26725
|
};
|
|
26726
|
+
this.onTextAreaValueChange = function (e) {
|
|
26727
|
+
_this.onChange(e.target.value);
|
|
26728
|
+
};
|
|
26709
26729
|
this.onSelectChange = function (e) {
|
|
26710
26730
|
_this.onChange(e.target.value);
|
|
26711
26731
|
};
|
|
@@ -26757,8 +26777,9 @@ var FormItemViewModel = /** @class */ (function () {
|
|
|
26757
26777
|
var FormItemType;
|
|
26758
26778
|
(function (FormItemType) {
|
|
26759
26779
|
FormItemType[FormItemType["TEXT"] = 0] = "TEXT";
|
|
26760
|
-
FormItemType[FormItemType["
|
|
26761
|
-
FormItemType[FormItemType["
|
|
26780
|
+
FormItemType[FormItemType["TEXT_AREA"] = 1] = "TEXT_AREA";
|
|
26781
|
+
FormItemType[FormItemType["SELECT"] = 2] = "SELECT";
|
|
26782
|
+
FormItemType[FormItemType["TEL"] = 3] = "TEL";
|
|
26762
26783
|
})(FormItemType || (FormItemType = {}));
|
|
26763
26784
|
|
|
26764
26785
|
var SVGCaretDown = function (_a) {
|
|
@@ -26811,6 +26832,7 @@ var FormItem = observer(function (props) {
|
|
|
26811
26832
|
createElement("label", { className: vm.labelStyle }, vm.label),
|
|
26812
26833
|
vm.type === FormItemType.TEXT && (createElement(Input, { vm: vm, autocomplete: props.autocomplete })),
|
|
26813
26834
|
vm.type === FormItemType.TEL && (createElement(Input, { vm: vm, type: "tel", autocomplete: props.autocomplete })),
|
|
26835
|
+
vm.type === FormItemType.TEXT_AREA && createElement(TextArea, { vm: vm }),
|
|
26814
26836
|
vm.type === FormItemType.SELECT && (createElement(Select, { vm: vm, autocomplete: props.autocomplete }))),
|
|
26815
26837
|
!!vm.hasError && (createElement("div", { className: styles.ErrorMsg }, vm.errorText || "")))));
|
|
26816
26838
|
});
|
|
@@ -26818,6 +26840,10 @@ var Input = observer(function (_a) {
|
|
|
26818
26840
|
var vm = _a.vm, autocomplete = _a.autocomplete, type = _a.type;
|
|
26819
26841
|
return (createElement("input", { type: type || "text", autoComplete: autocomplete, className: vm.inputStyle, value: vm.value, onChange: vm.onValueChange }));
|
|
26820
26842
|
});
|
|
26843
|
+
var TextArea = observer(function (_a) {
|
|
26844
|
+
var vm = _a.vm;
|
|
26845
|
+
return (createElement("textarea", { value: vm.value, onChange: vm.onTextAreaValueChange }));
|
|
26846
|
+
});
|
|
26821
26847
|
var Select = observer(function (_a) {
|
|
26822
26848
|
var _b;
|
|
26823
26849
|
var vm = _a.vm, autocomplete = _a.autocomplete;
|
|
@@ -27562,11 +27588,15 @@ var CheckoutStepPayment = observer(function (_a) {
|
|
|
27562
27588
|
createElement(InfoBox, { vm: vm, showShipping: true }),
|
|
27563
27589
|
createElement(PaymentGateways, { vm: vm }),
|
|
27564
27590
|
createElement(BillingAddress, { vm: vm }),
|
|
27565
|
-
createElement(
|
|
27591
|
+
vm.checkoutSettings.showCheckoutNote && (createElement(Fragment, null,
|
|
27592
|
+
createElement("div", { className: commonStyles.FormSectionTitle },
|
|
27593
|
+
createElement("div", { className: [commonStyles.Title].join(" ") }, "Sipari\u015F Notu")),
|
|
27594
|
+
createElement(FormItem, { type: FormItemType.TEXT_AREA, label: "", value: vm.checkout.note || "", onChange: vm.onCheckoutNoteChange }))),
|
|
27595
|
+
vm.checkoutSettings.showTermsAndConditionsCheckbox && (createElement("div", { style: { marginTop: "12px" } },
|
|
27566
27596
|
createElement(Checkbox, { value: vm.isTermsAndConditionsChecked, label: createElement(Fragment, null,
|
|
27567
27597
|
createElement("span", { className: styles$d.TermsLabelSpan, onClick: onShowTermsClick }, "Mesafeli sat\u0131\u015F s\u00F6zle\u015Fmesini"),
|
|
27568
27598
|
" ",
|
|
27569
|
-
"okudum ve onayl\u0131yorum"), onChange: vm.onTermsAndConditionsCheckedChange })),
|
|
27599
|
+
"okudum ve onayl\u0131yorum"), onChange: vm.onTermsAndConditionsCheckedChange }))),
|
|
27570
27600
|
createElement(StepActionButtons, { mainBtnText: "Şimdi öde", mainBtnOnClick: vm.performPayment, backBtnText: "Kargoya Geri Dön", backBtnOnClick: vm.onBackToShippingClick, isLoading: vm.isStepLoading })));
|
|
27571
27601
|
});
|
|
27572
27602
|
|
|
@@ -29104,62 +29134,24 @@ var Page$1 = function (_a) {
|
|
|
29104
29134
|
};
|
|
29105
29135
|
var index$1 = observer(Page$1);
|
|
29106
29136
|
var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29107
|
-
var
|
|
29108
|
-
return __generator(this, function (
|
|
29109
|
-
switch (
|
|
29110
|
-
case 0:
|
|
29111
|
-
case 1:
|
|
29112
|
-
metaData = _b.sent();
|
|
29137
|
+
var targetTypes, metaData;
|
|
29138
|
+
return __generator(this, function (_a) {
|
|
29139
|
+
switch (_a.label) {
|
|
29140
|
+
case 0:
|
|
29113
29141
|
targetTypes = [
|
|
29114
29142
|
IkasHTMLMetaDataTargetType.BRAND,
|
|
29115
29143
|
IkasHTMLMetaDataTargetType.CATEGORY,
|
|
29116
29144
|
];
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
29120
|
-
productIdList: productMetaData.map(function (p) { return p.targetId; }),
|
|
29121
|
-
priceListId: IkasStorefrontConfig.priceListId,
|
|
29122
|
-
salesChannelId: IkasStorefrontConfig.salesChannelId,
|
|
29123
|
-
})];
|
|
29124
|
-
case 2:
|
|
29125
|
-
productsResponse = _b.sent();
|
|
29126
|
-
productParams = [];
|
|
29127
|
-
_loop_1 = function (product) {
|
|
29128
|
-
var meta = productMetaData.find(function (pm) { return pm.targetId === product.id; });
|
|
29129
|
-
if (meta) {
|
|
29130
|
-
for (var _i = 0, _a = product.variants; _i < _a.length; _i++) {
|
|
29131
|
-
var variant = _a[_i];
|
|
29132
|
-
if (product.hasVariant) {
|
|
29133
|
-
var variantSlug = variant.variantValues
|
|
29134
|
-
.map(function (vv) { return vv.slug; })
|
|
29135
|
-
.join("-");
|
|
29136
|
-
productParams.push({
|
|
29137
|
-
slug: meta.slug + "-" + variantSlug,
|
|
29138
|
-
});
|
|
29139
|
-
}
|
|
29140
|
-
else {
|
|
29141
|
-
productParams.push({
|
|
29142
|
-
slug: meta.slug,
|
|
29143
|
-
});
|
|
29144
|
-
}
|
|
29145
|
-
}
|
|
29146
|
-
}
|
|
29147
|
-
};
|
|
29148
|
-
for (_i = 0, _a = (productsResponse === null || productsResponse === void 0 ? void 0 : productsResponse.data) || []; _i < _a.length; _i++) {
|
|
29149
|
-
product = _a[_i];
|
|
29150
|
-
_loop_1(product);
|
|
29151
|
-
}
|
|
29145
|
+
return [4 /*yield*/, IkasHTMLMetaDataAPI.listHTMLMetaData(undefined, undefined, targetTypes)];
|
|
29146
|
+
case 1:
|
|
29147
|
+
metaData = _a.sent();
|
|
29152
29148
|
return [2 /*return*/, {
|
|
29153
|
-
paths:
|
|
29154
|
-
.map(function (m) { return ({
|
|
29149
|
+
paths: metaData.map(function (m) { return ({
|
|
29155
29150
|
params: {
|
|
29156
29151
|
slug: m.slug,
|
|
29157
29152
|
originalSlug: m.slug,
|
|
29158
29153
|
},
|
|
29159
|
-
}); })
|
|
29160
|
-
.concat(productParams.map(function (pp) { return ({
|
|
29161
|
-
params: pp,
|
|
29162
|
-
}); })),
|
|
29154
|
+
}); }),
|
|
29163
29155
|
fallback: "blocking",
|
|
29164
29156
|
}];
|
|
29165
29157
|
}
|
package/build/index.js
CHANGED
|
@@ -11911,6 +11911,9 @@ var ThemeComponent = mobxReactLite.observer(function (_a) {
|
|
|
11911
11911
|
});
|
|
11912
11912
|
});
|
|
11913
11913
|
var Component = components[pageComponent.componentId];
|
|
11914
|
+
if (!Component) {
|
|
11915
|
+
console.error("COMPONENT NOT FOUND!", pageComponent.id, pageComponent.componentId, components ? Object.keys(components) : []);
|
|
11916
|
+
}
|
|
11914
11917
|
return (React.createElement("div", { id: index + "" }, hasNullValue.get() ? null : (React.createElement(Component, __assign({ key: pageComponent.id }, propValues, { settings: settings, store: store })))));
|
|
11915
11918
|
});
|
|
11916
11919
|
|
|
@@ -12996,7 +12999,10 @@ var IkasCheckoutSettings = /** @class */ (function () {
|
|
|
12996
12999
|
this.isTermsAndConditionsDefaultChecked =
|
|
12997
13000
|
data.isTermsAndConditionsDefaultChecked || false;
|
|
12998
13001
|
this.showTermsAndConditionsCheckbox =
|
|
12999
|
-
data.showTermsAndConditionsCheckbox
|
|
13002
|
+
data.showTermsAndConditionsCheckbox !== undefined
|
|
13003
|
+
? data.showTermsAndConditionsCheckbox
|
|
13004
|
+
: true;
|
|
13005
|
+
this.showCheckoutNote = data.showCheckoutNote || false;
|
|
13000
13006
|
this.storefrontId = data.storefrontId || "";
|
|
13001
13007
|
}
|
|
13002
13008
|
return IkasCheckoutSettings;
|
|
@@ -13335,6 +13341,7 @@ var IkasCheckout = /** @class */ (function () {
|
|
|
13335
13341
|
this.recoveryStatus = null;
|
|
13336
13342
|
this.totalFinalPrice = null;
|
|
13337
13343
|
this.adjustments = null;
|
|
13344
|
+
this.note = null;
|
|
13338
13345
|
this.id = data.id;
|
|
13339
13346
|
this.createdAt = data.createdAt;
|
|
13340
13347
|
this.updatedAt = data.updatedAt;
|
|
@@ -13361,6 +13368,7 @@ var IkasCheckout = /** @class */ (function () {
|
|
|
13361
13368
|
this.recoveryStatus = data.recoveryStatus;
|
|
13362
13369
|
this.totalFinalPrice = data.totalFinalPrice;
|
|
13363
13370
|
this.adjustments = data.adjustments;
|
|
13371
|
+
this.note = data.note || null;
|
|
13364
13372
|
mobx.makeAutoObservable(this);
|
|
13365
13373
|
}
|
|
13366
13374
|
Object.defineProperty(IkasCheckout.prototype, "shippingTotal", {
|
|
@@ -18396,6 +18404,9 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
18396
18404
|
this.onTermsAndConditionsCheckedChange = function (value) {
|
|
18397
18405
|
_this.isTermsAndConditionsChecked = value;
|
|
18398
18406
|
};
|
|
18407
|
+
this.onCheckoutNoteChange = function (value) {
|
|
18408
|
+
_this.checkout.note = value;
|
|
18409
|
+
};
|
|
18399
18410
|
// CREDIT CARD START
|
|
18400
18411
|
this.onCardNumberChange = function (value) {
|
|
18401
18412
|
if (!_this.cardData)
|
|
@@ -25144,7 +25155,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
25144
25155
|
return __generator(this, function (_b) {
|
|
25145
25156
|
switch (_b.label) {
|
|
25146
25157
|
case 0:
|
|
25147
|
-
QUERY = src(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n }\n }\n }\n "], ["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n }\n }\n }\n "])));
|
|
25158
|
+
QUERY = src(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n note\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n }\n }\n }\n "], ["\n query getCheckoutById($id: String!) {\n getCheckoutById(id: $id) {\n totalFinalPrice\n note\n availableShippingMethods {\n price\n rateName\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n }\n billingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n code\n id\n name\n }\n district {\n code\n id\n name\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n code\n id\n name\n }\n taxNumber\n taxOffice\n }\n cartId\n couponCode\n createdAt\n customer {\n email\n firstName\n id\n lastName\n }\n deleted\n id\n merchantId\n orderId\n orderNumber\n recoverEmailStatus\n recoveryStatus\n shippingAddress {\n addressLine1\n addressLine2\n city {\n code\n id\n name\n }\n company\n country {\n id\n code\n name\n }\n district {\n name\n id\n code\n }\n firstName\n identityNumber\n isDefault\n lastName\n phone\n postalCode\n state {\n name\n id\n code\n }\n taxNumber\n taxOffice\n }\n shippingLines {\n title\n taxValue\n price\n shippingSettingsId\n shippingZoneRateId\n }\n shippingMethod\n shippingSettingsId\n shippingZoneRateId\n status\n updatedAt\n cart {\n createdAt\n currencyCode\n customerId\n dueDate\n id\n itemCount\n items {\n createdAt\n currencyCode\n discount {\n amount\n amountType\n reason\n }\n discountPrice\n finalPrice\n id\n originalOrderLineItemId\n price\n quantity\n status\n deleted\n statusUpdatedAt\n stockLocationId\n taxValue\n updatedAt\n variant {\n barcodeList\n id\n mainImageId\n name\n productId\n sku\n variantValues {\n order\n variantTypeId\n variantTypeName\n variantValueId\n variantValueName\n }\n }\n }\n merchantId\n status\n totalPrice\n updatedAt\n }\n adjustments {\n amount\n amountType\n name\n order\n type\n }\n }\n }\n "])));
|
|
25148
25159
|
_b.label = 1;
|
|
25149
25160
|
case 1:
|
|
25150
25161
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -25243,6 +25254,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
25243
25254
|
lastName: (_d = checkout.customer) === null || _d === void 0 ? void 0 : _d.lastName,
|
|
25244
25255
|
}
|
|
25245
25256
|
: null,
|
|
25257
|
+
note: checkout.note,
|
|
25246
25258
|
},
|
|
25247
25259
|
},
|
|
25248
25260
|
})];
|
|
@@ -25421,7 +25433,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
|
|
|
25421
25433
|
return __generator(this, function (_b) {
|
|
25422
25434
|
switch (_b.label) {
|
|
25423
25435
|
case 0:
|
|
25424
|
-
QUERY = src(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n }\n }\n "], ["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n }\n }\n "])));
|
|
25436
|
+
QUERY = src(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n }\n }\n "], ["\n query listCheckoutSettings($storefrontId: StringFilterInput!) {\n listCheckoutSettings(storefrontId: $storefrontId) {\n createdAt\n id\n identityNumberRequirement\n isAccountRequired\n isTermsAndConditionsDefaultChecked\n options {\n name\n required\n }\n phoneRequirement\n showCheckoutNote\n showTermsAndConditionsCheckbox\n storefrontId\n updatedAt\n }\n }\n "])));
|
|
25425
25437
|
_b.label = 1;
|
|
25426
25438
|
case 1:
|
|
25427
25439
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -26067,13 +26079,13 @@ var templateObject_1$7;
|
|
|
26067
26079
|
var IkasHTMLMetaDataAPI = /** @class */ (function () {
|
|
26068
26080
|
function IkasHTMLMetaDataAPI() {
|
|
26069
26081
|
}
|
|
26070
|
-
IkasHTMLMetaDataAPI.listHTMLMetaData = function (slug, targetId) {
|
|
26082
|
+
IkasHTMLMetaDataAPI.listHTMLMetaData = function (slug, targetId, targetType) {
|
|
26071
26083
|
return __awaiter(this, void 0, void 0, function () {
|
|
26072
26084
|
var LIST_QUERY, _a, data, errors, err_1;
|
|
26073
26085
|
return __generator(this, function (_b) {
|
|
26074
26086
|
switch (_b.label) {
|
|
26075
26087
|
case 0:
|
|
26076
|
-
LIST_QUERY = src(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n ) {\n listHTMLMetaData(slug: $slug
|
|
26088
|
+
LIST_QUERY = src(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n "], ["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n }\n }\n "])));
|
|
26077
26089
|
_b.label = 1;
|
|
26078
26090
|
case 1:
|
|
26079
26091
|
_b.trys.push([1, 3, , 4]);
|
|
@@ -26092,6 +26104,11 @@ var IkasHTMLMetaDataAPI = /** @class */ (function () {
|
|
|
26092
26104
|
eq: targetId,
|
|
26093
26105
|
}
|
|
26094
26106
|
: undefined,
|
|
26107
|
+
targetType: targetType
|
|
26108
|
+
? {
|
|
26109
|
+
in: targetType,
|
|
26110
|
+
}
|
|
26111
|
+
: undefined,
|
|
26095
26112
|
},
|
|
26096
26113
|
})];
|
|
26097
26114
|
case 2:
|
|
@@ -26676,7 +26693,7 @@ function styleInject(css, ref) {
|
|
|
26676
26693
|
}
|
|
26677
26694
|
}
|
|
26678
26695
|
|
|
26679
|
-
var css_248z = ".style-module_FormSectionTitle__2LxF2 {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 1.5em; }\n .style-module_FormSectionTitle__2LxF2 .style-module_Title__2PxW0 {\n flex: 1 1 auto;\n padding-bottom: 0.7em;\n color: #333333;\n font-size: 1.15em;\n line-height: 1.15em; }\n .style-module_FormSectionTitle__2LxF2 .style-module_Title__2PxW0.style-module_WithSubTitle__36X7i {\n line-height: auto;\n padding-bottom: 0; }\n\n.style-module_SubTitle__2UOsH {\n color: #737373;\n font-size: 0.8em;\n padding-bottom: 0.7em;\n padding-top: 0.3em; }\n\n.style-module_Grid__1eODF {\n display: grid;\n grid-gap: 0.7em; }\n .style-module_Grid__1eODF.style-module_Grid2__1HTRV {\n grid-template-columns: repeat(2, 1fr); }\n .style-module_Grid__1eODF.style-module_Grid3__uN7io {\n grid-template-columns: repeat(3, 1fr); }\n @media only screen and (max-width: 768px) {\n .style-module_Grid__1eODF {\n grid-template-columns: 1fr !important; } }\n\n.style-module_FormContainer__2IVCZ {\n padding: 0 0.7em; }\n\n.style-module_mtFormRow__2YwG- {\n margin-top: 0.7em; }\n\n.style-module_mt1__1OQuA {\n margin-top: 1em; }\n\n.style-module_mt2__Yumkn {\n margin-top: 2em; }\n\n@keyframes style-module_fadeInFromRight__L_PAx {\n from {\n opacity: 0;\n transform: translateY(10px); }\n to {\n opacity: 1;\n transform: translateY(0); } }\n\n.style-module_FormItem__1o0fc {\n width: 100%; }\n .style-module_FormItemWrapper__2NOxU {\n width: 100%; }\n .style-module_FormItemInputWrapper__2eOdJ {\n position: relative;\n width: 100%; }\n .style-module_FormItemInputWrapper__2eOdJ label.style-module_FieldLabel__2Tx0b {\n color: #737373;\n position: absolute;\n top: 0;\n left: 0.7em;\n width: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: transform .1s;\n transform: translateY(70%);\n font-size: 0.85em; }\n .style-module_FormItemInputWrapper__2eOdJ label.style-module_FieldLabelTop__1nOBq {\n transform: translateY(6px);\n font-size: 0.7em; }\n .style-module_FormItemInputWrapper__2eOdJ input,\n .style-module_FormItemInputWrapper__2eOdJ select {\n border: 1px solid #d9d9d9;\n background-color: white;\n color: #333333;\n background-clip: padding-box;\n border-radius: 6px;\n display: block;\n width: 100%;\n height: 3em;\n padding: 0.5em;\n outline: none;\n transition: padding .1s, border-color .5s, box-shadow .5s;\n box-shadow: 0 0 0 1px transparent;\n -moz-appearance: none;\n -webkit-appearance: none; }\n .style-module_FormItemInputWrapper__2eOdJ input:focus,\n .style-module_FormItemInputWrapper__2eOdJ select:focus {\n box-shadow: 0 0 0 1px #111111;\n border-color: #111111; }\n .style-module_FormItemInputWrapper__2eOdJ input.style-module_Bottom__3s4pZ,\n .style-module_FormItemInputWrapper__2eOdJ select.style-module_Bottom__3s4pZ {\n padding-top: 1.2em;\n padding-bottom: 0.2em; }\n .style-module_FormItemInputWrapper__2eOdJ input.style-module_Error__nif12,\n .style-module_FormItemInputWrapper__2eOdJ select.style-module_Error__nif12 {\n box-shadow: 0 0 0 1px #ff6d6d;\n border-color: #ff6d6d; }\n .style-module_FormItemInputWrapper__2eOdJ input::-ms-expand,\n .style-module_FormItemInputWrapper__2eOdJ select::-ms-expand {\n display: none; }\n .style-module_FormItemInputWrapper__2eOdJ .style-module_ArrowContainer__27ejm {\n position: absolute;\n right: 1px;\n padding-right: 0.5em;\n top: 1px;\n height: calc(100% - 2px);\n display: flex;\n align-items: center;\n color: #737373;\n background-color: white;\n z-index: 2;\n border-radius: 6px; }\n .style-module_FormItem__1o0fc .style-module_ErrorMsg__3How6 {\n color: #ff6d6d;\n font-size: 0.8em;\n margin: 0.5em 0.25em;\n animation-name: style-module_fadeInFromRight__L_PAx;\n animation-duration: .3s; }\n";
|
|
26696
|
+
var css_248z = ".style-module_FormSectionTitle__2LxF2 {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 1.5em; }\n .style-module_FormSectionTitle__2LxF2 .style-module_Title__2PxW0 {\n flex: 1 1 auto;\n padding-bottom: 0.7em;\n color: #333333;\n font-size: 1.15em;\n line-height: 1.15em; }\n .style-module_FormSectionTitle__2LxF2 .style-module_Title__2PxW0.style-module_WithSubTitle__36X7i {\n line-height: auto;\n padding-bottom: 0; }\n\n.style-module_SubTitle__2UOsH {\n color: #737373;\n font-size: 0.8em;\n padding-bottom: 0.7em;\n padding-top: 0.3em; }\n\n.style-module_Grid__1eODF {\n display: grid;\n grid-gap: 0.7em; }\n .style-module_Grid__1eODF.style-module_Grid2__1HTRV {\n grid-template-columns: repeat(2, 1fr); }\n .style-module_Grid__1eODF.style-module_Grid3__uN7io {\n grid-template-columns: repeat(3, 1fr); }\n @media only screen and (max-width: 768px) {\n .style-module_Grid__1eODF {\n grid-template-columns: 1fr !important; } }\n\n.style-module_FormContainer__2IVCZ {\n padding: 0 0.7em; }\n\n.style-module_mtFormRow__2YwG- {\n margin-top: 0.7em; }\n\n.style-module_mt1__1OQuA {\n margin-top: 1em; }\n\n.style-module_mt2__Yumkn {\n margin-top: 2em; }\n\n@keyframes style-module_fadeInFromRight__L_PAx {\n from {\n opacity: 0;\n transform: translateY(10px); }\n to {\n opacity: 1;\n transform: translateY(0); } }\n\n.style-module_FormItem__1o0fc {\n width: 100%; }\n .style-module_FormItemWrapper__2NOxU {\n width: 100%; }\n .style-module_FormItemInputWrapper__2eOdJ {\n position: relative;\n width: 100%; }\n .style-module_FormItemInputWrapper__2eOdJ label.style-module_FieldLabel__2Tx0b {\n color: #737373;\n position: absolute;\n top: 0;\n left: 0.7em;\n width: 100%;\n z-index: 1;\n user-select: none;\n pointer-events: none;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: transform .1s;\n transform: translateY(70%);\n font-size: 0.85em; }\n .style-module_FormItemInputWrapper__2eOdJ label.style-module_FieldLabelTop__1nOBq {\n transform: translateY(6px);\n font-size: 0.7em; }\n .style-module_FormItemInputWrapper__2eOdJ input,\n .style-module_FormItemInputWrapper__2eOdJ select,\n .style-module_FormItemInputWrapper__2eOdJ textarea {\n border: 1px solid #d9d9d9;\n background-color: white;\n color: #333333;\n background-clip: padding-box;\n border-radius: 6px;\n display: block;\n width: 100%;\n height: 3em;\n padding: 0.5em;\n outline: none;\n transition: padding .1s, border-color .5s, box-shadow .5s;\n box-shadow: 0 0 0 1px transparent;\n -moz-appearance: none;\n -webkit-appearance: none; }\n .style-module_FormItemInputWrapper__2eOdJ input:focus,\n .style-module_FormItemInputWrapper__2eOdJ select:focus,\n .style-module_FormItemInputWrapper__2eOdJ textarea:focus {\n box-shadow: 0 0 0 1px #111111;\n border-color: #111111; }\n .style-module_FormItemInputWrapper__2eOdJ input.style-module_Bottom__3s4pZ,\n .style-module_FormItemInputWrapper__2eOdJ select.style-module_Bottom__3s4pZ,\n .style-module_FormItemInputWrapper__2eOdJ textarea.style-module_Bottom__3s4pZ {\n padding-top: 1.2em;\n padding-bottom: 0.2em; }\n .style-module_FormItemInputWrapper__2eOdJ input.style-module_Error__nif12,\n .style-module_FormItemInputWrapper__2eOdJ select.style-module_Error__nif12,\n .style-module_FormItemInputWrapper__2eOdJ textarea.style-module_Error__nif12 {\n box-shadow: 0 0 0 1px #ff6d6d;\n border-color: #ff6d6d; }\n .style-module_FormItemInputWrapper__2eOdJ input::-ms-expand,\n .style-module_FormItemInputWrapper__2eOdJ select::-ms-expand,\n .style-module_FormItemInputWrapper__2eOdJ textarea::-ms-expand {\n display: none; }\n .style-module_FormItemInputWrapper__2eOdJ textarea {\n min-height: 120px; }\n .style-module_FormItemInputWrapper__2eOdJ .style-module_ArrowContainer__27ejm {\n position: absolute;\n right: 1px;\n padding-right: 0.5em;\n top: 1px;\n height: calc(100% - 2px);\n display: flex;\n align-items: center;\n color: #737373;\n background-color: white;\n z-index: 2;\n border-radius: 6px; }\n .style-module_FormItem__1o0fc .style-module_ErrorMsg__3How6 {\n color: #ff6d6d;\n font-size: 0.8em;\n margin: 0.5em 0.25em;\n animation-name: style-module_fadeInFromRight__L_PAx;\n animation-duration: .3s; }\n";
|
|
26680
26697
|
var styles = {"FormSectionTitle":"style-module_FormSectionTitle__2LxF2","Title":"style-module_Title__2PxW0","WithSubTitle":"style-module_WithSubTitle__36X7i","SubTitle":"style-module_SubTitle__2UOsH","Grid":"style-module_Grid__1eODF","Grid2":"style-module_Grid2__1HTRV","Grid3":"style-module_Grid3__uN7io","FormContainer":"style-module_FormContainer__2IVCZ","mtFormRow":"style-module_mtFormRow__2YwG-","mt1":"style-module_mt1__1OQuA","mt2":"style-module_mt2__Yumkn","FormItem":"style-module_FormItem__1o0fc","FormItemWrapper":"style-module_FormItemWrapper__2NOxU","FormItemInputWrapper":"style-module_FormItemInputWrapper__2eOdJ","FieldLabel":"style-module_FieldLabel__2Tx0b","FieldLabelTop":"style-module_FieldLabelTop__1nOBq","Bottom":"style-module_Bottom__3s4pZ","Error":"style-module_Error__nif12","ArrowContainer":"style-module_ArrowContainer__27ejm","ErrorMsg":"style-module_ErrorMsg__3How6","fadeInFromRight":"style-module_fadeInFromRight__L_PAx"};
|
|
26681
26698
|
styleInject(css_248z);
|
|
26682
26699
|
|
|
@@ -26686,6 +26703,9 @@ var FormItemViewModel = /** @class */ (function () {
|
|
|
26686
26703
|
this.onValueChange = function (e) {
|
|
26687
26704
|
_this.onChange(e.target.value);
|
|
26688
26705
|
};
|
|
26706
|
+
this.onTextAreaValueChange = function (e) {
|
|
26707
|
+
_this.onChange(e.target.value);
|
|
26708
|
+
};
|
|
26689
26709
|
this.onSelectChange = function (e) {
|
|
26690
26710
|
_this.onChange(e.target.value);
|
|
26691
26711
|
};
|
|
@@ -26737,8 +26757,9 @@ var FormItemViewModel = /** @class */ (function () {
|
|
|
26737
26757
|
var FormItemType;
|
|
26738
26758
|
(function (FormItemType) {
|
|
26739
26759
|
FormItemType[FormItemType["TEXT"] = 0] = "TEXT";
|
|
26740
|
-
FormItemType[FormItemType["
|
|
26741
|
-
FormItemType[FormItemType["
|
|
26760
|
+
FormItemType[FormItemType["TEXT_AREA"] = 1] = "TEXT_AREA";
|
|
26761
|
+
FormItemType[FormItemType["SELECT"] = 2] = "SELECT";
|
|
26762
|
+
FormItemType[FormItemType["TEL"] = 3] = "TEL";
|
|
26742
26763
|
})(FormItemType || (FormItemType = {}));
|
|
26743
26764
|
|
|
26744
26765
|
var SVGCaretDown = function (_a) {
|
|
@@ -26791,6 +26812,7 @@ var FormItem = mobxReactLite.observer(function (props) {
|
|
|
26791
26812
|
React.createElement("label", { className: vm.labelStyle }, vm.label),
|
|
26792
26813
|
vm.type === FormItemType.TEXT && (React.createElement(Input, { vm: vm, autocomplete: props.autocomplete })),
|
|
26793
26814
|
vm.type === FormItemType.TEL && (React.createElement(Input, { vm: vm, type: "tel", autocomplete: props.autocomplete })),
|
|
26815
|
+
vm.type === FormItemType.TEXT_AREA && React.createElement(TextArea, { vm: vm }),
|
|
26794
26816
|
vm.type === FormItemType.SELECT && (React.createElement(Select, { vm: vm, autocomplete: props.autocomplete }))),
|
|
26795
26817
|
!!vm.hasError && (React.createElement("div", { className: styles.ErrorMsg }, vm.errorText || "")))));
|
|
26796
26818
|
});
|
|
@@ -26798,6 +26820,10 @@ var Input = mobxReactLite.observer(function (_a) {
|
|
|
26798
26820
|
var vm = _a.vm, autocomplete = _a.autocomplete, type = _a.type;
|
|
26799
26821
|
return (React.createElement("input", { type: type || "text", autoComplete: autocomplete, className: vm.inputStyle, value: vm.value, onChange: vm.onValueChange }));
|
|
26800
26822
|
});
|
|
26823
|
+
var TextArea = mobxReactLite.observer(function (_a) {
|
|
26824
|
+
var vm = _a.vm;
|
|
26825
|
+
return (React.createElement("textarea", { value: vm.value, onChange: vm.onTextAreaValueChange }));
|
|
26826
|
+
});
|
|
26801
26827
|
var Select = mobxReactLite.observer(function (_a) {
|
|
26802
26828
|
var _b;
|
|
26803
26829
|
var vm = _a.vm, autocomplete = _a.autocomplete;
|
|
@@ -27542,11 +27568,15 @@ var CheckoutStepPayment = mobxReactLite.observer(function (_a) {
|
|
|
27542
27568
|
React.createElement(InfoBox, { vm: vm, showShipping: true }),
|
|
27543
27569
|
React.createElement(PaymentGateways, { vm: vm }),
|
|
27544
27570
|
React.createElement(BillingAddress, { vm: vm }),
|
|
27545
|
-
React.createElement(
|
|
27571
|
+
vm.checkoutSettings.showCheckoutNote && (React.createElement(React.Fragment, null,
|
|
27572
|
+
React.createElement("div", { className: commonStyles.FormSectionTitle },
|
|
27573
|
+
React.createElement("div", { className: [commonStyles.Title].join(" ") }, "Sipari\u015F Notu")),
|
|
27574
|
+
React.createElement(FormItem, { type: FormItemType.TEXT_AREA, label: "", value: vm.checkout.note || "", onChange: vm.onCheckoutNoteChange }))),
|
|
27575
|
+
vm.checkoutSettings.showTermsAndConditionsCheckbox && (React.createElement("div", { style: { marginTop: "12px" } },
|
|
27546
27576
|
React.createElement(Checkbox, { value: vm.isTermsAndConditionsChecked, label: React.createElement(React.Fragment, null,
|
|
27547
27577
|
React.createElement("span", { className: styles$d.TermsLabelSpan, onClick: onShowTermsClick }, "Mesafeli sat\u0131\u015F s\u00F6zle\u015Fmesini"),
|
|
27548
27578
|
" ",
|
|
27549
|
-
"okudum ve onayl\u0131yorum"), onChange: vm.onTermsAndConditionsCheckedChange })),
|
|
27579
|
+
"okudum ve onayl\u0131yorum"), onChange: vm.onTermsAndConditionsCheckedChange }))),
|
|
27550
27580
|
React.createElement(StepActionButtons, { mainBtnText: "Şimdi öde", mainBtnOnClick: vm.performPayment, backBtnText: "Kargoya Geri Dön", backBtnOnClick: vm.onBackToShippingClick, isLoading: vm.isStepLoading })));
|
|
27551
27581
|
});
|
|
27552
27582
|
|
|
@@ -29084,62 +29114,24 @@ var Page$1 = function (_a) {
|
|
|
29084
29114
|
};
|
|
29085
29115
|
var index$1 = mobxReactLite.observer(Page$1);
|
|
29086
29116
|
var getStaticPaths = function (context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29087
|
-
var
|
|
29088
|
-
return __generator(this, function (
|
|
29089
|
-
switch (
|
|
29090
|
-
case 0:
|
|
29091
|
-
case 1:
|
|
29092
|
-
metaData = _b.sent();
|
|
29117
|
+
var targetTypes, metaData;
|
|
29118
|
+
return __generator(this, function (_a) {
|
|
29119
|
+
switch (_a.label) {
|
|
29120
|
+
case 0:
|
|
29093
29121
|
targetTypes = [
|
|
29094
29122
|
exports.IkasHTMLMetaDataTargetType.BRAND,
|
|
29095
29123
|
exports.IkasHTMLMetaDataTargetType.CATEGORY,
|
|
29096
29124
|
];
|
|
29097
|
-
|
|
29098
|
-
|
|
29099
|
-
|
|
29100
|
-
productIdList: productMetaData.map(function (p) { return p.targetId; }),
|
|
29101
|
-
priceListId: IkasStorefrontConfig.priceListId,
|
|
29102
|
-
salesChannelId: IkasStorefrontConfig.salesChannelId,
|
|
29103
|
-
})];
|
|
29104
|
-
case 2:
|
|
29105
|
-
productsResponse = _b.sent();
|
|
29106
|
-
productParams = [];
|
|
29107
|
-
_loop_1 = function (product) {
|
|
29108
|
-
var meta = productMetaData.find(function (pm) { return pm.targetId === product.id; });
|
|
29109
|
-
if (meta) {
|
|
29110
|
-
for (var _i = 0, _a = product.variants; _i < _a.length; _i++) {
|
|
29111
|
-
var variant = _a[_i];
|
|
29112
|
-
if (product.hasVariant) {
|
|
29113
|
-
var variantSlug = variant.variantValues
|
|
29114
|
-
.map(function (vv) { return vv.slug; })
|
|
29115
|
-
.join("-");
|
|
29116
|
-
productParams.push({
|
|
29117
|
-
slug: meta.slug + "-" + variantSlug,
|
|
29118
|
-
});
|
|
29119
|
-
}
|
|
29120
|
-
else {
|
|
29121
|
-
productParams.push({
|
|
29122
|
-
slug: meta.slug,
|
|
29123
|
-
});
|
|
29124
|
-
}
|
|
29125
|
-
}
|
|
29126
|
-
}
|
|
29127
|
-
};
|
|
29128
|
-
for (_i = 0, _a = (productsResponse === null || productsResponse === void 0 ? void 0 : productsResponse.data) || []; _i < _a.length; _i++) {
|
|
29129
|
-
product = _a[_i];
|
|
29130
|
-
_loop_1(product);
|
|
29131
|
-
}
|
|
29125
|
+
return [4 /*yield*/, IkasHTMLMetaDataAPI.listHTMLMetaData(undefined, undefined, targetTypes)];
|
|
29126
|
+
case 1:
|
|
29127
|
+
metaData = _a.sent();
|
|
29132
29128
|
return [2 /*return*/, {
|
|
29133
|
-
paths:
|
|
29134
|
-
.map(function (m) { return ({
|
|
29129
|
+
paths: metaData.map(function (m) { return ({
|
|
29135
29130
|
params: {
|
|
29136
29131
|
slug: m.slug,
|
|
29137
29132
|
originalSlug: m.slug,
|
|
29138
29133
|
},
|
|
29139
|
-
}); })
|
|
29140
|
-
.concat(productParams.map(function (pp) { return ({
|
|
29141
|
-
params: pp,
|
|
29142
|
-
}); })),
|
|
29134
|
+
}); }),
|
|
29143
29135
|
fallback: "blocking",
|
|
29144
29136
|
}];
|
|
29145
29137
|
}
|
|
@@ -25,6 +25,7 @@ export declare class IkasCheckout {
|
|
|
25
25
|
recoveryStatus?: IkasCheckoutRecoveryStatus | null;
|
|
26
26
|
totalFinalPrice?: number | null;
|
|
27
27
|
adjustments?: IkasOrderAdjustment[] | null;
|
|
28
|
+
note: string | null;
|
|
28
29
|
constructor(data?: Partial<IkasCheckout>);
|
|
29
30
|
get shippingTotal(): number;
|
|
30
31
|
get hasCustomer(): boolean;
|
|
@@ -7,6 +7,7 @@ export declare class IkasCheckoutSettings {
|
|
|
7
7
|
isAccountRequired: boolean;
|
|
8
8
|
isTermsAndConditionsDefaultChecked: boolean;
|
|
9
9
|
showTermsAndConditionsCheckbox: boolean;
|
|
10
|
+
showCheckoutNote: boolean;
|
|
10
11
|
storefrontId: string;
|
|
11
12
|
constructor(data?: Partial<IkasCheckoutSettings>);
|
|
12
13
|
}
|