Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare (strict_types=1); namespace OneTeamSoftware\WC\Shipping; use OneTeamS..

Decoded Output download

<?php 
declare (strict_types=1); 
 
namespace OneTeamSoftware\WC\Shipping; 
 
use OneTeamSoftware\Logger\LoggerInterface; 
use OneTeamSoftware\WP\Admin\Notices\Notices; 
 
class AdminOrders 
{ 
    private $id; 
    private $pluginPath; 
    private $settings; 
    private $version; 
    private $notices; 
    private $logger; 
    private $orderIdGetter; 
    private $weightUnit; 
    private $dimensionUnit; 
    private $didScriptsEnqueue; 
 
    public function __construct(string $ZLNlC, string $LCNZu, LoggerInterface $MM3oL, array $dK4bD = [], string $OXU_a = null) 
    { 
        $this->id = $ZLNlC; 
        $this->pluginPath = $LCNZu; 
        $this->settings = array_merge(["defaultShipmentDescription" => '', "enableBulkShipmentCreation" => "no", "useServiceSettingsForBulkShipmentCreation" => "no", "requireToBulkCreateShipments" => "yes", "requireToBulkPurchasePostage" => "yes", "requireToBulkPurchaseNewPostage" => "no", "enableServices" => "yes", "weight_unit" => "g", "dimension_unit" => "mm"], $dK4bD); 
        $this->version = $OXU_a; 
        $this->notices = new Notices($this->id . "_admin_orders"); 
        $this->logger = $MM3oL; 
        $this->orderIdGetter = new OrderIdGetter(); 
        $this->weightUnit = $this->settings["weight_unit"]; 
        $this->dimensionUnit = $this->settings["dimension_unit"]; 
        $this->didScriptsEnqueue = false; 
    } 
 
    public function register(): void 
    { 
        add_filter("bulk_actions-edit-shop_order", [$this, "onAddBulkActions"]); 
        add_filter("bulk_actions-woocommerce_page_wc-orders", [$this, "onAddBulkActions"]); 
        add_filter("manage_shop_order_posts_columns", [$this, "onAddColumns"], 100); 
        add_filter("manage_woocommerce_page_wc-orders_columns", [$this, "onAddColumns"], 100); 
        add_action("manage_shop_order_posts_custom_column", [$this, "onDisplayColumn"]); 
        add_action("manage_woocommerce_page_wc-orders_custom_column", [$this, "onDisplayColumn"], 10, 2); 
        add_action("wp_ajax_" . $this->id . "_createShipments", [$this, "onCreateShipments"]); 
        add_action("wp_ajax_" . $this->id . "_buyShipments", [$this, "onBuyShipments"]); 
        add_action("wp_ajax_" . $this->id . "_download", [$this, "onDownload"]); 
        add_action("wp_ajax_" . $this->id . "_updateOrders", [$this, "onUpdateOrders"]); 
        add_action($this->id . "_AdminOrders_displayOrderShipments", [$this, "displayOrderShipments"], 1, 1); 
    } 
 
    public function setSettings(array $dK4bD): void 
    { 
        if (false === empty($dK4bD)) { 
            $this->settings = array_replace_recursive($this->settings, $dK4bD); 
        } 
    } 
 
    public function enqueueScripts(array $dK4bD = []): void 
    { 
        if ($this->didScriptsEnqueue) { 
            return; 
        } 
        $this->didScriptsEnqueue = true; 
        $Ptc5J = "min.css"; 
        $R3SKf = "min.js"; 
        if (defined("WP_DEBUG") && WP_DEBUG) { 
            $Ptc5J = "css"; 
            $R3SKf = "js"; 
        } 
        wp_register_script($this->id . "-labelloaderpage", plugins_url("assets/js/LabelLoaderPage." . $R3SKf, str_replace("phar://", '', $this->pluginPath)), ["jquery", "jquery-blockui"], $this->version); 
        wp_enqueue_script($this->id . "-labelloaderpage"); 
        wp_register_style($this->id . "-adminorders", plugins_url("assets/css/AdminOrders." . $Ptc5J, str_replace("phar://", '', $this->pluginPath)), [], $this->version); 
        wp_register_script($this->id . "-adminorders", plugins_url("assets/js/AdminOrders." . $R3SKf, str_replace("phar://", '', $this->pluginPath)), ["jquery", "jquery-blockui"], $this->version); 
        wp_localize_script($this->id . "-adminorders", "adminorders_settings", $dK4bD); 
        wp_enqueue_script($this->id . "-adminorders"); 
        wp_enqueue_style($this->id . "-adminorders"); 
    } 
 
    public function onUpdateOrders(): void 
    { 
        $Te2ak = $this->getRequestedOrders(); 
        if (empty($Te2ak)) { 
            exit; 
        } 
        $this->logger->debug(__FILE__, 201, "onUpdateOrders: %s", print_r($Te2ak, true)); 
        foreach ($Te2ak as $dLN9q => $G4uxU) { 
            do_action($this->id . "_setOrderShipmentMeta", $dLN9q, $G4uxU); 
            AIrP8: 
        } 
        JOOaX: 
        $JMUeq = apply_filters($this->id . "_getErrorMessages", []); 
        if (empty($JMUeq)) { 
            $this->notices->title = __("Order has been updated", $this->id); 
        } else { 
            $this->notices->title = __("Unable to update order", $this->id); 
        } 
        $this->displayNotices(); 
        exit; 
    } 
 
    public function onAddBulkActions(array $fK9wk): array 
    { 
        if ($this->settings["enableBulkShipmentCreation"] !== "yes") { 
            return $fK9wk; 
        } 
        if ($this->mustCreateShipments()) { 
            $fK9wk[$this->id . "_createShipments"] = sprintf("%s: %s", apply_filters($this->id . "_getName", ''), __("Create Shipments", $this->id)); 
        } 
        if ($this->mustPurchasePostage()) { 
            $fK9wk[$this->id . "_buyShipments"] = sprintf("%s: %s", apply_filters($this->id . "_getName", ''), __("Buy Shipping Labels", $this->id)); 
        } 
        $fK9wk[$this->id . "_download"] = sprintf("%s: %s", apply_filters($this->id . "_getName", ''), __("Print Shipping Labels and Forms", $this->id)); 
        return $fK9wk; 
    } 
 
    public function onDownload(): void 
    { 
        $voBOy = $this->getRequestedOrderIds(); 
        if (empty($voBOy) || $this->getRequestedAction() !== $this->id . "_download") { 
            return; 
        } 
        $this->logger->debug(__FILE__, 268, "onDownload: %s", print_r($voBOy, true)); 
        wc_set_time_limit(0); 
        do_action($this->id . "_clearErrorMessages"); 
        $bpfZQ = true; 
        $NHpE8 = []; 
        if ($this->mustPurchasePostage()) { 
            $NHpE8 = apply_filters($this->id . "_getOrderShipmentsForOrders", [], $voBOy); 
        } else { 
            $NHpE8 = apply_filters($this->id . "_purchasePostageForOrders", [], $voBOy, $this->mustCreateShipments(), $this->mustPurchaseNewPostage()); 
            $bpfZQ = false === empty($NHpE8); 
        } 
        $CZlIb = []; 
        if ($bpfZQ) { 
            $CZlIb = apply_filters($this->id . "_createPdfFileForOrderShipments", [], $NHpE8); 
        } 
        if (isset($CZlIb["url"])) { 
            $this->notices->title = sprintf("%s <a href="%s" target="_blank" class="%s postageLabelsAndForms">%s</a>", __("Shipping labels and forms have been successfully created, ", $this->id), $CZlIb["url"], $this->id, __("click here to open it", $this->id)); 
        } else { 
            $this->notices->title = __("Unable to download any of the shipping labels or forms", $this->id); 
        } 
        $this->displayNotices(); 
        $this->displayOrderShipments($NHpE8); 
        exit; 
    } 
 
    public function onBuyShipments(): void 
    { 
        $voBOy = $this->getRequestedOrderIds(); 
        if (empty($voBOy) || $this->getRequestedAction() !== $this->id . "_buyShipments") { 
            return; 
        } 
        $this->logger->debug(__FILE__, 325, "onBuyShipments: %s", print_r($voBOy, true)); 
        wc_set_time_limit(0); 
        do_action($this->id . "_clearErrorMessages"); 
        $NHpE8 = apply_filters($this->id . "_purchasePostageForOrders", [], $voBOy, $this->mustCreateShipments(), $this->mustPurchaseNewPostage()); 
        if (false === empty($NHpE8)) { 
            $this->notices->title = __("Shipments have been successfully purchased", $this->id); 
        } else { 
            $this->notices->title = __("Errors have occurred during purchasing of the shipments", $this->id); 
        } 
        if (count($NHpE8) >= count($voBOy)) { 
            do_action($this->id . "_clearErrorMessages"); 
        } 
        $this->displayNotices(); 
        $this->displayOrderShipments($NHpE8); 
        exit; 
    } 
 
    public function onCreateShipments(): void 
    { 
        if (!apply_filters($this->id . "_hasCreateShipmentFeature", false)) { 
            return; 
        } 
        $voBOy = $this->getRequestedOrderIds(); 
        if (empty($voBOy) || $this->getRequestedAction() !== $this->id . "_createShipments") { 
            return; 
        } 
        $this->logger->debug(__FILE__, 371, "onCreateShipments: %s", print_r($voBOy, true)); 
        wc_set_time_limit(0); 
        do_action($this->id . "_clearErrorMessages"); 
        $NHpE8 = apply_filters($this->id . "_createShipmentsForOrders", [], $voBOy); 
        if (false === empty($NHpE8)) { 
            $this->notices->title = __("Shipments have been successfully created", $this->id); 
        } else { 
            $this->notices->title = __("Errors have occurred during creation of the shipments", $this->id); 
        } 
        if (count($NHpE8) >= count($voBOy)) { 
            do_action($this->id . "_clearErrorMessages"); 
        } 
        $this->displayNotices(); 
        $this->displayOrderShipments($NHpE8); 
        exit; 
    } 
 
    public function onAddColumns(array $nuVok): array 
    { 
        $nuVok["shipment_tracking"] = __("Shipment Tracking", $this->id); 
        return $nuVok; 
    } 
 
