<?php
namespace Claromentis\Gallery\Search;

$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] ?: array()) + array("perm" . "s" => base64_decode("cGV" . "ybX" . "M="), "_df945ac2" . "fbdd15762" . "02fb48096" . "eb43f9" => base64_decode("YWRtaW4ucGFuZW" . "xzX2xpc3Q="), "_61a5ceb347019e37116d4" . "d2907163b82" => base64_decode("bWF0" . "Y2hf" . "YWxs"), "_c61345ccedc39c1977427766275e2d" . "a6" => base64_decode("aW1hZ2VfZ2F" . "sbGVyeQ=="));
use Claromentis\Core\Admin\AdminPanel;
use Claromentis\Core\Security\SecurityContext;
use Claromentis\Core\Services;
use Claromentis\Search\GlobalSearchItemInterface;
use Claromentis\Search\Permissions as SearchPermissions;





class GallerySearchImage implements GlobalSearchItemInterface
{
    
    
    
    
    public function GetIndexingObject()
    {
        return new Indexing\ImageIndexing();
    }
    
    
    
    
    
    
    public function GetPermissionsSearchFilter(SecurityContext $context)
    {
        $_9d8a16b274aa2655326eee6fb9000c83 = new SearchPermissions();
        
        
        $_9c58d9e285fddad133acf2e9dff4c4b5 = Services::I()->{$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_df945ac2fbdd15" . "76202fb48096eb4" . "3f9"]}->GetOne($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_c61345cce" . "dc39c19774" . "27766275e2" . "da6"]);
        if (!$_9c58d9e285fddad133acf2e9dff4c4b5->IsAccessible($context)) {
            return $_9d8a16b274aa2655326eee6fb9000c83->GetSearchFilter($context, $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["perm" . "s"]);
        } else {
            return [$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_61a5ceb347" . "019e37116d4" . "d2907163b82"] => new \stdClass()];
        }
    }
    
    
    
    
    public function GetView()
    {
        return new View\ImageView();
    }
}