ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<!--
/**
* @package Plumrocket_GlobalPrivacyControl
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://www.plumrocket.com)
* @license https://www.plumrocket.com/license/ End-user License Agreement
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="pr_system_config_element_notice"/>
<head>
<script src="Plumrocket_GlobalPrivacyControl::js/system_config_edit.js" />
<css src="Plumrocket_ExtendedAdminUi::css/lib/chosen.css" />
<css src="Plumrocket_GlobalPrivacyControl::css/system_config_edit.css" />
<css src="Plumrocket_ExtendedAdminUi::css/lib/chosen.css" />
</head>
</page>
@@ -0,0 +1,68 @@
#config-edit-form .section-config:has(.addon-required-notice) .entry-edit-head a{
color: #727272;
}
#pr_gpc_well_known .code-box {
border: 1px solid #ccc;
margin: 0;
padding: 10px;
border-radius: 4px;
background-color: #f9f9f9;
font-family: monospace;
}
#pr_gpc_well_known .pr-notice__content-wrapper {
padding: 0;
}
/* Notice */
#row_pr_gpc_do_not_sell_addon_required_notice{
}
#row_pr_gpc_do_not_sell_addon_required_notice .pr-notice__content:before{
content: none;
}
.pr-gpc-notice-intro{
position: relative;
margin-left: -5.5rem;
margin-bottom: 20px;
padding-left: 5.5rem;
line-height: 1.5;
}
.pr-gpc-notice-intro:before{
color: #007bdb;
content: '\e61a';
background: none;
border: 0;
font-family: 'Admin Icons';
font-size: 1.9rem;
font-style: normal;
font-weight: 400;
height: auto;
left: 1.9rem;
line-height: inherit;
position: absolute;
speak: none;
text-shadow: none;
top: 50%;
margin-top: -1.25rem;
width: auto;
}
.pr-gpc-coupon-wrapper{
margin-bottom: 20px;
}
.pr-gpc-coupon{
display: inline-flex;
align-items: center;
justify-content: center;
color: #ff5607;
padding: 10px 20px;
border: 1px dashed #ff5607;
background: #e9f0f5;
border-radius: 2px;
}
@@ -0,0 +1,17 @@
/**
* Plumrocket Inc.
*
* NOTICE OF LICENSE
*
* This source file is subject to the End-user License Agreement
* that is available through the world-wide-web at this URL:
* http://wiki.plumrocket.net/wiki/EULA
* If you are unable to obtain it through the world-wide-web, please
* send an email to support@plumrocket.com so we can send you a copy immediately.
*
* @package Plumrocket_Extension
* @copyright Copyright (c) 2026 Plumrocket Inc. (http://www.plumrocket.com)
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
*/
var __prinitparam = 'MzM5Njkw';
@@ -0,0 +1,175 @@
require([
'jquery',
'mage/translate',
'Plumrocket_ExtendedAdminUi/js/lib/chosen.jquery.min',
'domReady!'
], function ($, __) {
'use strict';
/* enable chosen */
setTimeout(function () {
/* Scope. */$('#row_pr_gpc_general_geo_targeting_inherit:checked').click().click();
initializeGeoIPSelects();
}, 2000);
/* fix for chosen in not expanded section */
$('#pr_gpc_general-head').on('click', function () {
reinitializeGeoIPSelect(document.getElementById('pr_gpc_general_geo_targeting'));
});
$('#row_pr_gpc_general_geo_targeting_inherit').on('click', function () {
reinitializeGeoIPSelect(document.getElementById('pr_gpc_general_geo_targeting'));
});
/* Registry for all selects with class geoip-select-with-chosen */
window.initializedSelects = [];
function initializeGeoIPSelects()
{
var selects = getGeoIPSelects();
selects.forEach(function (select) {
if (! isInitializedGeoIPSelect(select)) {
initializeGeoIPSelect(select);
initializeGeoIPOptionDepends(select);
if (!$(select).hasClass('prgdpr-coutry')) {
geoIpFieldsDepend($(select));
var id = $(select).attr('id');
$(select).parent().prepend('<div style="font-weight: 600; margin-bottom: 10px;" id="ccpa-html-wrap"></div>');
$('#ccpa-html-wrap').append($('[for="' + id + '"]'));
}
}
});
}
function geoIpFieldsDepend(select)
{
var geoTargeting = $('.prgdpr-coutry'), values, toggle = function () {
values = $(geoTargeting).val();
if (values) {
values.forEach(function (element) {
if (element === 'US') {
select.parent().parent().show();
} else {
select.parent().parent().hide();
}
});
} else {
select.parent().parent().hide();
}
};
toggle(); /* Auto states toggle when page loaded */
/* If we change Geo Targeting field */
geoTargeting.change(function () {
toggle();
});
}
function getGeoIPSelects()
{
var result = $('select.geoip-select-with-chosen');
return result.length ? result.toArray() : [];
}
function initializeGeoIPSelect(select)
{
if (! select instanceof HTMLElement) {
return false;
}
if (isInitializedGeoIPSelect(select)) {
return getIndexOfRegisteredGeoIPSelect(select);
}
var enableSearch = true;
if ("readonly" === select.getAttribute('readonly')) {
enableSearch = false;
}
$(select).chosen({
"display_selected_options" : true,
"display_disabled_options": true,
"hide_results_on_select": true,
"group_search": enableSearch
});
return registerGeoIPSelect(select);
}
function registerGeoIPSelect(select)
{
return initializedSelects.push(select.name);
}
function getIndexOfRegisteredGeoIPSelect(select)
{
return initializedSelects.indexOf(select.name);
}
function isInitializedGeoIPSelect(select)
{
return -1 !== getIndexOfRegisteredGeoIPSelect(select);
}
function reinitializeGeoIPSelect(select)
{
if (isInitializedGeoIPSelect(select)) {
$(select).chosen("destroy");
initializedSelects.splice(getIndexOfRegisteredGeoIPSelect(select), 1);
initializeGeoIPSelect(select);
}
}
function updateGeoIpSelect(select)
{
if (! isInitializedGeoIPSelect(select)) {
initializeGeoIPSelect(select);
}
$(select).trigger("chosen:updated");
}
function initializeGeoIPOptionDepends(select)
{
initializeGeoIPSelect(select);
var geoipEl = $(select),
allOptionId = 'all';
var initialValues = ! geoipEl.val() ? [] : geoipEl.val();
var initialShowToAllIndex = initialValues.indexOf(allOptionId);
geoipEl.on('change', function () {
var values = ! $(this).val() ? [] : $(this).val();
var showToAllIndex = values.indexOf(allOptionId);
if (-1 !== initialShowToAllIndex) {
if (-1 !== showToAllIndex && values.length > 1) {
for (var i = 0; i < values.length; i++) {
values.splice(showToAllIndex, 1);
}
geoipEl.val(values);
}
} else {
if (-1 !== showToAllIndex && values.length > 1) {
geoipEl.val([allOptionId]);
}
}
if (! $(this).val()) {
$(this).val([allOptionId]);
}
initialValues = $(this).val();
initialShowToAllIndex = initialValues.indexOf(allOptionId);
updateGeoIpSelect(select);
});
}
});