<?php
namespace Claromentis\Pages\Search;

$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"] ?: array()) + array("site_i" . "d" => base64_decode("c2l0ZV9p" . "ZA=="), "_900d48ade8c2df0520b76" . "de5ee405224" => base64_decode("dGVybX" . "M="), "permiss" . "ions" => base64_decode("cGVybWlzc2l" . "vbnM="), "_0ea4e32" . "b57963ac" . "0cb3057e" . "03e9aef6" . "4" => base64_decode("aWQ" . "="), "_38f12d8b8c719a8ce0fc" . "2faefc225f35" => base64_decode("YXJ" . "yYX" . "lfb" . "WFw"), "_fa0ea3ff84d62d9eb5" . "c8e215ce912e57" => base64_decode("YW5" . "k"));
use Claromentis\Core\Security\SecurityContext;
use Claromentis\Pages\Search\Indexing\PageIndexing;
use Claromentis\Pages\Search\View\PageView;
use Claromentis\Pages\UseCase\GetSitesList;
use Claromentis\Search\GlobalSearchItemInterface;
use Claromentis\Search;




class PageSearchItem implements GlobalSearchItemInterface
{
    protected $sites_list;
    public function __construct(GetSitesList $_9675db24b3e3ec210c7d101527da6943)
    {
        $this->sites_list = $_9675db24b3e3ec210c7d101527da6943;
    }
    
    
    
    
    public function GetIndexingObject()
    {
        return new PageIndexing();
    }
    
    
    
    
    
    
    public function GetPermissionsSearchFilter(SecurityContext $context)
    {
        $_51eb8d304f1b856099fee3bf5919ddde = $this->sites_list->GetPlainList($context);
        $_f28dfcddcb05d5e582117d555450bd0c = $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_38f12d8b8c719a8ce0fc2" . "faefc225f35"](function ($_ee62014f4ef50dbe8eb79b2406d87bc7) {
            return (int) $_ee62014f4ef50dbe8eb79b2406d87bc7[$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_0ea4e32b57963ac0cb3057e03e9aef" . "64"]];
        }, $_51eb8d304f1b856099fee3bf5919ddde);
        if (empty($_f28dfcddcb05d5e582117d555450bd0c)) {
            $_f28dfcddcb05d5e582117d555450bd0c[] = -1;
        }
        $permissions = new Search\Permissions();
        return [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_fa0ea3ff84d62d9eb5c8" . "e215ce912e57"] => [$permissions->GetSearchFilter($context, $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["per" . "mis" . "sio" . "ns"]), [$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_900d48ade8c2" . "df0520b76de5e" . "e405224"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["site_i" . "d"] => $_f28dfcddcb05d5e582117d555450bd0c]]]];
    }
    
    
    
    
    public function GetView()
    {
        return new PageView();
    }
}