PageSourceSearch

https://ecogift.fr/build/assets/NewsletterContactBlocButton-D-3Wc_Wr.js

js ecogift.fr collected 2026-10-09 21:39:33 UTC 3,288 bytes, 1 lines download raw bytes

1import{D as e,F as t,G as n,Ht as r,S as i,T as a,_ as o,c as s,ft as c,gt as l,i as u,k as d,m as f,nt as p,rt as m,st as h,u as g,v as _,w as v,wt as y,zt as b}from"./app-a64kmUHY.js";import{t as x}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as S}from"./Modal-BjSYr6IS.js";import{M as C}from"./routes-CgXU7kcb.js";s(),t(),h(),y();var w={class:`px-10 py-3 min-h-[200px]`},T={key:0,class:`flex items-center flex-wrap my-5`},E={class:`mr-5`},D={key:0,class:`text-red-500`},O={key:1,class:`text-green-800`},k=x({__name:`NewsletterContactBlocButton`,setup(t){g(e=>({c45c659a:l(s)}));let s=u().props.current_website.theme_primary_color,h=c(null),y=c(null),x=c(null),k=c(null),A=()=>{y.value.showModal()},j=()=>{y.value.hideModal()},M=()=>{let e={_method:`post`,_token:u().props.csrf_token,email:h.value};axios.post(C().url,e).then(e=>{k.value=e.data.message,x.value=null}).catch(function(e){let t=JSON.parse(e.request.response);k.value=null,x.value=t.message})};return(t,c)=>(n(),a(_,null,[i(`button`,{id:`nlButton`,onClick:A},[...c[1]||=[e(`<div class="svg-wrapper-1" data-v-c325ea06><div class="svg-wrapper" data-v-c325ea06><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" data-v-c325ea06><path fill="none" d="M0 0h24v24H0z" data-v-c325ea06></path><path fill="currentColor" d="M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685z" data-v-c325ea06></path></svg></div></div><span class="uppercase" data-v-c325ea06>Abonnez-vous à la newsletter</span>`,2)]]),d(S,{ref_key:`nlModal`,ref:y},{default:p(()=>[i(`div`,{class:`mb-2 w-full bg-neutral-500 flex items-center justify-between`,style:b({"background-color":l(s)})},[c[3]||=i(`div`,{class:`text-left`},[i(`h2`,{class:`text-white py-5 px-10 text-xl font-bold sm:text-[28px]`},` Inscription Newsletter `)],-1),i(`div`,{class:`pr-3`},[i(`button`,{onClick:j,class:`text-lg font-bold bg-transparent rounded-full w-7 text-white`},[...c[2]||=[i(`svg`,{class:`w-8 h-8`,"aria-hidden":`true`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 20 20`},[i(`path`,{stroke:`#fff`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m13 7-6 6m0-6 6 6m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z`})],-1)]])])],4),i(`div`,w,[c[4]||=i(`p`,null,` Abonnez-vous à notre newsletter pour recevoir les dernières informations et être informé des offres spéciales. `,-1),c[5]||=i(`i`,{class:`text-sm`},` Afin d'améliorer nos newsletters, nous mesurons leur ouverture et les interactions avec les liens qu'elles contiennent grâce à un pixel de suivi. `,-1),i(`form`,{onSubmit:o(M,[`prevent`])},[k.value?v(``,!0):(n(),a(`div`,T,[i(`div`,E,[m(i(`input`,{"onUpdate:modelValue":c[0]||=e=>h.value=e,type:`email`,required:``,placeholder:`Votre email`,class:`w-full border-b border-[#edf0ef] py-[10px] text-base font-medium text-black outline-none focus-visible:shadow-none`},null,512),[[f,h.value]])]),i(`button`,{type:`submit`,class:`py-3 px-6 !text-white !rounded-full`,style:b({"background-color":l(s)})},` S'inscrire `,4)]))],32),x.value?(n(),a(`small`,D,r(x.value),1)):v(``,!0),k.value?(n(),a(`small`,O,r(k.value),1)):v(``,!0)])]),_:1},512)],64))}},[[`__scopeId`,`data-v-c325ea06`]]);export{k as t};

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.