1import{u as h,W as v,j as t,a as e,b as N,F as y,S as o,T as s,k as r,h as u,t as w}from"./app-9e01f57c.js";import{C as k}from"./Checkbox-ae210cbc.js";import{E as j}from"./Editor-ab3456d3.js";import{A}from"./AdminLayout-48f312d6.js";import"./Image-4b2495c5.js";import"./Plus-392785d9.js";import"./CaretRight-d3f7c36d.js";import"./DownloadSimple-cdeb574b.js";import"./Question-24086c63.js";import"./Scan-c0148165.js";import"./Users-a4085229.js";import"./useDebouncedCallback-4252f536.js";function R(c){const{faq:a,categories:f}=c;h();const n=v({...a,year:(a==null?void 0:a.year)||2026}),{data:x,post:m,recentlySuccessful:i,processing:d}=n,p=(l,b=!1)=>{l.preventDefault(),m(a&&!b?route("faqs.update",{faq:a==null?void 0:a.id}):route("faqs.store"))},g=["STUDENT","ADULT","LECTURER","COMPANY","STATIC"];return t(A,{children:[e(N,{title:a?"ZmÄna FAQ":"Uložit novou FAQ"}),e("div",{children:t(y,{form:n,onSubmit:o,children:[e("h2",{className:"text-[24px] font-normal leading-32px pb-32px ",children:"FAQ"}),t("div",{className:"gap-16px flex flex-col border border-app-textFieldBg rounded-[8px] p-16px",children:[e("div",{className:"flex w-full justify-between gap-8px",children:e(s,{label:"Otázka",name:"title",icon:e(r,{className:"bg-green flex rounded-full text-[#539648]",size:24,weight:"fill"})})}),e("div",{className:"flex w-full justify-between gap-8px",children:e(j,{name:"text",files_options:{data:{model_id:null,model_type:null},route:route("files.upload"),files:[]}})}),t("div",{className:"flex w-full justify-between gap-8px",children:[t("div",{className:"w-full",children:[e("div",{className:"h-[72px] flex items-end justify-stretch",children:x.new_category?e(s,{label:"Kategorie",name:"category",icon:e(r,{className:"bg-green flex rounded-full text-[#539648]",size:24,weight:"fill"})}):e("div",{className:"w-full",children:e(u,{label:"Kategorie",name:"category",options:f.map(l=>({text:l,value:l}))})})}),e(k,{name:"new_category",label:"Nová kategorie",className:"z-0"})]}),e("div",{className:"w-full",children:e(u,{label:"Pro typ uživatele",name:"user_type",options:g.map(l=>({text:w[l],value:l}))})}),e("div",{className:"w-full",children:e(s,{label:"Rok",name:"year",type:"number",min:"2020",max:"2030",defaultValue:"2026",icon:e(r,{className:"bg-green flex rounded-full text-[#539648]",size:24,weight:"fill"})})})]}
1),t("div",{className:"flex items-center gap-16px",children:[e(o,{disabled:d||i,onClick:l=>{l.preventDefault(),p(l)},value:i?"Uloženo":"Uložit položku"}),a&&e(o,{disabled:d||i,onClick:l=>{l.preventDefault(),p(l,!0)},value:i?"Uloženo":"Uložit jako novou položku"})]})]})]})})]})}export{R 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.