ltsecurityinc安防产品在线商城代码
@@ -0,0 +1,467 @@
|
||||
/*!
|
||||
Chosen, a Select Box Enhancer for jQuery and Prototype
|
||||
by Patrick Filler for Harvest, http://getharvest.com
|
||||
|
||||
Version 1.8.7
|
||||
Full source at https://github.com/harvesthq/chosen
|
||||
Copyright (c) 2011-2018 Harvest http://getharvest.com
|
||||
|
||||
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
||||
This file is generated by `grunt build`, do not edit it by hand.
|
||||
*/
|
||||
.chosen-container {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
font-size: 13px;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none
|
||||
}
|
||||
|
||||
.chosen-container * {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box
|
||||
}
|
||||
|
||||
.chosen-container .chosen-drop {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
z-index: 1010;
|
||||
width: 100%;
|
||||
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
||||
clip: rect(0, 0, 0, 0);
|
||||
-webkit-clip-path: inset(100% 100%);
|
||||
clip-path: inset(100% 100%);
|
||||
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #007bdb;
|
||||
border-radius: 1px;
|
||||
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
|
||||
color: #41362f;
|
||||
font-weight: 400;
|
||||
left: 0;
|
||||
list-style: none;
|
||||
margin: 2px 0 0;
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.chosen-container.chosen-with-drop .chosen-drop {
|
||||
clip: auto;
|
||||
-webkit-clip-path: none;
|
||||
clip-path: none
|
||||
}
|
||||
|
||||
.chosen-container a {
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
.chosen-container .chosen-single .group-name, .chosen-container .search-choice .group-name {
|
||||
margin-right: 4px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-weight: 400;
|
||||
color: #999
|
||||
}
|
||||
|
||||
.chosen-container .chosen-single .group-name:after, .chosen-container .search-choice .group-name:after {
|
||||
content: ":";
|
||||
padding-left: 2px;
|
||||
vertical-align: top
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single {
|
||||
position: relative;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
padding: 0 0 0 8px;
|
||||
height: 25px;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 5px;
|
||||
background-color: #fff;
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #fff), color-stop(50%, #f6f6f6), color-stop(52%, #eee), to(#f4f4f4));
|
||||
background: linear-gradient(#fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%);
|
||||
background-clip: padding-box;
|
||||
-webkit-box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(0, 0, 0, .1);
|
||||
box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(0, 0, 0, .1);
|
||||
color: #444;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
line-height: 24px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-default {
|
||||
color: #999
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single span {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
margin-right: 26px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single-with-deselect span {
|
||||
margin-right: 38px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single abbr {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 26px;
|
||||
display: block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: url(../images/chosen-sprite.png) -42px 1px no-repeat;
|
||||
font-size: 1px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single abbr:hover {
|
||||
background-position: -42px -10px
|
||||
}
|
||||
|
||||
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
|
||||
background-position: -42px -10px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single div {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
display: block;
|
||||
width: 18px;
|
||||
height: 100%
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-single div b {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: url(../images/chosen-sprite.png) no-repeat 0 2px
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-search {
|
||||
position: relative;
|
||||
z-index: 1010;
|
||||
margin: 0;
|
||||
padding: 3px 4px;
|
||||
white-space: nowrap
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-search input[type=text] {
|
||||
margin: 1px 0;
|
||||
padding: 4px 20px 4px 5px;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
outline: 0;
|
||||
border: 1px solid #aaa;
|
||||
background: url(../images/chosen-sprite.png) no-repeat 100% -20px;
|
||||
font-size: 1em;
|
||||
font-family: sans-serif;
|
||||
line-height: normal;
|
||||
border-radius: 0
|
||||
}
|
||||
|
||||
.chosen-container-single .chosen-drop {
|
||||
margin-top: -1px;
|
||||
border-radius: 0 0 4px 4px;
|
||||
background-clip: padding-box
|
||||
}
|
||||
|
||||
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
|
||||
position: absolute;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
-webkit-clip-path: inset(100% 100%);
|
||||
clip-path: inset(100% 100%)
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results {
|
||||
color: #444;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
margin: 0 4px 4px 0;
|
||||
padding: 0 0 0 4px;
|
||||
max-height: 240px;
|
||||
-webkit-overflow-scrolling: touch
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li {
|
||||
display: none;
|
||||
margin: 0;
|
||||
padding: 5px 6px;
|
||||
list-style: none;
|
||||
line-height: 15px;
|
||||
word-wrap: break-word;
|
||||
-webkit-touch-callout: none
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.active-result {
|
||||
display: list-item;
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.disabled-result {
|
||||
display: list-item;
|
||||
color: #ccc;
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.highlighted {
|
||||
background-image: linear-gradient(#e3e3e3 20%, #e3e3e3 90%);
|
||||
background-color: #e3e3e3;
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.no-results {
|
||||
color: #777;
|
||||
display: list-item;
|
||||
background: #f4f4f4
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li.group-result {
|
||||
display: list-item;
|
||||
font-weight: 700;
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li {
|
||||
padding: .6875em 1em;
|
||||
}
|
||||
|
||||
.chosen-container .chosen-results li em {
|
||||
font-style: normal;
|
||||
text-decoration: underline
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border: 1px solid #aaa;
|
||||
background-color: #fff;
|
||||
cursor: text
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li {
|
||||
float: left;
|
||||
list-style: none
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-field {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
white-space: nowrap
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-field input[type=text] {
|
||||
margin: 1px 0;
|
||||
height: 25px;
|
||||
outline: 0;
|
||||
border: 0 !important;
|
||||
background: 0 0 !important;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
color: #999;
|
||||
font-size: 100%;
|
||||
font-family: sans-serif;
|
||||
line-height: normal;
|
||||
border-radius: 0;
|
||||
width: 25px
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice,
|
||||
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #a79d95;
|
||||
border-radius: 1px;
|
||||
display: inline-block;
|
||||
font-size: 1.2rem;
|
||||
margin: 0.3rem;
|
||||
padding: 0.3rem 2.4rem 0.4rem 1rem;
|
||||
position: relative;
|
||||
transition: border-color 0.1s linear;
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice span {
|
||||
word-wrap: break-word
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
|
||||
bottom: 0;
|
||||
font-size: .5em;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 2rem;
|
||||
display: inline-block;
|
||||
padding: 0.6rem 1em 0.6rem;
|
||||
text-align: center;
|
||||
vertical-align: baseline;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-family: 'Admin Icons', sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: none;
|
||||
color: #514943;
|
||||
text-decoration: none;
|
||||
|
||||
}
|
||||
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before {
|
||||
content: '\e62f';
|
||||
transition: color 0.1s linear;
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
||||
padding-right: 1rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice-focus {
|
||||
background: #d4d4d4
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
|
||||
background-position: -42px -10px
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-results {
|
||||
margin: 0;
|
||||
padding: 0
|
||||
}
|
||||
|
||||
.chosen-container-multi .chosen-drop .result-selected {
|
||||
display: list-item;
|
||||
background-color: #e0f6fe;
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-container-active .chosen-single {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.chosen-container-active.chosen-with-drop .chosen-single {
|
||||
border: 1px solid #aaa;
|
||||
border-bottom-right-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.chosen-container-active.chosen-with-drop .chosen-single div {
|
||||
border-left: none;
|
||||
background: 0 0
|
||||
}
|
||||
|
||||
.chosen-container-active.chosen-with-drop .chosen-single div b {
|
||||
background-position: -18px 2px
|
||||
}
|
||||
|
||||
.chosen-container-active .chosen-choices {
|
||||
border-color: #007bdb;
|
||||
}
|
||||
|
||||
.chosen-container-active .chosen-choices li.search-field input[type=text] {
|
||||
color: #222 !important
|
||||
}
|
||||
|
||||
.chosen-disabled {
|
||||
opacity: .5 !important;
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-disabled .chosen-single {
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
|
||||
cursor: default
|
||||
}
|
||||
|
||||
.chosen-rtl {
|
||||
text-align: right
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single {
|
||||
overflow: visible;
|
||||
padding: 0 8px 0 0
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single span {
|
||||
margin-right: 0;
|
||||
margin-left: 26px;
|
||||
direction: rtl
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single-with-deselect span {
|
||||
margin-left: 38px
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single div {
|
||||
right: auto;
|
||||
left: 3px
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-single abbr {
|
||||
right: auto;
|
||||
left: 26px
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-choices li {
|
||||
float: right
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-choices li.search-field input[type=text] {
|
||||
direction: rtl
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-choices li.search-choice {
|
||||
margin: 3px 5px 3px 0;
|
||||
padding: 3px 5px 3px 19px
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
|
||||
right: auto;
|
||||
left: 4px
|
||||
}
|
||||
|
||||
.chosen-rtl.chosen-container-single .chosen-results {
|
||||
margin: 0 0 4px 4px;
|
||||
padding: 0 4px 0 0
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-results li.group-option {
|
||||
padding-right: 15px;
|
||||
padding-left: 0
|
||||
}
|
||||
|
||||
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
|
||||
border-right: none
|
||||
}
|
||||
|
||||
.chosen-rtl .chosen-search input[type=text] {
|
||||
padding: 4px 5px 4px 20px;
|
||||
background: url(../images/chosen-sprite.png) no-repeat -30px -20px;
|
||||
direction: rtl
|
||||
}
|
||||
|
||||
.chosen-rtl.chosen-container-single .chosen-single div b {
|
||||
background-position: 6px 2px
|
||||
}
|
||||
|
||||
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
|
||||
background-position: -12px 2px
|
||||
}
|
||||
|
||||
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
|
||||
.chosen-container .chosen-results-scroll-down span, .chosen-container .chosen-results-scroll-up span, .chosen-container-multi .chosen-choices .search-choice .search-choice-close, .chosen-container-single .chosen-search input[type=text], .chosen-container-single .chosen-single abbr, .chosen-container-single .chosen-single div b, .chosen-rtl .chosen-search input[type=text] {
|
||||
background-image: url(../images/chosen-sprite@2x.png) !important;
|
||||
background-size: 52px 37px !important;
|
||||
background-repeat: no-repeat !important
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.admin__field[data-index="duration"] .admin__field-note {
|
||||
width: 42vw;
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* 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_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
|
||||
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
|
||||
*/
|
||||
|
||||
#row_pr_cookie_main_settings_states_geo_targeting > td.value > div:nth-child(1),
|
||||
#row_pr_cookie_main_settings_geo_targeting > td.value > div:nth-child(1) {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
#pr_cookie_integrations .section-config:has(.upgrade-to-pro) .entry-edit-head a{
|
||||
color: #727272;
|
||||
}
|
||||
|
||||
/* Notice */
|
||||
|
||||
|
||||
.pr_notice--note .pr-cookie .pr-notice__content:before{
|
||||
content: none;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-intro{
|
||||
position: relative;
|
||||
margin-left: -5.5rem;
|
||||
margin-bottom: 30px;
|
||||
padding-left: 5.5rem;
|
||||
}
|
||||
|
||||
.pr-cookie-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-cookie .pr-update-to-pro-btn{
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
padding: 10px;
|
||||
font: 500 14px / 1.2 'Roboto', sans-serif;
|
||||
background: #009BFF;
|
||||
color: #fff;
|
||||
position: relative;
|
||||
border-radius: 4px;
|
||||
max-width: 100%;
|
||||
min-height: 40px;
|
||||
transition: box-shadow .3s ease;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.pr-button:hover{
|
||||
box-shadow: 0 3px 8px -3px #24649d;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-details{
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-title{
|
||||
color: #007bdb;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
padding-left: 20px;
|
||||
user-select: none;
|
||||
border-bottom: 1px solid #007bdb;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-title:hover{
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-title:before{
|
||||
content: '^';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%) rotate(180deg);
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion[open] .pr-cookie-notice-accordion-title:before{
|
||||
transform: translateY(-50%) rotate(0);
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-body{
|
||||
padding-top: 20px;
|
||||
margin-left: 30px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-body ul,
|
||||
.pr-cookie-notice-accordion-body ol{
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion-body li{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip{
|
||||
margin-top: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip-content{
|
||||
min-width: 32rem;
|
||||
width: auto;
|
||||
right: -5rem;
|
||||
background: transparent;
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
box-shadow: -10px 12px 26px 0 rgba(0, 0, 0, 0.10);
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip-content img{
|
||||
max-width: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip .admin__field-tooltip-content:before{
|
||||
border-top-color: #F2F2F2;
|
||||
}
|
||||
|
||||
.pr-cookie-notice-accordion .admin__field-tooltip .admin__field-tooltip-content:after{
|
||||
border-top-color: #fff;
|
||||
}
|
||||
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 538 B |
|
After Width: | Height: | Size: 738 B |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 30 KiB |
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* 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_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
|
||||
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
|
||||
*/
|
||||
|
||||
define(['uiRegistry', 'Magento_Ui/js/form/element/select'], function (uiRegistry, select) {
|
||||
'use strict';
|
||||
return select.extend({
|
||||
initialize: function () {
|
||||
var type = this._super().initialValue;
|
||||
this.onComponentLoad('index = domain', function (component) {
|
||||
if ('first' === type) {
|
||||
component.hide();
|
||||
} else {
|
||||
component.show();
|
||||
}
|
||||
});
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* On value change handler.
|
||||
*
|
||||
* @param {String} type
|
||||
*/
|
||||
onUpdate: function (type) {
|
||||
var domainField = uiRegistry.get('index = domain');
|
||||
if ('first' === type) {
|
||||
domainField.hide();
|
||||
} else {
|
||||
domainField.show();
|
||||
}
|
||||
return this._super();
|
||||
},
|
||||
|
||||
/**
|
||||
* Fix for async loading.
|
||||
*
|
||||
* As components don't have sort order for loading,
|
||||
* we need to interact with another component via load callback.
|
||||
*
|
||||
* @param {String} query
|
||||
* @param {function} callback
|
||||
*/
|
||||
onComponentLoad: function (query, callback) {
|
||||
let waitIteration = 0;
|
||||
var domainField = uiRegistry.get(query);
|
||||
|
||||
if (domainField) {
|
||||
callback(domainField);
|
||||
return;
|
||||
}
|
||||
|
||||
let interval = setInterval(function () {
|
||||
domainField = uiRegistry.get(query);
|
||||
if (domainField) {
|
||||
callback(domainField);
|
||||
clearInterval(interval);
|
||||
return;
|
||||
}
|
||||
if (waitIteration === 4) {
|
||||
clearInterval(interval);
|
||||
return;
|
||||
}
|
||||
waitIteration++;
|
||||
}, 250);
|
||||
},
|
||||
});
|
||||
});
|
||||
@@ -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,191 @@
|
||||
/**
|
||||
* 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_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
|
||||
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
|
||||
*/
|
||||
|
||||
require([
|
||||
'jquery',
|
||||
'mage/translate',
|
||||
'Plumrocket_CookieConsent/js/chosen.jquery.min',
|
||||
'domReady!'
|
||||
], function ($, __) {
|
||||
'use strict';
|
||||
|
||||
/* enable chosen */
|
||||
setTimeout(function () {
|
||||
/* Scope. */$('#pr_cookie_main_settings_geo_targeting_inherit:checked').click().click();
|
||||
|
||||
initializeGeoIPSelects();
|
||||
}, 2000);
|
||||
|
||||
/* fix for chosen in not expanded section */
|
||||
$('#pr_cookie_main_settings-head').on('click', function () {
|
||||
reinitializeGeoIPSelect(document.getElementById('pr_cookie_main_settings_geo_targeting'));
|
||||
});
|
||||
|
||||
$('#pr_cookie_main_settings_geo_targeting_inherit').on('click', function () {
|
||||
reinitializeGeoIPSelect(document.getElementById('pr_cookie_main_settings_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);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,56 @@
|
||||
<!--
|
||||
/**
|
||||
* 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_CookieConsent
|
||||
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
|
||||
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
|
||||
*/
|
||||
-->
|
||||
<div class="admin__field"
|
||||
visible="visible"
|
||||
css="$data.additionalClasses"
|
||||
attr="'data-index': index">
|
||||
<div class="admin__field-label" visible="$data.labelVisible">
|
||||
<label if="$data.label" attr="for: uid">
|
||||
<span translate="label" attr="'data-config-scope': $data.scopeLabel"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="admin__field-control"
|
||||
css="'_with-tooltip': $data.tooltip, '_with-reset': $data.showFallbackReset && $data.isDifferedFromDefault">
|
||||
<render args="elementTmpl" ifnot="hasAddons()"></render>
|
||||
|
||||
<div class="admin__control-addon" if="hasAddons()">
|
||||
<render args="elementTmpl"></render>
|
||||
|
||||
<label class="admin__addon-prefix" if="$data.addbefore" attr="for: uid">
|
||||
<span text="addbefore"></span>
|
||||
</label>
|
||||
<label class="admin__addon-suffix" if="$data.addafter" attr="for: uid">
|
||||
<span text="addafter"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<render args="tooltipTpl" if="$data.tooltip"></render>
|
||||
|
||||
<render args="fallbackResetTpl" if="$data.showFallbackReset && $data.isDifferedFromDefault"></render>
|
||||
|
||||
<label class="admin__field-error" if="error" attr="for: uid" text="error"></label>
|
||||
|
||||
<div class="admin__field-note" if="$data.notice" attr="id: noticeId">
|
||||
<span html="$t(notice)"></span>
|
||||
</div>
|
||||
|
||||
<div class="admin__additional-info" if="$data.additionalInfo" html="$data.additionalInfo"></div>
|
||||
|
||||
<render args="$data.service.template" if="$data.hasService()"></render>
|
||||
</div>
|
||||
</div>
|
||||