<?php
namespace Claromentis\Search\EmptySearch\Controller;

$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"] ?: array()) + array("a" . "r" . "g" . "s" => base64_decode("YXJncw=" . "="), "_710c30951b1d25264ab976f79d2" . "0c035" => base64_decode("U2VhcmNoIHRlcm1zIHRoYXQgY" . "nJvdWdodCBiYWNrIDAgcmVzdW" . "x0cw=="), "_922f99bce60cdb06d2d685103c" . "7c73bb" => base64_decode("c2VhcmNoL2FkbWluL2FkbWluX2VtcHR5X3NlYXJjaC5odG1" . "s"), "select" . "ed" => base64_decode("c2VsZWN0" . "ZWQ="), "_3a57cab1f" . "b6c52741b4" . "1e3a7b0034" . "eb6" => base64_decode("ZG9fZGVsZ" . "XRl"), "_678d9452" . "58a520c3d" . "f1c42fe4b" . "558f34" => base64_decode("cGFnZV90aXRs" . "ZQ=="), "_d706c16" . "0e45bf74" . "34fff82a" . "5976f0e1" . "9" => base64_decode("YXJyYXlfa2" . "V5cw=="), "temp" . "late" => base64_decode("dGVtcGxhdG" . "U="), "_d5e3acfe493fa2111d22d" . "fb93da33d87" => base64_decode("X18" . "="));
use Claromentis\Search\EmptySearch\Repository\EmptySearchRepository;
use Psr\Http\Message\ServerRequestInterface;




class AdminEmptySearchController
{
    
    
    
    
    protected $result = array();
    
    
    
    
    protected $repository;
    
    
    
    
    
    
    public function __construct(EmptySearchRepository $repository)
    {
        $this->result = array($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["a" . "r" . "g" . "s"] => [], $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_678d945258a520c" . "3df1c42fe4b558f3" . "4"] => $GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_d5e3acfe493fa2111d22dfb9" . "3da33d87"]($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_710c30951b1d25264ab976f79d20c03" . "5"]), $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["templat" . "e"] => $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_922f99bce60cdb06d2d685103" . "c7c73bb"]);
        $this->repository = $repository;
    }
    
    
    
    
    
    
    public function OnSubmit(ServerRequestInterface $request)
    {
        $_f5e7e0ebc01028d482c363ba9b7c36b4 = $request->getParsedBody();
        if (isset($_f5e7e0ebc01028d482c363ba9b7c36b4[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_3a57cab1fb6c52741" . "b41e3a7b0034eb6"]]) && isset($_f5e7e0ebc01028d482c363ba9b7c36b4[$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["select" . "ed"]])) {
            $selected = $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_d706c160e45bf7434fff82a5976f0e1" . "9"]($_f5e7e0ebc01028d482c363ba9b7c36b4[$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["sele" . "cted"]]);
            $this->repository->DeleteRows($selected);
        }
        return $this->result;
    }
    
    
    
    
    public function OnShow()
    {
        return $this->result;
    }
}