Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ (()=>{function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,c,a,i=[],d=!0,l=!1;try{if(c=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;d=!1}else for(;!(d=(o=c.call(t)).done)&&(i.push(o.value),i.length!==n);d=!0);}catch(e){l=!0,r=e}finally{try{if(!d&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t0){n.forEach(function(e){e.hasAttribute("data-ppcp-button-initialized")||e.addEventListener("click",function(n){e.hasAttribute("data-ppcp-button-initialized")&&void 0!==window.PAYPAL||n.preventDefault()})}),[t.PAYPAL_JS_ID,"signup-js","biz-js"].forEach(function(e){var n=document.getElementById(e);n&&n.parentNode.removeChild(n),void 0!==window.PAYPAL&&delete window.PAYPAL});var o=document.createElement("script");o.id=t.PAYPAL_JS_ID,o.src=PayPalCommerceGatewayOnboarding.paypal_js_url,document.body.appendChild(o),t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){n.forEach(function(e){e.setAttribute("data-ppcp-button-initialized","true")}),"undefined"!==window.PAYPAL.apps.Signup&&window.PAYPAL.apps.Signup.render()},1e3)}var r=function(){return jQuery("*[data-onboarding-option]")};r().on("click",function(t){var o;t.preventDefault(),r().each(function(e,n){n.setAttribute("disabled","disabled")}),n.forEach(function(e){e.removeAttribute("href"),e.setAttribute("disabled","disabled"),jQuery('').insertAfter(e)}),fetch(PayPalCommerceGatewayOnboarding.update_signup_links_endpoint,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({nonce:PayPalCommerceGatewayOnboarding.update_signup_links_nonce,settings:(o={},r().each(function(e,n){var t=jQuery(n).data("onboardingOption");o[t]=n.checked}),o)})}).then(function(e){return e.json()}).then(function(t){t.success?(n.forEach(function(n){for(var o=0,r=Object.entries(t.data.signup_links);o"),r.scrollIntoView(),window.scrollBy(0,-120)}}}),t.init()}()})();