iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.7kanal.co.il/_nuxt/Cs8WhOaS.js
import{A as V,u as g,y as b,r,I as x,k as N,l as d,d as m,g as o,f as t,a7 as p,a8 as v,t as c,e as S,n as B,p as _}from"./CbO2oY48.js";import D from"./LK8m33rU.js";const $={class:"form-field"},q={class:"form-field-input input"},w={class:"form-field"},U={for:"email"},C={class:"form-field-input input"},P={class:"form-field"},T={class:"form-field-input input textarea"},E={class:"SendButton"},F={key:1},j={__name:"stories",setup(I){const f=V(),y=g(),h=b();f.getters["page/isDesktop"];const s=r({FormTo:"moshel",FormName:"stories form",name:"",email:"",story:"",url:`https://${y.localeProperties.value.domain}${h.fullPath}`,token:""}),u=r(0),l=r(0),i=r("");x(()=>N.get("/api/NODB/Token","text").then(a=>{s.value.token=a}));const k=async a=>{a.preventDefault(),l.value=1;try{await post_contact_us(null,s),u.value=1}catch{l.value=0}f.dispatch("contact/PostContactUs",s.value).then(e=>{u.value=1,i.value="sent!"},e=>{i.value="Error during negotiation request."}).finally(e=>l.value=0)};return(a,e)=>(d(),m("div",null,[o(u)?_("",!0):(d(),m("form",{key:0,class:"form",action:"javascript:void(0)",onSubmit:k},[t("div",$,[e[3]||(e[3]=t("label",{for:"name"},"Name Of Writer:",-1)),t("div",q,[p(t("input",{"onUpdate:modelValue":e[0]||(e[0]=n=>o(s).name=n),required:"",name:"name",type:"text"},null,512),[[v,o(s).name]])])]),t("div",w,[t("label",U,c(a.$t("contact.email"))+":",1),t("div",C,[p(t("input",{"onUpdate:modelValue":e[1]||(e[1]=n=>o(s).email=n),required:"",type:"email",name:"email"},null,512),[[v,o(s).email]])])]),t("div",P,[e[4]||(e[4]=t("label",{for:"story"},"Story:",-1)),t("div",T,[S(D,{modelValue:o(s).story,"onUpdate:modelValue":e[2]||(e[2]=n=>o(s).story=n),required:"",name:"story"},null,8,["modelValue"])])]),t("button",E,c(`${a.$t("contact.send")} `),1),t("div",{class:B({wait:o(l)})},null,2)],32)),o(i)?(d(),m("div",F,c(o(i)),1)):_("",!0)]))}};export{j as default};