var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/plus/saleDetail/mockOrderState.ts
var mockOrderState_exports = {};
__export(mockOrderState_exports, {
  mockSaleDetailContext: () => mockSaleDetailContext
});
module.exports = __toCommonJS(mockOrderState_exports);
var customer = {
  selected: {
    id: 16442,
    country_calling_code: "86",
    phone: "15558370515",
    display_name: "0515 XUAN",
    first_name: "0515",
    last_name: "XUAN",
    nickname: "",
    email: "",
    created_at: "2026-05-15 17:04:29",
    updated_at: "2026-05-16 11:47:27"
  },
  list: [],
  pagination: {
    page: 1,
    pageSize: 20,
    total: 0,
    totalPages: 0
  },
  hasMore: false,
  loading: false,
  loadingMore: false,
  searchParams: {}
};
var _saleEntities = {
  tempOrder: {
    order_id: "98254",
    external_sale_number: "LOCAL_9_5df7ac19_20260515183159681_362928",
    order_number: "10250000917788386958264",
    shop_order_number: "57899",
    type: "appointment_booking",
    business_code: "appointment_booking",
    platform: "pos",
    sales_channel: "my_pisel",
    order_sales_channel: "pos",
    status: "open",
    payment_status: "payment_processing",
    shipping_status: "unfulfilled",
    customer_id: "16442",
    customer_name: "0515 XUAN",
    country_calling_code: "86",
    phone: "15558370515",
    email: "",
    is_price_include_tax: 1,
    tax_title: "GST",
    tax_country_code: "AU",
    currency_code: "AUD",
    currency_symbol: "$$",
    currency_format: "${{amount}} AUD",
    is_deposit: 0,
    deposit_amount: 0,
    shop_discount: 0,
    surcharge_fee: 12,
    note: "",
    schedule_date: "2026-05-15 17:51:00",
    created_at: "2026-05-15 17:51:35",
    request_unique_idempotency_token: "LOCAL_9_5df7ac19_20260515183159681_362928_1778841119681",
    products: [
      {
        order_detail_id: 159418,
        order_id: 98254,
        product_title: {
          en: null,
          ja: null,
          pt: null,
          auto: "Duration 商品（灵活时间）",
          "zh-CN": null,
          "zh-HK": null,
          kitchen: null,
          original: "Duration 商品（灵活时间）"
        },
        product_id: 61170,
        product_quantity: 1,
        product_variant_id: 0,
        product_sku: {
          code: "",
          name: "",
          unit: "",
          weight: 0,
          barcode: "",
          sku_ids: "",
          variant: [],
          subtitle: {
            en: null,
            ja: null,
            pt: null,
            auto: "送2张 玄-商品券",
            "zh-CN": null,
            "zh-HK": null,
            kitchen: null,
            original: "送2张 玄-商品券"
          },
          tare_name: "",
          net_weight: 0,
          unit_price: 0,
          variant_id: 0,
          tare_weight: 0,
          unit_weight: 0,
          open_sold_weight: 0,
          unit_data_snapshot: null,
          open_box_specification: -1,
          box_specification_quantity: 0
        },
        selling_price: "100.00",
        original_price: "100.00",
        payment_price: "100.00",
        tax_fee: "10.1800",
        is_charge_tax: 1,
        product_bundle: [],
        created_at: "2026-05-15 17:51:35",
        updated_at: "2026-05-15 17:51:35",
        metadata: {
          source_product_price: "100.00",
          relation_surcharge_ids: [2782],
          latest_input_product_data: {
            unique: "1993ec6d-45e4-43ae-abe3-c0e4267e32f8"
          },
          main_product_selling_price: "100.00",
          tax_fee_rounding_remainder: 0,
          main_product_original_price: "100.00",
          product_discount_difference: 0,
          average_discount_amount_rate: 1,
          surcharge_rounding_remainder: 0,
          unique_identification_number: "01432432262_0",
          appointment_order_product_type: "appointment_booking_schedule_product",
          main_product_attached_bundle_tax_fee: 10.18,
          main_product_attached_bundle_payment_price: "100.00",
          main_product_attached_bundle_selling_price: "100.00",
          main_product_attached_bundle_surcharge_fee: 12
        },
        discount_list: [],
        schedule_event_id: 83942,
        dependency_schedule_event_id: null,
        booking_uid: "01432432262_0",
        num: 1,
        product_option_item: [],
        note: "",
        surcharge_fee: 12
      }
    ],
    bookings: [
      {
        schedule_event_id: 83941,
        order_id: 98254,
        resource_type: "order",
        item_type: "appointment_booking",
        business_code: "appointment_booking",
        parent_id: 0,
        booking_id: "B14752",
        status: "normal",
        appointment_status: "new",
        product_uid: null,
        relation_type: "",
        relation_id: 0,
        relation_form_name: "",
        form_id: 0,
        schedule_id: 0,
        start_date: "2026-05-15",
        start_time: "17:51",
        end_date: "2026-05-15",
        end_time: "23:00",
        is_all: 0,
        select_date: null,
        duration: 0,
        sub_type: "minutes",
        like_status: "common",
        number: 1,
        created_at: "2026-05-15 17:51:35",
        updated_at: "2026-05-15 17:51:36",
        metadata: {
          multiple_resource_flag: 1
        },
        holder_data: [],
        resources: [],
        relation_items: [],
        appointment_form: []
      },
      {
        schedule_event_id: 83942,
        order_id: 98254,
        resource_type: "order",
        item_type: "appointment_booking",
        business_code: "appointment_booking",
        parent_id: 83941,
        booking_id: "B14752",
        status: "normal",
        appointment_status: "new",
        product_uid: "01432432262_0",
        relation_type: "",
        relation_id: 0,
        relation_form_name: "小包 01（10人）EN, West Campus",
        form_id: 0,
        schedule_id: 0,
        start_date: "2026-05-15",
        start_time: "17:51",
        end_date: "2026-05-15",
        end_time: "23:00",
        is_all: 0,
        select_date: "2026-05-15",
        duration: 309,
        sub_type: "flexible",
        like_status: "common",
        number: 1,
        created_at: "2026-05-15 17:51:35",
        updated_at: "2026-05-15 17:51:39",
        metadata: {
          capacity: [
            {
              id: 0,
              name: "",
              value: 1
            }
          ],
          holder_id: [],
          product_discount_difference: 0,
          unique_identification_number: "01432432262_0"
        },
        holder_data: [],
        resources: [
          {
            form_id: 35,
            relation_type: "form",
            relation_id: 41077,
            capacity: 1,
            like_status: "common",
            created_at: "2026-05-15 17:51:35",
            updated_at: "2026-05-15 17:51:35",
            metadata: {
              form_name: "桌台",
              resource_name: "小包 01（10人）EN",
              combined_resource: {
                status: 0,
                resource_ids: []
              }
            },
            children: []
          },
          {
            form_id: 214,
            relation_type: "form",
            relation_id: 38350,
            capacity: 1,
            like_status: "common",
            created_at: "2026-05-15 17:51:35",
            updated_at: "2026-05-15 17:51:35",
            metadata: {
              form_name: "校区2",
              resource_name: "West Campus"
            },
            children: []
          }
        ],
        relation_items: [],
        appointment_form: []
      }
    ],
    payments: [],
    surcharges: [
      {
        order_surcharge_id: 31126,
        order_id: 98254,
        surcharge_id: 2782,
        type: "default",
        name: {
          en: "Pay surcharge 10%+2",
          "zh-CN": "支付附加费10%+2",
          "zh-HK": "支付附加費10%+2",
          original: "支付附加费10%+2"
        },
        description: {
          en: "",
          "zh-CN": "",
          "zh-HK": "",
          original: "支付附加费"
        },
        percentage: "0.1000",
        fixed: "2.00",
        amount: "12.00",
        created_at: "2026-05-16 01:51:35",
        updated_at: "2026-05-16 01:51:35"
      }
    ],
    discount_list: [],
    relation_forms: [],
    contacts: [],
    contacts_info: {
      first_name: "0515",
      last_name: "XUAN",
      display_name: "0515 XUAN",
      phone: {
        phone: "15558370515",
        country_calling_code: "+86",
        country_code: ""
      },
      email: ""
    },
    holder: null,
    metadata: {
      product_discount_version: "V2",
      appointment_structure_version: "2.0",
      appointment_booking_parent_schedule_id: 83941
    },
    _extend: {
      productsByUid: {}
    },
    delivery_type: null
  },
  salesDetail: {
    order_id: "98254",
    external_sale_number: "LOCAL_9_5df7ac19_20260515183159681_362928",
    order_number: "10250000917788386958264",
    shop_order_number: "57899",
    type: "appointment_booking",
    business_code: "appointment_booking",
    platform: "pos",
    sales_channel: "my_pisel",
    order_sales_channel: "pos",
    status: "open",
    payment_status: "payment_processing",
    shipping_status: "unfulfilled",
    customer_id: "16442",
    customer_name: "0515 XUAN",
    country_calling_code: "86",
    phone: "15558370515",
    email: "",
    is_price_include_tax: 1,
    tax_title: "GST",
    tax_country_code: "AU",
    currency_code: "AUD",
    currency_symbol: "$$",
    currency_format: "${{amount}} AUD",
    is_deposit: 0,
    deposit_amount: "0.00",
    shop_discount: 0,
    surcharge_fee: "12.00",
    note: "",
    schedule_date: "2026-05-15 17:51:00",
    created_at: "2026-05-15 17:51:35",
    request_unique_idempotency_token: "LOCAL_9_5df7ac19_20260515183159681_362928_1778841119681",
    products: [
      {
        order_detail_id: 159418,
        order_id: 98254,
        product_title: {
          en: null,
          ja: null,
          pt: null,
          auto: "Duration 商品（灵活时间）",
          "zh-CN": null,
          "zh-HK": null,
          kitchen: null,
          original: "Duration 商品（灵活时间）"
        },
        product_id: 61170,
        product_quantity: 1,
        product_variant_id: 0,
        product_sku: {
          code: "",
          name: "",
          unit: "",
          weight: 0,
          barcode: "",
          sku_ids: "",
          variant: [],
          subtitle: {
            en: null,
            ja: null,
            pt: null,
            auto: "送2张 玄-商品券",
            "zh-CN": null,
            "zh-HK": null,
            kitchen: null,
            original: "送2张 玄-商品券"
          },
          tare_name: "",
          net_weight: 0,
          unit_price: 0,
          variant_id: 0,
          tare_weight: 0,
          unit_weight: 0,
          open_sold_weight: 0,
          unit_data_snapshot: null,
          open_box_specification: -1,
          box_specification_quantity: 0
        },
        selling_price: "100.00",
        original_price: "100.00",
        payment_price: "100.00",
        tax_fee: "10.1800",
        is_charge_tax: 1,
        product_bundle: [],
        created_at: "2026-05-15 17:51:35",
        updated_at: "2026-05-15 17:51:35",
        metadata: {
          source_product_price: "100.00",
          relation_surcharge_ids: [2782],
          latest_input_product_data: {
            unique: "1993ec6d-45e4-43ae-abe3-c0e4267e32f8"
          },
          main_product_selling_price: "100.00",
          tax_fee_rounding_remainder: 0,
          main_product_original_price: "100.00",
          product_discount_difference: 0,
          average_discount_amount_rate: 1,
          surcharge_rounding_remainder: 0,
          unique_identification_number: "01432432262_0",
          appointment_order_product_type: "appointment_booking_schedule_product",
          main_product_attached_bundle_tax_fee: 10.18,
          main_product_attached_bundle_payment_price: "100.00",
          main_product_attached_bundle_selling_price: "100.00",
          main_product_attached_bundle_surcharge_fee: 12
        },
        discount_list: [],
        schedule_event_id: 83942,
        dependency_schedule_event_id: null,
        booking_uid: "01432432262_0",
        num: 1,
        product_option_item: [],
        note: "",
        surcharge_fee: 12
      }
    ],
    bookings: [
      {
        schedule_event_id: 83941,
        order_id: 98254,
        resource_type: "order",
        item_type: "appointment_booking",
        business_code: "appointment_booking",
        parent_id: 0,
        booking_id: "B14752",
        status: "normal",
        appointment_status: "new",
        product_uid: null,
        relation_type: "",
        relation_id: 0,
        relation_form_name: "",
        form_id: 0,
        schedule_id: 0,
        start_date: "2026-05-15",
        start_time: "17:51",
        end_date: "2026-05-15",
        end_time: "23:00",
        is_all: 0,
        select_date: null,
        duration: 0,
        sub_type: "minutes",
        like_status: "common",
        number: 1,
        created_at: "2026-05-15 17:51:35",
        updated_at: "2026-05-15 17:51:36",
        metadata: {
          multiple_resource_flag: 1
        },
        holder_data: [],
        resources: [],
        relation_items: [],
        appointment_form: []
      },
      {
        schedule_event_id: 83942,
        order_id: 98254,
        resource_type: "order",
        item_type: "appointment_booking",
        business_code: "appointment_booking",
        parent_id: 83941,
        booking_id: "B14752",
        status: "normal",
        appointment_status: "new",
        product_uid: "01432432262_0",
        relation_type: "",
        relation_id: 0,
        relation_form_name: "小包 01（10人）EN, West Campus",
        form_id: 0,
        schedule_id: 0,
        start_date: "2026-05-15",
        start_time: "17:51",
        end_date: "2026-05-15",
        end_time: "23:00",
        is_all: 0,
        select_date: "2026-05-15",
        duration: 309,
        sub_type: "flexible",
        like_status: "common",
        number: 1,
        created_at: "2026-05-15 17:51:35",
        updated_at: "2026-05-15 17:51:39",
        metadata: {
          capacity: [
            {
              id: 0,
              name: "",
              value: 1
            }
          ],
          holder_id: [],
          product_discount_difference: 0,
          unique_identification_number: "01432432262_0"
        },
        holder_data: [],
        resources: [
          {
            form_id: 35,
            relation_type: "form",
            relation_id: 41077,
            capacity: 1,
            like_status: "common",
            created_at: "2026-05-15 17:51:35",
            updated_at: "2026-05-15 17:51:35",
            metadata: {
              form_name: "桌台",
              resource_name: "小包 01（10人）EN",
              combined_resource: {
                status: 0,
                resource_ids: []
              }
            },
            children: []
          },
          {
            form_id: 214,
            relation_type: "form",
            relation_id: 38350,
            capacity: 1,
            like_status: "common",
            created_at: "2026-05-15 17:51:35",
            updated_at: "2026-05-15 17:51:35",
            metadata: {
              form_name: "校区2",
              resource_name: "West Campus"
            },
            children: []
          }
        ],
        relation_items: [],
        appointment_form: []
      }
    ],
    payments: [],
    surcharges: [
      {
        key: "custom_surcharge_0",
        label: {
          en: "Pay surcharge 10%+2",
          "zh-CN": "支付附加费10%+2",
          "zh-HK": "支付附加費10%+2",
          original: "支付附加费10%+2"
        },
        name: {
          en: "Pay surcharge 10%+2",
          "zh-CN": "支付附加费10%+2",
          "zh-HK": "支付附加費10%+2",
          original: "支付附加费10%+2"
        },
        value: 12,
        surcharge_id: 2782,
        description: {
          en: "",
          "zh-CN": "",
          "zh-HK": "",
          original: "支付附加费"
        },
        type: "default",
        fixed: "2.00",
        amount: 12,
        percentage: "0.1000",
        metadata: {
          open_product: 1
        }
      }
    ],
    discount_list: [],
    relation_forms: [],
    contacts: [],
    contacts_info: {
      first_name: "0515",
      last_name: "XUAN",
      display_name: "0515 XUAN",
      phone: {
        phone: "15558370515",
        country_calling_code: "+86",
        country_code: ""
      },
      email: ""
    },
    holder: null,
    metadata: {
      product_discount_version: "V2",
      appointment_structure_version: "2.0",
      appointment_booking_parent_schedule_id: 83941
    },
    _extend: {
      productsByUid: {}
    },
    delivery_type: null
  },
  discountList: [],
  items: [
    {
      order_detail_id: 159479,
      order_id: 98276,
      product_title: {
        en: "0407_Testing WalletPass Available Packages and Main Products",
        ja: null,
        pt: null,
        auto: "0407_Testing WalletPass Available Packages and Main Products",
        "zh-CN": null,
        "zh-HK": null,
        kitchen: null,
        original: "0407_测试walletpass可用的套餐主商品"
      },
      product_id: 61930,
      product_quantity: 1,
      product_variant_id: 0,
      product_sku: {
        code: "",
        name: "",
        unit: "",
        weight: 0,
        barcode: "",
        sku_ids: "",
        variant: [],
        subtitle: {
          en: null,
          ja: null,
          pt: null,
          auto: "",
          "zh-CN": null,
          "zh-HK": null,
          kitchen: null,
          original: ""
        },
        tare_name: "",
        net_weight: 0,
        unit_price: 0,
        variant_id: 0,
        tare_weight: 0,
        unit_weight: 0,
        open_sold_weight: 0,
        unit_data_snapshot: null,
        open_box_specification: -1,
        box_specification_quantity: 0
      },
      selling_price: "40.00",
      original_price: "40.00",
      payment_price: "40.00",
      tax_fee: "4.1700",
      is_charge_tax: 1,
      product_bundle: [
        {
          num: 2,
          code: "",
          note: "",
          price: "10.00",
          option: [],
          barcode: "",
          tax_fee: "1.04",
          item_str: "",
          metadata: {
            surcharge_fee: "1.50",
            relation_surcharge_ids: [2782],
            tax_fee_rounding_remainder: "0.01",
            product_discount_difference: 0,
            custom_product_bundle_map_id: "cd060312-1702-40b5-a286-2fc511b8dfbe",
            surcharge_rounding_remainder: 0,
            unique_identification_number: "fc05b0b7-8da1-4c9a-ab69-b554be43a86f"
          },
          bundle_id: 1718,
          price_type: "markup",
          bundle_title: {
            en: null,
            ja: null,
            pt: null,
            auto: "0407_测试walletpass可用的子商品",
            "zh-CN": null,
            "zh-HK": null,
            kitchen: null,
            original: "0407_测试walletpass可用的子商品"
          },
          custom_price: "10.00",
          extension_id: 0,
          is_charge_tax: 1,
          extension_type: "normal",
          price_type_ext: "product_price",
          bundle_group_id: 785,
          bundle_sum_type: "markup",
          bundle_sum_price: "10.00",
          bundle_group_name: {
            en: "Test Group",
            ja: null,
            pt: null,
            auto: "Test Group",
            "zh-CN": null,
            "zh-HK": null,
            kitchen: null,
            original: "测试分组"
          },
          bundle_product_id: 61929,
          bundle_variant_id: 0,
          custom_price_type: "markup",
          bundle_payment_price: "10.00",
          bundle_selling_price: "10.00",
          is_price_include_tax: 1,
          surcharge_fee: 0,
          surcharge_rounding_remainder: 0,
          relation_surcharge_ids: []
        }
      ],
      created_at: "2026-05-15 20:53:06",
      updated_at: "2026-05-15 20:54:35",
      metadata: {
        source_product_price: "20.00",
        relation_surcharge_ids: [2782],
        latest_input_product_data: [],
        main_product_selling_price: "20.00",
        tax_fee_rounding_remainder: 0,
        main_product_original_price: "20.00",
        product_discount_difference: 0,
        average_discount_amount_rate: 1,
        surcharge_rounding_remainder: 0,
        unique_identification_number: "02467589917",
        appointment_order_product_type: "appointment_booking_addons_product",
        main_product_attached_bundle_tax_fee: 2.09,
        main_product_attached_bundle_payment_price: "20.00",
        main_product_attached_bundle_selling_price: "20.00",
        main_product_attached_bundle_surcharge_fee: 3
      },
      discount_list: [],
      schedule_event_id: null,
      dependency_schedule_event_id: null,
      booking_uid: null,
      num: 1,
      product_option_item: [],
      note: "",
      surcharge_fee: 0,
      _extend: {
        booking: null
      }
    },
    {
      order_detail_id: 159480,
      order_id: 98276,
      product_title: {
        en: null,
        ja: null,
        pt: null,
        auto: "桌台费",
        "zh-CN": null,
        "zh-HK": null,
        kitchen: null,
        original: "桌台费"
      },
      product_id: 61959,
      product_quantity: 1,
      product_variant_id: 0,
      product_sku: {
        code: "",
        name: "",
        unit: "",
        weight: 0,
        barcode: "",
        sku_ids: "",
        variant: [],
        subtitle: {
          en: null,
          ja: null,
          pt: null,
          auto: "",
          "zh-CN": null,
          "zh-HK": null,
          kitchen: null,
          original: ""
        },
        tare_name: "",
        net_weight: 0,
        unit_price: 0,
        variant_id: 0,
        tare_weight: 0,
        unit_weight: 0,
        open_sold_weight: 0,
        unit_data_snapshot: null,
        open_box_specification: -1,
        box_specification_quantity: 0
      },
      selling_price: "0.00",
      original_price: "0.00",
      payment_price: "0.00",
      tax_fee: "0.0900",
      is_charge_tax: 1,
      created_at: "2026-05-15 20:53:06",
      updated_at: "2026-05-15 20:54:35",
      metadata: {
        source_product_price: "0.00",
        relation_surcharge_ids: [2782],
        latest_input_product_data: {
          unique: "e6a3dabc-de39-4ecb-97b0-de712bb76966"
        },
        main_product_selling_price: "0.00",
        tax_fee_rounding_remainder: 0,
        main_product_original_price: "0.00",
        product_discount_difference: 0,
        average_discount_amount_rate: 1,
        surcharge_rounding_remainder: 0,
        unique_identification_number: "00762369999_0_0",
        appointment_order_product_type: "appointment_booking_schedule_product",
        main_product_attached_bundle_tax_fee: 0.09,
        main_product_attached_bundle_payment_price: "0.00",
        main_product_attached_bundle_selling_price: "0.00",
        main_product_attached_bundle_surcharge_fee: 1
      },
      discount_list: [],
      schedule_event_id: 83956,
      dependency_schedule_event_id: null,
      booking_uid: "00762369999_0_0",
      num: 1,
      product_option_item: [],
      note: "",
      surcharge_fee: 0,
      product_bundle: [
        {
          num: 2,
          code: "",
          note: "",
          price: "10.00",
          option: [],
          barcode: "",
          tax_fee: "1.04",
          item_str: "",
          metadata: {
            surcharge_fee: "1.50",
            relation_surcharge_ids: [2782],
            tax_fee_rounding_remainder: "0.01",
            product_discount_difference: 0,
            custom_product_bundle_map_id: "cd060312-1702-40b5-a286-2fc511b8dfbe",
            surcharge_rounding_remainder: 0,
            unique_identification_number: "fc05b0b7-8da1-4c9a-ab69-b554be43a86f"
          },
          bundle_id: 1718,
          price_type: "markup",
          bundle_title: {
            en: null,
            ja: null,
            pt: null,
            auto: "0407_测试walletpass可用的子商品",
            "zh-CN": null,
            "zh-HK": null,
            kitchen: null,
            original: "0407_测试walletpass可用的子商品"
          },
          custom_price: "10.00",
          extension_id: 0,
          is_charge_tax: 1,
          extension_type: "normal",
          price_type_ext: "product_price",
          bundle_group_id: 785,
          bundle_sum_type: "markup",
          bundle_sum_price: "10.00",
          bundle_group_name: {
            en: "Test Group",
            ja: null,
            pt: null,
            auto: "Test Group",
            "zh-CN": null,
            "zh-HK": null,
            kitchen: null,
            original: "测试分组"
          },
          bundle_product_id: 61929,
          bundle_variant_id: 0,
          custom_price_type: "markup",
          bundle_payment_price: "10.00",
          bundle_selling_price: "10.00",
          is_price_include_tax: 1,
          surcharge_fee: 0,
          surcharge_rounding_remainder: 0,
          relation_surcharge_ids: []
        }
      ],
      _extend: {
        booking: {
          schedule_event_id: 83956,
          order_id: 98276,
          resource_type: "order",
          item_type: "table-order",
          business_code: "dine_in",
          parent_id: 83955,
          booking_id: "B14759",
          status: "normal",
          appointment_status: "confirmed",
          product_uid: "00762369999_0_0",
          relation_type: "",
          relation_id: 0,
          relation_form_name: "小包 01（10人）EN",
          form_id: 0,
          schedule_id: 0,
          start_date: "2026-05-15",
          start_time: "20:52",
          end_date: "2026-05-15",
          end_time: "21:12",
          is_all: 0,
          select_date: "2026-05-15",
          duration: 20,
          sub_type: "minutes",
          like_status: "common",
          number: 1,
          created_at: "2026-05-15 20:53:06",
          updated_at: "2026-05-15 20:54:37",
          metadata: {
            capacity: [
              {
                id: "07268021491",
                name: {
                  en: "Guests",
                  ja: "人数",
                  pt: "Pessoas",
                  "zh-CN": "人数",
                  "zh-HK": "人數",
                  original: "Guests"
                },
                value: 1
              }
            ],
            holder_id: null,
            product_discount_difference: 0,
            unique_identification_number: "00762369999_0_0"
          },
          holder_data: [],
          resources: [
            {
              form_id: 35,
              relation_type: "form",
              relation_id: 41077,
              capacity: 1,
              like_status: "common",
              created_at: "2026-05-15 20:54:35",
              updated_at: "2026-05-15 20:54:35",
              metadata: null,
              children: []
            }
          ],
          relation_items: [],
          appointment_form: []
        }
      }
    }
  ]
};
var summary = {
  summary: {
    product_quantity: 1,
    product_original_amount: "100.00",
    product_amount: "100.00",
    product_expect_amount: "100.00",
    product_tax_fee: "10.18",
    shipping_fee: "0.00",
    shipping_tax_fee: "0.00",
    tax_fee: "10.18",
    surcharge_fee: "0.00",
    surcharges: [
      {
        key: "custom_surcharge_0",
        label: {
          en: "Pay surcharge 10%+2",
          "zh-CN": "支付附加费10%+2",
          "zh-HK": "支付附加費10%+2",
          original: "支付附加费10%+2"
        },
        name: {
          en: "Pay surcharge 10%+2",
          "zh-CN": "支付附加费10%+2",
          "zh-HK": "支付附加費10%+2",
          original: "支付附加费10%+2"
        },
        value: 2,
        surcharge_id: 2782,
        description: {
          en: "",
          "zh-CN": "",
          "zh-HK": "",
          original: "支付附加费"
        },
        type: "default",
        fixed: "2.00",
        amount: 2,
        percentage: "0.1000",
        metadata: {
          open_product: 1
        }
      }
    ],
    discount_amount: "0.00",
    deposit_amount: "0.00",
    expect_amount: "100.00",
    total_amount: "100.00",
    total_refund_amount: "0.00",
    customer_paid_amount: "0.00",
    order_paid_amount: "0.00",
    amount_gap: "0.00",
    rounding_amount: "0.00",
    pay_service_charge_amount: "0.00",
    is_price_include_tax: 1,
    tax_title: ""
  }
};
var sales = {
  tempOrder: _saleEntities.tempOrder,
  salesDetail: _saleEntities.salesDetail
};
var cart = {
  discountList: _saleEntities.discountList,
  bookings: _saleEntities.items.filter((item) => {
    var _a;
    return (_a = item._extend) == null ? void 0 : _a.booking;
  }).map((item) => {
    var _a;
    return {
      ...item._extend.booking,
      _extend: {
        ...((_a = item._extend.booking) == null ? void 0 : _a._extend) || {},
        product: {
          ...item,
          _extend: {
            ...item._extend,
            booking: null
          }
        }
      }
    };
  }),
  items: _saleEntities.items.filter((item) => {
    var _a;
    return !((_a = item._extend) == null ? void 0 : _a.booking);
  })
};
var mockSaleDetailContext = {
  sales,
  customer,
  cart,
  summary
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  mockSaleDetailContext
});
