@jeromefitz/notion 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/queries/getBlocksByIdChildren/index.cjs +1 -1
- package/queries/getBlocksByIdChildren/index.js +1 -1
- package/queries/getNotionListing/index.cjs +1 -1
- package/queries/getNotionListing/index.js +1 -1
- package/queries/getNotionListingByDate/index.cjs +1 -1
- package/queries/getNotionListingByDate/index.js +1 -1
- package/queries/getNotionSlug/index.cjs +1 -1
- package/queries/getNotionSlug/index.js +1 -1
- package/queries/getNotionSlugByRoute/index.cjs +1 -1
- package/queries/getNotionSlugByRoute/index.js +1 -1
- package/queries/getPagesById/index.cjs +1 -1
- package/queries/getPagesById/index.js +1 -1
- package/queries/getQuery/index.cjs +1 -1
- package/queries/getQuery/index.js +1 -1
- package/queries/index.cjs +1 -1
- package/queries/index.js +1 -1
- package/utils/dataNormalized/index.cjs +1 -1
- package/utils/dataNormalized/index.js +1 -1
- package/utils/dataNormalizedResults/index.cjs +1 -1
- package/utils/dataNormalizedResults/index.js +1 -1
- package/utils/getTypes/files.cjs +1 -1
- package/utils/getTypes/files.js +1 -1
- package/utils/getTypes/index.cjs +1 -1
- package/utils/getTypes/index.js +1 -1
- package/utils/getTypes/relation.cjs +1 -1
- package/utils/getTypes/relation.js +1 -1
- package/utils/getTypes/rollup.cjs +1 -1
- package/utils/getTypes/rollup.js +1 -1
- package/utils/index.cjs +1 -1
- package/utils/index.d.ts +0 -6
- package/utils/index.js +1 -1
- package/utils/avoidRateLimit/index.cjs +0 -1
- package/utils/avoidRateLimit/index.d.ts +0 -3
- package/utils/avoidRateLimit/index.js +0 -1
- package/utils/dataSorted/index.cjs +0 -1
- package/utils/dataSorted/index.d.ts +0 -5
- package/utils/dataSorted/index.js +0 -1
- package/utils/isObjectEmpty/index.cjs +0 -1
- package/utils/isObjectEmpty/index.d.ts +0 -7
- package/utils/isObjectEmpty/index.js +0 -1
- package/utils/isUndefined/index.cjs +0 -1
- package/utils/isUndefined/index.d.ts +0 -3
- package/utils/isUndefined/index.js +0 -1
- package/utils/stringToUUID/index.cjs +0 -1
- package/utils/stringToUUID/index.d.ts +0 -3
- package/utils/stringToUUID/index.js +0 -1
package/utils/getTypes/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var D=r=>(console.dir("@notion(_unsupported)"),console.dir(r),r),i=D;var N=r=>r.checkbox||!1,_=N;var d=r=>{let{type:t}=r;return r[t]},g=d;var v=r=>r.email||null,f=v;import{stringToUUID as F}from"@jeromefitz/utils";import G from"github-slugger";import H from"lodash/size.js";var L="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",M=(r,t)=>L.replace("{{FILENAME}}",encodeURIComponent(r)).replace("{{PAGE_ID}}",F(t)),P=(r,t)=>{let o=new G,p={};return H(r.files)<=0||r.files.map(e=>{var u,m;if((e==null?void 0:e.type)==="file"){let s=(u=e==null?void 0:e.file)==null?void 0:u.url.split("?")[0],c=o.slug(s);p[c]={type:e==null?void 0:e.type,url:M(s,t)}}if((e==null?void 0:e.type)==="external"){let s=(m=e==null?void 0:e.external)==null?void 0:m.url.split("?")[0],c=o.slug(s);p[c]={type:e==null?void 0:e.type,url:s}}}),p},x=P;import R from"github-slugger";import z from"lodash/map.js";var B=r=>{let t=new R,o={};return z(r.multi_select,p=>{let e=p;e.slug=t.slug(e.name),o[e.id]=e}),o},b=B;var C=r=>(r==null?void 0:r.number)||null,h=C;import j from"github-slugger";var q=r=>{let t=new j;return r.people.map(o=>{let{avatar_url:p,id:e,name:u,person:m}=o,{email:s}=m;return{[t.slug(u)]:{avatar_url:p,email:s,id:e,name:u}}})[0]},a=q;var J=r=>(r==null?void 0:r.phone_number)||null,w=J;import I from"lodash/map.js";var K=r=>r.type==="rollup"?r.rollup.type==="array"&&I(r.rollup.array,t=>y[t.type](t))[0]:I(r.relation,t=>t.id),E=K;var O=r=>{var t;return(r==null?void 0:r.rich_text)?(t=r==null?void 0:r.rich_text[0])==null?void 0:t.plain_text:null},S=O;import Q from"lodash/map.js";import V from"lodash/sortBy.js";var W=r=>{var t;return V(Q((t=r==null?void 0:r.rollup)==null?void 0:t.array,o=>y[o.type](o)))},U=W;import X from"github-slugger";var Y=r=>{let t=new X,o=r.select;return o?(o.slug=t.slug(r.select.name),{[o.id]:o}):null},k=Y;var Z=r=>{var t;return(r==null?void 0:r.title)?(t=r==null?void 0:r.title[0])==null?void 0:t.plain_text:null},A=Z;var $=r=>r.url||null,T=$;var rr={checkbox:_,created_by:i,created_time:g,date:g,email:f,files:x,formula:i,image:x,last_edited_by:i,last_edited_time:g,multi_select:b,number:h,people:a,phone_number:w,relation:E,rich_text:S,rollup:U,select:k,title:A,url:T},y=rr;export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var B=Object.create;var i=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var h=r=>i(r,"__esModule",{value:!0});var K=(r,t)=>{for(var o in t)i(r,o,{get:t[o],enumerable:!0})},a=(r,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of j(t))!J.call(r,e)&&(o||e!=="default")&&i(r,e,{get:()=>t[e],enumerable:!(l=C(t,e))||l.enumerable});return r},
|
|
1
|
+
var B=Object.create;var i=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var h=r=>i(r,"__esModule",{value:!0});var K=(r,t)=>{for(var o in t)i(r,o,{get:t[o],enumerable:!0})},a=(r,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of j(t))!J.call(r,e)&&(o||e!=="default")&&i(r,e,{get:()=>t[e],enumerable:!(l=C(t,e))||l.enumerable});return r},p=(r,t)=>a(h(i(r!=null?B(q(r)):{},"default",!t&&r&&r.__esModule?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r),O=(r=>(t,o)=>r&&r.get(t)||(o=a(h({}),t,1),r&&r.set(t,o),o))(typeof WeakMap!="undefined"?new WeakMap:0);var ir={};K(ir,{default:()=>f});var b=p(require("lodash/map.js"),1);var Q=r=>(console.dir("@notion(_unsupported)"),console.dir(r),r),g=Q;var V=r=>r.checkbox||!1,w=V;var W=r=>{let{type:t}=r;return r[t]},y=W;var X=r=>r.email||null,I=X;var E=p(require("@jeromefitz/utils"),1),S=p(require("github-slugger"),1),U=p(require("lodash/size.js"),1),Y="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",Z=(r,t)=>Y.replace("{{FILENAME}}",encodeURIComponent(r)).replace("{{PAGE_ID}}",(0,E.stringToUUID)(t)),$=(r,t)=>{let o=new S.default,l={};return(0,U.default)(r.files)<=0||r.files.map(e=>{var u,m;if((e==null?void 0:e.type)==="file"){let s=(u=e==null?void 0:e.file)==null?void 0:u.url.split("?")[0],c=o.slug(s);l[c]={type:e==null?void 0:e.type,url:Z(s,t)}}if((e==null?void 0:e.type)==="external"){let s=(m=e==null?void 0:e.external)==null?void 0:m.url.split("?")[0],c=o.slug(s);l[c]={type:e==null?void 0:e.type,url:s}}}),l},_=$;var k=p(require("github-slugger"),1),A=p(require("lodash/map.js"),1),rr=r=>{let t=new k.default,o={};return(0,A.default)(r.multi_select,l=>{let e=l;e.slug=t.slug(e.name),o[e.id]=e}),o},T=rr;var tr=r=>(r==null?void 0:r.number)||null,D=tr;var N=p(require("github-slugger"),1),er=r=>{let t=new N.default;return r.people.map(o=>{let{avatar_url:l,id:e,name:u,person:m}=o,{email:s}=m;return{[t.slug(u)]:{avatar_url:l,email:s,id:e,name:u}}})[0]},d=er;var or=r=>(r==null?void 0:r.phone_number)||null,v=or;var nr=r=>{var t;return(r==null?void 0:r.rich_text)?(t=r==null?void 0:r.rich_text[0])==null?void 0:t.plain_text:null},F=nr;var G=p(require("lodash/map.js"),1),H=p(require("lodash/sortBy.js"),1);var lr=r=>{var t;return(0,H.default)((0,G.default)((t=r==null?void 0:r.rollup)==null?void 0:t.array,o=>x[o.type](o)))},L=lr;var M=p(require("github-slugger"),1),pr=r=>{let t=new M.default,o=r.select;return o?(o.slug=t.slug(r.select.name),{[o.id]:o}):null},P=pr;var sr=r=>{var t;return(r==null?void 0:r.title)?(t=r==null?void 0:r.title[0])==null?void 0:t.plain_text:null},R=sr;var ur=r=>r.url||null,z=ur;var mr={checkbox:w,created_by:g,created_time:y,date:y,email:I,files:_,formula:g,image:_,last_edited_by:g,last_edited_time:y,multi_select:T,number:D,people:d,phone_number:v,relation:f,rich_text:F,rollup:L,select:P,title:R,url:z},x=mr;var cr=r=>r.type==="rollup"?r.rollup.type==="array"&&(0,b.default)(r.rollup.array,t=>x[t.type](t))[0]:(0,b.default)(r.relation,t=>t.id),f=cr;module.exports=O(ir);0&&(module.exports={});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import T from"lodash/map.js";var D=r=>(console.dir("@notion(_unsupported)"),console.dir(r),r),i=D;var N=r=>r.checkbox||!1,_=N;var d=r=>{let{type:t}=r;return r[t]},g=d;var v=r=>r.email||null,f=v;import{stringToUUID as F}from"@jeromefitz/utils";import G from"github-slugger";import H from"lodash/size.js";var L="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",M=(r,t)=>L.replace("{{FILENAME}}",encodeURIComponent(r)).replace("{{PAGE_ID}}",F(t)),P=(r,t)=>{let o=new G,p={};return H(r.files)<=0||r.files.map(e=>{var u,m;if((e==null?void 0:e.type)==="file"){let s=(u=e==null?void 0:e.file)==null?void 0:u.url.split("?")[0],c=o.slug(s);p[c]={type:e==null?void 0:e.type,url:M(s,t)}}if((e==null?void 0:e.type)==="external"){let s=(m=e==null?void 0:e.external)==null?void 0:m.url.split("?")[0],c=o.slug(s);p[c]={type:e==null?void 0:e.type,url:s}}}),p},x=P;import R from"github-slugger";import z from"lodash/map.js";var B=r=>{let t=new R,o={};return z(r.multi_select,p=>{let e=p;e.slug=t.slug(e.name),o[e.id]=e}),o},b=B;var C=r=>(r==null?void 0:r.number)||null,h=C;import j from"github-slugger";var q=r=>{let t=new j;return r.people.map(o=>{let{avatar_url:p,id:e,name:u,person:m}=o,{email:s}=m;return{[t.slug(u)]:{avatar_url:p,email:s,id:e,name:u}}})[0]},a=q;var J=r=>(r==null?void 0:r.phone_number)||null,w=J;var K=r=>{var t;return(r==null?void 0:r.rich_text)?(t=r==null?void 0:r.rich_text[0])==null?void 0:t.plain_text:null},I=K;import O from"lodash/map.js";import Q from"lodash/sortBy.js";var V=r=>{var t;return Q(O((t=r==null?void 0:r.rollup)==null?void 0:t.array,o=>y[o.type](o)))},E=V;import W from"github-slugger";var X=r=>{let t=new W,o=r.select;return o?(o.slug=t.slug(r.select.name),{[o.id]:o}):null},S=X;var Y=r=>{var t;return(r==null?void 0:r.title)?(t=r==null?void 0:r.title[0])==null?void 0:t.plain_text:null},U=Y;var Z=r=>r.url||null,k=Z;var $={checkbox:_,created_by:i,created_time:g,date:g,email:f,files:x,formula:i,image:x,last_edited_by:i,last_edited_time:g,multi_select:b,number:h,people:a,phone_number:w,relation:A,rich_text:I,rollup:E,select:S,title:U,url:k},y=$;var rr=r=>r.type==="rollup"?r.rollup.type==="array"&&T(r.rollup.array,t=>y[t.type](t))[0]:T(r.relation,t=>t.id),A=rr;export{A as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var B=Object.create;var i=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var h=r=>i(r,"__esModule",{value:!0});var K=(r,t)=>{for(var o in t)i(r,o,{get:t[o],enumerable:!0})},a=(r,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of j(t))!J.call(r,e)&&(o||e!=="default")&&i(r,e,{get:()=>t[e],enumerable:!(l=C(t,e))||l.enumerable});return r},
|
|
1
|
+
var B=Object.create;var i=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var h=r=>i(r,"__esModule",{value:!0});var K=(r,t)=>{for(var o in t)i(r,o,{get:t[o],enumerable:!0})},a=(r,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of j(t))!J.call(r,e)&&(o||e!=="default")&&i(r,e,{get:()=>t[e],enumerable:!(l=C(t,e))||l.enumerable});return r},p=(r,t)=>a(h(i(r!=null?B(q(r)):{},"default",!t&&r&&r.__esModule?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r),O=(r=>(t,o)=>r&&r.get(t)||(o=a(h({}),t,1),r&&r.set(t,o),o))(typeof WeakMap!="undefined"?new WeakMap:0);var ir={};K(ir,{default:()=>b});var R=p(require("lodash/map.js"),1),z=p(require("lodash/sortBy.js"),1);var Q=r=>(console.dir("@notion(_unsupported)"),console.dir(r),r),g=Q;var V=r=>r.checkbox||!1,w=V;var W=r=>{let{type:t}=r;return r[t]},y=W;var X=r=>r.email||null,I=X;var E=p(require("@jeromefitz/utils"),1),S=p(require("github-slugger"),1),U=p(require("lodash/size.js"),1),Y="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",Z=(r,t)=>Y.replace("{{FILENAME}}",encodeURIComponent(r)).replace("{{PAGE_ID}}",(0,E.stringToUUID)(t)),$=(r,t)=>{let o=new S.default,l={};return(0,U.default)(r.files)<=0||r.files.map(e=>{var u,m;if((e==null?void 0:e.type)==="file"){let s=(u=e==null?void 0:e.file)==null?void 0:u.url.split("?")[0],c=o.slug(s);l[c]={type:e==null?void 0:e.type,url:Z(s,t)}}if((e==null?void 0:e.type)==="external"){let s=(m=e==null?void 0:e.external)==null?void 0:m.url.split("?")[0],c=o.slug(s);l[c]={type:e==null?void 0:e.type,url:s}}}),l},_=$;var k=p(require("github-slugger"),1),A=p(require("lodash/map.js"),1),rr=r=>{let t=new k.default,o={};return(0,A.default)(r.multi_select,l=>{let e=l;e.slug=t.slug(e.name),o[e.id]=e}),o},T=rr;var tr=r=>(r==null?void 0:r.number)||null,D=tr;var N=p(require("github-slugger"),1),er=r=>{let t=new N.default;return r.people.map(o=>{let{avatar_url:l,id:e,name:u,person:m}=o,{email:s}=m;return{[t.slug(u)]:{avatar_url:l,email:s,id:e,name:u}}})[0]},d=er;var or=r=>(r==null?void 0:r.phone_number)||null,v=or;var f=p(require("lodash/map.js"),1);var nr=r=>r.type==="rollup"?r.rollup.type==="array"&&(0,f.default)(r.rollup.array,t=>x[t.type](t))[0]:(0,f.default)(r.relation,t=>t.id),F=nr;var lr=r=>{var t;return(r==null?void 0:r.rich_text)?(t=r==null?void 0:r.rich_text[0])==null?void 0:t.plain_text:null},G=lr;var H=p(require("github-slugger"),1),pr=r=>{let t=new H.default,o=r.select;return o?(o.slug=t.slug(r.select.name),{[o.id]:o}):null},L=pr;var sr=r=>{var t;return(r==null?void 0:r.title)?(t=r==null?void 0:r.title[0])==null?void 0:t.plain_text:null},M=sr;var ur=r=>r.url||null,P=ur;var mr={checkbox:w,created_by:g,created_time:y,date:y,email:I,files:_,formula:g,image:_,last_edited_by:g,last_edited_time:y,multi_select:T,number:D,people:d,phone_number:v,relation:F,rich_text:G,rollup:b,select:L,title:M,url:P},x=mr;var cr=r=>{var t;return(0,z.default)((0,R.default)((t=r==null?void 0:r.rollup)==null?void 0:t.array,o=>x[o.type](o)))},b=cr;module.exports=O(ir);0&&(module.exports={});
|
package/utils/getTypes/rollup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Z from"lodash/map.js";import $ from"lodash/sortBy.js";var D=r=>(console.dir("@notion(_unsupported)"),console.dir(r),r),i=D;var N=r=>r.checkbox||!1,_=N;var d=r=>{let{type:t}=r;return r[t]},g=d;var v=r=>r.email||null,f=v;import{stringToUUID as F}from"@jeromefitz/utils";import G from"github-slugger";import H from"lodash/size.js";var L="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",M=(r,t)=>L.replace("{{FILENAME}}",encodeURIComponent(r)).replace("{{PAGE_ID}}",F(t)),P=(r,t)=>{let o=new G,p={};return H(r.files)<=0||r.files.map(e=>{var u,m;if((e==null?void 0:e.type)==="file"){let s=(u=e==null?void 0:e.file)==null?void 0:u.url.split("?")[0],c=o.slug(s);p[c]={type:e==null?void 0:e.type,url:M(s,t)}}if((e==null?void 0:e.type)==="external"){let s=(m=e==null?void 0:e.external)==null?void 0:m.url.split("?")[0],c=o.slug(s);p[c]={type:e==null?void 0:e.type,url:s}}}),p},x=P;import R from"github-slugger";import z from"lodash/map.js";var B=r=>{let t=new R,o={};return z(r.multi_select,p=>{let e=p;e.slug=t.slug(e.name),o[e.id]=e}),o},b=B;var C=r=>(r==null?void 0:r.number)||null,h=C;import j from"github-slugger";var q=r=>{let t=new j;return r.people.map(o=>{let{avatar_url:p,id:e,name:u,person:m}=o,{email:s}=m;return{[t.slug(u)]:{avatar_url:p,email:s,id:e,name:u}}})[0]},a=q;var J=r=>(r==null?void 0:r.phone_number)||null,w=J;import I from"lodash/map.js";var K=r=>r.type==="rollup"?r.rollup.type==="array"&&I(r.rollup.array,t=>y[t.type](t))[0]:I(r.relation,t=>t.id),E=K;var O=r=>{var t;return(r==null?void 0:r.rich_text)?(t=r==null?void 0:r.rich_text[0])==null?void 0:t.plain_text:null},S=O;import Q from"github-slugger";var V=r=>{let t=new Q,o=r.select;return o?(o.slug=t.slug(r.select.name),{[o.id]:o}):null},U=V;var W=r=>{var t;return(r==null?void 0:r.title)?(t=r==null?void 0:r.title[0])==null?void 0:t.plain_text:null},k=W;var X=r=>r.url||null,A=X;var Y={checkbox:_,created_by:i,created_time:g,date:g,email:f,files:x,formula:i,image:x,last_edited_by:i,last_edited_time:g,multi_select:b,number:h,people:a,phone_number:w,relation:E,rich_text:S,rollup:T,select:U,title:k,url:A},y=Y;var rr=r=>{var t;return $(Z((t=r==null?void 0:r.rollup)==null?void 0:t.array,o=>y[o.type](o)))},T=rr;export{T as default};
|
package/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ze=Object.create;var x=Object.defineProperty;var Ye=Object.getOwnPropertyDescriptor;var Ze=Object.getOwnPropertyNames;var Ke=Object.getPrototypeOf,qe=Object.prototype.hasOwnProperty;var Y=e=>x(e,"__esModule",{value:!0});var Qe=(e,t)=>{for(var n in t)x(e,n,{get:t[n],enumerable:!0})},Z=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ze(t))!qe.call(e,r)&&(n||r!=="default")&&x(e,r,{get:()=>t[r],enumerable:!(l=Ye(t,r))||l.enumerable});return e},s=(e,t)=>Z(Y(x(e!=null?ze(Ke(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),Je=(e=>(t,n)=>e&&e.get(t)||(n=Z(Y({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var Mo={};Qe(Mo,{addTime:()=>Q,avoidRateLimit:()=>J,dataNormalized:()=>C,dataNormalizedResults:()=>de,dataSorted:()=>I,filterImages:()=>g,getImages:()=>we,getTitle:()=>ke,getTypes:()=>k,isObjectEmpty:()=>je,isUndefined:()=>Be,stringToUUID:()=>U});var N=s(require("date-fns/addDays/index.js"),1),K=s(require("date-fns/addMonths/index.js"),1),q=s(require("date-fns/addYears/index.js"),1),Xe=(e,t)=>{switch(t){case"year":return(0,q.default)(e,1).toISOString();case"month":return(0,K.default)(e,1).toISOString();case"day":return(0,N.default)(e,2).toISOString()}return(0,N.default)(e,-1).toISOString()},Q=Xe;var $e=250;async function eo(){await oo()}function oo(e=$e){return new Promise(t=>setTimeout(t,e))}var J=eo;var ue=s(require("lodash/map.js"),1);var d=s(require("lodash/filter.js"),1),X=s(require("lodash/map.js"),1),m=({key:e,notion:t,type:n})=>({key:e,notion:t,type:n}),o={addressCity:{init:!0,key:"addressCity",notion:"Address.City",type:"rich_text"},addressLatitude:{init:!0,key:"addressLatitude",notion:"Address.Latitude",type:"number",format:"number"},addressLongitude:{init:!0,key:"addressLongitude",notion:"Address.Longitude",type:"number",format:"number"},addressNeighborhood:{init:!0,key:"addressNeighborhood",notion:"Address.Neighborhood",type:"rich_text"},addressState:{init:!0,key:"addressState",notion:"Address.State",type:"select"},addressStreet:{init:!0,key:"addressStreet",notion:"Address.Street",type:"rich_text"},addressZipCode:{init:!0,key:"addressZipCode",notion:"Address.ZipCode",type:"number",format:"number"},authors:{init:!0,key:"authors",notion:"Authors",type:"people"},categories:{init:!0,key:"categories",notion:"Categories",type:"multi_select"},dateCreated:{init:!1,key:"dateCreated",notion:"Date.Created",type:"created_time"},dateEdited:{init:!1,key:"dateEdited",notion:"Date.Edited",type:"last_edited_time"},dateEvent:{init:!0,key:"dateEvent",notion:"Date.Event",type:"date"},datePublished:{init:!0,key:"datePublished",notion:"Date.Published",type:"date"},dateRecorded:{init:!0,key:"dateRecorded",notion:"Date.Recorded",type:"date"},duration:{init:!0,key:"duration",notion:"Duration",type:"rich_text"},email:{init:!0,key:"email",notion:"Email",type:"rich_text"},episode:{init:!0,key:"episode",notion:"Episode",type:"number",format:"number"},explicit:{init:!0,key:"explicit",notion:"Explicit",type:"checkbox"},festivals:{init:!0,key:"festivals",notion:"Festival",type:"multi_select"},food:{init:!0,key:"food",notion:"Food",type:"rich_text"},isIndexed:{init:!0,key:"isIndexed",notion:"Is.Indexed",type:"checkbox"},isPublished:{init:!0,key:"isPublished",notion:"Is.Published",type:"checkbox"},mp3:{init:!0,key:"mp3",notion:"MP3",type:"files"},name:{init:!0,key:"name",notion:"Name",type:"rich_text"},nameFirst:{init:!0,key:"nameFirst",notion:"Name.First",type:"rich_text"},nameLast:{init:!0,key:"nameLast",notion:"Name.Last",type:"rich_text"},namePreferred:{init:!0,key:"namePreferred",notion:"Name.Preferred",type:"rich_text"},phoneNumber:{init:!0,key:"phoneNumber",notion:"Phone",type:"rich_text"},podcastAuthor:{init:!0,key:"podcastAuthor",notion:"Author",type:"rich_text"},podcastAuthorEmail:{init:!0,key:"podcastAuthorEmail",notion:"Author.Email",type:"rich_text"},relationEpisodes__Podcast:{init:!0,key:"relationEpisodes__Podcast",notion:"Podcasts",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Episodes"}},relationPodcasts__Episodes:{init:!1,key:"relationPodcasts__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Podcasts"}},relationEpisodes__People_Guest:{init:!0,key:"relationEpisodes__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Guest"}},relationPeople__Episodes_Guest:{init:!1,key:"relationPeople__Episodes_Guest",notion:"Episodes.Guest",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Guest"}},relationEpisodes__People_Sound_Engineer:{init:!0,key:"relationEpisodes__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Sound.Engineer"}},relationPeople__Episodes_Sound_Engineer:{init:!1,key:"relationPeople__Episodes_Sound_Engineer",notion:"Episodes.Sound.Engineer",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Sound.Engineer"}},relationEpisodes__People_Thanks:{init:!0,key:"relationEpisodes__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Thanks"}},relationPeople__Episodes_Thanks:{init:!1,key:"relationPeople__Episodes_Thanks",notion:"Episodes.Thanks",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Thanks"}},relationEpisodes__Venues:{init:!0,key:"relationEpisodes__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Episodes"}},relationVenues__Episodes:{init:!1,key:"relationVenues__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Venues"}},relationEvents__Venues:{init:!0,key:"relationEvents__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Events"}},relationVenues__Events:{init:!1,key:"relationVenues__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Venues"}},relationEvents__Shows:{init:!0,key:"relationEvents__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events"}},relationShows__Events:{init:!1,key:"relationShows__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows"}},relationEvents__Shows_Lineup:{init:!0,key:"relationEvents__Shows_Lineup",notion:"Shows.Lineup",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events.Lineup"}},relationShows__Events_Lineup:{init:!1,key:"relationShows__Events_Lineup",notion:"Events.Lineup",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows.Lineup"}},relationShows__People_Cast:{init:!0,key:"relationShows__People_Cast",notion:"Cast",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast"}},relationPeople__Shows_Cast:{init:!1,key:"relationPeople__Shows_Cast",notion:"Shows.Cast",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast"}},relationShows__People_Cast_Past:{init:!0,key:"relationShows__People_Cast_Past",notion:"Cast.Past",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast.Past"}},relationPeople__Shows_Cast_Past:{init:!1,key:"relationPeople__Shows_Cast_Past",notion:"Shows.Cast.Past",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast.Past"}},relationShows_People_Crew:{init:!0,key:"relationShows_People_Crew",notion:"Crew",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Crew"}},relationPeople__Shows_Crew:{init:!0,key:"relationPeople__Shows_Crew",notion:"Shows.Crew",type:"relation",relation:{database_id:"Shows",synced_property_name:"Crew"}},relationShows__People_Director:{init:!0,key:"relationShows__People_Director",notion:"Director",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director"}},relationPeople__Shows_Director:{init:!1,key:"relationPeople__Shows_Director",notion:"Shows.Director",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director"}},relationShows__People_Director_Musical:{init:!0,key:"relationShows__People_Director_Musical",notion:"Director.Musical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Musical"}},relationPeople__Shows_Director_Musical:{init:!1,key:"relationPeople__Shows_Director_Musical",notion:"Shows.Director.Musical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Musical"}},relationShows__People_Director_Technical:{init:!0,key:"relationShows__People_Director_Technical",notion:"Director.Technical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Technical"}},relationPeople__Shows_Director_Technical:{init:!1,key:"relationPeople__Shows_Director_Technical",notion:"Shows.Director.Technical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Technical"}},relationEvents__People_Guest:{init:!0,key:"relationEvents__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest"}},relationPeople__Events_Guest:{init:!1,key:"relationEvents__People_Guest",notion:"Events.Guest",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest"}},relationPodcasts__People_Host:{init:!0,key:"relationPodcasts__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Podcasts.Host"}},relationPeople__Podcasts_Host:{init:!1,key:"relationPeople__Podcasts_Host",notion:"Podcasts.Host",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Host"}},relationEvents__People_Host:{init:!0,key:"relationEvents__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Host"}},relationPeople__Events_Host:{init:!1,key:"relationPeople__Events_Host",notion:"Events.Host",type:"relation",relation:{database_id:"Events",synced_property_name:"Host"}},relationShows__People_Producer:{init:!0,key:"relationShows__People_Producer",notion:"Producer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Producer"}},relationPeople__Shows_Producer:{init:!1,key:"relationPeople__Shows_Producer",notion:"Shows.Producer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Producer"}},relationEvents__People_Guest_Music:{init:!0,key:"relationEvents__People_Guest_Music",notion:"Guest.Music",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest.Music"}},relationPeople__Events_Guest_Music:{init:!1,key:"relationPeople__Events_Guest_Music",notion:"Events.Guest.Music",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest.Music"}},relationPodcasts__People_Sound_Engineer:{init:!0,key:"relationPodcasts__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Podcasts.Sound.Engineer"}},relationPeople__Podcasts_Sound_Engineer:{init:!1,key:"relationPeople__Podcasts_Sound_Engineer",notion:"Podcasts.Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Sound.Engineer"}},relationShows__People_Thanks:{init:!0,key:"relationShows__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Thanks"}},relationPeople__Shows_Thanks:{init:!1,key:"relationPeople__Shows_Thanks",notion:"Shows.Thanks",type:"relation",relation:{database_id:"Shows",synced_property_name:"Thanks"}},relationShows__People_Writer:{init:!0,key:"relationShows__People_Writer",notion:"Writer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Writer"}},relationPeople__Shows_Writer:{init:!1,key:"relationPeople__Shows_Writer",notion:"Shows.Writer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Writer"}},relationShows__Tags:{init:!0,key:"relationShows__Tags",notion:"Tags",type:"relation",relation:{database_id:"Tags",synced_property_name:"Shows"}},relationTags__Shows:{init:!1,key:"relationTags__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Tags"}},rollupShows__Tags:{init:!1,key:"rollupShows__Tags",notion:"Tags.Rollup",type:"rollup",rollup:{relation_property_name:"Tags",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast:{init:!1,key:"rollupShows__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast_Slug:{init:!1,key:"rollupShows__People_Cast_Slug",notion:"Cast.Rollup.Slug",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_name:"Slug",function:"show_original"}},rollupShows__People_Cast_Past:{init:!1,key:"rollupShows__People_Cast_Past",notion:"Cast.Past.Rollup",type:"rollup",rollup:{relation_property_name:"Cast.Past",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Crew:{init:!1,key:"rollupShows__People_Crew",notion:"Crew.Rollup",type:"rollup",rollup:{relation_property_name:"Crew",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director:{init:!1,key:"rollupShows__People_Director",notion:"Director.Rollup",type:"rollup",rollup:{relation_property_name:"Director",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Musical:{init:!1,key:"rollupShows__People_Director_Musical",notion:"Director.Musical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Musical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Technical:{init:!1,key:"rollupShows__People_Director_Technical",notion:"Director.Technical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Technical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Music:{init:!1,key:"rollupShows__People_Music",notion:"Music.Rollup",type:"rollup",rollup:{relation_property_name:"Music",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Producer:{init:!1,key:"rollupShows__People_Producer",notion:"Producer.Rollup",type:"rollup",rollup:{relation_property_name:"Producer",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Thanks:{init:!1,key:"rollupShows__People_Thanks",notion:"Thanks.Rollup",type:"rollup",rollup:{relation_property_name:"Thanks",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Writer:{init:!1,key:"rollupShows__People_Writer",notion:"Writer.Rollup",type:"rollup",rollup:{relation_property_name:"Writer",rollup_property_name:"Title",function:"show_original"}},rollupEvents__People_Cast:{init:!1,key:"rollupEvents__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Cast",function:"show_original"}},rollupEvents__People_Guest:{init:!1,key:"rollupEvents__People_Guest",notion:"Guest.Rollup",type:"rollup",rollup:{relation_property_name:"Guest",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Guest_Music:{init:!1,key:"rollupEvents__People_Guest_Music",notion:"Guest.Music.Rollup",type:"rollup",rollup:{relation_property_name:"Guest.Music",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Host:{init:!1,key:"rollupEvents__People_Host",notion:"Host.Rollup",type:"rollup",rollup:{relation_property_name:"Host",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows:{init:!1,key:"rollupEvents__Shows",notion:"Shows.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows_Lineup:{init:!1,key:"rollupEvents__Shows_Lineup",notion:"Shows.Lineup.Rollup",type:"rollup",rollup:{relation_property_name:"Shows.Lineup",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Venues:{init:!1,key:"rollupEvents__Venues",notion:"Venues.Rollup",type:"rollup",rollup:{relation_property_name:"Venues",rollup_property_id:"Title",function:"show_original"}},season:{init:!0,key:"season",notion:"Season",type:"number",format:"number"},seoDescription:{init:!0,key:"seoDescription",notion:"SEO.Description",type:"rich_text"},seoImage:{init:!0,key:"seoImage",notion:"SEO.Image",type:"files"},seoImageDescription:{init:!0,key:"seoImageDescription",notion:"SEO.Image.Description",type:"rich_text"},slug:{init:!0,key:"slug",notion:"Slug",type:"rich_text"},socialFacebook:{init:!0,key:"socialFacebook",notion:"Social.Facebook",type:"url"},socialInstagram:{init:!0,key:"socialInstagram",notion:"Social.Instagram",type:"url"},socialTwitter:{init:!0,key:"socialTwitter",notion:"Social.Twitter",type:"url"},socialWebsite:{init:!0,key:"socialWebsite",notion:"Social.Website",type:"url"},socialSpotify:{init:!0,key:"socialSpotify",notion:"Social.Spotify",type:"url"},socialApple:{init:!0,key:"socialApple",notion:"Social.Apple",type:"url"},subtitle:{init:!0,key:"subtitle",notion:"Subitle",type:"rich_text"},ticketUrl:{init:!0,key:"ticketUrl",notion:"TicketUrl",type:"url"},title:{init:!0,key:"title",notion:"Title",type:"title"},type:{init:!0,key:"type",notion:"Type",type:"select"}},E=[o.authors,o.datePublished,o.isIndexed,o.isPublished,o.slug,o.seoDescription,o.seoImage,o.seoImageDescription,o.title],$=[...E],ee=[...E,o.dateRecorded,o.duration,o.episode,o.mp3,o.season,o.relationEpisodes__People_Guest,o.relationEpisodes__People_Sound_Engineer,o.relationEpisodes__People_Thanks,o.relationEpisodes__Podcast,o.relationEpisodes__Venues,o.socialApple,o.socialSpotify,o.type],oe=[...E,o.dateEvent,o.relationEvents__People_Guest_Music,o.relationEvents__People_Guest,o.relationEvents__People_Host,o.relationEvents__Shows_Lineup,o.relationEvents__Shows,o.relationEvents__Venues,o.socialFacebook,o.socialWebsite,o.ticketUrl,o.rollupEvents__People_Cast,o.rollupEvents__People_Guest_Music,o.rollupEvents__People_Guest,o.rollupEvents__People_Host,o.rollupEvents__Shows_Lineup,o.rollupEvents__Shows,o.rollupEvents__Venues],te=[...E],re=[...E,o.email,o.nameFirst,o.nameLast,o.namePreferred,o.relationPeople__Episodes_Guest,o.relationPeople__Episodes_Sound_Engineer,o.relationPeople__Episodes_Thanks,o.relationPeople__Events_Guest,o.relationPeople__Events_Guest_Music,o.relationPeople__Events_Host,o.relationPeople__Podcasts_Host,o.relationPeople__Podcasts_Sound_Engineer,o.relationPeople__Shows_Cast,o.relationPeople__Shows_Cast_Past,o.relationPeople__Shows_Director,o.relationPeople__Shows_Director_Musical,o.relationPeople__Shows_Director_Technical,o.relationPeople__Shows_Producer,o.relationPeople__Shows_Thanks,o.relationPeople__Shows_Writer],ne=[...E,o.categories,o.explicit,o.podcastAuthor,o.podcastAuthorEmail,o.relationPodcasts__People_Host,o.relationPodcasts__People_Sound_Engineer,o.socialApple,o.socialSpotify,o.type,o.relationPodcasts__Episodes],ie=[...E],se=[...E,o.relationShows__People_Cast,o.relationShows__People_Cast_Past,o.relationShows__People_Director,o.relationShows__People_Director_Musical,o.relationShows__People_Director_Technical,o.relationShows__People_Producer,o.relationShows__People_Thanks,o.relationShows__People_Writer,o.relationShows__Tags,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationShows__Events,o.relationShows__Events_Lineup,o.rollupShows__People_Cast,o.rollupShows__People_Cast_Slug,o.rollupShows__People_Cast_Past,o.rollupShows__People_Crew,o.rollupShows__People_Director,o.rollupShows__People_Director_Musical,o.rollupShows__People_Director_Technical,o.rollupShows__People_Music,o.rollupShows__People_Producer,o.rollupShows__People_Thanks,o.rollupShows__People_Writer,o.rollupShows__Tags],le=[...E,o.addressCity,o.addressLatitude,o.addressLongitude,o.addressNeighborhood,o.addressState,o.addressStreet,o.addressZipCode,o.phoneNumber,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationVenues__Episodes,o.relationVenues__Events],No={BLOG:(0,d.default)($,{init:!0}),EPISODES:(0,d.default)(ee,{init:!0}),EVENTS:(0,d.default)(oe,{init:!0}),PAGES:(0,d.default)(te,{init:!0}),PEOPLE:(0,d.default)(re,{init:!0}),PODCASTS:(0,d.default)(ne,{init:!0}),SEO:(0,d.default)(ie,{init:!0}),SHOWS:(0,d.default)(se,{init:!0}),VENUES:(0,d.default)(le,{init:!0})},ae={BLOG:$.map(e=>m(e)),EPISODES:ee.map(e=>m(e)),EVENTS:oe.map(e=>m(e)),PAGES:te.map(e=>m(e)),PEOPLE:re.map(e=>m(e)),PODCASTS:ne.map(e=>m(e)),SEO:ie.map(e=>m(e)),SHOWS:se.map(e=>m(e)),VENUES:le.map(e=>m(e))},pe=(0,X.default)(o,e=>m(e)),_e=new Date().toISOString(),Wo={dateBefore:{property:o.datePublished.notion,date:{before:_e}},dateOnOrAfter:{property:o.datePublished.notion,date:{on_or_after:_e}},published:{property:o.isPublished.notion,checkbox:{equals:!1}},slug:{property:o.slug.notion,text:{equals:""}}},to="LISTING",ro="LISTING_BY_DATE",no="SLUG",io="SLUG_BY_ROUTE",so=[to,ro,no,io],Fo=Object.assign({},...so.map(e=>({[e]:e})).flat(1));var lo=({config:e,data:t,pathVariables:n,pageId:l})=>{var T,b;let{NOTION:r}=e,_={};if(!(t==null?void 0:t.properties))return _;let{properties:p}=t,c;if(n){let{meta:P,routeType:S}=n;c=S===((T=r==null?void 0:r.PODCASTS)==null?void 0:T.routeType)&&P.length>1?(b=r==null?void 0:r.EPISODES)==null?void 0:b.routeType:S}let h=c?ae[c.toUpperCase()]:pe;return(0,ue.default)(h,P=>{let S,D=p[P.notion];_[P.key]=null,D&&(S=k[P.type](D,l),_[P.key]=S||null)}),_},C=lo;var ce=s(require("lodash/map.js"),1),ye=s(require("lodash/omit.js"),1);var ao=({config:e,results:t,routeType:n})=>{let l=[];return(0,ce.default)(t,r=>{let _=(0,ye.default)(r,"properties");_.properties=I(C({config:e,data:r,pathVariables:n,pageId:r==null?void 0:r.id})),l.push(_)}),l},de=ao;var me=s(require("lodash/fromPairs.js"),1),he=s(require("lodash/sortBy.js"),1),Pe=s(require("lodash/toPairs.js"),1),po=e=>(0,me.default)((0,he.default)((0,Pe.default)(e))),I=po;var Se=s(require("lodash/filter.js"),1),G=s(require("lodash/map.js"),1),_o=(e,t)=>{switch(t){case"info":let n=[];return(0,G.default)(e.seoImage,r=>!!(r==null?void 0:r.url)&&(r==null?void 0:r.type)==="external"&&n.push(r==null?void 0:r.url)),n;case"content":return!!e&&(0,Se.default)(e,{object:"block",type:"image"});case"items":let l=[];return(0,G.default)(e,r=>{var _;(0,G.default)((_=r==null?void 0:r.properties)==null?void 0:_.seoImage,p=>!!(p==null?void 0:p.url)&&(p==null?void 0:p.type)==="external"&&l.push(p==null?void 0:p.url))}),l;default:return[]}},g=_o;var Ee=s(require("github-slugger"),1),L=s(require("lodash/map.js"),1),O=s(require("plaiceholder"),1);var uo=async({data:e,pathVariables:t})=>{var b,P,S,D,R,j,B;let n=new Ee.default,l={},r=((b=e.info)==null?void 0:b.object)==="page"?g((P=e.info)==null?void 0:P.properties,"info"):!!((S=e.info)==null?void 0:S.results)&&g((R=(D=e.info)==null?void 0:D.results[0])==null?void 0:R.properties,"info"),_=!!r&&r.map(async a=>{if(!a)return null;let w=!!a&&!!(a==null?void 0:a.url)?a==null?void 0:a.url:a;if(!w)return null;let{base64:y,img:u}=await(0,O.getPlaiceholder)(w),f=n.slug(w);return{base64:y,id:f,img:u,url:w}}),p=_?await Promise.all(_):[],c=!t.isIndex&&g(e==null?void 0:e.content,"content"),h=!!c&&c.map(async a=>{var v,z;if(!a)return null;let{type:w}=a,y=a[w],u=!!a&&!!((v=y==null?void 0:y.external)==null?void 0:v.url)?(z=y==null?void 0:y.external)==null?void 0:z.url:null;if(!u)return null;let{base64:f,img:H}=await(0,O.getPlaiceholder)(u),V=n.slug(u);return{base64:f,id:V,img:H,url:u}}),T=h?await Promise.all(h):[];if(e.items){let a=e.items.object==="page"?g((j=e.items)==null?void 0:j.data,"items"):g((B=e.items)==null?void 0:B.results,"items"),w=!!a&&a.map(async u=>{if(!u)return null;let f=!!u&&!!(u==null?void 0:u.url)?u==null?void 0:u.url:u;if(!f)return null;let{base64:H,img:V}=await(0,O.getPlaiceholder)(f),v=n.slug(f);return{base64:H,id:v,img:V,url:f}}),y=await Promise.all(w);!!y&&y[0]&&(0,L.default)(y,u=>l[u.id]=u)}return!!p&&p[0]&&(0,L.default)(p,a=>l[a.id]=a),!!T&&T[0]&&(0,L.default)(T,a=>l[a.id]=a),l},we=uo;var fe=s(require("lodash/last.js"),1),co=e=>{let t=(0,fe.default)(e.split("_"))??"";return t.length>0&&t.replace("Past","Cast Emeritus").replace("Musical","Musical Director").replace("Technical","Technical Director"),t},ke=co;var yo=e=>(console.dir("@notion(_unsupported)"),console.dir(e),e),A=yo;var mo=e=>e.checkbox||!1,ge=mo;var ho=e=>{let{type:t}=e;return e[t]},M=ho;var Po=e=>e.email||null,Te=Po;var be=s(require("github-slugger"),1),De=s(require("lodash/size.js"),1);var So=e=>e.length!==32?e:e.substr(0,8)+"-"+e.substr(8,4)+"-"+e.substr(12,4)+"-"+e.substr(16,4)+"-"+e.substr(20),U=So;var Eo="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",wo=(e,t)=>Eo.replace("{{FILENAME}}",encodeURIComponent(e)).replace("{{PAGE_ID}}",U(t)),fo=(e,t)=>{let n=new be.default,l={};return(0,De.default)(e.files)<=0||e.files.map(r=>{var _,p;if((r==null?void 0:r.type)==="file"){let c=(_=r==null?void 0:r.file)==null?void 0:_.url.split("?")[0],h=n.slug(c);l[h]={type:r==null?void 0:r.type,url:wo(c,t)}}if((r==null?void 0:r.type)==="external"){let c=(p=r==null?void 0:r.external)==null?void 0:p.url.split("?")[0],h=n.slug(c);l[h]={type:r==null?void 0:r.type,url:c}}}),l},W=fo;var ve=s(require("github-slugger"),1),xe=s(require("lodash/map.js"),1),ko=e=>{let t=new ve.default,n={};return(0,xe.default)(e.multi_select,l=>{let r=l;r.slug=t.slug(r.name),n[r.id]=r}),n},Ce=ko;var go=e=>(e==null?void 0:e.number)||null,Ie=go;var Ge=s(require("github-slugger"),1),To=e=>{let t=new Ge.default;return e.people.map(n=>{let{avatar_url:l,id:r,name:_,person:p}=n,{email:c}=p;return{[t.slug(_)]:{avatar_url:l,email:c,id:r,name:_}}})[0]},Le=To;var bo=e=>(e==null?void 0:e.phone_number)||null,Oe=bo;var F=s(require("lodash/map.js"),1);var Do=e=>e.type==="rollup"?e.rollup.type==="array"&&(0,F.default)(e.rollup.array,t=>k[t.type](t))[0]:(0,F.default)(e.relation,t=>t.id),Ae=Do;var vo=e=>{var t;return(e==null?void 0:e.rich_text)?(t=e==null?void 0:e.rich_text[0])==null?void 0:t.plain_text:null},Me=vo;var Ue=s(require("lodash/map.js"),1),He=s(require("lodash/sortBy.js"),1);var xo=e=>{var t;return(0,He.default)((0,Ue.default)((t=e==null?void 0:e.rollup)==null?void 0:t.array,n=>k[n.type](n)))},Ve=xo;var Ne=s(require("github-slugger"),1),Co=e=>{let t=new Ne.default,n=e.select;return n?(n.slug=t.slug(e.select.name),{[n.id]:n}):null},We=Co;var Io=e=>{var t;return(e==null?void 0:e.title)?(t=e==null?void 0:e.title[0])==null?void 0:t.plain_text:null},Fe=Io;var Go=e=>e.url||null,Re=Go;var Lo={checkbox:ge,created_by:A,created_time:M,date:M,email:Te,files:W,formula:A,image:W,last_edited_by:A,last_edited_time:M,multi_select:Ce,number:Ie,people:Le,phone_number:Oe,relation:Ae,rich_text:Me,rollup:Ve,select:We,title:Fe,url:Re},k=Lo;var Oo=e=>Object.entries(e).length===0&&e.constructor===Object,je=Oo;var Ao=e=>e===void 0&&typeof e=="undefined",Be=Ao;module.exports=Je(Mo);0&&(module.exports={addTime,avoidRateLimit,dataNormalized,dataNormalizedResults,dataSorted,filterImages,getImages,getTitle,getTypes,isObjectEmpty,isUndefined,stringToUUID});
|
|
1
|
+
var Ue=Object.create;var x=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty;var B=e=>x(e,"__esModule",{value:!0});var Be=(e,n)=>{for(var r in n)x(e,r,{get:n[r],enumerable:!0})},j=(e,n,r,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Fe(n))!ze.call(e,t)&&(r||t!=="default")&&x(e,t,{get:()=>n[t],enumerable:!(s=We(n,t))||s.enumerable});return e},i=(e,n)=>j(B(x(e!=null?Ue(Re(e)):{},"default",!n&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),je=(e=>(n,r)=>e&&e.get(n)||(r=j(B({}),n,1),e&&e.set(n,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var ko={};Be(ko,{addTime:()=>K,dataNormalized:()=>C,dataNormalizedResults:()=>ce,filterImages:()=>g,getImages:()=>he,getTitle:()=>Pe,getTypes:()=>k});var V=i(require("date-fns/addDays/index.js"),1),Y=i(require("date-fns/addMonths/index.js"),1),Z=i(require("date-fns/addYears/index.js"),1),Ye=(e,n)=>{switch(n){case"year":return(0,Z.default)(e,1).toISOString();case"month":return(0,Y.default)(e,1).toISOString();case"day":return(0,V.default)(e,2).toISOString()}return(0,V.default)(e,-1).toISOString()},K=Ye;var ae=i(require("lodash/map.js"),1);var d=i(require("lodash/filter.js"),1),q=i(require("lodash/map.js"),1),h=({key:e,notion:n,type:r})=>({key:e,notion:n,type:r}),o={addressCity:{init:!0,key:"addressCity",notion:"Address.City",type:"rich_text"},addressLatitude:{init:!0,key:"addressLatitude",notion:"Address.Latitude",type:"number",format:"number"},addressLongitude:{init:!0,key:"addressLongitude",notion:"Address.Longitude",type:"number",format:"number"},addressNeighborhood:{init:!0,key:"addressNeighborhood",notion:"Address.Neighborhood",type:"rich_text"},addressState:{init:!0,key:"addressState",notion:"Address.State",type:"select"},addressStreet:{init:!0,key:"addressStreet",notion:"Address.Street",type:"rich_text"},addressZipCode:{init:!0,key:"addressZipCode",notion:"Address.ZipCode",type:"number",format:"number"},authors:{init:!0,key:"authors",notion:"Authors",type:"people"},categories:{init:!0,key:"categories",notion:"Categories",type:"multi_select"},dateCreated:{init:!1,key:"dateCreated",notion:"Date.Created",type:"created_time"},dateEdited:{init:!1,key:"dateEdited",notion:"Date.Edited",type:"last_edited_time"},dateEvent:{init:!0,key:"dateEvent",notion:"Date.Event",type:"date"},datePublished:{init:!0,key:"datePublished",notion:"Date.Published",type:"date"},dateRecorded:{init:!0,key:"dateRecorded",notion:"Date.Recorded",type:"date"},duration:{init:!0,key:"duration",notion:"Duration",type:"rich_text"},email:{init:!0,key:"email",notion:"Email",type:"rich_text"},episode:{init:!0,key:"episode",notion:"Episode",type:"number",format:"number"},explicit:{init:!0,key:"explicit",notion:"Explicit",type:"checkbox"},festivals:{init:!0,key:"festivals",notion:"Festival",type:"multi_select"},food:{init:!0,key:"food",notion:"Food",type:"rich_text"},isIndexed:{init:!0,key:"isIndexed",notion:"Is.Indexed",type:"checkbox"},isPublished:{init:!0,key:"isPublished",notion:"Is.Published",type:"checkbox"},mp3:{init:!0,key:"mp3",notion:"MP3",type:"files"},name:{init:!0,key:"name",notion:"Name",type:"rich_text"},nameFirst:{init:!0,key:"nameFirst",notion:"Name.First",type:"rich_text"},nameLast:{init:!0,key:"nameLast",notion:"Name.Last",type:"rich_text"},namePreferred:{init:!0,key:"namePreferred",notion:"Name.Preferred",type:"rich_text"},phoneNumber:{init:!0,key:"phoneNumber",notion:"Phone",type:"rich_text"},podcastAuthor:{init:!0,key:"podcastAuthor",notion:"Author",type:"rich_text"},podcastAuthorEmail:{init:!0,key:"podcastAuthorEmail",notion:"Author.Email",type:"rich_text"},relationEpisodes__Podcast:{init:!0,key:"relationEpisodes__Podcast",notion:"Podcasts",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Episodes"}},relationPodcasts__Episodes:{init:!1,key:"relationPodcasts__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Podcasts"}},relationEpisodes__People_Guest:{init:!0,key:"relationEpisodes__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Guest"}},relationPeople__Episodes_Guest:{init:!1,key:"relationPeople__Episodes_Guest",notion:"Episodes.Guest",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Guest"}},relationEpisodes__People_Sound_Engineer:{init:!0,key:"relationEpisodes__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Sound.Engineer"}},relationPeople__Episodes_Sound_Engineer:{init:!1,key:"relationPeople__Episodes_Sound_Engineer",notion:"Episodes.Sound.Engineer",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Sound.Engineer"}},relationEpisodes__People_Thanks:{init:!0,key:"relationEpisodes__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Thanks"}},relationPeople__Episodes_Thanks:{init:!1,key:"relationPeople__Episodes_Thanks",notion:"Episodes.Thanks",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Thanks"}},relationEpisodes__Venues:{init:!0,key:"relationEpisodes__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Episodes"}},relationVenues__Episodes:{init:!1,key:"relationVenues__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Venues"}},relationEvents__Venues:{init:!0,key:"relationEvents__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Events"}},relationVenues__Events:{init:!1,key:"relationVenues__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Venues"}},relationEvents__Shows:{init:!0,key:"relationEvents__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events"}},relationShows__Events:{init:!1,key:"relationShows__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows"}},relationEvents__Shows_Lineup:{init:!0,key:"relationEvents__Shows_Lineup",notion:"Shows.Lineup",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events.Lineup"}},relationShows__Events_Lineup:{init:!1,key:"relationShows__Events_Lineup",notion:"Events.Lineup",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows.Lineup"}},relationShows__People_Cast:{init:!0,key:"relationShows__People_Cast",notion:"Cast",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast"}},relationPeople__Shows_Cast:{init:!1,key:"relationPeople__Shows_Cast",notion:"Shows.Cast",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast"}},relationShows__People_Cast_Past:{init:!0,key:"relationShows__People_Cast_Past",notion:"Cast.Past",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast.Past"}},relationPeople__Shows_Cast_Past:{init:!1,key:"relationPeople__Shows_Cast_Past",notion:"Shows.Cast.Past",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast.Past"}},relationShows_People_Crew:{init:!0,key:"relationShows_People_Crew",notion:"Crew",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Crew"}},relationPeople__Shows_Crew:{init:!0,key:"relationPeople__Shows_Crew",notion:"Shows.Crew",type:"relation",relation:{database_id:"Shows",synced_property_name:"Crew"}},relationShows__People_Director:{init:!0,key:"relationShows__People_Director",notion:"Director",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director"}},relationPeople__Shows_Director:{init:!1,key:"relationPeople__Shows_Director",notion:"Shows.Director",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director"}},relationShows__People_Director_Musical:{init:!0,key:"relationShows__People_Director_Musical",notion:"Director.Musical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Musical"}},relationPeople__Shows_Director_Musical:{init:!1,key:"relationPeople__Shows_Director_Musical",notion:"Shows.Director.Musical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Musical"}},relationShows__People_Director_Technical:{init:!0,key:"relationShows__People_Director_Technical",notion:"Director.Technical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Technical"}},relationPeople__Shows_Director_Technical:{init:!1,key:"relationPeople__Shows_Director_Technical",notion:"Shows.Director.Technical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Technical"}},relationEvents__People_Guest:{init:!0,key:"relationEvents__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest"}},relationPeople__Events_Guest:{init:!1,key:"relationEvents__People_Guest",notion:"Events.Guest",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest"}},relationPodcasts__People_Host:{init:!0,key:"relationPodcasts__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Podcasts.Host"}},relationPeople__Podcasts_Host:{init:!1,key:"relationPeople__Podcasts_Host",notion:"Podcasts.Host",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Host"}},relationEvents__People_Host:{init:!0,key:"relationEvents__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Host"}},relationPeople__Events_Host:{init:!1,key:"relationPeople__Events_Host",notion:"Events.Host",type:"relation",relation:{database_id:"Events",synced_property_name:"Host"}},relationShows__People_Producer:{init:!0,key:"relationShows__People_Producer",notion:"Producer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Producer"}},relationPeople__Shows_Producer:{init:!1,key:"relationPeople__Shows_Producer",notion:"Shows.Producer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Producer"}},relationEvents__People_Guest_Music:{init:!0,key:"relationEvents__People_Guest_Music",notion:"Guest.Music",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest.Music"}},relationPeople__Events_Guest_Music:{init:!1,key:"relationPeople__Events_Guest_Music",notion:"Events.Guest.Music",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest.Music"}},relationPodcasts__People_Sound_Engineer:{init:!0,key:"relationPodcasts__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Podcasts.Sound.Engineer"}},relationPeople__Podcasts_Sound_Engineer:{init:!1,key:"relationPeople__Podcasts_Sound_Engineer",notion:"Podcasts.Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Sound.Engineer"}},relationShows__People_Thanks:{init:!0,key:"relationShows__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Thanks"}},relationPeople__Shows_Thanks:{init:!1,key:"relationPeople__Shows_Thanks",notion:"Shows.Thanks",type:"relation",relation:{database_id:"Shows",synced_property_name:"Thanks"}},relationShows__People_Writer:{init:!0,key:"relationShows__People_Writer",notion:"Writer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Writer"}},relationPeople__Shows_Writer:{init:!1,key:"relationPeople__Shows_Writer",notion:"Shows.Writer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Writer"}},relationShows__Tags:{init:!0,key:"relationShows__Tags",notion:"Tags",type:"relation",relation:{database_id:"Tags",synced_property_name:"Shows"}},relationTags__Shows:{init:!1,key:"relationTags__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Tags"}},rollupShows__Tags:{init:!1,key:"rollupShows__Tags",notion:"Tags.Rollup",type:"rollup",rollup:{relation_property_name:"Tags",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast:{init:!1,key:"rollupShows__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast_Slug:{init:!1,key:"rollupShows__People_Cast_Slug",notion:"Cast.Rollup.Slug",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_name:"Slug",function:"show_original"}},rollupShows__People_Cast_Past:{init:!1,key:"rollupShows__People_Cast_Past",notion:"Cast.Past.Rollup",type:"rollup",rollup:{relation_property_name:"Cast.Past",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Crew:{init:!1,key:"rollupShows__People_Crew",notion:"Crew.Rollup",type:"rollup",rollup:{relation_property_name:"Crew",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director:{init:!1,key:"rollupShows__People_Director",notion:"Director.Rollup",type:"rollup",rollup:{relation_property_name:"Director",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Musical:{init:!1,key:"rollupShows__People_Director_Musical",notion:"Director.Musical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Musical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Technical:{init:!1,key:"rollupShows__People_Director_Technical",notion:"Director.Technical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Technical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Music:{init:!1,key:"rollupShows__People_Music",notion:"Music.Rollup",type:"rollup",rollup:{relation_property_name:"Music",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Producer:{init:!1,key:"rollupShows__People_Producer",notion:"Producer.Rollup",type:"rollup",rollup:{relation_property_name:"Producer",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Thanks:{init:!1,key:"rollupShows__People_Thanks",notion:"Thanks.Rollup",type:"rollup",rollup:{relation_property_name:"Thanks",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Writer:{init:!1,key:"rollupShows__People_Writer",notion:"Writer.Rollup",type:"rollup",rollup:{relation_property_name:"Writer",rollup_property_name:"Title",function:"show_original"}},rollupEvents__People_Cast:{init:!1,key:"rollupEvents__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Cast",function:"show_original"}},rollupEvents__People_Guest:{init:!1,key:"rollupEvents__People_Guest",notion:"Guest.Rollup",type:"rollup",rollup:{relation_property_name:"Guest",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Guest_Music:{init:!1,key:"rollupEvents__People_Guest_Music",notion:"Guest.Music.Rollup",type:"rollup",rollup:{relation_property_name:"Guest.Music",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Host:{init:!1,key:"rollupEvents__People_Host",notion:"Host.Rollup",type:"rollup",rollup:{relation_property_name:"Host",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows:{init:!1,key:"rollupEvents__Shows",notion:"Shows.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows_Lineup:{init:!1,key:"rollupEvents__Shows_Lineup",notion:"Shows.Lineup.Rollup",type:"rollup",rollup:{relation_property_name:"Shows.Lineup",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Venues:{init:!1,key:"rollupEvents__Venues",notion:"Venues.Rollup",type:"rollup",rollup:{relation_property_name:"Venues",rollup_property_id:"Title",function:"show_original"}},season:{init:!0,key:"season",notion:"Season",type:"number",format:"number"},seoDescription:{init:!0,key:"seoDescription",notion:"SEO.Description",type:"rich_text"},seoImage:{init:!0,key:"seoImage",notion:"SEO.Image",type:"files"},seoImageDescription:{init:!0,key:"seoImageDescription",notion:"SEO.Image.Description",type:"rich_text"},slug:{init:!0,key:"slug",notion:"Slug",type:"rich_text"},socialFacebook:{init:!0,key:"socialFacebook",notion:"Social.Facebook",type:"url"},socialInstagram:{init:!0,key:"socialInstagram",notion:"Social.Instagram",type:"url"},socialTwitter:{init:!0,key:"socialTwitter",notion:"Social.Twitter",type:"url"},socialWebsite:{init:!0,key:"socialWebsite",notion:"Social.Website",type:"url"},socialSpotify:{init:!0,key:"socialSpotify",notion:"Social.Spotify",type:"url"},socialApple:{init:!0,key:"socialApple",notion:"Social.Apple",type:"url"},subtitle:{init:!0,key:"subtitle",notion:"Subitle",type:"rich_text"},ticketUrl:{init:!0,key:"ticketUrl",notion:"TicketUrl",type:"url"},title:{init:!0,key:"title",notion:"Title",type:"title"},type:{init:!0,key:"type",notion:"Type",type:"select"}},E=[o.authors,o.datePublished,o.isIndexed,o.isPublished,o.slug,o.seoDescription,o.seoImage,o.seoImageDescription,o.title],Q=[...E],J=[...E,o.dateRecorded,o.duration,o.episode,o.mp3,o.season,o.relationEpisodes__People_Guest,o.relationEpisodes__People_Sound_Engineer,o.relationEpisodes__People_Thanks,o.relationEpisodes__Podcast,o.relationEpisodes__Venues,o.socialApple,o.socialSpotify,o.type],X=[...E,o.dateEvent,o.relationEvents__People_Guest_Music,o.relationEvents__People_Guest,o.relationEvents__People_Host,o.relationEvents__Shows_Lineup,o.relationEvents__Shows,o.relationEvents__Venues,o.socialFacebook,o.socialWebsite,o.ticketUrl,o.rollupEvents__People_Cast,o.rollupEvents__People_Guest_Music,o.rollupEvents__People_Guest,o.rollupEvents__People_Host,o.rollupEvents__Shows_Lineup,o.rollupEvents__Shows,o.rollupEvents__Venues],$=[...E],ee=[...E,o.email,o.nameFirst,o.nameLast,o.namePreferred,o.relationPeople__Episodes_Guest,o.relationPeople__Episodes_Sound_Engineer,o.relationPeople__Episodes_Thanks,o.relationPeople__Events_Guest,o.relationPeople__Events_Guest_Music,o.relationPeople__Events_Host,o.relationPeople__Podcasts_Host,o.relationPeople__Podcasts_Sound_Engineer,o.relationPeople__Shows_Cast,o.relationPeople__Shows_Cast_Past,o.relationPeople__Shows_Director,o.relationPeople__Shows_Director_Musical,o.relationPeople__Shows_Director_Technical,o.relationPeople__Shows_Producer,o.relationPeople__Shows_Thanks,o.relationPeople__Shows_Writer],oe=[...E,o.categories,o.explicit,o.podcastAuthor,o.podcastAuthorEmail,o.relationPodcasts__People_Host,o.relationPodcasts__People_Sound_Engineer,o.socialApple,o.socialSpotify,o.type,o.relationPodcasts__Episodes],te=[...E],ne=[...E,o.relationShows__People_Cast,o.relationShows__People_Cast_Past,o.relationShows__People_Director,o.relationShows__People_Director_Musical,o.relationShows__People_Director_Technical,o.relationShows__People_Producer,o.relationShows__People_Thanks,o.relationShows__People_Writer,o.relationShows__Tags,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationShows__Events,o.relationShows__Events_Lineup,o.rollupShows__People_Cast,o.rollupShows__People_Cast_Slug,o.rollupShows__People_Cast_Past,o.rollupShows__People_Crew,o.rollupShows__People_Director,o.rollupShows__People_Director_Musical,o.rollupShows__People_Director_Technical,o.rollupShows__People_Music,o.rollupShows__People_Producer,o.rollupShows__People_Thanks,o.rollupShows__People_Writer,o.rollupShows__Tags],re=[...E,o.addressCity,o.addressLatitude,o.addressLongitude,o.addressNeighborhood,o.addressState,o.addressStreet,o.addressZipCode,o.phoneNumber,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationVenues__Episodes,o.relationVenues__Events],bo={BLOG:(0,d.default)(Q,{init:!0}),EPISODES:(0,d.default)(J,{init:!0}),EVENTS:(0,d.default)(X,{init:!0}),PAGES:(0,d.default)($,{init:!0}),PEOPLE:(0,d.default)(ee,{init:!0}),PODCASTS:(0,d.default)(oe,{init:!0}),SEO:(0,d.default)(te,{init:!0}),SHOWS:(0,d.default)(ne,{init:!0}),VENUES:(0,d.default)(re,{init:!0})},ie={BLOG:Q.map(e=>h(e)),EPISODES:J.map(e=>h(e)),EVENTS:X.map(e=>h(e)),PAGES:$.map(e=>h(e)),PEOPLE:ee.map(e=>h(e)),PODCASTS:oe.map(e=>h(e)),SEO:te.map(e=>h(e)),SHOWS:ne.map(e=>h(e)),VENUES:re.map(e=>h(e))},se=(0,q.default)(o,e=>h(e)),le=new Date().toISOString(),Do={dateBefore:{property:o.datePublished.notion,date:{before:le}},dateOnOrAfter:{property:o.datePublished.notion,date:{on_or_after:le}},published:{property:o.isPublished.notion,checkbox:{equals:!1}},slug:{property:o.slug.notion,text:{equals:""}}},Ze="LISTING",Ke="LISTING_BY_DATE",qe="SLUG",Qe="SLUG_BY_ROUTE",Je=[Ze,Ke,qe,Qe],vo=Object.assign({},...Je.map(e=>({[e]:e})).flat(1));var Xe=({config:e,data:n,pathVariables:r,pageId:s})=>{var T,b;let{NOTION:t}=e,p={};if(!(n==null?void 0:n.properties))return p;let{properties:_}=n,c;if(r){let{meta:P,routeType:S}=r;c=S===((T=t==null?void 0:t.PODCASTS)==null?void 0:T.routeType)&&P.length>1?(b=t==null?void 0:t.EPISODES)==null?void 0:b.routeType:S}let m=c?ie[c.toUpperCase()]:se;return(0,ae.default)(m,P=>{let S,D=_[P.notion];p[P.key]=null,D&&(S=k[P.type](D,s),p[P.key]=S||null)}),p},C=Xe;var _e=i(require("@jeromefitz/utils"),1),pe=i(require("lodash/map.js"),1),ue=i(require("lodash/omit.js"),1);var $e=({config:e,results:n,routeType:r})=>{let s=[];return(0,pe.default)(n,t=>{let p=(0,ue.default)(t,"properties");p.properties=(0,_e.sortObject)(C({config:e,data:t,pathVariables:r,pageId:t==null?void 0:t.id})),s.push(p)}),s},ce=$e;var ye=i(require("lodash/filter.js"),1),I=i(require("lodash/map.js"),1),eo=(e,n)=>{switch(n){case"info":let r=[];return(0,I.default)(e.seoImage,t=>!!(t==null?void 0:t.url)&&(t==null?void 0:t.type)==="external"&&r.push(t==null?void 0:t.url)),r;case"content":return!!e&&(0,ye.default)(e,{object:"block",type:"image"});case"items":let s=[];return(0,I.default)(e,t=>{var p;(0,I.default)((p=t==null?void 0:t.properties)==null?void 0:p.seoImage,_=>!!(_==null?void 0:_.url)&&(_==null?void 0:_.type)==="external"&&s.push(_==null?void 0:_.url))}),s;default:return[]}},g=eo;var de=i(require("github-slugger"),1),G=i(require("lodash/map.js"),1),L=i(require("plaiceholder"),1);var oo=async({data:e,pathVariables:n})=>{var b,P,S,D,W,F,R;let r=new de.default,s={},t=((b=e.info)==null?void 0:b.object)==="page"?g((P=e.info)==null?void 0:P.properties,"info"):!!((S=e.info)==null?void 0:S.results)&&g((W=(D=e.info)==null?void 0:D.results[0])==null?void 0:W.properties,"info"),p=!!t&&t.map(async l=>{if(!l)return null;let w=!!l&&!!(l==null?void 0:l.url)?l==null?void 0:l.url:l;if(!w)return null;let{base64:y,img:u}=await(0,L.getPlaiceholder)(w),f=r.slug(w);return{base64:y,id:f,img:u,url:w}}),_=p?await Promise.all(p):[],c=!n.isIndex&&g(e==null?void 0:e.content,"content"),m=!!c&&c.map(async l=>{var v,z;if(!l)return null;let{type:w}=l,y=l[w],u=!!l&&!!((v=y==null?void 0:y.external)==null?void 0:v.url)?(z=y==null?void 0:y.external)==null?void 0:z.url:null;if(!u)return null;let{base64:f,img:M}=await(0,L.getPlaiceholder)(u),H=r.slug(u);return{base64:f,id:H,img:M,url:u}}),T=m?await Promise.all(m):[];if(e.items){let l=e.items.object==="page"?g((F=e.items)==null?void 0:F.data,"items"):g((R=e.items)==null?void 0:R.results,"items"),w=!!l&&l.map(async u=>{if(!u)return null;let f=!!u&&!!(u==null?void 0:u.url)?u==null?void 0:u.url:u;if(!f)return null;let{base64:M,img:H}=await(0,L.getPlaiceholder)(f),v=r.slug(f);return{base64:M,id:v,img:H,url:f}}),y=await Promise.all(w);!!y&&y[0]&&(0,G.default)(y,u=>s[u.id]=u)}return!!_&&_[0]&&(0,G.default)(_,l=>s[l.id]=l),!!T&&T[0]&&(0,G.default)(T,l=>s[l.id]=l),s},he=oo;var me=i(require("lodash/last.js"),1),to=e=>{let n=(0,me.default)(e.split("_"))??"";return n.length>0&&n.replace("Past","Cast Emeritus").replace("Musical","Musical Director").replace("Technical","Technical Director"),n},Pe=to;var no=e=>(console.dir("@notion(_unsupported)"),console.dir(e),e),A=no;var ro=e=>e.checkbox||!1,Se=ro;var io=e=>{let{type:n}=e;return e[n]},O=io;var so=e=>e.email||null,Ee=so;var we=i(require("@jeromefitz/utils"),1),fe=i(require("github-slugger"),1),ke=i(require("lodash/size.js"),1),lo="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",ao=(e,n)=>lo.replace("{{FILENAME}}",encodeURIComponent(e)).replace("{{PAGE_ID}}",(0,we.stringToUUID)(n)),_o=(e,n)=>{let r=new fe.default,s={};return(0,ke.default)(e.files)<=0||e.files.map(t=>{var p,_;if((t==null?void 0:t.type)==="file"){let c=(p=t==null?void 0:t.file)==null?void 0:p.url.split("?")[0],m=r.slug(c);s[m]={type:t==null?void 0:t.type,url:ao(c,n)}}if((t==null?void 0:t.type)==="external"){let c=(_=t==null?void 0:t.external)==null?void 0:_.url.split("?")[0],m=r.slug(c);s[m]={type:t==null?void 0:t.type,url:c}}}),s},N=_o;var ge=i(require("github-slugger"),1),Te=i(require("lodash/map.js"),1),po=e=>{let n=new ge.default,r={};return(0,Te.default)(e.multi_select,s=>{let t=s;t.slug=n.slug(t.name),r[t.id]=t}),r},be=po;var uo=e=>(e==null?void 0:e.number)||null,De=uo;var ve=i(require("github-slugger"),1),co=e=>{let n=new ve.default;return e.people.map(r=>{let{avatar_url:s,id:t,name:p,person:_}=r,{email:c}=_;return{[n.slug(p)]:{avatar_url:s,email:c,id:t,name:p}}})[0]},xe=co;var yo=e=>(e==null?void 0:e.phone_number)||null,Ce=yo;var U=i(require("lodash/map.js"),1);var ho=e=>e.type==="rollup"?e.rollup.type==="array"&&(0,U.default)(e.rollup.array,n=>k[n.type](n))[0]:(0,U.default)(e.relation,n=>n.id),Ie=ho;var mo=e=>{var n;return(e==null?void 0:e.rich_text)?(n=e==null?void 0:e.rich_text[0])==null?void 0:n.plain_text:null},Ge=mo;var Le=i(require("lodash/map.js"),1),Ae=i(require("lodash/sortBy.js"),1);var Po=e=>{var n;return(0,Ae.default)((0,Le.default)((n=e==null?void 0:e.rollup)==null?void 0:n.array,r=>k[r.type](r)))},Oe=Po;var Me=i(require("github-slugger"),1),So=e=>{let n=new Me.default,r=e.select;return r?(r.slug=n.slug(e.select.name),{[r.id]:r}):null},He=So;var Eo=e=>{var n;return(e==null?void 0:e.title)?(n=e==null?void 0:e.title[0])==null?void 0:n.plain_text:null},Ve=Eo;var wo=e=>e.url||null,Ne=wo;var fo={checkbox:Se,created_by:A,created_time:O,date:O,email:Ee,files:N,formula:A,image:N,last_edited_by:A,last_edited_time:O,multi_select:be,number:De,people:xe,phone_number:Ce,relation:Ie,rich_text:Ge,rollup:Oe,select:He,title:Ve,url:Ne},k=fo;module.exports=je(ko);0&&(module.exports={addTime,dataNormalized,dataNormalizedResults,filterImages,getImages,getTitle,getTypes});
|
package/utils/index.d.ts
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
export { default as addTime } from './addTime/index';
|
|
2
|
-
export { default as avoidRateLimit } from './avoidRateLimit/index';
|
|
3
2
|
export { default as dataNormalized } from './dataNormalized/index';
|
|
4
3
|
export { default as dataNormalizedResults } from './dataNormalizedResults/index';
|
|
5
|
-
export { default as dataSorted } from './dataSorted/index';
|
|
6
4
|
export { default as filterImages } from './filterImages/index';
|
|
7
5
|
export { default as getImages } from './getImages/index';
|
|
8
6
|
export { default as getTitle } from './getTitle/index';
|
|
9
7
|
export { default as getTypes } from './getTypes/index';
|
|
10
|
-
export { default as isObjectEmpty } from './isObjectEmpty/index';
|
|
11
|
-
export { default as isUndefined } from './isUndefined/index';
|
|
12
|
-
export { default as stringToUUID } from './stringToUUID/index';
|
|
13
|
-
import 'lodash';
|
package/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import j from"date-fns/addDays/index.js";import me from"date-fns/addMonths/index.js";import he from"date-fns/addYears/index.js";var Pe=(e,r)=>{switch(r){case"year":return he(e,1).toISOString();case"month":return me(e,1).toISOString();case"day":return j(e,2).toISOString()}return j(e,-1).toISOString()},Se=Pe;var Ee=250;async function we(){await fe()}function fe(e=Ee){return new Promise(r=>setTimeout(r,e))}var ke=we;import Ce from"lodash/map.js";import S from"lodash/filter.js";import ge from"lodash/map.js";var d=({key:e,notion:r,type:n})=>({key:e,notion:r,type:n}),o={addressCity:{init:!0,key:"addressCity",notion:"Address.City",type:"rich_text"},addressLatitude:{init:!0,key:"addressLatitude",notion:"Address.Latitude",type:"number",format:"number"},addressLongitude:{init:!0,key:"addressLongitude",notion:"Address.Longitude",type:"number",format:"number"},addressNeighborhood:{init:!0,key:"addressNeighborhood",notion:"Address.Neighborhood",type:"rich_text"},addressState:{init:!0,key:"addressState",notion:"Address.State",type:"select"},addressStreet:{init:!0,key:"addressStreet",notion:"Address.Street",type:"rich_text"},addressZipCode:{init:!0,key:"addressZipCode",notion:"Address.ZipCode",type:"number",format:"number"},authors:{init:!0,key:"authors",notion:"Authors",type:"people"},categories:{init:!0,key:"categories",notion:"Categories",type:"multi_select"},dateCreated:{init:!1,key:"dateCreated",notion:"Date.Created",type:"created_time"},dateEdited:{init:!1,key:"dateEdited",notion:"Date.Edited",type:"last_edited_time"},dateEvent:{init:!0,key:"dateEvent",notion:"Date.Event",type:"date"},datePublished:{init:!0,key:"datePublished",notion:"Date.Published",type:"date"},dateRecorded:{init:!0,key:"dateRecorded",notion:"Date.Recorded",type:"date"},duration:{init:!0,key:"duration",notion:"Duration",type:"rich_text"},email:{init:!0,key:"email",notion:"Email",type:"rich_text"},episode:{init:!0,key:"episode",notion:"Episode",type:"number",format:"number"},explicit:{init:!0,key:"explicit",notion:"Explicit",type:"checkbox"},festivals:{init:!0,key:"festivals",notion:"Festival",type:"multi_select"},food:{init:!0,key:"food",notion:"Food",type:"rich_text"},isIndexed:{init:!0,key:"isIndexed",notion:"Is.Indexed",type:"checkbox"},isPublished:{init:!0,key:"isPublished",notion:"Is.Published",type:"checkbox"},mp3:{init:!0,key:"mp3",notion:"MP3",type:"files"},name:{init:!0,key:"name",notion:"Name",type:"rich_text"},nameFirst:{init:!0,key:"nameFirst",notion:"Name.First",type:"rich_text"},nameLast:{init:!0,key:"nameLast",notion:"Name.Last",type:"rich_text"},namePreferred:{init:!0,key:"namePreferred",notion:"Name.Preferred",type:"rich_text"},phoneNumber:{init:!0,key:"phoneNumber",notion:"Phone",type:"rich_text"},podcastAuthor:{init:!0,key:"podcastAuthor",notion:"Author",type:"rich_text"},podcastAuthorEmail:{init:!0,key:"podcastAuthorEmail",notion:"Author.Email",type:"rich_text"},relationEpisodes__Podcast:{init:!0,key:"relationEpisodes__Podcast",notion:"Podcasts",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Episodes"}},relationPodcasts__Episodes:{init:!1,key:"relationPodcasts__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Podcasts"}},relationEpisodes__People_Guest:{init:!0,key:"relationEpisodes__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Guest"}},relationPeople__Episodes_Guest:{init:!1,key:"relationPeople__Episodes_Guest",notion:"Episodes.Guest",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Guest"}},relationEpisodes__People_Sound_Engineer:{init:!0,key:"relationEpisodes__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Sound.Engineer"}},relationPeople__Episodes_Sound_Engineer:{init:!1,key:"relationPeople__Episodes_Sound_Engineer",notion:"Episodes.Sound.Engineer",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Sound.Engineer"}},relationEpisodes__People_Thanks:{init:!0,key:"relationEpisodes__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Thanks"}},relationPeople__Episodes_Thanks:{init:!1,key:"relationPeople__Episodes_Thanks",notion:"Episodes.Thanks",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Thanks"}},relationEpisodes__Venues:{init:!0,key:"relationEpisodes__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Episodes"}},relationVenues__Episodes:{init:!1,key:"relationVenues__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Venues"}},relationEvents__Venues:{init:!0,key:"relationEvents__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Events"}},relationVenues__Events:{init:!1,key:"relationVenues__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Venues"}},relationEvents__Shows:{init:!0,key:"relationEvents__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events"}},relationShows__Events:{init:!1,key:"relationShows__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows"}},relationEvents__Shows_Lineup:{init:!0,key:"relationEvents__Shows_Lineup",notion:"Shows.Lineup",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events.Lineup"}},relationShows__Events_Lineup:{init:!1,key:"relationShows__Events_Lineup",notion:"Events.Lineup",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows.Lineup"}},relationShows__People_Cast:{init:!0,key:"relationShows__People_Cast",notion:"Cast",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast"}},relationPeople__Shows_Cast:{init:!1,key:"relationPeople__Shows_Cast",notion:"Shows.Cast",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast"}},relationShows__People_Cast_Past:{init:!0,key:"relationShows__People_Cast_Past",notion:"Cast.Past",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast.Past"}},relationPeople__Shows_Cast_Past:{init:!1,key:"relationPeople__Shows_Cast_Past",notion:"Shows.Cast.Past",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast.Past"}},relationShows_People_Crew:{init:!0,key:"relationShows_People_Crew",notion:"Crew",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Crew"}},relationPeople__Shows_Crew:{init:!0,key:"relationPeople__Shows_Crew",notion:"Shows.Crew",type:"relation",relation:{database_id:"Shows",synced_property_name:"Crew"}},relationShows__People_Director:{init:!0,key:"relationShows__People_Director",notion:"Director",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director"}},relationPeople__Shows_Director:{init:!1,key:"relationPeople__Shows_Director",notion:"Shows.Director",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director"}},relationShows__People_Director_Musical:{init:!0,key:"relationShows__People_Director_Musical",notion:"Director.Musical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Musical"}},relationPeople__Shows_Director_Musical:{init:!1,key:"relationPeople__Shows_Director_Musical",notion:"Shows.Director.Musical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Musical"}},relationShows__People_Director_Technical:{init:!0,key:"relationShows__People_Director_Technical",notion:"Director.Technical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Technical"}},relationPeople__Shows_Director_Technical:{init:!1,key:"relationPeople__Shows_Director_Technical",notion:"Shows.Director.Technical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Technical"}},relationEvents__People_Guest:{init:!0,key:"relationEvents__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest"}},relationPeople__Events_Guest:{init:!1,key:"relationEvents__People_Guest",notion:"Events.Guest",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest"}},relationPodcasts__People_Host:{init:!0,key:"relationPodcasts__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Podcasts.Host"}},relationPeople__Podcasts_Host:{init:!1,key:"relationPeople__Podcasts_Host",notion:"Podcasts.Host",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Host"}},relationEvents__People_Host:{init:!0,key:"relationEvents__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Host"}},relationPeople__Events_Host:{init:!1,key:"relationPeople__Events_Host",notion:"Events.Host",type:"relation",relation:{database_id:"Events",synced_property_name:"Host"}},relationShows__People_Producer:{init:!0,key:"relationShows__People_Producer",notion:"Producer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Producer"}},relationPeople__Shows_Producer:{init:!1,key:"relationPeople__Shows_Producer",notion:"Shows.Producer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Producer"}},relationEvents__People_Guest_Music:{init:!0,key:"relationEvents__People_Guest_Music",notion:"Guest.Music",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest.Music"}},relationPeople__Events_Guest_Music:{init:!1,key:"relationPeople__Events_Guest_Music",notion:"Events.Guest.Music",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest.Music"}},relationPodcasts__People_Sound_Engineer:{init:!0,key:"relationPodcasts__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Podcasts.Sound.Engineer"}},relationPeople__Podcasts_Sound_Engineer:{init:!1,key:"relationPeople__Podcasts_Sound_Engineer",notion:"Podcasts.Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Sound.Engineer"}},relationShows__People_Thanks:{init:!0,key:"relationShows__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Thanks"}},relationPeople__Shows_Thanks:{init:!1,key:"relationPeople__Shows_Thanks",notion:"Shows.Thanks",type:"relation",relation:{database_id:"Shows",synced_property_name:"Thanks"}},relationShows__People_Writer:{init:!0,key:"relationShows__People_Writer",notion:"Writer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Writer"}},relationPeople__Shows_Writer:{init:!1,key:"relationPeople__Shows_Writer",notion:"Shows.Writer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Writer"}},relationShows__Tags:{init:!0,key:"relationShows__Tags",notion:"Tags",type:"relation",relation:{database_id:"Tags",synced_property_name:"Shows"}},relationTags__Shows:{init:!1,key:"relationTags__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Tags"}},rollupShows__Tags:{init:!1,key:"rollupShows__Tags",notion:"Tags.Rollup",type:"rollup",rollup:{relation_property_name:"Tags",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast:{init:!1,key:"rollupShows__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast_Slug:{init:!1,key:"rollupShows__People_Cast_Slug",notion:"Cast.Rollup.Slug",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_name:"Slug",function:"show_original"}},rollupShows__People_Cast_Past:{init:!1,key:"rollupShows__People_Cast_Past",notion:"Cast.Past.Rollup",type:"rollup",rollup:{relation_property_name:"Cast.Past",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Crew:{init:!1,key:"rollupShows__People_Crew",notion:"Crew.Rollup",type:"rollup",rollup:{relation_property_name:"Crew",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director:{init:!1,key:"rollupShows__People_Director",notion:"Director.Rollup",type:"rollup",rollup:{relation_property_name:"Director",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Musical:{init:!1,key:"rollupShows__People_Director_Musical",notion:"Director.Musical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Musical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Technical:{init:!1,key:"rollupShows__People_Director_Technical",notion:"Director.Technical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Technical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Music:{init:!1,key:"rollupShows__People_Music",notion:"Music.Rollup",type:"rollup",rollup:{relation_property_name:"Music",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Producer:{init:!1,key:"rollupShows__People_Producer",notion:"Producer.Rollup",type:"rollup",rollup:{relation_property_name:"Producer",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Thanks:{init:!1,key:"rollupShows__People_Thanks",notion:"Thanks.Rollup",type:"rollup",rollup:{relation_property_name:"Thanks",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Writer:{init:!1,key:"rollupShows__People_Writer",notion:"Writer.Rollup",type:"rollup",rollup:{relation_property_name:"Writer",rollup_property_name:"Title",function:"show_original"}},rollupEvents__People_Cast:{init:!1,key:"rollupEvents__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Cast",function:"show_original"}},rollupEvents__People_Guest:{init:!1,key:"rollupEvents__People_Guest",notion:"Guest.Rollup",type:"rollup",rollup:{relation_property_name:"Guest",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Guest_Music:{init:!1,key:"rollupEvents__People_Guest_Music",notion:"Guest.Music.Rollup",type:"rollup",rollup:{relation_property_name:"Guest.Music",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Host:{init:!1,key:"rollupEvents__People_Host",notion:"Host.Rollup",type:"rollup",rollup:{relation_property_name:"Host",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows:{init:!1,key:"rollupEvents__Shows",notion:"Shows.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows_Lineup:{init:!1,key:"rollupEvents__Shows_Lineup",notion:"Shows.Lineup.Rollup",type:"rollup",rollup:{relation_property_name:"Shows.Lineup",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Venues:{init:!1,key:"rollupEvents__Venues",notion:"Venues.Rollup",type:"rollup",rollup:{relation_property_name:"Venues",rollup_property_id:"Title",function:"show_original"}},season:{init:!0,key:"season",notion:"Season",type:"number",format:"number"},seoDescription:{init:!0,key:"seoDescription",notion:"SEO.Description",type:"rich_text"},seoImage:{init:!0,key:"seoImage",notion:"SEO.Image",type:"files"},seoImageDescription:{init:!0,key:"seoImageDescription",notion:"SEO.Image.Description",type:"rich_text"},slug:{init:!0,key:"slug",notion:"Slug",type:"rich_text"},socialFacebook:{init:!0,key:"socialFacebook",notion:"Social.Facebook",type:"url"},socialInstagram:{init:!0,key:"socialInstagram",notion:"Social.Instagram",type:"url"},socialTwitter:{init:!0,key:"socialTwitter",notion:"Social.Twitter",type:"url"},socialWebsite:{init:!0,key:"socialWebsite",notion:"Social.Website",type:"url"},socialSpotify:{init:!0,key:"socialSpotify",notion:"Social.Spotify",type:"url"},socialApple:{init:!0,key:"socialApple",notion:"Social.Apple",type:"url"},subtitle:{init:!0,key:"subtitle",notion:"Subitle",type:"rich_text"},ticketUrl:{init:!0,key:"ticketUrl",notion:"TicketUrl",type:"url"},title:{init:!0,key:"title",notion:"Title",type:"title"},type:{init:!0,key:"type",notion:"Type",type:"select"}},E=[o.authors,o.datePublished,o.isIndexed,o.isPublished,o.slug,o.seoDescription,o.seoImage,o.seoImageDescription,o.title],B=[...E],z=[...E,o.dateRecorded,o.duration,o.episode,o.mp3,o.season,o.relationEpisodes__People_Guest,o.relationEpisodes__People_Sound_Engineer,o.relationEpisodes__People_Thanks,o.relationEpisodes__Podcast,o.relationEpisodes__Venues,o.socialApple,o.socialSpotify,o.type],Y=[...E,o.dateEvent,o.relationEvents__People_Guest_Music,o.relationEvents__People_Guest,o.relationEvents__People_Host,o.relationEvents__Shows_Lineup,o.relationEvents__Shows,o.relationEvents__Venues,o.socialFacebook,o.socialWebsite,o.ticketUrl,o.rollupEvents__People_Cast,o.rollupEvents__People_Guest_Music,o.rollupEvents__People_Guest,o.rollupEvents__People_Host,o.rollupEvents__Shows_Lineup,o.rollupEvents__Shows,o.rollupEvents__Venues],Z=[...E],K=[...E,o.email,o.nameFirst,o.nameLast,o.namePreferred,o.relationPeople__Episodes_Guest,o.relationPeople__Episodes_Sound_Engineer,o.relationPeople__Episodes_Thanks,o.relationPeople__Events_Guest,o.relationPeople__Events_Guest_Music,o.relationPeople__Events_Host,o.relationPeople__Podcasts_Host,o.relationPeople__Podcasts_Sound_Engineer,o.relationPeople__Shows_Cast,o.relationPeople__Shows_Cast_Past,o.relationPeople__Shows_Director,o.relationPeople__Shows_Director_Musical,o.relationPeople__Shows_Director_Technical,o.relationPeople__Shows_Producer,o.relationPeople__Shows_Thanks,o.relationPeople__Shows_Writer],q=[...E,o.categories,o.explicit,o.podcastAuthor,o.podcastAuthorEmail,o.relationPodcasts__People_Host,o.relationPodcasts__People_Sound_Engineer,o.socialApple,o.socialSpotify,o.type,o.relationPodcasts__Episodes],Q=[...E],J=[...E,o.relationShows__People_Cast,o.relationShows__People_Cast_Past,o.relationShows__People_Director,o.relationShows__People_Director_Musical,o.relationShows__People_Director_Technical,o.relationShows__People_Producer,o.relationShows__People_Thanks,o.relationShows__People_Writer,o.relationShows__Tags,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationShows__Events,o.relationShows__Events_Lineup,o.rollupShows__People_Cast,o.rollupShows__People_Cast_Slug,o.rollupShows__People_Cast_Past,o.rollupShows__People_Crew,o.rollupShows__People_Director,o.rollupShows__People_Director_Musical,o.rollupShows__People_Director_Technical,o.rollupShows__People_Music,o.rollupShows__People_Producer,o.rollupShows__People_Thanks,o.rollupShows__People_Writer,o.rollupShows__Tags],X=[...E,o.addressCity,o.addressLatitude,o.addressLongitude,o.addressNeighborhood,o.addressState,o.addressStreet,o.addressZipCode,o.phoneNumber,o.socialFacebook,o.socialInstagram,o.socialTwitter,o.socialWebsite,o.relationVenues__Episodes,o.relationVenues__Events],Lo={BLOG:S(B,{init:!0}),EPISODES:S(z,{init:!0}),EVENTS:S(Y,{init:!0}),PAGES:S(Z,{init:!0}),PEOPLE:S(K,{init:!0}),PODCASTS:S(q,{init:!0}),SEO:S(Q,{init:!0}),SHOWS:S(J,{init:!0}),VENUES:S(X,{init:!0})},$={BLOG:B.map(e=>d(e)),EPISODES:z.map(e=>d(e)),EVENTS:Y.map(e=>d(e)),PAGES:Z.map(e=>d(e)),PEOPLE:K.map(e=>d(e)),PODCASTS:q.map(e=>d(e)),SEO:Q.map(e=>d(e)),SHOWS:J.map(e=>d(e)),VENUES:X.map(e=>d(e))},ee=ge(o,e=>d(e)),oe=new Date().toISOString(),Oo={dateBefore:{property:o.datePublished.notion,date:{before:oe}},dateOnOrAfter:{property:o.datePublished.notion,date:{on_or_after:oe}},published:{property:o.isPublished.notion,checkbox:{equals:!1}},slug:{property:o.slug.notion,text:{equals:""}}},Te="LISTING",be="LISTING_BY_DATE",De="SLUG",ve="SLUG_BY_ROUTE",xe=[Te,be,De,ve],Ao=Object.assign({},...xe.map(e=>({[e]:e})).flat(1));var Ie=({config:e,data:r,pathVariables:n,pageId:a})=>{var T,b;let{NOTION:t}=e,_={};if(!(r==null?void 0:r.properties))return _;let{properties:p}=r,c;if(n){let{meta:h,routeType:P}=n;c=P===((T=t==null?void 0:t.PODCASTS)==null?void 0:T.routeType)&&h.length>1?(b=t==null?void 0:t.EPISODES)==null?void 0:b.routeType:P}let m=c?$[c.toUpperCase()]:ee;return Ce(m,h=>{let P,D=p[h.notion];_[h.key]=null,D&&(P=k[h.type](D,a),_[h.key]=P||null)}),_},L=Ie;import Ge from"lodash/map.js";import Le from"lodash/omit.js";var Oe=({config:e,results:r,routeType:n})=>{let a=[];return Ge(r,t=>{let _=Le(t,"properties");_.properties=O(L({config:e,data:t,pathVariables:n,pageId:t==null?void 0:t.id})),a.push(_)}),a},Ae=Oe;import Me from"lodash/fromPairs.js";import Ue from"lodash/sortBy.js";import He from"lodash/toPairs.js";var Ve=e=>Me(Ue(He(e))),O=Ve;import Ne from"lodash/filter.js";import A from"lodash/map.js";var We=(e,r)=>{switch(r){case"info":let n=[];return A(e.seoImage,t=>!!(t==null?void 0:t.url)&&(t==null?void 0:t.type)==="external"&&n.push(t==null?void 0:t.url)),n;case"content":return!!e&&Ne(e,{object:"block",type:"image"});case"items":let a=[];return A(e,t=>{var _;A((_=t==null?void 0:t.properties)==null?void 0:_.seoImage,p=>!!(p==null?void 0:p.url)&&(p==null?void 0:p.type)==="external"&&a.push(p==null?void 0:p.url))}),a;default:return[]}},g=We;import Fe from"github-slugger";import M from"lodash/map.js";import{getPlaiceholder as U}from"plaiceholder";var Re=async({data:e,pathVariables:r})=>{var b,h,P,D,N,W,F;let n=new Fe,a={},t=((b=e.info)==null?void 0:b.object)==="page"?g((h=e.info)==null?void 0:h.properties,"info"):!!((P=e.info)==null?void 0:P.results)&&g((N=(D=e.info)==null?void 0:D.results[0])==null?void 0:N.properties,"info"),_=!!t&&t.map(async l=>{if(!l)return null;let w=!!l&&!!(l==null?void 0:l.url)?l==null?void 0:l.url:l;if(!w)return null;let{base64:y,img:u}=await U(w),f=n.slug(w);return{base64:y,id:f,img:u,url:w}}),p=_?await Promise.all(_):[],c=!r.isIndex&&g(e==null?void 0:e.content,"content"),m=!!c&&c.map(async l=>{var v,R;if(!l)return null;let{type:w}=l,y=l[w],u=!!l&&!!((v=y==null?void 0:y.external)==null?void 0:v.url)?(R=y==null?void 0:y.external)==null?void 0:R.url:null;if(!u)return null;let{base64:f,img:I}=await U(u),G=n.slug(u);return{base64:f,id:G,img:I,url:u}}),T=m?await Promise.all(m):[];if(e.items){let l=e.items.object==="page"?g((W=e.items)==null?void 0:W.data,"items"):g((F=e.items)==null?void 0:F.results,"items"),w=!!l&&l.map(async u=>{if(!u)return null;let f=!!u&&!!(u==null?void 0:u.url)?u==null?void 0:u.url:u;if(!f)return null;let{base64:I,img:G}=await U(f),v=n.slug(f);return{base64:I,id:v,img:G,url:f}}),y=await Promise.all(w);!!y&&y[0]&&M(y,u=>a[u.id]=u)}return!!p&&p[0]&&M(p,l=>a[l.id]=l),!!T&&T[0]&&M(T,l=>a[l.id]=l),a},je=Re;import Be from"lodash/last.js";var ze=e=>{let r=Be(e.split("_"))??"";return r.length>0&&r.replace("Past","Cast Emeritus").replace("Musical","Musical Director").replace("Technical","Technical Director"),r},Ye=ze;var Ze=e=>(console.dir("@notion(_unsupported)"),console.dir(e),e),x=Ze;var Ke=e=>e.checkbox||!1,te=Ke;var qe=e=>{let{type:r}=e;return e[r]},C=qe;var Qe=e=>e.email||null,re=Qe;import Xe from"github-slugger";import $e from"lodash/size.js";var Je=e=>e.length!==32?e:e.substr(0,8)+"-"+e.substr(8,4)+"-"+e.substr(12,4)+"-"+e.substr(16,4)+"-"+e.substr(20),H=Je;var eo="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",oo=(e,r)=>eo.replace("{{FILENAME}}",encodeURIComponent(e)).replace("{{PAGE_ID}}",H(r)),to=(e,r)=>{let n=new Xe,a={};return $e(e.files)<=0||e.files.map(t=>{var _,p;if((t==null?void 0:t.type)==="file"){let c=(_=t==null?void 0:t.file)==null?void 0:_.url.split("?")[0],m=n.slug(c);a[m]={type:t==null?void 0:t.type,url:oo(c,r)}}if((t==null?void 0:t.type)==="external"){let c=(p=t==null?void 0:t.external)==null?void 0:p.url.split("?")[0],m=n.slug(c);a[m]={type:t==null?void 0:t.type,url:c}}}),a},V=to;import ro from"github-slugger";import no from"lodash/map.js";var io=e=>{let r=new ro,n={};return no(e.multi_select,a=>{let t=a;t.slug=r.slug(t.name),n[t.id]=t}),n},ne=io;var so=e=>(e==null?void 0:e.number)||null,ie=so;import lo from"github-slugger";var ao=e=>{let r=new lo;return e.people.map(n=>{let{avatar_url:a,id:t,name:_,person:p}=n,{email:c}=p;return{[r.slug(_)]:{avatar_url:a,email:c,id:t,name:_}}})[0]},se=ao;var po=e=>(e==null?void 0:e.phone_number)||null,le=po;import ae from"lodash/map.js";var _o=e=>e.type==="rollup"?e.rollup.type==="array"&&ae(e.rollup.array,r=>k[r.type](r))[0]:ae(e.relation,r=>r.id),pe=_o;var uo=e=>{var r;return(e==null?void 0:e.rich_text)?(r=e==null?void 0:e.rich_text[0])==null?void 0:r.plain_text:null},_e=uo;import co from"lodash/map.js";import yo from"lodash/sortBy.js";var mo=e=>{var r;return yo(co((r=e==null?void 0:e.rollup)==null?void 0:r.array,n=>k[n.type](n)))},ue=mo;import ho from"github-slugger";var Po=e=>{let r=new ho,n=e.select;return n?(n.slug=r.slug(e.select.name),{[n.id]:n}):null},ce=Po;var So=e=>{var r;return(e==null?void 0:e.title)?(r=e==null?void 0:e.title[0])==null?void 0:r.plain_text:null},ye=So;var Eo=e=>e.url||null,de=Eo;var wo={checkbox:te,created_by:x,created_time:C,date:C,email:re,files:V,formula:x,image:V,last_edited_by:x,last_edited_time:C,multi_select:ne,number:ie,people:se,phone_number:le,relation:pe,rich_text:_e,rollup:ue,select:ce,title:ye,url:de},k=wo;var fo=e=>Object.entries(e).length===0&&e.constructor===Object,ko=fo;var go=e=>e===void 0&&typeof e=="undefined",To=go;export{Se as addTime,ke as avoidRateLimit,L as dataNormalized,Ae as dataNormalizedResults,O as dataSorted,g as filterImages,je as getImages,Ye as getTitle,k as getTypes,ko as isObjectEmpty,To as isUndefined,H as stringToUUID};
|
|
1
|
+
import F from"date-fns/addDays/index.js";import ye from"date-fns/addMonths/index.js";import de from"date-fns/addYears/index.js";var he=(o,n)=>{switch(n){case"year":return de(o,1).toISOString();case"month":return ye(o,1).toISOString();case"day":return F(o,2).toISOString()}return F(o,-1).toISOString()},me=he;import ge from"lodash/map.js";import S from"lodash/filter.js";import Pe from"lodash/map.js";var d=({key:o,notion:n,type:r})=>({key:o,notion:n,type:r}),e={addressCity:{init:!0,key:"addressCity",notion:"Address.City",type:"rich_text"},addressLatitude:{init:!0,key:"addressLatitude",notion:"Address.Latitude",type:"number",format:"number"},addressLongitude:{init:!0,key:"addressLongitude",notion:"Address.Longitude",type:"number",format:"number"},addressNeighborhood:{init:!0,key:"addressNeighborhood",notion:"Address.Neighborhood",type:"rich_text"},addressState:{init:!0,key:"addressState",notion:"Address.State",type:"select"},addressStreet:{init:!0,key:"addressStreet",notion:"Address.Street",type:"rich_text"},addressZipCode:{init:!0,key:"addressZipCode",notion:"Address.ZipCode",type:"number",format:"number"},authors:{init:!0,key:"authors",notion:"Authors",type:"people"},categories:{init:!0,key:"categories",notion:"Categories",type:"multi_select"},dateCreated:{init:!1,key:"dateCreated",notion:"Date.Created",type:"created_time"},dateEdited:{init:!1,key:"dateEdited",notion:"Date.Edited",type:"last_edited_time"},dateEvent:{init:!0,key:"dateEvent",notion:"Date.Event",type:"date"},datePublished:{init:!0,key:"datePublished",notion:"Date.Published",type:"date"},dateRecorded:{init:!0,key:"dateRecorded",notion:"Date.Recorded",type:"date"},duration:{init:!0,key:"duration",notion:"Duration",type:"rich_text"},email:{init:!0,key:"email",notion:"Email",type:"rich_text"},episode:{init:!0,key:"episode",notion:"Episode",type:"number",format:"number"},explicit:{init:!0,key:"explicit",notion:"Explicit",type:"checkbox"},festivals:{init:!0,key:"festivals",notion:"Festival",type:"multi_select"},food:{init:!0,key:"food",notion:"Food",type:"rich_text"},isIndexed:{init:!0,key:"isIndexed",notion:"Is.Indexed",type:"checkbox"},isPublished:{init:!0,key:"isPublished",notion:"Is.Published",type:"checkbox"},mp3:{init:!0,key:"mp3",notion:"MP3",type:"files"},name:{init:!0,key:"name",notion:"Name",type:"rich_text"},nameFirst:{init:!0,key:"nameFirst",notion:"Name.First",type:"rich_text"},nameLast:{init:!0,key:"nameLast",notion:"Name.Last",type:"rich_text"},namePreferred:{init:!0,key:"namePreferred",notion:"Name.Preferred",type:"rich_text"},phoneNumber:{init:!0,key:"phoneNumber",notion:"Phone",type:"rich_text"},podcastAuthor:{init:!0,key:"podcastAuthor",notion:"Author",type:"rich_text"},podcastAuthorEmail:{init:!0,key:"podcastAuthorEmail",notion:"Author.Email",type:"rich_text"},relationEpisodes__Podcast:{init:!0,key:"relationEpisodes__Podcast",notion:"Podcasts",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Episodes"}},relationPodcasts__Episodes:{init:!1,key:"relationPodcasts__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Podcasts"}},relationEpisodes__People_Guest:{init:!0,key:"relationEpisodes__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Guest"}},relationPeople__Episodes_Guest:{init:!1,key:"relationPeople__Episodes_Guest",notion:"Episodes.Guest",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Guest"}},relationEpisodes__People_Sound_Engineer:{init:!0,key:"relationEpisodes__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Sound.Engineer"}},relationPeople__Episodes_Sound_Engineer:{init:!1,key:"relationPeople__Episodes_Sound_Engineer",notion:"Episodes.Sound.Engineer",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Sound.Engineer"}},relationEpisodes__People_Thanks:{init:!0,key:"relationEpisodes__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Episodes.Thanks"}},relationPeople__Episodes_Thanks:{init:!1,key:"relationPeople__Episodes_Thanks",notion:"Episodes.Thanks",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Thanks"}},relationEpisodes__Venues:{init:!0,key:"relationEpisodes__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Episodes"}},relationVenues__Episodes:{init:!1,key:"relationVenues__Episodes",notion:"Episodes",type:"relation",relation:{database_id:"Episodes",synced_property_name:"Venues"}},relationEvents__Venues:{init:!0,key:"relationEvents__Venues",notion:"Venues",type:"relation",relation:{database_id:"Venues",synced_property_name:"Events"}},relationVenues__Events:{init:!1,key:"relationVenues__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Venues"}},relationEvents__Shows:{init:!0,key:"relationEvents__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events"}},relationShows__Events:{init:!1,key:"relationShows__Events",notion:"Events",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows"}},relationEvents__Shows_Lineup:{init:!0,key:"relationEvents__Shows_Lineup",notion:"Shows.Lineup",type:"relation",relation:{database_id:"Shows",synced_property_name:"Events.Lineup"}},relationShows__Events_Lineup:{init:!1,key:"relationShows__Events_Lineup",notion:"Events.Lineup",type:"relation",relation:{database_id:"Events",synced_property_name:"Shows.Lineup"}},relationShows__People_Cast:{init:!0,key:"relationShows__People_Cast",notion:"Cast",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast"}},relationPeople__Shows_Cast:{init:!1,key:"relationPeople__Shows_Cast",notion:"Shows.Cast",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast"}},relationShows__People_Cast_Past:{init:!0,key:"relationShows__People_Cast_Past",notion:"Cast.Past",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Cast.Past"}},relationPeople__Shows_Cast_Past:{init:!1,key:"relationPeople__Shows_Cast_Past",notion:"Shows.Cast.Past",type:"relation",relation:{database_id:"Shows",synced_property_name:"Cast.Past"}},relationShows_People_Crew:{init:!0,key:"relationShows_People_Crew",notion:"Crew",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Crew"}},relationPeople__Shows_Crew:{init:!0,key:"relationPeople__Shows_Crew",notion:"Shows.Crew",type:"relation",relation:{database_id:"Shows",synced_property_name:"Crew"}},relationShows__People_Director:{init:!0,key:"relationShows__People_Director",notion:"Director",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director"}},relationPeople__Shows_Director:{init:!1,key:"relationPeople__Shows_Director",notion:"Shows.Director",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director"}},relationShows__People_Director_Musical:{init:!0,key:"relationShows__People_Director_Musical",notion:"Director.Musical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Musical"}},relationPeople__Shows_Director_Musical:{init:!1,key:"relationPeople__Shows_Director_Musical",notion:"Shows.Director.Musical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Musical"}},relationShows__People_Director_Technical:{init:!0,key:"relationShows__People_Director_Technical",notion:"Director.Technical",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Director.Technical"}},relationPeople__Shows_Director_Technical:{init:!1,key:"relationPeople__Shows_Director_Technical",notion:"Shows.Director.Technical",type:"relation",relation:{database_id:"Shows",synced_property_name:"Director.Technical"}},relationEvents__People_Guest:{init:!0,key:"relationEvents__People_Guest",notion:"Guest",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest"}},relationPeople__Events_Guest:{init:!1,key:"relationEvents__People_Guest",notion:"Events.Guest",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest"}},relationPodcasts__People_Host:{init:!0,key:"relationPodcasts__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Podcasts.Host"}},relationPeople__Podcasts_Host:{init:!1,key:"relationPeople__Podcasts_Host",notion:"Podcasts.Host",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Host"}},relationEvents__People_Host:{init:!0,key:"relationEvents__People_Host",notion:"Host",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Host"}},relationPeople__Events_Host:{init:!1,key:"relationPeople__Events_Host",notion:"Events.Host",type:"relation",relation:{database_id:"Events",synced_property_name:"Host"}},relationShows__People_Producer:{init:!0,key:"relationShows__People_Producer",notion:"Producer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Producer"}},relationPeople__Shows_Producer:{init:!1,key:"relationPeople__Shows_Producer",notion:"Shows.Producer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Producer"}},relationEvents__People_Guest_Music:{init:!0,key:"relationEvents__People_Guest_Music",notion:"Guest.Music",type:"relation",relation:{database_id:"People",synced_property_name:"Events.Guest.Music"}},relationPeople__Events_Guest_Music:{init:!1,key:"relationPeople__Events_Guest_Music",notion:"Events.Guest.Music",type:"relation",relation:{database_id:"Events",synced_property_name:"Guest.Music"}},relationPodcasts__People_Sound_Engineer:{init:!0,key:"relationPodcasts__People_Sound_Engineer",notion:"Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Podcasts.Sound.Engineer"}},relationPeople__Podcasts_Sound_Engineer:{init:!1,key:"relationPeople__Podcasts_Sound_Engineer",notion:"Podcasts.Sound.Engineer",type:"relation",relation:{database_id:"Podcasts",synced_property_name:"Sound.Engineer"}},relationShows__People_Thanks:{init:!0,key:"relationShows__People_Thanks",notion:"Thanks",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Thanks"}},relationPeople__Shows_Thanks:{init:!1,key:"relationPeople__Shows_Thanks",notion:"Shows.Thanks",type:"relation",relation:{database_id:"Shows",synced_property_name:"Thanks"}},relationShows__People_Writer:{init:!0,key:"relationShows__People_Writer",notion:"Writer",type:"relation",relation:{database_id:"People",synced_property_name:"Shows.Writer"}},relationPeople__Shows_Writer:{init:!1,key:"relationPeople__Shows_Writer",notion:"Shows.Writer",type:"relation",relation:{database_id:"Shows",synced_property_name:"Writer"}},relationShows__Tags:{init:!0,key:"relationShows__Tags",notion:"Tags",type:"relation",relation:{database_id:"Tags",synced_property_name:"Shows"}},relationTags__Shows:{init:!1,key:"relationTags__Shows",notion:"Shows",type:"relation",relation:{database_id:"Shows",synced_property_name:"Tags"}},rollupShows__Tags:{init:!1,key:"rollupShows__Tags",notion:"Tags.Rollup",type:"rollup",rollup:{relation_property_name:"Tags",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast:{init:!1,key:"rollupShows__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Cast_Slug:{init:!1,key:"rollupShows__People_Cast_Slug",notion:"Cast.Rollup.Slug",type:"rollup",rollup:{relation_property_name:"Cast",rollup_property_name:"Slug",function:"show_original"}},rollupShows__People_Cast_Past:{init:!1,key:"rollupShows__People_Cast_Past",notion:"Cast.Past.Rollup",type:"rollup",rollup:{relation_property_name:"Cast.Past",rollup_property_id:"Title",function:"show_original"}},rollupShows__People_Crew:{init:!1,key:"rollupShows__People_Crew",notion:"Crew.Rollup",type:"rollup",rollup:{relation_property_name:"Crew",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director:{init:!1,key:"rollupShows__People_Director",notion:"Director.Rollup",type:"rollup",rollup:{relation_property_name:"Director",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Musical:{init:!1,key:"rollupShows__People_Director_Musical",notion:"Director.Musical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Musical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Director_Technical:{init:!1,key:"rollupShows__People_Director_Technical",notion:"Director.Technical.Rollup",type:"rollup",rollup:{relation_property_name:"Director.Technical",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Music:{init:!1,key:"rollupShows__People_Music",notion:"Music.Rollup",type:"rollup",rollup:{relation_property_name:"Music",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Producer:{init:!1,key:"rollupShows__People_Producer",notion:"Producer.Rollup",type:"rollup",rollup:{relation_property_name:"Producer",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Thanks:{init:!1,key:"rollupShows__People_Thanks",notion:"Thanks.Rollup",type:"rollup",rollup:{relation_property_name:"Thanks",rollup_property_name:"Title",function:"show_original"}},rollupShows__People_Writer:{init:!1,key:"rollupShows__People_Writer",notion:"Writer.Rollup",type:"rollup",rollup:{relation_property_name:"Writer",rollup_property_name:"Title",function:"show_original"}},rollupEvents__People_Cast:{init:!1,key:"rollupEvents__People_Cast",notion:"Cast.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Cast",function:"show_original"}},rollupEvents__People_Guest:{init:!1,key:"rollupEvents__People_Guest",notion:"Guest.Rollup",type:"rollup",rollup:{relation_property_name:"Guest",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Guest_Music:{init:!1,key:"rollupEvents__People_Guest_Music",notion:"Guest.Music.Rollup",type:"rollup",rollup:{relation_property_name:"Guest.Music",rollup_property_id:"Title",function:"show_original"}},rollupEvents__People_Host:{init:!1,key:"rollupEvents__People_Host",notion:"Host.Rollup",type:"rollup",rollup:{relation_property_name:"Host",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows:{init:!1,key:"rollupEvents__Shows",notion:"Shows.Rollup",type:"rollup",rollup:{relation_property_name:"Shows",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Shows_Lineup:{init:!1,key:"rollupEvents__Shows_Lineup",notion:"Shows.Lineup.Rollup",type:"rollup",rollup:{relation_property_name:"Shows.Lineup",rollup_property_id:"Title",function:"show_original"}},rollupEvents__Venues:{init:!1,key:"rollupEvents__Venues",notion:"Venues.Rollup",type:"rollup",rollup:{relation_property_name:"Venues",rollup_property_id:"Title",function:"show_original"}},season:{init:!0,key:"season",notion:"Season",type:"number",format:"number"},seoDescription:{init:!0,key:"seoDescription",notion:"SEO.Description",type:"rich_text"},seoImage:{init:!0,key:"seoImage",notion:"SEO.Image",type:"files"},seoImageDescription:{init:!0,key:"seoImageDescription",notion:"SEO.Image.Description",type:"rich_text"},slug:{init:!0,key:"slug",notion:"Slug",type:"rich_text"},socialFacebook:{init:!0,key:"socialFacebook",notion:"Social.Facebook",type:"url"},socialInstagram:{init:!0,key:"socialInstagram",notion:"Social.Instagram",type:"url"},socialTwitter:{init:!0,key:"socialTwitter",notion:"Social.Twitter",type:"url"},socialWebsite:{init:!0,key:"socialWebsite",notion:"Social.Website",type:"url"},socialSpotify:{init:!0,key:"socialSpotify",notion:"Social.Spotify",type:"url"},socialApple:{init:!0,key:"socialApple",notion:"Social.Apple",type:"url"},subtitle:{init:!0,key:"subtitle",notion:"Subitle",type:"rich_text"},ticketUrl:{init:!0,key:"ticketUrl",notion:"TicketUrl",type:"url"},title:{init:!0,key:"title",notion:"Title",type:"title"},type:{init:!0,key:"type",notion:"Type",type:"select"}},E=[e.authors,e.datePublished,e.isIndexed,e.isPublished,e.slug,e.seoDescription,e.seoImage,e.seoImageDescription,e.title],R=[...E],z=[...E,e.dateRecorded,e.duration,e.episode,e.mp3,e.season,e.relationEpisodes__People_Guest,e.relationEpisodes__People_Sound_Engineer,e.relationEpisodes__People_Thanks,e.relationEpisodes__Podcast,e.relationEpisodes__Venues,e.socialApple,e.socialSpotify,e.type],B=[...E,e.dateEvent,e.relationEvents__People_Guest_Music,e.relationEvents__People_Guest,e.relationEvents__People_Host,e.relationEvents__Shows_Lineup,e.relationEvents__Shows,e.relationEvents__Venues,e.socialFacebook,e.socialWebsite,e.ticketUrl,e.rollupEvents__People_Cast,e.rollupEvents__People_Guest_Music,e.rollupEvents__People_Guest,e.rollupEvents__People_Host,e.rollupEvents__Shows_Lineup,e.rollupEvents__Shows,e.rollupEvents__Venues],j=[...E],Y=[...E,e.email,e.nameFirst,e.nameLast,e.namePreferred,e.relationPeople__Episodes_Guest,e.relationPeople__Episodes_Sound_Engineer,e.relationPeople__Episodes_Thanks,e.relationPeople__Events_Guest,e.relationPeople__Events_Guest_Music,e.relationPeople__Events_Host,e.relationPeople__Podcasts_Host,e.relationPeople__Podcasts_Sound_Engineer,e.relationPeople__Shows_Cast,e.relationPeople__Shows_Cast_Past,e.relationPeople__Shows_Director,e.relationPeople__Shows_Director_Musical,e.relationPeople__Shows_Director_Technical,e.relationPeople__Shows_Producer,e.relationPeople__Shows_Thanks,e.relationPeople__Shows_Writer],Z=[...E,e.categories,e.explicit,e.podcastAuthor,e.podcastAuthorEmail,e.relationPodcasts__People_Host,e.relationPodcasts__People_Sound_Engineer,e.socialApple,e.socialSpotify,e.type,e.relationPodcasts__Episodes],K=[...E],q=[...E,e.relationShows__People_Cast,e.relationShows__People_Cast_Past,e.relationShows__People_Director,e.relationShows__People_Director_Musical,e.relationShows__People_Director_Technical,e.relationShows__People_Producer,e.relationShows__People_Thanks,e.relationShows__People_Writer,e.relationShows__Tags,e.socialFacebook,e.socialInstagram,e.socialTwitter,e.socialWebsite,e.relationShows__Events,e.relationShows__Events_Lineup,e.rollupShows__People_Cast,e.rollupShows__People_Cast_Slug,e.rollupShows__People_Cast_Past,e.rollupShows__People_Crew,e.rollupShows__People_Director,e.rollupShows__People_Director_Musical,e.rollupShows__People_Director_Technical,e.rollupShows__People_Music,e.rollupShows__People_Producer,e.rollupShows__People_Thanks,e.rollupShows__People_Writer,e.rollupShows__Tags],Q=[...E,e.addressCity,e.addressLatitude,e.addressLongitude,e.addressNeighborhood,e.addressState,e.addressStreet,e.addressZipCode,e.phoneNumber,e.socialFacebook,e.socialInstagram,e.socialTwitter,e.socialWebsite,e.relationVenues__Episodes,e.relationVenues__Events],So={BLOG:S(R,{init:!0}),EPISODES:S(z,{init:!0}),EVENTS:S(B,{init:!0}),PAGES:S(j,{init:!0}),PEOPLE:S(Y,{init:!0}),PODCASTS:S(Z,{init:!0}),SEO:S(K,{init:!0}),SHOWS:S(q,{init:!0}),VENUES:S(Q,{init:!0})},J={BLOG:R.map(o=>d(o)),EPISODES:z.map(o=>d(o)),EVENTS:B.map(o=>d(o)),PAGES:j.map(o=>d(o)),PEOPLE:Y.map(o=>d(o)),PODCASTS:Z.map(o=>d(o)),SEO:K.map(o=>d(o)),SHOWS:q.map(o=>d(o)),VENUES:Q.map(o=>d(o))},X=Pe(e,o=>d(o)),$=new Date().toISOString(),Eo={dateBefore:{property:e.datePublished.notion,date:{before:$}},dateOnOrAfter:{property:e.datePublished.notion,date:{on_or_after:$}},published:{property:e.isPublished.notion,checkbox:{equals:!1}},slug:{property:e.slug.notion,text:{equals:""}}},Se="LISTING",Ee="LISTING_BY_DATE",we="SLUG",fe="SLUG_BY_ROUTE",ke=[Se,Ee,we,fe],wo=Object.assign({},...ke.map(o=>({[o]:o})).flat(1));var Te=({config:o,data:n,pathVariables:r,pageId:a})=>{var T,b;let{NOTION:t}=o,p={};if(!(n==null?void 0:n.properties))return p;let{properties:_}=n,c;if(r){let{meta:m,routeType:P}=r;c=P===((T=t==null?void 0:t.PODCASTS)==null?void 0:T.routeType)&&m.length>1?(b=t==null?void 0:t.EPISODES)==null?void 0:b.routeType:P}let h=c?J[c.toUpperCase()]:X;return ge(h,m=>{let P,D=_[m.notion];p[m.key]=null,D&&(P=k[m.type](D,a),p[m.key]=P||null)}),p},L=Te;import{sortObject as be}from"@jeromefitz/utils";import De from"lodash/map.js";import ve from"lodash/omit.js";var xe=({config:o,results:n,routeType:r})=>{let a=[];return De(n,t=>{let p=ve(t,"properties");p.properties=be(L({config:o,data:t,pathVariables:r,pageId:t==null?void 0:t.id})),a.push(p)}),a},Ce=xe;import Ie from"lodash/filter.js";import A from"lodash/map.js";var Ge=(o,n)=>{switch(n){case"info":let r=[];return A(o.seoImage,t=>!!(t==null?void 0:t.url)&&(t==null?void 0:t.type)==="external"&&r.push(t==null?void 0:t.url)),r;case"content":return!!o&&Ie(o,{object:"block",type:"image"});case"items":let a=[];return A(o,t=>{var p;A((p=t==null?void 0:t.properties)==null?void 0:p.seoImage,_=>!!(_==null?void 0:_.url)&&(_==null?void 0:_.type)==="external"&&a.push(_==null?void 0:_.url))}),a;default:return[]}},g=Ge;import Le from"github-slugger";import O from"lodash/map.js";import{getPlaiceholder as M}from"plaiceholder";var Ae=async({data:o,pathVariables:n})=>{var b,m,P,D,V,N,U;let r=new Le,a={},t=((b=o.info)==null?void 0:b.object)==="page"?g((m=o.info)==null?void 0:m.properties,"info"):!!((P=o.info)==null?void 0:P.results)&&g((V=(D=o.info)==null?void 0:D.results[0])==null?void 0:V.properties,"info"),p=!!t&&t.map(async i=>{if(!i)return null;let w=!!i&&!!(i==null?void 0:i.url)?i==null?void 0:i.url:i;if(!w)return null;let{base64:y,img:u}=await M(w),f=r.slug(w);return{base64:y,id:f,img:u,url:w}}),_=p?await Promise.all(p):[],c=!n.isIndex&&g(o==null?void 0:o.content,"content"),h=!!c&&c.map(async i=>{var v,W;if(!i)return null;let{type:w}=i,y=i[w],u=!!i&&!!((v=y==null?void 0:y.external)==null?void 0:v.url)?(W=y==null?void 0:y.external)==null?void 0:W.url:null;if(!u)return null;let{base64:f,img:I}=await M(u),G=r.slug(u);return{base64:f,id:G,img:I,url:u}}),T=h?await Promise.all(h):[];if(o.items){let i=o.items.object==="page"?g((N=o.items)==null?void 0:N.data,"items"):g((U=o.items)==null?void 0:U.results,"items"),w=!!i&&i.map(async u=>{if(!u)return null;let f=!!u&&!!(u==null?void 0:u.url)?u==null?void 0:u.url:u;if(!f)return null;let{base64:I,img:G}=await M(f),v=r.slug(f);return{base64:I,id:v,img:G,url:f}}),y=await Promise.all(w);!!y&&y[0]&&O(y,u=>a[u.id]=u)}return!!_&&_[0]&&O(_,i=>a[i.id]=i),!!T&&T[0]&&O(T,i=>a[i.id]=i),a},Oe=Ae;import Me from"lodash/last.js";var He=o=>{let n=Me(o.split("_"))??"";return n.length>0&&n.replace("Past","Cast Emeritus").replace("Musical","Musical Director").replace("Technical","Technical Director"),n},Ve=He;var Ne=o=>(console.dir("@notion(_unsupported)"),console.dir(o),o),x=Ne;var Ue=o=>o.checkbox||!1,ee=Ue;var We=o=>{let{type:n}=o;return o[n]},C=We;var Fe=o=>o.email||null,oe=Fe;import{stringToUUID as Re}from"@jeromefitz/utils";import ze from"github-slugger";import Be from"lodash/size.js";var je="https://www.notion.so/image/{{FILENAME}}?table=block&id={{PAGE_ID}}&cache=v2&w1dth=600",Ye=(o,n)=>je.replace("{{FILENAME}}",encodeURIComponent(o)).replace("{{PAGE_ID}}",Re(n)),Ze=(o,n)=>{let r=new ze,a={};return Be(o.files)<=0||o.files.map(t=>{var p,_;if((t==null?void 0:t.type)==="file"){let c=(p=t==null?void 0:t.file)==null?void 0:p.url.split("?")[0],h=r.slug(c);a[h]={type:t==null?void 0:t.type,url:Ye(c,n)}}if((t==null?void 0:t.type)==="external"){let c=(_=t==null?void 0:t.external)==null?void 0:_.url.split("?")[0],h=r.slug(c);a[h]={type:t==null?void 0:t.type,url:c}}}),a},H=Ze;import Ke from"github-slugger";import qe from"lodash/map.js";var Qe=o=>{let n=new Ke,r={};return qe(o.multi_select,a=>{let t=a;t.slug=n.slug(t.name),r[t.id]=t}),r},te=Qe;var Je=o=>(o==null?void 0:o.number)||null,ne=Je;import Xe from"github-slugger";var $e=o=>{let n=new Xe;return o.people.map(r=>{let{avatar_url:a,id:t,name:p,person:_}=r,{email:c}=_;return{[n.slug(p)]:{avatar_url:a,email:c,id:t,name:p}}})[0]},re=$e;var eo=o=>(o==null?void 0:o.phone_number)||null,ie=eo;import se from"lodash/map.js";var oo=o=>o.type==="rollup"?o.rollup.type==="array"&&se(o.rollup.array,n=>k[n.type](n))[0]:se(o.relation,n=>n.id),le=oo;var to=o=>{var n;return(o==null?void 0:o.rich_text)?(n=o==null?void 0:o.rich_text[0])==null?void 0:n.plain_text:null},ae=to;import no from"lodash/map.js";import ro from"lodash/sortBy.js";var io=o=>{var n;return ro(no((n=o==null?void 0:o.rollup)==null?void 0:n.array,r=>k[r.type](r)))},_e=io;import so from"github-slugger";var lo=o=>{let n=new so,r=o.select;return r?(r.slug=n.slug(o.select.name),{[r.id]:r}):null},pe=lo;var ao=o=>{var n;return(o==null?void 0:o.title)?(n=o==null?void 0:o.title[0])==null?void 0:n.plain_text:null},ue=ao;var _o=o=>o.url||null,ce=_o;var po={checkbox:ee,created_by:x,created_time:C,date:C,email:oe,files:H,formula:x,image:H,last_edited_by:x,last_edited_time:C,multi_select:te,number:ne,people:re,phone_number:ie,relation:le,rich_text:ae,rollup:_e,select:pe,title:ue,url:ce},k=po;export{me as addTime,L as dataNormalized,Ce as dataNormalizedResults,g as filterImages,Oe as getImages,Ve as getTitle,k as getTypes};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var r=e=>o(e,"__esModule",{value:!0});var f=(e,t)=>{for(var i in t)o(e,i,{get:t[i],enumerable:!0})},m=(e,t,i,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of u(t))!c.call(e,n)&&(i||n!=="default")&&o(e,n,{get:()=>t[n],enumerable:!(a=s(t,n))||a.enumerable});return e};var d=(e=>(t,i)=>e&&e.get(t)||(i=m(r({}),t,1),e&&e.set(t,i),i))(typeof WeakMap!="undefined"?new WeakMap:0);var v={};f(v,{default:()=>L});var l=250;async function p(){await w()}function w(e=l){return new Promise(t=>setTimeout(t,e))}var L=p;module.exports=d(v);0&&(module.exports={});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=250;async function n(){await o()}function o(t=i){return new Promise(e=>setTimeout(e,t))}var u=n;export{u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Object.create;var a=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var p=o=>a(o,"__esModule",{value:!0});var u=(o,r)=>{for(var t in r)a(o,t,{get:r[t],enumerable:!0})},s=(o,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let m of P(r))!l.call(o,m)&&(t||m!=="default")&&a(o,m,{get:()=>r[m],enumerable:!(i=y(r,m))||i.enumerable});return o},f=(o,r)=>s(p(a(o!=null?n(c(o)):{},"default",!r&&o&&o.__esModule?{get:()=>o.default,enumerable:!0}:{value:o,enumerable:!0})),o),x=(o=>(r,t)=>o&&o.get(r)||(t=s(p({}),r,1),o&&o.set(r,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var b={};u(b,{default:()=>S});var d=f(require("lodash/fromPairs.js"),1),e=f(require("lodash/sortBy.js"),1),_=f(require("lodash/toPairs.js"),1),B=o=>(0,d.default)((0,e.default)((0,_.default)(o))),S=B;module.exports=x(b);0&&(module.exports={});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"lodash/fromPairs.js";import t from"lodash/sortBy.js";import m from"lodash/toPairs.js";var a=o=>r(t(m(o))),e=a;export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var u=t=>r(t,"__esModule",{value:!0});var y=(t,e)=>{for(var n in e)r(t,n,{get:e[n],enumerable:!0})},O=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of b(e))!j.call(t,c)&&(n||c!=="default")&&r(t,c,{get:()=>e[c],enumerable:!(o=s(e,c))||o.enumerable});return t};var i=(t=>(e,n)=>t&&t.get(e)||(n=O(u({}),e,1),t&&t.set(e,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var f={};y(f,{default:()=>p});var l=t=>Object.entries(t).length===0&&t.constructor===Object,p=l;module.exports=i(f);0&&(module.exports={});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=t=>Object.entries(t).length===0&&t.constructor===Object,r=e;export{r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var a=e=>i(e,"__esModule",{value:!0});var c=(e,d)=>{for(var n in d)i(e,n,{get:d[n],enumerable:!0})},l=(e,d,n,t)=>{if(d&&typeof d=="object"||typeof d=="function")for(let f of p(d))!s.call(e,f)&&(n||f!=="default")&&i(e,f,{get:()=>d[f],enumerable:!(t=u(d,f))||t.enumerable});return e};var o=(e=>(d,n)=>e&&e.get(d)||(n=l(a({}),d,1),e&&e.set(d,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var y={};c(y,{default:()=>x});var r=e=>e===void 0&&typeof e=="undefined",x=r;module.exports=o(y);0&&(module.exports={});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var d=e=>e===void 0&&typeof e=="undefined",i=d;export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Object.defineProperty;var e=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var f=s=>n(s,"__esModule",{value:!0});var l=(s,t)=>{for(var r in t)n(s,r,{get:t[r],enumerable:!0})},U=(s,t,r,b)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of g(t))!o.call(s,u)&&(r||u!=="default")&&n(s,u,{get:()=>t[u],enumerable:!(b=e(t,u))||b.enumerable});return s};var a=(s=>(t,r)=>s&&s.get(t)||(r=U(f({}),t,1),s&&s.set(t,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var h={};l(h,{default:()=>d});var c=s=>s.length!==32?s:s.substr(0,8)+"-"+s.substr(8,4)+"-"+s.substr(12,4)+"-"+s.substr(16,4)+"-"+s.substr(20),d=c;module.exports=a(h);0&&(module.exports={});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=s=>s.length!==32?s:s.substr(0,8)+"-"+s.substr(8,4)+"-"+s.substr(12,4)+"-"+s.substr(16,4)+"-"+s.substr(20),n=t;export{n as default};
|