<?php
/**
 * @package embed-sharepoint-onedrive-documents
 * @author miniOrange
 * @link https://plugins.miniorange.com
 */


namespace MoSharePointObjectSync\LicenseLibrary\Handlers;

use MoSharePointObjectSync\LicenseLibrary\Classes\Mo_License_Constants;
use MoSharePointObjectSync\LicenseLibrary\Classes\Mo_License_Library;
use MoSharePointObjectSync\LicenseLibrary\Mo_License_Config;
use MoSharePointObjectSync\LicenseLibrary\Mo_License_Service;
use MoSharePointObjectSync\LicenseLibrary\Views\Mo_License_Notice_Views;
if (defined("\101\x42\123\120\101\124\x48")) {
    goto f_;
}
exit;
f_:
class Mo_License_Add_View_Handler
{
    private $license_views;
    public function __construct($jv)
    {
        $this->license_views = $jv;
    }
    public function add_admin_license_notice()
    {
        if (!(Mo_License_Service::is_customer_license_verified() && current_user_can("\155\x61\156\141\x67\145\x5f\157\160\x74\x69\x6f\x6e\163"))) {
            goto GG;
        }
        $Ys = $this->license_views->get_license_notice();
        echo $Ys;
        GG:
    }
    public function add_dashboard_license_widget()
    {
        if (!(Mo_License_Service::is_customer_license_verified() && current_user_can("\x6d\x61\156\141\x67\x65\137\157\x70\x74\x69\157\x6e\163"))) {
            goto K8;
        }
        global $wp_meta_boxes;
        wp_add_dashboard_widget(Mo_License_Constants::DASHBOARD_WIDGET_ID, Mo_License_Config::PLUGIN_NAME, array($this->license_views, "\x64\x69\163\160\154\141\171\x5f\144\141\163\150\x62\x6f\x61\162\144\x5f\x77\x69\x64\147\x65\x74"));
        $pq = "\144\x61\x73\x68\142\x6f\x61\x72\x64";
        if (!("\156\145\x74\x77\x6f\162\x6b" === Mo_License_Library::$environment_type)) {
            goto dP;
        }
        $pq = "\x64\x61\x73\150\142\x6f\x61\x72\x64\55\x6e\x65\164\x77\x6f\x72\x6b";
        dP:
        $AZ = $wp_meta_boxes[$pq]["\x6e\157\x72\155\x61\x6c"]["\x63\x6f\162\x65"];
        $yO = array(Mo_License_Constants::DASHBOARD_WIDGET_ID => $AZ[Mo_License_Constants::DASHBOARD_WIDGET_ID]);
        unset($AZ[Mo_License_Constants::DASHBOARD_WIDGET_ID]);
        $AZ = !empty($AZ) ? $AZ : array();
        $w4 = array_merge($yO, $AZ);
        $wp_meta_boxes[$pq]["\x6e\157\162\x6d\x61\154"]["\143\x6f\x72\x65"] = $w4;
        K8:
    }
    public function add_plugin_license_scripts()
    {
        wp_enqueue_style("\155\x6f\137\x73\x61\x6d\x6c\x5f\x6c\x69\143\x65\x6e\x73\145\137\x76\151\145\x77\x5f\163\164\171\x6c\x65", constant(Mo_License_Config::OPTION_PREFIX . "\x5f\114\111\103\x45\116\x53\x45\x5f\114\111\x42\122\101\x52\x59\x5f\120\x41\x54\x48") . "\166\151\x65\167\x73\57\x69\156\143\154\165\x64\145\163\x2f\143\163\x73\57\154\151\143\x65\x6e\163\x65\55\x76\151\145\167\x73\55\x73\164\171\154\x65\x2e\143\x73\x73", array(), Mo_License_Constants::VERSION);
    }
}