    public function onDisplayColumn(string $zJe1z, $QWGCf = null): void 
    { 
        if ("shipment_tracking" !== $zJe1z) { 
            return; 
        } 
        $dLN9q = 0; 
        if (is_object($QWGCf)) { 
            $dLN9q = $this->orderIdGetter->getOrderId($QWGCf); 
        } 
        global $post; 
        if ($dLN9q === 0 && is_object($post) && isset($post->ID)) { 
            $dLN9q = $post->ID; 
        } 
        if ($dLN9q === 0) { 
            return; 
        } 
        $dK4bD = ["id" => $this->id]; 
        $this->enqueueScripts($dK4bD); 
        $bB1ty = apply_filters($this->id . "_getOrderShipments", [], $dLN9q); 
        if (empty($bB1ty)) { 
            if ("yes" === $this->settings["enableBulkShipmentCreation"]) { 
                $this->displayParcels($dLN9q); 
            } 
        } else { 
            $this->displayShipments($dLN9q, $bB1ty); 
        } 
    } 
 
    public function displayOrderShipments(array $NHpE8): void 
    { 
        foreach ($NHpE8 as $dLN9q => $bB1ty) { 
            echo sprintf("<div data-order_id="%s" class="orderShipments">", $dLN9q); 
            $this->displayShipments($dLN9q, $bB1ty); 
            echo "</div>"; 
            spo8X: 
        } 
        tAKbV: 
    } 
 
    private function getRequestedAction(): string 
    { 
        $m0uXc = ''; 
        if (false === empty($_REQUEST["action"]) && $_REQUEST["action"] !== -1) { 
            $m0uXc = $_REQUEST["action"]; 
        } elseif (false === empty($_REQUEST["action2"]) && $_REQUEST["action2"] !== -1) { 
            $m0uXc = $_REQUEST["action2"]; 
        } 
        return $m0uXc; 
    } 
 
    private function getRequestedOrders(): array 
    { 
        if (!wp_verify_nonce($_POST[$this->id . "_nonce"], "bulk-posts") && !wp_verify_nonce($_POST[$this->id . "_nonce"], "bulk-orders")) { 
            $this->notices->displayWithoutNotices = true; 
            $this->notices->type = "error"; 
            $this->notices->title = __("Session has expired, please reload page", $this->id); 
            $this->notices->display(); 
            return []; 
        } 
        if (empty($_POST[$this->id . "_orders"]) || !is_array($_POST[$this->id . "_orders"])) { 
            $this->notices->displayWithoutNotices = true; 
            $this->notices->type = "error"; 
            $this->notices->title = __("Invalid input data", $this->id); 
            $this->notices->display(); 
            return []; 
        } 
        $cQdx0 = ["length" => __("Length", $this->id), "width" => __("Width", $this->id), "height" => __("Height", $this->id), "weight" => __("Weight", $this->id)]; 
        $ahDuE = apply_filters($this->id . "_getServices", []); 
        $TRgER = apply_filters($this->id . "_getPackageTypes", []); 
        $bJr6o = apply_filters($this->id . "_getCurrencies", []); 
        $Te2ak = $_POST[$this->id . "_orders"]; 
        foreach ($Te2ak as $QWGCf) { 
            if (empty($QWGCf["service"]) || empty($ahDuE[$QWGCf["service"]])) { 
                $this->notices->displayWithoutNotices = true; 
                $this->notices->type = "error"; 
                $this->notices->title = __("Unknown service", $this->id); 
                $this->notices->display(); 
                return []; 
            } 
            if (empty($QWGCf["parcels"]) || !is_array($QWGCf["parcels"])) { 
                $this->notices->displayWithoutNotices = true; 
                $this->notices->type = "error"; 
                $this->notices->title = __("Unknown parcel information", $this->id); 
                $this->notices->display(); 
                return []; 
            } 
            $LLX65 = $QWGCf["parcels"]; 
            foreach ($LLX65 as $pLlsY) { 
                foreach ($cQdx0 as $dVYoF => $QyYHy) { 
                    if (!isset($pLlsY[$dVYoF]) || !is_numeric($pLlsY[$dVYoF]) || $pLlsY[$dVYoF] < 0) { 
                        $this->notices->displayWithoutNotices = true; 
                        $this->notices->type = "error"; 
                        $this->notices->title = sprintf(__("Invalid %s value", $this->id), $QyYHy); 
                        $this->notices->display(); 
                        return []; 
                    } 
                    if (empty($pLlsY["type"]) || empty($TRgER[$pLlsY["type"]])) { 
                        $this->notices->displayWithoutNotices = true; 
                        $this->notices->type = "error"; 
                        $this->notices->title = __("Unknown parcel type", $this->id); 
                        $this->notices->display(); 
                        return []; 
                    } 
                    if (empty($pLlsY["currency"]) || empty($bJr6o[$pLlsY["currency"]])) { 
                        $this->notices->displayWithoutNotices = true; 
                        $this->notices->type = "error"; 
                        $this->notices->title = __("Unknown currency", $this->id); 
                        $this->notices->display(); 
                        return []; 
                    } 
                    RfbgR: 
                } 
                ggj5Y: hjCRu: 
            } 
            z5Pvp: KqaML: 
        } 
        a0RG2: 
        return $Te2ak; 
    } 
 
    private function getRequestedOrderIds(): array 
    { 
        if ($this->settings["enableBulkShipmentCreation"] !== "yes") { 
            return []; 
        } 
        if (!wp_verify_nonce($_REQUEST["_wpnonce"], "bulk-posts") && !wp_verify_nonce($_REQUEST["_wpnonce"], "bulk-orders")) { 
            return []; 
        } 
        $voBOy = $_REQUEST["post"] ?? $_REQUEST["order"] ?? []; 
        if ($this->getRequestedAction() === '' || empty($voBOy)) { 
            return []; 
        } 
        return array_map("absint", (array)$voBOy); 
    } 
 
    private function mustCreateShipments(): bool 
    { 
        $dNcvP = false; 
        if (apply_filters($this->id . "_hasCreateShipmentFeature", false)) { 
            $dNcvP = "yes" === $this->settings["requireToBulkCreateShipments"]; 
        } 
        return $dNcvP; 
    } 
 
    private function mustPurchasePostage(): bool 
    { 
        return "yes" === $this->settings["requireToBulkPurchasePostage"]; 
    } 
 
    private function mustPurchaseNewPostage(): bool 
    { 
        return "yes" === $this->settings["requireToBulkPurchaseNewPostage"]; 
    } 
 
    private function displayNotices(): void 
    { 
        $JMUeq = apply_filters($this->id . "_getErrorMessages", []); 
        if (false === empty($JMUeq)) { 
            $this->notices->type = "error"; 
            foreach ($JMUeq as $CvFbJ) { 
                $this->notices->add($CvFbJ); 
                w7VvH: 
            } 
            Q71DO: 
        } else { 
            $this->notices->type = "updated"; 
        } 
        $this->notices->displayWithoutNotices = true; 
        $this->notices->display(); 
    } 
 
    private function displayParcels(int $dLN9q): void 
    { 
        $LLX65 = []; 
        $G4uxU = apply_filters($this->id . "_getOrderShipmentMeta", [], $dLN9q); 
        if (empty($G4uxU["parcels"])) { 
            return; 
        } 
        $f4Ye9 = $G4uxU["service"]; 
        $LLX65 = $G4uxU["parcels"]; 
        $TRgER = apply_filters($this->id . "_getPackageTypes", []); 
        echo sprintf("<div class="%s adminOrders">", $this->id); 
        echo sprintf("<div><strong>%s</strong></div><hr/>", apply_filters($this->id . "_getName", '')); 
        echo "<div>"; 
        echo sprintf("<select type="text" name="%s_orders[%s][service]">", $this->id, $dLN9q); 
        $ahDuE = []; 
        if (empty($f4Ye9)) { 
            $ahDuE = ['' => __("Select a shipping service", $this->id)]; 
        } 
        $ahDuE = array_merge($ahDuE, apply_filters($this->id . "_getServices", [])); 
        $KJvgT = "yes" === $this->settings["enableServices"]; 
        if (empty($this->settings["services"])) { 
            $KJvgT = true; 
        } 
        foreach ($ahDuE as $M7w4L => $bgdA4) { 
            if ("yes" === $this->settings["useServiceSettingsForBulkShipmentCreation"]) { 
                $cZArj = ["enabled" => $KJvgT ? "yes" : "no"]; 
                if (false === empty($this->settings["services"][$M7w4L])) { 
                    $cZArj = $this->settings["services"][$M7w4L]; 
                } 
                if ($cZArj["enabled"] === "no") { 
                    goto L2Isr; 
                } 
            } 
            echo sprintf("<option value="%s" %s>%s</option>", $M7w4L, $M7w4L === $f4Ye9 ? "selected" : '', apply_filters($this->id . "_service_name", $bgdA4, $M7w4L)); 
            L2Isr: 
        } 
        UjVgv: 
        echo "</select>"; 
        echo "</div>"; 
        foreach ($LLX65 as $AACCr => $pLlsY) { 
            $this->displayParcel($dLN9q, $AACCr, $pLlsY, $ahDuE, $TRgER); 
            zHPdj: 
        } 
        HvLwb: 
        echo sprintf("<button class="update submit button">%s</button>", __("Update", $this->id)); 
        echo "</div>"; 
    } 
 
