<?php
namespace Claromentis\Core\License;

$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] ?: array()) + array("_5e9a99dc0dd49b907abf1b35e9" . "6965f8" => base64_decode("dHJp" . "bQ=="), "_5a80213e061edd6fa57860" . "88c6c6287c" => base64_decode("U0VSVkV" . "SX1BPUl" . "Q="), "_4d707fab9" . "3bebb00bbe" . "69e8159697" . "c90" => base64_decode(""), "_eaffc5d7e" . "0ea1c84c4b" . "39f95d2e2f" . "c8d" => base64_decode("c3Ry" . "X3Jl" . "cGxh" . "Y2U="), "_9c37768" . "64008909" . "4509fea1" . "e7365cf2" . "0" => base64_decode("TElDRU5TRV9GSUx" . "F"), "_b742a00ae87756" . "f850c77e0daf4e7" . "a3a" => base64_decode("Cg" . "=="), "_935ef41c7d1c61f33c" . "e1ea52b927cd5d" => base64_decode("D" . "Q" . "o" . "="));
use Claromentis\Core\Admin\PanelsList;
use Claromentis\Core\DAL\Interfaces\DbInterface;
use Claromentis\Core\Localization\Lmsg;
use Claromentis\Core\Variable\DbVarService;
use Claromentis\People\Repository\ExtranetRepository;
use Claromentis\Setup\VersionFile;
use Psr\Http\Message\ServerRequestInterface;
class LicenseFactory
{
    
    
    
    
    protected $db;
    
    
    
    
    protected $dbvar;
    
    
    
    
    protected $lmsg;
    
    
    
    
    protected $admin_panels;
    
    
    
    
    protected $core_version_file;
    protected LicenseVerification $licenseVerification;
    
    
    
    
    protected $system_name;
    
    
    
    
    protected $system_url;
    protected string $license;
    protected bool $isImmutable = false;
    protected ExtranetRepository $extranetRepository;
    public function __construct(DbInterface $db, DbVarService $_af4addef1e08fd5c8f0db43445a98007, Lmsg $lmsg, PanelsList $_6a62a01d90b948b82ac076eec3291d24, VersionFile $_9f38426a2f446c5c99d6ed7f00e0b286, LicenseVerification $_25ad1a5920cf5b76cd27d682bb0d9ce5, ExtranetRepository $_f4b3b22b7baa6ff2a655150f2b435d3d, ?string $_b6491b84ff2619daca623690912459b1, ?string $_0c82d0fd9f136011bcc1b111b148b9a9, ?string $_28d2607075b352d52b45daf2a256f773)
    {
        $this->db = $db;
        $this->dbvar = $_af4addef1e08fd5c8f0db43445a98007;
        $this->lmsg = $lmsg;
        $this->licenseVerification = $_25ad1a5920cf5b76cd27d682bb0d9ce5;
        $this->admin_panels = $_6a62a01d90b948b82ac076eec3291d24;
        $this->core_version_file = $_9f38426a2f446c5c99d6ed7f00e0b286;
        $this->system_name = $_b6491b84ff2619daca623690912459b1;
        $this->system_url = $_0c82d0fd9f136011bcc1b111b148b9a9;
        $this->isImmutable = !empty($_28d2607075b352d52b45daf2a256f773);
        $_28d2607075b352d52b45daf2a256f773 = $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_5e9a99dc0dd49b907" . "abf1b35e96965f8"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_eaffc5d7e0ea1c84c4b39f" . "95d2e2fc8d"]($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_935ef41c7d1" . "c61f33ce1ea5" . "2b927cd5d"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_b742a00ae" . "87756f850c" . "77e0daf4e7" . "a3a"], $_28d2607075b352d52b45daf2a256f773 ?? $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_4d707fab9" . "3bebb00bbe" . "69e8159697" . "c90"]));
        if (empty($_28d2607075b352d52b45daf2a256f773)) {
            $_28d2607075b352d52b45daf2a256f773 = $this->dbvar->Get($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_9c37768" . "64008909" . "4509fea1" . "e7365cf2" . "0"], false);
        }
        $this->license = $_28d2607075b352d52b45daf2a256f773;
        $this->extranetRepository = $_f4b3b22b7baa6ff2a655150f2b435d3d;
    }
    public function Create(ServerRequestInterface $request)
    {
        $_797ea62e9ab498d38c2781088fc553f6 = $request->getUri();
        $_4c4d12d3e4f6cac68e3eecffe9887915 = $request->getServerParams();
        return new License($this->db, $this->dbvar, $this->lmsg, $this->admin_panels, $this->core_version_file, $this->licenseVerification, $this->extranetRepository, $this->system_name, $this->system_url, $_797ea62e9ab498d38c2781088fc553f6->getHost(), $_797ea62e9ab498d38c2781088fc553f6->getPort() ?? $_4c4d12d3e4f6cac68e3eecffe9887915[$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_5a80213e061edd6f" . "a5786088c6c6287c"]], $this->license, $this->isImmutable);
    }
}