1function ConfigCc(){this.fields={cardtype:{selector:"cardtype",cardtypes:["V","M"]},cardpan:{selector:"cardpan",type:"text"},cardcvc2:{selector:"cardcvc2",type:"text",size:"4",maxlength:"4",iframe:{width:"85px"}},cardexpiremonth:{selector:"cardexpiremonth",type:"select",size:"2",maxlength:"2",iframe:{width:"85px"}},cardexpireyear:{selector:"cardexpireyear",type:"select",iframe:{width:"85px"}}};this.defaultStyle={input:"background: #eeeeee; border: none; font-size: 1rem; padding: 0.3125rem 0.625rem; width:100%; color: #5e5e5e; font-family: 'Source Sans Pro', 'source-sans-pro', 'Helvetica Neue', Helvetica, Arial;",select:"background: #eeeeee; border: none; font-size: 1rem; margin:0; padding: 0.3125rem 0.625rem; outline: 0; width:100%; height: 2.0rem; outline-color: transparent; outline-style: none; outline-width: 0px; appearance:none; -moz-appearance:none; -webkit-appearance:none; color: #5e5e5e; font-family: 'Source Sans Pro', 'source-sans-pro', 'Helvetica Neue', Helvetica, Arial;",iframe:{height:"33px",width:"100%"}};this.error="errorOutput";this.language=Payone.ClientApi.Language.de}function RequestCc(n){this.request=n.find('[data-field="payoneRequest"]').val();this.responsetype=n.find('[data-field="payoneResponsetype"]').val();this.mode=n.find('[data-field="payoneMode"]').val();this.mid=n.find('[data-field="payoneMid"]').val();this.aid=n.find('[data-field="payoneAid"]').val();this.portalid=n.find('[data-field="payonePortalid"]').val();this.encoding=n.find('[data-field="payoneEncoding"]').val();this.storecarddata=n.find('[data-field="payoneStorecarddata"]').val();this.hash=n.find('[data-field="payoneHash"]').val()}function validatePaymentSelection(){var n=$("#original-payment-type").val(),i,r,u,t;if(n==="Email"||n==="Post"||n==="Paypal")return!0;if(n==="Bank"&&(i=$('input[name="payment"][id^="btn-choose-existing-bank-"]:checked').length>0,r=$("#IBAN").length>0&&$("#IBAN").val()&&$("#IBAN").val().trim()!=="",!i&&!r))return ShowCenteredErrMessage("Bitte wählen Sie eine Bankverbindung aus oder geben Sie eine neue Bankverbindung ein."),!1;if(n==="CreditCard"){if(u=$('input[name="payment"][id^="btn-choose-creditcard-"]:checked').length>0,t=!1,typeof iframes!="undefined"&&iframes!==null)try{t=iframes.isComplete()}catch(f){console.log("Error checking iframes:",f)}if(!u&&!t)return ShowCenteredErrMessage("Bitte wählen Sie eine Kreditkarte aus oder geben Sie eine neue Kreditkarte ein."),!1}return!0}function ShowCenteredErrMessage(n){var t=$('<div class="centered-error-message"><\/div>');t.css({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)","z-index":"9999","background-color":"#f8d7da",color:"#721c24",border:"1px solid #f5c6cb","border-radius":"4px",padding:"15px 20px","box-shadow":"0 4px 6px rgba(0,0,0,0.1)","max-width":"500px","text-align":"center","font-size":"16px","font-weight":"500"});t.text(n);$("body").append(t);t.hide().fadeIn(300);setTimeout(function(){t.fadeOut(300,function(){t.remove()})},3e3)}function initFormInsertCC(){var n=$("#pplus-form-paymentcreditcard");n.find('[data-field="payoneRequest"]').val()!==undefined&&(request=new RequestCc(n),iframes=new Payone.ClientApi.HostedIFrames(config,request),opt===undefined&&(opt={data:{}}),InitFormSubmit(n,function(n){SubmitFormInsertCc(this,n)}),$("[id^='btn-choose-creditcard-']").click(function(){ChooseCreditCard(this.id.replace("btn-choose-creditcard-",""))}))}function initFormInsertPaypal(){var n=$("#form-sub-payment-type-newpaypal");n.find('[data-field="payoneRequest"]').val()!==undefined&&(opt===undefined&&(opt={data:{}}),InitFormSubmit(n,function(n){ValidateNewPaypal(this,n)}))}function ValidateNewPaypal(n,t){var i,r,u;payonePaypalData={mode:t.payoneMode,request:t.payoneRequest,responsetype:t.payoneResponsetype,portalid:t.payonePortalid,mid:t.payoneMid,aid:t.payoneAid,hash:t.payoneHash,encoding:t.payoneEncoding,language:t.payoneLanguage,recurrence:t.recurrence,amount:t.amount,customer_is_present:t.customer_is_present,successurl:t.successurl,errorurl:t.errorurl,backurl:t.backurl};frmPaypalData=t;i="?";for(r in payonePaypalData)payonePaypalData.hasOwnProperty(r)&&(i+=encodeURIComponent(r)+"="+encodeURIComponent(payonePaypalData[r])+"&");
1u="https://secure.pay1.de/client-api/"+i.substring(0,i.length-1);alert("abc "+u);window.location=u}function initFormInsertBank(){var n=$("#form-sub-payment-type-newbank");n.find('[data-field="payoneRequest"]').val()!==undefined&&(opt===undefined&&(opt={data:{}}),$("[id^='btn-choose-existing-bank-']").click(function(){chooseExistingBank(this)}),InitFormSubmit(n,function(n){ValidateNewBank(this,n)}),$("[id^='btn-bankAccountTypeId-']").click(function(){var n=this.id.replace("btn-bankAccountTypeId-","");$("#bankAccountTypeId").val(n);n==="1"?($("#bankAccountTypeId-1").removeClass("hidden"),$("#bankAccountTypeId-2").addClass("hidden")):($("#bankAccountTypeId-1").addClass("hidden"),$("#bankAccountTypeId-2").removeClass("hidden"))}))}function chooseExistingBank(n){var t=n.id.replace("btn-choose-existing-bank-","");$("#form-sub-payment-type-bank-list-"+t).submit()}function PaymentTypeChooseBankSuccess(n){n.result.Data.success?ShowSuccessMessage(!0,"Zahlart wurde erfolgreich geändert."):ShowErrMessage("Ein Fehler ist aufgetreten!")}function ValidateNewBank(n,t){if(t.IBAN&&(t.IBAN.indexOf(" ")!==-1||t.IBAN.indexOf("-")!==-1))return $("#iban-error-message").text("Bitte die IBAN ohne Leerzeichen eingeben."),$("#iban-error-message").fadeIn(),setTimeout(function(){$("#iban-error-message").fadeOut()},3e3),!1;$("#iban-error-message").hide();var i={mode:t.payoneMode,request:t.payoneRequest,responsetype:t.payoneResponsetype,portalid:t.payonePortalid,mid:t.payoneMid,aid:t.payoneAid,hash:t.payoneHash,encoding:t.payoneEncoding,language:t.payoneLanguage};t.bankAccountTypeId==="1"?(i.iban=t.IBAN,t.BIC!==undefined&&(i.bic=t.BIC)):(i.bankcountry=t.payoneBankcountry,i.bankaccount=t.baAccNo,i.bankcode=t.baBsc);frmBankData=t;PayoneCheckBank(i)}function PayoneCheckBank(n){var t,i,r;payoneBankData=$.extend(n,{callback_method:"PayoneBankCallback"});t="?";for(i in payoneBankData)payoneBankData.hasOwnProperty(i)&&(t+=encodeURIComponent(i)+"="+encodeURIComponent(payoneBankData[i])+"&");r="https://secure.pay1.de/client-api/"+t.substring(0,t.length-1);bankScript=$('<script type="text/javascript" src="'+r+'"><\/script>').appendTo("body")}function PayoneBankCallback(n){bankScript.detach();n.status==="VALID"?(frmBankData={source:frmBankData.source,webTaskTypeId:frmBankData.webTaskTypeId,valid:!0,accessToken:frmBankData.accessToken,paymentTypeId:frmBankData.paymentTypeId,paymentId:frmBankData.paymentId,orderProductId:frmBankData.orderProductId,newPayment:frmBankData.newPayment,owner:frmBankData.owner,bankAccountTypeId:frmBankData.bankAccountTypeId,iBAN:n.iban,bIC:n.bic,baAccNo:n.bankaccount,baBsc:n.bankcode},PaymentBankAccountInsertUpdate(frmBankData,function(n){UpdateDisplay(n);payoneContext=null}
1),frmBankData=null):UpdateDisplay({valid:!1,success:!1,ccsaved:!1,paymentId:null,paymentTypeId:null,source:frmBankData.source})}function InitFormSubmit(n,t){n.on("submit",function(i){if(i.preventDefault(),i.cancelBubble=!0,typeof t=="function"){var r=validForm(n);return r?t(r):ShowErrMessage("Bitte Eingaben prüfen.",2),!1}return validForm(n)?!0:(ShowErrMessage("Bitte Eingaben prüfen.",2),!1)})}function validForm(n){var t={};return n.find("input,select,textarea,fieldset").each(function(){var n=$(this),i=n.attr("data-field")||n.attr("data-control");t[i]=n.val()}),t}function SubmitFormInsertCc(n,t){if(iframes.isComplete())opt=optCheckout,payoneContext=optCheckout,payoneContext.pay1callback=payoneCardCallback,payoneContext.formdata=t,iframes.creditCardCheck("payoneCardCallback");else{$(".payoneError").text("Eingaben unvollständig. Bitte überprüfen Sie das Formular.");return}}function payoneCardCallback(n){try{if(typeof payoneContext.pay1callback=="function"&&n&&n.status==="VALID"){var t={paymentTypeId:203,paymentId:payoneContext.formdata.paymentId,owner:payoneContext.formdata.owner,portalId:request.portalid,pseudoCardPan:n.pseudocardpan,typeId:null,truncatedPan:n.truncatedcardpan,expireDt:null,source:payoneContext.formdata.source,orderProductId:payoneContext.formdata.orderProductId,AccessTokenGuid:payoneContext.formdata.accessToken,webTaskTypeId:payoneContext.formdata.webTaskTypeId};PaymentCreditCardInsertUpdate(t,function(n){UpdateDisplay(n);payoneContext=null})}}catch(i){ShowErrMessage(i.message)}}function PaymentCreditCardInsertUpdate(n,t){var r=n.source<2?"Checkout/":"Account/",u=n.paymentId>0?"UPDATE":"INSERT",f=u==="UPDATE"?"PaymentUpdateCreditCard":"PaymentInsertCreditCard",i=r+f;n.source==="3"&&(i="/Home/PaymentInsertCreditCardWebTask");CallAjax(i,n,function(n){n.Data.success?typeof t=="function"&&t($.extend(!0,n.Data,n)):ShowErrMessage("Fehler beim Speichern.",n.Data.errcode)})}function PaymentBankAccountInsertUpdate(n,t){var r=n.source<2?"Checkout/":"Account/",u=n.paymentId>0?"UPDATE":"INSERT",f=u==="UPDATE"?"PaymentUpdateBankAccount":"PaymentInsertBankAccount",i=r+f;n.source==="3"&&(i="/Home/PaymentInsertBankWebTask");CallAjax(i,n,function(n){n.Data.success?typeof t=="function"&&t($.extend(!0,n.Data,n)):ShowErrMessage("Fehler beim Speichern.",n.Data.errcode)})}function UpdateDisplay(n){var r=n.ccsaved,i=n.success,u=n.paymentId,f=n.paymentTypeId,t="";n.success?r?(t+=i?"Die Ãnderungen wurden erfolgreich gespeichert.":" aber ein Fehler ist aufgetreten bei Zahlart-Ãnderung.",i?n.source===3?($("#webtask").text(""),$("#resultmsg").html('<h2 class="small- no - mt">Bestätigung<\/h2>Der Web-Auftrag wurde erfolgreich abgeschlossen.'),$("#result").removeClass("hidden")):ShowSuccessMessage(!0,t):ShowErrMessage(t)):(t+="Einen Fehler ist aufgetreten, Die Ãnderungen wurden nicht gespeichert.",ShowErrMessage(t)):(t+="Die Zahlart-Daten sind ungültig.",ShowErrMessage(t));i&&n.source<3&&setTimeout(RefreshList(),1e3)}function RefreshList(){window.location.reload(!0)}function ShowErrMessage(n,t){var i="";n!==undefined&&(i=n);t!==undefined&&(i+=", code:"+t);$("#alert-message-payment").text(i);$("#alert-message-payment").hide();$("#alert-message-payment").delay(500).fadeIn();$("#alert-message-payment").delay(2e3).fadeOut()}function ShowSuccessMessage(n,t,i){var r="";t!==undefined&&(r=t);i!==undefined&&(r+=", code:"+i);$("#alert-message-payment").text(r);$("#alert-message-payment").hide();$("#alert-message-payment").delay(500).fadeIn();$("#alert-message-payment").delay(3e3).fadeOut();n&&window.location.reload(!0)}function CallAjax(n,t,i,r){var u=0,f=("https:"===document.location.protocol?"https":"http")+"://"+document.location.host+"/{endpoint}";return(r=$.extend(!0,{showLoading:!0,newRecord:!1},r),r.newRecord&&typeof i=="function")?(i(),!0):(r.showLoading&&(u++,Loading(!0)),r=$.extend(r,{url:f.replace("{endpoint}",n),type:"POST",contentType:"application/json; charset=utf-8",data:JSON.stringify(t),success:function(n){r.showLoading&&(u--,u===0&&Loading(!1));typeof i=="function"&&(n.options?i(n.result,n.options):i(n.result))},error:function(){r.showLoading&&(u--,u===0&&Loading(!1))}}),$.ajax(r))}function Loading(n){n=n||!1;var t=$("body img.pplus-loading");n?(t.length===0&&(t=$("body").append('<img src="/jpList/img/ajax-loader.gif" alt="loading ..." class="pplus-loading" />').find("img.pplus-loading")),t.css({top:parseInt($(window).height()/2+$(window).scrollTop()-18)+"px",left:parseInt($(window).width()/2+$(window).scrollLeft()-18)+"px"})):t.detach()}function ChooseCreditCard(n){var r=0,t=n.split("-"),i=t[0],e=parseInt(t[1]),u,f;i==="account"&&(r=t[2]);u={selectedPaymentId:e,orderProductId:r};f={source:i};CallAjax("/"+i+"/PaymentTypeChooseCreditCard",u,function(n){n.Data.success?ShowSuccessMessage(!0,"Zahlart wurde erfolgreich geändert."):ShowErrMessage("Fehler, Zahlart wurde nicht geändert.")},f)}function PaymentTypeCreditListUpdateSuccess(){$("#form-sub-payment-type-creditcard-list").submit()}$(document).ready(function(){initFormInsertCC();initFormInsertBank();initFormInsertPaypal();$(document).on("click",'a.prp-button.primary[href*="Bestellen"]',function(n){if(!validatePaymentSelection())return n.preventDefault(),n.stopPropagation(),!1})});var opt,payoneContext=null,paymentId,paymentTypeId,iframes,config=new ConfigCc,request=null,optCheckout={source:"1"};var payonePaypalData=null,frmPaypalData=null,paypalScript=null;var payoneBankData=null,frmBankData=null,bankScript=null
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.