import{j as t,H as l,L as e,bO as c,b8 as x}from"./vendor-BKmmeuxg.js";import{B as u}from"./badge-AQfLLMpR.js";import{B as o}from"./button-BpNwv2aE.js";import{D as h}from"./layout-DkwBWm5d.js";import j from"./job-circular-form-CimKxOU-.js";import"./index-WW_1X1qx.js";import"./utils-DxSsnXxD.js";import"./sidebar-BYcYxQeZ.js";import"./separator-_3LZ_wAA.js";import"./sheet-DSvHVmaW.js";import"./tooltip-BsX7Z6vz.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";import"./appearance-D2z3xcjR.js";import"./dropdown-menu-DO-po5c1.js";import"./app-BytVvUs_.js";/* empty css            */import"./language-BFZ7KItL.js";import"./notification-CYMPYbAP.js";import"./popover-B4kBsMuI.js";import"./scroll-area-C8HGru-R.js";import"./app-logo-CmnEIwal.js";import"./accordion-CNBvFN43.js";import"./route-B4ZMN77y.js";import"./avatar-j28afJTV.js";import"./use-lang-YfV87_zl.js";import"./combobox-Byd5-E0j.js";import"./datetime-picker-ZgzPotAT.js";import"./select-CD9o3HN1.js";import"./input-error-LaPr_4wd.js";import"./switch-Db09nqXX.js";import"./switch-DFFqeub-.js";import"./tag-input-BqUWHOBp.js";import"./card-D9_SJYq6.js";import"./input-DM0goJrn.js";import"./label-HmIcv5Yx.js";import"./richtor-CRcM6Du2.js";const f=({jobCircular:r,statuses:s,translate:m})=>{const{button:a,dashboard:v,common:p}=m,d=i=>{const n={draft:"outline",active:"default",paused:"secondary",closed:"destructive",expired:"destructive"};return t.jsx(u,{variant:n[i]||"outline",children:s[i]||i})};return t.jsxs(t.Fragment,{children:[t.jsx(l,{title:`Edit ${r.title}`}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(o,{variant:"outline",size:"icon",asChild:!0,children:t.jsx(e,{href:route("job-circulars.index"),children:t.jsx(c,{className:"h-4 w-4"})})}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("h1",{className:"text-xl font-semibold",children:a.edit_job}),d(r.status)]})]}),t.jsx(o,{variant:"outline",asChild:!0,children:t.jsxs(e,{href:route("job-circulars.show",r.id),children:[t.jsx(x,{className:"mr-2 h-4 w-4"}),p.preview]})})]}),t.jsx(j,{jobCircular:r})]})]})};f.layout=r=>t.jsx(h,{children:r});export{f as default};
