| 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/themes/Honeygrid/javascripts/system/widgets/ |
Upload File : |
"use strict";gambio.widgets.module("amazon_checkout",[],function(e){var t=$(this),n=$("body"),o=null,a=null,d=null,i={sellerId:null,orderReference:null,size:{width:"600px",height:"400px"},sizeReadOnly:{width:"400px",height:"185px"},countryTxt:"",buttonTxt:"",continueBtn:".btn-continue",errorClass:"amzadvpay_countrynotallowed",buttonAClass:"btn btn-default btn-block amazonadvpay_signout",buttonClass:"col-xs-6 col-sm-6 col-md-4 col-md-offset-1 amazonadvpay_signoutbutton",buttonAppendAfter:".btn-back",requestURL:"request_port.php?module=AmazonAdvPay",signoutErrorUrl:"shopping_cart.php?error=apa_signout"},r=$.extend(!0,{},i,e),l={},s=function(e){var n=e&&e.data&&e.data.action?e.data:{orderrefid:r.orderReference,action:"addressSelect"};$.post(r.requestURL,n).done(function(e){"true"===e.reload&&window.location.reload(),e.redirect_url&&"signOut"===n.action&&(window.location=e.redirect_url),"false"===e.country_allowed?(d.hide(),t.after(o)):"signOut"!==n.action&&(d.show(),t.next("."+r.errorClass).remove())}).fail(function(e){"signOut"===n.action&&(window.location=r.signoutErrorUrl)})};return l.init=function(e){if(!n.hasClass("amazon-payment-initialized")){n.addClass("amazon-payment-initialized"),o=$('<div class="'+r.errorClass+'">'+r.countryTxt+"</div>"),a=$('<div class="'+r.buttonClass+'"><a class="'+r.buttonAClass+'">'+r.buttonTxt+"</div></div>"),d=$(r.continueBtn),a.on("click",{orderrefid:"n/a",action:"signOut"},s),$(r.buttonAppendAfter).after(a);try{var t={sellerId:r.sellerId,amazonOrderReferenceId:r.orderReference,design:{designMode:"responsive"},onAddressSelect:s};null!==document.querySelector("#addressBookWidgetDiv")&&new OffAmazonPayments.Widgets.AddressBook(t).bind("addressBookWidgetDiv"),null!==document.querySelector("#walletWidgetDiv")&&(new OffAmazonPayments.Widgets.Wallet(t).bind("walletWidgetDiv"),document.querySelector("#walletWidgetDiv").style.height="25em");var i=document.querySelector("#readOnlyAddressBookWidgetDiv"),l=document.querySelector("#readOnlyWalletWidgetDiv");null!==i&&null!==l&&(i.style.height="12em",l.style.height="12em",l.style["margin-bottom"]="3em",$.extend(t,{displayMode:"Read"}),new OffAmazonPayments.Widgets.AddressBook(t).bind("readOnlyAddressBookWidgetDiv"),new OffAmazonPayments.Widgets.Wallet(t).bind("readOnlyWalletWidgetDiv"))}catch(u){}}e()},l});