from settings import Settings

settings = Settings()

line_separator = "‚ûñ‚ûñ‚ûñ‚ûñ‚ûñ"


# Multiple lines
def get_profile_template(user):
    return f"{line_separator}\nüìù id: {user.get_id()}\nüìà –ö–æ–ª-–≤–æ –∑–∞–∫–∞–∑–æ–≤: {len(user.get_orders())}\nüìÖ –î–∞—Ç–∞ —Ä–µ–≥–∏—Å—Ç—Ä–∞—Ü–∏–∏: {user.get_register_date_string()}\n{line_separator}"

def get_faq_template(shop_name):
    return f"{line_separator}\n‚ÑπÔ∏è FAQ –º–∞–≥–∞–∑–∏–Ω–∞ {shop_name}\n{line_separator}"

def get_categories_template():
    return f"{line_separator}\nüõçÔ∏è –ö–∞—Ç–µ–≥–æ—Ä–∏–∏\n{line_separator}"

def get_category_was_created_successfuly(cat_name):
    return f"–ö–∞—Ç–µ–≥–æ—Ä–∏—è {cat_name} –±—ã–ª–∞ —É—Å–ø–µ—à–Ω–æ —Å–æ–∑–¥–∞–Ω–∞."

def get_category_data(cat):
    return f"{line_separator}\nID: {cat.get_id()}\n–ù–∞–∑–≤–∞–Ω–∏–µ: {cat.get_name()}\n{line_separator}"

def get_item_card(item=None, name=None, price=None, desc=None, amount=None):
    if item:
        name = item.get_name()
        price = item.get_price()
        desc = item.get_desc()
        amount = item.get_amount()
        
    return f"{line_separator}\n{name} - {'{:.2f}'.format(price)} —Ä—É–±.\n–í –Ω–∞–ª–∏—á–∏–∏: {amount} —à—Ç.\n{line_separator}\n{desc}"

def get_order_confirmation_template(item_amount_dict, cart_price, email_adress, additional_message, phone_number=None, home_adress=None):
    item_amount_dict_formatted = '\n'.join([f'\t¬∑ {item[0].get_name()} - {item[1]} —à—Ç.' for item in item_amount_dict])
    phone_number = f"–ù–æ–º–µ—Ä —Ç–µ–ª–µ—Ñ–æ–Ω–∞: {phone_number}\n" if phone_number else ""
    home_adress = f"–ê–¥—Ä–µ—Å –¥–æ—Å—Ç–∞–≤–∫–∏: {home_adress}\n" if home_adress else ""
    return f"{line_separator}\n–¢–æ–≤–∞—Ä—ã:\n{item_amount_dict_formatted}\n–°—É–º–º–∞: {cart_price}—Ä—É–±.\nEmail: {email_adress}\n{phone_number}{home_adress}–ö–æ–º–º–µ–Ω—Ç–∞—Ä–∏–π –∫ –∑–∞–∫–∞–∑—É: {additional_message}\n{line_separator}\n–í—ã —É–≤–µ—Ä–µ–Ω—ã, —á—Ç–æ —Ö–æ—Ç–∏—Ç–µ –æ—Ñ–æ—Ä–º–∏—Ç—å –∑–∞–∫–∞–∑?"
    
