PageSourceSearch

https://tstu.uz/assets/create-SeQ4ac7m.js

js tstu.uz collected 2026-10-02 06:01:10 UTC 2,385 bytes, 1 lines download raw bytes

1import{r as l,j as e}from"./react-s6noa07L.js";import{j as x,cy as j,d as t,R as y,C as s,h as a,e as g,B as f,d1 as q,a2 as b}from"./index-CK6lfr5g.js";import{a as I,s as S}from"./mock-BMUYvaM6.js";import{f as R}from"./filter-options-ziNk_2qf.js";import{u as _}from"./router-CwT0-KLY.js";import{C as v}from"./index-8NSzCpy6.js";import{T as O}from"./index-BFzA2sIL.js";import"./i18n-CzrDXj-t.js";import"./index-CUp_myt7.js";import"./UpOutlined-CLLZuNS3.js";const w=b.get("role")==="admin",L=()=>{const{old_year:n}=x(),{postRequest:o}=q(),u=_(),{request:d}=j(),[c,m]=l.useState([]),p=async()=>{const r=await d("/questionnairegroups/getallfacultyormagistrdep");r&&m(r.map(i=>({label:i.title,value:i.id}))||[])},h=async r=>{r.new_year=r.old_year+1,await o("/questionnairegroups/createuestionnairegroups"+(w?"":"questionnaireresult"),r)&&u(`/uz/admin/questionnaire-groups?old_year=${r.old_year}&semestr=${r.semestr}`)};return l.useEffect(()=>{p()},[]),e.jsx(v,{title:"GURUHLAR SO‘ROVLARI YARATISH",children:e.jsx(t,{onFinish:h,layout:"vertical",initialValues:{old_year:n},children:e.jsxs(y,{gutter:[10,10],children:[e.jsx(s,{xs:24,md:8,children:e.jsx(t.Item,{name:"old_year",label:"O‘quv yili",rules:[{required:!0}],children:e.jsx(a,{placeholder:"O'quv yilini tanlang",options:I})})}),e.jsx(s,{xs:24,md:8,children:e.jsx(t.Item,{name:"semestr",label:"Semestr",rules:[{required:!0}],children:e.jsx(a,{style:{minWidth:"100px"},options:S,placeholder:"Semestrni tanlang"})})}),e.jsx(s,{xs:24,md:8,children:e.jsx(t.Item,{name:"group_type",label:"Guruh turi",rules:[{required:!0}],children:e.jsx(a,{placeholder:"Guruh turini tanlang",options:[{label:"Bachelor",value:"Bachelor"},{label:"Master",value:"Master"}]})})}),e.jsx(s,{xs:24,md:8,children:e.jsx(t.Item,{name:"students_count",label:"O‘quvchilar soni",rules:[{required:!0}],children:e.jsx(O,{placeholder:"O‘quvchilar sonini kiriting",style:{width:"100%"}})})}),e.jsx(s,{xs:24,md:8,children:e.jsx(t.Item,{name:"title",label:"Sarlavha",rules:[{required:!0}],children:e.jsx(g,{placeholder:"Sarlavhani kiriting"})})}),e.jsx(s,{xs:24,md:8,children:e.jsx(t.Item,{name:"faculty_id",label:"Fakultet",rules:[{required:!0}],children:e.jsx(a,{placeholder:"Fakultetni tanlang",options:c,showSearch:!0,filterOption:R})})}),e.jsx(s,{span:24,children:e.jsx(f,{type:"primary",htmlType:"submit",children:"Yaratish"})})]})})})};export{L 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.