PageSourceSearch

https://lepoilu.com/_app/immutable/nodes/10.5Ab8k-gR.js

js lepoilu.com collected 2026-10-02 01:34:57 UTC 3,997 bytes, 1 lines download raw bytes

1import"../chunks/DsnmJJEf.js";import"../chunks/CM0mUqaL.js";import{aD as ae,av as p,aw as re,t as f,i as v,aE as se,aB as t,ay as r,ax as te,aA as a,A as c,M as O,az as b,a7 as h}from"../chunks/CEp7b2jo.js";import{a as n}from"../chunks/D37NAhgW.js";import{i as V}from"../chunks/CAlEnvf1.js";import{e as ie,i as oe}from"../chunks/DFzDiyen.js";import{e as ne}from"../chunks/C_gJdw-j.js";import{t as B,f as le,a as ve}from"../chunks/B673oxmB.js";import{i as ce}from"../chunks/DwoKfdkE.js";import{s as pe,a as de}from"../chunks/CSffeRUD.js";import{p as ue}from"../chunks/D5LQXlJz.js";import{a as L,G as me,s as fe}from"../chunks/C-BVDEnj.js";var he=p('<li class="svelte-123zevn"><i class="fa-solid fa-check svelte-123zevn"></i> </li>'),_e=p('<i class="fa-solid fa-spinner fa-spin"></i> Traitement...',1),ge=p('Payer avec Stripe <i class="fa-solid fa-arrow-right"></i>',1),ze=p('<p class="error-text svelte-123zevn"> </p>'),ye=p('<div class="page-container svelte-123zevn"><div class="checkout-wrapper svelte-123zevn"><div class="header-section svelte-123zevn"><h1 class="svelte-123zevn">Finalise ta commande</h1> <p class="svelte-123zevn">Connecte-toi et paye en toute sécurité.</p></div> <div class="checkout-grid centered-grid svelte-123zevn"><div class="summary-card svelte-123zevn"><div class="plan-header svelte-123zevn"><h2 class="svelte-123zevn"> </h2> <div class="price-tag svelte-123zevn"> </div></div> <p class="plan-desc svelte-123zevn"> </p> <div class="divider svelte-123zevn"></div> <ul class="features-list svelte-123zevn"></ul> <div class="total-row svelte-123zevn"><span>Total à payer</span> <span> </span></div> <div class="actions svelte-123zevn"><button class="btn-pay svelte-123zevn"><!></button> <!> <p class="secure-text-small svelte-123zevn"><i class="fa-solid fa-lock"></i> Paiement sécurisé SSL.</p></div></div></div></div></div>');function Te(M,q){ae(q,!1);const $=()=>pe(ue,"$page",D),[D,F]=de();let J=$().url.searchParams.get("plan");const A={pack10:{id:"pack10",name:"Pack 10 Annonces",price:"19,99 €",description:"Idéal pour les organisateurs réguliers.",features:["10 crédits d'annonces Premium","Validité illimitée","Modération prioritaire","Économie de 50%"]},pro:{id:"pro",name:"Pro (mensuel)",price:"29,99 €",description:"La solution ultime pour les professionnels.",features:["Annonces illimitées pendant 30j","Import CSV en masse","Badge Organisateur Vérifié","Support dédié 7j/7"]}};let i=A[J]||A.pack10,N=$().url.searchParams.get("from_app")==="true",d=O(!1),u=O(null);async function U(){h(d,!0),h(u,null);try{let e=L.currentUser;const s=new me;if(!e||e.isAnonymous)try{e=(await fe(L,s)).user}catch(G){throw console.error("Auth Cancelled/Error",G),new Error("Connexion Google requise pour acheter des crédits.")}const o=i.id==="pack10"?"credit_pack":"unlimited_pass",m=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:o,planId:i.id,fromApp:N,data:{userId:e.uid,email:e.email}})}),P=await m.json();if(!m.ok)throw new Error(P.error||"Erreur lors du paiement");P.url&&(window.location.href=P.url)}catch(e){console.error("Erreur:",e),h(u,e.message)}finally{h(d,!1)}}ce();var _=ye();re(e=>{f(()=>te.title=`Paiement - ${i.name??""}`)});var E=r(_),S=r(E),I=t(S,2),g=r(I),z=r(g),y=r(z),W=r(y,!0);a(y);
1var C=t(y,2),H=r(C,!0);a(C),a(z);var k=t(z,2),K=r(k,!0);a(k);var w=t(k,4);ie(w,5,()=>i.features,oe,(e,s)=>{var o=he(),m=t(r(o));a(o),f(()=>n(m,` ${c(s)??""}`)),v(e,o)}),a(w);var x=t(w,2),j=t(r(x),2),Q=r(j,!0);a(j),a(x);var T=t(x,2),l=r(T),R=r(l);{var X=e=>{var s=_e();b(),v(e,s)},Y=e=>{var s=ge();b(),v(e,s)};V(R,e=>{c(d)?e(X):e(Y,!1)})}a(l);var Z=t(l,2);{var ee=e=>{var s=ze(),o=r(s,!0);a(s),f(()=>n(o,c(u))),v(e,s)};V(Z,e=>{c(u)&&e(ee)})}b(2),a(T),a(g),a(I),a(E),a(_),f(()=>{n(W,i.name),n(H,i.price),n(K,i.description),n(Q,i.price),l.disabled=c(d)}),B(1,S,()=>le,()=>({y:-20,duration:800})),ne("click",l,U),B(1,g,()=>ve,()=>({delay:200})),v(M,_),se(),F()}export{Te as component};

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.