def get_order_template(order):
    item_list_amount_formatted = '\n'.join([f'\t¬∑ {item[0].get_name()} - {item[1]} —à—Ç.' for item in order.get_item_list_amount()])
    phone_number = f"–ù–æ–º–µ—Ä —Ç–µ–ª–µ—Ñ–æ–Ω–∞: {order.get_phone_number()}\n" if settings.is_phone_number_enabled() else ""
    home_adress = f"–ê–¥—Ä–µ—Å –¥–æ—Å—Ç–∞–≤–∫–∏: {order.get_home_adress()}\n" if settings.is_delivery_enabled() else f"–°–∞–º–æ–≤—ã–≤–æ–∑\n"
    return f"{line_separator}\nID –∑–∞–∫–∞–∑–∞: {order.get_order_id()}\nID –ø–æ–ª—å–∑–æ–≤–∞—Ç–µ–ª—è: {order.get_user_id()}\n–¢–æ–≤–∞—Ä—ã:\n{item_list_amount_formatted}\n–°—É–º–º–∞: {order.get_item_list_price()}—Ä—É–±.\nEmail: {order.get_email_adress()}\n{phone_number}{home_adress}–ö–æ–º–º–µ–Ω—Ç–∞—Ä–∏–π –∫ –∑–∞–∫–∞–∑—É: {order.get_additional_message()}\n–°—Ç–∞—Ç—É—Å –∑–∞–∫–∞–∑–∞: {order.get_status_string()}\n–î–∞—Ç–∞: {order.get_date_string()}\n{line_separator}"

# Single phrases
# /start
admin_panel = "üî¥ –ê–¥–º–∏–Ω –ø–∞–Ω–µ–ª—å"
faq = "‚ÑπÔ∏è FAQ"
profile = "üìÅ –ü—Ä–æ—Ñ–∏–ª—å"
catalogue = "üóÑÔ∏è –ö–∞—Ç–∞–ª–æ–≥"
cart = "üõí –ö–æ—Ä–∑–∏–Ω–∞"
support_menu = "‚òé –ú–µ–Ω—é —Ç–µ—Ö. –ø–æ–¥–¥–µ—Ä–∂–∫–∏"

# Admin panel tabs
item_management = "üì¶ –£–ø—Ä–∞–≤–ª–µ–Ω–∏–µ —Ç–æ–≤–∞—Ä–æ–º"
user_management = "üßç –£–ø—Ä–∞–≤–ª–µ–Ω–∏–µ –ø–æ–ª—å–∑–æ–≤–∞—Ç–µ–ª—è–º–∏"
shop_stats = "üìà –°—Ç–∞—Ç–∏—Å—Ç–∏–∫–∞ –º–∞–≥–∞–∑–∏–Ω–∞ (BETA)"
bot_settings = "‚öô –ù–∞—Å—Ç—Ä–æ–π–∫–∏ –±–æ—Ç–∞"

# FAQ
contacts = "üìû –ö–æ–Ω—Ç–∞–∫—Ç—ã"
refund = "üé´ –ü–æ–ª–∏—Ç–∏–∫–∞ –≤–æ–∑–≤—Ä–∞—Ç–∞"

# Profile
my_orders = "üìÇ –ú–æ–∏ –∑–∞–∫–∞–∑—ã"
cancel_order = "‚ùå –û—Ç–º–µ–Ω–∏—Ç—å –∑–∞–∫–∞–∑"
restore_order = "‚úÖ –í–æ—Å—Å—Ç–∞–Ω–æ–≤–∏—Ç—å –∑–∞–∫–∞–∑"
my_support_tickets = "üôã –ú–æ–∏ —Ç–∏–∫–µ—Ç—ã –≤ —Ç–µ—Ö. –ø–æ–¥–¥–µ—Ä–∂–∫—É"
enable_notif = "üîî–í–∫–ª—é—á–∏—Ç—å –æ–ø–æ–≤–µ—â–µ–Ω–∏—è –æ –∑–∞–∫–∞–∑–∞—Ö"
disable_notif = "üîï–í—ã–∫–ª—é—á–∏—Ç—å –æ–ø–æ–≤–µ—â–µ–Ω–∏—è –æ –∑–∞–∫–∞–∑–∞—Ö"

