<?php
namespace Claromentis\Pages;

$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] ?: array()) + array("_e9ab79f3b5fb3a24caaaa48daf2" . "32d2b" => base64_decode("cGFnZXMuc2l0ZV9wZXJ" . "tcy5lZGl0X2RlbGV0ZV" . "9zaXRl"), "_5929ea1d57f2" . "496f8a94990f5" . "f325ef2" => base64_decode("cGFnZXMuc2l0ZS5" . "uZXdfcGFnZS5hZG" . "RfZWRpdF9wYWdl"), "_8039f9bc4d75e9f073e5edfa79bac87" . "a" => base64_decode("cGFnZXMuc2l0ZV9wZXJtcy5lZGl0X3BhZ2VzX2FuZF9tZW" . "51"), "_0c5123aa74" . "4f69bbc0e8b" . "3ea2f6e847d" => base64_decode("bG1zZw=" . "="), "_c7f3ceda949652da65e3d" . "6736814f3b6" => base64_decode("cGFnZXMuc2l0ZS5uZ" . "XdfcGFnZS52aWV3X3" . "BhZ2U="), "_5d03c28c0d785" . "27455455779880" . "2f704" => base64_decode("cGFnZXMuc2l0ZV9wZX" . "Jtcy52aWV3"));
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["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_0c5123aa7" . "44f69bbc0e" . "8b3ea2f6e8" . "47d"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_5d03c28c" . "0d7852745" . "545577988" . "02f704"]), true], self::CREATE_SITE_DUMMY_PAGE_EDIT => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_0c5123aa744f69bbc0e8" . "b3ea2f6e847d"]($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_8039f9bc4d75e9" . "f073e5edfa79bac" . "87a"]), true], self::CREATE_SITE_DUMMY_MANAGE_PERMS => [$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_0c5123aa744f69bbc0e8b3ea2f6e" . "847d"]($GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_e9ab79f3b5fb3a24caaaa48" . "daf232d2b"]), true]];
        } else {
            $_9fd85aef6d2208396347da1ebd9ed719 = [self::SITE_MANAGE => [$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_0c5123aa7" . "44f69bbc0e" . "8b3ea2f6e8" . "47d"]($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_c7f3ceda949652da65e3d673" . "6814f3b6"]), 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["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_0c5123aa744f69bbc" . "0e8b3ea2f6e847d"]($GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_c7f3ceda949652da65e3d6736814f3b" . "6"]), true], self::PAGE_EDIT => [$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_0c5123aa744f69bb" . "c0e8b3ea2f6e847d"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_5929ea1d57f" . "2496f8a94990" . "f5f325ef2"]), true]];
    }
}