https://www.sergehillproject.co.uk/_next/static/chunks/pages/studio/[[...index]]-da7609458935ab19.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[57],{49592:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/studio/[[...index]]",function(){return i(63285)}])},63285:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return ae}});var l=i(85893),n=i(9008),a=i.n(n),r=i(50276),o=i(32932),s=i(11530),d=i(3571),m=i(27353),p=i(34364),c=i(11636),u=i(85363);async function y(e,t,i){const l=await e.fetch((n=i?1800:3600,"*[_id == $id && dateTime(_updatedAt) > dateTime(now()) - ".concat(n,"][0].secret")),{id:t});var n;if(!l&&i){const l=!0===i?Math.random().toString(36).slice(2):i();try{const i=e.patch(t).set({secret:l});return await e.transaction().createIfNotExists({_id:t,_type:t}).patch(i).commit({tag:"preview.secret"}),l}catch(a){console.error("Failed to create a new preview secret. Ensure the `client` has a `token` specified that has `write` permissions.",a)}}return l}var g=i(67294),f=i(58139);function h(e){var t,i,n;const{document:a,previewSecretId:r,apiVersion:o}=e,{displayed:s}=a,d=null===(t=s)||void 0===t?void 0:t._type;let m=null===(i=null===(n=s)||void 0===n?void 0:n.slug)||void 0===i?void 0:i.current;return(0,u.c)(d,m)?(0,l.jsx)(c.Zb,{scheme:"light",style:{width:"100%",height:"100%",position:"relative"},children:(0,l.jsx)(g.Suspense,{fallback:null,children:(0,l.jsx)(b,{apiVersion:o,documentType:d,previewSecretId:r,slug:m})})}):(0,l.jsx)(c.Zb,{tone:"primary",margin:5,padding:6,children:(0,l.jsx)(c.xv,{align:"center",children:"Please add a slug to the post to see the preview!"})})}const v=Symbol("preview.secret"),b=(0,g.memo)((function(e){const{apiVersion:t,documentType:i,previewSecretId:n,slug:a}=e,r=(0,o.m85)({apiVersion:t}),s=(0,f.Rq)((()=>y(r,n,!0)),["getSecret",n,v],{lifespan:6e4}),d=new URL("/api/draft",location.origin);return i&&d.searchParams.set("documentType",i),a&&d.searchParams.set("slug",a),s&&d.searchParams.set("secret",s),(0,l.jsx)("iframe",{style:{width:"100%",height:"100%",position:"relative",zIndex:1,border:"none"},src:d.toString()})})),j=(0,o.Cw0)((e=>{let{previewSecretId:t,types:i,apiVersion:l="2022-11-17"}=e;if(!t)throw new TypeError("`previewSecretId` is required");if(!t.includes("."))throw new TypeError("`previewSecretId` must contain a `.` to ensure it can only be queried by authenticated users");if(!i||0===i.length)throw new TypeError("`types` is required");const n=new Set(i);return{name:"productionUrl",document:{productionUrl:async(e,i)=>{let{document:a,getClient:r}=i;var o;const s=new URL("/api/draft",location.origin),d=r({apiVersion:l}),m=await y(d,t,!0);m&&s.searchParams.set("secret",m);const p=null===(o=a.slug)||void 0===o?void 0:o.current;return p&&s.searchParams.set("slug",p),n.has(a._type)?(s.searchParams.set("type",a._type),console.log("Open preview URL",s.toString()),s.toString()):e}}}}));var w=i(60506),k=i(96500),x=i(80535),Z=i(97644),q=i.n(Z);var T=(0,o.feb)({name:"emailForm",title:"Email Form",titlePlural:"Email Forms",type:"document",icon:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:"\ud83d\udce8"}),fields:[(0,o.Z2j)({name:"title",title:"Form Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"slug",title:"Slug",type:"slug",options:{source:"title",maxLength:96},validation:e=>e.required(),description:'This is the URL used to open the form, which will be formatted as a query paramater. For example, if you set the slug to "contact", the URL will be "https://www.example.com/?form=contact".'}),(0,o.Z2j)({name:"emailTo",title:"Email To",description:"This is the email address that the form will send to.",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"formIntro",title:"Form Introduction",description:"This is the text above the form, that explains the general purpose of the form.",type:"simpleBlockContent"}),(0,o.Z2j)({name:"emailSubjects",title:"Email Subject(s)",description:"This is the email subject that the form will use. If you add multiple subjects, the user will be able to choose which subject they want to use.",type:"array",of:[{type:"string"}],validation:e=>e.required()}),(0,o.Z2j)({name:"sections",title:"Form Sections",type:"array",of:[(0,o.quX)({name:"textField",title:"Text Field",type:"object",fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"description",title:"Description",type:"simpleBlockContent",description:"Explain what you want the user to write in the text field.",validation:e=>e.required()})]}),(0,o.quX)({name:"tickBoxField",title:"Tick Box Field",type:"object",fields:[(0,o.Z2j)({name:"question",title:"Question",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"options",title:"Options",type:"array",of:[(0,o.quX)({name:"option",title:"Option",type:"string"})],validation:e=>e.required()})]}),(0,o.quX)({name:"furtherInfoField",title:"Further Information Required Field",type:"object",fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"informationItems",title:"Information Items",type:"array",of:[(0,o.quX)({name:"informationItem",title:"Information Item",type:"object",fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()})]})]})]})],validation:e=>e.required()})],preview:{select:{title:"title",slug:"slug.current"},prepare(e){let{title:t,slug:i}=e;return{title:t,subtitle:"".concat(i)}}}}
1),B=(0,o.feb)({name:"event",title:"Event",titlePlural:"Events",icon:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:"\ud83e\udeb4"}),type:"document",fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"slug",title:"Slug",type:"slug",options:{source:"title",maxLength:96,isUnique:(e,t)=>t.defaultIsUnique(e,t)},validation:e=>e.required()}),(0,o.Z2j)({name:"image",title:"Cover Image",type:"image",options:{hotspot:!0}}),(0,o.Z2j)({name:"categories",title:"Categories",type:"array",of:[(0,o.quX)({name:"category",title:"Category",type:"reference",to:[{type:"eventCategory"}]})]}),(0,o.Z2j)({name:"location",title:"Location",type:"string"}),(0,o.Z2j)({name:"date",title:"Date",type:"datetime",initialValue:()=>(new Date).toISOString(),description:"Used for sorting, not displayed on the site"}),(0,o.Z2j)({name:"dateTimeString",title:"Date / Time",type:"string"}),(0,o.Z2j)({name:"body",title:"Body",type:"blockContent"}),(0,o.Z2j)({name:"bookingLink",title:"Booking Link",type:"url"}),(0,o.Z2j)({name:"recordingLink",title:"Recording Link",type:"url"}),(0,o.Z2j)({name:"pageBuilderBlocks",title:"Blocks",type:"array",of:[(0,o.quX)({name:"pageBuilderBlock",title:"Block",type:"pageBuilderBlock"})]})],preview:{select:{title:"title",subtitle:"dateTimeString",media:"image"},prepare(e){let{title:t,subtitle:i,media:l}=e;return{title:t,subtitle:i,media:l}}}}),I=(0,o.feb)({name:"eventCategory",title:"Event Category",titlePlural:"Event Categories",type:"document",icon:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:"\ud83d\uddc2\ufe0f "}),fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"slug",title:"Slug",type:"slug",options:{source:"title",maxLength:96},validation:e=>e.required()}),(0,o.Z2j)({name:"emoji",title:"Emoji",type:"string",description:"Purely for backend usage (fun)."})],preview:{select:{title:"title",subtitle:"slug.current",emoji:"emoji"},prepare(e){const{title:t,subtitle:i,emoji:n}=e;let a="";return a=n||"\ud83d\udc7d",{title:t,subtitle:i,media:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:a})}}}}),S=(0,o.feb)({name:"newsItem",title:"NewsItem",titlePlural:"News Items",icon:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:"\ud83d\udcf0"}),type:"document",fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"slug",title:"Slug",type:"slug",options:{source:"title",maxLength:96,isUnique:(e,t)=>t.defaultIsUnique(e,t)},validation:e=>e.required()}),(0,o.Z2j)({name:"image",title:"Cover Image",type:"image",options:{hotspot:!0}}),(0,o.Z2j)({name:"date",title:"Date",type:"datetime",initialValue:()=>(new Date).toISOString(),description:"Used for sorting, not displayed on the site"}),(0,o.Z2j)({name:"dateTimeString",title:"Date",type:"string"}),(0,o.Z2j)({name:"body",title:"Body",type:"blockContent"})],preview:{select:{title:"title",subtitle:"dateTimeString",media:"image"},prepare(e){let{title:t,subtitle:i,media:l}=e;return{title:t,subtitle:i,media:l}}}}),L=i(40168),P=(0,o.feb)({type:"document",name:"page",title:"Page",titlePlural:"Pages",icon:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:"\ud83d\udcdc"}),fields:[(0,o.Z2j)({type:"string",name:"title",title:"Title",validation:e=>e.required()}),(0,o.Z2j)({type:"slug",name:"slug",title:"Slug",options:{source:"title"},validation:e=>e.required(),readOnly:e=>{let{document:t}=e;var i,l;return["homepage","whats-on","news","recordings"].includes(null===(l=t)||void 0===l||null===(i=l.slug)||void 0===i?void 0:i.current)}}),(0,o.Z2j)({name:"image",title:"Splash Image",type:"image",description:"Used on the homepage when the website first loads.",hidden:e=>{let{document:t}=e;var i,l;return!["homepage"].includes(null===(l=t)||void 0===l||null===(i=l.slug)||void 0===i?void 0:i.current)},fields:[(0,o.Z2j)({name:"whiteText",title:"White Text",type:"boolean",description:"Use white text instead of black. CHECK CAREFULLY!"})]}),(0,o.Z2j)({name:"pageBuilderBlocks",title:"Blocks",type:"array",of:[(0,o.quX)({name:"pageBuilderBlock",title:"Content Block",type:"pageBuilderBlock"}),(0,o.quX)({name:"eventReference",title:"Event Reference",type:"reference",icon:L.Que,to:[{type:"event"}]})],hidden:e=>{let{document:t}=e;var i,l;return["homepage","whats-on","news","recordings"].includes(null===(l=t)||void 0===l||null===(i=l.slug)||void 0===i?void 0:i.current)}}),(0,o.Z2j)({name:"pageBuilderBlocksHomepage",title:"Blocks",type:"array",of:[(0,o.quX)({name:"pageBuilderBlock",title:"Content Block",type:"pageBuilderBlock"}),(0,o.quX)({name:"eventReference",title:"Event Reference",type:"reference",icon:L.Que,to:[{type:"event"}]})],hidden:e=>{let{document:t}=e;var i,l;return!["homepage"].includes(null===(l=t)||void 0===l||null===(i=l.slug)||void 0===i?void 0:i.current)}}),(0,o.Z2j)({name:"featuredEvents",title:"Featured Events",type:"array",of:[(0,o.quX)({name:"featuredEvent",title:"Featured Event",type:"reference",to:[{type:"event"}]})],validation:e=>e.max(1),description:"Choose an event to feature.",hidden:e=>{let{document:t}=e;var i,l;return!["whats-on","recordings"].includes(null===(l=t)||void 0===l||null===(i=l.slug)||void 0===i?void 0:i.current)}}
1),(0,o.Z2j)({name:"activeEventCategories",title:"Active Event Categories",type:"array",description:"Used to define the order of categories on the events page.",of:[(0,o.quX)({name:"category",title:"Category",type:"reference",to:[{type:"eventCategory"}]})],hidden:e=>{let{document:t}=e;var i,l;return!["whats-on"].includes(null===(l=t)||void 0===l||null===(i=l.slug)||void 0===i?void 0:i.current)}}),(0,o.Z2j)({name:"seo",title:"SEO",type:"seo"})],preview:{select:{title:"title",subtitle:"slug.current"},prepare(e){const{title:t,subtitle:i}=e;return{title:t,subtitle:i}}}}),E=(0,o.feb)({name:"plantLibraryBed",title:"Plant Library Bed",titlePlural:"Plant Library Beds",icon:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:"\ud83d\udecf\ufe0f"}),type:"document",fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"slug",title:"Slug",type:"slug",options:{source:"title",maxLength:96,isUnique:(e,t)=>t.defaultIsUnique(e,t)},validation:e=>e.required(),description:"https://www.sergehillproject.co.uk/the-plant-library/[slug]"}),(0,o.Z2j)({name:"file",title:"File",type:"file",options:{accept:"image/*, application/pdf"}})],preview:{select:{title:"title",subtitle:"dateTimeString",media:"image"},prepare(e){let{title:t,subtitle:i,media:l}=e;return{title:t,subtitle:i,media:l}}}}),C=(0,o.feb)({name:"pressItem",title:"PressItem",titlePlural:"Press Items",icon:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:"\ud83d\udcf8"}),type:"document",fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"slug",title:"Slug",type:"slug",options:{source:"title",maxLength:96,isUnique:(e,t)=>t.defaultIsUnique(e,t)},validation:e=>e.required()}),(0,o.Z2j)({name:"image",title:"Cover Image",type:"image",options:{hotspot:!0}}),(0,o.Z2j)({name:"date",title:"Date",type:"datetime",initialValue:()=>(new Date).toISOString(),description:"Used for sorting, not displayed on the site"}),(0,o.Z2j)({name:"dateTimeString",title:"Publication / Date",type:"string"}),(0,o.Z2j)({name:"link",title:"Link",type:"url"}),(0,o.Z2j)({name:"linkTextOverride",title:"Link Text Override",type:"string",description:'Optional. If not provided, the link text will default to "Read the article" (for consistency).'})],preview:{select:{title:"title",subtitle:"dateTimeString",media:"image"},prepare(e){let{title:t,subtitle:i,media:l}=e;return{title:t,subtitle:i,media:l}}}}),F=(0,o.feb)({name:"settings",title:"Settings",titlePlural:"Settings",type:"document",icon:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:"\u2699\ufe0f"}),fields:[(0,o.Z2j)({name:"header",title:"Header",description:"Define the content for the header.",type:"object",options:{collapsed:!1,collapsible:!0},fields:[(0,o.Z2j)({name:"navigation",title:"Navigation",description:"Define the navigation items for the header.",type:"array",of:[(0,o.quX)({type:"reference",to:[{type:"page"}]})]})]}),(0,o.Z2j)({name:"footer",title:"Footer",description:"Define the content for the footer.",type:"object",options:{collapsed:!1,collapsible:!0},fields:[(0,o.Z2j)({name:"addressInformation",title:"Address Information",description:"Define the address for the footer.",type:"object",fields:[(0,o.Z2j)({name:"companyNumber",title:"Company Number",type:"string"}),(0,o.Z2j)({name:"address",title:"Address",type:"string"}),(0,o.Z2j)({name:"googleMapsLink",title:"Google Maps Link",description:"Link to the Google Maps location.",type:"string"})]}),(0,o.Z2j)({name:"navigation",title:"Navigation",description:"Define the navigation items for the footer.",type:"array",of:[(0,o.quX)({type:"reference",to:[{type:"page"}],icon:L.$lS}),(0,o.quX)({type:"modalNewsletter",title:"Newsletter Modal"}),(0,o.quX)({type:"linkDonationForm",title:"Donation Form Link"}),(0,o.quX)({type:"linkExternal",title:"External Link"})]})]}),(0,o.Z2j)({name:"seo",title:"SEO Fallbacks",description:"Here you can define a global title, social image and description. Should for any reason you fail to set these on other pages or there is not the content available for me to automate, the content here will still exist as a fallback.",type:"object",options:{collapsed:!1,collapsible:!0},fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"description",title:"Description",type:"text",validation:e=>e.required()}),(0,o.Z2j)({name:"image",title:"Image",type:"image",description:"Used for both search engine results and social cards."})]})],preview:{prepare:()=>({title:"Settings"})}}),X=(0,o.feb)({name:"thePlantLibrary",title:"The Plant Library",titlePlural
1:"The Plant Library",type:"document",icon:()=>(0,l.jsx)(q(),{style:{fontSize:"2rem"},symbol:"\ud83d\udcda"}),fields:[(0,o.Z2j)({name:"pageBuilderBlocks",title:"Pre-Login Content",type:"array",of:[(0,o.quX)({name:"pageBuilderBlock",title:"Content Block",type:"pageBuilderBlock"})]}),(0,o.Z2j)({name:"password",title:"Password",type:"string"}),(0,o.Z2j)({name:"postLoginContent",title:"Post-Login Content",type:"object",fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string"}),(0,o.Z2j)({name:"text",title:"Text",type:"blockContent"})]}),(0,o.Z2j)({name:"downloads",title:"Downloads",type:"array",of:[{name:"download",title:"Download",type:"object",fields:[{name:"title",title:"Title",type:"string",validation:e=>e.required()},{name:"file",title:"File",type:"file",validation:e=>e.required()}]}]}),(0,o.Z2j)({name:"plantLibrarySheet",title:"Plant Library Sheet",type:"file"})],preview:{prepare:()=>({title:"The Plant Library (Member\u2019s Portal)"})}}),D=(0,o.feb)({title:"Block Content",name:"blockContent",type:"array",of:[(0,o.Z2j)({title:"Block",type:"block",styles:[{title:"Normal",value:"normal"}],lists:[{title:"Bullet",value:"bullet"}],marks:{decorators:[],annotations:[{title:"External Link",name:"link",type:"object",fields:[{title:"URL",name:"href",type:"url",validation:e=>e.uri({scheme:["http","https","mailto","tel"]})}]}]}})]}),U=i(17206),_={title:"Credits Block",name:"creditsBlock",type:"object",icon:L.DZP,fields:[{name:"credits",title:"Credits",type:"array",of:[{name:"credit",title:"Credit",type:"object",fields:[{name:"title",title:"Title",type:"string"},{name:"names",title:"Names",type:"simpleBlockContent"}]}]}],preview:{select:{media:"image",text:"text"},prepare(e){const{media:t,text:i}=e;return{title:"Credits Block",subtitle:(0,U.Kv)(i)}}}},N={title:"Image Block",name:"imageBlock",type:"image",icon:L.XBm,fields:[(0,o.Z2j)({name:"size",title:"Size",type:"string",options:{list:[{title:"Medium",value:"medium"},{title:"Large",value:"large"}],layout:"dropdown"},initialValue:"medium"}),(0,o.Z2j)({name:"alt",title:"Alternative Text",description:"Required for accessibility and SEO.",type:"string"})],preview:{select:{media:"asset",alt:"alt"},prepare:e=>{let{media:t,alt:i}=e,l="";return i&&(l="Alt: "+i),{title:"Image Block",subtitle:l,media:t}}}},O=(0,o.feb)({title:"Donation Form Link",name:"linkDonationForm",type:"object",icon:L.h_8,initialValue:{newWindow:!0},fields:[(0,o.Z2j)({title:"Title",name:"title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"url",title:"URL",type:"url",validation:e=>e.required().uri({scheme:["http","https","mailto","tel"]})}),(0,o.Z2j)({title:"Open in a new window?",name:"newWindow",type:"boolean"})],preview:{select:{title:"title",url:"url"},prepare(e){const{title:t,url:i}=e;let l=[];return i&&l.push("Donation Form \u2192 ".concat(i)),{subtitle:l.join(" "),title:t}}}}),V=(0,o.feb)({title:"External Link",name:"linkExternal",type:"object",icon:L.etD,initialValue:{newWindow:!0},fields:[(0,o.Z2j)({title:"Title",name:"title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"url",title:"URL",type:"url",validation:e=>e.required().uri({scheme:["http","https","mailto","tel"]})}),(0,o.Z2j)({title:"Open in a new window?",name:"newWindow",type:"boolean"})],preview:{select:{title:"title",url:"url"},prepare(e){const{title:t,url:i}=e;let l=[];return i&&l.push("External link \u2192 ".concat(i)),{subtitle:l.join(" "),title:t}}}}),R=(0,o.feb)({title:"Internal Link",name:"linkInternal",type:"object",icon:L.xPt,fields:[(0,o.Z2j)({title:"Title",name:"title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"reference",type:"reference",weak:!0,validation:e=>e.required(),to:[{type:"page"},{type:"event"},{type:"thePlantLibrary"}]})],preview:{select:{reference:"reference",referenceTitle:"reference.title",referenceType:"reference._type",title:"title"},prepare(e){const{reference:t,referenceTitle:i,referenceType:l,title:n}=e;let a=[];return t?"thePlantLibrary"===l?a.push(["Internal link \u2192 The Plant Library"]):a.push(["Internal link \u2192 ".concat(i)]):a.push("(Nonexistent document reference)"),{subtitle:a.join(" "),title:n}}}}),M=(0,o.feb)({title:"Donate Modal",name:"modalDonate",type:"object",icon:L.r7p,fields:[(0,o.Z2j)({title:"Title",name:"title",type:"string",validation:e=>e.required()})],preview:{select:{title:"title",url:"url"},prepare(e){const{title:t,url:i}=e;return{title:t,subtitle:"Open modal \u2192 Donate Form"}}}}),z=(0,o.feb)({title:"Friend Modal",name:"modalFriend",type:"object",icon:L.h_8,fields:[(0,o.Z2j)({title:"Title",name:"title",type:"string",validation:e=>e.required()})],preview:{select:{title:"title",url:"url"},prepare(e){const{title:t,url:i}=e;return{title:t,subtitle:"Open modal \u2192 Friend Form"}}}}),A=(0,o.feb)({title:"Newsletter Modal",name:"modalNewsletter",type:"object",icon:L._XJ,fields:[(0,o.Z2j)({title:"Title",name:"title",type:"string",validation:e=>e.required()})],preview:{select:{title:"title",url:"url"},prepare(e){const{title:t,url:i}=e;return{title:t,subtitle:"Open modal \u2192 Newsletter Sign-up Form"}}}}),W={title:"Page Builder Block",name:"pageBuilderBlock",type:"object",icon:L.$lS,fields:[(0,o.Z2j)({name:"leadMedia",title:"Media",type:"array",of:[(0,o.quX)({name:"image",title:"Image",type:"image",icon:L.XBm,options:{hotspot:!0}}),(0,o.quX)({name:"video",title:"Video",type:"mux.video",icon:L.o1U})]}),(0,o.Z2j)({name:"textItems",title:"Text Items",type:"array",of:[(0,o.quX)({name:"textItem",title:"Text Item",type:"object",icon:L.$lS,fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string"}),(0,o.Z2j)({name:"text",title:"Text",type:"blockContent"})],preview:{select:{title:"title",text:"text"},prepare(e){const{title:t,text:i}=e;return{title:t||"Text Block",subtitle:(0,U.Kv)(i)}}}}),(0,o.quX)({name:"donationFormLink",title:"Donation Form Link",type:"linkDonationForm"}),(0,o.quX)({name:"internalLink",title:"Internal Link",type:"linkInternal"}),(0,o.quX)({name:"externalLink",title:"External Link",type:"linkExternal"}),(0,o.quX)({name:"emailFormReference",title:"Email Form Link",type:"object",icon:L._XJ,fields:[(0,o.Z2j)({name:"title",title:"Title",type:"string",validation:e=>e.required()}),(0,o.Z2j)({name:"emailForm",title:"Email Form",type:"reference",to:[{type:"emailForm"}],validation:e=>e.required()})],preview:{select:{title:"title",emailForm:"emailForm.title"},prepare(e){const{title:t,emailForm:i}=e;return{title:t,subtitle:"Open modal (email form) \u2192 ".concat(i)}}}}),(0,o.quX)({name:"modalNewsletter",title:"Newsletter Modal Link",type:"modalNewsletter"}),(0,o.quX)({name:"inlineImage",title:"Inline Image",type:"image",icon:L.XBm}),(0,o.quX)({name:"peopleList",title:"People List",type:"pageBuilderBlockPeopleList"})],validation:e=>e.required().min(1).error("Media-only blocks are not supported by APFEL\u2019s design. Please add a text item, which could be an inline image.")})],preview:{select:{leadMedia:"leadMedia",textItems:"textItems"},prepare(e){const{leadMedia:t=[],textItems:i=[]}=e;let l="Page Builder Block";if(i.length>0)for(let n=0;n<i.length;n++){const e=i[n];if(e.title){l=e.title;break}if(e.text){l=(0,U.Kv)(e.text);break}}
1return{title:l,subtitle:"".concat(t.length?"Media: ".concat(t.length,", "):"","Text: ").concat(i.length),media:t.length>0?t[0]:L.$lS}}}},H={title:"People List",name:"pageBuilderBlockPeopleList",type:"object",icon:L.oyc,fields:[(0,o.Z2j)({name:"people",title:"People",type:"array",of:[(0,o.quX)({name:"person",title:"Person",type:"object",fields:[(0,o.Z2j)({name:"image",title:"Image",type:"image"}),(0,o.Z2j)({name:"name",title:"Name",type:"string"}),(0,o.Z2j)({name:"body",title:"Body",type:"blockContent"}),(0,o.Z2j)({name:"externalLinks",title:"External Links",type:"array",of:[(0,o.quX)({name:"externalLink",title:"External Link",type:"linkExternal"})]})],preview:{select:{media:"image",title:"name",text:"body"},prepare(e){const{title:t,media:i,text:l}=e;return{title:t,subtitle:(0,U.Kv)(l),media:i}}}})]})],preview:{select:{people:"people"},prepare(e){const{people:t=[]}=e;return{title:"People List (".concat(t.length,")"),subtitle:t.map((e=>e.name)).join(", "),media:t.length&&t[0].image}}}},K=(0,o.feb)({name:"seo",title:"SEO",type:"object",options:{collapsed:!1,collapsible:!0},fields:[(0,o.Z2j)({name:"description",title:"Description",type:"text"}),(0,o.Z2j)({name:"image",title:"Image",type:"image",description:"Used for both search engine results and social cards."}),(0,o.Z2j)({name:"priority",title:"Priority",type:"number",description:"Between 0 and 1. Used for order of pages below main result in search engine results. Higher numbers are higher priority. Pages default to 0.5 so should be higher than that if important or lower if not.",validation:e=>e.min(0).max(1)})]}),$=(0,o.feb)({title:"Block Content",name:"simpleBlockContent",type:"array",rows:5,of:[(0,o.quX)({title:"Block",type:"block",styles:[{title:"Normal",value:"normal"}],lists:[],marks:{decorators:[{title:"Italic",value:"em"}],annotations:[{title:"External Link",name:"link",type:"object",fields:[{title:"URL",name:"href",type:"url",validation:e=>e.uri({scheme:["http","https","mailto","tel"]})}]}]}})]}),J={title:"Text Block",name:"textBlock",type:"object",icon:L.$lS,fields:[{name:"text",title:"Text",type:"blockContent"}],preview:{select:{media:"image",text:"text"},prepare(e){const{media:t,text:i}=e;return{title:"Text Block",subtitle:(0,U.Kv)(i)}}}},Q=(0,o.feb)({title:"Video",name:"videoBlock",type:"object",icon:L.o1U,fields:[(0,o.Z2j)({title:"Video file",name:"video",type:"mux.video"}),(0,o.Z2j)({name:"body",title:"Caption",type:"simpleBlockContent"})],preview:{select:{media:"video.asset.data",videoStill:"video.asset.data.playback_ids.0.id"},prepare:e=>{let{media:t,videoStill:i}=e,n=null;return i&&(n=(0,l.jsx)("img",{src:"https://image.mux.com/"+i+"/thumbnail.jpg"})),{title:"Video",media:n}}}});const G=i(34155).env.NEXT_PUBLIC_SANITY_PROJECT_TITLE||"The Serge Hill Project",Y=[P.name,B.name],ee=[F.name,X.name],te=[[P,[B,I],S,C,[X,E],T],[F]];var ie,le=(0,o.ZDM)({basePath:"/studio",projectId:p.Sx,dataset:p.gx,title:G,schema:{types:[T,B,I,S,P,E,C,F,X,_,D,N,O,V,R,M,z,A,W,H,K,$,J,Q]},plugins:[(0,w.P0)({structure:(e=>t=>{const i=e=>[t.view.form(),...Y.includes(e.name)?[t.view.component((e=>(0,l.jsx)(h,{previewSecretId:p.wc,apiVersion:p.tW,...e}))).title("Preview")]:[]],n=e=>{if(e&&e.length)return e.map((e=>{return Array.isArray(e)?t.listItem().title(e[0].titlePlural).icon(e[0].icon).child(t.list().title(e[0].titlePlural).items(n(e))):ee.includes(e.name)?(l=e,t.listItem().title(l.title).icon(l.icon).child(t.editor().id(l.name).schemaType(l.name).documentId(l.name).views(i(l)))):(e=>t.listItem().title(e.titlePlural).icon(e.icon).child(t.documentTypeList(e.name).title(e.title).child((l=>t.document().documentId(l).schemaType(e.name).views(i(e))))))(e);var l}))};return t.list().title("Content").items((e=>{if(e&&e.length)return e.map((e=>[n(e),t.divider()])).flat(2)})(e))})(te),defaultDocumentNode:(e=>{let{apiVersion:t,previewSecretId:i}=e;return(e,n)=>{let{schemaType:a}=n;return Y.includes(a)?e.document().views([e.view.form(),e.view.component((e=>(0,l.jsx)(h,{previewSecretId:i,apiVersion:t,...e}))).title("Preview")]):null}})({apiVersion:p.tW,previewSecretId:p.wc})}),(ie=[...ee,"media.tag"],{name:"singletonPlugin",document:{newDocumentOptions:(e,t)=>{let{creationContext:i}=t;return"global"===i.type?e.filter((e=>!ie.includes(e.templateId))):e},actions:(e,t)=>{let{schemaType:i}=t;return ie.includes(i)?e.filter((e=>{let{action:t}=e;return!["duplicate","delete","unpublish"].includes(t)})):e}}}),j({apiVersion:p.tW,previewSecretId:p.wc,types:Y}),(0,k.uj)(),(0,x.UT)(),(0,m.B)(),(0,d.T)({defaultApiVersion:p.tW})]});const ne=(0,i(14141).vJ)((e=>{let{theme:t}=e;return{html:{fontSize:"100%"},body:{fontSize:"100%"}}}));function ae(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a(),{children:Object.entries(s.P).map((e=>{let[t,i]=e;return(0,l.jsx)("meta",{name:t,content:i},t)}
1))}),(0,l.jsx)(r.nD,{config:le,children:(0,l.jsxs)(o.LOQ,{config:le,children:[(0,l.jsx)(ne,{}),(0,l.jsx)(o.WVR,{})]})})]})}},24654:function(){}},function(e){e.O(0,[774,272,911,810,375,885,662,32,510,864,990,584,702,632,888,179],(function(){return t=49592,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.