(()=>{var e={};e.id=9277,e.ids=[9277],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},39300:(e,t,r)=>{"use strict";r.r(t),r.d(t,{categories:()=>d,medias:()=>u,metaRelations:()=>g,options:()=>o,posts:()=>p,tags:()=>m,templates:()=>c});var s=r(81598),n=r(70932),a=r(22077),i=r(89283),l=r(49930);let o=(0,s.D)("options",{id:(0,n.nd)("id").primaryKey({autoIncrement:!0}).notNull(),optionName:(0,a.sH)("option_name").default().notNull(),optionValue:(0,a.sH)("option_value").notNull()}),u=(0,s.D)("medias",{id:(0,n.nd)("id").primaryKey({autoIncrement:!0}),name:(0,i.Qq)("name").notNull(),description:(0,i.Qq)("description"),extension:(0,i.Qq)("extension").default("NA").notNull(),url:(0,i.Qq)("url").notNull(),timeCreated:(0,a.sH)("time_created").default((0,l.ll)`(CURRENT_TIMESTAMP)`),timeModified:(0,a.sH)("time_modified").default((0,l.ll)`(CURRENT_TIMESTAMP)`)}),d=(0,s.D)("categories",{id:(0,n.nd)("id").primaryKey({autoIncrement:!0}).notNull(),category:(0,a.sH)("category").notNull(),description:(0,a.sH)("description").notNull(),slug:(0,a.sH)("slug").notNull(),parent:(0,a.sH)("parent").notNull()}),p=(0,s.D)("posts",{id:(0,n.nd)("id").primaryKey({autoIncrement:!0}).notNull(),title:(0,i.Qq)("title").notNull(),content:(0,a.sH)("content"),slug:(0,a.sH)("slug").notNull(),timeCreated:(0,a.sH)("time_created").default((0,l.ll)`(CURRENT_TIMESTAMP)`).notNull(),timeModified:(0,a.sH)("time_modified").default((0,l.ll)`(NULL)`),status:(0,a.sH)("status").default("draft").notNull(),isTop:(0,a.sH)("is_top").notNull(),excerpt:(0,i.Qq)("excerpt"),featureImg:(0,i.Qq)("feature_img")}),m=(0,s.D)("tags",{id:(0,n.nd)("id").primaryKey({autoIncrement:!0}).notNull(),tag:(0,a.sH)("tag").notNull(),description:(0,a.sH)("description").notNull(),slug:(0,a.sH)("slug").notNull()}),c=(0,s.D)("templates",{id:(0,n.nd)("id").primaryKey({autoIncrement:!0}).notNull(),title:(0,i.Qq)("title").notNull(),content:(0,a.sH)("content").notNull()}),g=(0,s.D)("meta_relations",{id:(0,n.nd)("id").primaryKey({autoIncrement:!0}).notNull(),metaId:(0,a.sH)("meta_id"),type:(0,a.sH)("type"),postId:(0,a.sH)("post_id").references(()=>p.id)})},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63095:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(87550),n=r.n(s),a=r(46267),i=r(39300);let l=()=>{let e=new(n())("./contents/data.db");return(0,a.f)(e,{schema:i})}},78335:()=>{},87550:e=>{"use strict";e.exports=require("better-sqlite3")},88283:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>x,routeModule:()=>m,serverHooks:()=>N,workAsyncStorage:()=>c,workUnitAsyncStorage:()=>g});var s={};r.r(s),r.d(s,{POST:()=>p});var n=r(96559),a=r(48088),i=r(37719),l=r(32190),o=r(94634),u=r(39300),d=r(63095);async function p(e){let t=Number((await e.json()).id),r=await (0,d.A)().query.templates.findFirst({where:(0,o.eq)(u.templates.id,t)});return l.NextResponse.json({data:r,success:!0})}let m=new n.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/[locale]/api/template/get-single-template/route",pathname:"/[locale]/api/template/get-single-template",filename:"route",bundlePath:"app/[locale]/api/template/get-single-template/route"},resolvedPagePath:"E:\\xampp01\\htdocs\\wx-saas\\timynote\\app\\[locale]\\api\\template\\get-single-template\\route.tsx",nextConfigOutput:"standalone",userland:s}),{workAsyncStorage:c,workUnitAsyncStorage:g,serverHooks:N}=m;function x(){return(0,i.patchFetch)({workAsyncStorage:c,workUnitAsyncStorage:g})}},96487:()=>{}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[4447,580,902],()=>r(88283));module.exports=s})();