/* eslint-disable @typescript-eslint/no-unused-vars */
import {ObjectTreesApplicationInterface} from '../../application.interface';
import {contentGenericTemplate, image} from '../../helper';
import {ExtensionProvider} from '../../integration/extension.provider';
import {
  CALENDAR_ENTRY_TYPE,
  CALENDAR_PAGE_TYPE
} from '../calendar/calendar.const';
import {POST_TYPE} from '../post/post.const';
import {
  TEXT_PARAGRAPH_TYPE,
  WELCOME_PAGE_TYPE
} from '../web-site/web-site.const';
import {CalendarProvider} from './../calendar/calendar.provider';
import {
  GALLERY_PARAGRAPH_TYPE,
  GALLERY_TEXT_PARAGRAPH_TYPE
} from './../content-image-template/content-image-template.const';
import {ContentImageTemplateProvider} from './../content-image-template/content-image-template.provider';
import {
  IMAGE_GALLERIES_TYPE,
  IMAGE_GALLERY_TYPE,
  IMAGE_TYPE
} from './../content-image/content-image.const';
import {MAP_ENTRY_TYPE, MAP_PAGE_TYPE} from './../map/map.const';
import {MapProvider} from './../map/map.provider';
import {WebSiteProvider} from './../web-site/web-site.provider';
import {
  CATEGORY_TRAVEL_STORY_TEMPLATE_SUBTYPE,
  FOLDER_TRAVEL_STORY_SUBTYPE,
  TRAVEL_STORY_CALENDAR_PAGE_TRAVEL_STORY_CALENDAR_SUBTYPE,
  TRAVEL_STORY_CALENDAR_PAGE_TYPE,
  TRAVEL_STORY_CALENDAR_TYPE,
  TRAVEL_STORY_IMAGE_GALLERIES_TRAVEL_STORY_IMAGE_GALLERY_SUBTYPE,
  TRAVEL_STORY_IMAGE_GALLERIES_TYPE,
  TRAVEL_STORY_IMAGE_GALLERY_REFERRER_TYPE,
  TRAVEL_STORY_IMAGE_GALLERY_TYPE,
  TRAVEL_STORY_MAP_PAGE_TRAVEL_STORY_MAP_SUBTYPE,
  TRAVEL_STORY_MAP_PAGE_TYPE,
  TRAVEL_STORY_MAP_TYPE,
  TRAVEL_STORY_PARAGRAPH_TYPE,
  TRAVEL_STORY_POST_ROOT_TYPE,
  TRAVEL_STORY_POST_TRAVEL_STORY_PARAGRAPH_SUBTYPE,
  TRAVEL_STORY_POST_TRAVEL_STORY_POST_SUBTYPE,
  TRAVEL_STORY_POST_TYPE,
  TRAVEL_STORY_PROVIDER,
  TRAVEL_STORY_TEMPLATE_TYPE,
  TRAVEL_STORY_TRAVEL_STORY_CALENDAR_PAGE_SUBTYPE,
  TRAVEL_STORY_TRAVEL_STORY_IMAGE_GALLERIES_SUBTYPE,
  TRAVEL_STORY_TRAVEL_STORY_MAP_PAGE_SUBTYPE,
  TRAVEL_STORY_TRAVEL_STORY_POST_ROOT_SUBTYPE,
  TRAVEL_STORY_TRAVEL_STORY_WELCOME_PAGE_SUBTYPE,
  TRAVEL_STORY_TYPE,
  TRAVEL_STORY_WELCOME_MENU_TEXT_PARAGRAPH_SUBTYPE,
  TRAVEL_STORY_WELCOME_PAGE_TRAVEL_STORY_WELCOME_MENU_SUBTYPE,
  TRAVEL_STORY_WELCOME_PAGE_TYPE,
  TRAVEL_STORY_WELCOME_PARAGRAPH_TYPE
} from './travel-story-type.const';
export class TravelStoryTypeProvider extends ExtensionProvider {
  constructor(protected app: ObjectTreesApplicationInterface) {
    super(TRAVEL_STORY_PROVIDER, app);
    this.requiredProviders.push(
      WebSiteProvider,
      ContentImageTemplateProvider,
      CalendarProvider,
      MapProvider,
    );
    this.objectTypes.push(
      TRAVEL_STORY_TYPE,
      TRAVEL_STORY_POST_TYPE,
      TRAVEL_STORY_TEMPLATE_TYPE,
      TRAVEL_STORY_POST_ROOT_TYPE,
      TRAVEL_STORY_WELCOME_PAGE_TYPE,
      TRAVEL_STORY_WELCOME_PARAGRAPH_TYPE,
      TRAVEL_STORY_IMAGE_GALLERIES_TYPE,
      TRAVEL_STORY_IMAGE_GALLERY_TYPE,
      TRAVEL_STORY_IMAGE_GALLERY_REFERRER_TYPE,
      TRAVEL_STORY_CALENDAR_PAGE_TYPE,
      TRAVEL_STORY_CALENDAR_TYPE,
      TRAVEL_STORY_MAP_PAGE_TYPE,
      TRAVEL_STORY_MAP_TYPE,
      TRAVEL_STORY_PARAGRAPH_TYPE,
    );

    this.objectSubTypes.push(
      FOLDER_TRAVEL_STORY_SUBTYPE,
      TRAVEL_STORY_TRAVEL_STORY_POST_ROOT_SUBTYPE,
      TRAVEL_STORY_POST_TRAVEL_STORY_POST_SUBTYPE,
      CATEGORY_TRAVEL_STORY_TEMPLATE_SUBTYPE,
      TRAVEL_STORY_TRAVEL_STORY_IMAGE_GALLERIES_SUBTYPE,
      TRAVEL_STORY_TRAVEL_STORY_WELCOME_PAGE_SUBTYPE,
      TRAVEL_STORY_WELCOME_PAGE_TRAVEL_STORY_WELCOME_MENU_SUBTYPE,
      TRAVEL_STORY_WELCOME_MENU_TEXT_PARAGRAPH_SUBTYPE,
      TRAVEL_STORY_IMAGE_GALLERIES_TRAVEL_STORY_IMAGE_GALLERY_SUBTYPE,
      TRAVEL_STORY_TRAVEL_STORY_CALENDAR_PAGE_SUBTYPE,
      TRAVEL_STORY_CALENDAR_PAGE_TRAVEL_STORY_CALENDAR_SUBTYPE,
      TRAVEL_STORY_TRAVEL_STORY_MAP_PAGE_SUBTYPE,
      TRAVEL_STORY_MAP_PAGE_TRAVEL_STORY_MAP_SUBTYPE,
      TRAVEL_STORY_POST_TRAVEL_STORY_PARAGRAPH_SUBTYPE,
    );

    this.migrations.push(
      {
        parentType: TRAVEL_STORY_TYPE.name,
        previousType: IMAGE_GALLERIES_TYPE.name,
        newType: TRAVEL_STORY_IMAGE_GALLERIES_TYPE.name,
      },
      {
        parentType: TRAVEL_STORY_IMAGE_GALLERIES_TYPE.name,
        previousType: IMAGE_GALLERY_TYPE.name,
        newType: TRAVEL_STORY_IMAGE_GALLERY_TYPE.name,
      },
      {
        parentType: TRAVEL_STORY_POST_TYPE.name,
        previousType: TEXT_PARAGRAPH_TYPE.name,
        newType: TRAVEL_STORY_PARAGRAPH_TYPE.name,
      },
      {
        parentType: TRAVEL_STORY_POST_TYPE.name,
        previousType: GALLERY_PARAGRAPH_TYPE.name,
        newType: TRAVEL_STORY_PARAGRAPH_TYPE.name,
      },
      {
        parentType: TRAVEL_STORY_POST_TYPE.name,
        previousType: GALLERY_TEXT_PARAGRAPH_TYPE.name,
        newType: TRAVEL_STORY_PARAGRAPH_TYPE.name,
      },
      {
        parentType: TRAVEL_STORY_POST_ROOT_TYPE.name,
        previousType: TEXT_PARAGRAPH_TYPE.name,
        newType: TRAVEL_STORY_PARAGRAPH_TYPE.name,
      },
      {
        parentType: TRAVEL_STORY_POST_ROOT_TYPE.name,
        previousType: GALLERY_PARAGRAPH_TYPE.name,
        newType: TRAVEL_STORY_PARAGRAPH_TYPE.name,
      },
      {
        parentType: TRAVEL_STORY_POST_ROOT_TYPE.name,
        previousType: GALLERY_TEXT_PARAGRAPH_TYPE.name,
        newType: TRAVEL_STORY_PARAGRAPH_TYPE.name,
      },
    );

    this.objectTrees.travelStory = {
      reset: false,
      parentNode: () => this.appCtx.publicTemplatesNode.value,
      treeNodeName: 'travelStory',
      treeNodeTypeId: TRAVEL_STORY_TEMPLATE_TYPE.name,
      tree: {
        treeNode: {
          contentGenericTemplate: contentGenericTemplate(
            __dirname,
            'travelStory',
          ),
          menuObjectTreeId:
            'tree/Repository/public/RepositoryCategory/templates/MenuTemplate/navBar',
          paragraphTemplateObjectTreeId:
            'tree/Repository/public/RepositoryCategory/templates/ParagraphTemplate/cardTextAndImages',
          pageTemplateObjectTreeId:
            'tree/Repository/public/RepositoryCategory/templates/PageTemplate/pageWithParagraph',

          menuEntries: [
            {
              entryKey: 'home',
              entryName: 'Home',
              menuEntryLabelKey: 'name',
              entryTypes: [WELCOME_PAGE_TYPE.name],
            },
            {
              entryKey: 'story',
              entryName: 'Story',
              menuEntryLabelKey: 'menuTitle',
              entryTypes: [POST_TYPE.name],
            },
            {
              entryKey: 'calendarDates',
              entryName: 'Calendar dates',
              menuEntryLabelKey: 'calendarDateRange',
              entryTypes: [CALENDAR_ENTRY_TYPE.name],
            },
            {
              entryKey: 'calendar',
              entryName: 'Calendar',
              menuEntryLabelKey: 'name',
              entryTypes: [CALENDAR_PAGE_TYPE.name],
            },
            {
              entryKey: 'places',
              entryName: 'Places',
              menuEntryLabelKey: 'locationPosition',
              entryTypes: [MAP_ENTRY_TYPE.name],
            },
            {
              entryKey: 'map',
              entryName: 'Map',
              menuEntryLabelKey: 'name',
              entryTypes: [MAP_PAGE_TYPE.name],
            },
            {
              entryKey: 'galleries',
              entryName: 'Galleries',
              menuEntryLabelKey: 'menuTitle',
              entryTypes: [
                TRAVEL_STORY_IMAGE_GALLERY_TYPE.name,
                TRAVEL_STORY_IMAGE_GALLERIES_TYPE.name,
              ],
            },
            {
              entryKey: 'admin',
              entryName: 'Administration',
              menuEntryLabelKey: 'adminTitle',
              adminEntry: true,
              entryTypes: [TRAVEL_STORY_TYPE.name],
            },
          ],
          paragraphTemplateChoices: [
            {
              paragraphTypeKey: 'thumbAfter',
              paragraphTypeName: 'Display images in thumb',
              paragraphTemplateObjectTreeId:
                'tree/Repository/public/RepositoryCategory/templates/ParagraphTemplate/cardTextAndImages',
              paragraphTypes: [
                TRAVEL_STORY_POST_ROOT_TYPE.name,
                TRAVEL_STORY_POST_TYPE.name,
              ],
              templatesConfigurations: {
                cardTextAndImages: {
                  imageGalleryObjectTreeId:
                    'tree/Repository/public/RepositoryCategory/templates/ImageGalleryTemplate/thumbs',
                  imageGalleryPosition: 'after',
                },
              },
            },
            {
              paragraphTypeKey: 'carouselRight',
              paragraphTypeName: 'Display images with Carousel',
              paragraphTemplateObjectTreeId:
                'tree/Repository/public/RepositoryCategory/templates/ParagraphTemplate/cardTextAndImages',
              paragraphTypes: [
                TRAVEL_STORY_POST_ROOT_TYPE.name,
                TRAVEL_STORY_POST_TYPE.name,
              ],
              templatesConfigurations: {
                cardTextAndImages: {
                  imageGalleryObjectTreeId:
                    'tree/Repository/public/RepositoryCategory/templates/ImageGalleryTemplate/carousel',
                  imageGalleryPosition: 'right',
                },
              },
            },
            {
              paragraphTypeKey: 'welcomeMenuThumb4',
              paragraphTypeName: 'Card 1/4 screen',
              paragraphTemplateObjectTreeId:
                'tree/Repository/public/RepositoryCategory/templates/ParagraphTemplate/cardTextAndImages',
              paragraphTypes: ['TravelStoryWelcomeMenuEntry'],
              templatesConfigurations: {
                cardTextAndImages: {
                  imageGalleryObjectTreeId:
                    'tree/Repository/public/RepositoryCategory/templates/ImageGalleryTemplate/carousel',
                  paragraphBreakLine: 'xs',
                  paragraphMaxWidth: 3,
                  paragraphMinWidth: 6,
                  paragraphKeepProportion: true,
                  galleryBreakLine: 'none',
                  galleryMaxWidth: 6,
                  galleryMinWidth: 6,
                  imageGalleryPosition: 'right',
                  displayParentPageTitle: false,
                  contentClass: 'h4',
                  titleClass: 'display-4',
                },
              },
            },
            {
              paragraphTypeKey: 'welcomeMenuThumb3',
              paragraphTypeName: 'Card 1/3 screen',
              paragraphTemplateObjectTreeId:
                'tree/Repository/public/RepositoryCategory/templates/ParagraphTemplate/cardTextAndImages',
              paragraphTypes: ['TravelStoryWelcomeMenuEntry'],
              templatesConfigurations: {
                cardTextAndImages: {
                  imageGalleryObjectTreeId:
                    'tree/Repository/public/RepositoryCategory/templates/ImageGalleryTemplate/carousel',
                  paragraphBreakLine: 'sm',
                  paragraphMaxWidth: 4,
                  paragraphMinWidth: 4,
                  paragraphKeepProportion: true,
                  galleryBreakLine: 'none',
                  galleryMaxWidth: 6,
                  galleryMinWidth: 6,
                  imageGalleryPosition: 'right',
                  displayParentPageTitle: false,
                  contentClass: 'h4',
                  titleClass: 'display-4',
                },
              },
            },
            {
              paragraphTypeKey: 'welcomeMenuThumb2',
              paragraphTypeName: 'Card 1/2 screen',
              paragraphTemplateObjectTreeId:
                'tree/Repository/public/RepositoryCategory/templates/ParagraphTemplate/cardTextAndImages',
              paragraphTypes: ['TravelStoryWelcomeMenuEntry'],
              templatesConfigurations: {
                cardTextAndImages: {
                  imageGalleryObjectTreeId:
                    'tree/Repository/public/RepositoryCategory/templates/ImageGalleryTemplate/carousel',
                  paragraphBreakLine: 'md',
                  paragraphMaxWidth: 6,
                  paragraphMinWidth: 6,
                  paragraphKeepProportion: true,
                  galleryBreakLine: 'none',
                  galleryMaxWidth: 6,
                  galleryMinWidth: 6,
                  imageGalleryPosition: 'right',
                  displayParentPageTitle: false,
                  contentClass: 'h4',
                  titleClass: 'display-4',
                },
              },
            },
            {
              paragraphTypeKey: 'calendar',
              paragraphTypeName: 'Calendar',
              paragraphTemplateObjectTreeId:
                'tree/Repository/public/RepositoryCategory/templates/CalendarTemplate/calendar',
              paragraphTypes: ['TravelStoryCalendar'],
            },
            {
              paragraphTypeKey: 'map',
              paragraphTypeName: 'Map',
              paragraphTemplateObjectTreeId:
                'tree/Repository/public/RepositoryCategory/templates/MapTemplate/map',
              paragraphTypes: ['TravelStoryMap'],
            },
          ],
          templatesConfigurations: {
            cardTextAndImages: {
              imageGalleryObjectTreeId:
                'tree/Repository/public/RepositoryCategory/templates/ImageGalleryTemplate/thumbs',
            },
          },
        },
        children: {},
      },
    };

    this.objectTrees.travelStoryExample = {
      reset: false,
      parentNode: () => this.appCtx.demonstrationExamplesNode.value,
      treeNodeName: 'TravelStoryExample',
      treeNodeTypeId: TRAVEL_STORY_TYPE.name,
      tree: {
        treeNode: {
          webSiteObjectTreeId:
            'tree/Repository/public/RepositoryCategory/templates/TravelStoryTemplate/travelStory',
          menuTitle: 'Example',
          adminTitle: 'Admin',
          menuEntries: {
            home: 'Accueil',
            story: 'Récit',
            calendar: 'Calendrier',
            calendarDates: 'Visites',
            places: 'Point Of Interest',
            map: 'Carte',
            galleries: 'Galleries',
            admin: 'Admin',
          },
        },
        children: {
          [TRAVEL_STORY_IMAGE_GALLERIES_TYPE.name]: {
            [IMAGE_GALLERIES_TYPE.name]: [
              {
                treeNode: {menuTitle: 'All galleries'},
                children: {
                  [TRAVEL_STORY_IMAGE_GALLERY_TYPE.name]: {
                    ['Ipsum3']: [
                      {
                        treeNode: {menuTitle: 'Ispum3'},
                        children: {
                          [IMAGE_TYPE.name]: {
                            ['EliotPeper']: [
                              {
                                treeNode: {
                                  contentImage: {
                                    base64: image(__dirname, 'eliot'),
                                    name:
                                      'eliot-peper-9KVEC-R8gFM-unsplash.jpg',
                                    size: '1607898086455',
                                    type: 'image/jpeg',
                                  },
                                },
                                children: {},
                              },
                            ],
                            ['LauraChouette']: [
                              {
                                treeNode: {
                                  contentImage: {
                                    base64: image(__dirname, 'laura'),
                                    name:
                                      'laura-chouette-iF3nn-mXkU8-unsplash.jpg',
                                    size: '1607898094166',
                                    type: 'image/jpeg',
                                  },
                                },
                                children: {},
                              },
                            ],
                            ['KseniaMakagonov']: [
                              {
                                treeNode: {
                                  contentImage: {
                                    base64: image(__dirname, 'ksenia'),
                                    name:
                                      'ksenia-makagonova-oqL8TOLARs8-unsplash.jpg',
                                    size: '1607898103955',
                                    type: 'image/jpeg',
                                  },
                                },
                                children: {},
                              },
                            ],
                            ['BrianQuid']: [
                              {
                                treeNode: {
                                  contentImage: {
                                    base64: image(__dirname, 'brian'),
                                    name: 'brian-quid-6O9dPC51s7M-unsplash.jpg',
                                    size: '1607898091074',
                                    type: 'image/jpeg',
                                  },
                                },
                                children: {},
                              },
                            ],
                          },
                        },
                      },
                    ],
                  },
                },
              },
            ],
          },
          [TRAVEL_STORY_POST_ROOT_TYPE.name]: {
            ['Stories']: [
              {
                treeNode: {
                  menuTitle: 'Stories',
                  pageTitle: 'Stories',
                  imageGalleryObjectTreeId:
                    'tree/Tenant/Demonstration/TravelStory/TravelStoryExample/ImageGallery/Ipsum3',
                },
                children: {
                  [TRAVEL_STORY_POST_TYPE.name]: {
                    ['Post1']: [
                      {
                        treeNode: {
                          menuTitle: 'Lorem ipsum 1',
                          pageTitle: 'Lorem ipsum dolor 1',
                          paragraphTitle: 'Content ipsum dolor 1',
                          contentText:
                            'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper ligula eu mattis sollicitudin. Donec a commodo sem. Nulla faucibus, dolor at ornare congue, quam nibh porta nisi, eu faucibus tellus nunc et tellus. Sed fermentum finibus orci, at sagittis nisl ultrices tincidunt. Nullam consectetur et eros vel ultrices. Mauris vel laoreet metus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam iaculis lectus in velit iaculis accumsan. Proin pharetra felis sed dolor efficitur, a placerat leo faucibus. Aenean commodo tellus elit, faucibus auctor nulla elementum ac. Vestibulum sagittis, urna a facilisis tristique, neque nisi elementum dolor, non lobortis neque enim et risus. Aliquam accumsan tincidunt nulla. Donec sit amet nisi a nibh hendrerit dapibus ac vitae dui. Donec diam orci, egestas ut sagittis vel, lobortis id metus. Vivamus pulvinar vestibulum lacinia.↵↵Vivamus quis ex eu est pretium interdum. Integer elementum pellentesque pulvinar. Etiam posuere orci ut placerat mollis. Cras ut molestie risus, non luctus diam. Phasellus lacinia sit amet ligula cursus condimentum. Ut ac nulla est. Integer mi magna, sodales ultricies semper ac, bibendum eget risus. Morbi hendrerit ultricies pretium. Donec viverra orci laoreet, molestie dui quis, luctus eros. Suspendisse potenti. Aliquam dignissim vestibulum magna, ac fringilla velit auctor ac. Duis sit amet leo id est vehicula convallis ut id magna. Nullam semper euismod maximus. Proin lobortis facilisis felis ac vestibulum. Sed imperdiet tellus mattis, eleifend tortor ac, lobortis elit. Maecenas vehicula luctus nibh.',
                        },
                        children: {},
                      },
                    ],
                    ['Post2']: [
                      {
                        treeNode: {
                          menuTitle: 'Lorem ipsum 2',
                          pageTitle: 'Lorem ipsum dolor 2',
                          paragraphTitle: 'Lorem ipsum dolor 2',
                          contentText:
                            'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper ligula eu mattis sollicitudin. Donec a commodo sem. Nulla faucibus, dolor at ornare congue, quam nibh porta nisi, eu faucibus tellus nunc et tellus. Sed fermentum finibus orci, at sagittis nisl ultrices tincidunt. Nullam consectetur et eros vel ultrices. Mauris vel laoreet metus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam iaculis lectus in velit iaculis accumsan. Proin pharetra felis sed dolor efficitur, a placerat leo faucibus. Aenean commodo tellus elit, faucibus auctor nulla elementum ac. Vestibulum sagittis, urna a facilisis tristique, neque nisi elementum dolor, non lobortis neque enim et risus. Aliquam accumsan tincidunt nulla. Donec sit amet nisi a nibh hendrerit dapibus ac vitae dui. Donec diam orci, egestas ut sagittis vel, lobortis id metus. Vivamus pulvinar vestibulum lacinia.↵↵Vivamus quis ex eu est pretium interdum. Integer elementum pellentesque pulvinar. Etiam posuere orci ut placerat mollis. Cras ut molestie risus, non luctus diam. Phasellus lacinia sit amet ligula cursus condimentum. Ut ac nulla est. Integer mi magna, sodales ultricies semper ac, bibendum eget risus. Morbi hendrerit ultricies pretium. Donec viverra orci laoreet, molestie dui quis, luctus eros. Suspendisse potenti. Aliquam dignissim vestibulum magna, ac fringilla velit auctor ac. Duis sit amet leo id est vehicula convallis ut id magna. Nullam semper euismod maximus. Proin lobortis facilisis felis ac vestibulum. Sed imperdiet tellus mattis, eleifend tortor ac, lobortis elit. Maecenas vehicula luctus nibh.',
                        },
                        children: {
                          [TRAVEL_STORY_POST_TYPE.name]: {
                            ['Post2.1']: [
                              {
                                treeNode: {
                                  menuTitle: 'Lorem ipsum 2.1',
                                  paragraphTitle: 'Lorem ipsum dolor 2.1',
                                  contentText:
                                    'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper ligula eu mattis sollicitudin. Donec a commodo sem. Nulla faucibus, dolor at ornare congue, quam nibh porta nisi, eu faucibus tellus nunc et tellus. Sed fermentum finibus orci, at sagittis nisl ultrices tincidunt. Nullam consectetur et eros vel ultrices. Mauris vel laoreet metus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam iaculis lectus in velit iaculis accumsan. Proin pharetra felis sed dolor efficitur, a placerat leo faucibus. Aenean commodo tellus elit, faucibus auctor nulla elementum ac. Vestibulum sagittis, urna a facilisis tristique, neque nisi elementum dolor, non lobortis neque enim et risus. Aliquam accumsan tincidunt nulla. Donec sit amet nisi a nibh hendrerit dapibus ac vitae dui. Donec diam orci, egestas ut sagittis vel, lobortis id metus. Vivamus pulvinar vestibulum lacinia.↵↵Vivamus quis ex eu est pretium interdum. Integer elementum pellentesque pulvinar. Etiam posuere orci ut placerat mollis. Cras ut molestie risus, non luctus diam. Phasellus lacinia sit amet ligula cursus condimentum. Ut ac nulla est. Integer mi magna, sodales ultricies semper ac, bibendum eget risus. Morbi hendrerit ultricies pretium. Donec viverra orci laoreet, molestie dui quis, luctus eros. Suspendisse potenti. Aliquam dignissim vestibulum magna, ac fringilla velit auctor ac. Duis sit amet leo id est vehicula convallis ut id magna. Nullam semper euismod maximus. Proin lobortis facilisis felis ac vestibulum. Sed imperdiet tellus mattis, eleifend tortor ac, lobortis elit. Maecenas vehicula luctus nibh.',
                                },
                                children: {},
                              },
                            ],
                            ['Post2.2']: [
                              {
                                treeNode: {
                                  paragraphTitle: 'Content ipsum dolor 2.2',
                                  contentText:
                                    'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper ligula eu mattis sollicitudin. Donec a commodo sem. Nulla faucibus, dolor at ornare congue, quam nibh porta nisi, eu faucibus tellus nunc et tellus. Sed fermentum finibus orci, at sagittis nisl ultrices tincidunt. Nullam consectetur et eros vel ultrices. Mauris vel laoreet metus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam iaculis lectus in velit iaculis accumsan. Proin pharetra felis sed dolor efficitur, a placerat leo faucibus. Aenean commodo tellus elit, faucibus auctor nulla elementum ac. Vestibulum sagittis, urna a facilisis tristique, neque nisi elementum dolor, non lobortis neque enim et risus. Aliquam accumsan tincidunt nulla. Donec sit amet nisi a nibh hendrerit dapibus ac vitae dui. Donec diam orci, egestas ut sagittis vel, lobortis id metus. Vivamus pulvinar vestibulum lacinia.↵↵Vivamus quis ex eu est pretium interdum. Integer elementum pellentesque pulvinar. Etiam posuere orci ut placerat mollis. Cras ut molestie risus, non luctus diam. Phasellus lacinia sit amet ligula cursus condimentum. Ut ac nulla est. Integer mi magna, sodales ultricies semper ac, bibendum eget risus. Morbi hendrerit ultricies pretium. Donec viverra orci laoreet, molestie dui quis, luctus eros. Suspendisse potenti. Aliquam dignissim vestibulum magna, ac fringilla velit auctor ac. Duis sit amet leo id est vehicula convallis ut id magna. Nullam semper euismod maximus. Proin lobortis facilisis felis ac vestibulum. Sed imperdiet tellus mattis, eleifend tortor ac, lobortis elit. Maecenas vehicula luctus nibh.',
                                },
                                children: {},
                              },
                            ],
                            ['Post2.3']: [
                              {
                                treeNode: {
                                  menuTitle: 'Lorem ipsum 2.3',
                                  paragraphTitle: 'Lorem ipsum dolor 2.3',
                                  contentText:
                                    'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper ligula eu mattis sollicitudin. Donec a commodo sem. Nulla faucibus, dolor at ornare congue, quam nibh porta nisi, eu faucibus tellus nunc et tellus. Sed fermentum finibus orci, at sagittis nisl ultrices tincidunt. Nullam consectetur et eros vel ultrices. Mauris vel laoreet metus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam iaculis lectus in velit iaculis accumsan. Proin pharetra felis sed dolor efficitur, a placerat leo faucibus. Aenean commodo tellus elit, faucibus auctor nulla elementum ac. Vestibulum sagittis, urna a facilisis tristique, neque nisi elementum dolor, non lobortis neque enim et risus. Aliquam accumsan tincidunt nulla. Donec sit amet nisi a nibh hendrerit dapibus ac vitae dui. Donec diam orci, egestas ut sagittis vel, lobortis id metus. Vivamus pulvinar vestibulum lacinia.↵↵Vivamus quis ex eu est pretium interdum. Integer elementum pellentesque pulvinar. Etiam posuere orci ut placerat mollis. Cras ut molestie risus, non luctus diam. Phasellus lacinia sit amet ligula cursus condimentum. Ut ac nulla est. Integer mi magna, sodales ultricies semper ac, bibendum eget risus. Morbi hendrerit ultricies pretium. Donec viverra orci laoreet, molestie dui quis, luctus eros. Suspendisse potenti. Aliquam dignissim vestibulum magna, ac fringilla velit auctor ac. Duis sit amet leo id est vehicula convallis ut id magna. Nullam semper euismod maximus. Proin lobortis facilisis felis ac vestibulum. Sed imperdiet tellus mattis, eleifend tortor ac, lobortis elit. Maecenas vehicula luctus nibh.',
                                },
                                children: {},
                              },
                            ],
                          },
                        },
                      },
                    ],
                    ['Post3']: [
                      {
                        treeNode: {
                          paragraphTemplateChoice: 'carouselRight',
                          imageGalleryObjectTreeId:
                            'tree/Tenant/Demonstration/TravelStory/TravelStoryExample/ImageGallery/Ipsum3',
                          menuTitle: 'Lorem ipsum 3',
                          pageTitle: 'Lorem ipsum dolor 3',
                          paragraphTitle: 'Lorem ipsum dolor 3',
                          selectedImages: ['BrianQuid', 'LauraChouette'],
                          contentText:
                            'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper ligula eu mattis sollicitudin. Donec a commodo sem. Nulla faucibus, dolor at ornare congue, quam nibh porta nisi, eu faucibus tellus nunc et tellus. Sed fermentum finibus orci, at sagittis nisl ultrices tincidunt. Nullam consectetur et eros vel ultrices. Mauris vel laoreet metus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam iaculis lectus in velit iaculis accumsan. Proin pharetra felis sed dolor efficitur, a placerat leo faucibus. Aenean commodo tellus elit, faucibus auctor nulla elementum ac. Vestibulum sagittis, urna a facilisis tristique, neque nisi elementum dolor, non lobortis neque enim et risus. Aliquam accumsan tincidunt nulla. Donec sit amet nisi a nibh hendrerit dapibus ac vitae dui. Donec diam orci, egestas ut sagittis vel, lobortis id metus. Vivamus pulvinar vestibulum lacinia.↵↵Vivamus quis ex eu est pretium interdum. Integer elementum pellentesque pulvinar. Etiam posuere orci ut placerat mollis. Cras ut molestie risus, non luctus diam. Phasellus lacinia sit amet ligula cursus condimentum. Ut ac nulla est. Integer mi magna, sodales ultricies semper ac, bibendum eget risus. Morbi hendrerit ultricies pretium. Donec viverra orci laoreet, molestie dui quis, luctus eros. Suspendisse potenti. Aliquam dignissim vestibulum magna, ac fringilla velit auctor ac. Duis sit amet leo id est vehicula convallis ut id magna. Nullam semper euismod maximus. Proin lobortis facilisis felis ac vestibulum. Sed imperdiet tellus mattis, eleifend tortor ac, lobortis elit. Maecenas vehicula luctus nibh.',
                        },
                        children: {},
                      },
                    ],
                  },
                },
              },
            ],
          },
          [TRAVEL_STORY_WELCOME_PAGE_TYPE.name]: {
            [WELCOME_PAGE_TYPE.name as string]: [
              {
                treeNode: {
                  pageTitle: "Ma page d'accueil",
                  contentText:
                    'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vel tristique velit. Curabitur porttitor nisl nec leo hendrerit blandit. Integer pharetra convallis efficitur. Aliquam non consectetur dolor, vitae eleifend risus. Quisque elementum nisl a urna dignissim, ut euismod enim convallis. Nam facilisis, neque nec ultricies sollicitudin, metus lorem convallis ex, a bibendum sem ex vitae velit. Aenean mattis orci neque, quis laoreet leo suscipit quis. Etiam vitae turpis ac augue consectetur bibendum. Cras varius odio semper ultrices bibendum. Suspendisse dignissim sem at lobortis imperdiet. Donec nec imperdiet turpis. Aenean mattis dui nec turpis euismod dapibus.↵↵Proin tempus, orci sit amet fermentum fringilla, risus metus aliquet enim, sed malesuada ipsum turpis vitae mi. Phasellus molestie justo sed malesuada congue. Nam malesuada massa sit amet diam accumsan consequat. Donec non tempor tellus, vitae posuere enim. Vivamus posuere scelerisque varius. Nunc a mollis risus, quis porta mi. Curabitur venenatis porta ullamcorper. Donec libero turpis, mattis eget elit sit amet, lobortis bibendum ligula. Praesent imperdiet dui odio, sed ultricies turpis congue vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Aliquam magna quam, varius at libero at, feugiat varius lacus. Vestibulum rutrum auctor libero a bibendum. In sit amet odio nibh. Duis lobortis, quam et scelerisque pellentesque, mauris metus mattis justo, eu convallis nunc sem in ante. Aliquam sit amet consequat ex.',
                },
                children: {
                  [TRAVEL_STORY_WELCOME_PARAGRAPH_TYPE.name]: {
                    ['WelcomeStories']: [
                      {
                        treeNode: {
                          linkedPageObjectTreeId:
                            'node/Tenant/Demonstration/TravelStory/TravelStoryExample/TravelStory/TravelStoryExample/Page/Stories',
                          imageGalleryObjectTreeId:
                            'tree/Tenant/Demonstration/TravelStory/TravelStoryExample/ImageGallery/Ipsum3',
                          selectedImages: ['EliotPeper'],
                          contentText: 'Retrouvez notre récit quotidien',
                          paragraphTitle: 'Notre  périple',
                          paragraphTemplateChoice: 'welcomeMenuThumb2',
                        },
                        children: {},
                      },
                    ],
                    ['WelcomeImages']: [
                      {
                        treeNode: {
                          linkedPageObjectTreeId:
                            '/node/Tenant/Demonstration/TravelStory/TravelStoryExample/TravelStory/TravelStoryExample/Page/ImageGalleries',
                          imageGalleryObjectTreeId:
                            'tree/Tenant/Demonstration/TravelStory/TravelStoryExample/ImageGallery/Ipsum3',
                          selectedImages: ['BrianQuid'],
                          contentText: 'Parcourir les photos',
                          paragraphTitle: 'Nos photos',
                          paragraphTemplateChoice: 'welcomeMenuThumb2',
                        },
                        children: {},
                      },
                    ],
                  },
                },
              },
            ],
          },
        },
      },
    };
  }
}
