PageSourceSearch

https://reg-kursk.ru/build/assets/CreatePost-DvQvz0Z_.js

js reg-kursk.ru collected 2026-10-02 06:46:18 UTC 3,656 bytes, 1 lines download raw bytes

1import{u as I,j as r,H as L,t as B}from"./app-tjZ_-OOu.js";import{c as P,D as T}from"./sonner-BnWx1Tnu.js";import{B as W}from"./breadcrumbs-DomomV5a.js";import{F as q}from"./form-wrapper-CVlos0FF.js";import{S as O}from"./submit-button-wrapper-CtpMxzoN.js";import{C as R,a as $,c as w,d as A}from"./card-Bi7Nimbe.js";import{I as F}from"./input-group-field-B6Hy38JP.js";import{S as G}from"./submit-button-B0clHiGQ.js";import{T as M}from"./tinymce-editor-BhJ3k6my.js";import{a as k}from"./authenticated-app-layout-BfE-_pxu.js";import{P as z}from"./page-with-centered-card-layout-Fno1gQmY.js";import{s as J}from"./PostController-COhRUETp.js";import"./app-ClMwVNe-.js";import"./input-group-DdsIsYlf.js";import"./textarea-BilhGg_-.js";import"./input-error-CsCZtzFi.js";import"./label-BgScZPhL.js";import"./icons-gelrvuNW.js";import"./app-header-layout-XPwmcGh-.js";import"./dropdown-menu-CiZ8CgA8.js";import"./dialog-D9nKO9Xa.js";import"./index-Cg0WxTnG.js";import"./visual-viewport-lock-Do1D7T0g.js";import"./avatar-i9ir4Wwt.js";import"./page-wrapper-CqNR-NwG.js";function K(_){const t=P.c(42),{store:H}=_,u=H;let s;t[0]!==u?(s=T.posts.url(u),t[0]=u,t[1]=s):s=t[1];let x;t[2]!==s?(x=[{title:"Назад",href:s}],t[2]=s,t[3]=x):x=t[3];const y=x,D=String(u.id);let h;t[4]===Symbol.for("react.memo_cache_sentinel")?(h=new Date().toISOString().slice(0,10),t[4]=h):h=t[4];let j;t[5]!==D?(j={store_id:D,title:"",text:"",date:h},t[5]=D,t[6]=j):j=t[6];const e=I(j);let b;t[7]!==e?(b=o=>{o.preventDefault(),e.submit(J(),{onSuccess:Q,onError:N})},t[7]=e,t[8]=b):b=t[8];const v=b;let g;t[9]===Symbol.for("react.memo_cache_sentinel")?(g=r.jsx(L,{title:"Создание новости"}),t[9]=g):g=t[9];let a;t[10]!==y?(a=r.jsx(W,{leadingSeparator:!0,breadcrumbs:y}),t[10]=y,t[11]=a):a=t[11];let C;t[12]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(R,{children:r.jsx($,{children:"Создание новости"})}),t[12]=C):C=t[12];let i;t[13]!==e?(i=o=>e.setData("title",o.target.value),t[13]=e,t[14]=i):i=t[14];let l;t[15]!==e.data.title||t[16]!==e.errors.title||t[17]!==i?(l=r.jsx(F,{id:"title",name:"title",type:"text",label:"Заголовок",placeholder:"Заголовок новости",value:e.data.title,onChange:i,error:e.errors.title,required:!0}),t[15]=e.data.title,t[16]=e.errors.title,t[17]=i,t[18]=l):l=t[18];const E=e.data.text||"";let n;t[19]!==e?(n=o=>e.setData("text",o),t[19]=e,t[20]=n):n=t[20];let m;t[21]!==e.errors.text||t[22]!==E||t[23]!==n?(m=r.jsx(M,{id:"text",label:"Текст",value:E,onChange:n,error:e.errors.text}),t[21]=e.errors.text,t[22]=E,t[23]=n,t[24]=m):m=t[24];let d;t[25]!==e?(d=o=>e.setData("date",o.target.value),t[25]=e,t[26]=d):d=t[26];let p;t[27]!==e.data.date||t[28]!==e.errors.date||t[29]!==d?(p=r.jsx(F,{id:"date",name:"date",type:"date",label:"Дата",value:e.data.date,onChange:d,error:e.errors.date,required:!0}),t[27]=e.data.date,t[28]=e.errors.date,t[29]=d,t[30]=p):p=t[30];let c;t[31]!==e.processing?(c=r.jsx(O,{children:r.jsx(G,{isLoading:e.processing,children:"Создать"})}),t[31]=e.processing,t[32]=c):c=t[32];let f;t[33]!==v||t[34]!==l||t[35]!==m||t[36]!==p||t[37]!==c?(f=r.jsxs(w,{children:[C,r.jsx(A,{children:r.jsxs(q,{onSubmit:v,children:[l,m,p,c]})})]}),t[33]=v,t[34]=l,t[35]=m,t[36]=p,t[37]=c,t[38]=f):f=t[38];let S;return t[39]!==f||t[40]!==a?(S=r.jsxs(r.Fragment,{children:[g,r.jsx(z,{topChildren:a,children:f})]}),t[39]=f,t[40]=a,t[41]=S):S=t[41],S}function N(_){const t=Object.values(_)[0];t&&B.error("Ошибка при создании новости",{description:String(t)})}function Q(){B.success("Новость успешно создана")}K.layout=k;export{K 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.