import{T as I,c as p,o as m,a as s,t as n,x as L,l as _,A as M,u as t,v as d,b as u}from"./app-Do7K7VDV.js";import{_ as R}from"./AdminLayout-DeT_GLTC.js";import{_ as E}from"./SpinnerBtn-C-rqKjUt.js";import"./AssetModal-C18ToIEK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./InputFieldError-0BmYlL24.js";import"./ToastrContainer-CtYDvNPN.js";const c={class:"space-y-6"},S={class:"grid grid-cols-1 lg:grid-cols-12"},b={class:"lg:col-span-5"},O={class:"lg:col-span-7"},v={class:"card"},D={class:"card-body"},T={class:"mb-2"},U={class:"label"},N={value:"true"},P={value:"false"},V={class:"from-group row"},h={class:"label"},g={value:"MAIL_MAILER"},f={value:"MAIL_DRIVER"},F={class:"mb-2"},y={class:"label"},Y={value:"sendmail"},q={value:"smtp"},C={class:"mb-2"},H={class:"label"},Q={class:"mb-2"},W={class:"label"},w={class:"mb-2"},B={class:"label"},k={class:"mb-2"},$={class:"label"},j={class:"mb-2"},J={class:"label"},z={value:"ssl"},G={value:"tls"},K={class:"mb-2"},X={class:"label"},Z={class:"mb-2"},x={class:"label"},ss={class:"mb-2"},es={class:"label"},ts={class:"mb-2"},ls={layout:R},rs=Object.assign(ls,{__name:"Smtp",props:["id","mailDriver","segments","buttons","QUEUE_MAIL","MAIL_DRIVER_TYPE","MAIL_HOST","MAIL_PORT","MAIL_USERNAME","MAIL_PASSWORD","MAIL_ENCRYPTION","MAIL_FROM_ADDRESS","MAIL_FROM_NAME","MAIL_TO"],setup(r){const i=r,e=I({QUEUE_MAIL:i.QUEUE_MAIL,MAIL_DRIVER_TYPE:i.MAIL_DRIVER_TYPE,MAIL_DRIVER:i.mailDriver,MAIL_HOST:i.MAIL_HOST,MAIL_PORT:i.MAIL_PORT,MAIL_USERNAME:i.MAIL_USERNAME,MAIL_PASSWORD:i.MAIL_PASSWORD,MAIL_ENCRYPTION:i.MAIL_ENCRYPTION,MAIL_FROM_ADDRESS:i.MAIL_FROM_ADDRESS,MAIL_FROM_NAME:i.MAIL_FROM_NAME,MAIL_TO:i.MAIL_TO});function A(){e.put(route("admin.developer-settings.update",i.id))}return(l,a)=>(m(),p("div",c,[s("div",S,[s("div",b,[s("strong",null,n(l.trans("SMTP mail Settings")),1),s("p",null,n(l.trans("Edit you smtp settings for mail transaction")),1)]),s("div",O,[s("form",{onSubmit:L(A,["prevent"])},[s("div",v,[s("div",D,[s("div",T,[s("label",U,n(l.trans("Use Queue Job For Mail Transaction?")),1),_(s("select",{name:"QUEUE_MAIL",class:"select","onUpdate:modelValue":a[0]||(a[0]=o=>t(e).QUEUE_MAIL=o)},[s("option",N,n(l.trans("Enable")),1),s("option",P,n(l.trans("Disable")),1)],512),[[M,t(e).QUEUE_MAIL]])]),s("div",V,[s("label",h,n(l.trans("Mail driver type")),1),_(s("select",{name:"MAIL_DRIVER_TYPE","onUpdate:modelValue":a[1]||(a[1]=o=>t(e).MAIL_DRIVER_TYPE=o),class:"select"},[s("option",g,n(l.trans("MAIL MAILER")),1),s("option",f,n(l.trans("MAIL DRIVER")),1)],512),[[M,t(e).MAIL_DRIVER_TYPE]])]),s("div",F,[s("label",y,n(l.trans("Mail Driver")),1),_(s("select",{name:"MAIL_DRIVER","onUpdate:modelValue":a[2]||(a[2]=o=>t(e).MAIL_DRIVER=o),class:"select"},[s("option",Y,n(l.trans("sendmail")),1),s("option",q,n(l.trans("smtp")),1)],512),[[M,t(e).MAIL_DRIVER]])]),s("div",C,[s("label",H,n(l.trans("Mail Host")),1),_(s("input",{type:"text",name:"MAIL_HOST","onUpdate:modelValue":a[3]||(a[3]=o=>t(e).MAIL_HOST=o),class:"input",required:""},null,512),[[d,t(e).MAIL_HOST]])]),s("div",Q,[s("label",W,n(l.trans("Mail Port")),1),_(s("input",{type:"text","onUpdate:modelValue":a[4]||(a[4]=o=>t(e).MAIL_PORT=o),name:"MAIL_PORT",class:"input",required:""},null,512),[[d,t(e).MAIL_PORT]])]),s("div",w,[s("label",B,n(l.trans("Mail Username")),1),_(s("input",{type:"text","onUpdate:modelValue":a[5]||(a[5]=o=>t(e).MAIL_USERNAME=o),name:"MAIL_USERNAME",class:"input",required:""},null,512),[[d,t(e).MAIL_USERNAME]])]),s("div",k,[s("label",$,n(l.trans("Mail Password")),1),_(s("input",{type:"text","onUpdate:modelValue":a[6]||(a[6]=o=>t(e).MAIL_PASSWORD=o),name:"MAIL_PASSWORD",class:"input",required:""},null,512),[[d,t(e).MAIL_PASSWORD]])]),s("div",j,[s("label",J,n(l.trans("Mail Encryption")),1),_(s("select",{name:"MAIL_ENCRYPTION","onUpdate:modelValue":a[7]||(a[7]=o=>t(e).MAIL_ENCRYPTION=o),class:"select"},[s("option",z,n(l.trans("SSL")),1),s("option",G,n(l.trans("TLS")),1)],512),[[M,t(e).MAIL_ENCRYPTION]])]),s("div",K,[s("label",X,n(l.trans("Mail From Address")),1),_(s("input",{type:"email","onUpdate:modelValue":a[8]||(a[8]=o=>t(e).MAIL_FROM_ADDRESS=o),name:"MAIL_FROM_ADDRESS",class:"input",placeholder:"email",required:""},null,512),[[d,t(e).MAIL_FROM_ADDRESS]])]),s("div",Z,[s("label",x,n(l.trans("Mail From Name")),1),_(s("input",{type:"text","onUpdate:modelValue":a[9]||(a[9]=o=>t(e).MAIL_FROM_NAME=o),name:"MAIL_FROM_NAME",class:"input",placeholder:"Website Name",required:""},null,512),[[d,t(e).MAIL_FROM_NAME]])]),s("div",ss,[s("label",es,n(l.trans("Incoming Mail")),1),_(s("input",{type:"email","onUpdate:modelValue":a[10]||(a[10]=o=>t(e).MAIL_TO=o),name:"MAIL_TO",class:"input",placeholder:"email",required:""},null,512),[[d,t(e).MAIL_TO]])]),s("div",ts,[u(E,{processing:t(e).processing,"btn-text":l.trans("Save Changes")},null,8,["processing","btn-text"])])])])],32)])])]))}});export{rs as default};
