<?php
namespace Claromentis\Pages\DataTable;

$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] ?: array()) + array("_15d0037115e1992" . "50034045ef857999" . "8" => base64_decode("cGFnZXMucmVjZ" . "W50bHlfZGVsZX" . "RlZC50eXBlLmx" . "pbms="), "_b04cbd9cecfdeef49b11ede326a" . "cf8be" => base64_decode("cGFnZXMucmVjZW50bHlfZGVsZXRlZC5oZWFkaW5nL" . "mFkZHJlc3M="), "_7649e37214ea821fcc225a38a8557" . "1dc" => base64_decode("cGFnZXMucmVjZW50bHlfZGVsZXRl" . "ZC5oZWFkaW5nLnRpdGxl"), "na" . "me" => base64_decode("bmFtZQ=" . "="), "_cb7eb293ba562e2db7c2c73b4" . "46b8c2f" => base64_decode("cGFnZXMucmVjZW50bHlfZGVsZXRlZC5oZWFka" . "W5nLmRlbGV0ZWRfb24="), "_dadf790baf241afac942824c1e" . "6e37c4" => base64_decode("dHlwZQ=" . "="), "_962c604af" . "72ac39da34" . "bbac2e407c" . "833" => base64_decode("ZGVsZXRlZF9ieQ" . "=="), "_1d54e76a0cb1d5d7db4b077f6c" . "a25bb2" => base64_decode("cGFnZXMucmVjZW50bHlfZGVsZ" . "XRlZC5oZWFkaW5nLmRlbGV0ZW" . "RfYnk="), "_feb9037589" . "181bc30fa0f" . "1cf78b9f056" => base64_decode("dG" . "l0" . "bG" . "U="), "_3ea6e487bdf98a5" . "bf7ff214132ab0f4" . "8" => base64_decode("c2VsZW" . "N0ZWQ="), "_295710a54" . "74c52be627" . "d95d7e2818" . "6ba" => base64_decode("cGFnZXMucmVjZW50bHlfZGVsZXRlZC5oZWFkaW5nLnR5c" . "GU="), "_29033c16758dd0" . "8c5ece401572441" . "b87" => base64_decode("cGFnZXMucmVjZW50" . "bHlfZGVsZXRlZC50" . "eXBlLnNpdGU="), "_eff78fe1617704d221936770b90db" . "8c2" => base64_decode("cGFnZXMucmVjZW50bHlfZGVsZXRlZC50" . "eXBlLnBhZ2U="), "_0ea4e32b57963ac0cb3057e03e9a" . "ef64" => base64_decode("a" . "W" . "Q" . "="), "_0eb85af3fd019e91c2f" . "55a5e6d53ec19" => base64_decode("YWRk" . "cmVz" . "cw=="), "_b1587f9c43f1b559c8731e" . "6cf60b2173" => base64_decode("ZGF" . "0ZV" . "9zd" . "HI="), "_7080933" . "3a0f254a" . "cf7a1ad0" . "c7dadd46" . "b" => base64_decode("O" . "i" . "A" . "="), "_477bac2ca1d769" . "57065d0b88a5170" . "6ec" => base64_decode("ZGVsZXRlZF9vbg" . "=="), "_f124f6ac302c07ffb8c61" . "a96d37309d0" => base64_decode("PGlucHV0IGNsYXNzPSJkZWxldGVkX2l0ZW1zX2NoZWNrX2V2ZXJ5dGhpbmciIHR5cGU9ImNoZW" . "NrYm94IiAvPg=="));
use Claromentis\Core\DataTable;
use Claromentis\Core\Localization\Lmsg;
use Claromentis\Core\REST\RestFormatter;
use Claromentis\Core\Security\SecurityContext;
use Claromentis\Core\Services;
use Claromentis\Pages\TrashCan\TrashObjectPages;
abstract class AbstractDeletedItemsDataTable implements DataTable\Contract\DataSource
{
    use DataTable\Shared\ColumnHelper;
    protected Lmsg $lmsg;
    public function __construct()
    {
        
        
        $this->lmsg = Services::I()->{Lmsg::class};
    }
    public function Columns(SecurityContext $context, DataTable\Contract\Parameters $_4c4d12d3e4f6cac68e3eecffe9887915 = null)
    {
        $_a42c86642011ef739b88ee80672c387d = array(array($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_3ea6e487bdf98" . "a5bf7ff214132a" . "b0f48"], $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_f124f6ac302c" . "07ffb8c61a96d" . "37309d0"], new Decorator\DeletedSelector(), false), array($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_feb9037" . "589181bc" . "30fa0f1c" . "f78b9f05" . "6"], ($this->lmsg)($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_7649e37214ea" . "821fcc225a38a" . "85571dc"]), null, true), array($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_dadf790baf241af" . "ac942824c1e6e37c" . "4"], ($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_295710a" . "5474c52b" . "e627d95d" . "7e28186b" . "a"]), new DataTable\Decorator\Text(), true), array($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_477bac2ca1d76957065d" . "0b88a51706ec"], ($this->lmsg)($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_cb7eb293ba5" . "62e2db7c2c73" . "b446b8c2f"]), new DataTable\Decorator\Text(), true), array($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_0eb85af3fd019e91c2f55a5e6d53e" . "c19"], ($this->lmsg)($GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_b04cbd9cecfdee" . "f49b11ede326acf" . "8be"]), null, true), array($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_962c604af72ac39da34bbac2e40" . "7c833"], ($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_1d54e76a0cb1d5d7d" . "b4b077f6ca25bb2"]), new DataTable\Decorator\Text(), true));
        return $this->CreateWithColumns($_a42c86642011ef739b88ee80672c387d);
    }
    public function Data(SecurityContext $context, DataTable\Contract\Parameters $_4c4d12d3e4f6cac68e3eecffe9887915, DataTable\Contract\TableFilter $_03e9164d0a343b742df4793268b80767)
    {
        $_219b35f977764d48731a6bbe06c88fd5 = $this->GetData($_4c4d12d3e4f6cac68e3eecffe9887915);
        
        
        $_014910722e30c1b11ae64cfd41e732c8 = Services::I()->{RestFormatter::class};
        $data = [];
        foreach ($_219b35f977764d48731a6bbe06c88fd5 as $_59cdb5ce92fcf760d09d3c6ed5b03aaa) {
            
            
            $_28fd57f750dbb5ffb3ffad3a888358a9 = $_59cdb5ce92fcf760d09d3c6ed5b03aaa->description;
            if ($_59cdb5ce92fcf760d09d3c6ed5b03aaa->type === TrashObjectPages::TRASH_TYPE_LINK) {
                $_28fd57f750dbb5ffb3ffad3a888358a9 = $_59cdb5ce92fcf760d09d3c6ed5b03aaa->orig_location . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_70809333a0" . "f254acf7a1a" . "d0c7dadd46b"] . $_28fd57f750dbb5ffb3ffad3a888358a9;
            }
            $data[] = [$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_3ea6e487bdf98a5bf7ff" . "214132ab0f48"] => [$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_0ea4e32b579" . "63ac0cb3057e" . "03e9aef64"] => $_59cdb5ce92fcf760d09d3c6ed5b03aaa->id], $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_feb90375" . "89181bc30" . "fa0f1cf78" . "b9f056"] => $_59cdb5ce92fcf760d09d3c6ed5b03aaa->title, $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_dadf790baf2" . "41afac942824" . "c1e6e37c4"] => $this->GetTypeName((int) $_59cdb5ce92fcf760d09d3c6ed5b03aaa->type), $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_477bac2ca1d76957065d0b" . "88a51706ec"] => $_014910722e30c1b11ae64cfd41e732c8->Date($_59cdb5ce92fcf760d09d3c6ed5b03aaa->deletion_date)[$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_b1587f9c43f" . "1b559c8731e6" . "cf60b2173"]], $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_0eb85af3f" . "d019e91c2f" . "55a5e6d53e" . "c19"] => $_28fd57f750dbb5ffb3ffad3a888358a9, $GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_962c604a" . "f72ac39da" . "34bbac2e4" . "07c833"] => $_014910722e30c1b11ae64cfd41e732c8->User($_59cdb5ce92fcf760d09d3c6ed5b03aaa->user_id)[$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["na" . "me"]]];
        }
        return $data;
    }
    public function Count(SecurityContext $context, DataTable\Contract\Parameters $_4c4d12d3e4f6cac68e3eecffe9887915, DataTable\Contract\TableFilter $_e0bd284b1527841bc9c635873b56303b)
    {
        return $this->GetDataCount();
    }
    public function Filters()
    {
        return [];
    }
    protected function GetTypeName(int $_ec8ecef387561127b746a30dbe724996) : string
    {
        $_dadf790baf241afac942824c1e6e37c4 = ($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_29033c16758dd08c5ece4" . "01572441b87"]);
        if ($_ec8ecef387561127b746a30dbe724996 === TrashObjectPages::TRASH_TYPE_PAGE) {
            $_dadf790baf241afac942824c1e6e37c4 = ($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_eff78fe1617704d221936770b90d" . "b8c2"]);
        }
        if ($_ec8ecef387561127b746a30dbe724996 === TrashObjectPages::TRASH_TYPE_LINK) {
            $_dadf790baf241afac942824c1e6e37c4 = ($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_15d0037" . "115e1992" . "50034045" . "ef857999" . "8"]);
        }
        return $_dadf790baf241afac942824c1e6e37c4;
    }
    protected abstract function GetData(DataTable\Contract\Parameters $_4c4d12d3e4f6cac68e3eecffe9887915) : array;
    protected abstract function GetDataCount() : int;
}