<?php
namespace Claromentis\Pages;

$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"] ?: array()) + array("_0c5123aa" . "744f69bbc" . "0e8b3ea2f" . "6e847d" => base64_decode("bG1" . "zZw" . "=="), "_c7f3ceda949652da65e3d6736814f3" . "b6" => base64_decode("cGFnZXMuc2l0ZS5uZXdfcGFnZS52aWV3X3Bh" . "Z2U="), "_5929ea1d57f2496f8a" . "94990f5f325ef2" => base64_decode("cGFnZXMuc2l0ZS5uZXdfcGFnZS5" . "hZGRfZWRpdF9wYWdl"), "_e9ab79f3b5f" . "b3a24caaaa48" . "daf232d2b" => base64_decode("cGFnZXMuc2l0Z" . "V9wZXJtcy5lZG" . "l0X2RlbGV0ZV9" . "zaXRl"), "_8039f9bc4d75e9f073e5edf" . "a79bac87a" => base64_decode("cGFnZXMuc2l0ZV9" . "wZXJtcy5lZGl0X3" . "BhZ2VzX2FuZF9tZ" . "W51"), "_5d03c28c0d78527455" . "4557798802f704" => base64_decode("cGFnZXMuc2l0ZV" . "9wZXJtcy52aWV3"));
use Claromentis\Core\Acl\Acl;
use Claromentis\Core\Acl\CommonPermsDialog;
class Perm
{
    const CLASS_SITES_ADMIN = 126;
    const CLASS_SITE = 132;
    const CLASS_PAGE = 144;
    
    
    const ADD_SITES = 1;
    const MANAGE_DELETED = 2;
    
    
    
    
    
    
    const SITE_MANAGE = 1;
    
    
    
    
    
    
    
    
    
    
    
    const CREATE_SITE_DUMMY_PAGE_VIEW = 1 << 5;
    
    
    
    
    
    
    
    
    
    
    
    
    
    const CREATE_SITE_DUMMY_PAGE_EDIT = 1 << 6 | self::CREATE_SITE_DUMMY_PAGE_VIEW;
    
    
    
    
    
    
    
    
    
    
    
    
    
    const CREATE_SITE_DUMMY_MANAGE_PERMS = 1 << 7 | self::CREATE_SITE_DUMMY_PAGE_EDIT;
    const PAGE_VIEW = 0b1;
    const PAGE_EDIT = 0b11;
    const AGGREGATION_PAGES_PAGE = 145;
    const AGGREGATION_PAGES_SITE = 157;
    public static function GetPermsDialog(Acl $acl, $_4ee3907523133cd2ed974ec6dbaea6ff = true)
    {
        $_f81196ce31aa53103a8109719a888904 = new CommonPermsDialog($acl);
        $_f81196ce31aa53103a8109719a888904->SetAllPermValues(self::GetAllPermValues($_4ee3907523133cd2ed974ec6dbaea6ff));
        return $_f81196ce31aa53103a8109719a888904;
    }
    public static function GetAllPermValues($_4ee3907523133cd2ed974ec6dbaea6ff)
    {
        if ($_4ee3907523133cd2ed974ec6dbaea6ff) {
            $_9fd85aef6d2208396347da1ebd9ed719 = [self::CREATE_SITE_DUMMY_PAGE_VIEW => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_0c5123aa744f69bbc0e8b3ea2f6" . "e847d"]($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_5d03c28c0d7852745545577988" . "02f704"]), true], self::CREATE_SITE_DUMMY_PAGE_EDIT => [$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_0c5123aa744f69bbc0e8" . "b3ea2f6e847d"]($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_8039f9bc4" . "d75e9f073e" . "5edfa79bac" . "87a"]), true], self::CREATE_SITE_DUMMY_MANAGE_PERMS => [$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_0c5123aa744f69bbc0e8b3ea2f6" . "e847d"]($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_e9ab79f3b" . "5fb3a24caa" . "aa48daf232" . "d2b"]), true]];
        } else {
            $_9fd85aef6d2208396347da1ebd9ed719 = [self::SITE_MANAGE => [$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_0c5123aa744f6" . "9bbc0e8b3ea2f6" . "e847d"]($GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_c7f3ceda949652da65e3" . "d6736814f3b6"]), true]];
        }
        return $_9fd85aef6d2208396347da1ebd9ed719;
    }
    public static function GetPagePermsDialog(Acl $acl)
    {
        $_f81196ce31aa53103a8109719a888904 = new CommonPermsDialog($acl);
        $_f81196ce31aa53103a8109719a888904->SetAllPermValues(self::GetPagePermValues());
        return $_f81196ce31aa53103a8109719a888904;
    }
    public static function GetPagePermValues()
    {
        return [self::PAGE_VIEW => [$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_0c5123aa7" . "44f69bbc0e" . "8b3ea2f6e8" . "47d"]($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_c7f3ceda949652da65e3d6" . "736814f3b6"]), true], self::PAGE_EDIT => [$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_0c5123aa744f69bbc0e8b3ea2" . "f6e847d"]($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_5929ea1d57f24" . "96f8a94990f5f3" . "25ef2"]), true]];
    }
}