import{j as e,aR as c,aS as s,aJ as p,cB as x}from"./react-vendor-xYZnmIII.js";import{B as i,g as u}from"./ui-components-CQM92IK3.js";import{D as h}from"./layout-DC6VQ8xV.js";import j from"./job-circular-form-Bi8Lj07Z.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./main-CnGu8e_N.js";import"./theme-colors-CLpwvDr4.js";import"./appearance-5ivIjthu.js";import"./language-C7bQIqs2.js";import"./notification-C3MPMjX2.js";import"./app-logo-BQGZ7CFC.js";import"./route-D0xh7FtZ.js";import"./use-lang-Dg6I_Fym.js";import"./combobox-BOClc6J1.js";import"./datetime-picker-By0-QSwT.js";import"./input-error-_LAmvivg.js";import"./switch-DkOIfbnP.js";import"./tag-input-DsZaHbN4.js";import"./richtor-BECSBxkh.js";const f=({jobCircular:t,statuses:a,translate:o})=>{const{button:m,dashboard:v,common:d}=o,n=r=>{const l={draft:"outline",active:"default",paused:"secondary",closed:"destructive",expired:"destructive"};return e.jsx(u,{variant:l[r]||"outline",children:a[r]||r})};return e.jsxs(e.Fragment,{children:[e.jsx(c,{title:`Edit ${t.title}`}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(i,{variant:"outline",size:"icon",asChild:!0,children:e.jsx(s,{href:route("job-circulars.index"),children:e.jsx(p,{className:"h-4 w-4"})})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h1",{className:"text-xl font-semibold",children:m.edit_job}),n(t.status)]})]}),e.jsx(i,{variant:"outline",asChild:!0,children:e.jsxs(s,{href:route("job-circulars.show",t.id),children:[e.jsx(x,{className:"mr-2 h-4 w-4"}),d.preview]})})]}),e.jsx(j,{jobCircular:t})]})]})};f.layout=t=>e.jsx(h,{children:t});export{f as default};
