import { configStore } from "../store/store";
import { Env } from "@stencil/core";
export const BASE_ZIGNAL_CMS_URL = () => configStore.get('isProduction') ? 'https://zignal.zwiz.app' : 'https://develop.zignal.zwiz.app';
export const BASE_SSO_URL = () => configStore.get('isProduction') ? 'https://api.zwiz.app' : 'https://develop.api.zwiz.app';
// : 'http://localhost:5555';
export const BASE_URL = () => configStore.get('isProduction') ? 'https://d1cl6ecu5d3v2r.cloudfront.net' : 'https://dp46r1vjkg63g.cloudfront.net';
// : 'http://localhost:5556';
export const BASE_ZDESK_URL = () => configStore.get('isProduction') ? 'https://prod.api.zdesk.zwiz.app' : 'https://uat.api.zdesk.zwiz.app';
// : 'http://localhost:5556';
export const BASE_ZRMZ_URL = () => configStore.get('isProduction') ? 'https://api.zrmz.app' : 'https://develop.api.zrmz.app';
// : 'http://localhost:5556';
export const BASE_ZERVA_URL = () => configStore.get('isProduction') ? 'https://api.zerva.app' : 'https://develop.api.zerva.app';
// : 'http://localhost:5556';
export const BASE_ZWIZ_QUICK_MESSAGE_URL = () => configStore.get('isProduction') ? 'https://zwiz-tools.cms.zwiz.app' : 'https://zwiz-tools-develop.cms.zwiz.app';
export const BASE_ZDESK_QUICK_MESSAGE_URL = () => configStore.get('isProduction') ? 'https://cms.zdesk.zwiz.app' : 'https://uat.cms.zdesk.zwiz.app';
export const ZRMZ_API_URL = () => configStore.get('isProduction') ? 'https://api.zrmz.app' : 'https://develop.api.zrmz.app';
export const DEFAULT_TIMEOUT = 30000;
export const CHAT_PAGE_LIMIT = 14;
export const MESSAGE_PAGE_LIMIT = 16;
export const TAG_LENGTH = 24;
export const SEARCH_CHAT_MESSAGE_PAGE_LIMIT = 5;
export const MAX_FILE_SIZE = 25 * 1024 * 1024; // 25MB
export const MAX_DISPLAY_READS_BY = 3;
export const GET_USER_TAG_PAGE_LIMIT = 100;
export const GET_USER_TAG_MASTER_PAGE_LIMIT = 9999999999;
// GET rate limit: 4 requests per second per API route
export const RATE_LIMIT_MAX = 4;
export const RATE_LIMIT_WINDOW_MS = 1_000;
export const CLOUDFRONT_S3_SSO_URL = 'https://api-zwiz-sso.zwiz.app/api/aws/sso-sign-s3';
export const CLOUDFRONT_S3_SSO_KEY = Env.CLOUDFRONT_S3_SSO_KEY;
export const TRANSLATE_LANGUAGES = {
    'af': 'Afrikaans',
    'ar': 'Arabic',
    'bg': 'Bulgarian',
    'bn': 'Bengali',
    'ca': 'Catalan',
    'cs': 'Czech',
    'cy': 'Welsh',
    'da': 'Danish',
    'de': 'German',
    'el': 'Greek',
    'en': 'English',
    'es': 'Spanish',
    'et': 'Estonian',
    'fa': 'Persian',
    'fi': 'Finnish',
    'fr': 'French',
    'gu': 'Gujarati',
    'he': 'Hebrew',
    'hi': 'Hindi',
    'hr': 'Croatian',
    'hu': 'Hungarian',
    'id': 'Indonesian',
    'it': 'Italian',
    'ja': 'Japanese',
    'kn': 'Kannada',
    'ko': 'Korean',
    'lt': 'Lithuanian',
    'lv': 'Latvian',
    'mk': 'Macedonian',
    'ml': 'Malayalam',
    'mr': 'Marathi',
    'ne': 'Nepali',
    'nl': 'Dutch',
    'no': 'Norwegian',
    'pa': 'Punjabi',
    'pl': 'Polish',
    'pt': 'Portuguese',
    'ro': 'Romanian',
    'ru': 'Russian',
    'sk': 'Slovak',
    'sl': 'Slovenian',
    'so': 'Somali',
    'sq': 'Albanian',
    'sv': 'Swedish',
    'sw': 'Swahili',
    'ta': 'Tamil',
    'te': 'Telugu',
    'th': 'Thai',
    'tl': 'Tagalog',
    'tr': 'Turkish',
    'uk': 'Ukrainian',
    'ur': 'Urdu',
    'vi': 'Vietnamese',
    'zh-cn': 'Chinese - Simplified',
    'zh-tw': 'Chinese - Traditional',
};
export const STICKER_PACKAGES = {
    '11537': [
        52002734,
        52002735,
        52002736,
        52002737,
        52002738,
        52002739,
        52002740,
        52002741,
        52002742,
        52002743,
        52002744,
        52002745,
        52002746,
        52002747,
        52002748,
        52002749,
        52002750,
        52002751,
        52002752,
        52002753,
        52002754,
        52002755,
        52002756,
        52002757,
        52002758,
        52002759,
        52002760,
        52002761,
        52002762,
        52002763,
        52002764,
        52002765,
        52002766,
        52002767,
        52002768,
        52002769,
        52002770,
        52002771,
        52002772,
        52002773,
    ],
    '11538': [
        51626497,
        51626494,
        51626495,
        51626496,
        51626498,
        51626499,
        51626500,
        51626501,
        51626502,
        51626503,
        51626504,
        51626505,
        51626506,
        51626507,
        51626508,
        51626509,
        51626510,
        51626511,
        51626512,
        51626513,
        51626514,
        51626515,
        51626516,
        51626517,
        51626518,
        51626519,
        51626520,
        51626521,
        51626522,
        51626523,
        51626524,
        51626525,
        51626526,
        51626527,
        51626528,
        51626529,
        51626530,
        51626531,
        51626532,
        51626533,
    ],
    '11539': [
        52114113,
        52114110,
        52114111,
        52114112,
        52114114,
        52114115,
        52114116,
        52114117,
        52114118,
        52114119,
        52114120,
        52114121,
        52114122,
        52114123,
        52114124,
        52114125,
        52114126,
        52114127,
        52114128,
        52114129,
        52114130,
        52114131,
        52114132,
        52114133,
        52114134,
        52114135,
        52114136,
        52114137,
        52114138,
        52114139,
        52114140,
        52114141,
        52114142,
        52114143,
        52114144,
        52114145,
        52114146,
        52114147,
        52114148,
        52114149,
    ],
};
export const DEFAULT_COLOR = '#E02847';
// Check by lowercase
export const LAST_MESSAGE_TYPE_TRANSLATION_LIST = ['{image}', '{sticker}', '{audio}', '{video}', '{location}', '{text}', '{file}', '{template}', '{ig_reel}', '{story_mention}', '{share}', '{unsupported}', '{zpt-answered}', '{zpt-unanswered}', '{zpt-debug}', '{zwiz-broadcast}', '{zwiz-broadcast-mm}', '{menu_list}', '{referral}', '{feed}', '{line_add_friend}', '{line_blocked}', '{line_unblocked}', '{qa_button_card}'];
export var EnumBookingStatus;
(function (EnumBookingStatus) {
    EnumBookingStatus["PENDING"] = "PENDING";
    EnumBookingStatus["ACCEPTED"] = "ACCEPTED";
    EnumBookingStatus["POSTPONED"] = "POSTPONED";
    EnumBookingStatus["COMPLETED"] = "COMPLETED";
    EnumBookingStatus["CANCELED"] = "CANCELED";
})(EnumBookingStatus || (EnumBookingStatus = {}));
export var EnumPaymentStatus;
(function (EnumPaymentStatus) {
    EnumPaymentStatus["NO_DEPOSIT"] = "NO_DEPOSIT";
    EnumPaymentStatus["PENDING"] = "PENDING";
    EnumPaymentStatus["WAITING_FOR_SLIP_CHECK"] = "WAITING_FOR_SLIP_CHECK";
    EnumPaymentStatus["PAID"] = "PAID";
    EnumPaymentStatus["REFUND"] = "REFUND";
})(EnumPaymentStatus || (EnumPaymentStatus = {}));
export const DB_NAME = 'ZignalChatCacheDB';
// ** must update db version in cms repo if change **
export const DB_VERSION = 3;
export const CACHE_LIMITS = {
    MAX_CACHED_CHATS: 100,
    MAX_MESSAGES_PER_CHAT: 500,
    MAX_CACHED_USERS: 200,
    CHAT_STALE_MS: 5 * 60 * 1000, // 5 minutes
    MESSAGE_STALE_MS: 5 * 60 * 1000, // 5 minutes
    USER_TTL_MS: 10 * 60 * 1000, // 10 minutes
    METADATA_TTL_MS: 30 * 60 * 1000, // 30 minutes
    SESSION_TOKEN_TTL_MS: 5 * 60 * 1000, // 5 minutes
    MAX_MEDIA_CACHE_BYTES: 50 * 1024 * 1024, // 50MB
    MAX_MEDIA_CACHE_ENTRIES: 200,
};
export const CACHE_ENABLED = false;
export const BLOB_CACHE_ENABLED = false;
export const MESSAGE_LIMIT = {
    line: 5000,
    facebook: 2000,
    instagram: 1000,
    whatsapp: 4096,
    tiktok: 5000,
};
