<?php
namespace Claromentis\Core\Mail\Send\Driver;

$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"] ?: array()) + array("k" . "e" . "y" => base64_decode("a" . "2" . "V" . "5"), "_fc9738a63af197e9c3cb0a6a55" . "94250e" => base64_decode("c2VuZGdyaWQr" . "YXBpOi8v"), "_0c5123aa744f69bbc0e" . "8b3ea2f6e847d" => base64_decode("bG1zZ" . "w=="), "_a1776d8a7" . "6000b0b30d" . "f33780af1a" . "db0" => base64_decode("QGRlZmF" . "1bHQ="), "v" . "a" . "l" . "u" . "e" => base64_decode("dm" . "Fs" . "dW" . "U="), "_5d33d57bb7100adc" . "4b2f2ed99061a121" => base64_decode("cGFuZWxzLnN5c2FkbWl" . "uLm1haWwuY29uZmlnLn" . "NlbmRncmlkLnRlc3Q="));
use Claromentis\Core\Mail\Exception\DsnException;
use Claromentis\Core\Mail\Exception\MailConnectionTestNotImplementedException;
use InvalidArgumentException;
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridApiTransport;
use Symfony\Component\Mailer\Transport as SymfonyTransport;
class SendDriverSendgrid extends AbstractSendDriver
{
    protected string $display_name = '@{panels.sysadmin.mail_driver.sendgrid.display_name}';
    protected string $internal = 'sendgrid';
    protected string $description = '@{panels.sysadmin.mail_driver.sendgrid.description}';
    protected array $params = ['sendgrid_host' => ['title' => '@{panels.sysadmin.mail_driver.sendgrid.field_title.host}', 'type' => 'string', 'description' => '@{panels.sysadmin.mail_driver.sendgrid.field_name.host}', 'default' => 'default'], 'key' => ['title' => '@{panels.sysadmin.mail_driver.sendgrid.field_title.key}', 'type' => 'string', 'description' => '@{panels.sysadmin.mail_driver.sendgrid.field_name.key}', 'default' => '', 'secure' => true]];
    
    
    
    
    
    
    public function testConnection(array $_4c4d12d3e4f6cac68e3eecffe9887915) : bool
    {
        throw MailConnectionTestNotImplementedException::notImplemented($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_0c5123aa744" . "f69bbc0e8b3e" . "a2f6e847d"]($GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_5d33d57bb7100adc4b2f2ed99061a" . "121"]));
    }
    protected function getDSN(?array $_4c4d12d3e4f6cac68e3eecffe9887915 = null) : string
    {
        if (!$_4c4d12d3e4f6cac68e3eecffe9887915) {
            $_4c4d12d3e4f6cac68e3eecffe9887915 = $this->params;
        }
        $key = $_4c4d12d3e4f6cac68e3eecffe9887915[$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["k" . "e" . "y"]][$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["v" . "a" . "l" . "u" . "e"]];
        return $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_fc9738a63af1" . "97e9c3cb0a6a5" . "594250e"] . $key . $GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_a1776d8a76000b0b30df33780a" . "f1adb0"];
    }
    public function getTransport() : SymfonyTransport\TransportInterface
    {
        $_c7f99fae10c5fea93a555050524a9f0e = $this->getDSN();
        try {
            
            
            return SymfonyTransport::fromDsn($_c7f99fae10c5fea93a555050524a9f0e, null, null, $this->logger);
        } catch (InvalidArgumentException $_c35473364fa7a050299058f332ec29c1) {
            throw DsnException::invalidDsn($_c7f99fae10c5fea93a555050524a9f0e, $_c35473364fa7a050299058f332ec29c1);
        }
    }
}