import { I_Blueprint } from "../../../interfaces/I_Blueprint"
export const resourcesBlueprint: I_Blueprint = {
  _id: "resources",
  order: 140,
  namePlural: "Resources/Materials",
  nameSingular: "Resource/Material",
  icon: "mdi-gold",
  category: "Details",
  extraFields: [
    {
      id: "breakDocumentSettings",
      name: "Document settings",
      type: "break",
      sizing: 12
    },
    {
      id: "name",
      name: "Name",
      type: "text",
      icon: "mdi-gold",
      sizing: 3
    },
    {
      id: "parentDoc",
      name: "Belongs under",
      type: "singleToNoneRelationship",
      tooltip:
        `This field is used to build up custom hierarchical tree structure in the main list of items in the left side of the app.
        <br> You can use this for an infinite amount of sub-levels to the hierarchical structure.
        <br> An example would be multiple sub-groups (provinces) of Roman Empire belonging under the main political group called "Roman Empire".
        `,
      sizing: 3,
      relationshipSettings: {
        connectedObjectType: "resources"
      }
    },
    {
      id: "documentColor",
      name: "Text color",
      type: "colorPicker",
      icon: "mdi-eyedropper",
      tooltip:
        `This field allows for custom-coloring your document to any available HEX or RBG color.
        <br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
        `,
      sizing: 2
    },
    {
      id: "documentBackgroundColor",
      name: "Background color",
      type: "colorPicker",
      icon: "mdi-format-color-fill",
      tooltip:
        `This field allows for custom-coloring your document to any available HEX or RBG color.
        <br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
        `,
      sizing: 2
    },
    {
      id: "finishedSwitch",
      name: "Is finished",
      type: "switch",
      icon: "mdi-check-bold",
      tooltip:
        `This setting allows for setting the current document to finished document mode.
        <br>
        A document with finished document mode toggled on will not show any un-filled fields in view mode and will function as if "Hide empty fields" was turned on in the settings.      
        `,
      sizing: 2
    },
    {
      id: "minorSwitch",
      name: "Is a minor document",
      type: "switch",
      icon: "mdi-magnify-minus-outline",
      tooltip:
        `This setting allows for setting the current document to minor document mode.
        <br>
        A document with minor document mode toggled on will not show in any other relationship searches.<br>
        The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
        `,
      sizing: 3
    },
    {
      id: "deadSwitch",
      name: "Is Dead/Gone/Destroyed",
      type: "switch",
      icon: "mdi-skull-crossbones",
      tooltip:
        `This setting allows for setting the current document to dead/gone/destroyed mode.
        <br>
        A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
        `,
      sizing: 3
    },
    {
      id: "categorySwitch",
      name: "Is a category",
      type: "switch",
      icon: "fas fa-folder-open",
      tooltip:
        `This setting allows for setting the current document to category mode.
        <br>
        A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
        `,
      sizing: 3
    },
    {
      id: "order",
      name: "Order number",
      type: "number",
      icon: "mdi-file-tree",
      tooltip:
        `In case the default sorting via alphabet in the hierarchical tree on the left is inadequate for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
        <br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
        <br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
        `,
      sizing: 3
    },
    {
      id: "tags",
      name: "Tags",
      type: "tags",
      icon: "mdi-tag",
      tooltip:
        `Tags are used to sort the same (or even different) document types into a custom groups based on your needs.
        <br>
        A document may have any number of tags, but each tag can be present only once.
        <br>
        This limitation also applies to any variation of lower or upper case iterations of the same tag.
        <br>
        Example: A tag called "Player Party" will be considered the same tag as "player party", "PlAyER PaRtY" or anything similar.
        `,
      sizing: 8
    },
    {
      id: "docTemplate",
      name: "Document Template",
      type: "documentTemplate",
      icon: "mdi-script-text-outline",
      tooltip:
        `
        Document templates are used to determine which fields will the current
        <br>
        document show both in view and edit mode.
        <br>
        Due to current technical limitations, new templates can be added and existing can
        <br>
        be edited/deleted only from the "Export project/document" popup.
        <br>
        Please also note that the updates to the template need a document tab reload.
        <br>
        This can be achieved either by closing an opening the current tab or switching
        <br>
        to another one and then back to this one.
        `,
      sizing: 4
    },
    {
      id: "otherNames",
      name: "Other Names & Epithets",
      type: "list",
      icon: "mdi-book-plus",
      sizing: 12
    },
    {
      id: "categoryDescription",
      name: "Category description",
      type: "wysiwyg",
      icon: "mdi-folder-edit-outline",
      sizing: 12
    },
    {
      id: "breakBasic",
      name: "Basic information",
      type: "break",
      sizing: 12
    },
    {
      id: "features",
      name: "Prominent features",
      type: "list",
      icon: "mdi-guy-fawkes-mask",
      sizing: 12,
      predefinedListExtras: {
        affix: "Note",
        extraSelectValueList: [
        ]
      }
    },
    {
      id: "priceCurrencies",
      name: "Price in Currencies",
      type: "manyToNoneRelationship",
      icon: "fas fa-coins",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "currencies"
      }
    },
    {
      id: "density",
      name: "Density",
      type: "text",
      icon: "mdi-weight",
      sizing: 3,
      tooltip: `
        This field is meant more for realistic world-building/sci-fi.
        <br>
        Feel free to skip it if you don't need it.
      `
    },
    {
      id: "hardness",
      name: "Hardness",
      type: "singleSelect",
      icon: "mdi-shield-outline",
      sizing: 3,
      tooltip: `
        A rough scale to help you determine how hard your materials are.
        <br>
        Please note that hardness means that a harder material can scratch/cut a softer one.
        <br>
        It does NOT mean that the material is automatically tougher as hardness tends to come with brittlenes.
      `,
      predefinedSelectValues: [
        "1 (Talc)",
        "2 (Calcium, Sulfur)",
        "3 (Copper, Gold, Silver)",
        "4 (Iron)",
        "5 (Obsidian, Ordinary steel)",
        "6 (Titanium)",
        "7 (Quartz)",
        "8 (Hardened steel)",
        "9 (Tungsten carbide)",
        "10 (Diamond)"
      ]
    },
    {
      id: "biomeType",
      name: "Found in biomes",
      type: "multiSelect",
      icon: "mdi-pine-tree",
      sizing: 4,
      predefinedSelectValues: [
        "Tropical Rainforest",
        "Temperate Forest ",
        "Desert (Sandy)",
        "Desert (Arctic)",
        "Tundra",
        "Taiga (Boreal Forest) ",
        "Grassland ",
        "Savanna",
        "Freshwater",
        "Marine (Ocean/Sea)       ",
        "High plateaus",
        "Bog/Swamp",
        "Caverns/Underground",
        "Interstellar space",
        "Non-physical",
        "Other"

      ]
    },
    {
      id: "rarity",
      name: "Rarity",
      type: "singleSelect",
      icon: "fas fa-chart-area",
      sizing: 4,
      predefinedSelectValues: [
        "Common",
        "Uncommon",
        "Rare",
        "Exceptionally rare",
        "Next-to-impossible to obtain"
      ]
    },
    {
      id: "resourceType",
      name: "Resources/Materials type",
      type: "multiSelect",
      icon: "mdi-diamond-stone",
      sizing: 4,
      predefinedSelectValues: [
        "Alien",
        "Arcane",
        "Artificial",
        "Energy",
        "Ethereal",
        "Extraterrestrial",
        "Food",
        "Fossil",
        "Fuel",
        "Gas",
        "Liquid",
        "Metal",
        "Mineral",
        "Mutator",
        "Natural",
        "Non-physical",
        "Organic",
        "Planar",
        "Plasma",
        "Radioactive",
        "Refined",
        "Supernatural",
        "Transmutator",
        "Waste",
        "Other"
      ]
    },
    {
      id: "otherStats",
      name: "Other material physical properties",
      type: "list",
      icon: "mdi-format-list-bulleted-type",
      sizing: 12,
      predefinedListExtras: {
        affix: "Note/Value",
        reverse: true,
        extraSelectValueList: [
          {
            title: "Common material properties",
            values: [
              "Melting point",
              "Boiling point",
              "Burning point",
              "Brittleness",
              "Plasticity (dont not return to original shape after deformation)",
              "Elasticity (returns to original shape after deformation)",
              "Thermo-plasticity (how much it deforms with temperature applied)",
              "Electrical conductivity (admitence)",
              "Thermal conductivity (admitence)",
              "Vibration conductivity (admitence)"
            ]
          }

        ]
      }
    },
    {
      id: "relatedResources",
      name: "Related Resources/Materials",
      type: "manyToManyRelationship",
      icon: "mdi-gold",
      sizing: 4,
      relationshipSettings: {
        connectedObjectType: "resources",
        connectedField: "relatedResources"
      }
    },
    {
      id: "madeIntoResources",
      name: "Made into Resources/Materials",
      type: "manyToManyRelationship",
      icon: "mdi-gold",
      sizing: 4,
      relationshipSettings: {
        connectedObjectType: "resources",
        connectedField: "madeFromResources"
      }
    },
    {
      id: "madeFromResources",
      name: "Created from Resources/Materials",
      type: "manyToManyRelationship",
      icon: "mdi-gold",
      sizing: 4,
      relationshipSettings: {
        connectedObjectType: "resources",
        connectedField: "madeIntoResources"
      }
    },
    {
      id: "connectedLocations",
      name: "Found in Locations",
      type: "manyToManyRelationship",
      icon: "mdi-map-marker-radius",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "locations",
        connectedField: "connectedResources"
      }
    },
    {
      id: "relatedCultures",
      name: "Connected to Cultures/Art",
      type: "manyToManyRelationship",
      icon: "fas fa-archway",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "culture",
        connectedField: "relatedResouces"
      }
    },
    {
      id: "usedProfessions",
      name: "Used by Occupations/Classes",
      type: "manyToManyRelationship",
      icon: "fab fa-pied-piper-hat",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "professions",
        connectedField: "usedResources"
      }
    },
    {
      id: "producedProfessions",
      name: "Produced by Occupations/Classes",
      type: "manyToManyRelationship",
      icon: "fab fa-pied-piper-hat",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "professions",
        connectedField: "producedResources"
      }
    },
    {
      id: "pairedResourcesRequire",
      name: "Required by Skills/Spells/Other",
      type: "manyToManyRelationship",
      icon: "mdi-sword-cross",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "skills",
        connectedField: "pairedResourcesRequire"
      }
    },
    {
      id: "pairedResourcesCreate",
      name: "Created by Skills/Spells/Other",
      type: "manyToManyRelationship",
      icon: "mdi-sword-cross",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "skills",
        connectedField: "pairedResourcesCreate"
      }
    },

    {
      id: "pairedItemMade",
      name: "Resource/Material used to make Items",
      type: "manyToManyRelationship",
      icon: "mdi-sword",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "items",
        connectedField: "pairedResourcesMade"
      }
    },
    {
      id: "pairedItemProduced",
      name: "Resource/Material produced by Items",
      type: "manyToManyRelationship",
      icon: "mdi-sword",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "items",
        connectedField: "pairedResourcesProduced"
      }
    },
    {
      id: "pairedProducedFromRaces",
      name: "Produced from Species/Races/Flora/Fauna",
      type: "manyToManyRelationship",
      icon: "fas fa-dragon",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "races",
        connectedField: "pairedProducedFromResources"
      }
    },
    {
      id: "pairedUsedResourcesRaces",
      name: "Used by Species/Races/Flora/Fauna",
      type: "manyToManyRelationship",
      icon: "fas fa-dragon",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "races",
        connectedField: "pairedUsedResourcesResources"
      }
    },
    {
      id: "description",
      name: "Description & History",
      type: "wysiwyg",
      icon: "mdi-book-open-page-variant-outline",
      sizing: 12
    },
    {
      id: "traditions",
      name: "Traditions & customs connected to the item",
      type: "wysiwyg",
      sizing: 12
    },
    {
      id: "breakNotes",
      name: "Connections - Story/Lore",
      type: "break",
      sizing: 12
    },
    {
      id: "pairedConnectedNotes",
      name: "Connected to Lore notes/Other notes",
      type: "manyToManyRelationship",
      icon: "mdi-script-text-outline",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "loreNotes",
        connectedField: "pairedConnectedResources"
      }
    },
    {
      id: "pairedMyths",
      name: "Connected to Myths/Legends/Stories",
      type: "manyToManyRelationship",
      icon: "fas fa-journal-whills",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "myths",
        connectedField: "pairedResources"
      }
    },

    {
      id: "breakWorld",
      name: "Connections - World & Details",
      type: "break",
      sizing: 12
    },
    {
      id: "pairedCharacter",
      name: "Connected to Characters",
      type: "manyToManyRelationship",
      icon: "mdi-account",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "characters",
        connectedField: "pairedResources"
      }
    },

    {
      id: "pairedConnectedRaces",
      name: "Connected to Species/Races/Flora/Fauna",
      type: "manyToManyRelationship",
      icon: "fas fa-dragon",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "races",
        connectedField: "pairedConnectedResources"
      }
    },
    {
      id: "pairedConditionsPositive",
      name: "Causing Boons",
      type: "manyToManyRelationship",
      icon: "mdi-virus",
      sizing: 4,
      relationshipSettings: {
        connectedObjectType: "conditions",
        connectedField: "pairedResourcesPositive"
      }
    },
    {
      id: "pairedConditionsNegative",
      name: "Causing Afflictions",
      type: "manyToManyRelationship",
      icon: "mdi-virus",
      sizing: 4,
      relationshipSettings: {
        connectedObjectType: "conditions",
        connectedField: "pairedResourcesNegative"
      }
    },
    {
      id: "pairedConditionsOther",
      name: "Causing Other conditions",
      type: "manyToManyRelationship",
      icon: "mdi-virus",
      sizing: 4,
      relationshipSettings: {
        connectedObjectType: "conditions",
        connectedField: "pairedResourcesOther"
      }
    },

    {
      id: "breakPolitics",
      name: "Connections - Groups/Teachings",
      type: "break",
      sizing: 12
    },
    {
      id: "pairedConnectedPoliticalGroups",
      name: "Connected to Ideologies/Political groups",
      type: "manyToManyRelationship",
      icon: "mdi-bank-outline",
      sizing: 4,
      relationshipSettings: {
        connectedObjectType: "politicalGroups",
        connectedField: "pairedConnectedResources"
      }
    },
    {
      id: "pairedConnectedReligiousGroups",
      name: "Connected to Teachings/Religious groups",
      type: "manyToManyRelationship",
      icon: "fas fa-ankh",
      sizing: 4,
      relationshipSettings: {
        connectedObjectType: "religions",
        connectedField: "pairedConnectedResources"
      }
    },
    {
      id: "pairedConnectedOtherGroups",
      name: "Connected to Organizations/Other groups",
      type: "manyToManyRelationship",
      icon: "mdi-account-group",
      sizing: 4,
      relationshipSettings: {
        connectedObjectType: "guilds",
        connectedField: "pairedConnectedResources"
      }
    },
    {
      id: "pairedConnectedMagicGroups",
      name: "Connected to Schools of Magic/Magical groups",
      type: "manyToManyRelationship",
      icon: "fas fa-hat-wizard",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "magic",
        connectedField: "pairedConnectedResources"
      }
    },
    {
      id: "pairedConnectedTechGroups",
      name: "Connected to Sciences/Technological groups",
      type: "manyToManyRelationship",
      icon: "fas fa-wrench",
      sizing: 6,
      relationshipSettings: {
        connectedObjectType: "tech",
        connectedField: "pairedConnectedResources"
      }
    },
    {
      id: "breakSpoilers",
      name: "Secrets/Spoilers/DM notes",
      type: "break",
      sizing: 12,
      isSpoiler: true
    },
    {
      id: "spoilerNotes",
      name: "Secrets/Spoilers/DM notes",
      type: "wysiwyg",
      icon: "fas fa-mask",
      sizing: 12,
      isSpoiler: true,
      tooltip:
        `This field will not export by default when using the Export document functionality.
        <br>
        Instead it needs to be manually included if the user wishes to export it.
        `
    }
  ]
}
