

<script>
    var attrTextCollapsed = "{{ model.ATTR_TEXT_COLLAPSED }}";
    var attrTextExpanded = "{{ model.ATTR_TEXT_EXPANDED }}";
    var attrValueCurrent = "{{ model.ATTR_VALUE_CURRENT }}";
    var attrValuePrevious = "{{ model.ATTR_VALUE_PREVIOUS }}";
    var colourAccent = "{{ model.COLOUR_ACCENT }}";
    var colourError = "{{ model.COLOUR_ERROR }}";
    var colourPageBackground = "{{ model.COLOUR_PAGE_BACKGROUND }}";
    var colourPageBackground1 = "{{ model.COLOUR_PAGE_BACKGROUND_1 }}";
    var colourPageBackground2 = "{{ model.COLOUR_PAGE_BACKGROUND_2 }}";
    var colourPrimary = "{{ model.COLOUR_PRIMARY }}";
    var colourSecondary = "{{ model.COLOUR_SECONDARY }}";
    var colourText = "{{ model.COLOUR_TEXT }}";
    var colourTextBackground = "{{ model.COLOUR_TEXT_BACKGROUND }}";
    var colourTextLinkUnvisited = "{{ model.COLOUR_TEXT_LINK_UNVISITED }}";
    var colourTextLinkVisited = "{{ model.COLOUR_TEXT_LINK_VISITED }}";
    var environment =  {
        "name": "{{ model.app.app_config.FLASK_ENV }}",
        "is_production": "{{ model.app.app_config.is_production | lower }}",
        "is_development": "{{ model.app.app_config.is_development | lower }}",
    };
    var flagActive = "{{ model.FLAG_ACTIVE }}";
    var flagActiveOnly = "{{ model.FLAG_ACTIVE_ONLY }}";
    var flagAdd = "{{ model.FLAG_ADD }}";
    var flagButton = "{{ model.FLAG_BUTTON }}";
    var flagButtonPrimary = "{{ model.FLAG_BUTTON_PRIMARY }}";
    var flagCallback = "{{ model.FLAG_CALLBACK }}";
    var flagCancel = "{{ model.FLAG_CANCEL }}";
    var flagCaptcha = "{{ model.FLAG_CAPTCHA }}";
    var flagCard = "{{ model.FLAG_CARD }}";
    var flagCheckbox = "{{ model.FLAG_CHECKBOX }}";
    var flagCloseTemporaryElement = "{{ model.FLAG_CLOSE_TEMPORARY_ELEMENT }}";
    var flagCode = "{{ model.FLAG_CODE }}";
    var flagCollapsible = "{{ model.FLAG_COLLAPSIBLE }}";
    var flagColumn = "{{ model.FLAG_COLUMN }}";
    var flagComment = "{{ model.FLAG_COMMENT }}";
    var flagContainer = "{{ model.FLAG_CONTAINER }}";
    var flagContainerInput = "{{ model.FLAG_CONTAINER_INPUT }}";
    {# var flagContainerSaveCancelButtons = "{{ model.FLAG_CONTAINER_SAVE_CANCEL_BUTTONS }}"; #}
    var flagCsrfToken = "{{ model.FLAG_CSRF_TOKEN }}";
    var flagData = "{{ model.FLAG_DATA }}";
    var flagDdlPreview = "{{ model.FLAG_DDL_PREVIEW }}";
    var flagDelete = "{{ model.FLAG_DELETE }}";
    var flagDescription = "{{ model.FLAG_DESCRIPTION }}";
    var flagDetail = "{{ model.FLAG_DETAIL }}";
    var flagDialog = "{{ model.FLAG_DIALOG }}";
    var flagDirty = "{{ model.FLAG_DIRTY }}";
    var flagDisplayOrder = "{{ model.FLAG_DISPLAY_ORDER }}";
    var flagDragging = "dragging";
    var flagDragOver = "drag-over";
    var flagEdit = "{{ model.FLAG_EDIT }}";
    var flagEmail = "{{ model.FLAG_EMAIL }}";
    var flagEndOn = "{{ model.FLAG_END_ON }}";
    var flagError = "{{ model.FLAG_ERROR }}";
    var flagExpanded = "{{ model.FLAG_EXPANDED }}";
    var flagFailure = "{{ model.FLAG_FAILURE }}";
    var flagFilter = "{{ model.FLAG_FILTER }}";
    var flagFirstname = "{{ model.FLAG_FIRSTNAME }}";
    var flagForm = "{{ model.FLAG_FORM }}";
    var flagFormFilters = "{{ model.FLAG_FORM_FILTERS }}";
    var flagIcon = "{{ model.FLAG_ICON }}";
    var flagImageLogo = "{{ model.FLAG_IMAGE_LOGO }}";
    var flagInitialised = "{{ model.FLAG_INITIALISED }}";
    var flagIsChecked = "{{ model.FLAG_IS_CHECKED }}";
    var flagIsCollapsed = "{{ model.FLAG_IS_COLLAPSED }}";
    var flagLeftHandStub = "{{ model.FLAG_LEFT_HAND_STUB }}";
    var flagLogo = "{{ model.FLAG_LOGO }}";
    var flagMessage = "{{ model.FLAG_MESSAGE }}";
    var flagModal = "{{ model.FLAG_MODAL }}";
    var flagMove = "move";
    var flagName = "{{ model.FLAG_NAME }}";
    var flagNameAttrOptionText = "{{ model.FLAG_NAME_ATTR_OPTION_TEXT}}";
    var flagNameAttrOptionValue = "{{ model.FLAG_NAME_ATTR_OPTION_VALUE }}";
    var flagNamePlural = "{{ model.FLAG_NAME_PLURAL }}";
    var flagNavMtgDecks = "{{ model.FLAG_NAV_MTG_DECKS }}";
    var flagNavMtgGame = "{{ model.FLAG_NAV_MTG_GAME }}";
    var flagNavMtgGames = "{{ model.FLAG_NAV_MTG_GAMES }}";
    var flagNavMtgHome = "{{ model.FLAG_NAV_MTG_HOME }}";
    var flagNavMtgTrialGame =  "{{ model.FLAG_NAV_MTG_TRIAL_GAME }}";
    var flagNavHome = "{{ model.FLAG_NAV_HOME }}";
    var flagNavUserAccount = "{{ model.FLAG_NAV_USER_ACCOUNT }}";
    var flagNavUserLogin = "{{ model.FLAG_NAV_USER_LOGIN }}";
    var flagNavUserLogout = "{{ model.FLAG_NAV_USER_LOGOUT }}";
    var flagNotes = "{{ model.FLAG_NOTES }}";
    var flagOverlay = "{{ model.FLAG_OVERLAY }}";
    var flagPageBody = "{{ model.FLAG_PAGE_BODY }}";
    var flagQuantity = "{{ model.FLAG_QUANTITY }}";
    var flagRightHandSide = "{{ model.FLAG_RIGHT_HAND_SIDE }}";
    var flagRow = "{{ model.FLAG_ROW }}";
    var flagRowNew = "{{ model.FLAG_ROW_NEW }}";
    var flagRows = "{{ model.FLAG_ROWS }}";
    var flagSave = "{{ model.FLAG_SAVE }}";
    var flagScrollable = "{{ model.FLAG_SCROLLABLE }}";
    var flagSearch = "{{ model.FLAG_SEARCH }}";
    var flagSlider = "{{ model.FLAG_SLIDER }}";
    var flagStartOn = "{{ model.FLAG_START_ON }}";
    var flagStatus = "{{ model.FLAG_STATUS }}";
    var flagSubmit = "{{ model.FLAG_SUBMIT }}";
    var flagSuccess = "{{ model.FLAG_SUCCESS }}";
    var flagSurname = "{{ model.FLAG_SURNAME }}";
    var flagTableMain = "{{ model.FLAG_TABLE_MAIN }}";
    var flagTemporaryElement = "{{ model.FLAG_TEMPORARY_ELEMENT }}";
    var flagUser = "{{ model.FLAG_USER }}";
    var flagValue = "{{ model.FLAG_VALUE }}";
    var flagWebsite = "{{ model.FLAG_WEBSITE }}";
    var hashGetALTCHAChallenge = "{{ model.HASH_GET_ALTCHA_CHALLENGE }}";
    var hashPageAccessibilityReport = "{{ model.HASH_PAGE_ACCESSIBILITY_REPORT }}";
    var hashPageAccessibilityStatement = "{{ model.HASH_PAGE_ACCESSIBILITY_STATEMENT }}";
    var hashPageDataRetentionSchedule = "{{ model.HASH_PAGE_DATA_RETENTION_SCHEDULE }}";
    var hashPageMtgDecks = "{{ model.HASH_PAGE_MTG_DECKS }}";
    var hashPageMtgGame = "{{ model.HASH_PAGE_MTG_GAME }}";
    var hashPageMtgGames = "{{ model.HASH_PAGE_MTG_GAMES }}";
    var hashPageMtgHome = "{{ model.HASH_PAGE_MTG_HOME }}";
    var hashPageMtgTrialGame = "{{ model.HASH_PAGE_MTG_TRIAL_GAME }}";
    var hashPageErrorNoPermission = "{{ model.HASH_PAGE_ERROR_NO_PERMISSION }}";
    var hashPageLicense = "{{ model.HASH_PAGE_LICENSE }}";
    var hashPagePrivacyPolicy = "{{ model.HASH_PAGE_PRIVACY_POLICY }}";
    var hashPageUserAccount = "{{ model.HASH_PAGE_USER_ACCOUNT }}";
    var hashPageUserAccounts = "{{ model.HASH_PAGE_USER_ACCOUNTS }}";
    var hashPageUserLogin = "{{ model.HASH_PAGE_USER_LOGIN }}";
    var hashPageUserLogout = "{{ model.HASH_PAGE_USER_LOGOUT }}";
    var idButtonApplyFilters = "#{{ model.ID_BUTTON_APPLY_FILTERS }}";
    var idButtonHamburger = "#{{ model.ID_BUTTON_HAMBURGER }}";
    var idButtonCancel = "#{{ model.ID_BUTTON_CANCEL }}";
    var idButtonSave = "#{{ model.ID_BUTTON_SAVE }}";
    var idContainerTemplateElements = "#{{ model.ID_CONTAINER_TEMPLATE_ELEMENTS }}";
    var idCSRFToken = "#{{ model.ID_CSRF_TOKEN }}";
    var idFormFilters = "#{{ model.ID_FORM_FILTERS }}";
    var idLabelError = "#{{ model.ID_LABEL_ERROR }}";
    var idOverlayConfirm = "#{{ model.ID_OVERLAY_CONFIRM }}";
    var idOverlayError = "#{{ model.ID_OVERLAY_ERROR }}";
    var idOverlayHamburger = "#{{ model.ID_OVERLAY_HAMBURGER }}";
    var idPageBody = "#{{ model.ID_PAGE_BODY }}";
    var idTableMain = "#{{ model.ID_TABLE_MAIN }}";
    var idTextareaConfirm = "#{{ model.ID_TEXTAREA_CONFIRM }}";
    var isUserLoggedIn = "{{ model.output_bool(model.is_user_logged_in) }}";
    var _pathHost = "{{ model.get_url_host() }}";
    var _rowBlank = null;
    var titlePageCurrent = "{{ model.title }}";
    var _verbose = ("{{ model.app.app_config.DEBUG }}" == "True");
</script>

{% include 'layouts/_shared_mtg_scripts.html' %}
