PageSourceSearch

https://www.clikodoc.com/chunk-BLX3HOTK.js

js clikodoc.com collected 2026-10-02 15:22:27 UTC 10,247 bytes, 1 lines download raw bytes

1import{a as Ie}from"./chunk-6QGMT6BU.js";import{a as Pe}from"./chunk-5JYVPT64.js";import{a as we}from"./chunk-TNUYI5D2.js";import{b as Ee}from"./chunk-HGWQEY5X.js";import{c as Le}from"./chunk-SWXVRSYG.js";import{b as Ce}from"./chunk-62SROWCZ.js";import{a as ye,d as Me}from"./chunk-JSADYM7U.js";import{e as Se}from"./chunk-QN3C3JBS.js";import{a as ve}from"./chunk-UKR5OZGK.js";import{b as xe}from"./chunk-J2LP754D.js";import{c as be}from"./chunk-4PQWGGVL.js";import{d as he}from"./chunk-HTKZ2MRM.js";import{a as de,b as ce}from"./chunk-GA4V4KUG.js";import{a as ue}from"./chunk-RS5IWN7K.js";import{b as De}from"./chunk-76MUYBKL.js";import{b as _e}from"./chunk-U4GJVFX3.js";import{b as re}from"./chunk-WIUJAF76.js";import{g as se,j as pe}from"./chunk-PLJOCKL2.js";import{j as Q,n as X}from"./chunk-EWZZCNL2.js";import"./chunk-6ZLDBIST.js";import{d as le}from"./chunk-24MWP4UU.js";import{g as K}from"./chunk-O5J5YMMC.js";import{b as ie,c as ne}from"./chunk-KRIAO6QJ.js";import{a as me}from"./chunk-NYWXLI4U.js";import"./chunk-2IURLDKA.js";import{a as Y,b as ee,f as te}from"./chunk-42KGAGL2.js";import"./chunk-NY4RBHJF.js";import{b as ae}from"./chunk-YQJGS37C.js";import"./chunk-BKXXNFNY.js";import{a as oe}from"./chunk-HF6KAANO.js";import{A as W,x as $,z as q}from"./chunk-TZCZQJJO.js";import{a as fe,b as ge}from"./chunk-CYTQM7OA.js";import{$ as G}from"./chunk-M55MF244.js";import{b as N,d as Z,e as J,h as v}from"./chunk-F5GJAPD3.js";import{a as H,c as U,m as z,o as V}from"./chunk-44ZWPMA3.js";import{Cb as k,Dd as O,Ec as r,Fc as M,Gc as m,Jb as g,Jd as A,Pc as b,Tb as y,Uc as s,Vc as d,Wc as S,_b as _,bd as F,ca as D,dc as a,ec as o,fb as I,fc as l,g as C,ia as u,jc as T,lb as n,mb as f,mc as j,oc as h,rc as B,ta as E,ua as P,va as w,wa as L,yd as R}from"./chunk-RFW4ZZRK.js";import{h as x}from"./chunk-WWX6BADO.js";var ke=(()=>{class t{constructor(){this._httpClient=u(U)}getRequestOptionsWithoutObserver(){return{headers:new H({Accept:"application/json"}),withCredentials:!0}}loadPaymentData(e){var i=`//${v.API_URL}/api/loadPaymentData`,c={uuid:e};return this._httpClient.post(`${i}`,c,this.getRequestOptionsWithoutObserver())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Te=t=>({amount:t});function He(t,p){t&1&&(a(0,"div",15),l(1,"mat-spinner",21),o())}function Ue(t,p){if(t&1&&(a(0,"div",17),r(1),o()),t&2){let e=h(3);n(),M(e.stripeError)}}function ze(t,p){t&1&&l(0,"mat-spinner",20)}function Ve(t,p){if(t&1){let e=T();a(0,"div",11)(1,"div",14),r(2),s(3,"transloco"),o(),g(4,He,2,0,"div",15),l(5,"div",16),g(6,Ue,2,1,"div",17),a(7,"div",18)(8,"button",19),j("click",function(){E(e);let c=h(2);return P(c.handleStripePayment())}),g(9,ze,1,0,"mat-spinner",20),a(10,"span"),r(11),s(12,"transloco"),o()()()()}if(t&2){let e=h(2);n(2),m(" ",S(3,6,"mangopay_online_payment_page.to_pay_amount",b(11,Te,e.pageData.amount))," "),n(2),_(e.stripeLoading?4:-1),n(2),_(e.stripeError?6:-1),n(2),y("disabled",e.stripeLoading||e.stripeProcessing),n(),_(e.stripeProcessing?9:-1),n(2),M(d(12,9,"mangopay_online_payment_page.btn_pay_amount"))}}function $e(t,p){if(t&1&&(a(0,"div",12)(1,"div",14),r(2),s(3,"transloco"),o(),a(4,"div",7)(5,"a",22)(6,"mat-icon",23),w(),a(7,"svg",24),l(8,"path",25),o()(),L(),a(9,"span",26),r(10),s(11,"transloco"),o()()(),a(12,"div",7),l(13,"img",27),o()()),t&2){let e=h(2);n(2),m(" ",S(3,3,"mangopay_online_payment_page.to_pay_amount",b(8,Te,e.pageData.payment_info.value))," "),n(3),B("href",e.pageData.redirect_url,I),n(5),m(" ",d(11,6,"mangopay_online_payment_page.btn_pay_amount")," ")}}function qe(t,p){t&1&&(a(0,"div",13)(1,"div",28),r(2),s(3,"transloco"),o()()),t&2&&(n(2),m(" ",d(3,1,"mangopay_online_payment_page.link_not_valid")," "))}function We(t,p){t&1&&(a(0,"div",13)(1,"div",28),r(2),s(3,"transloco"),o()()),t&2&&(n(2),m(" ",d(3,1,"mangopay_online_payment_page.payment_done")," "))}function Ge(t,p){t&1&&(a(0,"div",13)(1,"div",28),r(2),s(3,"transloco"),o()()),t&2&&(n(2),m(" ",d(3,1,"mangopay_online_payment_page.link_not_valid")," "))}function Ke(t,p){if(t&1&&(a(0,"div",10),g(1,Ve,13,13,"div",11)(2,$e,14,10,"div",12)(3,qe,4,3,"div",13)(4,We,4,3,"div",13)(5,Ge,4,3,"div",13),o()),t&2){let e=h();n(),_(e.pageData&&e.pageData.status&&e.pageData.status=="stripe"?1:e.pageData&&e.pageData.status&&e.pageData.status=="success"&&e.pageData.redirect_url&&e.pageData.redirect_url!=""?2:e.pageData&&e.pageData.status&&(e.pageData.status=="not_found"||e.pageData.status=="zero_amount")?3:e.pageData&&e.pageData.status&&e.pageData.status=="paid"?4:5)}}var je=(()=>{class t{constructor(e,i,c,Be,Fe,Re){if(this.authService=e,this.translocoService=i,this.router=c,this._matSnackBar=Be,this.fb=Fe,this.route=Re,this.apiService=u(ke),this._changeDetectorRef=u(F),this._dateLocaleService=u(we),this.loader=u(oe),this.APP_HOME=v.APP_HOME,this.selectedLanguage="fr",this.pageData={},this.stripe=null,this.stripeElements=null,this.stripeLoading=!1,this.stripeProcessing=!1,this.stripeError="",this.co
1de="",this.authService.currentUserValue){var Oe=this.authService.currentUserValue;this.user=Oe}this.selectedLanguage=this.translocoService.getActiveLang(),this.setLuxonLocale(),this.isDataLoadedSubject=new C(!1),this.isDataLoaded$=this.isDataLoadedSubject.asObservable()}ngOnInit(){this.loader.show("Chargement en cours. Veuillez patienter\u2026"),this.sub=this.route.params.subscribe(e=>{e.code&&e.code!=""&&(this.code=e.code),this.authService.getCSRFTokenForHome().subscribe(i=>{this.loadData(this.code)})})}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}loadData(e){this.apiService.loadPaymentData(e).subscribe(i=>{this.pageData=i,this.loader.hide(),this.isDataLoadedSubject.next(!0),i.status==="stripe"&&setTimeout(()=>this.initStripe(),0)})}initStripe(){return x(this,null,function*(){this.stripeLoading=!0,this._changeDetectorRef.detectChanges(),this.stripe=yield ue(this.pageData.stripe_public_key),this.stripeElements=this.stripe.elements({clientSecret:this.pageData.client_secret,locale:this.selectedLanguage,appearance:{theme:"flat",variables:{colorPrimary:"#31A6DF",colorBackground:"#ffffff",colorText:"#1d2939",colorDanger:"#F97066",colorTextSecondary:"#667085",colorTextPlaceholder:"#98a2b3",fontFamily:"Poppins, ui-sans-serif, system-ui, sans-serif",fontSizeBase:"14px",borderRadius:"8px",spacingUnit:"4px"},rules:{".Input":{border:"1px solid #d0d5dd",boxShadow:"none",padding:"10px 12px"},".Input:focus":{border:"1px solid #31A6DF",boxShadow:"0 0 0 3px rgba(49,166,223,0.15)",outline:"none"},".Input--invalid":{border:"1px solid #F97066",boxShadow:"none"},".Label":{fontSize:"13px",fontWeight:"500",color:"#344054",marginBottom:"4px"},".Error":{fontSize:"12px",color:"#F97066"}}}}),this.stripeElements.create("payment",{wallets:{link:"never"}}).mount("#stripe-payment-element"),this.stripeLoading=!1,this._changeDetectorRef.detectChanges()})}handleStripePayment(){return x(this,null,function*(){if(!this.stripe||!this.stripeElements)return;this.stripeProcessing=!0,this.stripeError="",this._changeDetectorRef.detectChanges();let e=`${v.APP_HOME}/stripetransaction/${this.pageData.payment_info.uuid}`,{error:i}=yield this.stripe.confirmPayment({elements:this.stripeElements,confirmParams:{return_url:e},redirect:"if_required"});i?(this.stripeError=i.message||"Une erreur est survenue.",this.stripeProcessing=!1,this._changeDetectorRef.detectChanges()):window.location.href=e})}notyMessageError(e,i){this._matSnackBar.open(e,"OK",{verticalPosition:"top",horizontalPosition:"end",duration:5e3})}showMenuItem(e){var i=!1;return this.user&&e&&parseInt(e)>0&&(i=Pe.isAccess(this.user,parseInt(e))),i}
1setLuxonLocale(){le.local().setLocale(this.selectedLanguage)}static{this.\u0275fac=function(i){return new(i||t)(f(ae),f(N),f(V),f(me),f($),f(z))}}static{this.\u0275cmp=k({type:t,selectors:[["app-paiement-en-ligne"]],decls:15,vars:6,consts:[[1,"mt-0","mb-0","block"],[1,"bg-white","mb-20","md:mb-16"],[1,"mx-auto","max-w-[1200px]","md:px-4","pt-4","md:pb-4"],[1,"mx-auto","max-w-full","sm:max-w-[600px]","px-4","pt-4","pb-4"],[1,"grid","grid-cols-1","gap-4"],[1,"col-span-12"],[1,"w-full","flex","flex-col","gap-[8px]"],[1,"w-full","flex","flex-initial","justify-center","items-center"],[1,"w-full","text-center","text-tertiary-500","text-base","md:text-lg","font-bold","font-['Montserrat']","leading-6"],["class","rounded-[12px] border border-slate-200 bg-white p-4 md:p-4",4,"ngIf"],[1,"rounded-[12px]","border","border-slate-200","bg-white","p-4","md:p-4"],[1,"w-full","flex","flex-col","gap-6"],[1,"w-full","flex","flex-col","md:flex-col","justify-center","items-center","gap-8"],[1,"w-full","flex","flex-col","md:flex-col","justify-start","items-start","gap-4"],[1,"w-full","flex","flex-initial","text-info-value","justify-center","items-center","text-xl"],[1,"w-full","flex","justify-center","items-center","py-4"],["id","stripe-payment-element"],[1,"text-red-600","text-sm","text-center"],[1,"w-full","flex","justify-center"],["mat-flat-button","","color","primary",1,"nova-square-button-palate",3,"click","disabled"],["diameter","20",1,"inline-block","mr-2"],["diameter","32"],["mat-flat-button","","color","primary",1,"nova-square-button-palate",3,"href"],[1,""],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"size-5"],["stroke-linecap","round","stroke-linejoin","round","d","M14.25 7.756a4.5 4.5 0 1 0 0 8.488M7.5 10.5h5.25m-5.25 3h5.25M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],[1,"ml-2","mr-1"],["src","images/home/powered-by-mangopay.png",2,"max-height","100px","max-width","100%"],[1,"justify-start","text-info-value"]],template:function(i,c){i&1&&(l(0,"mat-divider",0),a(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8),r(9),s(10,"transloco"),o()()()(),a(11,"div",5),g(12,Ke,6,1,"div",9),s(13,"async"),o()()()()(),l(14,"home-footer")),i&2&&(n(9),m(" ",d(10,2,"mangopay_online_payment_page.page_title")," "),n(3),y("ngIf",d(13,4,c.isDataLoaded$)))},dependencies:[A,R,O,q,W,he,Se,K,ce,de,_e,te,ee,Y,ve,xe,ne,ie,G,se,ye,Me,Q,X,be,re,pe,Le,J,Z,Ce,De,Ee,Ie,ge,fe],styles:["[_nghost-%COMP%]{display:block;background:#fff}"]})}}return t})();var Zt=[{path:"",component:je}];export{Zt as default};

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.