PageSourceSearch

https://www.alcina-professional.com/cache-buster-1791368921/static/alcina/js/177.09afe6eaa8c519417c01.js

js alcina-professional.com collected 2026-10-09 21:28:15 UTC 2,716 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[177],{2177:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});t=a(4369),t={name:"CustomPayment",mixins:[a.n(t)()],props:{paypalPaymentErrorUrl:{type:String,required:!0},paypalStartPaymentUrl:{type:String,required:!0},paypalCommitOrderUrl:{type:String,required:!0},locale:{type:String,default:"en_US"},errorMessage:{default:"Unexpected error, please try again later.",type:String}},data(){return{activePayment:"",isLoading:!1}},mounted(){if("undefined"!=typeof paypal){const t=this.paypalPaymentErrorUrl,a=this.paypalStartPaymentUrl,o=this.paypalCommitOrderUrl;var e=this.locale;const n=this.$refs["defaultCheckout"];n.addEventListener("click",()=>{setTimeout(()=>{n.disabled=!1;const e=document.querySelectorAll(".input--is-invalid")[0];e&&(this.$eventBus.$emit("set-stand-alone-loading-box-in-active"),e.scrollIntoView({behavior:"smooth",block:"center"}))},1e3)});const r=this;paypal.Buttons({fundingSource:paypal.FUNDING.PAYPAL,style:{layout:"vertical",color:"white",shape:"rect",label:"pay"},locale:e,onCancel(){window.location.replace(t)},createOrder(){return window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"paypalCheckoutStart"}),fetch(a,{method:"post",headers:{"content-type":"application/json"}}).then(e=>e.json()).then(e=>e.id)},onApprove(e){const t=document.createElement("form");document.body.appendChild(t),t.method="POST",t.action=o;const a=document.createElement("input");a.type="hidden",a.name="orderID",a.value=e.orderID,t.appendChild(a);const n=document.createElement("input");n.type="hidden",n.name="payerID",n.value=e.payerID,t.appendChild(n);const r=document.createElement("input");r.type="hidden",r.name="paymentID",r.value=e.paymentID,t.appendChild(r),t.submit()},onInit(e,t){t.disable(),document.querySelector("#checkout-confirm-privacy")?document.querySelector("#checkout-confirm-privacy").addEventListener("change",e=>{e.target.checked?t.enable():t.disable()}):(t.enable(),r.$el.closest("form").addEventListener("submit",e=>{e.preventDefault(),e.stopPropagation()}))},onClick(){const e=document.querySelector(".button--paypal");e&&e.classList.add("is-disabled"),document.querySelector("#checkout-confirm-privacy")&&!document.querySelector("#checkout-confirm-privacy").checked&&n.click()}}).render(this.$refs["paypal-smart-button"])}}};const n=(0,a(1900).Z)(t,function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("button",{ref:"defaultCheckout",staticClass:"button button--simple text-center w-full xl:w-auto relative overflow-hidden button--paypal"},[e._t("default"),e._v(" "),t("div",{ref:"paypal-smart-button",attrs:{id:"paypal-smart-button"}})],2)},[],!1,null,"022c98b2",null).exports}}]);

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.