| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/GXModules/Gambio/Hub/Build/Shop/Javascript/ |
Upload File : |
"use strict";window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var payPalButtonSettings={},currentScript=document.currentScript,initJSSDKPayPalButton=function(){paypal.Buttons({style:payPalButtonSettings.style,createOrder:function(e,t){return $.ajax({url:payPalButtonSettings.createPaymentUrl,dataType:"json"}).then(function(e){var t=void 0;for(var n in e.payment.links)"approval_url"===e.payment.links[n].rel&&(t=e.payment.links[n].href.match(/EC-\w+/)[0]);return t})},onApprove:function(e,t){document.querySelector('#checkout_payment input[name="PayPal2HubPaymentId"]').value=e.paymentID,document.querySelector('#checkout_payment input[name="PayPal2HubPayerId"]').value=e.payerID,document.querySelector("#checkout_payment").submit()}}).render("#paypal-button-container")};document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector("#checkout_payment div.continue_button"),t=e.querySelector('input[type="submit"]'),n=t.style.display,a=document.createElement("div"),r=document.querySelector("#gambiohub-ppplus");if(null===r){a.id="paypal-button-container",a.style.display="none",a.style.marginTop="-3px",e.appendChild(a);var o=document.createElement("script");o.src=payPalButtonSettings.jssrc,o.onload=initJSSDKPayPalButton,currentScript?currentScript.parentNode.insertBefore(o,currentScript):document.querySelector("script:last-of-type").parentNode.appendChild(o);var c=function(){var e=this.querySelector('input[name="payment"]');null!==e&&("gambio_hub"===e.value&&"PayPal2Hub"===e.dataset.module_code?(t.style.display="none",a.style.display="block"):(t.style.display=n,a.style.display="none"))},u=document.querySelectorAll('#checkout_payment input[name="payment"], #checkout_payment li.list-group-item');u.forEach(function(e){e.addEventListener("click",c)});var l=document.querySelectorAll("#checkout_payment li");l.forEach(function(e){(e.querySelector('input[name="payment"]:checked')||1===l.length)&&e.dispatchEvent(new Event("click"))})}});