(()=>{var e={};e.id=7106,e.ids=[7106],e.modules={1463:(e,t,r)=>{"use strict";r.d(t,{U9:()=>a});var s=r(49930);function a(e){return(0,s.ll)`count(${e||s.ll.raw("*")})`.mapWith(Number)}},3081:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>f,routeModule:()=>m,serverHooks:()=>g,workAsyncStorage:()=>c,workUnitAsyncStorage:()=>N});var s={};r.r(s),r.d(s,{POST:()=>p});var a=r(96559),n=r(48088),l=r(37719),i=r(32190),o=r(63095),u=r(39300),d=r(1463);async function p(e){let t=await e.json(),r=Number(t.pageNum)??0,s=Number(t.pageSize)??10,a=await (0,o.A)().select().from(u.templates).limit(s).offset(r*s),n=await (0,o.A)().select({count:(0,d.U9)()}).from(u.templates);return i.NextResponse.json({data:a,success:!0,total:n[0].count})}let m=new a.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/[locale]/api/template/get-template-list/route",pathname:"/[locale]/api/template/get-template-list",filename:"route",bundlePath:"app/[locale]/api/template/get-template-list/route"},resolvedPagePath:"E:\\xampp01\\htdocs\\wx-saas\\timynote\\app\\[locale]\\api\\template\\get-template-list\\route.tsx",nextConfigOutput:"standalone",userland:s}),{workAsyncStorage:c,workUnitAsyncStorage:N,serverHooks:g}=m;function f(){return(0,l.patchFetch)({workAsyncStorage:c,workUnitAsyncStorage:N})}},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:()=>N,options:()=>o,posts:()=>p,tags:()=>m,templates:()=>c});var s=r(81598),a=r(70932),n=r(22077),l=r(89283),i=r(49930);let o=(0,s.D)("options",{id:(0,a.nd)("id").primaryKey({autoIncrement:!0}).notNull(),optionName:(0,n.sH)("option_name").default().notNull(),optionValue:(0,n.sH)("option_value").notNull()}),u=(0,s.D)("medias",{id:(0,a.nd)("id").primaryKey({autoIncrement:!0}),name:(0,l.Qq)("name").notNull(),description:(0,l.Qq)("description"),extension:(0,l.Qq)("extension").default("NA").notNull(),url:(0,l.Qq)("url").notNull(),timeCreated:(0,n.sH)("time_created").default((0,i.ll)`(CURRENT_TIMESTAMP)`),timeModified:(0,n.sH)("time_modified").default((0,i.ll)`(CURRENT_TIMESTAMP)`)}),d=(0,s.D)("categories",{id:(0,a.nd)("id").primaryKey({autoIncrement:!0}).notNull(),category:(0,n.sH)("category").notNull(),description:(0,n.sH)("description").notNull(),slug:(0,n.sH)("slug").notNull(),parent:(0,n.sH)("parent").notNull()}),p=(0,s.D)("posts",{id:(0,a.nd)("id").primaryKey({autoIncrement:!0}).notNull(),title:(0,l.Qq)("title").notNull(),content:(0,n.sH)("content"),slug:(0,n.sH)("slug").notNull(),timeCreated:(0,n.sH)("time_created").default((0,i.ll)`(CURRENT_TIMESTAMP)`).notNull(),timeModified:(0,n.sH)("time_modified").default((0,i.ll)`(NULL)`),status:(0,n.sH)("status").default("draft").notNull(),isTop:(0,n.sH)("is_top").notNull(),excerpt:(0,l.Qq)("excerpt"),featureImg:(0,l.Qq)("feature_img")}),m=(0,s.D)("tags",{id:(0,a.nd)("id").primaryKey({autoIncrement:!0}).notNull(),tag:(0,n.sH)("tag").notNull(),description:(0,n.sH)("description").notNull(),slug:(0,n.sH)("slug").notNull()}),c=(0,s.D)("templates",{id:(0,a.nd)("id").primaryKey({autoIncrement:!0}).notNull(),title:(0,l.Qq)("title").notNull(),content:(0,n.sH)("content").notNull()}),N=(0,s.D)("meta_relations",{id:(0,a.nd)("id").primaryKey({autoIncrement:!0}).notNull(),metaId:(0,n.sH)("meta_id"),type:(0,n.sH)("type"),postId:(0,n.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:()=>i});var s=r(87550),a=r.n(s),n=r(46267),l=r(39300);let i=()=>{let e=new(a())("./contents/data.db");return(0,n.f)(e,{schema:l})}},78335:()=>{},87550:e=>{"use strict";e.exports=require("better-sqlite3")},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(3081));module.exports=s})();