export const mockData = {
  rcsTextMessageTemplate: {
    name: "TextTemplate",
    versions: {
      base: {
        content: {
          RCS: {
            cardContent: [
              {
                // NO title field here!
                description: "This is a text message body.",
                mediaType: "TEXT",
                suggestions: [
                  {
                    ctaType: "reply",
                    displayText: "Reply",
                    postback: "reply_postback",
                  },
                ],
              },
            ],
            cardSettings: {
              cardOrientation: "VERTICAL",
            },
            cardType: "STANDALONE",
            contentType: "text_message",
            smsFallBackContent: {
              message: "Fallback SMS for text",
            },
          },
        },
      },
    },
    type: "RCS",
  },
  rcsRichCardTemplate: {
    name: "RichCardTemplate",
    versions: {
      base: {
        content: {
          RCS: {
            cardContent: [
              {
                title: "Card Title",
                description: "Card Description",
                mediaType: "IMAGE",
                suggestions: [
                  {
                    ctaType: "url_action",
                    displayText: "Visit",
                    url: "https://example.com",
                    postback: "visit_postback",
                  },
                  {
                    ctaType: "dialer_action",
                    displayText: "Call Us",
                    phoneNumber: "+1234567890",
                    postback: "call_postback",
                  },
                ],
                media: {
                  mediaUrl: "https://example.com/image.jpg",
                  orientation: "VERTICAL",
                  height: "MEDIUM_HEIGHT",
                },
              },
            ],
            cardSettings: {
              cardOrientation: "VERTICAL",
            },
            cardType: "STANDALONE",
            contentType: "rich_card",
            smsFallBackContent: {
              message: "Fallback SMS for image",
            },
          },
        },
      },
    },
    type: "RCS",
  },
  rcsRichCardVideoTemplate: {
    name: "RichCardVideoTemplate",
    versions: {
      base: {
        content: {
          RCS: {
            cardContent: [
              {
                title: "Video Card Title",
                description: "Video Card Description",
                mediaType: "VIDEO",
                suggestions: [],
                media: {
                  mediaUrl: "https://example.com/video.mp4",
                  thumbnailUrl: "https://example.com/thumb.jpg",
                  orientation: "VERTICAL",
                  height: "MEDIUM_HEIGHT",
                },
              },
            ],
            cardSettings: {
              cardOrientation: "VERTICAL",
            },
            cardType: "STANDALONE",
            contentType: "rich_card",
            smsFallBackContent: {
              message: "Fallback SMS for video",
            },
          },
        },
      },
    },
    type: "RCS",
  },
  // Fixtures for createPayload tests
  createPayloadFullMode: {
    templateDetails: {
      name: 'PromoCard',
      versions: {
        base: {
          template_id: 'TPL-001',
          template_name: 'PromoTPL',
          'sms-editor': '<p>SMS body</p>',
          header: ['SENDER1'],
          content: {
            RCS: {
              rcsContent: {
                cardSettings: { cardOrientation: 'HORIZONTAL', mediaAlignment: 'LEFT' },
                cardContent: [
                  {
                    title: 'Big Sale',
                    description: 'Up to 50% off',
                    mediaType: 'IMAGE',
                    media: { mediaUrl: 'https://cdn.example.com/img.png' },
                    suggestions: [
                      { type: 'QUICK_REPLY', text: 'STOP' },
                      { type: 'CTA', text: 'Shop', url: 'https://shop.example.com' },
                    ],
                  },
                ],
              },
            },
          },
        },
      },
      type: 'RCS',
    },
    accountData: {
      selectedRcsAccount: {
        sourceAccountIdentifier: 'rcs-account-123',
        configs: { accessToken: 'secret-token' },
        hostName: 'rcs.host.example.com',
        name: 'Brand RCS Account',
      },
    },
  },
  createPayloadNonFullMode: {
    templateData: {
      name: 'PromoCard',
      type: 'RCS',
      versions: {
        base: {
          content: {
            RCS: {
              rcsContent: {
                cardSettings: { cardOrientation: 'VERTICAL' },
                cardContent: [
                  {
                    title: 'Title',
                    description: 'Desc',
                    mediaType: 'VIDEO',
                    media: {
                      mediaUrl: 'https://cdn.example.com/video.mp4',
                      thumbnailUrl: 'https://cdn.example.com/video-thumb.jpg',
                    },
                  },
                ],
              },
            },
          },
        },
      },
    },
  },
  // WhatsApp-style referenced fixtures for RCS (structure remains RCS-specific)
  accountData1: {
    selectedRcsAccount: {
      sourceAccountIdentifier: 'rcs-account-123',
      configs: { accessToken: 'secret-token' },
    },
  },
  location: {
    pathname: '/rcs/create',
    query: { type: false, module: 'default' },
    search: '',
  },
  editData1: {
    // Rich Image card edit payload (uses rcsContent)
    templateDetails: {
      _id: 'rcs_edit_img_1',
      name: 'PromoCard',
      type: 'RCS',
      versions: {
        base: {
          content: {
            RCS: {
              rcsContent: {
                cardSettings: { cardOrientation: 'HORIZONTAL', mediaAlignment: 'LEFT' },
                cardContent: [
                  {
                    title: 'Big Sale',
                    description: 'Up to 50% off',
                    mediaType: 'IMAGE',
                    media: { mediaUrl: 'https://cdn.example.com/img.png' },
                    suggestions: [
                      { type: 'QUICK_REPLY', text: 'STOP' },
                      { type: 'CTA', text: 'Shop', url: 'https://shop.example.com' },
                    ],
                  },
                ],
              },
            },
          },
        },
      },
    },
  },
  editData2: {
    // Rich Video card edit payload (vertical)
    templateDetails: {
      _id: 'rcs_edit_vid_1',
      name: 'PromoCard',
      type: 'RCS',
      versions: {
        base: {
          content: {
            RCS: {
              rcsContent: {
                cardSettings: { cardOrientation: 'VERTICAL' },
                cardContent: [
                  {
                    title: 'Title',
                    description: 'Desc',
                    mediaType: 'VIDEO',
                    media: {
                      mediaUrl: 'https://cdn.example.com/video.mp4',
                      thumbnailUrl: 'https://cdn.example.com/video-thumb.jpg',
                    },
                    suggestions: [],
                  },
                ],
              },
            },
          },
        },
      },
    },
  },
  editData3: {
    // Text-only card edit payload
    templateDetails: {
      _id: 'rcs_edit_text_1',
      name: 'TextTemplate',
      type: 'RCS',
      versions: {
        base: {
          content: {
            RCS: {
              rcsContent: {
                cardSettings: { cardOrientation: 'VERTICAL' },
                cardContent: [
                  {
                    description: 'This is a text message body.',
                    mediaType: 'TEXT',
                    suggestions: [
                      { ctaType: 'reply', displayText: 'Reply', postback: 'reply_postback' },
                    ],
                  },
                ],
              },
            },
          },
        },
      },
    },
  },
};
