PageSourceSearch

https://culturenow.org/_next/static/chunks/3138-edc5f15e41b60259.js

js culturenow.org collected 2026-09-24 21:06:19 UTC 57,958 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3138],{12182:function(n,e,i){var t=i(34051),l=i.n(t),o=i(85893),r=i(67294),a=i(31732),d=i(6413),s=i(64199),u=(i(87424),i(72610)),c=i(41248),v=i(11163),p=i(1903),h=i(49186);function f(n,e){(null==e||e>n.length)&&(e=n.length);for(var i=0,t=new Array(e);i<e;i++)t[i]=n[i];return t}function g(n,e,i,t,l,o,r){try{var a=n[o](r),d=a.value}catch(s){return void i(s)}a.done?e(d):Promise.resolve(d).then(t,l)}function m(n){return function(n){if(Array.isArray(n))return f(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(!n)return;if("string"===typeof n)return f(n,e);var i=Object.prototype.toString.call(n).slice(8,-1);"Object"===i&&n.constructor&&(i=n.constructor.name);if("Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return f(n,e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=i(75684);e.Z=function(n){var e,i,t,f,x,_,j,w,b,A,C=(0,c.I0)(),N=(0,r.useState)(n.data),k=N[0],I=N[1],S=(0,r.useState)(!1),P=S[0],T=S[1],E=(n.onlyRemarks,n.hasPreview),z=n.handlePreview,M=(0,r.useState)(!1),H=M[0],O=M[1],L=!0===n.showDefaultData,B=(0,v.useRouter)(),R=function(){var n,e=(n=l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,y.getById(null===k||void 0===k?void 0:k.event_id);case 2:e=n.sent,I(e);case 4:case"end":return n.stop()}}),n)})),function(){var e=this,i=arguments;return new Promise((function(t,l){var o=n.apply(e,i);function r(n){g(o,t,l,r,a,"next",n)}function a(n){g(o,t,l,r,a,"throw",n)}r(void 0)}))});return function(){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){!L&&(null===k||void 0===k?void 0:k.event_id)&&R()}),[]);var Z=function(n){var e,i,t=(0,h.h0)((null===n||void 0===n?void 0:n.highlight)||{},"event"),l=Array.isArray(null===n||void 0===n?void 0:n.categories)?n.categories.map((function(n){return null===n||void 0===n?void 0:n.name})).filter(Boolean):[],o=t.dynamicfield["types.name"]||[];if(o.length){var r={};return o.forEach((function(n){var e=n.replace(/<mark>(.*?)<\/mark>/g,"$1");l.forEach((function(i){!r[i]&&i.includes(e)&&(r[i]=n)}))})),l.map((function(n){return r[n]||n})).join(", ")}if(l.length)return l.join(", ");var a=(null===n||void 0===n||null===(e=n.categories)||void 0===e?void 0:e.length)>0&&(null===n||void 0===n||null===(i=n.categories)||void 0===i?void 0:i.map((function(n){return n.category_name})));return a?null===a||void 0===a?void 0:a.toString().replaceAll(",",", "):""},D=function(){C({type:"search",payload:{value:"",label:""}}),(null===n||void 0===n?void 0:n.userCard)?window.open("/event/".concat(k.id),"_blank"):window.open("/event/".concat((null===k||void 0===k?void 0:k.vanity_url)&&encodeURI(null===k||void 0===k?void 0:k.vanity_url)||k.parent_id||k.id),"_blank")},F=function(e){if(n.collectionCard)D();else{var i=e;if(n.handleImageClick&&i){var t,l=(null===k||void 0===k?void 0:k.event_id)||(null===k||void 0===k?void 0:k.id),o=(null===k||void 0===k?void 0:k.image_id)||(null===k||void 0===k||null===(t=k.image)||void 0===t?void 0:t.id);n.previewEntityType&&o?n.handleImageClick(l,o,n.previewEntityType):n.handleImageClick(i)}else D()}},$=function(){T(!P)},U=function(){return(0,h.h0)((null===k||void 0===k?void 0:k.highlight)||{},"event")};return(0,o.jsx)("div",{id:"tl-".concat(null===k||void 0===k?void 0:k.id),className:"".concat(n.cssClass," cursor-pointer h-100"),onMouseEnter:function(){O(!0)},onMouseLeave:function(){O(!1)},children:(0,o.jsxs)("div",{className:"card small border-0 h-100",children:[(0,o.jsx)("div",{onClick:function(){return k&&F((null===k||void 0===k?void 0:k.image_id)||(null===k||void 0===k?void 0:k.event_id)||(null===k||void 0===k?void 0:k.id))},children:(null===k||void 0===k||null===(e=k.image)||void 0===e||null===(i=e.url)||void 0===i?void 0:i.endsWith(".pdf"))?(0,o.jsx)(a.Z,{data:k,entityType:"event",url:null===k||void 0===k||null===(t=k.image)||void 0===t?void 0:t.url,type:"thumb@2x",cssClass:"thumb"}):(0,o.jsx)(a.Z,{newImageUrl:(null===k||void 0===k?void 0:k.image_url)||(null===k||void 0===k?void 0:k.new_image_url),data:k,entityType:"event",entityId:null===k||void 0===k?void 0:k.id,type:"thumb@2x",cssClass:"thumb"})}),(0,o.jsxs)("div",{className:"card-body bg-light cnow-line fz-12 d-flex flex-column p-1 position-relative p-2 \n            ".concat("/search"===B.pathname||B.pathname.includes("/collections")?"search-cnow-card-height":"cnow-card-height"),children:[(0,o.jsx)("div",{className:"d-flex flex-grow-1",onClick:D,children:(0,o.jsxs)("div",{className:"fz-12 w-100 textColorBlack",children:[(0,o.jsx)("div",{children:(0,o.jsx)("span",{className:"fw-bold cnow-ellipsis-1 custom-highlight",children:(null===k||void 0===k||null===(f=k.highlight)||void 0===f||null===(x=f.name)||void 0===x?void 0:x[0])?(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:null===k||void 0===k||null===(_=k.highlight)||void 0===_||null===(j=_.name)||void 0===j?void 0:j[0]}}):(0,s.personName)(k)})}),(0,o.jsx)("div",{className:"cnow-ellipsis-1",children:function(n){var e,i,t=(null===n||void 0===n||null===(e=n.participants)||void 0===e?void 0:e.length)>0&&(null===(i=null===n||void 0===n?void 0:n.participants.filter((function(n){return!0===n.is_primary})))||void 0===i?void 0:i.map((function(n){return n.person_name})));return t?t.toString().replaceAll(",",", "):""}(k)}),(0,o.jsx)("div",{className:"cnow-ellipsis-1",children:(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:function(n){var e,i,t=(0,h.h0)((null===n||void 0===n?void 0:n.highlight)||{},"event"),l=Array.isArray(null===n||void 0===n?void 0:n.hosts)?n.hosts.map((function(n){return null===n||void 0===n?void 0:n.person_name}
1)).filter(Boolean):[],o=t.dynamicfield["hosts.name"]||[];if(o.length){var r={};return o.forEach((function(n){var e=n.replace(/<mark>(.*?)<\/mark>/g,"$1");l.forEach((function(i){!r[i]&&i.includes(e)&&(r[i]=n)}))})),l.map((function(n){return r[n]||n})).join(", ")}if(l.length)return l.join(", ");var a=(null===n||void 0===n||null===(e=n.hosts)||void 0===e?void 0:e.length)>0&&(null===n||void 0===n||null===(i=n.hosts)||void 0===i?void 0:i.map((function(n){return n.person_name})));return a?null===a||void 0===a?void 0:a.toString().replaceAll(",",", "):""}(k)}})}),(0,o.jsxs)("div",{className:"d-flex row",children:[(0,o.jsx)("p",{className:"me-1 custom-highlight",dangerouslySetInnerHTML:{__html:function(n){var e=(0,h.h0)((null===n||void 0===n?void 0:n.highlight)||{},"event"),i=(0,s.formatEventDateRange)(n),t=e.incard["dates.start_date_text"]||[];if(!t.length)return i||"";var l=function(n){return n.replace(/(\d+)(st|nd|rd|th)/gi,"$1").replace(/,/g,"").trim().toLowerCase()},o=t[0],r=o.replace(/<mark>(.*?)<\/mark>/g,"$1");return m(o.matchAll(/<mark>(.*?)<\/mark>/g)).map((function(n){return n[1]})).every((function(n){return l(i).includes(l(n))}))||l(i).includes(l(r))?o:i}(k)}}),(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:function(n){var e,i=null===n||void 0===n||null===(e=n.locations)||void 0===e?void 0:e[0];if(!i)return"";
1var t=(0,s.intelligentAddress)(i,!1,!1);return(0,s.combineAddressParts)((0,s.cleanAddressForAutocomplete)(t))}(k)}})]}),function(){var n=U();return Object.keys(n.incard).length>0}()?(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:Z(k)}}):function(){var n=U();return Object.keys(n.dynamicfield).length>0}()?function(){var n=function(){var n=U().dynamicfield;if(0===Object.keys(n).length)return null;var e,i=Object.keys(n)[0],t=n[i],l=(0,h.aP)(t);return{fieldName:i,displayName:(e=i,{"types.name":"Type",tags:"Tag","sponsors.name":"Sponsor","related_people.name":"Related","related_people.role":"Related","related_people.profession_name":"Related","participants.name":"Participant","participants.role":"Participant","participants.profession":"Participant","hosts.name":"Host","dates.end_date_text":"Date","related_event_series.name":"Event","themes.name":"Theme","locations.full_name":"Address","locations.address":"Address","locations.description":"About"}[e]||e),highlights:t,prioritizedHighlight:l}}();return n?(0,o.jsxs)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",children:[(0,o.jsxs)("span",{className:"fw-bold",children:[n.displayName,": "]}),(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:n.prioritizedHighlight}})]}):null}():(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:Z(k)}})]})}),(0,o.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[!P&&(0,o.jsxs)("div",{className:"d-flex podcast-count",onClick:$,children:[(null===k||void 0===k||null===(w=k.podcasts)||void 0===w?void 0:w.length)>0?(0,o.jsx)(d.Z,{name:"Symbols_Podcast_Black_Outlined",size:20}):"",(0,o.jsx)("div",{className:"ms-2 align-self-end cursor-pointer fw-bold d-flex align-items-center card-podcast-count",children:(null===k||void 0===k||null===(b=k.podcasts)||void 0===b?void 0:b.length)>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"plus-podcast me-1",children:"+"}),(0,o.jsx)("div",{style:{marginBottom:"-4px"},children:null===(A=k.podcasts)||void 0===A?void 0:A.length})]})})]}),!P&&H&&(0,o.jsx)("div",{className:"d-flex align-self-end",children:(0,o.jsx)(p.Z,{hasPreview:E,handlePreview:z,handleImageClick:n.handleImageClick,openImagePreview:function(){return F((null===k||void 0===k?void 0:k.image_id)||(null===k||void 0===k?void 0:k.event_id)||(null===k||void 0===k?void 0:k.id))}})})]}),P&&(0,o.jsx)(u.Z,{id:null===k||void 0===k?void 0:k.id,type:"event",data:null===k||void 0===k?void 0:k.podcasts,entityData:k,handlePodcastPopover:$})]})]})})}},68291:function(n,e,i){var t=i(34051),l=i.n(t),o=i(85893),r=i(67294),a=i(31732),d=i(6413),s=i(64199),u=i(72610),c=i(41248),v=(i(30381),i(11163)),p=i(1903),h=i(49186);function f(n,e,i,t,l,o,r){try{var a=n[o](r),d=a.value}catch(s){return void i(s)}a.done?e(d):Promise.resolve(d).then(t,l)}var g=i(44697);e.Z=function(n){var e,i,t,m,y,x,_,j=(0,c.I0)(),w=(0,r.useState)(n.data),b=w[0],A=w[1],C=(0,r.useState)(!1),N=C[0],k=C[1],I=(n.onlyRemarks,n.hasPreview),S=n.handlePreview,P=(0,r.useState)(!1),T=P[0],E=P[1],z=(0,v.useRouter)();(0,r.useEffect)((function(){M()}),[]);var M=function(){var n,e=(n=l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null===b||void 0===b?void 0:b.event_series_id)){n.next=5;break}return n.next=3,g.getById(null===b||void 0===b?void 0:b.event_series_id);case 3:e=n.sent,A(e);case 5:case"end":return n.stop()}}),n)})),function(){var e=this,i=arguments;return new Promise((function(t,l){var o=n.apply(e,i);function r(n){f(o,t,l,r,a,"next",n)}function a(n){f(o,t,l,r,a,"throw",n)}r(void 0)}))});return function(){return e.apply(this,arguments)}}(),H=function(n){var e,i,t=(0,h.h0)((null===n||void 0===n?void 0:n.highlight)||{},"event_series"),l=Array.isArray(null===n||void 0===n?void 0:n.types)?n.types.map((function(n){return null===n||void 0===n?void 0:n.name})).filter(Boolean):[],o=t.dynamicfield["types.name"]||[];if(o.length){var r={};return o.forEach((function(n){var e=n.replace(/<mark>(.*?)<\/mark>/g,"$1");l.forEach((function(i){!r[i]&&i.includes(e)&&(r[i]=n)}))})),l.map((function(n){return r[n]||n})).join(", ")}if(l.length)return l.join(", ");var a=(null===n||void 0===n||null===(e=n.types)||void 0===e?void 0:e.length)>0&&(null===n||void 0===n||null===(i=n.types)||void 0===i?void 0:i.map((function(n){return n.type_name||n.name})));return a?a.toString().replaceAll(",",", "):""},O=function(n){var e,i=null===n||void 0===n||null===(e=n.locations)||void 0===e?void 0:e[0];if(!i)return"";
1var t=(0,s.intelligentAddress)(i,!1,!1);return(0,s.combineAddressParts)((0,s.cleanAddressForAutocomplete)(t))},L=function(){j({type:"search",payload:{value:"",label:""}}),window.open("/event_series/".concat((null===b||void 0===b?void 0:b.vanity_url)&&encodeURI(null===b||void 0===b?void 0:b.vanity_url)||b.parent_id||b.id),"_blank")},B=function(e){if(n.collectionCard)L();else if(n.handleImageClick&&e){var i=(null===b||void 0===b?void 0:b.event_series_id)||(null===b||void 0===b?void 0:b.parent_id)||(null===b||void 0===b?void 0:b.id),t=(null===b||void 0===b?void 0:b.image_id)||e;n.previewEntityType&&t?n.handleImageClick(i,t,n.previewEntityType):n.handleImageClick(e)}else L()},R=function(){k(!N)},Z=function(){return(0,h.h0)((null===b||void 0===b?void 0:b.highlight)||{},"event_series")};return(0,o.jsx)("div",{id:"tl-".concat(null===b||void 0===b?void 0:b.id),className:"".concat(n.cssClass," cursor-pointer"),onMouseEnter:function(){E(!0)},onMouseLeave:function(){E(!1)},children:(0,o.jsxs)("div",{className:"card h-100 small border-0",children:[(0,o.jsx)("div",{onClick:function(){return b&&B(null===b||void 0===b?void 0:b.image_id)},children:(0,o.jsx)(a.Z,{newImageUrl:null===b||void 0===b?void 0:b.new_image_url,data:b,entityType:"event_series",entityId:null===b||void 0===b?void 0:b.id,type:"thumb@2x",cssClass:"thumb"})}),(0,o.jsxs)("div",{className:"card-body bg-light cnow-line fz-12 d-flex flex-column p-1 position-relative \n            ".concat("/search"===z.pathname||z.pathname.includes("/collections")?"search-cnow-card-height":"cnow-card-height"),children:[(0,o.jsx)("div",{className:"d-flex flex-grow-1",onClick:L,children:(0,o.jsxs)("div",{className:"fz-12 w-100 textColorBlack",children:[(0,o.jsx)("div",{children:(0,o.jsx)("span",{className:"fw-bold cnow-ellipsis-1 custom-highlight",children:(null===b||void 0===b||null===(e=b.highlight)||void 0===e||null===(i=e.name)||void 0===i?void 0:i[0])?(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:null===b||void 0===b||null===(t=b.highlight)||void 0===t||null===(m=t.name)||void 0===m?void 0:m[0]}}):(0,s.personName)(b)})}),(0,o.jsx)("div",{className:"cnow-ellipsis-1",children:function(n){var e,i,t=(null===n||void 0===n||null===(e=n.participants)||void 0===e?void 0:e.length)>0&&(null===(i=null===n||void 0===n?void 0:n.participants.filter((function(n){return!0===n.is_primary})))||void 0===i?void 0:i.map((function(n){return n.person_name})));return t?t.toString().replaceAll(",",", "):""}(b)}),(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:function(n){var e,i,t=(0,h.h0)((null===n||void 0===n?void 0:n.highlight)||{},"event_series"),l=Array.isArray(null===n||void 0===n?void 0:n.hosts)?n.hosts.map((function(n){return null===n||void 0===n?void 0:n.person_name})).filter(Boolean):[],o=t.incard["host.name"]||[];if(o.length){var r={};return o.forEach((function(n){var e=n.replace(/<mark>(.*?)<\/mark>/g,"$1");l.forEach((function(i){!r[i]&&i.includes(e)&&(r[i]=n)}))})),l.map((function(n){return r[n]||n})).join(", ")}if(l.length)return l.join(", ");var a=(null===n||void 0===n||null===(e=n.hosts)||void 0===e?void 0:e.length)>0&&(null===n||void 0===n||null===(i=n.hosts)||void 0===i?void 0:i.map((function(n){return n.person_name})));return a?null===a||void 0===a?void 0:a.toString().replaceAll(",",", "):""}(b)}}),(0,o.jsx)("div",{className:"d-flex",children:O(b)&&(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:O(b)}})}),function(){var n=Z();return Object.keys(n.incard).length>0}()?(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:H(b)}}):function(){var n=Z();return Object.keys(n.dynamicfield).length>0}()?function(){var n=function(){var n=Z().dynamicfield;if(0===Object.keys(n).length)return null;var e,i=Object.keys(n)[0],t=n[i],l=(0,h.aP)(t);return{fieldName:i,displayName:(e=i,{"types.name":"Type","featured.name":"Related",tags:"Tag"}[e]||e),highlights:t,prioritizedHighlight:l}}();return n?(0,o.jsxs)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",children:[(0,o.jsxs)("span",{className:"fw-bold",children:[n.displayName,": "]}),(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:n.prioritizedHighlight}})]}):null}():(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:H(b)}})]})}),(0,o.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[!N&&(0,o.jsxs)("div",{className:"d-flex podcast-count",onClick:R,children:[(null===b||void 0===b||null===(y=b.podcasts)||void 0===y?void 0:y.length)>0?(0,o.jsx)(d.Z,{name:"Symbols_Podcast_Black_Outlined",size:20}):"",(0,o.jsx)("div",{className:"ms-2 align-self-end cursor-pointer fw-bold d-flex align-items-center card-podcast-count",children:(null===b||void 0===b||null===(x=b.podcasts)||void 0===x?void 0:x.length)>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"plus-podcast me-1",children:"+"}),(0,o.jsx)("div",{style:{marginBottom:"-4px"},children:null===(_=b.podcasts)||void 0===_?void 0:_.length})]})})]}),!N&&T&&(0,o.jsx)("div",{className:"d-flex align-self-end",children:(0,o.jsx)(p.Z,{hasPreview:I,handlePreview:S,handleImageClick:n.handleImageClick,openImagePreview:function(){return B(null===b||void 0===b?void 0:b.image_id)}})})]}),N&&(0,o.jsx)(u.Z,{id:null===b||void 0===b?void 0:b.id,type:"event",data:null===b||void 0===b?void 0:b.podcasts,entityData:b,handlePodcastPopover:
1R})]})]})})}},23291:function(n,e,i){var t=i(34051),l=i.n(t),o=i(85893),r=i(67294),a=i(31732),d=i(6413),s=i(64199),u=i(87424),c=i(72610),v=i(41248),p=i(11163),h=i(1903),f=i(49186);function g(n,e){(null==e||e>n.length)&&(e=n.length);for(var i=0,t=new Array(e);i<e;i++)t[i]=n[i];return t}function m(n,e,i,t,l,o,r){try{var a=n[o](r),d=a.value}catch(s){return void i(s)}a.done?e(d):Promise.resolve(d).then(t,l)}function y(n){return function(n){if(Array.isArray(n))return g(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(!n)return;if("string"===typeof n)return g(n,e);var i=Object.prototype.toString.call(n).slice(8,-1);"Object"===i&&n.constructor&&(i=n.constructor.name);if("Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return g(n,e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x=i(21244);e.Z=function(n){var e,i,t,g,_,j,w,b,A,C,N,k,I,S=(0,v.I0)(),P=(0,r.useState)(n.data),T=P[0],E=P[1],z=(0,r.useState)(!1),M=z[0],H=z[1],O=!0===n.onlyRemarks,L=n.hasPreview,B=n.hideYear,R=n.handlePreview,Z=(0,r.useState)(!1),D=Z[0],F=Z[1],$=null===(e=n.data)||void 0===e?void 0:e.hasOwnProperty("pictured"),U=(0,p.useRouter)(),W=function(){var e=function(){var e;return(0,f.h0)((null===(e=n.data)||void 0===e?void 0:e.highlight)||{},"person")}().dynamicfield;if(0===Object.keys(e).length)return null;var i,t=Object.keys(e)[0],l=e[t],o=(0,f.aP)(l);return{fieldName:t,displayName:(i=t,{tags:"Tag","related_sites.name.standard":"Related","image_albums.name":"Related","related_people.name":"Related","credited_sites.name.standard":"Related","direct_events.name":"Event","direct_event_series.name":"Event","tours.name":"Tour","events.name":"Event","related_tours.name":"Tour","event_series.name":"Event"}[i]||i),highlights:l,prioritizedHighlight:o}};(0,r.useEffect)((function(){X()}),[]);var X=function(){var n,e=(n=l().mark((function n(){var e,i,t;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null===T||void 0===T?void 0:T.related_person_id)){n.next=7;break}return n.next=3,x.getById(null===T||void 0===T?void 0:T.related_person_id);case 3:e=n.sent,E(e),n.next=19;break;case 7:if(!(null===T||void 0===T?void 0:T.id)||!(null===T||void 0===T?void 0:T.row_id)&&!$){n.next=14;break}return n.next=10,x.getById(null===T||void 0===T?void 0:T.id);case 10:i=n.sent,E(i),n.next=19;break;case 14:if(!(null===T||void 0===T?void 0:T.person_id)){n.next=19;break}return n.next=17,x.getById(null===T||void 0===T?void 0:T.person_id);case 17:t=n.sent,E(t);case 19:case"end":return n.stop()}}),n)})),function(){var e=this,i=arguments;return new Promise((function(t,l){var o=n.apply(e,i);function r(n){m(o,t,l,r,a,"next",n)}function a(n){m(o,t,l,r,a,"throw",n)}r(void 0)}))});return function(){return e.apply(this,arguments)}}(),q=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(null===n||void 0===n?void 0:n.length)>0&&(null===n||void 0===n?void 0:n.map((function(n){return n.profession_name||n.name})));if(!(i=(null===i||void 0===i?void 0:i.length)>0&&i.filter((function(n){return n})))||0===i.length)return"";var t=y((null===e||void 0===e?void 0:e["professions.profession_name"])||[]).concat(y((null===e||void 0===e?void 0:e["professions.name"])||[]));return t.length?(0,f.Xw)(i,t,"professions"):i.toString()},Y=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(null===n||void 0===n?void 0:n.length)>0&&n.map((function(n){return n.organization_type_name||n.name}));if(!(i=(null===i||void 0===i?void 0:i.length)>0&&i.filter((function(n){return n})))||0===i.length){var t,l,o,r=(null===n||void 0===n||null===(t=n[0])||void 0===t?void 0:t.name)||"";if(!r)return"";var a=(null===e||void 0===e||null===(l=e["organization_types.name"])||void 0===l?void 0:l.find((function(n){var e=n.replace(/<mark>(.*?)<\/mark>/g,"$1");return r.includes(e)})))||(null===e||void 0===e||null===(o=e["publication_types.name"])||void 0===o?void 0:o.find((function(n){var e=n.replace(/<mark>(.*?)<\/mark>/g,"$1");return r.includes(e)})));return a||r}var d=y((null===e||void 0===e?void 0:e["organization_types.organization_type_name"])||[]).concat(y((null===e||void 0===e?void 0:e["organization_types.name"])||[]),y((null===e||void 0===e?void 0:e["publication_types.organization_type_name"])||[]),y((null===e||void 0===e?void 0:e["publication_types.name"])||[]));if(d.length){var s={};return d.forEach((function(n){var e=n.replace(/<mark>(.*?)<\/mark>/g,"$1");
1i.forEach((function(i){!s[i]&&i.includes(e)&&(s[i]=n)}))})),i.map((function(n){return s[n]||n})).join(", ")}return i.toString()},V=function(n){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(null===n||void 0===n||null===(e=n.affiliations)||void 0===e?void 0:e.length))return"";var t=n.affiliations.map((function(n){return n.related_person_name})).filter(Boolean);if(!t.length)return"";var l=y((null===i||void 0===i?void 0:i["affiliations.related_person_name"])||[]).concat(y((null===i||void 0===i?void 0:i["affiliations.credits.name"])||[]));return l.length?(0,f.Xw)(t,l,"affiliations"):t.join(", ")},G=function(n){var e,i=null===n||void 0===n||null===(e=n.locations)||void 0===e?void 0:e[0];if(!i)return"";var t=(0,s.intelligentAddress)(i,!1,!1);return(0,s.combineAddressParts)((0,s.cleanAddressForAutocomplete)(t))},Q=function(){S({type:"search",payload:{value:"",label:""}}),!0===T.live&&((null===n||void 0===n?void 0:n.userCard)?window.open("/".concat(T.is_participant?"participant":"people","/").concat(null===T||void 0===T?void 0:T.id),"_blank"):window.open("/".concat(T.is_participant?"participant":"people","/").concat((null===T||void 0===T?void 0:T.vanity_url)&&encodeURI(null===T||void 0===T?void 0:T.vanity_url)||(null===T||void 0===T?void 0:T.id)),"_blank"))},J=function(e,i){if(!0===(null===T||void 0===T?void 0:T.live))if(n.collectionCard)Q();else if(n.handleImageClick&&e){var t=(null===T||void 0===T?void 0:T.person_id)||e;n.handleImageClick(t,i,n.previewEntityType||"person")}else Q()},K=function(){H(!M)},nn=!0===(null===T||void 0===T?void 0:T.live);return(0,o.jsx)("div",{id:"tl-".concat(null===T||void 0===T?void 0:T.id),className:"".concat(n.cssClass).concat(nn?" cursor-pointer":""),onMouseEnter:function(){nn&&F(!0)},onMouseLeave:function(){F(!1)},children:(0,o.jsxs)("div",{className:"card h-100 small border-0",style:nn?void 0:{cursor:"not-allowed"},children:[(0,o.jsx)("div",{onClick:function(){return nn&&J(null===T||void 0===T?void 0:T.id,null===T||void 0===T?void 0:T.image_id)},children:(0,o.jsx)(a.Z,{newImageUrl:null===T||void 0===T?void 0:T.new_image_url,data:T,entityType:"person",entityId:null===T||void 0===T?void 0:T.id,type:"thumb@2x",cssClass:"thumb"})}),(0,o.jsxs)("div",{className:"card-body bg-light cnow-line fz-12 d-flex flex-column p-1 position-relative \n            ".concat("/search"===U.pathname||U.pathname.includes("/collections")?"search-cnow-card-height":"cnow-card-height"),children:[(0,o.jsx)("div",{className:"d-flex flex-grow-1",onClick:function(){return nn&&Q()},children:(0,o.jsxs)("div",{className:"fz-12 w-100 textColorBlack",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"fw-bold custom-highlight",dangerouslySetInnerHTML:{__html:function(n){var e,i,t,l,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.isITPhoto,a=void 0!==r&&r,d=o.hideYear,u=void 0!==d&&d,c=o.highlight,v=void 0===c?{}:c;if(!n)return"";var p=y((null===v||void 0===v?void 0:v.name)||[]).concat(y((null===v||void 0===v?void 0:v.full_name)||[]),y((null===v||void 0===v?void 0:v.first_name)||[]),y((null===v||void 0===v?void 0:v.last_name)||[])),h=null;if(p.length){var f=(0,s.personName)(n);h=p.find((function(n){var e=n.replace(/<mark>(.*?)<\/mark>/g,"$1");return f&&f.includes(e)}))}var g=h||(0,s.personName)(n);if(a)return g;var m=(null===n||void 0===n||null===(e=n.date)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.year)||!u&&(null===n||void 0===n||null===(t=n.dates)||void 0===t||null===(l=t[0])||void 0===l?void 0:l.year)||null;return m?"".concat(g):g}(T,{isITPhoto:$,hideYear:B,highlight:T.highlight})}}),(0,o.jsx)("span",{className:"text-muted",children:T.designations&&T.designations.length>0&&(null===(i=T.designations[0])||void 0===i?void 0:i.name)?" "+(null===(t=T.designations[0])||void 0===t?void 0:t.name):""}),(0,o.jsxs)("span",{className:"text-muted",children:[" ",(null===T||void 0===T||null===(g=T.designations)||void 0===g?void 0:g.length)>0&&(null===(_=null===T||void 0===T?void 0:T.designations[0])||void 0===_?void 0:_.designation_name)]}),(null===T||void 0===T?void 0:T.alias)&&(0,o.jsx)("p",{className:"fst-italic cnow-ellipsis-1 custom-highlight",dangerouslySetInnerHTML:{__html:(null===T||void 0===T||null===(j=T.highlight)||void 0===j||null===(w=j.alias)||void 0===w?void 0:w[0])||(null===T||void 0===T?void 0:T.alias)}}),(!T.organization_types||null==T.organization_types||0==T.organization_types.length)&&V(T,null===T||void 0===T?void 0:T.highlight)&&(0,o.jsx)("p",{className:"mt-0 cnow-ellipsis-1 custom-highlight",dangerouslySetInnerHTML:{__html:V(T,null===T||void 0===T?void 0:T.highlight)}})]}),!0===O?(0,o.jsx)("div",{className:"cnow-ellipsis-1 custom-highlight",dangerouslySetInnerHTML:{__html:(null===T||void 0===T||null===(b=T.highlight)||void 0===b||null===(A=b.description)||void 0===A?void 0:A[0])||((null===T||void 0===T?void 0:T.description)?(0,s.cleanHtml)(null===T||void 0===T?void 0:T.description):"")}}):(0,o.jsx)(o.Fragment,{children:!0===$?(0,o.jsxs)(o.Fragment,{children:[q(null===T||void 0===T?void 0:T.professions,null===T||void 0===T?void 0:T.highlight)&&(0,o.jsx)("div",{className:"cnow-ellipsis-1 custom-highlight",dangerouslySetInnerHTML:{__html:q(null===T||void 0===T?void 0:T.professions,null===T||void 0===T?void 0:T.highlight)}}),(null===n||void 0===n||null===(C=n.data)||void 0===C?void 0:C.pictured)&&(0,o.jsx)("div",{className:"fst-italic",children:(0,o.jsx)(u.Z,{lines:2,children:"Pictured: "+(null===n||void 0===n||null===(N=n.data)||void 0===N?void 0:N.pictured)})})]}):(0,o.jsxs)(o.Fragment,{children:[Y(null===T||void 0===T?void 0:T.organization_types,null===T||void 0===T?void 0:T.highlight)&&(0,o.jsx)("div",{className:"cnow-ellipsis-1 custom-highlight",dangerouslySetInnerHTML:{__html:Y(null===T||void 0===T?void 0:T.organization_types,null===T||void 0===T?void 0:T.highlight)}}
1),Y(null===T||void 0===T?void 0:T.publication_types,null===T||void 0===T?void 0:T.highlight)&&(0,o.jsx)("div",{className:"cnow-ellipsis-1 custom-highlight",dangerouslySetInnerHTML:{__html:Y(null===T||void 0===T?void 0:T.publication_types,null===T||void 0===T?void 0:T.highlight)}}),q(null===T||void 0===T?void 0:T.professions,null===T||void 0===T?void 0:T.highlight)&&(0,o.jsx)("div",{className:"cnow-ellipsis-1 custom-highlight",dangerouslySetInnerHTML:{__html:q(null===T||void 0===T?void 0:T.professions,null===T||void 0===T?void 0:T.highlight)}}),!function(){var e;return(0,f.B8)((null===(e=n.data)||void 0===e?void 0:e.highlight)||{},"person")}()&&function(){var e;return(0,f.Vi)((null===(e=n.data)||void 0===e?void 0:e.highlight)||{},"person")}()?function(){var n=W();return n?(0,o.jsxs)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",children:[(0,o.jsxs)("span",{className:"fw-bold",children:[n.displayName,": "]}),(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:n.prioritizedHighlight}})]}):null}():G(T)?(0,o.jsx)("p",{className:"cnow-ellipsis-1 custom-highlight",dangerouslySetInnerHTML:{__html:G(T)}}):null]})})]})}),!1===O&&(0,o.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[!M&&(0,o.jsxs)("div",{className:"d-flex podcast-count",onClick:K,children:[(null===T||void 0===T||null===(k=T.podcasts)||void 0===k?void 0:k.length)>0?(0,o.jsx)(d.Z,{name:"Symbols_Podcast_Black_Outlined",size:20}):"",(0,o.jsx)("div",{className:"ms-2 align-self-end cursor-pointer fw-bold d-flex align-items-center card-podcast-count",children:(null===T||void 0===T||null===(I=T.podcasts)||void 0===I?void 0:I.length)>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"plus-podcast me-1",children:"+"}),(0,o.jsx)("div",{style:{marginBottom:"-4px"},children:T.podcasts.length})]})})]}),!M&&D&&(0,o.jsx)("div",{className:"d-flex align-self-end ms-auto",children:(0,o.jsx)(h.Z,{hasPreview:L,handlePreview:R,handleImageClick:n.handleImageClick,openImagePreview:function(){return J(null===T||void 0===T?void 0:T.id,null===T||void 0===T?void 0:T.image_id)}})})]}),M&&(0,o.jsx)(c.Z,{id:null===T||void 0===T?void 0:T.id,type:"people",data:null===T||void 0===T?void 0:T.podcasts,entityData:T,handlePodcastPopover:K})]})]})})}},15103:function(n,e,i){var t=i(34051),l=i.n(t),o=i(85893),r=i(67294),a=i(31732),d=i(6413),s=i(64199),u=i(72610),c=i(41248),v=i(11163),p=i(87424),h=i(96486),f=i(49186),g=i(95068),m=i(1903);function y(n,e){(null==e||e>n.length)&&(e=n.length);for(var i=0,t=new Array(e);i<e;i++)t[i]=n[i];return t}function x(n,e,i,t,l,o,r){try{var a=n[o](r),d=a.value}catch(s){return void i(s)}a.done?e(d):Promise.resolve(d).then(t,l)}function _(n){return function(n){if(Array.isArray(n))return y(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(!n)return;if("string"===typeof n)return y(n,e);var i=Object.prototype.toString.call(n).slice(8,-1);"Object"===i&&n.constructor&&(i=n.constructor.name);if("Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return y(n,e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var j=i(86103);e.Z=function(n){var e,i,t,y,w,b,A,C,N,k,I,S,P,T,E=(0,c.I0)(),z=(0,r.useState)(n.data),M=z[0],H=z[1],O=n.onlyRemarks,L=n.hasPreview,B=n.handlePreview,R=n.number,Z=n.dateType||"",D=n.showWhatHappenedHere||!1,F=(0,r.useState)(!1),$=F[0],U=F[1],W=(0,r.useState)(!1),X=W[0],q=W[1],Y=null===(e=n.data)||void 0===e?void 0:e.hasOwnProperty("pictured"),V=function(){var e=function(){var e;return(0,f.h0)((null===(e=n.data)||void 0===e?void 0:e.highlight)||{},"site")}().dynamicfield;if(0===Object.keys(e).length)return null;var i,t=Object.keys(e)[0],l=e[t],o=(0,f.aP)(l);return{fieldName:t,displayName:(i=t,{alias:"aka",tags:"Tag","dates.month_year":"Date","related_people.name":"Related","related_sites.name":"Related","events.name":"Event","tours.name":"Tour","associated_sites.name":"Related"}[i]||i),highlights:l,prioritizedHighlight:o}};(0,r.useEffect)((function(){tn()}),[]);var G,Q,J,K,nn,en,tn=function(){var n,e=(n=l().mark((function n(){var e,i;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null===M||void 0===M?void 0:M.site_id)){n.next=7;break}return n.next=3,j.getById(null===M||void 0===M?void 0:M.site_id);case 3:e=n.sent,H(e),n.next=12;break;case 7:if(!(null===M||void 0===M?void 0:M.id)||!(null===M||void 0===M?void 0:M.row_id)&&!Y){n.next=12;break}return n.next=10,j.getById(null===M||void 0===M?void 0:M.id);case 10:i=n.sent,H(i);case 12:case"end":return n.stop()}}),n)})),function(){var e=this,i=arguments;return new Promise((function(t,l){var o=n.apply(e,i);function r(n){x(o,t,l,r,a,"next",n)}function a(n){x(o,t,l,r,a,"throw",n)}r(void 0)}))});return function(){return e.apply(this,arguments)}}(),ln=function(n){var e=(0,f.h0)((null===n||void 0===n?void 0:n.highlight)||{},"site"),i=Array.isArray(null===n||void 0===n?void 0:n.people)?n.people.map((function(n){return null===n||void 0===n?void 0:n.name}
1)).filter(Boolean):[],t=e.incard["people.name"]||[];return t.length?(0,f.Xw)(i,t,"people.name"):i.length?i.join(", "):((null===n||void 0===n?void 0:n.people)||[]).map((function(n){return(0,s.personName)(n)})).filter(Boolean).join(", ")},on=function(n){var e;if(!Array.isArray(null===n||void 0===n?void 0:n.designations))return"";var i=n.designations.find((function(n){return"string"===typeof(null===n||void 0===n?void 0:n.name)&&n.name.toLowerCase().includes("leed")}));return i?[null===i||void 0===i||null===(e=i.date)||void 0===e?void 0:e.year,i.name].filter(Boolean).join(" "):""},rn=function(n){var e,i,t=(0,f.h0)((null===n||void 0===n?void 0:n.highlight)||{},"site"),l=(null===n||void 0===n||null===(e=n.categories)||void 0===e?void 0:e.length)>0&&(null===n||void 0===n||null===(i=n.categories)||void 0===i?void 0:i.map((function(n){return(null===n||void 0===n?void 0:n.subcategory_name)?null===n||void 0===n?void 0:n.subcategory_name:(null===n||void 0===n?void 0:n.program)?null===n||void 0===n?void 0:n.program:(null===n||void 0===n?void 0:n.program_name)?null===n||void 0===n?void 0:n.program_name:(null===n||void 0===n?void 0:n.sub)?null===n||void 0===n?void 0:n.sub:void 0})));if(l=(null===l||void 0===l?void 0:l.length)>0&&l.filter((function(n){return n})),!(null===(l=(0,h.uniq)(l))||void 0===l?void 0:l.length))return"";var o=_(t.incard["categories.subcategory_name"]||[]).concat(_(t.incard["categories.program"]||[]),_(t.incard["categories.program_name"]||[]),_(t.incard["categories.sub"]||[]));
1return o.length?(0,f.Xw)(l,o,"categories"):l.join(", ")},an=function(n){var e,i=(null===n||void 0===n||null===(e=n.locations)||void 0===e?void 0:e[0])||(null===n||void 0===n?void 0:n.location);if(!i)return"";var t=i.location||i,l=(0,s.intelligentAddress)(t,!1,!1);return(0,s.combineAddressParts)((0,s.cleanAddressForAutocomplete)(l))},dn=(0,v.useRouter)(),sn=function(){E({type:"search",payload:{value:"",label:""}}),(null===n||void 0===n?void 0:n.userCard)?window.open("/site/".concat(M.id),"_blank"):window.open("/site/".concat((null===M||void 0===M?void 0:M.vanity_url)&&encodeURI(M.vanity_url)||M.id),"_blank")},un=function(){if(n.collectionCard)sn();else if(null===n||void 0===n?void 0:n.handleImageClick){var e,i,t=(null===M||void 0===M?void 0:M.site_id)||(null===M||void 0===M?void 0:M.id),l=(null===M||void 0===M?void 0:M.image_id)||(null===M||void 0===M||null===(e=M.images)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.image_id);n.handleImageClick(t,l,n.previewEntityType||"site")}else sn()},cn=function(){q(!X)};if("showFirstDate"===Z)if(!0===Y)G=null===M||void 0===M?void 0:M.name;else if((null===M||void 0===M||null===(J=M.date)||void 0===J?void 0:J.length)>0&&(null===(K=null===M||void 0===M?void 0:M.date[0])||void 0===K?void 0:K.year)){var vn,pn;G="".concat((null===(vn=null===M||void 0===M?void 0:M.date[0])||void 0===vn?void 0:vn.year)+" - "||0).concat(null===M||void 0===M?void 0:M.name),Q=(null===(pn=null===M||void 0===M?void 0:M.date[0])||void 0===pn?void 0:pn.type)||""}else if((null===M||void 0===M||null===(nn=M.dates)||void 0===nn?void 0:nn.length)>0&&(null===(en=null===M||void 0===M?void 0:M.dates[0])||void 0===en?void 0:en.year)){var hn,fn;G="".concat((null===(hn=null===M||void 0===M?void 0:M.dates[0])||void 0===hn?void 0:hn.year)+" - "||0).concat(null===M||void 0===M?void 0:M.name),Q=(null===(fn=null===M||void 0===M?void 0:M.dates[0])||void 0===fn?void 0:fn.type)||""}else G=null===M||void 0===M?void 0:M.name;else if("showLastDate"===Z){var gn,mn,yn,xn;if(!0===Y)G=null===M||void 0===M?void 0:M.name;else if((null===M||void 0===M||null===(gn=M.date)||void 0===gn?void 0:gn.length)>0&&(null===(mn=null===M||void 0===M?void 0:M.date[(null===M||void 0===M?void 0:M.date.length)-1])||void 0===mn?void 0:mn.year)){var _n,jn;G="".concat((null===(_n=null===M||void 0===M?void 0:M.date[(null===M||void 0===M?void 0:M.date.length)-1])||void 0===_n?void 0:_n.year)+" - "||0).concat(null===M||void 0===M?void 0:M.name),Q=(null===(jn=null===M||void 0===M?void 0:M.date[(null===M||void 0===M?void 0:M.dates.length)-1])||void 0===jn?void 0:jn.type)||""}else if((null===M||void 0===M||null===(yn=M.dates)||void 0===yn?void 0:yn.length)>0&&(null===(xn=null===M||void 0===M?void 0:M.dates[(null===M||void 0===M?void 0:M.dates.length)-1])||void 0===xn?void 0:xn.year)){var wn,bn;G="".concat((null===(wn=null===M||void 0===M?void 0:M.dates[(null===M||void 0===M?void 0:M.dates.length)-1])||void 0===wn?void 0:wn.year)+" - "||0).concat(null===M||void 0===M?void 0:M.name),Q=(null===(bn=null===M||void 0===M?void 0:M.dates[(null===M||void 0===M?void 0:M.dates.length)-1])||void 0===bn?void 0:bn.type)||""}else G=null===M||void 0===M?void 0:M.name}else if("noEvent"===Z||"designationsDate"===Z){var An,Cn,Nn,kn;if(!0===Y)G=null===M||void 0===M?void 0:M.name;else if((null===M||void 0===M||null===(An=M.date)||void 0===An?void 0:An.length)>0&&(null===(Cn=null===M||void 0===M?void 0:M.date[(null===M||void 0===M?void 0:M.date.length)-1])||void 0===Cn?void 0:Cn.year)){var In;G="".concat((null===(In=null===M||void 0===M?void 0:M.date[(null===M||void 0===M?void 0:M.date.length)-1])||void 0===In?void 0:In.year)+" - "||0).concat(null===M||void 0===M?void 0:M.name)}else if((null===M||void 0===M||null===(Nn=M.dates)||void 0===Nn?void 0:Nn.length)>0&&(null===(kn=null===M||void 0===M?void 0:M.dates[(null===M||void 0===M?void 0:M.dates.length)-1])||void 0===kn?void 0:kn.year)){var Sn;G="".concat((null===(Sn=null===M||void 0===M?void 0:M.dates[(null===M||void 0===M?void 0:M.dates.length)-1])||void 0===Sn?void 0:Sn.year)+" - "||0).concat(null===M||void 0===M?void 0:M.name)}else G=null===M||void 0===M?void 0:M.name}else G=null===M||void 0===M?void 0:M.name;return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{id:"tl-".concat((null===M||void 0===M?void 0:M.site_id)||(null===M||void 0===M?void 0:M.id)),className:"".concat(n.cssClass," cursor-pointer"),onMouseEnter:function(){return U(!0)},onMouseLeave:function(){return U(!1)},children:(0,o.jsxs)("div",{className:"card h-100 small border-0",children:[(null===n||void 0===n?void 0:n.addButton)&&((null===n||void 0===n?void 0:n.isSelected)?(0,o.jsx)(g.Z,{classes:"position-absolute r-0",styles:{right:"0px"},size:"sm",icon:"close",onClick:function(){return(null===n||void 0===n?void 0:n.handleRemove)&&n.handleRemove(M.id||M.site_id)}}):(0,o.jsx)(g.Z,{classes:"position-absolute r-0",styles:{right:"0px"},size:"sm",icon:"plus",onClick:function(){return(null===n||void 0===n?void 0:n.handleAdd)&&n.handleAdd(M)}})),(0,o.jsx)("div",{onClick:function(){return M&&un()},children:(0,o.jsx)(a.Z,{newImageUrl:null===M||void 0===M?void 0:M.new_image_url,url:(null===M||void 0===M||null===(i=M.image)||void 0===i?void 0:i.url)||(null===M||void 0===M?void 0:M.image_url)||(null===M||void 0===M?void 0:M.url),entity
1Id:(null===M||void 0===M?void 0:M.site_id)||(null===M||void 0===M?void 0:M.id),data:M,entityType:"site",type:"thumb@2x",cssClass:"thumb"})}),(0,o.jsxs)("div",{className:"card-body bg-light cnow-line fz-12 d-flex flex-column p-1 position-relative\n            ".concat("/search"===dn.pathname||dn.pathname.includes("/collections")?"search-cnow-card-height":"cnow-card-height"),children:[(0,o.jsxs)("div",{className:"d-flex flex-grow-1",onClick:sn,children:[R>0&&(0,o.jsx)("div",{className:"cnow-card-number",children:(0,o.jsx)("span",{children:R})}),n.stopNumber>0&&(0,o.jsx)("div",{className:"cnow-card-number",children:(0,o.jsx)("span",{children:n.stopNumber})}),(0,o.jsxs)("div",{className:"fz-12 w-100 textColorBlack",children:[(0,o.jsxs)("div",{className:"fw-bold cnow-ellipsis-1 custom-highlight",children:[(null===(t=n.data.highlight)||void 0===t||null===(y=t.name)||void 0===y?void 0:y[0])?(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:null===(w=n.data)||void 0===w||null===(b=w.highlight)||void 0===b||null===(A=b.name)||void 0===A?void 0:A[0]}}):G,Q&&(0,o.jsxs)("span",{className:"fw-normal",children:[" ",Q]}),!0===D&&(null===M||void 0===M?void 0:M.dates)&&(null===(C=null===M||void 0===M?void 0:M.dates[0])||void 0===C?void 0:C.event_type_name)&&("hide"===Z?" ":(0,o.jsxs)("span",{className:"fw-normal",children:[" ",null===(N=null===M||void 0===M?void 0:M.dates[0])||void 0===N?void 0:N.event_type_name]}))]}),(0,o.jsx)("div",{children:!0===O?(0,o.jsx)("div",{className:"cnow-ellipsis-1",dangerouslySetInnerHTML:{__html:(0,s.cleanHtml)(null===M||void 0===M?void 0:M.description)}}):(0,o.jsx)(o.Fragment,{children:!0===Y?(0,o.jsxs)(o.Fragment,{children:[rn(M)&&(0,o.jsx)("div",{className:"cnow-ellipsis-1",children:rn(M)}),(null===n||void 0===n||null===(k=n.data)||void 0===k?void 0:k.pictured)&&(0,o.jsx)("div",{className:"fst-italic",children:(0,o.jsx)(p.Z,{lines:2,children:"Pictured: "+(null===n||void 0===n||null===(I=n.data)||void 0===I?void 0:I.pictured)})})]}):(0,o.jsxs)(o.Fragment,{children:[ln(M)&&(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:ln(M)}}),an(M)&&(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:an(M)}}),"designationsDate"===Z?on(M)?(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0",children:on(M)}):null:!function(){var e;return(0,f.B8)((null===(e=n.data)||void 0===e?void 0:e.highlight)||{},"site")}()&&function(){var e;return(0,f.Vi)((null===(e=n.data)||void 0===e?void 0:e.highlight)||{},"site")}()?function(){var n=V();return n?(0,o.jsxs)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",children:[(0,o.jsxs)("span",{className:"fw-bold",children:[n.displayName,": "]}),(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:n.prioritizedHighlight}})]}):null}():rn(M)?(0,o.jsx)("p",{className:"cnow-ellipsis-1 my-0 py-0 custom-highlight",dangerouslySetInnerHTML:{__html:rn(M)}}):null]})})})]})]}),(0,o.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[!X&&(0,o.jsxs)("div",{className:"d-flex podcast-count",onClick:cn,children:[(null===M||void 0===M||null===(S=M.podcasts)||void 0===S?void 0:S.length)>0?(0,o.jsx)(d.Z,{name:"Symbols_Podcast_Black_Outlined",size:18}):"",(0,o.jsx)("div",{className:"ms-1 cursor-pointer fw-bold d-flex align-items-center card-podcast-count",children:(null===M||void 0===M||null===(P=M.podcasts)||void 0===P?void 0:P.length)>0&&(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"plus-podcast",children:"+"}),(0,o.jsx)("span",{style:{fontSize:"13px",marginLeft:"2px"},children:null===(T=M.podcasts)||void 0===T?void 0:T.length})]})})]}),!X&&$&&(0,o.jsx)("div",{className:"d-flex align-self-end",children:(0,o.jsx)(m.Z,{hasPreview:L,handlePreview:B,handleImageClick:n.handleImageClick,openImagePreview:function(){return un()}})})]}),X&&(0,o.jsx)(u.Z,{id:null===M||void 0===M?void 0:M.id,type:"site",data:null===M||void 0===M?void 0:M.podcasts,entityData:M,handlePodcastPopover:cn})]})]})})})}},72610:function(n,e,i){var t=i(34051),l=i.n(t),o=i(85893),r=i(67294),a=i(6413),d=i(11157),s=i(41248),u=i(64199),c=i(25458);function v(n,e){(null==e||e>n.length)&&(e=n.length);for(var i=0,t=new Array(e);i<e;i++)t[i]=n[i];return t}function p(n,e,i,t,l,o,r){try{var a=n[o](r),d=a.value}catch(s){return void i(s)}a.done?e(d):Promise.resolve(d).then(t,l)}function h(n,e,i){return e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function f(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},t=Object.keys(i);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(i).filter((function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})))),t.forEach((function(e){h(n,e,i[e])}))}return n}function g(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var i=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=i){var t,l,o=[],r=!0,a=!1;try{for(i=i.call(n);!(r=(t=i.next()).done)&&(o.push(t.value),!e||o.length!==e);r=!0);}catch(d){a=!0,l=d}finally{try{r||null==i.return||i.return()}finally{if(a)throw l}}return o}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return v(n,e);var i=Object.prototype.toString.call(n).slice(8,-1);"Object"===i&&n.constructor&&(i=n.constructor.name);if("Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return v(n,e)}
1(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}e.Z=function(n){var e,i,t=n.id,v=n.type,h=n.data,m=n.entityData,y=n.handlePodcastPopover,x=(0,s.I0)(),_=(0,s.v9)((function(n){return n.player})),j=(0,s.v9)((function(n){return n.playPodcast})),w=(null===h||void 0===h?void 0:h.length)-5,b=(0,r.useState)(null),A=b[0],C=b[1],N=function(n){return String(null!==(i=null!==(e=null===n||void 0===n?void 0:n.podcast_id)&&void 0!==e?e:null===n||void 0===n?void 0:n.id)&&void 0!==i?i:"")},k=function(){var n,e=(n=l().mark((function n(e){var i,t,o,r,a,d,s,p,y,w,b;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((i=N(e))&&A!==i){n.next=3;break}return n.abrupt("return");case 3:return C(i),n.prev=4,t=m?{playlistName:(0,c.ab)(m,v),playlistImage:(0,c.Sq)(m,v)}:null,n.t0=g,n.next=9,Promise.all([(0,u.resolvePodcastForPlay)(e),(0,u.resolvePlaylistForPlay)(h)]);case 9:n.t1=n.sent,o=(0,n.t0)(n.t1,2),r=o[0],a=o[1],y=null!==(p=null!==(s=null!==(d=null===e||void 0===e?void 0:e.podcast_id)&&void 0!==d?d:null===e||void 0===e?void 0:e.id)&&void 0!==s?s:null===r||void 0===r?void 0:r.podcast_id)&&void 0!==p?p:null===r||void 0===r?void 0:r.id,b=a.find((function(n){return String(null!==(w=null===n||void 0===n?void 0:n.podcast_id)&&void 0!==w?w:null===n||void 0===n?void 0:n.id)===String(y)}))||r,(0,u.playInGlobalPlayer)(x,f({player:_,playPodcast:j,podcast:b||r,playlist:a,replacePlaylist:!0},t?{playerExtras:t}:{}));case 18:return n.prev=18,C(null),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[4,,18,21]])})),function(){var e=this,i=arguments;return new Promise((function(t,l){var o=n.apply(e,i);function r(n){p(o,t,l,r,a,"next",n)}function a(n){p(o,t,l,r,a,"throw",n)}r(void 0)}))});return function(n){return e.apply(this,arguments)}}();return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"fz-12 podcast-dropdown mt-3 position-absolute z-10",children:[(0,o.jsxs)("div",{className:"d-flex d-none",children:[(0,o.jsx)("div",{children:(0,o.jsx)(a.Z,{name:"playlist"})}),(0,o.jsxs)("div",{className:"ps-1",children:[(0,o.jsx)("div",{className:"fw-bold",children:(null===h||void 0===h?void 0:h.podcast_name)||(null===h||void 0===h?void 0:h.name)}),(0,o.jsx)("div",{className:"fz-12",children:"cultureNOW, Museum Without Walls"})]})]}),(0,o.jsxs)(o.Fragment,{children:[(null===h||void 0===h?void 0:h.length)&&(null===h||void 0===h?void 0:h.slice(0,5).map((function(n,e){var i=(0,u.isAudioTrack)(n);return(0,o.jsxs)("div",{className:"d-flex align-items-center gap-2 mb-2",children:[(0,o.jsx)("div",{children:(0,o.jsx)(a.Z,{name:i?"Symbols_Podcast_Black_Outlined":"video",size:i?18:16})}),(0,o.jsx)("span",{className:"ps-1 line-wrap-2",children:n.podcast_name||n.name}),A===N(n)?(0,o.jsx)(d.Z,{size:14,className:"ms-auto align-self-center text-dark"}):(0,o.jsx)("i",{className:"fa fa-play cursor-pointer ms-auto align-self-center",onClick:function(){k(n)}})]},e)}))),w>0&&(0,o.jsxs)("div",{className:"d-flex align-items-center mb-2",onClick:function(){window.open("/".concat(v,"/").concat(t,"/podcasts"),"_blank")},children:[(0,o.jsx)("div",{children:(0,o.jsx)(a.Z,{name:"Symbols_Podcast_Black_Outlined",size:18})}),(0,o.jsxs)("div",{className:"ps-1 d-flex align-items-center",children:[(0,o.jsxs)("span",{className:"fw-bold",children:["+",w]}),(0,o.jsx)("span",{className:"mx-1",children:"podcasts"}),(0,o.jsx)("i",{className:"fe fe-chevron-right fz-16 fw-bold"})]})]})]}),(0,o.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,o.jsx)("div",{}),(0,o.jsx)("div",{className:"fw-bold fz-12 text-center cursor-pointer",onClick:y,children:"- Show less"}),(0,o.jsx)("div",{onClick:y,children:(0,o.jsx)("i",{className:"fe fe-chevron-down fz-20 fw-bold"})})]})]})})}},75684:function(n,e,i){i.r(e),i.d(e,{getById:function(){return l},getCategory:function(){return r},getContinuingEducation:function(){return A},getEvent:function(){return g},getEventById:function(){return I},getEventDates:function(){return S},getExhibitions:function(){return P},getFeaturedPeople:function(){return x},getFeaturedProjects:function(){return _},getHost:function(){return u},getImage:function(){return C},getLocation:function(){return d},getOnThisDay:function(){return j},getParticipant:function(){return c},getPlaylist:function(){return k},getPodcast:function(){return N},getRelatedMap:function(){return y},getRelatedPerson:function(){return v},getRelatedSite:function(){return p},getRelatedTour:function(){return m},getReservation:function(){return w},getSponsor:function(){return h},getStory:function(){return f},getTag:function(){return o},getTheme:function(){return a},getTicket:function(){return b},getType:function(){return s}});var t=i(44519),l=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/public"))},o=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/tag"))},r=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/category"))},a=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/theme"))},d=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/location"))},s=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/type"))},u=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/host"))},c=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/participant"))},v=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/related_person"))},p=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/related_site"))},h=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/sponsor"))},f=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/story"))},g=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/related_event"))},m=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/related_tour"))},y=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/related_map"))},x=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/featured"))},_=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/featured_project"))},j=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/on_this_day"))},w=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/reservation"))},b=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/ticket"))},A=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/continuing_education"))},C=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/image"))},N=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/podcast"))},k=function(n){return(0,t.ApiCall)("get","/event/".concat(n,"/related_playlist"))},I=function(n){return(0,t.ApiCall)("get","/event/".concat(n))},S=function(n){return(0,t.ApiCall)("post","/event/count",n)},P=function(){return(0,t.ApiCall)("get","/event/list/exhibition")}},21244:function(n,e,i){i.r(e),i.d(e,{getAffiliation:function(){return o},getAward:function(){return r},getById:function(){return l},getCreditedPodcast:function(){return k},getDate:function(){return a},getDesignation:function(){return d},getHighlight:function(){return s},getImage:function(){return u},getLocation:function(){return c},getMap:function(){return y},getOnThisDay:function(){return w},getOrganizationType:function(){return v},getPersonImageAlbums:function(){return N},getPlaylist:function(){return j},getPodcast:function(){return p},getProfession:function(){return h},getPublication:function(){return _},getQuote:function(){return f},getRelatedPerson:function(){return g},getRelatedSite:function(){return A},getSite:function(){return b},getSiteImageAlbums:function(){return C},getStory:function(){return m},getTag:function(){return x}});var t=i(44519),l=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/public"))},o=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/affiliation"))},r=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/award"))},a=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/date"))},d=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/designation"))},s=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/highlight"))},u=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/image"))},c=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/location"))},v=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/organization_type"))},p=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/podcast"))},h=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/profession"))},f=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/quote"))},g=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/related_person"))},m=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/story"))},y=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/map"))},x=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/tag"))},_=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/publication"))},j=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/playlist"))},w=function(n){return(0,t.ApiCall)("get","/person/on_this_day/".concat(n))},b=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/site"))},A=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/related_site"))},C=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/site_image_album"))},N=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/person_image_album"))},k=function(n){return(0,t.ApiCall)("get","/person/".concat(n,"/credited_podcast"))}},86103:function(n,e,i){i.r(e),i.d(e,{addSiteToTour:function(){return k},getAssociatedSiteDate:function(){return j},getAssociatedSitePerson:function(){return w},getAssociatedSites:function(){return _},getAward:function(){return o},getByDatePersonId:function(){return C},getById:function(){return l},getByPersonId:function(){return b},getByRelatedPersonId:function(){return A},getCategory:function(){return r},getDate:function(){return a},getDesignation:function(){return d},getImage:function(){return s},getLocation:function(){return u},getMap:function(){return c},getOnThisDay:function(){return N},getPerson:function(){return v},getPlaylist:function(){return x},getPodcast:function(){return p},getRelatedPerson:function(){return h},getRelatedSite:function(){return f},getStory:function(){return g},getTag:function(){return m},getTheme:function(){return y},removeSiteFromTour:function(){return S},removeSiteFromTourStop:function(){return P},searchByElastic:function(){return I}});var t=i(44519),l=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/public"))},o=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/award"))},r=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/category"))},a=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/date"))},d=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/designation"))},s=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/image"))},u=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/location"))},c=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/map"))},v=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/person"))},p=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/podcast"))},h=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/related_person"))},f=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/related_site"))},g=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/story"))},m=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/tag"))},y=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/theme"))},x=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/playlist"))},_=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/associated_site"))},j=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/associated_site/date"))},w=function(n){return(0,t.ApiCall)("get","/site/".concat(n,"/associated_site/pers
1on"))},b=function(n){return(0,t.ApiCall)("get","/site?people=".concat(n,"&show_all=true"))},A=function(n){return(0,t.ApiCall)("get","/site?related_people=".concat(n))},C=function(n){return(0,t.ApiCall)("get","/site?date_people=".concat(n,"&show_all=true"))},N=function(n){return(0,t.ApiCall)("get","/site/on_this_day/".concat(n))},k=function(n,e){return(0,t.ApiCall)("post","/site/".concat(n,"/tour"),e)},I=function(n,e,i){return(0,t.ApiCall)("post","/search/site/".concat(n,"/").concat(e),i)},S=function(n){return(0,t.ApiCall)("delete","/site/tour/".concat(n))},P=function(n){return(0,t.ApiCall)("delete","/tour/stop/site/".concat(n))}}}]);

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.