import React from "react";
import { FormattedMessage } from "react-intl";
import { CapImage, CapLabel, CapDivider, CapIcon } from "@capillarytech/cap-ui-library";
import pdfIcon from "../assets/pdfIcon.svg";
import messages from "./Whatsapp/messages";

export default {
  whatsappTemplates: {
    selectedWhatsappAccount: {
      sourceTypeName: "WHATSAPP",
      name: "WhatsappAccount",
      isActive: true,
      sourceTypeId: 19,
      configs: {
        accessToken: "Bearer abcd",
        promotionalMessagingSSID: "",
        transactionalMessagingSSID: "",
      },
      hostName: "karixwhatsappbulk",
      toMirror: true,
      id: 12721,
      uuid: "abc12",
      sourceAccountIdentifier: "12345",
      commChannels: ["whatsapp"],
    },
    getAllTemplatesInProgress: false,
    weCrmAccountFetchingError: false,
    weCRMtemplates: [],
    senderDetails: {
      status: "SUCCESS",
      domainProperties: [
        {
            "id": 249341,
            "orgId": 50074,
            "label": "",
            "domainProperties": {
                "id": 3972,
                "domainName": "whatsapp_mobile_push",
                "description": "whatsapp_mobile_push_karix",
                "contactInfo": [
                    {
                        "id": 100776,
                        "domainPropId": 3972,
                        "messageClass": "WHATSAPP",
                        "type": "gsm_sender_id",
                        "label": "whatsapptesting",
                        "value": "919611759663",
                        "valid": true,
                        "default": true
                    },
                    {
                        "id": 102485,
                        "domainPropId": 3972,
                        "messageClass": "WHATSAPP",
                        "type": "cdma_sender_id",
                        "label": "whatsapptesting",
                        "value": "919611759663",
                        "valid": true,
                        "default": true
                    },
                    {
                        "id": 102486,
                        "domainPropId": 3972,
                        "messageClass": "WHATSAPP",
                        "type": "cdma_sender_id",
                        "label": "not_working",
                        "value": "919876543210",
                        "valid": true,
                        "default": false
                    },
                    {
                        "id": 102487,
                        "domainPropId": 3972,
                        "messageClass": "WHATSAPP",
                        "type": "gsm_sender_id",
                        "label": "not_working",
                        "value": "919876543210",
                        "valid": true,
                        "default": false
                    }
                ],
                "xengageEnabled": false,
                "connectionProperties": {
                    "919611759663_whatsapp_pool_id": "CAP001",
                    "authToken": "Bearer abcd",
                    "sourceAccountIdentifier": "12345",
                    "wabaId": "12345",
                    "whatsapp_pool_id": "CAP001",
                    "baseUrl": "https://api.whatsapp.com/v1"
                },
                "hostName": "karixwhatsappbulk"
            },
            "priority": 1,
            "valid": true
        },
        {
            "id": 276278,
            "orgId": 50074,
            "label": "",
            "domainProperties": {
                "id": 4294,
                "domainName": "gupshup",
                "description": "gupshup whatsapp test",
                "contactInfo": [
                    {
                        "id": 101616,
                        "domainPropId": 4294,
                        "messageClass": "WHATSAPP",
                        "type": "gsm_sender_id",
                        "label": "gupshup test",
                        "value": "gupshuptest",
                        "description": "",
                        "valid": true,
                        "default": true
                    },
                    {
                        "id": 101617,
                        "domainPropId": 4294,
                        "messageClass": "WHATSAPP",
                        "type": "cdma_sender_id",
                        "label": "gupshupt est",
                        "value": "gupshuptest",
                        "description": "",
                        "valid": true,
                        "default": true
                    }
                ],
                "xengageEnabled": false,
                "connectionProperties": {
                    "password": "qrtCAJCz",
                    "sourceAccountIdentifier": "123456",
                    "userid": "123456",
                    "baseUrl": "https://api.gupshup.io/whatsapp/v1"
                },
                "hostName": "gupshupwhatsappbulk"
            },
            "priority": 1,
            "valid": true
        },
    ],
      hostName: "karixwhatsappbulk",
      errors: [],
    },
    templateError: {},
    fetchingWeCrmAccounts: false,
    fetchingUserList: false,
    isSearch: false,
    weCrmAccounts: [
      {
        sourceTypeName: "WHATSAPP",
        name: "WhatsappAccount",
        isActive: true,
        sourceTypeId: 19,
        configs: {
          accessToken: "Bearer abcd",
          promotionalMessagingSSID: "",
          transactionalMessagingSSID: "",
        },
        toMirror: true,
        id: 12721,
        uuid: "abc12",
        sourceAccountIdentifier: "12345",
        commChannels: ["whatsapp"],
      },
    ],
    userListFetchError: false,
    templates: [
      {
        _id: "62d3f971b497b671d3bbf8f7",
        name: "creatives_whatsapp6",
        type: "WHATSAPP",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              whatsapp: {
                status: "pending",
                templateId: "720951875646523",
                hostName: "karixwhatsappbulk",
                accessToken: "Bearer abcd",
                accountId: "12345",
                templateEditor: false,
                karixFileHandle:
                  "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
                imageUrl:
                  "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
                mediaType: "IMAGE",
                buttons: [
                  {
                    phone_number: "+919738752617",
                    text: "Call",
                    type: "PHONE_NUMBER",
                    index: 0,
                  },
                  {
                    url: "https://docs.google.com/{{1}}",
                    text: "Visit",
                    type: "DYNAMIC_URL",
                    index: 1,
                  },
                ],
                buttonType: "CTA",
                languages: [
                  {
                    content:
                      "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe",
                    language: "en",
                  },
                ],
                category: "MARKETING",
              },
            },
          },
        },
        isActive: true,
        orgId: 50074,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-07-17T11:58:45.592Z",
        updatedAt: "2022-07-17T11:58:45.592Z",
        totalCount: 6,
      },
      {
        _id: "62d3f8edb497b63156bbf8f5",
        name: "creatives_whatsapp5",
        type: "WHATSAPP",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              whatsapp: {
                status: "pending",
                templateId: "4916570121786087",
                hostName: "karixwhatsappbulk",
                accessToken: "Bearer abcd",
                accountId: "12345",
                templateEditor: false,
                karixFileHandle:
                  "4::aW1hZ2UvanBlZw==:ARY0H4Z85fo_TTfmAYJpqpnSbBlE3VaIYyr9S_Exg7GV_EhOo-30AVAoe35d0ZH8Cx5ZaJ3U2RovzzqVHPUnMK_7wFY7RNngsTwWc4vnZ7bMoA:e:1658404539:259409122277300:100066839164237:ARaPlACD4a5lw9Wp4X4",
                imageUrl:
                  "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/6aca6ada-2378-4b81-974c-a8537bbc.jpg",
                mediaType: "IMAGE",
                buttons: [
                  {
                    url: "https://docs.google.com/{{1}}",
                    text: "ಹೆಚ್ಚಿನ ಮಾಹಿತಿ",
                    type: "DYNAMIC_URL",
                    index: 0,
                  },
                ],
                buttonType: "CTA",
                languages: [
                  {
                    content: "ಪಾವತಿ ಯಶಸ್ವಿಯಾಗಿದೆ 👍",
                    language: "kn",
                  },
                ],
                category: "MARKETING",
              },
            },
          },
        },
        isActive: true,
        orgId: 50074,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-07-17T11:56:33.707Z",
        updatedAt: "2022-07-17T11:56:33.707Z",
        totalCount: 6,
      },
      {
        _id: "62d3f896b497b69acbbbf8f3",
        name: "creatives_whatsapp4",
        type: "WHATSAPP",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              whatsapp: {
                status: "pending",
                templateId: "732848961277130",
                hostName: "karixwhatsappbulk",
                accessToken: "Bearer abcd",
                accountId: "12345",
                templateEditor: false,
                karixFileHandle:
                  "4::aW1hZ2UvanBlZw==:ARYfsmvPHCeI0Q3ixfzpZ3gOIoYjrkx6STalsi58_twFIqB5rvPKsKPH7yL_eXMfbmXGq_X0qiLrL7FaSSFq_uzudytfoOj9Oh5ueb1uUV367A:e:1658404470:259409122277300:100066839164237:ARaaojq13hSRpe7h0Tw",
                imageUrl:
                  "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/ec28477c-a5b6-4198-872e-1b135c1b.jpg",
                mediaType: "IMAGE",
                buttons: [
                  {
                    phone_number: "+919738752617",
                    text: "Call",
                    type: "PHONE_NUMBER",
                    index: 0,
                  },
                ],
                buttonType: "CTA",
                languages: [
                  {
                    content:
                      "Hi {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! \nClick {{2}} to unsubscribe",
                    language: "en",
                  },
                ],
                category: "MARKETING",
              },
            },
          },
        },
        isActive: true,
        orgId: 50074,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-07-17T11:55:06.955Z",
        updatedAt: "2022-07-17T11:55:06.955Z",
        totalCount: 6,
      },
      {
        _id: "62d3f858b497b63540bbf8f1",
        name: "creatives_whatsapp3",
        type: "WHATSAPP",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              whatsapp: {
                status: "pending",
                templateId: "993272384701160",
                hostName: "karixwhatsappbulk",
                accessToken: "Bearer abcd",
                accountId: "12345",
                templateEditor: false,
                karixFileHandle:
                  "4::aW1hZ2UvanBlZw==:ARa6WKa8LHjcJf2DBWokWtAvxkowam2zBaUJvEwxyWH2EamzQv7-GlX7bsf6IKkdWKLAATpfo_vkAgQ8mWLf2wvVNEVBmPWk3yyrWDnVI44_9A:e:1658404412:259409122277300:100066839164237:ARYyRilqCb6hSKHtjYQ",
                imageUrl:
                  "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/8ba834e6-a8f5-4710-a0e6-f402e911.jpg",
                mediaType: "IMAGE",
                languages: [
                  {
                    content:
                      "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live!",
                    language: "en",
                  },
                ],
                category: "MARKETING",
              },
            },
          },
        },
        isActive: true,
        orgId: 50074,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-07-17T11:54:04.926Z",
        updatedAt: "2022-07-17T11:54:04.926Z",
        totalCount: 6,
      },
      {
        _id: "62d3f7fbb497b63864bbf8ef",
        name: "creatives_whatsapp2",
        type: "WHATSAPP",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              whatsapp: {
                status: "pending",
                templateId: "1838206886365227",
                hostName: "karixwhatsappbulk",
                accessToken: "Bearer abcd",
                accountId: "12345",
                templateEditor: false,
                mediaType: "TEXT",
                languages: [
                  {
                    content:
                      "Hi {{1}}, best offer {{2}} for you.\nClick {{3}} to unsubscribe",
                    language: "en",
                  },
                ],
                category: "TRANSACTIONAL",
              },
            },
          },
        },
        isActive: true,
        orgId: 50074,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-07-17T11:52:30.210Z",
        updatedAt: "2022-07-17T11:52:30.210Z",
        totalCount: 6,
      },
      {
        _id: "62d3f6afb497b651eabbf8ee",
        name: "creatives_whatsapp1",
        type: "WHATSAPP",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              whatsapp: {
                status: "pending",
                templateId: "412858944197174",
                hostName: "karixwhatsappbulk",
                accessToken: "Bearer abcd",
                accountId: "12345",
                templateEditor: false,
                mediaType: "TEXT",
                languages: [
                  {
                    content: "Hi {{1}}, best offer {{2}} for you.",
                    language: "en",
                  },
                ],
                category: "TRANSACTIONAL",
              },
            },
          },
        },
        isActive: true,
        orgId: 50074,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-07-17T11:46:57.973Z",
        updatedAt: "2022-07-17T11:46:57.973Z",
        totalCount: 6,
      },
    ],
  },
  rcsTemplates: {
    getAllTemplatesInProgress: false,
    weCrmAccountFetchingError: false,
    weCRMtemplates: [],
    userList: {
      orgUsers: [
        {
          userId: 50012994,
          firstName: "firstUser",
          lastName: "",
          loginName: "firstUser@capillarytech.com",
          email: "firstUser@capillarytech.com",
          mobile: "918888802132",
          isMobileValidated: 0,
          isEmailValidated: 0,
        },
      ],
      capUsers: [
        {
          userId: 15000449,
          firstName: "Ashish",
          lastName: "Karan fd",
          loginName: "cap@coin.com",
          email: "cap@coin.com",
          mobile: "919957676767",
          isMobileValidated: 1,
          isEmailValidated: 1,
        },
      ],
    },
    templateError: {},
    fetchingWeCrmAccounts: false,
    fetchingUserList: false,
    isSearch: false,
    userListFetchError: false,
    templates: [
      {
        _id: "623c39e970387f3cf5f8fd70",
        name: "testtest",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                cardContent: [
                  {
                    title: "title",
                    description: "Desc",
                    mediaType: "NONE",
                    media: {
                      mediaUrl: "",
                      height: "MEDIUM",
                    },
                  },
                ],
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardType: "STANDALONE",
                contentType: "RICHCARD",
                smsFallBackContent: {
                  message: "123",
                },
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-24T09:29:13.376Z",
        updatedAt: "2022-03-29T11:15:53.175Z",
        totalCount: 10,
      },
      {
        _id: "623c3e0a70387fa8dcf8fd75",
        name: "creative",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                smsFallBackContent: {
                  message: "fallback {{optout}}",
                },
                contentType: "RICHCARD",
                cardType: "STANDALONE",
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardContent: [
                  {
                    media: {
                      height: "MEDIUM",
                      mediaUrl: "",
                    },
                    mediaType: "NONE",
                    description: "desc {{store_name}}",
                    title: "title",
                  },
                ],
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-24T09:46:50.688Z",
        updatedAt: "2022-03-24T09:46:50.688Z",
        totalCount: 10,
      },
      {
        _id: "623c279270387f94fff8fd6e",
        name: "Test_1111",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                smsFallBackContent: {
                  message: "Test SMS message",
                },
                contentType: "RICHCARD",
                cardType: "STANDALONE",
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardContent: [
                  {
                    media: {
                      height: "MEDIUM",
                      mediaUrl:
                        "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/abc49b13-6e84-4ff9-8859-6dd8d8d5.jpg",
                    },
                    mediaType: "IMAGE",
                    description: "Test Text message\n{{store_name}}",
                    title: "Test Title",
                  },
                ],
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-24T08:10:58.084Z",
        updatedAt: "2022-03-24T08:10:58.084Z",
        totalCount: 10,
      },
      {
        _id: "623c264b70387f4db0f8fd6d",
        name: "Copy of Test_112 03-24-2022 13:35:31",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                cardContent: [
                  {
                    title: "Hi I am Title",
                    description: "Hi I am Text message",
                    mediaType: "IMAGE",
                    media: {
                      mediaUrl:
                        "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg",
                      height: "MEDIUM",
                    },
                  },
                ],
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardType: "STANDALONE",
                contentType: "RICHCARD",
                smsFallBackContent: {
                  message: "",
                },
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-24T08:05:31.979Z",
        updatedAt: "2022-03-24T08:05:31.979Z",
        totalCount: 10,
      },
      {
        _id: "623c000670387f4df6f8fd59",
        name: "Test_112",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                smsFallBackContent: {
                  message: "",
                },
                contentType: "RICHCARD",
                cardType: "STANDALONE",
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardContent: [
                  {
                    media: {
                      height: "MEDIUM",
                      mediaUrl:
                        "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg",
                    },
                    mediaType: "IMAGE",
                    description: "Hi I am Text message",
                    title: "Hi I am Title",
                  },
                ],
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-24T05:22:15.073Z",
        updatedAt: "2022-03-24T05:22:15.073Z",
        totalCount: 10,
      },
      {
        _id: "623bff3570387f33a4f8fd56",
        name: "Test_111",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                smsFallBackContent: {
                  message: "HI I am Fallback SMS{{optout}}",
                },
                contentType: "RICHCARD",
                cardType: "STANDALONE",
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardContent: [
                  {
                    media: {
                      height: "MEDIUM",
                      mediaUrl: "",
                    },
                    mediaType: "NONE",
                    description: "Hi I am Description{{optout}}",
                    title: "Hi I am Title",
                  },
                ],
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-24T05:18:45.280Z",
        updatedAt: "2022-03-24T05:18:45.280Z",
        totalCount: 10,
      },
      {
        _id: "623bfc6870387fb550f8fd55",
        name: "Copy of test_vin_8 03-24-2022 10:36:45",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                cardContent: [
                  {
                    title: "This is RCS title",
                    description: "This is RCS description {{optout}}",
                    mediaType: "IMAGE",
                    media: {
                      mediaUrl:
                        "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg",
                      height: "MEDIUM",
                    },
                  },
                ],
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardType: "STANDALONE",
                contentType: "RICHCARD",
                smsFallBackContent: {
                  message: "This is fallback msg {{optout}}",
                },
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-24T05:06:48.885Z",
        updatedAt: "2022-03-24T05:06:48.885Z",
        totalCount: 10,
      },
      {
        _id: "623acf4df971231e66c85882",
        name: "test_vin_8",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                smsFallBackContent: {
                  message: "This is fallback msg {{optout}}",
                },
                contentType: "RICHCARD",
                cardType: "STANDALONE",
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardContent: [
                  {
                    media: {
                      height: "MEDIUM",
                      mediaUrl:
                        "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg",
                    },
                    mediaType: "IMAGE",
                    description: "This is RCS description {{optout}}",
                    title: "This is RCS title",
                  },
                ],
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-23T07:42:05.226Z",
        updatedAt: "2022-03-23T07:42:05.226Z",
        totalCount: 10,
      },
      {
        _id: "62388944a7e1a1e8fddfe97f",
        name: "test_template_112",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                smsFallBackContent: {
                  message: "fallback message {{voucher(373913)}}",
                  templateConfigs: {
                    templateVariableMapping: {
                      "{#var#}_6": {
                        count: 3,
                        data: "test22",
                      },
                      "{#var#}_1": {
                        count: 4,
                        data: "test11",
                      },
                    },
                    registeredSenderIds: ["CPLRYT", "CPLRY"],
                    template:
                      "Hi {#var#} enjoy 50% off at Celio. Capillary Tech.",
                    templateId: "template_whatever_id",
                  },
                },
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardType: "STANDALONE",
                contentType: "RICHCARD",
                cardContent: [
                  {
                    media: {
                      mediaUrl:
                        "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/e4a14f49-9e1d-4d96-b7d2-9768f0e.jpeg",
                      height: "MEDIUM",
                    },
                    mediaType: "NONE",
                    description:
                      "Automatically sign in to sites and apps using stored credentials. If turned off, you'll be asked for confirmation every time before signing in to a site or app. Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.",
                    title: "title",
                  },
                ],
                mediaType: "text",
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-21T14:18:44.322Z",
        updatedAt: "2022-03-21T14:18:44.322Z",
        totalCount: 10,
      },
      {
        _id: "623888aca7e1a16926dfe97d",
        name: "test_template_111",
        type: "RCS",
        versions: {
          $init: true,
          history: [],
          base: {
            content: {
              RCS: {
                smsFallBackContent: {
                  message: "fallback message {{voucher(373913)}}",
                  templateConfigs: {
                    templateVariableMapping: {
                      "{#var#}_6": {
                        count: 3,
                        data: "test22",
                      },
                      "{#var#}_1": {
                        count: 4,
                        data: "test11",
                      },
                    },
                    registeredSenderIds: ["CPLRYT", "CPLRY"],
                    template:
                      "Hi {#var#} enjoy 50% off at Celio. Capillary Tech.",
                    templateId: "template_whatever_id",
                  },
                },
                cardSettings: {
                  cardOrientation: "VERTICAL",
                },
                cardType: "STANDALONE",
                contentType: "RICHCARD",
                cardContent: [
                  {
                    media: {
                      mediaUrl:
                        "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c2c793b1-4740-47b6-819a-4310354d.jpg",
                      height: "MEDIUM",
                    },
                    mediaType: "NONE",
                    description:
                      "Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.",
                    title: "title",
                  },
                ],
                mediaType: "text",
              },
            },
          },
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-21T14:16:12.731Z",
        updatedAt: "2022-03-21T14:16:12.731Z",
        totalCount: 10,
      },
    ],
  },
  smsTemplates: {
    getAllTemplatesInProgress: false,
    weCrmAccountFetchingError: false,
    weCRMtemplates: [],
    userList: {
      orgUsers: [
        {
          userId: 50012994,
          firstName: "firstUser",
          lastName: "",
          loginName: "firstUser@capillarytech.com",
          email: "firstUser@capillarytech.com",
          mobile: "918888802132",
          isMobileValidated: 0,
          isEmailValidated: 0,
        },
      ],
      capUsers: [
        {
          userId: 15000449,
          firstName: "Ashish",
          lastName: "Karan fd",
          loginName: "cap@coin.com",
          email: "cap@coin.com",
          mobile: "919957676767",
          isMobileValidated: 1,
          isEmailValidated: 1,
        },
      ],
    },
    templateError: {},
    fetchingWeCrmAccounts: false,
    fetchingUserList: false,
    isSearch: false,
    userListFetchError: false,
    templates: [
      {
        _id: "623c39e970387f3cf5f8fd70",
        name: "testtest",
        type: "SMS",
        versions: {
          $init: true,
          history: [],
          base: {},
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-24T09:29:13.376Z",
        updatedAt: "2022-03-29T11:15:53.175Z",
        totalCount: 10,
      },
    ],
  },
  emailTemplates: {
    getAllTemplatesInProgress: false,
    weCrmAccountFetchingError: false,
    weCRMtemplates: [],
    userList: {
      orgUsers: [
        {
          userId: 50012994,
          firstName: "firstUser",
          lastName: "",
          loginName: "firstUser@capillarytech.com",
          email: "firstUser@capillarytech.com",
          mobile: "918888802132",
          isMobileValidated: 0,
          isEmailValidated: 0,
        },
      ],
      capUsers: [
        {
          userId: 15000449,
          firstName: "Ashish",
          lastName: "Karan fd",
          loginName: "cap@coin.com",
          email: "cap@coin.com",
          mobile: "919957676767",
          isMobileValidated: 1,
          isEmailValidated: 1,
        },
      ],
    },
    templateError: {},
    fetchingWeCrmAccounts: false,
    fetchingUserList: false,
    isSearch: false,
    userListFetchError: false,
    templates: [
      {
        _id: "623c39e970387f3cf5f8fd70",
        name: "testtest",
        type: "EMAIL",
        versions: {
          $init: true,
          history: [],
          base: {},
        },
        isActive: true,
        orgId: 50146,
        createdBy: "15000449",
        updatedBy: "15000449",
        createdAt: "2022-03-24T09:29:13.376Z",
        updatedAt: "2022-03-29T11:15:53.175Z",
        totalCount: 10,
      },
    ],
  },
  whatsappEditTemplateData: {
    mode: "edit",
    _id: "620e213d39bd394c58aeaaca",
    modeType: "",
    whatsappTemplateName: "amit123456",
    whatsappTemplateCategory: "ALERT_UPDATE",
    whatsappTemplateLanguageCode: "en",
    type: "WHATSAPP",
    channel: "WHATSAPP",
    validity: true,
  },
  whatsappGetTemplateData1: {
    channel: "WHATSAPP",
    storeType: "REGISTERED_STORE",
    accountId: 12721,
    messagePartsCount: 1,
    messageBody:
      "Hey test, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test",
    templateConfigs: {
      name: "creatives_whatsapp6",
      language: "en",
      varMapped: {
        "{{1}}_1": "test",
        "{{2}}_3": "test",
      },
      template:
        "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}",
      id: "creatives_whatsapp6",
      category: "MARKETING",
    },
    accountName: "WhatsappAccount",
  },
  whatsappGetTemplateData2: {
    channel: "WHATSAPP",
    storeType: "REGISTERED_STORE",
    accountId: 12721,
    messagePartsCount: 1,
    messageBody:
      "Hey test, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test\nClick {{unsubscribe}} to unsubscribe",
    templateConfigs: {
      buttons: [
        {
          text: "Call",
          type: "PHONE_NUMBER",
          phoneNumber: "+919738752617",
          index: 0,
        },
        {
          text: "Visit",
          type: "DYNAMIC_URL",
          url: "https://docs.google.com/{{optout}}",
          index: 1,
          dynamicUrlPayload: "{{optout}}",
        },
      ],
      name: "creatives_whatsapp6",
      buttonType: "CTA",
      whatsappMedia: {
        url: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
      },
      language: "en",
      varMapped: {
        "{{1}}_1": "test",
        "{{2}}_3": "test",
        "{{3}}_unsubscribe": "{{unsubscribe}}",
      },
      template:
        "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}",
      id: "creatives_whatsapp6",
      category: "MARKETING",
      mediaType: "IMAGE",
    },
    accountName: "WhatsappAccount",
  },
  whatsappGetCreativeData1: {
    value: {
      name: "creatives_whatsapp6",
      versions: {
        base: {
          content: {
            whatsapp: {
              category: "MARKETING",
              languages: [
                {
                  language: "en",
                  content:
                    "Hey test1, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test2\nClick {{unsubscribe}} to unsubscribe",
                },
              ],
              buttonType: "CTA",
              buttons: [
                {
                  index: 0,
                  type: "PHONE_NUMBER",
                  text: "Call",
                  phone_number: "+919738752617",
                },
                {
                  index: 1,
                  type: "DYNAMIC_URL",
                  text: "Visit",
                  url: "https://docs.google.com/{{first_name}}",
                },
              ],
              mediaType: "IMAGE",
              imageUrl:
                "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
              karixFileHandle: "",
              varMapped: {
                "{{1}}_1": "test1",
                "{{2}}_3": "test2",
              },
              templateEditor:
                "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}",
              accountId: "",
              accessToken: "",
              hostName: "",
            },
          },
        },
      },
      type: "WHATSAPP",
    },
    validity: true,
    type: "WHATSAPP",
    channel: "WHATSAPP",
  },
  whatsappGetCreativeData2: {
    value: {
      name: "creatives_whatsapp6",
      versions: {
        base: {
          content: {
            whatsapp: {},
          },
        },
      },
      type: "WHATSAPP",
    },
    validity: true,
    type: "WHATSAPP",
    channel: "WHATSAPP",
  },
  getWhatsappDocPreviewOutput: (
    <>
      <div className="pdf-img-box">
        <CapImage
          src={
            "https://play-lh.googleusercontent.com/BkRfMfIRPR9hUnmIYGDgHHKjow-g18-ouP6B2ko__VnyUHSi1spcc78UtZ4sVUtBH4g"
          }
          alt="upload-document-src"
          className="pdf-preview-img"
        />
      </div>
      <div className="pdf-label">
        <CapImage src={pdfIcon} />
        <div className="pdf-info">
          <div className="pdf-name-div">
            <CapLabel type="label9" className="pdf-name">
              java_tutorial.pdf
            </CapLabel>
          </div>
          <CapLabel className="pdf-info-sec">
            {2} {<FormattedMessage {...messages.pages} />}
            {` · 1.0 MB · `}
            <FormattedMessage {...messages.pdf} />
          </CapLabel>
        </div>
      </div>
    </>
  ),
  getWhatsappDocPreviewOutput1: (
    <>
      <div className="pdf-img-box">
        <CapImage
          src={
            "https://play-lh.googleusercontent.com/BkRfMfIRPR9hUnmIYGDgHHKjow-g18-ouP6B2ko__VnyUHSi1spcc78UtZ4sVUtBH4g"
          }
          alt="upload-document-src"
          className="pdf-preview-img"
        />
      </div>
      <div className="pdf-label">
        <CapImage src={pdfIcon} />
        <div className="pdf-info">
          <div className="pdf-name-div">
            <CapLabel type="label9" className="pdf-name">
              java_tutorial.pdf
            </CapLabel>
          </div>
          <CapLabel className="pdf-info-sec">
            {1} {<FormattedMessage {...messages.page} />}
            {` · 1.0 MB · `}
            <FormattedMessage {...messages.pdf} />
          </CapLabel>
        </div>
      </div>
    </>
  ),
  rcsEditTemplateData: {
    mode: "edit",
    _id: "620e213d39bd394c58aeaaca",
    modeType: "",
    type: "RCS",
    channel: "RCS",
    validity: true,
  },
  smsEditTemplateData: {
    mode: "edit",
    _id: "620e213d39bd394c58aeaaca",
    modeType: "",
    type: "SMS",
    channel: "SMS",
    validity: true,
  },
  emailEditTemplateData: {
    mode: "edit",
    _id: "620e213d39bd394c58aeaaca",
    modeType: "",
    type: "EMAIL",
    channel: "EMAIL",
    validity: true,
  },
  getWhatsappContentOutput: "123450\nClick {{unsubscribe}} to unsubscribe",
  getWhatsappStatusOutput1: {
    key: "approved",
    label: (
      <FormattedMessage
        defaultMessage="Approved"
        id="creatives.containersV2.Whatsapp.approved"
        values={{}}
      />
    ),
    value: "approved",
  },
  getWhatsappStatusOutput2: {
    key: "awaitingApproval",
    label: (
      <FormattedMessage
        defaultMessage="Awaiting approval"
        id="creatives.containersV2.Whatsapp.awaitingApproval"
        values={{}}
      />
    ),
    value: "awaitingApproval",
  },
  getWhatsappCategoryOutput1: {
    key: "alertUpdate",
    label: (
      <FormattedMessage
        defaultMessage="Alert update"
        id="creatives.containersV2.Whatsapp.alertUpdate"
        values={{}}
      />
    ),
    tagColor: "#f2e7fe",
    tagTextColor: "#a451ff",
    tooltipLabel: (
      <FormattedMessage
        defaultMessage="Send important updates or news to customers."
        id="creatives.containersV2.Whatsapp.alertUpdateTooltip"
        values={{}}
      />
    ),
    value: "ALERT_UPDATE",
  },
  getWhatsappCategoryOutput2: {
    key: "utility",
    label: (
      <FormattedMessage
        defaultMessage="Utility"
        id="creatives.containersV2.Whatsapp.utility"
        values={{}}
      />
    ),
    tagColor: "#f2e7fe",
    tagTextColor: "#a451ff",
    tooltipLabel: (
      <FormattedMessage
        defaultMessage="Send account updates, order updates, alerts, and more to share important information."
        id="creatives.containersV2.Whatsapp.utilityTooltip"
        values={{}}
      />
    ),
    value: "UTILITY",
  },
  whatsappPreviewTemplateData: {
    mode: "preview",
    _id: "62d3f971b497b671d3bbf8f7",
    name: "creatives_whatsapp6",
    type: "WHATSAPP",
    versions: {
      $init: true,
      history: [],
      base: {
        content: {
          whatsapp: {
            status: "approved",
            templateId: "720951875646523",
            hostName: "karixwhatsappbulk",
            accessToken: "Bearer abcd",
            accountId: "12345",
            templateEditor: false,
            karixFileHandle:
              "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
            imageUrl:
              "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
            mediaType: "IMAGE",
            buttons: [
              {
                phone_number: "+919738752617",
                text: "Call",
                type: "PHONE_NUMBER",
                index: 0,
              },
              {
                url: "https://docs.google.com/{{1}}",
                text: "Visit",
                type: "DYNAMIC_URL",
                index: 1,
              },
            ],
            buttonType: "CTA",
            languages: [
              {
                content:
                  "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe",
                language: "en",
              },
            ],
            category: "MARKETING",
            rejection_reason: "",
          },
        },
      },
    },
    isActive: true,
    orgId: 50074,
    createdBy: "15000449",
    updatedBy: "15000449",
    createdAt: "2022-07-17T11:58:45.592Z",
    updatedAt: "2022-07-17T11:58:45.592Z",
    totalCount: 8,
  },
  whatsappPreviewTemplateDataVid: {
    mode: "preview",
    _id: "62d3f971b497b671d3bbf8f7",
    name: "creatives_whatsapp6",
    type: "WHATSAPP",
    versions: {
      $init: true,
      history: [],
      base: {
        content: {
          whatsapp: {
            status: "approved",
            templateId: "720951875646523",
            hostName: "karixwhatsappbulk",
            accessToken: "Bearer abcd",
            accountId: "12345",
            templateEditor: false,
            karixFileHandle:
              "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
            videoUrl:
              "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.MP4",
            videoPreviewImg:
              "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213/1040",
            mediaType: "VIDEO",
            buttons: [
              {
                phone_number: "+919738752617",
                text: "Call",
                type: "PHONE_NUMBER",
                index: 0,
              },
              {
                url: "https://docs.google.com/{{1}}",
                text: "Visit",
                type: "DYNAMIC_URL",
                index: 1,
              },
            ],
            buttonType: "CTA",
            languages: [
              {
                content:
                  "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe",
                language: "en",
              },
            ],
            category: "MARKETING",
            rejection_reason: "",
          },
        },
      },
    },
    isActive: true,
    orgId: 50074,
    createdBy: "15000449",
    updatedBy: "15000449",
    createdAt: "2022-07-17T11:58:45.592Z",
    updatedAt: "2022-07-17T11:58:45.592Z",
    totalCount: 8,
  },
  whatsappPreviewTemplateDataDoc: {
    mode: "preview",
    _id: "62d3f971b497b671d3bbf8f7",
    name: "creatives_whatsapp6",
    type: "WHATSAPP",
    versions: {
      $init: true,
      history: [],
      base: {
        content: {
          whatsapp: {
            status: "approved",
            templateId: "720951875646523",
            hostName: "karixwhatsappbulk",
            accessToken: "Bearer abcd",
            accountId: "12345",
            templateEditor: false,
            karixFileHandle:
              "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
            documentUrl:
              "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.pdf",
            whatsappDocParams: {},
            mediaType: "DOCUMENT",
            buttons: [
              {
                phone_number: "+919738752617",
                text: "Call",
                type: "PHONE_NUMBER",
                index: 0,
              },
              {
                url: "https://docs.google.com/{{1}}",
                text: "Visit",
                type: "DYNAMIC_URL",
                index: 1,
              },
            ],
            buttonType: "CTA",
            languages: [
              {
                content:
                  "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe",
                language: "en",
              },
            ],
            category: "MARKETING",
            rejection_reason: "",
          },
        },
      },
    },
    isActive: true,
    orgId: 50074,
    createdBy: "15000449",
    updatedBy: "15000449",
    createdAt: "2022-07-17T11:58:45.592Z",
    updatedAt: "2022-07-17T11:58:45.592Z",
    totalCount: 8,
  },
  whatsappPreviewTemplateData2: {
    mode: "preview",
    _id: "62d3edc8b497b63ff5bbf8ea",
    name: "test_twilio_159425",
    type: "WHATSAPP",
    versions: {
      $init: true,
      history: [],
      base: {
        content: {
          whatsapp: {
            status: "approved",
            templateId: "HTee0274fb8dfdd45427bb678f875b0d54",
            hostName: "twiliowhatsapptrans",
            accessToken: "4676323eb5d1f975b0987070c03a8efc",
            accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
            templateEditor: false,
            mediaType: "TEXT",
            languages: [
              {
                content: "Hi {{1}}, your payment is successful.",
                language: "en",
              },
            ],
            category: "ALERT_UPDATE",
            rejection_reason: null,
          },
        },
      },
    },
    isActive: true,
    orgId: 50371,
    createdBy: "15000449",
    updatedBy: "15000449",
    createdAt: "2022-07-17T11:08:56.326Z",
    updatedAt: "2022-07-17T11:08:56.326Z",
    totalCount: 7,
  },
  whatsappPreviewTemplateData3: {
    mode: "preview",
    _id: "62d3edc8b497b63ff5bbf8ea",
    name: "test_twilio_159425",
    type: "WHATSAPP",
    versions: {
      $init: true,
      history: [],
      base: {
        content: {
          whatsapp: {
            status: "approved",
            templateId: "HTee0274fb8dfdd45427bb678f875b0d54",
            hostName: "twiliowhatsapptrans",
            accessToken: "4676323eb5d1f975b0987070c03a8efc",
            accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
            templateEditor: false,
            mediaType: "TEXT",
            languages: [
              {
                content: "Hi, your payment is successful.",
                language: "en",
              },
            ],
            category: "ALERT_UPDATE",
            rejection_reason: null,
            whatsappMedia: {
              header: "Hello welcome",
              footer: "Thanks",
            },
            buttonType: "QUICK_REPLY",
            buttons: [
              {
                index: 0,
                type: "QUICK_REPLY",
                text: "Interested",
              },
              {
                index: 0,
                type: "QUICK_REPLY",
                text: "Not Interested",
              },
            ],
          },
        },
      },
    },
    isActive: true,
    orgId: 50371,
    createdBy: "15000449",
    updatedBy: "15000449",
    createdAt: "2022-07-17T11:08:56.326Z",
    updatedAt: "2022-07-17T11:08:56.326Z",
    totalCount: 7,
  },
  whatsappPreviewTemplateData3Result: {
    carouselData: [],
    quickReplyData: [
      {
        index: 0,
        type: "QUICK_REPLY",
        text: "Interested",
      },
      {
        index: 0,
        type: "QUICK_REPLY",
        text: "Not Interested",
      },
    ],
    charCount: 49,
    templateFooterPreview: (
      <CapLabel className="whatsapp-template-list-footer-preview">
        Thanks
      </CapLabel>
    ),
    templateHeaderPreview: (
      <CapLabel className="whatsapp-template-list-header-preview">
        Hello welcome
      </CapLabel>
    ),
    templateId: "HTee0274fb8dfdd45427bb678f875b0d54",
    templateMsg: (
      <CapLabel type="label9">Hi, your payment is successful.</CapLabel>
    ),
  },
  whatsappPreviewTemplateData3QuickReplyResult: [
    <CapDivider className="whatsapp-list-view-divider" />,
    <CapLabel className="whatsapp-list-quick-reply-preview" type="label21">
      <CapIcon
        size="xs"
        type="small-link"
      />
      Interested
    </CapLabel>,
    <CapDivider className="whatsapp-list-view-divider" />,
    <CapLabel className="whatsapp-list-quick-reply-preview" type="label21">
      <CapIcon
        size="xs"
        type="small-link"
      />
      Not Interested
    </CapLabel>,
  ],
  rcsPreviewTemplateData: {
    mode: "preview",
    _id: "620e213d39bd394c58aeaaca",
    name: "amit123456",
    type: "RCS",
    versions: {
      $init: true,
      history: [],
      base: {
        content: {
          RCS: {
            cardContent: [
              {
                title: "title",
                description: "Desc",
                mediaType: "NONE",
                media: {
                  mediaUrl: "",
                  height: "MEDIUM",
                },
              },
            ],
            cardSettings: {
              cardOrientation: "VERTICAL",
            },
            cardType: "STANDALONE",
            contentType: "RICHCARD",
            smsFallBackContent: {
              message: "123",
            },
          },
        },
      },
    },
    isActive: true,
    orgId: 50371,
    createdBy: "15000449",
    updatedBy: "15000449",
    createdAt: "2022-02-17T10:19:42.211Z",
    updatedAt: "2022-02-17T10:19:42.211Z",
    totalCount: 12,
    updatedByName: "Ashish Karan fd",
  },
  getCreativesParamsOutput: {
    _id: undefined,
    account: undefined,
    mode: "edit",
    modeType: undefined,
    type: "WHATSAPP",
    whatsappTemplateCategory: "",
    whatsappTemplateLanguageCode: "",
    whatsappTemplateName: "",
  },
  location: {
    pathname: "/creatives/ui/v2",
    search: "",
    hash: "",
    key: "m54f43",
  },
  match: {
    path: "/creatives/ui/v2",
    url: "/creatives/ui/v2",
    isExact: true,
    params: {},
  },
  capGlobal: {
    fetching_userdata: false,
    orgID: 1001,
    user: {
      proxyOrgList: [
        {
          orgID: 1001,
          orgName: "org1",
        },
        {
          orgID: 1002,
          orgName: "org2",
        },
      ],
      attributes: {
        USERNAME: {
          value: "capUser",
        },
        EMAIL: {
          value: "capUser@capillary.com",
        },
      },
      refID: 101,
      orgName: "org1",
      orgID: "1001",
    },
    isLoggedIn: true,
    currentOrgDetails: {},
  },
  language: {
    localeLoading: false,
  },
  linePreviewTemplateData1: {
    mode: "preview",
    _id: "62a810e4d4715c768d6ee9cf",
    name: "Demo Old Template 2(Multiple images)",
    type: "LINE",
    versions: {
      $init: true,
      history: [],
      base: {
        content: {
          messages: [
            {
              altText: "Demo Old Template 2(Multiple images)",
              template: {
                type: "image_carousel",
                columns: [
                  {
                    action: {
                      uri: "https://www.demo.com",
                      label: "Demo Old 2",
                      type: "uri",
                    },
                    imageUrl:
                      "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg",
                  },
                  {
                    imageUrl: "",
                  },
                ],
              },
            },
          ],
          to: "{{line_id}}",
        },
      },
    },
    isActive: true,
    orgId: 1604,
    createdBy: "15000449",
    updatedBy: "15000449",
    createdAt: "2022-06-14T04:39:00.665Z",
    updatedAt: "2022-06-14T04:39:00.665Z",
    definition: {
      mode: "template",
    },
    totalCount: 1,
    updatedByName: "Ashish Karan fd",
  },
  linePreviewTemplateData2: {
    mode: "preview",
    _id: "629f7ecf134738019b2e332e",
    name: "ggg1",
    type: "LINE",
    versions: {
      $init: true,
      history: [],
      base: {
        content: {
          to: "{{line_id}}",
          messages: [
            {
              type: "flex",
              altText: "ggg",
              contents: {
                contents: [
                  {
                    type: "bubble",
                    hero: {
                      type: "image",
                      url: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg",
                      size: "full",
                      aspectRatio: "1:1",
                      aspectMode: "cover",
                    },
                    footer: {
                      type: "box",
                      layout: "vertical",
                      spacing: "xs",
                      contents: [
                        {
                          type: "button",
                          style: "link",
                          height: "sm",
                          action: {
                            type: "message",
                            label: "ggg",
                            text: "ggg",
                          },
                        },
                      ],
                    },
                  },
                  {
                    type: "bubble",
                    hero: {},
                    footer: {
                      type: "box",
                      layout: "vertical",
                      spacing: "xs",
                      contents: [{}],
                    },
                  },
                  {
                    type: "bubble",
                  },
                ],
                type: "carousel",
              },
            },
          ],
        },
      },
    },
    isActive: true,
    orgId: 1604,
    createdBy: "15000449",
    updatedBy: "15000449",
    createdAt: "2022-06-07T16:37:35.447Z",
    updatedAt: "2022-06-07T16:42:02.243Z",
    definition: {
      mode: "template",
    },
    totalCount: 1,
    updatedByName: "Ashish Karan fd",
  },
  zaloTemplates: {
    selectedZaloAccount: {
      sourceTypeName: "ZALO",
      name: "capillary_zns",
      isActive: true,
      sourceTypeId: 29,
      configs: {
        accessToken: "Bearer 3f506142-b06c-4f7b-b922-44da363e77e7",
        promotionalMessagingSSID: "",
        transactionalMessagingSSID: "",
      },
      hostName: "",
      toMirror: true,
      id: 85,
      uuid: "mock-zalo-account-uuid-001",
      sourceAccountIdentifier: "4404293319006178133",
      commChannels: ["zalo"],
    },
    getAllTemplatesInProgress: false,
    weCrmAccountFetchingError: false,
    weCRMtemplates: [],
    templateError: {},
    fetchingWeCrmAccounts: false,
    fetchingUserList: false,
    isSearch: false,
    weCrmAccounts: [
      {
        sourceTypeName: "ZALO",
        name: "capillary_zns",
        isActive: true,
        sourceTypeId: 29,
        configs: {
          accessToken: "Bearer 3f506142-b06c-4f7b-b922-44da363e77e7",
          promotionalMessagingSSID: "",
          transactionalMessagingSSID: "",
        },
        toMirror: true,
        id: 85,
        uuid: "mock-zalo-account-uuid-001",
        sourceAccountIdentifier: "4404293319006178133",
        commChannels: ["zalo"],
      },
    ],
    userListFetchError: false,
    templates: [
      {
        name: "Test1",
        versions: {
          base: {
            content: {
              ZALO: {
                templateId: "268531",
                templateName: "Test1",
                status: "approved",
                listParams: [
                  {
                    name: "danh_xung",
                    require: true,
                    type: "STRING",
                    maxLength: 30,
                    minLength: 0,
                    acceptNull: false,
                  },
                  {
                    name: "name",
                    require: true,
                    type: "STRING",
                    maxLength: 30,
                    minLength: 0,
                    acceptNull: false,
                  },
                ],
                previewUrl:
                  "https://account.zalo.cloud/znspreview/-e0cMil4NU5WUUAVzP7T_g==",
              },
            },
          },
        },
        type: "ZALO",
      },
      {
        name: "Test2",
        versions: {
          base: {
            content: {
              ZALO: {
                templateId: "268532",
                templateName: "Test2",
                status: "approved",
                listParams: [
                  {
                    name: "danh_xung",
                    require: true,
                    type: "STRING",
                    maxLength: 30,
                    minLength: 0,
                    acceptNull: false,
                  },
                  {
                    name: "name",
                    require: true,
                    type: "STRING",
                    maxLength: 30,
                    minLength: 0,
                    acceptNull: false,
                  },
                ],
                previewUrl:
                  "https://account.zalo.cloud/znspreview/-e0cMil4NU5WUUAVzP7T_g==",
              },
            },
          },
        },
        type: "ZALO",
      },
    ],
  },
  zaloEditTemplateData: {
    _id: 42342,
    name: "Test sample",
    type: "ZALO",
  },
  callback: () => 'callback called',
  error: {
    message: 'Unauthorised',
    response: {
      status: 401,
    },
  },
  error2: {
    isError: true,
    message: 'Error message',
  },
  videoConfigData: {
    is_active: true,
    _id: "123456",
    product: "Creatives",
    json_config: [{ data: 'Test data' }],
  },
  Global: {
    demoVideoAndLinkJSON: {
      is_active: true,
      _id: "64a3960248092d9819a0066f",
      product: "Creatives",
      __v: 0,
      createdAt: "2023-07-04T03:46:10.857Z",
      json_config: [
        {
          route: "/creatives/ui/v2",
          target_elements: {
            "//*[@id='app']/div/div/div/div[2]/div/div/div/div[1]/div/div[2]": {
              description: "Overall performance",
              support_link: {
                target_url: {
                  default: {
                    label: "Help",
                    href: "https://app.storylane.io/share/v1ilsyhwno8m",
                  },
                  en: {
                    label: "Help",
                    href: "https://app.storylane.io/share/v1ilsyhwno8m",
                  },
                },
              },
            },
            "//*[@id='app']/div/div/div/div[2]/div/div/div/div[1]/div/div[1]": {
              description: "Graph",
              support_video: {
                target_url: {
                  "default": {
                    label: "Demo",
                    href: "https://www.youtube.com/embed/-hPJQQ0-vIE",
                    videoTitle: "Loyalty Sales",
                    supportDoc: "https://500px.com/popular",
                  },
                  "en": {
                    label: "Demo",
                    href: "https://www.youtube.com/embed/-hPJQQ0-vIE",
                    videoTitle: "Loyalty Sales",
                    supportDoc: "https://500px.com/popular",
                  },
                  "zh-CN": {
                    label: "演示",
                    href: "https://www.youtube.com/embed/-hPJQQ0-vIE",
                    videoTitle: "忠誠銷售",
                    supportDoc: "https://500px.com/popular",
                  },
                },
              },
            },
          },
        },
      ],
      updatedAt: "2023-10-24T09:27:03.666Z",
    },
    metaEntities: {
      layouts: [],
      tags: [],
    },
    topbarMenuData: {
      status: "success",
      data: [
        {
          label: {
            key: null,
            ref: null,
            props: {
              id: "creatives.containersV2.Cap.campaigns",
              defaultMessage: "Campaigns",
              values: {},
            },
            _owner: null,
            _store: {
              validated: true,
            },
          },
          link: "/campaigns/ui/list",
          key: "campaigns",
        },
        {
          label: {
            key: null,
            ref: null,
            props: {
              id: "creatives.containersV2.Cap.journeys",
              defaultMessage: "Journeys",
              values: {},
            },
            _owner: null,
            _store: {
              validated: true,
            },
          },
          link: "/journey/ui",
          key: "journeys",
        },
        {
          label: {
            key: null,
            ref: null,
            props: {
              id: "creatives.containersV2.audience",
              defaultMessage: "Audience",
              values: {},
            },
            _owner: null,
            _store: {
              validated: true,
            },
          },
          link: "/audience-manager/list",
          key: "audience",
        },
        {
          label: {
            key: null,
            ref: null,
            props: {
              id: "creatives.containersV2.incentive",
              defaultMessage: "Incentive",
              values: {},
            },
            _owner: null,
            _store: {
              validated: true,
            },
          },
          link: "/coupons/ui/",
          key: "incentive",
        },
        {
          label: {
            key: null,
            ref: null,
            props: {
              id: "creatives.containersV2.Cap.creatives",
              defaultMessage: "Creatives",
              values: {},
            },
            _owner: null,
            _store: {
              validated: true,
            },
          },
          link: "/creatives/ui/v2",
          key: "creatives",
        },
      ],
    },
    fetchingSchema: true,
    user: {
      lastName: "Talukdar",
      active: "true",
      loginCount: 34,
      iso_lang: "en_US",
      authEntities: {
        userRoleType: "org",
        userEntities: {
          store: [],
        },
      },
      passwordValidity: "2024-03-31 16:56:11",
      creationDate: "2023-09-01 19:53:07",
      refID: "50685402",
      lang: "en",
      accessiblePermissions: [
        "devonly",
        "OE",
        "SOE",
        "DOT",
        "Analytics",
        "Tech support",
        "AOM",
        "OM",
        "SMS CCMS Dumps",
        "Raw Data Dump",
        "ACCESSTEAM",
        "SOCIAL",
        "DCS",
        "MC_READ",
        "MC_GOODWILL_READ",
        "MC_WRITE",
        "LP",
        "MC_SEARCH",
        "MC_CUSTOMER_UPDATE",
        "MC_CIR_VIEW",
        "MC_CIR_UPDATE",
        "MC_GWR_VIEW",
        "MC_GWR_UPDATE",
        "MC_SETTINGS",
        "CAMP_CONF_ALL",
        "CAMP_CREATE",
        "CAMP_MSG_CREATE",
        "CAMP_MSG_APPROVE",
        "CAMP_COUPON_CREATE",
        "CAMP_REPORT_VIEW",
        "CAMP_LIST_CONF",
        "CAMP_MSG_TEMPLATE_DESIGN",
        "configure_actions",
        "view_coupon_series",
        "view_rule_campaign",
        "configure_coupon_series",
        "bounceback_campaign_auth",
        "MC_RESEND_COUPON",
        "command_center_admin",
        "finance",
        "ADMIN_ACCESS",
        "PII_MASK",
        "PII_MASK_NOT_REQUIRED",
        "ALL_MSG_APPROVE",
        "COUPON_MSG_APPROVE",
        "POINTS_MSG_APPROVE",
        "LIST_CSV_UPLOAD",
        "EXT_FACT_ACCESS",
        "CAMP_XENGAGE_SETTINGS",
        "AUDIENCE_MANAGER_UI_VIEW",
        "CAMPAIGNS_UI_VIEW",
        "INCENTIVES_UI_VIEW",
        "CREATIVES_UI_VIEW",
        "UNMASKED_OTP_VIEW",
        "MC_WRT_GWP_REQ",
        "MC_XCUTE_GWP_REQ",
        "MC_WRT_GWC_REQ",
        "MC_XCUTE_GWC_REQ",
        "MC_WRT_GROUP_GWP_REQ",
        "MC_XCUTE_GROUP_GWP_REQ",
        "MC_WRT_PII_DLT_REQ",
        "MC_XCUTE_PII_DLT_REQ",
        "MC_WRT_RTRO_TXN_REQ",
        "MC_XCUTE_RTRO_TXN_REQ",
        "MC_WRT_M_REALLOC_REQ",
        "MC_XCUTE_M_REALLOC_REQ",
        "MC_WRT_ACC_MERGE_REQ",
        "MC_XCUTE_ACC_MERGE_REQ",
        "MC_WRT_TXN_REQ",
        "MC_XCUTE_TXN_REQ",
        "MC_WRT_IDCHANGE_MBL_REQ",
        "MC_XCUTE_IDCHANGE_MBL_REQ",
        "MC_WRT_IDCHANGE_EML_REQ",
        "MC_XCUTE_IDCHANGE_EML_REQ",
        "MC_WRT_IDCHANGE_EXID_REQ",
        "MC_XCUTE_IDCHANGE_EXID_RE",
        "MC_OLD_GOODWILL_XCUTE",
        "MC_OLD_GOODWILL_WRT",
        "MC_OLD_CHANGE_ID_XCUTE",
        "MC_OLD_CHANGE_ID_WRT",
        "MC_OLD_MBL_REALLOC_XCUTE",
        "MC_OLD_MBL_REALLOC_WRT",
        "MC_OLD_ACC_MERGE_XCUTE",
        "MC_OLD_ACC_MERGE_WRT",
        "MC_VIEW_GWP_REQ",
        "MC_VIEW_GWC_REQ",
        "MC_VIEW_GROUP_GWP_REQ",
        "MC_VIEW_PII_DLT_REQ",
        "MC_VIEW_RTRO_TXN_REQ",
        "MC_VIEW_M_REALLOC_REQ",
        "MC_VIEW_ACC_MERGE_REQ",
        "MC_VIEW_TXN_REQ",
        "MC_VIEW_IDCHANGE_MBL_REQ",
        "MC_VIEW_IDCHANGE_EML_REQ",
        "MC_VIEW_IDCHANGE_EXID_REQ",
        "MC_ISSUE_NEW_CARD",
        "MC_EDIT_CUST_SUBSCRIPTION",
        "MC_UPDATE_CARD_NUMBER",
        "LOYALTY_UPDATE_PROGRAM",
        "LOYALTY_UPDATE_PROMOTION",
      ],
      orgName: "Capillary Technologies",
      userRoles: {
        ORG: [
          {
            entityType: "ORG",
            entityName: "Capillary Technologies",
            role: "SUPERUSER",
            entityId: 0,
            childEntities: [],
          },
        ],
      },
      isCapUser: true,
      loginName: "rakesh.talukdar@capillarytech.com",
      proxyOrgList: [
        {
          orgID: 50146,
          orgName: "Reon_Data",
        },
      ],
      attributes: {
        USERNAME: {
          value: "rakesh.talukdar@capillarytech.com",
          verified: "true",
        },
      },
      aryaUserRoles: {
        ORG: [
          {
            entityType: "ORG",
            entityName: "Capillary Technologies",
            role: "SUPERUSER",
            entityId: 0,
            childEntities: [],
          },
        ],
      },
      accessRoles: {
        OnlyDev: 467,
      },
      accessibleOUList: {
        ExpressWay: 50007995,
        Franchisee: 50007996,
        supermarket: 50007994,
        All: -1,
      },
      type: "ADMIN_USER",
      adminUser: true,
      id: "123456",
      firstName: "Rakesh",
      orgID: 0,
    },
    messages: [],
    fetching_userdata: false,
    isLoggedIn: true,
    demoVideoAndLinkJSONStatus: "SUCCESS",
    currentOrgDetails: {
      basic_details: {
        fiscal_year_start: "-1",
        base_country_code: "IN",
        max_sms_hour: 23,
        base_currency_iso: {
          label: "INR",
          symbol: "₹",
        },
        base_language: "en",
        value_sms_credits: "",
        bulk_sms_credits: "",
        base_country: "India",
        supported_languages: [
          {
            lang_id: 69,
            language: "English",
            iso_code: "en",
          },
        ],
        base_currency_name: "Indian rupee",
        name: "Reon_Data",
        base_language_iso: {
          lang: "en",
          locale: "IN",
        },
        base_timezone_iso: {
          label: "Asia/Kolkata",
          offset: "+05:30",
        },
        phone: "",
        base_country_iso: {
          code: "IN",
          name: "India",
        },
        address: "asdfasdf",
        org_id: "50146",
        min_sms_hour: 0,
        base_currency_symbol: "₹",
        language: "English",
        timezone_offset: "+05:30",
        timezone: "Asia/Kolkata",
        is_active: 1,
        base_lang_locale: "IN",
        base_currency: "INR",
      },
      sender_details: {
        GSM: "9876987022",
        CDMA: "9876987022",
        label: "TATADG",
        replyToEmail: "tata@dg.com",
        senderEmail: "tata@dg.com",
      },
      accessibleFeatures: [
        "PERSONALISATION_STRATEGY",
        "CHANNEL_PRIORITY_STRATEGY",
        "STORE2DOOR_PLUS_ENABLED",
        "XENGAGE_STRATEGY",
        "COMMUNICATION_LIMIT",
        "CAMPAIGNS_FTP",
        "PROMO_ENGINE",
        "LOYALTY_NEW_UI_ENABLED",
        "TRAI_DLT",
        "EXTERNALLY_MANAGED_COUPONS",
        "FLEET_LOYALTY_ENABLED",
        "JOURNEY_UI",
        "GIFT_CARDS",
        "LOYALTY_PROMOTION_ENABLED",
        "LABEL_CUSTOMISATION_ENABLED",
        "ENABLE_NOTIFICATION_CENTRE",
        "ENABLE_OU_BASED_RBAC",
        "ENABLE_PRODUCT_SUPPORT_VIDEOS",
        "ENABLE_RANDOM_COUPON_CODE",
        "ENABLE_AB_TESTING_BLOCK",
        "POINTS_BUDGETING_UX_ENHANCEMENTS",
        "HOSPITALITY_BASED_SCOPE",
        "ENABLE_CUSTOMER_BARCODE_TAG",
        "BADGES_UI_ENABLED",
        "ENABLE_FTP_CONNECTOR",
        "INCENTIVES_ONLY_BLOCK",
        "AUDIENCE_SYNC_COMPLETION",
      ],
      org_loyalty_v2_status: true,
      module_details: [
        {
          code: "intouchHomePage",
          display_order: 1,
          id: -1,
          name: "HOME",
          namespace: "intouchHomePage",
          url: "/home/ui",
          version: "1.0.0",
        },
        {
          id: 45,
          name: "LOYALTY+",
          code: "loyalty/ui/",
          version: "1.0.0.1",
          namespace: "loyalty/ui/",
          display_order: 6,
          url: "/loyalty/ui/",
        },
        {
          id: 39,
          name: "MEMBER CARE",
          code: "memberCare",
          version: "1.0.0.1",
          namespace: "memberCare",
          display_order: 5,
          url: "/memberCare/index",
        },
        {
          id: 27,
          name: "MASTERS",
          code: "org",
          version: "1.0.0.1",
          namespace: "org",
          display_order: 0,
          url: "/org/index",
        },
        {
          id: 49,
          name: "VULCAN",
          code: "vulcan/ui/",
          version: "1.0.0.1",
          namespace: "vulcan/ui",
          display_order: 0,
          url: "/vulcan/ui//index",
        },
        {
          id: 26,
          name: "WORKBENCH",
          code: "businessProcesses",
          version: "1.0.0.1",
          namespace: "businessProcesses",
          display_order: 10,
          url: "/businessProcesses/index",
        },
      ],
      org_campaign_v2_status: true,
      orgNamespaceInfo: {
        orgNamespaceEnabled: "1",
        namespace: {
          id: 63,
          name: "Sabre",
          parent_namespace_id: 10,
          scope: "ORG",
          is_active: 1,
        },
      },
    },
    orgID: 50146,
  },
  demoVideoAndLinkJSONData: {
    demoVideoAndLinkJSON: {
      is_active: true,
      _id: "64a3960248092d9819a0066f",
      product: "Creatives",
      __v: 0,
      createdAt: "2023-07-04T03:46:10.857Z",
      json_config: [
        {
          route: "/creatives/ui/v2",
          target_elements: {
            "//*[@id='app']/div/div/div/div[2]/div/div/div/div[1]/div/div[2]": {
              description: "Overall performance",
              support_link: {
                target_url: {
                  default: {
                    label: "Help",
                    href: "https://app.storylane.io/share/v1ilsyhwno8m",
                  },
                  en: {
                    label: "Help",
                    href: "https://app.storylane.io/share/v1ilsyhwno8m",
                  },
                },
              },
            },
            "//*[@id='app']/div/div/div/div[2]/div/div/div/div[1]/div/div[1]": {
              description: "Graph",
              support_video: {
                target_url: {
                  "default": {
                    label: "Demo",
                    href: "https://www.youtube.com/embed/-hPJQQ0-vIE",
                    videoTitle: "Loyalty Sales",
                    supportDoc: "https://500px.com/popular",
                  },
                  "en": {
                    label: "Demo",
                    href: "https://www.youtube.com/embed/-hPJQQ0-vIE",
                    videoTitle: "Loyalty Sales",
                    supportDoc: "https://500px.com/popular",
                  },
                  "zh-CN": {
                    label: "演示",
                    href: "https://www.youtube.com/embed/-hPJQQ0-vIE",
                    videoTitle: "忠誠銷售",
                    supportDoc: "https://500px.com/popular",
                  },
                },
              },
            },
            "//*[@id='campaign-app']/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div[2]/div/div[1]/div/div/div/div/div[1]/div[1]": {
              description: "Configure KPI",
              support_video: {
                target_url: {
                  "default": {
                    label: "Demo",
                    href: "https://www.youtube.com/embed/-hPJQQ0-vIE",
                    videoTitle: "Configure KPI",
                  },
                  "en": {
                    label: "Demo",
                    href: "https://www.youtube.com/embed/-hPJQQ0-vIE",
                    videoTitle: "Configure KPI",
                  },
                  "zh-CN": {
                    label: "演示",
                    href: "https://www.youtube.com/embed/-hPJQQ0-vIE",
                    videoTitle: "忠誠銷售 KPI",
                  },
                },
              },
              support_link: {
                target_url: {
                  default: {
                    label: "Help",
                    href: "https://app.storylane.io/share/v1ilsyhwno8m",
                  },
                  en: {
                    label: "Help",
                    href: "https://app.storylane.io/share/v1ilsyhwno8m",
                  },
                },
              },
            },
            "//*[@id='loyalty-app']/div/div/div/div/div/div/div/div/div/div/div/div/div/div/section/div[3]/div[1]/div/div[1]/div/div[1]": {
              description: "Program setup Hygene Nudge",
              support_link: {
                target_url: {
                  default: {
                    label: "Help",
                    href: "https://app.storylane.io/share/v1ilsyhwno8m",
                  },
                  en: {
                    label: "Help",
                    href: "https://app.storylane.io/share/v1ilsyhwno8m",
                  },
                },
              },
            },
          },
        },
      ],
      updatedAt: "2023-10-24T09:27:03.666Z",
    },
    demoVideoAndLinkJSONStatus: "SUCCESS",
  },
  loyaltyMetaData: {
    actionName: "SEND_COMMUNICATION_ACTION",
  },
  getWhatsappAutoFillData:
    < CapLabel
      className="whatsapp-autofill-btn"
      type="label21"
    >
      <FormattedMessage
        defaultMessage="Autofill"
        id="creatives.componentsV2.autofill"
        values={{}}
      />
    </CapLabel>,
};