    private function displayParcel(int $dLN9q, int $AACCr, array $pLlsY, array $ahDuE, array $TRgER): void 
    { 
        if (empty($pLlsY)) { 
            return; 
        } 
        if ($AACCr > 0) { 
            echo "<hr/>"; 
        } 
        echo sprintf("<div><strong>%s%s</strong></div>", __("Parcel #", $this->id), $AACCr + 1); 
        echo "<div>"; 
        $D_Nw0 = $this->settings["defaultShipmentDescription"]; 
        if (false === empty($pLlsY["description"])) { 
            $D_Nw0 = $pLlsY["description"]; 
        } 
        echo sprintf("<input type="text" class="packageDescription" name="%s_orders[%s][parcels][%s][description]" placeholder="%s" value="%s"/>", $this->id, $dLN9q, $AACCr, __("Description", $this->id), $D_Nw0); 
        echo "</div>"; 
        echo "<div>"; 
        echo sprintf("<select type="text" name="%s_orders[%s][parcels][%s][type]">", $this->id, $dLN9q, $AACCr); 
        $TRgER = apply_filters($this->id . "_getPackageTypes", []); 
        $YDiz5 = false === empty($pLlsY["type"]) ? $pLlsY["type"] : ''; 
        foreach ($TRgER as $rPw5R => $AWRZ2) { 
            echo sprintf("<option value="%s" %s>%s</option>", $rPw5R, $rPw5R === $YDiz5 ? "selected" : '', $AWRZ2); 
            Qgda0: 
        } 
        DIwQe: 
        echo "</select>"; 
        echo "</div>"; 
        echo "<div>"; 
        echo sprintf("<input type="text" class="packageLength" name="%s_orders[%s][parcels][%s][length]" value="%s"/>", $this->id, $dLN9q, $AACCr, $pLlsY["length"]); 
        echo "<span>x</span>"; 
        echo sprintf("<input type="text" class="packageWidth" name="%s_orders[%s][parcels][%s][width]" value="%s"/>", $this->id, $dLN9q, $AACCr, $pLlsY["width"]); 
        echo "<span>x</span>"; 
        echo sprintf("<input type="text" class="packageHeight" name="%s_orders[%s][parcels][%s][height]" value="%s"/>", $this->id, $dLN9q, $AACCr, $pLlsY["height"]); 
        echo "<span>" . $this->dimensionUnit . "</span>"; 
        echo sprintf("<input type="text" class="packageWeight" name="%s_orders[%s][parcels][%s][weight]" value="%s"/>", $this->id, $dLN9q, $AACCr, $pLlsY["weight"]); 
        echo "<span>" . $this->weightUnit . "</span>"; 
        echo "</div>"; 
        echo "<div>"; 
        echo sprintf("<input type="text" class="packageValue" name="%s_orders[%s][parcels][%s][value]" value="%s"/>", $this->id, $dLN9q, $AACCr, $pLlsY["value"]); 
        echo sprintf("<select type="text" class="packageCurrency" name="%s_orders[%s][parcels][%s][currency]">", $this->id, $dLN9q, $AACCr); 
        $bJr6o = apply_filters($this->id . "_getCurrencies", []); 
        $jo6UJ = false === empty($pLlsY["currency"]) ? $pLlsY["currency"] : apply_filters($this->id . "_getDefaultCurrency", ''); 
        foreach ($bJr6o as $dVYoF => $ilmCA) { 
            echo sprintf("<option value="%s" %s>%s</option>", $dVYoF, $dVYoF === $jo6UJ ? "selected" : '', $ilmCA); 
            j7LSF: 
        } 
        uyUuu: 
        echo "</select>"; 
        echo "</div>"; 
    } 
 
    private function displayShipments(int $dLN9q, array $bB1ty): void 
    { 
        if (empty($dLN9q) || empty($bB1ty) || !is_array($bB1ty)) { 
            return; 
        } 
        echo "<hr/>"; 
        echo sprintf("<div data-order_id="%s" class="%s orderShipments">", $dLN9q, $this->id); 
        echo sprintf("<div><strong>%s %s</strong></div>", apply_filters($this->id . "_getName", ''), __("Shipment", $this->id)); 
        foreach ($bB1ty as $Tf6Xf => $LRMXf) { 
            $this->displayShipment($dLN9q, (string)$Tf6Xf, $LRMXf); 
            j13wO: 
        } 
        JqOlW: 
        echo "</div>"; 
    } 
 
