PageSourceSearch

https://swily.io/assets/survey-BIRO2BCe.js

js swily.io collected 2026-10-02 15:50:04 UTC 13,438 bytes, 5 lines download raw bytes

1import{r as p,j as e,c as v}from"./index-C_BfOGP-.js";import{O as I}from"./optimized-image-DXaXHxKY.js";const D={avif:"/assets/logo-transparent-gnVkqmbl.avif 180w, /assets/logo-transparent-BV5kfZXJ.avif 360w",webp:"/assets/logo-transparent-Bpa-FMxr.webp 180w, /assets/logo-transparent-BZeWFFYT.webp 360w",png:"/assets/logo-transparent-Cn-eJyxQ.png 180w, /assets/logo-transparent-C-itSu6S.png 360w"},F={src:"/assets/logo-transparent-C-itSu6S.png",w:360,h:128},V={sources:D,img:F},R="https://script.google.com/macros/s/AKfycbxgFWFRMwf_vgMz1fUMcEXNaQk_xNUkly5-u49Ys3zfwCwcQ4u0jkQuJLCxOUgsTCoDdg/exec",T={q_logiciel:"",q_quel_logiciel:"",q_facturier:"",q_changer:[],q_changer_fonctionnalites:"",q_engagement:"",q_equiper:"",q_echeance:"",q_swily_best:""},U=["Un logiciel moins cher","Un logiciel sans engagement","Un logiciel plus moderne","Un logiciel plus fiable","Un logiciel plus intuitif","Un logiciel avec de nouvelles fonctionnalités"],_="Un logiciel avec de nouvelles fonctionnalités";function Q(){const[n,i]=p.useState(T),[d,r]=p.useState(""),[c,o]=p.useState(!1),[t,a]=p.useState(!1),[u,x]=p.useState(!1),[m,j]=p.useState(null),w=p.useRef(null);p.useEffect(()=>{if(typeof window>"u")return;const s=new URLSearchParams(window.location.search).get("tel")??"";r(s)},[]),p.useEffect(()=>{t&&w.current?.scrollIntoView({behavior:"smooth",block:"center"})},[t]);function h(s,l){i(q=>({...q,[s]:l}))}function N(s){if(s==="Oui"){i(l=>({...l,q_logiciel:"Oui",q_equiper:"",q_echeance:""}));return}i(l=>({...l,q_logiciel:"Non",q_quel_logiciel:"",q_facturier:"",q_changer:[],q_changer_fonctionnalites:"",q_engagement:""}))}function y(s){if(s==="Oui"){i(l=>({...l,q_equiper:"Oui"}));return}i(l=>({...l,q_equiper:"Non",q_echeance:""}))}function z(s){i(l=>{const O=l.q_changer.includes(s)?l.q_changer.filter(L=>L!==s):[...l.q_changer,s];return{...l,q_changer:O,q_changer_fonctionnalites:O.includes(_)?l.q_changer_fonctionnalites:""}})}function C(){if(!n.q_logiciel)return'Veuillez repondre a : "Avez-vous un logiciel ?"';if(n.q_logiciel==="Oui"){if(!n.q_quel_logiciel)return'Veuillez repondre a : "Quel logiciel utilisez-vous ?"';if(n.q_changer.length===0)return`Veuillez repondre a : "Qu'est-ce qui vous ferait envisager un nouveau logiciel ?"`;if(n.q_changer.includes(_)&&!n.q_changer_fonctionnalites.trim())return"Veuillez preciser les fonctionnalites souhaitees.";if(!n.q_engagement)return"Pour combien de temps encore êtes-vous engagé(e) avec votre logiciel actuel ?"}if(n.q_logiciel==="Non"){if(!n.q_equiper)return`Veuillez repondre a : "Allez-vous vous equiper d'un logiciel ?"`;if(n.q_equiper==="Oui"&&!n.q_echeance)return'Veuillez repondre a : "A quelle echeance ?"'}return null}async function E(s){s.preventDefault(),j(null);const l=C();if(l){j(l);return}o(!0),x(!1);const q={telephone:d,date:new Date().toLocaleString("fr-FR"),logiciel:n.q_logiciel,quel_logiciel:n.q_logiciel==="Oui"?n.q_quel_logiciel:"",facturier:n.q_logiciel==="Oui"?n.q_facturier:"",changer:n.q_logiciel==="Oui"?n.q_changer.join(", "):"",changer_fonctionnalites:n.q_logiciel==="Oui"?n.q_changer_fonctionnalites:"",engagement:n.q_logiciel==="Oui"?n.q_engagement:"",equiper:n.q_logiciel==="Non"?n.q_equiper:"",echeance:n.q_logiciel==="Non"?n.q_echeance:"",swily_best:n.q_swily_best};try{await fetch(R,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(q)}),a(!0),typeof window<"u"&&window.setTimeout(()=>{window.location.assign("/?survey=1")},900)}catch{x(!0)}finally{o(!1)}}const k=n.q_logiciel==="Oui",S=n.q_logiciel==="Non",A=S&&n.q_equiper==="Oui";return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
2        body {
3          background: #f0f4f8;
4        }
5      `}),e.jsx("div",{className:"min-h-screen bg-[linear-gradient(160deg,#eef8f7_0%,#f0f4f8_45%,#eef3ff_100%)] px-4 pt-[30px] pb-[60px] text-[15px] text-[#333]",children:e.jsxs("div",{className:"mx-auto max-w-[680px]",children:[e.jsx("div",{className:"mb-5 flex flex-col items-center gap-2 text-center",children:e.jsx("div",{className:"rounded-2xl bg-white/80 px-6 py-3 shadow-[0_8px_24px_rgba(22,80,161,0.14)] backdrop-blur",children:e.jsx(I,{image:V,alt:"SWILY",className:"h-10 w-auto object-contain",loading:"eager",width:180,sizes:"180px"})})}),e.jsx("div",{className:"h-[6px] rounded-t-[8px] bg-[linear-gradient(90deg,#00c4b4_0%,#1A4FBF_100%)]"}),e.jsxs("div",{className:"overflow-hidden rounded-b-[12px] bg-white shadow-[0_2px_12px_rgba(0,0,0,0.10)]",children:[e.jsxs("div",{className:"bg-[linear-gradient(135deg,#00C4B4_0%,#1A4FBF_100%)] px-8 pt-7 pb-[22px] text-white max-[500px]:px-[18px] max-[500px]:pt-5 max-[500px]:pb-4",children:[e.jsx("img",{src:"/images/survey-team-swily.png",alt:"Équipe SWILY",className:"mx-auto mb-3 h-auto w-[120px] rounded-[10px] border border-white/35 shadow-[0_6px_20px_rgba(0,0,0,0.18)]",loading:"eager"}),e.jsx("h1",{className:"mb-1.5 text-[22px] leading-[1.3] font-bold",children:"Vous êtes IDEL ? moins d'une minute pour qu'on construise l'out
5il dont vous avez besoin 🙏"})]}),e.jsxs("form",{className:"flex flex-col gap-7 px-8 pt-7 pb-8 max-[500px]:px-[18px] max-[500px]:pt-5 max-[500px]:pb-6",onSubmit:s=>{E(s)},noValidate:!0,children:[m?e.jsxs("div",{className:"rounded-[10px] border-2 border-[#ffb74d] bg-[#fff8e1] px-5 py-4 text-sm text-[#e65100]",role:"alert",children:["⚠️ ",m]}):null,e.jsxs(f,{title:"Avez-vous un logiciel pour votre activité ?",required:!0,children:[e.jsx(g,{name:"q_logiciel",checked:n.q_logiciel==="Oui",onChange:()=>N("Oui"),label:"Oui"}),e.jsx(g,{name:"q_logiciel",checked:n.q_logiciel==="Non",onChange:()=>N("Non"),label:"Non"})]}),e.jsx(b,{}),k?e.jsxs("div",{className:"flex flex-col gap-7",children:[e.jsx(f,{title:"Quel logiciel utilisez-vous ?",required:!0,children:e.jsxs("select",{className:"w-full cursor-pointer rounded-[8px] border-2 border-[#e0e7ef] bg-white p-[11px] pr-10 text-[15px] text-[#333] outline-none focus:border-[#1976D2]",value:n.q_quel_logiciel,onChange:s=>h("q_quel_logiciel",s.target.value),children:[e.jsx("option",{value:"",disabled:!0,children:"— Sélectionnez un logiciel —"}),e.jsx("option",{value:"Albus",children:"Albus"}),e.jsx("option",{value:"Agathe you",children:"Agathe you"}),e.jsx("option",{value:"Soins2000",children:"Soins2000"}),e.jsx("option",{value:"Vega",children:"Vega"}),e.jsx("option",{value:"Simpli vital",children:"Simpli vital"}),e.jsx("option",{value:"Ozzen",children:"Ozzen"}),e.jsx("option",{value:"Equinox",children:"Equinox"}),e.jsx("option",{value:"Topaze air",children:"Topaze air"}),e.jsx("option",{value:"Medi+4000",children:"Medi+4000"}),e.jsx("option",{value:"Televitale",children:"Televitale"}),e.jsx("option",{value:"Acteur.FR",children:"Acteur.FR"}),e.jsx("option",{value:"SWILY",children:"SWILY"}),e.jsx("option",{value:"Autre",children:"Autre"})]})}),e.jsx(b,{}),e.jsxs(f,{title:"Vous travaillez avec un facturier ?",children:[e.jsx(g,{name:"q_facturier",checked:n.q_facturier==="Oui",onChange:()=>h("q_facturier","Oui"),label:"Oui"}),e.jsx(g,{name:"q_facturier",checked:n.q_facturier==="Non",onChange:()=>h("q_facturier","Non"),label:"Non"})]}),e.jsx(b,{}),e.jsxs(f,{title:"Pas d'inquiétude, on migre vos données automatiquement — zéro prise de tête : Qu'est-ce qui vous ferait envisager un nouveau logiciel ?",required:!0,children:[e.jsx("div",{className:"flex flex-col gap-2",children:U.map(s=>e.jsxs("label",{className:"flex cursor-pointer items-start gap-[10px] py-1",children:[e.jsx("input",{type:"checkbox",checked:n.q_changer.includes(s),onChange:()=>z(s),className:"mt-0.5 h-[18px] w-[18px] shrink-0 cursor-pointer accent-[#1976D2]"}),e.jsx("span",{className:"text-[15px] leading-[1.5] text-[#333]",children:s})]},s))}),n.q_changer.includes(_)?e.jsxs("div",{className:"mt-3",children:[e.jsx("label",{htmlFor:"q_changer_fonctionnalites",className:"mb-1.5 block text-sm font-semibold text-[#1565C0]",children:"Quelles fonctionnalités aimeriez-vous avoir ?"}),e.jsx("textarea",{id:"q_changer_fonctionnalites",value:n.q_changer_fonctionnalites,onChange:s=>h("q_changer_fonctionnalites",s.target.value),rows:3,className:"w-full rounded-[8px] border-2 border-[#e0e7ef] bg-white px-3 py-2 text-[15px] text-[#333] outline-none focus:border-[#1976D2]",placeholder:"Exemple : meilleure gestion des rejets, automatisation des relances, etc."})]}):null]}),e.jsx(b,{}),e.jsx(f,{title:"Pour combien de temps encore êtes-vous engagé(e) avec votre logiciel actuel ?",required:!0,children:["Aucun engagement","1-6 mois","6 mois - 1 an","1 - 2 ans","Plus de 2 ans"].map(s=>e.jsx(g,{name:"q_engagement",checked:n.q_engagement===s,onChange:()=>h("q_engagement",s),label:s},s))})]}):null,S?e.jsxs("div",{className:"flex flex-col gap-7",children:[e.jsxs(f,{title:"Allez-vous vous equiper d'un logiciel (facturation et/ou gestion de tournee et/ou suivi patient) ?",required:!0,children:[e.jsx(g,{name:"q_equiper",checked:n.q_equiper==="Oui",onChange:()=>y("Oui"),label:"Oui"}),e.jsx(g,{name:"q_equiper",checked:n.q_equiper==="Non",onChange:()=>y("Non"),label:"Non"})]}),A?e.jsxs(e.Fragment,{children:[e.jsx(b,{}),e.jsx(f,{title:"A quelle echeance imaginez-vous vous equiper d'un logiciel ?",required:!0,children:["1-6 mois","6 mois - 1 an","1 an - 2 ans"].map(s=>e.jsx(g,{name:"q_echeance",checked:n.q_echeance===s,onChange:()=>h("q_echeance",s),label:s},s))})]}):null]}):null,e.jsx(b,{}),e.jsxs("div",{className:"flex items-center gap-[14px] rounded-[10px] border-2 border-[#90bce8] bg-[linear-gradient(135deg,#e8f1fb_0%,#f0f7ff_100%)] px-5 py-[18px]",children:[e.jsx("div",{className:"shrink-0 text-[28px]",children:"😄"}),e.jsxs("div",{className:"flex flex-1 flex-col gap-[10px]",children:[e.jsxs("p",{className:"text-[15px] leading-[1.55] text-[#0d47a1]",children:[e.jsx("strong",{className:"font-bold",children:"SWILY est conçu avec des IDELs, pour les IDELs."}),e.jsx("br",{}),'Cliquez sur "Oui" pour découvrir la suite de notre aventure (vous aurez des news et des infos pour les IDELs) !']}),e.jsxs("label",{className:"flex cursor-pointer items-center gap-[10px] py-1",children:[e.jsx("input",{type:"radio",name:"q_swily_best",value:"Oui absolument !",checked:n.q_swily_best==="Oui absolument !",onChange:()=>h("q_swily_best","Oui absolument !"),className:"h-[18px] w-[18px] shrink-0 cursor-pointer accent-[#1976D2]"}),e.jsx("span",{className:"font-semibold text-[#1565C0]",children:"Oui ! 🚀"})]})]})]}),u?e.jsx("div",{className:"rounded-[10px] border-2 border-[#e57373] bg-[#fdecea] px-5 py-4 text-sm text-[#c62828]",children:"⚠️ Une erreur s'est produite. Verifiez votre connexion et reessayez."}):null,t?e.jsx("div",{ref:w,className:"rounded-[10px] border-2 border-[#66bb6a] bg-[#e8f5e9] px-6 py-5 text-center text-base font-semibold text-[#2e7d32]",children:"✅ Merci pour votre reponse ! L'equipe SWILY vous remercie."}
5):null,e.jsxs("button",{type:"submit",disabled:c,className:"flex cursor-pointer items-center gap-2 self-start rounded-[8px] bg-[#1976D2] px-9 py-3.5 text-base font-bold text-white transition hover:bg-[#1565C0] disabled:cursor-not-allowed disabled:opacity-70",children:[e.jsx("span",{children:t?"Envoye ✓":c?"Envoi en cours...":"Envoyer →"}),c?e.jsx("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white"}):null]})]})]}),e.jsxs("div",{className:"mt-6 text-center",children:[e.jsx("p",{className:"mb-3 text-base font-semibold text-[#1565C0]",children:"👇 C'est nous l'équipe SWILY"}),e.jsx("img",{src:"/images/survey-team-swily.png",alt:"Equipe SWILY",className:"mx-auto w-full max-w-[680px] rounded-[12px] shadow-[0_2px_12px_rgba(0,0,0,0.10)]",loading:"lazy"}),e.jsx("p",{className:"mt-6 mb-3 text-base font-semibold text-[#1565C0]",children:"👇 Là c'est Swily avec les IDELs qui nous ont aidées à faire le meilleur produit pour vous !"}),e.jsx("img",{src:"/images/survey-team-idels.png",alt:"Swily avec les IDELs",className:"mx-auto w-full max-w-[680px] rounded-[12px] shadow-[0_2px_12px_rgba(0,0,0,0.10)]",loading:"lazy"})]})]})})]})}function b(){const n=v.c(1);let i;return n[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx("div",{className:"h-px bg-[#e8edf3]"}),n[0]=i):i=n[0],i}function f(n){const i=v.c(10),{title:d,required:r,children:c}=n;let o;i[0]!==r?(o=r?e.jsx("span",{className:"ml-1 text-[#e53935]",children:"*"}):null,i[0]=r,i[1]=o):o=i[1];let t;i[2]!==o||i[3]!==d?(t=e.jsxs("div",{className:"text-[15px] leading-[1.4] font-semibold text-[#222]",children:[d,o]}),i[2]=o,i[3]=d,i[4]=t):t=i[4];let a;i[5]!==c?(a=e.jsx("div",{className:"flex flex-col gap-2.5",children:c}),i[5]=c,i[6]=a):a=i[6];let u;return i[7]!==t||i[8]!==a?(u=e.jsxs("div",{className:"flex flex-col gap-3",children:[t,a]}),i[7]=t,i[8]=a,i[9]=u):u=i[9],u}function g(n){const i=v.c(11),{name:d,checked:r,onChange:c,label:o}=n,t=`flex cursor-pointer items-center gap-2.5 rounded-[8px] border-2 px-[14px] py-[10px] transition ${r?"border-[#1976D2] bg-[#e8f1fb]":"border-[#e0e7ef] hover:border-[#90bce8] hover:bg-[#f0f7ff]"}`;let a;i[0]!==r||i[1]!==d||i[2]!==c?(a=e.jsx("input",{type:"radio",name:d,checked:r,onChange:c,className:"h-[18px] w-[18px] shrink-0 cursor-pointer accent-[#1976D2]"}),i[0]=r,i[1]=d,i[2]=c,i[3]=a):a=i[3];const u=r?"font-semibold text-[#1976D2]":"";let x;i[4]!==o||i[5]!==u?(x=e.jsx("span",{className:u,children:o}),i[4]=o,i[5]=u,i[6]=x):x=i[6];let m;return i[7]!==t||i[8]!==a||i[9]!==x?(m=e.jsxs("label",{className:t,children:[a,x]}),i[7]=t,i[8]=a,i[9]=x,i[10]=m):m=i[10],m}export{Q 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.