PageSourceSearch

https://www.boswellbookfestival.co.uk/a4706be6ac37e549669920d788f9f752f8a7a4a7-4a54a914e2a57c486aa1.js

js boswellbookfestival.co.uk collected 2026-10-02 12:25:20 UTC 15,246 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkboswell_book_festival=self.webpackChunkboswell_book_festival||[]).push([[440],{5464:function(e,t,a){var n=a(6540),r=a(5719);t.A=e=>{const{date:t}=e,a=new Date(t).getDay(),s=(0,r.AF)(t);return n.createElement("div",{className:"absolute bottom-0 left-0 w-12 h-12 p-1 bg-white"},n.createElement("p",{className:"text-sm text-center font-bold"},["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][a]),n.createElement("p",{className:"text-xs text-center"},s))}},7701:function(e,t,a){a.d(t,{A:function(){return p}});var n=a(6540),r=a(8693),s=(a(6910),a(5464)),i=a(8557);const o="/sales",l=e=>{const t=(e=>{if(!e||"string"!=typeof e)return null;const t=e.startsWith("/")?e:"/"+e;return t===o||t.startsWith(o+"/")?t:""+o+t})(e);return t?"https://tickets.boswellbookfestival.co.uk"+t:null};function c(e){const{data:t,showEventDate:a=!0}=e,r=l(t.urlPath),o=(e=>{if(!e)return null;if("string"==typeof e)return e;const t=e.url||e.src||e.path;return t?t.startsWith("http")?t:"https://tickets.boswellbookfestival.co.uk"+(t.startsWith("/")?t:"/"+t):null})(t.image),c=(m=t).description||m.webCopy||m.templateSummary||"";var m;const d=t.startDateTime||t.startDate,h=!!(u=d)&&!isNaN(new Date(u).getTime());var u;return n.createElement("div",{className:"group shadow-md bg-white flex flex-col items-center"},r?n.createElement("a",{href:r,className:"block w-full",onClick:()=>{const e={ticketUrl:r,eventId:t.id||t.performanceId||t.showId,eventName:t.name,eventCategory:t.genre,festivalYear:d?new Date(d).getFullYear():null};(0,i.QH)(e),(0,i.pL)(Object.assign({},e))}},n.createElement("div",{className:"w-full relative overflow-hidden"},o?n.createElement("img",{src:o,alt:t.name,className:"w-full h-auto transition-transform duration-300 ease-out group-hover:scale-105"}):n.createElement("div",{className:"h-40 bg-gray-100"}),a&&h&&n.createElement(s.A,{date:d})),n.createElement("div",{className:"p-2"},n.createElement("h2",{className:"mb-2 text-lg font-heading leading-tight text-bbf-dark-green pb-1 border-b-2 border-bbf-mid-green-alt"},t.name),n.createElement("div",{className:"text-sm line-clamp-4 max-h-20 overflow-hidden",dangerouslySetInnerHTML:{__html:c}}))):n.createElement("div",{className:"block w-full"},n.createElement("div",{className:"w-full relative overflow-hidden"},o?n.createElement("img",{src:o,alt:t.name,className:"w-full h-auto transition-transform duration-300 ease-out group-hover:scale-105"}):n.createElement("div",{className:"h-40 bg-gray-100"}),a&&h&&n.createElement(s.A,{date:d})),n.createElement("div",{className:"p-2"},n.createElement("h2",{className:"mb-2 text-lg font-heading leading-tight text-bbf-dark-green pb-1 border-b-2 border-bbf-mid-green-alt"},t.name),n.createElement("div",{className:"text-sm line-clamp-4 max-h-20 overflow-hidden",dangerouslySetInnerHTML:{__html:c}}))))}const m="/sales",d=[{startDateTime:"2021-05-16T14:00:00",startDate:"2021-05-16T00:00:00",startTime:"14:00:00",endDateTime:"2021-05-16T15:00:00",endDate:"2021-05-16T00:00:00",endTime:"15:00:00",displayEndTime:!1,displayStartTime:!0,displayDuration:!1,show:"Celebrating National Biographer's Day",space:null,venue:"Dumfries House",genre:"Main Festival",status:{isFree:!0,isSoldOut:!1,isLimited:!1,status:"NotOnSale",statusText:" (Not on sale)",statusCssClass:"monad-not-on-sale",callToAction:"More Info",minPrice:0,maxPrice:0},id:"560763b8-1f0b-f111-ba5b-0210bc7314a7",name:"Celebrating National Biographer's Day",urlName:"celebrating-national-biographe",urlPath:"/past-festivals/2021/celebrating-national-biographe",description:"",webCopy:"<h1>Broadcast LIVE from Auchinleck Churchyard, Ayrshire\r\n</h1><h2>With Peter Ross &amp; Gordon Turnbull\r\n</h2><p>The great biographer and diarist James Boswell lies in his eternal resting place, with his immediate family members, in the ancestral tomb at Auchinleck. Surrounding him in the graveyard lie many of the Ayrshire folk of his time, immortalised by mention in his marvellous diaries and letters.\r\n</p><p>\r\nAs award-winning journalist, Peter Ross notes in his lyrical and moving book, A Tomb with a View: The Stories and Glories of Graveyards, in death there is life: 'there is nothing quite like a turn among the headstones to remind us that we are al
1ive'.\r\n</p><p>\r\nGordon Turnbull, head of the Yale Boswell Editions, notes that in this very special place, we remember not only life, but the Life - Boswell's Life of Samuel Johnson, the pathbreaking biographical achievement that issued from the deepest Boswellian impulse - to remember and to commemorate.\r\n</p><p>\r\nNational Biographers' Day falls on May 16th, the date chosen to commemorate that day in 1763 when a chance meeting between the young Scot and the English man of letters Samuel Johnson led to a brief, hurried diary record that, with many other later ones, was crafted by Boswell's hand into a monumental biographical commemoration.</p><p>\r\n\r\nJoin Peter Ross as he guides us into a fascinating 'grave new world', and Gordon Turnbull in conversation with James Knox, charting Boswell's drive to record, to refuse to allow those who have gone before us to 'evaporate in oblivion'\r\n</p><p>\r\nTo hear Dr. Gordon Turnbull's unabridged talk <a href=\"https://www.youtube.com/watch?v=soAzBhKYgNU\" target=\"_blank\">click </a>here.</p><p><br></p>",image:null,templateFull:null,templateSummary:null,performanceId:"560763b8-1f0b-f111-ba5b-0210bc7314a7",showId:"560763b8-1f0b-f111-ba5b-0210bc7314a7",venueId:"04e297ef-005c-ec11-a9ba-a546eb375029",spaceId:"560763b8-1f0b-f111-ba5b-0210bc7314a7",genreId:"265811cc-0561-ed11-a9bb-f7a469aec016",extraData:null},{startDateTime:"2025-05-09T17:00:00",startDate:"2025-05-09T00:00:00",startTime:"17:00:00",endDateTime:"2025-05-09T18:00:00",endDate:"2025-05-09T00:00:00",endTime:"18:00:00",displayEndTime:!1,displayStartTime:!0,displayDuration:!1,show:"Rob Close & Gillian Hope",space:"Boswell Marquee",venue:"Dumfries House",genre:"Streamed",status:{isFree:!1,isSoldOut:!1,isLimited:!1,status:"NotOnSale",statusText:" (Not on sale)",statusCssClass:"monad-not-on-sale",callToAction:"More Info",minPrice:10,maxPrice:10},id:"017025ad-c2d5-f011-ba5b-0210bc7314a7",name:"Rob Close & Gillian Hope",urlName:"rob-close--gillian-hope-1",urlPath:"/past-festivals/2025/rob-close--gillian-hope-1",description:"Historians Rob Close & Gillian Hope will appear at the Boswell Book Festival 2025, to share the stories of young men from Ayrshire and Sanquhar thrust into the tumult of the First World War.",webCopy:"<p>Named after their commanding officer,&nbsp;Boswell's Galloping Farmers&nbsp;was the nickname given to the Ayrshire Yeomanry in the First World War, a volunteer cavalry regiment retrained as grenadier infantry. Sent to Gallipoli to fight the Turks in 1915, four yeomen give their own accounts of their involvement in the campaign.</p><p>Elsewhere in Southwest Scotland, John Hope and four friends joined the Seaforth Highlanders and set off for the Western Front.&nbsp;The Sanquhar Boys and the Seaforths&nbsp;unveils John's diaries, chronicling their journey from enlistment in 1915 to the end of the war. Written in secret, these records bear witness to the unimaginable realities faced by these young soldiers. The sole survivor of the five pals, John kept these diaries hidden, sharing the truth of his experiences only towards the end of his life.</p><p>John's granddaughter, Gillian Hope, and Rob Close, editor of&nbsp;Boswell's Galloping Farmers, tell the story of these remarkable personal records.</p>",image:{id:"c47125ad-c2d5-f011-ba5b-0210bc7314a7",altText:"",path:"/sales/images/image.ashx?imageId=c47125ad-c2d5-f011-ba5b-0210bc7314a7"},templateFull:null,templateSummary:null,performanceId:"017025ad-c2d5-f011-ba5b-0210bc7314a7",showId:"017025ad-c2d5-f011-ba5b-0210bc7314a7",venueId:"04e297ef-005c-ec11-a9ba-a546eb375029",spaceId:"017025ad-c2d5-f011-ba5b-0210bc7314a7",genreId:"08f78395-0561-ed11-a9bb-f7a469aec016",extraData:{doors:""}},{startDateTime:"2025-05-09T18:15:00",startDate:"2025-05-09T00:00:00",startTime:"18:15:00",endDateTime:"2025-05-09T19:15:00",endDate:"2025-05-09T00:00:00",endTime:"19:15:00",displayEndTime:!1,displayStartTime:!0,displayDuration:!1,show:"Film Premiere",space:null,venue:"Dumfries House",genre:"Main Festival",status:{isFree:!0,isSoldOut:!1,isLimited:!1,status:"NotOnSale",statusText:" (Not on sale)",statusCssClass:"monad-not-on-sale",callToAction:"More Info",minPrice:0,maxPrice:0},id:"08fe309a-1f0b-f111-ba5b-0210bc7314a7",name:"Film Premiere",urlName:"film-premiere",urlPath:"/past-festivals/2025/film-premiere",description:"",webCopy:"<p>Film Premiere: <strong>James 'Corsica' Boswell\r\n</strong></p><p>\r\nCorsican filmmaker Lionel Dumas-Perini introduces his fascinating new documentary on the intertwined lives and times of James Boswell and Corsica's rebel leader, General Pascale Paoli. Filmed against backdrops in Corsica, London and Ayrshire, Dumas-Perini brings to life, through actors as well as interviews with international Boswell scholars and enthusiasts, the remarkable tale of the young James Boswell's friendship with Paoli.\r\n</p><p>\r\nJames Boswell's Grand Tour of Europe in 1765 takes him to Corsica where he meets Paoli who becomes the hero in his 1768 book, <em>An Account of Corsica</em>, which chronicless Corsica's struggle for independence from the Genoese. An instant best-seller, the book brought Paoli lasting fame, not least with fellow Corsican Napoleon Bonaparte. Corsica's democratic constitution, drafted by Paoli, went on to inspire Benjamin Franklin and George Washington who used it for the blueprint for the American Constitution.\r\n</p><p>\r\nPaoli exiled himself in London in 1769 and was to remain a lifelong friend of Boswell.\r\n</p><p>\r\n<strong>Introduced by Gordon Turnbull</strong></p>",image:{id:"4b748b41-2f0b-f111-ba5b-0210bc7314a7",altText:"",path:"/sales/images/image.ashx?imageId=4b748b41-2f0b-f111-ba5b-0210bc7314a7"},templateFull:null,templateSummary:null,performanceId:"08fe309a-1f0b-f111-ba5b-0210bc7314a7",showId:"08fe309a-1f0b-f111-ba5b-0210bc7314a7",venueId:"04e297ef-005c-ec11-a9ba-a546eb375029",spaceId:"08fe309a-1f0b-f111-ba5b-0210bc7314a7",genreId:"265811cc-0561-ed11-a9bb-f7a469aec016",extraData:null}],h=(e,t)=>e.startDate||t.startDate?e.startDate?t.startDate?new Date(e.startDate)-new Date(t.startDate):-1:1:0,u=e=>{if(!e||"string"!=typeof e)return e;const t=e.startsWith("/")?e:"/"+e;return t===m||t.startsWith(m+"/")?t:""+m+t},b=e=>e.map((e=>Object.assign({},e,{urlPath:u(e.urlPath)})));var f=e=>{const t=(0,r.useStaticQuery)("24682287"),{endpoint:a,showEventDate:s=!0,testMode:i=!1,noEventsText:o="No events available.",extraCards:l=[]}=e,m=a||t.site.siteMetadata.config.monadEventsApiEndpoint||"https://tickets.boswellbookfestival.co.uk/REST/API/Shows",{0:u,1:f}
1=(0,n.useState)([]),{0:p,1:g}=(0,n.useState)(!1),{0:w,1:v}=(0,n.useState)(!0);if((0,n.useEffect)((()=>{const e=new AbortController;return(async()=>{if(i)return v(!1),f(b(d).sort(h)),void g(!0);try{v(!0);const t=await fetch(m,{signal:e.signal});if(!t.ok)throw new Error("Request failed with status "+t.status);const a=await t.json(),n=Array.isArray(a)?a:[];f(b(n).sort(h)),g(!1)}catch(t){"AbortError"!==t.name&&(f([]),g(!1))}finally{v(!1)}})(),()=>e.abort()}),[m,i]),w)return n.createElement("p",{className:"text-3xl"},"Loading ...");const y=Array.isArray(l)&&l.length>0;return u.length||y?n.createElement(n.Fragment,null,!u.length&&y&&n.createElement("p",null,o),p&&n.createElement("p",{className:"mt-4 text-xs text-gray-500"},"Showing sample event data while live events are unavailable."),n.createElement("div",{className:"mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5"},u.map((e=>n.createElement(c,{data:e,key:e.id||e.showId,showEventDate:s}))),l)):n.createElement("p",null,o)};var p=e=>{var t,a,s,i,o;let{testMode:l=!1,noEventsText:c="No festival events are available right now. Please check back soon."}=e;null===(t=(0,r.useStaticQuery)("2772826003").friendBannerImage)||void 0===t||null===(a=t.childImageSharp)||void 0===a||null===(s=a.gatsbyImageData)||void 0===s||null===(i=s.images)||void 0===i||null===(o=i.fallback)||void 0===o||o.src;return n.createElement("section",{className:"p-4 md:p-12 md:pt-4"},n.createElement("h2",{className:"text-4xl font-heading font-bold mb-8"},"Highlights"),n.createElement(f,{noEventsText:c}))}},5719:function(e,t,a){a.d(t,{AF:function(){return i},YY:function(){return l},_g:function(){return r},oC:function(){return o},rP:function(){return d},xM:function(){return m}});var n=a(4506);const r=e=>{const t=null==e?void 0:e.replace(/T/g," ").replace(/-/g,"/").slice(0,e.length-5);try{const a=new Date(e);return isNaN(a.getTime())?t:e}catch(a){return t}},s=e=>{const t="BST"===e?"Europe/London":e;try{return new Intl.DateTimeFormat([],{timeZone:t}),t}catch(a){return"Europe/London"}},i=function(e,t){if(void 0===t&&(t="Europe/London"),!e)return"";let a=new Date(e);if(isNaN(a.getTime())&&"string"==typeof e){const t=r(e);a=new Date(t)}if(isNaN(a.getTime()))return"";const n=s(t);return new Intl.DateTimeFormat([],{localeMatcher:"best fit",hour:"numeric",minute:"numeric",timeZone:n}).format(a)},o=function(e,t){void 0===t&&(t="GMT+01:00");const a=e.replace(/-/g,"/")+" "+t;return new Intl.DateTimeFormat([],{localeMatcher:"best fit",weekday:"short",year:"numeric",month:"short",day:"numeric",timeZoneName:"short",hour:"numeric",minute:"numeric"}).format(new Date(a))},l=function(e,t){var a;void 0===t&&(t=2022);const n=c(t).filter((t=>{if(!0===t[e]){const e=t.date.split("-")[2];if(e)return e}return!1})),r=n.map((e=>e.date.split("-")[2])),s=new Date;if(r.includes(s.getDate())&&4===s.getMonth()){let e=s.getDate();return e<10&&(e="0"+e),t+"-05-"+e}return(null===(a=n.filter((t=>!0===t[e]))[0])||void 0===a?void 0:a.date)||"2024-05-10"},c=function(e){switch(void 0===e&&(e=2022),e){case 2025:return[{label:"Fri 9th",date:"2025-05-09",main:!0,childrens:!1,schools:!1},{label:"Sat 10th",date:"2025-05-10",main:!0,childrens:!0,schools:!1},{label:"Sun 11th",date:"2025-05-11",main:!0,childrens:!0,schools:!1}];case 2024:return[{label:"Fri 10th",date:"2024-05-10",main:!0,childrens:!1,schools:!1},{label:"Sat 11th",date:"2024-05-11",main:!0,childrens:!0,schools:!1},{label:"Sun 12th",date:"2024-05-12",main:!0,childrens:!0,schools:!1}];case 2023:return[{label:"Fri 12th",date:"2023-05-12",main:!0,childrens:!1,schools:!0},{label:"Sat 13th",date:"2023-05-13",main:!0,childrens:!0,schools:!1},{label:"Sun 14th",date:"2023-05-14",main:!0,childrens:!0,schools:!1}];default:return[{label:"Online Events",date:"2022-06-30",main:!1,childrens:!1,schools:!0},{label:"Fri 13th",date:"2022-05-13",main:!0,childrens:!1,schools:!0},{label:"Sat 14th",date:"2022-05-14",main:!0,childrens:!0,schools:!1},{label:"Sun 15th",date:"2022-05-15",main:!0,childrens:!0,schools:!1}]}},m=function(e,t){void 0===t&&(t=2022);const a=c(t);let r;switch(e){case"childrens":r=a.filter((e=>e.childrens));break;case"main":r=a.filter((e=>e.main));break;case"pre":r=a.filter((e=>e.pre));break;case"schools":r=a.filter((e=>e.schools));break;default:r=(0,n.A)(a)}return r},d=(e,t)=>"schools"===t?new Date(e+"-07-01"):new Date(e+"-06-01")}}]);
2//# sourceMappingURL=a4706be6ac37e549669920d788f9f752f8a7a4a7-4a54a914e2a57c486aa1.js.map

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.