<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;

/* _layouts/cp */
class __TwigTemplate_ca0cc0a3469f8cd735fd385beb5b87b8 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'body' => [$this, 'block_body'],
            'mainFormAttributes' => [$this, 'block_mainFormAttributes'],
            'header' => [$this, 'block_header'],
            'pageTitle' => [$this, 'block_pageTitle'],
            'main' => [$this, 'block_main'],
            'content' => [$this, 'block_content'],
            'actionButton' => [$this, 'block_actionButton'],
            'submitButton' => [$this, 'block_submitButton'],
        ];
        $this->sandbox = $this->extensions[SandboxExtension::class];
        $this->checkSecurity();
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 42
        return "_layouts/basecp.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("template", "_layouts/cp");
        // line 45
        $context["queue"] = craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 45, $this->source); })()), "app", [], "any", false, false, true, 45), "queue", [], "any", false, false, true, 45);
        // line 46
        ob_start();
        // line 47
        yield "    ";
        if ($this->env->getTest('instance of')->getCallable()((isset($context["queue"]) || array_key_exists("queue", $context) ? $context["queue"] : (function () { throw new RuntimeError('Variable "queue" does not exist.', 47, $this->source); })()), "craft\\queue\\QueueInterface")) {
            // line 48
            yield "        Craft.cp.setJobInfo(";
            yield $this->extensions['craft\web\twig\Extension']->jsonEncodeFilter($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, (isset($context["queue"]) || array_key_exists("queue", $context) ? $context["queue"] : (function () { throw new RuntimeError('Variable "queue" does not exist.', 48, $this->source); })()), "getJobInfo", [100], "method", false, false, true, 48), 48, $this->source));
            yield ", false);
        ";
            // line 49
            if (craft\helpers\Template::attribute($this->env, $this->source, (isset($context["queue"]) || array_key_exists("queue", $context) ? $context["queue"] : (function () { throw new RuntimeError('Variable "queue" does not exist.', 49, $this->source); })()), "getHasReservedJobs", [], "method", false, false, true, 49)) {
                // line 50
                yield "            Craft.cp.trackJobProgress(true);
        ";
            } elseif (craft\helpers\Template::attribute($this->env, $this->source,             // line 51
(isset($context["queue"]) || array_key_exists("queue", $context) ? $context["queue"] : (function () { throw new RuntimeError('Variable "queue" does not exist.', 51, $this->source); })()), "getHasWaitingJobs", [], "method", false, false, true, 51)) {
                // line 52
                yield "            Craft.cp.runQueue();
        ";
            }
            // line 54
            yield "    ";
        } else {
            // line 55
            yield "        Craft.cp.enableQueue = false;
    ";
        }
        craft\helpers\Template::js(ob_get_clean(), ['position' => 3]);
        // line 59
        $context["hasSystemIcon"] = (((isset($context["CraftEdition"]) || array_key_exists("CraftEdition", $context) ? $context["CraftEdition"] : (function () { throw new RuntimeError('Variable "CraftEdition" does not exist.', 59, $this->source); })()) == (isset($context["CraftPro"]) || array_key_exists("CraftPro", $context) ? $context["CraftPro"] : (function () { throw new RuntimeError('Variable "CraftPro" does not exist.', 59, $this->source); })())) && craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 59, $this->source); })()), "rebrand", [], "any", false, false, true, 59), "isIconUploaded", [], "any", false, false, true, 59));
        // line 60
        $context["fullPageForm"] = (array_key_exists("fullPageForm", $context) && (isset($context["fullPageForm"]) || array_key_exists("fullPageForm", $context) ? $context["fullPageForm"] : (function () { throw new RuntimeError('Variable "fullPageForm" does not exist.', 60, $this->source); })()));
        // line 62
        $context["editionName"] = craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 62, $this->source); })()), "app", [], "any", false, false, true, 62), "getEditionName", [], "method", false, false, true, 62);
        // line 63
        $context["canUpgradeEdition"] = craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 63, $this->source); })()), "app", [], "any", false, false, true, 63), "getCanUpgradeEdition", [], "method", false, false, true, 63);
        // line 64
        $context["licensedEdition"] = craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 64, $this->source); })()), "app", [], "any", false, false, true, 64), "getLicensedEdition", [], "method", false, false, true, 64);
        // line 65
        $context["isTrial"] = ( !((isset($context["licensedEdition"]) || array_key_exists("licensedEdition", $context) ? $context["licensedEdition"] : (function () { throw new RuntimeError('Variable "licensedEdition" does not exist.', 65, $this->source); })()) === null) &&  !((isset($context["licensedEdition"]) || array_key_exists("licensedEdition", $context) ? $context["licensedEdition"] : (function () { throw new RuntimeError('Variable "licensedEdition" does not exist.', 65, $this->source); })()) === (isset($context["CraftEdition"]) || array_key_exists("CraftEdition", $context) ? $context["CraftEdition"] : (function () { throw new RuntimeError('Variable "CraftEdition" does not exist.', 65, $this->source); })())));
        // line 66
        $context["trialInfo"] = craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 66, $this->source); })()), "cp", [], "any", false, false, true, 66), "trialInfo", [], "method", false, false, true, 66);
        // line 68
        $context["contentNotice"] = Twig\Extension\CoreExtension::trim((((array_key_exists("contentNotice", $context) &&  !(null === $context["contentNotice"]))) ? ($context["contentNotice"]) : (((        $this->unwrap()->hasBlock("contentNotice", $context, $blocks)) ? (        $this->unwrap()->renderBlock("contentNotice", $context, $blocks)) : ("")))));
        // line 69
        $context["sidebar"] = Twig\Extension\CoreExtension::trim((((array_key_exists("sidebar", $context) &&  !(null === $context["sidebar"]))) ? ($context["sidebar"]) : (((        $this->unwrap()->hasBlock("sidebar", $context, $blocks)) ? (        $this->unwrap()->renderBlock("sidebar", $context, $blocks)) : ("")))));
        // line 70
        $context["contextMenu"] = Twig\Extension\CoreExtension::trim((((array_key_exists("contextMenu", $context) &&  !(null === $context["contextMenu"]))) ? ($context["contextMenu"]) : (((        $this->unwrap()->hasBlock("contextMenu", $context, $blocks)) ? (        $this->unwrap()->renderBlock("contextMenu", $context, $blocks)) : ("")))));
        // line 71
        $context["toolbar"] = Twig\Extension\CoreExtension::trim((((array_key_exists("toolbar", $context) &&  !(null === $context["toolbar"]))) ? ($context["toolbar"]) : (((        $this->unwrap()->hasBlock("toolbar", $context, $blocks)) ? (        $this->unwrap()->renderBlock("toolbar", $context, $blocks)) : ("")))));
        // line 72
        $context["actionButton"] = Twig\Extension\CoreExtension::trim(((        $this->unwrap()->hasBlock("actionButton", $context, $blocks)) ? (        $this->unwrap()->renderBlock("actionButton", $context, $blocks)) : ("")));
        // line 73
        $context["additionalButtons"] = (((array_key_exists("additionalButtons", $context) &&  !(null === $context["additionalButtons"]))) ? ($context["additionalButtons"]) : (null));
        // line 74
        $context["details"] = Twig\Extension\CoreExtension::trim((((array_key_exists("details", $context) &&  !(null === $context["details"]))) ? ($context["details"]) : (((        $this->unwrap()->hasBlock("details", $context, $blocks)) ? (        $this->unwrap()->renderBlock("details", $context, $blocks)) : ("")))));
        // line 75
        $context["footer"] = Twig\Extension\CoreExtension::trim((((array_key_exists("footer", $context) &&  !(null === $context["footer"]))) ? ($context["footer"]) : (((        $this->unwrap()->hasBlock("footer", $context, $blocks)) ? (        $this->unwrap()->renderBlock("footer", $context, $blocks)) : ("")))));
        // line 76
        $context["crumbs"] = (((array_key_exists("crumbs", $context) &&  !(null === $context["crumbs"]))) ? ($context["crumbs"]) : (null));
        // line 77
        $context["tabs"] = ((($this->extensions['craft\web\twig\Extension']->lengthFilter($this->env, (((array_key_exists("tabs", $context) &&  !(null === $context["tabs"]))) ? ($context["tabs"]) : ([]))) > 1)) ? ((isset($context["tabs"]) || array_key_exists("tabs", $context) ? $context["tabs"] : (function () { throw new RuntimeError('Variable "tabs" does not exist.', 77, $this->source); })())) : (null));
        // line 78
        $context["errorSummary"] = (((array_key_exists("errorSummary", $context) &&  !(null === $context["errorSummary"]))) ? ($context["errorSummary"]) : (null));
        // line 80
        $context["mainContentClasses"] = $this->extensions['craft\web\twig\Extension']->filterFilter($this->env, [((        // line 81
(isset($context["sidebar"]) || array_key_exists("sidebar", $context) ? $context["sidebar"] : (function () { throw new RuntimeError('Variable "sidebar" does not exist.', 81, $this->source); })())) ? ("has-sidebar") : ("")), ((        // line 82
(isset($context["details"]) || array_key_exists("details", $context) ? $context["details"] : (function () { throw new RuntimeError('Variable "details" does not exist.', 82, $this->source); })())) ? ("has-details") : (""))]);
        // line 85
        $context["bodyClass"] = craft\helpers\Html::explodeClass((((array_key_exists("bodyClass", $context) &&  !(null === $context["bodyClass"]))) ? ($context["bodyClass"]) : ([])));
        // line 86
        $context["showHeader"] = (((array_key_exists("showHeader", $context) &&  !(null === $context["showHeader"]))) ? ($context["showHeader"]) : (true));
        // line 87
        if ( !(isset($context["showHeader"]) || array_key_exists("showHeader", $context) ? $context["showHeader"] : (function () { throw new RuntimeError('Variable "showHeader" does not exist.', 87, $this->source); })())) {
            // line 88
            $context["bodyClass"] = $this->extensions['craft\web\twig\Extension']->pushFilter($this->sandbox->ensureToStringAllowed((isset($context["bodyClass"]) || array_key_exists("bodyClass", $context) ? $context["bodyClass"] : (function () { throw new RuntimeError('Variable "bodyClass" does not exist.', 88, $this->source); })()), 88, $this->source), "no-header");
        }
        // line 90
        if (craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 90, $this->source); })()), "app", [], "any", false, false, true, 90), "hasModule", ["debug"], "method", false, false, true, 90)) {
            // line 91
            $context["bodyClass"] = $this->extensions['craft\web\twig\Extension']->pushFilter($this->sandbox->ensureToStringAllowed((isset($context["bodyClass"]) || array_key_exists("bodyClass", $context) ? $context["bodyClass"] : (function () { throw new RuntimeError('Variable "bodyClass" does not exist.', 91, $this->source); })()), 91, $this->source), "has-debug-toolbar");
        }
        // line 94
        $context["mainAttributes"] = $this->extensions['craft\web\twig\Extension']->mergeFilter(["id" => "main", "role" => "main"], (((        // line 97
array_key_exists("mainAttributes", $context) &&  !(null === $context["mainAttributes"]))) ? ($context["mainAttributes"]) : ([])));
        // line 99
        $context["formActions"] = craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 99, $this->source); })()), "cp", [], "any", false, false, true, 99), "prepFormActions", [(((array_key_exists("formActions", $context) &&  !(null === $context["formActions"]))) ? ($context["formActions"]) : (null))], "method", false, false, true, 99);
        // line 101
        $context["mainFormAttributes"] = $this->extensions['craft\web\twig\Extension']->mergeFilter(["id" => "main-form", "method" => "post", "accept-charset" => "UTF-8", "novalidate" => true, "data" => ["saveshortcut" => (((        // line 107
array_key_exists("saveShortcut", $context) &&  !(null === $context["saveShortcut"]))) ? ($context["saveShortcut"]) : (true)), "saveshortcut-redirect" => (((((        // line 108
array_key_exists("saveShortcutRedirect", $context) &&  !(null === $context["saveShortcutRedirect"]))) ? ($context["saveShortcutRedirect"]) : (false))) ? ($this->env->getFilter('hash')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["saveShortcutRedirect"]) || array_key_exists("saveShortcutRedirect", $context) ? $context["saveShortcutRedirect"] : (function () { throw new RuntimeError('Variable "saveShortcutRedirect" does not exist.', 108, $this->source); })()), 108, $this->source))) : (false)), "saveshortcut-scroll" => (((        // line 109
array_key_exists("retainScrollOnSaveShortcut", $context) &&  !(null === $context["retainScrollOnSaveShortcut"]))) ? ($context["retainScrollOnSaveShortcut"]) : (false)), "actions" => (((        // line 110
array_key_exists("formActions", $context) &&  !(null === $context["formActions"]))) ? ($context["formActions"]) : (false)), "confirm-unload" => true, "delta" => $this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source,         // line 112
(isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 112, $this->source); })()), "getIsDeltaRegistrationActive", [], "method", false, false, true, 112), 112, $this->source), "delta-names" => $this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source,         // line 113
(isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 113, $this->source); })()), "getDeltaNames", [], "method", false, false, true, 113), 113, $this->source), "initial-delta-values" => $this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source,         // line 114
(isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 114, $this->source); })()), "getInitialDeltaValues", [], "method", false, false, true, 114), 114, $this->source), "modified-delta-names" => array_values(array_unique($this->extensions['craft\web\twig\Extension']->mergeFilter($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source,         // line 115
(isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 115, $this->source); })()), "getModifiedDeltaNames", [], "method", false, false, true, 115), 115, $this->source), (((craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, ($context["craft"] ?? null), "app", [], "any", false, true, true, 115), "request", [], "any", false, true, true, 115), "getBodyParam", ["modifiedDeltaNames"], "method", true, true, true, 115) &&  !(null === craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 115, $this->source); })()), "app", [], "any", false, false, true, 115), "request", [], "any", false, false, true, 115), "getBodyParam", ["modifiedDeltaNames"], "method", false, false, true, 115)))) ? (craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 115, $this->source); })()), "app", [], "any", false, false, true, 115), "request", [], "any", false, false, true, 115), "getBodyParam", ["modifiedDeltaNames"], "method", false, false, true, 115)) : ([])))))]], (((        // line 117
array_key_exists("mainFormAttributes", $context) &&  !(null === $context["mainFormAttributes"]))) ? ($context["mainFormAttributes"]) : ([])), true);
        // line 119
        $context["userPhoto"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 120
            yield "    <div class=\"header-photo\">
        ";
            // line 121
            yield $this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, (isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 121, $this->source); })()), "getThumbHtml", [30], "method", false, false, true, 121), 121, $this->source);
            yield "
    </div>
