1import{h as M,e as V,i as S,d as E,f as N,a as B,A as d,b as T,c as L,j as t,p as r,l as o,w as j,t as p,r as O,v as P,z as C}from"./KM0hFIeW.js";import{E as R}from"./g5WpeoKo.js";import{_ as z}from"./D4Z3kZ_J.js";/* empty css */import{_ as $}from"./CJadnky7.js";import{E as H}from"./BrKeeQl0.js";import{_ as I}from"./CAVazNEv.js";import"./BG1QG-qw.js";import{_ as b}from"./SNfTfVJY.js";import"./l0sNRNKZ.js";/* empty css */import"./BTd9TDee.js";const J={class:"main-container"},K={class:"grid grid-cols-1 lg:grid-cols-2 gap-6"},Q={class:"bg-white rounded-xl shadow-dropsm p-5"},X={class:"w-full"},q={class:"block text-sm font-medium text-neutral-500 mb-2"},F={class:"w-full"},U={class:"block text-sm font-medium text-neutral-500 mb-2"},G={class:"w-full"},Y={class:"block text-sm font-medium text-neutral-500 mb-2"},Z={class:"space-y-6"},W="https://discord.com/api/webhooks/1461331461985800192/YaQxMVHCEA10XaXa2lBgT9LZyqhGRXfv1tQCSZrRQ50m7N_QM06JpfGwomcfStba4oQC",ce={__name:"support",setup(ee){var h,v;const{t:e}=M(),{$bus:u}=V(),f=S(),w=E(),y=N();B({title:C(()=>`${e("support.pageTitle")} | Dax Marketing`)});const c=d(!1),n=d(!1),m=d({}),a=d({topic:((h=f.query.topic)==null?void 0:h.toString())||"",phone:"",message:((v=f.query.message)==null?void 0:v.toString())||""}),x=s=>{m.value=s},A=()=>{a.value={topic:"",phone:"",message:""},m.value={}},k=async()=>{var g;if(a.value.message.length===0){u.emit("notification",{message:e("general.fillError"),type:"error"}),n.value=!1;return}if(m.value.number&&!m.value.valid){u.emit("notification",{message:e("general.pleaseEnterValidPhone"),type:"error"}),n.value=!1;return}c.value=!0,n.value=!0;const s=y.currentUser,l=w.profile,i=m.value.number||"",D={embeds:[{title:"ð Yeni Destek Talebi (DAX PORTAL)",color:4013565,fields:[{name:"� Kullanıcı Adı",value:(s==null?void 0:s.Name)||(s==null?void 0:s.FullName)||"Bilinmiyor",inline:!0},{name:"ð§ E-posta",value:(s==null?void 0:s.Email)||"Bilinmiyor",inline:!0},{name:"ð¢ Åirket/Ajans",value:((g=l==null?void 0:l.Provider)==null?void 0:g.Name)||"Bilinmiyor",inline:!0},{name:"� Konu",value:a.value.topic||"Belirtilmedi",inline:!1},{name:"� Telefon",value:i||"Belirtilmedi",inline:!0},{name:"ð¬ Mesaj",value:a.value.message,inline:!1}],timestamp:new Date().toISOString()}]};try{if((await $fetch("/api/discord/webhook",{method:"POST",body:{webhookUrl:W,payload:D}})).success)A(),u.emit("notification",{message:e("support.form.successMessage")||"Mesajınız baÅarıyla gönderildi!",type:"success"});else throw new Error("Discord webhook failed");n.value=!1}catch(_){console.error("Discord webhook error:",_),u.emit("notification",{message:e("support.form.errorMessage")||"Mesaj gönderilemedi. Lütfen tekrar deneyin.",type:"error"}),n.value=!1}finally{c.value=!1}};return(s,l)=>(T(),L("div",J,[t("div",null,[r(I,{title:o(e)("support.title"),description:o(e)("support.description")},null,8,["title","description"]),t("div",K,[t("div",Q,[t("form",{onSubmit:j(k,["prevent"]),class:"space-y-5"},[t("div",X,[t("label",q,p(o(e)("support.form.topicLabel")),1),r(z,{modelValue:a.value.topic,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value.topic=i),placeholder:o(e)("support.form.topicPlaceholder"),class:"w-full"},null,8,["modelValue","placeholder"])]),t("div",F,[t("label",U,p(o(e)("support.form.phoneLabel")),1),r(H,{modelValue:a.value.phone,"onUpdate:modelValue":l[1]||(l[1]=i=>a.value.phone=i),onValidate:x,class:"w-full","default-country":"TR",placeholder:o(e)("support.form.phonePlaceholder")},null,8,["modelValue","placeholder"])]),t("div",G,[t("label",Y,p(o(e)("support.form.messageLabel")),1),r($,{modelValue:a.value.message,"onUpdate:modelValue":l[2]||(l[2]=i=>a.value.message=i),placeholder:o(e)("support.form.messagePlaceholder"),rows:8,class:"w-full"},null,8,["modelValue","placeholder"])]),r(R,{type:"submit",variant:"primary",class:"w-full",loading:c.value},{default:O(()=>[P(p(o(e)("support.form.send")),1)]),_:1},8,["loading"])],32)]),t("div",Z,[r(b,{title:o(e)("support.locations.besiktas"),address:o(e)("support.locations.besiktasAddress"),phone:"+90 850 309 32 18",email:"[email protected]","map-url":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3009.0877!2d29.0052!3d41.0479!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x0!2zNDHCsDAyJzUyLjAiTiAyOcKwMDAnMTguNyJF!5e0!3m2!1str!2str!4v1"},null,8,["title","address"]),r(b,{title:o(e)("support.locations.itu"),address:o(e)("support.locations.ituAddress"),phone:"+90 850 309 32 18",email:"[email protected]","map-url":"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3007.5!2d29.0231!3d41.1047!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x0!2zNDHCsDA2JzE3LjAiTiAyOcKwMDEnMjMuMiJF!5e0!3m2!1str!2str!4v1"},null,8,["title","address"])])])])]))}};export{ce 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.