1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[527],{90527:(e,r,t)=>{t.d(r,{SB:()=>l,UT:()=>a,Z5:()=>d,_c:()=>p,lC:()=>o,lg:()=>s,lj:()=>u,mi:()=>c,vq:()=>n}),t(60497);var i=t(89571);async function a(e,r){var t;let a={title:r.title,description:r.description,status:r.status,userid:e,completed:!1,duedate:r.dueDate?r.dueDate:null};console.log("Inserting task:",a);let o=await i.N.from("Task").insert(a).select();if(console.log("Supabase insert response:",o),o.error)throw console.error("Supabase createTask error details:",{message:o.error.message,details:o.error.details,hint:o.error.hint,code:o.error.code}),o.error;return null===(t=o.data)||void 0===t?void 0:t[0]}async function o(e,r,t){let a={...t,updatedat:new Date().toISOString()};void 0!==a.dueDate&&(a.duedate=a.dueDate||null,delete a.dueDate),void 0!==a.completedAt&&(a.completedat=a.completedAt||null,delete a.completedAt),t.hasOwnProperty("link")&&(a.link=""===t.link?null:t.link);let{data:o,error:n}=await i.N.from("Task").update(a).eq("id",e).eq("userid",r).select("*");if(n)throw console.error("Error updating task:",n),n;return null==o?void 0:o[0]}async function n(e,r){let{error:t}=await i.N.from("Task").delete().eq("id",e).eq("userid",r);if(t)throw console.error("Error deleting task:",t),t}async function s(e,r){let t={title:r.title,description:r.description,status:r.status,userid:e,completed:!1,duedate:r.dueDate?r.dueDate:null,recurrencepattern:r.recurrencepattern,link:r.link?r.link:null},a=await i.N.from("RecurringTask").insert(t).select().single();if(a.error)throw console.error("Supabase createRecurringTask error details:",{message:a.error.message,details:a.error.details,hint:a.error.hint,code:a.error.code}),a.error;return a.data}async function l(e,r,t){let{dueDate:a,completedAt:o,...n}=t,s={...n,updatedat:new Date().toISOString()};void 0!==a&&(s.duedate=a||null),void 0!==o&&(s.completedat=o||null);let{data:l,error:c}=await i.N.from("RecurringTask").update(s).eq("id",e).eq("userid",r).select().single();if(c)throw console.error("Error updating recurring task:",c),c;return l}async function c(e,r){let{error:t}=await i.N.from("RecurringTask").delete().eq("id",e).eq("userid",r);if(t)throw console.error("Error deleting recurring task:",t),t}async function d(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,{data:t,error:a}=await i.N.from("FeedMessage").select("\n *,\n user:User(firstName, lastName, email)\n ").eq("parentId",e).order("createdAt",{ascending:!0}).limit(r);if(a)throw console.error("Error fetching post replies:",a),a;return t||[]}async function u(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=i.N.from("ArchiveVideo").select("*").eq("is_public",!0).order("created_at",{ascending:!1}).range(t,t+r-1);e&&(a=a.eq("category",e));let{data:o,error:n}=await a;if(n)throw console.error("Error fetching archive videos:",n),n;return o||[]}async function p(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,{data:t,error:a}=await i.N.from("ArchiveVideo").select("*").eq("is_public",!0).ilike("title","%".concat(e,"%")).order("created_at",{ascending:!1}).limit(r);if(a)throw console.error("Error fetching archive videos by title:",a),a;return t||[]}},89571:(e,r,t)=>{t.d(r,{N:()=>i});let i=(0,t(39251).UU)("https://arezsqxzxcjpmlhpjcao.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFyZXpzcXh6eGNqcG1saHBqY2FvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDc4NTEyODAsImV4cCI6MjA2MzQyNzI4MH0.FG-INwwUcFhNdAPY92KDeYEYWueNX4Sxpo8-rQI9ki4")}}]);
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.