1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9539],{35475:function(e,t,d){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/kayit-takvimi",function(){return d(72333)}])},72333:function(e,t,d){"use strict";d.r(t),d.d(t,{__N_SSP:function(){return y}});var a=d(85893),r=d(5379),s=d.n(r),l=d(67294),n=d(5152),i=d.n(n),o=d(81758),c=d(87066),x=d(45945),m=d(39897),b=d(5190),f=d(62584),u=d(23826);let g="/api/admin/calendar-events",h="/api/admin/calendar-events/logs",p=i()(()=>d.e(3907).then(d.bind(d,43907)),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),colorFor=e=>"Video"===e?"#7c3aed":"#2563eb",emojiFor=e=>"Video"===e?"\uD83C\uDFA5":"\uD83C\uDFA7";let CalendarErrorBoundary=class CalendarErrorBoundary extends l.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){console.error("Kayıt takvimi bileÅeni y\xfcklenemedi:",e)}render(){return this.state.hasError?(0,a.jsxs)("div",{className:"min-h-[24rem] flex flex-col items-center justify-center gap-3 text-center text-gray-500 dark:text-gray-400",children:[(0,a.jsx)("div",{className:"text-sm font-semibold text-gray-700 dark:text-gray-200",children:"Takvim bileÅeni y\xfcklenemedi."}),(0,a.jsx)("p",{className:"max-w-md text-xs",children:"Tarayıcı eski bir sayfa paketini tutmuÅ olabilir. Sayfayı yenileyince takvim yeniden kurulacak."}),(0,a.jsx)("button",{type:"button",onClick:()=>window.location.reload(),className:"px-3 py-2 rounded-lg bg-violet-600 text-white text-xs font-semibold hover:bg-violet-700 transition",children:"Sayfayı yenile"})]}):this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}};let toDateInput=e=>{let t=e.getFullYear(),d=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(d,"-").concat(a)},toTimeInput=e=>"".concat(String(e.getHours()).padStart(2,"0"),":").concat(String(e.getMinutes()).padStart(2,"0")),isValidDateString=e=>!!e&&!Number.isNaN(new Date(e).getTime()),safeDateTime=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?"â":t.toLocaleString("tr-TR",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"})},buildTimeOptions=()=>{let e=[];for(let t=8;t<=22;t++)for(let d of["00","30"])(22!==t||"30"!==d)&&e.push("".concat(String(t).padStart(2,"0"),":").concat(d));return e},j={id:null,title:"",date:"",startTime:"09:00",endTime:"10:00",attendees:1,sessionType:"Ses",relatedId:null,relatedTitle:null,relatedType:null},sortShowOptions=e=>[...e].sort((e,t)=>{let d="number"==typeof e.showOrder?e.showOrder:Number.MAX_SAFE_INTEGER,a="number"==typeof t.showOrder?t.showOrder:Number.MAX_SAFE_INTEGER;return d!==a?d-a:e.title.localeCompare(t.title,"tr")}),ShowPicker=e=>{let{options:t,onSelect:d,onClose:r}=e,[s,n]=(0,l.useState)(""),i=(0,l.useMemo)(()=>{let e=s.toLowerCase();return e?t.filter(t=>t.title.toLowerCase().includes(e)):t},[s,t]);return(0,a.jsx)("div",{className:"fixed inset-0 bg-black/40 backdrop-blur-sm flex items-center justify-center z-[70] p-4",onMouseDown:e=>{e.target===e.currentTarget&&r()},children:(0,a.jsxs)("div",{className:"bg-white dark:bg-zinc-800 rounded-2xl shadow-2xl w-full max-w-sm flex flex-col max-h-[75dvh]",children:[(0,a.jsxs)("div",{className:"px-4 pt-4 pb-3 border-b border-gray-100 dark:border-zinc-700 flex items-center gap-3",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",className:"w-4 h-4 text-gray-400 shrink-0",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})}),(0,a.jsx)("input",{type:"text",placeholder:"Åov araâ¦",value:s,onChange:e=>n(e.target.value),className:"flex-1 text-base sm:text-sm bg-transparent text-gray-900 dark:text-white placeholder:text-gray-400 focus:outline-none"}),(0,a.jsx)("button",{onClick:r,className:"shrink-0 text-xs text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition font-medium",children:"İptal"})]}),(0,a.jsxs)("ul",{className:"overflow-y-auto flex-1",children:[0===i.length&&(0,a.jsx)("li",{className:"px-4 py-3 text-sm text-gray-400",children:"Sonu\xe7 bulunamadı."}),i.slice(0,50).map(e=>(0,a.jsxs)("li",{onClick:()=>{d(e),r()},className:"px-4 py-3 text-sm text-gray-800 dark:text-gray-100 cursor-pointer hover:bg-violet-50 dark:hover:bg-violet-500/10 border-b border-gray-50 dark:border-zinc-700/50 last:border-0 truncate",children:["videocast"===e.showType?"\uD83C\uDFA5":"\uD83C\uDF99ï¸"," ",e.title]},e.id))]})]})})};var y=!0;t.default=()=>{var e;let[t,d]=(0,l.useState)(!1),[r,n]=(0,l.useState)(!1),[i,y]=(0,l.useState)(j),[v,k]=(0,l.useState)(null),[w,N]=(0,l.useState)(!1),[T,z]=(0,l.useState)(null),[C,S]=(0,l.useState)(null),[D,E]=(0,l.useState)(null),[L,B]=(0,l.useState)(!1),[A,M]=(0,l.useState)(null),[F,I]=(0,l.useState)([]),[P,Z]=(0,l.useState)(!1),[O,K]=(0,l.useState)(!1),R=(0,l.useMemo)(buildTimeOptions,[]),W=(0,l.useMemo)(()=>A?"".concat(g,"?start=").concat(encodeURIComponent(A.start),"&end=").concat(encodeURIComponent(A.end)):null,[A]),_="".concat(h,"?limit=").concat(10),{data:V,error:G,isLoading:H,mutate:U}=(0,o.ZP)(W,u.Z,{keepPreviousData:!0,revalidateIfStale:!0,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshInterval:6e4}),{data:X,error:Y,mutate:q}=(0,o.ZP)(_,u.Z,{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1}),{data:J}=(0,o.ZP)(L?"/api/admin/shows-for-select?includeFilms=false":null,u.Z,{revalidateOnFocus:!1,revalidateIfStale:!1,revalidateOnReconnect:!1}),Q=(0,l.useMemo)(()=>{var e,t;return sortShowOptions([...(null!==(e=null==J?void 0:J.podcasts)&&void 0!==e?e:[]).map(e=>({id:e.id,title:e.title,showType:"podcast",showOrder:e.showOrder})),...(null!==(t=null==J?void 0:J.videocasts)&&void 0!==t?t:[]).map(e=>({id:e.id,title:e.title,showType:"videocast",showOrder:e.showOrder}))])},[J]),[$,ee]=(0,l.useState)(null),[et,ed]=(0,l.useState)(!1),[ea,er]=(0,l.useState)(""),[es,el]=(0,l.useState)(!1),[en,ei]=(0,l.useState)(""),[eo,ec]=(0,l.useState)(""),[ex,em]=(0,l.useState)("ALL");(0,l.useEffect)(()=>d(!0),[]),(0,l.useEffect)(()=>{var e;I(null!==(e=null==X?void 0:X.logs)&&void 0!==e?e:[]),Z(!!(null==X?void 0:X.hasMore))},[X]);let eb=(0,l.useMemo)(()=>{var e;return null!==(e=null==V?void 0:V.events)&&void 0!==e?e:[]},[V]),ef=(0,l.useMemo)(()=>eb.filter(e=>isValidDateString(e.startAt)&&(!e.endAt||isValidDateString(e.endAt))).filter(e=>null===$||e.relatedTitle===$).map(e=>{var t,d,a,r,s,l;return{id:e.id,title:e.title||"BaÅlıksız rezervasyon",start:e.startAt,end:null!==(t=e.endAt)&&void 0!==t?t:void 0,backgroundColor:colorFor(e.sessionType),borderColor:colorFor(e.sessionType),extendedProps:{attendees:null!==(d=e.attendees)&&void 0!==d?d:1,sessionType:null!==(a=e.sessionType)&&void 0!==a?a:"Ses",createdByName:e.createdByName,createdByEmail
1:e.createdByEmail,updatedByEmail:e.updatedByEmail,relatedId:null!==(r=e.relatedId)&&void 0!==r?r:null,relatedTitle:null!==(s=e.relatedTitle)&&void 0!==s?s:null,relatedType:null!==(l=e.relatedType)&&void 0!==l?l:null}}}),[eb,$]),closeModal=()=>{n(!1),k(null),y(j),B(!1)},openAddModal=(e,t)=>{k(null),y({...j,date:toDateInput(e),startTime:toTimeInput(e),endTime:toTimeInput(t)}),n(!0)},openEditModal=e=>{var t,d,a,r;k(null);let s=e.start,l=null!==(t=e.end)&&void 0!==t?t:new Date(s.getTime()+18e5);y({id:e.id,title:e.title,date:toDateInput(s),startTime:toTimeInput(s),endTime:toTimeInput(l),attendees:Number(e.extendedProps.attendees)||1,sessionType:e.extendedProps.sessionType||"Ses",relatedId:null!==(d=e.extendedProps.relatedId)&&void 0!==d?d:null,relatedTitle:null!==(a=e.extendedProps.relatedTitle)&&void 0!==a?a:null,relatedType:null!==(r=e.extendedProps.relatedType)&&void 0!==r?r:null,createdByName:e.extendedProps.createdByName,createdByEmail:e.extendedProps.createdByEmail,updatedByEmail:e.extendedProps.updatedByEmail}),n(!0)},handleSubmit=async e=>{var t,d,a,r,s,l;if(e.preventDefault(),k(null),!i.title.trim()){k("Program / Konuk adı zorunludur.");return}if(i.startTime>=i.endTime){k("BitiÅ saati baÅlangı\xe7 saatinden sonra olmalıdır.");return}let n=new Date("".concat(i.date,"T").concat(i.startTime,":00")).toISOString(),o=new Date("".concat(i.date,"T").concat(i.endTime,":00")).toISOString(),x={title:i.title.trim(),startAt:n,endAt:o,attendees:""===i.attendees?1:Math.max(0,i.attendees),sessionType:i.sessionType,relatedId:null!==(t=i.relatedId)&&void 0!==t?t:null,relatedTitle:null!==(d=i.relatedTitle)&&void 0!==d?d:null,relatedType:i.relatedId?null!==(a=i.relatedType)&&void 0!==a?a:"podcast":null};N(!0);try{i.id?await c.Z.put("".concat(g,"/").concat(i.id),x):await c.Z.post(g,x),await Promise.all([U(),q()]),closeModal()}catch(e){k(null!==(l=null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(r=s.data)||void 0===r?void 0:r.error)&&void 0!==l?l:"Kaydetme sırasında bir hata oluÅtu.")}finally{N(!1)}},handleDelete=async()=>{if(i.id&&window.confirm("Bu rezervasyonu silmek istediÄinize emin misiniz?")){N(!0);try{await c.Z.delete("".concat(g,"/").concat(i.id)),await Promise.all([U(),q()]),closeModal()}catch(a){var e,t,d;k(null!==(d=null==a?void 0:null===(t=a.response)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.error)&&void 0!==d?d:"Silme sırasında bir hata oluÅtu.")}finally{N(!1)}}},actionMeta=e=>{var t;return null!==(t=({CREATE:{label:"Eklendi",cls:"bg-emerald-100 text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-400"},UPDATE:{label:"G\xfcncellendi",cls:"bg-blue-100 text-blue-700 dark:bg-blue-500/15 dark:text-blue-400"},DELETE:{label:"Silindi",cls:"bg-rose-100 text-rose-700 dark:bg-rose-500/15 dark:text-rose-400"}})[e])&&void 0!==t?t:{label:e,cls:"bg-gray-100 text-gray-600 dark:bg-zinc-700 dark:text-gray-300"}},eu=eb.filter(e=>{var t;return(null!==(t=e.sessionType)&&void 0!==t?t:"Ses")==="Ses"}).length,eg=eb.filter(e=>"Video"===e.sessionType).length,eh=(0,l.useMemo)(()=>{let e=F;if("ALL"!==ex&&(e=e.filter(e=>e.action===ex)),eo.trim()){let t=eo.toLowerCase();e=e.filter(e=>{var d,a,r;return(null!==(d=e.description)&&void 0!==d?d:"").toLowerCase().includes(t)||(null!==(a=e.performedByEmail)&&void 0!==a?a:"").toLowerCase().includes(t)||(null!==(r=e.performedBy)&&void 0!==r?r:"").toLowerCase().includes(t)})}return e},[F,ex,eo]),logsForEvent=e=>F.filter(t=>t.entityId===e).sort((e,t)=>new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()),loadMoreLogs=async()=>{if(!O&&P){K(!0);try{let e=await c.Z.get(h,{params:{limit:10,skip:F.length}});I(t=>{let d=new Set(t.map(e=>e.id)),a=e.data.logs.filter(e=>!d.has(e.id));return[...t,...a]}),Z(!!e.data.hasMore)}catch(a){var e,t,d;k(null!==(d=null==a?void 0:null===(t=a.response)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.error)&&void 0!==d?d:"Son iÅlemler y\xfcklenirken bir hata oluÅtu.")}finally{K(!1)}}},ep=T?eb.find(e=>e.id===T.id):null,ej=T?logsForEvent(T.id):[],describeChanges=e=>{if(!e||!e.before||!e.after)return[];let t=e.before,d=e.after,fmt=(e,t)=>
1null==t?"â":"startAt"===e||"endAt"===e?safeDateTime(String(t)):String(t),a=[];for(let e of[{key:"title",label:"BaÅlık"},{key:"startAt",label:"BaÅlangı\xe7"},{key:"endAt",label:"BitiÅ"},{key:"attendees",label:"Katılımcı"},{key:"sessionType",label:"T\xfcr"}]){let r=fmt(e.key,t[e.key]),s=fmt(e.key,d[e.key]);r!==s&&a.push({label:e.label,from:r,to:s})}return a};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.Z,{}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 p-4 sm:ml-64 min-h-screen bg-gray-50 dark:bg-zinc-900",children:(0,a.jsxs)("main",{className:"jsx-b8dd99d14df55764 max-w-6xl mx-auto p-2 sm:p-4",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex flex-col sm:flex-row sm:items-end sm:justify-between gap-4 mb-6",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764",children:[(0,a.jsx)("h1",{className:"jsx-b8dd99d14df55764 text-3xl font-bold text-gray-900 dark:text-white flex items-center gap-2",children:"\uD83C\uDF99ï¸ St\xfcdyo Kayıt Takvimi"}),(0,a.jsx)("p",{className:"jsx-b8dd99d14df55764 mt-1 text-sm text-gray-500 dark:text-gray-400",children:"St\xfcdyo rezervasyonlarını planlayın ve y\xf6netin. BoÅ bir alana tıklayıp (veya mobilde basılı tutarak) hızlıca rezervasyon ekleyebilirsiniz."})]}),(0,a.jsxs)("button",{onClick:()=>{let e=new Date,t=new Date(e);t.setHours(9,0,0,0);let d=new Date(e);d.setHours(10,0,0,0),openAddModal(t,d)},className:"jsx-b8dd99d14df55764 inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-xl bg-violet-600 text-white text-sm font-semibold shadow-sm hover:bg-violet-700 transition active:scale-[0.98]",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-5 h-5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15",className:"jsx-b8dd99d14df55764"})}),"Yeni Rezervasyon"]})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 grid grid-cols-3 gap-3 sm:gap-4 mb-6",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 rounded-2xl border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 p-4",children:[(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 text-xs font-medium text-gray-500 dark:text-gray-400",children:"G\xf6r\xfcnen Rezervasyon"}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mt-1 text-2xl font-bold text-gray-900 dark:text-white",children:eb.length})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 rounded-2xl border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 p-4",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 text-xs font-medium text-gray-500 dark:text-gray-400 flex items-center gap-1.5",children:[(0,a.jsx)("span",{style:{backgroundColor:"#2563eb"},className:"jsx-b8dd99d14df55764 w-2.5 h-2.5 rounded-full"})," \uD83C\uDFA7 Ses Kaydı"]}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mt-1 text-2xl font-bold text-gray-900 dark:text-white",children:eu})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 rounded-2xl border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 p-4",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 text-xs font-medium text-gray-500 dark:text-gray-400 flex items-center gap-1.5",children:[(0,a.jsx)("span",{style:{backgroundColor:"#7c3aed"},className:"jsx-b8dd99d14df55764 w-2.5 h-2.5 rounded-full"})," \uD83C\uDFA5 Video Kaydı"]}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mt-1 text-2xl font-bold text-gray-900 dark:text-white",children:eg})]})]}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mb-4 flex items-center justify-between gap-2 relative z-10",children:(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2 relative",children:[(0,a.jsxs)("button",{onClick:()=>{ed(!et),el(!1)},className:"jsx-b8dd99d14df55764 "+"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-sm font-semibold transition ".concat(et||null!==$?"bg-violet-600 text-white":"bg-white dark:bg-zinc-800 border border-gray-200 dark:border-zinc-700 text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-zinc-700 shadow-sm"),children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32
10 0 1 12 3Z",className:"jsx-b8dd99d14df55764"})}),$?"Filtre: ".concat($):"Filtrele"]}),(0,a.jsxs)("button",{onClick:()=>{el(!es),ed(!1)},className:"jsx-b8dd99d14df55764 "+"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-sm font-semibold transition ".concat(es?"bg-violet-600 text-white":"bg-white dark:bg-zinc-800 border border-gray-200 dark:border-zinc-700 text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-zinc-700 shadow-sm"),children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z",className:"jsx-b8dd99d14df55764"})}),"Arama"]}),et&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{onClick:()=>{ed(!1),er("")},className:"jsx-b8dd99d14df55764 fixed inset-0 z-10"}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 absolute top-full left-0 mt-2 w-72 bg-white dark:bg-zinc-800 rounded-xl shadow-xl border border-gray-100 dark:border-zinc-700 overflow-hidden z-20",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 px-3 py-2 border-b border-gray-100 dark:border-zinc-700 flex items-center gap-2 relative z-20",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-3.5 h-3.5 text-gray-400 shrink-0",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z",className:"jsx-b8dd99d14df55764"})}),(0,a.jsx)("input",{type:"text",autoFocus:!0,placeholder:"Åov araâ¦",value:ea,onChange:e=>er(e.target.value),className:"jsx-b8dd99d14df55764 flex-1 text-sm bg-transparent text-gray-900 dark:text-white placeholder:text-gray-400 focus:outline-none py-1"}),ea&&(0,a.jsx)("button",{onClick:()=>er(""),className:"jsx-b8dd99d14df55764 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 text-xs",children:"â"})]}),!ea&&(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 px-2 pt-2 relative z-20",children:(0,a.jsx)("button",{onClick:()=>{ee(null),ed(!1),er("")},className:"jsx-b8dd99d14df55764 "+"w-full text-left px-3 py-2 rounded-lg text-sm font-semibold transition ".concat(null===$?"bg-violet-50 text-violet-700 dark:bg-violet-500/10 dark:text-violet-400":"text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-zinc-700/50"),children:"T\xfcm\xfc"})}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 max-h-56 overflow-y-auto p-2 space-y-0.5 relative z-20",children:Array.from(new Set(eb.filter(e=>e.relatedTitle).map(e=>e.relatedTitle))).sort().filter(e=>!ea||e.toLowerCase().includes(ea.toLowerCase())).map(e=>(0,a.jsxs)("button",{onClick:()=>{ee(e),ed(!1),er("")},className:"jsx-b8dd99d14df55764 "+"w-full text-left px-3 py-2 rounded-lg text-sm font-medium transition flex items-center gap-2 ".concat($===e?"bg-violet-50 text-violet-700 dark:bg-violet-500/10 dark:text-violet-400":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-zinc-700/50"),children:["\uD83C\uDF99ï¸ ",e]},e))})]})]}),es&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{onClick:()=>el(!1),className:"jsx-b8dd99d14df55764 fixed inset-0 z-10"}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 absolute top-full left-0 sm:left-auto sm:ml-[88px] mt-2 w-80 max-w-[90vw] bg-white dark:bg-zinc-800 rounded-xl shadow-xl border border-gray-100 dark:border-zinc-700 overflow-hidden z-20",children:[(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 p-2 border-b border-gray-100 dark:border-zinc-700 relative z-20",children:(0,a.jsx)("input",{type:"text",autoFocus:!0,placeholder:"Konuk veya program ara...",value:en,onChange:e=>ei(e.target.value),className:"jsx-b8dd99d14df55764 w-full px-3 py-2 text-sm rounded-lg border border-gray-200 dark:border-zinc-600 bg-gray-50 dark:bg-zinc-900 text-gray-900 dark:text-white placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-violet-500"})}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 max-h-64 overflow-y-auto p-2 space-y-1 relative z-20",children:[eb.filter(e=>en.trim()&&(e.title.toLowerCase().includes(en.toLowerCase())||e.relatedTitle&&e.relatedTitle.toLowerCase().includes(en.toLowerCase()))).slice(0,20).map(e=>(0,a.jsxs)("button",{onClick:()=>{var t,d;el(!1),S({event:{id:e.id,title:e.title,start:new Date(e.startAt),end:e.endAt?new Date(e.endAt):void 0,extendedProps:{sessionType:null!==(t=e.sessionType)&&void 0!==t?t:"Ses",attendees:null!==(d=e.attendees)&&void 0!==d?d:1,createdByEmail
1:e.createdByEmail,updatedByEmail:e.updatedByEmail,relatedTitle:e.relatedTitle}}})},className:"jsx-b8dd99d14df55764 w-full text-left px-3 py-2 rounded-lg transition hover:bg-gray-50 dark:hover:bg-zinc-700/50 flex flex-col gap-0.5",children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 text-sm font-semibold text-gray-800 dark:text-gray-200 truncate",children:e.title}),(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764 text-xs text-gray-500 dark:text-gray-400 flex items-center gap-1.5 truncate",children:[new Date(e.startAt).toLocaleDateString("tr-TR",{day:"2-digit",month:"short"})," \xb7 ",toTimeInput(new Date(e.startAt)),e.relatedTitle&&(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764 truncate",children:["\xb7 \uD83D\uDCFB ",e.relatedTitle]})]})]},e.id)),en.trim()&&0===eb.filter(e=>e.title.toLowerCase().includes(en.toLowerCase())||e.relatedTitle&&e.relatedTitle.toLowerCase().includes(en.toLowerCase())).length&&(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 px-3 py-4 text-center text-sm text-gray-500 dark:text-gray-400",children:"Sonu\xe7 bulunamadı."}),!en.trim()&&(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 px-3 py-4 text-center text-sm text-gray-500 dark:text-gray-400",children:"Aramak i\xe7in yazın..."})]})]})]})]})}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 kt-calendar rounded-2xl border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 p-4 shadow-sm",children:[G&&(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 mb-3 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 rounded-xl border border-rose-200 dark:border-rose-500/30 bg-rose-50 dark:bg-rose-500/10 px-3 py-2 text-sm text-rose-700 dark:text-rose-300",children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764",children:"Rezervasyonlar alınamadı. Oturum s\xfcresi dolmuÅ ya da API ge\xe7ici olarak yanıt vermemiÅ olabilir."}),(0,a.jsx)("button",{type:"button",onClick:()=>U(),className:"jsx-b8dd99d14df55764 shrink-0 rounded-lg bg-rose-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-rose-700 transition",children:"Tekrar dene"})]}),t?(0,a.jsxs)(CalendarErrorBoundary,{children:[!A&&(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mb-3 rounded-xl border border-violet-100 dark:border-violet-500/20 bg-violet-50 dark:bg-violet-500/10 px-3 py-2 text-sm text-violet-700 dark:text-violet-300",children:"Takvim aralıÄı hazırlanıyorâ¦"}),A&&H&&(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mb-3 rounded-xl border border-violet-100 dark:border-violet-500/20 bg-violet-50 dark:bg-violet-500/10 px-3 py-2 text-sm text-violet-700 dark:text-violet-300",children:"Rezervasyonlar y\xfckleniyorâ¦"}),(0,a.jsx)(p,{plugins:[x.Z,m.ZP],locale:b.Z,initialView:"timeGridWeek",slotMinTime:"08:00:00",slotMaxTime:"22:00:00",allDaySlot:!1,selectable:!0,selectMirror:!0,selectLongPressDelay:150,nowIndicator:!0,expandRows:!0,height:"auto",slotLabelFormat:{hour:"2-digit",minute:"2-digit",hour12:!1},eventTimeFormat:{hour:"2-digit",minute:"2-digit",hour12:!1},headerToolbar:{left:"prev,next today",center:"title",right:"timeGridWeek,timeGridDay"},dayHeaderFormat:{day:"numeric",month:"short",weekday:"short",omitCommas:!0},events:ef,datesSet:e=>{let t={start:e.start.toISOString(),end:e.end.toISOString()};M(e=>(null==e?void 0:e.start)===t.start&&(null==e?void 0:e.end)===t.end?e:t)},select:e=>openAddModal(e.start,e.end),dateClick:e=>openAddModal(e.date,new Date(e.date.getTime()+36e5)),eventClick:e=>{z(null),S({event:e.event})},eventMouseEnter:e=>{"touch"!==e.jsEvent.pointerType&&z({x:e.jsEvent.clientX,y:e.jsEvent.clientY,id:e.event.id})},eventMouseLeave:()=>z(null),eventContent:e=>{var t,d,r,s;let l=e.event.extendedProps.attendees,n=e.event.extendedProps.sessionType,i=e.event.extendedProps.relatedTitle,o=null!==(r=null===(t=e.event.start)||void 0===t?void 0:t.getTime())&&void 0!==r?r:0,c=null!==(s=null===(d=e.event.end)||void 0===d?void 0:d.getTime())&&void 0!==s?s:o,x=Math.max(0,(c-o)/6e4),m=x>=60,b=x<60;return(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 "+"px-1.5 py-1 sm:px-2 sm:py-1.5 text-white h-full flex flex-col overflow-hidden leading-tight ".concat(b?"justify-start gap-0.5":"justify-between gap-0.5"),children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 "+"flex min-w-0 items-center gap-1 ".concat(m?"sm:text-[13px]":"sm:text-[12px]"," text-[11px] font-semibold"),children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 shrink-0 leading-none",children:emojiFor(n)}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 truncate",children:e.event.title})]}),i&&(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 "+"min-w-0 items-center gap-1 ".concat(b?"hidden sm:flex":"flex"," ").concat(m?"sm:text-[11px]":"sm:text-[10px]"," text-[9px] opacity-80"),children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 shrink-0 leading-none",children:"\uD83D\uDCFB"}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 truncate",children:i})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 "+"min-w-0 items-center gap-1 ".concat(b?"hidden":"flex"," ").concat(m?"sm:text-[11px]":""," text-[10px] opacity-90"),children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 shrink-0 leading-none",children:"\uD83D\uDC64"}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 truncate",children:l})]})]})}})]}):(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 h-96 flex items-center justify-center text-gray-400",children:"Takvim y\xfckleniyorâ¦"})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 mt-6 rounded-2xl border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 p-5 shadow-sm",children:[Y&&(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mb-3 rounded-xl border border-amber-200 dark:border-amber-500/30 bg-amber-50 dark:bg-amber-500/10 px-3 py-2 text-sm text-amber-700 dark:text-amber-300",children:"Son iÅlemler Åu anda alınamadı. Takvim kullanılmaya devam edebilir."}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex flex-col sm:flex-row sm:items-center gap-3 mb-4",children:[(0,a.jsxs)("h3",{className:"jsx-b8dd99d14df55764 text-lg font-semibold text-gray-900 dark:text-white flex items-center gap-2 shrink-0",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-5 h-5 text-gray-400",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z",className:"jsx-b8dd99d14df55764"})}),"Son İÅlemler"]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex flex-1 gap-2 flex-wrap",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 relative flex-1 min-w-[160px]",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",className:"jsx-b8dd99d14df55764 absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z",className:"jsx-b8dd99d14df55764"})}),(0,a.jsx)("input",{type:"text",placeholder:"Araâ¦",value:eo,onChange:e=>ec(e.target.value),className:"jsx-b8dd99d14df55764 w-full pl-8 pr-3 py-1.5 text-sm rounded-lg border border-gray-200 dark:border-zinc-600 bg-white dark:bg-zinc-700 text-gray-900 dark:text-white placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-violet-500 focus:border-transparent"})]}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 flex gap-1.5",children:["ALL","CREATE","UPDATE","DELETE"].map(e=>{let t=ex===e;return(0,a.jsx)("button",{onClick:()=>em(e),className:"jsx-b8dd99d14df55764 "+"px-2.5 py-1 rounded-lg text-xs font-semibold transition ".concat(t?"bg-violet-600 text-white":"bg-gray-100 dark:bg-zinc-700 text-gray-600 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-zinc-600"),children:{ALL:"T\xfcm\xfc",CREATE:"Eklendi",UPDATE:"G\xfcncellendi",DELETE:"Silindi"}[e]},e)})})]})]}),(0,a.jsxs)("ul",{className:"jsx-b8dd99d14df55764 space-y-1",children:[0===eh.length&&(0,a.jsx)("li",{className:"jsx-b8dd99d14df55764 text-sm text-gray-400 py-2",children:0===F.length?"Hen\xfcz iÅlem kaydı yok.":"EÅleÅen kayıt bulunamadı."}),eh.map(e=>{let t=actionMeta(e.action);return(0,a.jsxs)("li",{onClick:()=>E(e),className:"jsx-b8dd99d14df55764 flex items-start gap-3 text-sm py-2.5 border-b border-gray-100 dark:border-zinc-700/60 last:border-0 cursor-pointer hover:bg-gray-50 dark:hover:bg-zinc-700/30 rounded-lg px-1 -mx-1 transition",children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 "+"shrink-0 px-2 py-0.5 rounded-full text-[11px] font-semibold ".concat(t.cls),children:t.label}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex-1 min-w-0",children:[(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 text-gray-700 dark:text-gray-200 truncate",children:e.description}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 text-xs text-gray-400 mt-0.5",children:[e.performedByEmail||e.performedBy||"Bilinmiyor"," \xb7"," ",safeDateTime(e.createdAt)]}),"UPDATE"===e.action&&describeChanges(e.payload).length>0&&(0,a.jsx)("ul",{className:"jsx-b8dd99d14df55764 mt-1 space-y-0.5",children:describeChanges(e.payload).map((e,t)=>(0,a.jsxs)("li",{className:"jsx-b8dd99d14df55764 text-xs text-gray-500 dark:text-gray-400",children:[(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764 text-gray-400",children:[e.label,":"]}
1)," ",(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 line-through opacity-60",children:e.from})," ",(0,a.jsx)("span",{"aria-hidden":!0,className:"jsx-b8dd99d14df55764",children:"â"})," ",(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 text-gray-700 dark:text-gray-200",children:e.to})]},t))})]})]},e.id)})]}),P&&(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mt-4 pt-3 border-t border-gray-100 dark:border-zinc-700",children:(0,a.jsx)("button",{type:"button",onClick:loadMoreLogs,disabled:O,className:"jsx-b8dd99d14df55764 px-3 py-1.5 rounded-lg text-xs font-semibold bg-gray-100 dark:bg-zinc-700 text-gray-600 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-zinc-600 disabled:opacity-50 transition",children:O?"Y\xfckleniyorâ¦":"10 iÅlem daha g\xf6ster"})})]})]})}),C&&(()=>{var e;let t=C.event,d=t.start,r=null!==(e=t.end)&&void 0!==e?e:new Date(d.getTime()+18e5),s=t.extendedProps.sessionType,l=t.extendedProps.attendees,n=t.extendedProps.createdByEmail,i=t.extendedProps.updatedByEmail,o=logsForEvent(t.id);return(0,a.jsx)("div",{onMouseDown:e=>{e.target===e.currentTarget&&S(null)},className:"jsx-b8dd99d14df55764 fixed inset-0 bg-black/50 backdrop-blur-sm flex items-end sm:items-center justify-center z-50 p-4",children:(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 bg-white dark:bg-zinc-800 rounded-2xl shadow-2xl w-full max-w-sm overflow-y-auto max-h-[90dvh]",children:[(0,a.jsxs)("div",{style:{background:"linear-gradient(135deg, ".concat(colorFor(s),", ").concat("Video"===s?"#a855f7":"#3b82f6",")")},className:"jsx-b8dd99d14df55764 px-5 py-4 text-white flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 text-xs text-white/70 font-medium",children:[emojiFor(s)," ",s," Kaydı"]}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mt-0.5 font-bold text-base leading-snug truncate",children:t.title})]}),(0,a.jsx)("button",{onClick:()=>S(null),className:"jsx-b8dd99d14df55764 shrink-0 w-7 h-7 rounded-full bg-white/20 flex items-center justify-center hover:bg-white/30 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12",className:"jsx-b8dd99d14df55764"})})})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 p-5 space-y-3",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2 text-sm text-gray-700 dark:text-gray-200",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-4 h-4 text-gray-400 shrink-0",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z",className:"jsx-b8dd99d14df55764"})}),(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764",children:[d.toLocaleDateString("tr-TR",{day:"2-digit",month:"long",weekday:"long"})," \xb7 ",toTimeInput(d)," â ",toTimeInput(r)]})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2 text-sm text-gray-700 dark:text-gray-200",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-4 h-4 text-gray-400 shrink-0",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z",className:"jsx-b8dd99d14df55764"})}),(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764",children:[null!=l?l:1," katılımcı"]})]}),n&&(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 text-xs text-gray-500 dark:text-gray-400",children:["OluÅturan: ",(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 font-medium text-gray-700 dark:text-gray-200",children:n})]}),i&&(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 text-xs text-gray-500 dark:text-gray-400",children:["G\xfcncelleyen: ",(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 font-medium text-gray-700 dark:text-gray-200",children:i})]}),o.length>0&&(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764",children:[(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 text-xs font-medium text-gray-400 mb-1.5",children:"Ge\xe7miÅ"}),(0,a.jsx)("ul",{className:"jsx-b8dd99d14df55764 space-y-1",children:o.slice(-3).map(e=>{let t=actionMeta(e.action);return(0,a.jsxs)("li",{className:"jsx-b8dd99d14df55764 flex items-center gap-2 text-xs",children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 "+"shrink-0 px-1.5 py-0.5 rounded-full text-[10px] font-semibold ".concat(t.cls),children:t.label}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 text-gray-500 dark:text-gray-400 truncate",children:e.performedByEmail||"Bilinmiyor"}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 ml-auto text-gray-400 shrink-0",children:safeDateTime(e.createdAt)})]},e.id)})})]})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 px-5 pb-5 flex gap-2",children:[(0,a.jsx)("button",{onClick:()=>S(null),className:"jsx-b8dd99d14df55764 flex-1 py-2.5 rounded-xl bg-gray-100 dark:bg-zinc-700 text-gray-700 dark:text-gray-200 text-sm font-semibold hover:bg-gray-200 dark:hover:bg-zinc-600 transition",children:"Kapat"}),(0,a.jsx)("button",{onClick:()=>{S(null),openEditModal(t)},className:"jsx-b8dd99d14df55764 flex-1 py-2.5 rounded-xl bg-violet-600 text-white text-sm font-semibold hover:bg-violet-700 transition active:scale-[0.98]",children:"D\xfczenle"})]})]})})})(),r&&(0,a.jsx)("div",{onMouseDown:e=>{e.target===e.currentTarget&&closeModal()},className:"jsx-b8dd99d14df55764 fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",children:(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 bg-white dark:bg-zinc-800 rounded-2xl shadow-2xl w-full max-w-md overflow-y-auto max-h-[92dvh]",children:[(0,a.jsxs)("div",{style:{background:"linear-gradient(135deg, ".concat(colorFor(i.sessionType),", ").concat("Video"===i.sessionType?"#a855f7":"#3b82f6",")")},className:"jsx-b8dd99d14df55764 px-5 py-3.5 text-white flex items-center justify-between gap-3",children:[(0,a.jsx)("h3",{className:"jsx-b8dd99d14df55764 text-base font-bold truncate",children:i.id?"Rezervasyonu D\xfczenle":"Yeni Rezervasyon"}),(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764 shrink-0 bg-white/20 text-white text-xs font-semibold px-2.5 py-1 rounded-full",children:[emojiFor(i.sessionType)," ","Video"===i.sessionType?"Video Kaydı":"Ses Kaydı"]})]}),(0,a.jsxs)("form",{onSubmit:handleSubmit,onKeyDown:e=>{if("Enter"!==e.key||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target;(t instanceof HTMLInputElement||t instanceof HTMLSelectElement)&&e.preventDefault()},className:"jsx-b8dd99d14df55764 p-4 pb-[calc(env(safe-area-inset-bottom,0px)+24px)] sm:pb-4",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 mb-3",children:[(0,a.jsx)("label",{className:"jsx-b8dd99d14df55764 block text-sm font-medium text-gray-600 dark:text-gray-300 mb-1",children:"Program / Konuk Adı"}),(0,a.jsx)("input",{type:"text",required:!0,autoFocus:!0,placeholder:"\xd6rn. Sabah Programı â Ali Veli",value:i.title,onChange:e=>y({...i,title:e.target.value}),className:"jsx-b8dd99d14df55764 w-full p-2.5 rounded-xl border border-gray-300 dark:border-zinc-600 bg-white dark:bg-zinc-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-violet-500 focus:border-transparent"})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 grid grid-cols-2 gap-3 mb-3",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764",children:[(0,a.jsx)("label",{className:"jsx-b8dd99d14df55764 block text-sm font-medium text-gray-600 dark:text-gray-300 mb-1",children:"Tarih"}),(0,a.jsx)("input",{type:"date",required:!0,value:i.date,onChange:e=>y({...i,date:e.target.value}),className:"jsx-b8dd99d14df55764 w-full p-2.5 rounded-xl border border-gray-300 dark:border-zinc-600 bg-white dark:bg-zinc-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-violet-500 focus:border-transparent"})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764",children:[(0,a.jsx)("label",{className:"jsx-b8dd99d14df55764 block text-sm font-medium text-gray-600 dark:text-gray-300 mb-1",children:"Katılımcı Sayısı"}),(0,a.jsx)("input",{type:"number",min:0,value:i.attendees,onChange:e=>{let t=e.target.value;y({...i,attendees:""===t?"":Number(t)})},className:"jsx-b8dd99d14df55764 w-full p-2.5 rounded-xl border border-gray-300 dark:border-zinc-600 bg-white dark:bg-zinc-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-violet-500"})]})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 grid grid-cols-2 gap-3 mb-3",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764",children:[(0,a.jsx)("label",{className:"jsx-b8dd99d14df55764 block text-sm font-medium text-gray-600 dark:text-gray-300 mb-1",children:"BaÅlangı\xe7"}),(0,a.jsx)("select",{value:i.startTime,onChange:e=>y({...i,startTime:e.target.value}),className:"jsx-b8dd99d14df55764 w-full p-2.5 rounded-xl border border-gray-300 dark:border-zinc-600 bg-white dark:bg-zinc-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-violet-500",children:R.map(e=>(0,a.jsx)("option",{value:e,className:"jsx-b8dd99d14df55764",children:e},e))})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764",children:[(0,a.jsx)("label",{className:"jsx-b8dd99d14df55764 block text-sm font-medium text-gray-600 dark:text-gray-300 mb-1",children:"BitiÅ"}),(0,a.jsx)("select",{value:i.endTime,onChange:e=>y({...i,endTime:e.target.value}),className:"jsx-b8dd99d14df55764 w-full p-2.5 rounded-xl border border-gray-300 dark:border-zinc-600 bg-white dark:bg-zinc-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-violet-500",children:[...R,"22:00"].map(e=>(0,a.jsx)("option",{value:e,className:"jsx-b8dd99d14df55764",children:e},e))})]})]}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 flex gap-2 mb-3",children:["Ses","Video"].map(e=>{let t=i.sessionType===e;return(0,a.jsxs)("button",{type:"button",onClick:()=>y({...i,sessionType:e}),style:t?{backgroundColor:colorFor(e),borderColor:colorFor(e)}:void 0,className:"jsx-b8dd99d14df55764 "+"flex-1 flex items-center justify-center gap-1.5 py-2.5 rounded-xl border text-sm font-semibold transition ".concat(t?"text-white shadow-sm":"border-gray-200 dark:border-zinc-600 text-gray-400 dark:text-gray-500 hover:border-gray-300 dark:hover:border-zinc-500"),children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764",children:emojiFor(e)}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764",children:"Video"===e?"Video Kaydı":"Ses Kaydı"})]},e)})}),(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mb-3",children:i.relatedId?(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2 p-2.5 rounded-xl border border-violet-300 dark:border-violet-600 bg-violet-50 dark:bg-violet-500/10",children:[(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764 flex-1 text-sm text-gray-800 dark:text-gray-100 font-medium truncate",children:["videocast"===i.relatedType?"\uD83C\uDFA5":"\uD83C\uDF99ï¸"," ",i.relatedTitle]}),(0,a.jsx)("button",{type:"button",onClick:()=>{y({...i,relatedId:null,relatedTitle:null,relatedType:null}),B(!1)},className:"jsx-b8dd99d14df55764 shrink-0 text-xs text-gray-400 hover:text-rose-500 transition",children:"â Kaldır"})]}):(0,a.jsxs)("button",{type:"button",onClick:()=>B(!0),className:"jsx-b8dd99d14df55764 flex items-center gap-1.5 text-sm text-gray-400 hover:text-violet-600 dar
1k:hover:text-violet-400 transition",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15",className:"jsx-b8dd99d14df55764"})}),"Åov ekle (opsiyonel)"]})}),i.id&&(i.createdByName||i.createdByEmail)&&(0,a.jsxs)("p",{className:"jsx-b8dd99d14df55764 mb-3 text-xs text-gray-500 dark:text-gray-400 flex items-center gap-1.5",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z",className:"jsx-b8dd99d14df55764"})}),"OluÅturan: ",i.createdByEmail||i.createdByName]}),i.id&&i.updatedByEmail&&(0,a.jsxs)("p",{className:"jsx-b8dd99d14df55764 -mt-1 mb-3 text-xs text-gray-500 dark:text-gray-400 flex items-center gap-1.5",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Z",className:"jsx-b8dd99d14df55764"})}),"G\xfcncelleyen: ",i.updatedByEmail]}),v&&(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 mb-3 px-3 py-2 rounded-xl bg-rose-50 dark:bg-rose-500/10 text-sm text-rose-600 dar
1k:text-rose-400 border border-rose-200 dark:border-rose-500/20",children:v}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2",children:[i.id&&(0,a.jsx)("button",{type:"button",onClick:handleDelete,disabled:w,className:"jsx-b8dd99d14df55764 px-4 py-2.5 rounded-xl bg-rose-600 text-white text-sm font-semibold hover:bg-rose-700 transition disabled:opacity-50",children:"Sil"}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex gap-2 ml-auto",children:[(0,a.jsx)("button",{type:"button",onClick:closeModal,className:"jsx-b8dd99d14df55764 px-4 py-2.5 rounded-xl bg-gray-100 dark:bg-zinc-700 text-gray-700 dark:text-gray-200 text-sm font-semibold hover:bg-gray-200 dark:hover:bg-zinc-600 transition",children:"İptal"}),(0,a.jsx)("button",{type:"submit",disabled:w,className:"jsx-b8dd99d14df55764 px-5 py-2.5 rounded-xl bg-violet-600 text-white text-sm font-semibold hover:bg-violet-700 transition disabled:opacity-50 active:scale-[0.98]",children:w?"Kaydediliyorâ¦":i.id?"G\xfcncelle":"Kaydet"})]})]})]})]})}),T&&ep&&(0,a.jsxs)("div",{style:{left:Math.min(T.x+14,window.innerWidth-300),top:Math.min(T.y+14,window.innerHeight-220)},className:"jsx-b8dd99d14df55764 fixed z-[60] pointer-events-none w-72 max-w-[80vw] rounded-xl border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 shadow-xl p-3 text-sm",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2 pb-2 mb-2 border-b border-gray-100 dark:border-zinc-700",children:[(0,a.jsx)("span",{style:{backgroundColor:colorFor(ep.sessionType)},className:"jsx-b8dd99d14df55764 w-2.5 h-2.5 rounded-full shrink-0"}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 font-semibold text-gray-900 dark:text-white truncate",children:ep.title}),(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764 ml-auto text-xs text-gray-400 shrink-0",children:[emojiFor(ep.sessionType)," ",null!==(e=ep.sessionType)&&void 0!==e?e:"Ses"]})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-start gap-1.5 text-xs text-gray-600 dark:text-gray-300",children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 text-gray-400",children:"OluÅturan:"}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 font-medium break-all",children:ep.createdByEmail||ep.createdByName||"Bilinmiyor"})]}),ep.updatedByEmail&&(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-start gap-1.5 text-xs text-gray-600 dark:text-gray-300 mt-1",children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 text-gray-400",children:"G\xfcncelleyen:"}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 font-medium break-all",children:ep.updatedByEmail})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 mt-2",children:[(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 text-xs text-gray-400 mb-1",children:"Ge\xe7miÅ"}),0===ej.length?(0,a.jsx)("div",{className:"jsx-b8dd99d14df55764 text-xs text-gray-400",children:"Kayıt yok"}):(0,a.jsx)("ul",{className:"jsx-b8dd99d14df55764 space-y-1 max-h-40 overflow-y-auto",children:ej.map(e=>{let t=actionMeta(e.action);return(0,a.jsxs)("li",{className:"jsx-b8dd99d14df55764 flex items-center gap-1.5 text-xs",children:[(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 "+"shrink-0 px-1.5 py-0.5 rounded-full text-[10px] font-semibold ".concat(t.cls),children:t.label}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 text-gray-600 dark:text-gray-300 break-all truncate",children:e.performedByEmail||e.performedBy||"Bilinmiyor"}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 ml-auto text-gray-400 shrink-0",children:safeDateTime(e.createdAt)})]},e.id)})})]})]}),L&&(0,a.jsx)(ShowPicker,{options:Q,onSelect:e=>{y(t=>({...t,relatedId:e.id,relatedTitle:e.title,relatedType:e.showType})),B(!1)},onClose:()=>B(!1)}),D&&(0,a.jsx)("div",{onMouseDown:e=>{e.target===e.currentTarget&&E(null)},className:"jsx-b8dd99d14df55764 fixed inset-0 bg-black/50 backdrop-blur-sm flex items-end sm:items-center justify-center z-50 p-4",children:(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 bg-white dark:bg-zinc-800 rounded-2xl shadow-2xl w-full max-w-sm overflow-hidden",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 px-5 py-4 border-b border-gray-100 dark:border-zinc-700 flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2",children:[(()=>{let e=actionMeta(D.action);return(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 "+"px-2 py-0.5 rounded-full text-[11px] font-semibold ".concat(e.cls),children:e.label})})(),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 text-xs text-gray-400",children:safeDateTime(D.createdAt)})]}),(0,a.jsx)("button",{onClick:()=>E(null),className:"jsx-b8dd99d14df55764 w-7 h-7 rounded-full bg-gray-100 dark:bg-zinc-700 flex items-center justify-center hover:bg-gray-200 dark:hover:bg-zinc-600 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18
118 6M6 6l12 12",className:"jsx-b8dd99d14df55764"})})})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 p-5 space-y-3",children:[(0,a.jsx)("p",{className:"jsx-b8dd99d14df55764 text-sm text-gray-800 dark:text-gray-100",children:D.description}),(0,a.jsx)("p",{className:"jsx-b8dd99d14df55764 text-xs text-gray-500 dark:text-gray-400",children:D.performedByEmail||D.performedBy||"Bilinmiyor"}),(()=>{var e;let t=D.payload;if(!t)return null;let d="UPDATE"===D.action&&null!==(e=t.after)&&void 0!==e?e:t,r=null==d?void 0:d.startAt,s=null==d?void 0:d.endAt,l=null==d?void 0:d.sessionType,n=null==d?void 0:d.attendees;if(!r)return null;let i=new Date(r),o=s?new Date(s):null;return(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 pt-2 border-t border-gray-100 dark:border-zinc-700 space-y-1.5",children:[(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2 text-xs text-gray-600 dark:text-gray-300",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-3.5 h-3.5 text-gray-400 shrink-0",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5",className:"jsx-b8dd99d14df55764"})}),(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764",children:i.toLocaleDateString("tr-TR",{day:"2-digit",month:"long",year:"numeric",weekday:"long"})})]}),(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2 text-xs text-gray-600 dark:text-gray-300",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-3.5 h-3.5 text-gray-400 shrink-0",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z",className:"jsx-b8dd99d14df55764"})}),(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764",children:[toTimeInput(i),o?" â ".concat(toTimeInput(o)):""]}),l&&(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764 ml-1 text-gray-400",children:[emojiFor(l)," ",l]})]}),null!=n&&(0,a.jsxs)("div",{className:"jsx-b8dd99d14df55764 flex items-center gap-2 text-xs text-gray-600 dark:text-gray-300",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",className:"jsx-b8dd99d14df55764 w-3.5 h-3.5 text-gray-400 shrink-0",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z",className:"jsx-b8dd99d14df55764"})}),(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764",children:[n," katılımcı"]})]})]})})(),"UPDATE"===D.action&&describeChanges(D.payload).length>0&&(0,a.jsx)("ul",{className:"jsx-b8dd99d14df55764 space-y-1 pt-2 border-t border-gray-100 dark:border-zinc-700",children:describeChanges(D.payload).map((e,t)=>(0,a.jsxs)("li",{className:"jsx-b8dd99d14df55764 text-xs text-gray-500 dark:text-gray-400",children:[(0,a.jsxs)("span",{className:"jsx-b8dd99d14df55764 text-gray-400",children:[e.label,":"]})," ",(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 line-through opacity-60",children:e.from})," ",(0,a.jsx)("span",{"aria-hidden":!0,className:"jsx-b8dd99d14df55764",children:"â"})," ",(0,a.jsx)("span",{className:"jsx-b8dd99d14df55764 text-gray-700 dark:text-gray-200",children:e.to})]},t))})]})]})}),(0,a.jsx)(s(),{id:"b8dd99d14df55764",children:".kt-calendar{--fc-border-color:#eef0f3;--fc-page-bg-color:transparent;--fc-neutral-bg-color:#f8fafc;--fc-today-bg-color:rgba(124, 58, 237, 0.06);--fc-now-indicator-color:#ef4444;--fc-button-text-color:#ffffff;--fc-button-bg-color:#7c3aed;--fc-button-border-color:#7c3aed;--fc-button-hover-bg-color:#6d28d9;--fc-button-hover-border-color:#6d28d9;--fc-button-active-bg-color:#5b21b6;--fc-button-active-border-color:#5b21b6}.kt-calendar .fc{color:#18181b;font-size:.875rem}.kt-calendar .fc a{color:inherit;text-decoration:none}.kt-calendar .fc .fc-toolbar-title{font-size:1.15rem;font-weight:700}.kt-calendar .fc .fc-button{text-transform:capitalize;-webkit-border-radius:.6rem;-moz-border-radius:.6rem;border-radius:.6rem;padding:.4rem .7rem;font-weight:600;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.kt-calendar .fc .fc-button:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.kt-calendar .fc .fc-col-header-cell{padding:.5rem 0}.kt-calendar .fc .fc-col-header,.kt-calendar .fc .fc-scrollgrid-section-sticky>*,.kt-calendar .fc .fc-scrollgrid-section-header .fc-timegrid-axis,.kt-calendar .fc .fc-scrollgrid-section-body .fc-timegrid-axis:not(.fc-timegrid-col),.kt-calendar .fc .fc-timegrid-slot-label{background-color:#fff}@media(prefers-color-scheme:dark){.kt-calendar .fc .fc-col-header,.kt-calendar .fc .fc-scrollgrid-section-sticky>*,.kt-calendar .fc .fc-scrollgrid-section-header .fc-timegrid-axis,.kt-calendar .fc .fc-scrollgrid-section-body .fc-timegrid-axis:not(.fc-timegrid-col),.kt-calendar .fc .fc-timegrid-slot-label{background-color:#27272a}}.kt-calendar .fc-timegrid-event{-webkit-border-radius:.5rem;-moz-border-radius:.5rem;border-radius:.5rem;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.12);-moz-box-shadow:0 1px 2px rgba(0,0,0,.12);box-shadow:0 1px 2px rgba(0,0,0,.12)}@media(max-width:640px){.kt-calendar .fc{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.kt-calendar .fc::-webkit-scrollbar{display:none}.kt-calendar .fc-timeGridWeek-view .fc-scrollgrid{min-width:720px}.kt-calendar .fc .fc-view-harness,.kt-calendar .fc .fc-scroller-harness,.kt-calendar .fc .fc-scroller{overflow:visible!important}.kt-calendar .fc th.fc-timegrid-axis,.kt-calendar .fc td.fc-timegrid-axis,.kt-calendar .fc .fc-timegrid-slot-label{position:-webkit-sticky;position:sticky;left:0;z-index:10!important}.kt-calendar .fc .fc-timegrid-slots{z-index:auto!important}.kt-calendar .fc .fc-scrollgrid-section-header .fc-timegrid-axis{z-index:11!important}.kt-calendar .fc .fc-toolbar{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:.35rem}.kt-calendar .fc .fc-toolbar-chunk{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:.25rem}.kt-calendar .fc .fc-toolbar-chunk:nth-child(2){width:100%;-webkit-box-pack:center;
1-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-ordinal-group:0;-webkit-order:-1;-moz-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.kt-calendar .fc .fc-toolbar-title{font-size:.9rem;font-weight:700}.kt-calendar .fc .fc-toolbar-chunk:first-child{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:start;-webkit-justify-content:flex-start;-moz-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.kt-calendar .fc .fc-toolbar-chunk:last-child{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.kt-calendar .fc .fc-button{padding:.3rem .55rem;font-size:.78rem}.kt-calendar .fc .fc-button-group{gap:.2rem}}@media(prefers-color-scheme:dark){.kt-calendar{--fc-border-color:#3f3f46;--fc-neutral-bg-color:#27272a;--fc-today-bg-color:rgba(124, 58, 237, 0.16);--fc-button-bg-color:#4c1d95;--fc-button-border-color:#4c1d95;--fc-button-hover-bg-color:#5b21b6;--fc-button-hover-border-color:#5b21b6;--fc-button-active-bg-color:#6d28d9;--fc-button-active-border-color:#6d28d9}.kt-calendar .fc,.kt-calendar .fc .fc-col-header-cell-cushion,.kt-calendar .fc .fc-timegrid-slot-label-cushion,.kt-calendar .fc .fc-timegrid-axis-cushion,.kt-calendar .fc .fc-toolbar-title{color:#e4e4e7}}"})]})}}},function(e){e.O(0,[5445,1069,2857,2584,9774,2888,179],function(){return e(e.s=35475)}),_N_E=e.O()}]);
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.