"use strict";
exports.id = 611;
exports.ids = [611];
exports.modules = {

/***/ 2024:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "b": () => (/* binding */ orderStatuses)
/* harmony export */ });
const orderStatuses = [
    "Pending",
    "Awaiting shipment",
    "Shipped",
    "Refunded",
    "Cancelled",
    "Completed"
];


/***/ }),

/***/ 9503:
/***/ ((module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ OrderTable)
/* harmony export */ });
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2322);
/* harmony import */ var _cromwell_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1815);
/* harmony import */ var _cromwell_core_frontend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4536);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6689);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _components_entity_entityTable_EntityTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(256);
/* harmony import */ var _constants_order__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2024);
/* harmony import */ var _constants_PageInfos__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(379);
/* harmony import */ var _helpers_addressParser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9177);
/* harmony import */ var _helpers_time__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1454);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_components_entity_entityTable_EntityTable__WEBPACK_IMPORTED_MODULE_4__, _helpers_time__WEBPACK_IMPORTED_MODULE_6__]);
([_components_entity_entityTable_EntityTable__WEBPACK_IMPORTED_MODULE_4__, _helpers_time__WEBPACK_IMPORTED_MODULE_6__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);









function OrderTable() {
    const client = (0,_cromwell_core_frontend__WEBPACK_IMPORTED_MODULE_2__.getGraphQLClient)();
    return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_entity_entityTable_EntityTable__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
        entityCategory: _cromwell_core__WEBPACK_IMPORTED_MODULE_1__.EDBEntity.Order,
        entityListRoute: _constants_PageInfos__WEBPACK_IMPORTED_MODULE_5__/* .orderListPageInfo.route */ .JB.route,
        entityBaseRoute: _constants_PageInfos__WEBPACK_IMPORTED_MODULE_5__/* .orderPageInfo.baseRoute */ .Pq.baseRoute,
        listLabel: "Orders",
        entityLabel: "Order",
        hideAddNew: true,
        getMany: client.getOrders,
        deleteOne: client.deleteOrder,
        deleteMany: client.deleteManyOrders,
        columns: [
            {
                name: "id",
                label: "ID",
                type: "Simple text",
                exactSearch: true,
                visible: true,
                maxWidth: "100px"
            },
            {
                name: "status",
                label: "Status",
                type: "Simple text",
                visible: true,
                exactSearch: true,
                searchOptions: _constants_order__WEBPACK_IMPORTED_MODULE_7__/* .orderStatuses.map */ .b.map((status)=>({
                        value: status,
                        label: status
                    }))
            },
            {
                name: "orderTotalPrice",
                label: "Total",
                type: "Currency",
                visible: true
            },
            {
                name: "createDate",
                label: "Created",
                type: "Datetime",
                visible: true,
                getValueView: (value)=>(0,_helpers_time__WEBPACK_IMPORTED_MODULE_6__/* .formatTimeAgo */ .BK)(value)
            },
            {
                name: "updateDate",
                label: "Updated",
                type: "Datetime",
                visible: false,
                getValueView: (value)=>(0,_helpers_time__WEBPACK_IMPORTED_MODULE_6__/* .formatTimeAgo */ .BK)(value)
            },
            {
                name: "customerName",
                label: "Name",
                type: "Simple text",
                visible: true
            },
            {
                name: "customerAddress",
                label: "Address",
                type: "Simple text",
                visible: true,
                getValueView: _helpers_addressParser__WEBPACK_IMPORTED_MODULE_8__/* .getValueView */ .Gy,
                getTooltipValueView: _helpers_addressParser__WEBPACK_IMPORTED_MODULE_8__/* .getTooltipValueView */ .WF
            },
            {
                name: "customerPhone",
                label: "Phone",
                type: "Simple text",
                visible: false
            },
            {
                name: "customerEmail",
                label: "Email",
                type: "Simple text",
                visible: false
            },
            {
                name: "customerComment",
                label: "Comment",
                type: "Simple text",
                visible: false
            },
            {
                name: "shippingMethod",
                label: "Shipping method",
                type: "Simple text",
                visible: false
            },
            {
                name: "paymentMethod",
                label: "Payment method",
                type: "Simple text",
                visible: false
            },
            {
                name: "shippingPrice",
                label: "Shipping price",
                type: "Currency",
                visible: false
            },
            {
                name: "totalQnt",
                label: "Total Qnt",
                type: "Simple text",
                visible: false
            },
            {
                name: "userId",
                label: "User ID",
                type: "Simple text",
                visible: false
            },
            {
                name: "currency",
                label: "Currency",
                type: "Simple text",
                visible: false
            }
        ]
    });
}

__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });

/***/ })

};
;