    private function displayShipment(int $dLN9q, string $Tf6Xf, array $LRMXf): bool 
    { 
        if (empty($LRMXf) || empty($Tf6Xf)) { 
            return false; 
        } 
        echo sprintf("<div data-order_id="%s" data-shipment_id="%s" class="%s orderShipment">", $dLN9q, $Tf6Xf, $this->id); 
        echo "<hr/>"; 
        $bgdA4 = ''; 
        if (false === empty($LRMXf["service"]) && false === empty($LRMXf["rates"][$LRMXf["service"]])) { 
            $gt2pR = $LRMXf["rates"][$LRMXf["service"]]; 
            $bgdA4 = $gt2pR["postage_description"]; 
        } elseif (false === empty($LRMXf["service"])) { 
            $ahDuE = apply_filters($this->id . "_getServices", []); 
            if (false === empty($ahDuE[$LRMXf["service"]])) { 
                $bgdA4 = $ahDuE[$LRMXf["service"]]; 
            } 
        } 
        if (false === empty($bgdA4)) { 
            echo sprintf("<strong>%s</strong><br/>", $bgdA4); 
        } 
        do_action($this->id . "_before_admin_shipment_details", $LRMXf); 
        if (false === empty($LRMXf["carrier_tracking_code"]) && false === empty($LRMXf["tracking_url"])) { 
            echo sprintf("<a href="%s" target="_blank">%s</a><br/>", $LRMXf["tracking_url"], $LRMXf["carrier_tracking_code"]); 
        } elseif (false === empty($LRMXf["carrier_tracking_code"])) { 
            echo sprintf("%s<br/>", $LRMXf["carrier_tracking_code"]); 
        } 
        if (false === empty($LRMXf["status_name"])) { 
            echo sprintf("<strong>%s</strong> <span>%s</span><br/>", __("Status:", $this->id), $LRMXf["status_name"]); 
        } 
        $waKt0 = ''; 
        if (false === empty($LRMXf["postage_label_png_url"])) { 
            $waKt0 .= sprintf("<a href="%s" target="_blank">%s</a>", $LRMXf["postage_label_png_url"], __("PNG", $this->id)); 
        } 
        if (false === empty($LRMXf["postage_label_pdf_url"])) { 
            if (false === empty($waKt0)) { 
                $waKt0 .= " | "; 
            } 
            $waKt0 .= sprintf("<a href="%s" target="_blank">%s</a>", $LRMXf["postage_label_pdf_url"], __("PDF", $this->id)); 
        } 
        if (empty($waKt0) && false === empty($LRMXf["postage_label"])) { 
            foreach ($LRMXf["postage_label"] as $iotea) { 
                if (false === empty($waKt0)) { 
                    $waKt0 .= " | "; 
                } 
                $waKt0 .= sprintf("<a href="%s" target="_blank">%s</a>", $iotea["url"], strtoupper($iotea["file_type"] ?? $iotea["fileType"] ?? "pdf")); 
                JZu7w: 
            } 
            b__Ic: 
        } 
        if (false === empty($waKt0)) { 
            echo sprintf("<strong>%s</strong> %s<br/>", __("Label:", $this->id), $waKt0); 
        } 
        if (false === empty($LRMXf["forms"])) { 
            echo "<hr/>"; 
            echo sprintf("<strong>%s</strong><br/>", __("Forms:", $this->id)); 
            foreach ($LRMXf["forms"] as $t9613) { 
                $zqP1I = strtoupper(preg_replace("/_/", " ", $t9613["document_type"] ?? $t9613["type"])); 
                echo sprintf("- <a href="%s" target="_blank">%s</a><br/>", $t9613["url"], $zqP1I); 
                fxpRX: 
            } 
            d337W: 
        } 
        echo "</div>"; 
        return true; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
declare (strict_types=1);

namespace OneTeamSoftware\WC\Shipping;

use OneTeamSoftware\Logger\LoggerInterface;
use OneTeamSoftware\WP\Admin\Notices\Notices;

class AdminOrders
{
    private $id;
    private $pluginPath;
    private $settings;
    private $version;
    private $notices;
    private $logger;
    private $orderIdGetter;
    private $weightUnit;
    private $dimensionUnit;
    private $didScriptsEnqueue;

    public function __construct(string $ZLNlC, string $LCNZu, LoggerInterface $MM3oL, array $dK4bD = [], string $OXU_a = null)
    {
        $this->id = $ZLNlC;
        $this->pluginPath = $LCNZu;
        $this->settings = array_merge(["\144\x65\x66\141\165\154\x74\x53\x68\x69\x70\x6d\145\x6e\x74\x44\145\163\143\x72\151\160\x74\151\x6f\156" => '', "\145\x6e\x61\x62\154\145\102\x75\x6c\153\123\x68\151\160\155\x65\156\164\x43\x72\x65\x61\x74\151\157\x6e" => "\156\x6f", "\x75\163\145\x53\145\x72\166\151\x63\145\x53\x65\164\x74\151\x6e\147\163\106\x6f\162\x42\165\x6c\153\123\x68\x69\x70\x6d\145\156\164\103\x72\145\141\x74\151\157\156" => "\x6e\157", "\162\145\161\x75\151\x72\x65\124\x6f\102\x75\x6c\x6b\x43\x72\x65\x61\x74\x65\123\x68\151\x70\155\145\x6e\x74\163" => "\x79\145\x73", "\x72\145\x71\x75\x69\x72\145\x54\157\102\x75\x6c\x6b\x50\165\x72\143\x68\x61\x73\145\120\x6f\163\x74\141\147\145" => "\171\145\163", "\162\x65\x71\x75\151\x72\145\124\157\102\165\154\x6b\x50\x75\x72\143\150\141\x73\x65\116\145\167\x50\157\163\x74\x61\147\145" => "\156\x6f", "\145\156\141\142\x6c\x65\123\145\162\x76\151\143\x65\x73" => "\171\x65\163", "\x77\145\x69\147\150\164\x5f\165\x6e\x69\x74" => "\147", "\144\151\155\x65\x6e\163\151\157\156\137\165\156\x69\164" => "\155\x6d"], $dK4bD);
        $this->version = $OXU_a;
        $this->notices = new Notices($this->id . "\137\141\x64\x6d\x69\156\x5f\157\162\x64\145\162\163");
        $this->logger = $MM3oL;
        $this->orderIdGetter = new OrderIdGetter();
        $this->weightUnit = $this->settings["\x77\145\x69\x67\x68\x74\137\165\156\x69\164"];
        $this->dimensionUnit = $this->settings["\144\151\155\145\x6e\x73\x69\x6f\156\137\x75\156\151\164"];
        $this->didScriptsEnqueue = false;
    }

    public function register(): void
    {
        add_filter("\x62\165\x6c\153\137\x61\143\164\x69\x6f\156\163\55\x65\x64\x69\164\x2d\163\150\x6f\x70\137\x6f\x72\x64\145\162", [$this, "\x6f\x6e\x41\x64\144\102\x75\154\153\x41\x63\x74\151\x6f\156\163"]);
        add_filter("\142\165\154\153\x5f\141\x63\x74\151\x6f\x6e\163\x2d\167\x6f\x6f\x63\x6f\155\x6d\x65\x72\143\x65\x5f\x70\x61\x67\145\x5f\x77\143\55\157\162\144\x65\x72\x73", [$this, "\x6f\x6e\x41\x64\x64\x42\165\154\x6b\x41\143\x74\x69\157\x6e\163"]);
        add_filter("\x6d\x61\x6e\x61\147\145\x5f\x73\x68\x6f\x70\137\157\162\144\x65\x72\x5f\160\157\163\164\x73\x5f\x63\157\x6c\x75\x6d\156\163", [$this, "\157\x6e\x41\144\x64\103\157\154\x75\155\156\x73"], 100);
        add_filter("\155\x61\x6e\x61\x67\x65\x5f\x77\157\157\x63\x6f\x6d\x6d\145\x72\x63\145\137\x70\x61\147\145\137\167\143\55\157\x72\144\145\x72\163\137\143\x6f\154\x75\155\x6e\x73", [$this, "\157\x6e\x41\x64\144\103\x6f\x6c\165\155\x6e\x73"], 100);
        add_action("\x6d\141\156\x61\x67\145\x5f\x73\150\157\x70\x5f\x6f\x72\144\145\x72\x5f\x70\x6f\163\164\163\x5f\x63\165\163\x74\x6f\x6d\x5f\x63\x6f\154\x75\155\x6e", [$this, "\x6f\156\104\x69\163\160\154\x61\x79\103\x6f\154\x75\155\x6e"]);
        add_action("\x6d\x61\156\x61\x67\145\x5f\x77\157\157\x63\x6f\155\x6d\x65\x72\x63\x65\x5f\x70\141\x67\x65\x5f\x77\143\x2d\157\x72\x64\145\x72\x73\137\x63\x75\163\164\157\155\137\x63\157\154\x75\x6d\156", [$this, "\x6f\156\104\x69\163\x70\x6c\x61\x79\x43\x6f\x6c\x75\x6d\x6e"], 10, 2);
        add_action("\x77\160\137\x61\152\x61\170\x5f" . $this->id . "\x5f\143\162\x65\x61\x74\145\x53\150\x69\x70\x6d\145\x6e\164\x73", [$this, "\x6f\156\103\162\145\141\x74\145\x53\x68\x69\x70\155\x65\156\164\x73"]);
        add_action("\167\x70\137\141\152\x61\170\137" . $this->id . "\137\142\165\171\x53\x68\151\x70\x6d\145\x6e\164\x73", [$this, "\x6f\156\x42\165\x79\x53\x68\151\160\x6d\145\156\x74\x73"]);
        add_action("\167\160\x5f\x61\152\x61\170\137" . $this->id . "\137\144\x6f\x77\156\154\x6f\x61\144", [$this, "\157\x6e\x44\157\167\x6e\x6c\157\141\x64"]);
        add_action("\x77\x70\x5f\x61\152\x61\x78\x5f" . $this->id . "\137\165\x70\144\141\x74\x65\117\x72\144\x65\162\163", [$this, "\x6f\x6e\x55\x70\x64\141\164\145\117\x72\144\145\162\163"]);
        add_action($this->id . "\x5f\101\x64\155\151\x6e\x4f\162\x64\145\x72\x73\137\x64\151\163\160\154\141\171\117\x72\144\145\x72\123\x68\151\160\155\x65\x6e\164\163", [$this, "\x64\x69\163\160\x6c\141\171\117\162\x64\x65\x72\x53\x68\x69\160\x6d\145\x6e\x74\x73"], 1, 1);
    }

    public function setSettings(array $dK4bD): void
    {
        if (false === empty($dK4bD)) {
            $this->settings = array_replace_recursive($this->settings, $dK4bD);
        }
    }

    public function enqueueScripts(array $dK4bD = []): void
    {
        if ($this->didScriptsEnqueue) {
            return;
        }
        $this->didScriptsEnqueue = true;
        $Ptc5J = "\x6d\151\x6e\x2e\143\163\163";
        $R3SKf = "\155\x69\x6e\x2e\152\163";
        if (defined("\x57\120\x5f\x44\105\x42\125\107") && WP_DEBUG) {
            $Ptc5J = "\x63\x73\163";
            $R3SKf = "\x6a\163";
        }
        wp_register_script($this->id . "\x2d\154\141\142\145\x6c\154\x6f\x61\144\x65\162\x70\x61\147\145", plugins_url("\x61\163\x73\145\164\163\57\152\163\x2f\x4c\141\x62\145\154\x4c\157\141\x64\145\x72\x50\x61\147\x65\56" . $R3SKf, str_replace("\160\x68\x61\x72\72\57\x2f", '', $this->pluginPath)), ["\152\x71\x75\145\x72\171", "\152\161\x75\x65\x72\171\x2d\142\154\157\x63\153\x75\x69"], $this->version);
        wp_enqueue_script($this->id . "\55\x6c\141\x62\x65\154\x6c\157\x61\144\x65\162\x70\x61\147\x65");
        wp_register_style($this->id . "\x2d\x61\x64\155\x69\156\x6f\162\144\145\x72\x73", plugins_url("\x61\163\163\x65\164\163\57\x63\x73\x73\x2f\x41\x64\155\151\156\117\x72\x64\x65\162\163\x2e" . $Ptc5J, str_replace("\x70\150\x61\162\x3a\x2f\57", '', $this->pluginPath)), [], $this->version);
        wp_register_script($this->id . "\x2d\x61\144\x6d\151\156\x6f\162\144\x65\162\163", plugins_url("\141\x73\163\x65\x74\x73\57\152\163\x2f\x41\x64\x6d\151\x6e\x4f\x72\144\x65\162\163\56" . $R3SKf, str_replace("\160\x68\141\x72\x3a\x2f\57", '', $this->pluginPath)), ["\152\161\x75\x65\162\x79", "\x6a\x71\x75\x65\x72\x79\55\142\154\x6f\143\153\x75\151"], $this->version);
        wp_localize_script($this->id . "\55\141\x64\x6d\x69\156\157\162\144\x65\162\163", "\141\144\155\x69\x6e\x6f\x72\x64\145\x72\x73\x5f\x73\145\164\164\x69\x6e\x67\163", $dK4bD);
        wp_enqueue_script($this->id . "\55\141\x64\155\x69\x6e\157\x72\x64\145\x72\x73");
        wp_enqueue_style($this->id . "\x2d\141\x64\155\x69\x6e\x6f\x72\x64\145\162\163");
    }

    public function onUpdateOrders(): void
    {
        $Te2ak = $this->getRequestedOrders();
        if (empty($Te2ak)) {
            exit;
        }
        $this->logger->debug(__FILE__, 201, "\x6f\x6e\x55\160\x64\x61\164\145\117\x72\x64\145\x72\x73\72\40\x25\x73", print_r($Te2ak, true));
        foreach ($Te2ak as $dLN9q => $G4uxU) {
            do_action($this->id . "\x5f\163\145\x74\117\x72\x64\145\162\123\150\151\x70\x6d\x65\x6e\164\x4d\x65\164\141", $dLN9q, $G4uxU);
            AIrP8:
        }
        JOOaX:
        $JMUeq = apply_filters($this->id . "\137\x67\145\x74\x45\162\x72\157\x72\115\x65\x73\163\x61\147\145\163", []);
        if (empty($JMUeq)) {
            $this->notices->title = __("\x4f\162\x64\145\162\40\x68\x61\163\x20\142\x65\x65\x6e\40\x75\x70\144\x61\x74\x65\x64", $this->id);
        } else {
            $this->notices->title = __("\x55\x6e\x61\x62\154\145\x20\x74\157\40\x75\x70\144\x61\164\x65\40\157\x72\144\x65\162", $this->id);
        }
        $this->displayNotices();
        exit;
    }

    public function onAddBulkActions(array $fK9wk): array
    {
        if ($this->settings["\145\156\141\142\154\x65\102\165\154\x6b\x53\150\x69\160\155\145\x6e\164\103\162\x65\x61\164\x69\157\156"] !== "\x79\145\x73") {
            return $fK9wk;
        }
        if ($this->mustCreateShipments()) {
            $fK9wk[$this->id . "\x5f\x63\162\145\141\x74\x65\123\150\151\160\155\x65\156\x74\x73"] = sprintf("\45\x73\72\x20\45\x73", apply_filters($this->id . "\137\x67\x65\164\x4e\x61\x6d\145", ''), __("\x43\162\x65\x61\x74\x65\x20\x53\x68\x69\160\155\145\156\x74\163", $this->id));
        }
        if ($this->mustPurchasePostage()) {
            $fK9wk[$this->id . "\x5f\142\x75\x79\123\150\x69\x70\155\x65\156\x74\163"] = sprintf("\x25\163\72\x20\x25\163", apply_filters($this->id . "\137\147\x65\164\x4e\141\x6d\145", ''), __("\x42\x75\171\40\x53\x68\x69\160\x70\151\156\147\40\x4c\141\142\x65\x6c\163", $this->id));
        }
        $fK9wk[$this->id . "\137\144\157\167\156\x6c\157\141\144"] = sprintf("\x25\x73\72\x20\x25\163", apply_filters($this->id . "\137\x67\145\x74\x4e\x61\155\x65", ''), __("\120\x72\x69\156\x74\x20\x53\x68\151\160\160\151\156\x67\40\x4c\141\x62\x65\x6c\163\x20\x61\156\144\40\x46\157\x72\155\x73", $this->id));
        return $fK9wk;
    }

    public function onDownload(): void
    {
        $voBOy = $this->getRequestedOrderIds();
        if (empty($voBOy) || $this->getRequestedAction() !== $this->id . "\x5f\144\157\167\156\x6c\x6f\141\144") {
            return;
        }
        $this->logger->debug(__FILE__, 268, "\x6f\x6e\x44\x6f\167\156\154\157\x61\144\x3a\40\x25\163", print_r($voBOy, true));
        wc_set_time_limit(0);
        do_action($this->id . "\137\x63\154\x65\141\162\105\x72\162\x6f\x72\x4d\x65\x73\x73\141\x67\x65\x73");
        $bpfZQ = true;
        $NHpE8 = [];
        if ($this->mustPurchasePostage()) {
            $NHpE8 = apply_filters($this->id . "\x5f\147\145\164\x4f\x72\144\x65\x72\123\x68\151\x70\x6d\x65\156\164\163\x46\x6f\162\117\x72\144\145\x72\x73", [], $voBOy);
        } else {
            $NHpE8 = apply_filters($this->id . "\x5f\160\x75\162\143\x68\141\x73\x65\120\x6f\x73\164\141\x67\145\x46\x6f\162\x4f\162\144\145\x72\163", [], $voBOy, $this->mustCreateShipments(), $this->mustPurchaseNewPostage());
            $bpfZQ = false === empty($NHpE8);
        }
        $CZlIb = [];
        if ($bpfZQ) {
            $CZlIb = apply_filters($this->id . "\x5f\x63\x72\145\x61\164\145\120\x64\x66\106\x69\x6c\145\106\157\x72\117\x72\144\145\162\x53\150\151\x70\x6d\145\x6e\164\163", [], $NHpE8);
        }
        if (isset($CZlIb["\165\162\154"])) {
            $this->notices->title = sprintf("\45\x73\40\x3c\x61\x20\150\x72\145\146\75\x22\45\163\x22\40\164\141\162\147\x65\x74\x3d\x22\137\142\154\x61\x6e\153\42\40\143\154\x61\163\x73\75\42\x25\163\40\160\157\x73\x74\141\x67\x65\114\141\142\145\x6c\x73\101\x6e\x64\106\x6f\x72\x6d\x73\x22\x3e\45\x73\x3c\57\x61\x3e", __("\x53\150\x69\160\x70\x69\156\x67\x20\154\x61\142\x65\154\x73\40\141\x6e\144\40\146\x6f\162\x6d\163\x20\x68\141\x76\x65\x20\x62\x65\x65\x6e\40\x73\165\143\x63\x65\163\x73\x66\x75\x6c\154\171\x20\143\x72\x65\141\x74\145\144\x2c\40", $this->id), $CZlIb["\x75\x72\x6c"], $this->id, __("\143\154\151\143\x6b\40\150\145\162\145\40\x74\157\40\157\x70\x65\156\x20\151\164", $this->id));
        } else {
            $this->notices->title = __("\x55\156\141\x62\154\145\x20\x74\x6f\x20\144\157\167\x6e\x6c\x6f\141\x64\x20\x61\156\x79\x20\x6f\146\40\164\x68\x65\40\x73\150\x69\160\160\x69\156\x67\x20\x6c\x61\142\x65\154\x73\40\x6f\162\x20\x66\157\162\155\x73", $this->id);
        }
        $this->displayNotices();
        $this->displayOrderShipments($NHpE8);
        exit;
    }

    public function onBuyShipments(): void
    {
        $voBOy = $this->getRequestedOrderIds();
        if (empty($voBOy) || $this->getRequestedAction() !== $this->id . "\x5f\x62\165\171\123\x68\151\x70\x6d\145\156\x74\x73") {
            return;
        }
        $this->logger->debug(__FILE__, 325, "\x6f\156\102\165\x79\x53\x68\151\160\155\145\156\x74\163\x3a\x20\45\163", print_r($voBOy, true));
        wc_set_time_limit(0);
        do_action($this->id . "\x5f\x63\154\x65\x61\162\105\162\162\x6f\x72\x4d\x65\163\x73\x61\x67\145\163");
        $NHpE8 = apply_filters($this->id . "\x5f\160\x75\162\143\150\141\x73\145\120\157\163\x74\x61\x67\x65\x46\x6f\x72\x4f\162\x64\145\x72\x73", [], $voBOy, $this->mustCreateShipments(), $this->mustPurchaseNewPostage());
        if (false === empty($NHpE8)) {
            $this->notices->title = __("\123\150\151\160\155\145\x6e\164\x73\x20\x68\x61\166\145\x20\x62\x65\x65\x6e\x20\x73\x75\143\x63\145\x73\x73\x66\x75\154\x6c\171\40\160\x75\162\143\150\141\x73\145\144", $this->id);
        } else {
            $this->notices->title = __("\105\x72\162\x6f\x72\163\x20\150\x61\166\145\40\x6f\143\143\x75\162\x72\145\144\x20\x64\165\x72\x69\x6e\147\40\160\x75\162\x63\150\x61\163\151\156\x67\40\157\x66\x20\x74\x68\145\40\163\150\151\x70\155\145\x6e\164\163", $this->id);
        }
        if (count($NHpE8) >= count($voBOy)) {
            do_action($this->id . "\x5f\143\154\145\141\162\105\162\162\x6f\162\115\145\163\163\x61\147\145\x73");
        }
        $this->displayNotices();
        $this->displayOrderShipments($NHpE8);
        exit;
    }

    public function onCreateShipments(): void
    {
        if (!apply_filters($this->id . "\x5f\x68\x61\x73\x43\162\x65\141\x74\x65\x53\150\x69\x70\x6d\x65\x6e\164\x46\145\x61\164\x75\162\x65", false)) {
            return;
        }
        $voBOy = $this->getRequestedOrderIds();
        if (empty($voBOy) || $this->getRequestedAction() !== $this->id . "\137\x63\162\x65\141\x74\x65\123\150\x69\160\155\145\156\164\x73") {
            return;
        }
        $this->logger->debug(__FILE__, 371, "\x6f\x6e\x43\x72\145\141\x74\145\123\x68\x69\160\155\x65\156\x74\x73\x3a\40\x25\163", print_r($voBOy, true));
        wc_set_time_limit(0);
        do_action($this->id . "\137\x63\x6c\x65\x61\162\105\162\162\x6f\x72\115\145\x73\x73\141\147\145\x73");
        $NHpE8 = apply_filters($this->id . "\137\143\162\x65\x61\164\x65\x53\x68\x69\160\x6d\x65\156\x74\x73\106\157\162\117\162\x64\145\x72\x73", [], $voBOy);
        if (false === empty($NHpE8)) {
            $this->notices->title = __("\123\150\x69\160\x6d\145\x6e\x74\163\40\x68\x61\166\x65\x20\142\145\145\156\x20\x73\x75\143\143\x65\163\x73\146\x75\x6c\x6c\x79\x20\143\x72\145\141\164\x65\x64", $this->id);
        } else {
            $this->notices->title = __("\x45\x72\x72\x6f\x72\163\40\x68\141\166\145\x20\157\x63\143\x75\x72\x72\x65\x64\40\x64\x75\x72\x69\156\147\40\x63\x72\145\x61\x74\151\157\156\40\x6f\146\40\x74\x68\145\40\x73\x68\x69\x70\155\x65\156\164\163", $this->id);
        }
        if (count($NHpE8) >= count($voBOy)) {
            do_action($this->id . "\x5f\x63\x6c\145\141\162\105\162\162\x6f\162\x4d\145\163\163\141\x67\x65\x73");
        }
        $this->displayNotices();
        $this->displayOrderShipments($NHpE8);
        exit;
    }

    public function onAddColumns(array $nuVok): array
    {
        $nuVok["\163\150\151\160\155\145\x6e\x74\137\x74\x72\x61\x63\153\x69\156\x67"] = __("\123\x68\151\x70\155\145\156\x74\x20\124\162\141\x63\153\x69\x6e\x67", $this->id);
        return $nuVok;
    }

    public function onDisplayColumn(string $zJe1z, $QWGCf = null): void
    {
        if ("\163\x68\151\160\x6d\145\x6e\x74\x5f\x74\x72\141\143\x6b\151\156\x67" !== $zJe1z) {
            return;
        }
        $dLN9q = 0;
        if (is_object($QWGCf)) {
            $dLN9q = $this->orderIdGetter->getOrderId($QWGCf);
        }
        global $post;
        if ($dLN9q === 0 && is_object($post) && isset($post->ID)) {
            $dLN9q = $post->ID;
        }
        if ($dLN9q === 0) {
            return;
        }
        $dK4bD = ["\151\x64" => $this->id];
        $this->enqueueScripts($dK4bD);
        $bB1ty = apply_filters($this->id . "\x5f\x67\x65\164\x4f\162\144\x65\x72\123\x68\x69\x70\x6d\145\x6e\164\x73", [], $dLN9q);
        if (empty($bB1ty)) {
            if ("\x79\x65\x73" === $this->settings["\145\x6e\141\142\154\145\102\165\154\153\x53\150\151\x70\155\x65\x6e\x74\103\x72\145\141\x74\x69\x6f\156"]) {
                $this->displayParcels($dLN9q);
            }
        } else {
            $this->displayShipments($dLN9q, $bB1ty);
        }
    }

    public function displayOrderShipments(array $NHpE8): void
    {
        foreach ($NHpE8 as $dLN9q => $bB1ty) {
            echo sprintf("\74\x64\151\166\x20\144\x61\164\x61\55\157\162\x64\x65\x72\137\151\x64\x3d\42\45\163\42\40\x63\x6c\141\163\x73\75\42\x6f\x72\144\145\x72\123\x68\151\160\x6d\145\x6e\164\x73\42\x3e", $dLN9q);
            $this->displayShipments($dLN9q, $bB1ty);
            echo "\74\x2f\x64\x69\x76\x3e";
            spo8X:
        }
        tAKbV:
    }

    private function getRequestedAction(): string
    {
        $m0uXc = '';
        if (false === empty($_REQUEST["\x61\143\x74\151\157\156"]) && $_REQUEST["\141\143\x74\151\x6f\156"] !== -1) {
            $m0uXc = $_REQUEST["\x61\x63\x74\151\x6f\156"];
        } elseif (false === empty($_REQUEST["\141\143\164\x69\x6f\x6e\x32"]) && $_REQUEST["\x61\143\x74\151\157\156\x32"] !== -1) {
            $m0uXc = $_REQUEST["\141\x63\x74\151\x6f\156\x32"];
        }
        return $m0uXc;
    }

    private function getRequestedOrders(): array
    {
        if (!wp_verify_nonce($_POST[$this->id . "\x5f\x6e\157\x6e\143\x65"], "\142\165\154\x6b\55\160\x6f\x73\x74\163") && !wp_verify_nonce($_POST[$this->id . "\x5f\156\157\x6e\x63\145"], "\x62\165\x6c\153\x2d\157\x72\144\145\x72\x73")) {
            $this->notices->displayWithoutNotices = true;
            $this->notices->type = "\x65\x72\x72\157\x72";
            $this->notices->title = __("\x53\145\x73\x73\151\157\156\x20\150\x61\x73\40\145\170\160\151\x72\x65\144\54\40\x70\x6c\145\141\163\x65\40\x72\145\x6c\157\x61\x64\40\160\141\x67\x65", $this->id);
            $this->notices->display();
            return [];
        }
        if (empty($_POST[$this->id . "\137\157\x72\x64\145\x72\163"]) || !is_array($_POST[$this->id . "\x5f\x6f\x72\144\145\x72\x73"])) {
            $this->notices->displayWithoutNotices = true;
            $this->notices->type = "\x65\162\162\x6f\x72";
            $this->notices->title = __("\111\156\x76\x61\154\151\x64\x20\x69\x6e\x70\165\164\x20\x64\x61\x74\x61", $this->id);
            $this->notices->display();
            return [];
        }
        $cQdx0 = ["\154\145\x6e\147\x74\150" => __("\114\x65\156\147\164\x68", $this->id), "\167\151\144\164\x68" => __("\x57\151\x64\x74\x68", $this->id), "\150\x65\151\x67\x68\164" => __("\110\x65\151\147\x68\x74", $this->id), "\167\145\151\x67\x68\164" => __("\127\x65\151\x67\x68\164", $this->id)];
        $ahDuE = apply_filters($this->id . "\137\x67\x65\164\x53\145\x72\166\x69\143\145\x73", []);
        $TRgER = apply_filters($this->id . "\x5f\x67\145\164\120\x61\x63\x6b\x61\147\145\x54\171\x70\145\163", []);
        $bJr6o = apply_filters($this->id . "\137\147\x65\x74\103\x75\x72\162\x65\156\143\x69\145\x73", []);
        $Te2ak = $_POST[$this->id . "\137\157\x72\144\x65\x72\163"];
        foreach ($Te2ak as $QWGCf) {
            if (empty($QWGCf["\x73\145\x72\x76\x69\x63\x65"]) || empty($ahDuE[$QWGCf["\163\x65\x72\x76\x69\143\x65"]])) {
                $this->notices->displayWithoutNotices = true;
                $this->notices->type = "\x65\162\x72\157\162";
                $this->notices->title = __("\125\x6e\x6b\x6e\x6f\x77\156\40\163\145\162\x76\x69\143\145", $this->id);
                $this->notices->display();
                return [];
            }
            if (empty($QWGCf["\x70\x61\162\143\x65\154\x73"]) || !is_array($QWGCf["\x70\x61\162\143\145\x6c\163"])) {
                $this->notices->displayWithoutNotices = true;
                $this->notices->type = "\145\x72\162\x6f\162";
                $this->notices->title = __("\x55\156\x6b\x6e\157\167\156\40\160\x61\162\143\x65\154\x20\x69\x6e\x66\x6f\x72\155\x61\164\151\157\x6e", $this->id);
                $this->notices->display();
                return [];
            }
            $LLX65 = $QWGCf["\x70\141\162\143\145\x6c\x73"];
            foreach ($LLX65 as $pLlsY) {
                foreach ($cQdx0 as $dVYoF => $QyYHy) {
                    if (!isset($pLlsY[$dVYoF]) || !is_numeric($pLlsY[$dVYoF]) || $pLlsY[$dVYoF] < 0) {
                        $this->notices->displayWithoutNotices = true;
                        $this->notices->type = "\145\x72\x72\x6f\x72";
                        $this->notices->title = sprintf(__("\x49\x6e\166\x61\154\x69\x64\x20\x25\163\40\166\x61\154\165\145", $this->id), $QyYHy);
                        $this->notices->display();
                        return [];
                    }
                    if (empty($pLlsY["\x74\x79\160\x65"]) || empty($TRgER[$pLlsY["\x74\x79\160\145"]])) {
                        $this->notices->displayWithoutNotices = true;
                        $this->notices->type = "\x65\162\x72\157\162";
                        $this->notices->title = __("\125\x6e\153\x6e\157\167\156\40\x70\141\x72\143\145\154\x20\164\x79\160\145", $this->id);
                        $this->notices->display();
                        return [];
                    }
                    if (empty($pLlsY["\x63\165\162\x72\x65\156\143\x79"]) || empty($bJr6o[$pLlsY["\x63\165\x72\162\145\156\143\x79"]])) {
                        $this->notices->displayWithoutNotices = true;
                        $this->notices->type = "\x65\162\x72\157\x72";
                        $this->notices->title = __("\x55\x6e\153\x6e\x6f\x77\156\x20\x63\165\x72\162\x65\x6e\143\x79", $this->id);
                        $this->notices->display();
                        return [];
                    }
                    RfbgR:
                }
                ggj5Y: hjCRu:
            }
            z5Pvp: KqaML:
        }
        a0RG2:
        return $Te2ak;
    }

    private function getRequestedOrderIds(): array
    {
        if ($this->settings["\145\x6e\x61\142\x6c\145\x42\x75\154\x6b\x53\150\x69\160\x6d\145\156\x74\103\x72\145\141\x74\x69\157\x6e"] !== "\x79\x65\x73") {
            return [];
        }
        if (!wp_verify_nonce($_REQUEST["\x5f\x77\x70\156\157\156\143\x65"], "\142\x75\x6c\153\55\160\x6f\x73\x74\163") && !wp_verify_nonce($_REQUEST["\x5f\167\x70\156\x6f\156\143\145"], "\142\x75\154\153\55\157\162\144\x65\x72\x73")) {
            return [];
        }
        $voBOy = $_REQUEST["\160\x6f\x73\x74"] ?? $_REQUEST["\157\x72\x64\x65\162"] ?? [];
        if ($this->getRequestedAction() === '' || empty($voBOy)) {
            return [];
        }
        return array_map("\x61\142\x73\151\x6e\164", (array)$voBOy);
    }

    private function mustCreateShipments(): bool
    {
        $dNcvP = false;
        if (apply_filters($this->id . "\x5f\150\x61\x73\x43\x72\145\x61\164\145\x53\150\x69\160\x6d\x65\156\164\x46\145\x61\x74\x75\162\x65", false)) {
            $dNcvP = "\x79\x65\163" === $this->settings["\162\145\161\x75\x69\x72\145\124\x6f\x42\x75\x6c\153\x43\x72\145\141\164\x65\x53\150\x69\x70\155\x65\156\x74\x73"];
        }
        return $dNcvP;
    }

    private function mustPurchasePostage(): bool
    {
        return "\171\145\163" === $this->settings["\x72\145\161\165\x69\162\x65\124\x6f\102\x75\x6c\x6b\120\x75\162\x63\x68\141\x73\x65\x50\x6f\163\x74\141\x67\x65"];
    }

    private function mustPurchaseNewPostage(): bool
    {
        return "\171\x65\163" === $this->settings["\162\x65\161\x75\151\x72\x65\124\157\102\x75\x6c\153\120\x75\x72\143\150\x61\x73\145\x4e\145\167\120\x6f\x73\x74\x61\147\x65"];
    }

    private function displayNotices(): void
    {
        $JMUeq = apply_filters($this->id . "\x5f\147\x65\x74\x45\162\x72\x6f\162\x4d\x65\163\163\141\147\145\x73", []);
        if (false === empty($JMUeq)) {
            $this->notices->type = "\x65\x72\162\x6f\x72";
            foreach ($JMUeq as $CvFbJ) {
                $this->notices->add($CvFbJ);
                w7VvH:
            }
            Q71DO:
        } else {
            $this->notices->type = "\x75\x70\x64\x61\164\145\144";
        }
        $this->notices->displayWithoutNotices = true;
        $this->notices->display();
    }

    private function displayParcels(int $dLN9q): void
    {
        $LLX65 = [];
        $G4uxU = apply_filters($this->id . "\x5f\x67\x65\x74\117\162\144\145\162\123\x68\151\x70\x6d\145\156\164\115\x65\164\141", [], $dLN9q);
        if (empty($G4uxU["\x70\x61\x72\143\145\x6c\x73"])) {
            return;
        }
        $f4Ye9 = $G4uxU["\x73\x65\162\x76\x69\143\x65"];
        $LLX65 = $G4uxU["\160\x61\x72\x63\145\x6c\x73"];
        $TRgER = apply_filters($this->id . "\137\147\145\x74\x50\141\143\x6b\141\x67\145\x54\171\x70\145\163", []);
        echo sprintf("\74\x64\151\166\40\x63\154\141\x73\x73\75\42\45\x73\x20\141\144\155\151\x6e\117\x72\144\x65\x72\x73\x22\x3e", $this->id);
        echo sprintf("\x3c\x64\x69\166\x3e\74\163\x74\162\157\x6e\147\x3e\x25\163\74\x2f\x73\164\x72\157\156\x67\x3e\74\x2f\144\x69\166\x3e\x3c\x68\162\x2f\x3e", apply_filters($this->id . "\x5f\147\145\164\116\x61\x6d\145", ''));
        echo "\74\x64\151\x76\76";
        echo sprintf("\x3c\x73\145\154\x65\143\x74\40\x74\171\160\145\75\x22\x74\145\x78\164\42\x20\x6e\x61\x6d\145\x3d\x22\45\x73\x5f\x6f\x72\x64\x65\x72\x73\133\x25\163\135\x5b\163\x65\x72\x76\x69\143\x65\135\42\76", $this->id, $dLN9q);
        $ahDuE = [];
        if (empty($f4Ye9)) {
            $ahDuE = ['' => __("\123\x65\154\x65\143\x74\40\x61\40\163\x68\151\x70\160\x69\x6e\x67\x20\163\x65\x72\x76\151\143\145", $this->id)];
        }
        $ahDuE = array_merge($ahDuE, apply_filters($this->id . "\x5f\x67\145\x74\x53\x65\162\x76\151\x63\x65\x73", []));
        $KJvgT = "\x79\145\163" === $this->settings["\145\156\141\x62\x6c\x65\x53\x65\x72\x76\151\x63\x65\x73"];
        if (empty($this->settings["\x73\x65\x72\x76\151\x63\x65\163"])) {
            $KJvgT = true;
        }
        foreach ($ahDuE as $M7w4L => $bgdA4) {
            if ("\x79\x65\x73" === $this->settings["\x75\x73\145\x53\145\x72\x76\151\143\145\123\x65\164\x74\151\156\147\x73\x46\x6f\162\102\x75\154\153\123\x68\x69\x70\x6d\x65\156\x74\x43\162\145\141\164\x69\x6f\156"]) {
                $cZArj = ["\145\156\x61\142\154\x65\x64" => $KJvgT ? "\171\x65\163" : "\156\157"];
                if (false === empty($this->settings["\163\x65\162\x76\x69\143\x65\163"][$M7w4L])) {
                    $cZArj = $this->settings["\163\x65\x72\x76\151\143\145\x73"][$M7w4L];
                }
                if ($cZArj["\x65\x6e\141\x62\154\145\x64"] === "\x6e\157") {
                    goto L2Isr;
                }
            }
            echo sprintf("\74\157\160\164\151\x6f\x6e\x20\x76\x61\x6c\x75\145\75\x22\x25\163\42\40\45\163\76\45\163\x3c\x2f\x6f\x70\164\x69\157\156\76", $M7w4L, $M7w4L === $f4Ye9 ? "\x73\145\x6c\x65\143\164\x65\144" : '', apply_filters($this->id . "\137\x73\x65\162\x76\151\x63\x65\137\156\x61\155\x65", $bgdA4, $M7w4L));
            L2Isr:
        }
        UjVgv:
        echo "\x3c\x2f\x73\x65\154\145\143\x74\x3e";
        echo "\x3c\x2f\x64\x69\x76\x3e";
        foreach ($LLX65 as $AACCr => $pLlsY) {
            $this->displayParcel($dLN9q, $AACCr, $pLlsY, $ahDuE, $TRgER);
            zHPdj:
        }
        HvLwb:
        echo sprintf("\74\x62\165\x74\x74\x6f\x6e\40\x63\x6c\x61\x73\163\75\42\x75\160\x64\x61\164\145\40\x73\x75\142\155\151\x74\40\x62\x75\x74\x74\157\156\42\x3e\x25\163\x3c\57\x62\x75\x74\164\157\x6e\76", __("\x55\160\144\141\164\x65", $this->id));
        echo "\x3c\57\144\x69\x76\76";
    }

    private function displayParcel(int $dLN9q, int $AACCr, array $pLlsY, array $ahDuE, array $TRgER): void
    {
        if (empty($pLlsY)) {
            return;
        }
        if ($AACCr > 0) {
            echo "\74\x68\x72\57\x3e";
        }
        echo sprintf("\74\144\x69\166\76\x3c\163\x74\x72\157\x6e\x67\x3e\x25\x73\45\163\74\x2f\163\164\162\157\156\x67\76\74\57\x64\151\166\76", __("\x50\141\x72\143\x65\x6c\40\x23", $this->id), $AACCr + 1);
        echo "\74\144\151\166\x3e";
        $D_Nw0 = $this->settings["\x64\x65\x66\x61\x75\x6c\x74\123\x68\x69\160\x6d\x65\156\164\x44\145\x73\143\x72\151\160\164\x69\157\x6e"];
        if (false === empty($pLlsY["\144\x65\163\x63\162\x69\x70\x74\151\x6f\156"])) {
            $D_Nw0 = $pLlsY["\x64\145\x73\x63\x72\x69\x70\164\x69\x6f\156"];
        }
        echo sprintf("\x3c\151\156\x70\165\164\x20\x74\x79\x70\145\75\x22\x74\145\x78\164\42\40\x63\154\141\x73\163\75\42\x70\141\143\153\x61\x67\145\x44\145\163\143\162\x69\160\x74\151\x6f\x6e\x22\40\156\141\x6d\x65\75\x22\45\x73\137\157\x72\144\145\162\x73\x5b\45\163\x5d\x5b\160\x61\x72\143\145\154\x73\135\133\x25\163\x5d\x5b\x64\x65\x73\x63\x72\151\160\164\151\x6f\156\x5d\42\40\160\x6c\x61\143\145\x68\157\154\x64\145\x72\x3d\42\x25\163\x22\40\166\x61\154\165\145\75\x22\45\x73\42\57\76", $this->id, $dLN9q, $AACCr, __("\x44\145\163\x63\162\151\x70\x74\151\x6f\156", $this->id), $D_Nw0);
        echo "\74\57\x64\x69\x76\76";
        echo "\x3c\x64\x69\x76\x3e";
        echo sprintf("\74\163\x65\x6c\145\x63\164\x20\x74\x79\x70\145\x3d\x22\164\145\170\164\42\40\x6e\141\x6d\145\75\x22\45\x73\x5f\x6f\162\144\x65\x72\163\x5b\x25\x73\x5d\x5b\160\x61\x72\x63\145\x6c\x73\x5d\133\x25\x73\x5d\x5b\164\171\160\145\x5d\x22\76", $this->id, $dLN9q, $AACCr);
        $TRgER = apply_filters($this->id . "\x5f\147\x65\x74\120\141\143\x6b\x61\x67\145\x54\x79\160\145\163", []);
        $YDiz5 = false === empty($pLlsY["\x74\171\x70\x65"]) ? $pLlsY["\164\171\x70\145"] : '';
        foreach ($TRgER as $rPw5R => $AWRZ2) {
            echo sprintf("\74\x6f\160\164\151\157\156\x20\x76\141\x6c\165\x65\75\x22\45\163\x22\40\x25\163\76\45\163\74\57\x6f\160\x74\151\157\x6e\x3e", $rPw5R, $rPw5R === $YDiz5 ? "\163\145\x6c\145\143\164\x65\x64" : '', $AWRZ2);
            Qgda0:
        }
        DIwQe:
        echo "\74\x2f\x73\145\x6c\x65\x63\164\76";
        echo "\74\57\x64\x69\x76\76";
        echo "\74\x64\151\166\76";
        echo sprintf("\x3c\x69\156\160\165\x74\40\164\x79\160\x65\75\x22\164\145\x78\x74\42\40\x63\154\141\x73\163\x3d\42\160\x61\x63\153\141\147\145\114\145\156\x67\164\150\42\x20\156\x61\x6d\145\75\x22\x25\163\x5f\x6f\x72\144\145\162\163\133\x25\163\x5d\x5b\160\141\162\x63\x65\154\x73\x5d\133\45\163\x5d\133\x6c\x65\x6e\x67\x74\x68\135\42\x20\166\141\154\x75\x65\x3d\x22\x25\163\x22\x2f\76", $this->id, $dLN9q, $AACCr, $pLlsY["\154\x65\x6e\x67\x74\x68"]);
        echo "\x3c\163\x70\x61\156\76\170\74\x2f\163\x70\x61\x6e\x3e";
        echo sprintf("\x3c\x69\x6e\160\x75\164\x20\x74\171\160\x65\x3d\x22\x74\145\170\x74\x22\40\x63\154\141\x73\163\75\42\x70\x61\x63\x6b\x61\x67\145\127\151\144\x74\x68\42\x20\x6e\x61\155\x65\x3d\x22\x25\x73\x5f\157\x72\144\x65\x72\163\133\x25\x73\x5d\133\x70\x61\x72\x63\x65\x6c\x73\135\133\x25\x73\135\x5b\167\x69\x64\x74\x68\135\42\40\166\141\154\165\145\75\x22\x25\163\x22\57\x3e", $this->id, $dLN9q, $AACCr, $pLlsY["\167\x69\144\x74\x68"]);
        echo "\x3c\x73\x70\x61\x6e\x3e\170\74\57\163\x70\141\x6e\x3e";
        echo sprintf("\74\x69\x6e\160\x75\x74\x20\x74\x79\160\x65\75\x22\x74\145\170\164\x22\x20\x63\154\x61\x73\x73\75\42\160\141\143\x6b\x61\x67\x65\110\145\151\147\150\x74\42\x20\156\x61\155\145\75\x22\x25\x73\137\157\162\x64\145\162\163\x5b\x25\x73\x5d\x5b\x70\x61\162\143\145\x6c\163\x5d\133\x25\x73\x5d\133\150\145\x69\x67\x68\x74\x5d\42\40\166\141\154\x75\145\75\x22\45\x73\42\x2f\76", $this->id, $dLN9q, $AACCr, $pLlsY["\x68\x65\151\147\x68\164"]);
        echo "\x3c\x73\x70\x61\156\x3e" . $this->dimensionUnit . "\74\57\163\x70\141\156\76";
        echo sprintf("\74\151\x6e\x70\165\164\40\164\x79\160\x65\x3d\42\x74\x65\x78\x74\42\40\143\154\141\x73\163\75\x22\160\141\143\153\141\x67\x65\x57\145\x69\147\150\x74\42\x20\x6e\141\x6d\x65\x3d\x22\45\x73\x5f\157\162\x64\145\x72\x73\133\x25\x73\135\x5b\x70\x61\x72\143\x65\154\163\135\133\x25\163\x5d\133\x77\x65\x69\147\150\x74\x5d\42\x20\166\x61\x6c\165\x65\x3d\42\x25\163\42\57\x3e", $this->id, $dLN9q, $AACCr, $pLlsY["\167\145\x69\147\x68\x74"]);
        echo "\x3c\x73\x70\141\x6e\x3e" . $this->weightUnit . "\74\x2f\163\160\141\156\x3e";
        echo "\x3c\x2f\144\x69\166\x3e";
        echo "\74\x64\x69\166\76";
        echo sprintf("\74\x69\x6e\160\x75\x74\40\164\x79\160\x65\75\42\x74\145\x78\164\42\x20\143\154\141\163\x73\75\42\x70\141\x63\x6b\141\147\x65\x56\141\x6c\165\x65\x22\40\156\x61\x6d\145\75\x22\x25\x73\x5f\157\162\x64\x65\162\x73\133\45\163\x5d\x5b\x70\141\x72\143\x65\x6c\163\x5d\x5b\x25\x73\135\x5b\x76\x61\154\x75\145\x5d\x22\x20\166\x61\x6c\x75\x65\75\42\x25\163\x22\x2f\76", $this->id, $dLN9q, $AACCr, $pLlsY["\x76\141\154\165\145"]);
        echo sprintf("\x3c\x73\x65\154\x65\x63\164\x20\x74\x79\x70\x65\75\x22\x74\x65\x78\164\x22\40\143\x6c\141\x73\163\x3d\42\x70\141\143\x6b\x61\147\145\x43\165\x72\x72\145\x6e\143\x79\42\x20\x6e\x61\x6d\x65\75\x22\x25\x73\137\x6f\x72\144\x65\x72\x73\133\45\x73\x5d\x5b\x70\141\162\143\x65\154\x73\x5d\133\x25\163\135\x5b\143\x75\162\162\x65\156\x63\x79\135\x22\x3e", $this->id, $dLN9q, $AACCr);
        $bJr6o = apply_filters($this->id . "\137\147\x65\x74\103\165\162\162\x65\156\143\151\145\x73", []);
        $jo6UJ = false === empty($pLlsY["\143\165\x72\162\x65\156\143\x79"]) ? $pLlsY["\x63\x75\162\x72\x65\x6e\143\x79"] : apply_filters($this->id . "\x5f\147\x65\x74\x44\x65\x66\141\165\154\164\103\x75\x72\162\x65\156\x63\171", '');
        foreach ($bJr6o as $dVYoF => $ilmCA) {
            echo sprintf("\74\157\x70\164\x69\157\156\40\166\x61\154\x75\x65\x3d\42\45\163\x22\x20\x25\x73\76\x25\x73\74\57\x6f\x70\x74\x69\157\x6e\x3e", $dVYoF, $dVYoF === $jo6UJ ? "\x73\145\154\145\x63\164\145\x64" : '', $ilmCA);
            j7LSF:
        }
        uyUuu:
        echo "\74\57\163\145\154\x65\143\164\x3e";
        echo "\x3c\57\x64\151\166\76";
    }

    private function displayShipments(int $dLN9q, array $bB1ty): void
    {
        if (empty($dLN9q) || empty($bB1ty) || !is_array($bB1ty)) {
            return;
        }
        echo "\x3c\x68\162\57\x3e";
        echo sprintf("\x3c\144\x69\x76\40\x64\x61\x74\141\55\x6f\x72\x64\145\162\137\x69\x64\75\42\45\163\x22\40\143\x6c\141\163\x73\75\42\x25\x73\40\x6f\x72\x64\145\162\123\150\x69\160\x6d\x65\156\164\163\x22\76", $dLN9q, $this->id);
        echo sprintf("\74\144\x69\166\76\x3c\163\x74\162\x6f\156\x67\76\x25\163\40\45\x73\74\x2f\x73\x74\162\x6f\156\147\x3e\x3c\57\144\151\x76\76", apply_filters($this->id . "\137\x67\x65\x74\116\141\x6d\x65", ''), __("\123\x68\151\x70\155\x65\156\x74", $this->id));
        foreach ($bB1ty as $Tf6Xf => $LRMXf) {
            $this->displayShipment($dLN9q, (string)$Tf6Xf, $LRMXf);
            j13wO:
        }
        JqOlW:
        echo "\74\57\x64\151\x76\76";
    }

    private function displayShipment(int $dLN9q, string $Tf6Xf, array $LRMXf): bool
    {
        if (empty($LRMXf) || empty($Tf6Xf)) {
            return false;
        }
        echo sprintf("\74\144\x69\166\x20\144\141\164\141\x2d\157\x72\144\x65\x72\x5f\151\x64\x3d\x22\x25\163\x22\40\144\x61\164\141\55\x73\150\151\160\155\x65\x6e\164\137\151\x64\x3d\42\x25\163\42\40\x63\x6c\141\163\x73\75\42\x25\x73\40\157\x72\144\145\x72\x53\x68\151\x70\x6d\x65\156\164\x22\x3e", $dLN9q, $Tf6Xf, $this->id);
        echo "\74\x68\162\57\x3e";
        $bgdA4 = '';
        if (false === empty($LRMXf["\163\145\x72\x76\x69\x63\x65"]) && false === empty($LRMXf["\162\141\x74\x65\163"][$LRMXf["\163\x65\x72\166\x69\x63\145"]])) {
            $gt2pR = $LRMXf["\162\x61\x74\145\163"][$LRMXf["\x73\x65\162\x76\151\x63\145"]];
            $bgdA4 = $gt2pR["\x70\157\163\x74\141\x67\145\137\x64\145\x73\x63\162\151\160\x74\x69\x6f\x6e"];
        } elseif (false === empty($LRMXf["\163\145\162\x76\151\x63\x65"])) {
            $ahDuE = apply_filters($this->id . "\137\x67\145\164\123\x65\162\166\151\143\145\x73", []);
            if (false === empty($ahDuE[$LRMXf["\x73\x65\162\166\x69\143\x65"]])) {
                $bgdA4 = $ahDuE[$LRMXf["\x73\145\162\x76\x69\x63\x65"]];
            }
        }
        if (false === empty($bgdA4)) {
            echo sprintf("\x3c\x73\x74\x72\x6f\156\x67\76\45\x73\x3c\x2f\x73\x74\162\157\x6e\147\76\74\142\162\x2f\x3e", $bgdA4);
        }
        do_action($this->id . "\x5f\x62\x65\x66\x6f\x72\145\x5f\x61\144\x6d\151\156\137\x73\x68\151\x70\x6d\145\156\x74\137\x64\x65\x74\141\151\154\x73", $LRMXf);
        if (false === empty($LRMXf["\x63\x61\x72\x72\x69\x65\162\137\x74\162\x61\x63\x6b\x69\x6e\x67\137\143\x6f\x64\x65"]) && false === empty($LRMXf["\x74\162\x61\x63\153\x69\156\x67\x5f\165\162\154"])) {
            echo sprintf("\74\x61\x20\x68\x72\x65\x66\x3d\x22\x25\x73\x22\40\x74\x61\x72\147\x65\x74\x3d\42\137\142\154\x61\156\x6b\42\76\45\x73\74\x2f\141\x3e\x3c\142\x72\x2f\76", $LRMXf["\x74\x72\x61\143\153\151\156\x67\137\165\x72\x6c"], $LRMXf["\143\141\162\x72\x69\x65\x72\137\x74\162\141\x63\153\151\156\147\137\143\x6f\144\x65"]);
        } elseif (false === empty($LRMXf["\x63\141\x72\x72\151\145\x72\x5f\x74\x72\141\143\153\x69\x6e\x67\x5f\143\x6f\x64\x65"])) {
            echo sprintf("\45\163\x3c\x62\x72\x2f\76", $LRMXf["\143\141\x72\x72\151\145\x72\137\x74\x72\x61\143\x6b\x69\156\x67\137\143\157\x64\x65"]);
        }
        if (false === empty($LRMXf["\163\x74\x61\x74\165\163\137\156\x61\x6d\145"])) {
            echo sprintf("\74\x73\x74\162\157\x6e\147\76\45\x73\x3c\x2f\163\x74\162\157\x6e\x67\76\x20\74\163\160\141\x6e\76\x25\x73\x3c\57\x73\160\141\x6e\76\74\142\162\x2f\x3e", __("\123\x74\141\164\x75\163\x3a", $this->id), $LRMXf["\163\164\141\x74\165\163\x5f\156\141\x6d\145"]);
        }
        $waKt0 = '';
        if (false === empty($LRMXf["\160\x6f\x73\x74\141\147\145\x5f\x6c\x61\142\145\x6c\x5f\x70\156\147\x5f\165\162\154"])) {
            $waKt0 .= sprintf("\x3c\141\40\x68\162\145\146\x3d\42\x25\x73\42\x20\164\141\162\x67\x65\164\x3d\42\x5f\142\154\x61\156\x6b\x22\76\x25\163\74\x2f\141\76", $LRMXf["\x70\157\x73\x74\141\x67\x65\x5f\154\141\142\x65\x6c\137\160\x6e\x67\x5f\x75\x72\154"], __("\x50\116\107", $this->id));
        }
        if (false === empty($LRMXf["\160\157\163\x74\141\147\145\x5f\154\141\x62\x65\154\137\x70\x64\146\x5f\x75\x72\x6c"])) {
            if (false === empty($waKt0)) {
                $waKt0 .= "\40\x7c\40";
            }
            $waKt0 .= sprintf("\74\141\40\150\162\x65\146\x3d\x22\x25\163\42\x20\164\141\x72\147\145\x74\75\x22\137\142\x6c\141\156\x6b\42\x3e\45\163\74\x2f\x61\x3e", $LRMXf["\160\157\163\164\141\x67\145\137\154\141\x62\x65\x6c\137\x70\x64\x66\137\165\162\154"], __("\120\104\x46", $this->id));
        }
        if (empty($waKt0) && false === empty($LRMXf["\160\157\163\164\141\x67\x65\137\x6c\x61\142\x65\154"])) {
            foreach ($LRMXf["\160\x6f\x73\x74\x61\x67\x65\137\x6c\141\142\145\154"] as $iotea) {
                if (false === empty($waKt0)) {
                    $waKt0 .= "\x20\x7c\x20";
                }
                $waKt0 .= sprintf("\74\141\x20\x68\162\145\x66\75\42\x25\163\42\x20\164\x61\x72\x67\145\x74\75\42\137\142\154\x61\156\153\42\76\x25\x73\x3c\57\x61\76", $iotea["\165\162\x6c"], strtoupper($iotea["\x66\151\154\145\x5f\164\x79\160\145"] ?? $iotea["\146\151\x6c\145\x54\x79\160\x65"] ?? "\160\144\x66"));
                JZu7w:
            }
            b__Ic:
        }
        if (false === empty($waKt0)) {
            echo sprintf("\74\163\164\x72\157\156\x67\x3e\x25\163\74\x2f\x73\164\162\x6f\156\x67\x3e\x20\x25\163\74\142\162\57\76", __("\114\141\142\x65\x6c\72", $this->id), $waKt0);
        }
        if (false === empty($LRMXf["\x66\x6f\x72\x6d\163"])) {
            echo "\x3c\150\x72\57\x3e";
            echo sprintf("\x3c\x73\164\x72\x6f\156\x67\76\x25\x73\74\57\x73\x74\x72\157\156\x67\76\74\x62\162\x2f\x3e", __("\106\157\x72\155\x73\x3a", $this->id));
            foreach ($LRMXf["\x66\x6f\162\x6d\x73"] as $t9613) {
                $zqP1I = strtoupper(preg_replace("\x2f\137\57", "\x20", $t9613["\144\x6f\143\165\x6d\145\x6e\164\137\x74\171\160\145"] ?? $t9613["\x74\x79\x70\x65"]));
                echo sprintf("\55\x20\x3c\141\x20\x68\x72\145\x66\x3d\x22\x25\163\42\x20\x74\x61\x72\147\x65\x74\x3d\x22\x5f\x62\154\141\x6e\153\x22\76\x25\x73\x3c\x2f\141\x3e\x3c\x62\162\57\76", $t9613["\165\x72\x6c"], $zqP1I);
                fxpRX:
            }
            d337W:
        }
        echo "\x3c\57\x64\151\166\x3e";
        return true;
    }
}

Function Calls

None

Variables

None

Stats

MD5 724542f9076c4cc905dd3552b7169f91
Eval Count 0
Decode Time 73 ms