import{T as c,c as g,a as n,b as s,w as b,t as i,d as m,v as d,u as t,y as _,g as v,o as f,q as y}from"./app-13978987.js";import{_ as h}from"./AdminLayout-bd13ff9d.js";import{_ as S}from"./PageHeader-8c638686.js";import{_ as V}from"./SpinnerBtn-cb152833.js";import{_ as U}from"./RichEditor-132d6d13.js";import{_ as r}from"./InputFieldError-52549d23.js";import"./dropdown-45d66330.js";import"./FloatingDropdown-0be3e47c.js";const x={class:"container p-4 sm:p-6"},E={class:"card mx-auto w-[800px]"},M={class:"card-body"},C={class:"mb-2"},O={class:"label mb-2"},T={class:"mb-2"},w={class:"label mb-2"},$={class:"mb-2"},k={class:"label mb-2"},D={class:"mb-2"},B={class:"label mb-2"},I={class:"mb-2 mt-3"},j={class:"mb-2 mt-10"},A={class:"mb-2"},L={class:"mb-2"},N={class:"mb-2 mt-2"},q={class:"mb-2 mt-2"},F={class:"mb-2 mt-3"},P={for:"toggle-status",class:"toggle toggle-sm"},z=s("div",{class:"toggle-body"},null,-1),G={class:"label label-md"},H={class:"mb-2"},J=v({layout:h}),es=Object.assign(J,{__name:"Create",props:["buttons","segments"],setup(p){const e=c({title:"",location:"",type:"",expert_level:"",description:"",is_active:!0,seo:{title:"",image:"",description:"",tags:""}}),u=()=>{e.post(route("admin.jobs.store"),{onSuccess:()=>{y.success(trans("Added Successfully")),e.reset()}})};return(a,l)=>(f(),g("main",x,[n(S,{title:"Create Integration",buttons:p.buttons},null,8,["buttons"]),s("div",E,[s("div",M,[s("form",{onSubmit:b(u,["prevent"])},[s("div",C,[s("label",O,i(a.trans("Title")),1),m(s("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=o=>t(e).title=o),class:"input",placeholder:"Software Engineer"},null,512),[[d,t(e).title]]),n(r,{message:t(e).errors.title},null,8,["message"])]),s("div",T,[s("label",w,i(a.trans("Location")),1),m(s("input",{type:"text","onUpdate:modelValue":l[1]||(l[1]=o=>t(e).location=o),class:"input",placeholder:"California, US"},null,512),[[d,t(e).location]]),n(r,{message:t(e).errors.location},null,8,["message"])]),s("div",$,[s("label",k,i(a.trans("Type")),1),m(s("input",{type:"text","onUpdate:modelValue":l[2]||(l[2]=o=>t(e).type=o),class:"input",placeholder:"Fulltime, Part-time"},null,512),[[d,t(e).type]]),n(r,{message:t(e).errors.type},null,8,["message"])]),s("div",D,[s("label",B,i(a.trans("Expert Level")),1),m(s("input",{type:"text","onUpdate:modelValue":l[3]||(l[3]=o=>t(e).expert_level=o),class:"input",placeholder:"Senior, Mid"},null,512),[[d,t(e).expert_level]]),n(r,{message:t(e).errors.expert_level},null,8,["message"])]),s("div",I,[s("label",null,i(a.trans("Description")),1),n(U,{modelValue:t(e).description,"onUpdate:modelValue":l[4]||(l[4]=o=>t(e).description=o)},null,8,["modelValue"]),n(r,{message:t(e).errors.description},null,8,["message"])]),s("h6",j,i(a.trans("SEO Settings")),1),s("div",A,[s("label",null,i(a.trans("SEO Meta Title")),1),m(s("input",{"onUpdate:modelValue":l[5]||(l[5]=o=>t(e).seo.title=o),type:"text",class:"input"},null,512),[[d,t(e).seo.title]]),n(r,{message:t(e).errors["seo.title"]},null,8,["message"])]),s("div",L,[s("label",null,i(a.trans("SEO Meta Image")),1),s("input",{onChange:l[6]||(l[6]=o=>t(e).seo.image=o.target.files[0]),type:"file",class:"input",accept:"image/*"},null,32),n(r,{message:t(e).errors["seo.image"]},null,8,["message"])]),s("div",N,[s("label",null,i(a.trans("SEO Meta Description")),1),m(s("textarea",{"onUpdate:modelValue":l[7]||(l[7]=o=>t(e).seo.description=o),class:"input h-100"},null,512),[[d,t(e).seo.description]]),n(r,{message:t(e).errors["seo.description"]},null,8,["message"])]),s("div",q,[s("label",null,i(a.trans("SEO Meta Tags")),1),m(s("input",{"onUpdate:modelValue":l[8]||(l[8]=o=>t(e).seo.tags=o),type:"text",class:"input"},null,512),[[d,t(e).seo.tags]]),n(r,{message:t(e).errors["seo.tags"]},null,8,["message"])]),s("div",F,[s("div",null,[s("label",P,[m(s("input",{"onUpdate:modelValue":l[9]||(l[9]=o=>t(e).is_active=o),class:"toggle-input peer sr-only",id:"toggle-status",type:"checkbox"},null,512),[[_,t(e).is_active]]),z,s("span",G,i(a.trans("Is Active?")),1)])])]),s("div",H,[n(V,{classes:"btn btn-primary",processing:t(e).processing,"btn-text":a.trans("Create")},null,8,["processing","btn-text"])])],32)])])]))}});export{es as default};
