1import{C as Se,J as Be,h as Re,O as je,r as v,c as A,o as Ae,j as Me,a as l,e as r,k as Le,m as N,q as H,g as p,E as g,v as b,G as f,t as u,p as W,Q as ze,F as _,l as m,_ as Qe,N as Oe,B as Ne,b as a,n as C,A as F,z as fe,s as He}from"./2X8aD9Ps.js";const Ie={class:"min-h-screen bg-gray-50"},We={class:"container mx-auto px-3 sm:px-6 py-4 sm:py-8 max-w-4xl"},qe={key:0,class:"bg-white rounded-xl p-8 text-center"},Ge={key:1,class:"bg-white rounded-xl p-8 text-center"},Je={key:2,class:"bg-white rounded-xl p-8 text-center"},Xe={key:3},Ye={class:"mb-4 text-[13px] text-gray-400"},Ze={class:"bg-white rounded-2xl p-5 sm:p-8 shadow-sm border border-gray-100 mb-5"},Ke={class:"mb-5"},et={key:0,class:"mb-5"},tt=["value"],rt={class:"mb-5"},ot={class:"rounded-2xl border border-gray-200 bg-gray-50/80 p-3"},st={key:0,class:"space-y-3"},lt={class:"overflow-hidden rounded-xl border border-gray-200 bg-white"},at=["src"],nt={class:"flex items-center justify-between gap-3"},dt={class:"min-w-0"},it={class:"truncate text-[13px] font-medium text-gray-700"},ct={class:"text-[12px] text-gray-500"},ut={key:0,class:"mt-1 text-[12px] text-red-500"},pt={class:"bg-white rounded-2xl p-5 sm:p-8 shadow-sm border border-gray-100 mb-5"},gt={class:"mb-5"},ft=["value"],xt={class:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-5"},vt={class:"mb-5"},yt={class:"flex flex-wrap gap-2"},_t=["onClick"],bt={key:0},ht={class:"bg-white rounded-2xl p-5 sm:p-8 shadow-sm border border-gray-100 mb-5"},mt={class:"text-[16px] font-semibold text-gray-900 mb-5"},wt={key:0,class:"text-[13px] font-normal text-gray-400 ml-2"},kt={key:0,class:"space-y-4"},Ct={class:"mb-4 flex items-center justify-between gap-3"},Ft={class:"min-w-0 flex items-center gap-3"},Et={class:"min-w-0"},Ut={class:"truncate text-[15px] font-semibold text-gray-900"},Dt={class:"text-[11px] text-gray-500"},Pt={class:"space-y-3"},Tt=["onDragstart","onDragover"],Vt={class:"flex items-start gap-3"},$t={class:"flex-1 min-w-0"},St={class:"flex gap-2 mb-3"},Bt=["onClick"],Rt=["onClick"],jt={key:0,class:"relative"},At=["onUpdate:modelValue","onInput","onFocus"],Mt={key:1,class:"absolute z-20 w-full mt-1 bg-white border border-gray-200 rounded-xl shadow-lg max-h-60 overflow-y-auto"},Lt={key:0,class:"p-3 text-center text-gray-500 text-[13px]"},zt={key:1,class:"p-3 text-center text-gray-500 text-[13px]"},Qt={key:2,class:"py-1"},Ot=["onClick"],Nt={class:"w-10 h-10 rounded-lg overflow-hidden bg-gray-100 flex-shrink-0"},Ht=["src","alt"],It={key:1,class:"w-full h-full flex items-center justify-center bg-gradient-to-br from-[#8F94EC] to-[#FA7E7F] text-white font-bold text-sm"},Wt={class:"flex-1 min-w-0"},qt={class:"text-[13px] font-medium text-gray-900 truncate flex items-center gap-1.5"},Gt={key:0,class:"flex-shrink-0 text-[10px] bg-[#F0F1FC] text-[#8F94EC] px-1.5 py-0.5 rounded font-medium"},Jt={class:"text-[11px] text-gray-500 truncate"},Xt={key:1,class:"flex items-center gap-2.5 bg-gray-50 rounded-lg p-2.5"},Yt={class:"w-10 h-10 rounded-lg overflow-hidden bg-gray-100 flex-shrink-0"},Zt=["src","alt"],Kt={key:1,class:"w-full h-full flex items-center justify-center bg-gradient-to-br from-[#8F94EC] to-[#FA7E7F] text-white font-bold text-sm"},er={class:"flex-1 min-w-0"},tr={class:"text-[13px] font-medium text-gray-900 truncate flex items-center gap-1.5"},rr={key:0,class:"flex-shrink-0 text-[10px] bg-[#F0F1FC] text-[#8F94EC] px-1.5 py-0.5 rounded font-medium"},or={class:"text-[11px] text-gray-500 truncate"},sr=["onClick"],lr={key:2,class:"mt-3"},ar={class:"space-y-1.5"},nr=["onClick"],dr={class:"flex items-center justify-between gap-2"},ir={class:"flex-shrink-0 text-[12px]"},cr={key:1,class:"space-y-3"},ur=["onUpdate:modelValue"],pr=["onUpdate:modelValue"],gr=["onUpdate:modelValue"],fr=["onUpdate:modelValue"],xr={key:2,class:"mt-3 space-y-2"},vr=["onUpdate:modelValue"],yr=["onUpdate:modelValue"],_r=["onClick"],br=["onClick"],hr={key:1,class:"space-y-3"},mr=["onDragstart","onDragover"],wr={class:"flex items-start gap-3"},kr={class:"flex-1 min-w-0"},Cr={class:"flex gap-2 mb-3"},Fr=["onClick"],Er=["onClick"],Ur={key:0,class:"relative"},Dr=["onUpdate:modelValue","onInput","onFocus"],Pr={key:0,class:"absolute right-2.5 top-1/2 -translate-y-1/2 w-4 h-4 animate-spin text-[#8F94EC]",fill:"none",viewBox:"0 0 24 24"},Tr={key:1,class:"absolute z-20 w-full mt-1 bg-white border border-gray-200 rounded-xl shadow-lg max-h-60 overflow-y-auto"},Vr={key:0,class:"p-3 text-center text-gray-500 text-[13px]"},$r={key:1,class:"p-3 text-center text-gray-500 text-[13px]"},Sr={key:2,class:"py-1"},Br=["onClick"],Rr={class:"w-10 h-10 rounded-lg overflow-hidden bg-gray-100 flex-shrink-0"},jr=["src","alt"],Ar={key:1,class:"w-full h-full flex items-center justify-center bg-gradient-to-br from-[#8F94EC] to-[#FA7E7F] text-white font-bold text-sm"},Mr={class:"flex-1 min-w-0"},Lr={class:"text-[13px] font-medium text-gray-900 truncate flex items-center gap-1.5"},zr={key:0,class:"flex-shrink-0 text-[10px] bg-[#F0F1FC] text-[#8F94EC] px-1.5 py-0.5 rounded font-medium"},Qr={class:"text-[11px] text-gray-500 truncate"},Or={key:1,class:"flex items-center gap-2.5 bg-gray-50 rounded-lg p-2.5"},Nr={class:"w-10 h-10 rounded-lg overflow-hidden bg-gray-100 flex-shrink-0"},Hr=["src","alt"],Ir={key:1,class:"w-full h-full flex items-center justify-center bg-gradient-to-br from-[#8F94EC] to-[#FA7E7F] text-white font-bold text-sm"},Wr={class:"flex-1 min-w-0"},qr={class:"text-[13px] font-medium text-gray-900 truncate flex items-center gap-1.5"},Gr={key:0,class:"flex-shrink-0 text-[10px] bg-[#F0F1FC] text-[#8F94EC] px-1.5 py-0.5 rounded font-medium"},Jr={class:"text-[11px] text-gray-500 truncate"},Xr=["onClick"],Yr={key:2,class:"mt-3"},Zr={class:"space-y-1.5"},Kr=["onClick"],eo={class:"flex items-center justify-between gap-2"},to={class:"flex-shrink-0 text-[12px]"},ro={key:1,class:"space-y-3"},oo=["onUpdate:modelValue"],so=["onUpdate:modelValue"],lo=["onUpdate:modelValue"],ao=["onUpdate:modelValue"],no={key:2,class:"mt-3 space-y-2"},io=["onUpdate:modelValue"],co=["onUpdate:modelValue"],uo=["onClick"],po={key:2,class:"text-center py-8 text-gray-400 text-[14px]"},go={class:"flex items-center gap-3 mb-8"},fo=["disabled"],xo={key:0,class:"flex items-center gap-2"},vo={key:1},yo={key:0,class:"bg-red-50 border border-red-200 rounded-xl p-4 mb-5"},_o=10*1024*1024,wo={__name:"[slug]",setup(bo){const M=Se().params.slug,{isModeratorOrAdmin:xe,getAccessToken:ve}=Be(),$=Re(),{notify:L}=Oe(),ye=[{id:"draft",label:"ЧеÑновик"},{id:"published",label:"ÐпÑбликоваÑÑ"},{id:"scheduled",label:"ÐапланиÑоваÑÑ"}],q=["ÐонеделÑник","ÐÑоÑник","СÑеда","ЧеÑвеÑг","ÐÑÑниÑа","СÑббоÑа","ÐоÑкÑеÑенÑе"],G=[{short:"Ðн",accent:"#1d4ed8",border:"#bfdbfe",bgStart:"#eff6ff",bgEnd:"#f8fafc",badgeBg:"#dbeafe"},{short:"ÐÑ",accent:"#7c3aed",border:"#ddd6fe",bgStart:"#f5f3ff",bgEnd:"#faf5ff",badgeBg:"#ede9fe"},{short:"СÑ",accent:"#0f766e",border:"#99f6e4",bgStart:"#ecfeff",bgEnd:"#f0fdfa",badgeBg:"#ccfbf1"},{short:"ЧÑ",accent:"#b45309",border:"#fde68a",bgStart:"#fffbeb",bgEnd:"#fefce8",badgeBg:"#fef3c7"},{short:"ÐÑ",accent:"#be123c",border:"#fecdd3",bgStart:"#fff1f2",bgEnd:"#fff7ed",badgeBg:"#ffe4e6"},{short:"Сб",accent:"#1d4ed8",border:"#bfdbfe",bgStart:"#eff6ff",bgEnd:"#f0f9ff",badgeBg:"#dbeafe"},{short:"ÐÑ",accent:"#047857",border:"#a7f3d0",bgStart:"#ecfdf5",bgEnd:"#f0fdf4",badgeBg:"#d1fae5"}],x=(e=0)=>G[e]||G[0],i=je({type:null,title:"",slug:"",description:"",cover_image_url:"",theme_id:null,date_from:"",date_to:"",status:"draft",scheduled_at:""}),y=v([]),J=v([]),I=v(!0),X=v(!1),z=v(!1),D=v([]),h=v(null),w=v(null),S=v(""),k=v(""),Q=v(""),P=v(!1),B=v(!1);let _e=0;const Y=()=>`item_${++_e}`,R=v(!1),U=v(null),Z=A(()=>i.type==="week"),K=A(()=>i.type&&i.title.trim()&&(Z.value||i.slug.trim())),ee=A(()=>S.value||i.cover_image_url||""),be=A(()=>w.value?.name?w.value.name:i.cover_image_url?"ТекÑÑÐ°Ñ Ð¾Ð±Ð»Ð¾Ð¶ÐºÐ°":""),he=A(()=>w.value?me(w.value.size):i.cover_image_url?"ÐагÑÑжена Ñанее":""),me=(e=0)=>e?e<1024*1024?`${Math.round(e/1024)} ÐÐ`:`${(e/(1024*1024)).toFixed(1)} ÐÐ`:"0 Ð",O=()=>{S.value&&(typeof URL<"u"&&URL.revokeObjectURL(S.value),S.value="")},te=()=>{h.value?.click()},we=()=>{const e=!!(i.cover_image_url||Q.value);O(),w.value=null,k.value="",P.value=e,i.cover_image_url="",h.value&&(h.value.value="")},ke=e=>{const t=e.target?.files?.[0];if(t){if(!t.type.startsWith("image/")){k.value="ÐÑбеÑиÑе Ñайл изобÑажениÑ",L({type:"error",title:"ÐекоÑÑекÑнÑй Ñайл",text:k.value}),h.value&&(h.value.value="");return}if(t.size>_o){k.value="Файл ÑлиÑком болÑÑой. ÐакÑимÑм 10 ÐÐ",L({type:"error",title:"СлиÑком болÑÑой Ñайл",text:k.value}),h.value&&(h.value.value="");return}k.value="",P.value=!1,w.value=t,O(),typeof URL<"u"&&(S.value=URL.createObjectURL(t))}},Ce=e=>(e?.data&&typeof e.data=="object"?e.data:e)?.cover_image_url||"",Fe=async()=>
1{if(w.value){const e=new FormData;e.append("file",w.value),B.value=!0;try{const t=await $.admin.collections.uploadCover(M,e),d=Ce(t);d&&(i.cover_image_url=d,Q.value=d),P.value=!1}finally{B.value=!1}return}if(P.value){B.value=!0;try{await $.admin.collections.deleteCover(M),i.cover_image_url="",Q.value="",P.value=!1}finally{B.value=!1}}},Ee=(e=null)=>({_uid:Y(),id:null,itemType:"place",day_of_week:e,place_id:null,event_id:null,event_dates:[],selectedEventDate:null,selectedPlace:null,placeQuery:"",searchResults:[],showDropdown:!1,searching:!1,searchTimeout:null,custom_url:"",override_title:"",override_description:"",override_image_url:""}),re=(e=null)=>{y.value.push(Ee(e))},oe=e=>{y.value=y.value.filter(t=>t._uid!==e)},j=e=>y.value.filter(t=>t.day_of_week===e),T=e=>{e.place_id=null,e.event_id=null,e.event_dates=[],e.selectedEventDate=null,e.selectedPlace=null,e.placeQuery="",e.searchResults=[],e.showDropdown=!1,e.itemType==="place"&&(e.custom_url="",e.override_image_url="")},se=(e={})=>{const t=e.id??e.place_id??null,d=String(e.name||e.title||"").trim(),o=String(e.address||e.full_address||"").trim(),s=e.imageUrl||e.image_url||e.preview_image_url||null,n=e.resultType||e.type||"place",c=Array.isArray(e.dates)?e.dates:[];return{...e,id:t,name:d,address:o,imageUrl:s,resultType:n,dates:c}},le=e=>{if(!e)return{date:"",time:""};const t=e.match(/^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})/);return{date:t?.[1]||"",time:t?.[2]||""}},ae=e=>{if(!e?.starts_at)return"";const{date:t,time:d}=le(e.starts_at),o=e.ends_at?le(e.ends_at).time:"";let s="";if(t)try{s=new Date(t+"T00:00:00").toLocaleDateString("ru-RU",{day:"numeric",month:"long"})}catch{s=t}return d&&(s+=` · ${d}`),o&&(s+=`â${o}`),s},ne=e=>{const t=e.placeQuery?.trim();if(!t){e.searchResults=[],e.showDropdown=!1,e.searching=!1;return}e.showDropdown=!0,e.searching=!0,e.searchTimeout&&clearTimeout(e.searchTimeout),e.searchTimeout=setTimeout(async()=>{try{const o=He().public.apiBaseUrl,s=ve();if(!s)throw new Error("ÐеобÑ
одимо авÑоÑизоваÑÑÑÑ Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка меÑÑ");const n=await fetch(`${o}/api/v1/admin/search/?q=${encodeURIComponent(t)}&types=place,event&limit=10`,{headers:{Authorization:`Bearer ${s}`}});if(!n.ok)throw new Error("Search failed");const c=await n.json(),V=Array.isArray(c?.data?.events)?c.data.events.map(E=>({...E,resultType:"event"})):[],$e=Array.isArray(c?.data?.places)?c.data.places.map(E=>({...E,resultType:"place"})):[];e.searchResults=[...V,...$e].map(E=>se(E)).filter(E=>E.id!=null&&E.name),e.searchResults.length>0&&(e.showDropdown=!0)}catch(d){console.error("Place search error:",d),e.searchResults=[]}finally{e.searching=!1}},300)},de=(e,t)=>{const d=se(t);d.id!=null&&(e.selectedPlace=d,e.placeQuery="",e.searchResults=[],e.showDropdown=!1,d.resultType==="event"?(e.place_id=null,e.event_id=d.id,e.event_dates=d.dates||[],e.selectedEventDate=e.event_dates[0]||null):(e.place_id=d.id,e.event_id=null,e.event_dates=[],e.selectedEventDate=null))},ie=e=>{U.value=e,R.value=!0},ce=e=>{if(U.value===e)return;const t=y.value.findIndex(s=>s._uid===U.value),d=y.value.findIndex(s=>s._uid===e);if(t===-1||d===-1)return;if(i.type==="week"){const s=y.value[t],n=y.value[d];if(s.day_of_week!==n.day_of_week)return}const[o]=y.value.splice(t,1);y.value.splice(d,0,o)},ue=()=>{},pe=()=>{R.value=!1,U.value=null},Ue=e=>{const t=(e.status_name||"").toLowerCase();return t.includes("опÑбликов")?"published":t.includes("заплан")?"scheduled":"draft"},De=async()=>{I.value=!0;try{const e=await $.admin.collections.one(M),t=e.data||e;i.type=t.type,i.title=t.title||"",i.slug=t.slug||"",i.description=t.description||"",i.cover_image_url=t.cover_image_url||"",Q.value=i.cover_image_url,P.value=!1,k.value="",w.value=null,O(),h.value&&(h.value.value=""),i.theme_id=t.theme?.id||null,i.date_from=t.date_from||"",i.date_to=t.date_to||"",i.status=Ue(t),i.scheduled_at=t.scheduled_at?t.scheduled_at.slice(0,16):"",t.items&&t.items.length&&(y.value=t.items.filter(d=>!d.deleted_at).sort((d,o)=>(d.sort_order||0)-(o.sort_order||0)).map(d=>{const o=!!d.place;
1return{_uid:Y(),id:d.id,itemType:o?"place":"custom",day_of_week:d.day_of_week??null,place_id:d.place?.id||null,selectedPlace:d.place?{id:d.place.id,name:d.place.name,address:d.place.address||"",imageUrl:d.place.imageUrl||d.place.image_url||null,seo_url:d.place.seo_url||""}:null,placeQuery:"",searchResults:[],showDropdown:!1,searching:!1,searchTimeout:null,custom_url:d.custom_url||"",override_title:d.override_title||"",override_description:d.override_description||"",override_image_url:d.override_image_url||""}}))}catch(e){console.error("Load collection error:",e),X.value=!0}finally{I.value=!1}},Pe=async()=>{try{const e=await $.admin.themes.list();J.value=e.data||e||[]}catch(e){console.error("Failed to load themes:",e)}},Te=()=>{const e={type:i.type,title:i.title.trim()};e.description=i.description.trim()||null,e.theme_id=i.theme_id||null,e.date_from=i.date_from||null,e.date_to=i.date_to||null,i.status==="scheduled"&&i.scheduled_at?(e.scheduled_at=new Date(i.scheduled_at).toISOString(),e.status_id=i.status):(e.status_id=i.status,e.scheduled_at=null);const t=[];return i.type==="week"?q.forEach((d,o)=>{j(o).forEach((n,c)=>{const V=ge(n,c);V.day_of_week=o,t.push(V)})}):y.value.forEach((d,o)=>{t.push(ge(d,o))}),e.items=t,e},ge=(e,t)=>{const d={sort_order:t};return e.id&&(d.id=e.id),e.itemType==="place"&&e.event_id?(d.event_id=e.event_id,e.selectedEventDate?.id&&(d.event_date_id=e.selectedEventDate.id)):e.itemType==="place"&&e.place_id&&(d.place_id=e.place_id),e.itemType==="custom"&&e.custom_url&&(d.custom_url=e.custom_url),e.override_title?.trim()&&(d.override_title=e.override_title.trim()),e.override_description?.trim()&&(d.override_description=e.override_description.trim()),e.override_image_url?.trim()&&(d.override_image_url=e.override_image_url.trim()),d},Ve=async()=>{if(D.value=[],!!K.value){z.value=!0;try{const e=Te();await $.admin.collections.update(M,e),await Fe(),L({type:"success",title:"ÐодбоÑка обновлена"}),Ne("/user/podborki/")}catch(e){console.error("Save error:",e),e?.data?.errors?D.value=Object.values(e.data.errors).flat():D.value=[e?.data?.error||"ÐÑибка пÑи ÑоÑ
Ñанении"],L({type:"error",title:"ÐÑибка",text:D.value[0]||"Ðе ÑдалоÑÑ ÑоÑ
ÑаниÑÑ"})}finally{z.value=!1}}};return Ae(()=>{Pe(),De()}),Me(()=>{O()}),(e,t)=>{const d=Qe;return a(),l("div",Ie,[r("div",We,[Le(xe)?I.value?(a(),l("div",Ge,[...t[8]||(t[8]=[r("div",{class:"w-8 h-8 border-2 border-gray-200 border-t-[#8F94EC] rounded-full animate-spin mx-auto"},null,-1),r("p",{class:"mt-3 text-[13px] text-gray-400"},"ÐагÑÑзка...",-1)])])):X.value?(a(),l("div",Je,[t[10]||(t[10]=r("p",{class:"text-gray-500 text-[15px]"},"ÐодбоÑка не найдена",-1)),N(d,{to:"/user/podborki/",class:"inline-block mt-3 text-[#8F94EC] text-[14px] hover:underline"},{default:H(()=>[...t[9]||(t[9]=[b("ÐеÑнÑÑÑÑÑ Ðº ÑпиÑкÑ",-1)])]),_:1})])):(a(),l("div",Xe,[r("div",Ye,[N(d,{to:"/user/",class:"hover:text-[#8F94EC] transition-colors"},{default:H(()=>[...t[11]||(t[11]=[b("ÐÑоÑилÑ",-1)])]),_:1}),t[13]||(t[13]=r("span",{class:"mx-1.5"},"/",-1)),N(d,{to:"/user/podborki/",class:"hover:text-[#8F94EC] transition-colors"},{default:H(()=>[...t[12]||(t[12]=[b("ÐодбоÑки",-1)])]),_:1}),t[14]||(t[14]=r("span",{class:"mx-1.5"},"/",-1)),t[15]||(t[15]=r("span",{class:"text-gray-600"},"РедакÑиÑование",-1))]),t[44]||(t[44]=r("h1",{class:"text-[22px] font-semibold text-gray-900 mb-6"},"РедакÑиÑование подбоÑки",-1)),r("div",Ze,[t[21]||(t[21]=r("h2",{class:"text-[16px] font-semibold text-gray-900 mb-5"},"ÐÑновное",-1)),r("div",Ke,[t[16]||(t[16]=r("label",{class:"block text-[14px] font-medium text-gray-700 mb-2"},[b("Ðаголовок "),r("span",{class:"text-red-400"},"*")],-1)),g(r("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>i.title=o),type:"text",placeholder:"ÐапÑимеÑ: Топ меÑÑ ÑнваÑÑ",class:"w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent text-[15px] transition-all"},null,512),[[f,i.title]])]),Z.value?p("",!0):(a(),l("div",et,[t[17]||(t[17]=r("label",{class:"block text-[14px] font-medium text-gray-700 mb-2"},"Slug",-1)),r("input",{value:i.slug,type:"text",disabled:"",class:"w-full px-4 py-3 border border-gray-200 rounded-xl text-[15px] font-mono text-[14px] bg-gray-50 text-gray-500 cursor-not-allowed"},null,8,tt)])),r("div",rt,[t[18]||(t[18]=r("label",{class:"block text-[14px] font-medium text-gray-700 mb-2"},"ÐпиÑание",-1)),g(r("textarea",{"onUpdate:modelValue":t[1]||(t[1]=o=>i.description=o),rows:"3",placeholder:"ÐÑаÑкое опиÑание подбоÑки...",class:"w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent text-[15px] transition-all resize-none"},null,512),[[f,i.description]])]),r("div",null,[t[20]||(t[20]=r("label",{class:"block text-[14px] font-medium text-gray-700 mb-2"},"ФоÑо обложки",-1)),r("div",ot,[r("input",{ref_key:"coverPhotoInputRef",ref:h,type:"file",accept:"image/jpeg,image/png,image/webp,image/avif",class:"hidden",onChange:ke},null,544),ee.value?(a(),l("div",st,[r("div",lt,[r("img",{src:ee.value,alt:"ÐÑевÑÑ Ð¾Ð±Ð»Ð¾Ð¶ÐºÐ¸",class:"aspect-[16/9] w-full object-cover"},null,8,at)]),r("div",nt,[r("div",dt,[r("p",it,u(be.value),1),r("p",ct,u(he.value),1)]),r("div",{class:"flex items-center gap-1.5"},[r("button",{type:"button",class:"rounded-lg border border-gray-200 px-3 py-1.5 text-[12px] font-medium text-gray-600 transition-all hover:bg-white",onClick:te}," ÐамениÑÑ "),r("button",{type:"button",class:"rounded-lg border border-transparent px-3 py-1.5 text-[12px] font-medium text-gray-500 transition-all hover:bg-white hover:text-gray-700",onClick:we}," УбÑаÑÑ ")])])])):(a(),l("button",{key:1,type:"button",class:"flex w-full flex-col items-center justify-center rounded-xl border border-dashed border-gray-300 bg-white/70 px-4 py-8 text-center transition-all hover:border-gray-400 hover:bg-white",onClick:te},[...t[19]||(t[19]=[W('<span class="mb-2 inline-flex h-9 w-9 items-center justify-center rounded-full border border-gray-200 bg-gray-50 text-gray-500"><svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5v14m7-7H5"></path></svg></span><p class="text-[13px] font-medium text-gray-700">ÐагÑÑзиÑÑ ÑоÑо</p><p class="mt-1 text-[12px] text-gray-500">JPG, PNG, WebP или AVIF до 10 ÐÐ</p>',3)])]))]),k.value?(a(),l("p",ut,u(k.value),1)):p("",!0)])]),r("div",pt,[t[28]||(t[28]=r("h2",{class:"text-[16px] font-semibold text-gray-900 mb-5"},"ÐаÑÑÑойки",-1)),r("div",gt,[t[23]||(t[23]=r("label",{class:"block text-[14px] font-medium text-gray-700 mb-2"},"Тема",-1)),g(r("select",{"onUpdate:modelValue":t[2]||(t[2]=o=>i.theme_id=o),class:"w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent text-[15px] transition-all"},[t[22]||(t[22]=r("option",{value:null},"Ðез ÑемÑ",-1)),(a(!0),l(_,null,m(J.value,o=>(a(),l("option",{key:o.id,value:o.id},u(o.title),9,ft))),128))],512),[[ze,i.theme_id]])]),r("div",xt,[r("div",null,[t[24]||(t[24]=r("label",{class:"block text-[14px] font-medium text-gray-700 mb-2"},"ÐаÑа наÑала",-1)),g(r("input",{"onUpdate:modelValue":t[3]||(t[3]=o=>i.date_from=o),type:"date",class:"w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent text-[15px] transition-all"},null,512),[[f,i.date_from]])]),r("div",null,[t[25]||(t[25]=r("label",{class:"block text-[14px] font-medium text-gray-700 mb-2"},"ÐаÑа оконÑаниÑ",-1)),g(r("input",{"onUpdate:modelValue":t[4]||(t[4]=o=>i.date_to=o),type:"date",class:"w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent text-[15px] transition-all"},null,512),[[f,i.date_to]])])]),r("div",vt,[t[26]||(t[26]=r("label",{class:"block text-[14px] font-medium text-gray-700 mb-2"},"СÑаÑÑÑ",-1)),r("div",yt,[(a(),l(_,null,m(ye,o=>r("button",{key:o.id,type:"button",class:C(["px-4 py-2 rounded-xl text-[13px] font-medium transition-all border",i.status===o.id?"bg-[#8F94EC] text-white border-[#8F94EC] shadow-sm":"bg-white text-gray-600 border-gray-200 hover:bg-gray-50"]),onClick:s=>i.status=o.id},u(o.label),11,_t)),64))])]),i.status==="scheduled"?(a(),l("div",bt,[t[27]||(t[27]=r("label",{class:"block text-[14px] font-medium text-gray-700 mb-2"},"ÐаÑа и вÑÐµÐ¼Ñ Ð¿ÑбликаÑии",-1)),g(r("input",{"onUpdate:modelValue":t[5]||(t[5]=o=>i.scheduled_at=o),type:"datetime-local",class:"w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent text-[15px] transition-all"},null,512),[[f,i.scheduled_at]])])):p("",!0)]),r("div",ht,[r("h2",mt,[t[29]||(t[29]=b(" ÐлеменÑÑ Ð¿Ð¾Ð´Ð±Ð¾Ñки ",-1)),i.type==="week"?(a(),l("span",wt,"по днÑм недели")):p("",!0)]),i.type==="week"?(a(),l("div",kt,[(a(),l(_,null,m(q,(o,s)=>r("div",{key:s,class:"relative overflow-hidden rounded-2xl border p-4 sm:p-5",style:F({borderColor:x(s).border,background:`linear-gradient(135deg, ${x(s).bgStart} 0%, #ffffff 48%, ${x(s).bgEnd} 100%)`})},[r("div",Ct,[r("div",Ft,[r("span",{class:"inline-flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-xl text-[12px] font-semibold",style:F({backgroundColor:x(s).badgeBg,color:x(s).accent})},u(x(s).short),5),r("div",Et,[r("p",Ut,u(o),1),r("p",Dt,u(j(s).length?"ÐапланиÑованнÑе ÑлеменÑÑ Ð´Ð½Ñ":"Ðока без ÑлеменÑов"),1)])]),r("span",{class:"inline-flex items-center rounded-full px-2.5 py-1 text-[11px] font-semibold",style:F({backgroundColor:x(s).badgeBg,color:x(s).accent})},u(j(s).length),5)]),r("div",Pt,[j(s).length===0?(a(),l("div",{key:0,class:"rounded-xl border border-dashed px-3 py-2.5 text-[12px]",style:F({borderColor:x(s).border,color:x(s).accent,backgroundColor:"#ffffffb3"})}," ÐобавÑÑе пеÑвÑй ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ð´Ð»Ñ ÑÑого Ð´Ð½Ñ ",4)):p("",!0),(a(!0),l(_,null,m(j(s),n=>(a(),l("div",{key:n._uid,class:C(["group rounded-2xl border bg-white/90 p-4 shadow-[0_10px_24px_-20px_rgba(15,23,42,0.45)] backdrop-blur-[1px] transition-all hover:shadow-[0_14px_28px_-18px_rgba(15,23,42,0.55)]",{"shadow-[0_16px_30px_-16px_rgba(15,23,42,0.5)]":R.value&&U.value===n._uid}]),style:F({borderColor:R.value&&U.value===n._uid?x(s).accent:"#e5e7eb"}),draggable:"true",onDragstart:c=>ie(n._uid),onDragover:fe(c=>ce(n._uid),["prevent"]),onDrop:ue,onDragend:pe},[r("div",Vt,[t[35]||(t[35]=W('<div class="cursor-grab rounded-lg p-1.5 text-gray-400 transition-colors group-hover:text-gray-600" title="ÐеÑеÑаÑиÑÑ"><svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24"><circle cx="9" cy="6" r="1.5"></circle><circle cx="15" cy="6" r="1.5"></circle><circle cx="9" cy="12" r="1.5"></circle><circle cx="15" cy="12" r="1.5"></circle><circle cx="9" cy="18" r="1.5"></circle><circle cx="15" cy="18" r="1.5"></circle></svg></div>',1)),r("div",$t,[r("div",St,[r("button",{type:"button",class:C(["px-3 py-1.5 rounded-lg text-[12px] font-medium transition-all border",n.itemType==="place"?"text-white border-transparent shadow-sm":"bg-white text-gray-500 border-gray-200 hover:bg-gray-50"]),style:F(n.itemType==="place"?{backgroundColor:x(s).accent,borderColor:x(s).accent}:{}),onClick:c=>{n.itemType="place",T(n)}}," ÐеÑÑо ",14,Bt),r("button",{type:"button",class:C(["px-3 py-1.5 rounded-lg text-[12px] font-medium transition-all border",n.itemType==="custom"?"bg-gray-900 text-white border-gray-900 shadow-sm":"bg-white text-gray-500 border-gray-200 hover:bg-gray-50"]),onClick:c=>{n.itemType="custom",T(n)}}," Ð¡Ð²Ð¾Ñ ",10,Rt)]),n.itemType==="place"?(a(),l(_,{key:0},[n.selectedPlace?(a(),l("div",Xt,[r("div",Yt,[n.selectedPlace.imageUrl?(a(),l("img",{key:0,src:n.selectedPlace.imageUrl,alt:n.selectedPlace.name,class:"w-full h-full object-cover"},null,8,Zt)):(a(),l("div",Kt,u(n.selectedPlace.name?.[0]?.toUpperCase()),1))]),r("div",er,[r("p",tr,[n.selectedPlace.resultType==="event"?(a(),l("span",rr,"ÑобÑÑие")):p("",!0),b(" "+u(n.selectedPlace.name),1)]),r("p",or,u(n.selectedPlace.address),1)]),r("button",{type:"button",class:"text-gray-400 hover:text-red-500 transition-colors",onClick:c=>T(n)},[...t[31]||(t[31]=[r("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,sr)])):(a(),l("div",jt,[g(r("input",{"onUpdate:modelValue":c=>
1n.placeQuery=c,type:"text",placeholder:"ÐоиÑк меÑÑа...",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:border-transparent transition-all pr-8 bg-white",style:F({"--tw-ring-color":x(s).accent}),onInput:c=>ne(n),onFocus:c=>n.showDropdown=!0},null,44,At),[[f,n.placeQuery]]),n.searching?(a(),l("svg",{key:0,class:"absolute right-2.5 top-1/2 -translate-y-1/2 w-4 h-4 animate-spin",style:F({color:x(s).accent}),fill:"none",viewBox:"0 0 24 24"},[...t[30]||(t[30]=[r("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),r("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])],4)):p("",!0),n.showDropdown&&n.placeQuery?.trim()?(a(),l("div",Mt,[n.searching?(a(),l("div",Lt,"ÐоиÑк...")):n.searchResults?.length===0?(a(),l("div",zt,"Ðе найдено")):(a(),l("div",Qt,[(a(!0),l(_,null,m(n.searchResults,c=>(a(),l("button",{key:c.id,type:"button",class:"w-full px-3 py-2 hover:bg-gray-50 flex items-center gap-2.5 transition-colors text-left",onClick:V=>de(n,c)},[r("div",Nt,[c.imageUrl?(a(),l("img",{key:0,src:c.imageUrl,alt:c.name,class:"w-full h-full object-cover"},null,8,Ht)):(a(),l("div",It,u(c.name?.[0]?.toUpperCase()),1))]),r("div",Wt,[r("p",qt,[c.resultType==="event"?(a(),l("span",Gt,"ÑобÑÑие")):p("",!0),b(" "+u(c.name),1)]),r("p",Jt,u(c.address),1)])],8,Ot))),128))]))])):p("",!0)])),n.event_id&&n.event_dates.length?(a(),l("div",lr,[t[32]||(t[32]=r("p",{class:"text-[12px] text-gray-400 mb-1.5"},"ÐаÑа ÑобÑÑиÑ:",-1)),r("div",ar,[(a(!0),l(_,null,m(n.event_dates,c=>(a(),l("button",{key:c.id,type:"button",onClick:V=>n.selectedEventDate=c,class:C(["w-full text-left px-3 py-2 rounded-lg border text-[13px] transition-all",n.selectedEventDate?.id===c.id?"border-[#8F94EC] bg-[#F0F1FC] text-[#8F94EC]":"border-gray-200 bg-white hover:bg-gray-50 text-gray-700"])},[r("div",dr,[r("span",null,u(ae(c)),1),r("span",ir,u(c.price_min==null&&c.price_max==null||c.price_min===0?"ÐеÑплаÑно":c.price_min?`Ð¾Ñ ${c.price_min} â½`:""),1)])],10,nr))),128))])])):p("",!0)],64)):p("",!0),n.itemType==="custom"?(a(),l("div",cr,[g(r("input",{"onUpdate:modelValue":c=>n.override_title=c,type:"text",placeholder:"Ðазвание",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,ur),[[f,n.override_title]]),g(r("input",{"onUpdate:modelValue":c=>n.override_description=c,type:"text",placeholder:"ÐпиÑание",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,pr),[[f,n.override_description]]),g(r("input",{"onUpdate:modelValue":c=>n.custom_url=c,type:"url",placeholder:"СÑÑлка (https://...)",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,gr),[[f,n.custom_url]]),g(r("input",{"onUpdate:modelValue":c=>n.override_image_url=c,type:"url",placeholder:"URL каÑÑинки",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,fr),[[f,n.override_image_url]])])):p("",!0),n.itemType==="place"&&n.selectedPlace&&!n.event_id?(a(),l("div",xr,[t[33]||(t[33]=r("p",{class:"text-[12px] text-gray-400"},"ÐеÑеопÑеделиÑÑ (необÑзаÑелÑно):",-1)),g(r("input",{"onUpdate:modelValue":c=>n.override_title=c,type:"text",placeholder:"Свой заголовок",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[13px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,vr),[[f,n.override_title]]),g(r("input",{"onUpdate:modelValue":c=>n.override_description=c,type:"text",placeholder:"Ð¡Ð²Ð¾Ñ Ð¾Ð¿Ð¸Ñание",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[13px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,yr),[[f,n.override_description]])])):p("",!0)]),r("button",{type:"button",class:"rounded-lg p-1.5 text-gray-300 hover:text-red-500 hover:bg-red-50 transition-colors flex-shrink-0",onClick:c=>oe(n._uid)},[...t[34]||(t[34]=[r("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)])],8,_r)])],46,Tt))),128)),r("button",{type:"button",class:"w-full rounded-xl border-2 border-dashed py-2.5 text-[13px] font-medium transition-all",style:F({borderColor:x(s).border,color:x(s).accent,backgroundColor:"#ffffffcc"}),onClick:n=>re(s)}," + ÐобавиÑÑ ÑÐ»ÐµÐ¼ÐµÐ½Ñ ",12,br)])],4)),64))])):i.type?(a(),l("div",hr,[(a(!0),l(_,null,m(y.value,o=>(a(),l("div",{key:o._uid,class:C(["border border-gray-200 rounded-xl p-4 transition-all",{"border-[#8F94EC] shadow-md":R.value&&U.value===o._uid}]),draggable:"true",onDragstart:s=>ie(o._uid),onDragover:fe(s=>ce(o._uid),["prevent"]),onDrop:ue,onDragend:pe},[r("div",wr,[t[41]||(t[41]=W('<div class="cursor-grab text-gray-300 hover:text-gray-500 pt-1 flex-shrink-0" title="ÐеÑеÑаÑиÑÑ"><svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><circle cx="9" cy="6" r="1.5"></circle><circle cx="15" cy="6" r="1.5"></circle><circle cx="9" cy="12" r="1.5"></circle><circle cx="15" cy="12" r="1.5"></circle><circle cx="9" cy="18" r="1.5"></circle><circle cx="15" cy="18" r="1.5"></circle></svg></div>',1)),r("div",kr,[r("div",Cr,[r("button",{type:"button",class:C(["px-3 py-1.5 rounded-lg text-[12px] font-medium transition-all border",o.itemType==="place"?"bg-[#8F94EC] text-white border-[#8F94EC]":"bg-white text-gray-500 border-gray-200 hover:bg-gray-50"]),onClick:s=>{o.itemType="place",T(o)}},"ÐеÑÑо",10,Fr),r("button",{type:"button",class:C(["px-3 py-1.5 rounded-lg text-[12px] font-medium transition-all border",o.itemType==="custom"?"bg-[#8F94EC] text-white border-[#8F94EC]":"bg-white text-gray-500 border-gray-200 hover:bg-gray-50"]),onClick:s=>{o.itemType="custom",T(o)}},"СвоÑ",10,Er)]),o.itemType==="place"?(a(),l(_,{key:0},[o.selectedPlace?(a(),l("div",Or,[r("div",Nr,[o.selectedPlace.imageUrl?(a(),l("img",{key:0,src:o.selectedPlace.imageUrl,alt:o.selectedPlace.name,class:"w-full h-full object-cover"},null,8,Hr)):(a(),l("div",Ir,u(o.selectedPlace.name?.[0]?.toUpperCase()),1))]),r("div",Wr,[r("p",qr,[o.selectedPlace.resultType==="event"?(a(),l("span",Gr,"ÑобÑÑие")):p("",!0),b(" "+u(o.selectedPlace.name),1)]),r("p",Jr,u(o.selectedPlace.address),1)]),r("button",{type:"button",class:"text-gray-400 hover:text-red-500 transition-colors",onClick:s=>T(o)},[...t[37]||(t[37]=[r("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,Xr)])):(a(),l("div",Ur,[g(r("input",{"onUpdate:modelValue":s=>o.placeQuery=s,type:"text",placeholder:"ÐоиÑк меÑÑа...",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all pr-8",onInput:s=>ne(o),onFocus:s=>o.showDropdown=!0},null,40,Dr),[[f,o.placeQuery]]),o.searching?(a(),l("svg",Pr,[...t[36]||(t[36]=[r("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),r("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])])):p("",!0),o.showDropdown&&o.placeQuery?.trim()?(a(),l("div",Tr,[o.searching?(a(),l("div",Vr,"ÐоиÑк...")):o.searchResults?.length===0?(a(),l("div",$r,"Ðе найдено")):(a(),l("div",Sr,[(a(!0),l(_,null,m(o.searchResults,s=>(a(),l("button",{key:s.id,type:"button",class:"w-full px-3 py-2 hover:bg-gray-50 flex items-center gap-2.5 transition-colors text-left",onClick:n=>de(o,s)},[r("div",Rr,[s.imageUrl?(a(),l("img",{key:0,src:s.imageUrl,alt:s.name,class:"w-full h-full object-cover"},null,8,jr)):(a(),l("div",Ar,u(s.name?.[0]?.toUpperCase()),1))]),r("div",Mr,[r("p",Lr,[s.resultType==="event"?(a(),l("span",zr,"ÑобÑÑие")):p("",!0),b(" "+u(s.name),1)]),r("p",Qr,u(s.address),1)])],8,Br))),128))]))])):p("",!0)])),o.event_id&&o.event_dates.length?(a(),l("div",Yr,[t[38]||(t[38]=r("p",{class:"text-[12px] text-gray-400 mb-1.5"},"ÐаÑа ÑобÑÑиÑ:",-1)),r("div",Zr,[(a(!0),l(_,null,m(o.event_dates,s=>(a(),l("button",{key:s.id,type:"button",onClick:n=>
1o.selectedEventDate=s,class:C(["w-full text-left px-3 py-2 rounded-lg border text-[13px] transition-all",o.selectedEventDate?.id===s.id?"border-[#8F94EC] bg-[#F0F1FC] text-[#8F94EC]":"border-gray-200 bg-white hover:bg-gray-50 text-gray-700"])},[r("div",eo,[r("span",null,u(ae(s)),1),r("span",to,u(s.price_min==null&&s.price_max==null||s.price_min===0?"ÐеÑплаÑно":s.price_min?`Ð¾Ñ ${s.price_min} â½`:""),1)])],10,Kr))),128))])])):p("",!0)],64)):p("",!0),o.itemType==="custom"?(a(),l("div",ro,[g(r("input",{"onUpdate:modelValue":s=>o.override_title=s,type:"text",placeholder:"Ðазвание",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,oo),[[f,o.override_title]]),g(r("input",{"onUpdate:modelValue":s=>o.override_description=s,type:"text",placeholder:"ÐпиÑание",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,so),[[f,o.override_description]]),g(r("input",{"onUpdate:modelValue":s=>o.custom_url=s,type:"url",placeholder:"СÑÑлка (https://...)",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,lo),[[f,o.custom_url]]),g(r("input",{"onUpdate:modelValue":s=>o.override_image_url=s,type:"url",placeholder:"URL каÑÑинки",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[14px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,ao),[[f,o.override_image_url]])])):p("",!0),o.itemType==="place"&&o.selectedPlace&&!o.event_id?(a(),l("div",no,[t[39]||(t[39]=r("p",{class:"text-[12px] text-gray-400"},"ÐеÑеопÑеделиÑÑ (необÑзаÑелÑно):",-1)),g(r("input",{"onUpdate:modelValue":s=>o.override_title=s,type:"text",placeholder:"Свой заголовок",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[13px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,io),[[f,o.override_title]]),g(r("input",{"onUpdate:modelValue":s=>o.override_description=s,type:"text",placeholder:"Ð¡Ð²Ð¾Ñ Ð¾Ð¿Ð¸Ñание",class:"w-full px-3 py-2 border border-gray-200 rounded-lg text-[13px] focus:ring-2 focus:ring-[#8F94EC] focus:border-transparent transition-all"},null,8,co),[[f,o.override_description]])])):p("",!0)]),r("button",{type:"button",class:"text-gray-300 hover:text-red-500 transition-colors flex-shrink-0 pt-1",onClick:s=>oe(o._uid)},[...t[40]||(t[40]=[r("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)])],8,uo)])],42,mr))),128)),r("button",{type:"button",class:"w-full py-2.5 border-2 border-dashed border-gray-200 rounded-xl text-[13px] font-medium text-gray-400 hover:text-[#8F94EC] hover:border-[#8F94EC] transition-all",onClick:t[6]||(t[6]=o=>re())},"+ ÐобавиÑÑ ÑлеменÑ")])):p("",!0),i.type?p("",!0):(a(),l("div",po," СнаÑала вÑбеÑиÑе Ñип подбоÑки "))]),r("div",go,[r("button",{type:"button",class:"px-6 py-3 rounded-xl text-[14px] font-semibold bg-[#8F94EC] text-white hover:bg-[#7F85E8] transition-all shadow-sm disabled:opacity-50 disabled:cursor-not-allowed",disabled:z.value||!K.value,onClick:Ve},[z.value?(a(),l("span",xo,[t[42]||(t[42]=r("svg",{class:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24"},[r("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),r("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),b(" "+u(B.value?"ÐагÑÑзка обложки...":"СоÑ
Ñанение..."),1)])):(a(),l("span",vo,"СоÑ
ÑаниÑÑ"))],8,fo),N(d,{to:"/user/podborki/",class:"px-6 py-3 rounded-xl text-[14px] font-medium text-gray-600 hover:bg-gray-100 transition-all"},{default:H(()=>[...t[43]||(t[43]=[b(" ÐÑмена ",-1)])]),_:1})]),D.value.length?(a(),l("div",yo,[(a(!0),l(_,null,m(D.value,(o,s)=>(a(),l("p",{key:s,class:"text-[13px] text-red-600"},u(o),1))),128))])):p("",!0)])):(a(),l("div",qe,[...t[7]||(t[7]=[r("p",{class:"text-gray-500 text-[15px]"},"ÐÐµÑ Ð´Ð¾ÑÑÑпа к ÑÑÐ¾Ð¼Ñ ÑазделÑ",-1)])]))])])}}};export{wo 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.