
export const shared_consts = {
  Accepted: {
    CHECK_READ_GUIDELINES: {
      value: 1,
      label: 'steps.linee_guida',
      icon: 'fas fa-user-shield',
      color: 'red',
    },
    CHECK_SEE_VIDEO_PRINCIPI: {
      value: 2,
      label: 'steps.video_intro',
      icon: 'fas fa-tools',
      color: 'green',
    },
  },
  LIMIT_NOTIF_FOR_USER: 200,
  LIMIT_NOTIFCOINS_FOR_USER: 200,

  PROD: {
    TUTTI: 0,
    GAS: 1,
    BOTTEGA: 2,
  },

  UNITS_OF_MEASURE: {
    NESSUNO: 0,
    GRAMMI: 1,
    CHILI: 2,
    LITRI: 3,
    MILLILITRI: 4,
    PEZZI: 10,
    UOVA: 15,
  },

  TYPECASH: {
    NESSUNO: 0,
    IN: 1,
    OUT: 2,
  },

  AdType: {
    OFFRO: 1,
    CERCO: 2,
  },

  TypeCashStr: [
    {
      label: '[Nessuno]',
      value: 0,
    },
    {
      label: 'Ingresso',
      value: 1,
    },
    {
      label: 'Uscita',
      value: 2,
    },
  ],

  Units_Of_Measure_ListBox: [
    {
      label: '[Nessuno]',
      short: '',
      value: 0,
    },
    {
      label: 'Grammi (g)',
      short: 'g',
      value: 1,
    },
    {
      label: 'Chili (kg)',
      short: 'kg',
      value: 2,
    },
    {
      label: 'Litri (Lt)',
      short: 'Lt',
      value: 3,
    },
    {
      label: 'MilliLitri (ml)',
      short: 'ml',
      value: 4,
    },
    {
      label: 'Pezzi (p)',
      short: 'p',
      value: 10,
    },
    {
      label: 'Uova',
      short: 'uova',
      value: 15,
    },
  ],

  CallFunz: {
    SOSTITUISCI: 345,
    AGGIUNGI_NUOVO_IMBARCO: 380,
    CANCELLA_IMBARCO: 385,
    DAMMI_PRIMO_UTENTE_LIBERO: 390,
    GET_VALBYTABLE: 400,
    SET_VALBYTABLE: 410,
    ZOOM_GIA_PARTECIPATO: 510,
    REGISTRATION: 6,
    RICHIESTA_GRUPPO: 10,
    RICHIESTA_AMICIZIA: 15,
    RICHIESTA_HANDSHAKE: 16,
    RICHIESTA_CIRCUIT: 20,
    RICHIESTA_FIDO: 25,
    ENTRA_RIS_ITALIA: 30,
  },

  ELEMTYPE: {
    TITLE: 5,
    MARGINI: 6,
    CARD: 7,
    IMGTITLE: 8,
    IMGPOSTER: 9,
    TEXT: 10,
    HTML: 20,
    IMAGE: 30,
    IMAGEUPLOAD: 35,
    SEPARATOR: 40,
    VIDEO: 50,
    PAGE: 55,
    PAGEINTRO: 58,
    CALENDAR: 70,
    CAROUSEL_IDISCIPLINE: 80,
    CAROUSEL_HOME: 85,
    CHECK_EMAIL: 100,
    CAROUSEL_IMGS: 110,
    OPENSTREETMAP: 120,
    MAINVIEW: 130,
    CHECKAPPRUNNING: 135,
    DASHBOARD: 140,
    DASHGROUP: 145,
    MOVEMENTS: 148,
    CSENDRISTO: 150,
    STATUSREG: 160,
    CHECKIFISLOGGED: 170,
    INFO_VERSION: 180,
    BOTT_CONDIVIDI: 190,
    BOTT_CHAT_TERRITORIALE: 192,
    BUTTON: 195,
    PRESENTAZIONE: 200,
    MYACTIVITIES: 205,
    NOTIFATTOP: 210,
    CHART: 220,
    CHECKNEWVERSION: 230,
    CHECKTESTENV: 240,
    BTN_REG: 250,
    BTN_REG_BYBOT: 255,
    REGISTRATION: 258,
    BTN_LOGIN: 260,
    FOOTER: 270,
    PROFILETUTORIAL: 280,
    VISUVIDEOPROMOANDPDF: 290,
    ECOMMERCE: 300,
    CATALOGO: 310,
    TOOLSAI: 320,
    MAPPA: 350,
    MAPPAUTENTI: 360,
    MAPPACOMUNI: 370,
    MAPPAGETCOORDINATE: 380,
    EDITADDRESSBYCOORD: 390,
    GRID_ORIZ: 400,
    QRCODE: 410,
    CATALOGLIST: 420,
    SEARCHPRODUCT: 430,
  },

  QUERYTYPE_MYGROUP: 1,
  QUERYTYPE_REFUSED_USER_GRP: 2,
  ALL_SAW_AND_ACCEPTED: 3,
  QUERYTYPE_CIRCUIT: 10,
  QUERYTYPE_REFUSED_USER_CIRCUIT: 12,
  QUERYTYPE_LIST_MOVEMENTS: 15,
  QUERYTYPE_LIST_ALLMOVEMENTS: 16,
  QUERYTYPE_LIST_MOVEMENTS_GROUPNAME: 17,
  QUERYTYPE_LIST_MOVEMENTS_CONTOCOM: 18,
  QUERYTYPE_GROUP_CIRCUIT: 20,
  QUERYTYPE_REFUSED_GROUP_CIRCUIT: 22,

  FILTER_EXTRALIST_NOT_REGISTERED: 1,
  FILTER_EXTRALIST_NOT_CONTACTED: 2,
  FILTER_EXTRALIST_WITH_NOTE: 4,
  FILTER_USER_NO_ZOOM: 8,
  FILTER_USER_NO_INVITANTE: 16,
  FILTER_USER_NO_TELEGRAM_ID: 32,
  FILTER_USER_CODICE_AUTH_TELEGRAM: 64,
  FILTER_USER_NO_EMAIL_VERIFICATA: 128,
  FILTER_USER_NO_DREAM: 256,
  FILTER_USER_TELEGRAM_BLOCKED: 1024,
  FILTER_ATTIVI: 2048,
  FILTER_NASCOSTI: 4096,
  FILTER_NAVI_NON_PRESENTI: 8192,
  FILTER_QUALIFIED: 16384,
  FILTER_ASK_ZOOM_VISTO: 32768,
  FILTER_HOURS_MYLIST: 65536,
  FILTER_HOURS_ALL: 131072,
  FILTER_REPORTED: 262144,
  FILTER_TO_MAKE_MEMBERSHIP_CARD: 524288,
  FILTER_MEMBERSHIP_CARD_OK: 1048576,
  FILTER_USER_NO_VERIFIED_APORTADOR: 2097152,
  FILTER_USER_SI_TELEGRAM_ID: 4194304,
  FILTER_USER_WITHOUT_USERNAME_TELEGRAM: 8388608,
  FILTER_USER_PROVINCE: 16777216,
  FILTER_USER_SENZA_PROVINCE: 33554432,
  FILTER_USER_SENZA_CIRCUITO: 67108864,
  FILTER_USER_CON_CIRCUITO: 134217728,
  FILTER_USER_ONLINE_6_MESI: 268435456,
  FILTER_NOTE: 536870912,
  FILTER_SENZA_NOTE: 1073741824,
  FILTER_DA_CONTATTARE: 2147483648,
  FILTER_FACILITATORE: 4294967296,

  OPTIONS_SEARCH_ONLY_FULL_WORDS: 1,
  OPTIONS_SEARCH_USER_ONLY_FULL_WORDS: 2,
  OPTIONS_SEARCH_USER_ALL_WORDS: 4,
  OPTIONS_ADD_COUNT_FAVORITE: 8,

  FRIENDSCMD: {
    SETTRUST: 121,
    REQFRIEND: 125,
    SETFRIEND: 132,
    SETHANDSHAKE: 133,
    REMOVE_FROM_MYFRIENDS: 144,
    REFUSE_REQ_FRIEND: 145,
    CANCEL_REQ_FRIEND: 146,
    REMOVE_FROM_MYHANDSHAKE: 147,
    BLOCK_USER: 155,
    UNBLOCK_USER: 156,
    REPORT_USER: 158,
    FIND_PEOPLE: 166,
  },

  GROUPSCMD: {
    SETTRUST: 1121,
    REQGROUP: 1125,
    SETGROUP: 1132,
    REMOVE_FROM_MYGROUP: 1144,
    REFUSE_REQ_GROUP: 1145,
    CANCEL_REQ_GROUP: 1146,
    BLOCK_GROUP: 1155,
    FIND_GROUP: 1166,
    DELETE_GROUP: 1170,
    ADDADMIN_OFMYGROUP: 1180,
    REMOVEADMIN_OFMYGROUP: 1185,
  },

  CIRCUITCMD: {
    REQ: 2000,
    SET: 2001,
    SETFIDO: 2005,
    REMOVE_FROM_MYLIST: 2144,
    REFUSE_REQ: 2145,
    CANCEL_REQ: 2146,
    DELETE: 2170,
    ADDADMIN: 2180,
    REMOVEADMIN: 2185,
    SENDCOINS_REQ: 2200,
    SENDCOINS_ACCEPT: 2210,
    SENDCOINS_REFUSE: 2220,
  },

  PUBTOSHARE: {
    ALL: 0,
    ONLY_TABLE_FOLLOW: 1,
  },

  REPORT_FILT_RESP: 1,
  REPORT_FILT_ATTIVITA: 2,

  TAB_COUNTRY: 'countries',
  TAB_CITIES: 'cities',
  TAB_PROVINCES: 'provinces',
  TAB_CARDS: 'cards',
  TAB_PHONES: 'phones',
  TAB_SITES: 'sites',
  TAB_SETTINGS: 'settings',

  KEY_TO_CRYPTED: ['PWD_FROM'],

  TablePickup: ['countries', 'phones'],

  PARAM_SHOW_PROVINCE: 1,

  TABLES_ID_STRING: [
    'circuits',
    'accounts',
    'movements',
    'mygroups',
  ],

  TABLES_ID_NUMBER: [
    'permissions',
    'levels',
    'adtypes',
    'adtypegoods',
    'statusSkills',
    'sectors',
    'goods',
    'sectorgoods',
    'catgrps',
    'skills',
    'subskills',
    'cities',
    'provinces',
    // 'myskills',
    // 'mybachecas',
    // 'myhosps',
    // 'mygoods',
    // 'mygroups'
  ],

  TABLES_MYSKILLS: 'myskills',
  TABLES_MYBACHECAS: 'mybachecas',
  TABLES_MYHOSPS: 'myhosps',
  TABLES_MYGOODS: 'mygoods',
  TABLES_MYEVENTS: 'myevents',
  TABLES_CIRCUITS: 'circuits',
  TABLES_MYGROUPS: 'mygroups',
  TABLES_ATTIVITAS: 'attivitas',
  TABLES_CATALOG: 'catalogs',
  TABLES_LISTA_EDITORI: 'lista_editori',

  TABFILTRI_UTENTE: 'filtriutente',

  RECFILTRI_UTENTE: [
    {
      label: '[Tutti]',
      value: -100,
    },
    // {
    //   label: 'Online almeno da 6 mesi',
    //   value: 268435456, // FILTER_USER_ONLINE_6_MESI: 268435456,
    // },
    {
      label: 'Senza Provincia',
      value: 33554432, // FILTER_USER_SENZA_PROVINCE
    },
    {
      label: 'Dentro ad un Circuito RIS',
      value: 134217728, //FILTER_USER_CON_CIRCUITO:
    },
    {
      label: 'Senza Circuito RIS',
      value: 67108864, // FILTER_USER_SENZA_CIRCUITO
    },
    {
      label: 'Con Provincia inserita',
      value: 16777216, //FILTER_USER_PROVINCE:
    },

  ],

  RECFILTRI_UTENTE_FACIL: [
    {
      label: 'Facilitatore RISO',
      value: 4294967296, //FILTER_FACILITATORE: ,:
    },
    {
      label: 'Non ancora approvati dall\'invitante',
      value: 2097152, // shared_consts.FILTER_USER_NO_VERIFIED_APORTADOR
    },
    {
      label: 'Senza Telegram BOT',
      value: 32, //shared_consts.FILTER_USER_NO_TELEGRAM_ID
    },
    {
      label: 'Senza username Telegram',
      value: 8388608, // shared_consts.FILTER_USER_WITHOUT_USERNAME_TELEGRAM
    },
    {
      label: 'Chat "BOT RISO" eliminata',
      value: 1024, //shared_consts.FILTER_USER_TELEGRAM_BLOCKED
    },
    {
      label: 'Con Note Facilitatore',
      value: 536870912, //shared_consts.FILTER_NOTE
    },
    {
      label: 'Senza Note Facilitatore',
      value: 1073741824, //shared_consts.FILTER_SENZA_NOTE
    },
    {
      label: 'Da Contattare',
      value: 2147483648, //shared_consts.FILTER_DA_CONTATTARE
    },
  ],

  MYTABS: [{ id: 0, table: 'none' },
  { id: 1, table: 'myskills' },
  { id: 2, table: 'mybachecas' },
  { id: 3, table: 'myhosps' },
  { id: 4, table: 'mygoods' },
  { id: 5, table: 'myevents' },
  { id: 6, table: 'attivitas' }],

  // Condivise
  TABLES_FAVORITE_BOOKMARK: ['myskills', 'mygoods', 'mybachecas', 'myhosps', 'attivitas'],
  TABLEFORUSERS: [
    'myskills',
    'mygoods',
    'mybachecas',
    'myhosps',
  ],

  // Solo per VUE.JS

  TABLES_INSERT_ALMOST_ONE_TO_ENABLE_CIRCUIT: ['myskills', 'myhosps', 'mygoods'],
  TABLES_WITH_FILTER_FIELD: ['caldate'],
  TABLES_WITH_SPECIAL_FILTER: ['pub_to_share'],
  COL_WITH_FILTER_GTE: ['numMaxPeopleHosp'],
  COL_WITH_ARRFILTER_IN_AND: ['preferences'],
  TABLES_WITH_DATE: ['mybachecas', 'myhosps'], // 'mybachecas'
  TABLES_WITH_SORTING: ['mybachecas', 'myhosps'],
  TABLES_REC_ID: ['skills', 'goods', 'subskills', 'myskills', 'mybachecas', 'myhosps', 'mygoods'],

  // costanti.VISUTABLE_SCHEDA_USER, VISUTABLE_SCHEDA_GROUP, VISUTABLE_USER_TABGROUP, VISUTABLE_USER_TABCIRCUIT, VISUTABLE_GROUP_CIRCUIT, VISUTABLE_
  VERTIC_SHOW_GRID: [-1, 2, -3, -4, -5, -6, -10],

  TABLES_UPDATE_LASTIFIED: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'bots'],
  TABLES_FINDER: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'mygroups'],
  TABLES_VISU_CMYSRECCARD: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'mygroups', 'catalogs'],
  TABLES_SHOW_ADTYPE: ['myskills', 'mygoods', 'myhosps'],

  TABLES_VISU_LISTA_USER: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'users'],
  TABLES_FIELDS_DESCR_AND_CITY_AND_USER: ['myskills', 'mybachecas', 'myhosps', 'mygoods'],

  TABLES_ORDER_DATE_UPDATED: ['myskills', 'myhosps', 'mygoods'],
  TABLES_ORDER_DESCR: ['mygroups'],

  TABLES_VISU_IMG: ['myskills', 'myhosps', 'mygoods', 'mygroups'],
  TABLES_DIRECTORY_A_PARTE: ['mygroups'],
  TABLES_WITH_ADMINS: ['mygroups', 'circuits'],
  TABLES_DIRECTORY_SINGLE_IMG: ['circuits', 'catalogs'],
  TABLES_IMAGEFILE_SINGOLO: ['productInfos'],

  TABLES_PER_EDITORI: ['catalogs'],

  TABLES_VISU_MAP: 'attivitas',

  VISIB_ALL: 0,
  VISIB_ONLYIF_VERIFIED: 1,
  VISIB_ONLY_MANAGER: 2,
  VISIB_ONLY_ADMIN: 4,

  CIRCUIT_CFG: {
    MULT_FIDO_USER: 2.0,
    MULT_FIDO_GROUP: 2.0,
  },

  Visibility_Group: {
    PRIVATE: 1,
    HIDDEN: 2,
    // PASSWORD: 4,
  },

  BOTTYPE_NONE: 0,
  BOTTYPE_PAGE: 1,
  BOTTYPE_LINK: 2,
  BOTTYPE_TEXT: 3,
  BOTTYPE_MENU: 4,
  BOTTYPE_MARKDOWN: 5,
  BOTTYPE_BOTTONI_INLINE: 6,

  CashType: {
    None: 0,
    Incoming: 1,
    Outcoming: 2,
  },

  CmdConvertPDF: {
    RIDUCI_DIMENSIONI: 1,
  },

  Cmd: {
    PROVINCE: 1,
    COMUNI: 2,
    CITIES_SERVER: 3,
    CAT_SKILL_TXT: 4,
    CAT_NO_SPAZI: 5,
    CAT_GOODS_TXT: 10,
    PRODUCTS: 20,
    PRODUCTS_V2: 22,
    INVENTARIO: 30,
    MACRO_CATALOGO_JSON: 40,
    MACRO_RANKING: 50,
    MACRO_DESCRELINKSITOWEB: 60,
  },

  BotType: [
    {
      value: 0,
      label: '[Nessuno]',
    },
    {
      value: 1,
      label: 'Pagina',
    },
    {
      value: 2,
      label: 'Link',
    },
    {
      value: 3,
      label: 'Testo',
    },
    {
      value: 4, // BOTTYPE_MENU
      label: 'Menu',
    },
    {
      value: 5,
      label: 'MarkDown',
    },
    {
      value: 6,
      label: 'Bottoni InLine',
    },
  ],

  Shippings: [
    {
      label: 'Da Ritirare Personalmente',
      value: 1,
    },
    {
      label: 'Spedizione Tramite Corriere',
      value: 2,
    },
    {
      label: 'Spedizione Tramite Posta',
      value: 3,
    },
    {
      label: 'Consegna a Domicilio',
      value: 4,
    },
  ],

  OtherFilters: [
    {
      label: 'AutoProduzione',
      value: 1,
    },
    {
      label: 'Ecovillaggio',
      value: 2,
    },
    {
      label: 'Azienda Prodotti Locali',
      value: 4,
    },
    {
      label: 'Upcycle',
      value: 8,
    },
  ],

  TypeHosps: [
    {
      value: 1,
      label: 'Scambio Casa',
    },
    {
      value: 2,
      label: 'Ospitalità',
    }
  ],

  TipoDiAttivita: [
    {
      value: 0,
      label: '[Nessuna]',
      note: '',
    },
    {
      value: 1,
      label: 'Individuo',
      note: 'Artigiano, professionista, insegnante, consulente',
    },
    {
      value: 2,
      label: 'Non Profit',
      note: 'Associazione, comitato, fondazione, cooperativa',
    },
    {
      value: 3,
      label: 'Profit',
      note: 'Azienda, société comerciale, banca, ...',
    },
    {
      value: 4,
      label: 'Pubblico',
      note: 'Comune, regione, ministero, ...',
    },
    {
      value: 5,
      label: 'Altro',
    },
  ],

  TypeAccom: [
    {
      value: 1,
      label: 'Letti matrimoniali',
    },
    {
      value: 2,
      label: 'Letti singoli',
    },
    {
      value: 3,
      label: 'Divani-letto',
    },
    {
      value: 4,
      label: 'Almaca',
    },
    {
      value: 5,
      label: 'sul materasso',
    },
    {
      value: 6,
      label: 'sul tappeto',
    },
    {
      value: 7,
      label: 'sacco a pelo',
    },
    {
      value: 8,
      label: 'Culla',
    },
  ],

  LocationAccom: [
    {
      value: 1,
      label: 'Camera Privata',
    },
    {
      value: 2,
      label: 'Camera Condivisa',
    },
    {
      value: 3,
      label: 'Soggiorno',
    },
    {
      value: 4,
      label: 'Camper',
    },
    {
      value: 5,
      label: 'Roulotte',
    },
    {
      value: 6,
      label: 'Tenda',
    },
    {
      value: 7,
      label: 'Casetta sull\'Albero',
    },
    {
      value: 8,
      label: 'Yurta',
    },
    {
      value: 9,
      label: 'Giardino',
    },
    {
      value: 10,
      label: 'Aria aperta',
    },
  ],


  People: [
    {
      value: 0,
      label: 'Nessuno',
    },
    {
      value: 1,
      label: '1',
    },
    {
      value: 2,
      label: '2',
    },
    {
      value: 3,
      label: '3',
    },
    {
      value: 4,
      label: '4',
    },
    {
      value: 5,
      label: '5',
    },
    {
      value: 6,
      label: '6',
    },
    {
      value: 7,
      label: '7',
    },
    {
      value: 8,
      label: '8',
    },
    {
      value: 9,
      label: '9',
    },
    {
      value: 10,
      label: '10',
    },
    {
      value: 11,
      label: '11',
    },
    {
      value: 12,
      label: '12',
    },
    {
      value: 15,
      label: '15',
    },
    {
      value: 20,
      label: '20',
    },
  ],

  Preferences: [
    {
      value: 2,
      label: 'Si accettano cani',
    },
    {
      value: 3,
      label: 'Si accettano gatti',
    },
    {
      value: 4,
      label: 'E\' consentito fumare in casa',
    },
    {
      value: 5,
      label: 'Accessibile con sedia a rotelle',
    },
    {
      value: 6,
      label: 'Parcheggio gratuito nella proprietà',
    },
    {
      value: 7,
      label: 'Wi-fi disponibile',
    },
    {
      value: 8,
      label: 'Sono permessi soggiorni a lungo termine',
    },
    {
      value: 9,
      label: 'Cucina Vegetariana',
    },
    {
      value: 10,
      label: 'Cucina Vegana',
    },
    {
      value: 11,
      label: 'Uso della Cucina',
    },
    {
      value: 12,
      label: 'Uso della Lavatrice',
    },
    {
      value: 13,
      label: 'Aria condizionata',
    },
    {
      value: 14,
      label: 'Ventilatore',
    },
    {
      value: 15,
      label: 'Doccia all\'aperto',
    },
    {
      value: 16,
      label: 'TV',
    },
    {
      value: 17,
      label: 'Eventi consentiti',
    },
    {
      value: 18,
      label: 'Adatto a bambini da 2 a 12 anni',
    },
    {
      value: 19,
      label: 'Adatto ai neonati (fino ai 2 anni)',
    },
    {
      value: 20,
      label: 'Biancheria inclusa',
    },
    {
      value: 21,
      label: 'Biancheria su richiesta (a parte)',
    },
    {
      value: 22,
      label: 'Asciugamani',
    },
    {
      value: 23,
      label: 'Asciugacapelli',
    },
    {
      value: 24,
      label: 'Riscaldamento a legna',
    },
    {
      value: 25,
      label: 'Riscaldamento a gas',
    },
  ],

  Regions: [
    {
      value: 'ABR',
      label: 'Abruzzo',
    },
    {
      value: 'BAS',
      label: 'Basilicata',
    },
    {
      value: 'CAL',
      label: 'Calabria',
    },
    {
      value: 'CAM',
      label: 'Campania',
    },
    {
      value: 'EMR',
      label: 'Emilia-Romagna',
    },
    {
      value: 'FVG',
      label: 'Friuli Venezia Giulia',
    },
    {
      value: 'LAZ',
      label: 'Lazio',
    },
    {
      value: 'LIG',
      label: 'Liguria',
    },
    {
      value: 'LOM',
      label: 'Lombardia',
    },
    {
      value: 'MAR',
      label: 'Marche',
    },
    {
      value: 'MOL',
      label: 'Molise',
    },
    {
      value: 'PIE',
      label: 'Piemonte',
    },
    {
      value: 'PUG',
      label: 'Puglia',
    },
    {
      value: 'RSM',
      label: 'Repubblica di San Marino',
    },
    {
      value: 'SAR',
      label: 'Sardegna',
    },
    {
      value: 'SIC',
      label: 'Sicilia',
    },
    {
      value: 'TOS',
      label: 'Toscana',
    },
    {
      value: 'TAA',
      label: 'Trentino-Alto Adige',
    },
    {
      value: 'UMB',
      label: 'Umbria',
    },
    {
      value: 'VDA',
      label: 'Valle d\'Aosta',
    },
    {
      value: 'VEN',
      label: 'Veneto',
    },
    {
      value: 'EST',
      label: 'Estero',
    },
    {
      value: 'ONL',
      label: 'On Line',
    },
    {
      value: 'ITA',
      label: 'Italia',
    },
  ],

  Lang: [
    {
      value: 'it',
      label: 'Italiano',
    },
    {
      value: 'es',
      label: 'Spagnolo',
    },
    {
      value: 'enUs',
      label: 'Inglese',
    },
  ],

  Visibility: [
    {
      value: 1,
      label: 'Verificato',
    },
    {
      value: 2,
      label: 'Gestione',
    },
    {
      value: 4,
      label: 'Admin',
    },
  ],

  Cat_Interesse_Arcadei: [
    {
      value: 1,
      label: 'Agricoltura sostenibile e naturale, autonomia alimentare locale (orto, g.a.s.)',
    },
    {
      value: 2,
      label: 'Creazione ed Integrazione ecologica di nuove strutture Abitative, rimboschimento, conservazione del territorio.',
    },
    {
      value: 4,
      label: 'Economia circolare e creazione di sistemi di unità di conto scambio beni e servizi, sistemi di baratto, dono e solidarietà.',
    },
    {
      value: 8,
      label: 'Ricerca, sviluppo e implementazione di tecnologie di approvigionamento energetico.',
    },
    {
      value: 16,
      label: 'Risveglio del potenziale umano e ricerca spirituale.',
    },
    {
      value: 32,
      label: 'Benessere, salute e guarigione relazionale della comunità.',
    },
    {
      value: 64,
      label: 'Formazione, informazione, divulgazione, Educazione e trasmissione generazionale della conoscenza.',
    },
    {
      value: 128,
      label: 'Convivialità, Arte e Cultura. Tutela, conservazione e promozione delle tradizioni e culture locali.',
    },
  ],

  Pub_to_Share: [
    {
      value: 0,
      label: 'Tutti',
    },
    {
      value: 1,
      label: 'Miei Gruppi',
    },
  ],


  VisibilGroup: [
    {
      value: 1,
      label: 'Privato',
      hint: 'Solo i membri possono vedere chi fa parte del gruppo'
    },
    {
      value: 2,
      label: 'Nascosto',
      hint: 'il Gruppo non sarà visibile nella ricerca'
    },
  ],

  StatusCircuit: [
    {
      value: 0,
      label: '',
      hint: ''
    },
    {
      value: 1,
      label: 'Creazione Gruppo in corso',
      hint: 'Prima di abilitare il circuito monetario RIS, è consigliato raggiungere un certo numero di partecipanti.',
      icon: 'fas fa-users',
    },
    {
      value: 2,
      label: 'Sottoscrizione regolamento',
      hint: 'I membri devono ora accettare il regolamento prima di attivare gli scambi in RIS',
      icon: 'far fa-hourglass',
    },
    {
      value: 3,
      label: 'Circuito Abilitato️',
      hint: 'il Circuito è stato abilitato allo scambio di monete RIS',
      icon: 'far fa-check-circle',
    },
  ],

  Permissions: {
    Admin: {
      value: 1,
      label: 'pages.Admin',
      icon: 'fas fa-user-shield',
      color: 'red',
    },
    Manager: {
      value: 2,
      label: 'otherpages.manage.manager',
      icon: 'fas fa-tools',
      color: 'green',
    },
    Teacher: {
      value: 4,
      label: 'event.teacher',
      icon: 'fas fa-user-tie',
      color: 'blue',
    },
    Facilitatore: {
      value: 8,
      label: 'dashboard.facilitatore',
      icon: 'fas fa-user-tie',
      color: 'fuchsia',
    },
    Editor: {
      value: 16,
      label: 'dashboard.Editor',
      icon: 'fas fa-user-tie',
      color: 'orange',
    },
    Zoomeri: {
      value: 32,
      label: 'dashboard.zoomeri',
      icon: 'fas fa-user-tie',
      color: 'yellow',
    },
    Department: {
      value: 64,
      label: 'pages.department',
      icon: 'fas fa-user-tie',
      color: 'yellow',
    },
    Grafico: {
      value: 128,
      label: 'dashboard.grafico',
      icon: 'fas fa-paint-brush',
      color: 'green',
    },
    Commerciale: {
      value: 256,
      label: 'dashboard.Commerciale',
      icon: 'fas fa-briefcase',
      color: 'brown',
    },
  },

  MessageOptions: {
    Notify_ByEmail: 2,
    Notify_ByPushNotification: 4,
  },

  CmdToSend: {
    SHARE_MSGREG: 1,
    SHARE_TEXT: 2,
    SHARE_ANNUNCIO: 3,
  },

  TypeMsg: {
    SEND_TO_ALL: 1,
    SEND_TO_SOCI: 2,
    SEND_TO_SOCIO_RESIDENTE: 3,
    SEND_TO_NON_SOCI: 10,
    SEND_TO_PAOLO: 20,
    SEND_TO_USER: 25,
    SEND_TO_GROUP: 30,
    SEND_TO_MYSELF: 40,
    SEND_TO_TELEG_NO_USERNAME_TELEG: 50,
    SEND_TO_TELEG_NO_VERIF_BY_APORTADOR: 60,
  },

  TypeMsg_Actions: {
    NORMAL: 0,
    YESNO: 1,
    OPZ1_2: 2,
  },

  whatMsgToSend: {
    MSG_OF_TEMPLATE: 1,
    MSG_TEXT: 2,
  },

  selectwhatMsgToSend: [
    {
      id: 1,
      label: 'Messaggio su Template',
      value: 1,  //MSG_OF_TEMPLATE
    },
    {
      id: 2,
      label: 'Messaggio di Testo',
      value: 2,  // MSG_TEXT
    },
  ],

  selectActions: [
    {
      id: 0,
      label: 'Normale',
      value: 0,
    },
    {
      id: 1,
      label: 'Si / No',
      value: 1,
    },
    {
      id: 2,
      label: 'Opzione 1 / Opzione 2',
      value: 2,
    },
  ],

  selectSendReally: [
    {
      id: 0,
      label: 'Vedi quanti msg saranno inviati',
      value: false,
    },
    {
      id: 1,
      label: 'Invia il messaggio veramente',
      value: true,
    },
  ],
  selectDestination: [
    {
      id: 0,
      label: 'A Tutti',
      value: 1,
    },
    {
      id: 1,
      label: 'Solo ai Soci',
      value: 2,
    },
    {
      id: 2,
      label: 'Solo ai Soci Residenti',
      value: 3,
    },
    {
      id: 3,
      label: 'Solo ai NON Soci',
      value: 10,
    },
    {
      id: 4,
      label: 'a Surya (test)',
      value: 20,
    },
    {
      id: 5,
      label: 'a un Utente',
      value: 25,  //TypeMsg.SEND_TO_USER
    },
    {
      id: 6,
      label: 'a un Gruppo',
      value: 30,  //SEND_TO_GROUP: 30,

    },
    {
      id: 7,
      label: 'a me stesso',
      value: 40,  //SEND_TO_MYSELF: 40,

    },
    {
      id: 8,
      label: 'Abilitati Telegram (senza Username telegram)',
      value: 50,  //SEND_TO_TELEG_NO_USERNAME_TELEG: 50,

    },
    {
      id: 9,
      label: 'Abilitati Telegram (Non Verificati dall\'Invitante)',
      value: 60,  //SEND_TO_TELEG_NO_VERIF_BY_APORTADOR: 60,

    },
  ],

  ShowCode: {
    ALL: 1,
    CODE: 2,
    INTERNAL_CODE: 3,
  },

  OrderStatus: {
    NONE: 0,
    IN_CART: 1,
    CHECKOUT_SENT: 2,
    ORDER_CONFIRMED: 3,
    PAYED: 4,
    DELIVERED: 5,  // Consegnato
    SHIPPED: 6,  //Spedito
    RECEIVED: 7,
    COMPLETED: 6,
    CANCELED: 10,
    PREPARED: 15,
    DELETE_REALLY: 20,
  },

  OrderPages: {
    LISTA_TOTALI: { label: 'Lista Totali', value: 1, icon: 'fas fa-chart-bar', color: 'text-green' },
    ORDINI: { label: 'Ordini', value: 2, icon: 'fas fa-tasks', color: 'text-blue' },
  },

  OrderStat: {
    // IN_CART: { label: 'In Carrello', value: 1 }, //IN_CART
    IN_CORSO: { label: 'In Corso', value: 2, icon: 'fas fa-tasks', color: 'text-black' }, //CHECKOUT_SENT
    PREPARED: { label: 'Preparati', value: 15, icon: 'fas fa-archive', color: 'text-orange' },
    CONFERMATI: { label: 'Confermati', value: 3, icon: 'fas fa-calendar', color: 'text-blue' }, //ORDER_CONFIRMED
    PAGATI: { label: 'Pagati', value: 4, icon: 'money', color: 'text-green' },  //PAYED
    DELIVERED: { label: 'Consegnato', value: 5, icon: 'fas fa-calendar', color: 'text-blue' }, //DELIVERED
    SHIPPED: { label: 'Spediti', value: 6, icon: 'fas fa-shipping-fast', color: 'text-green' },  //SHIPPED
    RECEIVED: { label: 'Ricevuti', value: 7, icon: '', color: 'text-blue' }, //RECEIVED
    COMPLETATI: { label: 'Completati', value: 8, icon: 'fas fa-check', color: 'text-blue' }, //COMPLETED
    CANCELLATI: { label: 'Cancellati', value: 10, icon: 'delete', color: 'text-red' }, //CANCELED
  },

  REACTIONS_FIELD:
  {
    numseen: 1,
    numbook: 1,
    numfav: 1,
    numattend: 1,
  },

  ANNUNCI_FIELDS: {
    idMyGroup: 1,
    // **ADDFIELD_ANNUNCI
  },

  OrderStatusStr: [
    {
      label: 'Nessuno',
      value: 0,
    },
    {
      label: 'In Carrello',
      value: 1,
    },
    {
      label: 'Ordine in Lavorazione',
      value: 2,
    },
    {
      label: 'Preparato',
      value: 15,
    },
    {
      label: 'Ordine Confermato',
      value: 3,
    },
    {
      label: 'Pagato',
      value: 4,
    },
    {
      label: 'Consegnato',
      value: 5,
    },
    {
      label: 'Spedito',
      value: 6,
    },
    {
      label: 'Ricevuto',
      value: 7,
    },
    {
      label: 'Cancellato',
      value: 10,
    },
    {
      label: 'Elimina Definitivamente !!',
      value: 20,
    },

  ],

  OrderCmdStr: [
    {
      label: 'Imposta Ordine in Lavorazione',  //CHECKOUT_SENT
      value: 2,
      icon: 'fas fa-list-ol',
      color: 'secondary',
    },
    {
      label: '📩 Conferma Ordine Evaso (e aggiorna le quantità in Magsazzino)',  //ORDER_CONFIRMED
      value: 3,
      icon: 'fas fa-calendar-check',
      color: 'primary',
    },
    {
      label: '📩 Imposta come Consegnato',  //DELIVERED
      value: 5,
      icon: 'fas fa-shipping-fast',
      color: 'blue',
    },
    {
      label: 'Imposta come Preparato',  //PREPARED
      value: 15,
      icon: 'fas fa-archive',
      color: 'blue',
    },
    {
      label: 'Imposta come Pagato',  //PAYED
      value: 4,
      icon: 'money',
      color: 'positive',
    },
    {
      label: 'Imposta come Spedito',  //DELIVERED
      value: 5,
      icon: 'fas fa-shipping-fast',
      color: 'blue',
    },
    {
      label: '📩 Imposta come Cancellato', //CANCELED
      value: 10,
      icon: 'delete',
      color: 'red',
    },
    {
      label: 'Cancella Definitivamente', //DELETE_REALLY
      value: 20,
      icon: 'delete',
      color: 'red',
    },
  ],

  ConfSite: {
    Notif_Reg_Bot_ToManagers: 1,
    Notif_Reg_Push_Admin: 2,
    Need_Aportador_On_DataReg_To_Verify_Reg: 4,
    AskInvitantesulBot: 8,
    AskUsernameSulBot: 16,
    registerUserWithBot: 32,
    regNameSurnameMandatory: 64,
    askUSernameTelegramToTheReg: 128,
  },

  MsgTeleg: {
    SHARE_MSGREG: 1,
    SHARE_TEXT: 2,
    SHARE_ANNUNCIO: 3,
  },

  TypeMsgTemplate: {
    MSG_BENVENUTO: 2010,
    MS_SHARE_LINK: 2000,
    MSG_BENV_REGISTRATO: 2020,
  },

  TypeSend: {
    PUSH_NOTIFICATION: 1,
    TELEGRAM: 2,
  },

  UsersNotif: {
    NEW_ADV_CITY: 1,
    NEW_ADV_PROVINCE: 2,
    NEW_ADV_REGION: 4,
    NEW_ADV_MY_GROUPS: 8,
    NEW_ADV_MY_RIS_CIRCUIT: 16,
    NEW_ADV_SECTOR: 32,
    NEW_ADV_YOUR_PROVINCE: 64,
  },

  StatusNotifs: {
    STATUS_FRIENDS_ACCEPTED: 1,
    STATUS_FRIENDS_REFUSED: 2,
    STATUS_FRIENDS_REPORTED: 3,
    STATUS_HANDSHAKE_ACCEPTED: 10,
    STATUS_HANDSHAKE_REFUSED: 11,
  },

  GroupsNotifs: {
    STATUS_GROUPS_NEW: 1,
    STATUS_GROUPS_ACCEPTED: 3,
    STATUS_GROUPS_REFUSED: 4,
    STATUS_GROUPS_BLOCKED: 5,
    STATUS_GROUPS_DELETED: 6,
    STATUS_GROUPS_REMOVED: 7,
  },

  CircuitsNotif: {
    STATUS_NONE: 0,
    STATUS_NEW: 51,
    STATUS_ACCEPTED: 53,
    STATUS_REFUSED: 54,
    STATUS_BLOCKED: 55,
    STATUS_DELETED: 56,
    STATUS_REMOVED: 57,
    STATUS_SENDCOINSREQ: 58,
    STATUS_COINS_ACCEPTED: 60,
    STATUS_COINS_REFUSED: 61,
    STATUS_COINS_ACCEPTED_SENT: 62,
    STATUS_COINS_REFUSED_SENT: 63,
  },

  QualiNotifs: {
    CIRCUITS: 1,
    OTHERS: 2,
  },

  TypeNotifs: {
    TYPEDIR_BACHECA: 1,
    ID_BACHECA_NEW_GOOD: 1,
    ID_BACHECA_NEW_SERVICE: 2,
    ID_BACHECA_NEW_HOSP: 4,

    TYPEDIR_EVENTS: 2,
    ID_EVENTS_NEW_REC: 1,
    ID_EVENTS_REMOVE_REC: 2,
    ID_EVENTS_ATTEND: 4,
    ID_EVENTS_SEND_MSG: 8,

    TYPEDIR_FRIENDS: 3,
    ID_FRIENDS_NEW_REC: 1,
    ID_FRIENDS_ACCEPTED: 2,
    ID_FRIENDS_REFUSED: 4,
    ID_FRIENDS_ACCEPTED_MY_REQUEST: 8,
    ID_FRIENDS_REPORTED: 16,
    ID_FRIENDS_UNBLOCKED: 32,

    TYPEDIR_GROUPS: 4,
    ID_GROUP_NEW_REC: 1,
    ID_GROUP_ACCEPTED: 2,
    ID_GROUP_REFUSED: 4,
    ID_GROUP_REQUEST_TO_ENTER: 8,
    ID_GROUP_BLOCK_USER: 16,
    ID_GROUP_DELETE_USER: 32,
    ID_GROUP_REMOVED: 64,
    ID_GROUP_ADDED_ADMIN_OFMYGROUP: 128,
    ID_GROUP_REMOVED_ADMIN_OFMYGROUP: 256,

    TYPEDIR_CIRCUITS: 5,
    ID_CIRCUIT_NEW_REC: 1,
    ID_CIRCUIT_ACCEPTED: 2,
    ID_CIRCUIT_REFUSED: 4,
    ID_CIRCUIT_REQUEST_TO_ENTER: 8,
    ID_CIRCUIT_BLOCK_USER: 16,
    ID_CIRCUIT_DELETE_USER: 32,
    ID_CIRCUIT_REMOVED: 64,
    ID_CIRCUIT_ADDED_ADMIN: 128,
    ID_CIRCUIT_REMOVED_ADMIN: 256,
    ID_CIRCUIT_SENDCOINSREQ: 512,
    ID_CIRCUIT_COINS_ACCEPTED: 1024,
    ID_CIRCUIT_COINS_REFUSED: 2048,
    ID_CIRCUIT_SENDCOINSREQ_SENT: 4096,
    ID_CIRCUIT_COINS_ACCEPTED_SENT: 8192,
    ID_CIRCUIT_COINS_REFUSED_SENT: 16384,
    ID_CIRCUIT_SETFIDO: 32768,

    TYPEDIR_BOOKING: 6,

    TYPEDIR_MSGS: 7,
    ID_MSGS_NEW_REC: 1,

    TYPEDIR_HANDSHAKE: 10,
    ID_HANDSHAKE_ACCEPTED: 2,

    TYPEDIR_FAVORITE: 11,
    ID_FAVORITE_ADDED: 1,

    TYPEDIR_TEST: 444,
    ID_TEST_NEW_REC: 1,
  },

  TypeNotifs_Test: [
    {
      value: 1, //
      labeltrans: 'typenotifs.test',
      descr: 'typenotifs.new_rec_bacheca_descr',
      icon: 'fas fa-house-user',
      list: [
        {
          value: 1, // ID_TEST_NEW_REC
          labeltrans: 'notifsid.test_new',
        },
      ],
    },
  ],

  TypeNotifs_Arr: [
    {
      value: 1, //
      labeltrans: 'typenotifs.new_rec_bacheca',
      descr: 'typenotifs.new_rec_bacheca_descr',
      icon: 'fas fa-house-user',
      list: [
        {
          value: 1, // ID_BACHECA_NEW_GOOD
          labeltrans: 'notifsid.bacheca_new_good',
        },
        {
          value: 2, // ID_BACHECA_NEW_SERVICE
          labeltrans: 'notifsid.bacheca_new_service',
        },
        {
          value: 4, // ID_BACHECA_NEW_HOSP
          labeltrans: 'notifsid.bacheca_new_hosp',
        },
      ],
    },
    {
      value: 11, //
      labeltrans: 'typenotifs.favorite',
      descr: 'typenotifs.favorite_descr',
      icon: 'far fa-heart',
      list: [
        {
          value: 1, // ID_FAVORITE_ADDED
          labeltrans: 'notifsid.favorite_new',
        }
      ],
    },
    {
      value: 2, //
      labeltrans: 'typenotifs.events',
      descr: 'typenotifs.events_descr',
      icon: 'fas fa-bullhorn',
      list: [
        {
          value: 1, // ID_EVENTS_NEW_REC
          labeltrans: 'notifsid.events_new',
        },
        {
          value: 4, // ID_EVENTS_ATTEND
          labeltrans: 'notifsid.attend_new',
        }
      ],
    },
    {
      value: 3, //
      labeltrans: 'typenotifs.friends',
      descr: 'typenotifs.friends_descr',
      icon: 'fas fa-user-plus',
      list: [
        {
          value: 1, // ID_FRIENDS_NEW_REC
          labeltrans: 'notifsid.friends_new',
        }
      ],
    },
    {
      value: 4, //
      labeltrans: 'typenotifs.groups',
      descr: 'typenotifs.friends_descr',
      icon: 'fas fa-user-plus',
      list: [
        {
          value: 1, // ID_GROUP_NEW_REC
          labeltrans: 'notifsid.groups_new',
        }
      ],
    },
    {
      value: 5, //
      labeltrans: 'typenotifs.circuits',
      descr: 'typenotifs.circuits_descr',
      icon: 'fas fa-coins',
      list: [
        {
          value: 1, // ID_CIRCUIT_NEW_REC
          labeltrans: 'notifsid.circuits_new',
        }
      ],
    },
    {
      value: 6, //
      labeltrans: 'typenotifs.booking',
      descr: '',
      icon: 'fas fa-book-open',
    },
  ],



  UsersNotif_Adv_List: [
    /*{
      value: 1, // NEW_ADV_CITY
      labeltrans: 'notifs.warn_city',
      directory: 1,
    },*/
    {
      value: 64, // NEW_ADV_YOUR_PROVINCE
      labeltrans: 'notifs.warn_your_province',
      directory: 1,
    },
    {
      value: 2, // NEW_ADV_PROVINCE
      labeltrans: 'notifs.warn_province',
      directory: 1,
    },
    {
      value: 32, // NEW_ADV_SECTOR
      labeltrans: 'notifs.warn_sector',
      directory: 1,
    },
    {
      value: 4, // NEW_ADV_PROVINCE
      labeltrans: 'notifs.warn_region',
      directory: 1,
    },
    {
      value: 8, // NEW_ADV_MY_GROUPS
      labeltrans: 'notifs.warn_my_groups',
      directory: 1,
    },
    {
      value: 16, // NEW_ADV_MY_RIS_CIRCUIT
      labeltrans: 'notifs.warn_my_ris_circuit',
      directory: 1,
    },
    {
      value: 1, // ID_EVENTS_NEW_REC
      labeltrans: 'notifs.new_event',
      directory: 2,
    },
    {
      value: 4, // ID_EVENTS_ATTEND
      labeltrans: 'notifs.new_attend',
      directory: 2,
    },
    {
      value: 1, //
      labeltrans: 'notifs.new_friends',
      directory: 3,
    },
    {
      value: 1, // GroupsNotifs.STATUS_GROUPS_NEW
      labeltrans: 'notifsid.groups_new',
      directory: 4,
    },
    {
      value: 1, // GroupsNotifs.STATUS_GROUPS_NEW
      labeltrans: 'notifsid.circuits_new',
      directory: 5,
    },
    {
      value: 1, //
      labeltrans: 'notifsid.favorite_new',
      directory: 11,
    },
  ],

  CIRCUIT_STATUS: {
    FASE0: 0,
    FASE1_CREAZIONE_GRUPPO: 1,
    FASE2_ORGANIZZAZIONE: 2,
    FASE3_MONETA_ABILITATA: 3,
  },

  CIRCUIT_PARAMS: {
    SCOPERTO_MIN_GRP: 200,
    SCOPERTO_MAX_GRP: 400,
    SCOPERTO_MIN_CONTO_COMUNITARIO: 500,
    SCOPERTO_MAX_CONTO_COMUNITARIO: 1000,
  },

  FontsInstalled: [
    {
      label: 'Arial',
      value: 'font-Arial'
    },
    {
      label: 'Baskervville',
      value: 'font-Baskervville'
    },
    {
      label: 'Montserrat',
      value: 'font-Montserrat'
    },
    {
      label: 'Verdana',
      value: 'font-Verdana'
    },
    {
      label: 'Lato',
      value: 'font-Lato'
    },
    {
      label: 'Source Sans Pro',
      value: 'font-SourceSansPro'
    },
    {
      value: 80,
      label: 'Carosello Discipline',
    },
    {
      value: 85,
      label: 'Carosello Home',
    },
  ],

  TypesElemAdmin: [
    {
      value: 5,
      label: 'Titolo',
    },
    {
      value: 8,
      label: 'ImgTitolo',
    },
    {
      value: 10,
      label: 'Testo semplice',
    },
    {
      value: 30,
      label: 'Immagine (nomefile)',
    },
    {
      value: 130,
      label: 'MainView',
    },
    {
      value: 140,
      label: 'Dashboard',
    },
    {
      value: 145,
      label: 'DashGroup',
    },
    {
      value: 148,
      label: 'Lista Movimenti',
    },
    {
      value: 150,
      label: 'SendCoinTo',
    },
    {
      value: 280,
      label: 'Tutorial',
    },
    {
      value: 400,
      label: 'Visualizzatore Tabelle',
    },
    {
      value: 410,
      label: 'Qr Code',
    },
    {
      value: 420,
      label: 'Lista Cataloghi',
    },
    {
      value: 430, // SEARCHPRODUCT
      label: 'Cerca Prodotto',
    },
  ],

  TypesElemAdminTools: [
    {
      value: 100,
      label: 'Check Email',
    },
    {
      value: 120,
      label: 'OpenStreetMap',
    },
    {
      value: 160,
      label: 'Stato Registrati',
    },
    {
      value: 170,
      label: 'CheckIfIsLogged',
    },
    {
      value: 180,
      label: 'Info Versione',
    },
    {
      value: 190,
      label: 'Bottone Condividi',
    },
    {
      value: 192,
      label: 'Bottone Chat Territoriale',
    },
    {
      value: 200,
      label: 'Presentazione',
    },
    {
      value: 205,
      label: 'Attività',
    },
    {
      value: 210,
      label: 'Notifiche in Top',
    },
    {
      value: 135,
      label: 'Check App Running',
    },
    {
      value: 258,
      label: 'Registration',
    },
    {
      value: 220,
      label: 'CHART',
    },
    {
      value: 230,
      label: 'Check New Version',
    },
    {
      value: 240,
      label: 'Check Test Version',
    },
    {
      value: 250,
      label: 'Butt Registrati',
    },
    {
      value: 255,
      label: 'Butt Registrati col Bot',
    },
    {
      value: 260,
      label: 'Butt Login',
    },
    {
      value: 270,
      label: 'Footer',
    },
    {
      value: 280,
      label: 'Visu Promo and PDF',
    },
    {
      value: 40,
      label: 'Separatore',
    },
    {
      value: 70,
      label: 'Calendario',
    },
    {
      value: 300,
      label: 'E-COMMERCE',
    },
    {
      value: 310,
      label: 'CATALOGO',
    },
    {
      value: 350,
      label: 'MAPPA',
    },
    {
      value: 360,
      label: 'MAPPAUTENTI',
    },
    {
      value: 370,
      label: 'MAPPACOMUNI',
    },
    {
      value: 380,
      label: 'MAPPA GET COORD',
    },
    {
      value: 390,
      label: 'EDIT ADDRESS BY COORD',
    },

  ],

  TypesElem: [
    {
      value: 20,
      label: 'Testo',
      icon: 'fas fa-file-alt',
    },
    {
      value: 35,
      label: 'Immagine',
      icon: '',
    },
    {
      value: 7,
      label: 'Scheda (IMG + Testo)',
    },
    /*
    Disattivato perchè attualmente non funziona bene
    {
      value: 9,
      label: 'Poster (IMG + Testo)',
    },*/
    {
      value: 195,
      label: 'Bottone',
    },
    {
      value: 50,
      label: 'Video',
    },
    {
      value: 55,
      label: 'Pagina',
    },
    {
      value: 58,
      label: 'Pagina (solo Intro)',
    },
    {
      value: 110,
      label: 'Galleria d\'Immagini',
    },
    {
      value: 6,
      label: 'Margine',
    },
  ],

  LISTBESTCOLORS: [
    {
      label: 'blue',
      value: 'blue'
    },
    {
      label: 'green',
      value: 'green'
    },
    {
      label: 'purple',
      value: 'purple'
    },
    {
      label: 'deep-purple',
      value: 'deep-purple'
    },
    {
      label: 'indigo',
      value: 'indigo'
    },
    {
      label: 'light-blue',
      value: 'light-blue'
    },
    {
      label: 'cyan',
      value: 'cyan'
    },
    {
      label: 'teal',
      value: 'teal'
    },
    {
      label: 'lime',
      value: 'lime'
    },
    {
      label: 'orange',
      value: 'orange'
    },
    {
      label: 'deeporange',
      value: 'deeporange'
    },
    {
      label: 'yellow',
      value: 'yellow'
    },
    {
      label: 'white',
      value: 'white'
    },
  ],

  ALIGNTYPE: {
    NONE: 0,
    LEFT: 1,
    CEHTER: 2,
    RIGHT: 3,
  },

  VERTALIGNTYPE: {
    NONE: 0,
    UP: 1,
    CENTER: 2,
    DOWN: 3,
    DOWN_LEFT: 4,
    UP_LEFT: 5,
  },

  TABLETYPE: {
    DefaultCal: 0,
    MyBachecas: 1,
  },

  MAX_QTA_PREORD: 5000,

  getStatusStr(status: number) {
    const trovatorec = this.OrderStatusStr.find((rec) => rec.value === status)
    return (trovatorec) ? trovatorec.label : ''
  },

  getDirectoryImgByTable(table: string, username: string) {
    let ris = ''
    if (this.TABLEFORUSERS.includes(table)) {
      ris = 'profile/' + username + '/' + table + '/';
    }

    return ris;

  },

  getLabelByValueAndArr(value: number, array: any) {
    const trovatorec = array.find((rec: any) => rec.value === value)
    return (trovatorec) ? trovatorec.label : ''
  },

  fieldsUserToChange() {
    return ['_id', 'username', 'group', 'email', 'name', 'surname', 'perm', 'date_reg', 'verified_email', 'notask_verif', 'verified_by_aportador', 'trust_modified', 'img', 'ipaddr', 'lasttimeonline', 'profile', 'news_on']
  },

  getProjectByTable(table: string, proj_add?: any) {
    let proj = {}
    if (table === this.TABLES_MYGOODS) {
      proj = {
        'recGood': 1,
        'sectorGood': 1,
        'idSectorGood': 1,
        'idGood': 1,
        'idShipping': 1,
        'idStatusGood': 1,
        groupname: 1,
        //**ADDFIELD_MYGOOD
      }

    } else if (table === this.TABLES_MYGROUPS) {
      proj = {
        groupname: 1,
        title: 1,
        descr: 1,
        img: 1,
        visibility: 1,
        admins: 1,
        idCatGrp: 1,
        date_created: 1,
        date_updated: 1,
        photos: 1,
        idCity: 1,
        note: 1,
        website: 1,
        link_telegram: 1,
        comune: 1,
        mycities: 1,
        sector: 1,
        recCatGrp: 1,
      }
    } else if (table === this.TABLES_CIRCUITS) {
      proj = {
        _id: 1,
        groupnameId: 1,
        path: 1,
        name: 1,
        strProv: 1,
        subname: 1,
        longdescr: 1,
        regulation: 1,
        numMembers: 1,
        link_group: 1,
        totCircolante: 1,
        totTransato: 1,
        systemUserId: 1,
        createdBy: 1,
        date_created: 1,
        date_updated: 1,
        nome_valuta: 1,
        fido_scoperto_default: 1,
        deperimento: 1,
        showAlways: 1,
        ignoreLimits: 1,
        askManagerToEnter: 1,
        sendEmailAfterAskingToEnter: 1,
        circuitoIndipendente: 1,
        creditodiPartenza: 1,
        status: 1,
        transactionsEnabled: 1,
        qta_max_default: 1,
        fido_scoperto_default_grp: 1,
        qta_max_default_grp: 1,
        fido_scoperto_default_contocom: 1,
        qta_max_default_contocom: 1,
        valuta_per_euro: 1,
        symbol: 1,
        idCity: 1,
        pub_to_share: 1,
        visibility: 1,
        color: 1,
        abbrev: 1,
        data_costituz: 1,
        photos: 1,
        admins: 1,
        req_users: 1,
        refused_users: 1,
        'mycities': 1,
        //**ADDFIELD_CIRCUITS
      }
    } else if (table === this.TABLES_MYSKILLS) {
      proj = {
        recSkill: 1,
        sector: 1,
        idSector: 1,
        idSkill: 1,
        myskill: 1,
        idStatusSkill: 1,
        idContribType: 1,
        numLevel: 1,
        adType: 1,
        photos: 1,
        note: 1,
        website: 1,
        groupname: 1,
        //**ADDFIELD_MYSKILL
      }

    } else if (table === this.TABLES_MYHOSPS) {
      proj = {
        visibile: 1,
        adType: 1,
        typeHosp: 1,
        numMaxPeopleHosp: 1,
        accomodation: 1,
        preferences: 1,
        idContribType: 1,
        photos: 1,
        idCity: 1,
        note: 1,
        website: 1,
        link_maplocation: 1,
        groupname: 1,
      }

    } else if (table === this.TABLES_ATTIVITAS) {
      proj = {
        recSkill: 1,
        sector: 1,
        idSector: 1,
        idSkill: 1,
        idCity: 1,
        logo: 1,
        photos: 1,
        note: 1,
        descr: 1,
        website: 1,
        date_created: 1,
        date_updated: 1,
        tipodiAttivita: 1,
        coordinate_gps: 1,
        email: 1,
        telegram_username: 1,
        cell_phone: 1,
        whatsapp: 1,
        createdBy: 1,
        //**ADDFIELD_ATTIVITA
      };

    } else if (table === this.TABLES_MYBACHECAS) {
      proj = {
        recSkill: 1,
        sector: 1,
        idSector: 1,
        idSkill: 1,
        // 'idSubSkill': 1,
        idStatusSkill: 1,
        idContribType: 1,
        dateTimeStart: 1,
        dateTimeEnd: 1,
        website: 1,
        organisedBy: 1,
        contact_phone: 1,
        contact_email: 1,
        contact_telegram: 1,
        address: 1,
        min_partecip: 1,
        max_partecip: 1,
        contribstr: 1,
        link_maplocation: 1,
        groupname: 1,
        //**ADDFIELD_MYBACHECAS
      }
    }

    const proj_common = {
      'mygrp.groupname': 1,
      'mygrp.title': 1,
      'mygrp.photos': 1,
    }

    proj = Object.assign({}, proj, proj_common);

    if (proj_add)
      proj = Object.assign({}, proj, proj_add);

    return proj;
  },

  getProjectForAll(proj_add: any, table?: string) {

    let proj = {
      idContribType: 1,
      idCity: 1,
      pub_to_share: 1,
      adType: 1,
      photos: 1,
      note: 1,
      da_contattare: 1,
      descr: 1,
      date_createzd: 1,
      date_updated: 1,
      userId: 1,
      username: 1,
      name: 1,
      surname: 1,
      lasttimeonline: 1,
      comune: 1,
      mycities: 1,
      lang: 1,
      verified_by_aportador: 1,
      'profile.img': 1,
      'profile.mygroups': 1,
      'profile.mycircuits': 1,
      'profile.qualifica': 1,
      'profile.note': 1,
      'profile.da_contattare': 1,
      'profile.resid_province': 1,
      'profile.resid_card': 1,
      'profile.username_telegram': 1,
      'profile.favorite': 1,
      'profile.bookmark': 1,
      'profile.attend': 1,
      'profile.seen': 1,
      'mygrp.groupname': 1,
      'mygrp.title': 1,
      'mygrp.photos': 1,
      reported: 1,
      date_report: 1,
      username_who_report: 1,
      namecomplete: 1,
      date_reg: 1,
      perm: 1,
    };

    if (proj_add)
      proj = Object.assign({}, proj, proj_add);

    proj = { ...proj, ...this.REACTIONS_FIELD };
    proj = { ...proj, ...this.ANNUNCI_FIELDS };

    if (table) {
      let proj_add3 = this.getProjectByTable(table);
      proj = Object.assign({}, proj, proj_add3);
    }

    return proj;
  },

  getDirectoryByTable(table: string, barre?: boolean) {

    let add = '';
    if (barre)
      add = '/';

    if (table === 'myskills') {
      return add + 'myservice' + add
    } else if (table === 'mybachecas') {
      return add + 'mypage' + add
    } else if (table === 'myhosps') {
      return add + 'myhosps' + add
    } else if (table === 'mygoods') {
      return add + 'mygood' + add
    } else if (table === 'mygroups') {
      return add + 'grp' + add
    } else if (table === 'circuits') {
      return add + 'circuit' + add
    } else if (table === 'catalogs') {
      return add + 'catalogs' + add
    }

    return ''
  },

  STATUSSKILL_DI_PERSONA: 1,
  STATUSSKILL_ONLINE: 2,

  TYPEHOSP_SCAMBIOCASA: 1,
  TYPEHOSP_OSPITALITA: 2,

  PRODUCTTYPE: {
    BENE: 1,
    SERVIZIO: 2,
    OSPITALITA: 4,
    PRODOTTO: 10,
    LIBRO: 20,
    EBOOK: 21,
    AUDIOLIBRO: 22,
    VIDEO: 23,
    CARTE: 25,
    // -----------
    NUOVO: 101,
    USATO: 102,
    DOWNLOAD: 103,
    DVD: 104,
    EPUB: 105,
    MOBI: 106,
    PDF: 107,
    STREAMING: 108,

    PRODUCT: 1000,
  },

  ORDINAMENTO_CATALOGHI_PUBBLICO: [
    { label: '[Nessuno]', value: '' },
    { label: 'Alfabetico', value: 'name' },
    { label: 'Data di Pubblicazione', value: 'date_pub' },
  ],

  ORDINAMENTO_CATALOGHI: [
    { label: '[Nessuno]', value: '' },
    { label: 'Alfabetico', value: 'name' },
    { label: 'Data di Pubblicazione', value: 'date_pub' },
    { label: 'Totale Venduti', value: 'totVen' },
    { label: 'Totale Fatturati', value: 'totFat' },
    { label: 'Venduti Ultimi 3 Mesi', value: 'vLast3M' },
    { label: 'Venduti Ultimi 6 Mesi', value: 'vLast6M' },
    { label: 'Venduti Ultimo Anno', value: 'vLast1Y' },
    { label: 'Venduti Ultimi 2 Anni', value: 'vLast2Y' },
    { label: 'Fatturati Ultimi 3 Mesi', value: 'fatLast3M' },
    { label: 'Fatturati Ultimi 6 Mesi', value: 'fatLast6M' },
    { label: 'Fatturati Ultimo Anno', value: 'fatLast1Y' },
    { label: 'Fatturati Ultimi 2 Anno', value: 'fatLast2Y' },
    { label: 'Data Ultimo Ordine', value: 'dataUltimoOrdine' },
  ],

  ORDINAMENTO_DIREZIONE: [
    { label: 'Ascendente', value: 1 },
    { label: 'Discendente', value: -1 },
  ],


  VERSIONI_PRODOTTO: [
    {
      label: '[Nessuno]',
      value: 0,
      color: '',
    },
    {
      label: 'Nuovo',
      value: 101,
      color: 'primary',
    },
    {
      label: 'Usato',
      value: 102,
      color: 'orange-9',
    },
    {
      label: 'Download',
      value: 103,
      color: 'success',
    },
    {
      label: 'DVD',
      value: 104,
      color: 'secondary',
    },
    {
      label: 'EPUB',
      value: 105,
      color: 'orange',
    },
    {
      label: 'MOBI',
      value: 106,
      color: 'indigo',
    },
    {
      label: 'PDF',
      value: 107,
      color: 'purple',
    },
    {
      label: 'Streaming',
      value: 108,
      color: 'red',
    },

  ],

  AccountType: {
    USER: 0,
    CONTO_DI_GRUPPO: 1,
    COMMUNITY_ACCOUNT: 2,
  },

  CmdQueryMs: {
    GET: 0,
    SET: 1,
    UPDATE: 2,
  },

  SCHEDA_PRODOTTO: {
    CMD_NONE: 0,
    CMD_MODIFICA: 1,
  },

  VISU_SEARCHPROD_MODE: {
    VISU: 0,
    INSERT: 1,
  },

  DESTNEWSLETTER: {
    LISTA_NEWSLETTER: 0,
    UTENTI: 1,
    DIARIO: 2,
    TEST: 10,
  },

  DESTNEWSLETTER_ARRAY: [
    {value: 0, label: 'LISTA_NEWSLETTER'},
    {value: 1, label: 'UTENTI'},
    {value: 2, label: 'DIARIO'},
    {value: 10, label: 'TEST'},
  ],


}
