import"./484c2b8a.js";import{j as h,r as S,f as p}from"./index.00979935.js";import{I as x}from"./7b8fadb9.js";import"./754a85d3.js";import"./9b6f90f6.js";import{u as j}from"./3aa906ac.js";import"./330888ed.js";import"./b4e1d7a1.js";import"./bf7618d2.js";import{F as B,T as L}from"./47361b33.js";import k from"./8eff7f85.js";import"./88db0e4c.js";import"./ee4b83b9.js";import"./af9dddda.js";import"./5a0f1f8c.js";import"./cc9718ab.js";import"./299afbea.js";function g(n){var i=Object.entries(n).filter(function(t){var r=t[1];return r!=null}).map(function(t){var r=t[0],o=t[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(String(o)))});return i.length>0?"?".concat(i.join("&")):""}var _={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(n){(function(){var i={}.hasOwnProperty;function t(){for(var r=[],o=0;o<arguments.length;o++){var e=arguments[o];if(!!e){var l=typeof e;if(l==="string"||l==="number")r.push(e);else if(Array.isArray(e)){if(e.length){var s=t.apply(null,e);s&&r.push(s)}}else if(l==="object"){if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]")){r.push(e.toString());continue}for(var u in e)i.call(e,u)&&e[u]&&r.push(u)}}}return r.join(" ")}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(_);var N=_.exports,T=globalThis&&globalThis.__extends||function(){var n=function(i,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(r[e]=o[e])},n(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(i,t);function r(){this.constructor=i}i.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),d=globalThis&&globalThis.__assign||function(){return d=Object.assign||function(n){for(var i,t=1,r=arguments.length;t<r;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},d.apply(this,arguments)},P=globalThis&&globalThis.__awaiter||function(n,i,t,r){function o(e){return e instanceof t?e:new t(function(l){l(e)})}return new(t||(t=Promise))(function(e,l){function s(c){try{a(r.next(c))}catch(f){l(f)}}function u(c){try{a(r.throw(c))}catch(f){l(f)}}function a(c){c.done?e(c.value):o(c.value).then(s,u)}a((r=r.apply(n,i||[])).next())})},E=globalThis&&globalThis.__generator||function(n,i){var t={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]},r,o,e,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(a){return function(c){return u([a,c])}}function u(a){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(e=a[0]&2?o.return:a[0]?o.throw||((e=o.return)&&e.call(o),0):o.next)&&!(e=e.call(o,a[1])).done)return e;switch(o=0,e&&(a=[a[0]&2,e.value]),a[0]){case 0:case 1:e=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,o=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(e=t.trys,!(e=e.length>0&&e[e.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!e||a[1]>e[0]&&a[1]<e[3])){t.label=a[1];break}if(a[0]===6&&t.label<e[1]){t.label=e[1],e=a;break}if(e&&t.label<e[2]){t.label=e[2],t.ops.push(a);break}e[2]&&t.ops.pop(),t.trys.pop();continue}a=i.call(n,t)}catch(c){a=[6,c],o=0}finally{r=e=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},O=globalThis&&globalThis.__rest||function(n,i){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&i.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t},A=function(n){return!!n&&(typeof n=="object"||typeof n=="function")&&typeof n.then=="function"},W=function(n,i){return{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-n/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-i/2}},R=function(n,i){return{top:(window.screen.height-i)/2,left:(window.screen.width-n)/2}};function H(n,i,t){var r=i.height,o=i.width,e=O(i,["height","width"]),l=d({height:r,width:o,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},e),s=window.open(n,"",Object.keys(l).map(function(a){return"".concat(a,"=").concat(l[a])}).join(", "));if(t)var u=window.setInterval(function(){try{(s===null||s.closed)&&(window.clearInterval(u),t(s))}catch(a){console.error(a)}},1e3);return s}var D=function(n){T(i,n);function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.openShareDialog=function(r){var o=t.props,e=o.onShareWindowClose,l=o.windowHeight,s=l===void 0?400:l,u=o.windowPosition,a=u===void 0?"windowCenter":u,c=o.windowWidth,f=c===void 0?550:c,w=d({height:s,width:f},a==="windowCenter"?W(f,s):R(f,s));H(r,w,e)},t.handleClick=function(r){return P(t,void 0,void 0,function(){var o,e,l,s,u,a,c,f,w,v;return E(this,function(b){switch(b.label){case 0:return o=this.props,e=o.beforeOnClick,l=o.disabled,s=o.networkLink,u=o.onClick,a=o.url,c=o.openShareDialogOnClick,f=o.opts,w=s(a,f),l?[2]:(r.preventDefault(),e?(v=e(),A(v)?[4,v]:[3,2]):[3,2]);case 1:b.sent(),b.label=2;case 2:return c&&this.openShareDialog(w),u&&u(r,w),[2]}})})},t}return i.prototype.render=function(){var t=this.props;t.beforeOnClick;var r=t.children,o=t.className,e=t.disabled,l=t.disabledStyle,s=t.forwardedRef;t.networkLink;var u=t.networkName;t.onShareWindowClose,t.openShareDialogOnClick,t.opts;var a=t.resetButtonStyle,c=t.style;t.url,t.windowHeight,t.windowPosition,t.windowWidth;var f=O(t,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"]),w=N("react-share__ShareButton",{"react-share__ShareButton--disabled":!!e,disabled:!!e},o),v=d(d(a?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},c),e&&l);return h("button",{...d({},f,{"aria-label":f["aria-label"]||u,className:w,onClick:this.handleClick,ref:s,style:v}),children:r})},i.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0},i}(S.exports.Component),Z=D,y=globalThis&&globalThis.__assign||function(){return y=Object.assign||function(n){for(var i,t=1,r=arguments.length;t<r;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},y.apply(this,arguments)};function m(n,i,t,r){function o(e,l){var s=t(e),u=y({},e),a=Object.keys(s);return a.forEach(function(c){delete u[c]}),h(Z,{...y({},r,u,{forwardedRef:l,networkName:n,networkLink:i,opts:t(e)})})}return o.displayName="ShareButton-".concat(n),S.exports.forwardRef(o)}function $(n,i){var t=i.subject,r=i.body,o=i.separator;return"mailto:"+g({subject:t,body:r?r+o+n:n})}var q=m("email",$,function(n){return{subject:n.subject,body:n.body,separator:n.separator||" "}},{openShareDialogOnClick:!1,onClick:function(n,i){window.location.href=i}}),F=q,M=globalThis&&globalThis.__extends||function(){var n=function(i,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(r[e]=o[e])},n(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(i,t);function r(){this.constructor=i}i.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),U=function(n){M(i,n);function i(t){var r=n.call(this,t)||this;return r.name="AssertionError",r}return i}(Error);function C(n,i){if(!n)throw new U(i)}function G(n,i){var t=i.quote,r=i.hashtag;return C(n,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+g({u:n,quote:t,hashtag:r})}var V=m("facebook",G,function(n){return{quote:n.quote,hashtag:n.hashtag}},{windowWidth:550,windowHeight:400}),z=V;function K(n,i){var t=i.title,r=i.via,o=i.hashtags,e=o===void 0?[]:o,l=i.related,s=l===void 0?[]:l;return C(n,"twitter.url"),C(Array.isArray(e),"twitter.hashtags is not an array"),C(Array.isArray(s),"twitter.related is not an array"),"https://twitter.com/share"+g({url:n,text:t,via:r,hashtags:e.length>0?e.join(","):void 0,related:s.length>0?s.join(","):void 0})}var X=m("twitter",K,function(n){return{hashtags:n.hashtags,title:n.title,via:n.via,related:n.related}},{windowWidth:550,windowHeight:400}),Y=X;function J(){return p("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h("path",{d:"M22.1982 0.232893C31.2594 0.00011462 36.0683 6.06346 39.764 12.6589C44.9291 21.8924 40.7993 35.704 31.0924 39.9273C23.1889 43.3525 15.8642 42.4989 8.89574 37.666C7.41522 36.6462 5.94583 35.5821 4.63229 34.3627C0.569209 30.5829 -0.432649 25.9938 0.179599 20.4958C0.947688 13.6454 4.777 8.76813 9.67496 4.78871C13.1481 1.97319 17.1666 -0.842325 22.1982 0.232893Z",fill:"#F5C136"}),h("path",{d:"M31.873 20.4735C31.8245 19.5665 31.7857 18.6433 31.7481 17.7507C31.7115 16.8814 31.6737 15.9824 31.6268 15.0986C31.559 13.8152 30.8986 12.8802 29.7173 12.3947C29.3002 12.2234 28.7869 12.1328 28.1491 12.1175C26.4598 12.0773 24.742 12.0588 23.0807 12.0407C22.4893 12.0343 21.898 12.0275 21.3068 12.0205C21.2919 12.0081 21.2733 12.0013 21.2539 12.0013H19.8768C18.7578 12.0013 17.6388 12.0017 16.52 12.0022C16.3152 12.0022 16.1098 12.0017 15.9051 12.0012C15.2897 11.999 14.6533 11.9973 14.0274 12.0201C13.1728 12.051 12.5148 12.2181 11.9567 12.546C10.8264 13.2101 10.2234 14.1582 10.1646 15.3639C10.1336 15.9989 10.1232 16.6447 10.1132 17.2694L10.1066 17.6605C10.0976 18.1847 10.0881 18.7088 10.0782 19.2329C10.0464 20.9596 10.0135 22.7452 10.0005 24.5019C9.9952 25.2012 10.0305 26.0286 10.3314 26.8627C10.7764 28.0964 11.5972 28.894 12.8408 29.301C13.9978 29.6709 15.2043 29.8605 16.4184 29.8631C19.4363 29.9023 22.6018 29.9208 26.3271 29.9208H27.0508C27.7354 29.9324 28.4189 29.8581 29.0852 29.6995C30.6126 29.3068 31.5178 28.366 31.7756 26.9028C31.8575 26.4065 31.9145 25.9063 31.9461 25.4041C32.0577 23.8803 31.974 22.3361 31.893 20.8425L31.873 20.4735ZM17.7599 28.5343C16.4526 28.5303 15.0558 28.4806 13.6987 28.1461C13.1527 28.0116 12.7621 27.854 12.4501 27.6408L19.1849 21.4162L19.3729 21.6195C19.5603 21.8222 19.7538 22.0314 19.9492 22.2388C20.5147 22.8391 21.0696 22.8883 21.695 22.3937C21.9509 22.1915 22.1941 21.9627 22.4292 21.7422C22.5182 21.6584 22.6082 21.5741 22.6994 21.4902L29.2912 28.1767C29.0633 28.365 28.7879 28.4044 28.4978 28.446L28.4144 28.458C28.1028 28.4996 27.7885 28.519 27.4741 28.5157L25.6304 28.5224C23.0505 28.5321 20.3833 28.5422 17.7599 28.5343ZM28.0515 14.638C27.0652 15.5329 26.0454 16.4581 25.073 17.401C24.1026 18.342 23.1511 19.3281 22.231 20.2821C21.8501 20.6769 21.4569 21.0846 21.0686 21.4824L12.8779 13.4093C12.9365 13.3936 12.9947 13.3778 13.0524 13.3618C13.2757 13.3007 13.4867 13.2429 13.7021 13.2004C14.7734 12.9889 15.8765 13.0177 16.9433 13.0459C17.1815 13.0521 17.4197 13.0582 17.6578 13.0621C18.0202 13.0678 18.3889 13.0799 18.7454 13.0917C19.0551 13.1019 19.3752 13.1125 19.6905 13.1187C20.5772 13.1363 21.4639 13.1533 22.3506 13.1695C24.2674 13.2054 26.2492 13.2427 28.1982 13.2897C28.4722 13.3049 28.7445 13.3434 29.0121 13.4049C29.1173 13.426 29.2263 13.4476 29.3345 13.4664V13.4691C28.9082 13.8607 28.4728 14.2558 28.0513 14.6383L28.0515 14.638ZM14.2565 24.4587C13.435 25.2437 12.5866 26.0547 11.7661 26.8835C11.4253 26.0755 11.2486 25.4123 11.1961 24.7473C11.0504 22.9026 11.1109 21.0664 11.1859 19.3438C11.2201 18.5582 11.2338 17.7592 11.247 16.9865C11.2561 16.4613 11.2655 15.9181 11.2812 15.3847C11.2973 14.8189 11.4856 14.4219 11.9067 14.071L18.3066 20.3896C17.0037 21.833 15.6072 23.1677 14.256 24.4594L14.2565 24.4587ZM30.3906 26.7455C30.3606 26.9075 30.3206 27.0676 30.2706 27.2245C30.2527 27.2854 30.2347 27.3465 30.2178 27.4074L30.192 27.4161L23.408 20.7723C25.7532 18.341 27.9773 16.2675 30.2018 14.438C30.2113 14.481 30.2211 14.5229 30.2306 14.5637C30.2702 14.7119 30.2965 14.8632 30.3092 15.0161C30.3842 16.5549 30.4454 18.0735 30.4903 19.2247C30.5325 20.305 30.5684 21.3708 30.5972 22.3928C30.6332 23.6869 30.6372 25.2164 30.3901 26.7458L30.3906 26.7455Z",fill:"black"})]})}function pt({content:n,contentType:i,eventDetails:t,featuredImage:r}){const{href:o}=j(),e=i==="Event";return p("div",{className:"mt-space-s grid grid-cols-14",children:[p("div",{className:"col-start-2 col-end-14 lg:col-start-6",children:[e&&h("h4",{className:"blockH2 mb-5",children:"About the event"}),n&&h(k,{blocks:n})]}),h("div",{className:"col-start-2 col-end-14 pt-10 lg:col-end-5 lg:row-start-1 lg:pt-0",children:p("div",{className:"sticky top-space-m flex flex-col gap-y-3 lg:gap-y-7",children:[e&&h("div",{className:" flex-col gap-y-3 flex lg:gap-y-7",children:t&&h(k,{blocks:t})}),r&&i==="Review"&&h(x,{data:r,alt:"Book cover",width:(r==null?void 0:r.width)||0,height:(r==null?void 0:r.height)||0,className:" h-full w-full "}),p("div",{children:[h("span",{className:"blockB4 font-bold",children:"Share"}),p("div",{className:"mt-5 flex items-center gap-x-4",children:[h(z,{url:o,className:"transition-standard hover:scale-110",children:h(B,{})}),h(Y,{url:o,className:"transition-standard hover:scale-110",children:h(L,{})}),h(F,{url:o,className:"transition-standard hover:scale-110",children:h(J,{})})]})]})]})})]})}export{pt as default}; //# sourceMappingURL=2be89aab.js.map