Aggiornamento asset, UI e funzionalità per aste e player

Sono stati aggiunti numerosi nuovi file JavaScript, CSS, SVG e PNG per migliorare la grafica, la responsività e le funzionalità delle pagine di aste, login, notifiche e player video.
Introdotte nuove librerie (OneSignal, Bootstrap, Font Awesome, Vue.js, Slick Carousel, ProgressBar.js, CryptoJS, mCustomScrollbar, Switchery) e script per la gestione di notifiche push, tracciamento eventi (Facebook Pixel, TikTok Pixel, Google Ads, Smartech), pagamenti Ingenico, modali, banner promozionali, preferiti, auto-puntate, e gestione utente inattivo.
Ampliata la logica del player embedded YouTube con nuovi hook, logging avanzato, gestione ciclo di vita, storage e challenge di attestation.
Aggiunti nuovi stili CSS per layout responsive, componenti UI, modali, badge, bottoni, progress bar, e ottimizzazioni mobile.
Integrate nuove immagini e icone per arricchire l’interfaccia grafica.
Non sono state apportate modifiche al file `www-player.css` e ad altri file specificati.
Queste modifiche migliorano la sicurezza, la tracciabilità, l’esperienza utente e la flessibilità dell’applicazione.
This commit is contained in:
2025-12-10 12:00:25 +01:00
parent 551697d98d
commit 79756d878d
155 changed files with 57046 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="17px" height="18px" viewBox="0 0 17 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: sketchtool 57.1 (101010) - https://sketch.com -->
<title>E3DC3394-397D-4994-B12B-47234FB13863</title>
<desc>Created with sketchtool.</desc>
<g id="Product-Pages" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Home---Portrait-Version-A-Copy-6" transform="translate(-77.000000, -637.000000)">
<g id="Group-20" transform="translate(63.000000, 553.000000)">
<g id="Group-17-Copy" transform="translate(14.000000, 84.000000)">
<g id="001-settings" transform="translate(0.000000, 0.500000)">
<path d="M15.6392002,7.48800011 C14.1532002,7.20200011 13.4720002,5.46640008 14.3672002,4.24600006 L14.9952002,3.38800005 L13.6376002,2.03040003 L12.7936002,2.60200004 C11.5408002,3.45200005 9.83120015,2.70520004 9.60160014,1.21000002 L9.44080014,0.160000002 L7.52040011,0.160000002 L7.27200011,1.45360002 C6.9920001,2.90520004 5.31720008,3.59920005 4.09200006,2.76920004 L3.00320004,2.03040003 L1.64520002,3.38800005 L2.27360003,4.24600006 C3.16880005,5.46640008 2.48600004,7.20200011 1.00160001,7.48800011 L0,7.68040011 L0,9.60080014 L1.05000002,9.76160015 C2.54520004,9.99120015 3.29200005,11.7008002 2.44200004,12.9536002 L1.87040003,13.7976002 L3.22800005,15.1552002 L4.08600006,14.5272002 C5.30640008,13.6320002 7.0420001,14.3132002 7.32800011,15.7992002 L7.52040011,16.8008003 L9.44080014,16.8008003 L9.55320014,16.0616002 C9.78920015,14.5336002 11.5608002,13.7992002 12.8080002,14.7132002 L13.4108002,15.1552002 L14.7688002,13.7976002 L14.1968002,12.9536002 C13.3484002,11.7008002 14.0936002,9.99120015 15.5892002,9.76160015 L16.6408002,9.60080014 L16.6408002,7.68040011 L15.6392002,7.48800011 Z M8.47960013,10.0804002 C7.68440011,10.0804002 7.0408001,9.43520014 7.0408001,8.63960013 C7.0408001,7.84440012 7.68440011,7.20080011 8.47960013,7.20080011 C9.27520014,7.20080011 9.92040015,7.84440012 9.92040015,8.63960013 C9.92040015,9.43520014 9.27520014,10.0804002 8.47960013,10.0804002 Z" id="Fill-1" fill="#C7CAC7"/>
<path d="M8.47960013,5.60080008 C6.8016001,5.60080008 5.44080008,6.9616001 5.44080008,8.63960013 C5.44080008,10.3192002 6.8016001,11.6804002 8.47960013,11.6804002 C10.1592002,11.6804002 11.5204002,10.3192002 11.5204002,8.63960013 C11.5204002,6.9616001 10.1592002,5.60080008 8.47960013,5.60080008 Z M8.47960013,10.0804002 C7.68440011,10.0804002 7.0408001,9.43520014 7.0408001,8.63960013 C7.0408001,7.84440012 7.68440011,7.20080011 8.47960013,7.20080011 C9.27520014,7.20080011 9.92040015,7.84440012 9.92040015,8.63960013 C9.92040015,9.43520014 9.27520014,10.0804002 8.47960013,10.0804002 Z" id="Fill-2" fill="#556080"/>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18.96 32.35"><defs><style>.cls-1{fill:#38454f;}.cls-2{fill:#1caee4;}.cls-3{fill:#1081e0;}.cls-4{fill:#cbd4d8;}.cls-5{fill:#546a79;}</style></defs><title>Asset 10002-app</title><g id="Layer_2" data-name="Layer 2"><g id="Livello_1" data-name="Livello 1"><path class="cls-1" d="M15.76,32.35H3.2A3.21,3.21,0,0,1,0,29.14V3.2A3.2,3.2,0,0,1,3.2,0H15.76A3.2,3.2,0,0,1,19,3.2V29.14A3.21,3.21,0,0,1,15.76,32.35Z"/><rect class="cls-2" x="1.67" y="3.35" width="15.61" height="23.98"/><path class="cls-3" d="M3.35,7.81a.56.56,0,0,0,.39-.17L6,5.41a.56.56,0,0,0,0-.79.57.57,0,0,0-.79,0L3,6.86a.54.54,0,0,0,0,.78A.56.56,0,0,0,3.35,7.81Z"/><path class="cls-3" d="M3.35,10.6a.56.56,0,0,0,.39-.17L4.86,9.32a.57.57,0,0,0,0-.79.56.56,0,0,0-.79,0L3,9.64a.57.57,0,0,0,.4,1Z"/><path class="cls-3" d="M5.18,7.41a.59.59,0,0,0-.16.4.57.57,0,0,0,.16.39.6.6,0,0,0,.4.17A.58.58,0,0,0,6,8.2a.57.57,0,0,0,.16-.39.56.56,0,0,0-1-.4Z"/><path class="cls-3" d="M6.3,7.09a.54.54,0,0,0,.39.16.57.57,0,0,0,.4-.16L8.76,5.41a.56.56,0,0,0,0-.79.57.57,0,0,0-.79,0L6.3,6.3A.56.56,0,0,0,6.3,7.09Z"/><path class="cls-3" d="M8,7.41l-5,5a.56.56,0,0,0,.4,1,.54.54,0,0,0,.39-.16l5-5a.56.56,0,0,0,0-.79A.57.57,0,0,0,8,7.41Z"/><path class="cls-3" d="M9.08,6.3a.57.57,0,0,0-.16.39.59.59,0,0,0,.16.4.61.61,0,0,0,.4.16A.55.55,0,0,0,10,6.69a.57.57,0,0,0-.16-.39A.59.59,0,0,0,9.08,6.3Z"/><path class="cls-3" d="M11.55,4.62a.57.57,0,0,0-.79,0l-.56.56a.56.56,0,0,0,.4,1A.54.54,0,0,0,11,6l.56-.56A.56.56,0,0,0,11.55,4.62Z"/><path class="cls-4" d="M11.15,2.23H7.81a.56.56,0,0,1-.56-.56.55.55,0,0,1,.56-.55h3.34a.55.55,0,0,1,.56.55A.56.56,0,0,1,11.15,2.23Z"/><path class="cls-5" d="M16.17,2.23h-.56a.56.56,0,0,1-.55-.56.55.55,0,0,1,.55-.55h.56a.55.55,0,0,1,.56.55A.56.56,0,0,1,16.17,2.23Z"/><path class="cls-5" d="M13.94,2.23h-.56a.56.56,0,0,1-.55-.56.55.55,0,0,1,.55-.55h.56a.55.55,0,0,1,.56.55A.56.56,0,0,1,13.94,2.23Z"/><path class="cls-4" d="M10.87,30.67H8.09a.84.84,0,0,1-.84-.83h0A.85.85,0,0,1,8.09,29h2.78a.85.85,0,0,1,.84.84h0A.84.84,0,0,1,10.87,30.67Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.83 32.52"><defs><style>.cls-1{fill:#ffd039;}.cls-2{fill:#f4b70c;}.cls-3{fill:#ffbb64;}.cls-4{fill:#ffae47;}.cls-5{fill:#ffdf65;}.cls-6{fill:#ffcd2c;}.cls-7{fill:#ffa035;}.cls-8{fill:#f78819;}</style></defs><title>Asset 9002-cup</title><g id="Layer_2" data-name="Layer 2"><g id="Livello_1" data-name="Livello 1"><path class="cls-1" d="M31.05,5.85h0a3.61,3.61,0,0,0-2.83-1.36H24.84a.47.47,0,0,0-.47.48V7.05a.47.47,0,0,0,.47.48h3.38a.56.56,0,0,1,.45.22.58.58,0,0,1,.11.46,9,9,0,0,1-1.93,4,5.79,5.79,0,0,1-2.37,1.58.46.46,0,0,0-.31.34,8.32,8.32,0,0,1-.84,2.26.46.46,0,0,0,0,.5.46.46,0,0,0,.39.2h.08a9,9,0,0,0,5.27-2.83,11.8,11.8,0,0,0,2.64-5.33A3.61,3.61,0,0,0,31.05,5.85Z"/><path class="cls-2" d="M27,12.28V12l-.15.16a5.79,5.79,0,0,1-2.37,1.58.46.46,0,0,0-.31.34,8.32,8.32,0,0,1-.84,2.26.46.46,0,0,0,0,.5.46.46,0,0,0,.39.2h.08a10,10,0,0,0,2.22-.65A9.45,9.45,0,0,0,27,12.28Z"/><path class="cls-2" d="M24.37,5V7.05a.47.47,0,0,0,.47.48H27v-3H24.84A.47.47,0,0,0,24.37,5Z"/><path class="cls-3" d="M19.5,28.05c-.14-.11-1.42-1.18-1.58-7a.49.49,0,0,0-.17-.36.54.54,0,0,0-.39-.1,8.66,8.66,0,0,1-1.44.13h0a8.69,8.69,0,0,1-1.45-.13.54.54,0,0,0-.39.1.49.49,0,0,0-.17.36c-.16,5.8-1.44,6.87-1.58,7a.44.44,0,0,0-.32.5.51.51,0,0,0,.5.42h6.81a.51.51,0,0,0,.5-.42A.44.44,0,0,0,19.5,28.05Z"/><path class="cls-4" d="M19.5,28.05c-.14-.11-1.42-1.18-1.58-7a.49.49,0,0,0-.17-.36.54.54,0,0,0-.39-.1,8.66,8.66,0,0,1-1.44.13h0l-.46,0a.48.48,0,0,1,.16.35c.16,5.8,1.43,6.87,1.58,7a.44.44,0,0,1,.32.5A.51.51,0,0,1,17,29h2.31a.51.51,0,0,0,.5-.42A.44.44,0,0,0,19.5,28.05Z"/><path class="cls-1" d="M.79,5.85h0A3.58,3.58,0,0,1,3.61,4.49H7A.47.47,0,0,1,7.46,5V7.05A.47.47,0,0,1,7,7.53H3.61a.56.56,0,0,0-.45.22.58.58,0,0,0-.11.46,9,9,0,0,0,1.93,4,5.79,5.79,0,0,0,2.37,1.58.46.46,0,0,1,.31.34,8.32,8.32,0,0,0,.84,2.26.46.46,0,0,1,0,.5.46.46,0,0,1-.39.2H8a9,9,0,0,1-5.27-2.83A11.8,11.8,0,0,1,.09,8.89,3.58,3.58,0,0,1,.79,5.85Z"/><path class="cls-2" d="M4.83,12.28V12l.15.16a5.79,5.79,0,0,0,2.37,1.58.46.46,0,0,1,.31.34,8.32,8.32,0,0,0,.84,2.26.46.46,0,0,1,0,.5.46.46,0,0,1-.39.2H8a10.16,10.16,0,0,1-2.22-.65A9.45,9.45,0,0,1,4.83,12.28Z"/><path class="cls-2" d="M7.46,5V7.05A.47.47,0,0,1,7,7.53H4.83v-3H7A.47.47,0,0,1,7.46,5Z"/><path class="cls-5" d="M24.84,2.76H7a.47.47,0,0,0-.48.48v9a9.41,9.41,0,1,0,18.81,0v-9A.47.47,0,0,0,24.84,2.76Z"/><path class="cls-6" d="M24.84,2.76H22.62a.47.47,0,0,1,.47.48v9a9.41,9.41,0,0,1-8.29,9.34,8.32,8.32,0,0,0,1.12.07,9.42,9.42,0,0,0,9.4-9.41v-9A.47.47,0,0,0,24.84,2.76Z"/><path class="cls-7" d="M20.06,11.17a1.05,1.05,0,0,0,.27-1.08,1,1,0,0,0-.85-.71l-1.76-.26a.08.08,0,0,1-.07,0l-.79-1.6a1,1,0,0,0-.94-.58h0a1,1,0,0,0-.95.58l-.79,1.6a.08.08,0,0,1-.07,0l-1.76.26a1,1,0,0,0-.85.71,1.05,1.05,0,0,0,.27,1.08L13,12.41a.1.1,0,0,1,0,.09l-.3,1.75a1.05,1.05,0,0,0,1.53,1.11l1.57-.83H16l1.57.83a1.11,1.11,0,0,0,.49.12,1.07,1.07,0,0,0,.62-.2,1,1,0,0,0,.42-1l-.3-1.75a.14.14,0,0,1,0-.09Z"/><path class="cls-8" d="M19.48,9.38,19,9.31,16.74,11.5a.57.57,0,0,0-.17.51l.52,3.11.44.24a1.11,1.11,0,0,0,.49.12,1.07,1.07,0,0,0,.62-.2,1,1,0,0,0,.42-1l-.3-1.75a.14.14,0,0,1,0-.09l1.27-1.24a1.05,1.05,0,0,0,.27-1.08A1,1,0,0,0,19.48,9.38Z"/><path class="cls-5" d="M25.12,31.89A5.14,5.14,0,0,0,20.43,28h-9a5.14,5.14,0,0,0-4.69,3.88.47.47,0,0,0,.07.43.49.49,0,0,0,.39.2h17.5a.48.48,0,0,0,.38-.2A.47.47,0,0,0,25.12,31.89Z"/><path class="cls-6" d="M25.12,31.89A5.14,5.14,0,0,0,20.43,28H16.77a5.14,5.14,0,0,1,4.69,3.88.5.5,0,0,1-.07.43.49.49,0,0,1-.39.2h3.67a.48.48,0,0,0,.38-.2A.47.47,0,0,0,25.12,31.89Z"/><path class="cls-1" d="M25.62,0H6.21a1.86,1.86,0,0,0,0,3.71H25.62a1.86,1.86,0,0,0,0-3.71Z"/><path class="cls-2" d="M25.62,0H23.46a1.86,1.86,0,1,1,0,3.71h2.16a1.86,1.86,0,0,0,0-3.71Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

@@ -0,0 +1 @@
var configuration_map = {"notificationRuleList":[],"config":{"enableNotification":true},"passKey":"{}"};
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
!function(){"use strict";"undefined"!=typeof PushSubscriptionOptions&&PushSubscriptionOptions.prototype.hasOwnProperty("applicationServerKey")||void 0!==window.safari&&void 0!==window.safari.pushNotification?function(){const n=document.createElement("script");n.src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160510",n.defer=!0,document.head.appendChild(n)}():function(){let n="Incompatible browser.";"Apple Computer, Inc."===navigator.vendor&&navigator.maxTouchPoints>0&&(n+=" Try these steps: https://tinyurl.com/bdh2j9f7"),console.info(n)}()}();
//# sourceMappingURL=OneSignalSDK.page.js.map
@@ -0,0 +1 @@
window.google_ad_status = 1;
@@ -0,0 +1,220 @@
var mult_send = 0;
function Contest_Send(){
mult_send = mult_send + 1;
PreparaContestSend('senduscontestform',false);
if (mult_send == 1)
{
AJAXReqContestSend("POST","send_us_contest.php",true);
}
}
function PreparaContestSend(nome,ele){
stringa = "";
var form = document.forms[nome];
var numeroElementi = form.elements.length;
for(var i = 0; i < numeroElementi; i++){
nmfrm = form.elements[i].name;
if(i < numeroElementi-1)
{
stringa += form.elements[i].name+"="+encodeURIComponent(form.elements[i].value)+"&";
}
else
{
stringa += form.elements[i].name+"="+encodeURIComponent(form.elements[i].value);
}
}
}
function AJAXReqContestSend(method,url,bool){
if(window.XMLHttpRequest){
myReq = new XMLHttpRequest();
} else
if(window.ActiveXObject){
myReq = new ActiveXObject("Microsoft.XMLHTTP");
if(!myReq){
myReq = new ActiveXObject("Msxml2.XMLHTTP");
}
}
if(myReq){
myReq.onreadystatechange = state_ContestSend;
myReq.open(method,url,bool);
myReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
myReq.send(stringa);
}else{
alert("Impossibilitati ad usare AJAX");
}
}
function state_ContestSend(bReload){
if (myReq.readyState==4){
mult_send = 0;
if (myReq.status==200){
ResponseContestSend(myReq.responseText);
}
else {
if (bDebug) {alert("Problem retrieving XML data");}
}
}
}
function ResponseContestSend(sResponse){
var vetResp = sResponse.split('|');
if (vetResp[0].toUpperCase() == 'OK')
{
if (MM_findObj("contest_name_msg"))
{
DisplayHTMLData(MM_findObj('contest_name_msg'), '&nbsp;');
}
if (MM_findObj("contest_video_msg"))
{
DisplayHTMLData(MM_findObj('contest_video_msg'), '&nbsp;');
}
if (MM_findObj("send_box_contest"))
{
MM_findObj("send_box_contest").style.display='none';
}
if (MM_findObj("send_box_contest_response"))
{
MM_findObj("send_box_contest_response").style.display='block';
}
}
else
{
if (MM_findObj("contest_name_msg"))
{
DisplayHTMLData(MM_findObj('contest_name_msg'), '&nbsp;');
}
if (MM_findObj("contest_video_msg"))
{
DisplayHTMLData(MM_findObj('contest_video_msg'), '&nbsp;');
}
for (b=1; b<vetResp.length; b++)
{
var f = vetResp[b].split(';');
var fldcont = f[0];
var msgcont = f[1];
if (fldcont == 'contest_name')
{
DisplayHTMLData(MM_findObj(fldcont + '_msg'), msgcont);
}
if (fldcont == 'contest_video')
{
DisplayHTMLData(MM_findObj(fldcont + '_msg'), msgcont);
}
}
}
}
var HTTP_FIRSTAUCT_URL = new String ('first_auct.php');
var xmlhttpFirstAuct = null;
function FirstAuct() {
var sUrlFirstAuct = HTTP_FIRSTAUCT_URL + "?chk=" + new Date().valueOf();
if (xmlhttpFirstAuct) {
if ((xmlhttpFirstAuct.readyState != 4) && (xmlhttpFirstAuct.readyState != 0)) {
return true;
}
}
try
{
if (window.XMLHttpRequest){
xmlhttpFirstAuct = new XMLHttpRequest();
} else if (window.ActiveXObject){
xmlhttpFirstAuct = new ActiveXObject("Microsoft.XMLHTTP");
}
if (xmlhttpFirstAuct != null){
xmlhttpFirstAuct.onreadystatechange = state_FirstAuct;
xmlhttpFirstAuct.open("GET",sUrlFirstAuct,true);
xmlhttpFirstAuct.send(null);
return true;
} else {
if (bDebug)
{
alert("Your browser does not support XMLHTTP.");
}
return false;
}
}
catch (e) {
xmlhttpFirstAuct = null;
if (bDebug) alert('Errore in loadXMLDocElenco');
}
finally {}
}
function state_FirstAuct(){
if (xmlhttpFirstAuct.readyState==4){
if (xmlhttpFirstAuct.status!=200){
if (bDebug) {
alert("Problem retrieving XML data");
}
}
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,129 @@
btn-promo {
border-radius: 3px;
background: linear-gradient(rgb(82, 157, 253), rgb(46, 114, 202));
background: -moz-linear-gradient(rgb(82, 157, 253), rgb(46, 114, 202));
background: -webkit-linear-gradient(rgb(82, 157, 253), rgb(46, 114, 202));
background: -o-linear-gradient(rgb(82, 157, 253), rgb(46, 114, 202));
background: -ms-linear-gradient(rgb(82, 157, 253), rgb(46, 114, 202));
color: #fff;
}
.btn.btn-promo:hover {
background: linear-gradient(rgb(117, 175, 250), rgb(53, 124, 216));
background: -moz-linear-gradient(rgb(117, 175, 250), rgb(53, 124, 216));
background: -webkit-linear-gradient(rgb(117, 175, 250), rgb(53, 124, 216));
background: -o-linear-gradient(rgb(117, 175, 250), rgb(53, 124, 216));
background: -ms-linear-gradient(rgb(117, 175, 250), rgb(53, 124, 216));
color: #fff;
}
.mCSB_inside > .mCSB_container {
margin-right: 0px;
}
.mCSB_scrollTools .mCSB_draggerRail {
width: 6px;
background-color: #e2e2e2;
}
.mCSB_scrollTools .mCSB_draggerContainer {
left: 10px;
}
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
background-color: #20cb9a !important;
width: 100%;
}
.loader {
margin: 10px auto;
border: 5px solid #f3f3f3;
/* Light grey */
border-top: 5px solid #20cb9a;
/* Blue */
border-radius: 50%;
width: 20px;
height: 20px;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}
.stopScroll{
overflow: hidden !important;
}
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@media screen and (max-width: 384px) {
#prod_win_cont_modal h3 {
padding-left: 30px;
padding-right: 30px;
}
}
@media screen and (max-width: 320px) {
.prod_won__2 {
margin-left: 1px !important;
margin-right: 1px !important;
}
#prod_win_cont_modal .col-xs-6{
padding-left: 5px;
padding-right: 5px;
}
}
#modal iframe {
width: 99%;
}
#myModal3 .modal-dialog, #myModal2 .modal-dialog {
margin: 30px auto;
}
.settingBox form div {
border-bottom: 1px solid #efefef;
padding: 15px;
font-weight: 500;
font-size: 12px;
color: #818181;
}
@media screen and (max-width: 991px) {
#menuModal .show {
display: block;
}
#menuModal .modal-header {
height: auto;
}
#menuModal .height {
height: 0px;
}
.parentOverflowY {
overflow-y: hidden;
}
}
#notifBoxContainer .mCSB_container {
top: 0px;
}
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

@@ -0,0 +1,206 @@
const AuctionsBidManage = (function() {
const _defaultPart = "divAsta";
let _nAstePerBonus = 10;
let _limiteAsteVinte = 10;
let _nAstePuntataVinte = 0;
let _percentualeBonus = 0;
let _nPuntateVinteOggi = 0;
let _nAsteConfermate = 0;
let _nPuntateRiscattate = 0;
let _nPuntateDaRiscattare = 0;
let _initialized = false;
let _defaultValidUntil = null;
let _viewSlot = false;
function _defaultObj() {
return {
auctions: {},
nAsteConfermate: 0,
percentualeBonus: 0,
limiteAsteVinte: 10,
nAstePerBonus: 10,
validUntil: getDefaultValidUntil()
}
}
/**
* Aggiunge una nuova asta all'oggetto delle aste di puntata vinte in un giorno
* @param idAuction {int}
*/
function add(idAuction){
let result = get();
let retrievedObject = JSON.parse(result);
let auctionBidWin = retrievedObject === null ? _defaultObj() : retrievedObject ;
let auctionElement = document.getElementById(_defaultPart + idAuction);
let creditValue = parseInt(auctionElement.getAttribute('data-credit-value')) > 0 ? parseInt(auctionElement.getAttribute('data-credit-value')) : 0;
if(creditValue > 0 && Object.keys(auctionBidWin.auctions).length <= auctionBidWin.limiteAsteVinte){
// let obj =
// {
// idAuction: idAuction,
// value: creditValue
// }
// ;
//
// if(!auctionBidWin.auctions.hasOwnProperty(idAuction)){
// auctionBidWin.auctions[idAuction] = obj;
// }
// let newObj = JSON.stringify(auctionBidWin);
//
// localStorage.setItem("auctionBidWin", newObj);
getRemoteData();
}
return;
}
function getDefaultValidUntil(){
return _defaultValidUntil;
}
function setDefaultValidUntil(untilTimestamp){
_defaultValidUntil = untilTimestamp;
}
/**
* Ritornano le informazioni salvate nel localStorage
* @returns {string}
*/
function get(){
return localStorage.getItem('auctionBidWin');
}
/**
* Rimuove dal localStorage
*/
function remove(){
localStorage.removeItem('auctionBidWin');
}
function getRemoteData(callback = null){
fetch('./ajax/get_auction_bids_info_banner.php',{
method: "GET"
})
// gestisci il successo
.then(response => response.json()) // converti a json
.then(function (data) {
let obj = {
auctions: data.auctions,
nAsteConfermate: data.nAsteConfermate,
nAsteVinte: data.nAsteVinte,
nPuntateRiscattate: data.nPuntateRiscattate,
nPuntateDaRiscattare: data.nPuntateDaRiscattare,
limiteAsteVinte: data.limiteAsteVinte,
nAstePerBonus: data.nAstePerBonus,
percentualeBonus: data.percentualeBonus,
validUntil: data.validUntil,
viewSlot: data.viewSlot,
extraSlots: data.extraSlots, //un elenco degli slots non scaduti e non aperti
nPuntateBonus: data.nPuntateBonus
};
let newObj = JSON.stringify(obj);
localStorage.setItem("auctionBidWin", newObj);
if(callback !== null){
callback();
}
})
.catch(err => console.log('Request Failed', err)); // gestisci gli errori
}
function retriveInfoComponent(){
let result = JSON.parse(get());
if(result) {
_nAstePuntataVinte = result.nAsteVinte;
_limiteAsteVinte = result.limiteAsteVinte;
_nAsteConfermate = result.nAsteConfermate;
_nPuntateDaRiscattare = result.nPuntateDaRiscattare;
_nPuntateRiscattate = result.nPuntateRiscattate;
_nAstePerBonus = result.nAstePerBonus;
_percentualeBonus = result.percentualeBonus;
_viewSlot = result.viewSlot;
_nPuntateVinteOggi = result.nPuntateDaRiscattare + result.nPuntateRiscattate;
/*if (_percentualeBonus > 0) {
let valorePercentualeBonus = ((_nPuntateVinteOggi * _percentualeBonus) / 100);
_nPuntateVinteOggi = _nPuntateVinteOggi + valorePercentualeBonus;
}*/
let asteRimanentiPerBonus = _nAstePerBonus - _nAstePuntataVinte;
return {
auctions: result.auctions,
asteRimanentiPerBonus: asteRimanentiPerBonus,
nAstePerBonus: _nAstePerBonus,
nAstePuntataVinte: _nAstePuntataVinte,
percentualeBonus: _percentualeBonus,
nPuntateVinteOggi: parseInt(_nPuntateVinteOggi),
limiteAsteVinte: _limiteAsteVinte,
nAsteConfermate: _nAsteConfermate,
nPuntateDaRiscattare: _nPuntateDaRiscattare,
nPuntateRiscattate: _nPuntateRiscattate,
viewSlot: _viewSlot,
extraSlots: result.extraSlots,
nPuntateBonus: result.nPuntateBonus
}
}
}
/**
*
* @param auctionId
* @returns {boolean}
*/
function searchByAuctionId(auctionId){
let data = retriveInfoComponent();
let controllo = false;
if(data == undefined || data == null ){ return; }
let keys = Object.keys(data.auctions);
for(let i= 0; i <= keys.length; i++){
if(keys[i] === auctionId){
return true;
}
}
return false;
}
function initRemoteData(){
if(!_initialized){
getRemoteData();
setInterval(function (){
getRemoteData();
}, 1000 * 60);
}
_initialized = true;
}
return {
add,
get,
remove,
getRemoteData,
retriveInfoComponent,
initRemoteData,
setDefaultValidUntil,
searchByAuctionId
}
})();
@@ -0,0 +1,927 @@
#wrapBonusSection{
width: 100%;
background-color: #fff;
margin-bottom: 20px;
-webkit-box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.2);
box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.2);
border-top: 1px solid #d0d0d0;
display: none;
cursor: pointer;
}
#wrapBonusSection.visible{
display: block;
}
#BonusSection{
display: flex;
justify-content: space-between;
width: 65%;
min-height: 40px;
margin: 0 auto;
align-items: center;
margin-bottom: -25px;
}
@media (max-width: 576px) {
#BonusSection{
margin-bottom: 0;
}
}
#BonusSection .wrap-msg-bonus, #BonusSection .pt-2 .wrap-progress, #BonusSection .pt-1 .wrap-progress, #BonusSection .pt-3 .wrap-progress, #BonusSection .pt-3 .wrap-bids, #auctionBidsModal .wrap-msg-bonus, #auctionBidsModal .wrap-msg-bonus .wrap-progress, #bidsBonusSection #section2 .wrap-progress, #bidsBonusSection #section3 .wrap-progress{
display: flex;
justify-content: center;
align-items: center;
}
#bidsBonusSection #section2 .wrap-progress{
font-size: 14px;
}
#auctionBidsModal #countdownAddSlot{
font-weight: bold;
color: #55bc62;
}
#auctionBidsModal .wrap-msg-bonus{
margin-bottom: 25px;
}
#BonusSection .pt-2 .item, #BonusSection .pt-3 .item{
margin: 2px;
}
#BonusSection .pt-2, #BonusSection .pt-1, #BonusSection .pt-3, #auctionBidsModal .wrap-pt2{
display: flex;
justify-content: center;
align-items: center;
}
#auctionBidsModal .wrap-pt2 .bonus-obtained{
font-size: 12px;
color: #6F6F6F;
font-weight: bold;
margin-top: 3px;
display: none;
}
#auctionBidsModal .wrap-pt2{
justify-content: space-around;
align-items: flex-start;
margin-top: 20px;
border-top: 1px solid #DBDBDB;
padding-top: 20px;
font-size: 13px;
margin-bottom: 10px;
}
@media (max-width: 340px) {
#auctionBidsModal .wrap-pt2{
font-size: 12px;
}
}
#auctionToBonusModal{
font-size: 15px;
color: #333;
}
#BonusSection .text{
color: #6D6D6D;
font-size: 15px;
margin: auto 4px;
}
#BonusSection .pt-2 img{
height: 29px;
}
#BonusSection .pt-2 .img-emoji img, #auctionBidsModal .img-emoji img {
height: 18px;
width: 18px;
margin-left: -10px;
margin-top: -3px;
}
#auctionBidsModal .img-emoji img{
width: 24px;
height: 24px;
}
#auctionBidsModal .img-emoji{
z-index: 9;
margin-left: -3px;
margin-right: 2px;
}
#BonusSection .pt-dx img, #auctionBidsModal .pt-dx img, #auctionBidsModal .pt-center img{
width: 16px;
}
#BonusSection .pt-2 .wrap-progress .progress{
margin-left: 5px;
background-color: #D1D1D1;
}
#auctionBidsModal .progress{
width: 56px;
height: 24px;
margin: 0 6px;
position: relative;
background-color: #D1D1D1;
border-radius: 20px;
}
#auctionBidsModal .progress{
width: 110px;
height: 22px;
}
#auctionBidsModal .pt-1 .progress{
height: 11px;
}
#BonusSection .progress, #auctionBidsModal .progress{
width: 60px;
height: 13px;
margin-bottom: 0px;
}
#auctionBidsModal .progress{
width: 90px;
}
#BonusSection #countdown-bonus{
width: 60px;
color: #fff;
background-color: #FF0658;
font-weight: bold;
font-size: 11px;
padding: 0px 4px;
height: 16px;
border-radius: 5px;
}
#BonusSection #bonus-earned, #BonusSection #bonus-active-all{
display: none;
font-weight: bold;
margin-right: 15px;
}
@media (max-width: 576px) {
#BonusSection #bonus-earned, #BonusSection #bonus-active-all{
font-size: 12px;
}
}
#BonusSection #bonus-active-all{
color: #55bc62;
}
#BonusSection .progress .progress-bar, #auctionBidsModal .pt-1 .progress .progress-bar, #auctionBidsModal #bidsBonusSection #section2 .progress .progress-bar, #auctionBidsModal .progress .progress-bar{
background: rgb(4,170,176);
background: linear-gradient(90deg, rgba(4,170,176,1) 0%, rgba(7,206,173,1) 100%);
box-shadow: none;
}
#BonusSection .progress .progressbar-text{
position: absolute;
top: 2px;
height: 22px;
color: #000;
width: 100%;
left: 0;
margin: 0;
font-size: 16px;
font-weight: bold;
}
#auctionBidsModal .progress .progressbar-text{
font-size: 15px;
top: 0;
}
#todayBids, #auctionBidsModal{
font-size: 16px;
color: #333;
}
#auctionBidsModal{
font-weight: normal;
}
#auctionToBonus.active{
font-weight: bold;
color: #000;
}
#confirmedAuctionWithBonus{
display: none;
margin-left: 5px;
}
#confirmedAuctionWithBonus .value{
font-weight: bold;
}
.wrap-bonus-mobile{
display: flex;
justify-content: center;
align-items: center;
}
.wrap-bonus-mobile .wrap-bonus-value{
font-size: 14px;
color: #504E4E;
margin-left: 5px;
}
#auctionBidsModal .wrap-bonus-value{
margin-right: 2px;
}
#BonusSection .pt-3 img{
width: 15px;
}
#BonusSection .wrap-title-bonus{
display: flex;
}
#BonusSection .wrap-title-bonus .icon-check{
width: 15px;
display: none;
margin-right: 4px;
}
#BonusSection .pt-2 #countdown-bonus{
display: none;
}
@media (max-width: 1040px) {
#BonusSection{
width: 100%;
justify-content: space-around;
min-height: 50px;
}
#BonusSection .pt-1, #BonusSection .pt-2, #BonusSection .pt-3{
flex-direction: column;
}
#BonusSection .pt-3 .wrap-bids{
display: flex;
justify-content: center;
align-items: center;
}
#BonusSection .text {
font-size: 12px;
}
#BonusSection .pt-2 img{
margin-right: 5px;
height: 18px;
width: 10px;
}
#BonusSection .pt-1 .progress {
width: 90px;
height: 10px;
}
#todayBids{
font-size: 14px;
}
#BonusSection .pt-3 .item{
margin: 0;
}
#BonusSection .pt-3 img{
width: 13px;
margin-top: -1px;
margin-left: 3px;
}
#BonusSection .wrap-msg-bonus{
flex-direction: column;
justify-content: flex-start;
align-items: baseline;
}
.wrap-bonus-mobile{
display: flex;
justify-content: center;
align-items: center;
}
}
@media (max-width: 576px) {
#BonusSection {
min-height: 45px;
}
}
@media (max-width: 360px) {
#BonusSection .text {
font-size: 11px;
}
}
#auctionBidsModal .pt-left .wrap-progress, #auctionBidsModal .pt-dx .wrap-bids, #auctionBidsModal .pt-center .wrap-bids{
display: flex;
justify-content: center;
align-items: center;
margin-top: 5px;
font-weight: bold;
}
#auctionBidsModal .pt-center .item, #auctionBidsModal .pt-dx .item{
margin-left: 1px;
margin-right: 1px;
}
#auctionBidsModal .pt-center .item img, #auctionBidsModal .pt-dx .item img{
margin-left: 2px;
margin-right: 2px;
margin-top: -5px;
}
#auctionToGoModal{
font-size: 14px;
font-weight: bold;
}
@media (max-width: 340px) {
#auctionBidsModal .wrap-pt2{
font-size: 12px;
}
#auctionToGoModal, #todayBidsModal, #todayBidsPayedModal{
font-size: 13px;
}
}
#todayBidsModal, #todayBidsPayedModal{
font-size: 14px;
font-weight: bold;
}
#loaderAuctionBids{
min-height: 40px;
text-align: center;
padding: 5px;
font-size: 20px;
}
#auctionToGo{
color: #000;
margin-left: 5px;
}
.loader-data{
display: block;
position: relative;
margin-right: 0px !important;
margin-left: 0px !important;
}
.loader-data::before{
content: "";
background-color: #eaeaea;
display: block;
width: 100%;
height: 22px;
position: absolute;
}
@media (max-width: 576px) {
.loader-data{
margin-top: 2px !important;
margin-bottom: 2px !important;
}
.loader-data::before{
height: 16px;
min-width: 20px;
}
}
#BonusSection .pt-1, #BonusSection .pt-2, #BonusSection .pt-3{
position: relative;
}
.loader-data img{
display: none !important;
}
.wrap-countdown-auctionBidsModal{
color: #55BC62;
font-weight: bold;
}
#auctionBidsModal .wrapTitle{
margin: 20px auto 10px;
display: flex;
align-items: center;
justify-content: center;
}
#auctionBidsModal .modal-body{
padding: 0;
}
#auctionBidsModal .contentModal #bidsBonusSection .content, #auctionBidsModal .contentModal #rankingBonusSection{
font-size: 16px;
text-align: center;
margin-top: 15px;
padding: 15px;
}
#auctionBidsModal .contentModal #bidsBonusSection .content{
margin-top: 0;
padding: 0;
}
#auctionBidsModal .contentModal #bidsBonusSection .content.parent-content-div {
padding: 0 0 5px 0;
}
#tabsSection{
display: flex;
align-items: center;
}
@media (max-width: 576px) {
#tabsSection{
font-size: 14px;
}
}
#tabsSection .pt-1{
width: 55%;
}
#tabsSection .pt-2{
width: 40%;
}
#tabsSection .pt-1, #tabsSection .pt-2{
padding: 8px 18px;
border-bottom: 1px solid #BCBCBC;
text-align: center;
font-size: 14px;
}
#tabsSection .pt-1 .fa, #tabsSection .pt-2 .fa{
margin-right: 5px;
}
#tabsSection .pt-3{
width: 10%;
padding: 5px 10px;
border-bottom: 1px solid #BCBCBC;
}
button[aria-label='Close'] span{
font-size: 26px;
}
@media (max-width: 576px) {
#tabsSection .pt-3{
padding: 4px 10px;
}
#tabsSection .pt-1, #tabsSection .pt-2{
font-size: 12px;
padding: 8px 10px;
}
button[aria-label='Close'] span{
font-size: 25px;
}
}
#tabsSection .pt-1.active, #tabsSection .pt-2.active, #tabsSection .pt-3.active{
border-color: #2F80ED;
}
#tabsSection .pt-1.active a, #tabsSection .pt-2.active a, #tabsSection .pt-3.active a, #tabsSection .pt-1.active a:hover, #tabsSection .pt-2.active a:hover{
color: #2F80ED;
font-weight: bold;
text-decoration: none;
}
#tabsSection .pt-1 a, #tabsSection .pt-2 a{
color: #7d7d7d;
}
#tabsSection .pt-1 a:hover, #tabsSection .pt-2 a:hover{
text-decoration: none;
font-weight: normal;
color: #2F80ED;
}
#rankingBonusSection{
display: none;
}
#bidsBonusSection #section2 .box-congrats,
#bidsBonusSection #section3 .box-congrats{
margin-top: 12px;
}
#bidsBonusSection #section2, #bidsBonusSection #section3{
display: none;
}
#bidsBonusSection #section2 .titleModal{
font-size: 20px;
}
#auctionBidsModal .wrap-credit-bonus{
display: inline-block;
}
#auctionBidsModal #bidsBonusSection .wrap-content{
display: flex;
flex-direction: column;
}
#bidsBonusSection #section2 .summary-body #countdown-bonus{
font-size: 14px;
}
#bidsBonusSection #section2 .summary-body .countdown{
color: #FF0658;
}
#bidsBonusSection #section2 .summary-body #countdownForBonus{
font-weight: bold;
}
#bidsBonusSection #section2 .summary{
margin-top: 30px;
}
#bidsBonusSection #section2 .summary-body{
width: 250px;
margin: -18px auto 25px;
border: 1px solid #000;
border-radius: 5px;
padding: 20px 15px;
box-shadow: 2px 2px 3px 1px rgba(208, 209, 213, 0.2), 0 2px 2px 1px rgba(220, 221, 224, 0.2);
-webkit-box-shadow: 2px 2px 3px 1px rgba(208, 209, 213, 0.2), 0 2px 2px 1px rgba(220, 221, 224, 0.2);
-moz-box-shadow: 2px 2px 3px 1px rgba(208, 209, 213, 0.2), 0 2px 2px 1px rgba(220, 221, 224, 0.2);
}
#bidsBonusSection #section3 .summaryTitle{
font-size: 20px;
font-weight: bold;
margin-top: 40px;
}
#bidsBonusSection #section3 .summaryList img{
width: 18px;
}
#bidsBonusSection #section3 .summaryList ul{
text-align: left;
width: 300px;
margin: 5px auto 20px;
line-height: 30px;
}
.bottom-area{
font-size: 16px;
}
.bottom-area.highlight{
color: #FF0658;
font-weight: bold;
margin-top: 15px;
margin-bottom: -10px;
}
#auctionBidsModal #bidsBonusSection #bonusSection img{
width: 20px;
margin-top: -2px;
}
#auctionBidsModal #bidsBonusSection #bonusSection .bottomSection img{
width: 16px;
margin-right: 4px;
}
#auctionBidsModal #bidsBonusSection #bonusSection .bottomSection{
font-size: 16px;
margin-bottom: 15px;
color: #5F5F5F;
}
#bonusSection .btnConfirm{
font-size: 18px;
display: inline-block;
color: #333;
background-color: #fcc62d;
padding: 5px;
line-height: 25px;
border-radius: 5px;
font-weight: bold;
margin-bottom: 10px;
margin-top: 10px;
width: 95%;
text-decoration: none;
}
@media (max-width: 576px) {
#auctionBidsModal #bidsBonusSection #bonusSection .bottomSection {
font-size: 15px;
}
#bonusSection .btnConfirm{
font-size: 16px;
}
}
#rankingBonusSection .title{
font-size: 20px;
font-weight: bold;
margin-bottom: 5px;
}
#rankingBonusSection .subtitle{
font-size: 14px;
}
#rankingBonusSection #ranking{
padding: 0 10px;
}
#rankingBonusSection #ranking table{
margin-top:30px;
width: 100%;
}
#rankingBonusSection #ranking table td{
text-align: left;
}
#rankingBonusSection #ranking table .td1{
text-align: center;
font-weight: bold;
font-size: 14px;
}
#rankingBonusSection #ranking table .td1 img{
width: 38px;
}
#rankingBonusSection #ranking table td.td2{
font-size: 16px;
width: 70%;
padding: 8px 10px;
text-transform: capitalize;
}
#rankingBonusSection #ranking table td.td3{
width: 25%;
font-size: 14px;
font-weight: bold;
text-align: right;
}
#rankingBonusSection #ranking table td.td3 img{
width: 17px;
margin-left: 4px;
}
#auctionBidsModal #section1, #auctionBidsModal #section4{
display: none;
}
#auctionBidsModal #section1{
padding: 0px 20px;
}
#auctionBidsModal #section4 .sad{
width: 25px;
margin-bottom: 10px;
}
#BonusSection .img-lock, #BonusSection .img-lock-open{
display: none;
}
#BonusSection .img-lock img, #BonusSection .img-lock-open img{
width: 12px;
margin-left: 5px;
margin-top: -1px;
}
#BonusSection .pay-bids-counter{
margin-left: 5px;
color: #fff;
background-color: #FF0658;
border-radius: 40px;
width: 19px;
height: 19px;
text-align: center;
font-weight: bold;
font-size: 11px;
padding: 2px;
display: none;
}
#auctionBidsModal .wrap-new-daily-challenge.wrap2{
margin-top: 5px;
}
#auctionBidsModal .wrap-new-daily-challenge{
color: #2F80ED;
font-size: 16px;
font-weight: bold;
margin: 20px 60px 0px;
display: none;
}
@media (max-width: 576px) {
#auctionBidsModal .wrap-new-daily-challenge {
margin: 20px 40px 0;
}
}
#BonusSection .img-plus-not-active, #BonusSection .img-plus-active{
display: none;
}
#auctionBidsModal .extraSlots .slot-title .open-lock{
margin-top: -5px;
width: 15px;
margin-right: 3px;
}
#auctionBidsModal .extraSlots .slot-title span .fa{
font-size: 20px;
position: absolute;
margin-left: 5px;
}
#auctionBidsModal .extraSlots .wrap-content-slot{
padding: 10px 0 15px;
}
#auctionBidsModal .bonus-obtained{
display: none;
}
#auctionBidsModal .extraSlots{
border: none;
margin: -5px auto 0;
padding: 10px 15px;
text-align: center;
background-color: #f3f6f9;
border-radius: 0;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
#auctionBidsModal .extraSlots.avaible{
border-color: #55BC62;
}
#extraSlotTemplate{
display: none;
}
#wrapSlots{
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
#wrapSlots .box-extra-slot{
border: 1px solid #6F6F6F;
background-color: #f3f6f9;
padding: 10px;
border-radius: 5px;
width: 100px;
margin-top: 15px;
display: none;
}
.wrap-num-other-slot{
position: relative;
display: none;
font-weight: bold;
margin-top: 10px;
font-size: 12px;
}
.wrap-num-other-slot .reduce{
display: none;
position: absolute;
top: 0;
right: 20px;
color: #333;
text-decoration: underline;
}
.wrap-num-other-slot .open{
color: #55BC62;
text-decoration: underline;
display: none;
}
#wrapSlots .box-extra-slot .expire{
font-size: 10px;
font-weight: bold;
color: #6A6B6C;
margin-bottom: 5px;
}
#wrapSlots .box-extra-slot .expire img{
margin-left: 2px;
}
#wrapSlots .box-extra-slot .content{
display: flex;
justify-content: center;
}
#wrapSlots .box-extra-slot .content .slot-value{
font-size: 18px;
font-weight: bold;
color: #333;
}
#wrapSlots .box-extra-slot .wrap-cta .cta{
background-color: #B4B4B4;
color: #fff;
padding: 0px 10px;
font-size: 12px;
font-weight: bold;
width: 100%;
max-height: 23px;
}
#wrapSlots .box-extra-slot .wrap-cta .cta img{
margin-top: -2px;
margin-right: 2px;
}
.extraSlots .wrap-content-slot{
display: none;
}
.extraSlots .slot-title a{
width: 100%;
display: block;
color: #333;
text-decoration: none;
}
.extraSlots .slot-title{
color: #000;
font-size: 14px;
font-weight: bold;
}
.extraSlots .slot-content{
font-size: 12px;
}
.extraSlots .slot-content .beforeConfirmed, .extraSlots .slot-content .afterConfirmed{
display: none;
}
.wrap-extra-slots .box-noSlot .titleNoSlot{
color: #FE4E4E;
font-size: 14px;
font-weight: bold;
}
.wrap-extra-slots .box-noSlot .contentNoSlot{
font-size: 12px;
}
.wrap-extra-slots .box-noSlot .contentNoSlot img{
width: 17px;
margin-top: -3px;
margin-left: 3px;
}
.wrap-extra-slots .box-noSlot{
margin-top: 10px;
}
.wrap-extra-slots .box-noSlot{
display: none;
}
.wrap-extra-slots .box-noSlot .box-noextra-slot .no-extra-slot-content .slot-img img{
width: 20px;
opacity: 0.6;
margin-bottom: 5px;
}
.wrap-extra-slots .box-noSlot .box-noextra-slot .no-extra-slot-content{
font-size: 10px;
color: #333;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
}
.wrap-extra-slots .box-noSlot .box-noextra-slot{
width: 92px;
margin: 20px auto;
height: 81px;
border: 1px solid #55BC62;
border-radius: 5px;
}
#wrapSlots.avaible .box-extra-slot{
border-color: #55BC62;
background-color: #EDF8EF;
}
#wrapSlots.avaible .box-extra-slot .wrap-cta .cta{
background-color: #55BC62;
}
.wrap-extra-slots{
display: none;
}
.wrap-extra-slots .title-extraSlot-blocked{
font-size: 18px;
font-weight: bold;
width: 100%;
margin: 0 0 10px;
display: none;
text-align: center;
}
.wrap-extra-slots .title-extraSlot-blocked img{
width: 18px;
margin-top: -5px;
}
#auctionBidsModal #bidsBonusSection .img-lock, #auctionBidsModal #bidsBonusSection .img-lock-open{
display: none;
}
#auctionBidsModal #bidsBonusSection .img-lock img, #auctionBidsModal #bidsBonusSection .img-lock-open img{
margin-left: 5px;
width: 14px;
margin-top: -5px;
}
#auctionBidsModal #differenzaAsteDaConfermare{
color: #fff;
background-color: #FF0658;
border-radius: 40px;
width: 23px;
height: 23px;
text-align: center;
font-weight: bold;
padding: 1px 2px;
display: inline-block;
font-size: 15px;
}
#auctionBidsModal #bonusEarned img{
width: 15px;
margin-left: 5px;
}
#auctionBidsModal .wrap-already-taken, #auctionBidsModal .bonus-yet-to-be-obtained{
display: none;
}
#auctionBidsModal .wrap-already-taken .txt-already-taken{
color: #797979;
}
#auctionBidsModal .bonus-yet-to-be-obtained{
color: #FF0658;
}
#auctionBidsModal #bonusEarned .wrap-details-bonus{
text-align: center;
margin: 7px 0;
}
#auctionBidsModal #modalConfirmSlotStopGame{
z-index: 11;
position: absolute;
top: 0;
bottom: 0;
height: 130px;
background-color: #fff;
width: 270px;
margin: auto;
left: 0;
right: 0;
padding: 15px;
border-radius: 5px;
text-align: center;
display: none;
}
#auctionBidsModal #modalConfirmSlotStopGame .contentButton .btn{
padding: 2px 13px;
font-size: 12px;
color: #fff;
font-weight: bold;
margin: 3px;
}
#auctionBidsModal #modalConfirmSlotStopGame .contentButton .btn-confirm{
background-color: #55BC62
}
#auctionBidsModal #modalConfirmSlotStopGame .contentButton .btn-cancel{
background-color: #BFBFBF;
}
#auctionBidsModal #modalConfirmSlotStopGame .contentButton{
display: flex;
justify-content: center;
margin-top: 10px;
}
#auctionBidsModal #modalConfirmSlotStopGame .content{
font-size: 12px;
text-align: center;
}
#auctionBidsModal #modalConfirmSlotStopGame .title{
color: #FF0202;
text-align: center;
font-size: 13px;
font-weight: bold;
margin-bottom: 5px;
}
#auctionBidsModal .overlayModalConfirmSlotStopGame{
background: rgba(0,0,0,0.2);
top: 0;
left: 0;
position: absolute;
width: 100%;
height: 100%;
display: none;
}
@@ -0,0 +1,113 @@
$(document).ready(function () {
window.myAuctionsControlDetail = new Array(); // array di oggetti deputato a contenere l'asta dove si sta autopuntando
window.myAuctionsControlDetail_lock = false; // flag to lock SetInterval execution
/*
*
* @returns {undefined}
* questa funzione si occupa di controllare ogni 2 secondi se l'asta (dettaglio) su cui c'è un'autopuntata sia realmente attive o c'è stato un blocco lato UI
*
*/
setInterval(
function () {
if (window.myAuctionsControlDetail_lock == false) {
window.myAuctionsControlDetail_lock = true; // lock setinterval execution
//console.log("--- Checking autobids..."); // FOR DEBUG
let isAuctionStarted_element = $(".auction-action-timer.auction-header-item-size.closed-timer"); // element not present if auction started
let callingAjax = false;
if (isAuctionStarted_element.length == 0) { // check element not present if auction started
let element_value = $('.auction-autobid-current-value'); // recupero il valore delle puntate rimanenti nell'asta
if (element_value.length > 0) {
let value = $(element_value[0]).text(); // recupero il valore delle puntate rimanenti nell'asta
//console.log("Puntate autobid = "+value); // FOR DEBUG
if (value > 0) {
let idasta = $('input.js-switch.autobid-switch').data("id"); // recupero l'id dell'asta
//console.log("Checking Asta: " + idasta); // FOR DEBUG
let timestamp = Date.now();
let myAuctions = {
idasta: idasta,
value: value,
timestamp: timestamp,
element_value: element_value
}
if (window.myAuctionsControlDetail.length == 0) { // controllo che questa asta non sia già nell'array
//console.log("Adding Asta in array."); // FOR DEBUG
window.myAuctionsControlDetail = myAuctions;
} else {
if (window.myAuctionsControlDetail.value != value) { // controllo che il valore sia cambiato per in modo da aggiornare le informazioni
//console.log("Value changed."); // FOR DEBUG
window.myAuctionsControlDetail = myAuctions;
} else {
//console.log("Checking time..."); // FOR DEBUG
// in questa condizione il valore non è cambiato dunque controllerò da quanto tempo non cambia
var diffMs = (Date.now() - window.myAuctionsControlDetail.timestamp);
//console.log("diffMs = "+diffMs); // FOR DEBUG
//var diffMins = Math.round(((diffMs % 86400000) % 3600000) / 60000); // minutes
var diffSecs = Math.round(((diffMs % 86400000) % 3600000) / 1000); // minutes
//console.log("diffSecs = "+diffSecs); // FOR DEBUG
// nel caso in cui la differenza è maggiore o uguale a 2 minuti invoco la funzione che si occuperà di spedire le informazioni lato backend
if (diffSecs >= 70) { // default 70 secs
callingAjax = true;
sentToVerification(myAuctions);
window.myAuctionsControlDetail = new Array(); // elimino l'asta dall'array
}
}
}
} else {
window.myAuctionsControlDetail = new Array(); // elimino l'asta dall'array
}
}
}
if (callingAjax === false) {
window.myAuctionsControlDetail_lock = false; // unlock setinterval execution
}
}
},
2000);
function sentToVerification(myAuctions) {
// funzione che serve ad inviare al backend l'asta attiva ma con valori di autopuntata fermi da 2 min
//console.log(myAuctions); // FOR DEBUG
$.ajax({
url: "check_autobid.php",
//dataType: json,
method: 'POST',
timeout: 10000, // default 10000
data : {
idasta: myAuctions.idasta,
value: myAuctions.value,
timestamp: myAuctions.timestamp
},
}).done(function (response) {
window.myAuctionsControlDetail_lock = false; // unlock setinterval execution
//console.log("response = " + response); // FOR DEBUG
$(myAuctions.element_value).text(response);
}).fail(function(jqXHR, textStatus){
if(textStatus === 'timeout') {
//console.log("Ajax timeout. Recall ajax."); // FOR DEBUG
sentToVerification(myAuctions);
}
});
}
});
@@ -0,0 +1,322 @@
function getTexts() {
"use strict"
return {
dialog_confirm: "Sei sicuro di voler rimuovere l\'AutoPuntata?",
autobid_active: "Hai attivato la funzione utilizzando le puntate prenotate",
autobid_not_active: "Attiva la funzione utilizzando le puntate prenotate",
autobid_add: "AGGIUNGI",
autobid_insert: "INSERISCI"
};
}
function enableAutobid() {
"use strict";
$(".auction-action-autobid-trigger")
.toggleClass("button-fucsia-flat", true)
.toggleClass("button-gray-flat", false)
.off('click')
.on('click', setAutobid);
$(".auction-action-autobid-input")
.attr('disabled', false)
.off("keyup").keyup(function (e) {
if (13 == e.which)
$(".auction-action-autobid-trigger").click();
$(".auction-action-autobid-mobile .auction-action-autobid-trigger").toggleClass("disable", $(this).val().length == 0);
});
}
function disableAutobid(reason) {
"use strict";
$(".auction-action-autobid-trigger")
.off('click')
.on('click', function () {
if (!reason)
return;
showErrorTooltip('.auction-action-autobid-trigger:eq(' + getAuctionSelector() + ')', {
title: reason,
html: true,
container: "body",
trigger: "manual",
placement: "top",
template: getTemplateTooltip("error")
}, 3000);
});
}
function unsetAutobid(evt) {
"use strict";
if ('undefined' == typeof window['autobid_switchery']) {
return;
}
if (!isSwitchEnabled()) {
if (evt) {
window._autoController.setAutobid('delete', null, cleanUpAutobidSwitch);
}
}
}
function cleanUpAutobidSwitch() {
"use strict"
$(".auction-autobid-button")
.toggleClass("active", false)
.find(".bi-autobid")
.toggleClass("bi-dark", true)
.toggleClass("bi-green", false);
$(".auction-action-bid-mobile .auction-autobid-current-value").empty();
setTimeout(function () {
if (!isSmartphoneDevice())
$('.auction-action-autobid-trigger').text(getTexts().autobid_insert);
}, 400);
updateAutobid(0);
$('.auction-action-autobid:not(.auction-seat-autobid) .autobid-switch-container, .auction-action-autobid-mobile .autobid-switch-container').hide();
}
function isSwitchEnabled() {
return 'undefined' != typeof window['autobid_switchery'] && window.autobid_switchery[isSmartphoneDevice() ? 1 : 0].isChecked();
}
function hideAutobid() {
"use strict";
$(".auction-action-autobid:visible").hide();
}
function showLoginAutobid() {
"use strict";
$(".auction-action-autobid-trigger")
.off('click')
.on('click', window.parent.showLogin);
$(".auction-action-autobid-input").attr('disabled', true);
}
function bindAutobidTrigger() {
"use strict";
var sNickLoggato = $("#NickLoggato").length > 0 ? $("#NickLoggato").val() : "";
if (sNickLoggato.length <= 0) {
return showLoginAutobid();
}
$('.auction-action-autobid-trigger').off('click').on('click', function (evt) {
var triggerElement = $(this);
rippleButton(triggerElement, evt);
var autobidInputElement = $(".auction-action-autobid-input").eq(isSmartphoneDevice() ? 1 : 0);
var inputAmount = parseInt(autobidInputElement.val(), 10);
var dataInputAmount = parseInt(autobidInputElement.data("amount"), 10);
var autobidAmount = !isNaN(dataInputAmount) ? dataInputAmount : inputAmount;
autobidInputElement.removeData("amount");
var autobidLoader = $(".auction-autobid-loader-container");
var switchContainer = $('.autobid-switch-container');
triggerElement.removeAttr("data-autobid-button");
var isNotValidAmount = isNaN(inputAmount) && isNaN(dataInputAmount);
if (isNotValidAmount) {
if (isSmartphoneDevice() && !$("[data-stage='2']").is(":visible"))
return $(".auction-action-autobid-mobile .auction-action-autobid-input").trigger("focus");
} else {
autobidLoader.removeClass("hidden");
switchContainer.hide();
}
cleanAutobidRequest();
window._autoController.setAutobid('create', autobidAmount, function () {
switchContainer.show();
if (true == isSwitchEnabled())
return;
$(".autobid-switch.js-switch:hidden")
.eq(isSmartphoneDevice() ? 1 : 0)
.data("autobid-enabled", "true")
.trigger('click');
$(".auction-autobid-button")
.toggleClass("active", true)
.find(".bi-autobid")
.toggleClass("bi-dark", false)
.toggleClass("bi-green", true);
var id_product = getUrlParam("a").split("_").reverse()[0];
$("#DA"+id_product).find('.favorite').attr('title', "Non puoi rimuoverla dai preferiti se è attiva l\'autopuntata");
$("#DA"+id_product).find('.favorite').attr('data-original-title', "Non puoi rimuoverla dai preferiti se è attiva l\'autopuntata");
$("#DA"+id_product).find('.favorite').attr('disabled', 'disabled');
$("#DA"+id_product).find('.favorite').addClass('active');
if (isDeepModal()) {
window.parent.BidooCnf.instances.auction.features.startAutobidAuctionUpdate();
}
if (isSmartphoneDevice())
return;
setTimeout(function () {
$('.auction-action-autobid-trigger').text(getTexts().autobid_add);
}, 400);
});
});
}
function setAutobid() {
"use strict";
if ('undefined' == typeof window['autobid_switchery']) {
return;
}
bindAutobidTrigger();
$('.auction-action-autobid-trigger').not("[data-autobid-button]").trigger('click');
}
function updateAutobid(value) {
"use strict";
var element = $(".auction-autobid-current-value");
var oldValue = parseInt(element.eq(0).text(), 10);
if (value != oldValue) {
element.toggle(value > 0);
element.text(value);
return true;
}
return false;
}
function cleanAutobidRequest() {
"use strict";
$(".auction-action-autobid-input").val('');
window._autoController.stopTicker();
}
function updateAutobidStatus(status, value) {
"use strict";
switch (status) {
case 'set':
case 'create':
{
if (0 == value) {
closeSwitch();
} else {
updateAutobid(value);
}
break;
}
case 'unset':
{
closeSwitch();
unsetAutobid(0);
break;
}
}
}
function closeSwitch() {
$('.js-switch.autobid-switch')
.eq(isSmartphoneDevice() ? 1 : 0)
.data("autobid-enabled", "false")
.trigger("click");
}
function setAutobidUI(isAutobid) {
"use strict"
$(".auction-action-autobid-mobile .autobid-switch-container").toggle(isAutobid);
$(".auction-action-bid-mobile .auction-autobid-button")
.toggleClass("active", isAutobid)
.find(".bi-autobid")
.toggleClass("bi-dark", !isAutobid)
.toggleClass("bi-green", isAutobid);
$(".js-switch.autobid-switch")
.data("autobid-enabled", "false")
.trigger('click');
}
function setCorrectPlaceholder(isFocused) {
"use strict"
this.attr("placeholder", isFocused ? "" : $(this).data("placeholder"));
$(".auction-action-autobid-mobile .auction-action-autobid-trigger").toggleClass("disable", this.val().length == 0);
}
$(document).ready(function () {
"use strict";
window.autobid_switchery = [];
window.autobid_seat_switchery = [];
$(".js-switch.autobid-switch").each(function (k, item) {
window.autobid_switchery.push(new Switchery(item, {size: 'small'}));
});
$(".js-switch.autobid-seat-switch").each(function (k, item) {
window.autobid_seat_switchery.push(new Switchery(item, {size: 'small'}));
});
$('.js-switch.autobid-seat-switch').off('change').on('change', function () {
var self = this;
var isEnabled = $(this).is(':checked');
if (isEnabled) {
window.stage.getUpdate(function (update) {
window._autoController.setAutobid('create', update.me.budget.total, function () {
$(".autobid-seat-status").text(getTexts().autobid_active);
});
});
} else {
window._autoController.setAutobid('delete', null, function () {
updateAutobid(0);
$(".autobid-seat-status").text(getTexts().autobid_not_active);
});
}
if (isSmartphoneDevice())
setAutobidUI(isEnabled);
return true;
});
function confirmAutobidUnset() {
if(confirm(getTexts().dialog_confirm)){
return true;
}else{
if (isSmartphoneDevice()){
$('.switchery-small small').css('left', '30px');
}else{
$('#boxcontent .autobid-switch').click();
}
}
}
$('.js-switch.autobid-switch').off('change').on('change', function () {
var switchAutobid = $(this);
if (isSmartphoneDevice() && $("[data-stage='2']").is(":visible"))
return true;
var id_product = getUrlParam("a").split("_").reverse()[0];
if (!switchAutobid.is(':checked') && ("false" == switchAutobid.data("autobid-enabled") || confirmAutobidUnset())) {
unsetAutobid({});
$("#DA"+id_product).find('.favorite').removeAttr('disabled');
$("#DA"+id_product).find('.favorite').attr('title', "Rimuovi quest\'asta dalle tue preferite");
if (isDeepModal()) {
$("#DA"+id_product).find('.favorite').removeAttr('data-original-title');
window.parent.BidooCnf.instances.auction.features.stopAutobidAuctionUpdate();
setTimeout(function () {
$("#divAsta"+id_product, parent.document).find('.favorite').removeAttr('data-original-title');
$("#divAsta"+id_product, parent.document).find('.favorite').removeAttr('disabled');
$("#divAsta"+id_product, parent.document).find('.favorite').attr('title', "Rimuovi quest\'asta dalle tue preferite");
}, 500);
} else {
$("#DA"+id_product).find('.favorite').attr("data-original-title", "Rimuovi quest\'asta dalle tue preferite");
}
}
return true;
});
$(".autobid-speed-dial > div > a").on('click', function (e) {
e.preventDefault();
var self = $(this);
var amount = parseInt(self.attr("data-amount"));
$(".auction-action-autobid-input").data("amount", amount);
$('.auction-action-autobid-trigger').attr("data-autobid-button", true).trigger('click');
});
var scopeElement = $(".auction-action-autobid-input[data-placeholder]");
scopeElement
.focus(setCorrectPlaceholder.bind(scopeElement, true))
.blur(setCorrectPlaceholder.bind(scopeElement, false));
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,255 @@
.btn-promo, .btn-promo:hover {
background: #2196f3 !important;
}
.mCSB_inside > .mCSB_container {
margin-right: 0px;
}
.mCSB_scrollTools .mCSB_draggerRail {
width: 6px;
background-color: #e2e2e2;
}
.mCSB_scrollTools .mCSB_draggerContainer {
left: 10px;
}
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
background-color: #20cb9a !important;
width: 100%;
}
#toggleBar {
margin-left: 0 !important;
left: 20px;
display: none;
}
.barra {
-webkit-font-smoothing: antialiased;
}
.btn-promo {
margin-top: -2px;
line-height: 17.5px;
}
.view_gray_link {
text-decoration: none;
cursor: pointer;
}
.leader-btn {
margin: 0;
padding: 0;
border: 0;
text-transform: uppercase;
font-size: 10px;
margin-top: 2px;
}
.bid_chal img.img-lock{
display: none;
}
.bid_chal img{
margin-top: -3px;
}
.wrap-limit-unlock{
color: #fff;
background-color: #55bc62;
border-radius: 5px;
font-weight: bold;
padding: 0;
text-transform: initial;
width: 120px;
margin: -4px auto 0;
}
.wrap-button-get-bonus{
color: #000;
background-color: #FFC642;
border-radius: 5px;
font-weight: bold;
padding: 0;
display: none;
text-transform: initial;
margin-top: -4px;
}
.wrap-button-get-bonus img{
width: 14px;
}
.bid_chal {
font-weight: bold;
font-size: 13px;
text-transform: none;
margin-bottom: 3px;
}
.next-level {
background-color: #eaeaea;
margin: 0;
width: 124px;
height: 8px;
box-shadow: none;
margin: 0 auto;
}
#tickNotif {
background: white;
width: 15px;
height: 15px;
transform: rotate(-45deg);
border: 1px solid #e2e2e2;
position: fixed;
margin-top: -15px;
display: none;
}
.notifIcon {
margin-left: 0px;
}
#boxarea.dodici {
width: 920px;
}
#tickNotif {
margin-left: 17px;
}
.small_notif {
margin-left: 119px !important;
}
.bonus_dialog {
left: 48.5%;
}
.leader_btn {
margin-right: 4px;
}
.tooltip.reach > .tooltip-inner .wrap{
display: flex;
}
.tooltip.reach > .tooltip-inner .wrap img{
width: 16px;
margin-right: 10px;
}
.tooltip.reach > .tooltip-inner {
background-color: #fff;
border: 1px solid #333;
color: #232323;
padding: 10px;
}
.tooltip.reach > .tooltip-inner > span {
text-align: center;
}
.tooltip.reach > .tooltip-inner > span:last-child {
padding: 10px 0;
}
.tooltip.reach > .tooltip-inner strong {
display: block;
}
.bid-challenge > strong {
color: darkorange;
display: block;
}
.tooltip.reach > .tooltip-inner {
max-width: 300px;
}
.leader-btn:hover, .leader-btn {
background-color: transparent !important;
}
.paid-all {
color: #565454;
margin-top: -5px;
text-transform: initial;
}
.active-all {
color: #55bc62;
margin-top: -5px;
text-transform: initial;
}
.paid-all img, .active-all img{
width: 16px;
}
.bar-right-side .pull-right{
margin-right: -30px;
}
.bar-right-side .pull-right > *,
.bar-left-side > *{
display: inline-block;
}
.bar-left-side{
margin-top: 5px;
}
.auctions_won_bottom_bar { /*[GR]*/
border: 2px solid #ffc518 !important;
background-color:#fff;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-radius: 5px;
padding: 5px 10px;
color:#3d3a3a;
outline: 0;
font-weight:bold;
height:29px;
vertical-align: top;
}
.auctions_won_bottom_bar:hover{ /*[GR]*/
background-color: #ffc518 !important;
color: #fff;
}
.auctions_won_bottom_bar .badge { /*[GR]*/
background-color: #ff2f4e;
left: 20px;
top: -12px;
margin-left: -20px;
}
.barra[data-lang="es"] #ba #boxarea .notifIcon{
margin-left: 10px;
}
.barra[data-lang="es"] #ba #boxarea #lim{
margin-left: 5px;
}
.barra[data-lang="es"] #ba #boxarea .auctions_won_bottom_bar{
margin-left: 5px;
margin-top: 1px;
}
@media(max-width: 1200px){
.barra[data-lang="es"] #ba #boxarea .auctions_won_bottom_bar, .barra[data-lang="es"] #ba #boxarea #lim{
width: 110px;
font-size: 11px;
padding: 5px;
}
.barra[data-lang="es"] .notif{
margin: -5px 6px !important;
}
}
.bidooBell{
color: #c3c0c1;
font-size: 21px;
margin-top: 4px;
}
.bidooBell:hover, .bidooBell:active, .bidooBell:focus, .bidooBell.active{
color: #666666;
transition: color 0.4s;
}
#auctionBidBottomBar{
outline: none !important;
}
@@ -0,0 +1,21 @@
function BottomBar(){
"use strict"
var self = this;
self.footer = $(".footer");
self.checkFooter();
}
BottomBar.prototype.checkFooter = function() {
"use strict"
var self = this;
if (!self.footer.length) return;
$(window).scroll(function() {
$(".goTop").find("i")
.toggleClass("white_top_arrow", isElementInView(self.footer, false));
});
}
$(document).ready(function() {
"use strict"
new BottomBar();
});
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.3 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,140 @@
var BUYNOW_COUNTDOWN = null;
var BUYNOW_ERRORS = {
already_used: 'Hai usato l&rsquo;opzione Compralo in quest&rsquo;asta',
already_won: 'Hai vinto questa Asta.<br>Non puoi usare l&rsquo;opzione Compralo'
};
window.serverTime = () => {
//vado a prendere il valore dalla pagina, precedentemente messo in php
if($('.buynow-countdown-container .product-buynow-countdown').hasClass('time-server')){
return parseInt($('.time-server').attr('data-time-server')) != "NaN" ? parseInt($('.time-server').attr('data-time-server')) : null ;
}else{
return null;
}
}
function startBuynowCountdown(time) {
"use strict";
var element = $(".product-buynow-countdown[data-countdown]");
if('active' == element.attr("data-countdown-status")) {
return false;
}
if('undefined' != typeof time) {
element.attr('data-countdown', time);
}
var countdown = element.attr('data-countdown');
if(countdown && countdown.length > 0) {
BUYNOW_COUNTDOWN = setInterval(function() {
var countdown_value = SimpleCountdown(countdown);
element.text(countdown_value);
/*
Destroy interval
Hide countdown
*/
var timeServer = typeof window.serverTime() != null ? window.serverTime() : (new Date()).getTime() / 1000;
var isExpired = countdown <= parseInt(timeServer);
$(".buyitnow-status p > span.product-value").toggle(isExpired);
$("span.product-buynow-countdown").toggle(!isExpired);
if(isExpired) clearInterval(BUYNOW_COUNTDOWN);
}, 1000);
element.attr("data-countdown-status", "active");
}
}
function setStatusBuynowButton(status, error_type) {
"use strict";
var selector = ".buyitnow-button";
var element = $(selector);
var defaults = "button-default button-full buyitnow-button ripple-button";
var base = "buyitnow-button";
var specific = 'button-blue-gradient';
switch(status) {
default:
case 'enabled': {
bindBuynowTrigger(error_type);
break;
}
case 'engaged': {
$('body').find("[data-buynow-state='engaged']").fadeIn();
bindBuynowTrigger(error_type);
break;
}
case 'disabled': {
specific = "button-gray-flat";
element.off('click');
element.find("[data-buynow-state='engaged']").fadeOut('fast');
break;
}
case 'login': {
element.off('click').on('click', window.parent.showLogin);
break;
}
}
if("undefined"===typeof element[0]) return element;
var oldClass = element[0].className;
var newClass = [defaults, specific, [base, status].join('-')].join(' ');
if(oldClass != newClass) {
$("main.buyitnow").find(selector).each(function(k, item) {
$(item).removeClass();
$(item).addClass(newClass);
});
$(".auction-action-bid-mobile .buyitnow-button")
.toggleClass(specific,true);
}
return element;
}
function bindBuynowTrigger(error_type) {
"use strict";
var selector = ".buyitnow-button";
var element = $('body').find(selector);
element.each(function(k, elem) {
$(elem).off('click').on('click', function(e) {
e.preventDefault();
rippleButton($(elem), e);
if(!error_type) {
var url = "buy_your_product.php"+parseURL(window.location.href).search;
navigateDeepModalURL(url);
return false;
}
$(elem).popover({
html: true,
content: BUYNOW_ERRORS[error_type],
placement: isSmartphoneDevice() ? "top" : "bottom",
selector: selector,
container: "body"
}).on('shown.bs.popover', function() {
setTimeout(function() {
$(selector).popover('destroy');
}, 3000);
}).popover('show');
});
});
}
$(document).ready(function() {
"use strict";
$("body").find(".expenditure-value").each(function(k, item) {
var expenditure = $(item).text();
if(expenditure.length && parseInt(expenditure, 10) > 0) {
updateUserExpenditure(expenditure);
$('[data-buynow-state="engaged"]').fadeIn();
return false;
}
});
});
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 17 KiB

@@ -0,0 +1,99 @@
(function(){'use strict';var f,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},g=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ba=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");
},ca=ba(this),da=function(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&g(c,a,{configurable:!0,writable:!0,value:b})}};
da("Symbol",function(a){if(a)return a;var b=function(h,k){this.g=h;g(this,"description",{configurable:!0,writable:!0,value:k})};b.prototype.toString=function(){return this.g};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(h){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(h||"")+"_"+d++,h)};return e});
da("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");g(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(aa(this))}});return a});var ea=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},fa=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},l;
if(typeof Object.setPrototypeOf=="function")l=Object.setPrototypeOf;else{var n;a:{var ha={a:!0},ia={};try{ia.__proto__=ha;n=ia.a;break a}catch(a){}n=!1}l=n?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var ja=l,q=function(a,b){a.prototype=fa(b.prototype);a.prototype.constructor=a;if(ja)ja(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.sc=b.prototype},ka=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var r=this||self,u=function(a){var b=typeof a;b=b!="object"?b:a?Array.isArray(a)?"array":b:"null";return b=="array"||b=="object"&&typeof a.length=="number"},v="closure_uid_"+(Math.random()*1E9>>>0),la=0,ma=function(a,b,c){return a.call.apply(a.bind,arguments)},na=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,
arguments)}},w=function(a,b,c){w=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ma:na;return w.apply(null,arguments)},x=function(a,b){a=a.split(".");for(var c=r,d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};chrome.cast.ReceiverActionListener={};chrome.cast.VERSION=[1,2];x("chrome.cast.VERSION",chrome.cast.VERSION);chrome.cast.rc=!0;x("chrome.cast.usingPresentationApi",chrome.cast.rc);chrome.cast.Na=function(a,b){this.credentials=a;this.credentialsType=b===void 0?"web":b};x("chrome.cast.CredentialsData",chrome.cast.Na);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};x("chrome.cast.Error",chrome.cast.Error);
chrome.cast.nb=function(a){this.platform=a;this.packageId=this.url=null};x("chrome.cast.SenderApplication",chrome.cast.nb);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};x("chrome.cast.Image",chrome.cast.Image);chrome.cast.Volume=function(a,b){this.level=a===void 0?null:a;this.muted=b===void 0?null:b};x("chrome.cast.Volume",chrome.cast.Volume);chrome.cast.ha={CUSTOM_CONTROLLER_SCOPED:"custom_controller_scoped",TAB_AND_ORIGIN_SCOPED:"tab_and_origin_scoped",ORIGIN_SCOPED:"origin_scoped",PAGE_SCOPED:"page_scoped"};x("chrome.cast.AutoJoinPolicy",chrome.cast.ha);chrome.cast.ja={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};x("chrome.cast.DefaultActionPolicy",chrome.cast.ja);chrome.cast.Ma={VIDEO_OUT:"video_out",AUDIO_OUT:"audio_out",VIDEO_IN:"video_in",AUDIO_IN:"audio_in",MULTIZONE_GROUP:"multizone_group"};
x("chrome.cast.Capability",chrome.cast.Ma);chrome.cast.A={CANCEL:"cancel",TIMEOUT:"timeout",API_NOT_INITIALIZED:"api_not_initialized",INVALID_PARAMETER:"invalid_parameter",EXTENSION_NOT_COMPATIBLE:"extension_not_compatible",EXTENSION_MISSING:"extension_missing",RECEIVER_UNAVAILABLE:"receiver_unavailable",SESSION_ERROR:"session_error",CHANNEL_ERROR:"channel_error",LOAD_MEDIA_FAILED:"load_media_failed"};x("chrome.cast.ErrorCode",chrome.cast.A);chrome.cast.N={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
x("chrome.cast.ReceiverAvailability",chrome.cast.N);chrome.cast.ob={CHROME:"chrome",IOS:"ios",ANDROID:"android"};x("chrome.cast.SenderPlatform",chrome.cast.ob);chrome.cast.xa={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};x("chrome.cast.ReceiverType",chrome.cast.xa);chrome.cast.Qa={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};x("chrome.cast.DialAppState",chrome.cast.Qa);chrome.cast.jb={CAST:"cast",STOP:"stop"};x("chrome.cast.ReceiverAction",chrome.cast.jb);
chrome.cast.K={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};x("chrome.cast.SessionStatus",chrome.cast.K);chrome.cast.Db={ATTENUATION:"attenuation",FIXED:"fixed",MASTER:"master"};x("chrome.cast.VolumeControlType",chrome.cast.Db);var oa=/&/g,pa=/</g,qa=/>/g,ra=/"/g,sa=/'/g,ta=/\x00/g,ua=/[\x00&<>"']/;/*
Copyright Google LLC
SPDX-License-Identifier: Apache-2.0
*/
var va={};function wa(){if(va!==va)throw Error("Bad secret");};var xa=globalThis.trustedTypes,y;function ya(){var a=null;if(!xa)return a;try{var b=function(c){return c};a=xa.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a};var z=function(a){wa();this.g=a};z.prototype.toString=function(){return this.g};new z("about:blank");new z("about:invalid#zClosurez");var za=[],Aa=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};za.indexOf(Aa)===-1&&za.push(Aa);var A=function(a){wa();this.g=a};A.prototype.toString=function(){return this.g+""};var Ba=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)};function Ca(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return e;return-1};var Da=Object.freeze||function(a){return a};var Fa=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=r.document.createElement("div");return a.replace(Ea,function(d,e){var h=b[d];if(h)return h;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(h=String.fromCharCode(e)));if(!h){h=d+" ";y===void 0&&(y=ya());h=(e=y)?e.createHTML(h):h;h=new A(h);if(c.nodeType===1&&(e=c.tagName,/^(script|style)$/i.test(e)))throw d=e.toLowerCase()==="script"?"Use setScriptTextContent with a SafeScript.":"Use setStyleTextContent with a SafeStyleSheet.",
Error(d);if(h instanceof A)h=h.g;else throw Error("Unexpected type when unwrapping SafeHtml");c.innerHTML=h;h=c.firstChild.nodeValue.slice(0,-1)}return b[d]=h})},Ga=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?b:String.fromCharCode(c)}})},Ea=/&([^;\s<&]+);?/g;chrome.cast.Ia=function(a,b,c,d,e){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.ha.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=e||chrome.cast.ja.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};x("chrome.cast.ApiConfig",chrome.cast.Ia);chrome.cast.Ta=function(a,b){this.appName=a;this.launchParameter=b||null};x("chrome.cast.DialRequest",chrome.cast.Ta);
chrome.cast.Ra=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};x("chrome.cast.DialLaunchData",chrome.cast.Ra);chrome.cast.Sa=function(a,b){this.doLaunch=a;this.launchParameter=b||null};x("chrome.cast.DialLaunchResponse",chrome.cast.Sa);
chrome.cast.pb=function(a,b,c,d,e){c=c===void 0?chrome.cast.timeout.requestSession:c;this.appId=a;this.capabilities=Array.isArray(b)?b:[];this.requestSessionTimeout=c;this.dialRequest=this.language=null;this.androidReceiverCompatible=d===void 0?!1:d;this.credentialsData=e===void 0?null:e};x("chrome.cast.SessionRequest",chrome.cast.pb);
chrome.cast.ib=function(a,b,c,d){this.label=a;a=b;ua.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(oa,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(pa,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(qa,"&gt;")),a.indexOf('"')!=-1&&(a=a.replace(ra,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(sa,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(ta,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.xa.CAST;this.displayStatus=this.isActiveInput=null};
x("chrome.cast.Receiver",chrome.cast.ib);chrome.cast.kb=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};x("chrome.cast.ReceiverDisplayStatus",chrome.cast.kb);chrome.cast.Aa=function(){this.requestSession=6E4;this.getDialAppInfo=this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};x("chrome.cast.Timeout",chrome.cast.Aa);chrome.cast.timeout=new chrome.cast.Aa;x("chrome.cast.timeout",chrome.cast.timeout);chrome.cast.Ha="auto-join";
chrome.cast.cb="cast-session_";chrome.cast.media.Va={SDR:"sdr",HDR:"hdr",DV:"dv"};x("chrome.cast.media.HdrType",chrome.cast.media.Va);chrome.cast.media.Wa={AAC:"aac",AC3:"ac3",MP3:"mp3",TS:"ts",TS_AAC:"ts_aac",E_AC3:"e_ac3",FMP4:"fmp4"};x("chrome.cast.media.HlsSegmentFormat",chrome.cast.media.Wa);chrome.cast.media.Xa={MPEG2_TS:"mpeg2_ts",FMP4:"fmp4"};x("chrome.cast.media.HlsVideoSegmentFormat",chrome.cast.media.Xa);chrome.cast.media.ab={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"};
x("chrome.cast.media.MediaCommand",chrome.cast.media.ab);chrome.cast.media.gb={ALBUM:"ALBUM",PLAYLIST:"PLAYLIST",AUDIOBOOK:"AUDIOBOOK",RADIO_STATION:"RADIO_STATION",PODCAST_SERIES:"PODCAST_SERIES",TV_SERIES:"TV_SERIES",VIDEO_PLAYLIST:"VIDEO_PLAYLIST",LIVE_TV:"LIVE_TV",MOVIE:"MOVIE"};x("chrome.cast.media.QueueType",chrome.cast.media.gb);chrome.cast.media.U={GENERIC_CONTAINER:0,AUDIOBOOK_CONTAINER:1};x("chrome.cast.media.ContainerType",chrome.cast.media.U);
chrome.cast.media.F={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4,AUDIOBOOK_CHAPTER:5};x("chrome.cast.media.MetadataType",chrome.cast.media.F);chrome.cast.media.B={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};x("chrome.cast.media.PlayerState",chrome.cast.media.B);chrome.cast.media.V={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};x("chrome.cast.media.RepeatMode",chrome.cast.media.V);
chrome.cast.media.lb={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};x("chrome.cast.media.ResumeState",chrome.cast.media.lb);chrome.cast.media.za={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};x("chrome.cast.media.StreamType",chrome.cast.media.za);chrome.cast.media.Ya={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};x("chrome.cast.media.IdleReason",chrome.cast.media.Ya);chrome.cast.media.yb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};
x("chrome.cast.media.TrackType",chrome.cast.media.yb);chrome.cast.media.ub={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};x("chrome.cast.media.TextTrackType",chrome.cast.media.ub);chrome.cast.media.qb={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};x("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.qb);chrome.cast.media.wb={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};
x("chrome.cast.media.TextTrackWindowType",chrome.cast.media.wb);chrome.cast.media.rb={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};x("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.rb);chrome.cast.media.sb={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};x("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.sb);
chrome.cast.media.zb={LIKE:"LIKE",DISLIKE:"DISLIKE",FOLLOW:"FOLLOW",UNFOLLOW:"UNFOLLOW"};x("chrome.cast.media.UserAction",chrome.cast.media.zb);chrome.cast.media.la=function(){this.customData=null};x("chrome.cast.media.GetStatusRequest",chrome.cast.media.la);chrome.cast.media.pa=function(){this.customData=null};x("chrome.cast.media.PauseRequest",chrome.cast.media.pa);chrome.cast.media.ra=function(){this.customData=null};x("chrome.cast.media.PlayRequest",chrome.cast.media.ra);chrome.cast.media.mb=function(){this.customData=this.resumeState=this.currentTime=null};x("chrome.cast.media.SeekRequest",chrome.cast.media.mb);
chrome.cast.media.ya=function(){this.customData=null};x("chrome.cast.media.StopRequest",chrome.cast.media.ya);chrome.cast.media.Eb=function(a){this.volume=a;this.customData=null};x("chrome.cast.media.VolumeRequest",chrome.cast.media.Eb);
chrome.cast.media.Za=function(a){this.type="LOAD";this.requestId=0;this.sessionId=null;this.media=a;this.activeTrackIds=null;this.autoplay=!0;this.atvCredentialsType=this.atvCredentials=this.credentialsType=this.credentials=void 0;this.customData=this.currentTime=null;this.queueData=this.playbackRate=void 0};x("chrome.cast.media.LoadRequest",chrome.cast.media.Za);chrome.cast.media.Ua=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};
x("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.Ua);chrome.cast.media.T=function(a){this.containerType=a=a===void 0?chrome.cast.media.U.GENERIC_CONTAINER:a;this.containerDuration=this.containerImages=this.sections=this.title=void 0};x("chrome.cast.media.ContainerMetadata",chrome.cast.media.T);
chrome.cast.media.MediaMetadata=function(a){this.metadataType=this.type=a;this.queueItemId=this.sectionStartTimeInContainer=this.sectionStartAbsoluteTime=this.sectionStartTimeInMedia=this.sectionDuration=void 0};x("chrome.cast.media.MediaMetadata",chrome.cast.media.MediaMetadata);chrome.cast.media.ka=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.GENERIC);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=void 0};q(chrome.cast.media.ka,chrome.cast.media.MediaMetadata);
x("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.ka);chrome.cast.media.na=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.MOVIE);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=void 0};q(chrome.cast.media.na,chrome.cast.media.MediaMetadata);x("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.na);
chrome.cast.media.Ba=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.TV_SHOW);this.originalAirdate=this.releaseYear=this.images=this.episode=this.episodeNumber=this.season=this.seasonNumber=this.episodeTitle=this.title=this.seriesTitle=void 0};q(chrome.cast.media.Ba,chrome.cast.media.MediaMetadata);x("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ba);
chrome.cast.media.oa=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.MUSIC_TRACK);this.releaseDate=this.releaseYear=this.images=this.discNumber=this.trackNumber=this.artistName=this.songName=this.composer=this.artist=this.albumArtist=this.title=this.albumName=void 0};q(chrome.cast.media.oa,chrome.cast.media.MediaMetadata);x("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.oa);
chrome.cast.media.qa=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.PHOTO);this.creationDateTime=this.height=this.width=this.longitude=this.latitude=this.images=this.location=this.artist=this.title=void 0};q(chrome.cast.media.qa,chrome.cast.media.MediaMetadata);x("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.qa);
chrome.cast.media.ga=function(){chrome.cast.media.T.call(this,chrome.cast.media.U.AUDIOBOOK_CONTAINER);this.releaseDate=this.publisher=this.narrators=this.authors=void 0};q(chrome.cast.media.ga,chrome.cast.media.T);x("chrome.cast.media.AudiobookContainerMetadata",chrome.cast.media.ga);chrome.cast.media.fa=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.AUDIOBOOK_CHAPTER);this.images=this.subtitle=this.bookTitle=this.chapterNumber=this.title=this.chapterTitle=void 0};
q(chrome.cast.media.fa,chrome.cast.media.MediaMetadata);x("chrome.cast.media.AudiobookChapterMediaMetadata",chrome.cast.media.fa);
chrome.cast.media.bb=function(a,b){this.contentId=a;this.contentUrl=void 0;this.streamType=chrome.cast.media.za.BUFFERED;this.contentType=b===void 0?"":b;this.metadata=null;this.atvEntity=this.entity=void 0;this.duration=null;this.startAbsoluteTime=void 0;this.customData=this.textTrackStyle=this.tracks=null;this.userActionStates=this.hlsVideoSegmentFormat=this.hlsSegmentFormat=this.vmapAdsRequest=this.breakClips=this.breaks=void 0};x("chrome.cast.media.MediaInfo",chrome.cast.media.bb);
chrome.cast.media.ta=function(a){this.itemId=null;this.media=a;this.autoplay=!0;this.startTime=0;this.playbackDuration=null;this.preloadTime=0;this.customData=this.activeTrackIds=null};x("chrome.cast.media.QueueItem",chrome.cast.media.ta);chrome.cast.media.Pa="CC1AD845";x("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.Pa);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;x("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load);
chrome.cast.media.timeout.P=0;x("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.P);chrome.cast.media.timeout.play=0;x("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;x("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;x("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;x("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop);
chrome.cast.media.timeout.R=0;x("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.R);chrome.cast.media.timeout.O=0;x("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.O);chrome.cast.media.timeout.v=0;x("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.v);chrome.cast.media.xb=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};x("chrome.cast.media.Track",chrome.cast.media.xb);
chrome.cast.media.tb=function(){this.customData=this.fontStyle=this.fontGenericFamily=this.fontFamily=this.fontScale=this.windowRoundedCornerRadius=this.windowColor=this.windowType=this.edgeColor=this.edgeType=this.backgroundColor=this.foregroundColor=null};x("chrome.cast.media.TextTrackStyle",chrome.cast.media.tb);chrome.cast.media.fb=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.V.OFF;this.customData=null};
x("chrome.cast.media.QueueLoadRequest",chrome.cast.media.fb);chrome.cast.media.sa=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};x("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.sa);chrome.cast.media.hb=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};x("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.hb);
chrome.cast.media.M=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};x("chrome.cast.media.QueueJumpRequest",chrome.cast.media.M);chrome.cast.media.wa=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};x("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.wa);
chrome.cast.media.ua=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};x("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.ua);chrome.cast.media.va=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};x("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.va);
chrome.cast.media.Ja=function(a,b,c){this.id=a;this.breakClipIds=b;this.position=c;this.duration=void 0;this.isWatched=!1;this.isEmbedded=void 0};x("chrome.cast.media.Break",chrome.cast.media.Ja);chrome.cast.media.Ka=function(a){this.id=a;this.vastAdsRequest=this.customData=this.hlsSegmentFormat=this.clickThroughUrl=this.posterUrl=this.whenSkippable=this.duration=this.title=this.contentType=this.contentUrl=this.contentId=void 0};x("chrome.cast.media.BreakClip",chrome.cast.media.Ka);
chrome.cast.media.Bb=function(){this.adsResponse=this.adTagUrl=void 0};x("chrome.cast.media.VastAdsRequest",chrome.cast.media.Bb);chrome.cast.media.La=function(){this.whenSkippable=this.breakClipId=this.breakId=this.currentBreakClipTime=this.currentBreakTime=void 0};x("chrome.cast.media.BreakStatus",chrome.cast.media.La);chrome.cast.media.ma=function(a,b,c,d){this.start=a;this.end=b;this.isMovingWindow=c;this.isLiveDone=d};x("chrome.cast.media.LiveSeekableRange",chrome.cast.media.ma);
chrome.cast.media.eb=function(a,b,c,d,e,h,k){this.id=a;this.queueType=this.entity=void 0;this.name=b;this.description=c;this.repeatMode=d;this.shuffle=!1;this.items=e;this.startIndex=h;this.startTime=k;this.containerMetadata=void 0};x("chrome.cast.media.QueueData",chrome.cast.media.eb);chrome.cast.media.Ab=function(a){this.userAction=a;this.customData=void 0};x("chrome.cast.media.UserActionState",chrome.cast.media.Ab);chrome.cast.media.Cb=function(a,b,c){this.width=a;this.height=b;this.hdrType=c};
x("chrome.cast.media.VideoInformation",chrome.cast.media.Cb);var B=null;chrome.cast.media.h=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.videoInfo=this.queueData=void 0;this.playbackRate=1;this.playerState=chrome.cast.media.B.IDLE;this.currentTime=0;this.g=-1;this.supportedMediaCommands=[];this.volume=new chrome.cast.Volume;this.items=this.preloadedItemId=this.loadingItemId=this.currentItemId=this.customData=this.activeTrackIds=this.idleReason=null;this.repeatMode=chrome.cast.media.V.OFF;this.breakStatus=void 0;this.l=!1;this.i=[];this.liveSeekableRange=
void 0};f=chrome.cast.media.h.prototype;f.P=function(a,b,c){a||(a=new chrome.cast.media.la);B.m(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.P)};f.play=function(a,b,c){var d=B;a||(a=new chrome.cast.media.ra);d.m(this,"PLAY",a,b,c,chrome.cast.media.timeout.play)};f.pause=function(a,b,c){var d=B;a||(a=new chrome.cast.media.pa);d.m(this,"PAUSE",a,b,c,chrome.cast.media.timeout.pause)};f.seek=function(a,b,c){B.m(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};
f.stop=function(a,b,c){a||(a=new chrome.cast.media.ya);B.m(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};f.R=function(a,b,c){B.m(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.R)};f.O=function(a,b,c){B.m(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.O)};f.Tb=function(a,b,c){B.m(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.v)};f.Sb=function(a,b,c){B.m(this,"QUEUE_INSERT",new chrome.cast.media.sa([a]),b,c,chrome.cast.media.timeout.v)};
f.dc=function(a,b,c){B.m(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.v)};f.Yb=function(a,b){var c=new chrome.cast.media.M;c.jump=-1;B.m(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.v)};f.Xb=function(a,b){var c=new chrome.cast.media.M;c.jump=1;B.m(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.v)};f.Ub=function(a,b,c){if(!(C(this,a)<0)){var d=new chrome.cast.media.M;d.currentItemId=a;B.m(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.v)}};
f.cc=function(a,b,c){var d=new chrome.cast.media.wa;d.repeatMode=a;B.m(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.v)};f.ac=function(a,b,c){B.m(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.v)};f.Zb=function(a,b,c){C(this,a)<0||B.m(this,"QUEUE_REMOVE",new chrome.cast.media.ua([a]),b,c,chrome.cast.media.timeout.v)};f.bc=function(a,b,c){B.m(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.v)};
f.Wb=function(a,b,c,d){var e=C(this,a);if(!(e<0))if(b<0)d&&d(new chrome.cast.Error(chrome.cast.A.INVALID_PARAMETER));else if(e==b)c&&c();else{var h=null;b=b>e?b+1:b;b<this.items.length&&(h=this.items[b]);a=new chrome.cast.media.va([a]);a.insertBefore=h?h.itemId:null;B.m(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.v)}};f.qc=function(a){return this.supportedMediaCommands.indexOf(a)>-1};
f.Nb=function(){if(this.playerState==chrome.cast.media.B.PLAYING&&this.g>=0){var a=this.currentTime+(Date.now()-this.g)/1E3*this.playbackRate;this.media&&this.media.duration!=null&&a>this.media.duration&&this.media.duration!=-1&&(a=this.media.duration);a<0&&(a=0);return a}return this.currentTime};f.Lb=function(){if(this.breakStatus&&this.breakStatus.currentBreakTime!==void 0)return this.playerState==chrome.cast.media.B.PLAYING&&this.g>=0?this.breakStatus.currentBreakTime+(Date.now()-this.g)/1E3:this.breakStatus.currentBreakTime};
f.Kb=function(){if(this.breakStatus&&this.breakStatus.currentBreakClipTime!==void 0)return this.playerState==chrome.cast.media.B.PLAYING&&this.g>=0?this.breakStatus.currentBreakClipTime+(Date.now()-this.g)/1E3:this.breakStatus.currentBreakClipTime};
f.Mb=function(){if(this.liveSeekableRange&&this.liveSeekableRange.start!==void 0&&this.liveSeekableRange.end!==void 0){if(this.playerState==chrome.cast.media.B.PLAYING&&this.g>=0){var a=(Date.now()-this.g)/1E3,b=new chrome.cast.media.ma;b.isMovingWindow=this.liveSeekableRange.isMovingWindow;b.isLiveDone=this.liveSeekableRange.isLiveDone;b.start=b.isMovingWindow?this.liveSeekableRange.start+a:this.liveSeekableRange.start;b.end=b.isLiveDone?this.liveSeekableRange.end:this.liveSeekableRange.end+a;return b}return this.liveSeekableRange}};
f.Y=function(a){B.Gb(this,a)};f.ba=function(a){B.fc(this,a)};var C=function(a,b){return Ca(a.items,function(c){return c.itemId==b})};x("chrome.cast.media.Media",chrome.cast.media.h);chrome.cast.media.h.prototype.removeUpdateListener=chrome.cast.media.h.prototype.ba;chrome.cast.media.h.prototype.addUpdateListener=chrome.cast.media.h.prototype.Y;chrome.cast.media.h.prototype.getEstimatedLiveSeekableRange=chrome.cast.media.h.prototype.Mb;chrome.cast.media.h.prototype.getEstimatedBreakClipTime=chrome.cast.media.h.prototype.Kb;
chrome.cast.media.h.prototype.getEstimatedBreakTime=chrome.cast.media.h.prototype.Lb;chrome.cast.media.h.prototype.getEstimatedTime=chrome.cast.media.h.prototype.Nb;chrome.cast.media.h.prototype.supportsCommand=chrome.cast.media.h.prototype.qc;chrome.cast.media.h.prototype.queueMoveItemToNewIndex=chrome.cast.media.h.prototype.Wb;chrome.cast.media.h.prototype.queueReorderItems=chrome.cast.media.h.prototype.bc;chrome.cast.media.h.prototype.queueRemoveItem=chrome.cast.media.h.prototype.Zb;
chrome.cast.media.h.prototype.queueRemoveItems=chrome.cast.media.h.prototype.ac;chrome.cast.media.h.prototype.queueSetRepeatMode=chrome.cast.media.h.prototype.cc;chrome.cast.media.h.prototype.queueJumpToItem=chrome.cast.media.h.prototype.Ub;chrome.cast.media.h.prototype.queueNext=chrome.cast.media.h.prototype.Xb;chrome.cast.media.h.prototype.queuePrev=chrome.cast.media.h.prototype.Yb;chrome.cast.media.h.prototype.queueUpdateItems=chrome.cast.media.h.prototype.dc;
chrome.cast.media.h.prototype.queueAppendItem=chrome.cast.media.h.prototype.Sb;chrome.cast.media.h.prototype.queueInsertItems=chrome.cast.media.h.prototype.Tb;chrome.cast.media.h.prototype.editTracksInfo=chrome.cast.media.h.prototype.O;chrome.cast.media.h.prototype.setVolume=chrome.cast.media.h.prototype.R;chrome.cast.media.h.prototype.stop=chrome.cast.media.h.prototype.stop;chrome.cast.media.h.prototype.seek=chrome.cast.media.h.prototype.seek;chrome.cast.media.h.prototype.pause=chrome.cast.media.h.prototype.pause;
chrome.cast.media.h.prototype.play=chrome.cast.media.h.prototype.play;chrome.cast.media.h.prototype.getStatus=chrome.cast.media.h.prototype.P;var Ha=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Ia=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Ja=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.j=function(a,b,c,d,e){this.sessionId=a;this.appId=b;this.displayName=c;this.statusText=null;this.appImages=d;this.receiver=e;this.senderApps=[];this.namespaces=[];this.media=[];this.status=chrome.cast.K.CONNECTED;this.transportId=""};f=chrome.cast.j.prototype;f.oc=function(a,b,c){var d=B;a=new Ia(new chrome.cast.Volume(a,null),this.receiver.volume);d.setReceiverVolume(this.sessionId,a,b,c)};
f.nc=function(a,b,c){a=new Ia(new chrome.cast.Volume(null,a),this.receiver.volume);B.setReceiverVolume(this.sessionId,a,b,c)};f.getDialAppInfo=function(a,b){B.getDialAppInfo(a,b)};f.Ob=function(a,b){B.leaveSession(this.sessionId,a,b)};f.stop=function(a,b){B.Da(new Ja(this.sessionId),a,b,chrome.cast.timeout.stopSession)};f.sendMessage=function(a,b,c,d){B.kc(new Ha(this.sessionId,a,b),c,d)};f.Y=function(a){B.Ib(this.sessionId,a)};f.ba=function(a){B.jc(this.sessionId,a)};
f.Hb=function(a,b){B.Fb(this.sessionId,a,b)};f.W=function(a){B.W(this.sessionId,a)};f.Z=function(a){B.Z(this.sessionId,a)};f.hc=function(a,b){B.ec(this.sessionId,a,b)};f.Pb=function(a,b,c){a.sessionId=this.sessionId;B.Ea(a,"LOAD",b,c)};f.Vb=function(a,b,c){a.sessionId=this.sessionId;B.Ea(a,"QUEUE_LOAD",b,c)};x("chrome.cast.Session",chrome.cast.j);chrome.cast.j.prototype.queueLoad=chrome.cast.j.prototype.Vb;chrome.cast.j.prototype.loadMedia=chrome.cast.j.prototype.Pb;
chrome.cast.j.prototype.removeMessageListener=chrome.cast.j.prototype.hc;chrome.cast.j.prototype.removeMediaListener=chrome.cast.j.prototype.Z;chrome.cast.j.prototype.addMediaListener=chrome.cast.j.prototype.W;chrome.cast.j.prototype.addMessageListener=chrome.cast.j.prototype.Hb;chrome.cast.j.prototype.removeUpdateListener=chrome.cast.j.prototype.ba;chrome.cast.j.prototype.addUpdateListener=chrome.cast.j.prototype.Y;chrome.cast.j.prototype.sendMessage=chrome.cast.j.prototype.sendMessage;
chrome.cast.j.prototype.stop=chrome.cast.j.prototype.stop;chrome.cast.j.prototype.leave=chrome.cast.j.prototype.Ob;chrome.cast.j.prototype.getDialAppInfo=chrome.cast.j.prototype.getDialAppInfo;chrome.cast.j.prototype.setReceiverMuted=chrome.cast.j.prototype.nc;chrome.cast.j.prototype.setReceiverVolumeLevel=chrome.cast.j.prototype.oc;var D=function(a,b){this.g=a[r.Symbol.iterator]();this.i=b};D.prototype[Symbol.iterator]=function(){return this};D.prototype.next=function(){var a=this.g.next();return{value:a.done?void 0:this.i.call(void 0,a.value),done:a.done}};var Ka=function(a,b){return new D(a,b)};var E=function(){};E.prototype.next=function(){return F};var F=Da({done:!0,value:void 0});E.prototype.o=function(){return this};var La=function(a){if(a instanceof E)return a;if(typeof a.o=="function")return a.o(!1);if(u(a)){var b=0,c=new E;c.next=function(){for(;;){if(b>=a.length)return F;if(b in a)return{value:a[b++],done:!1};b++}};return c}throw Error("Not implemented");},G=function(a,b){if(u(a))Ba(a,b);else for(a=La(a);;){var c=a.next();if(c.done)break;b.call(void 0,c.value,void 0,a)}};var Ma=function(a){if(a instanceof H||a instanceof I||a instanceof J)return a;if(typeof a.next=="function")return new H(function(){return a});if(typeof a[Symbol.iterator]=="function")return new H(function(){return a[Symbol.iterator]()});if(typeof a.o=="function")return new H(function(){return a.o()});throw Error("Not an iterator or iterable.");},H=function(a){this.g=a};H.prototype.o=function(){return new I(this.g())};H.prototype[Symbol.iterator]=function(){return new J(this.g())};H.prototype.i=function(){return new J(this.g())};
var I=function(a){this.g=a};q(I,E);I.prototype.next=function(){return this.g.next()};I.prototype[Symbol.iterator]=function(){return new J(this.g)};I.prototype.i=function(){return new J(this.g)};var J=function(a){H.call(this,function(){return a});this.l=a};q(J,H);J.prototype.next=function(){return this.l.next()};var K=function(a,b){this.i={};this.g=[];this.l=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof K)for(c=Na(a),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};K.prototype.L=function(){L(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.i[this.g[b]]);return a};var Na=function(a){L(a);return a.g.concat()};
K.prototype.has=function(a){return M(this.i,a)};K.prototype.clear=function(){this.i={};this.l=this.size=this.g.length=0};K.prototype.remove=function(a){return this.delete(a)};K.prototype.delete=function(a){return M(this.i,a)?(delete this.i[a],--this.size,this.l++,this.g.length>2*this.size&&L(this),!0):!1};
var L=function(a){if(a.size!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];M(a.i,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.size!=a.g.length){b={};for(d=c=0;c<a.g.length;){var e=a.g[c];M(b,e)||(a.g[d++]=e,b[e]=1);c++}a.g.length=d}};f=K.prototype;f.get=function(a,b){return M(this.i,a)?this.i[a]:b};f.set=function(a,b){M(this.i,a)||(this.size+=1,this.g.push(a),this.l++);this.i[a]=b};f.forEach=function(a,b){for(var c=Na(this),d=0;d<c.length;d++){var e=c[d],h=this.get(e);a.call(b,h,e,this)}};
f.keys=function(){return Ma(this.o(!0)).i()};f.values=function(){return Ma(this.o(!1)).i()};f.entries=function(){var a=this;return Ka(this.keys(),function(b){return[b,a.get(b)]})};f.o=function(a){L(this);var b=0,c=this.l,d=this,e=new E;e.next=function(){if(c!=d.l)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)return F;var h=d.g[b++];return{value:a?h:d.i[h],done:!1}};return e};var M=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var N=function(a,b){this.requestId=a;this.u=b;this.Ga=null};N.prototype.i=function(){};var Oa=function(){this.g=new K},Pa=function(a,b){a.g.set(b.requestId,b);b.Ga=setTimeout(function(){a.g.delete(b.requestId);b.i()},b.u)},Qa=function(a,b){var c=a.g.get(b);if(!c)return null;clearTimeout(c.Ga);a.g.delete(b);return c};var O=function(a,b,c,d){N.call(this,a,d||6E5);this.l=b;this.g=c};q(O,N);O.prototype.i=function(){this.g(new chrome.cast.Error(chrome.cast.A.TIMEOUT))};var P=function(a,b,c,d){this.type=a;this.message=b;this.sequenceNumber=c!==void 0?c:-1;this.timeoutMillis=d||0;this.clientId=""};var Q=function(a){this.l=a;this.i=String(Date.now())+String(Math.floor(Math.random()*1E5));this.g=null},Ra=function(a,b){if(!a.g)return"No active session";b.clientId=a.i;b=JSON.stringify(b);if(b.length>32768)return"Message length over limit";a.g.send(b);return null};Q.prototype.connect=function(a){this.g=a;this.g.onmessage=w(this.u,this);Ra(this,new P("client_connect",this.i))};Q.prototype.disconnect=function(){this.g.close();this.g=null};
Q.prototype.u=function(a){a=JSON.parse(a.data);if(a.clientId==this.i)this.l.onMessage(a)};var Sa=function(a,b,c){this.l=a;this.i=b;this.g=c},Ta=function(a){var b="cast-dial:"+a.l,c=new URLSearchParams;a.i&&c.set("dialPostData",a.i);a.g&&c.set("clientId",a.g);(a=c.toString())&&(b+="?"+a);return b};var Ua=function(a,b,c,d,e,h,k,m,p,t){this.I=a;this.g=b||null;this.l=c||null;this.C=d||null;this.D=e!==void 0?e:null;this.i=h||null;this.H=k||null;this.J=m||!1;this.G=p?["WEB","ANDROID_TV"]:["WEB"];this.u=t||null},Va=function(a){var b=a.I.map(function(c){var d="cast:"+c.appId,e=new URLSearchParams;c.capabilities&&c.capabilities.length>0&&e.set("capabilities",c.capabilities.join(","));a.g&&e.set("clientId",a.g);a.l&&e.set("autoJoinPolicy",a.l);a.C&&e.set("defaultActionPolicy",a.C);a.D!=null&&e.set("launchTimeout",
String(a.D));a.J&&e.set("invisibleSender","true");e.set("supportedAppTypes",a.G.join(","));c=e.set;var h=JSON,k=h.stringify,m={launchCheckerParams:{}};a.u&&(m.launchCheckerParams.credentialsData=a.u);c.call(e,"appParams",k.call(h,m));return d+"?"+e.toString()});a.i&&b.push(Ta(new Sa(a.i,a.H,a.g)));return b};var Wa=function(){this.g={};this.i={}},Xa=function(a,b,c){var d=a.g[b];return d?(d.status=c,d.media.forEach(function(e){delete a.i[e.sessionId+"#"+e.mediaSessionId]}),delete a.g[b],!0):!1},Za=function(a,b){var c=a.g[b.sessionId];if(c)return c.statusText=b.statusText,c.namespaces=b.namespaces||[],c.receiver.volume=b.receiver.volume,c;c=new chrome.cast.j(b.sessionId,b.appId,b.displayName,b.appImages,b.receiver);for(var d in b)d=="media"?c.media=b.media.map(function(e){e=Ya(a,e);e.u=!1;e.l=!0;return e}):
b.hasOwnProperty(d)&&(c[d]=b[d]);return a.g[b.sessionId]=c},Ya=function(a,b){var c=b.sessionId+"#"+b.mediaSessionId,d=a.i[c];d||(d=new chrome.cast.media.h(b.sessionId,b.mediaSessionId),a.i[c]=d,(a=a.g[b.sessionId])&&a.media.push(d));a=d;a.currentItemId=null;a.loadingItemId=null;a.preloadedItemId=null;for(var e in b)e!="items"&&b.hasOwnProperty(e)&&(e=="volume"?(a.volume.level=b.volume.level,a.volume.muted=b.volume.muted):a[e]=b[e]);e=ka(["idleReason","extendedStatus","breakStatus"]);for(c=e.next();!c.done;c=
e.next())c=c.value,b.hasOwnProperty(c)||(a[c]=null);"currentTime"in b&&(a.g=Date.now());if(a.playerState==chrome.cast.media.B.IDLE&&a.loadingItemId==null)a.currentItemId=null,a.loadingItemId=null,a.preloadedItemId=null,a.items=null;else if(b.hasOwnProperty("items")&&b.items){e=[];var h=a.items;c={};if(h)for(var k=0;k<h.length;k++)c[h[k].itemId]=k;b=ka(b.items);for(h=b.next();!h.done;h=b.next()){h=h.value;if(!h.media){k=h.itemId;var m=a.items?a.items[c[k]]:null;m&&m.media?h.media=m.media:k==a.currentItemId&&
a.media&&(h.media=a.media)}k=e;m=k.push;var p=void 0,t=new chrome.cast.media.ta(h.media);for(p in h)h.hasOwnProperty(p)&&(t[p]=h[p]);m.call(k,t)}a.items=e}return d},$a=function(a,b){delete a.i[b.sessionId+"#"+b.mediaSessionId];if(a=a.g[b.sessionId])b=a.media.indexOf(b),b!=-1&&a.media.splice(b,1)};function R(){var a=r.navigator;return a&&(a=a.userAgent)?a:""};var ab=R().toLowerCase().indexOf("webkit")!=-1&&R().indexOf("Edge")==-1;var bb={},S=null,cb=R().indexOf("Gecko")!=-1&&!(R().toLowerCase().indexOf("webkit")!=-1&&R().indexOf("Edge")==-1)&&!(R().indexOf("Trident")!=-1||R().indexOf("MSIE")!=-1)&&R().indexOf("Edge")==-1||ab||typeof r.btoa=="function",db=function(a){if(cb)var b=r.btoa(a);else{b=[];for(var c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);if(e>255)throw Error("go/unicode-to-byte-error");b[c++]=e}a=void 0;a===void 0&&(a=0);if(!S)for(S={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
d=["+/=","+/","-_=","-_.","-_"],e=0;e<5;e++){var h=c.concat(d[e].split(""));bb[e]=h;for(var k=0;k<h.length;k++){var m=h[k];S[m]===void 0&&(S[m]=k)}}a=bb[a];c=Array(Math.floor(b.length/3));d=a[64]||"";for(e=h=0;h<b.length-2;h+=3){var p=b[h],t=b[h+1];m=b[h+2];k=a[p>>2];p=a[(p&3)<<4|t>>4];t=a[(t&15)<<2|m>>6];m=a[m&63];c[e++]=""+k+p+t+m}k=0;m=d;switch(b.length-h){case 2:k=b[h+1],m=a[(k&15)<<2]||d;case 1:b=b[h],c[e]=""+a[b>>2]+a[(b&3)<<4|k>>4]+m+d}b=c.join("")}return b};var eb=function(a){if(a.L&&typeof a.L=="function")return a.L();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(u(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}b=[];c=0;for(d in a)b[c++]=a[d];return b};var T=function(){this.g=new K;this.size=0},U=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+(Object.prototype.hasOwnProperty.call(a,v)&&a[v]||(a[v]=++la)):b.slice(0,1)+a};f=T.prototype;f.add=function(a){this.g.set(U(a),a);this.size=this.g.size};f.removeAll=function(a){a=eb(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.size=this.g.size};f.delete=function(a){a=this.g.remove(U(a));this.size=this.g.size;return a};f.remove=function(a){return this.delete(a)};
f.clear=function(){this.g.clear();this.size=0};f.has=function(a){var b=this.g;a=U(a);return b.has(a)};f.contains=function(a){var b=this.g;a=U(a);return b.has(a)};f.L=function(){return this.g.L()};f.values=function(){return this.g.values()};f.o=function(){return this.g.o(!1)};T.prototype[Symbol.iterator]=function(){return this.values()};var V=function(){this.C=new Q(this);this.g=null;this.G=new Wa;this.i=0;this.S=new Oa;this.D=new K;this.u=new K;this.I=new K;this.J=[];this.Oa=this.Jb.bind(this);this.ia=this.H=this.l=null},fb=function(a){var b=new chrome.cast.Error(chrome.cast.A.INVALID_PARAMETER,"Already requesting session");a&&a(b)},W=function(a,b,c,d){c&&Pa(a.S,c);d!==void 0?b.sequenceNumber=d:(b.sequenceNumber=a.i,a.i=(a.i+1)%9007199254740992);d=Ra(a.C,b);c&&d&&(a=Qa(a.S,b.sequenceNumber))&&(a=a.g,d=new chrome.cast.Error(chrome.cast.A.INVALID_PARAMETER,
d),a&&a(d))};
V.prototype.initialize=function(a,b){var c=this;B=this;this.g=a;a.invisibleSender||(a=new PresentationRequest(X(this)),a.getAvailability().then(function(d){d.onchange=function(){c.g.receiverListener(d.value?chrome.cast.N.AVAILABLE:chrome.cast.N.UNAVAILABLE)};d.onchange()},function(){c.g.receiverListener(chrome.cast.N.AVAILABLE)}),a.onconnectionavailable=function(d){Y(c,d.connection)},this.ia=(r.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Ha).then(function(d){Y(c,d)},function(){}));
b&&b(void 0)};V.prototype.da=function(a){a.navigator.presentation.defaultRequest=this.ia};var Y=function(a,b,c){c=c===void 0?null:c;b.onclose=function(d){a.l=null;switch(d.reason){case "closed":gb(a,chrome.cast.K.DISCONNECTED);break;case "error":if(c){d=c;var e=new chrome.cast.Error(chrome.cast.A.SESSION_ERROR);d&&d(e)}}};b.onterminate=function(){gb(a,chrome.cast.K.STOPPED)};b.state=="connected"?a.C.connect(b):b.onconnect=function(){a.C.connect(b)}};
V.prototype.requestSession=function(a,b,c){var d=this;this.l?fb(b):(c=X(this,c),this.l=a,(new PresentationRequest(c)).start().then(function(e){Y(d,e,b)}).catch(function(e){d.l=null;e=new chrome.cast.Error(e.name=="AbortError"||e.name=="NotAllowedError"?chrome.cast.A.CANCEL:chrome.cast.A.SESSION_ERROR);b&&b(e)}))};
var X=function(a,b){var c=null,d=null;b=b||a.g.sessionRequest;var e=b.dialRequest;e&&(c=e.appName,(d=e.launchParameter)&&!d.match(hb)&&(d=db(d)));var h=[];h.push({appId:b.appId,capabilities:b.capabilities});b||Ba(a.g.additionalSessionRequests,function(k){h.push({appId:k.appId,capabilities:k.capabilities})});return Va(new Ua(h,a.C.i,a.g.autoJoinPolicy,a.g.defaultActionPolicy,b.requestSessionTimeout,c,d,a.g.invisibleSender,b.androidReceiverCompatible,b.credentialsData))};
V.prototype.Ea=function(a,b,c,d){ib(this,null,b,a,function(e){e.l=!0;c&&c(e)},function(e){d(e)},chrome.cast.media.timeout.load)};V.prototype.m=function(a,b,c,d,e,h){var k=this;ib(this,a,b,c,function(m){k.Ca(m);d&&d(void 0)},e,h)};var ib=function(a,b,c,d,e,h,k){d.type=c;b!=null&&(d.mediaSessionId=b.mediaSessionId,d.sessionId=b.sessionId);a.Da(d,function(m){m.status&&m.status.length==1?e&&e(m.status[0]):(m=new chrome.cast.Error(chrome.cast.A.SESSION_ERROR),h&&h(m))},h,k)};f=V.prototype;
f.setReceiverVolume=function(a,b,c,d){b.sessionId=a;W(this,new P("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),new O(this.i,c,d,chrome.cast.timeout.sendCustomMessage))};f.getDialAppInfo=function(a,b){W(this,new P("dial_app_info",void 0,void 0,chrome.cast.timeout.getDialAppInfo),new O(this.i,a,b,chrome.cast.timeout.sendCustomMessage))};f.ca=function(a){var b=this;(new PresentationRequest(X(this))).reconnect(chrome.cast.cb+a).then(function(c){Y(b,c)},function(){})};
f.leaveSession=function(a,b,c){W(this,new P("leave_session",a,void 0,chrome.cast.timeout.leaveSession),new O(this.i,b,c,chrome.cast.timeout.leaveSession))};f.kc=function(a,b,c){W(this,new P("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),new O(this.i,b,c,chrome.cast.timeout.sendCustomMessage))};f.Da=function(a,b,c,d){W(this,new P("v2_message",a,void 0,d),new O(this.i,b,c,d))};var jb=function(a,b,c){var d=a.get(b);d||(d=new T,a.set(b,d));d.add(c)};f=V.prototype;
f.Ib=function(a,b){jb(this.D,a,b)};f.jc=function(a,b){(a=this.D.get(a))&&a.remove(b)};f.X=function(a){this.J.push(a)};f.aa=function(a){a=this.J.indexOf(a);a>=0&&this.J.splice(a,1)};f.Fb=function(a,b,c){var d=this.u.get(a);d||(d=new K,this.u.set(a,d));a=d.get(b);a||(a=new T,d.set(b,a));a.add(c)};f.ec=function(a,b,c){(a=this.u.get(a))&&(b=a.get(b))&&b.remove(c)};f.W=function(a,b){jb(this.I,a,b)};f.Z=function(a,b){(a=this.I.get(a))&&a.remove(b)};f.Gb=function(a,b){a.i.indexOf(b)==-1&&a.i.push(b)};
f.fc=function(a,b){b=a.i.indexOf(b);b!=-1&&a.i.splice(b,1)};f.Ca=function(a){if(a.l){var b=a.playerState!=chrome.cast.media.B.IDLE||a.loadingItemId!=null;a.i.forEach(function(d){d(b)});b||$a(this.G,a)}else{a.l=!0;var c=this.I.get(a.sessionId);c&&G(c.o(),function(d){d(a)})}};f.Jb=function(a){return Ya(this.G,a)};var gb=function(a,b){if(a.H){var c=a.H;a.H=null;a.C.disconnect();var d=b!=chrome.cast.K.STOPPED;Xa(a.G,c,b)&&(a.u.delete(c),a.I.delete(c),b=a.D.get(c))&&(a.D.delete(c),G(b.o(),function(e){e(d)}))}};
V.prototype.onMessage=function(a){switch(a.type){case "new_session":case "update_session":a.message=Za(this.G,a.message);break;case "v2_message":var b=a.message;b&&b.type=="MEDIA_STATUS"&&b.status&&(b.status=b.status.map(this.Oa))}if(b=Qa(this.S,a.sequenceNumber))a.type=="error"?(b=b.g)&&b(a.message):(b=b.l)&&b(a.message);if(b=a.message)switch(a.type){case "receiver_action":kb(this,b);break;case "new_session":this.H=b.sessionId;this.l?(this.l(b),this.l=null):this.g&&this.g.sessionListener(b);break;
case "update_session":lb(this,b);break;case "app_message":mb(this,b);break;case "v2_message":b.type=="MEDIA_STATUS"&&b.status.forEach(this.Ca.bind(this));break;case "custom_dial_launch":nb(this,a.sequenceNumber,b)}};
var lb=function(a,b){(a=a.D.get(b.sessionId))&&G(a.o(),function(c){c(!0)})},kb=function(a,b){a.J.forEach(function(c){c(b.receiver,b.action)})},mb=function(a,b){(a=a.u.get(b.sessionId))&&(a=a.get(b.namespaceName))&&G(a.o(),function(c){c(b.namespaceName,b.message)})},ob=function(a,b,c){W(a,new P("custom_dial_launch",c,void 0,chrome.cast.timeout.sendCustomMessage),null,b)},nb=function(a,b,c){a.g.customDialLaunchCallback?a.g.customDialLaunchCallback(c).then(function(d){ob(a,b,d)},function(){ob(a,b)}):
ob(a,b)},hb=RegExp("^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$"),Z=new V;chrome.cast.initialize=function(a,b,c){Z.initialize(a,b,c)};x("chrome.cast.initialize",chrome.cast.initialize);chrome.cast.da=function(a){Z.da(a)};x("chrome.cast.setPageContext",chrome.cast.da);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};x("chrome.cast.requestSession",chrome.cast.requestSession);chrome.cast.Rb=function(){};x("chrome.cast.precache",chrome.cast.Rb);chrome.cast.ca=function(a){Z.ca(a)};x("chrome.cast.requestSessionById",chrome.cast.ca);chrome.cast.X=function(a){Z.X(a)};
x("chrome.cast.addReceiverActionListener",chrome.cast.X);chrome.cast.aa=function(a){Z.aa(a)};x("chrome.cast.removeReceiverActionListener",chrome.cast.aa);chrome.cast.Qb=function(){};x("chrome.cast.logMessage",chrome.cast.Qb);chrome.cast.lc=function(a,b){b()};x("chrome.cast.setCustomReceivers",chrome.cast.lc);chrome.cast.mc=function(a,b){b()};x("chrome.cast.setReceiverDisplayStatus",chrome.cast.mc);chrome.cast.unescape=function(a){return a.indexOf("&")!=-1?"document"in r?Fa(a):Ga(a):a};
x("chrome.cast.unescape",chrome.cast.unescape);chrome.cast.isAvailable=!1;x("chrome.cast.isAvailable",chrome.cast.isAvailable);chrome.cast.Fa=!1;chrome.cast.ea=function(){if(!chrome.cast.Fa){chrome.cast.Fa=!0;chrome.cast.isAvailable=!0;var a=window.__onGCastApiAvailable;a&&typeof a=="function"&&a(!0)}};document.readyState=="complete"?chrome.cast.ea():(window.addEventListener("load",chrome.cast.ea,!1),window.addEventListener("DOMContentLoaded",chrome.cast.ea,!1));}).call(this);
@@ -0,0 +1,12 @@
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
'use strict';var l=function(){var a=h,b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},m=this||self,n=/^[\w+/_-]+[=]{0,2}$/,p=null,q=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&n.test(a)?a:""},r=function(a,b){function e(){}e.prototype=b.prototype;a.i=b.prototype;a.prototype=new e;a.prototype.constructor=a;a.h=function(c,g,k){for(var f=Array(arguments.length-2),d=2;d<arguments.length;d++)f[d-2]=arguments[d];
return b.prototype[g].apply(c,f)}},t=function(a){return a};function u(a){if(Error.captureStackTrace)Error.captureStackTrace(this,u);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}r(u,Error);u.prototype.name="CustomError";var v=function(a,b){a=a.split("%s");for(var e="",c=a.length-1,g=0;g<c;g++)e+=a[g]+(g<b.length?b[g]:"%s");u.call(this,e+a[c])};r(v,u);v.prototype.name="AssertionError";var w=function(a,b){throw new v("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var x;var A=function(a,b){this.g=b===z?a:""};A.prototype.toString=function(){return this.g+""};var z={};var B=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?parseInt(a[1],10):0},C=function(a){return!!document.currentScript&&(-1!=document.currentScript.src.indexOf("?"+a)||-1!=document.currentScript.src.indexOf("&"+a))},D=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null},F=function(a){a.length?E(a.shift(),function(){F(a)}):G()},H=function(a){return"chrome-extension://"+a+"/cast_sender.js"},E=function(a,b,e){var c=document.createElement("script");
c.onerror=b;e&&(c.onload=e);if(void 0===x)if(b=null,(e=m.trustedTypes)&&e.createPolicy){try{b=e.createPolicy("goog#html",{createHTML:t,createScript:t,createScriptURL:t})}catch(y){m.console&&m.console.error(y.message)}x=b}else x=b;a=(b=x)?b.createScriptURL(a):a;a=new A(a,z);a:{try{var g=c&&c.ownerDocument,k=g&&(g.defaultView||g.parentWindow);k=k||m;if(k.Element&&k.Location){var f=k;break a}}catch(y){}f=null}if(f&&"undefined"!=typeof f.HTMLScriptElement&&(!c||!(c instanceof f.HTMLScriptElement)&&(c instanceof
f.Location||c instanceof f.Element))){f=typeof c;if("object"==f&&null!=c||"function"==f)try{var d=c.constructor.displayName||c.constructor.name||Object.prototype.toString.call(c)}catch(y){d="<object could not be stringified>"}else d=void 0===c?"undefined":null===c?"null":typeof c;w("Argument is not a %s (or a non-Element, non-Location mock); got: %s","HTMLScriptElement",d)}a instanceof A&&a.constructor===A?d=a.g:(d=typeof a,w("expected object of type TrustedResourceUrl, got '"+a+"' of type "+("object"!=
d?d:a?Array.isArray(a)?"array":d:"null")),d="type_error:TrustedResourceUrl");c.src=d;(d=c.ownerDocument&&c.ownerDocument.defaultView)&&d!=m?d=q(d.document):(null===p&&(p=q(m.document)),d=p);d&&c.setAttribute("nonce",d);(document.head||document.documentElement).appendChild(c)},I=function(){var a=B(),b=[];if(1<a){var e=a-1;b.push("//www.gstatic.com/eureka/clank/"+a+"/cast_sender.js");b.push("//www.gstatic.com/eureka/clank/"+e+"/cast_sender.js")}return b},G=function(){var a=D();a&&a(!1,"No cast extension found")},
K=function(){if(J){var a=2,b=D(),e=function(){a--;0==a&&b&&b(!0)};window.__onGCastApiAvailable=e;E("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",G,e)}},J=C("loadCastFramework")||C("loadCastApplicationFramework"),L=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","enhhojjnijigcajfphajepfemndkmdlo"];if(0<=window.navigator.userAgent.indexOf("Android")&&0<=window.navigator.userAgent.indexOf("Chrome/")&&window.navigator.presentation){if(60<=B()){K();var M=I();M.push("//www.gstatic.com/eureka/clank/cast_sender.js");F(M)}}else if(!window.chrome||!window.navigator.presentation||0<=window.navigator.userAgent.indexOf("Edge"))G();else if(89<=B()){K();var N=I(),O=N.push,P=O.apply,h=L.map(H),Q;if(h instanceof Array)Q=h;else{var R,S="undefined"!=typeof Symbol&&Symbol.iterator&&h[Symbol.iterator];R=S?S.call(h):
{next:l()};for(var T,U=[];!(T=R.next()).done;)U.push(T.value);Q=U}P.call(O,N,Q);N.push("//www.gstatic.com/eureka/clank/cast_sender.js");F(N)}else K(),F(L.map(H));}).call(this);
@@ -0,0 +1,3 @@
<svg width="14" height="11" viewBox="0 0 14 11" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5.40014 10.2952L0.854126 5.74924L1.99063 4.61273L5.40014 8.02224L12.7176 0.704758L13.8541 1.84126L5.40014 10.2952Z" fill="#55BC62"/>
</svg>

After

Width:  |  Height:  |  Size: 246 B

@@ -0,0 +1,622 @@
function UserNotifications() {
"use strict"
var self = this;
self.totalScrollHeight = 0;
self.topNotif = 0;
self.offSss = false;
self._tipTimeout = false;
self.notifBoxHtml;
self.audio = 1;
self.undelivN = 0;
self.HTTP_ENDPOINT = "/checkN.php";
self.startIntervals();
}
UserNotifications.prototype.startIntervals = function () {
"use strict"
var self = this;
var intervals = BidooCnf.intervals.user.notifications;
self.pingNotification();
setInterval(self.bidping.bind(self, getBidsBonus()), intervals.bidping);
setInterval(self.updateNotificationsDateTime.bind(self), intervals.updateNotificationsDateTime);
setInterval(self.pingNotification.bind(self), intervals.pingNotification);
setInterval(self.updateAuctionsWon.bind(self), intervals.auctionsWon); // [GR] for update badge number for auctions won to pay by user
}
UserNotifications.prototype.updateNotificationsDateTime = function () {
"use strict"
var self = this;
moment.locale('it');
self.getCorrectNotifSelector().find("abbr").each(function () {
var abbrTime = parseInt($(this).data("utime"), 10);
var newTime = parseInt((new Date()).getTime() / 1000, 10);
var moment_abbr_time = moment(abbrTime, "X");
var shouldBeFromNow = (newTime - abbrTime) < 21600;
$(this).data("alt", moment().format());
$(this).text(shouldBeFromNow ? moment_abbr_time.fromNow() : moment_abbr_time.calendar());
});
};
UserNotifications.prototype.updateAuctionsWon = function () { // [GR] for update badge number for auctions won to pay by user
"use strict"
$.get("/check_auctions_won.php", function (data) {
if (self.offSss) {
window.location.reload();
return;
}
$(".navbar-fixed-bottom #bottomAuctionsWonToPay").html(data);
$(".myBidooDesk #bottomAuctionsWonToPay").html(data);
$(".myBidooMobile #bottomAuctionsWonToPay").html(data);
$("#testataAuctionsWonToPay").html(data);
if (parseInt(data) > 0) {
$("#bottomAuctionsWonToPay").css("visibility", "visible");
$("#testataAuctionsWonToPay").css("visibility", "visible");
} else {
$("#bottomAuctionsWonToPay").css("visibility", "hidden");
$("#testataAuctionsWonToPay").css("visibility", "hidden");
}
});
}
UserNotifications.prototype.bidping = function (bonus) {
"use strict"
var self = this;
$.get("/bidping.php", function (data) {
if (self.offSss) {
window.location.reload();
return;
}
var progressValue = data[0] + "/" + data[1];
$("#seven_7").html(progressValue);
$(".bid-challenge [data-spot=0]")
.html(progressValue)
.parent()
.attr("data-progress", progressValue);
$(".leader-btn .progress-bar-success").css("width", ((data[0] / data[1]) * 100.00).toFixed(2) + "%");
if (data[0] >= data[1] && data[2] < data[1]) {
$('.bid-challenge .img-lock-open').hide();
$('.bid-challenge .img-lock').show();
$('#auctionBidBottomBar .wrap-progress').hide();
$('#auctionBidBottomBar .wrap-button-get-bonus').show();
}
if (data[0] >= data[1] && (typeof getCookie('won') == "undefined")) {
var expireWonDate = new Date();
expireWonDate.setTime(getTimeFrames());
self.wonChallenge(data[0], bonus);
setValueCookie("won", 1, expireWonDate);
}
}).fail(function (jqXHR, textStatus, error) {
if (jqXHR.status == 403) {
self.offSss = true;
$(".btn.leader-btn[data-target=#leader]")
.html(getSessionExpired(true))
.attr('data-toggle', null)
.attr('data-target', null)
.off("click").on({
click: showLogin
});
}
});
self.bidPingProduct();
}
UserNotifications.prototype.bidPingProduct = function () {
"use strict"
$.get("/bidping_product.php", function (data) {
if (self.offSss) {
window.location.reload();
return;
}
$(".bid-challenge-product").html(data);
});
}
UserNotifications.prototype.getCallTipMsg = function (credits, bonus) {
"use strict"
var html = [
"<div class='wrap'>",
"<div>",
"<img src='/images/razzo.svg'>",
"</div>",
"<div>",
"<strong>Complimenti!</strong>",
"<div>Hai Vinto " + credits + " Aste di Puntate</div>",
"</div>",
"</div>"
];
return html.join("");
}
UserNotifications.prototype.callTip = function (credits, bonus, callback) {
"use strict"
var self = this;
var tooltipReach = $(".tooltip.reach");
$(".leader-btn")
.tooltip('destroy').tooltip({
html: true,
placement: 'top',
title: self.getCallTipMsg(credits, bonus),
trigger: 'manual',
animation: false,
template: '<div class="tooltip reach" role="tooltip"><div class="tooltip-inner"></div></div>'
})
.tooltip("show");
tooltipReach.removeClass("bounceOutDown");
if (self._tipTimeout)
clearTimeout(self._tipTimeout);
self._tipTimeout = setTimeout(function () {
callback();
}, 10000);
}
UserNotifications.prototype.wonChallenge = function (nAuctions, bonus) {
"use strict"
var self = this;
var selector = $(".leader-btn > div.bid-challenge");
if (!selector.hasClass("achieved")) {
self.callTip(nAuctions, bonus);
}
}
UserNotifications.prototype.pingNotification = function () {
"use strict"
var self = this;
$.get(self.HTTP_ENDPOINT, {_t: 1}, function (r) {
if (r.count > 0) {
$(".bubble_desktop, .bubble_mobile, .toggle_bar_mobile").html(r.count).show();
if ($("#notifBox").is(":visible") || $("#notifBoxMobile").is(":visible")) {
self.loadNotification(true);
}
if (typeof r.undeliv != "undefined" && (Object.keys(r.undeliv).length > 0 && self.undelivN != Object.keys(r.undeliv).length)) {
var audioCookie = getCookie('audioN');
if (self.audio && ("undefined" == typeof audioCookie || audioCookie < r.count)) {
self
.playSound(r.audio)
.then(setCookieMinutes.bind(null, 'audioN', r.count, 5))
.catch(function () {
$(document)
.off('touchstart click')
.on('touchstart click', function () {
self.playSound(r.audio);
$(document).off('touchstart click');
});
});
}
self.undelivN = Object.keys(r.undeliv).length;
}
} else {
delCookie('audioN');
$(".bubble_desktop, .bubble_mobile").hide();
}
});
}
UserNotifications.prototype.playSound = function (audioSrc) {
"use strict"
var audio = $("#push");
if (audio.length)
audio.remove();
var aSound = document.createElement('audio');
aSound.id = 'push';
aSound.setAttribute('src', audioSrc + "?chk=" + (new Date()).getTime());
return aSound.play();
}
UserNotifications.prototype.toggleAudio = function (audioSetting) {
"use strict"
var self = this;
var isNotArgPassed = "undefined" == typeof audioSetting;
var snd = self.getCorrectNotifSelector().find(".sAudio");
var snData = !!(isNotArgPassed ? parseInt(snd.attr("data-audio")) : audioSetting);
snd.attr("data-audio", (!snData | 0))
.toggleClass("disabled glyphicon-volume-off", !snData)
.toggleClass("enabled glyphicon-volume-up", snData);
if (isNotArgPassed)
$.get(self.HTTP_ENDPOINT, {_s: (snData | 0)});
}
UserNotifications.prototype.loadSettings = function (shouldSetCheckOptions) {
"use strict"
var self = this;
$.get(self.HTTP_ENDPOINT, {_load: 0}, function (settings) {
self.audio = settings.audio;
self.toggleAudio(self.audio);
if (shouldSetCheckOptions) {
$("#ticketMail").prop("checked", !!+settings["1"]);
$("#creditMail").prop("checked", !!+settings["2"]);
$("#packageMail").prop("checked", !!+settings["3"]);
}
});
}
UserNotifications.prototype.cleanData = function (dirtyString) {
"use strict"
dirtyString = dirtyString.replace(/&amp;/g, "&");
dirtyString = dirtyString.replace(/&gt;/g, ">");
dirtyString = dirtyString.replace(/&lt;/g, "<");
dirtyString = dirtyString.replace(/&quot;/g, "\"");
dirtyString = dirtyString.replace("</i>", "</i><p class='paragraph-notification'>");
dirtyString = dirtyString.replace("</a>", "</p></a>");
dirtyString = dirtyString.replace("data-href", "data-mobile-fullscreen='true' data-no-padding-modal-body='true' data-href");
dirtyString = dirtyString.replace("//it.bidoo.com", "");
return dirtyString;
}
UserNotifications.prototype.getNotificationItem = function (data) {
"use strict"
var self = this;
var flag = parseInt(data.readFlag, 10);
var classNotif = 2 == flag ? "class='read wrap-notif'" : (1 == flag ? "class='deliv wrap-notif'" : "");
var item = [
"<li id='notification_" + data.id + "' data-type='" + data.type + "' " + classNotif + ">",
"<div class='notif-sx'>"+self.cleanData(data.content)+"</div>",
"<div class='notif-dx'><abbr data-utime='" + data.created_at + "'></abbr>",
"<i class='fa fa-clock-o clock-notification' aria-hidden='true'></i></div>",
"</li>"
];
return item.join("");
}
UserNotifications.prototype.getEmptyNotifications = function () {
"use strict"
var notif = [
'<li class="text-center empty-notification">',
'<p>Non hai alcuna notifica.</p>',
'</li>'
];
return notif.join("");
}
UserNotifications.prototype._renderN = function (data, more) {
"use strict"
var self = this;
var list = [];
var selector = this.getCorrectNotifSelector().find("ul");
if (data.length) {
$.each(data, function (i, item) {
if ("object" == typeof item) {
selector.append(self.getNotificationItem(item));
if (parseInt(item.readFlag, 10) < 2 && item.type != '1') {
list.push(item.id);
}
}
});
self.updateNotificationsDateTime();
} else {
if (more === undefined || more === false) {
selector.append(self.getEmptyNotifications());
}
}
return list;
}
UserNotifications.prototype._renderFoot = function (shouldLoadMore, paging) {
"use strict"
var loader = [
"<a href='javascript:void(0)' onclick='BidooCnf.instances.user.notifications.loadMore(" + paging + ");' class='load-more load-more-notif'>",
"Vedi altre",
"</a>"
].join("");
var footer = [
"<div class='whatelse nFoot text-center' id='more'>",
shouldLoadMore ? loader : "",
"</div>"
];
return footer.join("");
}
UserNotifications.prototype.loadMore = function (id) {
"use strict"
var self = this;
$.get(self.HTTP_ENDPOINT, {f: id, m: 5}, function (r) {
var selector = self.getCorrectNotifSelector();
var listNotif = selector.find("ul");
selector.find(".whatelse").remove();
if (Object.keys(r.elements).length > 0) {
var list = self._renderN(r.elements, true);
var welse = self._renderFoot(r.shexc, r.elements[Object.keys(r.elements).length - 1].id);
listNotif.append(welse);
if (listNotif.height() <= selector.find("#notifBoxContainer").height()) {
//selector.find("#more").find("a").click();
}
}
if (typeof list != "undefined" && list.length > 0) {
self.sendReadReq(list);
}
self.loadCustomScrollbar();
return false;
});
return false;
}
$("body").click(function (event) {
window.elementSelected = event.target.classList[0];
if ($('.bidooBell').hasClass('active')) {
$('.bidooBell').removeClass('active');
} else {
$('.bidooBell').addClass('active');
}
});
UserNotifications.prototype.loadNotification = function (forceFetchNotif) {
"use strict"
var self = this;
var isMobile = $(window).width() <= 991;
var selector = self.getCorrectNotifSelector();
self.topNotif = 0;
if (selector.is(":visible") && !forceFetchNotif) {
stopBodyScroll(false);
if (window.elementSelected == "bidooBell") {
selector.hide();
$("#tickNotif").hide();
}
if (isMobile) {
$('#notifBoxMobile').hide();
$('#menuModal #btn-1 span').addClass('fa-plus');
$('#menuModal #btn-1 span').removeClass('fa-minus');
$('#menuModal #submenu1').css('display', 'none');
}
self.totalScrollHeight = 0;
} else {
selector.empty().show();
if (isMobile)
self.hideModalHeaderNotifications(true);
self.composeNotificationsUI(isMobile, function (jqXHR, textStatus, errorThrown) {
var isError = jqXHR && textStatus && errorThrown;
if (!isError) {
self.loadCustomScrollbar();
$("#notifBox").show(); // [GR] ADD
if (isMobile) {
var titleSelector = selector.find(".nTitle");
var realHeightNotificationShade = (titleSelector.height() + parseInt(titleSelector.css("padding-top")));
var heightNotifDialog = ($(window).height() - realHeightNotificationShade);
selector.find("#notifBoxContainer").css("height", "auto");
selector.find("#more").find("a").click();
}
}
$("#tickNotif").show();
});
}
return false;
}
UserNotifications.prototype.getNotificationsStructure = function (mobile, isFirstLoadNotifications, isSettings) {
"use strict"
var arrow_left = [
'<a href="javascript:void();" onclick="BidooCnf.instances.user.notifications.back();" id="arrow_left">',
'<img src="images/arrow-left.png" width="12">',
'</a>'
].join("");
var structure = [
'<div class="nTitle">',
mobile || isSettings ? arrow_left : "",
'<p style="display: inline-block;">' + (isSettings ? "Impostazioni" : "Notifiche") + '</p>',
'<span class="sAudio glyphicon glyphicon-volume-up" onclick="BidooCnf.instances.user.notifications.toggleAudio();"></span>',
'<span class="sNotif glyphicon glyphicon-cog" onclick="BidooCnf.instances.user.notifications.toggleSettings();"></span>',
'</div>',
'<div id="notifBoxContainer">',
isFirstLoadNotifications ? "<img src='/images/loader_card.gif' class='loader-notifications'>" : "",
'<ul class="not"></ul>',
'</div>'
]
return structure.join("");
}
UserNotifications.prototype.composeNotificationsUI = function (mobile, callback) {
"use strict"
var self = this;
var selector = self.getCorrectNotifSelector();
selector.html(self.getNotificationsStructure(mobile, true));
$.get(self.HTTP_ENDPOINT, function (r) {
$(".bubble_desktop, .bubble_mobile, .toggle_bar_mobile").hide();
self.delivReadReq();
var mobile = $(window).width() <= 991;
var selectorList = selector.find("ul");
selector.find(".loader-notifications").remove();
if (r !== null) {
var list = self._renderN(r.elements);
if (Object.keys(r.elements).length > 0) {
var footer = self._renderFoot(r.shexc, r.elements[Object.keys(r.elements).length - 1].id);
selectorList.append(footer);
}
if (typeof list != "undefined" && list.length > 0) {
self.sendReadReq(list);
}
self.loadSettings();
} else {
selectorList.html(getSessionExpired());
}
callback();
}).fail(callback);
}
UserNotifications.prototype.sendReadReq = function (list) {
"use strict"
var self = this;
if (typeof list !== undefined && list.length > 0) {
$.get(self.HTTP_ENDPOINT, {_r: 1, l: list.join(',')});
}
}
UserNotifications.prototype.delivReadReq = function () {
"use strict"
$.get(this.HTTP_ENDPOINT, {_d: 1});
}
UserNotifications.prototype.getSettings = function () {
"use strict"
var html = [
'<div class="settingBox">',
'<form role="form" style="opacity: 1;">',
'<div class="title-settings"><b>Notifiche Email</b></div>',
'<div class="checkbox">',
'<label for="ticketMail">',
'<input type="checkbox" name="ticketMail" id="ticketMail">',
'<span class="notif-settings-label">Ricevi email per nuovi Ticket</span>',
'</label>',
'</div>',
'<div class="checkbox">',
'<label for="packageMail">',
'<input type="checkbox" name="packageMail" id="packageMail">',
'<span class="notif-settings-label">Ricevi Email per aggiornamenti spedizione</span>',
'</label>',
'</div>',
'<div class="checkbox">',
'<label for="creditMail">',
'<input type="checkbox" name="creditMail" id="creditMail">',
'<span class="notif-settings-label">Ricevi Email per accrediti di Puntate Gratis</span>',
'</label>',
'</div>',
'<a class="btn btn-block btn-primary" href="javascript:void(0);" onclick="BidooCnf.instances.user.notifications.saveSettings();"><b>Salva Impostazioni</b></a>',
'</form>',
'</div>'
];
return html.join("");
}
UserNotifications.prototype.showSettingNotification = function () {
"use strict"
var self = this;
var selector = self.getCorrectNotifSelector();
if (selector.length) {
self.notifBoxHtml = selector.html();
selector.html(self.getNotificationsStructure(true, false, true))
.find("#notifBoxContainer")
.append(self.getSettings());
self.loadSettings(true);
document.querySelector('#notifBoxMobile #notifBoxContainer .not').remove();
}
}
UserNotifications.prototype.back = function () {
"use strict"
var self = this;
var selector = self.getCorrectNotifSelector();
if ($(window).width() <= 991 && !selector.find(".settingBox").length) {
self.hideModalHeaderNotifications(false);
backMobile();
return;
}
selector.html(self.notifBoxHtml);
self.loadCustomScrollbar(true);
}
UserNotifications.prototype.toggleSettings = function () {
"use strict"
var self = this;
var selector = self.getCorrectNotifSelector();
if (!selector.is(":visible")) {
selector.show();
self.loadNotification();
} else {
self.showSettingNotification();
}
return true;
}
UserNotifications.prototype.saveSettings = function () {
"use strict"
var self = this;
var mail = +$("#ticketMail").is(":checked");
var pack = +$("#packageMail").is(":checked");
var accr = +$("#creditMail").is(":checked");
var data = [
'm', mail,
'p', pack,
'a', accr
];
$.get(self.HTTP_ENDPOINT, {_set: data.join("|")}, function () {
self.back();
});
}
UserNotifications.prototype.loadCustomScrollbar = function (forceReload) {
"use strict"
var self = this;
var notif_box_selector = self.getCorrectNotifSelector().find("#notifBoxContainer");
if ($(window).width() <= 991) {
notif_box_selector.off("scroll").scroll(function () {
if ($(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight) {
self.topNotif = $(this).scrollTop();
//notif_box_selector.find("#more").find("a").click();
}
});
notif_box_selector.scrollTop(self.topNotif);
} else if (forceReload || !notif_box_selector.hasClass("mCustomScrollbar")) {
if (forceReload) {
var list = notif_box_selector.find("ul").clone();
notif_box_selector.empty().append(list);
self.totalScrollHeight = 0;
}
notif_box_selector.mCustomScrollbar({
documentTouchScroll: true,
contentTouchScroll: 1,
callbacks: {
onTotalScroll: function () {
var more_notif_selector = notif_box_selector.find("#more");
if (more_notif_selector.is(":visible") && more_notif_selector.children().length) {
// more_notif_selector.find("a").click();
self.totalScrollHeight += 5 * 70;
}
},
onInit: function () {
if (self.totalScrollHeight != 0) {
notif_box_selector.mCustomScrollbar("scrollTo", self.totalScrollHeight, {
scrollInertia: 0
});
}
}
}
});
}
notif_box_selector
.off("mouseover")
.mouseover(true, stopBodyScroll)
.off("mouseout")
.mouseout(false, stopBodyScroll);
bindModalCall("#notifBoxContainer", true);
}
UserNotifications.prototype.getCorrectNotifSelector = function () {
"use strict"
var notifMobile = $("#notifBoxMobile");
return $(window).width() <= 991 ? notifMobile : $("#notifBox");
}
UserNotifications.prototype.hideModalHeaderNotifications = function (shouldHide) {
"use strict"
var self = this;
self.getCorrectNotifSelector().parent()
.parent()
.find(".modal-header")
.toggleClass("hidden", shouldHide);
}
UserNotifications.prototype.closeAll = function () {
"use strict"
var self = this;
var selector = self.getCorrectNotifSelector();
if (!selector.is(":visible"))
return;
if (selector.find(".settingBox").is(":visible"))
self.back();
self.back();
}
function bidping() {
"use strict"
if (BidooCnf.modules.exist(UserNotifications))
BidooCnf.instances.user.notifications.bidping(getBidsBonus());
}
$(document).ready(function () {
"use strict"
BidooCnf.modules.notifications = UserNotifications;
BidooCnf.instances.user.notifications = new UserNotifications();
});
@@ -0,0 +1,56 @@
#onesignal-slidedown-container #onesignal-slidedown-dialog .slidedown-body-message{
font-size: 20px !important;
}
#onesignal-slidedown-container #onesignal-slidedown-dialog .primary.slidedown-button+.secondary.slidedown-button, #slidedown-footer #onesignal-slidedown-cancel-button {
color: #666666 !important;
}
#onesignal-slidedown-container #onesignal-slidedown-dialog .slidedown-button.primary, #slidedown-footer #onesignal-slidedown-allow-button {
background: #00CC66 !important;
}
@media(max-width:576px){
#onesignal-slidedown-container #onesignal-slidedown-dialog .primary.slidedown-button+.secondary.slidedown-button, #slidedown-footer #onesignal-slidedown-cancel-button {
padding: 10px;
}
#onesignal-slidedown-container #onesignal-slidedown-dialog .slidedown-button.primary, #slidedown-footer #onesignal-slidedown-allow-button {
padding: 10px;
}
#onesignal-slidedown-container #onesignal-slidedown-dialog .slidedown-body-message{
font-size: 16px !important;
}
#onesignal-slidedown-container #onesignal-slidedown-dialog .slidedown-body-icon{
width: 60px;
height: 70px;
}
}
#modalExplainForMac .modal-body{
padding: 30px 50px 0px;
}
#modalExplainForMac .logo{
width: 40px;
margin-top: -7px;
margin-left: 5px;
}
#modalExplainForMac .intestazione{
font-size: 18px;
font-weight: bold;
}
#modalExplainForMac p.sottotitolo{
font-size: 16px;
}
#modalExplainForMac ol{
padding-left: 15px;
line-height: 23px;
}
#modalExplainForMac .modal-footer{
border-top: none;
padding-top: 5px;
padding-right: 30px;
}
#modalExplainForMac .modal-footer .btn-custom{
background-color: #0c6;
color: #fff;
font-weight: bold;
font-size: 16px;
padding: 5px 30px;
}
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.9 KiB

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
<style type="text/css">
.st0{fill:#2196F3;}
</style>
<g>
<g>
<g>
<g>
<g>
<g>
<path class="st0" d="M13.38,38.44c-2.22,0-4.05,1.83-4.05,4.05c0,2.22,1.83,4.05,4.05,4.05c2.28,0,4.05-1.83,4.05-4.05
C17.44,40.27,15.6,38.44,13.38,38.44z"/>
<path class="st0" d="M43.7,38.44c-2.22,0-4.05,1.83-4.05,4.05c0,2.22,1.83,4.05,4.05,4.05c2.28,0,4.05-1.83,4.05-4.05
C47.76,40.27,45.92,38.44,43.7,38.44z"/>
<path class="st0" d="M44.54,34.05c0-0.5-0.39-0.83-0.83-0.83H21.44c-0.17,0-0.33,0.06-0.5,0.17l-3.55,2.67
c-0.39,0.22-0.44,0.78-0.17,1.11c0.17,0.22,0.44,0.33,0.67,0.33c0.17,0,0.33-0.06,0.5-0.11l3.33-2.5H43.7
C44.2,34.88,44.54,34.55,44.54,34.05z"/>
<path class="st0" d="M49.87,15.23c-0.11-0.17-0.33-0.28-0.56-0.33L9.88,8.95L9.61,7.79C9,4.73,6.44,3.45,0.83,3.45
C0.33,3.45,0,3.84,0,4.29c0,0.5,0.39,0.83,0.83,0.83c4.05,0,6.66,0.5,7.22,3.05L8.44,9.9c0,0.06,0,0.06,0,0.06l3.11,14.49
c0.39,2.44,2.5,4.28,4.94,4.28h26.32c2.44,0,4.5-1.72,4.89-4.28l2.28-8.55C50.03,15.67,49.98,15.39,49.87,15.23z"/>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 80 50" style="enable-background:new 0 0 80 50;" xml:space="preserve">
<style type="text/css">
.st0{fill:#016FD0;}
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;}
.st2{fill-rule:evenodd;clip-rule:evenodd;fill:#016FD0;}
</style>
<g>
<path class="st0" d="M80,47.33c0,1.47-1.19,2.67-2.67,2.67H2.67C1.19,50,0,48.81,0,47.33V2.67C0,1.19,1.19,0,2.67,0h74.67
C78.81,0,80,1.19,80,2.67V47.33z"/>
<g>
<path class="st1" d="M19.5,37.15V26.63h11.14l1.2,1.56l1.23-1.56h40.44v9.8c0,0-1.06,0.72-2.28,0.73H48.84l-1.35-1.66v1.66h-4.42
v-2.83c0,0-0.6,0.4-1.91,0.4h-1.5v2.44h-6.69l-1.19-1.59l-1.21,1.59L19.5,37.15L19.5,37.15z"/>
<path class="st1" d="M6.49,18.7L9,12.85h4.34l1.43,3.28v-3.28h5.4l0.85,2.37l0.82-2.37h24.24v1.19c0,0,1.27-1.19,3.37-1.19
l7.87,0.03l1.4,3.24v-3.27h4.52l1.24,1.86v-1.86h4.56v10.52h-4.56L63.3,21.5v1.87h-6.64l-0.67-1.66h-1.79l-0.66,1.66h-4.5
c-1.8,0-2.95-1.17-2.95-1.17v1.17H39.3l-1.35-1.66v1.66H12.7l-0.67-1.66h-1.78l-0.66,1.66h-3.1V18.7L6.49,18.7z"/>
<path class="st2" d="M9.89,14.14L6.5,22.02h2.21l0.63-1.58h3.63l0.62,1.58h2.25l-3.39-7.88H9.89L9.89,14.14z M11.15,15.98
l1.11,2.76h-2.22L11.15,15.98L11.15,15.98z"/>
<polygon class="st2" points="16.08,22.02 16.08,14.14 19.21,14.15 21.04,19.23 22.82,14.14 25.93,14.14 25.93,22.02 23.96,22.02
23.96,16.21 21.87,22.02 20.14,22.02 18.05,16.21 18.05,22.02 16.08,22.02 "/>
<polygon class="st2" points="27.28,22.02 27.28,14.14 33.7,14.14 33.7,15.9 29.27,15.9 29.27,17.25 33.6,17.25 33.6,18.91
29.27,18.91 29.27,20.31 33.7,20.31 33.7,22.02 27.28,22.02 "/>
<path class="st2" d="M34.84,14.14v7.88h1.97v-2.8h0.83l2.36,2.8h2.41l-2.59-2.9c1.06-0.09,2.16-1,2.16-2.42
c0-1.66-1.3-2.56-2.75-2.56H34.84L34.84,14.14z M36.81,15.9h2.25c0.54,0,0.93,0.42,0.93,0.83c0,0.52-0.51,0.83-0.9,0.83h-2.28
L36.81,15.9L36.81,15.9L36.81,15.9z"/>
<polygon class="st2" points="44.79,22.02 42.78,22.02 42.78,14.14 44.79,14.14 44.79,22.02 "/>
<path class="st2" d="M49.56,22.02h-0.43c-2.1,0-3.38-1.65-3.38-3.91c0-2.31,1.26-3.97,3.91-3.97h2.18v1.87h-2.26
c-1.08,0-1.84,0.84-1.84,2.13c0,1.53,0.87,2.17,2.13,2.17h0.52L49.56,22.02L49.56,22.02z"/>
<path class="st2" d="M53.85,14.14l-3.39,7.88h2.21l0.63-1.58h3.63l0.62,1.58h2.25l-3.39-7.88H53.85L53.85,14.14z M55.1,15.98
l1.11,2.76h-2.22L55.1,15.98L55.1,15.98z"/>
<polygon class="st2" points="60.03,22.02 60.03,14.14 62.54,14.14 65.74,19.09 65.74,14.14 67.7,14.14 67.7,22.02 65.28,22.02
62,16.94 62,22.02 60.03,22.02 "/>
<polygon class="st2" points="20.85,35.81 20.85,27.93 27.28,27.93 27.28,29.69 22.84,29.69 22.84,31.04 27.17,31.04 27.17,32.7
22.84,32.7 22.84,34.1 27.28,34.1 27.28,35.81 20.85,35.81 "/>
<polygon class="st2" points="52.34,35.81 52.34,27.93 58.77,27.93 58.77,29.69 54.33,29.69 54.33,31.04 58.64,31.04 58.64,32.7
54.33,32.7 54.33,34.1 58.77,34.1 58.77,35.81 52.34,35.81 "/>
<polygon class="st2" points="27.52,35.81 30.65,31.92 27.45,27.93 29.93,27.93 31.84,30.39 33.75,27.93 36.14,27.93 32.98,31.87
36.11,35.81 33.63,35.81 31.78,33.38 29.97,35.81 27.52,35.81 "/>
<path class="st2" d="M36.35,27.93v7.88h2.02v-2.49h2.07c1.75,0,3.08-0.93,3.08-2.74c0-1.5-1.04-2.65-2.83-2.65H36.35L36.35,27.93z
M38.37,29.71h2.18c0.57,0,0.97,0.35,0.97,0.91c0,0.53-0.4,0.91-0.98,0.91h-2.18V29.71L38.37,29.71L38.37,29.71z"/>
<path class="st2" d="M44.38,27.93v7.88h1.97v-2.8h0.83l2.36,2.8h2.41l-2.59-2.9c1.06-0.09,2.16-1,2.16-2.42
c0-1.66-1.3-2.56-2.75-2.56L44.38,27.93L44.38,27.93L44.38,27.93z M46.35,29.69h2.25c0.54,0,0.93,0.42,0.93,0.83
c0,0.52-0.51,0.83-0.9,0.83h-2.28V29.69L46.35,29.69z"/>
<path class="st2" d="M59.68,35.81V34.1h3.94c0.58,0,0.84-0.32,0.84-0.66c0-0.33-0.25-0.67-0.84-0.67h-1.78
c-1.55,0-2.41-0.94-2.41-2.36c0-1.26,0.79-2.48,3.09-2.48h3.84l-0.83,1.77h-3.32c-0.63,0-0.83,0.33-0.83,0.65
c0,0.33,0.24,0.69,0.73,0.69h1.87c1.73,0,2.47,0.98,2.47,2.26c0,1.38-0.83,2.51-2.57,2.51L59.68,35.81L59.68,35.81z"/>
<path class="st2" d="M66.91,35.81V34.1h3.78c0.58,0,0.84-0.32,0.84-0.66c0-0.33-0.25-0.67-0.84-0.67h-1.61
c-1.55,0-2.41-0.94-2.41-2.36c0-1.26,0.79-2.48,3.09-2.48h3.76l-0.83,1.77h-3.24c-0.63,0-0.83,0.33-0.83,0.65
c0,0.33,0.24,0.69,0.73,0.69h1.7c1.73,0,2.48,0.98,2.48,2.26c0,1.38-0.83,2.51-2.57,2.51L66.91,35.81L66.91,35.81z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 80 50" style="enable-background:new 0 0 80 50;" xml:space="preserve">
<style type="text/css">
.st0{fill:#F9F9F9;}
.st1{fill:#6C6BBD;}
.st2{fill:#D32011;}
.st3{fill:#0099DF;}
.st4{fill:#110F0D;}
</style>
<g>
<path class="st0" d="M76.56,50H3.44C1.55,50,0,48.45,0,46.56V3.44C0,1.55,1.55,0,3.44,0h73.12C78.45,0,80,1.55,80,3.44v43.12
C80,48.45,78.45,50,76.56,50z"/>
<g>
<polygon class="st1" points="46.47,32.85 33.53,32.85 33.53,9.6 46.47,9.6 "/>
<path class="st2" d="M34.35,21.22c0-4.72,2.21-8.92,5.65-11.63c-2.51-1.98-5.69-3.16-9.14-3.16c-8.17,0-14.79,6.62-14.79,14.79
s6.62,14.79,14.79,14.79c3.45,0,6.62-1.18,9.14-3.16C36.56,30.14,34.35,25.94,34.35,21.22"/>
<path class="st3" d="M63.92,21.22c0,8.17-6.62,14.79-14.79,14.79c-3.45,0-6.62-1.18-9.14-3.16c3.44-2.71,5.65-6.91,5.65-11.63
S43.44,12.3,40,9.6c2.52-1.98,5.69-3.16,9.14-3.16C57.3,6.43,63.92,13.05,63.92,21.22"/>
<path class="st4" d="M50.85,39.42c0.17,0,0.42,0.03,0.61,0.11l-0.26,0.8c-0.18-0.07-0.36-0.1-0.53-0.1
c-0.56,0-0.84,0.36-0.84,1.01v2.2h-0.85v-3.93h0.85v0.48C50.03,39.65,50.35,39.42,50.85,39.42L50.85,39.42z M47.69,40.3h-1.4v1.77
c0,0.39,0.14,0.66,0.57,0.66c0.22,0,0.5-0.07,0.75-0.22l0.25,0.73c-0.27,0.19-0.7,0.3-1.07,0.3c-1.01,0-1.36-0.54-1.36-1.45V40.3
h-0.8v-0.78h0.8v-1.19h0.86v1.19h1.4V40.3L47.69,40.3z M36.76,41.13c0.09-0.57,0.44-0.95,1.04-0.95c0.55,0,0.9,0.35,0.99,0.95
H36.76z M39.68,41.48c-0.01-1.22-0.76-2.06-1.87-2.06c-1.15,0-1.95,0.84-1.95,2.06c0,1.25,0.84,2.06,2.01,2.06
c0.59,0,1.13-0.15,1.61-0.55l-0.42-0.63c-0.33,0.26-0.75,0.41-1.14,0.41c-0.55,0-1.05-0.25-1.17-0.96h2.92
C39.67,41.7,39.68,41.59,39.68,41.48L39.68,41.48z M43.43,40.52c-0.24-0.15-0.72-0.34-1.22-0.34c-0.47,0-0.75,0.17-0.75,0.46
c0,0.26,0.3,0.34,0.66,0.39l0.4,0.06c0.85,0.12,1.37,0.49,1.37,1.18c0,0.75-0.66,1.28-1.79,1.28c-0.64,0-1.23-0.16-1.7-0.51
l0.4-0.67c0.29,0.22,0.72,0.41,1.31,0.41c0.58,0,0.89-0.17,0.89-0.48c0-0.22-0.22-0.35-0.69-0.41l-0.4-0.06
c-0.88-0.12-1.36-0.52-1.36-1.16c0-0.78,0.64-1.26,1.63-1.26c0.62,0,1.19,0.14,1.6,0.41L43.43,40.52L43.43,40.52z M53.97,40.23
c-0.18,0-0.34,0.03-0.49,0.09c-0.15,0.06-0.28,0.15-0.39,0.26c-0.11,0.11-0.2,0.24-0.26,0.4c-0.06,0.16-0.09,0.33-0.09,0.51
c0,0.19,0.03,0.36,0.09,0.51c0.06,0.16,0.15,0.29,0.26,0.4c0.11,0.11,0.24,0.2,0.39,0.26c0.15,0.06,0.31,0.09,0.49,0.09
c0.18,0,0.34-0.03,0.49-0.09c0.15-0.06,0.28-0.15,0.39-0.26c0.11-0.11,0.2-0.24,0.26-0.4c0.06-0.16,0.09-0.33,0.09-0.51
c0-0.19-0.03-0.36-0.09-0.51c-0.06-0.16-0.15-0.29-0.26-0.4c-0.11-0.11-0.24-0.2-0.39-0.26C54.31,40.26,54.14,40.23,53.97,40.23
L53.97,40.23z M53.97,39.42c0.3,0,0.59,0.05,0.85,0.16c0.26,0.11,0.48,0.25,0.67,0.44c0.19,0.19,0.34,0.4,0.44,0.66
c0.11,0.25,0.16,0.53,0.16,0.82c0,0.3-0.05,0.57-0.16,0.82c-0.11,0.25-0.25,0.47-0.44,0.66c-0.19,0.19-0.41,0.33-0.67,0.44
c-0.26,0.11-0.54,0.16-0.85,0.16s-0.59-0.05-0.85-0.16c-0.26-0.11-0.48-0.25-0.67-0.44c-0.19-0.19-0.34-0.41-0.44-0.66
c-0.11-0.25-0.16-0.53-0.16-0.82c0-0.3,0.05-0.57,0.16-0.82c0.11-0.25,0.25-0.47,0.44-0.66c0.19-0.19,0.41-0.33,0.67-0.44
C53.38,39.47,53.66,39.42,53.97,39.42L53.97,39.42z M31.77,41.48c0-0.69,0.45-1.26,1.19-1.26c0.71,0,1.18,0.54,1.18,1.26
c0,0.71-0.48,1.26-1.18,1.26C32.22,42.73,31.77,42.17,31.77,41.48L31.77,41.48z M34.95,41.48v-1.96h-0.85v0.48
c-0.27-0.35-0.68-0.58-1.24-0.58c-1.1,0-1.96,0.86-1.96,2.06c0,1.2,0.86,2.06,1.96,2.06c0.56,0,0.97-0.22,1.24-0.58v0.48h0.85
V41.48z M30.13,43.44v-2.46c0-0.93-0.59-1.55-1.54-1.56c-0.5-0.01-1.02,0.15-1.38,0.7c-0.27-0.44-0.7-0.7-1.3-0.7
c-0.42,0-0.83,0.12-1.15,0.58v-0.48h-0.85v3.93h0.86v-2.18c0-0.68,0.38-1.04,0.96-1.04c0.57,0,0.85,0.37,0.85,1.04v2.18h0.86
v-2.18c0-0.68,0.39-1.04,0.96-1.04c0.58,0,0.86,0.37,0.86,1.04v2.18H30.13L30.13,43.44z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 80 50" style="enable-background:new 0 0 80 50;" xml:space="preserve">
<style type="text/css">
.st0{fill:#F9F9F9;}
.st1{fill:#FF5F00;}
.st2{fill:#EB001B;}
.st3{fill:#F79E1B;}
</style>
<g>
<path class="st0" d="M76.56,50H3.44C1.55,50,0,48.45,0,46.56V3.44C0,1.55,1.55,0,3.44,0h73.12C78.45,0,80,1.55,80,3.44v43.12
C80,48.45,78.45,50,76.56,50z"/>
<g>
<path d="M24.81,43.45v-2.46c0-0.94-0.57-1.56-1.56-1.56c-0.49,0-1.03,0.16-1.39,0.7c-0.29-0.45-0.7-0.7-1.31-0.7
c-0.41,0-0.82,0.12-1.15,0.57v-0.49h-0.86v3.94h0.86v-2.17c0-0.7,0.37-1.03,0.94-1.03s0.86,0.37,0.86,1.03v2.17h0.86v-2.17
c0-0.7,0.41-1.03,0.94-1.03c0.57,0,0.86,0.37,0.86,1.03v2.17H24.81L24.81,43.45z M37.56,39.52h-1.39v-1.19H35.3v1.19h-0.78v0.78
h0.78v1.8c0,0.9,0.37,1.44,1.35,1.44c0.37,0,0.78-0.12,1.07-0.29l-0.25-0.74c-0.25,0.16-0.53,0.21-0.74,0.21
c-0.41,0-0.57-0.25-0.57-0.66V40.3h1.39V39.52L37.56,39.52z M44.86,39.43c-0.49,0-0.82,0.25-1.03,0.57v-0.49h-0.86v3.94h0.86
v-2.21c0-0.66,0.29-1.03,0.82-1.03c0.16,0,0.37,0.04,0.53,0.08l0.25-0.82C45.27,39.43,45.02,39.43,44.86,39.43L44.86,39.43
L44.86,39.43z M33.83,39.84c-0.41-0.29-0.98-0.41-1.6-0.41c-0.98,0-1.64,0.49-1.64,1.27c0,0.66,0.49,1.03,1.35,1.15l0.41,0.04
c0.45,0.08,0.7,0.21,0.7,0.41c0,0.29-0.33,0.49-0.9,0.49c-0.57,0-1.03-0.21-1.31-0.41l-0.41,0.66c0.45,0.33,1.07,0.49,1.68,0.49
c1.15,0,1.8-0.53,1.8-1.27c0-0.7-0.53-1.07-1.35-1.19l-0.41-0.04c-0.37-0.04-0.66-0.12-0.66-0.37c0-0.29,0.29-0.45,0.74-0.45
c0.49,0,0.98,0.21,1.23,0.33L33.83,39.84L33.83,39.84z M56.71,39.43c-0.49,0-0.82,0.25-1.03,0.57v-0.49h-0.86v3.94h0.86v-2.21
c0-0.66,0.29-1.03,0.82-1.03c0.16,0,0.37,0.04,0.53,0.08l0.25-0.82C57.12,39.43,56.87,39.43,56.71,39.43L56.71,39.43L56.71,39.43z
M45.72,41.49c0,1.19,0.82,2.05,2.09,2.05c0.57,0,0.98-0.12,1.39-0.45l-0.41-0.7c-0.33,0.25-0.66,0.37-1.03,0.37
c-0.7,0-1.19-0.49-1.19-1.27c0-0.74,0.49-1.23,1.19-1.27c0.37,0,0.7,0.12,1.03,0.37l0.41-0.7c-0.41-0.33-0.82-0.45-1.39-0.45
C46.54,39.43,45.72,40.3,45.72,41.49L45.72,41.49L45.72,41.49z M53.68,41.49v-1.97h-0.86v0.49c-0.29-0.37-0.7-0.57-1.23-0.57
c-1.11,0-1.97,0.86-1.97,2.05c0,1.19,0.86,2.05,1.97,2.05c0.57,0,0.98-0.21,1.23-0.57v0.49h0.86V41.49z M50.52,41.49
c0-0.7,0.45-1.27,1.19-1.27c0.7,0,1.19,0.53,1.19,1.27c0,0.7-0.49,1.27-1.19,1.27C50.97,42.72,50.52,42.18,50.52,41.49
L50.52,41.49z M40.23,39.43c-1.15,0-1.97,0.82-1.97,2.05s0.82,2.05,2.01,2.05c0.57,0,1.15-0.16,1.6-0.53l-0.41-0.62
c-0.33,0.25-0.74,0.41-1.15,0.41c-0.53,0-1.07-0.25-1.19-0.94h2.91v-0.33C42.07,40.26,41.33,39.43,40.23,39.43L40.23,39.43
L40.23,39.43z M40.23,40.17c0.53,0,0.9,0.33,0.98,0.94h-2.05C39.24,40.58,39.61,40.17,40.23,40.17L40.23,40.17z M61.59,41.49
v-3.53h-0.86v2.05c-0.29-0.37-0.7-0.57-1.23-0.57c-1.11,0-1.97,0.86-1.97,2.05c0,1.19,0.86,2.05,1.97,2.05
c0.57,0,0.98-0.21,1.23-0.57v0.49h0.86V41.49z M58.43,41.49c0-0.7,0.45-1.27,1.19-1.27c0.7,0,1.19,0.53,1.19,1.27
c0,0.7-0.49,1.27-1.19,1.27C58.88,42.72,58.43,42.18,58.43,41.49L58.43,41.49z M29.65,41.49v-1.97h-0.86v0.49
c-0.29-0.37-0.7-0.57-1.23-0.57c-1.11,0-1.97,0.86-1.97,2.05c0,1.19,0.86,2.05,1.97,2.05c0.57,0,0.98-0.21,1.23-0.57v0.49h0.86
V41.49z M26.45,41.49c0-0.7,0.45-1.27,1.19-1.27c0.7,0,1.19,0.53,1.19,1.27c0,0.7-0.49,1.27-1.19,1.27
C26.9,42.72,26.45,42.18,26.45,41.49z"/>
<rect x="33.54" y="9.62" class="st1" width="12.92" height="23.21"/>
<path class="st2" d="M34.36,21.23c0-4.72,2.21-8.9,5.62-11.61c-2.5-1.97-5.66-3.16-9.1-3.16c-8.16,0-14.76,6.6-14.76,14.76
s6.6,14.76,14.76,14.76c3.44,0,6.6-1.19,9.1-3.16C36.58,30.17,34.36,25.94,34.36,21.23z"/>
<path class="st3" d="M63.89,21.23c0,8.16-6.6,14.76-14.76,14.76c-3.44,0-6.6-1.19-9.1-3.16c3.44-2.71,5.62-6.89,5.62-11.61
s-2.21-8.9-5.62-11.61c2.5-1.97,5.66-3.16,9.1-3.16C57.28,6.46,63.89,13.11,63.89,21.23z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 80 50" style="enable-background:new 0 0 80 50;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
.st1{fill-rule:evenodd;clip-rule:evenodd;fill:#009EE3;}
.st2{fill-rule:evenodd;clip-rule:evenodd;fill:#113984;}
.st3{fill-rule:evenodd;clip-rule:evenodd;fill:#172C70;}
</style>
<g>
<path class="st0" d="M76.56,50H3.44C1.55,50,0,48.45,0,46.56V3.44C0,1.55,1.55,0,3.44,0h73.12C78.45,0,80,1.55,80,3.44v43.12
C80,48.45,78.45,50,76.56,50z"/>
<g>
<path class="st1" d="M14.63,21.06h4.2c2.26,0,3.1,1.14,2.97,2.82c-0.22,2.77-1.89,4.3-4.11,4.3h-1.12c-0.3,0-0.51,0.2-0.59,0.75
L15.5,32.1c-0.03,0.21-0.14,0.33-0.3,0.34h-2.64c-0.25,0-0.34-0.19-0.27-0.6l1.61-10.18C13.96,21.25,14.19,21.06,14.63,21.06z"/>
<path class="st2" d="M32.87,20.87c1.42,0,2.72,0.77,2.55,2.68c-0.22,2.28-1.44,3.54-3.36,3.54h-1.68c-0.24,0-0.36,0.2-0.42,0.6
l-0.33,2.07c-0.05,0.31-0.21,0.47-0.45,0.47h-1.56c-0.25,0-0.34-0.16-0.28-0.52l1.29-8.29c0.06-0.41,0.22-0.56,0.5-0.56H32.87
L32.87,20.87z M30.32,25.31h1.27c0.8-0.03,1.33-0.58,1.38-1.58c0.03-0.61-0.38-1.05-1.04-1.05l-1.2,0.01L30.32,25.31L30.32,25.31z
M39.67,29.6c0.14-0.13,0.29-0.2,0.27-0.04l-0.05,0.38c-0.03,0.2,0.05,0.31,0.24,0.31h1.39c0.23,0,0.35-0.09,0.41-0.46l0.86-5.38
c0.04-0.27-0.02-0.4-0.23-0.4h-1.53c-0.14,0-0.2,0.08-0.24,0.29l-0.06,0.33c-0.03,0.17-0.11,0.2-0.18,0.03
c-0.26-0.61-0.92-0.89-1.84-0.87c-2.14,0.04-3.59,1.67-3.74,3.76c-0.12,1.61,1.04,2.88,2.56,2.88
C38.62,30.44,39.11,30.11,39.67,29.6L39.67,29.6L39.67,29.6z M38.5,28.77c-0.92,0-1.57-0.74-1.43-1.64s1-1.64,1.92-1.64
s1.57,0.74,1.43,1.64S39.42,28.77,38.5,28.77L38.5,28.77z M45.49,24h-1.41c-0.29,0-0.41,0.22-0.32,0.48l1.75,5.12l-1.72,2.44
c-0.14,0.2-0.03,0.39,0.17,0.39h1.58c0.19,0.02,0.37-0.07,0.47-0.23l5.38-7.72C51.57,24.25,51.5,24,51.22,24h-1.5
c-0.26,0-0.36,0.1-0.51,0.32l-2.24,3.25l-1-3.26C45.91,24.11,45.77,24,45.49,24L45.49,24z"/>
<path class="st1" d="M57.01,20.87c1.42,0,2.72,0.77,2.55,2.68c-0.22,2.28-1.44,3.54-3.36,3.54h-1.68c-0.24,0-0.36,0.2-0.42,0.6
l-0.33,2.07c-0.05,0.31-0.21,0.47-0.45,0.47h-1.56c-0.25,0-0.34-0.16-0.28-0.52l1.29-8.29c0.06-0.41,0.22-0.56,0.5-0.56
L57.01,20.87L57.01,20.87z M54.46,25.31h1.27c0.8-0.03,1.33-0.58,1.38-1.58c0.03-0.61-0.38-1.05-1.04-1.05l-1.2,0.01L54.46,25.31
L54.46,25.31z M63.81,29.6c0.14-0.13,0.29-0.2,0.27-0.04l-0.05,0.38c-0.03,0.2,0.05,0.31,0.24,0.31h1.39
c0.23,0,0.35-0.09,0.41-0.46l0.86-5.38c0.04-0.27-0.02-0.4-0.23-0.4h-1.53c-0.14,0-0.2,0.08-0.24,0.29l-0.06,0.33
c-0.03,0.17-0.11,0.2-0.18,0.03c-0.26-0.61-0.92-0.89-1.84-0.87c-2.14,0.04-3.59,1.67-3.74,3.76c-0.12,1.61,1.04,2.88,2.56,2.88
C62.76,30.44,63.26,30.11,63.81,29.6L63.81,29.6L63.81,29.6z M62.64,28.77c-0.92,0-1.57-0.74-1.43-1.64s1-1.64,1.92-1.64
c0.92,0,1.57,0.74,1.43,1.64S63.57,28.77,62.64,28.77L62.64,28.77z M69.05,30.26h-1.6c-0.1,0-0.19-0.08-0.2-0.18
c0-0.01,0-0.02,0-0.04l1.41-8.93c0.03-0.13,0.14-0.22,0.27-0.22h1.6c0.1,0,0.19,0.08,0.2,0.18c0,0.01,0,0.02,0,0.04l-1.41,8.93
C69.29,30.17,69.18,30.26,69.05,30.26L69.05,30.26z"/>
<path class="st2" d="M12,17.55h4.2c1.18,0,2.59,0.04,3.53,0.87c0.63,0.55,0.96,1.44,0.88,2.39c-0.26,3.21-2.18,5.01-4.75,5.01
h-2.07c-0.35,0-0.59,0.23-0.69,0.87l-0.58,3.69c-0.04,0.24-0.14,0.38-0.33,0.4H9.61c-0.29,0-0.39-0.22-0.31-0.7l1.86-11.82
C11.23,17.78,11.49,17.55,12,17.55z"/>
<path class="st3" d="M13.17,26.31l0.73-4.65c0.06-0.41,0.29-0.6,0.73-0.6h4.2c0.69,0,1.26,0.11,1.7,0.31
c-0.42,2.86-2.27,4.45-4.69,4.45h-2.07C13.49,25.81,13.29,25.95,13.17,26.31z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 80 50" style="enable-background:new 0 0 80 50;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FBE200;}
.st1{fill:#004A99;}
</style>
<g>
<g>
<path class="st0" d="M80,47.33c0,1.47-1.19,2.67-2.67,2.67H2.67C1.19,50,0,48.81,0,47.33V2.67C0,1.19,1.19,0,2.67,0h74.67
C78.81,0,80,1.19,80,2.67V47.33z"/>
</g>
<g>
<path class="st1" d="M14.1,20.45c-0.38,0-0.8,0.06-1.15,0.21c-0.09,0.03-0.21,0.06-0.3,0.12c-0.44,0.21-0.89,0.56-1.33,1
l0.12-1.21h-1.42C10,20.92,9.97,21.25,9.94,21.6c-0.06,0.35-0.12,0.68-0.18,1.03l-2.04,8.95h1.57l0.95-4.11
c0.3,0.41,0.65,0.74,1.03,0.95c0.41,0.21,0.86,0.33,1.42,0.33c0.09,0,0.18,0,0.27,0c0.59-0.06,1.12-0.21,1.6-0.5
c0.59-0.33,1.06-0.8,1.42-1.42c0.32-0.5,0.56-1.09,0.71-1.77c0.18-0.68,0.24-1.33,0.18-1.92c-0.09-0.83-0.35-1.51-0.86-1.98
C15.52,20.69,14.87,20.45,14.1,20.45z M15.14,24.73c-0.15,0.56-0.35,1.06-0.62,1.54c-0.27,0.47-0.59,0.83-0.97,1.06
c-0.18,0.09-0.38,0.18-0.59,0.24c-0.21,0.06-0.44,0.09-0.68,0.09c-0.47,0-0.86-0.15-1.15-0.41c-0.3-0.3-0.47-0.65-0.5-1.12
c-0.03-0.41,0-0.92,0.15-1.57c0.15-0.62,0.35-1.18,0.62-1.65c0.24-0.47,0.56-0.86,0.95-1.12c0.21-0.12,0.41-0.24,0.62-0.3
c0.18-0.06,0.38-0.09,0.59-0.09c0.47,0,0.89,0.15,1.21,0.47c0.3,0.33,0.47,0.74,0.53,1.27C15.32,23.64,15.29,24.17,15.14,24.73z"
/>
<path class="st1" d="M53.78,21.04c-0.44-0.44-1.06-0.68-1.83-0.68c-0.5,0-0.97,0.09-1.39,0.3c-0.06,0.03-0.12,0.06-0.21,0.09
c-0.35,0.21-0.68,0.47-1.03,0.8l0.06-0.97h-2.22c-0.06,0.53-0.21,1.36-0.44,2.45l-1.89,8.57h2.45l0.95-4.22
c0.24,0.44,0.56,0.8,0.97,1c0.32,0.18,0.71,0.3,1.15,0.33c0.09,0,0.21,0.03,0.3,0.03c1.24,0,2.25-0.56,2.98-1.68
c0.77-1.09,1.06-2.45,0.92-4.05C54.49,22.13,54.23,21.48,53.78,21.04z M52.04,24.53c-0.12,0.53-0.3,1.03-0.5,1.48
c-0.21,0.41-0.41,0.71-0.68,0.92c-0.15,0.12-0.32,0.21-0.5,0.24c-0.12,0.03-0.24,0.06-0.35,0.06c-0.41,0-0.74-0.15-0.97-0.41
c-0.27-0.27-0.38-0.65-0.44-1.15c-0.09-0.97,0.09-1.86,0.56-2.66c0.32-0.56,0.74-0.95,1.21-1.09c0.18-0.03,0.32-0.06,0.5-0.06
c0.38,0,0.68,0.12,0.92,0.35c0.21,0.21,0.35,0.53,0.38,0.97C52.19,23.55,52.16,24,52.04,24.53z"/>
<path class="st1" d="M61.91,20.95c-0.56-0.35-1.33-0.5-2.36-0.5c-0.33,0-0.65,0-0.95,0.06c-0.62,0.09-1.12,0.27-1.57,0.53
c-0.59,0.41-0.95,0.97-1,1.71h2.33c0.06-0.24,0.12-0.44,0.24-0.59c0.03-0.09,0.09-0.12,0.15-0.18c0.18-0.15,0.44-0.24,0.8-0.24
c0.3,0,0.53,0.06,0.68,0.18c0.18,0.12,0.27,0.3,0.3,0.53c0,0.12,0,0.24-0.03,0.38c0,0.18-0.06,0.38-0.12,0.68
c-0.09,0-0.18,0-0.27,0s-0.24,0-0.41,0c-0.38,0-0.77,0-1.09,0.03c-1.15,0.09-2.04,0.35-2.69,0.77c-0.83,0.53-1.21,1.3-1.12,2.3
c0.06,0.65,0.3,1.15,0.74,1.54c0.44,0.38,1,0.59,1.71,0.59c0.5,0,0.92-0.12,1.3-0.33l0.06-0.03c0.35-0.18,0.71-0.5,1-0.92
c0,0.21-0.03,0.38-0.03,0.59c0,0.21,0,0.38,0,0.56h2.25c0-0.35,0-0.68,0.03-1.03c0.06-0.35,0.09-0.68,0.18-1l0.62-2.72
c0.06-0.27,0.12-0.53,0.15-0.74c0.03-0.24,0.03-0.44,0-0.65C62.73,21.81,62.44,21.31,61.91,20.95z M59.31,26.6
c-0.24,0.27-0.47,0.44-0.71,0.56c-0.18,0.09-0.38,0.12-0.59,0.12c-0.27,0-0.47-0.06-0.62-0.21c-0.18-0.15-0.27-0.35-0.27-0.62
c-0.06-0.47,0.15-0.89,0.65-1.21c0.24-0.18,0.5-0.3,0.83-0.38c0.3-0.09,0.65-0.12,1.03-0.12c0.12,0,0.18,0,0.27,0
c0.06,0,0.12,0,0.18,0.03C59.96,25.5,59.69,26.12,59.31,26.6z"/>
<polygon class="st1" points="69.97,20.51 66.84,26.06 66.16,20.51 63.74,20.51 65.16,28.6 63.21,31.56 65.81,31.56 67.25,28.93
72.28,20.51 "/>
<path class="st1" d="M23.91,21.04c-0.56-0.44-1.3-0.68-2.25-0.68c-0.27,0-0.53,0-0.77,0.03c-0.47,0.06-0.95,0.18-1.33,0.33
c-0.59,0.27-1.06,0.62-1.45,1.12c-0.41,0.56-0.71,1.21-0.92,1.98c-0.24,0.77-0.3,1.48-0.24,2.19c0.06,0.86,0.38,1.54,0.97,2.01
c0.56,0.5,1.33,0.74,2.27,0.74c0.24,0,0.47-0.03,0.68-0.03c0.59-0.06,1.09-0.18,1.51-0.38c0.59-0.27,1.06-0.71,1.48-1.33
c0.35-0.53,0.62-1.18,0.8-1.92c0.21-0.74,0.27-1.45,0.21-2.1C24.8,22.16,24.5,21.51,23.91,21.04z M23.12,24.76
c-0.15,0.62-0.35,1.18-0.65,1.68c-0.27,0.44-0.56,0.77-0.92,0.97c-0.18,0.12-0.41,0.21-0.65,0.27c-0.18,0.03-0.35,0.06-0.56,0.06
c-0.53,0-0.95-0.15-1.27-0.44c-0.3-0.3-0.5-0.68-0.53-1.21c-0.03-0.47,0-1.03,0.15-1.68s0.35-1.18,0.62-1.62
c0.27-0.47,0.59-0.83,0.95-1.09c0.21-0.12,0.44-0.21,0.65-0.27s0.38-0.09,0.59-0.09c0.56,0,0.98,0.15,1.27,0.44
c0.3,0.27,0.47,0.71,0.53,1.33C23.32,23.58,23.26,24.11,23.12,24.76z"/>
<path class="st1" d="M31.06,20.78c-0.44-0.27-1.12-0.41-2.04-0.41c-1,0-1.8,0.24-2.39,0.68c-0.56,0.47-0.83,1.03-0.77,1.74
c0.03,0.41,0.21,0.8,0.56,1.09c0.32,0.33,0.92,0.68,1.74,1.06c0.65,0.3,1.06,0.53,1.27,0.71c0.21,0.18,0.32,0.38,0.32,0.62
c0.03,0.38-0.12,0.71-0.47,0.97c-0.35,0.24-0.83,0.35-1.45,0.35c-0.47,0-0.8-0.06-1.03-0.24c-0.24-0.15-0.35-0.38-0.38-0.71
c-0.03-0.09-0.03-0.18,0-0.3c0-0.12,0.03-0.24,0.09-0.38h-1.6c-0.03,0.18-0.06,0.35-0.09,0.5c-0.03,0.18-0.03,0.32,0,0.44
c0.06,0.59,0.32,1.03,0.83,1.36c0.53,0.3,1.21,0.47,2.1,0.47c1.12,0,2.04-0.27,2.72-0.77c0.71-0.5,1-1.15,0.95-1.89
c-0.03-0.44-0.21-0.83-0.47-1.12c-0.27-0.3-0.92-0.68-1.86-1.12c-0.68-0.32-1.12-0.56-1.3-0.74c-0.21-0.15-0.3-0.35-0.32-0.56
c-0.03-0.35,0.09-0.65,0.38-0.86c0.27-0.21,0.65-0.33,1.15-0.33c0.44,0,0.77,0.09,0.97,0.24c0.24,0.15,0.35,0.38,0.38,0.68
c0,0.06,0,0.15,0,0.21s0,0.15,0,0.24h1.45c0.03-0.21,0.03-0.35,0.03-0.44c0-0.12,0-0.21,0-0.3
C31.77,21.43,31.54,21.04,31.06,20.78z"/>
<path class="st1" d="M35.55,27.6c-0.35,0-0.62-0.06-0.77-0.18c-0.15-0.09-0.24-0.24-0.24-0.47c-0.03-0.09,0-0.21,0.03-0.38
c0-0.15,0.06-0.38,0.15-0.71l0.89-4.2h1.74l0.24-1.03h-1.74l0.47-2.22l-1.57,0.38l-0.41,1.83h-1.45l-0.27,1.03h1.48l-0.92,4.02
c-0.06,0.38-0.15,0.74-0.18,1.09c-0.03,0.33-0.06,0.59-0.03,0.74c0.03,0.44,0.18,0.77,0.47,0.95c0.27,0.21,0.71,0.3,1.3,0.3
c0.21,0,0.44-0.03,0.68-0.03c0.24-0.03,0.5-0.06,0.8-0.09l0.27-1.18c-0.15,0.03-0.32,0.09-0.47,0.09
C35.85,27.57,35.67,27.6,35.55,27.6z"/>
<path class="st1" d="M39.01,24.76h2.33h3.43c0.09-0.35,0.15-0.71,0.15-1.03c0.03-0.32,0.03-0.65,0-0.95
c-0.06-0.86-0.38-1.48-0.89-1.86c-0.53-0.38-1.33-0.59-2.36-0.59c-0.12,0-0.21,0-0.32,0c-0.62,0.06-1.15,0.18-1.62,0.44
c-0.56,0.27-1.03,0.71-1.39,1.24c-0.32,0.56-0.62,1.24-0.8,2.01c-0.21,0.8-0.27,1.51-0.21,2.13c0.06,0.83,0.38,1.48,0.92,1.92
c0.56,0.44,1.3,0.68,2.25,0.68c0.3,0,0.59-0.03,0.86-0.06c0.65-0.09,1.21-0.3,1.68-0.62c0.68-0.44,1.12-1.06,1.33-1.86h-1.74
c-0.15,0.44-0.41,0.8-0.77,1.03c-0.15,0.09-0.32,0.18-0.5,0.24c-0.21,0.09-0.44,0.12-0.68,0.12c-0.56,0-0.97-0.15-1.3-0.41
c-0.3-0.27-0.47-0.65-0.53-1.15c0-0.18,0-0.38,0.03-0.59C38.89,25.21,38.92,25,39.01,24.76z M40.13,21.9
c0.33-0.35,0.74-0.53,1.21-0.59c0.09,0,0.21-0.03,0.3-0.03c0.53,0,0.95,0.15,1.27,0.38c0.3,0.24,0.47,0.56,0.5,1
c0.03,0.12,0.03,0.24,0,0.38c0,0.15-0.03,0.35-0.06,0.62h-2.01h-2.07C39.42,22.87,39.72,22.28,40.13,21.9z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.8 KiB

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 80 50" style="enable-background:new 0 0 80 50;" xml:space="preserve">
<style type="text/css">
.st0{fill:url(#SVGID_1_);}
.st1{fill:#FFFFFF;}
</style>
<g>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="0" y1="25" x2="80" y2="25">
<stop offset="0" style="stop-color:#222357"/>
<stop offset="1" style="stop-color:#254AA5"/>
</linearGradient>
<path class="st0" d="M76.56,50H3.44C1.55,50,0,48.45,0,46.56V3.44C0,1.55,1.55,0,3.44,0h73.12C78.45,0,80,1.55,80,3.44v43.12
C80,48.45,78.45,50,76.56,50z"/>
<g>
<path class="st1" d="M41.01,21.58c-0.03,2.65,2.36,4.12,4.16,5c1.85,0.9,2.47,1.48,2.47,2.28c-0.01,1.23-1.48,1.78-2.85,1.8
c-2.39,0.04-3.78-0.64-4.88-1.16l-0.86,4.02c1.11,0.51,3.16,0.96,5.28,0.97c4.99,0,8.26-2.46,8.27-6.28
c0.02-4.85-6.71-5.12-6.66-7.28c0.02-0.66,0.64-1.36,2.02-1.54c0.68-0.09,2.56-0.16,4.69,0.82l0.84-3.89
c-1.14-0.42-2.62-0.82-4.45-0.82C44.34,15.5,41.04,18,41.01,21.58 M61.51,15.84c-0.91,0-1.68,0.53-2.02,1.35l-7.13,17.02h4.99
l0.99-2.74h6.09l0.58,2.74h4.4l-3.84-18.37H61.51 M62.21,20.8l1.44,6.9h-3.94L62.21,20.8 M34.96,15.84l-3.93,18.37h4.75
l3.93-18.37H34.96 M27.93,15.84l-4.95,12.5l-2-10.63c-0.23-1.19-1.16-1.87-2.19-1.87h-8.09l-0.11,0.53
c1.66,0.36,3.55,0.94,4.69,1.56c0.7,0.38,0.9,0.71,1.13,1.61l3.79,14.66h5.02l7.7-18.37H27.93"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

File diff suppressed because one or more lines are too long
@@ -0,0 +1,180 @@
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2');
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* hebrew */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2');
unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* math */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu1aB.woff2) format('woff2');
unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu1aB.woff2) format('woff2');
unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format('woff2');
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* hebrew */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format('woff2');
unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* math */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu1aB.woff2) format('woff2');
unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu1aB.woff2) format('woff2');
unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-stretch: 100%;
src: url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@@ -0,0 +1,6 @@
/**
*
* detectIncognito v1.0.0 - (c) 2022 Joe Rutkowski <Joe@dreggle.com> (https://github.com/Joe12387/detectIncognito)
*
**/
var detectIncognito=function(){return new Promise(function(o,n){var e,t="Unknown";function i(e){o({isPrivate:e,browserName:t})}function r(e){return e===eval.toString().length}function a(){var e,o=window;void 0!==navigator.maxTouchPoints?void 0!==o.safari&&void 0===o.DeviceMotionEvent?(t="Safari for macOS",function(){try{window.safari.pushNotification.requestPermission("https://example.com","private",{},function(){})}catch(e){return i(!new RegExp("gesture").test(e))}i(!1)}()):void 0!==o.DeviceMotionEvent?(e=!(t="Safari for iOS"),(o=document.createElement("iframe")).style.display="none",document.body.appendChild(o),o.contentWindow.applicationCache.addEventListener("error",function(){return i(e=!0)}),setTimeout(function(){e||i(!1)},100)):n(new Error("detectIncognito Could not identify this version of Safari")):(t="Safari",function(){var e=window.openDatabase,o=window.localStorage;try{e(null,null,null,null)}catch(e){return i(!0)}try{o.setItem("test","1"),o.removeItem("test")}catch(e){return i(!0)}i(!1)}())}function c(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(e,o){i(o<(void 0!==(o=window).performance&&void 0!==o.performance.memory&&void 0!==o.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824))},function(e){n(new Error("detectIncognito somehow failed to query storage quota: "+e.message))})}function d(){void 0!==Promise&&void 0!==Promise.allSettled?c():(0,window.webkitRequestFileSystem)(0,1,function(){i(!1)},function(){i(!0)})}void 0!==(e=navigator.vendor)&&0===e.indexOf("Apple")&&r(37)?a():void 0!==(e=navigator.vendor)&&0===e.indexOf("Google")&&r(33)?(e=navigator.userAgent,t=e.match(/Chrome/)?void 0!==navigator.brave?"Brave":e.match(/Edg/)?"Edge":e.match(/OPR/)?"Opera":"Chrome":"Chromium",d()):void 0!==document.documentElement&&void 0!==document.documentElement.style.MozAppearance&&r(37)?(t="Firefox",i(void 0===navigator.serviceWorker)):void 0!==navigator.msSaveBlob&&r(39)?(t="Internet Explorer",i(void 0===window.indexedDB)):n(new Error("detectIncognito cannot determine the browser"))})};
@@ -0,0 +1,107 @@
(function(g){var window=this;'use strict';var BaX=function(A){A.mutedAutoplay=!1;A.endSeconds=NaN;A.limitedPlaybackDurationInSeconds=NaN;g.SC(A)},fZK=function(){return{Z:"svg",
C:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},B:[{Z:"path",bq:!0,j:"ytp-svg-fill",C:{d:"M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z"}}]}},
KqI=function(){return{Z:"svg",
C:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},B:[{Z:"path",C:{d:"M58.37 41.39H62.79V27.23C62.79 23.03 62.69 18.69 62.43 13.59H62.93L63.69 16.89L68.67 41.39H73.17L78.07 16.89L78.89 13.59H79.37C79.15 18.45 79.03 22.89 79.03 27.23V41.39H83.45V8.79H75.95L73.41 20.81C72.35 25.85 71.51 32.01 71.01 35.19H70.73C70.33 31.95 69.49 25.81 68.41 20.85L65.81 8.79H58.37V41.39Z",fill:"white"}},{Z:"path",C:{d:"M91.45 41.73C93.91 41.73 95.83 40.59 97.17 38.13H97.35L97.69 41.39H101.43V17.73H96.47V36.61C95.91 37.67 94.81 38.29 93.73 38.29C92.33 38.29 91.89 37.17 91.89 35.13V17.73H86.93V35.43C86.93 39.49 88.19 41.73 91.45 41.73Z",
fill:"white"}},{Z:"path",C:{d:"M110.79 41.89C115.15 41.89 117.75 39.83 117.75 35.65C117.75 31.79 115.93 30.39 111.85 27.47C109.67 25.91 108.39 25.09 108.39 22.95C108.39 21.47 109.27 20.61 110.89 20.61C112.69 20.61 113.33 21.81 113.33 25.29L117.45 25.07C117.77 19.57 115.71 17.23 110.97 17.23C106.57 17.23 104.17 19.27 104.17 23.45C104.17 27.25 105.97 28.83 108.93 31.03C111.89 33.23 113.55 34.53 113.55 36.23C113.55 37.75 112.51 38.61 111.01 38.61C109.13 38.61 108.11 36.97 108.29 34.41L104.21 34.49C103.51 39.25 105.89 41.89 110.79 41.89Z",
fill:"white"}},{Z:"path",C:{d:"M122.5 14.59C124.22 14.59 125.04 13.99 125.04 11.59C125.04 9.33 124.16 8.65 122.5 8.65C120.84 8.65 119.94 9.27 119.94 11.59C119.94 13.99 120.82 14.59 122.5 14.59ZM120.2 41.39H125V17.73H120.2V41.39Z",fill:"white"}},{Z:"path",C:{d:"M134.95 41.79C137.31 41.79 138.63 41.49 139.71 40.47C141.31 39.01 141.97 36.63 141.85 33.11L137.41 32.87C137.41 36.87 136.81 38.45 135.03 38.45C133.13 38.45 132.77 36.45 132.77 31.97V27.21C132.77 22.41 133.23 20.51 135.07 20.51C136.67 20.51 137.29 22.01 137.29 26.47L141.65 26.15C141.97 22.93 141.59 20.29 140.09 18.83C139.01 17.77 137.37 17.29 135.15 17.29C129.65 17.29 127.75 20.73 127.75 28.03V31.17C127.75 38.47 129.23 41.79 134.95 41.79Z",
fill:"white"}},{Z:"path",C:{"clip-rule":"evenodd",d:"M24.99 49C29.74 49.00 34.38 47.59 38.32 44.95C42.27 42.32 45.35 38.57 47.17 34.18C48.98 29.80 49.46 24.97 48.53 20.32C47.61 15.66 45.32 11.38 41.97 8.03C38.61 4.67 34.33 2.38 29.68 1.46C25.02 .53 20.20 1.01 15.81 2.82C11.43 4.64 7.68 7.71 5.04 11.66C2.40 15.61 1 20.25 1 25C0.99 28.15 1.61 31.27 2.82 34.18C4.03 37.09 5.79 39.74 8.02 41.97C10.25 44.19 12.89 45.96 15.81 47.17C18.72 48.37 21.84 49 24.99 49ZM24.99 12.36C27.49 12.36 29.94 13.10 32.02 14.48C34.10 15.87 35.72 17.84 36.68 20.15C37.64 22.46 37.89 25.01 37.41 27.46C36.92 29.91 35.72 32.17 33.95 33.94C32.18 35.70 29.93 36.91 27.48 37.40C25.02 37.89 22.48 37.64 20.17 36.68C17.86 35.72 15.88 34.10 14.50 32.02C13.11 29.94 12.37 27.50 12.37 25C12.37 21.65 13.70 18.44 16.07 16.07C18.43 13.70 21.64 12.37 24.99 12.36ZM24.99 10.43C22.11 10.43 19.29 11.28 16.89 12.88C14.50 14.48 12.63 16.76 11.53 19.42C10.42 22.09 10.13 25.02 10.70 27.85C11.26 30.67 12.65 33.27 14.69 35.31C16.73 37.35 19.32 38.73 22.15 39.30C24.98 39.86 27.91 39.57 30.57 38.46C33.23 37.36 35.51 35.49 37.11 33.09C38.71 30.70 39.57 27.88 39.56 25C39.56 23.08 39.19 21.19 38.46 19.42C37.72 17.65 36.65 16.04 35.30 14.69C33.94 13.34 32.34 12.27 30.57 11.53C28.80 10.80 26.90 10.43 24.99 10.43ZM32.63 24.99L20.36 32.09V17.91L32.63 24.99Z",
fill:"white","fill-rule":"evenodd"}}]}},V7t=function(A){g.q.call(this,{Z:"div",
j:"ytp-related-on-error-overlay"});var L=this;this.api=A;this.D=this.W=0;this.U=new g.dN(this);this.N=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.q({Z:"h2",j:"ytp-related-title",Ir:"{{title}}"});this.previous=new g.q({Z:"button",Rr:["ytp-button","ytp-previous"],C:{"aria-label":"Mostra i video consigliati in precedenza"},B:[g.jN()]});this.G=new g.x4(function(V){L.suggestions.element.scrollLeft=-V});
this.V=this.scrollPosition=0;this.T=!0;this.next=new g.q({Z:"button",Rr:["ytp-button","ytp-next"],C:{"aria-label":"Mostra altri video consigliati"},B:[g.gq()]});g.W(this,this.U);A=A.K();this.X=A.U;g.W(this,this.title);this.title.DM(this.element);this.suggestions=new g.q({Z:"div",j:"ytp-suggestions"});g.W(this,this.suggestions);this.suggestions.DM(this.element);g.W(this,this.previous);this.previous.DM(this.element);this.previous.listen("click",this.jX,this);g.W(this,this.G);for(var B={Kj:0};B.Kj<16;B=
{Kj:B.Kj},B.Kj++){var f=new g.q({Z:"a",j:"ytp-suggestion-link",C:{href:"{{link}}",target:A.yj,"aria-label":"{{aria_label}}"},B:[{Z:"div",j:"ytp-suggestion-image",B:[{Z:"div",C:{"data-is-live":"{{is_live}}"},j:"ytp-suggestion-duration",Ir:"{{duration}}"}]},{Z:"div",j:"ytp-suggestion-title",C:{title:"{{hover_title}}"},Ir:"{{title}}"},{Z:"div",j:"ytp-suggestion-author",Ir:"{{views_or_author}}"}]});g.W(this,f);f.DM(this.suggestions.element);var K=f.m4("ytp-suggestion-link");g.Kv(K,"transitionDelay",B.Kj/
20+"s");this.U.Y(K,"click",function(V){return function(J){var R=V.Kj,Z=L.suggestionData[R],N=Z.sessionData;g.MM(L.api.K())&&L.api.J("web_player_log_click_before_generating_ve_conversion_params")?(L.api.logClick(L.N[R].element),R=Z.Ej(),Z={},g.Mm(L.api,Z),R=g.ip(R,Z),g.wC(R,L.api,J)):g.If(J,L.api,L.X,N||void 0)&&L.api.Dl(Z.videoId,N,Z.playlistId)}}(B));
this.N.push(f)}g.W(this,this.next);this.next.DM(this.element);this.next.listen("click",this.TF,this);this.U.Y(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.Pn().getPlayerSize());this.onVideoDataChange();this.show()},JdK=function(A,L){if(A.api.K().J("web_player_log_click_before_generating_ve_conversion_params"))for(var B=Math.floor(-A.scrollPosition/(A.V+A.W)),f=Math.min(B+A.columns,A.suggestionData.length)-1;B<=f;B++)A.api.logVisibility(A.N[B].element,L)},SGR=function(A){A.next.element.style.bottom=
A.D+"px";
A.previous.element.style.bottom=A.D+"px";var L=A.scrollPosition,B=A.containerWidth-A.suggestionData.length*(A.V+A.W);g.D1(A.element,"ytp-scroll-min",L>=0);g.D1(A.element,"ytp-scroll-max",L<=B)},RKd=function(A){for(var L=0;L<A.suggestionData.length;L++){var B=A.suggestionData[L],f=A.N[L],K=B.shortViewCount?B.shortViewCount:B.author,V=B.Ej(),J=A.api.K();
if(g.MM(J)&&!J.J("web_player_log_click_before_generating_ve_conversion_params")){var R={};g.jg(A.api,"addEmbedsConversionTrackingParams",[R]);V=g.ip(V,R)}f.element.style.display="";R=f.m4("ytp-suggestion-title");g.yd.test(B.title)?R.dir="rtl":g.r1I.test(B.title)&&(R.dir="ltr");R=f.m4("ytp-suggestion-author");g.yd.test(K)?R.dir="rtl":g.r1I.test(K)&&(R.dir="ltr");f.update({views_or_author:K,duration:B.isLivePlayback?"Dal vivo":B.lengthSeconds?g.hG(B.lengthSeconds):"",link:V,hover_title:B.title,title:B.title,
aria_label:B.ariaLabel||null,is_live:B.isLivePlayback});K=B.g1();f.m4("ytp-suggestion-image").style.backgroundImage=K?"url("+K+")":"";J.J("web_player_log_click_before_generating_ve_conversion_params")&&(A.api.createServerVe(f.element,f),(B=(B=B.sessionData)&&B.itct)&&A.api.setTrackingParams(f.element,B))}for(;L<A.N.length;L++)A.N[L].element.style.display="none";SGR(A)},zs=function(A){g.ig.call(this,A);
var L=this;this.N=null;var B=A.K(),f={target:B.yj},K=["ytp-small-redirect"];if(B.V)K.push("no-link");else{var V=g.wd(B);f.href=V;f["aria-label"]="Visita YouTube per cercare altri video"}var J=new g.q({Z:"a",Rr:K,C:f,B:[{Z:"svg",C:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},B:[{Z:"path",C:{d:"M0 0h24v24H0V0z",fill:"none"}},{Z:"path",C:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]}]});
J.DM(this.element);A.createClientVe(J.element,this,178053);this.Y(J.element,"click",function(R){Zuf(L,R,J.element)});
g.W(this,J);B.V||B.disableOrganicUi||(this.N=new V7t(A),this.N.DM(this.element),g.W(this,this.N));this.Y(A,"videodatachange",function(){L.show()});
this.resize(this.api.Pn().getPlayerSize())},Zuf=function(A,L,B){L.preventDefault();
A.api.logClick(B);L=B.getAttribute("href");B={};g.jg(A.api,"addEmbedsConversionTrackingParams",[B]);L=g.mi(B)?L:g.ip(L,B);g.QR(window,L)},NaK=function(A,L){A.m4("ytp-error-content").style.paddingTop="0px";
var B=A.m4("ytp-error-content"),f=B.clientHeight;A.N&&A.N.resize(L,L.height-f);B.style.paddingTop=(L.height-(A.N?A.N.element.clientHeight:0))/2-f/2+"px"},d$t=function(A,L){var B=A.api.K(),f;
L.reason&&(Fqw(L.reason)?f=g.p1(L.reason):f=g.$S(g.wq(L.reason)),A.setContent(f,"content"));var K;L.subreason&&(Fqw(L.subreason)?K=g.p1(L.subreason):K=g.$S(g.wq(L.subreason)),A.setContent(K,"subreason"));if(L.proceedButton&&L.proceedButton.buttonRenderer){f=A.m4("ytp-error-content-wrap-subreason");L=L.proceedButton.buttonRenderer;var V=g.TO("A");if(L.text&&L.text.simpleText&&(K=L.text.simpleText,V.textContent=K,!D$I(f,K)&&(!B.V||B.embedsErrorLinks))){var J;B=(J=g.y(L==null?void 0:L.navigationEndpoint,
g.Mt))==null?void 0:J.url;var R;J=(R=g.y(L==null?void 0:L.navigationEndpoint,g.Mt))==null?void 0:R.target;B&&(V.setAttribute("href",B),A.api.createClientVe(V,A,178424),A.Y(V,"click",function(Z){Zuf(A,Z,V)}));
J&&V.setAttribute("target",J);R=g.TO("DIV");R.appendChild(V);f.appendChild(R)}}},Fqw=function(A){if(A.runs)for(var L=0;L<A.runs.length;L++)if(A.runs[L].navigationEndpoint)return!0;
return!1},D$I=function(A,L){A=g.jr("A",A);
for(var B=0;B<A.length;B++)if(A[B].textContent===L)return!0;return!1},IZK=function(A,L){g.q.call(this,{Z:"a",
Rr:["ytp-impression-link"],C:{target:"{{target}}",href:"{{url}}","aria-label":"Guarda su YouTube"},B:[{Z:"div",j:"ytp-impression-link-content",C:{"aria-hidden":"true"},B:[{Z:"div",j:"ytp-impression-link-text",Ir:"Guarda su"},{Z:"div",j:"ytp-impression-link-logo",Ir:"{{logoSvg}}"}]}]});this.api=A;this.N=L;this.updateValue("target",A.K().yj);this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(this.api,"presentingplayerstatechange",this.qP);this.Y(this.api,"videoplayerreset",this.gH);this.Y(this.element,
"click",this.onClick);this.onVideoDataChange();this.gH()},wGR=function(A){var L={};
g.jg(A.api,"addEmbedsConversionTrackingParams",[L]);A=A.api.getVideoUrl();return A=g.ip(A,L)},u2=function(A){g.q.call(this,{Z:"div",
Rr:["ytp-mobile-a11y-hidden-seek-button"],B:[{Z:"button",Rr:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],C:{"aria-label":"Indietro di 10 secondi","aria-hidden":"false"}},{Z:"button",Rr:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],C:{"aria-label":"Avanti veloce di 10 secondi","aria-hidden":"false"}}]});this.api=A;this.N=this.m4("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.m4("ytp-mobile-a11y-hidden-seek-button-forward");this.api.createClientVe(this.N,
this,141902);this.api.createClientVe(this.forwardButton,this,141903);this.Y(this.api,"presentingplayerstatechange",this.qP);this.Y(this.N,"click",this.W);this.Y(this.forwardButton,"click",this.V);this.qP()},ae=function(A){g.q.call(this,{Z:"div",
j:"ytp-muted-autoplay-endscreen-overlay",B:[{Z:"div",j:"ytp-muted-autoplay-end-panel",B:[{Z:"button",Rr:["ytp-muted-autoplay-end-text","ytp-button"],Ir:"{{text}}"}]}]});this.api=A;this.U=this.m4("ytp-muted-autoplay-end-panel");this.W=!1;this.api.createClientVe(this.element,this,52428);this.Y(this.api,"presentingplayerstatechange",this.V);this.Y(A,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.listen("click",this.onClick);this.hide()},AM=function(A){var L=A.K();
g.q.call(this,{Z:"a",Rr:["ytp-watermark","yt-uix-sessionlink"],C:{target:L.yj,href:"{{url}}","aria-label":g.B$("Guarda su $WEBSITE",{WEBSITE:g.BN(L)}),"data-sessionlink":"feature=player-watermark"},Ir:"{{logoSvg}}"});this.api=A;this.N=null;this.W=!1;this.state=A.getPlayerStateObject();this.Y(A,"videodatachange",this.onVideoDataChange);this.Y(A,"presentingplayerstatechange",this.onStateChange);this.Y(A,"appresize",this.Bz);this.onVideoDataChange();this.Y6(this.state);this.Bz(A.Pn().getPlayerSize())},
pGR=function(A){var L=A.api.getVideoData(),B=A.api.K().TZ&&!g.x(A.state,2)&&!A.api.getVideoData(1).OE;
L.mutedAutoplay||A.xP(B);A.api.logVisibility(A.element,B)},gb5=function(A){g.q.call(this,{Z:"div",
j:"ytp-muted-autoplay-overlay",B:[{Z:"div",j:"ytp-muted-autoplay-bottom-buttons",B:[{Z:"button",Rr:["ytp-muted-autoplay-equalizer","ytp-button"],C:{"aria-label":"Indicatore di riproduzione con audio disattivato"},B:[{Z:"div",Rr:["ytp-muted-autoplay-equalizer-icon"],B:[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},B:[{Z:"g",C:{fill:"#fff"},B:[{Z:"rect",j:"ytp-equalizer-bar-left",C:{height:"9",width:"4",x:"1",y:"7"}},{Z:"rect",j:"ytp-equalizer-bar-middle",C:{height:"14",
width:"4",x:"6",y:"2"}},{Z:"rect",j:"ytp-equalizer-bar-right",C:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});var L=this;this.api=A;this.bottomButtons=this.m4("ytp-muted-autoplay-bottom-buttons");this.V=new g.aa(this.YxT,4E3,this);this.W=!1;A.createClientVe(this.element,this,39306);this.Y(A,"presentingplayerstatechange",this.K1);this.Y(A,"onMutedAutoplayStarts",function(){ydK(L);L.K1();jg9(L);L.W=!1});
this.Y(A,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.Y(A,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();A.isMutedByEmbedsMutedAutoplay()&&(ydK(this),this.K1(),jg9(this));g.W(this,this.V)},jg9=function(A){A.bC&&A.N&&(A.N.show(),A.V.start())},ydK=function(A){A.watermark||(A.watermark=new AM(A.api),g.W(A,A.watermark),A.watermark.DM(A.bottomButtons,0),g.D1(A.watermark.element,"ytp-muted-autoplay-watermark",!0),A.N=new g.KL(A.watermark,0,!0,100),g.W(A,
A.N))},L7=function(A){g.q.call(this,{Z:"div",
j:"ytp-pause-overlay",C:{tabIndex:"-1"}});var L=this;this.api=A;this.V=new g.dN(this);this.fade=new g.KL(this,1E3,!1,100,function(){L.N.W=!1},function(){L.N.W=!0});
this.W=!1;this.expandButton=new g.q({Z:"button",Rr:["ytp-button","ytp-expand"],Ir:this.api.isEmbedsShortsMode()?"Altri Short":"Altri video"});A.K().controlsType==="0"&&g.R1(A.getRootNode(),"ytp-pause-overlay-controls-hidden");g.W(this,this.V);g.W(this,this.fade);var B=new g.q({Z:"button",Rr:["ytp-button","ytp-collapse"],C:{"aria-label":this.api.isEmbedsShortsMode()?"Nascondi la sezione Altri Short":"Nascondi Altri video"},B:[{Z:"div",j:"ytp-collapse-icon",B:[g.C1()]}]});g.W(this,B);B.DM(this.element);
B.listen("click",this.U,this);g.W(this,this.expandButton);this.expandButton.DM(this.element);this.expandButton.listen("click",this.D,this);this.N=new g.ep(A);g.W(this,this.N);this.N.W=!1;this.N.DM(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.V.Y(this.api,"presentingplayerstatechange",this.zL);this.V.Y(this.api,"videodatachange",this.zL);this.hide()},on=function(A){g.q.call(this,{Z:"div",
Rr:["ytp-player-content","ytp-iv-player-content"],B:[{Z:"div",j:"ytp-countdown-timer",B:[{Z:"svg",C:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},B:[{Z:"circle",j:"ytp-svg-countdown-timer-ring",C:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{Z:"circle",j:"ytp-svg-countdown-timer-background",C:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3",
"stroke-width":"4",transform:"rotate(-90)"}}]},{Z:"span",j:"ytp-countdown-timer-time",Ir:"{{duration}}"}]}]});this.api=A;this.T=this.m4("ytp-svg-countdown-timer-ring");this.N=null;this.U=this.V=0;this.W=!1;this.D=0;this.api.createClientVe(this.element,this,159628)},rdI=function(A){A.N||(A.V=5E3,A.U=(0,g.bc)(),A.N=new g.uN(function(){Gw5(A)},null),Gw5(A))},Gw5=function(A){if(!A.W){var L=Math.min((0,g.bc)()-A.U,A.V);
var B=A.V-L;L=A.V===0?0:Math.max(B/A.V,0);B=Math.round(B/1E3);A.T.setAttribute("stroke-dashoffset",""+-211*(L+1));A.updateValue("duration",B);L<=0&&A.N?A.stopTimer():A.N&&A.N.start()}},HuK=function(A){g.FB.call(this,A);
this.S=A;this.N=new g.dN(this);this.W=null;this.X=!1;this.countdownTimer=null;this.yj=!1;sgd(this);g.W(this,this.N);this.load()},buK=function(A){var L=g.wzy(A.S);
L!==A.yj&&(A.yj=L,A.D&&(A.D.dispose(),A.D=null),A.V&&(A.V.dispose(),A.V=null),A.U&&(A.U.dispose(),A.U=null),A.W&&(A.W.stop(),A.W.dispose(),A.W=null),L&&(L=g.Hh(A.S),A.S.isEmbedsShortsMode()&&(A.U=new g.q({Z:"div",j:"ytp-pause-overlay-backdrop",C:{tabIndex:"-1"}}),g.W(A,A.U),g.Wh(A.S,A.U.element,4),A.W=new g.KL(A.U,1E3,!1,100),g.W(A,A.W),A.U.hide()),A.D=new g.q({Z:"div",j:"ytp-pause-overlay-container",C:{tabIndex:"-1"}}),g.W(A,A.D),A.V=new L7(A.S,L),g.W(A,A.V),A.V.DM(A.D.element),g.Wh(A.S,A.D.element,
4),hKI(A,A.S.getPlayerStateObject())))},hKI=function(A,L){A.W&&(!g.x(L,4)&&!g.x(L,2)||g.x(L,1024)?A.W.hide():A.W.show())},sgd=function(A){var L=A.S;
A=!!L.isEmbedsShortsMode();g.D1(L.getRootNode(),"ytp-shorts-mode",A);if(L=L.getVideoData())L.g4=A},Bx=function(A,L){var B=A.S.K();
A={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:A.S.getCurrentTime()===0?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":A.S.getPlayerState()===0?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.Zvk(A.S.K().loaderUrl),eventType:L,youtubeHost:g.tW(A.S.K().vI)||""};A.embeddedPlayerMode=B.wT;g.pE("embedsAdEvent",A)};
g.G(V7t,g.q);g.p=V7t.prototype;g.p.hide=function(){this.T=!0;g.q.prototype.hide.call(this);JdK(this,!1)};
g.p.show=function(){this.T=!1;g.q.prototype.show.call(this);JdK(this,!0)};
g.p.isHidden=function(){return this.T};
g.p.TF=function(){this.scrollTo(this.scrollPosition-this.containerWidth)};
g.p.jX=function(){this.scrollTo(this.scrollPosition+this.containerWidth)};
g.p.resize=function(A,L){var B=this.api.K(),f=16/9,K=A.width>=650,V=A.width<480||A.height<290,J=Math.min(this.suggestionData.length,this.N.length);if(Math.min(A.width,A.height)<=150||J===0||!B.k6)this.hide();else{var R;if(K){var Z=R=28;this.W=16}else this.W=Z=R=8;if(V){var N=6;K=14;var F=12;V=24;B=12}else N=8,K=18,F=16,V=36,B=16;A=A.width-(48+R+Z);R=Math.ceil(A/150);R=Math.min(3,R);Z=A/R-this.W;var D=Math.floor(Z/f);L&&D+100>L&&Z>50&&(D=Math.max(L,50/f),R=Math.ceil(A/(f*(D-100)+this.W)),Z=A/R-this.W,
D=Math.floor(Z/f));Z<50||g.ch(this.api)?this.hide():this.show();for(L=0;L<J;L++){f=this.N[L];var I=f.m4("ytp-suggestion-image");I.style.width=Z+"px";I.style.height=D+"px";f.m4("ytp-suggestion-title").style.width=Z+"px";f.m4("ytp-suggestion-author").style.width=Z+"px";f=f.m4("ytp-suggestion-duration");f.style.display=f&&Z<100?"none":""}J=K+N+F+4;this.D=J+B+(D-V)/2;this.suggestions.element.style.height=D+J+"px";this.V=Z;this.containerWidth=A;this.columns=R;this.scrollPosition=0;this.suggestions.element.scrollLeft=
-0;SGR(this)}};
g.p.onVideoDataChange=function(){var A=this.api.getVideoData(),L=this.api.K();this.X=A.OE?!1:L.U;A.suggestions?this.suggestionData=g.Mi(A.suggestions,function(B){return B&&!B.playlistId}):this.suggestionData.length=0;
RKd(this);A.OE?this.title.update({title:g.B$("Altri video da $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:A.author})}):this.title.update({title:"Altri video su YouTube"})};
g.p.scrollTo=function(A){A=g.B4(A,this.containerWidth-this.suggestionData.length*(this.V+this.W),0);this.G.start(this.scrollPosition,A,1E3);this.scrollPosition=A;SGR(this);JdK(this,!0)};g.G(zs,g.ig);zs.prototype.show=function(){g.ig.prototype.show.call(this);NaK(this,this.api.Pn().getPlayerSize())};
zs.prototype.resize=function(A){g.ig.prototype.resize.call(this,A);this.N&&(NaK(this,A),g.D1(this.element,"related-on-error-overlay-visible",!this.N.isHidden()))};
zs.prototype.W=function(A){g.ig.prototype.W.call(this,A);var L=this.api.getVideoData();if(L.Kt||L.playerErrorMessageRenderer)(A=L.Kt)?d$t(this,A):L.playerErrorMessageRenderer&&d$t(this,L.playerErrorMessageRenderer);else{var B;A.Qr&&(L.ZE?Fqw(L.ZE)?B=g.p1(L.ZE):B=g.$S(g.wq(L.ZE)):B=g.$S(A.Qr),this.setContent(B,"subreason"))}};g.G(IZK,g.q);g.p=IZK.prototype;g.p.onVideoDataChange=function(){var A=this.api.getVideoData(),L=fZK(),B=96714;g.Nm(A)?(L=KqI(),B=216165,g.R1(this.element,"ytp-music-impression-link")):g.NH(this.element,"ytp-music-impression-link");this.updateValue("logoSvg",L);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,B)};
g.p.qP=function(){this.api.getPlayerStateObject().isCued()||(this.hide(),this.api.logVisibility(this.element,!1))};
g.p.gH=function(){var A=this.api.getVideoData(),L=this.api.K(),B=this.api.getVideoData().OE,f=!L.k6,K=this.N.Gy(),V=L.V;L.TZ||K||B||f||V||this.api.isEmbedsShortsMode()||!A.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(A=wGR(this),this.updateValue("url",A),this.show())};
g.p.onClick=function(A){this.api.J("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var L=wGR(this);g.wC(L,this.api,A);this.api.J("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
g.p.show=function(){this.api.getPlayerStateObject().isCued()&&(g.q.prototype.show.call(this),this.api.hasVe(this.element)&&this.api.logVisibility(this.element,!0))};g.G(u2,g.q);u2.prototype.qP=function(){var A=this.api.getPlayerStateObject();!this.api.Kw()||g.x(A,2)&&g.Xr(this.api)||g.x(A,64)?(this.api.logVisibility(this.N,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.N,!0),this.api.logVisibility(this.forwardButton,!0))};
u2.prototype.W=function(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.N)};
u2.prototype.V=function(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)};g.G(ae,g.q);
ae.prototype.V=function(){var A=this.api.getPlayerStateObject(),L=this.api.getVideoData();g.D1(this.element,"ytp-shorts-mode",this.api.isEmbedsShortsMode());!L.mutedAutoplay||L.limitedPlaybackDurationInSeconds===0&&L.endSeconds===0&&L.mutedAutoplayDurationMode===2||(g.x(A,2)&&!this.bC?(this.show(),this.N||(this.N=new g.Q2(this.api),g.W(this,this.N),this.N.DM(this.U,0),this.N.show()),A=this.api.getVideoData(),this.updateValue("text",A.Tz),g.D1(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element,
this.bC),this.api.Wo("onMutedAutoplayEnds")):this.hide())};
ae.prototype.onClick=function(){if(!this.W){this.N&&(this.N.l1(),this.N=null);g.D1(this.api.getRootNode(),"ytp-muted-autoplay",!1);var A=this.api.getVideoData(),L=this.api.getCurrentTime();BaX(A);this.api.loadVideoById(A.videoId,L);this.api.S9();this.api.logClick(this.element);this.hide();this.W=!0}};
ae.prototype.onMutedAutoplayStarts=function(){this.W=!1;this.N&&(this.N.l1(),this.N=null)};g.G(AM,g.q);g.p=AM.prototype;g.p.onStateChange=function(A){this.Y6(A.state)};
g.p.Y6=function(A){this.state!==A&&(this.state=A);pGR(this)};
g.p.onVideoDataChange=function(){var A=this.api.K();A.V&&g.R1(this.element,"ytp-no-hover");var L=this.api.getVideoData();L.videoId&&!A.V?(A=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",A),this.N||(this.N=this.listen("click",this.onClick))):this.N&&(this.updateValue("url",null),this.J$(this.N),this.N=null);A=fZK();var B=76758;g.Nm(L)&&(A=KqI(),B=216164);this.updateValue("logoSvg",A);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,
B);pGR(this)};
g.p.onClick=function(A){this.api.J("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var L=this.api.getVideoUrl(!g.bV(A),!1,!0,!0);if(this.api.J("web_player_log_click_before_generating_ve_conversion_params")){var B={};g.jg(this.api,"addEmbedsConversionTrackingParams",[B]);L=g.ip(L,B)}g.wC(L,this.api,A);this.api.J("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
g.p.Bz=function(A){if((A=A.width<480)&&!this.W||!A&&this.W){var L=new g.q(fZK()),B=this.m4("ytp-watermark");g.D1(B,"ytp-watermark-small",A);g.Ql(B);L.DM(B);this.W=A}};g.G(gb5,g.q);g.p=gb5.prototype;g.p.K1=function(){var A=this.api.getPlayerStateObject();!this.api.getVideoData().mutedAutoplay||g.x(A,2)?this.hide():this.bC||(g.q.prototype.show.call(this),this.api.logVisibility(this.element,this.bC))};
g.p.YxT=function(){this.N&&this.N.hide()};
g.p.onAutoplayBlocked=function(){this.hide();BaX(this.api.getVideoData())};
g.p.onClick=function(){if(!this.W){g.D1(this.api.getRootNode(),"ytp-muted-autoplay",!1);var A=this.api.getVideoData(),L=this.api.getCurrentTime();BaX(A);this.api.loadVideoById(A.videoId,L);this.api.S9();this.api.logClick(this.element);this.api.Wo("onMutedAutoplayEnds");this.W=!0}};
g.p.onMutedAutoplayEnds=function(){this.watermark&&(this.watermark.l1(),this.watermark=null)};g.G(L7,g.q);L7.prototype.hide=function(){g.NH(this.api.getRootNode(),"ytp-expand-pause-overlay");g.q.prototype.hide.call(this)};
L7.prototype.U=function(){this.W=!0;g.NH(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()};
L7.prototype.D=function(){this.W=!1;g.R1(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!0);this.focus()};
L7.prototype.zL=function(){var A=this.api.getPlayerStateObject();g.x(A,1)||g.x(A,16)||g.x(A,32)||(!g.x(A,4)||g.x(A,2)||g.x(A,1024)?(this.W||this.api.logVisibility(this.element,!1),this.fade.hide()):this.N.hasSuggestions()&&(this.W||(g.R1(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.nY(this.N),this.N.show(),this.api.logVisibility(this.element,!0)),this.fade.show()))};g.G(on,g.q);on.prototype.show=function(){g.q.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
on.prototype.stopTimer=function(){this.N&&(this.N.dispose(),this.N=null,this.W=!1)};
on.prototype.l1=function(){this.stopTimer();g.q.prototype.l1.call(this)};g.G(HuK,g.FB);g.p=HuK.prototype;g.p.Pg=function(){return!1};
g.p.create=function(){var A=this.S.K(),L=g.Hh(this.S),B,f=(B=this.S.getVideoData())==null?void 0:B.clientPlaybackNonce;f&&g.Qm({clientPlaybackNonce:f});A.sx&&!A.disableOrganicUi&&buK(this);var K;(K=A.getWebPlayerContextConfig())!=null&&K.embedsEnableEmc3ds||(this.G=new gb5(this.S),g.W(this,this.G),g.Wh(this.S,this.G.element,4),this.qp=new ae(this.S),g.W(this,this.qp),g.Wh(this.S,this.qp.element,4));A.TZ&&(this.watermark=new AM(this.S),g.W(this,this.watermark),g.Wh(this.S,this.watermark.element,8));
L&&!A.disableOrganicUi&&(this.T=new IZK(this.S,L),g.W(this,this.T),g.Wh(this.S,this.T.element,8),this.S.isMutedByEmbedsMutedAutoplay()&&(this.onMutedAutoplayStarts(),this.T.hide()));A.W&&!A.disableOrganicUi&&(this.Wn=new u2(this.S),g.W(this,this.Wn),g.Wh(this.S,this.Wn.element,4));this.N.Y(this.S,"appresize",this.Bz);this.N.Y(this.S,"presentingplayerstatechange",this.qP);this.N.Y(this.S,"videodatachange",this.onVideoDataChange);this.N.Y(this.S,"videoplayerreset",this.onReset);this.N.Y(this.S,"onMutedAutoplayStarts",
this.onMutedAutoplayStarts);this.N.Y(this.S,"onAdStart",this.onAdStart);this.N.Y(this.S,"onAdComplete",this.onAdComplete);this.N.Y(this.S,"onAdSkip",this.onAdSkip);this.N.Y(this.S,"onAdStateChange",this.onAdStateChange);if(this.X=g.IX(g.nM(A)))this.countdownTimer=new on(this.S),g.W(this,this.countdownTimer),g.Wh(this.S,this.countdownTimer.element,4),this.countdownTimer.hide(),this.N.Y(this.S,g.qR("embeds"),this.onCueRangeEnter),this.N.Y(this.S,g.PR("embeds"),this.onCueRangeExit);this.q8(this.S.getPlayerStateObject());
var V,J;((V=this.S.K().getWebPlayerContextConfig())==null?0:(J=V.embedsHostFlags)==null?0:J.allowOverridingVisitorDataPlayerVars)&&(A=g.A_("IDENTITY_MEMENTO"))&&this.S.X3("onMementoChange",A)};
g.p.onCueRangeEnter=function(A){A.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.show(),rdI(this.countdownTimer))};
g.p.onCueRangeExit=function(A){A.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.stopTimer(),this.countdownTimer.hide())};
g.p.Bz=function(){var A=this.S.Pn().getPlayerSize();this.Xb&&this.Xb.resize(A)};
g.p.onReset=function(){sgd(this)};
g.p.qP=function(A){this.q8(A.state)};
g.p.q8=function(A){g.x(A,128)?(this.Xb||(this.Xb=new zs(this.S),g.W(this,this.Xb),g.Wh(this.S,this.Xb.element,4)),this.Xb.W(A.nh),this.Xb.show(),g.R1(this.S.getRootNode(),"ytp-embed-error")):this.Xb&&(this.Xb.dispose(),this.Xb=null,g.NH(this.S.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.N)if(g.x(A,64))this.countdownTimer.hide(),this.countdownTimer.stopTimer();else if(A.isPaused()){var L=this.countdownTimer;L.W||(L.W=!0,L.D=(0,g.bc)())}else A.isPlaying()&&this.countdownTimer.W&&
(L=this.countdownTimer,L.W&&(L.U+=(0,g.bc)()-L.D,L.W=!1,Gw5(L)));hKI(this,A)};
g.p.onMutedAutoplayStarts=function(){this.S.getVideoData().mutedAutoplay&&this.G&&g.D1(this.S.getRootNode(),"ytp-muted-autoplay",!0)};
g.p.onVideoDataChange=function(A,L){var B=this.PT!==L.videoId;A=!B&&A==="dataloaded";var f={isShortsModeEnabled:!!this.S.isEmbedsShortsMode()};g.pE("embedsVideoDataDidChange",{clientPlaybackNonce:L.clientPlaybackNonce,isReload:A,runtimeEnabledFeatures:f});B&&(this.PT=L.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.X&&(this.S.Jf("embeds"),L.isAd()||L.limitedPlaybackDurationInSeconds<5||g.ch(this.S)||(L=Math.max((L.startSeconds+L.limitedPlaybackDurationInSeconds-
5)*1E3,0),L=new g.WR(L,L+5E3,{id:"countdown timer",namespace:"embeds"}),this.S.dX([L]))),this.S.K().sx&&!this.S.K().disableOrganicUi&&(sgd(this),buK(this)));this.S.K().V&&this.V&&this.V.detach()};
g.p.onAdStart=function(){Bx(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")};
g.p.onAdComplete=function(){Bx(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")};
g.p.onAdSkip=function(){Bx(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")};
g.p.onAdStateChange=function(A){A===2&&Bx(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.Np("embed",HuK);})(_yt_player);
@@ -0,0 +1 @@
/* PLEASE DO NOT COPY AND PASTE THIS CODE. */(function(){var w=window,C='___grecaptcha_cfg',cfg=w[C]=w[C]||{},N='grecaptcha';var E='enterprise',a=w[N]=w[N]||{},gr=a[E]=a[E]||{};gr.ready=gr.ready||function(f){(cfg['fns']=cfg['fns']||[]).push(f);};w['__recaptcha_api']='https://www.google.com/recaptcha/enterprise/';(cfg['enterprise']=cfg['enterprise']||[]).push(true);(cfg['enterprise2fa']=cfg['enterprise2fa']||[]).push(true);(cfg['render']=cfg['render']||[]).push('6LcjhUMpAAAAADxcuxrNs1Ou0iKbz2h3dn58Egnw');(cfg['clr']=cfg['clr']||[]).push('true');(cfg['anchor-ms']=cfg['anchor-ms']||[]).push(20000);(cfg['execute-ms']=cfg['execute-ms']||[]).push(15000);w['__google_recaptcha_client']=true;var d=document,po=d.createElement('script');po.type='text/javascript';po.async=true; po.charset='utf-8';var v=w.navigator,m=d.createElement('meta');m.httpEquiv='origin-trial';m.content='A7vZI3v+Gz7JfuRolKNM4Aff6zaGuT7X0mf3wtoZTnKv6497cVMnhy03KDqX7kBz/q/iidW7srW31oQbBt4VhgoAAACUeyJvcmlnaW4iOiJodHRwczovL3d3dy5nb29nbGUuY29tOjQ0MyIsImZlYXR1cmUiOiJEaXNhYmxlVGhpcmRQYXJ0eVN0b3JhZ2VQYXJ0aXRpb25pbmczIiwiZXhwaXJ5IjoxNzU3OTgwODAwLCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ==';if(v&&v.cookieDeprecationLabel){v.cookieDeprecationLabel.getValue().then(function(l){if(l!=='treatment_1.1'&&l!=='treatment_1.2'&&l!=='control_1.1'){d.head.prepend(m);}});}else{d.head.prepend(m);}po.src='https://www.gstatic.com/recaptcha/releases/TkacYOdEJbdB_JjX802TMer9/recaptcha__it.js';po.crossOrigin='anonymous';po.integrity='sha384-jBr1c0i/lBALGFjGRa0UkLw5oDOPevN9KOlmNFGKHe5+D+3OpoTeZdS00+BHr2oZ';var e=d.querySelector('script[nonce]'),n=e&&(e['nonce']||e.getAttribute('nonce'));if(n){po.setAttribute('nonce',n);}var s=d.getElementsByTagName('script')[0];s.parentNode.insertBefore(po, s);})();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 37 KiB

@@ -0,0 +1,124 @@
function setFavoriteHandler(){
"use strict"
var lockRequest = false;
$(".favorite").on({
click: function(e) {
var element = $(this);
e.preventDefault(e);
e.stopImmediatePropagation();
if(element.attr('disabled')) {
if(isMobileDevice()) {
element.tooltip('show');
setTimeout(function(){
element.tooltip('hide');
}, 3000);
}
return;
}
if (lockRequest) {
return;
}
lockRequest = true;
$.ajax({
url: 'favorite.php',
data: {
id: element.attr("data-id")
},
type: "GET"
}).success(function(data) {
lockRequest = false;
if (data.result) window.parent.updateFavoriteCounter(element);
}).fail(function(){
lockRequest = false;
});
}
});
}
function animateAddToFavorite(favoriteSelector){
"use strict"
//if(!$(".select-bids").length) return; // REM FOR TAG
if(!$("#CategoryMenu").length) return; // ADD FOR TAG
// var targetSelector = ".select-bids .bi-favorite"; // REM FOR TAG
var targetSelector = "#CategoryMenu .bi-favorite"; // ADD FOR TAG
var body = $("body");
var preferredPositionTab = $(targetSelector).offset();
var categoryMenuPosition = $("#CategoryMenu").offset(); // ADD FOR TAG
if (preferredPositionTab.left < categoryMenuPosition.left) { // ADD FOR TAG
preferredPositionTab.left = categoryMenuPosition.left -16;
}
var cloneFavorite = favoriteSelector
.clone()
.addClass("bi-clone")
.addClass("fixed-zindex-high");
cloneFavorite = body.append(cloneFavorite)
.find(".bi-clone");
var favoritePosition = favoriteSelector.offset();
cloneFavorite.css({
"position": "absolute",
"left": favoritePosition.left,
"top": favoritePosition.top
});
cloneFavorite
.animate({
left: preferredPositionTab.left+"px",
top: preferredPositionTab.top+"px"
},600,function(){
cloneFavorite.remove();
});
}
$(function() {
"use strict"
window.updateFavoriteCounter = function(element) {
"use strict"
var id = element.data('id');
var preferredCount = $('.preferredCount');
var count = parseInt(preferredCount.eq(0).text());
if(element.length > 1) return;
element.toggleClass("active");
var hasElementActive = element.hasClass("active");
if (hasElementActive) {
count += 1;
animateAddToFavorite(element);
} else {
count = count < 0 ? 0 : --count;
}
var preferredCount = $('.preferredCount').text(count);
preferredCount.parent().toggleClass("active", count > 0);
setFavoriteTabTooltipVisibility(0 == count);
var asta = $("#divAsta" + id);
var data_favorite = parseInt(asta.attr('data-favorited'));
var des_text = (hasElementActive ? "Rimuovi quest\'asta dalle tue preferite" : "Metti quest\'asta tra le tue preferite"); // data_favorite -> hasElementActive
asta.attr('data-favorited', !data_favorite | 0)
if($("#modal").is(":visible")){
asta
.find(".favorite")
.toggleClass("active");
}
var id_product = getUrlParam("a").split("_").reverse()[0];
if (id_product > 0) {
element.attr('title', des_text);
} else {
element.attr('data-original-title', des_text);
}
//$('.auction-[data-favorited=0]').toggleClass('hide', !hasElementActive && bidSelected == 2); // REMOVED for bidSelect not defined
}
//this is the js that is working for favorites bids
setFavoriteHandler();
});
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,62 @@
.footer a[data-toggle="collapse"]:active{
background-color: transparent;
}
.ic-footer{
background-image: url(../images/footer_social_icons.svg);
background-position-x: 0;
background-size: cover;
width: 50px;
height: 50px;
display: inline-block;
}
.ic-footer.ic-footer-facebook{
background-position-y: 0;
}
.ic-footer.ic-footer-facebook:hover{
background-position-y: -52px;
}
.ic-footer.ic-footer-youtube{
background-position-y: -106px;
}
.ic-footer.ic-footer-youtube:hover{
background-position-y: -158px;
}
.ic-footer.ic-footer-twitter{
background-position-y: -212px;
}
.ic-footer.ic-footer-twitter:hover{
background-position-y: -264px;
}
.ic-footer.ic-footer-instagram{
background-position-y: -318px;
}
.ic-footer.ic-footer-instagram:hover{
background-position-y: -372px;
}
.box-credit-card{
display: flex;
justify-content: center;
}
.box-credit-card div img{
margin: 0px 3px;
width: 60px;
}
@media (max-width: 576px) {
.box-credit-card div img{
margin: 0px 3px;
width: 47px;
}
}
.creditBidoo{
text-align: center;
}
@media (max-width: 576px) {
.creditBidoo{
font-size: 13px;
}
}
@@ -0,0 +1,6 @@
$(document).ready(function(){
$('.footer #accordion .panel-collapse').on('show.bs.collapse', function (e) {
$(".footer #accordion .panel-collapse").parent().find(".glyphicon").removeClass("glyphicon-minus").addClass("glyphicon-plus");
$(this).parent().find(".glyphicon").removeClass('glyphicon-plus').addClass("glyphicon-minus");
});
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

@@ -0,0 +1,643 @@
* {
outline: none;
}
.form-table {
display: table !important;
}
.form-table > div.form-table-cell {
display: table-cell !important;
vertical-align: middle;
width: 100%;
padding: 0 7px;
}
.form-table > div.form-table-cell > * {
width: 100%;
}
/* BIDOO BUTTONS */
.button-default {
border-radius: 5px;
border: 1px solid transparent;
display: inline-block;
padding: 12.5px 5px;
font-weight: bold;
text-align: center;
text-decoration: none;
cursor: pointer;
transition: background 0.1s ease-in;
font-size: 16px;
}
.button-small {
padding: 5px 10px;
font-size: 14px;
}
.button-form {
line-height: 1;
padding: 8px 16px;
font-size: 14px;
}
.button-squaround {
border-radius: 3px !important;
}
.button-rounded {
border-radius: 200px !important;
}
.button-default:hover,
.button-default:focus,
.button-default:active,
.button-default:visited {
text-decoration: none;
}
.button-full {
display: block;
width: 100%;
}
.button-full.button-big-text{
font-size: 24px;
padding: 8px 5px;
}
.button-blue-gradient,
.button-blue-gradient:hover,
.button-blue-gradient:focus {
background: #2b98f0;
background: -moz-linear-gradient(left, #2b98f0 0%, #21c2f9 100%);
background: -webkit-linear-gradient(left, #2b98f0 0%,#21c2f9 100%);
background: linear-gradient(to right, #2b98f0 0%,#21c2f9 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2b98f0', endColorstr='#21c2f9',GradientType=1 );
color: #fff;
}
.button-green-gradient,
.button-green-gradient:hover,
.button-green-gradient:focus{
background: #82eba6;
background: -moz-linear-gradient(left, #68ca9c 0%, #82eba6 100%);
background: -webkit-linear-gradient(left, #68ca9c 0%,#82eba6 100%);
background: linear-gradient(to right, #68ca9c 0% #82eba6 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#68ca9c', endColorstr='#82eba6',GradientType=1 );
color: white;
}
.button-gray-gradient,
.button-gray-gradient:hover,
.button-gray-gradient:focus{
background: #a8b6bf;
background: -moz-linear-gradient(left, #a8b6bf 0%, #d5d6d9 100%);
background: -webkit-linear-gradient(left, #a8b6bf 0%,#d5d6d9 100%);
background: linear-gradient(to right, #a8b6bf 0%,#d5d6d9 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a8b6bf', endColorstr='#d5d6d9',GradientType=1 );
color: white;
}
.button-azure-gradient,
.button-azure-gradient:hover,
.button-azure-gradient:focus{
background: #61c9fa;
background: -moz-linear-gradient(left, #61c9fa 0%, #73edfc 100%);
background: -webkit-linear-gradient(left, #61c9fa 0%,#73edfc 100%);
background: linear-gradient(to right, #61c9fa 0%,#73edfc 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#61c9fa', endColorstr='#73edfc',GradientType=1 );
color: white;
}
.button-orange-gradient,
.button-orange-gradient:hover,
.button-orange-gradient:focus{
background: #eb954a;
background: -moz-linear-gradient(left, #eb954a 0%, #f7ce55 100%);
background: -webkit-linear-gradient(left, #eb954a 0%,#f7ce55 100%);
background: linear-gradient(to right, #eb954a 0%,#f7ce55 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eb954a', endColorstr='#f7ce55',GradientType=1 );
color: #000 !important;
}
.button-shipping-gradient,
.button-shipping-gradient:hover,
.button-shipping-gradient:focus{
background: #0077dd;
background: -moz-linear-gradient(top, #02a0dd 0%, #0077dd 100%);
background: -webkit-linear-gradient(top, #02a0dd 0%, #0077dd 100%);
background: linear-gradient(to bottom, #02a0dd 0%, #0077dd 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=#02a0dd, endColorstr=#0077dd ,GradientType=0 );
border-color: #0370cc;
border-radius: 3px;
color: white;
}
.button-edit,
.button-edit:hover,
.button-edit:focus{
background: #d8d8d8;
background: -moz-linear-gradient(top, white 0%, #d8d8d8 100%);
background: -webkit-linear-gradient(top, white 0%, #d8d8d8 100%);
background: linear-gradient(to bottom, white 0%, #d8d8d8 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=white, endColorstr=#d8d8d8 ,GradientType=0 );
border: 1px solid #d8d8d8;
border-radius: 3px;
color: #414141;
}
.button-azure-flat {
background: #00ccff;
color: #fff;
}
.button-gray-flat {
background: #d2d2d2;
color: #fff;
}
.button-fucsia-flat {
background: #f73975;
color: #fff;
}
.button-mint-flat {
background: #3dcb9a;
color: #fff;
}
.button-mint-flat:hover {
background: #2E9873;
}
.button-sky-flat {
background: #23ccfc;
color: #fff;
}
.button-blue-flat {
background: #2196f3;
color: #fff;
}
.button-gold-flat {
background: #eb954a;
background: -moz-linear-gradient(left, #eb954a 0%, #f7ce55 100%);
background: -webkit-linear-gradient(left, #eb954a 0%,#f7ce55 100%);
background: linear-gradient(to right, #eb954a 0%,#f7ce55 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eb954a', endColorstr='#f7ce55',GradientType=1 );
color: #000 !important;
border: none;
}
@media (max-width: 576px) {
.button-gold-flat {
background: #eb8e41;
background: -moz-linear-gradient(top, #f7ce55 0%, #eb954a 100%);
background: -webkit-linear-gradient(top, #f7ce55 0%,#eb954a 100%);
background: linear-gradient(to bottom, #f7ce55 0%,#eb954a 100%);
}
}
.fg-blue {
color: #3399ff;
}
.fg-gold {
color: #fdc435;
}
.fg-mint {
color: #3dcb9a;
}
.fg-red {
color: #c00;
}
.button-empty-flat:active,
.button-empty-flat:hover,
.button-empty-flat:visited,
.button-azure-flat:active,
.button-azure-flat:hover,
.button-azure-flat:visited,
.button-blue-gradient:active,
.button-blue-gradient:hover,
.button-blue-gradient:visited,
.button-gray-flat:active,
.button-gray-flat:hover,
.button-gray-flat:visited,
.button-fucsia-flat:active,
.button-fucsia-flat:hover,
.button-fucsia-flat:visited,
.button-mint-flat:active,
.button-mint-flat:hover,
.button-mint-flat:visited,
.button-sky-flat:active,
.button-sky-flat:hover,
.button-sky-flat:visited,
.button-blue-flat:active,
.button-blue-flat:hover,
.button-blue-flat:visited,
.button-gold-flat:active,
.button-gold-flat:hover,
.button-gold-flat:visited {
color: #fff;
}
/* HEADERS */
.head-title {
font-weight: bold;
}
.head-title.head-title-blue {
color: #39f;
}
.head-title.head-title-white {
color: #fff;
}
/* ICON */
.bi {
display:inline-block;
font-size:inherit;
width: 16px;
height: 16px;
background-size: cover;
background-position: 50% 50%;
vertical-align: middle;
}
.bi.bi-large {
width: 28px;
height: 28px;
}
.bi.bi-nav{
background-position: 0 0;
}
.bi.bi-block{
display: block;
}
.bi.bi-all-bids{
background-image: url(../images/mobile_nav_all_bids.svg);
}
.bi.bi-all-bids.active{
background-position-y: -19px;
}
.bi.bi-bids{
background-image: url(../images/mobile_nav_bids.svg);
}
.bi.bi-bids.active{
background-position-y: -19px;
}
.bi.bi-info {
background-image: url(../images/icon_info1.png);
}
.bi.bi-favorite {
background-image: url(../images/ic_star_sprite.svg);
background-position: 0 0;
}
.bi.bi-favorite.active {
background-position-y: -21px;
}
.bi.bi-credit-card{
background-image: url(../images/icon-credit-card.svg);
background-repeat: no-repeat;
background-size: contain;
width: 18px;
height: 18px;
}
.bi.bi-credit-cards{
background-image: url(../images/icon-credit-cards.png);
width: 220px;
height: 34px;
}
.bi.bi-loader{
background-image: url(../images/wait_modal_sprite.svg);
background-position-y: 0;
}
.bi.bi-loader-dark{
background-position-y: -35px;
}
.bi.bi-hidden{
visibility: hidden;
}
.bi.bi-special-bids {
background-image: url(../images/icon_special.png);
}
.bi.bi-opening-times {
background-image: url(../images/icon_open.svg);
}
.bi.bi-shipping-truck {
background-image: url(../images/icona_spedizioni_gratis.svg);
}
.bi.bi-noauto {
background-image: url(../images/icon_manualbid.png);
}
.bi.bi-timer {
background-image: url(../images/icon_timer.png);
}
.bi.bi-timer-white {
background-image: url(../images/icon_timer_white.png);
}
.bi.bi-timer-grey {
background-image: url(../images/ic-timer-grey.svg);
}
.bi.bi-timer-white {
background-image: url(../images/ic-timer-white.svg);
}
.bi.bi-truck {
width: 20px;
background-image: url(../images/ic-truck.svg);
}
.bi.bi-hotbid {
background-image: url(../images/icon_turbo.png);
}
@media (max-width: 576px) {
.auction-info .bi.bi-hotbid{
margin-top: 3px;
}
}
.bi.bi-crown {
background-image: url(../images/icon_crown.png);
}
.bi.bi-autobid {
background-image: url(../images/icon_autobid_sprite.svg);
background-position: 0 0;
width: 27px;
height: 20px;
}
.bi.bi-autobid.bi-dark{
background-position: 0 -16px;
}
.bi.bi-autobid.bi-green{
background-position: 0 -41px;
}
.bi.bi-coin {
background-image: url(../images/bids2.svg);
}
.bi.bi-benefit {
background-image: url(../images/icon_benefit.png);
}
.bi.bi-customer-care{
background-image: url(../images/icon-customer-care.png);
}
.bi.bi-customer-care-mobile{
background-image: url(../images/icon-customer-care-mobile.svg);
width: 18px;
height: 18px;
}
.bi.bi-left-side-item{
width: 20px;
height: 20px;
}
.bi.bi-cup{
background-image: url(../images/cup.svg);
}
.bi.bi-media{
background-image: url(../images/media.svg);
}
.bi.bi-question-mark{
background-image: url(../images/question_mark.svg);
}
.bi.bi-li-bids{
background-image: url(../images/all_bids.svg);
}
.bi.bi-left-arrow-optin{
background-image: url(../images/left-optin-arrow.svg);
}
.bi.bi-single-money{
background-image: url(../images/ic-single-money.svg);
}
.bi.bi-facebook{
background-image: url(../images/facebook_icon.svg)
}
.bi.bi-padlock{
background-image: url(../images/icon_padlock.svg);
}
.bi.bi-products{
background-image: url(../images/ic-product-auctions-mobile.svg);
}
.bi.bi-products.active{
background-position-y: 90px;
}
.bi.bi-amazon{
background-image: url(../images/amazon-voucher.svg);
background-position-y: 10px;
}
.bi.bi-amazon.active{
background-position-y: 78px;
}
.bi.bi-topup{
background-image: url(../images/phone-voucher.svg);
background-position-y: 10px;
}
.bi.bi-topup.active{
background-position-y: 78px;
}
.bi.bi-gas{
background-image: url(../images/gas-voucher.svg);
background-position-y: 10px;
}
.bi.bi-gas.active{
background-position-y: 78px;
}
/* BADGE COLOURS */
.badge.badge-primary {
background-color: #2b98f0;
}
/* Lists */
.green-tick-list {
margin: 0;
list-style: none;
padding: 0;
}
.green-tick-list li {
background: url(../images/icon_check_18.png) no-repeat left top;
padding: 0 18px 0 32px;
list-style: none;
margin: 0;
}
.fix-body-padding{
padding-top: 0px;
}
.fixed-zindex-low{
z-index: 5000;
}
.fixed-zindex-high{
z-index: 1031;
}
.modal-open .modal.sidebar-menu{
z-index: 2000;
}
@keyframes d {
0%, to {
transform: scale(0);
}
50% {
transform: scale(1);
}
}
@keyframes e {
to {
transform: rotate(1turn);
}
}
.page-loading-container {
display: block;
animation: c 1s;
}
.page-loading {
width: 96px;
height: 96px;
position: absolute;
top: 40%;
left: 50%;
margin-left: -48px;
margin-top: -48px;
animation: e 2s infinite linear;
}
.page-loading .dot1, .page-loading .dot2 {
width: 32px;
height: 32px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -32px;
margin-left: -32px;
background-color: #00cc99;
border-radius: 24px;
animation: d 2s infinite ease-in-out;
}
.page-loading .dot2 {
margin-top: 0;
margin-left: 0;
animation-delay: -1s;
}
.ingenico-payment .card{
border-radius: 3px;
display: block;
margin: 0 auto;
width: 55px;
height: 30px;
}
.ingenico-payment .card .mastercard{
background-image: url(../images/mastercard-isolated.png);
width: 25px;
height: 16px;
margin-top: 5px;
}
.card .cbs{
/*background-image: url(https://1c308283f6f0dbd72b44-c007ec4697a7ceab9178ce16802c0e6b.ssl.cf2.rackcdn.com/1.0/images/ico_cbs_pay.png);*/
background-image: url(https://1c308283f6f0dbd72b44-c007ec4697a7ceab9178ce16802c0e6b.ssl.cf2.rackcdn.com/1.0/images/card_bidooshop.svg);
width: 55px;
height: 30px;
margin-top: 2px !important;
border-radius: 4px;
}
.ingenico-payment .card .visa{
background-image: url(../images/visa-isolated.png);
width: 38px;
height: 10px;
margin-top: 5px;
}
.ingenico-payment .card .paypal{
background-image: url(../images/logo_paypal.png);
width: 37px;
height: 10px;
margin-top: 5px;
}
.ingenico-payment .card-number{
font-weight: normal;
margin-top: 10px;
display: block;
}
@media (hover:hover){
.bi.bi-favorite:not(.bi-favorite-mobile):hover{
background-position-y: -21px;
}
}
@media screen and (min-width: 768px){
.text-lg-left{
text-align: left;
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.82 14.91"><defs><style>.cls-1{fill:#848484}</style></defs><g id="Layer_2" data-name="Layer 2"><g id="Livello_3" data-name="Livello 3"><path class="cls-1" d="M18 4.76H7.71A1.82 1.82 0 0 0 5.9 6.57v6.52a1.82 1.82 0 0 0 1.81 1.81H18a1.82 1.82 0 0 0 1.81-1.81V6.57A1.81 1.81 0 0 0 18 4.76zm.84 8.36a.66.66 0 0 1-.66.66H7.69a.66.66 0 0 1-.69-.66V8.53h11.84zm0-6.31H7v-.26a.66.66 0 0 1 .66-.66h10.53a.66.66 0 0 1 .66.66zm0 0"/><path class="cls-1" d="M7.58 3.64H14L12.67 1a1.82 1.82 0 0 0-2.44-.81L1 4.75a1.82 1.82 0 0 0-.81 2.43L3.08 13a1.82 1.82 0 0 0 2.1.95 2.73 2.73 0 0 1-.38-1.4V6.43a2.79 2.79 0 0 1 2.78-2.79zm0 0M8.89 13.07a1.16 1.16 0 0 0 .89-.41 1.18 1.18 0 1 0 0-1.53 1.18 1.18 0 1 0-.89 1.94zm0 0"/></g></g></svg>

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

File diff suppressed because one or more lines are too long
@@ -0,0 +1,84 @@
function IdleUser(){
"use strict"
var self = this;
self.IDLE_TIMEOUT = 600; // 600
self._idleSecondsCounter = 0;
self._stop = false;
self.setupIdleUser();
}
IdleUser.prototype.resetIdleCounter = function(){
"use strict"
var self = this;
self._idleSecondsCounter = 0;
}
IdleUser.prototype.setupResetIdleHandlers = function(){
"use strict"
var self = this;
var resetCallback = self.resetIdleCounter.bind(self);
$(document).on('click',resetCallback);
$(document).on('mousemove',resetCallback);
$(document).on('keypress',resetCallback);
$(document).on('resize',resetCallback);
$(document).on('scroll',resetCallback);
}
IdleUser.prototype.checkIdleUser = function() {
"use strict"
var self = this;
// self._idleSecondsCounter++; //commentando mi assicuro che non si incrementi mai e che quindi non appaia la modale
if (self._idleSecondsCounter >= self.IDLE_TIMEOUT && !$("#connectivityModal").is(":visible")) {
if (self._stop == false) {
clearInterval(self._idleCounter);
self._stop = true;
var scope = isDeepModal() ? window.parent : window;
//scope.BidooCnf.instances.auction.features.clearAutobidInfoPoll(); // [GR] REM errors in page auction.php, undefined clearAutobidInfoPoll() (instanced in index.js)
clearTimeout(window.timerIDElenco);
clearTimeout(window.timer_check_open);
if (window.stateTot == 'STOP') clearTimeout(window.timerGestState);
trackEvent({ name: 'Idle_Modal_Open', label: 'Idle Modal Open' });
//console.log('Idle_Modal_Open');
$("#idleM").modal().on({
'show.bs.modal': saveScrollPosition,
'hide.bs.modal': function() {
trackEvent({ name: 'Idle_Modal_Close', label: 'Idle Modal Close' });
//console.log('Idle_Modal_Close');
self._idleSecondsCounter = 0;
self._stop = false;
self._idleCounter = setInterval(self.checkIdleUser.bind(self), BidooCnf.intervals.user.idle_timeout);
//scope.BidooCnf.instances.auction.features.resetIntervals(); // [GR] REM errors in page auction.php, undefined resetIntervals() (instanced in index.js)
if (window.timer_check_status == 0 && "undefined"!=typeof window["processPageElenco"]) processPageElenco();
if (window.timer_check_status == 1 && "undefined"!=typeof window["CheckStatusAuct"]) window.timer_check_open = setTimeout(CheckStatusAuct, BidooCnf.intervals.auction.idle_timeout);
if (window.stateTot == 'STOP' && "undefined"!=typeof window["processGestState"]) processGestState();
setSavedScrollPosition();
$("#idleM").off("hide.bs.modal");
$("html, body").animate({scrollTop: 0}, 1); // [GR] ADD: scrool top
window.location.reload(true); // [GR] ADD
}
}).modal('show');
}
}
}
IdleUser.prototype.setupIdleUser = function(){
"use strict"
var self = this;
self.setupResetIdleHandlers();
self._idleCounter = setInterval(self.checkIdleUser.bind(self), BidooCnf.intervals.user.idle_timeout);
}
$(document).ready(function(){
"use strict"
new IdleUser();
});
@@ -0,0 +1,72 @@
function Ingenico(){
"use strict"
var self = this;
self.ENDPOINT = {
manage_card: "/manage_cards.php"
};
self.selectors = {
forms: $(".ingenico_form"),
direct_pay: $(".ingenico_direct_pay"),
pick_card: $(".ingenico_pick_card"),
card: {
brand: $(".ingenico_direct_pay .card-brand"),
number: $(".ingenico_direct_pay .card-number"),
expire: $(".ingenico_direct_pay .card-expire"),
holder: $(".ingenico_direct_pay .card-holder")
}
}
self.http = new HttpRequest();
self.lockButtonFromInterceptor();
}
Ingenico.prototype.showManageCards = function(){
"use strict"
var self = this;
//var parsedURL = parseURL(window.location.href);
//var search = parsedURL.search.length ? parsedURL.search+"&iframe=1" : "?iframe=1";
//var referrer = encodeURIComponent(parsedURL.pathname+search+"&back=1&notReloadNow=1");
//if(getUrlParam("referrer").length){
//referrer = encodeURIComponent(getUrlParam("referrer")+"?iframe=1&back=1&notReloadNow=1");
//}
var referrer = encodeURIComponent("/?iframe=1&back=1&notReloadNow=1");
var params = new URLSearchParams({
'back_url' : referrer
,'bCD' : screen.colorDepth // for 3dsv2
,'bJE' : navigator.javaEnabled() // for 3dsv2
,'bLg' : navigator.language // for 3dsv2
,'bSW' : screen.width // for 3dsv2
,'bSH' : screen.height // for 3dsv2
,'bTZ' : new Date().getTimezoneOffset() // for 3dsv2
});
var url = self.ENDPOINT.manage_card + "?" + params.toString(); // [self.ENDPOINT.manage_card,"?referrer=",referrer].join("")
var options = getOptions(true,true,false,false,false,"10px",false,false,false,false,true);
launchIframeModal(url,CONSTANTS.INGENICO.modal.width,CONSTANTS.INGENICO.modal.height,true,options);
}
Ingenico.prototype.lockButtonFromInterceptor = function(){
"use strict"
var self = this;
self.selectors.forms.submit(function(e){
$(".ingenico-loader").toggleClass("hidden",false); // loader fullscreen
if(!isPageInIframe() && $(this).hasClass("ingenico_pick_card")){
e.preventDefault();
e.stopImmediatePropagation();
let vrnt = $("#variantField").val();
if (typeof vrnt !== 'undefined') {
$("form.ingenico_form input[name='vrnt']").val(vrnt);
}
var url = $(this).attr("action")+"?"+$(this).serialize();
var options = getOptions(true,true,false,false,false,"10px",false,false,true,true,true); // true for avoidShowLoader, 10th parameter, to not show bottom circle loader
launchIframeModal(url,CONSTANTS.INGENICO.modal.width,CONSTANTS.INGENICO.modal.height,true,options);
return;
}
});
}
$(document).ready(function(){
"use strict"
BidooCnf.modules.user.ingenico = Ingenico;
BidooCnf.instances.user.ingenico = new Ingenico();
});
@@ -0,0 +1,579 @@
.ingenico-body{
padding: 0;
}
.ingenico-body:not(.no-padding){
padding-top: 20px;
background-color: #fcfcfd;
}
.ingenico-body .header{
font-size: 16px;
margin-top: -9px;
padding-bottom: 15px;
margin-bottom: 15px;
/*border-bottom: 0.3px solid #E4EAEE;*/
font-weight: lighter;
}
.ingenico-body .close{
opacity: 1;
font-size: 16px;
margin-top: 3px;
font-weight: lighter;
cursor: pointer;
}
.ingenico-body .close .left-arrow{
margin: -3px 5px 0 0;
}
.ingenico-body .header .price{
padding-left: 10px;
}
.ingenico-body .credit-cards{
margin-top: 5px;
}
.ingenico-body .or-pay-with-bids{
font-size: 13px !important;
padding: 9px 0 0 0;
}
.ingenico-body .dashed-or{
padding: 0;
border-style: dashed;
border-color: #9b9b9b;
}
.ingenico-body .title{
margin: 20px 0 25px 0;
color: #1c2125;
font-size: 23px;
}
.ingenico-body .grey{
color: #848484;
}
.ingenico-body .safe-payment{
font-size: 16px;
}
.ingenico-body .safe-payment .safe-payment-icon{
margin-right: 10px;
width: 18px;
height: 26px;
background-image: url(../images/lock_safe_payment.svg);
}
.ingenico-body .or.active{
margin-top: 10px;
}
.ingenico-body .pay-with-a-card{
border: 1px solid #D8D8D8;
background-color: transparent;
}
.ingenico-body .btn-with-shadow{
box-shadow: 0px 0px 20px -4px rgba(208, 209, 213, 0.6), 0 2px 2px 1px rgba(220, 221, 224, 0.4);
-webkit-box-shadow: 0px 0px 20px -4px rgba(208, 209, 213, 0.6), 0 2px 2px 1px rgba(220, 221, 224, 0.4);
-moz-box-shadow: 0px 0px 20px -4px rgba(208, 209, 213, 0.6), 0 2px 2px 1px rgba(220, 221, 224, 0.4);
}
.ingenico-body .btn{
width: 100%;
padding: 10px;
outline: 0;
max-height: 130px;
}
.ingenico-body .btn .pay-with-card{
font-weight: 900;
padding-left: 10px;
font-size: 15px;
}
.ingenico-body .btn .pay-with-card p{
margin-bottom: 0;
}
.ingenico-body .btn .pay-with-card .subtitle{
font-size: 12px;
font-weight: 900;
}
.ingenico-body .btn-blue-proceed{
padding: 10px 0;
background: #e3e3e3;
background: -moz-linear-gradient(bottom, #ececec 0%, #e3e3e3 100%);
background: -webkit-linear-gradient(top, #ececec 0%,#e3e3e3 100%);
background: linear-gradient(to bottom, #ececec 0%,#e3e3e3 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ececec', endColorstr='#e3e3e3',GradientType=0 );
color: #313131;
border: 1px solid #D8D8D8;
margin-top: 10px;
}
.ingenico-body .pay-with-a-card .pull-right{
padding-right: 6px;
}
.ingenico-body .pay-with-a-card span{
display: inline-block;
}
.ingenico-body .pay-with-a-card .no-paypal-btn{
margin-right: 10px;
}
.ingenico-body .fa-angle-right{
font-size: 35px;
}
.ingenico-body .pay-btn,
.ingenico-body .pay-btn:hover,
.ingenico-body .pay-btn:focus{
background: #0077E2;
background: -moz-linear-gradient(bottom, #02A1DE 0%, #0077E2 100%);
background: -webkit-linear-gradient(top, #02A1DE 0%,#0077E2 100%);
background: linear-gradient(to bottom, #02A1DE 0%,#0077E2 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#02A1DE', endColorstr='#0077E2',GradientType=0 );
color: white;
margin: 0;
border: 1px solid #2170CB;
height: 58px;
}
.ingenico-body .pay-now,
.ingenico-body .pay-now:hover,
.ingenico-body .pay-now:focus{
margin: 0;
font-size: 10px;
padding: 8px 5px 8px 9px;
}
@media(max-width:576px){
.ingenico-body .pay-now,
.ingenico-body .pay-now:hover,
.ingenico-body .pay-now:focus{
font-size: 10px;
padding: 8px 5px 8px 9px;
}
#order_your_product .order-product .pay-now .ingenico-pay-button .white-arrow {
margin-top: 0px !important;
}
}
.ingenico-body .pay-now .card-number{
font-size: 11px;
font-weight: 900;
}
body[data-lang=es] .ingenico-body .pay-now .card-number{
font-size: 10px;
}
.ingenico-body .card-brand-visa-background{
background-color: white;
border-radius: 1.5px;
width: 59px;
height: 31px;
display: inline-block;
margin: 4px 10px 0 0;
padding: 5px 0 0 6px;
}
body[data-lang=es] .ingenico-body .card-brand-visa-background{
margin-right: 5px;
width: 50px;
height: 33px;
padding: 4px 0 0 2px;
}
.ingenico-body .pay-now .card-brand-placeholder{
margin: 3px 10px 0 0;
width: 50px;
height: 32px;
}
body[data-lang=es] .ingenico-body .pay-now .card-brand-placeholder{
margin-right: 7px;
}
@media(max-width:320px){
.ingenico-body .pay-now .card-brand-placeholder{
width: 24px;
height: 19px;
margin-top: 10px;
margin-right: 5px;
}
.ingenico-body .pay-now .card-number{
font-size: 10px;
}
}
.ingenico-body .mastercard{
background-image: url(../images/mastercard.png);
}
.ingenico-body .visa{
background-image: url(../images/visa.png);
}
.ingenico-body .amex {
background-image: url(../images/amex_b.png);
}
.ingenico-body .pay-now .amex{
background-image: url(../images/amex_b.png);
}
.ingenico-body .pay-now .visa{
background-image: url(../images/visa-isolated.png);
width: 44px;
height: 13px;
}
.ingenico-body .postepay{
background-image: url(../images/postepay.png);
}
body[data-lang=es] .ingenico-body .postepay{
display: none;
}
.ingenico-body .card-holder{
margin-bottom: 0;
}
.ingenico-body .card-info-normal{
font-weight: 600;
font-size: 9px;
}
.ingenico-body .btn-text-size {
font-size: 14px;
font-weight: bold;
padding-right: 0px;
}
.ingenico-body .pay-now .ingenico-pay-button,
.ingenico-body .pay-now .ingenico-pay-button:hover{
padding: 7px 7px;
margin-top: 3px;
}
body[data-lang=es] .ingenico-body .pay-now .ingenico-pay-button,
body[data-lang=es] .ingenico-body .pay-now .ingenico-pay-button:hover{
padding: 7px 0px;
}
@media(max-width:576px){
.ingenico-body .pay-now .ingenico-pay-button,
.ingenico-body .pay-now .ingenico-pay-button:hover{
padding: 7px 1px;
margin-top: 3px;
}
.ingenico-body .btn-text-size{
font-size: 14px;/* 16px */
}
body[data-lang=es] .ingenico-body .btn-text-size{
font-size: 12px;/* 16px */
}
}
@media(max-width:400px){
body[data-lang=es] .ingenico-body .btn-text-size{
font-size: 11px;/* 16px */
}
}
@media(max-width:320px){
.ingenico-body .pay-now .ingenico-pay-button,
.ingenico-body .pay-now .ingenico-pay-button:hover{
padding: 7px 2px;
/*margin-top: -30px;*/
}
body[data-lang=es] .ingenico-body .btn-text-size{
font-size: 11px;/* 16px */
}
body[data-lang=es] .ingenico-body .card-info{
position: absolute;
}
}
.ingenico-body .select-new-card .btn-text{
margin-top: 3px;
}
.ingenico-body .select-new-card{
color: #333;
font-weight: normal;
}
.ingenico-body .ingenico-pay-button .arrow{
margin: -3px 0 0 5px;/* -3px 0 0 10px */
}
.ingenico-body .pay-with-a-card-first .arrow{
margin-top: 6px;
}
.ingenico-body .safe-payment{
position: absolute;
bottom: 20px;
}
.ingenico-body .ingenico-lock{
background: url(../images/lock.svg);
width: 22px;
height: 29px;
margin: -21px 10px 0;
}
.ingenico-body .btn-blue-proceed b{
padding-right: 10px;
}
.ingenico-body .accepted-cards-container:not(.pull-left){
margin-top: 10px;
}
.ingenico-body .pay-now .accepted-cards-container .text{
font-size: 12px;
padding-right: 9px;
}
.ingenico-body .accepted-cards-container .bi{
width: 43px;
height: 27px;
}
@media(max-width: 576px){
.ingenico-body .accepted-cards-container .bi{
width: 33px;
height: 23px;
}
.ingenico-body .pay-now .accepted-cards-container .text{
font-size: 10px;
}
}
@media(max-width: 320px){
.ingenico-body .accepted-cards-container .bi{
width: 20px;
height: 15px;
}
}
.ingenico-body .gray-text{
color: #aaaaaa;
font-size: 16px;
}
.ingenico-body .accepted-cards-container-first .gray-text{
font-size: 13px;
}
.ingenico-body .arrow,
.buy-error-message .arrow{
width: 12px;
height: 22px;
margin: 6px 5px 0 0;
}
.ingenico-body .white-arrow,
.buy-error-message .white-arrow{
background: url(../images/white-chevron.svg);
}
.ingenico-body .black-arrow{
background: url(../images/grey-chevron.svg);
}
.ingenico-body button{
height: 58px;
}
.ingenico-body .accepted-cards-container-first{
margin-top: 10px;
}
.ingenico-body .pay-with-a-card-first .arrow{
margin-top: 5px;
}
.ingenico-loader{
position: absolute;
z-index: 1;
background-color: rgba(255,255,255,0.8);
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.ingenico-loader .ingenico-blue-lock{
background: url(../images/lock-blue.svg?v=1);
margin-top: 63px;
width: 28px;
height: 37px;
}
.ingenico-loader .loader-text{
color: #1687E5;
font-size: 22px;
margin: -27px 0 0 0;
}
div.spinner {
position: relative;
width: 184px;
height: 184px;
margin: 146px 0 0 -92px;
left: 50%;
background: transparent;
padding: 10px;
border-radius: 10px;
}
div.spinner div {
width: 4%;
height: 16%;
background: #1687E5;
position: absolute;
left: 49%;
top: 43%;
opacity: 0;
-webkit-border-radius: 50px;
-webkit-box-shadow: 0 0 3px rgba(0,0,0,0.2);
-webkit-animation: fade 1s linear infinite;
}
@-webkit-keyframes fade {
from {opacity: 1;}
to {opacity: 0.25;}
}
div.spinner div.bar1 {
-webkit-transform:rotate(0deg) translate(0, -130%);
-webkit-animation-delay: 0s;
}
div.spinner div.bar2 {
-webkit-transform:rotate(30deg) translate(0, -130%);
-webkit-animation-delay: -0.9167s;
}
div.spinner div.bar3 {
-webkit-transform:rotate(60deg) translate(0, -130%);
-webkit-animation-delay: -0.833s;
}
div.spinner div.bar4 {
-webkit-transform:rotate(90deg) translate(0, -130%);
-webkit-animation-delay: -0.7497s;
}
div.spinner div.bar5 {
-webkit-transform:rotate(120deg) translate(0, -130%);
-webkit-animation-delay: -0.667s;
}
div.spinner div.bar6 {
-webkit-transform:rotate(150deg) translate(0, -130%);
-webkit-animation-delay: -0.5837s;
}
div.spinner div.bar7 {
-webkit-transform:rotate(180deg) translate(0, -130%);
-webkit-animation-delay: -0.5s;
}
div.spinner div.bar8 {
-webkit-transform:rotate(210deg) translate(0, -130%);
-webkit-animation-delay: -0.4167s;
}
div.spinner div.bar9 {
-webkit-transform:rotate(240deg) translate(0, -130%);
-webkit-animation-delay: -0.333s;
}
div.spinner div.bar10 {
-webkit-transform:rotate(270deg) translate(0, -130%);
-webkit-animation-delay: -0.2497s;
}
div.spinner div.bar11 {
-webkit-transform:rotate(300deg) translate(0, -130%);
-webkit-animation-delay: -0.167s;
}
div.spinner div.bar12 {
-webkit-transform:rotate(330deg) translate(0, -130%);
-webkit-animation-delay: -0.0833s;
}
.ingenico-body .error{
background-color: #D0021B;
border-radius: 2px;
color: white;
padding: 10px;
margin-bottom: 10px;
}
.ingenico-body .error .close-error{
background: url(../images/close-icon.svg);
position: absolute;
right: 10px;
margin-top: -2px;
width: 10px;
height: 10px;
cursor: pointer;
}
.ingenico-body .error .arrow-down{
background: url(../images/down-chevron.svg);
display: block;
width: 22px;
height: 12px;
margin: 7px auto 0 auto;
}
@media screen and (min-width: 768px){
.ingenico-body .pay-with-a-card-first,
.ingenico-body .pay-with-a-card-first:hover{
margin-top: 35px !important;
padding-right: 5px;
}
}
@media screen and (min-width: 500px) and (max-width: 990px){
.ingenico-body .or .col-xs-3{
width: 30%;
}
}
@media screen and (width: 370px) and (height: 420px){
.ingenico-body .no-paypal-btn{
height: 26px;
}
.ingenico-body .no-paypal{
width: 130px;
}
}
@media screen and (max-width: 360px){
.ingenico-body .title{
font-size: 22px;
}
}
@media screen and (max-width: 576px){
.ingenico-body .pay-with-a-card .pull-right{
margin-top: 6px;
}
}
@media screen and (max-width: 320px){
.ingenico-body .pay-with-a-card .pull-right{
margin-top: 6px;
}
.ingenico-body .container:eq(0){
padding-left: 0;
padding-right: 0;
}
.ingenico-body .title{
font-size: 19px;
}
.ingenico-body .btn-text-size{
font-size: 10px;
}
.ingenico-body .pay-with-a-card .pull-right{
padding-right: 2px;
}
.ingenico-body .pay-now .ingenico-pay-button .arrow{
margin-right: -5px;
}
.ingenico-body .error .close-error{
right: 5px;
margin-top: -5px;
}
}
.box-credit-card{
display: flex;
justify-content: space-between;
padding: 5px 0;
}
.box-credit-card img.img-center{
margin: 0px 2px;
width: 36px;
border: 1px solid #ddd;
border-radius: 3px;
}
@media(max-width: 576px){
.box-credit-card img.img-center{
width: 33px;
}
}
@media(max-width: 576px){
.box-credit-card img.img-center{
width: 30px;
margin: 0px 1px;
}
}
.btn-text {
margin-top: 5px;
margin-left: 5px;
}
.accepted-cards-container-first .box-credit-card{
margin-top: 0px;
padding-top: 0px;
}
.accepted-cards-container-first .box-credit-card img.img-center{
margin: 0px 2px;
border: 1px solid #ebebeb;
border-radius: 3px;
width: 38px;
}
@media(max-width: 320px){
.accepted-cards-container-first .box-credit-card img.img-center{
margin: 0px 1px;
width: 27px;
}
}
@media(max-width: 360px){
.ingenico-body .btn-text-size{
font-size: 10px;
}
body[data-lang=es] .card-info {
position: absolute;
}
.accepted-cards-container-first .box-credit-card img.img-center{
margin: 0px 1px;
width: 33px;
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
<style type="text/css">
.st0{fill:#EFEFEF;}
.st1{fill:#BFBFBF;}
.st2{fill:#FFCC3B;}
.st3{fill:#FFF1D2;}
.st4{fill:#3D2900;}
</style>
<g>
<g>
<g>
<path class="st0" d="M35.64,0c-7.77,0-14.09,5.47-14.09,12.18v11.71h5.38V12.18c0-3.56,3.99-6.56,8.7-6.56
c4.34,0,8.06,2.54,8.63,5.72h5.42C49.19,5.01,43.08,0,35.64,0z"/>
<path class="st1" d="M35.64,3c-6.18,0-11.21,4.12-11.21,9.18v11.71h2.51V12.18c0-3.56,3.99-6.56,8.7-6.56
c4.34,0,8.06,2.54,8.63,5.72h2.53C46.28,6.68,41.47,3,35.64,3z"/>
</g>
<path class="st2" d="M29.07,21.13H5.11c-2.64,0-4.79,2.16-4.79,4.79v8.47v0.36v3.27C0.32,44.61,5.71,50,12.3,50h9.58
c6.59,0,11.98-5.39,11.98-11.98v-3.27v-0.36v-8.47C33.86,23.28,31.71,21.13,29.07,21.13z"/>
<path class="st3" d="M29.07,21.13H5.11c-2.64,0-4.79,2.16-4.79,4.79v1.92c0-2.64,2.16-4.79,4.79-4.79h23.96
c2.64,0,4.79,2.16,4.79,4.79v-1.92C33.86,23.28,31.71,21.13,29.07,21.13z"/>
<path class="st4" d="M20.59,35.44c0-1.94-1.57-3.5-3.5-3.5s-3.5,1.57-3.5,3.5c0,1.29,0.69,2.41,1.73,3.02l-0.38,2.65h4.31
l-0.38-2.65C19.9,37.85,20.59,36.73,20.59,35.44z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.28 14.09"><title>Asset 4lock_shopping</title><g id="d8d0e7fa-67ba-40dd-8783-be29e6326e6d" data-name="Layer 2"><g id="106ce40f-ec86-4fe6-8fdc-89d613316010" data-name="Livello 3"><path d="M10.55,6.23H9.86v-2a4.22,4.22,0,1,0-8.44,0v2H.73A.73.73,0,0,0,0,7v6.4a.73.73,0,0,0,.73.73h9.82a.73.73,0,0,0,.73-.73V7a.73.73,0,0,0-.73-.73Zm-7.36-2a2.45,2.45,0,1,1,4.89,0v2H3.19Zm3.24,6.19v1.31a.8.8,0,0,1-1.59,0V10.41a1.28,1.28,0,1,1,1.59,0Zm0,0" fill="#a3b5bf"/></g></g></svg>

After

Width:  |  Height:  |  Size: 519 B

@@ -0,0 +1,833 @@
var regIntervalImgs;
var lockLogin = false;
var lockSignup = false;
var captcha2renderSignup;
var captcha2renderLogin;
var login_16_DEBUG = false; // [GR] SET DEBUG
function reg_slider(action) {
if ((action == 'go') && MM_findObj('reg_imgs'))
regIntervalImgs = setInterval(function () {
img_reg = $('#reg_imgs').attr('src');
img_reg = img_reg.split('/');
img_reg = img_reg[(img_reg.length - 1)];
if (img_reg == 'iscrizioneD.png') img_reg = 'iscrizioneE.png';
else if (img_reg == 'iscrizioneE.png') img_reg = 'iscrizioneF.png';
else img_reg = 'iscrizioneD.png';
$('#reg_imgs').attr('src', path_static_img + img_reg);
}, 3000);
else clearInterval(regIntervalImgs);
}
function show_password(selector_container) {
"use strict"
selector_container = selector_container ? selector_container + " " : "";
var selector_pwd = $(selector_container + " .pwd");
var selector_eye = $(selector_container + " .fa");
if (selector_pwd.attr('type') == 'text') {
hidePassword(selector_pwd, selector_eye);
} else {
selector_pwd.attr('type', 'text');
selector_eye
.addClass("fa-eye")
.removeClass("fa-eye-slash");
}
};
function hidePassword(selector_pwd, selector_eye) {
"use strict"
selector_pwd = selector_pwd || $(".pwd");
selector_eye = selector_eye || $(".fa");
selector_pwd.attr('type', 'password')
selector_eye
.addClass("fa-eye-slash")
.removeClass("fa-eye");
}
function show_lost_password() {
"use strict"
$("#logMeIn").modal('hide');
launchIframeModal("/rec_psw.php", 370, 550, true, getOptions(true, true, true, false, false, "6px"));
}
function show_lost_password_autopopup() {
"use strict"
launchIframeModal("/rec_psw.php?tokenexpired=1", 370, 550, true, getOptions(true, true, true, false, false, "6px"), true);
}
function facebook_js() {
$("#logMeIn .closeme.showReg").off();
$("#logMeIn .closeme.showReg").on({
click: function (e) {
hidePassword();
$('#holdon .signup-capctha2-container').hide(); // [GR] ADD: hide reCapctha v2 container
$('#holdon .login_submit_extra_area').show(); // [GR] ADD: show area with ISCRIVITI button, facebook, etc.
$('#holdon .signup-input-container').show(); // [GR] ADD: show reg form
$("#holdon #password").val("");
$("#logMeIn").modal('hide');
hideToolTipError();
//$('.modal-backdrop').remove();
setTimeout(function () {
$("#holdon").modal('show');
}, 50);
}
});
$('#login_using_fb_btn').unbind("click"); // [GR] ADD
$('#login_using_fb_btn').click(function () {
var id = "#" + $(this).attr("id");
loginWithFacebook(id, function (response) {
if (response && response.status !== "connected") errorBtnTooltip(id, "Impossibile connettersi a Facebook");
else {
showSignup();
$("#register_using_fb_btn").click();
}
});
})
};
function generatePassword(len) {
var pwd = [],
cc = String.fromCharCode,
R = Math.random,
rnd, i;
pwd.push(cc(48 + (0 | R() * 10))); // push a number
pwd.push(cc(65 + (0 | R() * 26))); // push an upper case letter
for (i = 2; i < len; i++) {
rnd = 0 | R() * 62; // generate upper OR lower OR number
pwd.push(cc(48 + rnd + (rnd > 9 ? 7 : 0) + (rnd > 35 ? 6 : 0)));
}
// shuffle letters in password
return pwd.sort(function () {
return R() - .5;
}).join('');
}
function showErrorToolTip(message, sel) {
sel = sel ? sel + " " : "";
showTooltipErrorPermanent(sel + ".error_login", sel + ".input-group .form-control", message);
$(sel + ".bidoo_green").hide();
$(sel + ".form-control").addClass("error-control");
$(sel + ".input-group").each(function () {
$(this).find(".form-control").keyup(function () {
$(this).removeClass("error-control");
$(this).parent().find(".bidoo_green").show();
});
});
}
function hideToolTipError() {
$(".form_control").removeClass("error-control");
$(".error_login").hide();
$(".bidoo_green").show();
$(".error_login").tooltip("destroy");
}
function errorBtnTooltip(selector, msg) {
showTooltipErrorPermanent(selector, "", msg);
setTimeout(function () {
$(selector).tooltip("hide");
}, 3000);
}
function loginWithFacebook(id, callback, isSignup) { // no longer needed
if (login_16_DEBUG) { console.log("loginWithFacebook("+id+","+callback+","+isSignup+")"); }
FB.login(function (response) {
if (response) {
if (response.status !== "connected") return callback(response);
var token = response.authResponse.accessToken;
if (isSignup) setCookie('fbtoken', token, 1);
loginFacebookUser(id, callback, token);
}
}, {
scope: 'public_profile, email, user_friends',
auth_type: 'rerequest'
});
}
function fixIOSCursorsIssue() { // Notice: #494
"use strict"
$("body").toggleClass("modal-input-ios-fix", isIOSDevice());
}
function setCookieSignupModalDismiss() { // ???
"use strict"
$("#holdon").on("hide.bs.modal", setCookieMinutes.bind(null, "nfv", 1, 120));
}
function loginFacebookUser(id, callback, accessToken) { // no longer needed
"use strict"
if (login_16_DEBUG) { console.log("Enter in loginFacebookUser("+id+","+callback+","+accessToken+")"); }
var fbtoken = getCookie("fbtoken");
var isLogged = $("#NickLoggato").length;
if (login_16_DEBUG) { console.log("fbtoken = "+fbtoken+" isLogged = "+isLogged); }
if (isLogged && "undefined" === typeof fbtoken) {
if (login_16_DEBUG) { console.log("isLogged && 'undefined' === typeof fbtoken"); }
}
if (!isLogged && !accessToken) {
if (login_16_DEBUG) { console.log("!isLogged && !accessToken"); }
}
if ((isLogged && "undefined" === typeof fbtoken) || (!isLogged && !accessToken)) return; // if ((isLogged && "undefined" === typeof fbtoken) || (!isLogged && !accessToken)) return;
if (login_16_DEBUG) { console.log("call ajax login_facebook.php"); }
$.ajax({
type: "POST",
url: 'login_facebook.php',
data: {
authTok: ("undefined" != typeof fbtoken ? fbtoken : accessToken)
},
success: function (data) {
if (login_16_DEBUG) { console.log("ajax login_facebook.php success (isLogged = "+isLogged+")"); }
if (isLogged) return delCookie("fbtoken");
if (login_16_DEBUG) { console.log("ajax login_facebook.php success: check data response (data = "+data+")"); }
if (data.isvalid === true) {
if ($( "#ref_log" ).length) {
var redirect = getUrlParam("redirect");
if (redirect.length) {
window.location = "https://" + data.userlang + ".bidoo.com/" + redirect; // window.parent.location.href = redirect; (!!! verificare natura parametro redirect)
} else {
//window.location = "https://" + data.userlang + ".bidoo.com" ; // window.parent.location.reload();
if (login_16_DEBUG) { console.log("Refresh page: href = " + window.location.href.split("#")[0]); }
window.location = window.location.href.split("#")[0];
}
} else {
//window.location = "https://" + data.userlang + ".bidoo.com"; // document.location.href = message;
if (login_16_DEBUG) { console.log("Refresh page: href = " + window.location.href.split("#")[0]); }
window.location = window.location.href.split("#")[0];
}
} else if (data.isvalid === false) {
errorBtnTooltip(id, data.msg);
} else {
callback();
}
}
});
}
function getIndexError(level) {
"use strict"
switch (level) {
case 0:
return 1;
case 1:
case 4:
case 6:
return 0;
case 2:
case 8:
return 2;
case 3:
return 3;
}
return -1;
}
function showSignup() { // close login modal and show signup modal
$("#logMeIn").modal("hide");
$("#register_btn").click();
}
function showLogin() {
if (window.isNativeAppVar) {
console.log('Login call override');
window.location.href = "#native_login";
} else {
$("#menuModalTop, #holdon").modal('hide');
$("#logMeIn")
.on({
'show.bs.modal': saveScrollPosition,
'shown.bs.modal': fixIOSCursorsIssue,
'hide.bs.modal': setSavedScrollPosition
})
.modal();
$('#logMeIn .signup-input-container').show(); // show login form
$('#logMeIn .signup-capctha2-container').hide(); // hide reCapctha v2 container
$('#logMeIn .login_submit_extra_area').show(); // show area with submit button, facebook, etc.
facebook_js();
}
}
function login_post(post_username, post_password, post_token, captcha_type) { // post login data
if (login_16_DEBUG) { console.log("login_post("+post_username+", "+post_password+", "+post_token+", "+captcha_type); }
// -start: post login:
$.ajax({
url: "/userlogin.php"
, type: "POST"
, dataType: 'json'
//,data: postData
, data: {
email: post_username
, pswd: post_password
, recaptcha_response: post_token
, ctype: captcha_type
}
}).done(function (data, textStatus, jqXHR) {
AuctionsBidManage.remove();
localStorage.removeItem('smclient');
localStorage.removeItem('smuuid');
localStorage.removeItem('smvr');
if (login_16_DEBUG) { console.log("data response from userlogin.php: " + JSON.stringify(data)); }
if (data.forceRecaptcha === 3) {
recaptcha_login_config = 1; // set reCaptcha active (v3) on submit
if (data.errorcode === 0) {
if (typeof grecaptcha == 'undefined') {
logRecaptchaError('login', {'username': post_username });
$('#logMeIn .signup-input-container').show(); // show login form
$('#logMeIn .signup-capctha2-container').hide(); // hide reCapctha v2 container
$('#logMeIn .login_submit_extra_area').show(); // [GR] show area with submit button, facebook, etc.
errorBtnTooltip("#logMeIn .btlogin", "Errore: Prova a ricaricare la pagina o a cambiare browser.<br>Se il problema dovesse persistere contatta lAssistenza Clienti.");
$("#logMeIn .login-top-back a").hide();
lockLogin = false;
return false;
} else {
// auto submit login with reCaptcha v3 enabled:
grecaptcha.enterprise.ready(function () { // Google reCaptcha v3
grecaptcha.enterprise.execute('6LcjhUMpAAAAADxcuxrNs1Ou0iKbz2h3dn58Egnw', {action: 'login'}).then(function (token) {
if (login_16_DEBUG) { console.log("reCaptcha v3 (READY)"); }
login_post($("#logMeIn form input.email").val(), $("#logMeIn form input.pwd").val(), token, 3);
});
});
}
return false;
}
}
if (data.isvalid === true) {
let locationBase = window.location.href.replace("login=true", "").replace("?&", "?");
let nuovaLocationArray = locationBase.split("?");
if(nuovaLocationArray[1] === ""){
nuovaLocation = nuovaLocationArray[0].replace("?", "");
} else {
nuovaLocation = locationBase;
}
if ($( "#ref_log" ).length) {
var redirect = getUrlParam("redirect");
if (redirect.length) {
window.location = "https://" + data.userlang + ".bidoo.com/" + redirect; // window.parent.location.href = redirect; (!!! verificare natura parametro redirect)
} else {
//window.location = "https://" + data.userlang + ".bidoo.com" ; // window.parent.location.reload();
window.location.href = nuovaLocation.split("#")[0];
//window.location = window.location.href.split("#")[0];
}
} else {
//window.location = "https://" + data.userlang + ".bidoo.com"; // document.location.href = message;
//window.location = window.location.href.split("#")[0];
window.location.href = nuovaLocation.split("#")[0];
}
} else if (data.errorcode == 1 || data.forceRecaptcha === 2) { // reCaptchaV3 not passed or force reCaptchaV2
if (data.forceRecaptcha === 2) { // if reCaptchaV2 forced
recaptcha_login_config = 0; // disable reCaptchaV3 on submit
}
var reCaptcha_verifyCallback = function(response) { // callback on reCaptchaV2 response
if (login_16_DEBUG) {
console.log("reCaptcha_verifyCallback response: " + response);
}
// current_captcha_type = 2
lockLogin = false;
login_post($("#logMeIn form input.email").val(), $("#logMeIn form input.pwd").val(), response, 2);
};
$('#logMeIn .signup-input-container').hide(); // [GR] ADD: hide login form
$('#logMeIn .login_submit_extra_area').hide(); // [GR] ADD: hide area with submit button, facebook, etc.
if (captcha2renderLogin == 0) {
grecaptcha.enterprise.reset(captcha2renderLogin);
} else {
captcha2renderLogin = grecaptcha.enterprise.render('capctha2', {
'sitekey' : '6LdNh0MpAAAAAD91aMd6WjYKsnM-HyIRDZrPda8I'
,'theme' : 'light'
,'callback' : reCaptcha_verifyCallback
//,'expired-callback' : reCaptcha_expiredCallback
//,'error-callback' : reCaptcha_errorCallback
});
}
$('#logMeIn .signup-capctha2-container').show(); // [GR] ADD: show reCapctha v2 container
$("#logMeIn .login-top-back a").show();
$("#logMeIn .login-top-back a").unbind('click');
$("#logMeIn .login-top-back a").click(function (event) { // Back button: hide captcha and show login form
event.preventDefault();
$('#logMeIn .signup-input-container').show(); // [GR] ADD: show login form
$('#logMeIn .signup-capctha2-container').hide(); // [GR] ADD: hide reCapctha v2 container
$('#logMeIn .login_submit_extra_area').show(); // [GR] ADD: show area with submit button, facebook, etc.
//$(this).unbind('click');
$("#logMeIn .login-top-back a").hide();
});
} else {
/*if (data.errorcode == 3 && data.forceRecaptcha == 0) { // login KO after v2 OK
recaptcha_login_config = 0; // disable reCaptchaV3 on submit
}*/
$('#logMeIn .signup-input-container').show(); // show login form
$('#logMeIn .signup-capctha2-container').hide(); // hide reCapctha v2 container
$('#logMeIn .login_submit_extra_area').show(); // [GR] show area with submit button, facebook, etc.
$("#logMeIn .signup-input-container")
.toggleClass("signup-input-error", true)
.find(".signup-error-text")
.html(data.msg)
.parent()
.parent()
.find(".show-hide-password")
.hide();
$("#logMeIn .login-top-back a").hide();
}
lockLogin = false;
}).fail(function (jqXHR, textStatus, errorThrown) {
$('#logMeIn .signup-input-container').show(); // show login form
$('#logMeIn .signup-capctha2-container').hide(); // hide reCapctha v2 container
$('#logMeIn .login_submit_extra_area').show(); // [GR] show area with submit button, facebook, etc.
$("#logMeIn .signup-input-container")
.toggleClass("signup-input-error", true)
.find(".signup-error-text")
.html("Qualcosa è andato storto.")
.parent()
.parent()
.find(".show-hide-password")
.hide();
$("#logMeIn .login-top-back a").hide();
lockLogin = false;
}); // ajax
}
function getUrlVars() { // [GR]
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
function signup_post(post_email, post_username, post_password, post_policy, post_token, captcha_type, pbc, ckt) { // post login data
if (login_16_DEBUG) { console.log("signup_post("+post_username+", "+post_password+", "+post_policy+", "+post_token+", "+captcha_type); }
// isJustSignedUp = true; // ???
var idBtn = "#btnRegister";
$.ajax({
url: "/userregister.php"
, type: "POST"
, dataType: 'json'
, data: {
email: post_email
, username: post_username
, pswd: post_password
, policy: post_policy
, recaptcha_response: post_token
, ctype: captcha_type
, pbc: pbc
, ckt: ckt
}
}).done(function (data, textStatus, jqXHR) {
if (login_16_DEBUG) { console.log("data response from userlogin.php: " + JSON.stringify(data)); }
if (data.isvalid === true) {
BidooCnf.instances.signup.validation.showOkCheckMark(0,true); // ???
var getvars = getUrlVars();
// check utm parameters for promo code:
if ($(".signup-pcode-container input[name='pcode_utm_source']").val()) {
getvars["utm_source"] = $(".signup-pcode-container input[name='pcode_utm_source']").val();
};
if ($(".signup-pcode-container input[name='pcode_utm_medium']").val()) {
getvars["utm_medium"] = $(".signup-pcode-container input[name='pcode_utm_medium']").val();
};
if ($(".signup-pcode-container input[name='pcode_utm_campaign']").val()) {
getvars["utm_campaign"] = $(".signup-pcode-container input[name='pcode_utm_campaign']").val();
};
if ($(".signup-pcode-container input[name='pcode_utm_term']").val()) {
getvars["utm_term"] = $(".signup-pcode-container input[name='pcode_utm_term']").val();
};
if (Object.keys(getvars).length > 0) {
var build_query = $.param(getvars);
window.location = window.location.origin + "/home_redirect.php?onboard=true&nu=true&"+build_query; // standard home: index.php | alternative home: home_alt.php | manage by config: home_redirect.php
} else {
window.location = window.location.origin + "/home_redirect.php?onboard=true&nu=true"; // standard home: index.php | alternative home: home_alt.php | manage by config: home_redirect.php
}
} else if (data.errorcode == 1) { // reCaptchaV3 not passed
var reCaptcha_verifyCallback = function(response) { // callback on reCaptchaV2 response
if (login_16_DEBUG) { console.log("reCaptcha_verifyCallback response: " + response); }
lockSignup = false;
signup_post(post_email, post_username, post_password, post_policy, response, 2, pbc, ckt);
};
$('#logMeIn .signup-input-container').hide(); // hide login form
$('#logMeIn .login_submit_extra_area').hide(); // hide area with submit button, facebook, etc.
if (captcha2renderSignup == 0) {
grecaptcha.enterprise.reset(captcha2renderLogin);
} else {
captcha2renderSignup = grecaptcha.enterprise.render('reg_capctha2', {
'sitekey' : '6LdNh0MpAAAAAD91aMd6WjYKsnM-HyIRDZrPda8I'
,'theme' : 'light'
,'callback' : reCaptcha_verifyCallback
//,'expired-callback' : reCaptcha_expiredCallback
//,'error-callback' : reCaptcha_errorCallback
});
}
$('#holdon .signup-capctha2-container').show(); // show reCapctha v2 container
$('#holdon .login_submit_extra_area').hide(); // hide area with ISCRIVITI button, facebook, etc.
$('#holdon .signup-input-container').hide(); // hide reg form
} else {
$('#holdon .signup-capctha2-container').hide(); // hide reCapctha v2 container
$('#holdon .login_submit_extra_area').show(); // show area with ISCRIVITI button, facebook, etc.
if ($("#pcode-container input").val() != '' && $("#holdon .pcode-ok").is(":visible")) {
$('#holdon .signup-input-container:not(.signup-pcode-container)').show(); // show reg form
} else {
$('#holdon .signup-input-container').show(); // show reg form
}
if (data.context == 'email') {
$("#holdon input.email-reg").parent(".signup-input-container").toggleClass("signup-input-ok",false).toggleClass("signup-input-error", true).find(".signup-error-text").html(data.msg || '');
} else if (data.context == 'user') {
$("#holdon input.user-reg").parent(".signup-input-container").toggleClass("signup-input-ok",false).toggleClass("signup-input-error", true).find(".signup-error-text").html(data.msg || '');
} else if (data.context == 'password') {
$("#holdon input.pwd-reg").parent(".signup-input-container").toggleClass("signup-input-ok",false).toggleClass("signup-input-error", true).find(".signup-error-text").html(data.msg || '');
} else if (data.context == 'generic') {
errorBtnTooltip(idBtn, data.msg);
}
}
lockSignup = false;
}).fail(function (jqXHR, textStatus, errorThrown) {
$('#holdon .signup-capctha2-container').hide(); // hide reCapctha v2 container
$('#holdon .login_submit_extra_area').show(); // show area with ISCRIVITI button, facebook, etc.
$('#holdon .signup-input-container').show(); // show reg form
errorBtnTooltip(idBtn, "Qualcosa è andato storto."); // !!!
lockSignup = false;
}); // ajax
}
function validateEmail(email) {
const re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}
function logRecaptchaError(event_name, parameters)
{
const userAgent = navigator.userAgent;
const url = window.location.href;
const data = {
user_agent: userAgent,
url: url,
parameters: parameters,
event_name: event_name
}
$.ajax({
url: 'log_recaptcha_fail_ajax.php',
method: 'POST',
data: data
});
}
// ON LOAD: ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$(document).ready(function () {
"use strict"
let pbc = $.trim($('#pbc').val()); // Variabile per le landing promotion
let ckt= $.trim($('#ckt').val()); // Variabile della firma per le landing promotion
//loginFacebookUser(); // no longer needed
fixIOSCursorsIssue();
$("#logMeIn .btlogin").click(function(e) {
e.preventDefault();
//if (evt) evt.preventDefault();
if (lockLogin) return;
if (login_16_DEBUG) { console.log("Login click"); }
// validate form:
if ($("#logMeIn form input.email").val() == '' || $("#logMeIn form input.pwd").val() == '') {
$("#logMeIn .signup-input-container")
.toggleClass("signup-input-error", true)
.find(".signup-error-text")
.html("Inserisci correttamente Username o Password");
return;
}
lockLogin = true;
if (recaptcha_login_config == 1) { // reCaptcha enabled
if (typeof grecaptcha == 'undefined') {
logRecaptchaError('login', {'username': $("#logMeIn form input.email").val() });
$('#logMeIn .signup-input-container').show(); // show login form
$('#logMeIn .signup-capctha2-container').hide(); // hide reCapctha v2 container
$('#logMeIn .login_submit_extra_area').show(); // [GR] show area with submit button, facebook, etc.
errorBtnTooltip("#logMeIn .btlogin", "Errore: Prova a ricaricare la pagina o a cambiare browser.<br>Se il problema dovesse persistere contatta lAssistenza Clienti.");
$("#logMeIn .login-top-back a").hide();
lockLogin = false;
return false;
} else {
grecaptcha.enterprise.ready(function () { // Google reCaptcha v3
grecaptcha.enterprise.execute('6LcjhUMpAAAAADxcuxrNs1Ou0iKbz2h3dn58Egnw', {action: 'login'}).then(function (token) {
if (login_16_DEBUG) { console.log("reCaptcha v3 (READY)"); }
login_post($("#logMeIn form input.email").val(), $("#logMeIn form input.pwd").val(), token, 3);
});
});
}
} else { // reCaptcha disabled or engage counter
login_post($("#logMeIn form input.email").val(), $("#logMeIn form input.pwd").val(), '', 10); // captcha_type = 10 -> reCapctha disabled
}
});
$('#login_btn, #login_btn1, #login_href').click(function (e) { // show modal login by clicking on buttons
e.preventDefault();
showLogin();
});
$('#register_btn, #register_btn1').click(function () { // hide left menu (mobile) and show reg modal by clicking on signup buttons
if (window.isNativeAppVar) {
console.log('Register call override');
window.location.href = "#native_register";
} else {
$('#holdon .signup-capctha2-container').hide(); // hide reCapctha v2 container
$('#holdon .login_submit_extra_area').show(); // show area with ISCRIVITI button, facebook, etc.
$('#holdon .signup-input-container').show(); // show reg form
// reset promo code data:
$("#holdon .signup-info-pcode").show();
$("#holdon .signup-pcode-container").show();
$("#holdon .pcode-ok").hide();
$("#holdon input.pcode-reg").val('');
$("#holdon .pcode-nfo-container .pcode-img-content").attr("src","");
$("#holdon .pcode-nfo-container .pcode-html-content .pcode-html-anim").html('');
$("#holdon h4.signup-title").css("visibility", "visible");
$("#holdon .signup-carousel").css("visibility", "visible");
$("#holdon .pcode-nfo-block").hide();
$("#pcode-container button").hide();
$("#cta_pcode .glyphicon").removeClass('glyphicon-menu-down').addClass("glyphicon-menu-right");
$('#pcode-container').collapse({toggle: false});
$("#pcode-container").collapse('hide');
$(".signup-pcode-container input[name='pcode_utm_source']").val("");
$(".signup-pcode-container input[name='pcode_utm_medium']").val("");
$(".signup-pcode-container input[name='pcode_utm_campaign']").val("");
$(".signup-pcode-container input[name='pcode_utm_term']").val("");
$("#menuModalTop").modal('hide');
$("#holdon")
.on({
'show.bs.modal': saveScrollPosition,
'hide.bs.modal': setSavedScrollPosition
})
.modal('show');
}
})
$('#register_using_fb_btn').click(function () { // signup by Facebook by clicking on button
var id = "#" + $(this).attr("id");
loginWithFacebook(id, function (response) {
if (response && response.status !== "connected") {
errorBtnTooltip(id, "Errore permessi Facebook. Effettua il login normalmente con username e password");
} else {
FB.api('/me', {fields: 'email'}, function (response) {
if (response.email) {
$('input[name="em"]').val(response.email);
}
$('input[name="pw"]').val(generatePassword(8));
$('.btlogin.btn-join').attr('src', path_country_img + 'images/login-iscriviti-con-fb2.png');
$('.signup-or').hide();
$('input[name="pw"]').parent().hide();
$('input[name="un"]').focus();
$('.text-danger small').html('');
$('#btnRegister,#span_terms').html('COMPLETA LA REGISTRAZIONE');
$(id).addClass("signup-error-hidden");
});
}
}, true);
});
$("#show_password_login").on('click', show_password); // show/hide password field content by clicking icon eye
setCookieSignupModalDismiss(); // ???
$("#btnRegister").click(function(e) { // signup by clicking on signup button
e.preventDefault();
e.stopPropagation();
if (lockSignup) return;
if (login_16_DEBUG) { console.log("Signup click"); }
if ($('#holdon input.pcode-reg').val()) {
pbc = $('#holdon input.pcode-reg').val(); // Codice promo inserito dall'utente
}
// validate form:
var email_value = $('#holdon input.email-reg').val();
$('#holdon input.email-reg').val(email_value.trim());
var user_value = $('#holdon input.user-reg').val();
$('#holdon input.user-reg').val(user_value.trim());
var pwd_value = $('#holdon input.pwd-reg').val();
$('#holdon input.pwd-reg').val(pwd_value.trim());
if ($('#holdon input.email-reg').val() == '' || !validateEmail($('#holdon input.email-reg').val())) {
$("#holdon input.email-reg").parent(".signup-input-container").toggleClass("signup-input-ok",false).toggleClass("signup-input-error", true).find(".signup-error-text").html("Formato email non valido o email già registrata");
return false;
}
if ($('#holdon input.user-reg').val() == '') {
$("#holdon input.user-reg").parent(".signup-input-container").toggleClass("signup-input-ok",false).toggleClass("signup-input-error", true).find(".signup-error-text").html("Formato username non valido");
return false;
}
if ($('#holdon input.pwd-reg').val() == '' || $('#holdon input.pwd-reg').val().length < 5) {
$("#holdon input.pwd-reg").parent(".signup-input-container").toggleClass("signup-input-o",false).toggleClass("signup-input-error", true).find(".signup-error-text").html("La password deve essere almeno di #MIN# caratteri".replace("#MIN#", "5"));
return false;
}
if ($('.policy-checkbox input:checked').val() != 'accepted') { return showManualTooltip("#holdon .policy-checkbox input"); }
if ($("#pcode-container input").val() != '' && $("#holdon .pcode-ok").is(":hidden")) {
if ($("#pcode-container .signup-error-warn").css("visibility") == "visible") {
return false;
} else {
$("#holdon input.pcode-reg").parents(".signup-input-container").toggleClass("signup-input-ok",false).toggleClass("signup-input-error", true).find(".signup-error-text").html("Clicca applica per utilizzare il codice regalo");
return false;
}
}
lockSignup = true;
if (recaptcha_signup_config == 1) { // reCaptcha enabled
if (typeof grecaptcha == 'undefined') {
logRecaptchaError('registrazione', {'email': $('.email-reg').val(), 'username': $('.user-reg').val(), 'policy-checkbox': $('.policy-checkbox input:checked').val()});
$('#holdon .signup-capctha2-container').hide(); // hide reCapctha v2 container
$('#holdon .login_submit_extra_area').show(); // show area with ISCRIVITI button, facebook, etc.
$('#holdon .signup-input-container').show(); // show reg form
errorBtnTooltip("#btnRegister", "Errore: Prova a ricaricare la pagina o a cambiare browser.<br>Se il problema dovesse persistere contatta lAssistenza Clienti.");
lockSignup = false;
return false;
} else {
grecaptcha.enterprise.ready(function () { // Google reCaptcha v3
grecaptcha.enterprise.execute('6LcjhUMpAAAAADxcuxrNs1Ou0iKbz2h3dn58Egnw', {action: 'register'}).then(function (token) {
if (login_16_DEBUG) {
console.log("reCaptcha v3 (READY)");
}
let pbc = $.trim($('#pbc').val()); // Variabile per le landing promotion
if ($('#holdon input.pcode-reg').val()) {
pbc = $('#holdon input.pcode-reg').val(); // Codice promo inserito dall'utente
}
signup_post($('.email-reg').val(), $('.user-reg').val(), $('.pwd-reg').val(), $('.policy-checkbox input:checked').val(), token, 3, pbc, ckt);
});
});
}
} else { // reCaptcha disabled
signup_post($('.email-reg').val(), $('.user-reg').val(), $('.pwd-reg').val(), $('.policy-checkbox input:checked').val(), '', 10, pbc, ckt); // captcha_type = 10 -> reCapctha disabled
}
});
$('#logMeIn').on('keypress', function (e) {
if (e.which == 13) {
$('#logMeIn .signup-btn').click();
}
});
}); //document.ready
@@ -0,0 +1,235 @@
function CarouselSignUp() {
"use strict"
var self = this;
self.discounts = [75,84,92];
$("#holdon .signup-carousel-discount-number")
.text(self.discounts[0]);
}
CarouselSignUp.prototype.startCarousel = function() {
"use strict"
var self = this;
var index = 0;
var nImg = ( $('.signup-carousel img').length > 0) ? $('.signup-carousel img').length - 1 : 4;
self.shouldLoopCarousel = true;
setAnimationFrameTimeout(3000,function() {
$("#holdon .signup-carousel")
.find("img")
.eq(index)
.animate({
opacity: "0"
},
500,
function() {
index = index + 1 > nImg ? 0 : index + 1;
$(this)
.hide()
.parent()
.find("img")
.eq(index)
.animate({
opacity: "1"
}, 500)
.show()
.parent()
.find(".signup-carousel-discount-number")
.text(self.discounts[index]);
});
return self.shouldLoopCarousel;
});
}
CarouselSignUp.prototype.stopCarousel = function(){
"use strict"
var self = this;
self.shouldLoopCarousel = false;
}
function CheckSignupInputs() {
"use strict"
var self = this;
self.isPolicy = $(".policy-checkbox").hasClass("hidden");;
$("#holdon input").each(function(index) {
$(this).focusout({
index: index,
element: $(this)
}, self.onFocusOut)
.focusin({
parent: $(this).parent()
},self.onFocusIn);
});
self.checkPolicySelection();
}
CheckSignupInputs.prototype.onFocusOut = function(e) {
"use strict"
var self = BidooCnf.instances.signup.validation;
var element = $(e.data.element);
var elem_value = $(element).val();
$(element).val(elem_value.trim());
if (!element.val().length || (e.relatedTarget && $(e.relatedTarget).hasClass("show-hide-password"))) return;
var index = e.data.index;
var indexes = getIndexesCheckFields();
//index = 0 == index ? indexes.email : (1 == index ? indexes.username : indexes.password);
index = 0 == index ? indexes.email : (1 == index ? indexes.username : (2 == index ? indexes.password : indexes.pcode));
checkFields(element, index, function() {
self.showOkCheckMark(e.data.index);
}, self.errorValidateFieldSignup, $(".username").val());
}
CheckSignupInputs.prototype.onFocusIn = function(e){
"use strict"
var self = BidooCnf.instances.signup.validation;
self.setVisibilityErrorMessages(e.data.parent);
}
CheckSignupInputs.prototype.showOkCheckMark = function(index,checkAll) {
"use strict"
var element = $("#holdon .signup-input-container")
if(!checkAll) element = element.eq(index);
element
.toggleClass("signup-input-ok", true)
.toggleClass("signup-input-error", false);
}
CheckSignupInputs.prototype.errorValidateFieldSignup = function(data){
"use strict"
var self = BidooCnf.instances.signup.validation;
self.setVisibilityErrorMessages(
$("#holdon .signup-input-container").eq(getIndexError(data.level)),
data.error
);
}
CheckSignupInputs.prototype.setVisibilityErrorMessages = function(field, text) {
"use strict"
var shouldShowError = ("undefined" !== typeof text && text.length > 0);
field
.toggleClass("signup-input-ok",false)
.toggleClass("signup-input-error", shouldShowError)
.find(".signup-error-text")
.html(text || '');
}
CheckSignupInputs.prototype.checkPolicySelection = function(){
"use strict"
var self = this;
var selector = "#holdon";
$(selector)
.find(".checkbox-inline input")
.change(function(){
self.isPolicy = $(this).is(":checked");
var element = $(selector).find("[data-toggle]");
var title = element.attr("data-title");
var options = {
html: true,
template: getTemplateTooltip("regular"),
title: title
};
element
.removeAttr("title")
.tooltip(self.isPolicy ? 'destroy' : options);
});
}
CheckSignupInputs.prototype.isPolicyAccepted = function(){
"use strict"
var self = this;
return self.isPolicy;
}
function CheckLoginInputs(selector){
"use strict"
var self = this;
$(selector)
.focusin(self.onLoginFieldFocusIn);
}
CheckLoginInputs.prototype.onLoginFieldFocusIn = function() {
"use strict"
var field = $(this);
field
.parent()
.toggleClass("signup-input-error", false)
.find(".show-hide-password")
.show();
}
CheckSignupInputs.prototype.checkPcode = function(pcode) {
var self = this;
$.ajax({
url: "/userregistercheckpcode.php"
, type: "POST"
, dataType: 'json'
, data: {
pcode: pcode
}
}).done(function (data, textStatus, jqXHR) {
if (data.isvalid === true) {
$("#pcode-container button").hide();
if (typeof data.imgs != 'undefined' && typeof data.html != 'undefined') {
$("#holdon .pcode-nfo-container .pcode-img-content").attr("src", data.imgs[0]);
$("#holdon .pcode-nfo-container .pcode-html-content .pcode-html-anim").html(data.html);
let first_p_html_content_width = $("#holdon .logo-head").width() - 74 - 18 - 30; // 74: avatar width, 18: margin left, 30: extra padding
$("#holdon .pcode-nfo-container .pcode-html-content .pcode-html-anim p:first-child").css("max-width", first_p_html_content_width+"px");
$("#holdon h4.signup-title").css("visibility", "hidden");
$("#holdon .signup-carousel").css("visibility", "hidden");
$("#holdon .pcode-nfo-block").show();
}
$("#holdon .signup-info-pcode").hide();
$("#holdon .signup-pcode-container").hide();
$("#holdon .pcode-ok").show();
$(".signup-pcode-container input[name='pcode_utm_source']").val(data.utm_source);
$(".signup-pcode-container input[name='pcode_utm_medium']").val(data.utm_medium);
$(".signup-pcode-container input[name='pcode_utm_campaign']").val(data.utm_campaign);
$(".signup-pcode-container input[name='pcode_utm_term']").val(data.utm_term);
} else {
self.setVisibilityErrorMessages(
$("#holdon .signup-input-container").eq(getIndexError(3)), data.msg
)
}
}); // ajax
}
$(function() {
"use strict"
BidooCnf.modules.signup.validation = CarouselSignUp;
BidooCnf.instances.signup.carousel = new CarouselSignUp();
BidooCnf.modules.signup.validation = CheckSignupInputs;
BidooCnf.instances.signup.validation = new CheckSignupInputs();
var carousel = BidooCnf.instances.signup.carousel;
$("#holdon")
.on("shown.bs.modal",carousel.startCarousel.bind(carousel))
.on("hide.bs.modal",carousel.stopCarousel.bind(carousel));
new CheckLoginInputs("#logMeIn input");
});
$(document).ready(function(){
$('#pcode-container').on('hide.bs.collapse', function(e) {
$("#pcode-container input").val("");
$("#pcode-container button").hide();
$("#cta_pcode .glyphicon").removeClass('glyphicon-menu-down').addClass("glyphicon-menu-right");
});
$('#pcode-container').on('show.bs.collapse', function(e) {
$("#pcode-container input").val("");
$("#pcode-container button").hide();
$("#cta_pcode .glyphicon").removeClass('glyphicon-menu-right').addClass("glyphicon-menu-down");
$(".signup-pcode-container").removeClass('signup-input-error');
});
$("#pcode-container input").keyup( function() {
if ($("#pcode-container input").val() != '') {
$("#pcode-container button").show();
$("#pcode-container").parent(".signup-input-container").toggleClass("signup-input-error", false)
} else {
$("#pcode-container button").hide();
$("#pcode-container").parent(".signup-input-container").toggleClass("signup-input-error", false)
}
});
$("#pcode-container button").click(function () {
CheckSignupInputs.prototype.checkPcode($("#pcode-container input").val())
});
}); //document.ready
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.35 32.36"><defs><style>.cls-1{fill:#3d3a3a;}.cls-2{fill:#bababa;}</style></defs><title>Asset 12logout</title><g id="Layer_2" data-name="Layer 2"><g id="Livello_1" data-name="Livello 1"><path class="cls-1" d="M32.25,14.31a1.26,1.26,0,0,0-.29-.43l-4-4.05a1.36,1.36,0,0,0-1.91,0,1.35,1.35,0,0,0,0,1.91l1.74,1.74H20.22a1.35,1.35,0,1,0,0,2.7h7.53L26,17.92a1.35,1.35,0,0,0,.95,2.3,1.37,1.37,0,0,0,1-.39l4-4a1.21,1.21,0,0,0,.29-.44A1.32,1.32,0,0,0,32.25,14.31Z"/><path class="cls-2" d="M22.92,18.87a1.35,1.35,0,0,0-1.35,1.35V27H16.18V5.39a1.35,1.35,0,0,0-1-1.29L10.53,2.7h11V9.44a1.35,1.35,0,1,0,2.7,0V1.35A1.35,1.35,0,0,0,22.92,0H1.35a.7.7,0,0,0-.14,0A.57.57,0,0,0,1,.06,1.13,1.13,0,0,0,.64.23l-.1,0,0,0A1.32,1.32,0,0,0,.16.72S.14.8.12.84A1.63,1.63,0,0,0,0,1.15s0,.08,0,.12,0,.05,0,.08v27a1.34,1.34,0,0,0,1.08,1.32l13.49,2.7a1.09,1.09,0,0,0,.26,0A1.37,1.37,0,0,0,16.18,31V29.66h6.74a1.35,1.35,0,0,0,1.35-1.35V20.22A1.36,1.36,0,0,0,22.92,18.87Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1010 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.9 KiB

@@ -0,0 +1,22 @@
<svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8.18504 5.79611V4.20547C8.18504 3.38676 7.83493 2.60713 7.22302 2.06322V2.06322C7.00235 1.86707 6.75269 1.70619 6.48289 1.58628L6.42109 1.55881C5.61358 1.19993 4.69908 1.16488 3.86647 1.46091V1.46091C3.30599 1.66019 2.8212 2.02857 2.47905 2.51518L2.46372 2.53698C2.11365 3.03486 1.92578 3.62866 1.92578 4.23729V5.79611" stroke="#D8D8D8" stroke-width="0.722222"/>
<path d="M8.18504 5.79611V4.20547C8.18504 3.38676 7.83493 2.60713 7.22302 2.06322V2.06322C7.00235 1.86707 6.75269 1.70619 6.48289 1.58628L6.42109 1.55881C5.61358 1.19993 4.69908 1.16488 3.86647 1.46091V1.46091C3.30599 1.66019 2.8212 2.02857 2.47905 2.51518L2.46372 2.53698C2.11365 3.03486 1.92578 3.62866 1.92578 4.23729V5.79611" stroke="#D8D8D8" stroke-width="0.722222"/>
<path d="M7.70352 5.79698V4.28395C7.70352 3.5794 7.41527 2.90553 6.90574 2.41894L6.88512 2.39925C6.70137 2.22376 6.49091 2.07856 6.26161 1.96908L6.22955 1.95377C5.5381 1.6236 4.7415 1.59149 4.02572 1.86491V1.86491C3.56722 2.04006 3.17569 2.35544 2.90691 2.76612L2.84492 2.86084C2.55934 3.29721 2.40723 3.80741 2.40723 4.32893V5.79698" stroke="#D8D8D8" stroke-width="0.722186"/>
<path d="M7.70352 5.79698V4.28395C7.70352 3.5794 7.41527 2.90553 6.90574 2.41894L6.88512 2.39925C6.70137 2.22376 6.49091 2.07856 6.26161 1.96908L6.22955 1.95377C5.5381 1.6236 4.7415 1.59149 4.02572 1.86491V1.86491C3.56722 2.04006 3.17569 2.35544 2.90691 2.76612L2.84492 2.86084C2.55934 3.29721 2.40723 3.80741 2.40723 4.32893V5.79698" stroke="#B5B5B5" stroke-width="0.722186"/>
<g filter="url(#filter0_i_851_4177)">
<path d="M0.771484 6.75911C0.771484 6.22728 1.20262 5.79614 1.73445 5.79614H8.47519C9.00702 5.79614 9.43815 6.22728 9.43815 6.75911V9.64799C9.43815 11.7753 7.71362 13.4998 5.5863 13.4998H4.62333C2.49602 13.4998 0.771484 11.7753 0.771484 9.64799V6.75911Z" fill="#3F3F3F"/>
</g>
<circle cx="4.98419" cy="9.52722" r="0.842593" fill="white"/>
<path d="M4.62355 9.64758H5.34578L5.58652 10.8513H4.38281L4.62355 9.64758Z" fill="white"/>
<defs>
<filter id="filter0_i_851_4177" x="0.771484" y="5.79614" width="8.66699" height="7.70367" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="0.481481"/>
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.356863 0 0 0 0 0.356863 0 0 0 0 0.356863 0 0 0 1 0"/>
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_851_4177"/>
</filter>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16.07 12.63"><title>Asset 2mail_shopping</title><g id="61954354-ec73-4d7b-a923-05ca1a9f1e06" data-name="Layer 2"><g id="0e5a98c5-32eb-4454-90f2-eddd893f7962" data-name="Livello 3"><path d="M14.63,12.63a1.37,1.37,0,0,0,.94-.35L11,7.72l-.32.23-.83.59A5.17,5.17,0,0,1,9,9a2.59,2.59,0,0,1-1,.22H8A2.59,2.59,0,0,1,7,9a5.1,5.1,0,0,1-.85-.43l-.83-.59L5,7.72.49,12.27a1.37,1.37,0,0,0,.94.35Zm0,0" fill="#a3b5bf"/><path d="M.91,4.85A4.77,4.77,0,0,1,0,4.07V11L4,7,.91,4.85Zm0,0" fill="#a3b5bf"/><path d="M15.17,4.85Q13.34,6.09,12.06,7l4,4V4.07a5,5,0,0,1-.9.78Zm0,0" fill="#a3b5bf"/><path d="M14.63,0H1.44A1.28,1.28,0,0,0,.37.47,1.81,1.81,0,0,0,0,1.63,2.1,2.1,0,0,0,.49,2.86a4.46,4.46,0,0,0,1,1L3.38,5.17l1.44,1,.91.63.13.1.25.18.48.34.47.29A2.7,2.7,0,0,0,7.58,8,1.42,1.42,0,0,0,8,8H8A1.42,1.42,0,0,0,8.49,8,2.7,2.7,0,0,0,9,7.71l.47-.29L10,7.08l.25-.18.13-.1.91-.63,3.29-2.28a4.27,4.27,0,0,0,1.09-1.1,2.37,2.37,0,0,0,.44-1.35,1.38,1.38,0,0,0-.43-1,1.39,1.39,0,0,0-1-.42Zm0,0" fill="#a3b5bf"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

File diff suppressed because one or more lines are too long
@@ -0,0 +1,90 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Other/javascript.js to edit this template
*/
/*
* element: identificativo che intendiamo trattare. es. saldo puntate
* Target: div dove sarà visualizzato l'element
* Value: valore dell'element ottenuto dal server al caricamento della pagina
* archive: archiviazione che si intende dare agli elementi. es. sessionStorage
*/
window.manageBackBrowser = (function () {
let _element = null;
let _target = null;
let _currentUrl = window.location.href;
let _value = null;
function init (element, target, value, isLogged){
_element = element;
_target = target;
_value = parseInt(value);
//controllo errori per essere sicuro che tutto proceda bene
if(!isError(_element, _target, _value, isLogged)){
manage();
}
}
function isError(element, target, value, isLogged){
let error = false;
if(isLogged === true && document.getElementById('NickLoggato') === null){
console.error('utente non loggato');
error = true;
}
if(!Number.isInteger(value)){
console.error('value non è un intero');
error = true;
}
if(element.indexOf(' ') >= 0){
console.error('element non può contenere spazi');
error = true;
}
if(document.querySelectorAll(target) === null){
console.error('target passato non corrisponde ad alcun un elemento nel dom');
error = true;
}
return error;
}
function manage(){
if(sessionStorage.getItem('prelastUrl'+_element) == _currentUrl ){
// uso il valore dal sessionStorage
let elementStorage = parseInt(sessionStorage.getItem(_element));
if(Number.isInteger(elementStorage)){
//TODO controllare che sia un solo elemento, altrimenti metterlo in un ciclo
let elements = document.querySelectorAll(_target);
for (let i=0; i < elements.length; i++){
elements[i].innerText = elementStorage;
}
clearData();
}
}else{
// setto il saldo delle puntate a livello di sessionStorage
sessionStorage.setItem(_element, parseInt(_value));
}
updateQueue();
}
function updateQueue(){
let lastUrl = sessionStorage.getItem('lastUrl'+_element);
sessionStorage.setItem('prelastUrl'+_element, lastUrl);
sessionStorage.setItem('lastUrl'+_element, _currentUrl);
}
function clearData(){
sessionStorage.setItem('prelastUrl'+_element, null);
sessionStorage.setItem('lastUrl'+_element, null);
sessionStorage.setItem(_element, null);
}
return {
init: init
};
})();
@@ -0,0 +1,37 @@
const manageOfferBanner = (function() {
function set(name, value){
localStorage.setItem(name, value);
}
function get(name){
return localStorage.getItem(name);
}
function retrive(name){
let expireItem = get(name);
let dateNow = new Date();
let dateStart = new Date();
dateStart.setUTCHours(9,0,0);
if(dateNow.getTime() > expireItem){
remove(name);
return null;
}
if(dateNow.getTime() >= dateStart.getTime()){
return expireItem;
}
}
function remove(name){
localStorage.removeItem(name);
}
return {
set,
get,
retrive
}
})();
@@ -0,0 +1,236 @@
#pushNotification .bg-green {
background: #00cdac; /* Old browsers */
background: -moz-linear-gradient(top, #00cdac 0%, #02aaaf 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #00cdac 0%,#02aaaf 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #00cdac 0%,#02aaaf 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00cdac', endColorstr='#02aaaf',GradientType=0 ); /* IE6-9 */
}
#pushNotification .bg-red {
background: #d61c33; /* Old browsers */
background: -moz-linear-gradient(top, #d61c33 0%, #aa122d 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #d61c33 0%,#aa122d 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #d61c33 0%,#aa122d 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d61c33', endColorstr='#aa122d',GradientType=0 ); /* IE6-9 */
}
#pushNotification .text-green {
color: #33CC99;
font-weight: bold;
}
#pushNotification .text-notif-color{
color: #666666;
}
#pushNotification .text-notif-description{
}
#pushNotification .text-notif-description.error-text-notif{
margin-top: 0; /*5px*/
}
#pushNotification .text-notif-description.success-text-notif{
margin-top: -6px;
}
#pushNotification .text-notif-title.text-padding-title-medium{
padding: 46px 0px 46px 0px;
}
#pushNotification .notif-big-font{
font-size: 32px;
}
#pushNotification .notif-medium-font{
font-size: 18px;
}
#pushNotification .container-setup-notif{
font-size: 16px;
padding: 20px;
}
#pushNotification .container-setup-notif .image-notif{
background-color:#ffc23a;
margin: 0 -5px -20px;
border-radius: 0px 0px 5px 5px;
}
#pushNotification .close{
padding: 5px;
position: absolute;
right: 5px;
color: #000;
opacity: 1;
top: 0;
line-height: 10px;
}
#pushNotification .modal-body{
padding: 0px;
}
.optin-indicator{
position: fixed;
background-color: white;
border-radius: 8px;
padding: 10px 10px 15px 10px;
top: 13px;
margin-left: 600px;
}
.optin-indicator span:nth-child(2){
width: 50px;
height: 50px;
margin: -5px 0 0 10px;
}
.optin-indicator .bi-left-arrow-optin{
position: absolute;
width: 20px;
height: 20px;
background-size: contain;
background-repeat: no-repeat;
margin-top: -8px;
}
.optin-indicator.firefox{
left: 670px;
}
.optin-indicator.firefox .bi-left-arrow-optin{
left: 10px;
margin-top: 42px;
}
.optin-indicator.safari{
left: 50%;
margin-left: 275px;
}
@media screen and (max-width: 767px){
#pushNotification .text-notif-description.error-text-notif{
margin-top: -10px; /*0px*/
font-size: 11.8px; /*new*/
}
#pushNotification .text-notif-description{
}
}
@media screen and (max-width: 320px){
#pushNotification .text-notif-description.error-text-notif{
margin-top: -5px;
}
}
#onesignal-slidedown-container #onesignal-slidedown-dialog{
padding: 10px !important;
}
#onesignal-slidedown-container #onesignal-slidedown-dialog .slidedown-body-icon{
width: 40px !important;
height: 40px !important;
}
#onesignal-slidedown-container #onesignal-slidedown-dialog .slidedown-button{
padding: 5px !important;
font-size: 15px !important;
}
#notif-generic-msg {
}
#pushNotification .wrap{
display: flex;
align-items: center;
width: 100%;
justify-content: start;
margin-top: 5px;
}
.gest-cod-page #pushNotification .wrap{
flex-direction: column;
text-align: center;
}
.gest-cod-page #pushNotification .btn-go-auctions{
padding: 5px 40px;
font-weight: bold;
font-size: 16px;
border-radius: 10px;
border: none;
outline: 0;
background: #56BB62;
color: white;
margin-top: 15px;
}
.gest-cod-page #pushNotification .modal-content{
box-shadow: none;
border: none;
border-radius: 0;
}
.gest-cod-page #pushNotification .text-notif{
color: #EA4C3F;
font-size: 16px;
font-weight: bold;
display: block;
margin-bottom: 10px;
}
.gest-cod-page #pushNotification .content-msg{
width: 260px;
margin: auto;
}
body.gest-cod-page{
background-color: #fff;
}
#pushNotification .text-notif-title{
padding: 20px 16px;
}
@media (max-width: 576px){
#pushNotification .text-notif-title{
padding: 15px;
}
}
#pushNotification .text-notif-description{
width: 100%;
}
#pushNotification .text-notif-description .first-text{
font-weight: bold;
font-size: 19px;
}
#pushNotification .text-notif-description .text-content{
font-size: 18px;
}
@media (max-width: 576px){
#pushNotification .text-notif-description .first-text{
font-size: 19px;
}
#pushNotification .text-notif-description .text-content{
font-size: 16px;
}
}
#pushNotification #notif-credit{
text-align: left;
}
#pushNotification .modal-dialog{
width: 430px;
}
@media(max-width: 576px){
#pushNotification .modal-dialog{
width: 360px;
margin: 15px auto;
}
}
#pushNotification img.img-erned{
width: 37px;
margin-top: -15px;
}
#pushNotification .text-notif-title{
}
#pushNotification #notif-used .text-notif, #pushNotification #notif-expired .text-notif{
color: #E41B1B;
font-size: 19px;
font-weight: bold;
}
#pushNotification #notif-expired .text-content{
font-size: 18px;
}
@media(max-width: 576px){
#pushNotification #notif-used .text-notif, #pushNotification #notif-expired .text-notif{
font-size: 15px;
}
#pushNotification #notif-expired .text-content{
font-size: 14px;
}
}
#pushNotification #notif-used .text-content{
color: #5e5e5e;
font-weight: normal;
font-size: 18px;
}
@media(max-width: 576px){
#pushNotification #notif-used .text-content{
font-size: 14px;
}
}
@@ -0,0 +1,230 @@
$(function () {
if (typeof notif_blocked == 'undefined' || notif_blocked == null) {
BidooCnf.modules.push.notifications = PushNotifications;
BidooCnf.instances.push.notifications = new PushNotifications();
}
}); // end onready
function PushNotifications() {
"use strict"
// debugger;
var self = this;
var isUserAgentBidooApp = window.navigator.userAgent.match(/^(BIDOO\-APP)/i) !== null;
self.promocode = decodeURIComponent(getUrlParam("promocode")).replace(" ", "");
if (!$("#NickLoggato").length) {
if (self.promocode.length) {
if (isUserAgentBidooApp === false) {
showLogin();
}
}
return;
}
if (self.promocode.length)
self.sendPromoCode();
if (false == ('PushManager' in window) || "undefined" == typeof window["OneSignal"]) {
return launchOnBoardingWhenMobile();
}
}
PushNotifications.prototype.sendPromoCode = function () {
"use strict"
var self = this;
$.get('/push_promotions.php', {code: self.promocode}, function (data) {
if (data.startsWith("ok-")) {
var saldo = data.split("ok-")[1];
self.setNotifCreditVisibility(false);
setTimeout(self.hidePushNotifTips.bind(self), 5000);
$("#divSaldoBidBottom, #divSaldoBidMobile, #divSaldoBidMobileRight").text(saldo);
} else if (data.startsWith('expired-')) {
var expired = data.split('expired-')[1];
$("#push_date_expired").text(moment.unix(expired).local().format('DD/MM/YYYY HH:mm'));
self.showNotifExpired();
} else if (data == 'clicked') {
self.showNotifUsed();
} else if (data == 'no' && self.promocode != '') {
//self.showNotifNotExists();
return;
} else if (data == 'showVerify') {
showverify();
}
});
}
PushNotifications.prototype.getBrowserClass = function () {
"use strict"
if ("undefined" !== typeof InstallTrigger)
return "firefox";
if (/constructor/i.test(window.HTMLElement) || (function (p) {
return p.toString() === "[object SafariRemoteNotification]";
})(!window['safari'] || safari.pushNotification))
return "safari";
return false;
}
function createImg (){
let nodeImage = $('<img>', {
'class': 'img-erned',
'src': 'https://1c308283f6f0dbd72b44-c007ec4697a7ceab9178ce16802c0e6b.ssl.cf2.rackcdn.com/1.0/images/festone-infinite.gif'
});
return nodeImage;
}
PushNotifications.prototype.setNotifCreditVisibility = function (showAddHiddenClass, bids) {
"use strict"
var self = this;
self.setPushNotificationVisibility(true, true);
var selectors = [
"#notif-credit",
"#notif-success",
".text-notif-title",
".text-notif-description",
"#notif-generic-msg"
];
$(selectors.join(",")).toggleClass("hidden", showAddHiddenClass);
if (showAddHiddenClass)
return;
if (bids) {
var selector = $(selectors[0]);
$(selectors[1])
.find("b")
.text(["+", bids].join(" "));
selector
.find(".first-text")
.html([bids, " ", bids > 1 ? "Puntate" : "Puntata"].join(""));
// selector
// .find(".second-text")
// .html(bids > 1 ? "sono state accreditate" : "è stata accreditata");
let max = bids > 3 ? 3 : bids;
for(let x = 1; x <= max; x++){
selector.find(".first-text").append(createImg());
}
}
let current = localStorage.getItem('current');
if(current != null){
if($("#divSaldoBidBottom").text() == NaN){
$("#divSaldoBidBottom").text(current);
}
if($("#divSaldoBidMobileRight").text() == NaN){
$("#divSaldoBidMobileRight").text(current);
}
console.log($("#divSaldoBidMobile"));
if($("#divSaldoBidMobile").text() == NaN){
$("#divSaldoBidMobile").text(current);
}
localStorage.removeItem('current');
}
}
PushNotifications.prototype.setPushNotificationVisibility = function (shouldAddHiddenClass, shouldLaunchModal) {
"use strict"
var self = this;
var browserClass = this.getBrowserClass();
$(".optin-indicator").toggleClass("hidden", shouldAddHiddenClass);
if (browserClass)
$(".optin-indicator").toggleClass(browserClass, true);
if (shouldLaunchModal)
$("#pushNotification").modal('show');
$(".optin-backdrop")
.toggleClass("modal-backdrop", !shouldAddHiddenClass)
.off("click")
.click(function () {
self.setPushNotificationVisibility(true);
});
}
PushNotifications.prototype.showNotifExpired = function () {
"use strict"
var self = this;
self.showNotif("notif-expired");
}
PushNotifications.prototype.showNotifUsed = function () {
"use strict"
var self = this;
self.showNotif("notif-used");
}
PushNotifications.prototype.showNotifNotExists = function () {
"use strict"
var self = this;
self.showNotif("notif-not-exists");
}
PushNotifications.prototype.showNotif = function (id) {
"use strict"
var self = this;
if (self.doesNotShowErrorNotif())
return;
self.setPushNotificationVisibility(true, true);
var selectors = [
"#" + id,
"#wait-next-notif",
"#notif-error",
".text-notif-title",
".text-notif-description"
];
$(selectors.join(",")).removeClass("hidden");
$(".text-notif-title").addClass("text-padding-title-low");
self.savePrefsErrorNotif();
}
PushNotifications.prototype.hidePushNotifTips = function () {
"use strict"
var self = this;
$("#pushNotification").modal('hide');
self.setPushNotificationVisibility(true);
if (self.push_notification_timer)
clearInterval(self.push_notification_timer);
self.push_notification_timer = null;
}
PushNotifications.prototype.hidePushNotifTipsTimeout = function (callback, customDelay) {
"use strict"
var self = this;
if (callback)
$("#pushNotification").off("hide.bs.modal").on("hide.bs.modal", callback.bind(null));
if(!customDelay){
customDelay = BidooCnf.intervals.push.notifications.conversionTimeout;
}
setTimeout(self.hidePushNotifTips.bind(self),customDelay);
}
PushNotifications.prototype.savePrefsErrorNotif = function () {
"use strict"
var self = this;
if (!self.promocode.length)
return;
var notifs = sessionStorage.notifErrors ? JSON.parse(sessionStorage.notifErrors) : {};
notifs[self.promocode] = 1;
sessionStorage.notifErrors = JSON.stringify(notifs);
}
PushNotifications.prototype.doesNotShowErrorNotif = function () {
"use strict"
var self = this;
var notifs = sessionStorage.notifErrors || false;
return (self.promocode.length && notifs && JSON.parse(notifs)[self.promocode]);
}
@@ -0,0 +1,68 @@
// moment.js locale configuration
// locale : italian (it)
// author : Lorenzo : https://github.com/aliem
// author: Mattia Larentis: https://github.com/nostalgiaz
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment')); // Node
} else {
factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
}
}(function (moment) {
return moment.defineLocale('it', {
months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
weekdaysMin : 'D_L_Ma_Me_G_V_S'.split('_'),
longDateFormat : {
LT : 'HH:mm',
LTS : 'LT:ss',
L : 'DD/MM/YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY LT',
LLLL : 'dddd, D MMMM YYYY LT'
},
calendar : {
sameDay: '[Oggi alle] LT',
nextDay: '[Domani alle] LT',
nextWeek: 'dddd [alle] LT',
lastDay: '[Ieri alle] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
return '[la scorsa] dddd [alle] LT';
default:
return '[lo scorso] dddd [alle] LT';
}
},
sameElse: 'L'
},
relativeTime : {
future : function (s) {
return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
},
past : '%s fa',
s : 'alcuni secondi',
m : 'un minuto',
mm : '%d minuti',
h : 'un\'ora',
hh : '%d ore',
d : 'un giorno',
dd : '%d giorni',
M : 'un mese',
MM : '%d mesi',
y : 'un anno',
yy : '%d anni'
},
ordinalParse : /\d{1,2}º/,
ordinal: '%dº',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4th is the first week of the year.
}
});
}));
File diff suppressed because one or more lines are too long
@@ -0,0 +1,154 @@
(function() {
var moment, strftimeFormats = {}, phpFormats = {};
if (typeof require !== "undefined" && require !== null) {
moment = require('moment');
} else {
moment = this.moment;
}
function translatePhpFormat(item) {
if (item.charAt(0) === "\\") {
return item.replace("\\", "");
}
switch (item) {
case "D":
return "ddd";
case "l":
return "dddd";
case "M":
return "MMM";
case "F":
return "MMMM";
case "j":
return "D";
case "m":
return "MM";
case "A":
return "A";
case "a":
return "a";
case "s":
return "ss";
case "i":
return "mm";
case "H":
return "HH";
case "g":
return "h";
case "h":
return "hh";
case "w":
return "d";
case "W":
return "ww";
case "y":
return "YY";
case "o":
case "Y":
return "YYYY";
case "O":
return "ZZ";
case "z":
return "DDD";
case "d":
return "DD";
case "n":
return "M";
case "G":
return "H";
case "e":
return "zz";
default:
return item;
}
}
function translateStrftimeToMoment(item) {
if (item.substring(0, 2) === "%%") {
return item.replace("%%", "%");
}
switch (item) {
case "%a":
return "ddd";
case "%A":
return "dddd";
case "%h":
case "%b":
return "MMM";
case "%B":
return "MMMM";
case "%c":
return "LLLL";
case "%d":
return "D";
case "%j":
return "DDDD";
case "%e":
return "Do";
case "%m":
return "MM";
case "%p":
return "A";
case "%P":
return "a";
case "%S":
return "ss";
case "%M":
return "mm";
case "%H":
return "HH";
case "%I":
return "hh";
case "%w":
return "d";
case "%W":
case "%U":
return "ww";
case "%x":
return "LL";
case "%X":
return "LT";
case "%g":
case "%y":
return "YY";
case "%G":
case "%Y":
return "YYYY";
case "%z":
return "ZZ";
case "%Z":
return "z";
case "%f":
return "SSS";
default:
return item;
}
}
// Put private copy on moment namespace. Useful for tests.
moment.fn.__translateStrftimeToMoment = translateStrftimeToMoment;
moment.fn.__translatePhpFormat = translatePhpFormat;
moment.fn.strftime = function(format) {
if (!strftimeFormats[format]) {
strftimeFormats[format] = format.replace(/%?.|%%/g, translateStrftimeToMoment);
}
return this.format(strftimeFormats[format]);
};
moment.fn.phpFormat = function(format) {
if (!phpFormats[format]) {
phpFormats[format] = format.replace(/\\?./g, translatePhpFormat);
}
return this.format(phpFormats[format]);
};
if (typeof module !== "undefined" && module !== null) {
module.exports = moment;
} else {
this.moment = moment;
}
}).call(this);
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 41.9 32.21"><defs><style>.cls-1{fill:#998675;}.cls-2{fill:#927266;}.cls-3{fill:#775146;}.cls-4{fill:#ff6d3a;}.cls-5{fill:#ed5729;}.cls-6{fill:#ffb125;}.cls-7{fill:#ff901d;}.cls-8{fill:#6a463d;}.cls-9{fill:#26a6fe;}.cls-10{fill:#0593fc;}.cls-11{fill:#fff;}.cls-12{fill:#f7cb15;}</style></defs><title>Asset 6my-auctions</title><g id="Layer_2" data-name="Layer 2"><g id="Livello_1" data-name="Livello 1"><rect class="cls-1" x="19.56" y="15.69" width="13.24" height="2.45" transform="translate(-2.76 28.48) rotate(-54.65)"/><rect class="cls-2" x="19.06" y="15.95" width="13.24" height="1.22" transform="translate(-2.68 27.92) rotate(-54.65)"/><path class="cls-3" d="M14.94,30.59l2,1.46a.88.88,0,0,0,1.22-.21L24.47,23a.88.88,0,0,0-.21-1.22l-2.05-1.46a.88.88,0,0,0-1.23.21l-6.25,8.81A.88.88,0,0,0,14.94,30.59Z"/><rect class="cls-4" x="27.32" y="2.63" width="8.07" height="13.97" transform="translate(5.37 29.63) rotate(-54.65)"/><rect class="cls-5" x="28.66" y="5.22" width="1.71" height="13.97" transform="translate(2.48 29.22) rotate(-54.65)"/><path class="cls-6" d="M33.76,18.11l1.32.94a1,1,0,0,0,1.36-.23l5.28-7.45A1,1,0,0,0,41.49,10l-1.32-.94a1,1,0,0,0-1.36.23l-5.29,7.45A1,1,0,0,0,33.76,18.11Z"/><path class="cls-7" d="M21.23,9.22l1.31.94a1,1,0,0,0,1.37-.23l5.28-7.45A1,1,0,0,0,29,1.12L27.64.18a1,1,0,0,0-1.37.23L21,7.86A1,1,0,0,0,21.23,9.22Z"/><path class="cls-6" d="M25.76,12.1l5.11,3.62a.85.85,0,0,0,1.19-.21l5.1-7.18A.86.86,0,0,0,37,7.13l-5.1-3.62a.86.86,0,0,0-1.2.21L25.56,10.9A.86.86,0,0,0,25.76,12.1Z"/><path class="cls-8" d="M22.21,20.34l1,.73L16,31.32l-1-.73a.88.88,0,0,1-.21-1.23L21,20.55A.88.88,0,0,1,22.21,20.34Z"/><path class="cls-7" d="M31.85,3.51l1.7,1.21a.86.86,0,0,0-.13.14l-3.6,5.07a1.18,1.18,0,0,0,.28,1.65l3.16,2.24-1.2,1.69h0a.21.21,0,0,1-.06.08h0l-.06.07h0l-.09.06h0l-.09,0h0l-.06,0h0l-.05,0h-.56l0,0h0l-.05,0h0l-.07,0L25.76,12.1a.84.84,0,0,1-.2-1.2l1.69-2.39,3.4-4.79A.86.86,0,0,1,31.85,3.51Z"/><path class="cls-9" d="M12.09.15A12.09,12.09,0,1,0,24.18,12.24,12.09,12.09,0,0,0,12.09.15Zm0,21.21a9.12,9.12,0,1,1,9.12-9.12A9.12,9.12,0,0,1,12.09,21.36Z"/><path class="cls-10" d="M12.09,1.69A10.55,10.55,0,1,0,22.64,12.24,10.55,10.55,0,0,0,12.09,1.69Zm0,19.67a9.12,9.12,0,1,1,9.12-9.12A9.12,9.12,0,0,1,12.09,21.36Z"/><circle class="cls-11" cx="12.1" cy="12.24" r="9.12"/><path class="cls-10" d="M12.09,13.29a1,1,0,0,1-.74-.31L8.46,10.1a1.06,1.06,0,0,1,0-1.48,1,1,0,0,1,1.48,0l2.15,2.14,4-4a1,1,0,0,1,1.48,1.48L12.83,13a1,1,0,0,1-.74.31Z"/><path class="cls-9" d="M12.09,13.81a1.57,1.57,0,1,1,1.56-1.57A1.57,1.57,0,0,1,12.09,13.81Z"/><path class="cls-12" d="M12.09,7.22a.7.7,0,0,1-.7-.7V4.83a.7.7,0,0,1,1.4,0V6.52A.7.7,0,0,1,12.09,7.22Z"/><path class="cls-12" d="M12.09,20a.7.7,0,0,1-.7-.7V17.6a.7.7,0,1,1,1.4,0v1.68A.7.7,0,0,1,12.09,20Z"/><path class="cls-12" d="M16.93,12.06a.7.7,0,0,1,.7-.7h1.68a.7.7,0,0,1,0,1.4H17.63a.7.7,0,0,1-.7-.7Z"/><path class="cls-12" d="M4.17,12.06a.69.69,0,0,1,.69-.7H6.55a.7.7,0,0,1,0,1.4H4.86a.7.7,0,0,1-.69-.7Z"/></g></g></svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18.08 13.85"><title>Asset 11ok_field</title><g id="2ee89c2b-0c98-4e17-86d9-2b6c3d5b7f60" data-name="Layer 2"><g id="58d1545c-90d3-4b8b-bea9-1bdc0f1b473a" data-name="Livello 3"><path d="M17.75,1.91,16.16.33a1.13,1.13,0,0,0-1.59,0L6.93,8,3.5,4.55a1.08,1.08,0,0,0-.79-.33,1.08,1.08,0,0,0-.79.33L.33,6.13a1.13,1.13,0,0,0,0,1.59l4.22,4.22,1.59,1.59a1.13,1.13,0,0,0,1.59,0l1.59-1.59L17.75,3.5a1.08,1.08,0,0,0,.33-.79,1.08,1.08,0,0,0-.33-.79Z" fill="#3c9"/></g></g></svg>

After

Width:  |  Height:  |  Size: 517 B

@@ -0,0 +1,3 @@
<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.5212 10.6568V14.106C15.5213 14.7658 15.2692 15.4007 14.8165 15.8808C14.3638 16.3609 13.7448 16.6498 13.0861 16.6885L12.9344 16.6928H8.6229V10.6568H15.5212ZM6.89832 10.6568V16.6928H2.58687C1.92704 16.6929 1.29213 16.4408 0.812052 15.9881C0.331976 15.5354 0.0430218 14.9164 0.00431155 14.2577L4.01866e-09 14.106V10.6568H6.89832ZM4.8866 0.309326C6.04207 0.309326 7.07509 0.833599 7.76061 1.65795C8.08782 1.26343 8.49284 0.940599 8.95039 0.7096C9.40794 0.478601 9.90819 0.344396 10.4199 0.315362L10.6355 0.309326H10.6924C11.287 0.309326 11.8573 0.545531 12.2777 0.965979C12.6981 1.38643 12.9344 1.95668 12.9344 2.55128C12.9344 2.90999 12.8697 3.25319 12.7524 3.57137L12.6748 3.75849H12.9344C13.5942 3.75845 14.2291 4.01056 14.7092 4.46322C15.1892 4.91589 15.4782 5.5349 15.5169 6.1936L15.5212 6.34536V8.93223H8.6229V3.75849H6.89832V8.93223H4.01866e-09V6.34536C-3.67523e-05 5.68552 0.252069 5.05062 0.704736 4.57054C1.1574 4.09046 1.77641 3.80151 2.43511 3.7628L2.58687 3.75849H2.84556C2.68 3.39029 2.58687 2.98243 2.58687 2.55128C2.58683 1.98113 2.80402 1.43239 3.19424 1.01669C3.58446 0.601004 4.1184 0.349601 4.68741 0.313638L4.82883 0.309326H4.8866ZM4.8866 2.03391H4.82883C4.69161 2.03391 4.56001 2.08842 4.46299 2.18544C4.36596 2.28247 4.31145 2.41406 4.31145 2.55128C4.31145 2.87145 4.43864 3.17851 4.66503 3.4049C4.89143 3.6313 5.19849 3.75849 5.51866 3.75849H6.87763C6.80838 3.27959 6.56892 2.84168 6.20311 2.52495C5.83729 2.20823 5.37047 2.0339 4.8866 2.03391ZM10.6924 2.03391H10.6346C9.66886 2.03391 8.86262 2.71339 8.66861 3.62052L8.64274 3.75849H10.0026C10.3227 3.75849 10.6298 3.6313 10.8562 3.4049C11.0826 3.17851 11.2098 2.87145 11.2098 2.55128C11.2098 2.42858 11.1661 2.30988 11.0867 2.21637C11.0072 2.12287 10.8971 2.06064 10.776 2.04081L10.6924 2.03391Z" fill="#A3B5BF"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,391 @@
function Bar() {
"use strict"
this.config = {
step: function(state, bar) {
var customBar = BidooCnf.instances.auction_progress;
if(bar.value().toFixed(2)==customBar.resetBarValue.toFixed(2)){
customBar.resetBarValue = 0;
customBar.stopCountDown = false;
}
if($(window).width()>768){
customBar.changeColorBarOver(bar);
customBar.startCountDown();
}else{
$('.auction-container-timer').css('display','none');
}
}
}
this.isExecuting = false, this.stopCountDown = false, this.shouldUpdateText = true, this.isFullProgress = false, this.isBlinking = false;
this.resetBarValue = 0;
}
Bar.prototype.startCountDown = function(){
"use strict"
if("undefined"!=typeof this.bar) this.startIntervalCountDown();
}
Bar.prototype.startIntervalCountDown = function() {
"use strict"
if(this.isExecuting) return;
this.isExecuting = true;
requestAnimationFrame(this.setIntervalAnimationFrame.bind(this));
}
Bar.prototype.setIntervalAnimationFrame = function(timestamp){
"use strict"
this.updateTimer();
requestAnimationFrame(this.setIntervalAnimationFrame.bind(this));
}
Bar.prototype.getPreFilledConfiguration = function(type) {
"use strict"
var config = new Configurator();
switch (type) {
case Configurator.ids.SEMI_CIRCLE:
return config.setTextArbitraryClassName("text-arbitrary-progressbar")
.setFullProgressColor("#33cc99")
.setTextFullProgressColor("#ffffff")
.setBlinkTextColor("#e74c3c")
.setBlinkProgressColor("#e74c3c");
}
return null;
}
Bar.prototype.getCorrectSeconds = function(time){
"use strict"
var now = (new Date().getTime()/1000);
return time-now<=0 ? 0 : Math.round(time-now);
}
Bar.prototype.getProgressSeconds = function() {
"use strict"
return this.getCorrectSeconds(this.time);
}
Bar.prototype.updateTimer = function(scope) {
"use strict"
scope = !scope ? this : scope;
if(scope.stopCountDown) return;
var newValue = scope.getUpdatedProgress();
var isProgressOver = 0==scope.getProgressSeconds();
if(scope.shouldUpdateText) scope.updateSecondsText(scope.time);
scope.bar.animate(
isProgressOver ? 0.01*scope.config.fullProgressDefaultValue : newValue,
scope.configurator
);
}
Bar.prototype.getNumberSign = function(num){
"use strict"
return (num > 0) - (num < 0);
}
Bar.prototype.getTimerElement = function(){
"use strict"
return $("."+this.config.text.className);
}
Bar.prototype.getProgressElement = function(){
"use strict"
return this.getTimerElement().parent().find("svg").find("path").eq(1);
}
Bar.prototype.shouldUpdateTextAuto = function(shouldUpdateText) {
"use strict"
this.shouldUpdateText = shouldUpdateText;
return this;
}
Bar.prototype.getUpdatedProgress = function(barValue, multiplier) {
"use strict"
multiplier = !multiplier ? 1 : multiplier;
barValue = !barValue ? this.bar.value() : barValue;
barValue = (barValue + (((barValue < 0 ? 1 : -1) * this.decrement) * multiplier));
return barValue>0 ? 0 : barValue;
}
Bar.prototype.updateSecondsText = function(time) {
"use strict"
this.updateTimeText(this.formatTime(SimpleCountdown(time)));
}
Bar.prototype.updateTimeText = function(secondsText) {
"use strict"
var classArbitrary = this.config.text.classNameArbitrary;
this.getTimerElement().text(secondsText);
if("undefined"!=typeof classArbitrary)
this.getTimerElement().removeClass(classArbitrary);
}
Bar.prototype.formatTime = function(time) {
"use strict"
time = time.split(":");
switch (this.config.type) {
case Configurator.ids.SEMI_CIRCLE:
var intTime = parseInt(time[2]);
if (intTime >= 0) return intTime < 10 ? intTime : time[2];
}
return time.join(":");
}
Bar.prototype.setArbitraryText = function(text, animate) {
"use strict"
if(typeof this.config.text == "undefined"){
var configCustom = new Configurator();
this.config = configCustom.config;
}
var config = this.config;
var classArbitrary = config.text.className;
this.stopCountDown = false;
this.updateTimeText(text);
if(animate){
this.bar.animate(animate);
}else{
this.getProgressElement().attr("display","none");
}
this.getTimerElement()
.css("color", config.trailColor);
if("undefined"!=typeof classArbitrary)
this.getTimerElement().addClass(classArbitrary);
}
Bar.prototype.getCorrectTimeMS = function(time){
"use strict"
return time.getTime()/1000;
}
Bar.prototype.setTime = function(time) {
"use strict"
var tempTime = new Date();
if (time) tempTime.setTime(time);
this.dateOBJ = tempTime;
this.time = this.getCorrectTimeMS(tempTime);
}
Bar.prototype.setBarColorThreshold = function(secondsThreshold){
"use strict"
this.secondsThreshold = secondsThreshold;
return this;
}
Bar.prototype.setFullProgressBarColor = function(bar){
"use strict"
var fullProgressColor = this.config.fullProgressColor;
var fullProgressTextColor = this.config.text.textFullProgressColor;
if("undefined"==typeof fullProgressColor) return;
bar.path.setAttribute("stroke",fullProgressColor);
if("undefined"!=typeof fullProgressTextColor)
this.getTimerElement().css("color",fullProgressTextColor);
}
Bar.prototype.setOverPorgressBarColor = function(bar){
"use strict"
bar.path.setAttribute("stroke",this.config.color);
this.getTimerElement().css("color",this.config.color);
}
Bar.prototype.changeColorBarOver = function(bar){
"use strict"
if(this.isBlinking || "undefined"==typeof this.secondsThreshold) return;
if(this.secondsThreshold>this.getProgressSeconds())
this.setOverPorgressBarColor(bar);
else
this.setFullProgressBarColor(bar);
}
Bar.prototype.blink = function(){
"use strict"
var blink = this.config.blink;
if("undefined"==typeof blink) return;
var isProgressColor = "undefined"!=typeof blink.progressColor;
var isTextColor = "undefined"!=typeof blink.textColor;
this.isBlinking = isProgressColor || isTextColor;
if(isProgressColor)
this.getProgressElement().attr("stroke",blink.progressColor);
if(isTextColor)
this.getTimerElement().css("color",blink.textColor);
if(this.isBlinking)
setTimeout(function(self){ self.isBlinking = false; },200,this);
}
Bar.prototype.stopTimer = function(stopCountDown) {
"use strict"
if (this.stopCountDown == stopCountDown) return this;
this.stopCountDown = stopCountDown;
if (stopCountDown) {
if(this.bar) this.bar.stop();
} else {
this.setTime();
}
return this;
}
Bar.prototype.setConfigurator = function(config) {
"use strict"
this.configurator = config.config;
return this;
}
Bar.prototype.setContainer = function(container) {
"use strict"
this.container = container;
return this;
}
Bar.prototype.setupBar = function() {
"use strict"
if (!this.bar) {
this.config = $.extend(this.configurator, this.config);
switch (this.config.type) {
case Configurator.ids.SEMI_CIRCLE:
this.bar = new ProgressBar.Path(this.container, this.config);
break;
}
}
}
Bar.prototype.getDifferenceSecondsDecimal = function(time, maxSeconds){
"use strict"
var maxTime = new Date();
maxTime.setSeconds(maxTime.getSeconds()+maxSeconds);
return parseInt(Math.abs(time.getTime()-maxTime.getTime())/1000);
}
Bar.prototype.getResetAnimationValue = function(maxSeconds){
"use strict"
return this.isFullProgress ?
this.config.fullProgressDefaultValue :
this.getUpdatedProgress(this.config.fullProgressDefaultValue,this.getDifferenceSecondsDecimal(this.dateOBJ,maxSeconds));
}
Bar.prototype.getStopCountDown = function(){
"use strict"
return this.stopCountDown;
}
Bar.prototype.animateResetBar = function(duration, maxSeconds){
"use strict"
this.resetBarValue = this.getResetAnimationValue(maxSeconds);
var isDifferentSign = this.getNumberSign(this.config.fullProgressDefaultValue)!=this.getNumberSign(this.resetBarValue);
if(isDifferentSign){
this.resetBarValue = 0.01*this.config.fullProgressDefaultValue;
}
if(duration && 0!=duration){
this.stopCountDown = true;
this.bar.animate(
this.resetBarValue,
{
duration: duration
}
);
}else{
this.bar.set(this.resetBarValue);
}
}
Bar.prototype.resetBar = function(time, maxSeconds, duration, shouldBlink, blinkCallback, isFirstTime) {
"use strict"
if(!this.configurator) return console.warn("Not defined configurator");
if(!this.container) return console.warn("Not defined container");
if(this.stopCountDown) return;
this.setTime(time);
var correctSeconds = this.getProgressSeconds();
var secondsDecrement = maxSeconds ? maxSeconds : correctSeconds;
this.setupBar();
this.getProgressElement().removeAttr("display");
this.stopCountDown = false;
this.decrement = (100/secondsDecrement)/100;
this.updateTimeText(this.formatTime(SimpleCountdown(this.time)));
this.isFullProgress = maxSeconds==correctSeconds;
if(shouldBlink || isFirstTime) this.animateResetBar(duration,maxSeconds);
if(blinkCallback) blinkCallback();
}
function Configurator() {
"use strict"
this.config = {
strokeWidth: 4,
color: '#e74c3c',
trailColor: '#eaeaea',
trailWidth: 4,
easing: 'easeOut',
duration: 2650,
fullProgressDefaultValue: -1.0,
type: 'semi_circle',
text: {
className: 'text-countdown-progressbar'
},
from: {
color: '#FEC62A'
},
to: {
color: '#FEC62A'
}
};
}
Configurator.prototype.setStrokeWidth = function(strokeWidth) {
"use strict"
this.config.strokeWidth = strokeWidth;
return this;
}
Configurator.prototype.setColor = function(color) {
"use strict"
this.config.color = color;
return this;
}
Configurator.prototype.setTrailColor = function(trailColor) {
"use strict"
this.config.trailColor = trailColor;
return this;
}
Configurator.prototype.setTrailWidth = function(trailWidth) {
"use strict"
this.config.trailWidth = trailWidth;
return this;
}
Configurator.prototype.setDuration = function(duration) {
"use strict"
this.config.duration = duration;
return this;
}
Configurator.prototype.setTextClassName = function(className) {
"use strict"
this.config.text.className = className;
return this;
}
Configurator.prototype.setTextArbitraryClassName = function(className) {
"use strict"
this.config.text.classNameArbitrary = className;
return this;
}
Configurator.prototype.setFullProgressDefaultValue = function(defValue) {
"use strict"
this.config.fullProgressDefaultValue = defValue;
return this;
}
Configurator.prototype.setTextFullProgressColor = function(textFullProgressColor){
"use strict"
this.config.text.textFullProgressColor = textFullProgressColor;
return this;
}
Configurator.prototype.setFromColor = function(color) {
"use strict"
this.config.from.color = color;
return this;
}
Configurator.prototype.setToColor = function(color) {
"use strict"
this.config.to.color = color;
return this;
}
Configurator.prototype.setType = function(type) {
"use strict"
this.config.type = type;
return this;
}
Configurator.prototype.setFullProgressColor = function(fullProgressColor){
"use strict"
this.config.fullProgressColor = fullProgressColor;
return this;
}
Configurator.prototype.setBlinkTextColor = function(textColor){
"use strict"
this.setBlink();
this.config.blink.textColor = textColor;
return this;
}
Configurator.prototype.setBlinkProgressColor = function(progressColor){
"use strict"
this.setBlink();
this.config.blink.progressColor = progressColor;
return this;
}
Configurator.prototype.setBlink = function(){
"use strict"
if("undefined"==typeof this.config.blink)
this.config.blink = {};
return this;
}
Configurator.ids = {
SEMI_CIRCLE: "semi_circle"
}
//This is needed because of line 142 in auction.php
//otherwise auction's infos won't load ASAP
BidooCnf.modules.auction_progress = Bar;
BidooCnf.instances.auction_progress = new Bar();
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 134.05 300" style="enable-background:new 0 0 134.05 300;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FF8500;}
.st1{fill:#E56813;}
.st2{fill:#FFBC00;}
.st3{fill:#F9B200;}
.st4{fill:#FFF2D2;}
.st5{fill:#F4DD91;}
.st6{fill:#FF0031;}
.st7{fill:#FF5C83;}
.st8{fill:#BC0020;}
.st9{fill:#0098FF;}
.st10{fill:#0072BF;}
.st11{fill:#A00023;}
.st12{fill:#84E0EF;}
.st13{fill:url(#SVGID_1_);}
.st14{fill:#FFFFFF;}
</style>
<g>
<g>
<path class="st0" d="M68.21,141.48l0.02-2.75c0,0-0.46,0.46-1.27,1.34c-0.81-0.89-1.27-1.34-1.27-1.34l0.02,2.76
C54.16,154.89,9.17,216.12,67.05,300C124.94,216.11,79.79,154.88,68.21,141.48z"/>
<path class="st1" d="M68.21,141.48l0.02-2.75c0,0-0.46,0.46-1.27,1.34c-0.81-0.89-1.27-1.34-1.27-1.34l0.02,2.76
c0,30.29,1.34,92.02,1.34,158.51C124.94,216.11,79.79,154.88,68.21,141.48z"/>
<path class="st2" d="M67.92,149.94l0.01-2.08c0,0-0.35,0.35-0.96,1.02c-0.61-0.67-0.96-1.02-0.96-1.02l0.02,2.09
c-8.74,10.14-42.77,56.45,1.01,119.88C110.82,206.38,76.68,160.07,67.92,149.94z"/>
<path class="st3" d="M67.92,149.94l0.01-2.08c0,0-0.35,0.35-0.96,1.02c-0.61-0.67-0.96-1.02-0.96-1.02l0.02,2.09
c0,23.99,1.01,99.36,1.01,119.88C110.82,206.38,76.68,160.07,67.92,149.94z"/>
<path class="st4" d="M67.6,160.33l0.01-1.32c0,0-0.22,0.22-0.61,0.65c-0.39-0.43-0.61-0.65-0.61-0.65l0.01,1.33
c-5.56,6.46-27.23,35.93,0.64,76.32C94.91,196.27,73.17,166.78,67.6,160.33z"/>
<path class="st5" d="M67.6,160.33l0.01-1.32c0,0-0.22,0.22-0.61,0.65c-0.39-0.43-0.61-0.65-0.61-0.65l0.01,1.33
c0,17.9,0.64,53.79,0.64,76.32C94.91,196.27,73.17,166.78,67.6,160.33z"/>
</g>
<g>
<path class="st6" d="M26.36,152.72c-3.72-0.01-20.91,12.4-24.56,22.84c-3.65,10.43,3.81,43.65,6.61,43.65
c2.01,0,3.95-5.8,4.88-9.06c1.25-4.36,4.55-7.92,8.91-9.19c1.2-0.35,2.45-0.53,3.74-0.53h7.06L26.36,152.72z"/>
<path class="st7" d="M27.73,162.62c-1.16,0.39-6.77,2.28-11.27,5.43c-5.63,3.95-8.98,6.85-10.92,11.51
c-1.95,4.66,0.49,29.15,2.34,33.13c1.85,3.98,4.82-0.6,4.82-0.6s0,0,0,0.02c-0.16,0.49-0.33,0.99-0.51,1.49
c-0.04,0.12-0.09,0.24-0.13,0.36c-0.02,0.06-0.04,0.11-0.06,0.17c-0.06,0.15-0.11,0.3-0.17,0.45c-0.01,0.02-0.02,0.05-0.03,0.08
c-0.07,0.18-0.14,0.35-0.22,0.53c-0.09,0.2-0.17,0.4-0.26,0.59c-0.06,0.13-0.12,0.26-0.17,0.38c-0.04,0.08-0.08,0.16-0.11,0.24
c-0.09,0.17-0.17,0.33-0.25,0.48c-0.14,0.26-0.27,0.5-0.42,0.73c-0.22,0.34-0.44,0.64-0.66,0.89c-0.17,0.19-0.35,0.35-0.53,0.47
c-0.05,0.03-0.09,0.06-0.15,0.09c-0.09,0.05-0.17,0.09-0.26,0.11c-0.03,0.01-0.06,0.02-0.09,0.03c0,0,0,0,0,0
c-0.04,0.01-0.09,0.02-0.13,0.02c-0.04,0-0.09,0.01-0.13,0.01c-2.8,0-10.26-33.22-6.61-43.65c3.65-10.43,20.85-22.85,24.56-22.84
L27.73,162.62z"/>
<path class="st8" d="M32.99,200.43h-7.06c-1.29,0-2.54,0.18-3.74,0.53c-0.67,0.2-1.32,0.45-1.94,0.74
c0.15-0.12,6.54-4.21,7.48-10.91c0.94-6.7,0.65-23.49,0.65-23.49L32.99,200.43z"/>
<path class="st6" d="M107.7,152.72c3.72-0.01,20.91,12.4,24.56,22.84c3.65,10.43-3.81,43.65-6.61,43.65
c-2.01,0-3.95-5.8-4.88-9.06c-1.25-4.36-4.55-7.92-8.91-9.19c-1.2-0.35-2.45-0.53-3.74-0.53h-7.06L107.7,152.72z"/>
<path class="st8" d="M101.06,200.43h7.06c1.29,0,2.54,0.18,3.74,0.53c0.67,0.2,1.32,0.45,1.94,0.74
c-0.15-0.12-6.54-4.21-7.48-10.91c-0.94-6.7-0.65-23.49-0.65-23.49L101.06,200.43z"/>
<path class="st8" d="M106.32,162.62c1.16,0.39,6.77,2.28,11.27,5.43c5.63,3.95,8.98,6.85,10.92,11.51
c1.95,4.66-0.49,29.15-2.34,33.13c-1.85,3.98-4.82-0.6-4.82-0.6s0,0,0,0.02c0.16,0.49,0.33,0.99,0.51,1.49
c0.04,0.12,0.09,0.24,0.13,0.36c0.02,0.06,0.04,0.11,0.06,0.17c0.06,0.15,0.11,0.3,0.17,0.45c0.01,0.02,0.02,0.05,0.03,0.08
c0.07,0.18,0.14,0.35,0.22,0.53c0.09,0.2,0.17,0.4,0.26,0.59c0.06,0.13,0.12,0.26,0.17,0.38c0.04,0.08,0.08,0.16,0.11,0.24
c0.09,0.17,0.17,0.33,0.25,0.48c0.14,0.26,0.27,0.5,0.42,0.73c0.22,0.34,0.44,0.64,0.66,0.89c0.17,0.19,0.35,0.35,0.53,0.47
c0.05,0.03,0.09,0.06,0.15,0.09c0.09,0.05,0.17,0.09,0.26,0.11c0.03,0.01,0.06,0.02,0.09,0.03c0,0,0,0,0,0
c0.04,0.01,0.09,0.02,0.13,0.02c0.04,0,0.09,0.01,0.13,0.01c2.8,0,10.26-33.22,6.61-43.65c-3.65-10.43-20.85-22.85-24.56-22.84
L106.32,162.62z"/>
<path class="st9" d="M103.97,42.95C91.29,18.26,76.23,0,67.03,0c-9.2,0-25.62,20-36.94,42.95C18.77,65.91,18.29,85.12,20,106.95
l12.99,93.48h68.08l12.99-93.48C115.76,85.12,116.65,67.65,103.97,42.95z"/>
<path class="st10" d="M89.86,19.52H75.74c8.03,12.36,20.24,38.34,21.64,61.4c1.4,23.06-7.19,108.15-21.36,108.15s-34.18,0-34.18,0
c-5.49,0-15.49-36.35-15.49-36.35l6.63,47.7h0l0.23,1.64c0.53,3.79,3.77,6.62,7.6,6.62h52.42c3.83,0,7.07-2.82,7.6-6.62l0.23-1.64
h0l12.99-93.48c1.7-21.83,2.58-39.3-10.09-63.99C99.44,34.14,94.61,26.16,89.86,19.52z"/>
<ellipse class="st10" cx="72.16" cy="88.17" rx="32.41" ry="30.52"/>
<path class="st10" d="M80.04,161.08c0,0,2.2,16.78,5.86,21.62c3.66,4.84-18.76,8.86-18.76,8.86L80.04,161.08z"/>
<path class="st6" d="M89.86,19.52H44.15C52.58,7.92,61.23,0,67.02,0C72.94,0,81.29,7.56,89.86,19.52z"/>
<path class="st11" d="M33.22,202.07c0.53,3.79,3.77,6.62,7.6,6.62h52.42c3.83,0,7.07-2.82,7.6-6.62l0.23-1.64H32.99L33.22,202.07z
"/>
<path class="st6" d="M80.04,161.08c-0.63-4-8.45-11.53-12.9-11.53s-12.27,7.53-12.9,11.53c-0.63,4,8.91,60.91,12.9,60.91
C71.13,221.99,80.67,165.08,80.04,161.08z"/>
<circle class="st6" cx="67.14" cy="85.04" r="30.52"/>
<ellipse transform="matrix(0.5257 -0.8507 0.8507 0.5257 -40.495 97.4476)" class="st8" cx="67.14" cy="85.04" rx="24.69" ry="24.69"/>
<path class="st8" d="M97.66,85.04c0,16.86-13.66,30.52-30.52,30.52c-10.85,0-20.37-5.65-25.78-14.18
c11.8,7.49,27.63,6.09,37.92-4.2c10.3-10.3,11.7-26.12,4.2-37.92C92.01,64.67,97.66,74.19,97.66,85.04z"/>
<circle class="st12" cx="67.14" cy="85.04" r="22.25"/>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="47.2835" y1="82.0185" x2="82.0093" y2="82.0185">
<stop offset="0" style="stop-color:#BEFFFF"/>
<stop offset="1" style="stop-color:#F9FFFF"/>
</linearGradient>
<circle class="st13" cx="64.65" cy="82.02" r="17.36"/>
<ellipse transform="matrix(0.7071 -0.7071 0.7071 0.7071 -36.2763 62.8878)" class="st14" cx="57.77" cy="75.23" rx="8.91" ry="6.69"/>
<path class="st8" d="M67.02,0c-4.99,0-12.1,5.88-19.37,14.93v0c0,0,9.22-6.73,17.82-4.37c2.39,0.66,7.18,4.2,10.27,8.95h14.11
C81.29,7.56,72.94,0,67.02,0z"/>
<path class="st8" d="M67.14,221.99c-0.87,0-2-2.69-3.22-6.94c0.12,0.08,2.84,2.53,4.44-1.21c1.6-3.74,3.71-45.57,2.33-51.63
c-1.38-6.06-11.75-8.09-11.75-8.09c0,0,0,0,0.01-0.01l3.47-2.76c1.69-1.09,3.36-1.8,4.72-1.8c4.45,0,12.27,7.53,12.9,11.53
C80.67,165.08,71.13,221.99,67.14,221.99z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.7 KiB

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More