PageSourceSearch

https://mireillesant.com/_nuxt/BRpX59Ir.js

js mireillesant.com collected 2026-10-08 07:23:25 UTC 4,800 bytes, 1 lines download raw bytes

1import{a as E,g as N,_ as F,b as M}from"./CuGaE6ll.js";import{f as w,o as s,c as l,n as B,a,j as y,F as S,r as q,h as t,b as k,k as U,i as x,l as T,m as I,t as L,u as K,g as O,q as R}from"./BLfjK17d.js";const j=a("path",{fill:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"},null,-1),D=[j],H=w({__name:"StarIcon",props:["isLarge","white","isEmpty"],setup(n){return(c,u)=>(s(),l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",class:B({"-mx-[0.1rem] transition-all":!0,"w-6 h-6":!n.isLarge,"w-10 h-10":n.isLarge,"text-white":n.white,"text-yellow-400":!n.isEmpty&&!n.white,"text-slate-200":n.isEmpty&&!n.white})},D,2))}}),Y=["onClick","onMouseenter"],z=w({__name:"StarRating",props:["defaultValue"],emits:["onClick"],setup(n,{emit:c}){const u=c,{defaultValue:v}=n,_=y(v),p=y(0),d=o=>{u("onClick",o),_.value=o};return(o,i)=>{const h=H;return s(),l("div",null,[a("div",null,[(s(),l(S,null,q(5,r=>a("button",{key:r,type:"button",onClick:m=>d(r),onMouseenter:m=>p.value=r,onMouseleave:i[0]||(i[0]=m=>p.value=t(_))},[k(h,{isEmpty:!(r<=(t(p)||t(_))),isLarge:!0},null,8,["isEmpty"])],40,Y)),64))])])}}}),A={id:"contact"},J={id:"collection-form"},P={key:0},Q={key:0},G=["type","name","id","onChange","placeholder","required"],W={key:1},X={key:2},Z=["type","name","id","onChange","placeholder","required"],ee={class:"hidden"},te=a("input",{type:"submit",value:"Subscribe"},null,-1),ae=["value","disabled"],ne={key:0},oe=a("p",{class:"small-body font-semibold text-red-500"},"Error - please try again later",-1),se=[oe],le=w({__name:"CollectionForm",props:{defaultValues:{},siteKey:{},apiUrl:{},collectionName:{}},setup(n){const c=n,{defaultValues:u,siteKey:v,apiUrl:_,collectionName:p}=c;let d=U(E(u)),o=y(!1),i=y("Send"),h=y(null),r=y(!1),m=y(!1);const $=()=>{const g=document.getElementById("collection-form");g.checkValidity()&&!r.value?(r.value=!0,i.value="Sending",window.grecaptcha.ready(f=>{window.grecaptcha.execute(v,{action:p}).then(b=>{fetch(_,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fields:d,honeypot:m.value,token:b,site_key:v})}).then(e=>{r.value=!1,e.status===201?(i.value="Sent",h.value=!0,g.reset()):(i.value="Send",h.value=!1,o.value=!0,setTimeout(()=>{o.value=!1},5e3))})})})):g.reportValidity()};return(g,f)=>{const b=z;return s(),l("div",A,[a("form",J,[t(u)?(s(),l("div",P,[(s(!0),l(S,null,q(t(u),e=>(s(),l("div",{key:e.name},[e.type==="textarea"?(s(),l("div",Q,[a("textarea",{type:e.type,name:e.name,id:e.name,onChange:C=>t(d)[e.name]=C.target.value,class:"text-input",placeholder:e.placeholder,required:e.required},null,40,G)])):x("",!0),e.type==="stars"?(s(),l("div",W,[k(b,{defaultValue:e.defaultValue,onOnClick:C=>t(d)[e.name]=C},null,8,["defaultValue","onOnClick"])])):x("",!0),["email","text","number"].includes(e.type)?(s(),l("div",X,[a("input",{type:e.type,name:e.name,id:e.name,onChange:C=>t(d)[e.name]=C.target.value,class:"text-input",placeholder:e.placeholder,required:e.required},null,40,Z)])):x("",!0)]))),128))])):x("",!0),a("div",ee,[a("input",{name:"mobile",type:"checkbox",value:"1",onChange:f[0]||(f[0]=e=>T(m)?m.value=!0:m=!0),tabIndex:"-1",autoComplete:"false"},null,32),te]),a("div",null,[a("button",{onClick:I($,["prevent"]),type:"submit",class:"btn",value:t(i),disabled:t(r)||t(h)},L(t(i)),9,ae)])]),t(o)?(s(),l("div",ne,se)):x("",!0)])}}}),ie={class:"mt-20"},re={class:"p-4 sm:p-8 md:p-16"},ce={class:"card"},ue={class:"layout-container"},de={class:"max-w-2xl mx-auto"},me={class:"mb-12"},_e={class:"h2"},pe=["innerHTML"],V="messages",ve=w({__name:"contact",async setup(n){let c,u;const v=R(),{api_url:_,site_code:p,site_key:d}=v.public;K({title:"Contact"});const o=([c,u]=O(()=>N("contact")),c=await c,u(),c),i=M(V,_,p),h=[{name:"name",type:"text",placeholder:"Your Name",required:!0,defaultValue:""},{name:"email",type:"email",placeholder:"Your Email",required:!0,defaultValue:""},{name:"message",type:"textarea",placeholder:"Your Message",rows:"4",required:!0,defaultValue:""}];return(r,m)=>{var f,b;const $=F,g=le;return s(),l("div",ie,[k($,{body:t(o).quote,title:t(o).quote_name},null,8,["body","title"]),a("div",re,[a("div",ce,[a("div",ue,[a("div",de,[a("div",me,[a("h2",_e,L((f=t(o))==null?void 0:f.title),
11),a("div",{class:"large-body mt-6",innerHTML:(b=t(o))==null?void 0:b.description},null,8,pe)]),k(g,{siteKey:t(d),apiUrl:t(i),defaultValues:h,collectionName:V},null,8,["siteKey","apiUrl"])])])])])])}}});export{ve 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.