# Catalogue / Item / Cart
search = "üîç –ù–∞–π—Ç–∏"
add_to_cart = "üõí –î–æ–±–∞–≤–∏—Ç—å –≤ –∫–æ—Ä–∑–∏–Ω—É"
cart_is_empty = "–ö–æ—Ä–∑–∏–Ω–∞ –ø—É—Å—Ç–∞."
pickup = "‚úÖ–°–∞–º–æ–≤—ã–≤–æ–∑"
def delivery_on(price): return f"‚úÖ –î–æ—Å—Ç–∞–≤–∫–∞ - {price}—Ä—É–±."
def delivery_off(price): return f"‚ùå –î–æ—Å—Ç–∞–≤–∫–∞ - {price}—Ä—É–±."
cart_checkout = "–û—Ñ–æ—Ä–º–∏—Ç—å –∑–∞–∫–∞–∑"
clear_cart = "–û—á–∏—Å—Ç–∏—Ç—å –∫–æ—Ä–∑–∏–Ω—É"
processing = "–û–±—Ä–∞–±–∞—Ç—ã–≤–∞–µ—Ç—Å—è"
delivery = "–û–∂–∏–¥–∞–µ—Ç –¥–æ—Å—Ç–∞–≤–∫–∏"
done = "–ì–æ—Ç–æ–≤"
cancelled = "–û—Ç–º–µ–Ω—ë–Ω"

# Item management
add_cat = "üõçÔ∏è –î–æ–±–∞–≤–∏—Ç—å –∫–∞—Ç–µ–≥–æ—Ä–∏—é"
add_item = "üóÉÔ∏è –î–æ–±–∞–≤–∏—Ç—å —Ç–æ–≤–∞—Ä"
edit_cat = "‚úèÔ∏è –†–µ–¥–∞–∫—Ç–∏—Ä–æ–≤–∞—Ç—å –∫–∞—Ç–µ–≥–æ—Ä–∏—é"
edit_item = "‚úèÔ∏è –†–µ–¥–∞–∫—Ç–∏—Ä–æ–≤–∞—Ç—å —Ç–æ–≤–∞—Ä"
change_name = "üìã –ò–∑–º–µ–Ω–∏—Ç—å –Ω–∞–∑–≤–∞–Ω–∏–µ"
change_image = "üñºÔ∏è –ò–∑–º–µ–Ω–∏—Ç—å –∏–∑–æ–±—Ä–∞–∂–µ–Ω–∏–µ"
hide_image = "üôà –°–∫—Ä—ã—Ç—å –∏–∑–æ–±—Ä–∞–∂–µ–Ω–∏–µ"
show_image = "üêµ –ü–æ–∫–∞–∑–∞—Ç—å –∏–∑–æ–±—Ä–∞–∂–µ–Ω–∏–µ"
change_desc = "üìù –ò–∑–º–µ–Ω–∏—Ç—å –æ–ø–∏—Å–∞–Ω–∏–µ"
change_price = "üè∑Ô∏è –ò–∑–º–µ–Ω–∏—Ç—å —Ü–µ–Ω—É"
change_item_cat = "üõçÔ∏è –ò–∑–º–µ–Ω–∏—Ç—å –∫–∞—Ç–µ–≥–æ—Ä–∏—é"
change_stock = "üì¶ –ò–∑–º–µ–Ω–∏—Ç—å –∫–æ–ª-–≤–æ"

# User management
user_profile = "üìÅ–ü—Ä–æ—Ñ–∏–ª—å –ø–æ–ª—å–∑–æ–≤–∞—Ç–µ–ª—è"
notify_everyone = "üîî–û–ø–æ–≤–µ—â–µ–Ω–∏–µ –≤—Å–µ–º –ø–æ–ª—å–∑–æ–≤–∞—Ç–µ–ª—è–º"
orders = "üìÅ –ó–∞–∫–∞–∑—ã"
remove_manager_role = "üë®‚Äçüíº –£–±—Ä–∞—Ç—å —Ä–æ–ª—å –º–µ–Ω–µ–¥–∂–µ—Ä–∞"
add_manager_role = "üë®‚Äçüíº –°–¥–µ–ª–∞—Ç—å –º–µ–Ω–µ–¥–∂–µ—Ä–æ–º"
remove_admin_role = "üî¥ –£–±—Ä–∞—Ç—å —Ä–æ–ª—å –∞–¥–º–∏–Ω–∏—Å—Ç—Ä–∞—Ç–æ—Ä–∞"
add_admin_role = "üî¥ –°–¥–µ–ª–∞—Ç—å –∞–¥–º–∏–Ω–∏—Å—Ç—Ä–∞—Ç–æ—Ä–æ–º"
def change_order_status(status): return f"–ò–∑–º–µ–Ω–∏—Ç—å —Å—Ç–∞—Ç—É—Å –Ω–∞ \"{status}\""

