<?php
namespace Claromentis\Design;

$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"] ?: array()) + array("_7fc1dcd1" . "7591f5760" . "c8b4b23ed" . "4f981e" => base64_decode("Y29tcGFueV9tZW51X3Zpc2libGUu" . "dmlzaWJsZQ=="), "_4d79d44b7a8217013cb70b23a25" . "4cc79" => base64_decode("YXBwX21l" . "bnUudmlz" . "aWJsZQ=="), "_4b3fee4ee52efa" . "62fe412808a244b" . "ead" => base64_decode("bm90aWZpY2F0aW9ucy5" . "2aXNpYmxl"), "_3db10d23ab5d768e798e3d5fa0b0" . "86f1" => base64_decode("T25Q" . "cmVS" . "ZW5k" . "ZXI="), "_4d707fab93bebb00bbe69e81" . "59697c90" => base64_decode(""), "_558bcd13d90c5f63f67dd3a35b2a" . "7618" => base64_decode("bG9nZ2Vkb24udmlzaWJ" . "sZQ=="), "_2a7414cd6122c511fae7ca6" . "6f41d3c4c" => base64_decode("IGZ1bGwtd2lkdG" . "gtbW9kZQ=="), "_c97b8f6208a8a880" . "d32a9c5dc432f339" => base64_decode("Ym9keS" . "1ibG9j" . "ay4rY2" . "xhc3M="), "_0adc09a1437" . "993d310755e9" . "f081c6656" => base64_decode("IGRlc2t0b3Atc2lkZXZpZXc" . "="), "_f73dab6" . "06630b38" . "8645c4f7" . "d3fbb13b" . "b" => base64_decode("YXJyYXlfbWVyZ" . "2U="), "_663782e22187d2d5641e01476bbea" . "634" => base64_decode("cGVyc29uYWxfbG" . "lua3MudmlzaWJs" . "ZQ=="), "_65f218e55" . "c32b98164a" . "ee692d36be" . "e59" => base64_decode("Y2FsZW5k" . "YXIudmlz" . "aWJsZQ=="));
use Claromentis\Core\Templater\Events\TemplaterPreRenderEvent;
use Claromentis\Core\Templater\TemplaterEvents;
use Claromentis\Design\Facade\ActiveTheme;
use Claromentis\Design\Style\Option;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class DesignTemplateSubscriber implements EventSubscriberInterface
{
    
    
    
    
    protected $active_theme;
    
    
    
    
    protected $cached_args;
    
    
    
    
    
    
    public function __construct(ActiveTheme $active_theme)
    {
        $this->active_theme = $active_theme;
        $this->cached_args = [];
        
        
        $options = $this->active_theme->GetThemeStyle();
        
        
        $_82c150899d0ff3a75d65dc1b20f5d18c = $options->Get(Option::USE_MOBILE_MENU);
        $_eb12f6de56a96661f0c94fd3f9a52a82 = $options->Get(Option::PAGE_WIDTH_OPTION);
        
        
        
        
        $_f2d5a016fc1f003a9a6e4bb64d574c7f = $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_4d707fab93bebb00bbe6" . "9e8159697c90"];
        
        
        if ($_82c150899d0ff3a75d65dc1b20f5d18c) {
            $_f2d5a016fc1f003a9a6e4bb64d574c7f .= $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_0adc09a1437993d31075" . "5e9f081c6656"];
        }
        
        
        if ($_eb12f6de56a96661f0c94fd3f9a52a82) {
            $_f2d5a016fc1f003a9a6e4bb64d574c7f .= $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_2a7414cd6122c511fae7ca66f41d3" . "c4c"];
        }
        
        
        $this->cached_args[$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_c97b8f6208a8a880d32a9c5" . "dc432f339"]] = $_f2d5a016fc1f003a9a6e4bb64d574c7f;
        
        
        if (!$options->Get(Option::USE_PEOPLE_LOGGED_IN_ICON)) {
            $this->cached_args[$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_558bcd13d90c5f63f6" . "7dd3a35b2a7618"]] = 0;
        }
        if (!$options->Get(Option::USE_NOTIFICATIONS_ICON)) {
            $this->cached_args[$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_4b3fee4ee52efa62fe412808a244be" . "ad"]] = 0;
        }
        if (!$options->Get(Option::USE_APPS_ICON)) {
            $this->cached_args[$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_4d79d44b7a8217" . "013cb70b23a254c" . "c79"]] = 0;
        }
        if (!$options->Get(Option::USE_PERSONAL_LINKS_ICON)) {
            $this->cached_args[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_663782e22187d2d5641" . "e01476bbea634"]] = 0;
        }
        if (!$options->Get(Option::USE_CALENDAR_ICON)) {
            $this->cached_args[$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_65f218e55c32b98164aee69" . "2d36bee59"]] = 0;
        }
        if (!$options->Get(Option::USE_COMPANY_LINKS_ICON)) {
            $this->cached_args[$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_7fc1dcd17591f5760c8b4b23ed4f9" . "81e"]] = 0;
        }
    }
    public static function getSubscribedEvents()
    {
        return [TemplaterEvents::PRE_RENDER => $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_3db10d23ab5d768e798e3d5fa0" . "b086f1"]];
    }
    
    
    
    
    
    
    
    public function OnPreRender(TemplaterPreRenderEvent $event)
    {
        $args = $event->GetArgs();
        $args = $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_f73dab606630b388645c4f7d" . "3fbb13bb"]($args, $this->cached_args);
        $event->SetArgs($args);
    }
}