@ikas/storefront 0.0.125 → 0.0.127

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.
@@ -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;
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  declare type Props = {
3
3
  value: boolean;
4
4
  label?: string | React.ReactElement;
5
+ hasError?: boolean;
5
6
  onChange: (value: boolean) => void;
6
7
  };
7
8
  export declare const Checkbox: React.FC<Props>;
@@ -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
- SELECT = 1,
29
- TEL = 2
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
@@ -12985,7 +12985,10 @@ var IkasCheckoutSettings = /** @class */ (function () {
12985
12985
  this.isTermsAndConditionsDefaultChecked =
12986
12986
  data.isTermsAndConditionsDefaultChecked || false;
12987
12987
  this.showTermsAndConditionsCheckbox =
12988
- data.showTermsAndConditionsCheckbox || false;
12988
+ data.showTermsAndConditionsCheckbox !== undefined
12989
+ ? data.showTermsAndConditionsCheckbox
12990
+ : true;
12991
+ this.showCheckoutNote = data.showCheckoutNote || false;
12989
12992
  this.storefrontId = data.storefrontId || "";
12990
12993
  }
12991
12994
  return IkasCheckoutSettings;
@@ -13324,6 +13327,7 @@ var IkasCheckout = /** @class */ (function () {
13324
13327
  this.recoveryStatus = null;
13325
13328
  this.totalFinalPrice = null;
13326
13329
  this.adjustments = null;
13330
+ this.note = null;
13327
13331
  this.id = data.id;
13328
13332
  this.createdAt = data.createdAt;
13329
13333
  this.updatedAt = data.updatedAt;
@@ -13350,6 +13354,7 @@ var IkasCheckout = /** @class */ (function () {
13350
13354
  this.recoveryStatus = data.recoveryStatus;
13351
13355
  this.totalFinalPrice = data.totalFinalPrice;
13352
13356
  this.adjustments = data.adjustments;
13357
+ this.note = data.note || null;
13353
13358
  makeAutoObservable(this);
13354
13359
  }
13355
13360
  Object.defineProperty(IkasCheckout.prototype, "shippingTotal", {
@@ -18393,6 +18398,9 @@ var CheckoutViewModel = /** @class */ (function () {
18393
18398
  this.onTermsAndConditionsCheckedChange = function (value) {
18394
18399
  _this.isTermsAndConditionsChecked = value;
18395
18400
  };
18401
+ this.onCheckoutNoteChange = function (value) {
18402
+ _this.checkout.note = value;
18403
+ };
18396
18404
  // CREDIT CARD START
18397
18405
  this.onCardNumberChange = function (value) {
18398
18406
  if (!_this.cardData)
@@ -25167,7 +25175,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
25167
25175
  return __generator(this, function (_b) {
25168
25176
  switch (_b.label) {
25169
25177
  case 0:
25170
- 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 "])));
25171
25179
  _b.label = 1;
25172
25180
  case 1:
25173
25181
  _b.trys.push([1, 3, , 4]);
@@ -25266,6 +25274,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
25266
25274
  lastName: (_d = checkout.customer) === null || _d === void 0 ? void 0 : _d.lastName,
25267
25275
  }
25268
25276
  : null,
25277
+ note: checkout.note,
25269
25278
  },
25270
25279
  },
25271
25280
  })];
@@ -25444,7 +25453,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
25444
25453
  return __generator(this, function (_b) {
25445
25454
  switch (_b.label) {
25446
25455
  case 0:
25447
- 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 "])));
25448
25457
  _b.label = 1;
25449
25458
  case 1:
25450
25459
  _b.trys.push([1, 3, , 4]);
@@ -26704,7 +26713,7 @@ function styleInject(css, ref) {
26704
26713
  }
26705
26714
  }
26706
26715
 
26707
- 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";
26708
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"};
26709
26718
  styleInject(css_248z);
26710
26719
 
@@ -26714,6 +26723,9 @@ var FormItemViewModel = /** @class */ (function () {
26714
26723
  this.onValueChange = function (e) {
26715
26724
  _this.onChange(e.target.value);
26716
26725
  };
26726
+ this.onTextAreaValueChange = function (e) {
26727
+ _this.onChange(e.target.value);
26728
+ };
26717
26729
  this.onSelectChange = function (e) {
26718
26730
  _this.onChange(e.target.value);
26719
26731
  };
@@ -26765,8 +26777,9 @@ var FormItemViewModel = /** @class */ (function () {
26765
26777
  var FormItemType;
26766
26778
  (function (FormItemType) {
26767
26779
  FormItemType[FormItemType["TEXT"] = 0] = "TEXT";
26768
- FormItemType[FormItemType["SELECT"] = 1] = "SELECT";
26769
- FormItemType[FormItemType["TEL"] = 2] = "TEL";
26780
+ FormItemType[FormItemType["TEXT_AREA"] = 1] = "TEXT_AREA";
26781
+ FormItemType[FormItemType["SELECT"] = 2] = "SELECT";
26782
+ FormItemType[FormItemType["TEL"] = 3] = "TEL";
26770
26783
  })(FormItemType || (FormItemType = {}));
26771
26784
 
26772
26785
  var SVGCaretDown = function (_a) {
@@ -26819,6 +26832,7 @@ var FormItem = observer(function (props) {
26819
26832
  createElement("label", { className: vm.labelStyle }, vm.label),
26820
26833
  vm.type === FormItemType.TEXT && (createElement(Input, { vm: vm, autocomplete: props.autocomplete })),
26821
26834
  vm.type === FormItemType.TEL && (createElement(Input, { vm: vm, type: "tel", autocomplete: props.autocomplete })),
26835
+ vm.type === FormItemType.TEXT_AREA && createElement(TextArea, { vm: vm }),
26822
26836
  vm.type === FormItemType.SELECT && (createElement(Select, { vm: vm, autocomplete: props.autocomplete }))),
26823
26837
  !!vm.hasError && (createElement("div", { className: styles.ErrorMsg }, vm.errorText || "")))));
26824
26838
  });
@@ -26826,6 +26840,10 @@ var Input = observer(function (_a) {
26826
26840
  var vm = _a.vm, autocomplete = _a.autocomplete, type = _a.type;
26827
26841
  return (createElement("input", { type: type || "text", autoComplete: autocomplete, className: vm.inputStyle, value: vm.value, onChange: vm.onValueChange }));
26828
26842
  });
26843
+ var TextArea = observer(function (_a) {
26844
+ var vm = _a.vm;
26845
+ return (createElement("textarea", { value: vm.value, onChange: vm.onTextAreaValueChange }));
26846
+ });
26829
26847
  var Select = observer(function (_a) {
26830
26848
  var _b;
26831
26849
  var vm = _a.vm, autocomplete = _a.autocomplete;
@@ -26843,27 +26861,30 @@ var SVGCheck = function (_a) {
26843
26861
  createElement("path", { fill: "currentColor", d: "M12.6 8.1l-3.7-3.8 1-1.1 2.7 2.7 5.5-5.4 1 1z" })));
26844
26862
  };
26845
26863
 
26846
- var css_248z$1 = ".style-module_CheckboxWrapper__2tSbx {\n width: 100%;\n display: flex;\n padding: 0.5em;\n cursor: pointer;\n user-select: none; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxContainer__1zRvT {\n position: relative;\n width: 20px;\n height: 20px;\n margin-right: 0.75em; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxBorder__281X3 {\n flex: 0 0 auto;\n width: 20px;\n height: 20px;\n border-radius: 4px;\n border: 1px solid #d9d9d9;\n position: absolute;\n top: 0;\n left: 0;\n transition: border-width .2s ease-in-out; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxBorder__281X3.style-module_Checked__3-ZM4 {\n border: 10px solid #111111; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxTick__2LpQ- {\n width: 20px;\n height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n color: white;\n z-index: 2;\n transition: all 0.2s ease-in-out;\n transition-delay: .1s;\n opacity: 0;\n transform: scale(0.2); }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxTick__2LpQ-.style-module_Visible__2Ng5Q {\n opacity: 1;\n transform: scale(1.2); }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxLabel__30uMC {\n flex: 1 1 auto;\n font-weight: normal;\n font-size: 0.85em;\n color: #545454; }\n";
26847
- var styles$1 = {"CheckboxWrapper":"style-module_CheckboxWrapper__2tSbx","CheckboxContainer":"style-module_CheckboxContainer__1zRvT","CheckboxBorder":"style-module_CheckboxBorder__281X3","Checked":"style-module_Checked__3-ZM4","CheckboxTick":"style-module_CheckboxTick__2LpQ-","Visible":"style-module_Visible__2Ng5Q","CheckboxLabel":"style-module_CheckboxLabel__30uMC"};
26864
+ var css_248z$1 = ".style-module_CheckboxWrapper__2tSbx {\n width: 100%;\n display: flex;\n padding: 0.5em;\n cursor: pointer;\n user-select: none; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxContainer__1zRvT {\n position: relative;\n width: 20px;\n height: 20px;\n margin-right: 0.75em; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxBorder__281X3 {\n flex: 0 0 auto;\n width: 20px;\n height: 20px;\n border-radius: 4px;\n border: 1px solid #d9d9d9;\n position: absolute;\n top: 0;\n left: 0;\n transition: border-width .2s ease-in-out; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxBorder__281X3.style-module_Checked__3-ZM4 {\n border: 10px solid #111111; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxTick__2LpQ- {\n width: 20px;\n height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n color: white;\n z-index: 2;\n transition: all 0.2s ease-in-out;\n transition-delay: .1s;\n opacity: 0;\n transform: scale(0.2); }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxTick__2LpQ-.style-module_Visible__2Ng5Q {\n opacity: 1;\n transform: scale(1.2); }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxLabel__30uMC {\n flex: 1 1 auto;\n font-weight: normal;\n font-size: 0.85em;\n color: #545454; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxLabelError__FmdxF {\n color: #ff6d6d; }\n";
26865
+ var styles$1 = {"CheckboxWrapper":"style-module_CheckboxWrapper__2tSbx","CheckboxContainer":"style-module_CheckboxContainer__1zRvT","CheckboxBorder":"style-module_CheckboxBorder__281X3","Checked":"style-module_Checked__3-ZM4","CheckboxTick":"style-module_CheckboxTick__2LpQ-","Visible":"style-module_Visible__2Ng5Q","CheckboxLabel":"style-module_CheckboxLabel__30uMC","CheckboxLabelError":"style-module_CheckboxLabelError__FmdxF"};
26848
26866
  styleInject(css_248z$1);
26849
26867
 
26850
26868
  var Checkbox = observer(function (_a) {
26851
- var value = _a.value, label = _a.label, onChange = _a.onChange;
26869
+ var value = _a.value, label = _a.label, hasError = _a.hasError, onChange = _a.onChange;
26852
26870
  var _onChange = function () {
26853
26871
  onChange(!value);
26854
26872
  };
26855
26873
  var checkboxBorderClasses = [styles$1.CheckboxBorder];
26874
+ var labelClasses = [styles$1.CheckboxLabel];
26856
26875
  var tickClasses = [styles$1.CheckboxTick];
26857
26876
  if (value) {
26858
26877
  checkboxBorderClasses.push(styles$1.Checked);
26859
26878
  tickClasses.push(styles$1.Visible);
26860
26879
  }
26880
+ if (hasError)
26881
+ labelClasses.push(styles$1.CheckboxLabelError);
26861
26882
  return (createElement("div", { className: styles$1.CheckboxWrapper, onClick: _onChange },
26862
26883
  createElement("div", { className: styles$1.CheckboxContainer },
26863
26884
  createElement("div", { className: checkboxBorderClasses.join(" ") }),
26864
26885
  createElement("div", { className: tickClasses.join(" ") },
26865
26886
  createElement(SVGCheck, null))),
26866
- !!label && createElement("div", { className: styles$1.CheckboxLabel }, label)));
26887
+ !!label && createElement("div", { className: labelClasses.join(" ") }, label)));
26867
26888
  });
26868
26889
 
26869
26890
  var AddressFormViewModel = /** @class */ (function () {
@@ -27570,11 +27591,15 @@ var CheckoutStepPayment = observer(function (_a) {
27570
27591
  createElement(InfoBox, { vm: vm, showShipping: true }),
27571
27592
  createElement(PaymentGateways, { vm: vm }),
27572
27593
  createElement(BillingAddress, { vm: vm }),
27573
- createElement("div", { style: { marginTop: "12px" } },
27574
- createElement(Checkbox, { value: vm.isTermsAndConditionsChecked, label: createElement(Fragment, null,
27594
+ vm.checkoutSettings.showCheckoutNote && (createElement(Fragment, null,
27595
+ createElement("div", { className: commonStyles.FormSectionTitle },
27596
+ createElement("div", { className: [commonStyles.Title].join(" ") }, "Sipari\u015F Notu")),
27597
+ createElement(FormItem, { type: FormItemType.TEXT_AREA, label: "", value: vm.checkout.note || "", onChange: vm.onCheckoutNoteChange }))),
27598
+ vm.checkoutSettings.showTermsAndConditionsCheckbox && (createElement("div", { style: { marginTop: "12px" } },
27599
+ createElement(Checkbox, { value: vm.isTermsAndConditionsChecked, hasError: vm.isErrorsVisible && !vm.isTermsAndConditionsChecked, label: createElement(Fragment, null,
27575
27600
  createElement("span", { className: styles$d.TermsLabelSpan, onClick: onShowTermsClick }, "Mesafeli sat\u0131\u015F s\u00F6zle\u015Fmesini"),
27576
27601
  " ",
27577
- "okudum ve onayl\u0131yorum"), onChange: vm.onTermsAndConditionsCheckedChange })),
27602
+ "okudum ve onayl\u0131yorum"), onChange: vm.onTermsAndConditionsCheckedChange }))),
27578
27603
  createElement(StepActionButtons, { mainBtnText: "Şimdi öde", mainBtnOnClick: vm.performPayment, backBtnText: "Kargoya Geri Dön", backBtnOnClick: vm.onBackToShippingClick, isLoading: vm.isStepLoading })));
27579
27604
  });
27580
27605
 
package/build/index.js CHANGED
@@ -12999,7 +12999,10 @@ var IkasCheckoutSettings = /** @class */ (function () {
12999
12999
  this.isTermsAndConditionsDefaultChecked =
13000
13000
  data.isTermsAndConditionsDefaultChecked || false;
13001
13001
  this.showTermsAndConditionsCheckbox =
13002
- data.showTermsAndConditionsCheckbox || false;
13002
+ data.showTermsAndConditionsCheckbox !== undefined
13003
+ ? data.showTermsAndConditionsCheckbox
13004
+ : true;
13005
+ this.showCheckoutNote = data.showCheckoutNote || false;
13003
13006
  this.storefrontId = data.storefrontId || "";
13004
13007
  }
13005
13008
  return IkasCheckoutSettings;
@@ -13338,6 +13341,7 @@ var IkasCheckout = /** @class */ (function () {
13338
13341
  this.recoveryStatus = null;
13339
13342
  this.totalFinalPrice = null;
13340
13343
  this.adjustments = null;
13344
+ this.note = null;
13341
13345
  this.id = data.id;
13342
13346
  this.createdAt = data.createdAt;
13343
13347
  this.updatedAt = data.updatedAt;
@@ -13364,6 +13368,7 @@ var IkasCheckout = /** @class */ (function () {
13364
13368
  this.recoveryStatus = data.recoveryStatus;
13365
13369
  this.totalFinalPrice = data.totalFinalPrice;
13366
13370
  this.adjustments = data.adjustments;
13371
+ this.note = data.note || null;
13367
13372
  mobx.makeAutoObservable(this);
13368
13373
  }
13369
13374
  Object.defineProperty(IkasCheckout.prototype, "shippingTotal", {
@@ -18399,6 +18404,9 @@ var CheckoutViewModel = /** @class */ (function () {
18399
18404
  this.onTermsAndConditionsCheckedChange = function (value) {
18400
18405
  _this.isTermsAndConditionsChecked = value;
18401
18406
  };
18407
+ this.onCheckoutNoteChange = function (value) {
18408
+ _this.checkout.note = value;
18409
+ };
18402
18410
  // CREDIT CARD START
18403
18411
  this.onCardNumberChange = function (value) {
18404
18412
  if (!_this.cardData)
@@ -25147,7 +25155,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
25147
25155
  return __generator(this, function (_b) {
25148
25156
  switch (_b.label) {
25149
25157
  case 0:
25150
- 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 "])));
25151
25159
  _b.label = 1;
25152
25160
  case 1:
25153
25161
  _b.trys.push([1, 3, , 4]);
@@ -25246,6 +25254,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
25246
25254
  lastName: (_d = checkout.customer) === null || _d === void 0 ? void 0 : _d.lastName,
25247
25255
  }
25248
25256
  : null,
25257
+ note: checkout.note,
25249
25258
  },
25250
25259
  },
25251
25260
  })];
@@ -25424,7 +25433,7 @@ var IkasCheckoutAPI = /** @class */ (function () {
25424
25433
  return __generator(this, function (_b) {
25425
25434
  switch (_b.label) {
25426
25435
  case 0:
25427
- 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 "])));
25428
25437
  _b.label = 1;
25429
25438
  case 1:
25430
25439
  _b.trys.push([1, 3, , 4]);
@@ -26684,7 +26693,7 @@ function styleInject(css, ref) {
26684
26693
  }
26685
26694
  }
26686
26695
 
26687
- 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";
26688
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"};
26689
26698
  styleInject(css_248z);
26690
26699
 
@@ -26694,6 +26703,9 @@ var FormItemViewModel = /** @class */ (function () {
26694
26703
  this.onValueChange = function (e) {
26695
26704
  _this.onChange(e.target.value);
26696
26705
  };
26706
+ this.onTextAreaValueChange = function (e) {
26707
+ _this.onChange(e.target.value);
26708
+ };
26697
26709
  this.onSelectChange = function (e) {
26698
26710
  _this.onChange(e.target.value);
26699
26711
  };
@@ -26745,8 +26757,9 @@ var FormItemViewModel = /** @class */ (function () {
26745
26757
  var FormItemType;
26746
26758
  (function (FormItemType) {
26747
26759
  FormItemType[FormItemType["TEXT"] = 0] = "TEXT";
26748
- FormItemType[FormItemType["SELECT"] = 1] = "SELECT";
26749
- FormItemType[FormItemType["TEL"] = 2] = "TEL";
26760
+ FormItemType[FormItemType["TEXT_AREA"] = 1] = "TEXT_AREA";
26761
+ FormItemType[FormItemType["SELECT"] = 2] = "SELECT";
26762
+ FormItemType[FormItemType["TEL"] = 3] = "TEL";
26750
26763
  })(FormItemType || (FormItemType = {}));
26751
26764
 
26752
26765
  var SVGCaretDown = function (_a) {
@@ -26799,6 +26812,7 @@ var FormItem = mobxReactLite.observer(function (props) {
26799
26812
  React.createElement("label", { className: vm.labelStyle }, vm.label),
26800
26813
  vm.type === FormItemType.TEXT && (React.createElement(Input, { vm: vm, autocomplete: props.autocomplete })),
26801
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 }),
26802
26816
  vm.type === FormItemType.SELECT && (React.createElement(Select, { vm: vm, autocomplete: props.autocomplete }))),
26803
26817
  !!vm.hasError && (React.createElement("div", { className: styles.ErrorMsg }, vm.errorText || "")))));
26804
26818
  });
@@ -26806,6 +26820,10 @@ var Input = mobxReactLite.observer(function (_a) {
26806
26820
  var vm = _a.vm, autocomplete = _a.autocomplete, type = _a.type;
26807
26821
  return (React.createElement("input", { type: type || "text", autoComplete: autocomplete, className: vm.inputStyle, value: vm.value, onChange: vm.onValueChange }));
26808
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
+ });
26809
26827
  var Select = mobxReactLite.observer(function (_a) {
26810
26828
  var _b;
26811
26829
  var vm = _a.vm, autocomplete = _a.autocomplete;
@@ -26823,27 +26841,30 @@ var SVGCheck = function (_a) {
26823
26841
  React.createElement("path", { fill: "currentColor", d: "M12.6 8.1l-3.7-3.8 1-1.1 2.7 2.7 5.5-5.4 1 1z" })));
26824
26842
  };
26825
26843
 
26826
- var css_248z$1 = ".style-module_CheckboxWrapper__2tSbx {\n width: 100%;\n display: flex;\n padding: 0.5em;\n cursor: pointer;\n user-select: none; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxContainer__1zRvT {\n position: relative;\n width: 20px;\n height: 20px;\n margin-right: 0.75em; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxBorder__281X3 {\n flex: 0 0 auto;\n width: 20px;\n height: 20px;\n border-radius: 4px;\n border: 1px solid #d9d9d9;\n position: absolute;\n top: 0;\n left: 0;\n transition: border-width .2s ease-in-out; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxBorder__281X3.style-module_Checked__3-ZM4 {\n border: 10px solid #111111; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxTick__2LpQ- {\n width: 20px;\n height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n color: white;\n z-index: 2;\n transition: all 0.2s ease-in-out;\n transition-delay: .1s;\n opacity: 0;\n transform: scale(0.2); }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxTick__2LpQ-.style-module_Visible__2Ng5Q {\n opacity: 1;\n transform: scale(1.2); }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxLabel__30uMC {\n flex: 1 1 auto;\n font-weight: normal;\n font-size: 0.85em;\n color: #545454; }\n";
26827
- var styles$1 = {"CheckboxWrapper":"style-module_CheckboxWrapper__2tSbx","CheckboxContainer":"style-module_CheckboxContainer__1zRvT","CheckboxBorder":"style-module_CheckboxBorder__281X3","Checked":"style-module_Checked__3-ZM4","CheckboxTick":"style-module_CheckboxTick__2LpQ-","Visible":"style-module_Visible__2Ng5Q","CheckboxLabel":"style-module_CheckboxLabel__30uMC"};
26844
+ var css_248z$1 = ".style-module_CheckboxWrapper__2tSbx {\n width: 100%;\n display: flex;\n padding: 0.5em;\n cursor: pointer;\n user-select: none; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxContainer__1zRvT {\n position: relative;\n width: 20px;\n height: 20px;\n margin-right: 0.75em; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxBorder__281X3 {\n flex: 0 0 auto;\n width: 20px;\n height: 20px;\n border-radius: 4px;\n border: 1px solid #d9d9d9;\n position: absolute;\n top: 0;\n left: 0;\n transition: border-width .2s ease-in-out; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxBorder__281X3.style-module_Checked__3-ZM4 {\n border: 10px solid #111111; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxTick__2LpQ- {\n width: 20px;\n height: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n left: 0;\n color: white;\n z-index: 2;\n transition: all 0.2s ease-in-out;\n transition-delay: .1s;\n opacity: 0;\n transform: scale(0.2); }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxTick__2LpQ-.style-module_Visible__2Ng5Q {\n opacity: 1;\n transform: scale(1.2); }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxLabel__30uMC {\n flex: 1 1 auto;\n font-weight: normal;\n font-size: 0.85em;\n color: #545454; }\n .style-module_CheckboxWrapper__2tSbx .style-module_CheckboxLabelError__FmdxF {\n color: #ff6d6d; }\n";
26845
+ var styles$1 = {"CheckboxWrapper":"style-module_CheckboxWrapper__2tSbx","CheckboxContainer":"style-module_CheckboxContainer__1zRvT","CheckboxBorder":"style-module_CheckboxBorder__281X3","Checked":"style-module_Checked__3-ZM4","CheckboxTick":"style-module_CheckboxTick__2LpQ-","Visible":"style-module_Visible__2Ng5Q","CheckboxLabel":"style-module_CheckboxLabel__30uMC","CheckboxLabelError":"style-module_CheckboxLabelError__FmdxF"};
26828
26846
  styleInject(css_248z$1);
26829
26847
 
26830
26848
  var Checkbox = mobxReactLite.observer(function (_a) {
26831
- var value = _a.value, label = _a.label, onChange = _a.onChange;
26849
+ var value = _a.value, label = _a.label, hasError = _a.hasError, onChange = _a.onChange;
26832
26850
  var _onChange = function () {
26833
26851
  onChange(!value);
26834
26852
  };
26835
26853
  var checkboxBorderClasses = [styles$1.CheckboxBorder];
26854
+ var labelClasses = [styles$1.CheckboxLabel];
26836
26855
  var tickClasses = [styles$1.CheckboxTick];
26837
26856
  if (value) {
26838
26857
  checkboxBorderClasses.push(styles$1.Checked);
26839
26858
  tickClasses.push(styles$1.Visible);
26840
26859
  }
26860
+ if (hasError)
26861
+ labelClasses.push(styles$1.CheckboxLabelError);
26841
26862
  return (React.createElement("div", { className: styles$1.CheckboxWrapper, onClick: _onChange },
26842
26863
  React.createElement("div", { className: styles$1.CheckboxContainer },
26843
26864
  React.createElement("div", { className: checkboxBorderClasses.join(" ") }),
26844
26865
  React.createElement("div", { className: tickClasses.join(" ") },
26845
26866
  React.createElement(SVGCheck, null))),
26846
- !!label && React.createElement("div", { className: styles$1.CheckboxLabel }, label)));
26867
+ !!label && React.createElement("div", { className: labelClasses.join(" ") }, label)));
26847
26868
  });
26848
26869
 
26849
26870
  var AddressFormViewModel = /** @class */ (function () {
@@ -27550,11 +27571,15 @@ var CheckoutStepPayment = mobxReactLite.observer(function (_a) {
27550
27571
  React.createElement(InfoBox, { vm: vm, showShipping: true }),
27551
27572
  React.createElement(PaymentGateways, { vm: vm }),
27552
27573
  React.createElement(BillingAddress, { vm: vm }),
27553
- React.createElement("div", { style: { marginTop: "12px" } },
27554
- React.createElement(Checkbox, { value: vm.isTermsAndConditionsChecked, label: React.createElement(React.Fragment, null,
27574
+ vm.checkoutSettings.showCheckoutNote && (React.createElement(React.Fragment, null,
27575
+ React.createElement("div", { className: commonStyles.FormSectionTitle },
27576
+ React.createElement("div", { className: [commonStyles.Title].join(" ") }, "Sipari\u015F Notu")),
27577
+ React.createElement(FormItem, { type: FormItemType.TEXT_AREA, label: "", value: vm.checkout.note || "", onChange: vm.onCheckoutNoteChange }))),
27578
+ vm.checkoutSettings.showTermsAndConditionsCheckbox && (React.createElement("div", { style: { marginTop: "12px" } },
27579
+ React.createElement(Checkbox, { value: vm.isTermsAndConditionsChecked, hasError: vm.isErrorsVisible && !vm.isTermsAndConditionsChecked, label: React.createElement(React.Fragment, null,
27555
27580
  React.createElement("span", { className: styles$d.TermsLabelSpan, onClick: onShowTermsClick }, "Mesafeli sat\u0131\u015F s\u00F6zle\u015Fmesini"),
27556
27581
  " ",
27557
- "okudum ve onayl\u0131yorum"), onChange: vm.onTermsAndConditionsCheckedChange })),
27582
+ "okudum ve onayl\u0131yorum"), onChange: vm.onTermsAndConditionsCheckedChange }))),
27558
27583
  React.createElement(StepActionButtons, { mainBtnText: "Şimdi öde", mainBtnOnClick: vm.performPayment, backBtnText: "Kargoya Geri Dön", backBtnOnClick: vm.onBackToShippingClick, isLoading: vm.isStepLoading })));
27559
27584
  });
27560
27585
 
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.125",
3
+ "version": "0.0.127",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",