<?php
namespace Claromentis\Pages\DataTable;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] ?: array()) + array("_f124f6ac302c07ffb8c61a96d37" . "309d0" => base64_decode("PGlucHV0IGNsYXNzPSJkZWxldGVkX2l0ZW1zX2" . "NoZWNrX2V2ZXJ5dGhpbmciIHR5cGU9ImNoZWNr" . "Ym94IiAvPg=="), "nam" . "e" => base64_decode("bmFt" . "ZQ=="), "_1d54e76a0cb1d5d7d" . "b4b077f6ca25bb2" => base64_decode("cGFnZXMucmVjZW50bHlfZGVs" . "ZXRlZC5oZWFkaW5nLmRlbGV0" . "ZWRfYnk="), "_cb7eb293ba562e2d" . "b7c2c73b446b8c2f" => base64_decode("cGFnZXMucmVjZW50bHlfZGVsZXR" . "lZC5oZWFkaW5nLmRlbGV0ZWRfb2" . "4="), "_0ea4e32b57963ac0cb3057" . "e03e9aef64" => base64_decode("aW" . "Q="), "_477bac2ca1d76957065d" . "0b88a51706ec" => base64_decode("ZGVs" . "ZXRl" . "ZF9v" . "bg=="), "_feb903758" . "9181bc30fa" . "0f1cf78b9f" . "056" => base64_decode("dGl" . "0bG" . "U="), "_962c604af" . "72ac39da34" . "bbac2e407c" . "833" => base64_decode("ZGVsZ" . "XRlZF" . "9ieQ=" . "="), "_15d0037115e199250034045ef85799" . "98" => base64_decode("cGFnZXMucmVjZW50bHl" . "fZGVsZXRlZC50eXBlLm" . "xpbms="), "_dadf790baf241" . "afac942824c1e6" . "e37c4" => base64_decode("dHl" . "wZQ" . "=="), "_70809333a0f254acf7a1ad0" . "c7dadd46b" => base64_decode("Oi" . "A="), "_b04cbd9cecfdeef49b11e" . "de326acf8be" => base64_decode("cGFnZXMucmVjZW50bHlfZGVsZXRlZ" . "C5oZWFkaW5nLmFkZHJlc3M="), "_eff78fe1617704d22193677" . "0b90db8c2" => base64_decode("cGFnZXMucmVjZW" . "50bHlfZGVsZXRl" . "ZC50eXBlLnBhZ2" . "U="), "_3ea6e487bdf98a5bf7ff214132ab" . "0f48" => base64_decode("c2VsZWN0ZWQ" . "="), "_b1587f9c43f1b559c8731e6cf6" . "0b2173" => base64_decode("ZGF0ZV9zdHI" . "="), "_0eb85af3fd019e91c2f55a5e6d5" . "3ec19" => base64_decode("YWRkc" . "mVzcw" . "=="), "_29033c16758dd08" . "c5ece401572441b8" . "7" => base64_decode("cGFnZXMucmVjZW50bHlfZGVsZXRlZC50eXBlLn" . "NpdGU="), "_295710a5474c52be627d95d7e2" . "8186ba" => base64_decode("cGFnZXMucmVjZW50" . "bHlfZGVsZXRlZC5o" . "ZWFkaW5nLnR5cGU="), "_7649e37214ea821fcc225a38a" . "85571dc" => base64_decode("cGFnZXMucmVjZW50bHlfZGV" . "sZXRlZC5oZWFkaW5nLnRpdG" . "xl"));
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["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_3ea6e487bdf98a5bf7ff214132ab0f" . "48"], $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_f124f6ac302c07ffb8c61a96d3" . "7309d0"], new Decorator\DeletedSelector(), false), array($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_feb9037589181bc30fa0f1cf78b9f05" . "6"], ($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_7649e37" . "214ea821" . "fcc225a3" . "8a85571d" . "c"]), null, true), array($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_dadf790baf241afac9" . "42824c1e6e37c4"], ($this->lmsg)($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_295710a5474c52be627d" . "95d7e28186ba"]), new DataTable\Decorator\Text(), true), array($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_477bac2ca1d76" . "957065d0b88a51" . "706ec"], ($this->lmsg)($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_cb7eb293ba" . "562e2db7c2c" . "73b446b8c2f"]), new DataTable\Decorator\Text(), true), array($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_0eb85af3fd019e91c2" . "f55a5e6d53ec19"], ($this->lmsg)($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_b04cbd9cecfdeef49b11ede3" . "26acf8be"]), null, true), array($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_962c604af72ac39" . "da34bbac2e407c83" . "3"], ($this->lmsg)($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_1d54e76a0cb1d5d7db4b077" . "f6ca25bb2"]), 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["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_70809333a0f254" . "acf7a1ad0c7dadd" . "46b"] . $_28fd57f750dbb5ffb3ffad3a888358a9;
            }
            $data[] = [$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_3ea6e487bd" . "f98a5bf7ff2" . "14132ab0f48"] => [$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_0ea4e32b57963ac0cb3057e03e9ae" . "f64"] => $_59cdb5ce92fcf760d09d3c6ed5b03aaa->id], $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_feb903758" . "9181bc30fa" . "0f1cf78b9f" . "056"] => $_59cdb5ce92fcf760d09d3c6ed5b03aaa->title, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_dadf790baf" . "241afac9428" . "24c1e6e37c4"] => $this->GetTypeName((int) $_59cdb5ce92fcf760d09d3c6ed5b03aaa->type), $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_477bac2ca1d769" . "57065d0b88a5170" . "6ec"] => $_014910722e30c1b11ae64cfd41e732c8->Date($_59cdb5ce92fcf760d09d3c6ed5b03aaa->deletion_date)[$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_b1587f9c43f1b559c873" . "1e6cf60b2173"]], $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_0eb85af3fd019e91c2f55a5e6" . "d53ec19"] => $_28fd57f750dbb5ffb3ffad3a888358a9, $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_962c604af72ac39da34bbac2e407c" . "833"] => $_014910722e30c1b11ae64cfd41e732c8->User($_59cdb5ce92fcf760d09d3c6ed5b03aaa->user_id)[$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["nam" . "e"]]];
        }
        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["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_29033c16758dd08c5ece4015" . "72441b87"]);
        if ($_ec8ecef387561127b746a30dbe724996 === TrashObjectPages::TRASH_TYPE_PAGE) {
            $_dadf790baf241afac942824c1e6e37c4 = ($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_eff78fe1617704d22193" . "6770b90db8c2"]);
        }
        if ($_ec8ecef387561127b746a30dbe724996 === TrashObjectPages::TRASH_TYPE_LINK) {
            $_dadf790baf241afac942824c1e6e37c4 = ($this->lmsg)($GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_15d0037115e19925003404" . "5ef8579998"]);
        }
        return $_dadf790baf241afac942824c1e6e37c4;
    }
    protected abstract function GetData(DataTable\Contract\Parameters $_4c4d12d3e4f6cac68e3eecffe9887915) : array;
    protected abstract function GetDataCount() : int;
}