PageSourceSearch

https://uttarakhandtourism.gov.in/build/assets/Edit-DCYJoW59.js

js uttarakhandtourism.gov.in collected 2026-10-02 06:29:54 UTC 23,494 bytes, 8 lines download raw bytes

1import{G as be,r as n,j as e,S as _e}from"./app-Ha4X7SlF.js";import{A as Ne}from"./AuthenticatedLayout-BZKUhDrh.js";import{I as c}from"./InputError-Do4kQPnM.js";import{I as h}from"./InputLabel-D410np7F.js";import{P as ye}from"./PrimaryButton-Bjn3n3t2.js";import{u as we,A as ve,B as A}from"./Accordion-B4iAoPX8.js";import{T as m}from"./TextInput-YH4SiJD7.js";import{H as G}from"./HiddenInput-CNAqalSa.js";import{Q as V}from"./index-C9bVzuNG.js";/* empty css                   */import{M as ke}from"./MediaModal-DTWNCtfU.js";import{T as Te}from"./TextArea-DROiNSwJ.js";import Ce from"./MediaPreview-D7BGVdAv.js";import{h as qe,a as Se,c as De,b as Fe,v as Me}from"./helpers-C3Ubf4D0.js";import{h as H}from"./moment-C5S46NFB.js";import{T as B,S as Pe,D as Y}from"./constants-gejEprHZ.js";import"./transition-DszwGdUG.js";import"./Sidebar-BmBFQuN7.js";import"./SvgSwitcher-DH9r9e5c.js";import"./ToastNotification-BhTNdAie.js";import"./_baseIsEqual-CXvocJ9U.js";import"./index-BCTjt6el.js";import"./index-DFCUUP5-.js";function ns({auth:j,categories:W,tags:y,blog:r,medias:b,seoData:p}){var E,O,I;const L=((E=r.assigned_tags)==null?void 0:E.map(s=>s.tag.title))||[],w=((O=r==null?void 0:r.assigned_categories)==null?void 0:O.map(s=>s.category_id))||[],v=((I=r==null?void 0:r.assigned_tags)==null?void 0:I.map(s=>s.tag_id))||[],{data:i,setData:l,patch:K,processing:U,errors:o,setError:t}=be({title:r.title||"",slug:r.slug||"",description:r.description||"",short_description:r.short_description||"",status:r.status,categoryData:w,tagData:v,category_id:w,author:j.user.id,published_at:"",media_id:r.media_id,tag_id:v,focus_keyword:p.focus_keyword,meta_description:p.meta_description,title_hi:r.title_hi||"",short_description_hi:r.short_description_hi||"",description_hi:r.description_hi||""}),z=window.location.origin,[R,Q]=n.useState("");n.useEffect(()=>{Q(window.location.origin+"/"+i.slug)},[i.slug]);const[$,_]=n.useState(!1);n.useEffect(()=>{if(r.status==1){_(!0);const s=r.published_at?r.published_at.split(" ")[0]:"";l("published_at",s)}},[]);const[k,J]=n.useState([{key:1,title:"What is GeeksforGeeks?",data:"",isOpen:!1},{key:2,title:"What GeeksforGeeks offer us?",data:`GeeksforGeeks offers Free Tutorials,  
2                      Millions of Articles, Live, Online and  
3                      Classroom Courses,Frequent Coding Competitions,  
4                      Webinars by Industry Experts, Internship  
5                      opportunities and Job Opportunities.`,isOpen:!1},{key:3,title:"Which is the best portal to study Computer Science?",data:`GeeksforGeeks is the best Computer Science portal  
6                      for geeks. It contains well written, well thought  
7                      and well explained computer science and programming  
8                      articles.`,isOpen:!1}]),X=s=>{const a=k.map(d=>d.key===s?{...d,isOpen:!d.isOpen}:{...d,isOpen:!1});J(a)},[Ee,Oe]=n.useState(""),[Z,T]=n.useState(0),[Ie,Ae]=n.useState(!0),[x,ee]=n.useState(1),[Ge,Ve]=n.useState(L??[]),se=()=>{let s=!0;return i.title?i.title.length<3&&(s=!1,t("title","The title field minimum length should be more than 3 characters.")):(s=!1,t("title","The title field is required.")),i.slug?i.slug.length<2&&(s=!1,t("slug","The slug field minimum length should be more than 2 characters.")):(s=!1,t("slug","The slug field is required.")),i.short_description?i.short_description.length<3&&(s=!1,t("short_description","The short description field minimum length should be more than 3 characters.")):(s=!1,t("short_description","The short description field is required.")),i.description?i.description.length<3&&(s=!1,t("description","The description field minimum length should be more then 3 characters.")):(s=!1,t("description","The description field is required.")),i.category_id||(t("category_id","The category field is required."),s=!1),i.media_id||(t("media_id","The featured image is required."),s=!1),(!i.tag_id||i.tag_id=="")&&(t("tag_id","Tag is required."),s=!1),(!i.focus_keyword||i.focus_keyword=="")&&(t("focus_keyword","Focus Keyphrase is required."),s=!1),i.title_hi?i.title_hi.length<3&&(s=!1,t("title_hi","The title in hindi field minimum length should be more than 3 characters.")):(s=!1,t("title_hi","The title in hindi field is required.")),i.description_hi?i.description_hi.length<3&&(s=!1,t("description_hi","The description in hindi field minimum length should be more than 3 characters.")):(s=!1,t("description_hi","The description in hindi field is required.")),i.short_description_hi?i.short_description_hi.length<3&&(s=!1,t("short_description_hi","The short description in hindi field minimum length should be more than 3 characters.")):(s=!1,t("short_description_hi","The short description in hindi field is required.")),i.status===1&&!i.published_at&&(s=!1,t("published_at","The published date is required when status is published.")),s},[ie,C]=n.useState(!1),te=s=>{s?s.length<=160&&(l("meta_description",s),T(s.length/160*100)):(l("meta_description",""),T(0))},re=s=>{s?s.length<=100&&(t("focus_keyword",""),l("focus_keyword",s)):(t("focus_keyword","Focus Keyword is required."),l("focus_keyword",""))},[N,q]=n.useState(null),[f,S]=n.useState(1),ae=s=>{var a;q(s),l("media_id",(a=s[0])==null?void 0:a.id),t("media_id",""),F()},D=y.map(s=>({value:s.id,label:s.title}));n.useEffect(()=>{var s;if(b){const a=(s=b.filter(d=>d.id==i.media_id))==null?void 0:s[0];q([a])}},[]);const le=s=>{if(s){t("title","");const a=s.slice(0,B);Se(a)&&(l(d=>({...d,title:a})),t("slug",""))}else t("title","The title field is required."),l(a=>({...a,title:s,slug:s}))},de=s=>{l("tag_id",s.join(",")),s&&s.length>0?t("tag_id",""):t("tag_id","The Tag field is required.")},oe=s=>{if(s){if(t("title",""),s.length<=90){const a=s.slice(0,60);l(d=>({...d,title:s,slug:De(a)})),t("slug","")}}else t("title","The title field is required."),l(a=>({...a,title:s,slug:s}))},ne=s=>{if(s){t("title_hi","");const a=s.slice(0,B);Fe(a)&&l(d=>({...d,title_hi:a}))}else t("title_hi","The title in hindi field is required."),l(a=>({...a,title_hi:s}))},ce=s=>{if(s){const a=s.slice(0,Pe);Me(a)&&(t("slug",""),l("slug",a))}else t("slug","The slug field is required."),l("slug",s)},he=s=>{s?s.length<=120&&(t("short_description",""),l("short_description",s)):(t("short_description","The short description field is required."),l("short_description",s))},me=s=>{s?s.length<=120&&(t("short_description_hi",""),l("short_description_hi",s)):(t("short_description_hi","The short description in hindi field is required."),l("short_description_hi",s))},ue=(s,a)=>
8{if(s){if(a.slice(0,Y)!==i.description&&(t("description",""),l("description",s),!i.meta_description)){const u=s.slice(0,50);l(g=>({...g,meta_description:u}))}}else t("description","The description field is required."),l("description",s)},ge=(s,a)=>{s?a.slice(0,Y)!==i.description&&(t("description_hi",""),l("description_hi",s)):(t("description_hi","The description in hindi field is required."),l("description_hi",s))},pe=s=>{s===1?_(!0):(_(!1),i.published_at=""),l("status",s)},xe=s=>{s.preventDefault(),i.status==0&&(i.published_at=""),se()&&K(route("blogs.update",r.id),{data:i,onFinish:()=>{l({title:r.title||"",slug:r.slug||"",description:r.description||"",short_description:r.short_description||"",status:r.status||1,categoryData:(r==null?void 0:r.assigned_categories)||"",tagData:(r==null?void 0:r.assigned_tags)||"",category_id:"",author:j.user.id,published_at:"",media_id:r.media_id,tag_id:r.tag_id,focus_keyword:p.focus_keyword,meta_description:p.meta_description,title_hi:"",short_description_hi:"",description_hi:""})}})},fe=s=>{l("category_id",s.join(",")),s&&s.length>0?t("category_id",""):t("category_id","The category field is required.")},je=()=>{C(!0)},F=()=>{C(!1)},M={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],["link","image","video","formula"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"},{list:"check"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"]]},P=["header","font","size","bold","italic","underline","align","strike","script","blockquote","background","list","bullet","indent","link","image","color","code-block"];return we({onChange:s=>console.log(D),source:s=>D.filter(a=>new RegExp(`^${s}`,"i").test(a.label))}),e.jsxs(Ne,{user:j.user,header:e.jsx("h2",{className:"font-semibold text-xl text-gray-800 leading-tight",children:"Edit Blog"}),children:[e.jsx(_e,{title:"Edit Blog"}),e.jsx("div",{className:"py-4",children:e.jsxs("div",{className:"max-w-8xl mx-auto px-6 lg:px-8 space-y-5",children:[e.jsx("div",{className:"py-1",children:e.jsx("div",{className:"flex justify-between items-center",children:e.jsx("h3",{className:"text-lg font-semibold",children:"Edit Blog"})})}),e.jsxs("div",{className:"flex",children:[e.jsxs("div",{className:"p-4 sm:p-8 bg-white shadow sm:rounded-lg w-2/3",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"w-1/2",children:[e.jsx(h,{htmlFor:"title",value:"Title",className:"req-star"}),e.jsx(m,{id:"title",name:"title",value:i.title,className:"mt-1 block w-full focus:border-black rounded-sm bg-gray-100",autoComplete:"title",isFocused:!0,onChange:s=>le(s.target.value),onBlur:s=>oe(s.target.value),required:!0}),e.jsx(c,{message:o.title,className:"mt-2"})]}),e.jsxs("div",{className:"w-1/2",children:[e.jsx(h,{htmlFor:"title_hi",value:"Title in Hindi",className:"req-star"}),e.jsx(m,{id:"title_hi",name:"title_hi",value:i.title_hi,className:"mt-1 block w-full focus:border-black rounded-sm bg-gray-100",autoComplete:"titleHindi",isFocused:!0,onChange:s=>ne(s.target.value),required:!0}),e.jsx(c,{message:o.title_hi,className:"mt-2"})]})]}),e.jsxs("div",{className:"mt-4",children:[e.jsx(h,{htmlFor:"slug",value:"Slug",className:"req-star"}),e.jsx(m,{id:"slug",name:"slug",value:i.slug,className:"mt-1 block w-full focus:border-black rounded-sm bg-gray-100",autoComplete:"slug",onChange:s=>ce(s.target.value),required:!0}),e.jsx(c,{message:o.slug,className:"mt-2"})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"mt-4 w-1/2",children:[e.jsx(h,{htmlFor:"short_description",value:"Short Description",className:"req-star"}),e.jsx(m,{id:"short_description",name:"short_description",value:i.short_description,className:"mt-1 block w-full focus:border-black rounded-sm bg-gray-100",onChange:s=>he(s.target.value),required:!0}),e.jsx(c,{message:o.short_description,className:"mt-2"})]}),e.jsxs("div",{className:"mt-4 w-1/2",children:[e.jsx(h,{htmlFor:"short_description_hi",value:"Short Description in hindi",className:"req-star"}),e.jsx(m,{id:"short_description_hi",name:"short_description_hi",value:i.short_description_hi,className:"mt-1 block w-full focus:border-black rounded-sm bg-gray-100",onChange:s=>me(s.target.value),required:!0}),e.jsx(c,{message:o.short_description_hi,className:"mt-2"})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mt-4",children:[e.jsx(h,{htmlFor:"description",value:"Description",className:"mb-1 req-star"}),e.jsx(V,{value:i.description,onChange:(s,a,d,u)=>{const g=u.getText().trim();ue(s,g)},modules:M,formats:P,theme:"snow",placeholder:"Compose your description here..."})]}),e.jsx("div",{style:{marginTop:"70px"},children:e.jsx(c,{message:o.description,className:"mt-2"})}),e.jsxs("div",{className:"mt-4",children:[e.jsx(h,{htmlFor:"description_hi",value:"Description in Hindi",className:"mb-1 req-star"}),e.jsx(V,{value:i.description_hi,onChange:(s,a,d,u)=>{const g=u.getText().trim();ge(s,g)},modules:M,formats:P,theme:"snow",placeholder:"Compose your description here...",style:{height:"200px"}})]}),e.jsx("div",{style:{marginTop:"70px"},children:e.jsx(c,{message:o.description_hi,className:"mt-2"})})]}),e.jsxs("div",{className:"mt-4",children:[e.jsx("a",{href:"javascript:void(0)","aria-current":"page",onClick:s=>ee(1),className:"inline-block p-2 pl-0  font-bold mt-4 active text-theme",children:"SEO"}),e.jsxs("div",{className:"tabcontent border min-h-200",children:[x==1&&e.jsxs("div",{children:[e.jsxs("div",{className:"p-3 border-b",children:[e.jsx(h,{htmlFor:"title",value:"Focus Keyphrase",className:"text-xs req-star"}),e.jsx("input",{id:"2",type:"text",name:"focus_keyword",value:i.focus_keyword,onChange:s=>re(s.target.value),className:"border-gray-300 text-xs focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm mt-1 block w-full focus:border-black rounded-sm bg-gray-100"}
8),e.jsx(c,{message:o.focus_keyword,className:"mt-2"})]}),e.jsx("div",{className:"p-3 border-b",children:e.jsxs("details",{open:!0,children:[e.jsx("summary",{children:e.jsx("p",{className:"text-base",children:"Search Appearance"})}),e.jsx(h,{htmlFor:"title",value:"",className:"text-lg mt-2"}),e.jsx("p",{className:"text-xs",children:"Determine how your post should look in the search results."}),e.jsx(h,{htmlFor:"title",value:"Preview as:",className:"text-sm font-bold mt-3"}),e.jsxs("div",{className:"inline-flex items-center space-x-4",children:[e.jsxs("label",{className:"inline-flex items-center",children:[e.jsx("input",{type:"radio",checked:f===1,name:"option",onClick:s=>S(1),value:"1",className:"form-radio text-blue-600 w-3 h-3"}),e.jsx("span",{className:"ml-1 text-xs",children:"Mobile result"})]}),e.jsxs("label",{className:"inline-flex items-center",children:[e.jsx("input",{type:"radio",checked:f===2,name:"option",onClick:s=>S(2),value:"2",className:"form-radio text-blue-600 w-3 h-3"}),e.jsx("span",{className:"ml-1 text-xs",children:"Desktop result"})]})]}),f==1&&e.jsxs("div",{className:"p-3 bg-white shadow sm:rounded-md border-1 w-2/3 mt-3 border-gray-200 border",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("div",{className:"mr-2",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",className:"w-5 h-5 text-gray-500",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c4.97 0 9 4.03 9 9s-4.03 9-9 9-9-4.03-9-9 4.03-9 9-9zm0 0c1.657 0 3.156.895 3.984 2.25M12 3a6.992 6.992 0 00-3.984 2.25M12 3v18m-3.984-2.25A6.992 6.992 0 0012 21a6.992 6.992 0 003.984-2.25M8.016 5.25h7.9
868m-9.13 3h10.262m-10.262 3h10.262m-9.13 3h7.968"})})}),e.jsxs("div",{children:[e.jsx("h5",{className:"text-sm",children:i.title}),e.jsxs("p",{className:"text-xs",children:[window.location.origin,"/",i.slug]})]})]}),e.jsxs("h3",{className:"py-2 text-blue-500",children:[" ",i.title," "]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{children:e.jsxs("p",{className:"text-sm",children:[" ",e.jsx("span",{className:"text-gray-500 mr-2",children:H(i.published_at).format("MMMM Do, YYYY")}),i.short_description]})}),e.jsx("div",{className:"h95",children:e.jsx("img",{src:"https://cdn-icons-png.freepik.com/256/2200/2200376.png?semt=ais_hybrid",className:"w-64"})})]})]}),f==2&&e.jsxs(e.Fragment,{children:[e.jsxs("h3",{className:"py-2 text-blue-500 req-star",children:[" ",i.title," "]}),e.jsxs("p",{className:"text-xs",children:[window.location.origin,"/",i.slug]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{children:e.jsxs("p",{className:"text-sm",children:[" ",e.jsx("span",{className:"text-gray-500 mr-2",children:H(i.published_at).format("MMMM Do, YYYY")}),i.short_description]})}),e.jsx("div",{className:"h95",children:e.jsx("img",{src:"https://cdn-icons-png.freepik.com/256/2200/2200376.png?semt=ais_hybrid",className:"w-64"})})]})]}),e.jsx("div",{className:"p-1 bg-white shadow sm:rounded-md border-1 border-gray-200 border mt-2",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"p-1 mr-2 bg-gray-200 text-black font-bold text-xs rounded-lg",children:"Title"}),e.jsx("span",{className:"p-1 mr-2 bg-gray-200 text-black font-bold text-xs rounded-lg",children:"Page"}),e.jsx("span",{className:"p-1 mr-2 bg-gray-200 text-black font-bold text-xs rounded-lg",children:"Separator"}),e.jsx("span",{className:"p-1 mr-2 bg-gray-200 text-black font-bold text-xs rounded-lg",children:"Site title"})]})}),e.jsx("div",{className:"relative w-full h-2 bg-gray-200 my-3",children:e.jsx("div",{className:"top-0 left-0 h-full bg-green-500 w-64"})}),e.jsxs("div",{className:"mt-4",children:[e.jsx(h,{htmlFor:"slug",value:"Slug",className:"req-star"}),e.jsx(m,{className:"mt-1 block w-full focus:border-black rounded-sm bg-gray-100 h-8",value:R}),e.jsx(c,{message:o.slug,className:"mt-2"})]}),e.jsx("div",{className:"flex  items-center justify-between mt-3",children:e.jsx(h,{htmlFor:"title",value:"Meta description",className:"text-sm"})}),e.jsx("div",{className:"mt-3",children:e.jsx(Te,{name:"description",placeholder:"Type your description here...",rows:3,value:i.meta_description,onChange:s=>te(s.target.value),className:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm mt-1 block w-full focus:border-black rounded-sm bg-gray-100"})}),e.jsx("div",{className:"relative w-full h-2 bg-gray-200 my-3",children:e.jsx("div",{className:"top-0 left-0 h-full bg-green-500",style:{width:`${Z}%`}})})]})})]}),x==2&&e.jsx("div",{children:e.jsxs("div",{className:"p-3 border-b",children:[e.jsx("h5",{className:"text-sm font-bold mt-3",children:"Analysis results"}),e.jsx("h6",{className:"text-xs font-bold mt-3",children:" Problems (3)"}),e.jsxs("ul",{className:"list-circle text-xs ml-4 space-list",children:[e.jsxs("li",{children:["Word complexity: Is your vocabulary suited for a larger audience?",e.jsx("a",{href:"#",className:"text-blue-600",children:" Yoast SEO Premium will tell you! "})]}),e.jsxs("li",{children:[e.jsx("a",{href:"#",className:"text-blue-600",children:"Subheading distribution:  "}),"1 section of your text is longer than 250 words and is not separated by any subheadings",e.jsx("a",{href:"#",className:"text-blue-600",children:"Add subheadings to improve readability."})]}),e.jsxs("li",{children:[e.jsx("a",{href:"#",className:"text-blue-600",children:"Transition words:  "}),"Only 13.7% of the sentences contain transition words, which is not enough.",e.jsx("a",{href:"#",className:"text-blue-600",children:" Use more of them."})]})]}),e.jsx("h6",{className:"text-xs font-bold mt-3",children:" Good results (4)"}),e.jsxs("ul",{className:"list-circle text-xs ml-4 space-list",children:[e.jsxs("li",{children:[e.jsx("a",{href:"#",className:"text-blue-600",children:"Passive voice:  "}),"You're using enough active voice. That's great! "]}),e.jsxs("li",{children:[" ",e.jsx("a",{href:"#",className:"text-blue-600",children:"Consecutive sentences: "})," There is enough variety in your sentences. That's great!"]}),e.jsxs("li",{children:[e.jsx("a",{href:"#",className:"text-blue-600",children:"Paragraph length:"})," None of the paragraphs are too long. Great job!"]}
8),e.jsxs("li",{children:[e.jsx("a",{href:"#",className:"text-blue-600",children:"   Sentence length:"}),"   Great!"]})]})]})}),x==3&&e.jsx("div",{children:e.jsxs("div",{className:"p-3 border-b",children:[e.jsx("h5",{className:"text-sm font-bold mt-3",children:"Analysis results"}),e.jsxs("div",{className:"mt-3  w-1/3",children:[e.jsx("p",{className:"text-sm font-bold",children:"Page Type"}),e.jsxs("select",{className:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm mt-1 block w-full focus:border-black rounded-sm bg-gray-100 text-xs",children:[e.jsx("option",{value:0,children:"Default for Pages (Web Page)"}),e.jsx("option",{value:0,children:"Web Page"}),e.jsx("option",{value:1,children:"Item Page"})]})]}),e.jsxs("div",{className:"mt-3  w-1/3",children:[e.jsx("p",{className:"text-sm font-bold",children:"Article Type"}),e.jsxs("select",{className:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm mt-1 block w-full focus:border-black rounded-sm bg-gray-100 text-xs",children:[e.jsx("option",{value:0,children:"Default for Pages (Web Page)"}),e.jsx("option",{value:0,children:"Web Page"}),e.jsx("option",{value:1,children:"Item Page"})]})]}),e.jsx("div",{className:"mt-3",children:e.jsxs("p",{className:"text-xs font-bold",children:["You can change the default type for Pages under Content types in the    ",e.jsx("a",{href:"#",className:"text-blue-600",children:"Settings."})]})})]})}),x==4&&e.jsx("div",{children:k.map(s=>e.jsx(ve,{title:s.title,data:s.data,isOpen:s.isOpen,toggleAccordion:()=>X(s.key)},s.key))})]})]})]}),e.jsxs("div",{className:"ml-5 w-1/3",children:[e.jsxs("div",{className:"w-full p-4 sm:p-8 bg-white shadow sm:rounded-lg",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx(h,{htmlFor:"Status",value:"Status :",className:"req-star"}),e.jsxs("select",{className:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm mt-1 block w-full focus:border-black rounded-sm bg-gray-100",value:i.status,onChange:s=>pe(Number(s.target.value)),children:[e.jsx("option",{value:0,children:"Draft"}),e.jsx("option",{value:1,children:"Publish"})]}),e.jsx(c,{message:o.status,className:"mt-2"})]}),$&&e.jsxs("div",{className:"mb-4",children:[e.jsx(h,{htmlFor:"Publish",value:"Publish :",className:"req-star"}),e.jsx("input",{type:"date",onKeyDown:s=>s.preventDefault(),className:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm mt-1 block w-full focus:border-black rounded-sm bg-gray-100",value:i.published_at,onChange:s=>l("published_at",s.target.value)}),e.jsx(c,{message:o.published_at,className:"mt-2"})]}),e.jsx("form",{onSubmit:xe,className:"my-2",children:e.jsx("div",{className:"flex items-center justify-end mt-4",children:e.jsx(ye,{className:"ms-4 bgTheme",disabled:U,children:"Update Blog"})})})]}),e.jsxs("div",{className:"Category-sec mt-5 w-full p-4 sm:p-8 bg-white shadow sm:rounded-lg ",children:[e.jsx("h3",{className:"text-sm mb-1 req-star",children:"Category"}),e.jsx(G,{id:"category_id",name:"category_id",value:i.category_id,className:"mt-1 block w-full",onChange:s=>l("category_id",s.target.value),required:!0}),e.jsx(A,{categories:W,onCategoryChange:fe,selectCategories:i.categoryData}),e.jsx(c,{message:o.category_id,className:"mt-2"})]}),e.jsxs("div",{className:"Category-sec mt-5 w-full p-4 sm:p-8 bg-white shadow sm:rounded-lg ",children:[e.jsx("h3",{className:"text-sm mb-1 req-star",children:"Tags"}),e.jsx(G,{id:"tag_id",name:"tag_id",value:i.tag_id,className:"mt-1 block w-full",onChange:s=>l("tag_id",s.target.value),required:!0}),e.jsx(A,{categories:y,onCategoryChange:de,selectCategories:i.tagData,sectionName:"tags"}),e.jsx(c,{message:o.tag_id,className:"mt-2"})]}),e.jsxs("div",{className:"mt-5 w-full p-4 sm:p-8 bg-white shadow sm:rounded-lg",children:[e.jsx("h3",{className:"req-star",children:"Featured Images"}),e.jsx("button",{onClick:je,className:"text-blue-500 text-sm underline",children:"Upload Featured Images"}),e.jsx(ke,{imageOnly:!0,isOpen:ie,onClose:F,onFileSelect:ae,medias:b}),N==null?void 0:N.map((s,a)=>e.jsx(Ce,{item:{file_path:s.file_path,file_name:s.file_name,format:s.format||"",title:""},baseUrl:z,handleDocumentClick:qe,componentType:0})),e.jsx(c,{message:o.media_id,className:"mt-2"})]})]})]})]})})]})}export{ns 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.