PageSourceSearch

https://www.assoendirect.fr/_next/static/chunks/0nqqvq-h_1qzo.js

js assoendirect.fr collected 2026-10-02 00:21:37 UTC 18,343 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65124,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(48802),a=e.i(38182),l=e.i(20037);let o=null;function n({siteKey:e,onToken:s,onError:a,theme:l="auto",size:i="flexible",appearance:c="interaction-only",className:d}){let u=(0,r.useRef)(null),m=(0,r.useRef)(s),p=(0,r.useRef)(a);return m.current=s,p.current=a,(0,r.useEffect)(()=>{let t=null,r=!1;return(window.turnstile?Promise.resolve():(!o&&(o=new Promise((e,t)=>{let r=document.createElement("script");r.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",r.async=!0,r.onload=()=>e(),r.onerror=()=>{o=null,t(Error("Failed to load Cloudflare Turnstile script"))},document.head.appendChild(r)})),o)).then(()=>{!r&&u.current&&window.turnstile&&(t=window.turnstile.render(u.current,{sitekey:e,callback:e=>m.current(e),"expired-callback":()=>m.current(""),"error-callback":()=>{m.current(""),p.current?.()},theme:l,size:i,appearance:c}))}).catch(()=>{r||p.current?.()}),()=>{r=!0,null!==t&&window.turnstile?.remove(t)}},[e,l,i,c]),(0,t.jsx)("div",{ref:u,className:d})}let i={contact:"6295a07bd4194a73af8d197ba6b47866",support:"465230609e2945abafe6af6a9ed0073f",demo:"e8252c27566d4957b92fa5e25dfbe7db"},c={contact:"select",support:"status",demo:"status"},d={contact:"Email",support:"E-mail",demo:"Email"},u={contact:"Message",support:"Description",demo:"Message/Besoins"},m={contact:"Sujet",support:"Name",demo:"Name"};e.s(["ContactForm",0,function({source:e,type:o="contact",apiUrl:p="https://www.domainedunet.fr/.netlify/functions/form-notion",notionDatabaseId:x,onSuccess:f,onError:h,defaultSubject:b,messageRequired:g=!0,initialStatus:v="Nouveau",validate:y,turnstileSiteKey:j,labels:N}){let w=x??i[o],[E,k]=(0,r.useState)("idle"),[C,_]=(0,r.useState)({}),[F,S]=(0,r.useState)(""),T=!!(N.firstName&&N.lastName);async function O(t){t.preventDefault();let r=t.currentTarget,s=new FormData(r);if(y){let e=y(Object.fromEntries(s.entries()));if(e&&Object.keys(e).length>0)return void _(e)}_({}),k("loading");let a={[d[o]]:{type:"email",value:s.get("email")},[u[o]]:{type:"rich_text",value:s.get("message")},Source:{type:"select",value:e},Statut:{type:c[o],value:v},Type:{type:"select",value:o}};if(T?(a["Prénom"]={type:"rich_text",value:s.get("firstName")},a.Nom={type:"rich_text",value:s.get("lastName")}):a.Nom={type:"rich_text",value:s.get("name")},"contact"===o||"support"===o)a[m[o]]={type:"title",value:s.get("subject")};else{let e=T?`${s.get("firstName")??""} ${s.get("lastName")??""}`.trim():String(s.get("name")??"");a[m[o]]={type:"title",value:e}}if("demo"===o&&(a.Entreprise={type:"rich_text",value:s.get("company")}),N.phone){let e=s.get("phone");e&&(a["Téléphone"]={type:"phone_number",value:e})}if("support"===o&&(a["Priorité"]={type:"select",value:s.get("priority")}),N.city){let e=s.get("city");e&&(a.Ville={type:"rich_text",value:e})}if(N.postalCode){let e=s.get("postalCode");e&&(a["Code postal"]={type:"rich_text",value:e})}try{if(!(await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({databaseId:w,properties:a,honeypot:String(s.get("website")??""),...j?{turnstileToken:F}:{}})})).ok)throw Error();k("success"),r.reset(),f?.()}catch(e){k("error"),h?.(e)}}return"success"===E?(0,t.jsxs)("div",{className:"text-center py-8",children:[(0,t.jsx)("p",{className:"text-lg font-semibold text-primary mb-2",children:"✓"}),(0,t.jsx)("p",{className:"text-sm text-foreground-secondary",children:N.success})]}):(0,t.jsxs)("form",{onSubmit:O,noValidate:!!y,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"absolute -left-[9999px] h-px w-px overflow-hidden","aria-hidden":"true",children:[(0,t.jsx)("label",{htmlFor:"contact-form-website",children:"Website"}),(0,t.jsx)("input",{id:"contact-form-website",name:"website",type:"text",tabIndex:-1,autoComplete:"off"})]}),T?(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsx)(s.Input,{name:"firstName",label:N.firstName,required:!0,minLength:2,placeholder:N.firstNamePlaceholder,error:C.firstName}),(0,t.jsx)(s.Input,{name:"lastName",label:N.lastName,required:!0,minLength:2,placeholder:N.lastNamePlaceholder,error:C.lastName})]}):null,(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[T?null:(0,t.jsx)(s.Input,{name:"name",label:N.name,required:!0,minLength:2,placeholder:N.namePlaceholder,error:C.name}),(0,t.jsx)("div",{className:T?"sm:col-span-2":void 0,children:(0,t.jsx)(s.Input,{name:"email",type:"email",label:N.email,required:!0,placeholder:N.emailPlaceholder,error:C.email})})]}),"demo"===o&&(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,t.jsx)(s.Input,{name:"company",label:N.company,required:!0,placeholder:N.companyPlaceholder,error:C.company}),N.phone&&(0,t.jsx)(s.Input,{name:"phone",type:"tel",label:N.phone,placeholder:N.phonePlaceholder,error:C.phone})]}),"demo"!==o&&N.phone&&(0,t.jsx)(s.Input,{name:"phone",type:"tel",label:N.phone,placeholder:N.phonePlaceholder,error:C.phone}),("contact"===o||"support"===o)&&(0,t.jsx)(s.Input,{name:"subject",label:N.subject,required:!0,minLength:3,placeholder:N.subjectPlaceholder,defaultValue:b,error:C.subject}),(N.city||N.postalCode)&&(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[N.city&&(0,t.jsx)(s.Input,{name:"city",label:N.city,placeholder:N.cityPlaceholder,error:C.city}),N.postalCode&&(0,t.jsx)(s.Input,{name:"postalCode",label:N.postalCode,placeholder:N.postalCodePlaceholder,error:C.postalCode})]}),"support"===o&&(0,t.jsx)(a.Select,{name:"priority",label:N.priority,required:!0,defaultValue:"Normale",options:[{value:"Basse",label:N.priorityLow??"Basse"},{value:"Normale",label:N.priorityNormal??"Normale"},{value:"Haute",label:N.priorityHigh??"Haute"}],error:C.priority}),(0,t.jsx)(l.Textarea,{name:"message",label:N.message,required:g,minLength:g?10:void 0,rows:5,placeholder:N.messagePlaceholder,error:C.message}),j&&(0,t.jsx)(n,{siteKey:j,onToken:S,className:"min-h-0"}),(0,t.jsx)("button",{type:"submit",disabled:"loading"===E,className:"w-full rounded-lg bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground hover:bg-primary/90 transition-colors disabled:opacity-50",children:"loading"===E?N.sending??"...":N.submit}),"error"===E&&(0,t.jsx)("p",{className:"text-xs text-center text-destructive",children:N.error})]})}],65124)},48802,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(42455),a=e.i(78910);let l=(0,r.forwardRef)(({className:e,type:l="text",id:o,name:n,label:i,error:c,required:d,startIcon:u,endIcon:m,...p},x)=>{let f=(0,r.useId)(),h=o??n??f,b=c?`${h}-error`:void 0,g=(0,t.jsx)("input",{ref:x,type:l,id:h,name:n,required:d,"aria-invalid":!!c||void 0,"aria-describedby":b,className:(0,s.cn)("w-full rounded-lg border transition-colors","color"===l?"h-10 p-1":"px-3 py-2",a.NO_IOS_ZOOM_TEXT,"bg-background text-foreground","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:opacity-50 disabled:cursor-not-allowed",c?"border-destructive focus:ring-destructive":"border-border",u&&"pl-9",m&&"pr-9",e),...p}),v=u||m?(0,t.jsxs)("div",{className:"relative flex items-center",children:[u&&(0,t.jsx)("span",{className:"pointer-events-none absolute left-3 flex items-center text-muted-foreground [&_svg]:size-3.5",children:u}),g,m&&(0,t.jsx)("span",{className:"absolute right-3 flex items-center text-muted-foreground [&_svg]:size-3.5",children:m})]}):g;return i||c?(0,t.jsxs)("div",{className:"space-y-1.5",children:[i&&(0,t.jsxs)("label",{htmlFor:h,className:"block text-sm font-medium text-foreground",children:[i,d&&(0,t.jsx)("span",{className:"text-destructive ml-0.5",children:"*"})]}),v,c&&(0,t.jsx)("p",{id:b,className:"text-sm text-destructive",children:c})]}):v});l.displayName="Input",e.s(["Input",0,l])},39214,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(42455),a=e.i(58320),l=e.i(49721),o=e.i(83651);let n={sm:"md:max-w-md",md:"md:max-w-lg lg:max-w-2xl",lg:"md:max-w-2xl lg:max-w-3xl",xl:"md:max-w-4xl lg:max-w-5xl"};e.s(["Modal",0,function({isOpen:e,onClose:i,title:c,children:d,size:u="md",className:m}){let p=(0,r.useId)(),x=(0,r.useRef)(null),f=(0,r.useRef)(0),h=(0,r.useRef)(null),b=(0,r.useRef)(i);b.current=i;let g=(0,r.useCallback)(e=>{if("Escape"===e.key)return void b.current();if("Tab"===e.key&&x.current){let t=x.current.querySelectorAll(a.FOCUSABLE),r=t[0],s=t[t.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),s?.focu
1s()):e.shiftKey||document.activeElement!==s||(e.preventDefault(),r?.focus())}},[]);return((0,r.useEffect)(()=>{if(e)return h.current=document.activeElement,document.addEventListener("keydown",g),f.current=window.scrollY,document.body.style.position="fixed",document.body.style.top=`-${f.current}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="hidden",requestAnimationFrame(()=>{x.current&&!x.current.contains(document.activeElement)&&x.current.querySelector(a.FOCUSABLE)?.focus()}),()=>{document.removeEventListener("keydown",g),document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",f.current>0&&window.scrollTo(0,f.current),h.current?.focus()}},[e,g]),e)?(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-0 md:p-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:i}),(0,t.jsxs)("div",{ref:x,role:"dialog","aria-modal":"true","aria-labelledby":c?p:void 0,className:(0,s.cn)("relative w-full h-full overflow-y-auto bg-background shadow-2xl border border-border","md:h-auto md:max-h-[90vh] md:rounded-2xl",n[u],m),children:[(0,t.jsx)("button",{onClick:i,className:"absolute top-3 right-3 z-10 size-9 flex items-center justify-center rounded-full bg-background-elevated text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close",children:(0,t.jsx)(l.FontAwesomeIcon,{icon:o.faXmark,className:"size-4"})}),c&&(0,t.jsx)("div",{className:"px-6 pt-6 pb-0",children:(0,t.jsx)("h2",{id:p,className:"text-lg font-semibold text-foreground pr-8",children:c})}),(0,t.jsx)("div",{className:"p-6",children:d})]})]}):null}])},38182,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(42455),a=e.i(78910);let l=(0,r.forwardRef)(({className:e,id:l,name:o,label:n,error:i,required:c,options:d,placeholder:u,compact:m=!1,compactSize:p="xs",...x},f)=>{let h=(0,r.useId)();if(m)return(0,t.jsx)("select",{ref:f,id:l??o,name:o,"aria-label":n,className:(0,s.cn)("bg-transparent border border-border rounded cursor-pointer","text-muted-foreground hover:text-foreground","focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary","transition-colors appearance-none",'bg-[url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2710%27%20height%3D%2710%27%20viewBox%3D%270%200%2010%2010%27%3E%3Cpath%20fill%3D%27%2371717a%27%20d%3D%27M2%203l3%203%203-3%27%2F%3E%3C%2Fsvg%3E")] bg-[length:10px] bg-[right_6px_center] bg-no-repeat',"xs"===p?"min-h-6 text-[10px] px-2 pr-5 py-0.5":"text-xs px-2.5 pr-6 py-1",e),...x,children:d.map(e=>(0,t.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value))});let b=l??o??h,g=i?`${b}-error`:void 0,v=(0,t.jsxs)("select",{ref:f,id:b,name:o,required:c,"aria-invalid":!!i||void 0,"aria-describedby":g,className:(0,s.cn)("w-full px-3 py-2 rounded-lg border transition-colors appearance-none",a.NO_IOS_ZOOM_TEXT,"bg-background text-foreground","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:opacity-50 disabled:cursor-not-allowed",'bg-[url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%2712%27%20viewBox%3D%270%200%2012%2012%27%3E%3Cpath%20fill%3D%27%2371717a%27%20d%3D%27M2%204l4%204%204-4%27%2F%3E%3C%2Fsvg%3E")] dark:bg-[url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%2712%27%20viewBox%3D%270%200%2012%2012%27%3E%3Cpath%20fill%3D%27%23a1a1aa%27%20d%3D%27M2%204l4%204%204-4%27%2F%3E%3C%2Fsvg%3E")] bg-[length:12px] bg-[right_12px_center] bg-no-repeat pr-10',i?"border-destructive focus:ring-destructive":"border-border",e),...x,children:[u&&(0,t.jsx)("option",{value:"",disabled:!0,children:u}),d.map(e=>(0,t.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value))]});return n||i?(0,t.jsxs)("div",{className:"space-y-1.5",children:[n&&(0,t.jsxs)("label",{htmlFor:b,className:"block text-sm font-medium text-foreground",children:[n,c&&(0,t.jsx)("span",{className:"text-destructive ml-0.5",children:"*"})]}
1),v,i&&(0,t.jsx)("p",{id:g,className:"text-sm text-destructive",children:i})]}):v});l.displayName="Select",e.s(["Select",0,l])},20037,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(42455),a=e.i(78910);let l=(0,r.forwardRef)(({className:e,id:l,name:o,label:n,error:i,required:c,rows:d=4,...u},m)=>{let p=(0,r.useId)(),x=l??o??p,f=i?`${x}-error`:void 0,h=(0,t.jsx)("textarea",{ref:m,id:x,name:o,required:c,rows:d,"aria-invalid":!!i||void 0,"aria-describedby":f,className:(0,s.cn)("w-full px-3 py-2 rounded-lg border transition-colors resize-none",a.NO_IOS_ZOOM_TEXT,"bg-background text-foreground","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:opacity-50 disabled:cursor-not-allowed",i?"border-destructive focus:ring-destructive":"border-border",e),...u});return n||i?(0,t.jsxs)("div",{className:"space-y-1.5",children:[n&&(0,t.jsxs)("label",{htmlFor:x,className:"block text-sm font-medium text-foreground",children:[n,c&&(0,t.jsx)("span",{className:"text-destructive ml-0.5",children:"*"})]}),h,i&&(0,t.jsx)("p",{id:f,className:"text-sm text-destructive",children:i})]}):h});l.displayName="Textarea",e.s(["Textarea",0,l])},78910,e=>{"use strict";e.s(["NO_IOS_ZOOM_TEXT",0,"text-base sm:text-sm"])},16599,e=>{"use strict";var t=e.i(43476),r=e.i(42455),s=e.i(65124);function a({name:e,role:s,imageUrl:l,className:o}){return(0,t.jsxs)("div",{className:(0,r.cn)("mb-8 flex items-center justify-center gap-4 border-b border-border pb-8",o),children:[l&&(0,t.jsx)("img",{src:l,alt:e,width:64,height:64,className:"h-16 w-16 rounded-full border-2 border-primary object-cover"}),(0,t.jsxs)("div",{className:"text-left",children:[(0,t.jsx)("p",{className:"font-semibold text-foreground",children:e}),s&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:s})]})]})}function l({items:e,className:s}){return(0,t.jsx)("div",{className:(0,r.cn)("grid grid-cols-1 gap-6 text-center sm:grid-cols-3",s),children:e.map(e=>(0,t.jsxs)("div",{children:[e.icon&&(0,t.jsx)("div",{className:"mx-auto mb-3 flex h-12 w-12 items-center justify-center rounded-full bg-primary/10 text-primary",children:e.icon}),(0,t.jsx)("h3",{className:"mb-1 font-semibold text-foreground",children:e.label}),e.description&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.description}),e.value&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.value})]},e.label))})}var o=e.i(71645),n=e.i(928),i=e.i(39214);function c({trigger:e,triggerVariant:r="primary",triggerClassName:a,modalTitle:l,modalSubtitle:d,modalSize:u="md",onSuccess:m,...p}){let[x,f]=(0,o.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Button,{type:"button",variant:r,className:a,onClick:()=>f(!0),children:e}),(0,t.jsxs)(i.Modal,{isOpen:x,onClose:()=>f(!1),title:l,size:u,children:[d&&(0,t.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:d}),(0,t.jsx)(s.ContactForm,{...p,onSuccess:()=>{m?.(),setTimeout(()=>f(!1),2e3)}})]})]})}let d={name:"Nom",namePlaceholder:"Votre nom",email:"E-mail",emailPlaceholder:"[email protected]",subject:"Sujet",subjectPlaceholder:"L’objet de votre message",message:"Message",messagePlaceholder:"Dites-nous en quelques mots ce qui vous amène.",submit:"Envoyer",sending:"Envoi…",success:"Message bien reçu — nous vous répondons sous 24 heures ouvrées.",error:"L’envoi a échoué : votre message n’est pas parti. Réessayez dans un instant."};function u({title:e="Nous contacter",description:o="Une question, un projet, un devis : écrivez-nous, on vous répond.",logo:n,footer:i,labels:m,className:p="",personSpotlight:x,guarantee:f,infoCards:h,formMode:b="inline",modalTrigger:g,modalTitle:v,modalSubtitle:y,...j}){let N={...d,...m},w=(0,t.jsx)(s.ContactForm,{...j,labels:N});return(0,t.jsxs)("div",{className:(0,r.cn)("flex min-h-screen flex-col bg-(--color-background) text-(--color-foreground)",p),children:[(0,t.jsxs)("main",{className:"mx-auto flex w-full max-w-3xl flex-1 flex-col px-4 py-16 sm:py-24",children:[n&&(0,t.jsx)("div",{className:"mb-8 flex justify-center",children:n}),(0,t.jsxs)("header",{className:"mb-10 text-center",children:[(0,t.jsx)("h1",{className:"text-3xl font-semibold tracking-tight sm:text-4xl",children:e}),o&&(0,t.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-base text-(--color-muted-foreground)",children:o})]}),(0,t.jsxs)("div",{className:"mx-auto w-full max-w-xl",children:[x&&(0,t.jsx)(a,{...x}),"modal"===b?(0,t.jsx)(c,{...j,labels:N,trigger:g??N.submit,triggerClassName:"w-full",modalTitle:v??e,modalSubtitle:y}):w,f&&(0,t.jsx)("p",{className:"mt-6 text-center text-sm text-(--color-muted-foreground)",children:f}),h&&h.length>0&&(0,t.jsx)(l,{items:h,className:"mt-10"})]})]}),i]})}var m=e.i(75679);function p(e){return(0,t.jsx)(u,{...e,onSuccess:()=>{(0,m.trackEvent)("form_submit_contact"),(0,m.trackGenerateLead)("contact")},onError:e=>{(0,m.trackEvent)("form_error_contact",{error:e instanceof Error?e.message:"unknown"})}})}e.s(["ContactPageWithTracking",0,p,"default",0,p],16599)},75679,e=>{"use strict";function t(e,r={}){if(!window.gtag)return;let s=function(){if("u"<typeof sessionStorage)return{};try{return JSON.parse(sessionStorage.getItem("utm")||"{}")}catch{return{}}}();window.gtag("event",e,{brand:"u"<typeof document?"appliendirect":document.body.dataset.brand||"appliendirect",...s,...r})}e.s(["trackEvent",0,t,"trackFormError",0,function(e){t("form_error_demo",{error:e})},"trackFormSubmit",0,function(){t("form_submit_demo")},"trackGenerateLead",0,function(e){t("generate_lead",{source:e})}])}]);

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.