# Shop stats
registration_stats = "üë•–°—Ç–∞—Ç–∏—Å—Ç–∏–∫–∞ —Ä–µ–≥–∏—Å—Ç—Ä–∞—Ü–∏–π"
order_stats = "üì¶–°—Ç–∞—Ç–∏—Å—Ç–∏–∫–∞ –∑–∞–∫–∞–∑–æ–≤"
all_time = "–ó–∞ –≤—Å—ë –≤—Ä–µ–º—è"
monthly = "–ó–∞ –ø–æ—Å–ª–µ–¥–Ω–∏–µ 30 –¥–Ω–µ–π"
weekly = "–ó–∞ –ø–æ—Å–ª–µ–¥–Ω–∏–µ 7 –¥–Ω–µ–π"
daily = "–ó–∞ –ø–æ—Å–ª–µ–¥–Ω–∏–µ 24 —á–∞—Å–∞"

# Shop settings
main_settings = "üõ†Ô∏è –û—Å–Ω–æ–≤–Ω—ã–µ –Ω–∞—Å—Ç—Ä–æ–π–∫–∏"
item_settings = "üóÉÔ∏è –ù–∞—Å—Ç—Ä–æ–π–∫–∏ —Ç–æ–≤–∞—Ä–æ–≤"
additional_settings = "üìñ –î–æ–ø–æ–ª–Ω–∏—Ç–µ–ª—å–Ω—ã–µ –Ω–∞—Å—Ç—Ä–æ–π–∫–∏"
custom_commands = "üìñ –ö–æ–º–∞–Ω–¥—ã"
add_command = "üìù –î–æ–±–∞–≤–∏—Ç—å –∫–æ–º–∞–Ω–¥—É"
clean_logs = "üìñ –û—á–∏—Å—Ç–∏—Ç—å –ª–æ–≥–∏"
clean_logs_text = "‚ö†Ô∏è –í—ã —É–≤–µ—Ä–µ–Ω—ã, —á—Ç–æ —Ö–æ—Ç–∏—Ç–µ –æ—á–∏—Å—Ç–∏—Ç—å –ª–æ–≥–∏? –û–Ω–∏ –±—É–¥—É—Ç —É–¥–∞–ª–µ–Ω—ã –±–µ–∑ –≤–æ–∑–º–æ–∂–Ω–æ—Å—Ç–∏ –≤–æ—Å—Å—Ç–∞–Ω–æ–≤–ª–µ–Ω–∏—è!\n(–õ–æ–≥–∏ –∑–∞ —Å–µ–≥–æ–¥–Ω—è—à–Ω–∏–π –¥–µ–Ω—å –Ω–µ –±—É–¥—É—Ç —É–¥–∞–ª–µ–Ω—ã)"
backups = "üíæ –†–µ–∑–µ—Ä–≤–Ω–æ–µ –∫–æ–ø–∏—Ä–æ–≤–∞–Ω–∏–µ"
update_backup = "üîÑ –û–±–Ω–æ–≤–∏—Ç—å —Ä–µ–∑–µ—Ä–≤–Ω—É—é –∫–æ–ø–∏—é"
load_backup = "üíø –ó–∞–≥—Ä—É–∑–∏—Ç—å —Ä–µ–∑–µ—Ä–≤–Ω—É—é –∫–æ–ø–∏—é"
clean_backups = "üßπ –û—á–∏—Å—Ç–∫–∞ —Ä–µ–∑–µ—Ä–≤–Ω—ã—Ö –∫–æ–ø–∏–π"
system_settings = "üíª –°–∏—Å—Ç–µ–º–∞"
clean_images = "üóëÔ∏è –£–¥–∞–ª–∏—Ç—å –Ω–µ–∏—Å–ø–æ–ª—å–∑—É–µ–º—ã–µ –∏–∑–æ–±—Ä–∞–∂–µ–Ω–∏—è"
clean_images_text = "‚ö†Ô∏è –í—ã —É–≤–µ—Ä–µ–Ω—ã, —á—Ç–æ —Ö–æ—Ç–∏—Ç–µ —É–¥–∞–ª–∏—Ç—å –Ω–µ—Å–ø–æ–ª—å–∑—É–µ–º—ã–µ –∏–∑–æ–±—Ä–∞–∂–µ–Ω–∏—è? –û–Ω–∏ –±—É–¥—É—Ç —É–¥–∞–ª–µ–Ω—ã –±–µ–∑ –≤–æ–∑–º–æ–∂–Ω–æ—Å—Ç–∏ –≤–æ—Å—Å—Ç–∞–Ω–æ–≤–ª–µ–Ω–∏—è!"
clean_database = "üìö –û—á–∏—Å—Ç–∏—Ç—å –±–∞–∑—É –¥–∞–Ω–Ω—ã—Ö"
clean_database_text = "‚ö†Ô∏è –í—ã —É–≤–µ—Ä–µ–Ω—ã, —á—Ç–æ —Ö–æ—Ç–∏—Ç–µ –æ—á–∏—Å—Ç–∏—Ç—å –±–∞–∑—É –¥–∞–Ω–Ω—ã—Ö? –í—Å–µ –¥–∞–Ω–Ω—ã–µ –±—É–¥—É—Ç —É–¥–∞–ª–µ–Ω—ã –±–µ–∑ –≤–æ–∑–º–æ–∂–Ω–æ—Å—Ç–∏ –≤–æ—Å—Å—Ç–∞–Ω–æ–≤–ª–µ–Ω–∏—è!"
reset_settings = "‚öôÔ∏è –°–±—Ä–æ—Å–∏—Ç—å –Ω–∞—Å—Ç—Ä–æ–π–∫–∏"
resert_settings_text = "‚ö†Ô∏è –í—ã —É–≤–µ—Ä–µ–Ω—ã, —á—Ç–æ —Ö–æ—Ç–∏—Ç–µ —Å–±—Ä–æ—Å–∏—Ç—å –Ω–∞—Å—Ç—Ä–æ–π–∫–∏? –í—Å–µ –¥–∞–Ω–Ω—ã–µ –±—É–¥—É—Ç —É–¥–∞–ª–µ–Ω—ã –±–µ–∑ –≤–æ–∑–º–æ–∂–Ω–æ—Å—Ç–∏ –≤–æ—Å—Å—Ç–∞–Ω–æ–≤–ª–µ–Ω–∏—è!"
disable_item_image = "‚úÖ –ö–∞—Ä—Ç–∏–Ω–∫–∏ —Ç–æ–≤–∞—Ä–æ–≤"
enable_item_image = "‚ùå –ö–∞—Ä—Ç–∏–Ω–∫–∏ —Ç–æ–≤–∞—Ä–æ–≤"
checkout_settings = "üí≥ –ù–∞—Å—Ç—Ä–æ–π–∫–∏ –æ—Ñ–æ—Ä–º–ª–µ–Ω–∏—è –∑–∞–∫–∞–∑–∞"
stats_settings = "üìà –ù–∞—Å—Ç—Ä–æ–π–∫–∏ —Å—Ç–∞—Ç–∏—Å—Ç–∏–∫–∏"
graph_color = "üåà –¶–≤–µ—Ç –≥—Ä–∞—Ñ–∏–∫–∞"
border_width = "üî≤ –®–∏—Ä–∏–Ω–∞ –æ–±–≤–æ–¥–∫–∏"
title_font_size = "‚ÑπÔ∏è –†–∞–∑–º–µ—Ä –Ω–∞–∑–≤–∞–Ω–∏—è –≥—Ä–∞—Ñ–∏–∫–∞"
axis_font_size = "‚ÜîÔ∏è–†–∞–∑–º–µ—Ä —Ç–µ–∫—Å—Ç–∞ –¥–ª—è –æ—Å–µ–π"
tick_font_size = "üî¢–†–∞–∑–º–µ—Ä —Ç–µ–∫—Å—Ç–∞ –¥–ª—è –¥–µ–ª–µ–Ω–∏–π"
unavailable = "‚õîÔ∏è"
minus = "‚ûñ"
plus = "‚ûï"
enable_sticker = "‚ùå –°—Ç–∏–∫–µ—Ä –≤ –ø—Ä–∏–≤–µ—Ç—Å—Ç–≤–∏–∏"
disable_sticker = "‚úÖ –°—Ç–∏–∫–µ—Ä –≤ –ø—Ä–∏–≤–µ—Ç—Å—Ç–≤–∏–∏"
enable_phone_number = "‚ùå –ù–æ–º–µ—Ä —Ç–µ–ª–µ—Ñ–æ–Ω–∞ –ø—Ä–∏ –∑–∞–∫–∞–∑–µ"
disable_phone_number = "‚úÖ –ù–æ–º–µ—Ä —Ç–µ–ª–µ—Ñ–æ–Ω–∞ –ø—Ä–∏ –∑–∞–∫–∞–∑–µ"
enable_delivery = "‚ùå –î–æ—Å—Ç–∞–≤–∫–∞"
disable_delivery = "‚úÖ –î–æ—Å—Ç–∞–≤–∫–∞"
def delivery_price(price): return f"üöö –°—Ç–æ–∏–º–æ—Å—Ç—å –¥–æ—Å—Ç–∞–≤–∫–∏: {price}—Ä—É–±."
enable_captcha = "‚ùå CAPTCHA –ø—Ä–∏ –∑–∞–∫–∞–∑–µ"
disable_captcha = "‚úÖ CAPTCHA –ø—Ä–∏ –∑–∞–∫–∞–∑–µ"
enable_debug = "‚ùå –†–µ–∂–∏–º –æ—Ç–ª–∞–¥–∫–∏"
disable_debug = "‚úÖ –†–µ–∂–∏–º –æ—Ç–ª–∞–¥–∫–∏"

# Manager tab
view_order = "üìÇ –ü–æ—Å–º–æ—Ç—Ä–µ—Ç—å –∑–∞–∫–∞–∑"

# Misc buttons
skip = "‚è≠ –ü—Ä–æ–ø—É—Å—Ç–∏—Ç—å"
back = "üîô –ù–∞–∑–∞–¥"
confirm = "‚úÖ –î–∞"
deny = "‚ùå –ù–µ—Ç"
error = "–ü—Ä–æ–∏–∑–æ—à–ª–∞ –æ—à–∏–±–∫–∞!"
or_press_back = "–∏–ª–∏ –Ω–∞–∂–º–∏—Ç–µ –Ω–∞ –∫–Ω–æ–ø–∫—É \"–ù–∞–∑–∞–¥\"."
hide = "üôà –°–∫—Ä—ã—Ç—å"
show = "üêµ –ü–æ–∫–∞–∑–∞—Ç—å"
delete = "‚ùå –£–¥–∞–ª–∏—Ç—å"
reset = "‚ùå –°–±—Ä–æ—Å–∏—Ç—å"

if __name__ == "__main__":
    print(delivery_on)
