PageSourceSearch

https://nextjs-notion-two-kohl.vercel.app/_next/static/chunks/205-1d2eff8b10e65963.js

js nextjs-notion-two-kohl.vercel.app collected 2026-10-03 07:23:30 UTC 8,493 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[205],{47907:function(e,t,r){var n=r(15313);r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}}),r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},36703:function(e,t,r){r.d(t,{qL:function(){return o.qL}});var n=r(52133),s=r(67284);function i(e,t){if("undefined"==typeof Convex||void 0===Convex.syscall)throw Error("The Convex database and auth objects are being used outside of a Convex backend. Did you mean to use `useQuery` or `useMutation` to call a Convex function?");return JSON.parse(Convex.syscall(e,JSON.stringify(t)))}async function a(e,t){let r;if("undefined"==typeof Convex||void 0===Convex.asyncSyscall)throw Error("The Convex database and auth objects are being used outside of a Convex backend. Did you mean to use `useQuery` or `useMutation` to call a Convex function?");try{r=await Convex.asyncSyscall(e,JSON.stringify(t))}catch(e){if(void 0!==e.data){let t=new s.P(e.message);throw t.data=e.data,t}throw Error(e.message)}return JSON.parse(r)}var o=r(57658),u=r(69548);class c{constructor(){}}class l extends c{serialize(){return this.inner}constructor(e){super(),this.inner=e}}function d(e){return e instanceof l?e.serialize():{$literal:(0,u.h_)(e)}}let h={eq:(e,t)=>new l({$eq:[d(e),d(t)]}),neq:(e,t)=>new l({$neq:[d(e),d(t)]}),lt:(e,t)=>new l({$lt:[d(e),d(t)]}),lte:(e,t)=>new l({$lte:[d(e),d(t)]}),gt:(e,t)=>new l({$gt:[d(e),d(t)]}),gte:(e,t)=>new l({$gte:[d(e),d(t)]}),add:(e,t)=>new l({$add:[d(e),d(t)]}),sub:(e,t)=>new l({$sub:[d(e),d(t)]}),mul:(e,t)=>
1new l({$mul:[d(e),d(t)]}),div:(e,t)=>new l({$div:[d(e),d(t)]}),mod:(e,t)=>new l({$mod:[d(e),d(t)]}),neg:e=>new l({$neg:d(e)}),and(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return new l({$and:t.map(d)})},or(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return new l({$or:t.map(d)})},not:e=>new l({$not:d(e)}),field:e=>new l({$field:e})};class m{constructor(){}}class v extends m{static new(){return new v([])}consume(){if(this.isConsumed)throw Error("IndexRangeBuilder has already been used! Chain your method calls like `q => q.eq(...).eq(...)`. See https://docs.convex.dev/using/indexes");this.isConsumed=!0}eq(e,t){return this.consume(),new v(this.rangeExpressions.concat({type:"Eq",fieldPath:e,value:(0,u.h_)(t)}))}gt(e,t){return this.consume(),new v(this.rangeExpressions.concat({type:"Gt",fieldPath:e,value:(0,n.D2)(t)}))}gte(e,t){return this.consume(),new v(this.rangeExpressions.concat({type:"Gte",fieldPath:e,value:(0,n.D2)(t)}))}lt(e,t){return this.consume(),new v(this.rangeExpressions.concat({type:"Lt",fieldPath:e,value:(0,n.D2)(t)}))}lte(e,t){return this.consume(),new v(this.rangeExpressions.concat({type:"Lte",fieldPath:e,value:(0,n.D2)(t)}))}export(){return this.consume(),this.rangeExpressions}constructor(e){super(),this.rangeExpressions=e,this.isConsumed=!1}}class y{constructor(){}}function p(e,t,r,n){if(void 0===e)throw Error("Must provide arg ".concat(t," `").concat(n,"` to `").concat(r,"`"))}class f extends y{static new(){return new f([])}consume(){if(this.isConsumed)throw Error("SearchFilterBuilder has already been used! Chain your method calls like `q => q.search(...).eq(...)`.");this.isConsumed=!0}search(e,t){return p(e,1,"search","fieldName"),p(t,2,"search","query"),this.consume(),new f(this.filters.concat({type:"Search",fieldPath:e,value:t}))}eq(e,t){return p(e,1,"eq","fieldName"),2!=arguments.length&&p(t,2,"search","value"),this.consume(),new f(this.filters.concat({type:"Eq",fieldPath:e,value:(0,u.h_)(t)}))}export(){return this.consume(),this.filters}constructor(e){super(),this.filters=e,this.isConsumed=!1}}var w=r(77659);function x(e){throw Error("consumed"===e?"This query is closed and can't emit any more values.":"This query has been chained with another operator and can't be reused.")}class g{takeQuery(){if("preparing"!==this.state.type)throw Error("A query can only be chained once and can't be chained after iteration begins.");let e=this.state.query;return this.state={type:"closed"},e}startQuery(){if("executing"===this.state.type)throw Error("Iteration can only begin on a query once.");("closed"===this.state.type||"consumed"===this.state.type)&&x(this.state.type);let{queryId:e}=i("1.0/queryStream",{query:this.state.query,version:w.i});return this.state={type:"executing",queryId:e},e}closeQuery(){"executing"===this.state.type&&i("1.0/queryCleanup",{queryId:this.state.queryId}),this.state={type:"consumed"}}order(e){p(e,1,"order","order");let t=this.takeQuery();if("Search"===t.source.type)throw Error("Search queries must always be in relevance order. Can not set order manually.");if(null!==t.source.order)throw Error("Queries may only specify order at most once");return t.source.order=e,new g(t)}filter(e){p(e,1,"filter","predicate");let t=this.takeQuery();return t.operators.push({filter:d(e(h))}),new g(t)}limit(e){p(e,1,"limit","n");let t=this.takeQuery();return t.operators.push({limit:e}),new g(t)}[Symbol.asyncIterator](){return this.startQuery(),this}async next(){("closed"===this.state.type||"consumed"===this.state.type)&&x(this.state.type);let e="preparing"===this.state.type?this.startQuery():this.state.queryId,{value:t,done:r}=await a("1.0/queryStreamNext",{queryId:e});return r&&this.closeQuery(),{value:(0,n.sq)(t,!0),done:r}}return(){return this.closeQuery(),Promise.resolve({done:!0,value:void 0})}async paginate(e){var t,r;if(p(e,1,"paginate","options"),"number"!=typeof(null==e?void 0:e.numItems)||e.numItems<0)throw Error("`options.numItems` must be a positive number. Received `".concat(null==e?void 0:e.numItems,"`."));
1let s=this.takeQuery(),i=e.numItems,o=e.cursor,u=null!==(t=null==e?void 0:e.endCursor)&&void 0!==t?t:null,c=null!==(r=e.maximumRowsRead)&&void 0!==r?r:null,{page:l,isDone:d,continueCursor:h,splitCursor:m,pageStatus:v}=await a("1.0/queryPage",{query:s,cursor:o,endCursor:u,pageSize:i,maximumRowsRead:c,maximumBytesRead:e.maximumBytesRead,version:w.i});return{page:l.map(e=>(0,n.sq)(e,!0)),isDone:d,continueCursor:h,splitCursor:m,pageStatus:v}}async collect(){let e=[];for await(let t of this)e.push(t);return e}async take(e){return p(e,1,"take","n"),this.limit(e).collect()}async first(){let e=await this.take(1);return 0===e.length?null:e[0]}async unique(){let e=await this.take(2);if(0===e.length)return null;if(2===e.length)throw Error("unique() query returned more than one result");return e[0]}constructor(e){this.state={type:"preparing",query:e}}}var b=r(82254);b.v.object({numItems:b.v.number(),cursor:b.v.union(b.v.string(),b.v.null()),endCursor:b.v.optional(b.v.union(b.v.string(),b.v.null())),id:b.v.optional(b.v.number()),maximumRowsRead:b.v.optional(b.v.number()),maximumBytesRead:b.v.optional(b.v.number())});class q{index(e,t){return this.indexes.push({indexDescriptor:e,fields:t}),this}searchIndex(e,t){return this.searchIndexes.push({indexDescriptor:e,searchField:t.searchField,filterFields:t.filterFields||[]}),this}vectorIndex(e,t){return this.vectorIndexes.push({indexDescriptor:e,vectorField:t.vectorField,dimensions:t.dimensions,filterFields:t.filterFields||[]}),this}self(){return this}export(){return{indexes:this.indexes,searchIndexes:this.searchIndexes,vectorIndexes:this.vectorIndexes,documentType:this.documentType.json}}constructor(e){this.indexes=[],this.searchIndexes=[],this.vectorIndexes=[],this.documentType=e}}function C(e){return new q(e instanceof b.c?e:b.v.object(e))}class E{export(){return JSON.stringify({tables:Object.entries(this.tables).map(e=>{let[t,r]=e,{indexes:n,searchIndexes:s,vectorIndexes:i,documentType:a}=r.export();return{tableName:t,indexes:n,searchIndexes:s,vectorIndexes:i,documentType:a}}),schemaValidation:this.schemaValidation})}constructor(e,t){this.tables=e,this.schemaValidation=(null==t?void 0:t.schemaValidation)===void 0||t.schemaValidation}}new E({_scheduled_functions:C({name:b.v.string(),args:b.v.array(b.v.any()),scheduledTime:b.v.float64(),completedTime:b.v.optional(b.v.float64()),state:b.v.union(b.v.object({kind:b.v.literal("pending")}),b.v.object({kind:b.v.literal("inProgress")}),b.v.object({kind:b.v.literal("success")}),b.v.object({kind:b.v.literal("failed"),error:b.v.string()}),b.v.object({kind:b.v.literal("canceled")}))}),_storage:C({sha256:b.v.string(),size:b.v.float64(),contentType:b.v.optional(b.v.string())})},void 0)}}]);

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.