export default () => {
    const { t } = inject('service')
    return reactive({
        btns: {
            options: {
                props: {
                    icon: 'isax isax-more rotate-90', severity: 'secondary', text: true, rounded: true
                }
            },
            filter: {
                props: {
                    icon: "isax isax-setting-4", severity: "secondary", text: true, rounded: true,
                }
            },
            close: {
                props: { icon: 'isax isax-close-circle', severity: 'secondary', rounded: true, text: true }
            },
            show: {
                props: {
                    icon: "isax isax-eye", severity: "secondary", rounded: true, text: true,
                }
            },
            save: {
                props: {
                    label: t('save'),
                }
            },
            recovery: {
                props: {
                    label: t('passwordRecovery'), link: true,
                }
            },
        },
        statuses: {
            comment: {
                true: t('confirmed'), false: t('rejected')
            }
        },
        options: {
            comment: [
                {
                    label: t('editComment'), icon: 'isax isax-edit', is: 'ProductCommentForm'
                },
                {
                    label: t('removeComment'), icon: 'isax isax-trash', is: 'ProducReminder'
                }
            ]
        },
        headers: [
            "row", "productCode", "productName", "count", "unit", "price", "discount", "finalPrice", "consumerPrice",
        ],
        words: ["description", "marketer", "salesManager"],
        radios: ["newest", "oldest", "highestPrice", "lowestPrice"],
        switches: ["date", "factorNumber"],
        menu: {
            profile: [
                {
                    url: "information", label: t('userInfo'), icon: "isax isax-edit-2",
                },
                {
                    key: 'password', label: t('securityAndPassword'), icon: "isax isax-shield-security2",
                },
                {
                    url: 'seller/store', label: t('sellerPanel'), icon: "isax isax-element-2"
                },
                {
                    url: "favorites", label: t('favorites'), icon: "isax isax-heart"
                },
                {
                    url: "comments", label: t('myComments'), icon: "isax isax-message-text4"
                },
                {
                    url: "factors", label: t('factors'), icon: "isax isax-receipt-2-1"
                },
                {
                    url: "moeen", label: t('moeenFactors'), icon: "isax isax-archive-book4"
                },
                {
                    url: "notification", label: t('notifications'), icon: "isax isax-notification"
                },
                {
                    url: "orders", label: t('orders'), icon: "isax isax-shopping-cart"
                },
                {
                    key: "logout", label: t('logout'), icon: "isax isax-logout-1"
                },
            ]
        },
        fields: {
            changePassword: {
                currentPassword: {
                    props: {
                        feedback: false, toggleMask: true, placeholder: "",
                    },
                },
                newPassword: {
                    props: {
                        feedback: false, toggleMask: true, placeholder: "",
                    },
                },
                repeatPassword: {
                    props: {
                        feedback: false, toggleMask: true, placeholder: "",
                    },
                }
            }
        }
    })
}