PageSourceSearch

https://pittogramma.xyz/_next/static/chunks/5618.3ffabd6159943b6b.js

js pittogramma.xyz collected 2026-10-04 05:39:15 UTC 106,178 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5618],{9242:(e,t,i)=>{"use strict";i.d(t,{g:()=>r});let n=/(?:youtube\.com\/(?:watch\?v=|embed\/|v\/|shorts\/)|youtu\.be\/)([\w-]{11})/,a=/vimeo\.com\/(?:video\/)?(\d+)/;function r(e){if(!e)return null;let t=e.match(n);if(t){let e=t[1],i=new URLSearchParams({autoplay:"1",controls:"0",loop:"1",modestbranding:"1",mute:"1",playlist:e,playsinline:"1",rel:"0"});return{provider:"youtube",src:`https://www.youtube.com/embed/${e}?${i.toString()}`}}let i=e.match(a);if(i){let e=i[1],t=new URLSearchParams({autoplay:"1",background:"1",loop:"1",muted:"1"});return{provider:"vimeo",src:`https://player.vimeo.com/video/${e}?${t.toString()}`}}return null}},23833:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>tK});var n,a,r=i(95155),o=i(95536),l=i(56347),s=i(23106),d=i(25406),c=i(61303),p=i(34464),u=i(77908);let m={locations:{edition:(0,d.Q0)({resolve:e=>({locations:[{href:`/editions/${e?.slug}`,title:e?.title||"Untitled"},{href:"/editions",title:"Editions index"}]}),select:{slug:"slug.current",title:"title"}}),event:(0,d.Q0)({resolve:e=>({locations:[{href:`/events/${e?.slug}`,title:e?.title||"Untitled"},{href:"/events",title:"Events index"}]}),select:{slug:"slug.current",title:"title"}}),interview:(0,d.Q0)({resolve:e=>({locations:[{href:`/interviews/${e?.slug}`,title:e?.title||"Untitled"},{href:"/interviews",title:"Interviews index"}]}),select:{slug:"slug.current",title:"title"}}),journal:(0,d.Q0)({resolve:e=>({locations:[{href:`/journal/${e?.slug}`,title:e?.title||"Untitled"},{href:"/journal",title:"Journal index"}]}),select:{slug:"slug.current",title:"title"}}),person:(0,d.Q0)({resolve:e=>({locations:[{href:`/designers/${e?.slug}`,title:e?.title||"Untitled"},{href:"/designers",title:"Designers index"}]}),select:{slug:"slug.current",title:"name"}}),project:(0,d.Q0)({resolve:e=>({locations:[{href:`/projects/${e?.slug}`,title:e?.title||"Untitled"},{href:"/projects",title:"Projects index"}]}),select:{slug:"slug.current",title:"title"}})}};var g=i(44345),y=i(17691),h=i(71703),f=i(70210);let b={bronze:5,gold:1,silver:2};function v(){let e=new Date,t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${n}`}var I=i(96174),M=i(98232),B=i(12115);let x=/^drafts\./;async function w(e,t,i){let n=t.replace(x,""),a=`drafts.${n}`;if(await e.getDocument(a))return a;let r=await e.getDocument(n);if(r){let{_rev:t,_createdAt:i,_updatedAt:n,...o}=r;return await e.createIfNotExists({...o,_id:a}),a}return i&&await e.createIfNotExists({_id:a,_type:i}),a}let j=/^(\d{4})-(\d{2})-(\d{2})$/;function S(e,t){let i=j.exec(e);if(!i)return null;let[,n,a,r]=i,o=new Date(Date.UTC(Number(n),Number(a)-1,Number(r)));if(Number.isNaN(o.getTime()))return null;let l=new Date(o.getTime()+864e5*t),s=l.getUTCFullYear(),d=String(l.getUTCMonth()+1).padStart(2,"0"),c=String(l.getUTCDate()).padStart(2,"0");return`${s}-${d}-${c}`}let k=/^drafts\./;var P=i(9242);function T(e){let t;if(!e)return!0;try{t=new URL(e)}catch{return"Must be a valid HTTP(S) URL"}return!!["http:","https:"].includes(t.protocol)||"Must use HTTP or HTTPS"}function C(e){return e.custom(e=>T(e))}let A=(0,s.U85)({fields:[(0,s.MIB)({description:"Campaign label (e.g. 'Monotype Spring 2026 Banner')",group:"content",name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({description:"Landscape image (4:3) — used in the home grid.",group:"content",name:"cover",title:"Cover",type:"coverMedia",validation:e=>e.required()}),(0,s.MIB)({description:"Optional portrait image (3:4) for the feed. Falls back to the landscape cover when empty.",group:"content",name:"coverPortrait",options:{hotspot:!0},title:"Cover Portrait",type:"image"}),(0,s.MIB)({group:"content",name:"description",of:[{lists:[],marks:{annotations:[{fields:[{name:"href",title:"URL",type:"url",validation:C}],name:"link",title:"Link",type:"object"}],decorators:[{title:"Bold",value:"strong"},{title:"Italic",value:"em"},{title:"Underline",value:"underline"}]},styles:[{title:"Normal",value:"normal"}],type:"block"}],title:"Description",type:"array"}),(0,s.MIB)({group:"content",name:"externalUrl",title:"External URL",type:"url",validation:e=>[e.required(),C(e)]}),(0,s.MIB)({group:"management",name:"tier",options:{layout:"dropdown",list:[{title:"Bronze",value:"bronze"},{title:"Silver",value:"silver"},{title:"Gold",value:"gold"}]},title:"Tier",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"management",name:"dateStart",title:"Start Date",type:"date",validation:e=>e.required()}),(0,s.MIB)({components:{input:function(e){let{onChange:t,value:i,elementProps:n,schemaType:a}=e,o=(0,s.FlV)(["dateStart"]),l=(0,s.FlV)(["_id"]),d=(0,s.FlV)(["_type"]),c=(0,s.tH7)({apiVersion:g.XV}),p=a.options?.list,u=(0,B.useCallback)(e=>{let i=e.currentTarget.value,n=""===i?NaN:Number(i);if(!Number.isFinite(n)||n<=0)return void t((0,s.wCX)());if(t((0,s.hZp)(n)),!(o&&l))return;let a=S(o,n);a&&w(c,l,d).then(e=>c.patch(e).set({dateEnd:a}
1).commit()).catch(()=>{})},[c,o,l,d,t]);return(0,r.jsxs)(I.t,{gap:2,children:[(0,r.jsxs)("select",{...n,onChange:u,style:{background:"var(--card-bg-color)",border:"1px solid var(--card-border-color)",borderRadius:"0.25rem",color:"var(--card-fg-color)",fontSize:"0.9375rem",padding:"0.5rem"},value:i??"",children:[(0,r.jsx)("option",{disabled:!0,value:"",children:"Select duration"}),p?.map(e=>(0,r.jsx)("option",{value:e.value,children:e.title},e.value))]}),o?(0,r.jsx)(M.s,{padding:2,radius:2,tone:"transparent",children:(0,r.jsxs)(I.n,{muted:!0,size:1,children:["End date will be auto-set to ",S(o,i??0)??"—",". You can override it manually below."]})}):(0,r.jsx)(M.s,{padding:2,radius:2,tone:"caution",children:(0,r.jsx)(I.n,{size:1,children:"Set the start date first to auto-fill the end date."})})]})}},description:"Number of days from the start date. The end date is auto-filled and can be manually overridden afterwards.",group:"management",initialValue:30,name:"duration",options:{list:[{title:"30 days",value:30},{title:"60 days",value:60},{title:"90 days",value:90}]},title:"Duration (days)",type:"number",validation:e=>e.required().positive()}),(0,s.MIB)({description:"Auto-computed from start date + duration. Override only for irregular extensions.",group:"management",name:"dateEnd",title:"End Date",type:"date",validation:e=>[e.required().custom((e,t)=>{let i=t.document?.dateStart;return!i||!e||!(e<i)||"End date must be after start date"}),e.custom(e=>!e||!(e<=v())||"Already expired — this ADV will not display anywhere.").warning()]}),(0,s.MIB)({group:"management",name:"sponsor",title:"Sponsor",to:[{type:"contributor"}],type:"reference",validation:e=>e.required()})],groups:[{default:!0,icon:f.DocumentTextIcon,name:"content",title:"Content"},{icon:h.CogIcon,name:"management",title:"Management"}],icon:y.BoltIcon,name:"adv",preview:{prepare:({title:e,tier:t,media:i,dateStart:n,dateEnd:a})=>({description:`${n??"?"} → ${a??"?"}`,media:i,subtitle:t?.toUpperCase()??"—",title:e}),select:{dateEnd:"dateEnd",dateStart:"dateStart",media:"cover",tier:"tier",title:"title"}},title:"ADV",type:"document",validation:e=>e.custom(async(e,t)=>{if(!(e._id&&e.tier&&e.dateStart&&e.dateEnd&&e.tier in b))return!0;let{tier:i,dateStart:n,dateEnd:a}=e,r=e._id.replace(k,""),o=`drafts.${r}`,l=t.getClient({apiVersion:g.XV}),s=await l.fetch(`*[
2          _type == "adv"
3          && _id != $publishedId
4          && _id != $draftId
5          && tier == $tier
6          && !(dateEnd < $dateStart || dateStart > $dateEnd)
7        ] | order(dateStart asc) {
8          _id, title, dateEnd
9        }`,{dateEnd:a,dateStart:n,draftId:o,publishedId:r,tier:i});if(0===s.length)return!0;let d=b[i],c=s.length+1;if(c>d)return`This is the ${c}th active ${i} in the booked window; cap is ${d}. Surplus campaigns won't display until others end.`;let p=s[0],u=p.title??"(untitled)";return`Overlaps with "${u}" (ends ${p.dateEnd}) at the same tier. Earlier dateStart wins; this campaign won't display in that slot until the other ends.`}).warning()});var O=i(21441),L=i(98538),U=i(99920),E=i(79624),D=i(58067);function q(){let e=(0,s.For)(),[t,i]=(0,B.useState)(void 0);return(0,B.useEffect)(()=>{let t=e.auth.token;if(!t)return void i(null);let n=t.subscribe(e=>{i(e)});return()=>{n.unsubscribe()}},[e.auth.token]),t}function V(e){if(!e)throw Error("Sanity authentication is not ready. Please refresh and sign in again.");return{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}}let _=(e,t)=>(0,s.MIB)({name:"tags",title:"Tags",type:"array",...e?{group:e}:{},...t?{hidden:t}:{},of:[(0,s.dOf)({to:[{type:"tag"}],type:"reference"})],validation:e=>e.unique().error("You cannot add the same tag twice")});var R=i(10849),F=i(37670),N=i(58672);let z=[{icon:R.DatabaseIcon,name:"metadata",title:"Metadata"},{default:!0,icon:f.DocumentTextIcon,name:"content",title:"Content"},{icon:F.InfoOutlineIcon,name:"og",title:"Open Graph Data"},{icon:N.SearchIcon,name:"seo",title:"SEO"}],G=(0,s.U85)({fields:[(0,s.MIB)({components:{input:function(e){let{onChange:t,value:i="",elementProps:n}=e,[a,o]=(0,B.useState)(!1),[l,d]=(0,B.useState)(null),[c,p]=(0,B.useState)(null),[u,m]=(0,B.useState)(!1),y=(0,s.FlV)(["_id"]),h=(0,s.tH7)({apiVersion:g.XV}),f=q(),b=(0,D.dj)(),v=(0,B.useCallback)(e=>{let i=e.currentTarget.value;t(i?(0,s.hZp)(i):(0,s.wCX)()),p(null),d(null)},[t]),x=(0,B.useCallback)(async(e,t)=>{let n=await fetch("/api/books/fetch-image",{body:JSON.stringify({url:e}),headers:V(f),method:"POST",signal:AbortSignal.timeout(15e3)});if(!n.ok)return null;let a=await n.blob();return{_type:"imageWithMetadata",alt:t||"Book cover",image:{_type:"image",asset:{_ref:(await h.assets.upload("image",a,{filename:`cover-${i||"book"}.jpg`}))._id,_type:"reference"}}}},[h,i,f]),w=(0,B.useCallback)(async e=>{if(!y)return void d("Cannot patch: document ID not found. Please save the document first.");m(!0);try{let t,i=(t={},e.title&&(t.name=e.title),e.year&&(t.year=e.year),e.description&&(t.description=e.description),e.pageCount&&(t.pageCount=e.page
9Count),e.categories&&e.categories.length>0&&(t.categories=e.categories,t.fetchedCategories=e.categories.join(", ")),e.googleBooksId&&(t.googleBooksId=e.googleBooksId),e.authors&&(t.fetchedAuthors=e.authors),e.publisher&&(t.fetchedPublisher=e.publisher),e.language&&(t.fetchedLanguages=e.language),t);if(e.thumbnailUrl){let t=await x(e.thumbnailUrl,e.title);t&&(i.cover=t)}let n=y.startsWith("drafts.")?y:`drafts.${y}`;await h.patch(n).set(i).commit(),b.push({description:"Book data has been auto-filled. Please link Authors and Publisher manually.",status:"success",title:"Fields populated"})}catch(e){d(e instanceof Error?e.message:"Failed to update document fields")}finally{m(!1)}},[y,h,b,x]),j=(0,B.useCallback)(async()=>{if(!i)return void d("Please enter an ISBN first");o(!0),d(null),p(null);try{let e=await fetch("/api/books/fetch-isbn",{body:JSON.stringify({isbn:i}),headers:V(f),method:"POST"}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to fetch book data");p(t),await w(t)}catch(e){d(e instanceof Error?e.message:"An error occurred")}finally{o(!1)}},[i,w,f]);return(0,r.jsxs)(I.t,{gap:3,children:[(0,r.jsxs)(L.t,{align:"center",gap:2,children:[(0,r.jsx)(U.t,{...n,onChange:v,placeholder:"Enter ISBN (10 or 13 digits)",style:{flex:1},value:i}),(0,r.jsx)(E.t,{disabled:a||u||!i,mode:"ghost",onClick:j,text:a?"Fetching...":u?"Populating...":"Fetch Data",tone:"primary"})]}),l&&(0,r.jsx)(M.s,{padding:3,radius:2,tone:"critical",children:(0,r.jsx)(I.n,{size:1,children:l})}),(a||u)&&(0,r.jsx)(M.s,{padding:3,radius:2,tone:"primary",children:(0,r.jsx)(I.n,{size:1,children:a?"Fetching book data...":"Updating document fields..."})}),c&&!u&&(0,r.jsx)(M.s,{border:!0,padding:3,radius:2,tone:"positive",children:(0,r.jsxs)(I.t,{gap:3,children:[(0,r.jsx)(I.n,{size:1,weight:"semibold",children:"Fields auto-filled from Google Books:"}),(0,r.jsxs)(I.t,{gap:2,children:[c.title&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Title:"})," ",c.title]}),c.authors&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Authors:"})," ",c.authors]}),c.publisher&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Publisher:"})," ",c.publisher]}),c.year&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Year:"})," ",c.year]}),c.pageCount&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Pages:"})," ",c.pageCount]}),c.language&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Language:"})," ",c.language]}),c.categories&&c.categories.length>0&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Categories:"})," ",c.categories.join(", ")]}),c.description&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Description:"})," ",c.description.slice(0,200),"..."]})]}),(0,r.jsx)(M.s,{padding:2,radius:2,tone:"caution",children:(0,r.jsx)(I.n,{size:1,children:"Please scroll down and link Authors and Publisher references manually."})})]})})]})}},description:"Enter ISBN and click 'Fetch Data' to auto-fill book information",group:"content",name:"isbn",title:"ISBN",type:"string"}),(0,s.MIB)({group:"content",name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"cover",title:"Cover",type:"coverMedia"}),(0,s.MIB)({description:"Publication year",group:"content",name:"year",title:"Year",type:"number",validation:e=>e.min(1e3).max(9999).integer().warning("Please enter a valid 4-digit year")}),(0,s.MIB)({description:"Book description/summary",group:"content",name:"description",title:"Description",type:"text"}),(0,s.MIB)({description:"Number of pages",group:"content",name:"pageCount",title:"Page Count",type:"number",validation:e=>e.positive().integer()}),(0,s.MIB)({group:"content",name:"languages",of:[(0,s.dOf)({name:"language",title:"Language",to:[{type:"language"}],type:"reference"})],title:"Languages",type:"array"}),(0,s.MIB)({description:"Language code from Google Books - use this to find/create the correct Language reference above",group:"content",name:"fetchedLanguages",readOnly:!0,title:"Fetched Language (from Google Books)",type:"string"}),(0,s.MIB)({group:"content",name:"authors",of:[(0,s.dOf)({name:"author",options:{filter:'"author" in roles'},title:"Author",to:[{type:"person"}],type:"reference"})],title:"Authors",type:"array"}),(0,s.MIB)({description:"Suggestion from Google Books - use this to find/create the correct Author references above",group:"content",name:"fetchedAuthors",readOnly:!0,title:"Fetched Authors (from Google Books)",type:"string"}),(0,s.MIB)({group:"content",name:"publisher",title:"Publisher",to:[{type:"publisher"}],type:"reference",validation:e=>e.required()}),(0,s.MIB)({description:"Suggestion from Google Books - use this to find/create the correct Publisher reference above",group:"content",name:"fetchedPublisher",readOnly:!0,title:"Fetched Publisher (from Google Books)",type:"string"}),_("content"),(0,s.MIB)({description:"Category suggestions from Google Books - use these to create/select appropriate tags above",group:"content",name:"fetchedCategories",readOnly:!0,title:"Fetched Categories (from Google Books)",type:"string"}),(0,s.MIB)({group:"content",name:"affiliateLink",title:"Affiliate Link",type:"url",validation:C}),(0,s.MIB)({description:"Book categories/subjects from Google Books",group:"content",name:"categories",of:[(0,s.dOf)({type:"string"})],title:"Categories",type:"array"}),(0,s.MIB)({description:"Reference ID from Google Books API",group:"content",hidden:!0,name:"googleBooksId",readOnly:!0,title:"Google Books ID",type:"string"})],groups:z,icon:O.BookIcon,name:"bibliography",preview:{select:{media:"cover.image",subt
9itle:"year",title:"name"}},title:"Bibliography",type:"document"});var $=i(4067);let W=[(0,s.MIB)({name:"name",title:"Name",type:"string",validation:e=>e.required()}),_(),(0,s.MIB)({name:"place",title:"Place",to:[{type:"place"}],type:"reference",validation:e=>e.required()}),(0,s.MIB)({name:"socialLinks",title:"Social Links",type:"socialLinks"})],X=(0,s.U85)({fields:[...W,(0,s.MIB)({name:"address",title:"Address",type:"string"})],icon:$.HomeIcon,name:"bookshop",title:"Bookshop",type:"document"});var H=i(85728);let Y=(0,s.U85)({fields:[(0,s.MIB)({name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"slug",options:{source:"name"},title:"Slug",type:"slug",validation:e=>e.required()})],icon:H.TagIcon,name:"category",preview:{select:{subtitle:"slug.current",title:"name"}},title:"Category",type:"document"});var J=i(33480);let Q={partnership:"Partnership",projectOnSupport:"Project on Support"},Z=(0,s.U85)({fields:[(0,s.MIB)({group:"content",name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"type",options:{layout:"dropdown",list:[{title:"Project on Support",value:"projectOnSupport"},{title:"Partnership",value:"partnership"}]},title:"Type",type:"string",validation:e=>e.required()}),(0,s.MIB)({description:"Portrait image (3:4 ratio recommended).",group:"content",name:"cover",title:"Cover",type:"coverMedia",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"description",of:[{lists:[],marks:{annotations:[{fields:[{name:"href",title:"URL",type:"url",validation:C}],name:"link",title:"Link",type:"object"}],decorators:[{title:"Bold",value:"strong"},{title:"Italic",value:"em"},{title:"Underline",value:"underline"}]},styles:[{title:"Normal",value:"normal"}],type:"block"}],title:"Description",type:"array"}),(0,s.MIB)({group:"content",name:"externalUrl",title:"External URL",type:"url",validation:e=>[e.required(),C(e)]}),(0,s.MIB)({description:'Optional. When set, the card byline reads "In partnership with [Name]"; otherwise "Community".',group:"management",name:"partner",title:"Partner",to:[{type:"contributor"}],type:"reference"}),(0,s.MIB)({group:"management",name:"dateStart",title:"Start Date",type:"date",validation:e=>e.required()}),(0,s.MIB)({description:"Optional. Leave empty for evergreen community items (visible until manually unpublished).",group:"management",name:"dateEnd",title:"End Date",type:"date",validation:e=>[e.custom((e,t)=>{let i=t.document?.dateStart;return!e||!i||!(e<i)||"End date must be after start date"}),e.custom(e=>!e||!(e<v())||"Already expired — this community item will not display anywhere.").warning()]})],groups:[{default:!0,icon:f.DocumentTextIcon,name:"content",title:"Content"},{icon:h.CogIcon,name:"management",title:"Management"}],icon:J.UsersIcon,name:"community",preview:{prepare:({title:e,type:t,media:i,dateStart:n,dateEnd:a})=>({description:`${n??"?"} → ${a??"ongoing"}`,media:i,subtitle:t?Q[t]??t:"—",title:e}),select:{dateEnd:"dateEnd",dateStart:"dateStart",media:"cover",title:"title",type:"type"}},title:"Community",type:"document"}),K=(0,s.U85)({fields:[(0,s.MIB)({name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"logo",title:"Logo",type:"logo",validation:e=>e.required()}),(0,s.MIB)({name:"description",title:"Description",type:"text"})],icon:J.UsersIcon,name:"contributor",title:"Contributor",type:"document"});var ee=i(28951);let et=(0,s.U85)({fields:[(0,s.MIB)({description:"Internal name for this CTA",name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({initialValue:"simple",name:"variant",options:{layout:"radio",list:[{title:"Simple",value:"simple"},{title:"With Image",value:"withImage"}]},title:"Type",type:"string"}),(0,s.MIB)({name:"headline",title:"Headline",type:"text"}),(0,s.MIB)({description:"Image used in light mode.",hidden:({document:e})=>e?.variant!=="withImage",name:"imgLight",title:"Image Light",type:"imageWithMetadata",validation:e=>e.custom((e,t)=>{let i=t.document;return i?.variant!=="withImage"||!!e||"A light-mode image is required for CTAs with images"})}
9),(0,s.MIB)({description:"Optional image used in dark mode.",hidden:({document:e})=>e?.variant!=="withImage",name:"imgDark",title:"Image Dark",type:"imageWithMetadata"}),(0,s.MIB)({name:"buttonText",title:"Button Text",type:"string",validation:e=>e.required()}),(0,s.MIB)({initialValue:"internal",name:"linkType",options:{layout:"radio",list:[{title:"Internal",value:"internal"},{title:"External",value:"external"}]},title:"Link Type",type:"string"}),(0,s.MIB)({hidden:({document:e})=>e?.linkType!=="internal",name:"internalLink",title:"Internal Page",to:[{type:"project"},{type:"interview"},{type:"journal"},{type:"person"},{type:"event"},{type:"edition"},{type:"homePage"},{type:"projectsPage"},{type:"interviewsPage"},{type:"designersPage"},{type:"bibliographyPage"},{type:"bookshopsPage"},{type:"glossaryPage"},{type:"institutesPage"},{type:"studiosAgenciesPage"},{type:"typeFoundriesPage"},{type:"websitesPage"}],type:"reference",validation:e=>e.custom((e,t)=>{let i=t.document;return i?.linkType!=="internal"||!!e||"Internal page is required for internal CTAs"})}),(0,s.MIB)({hidden:({document:e})=>e?.linkType!=="external",name:"externalUrl",title:"External URL",type:"url",validation:(n=e=>{let t=e.document;return t?.linkType==="external"},e=>e.custom((e,t)=>n(t)&&!e?"External URL is required for external CTAs":T(e)))})],icon:ee.BlockElementIcon,name:"cta",preview:{prepare:({title:e,subtitle:t,media:i})=>({media:i,subtitle:"withImage"===t?"With Image":"Simple",title:e}),select:{media:"imgLight.image",subtitle:"variant",title:"title"}},title:"CTA",type:"document"});var ei=i(71270);let en=(0,s.U85)({fields:[(0,s.MIB)({group:"metadata",name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",name:"slug",options:{source:"title"},title:"Slug",type:"slug",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",name:"publishingDate",title:"Publishing Date",type:"publishingDate",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"cover",title:"Cover",type:"coverMedia",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"authors",of:[(0,s.dOf)({options:{filter:'"author" in roles'},to:[{type:"person"}],type:"reference"})],title:"Authors",type:"array",validation:e=>e.required().min(1).unique().error("You cannot add the same author twice")}),(0,s.MIB)({group:"content",name:"designers",of:[(0,s.dOf)({options:{filter:'"designer" in roles || "professional" in roles'},to:[{type:"person"}],type:"reference"})],title:"Designers",type:"array",validation:e=>e.required().min(1).unique().error("You cannot add the same designer twice")}),(0,s.MIB)({group:"content",name:"supporters",of:[(0,s.dOf)({to:[{type:"contributor"}],type:"reference"})],title:"Supporters",type:"array",validation:e=>e.unique().error("You cannot add the same supporter twice")}),(0,s.MIB)({group:"content",name:"description",title:"Description",type:"text",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"buyUrl",title:"Buy URL",type:"url",validation:C}),(0,s.MIB)({group:"content",name:"gallery",of:[(0,s.dOf)({type:"singleMediaBlock"}),(0,s.dOf)({type:"sideBySideMediaBlock"})],title:"Gallery",type:"array"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:z,icon:ei.DocumentsIcon,name:"edition",preview:{prepare:({title:e,media:t,date:i})=>({media:t,subtitle:i,title:e}),select:{date:"publishingDate.date",media:"cover.image",title:"title"}},title:"Edition",type:"document"});var ea=i(8982);let er=(0,s.U85)({fields:[(0,s.MIB)({group:"content",name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"slug",options:{source:"title"},title:"Slug",type:"slug",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"publishingDate",title:"Publishing Date",type:"publishingDate",validation:e=>e.required()}),(0,s.MIB)({description:"Choose where the event card sends visitors.",group:"content",initialValue:"internal",name:"cardDestination",options:{layout:"radio",list:[{title:"Pittogramma event page",value:"internal"},{title:"External page",value:"external"}]},title:"Card Destination",type:"string"}),(0,s.MIB)({description:"The event's branded Pittogramma URL will permanently redirect here.",group:"content",hidden:({document:e})=>e?.cardDestination!=="external",name:"externalUrl",title:"External URL",type:"url",validation:(a=({document:e})=>e?.cardDestination==="external",e=>e.custom((e,t)=>
9{if(a(t)&&!e)return"External URL is required when the card destination is an external page";if(!e)return!0;try{return"https:"===new URL(e).protocol||"Must use HTTPS"}catch{return"Must be a valid HTTPS URL"}}))}),(0,s.MIB)({group:"content",initialValue:"event",name:"type",options:{layout:"dropdown",list:[{title:"Talk",value:"talk"},{title:"Workshop",value:"workshop"},{title:"5+1",value:"5+1"},{title:"Event",value:"event"}]},title:"Type",type:"string",validation:e=>e.required()}),(0,s.MIB)({description:"Portrait image (3:4 ratio recommended).",group:"content",name:"cover",title:"Cover",type:"coverMedia",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"dateStart",title:"Date Start",type:"date",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"dateEnd",title:"Date End",type:"date"}),(0,s.MIB)({group:"content",hidden:({document:e})=>e?.cardDestination==="external",initialValue:"offline",name:"attendanceMode",options:{layout:"radio",list:[{title:"In person",value:"offline"},{title:"Online",value:"online"}]},title:"Attendance",type:"string",validation:e=>e.custom((e,{document:t})=>t?.cardDestination==="external"||!!e||"Attendance is required")}),(0,s.MIB)({components:{input:function(e){return(0,r.jsxs)(L.t,{align:"center",children:[(0,r.jsx)(M.y,{marginRight:3,paddingLeft:2,children:(0,r.jsx)(I.n,{muted:!0,size:1,children:"at"})}),(0,r.jsx)(M.y,{flex:1,children:e.renderDefault(e)})]})}},group:"content",hidden:({document:e,parent:t})=>e?.cardDestination!=="external"&&t?.attendanceMode==="online",name:"locationName",title:"Location Name",type:"string"}),(0,s.MIB)({group:"content",hidden:({document:e,parent:t})=>e?.cardDestination==="external"||t?.attendanceMode==="online",name:"locationAddress",title:"Location Address",type:"string"}),(0,s.MIB)({group:"content",hidden:({document:e})=>e?.cardDestination==="external",name:"description",title:"Description",type:"text"}),(0,s.MIB)({group:"content",hidden:({document:e})=>e?.cardDestination==="external",name:"sponsors",of:[{to:[{type:"contributor"}],type:"reference"}],title:"Sponsors",type:"array"}),(0,s.MIB)({group:"content",hidden:({document:e})=>e?.cardDestination==="external",name:"partners",of:[{to:[{type:"contributor"}],type:"reference"}],title:"Partners",type:"array"}),(0,s.MIB)({group:"content",hidden:({document:e})=>e?.cardDestination==="external",name:"info",of:[{type:"infoItem"}],title:"Info",type:"array"}),_("content",({document:e})=>e?.cardDestination==="external"),(0,s.MIB)({group:"seo",hidden:({document:e})=>e?.cardDestination==="external",name:"seo",title:"SEO",type:"seoModule"})],groups:z,icon:ea.CalendarIcon,name:"event",orderings:[{by:[{direction:"desc",field:"publishingDate.date"}],name:"publishingDateDesc",title:"Publishing Date, Newest"},{by:[{direction:"asc",field:"publishingDate.date"}],name:"publishingDateAsc",title:"Publishing Date, Oldest"},{by:[{direction:"desc",field:"dateStart"}],name:"dateStartDesc",title:"Event Date, Newest"},{by:[{direction:"asc",field:"dateStart"}],name:"dateStartAsc",title:"Event Date, Oldest"}],preview:{prepare:({title:e,media:t,dateStart:i})=>({media:t,subtitle:i,title:e}),select:{dateStart:"dateStart",media:"cover.image",title:"title"}},title:"Event",type:"document"});var eo=i(13703);let el=(0,s.U85)({fields:[(0,s.MIB)({name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"description",title:"Description",type:"text",validation:e=>e.required()}),(0,s.MIB)({name:"image",title:"Image",type:"imageWithMetadata"})],icon:eo.BlockquoteIcon,name:"glossary",title:"Glossary",type:"document"}),es=(0,s.U85)({fields:[(0,s.MIB)({name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"yearFoundation",title:"Since",type:"number",validation:e=>e.required().min(1e3).custom(e=>!e||!(e<1e3)&&!(e>2500)||"Since must be exactly 4 digits")}),(0,s.MIB)({name:"languages",of:[(0,s.dOf)({name:"language",title:"Language",to:[{type:"language"}],type:"reference"})],title:"Languages",type:"array"}),(0,s.MIB)({name:"place",title:"Place",to:[{type:"place"}],type:"reference",validation:e=>e.required()}),(0,s.MIB)({name:"address",title:"Address",type:"string"}),(0,s.MIB)({name:"socialLinks",title:"Social Links",type:"socialLinks"})],icon:$.HomeIcon,name:"institute",preview:{select:{subtitle:"place.name",title:"name"}},title:"Institute",type:"document"});var ed=i(70574);function ec(e){return"object"==typeof e&&null!==e}let ep=(0,s.U85)({fields:[(0,s.MIB)({group:"metadata",name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",name:"slug",options:{source:"title"},title:"Slug",type:"slug",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",name:"publishingDate",title:"Publishing Date",type:"publishingDate"}),(0,s.MIB)({group:"content",name:"cover",title:"Cover",type:"coverMedia",validation:e=>e.required()}),(0,s.MIB)({group:"content",initialValue:"designers",name:"interviewToType",options:{layout:"radio",list:[{title:"Designers",value:"designers"},{title:"Studio",value:"studio"},{title:"Type Foundry",value:"typeFoundry"}]},title:"Interview To",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"designersAndProfessionals",of:[(0,s.dOf)({options:{filter:'"designer" in roles || "professional" in roles'},to:[{type:"person"}],type:"reference"})],title:"Designers and Professionals",type:"array",validation:e=>e.unique().error("You cannot add the same person twice")}),(0,s.MIB)({group:"content",hidden:({parent:e})=>e?.interviewToType!=="studio",name:"studio",title:"Studio",to:[{type:"studio"}],type:"reference",validation:e=>e.custom((e,t)=>
9{let i=t.parent;return i?.interviewToType!=="studio"||!!e||"Studio is required"})}),(0,s.MIB)({group:"content",hidden:({parent:e})=>e?.interviewToType!=="typeFoundry",name:"typeFoundry",title:"Type Foundry",to:[{type:"typeFoundry"}],type:"reference",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.interviewToType!=="typeFoundry"||!!e||"Type Foundry is required"})}),(0,s.MIB)({group:"content",name:"place",title:"Place",to:[{type:"place"}],type:"reference"}),(0,s.MIB)({components:{input:function(e){let{elementProps:t,onChange:i,readOnly:n,value:a}=e,[o,l]=(0,B.useState)(!1),d=(0,s.FlV)(["introText"]),c=function({introText:e,interview:t}){let i=["string"==typeof e?e:""];if(Array.isArray(t))for(let e of t)ec(e)&&i.push(..."block"===e._type&&Array.isArray(e.children)?e.children.flatMap(e=>ec(e)&&"string"==typeof e.text?[e.text]:[]):[],...function(e){return["media","left","center","right","topLeft","topRight","bottomLeft","bottomRight"].flatMap(t=>{let i=e[t];return ec(i)&&"string"==typeof i.caption?[i.caption]:[]})}(e));let n=i.reduce((e,t)=>e+(t.trim().match(/\S+/gu)?.length??0),0);return n>0?Math.ceil(n/200):void 0}({interview:(0,s.FlV)(["interview"]),introText:d}),p="number"==typeof a?a:void 0,u=void 0!==p,m=u||o,g=(0,B.useCallback)(e=>{let t=e.currentTarget.value;if(""===t)return void i((0,s.wCX)());let n=Number(t);Number.isInteger(n)&&!(n<1)&&i((0,s.hZp)(n))},[i]),y=(0,B.useCallback)(()=>{i((0,s.wCX)()),l(!1)},[i]),h=(0,B.useCallback)(()=>{l(!0)},[]),f=(0,B.useCallback)(()=>{l(!1)},[]),b="Add readable interview content";u?b=`${p} min`:c&&(b=`${c} min`);let v=(0,r.jsx)(E.t,{disabled:n,fontSize:0,mode:"ghost",onClick:h,padding:2,children:"Override estimate"});return u?v=(0,r.jsx)(E.t,{disabled:n,fontSize:0,mode:"ghost",onClick:y,padding:2,tone:"critical",children:"Reset to calculated time"}):m&&(v=(0,r.jsx)(E.t,{fontSize:0,mode:"ghost",onClick:f,padding:2,children:"Cancel override"})),(0,r.jsxs)(I.t,{gap:3,children:[(0,r.jsx)(M.s,{padding:2,radius:2,tone:"transparent",children:(0,r.jsxs)(L.t,{align:"center",justify:"space-between",children:[(0,r.jsx)(I.n,{size:1,children:b}),v]})}),m?(0,r.jsxs)(I.t,{gap:2,children:[(0,r.jsx)(I.n,{size:1,weight:"medium",children:"Override estimate (minutes)"}),(0,r.jsx)(U.t,{...t,inputMode:"numeric",min:1,onChange:g,type:"number",value:p??""})]}):null]})}},description:"Calculated live from the intro, interview text, quotes, and media captions at 200 words per minute.",group:"content",name:"readingTime",title:"Reading Time",type:"number",validation:e=>e.min(1).integer()}),_("content"),(0,s.MIB)({group:"content",name:"introText",title:"Intro Text",type:"text",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"interview",of:[(0,s.dOf)({lists:[{title:"Bullet",value:"bullet"}],marks:{annotations:[],decorators:[{title:"Strong",value:"strong"},{title:"Emphasis",value:"em"}]},styles:[{component:e=>(0,B.createElement)("span",{style:{borderTop:"1px solid #1a1a1a",color:"#1a1a1a",display:"block",fontWeight:600,paddingLeft:"0em",paddingTop:"0.75em"}},e.children),title:"Question",value:"normal"},{component:e=>(0,B.createElement)("span",{style:{color:"#666",display:"block",fontWeight:400,paddingBottom:"2.5em"}},e.children),title:"Answer",value:"answer"},{title:"Quote",value:"blockquote"}],type:"block"}),(0,s.dOf)({type:"singleMediaBlock"}),(0,s.dOf)({type:"sideBySideMediaBlock"}),(0,s.dOf)({type:"threeSideBySideMediaBlock"}),(0,s.dOf)({type:"gridFourMediaBlock"})],title:"Interview",type:"array"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:z,icon:ed.CommentIcon,name:"interview",orderings:[{by:[{direction:"desc",field:"publishingDate.date"}],name:"publishingDateDesc",title:"Publishing Date, Newest"},{by:[{direction:"asc",field:"publishingDate.date"}],name:"publishingDateAsc",title:"Publishing Date, Oldest"}],preview:{prepare:({title:e,media:t,date:i})=>({media:t,subtitle:i,title:e}),select:{date:"publishingDate.date",media:"cover.image",title:"title"}},title:"Interview",type:"document"});var eu=i(49544);let em=[{title:"Articles",value:"articles"},{title:"Diary",value:"diary"},{title:"Baseline",value:"baseline"}],eg=(0,s.U85)({fields:[(0,s.MIB)({group:"metadata",name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",name:"slug",options:{source:"title"},title:"Slug",type:"slug",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",name:"publishingDate",title:"Publishing Date",type:"publishingDate",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",initialValue:"articles",name:"label",options:{layout:"radio",list:em},title:"Label",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"cover",title:"Cover",type:"coverMedia",validation:e=>e.required()}),(0,s.MIB)({description:"Optional cover used when this article appears as a featured hero. Falls back to the regular cover if empty.",group:"content",name:"featuredCover",title:"Featured Cover",type:"coverMedia"}),_("content"),(0,s.MIB)({group:"content",name:"authors",of:[(0,s.dOf)({name:"author",options:{filter:'"author" in roles'},title:"Author",to:[{type:"person"}],type:"reference"})],title:"Authors",type:"array"}),(0,s.MIB)({description:"A short summary of the article",group:"content",name:"excerpt",title:"Excerpt",type:"text"}),(0,s.MIB)({group:"content",name:"content",of:[(0,s.dOf)({marks:{annotations:[{fields:[{name:"href",title:"URL",type:"url",validation:C}],name:"link",title:"Link",type:"object"},{fields:[{name:"note",rows:4,title:"Note",type:"text",validation:e=>e.required()},{name:"url",title:"URL",type:"url",validation:C}],name:"footnote",title:"Footnote",type:"object"}],decorators:[{title:"Strong",value:"strong"},{title:"Emphasis",value:"em"},{title:"Code",value:"code"},{title:"Underline",value:"underline"}
9,{title:"Strike",value:"strike-through"}]},type:"block"}),(0,s.dOf)({type:"singleMediaBlock"}),(0,s.dOf)({type:"sideBySideMediaBlock"}),(0,s.dOf)({type:"threeSideBySideMediaBlock"}),(0,s.dOf)({type:"gridFourMediaBlock"}),(0,s.dOf)({fields:[(0,s.MIB)({description:"Spacing and line breaks are preserved on the site.",name:"code",rows:5,title:"Text",type:"text",validation:e=>e.required()})],name:"codeBlock",preview:{prepare:({code:e})=>({subtitle:("string"==typeof e?e:"").replace(/\s+/g," ").slice(0,100),title:"Code block"}),select:{code:"code"}},title:"Code block",type:"object"}),(0,s.dOf)({fields:[(0,s.MIB)({initialValue:"References",name:"title",title:"Title",type:"string"}),(0,s.MIB)({name:"references",of:[(0,s.dOf)({name:"reference",title:"Reference",to:[{type:"bibliography"},{type:"webSource"},{type:"glossary"},{type:"person"},{type:"studio"},{type:"typeFoundry"},{type:"institute"},{type:"bookshop"},{type:"project"},{type:"interview"},{type:"journal"}],type:"reference"})],title:"References",type:"array",validation:e=>e.required().min(1).unique()})],icon:eu.LinkIcon,name:"referencesBlock",preview:{prepare({title:e,references:t}){let i=Array.isArray(t)?t.length:0;return{subtitle:1===i?"1 reference":`${i} references`,title:e||"References"}},select:{references:"references",title:"title"}},title:"References",type:"object"})],title:"Content",type:"array"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:z,icon:f.DocumentTextIcon,name:"journal",orderings:[{by:[{direction:"desc",field:"publishingDate.date"}],name:"publishingDateDesc",title:"Publishing Date, Newest"},{by:[{direction:"asc",field:"publishingDate.date"}],name:"publishingDateAsc",title:"Publishing Date, Oldest"}],preview:{prepare({title:e,label:t,date:i,media:n}){let a=Object.fromEntries(em.map(e=>[e.value,e.title])),r=[i,t?a[t]??t:void 0].filter(Boolean);return{media:n,subtitle:r.length?r.join(" – "):void 0,title:e}},select:{date:"publishingDate.date",label:"label",media:"cover.image",title:"title"}},title:"Journal",type:"document"});var ey=i(21402);let eh=(0,s.U85)({fields:[(0,s.MIB)({name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"slug",options:{source:"name"},title:"Slug",type:"slug",validation:e=>e.required()})],icon:ey.TranslateIcon,name:"language",preview:{select:{subtitle:"slug.current",title:"name"}},title:"Language",type:"document"});var ef=i(99539);let eb=/^[+\d][\d\s\-()]*$/;function ev(e,...t){return t.some(t=>e?.roles?.includes(t))}let eI=(0,s.U85)({fields:[(0,s.MIB)({group:"metadata",name:"roles",of:[(0,s.dOf)({type:"string"})],options:{list:[{title:"Designer",value:"designer"},{title:"Professional",value:"professional"},{title:"Author",value:"author"},{title:"Teacher",value:"teacher"}]},title:"Roles",type:"array",validation:e=>e.required().min(1).error("At least one role is required")}),(0,s.MIB)({group:"metadata",name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",name:"slug",options:{source:"name"},title:"Slug",type:"slug",validation:e=>e.custom((e,t)=>!ev(t.document,"designer")||!!e?.current||"Slug is required for designers")}),(0,s.MIB)({group:"content",name:"portrait",title:"Portrait",type:"imageWithMetadata"}),(0,s.MIB)({group:"content",hidden:({document:e})=>!ev(e,"designer","professional"),name:"birthYear",title:"Birth Year",type:"number",validation:e=>e.min(1900).custom((e,t)=>ev(t.document,"designer")&&!e?"Birth year is required for designers":!e||!(e<1900)&&!(e>2500)||"Birth year must be exactly 4 digits")}),(0,s.MIB)({group:"content",hidden:({document:e})=>!ev(e,"designer","professional"),name:"bio",title:"Bio",type:"text"}),(0,s.MIB)({group:"content",hidden:({document:e})=>!ev(e,"designer"),name:"education",of:[(0,s.dOf)({fields:[(0,s.MIB)({name:"institute",title:"Institute",to:[{type:"institute"}],type:"reference",validation:e=>e.required()}),(0,s.MIB)({name:"degree",options:{list:[{title:"Bachelor",value:"Bachelor"},{title:"Master",value:"Master"},{title:"PhD",value:"PhD"},{title:"Erasmus",value:"Erasmus"},{title:"Other",value:"Other"}]},title:"Degree",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"courseName",title:"Course Name",type:"string"}),(0,s.MIB)({name:"year",title:"Year",type:"number",validation:e=>e.min(1900).custom(e=>!e||!(e<1900)&&!(e>2500)||"Year must be exactly 4 digits")})],name:"instituteEducation",title:"Institute Education",type:"object"})],title:"Education",type:"array"}),(0,s.MIB)({group:"content",hidden:({document:e})=>!ev(e,"designer","professional"),name:"place",title:"Place",to:[{type:"place"}],type:"reference",validation:e=>e.custom((e,t)=>
9!ev(t.document,"designer")||!!e||"Place is required for designers")}),(0,s.MIB)({group:"content",hidden:({document:e})=>!ev(e,"designer","professional"),name:"socialLinks",title:"Social Links",type:"socialLinks"}),(0,s.MIB)({group:"content",hidden:({document:e})=>!ev(e,"designer"),name:"email",title:"Email",type:"string",validation:e=>e.email()}),(0,s.MIB)({group:"content",hidden:({document:e})=>!ev(e,"designer"),name:"phone",title:"Phone",type:"string",validation:e=>e.regex(eb,{invert:!1,name:"phone"})}),(0,s.MIB)({group:"content",hidden:({document:e})=>!ev(e,"teacher","professional"),name:"teachingAt",title:"Teaching at",to:[{type:"institute"}],type:"reference"}),(0,s.MIB)({group:"content",hidden:({document:e})=>!ev(e,"professional"),name:"studio",title:"Studio",to:[{type:"studio"}],type:"reference"}),(0,s.MIB)({group:"seo",hidden:({document:e})=>!ev(e,"designer"),name:"seo",title:"SEO",type:"seoModule"})],groups:z,icon:ef.UserIcon,name:"person",preview:{prepare:({title:e,subtitle:t,media:i,roles:n})=>({media:i,subtitle:(n?.join(", ")??"")||(t?String(t):void 0),title:e}),select:{media:"portrait.image",roles:"roles",subtitle:"birthYear",title:"name"}},title:"Person",type:"document"});var eM=i(95439);let eB=(0,s.U85)({fields:[(0,s.MIB)({components:{input:function(e){let{onChange:t,value:i="",elementProps:n}=e,[a,o]=(0,B.useState)(""),[l,d]=(0,B.useState)([]),[c,p]=(0,B.useState)(!1),[u,m]=(0,B.useState)(!1),[y,h]=(0,B.useState)(!1),[f,b]=(0,B.useState)(null),v=(0,B.useRef)(null),x=(0,s.FlV)(["_id"]),w=(0,s.tH7)({apiVersion:g.XV}),j=q(),S=(0,D.dj)(),k=(0,s.FlV)(["city"]),P=(0,s.FlV)(["country"]),T=(0,s.FlV)(["lat"]),C=(0,s.FlV)(["lng"]),A=(0,B.useCallback)(async e=>{if(e.trim().length<2){d([]),h(!1);return}p(!0),b(null);try{let t=await fetch("/api/places/search",{body:JSON.stringify({query:e}),headers:V(j),method:"POST"}),i=await t.json();if(!t.ok)throw Error(i.error||"Search failed");d(i),h(i.length>0)}catch(e){b(e instanceof Error?e.message:"Search failed"),d([])}finally{p(!1)}},[j]);(0,B.useEffect)(()=>(v.current&&clearTimeout(v.current),a.trim().length>=2?v.current=setTimeout(()=>{A(a)},300):(d([]),h(!1)),()=>{v.current&&clearTimeout(v.current)}),[a,A]);let O=(0,B.useCallback)(async e=>{if(h(!1),o(""),!x)return void b("Please save the document first before selecting a place.");m(!0);try{let i=e.address,n=i.city||i.town||i.village||i.municipality||"",a=i.country||"",r=n&&a?`${n}, ${a}`:e.display_name.split(",").slice(0,2).join(",").trim();t((0,s.hZp)(r));let o=x.startsWith("drafts.")?x:`drafts.${x}`;await w.patch(o).set({city:n,country:a,countryCode:i.country_code?.toUpperCase()||"",formattedAddress:e.display_name,lat:Number.parseFloat(e.lat),lng:Number.parseFloat(e.lon),osmId:e.osm_id,osmType:e.osm_type,state:i.state||""}).commit(),S.push({description:`Selected: ${r}`,status:"success",title:"Place populated"})}catch(e){b(e instanceof Error?e.message:"Failed to update place fields")}finally{m(!1)}},[x,w,S,t]),_=(0,B.useCallback)(e=>{let i=e.currentTarget.value;t(i?(0,s.hZp)(i):(0,s.wCX)())},[t]);return(0,r.jsxs)(I.t,{gap:3,children:[(0,r.jsx)(U.t,{...n,onChange:_,value:i}),(0,r.jsx)(L.t,{align:"center",gap:2,children:(0,r.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,r.jsx)(U.t,{onChange:e=>o(e.currentTarget.value),placeholder:"Search for a place (e.g. Milan, Tokyo, Berlin)...",value:a}),y&&l.length>0&&(0,r.jsx)(M.s,{radius:2,shadow:2,style:{left:0,maxHeight:300,overflowY:"auto",position:"absolute",right:0,top:"100%",zIndex:100},children:(0,r.jsx)(I.t,{gap:1,padding:1,children:l.map(e=>(0,r.jsx)(E.t,{mode:"bleed",onClick:()=>O(e),style:{textAlign:"left",width:"100%"},children:(0,r.jsx)(I.n,{size:1,textOverflow:"ellipsis",children:e.display_name})},e.place_id))})})]})}),c&&(0,r.jsx)(I.n,{muted:!0,size:1,children:"Searching..."}),u&&(0,r.jsx)(M.s,{padding:3,radius:2,tone:"primary",children:(0,r.jsx)(I.n,{size:1,children:"Populating place fields..."})}),f&&(0,r.jsx)(M.s,{padding:3,radius:2,tone:"critical",children:(0,r.jsx)(I.n,{size:1,children:f})}),k&&P&&!u&&(0,r.jsx)(M.s,{border:!0,padding:3,radius:2,tone:"positive",children:(0,r.jsxs)(I.t,{gap:2,children:[(0,r.jsx)(I.n,{size:1,weight:"semibold",children:"Place data:"}),(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"City:"})," ",k]}),(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Country:"})," ",P]}),null!==T&&null!==C&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Coordinates:"})," ",T,", ",C]})]})})]})}},description:"Display name, e.g. Milan, Italy",name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"city",readOnly:!0,title:"City",type:"string"}),(0,s.MIB)({name:"country",readOnly:!0,title:"Country",type:"string"}),(0,s.MIB)({description:"2-letter ISO country code",name:"countryCode",readOnly:!0,title:"Country Code",type:"string"}),(0,s.MIB)({name:"state",readOnly:!0,title:"State / Region",type:"string"}),(0,s.MIB)({name:"lat",readOnly:!0,title:"Latitude",type:"number"}),(0,s.MIB)({name:"lng",readOnly:!0,title:"Longitude",type:"number"}),(0,s.MIB)({name:"osmId",readOnly:!0,title:"OpenStreetMap ID",type:"number"}),(0,s.MIB)({name:"osmType",readOnly:!0,title:"OSM Type",type:"string"}),(0,s.MIB)({description:"Full display name from Nominatim",name:"formattedAddress",readOnly:!0,title:"Formatted Address",type:"string"})],icon:eM.PinIcon,name:"place",preview:{prepare:({title:e,city:t,country:i})=>{var n;return{subtitle:(n={city:t,country:i}
9,[n?.city,n?.country].filter(Boolean).join(", ")),title:e||"Untitled Place"}},select:{city:"city",country:"country",title:"name"}},title:"Place",type:"document"});var ex=i(63426);let ew=(0,s.U85)({fields:[(0,s.MIB)({group:"metadata",name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",name:"slug",options:{source:"title"},title:"Slug",type:"slug",validation:e=>e.required()}),(0,s.MIB)({group:"metadata",name:"publishingDate",title:"Publishing Date",type:"publishingDate",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"cover",title:"Cover",type:"coverMedia",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"designers",of:[(0,s.dOf)({options:{filter:'"designer" in roles || "professional" in roles'},to:[{type:"person"}],type:"reference"})],title:"Designers",type:"array",validation:e=>e.required().min(1).unique().error("You cannot add the same designer twice")}),(0,s.MIB)({group:"content",name:"institute",title:"Institute",to:[{type:"institute"}],type:"reference"}),(0,s.MIB)({group:"content",name:"teachers",of:[(0,s.dOf)({options:{filter:'"teacher" in roles'},to:[{type:"person"}],type:"reference"})],title:"Teachers",type:"array",validation:e=>e.unique().error("You cannot add the same teacher twice")}),(0,s.MIB)({group:"content",name:"year",title:"Year",type:"number",validation:e=>e.required().min(1900).custom(e=>!e||!(e<1900)&&!(e>2500)||"Project year must be exactly 4 digits")}),_("content"),(0,s.MIB)({group:"content",name:"description",title:"Description",type:"text"}),(0,s.MIB)({group:"content",name:"gallery",of:[(0,s.dOf)({type:"singleMediaBlock"}),(0,s.dOf)({type:"sideBySideMediaBlock"}),(0,s.dOf)({type:"threeSideBySideMediaBlock"}),(0,s.dOf)({type:"gridFourMediaBlock"})],title:"Gallery",type:"array"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:z,icon:ex.ProjectsIcon,name:"project",orderings:[{by:[{direction:"desc",field:"publishingDate.date"}],name:"publishingDateDesc",title:"Publishing Date, Newest"},{by:[{direction:"asc",field:"publishingDate.date"}],name:"publishingDateAsc",title:"Publishing Date, Oldest"}],preview:{prepare:({title:e,media:t,date:i})=>({media:t,subtitle:i,title:e}),select:{date:"publishingDate.date",media:"cover.image",title:"title"}},title:"Project",type:"document"});var ej=i(93303);let eS=(0,s.U85)({fields:[(0,s.MIB)({name:"name",title:"Name",type:"string",validation:e=>e.required()})],icon:ej.PublishIcon,name:"publisher",title:"Publisher",type:"document"});var ek=i(47576);let eP=/^http:\/\//;function eT(e){let[t,i]=(0,B.useState)(!1),[n,a]=(0,B.useState)(null),[o,l]=(0,B.useState)(null),[d,c]=(0,B.useState)(!1),p=(0,s.FlV)(["_id"]),u=(0,s.FlV)(["socialLinks","links"]),m=(0,s.tH7)({apiVersion:g.XV}),y=q(),h=(0,D.dj)(),f=u?.find(e=>"website"===e.platform),b=f?.url,v=(0,B.useCallback)(async(e,t)=>{let i=e.replace(eP,"https://"),n=await fetch("/api/websites/fetch-image",{body:JSON.stringify({url:i}),headers:V(y),method:"POST",signal:AbortSignal.timeout(15e3)});if(!n.ok){let e=await n.json().catch(()=>null),t=e?.error??`HTTP ${n.status}`;return h.push({description:t,status:"warning",title:"Image upload skipped"}),null}let a=await n.blob(),r=await m.assets.upload("image",a,{filename:`cover-${t||"website"}.jpg`});return{_type:"imageWithMetadata",alt:t||"Website cover",image:{_type:"image",asset:{_ref:r._id,_type:"reference"}}}},[m,h,y]),x=(0,B.useCallback)(async e=>{if(!p)return void a("Cannot patch: document ID not found. Please save the document first.");c(!0);try{let t,i=(t={},e.description&&(t.description=e.description),e.title&&(t.ogTitle=e.title),e.description&&(t.ogDescription=e.description),e.siteName&&(t.ogSiteName=e.siteName),e.imageUrl&&(t.ogImageUrl=e.imageUrl),t);if(e.imageUrl){let t=await v(e.imageUrl,e.siteName);t&&(i.cover=t)}let n=await w(m,p);await m.patch(n).set(i).commit(),h.push({description:"Website data has been auto-filled from OG tags.",status:"success",title:"Fields populated"})}catch(e){a(e instanceof Error?e.message:"Failed to update document fields")}finally{c(!1)}},[p,m,h,v]),j=(0,B.useCallback)(async e=>{if(p)try{let t=await w(m,p);await m.patch(t).set({name:e}
9).commit(),h.push({status:"success",title:"Name applied"})}catch{h.push({status:"error",title:"Failed to apply name"})}},[p,m,h]),S=(0,B.useCallback)(async()=>{if(b){i(!0),a(null),l(null);try{let e=await fetch("/api/websites/fetch-og",{body:JSON.stringify({url:b}),headers:V(y),method:"POST",signal:AbortSignal.timeout(15e3)}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to fetch website data");l(t),await x(t)}catch(e){e instanceof Error&&"TimeoutError"===e.name?a("Request timed out. The website may be slow or unreachable."):a(e instanceof Error?e.message:"An error occurred")}finally{i(!1)}}},[b,x,y]);return(0,r.jsxs)(I.t,{gap:3,style:{width:"100%"},children:[(0,r.jsx)(L.t,{align:"center",gap:2,style:{width:"100%"},children:b?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.n,{size:1,style:{flex:1},children:b}),(0,r.jsx)(E.t,{disabled:t||d,mode:"ghost",onClick:S,text:t?"Fetching...":d?"Populating...":"Fetch Data",tone:"primary"})]}):(0,r.jsx)(I.n,{muted:!0,size:1,children:"Add a Website link in Social Links first"})}),n&&(0,r.jsx)(M.s,{padding:3,radius:2,tone:"critical",children:(0,r.jsx)(I.n,{size:1,children:n})}),(t||d)&&(0,r.jsx)(M.s,{padding:3,radius:2,tone:"primary",children:(0,r.jsx)(I.n,{size:1,children:t?"Fetching website data...":"Updating document fields..."})}),o&&!d&&(0,r.jsx)(M.s,{border:!0,padding:3,radius:2,tone:"positive",children:(0,r.jsxs)(I.t,{gap:3,children:[(0,r.jsx)(I.n,{size:1,weight:"semibold",children:"Fields auto-filled from OG tags:"}),(0,r.jsxs)(I.t,{gap:2,children:[o.siteName&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Site Name:"})," ",o.siteName]}),o.title&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Title:"})," ",o.title]}),o.description&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Description:"})," ",o.description.slice(0,200),o.description.length>200?"...":""]}),o.imageUrl&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Image:"})," Found and uploaded"]})]}),(o.siteName||o.title)&&(0,r.jsxs)(L.t,{align:"center",gap:2,children:[(0,r.jsxs)(I.n,{muted:!0,size:1,children:["Suggested name:"," ",(0,r.jsx)("strong",{children:o.siteName||o.title})]}),(0,r.jsx)(E.t,{fontSize:1,mode:"ghost",onClick:()=>j(o.siteName||o.title),padding:2,text:"Use as name",tone:"primary"})]})]})})]})}let eC=(0,s.U85)({fields:[(0,s.MIB)({group:"content",name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"socialLinks",title:"Social Links",type:"socialLinks"}),(0,s.MIB)({description:"Point of contact (CRM only, not shown on frontend)",group:"content",name:"email",title:"Email",type:"string",validation:e=>e.email()}),(0,s.MIB)({components:{input:eT},description:"Fetches OG metadata from the Website URL in Social Links",group:"content",name:"fetchWebsiteData",title:"Fetch Website Data",type:"string"}),(0,s.MIB)({description:"Auto-filled from OG description",group:"content",name:"description",rows:3,title:"Description",type:"text"}),(0,s.MIB)({description:"Auto-filled from OG image",group:"content",name:"cover",title:"Cover",type:"coverMedia"}),(0,s.MIB)({group:"content",name:"places",of:[(0,s.dOf)({to:[{type:"place"}],type:"reference"})],title:"Locations",type:"array"}),(0,s.MIB)({group:"content",name:"category",title:"Category",to:[{type:"category"}],type:"reference",validation:e=>e.required()}),_("content"),(0,s.MIB)({description:"Raw OG title from the website",group:"og",hidden:({document:e})=>!e?.ogTitle,name:"ogTitle",readOnly:!0,title:"OG Title",type:"string"}),(0,s.MIB)({description:"Raw OG description from the website",group:"og",hidden:({document:e})=>!e?.ogDescription,name:"ogDescription",readOnly:!0,title:"OG Description",type:"string"}),(0,s.MIB)({description:"Raw OG site name from the website",group:"og",hidden:({document:e})=>!e?.ogSiteName,name:"ogSiteName",readOnly:!0,title:"OG Site Name",type:"string"}),(0,s.MIB)({description:"Original OG image URL",group:"og",hidden:({document:e})=>!e?.ogImageUrl,name:"ogImageUrl",readOnly:!0,title:"OG Image URL",type:"string"})],groups:z,icon:ek.DesktopIcon,name:"studio",preview:{select:{media:"cover.image",subt
9itle:"description",title:"name"}},title:"Studio",type:"document"}),eA=(0,s.U85)({fields:[(0,s.MIB)({name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"slug",options:{source:"name"},title:"Slug",type:"slug",validation:e=>e.required()})],icon:H.TagIcon,name:"tag",preview:{select:{subtitle:"slug.current",title:"name"}},title:"Tag",type:"document"});var eO=i(59223);let eL=(0,s.U85)({fields:[(0,s.MIB)({group:"content",name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({group:"content",name:"socialLinks",title:"Social Links",type:"socialLinks"}),(0,s.MIB)({components:{input:eT},description:"Fetches OG metadata from the Website URL in Social Links",group:"content",name:"fetchWebsiteData",title:"Fetch Website Data",type:"string"}),(0,s.MIB)({description:"Auto-filled from OG description",group:"content",name:"description",rows:3,title:"Description",type:"text"}),(0,s.MIB)({description:"Auto-filled from OG image",group:"content",name:"cover",title:"Cover",type:"coverMedia"}),_("content"),(0,s.MIB)({group:"content",name:"places",of:[(0,s.dOf)({to:[{type:"place"}],type:"reference"})],title:"Locations",type:"array"}),(0,s.MIB)({description:"Raw OG title from the website",group:"og",hidden:({document:e})=>!e?.ogTitle,name:"ogTitle",readOnly:!0,title:"OG Title",type:"string"}),(0,s.MIB)({description:"Raw OG description from the website",group:"og",hidden:({document:e})=>!e?.ogDescription,name:"ogDescription",readOnly:!0,title:"OG Description",type:"string"}),(0,s.MIB)({description:"Raw OG site name from the website",group:"og",hidden:({document:e})=>!e?.ogSiteName,name:"ogSiteName",readOnly:!0,title:"OG Site Name",type:"string"}),(0,s.MIB)({description:"Original OG image URL",group:"og",hidden:({document:e})=>!e?.ogImageUrl,name:"ogImageUrl",readOnly:!0,title:"OG Image URL",type:"string"})],groups:z,icon:eO.TextIcon,name:"typeFoundry",preview:{select:{media:"cover.image",subtitle:"fetchWebsiteData",title:"name"}},title:"Type Foundry",type:"document"}),eU=/^http:\/\//,eE=(0,s.U85)({fields:[(0,s.MIB)({components:{input:function(e){let{onChange:t,value:i="",elementProps:n}=e,a=e.schemaType.options?.autoFillName??!0,[o,l]=(0,B.useState)(!1),[d,c]=(0,B.useState)(null),[p,u]=(0,B.useState)(null),[m,y]=(0,B.useState)(!1),h=(0,s.FlV)(["_id"]),f=(0,s.tH7)({apiVersion:g.XV}),b=q(),v=(0,D.dj)(),x=(0,B.useCallback)(e=>{let i=e.currentTarget.value;t(i?(0,s.hZp)(i):(0,s.wCX)()),u(null),c(null)},[t]),j=(0,B.useCallback)(async(e,t)=>{let i=e.replace(eU,"https://"),n=await fetch("/api/websites/fetch-image",{body:JSON.stringify({url:i}),headers:V(b),method:"POST",signal:AbortSignal.timeout(15e3)});if(!n.ok){let e=await n.json().catch(()=>null),t=e?.error??`HTTP ${n.status}`;return v.push({description:t,status:"warning",title:"Image upload skipped"}),null}let a=await n.blob(),r=await f.assets.upload("image",a,{filename:`cover-${t||"website"}.jpg`});return{_type:"imageWithMetadata",alt:t||"Website cover",image:{_type:"image",asset:{_ref:r._id,_type:"reference"}}}},[f,v,b]),S=(0,B.useCallback)(async e=>{if(!h)return void c("Cannot patch: document ID not found. Please save the document first.");y(!0);try{var t;let i,n=(t={autoFillName:a},i={},(t?.autoFillName??!0)&&(e.siteName?i.name=e.siteName:e.title&&(i.name=e.title)),e.description&&(i.description=e.description),e.title&&(i.ogTitle=e.title),e.description&&(i.ogDescription=e.description),e.siteName&&(i.ogSiteName=e.siteName),e.imageUrl&&(i.ogImageUrl=e.imageUrl),i);if(e.imageUrl){let t=await j(e.imageUrl,e.siteName);t&&(n.cover=t)}let r=await w(f,h);await f.patch(r).set(n).commit(),v.push({description:"Website data has been auto-filled from OG tags.",status:"success",title:"Fields populated"})}catch(e){c(e instanceof Error?e.message:"Failed to update document fields")}finally{y(!1)}},[h,f,v,j,a]),k=(0,B.useCallback)(async e=>{if(h)try{let t=await w(f,h);await f.patch(t).set({name:e}).commit(),v.push({status:"success",title:"Name applied"})}catch{v.push({status:"error",title:"Failed to apply name"})}},[h,f,v]),P=(0,B.useCallback)(async()=>{if(!i)return void c("Please enter a URL first");
9l(!0),c(null),u(null);try{let e=await fetch("/api/websites/fetch-og",{body:JSON.stringify({url:i}),headers:V(b),method:"POST",signal:AbortSignal.timeout(15e3)}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to fetch website data");u(t),await S(t)}catch(e){e instanceof Error&&"TimeoutError"===e.name?c("Request timed out. The website may be slow or unreachable."):c(e instanceof Error?e.message:"An error occurred")}finally{l(!1)}},[i,S,b]);return(0,r.jsxs)(I.t,{gap:3,style:{width:"100%"},children:[(0,r.jsxs)(L.t,{align:"center",gap:2,style:{width:"100%"},children:[(0,r.jsx)(U.t,{...n,onChange:x,placeholder:"Enter website URL (https://...)",style:{flex:1},value:i}),(0,r.jsx)(E.t,{disabled:o||m||!i,mode:"ghost",onClick:P,text:o?"Fetching...":m?"Populating...":"Fetch Data",tone:"primary"})]}),d&&(0,r.jsx)(M.s,{padding:3,radius:2,tone:"critical",children:(0,r.jsx)(I.n,{size:1,children:d})}),(o||m)&&(0,r.jsx)(M.s,{padding:3,radius:2,tone:"primary",children:(0,r.jsx)(I.n,{size:1,children:o?"Fetching website data...":"Updating document fields..."})}),p&&!m&&(0,r.jsx)(M.s,{border:!0,padding:3,radius:2,tone:"positive",children:(0,r.jsxs)(I.t,{gap:3,children:[(0,r.jsx)(I.n,{size:1,weight:"semibold",children:"Fields auto-filled from OG tags:"}),(0,r.jsxs)(I.t,{gap:2,children:[p.siteName&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Site Name:"})," ",p.siteName]}),p.title&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Title:"})," ",p.title]}),p.description&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Description:"})," ",p.description.slice(0,200),p.description.length>200?"...":""]}),p.imageUrl&&(0,r.jsxs)(I.n,{size:1,children:[(0,r.jsx)("strong",{children:"Image:"})," Found and uploaded"]})]}),!a&&(p.siteName||p.title)&&(0,r.jsxs)(L.t,{align:"center",gap:2,children:[(0,r.jsxs)(I.n,{muted:!0,size:1,children:["Suggested name:"," ",(0,r.jsx)("strong",{children:p.siteName||p.title})]}),(0,r.jsx)(E.t,{fontSize:1,mode:"ghost",onClick:()=>k(p.siteName||p.title),padding:2,text:"Use as name",tone:"primary"})]})]})})]})}},description:"The URL of the source website",name:"sourceUrl",title:"Source URL",type:"url",validation:e=>[e.required(),C(e)]}),(0,s.MIB)({description:"Auto-filled from OG site_name or title",name:"name",title:"Name",type:"string",validation:e=>e.required()}),(0,s.MIB)({description:"Auto-filled from OG description",name:"description",rows:3,title:"Description",type:"text"}),(0,s.MIB)({description:"Auto-filled from OG image",name:"cover",title:"Cover",type:"coverMedia"}),(0,s.MIB)({name:"category",title:"Category",to:[{type:"category"}],type:"reference",validation:e=>e.required()}),_(),(0,s.MIB)({description:"Raw OG title from the website",hidden:({document:e})=>!e?.ogTitle,name:"ogTitle",readOnly:!0,title:"OG Title",type:"string"}),(0,s.MIB)({description:"Raw OG description from the website",hidden:({document:e})=>!e?.ogDescription,name:"ogDescription",readOnly:!0,title:"OG Description",type:"string"}),(0,s.MIB)({description:"Raw OG site name from the website",hidden:({document:e})=>!e?.ogSiteName,name:"ogSiteName",readOnly:!0,title:"OG Site Name",type:"string"}),(0,s.MIB)({description:"Original OG image URL",hidden:({document:e})=>!e?.ogImageUrl,name:"ogImageUrl",readOnly:!0,title:"OG Image URL",type:"string"})],icon:eu.LinkIcon,name:"webSource",preview:{select:{media:"cover.image",subtitle:"sourceUrl",title:"name"}},title:"Web Source",type:"document"});var eD=i(63590);let eq=(0,s.U85)({fields:[(0,s.MIB)({initialValue:"image",name:"type",options:{layout:"radio",list:[{title:"Image",value:"image"},{title:"Video",value:"video"}]},title:"Type",type:"string"}),(0,s.MIB)({description:"Cover image. When type is Video, used as the poster in listings and before playback.",name:"image",options:{hotspot:!0},title:"Image",type:"image",validation:e=>e.custom((e,t)=>{let i=t.parent,n=i?.type??"image";return"image"!==n||e?"video"!==n||!!e||"Poster image is required for video covers":"Image is required"})}),(0,s.MIB)({description:"Enable only for animated GIF or WebP covers that do not play. This bypasses Next.js image optimization while retaining the Sanity crop and hotspot.",hidden:({parent:e})=>e?.type==="video",initialValue:!1,name:"preserveAnimation",title:"Preserve animation",type:"boolean"}),(0,s.MIB)({hidden:({parent:e})=>e?.type!=="video",name:"video",options:{accept:"video/*"},title:"Video File",type:"file",validation:e=>e.custom((e,t)=>
9{let i=t.parent;return i?.type!=="video"||!!e||"Video file is required"})}),(0,s.MIB)({name:"caption",title:"Caption / Copyright",type:"string"}),(0,s.MIB)({name:"alt",title:"Alt",type:"string",validation:e=>e.custom(e=>!!e?.trim()||"Add alt text for accessibility").warning()})],name:"coverMedia",preview:{prepare({type:e,caption:t,image:i}){let n="video"===e;return{media:n?eD.PlayIcon:i,subtitle:n?"Video":"Image",title:t||(n?"Video":"Image")}},select:{caption:"caption",image:"image",type:"type"}},title:"Cover Media",type:"object"});var eV=i(65377),e_=i(18441),eR=i(40567),eF=i(8231),eN=i(68764),ez=i(40220),eG=i(96122);function e$({media:e,label:t,onClick:i,aspectRatio:n="4/3"}){let a=!!e?.image?.asset?._ref,o=function(e){switch(e){case"videoUpload":return eD.PlayIcon;case"videoEmbed":return eu.LinkIcon;default:return eV.ImageIcon}}(e?.type),l=e?.type;return(0,r.jsx)(M.s,{as:"button",onClick:i,padding:3,radius:2,shadow:1,style:{border:l?void 0:"2px dashed var(--card-border-color)",cursor:"pointer",flex:1,minHeight:100,overflow:"hidden",position:"relative"},tone:l?"default":"transparent",type:"button",children:(0,r.jsxs)(I.t,{gap:2,children:[(0,r.jsx)(M.y,{style:{alignItems:"center",aspectRatio:n,backgroundColor:"var(--card-muted-bg-color)",borderRadius:4,display:"flex",justifyContent:"center",overflow:"hidden"},children:a?(0,r.jsx)(eG.A,{alt:e?.caption||t,height:150,source:e,width:200}):(0,r.jsx)(I.n,{muted:!0,size:4,children:(0,r.jsx)(o,{})})}),(0,r.jsxs)(L.t,{align:"center",gap:2,children:[(0,r.jsx)(I.n,{muted:!0,size:1,weight:"semibold",children:t}),(0,r.jsx)(I.n,{muted:!0,size:0,children:(0,r.jsx)(eN.EditIcon,{})})]}),e?.caption&&(0,r.jsx)(I.n,{muted:!0,size:1,children:e.caption}),!l&&(0,r.jsx)(I.n,{muted:!0,size:1,children:"Click to add media"})]})})}let eW=[{title:"Landscape (4:3)",value:"landscape"},{title:"Portrait (3:4)",value:"portrait"}],eX={title:"Free Form (Original Proportions)",value:"freeform"};function eH({media:e,label:t,onClick:i,aspectRatio:n="4/3"}){let a=!!e?.image?.asset?._ref,o=function(e){switch(e){case"videoUpload":return eD.PlayIcon;case"videoEmbed":return eu.LinkIcon;default:return eV.ImageIcon}}(e?.type),l=e?.type;return(0,r.jsx)(M.s,{as:"button",onClick:i,padding:3,radius:2,shadow:1,style:{border:l?void 0:"2px dashed var(--card-border-color)",cursor:"pointer",flex:1,minHeight:120,overflow:"hidden",position:"relative"},tone:l?"default":"transparent",type:"button",children:(0,r.jsxs)(I.t,{gap:2,children:[(0,r.jsx)(M.y,{style:{alignItems:"center",aspectRatio:n,backgroundColor:"var(--card-muted-bg-color)",borderRadius:4,display:"flex",justifyContent:"center",overflow:"hidden"},children:a?(0,r.jsx)(eG.A,{alt:e?.caption||t,height:150,source:e,width:200}):(0,r.jsx)(I.n,{muted:!0,size:4,children:(0,r.jsx)(o,{})})}),(0,r.jsxs)(L.t,{align:"center",gap:2,children:[(0,r.jsx)(I.n,{muted:!0,size:1,weight:"semibold",children:t}),(0,r.jsx)(I.n,{muted:!0,size:0,children:(0,r.jsx)(eN.EditIcon,{})})]}),e?.caption&&(0,r.jsx)(I.n,{muted:!0,size:1,children:e.caption}),!l&&(0,r.jsx)(I.n,{muted:!0,size:1,children:"Click to add media"})]})})}function eY({media:e,label:t,onClick:i,aspectRatio:n="4/3"}){let a=!!e?.image?.asset?._ref,o=function(e){switch(e){case"videoUpload":return eD.PlayIcon;case"videoEmbed":return eu.LinkIcon;default:return eV.ImageIcon}}(e?.type),l=e?.type;return(0,r.jsx)(M.s,{as:"button",onClick:i,padding:3,radius:2,shadow:1,style:{border:l?void 0:"2px dashed var(--card-border-color)",cursor:"pointer",flex:1,minHeight:120,overflow:"hidden",position:"relative"},tone:l?"default":"transparent",type:"button",children:(0,r.jsxs)(I.t,{gap:2,children:[(0,r.jsx)(M.y,{style:{alignItems:"center",aspectRatio:n,backgroundColor:"var(--card-muted-bg-color)",borderRadius:4,display:"flex",justifyContent:"center",overflow:"hidden"},children:a?(0,r.jsx)(eG.A,{alt:e?.caption||t,height:"3/4"===n?200:150,source:e,width:"3/4"===n?150:200}):(0,r.jsx)(I.n,{muted:!0,size:4,children:(0,r.jsx)(o,{})})}),(0,r.jsxs)(L.t,{align:"center",gap:2,children:[(0,r.jsx)(I.n,{muted:!0,size:1,weight:"semibold",children:t}),(0,r.jsx)(I.n,{muted:!0,size:0,children:(0,r.jsx)(eN.EditIcon,{})})]}),e?.caption&&(0,r.jsx)(I.n,{muted:!0,size:1,children:e.caption}),!l&&(0,r.jsx)(I.n,{muted:!0,size:1,children:"Click to add media"})]})})}let eJ=(0,s.MIB)({components:{input:function(e){let t=(0,s.FlV)(["_type"]),i=(0,s.FlV)([...e.path.slice(0,-1),"media","type"]),n="journal"===t&&"image"===i?[...eW,eX]:eW,a=(0,B.useCallback)(t=>e.onChange((0,s.hZp)(t.currentTarget.value)),[e.onChange]);return(0,r.jsx)(ez.l6,{...e.elementProps,disabled:e.readOnly,onChange:a,value:e.value??"landscape",children:n.map(e=>(0,r.jsx)("option",{value:e.value,children:e.title},e.value))})}},initialValue:"landscape",name:"orientation",options:{layout:"radio",list:[{title:"Landscape (4:3)",value:"landscape"},{title:"Portrait (3:4)",value:"portrait"},{title:"Free Form (Original Proportions)",value:"freeform"}]},title:"Image Presentation",type:"string",validation:e=>e.required().custom((e,t)=>
9{if("freeform"!==e)return!0;let i=t.document,n=t.parent;return i?._type==="journal"&&n?.media?.type==="image"||"Free form is available only for single images in Journal entries."})}),eQ=(0,s.U85)({fields:[eJ,(0,s.MIB)({name:"media",title:"Media",type:"mediaItem",validation:e=>e.required()})],icon:eR.SquareIcon,name:"singleMediaBlock",preview:{prepare:({type:e,caption:t,image:i})=>({media:"image"===e?i:eV.ImageIcon,subtitle:"image"===e?"Image":"Video",title:t||"Single Media"}),select:{caption:"media.caption",image:"media.image",type:"media.type"}},title:"Single Media",type:"object"}),eZ=(0,s.U85)({components:{input:function(e){let{value:t,members:i,renderField:n,renderInput:a,renderItem:o,renderPreview:l}=e,[d,c]=(0,B.useState)(null),p=(0,B.useCallback)(()=>{c(null)},[]),u=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"left"===e.name),[i]),m=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"right"===e.name),[i]),g=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"orientation"===e.name),[i]),y="left"===d?u:m,h=t?.orientation==="portrait"?"3/4":"4/3",f={renderField:n,renderInput:a,renderItem:o,renderPreview:l};return(0,r.jsxs)(I.t,{gap:4,children:[g&&(0,r.jsx)(s.qC_,{member:g,...f}),(0,r.jsxs)(L.t,{gap:3,children:[(0,r.jsx)(eH,{aspectRatio:h,label:"Left",media:t?.left,onClick:()=>c("left")}),(0,r.jsx)(eH,{aspectRatio:h,label:"Right",media:t?.right,onClick:()=>c("right")})]}),d&&y&&(0,r.jsx)(ez.lG,{header:`Edit ${"left"===d?"Left":"Right"} Media`,id:`side-by-side-dialog-${d}`,onClose:p,width:1,children:(0,r.jsx)(M.y,{padding:4,children:(0,r.jsx)(s.qC_,{member:y,...f})})})]})}},fields:[eJ,(0,s.MIB)({name:"left",title:"Left",type:"mediaItem",validation:e=>e.required()}),(0,s.MIB)({name:"right",title:"Right",type:"mediaItem",validation:e=>e.required()})],icon:e_.InlineIcon,name:"sideBySideMediaBlock",preview:{prepare({leftCaption:e,rightCaption:t,leftImage:i}){let n=[e,t].filter(Boolean).join(" | ")||"Side by Side";return{media:i||e_.InlineIcon,subtitle:"2 items",title:n}},select:{leftCaption:"left.caption",leftImage:"left.image",rightCaption:"right.caption"}},title:"Side by Side",type:"object"}),eK=(0,s.U85)({components:{input:function(e){let{value:t,members:i,renderField:n,renderInput:a,renderItem:o,renderPreview:l}=e,[d,c]=(0,B.useState)(null),p=(0,B.useCallback)(()=>{c(null)},[]),u=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"left"===e.name),[i]),m=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"center"===e.name),[i]),g=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"right"===e.name),[i]),y=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"orientation"===e.name),[i]),h=t?.orientation==="portrait"?"3/4":"4/3",f=(0,B.useMemo)(()=>{switch(d){case"left":return u;case"center":return m;case"right":return g;default:return}},[d,u,m,g]),b=(0,B.useMemo)(()=>{switch(d){case"left":return"Left";case"center":return"Center";case"right":return"Right";default:return""}},[d]),v={renderField:n,renderInput:a,renderItem:o,renderPreview:l};return(0,r.jsxs)(I.t,{gap:4,children:[y&&(0,r.jsx)(s.qC_,{member:y,...v}),(0,r.jsxs)(L.t,{gap:3,children:[(0,r.jsx)(eY,{aspectRatio:h,label:"Left",media:t?.left,onClick:()=>c("left")}),(0,r.jsx)(eY,{aspectRatio:h,label:"Center",media:t?.center,onClick:()=>c("center")}),(0,r.jsx)(eY,{aspectRatio:h,label:"Right",media:t?.right,onClick:()=>c("right")})]}),d&&f&&(0,r.jsx)(ez.lG,{header:`Edit ${b} Media`,id:`three-side-by-side-dialog-${d}`,onClose:p,width:1,children:(0,r.jsx)(M.y,{padding:4,children:(0,r.jsx)(s.qC_,{member:f,...v})})})]})}},fields:[eJ,(0,s.MIB)({name:"left",title:"Left",type:"mediaItem",validation:e=>e.required()}),(0,s.MIB)({name:"center",title:"Center",type:"mediaItem",validation:e=>e.required()}),(0,s.MIB)({name:"right",title:"Right",type:"mediaItem",validation:e=>e.required()})],icon:ee.BlockElementIcon,name:"threeSideBySideMediaBlock",preview:{prepare({leftCaption:e,centerCaption:t,rightCaption:i,leftImage:n}){let a=[e,t,i].filter(Boolean).join(" | ")||"3 Side by Side";return{media:n||ee.BlockElementIcon,subtitle:"3 items",title:a}},select:{centerCaption:"center.caption",leftCaption:"left.caption",leftImage:"left.image",rightCaption:"right.caption"}},title:"3 Side by Side",type:"object"}),e0=(0,s.U85)({components:{input:function(e){let{value:t,members:i,renderField:n,renderInput:a,renderItem:o,renderPreview:l}=e,[d,c]=(0,B.useState)(null),p=(0,B.useCallback)(()=>{c(null)},[]),u=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"topLeft"===e.name),[i]),m=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"topRight"===e.name),[i]),g=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"bottomLeft"===e.name),[i]),y=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"bottomRight"===e.name),[i]),h=(0,B.useMemo)(()=>i.find(e=>"field"===e.kind&&"orientation"===e.name),[i]),f=t?.orientation==="portrait"?"3/4":"4/3",b=(0,B.useMemo)(()=>{switch(d){case"topLeft":return u;case"topRight":return m;case"bottomLeft":return g;case"bottomRight":return y;default:return}},[d,u,m,g,y]),v=(0,B.useMemo)(()=>{switch(d){case"topLeft":return"Top Left";case"topRight":return"Top Right";case"bottomLeft":return"Bottom Left";case"bottomRight":return"Bottom Right";default:return""}},[d]),x={renderField:n,renderInput:a,renderItem:o,renderPreview:l};return(0,r.jsxs)(I.t,{gap:4,children:[h&&(0,r.jsx)(s.qC_,{member:h,...x}),(0,r.jsxs)(I.t,{gap:3,children:[(0,r.jsxs)(L.t,{gap:3,children:[(0,r.jsx)(e$,{aspectRatio:f,label:"Top Left",media:t?.topLeft,onClick:()=>c("topLeft")}),(0,r.jsx)(e$,{aspectRatio:f,label:"Top Right",media:t?.topRight,onClick:()=>c("topRight")})]}),(0,r.jsxs)(L.t,{gap:3,children:[(0,r.jsx)(e$,{aspectRatio:f,label:"Bottom Left",media:t?.bottomLeft,onClick:()=>c("bottomLeft")}),(0,r.jsx)(e$,{aspectRatio:f,label:"Bottom Right",media:t?.bottomRight,onClick:()=>c("bottomRight")})]})]}),d&&b&&(0,r.jsx)(ez.lG,{header:`Edit ${v} Media`,id:`grid-four-dialog-${d}`,onClose:p,width:1,children:(0,r.jsx)(M.y,{padding:4,children:(0,r.jsx)(s.qC_,{member:b,...x})})})]})}},fields:[eJ,(0,s.MIB)({name:"topLeft",title:"Top Left",type:"mediaItem",validation:e=>e.required()}
9),(0,s.MIB)({name:"topRight",title:"Top Right",type:"mediaItem",validation:e=>e.required()}),(0,s.MIB)({name:"bottomLeft",title:"Bottom Left",type:"mediaItem",validation:e=>e.required()}),(0,s.MIB)({name:"bottomRight",title:"Bottom Right",type:"mediaItem",validation:e=>e.required()})],icon:eF.ThLargeIcon,name:"gridFourMediaBlock",preview:{prepare({topLeftCaption:e,topRightCaption:t,bottomLeftCaption:i,bottomRightCaption:n,topLeftImage:a}){let r=[e,t,i,n].filter(Boolean).join(" | ")||"Grid of 4";return{media:a||eF.ThLargeIcon,subtitle:"4 items",title:r}},select:{bottomLeftCaption:"bottomLeft.caption",bottomRightCaption:"bottomRight.caption",topLeftCaption:"topLeft.caption",topLeftImage:"topLeft.image",topRightCaption:"topRight.caption"}},title:"Grid of 4",type:"object"}),e1=(0,s.U85)({fields:[(0,s.MIB)({name:"image",options:{hotspot:!0},title:"Image",type:"image"}),(0,s.MIB)({name:"caption",title:"Caption / Copyright",type:"string"}),(0,s.MIB)({name:"alt",title:"Alt",type:"string",validation:e=>e.custom(e=>!!e?.trim()||"Add alt text for accessibility").warning()})],name:"imageWithMetadata",title:"Image with Metadata",type:"object"}),e2=(0,s.U85)({fields:[(0,s.MIB)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"content",rows:4,title:"Content",type:"text",validation:e=>e.required()})],name:"infoItem",preview:{prepare:({title:e,content:t})=>({subtitle:t?.split("\n")[0],title:e}),select:{content:"content",title:"title"}},title:"Info Item",type:"object"}),e5=(0,s.U85)({fields:[(0,s.MIB)({description:"Upload black image, will be used in light mode.",name:"logoLight",title:"Logo Light",type:"image"}),(0,s.MIB)({description:"Upload white image, will be used in dark mode.",name:"logoDark",title:"Logo Dark",type:"image"}),(0,s.MIB)({name:"alt",title:"Alt",type:"string"})],name:"logo",title:"Logo",type:"object"}),e3=(0,s.U85)({fields:[(0,s.MIB)({initialValue:"image",name:"type",options:{layout:"radio",list:[{title:"Image",value:"image"},{title:"Video (Upload)",value:"videoUpload"},{title:"Video (Embed)",value:"videoEmbed"}]},title:"Type",type:"string",validation:e=>e.required()}),(0,s.MIB)({hidden:({parent:e})=>e?.type!=="image",name:"image",options:{hotspot:!0},title:"Image",type:"image",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.type!=="image"||!!e||"Image is required"})}),(0,s.MIB)({hidden:({parent:e})=>e?.type!=="videoUpload",name:"video",options:{accept:"video/*"},title:"Video File",type:"file",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.type!=="videoUpload"||!!e||"Video file is required"})}),(0,s.MIB)({description:"YouTube or Vimeo URL",hidden:({parent:e})=>e?.type!=="videoEmbed",name:"videoUrl",title:"Video URL",type:"url",validation:e=>[e.custom((e,t)=>{let i=t.parent;return i?.type!=="videoEmbed"||!!e||"Video URL is required"}),e.custom(e=>{let t=T(e);return!0===t&&e?!!(0,P.g)(e)||"Must be a valid YouTube or Vimeo URL":t})]}),(0,s.MIB)({name:"caption",title:"Caption",type:"string"}),(0,s.MIB)({hidden:({parent:e})=>e?.type!=="image",name:"alt",title:"Alt Text",type:"string"})],name:"mediaItem",preview:{prepare({type:e,caption:t,image:i}){let n={image:"Image",videoEmbed:"Video (Embed)",videoUpload:"Video (Upload)"},a={image:eV.ImageIcon,videoEmbed:eu.LinkIcon,videoUpload:eD.PlayIcon};return{media:"image"===e?i:a[e],subtitle:n[e],title:t||n[e]||"Media"}},select:{caption:"caption",image:"image",type:"type"}},title:"Media Item",type:"object"}),e4=(0,s.U85)({fields:[(0,s.MIB)({description:"Optional override for social sharing. Uses Meta Title by default.",name:"title",title:"OG Title",type:"string"}),(0,s.MIB)({description:"Optional override for social sharing. Uses Meta Description by default.",name:"description",rows:3,title:"OG Description",type:"text"}),(0,s.MIB)({description:"URL used for social sharing (usually the canonical URL).",name:"url",title:"OG URL",type:"url",validation:C})],name:"openGraph",title:"Open Graph",type:"object"}),e8=(0,s.U85)({fields:[(0,s.MIB)({name:"date",title:"Date",type:"date",validation:e=>e.required()})],name:"publishingDate",title:"Publishing Date",type:"object"}),e9=/^\/[a-z0-9\-/]*$/i,e7=(0,s.U85)({fields:[(0,s.MIB)({description:"Title shown in search results and browser tabs. Aim for ~60 characters. Falls back to site settings if empty.",name:"metaTitle",title:"Meta Title",type:"string",validation:e=>e.max(65).warning("Titles longer than ~60–65 chars may be truncated")}),(0,s.MIB)({description:"Short summary for search results. Aim for ~155–160 characters. Falls back to site settings if empty.",name:"metaDescription",rows:3,title:"Meta Description",type:"text",validation:e=>e.max(160).warning("Descriptions longer than ~155–160 chars may be truncated")}),(0,s.MIB)({description:"Default image representing this page in search or shares.",name:"metaImage",title:"Meta Image",type:"imageWithMetadata"}),(0,s.MIB)({description:"Controls if search engines index this page and follow its links.",name:"metaRobots",options:{list:[{title:"Index, Follow",value:"index, follow"},{title:"No Index, Follow",value:"noindex, follow"},{title:"Index, No Follow",value:"index, nofollow"},{title:"No Index, No Follow",value:"noindex, nofollow"}]},title:"Meta Robots",type:"string"}),(0,s.MIB)({description:"Path only (e.g., /blog/hello-world). Leave empty to use current page path.",name:"canonicalURL",title:"Canonical URL",type:"string",validation:e=>e.regex(e9).warning("Must start with / and use valid path characters")}),(0,s.MIB)({name:"openGraph",title:"Open Graph",type:"openGraph"}),(0,s.MIB)({name:"xCard",title:"X (Twitter) Card",type:"xCard"})],name:"seoModule",title:"SEO",type:"object"}),e6=(0,s.U85)({fields:[(0,s.MIB)({name:"links",of:[(0,s.dOf)({fields:[(0,s.MIB)({name:"platform",options:{layout:"dropdown",list:[{title:"Behance",value:"behance"},{title:"Bluesky",value:"bluesky"},{title:"Instagram",value:"ig"},{title:"LinkedIn",value:"linkedin"},{title:"Linktree",value:"linktree"},{title:"Mastodon",value:"mastodon"},{title:"Spotify",value:"spotify"},{title:"Substack",value:"substack"},{title:"TikTok",value:"tiktok"},{title:"X (Twitter)",value:"x"},{title:"Website",value:"website"}]},title:"Platform",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"url",title:"URL",type:"url",validation:e=>[e.required(),C(e)]})],name:"socialLink",preview:{prepare:({platform:e,url:t})=>({subtitle:t,title:({bluesky:"Bluesky",ig:"Instagram",linktree:"Linktree",mastodon:"Mastodon",website:"Website",x:"X (Twitter)"})[e]||e}),select:{platform:"platform",url:"url"}},title:"Social Link",type:"object"})],title:"Links",type:"array"})],name:"socialLinks",title:"Social Links",type:"object"}),te=(0,s.U85)({fields:[(0,s.MIB)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({name:"slug",title:"Slug",type:"slug",validation:e=>e.required()})],name:"titleSlug",title:"TitleSlug",type:"object"}),tt=(0,s.U85)({fields:[(0,s.MIB)({description:"Optional override for X/Twitter. Uses Meta Title by default.",name:"title",title:"X Title",type:"string"}),(0,s.MIB)({description:"Optional override for X/Twitter. Uses Meta Description by default.",name:"description",rows:3,title:"X Description",type:"text"})],name:"xCard",title:"X (Twitter) Card",type:"object"}),ti=(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",initialValue:"About",name:"title",readOnly:!0,title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({description:"The first paragraph acts as the page intro. Mix text and media blocks freely.",group:"content",name:"content",of:[(0,s.dOf)({type:"block"}),(0,s.dOf)({type:"singleMediaBlock"}),(0,s.dOf)({type:"sideBySideMediaBlock"}),(0,s.dOf)({type:"threeSideBySideMediaBlock"}),(0,s.dOf)({type:"gridFourMediaBlock"})],title:"Content",type:"array"}),(0,s.MIB)({description:"Logos displayed at the bottom of the About page.",group:"content",name:"supporters",of:[(0,s.dOf)({to:[{type:"contributor"}],type:"reference"})],title:"Supporters",type:"array"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:z,icon:F.InfoOutlineIcon,name:"aboutPage",title:"About Page",type:"document"}),tn=(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",name:"title",readOnly:!0,title:"Title",type:"string"}),(0,s.MIB)({group:"content",name:"introText",rows:3,title:"Intro Text",type:"text",validation:e=>e.required().max(170)}),(0,s.MIB)({group:"content",name:"endOfPageCta",title:"End of Page CTA",to:[{type:"cta"}],type:"reference"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:[{default:!0,name:"content",title:"Content"},{name:"seo",title:"SEO"}],icon:ef.UserIcon,name:"designersPage",title:"Designers Page",type:"document"}),ta=(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",initialValue:"Editions",name:"title",readOnly:!0,title:"Title",type:"string"}),(0,s.MIB)({group:"content",name:"endOfPageCta",title:"End of Page CTA",to:[{type:"cta"}],type:"reference"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:[{default:!0,name:"content",title:"Content"},{name:"seo",title:"SEO"}],icon:O.BookIcon,name:"editionsPage",title:"Editions Page",type:"document"}),tr=(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",name:"title",readOnly:!0,title:"Title",type:"string"}),(0,s.MIB)({group:"content",name:"introText",rows:3,title:"Intro Text",type:"text",validation:e=>e.required().max(170)}),(0,s.MIB)({group:"content",name:"endOfPageCta",title:"End of Page CTA",to:[{type:"cta"}],type:"reference"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:[{default:!0,name:"content",title:"Content"},{name:"seo",title:"SEO"}],icon:ea.CalendarIcon,name:"eventsPage",title:"Events Page",type:"document"}),to=(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",name:"title",readOnly:!0,title:"Title",type:"string"}),(0,s.MIB)({group:"content",name:"introText",rows:3,title:"Intro Text",type:"text",validation:e=>e.required().max(170)}),(0,s.MIB)({description:"Select a project, interview, journal article, or event to feature as the hero. If empty, the latest published item is used.",group:"content",name:"featuredItem",title:"Featured Item",to:[{type:"project"},{type:"interview"},{type:"journal"},{type:"event"}],type:"reference"}),(0,s.MIB)({description:"CTA displayed between the first and second content sections",group:"content",name:"midPageCta",title:"Mid Page CTA",to:[{type:"cta"}],type:"reference"}),(0,s.MIB)({group:"content",name:"endOfPageCta",title:"End of Page CTA",to:[{type:"cta"}],type:"reference"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:z,icon:$.HomeIcon,name:"homePage",title:"Home Page",type:"document"}),tl=(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",name:"title",readOnly:!0,title:"Title",type:"string"}),(0,s.MIB)({group:"content",name:"introText",rows:3,title:"Intro Text",type:"text",validation:e=>e.required().max(170)}),(0,s.MIB)({group:"content",name:"endOfPageCta",title:"End of Page CTA",to:[{type:"cta"}],type:"reference"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:[{default:!0,name:"content",title:"Content"},{name:"seo",title:"SEO"}],icon:J.UsersIcon,name:"interviewsPage",title:"Interviews Page",type:"document"}),ts=(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",name:"title",readOnly:!0,title:"Title",type:"string"}),(0,s.MIB)({group:"content",name:"introText",rows:3,title:"Intro Text",type:"text",validation:e=>e.required().max(170)}),(0,s.MIB)({description:"Select an article to feature prominently at the top of the page",group:"content",name:"featuredArticle",title:"Featured Article",to:[{type:"journal"}],type:"reference"}),(0,s.MIB)({group:"content",name:"endOfPageCta",title:"End of Page CTA",to:[{type:"cta"}],type:"reference"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:[{default:!0,name:"content",title:"Content"},{name:"seo",title:"SEO"}],icon:f.DocumentTextIcon,name:"journalPage",title:"Journal Page",type:"document"});function td(e,t){return(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",initialValue:e,name:"title",readOnly:!0,title:"Title",type:"string",validation:e=>e.required()}),(0,s.MIB)({description:"Legal copy shown on the public page.",group:"content",name:"content",of:[(0,s.dOf)({type:"block"})],title:"Content",type:"array",validation:e=>e.required().min(1)}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:z,icon:F.InfoOutlineIcon,name:t,title:e,type:"document"})}let tc=td("Cookie Policy","cookiePolicyPage"),tp=td("Legal Notice / Impressum","
9impressumPage"),tu=td("Privacy Policy","privacyPolicyPage"),tm=td("Project Submission Terms","submissionTermsPage");var tg=i(2282);let ty=(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",name:"title",readOnly:!0,title:"Title",type:"string"}),(0,s.MIB)({group:"content",name:"introText",rows:3,title:"Intro Text",type:"text",validation:e=>e.required().max(170)}),(0,s.MIB)({group:"content",name:"endOfPageCta",title:"End of Page CTA",to:[{type:"cta"}],type:"reference"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:[{default:!0,name:"content",title:"Content"},{name:"seo",title:"SEO"}],icon:tg.ArchiveIcon,name:"projectsPage",title:"Projects Page",type:"document"}),th={bibliography:{introText:"A constantly updated list of books on graphic design",route:"/bibliography",title:"Bibliography",type:"bibliographyPage"},bookshops:{introText:"A mapping of independent bookshops around the world",route:"/bookshops",title:"Bookshops",type:"bookshopsPage"},glossary:{introText:"A list of the most common and used terms in the design industry",route:"/glossary",title:"Glossary",type:"glossaryPage"},institutes:{introText:"A mapping of the institutes, schools and universities around the world",route:"/institutes",title:"Institutes",type:"institutesPage"},studiosAgencies:{introText:"A mapping of the creative realities around the world",route:"/studios-agencies",title:"Studios & Agencies",type:"studiosAgenciesPage"},typeFoundries:{introText:"A mapping of the creative realities around the world",route:"/type-foundries",title:"Type Foundries",type:"typeFoundriesPage"},websites:{introText:"A curated list of websites and online resources for designers",route:"/websites",title:"Websites",type:"websitesPage"}};function tf({introText:e,title:t,type:i}){return(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({group:"content",initialValue:t,name:"title",readOnly:!0,title:"Title",type:"string"}),(0,s.MIB)({group:"content",initialValue:e,name:"introText",rows:3,title:"Intro Text",type:"text",validation:e=>e.required().max(170)}),(0,s.MIB)({group:"content",name:"endOfPageCta",title:"End of Page CTA",to:[{type:"cta"}],type:"reference"}),(0,s.MIB)({group:"seo",name:"seo",title:"SEO",type:"seoModule"})],groups:[{default:!0,name:"content",title:"Content"},{name:"seo",title:"SEO"}],icon:f.DocumentTextIcon,name:i,title:`${t} Page`,type:"document"})}Object.fromEntries(Object.values(th).map(({route:e,type:t})=>[t,e]));let tb=tf(th.bibliography),tv=tf(th.bookshops),tI=tf(th.glossary),tM=tf(th.institutes),tB=tf(th.studiosAgencies),tx=tf(th.typeFoundries),tw=tf(th.websites),tj=(0,s.U85)({__experimental_omnisearch_visibility:!1,fields:[(0,s.MIB)({hidden:!0,name:"title",readOnly:!0,title:"Title",type:"string"}),(0,s.MIB)({description:"Default SEO settings for the site and homepage",group:"seo",name:"seo",title:"Default SEO",type:"seoModule"}),(0,s.MIB)({description:"Controls what visitors see on the public website. Keep this set to Live unless you are publishing a planned holding page.",group:"publicSite",initialValue:"live",name:"publicSiteMode",options:{layout:"radio",list:[{title:"Live",value:"live"},{title:"Countdown",value:"countdown"},{title:"Maintenance",value:"maintenance"}]},title:"Public site mode",type:"string"}),(0,s.MIB)({description:"Shown to visitors while the public site is in Countdown mode. Fill in the launch time before publishing this mode.",fields:[(0,s.MIB)({name:"heading",title:"Heading",type:"string"}),(0,s.MIB)({name:"message",rows:3,title:"Message",type:"text"}),(0,s.MIB)({name:"launchAt",title:"Launch date and time",type:"datetime"})],group:"publicSite",hidden:({parent:e})=>e?.publicSiteMode!=="countdown",name:"countdown",title:"Countdown message",type:"object"}),(0,s.MIB)({description:"Shown to visitors while the public site is in Maintenance mode.",fields:[(0,s.MIB)({name:"heading",title:"Heading",type:"string"}),(0,s.MIB)({name:"message",rows:3,title:"Message",type:"text"}),(0,s.MIB)({name:"returnAt",title:"Expected return date and time",type:"datetime"}),(0,s.MIB)({name:"contactUrl",title:"Contact URL",type:"url",validation:C})],group:"publicSite",hidden:({parent:e})=>e?.publicSiteMode!=="maintenance",name:"maintenance",title:"Maintenance message",type:"object"}),(0,s.MIB)({description:"Control which Indexes are public and the controls available on each one.",fields:[(0,s.MIB)({initialValue:!0,name:"headerSearchEnabled",title:"Header search enabled",type:"boolean"}),(0,s.MIB)({fields:[(0,s.MIB)({initialValue:!0,name:"published",readOnly:!0,title:"Published",type:"boolean"}),(0,s.MIB)({initialValue:["list","grid","map"],name:"enabledViews",of:[{type:"string"}],options:{layout:"grid",list:["list","grid","map"]},title:"Enabled views",type:"array",validation:e=>e.min(1)}),(0,s.MIB)({initialValue:!0,name:"searchEnabled",title:"Search enabled",type:"boolean"})],initialValue:{enabledViews:["list","grid","map"],published:!0,searchEnabled:!0}
9,name:"studiosAgencies",title:"Studios & Agencies",type:"object"}),(0,s.MIB)({fields:[(0,s.MIB)({initialValue:!0,name:"published",title:"Published",type:"boolean"}),(0,s.MIB)({initialValue:["list","grid","map"],name:"enabledViews",of:[{type:"string"}],options:{layout:"grid",list:["list","grid","map"]},title:"Enabled views",type:"array",validation:e=>e.min(1)}),(0,s.MIB)({initialValue:!0,name:"searchEnabled",title:"Search enabled",type:"boolean"})],initialValue:{enabledViews:["list","grid","map"],published:!0,searchEnabled:!0},name:"typeFoundries",title:"Type Foundries",type:"object"}),(0,s.MIB)({fields:[(0,s.MIB)({initialValue:!0,name:"published",title:"Published",type:"boolean"}),(0,s.MIB)({initialValue:["list","grid","map"],name:"enabledViews",of:[{type:"string"}],options:{layout:"grid",list:["list","grid","map"]},title:"Enabled views",type:"array",validation:e=>e.min(1)}),(0,s.MIB)({initialValue:!0,name:"searchEnabled",title:"Search enabled",type:"boolean"})],initialValue:{enabledViews:["list","grid","map"],published:!0,searchEnabled:!0},name:"institutes",title:"Institutes",type:"object"}),(0,s.MIB)({fields:[(0,s.MIB)({initialValue:!0,name:"published",title:"Published",type:"boolean"}),(0,s.MIB)({initialValue:["list","grid","map"],name:"enabledViews",of:[{type:"string"}],options:{layout:"grid",list:["list","grid","map"]},title:"Enabled views",type:"array",validation:e=>e.min(1)}),(0,s.MIB)({initialValue:!0,name:"searchEnabled",title:"Search enabled",type:"boolean"})],initialValue:{enabledViews:["list","grid","map"],published:!0,searchEnabled:!0},name:"bookshops",title:"Bookshops",type:"object"}),(0,s.MIB)({fields:[(0,s.MIB)({initialValue:!0,name:"published",title:"Published",type:"boolean"}),(0,s.MIB)({initialValue:["list","grid"],name:"enabledViews",of:[{type:"string"}],options:{layout:"grid",list:["list","grid"]},title:"Enabled views",type:"array",validation:e=>e.min(1)}),(0,s.MIB)({initialValue:!0,name:"searchEnabled",title:"Search enabled",type:"boolean"})],initialValue:{enabledViews:["list","grid"],published:!0,searchEnabled:!0},name:"websites",title:"Websites",type:"object"}),(0,s.MIB)({fields:[(0,s.MIB)({initialValue:!0,name:"published",title:"Published",type:"boolean"}),(0,s.MIB)({initialValue:!0,name:"searchEnabled",title:"Search enabled",type:"boolean"})],initialValue:{published:!0,searchEnabled:!0},name:"glossary",title:"Glossary",type:"object"}),(0,s.MIB)({fields:[(0,s.MIB)({initialValue:!0,name:"published",title:"Published",type:"boolean"})],initialValue:{published:!0},name:"bibliography",title:"Bibliography",type:"object"})],group:"indexAvailability",name:"indexAvailability",title:"Index availability",type:"object"}),(0,s.MIB)({group:"footer",name:"instagramUrl",title:"Instagram URL",type:"url",validation:C}),(0,s.MIB)({group:"footer",name:"linkedinUrl",title:"LinkedIn URL",type:"url",validation:C}),(0,s.MIB)({description:"External Notion form where visitors can report an issue with the platform.",group:"footer",name:"issueReportFormUrl",title:"Issue report form URL",type:"url",validation:function(e){return e.custom(e=>{if(!e)return!0;try{return"https:"===new URL(e).protocol||"Must use HTTPS"}catch{return"Must be a valid HTTPS URL"}})}}),(0,s.MIB)({group:"contributions",initialValue:"https://app.notion.com/p/3b97f12bcce680279120ebe629e655bf?pvs=106",name:"studioAgencyContributionUrl",title:"Studio / Agency form URL",type:"url",validation:C}),(0,s.MIB)({group:"contributions",initialValue:"https://app.notion.com/p/a8a7f12bcce683f5b15401c2e5428e7e?pvs=106",name:"typeFoundriesContributionUrl",title:"Type Foundries form URL",type:"url",validation:C}),(0,s.MIB)({group:"contributions",initialValue:"https://app.notion.com/p/f867f12bcce68299a95281a9676b9c37?pvs=106",name:"bibliographyContributionUrl",title:"Bibliography form URL",type:"url",validation:C}),(0,s.MIB)({description:"The utm_source parameter for outbound links (e.g., 'pittogramma')",group:"tracking",initialValue:"pittogramma",name:"utmSource",title:"UTM Source",type:"string",validation:e=>e.required()}),(0,s.MIB)({description:"The utm_medium parameter (e.g., 'website')",group:"tracking",initialValue:"website",name:"utmMedium",title:"UTM Medium",type:"string"}),(0,s.MIB)({description:"The utm_campaign parameter (e.g., 'resources')",group:"tracking",initialValue:"resources",name:"utmCampaign",title:"UTM Campaign",type:"string"})],groups:[{default:!0,name:"seo",title:"SEO"},{name:"publicSite",title:"Public site"},{name:"indexAvailability",title:"Index availability"},{name:"footer",title:"Footer"},{name:"contributions",title:"Contributions"},{name:"tracking",title:"Tracking"}],name:"siteSettings",title:"Site Settings",type:"document"});var tS=i(45425),tk=i(93744),tP=i(36483),tT=i(52957),tC=i(24551),tA=i(57465),tO=i(40557),tL=i(67033),tU=i(25684),tE=i(13626),tD=i(7351),tq=i(44539),tV=i(51752),t_=i(77618),tR=i(45028),tF=i(58309),tN=i(80167),tz=i(53142),tG=i(36145),t$=i(88074);let tW=(e,t,i,n)=>e.listItem().title(i||t).id(t).icon(n).child(e.document().schemaType(t).documentId(t)),tX=(e,t,i,n,a)=>e.listItem().title(t).icon(a).id(n||t.toLowerCase()).child(e.list().title(t).items(i)),tH=(e,t,i,n)=>e.documentTypeListItem(t).icon(n).title(i||t);var tY=i(72032),tJ=i(88043);let tQ={component:function(){return(0,r.jsx)(ez.mc,{padding:4,width:1,children:(0,r.jsx)(M.s,{border:!0,padding:5,radius:2,children:(0,r.jsxs)(I.t,{gap:4,children:[(0,r.jsxs)(I.t,{gap:3,children:[(0,r.jsx)(I.n,{size:3,weight:"semibold",children:"Analytics"}),(0,r.jsx)(I.n,{muted:!0,children:"View Pittogramma's Umami analytics dashboard."})]}),(0,r.jsx)("div",{children:(0,r.jsx)(E.t,{as:"a",href:"https://umami.net-work.studio/share/J5nDBevseNbBXPzd",icon:tJ.LaunchIcon,rel:"noreferrer",target:"_blank",text:"Open Umami dashboard",tone:"primary"})})]})})})},icon:tY.DashboardIcon,name:"analytics",title:"Analytics"},tZ=(0,s.C8j)({auth:{loginMethod:"token"},basePath:"/admin",dataset:g.RT,icon:u.A,plugins:[(0,c.Cw)({structure:e=>e.list().title("Content").items([tW(e,"homePage","Home",tS.A),tW(e,"aboutPage","About",tk.A),tX(e,"Legal",[tW(e,"impressumPage","Legal Notice / Impressum",tP.A),tW(e,"privacyPolicyPage","Privacy Policy",tP.A),tW(e,"cookiePolicyPage","Cookie Policy",tP.A),tW(e,"submissionTermsPage","Project Submission Terms",tP.A)],"legal",tP.A),tX(e,"Projects",[tW(e,"projectsPage","Projects Page",tT.A),e.divider(),tH(e,"project","Project",tT.A)],"projects",tT.A),tX(e,"Interviews",[tW(e,"interviewsPage","Interviews Page",tC.A),e.divider(),tH(e,"interview","Interview",tC.A)],"interviews",tC.A),tX(e,"People",[tW(e,"designersPage","Designers Page",tk.A),e.divider(),tH(e,"person","All People",tk.A),e.listItem().title("Journal Authors").icon(tk.A).child(e.documentList().title("Journal Authors").apiVersion(g.XV).filter('_type == "person" && _id in *[_type == "journal"].authors[]._ref')),e.listItem().title("Project Designers").icon(tk.A).child(e.documentList().title("Project Designers").apiVersion(g.XV).filter('_type == "person" && _id in *[_type == "project"].designers[]._ref')),e.listItem().title("Interview People").icon(tk.A).child(e.documentList().title("Interview People").apiVersion(g.XV).filter('_type == "person" && _id in *[_type == "interview"].designersAndProfessionals[]._ref')),e.listItem().title("Bibliography Authors").icon(tk.A).child(e.documentList().title("Bibliography Authors").apiVersion(g.XV).filter('_type == "person" && _id in *[_type == "bibliography"].authors[]._ref'))],"people",tA.A),e.divider(),tX(e,"Index",[tX(e,"Bibliography",[tW(e,"bibliographyPage","Bibliography Page",tO.A),e.divider(),tH(e,"bibliography","Bibliography"),tH(e,"publisher","Publisher")],"bibliography",tO.A),tX(e,"Bookshops",[tW(e,"bookshopsPage","Bookshops Page",tL.A),e.divider(),tH(e,"bookshop","Bookshop",tL.A)],"bookshops",tL.A),tX(e,"Glossary",[tW(e,"glossaryPage","Glossary Page",tU.A),e.divider(),tH(e,"glossary","Glossary",tU.A)],"glossary",tU.A),tX(e,"Institutes",[tW(e,"institutesPage","Institutes Page",tE.A),e.divider(),tH(e,"institute","Institute",tE.A)],"institutes",tE.A),tX(e,"Studios & Agencies",[tW(e,"studiosAgencie
9sPage","Studios & Agencies Page",tA.A),e.divider(),tH(e,"studio","Studio",tA.A)],"studios-agencies",tA.A),tX(e,"Type Foundries",[tW(e,"typeFoundriesPage","Type Foundries Page",tL.A),e.divider(),tH(e,"typeFoundry","Type Foundry",tL.A)],"type-foundries",tL.A),tX(e,"Websites",[tW(e,"websitesPage","Websites Page",tD.A),e.divider(),tH(e,"webSource","Web Source",tD.A)],"websites",tD.A)],"resources"),e.divider(),tX(e,"Journal",[tW(e,"journalPage","Journal Page",tP.A),e.divider(),tH(e,"journal","Journal",tP.A)],"journal",tP.A),tX(e,"Events",[tW(e,"eventsPage","Events Page",tq.A),e.divider(),tH(e,"event","Event",tq.A)],"events",tq.A),e.divider(),tX(e,"Editions",[tW(e,"editionsPage","Editions Page",tO.A),e.divider(),tH(e,"edition","Edition",tO.A)],"editions",tO.A),e.divider(),tX(e,"ADVs",[e.listItem().title("Active").icon(tV.A).child(()=>e.documentList().id("adv-active").title("Active ADVs").apiVersion(g.XV).filter('_type == "adv" && dateStart <= $today && dateEnd >= $today').params({today:v()}).defaultOrdering([{direction:"asc",field:"dateStart"}])),e.listItem().title("Upcoming").icon(t_.A).child(()=>e.documentList().id("adv-upcoming").title("Upcoming ADVs").apiVersion(g.XV).filter('_type == "adv" && dateStart > $today').params({today:v()}).defaultOrdering([{direction:"asc",field:"dateStart"}])),e.listItem().title("Expired").icon(tR.A).child(()=>e.documentList().id("adv-expired").title("Expired ADVs").apiVersion(g.XV).filter('_type == "adv" && dateEnd < $today').params({today:v()}).defaultOrdering([{direction:"desc",field:"dateEnd"}])),e.divider(),e.listItem().title("All").icon(tF.A).child(e.documentTypeList("adv").title("All ADVs"))],"advs",tN.A),tX(e,"Community",[e.listItem().title("Active").icon(tV.A).child(()=>e.documentList().id("community-active").title("Active Community").apiVersion(g.XV).filter('_type == "community" && dateStart <= $today && (!defined(dateEnd) || dateEnd >= $today)').params({today:v()}).defaultOrdering([{direction:"asc",field:"dateStart"}])),e.listItem().title("Upcoming").icon(t_.A).child(()=>e.documentList().id("community-upcoming").title("Upcoming Community").apiVersion(g.XV).filter('_type == "community" && dateStart > $today').params({today:v()}).defaultOrdering([{direction:"asc",field:"dateStart"}])),e.listItem().title("Expired").icon(tR.A).child(()=>e.documentList().id("community-expired").title("Expired Community").apiVersion(g.XV).filter('_type == "community" && defined(dateEnd) && dateEnd < $today').params({today:v()}).defaultOrdering([{direction:"desc",field:"dateEnd"}])),e.divider(),e.listItem().title("All").icon(tF.A).child(e.documentTypeList("community").title("All Community"))],"community",tz.A),tH(e,"cta","CTAs",tD.A),tX(e,"Metadata",[tH(e,"place","Place",tL.A),tH(e,"language","Language",tU.A),tH(e,"tag","Tag",tG.A),tH(e,"contributor","Contributor",tA.A),tH(e,"category","Category",tG.A)]),e.divider(),tW(e,"siteSettings","Site Settings",t$.A)])}),(0,l.$)({defaultApiVersion:g.XV}),(0,p.$_)(),(0,d.BP)({previewUrl:{previewMode:{enable:"/api/draft-mode/enable"}},resolve:m})],projectId:g.Lg,schema:{types:[A,Z,K,et,en,eI,er,es,ep,eg,eh,ew,eC,e5,eq,e1,e2,e3,eQ,eZ,eK,e0,te,eB,eA,e7,e4,tt,tj,ti,tc,tp,tu,tm,to,ty,tl,ts,tn,tr,ta,tb,tv,tI,tM,tB,tx,tw,e6,e8,Y,eL,X,el,eS,eE,G]},title:"Pittogramma",tools:[tQ]});function tK(){return(0,r.jsx)(o.EQ,{config:tZ})}},40980:(e,t,i)=>{"use strict";i.d(t,{cn:()=>r});var n=i(29722),a=i(622);function r(...e){return(0,a.QP)((0,n.$)(e))}},42634:()=>{},44345:(e,t,i)=>{"use strict";i.d(t,{Lg:()=>r,RT:()=>a,XV:()=>n});let n=i(41463).env.NEXT_PUBLIC_SANITY_API_VERSION||"2026-06-03",a=o("production","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),r=o("jfvmcjyl","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID");function o(e,t){if(void 0===e)throw Error(t);return e}},52067:(e,t,i)=>{"use strict";i.d(t,{ij:()=>s,pA:()=>l,sQ:()=>o,vX:()=>c,z6:()=>d,zK:()=>p});var n=i(7571),a=i(44345);let r=(0,n.OX)({dataset:a.RT,projectId:a.Lg}),o=e=>{let t=e?.image?.hotspot;if("object"==typeof t&&null!==t&&"x"in t&&"y"in t&&"number"==typeof t.x&&"number"==typeof t.y)return`${100*t.x}% ${100*t.y}%`},l=e=>e?.image?.asset?e.image:null,s=e=>{let t=l(e);return t?r.image(t):null},d=e=>{let t=e?.image?.asset;return t?r.image(t):null},c=e=>{let t=e?.image?.asset;if(t&&"object"==typeof t&&"metadata"in t){let e=t.metadata;return e?.dimensions??void 0}},p=(e,t=!1)=>{let i=(e=>{let t=e?.image?.asset;if(t&&"object"==typeof t&&"metadata"in t){let e=t.metadata;return e?.lqip??void 0}})(e);if(i)return i;let n=t?d(e):s(e);
9return n?.width(24).quality(5).auto("format").url()}},77908:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(95155);let a=e=>(0,n.jsxs)("svg",{fill:"none",height:17,viewBox:"0 0 15 17",width:15,xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("title",{children:"Pittogramma Mark"}),(0,n.jsx)("path",{className:"fill-black dark:fill-white",d:"M8.938 1.895H5.1V7.56h3.84zM14.692 17h-1.915V1.895h-1.924V17H8.938V9.439H5.1q-1.977 0-3.389-1.39-1.402-1.4-1.402-3.32 0-1.95 1.411-3.339Q3.14 0 5.1 0h9.593z"})]})},96122:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=i(95155),a=i(5772),r=i(40980),o=i(52067);function l({source:e,alt:t,width:i=800,height:s=600,fill:d,fillWidth:c,fit:p="intrinsic",ignoreCrop:u=!1,sizes:m,className:g,priority:y,preload:h,quality:f=75,preserveAnimation:b=!1,respectHotspot:v,objectFit:I,objectPosition:M,style:B,unoptimized:x,...w}){let j=u?(0,o.z6)(e):(0,o.ij)(e);if(!j)return null;let S=d?c??1920:Number(i),k=(0,o.vX)(e)?.width,P=k?Math.min(S,k):S,T=function(e,{fill:t,fillWidth:i,sizeMode:n,height:a,width:r}){if(t)return e.width(i??1920).url();switch(n){case"crop":return e.width(r).height(a).fit("crop").url();case"intrinsic":return e.width(r).url();default:return n}}(b?j.quality(Number(f)):j.quality(Number(f)).auto("format"),{fill:d,fillWidth:d?P:c,height:Number(s),sizeMode:p,width:P}),C=(0,o.zK)(e,u),A=e?.alt??t??"",O=M??(!function(e,t,i){if(!1===e)return!1;switch(i){case"crop":return!1;case"intrinsic":return!!t||!0===e;default:return i}}(v,d,p)?void 0:(0,o.sQ)(e)),L={...I?{objectFit:I}:{},...B},U={alt:A,...C?{blurDataURL:C,placeholder:"blur"}:{},className:(0,r.cn)(I?void 0:"object-cover",g),...O?{objectPosition:O}:{},preload:h,priority:y,sizes:d?m??"100vw":m,src:T,style:L,unoptimized:b||x,...w};return d?(0,n.jsx)(a.default,{...U,fill:!0}):(0,n.jsx)(a.default,{...U,height:s,width:i})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.