<?php
namespace Claromentis\Pages\Search;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] ?: array()) + array("_38f12d8b8c719a8ce0fc2fa" . "efc225f35" => base64_decode("YXJyYX" . "lfbWFw"), "permissio" . "ns" => base64_decode("cGVybWlzc2lvbnM" . "="), "_900d48ade8c2df" . "0520b76de5ee405" . "224" => base64_decode("dGVy" . "bXM="), "_0ea4e32b5" . "7963ac0cb3" . "057e03e9ae" . "f64" => base64_decode("aW" . "Q="), "_fa0ea3ff84d" . "62d9eb5c8e21" . "5ce912e57" => base64_decode("YW" . "5k"), "sit" . "e_i" . "d" => base64_decode("c2l0ZV9p" . "ZA=="));
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["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_38f12d8b8c71" . "9a8ce0fc2faef" . "c225f35"](function ($_ee62014f4ef50dbe8eb79b2406d87bc7) {
            return (int) $_ee62014f4ef50dbe8eb79b2406d87bc7[$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_0ea4e32b57963ac0cb3" . "057e03e9aef64"]];
        }, $_51eb8d304f1b856099fee3bf5919ddde);
        if (empty($_f28dfcddcb05d5e582117d555450bd0c)) {
            $_f28dfcddcb05d5e582117d555450bd0c[] = -1;
        }
        $permissions = new Search\Permissions();
        return [$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_fa0ea3ff84d" . "62d9eb5c8e21" . "5ce912e57"] => [$permissions->GetSearchFilter($context, $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["per" . "mis" . "sio" . "ns"]), [$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_900d48a" . "de8c2df0" . "520b76de" . "5ee40522" . "4"] => [$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["site" . "_id"] => $_f28dfcddcb05d5e582117d555450bd0c]]]];
    }
    
    
    
    
    public function GetView()
    {
        return new PageView();
    }
}