";
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 125
        ob_start();
        // line 126
        yield "    // Remove the hash so the browser doesn't scroll to it
    window.LOCATION_HASH = document.location.hash ? decodeURIComponent(document.location.hash.substr(1)) : null;
    history.replaceState(undefined, undefined, window.location.href.match(/^[^#]*/)[0]);
";
        craft\helpers\Template::js(ob_get_clean(), ['position' => 1]);
        // line 356
        if ((craft\helpers\Template::attribute($this->env, $this->source, (isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 356, $this->source); })()), "can", ["performUpdates"], "method", false, false, true, 356) &&  !craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 356, $this->source); })()), "app", [], "any", false, false, true, 356), "updates", [], "any", false, false, true, 356), "getIsUpdateInfoCached", [], "method", false, false, true, 356))) {
            // line 357
            ob_start();
            // line 358
            yield "        Craft.cp.checkForUpdates();
    ";
            craft\helpers\Template::js(ob_get_clean(), ['position' => 3]);
        }
        // line 42
        $this->parent = $this->loadTemplate("_layouts/basecp.twig", "_layouts/cp", 42);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        craft\helpers\Template::endProfile("template", "_layouts/cp");
    }

    // line 131
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("block", "body");
        // line 132
        yield "    ";
        yield $this->extensions['craft\web\twig\Extension']->tagFunction("a", ["id" => "global-skip-link", "text" => $this->extensions['craft\web\twig\Extension']->translateFilter("Skip to content", "app"), "href" => "#main", "class" => "skip-link btn"]);
        // line 137
        yield "

    <div id=\"global-container\">
        ";
        // line 140
        yield from $this->loadTemplate("_layouts/components/global-sidebar", "_layouts/cp", 140)->unwrap()->yield($context);
        // line 141
        yield "
        <div id=\"page-container\">
            ";
        // line 143
        yield from $this->loadTemplate("_layouts/components/alerts", "_layouts/cp", 143)->unwrap()->yield($context);
        // line 144
        yield "
            <div id=\"global-header\" role=\"region\" aria-label=\"";
        // line 145
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("My Account", "app"), "html", null, true);
        yield "\">
                <div class=\"flex\">
                    ";
        // line 147
        yield from $this->loadTemplate("_layouts/components/crumbs", "_layouts/cp", 147)->unwrap()->yield($context);
        // line 148
        yield "                    <div class=\"flex-grow\"></div>
                    <button type=\"button\" id=\"announcements-btn\" class=\"btn hidden\" title=\"";
        // line 149
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("What’s New", "app"), "html", null, true);
        yield "\">
                        <span class=\"visually-hidden\">";
        // line 150
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("What’s New", "app"), "html", null, true);
        yield "</span>
                        ";
        // line 151
        yield $this->extensions['craft\web\twig\Extension']->svgFunction("@app/icons/gift.svg");
        yield "
                    </button>

                    ";
        // line 155
        yield "                    <div class=\"account-toggle-wrapper\">
                        <button
                            id=\"user-info\"
                            aria-controls=\"account-menu\"
                            class=\"btn menu-toggle\"
                            aria-label=\"";
        // line 160
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("My Account", "app"), "html", null, true);
        yield "\"
                            title=\"";
        // line 161
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("My Account", "app"), "html", null, true);
        yield "\"
                            data-disclosure-trigger>
                            ";
        // line 163
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["userPhoto"]) || array_key_exists("userPhoto", $context) ? $context["userPhoto"] : (function () { throw new RuntimeError('Variable "userPhoto" does not exist.', 163, $this->source); })()), 163, $this->source), "html", null, true);
        yield "
                        </button>
                        <div id=\"account-menu\" class=\"menu menu--disclosure\" data-align=\"right\" data-align-to=\".header-photo\">
                            <ul>
                                <li>
                                    <a href=\"";
        // line 168
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(craft\helpers\UrlHelper::url("myaccount"), "html", null, true);
        yield "\" class=\"flex flex-nowrap\">
                                        ";
        // line 169
        if (craft\helpers\Template::attribute($this->env, $this->source, (isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 169, $this->source); })()), "photoId", [], "any", false, false, true, 169)) {
            // line 170
            yield "                                            ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["userPhoto"]) || array_key_exists("userPhoto", $context) ? $context["userPhoto"] : (function () { throw new RuntimeError('Variable "userPhoto" does not exist.', 170, $this->source); })()), 170, $this->source), "html", null, true);
            yield "
                                        ";
        }
        // line 172
        yield "                                        <div class=\"flex-grow\">
                                            <div>";
        // line 173
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, (isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 173, $this->source); })()), "username", [], "any", false, false, true, 173), 173, $this->source), "html", null, true);
        yield "</div>
                                            ";
        // line 174
        if ( !craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 174, $this->source); })()), "app", [], "any", false, false, true, 174), "config", [], "any", false, false, true, 174), "general", [], "any", false, false, true, 174), "useEmailAsUsername", [], "any", false, false, true, 174)) {
            // line 175
            yield "                                                <div class=\"smalltext\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, (isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 175, $this->source); })()), "email", [], "any", false, false, true, 175), 175, $this->source), "html", null, true);
            yield "</div>
                                            ";
        }
        // line 177
        yield "                                        </div>
                                    </a>
                                </li>
                            </ul>
                            <hr>
                            <ul>
                                <li><a href=\"";
        // line 183
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(craft\helpers\UrlHelper::url("logout"), "html", null, true);
        yield "\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("Sign out", "app"), "html", null, true);
        yield "</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <div id=\"main-container\">
                <main ";
        // line 191
        yield craft\helpers\Html::renderTagAttributes($this->sandbox->ensureToStringAllowed((isset($context["mainAttributes"]) || array_key_exists("mainAttributes", $context) ? $context["mainAttributes"] : (function () { throw new RuntimeError('Variable "mainAttributes" does not exist.', 191, $this->source); })()), 191, $this->source));
        yield ">

                    ";
        // line 193
        if ((isset($context["fullPageForm"]) || array_key_exists("fullPageForm", $context) ? $context["fullPageForm"] : (function () { throw new RuntimeError('Variable "fullPageForm" does not exist.', 193, $this->source); })())) {
            // line 194
            yield "<form ";
            yield from $this->unwrap()->yieldBlock('mainFormAttributes', $context, $blocks);
            yield ">";
            // line 195
            yield craft\helpers\Html::csrfInput();
        }
        // line 197
        yield "
                    ";
        // line 198
        if ((isset($context["showHeader"]) || array_key_exists("showHeader", $context) ? $context["showHeader"] : (function () { throw new RuntimeError('Variable "showHeader" does not exist.', 198, $this->source); })())) {
            // line 199
            yield "                        <div id=\"header-container\">
                            <header id=\"header\">
                                ";
            // line 201
            yield from $this->unwrap()->yieldBlock('header', $context, $blocks);
            // line 222
            yield "                            </header><!-- #header -->
                        </div>
                    ";
        }
        // line 225
        yield "
                    <div id=\"main-content\" class=\"";
        // line 226
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::join($this->sandbox->ensureToStringAllowed((isset($context["mainContentClasses"]) || array_key_exists("mainContentClasses", $context) ? $context["mainContentClasses"] : (function () { throw new RuntimeError('Variable "mainContentClasses" does not exist.', 226, $this->source); })()), 226, $this->source), " "), "html", null, true);
        yield "\">
                        ";
        // line 228
        yield "                        ";
        if ((isset($context["sidebar"]) || array_key_exists("sidebar", $context) ? $context["sidebar"] : (function () { throw new RuntimeError('Variable "sidebar" does not exist.', 228, $this->source); })())) {
            // line 229
            yield "                            <div id=\"sidebar-toggle-container\">
                                <button type=\"button\" id=\"sidebar-toggle\" class=\"btn menubtn\" aria-controls=\"sidebar-container\" aria-expanded=\"false\">
                                    ";
            // line 231
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("Show sidebar", "app"), "html", null, true);
            yield "
                                </button>
                            </div>
                            <div id=\"sidebar-container\">
                                <div id=\"sidebar\" class=\"sidebar\">
                                    ";
            // line 236
            yield $this->sandbox->ensureToStringAllowed((isset($context["sidebar"]) || array_key_exists("sidebar", $context) ? $context["sidebar"] : (function () { throw new RuntimeError('Variable "sidebar" does not exist.', 236, $this->source); })()), 236, $this->source);
            yield "
                                </div>
                            </div>
                        ";
        }
        // line 240
        yield "
                        ";
        // line 242
        yield "                        <div id=\"content-container\">
                            ";
        // line 243
        if ((isset($context["sidebar"]) || array_key_exists("sidebar", $context) ? $context["sidebar"] : (function () { throw new RuntimeError('Variable "sidebar" does not exist.', 243, $this->source); })())) {
            // line 244
            yield "                                <h2 id=\"content-heading\"></h2>
                            ";
        }
        // line 246
        yield "                            ";
        yield from $this->unwrap()->yieldBlock('main', $context, $blocks);
        // line 280
        yield "                        </div><!-- #content-container -->

                        ";
        // line 282
        if ( !$this->env->getTest('empty')->getCallable()((isset($context["details"]) || array_key_exists("details", $context) ? $context["details"] : (function () { throw new RuntimeError('Variable "details" does not exist.', 282, $this->source); })()))) {
            // line 283
            yield "                            <div id=\"details-container\">
                                <div id=\"details\">
                                    <div class=\"details\">
                                        ";
            // line 286
            yield $this->sandbox->ensureToStringAllowed((isset($context["details"]) || array_key_exists("details", $context) ? $context["details"] : (function () { throw new RuntimeError('Variable "details" does not exist.', 286, $this->source); })()), 286, $this->source);
            yield "
                                    </div>
                                </div>
                            </div>
                        ";
        }
        // line 291
        yield "                    </div><!-- #main-content -->

                    ";
        // line 293
        if ((isset($context["fullPageForm"]) || array_key_exists("fullPageForm", $context) ? $context["fullPageForm"] : (function () { throw new RuntimeError('Variable "fullPageForm" does not exist.', 293, $this->source); })())) {
            // line 294
            yield "</form><!-- #main-form -->";
        }
        // line 296
        yield "                </main><!-- #main -->
            </div><!-- #main-container -->

            <footer id=\"global-footer\">
                ";
        // line 300
        if ((isset($context["trialInfo"]) || array_key_exists("trialInfo", $context) ? $context["trialInfo"] : (function () { throw new RuntimeError('Variable "trialInfo" does not exist.', 300, $this->source); })())) {
            // line 301
            yield "                    <div id=\"trial-info\" class=\"readable\">
                        <span>
                            ";
            // line 303
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, (isset($context["trialInfo"]) || array_key_exists("trialInfo", $context) ? $context["trialInfo"] : (function () { throw new RuntimeError('Variable "trialInfo" does not exist.', 303, $this->source); })()), "message", [], "any", false, false, true, 303), 303, $this->source), "html", null, true);
            yield "
                            ";
            // line 304
            $context["linkText"] = $this->extensions['craft\web\twig\Extension']->translateFilter("Buy now", "app");
            // line 305
            yield "                            ";
            yield $this->extensions['craft\web\twig\Extension']->tagFunction("a", ["class" => "go", "href" => $this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source,             // line 307
(isset($context["trialInfo"]) || array_key_exists("trialInfo", $context) ? $context["trialInfo"] : (function () { throw new RuntimeError('Variable "trialInfo" does not exist.', 307, $this->source); })()), "cartUrl", [], "any", false, false, true, 307), 307, $this->source), "target" => "_blank", "text" => $this->sandbox->ensureToStringAllowed(            // line 309
(isset($context["linkText"]) || array_key_exists("linkText", $context) ? $context["linkText"] : (function () { throw new RuntimeError('Variable "linkText" does not exist.', 309, $this->source); })()), 309, $this->source), "aria" => ["label" => $this->sandbox->ensureToStringAllowed(            // line 310
(isset($context["linkText"]) || array_key_exists("linkText", $context) ? $context["linkText"] : (function () { throw new RuntimeError('Variable "linkText" does not exist.', 310, $this->source); })()), 310, $this->source)]]);
            // line 311
            yield "
                        </span>
                    </div>
                ";
        }
        // line 315
        yield "                <div id=\"app-info\">
                    ";
        // line 316
        $context["fullEditionName"] = $this->extensions['craft\web\twig\Extension']->translateFilter("{edition} edition", "app", ["edition" => $this->sandbox->ensureToStringAllowed((isset($context["editionName"]) || array_key_exists("editionName", $context) ? $context["editionName"] : (function () { throw new RuntimeError('Variable "editionName" does not exist.', 316, $this->source); })()), 316, $this->source)]);
        // line 317
        yield "                    <span>
                        Craft CMS
                        <span id=\"edition-logo\" title=\"";
        // line 319
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["fullEditionName"]) || array_key_exists("fullEditionName", $context) ? $context["fullEditionName"] : (function () { throw new RuntimeError('Variable "fullEditionName" does not exist.', 319, $this->source); })()), 319, $this->source), "html", null, true);
        yield "\">
                            <span aria-hidden=\"true\">";
        // line 320
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["editionName"]) || array_key_exists("editionName", $context) ? $context["editionName"] : (function () { throw new RuntimeError('Variable "editionName" does not exist.', 320, $this->source); })()), 320, $this->source), "html", null, true);
        yield "</span>
                            <span class=\"visually-hidden\">";
        // line 321
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["fullEditionName"]) || array_key_exists("fullEditionName", $context) ? $context["fullEditionName"] : (function () { throw new RuntimeError('Variable "fullEditionName" does not exist.', 321, $this->source); })()), 321, $this->source), "html", null, true);
        yield "</span>
                        </span>
                        ";
        // line 323
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, (isset($context["craft"]) || array_key_exists("craft", $context) ? $context["craft"] : (function () { throw new RuntimeError('Variable "craft" does not exist.', 323, $this->source); })()), "app", [], "any", false, false, true, 323), "version", [], "any", false, false, true, 323), 323, $this->source), "html", null, true);
        yield "
                    </span>
                    ";
        // line 325
        if (((isset($context["canUpgradeEdition"]) || array_key_exists("canUpgradeEdition", $context) ? $context["canUpgradeEdition"] : (function () { throw new RuntimeError('Variable "canUpgradeEdition" does not exist.', 325, $this->source); })()) &&  !(isset($context["isTrial"]) || array_key_exists("isTrial", $context) ? $context["isTrial"] : (function () { throw new RuntimeError('Variable "isTrial" does not exist.', 325, $this->source); })()))) {
            // line 326
            yield "                        ";
            $context["linkText"] = $this->extensions['craft\web\twig\Extension']->translateFilter("Upgrade to Craft Pro", "app");
            // line 327
            yield "                        <span>
                            <a class=\"go\" href=\"";
            // line 328
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(craft\helpers\UrlHelper::url("plugin-store/upgrade-craft"), "html", null, true);
            yield "\" aria-label=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["linkText"]) || array_key_exists("linkText", $context) ? $context["linkText"] : (function () { throw new RuntimeError('Variable "linkText" does not exist.', 328, $this->source); })()), 328, $this->source), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["linkText"]) || array_key_exists("linkText", $context) ? $context["linkText"] : (function () { throw new RuntimeError('Variable "linkText" does not exist.', 328, $this->source); })()), 328, $this->source), "html", null, true);
            yield "</a>
                        </span>
                    ";
        }
        // line 331
        yield "                </div>
            </footer>

        </div><!-- #page-container -->
    </div><!-- #global-container -->

    ";
        // line 337
        yield from $this->loadTemplate("_layouts/components/notifications", "_layouts/cp", 337)->unwrap()->yield($context);
        craft\helpers\Template::endProfile("block", "body");
        yield from [];
    }

    // line 194
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_mainFormAttributes(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("block", "mainFormAttributes");
        yield craft\helpers\Html::renderTagAttributes($this->sandbox->ensureToStringAllowed((isset($context["mainFormAttributes"]) || array_key_exists("mainFormAttributes", $context) ? $context["mainFormAttributes"] : (function () { throw new RuntimeError('Variable "mainFormAttributes" does not exist.', 194, $this->source); })()), 194, $this->source));
        craft\helpers\Template::endProfile("block", "mainFormAttributes");
        yield from [];
    }

    // line 201
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_header(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("block", "header");
        // line 202
        yield "                                    <div id=\"page-title\" class=\"flex";
        if ((isset($context["toolbar"]) || array_key_exists("toolbar", $context) ? $context["toolbar"] : (function () { throw new RuntimeError('Variable "toolbar" does not exist.', 202, $this->source); })())) {
            yield " has-toolbar";
        }
        yield "\">
                                        ";
        // line 203
        yield from $this->unwrap()->yieldBlock('pageTitle', $context, $blocks);
        // line 208
        yield "                                        ";
        yield $this->sandbox->ensureToStringAllowed((isset($context["contextMenu"]) || array_key_exists("contextMenu", $context) ? $context["contextMenu"] : (function () { throw new RuntimeError('Variable "contextMenu" does not exist.', 208, $this->source); })()), 208, $this->source);
        yield "
                                    </div>
                                    ";
        // line 210
        if ((isset($context["toolbar"]) || array_key_exists("toolbar", $context) ? $context["toolbar"] : (function () { throw new RuntimeError('Variable "toolbar" does not exist.', 210, $this->source); })())) {
            // line 211
            yield "                                        <div id=\"toolbar\" class=\"flex\">
                                            ";
            // line 212
            yield $this->sandbox->ensureToStringAllowed((isset($context["toolbar"]) || array_key_exists("toolbar", $context) ? $context["toolbar"] : (function () { throw new RuntimeError('Variable "toolbar" does not exist.', 212, $this->source); })()), 212, $this->source);
            yield "
                                        </div>
                                    ";
        }
        // line 215
        yield "                                    ";
        if (((isset($context["actionButton"]) || array_key_exists("actionButton", $context) ? $context["actionButton"] : (function () { throw new RuntimeError('Variable "actionButton" does not exist.', 215, $this->source); })()) || (isset($context["additionalButtons"]) || array_key_exists("additionalButtons", $context) ? $context["additionalButtons"] : (function () { throw new RuntimeError('Variable "additionalButtons" does not exist.', 215, $this->source); })()))) {
            // line 216
            yield "                                        <div id=\"action-buttons\" class=\"flex\">
                                            ";
            // line 217
            yield $this->sandbox->ensureToStringAllowed((isset($context["additionalButtons"]) || array_key_exists("additionalButtons", $context) ? $context["additionalButtons"] : (function () { throw new RuntimeError('Variable "additionalButtons" does not exist.', 217, $this->source); })()), 217, $this->source);
            yield "
                                            ";
            // line 218
            yield $this->sandbox->ensureToStringAllowed((isset($context["actionButton"]) || array_key_exists("actionButton", $context) ? $context["actionButton"] : (function () { throw new RuntimeError('Variable "actionButton" does not exist.', 218, $this->source); })()), 218, $this->source);
            yield "
                                        </div>
                                    ";
        }
        // line 221
        yield "                                ";
        craft\helpers\Template::endProfile("block", "header");
        yield from [];
    }

    // line 203
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_pageTitle(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("block", "pageTitle");
        // line 204
        yield "                                            ";
        if ((array_key_exists("title", $context) && $this->extensions['craft\web\twig\Extension']->lengthFilter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 204, $this->source); })())))) {
            // line 205
            yield "                                                <h1 class=\"screen-title\" title=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 205, $this->source); })()), 205, $this->source), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 205, $this->source); })()), 205, $this->source), "html", null, true);
            yield "</h1>
                                            ";
        }
        // line 207
        yield "                                        ";
        craft\helpers\Template::endProfile("block", "pageTitle");
        yield from [];
    }

    // line 246
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_main(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("block", "main");
        // line 247
        yield "                                ";
        if ( !$this->env->getTest('empty')->getCallable()((isset($context["errorSummary"]) || array_key_exists("errorSummary", $context) ? $context["errorSummary"] : (function () { throw new RuntimeError('Variable "errorSummary" does not exist.', 247, $this->source); })()))) {
            // line 248
            yield "                                    ";
            yield ((array_key_exists("errorSummary", $context)) ? ($this->sandbox->ensureToStringAllowed((isset($context["errorSummary"]) || array_key_exists("errorSummary", $context) ? $context["errorSummary"] : (function () { throw new RuntimeError('Variable "errorSummary" does not exist.', 248, $this->source); })()), 248, $this->source)) : (""));
            yield "
                                ";
        }
        // line 250
        yield "                                <div id=\"content\" class=\"content-pane\">
                                    ";
        // line 251
        if (((isset($context["contentNotice"]) || array_key_exists("contentNotice", $context) ? $context["contentNotice"] : (function () { throw new RuntimeError('Variable "contentNotice" does not exist.', 251, $this->source); })()) || (isset($context["tabs"]) || array_key_exists("tabs", $context) ? $context["tabs"] : (function () { throw new RuntimeError('Variable "tabs" does not exist.', 251, $this->source); })()))) {
            // line 252
            yield "                                        <header id=\"content-header\" class=\"pane-header\">
                                            ";
            // line 253
            yield (((isset($context["contentNotice"]) || array_key_exists("contentNotice", $context) ? $context["contentNotice"] : (function () { throw new RuntimeError('Variable "contentNotice" does not exist.', 253, $this->source); })())) ? ($this->extensions['craft\web\twig\Extension']->tagFunction("div", ["id" => "content-notice", "html" => $this->sandbox->ensureToStringAllowed(            // line 255
(isset($context["contentNotice"]) || array_key_exists("contentNotice", $context) ? $context["contentNotice"] : (function () { throw new RuntimeError('Variable "contentNotice" does not exist.', 255, $this->source); })()), 255, $this->source), "role" => "status"])) : (""));
            // line 257
            yield "
                                            ";
            // line 258
            if ((isset($context["tabs"]) || array_key_exists("tabs", $context) ? $context["tabs"] : (function () { throw new RuntimeError('Variable "tabs" does not exist.', 258, $this->source); })())) {
                // line 259
                yield "                                                ";
                yield from $this->loadTemplate("_includes/tabs", "_layouts/cp", 259)->unwrap()->yield(CoreExtension::merge($context, ["containerAttributes" => ["id" => "tabs"]]));
                // line 264
                yield "                                            ";
            }
            // line 265
            yield "                                        </header>
                                    ";
        }
        // line 267
        yield "
                                    ";
        // line 268
        yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
        // line 271
        yield "
                                    ";
        // line 273
        yield "                                    ";
        if ((isset($context["footer"]) || array_key_exists("footer", $context) ? $context["footer"] : (function () { throw new RuntimeError('Variable "footer" does not exist.', 273, $this->source); })())) {
            // line 274
            yield "                                        <div id=\"footer\" class=\"flex flex-justify\">
                                            ";
            // line 275
            yield $this->sandbox->ensureToStringAllowed((isset($context["footer"]) || array_key_exists("footer", $context) ? $context["footer"] : (function () { throw new RuntimeError('Variable "footer" does not exist.', 275, $this->source); })()), 275, $this->source);
            yield "
                                        </div>
                                    ";
        }
        // line 278
        yield "                                </div>
                            ";
        craft\helpers\Template::endProfile("block", "main");
        yield from [];
    }

    // line 268
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("block", "content");
        // line 269
        yield "                                        ";
        yield ((array_key_exists("content", $context)) ? ($this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 269, $this->source); })()), 269, $this->source)) : (""));
        yield "
                                    ";
        craft\helpers\Template::endProfile("block", "content");
        yield from [];
    }

    // line 341
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_actionButton(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("block", "actionButton");
        // line 342
        yield "    ";
        if ((isset($context["fullPageForm"]) || array_key_exists("fullPageForm", $context) ? $context["fullPageForm"] : (function () { throw new RuntimeError('Variable "fullPageForm" does not exist.', 342, $this->source); })())) {
            // line 343
            yield "        <div class=\"btngroup\">
            ";
            // line 344
            yield from $this->unwrap()->yieldBlock('submitButton', $context, $blocks);
            // line 347
            yield "            ";
            if ((((array_key_exists("formActions", $context) &&  !(null === $context["formActions"]))) ? ($context["formActions"]) : (false))) {
                // line 348
                yield "                <button type=\"button\" class=\"btn submit menubtn\" aria-label=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("More actions", "app"), "html", null, true);
                yield "\"></button>
                ";
                // line 349
                yield from $this->loadTemplate("_layouts/components/form-action-menu", "_layouts/cp", 349)->unwrap()->yield($context);
                // line 350
                yield "            ";
            }
            // line 351
            yield "        </div>
    ";
        }
        craft\helpers\Template::endProfile("block", "actionButton");
        yield from [];
    }

    // line 344
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_submitButton(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        craft\helpers\Template::beginProfile("block", "submitButton");
        // line 345
        yield "                <button type=\"submit\" class=\"btn submit\">";
        yield (((array_key_exists("submitButtonLabel", $context) &&  !(null === $context["submitButtonLabel"]))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed($context["submitButtonLabel"], 345, $this->source), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['craft\web\twig\Extension']->translateFilter("Save", "app"), "html", null, true)));
        yield "</button>
            ";
        craft\helpers\Template::endProfile("block", "submitButton");
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "_layouts/cp";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  733 => 345,  725 => 344,  717 => 351,  714 => 350,  712 => 349,  707 => 348,  704 => 347,  702 => 344,  699 => 343,  696 => 342,  688 => 341,  679 => 269,  671 => 268,  664 => 278,  658 => 275,  655 => 274,  652 => 273,  649 => 271,  647 => 268,  644 => 267,  640 => 265,  637 => 264,  634 => 259,  632 => 258,  629 => 257,  627 => 255,  626 => 253,  623 => 252,  621 => 251,  618 => 250,  612 => 248,  609 => 247,  601 => 246,  595 => 207,  587 => 205,  584 => 204,  576 => 203,  570 => 221,  564 => 218,  560 => 217,  557 => 216,  554 => 215,  548 => 212,  545 => 211,  543 => 210,  537 => 208,  535 => 203,  528 => 202,  520 => 201,  507 => 194,  501 => 337,  493 => 331,  483 => 328,  480 => 327,  477 => 326,  475 => 325,  470 => 323,  465 => 321,  461 => 320,  457 => 319,  453 => 317,  451 => 316,  448 => 315,  442 => 311,  440 => 310,  439 => 309,  438 => 307,  436 => 305,  434 => 304,  430 => 303,  426 => 301,  424 => 300,  418 => 296,  415 => 294,  413 => 293,  409 => 291,  401 => 286,  396 => 283,  394 => 282,  390 => 280,  387 => 246,  383 => 244,  381 => 243,  378 => 242,  375 => 240,  368 => 236,  360 => 231,  356 => 229,  353 => 228,  349 => 226,  346 => 225,  341 => 222,  339 => 201,  335 => 199,  333 => 198,  330 => 197,  327 => 195,  323 => 194,  321 => 193,  316 => 191,  303 => 183,  295 => 177,  289 => 175,  287 => 174,  283 => 173,  280 => 172,  274 => 170,  272 => 169,  268 => 168,  260 => 163,  255 => 161,  251 => 160,  244 => 155,  238 => 151,  234 => 150,  230 => 149,  227 => 148,  225 => 147,  220 => 145,  217 => 144,  215 => 143,  211 => 141,  209 => 140,  204 => 137,  201 => 132,  193 => 131,  187 => 42,  182 => 358,  180 => 357,  178 => 356,  172 => 126,  170 => 125,  163 => 121,  160 => 120,  158 => 119,  156 => 117,  155 => 115,  154 => 114,  153 => 113,  152 => 112,  151 => 110,  150 => 109,  149 => 108,  148 => 107,  147 => 101,  145 => 99,  143 => 97,  142 => 94,  139 => 91,  137 => 90,  134 => 88,  132 => 87,  130 => 86,  128 => 85,  126 => 82,  125 => 81,  124 => 80,  122 => 78,  120 => 77,  118 => 76,  116 => 75,  114 => 74,  112 => 73,  110 => 72,  108 => 71,  106 => 70,  104 => 69,  102 => 68,  100 => 66,  98 => 65,  96 => 64,  94 => 63,  92 => 62,  90 => 60,  88 => 59,  83 => 55,  80 => 54,  76 => 52,  74 => 51,  71 => 50,  69 => 49,  64 => 48,  61 => 47,  59 => 46,  57 => 45,  49 => 42,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{#
┌────────────────────────────────────────────────────────────────────────────────────┐
│                                 #global-container                                  │
│   ┌─────┐   ┌──────────────────────────────────────────────────────────────────┐   │
│   │     │   │                         #page-container                          │   │
│   │     │   │   ┌──────────────────────────────────────────────────────────┐   │   │
│   │     │   │   │                      #global-header                      │   │   │
│   │     │   │   └──────────────────────────────────────────────────────────┘   │   │
│   │     │   │                                                                  │   │
│   │     │   │   ┌──────────────────────────────────────────────────────────┐   │   │
│   │     │   │   │                          #main                           │   │   │
│   │  #  │   │   │   ┌──────────────────────────────────────────────────┐   │   │   │
│   │  g  │   │   │   │                #header-container                 │   │   │   │
│   │  l  │   │   │   └──────────────────────────────────────────────────┘   │   │   │
│   │  o  │   │   │                                                          │   │   │
│   │  b  │   │   │   ┌──────────────────────────────────────────────────┐   │   │   │
│   │  a  │   │   │   │                  #main-content                   │   │   │   │
│   │  l  │   │   │   │   ┌─────┐   ┌──────────────────────┐   ┌─────┐   │   │   │   │
│   │  -  │   │   │   │   │     │   │                      │   │     │   │   │   │   │
│   │  s  │   │   │   │   │  #  │   │                      │   │  #  │   │   │   │   │
│   │  i  │   │   │   │   │  s  │   │                      │   │  d  │   │   │   │   │
│   │  d  │   │   │   │   │  i  │   │                      │   │  e  │   │   │   │   │
│   │  e  │   │   │   │   │  d  │   │       #content       │   │  t  │   │   │   │   │
│   │  b  │   │   │   │   │  e  │   │                      │   │  a  │   │   │   │   │
│   │  a  │   │   │   │   │  b  │   │                      │   │  i  │   │   │   │   │
│   │  r  │   │   │   │   │  a  │   │                      │   │  l  │   │   │   │   │
│   │     │   │   │   │   │  r  │   │                      │   │  s  │   │   │   │   │
│   │     │   │   │   │   │     │   │                      │   │     │   │   │   │   │
│   │     │   │   │   │   └─────┘   └──────────────────────┘   └─────┘   │   │   │   │
│   │     │   │   │   │                                                  │   │   │   │
│   │     │   │   │   └──────────────────────────────────────────────────┘   │   │   │
│   │     │   │   │                                                          │   │   │
│   │     │   │   └──────────────────────────────────────────────────────────┘   │   │
│   │     │   │   ┌──────────────────────────────────────────────────────────┐   │   │
│   │     │   │   │                      #global-footer                      │   │   │
│   │     │   │   └──────────────────────────────────────────────────────────┘   │   │
│   └─────┘   └──────────────────────────────────────────────────────────────────┘   │
│                                                                                    │
└────────────────────────────────────────────────────────────────────────────────────┘
#}

{% extends '_layouts/basecp.twig' %}

{# The control panel only supports queue components that implement QueueInterface #}
{% set queue = craft.app.queue %}
{% js %}
    {% if queue is instance of(\"craft\\\\queue\\\\QueueInterface\") %}
        Craft.cp.setJobInfo({{ queue.getJobInfo(100)|json_encode|raw }}, false);
        {% if queue.getHasReservedJobs() %}
            Craft.cp.trackJobProgress(true);
        {% elseif queue.getHasWaitingJobs() %}
            Craft.cp.runQueue();
        {% endif %}
    {% else %}
        Craft.cp.enableQueue = false;
    {% endif %}
{% endjs %}

{% set hasSystemIcon = CraftEdition == CraftPro and craft.rebrand.isIconUploaded %}
{% set fullPageForm = (fullPageForm is defined and fullPageForm) %}

{% set editionName = craft.app.getEditionName() %}
{% set canUpgradeEdition = craft.app.getCanUpgradeEdition() %}
{% set licensedEdition = craft.app.getLicensedEdition() %}
{% set isTrial = licensedEdition is not same as(null) and licensedEdition is not same as(CraftEdition) %}
{% set trialInfo = craft.cp.trialInfo() %}

{% set contentNotice = (contentNotice ?? block('contentNotice') ?? '')|trim %}
{% set sidebar = (sidebar ?? block('sidebar') ?? '')|trim %}
{% set contextMenu = (contextMenu ?? block('contextMenu') ?? '')|trim %}
{% set toolbar = (toolbar ?? block('toolbar') ?? '')|trim %}
{% set actionButton = (block('actionButton') ?? '')|trim %}
{% set additionalButtons = additionalButtons ?? null %}
{% set details = (details ?? block('details') ?? '')|trim %}
{% set footer = (footer ?? block('footer') ?? '')|trim %}
{% set crumbs = crumbs ?? null %}
{% set tabs = (tabs ?? [])|length > 1 ? tabs : null %}
{% set errorSummary = errorSummary ?? null %}

{% set mainContentClasses = [
    sidebar ? 'has-sidebar',
    details ? 'has-details',
]|filter %}

{% set bodyClass = (bodyClass ?? [])|explodeClass %}
{% set showHeader = showHeader ?? true %}
{% if not showHeader %}
    {% set bodyClass = bodyClass|push('no-header') -%}
{% endif %}
{% if craft.app.hasModule('debug') %}
    {% set bodyClass = bodyClass|push('has-debug-toolbar') %}
{% endif %}

{% set mainAttributes = {
    id: 'main',
    role: 'main',
}|merge(mainAttributes ?? []) %}

{% set formActions = craft.cp.prepFormActions(formActions ?? null) %}

{% set mainFormAttributes = {
    id: 'main-form',
    method: 'post',
    'accept-charset': 'UTF-8',
    novalidate: true,
    data: {
        saveshortcut: saveShortcut ?? true,
        'saveshortcut-redirect': (saveShortcutRedirect ?? false) ? saveShortcutRedirect|hash : false,
        'saveshortcut-scroll': retainScrollOnSaveShortcut ?? false,
        actions: formActions ?? false,
        'confirm-unload': true,
        delta: view.getIsDeltaRegistrationActive(),
        'delta-names': view.getDeltaNames(),
        'initial-delta-values': view.getInitialDeltaValues(),
        'modified-delta-names': view.getModifiedDeltaNames()|merge(craft.app.request.getBodyParam('modifiedDeltaNames') ?? [])|unique|values,
    },
}|merge(mainFormAttributes ?? [], recursive=true) %}

{% set userPhoto %}
    <div class=\"header-photo\">
        {{ currentUser.getThumbHtml(30)|raw }}
    </div>
{% endset %}

{% js at head %}
    // Remove the hash so the browser doesn't scroll to it
    window.LOCATION_HASH = document.location.hash ? decodeURIComponent(document.location.hash.substr(1)) : null;
    history.replaceState(undefined, undefined, window.location.href.match(/^[^#]*/)[0]);
{% endjs %}

{% block body %}
    {{ tag ('a', {
        id: 'global-skip-link',
        text: 'Skip to content'|t('app'),
        href: '#main',
        class: 'skip-link btn',
    }) }}

    <div id=\"global-container\">
        {% include '_layouts/components/global-sidebar' %}

        <div id=\"page-container\">
            {% include '_layouts/components/alerts' %}

            <div id=\"global-header\" role=\"region\" aria-label=\"{{ 'My Account'|t('app') }}\">
                <div class=\"flex\">
                    {% include '_layouts/components/crumbs' %}
                    <div class=\"flex-grow\"></div>
                    <button type=\"button\" id=\"announcements-btn\" class=\"btn hidden\" title=\"{{ 'What’s New'|t('app') }}\">
                        <span class=\"visually-hidden\">{{ 'What’s New'|t('app') }}</span>
                        {{ svg('@app/icons/gift.svg') }}
                    </button>

                    {# New account dropdown #}
                    <div class=\"account-toggle-wrapper\">
                        <button
                            id=\"user-info\"
                            aria-controls=\"account-menu\"
                            class=\"btn menu-toggle\"
                            aria-label=\"{{ 'My Account'|t('app') }}\"
                            title=\"{{ 'My Account'|t('app') }}\"
                            data-disclosure-trigger>
                            {{ userPhoto }}
                        </button>
                        <div id=\"account-menu\" class=\"menu menu--disclosure\" data-align=\"right\" data-align-to=\".header-photo\">
                            <ul>
                                <li>
                                    <a href=\"{{ url('myaccount') }}\" class=\"flex flex-nowrap\">
                                        {% if currentUser.photoId %}
                                            {{ userPhoto }}
                                        {% endif %}
                                        <div class=\"flex-grow\">
                                            <div>{{ currentUser.username }}</div>
                                            {% if not craft.app.config.general.useEmailAsUsername %}
                                                <div class=\"smalltext\">{{ currentUser.email }}</div>
                                            {% endif %}
                                        </div>
                                    </a>
                                </li>
                            </ul>
                            <hr>
                            <ul>
                                <li><a href=\"{{ url('logout') }}\">{{ \"Sign out\"|t('app') }}</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <div id=\"main-container\">
                <main {{ attr(mainAttributes) }}>

                    {% if fullPageForm -%}
                        <form {% block mainFormAttributes %}{{ attr(mainFormAttributes) }}{% endblock %}>
                            {{- csrfInput() }}
                    {%- endif %}

                    {% if showHeader %}
                        <div id=\"header-container\">
                            <header id=\"header\">
                                {% block header %}
                                    <div id=\"page-title\" class=\"flex{% if toolbar %} has-toolbar{% endif %}\">
                                        {% block pageTitle %}
                                            {% if title is defined and title|length %}
                                                <h1 class=\"screen-title\" title=\"{{ title }}\">{{ title }}</h1>
                                            {% endif %}
                                        {% endblock %}
                                        {{ contextMenu|raw }}
                                    </div>
                                    {% if toolbar %}
                                        <div id=\"toolbar\" class=\"flex\">
                                            {{ toolbar|raw }}
                                        </div>
                                    {% endif %}
                                    {% if actionButton or additionalButtons %}
                                        <div id=\"action-buttons\" class=\"flex\">
                                            {{ additionalButtons|raw }}
                                            {{ actionButton|raw }}
                                        </div>
                                    {% endif %}
                                {% endblock %}
                            </header><!-- #header -->
                        </div>
                    {% endif %}

                    <div id=\"main-content\" class=\"{{ mainContentClasses|join(' ') }}\">
                        {# sidebar #}
                        {% if sidebar %}
                            <div id=\"sidebar-toggle-container\">
                                <button type=\"button\" id=\"sidebar-toggle\" class=\"btn menubtn\" aria-controls=\"sidebar-container\" aria-expanded=\"false\">
                                    {{ 'Show sidebar'|t('app') }}
                                </button>
                            </div>
                            <div id=\"sidebar-container\">
                                <div id=\"sidebar\" class=\"sidebar\">
                                    {{ sidebar|raw }}
                                </div>
                            </div>
                        {% endif %}

                        {# content-container #}
                        <div id=\"content-container\">
                            {% if sidebar %}
                                <h2 id=\"content-heading\"></h2>
                            {% endif %}
                            {% block main %}
                                {% if errorSummary is not empty %}
                                    {{ errorSummary is defined ? errorSummary|raw }}
                                {% endif %}
                                <div id=\"content\" class=\"content-pane\">
                                    {% if contentNotice or tabs %}
                                        <header id=\"content-header\" class=\"pane-header\">
                                            {{ contentNotice ? tag('div', {
                                                id: 'content-notice',
                                                html: contentNotice,
                                                role: 'status',
                                            }) }}
                                            {% if tabs %}
                                                {% include \"_includes/tabs\" with {
                                                    containerAttributes: {
                                                        id: 'tabs',
                                                    },
                                                } %}
                                            {% endif %}
                                        </header>
                                    {% endif %}

                                    {% block content %}
                                        {{ content is defined ? content|raw }}
                                    {% endblock %}

                                    {# footer #}
                                    {% if footer %}
                                        <div id=\"footer\" class=\"flex flex-justify\">
                                            {{ footer|raw }}
                                        </div>
                                    {% endif %}
                                </div>
                            {% endblock %}
                        </div><!-- #content-container -->

                        {% if details is not empty %}
                            <div id=\"details-container\">
                                <div id=\"details\">
                                    <div class=\"details\">
                                        {{ details|raw }}
                                    </div>
                                </div>
                            </div>
                        {% endif %}
                    </div><!-- #main-content -->

                    {% if fullPageForm -%}
                        </form><!-- #main-form -->
                    {%- endif %}
                </main><!-- #main -->
            </div><!-- #main-container -->

            <footer id=\"global-footer\">
                {% if trialInfo %}
                    <div id=\"trial-info\" class=\"readable\">
                        <span>
                            {{ trialInfo.message }}
                            {% set linkText = 'Buy now'|t('app') %}
                            {{ tag('a', {
                                class: 'go',
                                href: trialInfo.cartUrl,
                                target: '_blank',
                                text: linkText,
                                aria: {label: linkText},
                            }) }}
                        </span>
                    </div>
                {% endif %}
                <div id=\"app-info\">
                    {% set fullEditionName = '{edition} edition'|t('app', {edition: editionName}) %}
                    <span>
                        Craft CMS
                        <span id=\"edition-logo\" title=\"{{ fullEditionName }}\">
                            <span aria-hidden=\"true\">{{ editionName }}</span>
                            <span class=\"visually-hidden\">{{ fullEditionName }}</span>
                        </span>
                        {{ craft.app.version }}
                    </span>
                    {% if canUpgradeEdition and not isTrial %}
                        {% set linkText = 'Upgrade to Craft Pro'|t('app') %}
                        <span>
                            <a class=\"go\" href=\"{{ url('plugin-store/upgrade-craft') }}\" aria-label=\"{{ linkText }}\">{{ linkText }}</a>
                        </span>
                    {% endif %}
                </div>
            </footer>

        </div><!-- #page-container -->
    </div><!-- #global-container -->

    {% include '_layouts/components/notifications' %}
{% endblock %}


{% block actionButton %}
    {% if fullPageForm %}
        <div class=\"btngroup\">
            {% block submitButton %}
                <button type=\"submit\" class=\"btn submit\">{{ submitButtonLabel ?? 'Save'|t('app') }}</button>
            {% endblock %}
            {% if formActions ?? false %}
                <button type=\"button\" class=\"btn submit menubtn\" aria-label=\"{{ 'More actions'|t('app') }}\"></button>
                {% include '_layouts/components/form-action-menu' %}
            {% endif %}
        </div>
    {% endif %}
{% endblock %}


{% if currentUser.can('performUpdates') and not craft.app.updates.getIsUpdateInfoCached() %}
    {% js %}
        Craft.cp.checkForUpdates();
    {% endjs %}
{% endif %}
", "_layouts/cp", "/Users/nodata/nodata.local/_controlnocontrol/sites/hjhs.ca/www/craft/vendor/craftcms/cms/src/templates/_layouts/cp.twig");
    }
    
    public function checkSecurity()
    {
        static $tags = ["extends" => 42, "set" => 45, "js" => 46, "if" => 47, "include" => 140, "block" => 194];
        static $filters = ["raw" => 48, "json_encode" => 48, "trim" => 68, "length" => 77, "filter" => 83, "explodeClass" => 85, "push" => 88, "merge" => 97, "hash" => 108, "values" => 115, "unique" => 115, "t" => 134, "escape" => 145, "join" => 226];
        static $functions = ["tag" => 132, "svg" => 151, "url" => 168, "attr" => 191, "csrfInput" => 195];

        try {
            $this->sandbox->checkSecurity(
                ['extends', 'set', 'js', 'if', 'include', 'block'],
                ['raw', 'json_encode', 'trim', 'length', 'filter', 'explodeClass', 'push', 'merge', 'hash', 'values', 'unique', 't', 'escape', 'join'],
                ['tag', 'svg', 'url', 'attr', 'csrfInput'],
                $this->source
            );
        } catch (SecurityError $e) {
            $e->setSourceContext($this->source);

            if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
                $e->setTemplateLine($tags[$e->getTagName()]);
            } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
                $e->setTemplateLine($filters[$e->getFilterName()]);
            } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
                $e->setTemplateLine($functions[$e->getFunctionName()]);
            }

            throw $e;
        }

    }
}
