PageSourceSearch

https://www.cloture-electrique.expert/assets/footBasketIndex.js?v=a0stFCPMLn2lFtCSvjHS_xLNPYObdU-oCBoZ34U0bH0

js cloture-electrique.expert collected 2026-10-07 03:17:20 UTC 8,781 bytes, 1 lines download raw bytes

1(()=>{ForSellers.register("basket.shoppingcartitem",{init({alpine:e}){e.data("shoppingcartitem",({initialQuantity:t,updateUrl:a})=>({quantity:t,debounceTimeout:null,init(){this.$watch("quantity",async r=>{clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.updateQuantity(r)},500)})},updateQuantity(r){if(r===t)return;let n=new URL(a,window.location.origin);n.searchParams.set("quantity",r),window.location.href=n.toString()}}))}});ForSellers.register("Paypal.LoadScript",{async init({loader:e}){let a=await e.loadExternalScript("https://unpkg.com/@paypal/[email protected]/dist/iife/paypal-js.min.js");a&&console.error("Error loading external PayPal script:",a.message)}});ForSellers.register("Paypal.Buttons",{fetch:{},alpine:{},loader:{},paypal:{},articleExpressQuantity:1,payPalCreditCardButtonData:{},payPalCreditCardCardFields:{},payPalDefaultStyle:{},payPalCreditCardStyle:{},payPalFraudNetScriptUrl:"https://c.paypal.com/da/r/fb.js",async init({alpine:e,fetch:t,loader:a}){ForSellers.Paypal.Buttons.alpine=e,ForSellers.Paypal.Buttons.fetch=t,ForSellers.Paypal.Buttons.loader=a,ForSellers.Paypal.Buttons.payPalDefaultStyle=this.getPayPalDefaultButtonStyle(),ForSellers.Paypal.Buttons.payPalCreditCardStyle=this.getPayPalCreditCardFieldStyle();let r=[{alpineXDataId:"paypalDefaultButton",scriptSettingId:"PayPalScriptSettings-Default",addLogic:this.addDefaultButtonLogic},{alpineXDataId:"paypalCreditCard",scriptSettingId:"PayPalScriptSettings-CreditCard",addLogic:this.addCreditCardLogic},{alpineXDataId:"paypalPayLaterMessaging",scriptSettingId:"PayPalScriptSettings-PayPalMessaging",addLogic:null},{alpineXDataId:"paypalPayUponInvoice",scriptSettingId:"PayPalScriptSettings-PayPalPayUponInvoice",addLogic:this.addPayUponInvoiceLogic}];for(let{alpineXDataId:n,scriptSettingId:d,addLogic:u}of r){if(n==="paypalPayLaterMessaging"){await this.initializePaypalPayLaterMessaging(n,d);continue}await this.initializePayPal(n,d,u)}},async initializePayPal(e,t,a){ForSellers.Paypal.Buttons.alpine.data(e,()=>({async init(){let r={};try{let n=document.getElementById(t);r=JSON.parse(n.textContent),ForSellers.Paypal.Buttons.paypal=await window.paypalLoadScript(r),await a()}catch(n){console.error("Error loading PayPal script: "+t,n)}}}))},async addDefaultButtonLogic(){let e=document.getElementById("PayPalDefaultButtonData"),t=JSON.parse(e.innerText);ForSellers.Paypal.Buttons.paypal.Buttons({style:ForSellers.Paypal.Buttons.payPalDefaultStyle,fundingSource:ForSellers.Paypal.Buttons.paypal.FUNDING[t.fundingSource],createOrder:async function(){return await Alpine.store("checkout").withLoadingState(async()=>{let[a,r]=await ForSellers.Paypal.Buttons.fetch.get({path:t.createOrderUrl,skipLanguageInUrl:!0});return a?null:r.id})},onApprove:async function(a,r){let[n,d]=await ForSellers.Paypal.Buttons.fetch.post({path:t.redirectUrl,skipLanguageInUrl:!0,payload:{OrderDataId:a.orderID}});return n?r.restart():(Alpine.store("checkout").startLoading(),location.replace(d))}}).render("#paypalDefaultButtonContent")},async addPayUponInvoiceLogic(){if(!window.PAYPAL?.asyncData){let e=await ForSellers.Paypal.Buttons.loader.loadExternalScript(ForSellers.Paypal.Buttons.payPalFraudNetScriptUrl);(e||!window.PAYPAL?.asyncData)&&console.error("Error loading external PayPalFraudNet script:",e?.message||"PayPalFraudNet script not available")}ForSellers.Paypal.Buttons.paypal.Legal({fundingSource:"PayUponInvoice"}).render("#paypal-payuponinvoice-legal-container")},async addCreditCardLogic(){let e=document.getElementById("PayPalCreditCardButtonData");ForSellers.Paypal.Buttons.payPalCreditCardButtonData=JSON.parse(e.innerText),ForSellers.Paypal.Buttons.payPalCreditCardCardFields=ForSellers.Paypal.Buttons.paypal.CardFields({style:ForSellers.Paypal.Buttons.payPalCreditCardStyle,createOrder:async function(){return await Alpine.store("checkout").withLoadingState(async()=>{let[t,a]=await ForSellers.Paypal.Buttons.fetch.get({path:ForSellers.Paypal.Buttons.payPalCreditCardButtonData.createOrderUrl,skipLanguageInUrl:!0});return t?null:a.id})},onApprove:async function(t,a){return await Alpine.store("checkout").withLoadingState(async()=>
1{if(t.liabilityShift&&t.liabilityShift!=="POSSIBLE"){window.location.replace(ForSellers.Paypal.Buttons.payPalCreditCardButtonData.errorHandlerUrl+"?error="+JSON.stringify(t));return}let[r,n]=await ForSellers.Paypal.Buttons.fetch.get({path:ForSellers.Paypal.Buttons.payPalCreditCardButtonData.validateRedirectUrl+"?orderDataId="+t.orderID,skipLanguageInUrl:!0});if(r)return null;n.redirectUrl||window.location.replace(ForSellers.Paypal.Buttons.payPalCreditCardButtonData.errorHandlerUrl+"?error=MissingRedirectUrl"),window.location.replace(n.redirectUrl)})},onCancel:function(){Alpine.store("checkout").stopLoading()},onError:function(t){console.log("PayPal-Exception: "+t.message),window.location.replace(ForSellers.Paypal.Buttons.payPalCreditCardButtonData.errorHandlerUrl+"?error="+JSON.stringify(t.message))}}),ForSellers.Paypal.Buttons.payPalCreditCardCardFields.isEligible()?(ForSellers.Paypal.Buttons.payPalCreditCardCardFields.NumberField({placeholder:"4111 1111 1111 1111"}).render(document.getElementById("card-number-container")),ForSellers.Paypal.Buttons.payPalCreditCardCardFields.ExpiryField({placeholder:"MM/YY"}).render(document.getElementById("card-expiry-container")),ForSellers.Paypal.Buttons.payPalCreditCardCardFields.CVVField({placeholder:"123"}).render(document.getElementById("card-cvv-container"))):document.getElementById("paypalCreditCardContainer").style="display: none"},async initializePaypalPayLaterMessaging(e,t){ForSellers.Paypal.Buttons.alpine.data(e,()=>({async init(){let a=document.getElementById(t);if(a){let r=JSON.parse(a.textContent);r&&await window.paypalLoadScript(r)}}}))},getPayPalDefaultButtonStyle(){return JSON.parse(document.getElementById("default-button-styling")?.textContent||"{}")},getPayPalCreditCardFieldStyle(){return JSON.parse(document.getElementById("credit-card-styling")?.textContent||"{}")}});ForSellers.registerHook("CheckoutRefresh",async({step:e,state:t,formValues:a,cancelCheckoutRefresh:r})=>{e==="Payment"&&t.paymentConditionId===46&&p(e,t),e==="Payment"&&(t.paymentConditionId===49||t.paymentConditionId===54)&&y(a),e==="Payment"&&t.paymentConditionId===45&&l(a);function p(i,o){if(i==="Payment"&&o.paymentConditionId===46){let s=ForSellers.Paypal.Buttons.payPalCreditCardCardFields;s&&typeof s.getState=="function"&&(s.getState().then(S=>{if(S.isFormValid){let c=document.getElementById("card-field-values");s.submit({contingencies:["SCA_ALWAYS"],cardholderName:c.querySelector("#FullName").value,billingAddress:{addressLine1:c.querySelector("#AddressLine").value,addressLine2:c.querySelector("#AddressAddition").value,adminArea2:c.querySelector("#StateCode").value,adminArea1:c.querySelector("#City").value,postalCode:c.querySelector("#PostalCode").value,countryCode:c.querySelector("#CountryCode").value}}).then(()=>{}).catch(g=>{console.log("PayPal-Exception: "+g.message),window.location.replace(ForSellers.Paypal.Buttons.payPalCreditCardButtonData.errorHandlerUrl+"?error="+JSON.stringify(g.message))})}}),r())}}function y(i){let o=document.getElementById("BuyerName");o&&(i["PaymentCondition"+o.name]=o.type==="checkbox"?o.checked:o.value)}function l(i){let o=document.getElementById("PhoneNumber");o&&(i["PaymentCondition"+o.name]=o.type==="checkbox"?o.checked:o.value);let s=document.getElementById("DateOfBirth");s&&(i["PaymentCondition"+s.name]=s.value)}});ForSellers.register("paypal.expressButton",{init({alpine:e,fetch:t}){e.data("paypalExpressButton",({settingsElement:a,configuratorType:r,createOrderUrl:n,redirectUrl:d,configurationError:u,style:P})=>({async init(){let p=JSON.parse(document.querySelector(a)?.textContent);(await window.paypalLoadScript(p)).Buttons({style:P,createOrder:async()=>{let[l,i]=await t.post({path:n,skipLanguageInUrl:!0,payload:await this.getPayload()});return l?null:i.id},onApprove:async(l,i)=>{let[o,s]=await t.post({path:d,skipLanguageInUrl:!0,payload:await this.getPayload({orderDataId:l.orderID})});return o?i.restart():location.href=s}}).render(this.$refs.button)},async getPayload(p=null){let y=this.$store.buybox;if(!y)return p;let l;if(r){try{l=await this.getConfiguration()}catch(i){console.error("Failed to get configuration",i),l=null}if(!l)throw this.$store.messages.showToast(u,"danger"),new Error("Failed to get configuration.")}return{articleId:y.articleId,quantity:y.quantity,configuratorType:r,configuration:JSON.stringify(l),...p}},async getConfiguration(){return this.$store.voucherConfigurator?.isVoucherConfigurator?this.$store.voucherConfigurator.configuration:this.$store.productC
1onfigurator?.isProductConfigurator?await this.$store.productConfigurator.getConfiguration():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.