text: (window.webpackJsonp=window.webpackJsonp||[]).push([[42,3,6,7],{"./node_modules/@babel/runtime/helpers/construct.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/setPrototypeOf.js"),o=n("./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");function a(t,n,s){return o()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var o=[null];o.push.apply(o,t);var a=new(Function.bind.apply(e,o));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},"./node_modules/@babel/runtime/helpers/isNativeFunction.js":function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},"./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),o=n("./node_modules/@babel/runtime/helpers/setPrototypeOf.js"),a=n("./node_modules/@babel/runtime/helpers/isNativeFunction.js"),s=n("./node_modules/@babel/runtime/helpers/construct.js");function i(t){var n="function"==typeof Map?new Map:void 0;return e.exports=i=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return s(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},i(t)}e.exports=i},"./node_modules/serialize-javascript/index.js":function(e,t,n){"use strict";var r=Math.floor(1099511627776*Math.random()).toString(16),o=new RegExp('"@__(F|R|D|M|S|U)-'+r+'-(\\d+)__@"',"g"),a=/\{\s*\[native code\]\s*\}/g,s=/function.*?\(/,i=/.*?=>.*?/,l=/[<>\/\u2028\u2029]/g,c=["*","async"],u={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function d(e){return u[e]}e.exports=function e(t,n){n||(n={}),"number"!=typeof n&&"string"!=typeof n||(n={space:n});var u,m=[],p=[],f=[],g=[],b=[],h=[];return n.ignoreFunction&&"function"==typeof t&&(t=void 0),void 0===t?String(t):"string"!=typeof(u=n.isJSON&&!n.space?JSON.stringify(t):JSON.stringify(t,n.isJSON?null:function(e,t){if(n.ignoreFunction&&function(e){var t=[];for(var n in e)"function"==typeof e[n]&&t.push(n);for(var r=0;r<t.length;r++)delete e[t[r]]}(t),!t&&void 0!==t)return t;var o=this[e],a=typeof o;if("object"===a){if(o instanceof RegExp)return"@__R-"+r+"-"+(p.push(o)-1)+"__@";if(o instanceof Date)return"@__D-"+r+"-"+(f.push(o)-1)+"__@";if(o instanceof Map)return"@__M-"+r+"-"+(g.push(o)-1)+"__@";if(o instanceof Set)return"@__S-"+r+"-"+(b.push(o)-1)+"__@"}return"function"===a?"@__F-"+r+"-"+(m.push(o)-1)+"__@":"undefined"===a?"@__U-"+r+"-"+(h.push(o)-1)+"__@":t},n.space))?String(u):(!0!==n.unsafe&&(u=u.replace(l,d)),0===m.length&&0===p.length&&0===f.length&&0===g.length&&0===b.length&&0===h.length?u:u.replace(o,(function(t,r,o){return"D"===r?'new Date("'+f[o].toISOString()+'")':"R"===r?"new RegExp("+e(p[o].source)+', "'+p[o].flags+'")':"M"===r?"new Map("+e(Array.from(g[o].entries()),n)+")":"S"===r?"new Set("+e(Array.from(b[o].values()),n)+")":"U"===r?"undefined":function(e){var t=e.toString();if(a.test(t))throw new TypeError("Serializing native function: "+e.name);if(s.test(t))return t;if(i.test(t))return t;var n=t.indexOf("("),r=t.substr(0,n).trim().split(" ").filter((function(e){return e.length>0}));return r.filter((function(e){return-1===c.indexOf(e)})).length>0?(r.indexOf("async")>-1?"async ":"")+"function"+(r.join("").indexOf("*")>-1?"*":"")+t.substr(n):t}(m[o])})))}},"./src/components/analytics/ParselyReporter.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/extends.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/session/RequireFlag.tsx"),m=n("./src/components/session/WithFlag.tsx"),p=n("./src/components/session/WithViewer.tsx"),f=n("./src/framework/source/SourceContext.tsx"),g=n("./src/util/hooks/useScript.tsx"),b=n("./src/util/hooks/useTimer.tsx");function h(){var e=Object(b.a)();return function(t){var n=t.resource,r=t.callback,o=t.max,a=t.ms;return function t(n){var r=n.resource,o=n.callback,a=n.max,s=n.ms,i=n.tries;if(i<a)try{o(r())}catch(n){e((function(){return t({resource:r,callback:o,max:a,ms:2*s,tries:i+1})}),s)}}({resource:n,callback:r,max:o||Number.POSITIVE_INFINITY,ms:a||1,tries:0})}}function v(e){var t=e.currentLocation,n=e.referrer,r=e.referrerSource,o=function(e){return e?e.mediumMemberAt?"member":"user":"visitor"}(e.viewer);return E(t,n,r,o),null}var E=function(e,t,n,r){var a=Object(g.a)("//d1z2jf7jlzjs58.cloudfront.net/keys/medium.com/p.js",{id:"parsely-cf"}),s=o()(a,2),i=s[0],l=s[1],u=h();c.useEffect((function(){i&&!l&&u({resource:function(){return window.PARSELY.beacon},callback:function(){return window.PARSELY.beacon.trackPageView({url:x(e,n),urlref:t,js:1,data:{viewerStatus:r}})},max:10})}),[e,t,i,l])};function x(e,t){if(!e)return"";if(!t)return e;var n=new URL(e),r=Object(f.c)(t),a=r.name,s=r.dimension;if(a&&n.searchParams.set("utm_medium",a),s){var i=s.split("."),l=o()(i,3),c=l[0],u=l[1],d=l[2];c&&n.searchParams.set("utm_source",c),u&&n.searchParams.set("utm_term",u),d&&n.searchParams.set("utm_content",d)}return n.toString()}var y=Object(u.c)((function(e){var t=e.config.isAmp,n=e.client.isBot,r=e.navigation;return{isAmp:t,isBot:n,currentLocation:r.currentLocation,referrer:r.referrer,referrerSource:r.referrerSource}}))((function(e){var t=e.isBot,n=e.isAmp,r=l()(e,["isBot","isAmp"]);return t||n?null:c.createElement(d.a,{name:"enable_parsely"},c.createElement(m.a,{name:"dont_track_user"},(function(e){return e?null:c.createElement(c.Fragment,null,c.createElement("script",null,"window.PARSELY = window.PARSELY || {autotrack: false}"),c.createElement(p.b,null,(function(e){return c.createElement(v,s()({},r,{viewer:e}))})))})))}))},"./src/components/audio/AudioPlayback.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return U}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),l=n.n(i),c=n("./node_modules/graphql-tag/src/index.js"),u=n.n(c),d=n("./node_modules/react/index.js"),m=n.n(d),p=n("./src/components/session/WithViewer.tsx"),f=n("./src/components/upsell/UpsellClickable.tsx"),g=n("./src/framework/design-system/components/index.ts"),b=n("./src/framework/design-system/type/index.ts"),h=n("./src/framework/reporter/index.ts"),v=n("./src/framework/source/index.ts"),E=n("./src/framework/style/index.ts"),x=n("./src/framework/track/UpsellPresentationTracker.tsx"),y=n("./src/svg/audio-21px.svg");function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var w=m.a.createElement("g",{transform:"translate(5 4)",fillRule:"evenodd"},m.a.createElement("rect",{width:6,height:17,rx:2}),m.a.createElement("rect",{x:9,width:6,height:17,rx:2})),_=function(e){return m.a.createElement("svg",O({width:25,height:25},e),w)};function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var j=m.a.createElement("path",{d:"M7 4v17.03a.5.5 0 0 0 .8.4l11.1-8.1a1 1 0 0 0 0-1.62L7.8 3.6A.5.5 0 0 0 7 4z"}),P=function(e){return m.a.createElement("svg",S({width:25,height:25},e),j)};function C(){var e=o()(["\n  fragment AudioPlayback_post on Post {\n    id\n    audioVersionUrl\n    content(postMeteringOptions: $postMeteringOptions) {\n      isLockedPreviewOnly\n    }\n    ...UpsellClickable_post\n  }\n  ","\n"]);return C=function(){return e},e}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T={duration:0,elapsed:0,playing:!1},R=function(e,t){switch(t.type){case"load":return I({},e,{duration:t.duration});case"play":return I({},e,{playing:!0});case"pause":return I({},e,{playing:!1});case"seek":return I({},e,{elapsed:t.clickedTime});case"progress":return I({},e,{elapsed:t.elapsed});case"end":return I({},e,{playing:!1});default:return e}},A={"0%":{visibility:"hidden"},"1%":{visibility:"visible",opacity:0},"100%":{opacity:1}},L={"0%":{opacity:1,visibility:"visible"},"99%":{opacity:0},"100%":{visibility:"hidden"}},M=function(e){var t=e.postId,n=e.audioVersionUrl,r=Object(E.useCx)(),o=d.useReducer(R,T),a=s()(o,2),i=a[0],l=a[1],c=i.duration,u=i.elapsed,m=i.playing,p=Object(E.useKeyframes)({fadeInKeyframesName:A,fadeOutKeyframesName:L}),f=p.fadeInKeyframesName,v=p.fadeOutKeyframesName,x=d.useState(!1),y=s()(x,2),O=y[0],w=y[1],S=d.useState(!1),j=s()(S,2),C=j[0],k=j[1],I=d.useCallback((function(){w((function(e){return k(!!e),!1}))}),[]),M=d.useCallback((function(){w((function(e){return k(!e),!0}))}),[]),B=Object(h.c)();d.useEffect((function(){var e=document.getElementById("audio-player");function t(){l({type:"load",duration:e.duration})}function n(){l({type:"progress",elapsed:e.currentTime})}function r(){l({type:"end"})}return e.addEventListener("canplay",t),e.addEventListener("timeupdate",n),e.addEventListener("ended",r),function(){e.removeEventListener("canplay",t),e.removeEventListener("timeupdate",n),e.removeEventListener("ended",r)}}),[]),d.useEffect((function(){var e=document.getElementById("audio-player");Math.round(u)!==Math.round(e.currentTime)&&document.hasFocus()&&(e.currentTime=u)}),[u]);var D=function(e){var t=e.children,n=e.onClick,r=Object(E.useCx)();return d.createElement("button",{onMouseUp:n,className:r((function(e){return{borderRadius:"4px",padding:"8px",borderWidth:"1px",borderStyle:"solid",boxSizing:"border-box",display:"inline-block",textDecoration:"none",":focus":{outline:"none"},color:e.baseColor.text.normal,fill:e.baseColor.fill.normal,background:0,borderColor:e.baseColor.border.dark,":hover":{cursor:"pointer",color:e.baseColor.text.darker,fill:e.baseColor.fill.darker,borderColor:e.baseColor.border.darker}}}))},t)};return d.createElement(g.a,{display:"flex",justifyContent:"center",margin:"20px 0"},d.createElement("audio",{id:"audio-player"},d.createElement("source",{src:n})),d.createElement(g.a,{display:"flex",alignItems:"center",flexGrow:"1"},d.createElement(g.a,{marginRight:"16px"},d.createElement((function(e){var n=e.playing,r=d.useCallback((function(){var e=document.getElementById("audio-player");n?(B.event("audio.end",{postId:t}),e.pause(),l({type:"pause"})):(B.event("audio.start",{postId:t}),e.play(),l({type:"play"}))}),[n]);return d.createElement(D,{onClick:r},n?d.createElement(_,null):d.createElement(P,null))}),{playing:m})),d.createElement(g.a,{display:"flex",flexDirection:"column",flexGrow:"1"},d.createElement(b.b,{scale:"M",color:"DARKER"},"Listen to this story"),d.createElement((function(e){var t=e.duration,n=e.elapsed,o=e.isProgressBeanVisible,a=e.onMouseEnterProgressBar,s=e.onMouseLeaveProgressBar,i=e.onTimeUpdate,l=n&&t?Math.max(0,Math.min(n/t*100,100)):0;function c(e){var t=~~(e%60);return[~~(e/60),t<10?"0"+t:t].join(":")}function u(e){var n=e.pageX,r=document.getElementById("audio-player-progress-bar"),o=n-(r.getBoundingClientRect().left+window.scrollX);return t/r.offsetWidth*o}var m=[function(e){return{backgroundColor:e.baseColor.fill.normal,position:"relative",marginLeft:"-5px",height:"10px",width:"10px",borderRadius:"50%",left:"".concat(l,"%"),cursor:"pointer",opacity:o?1:0}}];return C&&m.push({animation:"".concat(o?f:v," .2s ease-in-out forwards")}),d.createElement(g.a,{display:"flex",alignItems:"center"},d.createElement(g.a,{width:"28px",marginRight:"12px",textAlign:"left"},d.createElement(b.b,{scale:"M"},n?c(n):"--:--")),d.createElement("div",{className:r((function(e){return{display:"flex",justifyContent:"flex-start",alignItems:"center",flexGrow:1,height:"2px",cursor:"pointer",background:"linear-gradient(to right, ".concat(e.baseColor.fill.normal," ").concat(l,"%, ").concat(e.baseColor.background.normal," 0)")}})),id:"audio-player-progress-bar",onMouseDown:function(e){function t(e){i(u(e))}i(u(e)),document.addEventListener("mousemove",t),document.addEventListener("mouseup",(function(){document.removeEventListener("mousemove",t),s()}))},onMouseEnter:a,onMouseLeave:s},d.createElement("div",{className:r(m),onAnimationEnd:function(){return k(!1)}})),d.createElement(g.a,{width:"28px",marginLeft:"12px",textAlign:"right"},d.createElement(b.b,{scale:"M"},t?c(t):"--:--")))}),{elapsed:u,duration:c,isProgressBeanVisible:O,onMouseEnterProgressBar:M,onMouseLeaveProgressBar:I,onTimeUpdate:function(e){return l({type:"seek",clickedTime:Math.max(0,Math.min(e,c))})}}))))},B=function(e){return{fill:e.baseColor.fill.light,marginLeft:"15px",marginRight:"15px"}},D=function(e){var t=e.post,n=Object(E.useCx)();return d.createElement(g.s,{columns:8,display:"flex",flexShrink:"0",margin:"30px 0",padding:"20px 12px",backgroundColor:"BASE_LIGHT"},d.createElement(y.a,{className:n(B)}),d.createElement(b.b,{scale:"S",color:"DARKER",tag:"span"},"Psst... there’s an audio version of this story."," ",d.createElement(f.a,{post:t,linkStyle:"OBVIOUS"},"Upgrade to listen")))};function N(e){var t=e.post,n=t.id,r=t.audioVersionUrl,o=(t.content||{}).isLockedPreviewOnly;return d.createElement(g.a,{marginTop:"30px"},d.createElement(p.b,null,(function(e){return e&&!!e.mediumMemberAt||!o?d.createElement(M,{postId:n,audioVersionUrl:r}):d.createElement(v.b,{source:{dimension:"audio_exclusive",name:"upgrade_membership",postId:n}},d.createElement(x.a,null,d.createElement(D,{post:t})))})))}var U=u()(C(),f.b)},"./src/components/broadcast-banner/BroadcastBanner.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),l=n.n(i),c=n("./node_modules/lodash/cloneDeep.js"),u=n.n(c),d=n("./node_modules/react/index.js"),m=n("./src/components/broadcast-banner/useCdcMessaging.tsx"),p=n("./node_modules/react-redux/es/index.js"),f=n("./src/components/session/useFlag.tsx"),g=n("./src/components/cta/TextCTA.tsx"),b=n("./src/framework/design-system/components/index.ts"),h=n("./src/framework/style/index.ts"),v=n("./src/svg/exclamation-25px.svg");function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e){return{width:"20px",height:"20px",fill:e.baseColor.text.lighter}},O=function(e){for(var t=u()(e),n=t.markups,r=t.text,o=[r],a=0,i=Object.entries(n);a<i.length;a++){var c=l()(i[a],2),d=c[0],m=c[1],p=o.pop();if(!p||"string"!=typeof p){o=[r];break}var f=p.substring(0,m.start),g=p.substring(m.start,m.end),b=p.substring(m.end);o=[].concat(s()(o),[f,x({text:g},m),b]);for(var h=Number(d)+1;h<n.length;h++)n[h].start=n[h].start-m.end,n[h].end=n[h].end-m.end}return o},w=function(e){var t=e.parsedMessage;return d.createElement(b.a,{marginLeft:"8px",maxWidth:"calc(100% - 33px)"},t.map((function(e,t){return"string"==typeof e?d.createElement(d.Fragment,{key:"parsedBroadcastMessage-".concat(t)},e):d.createElement(b.m,{key:"parsedBroadcastMessage-".concat(t),linkStyle:"OBVIOUS",href:e.href,target:"_blank"},e.text)})))},_=function(e){var t=e.tier,n=e.topics,r=e.tags,o=e.isLocked,a=e.postId,s=e.isTopicPage,i=e.postPublishDate,l=Object(h.useCx)(),c=Object(m.a)({tier:t,topics:n,tags:r,flag:"covid_19_cdc_banner",isLocked:o,postId:a,isTopicPage:s,postPublishDate:i}),u=c.shouldShowCdcMessaging,E=c.message,x=function(e){var t=e.postId,n=void 0===t?null:t,r=e.tags,o=void 0===r?[]:r,a=e.topics,s=void 0===a?[]:a,i=e.flag,l=Boolean(Object(f.a)(i)),c=Object(p.f)((function(e){return{sharedGetOutTheVoteMessaging:e.config.sharedVoteMessaging,isUs:e.client.isUs}}),p.d),u=c.sharedGetOutTheVoteMessaging,d=c.isUs,m=u.TAGS,g=u.TOPICS,b=u.MESSAGE,h=u.EXCLUDE_POSTS,v=m.map((function(e){return e.toLowerCase()})),E=g.map((function(e){return e.toLowerCase()})),x=h.includes(n||""),y=o.map((function(e){return v.includes((null==e?void 0:e.toLowerCase())||"")})).includes(!0),O=s.map((function(e){return E.includes((null==e?void 0:e.toLowerCase())||"")})).includes(!0);return{shouldShowVoteMessaging:l&&d&&(y||O)&&!x,voteMessage:b}}({topics:n,tags:r,flag:"vote_banner",postId:a}),_=x.shouldShowVoteMessaging,S=x.voteMessage,j=d.useCallback((function(){return O(E)}),[E]),P=d.useCallback((function(){return O(S)}),[S]);if(!u&&!_)return null;var C=u?j():P();return d.createElement(g.b,{scale:g.a.S},d.createElement(b.a,{display:"flex"},d.createElement(v.a,{className:l(y)}),d.createElement(w,{parsedMessage:C})))}},"./src/components/broadcast-banner/useCdcMessaging.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("./node_modules/react-redux/es/index.js"),o=n("./src/components/session/useFlag.tsx"),a={1:"tierA",2:"tierA",other:"tierA"},s=function(e){var t=e.tags,n=void 0===t?[]:t,s=e.topics,i=void 0===s?[]:s,l=e.tier,c=e.flag,u=e.isLocked,d=e.isTopicPage,m=e.postId,p=e.postPublishDate,f=Boolean(Object(o.a)(c)),g=Boolean(Object(o.a)("enable_unbound")),b=Object(r.f)((function(e){return{sharedCdcMessaging:e.config.sharedCdcMessaging}}),r.d).sharedCdcMessaging,h=b.COVID_APPLICABLE_TAG_SLUGS,v=b.COVID_APPLICABLE_TOPIC_NAMES,E=b.COVID_APPLICABLE_TOPIC_NAMES_FOR_TOPIC_PAGE,x=b.COVID_MESSAGES,y=b.COVID_BANNER_POST_ID_OVERRIDE_WHITELIST,O={shouldShowCdcMessaging:!1,message:x[a.other]};if(y.includes(m||""))return O;if(p&&p<15778368e5)return O;var w=h.map((function(e){return e.toLowerCase()})),_=(d?E:v).map((function(e){return e.toLowerCase()})),S=n.map((function(e){return w.includes((null==e?void 0:e.toLowerCase())||"")})).includes(!0),j=i.map((function(e){return _.includes((null==e?void 0:e.toLowerCase())||"")})).includes(!0);return{shouldShowCdcMessaging:f&&!(!S&&!j),message:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,i=r.some((function(e){return t.includes(e?e.toLowerCase():"")}));return i&&o&&[1,2].includes(n||0)?s?e.unbound:e.paywall:null==n?e[a.other]:e[a[n]||"tierB"]}(x,_,l,i,u,g)}}},"./src/components/collection/CollectionFollowButton.tsx":function(e,t,n){"use strict";n.d(t,"c",(function(){return R})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return H}));var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),l=n.n(i),c=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),u=n("./node_modules/graphql-tag/src/index.js"),d=n.n(u),m=n("./node_modules/react/index.js"),p=n("./node_modules/react-redux/es/index.js"),f=n("./src/components/session/WithViewer.tsx"),g=n("./src/components/style/BaseThemeProvider.tsx"),b=n("./src/components/susi/SusiClickable.tsx"),h=n("./src/framework/design-system/components/index.ts"),v=n("./src/framework/design-system/components/portal/ui/Toast.tsx"),E=n("./src/framework/design-system/type/index.ts"),x=n("./src/framework/reporter/index.ts"),y=n("./src/framework/source/index.ts"),O=n("./src/framework/style/index.ts"),w=n("./src/framework/track/index.ts"),_=n("./src/svg/arrow-down-21px.svg"),S=n("./src/util/routes.ts");function j(){var e=l()(["\n  mutation UnsubscribeCollectionEmailsMutation($id: ID!) {\n    unsubscribeCollectionEmails(collectionId: $id) {\n      __typename\n      id\n      isUserSubscribedToCollectionEmails\n    }\n  }\n"]);return j=function(){return e},e}function P(){var e=l()(["\n  mutation SubscribeCollectionEmailsMutation($id: ID!) {\n    subscribeCollectionEmails(collectionId: $id) {\n      __typename\n      id\n      isUserSubscribedToCollectionEmails\n    }\n  }\n"]);return P=function(){return e},e}function C(){var e=l()(["\n  mutation UnfollowCollectionMutation($id: ID!) {\n    unfollowCollection(targetCollectionId: $id) {\n      __typename\n      id\n      viewerIsFollowing\n    }\n  }\n"]);return C=function(){return e},e}function k(){var e=l()(["\n  mutation FollowCollectionMutation($id: ID!) {\n    followCollection(targetCollectionId: $id) {\n      __typename\n      id\n      viewerIsFollowing\n      isUserSubscribedToCollectionEmails\n    }\n  }\n"]);return k=function(){return e},e}function I(){var e=l()(["\n  fragment CollectionFollowButton_collection on Collection {\n    __typename\n    id\n    viewerIsFollowing\n    name\n    viewerIsSubscribedToLetters\n    canToggleEmail\n    slug\n    isUserSubscribedToCollectionEmails\n    ...collectionUrl_collection\n    ...SusiClickable_collection\n  }\n  ","\n  ","\n"]);return I=function(){return e},e}function T(){var e=l()(["\n  fragment CollectionFollowButton_post on Post {\n    __typename\n    id\n  }\n"]);return T=function(){return e},e}var R=d()(T()),A=d()(I(),S.L,b.b),L=function(e){var t=e.children,n=e.extraTopPadding,r=e.extraBottomPadding,o=e.padding,a=e.margin,s=e.borderTop;return m.createElement(h.a,{padding:o||"".concat(n?"20px":"5px"," 20px ").concat(r?"20px":"5px"," 20px"),margin:a,borderTop:s?"BASE_LIGHTER":"NONE"},t)},M=d()(k()),B=d()(C()),D=d()(P()),N=d()(j()),U=function(e){return{followCollectionMutation:function(e){var t=Object(c.d)(M),n=s()(t,1)[0];return m.useCallback((function(){return n({variables:{id:e.id},optimisticResponse:{followCollection:{__typename:"Collection",id:e.id,viewerIsFollowing:!0,isUserSubscribedToCollectionEmails:!1}}})}),[e])}(e),unfollowCollectionMutation:function(e){var t=Object(c.d)(B),n=s()(t,1)[0];return m.useCallback((function(){return n({variables:{id:e.id},optimisticResponse:{unfollowCollection:{__typename:"Collection",id:e.id,viewerIsFollowing:!1}}})}),[e])}(e),subscribeCollectionEmailsMutation:function(e){var t=Object(c.d)(D),n=s()(t,1)[0];return m.useCallback((function(){return n({variables:{id:e.id},optimisticResponse:{subscribeCollectionEmails:{__typename:"Collection",id:e.id,isUserSubscribedToCollectionEmails:!0}}})}),[e])}(e),unsubscribeCollectionEmailsMutation:function(e){var t=Object(c.d)(N),n=s()(t,1)[0];return m.useCallback((function(){return n({variables:{id:e.id},optimisticResponse:{unsubscribeCollectionEmails:{__typename:"Collection",id:e.id,isUserSubscribedToCollectionEmails:!1}}})}),[e])}(e)}},F=function(e){return function(t){return e?{fill:t.baseColor.text.lighter,marginLeft:"2px",width:"18px",height:"auto",position:"absolute",bottom:"0"}:{fill:"inherit",marginLeft:"6px"}}},H=function(e){var t=e.buttonSize,n=e.collection,r=e.isPopoverVisible,a=e.isToastVisible,i=e.post,l=e.simpleButton,c=e.isLinkStyle,u=Object(O.useCx)(),d=Object(p.f)((function(e){return e.config.isAmp})),S=n&&n.name?n.name:"",j=Object(x.c)(),P=Object(y.d)(),C=m.useState(!!r),k=s()(C,2),I=k[0],T=k[1],R=m.useState(!!a),A=s()(R,2),M=A[0],B=A[1],D=U(n),N=D.followCollectionMutation,H=D.unfollowCollectionMutation,G=D.subscribeCollectionEmailsMutation,W=D.unsubscribeCollectionEmailsMutation,q=m.useCallback((function(){T(!1)}),[]);m.useEffect((function(){return w.a.on("scroll",q),function(){w.a.off("scroll",q)}}),[q]);var $=m.useCallback((function(){n.viewerIsFollowing||(j.event("collection.followed",{collectionId:n.id,followSource:P}),N()),T(!0)}),[n]),K=m.useCallback((function(){j.event("collection.unfollowed",{collectionId:n.id,followSource:P}),H(),T(!1)}),[]),Y=m.useCallback((function(){T(!1)}),[]),Q=m.useCallback((function(e){j.event("client.action",{action:"toggle-subscribe-collection-emails",eventType:"click",classAttribute:"checkbox"}),e.target.checked?G():W(),B(!0)}),[]),X=m.useCallback((function(){B(!1)}),[]);if(d)return null;if(l)return z(n,i,$,K);var J=!!n.isUserSubscribedToCollectionEmails;return m.createElement(y.b,{source:{susiEntry:"follow_card"}},m.createElement(h.p,{isVisible:!!I,hide:Y,popoverRenderFn:function(){return m.createElement(h.a,{width:"280px",display:"flex",flexDirection:"column"},m.createElement(L,{extraTopPadding:!0},m.createElement(E.c,{scale:"XS"},"You‘re following ",S)),m.createElement(L,null,m.createElement(E.b,{scale:"M"},"You‘ll now see more stories from ",S," across Medium.")),n.canToggleEmail&&m.createElement(L,null,m.createElement(E.b,{scale:"M"},m.createElement("label",null,m.createElement(h.a,{display:"inline",marginRight:"5px"},m.createElement("input",{type:"checkbox",onChange:Q,checked:J})),"Receive emails from this publication"))),m.createElement(L,{extraBottomPadding:!0},m.createElement(E.b,{scale:"M"},m.createElement(h.m,{onClick:K,linkStyle:"OBVIOUS",inline:!0},"Unfollow publication"))))}},m.createElement((function(e){var t=e.children,r=e.buttonSize,o=void 0===r?"SMALL":r,a=e.buttonStyle,s=e.linkStyle,l=void 0===s?null:s;return m.createElement(f.b,null,(function(e){return e?null!=l?m.createElement(h.m,{onClick:$,linkStyle:l},t):m.createElement(h.b,{size:o,onClick:$,buttonStyle:a},t):m.createElement(b.a,{collection:n,buttonStyle:"OBVIOUS",linkStyle:"OBVIOUS",isButton:!c,buttonSize:o,operation:"register",actionUrl:V(n,i)||""},t)}))}),o()({buttonStyle:n.viewerIsFollowing?"STRONG":"OBVIOUS",linkStyle:c?n.viewerIsFollowing?"SUBTLE":"OBVIOUS":null},t),m.createElement(h.a,{display:"flex",flexDirection:"row"},n.viewerIsFollowing?"Following":"Follow",n.viewerIsFollowing&&m.createElement("span",{className:u({position:"relative"})},m.createElement(_.a,{className:u(F(c))}))))),m.createElement(g.b,null,m.createElement(v.a,{isVisible:!!M,hide:X,duration:2e3},m.createElement(E.b,{scale:"M"},J?"You‘ll now receive emails from ".concat(S,"."):"You‘ll no longer receive emails from ".concat(S,".")))))},V=function(e,t){return e.slug&&(t&&t.id?Object(S.bc)(e.slug,t.id):Object(S.ac)(e.slug))},z=function(e,t,n,r){return m.createElement(y.b,{source:{susiEntry:"follow_card"}},m.createElement(f.b,null,(function(o){return o?m.createElement(h.b,{size:"REGULAR",onClick:e.viewerIsFollowing?r:n,buttonStyle:e.viewerIsFollowing?"STRONG":"OBVIOUS"},e.viewerIsFollowing?"Following":"Follow"):m.createElement(b.a,{collection:e,buttonStyle:"OBVIOUS",isButton:!0,buttonSize:"REGULAR",operation:"register",actionUrl:V(e,t)||""},e.viewerIsFollowing?"Following":"Follow")})))}},"./src/components/collection/CollectionLogo.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/publisher/auroraHooks.ts"),c=n("./src/components/ui/image/index.ts"),u=n("./src/framework/design-system/components/index.ts"),d=n("./src/framework/design-system/type/useTypeRules.ts"),m=n("./src/framework/style/index.ts"),p=n("./src/schema-types/globalTypes.ts"),f=n("./src/util/miroImage.ts");function g(){var e=o()(["\n  fragment CollectionLogo_image on ImageMetadata {\n    id\n    originalHeight\n    originalWidth\n  }\n"]);return g=function(){return e},e}function b(){var e=o()(["\n  fragment CollectionLogo_collection on Collection {\n    ...auroraHooks_publisher\n    name\n    isAuroraVisible\n    logo {\n      id\n      originalWidth\n      originalHeight\n    }\n  }\n  ","\n"]);return b=function(){return e},e}function h(e){var t=e.clamp,n=void 0===t?1:t,r=e.collection,o=e.maxWidth,a=e.maxHeight,s=e.textScale,g=void 0===s?"S":s,b=e.withTextColorSubtle,h=void 0!==b&&b,v=e.customNameColor,E=e.customLogoImage,x=e.nameTreatment,y=Object(m.useCx)(),O=Object(d.a)({name:"heading",scale:g,clamp:n}),w=function(e,t){return function(n){return{color:t||n.baseColor.text[e]}}}(h?"normal":"dark",v),_=Object(l.f)(r)&&void 0!==E?E:r.logo;if(!_||!_.id||x===p.j.NAME_TREATMENT_TEXT)return i.createElement("span",{className:y([O,w])},r.name||"");var S=_.id,j=_.originalWidth||100,P=_.originalHeight||100;if(o&&j>o){var C=j/o;j=Math.floor(j/C),P=Math.floor(P/C)}if(a&&P>a){var k=P/a;j=Math.floor(j/k),P=Math.floor(P/k)}return i.createElement(u.a,{width:"".concat(j,"px"),height:"".concat(P,"px")},i.createElement(c.c,{miroId:S,alt:r.name||"Publication logo",width:j,height:P,strategy:f.a.Resample}))}var v=s()(b(),l.a);s()(g())},"./src/components/collection/CollectionMetabar.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return te})),n.d(t,"a",(function(){return ne})),n.d(t,"c",(function(){return re}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),l=n.n(i),c=n("./node_modules/graphql-tag/src/index.js"),u=n.n(c),d=n("./node_modules/react/index.js"),m=n("./node_modules/react-redux/es/index.js"),p=n("./node_modules/@babel/runtime/helpers/extends.js"),f=n.n(p),g=n("./src/components/collection/CollectionLogo.tsx"),b=n("./src/framework/design-system/components/index.ts"),h=n("./src/framework/design-system/type/createClampRule.ts"),v=n("./src/framework/design-system/type/createLeadingTrimRule.ts"),E=n("./src/framework/design-system/type/createSizeRule.ts"),x=n("./src/framework/design-system/util/style/responsiveStyles.ts"),y=n("./src/framework/style/index.ts"),O=function(e){var t=e.fontConfig,n=e.scale,r=e.tag,o=e.children,a=e.additionalRules,s=e.clamp,i=e.leadingTrim,c=Object(y.useCx)(),u=r,m={fontFamily:t.family,fontWeight:t.weight},p=Object(x.b)((function(e){var n=l()(e,1)[0];return t.lineHeight[n]}),n),f=Object(E.a)({fontConfig:t,scale:n}),g=s?Object(h.a)({clamp:s,lineHeight:p}):void 0,b=i?Object(v.a)({fontConfig:t,scale:n}):void 0;return d.createElement(u,{className:c([m,f,g,b,a])},o)},w=n("./src/styles/breakpoints.ts");function _(){var e=o()(["\n  fragment CollectionNavItems_collection on Collection {\n    navItems {\n      title\n      url\n      type\n    }\n  }\n"]);return _=function(){return e},e}var S=function(e){var t;return t={listStyleType:"none",margin:0,lineHeight:"40px",whiteSpace:"nowrap",overflowX:"auto",display:"flex",alignItems:"flex-start"},s()(t,w.sm(e),{display:"none"}),s()(t,"marginTop","".concat(20,"px")),s()(t,"paddingTop","".concat(20,"px")),s()(t,"height","".concat(80,"px")),t},j={display:"flex",alignItems:"center",height:"".concat(20,"px"),marginRight:"15px",marginLeft:"15px",":first-child":{marginLeft:0}},P=function(e){return{height:"".concat(20,"px"),minWidth:"1px",backgroundColor:e.baseColor.border.normal}};function C(e){var t=e.navItems,n=e.withTextColorSubtle,r=Object(y.useCx)(),o=Object(y.useTheme)();return t?d.createElement("ul",{className:r(S)},t.map((function(e,t){return e.url&&d.createElement(d.Fragment,{key:t},"EXTERNAL_LINK_NAV_ITEM"===e.type&&d.createElement("span",{className:r(P)}),d.createElement("li",{className:r(j)},d.createElement(O,{fontConfig:o.newFonts.detail,scale:"S",tag:"span",additionalRules:(a=n?"lighter":"normal",function(e){return{color:e.baseColor.text[a],textTransform:"uppercase",letterSpacing:"1px"}})},d.createElement(b.m,{href:e.url},e.title))));var a}))):null}var k=u()(_()),I=n("./src/components/navigation/Anchor.tsx"),T=n("./src/framework/design-system/typedefs/responsiveStyles.ts"),R=n("./src/util/routes.ts"),A=n("./src/util/theme.ts");function L(){var e=o()(["\n  fragment CollectionMetabarBottom_collection on Collection {\n    slug\n    ...CollectionNavItems_collection\n    ...CollectionLogo_collection\n    ...collectionUrl_collection\n    ...ThemeUtilTintBackground_collection\n  }\n  ","\n  ","\n  ","\n  ","\n"]);return L=function(){return e},e}var M=u()(L(),k,g.b,R.L,A.a),B=Object(m.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.collection,n=e.currentLocation,r=e.shouldShowCollectionLogo,o=void 0===r||r,a=e.withBorderTop,i=void 0!==a&&a,l=e.withTextColorSubtle,c=void 0!==l&&l,u=e.breakpoint,m=void 0===u?T.a.sm:u,p=t.navItems.slice().length>0;return d.createElement(b.a,f()({backgroundColor:"BACKGROUND",display:p?"block":"none",borderTop:i?"BASE_LIGHTER":"NONE"},s()({},m,{display:"block"})),d.createElement(b.o,null,d.createElement(b.a,{display:"flex",alignItems:"center",height:"54px",overflow:"hidden"},o?d.createElement(b.a,{flexShrink:"0",marginRight:"40px"},d.createElement(I.a,{href:Object(R.K)(t,n)},d.createElement(g.a,{collection:t,maxWidth:300,maxHeight:36,textScale:"S",withTextColorSubtle:c}))):null,d.createElement(b.a,{flexShrink:"1",overflow:"auto"},d.createElement(C,{navItems:t.navItems,withTextColorSubtle:c})))))})),D=n("./src/components/metabar/Logo.tsx"),N=n("./src/components/metabar/MetabarActions.tsx"),U=n("./src/components/metabar/MetabarActionsLO.tsx"),F=n("./src/components/metabar/OpenInApp.tsx"),H=n("./src/components/metabar/constants.ts"),V=n("./src/components/session/WithViewer.tsx"),z=n("./src/styles/zIndex.ts");function G(){var e=o()(["\n  fragment CollectionMetabarTop_collection on Collection {\n    slug\n    ...CollectionLogo_collection\n    ...collectionUrl_collection\n    ...MetabarActions_publisher\n  }\n  ","\n  ","\n  ","\n"]);return G=function(){return e},e}var W=u()(G(),g.b,R.L,N.b),q=Object(m.c)((function(e){return{authDomain:e.config.authDomain,currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.authDomain,n=e.collection,r=e.currentLocation,o=e.isAmp,a=e.post,i=e.shouldShowCollectionLogo,l=e.withMonogramDark,c=e.setIsMetabarLocked,u=e.breakpoint,m=void 0===u?T.a.sm:u,p=e.hideOpenInAppLink,h=void 0!==p&&p;return d.createElement(b.a,{backgroundColor:"BACKGROUND"},d.createElement(b.o,null,d.createElement(b.a,f()({display:"flex",alignItems:"center",height:"".concat(H.a,"px")},s()({},m,{display:"flex",height:"".concat(H.c,"px")})),d.createElement(b.a,{display:"flex",alignItems:"center",flexGrow:"1",zIndex:z.a.metabar},d.createElement(I.a,{href:"https://".concat(t,"/"),"aria-label":"Homepage"},d.createElement(D.a,{dark:l})),i&&d.createElement(d.Fragment,null,d.createElement(b.a,f()({height:"24px",width:"1px",marginLeft:"15px",marginRight:"14px",borderLeft:"BASE_LIGHT"},s()({},m,{display:"none"}))),d.createElement(b.a,s()({},m,{display:"none"}),d.createElement(I.a,{href:Object(R.K)(n,r)},d.createElement(g.a,{collection:n,maxWidth:240,maxHeight:36,textScale:"M"})))),d.createElement(V.b,null,(function(e){return!h&&e?d.createElement(F.a,{postId:a&&a.id,collectionSlug:n.slug}):d.createElement(d.Fragment,null)}))),d.createElement(b.a,{flexGrow:"0",zIndex:z.a.metabar},o?d.createElement(U.a,{withoutConversionButton:!0,post:a,publisher:n}):d.createElement(N.c,{post:a,publisher:n,withoutConversionButton:!0,setIsMetabarLocked:c})))))})),$=n("./src/components/metabar/MetabarLayout.tsx"),K=n("./src/components/session/useFlag.tsx"),Y=n("./src/metadata/Favicon.tsx");function Q(){var e=o()(["\n  fragment CollectionMetabar_collection on Collection {\n    id\n    colorBehavior\n    isAuroraVisible\n    favicon {\n      id\n    }\n    ...CollectionMetabarTop_collection\n    ...CollectionMetabarBottom_collection\n    ...collectionDefaultBackgroundTheme_collection\n    ...collectionTintBackgroundTheme_collection\n  }\n  ","\n  ","\n  ","\n  ","\n"]);return Q=function(){return e},e}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){return H.a+(e?H.b:0)}function Z(e){return H.c+(e?H.b:0)}function ee(e){var t,n=e.post,r=e.collection,o=e.isAmp,a=e.isFixed,s=e.behavior,i=e.shouldShowBottomMetabar,c=void 0===i||i,u=e.hideOpenInAppLink,p=Object(y.useTheme)(),f=d.useState(!1),g=l()(f,2),h=g[0],v=g[1],E=d.useState(!1),x=l()(E,2),O=x[0],w=x[1],_=Object(m.f)((function(e){return e.client.isNativeMedium})),S="ACCENT_COLOR"===r.colorBehavior,j=r.navItems&&r.navItems.length>0,P=c&&j,C=!(P||O),k=S||P||O,I=!!Object(K.a)("make_nav_sticky")&&O;if(d.useEffect((function(){window.innerWidth<p.breakpoints.md&&w(!0)}),[]),_)return null;var T=c&&d.createElement(b.x,{theme:S?Object(A.c)(r,p):Object(A.e)(r,p)},d.createElement(B,{collection:r,withBorderTop:S,withTextColorSubtle:S}));return d.createElement(d.Fragment,null,d.createElement($.a,{height:J(j&&c),heightSm:Z(!I&&c),isFixed:I||a,isLocked:I||h,behavior:s,marginBottom:0,marginBottomSm:0},d.createElement(Y.a,{faviconImageId:null==r||null===(t=r.favicon)||void 0===t?void 0:t.id}),d.createElement(b.x,{theme:k?Object(A.c)(r,p):Object(A.e)(r,p)},d.createElement(q,{post:n,collection:r,isAmp:o,shouldShowCollectionLogo:C,withMonogramDark:k,setIsMetabarLocked:v,hideOpenInAppLink:u})),!I&&T),I&&T)}function te(e){var t,n=e.post,r=e.collection,o=e.isAmp,a=e.isFixed,i=e.behavior,c=e.shouldShowCollectionLogo,u=void 0===c||c,p=e.shouldShowBottomMetabar,f=void 0===p||p,g=e.hideOpenInAppLink,h=Object(y.useTheme)(),v=!!Object(K.a)("make_nav_sticky"),E="ACCENT_COLOR"===r.colorBehavior,x=E?Object(A.c)(r,h):Object(A.e)(r,h),O=d.useState(!1),w=l()(O,2),_=w[0],S=w[1],j=v&&_,P=E?"#E5E5E5":x.baseColor.border.light,C=d.useState(!1),k=l()(C,2),I=k[0],R=k[1],L=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{navItems:[]}),M=L.navItems&&L.navItems.length>0,D=f&&(u||M),N=Object(m.f)((function(e){return e.client.isNativeMedium}));if(d.useEffect((function(){window.innerWidth<h.breakpoints.md&&S(!0)}),[]),N)return null;var U=function(e){return{borderTop:"1px solid ".concat(e.baseColor.border.lighter),opacity:.4}},F=d.createElement(B,{collection:L,shouldShowCollectionLogo:u,withBorderTop:E,withTextColorSubtle:E,breakpoint:T.a.xs});return d.createElement(d.Fragment,null,d.createElement($.a,{borderColor:P,height:J(M&&f),heightSm:Z(!j&&u&&f),isFixed:j||a,isLocked:j||I,behavior:i,marginBottom:0,marginBottomSm:0,breakpoint:T.a.xs},d.createElement(Y.a,{faviconImageId:null==r||null===(t=r.favicon)||void 0===t?void 0:t.id}),d.createElement(b.x,{theme:x},d.createElement(b.a,{backgroundColor:"BACKGROUND"},d.createElement(q,{post:n,collection:L,isAmp:o,shouldShowCollectionLogo:u&&(!M||!f),withMonogramDark:!E,setIsMetabarLocked:R,breakpoint:T.a.xs,hideOpenInAppLink:g}),D&&!E?d.createElement(y.WithCx,null,(function(e){return d.createElement("div",{className:e(U)})})):null,!j&&D&&F))),j&&D&&d.createElement(b.x,{theme:x},d.createElement(b.a,{backgroundColor:"BACKGROUND"},F)))}function ne(e){return e.collection.isAuroraVisible?d.createElement(te,e):d.createElement(ee,e)}var re=u()(Q(),W,M,A.d,A.f)},"./src/components/collection/PublisherLogo.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return b}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/ui/image/index.ts"),c=n("./src/framework/design-system/components/index.ts"),u=n("./src/framework/design-system/type/useTypeRules.ts"),d=n("./src/framework/style/index.ts"),m=n("./src/schema-types/globalTypes.ts"),p=n("./src/util/miroImage.ts");function f(){var e=o()(["\n  fragment PublisherLogo_image on ImageMetadata {\n    id\n    originalHeight\n    originalWidth\n  }\n"]);return f=function(){return e},e}function g(e){var t=e.clamp,n=void 0===t?1:t,r=e.maxWidth,o=e.maxHeight,a=e.textScale,s=void 0===a?"S":a,f=e.withTextColorSubtle,g=void 0!==f&&f,b=e.customNameColor,h=e.name,v=e.logo,E=e.nameTreatment,x=e.leadingTrim,y=void 0!==x&&x,O=e.withWordBreak,w=void 0!==O&&O,_=Object(d.useCx)(),S=Object(u.a)({name:"heading",scale:s,clamp:n,leadingTrim:y}),j=function(e,t){return function(n){return{color:t||n.baseColor.text[e]}}}(g?"normal":"dark",b),P=w?{wordBreak:"break-word"}:{};if(!v||!v.id||E===m.j.NAME_TREATMENT_TEXT)return i.createElement("span",{className:_([S,j,P])},h||"");var C=v.id,k=v.originalWidth||100,I=v.originalHeight||100;if(r&&k>r){var T=k/r;k=Math.floor(k/T),I=Math.floor(I/T)}if(o&&I>o){var R=I/o;k=Math.floor(k/R),I=Math.floor(I/R)}return i.createElement(c.a,{width:"".concat(k,"px"),height:"".concat(I,"px")},i.createElement(l.c,{miroId:C,alt:h||"Publication logo",width:k,height:I,strategy:p.a.Resample}))}var b=s()(f())},"./src/components/collection/package/TruncatedPostCard.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return Pe})),n.d(t,"b",(function(){return Ie}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/extends.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),l=n.n(i),c=n("./node_modules/graphql-tag/src/index.js"),u=n.n(c),d=n("./node_modules/react/index.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),f=n.n(p),g=n("./node_modules/react-redux/es/index.js"),b=n("./src/components/mutations/DeletePostMutation.tsx"),h=n("./src/components/post/footer/actions/PubStatusMutations.tsx"),v=n("./src/components/publisher/publisherHelpers.tsx"),E=n("./src/components/ui/PopoverMenu.tsx"),x=n("./src/framework/design-system/components/index.ts"),y=n("./src/framework/style/index.ts"),O=n("./src/svg/overflow-dots-filled-25px.svg"),w=n("./src/util/function.ts"),_=n("./src/util/hooks/useToggle.tsx"),S=n("./src/util/routes.ts");function j(){var e=o()(["\n  fragment TruncatedPostCardEditorWriterButton_post on Post {\n    id\n    collection {\n      id\n      name\n      slug # Needed for rejectPostFromPub (not currently exposed as a reusable fragment)\n    }\n    ...useIsPinnedInContext_post\n  }\n  ","\n"]);return j=function(){return e},e}var P=function(e){return{fill:e.baseColor.fill.normal,":hover":{fill:e.baseColor.fill.darker},":focus":{fill:e.baseColor.fill.darker}}},C=function(e){var t=e.post,n=e.publisherContext,r=e.isEditor,o=e.isWriter,a=Object(y.useCx)(),i=Object(g.f)((function(e){return e.config.authDomain})),l=t.id,c=t.collection,u=c||{id:"",name:""},m=u.id,p=u.name,j=Object(_.a)(!1),C=f()(j,3),k=C[0],I=C[1],T=C[2],R=Object(v.b)(t,n),A=f()(R,2),L=A[0],M=A[1],B=d.useCallback((function(){T(),M().then((function(){return window.location.reload()}))}),[T,M]),D=Object(h.b)(t),N=Object(_.a)(!1),U=f()(N,3),F=U[0],H=U[1],V=U[2],z=d.useCallback((function(){D(c).then((function(){return window.location.reload()}))}),[m,D]),G=Object(b.a)(l),W=f()(G,1)[0],q=Object(_.a)(!1),$=f()(q,3),K=$[0],Y=$[1],Q=$[2],X=d.useCallback((function(){W().then((function(){return window.location.reload()}))}),[W]),J={buttonStyle:"ERROR",cancelText:"Cancel"};return d.createElement(d.Fragment,null,d.createElement(x.f,s()({},J,{isVisible:F,onConfirm:z,hide:V,titleText:"Remove story",confirmText:"Remove",isDestructiveAction:!0}),"Are you sure you want to remove this story from ",p,"?"),d.createElement(x.f,s()({},J,{isVisible:K,onConfirm:X,hide:Q,titleText:"Delete story",confirmText:"Delete",isDestructiveAction:!0}),"Are you sure you want to delete this story?"),d.createElement(x.p,{hide:T,isVisible:k,popoverRenderFn:function(){return d.createElement(E.a,null,(r||o&&"User"===n)&&d.createElement(E.b,null,d.createElement(x.m,{onClick:B},L?"Unpin":"Pin"," story")),d.createElement(E.b,null,d.createElement(x.m,{href:Object(S.Db)(i,l)},"Edit story")),d.createElement(E.c,null),d.createElement(E.b,null,d.createElement(x.m,{href:Object(S.Hb)(i,l)},"Story settings")),d.createElement(E.b,null,d.createElement(x.m,{href:Object(S.Mc)(i,l)},"View stats")),d.createElement(E.c,null),m&&d.createElement(E.b,null,d.createElement(x.m,{onClick:H},"Remove story from publication")),o&&d.createElement(E.b,null,d.createElement(x.m,{onClick:Object(w.a)(T,Y)},"Delete story")))}},d.createElement(x.m,{onClick:I,ariaLabel:"More options"},d.createElement(O.a,{className:a(P)}))))},k=u()(j(),v.c),I=n("./src/components/mutations/UserBlockMutation.tsx"),T=n("./src/components/mutations/UserReportStoryMutation.tsx"),R=n("./src/components/mutations/UserUnblockMutation.tsx"),A=n("./src/components/mute/useMute.tsx"),L=n("./src/components/session/useFlag.tsx"),M=n("./src/components/user/UserBlockConfirmDialog.tsx"),B=n("./src/components/user/UserReportStoryDialog.tsx");function D(){var e=o()(["\n  fragment TruncatedPostCardReaderButton_post on Post {\n    id\n    collection {\n      id\n    }\n    creator {\n      id\n      isBlocking\n      isMuting\n    }\n  }\n"]);return D=function(){return e},e}var N=function(e){return{fill:e.baseColor.fill.normal,":hover":{fill:e.baseColor.fill.darker},":focus":{fill:e.baseColor.fill.darker}}},U=function(e){var t,n=e.post,r=e.viewer,o=Object(y.useCx)(),a=n.creator,s=n.id,i=a||{},l=i.id,c=i.isMuting,u=i.isBlocking,m=null===(t=n.collection)||void 0===t?void 0:t.id,p=Object(_.a)(!1),g=f()(p,3),b=g[0],h=g[1],v=g[2],S=Object(L.a)("enable_mute"),j=Object(A.a)(l,m),P=j.muteAuthor,C=j.unmuteAuthor,k=Object(_.a)(!1),D=f()(k,3),U=D[0],F=D[1],H=D[2],V=Object(_.a)(!1),z=f()(V,3),G=z[0],W=z[1],q=z[2];return m&&l?d.createElement(d.Fragment,null,d.createElement(T.a,{targetAuthorId:l,targetPostId:s,isBlocking:u,onOptimisticComplete:q},(function(e){var t=e.mutate;return d.createElement(B.a,{onSubmit:t,isVisible:G,hide:q})})),u?null:d.createElement(I.a,{targetUserId:l,viewerId:r.id,onCompleted:H},(function(e){var t=e.mutate;return d.createElement(M.a,{onConfirm:t,isVisible:U,hide:H})})),d.createElement(x.p,{hide:v,isVisible:b,popoverRenderFn:function(){return d.createElement(E.a,null,S&&d.createElement(E.b,null,d.createElement(x.m,{onClick:Object(w.a)(v,c?C:P)},c?"Unmute":"Mute"," this author")),d.createElement(E.b,null,u?d.createElement(R.a,{targetUserId:l,viewerId:r.id},(function(e){var t=e.mutate;return d.createElement(x.m,{onClick:Object(w.a)(v,t)},"Unblock this author")})):d.createElement(x.m,{onClick:Object(w.a)(v,F)},"Block this author")),d.createElement(E.b,null,d.createElement(x.m,{onClick:Object(w.a)(v,W)},"Report this story")))}},d.createElement(x.m,{onClick:h,ariaLabel:"More options"},d.createElement(O.a,{className:o(N)})))):null},F=u()(D()),H=n("./src/components/session/useViewer.tsx");function V(){var e=o()(["\n  fragment TruncatedPostCardOverflowButton_post on Post {\n    collection {\n      viewerIsEditor\n    }\n    creator {\n      id\n    }\n    ...TruncatedPostCardEditorWriterButton_post\n    ...TruncatedPostCardReaderButton_post\n  }\n  ","\n  ","\n"]);return V=function(){return e},e}var z=function(e){var t,n,r=e.post,o=e.publisherContext,a=Object(H.b)(),s=!!(null===(t=r.collection)||void 0===t?void 0:t.viewerIsEditor),i=(null==a?void 0:a.id)===(null===(n=r.creator)||void 0===n?void 0:n.id);return a?s||i?d.createElement(C,{post:r,isEditor:s,isWriter:i,publisherContext:o}):d.createElement(U,{post:r,viewer:a}):null},G=u()(V(),k,F),W=n("./src/components/sequence/NormalizeSequenceBodyModel.ts"),q=n("./src/schema-types/globalTypes.ts");function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var K=function(e,t){var n;return t?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{markups:[{anchorType:q.b.LINK,type:q.i.A,start:0,end:(null==e||null===(n=e.text)||void 0===n?void 0:n.length)||0,href:t,userId:null,linkMetadata:null}]}):e},Y=function(e,t){var n=Object(W.e)(e).titleIndex;return e.map((function(e,r){return r===n?K(e,t):e}))};function Q(){return(Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var X=m.a.createElement("path",{d:"M18.77 6.72l-1.4 1.4V2.98A2.98 2.98 0 0 0 14.39 0H8.63a.72.72 0 0 0 0 1.44h5.76a1.54 1.54 0 0 1 1.54 1.54v5.14l-1.4-1.4a.72.72 0 0 0-1 1.01l2.62 2.63.1.09h.07l.06.04h.56l.06-.04h.06l.1-.08 2.63-2.64a.72.72 0 0 0-1.02-1zM1.24 3.85l1.4-1.4v5.14a2.98 2.98 0 0 0 2.98 2.98h5.97a.72.72 0 1 0 0-1.44H5.62A1.54 1.54 0 0 1 4.08 7.6V2.45l1.4 1.4a.72.72 0 1 0 1-1.01L3.87.2l-.1-.09H3.7L3.63.08h-.56L3 .12h-.04l-.1.09L.22 2.84a.72.72 0 0 0 1 1.03l.02-.02z",fill:"#292929"}),J=function(e){return m.a.createElement("svg",Q({width:20,height:11,viewBox:"0 0 20 11",fill:"none"},e),X)};function Z(){var e=o()(["\n  fragment RepostingButton_post on Post {\n    id\n  }\n"]);return Z=function(){return e},e}var ee=u()(Z()),te=function(e){var t=e.post.id,n=Object(g.f)((function(e){return e.config.authDomain})),r=Object(S.rb)(n,t);return d.createElement(x.m,{href:r},d.createElement(J,null))},ne=n("./src/components/post/body/PostBody.tsx"),re=n("./src/components/post/bookmark/index.ts"),oe=n("./src/components/post/footer/PostFooterSocialPopover.tsx"),ae=n("./src/components/post/multivote/MultiVote.tsx"),se=n("./src/components/post/postHelpers.ts"),ie=n("./src/components/publisher/CardByline.tsx"),le=n("./src/components/responses/ResponsesIconButton.tsx"),ce=n("./src/framework/design-system/type/index.ts"),ue=n("./src/framework/source/index.ts"),de=n("./src/framework/track/index.ts"),me=n("./src/framework/track/PostReadTracker.tsx");n("./src/framework/reporter/ReporterContext.tsx");var pe=d.createContext(null),fe=function(e){var t=e.event,n=e.children;return d.createElement(pe.Provider,{value:{event:t}},n)},ge=n("./src/util/hooks/useIsEligibleToViewNewResponses.tsx"),be=n("./src/util/navigation.ts"),he=n("./src/util/numbers.ts");function ve(){var e=o()(["\n  fragment TruncatedPostCard_post on Post {\n    id\n    creator {\n      ...TruncatedPostCard_user\n    }\n    collection {\n      ...CardByline_collection\n    }\n    extendedPreviewContent(\n      truncationConfig: {\n        previewParagraphsWordCountThreshold: 100\n        minimumWordLengthForTruncation: 150\n        truncateAtEndOfSentence: true\n        showFullImageCaptions: true\n      }\n    ) {\n      bodyModel {\n        ...TruncatedPostCard_bodyModel\n      }\n      isFullContent\n    }\n    firstPublishedAt\n    isLocked\n    isShortform\n    latestPublishedAt\n    mediumUrl\n    postResponses {\n      count\n    }\n    previewContent {\n      subtitle\n    }\n    previewImage {\n      id\n      focusPercentX\n      focusPercentY\n    }\n    readingTime\n    title\n    visibility\n    ...TruncatedPostCardOverflowButton_post\n    ...MultiVote_post\n    ...ResponsesIconButton_post\n    ...PostFooterSocialPopover_post\n    ...BookmarkButton_post\n    ...RepostingButton_post\n    ...PostPresentationTracker_post\n    ...PostScrollTracker_post\n    ...PostReadTracker_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return ve=function(){return e},e}function Ee(){var e=o()(["\n  fragment TruncatedPostCard_user on User {\n    __typename\n    name\n    username\n    ...CardByline_user\n  }\n  ","\n"]);return Ee=function(){return e},e}function xe(){var e=o()(["\n  fragment TruncatedPostCard_bodyModel on RichText {\n    ...PostBody_bodyModel\n  }\n  ","\n"]);return xe=function(){return e},e}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var we=function(e){return{border:0,height:"1px",backgroundColor:e.baseColor.border.lighter,margin:0}},_e={xs:{marginTop:"32px"},sm:{marginTop:"32px"},md:{marginTop:"40px"},lg:{marginTop:"40px"},xl:{marginTop:"40px"}},Se={xs:{marginTop:"30px",marginBottom:"30px"},sm:{marginTop:"30px",marginBottom:"30px"},md:{marginTop:"50px",marginBottom:"50px"},lg:{marginTop:"50px",marginBottom:"50px"},xl:{marginTop:"50px",marginBottom:"50px"}},je=function(e){var t=e.post,n=e.publisher,r=t.mediumUrl,o=t.readingTime,a="".concat(Object(he.f)(o||0)," min read");if(!r)return null;var s="Collection"!==n.__typename&&t.collection?"Read more in ".concat(t.collection.name):"Read more",i=Object(be.a)(r,{readmore:"1"});return d.createElement(x.a,{marginTop:"34px"},d.createElement(x.m,{href:i},d.createElement(ce.b,{color:"ACCENT",scale:"M"},s," ",a?" · ".concat(a):"")))},Pe=function(e){var t,n,r,o=e.excludeMargin,a=void 0!==o&&o,i=e.includeBottomDivider,l=void 0!==i&&i,c=e.isFirst,u=void 0!==c&&c,m=e.publisher,p=e.post,f=e.hideAuthor,g=void 0!==f&&f,b=e.index,h=Object(y.useCx)(),v=Object(L.a)("enable_reposting"),E=d.useRef(null);Object(de.h)(E,p);var O=d.useRef(null),w=Object(H.c)().value;Object(me.b)(!!w,O,p);var _,S=Object(ge.a)(),j=(null==p||null===(t=p.postResponses)||void 0===t?void 0:t.count)||0,P=p.id,C=p.clapCount,k=p.collection,I=p.extendedPreviewContent,T=p.isLocked,R=p.isShortform,A=p.firstPublishedAt,M=p.latestPublishedAt,B=p.mediumUrl,D=p.pinnedAt,N=p.visibility,U=Object(ue.e)(),F=Object(ue.c)(Oe({},U,{index:b}));B&&U&&(_=Object(be.a)(B,{source:F}));var V=null==p||null===(n=p.extendedPreviewContent)||void 0===n?void 0:n.bodyModel;if(!V)return null;var G=Oe({},V,{paragraphs:Y(V.paragraphs,_||B)}),W=!!D&&!!M,q=W?M:A,$=W?"Updated ":"",K=!(null==p||null===(r=p.extendedPreviewContent)||void 0===r?void 0:r.isFullContent),Q=!u&&d.createElement("hr",{className:h(we)}),X=l&&d.createElement("hr",{className:h(we)}),J=u?_e:Se,Z=a?"full":"inset",ee={postId:P,collectionId:null==k?void 0:k.id,isFullPost:null==I?void 0:I.isFullContent,postVisibility:Object(se.a)(N),context:2,pinned:Boolean(D)},ce="User"===(null==m?void 0:m.__typename)&&p.collection?p.collection:p.creator,pe=m||p.creator;return d.createElement(ue.b,{source:{index:b},extendSource:!0},d.createElement(x.a,s()({boxSizing:"content-box",marginLeft:"auto",marginRight:"auto"},a?{}:J),d.createElement(ue.b,{source:{index:b},extendSource:!0},d.createElement(x.o,{size:Z},Q,d.createElement(de.b,{post:p,presentationContext:"POST_PREVIEW",isDisplayingFullPost:!K,suppressEvents:!1,reportClientViewedOnFullPost:!0,postClientViewedContext:2,pinned:!!D},d.createElement(x.a,{marginTop:Q?"24px":void 0},ce&&d.createElement(ie.a,{publisher:ce,hideAuthor:g,href:B||void 0,isOneLine:!0,datePrefix:$,publishedAt:q,showStar:!!T&&!R}),d.createElement(x.a,{marginTop:"12px",ref:E},d.createElement(fe,{event:{eventName:"post.permalinkClicked",data:Oe({},ee,{interfaceElement:"title"})}},d.createElement(ne.f,{ref:K?null:O,bodyModel:G,isAuroraPostPageEnabled:!0,richTextStyle:"CARD"})))),K&&B&&pe&&d.createElement(je,{post:p,publisher:pe}),p&&d.createElement(x.a,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"36px"},d.createElement(x.a,{display:"flex",alignItems:"center"},d.createElement(ue.b,{source:{susiEntry:"clap_preview"},extendSource:!0},d.createElement(ae.a,{post:p,buttonStyle:"SUBTLE",hasDialog:!0,shouldHideClapsText:!0})),S&&d.createElement(x.a,{display:"flex",alignItems:"center",xl:{marginLeft:C?"24px":"12px"},lg:{marginLeft:C?"24px":"12px"},md:{marginLeft:C?"16px":"8px"},sm:{marginLeft:C?"16px":"8px"},xs:{marginLeft:C?"16px":"8px"},paddingTop:"3px"},d.createElement(x.m,{href:B+"?responsesOpen=true"},d.createElement(le.a,{location:"preview",postId:p.id,shouldHideResponsesText:!0,responsesCount:j,setIsResponsesSidebarVisible:function(){},allowResponses:p.allowResponses,isLimitedState:p.isLimitedState})))),d.createElement(x.a,{display:"flex",alignItems:"center",justifyContent:"flex-end"},v&&d.createElement(x.a,{marginRight:"12px"},d.createElement(te,{post:p})),d.createElement(x.a,{marginRight:"12px"},d.createElement(oe.a,{post:p,source:{name:"collection_home"}})),d.createElement(x.a,{marginRight:"12px"},d.createElement(ue.b,{source:{susiEntry:"bookmark_preview"},extendSource:!0},d.createElement(re.a,{post:p}))),(null==m?void 0:m.__typename)&&d.createElement(z,{post:p,publisherContext:m.__typename}))))))),l&&d.createElement(x.o,{size:Z},X))},Ce=u()(xe(),ne.a),ke=u()(Ee(),ie.d),Ie=u()(ve(),Ce,ke,G,ae.b,le.b,oe.b,re.b,ee,de.c,de.e,ie.b,me.a)},"./src/components/collection/package/header/calculateLogoDimensions.ts":function(e,t,n){"use strict";function r(e,t,n){var r=n/t||0,o={xs:{maxHeight:32,maxWidth:320},md:{maxHeight:40,maxWidth:400},xl:{maxHeight:60,maxWidth:600}};return r<=2.5?o={xs:{maxHeight:50,maxWidth:125},md:{maxHeight:70,maxWidth:175},xl:{maxHeight:90,maxWidth:225}}:r<5&&(o={xs:{maxHeight:40,maxWidth:200},md:{maxHeight:50,maxWidth:250},xl:{maxHeight:70,maxWidth:350}}),o[e]}n.d(t,"a",(function(){return r}))},"./src/components/collection/package/interim-components/ClickableWrapper.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/components/index.ts"),a=function(e){var t=e.children,n=e.className,a=void 0===n?"":n,s=e.href,i=e.onClick;return s?r.createElement(o.d,{className:a,href:s,onClick:i},t):t}},"./src/components/collection/theming/CustomBackgroundWrapper.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/collection/theming/customStyleSheet.ts"),c=n("./src/framework/design-system/components/index.ts");function u(){var e=o()(["\n  fragment CustomBackgroundWrapper_customStyleSheet on CustomStyleSheet {\n    id\n    global {\n      colorPalette {\n        background {\n          ...getHexFromColorValue_colorValue\n        }\n      }\n    }\n  }\n  ","\n"]);return u=function(){return e},e}var d=function(e){var t=e.children,n=e.customStyleSheet;return i.useMemo((function(){var e,t;return Object(l.k)(null==n||null===(e=n.global)||void 0===e||null===(t=e.colorPalette)||void 0===t?void 0:t.background)}),[n])?i.createElement(c.a,{backgroundColor:"BACKGROUND"},t):i.createElement(i.Fragment,null,t)},m=s()(u(),l.l)},"./src/components/collection/theming/CustomStyleWrapper.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/style/index.ts"),a=function(e){var t=e.children,n=e.rule,a=Object(o.useCx)(),s=n?a(n):"";return s?r.createElement("div",{className:s},t):r.createElement(r.Fragment,null,t)}},"./src/components/collection/theming/Foldable.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n("./src/framework/design-system/components/index.ts"),i=n("./src/framework/design-system/type/index.ts"),l=n("./src/framework/style/index.ts"),c=n("./src/svg/arrow-down-21px.svg"),u=n("./src/util/hooks/useToggle.tsx"),d=function(e){var t=e.children,n=e.title,r=e.titleComponent,d=e.width,m=e.arrowFill,p=Object(l.useCx)(),f=Object(u.a)(!1),g=o()(f,4),b=g[0],h=g[3],v=function(e){var t=a.useRef(null),n=a.useState("0px"),r=o()(n,2),s=r[0],i=r[1],l=a.useState(!1),c=o()(l,2),u=c[0],d=c[1];return a.useEffect((function(){var n=t.current;n&&(e?(i("".concat(n.getBoundingClientRect().height,"px")),d(!0),setTimeout((function(){i("auto"),d(!1)}),300)):"auto"===s&&(i("".concat(n.getBoundingClientRect().height,"px")),d(!0),setTimeout((function(){return i("0px")}),50),setTimeout((function(){return d(!1)}),300)))}),[e]),{height:s,isAnimating:u,ref:t}}(b),E=v.ref,x=v.height,y=v.isAnimating;return a.createElement(a.Fragment,null,a.createElement("button",{className:p({width:d||"100%",height:"100%",border:"none",textAlign:"left",outline:"none",cursor:"pointer",padding:"0px"}),onClick:h,disabled:y},a.createElement(s.a,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},r||a.createElement(i.c,{scale:"XS"},n||""),a.createElement(c.a,{className:p((function(e){return{transition:"".concat(300,"ms transform"),transform:b?"rotate(180deg)":"rotate(0)",fill:m||e.baseColor.fill.normal}}))}))),a.createElement("div",{className:p({transition:"".concat(300,"ms height"),height:x,overflow:!b||y?"hidden":"visible",opacity:b?1:0})},a.createElement("div",{ref:E,className:p({opacity:b?1:0,transition:"".concat(300,"ms opacity"),display:"flex",justifyContent:"space-between",flexDirection:"column",flexFlow:"wrap"})},t)))}},"./src/components/cta/HighlightCTA.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n("./src/components/cta/TextCTA.tsx"),i=n("./src/framework/design-system/components/index.ts"),l=n("./src/framework/design-system/type/index.ts"),c=n("./src/framework/style/index.ts"),u=n("./src/styles/breakpoints.ts"),d=n("./src/styles/colors.ts"),m=function(e){var t=e.children,n=e.scale,r=void 0===n?s.a.L:n,m=Object(c.useCx)();return a.createElement("div",{className:m((function(e){return o()({background:Object(d.y)(.05),borderRadius:"4px",margin:"24px -16px",position:"relative"},u.sm(e),{margin:"24px -12px 0"})}))},a.createElement(i.a,{display:"flex",justifyContent:"space-between",maxWidth:"740px",padding:"16px",sm:{padding:"12px"}},a.createElement(l.b,{scale:r,color:"DARKER"},t)))}},"./src/components/cta/TextCTA.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r,o=n("./node_modules/react/index.js"),a=n("./src/framework/design-system/components/index.ts"),s=n("./src/framework/design-system/type/index.ts");!function(e){e.S="S",e.L="L"}(r||(r={}));var i=function(e){var t=e.children,n=e.scale,i=void 0===n?r.L:n;return o.createElement(a.a,{margin:"40px 0",sm:{margin:"36px 0"}},o.createElement(s.b,{scale:i},t))}},"./src/components/editor/editorHelpers.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return p})),n.d(t,"e",(function(){return x})),n.d(t,"h",(function(){return O})),n.d(t,"m",(function(){return w})),n.d(t,"n",(function(){return _})),n.d(t,"i",(function(){return S})),n.d(t,"l",(function(){return j})),n.d(t,"f",(function(){return C})),n.d(t,"k",(function(){return k})),n.d(t,"j",(function(){return I})),n.d(t,"d",(function(){return T})),n.d(t,"g",(function(){return R}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/lodash/flattenDeep.js"),l=n.n(i),c=n("./node_modules/slate/dist/index.es.js"),u=n("./src/schema-types/globalTypes.ts");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p,f=250,g=5;!function(e){e[e.Link=0]="Link"}(p||(p={}));var b=["numbered-list","bulleted-list","bq"];function h(e){if(!e.children)return[];if(e.children.every((function(e){return function(e){return c.h.isText(e)||"link"===e.type}(e)}))){var t=c.c.string(e),n=!(null==e?void 0:e.name),r=n?y():e.name,o=function(e){switch(e){case"oli":return 10;case"uli":return 9;case"bq-line":return 6;case"image":return 4;case"title":return 3;default:return 1}}(e.type);if("image"===e.type)return[{type:n?1:3,paragraph:{name:r,type:o,text:t,markups:[],layout:1,metadata:{id:e.imageProps.miroId,originalWidth:e.imageProps.width,originalHeight:e.imageProps.height}},verifySameName:!n}];if(!t.length&&!e.name)return[];if(!t.length&&e.name)return[{type:2,paragraph:{name:e.name}}];var a=e.children.reduce((function(e,t){var n=s()(e,2),r=n[0],o=n[1],a=c.c.string(t).length;return t.italic&&o.push({type:2,start:r,end:r+a}),t.bold&&o.push({type:1,start:r,end:r+a}),"link"===t.type&&o.push({type:3,start:r,end:r+a,href:t.url,title:"",rel:"",anchorType:0}),[r+a,o]}),[0,[]]);return[{type:n?1:3,paragraph:{markups:s()(a,2)[1],name:r,text:t,type:o},verifySameName:!n}]}return l()(e.children.map(h).filter((function(e){return e.length})))}function v(e,t){return e.map((function(e,n){return e.index=n+t,e}))}var E=function(e){var t=[];return e.map((function(e){return t.includes(e.name)?m({},e,{name:void 0}):(e.name&&t.push(e.name),e)}))};function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeInitialDeltas:!0},n=t.includeInitialDeltas,r=[];if(n){var o=y();r=[{type:8,index:0,section:{name:o,startIndex:0}}]}var a=e.children,s=E(a);e.children=s;var i=0;if(!s[0].name&&"title"!==s[0].type){var l=y();r.push({type:1,index:0,paragraph:{name:l,type:3,text:"",markups:[]}}),i=1}var c=h(e),u=v(c,i);return r.concat(u)}function y(){return Math.round(65535*Math.random()).toString(16).padStart(4,"0")}var O=function(e,t){e.selection&&_(e,t)},w=function(e,t){var n=t||e.selection;c.i.unwrapNodes(e,{match:function(e){return"link"===e.type},at:n})},_=function(e,t){(function(e){var t=c.a.nodes(e,{match:function(e){return"link"===e.type}});return!!s()(t,1)[0]})(e)&&w(e);var n=e.selection,r=n&&c.g.isCollapsed(n),o={type:"link",url:t,children:r?[{text:t}]:[]};r?c.i.insertNodes(e,o):(c.i.wrapNodes(e,o,{split:!0}),c.i.collapse(e,{edge:"end"}))},S=function(e,t,n){var r=n||e.selection,o=c.a.nodes(e,{match:function(e){return!0===e[t]||e.type===t},at:r,mode:"all"});return!!s()(o,1)[0]},j=function(e,t){S(e,t)?c.a.removeMark(e,t):c.a.addMark(e,t,!0)},P=function(e){switch(e){case"bq":return"bq-line";case"numbered-list":return"oli";case"bulleted-list":default:return"uli"}},C=function(){if("undefined"!=typeof window){var e=window.getSelection(),t=e&&!e.isCollapsed&&e.getRangeAt(0);return t&&t.getBoundingClientRect()}},k=function(e,t,n){var r=n||e.selection,o=S(e,t,n),a=b.includes(t),s=c.g.isRange(r)?c.a.rangeRef(e,r):c.f.isPoint(r)?c.a.pointRef(e,r):c.a.pathRef(e,r);if(c.i.unwrapNodes(e,{at:r,match:function(e){return b.includes(e.type)},split:!0}),s.current&&(c.i.setNodes(e,{type:o?"paragraph":a?P(t):t},{at:s.current}),!o&&a)){var i={type:t,children:[]};c.i.wrapNodes(e,i,{at:s.current})}},I=function(e,t){["bold","italic"].forEach((function(n){S(e,n,t)&&c.i.unsetNodes(e,n,{at:t})})),["link","numbered-list","bulleted-list","bq"].forEach((function(n){S(e,n,t)&&c.i.unwrapNodes(e,{at:t,match:function(e){return e.type===n}})}))},T=function(e){if(e){var t=function(e){if(!e||!e.children.length)return!1;var t=c.a.point(e,[0],{edge:"start"}),n=e.children.length;return{anchor:t,focus:c.a.point(e,[n-1],{edge:"end"})}}(e);t&&(c.i.removeNodes(e,{at:t}),c.i.insertNodes(e,{children:[{text:""}]}))}},R=function(e){return e.paragraphs.map((function(e){var t=e.markups,n=e.name,r=e.text;if(e.type===u.m.H3)return{children:[{text:r}],name:n,type:"title"};if(!(null==t?void 0:t.length))return{children:[{text:r}],name:n};var o=new Set;o.add(0),o.add(r.length),t.forEach((function(e){var t=e.start,n=e.end;o.add(t),o.add(n)}));var a=Array.from(o);return{children:a.sort((function(e,t){return e-t})).slice(1).map((function(e,n,o){var s=n?o[n-1]:a[0],i=e,l=t.filter((function(e){return e.start<=s&&i<=e.end})),c={text:r.substring(s,i)};return l.forEach((function(e){var t=e.href;switch(e.type){case u.i.STRONG:("link"===c.type?c.children[0]:c).bold=!0;break;case u.i.EM:("link"===c.type?c.children[0]:c).italic=!0;break;case u.i.A:c={type:"link",url:t,children:[c]}}})),c})),name:n}}))}},"./src/components/editor/getSlateBodyFromPostBodyModel_bodyModel.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js");function s(){var e=o()(["\n  fragment getSlateBodyFromPostBodyModel_bodyModel on RichText {\n    paragraphs {\n      id\n      name\n      text\n      type\n      markups {\n        type\n        start\n        end\n        href\n        anchorType\n        userId\n        linkMetadata {\n          httpStatus\n        }\n      }\n    }\n  }\n"]);return s=function(){return e},e}var i=n.n(a)()(s())},"./src/components/error/PostResultError.tsx":function(e,t,n){"use strict";n.d(t,"c",(function(){return I})),n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return R}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/susi/RedirectToSignIn.tsx"),c=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),u=n.n(c),d=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),f=n.n(p),g=n("./node_modules/@babel/runtime/helpers/inherits.js"),b=n.n(g),h=n("./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"),v=function(e){function t(){return u()(this,t),m()(this,f()(t).call(this,"Expected postResult to exist.\n       For more detail, try checking for GraphQL server errors with the same x-request-id."))}return b()(t,e),t}(n.n(h)()(Error)),E=n("./src/screens/ContentErrorScreen.tsx"),x=n("./src/screens/ErrorScreen.tsx"),y=n("./src/screens/NotFoundScreen.tsx"),O=n("./src/screens/SuspendedScreen.tsx");function w(){var e=o()(["\n  fragment UnavailableForLegalReasonsScreen_unavailableForLegalReasons on UnavailableForLegalReasons {\n    lumenId\n  }\n"]);return w=function(){return e},e}function _(e){var t=e.errorData;return i.createElement(E.a,{code:451,title:"451 Not available — Medium",description:"This story is subject to a DMCA copyright or other legal or government claim.",lumenId:t.lumenId})}var S=s()(w());function j(){var e=o()(["\n  fragment WithheldInCountryScreen_withheldInCountry on WithheldInCountry {\n    lumenId\n  }\n"]);return j=function(){return e},e}function P(e){var t=e.errorData;return i.createElement(E.a,{code:451,title:"451 Not available in your country — Medium",description:"This page is not available in your country.",lumenId:t.lumenId})}var C=s()(j());function k(){var e=o()(["\n  fragment PostResultError_postResult on PostResult {\n    __typename\n    ... on Post {\n      id\n    }\n    ... on UnavailableForLegalReasons {\n      ...UnavailableForLegalReasonsScreen_unavailableForLegalReasons\n    }\n    ... on WithheldInCountry {\n      ...WithheldInCountryScreen_withheldInCountry\n    }\n  }\n  ","\n  ","\n"]);return k=function(){return e},e}var I=function(e){return!e||"Post"!==e.__typename},T=function(e){var t=e.postResult;if(!t)return i.createElement(x.a,{error:new v});switch(t.__typename){case"Unauthorized":return i.createElement(l.a,{opt_isDraft:!0});case"NotFound":return i.createElement(y.a,null);case"AccountDeleted":return i.createElement(E.a,{code:410,title:"410 Deleted by author — Medium",description:"User deactivated or deleted their account."});case"AccountSuspended":return i.createElement(O.a,{suspension:"account"});case"PostSuspended":return i.createElement(O.a,{suspension:"post"});case"Blocked":return i.createElement(E.a,{code:403,title:"403 Blocked — Medium",description:"This user had blocked you from following them or viewing their stories."});case"RemovedByUser":return i.createElement(E.a,{code:410,title:"410 Deleted by author — Medium",description:"The author deleted this Medium story."});case"UnavailableForLegalReasons":return i.createElement(_,{errorData:t});case"WithheldInCountry":return i.createElement(P,{errorData:t});default:return i.createElement(x.a,{error:new Error("Unsupported postResult: ".concat(t.__typename))})}},R=s()(k(),S,C)},"./src/components/footer/GlobalFooter.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n("./node_modules/react-redux/es/index.js"),i=n("./src/components/metabar/Logo.tsx"),l=n("./src/components/session/useFlag.tsx"),c=n("./src/components/session/useViewer.tsx"),u=n("./src/components/ui/AndroidAppDownloadButton.tsx"),d=n("./src/components/ui/IosAppDownloadButton.tsx"),m=n("./src/framework/design-system/components/index.ts"),p=n("./src/framework/design-system/type/index.ts"),f=n("./src/framework/style/index.ts"),g=n("./src/styles/colors.ts"),b=n("./src/util/routes.ts");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e){var t=e.authDomain,n=e.productName;return a.createElement(m.a,{flexGrow:"1",flexShrink:"1",flexBasis:"0",margin:"0 12px"},a.createElement(m.a,{paddingBottom:"8px"},a.createElement(m.m,{href:Object(b.qb)(t)},a.createElement(p.c,{scale:"S"},"Become a member"))),a.createElement(p.b,{scale:"M"},"Get unlimited access to the best stories on ".concat(n," — and support writers while you’re at it. Just $5/month. "),a.createElement(m.m,{href:Object(b.qb)(t),inline:!0,linkStyle:"OBVIOUS"},"Upgrade")))}var x=function(e){var t=e.authDomain,n=e.productName;return a.createElement(m.a,{flexGrow:"1",flexShrink:"1",flexBasis:"0",margin:"0 12px"},a.createElement(m.a,{paddingBottom:"8px"},a.createElement(m.m,{href:Object(b.ic)(t,"members")},a.createElement(p.c,{scale:"S"},"Explore your membership"))),a.createElement(p.b,{scale:"M"},"Thank you for being a member of ".concat(n,". You get unlimited access to insightful\n          stories from amazing thinkers and storytellers. "),a.createElement(m.m,{href:Object(b.ic)(t,"members"),inline:!0,linkStyle:"OBVIOUS"},"Browse")))},y=function(e){var t=e.authDomain,n=e.productName;return a.createElement(m.a,{flexGrow:"1",flexShrink:"1",flexBasis:"0",margin:"0 12px"},a.createElement(m.a,{paddingBottom:"8px"},a.createElement(m.m,{href:Object(b.yb)(t,n)},a.createElement(p.c,{scale:"S"},"Share your thinking."))),a.createElement(p.b,{scale:"M"},"If you have a story to tell, knowledge to share, or a perspective to offer — welcome home.\n        It’s easy and free to post your thinking on any topic. ",a.createElement(m.m,{href:Object(b.yb)(t,n),inline:!0,linkStyle:"OBVIOUS"},"Write on ".concat(n))))},O=function(e){var t=e.slimFooter,n=Object(s.f)((function(e){return{authDomain:e.config.authDomain,productName:e.config.productName}}),s.d),r=n.authDomain,o=n.productName,h=!!Object(l.a)("enable_footer_app_buttons"),O=!!Object(l.a)("enable_unbound"),w=Object(f.useTheme)(),_=Object(c.b)(),S=v({},w,{baseColor:v({},w.baseColor,{background:{light:g.y(.76),normal:g.y(.84),dark:g.y(.9)},border:{lighter:g.A(.1),light:g.A(.2),normal:g.A(.34),dark:g.A(.54),darker:g.A(.84)},fill:{lighter:g.A(.7),light:g.A(.8),normal:g.A(.98),dark:g.A(.99),darker:g.A(1)},text:{lighter:g.A(.7),light:g.A(.8),normal:g.A(.98),dark:g.A(.99),darker:g.A(1)}})});return a.createElement(m.x,{theme:S},a.createElement(m.a,{backgroundColor:"BASE_DARK",padding:"".concat(t?"32px":"60px"," 0"),sm:{padding:"32px 0"}},a.createElement(m.o,null,t?null:a.createElement(m.a,{borderBottom:"BASE_DARK",display:"flex",justifyContent:"space-between",marginBottom:"32px",paddingBottom:"48px",sm:{display:"none"}},a.createElement(m.a,{display:"flex",justifyContent:"space-between",margin:"0 -12px"},a.createElement(m.a,{flexGrow:"1",flexShrink:"1",flexBasis:"0",margin:"0 12px"},a.createElement(m.a,{paddingBottom:"8px"},a.createElement(m.m,{href:Object(b.a)({authDomain:r,autoplay:!0})},a.createElement(p.c,{scale:"S"},O?"Learn more.":"Discover ".concat(o)))),a.createElement(p.b,{scale:"M"},O?"".concat(o," is an open platform where 170 million readers come to find insightful and dynamic thinking. \n                        Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. "):"Welcome to a place where words matter. On ".concat(o,", smart voices and\n                        original ideas take center stage - with no ads in sight. "),a.createElement(m.m,{href:Object(b.a)({authDomain:r,autoplay:!0}),inline:!0,linkStyle:"OBVIOUS"},O?"Learn more":"Watch"))),a.createElement(m.a,{flexGrow:"1",flexShrink:"1",flexBasis:"0",margin:"0 12px"},a.createElement(m.a,{paddingBottom:"8px"},a.createElement(m.m,{href:Object(b.jc)(r)},a.createElement(p.c,{scale:"S"},"Make ",o," yours",O&&"."))),a.createElement(p.b,{scale:"M"},O?"Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. ":"Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. ",a.createElement(m.m,{href:Object(b.jc)(r),inline:!0,linkStyle:"OBVIOUS"},"Explore"))),O?a.createElement(y,{authDomain:r,productName:o}):_&&_.mediumMemberAt?a.createElement(x,{authDomain:r,productName:o}):a.createElement(E,{authDomain:r,productName:o}))),a.createElement(m.a,{display:"flex",flexDirection:"column"},a.createElement(m.a,{alignItems:"center",display:"flex",justifyContent:"space-between"},a.createElement(m.m,{href:"https://".concat(r,"/"),ariaLabel:"Go to homepage"},a.createElement(i.e,{fill:g.B})),a.createElement(p.b,{scale:"M"},a.createElement(m.a,{display:"flex",justifyContent:"space-between",paddingTop:"8px",width:"200px",sm:{display:"flex",width:"140px"}},a.createElement(p.b,{color:"DARKER",scale:"L"},a.createElement(m.m,{href:Object(b.a)({authDomain:r}),inline:!0},"About")),a.createElement(p.b,{color:"DARKER",scale:"L"},a.createElement(m.m,{href:Object(b.bb)(),inline:!0},"Help")),a.createElement(p.b,{color:"DARKER",scale:"L"},a.createElement(m.m,{href:Object(b.hb)(),inline:!0},"Legal"))))),h&&a.createElement(a.Fragment,null,a.createElement(m.a,{display:"none",sm:{display:"flex",marginBottom:"16px",marginTop:"30px"}},a.createElement(p.b,{color:"LIGHTER",scale:"L"},"Get the Medium app")),a.createElement(m.a,{display:"none",sm:{display:"flex",flexDirection:"row",marginBottom:"16px",width:"100%"}},a.createElement(m.a,{marginRight:"16px"},a.createElement(d.a,{entryPoint:"postPageFooter"})),a.createElement(m.a,null,a.createElement(u.a,{entryPoint:"postPageFooter"}))))))))}},"./src/components/meter/ContentWall.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/components/index.ts"),a=n("./src/styles/colors.ts"),s=function(e){var t=e.children;return r.createElement(r.Fragment,null,r.createElement(o.a,{marginTop:"-240px",background:"linear-gradient(".concat(Object(a.A)(0),",\n        ").concat(Object(a.A)(.5),",\n        ").concat(Object(a.A)(1),")"),height:"250px",position:"relative",width:"100%"}),r.createElement(o.a,{backgroundColor:"BACKGROUND"},r.createElement(o.a,{margin:"auto",maxWidth:"760px",sm:{margin:"0 18px 0"}},t)))}},"./src/components/meter/MeterController.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return K})),n.d(t,"c",(function(){return Y})),n.d(t,"b",(function(){return Q}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/typeof.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),l=n.n(i),c=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),u=n("./node_modules/graphql-tag/src/index.js"),d=n.n(u),m=n("./node_modules/react/index.js"),p=n("./node_modules/react-redux/es/index.js"),f=n("./node_modules/@babel/runtime/helpers/extends.js"),g=n.n(f),b=n("./node_modules/pluralize/pluralize.js"),h=n.n(b),v=n("./src/components/cta/HighlightCTA.tsx"),E=n("./src/components/optimizely/OptimizelyWrapper.tsx"),x=n("./src/framework/design-system/components/index.ts"),y=function(e){var t=e.featureString,n=e.link,r=e.text,o=e.showTrialMeter;return m.createElement(E.a,{featureString:t,target:o?"cc-trial-highlight-box":"highlight-box"},m.createElement(v.a,null,m.createElement(E.a,{featureString:t,target:o?"cc-trial-copy":"copy",tag:"span"},r," "),m.createElement(x.a,{display:"inline",whiteSpace:"nowrap"},m.createElement(E.a,{featureString:t,target:o?"cc-trial-link":"link",tag:"span"},n))))},O=n("./src/components/session/useFlag.tsx"),w=n("./src/components/session/useViewer.tsx"),_=n("./src/components/susi/helpers/types.ts"),S=n("./src/components/upsell/UpsellClickable.tsx"),j=n("./src/framework/reporter/index.ts"),P=n("./src/framework/source/index.ts"),C=n("./src/framework/track/UpsellPresentationTracker.tsx"),k=n("./src/util/routes.ts");function I(){var e=o()(["\n  fragment LIHighlightMeter_post on Post {\n    id\n    ...UpsellClickable_post\n  }\n  ","\n"]);return I=function(){return e},e}var T=function(e,t,n){return e<=0?m.createElement(m.Fragment,null,"This is your ",m.createElement("b",null,"last")," free ",(t||n)&&"member-only"," story this month."):m.createElement(m.Fragment,null,"You have ",m.createElement("b",null,e)," free ",(t||n)&&"member-only"," ",h()("story",e)," left this month.")},R=function(e){var t=e.meterCount,n=e.meterLimit,r=e.post,o=Object(p.f)((function(e){return e.config.productName})),a=Object(w.b)(),s=Object(j.c)(),i=null==a?void 0:a.isMembershipTrialEligible,l=!(!Object(O.a)("enable_trial_upsell")||!i),c=!!Object(O.a)("enable_unbound"),u="li-highlight-meter-".concat(t);m.useEffect((function(){s.event("meter.viewed",{uiType:_.a.LIHighlightCTA,postId:r.id,meterCount:t,userId:null==a?void 0:a.id}),i&&s.event("experiment.eligible",{experimentId:"6797776ba4cf"})}),[]);var d=Object(p.f)((function(e){return{authDomain:e.config.authDomain}})).authDomain,f=m.createElement(C.a,{tag:"span"},m.createElement(S.a,g()({linkStyle:"OBVIOUS",post:r,inline:!!c},l&&{redirectUrl:Object(k.Ab)(d)}),l?"Start your free trial":c?"See the benefits of ".concat(o," membership"):"Upgrade for unlimited access."));return m.createElement(P.b,{source:{dimension:"post_counter",name:"upgrade_membership",postId:r.id}},m.createElement(y,{featureString:u,text:T(n-t,l,c),link:f,showTrialMeter:l}))},A=d()(I(),S.b),L=n("./src/components/susi/SusiClickable.tsx");function M(){var e=o()(["\n  fragment LOHighlightMeter_post on Post {\n    id\n  }\n"]);return M=function(){return e},e}var B=function(e,t){switch(e){case 1:return t?m.createElement(m.Fragment,null,"You have ",m.createElement("b",null,"2")," free member-only stories left this month."):m.createElement(m.Fragment,null,"You have ",m.createElement("b",null,"2")," free stories left this month.");case 2:return t?m.createElement(m.Fragment,null,"You have ",m.createElement("b",null,"1")," free member-only story left this month."):m.createElement(m.Fragment,null,"You have ",m.createElement("b",null,"1")," free story left this month.");case 3:return t?m.createElement(m.Fragment,null,"This is your ",m.createElement("b",null,"last")," free member-only story this month."):m.createElement(m.Fragment,null,"This is your ",m.createElement("b",null,"last")," free story this month.");default:return t?m.createElement(m.Fragment,null,"You've read all your free member-only stories this month."):m.createElement(m.Fragment,null,"You've read all your free stories this month.")}},D=function(e){var t=e.meterCount,n=e.post,r=Object(p.f)((function(e){return e.config.productName})),o=!!Object(O.a)("enable_unbound"),a=function(e){switch(e){case 3:return"metered_view_3";case 2:return"metered_view_2";case 1:default:return"smart_meter"}}(t),s=Object(j.c)(),i="lo-highlight-meter-".concat(t);m.useEffect((function(){s.event("meter.viewed",{uiType:_.a.LOHighlightCTA,postId:n.id,meterCount:t})}),[]);var l=m.createElement(L.a,{linkStyle:"OBVIOUS",inline:!!o,operation:"register"},o?"Sign up for ".concat(r," and get an extra one"):"Sign up and get an extra one for free.");return m.createElement(P.b,{source:{susiEntry:a,postId:n.id}},m.createElement(y,{featureString:i,text:B(t,o),link:l,showTrialMeter:!1}))},N=d()(M()),U=n("./src/components/read-next/ReadNext.tsx"),F=n("./src/components/session/WithViewer.tsx"),H=n("./src/components/susi/susi-modal/SusiContainer.tsx"),V=n("./src/screens/helpers/visits.ts"),z=n("./src/store/actions/branch.ts");function G(){var e=o()(["\n  fragment MeterController_meteringInfo on MeteringInfo {\n    postIds\n    maxUnlockCount\n  }\n"]);return G=function(){return e},e}function W(){var e=o()(["\n  fragment MeterController_post on Post {\n    creator {\n      id\n    }\n    isLocked\n    lockedSource\n    ...LIHighlightMeter_post\n    ...LOHighlightMeter_post\n    ...SusiContainer_post\n  }\n  ","\n  ","\n  ","\n"]);return W=function(){return e},e}var q=function(e){var t=e.meteringInfo,n=e.post,r=e.viewer,o=m.useState(!1),a=l()(o,2),s=a[0],i=a[1],c=t.maxUnlockCount||3,u=t.postIds.length;return u<=c?Object(V.o)()&&Object(U.b)(r)?(Object(V.h)(),null):(s||i(!0),m.createElement(R,{meterCount:u,post:n,meterLimit:c})):null},$=function(e){var t=e.meterCount,n=e.post,r=m.useState(!1),o=l()(r,2),a=o[0],s=o[1];switch(t){case 1:case 2:case 3:return a||s(!0),m.createElement(D,{meterCount:t,post:n});default:return null}},K=function(e){var t=e.meteringInfo,n=e.post,r=Object(p.e)(),o=m.useState(!1),a=l()(o,2),i=a[0],u=a[1];m.useEffect((function(){void 0!==("undefined"==typeof document?"undefined":s()(document))&&u(!0),r(Object(z.f)(!1))}),[]);var d=Object(c.e)(F.a),f=d.loading,g=d.error,b=d.data,h=(b=void 0===b?{viewer:void 0}:b).viewer;if(f||g)return m.createElement(m.Fragment,null);var v=h&&h.mediumMemberAt||void 0,E=n&&n.creator&&n.creator.id||void 0,x=h&&h.id||void 0,y=h?v||E===x:"LOCKED_POST_SOURCE_SYNDICATED"===n.lockedSource,O=!i||!n.isLocked||!t.postIds.includes(n.id)||y,w=h?m.createElement(q,{meteringInfo:t,post:n,viewer:h}):m.createElement($,{meterCount:t.postIds.length,post:n});return m.createElement(m.Fragment,null,!O&&w)},Y=d()(W(),A,N,H.e),Q=d()(G())},"./src/components/meter/PayWall.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return R}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./src/components/meter/ContentWall.tsx"),u=n("./src/components/optimizely/OptimizelyWrapper.tsx"),d=n("./src/components/session/useFlag.tsx"),m=n("./src/components/session/useViewer.tsx"),p=n("./src/components/style/BaseThemeProvider.tsx"),f=n("./src/components/susi/alternate-user/AlternateUserEmail.tsx"),g=n("./src/components/susi/alternate-user/AlternateUserSocial.tsx"),b=n("./src/components/susi/alternate-user/NotYou.tsx"),h=n("./src/components/susi/alternate-user/SusiAlternateUserController.tsx"),v=n("./src/components/upsell/UpsellClickable.tsx"),E=n("./src/framework/design-system/components/index.ts"),x=n("./src/framework/design-system/type/index.ts"),y=n("./src/framework/design-system/type/Detail.tsx"),O=n("./src/framework/reporter/index.ts"),w=n("./src/framework/source/index.ts"),_=n("./src/framework/track/UpsellPresentationTracker.tsx"),S=n("./src/screens/helpers/users.ts"),j=n("./src/store/actions/navigation.ts"),P=n("./src/util/routes.ts");function C(){var e=o()(["\n  fragment PayWall_post on Post {\n    id\n  }\n"]);return C=function(){return e},e}var k=function(e){var t=e.optimizelyFeatureString,n=e.post,r=e.viewer,o=e.showTrialPaywall,a=e.authDomain,s=!!Object(d.a)("enable_lite_pay_page"),l=!!Object(d.a)("enable_new_checkout_flow");return i.createElement(w.b,{source:{dimension:"post_limit",name:"upgrade_membership",postId:n.id}},i.createElement(_.a,null,i.createElement(E.a,{display:"inline-block",textAlign:"center"},i.createElement(u.a,{featureString:t,target:o?"trial-upsell-button":"upsell-button-".concat(r&&r.hasPastMemberships?"resume-membership":"upgrade")},i.createElement(v.a,{isButton:!0,buttonStyle:o?"BRAND":"STRONG",width:o||r&&r.hasPastMemberships?"182px":"104px",redirectUrl:s&&(o||l)?Object(P.Ab)(a):Object(P.Bb)(a)},o?"Start your free trial":r&&r.hasPastMemberships?"Resume membership":"Upgrade")))))},I=function(e){var t=e.declineSuggestedAccount,n=e.userSocialLogins,r=Object(l.e)();return i.createElement(i.Fragment,null,i.createElement(E.a,{display:"flex",sm:{flexDirection:"column"}},i.createElement(E.a,{display:"flex",flexDirection:"row",justifyContent:"center"},n.facebook||n.google||n.twitter?i.createElement(g.a,{userSocialLogins:n}):i.createElement(f.a,{onSuccess:function(){return r(Object(j.s)({step:"CHECK_YOUR_INBOX",operation:"login",susiEntry:"post_paywall"}))},userId:n.userId},(function(e){var t=e.handleSubmit;return i.createElement(E.b,{buttonStyle:"SOCIAL",size:"REGULAR",onClick:t},"Send login link")})))),t&&i.createElement(E.a,{marginTop:"10px",marginRight:"5px",sm:{marginTop:"20px"},display:"flex",justifyContent:"center",flexDirection:"column"},i.createElement(y.a,{scale:"M"},i.createElement(b.a,{declineSuggestedAccount:t,isSocial:!!n&&!!(n.facebook||n.google||n.twitter)}))))},T=function(e){var t=e.declineSuggestedAccount,n=e.userSocialLogins,r=e.suggestedAccountEventData,o=e.showSuggestedAccount,a=e.postId;return i.createElement(w.b,{source:{dimension:"post_limit_suggestion",name:"upgrade_membership",postId:a}},i.createElement(_.a,{eventData:r},i.createElement(E.a,{display:"inline-block",textAlign:"center"},i.createElement(I,{declineSuggestedAccount:t,showSuggestedAccount:o,userSocialLogins:n}),i.createElement(E.a,{display:"flex",flexDirection:"row",marginTop:"10px",sm:{justifyContent:"center"}},i.createElement(y.a,{scale:"L"},i.createElement(v.a,{eventData:r,linkStyle:"OBVIOUS"},"Learn more about membership"))))))},R=function(e){var t=e.post,n=Object(l.f)((function(e){return{sessionUserId:e.session.user.id,authDomain:e.config.authDomain,productName:e.config.productName}}),l.d),r=n.productName,o=n.sessionUserId,a=n.authDomain,s=Object(m.b)(),f=Object(O.c)(),g=null==s?void 0:s.isMembershipTrialEligible,b=!(!Object(d.a)("enable_trial_upsell")||!g),v=!!Object(d.a)("enable_unbound");i.useEffect((function(){g&&f.event("experiment.eligible",{experimentId:"6797776ba4cf"})}),[]);var w="paywall";return i.createElement(p.b,null,i.createElement(c.a,null,i.createElement(h.a,{postRenderCallback:function(){}},(function(e){var n,l=e.loading,c=e.showSuggestedAccount,d=e.declineSuggestedAccount,m=e.userSocialLogins;return l?i.createElement(i.Fragment,null):(c&&(w="suggested-account-paywall"),c&&(n={alternateUserSuggestionShown:c,alternateUserSuggestionAccountType:Object(S.a)(m),alternateUserSuggestionTargetUserId:!!m&&m.userId,alternateUserSuggestionSourceUserId:s?s.id:o}),i.createElement(i.Fragment,null,i.createElement(u.a,{featureString:w,target:b?"trial-background-color":"background-color"},i.createElement(E.a,{display:"flex",minHeight:"350px",justifyContent:"center",textAlign:"center",sm:{flexDirection:"column"}},i.createElement(E.a,{display:"flex",flexDirection:"column",padding:"48px 50px",sm:{padding:"28px 16px 32px",textAlign:"center"}},i.createElement(u.a,{featureString:w,target:b?"webCCTrialHeading":"fewerClicksHeading"},i.createElement(x.d,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},function(e,t,n){var r=n.enableUnbound,o=n.showSuggestedAccount,a=n.showTrialPaywall,s=t?Object(S.b)(t):null;return s=s&&s.length<=13?s:null,o?"Switch to your member account for unlimited reading.":a?i.createElement(E.a,{textAlign:"center",sm:{marginBottom:"5px",textAlign:"center"}},s?"".concat(s,", keep reading."):"Keep reading."):r?i.createElement(E.a,{textAlign:"left",sm:{marginBottom:"5px",textAlign:"center"}},"How to read this story — and everything else on ",e,"."):i.createElement(E.a,{textAlign:"left",sm:{marginBottom:"5px",textAlign:"center"}},s?"".concat(s,", get unlimited access."):"Get unlimited access.")}(r,s&&s.name,{enableUnbound:v,showSuggestedAccount:c,showTrialPaywall:b}))),i.createElement(y.a,{scale:{xs:"M",sm:"M",md:"L",lg:"L",xl:"L"},color:"DARKER"},!c&&!b&&i.createElement(i.Fragment,null,i.createElement(u.a,{featureString:w,target:"second-header-fewer-clicks"},i.createElement(E.a,{marginTop:"8px",marginBottom:"28px",textAlign:"left",sm:{display:"inline-block",textAlign:"center"}},v?"Not every story on ".concat(r," is free, like this one. Become a member to get unlimited access and support the voices you want to hear more from."):"You've read all of your free stories this month. Become a member to keep reading.")),i.createElement(E.a,{display:"flex",justifyContent:"flex-start",sm:{justifyContent:"center"}},i.createElement(k,{optimizelyFeatureString:w,post:t,viewer:s,showTrialPaywall:b,authDomain:a}))),i.createElement(u.a,{featureString:w,target:b?"subtitle-copy-web-cc-trial":"subtitle-copy-fewer-clicks"},i.createElement(E.a,{marginTop:c?"28px":"8px",marginBottom:"28px",paddingRight:"6px",paddingLeft:"6px",sm:{display:"inline-block"}},function(e,t,n,r){var o=n.enableUnbound,a=n.showSuggestedAccount,s=n.showTrialPaywall;if(a&&t){var l=t.isMember,c=t.redactedEmailAddress;return i.createElement(i.Fragment,null,"Looks like you're coming from the ",l&&"member ","account"," ",i.createElement("b",null,c)," but you’re signed in as ",i.createElement("b",null,null==r?void 0:r.email),". Switch to your",l?" member account for unlimited access":" account",".")}return o?i.createElement(E.a,{marginTop:"28px",marginBottom:"28px",textAlign:s?"center":"left"},s?"Start your 1 month free trial for unlimited access to everything on ".concat(e,". If it’s not for you, cancel anytime."):i.createElement(i.Fragment,null,i.createElement("b",null,"Read any story. "),"Access everything on ",e," across all your devices with no limits or ads.",i.createElement("br",null),i.createElement("br",null),i.createElement("b",null,"Reward great writing. "),"A portion of your membership fee will go toward the writers you read most.")):s?i.createElement(E.a,{marginTop:"28px",marginBottom:"28px"},"You’ve reached your limit of free member-only stories this month. Get unlimited access to every idea on ",e,", free for 1 month. If it's not for you, cancel anytime."):i.createElement(E.a,{marginTop:"28px",marginBottom:"28px",textAlign:"left"},"Here's what you get when you upgrade to membership:",i.createElement(E.a,{marginTop:"28px",marginBottom:"28px"},i.createElement("b",null,"Unlimited access. ")," Explore ",e,"'s library filled with everything you're curious about."),i.createElement(E.a,{marginBottom:"28px"},i.createElement("b",null,"Reward quality writing.")," When you spend time reading a story, a portion of your membership fee will go directly to its author."),i.createElement(E.a,{marginBottom:"28px"},'"I love ',e,"'s membership — it gives me access to the stories I love by the writers I love, and it allows me to help support those writers financially.\"",i.createElement("br",null)," ",i.createElement("b",null,"—Kayt Molina, ",e," member ")))}(r,m,{enableUnbound:v,showSuggestedAccount:c,showTrialPaywall:b},s)))),!!c&&m&&i.createElement(T,{declineSuggestedAccount:d,userSocialLogins:m,suggestedAccountEventData:n,showSuggestedAccount:c,postId:t.id}),b&&!c&&i.createElement(k,{optimizelyFeatureString:w,post:t,viewer:s,showTrialPaywall:b,authDomain:a}))))))}))))},A=s()(C())},"./src/components/meter/RegWall.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return C}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/metabar/OpenInApp.tsx"),c=n("./src/components/meter/ContentWall.tsx"),u=n("./src/components/optimizely/OptimizelyWrapper.tsx"),d=n("./src/components/session/useFlag.tsx"),m=n("./src/components/style/BaseThemeProvider.tsx"),p=n("./src/components/susi/SusiClickable.tsx"),f=n("./src/components/susi/helpers/types.ts"),g=n("./src/components/susi/oauth-buttons/FacebookSusiButton.tsx"),b=n("./src/components/susi/oauth-buttons/GoogleSusiButton.tsx"),h=n("./src/framework/design-system/components/index.ts"),v=n("./src/framework/design-system/type/index.ts"),E=n("./src/framework/reporter/index.ts"),x=n("./src/framework/source/index.ts"),y=n("./src/framework/track/SusiPresentationTracker.tsx");function O(){var e=o()(["\n  fragment RegWall_meteringInfo on MeteringInfo {\n    postIds\n  }\n"]);return O=function(){return e},e}function w(){var e=o()(["\n  fragment RegWall_post on Post {\n    id\n    lockedSource\n    ...SusiClickable_post\n  }\n  ","\n"]);return w=function(){return e},e}var _=function(e){var t=e.enableUnbound,n=e.isSyndicated;return i.createElement(v.d,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},i.createElement(h.a,{display:"none",sm:{display:"block"}},"To keep reading this story, get the free app or log in."),i.createElement(h.a,{display:"block",sm:{display:"none"}},t?"Read the rest of this story with a free account.":n?"This story is just a click away.":"To keep reading this story, create a free account."))},S=function(e){var t=e.meterCount,n=e.optimizelyFeatureString,r=e.postId,o={operation:"register"};return i.createElement(h.a,{display:"flex",flexDirection:"column",textAlign:"center",sm:{flexDirection:"column"}},i.createElement(u.a,{featureString:n,target:"google-button"},i.createElement(h.a,{margin:"62px 0 10px",sm:{margin:"40px 0 12px 0"}},i.createElement(y.a,{eventData:{meterCount:t,operation:o.operation,postId:r}},i.createElement(b.a,o)))),i.createElement(u.a,{featureString:n,target:"fb-button"},i.createElement(h.a,{marginBottom:"52px",sm:{marginBottom:"40px"}},i.createElement(y.a,{eventData:{meterCount:t,operation:o.operation,postId:r}},i.createElement(g.a,o)))))},j=function(e){var t=e.meteringInfo,n=e.post,r=Object(E.c)(),o=!!Object(d.a)("enable_unbound"),a="LOCKED_POST_SOURCE_SYNDICATED"===n.lockedSource,s="".concat(a?"syndicated-":"","regwall");return i.useEffect((function(){r.event("meter.viewed",{meterCount:null==t?void 0:t.postIds.length,postId:n.id,uiType:a?f.a.SyndicatedRegwall:f.a.RegWall})}),[]),i.createElement(m.b,null,i.createElement(x.b,{source:{susiEntry:"post_regwall",postId:n.id}},i.createElement(c.a,null,i.createElement(u.a,{featureString:s,target:"background-color"},i.createElement(h.a,{display:"flex",textAlign:"center",justifyContent:"center",sm:{flexDirection:"column",textAlign:"center"}},i.createElement(h.a,{padding:"48px 56px",sm:{padding:"28px 16px 48px"}},i.createElement(u.a,{featureString:s,target:"heading"},i.createElement(_,{isSyndicated:a,enableUnbound:o})),i.createElement(v.b,{color:"DARKER",scale:{xs:"M",sm:"M",md:"L",lg:"L",xl:"L"}},i.createElement(h.a,{display:o?"block":"none",margin:"auto",paddingTop:"10px",sm:{display:"none"},width:"500px"},"You’ll also discover more fresh thinking personalized to your interests and can follow your favorite authors, publications, and topics."),i.createElement(h.a,{display:"none",sm:{display:"block"}},i.createElement(h.a,{margin:"42px 0"},i.createElement(l.a,{isButton:!0,postId:n.id,appEntry:"regwall"})),i.createElement(u.a,{featureString:s,target:"skip-app-copy"},i.createElement(h.a,{marginBottom:"-20px"},"Or, continue in mobile web"))),i.createElement(S,{meterCount:null==t?void 0:t.postIds.length,optimizelyFeatureString:s,postId:n.id}),i.createElement(u.a,{featureString:s,target:"sign-in-copy",tag:"span"},"Already have an account?"," "),i.createElement(u.a,{featureString:s,target:"sign-in-link",tag:"span"},i.createElement(p.a,{linkStyle:"OBVIOUS",operation:"login",post:n},"Sign in")))))))))},P=s()(w(),p.d),C=s()(O())},"./src/components/mutations/DeletePostMutation.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),s=n("./node_modules/graphql-tag/src/index.js");function i(){var e=o()(["\n  mutation DeletePostMutation($targetPostId: ID!) {\n    deletePost(targetPostId: $targetPostId)\n  }\n"]);return i=function(){return e},e}var l=n.n(s)()(i()),c=function(e){var t=e?{variables:{targetPostId:e}}:{};return Object(a.d)(l,t)}},"./src/components/mutations/UserReportStoryMutation.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),s=n("./node_modules/graphql-tag/src/index.js"),i=n.n(s),l=n("./node_modules/react/index.js"),c=n("./node_modules/react-redux/es/index.js"),u=n("./src/store/actions/navigation.ts");function d(){var e=o()(["\n  mutation UserReportStoryMutation(\n    $targetPostId: ID!\n    $targetAuthorId: ID!\n    $alsoBlockAuthor: Boolean!\n    $reason: String!\n  ) {\n    reportStoryAndMaybeBlockAuthor(\n      targetPostId: $targetPostId\n      targetAuthorId: $targetAuthorId\n      alsoBlockAuthor: $alsoBlockAuthor\n      reason: $reason\n    ) {\n      id\n      isBlocking\n    }\n  }\n"]);return d=function(){return e},e}var m=i()(d());t.a=Object(c.c)()((function(e){var t=e.targetAuthorId,n=e.targetPostId,r=e.dispatch,o=e.children,s=e.onOptimisticComplete,i=e.isBlocking;return l.createElement(a.a,{mutation:m,onCompleted:function(){r(Object(u.m)({message:"Successfully reported post."}))}},(function(e){return o({mutate:function(r,o){var a=e({variables:{targetAuthorId:t,targetPostId:n,alsoBlockAuthor:r,reason:o},optimisticResponse:{__typename:"Mutation",reportStoryAndMaybeBlockAuthor:{__typename:"User",id:t,isBlocking:i||r}}});return s&&s(),a}})}))}))},"./src/components/newsletter-v3/GetNewsletterButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n("./node_modules/react/index.js"),o=n.n(r),a=n("./src/framework/design-system/components/index.ts"),s=n("./src/framework/reporter/index.ts"),i=n("./src/framework/source/index.ts"),l=n("./src/framework/style/index.ts");function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=o.a.createElement("path",{d:"M0 .35v15.3h20V.35H0zm6.95 9.38l3.05 2.5 3.05-2.5 4.88 4.73H2.07l4.88-4.73zM1.2 13.64V5.02l4.82 3.94-4.82 4.68zm12.78-4.68l4.82-3.94v8.62l-4.82-4.68zm4.82-7.42v1.94l-8.8 7.2-8.8-7.2V1.54h17.6z"}),d=function(e){return o.a.createElement("svg",c({width:20,height:16,viewBox:"0 0 20 16"},e),u)},m=function(e){var t=e.buttonSize,n=void 0===t?"LARGE":t,o=e.buttonStyle,c=void 0===o?"STRONG":o,u=e.newsletterV3Id,m=e.showMailIcon,p=void 0===m||m,f=e.onClick,g=e.width,b=Object(i.f)(),h=Object(s.c)(),v=Object(l.useCx)();return r.createElement(a.b,{buttonStyle:c,onClick:function(){h.event("newsletterV3.subscribeClicked",{newsletterV3Id:u,source:b}),f()},size:n,width:g},p&&r.createElement("span",{className:v((function(){return{marginRight:"8px"}})),"aria-hidden":"true"},r.createElement(d,null)),"Get this newsletter")}},"./src/components/newsletter-v3/NewsletterV3Promo.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return S}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/newsletter-v3/NewsletterV3SubscribeButton.tsx"),m=n("./src/components/newsletter-v3/NewsletterV3SubscribeByEmail.tsx"),p=n("./src/components/session/useViewer.tsx"),f=n("./src/framework/design-system/components/index.ts"),g=n("./src/framework/design-system/type/index.ts"),b=n("./src/framework/source/index.ts"),h=n("./src/framework/style/index.ts"),v=n("./src/styles/breakpoints.ts"),E=n("./src/util/routes.ts");function x(){var e=s()(["\n  fragment NewsletterV3Promo_publisher on Publisher {\n    __typename\n    ... on User {\n      id\n      username\n      name\n      newsletterV3 {\n        id\n        ...NewsletterV3Promo_newsletterV3\n      }\n    }\n    ... on Collection {\n      id\n      slug\n      domain\n      name\n      viewerIsEditor\n      newsletterV3 {\n        id\n        ...NewsletterV3Promo_newsletterV3\n      }\n    }\n  }\n  ","\n"]);return x=function(){return e},e}function y(){var e=s()(["\n  fragment NewsletterV3Promo_newsletterV3 on NewsletterV3 {\n    slug\n    name\n    description\n    ...NewsletterV3SubscribeButton_newsletterV3\n    ...NewsletterV3SubscribeByEmail_newsletterV3\n  }\n  ","\n  ","\n"]);return y=function(){return e},e}var O=l()(y(),d.b,m.b),w=l()(x(),O),_=function(e){return o()({borderTop:"3px solid ".concat(e.accentColor.border.normal),padding:"32px 32px 26px 32px",marginTop:"8px",marginBottom:"25px",backgroundColor:e.baseColor.background.normal},v.sm(e),{padding:"24px 24px 28px 24px"})},S=function(e){var t,n=e.publisher,r=Object(u.f)((function(e){return e.config.authDomain})),o=Object(h.useCx)(),a=Object(p.c)().value,s=n.newsletterV3,i=Object(E.ub)(null!==(t=null==s?void 0:s.slug)&&void 0!==t?t:"",r,"Collection"===n.__typename?n:void 0,"User"===n.__typename&&(null==n?void 0:n.username)?n.username:void 0);return c.createElement(b.b,{source:{name:"newsletter_v3_promo",susiEntry:"newsletter_v3_promo"}},c.createElement("div",{className:o(_)},c.createElement(g.c,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},"Sign up for ".concat(null==s?void 0:s.name)),c.createElement(f.a,{paddingTop:"4px"},c.createElement(g.b,{tag:"h3",scale:"S",color:"DARKER"},"By ".concat(n.name))),c.createElement(f.a,{paddingTop:"8px",paddingBottom:"10px"},c.createElement(g.b,{scale:{xs:"M",sm:"M",md:"L",lg:"L",xl:"L"},color:"DARKER",tag:"p"},null==s?void 0:s.description," ",c.createElement(f.m,{inline:!0,linkStyle:"OBVIOUS",href:i},"Take a look"))),"Collection"===n.__typename&&n.viewerIsEditor?c.createElement(f.a,{paddingTop:"10px"},c.createElement(g.b,{scale:"M",color:"DARKER"},"You're an editor of ",null==s?void 0:s.name)):c.createElement(f.a,{display:"flex",flexWrap:"wrap"},s&&(a?c.createElement(d.a,{newsletterV3:s,buttonLayout:"COMPACT",helperTextColor:"DARKER"}):c.createElement(m.a,{newsletterV3:s})))))}},"./src/components/newsletter-v3/NewsletterV3SubscribeButton.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return L}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/collection/CollectionMetabar.tsx"),m=n("./src/components/newsletter-v3/GetNewsletterButton.tsx"),p=n("./src/framework/design-system/components/index.ts"),f=n("./src/framework/design-system/components/portal/ui/Toast.tsx"),g=n("./src/framework/design-system/type/index.ts"),b=n("./src/util/routes.ts"),h=function(e){var t=e.name,n=Object(u.f)((function(e){return e.config.authDomain}));return c.createElement(p.A,{initialVisibility:!0},(function(e){var r=e.hide;return e.isVisible&&c.createElement(f.a,{isVisible:!0,toastStyle:"NEWSLETTER_UNSUBSCRIBE",duration:5e3,hide:function(){}},c.createElement(g.f,{scale:"S",color:"DARKER"},c.createElement(c.Fragment,null,"You have unsubscribed from ",c.createElement("b",null,t),". Changes will take effect within 24 hours."," ",c.createElement(p.m,{inline:!0,href:Object(b.Lc)(n),linkStyle:"OBVIOUS"},"Manage all my email settings"))),c.createElement(p.e,{onClick:function(){r()},isPositionAbsolute:!1,size:"SMALL"}))}))},v=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),E=n("./src/framework/reporter/index.ts");function x(){var e=s()(["\n  mutation unsubscribeNewsletterV3($newsletterV3Id: ID!) {\n    unsubscribeNewsletterV3(newsletterV3Id: $newsletterV3Id)\n  }\n"]);return x=function(){return e},e}function y(){var e=s()(["\n  mutation subscribeNewsletterV3($newsletterV3Id: ID!) {\n    subscribeNewsletterV3(newsletterV3Id: $newsletterV3Id)\n  }\n"]);return y=function(){return e},e}var O=l()(y()),w=l()(x()),_=n("./src/components/session/useFlag.tsx"),S=n("./src/components/session/useViewer.tsx"),j=n("./src/components/susi/SusiClickable.tsx"),P=n("./src/framework/source/index.ts"),C=n("./src/framework/source/SourceContext.tsx"),k=n("./src/store/actions/navigation.ts"),I=n("./src/util/hooks/useToggle.tsx"),T=n("./src/util/theme.ts");function R(){var e=s()(["\n  fragment NewsletterV3SubscribeButton_newsletterV3 on NewsletterV3 {\n    id\n    name\n    isSubscribed\n    ...SusiClickable_newsletterV3\n    collection {\n      ...CollectionMetabar_collection\n      ...SusiClickable_collection\n      ...collectionDefaultBackgroundTheme_collection\n    }\n  }\n  ","\n  ","\n  ","\n  ","\n"]);return R=function(){return e},e}var A=l()(R(),d.c,j.b,j.c,T.d),L=function(e){var t=e.newsletterV3,n=e.buttonLayout,r=void 0===n?"MULTI-LINE":n,a=e.helperTextColor,s=void 0===a?"LIGHTER":a,i=e.showHelperText,l=void 0===i||i,d=e.showMailIcon,x=void 0===d||d,y=e.buttonSize,R=void 0===y?"LARGE":y,A=e.buttonStyle,L=void 0===A?"STRONG":A,M=Object(S.b)(),B=t.id,D=t.name,N=t.collection?t.collection:void 0,U=Object(k.u)(),F=Object(u.f)((function(e){return{interstitial:e.navigation.interstitial,referrerSource:e.navigation.referrerSource}}),u.d),H=F.referrerSource,V=F.interstitial,z=Object(_.a)("enable_email_address_sharing_setting"),G=Object(u.f)((function(e){return e.config.productName})),W=Object(I.a)(!1),q=o()(W,3),$=q[0],K=q[1],Y=q[2],Q=function(e,t){var n=c.useState(t),r=o()(n,2),a=r[0],s=r[1],i=c.useState(!1),l=o()(i,2),u=l[0],d=l[1],m=c.useState(!1),p=o()(m,2),f=p[0],g=p[1],b=Object(E.c)();u&&b.event("newsletterV3.subscribe.error",{newsletterV3Id:e});var h=Object(v.d)(O,{variables:{newsletterV3Id:e},onCompleted:function(e){var t=e.subscribeNewsletterV3;d(!t),t&&s(!0)}}),x=o()(h,1)[0],y=Object(v.d)(w,{variables:{newsletterV3Id:e},onCompleted:function(e){var t=e.unsubscribeNewsletterV3;d(!t),t&&(s(!1),g(!0))}}),_=o()(y,1)[0];return{isSubscribed:a,hasUserUnsubscribed:f,hasError:u,setSubscribe:function(e){d(!1),g(!1),e?x():_()},setHasUserUnsubscribed:g}}(t.id,t.isSubscribed),X=Q.isSubscribed,J=Q.hasUserUnsubscribed,Z=Q.hasError,ee=Q.setSubscribe,te=Q.setHasUserUnsubscribed;c.useEffect((function(){"unsubscribe-newsletter"===V&&te(!0)}),[]),c.useEffect((function(){if(H){var e=Object(C.c)(H||"").susiEntry;["collection_newsletter_v3_landing","newsletter_v3_promo"].includes(void 0===e?"":e)&&X&&U({duration:"NEXTPAGE",message:"",toastStyle:"NEWSLETTER_SUBSCRIBE",extraParams:{newsletterName:null==t?void 0:t.name,unsubscribeFn:function(){return ee(!1)}}})}}),[H]);var ne=function(e){var t=e.children;return c.createElement(p.a,{margin:"COMPACT"===r?"10px 20px 10px 0":"",xs:{margin:"10px 0 0 0"}},t)},re=function(e){var t=e.children;return c.createElement(p.a,{maxWidth:"COMPACT"===r?"330px":"",margin:"COMPACT"===r?"10px 0 10px 0":"10px 0 0 0"},c.createElement(g.b,{scale:"S",color:s,tag:"p"},t))},oe=function(){var e=Object(b.cc)(B),n=function(){M&&ee(!0)},r={buttonSize:R,buttonStyle:L,newsletterV3Id:t.id,onClick:z&&M&&!M.allowEmailAddressSharing?K:n,showMailIcon:x};return c.createElement(ne,null,M?c.createElement(c.Fragment,null,c.createElement(m.a,r),c.createElement(p.f,{onConfirm:n,isVisible:$,hide:Y,titleText:"Complete your subscription to ".concat(t.name),confirmText:"Confirm",buttonStyle:"STRONG",buttonSize:"LARGE",showCancelButton:!1,withCloseButton:!1,titleTag:"h1",contentTag:"p",isDestructiveAction:!1},"By clicking below, you agree that ".concat(G," may share your email address with the editors of\n        newsletters you've subscribed to so they can stay in contact with you outside of ").concat(G,". You\n        may always opt out of sharing your email address by unsubscribing from each newsletter in\n        your Settings."))):c.createElement(j.a,{operation:"register",newsletterV3:t,collection:N,actionUrl:e},c.createElement(m.a,r)))},ae=function(){return c.createElement(P.b,{source:{newsletterV3Id:t.id},extendSource:!0},c.createElement(oe,null),M?l&&c.createElement(re,null,"Emails will be sent to ",M.email,".",c.createElement(p.a,null,c.createElement(j.a,{operation:"login",newsletterV3:t,collection:N},c.createElement(p.m,{onClick:function(){},linkStyle:"OBVIOUS",inline:!0,target:"_blank"},"Not you?")))):c.createElement(re,null,"Create a free Medium account to get ",t.name," in your inbox."))},se=function(){return c.createElement(c.Fragment,null,c.createElement(ne,null,c.createElement(p.b,{buttonStyle:"SUBTLE",size:"SMALL",onClick:function(){return ee(!1)}},"Unsubscribe")),l&&c.createElement(re,null,"You're signed up for ",D,"."))};return c.createElement(c.Fragment,null,c.createElement(p.D,null,(function(e){return c.createElement(p.x,{theme:Object(T.c)(N,e)},X?c.createElement(se,null):c.createElement(ae,null))})),Z&&c.createElement(f.a,{toastStyle:"RETRYABLE_ERROR",isVisible:Z,hide:function(){}}),J&&c.createElement(h,{name:t.name||""}))}},"./src/components/newsletter-v3/NewsletterV3SubscribeByEmail.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return B}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),l=n.n(i),c=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),u=n("./node_modules/graphql-tag/src/index.js"),d=n.n(u),m=n("./node_modules/react/index.js"),p=n("./node_modules/react-redux/es/index.js"),f=n("./src/components/newsletter-v3/GetNewsletterButton.tsx"),g=n("./src/framework/design-system/components/index.ts"),b=n("./src/framework/style/index.ts"),h={from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},v=function(e){return function(t){return{width:"20px",height:"20px",borderRadius:"50%",borderWidth:"1px",borderStyle:"solid",borderColor:"".concat(t.baseColor.border.light," transparent ").concat(t.baseColor.border.light," ").concat(t.baseColor.border.light),animation:"".concat(e," 1s infinite linear;")}}},E=function(e){var t=e.buttonSize,n=void 0===t?"LARGE":t,r=e.buttonStyle,o=void 0===r?"STRONG":r,a=Object(b.useCx)(),s=function(){var e=Object(b.useKeyframes)({keyframesName:h}).keyframesName;return m.createElement("div",{className:a(v(e))})};return m.createElement("div",{style:{cursor:"wait"}},m.createElement(g.b,{buttonStyle:o,onClick:function(){return null},size:n,width:"207px",disabled:!0},m.createElement((function(){return m.createElement(g.a,null,m.createElement(g.a,{display:"inline-block",float:"left",marginRight:"8px"},m.createElement(s,null)),m.createElement(g.a,{float:"left"},"Loading.."))}),null)))},x=n("./src/components/susi/GoogleRecaptcha.tsx"),y=n("./src/components/susi/helpers/index.ts"),O=n("./src/components/susi/susi-modal/SusiContainer.tsx"),w=n("./src/components/ui/Input.tsx"),_=n("./src/framework/design-system/type/index.ts"),S=n("./src/framework/source/index.ts"),j=n("./src/framework/track/SusiPresentationTracker.tsx"),P=n("./src/util/email.ts"),C=n("./src/util/routes.ts"),k=n("./src/util/theme.ts");function I(){var e=o()(["\n  fragment NewsletterV3SubscribeByEmail_newsletterV3 on NewsletterV3 {\n    id\n    slug\n    collection {\n      ...collectionDefaultBackgroundTheme_collection\n      ...collectionUrl_collection\n    }\n  }\n  ","\n  ","\n"]);return I=function(){return e},e}function T(){var e=o()(["\n  mutation SendNewsletterSubscriptionAcctAuthEmail(\n    $newsletterV3Id: String!\n    $email: String!\n    $redirect: String\n    $captchaValue: String\n    $operation: String\n  ) {\n    sendNewsletterSubscriptionAcctAuthEmail(\n      newsletterV3Id: $newsletterV3Id\n      email: $email\n      redirect: $redirect\n      captchaValue: $captchaValue\n      operation: $operation\n    ) {\n      ... on SusiMethod {\n        value\n      }\n      ... on BadRequest {\n        message\n      }\n      ... on FailedChallenge {\n        message\n      }\n      ... on NotFound {\n        message\n      }\n    }\n  }\n"]);return T=function(){return e},e}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=function(e){var t=e.centerContent,n=void 0!==t&&t,r=e.newsletterV3,o=Object(b.useTheme)(),a=Object(S.d)(),s=Object(S.g)(),i=Object(p.f)((function(e){return{authDomain:e.config.authDomain,currentLocation:e.navigation.currentLocation,productName:e.config.productName}}),p.d),u=i.authDomain,d=i.currentLocation,h=i.productName,v=m.useState(""),I=l()(v,2),T=I[0],R=I[1],L=m.useState(""),B=l()(L,2),D=B[0],N=B[1],U=m.useState(!1),F=l()(U,2),H=F[0],V=F[1],z=m.useState(!1),G=l()(z,2),W=G[0],q=G[1],$=m.useState(!1),K=l()($,2),Y=K[0],Q=K[1],X=m.useState(!1),J=l()(X,2),Z=J[0],ee=J[1],te=m.useState(""),ne=l()(te,2),re=ne[0],oe=ne[1],ae=null==d.match("http[s]?://[^/]*".concat(u)),se=r.collection,ie=r.id,le=r.slug,ce=Object(C.cc)(ie),ue=se?Object(C.ub)(le,u,se):d;Object(c.e)(O.a,{fetchPolicy:"no-cache",skip:!ce||ae,onCompleted:function(e){var t=e.accountToken;return t&&oe(Object(y.a)(ue,a,s,ce,t))}});var de=function(e){R(e),V(!0),setTimeout((function(){return V(!1)}),w.a),q(!1),Q(!1)},me=function(){Object(P.a)(D)?(Q(!0),q(!0)):de("Enter a valid email address.")},pe=function(){de("We couldn't process your request. Try again, or contact our support team.")},fe=Object(c.d)(M,{onCompleted:function(e){switch(e.sendNewsletterSubscriptionAcctAuthEmail.__typename){case"SusiMethod":N(D),ee(!0);break;case"BadRequest":de("Enter a valid email address.");break;case"FailedChallenge":case"NotFound":default:pe()}},onError:pe}),ge=l()(fe,1)[0],be={newsletterV3Id:ie,email:D,operation:"register",redirect:re};return m.createElement(g.x,{theme:Object(k.c)(se,o)},m.createElement(g.a,{alignItems:n?"center":"flex-start",display:"flex",flexDirection:"column",justifyContent:n?"center":"flex-start"},m.createElement(x.a,{callback:function(e){ge({variables:A({captchaValue:e},be)})},shouldExecuteRecaptcha:W}),m.createElement(g.a,{display:Z?"none":"inline"},m.createElement(g.a,{alignItems:"center",display:"flex",justifyContent:"space-between",sm:{alignItems:n?"center":"flex-start",flexDirection:"column",height:"130px",paddingTop:"16px"},height:"56px"},m.createElement(g.a,{marginTop:T&&"25px",sm:{marginTop:"0"}},m.createElement(w.b,{autoFocus:!1,errorMessage:T,handleInputChange:function(e){N(e.target.value.trim())},handleSubmit:me,input:D,inputType:w.c.EMAIL,isAnimating:H,textAlign:"start",placeholder:"Your email",width:"375px"})),m.createElement(g.a,{marginBottom:"auto",marginLeft:"15px",sm:{marginLeft:"0px",marginTop:"15px"}},Y?m.createElement(E,{newsletterV3Id:ie}):m.createElement(j.a,{eventData:{operation:"register"}},m.createElement(f.a,{newsletterV3Id:ie,onClick:me})))),m.createElement(g.a,{paddingTop:T&&"20px",marginTop:"10px",sm:{marginTop:"0"}},m.createElement(_.b,{scale:"XS"},"By signing up, you will create a ",h," account if you don’t already have one. Review our"," ",m.createElement(g.m,{href:Object(C.Jb)(),linkStyle:"OBVIOUS",inline:!0,target:"_blank"},"Privacy Policy")," ","for more information about our privacy practices."))),m.createElement(g.a,{display:Z?"inline":"none",marginBottom:"15px",marginTop:"5px"},m.createElement(_.b,{color:"DARKER",scale:"M"},m.createElement("b",null,"Check your inbox"),m.createElement("br",null),h," sent you an email at ",D," to complete your subscription."))))},M=d()(T()),B=d()(I(),k.d,C.L)},"./src/components/optimizely/helpers/index.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return m}));var r,o=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),a=n.n(o),s=n("./node_modules/graphql-tag/src/index.js"),i=n.n(s);function l(){var e=a()(["\n  fragment optimizelyData_post on Post {\n    creator {\n      name\n    }\n    collection {\n      name\n    }\n    primaryTopic {\n      name\n    }\n  }\n"]);return l=function(){return e},e}!function(e){e.TopicSelected="TopicSelected",e.UserConvertedToTrialMember="UserConvertedToTrialMember"}(r||(r={}));var c=function(){return"undefined"!=typeof window},u=function(e,t,n){var r=e.post;if(c()){c()&&(window.optimizelyDataObject={});var o=r||{},a=o.creator,s=o.collection,i=o.primaryTopic;a&&a.name&&(window.optimizelyDataObject.author=a.name),s&&s.name&&(window.optimizelyDataObject.publication=s.name),i&&i.name&&(window.optimizelyDataObject.topic=i.name),t&&(window.optimizelyDataObject.firstName=t),n&&(window.optimizelyDataObject.trialRenewalDate=n)}},d=function(e){c()&&void 0!==window.optimizely&&window.optimizely.push({type:"event",eventName:e})},m=i()(l())},"./src/components/post-listing/PostListingItemRecirc.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/post/PostByline.tsx"),m=n("./src/components/post/PostRecircItemV2.tsx"),p=n("./src/components/post/bookmark/index.ts"),f=n("./src/components/post/multivote/MultiVote.tsx"),g=n("./src/components/session/WithFlag.tsx"),b=n("./src/components/ui/image/FocusableMiroImage.tsx"),h=n("./src/framework/design-system/components/index.ts"),v=n("./src/framework/design-system/type/index.ts"),E=n("./src/framework/source/index.ts"),x=n("./src/framework/track/index.ts"),y=n("./src/util/routes.ts");function O(){var e=s()(["\n  fragment PostListingItemRecirc_post on Post {\n    __typename\n    id\n    title\n    isLocked\n    previewImage {\n      id\n      focusPercentX\n      focusPercentY\n    }\n    ...PostByline_post\n    ...PostPresentationTracker_post\n    ...BookmarkButton_post\n    ...MultiVote_post\n    ...PostRecircItemV2_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return O=function(){return e},e}var w=l()(O(),d.a,x.c,p.b,f.b,m.a),_=function(e){var t=e.height,n=e.width;return{paddingBottom:"".concat(t/n*100,"%"),position:"relative"}},S={height:"100%",position:"absolute",width:"100%"},j=function(e){var t=e.title,n=e.url;return c.createElement(h.d,{href:n},c.createElement(v.g,{scale:"S",tag:"h3"},t))},P=c.forwardRef((function(e,t){var n,r,a=e.post,s=e.productName,i=c.useState(!1),l=o()(i,2),u=l[0],m=l[1],O=c.useCallback((function(e){!u&&e.isIntersecting&&m(!0)}),[u]);if(Object(x.f)({onIntersect:O,target:t,disconnect:function(){return u},rootMargin:"100px"},[u]),"SuggestedPost"===a.__typename?(n=function(e,t){var n,r,o,a;switch(e&&e[0]&&e[0].reason){case"TOP_SIMILAR_TO_POST":case"CF_POST_SIMILAR_TO_POST":return"Related reads";case"TOP_IN_TOPIC":return a=e[0].topics?e[0].topics[0].name:"topic","Popular in ".concat(a);case"POSTS_SHARING_AUTHOR":return n=e[0].users?e[0].users[0].name:"author","More from ".concat(n);case"POSTS_SHARING_TAGS":return(o=e[0].tags&&e[0].tags[0].name)?"Also tagged ".concat(o):"";case"TOP_IN_COLLECTION":return r=e[0].collections?e[0].collections[0].name:"publication","More from ".concat(r);case"TOP_FOR_THE_DAY_GLOBALLY":return"Top on ".concat(t);case"POSTS_SHARING_COLLECTION_AND_TAGS":return o=e[0].tags&&e[0].tags[0].name,r=e[0].collections?e[0].collections[0].name:"publication",o?"More on ".concat(o," from ").concat(r):"";case"RECOMMENDED_BY_AUTHOR":return(n=e[0].users&&e[0].users[0].name)?"Applause from ".concat(n):"";case"TOP_FOR_THE_DAY":return"Trending on ".concat(t);default:return"Picked for you"}}(a.postSuggestionReasons,s),r=a.post):r=a,!r)return null;var w,P,C,k,I,T,R,A=r.previewImage?r.previewImage.id:"",L=(w={id:A||"1*hn4v1tCaJy7cWMyb0bpNpQ.png",width:328,height:218,focusPercentX:r.previewImage?r.previewImage.focusPercentX:null,focusPercentY:r.previewImage?r.previewImage.focusPercentY:null},C=w.id,k=w.width,I=w.height,T=w.focusPercentX,R=w.focusPercentY,C?(P="number"==typeof T&&"number"==typeof R?[T,R]:[50,50],c.createElement(h.B,null,(function(e){return c.createElement("div",{className:e(_({height:I,width:k}))},c.createElement("div",{className:e(S)},c.createElement(b.a,{miroId:C,imgHeight:I,imgWidth:k,width:"100%",height:"100%",freezeGifs:!1,focusPercent:P})))}))):null);return c.createElement(x.b,{post:r,presentationContext:"PLACEMENT"},c.createElement(h.a,{md:{marginBottom:"48px"}},c.createElement(h.h,{alignItems:{xs:"flex-start",sm:"center",md:"center",lg:"flex-start",xl:"flex-start"},direction:{xs:"row",sm:"row-reverse",md:"row-reverse",lg:"row",xl:"row"}},c.createElement(h.i,{size:{xs:12,sm:6,md:6,lg:12,xl:12}},n&&c.createElement(h.a,{marginBottom:"12px",md:{display:"none"},xs:{display:"block"}},c.createElement(v.b,{scale:"M"},n)),L&&c.createElement(h.a,{marginBottom:"16px",md:{marginBottom:"0px"},xs:{marginBottom:"16px"}},c.createElement(h.m,{display:"block",href:Object(y.Gb)(r)},u?L:null))),c.createElement(h.i,{size:{xs:12,sm:6,md:6,lg:12,xl:12}},c.createElement(h.a,{marginBottom:"16px"},n&&c.createElement(h.a,{display:"none",marginBottom:"4px",md:{display:"block"},xs:{display:"none"}},c.createElement(v.b,{scale:"M"},n)),c.createElement(j,{title:r.title?r.title:"",url:Object(y.Gb)(r)})),c.createElement(h.a,{display:"flex",alignItems:"center",justifyContent:"space-between"},c.createElement(h.a,{flexShrink:"1",marginRight:"10px"},c.createElement(g.a,{name:"remove_stars_ui"},(function(e){return c.createElement(d.b,{post:r,showBio:!1,scale:"S",showStar:!e&&!!r.isLocked,hideAvatar:!u})}))),c.createElement(h.a,{display:"flex",alignItems:"center"},c.createElement(E.b,{source:{susiEntry:"clap_preview"},extendSource:!0},c.createElement(f.a,{post:r,buttonStyle:"SUBTLE"})),c.createElement(h.a,{borderRight:"BASE_LIGHTER",marginLeft:"12px",marginRight:"10px",height:"20px",width:"1px"}),c.createElement(E.b,{source:{susiEntry:"bookmark_preview"},extendSource:!0},c.createElement(p.a,{post:r}))))))))}));t.b=Object(u.c)((function(e){return{productName:e.config.productName}}),null,null,{forwardRef:!0})(P)},"./src/components/post/EmbeddedPost.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./src/components/post/EmbeddedPostContext.tsx"),u=n("./src/framework/source/index.ts"),d=n("./src/framework/style/index.ts"),m=n("./src/handlers/EmbeddedPostHandler.tsx");function p(){var e=o()(["\n  fragment EmbeddedPost_post on Post {\n    id\n    tags {\n      ...TagList_tags\n    }\n    topics {\n      topicId\n      name\n    }\n  }\n"]);return p=function(){return e},e}s()(p());var f=Object(l.c)((function(e){return{embedPostRules:e.config.embedPostRules}}))((function(e){var t=e.postId,n=e.sourcePost,r=e.embedPostRules,o=t||n&&function(e,t){var n;return e?(t.map((function(t){var r,o;return n||(((null===(r=e.topics)||void 0===r?void 0:r.some((function(e){var n,r;return!!(null==t||null===(n=t.topics)||void 0===n?void 0:n.includes((null==e||null===(r=e.name)||void 0===r?void 0:r.toLowerCase())||""))})))||(null===(o=e.tags)||void 0===o?void 0:o.some((function(e){var n,r;return!!(null==t||null===(n=t.tags)||void 0===n?void 0:n.includes((null==e||null===(r=e.id)||void 0===r?void 0:r.toLowerCase())||""))}))))&&(n=t.embedPostId),n)})),n):n}(n,r);return o?i.createElement(m.a,{postId:o},(function(e){var t=Object(d.useCx)();return e?i.createElement(c.a.Provider,{value:!0},i.createElement(u.b,{source:{name:"embedded_post"}},i.createElement("div",{className:t({padding:{xs:"16px 0",sm:"16px 0",md:"18px 0",lg:"24px 0",xl:"32px 0"},marginBottom:"25px"})},e))):null})):null}))},"./src/components/post/InResponseToPostPreview.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return S}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/post/paragraph/TextParagraph.tsx"),c=n("./src/components/stream/Quote.tsx"),u=n("./src/components/ui/Card.tsx"),d=n("./src/framework/design-system/components/index.ts"),m=n("./src/framework/design-system/type/index.ts"),p=n("./src/framework/style/index.ts"),f=n("./src/schema-types/globalTypes.ts"),g=n("./src/svg/clap-filled-19px.svg"),b=n("./src/svg/response-filled-19px.svg"),h=n("./src/util/numbers.ts"),v=n("./src/util/quote.ts"),E=n("./src/util/routes.ts");function x(){var e=o()(["\n  fragment InResponseToPostPreview_mediaResource on Post {\n    inResponseToMediaResource {\n      mediumQuote {\n        ...Quote_quote\n      }\n    }\n  }\n  ","\n"]);return x=function(){return e},e}function y(){var e=o()(["\n  fragment InResponseToPostPreview_postResult on PostResult {\n    __typename\n    ... on Post {\n      id\n      title\n      mediumUrl\n      creator {\n        id\n        name\n      }\n      clapCount\n      responsesCount\n    }\n  }\n"]);return y=function(){return e},e}var O=function(e){return{fill:e.baseColor.fill.lighter}},w=function(e){var t,n=e.inResponseToPostResult,r=e.inResponseToMediaResource,o=e.padding,a=Object(p.useCx)();if(n)switch(n.__typename){case"Post":t=n}if(!t)return null;var s=t.title,c=t.creator&&t.creator.name,x=parseInt(t.clapCount,10),y=t.responsesCount||0,w=r&&r.mediumQuote&&Object(v.b)(r.mediumQuote),_=w&&w.type;if(_===f.m.IMG||_===f.m.IFRAME||_===f.m.COVER_TITLE||_===f.m.HR||_===f.m.MIXTAPE_EMBED||_===f.m.SECTION_CAPTION)return null;var S=i.createElement(d.d,{href:Object(E.Gb)(t)},i.createElement(u.a,null,i.createElement(d.a,{paddingLeft:"20px",paddingRight:"20px"},w&&_&&i.createElement(d.a,{paddingBottom:"20px"},i.createElement(l.g,{paragraph:w,paragraphStyle:_,spaceTop:10,richTextStyle:"STREAM"})),i.createElement(d.a,{display:"flex"},i.createElement(d.a,{display:"flex",flexGrow:"1",flexShrink:"1",alignItems:"center"},i.createElement(m.b,{scale:"M",color:"DARKER",clamp:1,tag:"span"},s)),i.createElement(d.a,{display:"flex",flexGrow:"0",alignItems:"center"},x>0?i.createElement(d.a,{display:"flex",alignItems:"center"},i.createElement("span",{className:a(O)},i.createElement(d.a,{tag:g.a,marginRight:"4px"})),i.createElement(m.b,{scale:"M",tag:"div"},Object(h.d)(x))):null,y>0?i.createElement(d.a,{display:"flex",alignItems:"center"},i.createElement("span",{className:a(O)},i.createElement(d.a,{tag:b.a,marginLeft:"8px",marginRight:"4px"})),i.createElement(m.b,{scale:"M",tag:"div"},Object(h.d)(y))):null)),i.createElement(m.b,{scale:"M"},c))));return o?i.createElement(d.a,{padding:o},S):S},_=s()(y()),S=s()(x(),c.a)},"./src/components/post/MaybeRedirectToEditor.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return f}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./src/components/navigation/Redirect.tsx"),u=n("./src/components/session/WithViewer.tsx"),d=n("./src/util/routes.ts");function m(){var e=o()(["\n  fragment MaybeRedirectToEditor_post on Post {\n    id\n    isPublished\n    collection {\n      id\n      viewerCanEditOwnPosts\n      viewerCanEditPosts\n      viewerIsEditor\n    }\n    creator {\n      id\n    }\n  }\n"]);return m=function(){return e},e}var p=s()(m()),f=Object(l.c)((function(e){return{authDomain:e.config.authDomain}}))((function(e){var t=e.authDomain,n=e.post,r=e.children;return i.createElement(u.b,null,(function(e){return function(e,t){var n=e.collection,r=e.creator&&t&&e.creator.id===t.id,o=r&&n&&n.viewerCanEditOwnPosts||n&&(n.viewerIsEditor||n.viewerCanEditPosts);return(!e||!e.isPublished)&&(n?o:r)}(n,e)?i.createElement(c.a,{to:Object(d.Db)(t,n.id)}):r}))}))},"./src/components/post/NormalizePostBodyModel.ts":function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return p}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./src/util/string.ts");function l(){var e=o()(["\n  fragment GetFeaturedImageIndex_bodyModel on RichText {\n    paragraphs {\n      type\n      text\n      metadata {\n        isFeatured\n      }\n    }\n  }\n"]);return l=function(){return e},e}function c(){var e=o()(["\n  fragment GetTitleIndexMap_bodyModel on RichText {\n    paragraphs {\n      type\n      text\n    }\n  }\n"]);return c=function(){return e},e}var u=function(e){for(var t=null,n=null,r=null,o=null,a=0;a<=e.length;a++){var s=e[a];if(!s)break;if(null!=t){"H4"===s.type&&(n=a),null===r&&"IMG"===s.type&&(r=a);break}if("H3"===s.type||"H2"===s.type)t=a;else{if(null!=o)break;if("H4"!==s.type){if("IMG"===s.type){null===r&&(r=a);continue}if("IFRAME"===s.type||"P"===s.type&&"string"==typeof s.text&&Object(i.a)(s.text))continue;break}o=a}}return{titleIndex:t,subtitleIndex:n,bannerImageIndex:r}},d=s()(c()),m=function(e){for(var t=null,n=0;n<e.length;n++)if("IMG"===e[n].type){if(e[n].metadata&&e[n].metadata.isFeatured)return n;null===t&&(t=n)}return t},p=s()(l())},"./src/components/post/PostBodyInserts.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return R})),n.d(t,"a",(function(){return A}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/WatchBounds.tsx"),c=n("./src/components/post/NormalizePostBodyModel.ts"),u=n("./src/components/post/PostByline.tsx"),d=n("./src/components/post/TableOfContents.tsx"),m=n("./src/components/post/bookmark/index.ts"),p=n("./src/components/post/bookmark/PostPageBookmarkButton.tsx"),f=n("./src/components/post/footer/CreatorActionOverflowPopover.tsx"),g=n("./src/components/post/footer/PostFooterSocialPopover.tsx"),b=n("./src/components/publisher/CardByline.tsx"),h=n("./src/components/publisher/auroraHooks.ts"),v=n("./src/components/session/useFlag.tsx"),E=n("./src/components/social/ShareButtons.tsx"),x=n("./src/components/user/UserAvatar.tsx"),y=n("./src/framework/design-system/index.ts"),O=n("./src/framework/design-system/components/index.ts"),w=n("./src/framework/source/index.ts"),_=n("./src/framework/style/useCx.ts"),S=n("./src/util/numbers.ts");function j(){var e=o()(["\n  fragment PostBodyInserts_post on Post {\n    collection {\n      ...auroraHooks_publisher\n    }\n    creator {\n      ...auroraHooks_publisher\n    }\n    isPublished\n    isShortform\n    # please note that the postMeteringOptions is defined in handlers that use PostBodyInserts\n    # (PostHandler and SequencePostHandler)\n    content(postMeteringOptions: $postMeteringOptions) {\n      bodyModel {\n        paragraphs {\n          name\n          text\n          type\n        }\n      }\n    }\n    ...PostByline_post\n    ...PostFooterSocialPopover_post\n    ...ShareButtons_post\n    ...BookmarkButton_post\n    ...CreatorActionOverflowPopover_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return j=function(){return e},e}function P(e){var t=e.post,n=Object(_.a)(),r=Object(h.b)(t.collection||t.creator),o=Object(v.a)("enable_mute"),a={marginTop:"32px"},s={post:t,source:{name:"post_actions_header"}};return i.createElement(l.a,{className:n(a),name:"byline",type:"byline",offset:{left:-600}},i.createElement(O.a,{display:"flex",justifyContent:"space-between",xs:{marginTop:a.marginTop},sm:{flexDirection:"column-reverse",marginTop:a.marginTop}},r&&t.creator?i.createElement(b.a,{avatar:i.createElement(x.d,{user:t.creator,scale:"XXS",link:!0,withHalo:!0}),publisher:t.creator,href:t.mediumUrl||void 0,isOneLine:!0,publishedAt:t.firstPublishedAt,showStar:!!t.isLocked&&!t.isShortform,timeToRead:!t.isShortform&&t.readingTime?"".concat(Object(S.f)(t.readingTime)," min read"):void 0}):i.createElement(u.b,{scale:"M",post:t,showBio:!1,hideCollection:!0}),i.createElement(O.a,{display:"flex",alignItems:"flex-end",print:{display:"none"},xs:{marginLeft:"0px",marginBottom:"30px"},sm:{marginLeft:"0px",marginBottom:"30px"},md:{marginLeft:"30px"},lg:{marginLeft:"30px"},xl:{marginLeft:"30px"}},i.createElement(O.a,{display:"flex",alignItems:"center"},t.isPublished&&(!r||!t.isShortform)&&i.createElement(i.Fragment,null,r?i.createElement(O.a,{paddingRight:"6px"},i.createElement(g.a,s)):i.createElement(E.a,s),i.createElement(O.a,{flexGrow:o?void 0:"1",marginRight:o?"8px":"-6px"},i.createElement(w.b,{source:{name:"post_actions_header",susiEntry:"bookmark_preview"}},i.createElement(p.a,{post:t}))),t&&o&&i.createElement(O.a,{flexGrow:"1",marginRight:"-6px"},i.createElement(O.A,null,(function(e){var n=e.show;return i.createElement(f.a,{creator:null==t?void 0:t.creator,post:t,collection:null==t?void 0:t.collection,showLoadingIndicator:n})}))))))))}function C(e,t){return"".concat(t,"_").concat(e[t]?e[t].length:0)}function k(e,t,n,r,o){e[t]||(e[t]=[]),e[t].push({order:n,component:r,insertType:o})}function I(e,t,n){return function(r){var o="number"==typeof n.titleIndex,a=n.subtitleIndex||n.titleIndex||0,s=t[a]&&t[a].name;if(s&&0===a&&!o){var l=i.createElement(P,{post:e,key:"insert_postBylineGroupComponent_".concat(C(r,"first"))});k(r,"first","before",i.createElement(y.h,{size:"inset",key:"insert_MaxWidth_PostBylineGroupComponent_".concat(C(r,"first"))},l),"BYLINE")}else if(s){k(r,s,"after",i.createElement(P,{post:e,key:"insert_PostBylineGroupComponent_".concat(C(r,s))}),"BYLINE")}return r}}function T(e,t,n){return function(r){var o="number"==typeof n.titleIndex,a=Math.max(n.bannerImageIndex||n.subtitleIndex||n.titleIndex||0,n.subtitleIndex||n.titleIndex||0),s=t[a]&&t[a].name;if(s&&0===a&&!o){var l=i.createElement(d.b,{post:e,mode:"INLINE",key:"insert_TOC_".concat(C(r,"first"))});k(r,"first","before",i.createElement(y.h,{size:"inset",key:"insert_MaxWidth_TableOfContents_".concat(C(r,"first"))},l),"TABLE_OF_CONTENTS")}else if(s){k(r,s,"after",i.createElement(d.b,{post:e,mode:"INLINE",key:"insert_TableOfContents_".concat(C(r,s))}),"TABLE_OF_CONTENTS")}return r}}function R(e){var t=e&&e.content&&e.content.bodyModel&&e.content.bodyModel.paragraphs||void 0;if(t){var n=Object(c.d)(t);return[I(e,t,n),T(e,t,n)].reduce((function(e,t){return t(e)}),{})}}var A=s()(j(),h.a,u.a,g.b,E.b,m.b,f.b)},"./src/components/post/PostBodySection.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return U})),n.d(t,"a",(function(){return F}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),u=n.n(c),d=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),g=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),b=n.n(g),h=n("./node_modules/graphql-tag/src/index.js"),v=n.n(h),E=n("./node_modules/react/index.js"),x=n("./src/WatchBounds.tsx"),y=n("./src/components/post/EmbeddedPostContext.tsx"),O=n("./src/components/post/PostBodyParagraph.tsx"),w=n("./src/components/post/grouping/ParagraphLayoutGrouping.tsx"),_=n("./src/framework/design-system/components/index.ts"),S=n("./src/framework/style/index.ts"),j={":after":{display:"block",content:'""',clear:"both"}},P=n("./src/util/miroImage.ts"),C=n("./src/util/theme.ts");function k(){var e=o()(["\n      fragment PostBodySection_paragraphs on Paragraph {\n        name\n        ...PostBodyParagraph_paragraph\n      }\n      ","\n    "]);return k=function(){return e},e}function I(){var e=o()(["\n  fragment PostBodySection_customStyleSheet on CustomStyleSheet {\n    id\n    ...ParagraphLayoutGrouping_customStyleSheet\n  }\n  ","\n"]);return I=function(){return e},e}function T(){var e=o()(["\n  fragment PostBodySection_privateNote on Note {\n    ...ParagraphLayoutGrouping_privateNote\n  }\n  ","\n"]);return T=function(){return e},e}function R(){var e=o()(["\n  fragment PostBodySection_highlight on Quote {\n    ...ParagraphLayoutGrouping_highlight\n  }\n  ","\n"]);return R=function(){return e},e}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M=function(){return{display:"table-cell",paddingBottom:"32px",verticalAlign:"bottom"}};function B(e){var t,n,r,o,a=e.bgImage,s=e.children,i=e.isFullPage,l=e.paragraphName,c=Object(S.useCx)();return a&&a.id&&i?E.createElement(x.a,{name:l,type:"bgimage"},E.createElement("div",{className:c((t=a,n=t.id,r=t.originalWidth,o=t.originalHeight,function(){var e=[400,600,800,1e3,1200,1400,1600,1800,2e3],t={miroId:n,strategy:P.a.Resample,verticalGradient:{start:29,end:81,opacity:40}},a=e.reduce((function(n,a,s){var i=Object(P.d)(L({},t,{width:a,height:a/r*o}));return s===e.length-1?(n.backgroundImage="url(".concat(i,")"),n):(n["@media (min-width: ".concat(a,"px)")]={backgroundImage:"url(".concat(i,")")},n)}),{});return L({backgroundColor:"rgba(0, 0, 0, 0.9)",backgroundPosition:"50% 50%",backgroundSize:"cover",display:"table",minHeight:"100vh",width:"100%"},a)}))},E.createElement("div",{className:c(M)},E.createElement(_.D,null,(function(e){return E.createElement(_.x,{theme:Object(C.p)(e)},s)}))))):s}var D=function(e){function t(){return s()(this,t),u()(this,m()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.paragraphViewModels,n=e.postBodyInserts,r=e.section,o=e.customStyleSheet;if(0===t.length)return null;var a=function(e){switch(e){case"SERIES":return{paddingTop:"32px",paddingBottom:"32px",margin:"auto 0",width:"100%"};case"STREAM":case"CARD":case"FULL_PAGE":return{wordBreak:"break-word",wordWrap:"break-word"};default:return{}}}(t[0].richTextStyle),s=Object(w.e)(t);return E.createElement(y.a.Consumer,null,(function(e){return E.createElement(_.B,null,(function(i){return E.createElement("section",{className:i([a,j])},E.createElement(B,{bgImage:r.backgroundImage,isFullPage:"FULL_PAGE"===t[0].richTextStyle,paragraphName:t[0].paragraph.name},s.map((function(t,r){return E.createElement(w.a,{key:r,layoutGroup:t,postBodyInserts:n,customStyleSheet:o,isEmbedded:e})}))))}))}))}}]),t}(E.Component);b()(D,"fragments",{paragraphs:v()(k(),O.d.fragments.paragraph)});t.d=D;var N=v()(R(),w.c),U=v()(T(),w.d),F=v()(I(),w.b)},"./src/components/post/PostByline.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),u=n.n(c),d=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),g=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),b=n.n(g),h=n("./node_modules/graphql-tag/src/index.js"),v=n.n(h),E=n("./node_modules/react/index.js"),x=n("./node_modules/react-redux/es/index.js"),y=n("./src/components/format/Date.tsx"),O=n("./src/components/ui/Byline.tsx"),w=n("./src/components/user/UserAvatar.tsx"),_=n("./src/components/user/UserFollowButton.tsx"),S=n("./src/framework/design-system/components/index.ts"),j=n("./src/framework/design-system/components/Box.tsx"),P=n("./src/framework/design-system/type/Detail.tsx"),C=n("./src/framework/source/index.ts"),k=n("./src/styles/breakpoints.ts"),I=n("./src/svg/star-15px.svg"),T=n("./src/svg/unlisted-19px.svg"),R=n("./src/util/numbers.ts"),A=n("./src/util/routes.ts");function L(){var e=o()(["\n  fragment PostByline_post on Post {\n    id\n    isPublished\n    mediumUrl\n    firstPublishedAt\n    readingTime\n    statusForCollection\n    isLocked\n    isShortform\n    visibility\n    collection {\n      name\n      id\n      slug\n      ...collectionUrl_collection\n    }\n    creator {\n      name\n      username\n      id\n      bio\n      isFollowing\n      ...UserAvatar_user\n    }\n  }\n  ","\n  ","\n"]);return L=function(){return e},e}var M={XS:{showFollowButton:!1,avatarScale:"XS"},S:{showFollowButton:!1,avatarScale:"S"},M:{showFollowButton:!0,avatarScale:"M"}},B=function(e,t){return b()({marginBottom:e?"2px":"0px",display:"flex",alignItems:"center"},k.xs(t),{marginBottom:"0px"})},D=function(e){function t(){return s()(this,t),u()(this,m()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.currentLocation,n=e.post,r=e.showBio,o=e.scale,a=void 0===o?"M":o,s=e.detailScale,i=void 0===s?"M":s,l=e.showStar,c=void 0===l?n.isLocked&&!n.isShortform:l,u=e.hideCollection,d=void 0!==u&&u,m=e.hideAvatar,p=void 0!==m&&m,f=e.hideDescription,g=void 0!==f&&f,b=e.noClamp,h=void 0!==b&&b,v=n.id,x=n.creator,k=n.collection,L=n.statusForCollection,D=n.visibility,N=n.isPublished,U=M[a];if(!n||!v||!x)return null;var F=n.firstPublishedAt,H=x.username,V=x.name;if(!V||!H)return null;var z=E.createElement(w.d,{user:x,scale:U.avatarScale,link:!0}),G=r?E.createElement("div",null,x.bio):null,W="APPROVED"===L,q=U.showFollowButton?E.createElement(C.b,{source:{susiEntry:"follow_byline"}},E.createElement(j.a,{marginLeft:"8px",xs:{display:"none"},flexShrink:"0"},E.createElement(_.a,{user:x,buttonSize:"COMPACT"}))):null,$=E.createElement(S.B,null,(function(e){return E.createElement(S.D,null,(function(n){return E.createElement("div",{className:e(B(U.showFollowButton,n))},E.createElement(P.a,{scale:i,tag:"span",color:"DARKER",clamp:h?void 0:1},E.createElement(S.m,{href:Object(A.yc)(H),inline:!0},V),k&&W&&!d?E.createElement("span",null," ","in"," ",E.createElement(S.m,{href:Object(A.K)(k,t),inline:!0},k.name)):null),q)}))})),K=E.createElement(P.a,{scale:i,tag:"span",clamp:1},G,E.createElement("div",null,N?E.createElement(S.m,{href:Object(A.Gb)(n),inline:!0},F&&E.createElement(y.a,{timestamp:F})):E.createElement("span",null,"Draft")," ","·"," ","UNLISTED"===D?E.createElement(P.a,{scale:"S",tag:"span"},E.createElement(T.a,null)," Unlisted"):E.createElement(E.Fragment,null,Object(R.f)(n.readingTime||0)," min read"),c&&E.createElement("span",{style:{paddingLeft:"4px"}},E.createElement(I.a,{style:{marginTop:"-2px"}}))));return E.createElement(O.a,{avatar:!p&&z,title:$,description:!g&&K})}}]),t}(E.Component),N=v()(L(),w.b,A.L);t.b=Object(x.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))(D)},"./src/components/post/PostHeader.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return S}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./src/components/audio/AudioPlayback.tsx"),u=n("./src/components/broadcast-banner/BroadcastBanner.tsx"),d=n("./src/components/meter/MeterController.tsx"),m=n("./src/components/cta/HighlightCTA.tsx"),p=n("./src/framework/design-system/components/index.ts"),f=n("./src/util/routes.ts");function g(){var e=o()(["\n  fragment NewsletterV3PostHeaderCTA_collection on Collection {\n    id\n    domain\n    slug\n    name\n    newsletterV3 {\n      id\n      slug\n      name\n    }\n  }\n"]);return g=function(){return e},e}var b=s()(g()),h=function(e){var t=e.collection,n=Object(l.f)((function(e){return e.config.authDomain})),r=t.newsletterV3||{id:"",slug:"",name:""},o=Object(f.ub)(r.slug,n,t);return i.createElement(i.Fragment,null,i.createElement(m.a,null,t.newsletterV3?i.createElement(i.Fragment,null,"This is an email from ",i.createElement((function(){return i.createElement(p.m,{inline:!0,linkStyle:"OBVIOUS",href:o},r.name)}),null),", a newsletter by ",t.name,"."):i.createElement(i.Fragment,null,"This is an email from ",t.name,".")))},v=n("./src/components/post/InResponseToPostPreview.tsx"),E=n("./src/components/post/PostPaywallAlert.tsx"),x=n("./src/components/session/useFlag.tsx");function y(){var e=o()(["\n  fragment PostHeader_meteringInfo on MeteringInfo {\n    ...MeterController_meteringInfo\n  }\n  ","\n"]);return y=function(){return e},e}function O(){var e=o()(["\n  fragment PostHeader_post on Post {\n    newsletterId\n    inResponseToPostResult {\n      ... on PostResult {\n        ...InResponseToPostPreview_postResult\n      }\n    }\n    topics {\n      name\n    }\n    tags {\n      id\n    }\n    collection {\n      ...NewsletterV3PostHeaderCTA_collection\n    }\n    layerCake\n    isLocked\n    id\n    firstPublishedAt\n    ...InResponseToPostPreview_mediaResource\n    ...MeterController_post\n    ...PostPaywallAlert_post\n    ...AudioPlayback_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return O=function(){return e},e}var w=Object(l.c)((function(e){return{isAmp:e.config.isAmp}}))((function(e){var t,n,r=e.meteringInfo,o=e.post,a=e.isAmp,s=Object(x.a)("kill_fastrak");return i.createElement(p.s,{columns:8},!!o.newsletterId&&!!o.collection&&i.createElement(h,{collection:o.collection}),i.createElement(v.a,{inResponseToPostResult:o.inResponseToPostResult,inResponseToMediaResource:o.inResponseToMediaResource,padding:"10px 0 0"}),!!o.isLocked&&!!r&&i.createElement(d.a,{meteringInfo:r,post:o}),i.createElement(u.a,{topics:null==o||null===(t=o.topics)||void 0===t?void 0:t.map((function(e){return e.name})),tags:null==o||null===(n=o.tags)||void 0===n?void 0:n.map((function(e){return e.id})),tier:null==o?void 0:o.layerCake,isLocked:null==o?void 0:o.isLocked,postId:null==o?void 0:o.id,postPublishDate:null==o?void 0:o.firstPublishedAt}),!s&&!o.inResponseToPostResult&&!o.newsletterId&&i.createElement(E.a,{post:o}),o.audioVersionUrl&&!a&&i.createElement(c.a,{post:o}))})),_=s()(O(),v.c,v.b,d.c,E.b,c.b,b),S=s()(y(),d.b)},"./src/components/post/PostMetadata.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return z}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n("./node_modules/react-helmet-async/lib/index.module.js"),d=n("./node_modules/react-redux/es/index.js"),m=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),p=n.n(m),f=n("./node_modules/lodash/merge.js"),g=n.n(f),b=n("./node_modules/serialize-javascript/index.js"),h=n.n(b),v=n("./src/util/miroImage.ts"),E=n("./src/util/navigation.ts"),x=n("./src/util/post/metaHelpers.ts"),y=n("./src/util/routes.ts");function O(){var e=o()(["\n  fragment PostJsonLd_post on Post {\n    id\n    title\n    seoTitle\n    mediumUrl\n    creator {\n      name\n      username\n    }\n    collection {\n      id\n      name\n      domain\n      slug\n      logo {\n        id\n        originalWidth\n        originalHeight\n      }\n    }\n    previewImage {\n      id\n      focusPercentX\n      focusPercentY\n      originalWidth\n      originalHeight\n    }\n    isLocked\n    firstPublishedAt\n    updatedAt\n    tags {\n      displayTitle\n    }\n    topics {\n      name\n      slug\n    }\n    sequence {\n      slug\n    }\n    lockedSource\n    layerCake\n    isShortform\n    shortformType\n    structuredData\n    ...getTitleForPost_post\n  }\n  ","\n"]);return O=function(){return e},e}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S="Tag",j="Topic",P="Publication",C="Sequence",k="LockedPostSource",I="Elevated",T="LayerCake",R="Lite";function A(e){var t=e.id,n=e.originalWidth,r=e.originalHeight;if(!t||!n||!r)return null;var o=Math.min(r,60),a=o/r,s=Math.floor(n*a);return L({width:s,height:o,url:Object(v.d)({miroId:t,width:s,freezeGifs:!0,strategy:v.a.Resample})})}function L(e){return _({"@type":"ImageObject"},e)}function M(e,t){return"".concat(e,":").concat(t)}var B=Object(d.c)((function(e){var t=e.config,n=t.productName,r=t.defaultImages,o=t.collectionStructuredData,a=e.navigation;return{currentLocation:a.currentLocation,host:a.host,productName:n,defaultImages:r,collectionStructuredData:o}}))((function(e){var t=e.currentLocation,n=e.host,r=e.post,o=e.postDescription,a=e.productName,s=e.defaultImages,i=e.collectionStructuredData,l=r.collection,d=r.creator,m=r.id,f=r.mediumUrl,b=r.isLocked,O=r.previewImage,w=r.firstPublishedAt,B=r.updatedAt,D=r.tags,N=r.topics,U=r.sequence,F=r.lockedSource,H=r.layerCake,V=r.structuredData,z=Object(x.e)(r,a),G={id:s.postLogo.imageId,originalWidth:s.postLogo.width,originalHeight:s.postLogo.height},W={id:s.orgLogo.imageId,originalWidth:s.orgLogo.width,originalHeight:s.orgLogo.height},q=l?{"@type":"Organization",name:l.name,url:l.domain||Object(E.b)(n,Object(y.K)(l,t)),logo:function(e){if(!e||!e.logo||!e.logo.id)return A(W);var t=A(e.logo);return t&&60===t.height&&t.width<=600?t:A(W)}(l)}:{"@type":"Organization",name:a,url:Object(E.b)(n,"/"),logo:A(W)};l&&i&&i[l.id]&&g()(q,i[l.id].data);var $=[M(R,"true")];D&&D.forEach((function(e){e.displayTitle&&$.push(M(S,e.displayTitle))})),N&&N.forEach((function(e){e.name?$.push(M(j,e.name)):e.slug&&$.push(M(j,e.slug))})),l&&l.slug&&$.push(M(P,l.slug)),$.push(M(I,(!!U).toString())),U&&U.slug&&$.push(M(C,U.slug)),F&&$.push(M(k,F)),null!=H&&$.push(M(T,H.toString()));var K=o||"",Y=b?{isAccessibleForFree:"False",hasPart:{"@type":"WebPageElement",isAccessibleForFree:"False",cssSelector:".meteredContent"}}:{},Q={"@context":"http://schema.org"},X=_({"@type":"NewsArticle",image:O&&O.id?function(e){var t=e.id,n=e.originalWidth,r=e.originalHeight,o=e.focusPercentX,a=e.focusPercentY;if(!t)return null;var s=Object(v.b)({miroId:t,aspectRatio:16/9,croppedWidth:1200,originalWidth:n,originalHeight:r,focusPercentX:o,focusPercentY:a}),i=Object(v.b)({miroId:t,aspectRatio:4/3,croppedWidth:1200,originalWidth:n,originalHeight:r,focusPercentX:o,focusPercentY:a}),l=Object(v.b)({miroId:t,aspectRatio:1,croppedWidth:1200,originalWidth:n,originalHeight:r,focusPercentX:o,focusPercentY:a}),c=new Set([s,i,l]);return Array.from(c)}(O):L({url:Object(v.d)({miroId:G.id,width:G.originalWidth}),height:G.originalHeight,width:G.originalWidth}),url:f,dateCreated:w&&new Date(w).toISOString(),datePublished:w&&new Date(w).toISOString(),dateModified:B&&new Date(B).toISOString(),headline:z,name:z,description:K,identifier:m,keywords:$.length?$:null,author:d&&d.name&&d.username?{"@type":"Person",name:d.name||d.username,url:Object(y.ob)(n,d.username)}:null,creator:d&&[d.name],publisher:q,mainEntityOfPage:f},Y),J=_({},Q,{},X);if(V&&V.length>0)try{var Z=JSON.parse(V);if(Z&&(null==Z?void 0:Z["@graph"])&&(null==Z?void 0:Z["@graph"].length)>0){var ee=((null==Z?void 0:Z["@graph"])||[]).filter((function(e){return(null==e?void 0:e["@type"])&&"NewsArticle"!==(null==e?void 0:e["@type"])}));ee&&ee.length>0&&(J=_({},Q,{"@graph":[X].concat(p()(ee))}))}}catch(e){}return c.createElement(u.a,null,c.createElement("script",{type:"application/ld+json"},h()(J,{isJSON:!0})))})),D=l()(O(),x.f),N=n("./src/components/session/useFlag.tsx"),U=n("./src/util/numbers.ts"),F=n("./src/util/post/metaDescription.ts");function H(){var e=o()(["\n  fragment PostMetadata_post on Post {\n    id\n    socialTitle\n    socialDek\n    canonicalUrl\n    mediumUrl\n    metaDescription\n    latestPublishedAt\n    visibility\n    isLimitedState\n    readingTime\n    creator {\n      name\n      username\n      twitterScreenName\n    }\n    collection {\n      ampEnabled\n      twitterUsername\n      facebookPageId\n    }\n    previewContent {\n      subtitle\n    }\n    previewImage {\n      id\n      focusPercentX\n      focusPercentY\n      originalHeight\n      originalWidth\n    }\n    isShortform\n    ...PostJsonLd_post\n    ...postMetaDescription_post\n    ...shortformPostMetaDescription_post\n    ...shouldIndex_post\n    ...shortformPostTitle_post\n    ...getTitleDetails_post\n    ...getTitleForPost_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return H=function(){return e},e}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.b=Object(d.c)((function(e){return{host:e.navigation.host,productName:e.config.productName}}))((function(e){var t,n,r=e.isAmp,o=e.host,a=e.productName,i=e.post,l=i.canonicalUrl,d=i.collection,m=i.creator,p=i.id,f=i.latestPublishedAt,g=i.mediumUrl,b=i.previewContent,h=i.socialTitle,E=i.socialDek,O=i.visibility,w=i.isShortform,_=!!Object(N.a)("default_seo_post_titles"),S=d&&d.ampEnabled,j=m&&m.name,P=Object(x.c)(i),C=i.title||"",k=P.latestTitle||C;if(w){var I=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i,{title:k});t=Object(x.i)(I,a,P.hasTitleGraf).trim(),n=Object(F.c)(i,P.hasTitleGraf)}else t=Object(x.e)(i,a,P,_).trim(),n=Object(F.a)(i);var T,R,A=E||b&&b.subtitle||n;if(i&&i.previewImage&&i.previewImage.id&&!i.isLimitedState){var L=i.previewImage;T=Object(v.b)({miroId:L.id,aspectRatio:1.9,croppedWidth:L.originalWidth?Math.min(L.originalWidth,1200):1200,originalWidth:L.originalWidth,originalHeight:L.originalHeight,focusPercentX:L.focusPercentX,focusPercentY:L.focusPercentY})}else if(i.isLimitedState){var M={id:"1*3SjgcTt7wCYYS10ff6-0JQ.png",originalWidth:748,originalHeight:390,focusPercentX:50,focusPercentY:40};T=Object(v.b)({miroId:M.id,aspectRatio:1.9,croppedWidth:M.originalWidth?Math.min(M.originalWidth,1200):1200,originalWidth:M.originalWidth,originalHeight:M.originalHeight,focusPercentX:M.focusPercentX,focusPercentY:M.focusPercentY})}m&&m.username&&(R=Object(y.ob)(o,m.username));var D=Object(y.k)(p),H=!Object(x.k)(i),z=f&&new Date(f).toISOString(),G=Object(U.f)(i.readingTime||0),W=m&&m.twitterScreenName,q=d&&d.twitterUsername||"Medium",$=d&&d.facebookPageId,K=h||(C||k);i.isLimitedState&&(K="");var Y=i.isLimitedState?"":A,Q=c.useMemo((function(){return c.createElement(u.a,{htmlAttributes:r?{amp:void 0}:{}},c.createElement("meta",{property:"og:type",content:"article"}),z&&c.createElement("meta",{property:"article:published_time",content:z}),S&&!r?c.createElement("link",{rel:"amphtml",href:Object(y.e)(o,p)}):null,c.createElement("title",null,t),c.createElement("meta",{name:"title",content:t}),c.createElement("meta",{property:"og:title",content:K}),c.createElement("meta",{property:"twitter:title",content:K}),$&&c.createElement("meta",{property:"fb:pages",content:$}),c.createElement("meta",{name:"twitter:site",content:"@".concat(q)}),c.createElement("meta",{name:"twitter:app:url:iphone",content:D}),c.createElement("meta",{property:"al:android:url",content:D}),c.createElement("meta",{property:"al:ios:url",content:D}),c.createElement("meta",{property:"al:android:app_name",content:"Medium"}),n&&c.createElement("meta",{name:"description",content:n}),A&&c.createElement("meta",{property:"og:description",content:Y}),A&&c.createElement("meta",{property:"twitter:description",content:Y}),c.createElement("meta",{property:"og:url",content:g}),c.createElement("meta",{property:"al:web:url",content:g}),T&&c.createElement("meta",{property:"og:image",content:T}),T&&c.createElement("meta",{name:"twitter:image:src",content:T}),c.createElement("meta",{name:"twitter:card",content:T?"summary_large_image":"summary"}),R&&c.createElement("meta",{property:"article:author",content:R}),R&&c.createElement("link",{rel:"author",href:R}),W&&c.createElement("meta",{name:"twitter:creator",content:"@".concat(W)}),j&&c.createElement("meta",{name:"author",content:j}),c.createElement("link",{rel:"canonical",href:l||g}),c.createElement("link",{rel:"alternate",href:Object(y.h)(Object(y.Ib)("medium.com",i.id))}),c.createElement("meta",{name:"robots",content:"".concat(H?"noindex":"index",",follow,max-image-preview:large")}),c.createElement("meta",{name:"referrer",content:"UNLISTED"!==O?"unsafe-url":"origin"}),r?null:c.createElement("meta",{name:"twitter:label1",value:"Reading time"}),r?null:c.createElement("meta",{name:"twitter:data1",value:"".concat(G," min read")}),c.createElement("meta",{name:"parsely-post-id",content:p}))}),[r,t,l,g,T,S,p,h,n,R,j,W,D,H,z]);return c.createElement(c.Fragment,null,Q,c.createElement(B,{post:i,postDescription:n}))}));var z=l()(H(),D,F.b,F.d,x.l,x.j,x.d,x.f)},"./src/components/post/PostPaywallAlert.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return _}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),l=n("./node_modules/graphql-tag/src/index.js"),c=n.n(l),u=n("./node_modules/react/index.js"),d=n("./src/components/session/WithViewer.tsx"),m=n("./src/framework/design-system/components/index.ts"),p=n("./src/framework/design-system/type/Detail.tsx"),f=n("./src/util/routes.ts");function g(){var e=o()(["\n  mutation PostPaywallAlertMutation($postId: ID!) {\n    dismissDistributionAlert(postId: $postId)\n  }\n"]);return g=function(){return e},e}function b(){var e=o()(["\n  fragment PostPaywallAlert_post on Post {\n    id\n    visibility\n    lockedSource\n    curationEligibleAt\n    collection {\n      isEnrolledInHightower\n      isAuroraVisible\n      viewerIsEditor\n    }\n    creator {\n      id\n      isPartnerProgramEnrolled\n    }\n    isDistributionAlertDismissed\n  }\n"]);return b=function(){return e},e}var h=function(){return u.createElement(m.m,{href:Object(f.Q)(),target:"_blank",inline:!0,linkStyle:"OBVIOUS"},"Learn more")},v=function(){return u.createElement(m.m,{href:Object(f.P)(),target:"_blank",inline:!0,linkStyle:"OBVIOUS"},"Learn more")},E=function(){return u.createElement(u.Fragment,null,"This story's distribution setting is off. ",u.createElement(h,null))},x={LOCKED:function(){return u.createElement(u.Fragment,null,"This story's distribution setting is on. ",u.createElement(v,null))},PUBLIC:E,UNLISTED:E},y={LOCKED:function(){return u.createElement(u.Fragment,null,"This story's distribution setting is on. You're in the Partner Program, so this story is eligible to earn money. ",u.createElement(v,null))},PUBLIC:function(){return u.createElement(u.Fragment,null,"This story's distribution setting is off and it won't earn money in the Partner Program."," ",u.createElement(h,null))},UNLISTED:E};function O(e){var t=e.post,n=e.viewer,r=Object(i.d)(S),o=s()(r,1)[0],a=t.collection,l=t.lockedSource,c=t.creator,d=t.visibility,f=t.curationEligibleAt,g=t.isDistributionAlertDismissed,b=!(!n||!t.creator||n.id!==t.creator.id),h=!(!t.collection||!t.collection.viewerIsEditor),v=null==a?void 0:a.isAuroraVisible;if(!b&&!h||g||v)return null;var E=a&&a.isEnrolledInHightower,O="LOCKED_POST_SOURCE_UGC"===l,w=b&&c&&c.isPartnerProgramEnrolled,_=O&&(h&&E||w&&!E)?y:x,j=!!(f&&f>0)?_.LOCKED:_[d];return u.createElement(m.A,{initialVisibility:!0},(function(e){var n=e.hide;return e.isVisible&&u.createElement(m.a,{border:"BASE_LIGHT",borderRadius:"4px",position:"relative",marginTop:"24px",marginBottom:"15px"},u.createElement(m.e,{onClick:function(){n(),o({variables:{postId:t.id}})},size:"LARGE"}),u.createElement(m.a,{padding:"20px"},u.createElement(m.a,{marginBottom:"8px"},u.createElement("i",null,u.createElement(p.a,{scale:"S"},"Only you can see this message"))),u.createElement(p.a,{scale:"M",color:"DARKER"},u.createElement(j,null))))}))}function w(e){var t=e.post;return u.createElement(d.b,null,(function(e){return u.createElement(O,{post:t,viewer:e})}))}var _=c()(b()),S=c()(g())},"./src/components/post/PostPublishedDialog.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return R}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),l=n("./node_modules/graphql-tag/src/index.js"),c=n.n(l),u=n("./node_modules/react/index.js"),d=n("./src/components/session/WithViewer.tsx"),m=n("./src/components/session/useFlag.tsx"),p=n("./src/components/social/ShareButton.tsx"),f=n("./src/framework/design-system/components/index.ts"),g=n("./src/framework/design-system/type/index.ts"),b=n("./src/framework/track/index.ts"),h=n("./src/schema-types/globalTypes.ts"),v=n("./src/styles/colors.ts"),E=n("./src/util/CopyUrl.tsx"),x=n("./src/util/navigation.ts"),y=n("./src/util/routes.ts");function O(){var e=s()(["\n  fragment PostPublishedDialog_prerequisite_post on Post {\n    id\n    creator {\n      id\n    }\n    collection {\n      id\n      viewerIsEditor\n    }\n    creatorPartnerProgramEnrollmentStatus\n  }\n"]);return O=function(){return e},e}function w(){var e=s()(["\n  query PostPublishedDialogQuery($postId: ID!) {\n    post(id: $postId) {\n      id\n      ...PostPublishedDialog_post\n    }\n  }\n  ","\n"]);return w=function(){return e},e}function _(){var e=s()(["\n  fragment PostPublishedDialog_post on Post {\n    id\n    inResponseToPostResult {\n      __typename\n    }\n    visibility\n    curationEligibleAt\n    mediumUrl\n    shareKey\n    ...ShareButton_post\n    creatorPartnerProgramEnrollmentStatus\n  }\n  ","\n"]);return _=function(){return e},e}var S=function(){return u.createElement(f.a,null,u.createElement(f.m,{inline:!0,linkStyle:"OBVIOUS",href:Object(y.O)()},"Learn more")," ","about what happens to your post when you publish.")};var j=c()(_(),p.b),P=c()(w(),j),C=function(e){var t=e.url,n=e.label;return u.createElement(E.a,{url:t},(function(e){return u.createElement(f.a,{marginBottom:"8px"},u.createElement(f.b,{buttonStyle:"SOCIAL",size:"REGULAR",width:"212px",onClick:function(e){return e}},u.createElement(f.a,{display:"flex",alignItems:"center",justifyContent:"center"},e?"Copied!":n)))}))},k=function(e){var t=e.post,n=e.isUnlisted,r=e.postPath;return u.createElement(f.a,{display:"flex",flexDirection:"column",alignItems:"center"},u.createElement(g.b,{color:"DARKER",scale:"L",tag:"p"},function(e){return e?"Share your story outside Medium.":"Share your story with the world."}(n)),u.createElement(f.a,{marginTop:"20px"},!n&&u.createElement(u.Fragment,null,u.createElement(f.a,{marginBottom:"8px"},u.createElement(p.a,{socialPlatform:"FACEBOOK",buttonStyle:"BUTTON_BRANDED",post:t})),u.createElement(f.a,{marginBottom:"8px"},u.createElement(p.a,{socialPlatform:"TWITTER",buttonStyle:"BUTTON_BRANDED",post:t})),u.createElement(f.a,{marginBottom:"8px"},u.createElement(p.a,{socialPlatform:"LINKEDIN",buttonStyle:"BUTTON_BRANDED",post:t}))),u.createElement(C,{url:r,label:"Copy story link"})))},I=function(e){var t=e.isVisible,n=e.hide,r=e.post,o=r.id,a=r.visibility,s=r.curationEligibleAt,i=r.mediumUrl,l=r.shareKey,c=r.creatorPartnerProgramEnrollmentStatus,d="UNLISTED"===a,p=!!s,b=!!Object(m.a)("kill_fastrak"),E=c===h.n.ENROLLED;return u.createElement(f.g,{isVisible:t,hide:n,withAnimation:!0,withCloseButton:!1},u.createElement(f.a,{background:v.B,borderRadius:"4px",boxShadow:"0 2px 10px ".concat(Object(v.y)(.15)),position:"relative",width:"900px",textAlign:"center",md:{width:"600px"},sm:{width:"calc(100vw - 128px)"}},u.createElement(f.e,{onClick:n,size:"LARGE"}),u.createElement(f.a,{padding:"56px",display:"flex",flexDirection:"column",justifyContent:"center",minHeight:"485px"},u.createElement(f.a,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},u.createElement(g.d,{scale:"L",tag:"h3"},"Your story is published!"),u.createElement(f.a,{maxWidth:"520px",marginTop:"20px"},u.createElement(g.b,{color:"DARKER",scale:"L",tag:"p"},function(e,t,n,r){return e?"Your unlisted story will not appear publicly on Medium, but you can still share it.":r?n?t?u.createElement(u.Fragment,null,"As a member of the Partner Program, you’ve chosen to make this story eligible to earn money. It will be part of Medium’s metered paywall.",u.createElement(S,null)):u.createElement(u.Fragment,null,"You did not choose to make this story eligible to earn money. It will not be part of Medium’s metered paywall.",u.createElement(S,null)):u.createElement(u.Fragment,null,"This story isn’t currently eligible to earn money. To make this story eligible, join the Medium Partner Program."," ",u.createElement(f.m,{inline:!0,linkStyle:"OBVIOUS",href:"https://medium.com/earn"},"Learn more.")):t?"If our curators recommend your story to readers by adding it to relevant topics, we will email you to let you know. Recommended stories are part of Medium's metered paywall, and you can use the custom Friend Link below to give anyone who clicks it free access to your story.":"You chose not to make this story eligible for review by curators and distribution through Medium topics. Your story will only be shared on Medium with readers who follow you."}(d,p,E,b))),u.createElement(f.a,{paddingTop:"20px"},p&&!d&&i&&l&&u.createElement(C,{url:Object(x.a)(Object(y.Gb)(r),{sk:l}),label:"Copy Friend Link"})),u.createElement(f.a,{borderBottom:"BASE_LIGHTER",width:"100%",margin:"20px 0"})),o&&i&&u.createElement(k,{post:r,isUnlisted:d,postPath:Object(y.Gb)(r)}))))},T=function(e){var t=e.post,n=u.useState(!1),r=o()(n,2),a=r[0],s=r[1];return a?u.createElement(d.b,null,(function(n){return n&&n.id&&(n.id===(t.creator&&t.creator.id)||t.collection&&t.collection.viewerIsEditor)?u.createElement(i.b,{ssr:!1,query:P,variables:{postId:t.id}},(function(t){var n=t.loading,r=t.data,o=(r=void 0===r?{}:r).post;if(n||!o||o.inResponseToPostResult)return null;var a={isVisible:e.isVisible,hide:e.hide,post:o};return u.createElement(I,a)})):null})):(b.a.on("load",(function(){return s(!0)})),null)},R=c()(O())},"./src/components/post/PostRecircItemV2.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./src/components/post/PostByline.tsx"),m=n("./src/components/session/WithFlag.tsx"),p=n("./src/components/ui/image/ProgressiveMiroImage.tsx"),f=n("./src/framework/design-system/components/index.ts"),g=n("./src/framework/design-system/type/index.ts"),b=n("./src/framework/track/index.ts"),h=n("./src/util/miroImage.ts"),v=n("./src/util/routes.ts");function E(){var e=s()(["\n  fragment PostRecircItemV2_post on Post {\n    __typename\n    id\n    title\n    mediumUrl\n    previewImage {\n      id\n      focusPercentX\n      focusPercentY\n    }\n    ...PostByline_post\n    ...PostPresentationTracker_post\n  }\n  ","\n  ","\n"]);return E=function(){return e},e}var x=l()(E(),d.a,b.c);t.b=Object(u.c)((function(e){return{defaultImages:e.config.defaultImages}}))((function(e){var t,n=e.post,r=e.defaultImages,a=(null==n?void 0:n.post)||n;if(!a)return null;var s,i,l,u,E=a.title,x=a.previewImage,y=null==r||null===(t=r.postPreviewImage)||void 0===t?void 0:t.imageId,O=(s={id:(null==x?void 0:x.id)||y,focusPercentX:null==x?void 0:x.focusPercentX,focusPercentY:null==x?void 0:x.focusPercentY},i=s.id,l=s.focusPercentX,u=s.focusPercentY,i?c.createElement(p.a,{miroId:i,freezeGifs:!1,focusPercentX:l,focusPercentY:u,strategy:h.a.Crop,width:70,height:70,otherWidths:[48,70],expectedWidth:70,rules:[{minWidth:{xs:"48px",sm:"48px",md:"48px",lg:"70px",xl:"70px"},minHeight:{xs:"48px",sm:"48px",md:"48px",lg:"70px",xl:"70px"}}]}):null);return c.createElement(b.b,{post:a,presentationContext:"PLACEMENT"},c.createElement(f.a,{display:"flex",justifyContent:"space-between"},c.createElement(f.a,{flexShrink:"1",xs:{marginRight:"16px"},sm:{marginRight:"16px"},md:{marginRight:"16px"}},c.createElement(f.a,{paddingBottom:"8px"},c.createElement(g.c,{scale:{xs:"XXS",sm:"XXS",md:"XXS",lg:"XS",xl:"XS"}},c.createElement(f.d,{href:Object(v.Gb)(a)},E))),c.createElement(m.a,{name:"remove_stars_ui"},(function(e){return c.createElement(c.Fragment,null,c.createElement(d.b,{post:a,showBio:!1,scale:"S",detailScale:"S",showStar:!e&&!!a.isLocked,hideAvatar:!0,hideDescription:!0,noClamp:!0}))}))),O&&c.createElement(f.a,o()({marginLeft:"12px",marginRight:"8px"},{sm:{marginLeft:"16px",marginRight:"0px"}}),c.createElement(f.m,{display:"block",href:Object(v.Gb)(a)},O))))}))},"./src/components/post/PostSidebar.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return H})),n.d(t,"b",(function(){return W})),n.d(t,"c",(function(){return q}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/typeof.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),u=n.n(c),d=n("./node_modules/graphql-tag/src/index.js"),m=n.n(d),p=n("./node_modules/react/index.js"),f=n("./node_modules/react-redux/es/index.js"),g=n("./src/WatchBounds.tsx"),b=n("./src/components/collection/CollectionFollowButton.tsx"),h=n("./src/components/format/Linkifier.tsx"),v=n("./src/components/metabar/constants.ts"),E=n("./src/components/post/TableOfContents.tsx"),x=n("./src/components/post/bookmark/index.ts"),y=n("./src/components/post/bookmark/PostPageBookmarkButton.tsx"),O=n("./src/components/post/multivote/MultiVote.tsx"),w=n("./src/components/publisher/auroraHooks.ts"),_=n("./src/components/read-next/ReadNext.tsx"),S=n("./src/components/responses/ResponsesIconButton.tsx"),j=n("./src/components/session/useFlag.tsx"),P=n("./src/components/sidebar/SidebarWrapper.tsx"),C=n("./src/components/user/UserFollowButton.tsx"),k=n("./src/framework/design-system/components/index.ts"),I=n("./src/framework/design-system/type/index.ts"),T=n("./src/framework/design-system/type/useTypeRules.ts"),R=n("./src/framework/source/index.ts"),A=n("./src/framework/style/index.ts"),L=n("./src/styles/mediaTypes.ts"),M=n("./src/util/dom.ts"),B=n("./src/util/routes.ts");function D(){var e=o()(["\n  fragment PostSidebar_post on Post {\n    id\n    clapCount\n    collection {\n      ...auroraHooks_publisher\n      ...PostSidebar_collection\n    }\n    creator {\n      bio\n      name\n      username\n      ...UserFollowButton_user\n      ...auroraHooks_publisher\n    }\n    isShortform\n    ...BookmarkButton_post\n    ...CollectionFollowButton_post\n    ...MultiVote_post\n    ...ResponsesIconButton_post\n    ...UserFollowButton_post\n    ...TableOfContents_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return D=function(){return e},e}function N(){var e=o()(["\n  fragment PostSidebar_collection on Collection {\n    id\n    description\n    tagline\n    ...CollectionFollowButton_collection\n    ...collectionUrl_collection\n  }\n  ","\n  ","\n"]);return N=function(){return e},e}var U={wordBreak:"break-word"},F=function(e){var t;return t={opacity:e?1:0,pointerEvents:e?"auto":"none",willChange:"opacity",position:"fixed",width:"188px",left:"50%",transform:"translateX(406px)",top:"calc(".concat(v.a,"px + 54px + 14px)")},u()(t,Object(L.c)("no-preference"),{transition:"opacity 200ms"}),u()(t,"@media all and (max-width: 1230px)",{display:"none"}),t},H=p.forwardRef((function(e,t){var n,r=e.isClearOfBounds,o=e.isOnPage,a=e.post,i=e.setIsResponsesSidebarVisible,c=Object(f.f)((function(e){return e.navigation.currentLocation})),u=Object(A.useCx)(),d=p.useContext(g.b).watchedBounds,m=p.useState(o||!1),b=l()(m,2),h=b[0],v=b[1],x=p.useState(r||!1),C=l()(x,2),I=C[0],T=C[1],L=p.useRef(null),B=p.useRef(null),D=!!Object(j.b)("enable_post_table_of_contents").value,N=p.useRef(null),U=a.collection;p.useEffect(G(d,v),[d]);var H=p.useCallback(function(e,t,n,r,o){return function(){if(e.current){var a=t.current,s=["image","bgimage","footer","byline","title","header"],i=Object(P.c)(e,n,s,o),l=!a||Object(P.c)(t,n,s,o);r(i&&l)}}}(L,B,d,T,{threshold:10}),[d,T]);p.useEffect((function(){H()}),[]);var W="object"===s()(t)?t:null;p.useEffect(Object(P.d)(H,null==W?void 0:W.current),[H,null==W?void 0:W.current]);var q=I&&h,$=Object(w.b)(U||a.creator)?p.createElement(z,{post:a}):U&&p.createElement(V,{post:a,currentLocation:c}),K=function(e,t,n){var r,o,a,s,i=null===(r=e.get("byline"))||void 0===r||null===(o=r.ref)||void 0===o?void 0:o.current,l=null===(a=e.get("ghost-track"))||void 0===a||null===(s=a.ref)||void 0===s?void 0:s.current,c=l&&Object(M.a)(l).top+window.scrollY-window.innerHeight||0;if(i&&l){var u=i.offsetTop+i.offsetHeight+(n?10:40);return t?u-c:u}}(d,!0,D);return p.createElement(R.b,{source:{susiEntry:"post_sidebar",name:"post_sidebar"}},p.createElement(P.b,{testId:"post-sidebar",isFixed:!0,scrollableRef:t,sidebarRef:L,topOffset:K,visible:q},a.isShortform?$:p.createElement(p.Fragment,null,p.createElement("div",{ref:N},$,p.createElement(R.b,{source:{susiEntry:"clap_sidebar"},extendSource:!0},p.createElement(k.a,{display:"flex",marginBottom:"19px",marginLeft:"-3px",paddingTop:"28px"},p.createElement(O.a,{post:a,buttonStyle:"SUBTLE_PADDED",hasDialog:!0}))),p.createElement(R.b,{source:{postId:a.id,susiEntry:"bookmark_sidebar"},extendSource:!0},p.createElement(k.a,{marginBottom:"19px"},p.createElement(S.a,{responsesCount:null===(n=a.postResponses)||void 0===n?void 0:n.count,location:"sidebar",setIsResponsesSidebarVisible:i,allowResponses:a.allowResponses,postId:a.id,isLimitedState:a.isLimitedState})),p.createElement(y.a,{post:a}))),p.createElement(E.b,{post:a,mode:"SIDEBAR",heightRef:N}))),p.createElement("div",{className:u(F(q)),ref:B},p.createElement(_.a,{postId:a.id,isVisible:q})))})),V=function(e){var t=e.post,n=e.currentLocation,r=Object(A.useCx)(),o=Object(T.a)({name:"heading",scale:"XS"}),a=t.collection;if(!a)return null;var s=t.isShortform?"NONE":"BASE_LIGHTER";return p.createElement(k.a,{paddingBottom:"28px",borderBottom:s},(null==a?void 0:a.name)&&p.createElement(k.m,{href:Object(B.K)(a,n)},p.createElement("h2",{className:r([o,U])},a.name)),(a.tagline||a.description)&&p.createElement(k.a,{paddingTop:"2px",paddingBottom:"20px"},p.createElement(I.b,{scale:"M",clamp:6},a.tagline||a.description)),p.createElement(R.b,{source:{susiEntry:"follow_sidebar"},extendSource:!0},p.createElement(b.a,{collection:a,post:t})))},z=function(e){var t=e.post,n=Object(A.useCx)(),r=Object(T.a)({name:"heading",scale:"XS"}),o=t.creator;if(!o||!o.name)return null;var a=p.createElement("h2",{className:n([r,U])},o.name),s=o.username?p.createElement(k.m,{href:Object(B.yc)(o.username)},a):a,i=t.isShortform?"NONE":"BASE_LIGHTER";return p.createElement(k.a,{paddingBottom:"28px",borderBottom:i},p.createElement(I.e,{scale:"S"},"Written by"),p.createElement(k.a,{paddingTop:"5px",paddingBottom:"5px"},s),o.bio&&p.createElement(k.a,{paddingTop:"2px"},p.createElement(I.b,{scale:"M"},p.createElement(h.a,{wrapLinks:!0},o.bio))),p.createElement(k.a,{paddingTop:"14px"},p.createElement(R.b,{source:{susiEntry:"follow_card"},extendSource:!0},p.createElement(C.a,{buttonSize:"SMALL",post:t,user:o}))))},G=function(e,t){return function(){var n=new IntersectionObserver((function(n){var r=e.get("ghost-track");if(r){var o=n.find((function(e){return e.target===r.ref.current}));o&&t(o.isIntersecting)}else t(!1)}));return e.forEach((function(e){e.ref.current&&n.observe(e.ref.current)})),function(){n.disconnect()}}};var W=m()(N(),b.b,B.L),q=m()(D(),w.a,W,C.c,x.b,b.c,O.b,S.b,C.b,E.a)},"./src/components/post/TableOfContents.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/collection/theming/Foldable.tsx"),c=n("./src/components/post/NormalizePostBodyModel.ts"),u=n("./src/components/sidebar/SidebarWrapper.tsx"),d=n("./src/framework/design-system/components/Link.tsx"),m=n("./src/framework/design-system/type/Detail.tsx"),p=n("./src/framework/style/index.ts"),f={INLINE:{padding:"8px 0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},SIDEBAR:{padding:"8px 0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"".concat(u.a,"px"),":hover":{width:"200px"}}};function g(e){var t=Object(p.useCx)();return i.createElement("li",{className:t({overflow:"hidden"})},i.createElement(m.a,{scale:"M",color:"DARKER"},i.createElement(d.a,{href:"#".concat(e.destination),onClick:function(t){t.preventDefault(),function(e){var t=document.getElementById(e);if(t){var n=t.offsetTop-56;window.scrollTo({left:0,top:n,behavior:"smooth"}),window.history.pushState({},"","#".concat(e))}}(e.destination)},disableSourceParam:!0,noFollow:!0,inline:!0},i.createElement("div",{className:t(f[e.mode]),title:e.text},e.text))))}var b=n("./src/components/session/RequireFlag.tsx"),h=n("./src/framework/design-system/components/Box.tsx"),v=n("./src/framework/design-system/type/Overline.tsx"),E=n("./src/schema-types/globalTypes.ts"),x=n("./src/styles/colors.ts"),y=n("./src/util/color.ts");function O(){var e=o()(["\n  fragment TableOfContents_post on Post {\n    id\n    collection {\n      id\n    }\n    content(postMeteringOptions: $postMeteringOptions) {\n      bodyModel {\n        paragraphs {\n          id\n          name\n          type\n          text\n        }\n      }\n    }\n  }\n"]);return O=function(){return e},e}var w=s()(O()),_=function(e){var t=(e||{content:{bodyModel:{paragraphs:null}}}).content.bodyModel.paragraphs;if(!t)throw new Error("Expected post to have paragraphs.");var n=Object(c.d)(t),r=t.filter((function(e){return function(e){switch(e){case E.m.H1:case E.m.H2:case E.m.H3:return!0}return!1}(e.type)}));return null!==n.titleIndex&&r.splice(0,1),r.length>1?r:[]},S={INLINE:{display:{xs:"block",sm:"block",md:"block",lg:"block",xl:"none"},marginTop:"35px"},SIDEBAR:{display:{xs:"none",sm:"none",md:"none",lg:"none",xl:"block"},margin:"50px 0",fontSize:"16px",":hover":{width:"200px"}}};t.b=function(e){var t=e.post,n=e.mode,r=e.heightRef,o=Object(p.useCx)(),a=Object(p.useTheme)().backgroundColor,s=_(t);if(!function(e){return!!(e.collection&&e.collection.id&&["3ec9f38ac0bd","3f6ecf56618","8d6b8a439e32"].includes(e.collection.id))||["8135e6744d59","21f0e9818b3a"].includes(e.id)}(t)||!(null==s?void 0:s.length))return null;var c,u,d=function(){var e=(null==r?void 0:r.current)?r.current.offsetHeight:0,t=Math.max("undefined"!=typeof window?window.innerHeight-e-106-100:150,150);return"".concat(t,"px")},m=i.createElement(h.a,{overflow:"hidden",marginTop:"16px"},i.createElement("ol",{className:o({marginTop:"5px"})},s.map((function(e){return i.createElement(g,{key:"toc_".concat(e.name),text:e.text||"",destination:e.name||"",mode:n})})))),f=Object(y.e)(a),E=function(e){return"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", ").concat(e,")")};switch(n){case"INLINE":u=i.createElement(v.a,{scale:"M",color:"LIGHTER"},i.createElement("div",{className:o({marginRight:"7px"})},"Jump To Section")),c=i.createElement("div",{className:o(S[n])},i.createElement(h.a,{borderBottom:"BASE_LIGHTER",paddingBottom:"10px"},i.createElement(l.a,{titleComponent:u,width:"auto",arrowFill:Object(x.y)(.54)},m)));break;case"SIDEBAR":u=i.createElement(v.a,{scale:"S",color:"LIGHTER"},i.createElement("div",{className:o({whiteSpace:"nowrap"})},"Table of Contents")),c=i.createElement("div",{className:o(S[n])},u,i.createElement(h.a,{position:"relative"},i.createElement("div",{className:o((function(){return{background:"linear-gradient(".concat(E(1),",\n      ").concat(E(.5),",\n      ").concat(E(0),")"),width:"100%",height:"".concat(35,"px")}}))}),i.createElement("div",{className:o({overflowY:"scroll",scrollbarWidth:"none","-ms-overflow-style":"none","::-webkit-scrollbar":{display:"none"},height:d(),paddingBottom:"".concat(35,"px"),position:"relative",top:"-".concat(35,"px")})},m),i.createElement("div",{className:o((function(){return{background:"linear-gradient(".concat(E(0),",\n      ").concat(E(.5),",\n      ").concat(E(1),")"),position:"relative",width:"100%",height:"".concat(35,"px"),top:"-".concat(35,"px")}}))})));break;default:return null}return i.createElement(b.a,{name:"enable_post_table_of_contents"},c)}},"./src/components/post/body/InteractivePostBody.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return L}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/extends.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),l=n.n(i),c=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),u=n("./node_modules/graphql-tag/src/index.js"),d=n.n(u),m=n("./node_modules/react/index.js"),p=n("./src/components/post/body/ActivePrivateNoteContext.tsx"),f=n("./src/components/post/body/ActiveSelectionContext.tsx"),g=n("./src/components/post/body/ParagraphRefsMapContext.tsx"),b=n("./src/components/post/body/PostBody.tsx"),h=n("./src/components/post/markups/HighlightSegmentsContext.tsx"),v=n("./src/util/typeGuards.ts");function E(){var e=l()(["\n  fragment NormalizeHighlights_paragraph on Paragraph {\n    name\n    text\n  }\n"]);return E=function(){return e},e}function x(){var e=l()(["\n  fragment NormalizeHighlights_highlight on Quote {\n    endOffset\n    startOffset\n    paragraphs {\n      name\n      text\n    }\n  }\n"]);return x=function(){return e},e}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e,t,n){if(!e||"number"!=typeof t||"number"!=typeof n)return null;var r=t,o=n;return e.substr(r,o-r)}function w(e,t){return e&&t?e.map((function(e){var n=e.endOffset,r=e.startOffset,a=e.paragraphs&&e.paragraphs[0],s=function(e,t){return e?t.find((function(t){var n=t.name;return e===n})):null}(a.name,t);if(!a||!s)return null;var i=O(a.text,r,n),l=O(s.text,r,n);if(!i||!l)return null;if(i===l)return e;var c=s.text?s.text.indexOf(i):null;return"number"!=typeof c||c<0?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{endOffset:c+i.length,startOffset:c})})).filter(v.b):e}var _=d()(x()),S=d()(E()),j=n("./src/components/session/WithFlag.tsx"),P=n("./src/components/session/WithViewer.tsx");function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(){var e=l()(["\n  query InteractivePostBodyQuery($postId: ID!, $showHighlights: Boolean!, $showNotes: Boolean!) {\n    post(id: $postId) {\n      id\n      highlights @include(if: $showHighlights) {\n        id\n        ...ActiveSelectionContext_highlight\n        ...HighlighSegmentContext_highlight\n        ...NormalizeHighlights_highlight\n        ...PostBody_highlight\n      }\n      privateNotes @include(if: $showNotes) {\n        ...PostBody_privateNote\n      }\n    }\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return I=function(){return e},e}function T(){var e=l()(["\n  fragment InteractivePostBody_customStyleSheet on CustomStyleSheet {\n    id\n    ...PostBody_customStyleSheet\n  }\n  ","\n"]);return T=function(){return e},e}function R(){var e=l()(["\n  fragment InteractivePostBody_post on Post {\n    id\n    # please note that the postMeteringOptions is defined in handlers that use InteractivePostBody\n    # (PostHandler and SequencePostHandler)\n    content(postMeteringOptions: $postMeteringOptions) {\n      isLockedPreviewOnly\n      bodyModel {\n        ...PostBody_bodyModel\n        paragraphs {\n          ...HighlighSegmentContext_paragraph\n          ...NormalizeHighlights_paragraph\n        }\n      }\n    }\n    creator {\n      id\n      allowNotes\n      ...PostBody_creator\n    }\n    ...ActiveSelectionContext_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return R=function(){return e},e}var A=d()(R(),f.c,h.b,S,b.a,b.b),L=d()(T(),b.c),M=d()(I(),f.b,h.a,b.d,b.e,_),B=m.forwardRef((function(e,t){var n=e.activeGrafId,r=e.activeNoteId,o=e.customStyleSheet,a=e.isAuroraPostPageEnabled,i=e.post,l=e.postBodyInserts,u=i.content,d=i.latestPublishedVersion;if(!u)throw new Error("Expected post to have content.");var v={bodyModel:u.bodyModel,creator:i.creator,customStyleSheet:o,isAuroraPostPageEnabled:a,postBodyInserts:l,ref:t,richTextStyle:"FULL_PAGE"},E=i&&i.creator&&i.creator.allowNotes||!1;return m.createElement(j.a,{name:"enable_lite_post_highlights_view_only",nonBlocking:!0},(function(e){return u.isLockedPreviewOnly||!e?m.createElement(b.f,v):m.createElement(c.b,{notifyOnNetworkStatusChange:!0,ssr:!1,query:M,variables:{postId:i.id,showHighlights:Boolean(e),showNotes:E}},(function(e){var t=e.data,o=(t=void 0===t?{}:t).post,a=u.bodyModel&&u.bodyModel.paragraphs,l=w(o&&o.highlights||[],a),c=o&&o.privateNotes||null;return m.createElement(g.b,null,m.createElement(j.a,{name:"enable_lite_post_highlights",nonBlocking:!0},(function(e){var t=m.createElement(b.f,s()({},v,{highlights:l,privateNotes:c}));return e?m.createElement(p.a,{initialActivePrivateNoteId:r,initialActiveGrafName:n},m.createElement(f.d,{interactivePost:k({},i,{latestPublishedVersion:d}),highlights:l},m.createElement(P.b,{nonBlocking:!0},(function(e){return m.createElement(h.d,{highlights:l,paragraphs:a,viewer:e},t)})))):t})))}))}))}));t.c=B},"./src/components/post/body/PostBody.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return ue})),n.d(t,"d",(function(){return de})),n.d(t,"b",(function(){return me})),n.d(t,"e",(function(){return pe})),n.d(t,"c",(function(){return fe}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/extends.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),l=n.n(i),c=n("./node_modules/graphql-tag/src/index.js"),u=n.n(c),d=n("./node_modules/react/index.js"),m=n("./src/WatchBounds.tsx"),p=n("./src/framework/style/index.ts"),f={display:"flex",justifyContent:"center",marginTop:"32px",marginBottom:"14px",paddingTop:"24px",paddingBottom:"10px"},g=function(e){return{backgroundColor:e.baseColor.text.darker,borderRadius:"50%",display:"inline-block",height:"3px",width:"3px"}},b={marginRight:"20px"};function h(){var e=Object(p.useCx)();return d.createElement("div",{className:e(f),role:"separator"},d.createElement("span",{className:e([g,b])}),d.createElement("span",{className:e([g,b])}),d.createElement("span",{className:e(g)}))}var v=n("./src/components/post/PostBodySection.tsx"),E=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),x=n.n(E),y=n("./node_modules/@babel/runtime/helpers/typeof.js"),O=n.n(y),w=n("./node_modules/pluralize/pluralize.js"),_=n.n(w),S=n("./src/components/user/UserAvatar.tsx"),j=n("./src/framework/design-system/components/index.ts"),P=n("./src/framework/design-system/type/Overline.tsx"),C=n("./src/framework/track/index.ts");function k(){var e=o()(["\n  fragment PostNotesDetails_user on User {\n    id\n    imageId\n    name\n    username\n    ...UserAvatar_user\n  }\n  ","\n"]);return k=function(){return e},e}function I(e){var t=e.grid.xStep;return{padding:"".concat(3*t,"px ").concat(4*t,"px ").concat(3*t,"px"),width:"400px"}}var T=d.memo((function(e){var t=e.close,n=e.users,r=Object(p.useCx)(),o=d.useRef(null),a=Object(p.useTheme)(),s=a.grid.xStep;return d.useEffect((function(){function e(){var e=o.current;if(e&&e.getBoundingClientRect){var n=e.getBoundingClientRect(),r=n.bottom,s=n.top<0||r>window.innerHeight,i=window.innerWidth<a.breakpoints.xl;(s||i)&&t()}}return C.a.on("scroll_end",e),C.a.on("resize_throttled",e),function(){C.a.off("scroll_end",e),C.a.off("resize_throttled",e)}}),[]),d.createElement("section",{ref:o,className:r(I)},d.createElement(j.a,{borderBottom:"BASE_LIGHTER",marginBottom:"-".concat(s,"px"),paddingBottom:"".concat(2*s,"px")},d.createElement(P.a,null,"Highlights (".concat(n.length,")"))),d.createElement(j.a,{marginLeft:"3px"},n.length&&n.map((function(e){return d.createElement(j.a,{display:"inline-block",key:e.id,marginTop:"".concat(5*s,"px"),marginRight:"".concat(5*s,"px"),width:"".concat(8*s,"px")},d.createElement(S.d,{hasPopover:!0,link:!0,user:e,scale:"XS"}))}))))})),R=u()(k(),S.b),A=n("./src/components/post/markups/HighlightSegmentsContext.tsx"),L=n("./src/components/post/notes/PostAnnotationsPopover.tsx"),M=n("./src/components/post/paragraph/IframeParagraph/iframePostMessageNormalizer.ts"),B=n("./src/components/session/WithViewer.tsx"),D=n("./src/framework/design-system/type/Detail.tsx"),N=n("./src/framework/design-system/util/style/converters.ts"),U=n("./src/util/typeGuards.ts");function F(){var e=o()(["\n  fragment PostNotesMarkers_creator on User {\n    id\n    name\n    isFollowing\n  }\n"]);return F=function(){return e},e}function H(){var e=o()(["\n  fragment PostNotesMarkers_highlight on Quote {\n    id\n    endOffset\n    paragraphs {\n      id\n      name\n    }\n    startOffset\n    userId\n    user {\n      id\n      name\n      ...PostNotesDetails_user\n    }\n  }\n  ","\n"]);return H=function(){return e},e}function V(){return{border:"none",cursor:"pointer",display:"block",padding:"0px",textAlign:"left",width:"100%"}}function z(){return{left:"100%",position:"absolute",top:0}}function G(e,t){return{marginTop:"6px",maxWidth:"100%",position:"absolute",top:"".concat(e-(t||0),"px"),whiteSpace:"nowrap",width:"100%"}}function W(e){return{marginLeft:"auto",marginRight:"auto",maxWidth:"".concat(Object(N.a)(e,8,!0),"px"),position:"relative"}}function q(){return{display:"inline-block",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}function $(e,t){return"number"==typeof e.startOffset&&"number"==typeof t.startOffset?e.startOffset<t.startOffset?-1:1:-1}function K(e,t){var n=t.startOffset,r=t.endOffset,o=t.paragraphs[0].name;if(!o||"number"!=typeof n||"number"!=typeof r)return e;var a=!1,s=e[o]||[];return s.length&&(s=s.map((function(e){var o=n<=e.endOffset+1,s=e.startOffset,i=e.endOffset;return o&&(a=!0,e.highlights.push(t),i=Math.max(r,e.endOffset),s=Math.min(n,e.startOffset)),{highlights:e.highlights,endOffset:i,startOffset:s}}))),a||s.push({highlights:[t],endOffset:r,startOffset:n}),e[o]=s,e}function Y(e,t,n){var r=new Map;if(e.size&&t.length){var o=function(e){var t=l()(e).sort($).reduce(K,{});return Object.values(t).reduce((function(e,t){return t&&"object"===O()(t)&&t.length?(e.push.apply(e,l()(t)),e):e}),[])}(t),a=[];o.forEach((function(t){var o=t.highlights[0],s=o.paragraphs[0].name;if(o&&"number"==typeof o.startOffset&&s){var i=e.get("".concat(s,"_").concat(o.startOffset));if(i&&i.ref&&i.ref.current){var l,c=i.ref.current.getBoundingClientRect().top+window.pageYOffset;a.length&&(l=a.find((function(e){return c<e+n.newFonts.body.lineHeight.M&&c>e||c>e-n.newFonts.body.lineHeight.M&&c<e})));var u=l||c,d=r.get(u)||[];d.length||a.push(u);var m=d.concat(t.highlights);m.length&&r.set(u,m)}}}))}return r}function Q(e){var t=e.children,n=e.highlightString,r=e.toggle,o=Object(p.useCx)();return"Top highlight"===n?d.createElement(d.Fragment,null,t):d.createElement("button",{className:o(V),onClick:function(){return r()},onMouseDown:function(e){return e.preventDefault()}},t)}function X(e){var t=e.creator,n=e.positionMap,r=e.yPosOffset,o=Object(p.useCx)();if("number"!=typeof r)return null;var a=Array.from(n.entries());return d.createElement(B.b,{nonBlocking:!0},(function(e){return d.createElement(d.Fragment,null,a.map((function(n,a){var s=x()(n,2),i=s[0],l=s[1],c=function(e,t,n){if(1===e.length){if("anon"===e[0].userId)return"Top highlight";if(!t)return null;if(n&&n.id===e[0].userId&&t.id!==n.id&&!n.isFollowing)return null;if(t&&t.id===e[0].userId)return"You highlighted";if(e[0].user&&e[0].user.name)return e[0].user.name}var r=[];if(e.forEach((function(e){if(e.user){var o=t&&t.id===e.userId,a=e.user.name,s=n&&n.id===e.userId&&(!t||t.id!==n.id&&!n.isFollowing);o?r.length&&"You"===r[0]||r.unshift("You"):s||!a||r.includes(a)||r.push(a)}})),!r.length)return"Top highlight";if(1===r.length)return"You"===r[0]?"You highlighted":r[0];if(2===r.length)return"".concat(r[0]," and ").concat(r[1]);var o=r.slice(0,2),a=r.length-o.length;return"".concat(o[0],", ").concat(o[1],", and ").concat(a," ").concat(_()("other",a))}(l,e,t);return c?d.createElement("div",{className:o(G(i,r)),key:a},d.createElement(j.A,null,(function(e){var t=e.isVisible,n=e.hide,r=e.toggle;return d.createElement(d.Fragment,null,d.createElement(Q,{toggle:r,highlightString:c},d.createElement(D.a,{scale:"S"},d.createElement("span",{className:o(q)},c))),t&&d.createElement(L.a,{boundariesElement:"window",isVisible:!0,hide:n,placement:"right",popoverRenderFn:function(){var e=new Set,t=l.map((function(t){var n=t.user;return n&&n.id&&!e.has(n.id)?(e.add(n.id),n):null})).filter(U.b);return d.createElement(T,{close:n,users:t})}},d.createElement(d.Fragment,null)))}))):null})))}))}var J=d.forwardRef((function(e,t){var n=e.creator,r=e.highlights,o=d.useContext(A.c).highlightSegments,a=d.useRef(null),s=d.useState(null),i=x()(s,2),l=i[0],c=i[1],u=Object(p.useCx)(),m=Object(p.useTheme)(),f=d.useState(null),g=x()(f,2),b=g[0],h=g[1],v=d.useState(null),E=x()(v,2),y=E[0],O=E[1];return d.useEffect((function(){var e=function(){var e=Y(o,r,m);if(c(e),"function"!=typeof t&&(null==t?void 0:t.current)&&O(t.current.offsetTop),null==a?void 0:a.current){var n=a.current.getBoundingClientRect().left,s=window.innerWidth-n-8*m.grid.xStep;h(s)}};C.a.on("resize_throttled",e);var n=Object(M.a)((function(t){"iframe.resize"!==t.context&&"player.js"!==t.context||e()})).destructor;return e(),function(){C.a.off("resize_throttled",e),n()}}),[r,o]),d.createElement("div",{className:u(W)},d.createElement(j.a,{display:"block",xs:{display:"none"},sm:{display:"none"},md:{display:"none"},lg:{display:"none"}},d.createElement("aside",{className:u(z),ref:a,style:{width:b?"".concat(b,"px"):void 0}},l&&d.createElement(X,{creator:n,highlights:r,positionMap:l,yPosOffset:y,width:b}))))})),Z=d.memo(J),ee=u()(H(),R),te=u()(F()),ne=n("./src/components/post/body/ActivePrivateNoteContext.tsx");var re=n("./src/util/richText.ts");function oe(){var e=o()(["\n  fragment PostBody_customStyleSheet on CustomStyleSheet {\n    id\n    ...PostBodySection_customStyleSheet\n  }\n  ","\n"]);return oe=function(){return e},e}function ae(){var e=o()(["\n  fragment PostBody_privateNote on Note {\n    ...normalizedBodyModel_privateNote\n    ...PostBodySection_privateNote\n  }\n  ","\n  ","\n"]);return ae=function(){return e},e}function se(){var e=o()(["\n  fragment PostBody_creator on User {\n    ...PostNotesMarkers_creator\n  }\n  ","\n"]);return se=function(){return e},e}function ie(){var e=o()(["\n  fragment PostBody_highlight on Quote {\n    paragraphs {\n      id\n    }\n    ...normalizedBodyModel_highlight\n    ...PostBodySection_highlight\n    ...PostNotesMarkers_highlight\n  }\n  ","\n  ","\n  ","\n"]);return ie=function(){return e},e}function le(){var e=o()(["\n  fragment PostBody_bodyModel on RichText {\n    sections {\n      name\n      startIndex\n      textLayout\n      imageLayout\n      backgroundImage {\n        id\n        originalHeight\n        originalWidth\n      }\n      videoLayout\n      backgroundVideo {\n        videoId\n        originalHeight\n        originalWidth\n        previewImageId\n      }\n    }\n    paragraphs {\n      id\n      ...PostBodySection_paragraphs\n    }\n    ...normalizedBodyModel_richText\n  }\n  ","\n  ","\n"]);return le=function(){return e},e}var ce=d.forwardRef((function(e,t){var n,r,o=e.bodyModel,a=e.creator,i=e.customStyleSheet,c=e.highlights,u=e.isAuroraPostPageEnabled,f=e.privateNotes,g=e.postBodyInserts,b=e.richTextStyle,E=void 0===b?"FULL_PAGE":b,x=Object(p.useCx)(),y=null===(n=d.useContext(m.b).watchedBounds.get("byline"))||void 0===n||null===(r=n.ref)||void 0===r?void 0:r.current,O=y?y.offsetTop-48:100,w={position:"absolute",left:0,top:"calc(100vh + ".concat(O,"px)"),bottom:"calc(100vh + ".concat(100,"px)"),width:"10px",pointerEvents:"none"},_=Object(ne.b)().privateNoteSelection,S=d.useMemo((function(){return c&&_?[].concat(l()(c),[_]):c}),[c,_]),j=g?function(e){var t;return Object.keys(e).some((function(n){return!!e[n].find((function(e){return"BYLINE"===e.insertType}))&&(t=n,!0)})),t}(g):void 0,P=d.useMemo((function(){return Object(re.e)(o,{bylineParagraphName:j,highlights:S,isAuroraPostPageEnabled:u,isPostPage:!0,privateNotes:f,richTextStyle:E})}),[o,S,f,E]),C=g&&g.first;return d.createElement("div",{ref:t},d.createElement(d.Fragment,null,d.createElement(m.a,{name:"ghost-track",type:"ghost",className:x(w)}),"FULL_PAGE"===E&&c&&c.length>0&&d.createElement(Z,{creator:a,highlights:l()(c),ref:t}),!!C&&C.map((function(e,t){return d.createElement("section",{className:x({marginBottom:"20px"}),key:"postBodyInsertFirst_".concat(t)},e.component)}))),P.map((function(e,t){if("HR"===e){var n,r,o=P[t-1],a=P[t+1],l="HR"!==o&&(null==o||null===(n=o.section)||void 0===n?void 0:n.backgroundImage),c="HR"!==a&&(null==a||null===(r=a.section)||void 0===r?void 0:r.backgroundImage);return l||c?null:d.createElement(h,{key:t})}return d.createElement(v.d,s()({key:e.section.name||t,customStyleSheet:i,postBodyInserts:g},e))})))})),ue=(t.f=ce,u()(le(),re.h,v.d.fragments.paragraphs)),de=u()(ie(),re.f,v.b,ee),me=u()(se(),te),pe=u()(ae(),re.g,v.c),fe=u()(oe(),v.a)},"./src/components/post/bookmark/BookmarkButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return T}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n.n(c),d=n("./src/components/post/bookmark/mutations.tsx"),m=n("./src/components/session/WithViewer.tsx"),p=n("./src/components/susi/SusiClickable.tsx"),f=n("./src/framework/actions/ActionContext.tsx"),g=n("./src/framework/design-system/components/index.ts"),b=n("./src/framework/reporter/index.ts"),h=n("./src/framework/source/index.ts"),v=n("./src/framework/style/index.ts"),E=n("./src/schema-types/globalTypes.ts"),x=n("./src/svg/bookmark-25px.svg"),y=n("./src/svg/bookmark-filled-25px.svg");function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var w=u.a.createElement("path",{d:"M19 6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14.66h.01c.01.1.05.2.12.28a.5.5 0 0 0 .7.03l5.67-4.12 5.66 4.13c.2.18.52.17.71-.03a.5.5 0 0 0 .12-.29H19V6z"}),_=function(e){return u.a.createElement("svg",O({width:25,height:25,viewBox:"0 0 25 25"},e),w)},S=n("./src/util/routes.ts");function j(){var e=s()(["\n  fragment BookmarkButton_post on Post {\n    ...SusiClickable_post\n    ...WithSetReadingList_post\n  }\n  ","\n  ","\n"]);return j=function(){return e},e}var P=l()(j(),p.d,d.b),C=function(e){return{fill:e.baseColor.fill.light}};var k=function(e){return{fill:e.baseColor.border.light,cursor:"default"}},I=function(){var e=Object(v.useCx)();return c.createElement(_,{className:e(k)})};function T(e){var t=e.post,n=e.withTooltip,r=void 0===n||n,a=t.id,s=t.readingList,i=Object(v.useCx)(),l=Object(b.c)(),u=Object(h.d)(),O=Object(f.b)(),w=null==O?void 0:O.READING_LIST_UPDATED,_=c.useState(r),j=o()(_,2),P=j[0],k=j[1],T=c.useState(s||E.r.READING_LIST_NONE),R=o()(T,2),A=R[0],L=R[1];c.useEffect((function(){L(s||E.r.READING_LIST_NONE)}),[s]);var M=function(e){if(s){var n=(o=s,{READING_LIST_NONE:E.r.READING_LIST_QUEUE,READING_LIST_ARCHIVE:null,READING_LIST_QUEUE:E.r.READING_LIST_NONE}[o]);if(!n)return;L(n),l.event(function(e){return{READING_LIST_NONE:"post.addedBookmark",READING_LIST_ARCHIVE:"post.addedArchive",READING_LIST_QUEUE:"post.removedBookmark"}[e]}(s),{postId:a,source:u}),e(n)().catch((function(){L(s)})),r&&k(!1),w&&w(t,n)}var o},B=c.useCallback((function(){r&&k(!0)}),[r]);return c.createElement(m.b,null,(function(e){return e?s?c.createElement("div",{className:i(C)},c.createElement(d.a,{post:t,viewer:e},(function(e){return c.createElement(g.z,{isVisible:P,darkTheme:!0,placement:"top",mouseLeaveDelay:0,targetDistance:10,popoverRenderFn:function(){return c.createElement(g.a,{padding:"8px"},{READING_LIST_NONE:"Save story",READING_LIST_ARCHIVE:"Archived",READING_LIST_QUEUE:"Unsave Story"}[s])},onMouseLeave:B},c.createElement(g.m,{onClick:function(){return M(e)},ariaLabel:"Bookmark Post"},(t=A,{READING_LIST_NONE:c.createElement(x.a,null),READING_LIST_ARCHIVE:c.createElement(I,null),READING_LIST_QUEUE:c.createElement(y.a,null)}[t])));var t}))):null:c.createElement(g.z,{isVisible:P,darkTheme:!0,placement:"top",mouseLeaveDelay:0,targetDistance:10,popoverRenderFn:function(){return c.createElement(g.a,{padding:"8px"},"Bookmark story")}},c.createElement(p.a,{post:t,operation:"register",actionUrl:Object(S.q)(a)},c.createElement(x.a,{className:i(C)})))}))}},"./src/components/post/bookmark/PostPageBookmarkButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n("./src/components/post/bookmark/BookmarkButton.tsx"),i=n("./src/components/post/bookmark/PostPageBookmarkContext.tsx"),l=n("./src/components/post/bookmark/mutations.tsx"),c=n("./src/components/session/WithViewer.tsx"),u=n("./src/components/susi/SusiClickable.tsx"),d=n("./src/framework/design-system/components/index.ts"),m=n("./src/framework/reporter/index.ts"),p=n("./src/framework/source/index.ts"),f=n("./src/framework/style/index.ts"),g=n("./src/schema-types/globalTypes.ts"),b=n("./src/svg/bookmark-25px.svg"),h=n("./src/svg/bookmark-archive-25px.svg"),v=n("./src/svg/bookmark-remove-25px.svg"),E=n("./src/util/hooks/useIsEligibleToViewNewResponses.tsx"),x=n("./src/util/routes.ts");var y=function(e,t){return e&&{READING_LIST_QUEUE:"READING_LIST_ARCHIVE",READING_LIST_ARCHIVE:"READING_LIST_NONE"}[t]},O=function(e){return function(t){return{fill:e?t.baseColor.fill.lighter:t.baseColor.border.darker}}},w=function(e){var t=e.currentReadingListType,n=e.isEligibleToViewNewResponses,r=Object(f.useCx)(),o=O(n);return{READING_LIST_QUEUE:a.createElement(h.a,{className:r(o)}),READING_LIST_ARCHIVE:a.createElement(v.a,{className:r(o)})}[t]},_=function(e){var t=e.post,n=e.withTooltip,r=void 0===n||n,h=t.id,v=t.readingList,_=Object(f.useCx)(),S=Object(m.c)(),j=Object(p.d)(),P=a.useContext(i.a),C=P.isFirstLoadAndInReadingList,k=P.setIsFirstLoadAndInReadingList,I=a.useState(r),T=o()(I,2),R=T[0],A=T[1],L=Object(E.a)(),M=a.useCallback((function(e,t){if(v){if(S.event({READING_LIST_QUEUE:"post.addedArchive",READING_LIST_ARCHIVE:"post.removedBookmark"}[v],{postId:h,source:j}),t(y(e,v))(),y(e,v)===g.r.READING_LIST_NONE)return void k(!1);r&&A(!1)}}),[h,v,C,k,r,j]),B=a.useCallback((function(){r&&A(!0)}),[r]);return a.createElement(c.b,null,(function(e){return e?v&&a.createElement("div",null,!C||v!==g.r.READING_LIST_QUEUE&&v!==g.r.READING_LIST_ARCHIVE?a.createElement(s.b,{post:t}):a.createElement(l.a,{post:t},(function(t){return a.createElement(d.z,{isVisible:R,darkTheme:!0,placement:"top",mouseLeaveDelay:0,targetDistance:10,popoverRenderFn:function(){return a.createElement(d.a,{padding:"8px"},{READING_LIST_QUEUE:"Archive Story",READING_LIST_ARCHIVE:"Remove story from reading list"}[v])},onMouseLeave:B},a.createElement(d.m,{onClick:function(){return M(e,t)}},a.createElement(w,{currentReadingListType:v,isEligibleToViewNewResponses:L})))}))):a.createElement("div",{className:_(O(L))},a.createElement(u.a,{post:t,operation:"register",actionUrl:Object(x.q)(h)},a.createElement(b.a,null)))}))}},"./src/components/post/bookmark/PostPageBookmarkContext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/react/index.js"),o=r.createContext({isFirstLoadAndInReadingList:!0,setIsFirstLoadAndInReadingList:function(){return null}})},"./src/components/post/bookmark/index.ts":function(e,t,n){"use strict";var r=n("./src/components/post/bookmark/BookmarkButton.tsx");n.d(t,"a",(function(){return r.b})),n.d(t,"b",(function(){return r.a}))},"./src/components/post/bookmark/mutations.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return w}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),l=n("./node_modules/graphql-tag/src/index.js"),c=n.n(l),u=n("./src/schema-types/globalTypes.ts");function d(){var e=s()(["\n  fragment WithSetReadingList_post on Post {\n    ...ReadingList_post\n  }\n  ","\n"]);return d=function(){return e},e}function m(){var e=s()(["\n  mutation UnarchivePostDefault($targetPostId: ID!) {\n    unarchivePost(targetPostId: $targetPostId) {\n      ...ReadingList_post\n    }\n  }\n  ","\n"]);return m=function(){return e},e}function p(){var e=s()(["\n  mutation ArchivePostDefault($targetPostId: ID!) {\n    archivePost(targetPostId: $targetPostId) {\n      ...ReadingList_post\n    }\n  }\n  ","\n"]);return p=function(){return e},e}function f(){var e=s()(["\n  mutation UnbookmarkPostDefault($targetPostId: ID!) {\n    unbookmarkPost(targetPostId: $targetPostId) {\n      ...ReadingList_post\n    }\n  }\n  ","\n"]);return f=function(){return e},e}function g(){var e=s()(["\n  mutation BookmarkPostDefault($targetPostId: ID!) {\n    bookmarkPost(targetPostId: $targetPostId) {\n      ...ReadingList_post\n    }\n  }\n  ","\n"]);return g=function(){return e},e}function b(){var e=s()(["\n  fragment ReadingList_post on Post {\n    __typename\n    id\n    readingList\n  }\n"]);return b=function(){return e},e}var h=c()(b()),v=c()(g(),h),E=c()(f(),h),x=c()(p(),h),y=c()(m(),h),O=c()(d(),h),w=function(e){var t=e.children,n=e.post,r=n.id,a=function(e){var t=Object(i.d)(v,{variables:{targetPostId:e},optimisticResponse:{bookmarkPost:{__typename:"Post",id:e,readingList:u.r.READING_LIST_QUEUE}}});return o()(t,1)[0]}(r),s=function(e){var t=Object(i.d)(E,{variables:{targetPostId:e},optimisticResponse:{unbookmarkPost:{__typename:"Post",id:e,readingList:u.r.READING_LIST_NONE}}});return o()(t,1)[0]}(r),l=function(e){var t=Object(i.d)(x,{variables:{targetPostId:e},optimisticResponse:{archivePost:{__typename:"Post",id:e,readingList:u.r.READING_LIST_ARCHIVE}}});return o()(t,1)[0]}(r),c=function(e){var t=Object(i.d)(y,{variables:{targetPostId:e},optimisticResponse:{unarchivePost:{__typename:"Post",id:e,readingList:u.r.READING_LIST_QUEUE}}});return o()(t,1)[0]}(r);if(!r)return null;return t((function(e){return function(){switch(n.readingList){case u.r.READING_LIST_NONE:if("READING_LIST_QUEUE"===e)return a();break;case u.r.READING_LIST_QUEUE:if("READING_LIST_NONE"===e)return s();if("READING_LIST_ARCHIVE"===e)return l();break;case u.r.READING_LIST_ARCHIVE:if(!e)return r;if("READING_LIST_NONE"===e)return s();if("READING_LIST_QUEUE"===e)return c()}throw new Error('Invalid reading list change from "'.concat(n.readingList||"unkown",'" to "').concat(e,'".'))}}))}},"./src/components/post/footer/CreatorActionOverflowPopover.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return Y})),n.d(t,"b",(function(){return Q}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n("./node_modules/react-redux/es/index.js"),d=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),m=n("./src/store/actions/navigation.ts");function p(){var e=o()(["\n  mutation PostAllowResponsesMutation($targetPostId: ID!, $allowResponses: Boolean!) {\n    setPostAllowResponses(targetPostId: $targetPostId, allowResponses: $allowResponses) {\n      id\n      allowResponses\n    }\n  }\n"]);return p=function(){return e},e}var f=l()(p()),g=Object(u.c)()((function(e){var t=e.children,n=e.dispatch,r=e.onCompleted,o=e.targetPostId;return c.createElement(d.a,{mutation:f,onCompleted:function(){n(Object(m.m)({message:"Responses are now hidden for this post."})),r&&r()},variables:{targetPostId:o,allowResponses:!1},optimisticResponse:{__typename:"Mutation",setPostAllowResponses:{__typename:"Post",id:o,allowResponses:!1}}},(function(e){return t({mutate:e})}))})),b=Object(u.c)()((function(e){var t=e.children,n=e.dispatch,r=e.onCompleted,o=e.targetPostId;return c.createElement(d.a,{mutation:f,onCompleted:function(){n(Object(m.m)({message:"Responses are now shown for this post."})),r&&r()},variables:{targetPostId:o,allowResponses:!0},optimisticResponse:{__typename:"Mutation",setPostAllowResponses:{__typename:"Post",id:o,allowResponses:!0}}},(function(e){return t({mutate:e})}))})),h=n("./src/components/mutations/UserBlockMutation.tsx"),v=n("./src/components/mutations/UserReportStoryMutation.tsx"),E=n("./src/components/mutations/UserUnblockMutation.tsx"),x=n("./src/components/mute/MutePopoverOptions.tsx"),y=n("./src/framework/design-system/components/index.ts"),O=function(e){var t=e.onConfirm,n=e.isVisible,r=e.hide;return c.createElement(y.f,{onConfirm:t,isVisible:n,hide:r,titleText:"Hide responses",confirmText:"Confirm",isDestructiveAction:!1},"People will still be able to respond, but the link to see responses will not be displayed at the bottom of your post.")},w=n("./src/components/post/footer/actions/CollectionSubmission.tsx"),_=n("./src/components/collection/CollectionAvatar.tsx"),S=n("./src/components/post/footer/actions/PubStatusMutations.tsx"),j=n("./src/components/post/footer/actions/shared.ts"),P=n("./src/components/ui/PopoverMenu.tsx"),C=n("./src/framework/design-system/type/index.ts"),k=function(e){var t=e.viewer,n=e.show,r=e.post;return t&&"PENDING"===r.statusForCollection&&(Object(j.d)(r)||Object(j.e)(r,t))?c.createElement(P.b,null,c.createElement(y.m,{onClick:n},"Manage submission")):null},I=function(e){var t=e.children,n=e.isVisible,r=e.post,o=e.hide,a=e.showLoadingIndicator,s=Object(S.a)(r),i=Object(S.b)(r),l=Object(u.e)(),d=r.pendingCollection;return d?c.createElement(y.p,{isVisible:n,hide:o,popoverRenderFn:function(){return c.createElement(y.a,{padding:"16px",maxWidth:"280px"},c.createElement(y.a,{display:"flex",flexDirection:"row",alignItems:"center"},c.createElement(y.a,{paddingRight:"8px"},c.createElement(_.a,{collection:d,size:40})),c.createElement(C.b,{scale:"S"},"This draft is submitted to ",d.name,".")),c.createElement(y.a,{flexDirection:"row",display:"flex",paddingTop:"16px"},c.createElement(y.a,{paddingRight:"8px"},c.createElement(y.b,{buttonStyle:"OBVIOUS",onClick:function(){o(),a(),s(r.pendingCollection).then((function(){window.location.reload(!1)}))}},"Accept")),c.createElement(y.b,{buttonStyle:"SUBTLE",onClick:function(){i(r.pendingCollection).then((function(){l(Object(m.m)({message:"Story removed from ".concat(d.name||"publication")}))})),o()}},"Don't accept")))}},t):t},T=function(e){var t=e.viewer,n=e.show,r=e.post;return t&&("APPROVED"===r.statusForCollection&&(Object(j.d)(r)||Object(j.e)(r,t)||Object(j.c)(r,t))||"PENDING"===r.statusForCollection&&Object(j.c)(r,t))?c.createElement(P.b,null,c.createElement(y.m,{onClick:n},"Remove story from publication")):null},R=function(e){var t=e.children,n=e.isVisible,r=e.hide,o=e.post,a=e.viewer,s=Object(u.e)(),i=Object(S.b)(o),l=o.collection||o.pendingCollection;return l?c.createElement(y.p,{isVisible:n,hide:r,popoverRenderFn:function(){return c.createElement(y.a,{padding:"16px",maxWidth:"280px"},c.createElement(y.a,{display:"flex",flexDirection:"row",alignItems:"center"},c.createElement(y.a,{paddingRight:"8px"},c.createElement(_.a,{collection:l,size:40})),"APPROVED"===o.statusForCollection?c.createElement(C.b,{scale:"S"},Object(j.c)(o,a)?"Your":"This"," story is published in"," ",l.name,"."):"PENDING"===o.statusForCollection?c.createElement(C.b,{scale:"S"},"Your story is being reviewed by ",l.name," editors."):c.createElement(C.b,{scale:"S"},"This draft is submitted to ",l.name)),c.createElement(y.a,{flexDirection:"row",display:"flex",paddingTop:"16px"},c.createElement(y.a,{paddingRight:"8px"},c.createElement(y.b,{buttonStyle:"SUBTLE",onClick:function(){i(l).then((function(){s(Object(m.m)({message:"Story removed from ".concat(l.name||"publication")}))}),(function(){s(Object(m.m)({message:"There was a problem removing the story from ".concat(l.name||"publication"),toastStyle:"ERROR"}))})),r()}},"PENDING"===o.statusForCollection?"Cancel submission":"Remove from ".concat(l.name||"")))))}},t):t},A=n("./src/components/post/multivote/ClapMutation.tsx"),L=n("./src/components/publisher/auroraHooks.ts"),M=n("./src/components/publisher/publisherHelpers.tsx"),B=n("./src/components/session/useViewer.tsx"),D=n("./src/components/susi/SusiClickable.tsx"),N=n("./src/components/user/UserBlockConfirmDialog.tsx"),U=n("./src/components/user/UserReportStoryDialog.tsx"),F=n("./src/framework/source/index.ts"),H=n("./src/store/actions/multiVote.ts"),V=n("./src/svg/overflow-dots-filled-25px.svg"),z=n("./src/util/hooks/useUserAgentMobileOrTablet.tsx"),G=n("./src/util/post/claps.ts"),W=n("./src/util/routes.ts");function q(){var e=o()(["\n  fragment CreatorActionOverflowPopover_post on Post {\n    allowResponses\n    id\n    statusForCollection\n    isPublished\n    clapCount\n    viewerClapCount\n    mediumUrl\n    pinnedAt\n    pinnedByCreatorAt\n    ...useIsPinnedInContext_post\n    pendingCollection {\n      id\n      name\n      viewerIsEditor\n      creator {\n        id\n      }\n      avatar {\n        id\n      }\n      domain\n      slug\n    }\n    creator {\n      id\n      isBlocking\n      ...MutePopoverOptions_creator\n      ...auroraHooks_publisher\n    }\n    collection {\n      id\n      viewerIsEditor\n      name\n      creator {\n        id\n      }\n      avatar {\n        id\n      }\n      domain\n      slug\n      ...MutePopoverOptions_collection\n      ...auroraHooks_publisher\n    }\n    ...ClapMutation_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return q=function(){return e},e}var $=function(e){return{fill:e.baseColor.fill.normal,":hover":{fill:e.baseColor.fill.darker},":focus":{fill:e.baseColor.fill.darker}}};function K(){return c.createElement(y.B,null,(function(e){return c.createElement(V.a,{className:e($)})}))}var Y=function(e){var t,n,r=e.creator,o=e.post,a=e.collection,i=e.showLoadingIndicator,l=c.useState(!1),d=s()(l,2),p=d[0],f=d[1],_=c.useState(!1),S=s()(_,2),j=S[0],C=S[1],V=c.useState(!1),q=s()(V,2),$=q[0],Y=q[1],Q=Object(u.f)((function(e){return e.multiVote.clapsPerPost})),X=Object(u.e)(),J=c.useCallback((function(e){return X(Object(H.d)(e))}),[X]),Z=Object(G.a)(Q,o),ee=Z.clapCount,te=Z.viewerClapCount,ne=Object(m.u)(),re=Object(B.b)(),oe=null==re?void 0:re.id,ae=Object(A.b)(),se=Object(M.d)(o),ie=s()(se,2),le=ie[0],ce=ie[1],ue=Object(L.e)(o.collection),de=Object(L.e)(o.creator),me=c.useCallback((function(e){var t;ne({extraParams:{collectionName:(null===(t=o.collection)||void 0===t?void 0:t.name)||"",becamePinned:!!e.data.setPinnedAt.pinnedAt},message:"",toastStyle:"POST_PINNED_TO_COLLECTION_HOMEPAGE"})}),[null===(t=o.collection)||void 0===t?void 0:t.name]),pe=c.useCallback((function(e){ne({message:e.data.postSetPinnedByCreatorAt.pinnedByCreatorAt?"This story has been pinned to your profile's homepage":"This story has been unpinned from your profile's homepage"})}),[]),fe=c.useCallback((function(){ce().then(me)}),[ce,me,null==o||null===(n=o.collection)||void 0===n?void 0:n.name]),ge=Object(M.e)(o),be=s()(ge,2),he=be[0],ve=be[1],Ee=c.useCallback((function(){ve().then(pe)}),[ve,pe]),xe=!Object(z.a)(),ye=Object(u.f)((function(e){return e.config.authDomain}));if(!r||!re)return null;var Oe=o.allowResponses,we=o.id,_e=(a||{}).viewerIsEditor,Se=oe===r.id||_e;return c.createElement(y.A,null,(function(e){var t=e.isVisible,n=e.toggle,s=e.hide;return c.createElement(y.A,null,(function(e){var l=e.isVisible,u=e.show,d=e.hide;return c.createElement(y.A,null,(function(e){var m=e.isVisible,_=e.show,S=e.hide;return c.createElement(y.A,null,(function(e){var A=e.isVisible,L=e.show,M=e.hide;return c.createElement(h.a,{targetUserId:null==r?void 0:r.id,viewerId:re.id,onCompleted:d},(function(e){var h=e.mutate;return c.createElement(E.a,{targetUserId:null==r?void 0:r.id,viewerId:re.id},(function(e){var E=e.mutate;return c.createElement(v.a,{targetAuthorId:null==r?void 0:r.id,targetPostId:o.id,isBlocking:null==r?void 0:r.isBlocking},(function(e){var v=e.mutate;return c.createElement(b,{targetPostId:we},(function(e){var b=e.mutate;return c.createElement(g,{targetPostId:we},(function(e){var g=e.mutate;return c.createElement(c.Fragment,null,c.createElement(y.p,{isVisible:t,hide:s,popoverRenderFn:function(){var e;return c.createElement(P.a,null,c.createElement(c.Fragment,null,a&&_e&&ue&&c.createElement(P.b,null,c.createElement(y.m,{onClick:fe},le?"Unpin this story from ":"Pin this story to ",a.name)),(null===(e=o.creator)||void 0===e?void 0:e.id)===re.id&&de&&c.createElement(P.b,null,c.createElement(y.m,{onClick:Ee},he?"Unpin this story from your profile":"Pin this story to your profile")),xe&&Se?c.createElement(c.Fragment,null,c.createElement(P.b,null,c.createElement(y.m,{linkStyle:"SUBTLE",href:Object(W.Db)(ye,o.id)},"Edit story")),c.createElement(P.c,null)):null,Se&&c.createElement(P.b,null,c.createElement(y.m,{href:Object(W.Hb)(ye,o.id)},"Story settings")),Se&&c.createElement(P.b,null,c.createElement(y.m,{href:Object(W.Mc)(ye,o.id)},"View stats")),c.createElement(x.a,{hidePopover:s,creator:r,collection:a,postId:o.id}),c.createElement(w.b,{post:o,show:function(){C(!0),s()}}),c.createElement(T,{viewer:re,post:o,show:function(){Y(!0),s()}}),c.createElement(k,{viewer:re,post:o,show:function(){f(!0),s()}})),oe===r.id||_e?c.createElement(c.Fragment,null,c.createElement(P.b,null,c.createElement(y.m,{onClick:function(){Oe?L():b(),s()}},Oe?"Hide responses":"Show responses")),c.createElement(P.c,null)):null,oe&&ee&&te&&te>0?c.createElement(P.b,null,c.createElement(y.m,{onClick:function(){ae(o,(null==re?void 0:re.id)||"",-te),J({postId:we,clapCount:ee-te,viewerClapCount:0,viewerHasClappedSinceFetch:!0}),s()}},"Undo applause for this post")):null,c.createElement(P.b,null,oe?c.createElement(y.m,{onClick:function(){_(),s()}},"Report this story"):c.createElement(F.b,{source:{susiEntry:"report_footer"}},c.createElement(D.a,{operation:"register",post:o},"Report this story"))),oe?c.createElement(P.b,null,c.createElement(y.m,{onClick:function(){r.isBlocking?E():u(),s()}},r.isBlocking?"Unblock this author":"Block this author")):null)}},c.createElement(w.a,{post:o,isVisible:j,hide:function(){C(!1)},showLoadingIndicator:i},c.createElement(R,{viewer:re,post:o,isVisible:$,hide:function(){Y(!1)}},c.createElement(I,{post:o,isVisible:p,hide:function(){f(!1)},showLoadingIndicator:i},c.createElement(y.a,{flexGrow:"0"},c.createElement(y.m,{onClick:n,ariaLabel:"More options"},c.createElement(K,null))))))),c.createElement(O,{onConfirm:g,isVisible:A,hide:M}),c.createElement(N.a,{onConfirm:h,isVisible:l,hide:d}),c.createElement(U.a,{onSubmit:v,isVisible:m,hide:S}))}))}))}))}))}))}))}))}))}))},Q=l()(q(),x.c,x.b,A.a,M.c,L.a)},"./src/components/post/footer/PostFooter.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return Kt})),n.d(t,"b",(function(){return Yt}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./src/WatchBounds.tsx"),u=n("./src/components/newsletter-v3/NewsletterV3Promo.tsx"),d=n("./src/components/post/EmbeddedPost.tsx"),m=n("./src/components/post/PostRecircItemV2.tsx"),p=n("./src/framework/design-system/components/index.ts"),f=n("./src/framework/design-system/type/Heading.tsx"),g=n("./src/framework/source/index.ts"),b=function(e){var t=e.posts,n=e.sourceName;return t.length?i.createElement(p.a,{marginTop:"24px",marginBottom:"40px"},i.createElement(p.a,{borderBottom:"BASE_LIGHTER",marginTop:"24px",marginBottom:"24px",paddingBottom:"16px",sm:{marginTop:"16px",paddingBottom:"12px"}},i.createElement(f.a,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},"More From Medium")),i.createElement(p.h,{alignItems:"flex-start"},t.map((function(e,t){return i.createElement(p.i,{key:"post-internal-link-".concat(t),size:{xs:12,sm:12,md:6,lg:3,xl:3}},i.createElement(p.a,{paddingBottom:"24px",maxWidth:"500px"},i.createElement(g.b,{source:{name:n,index:t}},i.createElement(m.b,{post:e}))))})))):null};function h(){var e=o()(["\n  fragment PostInternalLinks_post on Post {\n    id\n    internalLinks(paging: {limit: 8}) @include(if: $includePostInternalLinks) {\n      items {\n        ... on Post {\n          ...PostRecircItemV2_post\n        }\n      }\n    }\n  }\n  ","\n"]);return h=function(){return e},e}var v=s()(h(),m.a),E=function(e){var t,n=e.post,r=e.sourceName,o=(null==n||null===(t=n.internalLinks)||void 0===t?void 0:t.items)||[];return o&&0!==o.length?i.createElement(b,{posts:o,sourceName:r}):null},x=n("./src/components/broadcast-banner/useCdcMessaging.tsx"),y=n("./src/framework/style/index.ts"),O=i.createContext(!1),w=function(e){var t=Object(y.useCx)();return i.createElement("div",{className:t({padding:{xs:"16px 22px",sm:"16px 22px",md:"18px 24px",lg:"24px 30px",xl:"32px 40px"},marginBottom:"25px",backgroundColor:"#f4f4f4",borderLeft:"4px solid rgba(2, 184, 117, 1)"})},e.children)},_=n("./src/handlers/EmbeddedPostHandler.tsx"),S=(Object(l.c)((function(e){return{embeddedPostIds:e.config.embeddedPostIds}}))((function(e){var t=e.embeddedPostIds,n=null==t?void 0:t.coronavirus;return n?i.createElement(_.a,{postId:n},(function(e){return e?i.createElement(O.Provider,{value:!0},i.createElement(w,null,e)):null})):null})),n("./node_modules/@babel/runtime/helpers/extends.js")),j=n.n(S),P=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),C=n.n(P),k=n("./src/components/collection/package/TruncatedPostCard.tsx"),I=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),T=n("./src/components/post-listing/PostListingItemRecirc.tsx"),R=n("./src/framework/reporter/index.ts");function A(e){var t=e.posts,n=e.sourceName,r=i.useRef(null),o=Object(R.c)();return i.useEffect((function(){o.event("experiment.eligible",{experimentId:"57b820b82d68"})}),[]),0===t.length?null:i.createElement(p.a,{margin:"32px 0",md:{marginBottom:"0px"},ref:r},i.createElement(p.a,{marginBottom:"32px",borderBottom:"BASE_LIGHTER",paddingBottom:"8px"},i.createElement(f.a,{scale:"S"},"More From Medium")),i.createElement(p.h,{alignItems:"flex-start"},t.map((function(e,t){return i.createElement(p.i,{key:"recirc-".concat(t),size:{xs:12,sm:12,md:12,lg:4,xl:4}},i.createElement(g.b,{source:{name:n,index:t}},i.createElement(T.b,{post:e,ref:r})))}))))}function L(e,t){var n=Object(I.c)(e,t),r=C()(n,2),o=r[0],a=r[1];return[i.useCallback((function(e){!a.called&&e.isIntersecting&&o()}),[a]),a]}var M=n("./src/components/publisher/CardByline.tsx"),B=n("./src/framework/track/index.ts");function D(){var e=o()(["\n  fragment PostNextFiveStories_post on Post {\n    firstPublishedAt\n    pinnedAt\n  }\n"]);return D=function(){return e},e}function N(){var e=o()(["\n  query PostNextFiveStoriesUser($id: ID!, $from: String, $limit: PaginationLimit = 5) {\n    publisher: user(id: $id) {\n      ...PostNextFiveStories_Publisher\n    }\n  }\n  ","\n"]);return N=function(){return e},e}function U(){var e=o()(["\n  query PostNextFiveStoriesCollection($id: ID!, $from: String, $limit: PaginationLimit = 5) {\n    publisher: collection(id: $id) {\n      ...PostNextFiveStories_Publisher\n    }\n  }\n  ","\n"]);return U=function(){return e},e}function F(){var e=o()(["\n  fragment PostNextFiveStories_Publisher on Publisher {\n    __typename\n    id\n    homepagePostsConnection(paging: {limit: $limit, from: $from}) {\n      posts {\n        ...TruncatedPostCard_post\n      }\n    }\n    ...CardByline_publisher\n  }\n  ","\n  ","\n"]);return F=function(){return e},e}var H=s()(F(),k.b,M.c),V=s()(U(),H),z=s()(N(),H),G=i.forwardRef((function(e,t){var n,r,o,a=e.post,s=e.rootMargin,l=(null===(n=a.collection)||void 0===n?void 0:n.id)||"",c=null===(r=a.creator)||void 0===r?void 0:r.id,u=l||c;if(!u)return null;var d=function(e){var t=e.firstPublishedAt,n=e.pinnedAt;return e.collection?n?"P".concat(n):"L".concat(t):"".concat(t)}(a),m=L(l?V:z,{variables:{id:u,from:d}}),p=C()(m,2),f=p[0],g=p[1],b=g.called,h=g.loading,v=g.error,E=g.data,x=(E=void 0===E?{publisher:void 0}:E).publisher;if(Object(B.f)({onIntersect:f,target:t,disconnect:function(){return b},rootMargin:s},[b]),!b||h||v||!x)return null;var y=null==x||null===(o=x.homepagePostsConnection)||void 0===o?void 0:o.posts;if(!x||!y)return null;var O="Collection"===x.__typename;return i.createElement(i.Fragment,null,y.map((function(e,t){var n={publisher:x,post:e,hideAuthor:!O,isFirst:0===t,includeBottomDivider:t===y.length-1,index:t};return i.createElement(k.a,j()({key:e.id},n))})))})),W=i.forwardRef((function(e,t){var n=e.post,r=e.rootMargin,o=i.useState(!1),a=C()(o,2),s=a[0],l=a[1];return s||B.a.on("load",(function(){return l(!0)})),s?i.createElement(G,{post:n,ref:t,rootMargin:r}):null})),q=s()(D());function $(){var e=o()(["\n  query PostRecircQuery(\n    $postId: ID!\n    $includePostRecirc: Boolean!\n    $postRecircPaging: PaginationLimit!\n  ) {\n    post(id: $postId) {\n      id\n      ...PostRecirc_post\n    }\n  }\n  ","\n"]);return $=function(){return e},e}function K(){var e=o()(["\n  fragment PostRecirc_post on Post {\n    recirc(paging: {limit: $postRecircPaging}) @include(if: $includePostRecirc) {\n      items {\n        __typename\n        ... on Post {\n          ...Recirc_post\n        }\n        ... on SuggestedPost {\n          post {\n            __typename\n            ...Recirc_post\n          }\n          postSuggestionReasons {\n            reason\n            users {\n              name\n            }\n            topics {\n              name\n            }\n            collections {\n              name\n            }\n            tags {\n              name\n            }\n          }\n        }\n      }\n    }\n  }\n  ","\n"]);return K=function(){return e},e}function Y(){var e=o()(["\n  fragment Recirc_post on Post {\n    ...PostListingItemRecirc_post\n  }\n  ","\n"]);return Y=function(){return e},e}var Q=s()(Y(),T.a),X=s()(K(),Q),J=s()($(),X),Z=i.forwardRef((function(e,t){var n,r,o,a=e.postId,s=e.rootMargin,l=e.recircOptions,c=(null==l||null===(n=l.v1)||void 0===n?void 0:n.limit)||3,u=L(J,{variables:{postId:a,includePostRecirc:!0,postRecircPaging:c},ssr:!1}),d=C()(u,2),m=d[0],p=d[1],f=p.called,g=p.loading,b=p.error,h=p.data;Object(B.f)({onIntersect:m,target:t,disconnect:function(){return f},rootMargin:s},[f]);var v=null==h||null===(r=h.post)||void 0===r||null===(o=r.recirc)||void 0===o?void 0:o.items;return!f||g||b||!v?null:i.createElement(A,{posts:v,sourceName:"post_recirc"})})),ee=i.forwardRef((function(e,t){return i.createElement(Z,j()({},e,{ref:t}))})),te=Object(l.c)((function(e){return{recircOptions:e.config.recircOptions}}),null,null,{forwardRef:!0})(ee),ne=n("./src/framework/design-system/type/useTypeRules.ts"),re=n("./src/routes/Router.ts"),oe=n("./src/util/routes.ts");function ae(){var e=o()(["\n  fragment TagList_collection on Collection {\n    id\n    slug\n    domain\n  }\n"]);return ae=function(){return e},e}function se(){var e=o()(["\n  fragment TagList_tags on Tag {\n    id\n    displayTitle\n  }\n"]);return se=function(){return e},e}var ie={padding:0,margin:0},le={display:"inline-block",listStyleType:"none",marginRight:"8px",marginBottom:"8px"},ce=function(e){return{borderRadius:"3px",padding:"5px 10px",textDecoration:"none",color:e.baseColor.text.lighter,display:"block",background:e.baseColor.background.normal,lineHeight:"22px"}};function ue(e){var t=e.tags,n=e.collection,r=Object(y.useCx)(),o=Object(l.f)((function(e){return{authDomain:e.config.authDomain,isEntityRouter:e.client.routingEntity.type!==re.a.DEFAULT}})),a=o.authDomain,s=o.isEntityRouter,c=Object(ne.a)({name:"detail",scale:"S",color:"LIGHTER"});return t?i.createElement("ul",{className:r(ie)},t.map((function(e){if(!e.id)return null;var t=n&&!n.domain?Object(oe.J)(n,e.id,a):Object(oe.fc)(e.id,s);return i.createElement("li",{key:e.id,className:r(le)},i.createElement("a",{href:t,className:r([c,ce])},e.displayTitle))}))):null}var de=s()(se()),me=s()(ae()),pe=n("./src/components/post/bookmark/index.ts"),fe=n("./src/components/post/bookmark/PostPageBookmarkButton.tsx"),ge=n("./src/components/post/footer/CreatorActionOverflowPopover.tsx"),be=n("./src/components/post/footer/PostFooterSocialPopover.tsx"),he=n("./src/components/post/footer/actions/CollectionSubmission.tsx"),ve=n("./src/components/post/footer/actions/shared.ts"),Ee=n("./src/components/post/multivote/MultiVote.tsx"),xe=n("./src/components/responses/MobileHideSpan.tsx"),ye=n("./src/components/responses/ResponsesIconButton.tsx"),Oe=n("./src/components/session/WithFlag.tsx"),we=n("./src/components/social/ShareButtons.tsx"),_e=n("./src/components/susi/SusiClickable.tsx"),Se=n("./src/framework/source/SourceContext.tsx"),je=n("./src/util/hooks/useIsEligibleToViewNewResponses.tsx");function Pe(){var e=o()(["\n  fragment PostFooterActionsBar_post on Post {\n    id\n    visibility\n    isPublished\n    allowResponses\n    viewerClapCount\n    content(postMeteringOptions: $postMeteringOptions) {\n      isLockedPreviewOnly\n    }\n    creator {\n      id\n      isBlocking\n    }\n    collection {\n      id\n      viewerIsEditor\n    }\n    ...BookmarkButton_post\n    ...MultiVote_post\n    ...SusiClickable_post\n    ...ManageSubmission_post\n    ...CollectionSubmission_post\n    ...ShareButtons_post\n    ...ResponsesIconButton_post\n    ...CreatorActionOverflowPopover_post\n    ...PostFooterSocialPopover_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return Pe=function(){return e},e}var Ce=function(e){var t,n=e.post,r=e.setIsResponsesSidebarVisible,o=e.useSocialPopover,a=e.shouldHideResponsesText,s=void 0!==a&&a,l=e.shouldHideClapsText,c=void 0!==l&&l,u=n.isPublished,d=n.content,m=n.creator,f=n.collection,g=(d||{}).isLockedPreviewOnly,b=Object(je.a)(),h=i.createElement(Se.b,{source:{name:"post_actions_footer",susiEntry:"clap_footer"}},i.createElement(p.a,{display:"flex",flexDirection:"row"},i.createElement(p.a,{maxWidth:"155px"},b?i.createElement(i.Fragment,null,i.createElement(xe.b,null,i.createElement(Ee.a,{post:n,buttonStyle:"SUBTLE",hasDialog:!0,shouldShowResponsiveLabelText:!0,shouldHideClapsText:c})),i.createElement(xe.a,null,i.createElement(Ee.a,{post:n,buttonStyle:"SUBTLE_FOR_DESKTOP",hasDialog:!0,shouldHideClapsText:c}))):i.createElement(Ee.a,{post:n,buttonStyle:"OBVIOUS",hasDialog:!0,shouldHideClapsText:c})),i.createElement(p.a,{xs:{width:"15px"},sm:{width:"15px"},md:{width:"15px"},lg:{width:"25px"},xl:{width:"25px"}}),i.createElement(Se.b,{source:{name:"follow_footer",susiEntry:"follow_footer"}},i.createElement(ye.a,{responsesCount:null===(t=n.postResponses)||void 0===t?void 0:t.count,location:"footer",setIsResponsesSidebarVisible:r,allowResponses:n.allowResponses,postId:n.id,isLimitedState:n.isLimitedState,shouldHideResponsesText:s})))),v=i.createElement(Oe.a,{name:"enable_disregard_trunc_state_for_footer"},(function(e){return(e||!g)&&h})),E={post:n,source:{name:"post_actions_footer"}};return i.createElement(p.A,null,(function(e){var t=e.isVisible,r=e.show;return i.createElement(i.Fragment,null,t&&i.createElement(p.n,null),i.createElement(p.a,{display:"flex",justifyContent:"space-between",marginTop:b?"25px":"15px",print:{display:"none"}},v,i.createElement(p.a,{display:"flex",alignItems:"center"},u&&i.createElement(i.Fragment,null,o?i.createElement(p.a,{paddingRight:"6px"},i.createElement(be.a,E)):i.createElement(we.a,E),i.createElement(p.a,{flexGrow:"0",paddingRight:"8px"},i.createElement(Se.b,{source:{name:"post_actions_footer",susiEntry:"bookmark_footer"}},i.createElement(fe.a,{post:n})))),n&&m&&i.createElement(ge.a,{creator:m,post:n,collection:f,showLoadingIndicator:r}))))}))},ke=s()(Pe(),pe.b,Ee.b,_e.d,ve.b,he.c,we.b,ye.b,ge.b,be.b),Ie=n("./src/components/collection/CollectionAvatar.tsx"),Te=n("./src/components/collection/CollectionFollowButton.tsx"),Re=n("./src/components/session/WithViewer.tsx"),Ae=n("./src/components/session/useFlag.tsx"),Le=n("./src/components/user/UserAvatar.tsx"),Me=n("./src/components/user/UserFollowButton.tsx"),Be=n("./src/components/user/UserUnblockButton.tsx"),De=n("./src/framework/design-system/type/index.ts");function Ne(){var e=o()(["\n  fragment PostFooterByline_post on Post {\n    id\n    creator {\n      name\n      username\n      bio\n      id\n      isBlocking\n      ...UserAvatar_user\n      ...UserFollowButton_user\n    }\n    collection {\n      name\n      description\n      ...CollectionAvatar_collection\n      ...CollectionFollowButton_collection\n      ...collectionUrl_collection\n    }\n    ...CollectionFollowButton_post\n    ...UserFollowButton_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return Ne=function(){return e},e}var Ue=Le.c.XL,Fe=Le.c.XL+22,He=function(e){var t=e.creator,n=e.post,r=t.name,o=t.username,a=t.bio,s=void 0===a?"":a,l=t.id,c=t.isBlocking;return r&&o?i.createElement(Re.b,null,(function(e){return i.createElement(p.a,{marginBottom:"32px",position:"relative",minHeight:"".concat(Ue,"px")},i.createElement(p.a,{tag:"span",sm:{display:"flex",alignItems:"center",marginBottom:"24px"}},i.createElement(p.a,{position:"absolute",sm:{position:"relative",width:"".concat(Fe,"px")}},i.createElement(Le.d,{user:t,scale:"XL",link:!0})),i.createElement(p.a,{tag:"span"},i.createElement(p.a,{paddingLeft:"".concat(Fe,"px"),sm:{paddingLeft:"0"}},i.createElement(De.e,null,"Written by")),i.createElement(p.a,{paddingLeft:"".concat(Fe,"px"),display:"flex",marginBottom:"6px",sm:{paddingLeft:"0"}},i.createElement(p.a,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},i.createElement(De.c,{scale:"M"},i.createElement(p.m,{href:Object(oe.yc)(o)},r||o)),i.createElement(p.a,{sm:{display:"none"}},e&&c?i.createElement(Be.a,{targetUserId:l}):i.createElement(Me.a,{buttonSize:"SMALL",post:n,user:t})))))),i.createElement(p.a,{maxWidth:"555px",paddingLeft:"".concat(Fe,"px"),sm:{display:"block",paddingLeft:"0"}},i.createElement(p.a,{maxWidth:"450px"},i.createElement(De.b,{scale:"L"},s)),i.createElement(p.a,{display:"none",sm:{display:"block",marginTop:"24px"}},i.createElement(Me.a,{buttonSize:"SMALL",post:n,user:t}))))})):null},Ve=function(e){var t=e.collection,n=e.currentLocation,r=e.post,o=t.name,a=t.description,s=void 0===a?"":a;return i.createElement(p.a,{marginBottom:"32px",position:"relative",minHeight:"".concat(Ue,"px")},i.createElement(p.a,{tag:"span",sm:{display:"flex",alignItems:"center",marginBottom:"24px"}},i.createElement(p.a,{position:"absolute",sm:{position:"relative",width:"".concat(Fe,"px")}},i.createElement(Ie.a,{collection:t,size:Ue,link:!0})),i.createElement(p.a,{tag:"span"},i.createElement(p.a,{paddingLeft:"".concat(Fe,"px"),display:"flex",marginBottom:"6px",sm:{paddingLeft:"0"}},i.createElement(p.a,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},i.createElement(De.c,{scale:"M"},i.createElement(p.m,{href:Object(oe.K)(t,n)},o)),i.createElement(p.a,{sm:{display:"none"}},i.createElement(Te.a,{collection:t,post:r})))))),i.createElement(p.a,{maxWidth:"550px",paddingLeft:"".concat(Fe,"px"),sm:{display:"block",paddingLeft:"0"}},i.createElement(p.a,{maxWidth:"450px"},i.createElement(De.b,{scale:"L"},s)),i.createElement(p.a,{display:"none",sm:{display:"block",marginTop:"24px"}},i.createElement(Te.a,{collection:t,post:r}))))},ze=function(e){var t=e.collection,n=e.creator,r=e.post,o=e.currentLocation;return i.createElement(p.a,{paddingTop:"24px"},n.name&&n.username&&i.createElement(p.a,{display:"flex",flexDirection:"row"},i.createElement(p.a,{marginTop:"5px"},i.createElement(Le.d,{user:n,scale:"S",link:!0})),i.createElement(p.a,{marginLeft:"12px"},i.createElement(De.e,{scale:"S"},"Written by"),i.createElement(p.a,{display:"flex",flexDirection:"row"},i.createElement(De.c,{scale:"XS"},i.createElement(p.m,{href:Object(oe.yc)(n.username)},n.name||n.username)),i.createElement(p.a,{marginLeft:"12px"},i.createElement(Me.a,{buttonSize:"COMPACT",post:r,user:n}))),i.createElement(p.a,{paddingTop:"8px"},i.createElement(De.b,{scale:"M"},n.bio)))),t&&i.createElement(p.a,{paddingTop:"24px"},i.createElement(p.a,{display:"flex",flexDirection:"row"},i.createElement(Ie.a,{collection:t,size:40,link:!0}),i.createElement(p.a,{marginLeft:"12px"},i.createElement(p.a,{display:"flex",flexDirection:"row"},i.createElement(De.c,{scale:"XS"},i.createElement(p.m,{href:Object(oe.K)(t,o)},t.name)),i.createElement(p.a,{marginLeft:"12px"},i.createElement(Te.a,{collection:t,post:r,buttonSize:"COMPACT"}))),i.createElement(p.a,{paddingTop:"8px"},i.createElement(De.b,{scale:"M"},t.description||""))))))};var Ge=s()(Ne(),Ie.b,Te.b,Te.c,oe.L,Le.b,Me.b,Me.c),We=Object(l.c)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var t=e.currentLocation,n=e.post,r=n.creator,o=n.collection,a=!!Object(Ae.a)("enable_end_of_post_cleanup");return r?i.createElement(p.a,{marginTop:"25px",marginBottom:"25px",paddingTop:"32px",borderTop:"BASE_LIGHTER",print:{display:"none"},sm:{paddingTop:a?"0":"32px"}},i.createElement(p.a,{sm:{display:a?"none":"block"}},i.createElement(He,{creator:r,post:n}),o&&i.createElement(i.Fragment,null,i.createElement(p.a,{paddingTop:"32px"}),i.createElement(Ve,{collection:o,currentLocation:t,post:n}))),a&&i.createElement(p.a,{display:"none",sm:{display:"block"}},i.createElement(ze,{post:n,creator:r,collection:o,currentLocation:t}))):null})),qe=n("./src/components/publisher/auroraHooks.ts"),$e=n("./src/components/session/useViewer.tsx");function Ke(){var e=o()(["\n  fragment PostFooterBylineAurora_post on Post {\n    id\n    creator {\n      name\n      username\n      bio\n      id\n      isBlocking\n      ...UserFollowButton_user\n      ...auroraHooks_publisher\n    }\n    collection {\n      name\n      description\n      ...CollectionFollowButton_collection\n      ...collectionUrl_collection\n    }\n    ...UserFollowButton_post\n    ...CollectionFollowButton_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return Ke=function(){return e},e}var Ye=function(e){var t=e.post,n=t.creator,r=t.collection,o=Object(l.f)((function(e){return e.navigation.currentLocation})),a=Object($e.b)(),s={xs:"XS",sm:"XS",md:"S",lg:"S",xl:"S"},c={display:"flex",justifyContent:"space-between",alignItems:"center"},u=Object(qe.d)(t.creator),d=r?Object(oe.K)(r,o):Object(oe.yc)((null==n?void 0:n.username)||""),m="More from ".concat(r?r.name:null==n?void 0:n.name),f=r?r.description:null==n?void 0:n.bio,g=null;n&&(g=a&&n.isBlocking?i.createElement(Be.a,{buttonSize:"SMALL",targetUserId:n.id}):i.createElement(Me.a,{buttonSize:"SMALL",post:t,user:n}));var b=r?i.createElement(Te.a,{buttonSize:"SMALL",collection:r,post:t}):g;return i.createElement(p.a,{print:{display:"none"}},(null==n?void 0:n.name)&&(null==n?void 0:n.username)&&!u&&i.createElement(p.a,{paddingBottom:"30px"},i.createElement(p.o,{size:"inset"},i.createElement(p.a,j()({},c,{borderTop:"BASE_LIGHTER",paddingTop:"33px"}),i.createElement(p.a,null,i.createElement(De.e,{scale:"S"},"Written by"),i.createElement(De.c,{scale:s,clamp:1},i.createElement(p.m,{href:Object(oe.yc)(n.username)},n.name||n.username))),g),n.bio&&i.createElement(p.a,{paddingTop:"6px",paddingRight:"168px"},i.createElement(De.b,{scale:"M"},n.bio)))),(r||u)&&i.createElement(p.a,{paddingTop:"32px",paddingBottom:"4px",backgroundColor:"BASE_LIGHT"},i.createElement(p.o,{size:"inset"},i.createElement(p.a,c,i.createElement(De.c,{scale:s,clamp:1},i.createElement(p.m,{href:d},m)),b),f&&i.createElement(p.a,{paddingTop:"5px",paddingRight:"168px"},i.createElement(De.b,{scale:"M"},f)))))},Qe=s()(Ke(),Te.b,Te.c,oe.L,Me.b,Me.c,qe.a);function Xe(){var e=o()(["\n  fragment PostFooterCollectionButton_collection on Collection {\n    id\n    name\n    ...collectionUrl_collection\n  }\n  ","\n"]);return Xe=function(){return e},e}var Je=function(e){var t=e.collection,n=Object(l.f)((function(e){return{currentLocation:e.navigation.currentLocation}}),l.d).currentLocation;return i.createElement(i.Fragment,null,(null==t?void 0:t.name)&&i.createElement(p.a,{maxWidth:"100%",textAlign:"center"},i.createElement(p.b,{buttonStyle:"STRONG",href:Object(oe.K)(t,n)},"Read more from ",t.name)))},Ze=s()(Xe(),oe.L);function et(){var e=o()(["\n  fragment PostFooterResponsesButton_post on Post {\n    id\n    responsesCount\n    isLimitedState\n  }\n"]);return et=function(){return e},e}var tt=s()(et()),nt=Object(l.c)((function(e){return{authDomain:e.config.authDomain}}))((function(e){var t=e.authDomain,n=e.post,r=e.setIsResponsesSidebarVisible,o=Object(y.useCx)(),a=Object(R.c)(),s=Object(g.d)(),l=n.id,c=n.responsesCount,u=n.isLimitedState,d=c&&c>0;var m=Object(je.a)(),f=m?"See responses":"See responses (".concat(c||0,")"),b=d?f:"Write the first response";return i.createElement(p.m,{href:u||m?" ":Object(oe.Ub)(t,l),onClick:function(e){return u?function(e){e.preventDefault()}(e):m?(a.event("responses.viewAllClicked",{postId:n.id,source:s}),function(e){e.preventDefault(),r(!0)}(e)):void 0}},i.createElement("span",{className:o((function(e){return{color:e.baseColor.text.light,opacity:u?.25:1,cursor:u?"not-allowed":"pointer"}}))},i.createElement(p.a,{sm:{display:d?"block":"none"},border:u?"BASE_NORMAL":"ACCENT_NORMAL",borderRadius:"4px",padding:"20px",textAlign:"center"},u?i.createElement(p.z,{darkTheme:!0,popoverRenderFn:function(){return i.createElement(p.a,{padding:"8px",whiteSpace:"nowrap"},"This feature is temporarily disabled.")},placement:"top",targetDistance:15},b):i.createElement("span",{className:o((function(e){return{color:e.accentColor.text.normal}}))},b))))})),rt=n("./src/svg/creative-commons-by-21px.svg"),ot=n("./src/svg/creative-commons-nc-21px.svg"),at=n("./src/svg/creative-commons-nd-21px.svg"),st=n("./src/svg/creative-commons-sa-21px.svg"),it=n("./src/svg/creative-commons-zero-21px.svg"),lt=function(e){return{fill:e.baseColor.fill.lighter}};function ct(e,t){return{PUBLIC_DOMAIN:{title:"Public Domain",link:"https://creativecommons.org/publicdomain/mark/1.0/"},CC_40_ZERO:{title:"Creative Commons copyright waiver",link:"http://creativecommons.org/publicdomain/zero/1.0/"},CC_40_BY:{title:"Creative Commons Attribution 4.0 International",link:"http://creativecommons.org/licenses/by/4.0/"},CC_40_BY_ND:{title:"Creative Commons Attribution-NoDerivatives 4.0 International",link:"https://creativecommons.org/licenses/by-nd/4.0/"},CC_40_BY_SA:{title:"Creative Commons Attribution-ShareAlike 4.0 International",link:"https://creativecommons.org/licenses/by-sa/4.0/"},CC_40_BY_NC:{title:"Creative Commons Attribution-NonCommercial 4.0 International",link:"https://creativecommons.org/licenses/by-nc/4.0/"},CC_40_BY_NC_ND:{title:"Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International",link:"https://creativecommons.org/licenses/by-nc-nd/4.0/"},CC_40_BY_NC_SA:{title:"Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International",link:"https://creativecommons.org/licenses/by-nc-sa/4.0/"}}[e][t]}var ut=function(e){var t=e.license,n=Object(y.useCx)();return t?i.createElement(p.a,null,i.createElement(p.a,{display:"inline-block"},i.createElement(De.b,{scale:"S"},i.createElement(p.z,{darkTheme:!0,placement:"top",popoverRenderFn:function(){return i.createElement(p.a,{width:"300px",padding:"8px"},function(e){switch(e){case"PUBLIC_DOMAIN":return"Except where otherwise noted, this work is in the public domain.";case"CC_40_ZERO":return"Except where otherwise noted, this work has been dedicated to the public domain using CC0.";default:return"Except where otherwise noted, this work is licensed under a ".concat(ct(e,"title")," license by the author.")}}(t))}},i.createElement(p.m,{disableSourceParam:!0,href:ct(t,"link"),linkStyle:"SUBTLE",inline:!0,target:"_blank"},function(e){switch(e){case"PUBLIC_DOMAIN":return"Public domain.";case"CC_40_ZERO":return"No rights reserved";default:return"Some rights reserved"}}(t))))),i.createElement(p.a,{display:"inline-block"},i.createElement(De.b,{scale:"S"},"CC_40_ZERO"===t&&i.createElement("span",null," by the author."),i.createElement("span",{className:n(lt),style:{marginLeft:"5px",verticalAlign:"text-bottom"}},function(e){return{CC_40_ZERO:i.createElement(it.a,null),CC_40_BY:i.createElement(rt.a,null),CC_40_BY_ND:i.createElement(i.Fragment,null,i.createElement(rt.a,null),i.createElement(at.a,null)),CC_40_BY_SA:i.createElement(i.Fragment,null,i.createElement(rt.a,null),i.createElement(st.a,null)),CC_40_BY_NC:i.createElement(i.Fragment,null,i.createElement(rt.a,null),i.createElement(ot.a,null)),CC_40_BY_NC_ND:i.createElement(i.Fragment,null,i.createElement(rt.a,null),i.createElement(ot.a,null),i.createElement(at.a,null)),CC_40_BY_NC_SA:i.createElement(i.Fragment,null,i.createElement(rt.a,null),i.createElement(ot.a,null),i.createElement(st.a,null)),PUBLIC_DOMAIN:i.createElement(i.Fragment,null)}[e]}(t))))):null},dt=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),mt=n.n(dt),pt=n("./node_modules/@apollo/react-components/lib/react-components.esm.js");function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){mt()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(){var e=o()(["\n  fragment ThanksTo_post on Post {\n    id\n    creator {\n      id\n    }\n    collaborators {\n      id\n      user {\n        id\n        name\n      }\n      state\n    }\n  }\n"]);return bt=function(){return e},e}function ht(){var e=o()(["\n  mutation setCollaboratorState($postId: ID!, $collaboratorId: ID!, $isVisible: Boolean!) {\n    setCollaboratorState(postId: $postId, collaboratorId: $collaboratorId, isVisible: $isVisible)\n  }\n"]);return ht=function(){return e},e}var vt=s()(ht()),Et=s()(bt()),xt=function(e){var t=e.viewer,n=e.post,r=e.collaborator,o=r.user,a=n.creator;return o&&t&&a&&(t.id===a.id||t.id===o.id)?i.createElement(pt.a,{mutation:vt,optimisticResponse:{setCollaboratorState:!0},update:function(e,t){var o,a=e.readFragment({id:"Post:".concat(n.id),fragment:Et});e.writeFragment({id:"Post:".concat(n.id),fragment:Et,data:gt({},a,{collaborators:(null!==(o=null==a?void 0:a.collaborators)&&void 0!==o?o:[]).map((function(e){return e.id===r.id?gt({},e,{state:"visible"===e.state?"hidden":"visible"}):e}))})})}},(function(e){return"hidden-collab"===r.state&&a.id===t.id?"(declined)":i.createElement(i.Fragment,null,"(",i.createElement(p.m,{onClick:function(t){e({variables:{postId:n.id,collaboratorId:o.id,isVisible:"visible"!==r.state}})}},"visible"===r.state?"hide":"show"),")")})):null},yt=function(e){var t=e.index,n=e.total;return t===n-1?"":n>=3?t===n-2?", and ":", ":" and "},Ot=function(e){var t=e.post,n=t.collaborators,r=t.creator;return r&&n&&n.length?i.createElement(Re.b,null,(function(e){return i.createElement(p.a,null,i.createElement(De.b,{scale:"S"},"Thanks to ",n.map((function(o,a){var s=o.user;return s?i.createElement(i.Fragment,{key:o.id},s.name,function(e,t,n){return e&&(e.id===t.id||n&&e.id===n.id)}(e,r,s)&&i.createElement(i.Fragment,null," ",i.createElement(xt,{viewer:e,post:t,collaborator:o})),i.createElement(yt,{index:a,total:n.length})):null})),". "))})):null};function wt(){var e=o()(["\n  fragment TranslatedBy_post on Post {\n    creator {\n      name\n      username\n    }\n    translationSourcePost {\n      id\n      title\n      mediumUrl\n    }\n  }\n"]);return wt=function(){return e},e}var _t=s()(wt()),St=function(e){var t=e.post,n=t.creator;if(!t.translationSourcePost||!n)return null;var r=i.createElement(p.m,{linkStyle:"SUBTLE",inline:!0,href:Object(oe.Gb)(t.translationSourcePost)},"original"),o=i.createElement(p.m,{linkStyle:"SUBTLE",inline:!0,href:Object(oe.yc)(n.username||"")},n.name);return i.createElement(p.a,null,i.createElement(De.b,{scale:"S"},"Translated from ",r," by ",o,"."))},jt=n("./src/components/sequence/SequenceCoverImage.tsx");function Pt(){var e=o()(["\n  fragment SequencePreview_sequence on Sequence {\n    sequenceId\n    ...SequenceCoverImage_sequence\n    description\n    eyebrow\n    slug\n    tabletImage {\n      id\n    }\n    title\n    hideIndex\n  }\n  ","\n"]);return Pt=function(){return e},e}var Ct={textTransform:"uppercase"};function kt(e){var t=e.sequence,n=Object(y.useCx)();return i.createElement(p.a,{display:"flex",flexDirection:"column",marginBottom:"56px"},i.createElement(p.a,{display:"flex",marginTop:"48px",xs:{marginTop:"32px",display:"flex"}},i.createElement(p.a,{flexShrink:"0",borderRadius:"4px",overflow:"hidden",md:{display:"none"}},i.createElement(jt.b,{sequence:t,width:200,height:265})),i.createElement(p.a,{flexShrink:"0",borderRadius:"4px",overflow:"hidden",display:"none",md:{display:"block"},xs:{display:"none !important"}},i.createElement(jt.b,{sequence:t,width:180,height:238})),i.createElement(p.a,{flexShrink:"0",borderRadius:"4px",overflow:"hidden",display:"none",xs:{display:"block"}},i.createElement(jt.b,{sequence:t,width:98,height:130})),i.createElement(p.a,{display:"flex",flexDirection:"column",marginLeft:"32px",justifyContent:"center",xs:{marginLeft:"20px",display:"flex"}},i.createElement("div",{className:n(Ct)},i.createElement(De.e,null,"About this ",t.eyebrow||"Collection")),t.title&&t.slug&&i.createElement(p.d,{href:Object(oe.Qb)(t.slug)},i.createElement(p.a,null,i.createElement(De.g,{scale:"L"},t.title))),t.description&&i.createElement(p.a,{marginTop:"14px",xs:{display:"none"},maxWidth:"680px"},i.createElement(De.b,{scale:"L"},t.description)))),t.description&&i.createElement(p.a,{display:"none",marginTop:"29px",xs:{display:"block"}},i.createElement(De.b,{scale:"M"},t.description)))}var It=s()(Pt(),jt.a);function Tt(){var e=o()(["\n  query SequencePostRecircQuery(\n    $postId: ID!\n    $includeSequenceRecirc: Boolean!\n    $postRecircPaging: PaginationLimit!\n  ) {\n    post(id: $postId) {\n      id\n      ...SequencePostRecirc_post\n    }\n  }\n  ","\n"]);return Tt=function(){return e},e}function Rt(){var e=o()(["\n  fragment SequencePostRecirc_post on Post {\n    elevateRecirc(paging: {limit: $postRecircPaging}) @include(if: $includeSequenceRecirc) {\n      items {\n        __typename\n        ... on Post {\n          ...PostListingItemRecirc_post\n        }\n      }\n    }\n  }\n  ","\n"]);return Rt=function(){return e},e}var At=s()(Rt(),T.a),Lt=s()(Tt(),At),Mt=i.forwardRef((function(e,t){var n,r,o,a=e.postId,s=e.rootMargin,l=e.recircOptions,c=(null==l||null===(n=l.v1)||void 0===n?void 0:n.limit)||3,u=L(Lt,{variables:{postId:a,includeSequenceRecirc:!0,postRecircPaging:c},ssr:!1}),d=C()(u,2),m=d[0],p=d[1],f=p.called,g=p.loading,b=p.error,h=p.data;Object(B.f)({onIntersect:m,target:t,disconnect:function(){return f},rootMargin:s},[f]);var v=null==h||null===(r=h.post)||void 0===r||null===(o=r.elevateRecirc)||void 0===o?void 0:o.items;return!f||g||b||!v?null:i.createElement(A,{posts:v,sourceName:"elevate_recirc"})})),Bt=i.forwardRef((function(e,t){return i.createElement(Mt,j()({},e,{ref:t}))})),Dt=Object(l.c)((function(e){return{recircOptions:e.config.recircOptions}}),null,null,{forwardRef:!0})(Bt),Nt=n("./src/components/style/BaseThemeProvider.tsx"),Ut=n("./src/components/style/UnboundFellThemeProvider.tsx"),Ft=n("./src/framework/track/IntersectionPresenter.tsx"),Ht=n("./src/styles/colors.ts"),Vt=n("./src/styles/flex.ts"),zt=n("./src/svg/unlisted-19px.svg"),Gt=n("./src/util/hooks/postRecircHooks.tsx");function Wt(){var e=o()(["\n  fragment PostFooter_post on Post {\n    id\n    visibility\n    license\n    isPublished\n    allowResponses\n    layerCake\n    newsletterId\n    collection {\n      viewerIsEditor\n      newsletterV3 {\n        isSubscribed\n        showPromo\n      }\n      ...auroraHooks_publisher\n      ...NewsletterV3Promo_publisher\n      ...PostFooter_collection\n      ...TagList_collection\n    }\n    creator {\n      ...auroraHooks_publisher\n    }\n    sequence {\n      sequenceId\n      ...SequencePreview_sequence\n    }\n    tags {\n      id\n      ...TagList_tags\n    }\n    topics {\n      topicId\n      name\n    }\n    viewerClapCount\n    ...PostFooterActionsBar_post\n    ...PostFooterByline_post\n    ...PostFooterBylineAurora_post\n    ...PostFooterResponsesButton_post\n    ...PostInternalLinks_post\n    ...PostNextFiveStories_post\n    ...PostRecirc_post\n    ...SequencePostRecirc_post\n    ...ThanksTo_post\n    ...TranslatedBy_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return Wt=function(){return e},e}function qt(){var e=o()(["\n  fragment PostFooter_collection on Collection {\n    name\n    description\n    ...PostFooterCollectionButton_collection\n  }\n  ","\n"]);return qt=function(){return e},e}var $t=function(e){return{color:e.baseColor.text.normal}},Kt=(t.c=Object(l.c)((function(e){return{clapsPerPost:e.multiVote.clapsPerPost,isAmp:e.config.isAmp,embeddedPostIds:e.config.embeddedPostIds}}),{})((function(e){var t=e.post,n=e.isAmp,r=e.setIsResponsesSidebarVisible,o=e.embeddedPostIds,a=e.hideRecirc,s=t.id,l=t.layerCake,m=t.tags,f=t.topics,g=t.sequence,b=t.visibility,h=t.isPublished,v=t.allowResponses,O=t.collection,w=i.useRef(null),_=i.useRef(null),S=Object(y.useCx)(),j=i.useContext(c.b),P=Object(Ae.a)("enable_aurora_recirc"),C=Object(Gt.a)()||n,k=function(e,t,n,r){var o=Object(x.a)({tier:r,topics:n,tags:t,flag:"enable_more_on_coronavirus"}).shouldShowCdcMessaging;return!(!(null==e?void 0:e.coronavirus)||!o)}(o,null==m?void 0:m.map((function(e){return e.id})),null==f?void 0:f.map((function(e){return e.name})),l),I=Object(qe.b)(O||t.creator);i.useEffect((function(){var e=I?w:_;j.updateWatchedBounds("footer",e,{type:"footer"})}),[_,w]);var T,R=!!Object(Ae.a)("enable_end_of_post_cleanup"),A=Object(je.a)(),L=null==O?void 0:O.newsletterV3;return i.createElement("div",{ref:_},i.createElement(Se.b,{source:{susiEntry:"follow_footer",name:"follow_footer"}},i.createElement("div",{className:S([(T=!h||k,{marginTop:"40px",clear:"both",marginBottom:T?"40px":void 0}),Object(Vt.a)({flexDirection:"column",justifyContent:"center"})])},i.createElement(p.o,{size:"inset"},!h&&i.createElement(p.a,{height:"20px",borderTop:"BASE_LIGHTER"}),(null==O?void 0:O.newsletterV3)&&(null==L?void 0:L.showPromo)&&((null==O?void 0:O.viewerIsEditor)||!(null==L?void 0:L.isSubscribed))&&i.createElement(u.a,{publisher:O}),i.createElement(p.a,{display:"flex",flexWrap:"wrap"},h&&i.createElement(Ot,{post:t}),h&&i.createElement(St,{post:t})),i.createElement(p.a,{display:"flex",flexWrap:"wrap",alignItems:"center"},"UNLISTED"===b&&i.createElement(p.a,null,i.createElement(De.b,{scale:"S"},i.createElement(zt.a,null)," ",i.createElement("span",{className:S($t)},"Unlisted"),"ALL_RIGHTS_RESERVED"!==t.license&&i.createElement("span",{style:{marginLeft:"5px",marginRight:"5px"}},"|"))),t.license&&"ALL_RIGHTS_RESERVED"!==t.license&&i.createElement(ut,{license:t.license})),I&&i.createElement(i.Fragment,null,!n&&i.createElement(p.a,{marginTop:"25px",paddingBottom:"25px"},i.createElement(Ce,{post:t,setIsResponsesSidebarVisible:r,useSocialPopover:!0,shouldHideResponsesText:!0,shouldHideClapsText:!0})),m&&m.length>0&&i.createElement(p.a,{marginTop:"25px",paddingBottom:"40px"},i.createElement(ue,{tags:m,collection:t.collection}))),!I&&i.createElement(i.Fragment,null,m&&m.length>0&&i.createElement(p.a,{marginTop:"25px"},i.createElement(ue,{tags:m,collection:t.collection})),!n&&i.createElement(Ce,{post:t,setIsResponsesSidebarVisible:r})),I&&!O&&i.createElement(p.a,{paddingTop:"40px"})),i.createElement("div",{ref:w},i.createElement(p.o,{size:"inset"},h&&i.createElement(i.Fragment,null,!I&&i.createElement(We,{post:t}),v&&i.createElement(p.a,{borderTop:I?void 0:"BASE_LIGHTER",paddingTop:I?void 0:"25px",print:{display:"none"},sm:{borderTop:R?"NONE":"BASE_LIGHTER",paddingTop:R?"0":"25px"}},!A&&i.createElement(nt,{post:t,setIsResponsesSidebarVisible:r}))),!I&&k&&i.createElement(p.a,{paddingTop:"25px"},i.createElement(Ft.a,{ref:_,rootMargin:"0px 0px 1000px 0px"},i.createElement(d.a,{postId:null==o?void 0:o.coronavirus,sourcePost:t})))),I&&i.createElement(i.Fragment,null,i.createElement(Ye,{post:t}),i.createElement(p.a,{backgroundColor:"BASE_LIGHT",print:{display:"none"},paddingTop:"25px"},i.createElement(p.o,{size:"full"},i.createElement(W,{post:t,ref:_,rootMargin:"0px 0px 2000px 0px"}),O&&i.createElement(p.a,{marginBottom:"96px",marginTop:"40px"},i.createElement(Je,{collection:O}))))),!a&&h&&!k&&i.createElement(Nt.b,null,i.createElement(Ut.a,null,i.createElement(p.a,{background:Ht.B,marginTop:P?void 0:"64px",print:{display:"none"}},i.createElement(p.o,null,g&&!g.hideIndex&&!I&&i.createElement(kt,{sequence:g}),!C&&!I&&(g?i.createElement(Dt,{ref:_,postId:s,rootMargin:"0px 0px 2000px 0px",post:t}):i.createElement(te,{ref:_,postId:s,rootMargin:"0px 0px 2000px 0px",post:t})),C&&(!I||P&&I)&&i.createElement(E,{post:t,sourceName:"post_internal_links"})))))))))})),s()(qt(),Ze)),Yt=s()(Wt(),qe.a,u.b,Kt,ke,Ge,Qe,tt,v,q,X,At,It,de,me,Et,_t)},"./src/components/post/footer/PostFooterSocialPopover.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return C}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n.n(c),d=n("./src/components/social/ShareButton.tsx"),m=n("./src/components/ui/PopoverMenu.tsx"),p=n("./src/framework/design-system/components/index.ts"),f=n("./src/framework/design-system/type/index.ts"),g=n("./src/framework/source/index.ts"),b=n("./src/framework/style/index.ts"),h=n("./src/store/actions/navigation.ts"),v=n("./src/svg/link-slim.svg");function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var x=u.a.createElement("g",{fillRule:"evenodd"},u.a.createElement("path",{d:"M15.6 5a.42.42 0 0 0 .17-.3.42.42 0 0 0-.12-.33l-2.8-2.79a.5.5 0 0 0-.7 0l-2.8 2.8a.4.4 0 0 0-.1.32c0 .12.07.23.16.3h.02a.45.45 0 0 0 .57-.04l2-2V10c0 .28.23.5.5.5s.5-.22.5-.5V2.93l2.02 2.02c.08.07.18.12.3.13.11.01.21-.02.3-.08v.01"}),u.a.createElement("path",{d:"M18 7h-1.5a.5.5 0 0 0 0 1h1.6c.5 0 .9.4.9.9v10.2c0 .5-.4.9-.9.9H6.9a.9.9 0 0 1-.9-.9V8.9c0-.5.4-.9.9-.9h1.6a.5.5 0 0 0 .35-.15A.5.5 0 0 0 9 7.5a.5.5 0 0 0-.15-.35A.5.5 0 0 0 8.5 7H7a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h11a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2"})),y=function(e){return u.a.createElement("svg",E({width:25,height:25},e),x)},O=n("./src/util/hooks/useToggle.tsx");function w(){var e=o()(["\n  fragment PostFooterSocialPopover_post on Post {\n    id\n    mediumUrl\n    title\n    ...ShareButton_post\n  }\n  ","\n"]);return w=function(){return e},e}function _(e){return{fill:e.baseColor.fill.normal}}function S(e){return{fill:e.baseColor.fill.lighter}}var j={height:"16px",width:"16px",marginLeft:"4px"},P=function(e){var t,n=e.post,r=e.source,o=n.mediumUrl,a=n.title,i=Object(h.u)(),l=Object(b.useTheme)(),u=Object(b.useCx)(),E=Object(O.a)(!1),x=s()(E,3),w=x[0],P=x[1],C=x[2],k=(null==l||null===(t=l.breakpoints)||void 0===t?void 0:t.md)||728;return c.createElement(g.b,{source:r},c.createElement(p.p,{isVisible:w,hide:C,popoverRenderFn:function(){return c.createElement(m.a,null,c.createElement(m.b,{paddingTopBottom:"8px"},c.createElement(d.a,{socialPlatform:"TWITTER",buttonStyle:"LINK_INLINE_SHORT_LABEL",post:n})),c.createElement(m.b,{paddingTopBottom:"8px"},c.createElement(d.a,{socialPlatform:"FACEBOOK",buttonStyle:"LINK_INLINE_SHORT_LABEL",post:n})),c.createElement(m.b,{paddingTopBottom:"8px"},c.createElement(d.a,{socialPlatform:"LINKEDIN",buttonStyle:"LINK_INLINE_SHORT_LABEL",post:n})),o&&c.createElement(m.b,{paddingTopBottom:"8px"},c.createElement(p.m,{onClick:function(){navigator.clipboard.writeText(o),i({message:"Link copied",toastStyle:"MESSAGE",duration:2e3}),C()}},c.createElement(p.a,{display:"inline-block"},c.createElement(v.a,{className:u([S,j])}),c.createElement(p.a,{display:"inline-block",marginLeft:"20px"},c.createElement(f.b,{scale:"S"},"Copy link"))))))}},c.createElement(p.m,{onClick:function(){var e,t=null===(e=window)||void 0===e?void 0:e.innerWidth;navigator&&navigator.share&&o&&t&&t<k?navigator.share({url:o,text:a||"",title:a||""}):P()},ariaLabel:"Share Post"},c.createElement(y,{className:u(_)}))))},C=l()(w(),d.b)},"./src/components/post/footer/actions/CollectionSubmission.tsx":function(e,t,n){"use strict";n.d(t,"c",(function(){return I})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return B}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),l=n("./node_modules/graphql-tag/src/index.js"),c=n.n(l),u=n("./node_modules/react/index.js"),d=n("./src/components/collection/CollectionAvatar.tsx"),m=n("./src/components/post/footer/actions/PubStatusMutations.tsx"),p=n("./src/components/post/footer/actions/shared.ts"),f=n("./src/components/session/WithViewer.tsx"),g=n("./src/components/ui/PopoverMenu.tsx"),b=n("./src/framework/design-system/components/index.ts"),h=n("./src/framework/design-system/type/index.ts"),v=n("./src/framework/track/index.ts");function E(){var e=s()(["\n  fragment CollectionSubmission_post on Post {\n    id\n    ...CollectionSubmissionPopover_post\n    ...CollectionSubmissionPopoverMenuItem_post\n  }\n  ","\n  ","\n"]);return E=function(){return e},e}function x(){var e=s()(["\n  fragment CollectionSubmissionPopover_post on Post {\n    id\n    isPublished\n    creator {\n      id\n    }\n  }\n"]);return x=function(){return e},e}function y(){var e=s()(["\n  fragment CollectionSubmissionPopoverMenuItem_post on Post {\n    id\n    statusForCollection\n    isPublished\n    creator {\n      id\n    }\n  }\n"]);return y=function(){return e},e}function O(){var e=s()(["\n  query CollectionSubmissionPopoverQuery {\n    viewer {\n      id\n      writerCollections {\n        ...CollectionSubmissionPopoverQuery_collection\n      }\n      adminCollections {\n        ...CollectionSubmissionPopoverQuery_collection\n      }\n    }\n  }\n  ","\n"]);return O=function(){return e},e}function w(){var e=s()(["\n  fragment CollectionSubmissionPopoverQuery_collection on Collection {\n    ...CollectionSubmissionOption_collection\n    ...ManageSubmission_collection\n  }\n  ","\n  ","\n"]);return w=function(){return e},e}function _(){var e=s()(["\n  fragment CollectionSubmissionOption_collection on Collection {\n    id\n    name\n    slug\n    ...CollectionAvatar_collection\n  }\n  ","\n"]);return _=function(){return e},e}var S=c()(_(),d.b),j=c()(w(),S,p.a),P=c()(O(),j),C=c()(y()),k=c()(x()),I=c()(E(),k,C),T=[{name:"",value:"No publication",content:u.createElement(b.a,{height:"32px",display:"flex",alignItems:"center",marginLeft:"5px"},u.createElement(h.b,{scale:"M",color:"DARKER"},"No publication"))}];function R(e){var t=e.collection;return t.name?u.createElement(b.a,{display:"flex",justifyContent:"space-between",width:"200px",alignItems:"center",marginLeft:"5px"},u.createElement(h.b,{scale:"M",color:"DARKER"},t.name),u.createElement(d.a,{collection:t,size:32})):null}function A(e){var t=e.show,n=e.post,r=n.statusForCollection,a=n.isPublished,s=u.useState(!1),i=o()(s,2),l=i[0],c=i[1];return l||v.a.on("load",(function(){return c(!0)})),!r&&a&&l?u.createElement(M,{post:n,noQueryReturn:null},(function(e){var r=e.loading,o=e.error,a=e.data;if(r||o)return null;var s=(void 0===a?{viewer:void 0}:a).viewer,i=n.creator;if(!s||!i||s.id!==i.id)return null;var l=s.adminCollections,c=s.writerCollections;return 0===l.length&&0===c.length?null:u.createElement(g.b,null,u.createElement(b.m,{onClick:t},"Add to publication"))})):null}function L(e){var t=e.isVisible,n=e.hide;return u.createElement(b.g,{isVisible:t,hide:n,withCloseButton:!0},u.createElement(b.a,{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",maxWidth:"480px"},u.createElement(h.c,{scale:"M",tag:"h3"},"Story submitted"),u.createElement(b.a,{paddingTop:"8px",paddingBottom:"24px"},u.createElement(h.f,{scale:"M"},"We’ll email you when the publication editor has reviewed your submission.")),u.createElement(b.b,{buttonStyle:"OBVIOUS",onClick:n},"OK")))}var M=function(e){var t=e.children,n=e.post,r=e.noQueryReturn,o=n.creator;return o?u.createElement(f.b,null,(function(e){return e?e.id!==o.id?r:u.createElement(i.b,{query:P,ssr:!1},(function(e){var n=e.loading,r=e.error,o=e.data;return t({loading:n,error:r,data:o})})):r})):r},B=function(e){var t=e.post,n=e.hide,r=e.showLoadingIndicator,a=e.isVisible,s=e.children,i=u.useState(!1),l=o()(i,2),c=l[0],d=l[1],p=u.useState(""),f=o()(p,2),g=f[0],E=f[1],x=Object(m.a)(t),y=Object(m.c)(t);return c||v.a.on("load",(function(){return d(!0)})),t.isPublished&&c?u.createElement(b.A,null,(function(e){var o=e.isVisible,i=e.hide,l=e.show;return u.createElement(u.Fragment,null,u.createElement(L,{hide:i,isVisible:o}),u.createElement(M,{post:t,noQueryReturn:s},(function(e){var o=e.loading,i=e.error,c=e.data;if(o||i)return s;var d=(void 0===c?{viewer:void 0}:c).viewer,m=t.creator;if(!d||!m||d.id!==m.id)return s;var p=d.adminCollections,f=d.writerCollections;if(0===p.length&&0===f.length)return s;var v=p.concat(f).filter((function(e){return!!e&&!!e.slug&&!!e.name})).map((function(e){return{name:e.slug||"",value:e.name||"",content:u.createElement(R,{collection:e})}})),O=T.concat(v),w=p.reduce((function(e,t){return e[t.slug||""]=t,e}),{}),_=f.reduce((function(e,t){return e[t.slug||""]=t,e}),{}),S="";if(g){var j=O.find((function(e){return e.name===g}));j&&(S=j.value)}return u.createElement(b.p,{placement:"top",hide:n,isVisible:a,popoverRenderFn:function(){return u.createElement(b.a,{padding:"20px",width:"280px",display:"flex",flexDirection:"column"},u.createElement(h.b,{scale:"M",color:"DARKER"},"Add your story to a publication:"),u.createElement(b.a,{marginTop:"10px"},u.createElement(b.r,{value:S,onChange:E,options:O})),u.createElement(b.a,{display:"flex",marginTop:"20px"},u.createElement(h.b,{scale:"M",color:"LIGHTER"},g in w?u.createElement(b.b,{onClick:function(){var e=w[g];n(),r(),x(e).then((function(){window.location.reload(!1)}))},buttonStyle:"OBVIOUS"},"Add story"):u.createElement(b.b,{onClick:function(){var e=_[g];y(e),n(),l()},disabled:!g},"Submit")),u.createElement(b.a,{marginLeft:"10px"},u.createElement(h.b,{scale:"M",color:"LIGHTER"},u.createElement(b.m,{onClick:n},u.createElement(b.a,{padding:"10px"},"Cancel"))))),u.createElement(b.a,{marginTop:"10px"},u.createElement(h.b,{scale:"M"},"This story will be automatically submitted to the publication. When you submit your story, the publication's editors will be notified and will be able to edit your story.")))}},s)})))})):s}},"./src/components/post/footer/actions/PubStatusMutations.tsx":function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),l=n("./node_modules/graphql-tag/src/index.js"),c=n.n(l),u=n("./node_modules/react/index.js"),d=n("./src/schema-types/globalTypes.ts");function m(){var e=s()(["\n  mutation RejectPostFromPubMutation(\n    $postId: ID!\n    $collectionSlug: String!\n    $status: CollectionPostStatus!\n  ) {\n    manageCollectionPostStatus(postId: $postId, collectionSlug: $collectionSlug, status: $status) {\n      __typename\n      id\n      statusForCollection\n      collection {\n        id\n      }\n      pendingCollection {\n        id\n        slug\n      }\n    }\n  }\n"]);return m=function(){return e},e}function p(){var e=s()(["\n  mutation ManageCollectionPostStatusMutation(\n    $postId: ID!\n    $collectionSlug: String!\n    $status: CollectionPostStatus!\n  ) {\n    manageCollectionPostStatus(postId: $postId, collectionSlug: $collectionSlug, status: $status) {\n      __typename\n      id\n      statusForCollection\n      pendingCollection {\n        id\n        slug\n      }\n    }\n  }\n"]);return p=function(){return e},e}var f=c()(p()),g=c()(m()),b=function(e){var t=Object(i.d)(f),n=o()(t,1)[0];return Object(u.useCallback)((function(t){return n({variables:{collectionSlug:(null==t?void 0:t.slug)||"",postId:e.id,status:d.c.PENDING},optimisticResponse:{manageCollectionPostStatus:{__typename:"Post",id:e.id,statusForCollection:d.c.PENDING,pendingCollection:t}}})}),[e])},h=function(e){var t=Object(i.d)(f),n=o()(t,1)[0];return Object(u.useCallback)((function(t){return n({variables:{collectionSlug:(null==t?void 0:t.slug)||"",postId:e.id,status:d.c.APPROVED}})}),[e])},v=function(e){var t=Object(i.d)(g),n=o()(t,1)[0];return Object(u.useCallback)((function(t){return n({variables:{collectionSlug:(null==t?void 0:t.slug)||"",postId:e.id,status:d.c.REMOVED},optimisticResponse:{manageCollectionPostStatus:{__typename:"Post",id:e.id,statusForCollection:null,collection:null,pendingCollection:null}}}).then((function(e){if(e.errors&&e.errors[0])throw e.errors[0];return e}))}),[e])}},"./src/components/post/footer/actions/shared.ts":function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./src/components/collection/CollectionAvatar.tsx");function l(){var e=o()(["\n  fragment ManageSubmission_post on Post {\n    id\n    statusForCollection\n    collection {\n      ...ManageSubmission_collection\n    }\n    pendingCollection {\n      ...ManageSubmission_collection\n    }\n    creator {\n      id\n    }\n  }\n  ","\n"]);return l=function(){return e},e}function c(){var e=o()(["\n  fragment ManageSubmission_collection on Collection {\n    name\n    viewerIsEditor\n    creator {\n      id\n    }\n    ...CollectionAvatar_collection\n  }\n  ","\n"]);return c=function(){return e},e}var u=function(e,t){return t&&e.creator&&t.id===e.creator.id},d=function(e,t){var n=e.pendingCollection||e.collection;return n&&n.creator&&t.id===n.creator.id},m=function(e){var t=e.pendingCollection||e.collection;return t&&t.viewerIsEditor},p=s()(c(),i.b),f=s()(l(),p)},"./src/components/post/grouping/ParagraphLayoutGrouping.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return j})),n.d(t,"b",(function(){return P})),n.d(t,"e",(function(){return C}));var r=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),l=n.n(i),c=n("./node_modules/graphql-tag/src/index.js"),u=n.n(c),d=n("./node_modules/react/index.js"),m=n("./src/components/post/grouping/ParagraphStyleGrouping.tsx"),p=n("./src/framework/design-system/index.ts"),f=n("./src/framework/style/index.ts"),g=n("./src/schema-types/globalTypes.ts"),b=n("./src/util/richText.ts");function h(){var e=s()(["\n  fragment ParagraphLayoutGrouping_customStyleSheet on CustomStyleSheet {\n    id\n    ...ParagraphStyleGrouping_customStyleSheet\n  }\n  ","\n"]);return h=function(){return e},e}function v(){var e=s()(["\n  fragment ParagraphLayoutGrouping_privateNote on Note {\n    ...ParagraphStyleGrouping_privateNote\n  }\n  ","\n"]);return v=function(){return e},e}function E(){var e=s()(["\n  fragment ParagraphLayoutGrouping_highlight on Quote {\n    ...ParagraphStyleGrouping_highlight\n  }\n  ","\n"]);return E=function(){return e},e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var y={clear:"both"},O={clear:"both",width:"100%"},w=function(e){var t={boxSizing:"border-box",margin:"0 auto",width:"100%"};return"INSET_CENTER"===e?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{maxWidth:"700px",padding:"0 1.25em"}):t},_=d.memo((function(e){var t=e.layoutGroup,n=e.postBodyInserts,r=e.customStyleSheet,o=e.isEmbedded,a=Object(f.useCx)(),s=t.styleGroups[0].paragraphViewModels[0].richTextStyle,i=t.styleGroups.map((function(e,t){return d.createElement(m.a,{key:t,styleGroup:e,postBodyInserts:n,customStyleSheet:r})}));if(Object(b.j)(s)||o)return d.createElement(d.Fragment,null,i);switch(t.effectiveLayout){case"OUTSET_CENTER":case"OUTSET_ROW":return d.createElement("div",{className:a(y)},d.createElement(p.h,{size:{xs:"full",sm:"full",md:"full",lg:"outset",xl:"outset"}},i));case"FULL_WIDTH":return d.createElement("div",{className:a(O)},i);default:return"FULL_PAGE"===s?d.createElement(p.h,{size:"inset"},i):d.createElement("div",{className:a(w(t.effectiveLayout))},i)}})),S=u()(E(),m.c),j=u()(v(),m.d),P=u()(h(),m.b),C=function(e){var t=[],n=[];e.forEach((function(e){var r=k(e.paragraphStyle,e.paragraph.layout),a=t[t.length-1];if(a&&a.effectiveLayout===r)n.push(e);else{if(a){var s,i=Object(m.e)(n);(s=a.styleGroups).push.apply(s,o()(i))}n.length=0,n.push(e),t.push({styleGroups:[],effectiveLayout:r})}}));var r=t[t.length-1];if(r){var a,s=Object(m.e)(n);(a=r.styleGroups).push.apply(a,o()(s))}return t},k=function(e,t){switch(t){case g.g.INSET_LEFT:case g.g.OUTSET_LEFT:return"IMG"===e||"IFRAME"===e?g.g.INSET_CENTER:t;case g.g.OUTSET_ROW_CONTINUE:return g.g.OUTSET_ROW;default:return t||g.g.INSET_CENTER}}},"./src/components/post/multivote/ClapMutation.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return x}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),l=n.n(i),c=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),u=n("./node_modules/graphql-tag/src/index.js"),d=n.n(u),m=n("./node_modules/react/index.js"),p=n("./src/components/post/multivote/MultiVoteCount.tsx");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(){var e=l()(["\n  mutation ClapMutation($targetPostId: ID!, $userId: ID!, $numClaps: Int!) {\n    clap(targetPostId: $targetPostId, userId: $userId, numClaps: $numClaps) {\n      ...ClapMutation_post\n    }\n  }\n  ","\n"]);return b=function(){return e},e}function h(){var e=l()(["\n  fragment ClapMutation_post on Post {\n    __typename\n    id\n    clapCount\n    viewerClapCount\n    ...MultiVoteCount_post\n  }\n  ","\n"]);return h=function(){return e},e}var v=d()(h(),p.b),E=d()(b(),v),x=function(){var e=Object(c.d)(E),t=s()(e,1)[0];return Object(m.useCallback)((function(e,n,r){return t({variables:{targetPostId:e.id,userId:n,numClaps:r},optimisticResponse:{clap:g({__typename:"Post"},e,{clapCount:e.clapCount+r,viewerClapCount:(e.viewerClapCount||0)+r})},update:function(t,n){var o,a=null==n||null===(o=n.data)||void 0===o?void 0:o.clap;if(a){var s=t.readFragment({id:"Post:".concat(a.id),fragment:v,fragmentName:"ClapMutation_post"});t.writeFragment({id:"Post:".concat(a.id),fragment:v,fragmentName:"ClapMutation_post",data:g({},s,{clapCount:e.clapCount+r,viewerClapCount:(e.viewerClapCount||0)+r})})}}})}),[])}},"./src/components/post/multivote/MultiVote.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return Ve})),n.d(t,"a",(function(){return ze}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n.n(c),d=n("./node_modules/react-redux/es/index.js"),m=n("./src/components/post/multivote/ClapMutation.tsx"),p=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),f=n.n(p),g=n("./src/framework/design-system/components/index.ts"),b=n("./src/framework/style/index.ts"),h=n("./src/styles/colors.ts"),v=n("./src/styles/mediaTypes.ts");function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var x={top:"0",left:"0",width:"60px",height:"60px"},y={top:"-2px",left:"0",width:"25px",height:"36px"},O=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({position:"absolute",pointerEvents:"none"},e?x:y)},w={"0%":{opacity:"0",transform:"scale(1)"},"32%":{opacity:"1"},"100%":{opacity:"0",transform:"scale(1.5)"}},_={"0%":{opacity:"0",transform:"scale(1)"},"32%":{opacity:"1",transform:"scale(1.3)"},"100%":{opacity:"0",transform:"scale(1.6)"}},S=function(e){return f()({animation:"370ms ease-out 1 ".concat(e)},Object(v.c)("reduce"),{animationDuration:"0.1ms"})},j=function(e){var t=e?30:13;return{position:"absolute",top:"".concat(48,"%"),left:"".concat(-5,"px"),transformOrigin:"".concat(t+2+3,"px"),width:"".concat(2,"px"),height:"".concat(2,"px"),borderRadius:"50%",backgroundColor:h.j}},P=function(e){var t=e?30:13;return{position:"absolute",top:"".concat(44,"%"),left:"".concat(-9,"px"),transformOrigin:"".concat(t+6+3,"px"),width:"0",height:"0",borderTop:"2px solid transparent",borderBottom:"2px solid transparent",borderLeft:"".concat(6,"px solid ").concat(h.f)}};function C(e){var t=e.isLarge,n=e.offset,r=e.onBurstEnd,o=Object(b.useCx)(),a=o(O(t));return c.createElement(g.C,{keyframes:{dotKeyframesName:w,triangleKeyframesName:_}},(function(e){for(var s=e.dotKeyframesName,i=e.triangleKeyframesName,l=[],u=[],d=0;d<5;d++){var m=72*d+n;l.push(c.createElement("div",{key:m,className:"".concat(o(j(t))),style:{transform:"rotate(".concat(m,"deg)")}})),u.push(c.createElement("div",{key:m,className:"".concat(o(P(t))),style:{transform:"rotate(".concat(m+13,"deg)")}}))}return c.createElement("div",{className:a},c.createElement("div",{className:"".concat(a," ").concat(o(S(s))),onAnimationEnd:function(){return r(n)}},l),c.createElement("div",{className:"".concat(a," ").concat(o(S(i)))},u))}))}var k=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),I=n.n(k),T=n("./node_modules/@babel/runtime/helpers/extends.js"),R=n.n(T),A=n("./src/styles/breakpoints.ts"),L=n("./src/svg/clap-25px.svg");function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var B=u.a.createElement("g",{fillRule:"evenodd"},u.a.createElement("path",{d:"M13.74 1l.76 2.97.76-2.97zM16.82 4.78l1.84-2.56-1.43-.47zM10.38 2.22l1.84 2.56-.41-3.03zM22.38 22.62a5.11 5.11 0 0 1-3.16 1.61l.49-.45c2.88-2.89 3.45-5.98 1.69-9.21l-1.1-1.94-.96-2.02c-.31-.67-.23-1.18.25-1.55a.84.84 0 0 1 .66-.16c.34.05.66.28.88.6l2.85 5.02c1.18 1.97 1.38 5.12-1.6 8.1M9.1 22.1l-5.02-5.02a1 1 0 0 1 .7-1.7 1 1 0 0 1 .72.3l2.6 2.6a.44.44 0 0 0 .63-.62L6.1 15.04l-1.75-1.75a1 1 0 1 1 1.41-1.41l4.15 4.15a.44.44 0 0 0 .63 0 .44.44 0 0 0 0-.62L6.4 11.26l-1.18-1.18a1 1 0 0 1 0-1.4 1.02 1.02 0 0 1 1.41 0l1.18 1.16L11.96 14a.44.44 0 0 0 .62 0 .44.44 0 0 0 0-.63L8.43 9.22a.99.99 0 0 1-.3-.7.99.99 0 0 1 .3-.7 1 1 0 0 1 1.41 0l7 6.98a.44.44 0 0 0 .7-.5l-1.35-2.85c-.31-.68-.23-1.19.25-1.56a.85.85 0 0 1 .66-.16c.34.06.66.28.88.6L20.63 15c1.57 2.88 1.07 5.54-1.55 8.16a5.62 5.62 0 0 1-5.06 1.65 9.35 9.35 0 0 1-4.93-2.72zM13 6.98l2.56 2.56c-.5.6-.56 1.41-.15 2.28l.26.56-4.25-4.25a.98.98 0 0 1-.12-.45 1 1 0 0 1 .29-.7 1.02 1.02 0 0 1 1.41 0zm8.89 2.06c-.38-.56-.9-.92-1.49-1.01a1.74 1.74 0 0 0-1.34.33c-.38.29-.61.65-.71 1.06a2.1 2.1 0 0 0-1.1-.56 1.78 1.78 0 0 0-.99.13l-2.64-2.64a1.88 1.88 0 0 0-2.65 0 1.86 1.86 0 0 0-.48.85 1.89 1.89 0 0 0-2.67-.01 1.87 1.87 0 0 0-.5.9c-.76-.75-2-.75-2.7-.04a1.88 1.88 0 0 0 0 2.66c-.3.12-.61.29-.87.55a1.88 1.88 0 0 0 0 2.66l.62.62a1.88 1.88 0 0 0-.9 3.16l5.01 5.02c1.6 1.6 3.52 2.64 5.4 2.96a7.16 7.16 0 0 0 1.18.1c1.03 0 2-.25 2.9-.7A5.9 5.9 0 0 0 23 23.24c3.34-3.34 3.08-6.93 1.74-9.17l-2.87-5.04z"})),D=function(e){return u.a.createElement("svg",M({width:29,height:29},e),B)};function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var U=u.a.createElement("path",{d:"M28.86 17.34l-3.64-6.4c-.3-.43-.71-.73-1.16-.8a1.12 1.12 0 0 0-.9.21c-.62.5-.73 1.18-.32 2.06l1.22 2.6 1.4 2.45c2.23 4.09 1.51 8-2.15 11.66a9.6 9.6 0 0 1-.8.71 6.53 6.53 0 0 0 4.3-2.1c3.82-3.82 3.57-7.87 2.05-10.39zm-6.25 11.08c3.35-3.35 4-6.78 1.98-10.47L21.2 12c-.3-.43-.71-.72-1.16-.8a1.12 1.12 0 0 0-.9.22c-.62.49-.74 1.18-.32 2.06l1.72 3.63a.5.5 0 0 1-.81.57l-8.91-8.9a1.33 1.33 0 0 0-1.89 1.88l5.3 5.3a.5.5 0 0 1-.71.7l-5.3-5.3-1.49-1.49c-.5-.5-1.38-.5-1.88 0a1.34 1.34 0 0 0 0 1.89l1.49 1.5 5.3 5.28a.5.5 0 0 1-.36.86.5.5 0 0 1-.36-.15l-5.29-5.29a1.34 1.34 0 0 0-1.88 0 1.34 1.34 0 0 0 0 1.89l2.23 2.23L9.3 21.4a.5.5 0 0 1-.36.85.5.5 0 0 1-.35-.14l-3.32-3.33a1.33 1.33 0 0 0-1.89 0 1.32 1.32 0 0 0-.39.95c0 .35.14.69.4.94l6.39 6.4c3.53 3.53 8.86 5.3 12.82 1.35zM12.73 9.26l5.68 5.68-.49-1.04c-.52-1.1-.43-2.13.22-2.89l-3.3-3.3a1.34 1.34 0 0 0-1.88 0 1.33 1.33 0 0 0-.4.94c0 .22.07.42.17.61zm14.79 19.18a7.46 7.46 0 0 1-6.41 2.31 7.92 7.92 0 0 1-3.67.9c-3.05 0-6.12-1.63-8.36-3.88l-6.4-6.4A2.31 2.31 0 0 1 2 19.72a2.33 2.33 0 0 1 1.92-2.3l-.87-.87a2.34 2.34 0 0 1 0-3.3 2.33 2.33 0 0 1 1.24-.64l-.14-.14a2.34 2.34 0 0 1 0-3.3 2.39 2.39 0 0 1 3.3 0l.14.14a2.33 2.33 0 0 1 3.95-1.24l.09.09c.09-.42.29-.83.62-1.16a2.34 2.34 0 0 1 3.3 0l3.38 3.39a2.17 2.17 0 0 1 1.27-.17c.54.08 1.03.35 1.45.76.1-.55.41-1.03.9-1.42a2.12 2.12 0 0 1 1.67-.4 2.8 2.8 0 0 1 1.85 1.25l3.65 6.43c1.7 2.83 2.03 7.37-2.2 11.6zM13.22.48l-1.92.89 2.37 2.83-.45-3.72zm8.48.88L19.78.5l-.44 3.7 2.36-2.84zM16.5 3.3L15.48 0h2.04L16.5 3.3z",fillRule:"evenodd"}),F=function(e){return u.a.createElement("svg",N({width:33,height:33,viewBox:"0 0 33 33"},e),U)},H=n("./src/svg/clap-filled-25px.svg");function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var z=u.a.createElement("g",{fillRule:"evenodd"},u.a.createElement("path",{d:"M13.74 1l.76 2.97.76-2.97zM18.63 2.22l-1.43-.47-.4 3.03zM11.79 1.75l-1.43.47 1.84 2.56zM24.47 14.3L21.45 9c-.29-.43-.69-.7-1.12-.78a1.16 1.16 0 0 0-.91.22c-.3.23-.48.52-.54.84l.05.07 2.85 5c1.95 3.56 1.32 6.97-1.85 10.14a8.46 8.46 0 0 1-.55.5 5.75 5.75 0 0 0 3.36-1.76c3.26-3.27 3.04-6.75 1.73-8.91M14.58 10.89c-.16-.83.1-1.57.7-2.15l-2.5-2.49c-.5-.5-1.38-.5-1.88 0-.18.18-.27.4-.33.63l4.01 4z"}),u.a.createElement("path",{d:"M17.81 10.04a1.37 1.37 0 0 0-.88-.6.81.81 0 0 0-.64.15c-.18.13-.71.55-.24 1.56l1.43 3.03a.54.54 0 1 1-.87.61L9.2 7.38a.99.99 0 1 0-1.4 1.4l4.4 4.4a.54.54 0 1 1-.76.76l-4.4-4.4L5.8 8.3a.99.99 0 0 0-1.4 0 .98.98 0 0 0 0 1.39l1.25 1.24 4.4 4.4a.54.54 0 0 1 0 .76.54.54 0 0 1-.76 0l-4.4-4.4a1 1 0 0 0-1.4 0 .98.98 0 0 0 0 1.4l1.86 1.85 2.76 2.77a.54.54 0 0 1-.76.76L4.58 15.7a.98.98 0 0 0-1.4 0 .99.99 0 0 0 0 1.4l5.33 5.32c3.37 3.37 6.64 4.98 10.49 1.12 2.74-2.74 3.27-5.54 1.62-8.56l-2.8-4.94z"})),G=function(e){return u.a.createElement("svg",V({width:29,height:29},e),z)};function W(){return(W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var q=u.a.createElement("g",{fillRule:"evenodd"},u.a.createElement("path",{d:"M29.58 17.1l-3.85-6.78c-.37-.54-.88-.9-1.44-.99a1.5 1.5 0 0 0-1.16.28c-.42.33-.65.74-.7 1.2v.01l3.63 6.37c2.46 4.5 1.67 8.8-2.33 12.8-.27.27-.54.5-.81.73a7.55 7.55 0 0 0 4.45-2.26c4.16-4.17 3.87-8.6 2.21-11.36zm-4.83.82l-3.58-6.3c-.3-.44-.73-.74-1.19-.81a1.1 1.1 0 0 0-.89.2c-.64.51-.75 1.2-.33 2.1l1.83 3.86a.6.6 0 0 1-.2.75.6.6 0 0 1-.77-.07l-9.44-9.44c-.51-.5-1.4-.5-1.9 0a1.33 1.33 0 0 0-.4.95c0 .36.14.7.4.95l5.6 5.61a.6.6 0 1 1-.84.85l-5.6-5.6-.01-.01-1.58-1.59a1.35 1.35 0 0 0-1.9 0 1.35 1.35 0 0 0 0 1.9l1.58 1.59 5.6 5.6a.6.6 0 0 1-.84.86L4.68 13.7c-.51-.51-1.4-.51-1.9 0a1.33 1.33 0 0 0-.4.95c0 .36.14.7.4.95l2.36 2.36 3.52 3.52a.6.6 0 0 1-.84.85l-3.53-3.52a1.34 1.34 0 0 0-.95-.4 1.34 1.34 0 0 0-.95 2.3l6.78 6.78c3.72 3.71 9.33 5.6 13.5 1.43 3.52-3.52 4.2-7.13 2.08-11.01zM11.82 7.72c.06-.32.21-.63.46-.89a1.74 1.74 0 0 1 2.4 0l3.23 3.24a2.87 2.87 0 0 0-.76 2.99l-5.33-5.33zM13.29.48l-1.92.88 2.37 2.84zM21.72 1.36L19.79.5l-.44 3.7zM16.5 3.3L15.48 0h2.04z"})),$=function(e){return u.a.createElement("svg",W({width:33,height:33},e),q)};function K(){return(K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Y=u.a.createElement("path",{d:"M20.13 8.11l-5.61 5.61-5.6-5.61-.81.8 5.61 5.61-5.61 5.61.8.8 5.61-5.6 5.61 5.6.8-.8-5.6-5.6 5.6-5.62",fillRule:"evenodd"}),Q=function(e){return u.a.createElement("svg",K({width:29,height:29},e),Y)},X=n("./src/util/hooks/useInterval.tsx"),J=n("./node_modules/exenv/index.js"),Z=n.n(J).a.canUseDOM?c.useLayoutEffect:c.useEffect,ee=n("./src/util/useragent.ts");function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re={S:c.createElement(L.a,{"aria-label":"clap"}),M:c.createElement(D,{"aria-label":"clap"}),L:c.createElement(F,{"aria-label":"clap"})},oe={S:c.createElement(H.a,{"aria-label":"clap"}),M:c.createElement(G,{"aria-label":"clap"}),L:c.createElement($,{"aria-label":"clap"})},ae={"0%":{transform:"scale(1)",opacity:1},"70%":{transform:"scale(1.4)",opacity:0},"100%":{opacity:0}},se={left:"0",height:"100%",position:"absolute",top:"0",width:"100%"},ie=function(e){var t;return t={backgroundColor:e.backgroundColor,border:"1px solid ".concat(e.baseColor.border.lighter),borderRadius:"50%",display:"flex",alignItems:"center",height:"60px",position:"relative",width:"60px"},f()(t,Object(v.c)("no-preference"),{transition:"border-color 150ms ease"}),f()(t,":hover",{borderColor:e.baseColor.border.dark}),t},le=function(e){return{border:"1px solid ".concat(e.baseColor.border.dark)}},ce={transform:"translateX(-35px)"},ue=f()({transform:"translateX(0)"},Object(v.c)("no-preference"),{transition:"transform .2s ".concat("cubic-bezier(.25,0,.6,1.4)")}),de=f()({},":hover + .".concat("multi-vote-undo-revealed"),ce),me=function(e){var t;return t={},f()(t,A.sm(e),{display:"none"}),f()(t,"border","none"),f()(t,"cursor","pointer"),f()(t,"fill",e.baseColor.fill.lighter),f()(t,"left","4px"),f()(t,"outline","none"),f()(t,"padding","0"),f()(t,"position","absolute"),f()(t,"transition","transform .3s ".concat("cubic-bezier(.25,0,.6,1.4)"," 1s")),f()(t,":hover",ce),f()(t,":focus",{fill:e.baseColor.fill.dark}),f()(t,Object(v.c)("reduce"),{transitionDuration:"0.1ms !important"}),t},pe=function(e,t){var n,r,o=t.baseColor.fill;return n=o.lighter,{fill:r=o.normal,":focus":{fill:e?r:n},":hover":{fill:e?r:n}}},fe=function(){return{opacity:.25,cursor:"not-allowed"}},ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(){return ne({padding:0,outline:0,border:0,userSelect:"none",cursor:"pointer","> svg":{pointerEvents:"none"},":active":{borderStyle:e?"solid":"none"}},t?de:null,{"-webkit-user-select":"none"})}},be=!1;function he(e){var t=e.callback,n=e.ms,r=void 0===n?300:n,o=e.callImmediately,a=void 0===o||o,i=c.useState(!1),l=s()(i,2),u=l[0],d=l[1];Object(X.a)(t,u?r:null);var m=c.useCallback((function(e){"touchstart"===e.type&&(be=!0),("mousedown"!==e.type||!be&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.userAgent;return 0===e.button&&!(Object(ee.c)(t)&&e.ctrlKey)}(e))&&(a&&t(),d(!0))})),p=c.useCallback((function(){d(!1)}));return Z((function(){if(u)return document.addEventListener("mouseup",p),function(){return document.removeEventListener("mouseup",p)}}),[u]),{onMouseDown:m,onTouchStart:m,onTouchEnd:p}}function ve(e){var t=e.pulseOnHover,n=void 0===t||t,r=e.children,o=Object(b.useCx)();return c.createElement(g.C,{keyframes:{pulseAnimation:ae}},(function(e){var t,a=e.pulseAnimation;return c.createElement("div",{className:o([ie].concat(n?(t=a,function(e){return f()({},Object(v.c)("no-preference"),{"::before":ne({background:"\n      radial-gradient(circle, ".concat(e.baseColor.border.darker," 60%, transparent 70%)\n    "),borderRadius:"50%",content:'""',display:"block",zIndex:0},se),":hover::before":{animation:"".concat(t," 2000ms infinite cubic-bezier(.1,.12,.25,1)")}})}):le))},r)}))}function Ee(e){var t=e.isSuppressed,n=e.onClick,r=Object(b.useCx)();return c.createElement("button",{className:"".concat(r([me].concat(t?ue:[]))).concat(t?"":" multi-vote-undo-revealed"),onClick:n},c.createElement(Q,null))}function xe(e){var t=e.canUndo,n=void 0!==t&&t,r=e.isCircle,o=void 0!==r&&r,a=e.isFilled,s=void 0!==a&&a,i=e.isDisabled,l=void 0!==i&&i,u=e.isUndoSuppressed,d=void 0!==u&&u,m=e.scale,p=void 0===m?"L":m,g=e.onClickAndHold,h=e.onUndo,E=Object(b.useCx)(),x=o?function(e){return function(t){var n=pe(e,t);return ne({alignItems:"center",background:t.backgroundColor,borderRadius:"50%",display:"flex",justifyContent:"center",zIndex:2},se,{},n,f()({},Object(v.c)("no-preference"),{transition:"fill ".concat(200,"ms ease")}))}}(l):function(e){return function(t){return pe(e,t)}}(l),y=he({callback:g,ms:200}),O=s||l?oe[p]:re[p];return g?c.createElement(c.Fragment,null,c.createElement("button",R()({className:E([ge(o,n),x])},y),O),n&&c.createElement(Ee,{onClick:h,isSuppressed:d})):c.createElement("div",{className:E([ge(o),x].concat(I()(l?[fe]:[])))},O)}function ye(e){var t=e.canUndo,n=e.isCircle,r=e.isFilled,o=e.isUndoSuppressed,a=e.disableReason,s=e.scale,i=e.onClickAndHold,l=e.onUndo,u=e.shouldHideClapsText,d={isFilled:r,scale:s},m={onClickAndHold:i},p=!!a;return p||u?c.createElement(g.z,{darkTheme:!0,popoverRenderFn:function(){return c.createElement(g.a,{padding:"8px",whiteSpace:"nowrap"},a||"Clap")},placement:"top",targetDistance:15,hideOnClick:!0},c.createElement(xe,R()({isDisabled:p},d,{onClickAndHold:p?void 0:i}))):n?c.createElement(ve,{pulseOnHover:!r},c.createElement(xe,R()({isCircle:!0,canUndo:t,isUndoSuppressed:o,onUndo:l},d,m))):c.createElement(xe,R()({},d,m))}var Oe=n("./src/components/post/multivote/MultiVoteCount.tsx"),we={"0%":{transform:"matrix(0.97, 0, 0, 1, 0, 12)",opacity:"0"},"20%":{transform:"matrix(0.99, 0, 0, 1, 0, 2)",opacity:".7"},"40%":{transform:"matrix(1, 0, 0, 1, 0, -1)",opacity:"1"},"70%":{transform:"matrix(1, 0, 0, 1, 0, 0)",opacity:"1"},"100%":{transform:"matrix(1, 0, 0, 1, 0, 0)",opacity:"1"}},_e={"0%":{opacity:"1",transform:"translateY(0px)"},"10%":{opacity:"1",transform:"translateY(-3px)"},"100%":{opacity:"0",transform:"translateY(-50px)"}},Se={"0%":{transform:"scale(1)"},"15%":{transform:"scale(1.1)"},"100%":{transform:"scale(1)"}},je=function(e){return function(t){return f()({backgroundColor:t.baseColor.fill.normal,bottom:"FAR"===e?"85px":"39px",color:t.backgroundColor,borderRadius:"50%",fontSize:"15px",height:"35px",left:"FAR"===e?"12px":"-4px",lineHeight:"35px",position:"absolute",textAlign:"center",width:"35px"},Object(v.c)("reduce"),{animationDuration:"0.1ms !important"})}},Pe=function(e,t){var n=e.current;n&&(n.style.animation=t,n.scrollTop)};function Ce(e){var t=e.clappedAt,n=e.count,r=e.onFloatEnd,o=e.placement,a=Object(b.useCx)(),i=c.useState(t),l=s()(i,2),u=l[0],d=l[1],m=t!==u,p=c.useRef({enter:"",exit:"",pop:""}),f=c.useRef(null),h=c.useCallback((function(e){f.current=e,e&&Pe(f,"".concat(p.current.enter," ").concat("400ms ease-out"))}),[]);function v(e){var t=p.current;e.animationName===t.enter||e.animationName===t.pop?Pe(f,"".concat(t.exit," ").concat("400ms ease-out 500ms")):e.animationName===t.exit&&r()}return m&&(Pe(f,""),Pe(f,"".concat(p.current.pop," ").concat("500ms")),d(t)),c.createElement(g.C,{keyframes:{enter:we,exit:_e,pop:Se}},(function(e){return p.current=e,c.createElement("div",{ref:h,className:a([je(o)]),onAnimationEnd:v},"+".concat(n))}))}var ke={"0%":{transform:"scale(1)"},"50%":{transform:"scale(1.1)"},"100%":{transform:"scale(1)"}};function Ie(e){var t=e.isPopping,n=void 0!==t&&t,r=e.onPopEnd,o=e.children,a=Object(b.useCx)();return c.createElement(g.C,{keyframes:{popAnimation:ke}},(function(e){var t,s=e.popAnimation;return c.createElement("div",{className:n?a((t=s,f()({animation:"".concat(t," 500ms 1")},Object(v.c)("reduce"),{animationDuration:"0.1ms"}))):"",onAnimationEnd:r},o)}))}var Te=n("./src/components/session/useViewer.tsx"),Re=n("./src/components/style/BaseThemeProvider.tsx"),Ae=n("./src/components/susi/SusiClickable.tsx"),Le=n("./src/framework/reporter/index.ts"),Me=n("./src/framework/source/index.ts"),Be=n("./src/store/actions/multiVote.ts"),De=n("./src/util/post/claps.ts"),Ne=n("./src/util/routes.ts");function Ue(){var e=o()(["\n  fragment MultiVote_post on Post {\n    id\n    clapCount\n    creator {\n      id\n      ...SusiClickable_user\n    }\n    viewerClapCount\n    isPublished\n    ...SusiClickable_post\n    collection {\n      id\n      slug\n    }\n    isLimitedState\n    ...MultiVoteCount_post\n  }\n  ","\n  ","\n  ","\n"]);return Ue=function(){return e},e}var Fe={SUBTLE:"S",SUBTLE_PADDED:"M",OBVIOUS:"L",SUBTLE_FOR_DESKTOP:"L"},He=function(e){var t,n=e.post,r=e.buttonStyle,o=e.hasDialog,a=e.shouldShowResponsiveLabelText,i=void 0!==a&&a,l=e.shouldHideClapsText,u=void 0!==l&&l,p=Object(m.b)(),f=Object(Te.b)(),b=null!==(t=null==f?void 0:f.id)&&void 0!==t?t:"",h=Object(d.f)((function(e){return e.multiVote.clapsPerPost})),v=Object(d.e)(),E=c.useCallback((function(e){return v(Object(Be.d)(e))}),[v]),x=c.useCallback((function(e){return v(Object(Be.c)(e))}),[v]),y=c.useState(),O=s()(y,2),w=O[0],_=O[1],S=c.useState(0),j=s()(S,2),P=j[0],k=j[1],I=c.useState([]),T=s()(I,2),R=T[0],A=T[1],L=c.useState(!1),M=s()(L,2),B=M[0],D=M[1],N=c.useState(!1),U=s()(N,2),F=U[0],H=U[1],V=c.useState(0),z=s()(V,2),G=z[0],W=z[1],q=Object(De.a)(h,n),$=q.clapCount,K=q.viewerClapCount,Y=q.viewerHasClappedSinceFetch,Q=Object(Le.c)(),X=Object(Me.d)();function J(e){A(R.filter((function(t){return t!==e})))}function Z(){p(n,b,P),k(0),Q.event("post.clientUpvote",{postId:n.id,postIds:[n.id],voteCount:P,source:X})}c.useEffect((function(){if(w&&clearTimeout(w),0!==P){var e=setTimeout(Z,500);_(e)}else _(void 0)}),[P]),c.useEffect((function(){return function(){x({postId:n.id})}}),[]);var ee,te=n.collection,ne=n.creator,re=n.id,oe=n.isPublished,ae=n.isLimitedState,se=(ee=!(!ne||ne.id!==b),ae?"This feature is temporarily disabled.":oe?ee?"You cannot applaud your own story.":void 0:"You cannot applaud a draft."),ie="OBVIOUS"===r,le="SUBTLE_FOR_DESKTOP"===r,ce=le||i,ue=ce||ie,de=!!(K&&K>0),me=!!($&&$>0),pe=Fe[r],fe=te&&te.slug?Object(Ne.qc)(te.slug,re):Object(Ne.pc)(re),ge={marginRight:le?void 0:ie&&!se?"16px":"5px"},be={marginLeft:ie&&!se?"16px":"8px"},he={marginLeft:le?"7px":void 0,marginTop:le?"8px":"5px"},ve={marginRight:"8px",marginTop:"2px"};return c.createElement(g.a,{display:"flex",alignItems:le?"flex-start":"center"},c.createElement(g.a,{xs:be,sm:be,md:ge,lg:ge,xl:ge,position:"relative"},b||se?c.createElement(c.Fragment,null,B&&c.createElement(Re.b,null,c.createElement(Ce,{count:K,clappedAt:G,placement:ie?"FAR":"NEAR",onFloatEnd:function(){D(!1)}})),c.createElement(Ie,{isPopping:F,onPopEnd:function(){H(!1)}},c.createElement(ye,{scale:pe,canUndo:de,isCircle:ie,isFilled:de,isUndoSuppressed:R.length>0,disableReason:se,onClickAndHold:function(){for(var e=360*Math.random();-1!==R.indexOf(e);)e+=360;A(R.concat(e)),W(Date.now()),D(!0),H(!0),function(){if(K&&K>=50)return;E({postId:n.id,clapCount:$+1,viewerClapCount:K+1,viewerHasClappedSinceFetch:!0}),k(P+1)}()},onUndo:function(){K&&(p(n,b,-K),E({postId:n.id,clapCount:$-K,viewerClapCount:0,viewerHasClappedSinceFetch:!0}),k(0),Q.event("post.clientUnvote",{postId:n.id,postIds:[n.id],unvoteCount:K,source:X}))},shouldHideClapsText:u})),R.map((function(e){return c.createElement(C,{key:e,isLarge:ie,offset:e,onBurstEnd:J})}))):c.createElement(Ae.a,{operation:"register",post:n,user:n.creator,actionUrl:fe},c.createElement(ye,{isCircle:ie,scale:pe}))),me&&(!B||ce)&&c.createElement(g.a,{xs:ve,sm:ve,md:he,lg:he,xl:he},c.createElement(Oe.a,{shouldShowNetwork:ie,post:n,clapCount:$,showFullNumber:Y,hasLabel:ue,hasDialog:o,shouldShowResponsiveLabelText:le||i,shouldHideClapsText:u})))},Ve=l()(Ue(),Ae.d,Ae.f,Oe.b),ze=function(e){var t;return c.createElement(Me.b,{source:{postId:null===(t=e.post)||void 0===t?void 0:t.id},extendSource:!0},c.createElement(He,e))}},"./src/components/post/multivote/MultiVoteCount.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return te})),n.d(t,"b",(function(){return ne}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/pluralize/pluralize.js"),u=n.n(c),d=n("./node_modules/react/index.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/extends.js"),f=n.n(p),g=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),b=n.n(g),h=n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),v=n.n(h),E=n("./node_modules/@babel/runtime/regenerator/index.js"),x=n.n(E),y=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),O=n.n(y),w=n("./node_modules/lodash/merge.js"),_=n.n(w),S=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),j=n("./src/components/user/UserAvatar.tsx"),P=n("./src/components/user/UserFollowButton.tsx"),C=n("./src/framework/design-system/components/index.ts"),k=n("./src/framework/design-system/type/index.ts"),I=n("./src/framework/design-system/type/useTypeRules.ts");function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var R=m.a.createElement("g",{fillRule:"evenodd"},m.a.createElement("path",{d:"M7.94 1h-.89L7.5 2.9zM10.09 1.33l-.84-.3-.23 1.95zM5.73 1.04l-.84.3L5.97 3zM5.63 11.57a3043.52 3043.52 0 0 0-1.6-1.6C2.32 8.26 1.25 7.5 1.75 7c.25-.25.62-.3.93 0 .45.46 1.54 1.65 1.54 1.65a.69.69 0 0 0 .34.2c.17.04.36-.06.5-.2.14-.13.06-.47-.06-.6L2.94 5.98c-.29-.29-.39-.78-.08-1.09.3-.29.64-.14.9.12l2.1 2.15a.33.33 0 0 0 .24.1.42.42 0 0 0 .26-.12c.13-.12.2-.36.07-.49L5 5.2c-.56-.56-.6-.95-.36-1.2.35-.35.82-.24 1.45.48l2.8 2.95-.59-1.46s-.37-.97 0-1.17c.37-.2.74.33 1 .72l1.37 2.62a3.29 3.29 0 0 1-.57 4.05c-1.22 1.22-3.18.69-4.48-.6z"}),m.a.createElement("path",{d:"M11.37 4.73c-.26-.4-.7-.4-.98-.19-.19.15-.16.48-.15.7l1.18 2.07c.91 1.49 1.23 2.7.19 4.1.31-.14.4-.27.58-.49.65-.8 1.05-2.47.39-3.88a3.35 3.35 0 0 0-.03-.05l-1.18-2.26z"})),A=function(e){return m.a.createElement("svg",T({width:15,height:15},e),R)},L=n("./src/util/routes.ts");function M(){var e=o()(["\n  query PostVotersDialogQuery($postId: ID!, $pagingOptions: PagingOptions) {\n    post(id: $postId) {\n      id\n      title\n      clapCount\n      voterCount\n      voters(paging: $pagingOptions) {\n        items {\n          user {\n            id\n            username\n            name\n            bio\n            ...UserAvatar_user\n            ...UserFollowButton_user\n          }\n          clapCount\n        }\n        pagingInfo {\n          next {\n            page\n          }\n        }\n      }\n      ...UserFollowButton_post\n    }\n  }\n  ","\n  ","\n  ","\n"]);return M=function(){return e},e}var B=function(e){return{position:"relative",bottom:"12px",borderRadius:"10px",color:e.backgroundColor,fill:e.backgroundColor,background:e.accentColor.fill.normal,textAlign:"center"}},D={left:"20px",padding:"0 6px"},N={left:"24px",padding:"0 2px"},U=function(e){var t=e.clapCount,n=Object(I.a)({name:"detail",color:"DARKER",scale:"S"}),r=t?[n,B,D]:[B,N];return d.createElement(C.B,null,(function(e){return d.createElement("span",{className:e(r)},t?"+".concat(t):d.createElement(A,null))}))},F=function(e){var t=e.user,n=e.clapCount,r=e.post,o=t.username,a=t.name,s=t.bio,i=void 0===s?"":s;return a&&o?d.createElement(C.a,{padding:"12px 0"},d.createElement(C.a,{display:"flex",alignItems:"flex-start",justifyContent:"space-between"},d.createElement(C.a,{display:"flex",alignItems:"flex-start"},d.createElement(C.a,{marginRight:"20px"},d.createElement(j.d,{user:t,scale:"S"}),d.createElement(U,{clapCount:n})),d.createElement(C.a,{display:"flex",flexDirection:"column",alignItems:"flex-start"},d.createElement(C.m,{href:Object(L.yc)(o)},d.createElement(k.c,{scale:"XS"},a," ")),d.createElement(k.b,{scale:"S"},i))),d.createElement(C.a,{marginLeft:"48px"},d.createElement(P.a,{buttonSize:"SMALL",post:r,user:t})))):null},H=function(e){var t=e.isVisible,n=e.hide,r=e.post,o=e.fetchMore,a=d.useState(!1),s=O()(a,2),i=s[0],l=s[1],c=d.useCallback((function(){return x.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o||i){e.next=8;break}return l(!0),e.prev=2,e.next=5,x.a.awrap(o());case 5:return e.prev=5,l(!1),e.finish(5);case 8:case"end":return e.stop()}}),null,null,[[2,,5,8]])}),[o,i,l]);if(!r)return null;var u=r.title,m=r.voters,p=r.clapCount,f=r.voterCount;return d.createElement(C.g,{isVisible:t,hide:n,withAnimation:!0},d.createElement(C.a,{maxWidth:"550px",sm:{paddingTop:"0"},paddingTop:"88px"},d.createElement(C.a,{display:"flex",flexDirection:"column",marginBottom:"24px",textAlign:"center"},d.createElement(k.c,{scale:"S"},p," claps from ",f," ",1===f?"person":"people",' for "',u,'"')),m&&m.items.map((function(e){var t=e.user,n=e.clapCount;return t&&d.createElement(F,{user:t,clapCount:n,post:r,key:t.id})})),o&&d.createElement(C.a,{display:"flex",flexDirection:"column",margin:"24px",alignItems:"center"},d.createElement(C.b,{buttonStyle:"SOCIAL",size:"SMALL",onClick:c},"Show more claps"))))};function V(e){var t=e.postId,n=e.isVisible,r=v()(e,["postId","isVisible"]);return n?d.createElement(S.b,{ssr:!1,query:z,variables:{postId:t,pagingOptions:{limit:10}}},(function(e){var t,o=e.data,a=(o=void 0===o?{}:o).post,s=e.loading,i=e.error,l=e.fetchMore;if(s)return d.createElement(C.n,null);if(i||!(null==a?void 0:a.voters))return null;var c=a.voters.pagingInfo&&a.voters.pagingInfo.next;if(c){var u={page:c.page};t=function(){return l({variables:{pagingOptions:u},updateQuery:function(e,t){var n,r,o,a,s,i,l=t.fetchMoreResult;return _()({},l,{post:{voters:{items:[].concat(b()(null!==(n=null==e||null===(r=e.post)||void 0===r||null===(o=r.voters)||void 0===o?void 0:o.items)&&void 0!==n?n:[]),b()(null!==(a=null==l||null===(s=l.post)||void 0===s||null===(i=s.voters)||void 0===i?void 0:i.items)&&void 0!==a?a:[]))}}})}})}}return d.createElement(H,f()({isVisible:n,post:a,loading:s,fetchMore:t},r))})):null}var z=l()(M(),j.b,P.c,P.b),G=n("./src/util/numbers.ts");function W(){var e=o()(["\n  fragment PostVotersNetwork_post on Post {\n    voterCount\n    viewerClapCount\n    recommenders {\n      name\n    }\n  }\n"]);return W=function(){return e},e}var q=function(e){var t=e.post,n=e.showVoters,r=(t.viewerClapCount?[{name:"you"}]:[]).concat(t.recommenders||[]).slice(0,2).map((function(e){return e.name}));if(!r.length)return null;var o=(t.voterCount||0)-r.length,a=r.join(o>0?", ":" and "),s="".concat(r.length>1?",":""," and"),i=u()("other",o),l=o>0?"".concat(s," ").concat(Object(G.g)(o)," ").concat(i):"";return d.createElement(C.a,{sm:{display:"none"}},d.createElement(C.m,{onClick:n},d.createElement(k.b,{scale:"S"},"Applause from ".concat(a).concat(l))))},$=l()(W()),K=n("./src/components/responses/MobileHideSpan.tsx"),Y=n("./src/framework/design-system/components/util/VisibilityController.tsx"),Q=n("./src/framework/design-system/type/Detail.tsx"),X=n("./src/framework/style/index.ts");function J(){var e=o()(["\n  fragment MultiVoteCount_post on Post {\n    id\n    ...PostVotersNetwork_post\n  }\n  ","\n"]);return J=function(){return e},e}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e){var t=e.clapCount,n=e.hasLabel,r=void 0!==n&&n,o=e.showFullNumber,a=void 0!==o&&o,s=e.post,i=e.shouldShowNetwork,l=e.hasDialog,c=void 0!==l&&l,m=e.shouldShowResponsiveLabelText,p=void 0!==m&&m,f=e.shouldHideClapsText,g=void 0!==f&&f,b=s.id;if(!(t>0))return null;var h=r&&!g?u()("clap",t):"",v=function(e){var t=e.showVoters;return i&&t?d.createElement(q,{showVoters:t,post:s}):null},E=a?Object(G.g)(t):Object(G.d)(t),x=function(e){var t=e.showVoters,n=Object(X.useCx)();return d.createElement("div",{className:n(ee({},p||r?{position:"relative",top:"1px"}:{},{"& button":{textAlign:"left"}}))},d.createElement(Q.a,{color:p||r||g?"DARKER":"LIGHTER",scale:"M"},p?d.createElement(d.Fragment,null,t?d.createElement(C.m,{onClick:t},E,d.createElement(K.a,null," ",h)):E,d.createElement(K.a,null,d.createElement(v,{showVoters:t}))):d.createElement(d.Fragment,null,t?d.createElement(C.m,{onClick:t},E," ",h):E,d.createElement(v,{showVoters:t}))))};return c&&b?d.createElement(Y.a,null,(function(e){var t=e.isVisible,n=e.show,r=e.hide;return d.createElement(d.Fragment,null,d.createElement(x,{showVoters:n}),d.createElement(V,{isVisible:t,hide:r,postId:b}))})):d.createElement(x,null)}var ne=l()(J(),$)},"./src/components/publisher/CardByline.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"d",(function(){return C})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return I}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./src/components/collection/package/interim-components/ClickableWrapper.tsx"),u=n("./src/components/format/Date.tsx"),d=n("./node_modules/date-fns/index.js");function m(e){var t=e.hasPrefix,n=void 0!==t&&t,r=e.timestamp,o=Date.now(),a=Object(d.differenceInHours)(o,r);if(0===a)return n?"just now":"Just now";if(a>=1&&a<24)return"".concat(a," hour").concat(a>1?"s":""," ago");var s=Object(d.differenceInDays)(o,r);return s>=1&&s<7?"".concat(s," day").concat(s>1?"s":""," ago"):Object(u.a)({timestamp:r})}var p=n("./src/components/ui/Byline.tsx"),f=n("./src/framework/design-system/type/index.ts"),g=n("./src/framework/design-system/util/style/responsiveStyles.ts"),b=n("./src/framework/style/index.ts"),h=n("./src/svg/star-15px.svg"),v=n("./src/util/routes.ts");function E(){var e=o()(["\n  fragment CardByline_publisher on Publisher {\n    __typename\n    ... on User {\n      id\n      ...CardByline_user\n    }\n    ... on Collection {\n      id\n      ...CardByline_collection\n    }\n  }\n  ","\n  ","\n"]);return E=function(){return e},e}function x(){var e=o()(["\n  fragment CardByline_collection on Collection {\n    __typename\n    id\n    name\n    ...collectionUrl_collection\n  }\n  ","\n"]);return x=function(){return e},e}function y(){var e=o()(["\n  fragment CardByline_user on User {\n    __typename\n    id\n    name\n    username\n  }\n"]);return y=function(){return e},e}var O=function(e){return{fill:e.baseColor.fill.light,marginTop:"-2px",paddingLeft:"4px"}};function w(e,t){return t&&Object(g.a)(e)?e[t]:e}var _=function(e){var t=e.author,n=e.forceSize,r=e.scale,o=void 0===r?"M":r;return(null==t?void 0:t.username)?i.createElement(c.a,{href:Object(v.yc)(t.username)},i.createElement(f.b,{color:"ACCENT",scale:w(o,n)},t.name)):null},S=function(e){var t=e.collection,n=e.forceSize,r=e.scale,o=void 0===r?"M":r,a=Object(b.useCx)(),s=Object(l.f)((function(e){return e.navigation.currentLocation}));if(!t)return null;var u=Object(v.K)(t,s);return i.createElement(c.a,{href:u},i.createElement(f.b,{scale:w(o,n),color:"DARKER"},"Published in ",i.createElement("b",{className:a((function(e){var t;return{fontWeight:null!==(t=e.newFonts.detail.boldWeight)&&void 0!==t?t:"bold"}}))},t.name)))},j=function(e){var t=e.datePrefix,n=void 0===t?"":t,r=e.forceSize,o=e.isOneLine,a=e.withMidDot,s=void 0===a||a,l=e.href,d=e.onClick,p=e.publishedAt,g=e.scale,v=void 0===g?"M":g,E=e.showStar,x=void 0!==E&&E,y=e.timeColor,_=void 0===y?"LIGHTER":y,S=e.timeToRead,j=Object(b.useCx)();if(!p&&!S)return null;var P=o?m:u.a;return i.createElement(c.a,{href:l,onClick:d},i.createElement(f.b,{color:_,scale:w(v,r)},o&&p&&s&&i.createElement("span",{className:j({margin:"0 4px"})},S?null:"·"),p?i.createElement(i.Fragment,null,n,i.createElement(P,{hasPrefix:!(!o||!n)||void 0,timestamp:p})):null,p&&S?i.createElement("span",{className:j({margin:"0 7px"})},"·"):null,S||null,x&&i.createElement(h.a,{className:j(O)})))},P=function(e){var t=e.avatar,n=void 0===t?null:t,r=e.datePrefix,o=e.forceSize,a=e.hideAuthor,s=void 0!==a&&a,l=e.href,c=e.onClick,u=e.isOneLine,d=void 0!==u&&u,m=e.publisher,f=e.publishedAt,g=e.scale,b=e.showStar,h=void 0!==b&&b,v=e.timeColor,E=e.timeToRead,x="Collection"===m.__typename?i.createElement(S,{collection:m,forceSize:o,scale:g}):s?null:i.createElement(_,{author:m,forceSize:o,scale:g}),y="Collection"===m.__typename||!s;return i.createElement(p.a,{avatar:s?null:n,isOneLine:d,title:x,description:i.createElement(j,{datePrefix:r,publishedAt:f,timeToRead:E,withMidDot:y,href:l,onClick:c,showStar:h,forceSize:o,scale:g,timeColor:v,isOneLine:d})})},C=s()(y()),k=s()(x(),v.L),I=s()(E(),C,k)},"./src/components/publisher/MetaHeader.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return en})),n.d(t,"c",(function(){return tn})),n.d(t,"b",(function(){return nn})),n.d(t,"d",(function(){return rn}));var r,o=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),a=n.n(o),s=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),i=n.n(s),l=n("./node_modules/@babel/runtime/helpers/extends.js"),c=n.n(l),u=n("./node_modules/@babel/runtime/helpers/typeof.js"),d=n.n(u),m=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),p=n.n(m),f=n("./node_modules/lodash/merge.js"),g=n.n(f),b=n("./node_modules/graphql-tag/src/index.js"),h=n.n(b),v=n("./node_modules/react/index.js"),E=n("./node_modules/react-redux/es/index.js"),x=n("./src/components/metabar/Logo.tsx"),y=n("./src/components/metabar/MetabarActions.tsx"),O=n("./src/components/metabar/MetabarActionsLO.tsx"),w=n("./src/components/metabar/OpenInApp.tsx"),_=n("./src/components/metabar/constants.ts"),S=n("./src/components/navigation/Anchor.tsx"),j=n("./node_modules/react-helmet-async/lib/index.module.js"),P=n("./src/components/collection/theming/customStyleSheet.ts"),C=n("./src/components/publisher/theming/defaultStyleSheet.ts"),k=n("./src/framework/style/index.ts"),I=n("./src/schema-types/globalTypes.ts"),T=n("./src/util/miroImage.ts");function R(){var e=i()(["\n  fragment MetaHeaderBackground_customStyleSheet on CustomStyleSheet {\n    id\n    header {\n      headerScale\n      backgroundImageDisplayMode\n      backgroundImageVerticalAlignment\n      backgroundColorDisplayMode\n      backgroundColor {\n        ...getHexFromColorValue_colorValue\n        ...getOpaqueHexFromColorValue_colorValue\n      }\n      secondaryBackgroundColor {\n        ...getHexFromColorValue_colorValue\n      }\n      postBackgroundColor {\n        ...getHexFromColorValue_colorValue\n      }\n      backgroundImage {\n        ...MetaHeaderBackground_imageMetadata\n      }\n    }\n  }\n  ","\n  ","\n  ","\n"]);return R=function(){return e},e}function A(){var e=i()(["\n  fragment MetaHeaderBackground_imageMetadata on ImageMetadata {\n    id\n    originalWidth\n  }\n"]);return A=function(){return e},e}var L=(r={},p()(r,I.a.START,"top"),p()(r,I.a.END,"bottom"),p()(r,I.a.CENTER,"center"),r),M=function(e,t){return Object(T.d)({miroId:e.id,width:t||e.originalWidth||2e3,strategy:T.a.Resample,freezeGifs:!1})},B=function(e,t){var n=(e||{}).header,r=t?Object(P.k)(null==n?void 0:n.postBackgroundColor):null,o=t?Object(P.m)(null==n?void 0:n.backgroundColor):Object(P.k)(null==n?void 0:n.backgroundColor);return{altHex:r,primaryHex:o,backgroundColor:r||o}},D=function(e,t){var n,r,o=(e||{}).header,a=Object(C.b)(),s=null!==(n=null==e||null===(r=e.header)||void 0===r?void 0:r.headerScale)&&void 0!==n?n:a.headerScale;return t||s===I.e.HEADER_SCALE_SMALL?null:null==o?void 0:o.backgroundImage},N=function(e,t){var n,r,o,s,i,l,c,u,d,m=(e||{}).header,p=Object(C.b)(),f=null!==(n=null==e||null===(r=e.header)||void 0===r?void 0:r.backgroundImageDisplayMode)&&void 0!==n?n:p.backgroundColorDisplayMode,g=t?I.d.COLOR_DISPLAY_MODE_SOLID:null!==(o=null==e||null===(s=e.header)||void 0===s?void 0:s.backgroundColorDisplayMode)&&void 0!==o?o:p.backgroundColorDisplayMode,b=D(e,t),h=(i=b,l=v.useState(""),c=a()(l,2),u=c[0],d=c[1],v.useEffect((function(){if(i){var e=new Image;e.onload=function(){return d((function(t){return t||e.src}))},e.src=M(i,64);var t=new Image;t.onload=function(){return d(t.src)},t.src=M(i)}}),[null==i?void 0:i.id]),u),E=B(e,t),x=E.altHex,y=E.primaryHex,O=E.backgroundColor;return v.useMemo((function(){return function(t){var n=Object(P.k)(null==m?void 0:m.secondaryBackgroundColor),r={display:"flex",flexDirection:"column"};if(b||g!==I.d.COLOR_DISPLAY_MODE_SOLID||(r.backgroundColor=O||t.backgroundColor),x)return r;var o=[];if(b&&g===I.d.COLOR_DISPLAY_MODE_SOLID?o.push("linear-gradient(to bottom, ".concat(y||"transparent",", ").concat(y||"transparent",")")):g===I.d.COLOR_DISPLAY_MODE_VERTICAL_GRADIENT&&o.push("linear-gradient(to bottom, ".concat(y||"transparent",", ").concat(n||"transparent",")")),b){var a,s;o.push("url(".concat(h,")"));var i=null!==(a=null==e||null===(s=e.header)||void 0===s?void 0:s.backgroundImageVerticalAlignment)&&void 0!==a?a:p.backgroundImageVerticalAlignment,l=L[i];switch(r.backgroundPosition=l,f){case I.f.IMAGE_DISPLAY_MODE_FILL:r.backgroundSize="cover";break;case I.f.IMAGE_DISPLAY_MODE_TILE:r.backgroundRepeatX="repeat",r.backgroundRepeatY="repeat",r.backgroundSize="auto";break;case I.f.IMAGE_DISPLAY_MODE_FIT:r.backgroundRepeatX="no-repeat",r.backgroundRepeatY="no-repeat",r.backgroundSize="contain";break;case I.f.IMAGE_DISPLAY_MODE_AUTO:r.backgroundRepeatX="no-repeat",r.backgroundRepeatY="no-repeat",r.backgroundSize="auto"}}return o.length>0&&(r.backgroundImage=o.join(", ")),r}}),[e,h])},U=function(e){var t,n=e.customStyleSheet,r=e.withAltBackground,o=void 0!==r&&r,a=e.children,s=Object(k.useCx)(),i=N(n,o),l=(null!==(t=null==n?void 0:n.header)&&void 0!==t?t:{}).backgroundImage;return v.createElement(v.Fragment,null,l&&v.createElement(j.a,null,v.createElement("link",{rel:"preload",href:M(l),as:"image"}),v.createElement("link",{rel:"preload",href:M(l,64),as:"image"})),v.createElement("div",{className:s(i)},a))},F=h()(A()),H=h()(R(),F,P.l,P.n),V=n("./src/framework/design-system/index.ts"),z=n("./src/routes/RoutingContext.tsx");function G(){var e=i()(["\n  fragment PublisherAboutLink_publisher on Publisher {\n    __typename\n    ... on Collection {\n      slug\n    }\n  }\n"]);return G=function(){return e},e}var W=function(e){return"Collection"===e.__typename},q=function(e){var t,n=e.publisher,r=Object(z.d)("ShowCollectionMasthead",{collectionSlug:"Collection"===n.__typename&&null!==(t=n.slug)&&void 0!==t?t:""});return W(n)?v.createElement(V.f,{href:r},"About"):null},$=h()(G()),K=n("./src/components/collection/CollectionFollowButton.tsx"),Y=n("./src/components/user/UserFollowButton.tsx");function Q(){var e=i()(["\n  fragment PublisherFollowButton_publisher on Publisher {\n    __typename\n    ... on Collection {\n      ...CollectionFollowButton_collection\n    }\n    ... on User {\n      ...UserFollowButton_user\n    }\n  }\n  ","\n  ","\n"]);return Q=function(){return e},e}var X=function(e){var t=e.publisher,n=e.buttonSize,r=e.isLinkStyle,o=void 0!==r&&r;if("Collection"===t.__typename)return v.createElement(K.a,{buttonSize:n,collection:t,isLinkStyle:o});var a="string"==typeof n?n:"REGULAR";return v.createElement(Y.a,{buttonSize:a,user:t,isLinkStyle:o})},J=h()(Q(),K.b,Y.c),Z=n("./src/framework/design-system/type/index.ts"),ee=n("./src/util/numbers.ts");function te(){var e=i()(["\n  fragment PublisherFollowerCount_publisher on Publisher {\n    __typename\n    ... on Collection {\n      subscriberCount\n    }\n    ... on User {\n      socialStats {\n        followerCount\n      }\n    }\n  }\n"]);return te=function(){return e},e}var ne=function(e){var t,n,r=null!==(t="Collection"===e.__typename?e.subscriberCount:null===(n=e.socialStats)||void 0===n?void 0:n.followerCount)&&void 0!==t?t:0;return{followerCount:r,isFollowerCountVisible:r>0}},re=function(e){var t=e.publisher,n=ne(t),r=n.followerCount;return n.isFollowerCountVisible?v.createElement(Z.b,{tag:"span",scale:"L",color:"DARKER"},"".concat(Object(ee.d)(r)," Follower").concat(1===r?"":"s")):null},oe=h()(te()),ae=n("./src/components/session/useFlag.tsx"),se=n("./src/components/session/useViewer.tsx"),ie=n("./src/framework/source/index.ts");function le(){var e=i()(["\n  fragment MetaHeaderEngagement_publisher on Publisher {\n    ...PublisherAboutLink_publisher\n    ...PublisherFollowButton_publisher\n    ...PublisherFollowerCount_publisher\n    ... on Collection {\n      creator {\n        id\n      }\n    }\n  }\n  ","\n  ","\n  ","\n"]);return le=function(){return e},e}var ce,ue,de,me,pe,fe,ge={xs:"SMALL",sm:"SMALL",md:"REGULAR",lg:"REGULAR",xl:"REGULAR"},be=function(e){var t,n=Object(se.b)(),r=!!n&&"User"===e.__typename&&n.id===e.id,o=!!n&&"Collection"===e.__typename&&n.id===(null==e||null===(t=e.creator)||void 0===t?void 0:t.id),a=!r&&!o,s=ne(e).isFollowerCountVisible,i=W(e);return{isAboutLinkVisible:i,isFollowButtonVisible:a,isFollowerCountVisible:s,isEngagementVisible:a||s||i}},he=function(e){var t=e.publisher,n=e.isSizeResponsive,r=void 0!==n&&n,o=Object(ae.a)("enable_meta_header_v2"),a=be(t),s=a.isAboutLinkVisible,i=a.isFollowButtonVisible,l=a.isFollowerCountVisible,c=a.isEngagementVisible;return o?c?v.createElement(Z.b,{scale:"L",leadingTrim:!0},v.createElement(V.a,{display:"flex",alignItems:"center"},l&&v.createElement(v.Fragment,null,v.createElement(re,{publisher:t}),(s||i)&&v.createElement(V.a,{marginLeft:"12px",marginRight:"12px"},"·")),s&&v.createElement(V.a,{marginRight:"24px"},v.createElement(q,{publisher:t})),i&&v.createElement(ie.b,{source:{susiEntry:"follow_header"},extendSource:!0},v.createElement(X,{publisher:t,isLinkStyle:!0})))):null:v.createElement(ie.b,{source:{susiEntry:"follow_header"},extendSource:!0},v.createElement(X,{publisher:t,buttonSize:r?ge:"SMALL"}))},ve=h()(le(),$,J,oe),Ee=n("./src/components/collection/PublisherLogo.tsx"),xe=n("./src/components/collection/package/header/calculateLogoDimensions.ts"),ye=n("./src/components/publisher/auroraHooks.ts"),Oe=n("./src/components/ui/image/index.ts"),we=n("./src/framework/design-system/type/useTypeRules.ts");function _e(){var e=i()(["\n  fragment MetaHeaderLogo_publisher on Publisher {\n    __typename\n    id\n    name\n    ... on Collection {\n      logo {\n        ...MetaHeaderLogo_imageMetadata\n        ...PublisherLogo_image\n      }\n    }\n    ...auroraHooks_publisher\n  }\n  ","\n  ","\n  ","\n"]);return _e=function(){return e},e}function Se(){var e=i()(["\n  fragment MetaHeaderLogo_customStyleSheet on CustomStyleSheet {\n    id\n    header {\n      nameColor {\n        ...getHexFromColorValue_colorValue\n      }\n      nameTreatment\n      postNameTreatment\n      logoImage {\n        ...MetaHeaderLogo_imageMetadata\n      }\n      logoScale\n    }\n  }\n  ","\n  ","\n"]);return Se=function(){return e},e}function je(){var e=i()(["\n  fragment MetaHeaderLogo_imageMetadata on ImageMetadata {\n    id\n    originalWidth\n    originalHeight\n    ...PublisherLogo_image\n  }\n  ","\n"]);return je=function(){return e},e}var Pe=function(e,t){var n,r,o=null!==(n=null==t?void 0:t.originalWidth)&&void 0!==n?n:0,a=null!==(r=null==t?void 0:t.originalHeight)&&void 0!==r?r:0,s=Math.min(e.width/o,e.height/a);return{width:Math.floor(s*o),height:Math.floor(s*a)}},Ce=(ce={},p()(ce,I.e.HEADER_SCALE_SMALL,{small:{width:150,height:60},large:{width:250,height:100}}),p()(ce,I.e.HEADER_SCALE_MEDIUM,{small:{width:220,height:88},large:{width:350,height:140}}),p()(ce,I.e.HEADER_SCALE_LARGE,{small:{width:280,height:128},large:{width:450,height:180}}),ce),ke=(ue={},p()(ue,I.e.HEADER_SCALE_SMALL,{small:{width:175,height:70},large:{width:175,height:70}}),p()(ue,I.e.HEADER_SCALE_MEDIUM,{small:{width:225,height:90},large:{width:225,height:90}}),p()(ue,I.e.HEADER_SCALE_LARGE,{small:{width:275,height:110},large:{width:275,height:110}}),ue),Ie=(de={},p()(de,I.e.HEADER_SCALE_SMALL,{small:{width:160,height:32},large:{width:240,height:48}}),p()(de,I.e.HEADER_SCALE_MEDIUM,{small:{width:280,height:56},large:{width:360,height:72}}),p()(de,I.e.HEADER_SCALE_LARGE,{small:{width:280,height:64},large:{width:520,height:104}}),de),Te=(me={},p()(me,I.e.HEADER_SCALE_SMALL,{small:{width:280,height:24},large:{width:320,height:32}}),p()(me,I.e.HEADER_SCALE_MEDIUM,{small:{width:280,height:40},large:{width:600,height:60}}),p()(me,I.e.HEADER_SCALE_LARGE,{small:{width:280,height:60},large:{width:680,height:80}}),me),Re=function(e,t,n){var r,o,a=(null!==(r=null==t?void 0:t.originalWidth)&&void 0!==r?r:0)/(null!==(o=null==t?void 0:t.originalHeight)&&void 0!==o?o:0);return a<=2.5?n?ke[e]:Ce[e]:a<5?Ie[e]:Te[e]},Ae=function(e,t,n){var r=Re(e,t,n),o=Pe(r.small,t),a=Pe(r.large,t);return{width:{xs:"".concat(o.width,"px"),sm:"".concat(o.width,"px"),md:"".concat(a.width,"px"),lg:"".concat(a.width,"px"),xl:"".concat(a.width,"px")},height:{xs:"".concat(o.height,"px"),sm:"".concat(o.height,"px"),md:"".concat(a.height,"px"),lg:"".concat(a.height,"px"),xl:"".concat(a.height,"px")}}},Le=(pe={},p()(pe,I.e.HEADER_SCALE_SMALL,{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}),p()(pe,I.e.HEADER_SCALE_MEDIUM,{xs:"S",sm:"S",md:"L",lg:"L",xl:"L"}),p()(pe,I.e.HEADER_SCALE_LARGE,{xs:"S",sm:"S",md:"XL",lg:"XL",xl:"XL"}),pe),Me=(fe={},p()(fe,I.e.HEADER_SCALE_SMALL,{fontSize:{xs:"40px",sm:"40px",md:"54px",lg:"54px",xl:"54px"},lineHeight:{xs:"44px",sm:"44px",md:"56px",lg:"56px",xl:"56px"}}),p()(fe,I.e.HEADER_SCALE_MEDIUM,{fontSize:{xs:"60px",sm:"60px",md:"90px",lg:"90px",xl:"90px"},lineHeight:{xs:"64px",sm:"64px",md:"96px",lg:"96px",xl:"96px"}}),p()(fe,I.e.HEADER_SCALE_LARGE,{fontSize:{xs:"80px",sm:"80px",md:"126px",lg:"126px",xl:"126px"},lineHeight:{xs:"84px",sm:"84px",md:"136px",lg:"136px",xl:"136px"}}),fe),Be={wordBreak:"break-word"},De=function(e){var t,n,r,o,a,s,i,l=e.customStyleSheet,c=e.publisher,u=e.withTextColorSubtle,d=void 0!==u&&u,m=e.withAltNameTreatment,p=e.withCustomSizing,f=void 0===p||p,g=e.forceSmall,b=void 0!==g&&g,h=Object(k.useCx)(),E=!!Object(ae.a)("enable_meta_header_v2"),x=(null!==(t=null==l?void 0:l.header)&&void 0!==t?t:{}).nameColor,y=Object(P.k)(x),O=Object(C.b)(),w=b?I.e.HEADER_SCALE_SMALL:null!==(n=null==l||null===(r=l.header)||void 0===r?void 0:r.logoScale)&&void 0!==n?n:O.logoScale,_=null!==(o=null==l||null===(a=l.header)||void 0===a?void 0:a.nameTreatment)&&void 0!==o?o:O.nameTreatment,S=null!==(s=null==l||null===(i=l.header)||void 0===i?void 0:i.postNameTreatment)&&void 0!==s?s:O.postNameTreatment,j=Object(we.a)({name:"heading",scale:E?Le[w]:"S",leadingTrim:!!E}),R=Me[w],A=[j,function(e){return{color:y||e.baseColor.text[d?"normal":"dark"]}},Be];E||A.push(R);var L=Ne(l,c),M=L.logo,B=L.shouldShowLogo,D=(null==M?void 0:M.originalHeight)||0,N=(null==M?void 0:M.originalWidth)||0,U=Object(xe.a)("xs",D,N);if(!f)return v.createElement(Ee.a,{withTextColorSubtle:d,customNameColor:y,nameTreatment:m?S:_,maxHeight:35,maxWidth:U.maxWidth,textScale:E?"XS":"M",logo:M,name:c.name,clamp:E?0:1,leadingTrim:!!E||void 0,withWordBreak:E});if(!B||!M)return v.createElement("span",{className:h(A)},c.name||"");var F=Re(w,M,E),H=Pe(F.large,M);return v.createElement(Oe.c,{miroId:M.id,alt:c.name||"Publication logo",width:H.width,height:H.height,strategy:T.a.Resample,rules:Ae(null!=w?w:O.logoScale,M,E)})},Ne=function(e,t){var n,r,o,a=Object(C.b)(),s=null==e||null===(n=e.header)||void 0===n?void 0:n.logoImage,i=null!==(r=null==e||null===(o=e.header)||void 0===o?void 0:o.nameTreatment)&&void 0!==r?r:a.nameTreatment,l=Object(ye.f)(t),c=void 0!==s,u="Collection"===t.__typename?t.logo:null,d=l&&c?s:u;return{logo:d,shouldShowLogo:(null==d?void 0:d.id)&&i===I.j.NAME_TREATMENT_LOGO}},Ue=h()(je(),Ee.b),Fe=h()(Se(),P.l,Ue),He=h()(_e(),Ue,Ee.b,ye.a),Ve=n("./src/framework/design-system/util/style/converters.ts");function ze(){var e=i()(["\n  fragment MetaHeaderScrim_customStyleSheet on CustomStyleSheet {\n    header {\n      backgroundColor {\n        ...getOpaqueHexFromColorValue_colorValue\n      }\n    }\n    global {\n      colorPalette {\n        background {\n          ...getOpaqueHexFromColorValue_colorValue\n        }\n      }\n    }\n  }\n  ","\n"]);return ze=function(){return e},e}var Ge=function(e){var t=e.customStyleSheet,n=v.useMemo((function(){return function(e){var t;if(e){var n=(e.header||{}).backgroundColor,r=((null===(t=e.global)||void 0===t?void 0:t.colorPalette)||{}).background,o=null!=n?n:r;if(!o)return"linear-gradient(to bottom, ".concat("#FAFAFA66"," 0%, ").concat("#FAFAFA0D"," 80%, transparent 95%)");var a=Object(P.m)(o,"66"),s=Object(P.m)(o,"11");return"linear-gradient(to bottom, ".concat(a," 0%, ").concat(s," 90%, transparent 100%)")}}(t)}),[t]);return t?v.createElement(V.a,{position:"absolute",height:Object(Ve.b)(100),width:"100%",backgroundImage:n}):null},We=h()(ze(),P.n),qe=n("./src/components/format/Linkifier.tsx");function $e(){var e=i()(["\n  fragment MetaHeaderTagline_publisher on Publisher {\n    __typename\n    ... on Collection {\n      tagline\n    }\n    ... on User {\n      bio\n    }\n  }\n"]);return $e=function(){return e},e}function Ke(){var e=i()(["\n  fragment MetaHeaderTagline_customStyleSheet on CustomStyleSheet {\n    id\n    header {\n      taglineColor {\n        ...getHexFromColorValue_colorValue\n      }\n      taglineTreatment\n    }\n  }\n  ","\n"]);return Ke=function(){return e},e}var Ye={xs:"S",sm:"S",md:"M",lg:"L",xl:"L"},Qe=function(e){var t,n=e.publisher,r=e.customStyleSheet,o=e.color,a=void 0===o?"LIGHTER":o,s=Object(k.useCx)(),i=Object(ae.a)("enable_meta_header_v2"),l=Object(we.a)({name:"subtitle",scale:i?"M":Ye,color:a}),c=(null!==(t=null==r?void 0:r.header)&&void 0!==t?t:{}).taglineColor,u=Object(P.k)(c),d=u?{color:u}:{},m=Xe(r,n),p=m.tagline;return m.isTaglineVisible?v.createElement("span",{className:s([l,d])},v.createElement(qe.a,null,p)):null},Xe=function(e,t){var n,r,o=Object(C.b)(),a=null!==(n=null==e||null===(r=e.header)||void 0===r?void 0:r.taglineTreatment)&&void 0!==n?n:o.taglineTreatment,s="Collection"===t.__typename?t.tagline:t.bio;return{tagline:s,isTaglineVisible:!!s&&a===I.v.TAGLINE_TREATMENT_HEADER}},Je=h()(Ke(),P.l),Ze=h()($e()),et=n("./src/components/publisher/MetaHeaderThemeProvider.tsx"),tt=n("./src/components/collection/CollectionAvatar.tsx"),nt=n("./src/components/collection/CollectionMetabarActionsPopover.tsx"),rt=n("./src/components/collection/package/header/MetaHeaderPubMenu.tsx"),ot=n("./src/components/metabar/MetabarActionsPopover.tsx"),at=n("./src/components/metabar/NewCollectionPostButton.tsx"),st=n("./src/components/search/SearchWidget.tsx"),it=n("./src/components/user/UserAvatar.tsx"),lt=n("./src/framework/design-system/components/index.ts"),ct=n("./src/util/hooks/useUserAgentMobileOrTablet.tsx"),ut=n("./src/util/routes.ts");function dt(){var e=i()(["\n  fragment MetaHeaderActions_publisher on Publisher {\n    __typename\n    ...MetaHeaderPubMenu_publisher\n    ...SearchWidget_publisher\n    ... on Collection {\n      id\n      viewerIsEditor\n      creator {\n        id\n      }\n      ...CollectionAvatar_collection\n      ...CollectionMetabarActionsPopover_collection\n    }\n    ... on User {\n      id\n      ...UserAvatar_user\n    }\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return dt=function(){return e},e}var mt=function(e){var t=e.publisher,n=e.hideAboutLink,r=void 0!==n&&n,o=Object(E.f)((function(e){return e.config.authDomain})),a=!Object(ct.a)(),s=Object(se.b)(),i="Collection"===t.__typename?t:null,l=i&&i.creator&&i.creator.id===(null==s?void 0:s.id),c=i&&i.viewerIsEditor,u=l||c,d="User"===(null==t?void 0:t.__typename)?t:null,m=!!d&&(null==s?void 0:s.id)===d.id,p=u||m;return v.createElement(lt.a,{display:"flex",alignItems:"center",marginRight:p?"24px":"12px"},s&&!p&&v.createElement(rt.a,{publisher:t,hideAboutLink:r}),s&&v.createElement(ie.b,{source:{name:"search-popover"}},v.createElement(lt.a,{marginRight:"2px"},v.createElement(st.b,{publisher:t,setIsMetabarLocked:function(){}}))),i&&u&&v.createElement(v.Fragment,null,v.createElement(lt.a,{marginLeft:"12px",marginRight:"12px"},v.createElement(nt.a,{collection:i,paddingTop:"0px",paddingBottom:"0px"},v.createElement(tt.a,{collection:i,size:32}))),a&&v.createElement(at.a,{collection:i,paddingTop:"0px",paddingBottom:"0px",marginLeft:"12px"})),s&&m&&v.createElement(v.Fragment,null,v.createElement(lt.a,{marginLeft:"12px",marginRight:"12px"},v.createElement(ot.a,{viewer:s,setIsMetabarLocked:function(){}},v.createElement(it.d,{user:s,scale:"XS"}))),v.createElement(lt.a,{marginLeft:"12px"},v.createElement(lt.b,{href:Object(ut.sb)(o),buttonStyle:"STRONG",size:"SMALL"},"New story"))))},pt=h()(dt(),rt.b,st.c,tt.b,nt.b,it.b),ft=n("./src/components/susi/SusiClickable.tsx"),gt=n("./src/styles/zIndex.ts");function bt(){var e=i()(["\n  fragment MetaHeaderTop_publisher on Publisher {\n    __typename\n    ... on Collection {\n      slug\n      ...CollectionMetabarActionsPopover_collection\n      ...CollectionAvatar_collection\n      ...MetaHeaderTop_collection\n    }\n    ... on User {\n      username\n      id\n    }\n  }\n  ","\n  ","\n  ","\n"]);return bt=function(){return e},e}function ht(){var e=i()(["\n  fragment MetaHeaderTop_post on Post {\n    id\n    collection {\n      ...MetaHeaderTop_collection\n    }\n    pendingCollection {\n      ...MetaHeaderTop_collection\n    }\n  }\n  ","\n"]);return ht=function(){return e},e}function vt(){var e=i()(["\n  fragment MetaHeaderTop_collection on Collection {\n    id\n    viewerIsEditor\n    creator {\n      id\n    }\n  }\n"]);return vt=function(){return e},e}var Et,xt=function(e){var t,n,r=e.publisher,o=e.post,a=e.withBottomBorder,s=Object(E.f)((function(e){return e.config.authDomain})),i=Object(se.b)(),l="Collection"===(null==r?void 0:r.__typename)?r.slug:void 0,c="User"===(null==r?void 0:r.__typename)?r.username:null,u="Collection"===(null==r?void 0:r.__typename)?r:null!==(t=null==o?void 0:o.pendingCollection)&&void 0!==t?t:null==o?void 0:o.collection,d=i&&u&&(null==u||null===(n=u.creator)||void 0===n?void 0:n.id)===(null==i?void 0:i.id),m=null==u?void 0:u.viewerIsEditor,p=d||m,f=i&&"User"===(null==r?void 0:r.__typename)&&i.id===r.id;return v.createElement(V.a,{zIndex:gt.a.metabar,position:"relative",borderBottom:a?"BASE_LIGHTER":"NONE"},v.createElement(V.h,null,v.createElement(V.a,{height:Object(Ve.b)(62),display:"flex",alignItems:"center"},v.createElement(V.a,{flexGrow:"1",flexDirection:"row",display:"flex",alignItems:"center"},!i&&v.createElement(V.a,{marginRight:"16px"},v.createElement(ft.a,{susiEntry:"nav_reg",isButton:!0,buttonStyle:"OBVIOUS",operation:"register"},"Get started")),v.createElement(w.a,{removeSpacing:!0,isButton:!1,collectionSlug:l,postId:null==o?void 0:o.id,username:c})),"Collection"===(null==r?void 0:r.__typename)&&p&&v.createElement(V.a,{marginRight:"16px",sm:{marginRight:"10px"}},v.createElement(nt.a,{collection:r},v.createElement(tt.a,{collection:r,size:32}))),"User"===(null==r?void 0:r.__typename)&&i&&f&&v.createElement(V.a,{marginRight:"16px",sm:{marginRight:"10px"}},v.createElement(ot.a,{viewer:i,setIsMetabarLocked:function(){}},v.createElement(it.d,{user:i,scale:"XS"}))),v.createElement(S.a,{href:"https://".concat(s,"/"),ariaLabel:"Homepage"},v.createElement(x.a,null)))))},yt=h()(vt()),Ot=h()(ht(),yt),wt=h()(bt(),nt.b,tt.b,yt),_t=n("./src/components/publisher/publisherHelpers.tsx"),St=n("./src/framework/design-system/type/createLeadingTrimRule.ts"),jt=n("./src/framework/design-system/util/style/responsiveStyles.ts"),Pt=n("./src/metadata/Favicon.tsx");function Ct(){var e=i()(["\n  fragment MetaHeaderV2_post on Post {\n    id\n    ...SusiClickable_post\n    ...MetaHeaderTop_post\n  }\n  ","\n  ","\n"]);return Ct=function(){return e},e}function kt(){var e=i()(["\n  fragment MetaHeaderV2_customStyleSheet on CustomStyleSheet {\n    id\n    header {\n      headerScale\n      horizontalAlignment\n    }\n    ...MetaHeaderBackground_customStyleSheet\n    ...MetaHeaderLogo_customStyleSheet\n    ...MetaHeaderScrim_customStyleSheet\n    ...MetaHeaderTagline_customStyleSheet\n    ...MetaHeaderThemeProvider_customStyleSheet\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return kt=function(){return e},e}function It(){var e=i()(["\n  fragment MetaHeaderV2_publisher on Publisher {\n    __typename\n    name\n    ...MetaHeaderEngagement_publisher\n    ...MetaHeaderLogo_publisher\n    ...MetaHeaderTagline_publisher\n    ...MetaHeaderThemeProvider_publisher\n    ...MetaHeaderActions_publisher\n    ...MetaHeaderTop_publisher\n    ... on Collection {\n      id\n      favicon {\n        id\n      }\n      tagline\n    }\n    ... on User {\n      id\n      bio\n    }\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return It=function(){return e},e}var Tt,Rt,At,Lt,Mt,Bt,Dt=(Et={},p()(Et,I.a.START,"flex-start"),p()(Et,I.a.END,"flex-end"),p()(Et,I.a.CENTER,"center"),Et),Nt=function(e){return{maxWidth:Object(Ve.b)(e.maxWidths.inset),minWidth:"0",width:"100%",marginTop:"12px"}},Ut=function(e){var t,n,r,o,s,i=e.publisher,l=e.customStyleSheet,c=e.post,u=e.forceSmall,d=void 0!==u&&u,m=e.hideAboutLink,p=void 0!==m&&m,f=Ne(l,i).shouldShowLogo,g=Object(k.useCx)(),b=Object(E.f)((function(e){return e.config.authDomain})),h=Object(E.f)((function(e){return e.config.isAmp})),y=Object(se.b)(),O=Object(C.b)(),w=(d?I.e.HEADER_SCALE_SMALL:null!==(t=null==l||null===(n=l.header)||void 0===n?void 0:n.headerScale)&&void 0!==t?t:O.headerScale)===I.e.HEADER_SCALE_SMALL,_=w&&f,j=Object(k.useTheme)().newFonts.heading,P=_?void 0:Object(jt.b)((function(e){var t=a()(e,1)[0];return Object(Ve.b)(-1*t)}),Object(St.b)(j,"XS")),T=w?I.a.START:null!==(r=null==l||null===(o=l.header)||void 0===o?void 0:o.horizontalAlignment)&&void 0!==r?r:O.horizontalAlignment,R=Xe(l,i).isTaglineVisible,A=be(i).isEngagementVisible,L=!!D(l,d),M=!w&&A,N=M?48:0,F=w?160:312,H=F-N,z=w?H:H-62,G=Object(_t.f)(i),W="".concat(Object(_t.a)(i)," Homepage"),q=B(l,d).backgroundColor,$=!(L||!!q)||!w&&A;return v.createElement(v.Fragment,null,"Collection"===i.__typename&&v.createElement(Pt.a,{faviconImageId:null==i||null===(s=i.favicon)||void 0===s?void 0:s.id}),v.createElement(V.a,{borderBottom:$?"BASE_LIGHTER":void 0,minHeight:Object(Ve.b)(F)},v.createElement(et.a,{publisher:i,customStyleSheet:l,withAltBackground:d},v.createElement(U,{customStyleSheet:l,withAltBackground:d},v.createElement(V.a,{display:"none",sm:{display:"block"}},v.createElement(xt,{withBottomBorder:!L,post:c,publisher:i})),!w&&v.createElement(Ge,{customStyleSheet:l}),v.createElement(V.h,null,v.createElement(V.a,{display:"flex",flexDirection:w?"row":"column",alignItems:w?"center":void 0,justifyContent:"space-between",minHeight:Object(Ve.b)(H),sm:{flexDirection:"column",justifyContent:w?"center":"flex-end",alignItems:"flex-start",minHeight:Object(Ve.b)(z)},paddingBottom:w||A?void 0:Object(Ve.b)(48)},!w&&v.createElement(V.a,{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:Object(Ve.b)(24),sm:{display:"none"},zIndex:gt.a.metabar},(!y||h)&&v.createElement(V.a,{marginRight:"24px"},v.createElement(ft.a,{buttonSize:"SMALL",isButton:!0,buttonStyle:"OBVIOUS",operation:"register",post:c,susiEntry:"nav_reg"},"Get started")),y&&v.createElement(mt,{publisher:i,hideAboutLink:p}),v.createElement(S.a,{href:"https://".concat(b,"/"),ariaLabel:"Homepage"},v.createElement(x.a,null))),v.createElement(V.a,{display:"flex",justifyContent:"space-between",width:"100%",alignItems:"flex-start"},v.createElement("div",{className:g({paddingTop:P,display:"flex",width:"100%"})},v.createElement(V.a,{width:"100%",display:"flex",flexDirection:w?"row":"column",alignItems:w?f?"center":"flex-end":Dt[T],marginBottom:w?"0px":"40px",marginTop:w?"-40px":"42px",textAlign:T===I.a.CENTER?"center":void 0,flexWrap:"wrap",sm:w?{alignItems:"flex-start",flexDirection:"column"}:{marginTop:"50px"}},v.createElement(V.a,{marginLeft:T===I.a.START?void 0:"32px",marginRight:"24px",marginTop:"40px"},v.createElement(S.a,{href:G,ariaLabel:W},v.createElement(De,{publisher:i,customStyleSheet:l,withAltNameTreatment:d,withCustomSizing:!w,withTextColorSubtle:!1}))),R&&!w&&v.createElement("div",{className:g(Nt)},v.createElement(Qe,{customStyleSheet:l,publisher:i})),w&&v.createElement(V.a,{sm:{marginTop:"20px"},marginTop:"40px"},v.createElement(he,{publisher:i})))),w&&v.createElement(V.a,{display:"flex",justifySelf:"flex-end",alignItems:"center",sm:{display:"none"},zIndex:gt.a.metabar},(!y||h)&&v.createElement(V.a,{marginRight:"24px"},v.createElement(ft.a,{isButton:!0,buttonStyle:"OBVIOUS",operation:"register",post:c,susiEntry:"nav_reg"},"Get started")),y&&v.createElement(mt,{publisher:i,hideAboutLink:p}),v.createElement(S.a,{href:"https://".concat(b,"/"),ariaLabel:"Homepage"},v.createElement(x.a,null)))))))),M&&v.createElement(V.h,null,v.createElement(V.a,{height:Object(Ve.b)(N),display:"flex",alignItems:"center",justifyContent:Dt[T]},v.createElement(he,{publisher:i})))))},Ft=h()(It(),ve,He,Ze,et.c,pt,wt),Ht=h()(kt(),H,Fe,We,Je,et.b),Vt=h()(Ct(),ft.d,Ot);function zt(){var e=i()(["\n  fragment MetaHeader_post on Post {\n    id\n    ...MetabarActions_post\n    ...MetabarActionsLO_post\n    ...MetaHeaderV2_post\n  }\n  ","\n  ","\n  ","\n"]);return zt=function(){return e},e}function Gt(){var e=i()(["\n  fragment MetaHeader_customStyleSheet on CustomStyleSheet {\n    id\n    ...MetaHeaderBackground_customStyleSheet\n    ...MetaHeaderLogo_customStyleSheet\n    ...MetaHeaderScrim_customStyleSheet\n    ...MetaHeaderTagline_customStyleSheet\n    ...MetaHeaderThemeProvider_customStyleSheet\n    ...MetaHeaderV2_customStyleSheet\n    header {\n      nameTreatment\n      headerScale\n      horizontalAlignment\n      logoScale\n      backgroundColor {\n        rgb\n      }\n      backgroundImage {\n        id\n      }\n    }\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return Gt=function(){return e},e}function Wt(){var e=i()(["\n  fragment MetaHeader_publisher on Publisher {\n    __typename\n    name\n    ... on Collection {\n      id\n      description\n      favicon {\n        id\n      }\n      shortDescription\n      slug\n      tagline\n    }\n    ... on User {\n      id\n      username\n      bio\n    }\n    ...MetabarActions_publisher\n    ...MetaHeaderEngagement_publisher\n    ...MetaHeaderLogo_publisher\n    ...MetaHeaderTagline_publisher\n    ...MetaHeaderThemeProvider_publisher\n    ...MetaHeaderV2_publisher\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return Wt=function(){return e},e}var qt=function(e,t){return t!==I.j.NAME_TREATMENT_TEXT?e?"60px":"104px":e?"50px":"90px"},$t={xs:"235px",sm:"235px",md:"235px",lg:"295px",xl:"295px"},Kt=(Tt={},p()(Tt,I.e.HEADER_SCALE_SMALL,"0px"),p()(Tt,I.e.HEADER_SCALE_MEDIUM,$t),p()(Tt,I.e.HEADER_SCALE_LARGE,$t),Tt),Yt=(Rt={},p()(Rt,I.a.START,"flex-start"),p()(Rt,I.a.END,"flex-end"),p()(Rt,I.a.CENTER,"center"),Rt),Qt=(At={},p()(At,I.a.START,"left"),p()(At,I.a.END,"right"),p()(At,I.a.CENTER,"center"),At),Xt=(Lt={},p()(Lt,I.e.HEADER_SCALE_LARGE,"12px"),p()(Lt,I.e.HEADER_SCALE_MEDIUM,"8px"),p()(Lt,I.e.HEADER_SCALE_SMALL,"8px"),Lt),Jt=(Mt={},p()(Mt,I.e.HEADER_SCALE_LARGE,"48px"),p()(Mt,I.e.HEADER_SCALE_MEDIUM,"36px"),p()(Mt,I.e.HEADER_SCALE_SMALL,"24px"),Mt),Zt=(Bt={},p()(Bt,I.e.HEADER_SCALE_LARGE,"24px"),p()(Bt,I.e.HEADER_SCALE_MEDIUM,"20px"),p()(Bt,I.e.HEADER_SCALE_SMALL,"16px"),Bt),en=function(e){var t,n,r,o,a,s,i,l,u,m=e.publisher,f=e.customStyleSheet,b=e.post,h=e.forceSmall,j=void 0!==h&&h,P=e.headerLink,T=void 0!==P&&P,R=e.hideAboutLink,A=void 0!==R&&R,L=!!Object(ae.a)("enable_meta_header_v2"),M=Object(C.b)(),B=j?I.e.HEADER_SCALE_SMALL:null!==(t=null==f||null===(n=f.header)||void 0===n?void 0:n.headerScale)&&void 0!==t?t:M.headerScale,D=B===I.e.HEADER_SCALE_SMALL?I.a.CENTER:I.a.END,N=null!==(r=null==f||null===(o=f.header)||void 0===o?void 0:o.horizontalAlignment)&&void 0!==r?r:M.horizontalAlignment,F=Object(E.f)((function(e){return e.config.authDomain})),H=Object(E.f)((function(e){return e.config.isAmp})),V=Object(se.b)(),z=function(e,t){var n,r,o,a=!!(null==e||null===(n=e.header)||void 0===n?void 0:n.backgroundColor)||t&&!!(null==e||null===(r=e.header)||void 0===r?void 0:r.postBackgroundColor),s=!!(null==e||null===(o=e.header)||void 0===o?void 0:o.backgroundImage);return!a&&!s}(f,j),G=(null==f||null===(a=f.header)||void 0===a?void 0:a.logoImage)||null,W=null==f||null===(s=f.header)||void 0===s?void 0:s.logoScale,q=null!==(i=null==f||null===(l=f.header)||void 0===l?void 0:l.nameTreatment)&&void 0!==i?i:M.nameTreatment,$=Xe(f,m).isTaglineVisible,K=v.useMemo((function(){return function(e,t,n,r){return function(o){return{display:"flex",flexGrow:"1",flexDirection:"column",overflow:"hidden",transition:"min-height ".concat(600,"ms"),minHeight:Kt[e],textAlign:Qt[t],alignItems:Yt[t],justifyContent:Yt[n],paddingTop:{xs:"24px",sm:"24px",md:"32px",lg:"32px",xl:"32px"},paddingBottom:{xs:"24px",sm:"24px",md:"32px",lg:"32px",xl:"32px"},borderBottom:r?void 0:"1px solid ".concat(o.baseColor.border.normal)}}}(B,N,D,!z)}),[B,N,D,z]),Y=Object(_t.f)(m),Q="".concat(Object(_t.a)(m)," Homepage"),X=N!==I.a.START||$,J=q===I.j.NAME_TREATMENT_LOGO&&!!G,Z=X?"marginBottom":"marginRight",ee=W||M.logoScale,te=function(e){return q===I.j.NAME_TREATMENT_TEXT?{xs:p()({},e,Xt[ee]),sm:p()({},e,Xt[ee]),md:p()({},e,Jt[ee]),lg:p()({},e,Jt[ee]),xl:p()({},e,Jt[ee])}:p()({},e,Zt[ee])},ne=Yt[N],re=v.useMemo((function(){return g()({},te("marginTop"),te("marginBottom"))}),[]);return L?v.createElement(Ut,{publisher:m,customStyleSheet:f,post:b,forceSmall:j,headerLink:T,hideAboutLink:A}):v.createElement(v.Fragment,null,"Collection"===m.__typename&&v.createElement(Pt.a,{faviconImageId:null==m||null===(u=m.favicon)||void 0===u?void 0:u.id}),v.createElement(et.a,{publisher:m,customStyleSheet:f,withAltBackground:j},v.createElement(U,{customStyleSheet:f,withAltBackground:j},B!==I.e.HEADER_SCALE_SMALL&&v.createElement(Ge,{customStyleSheet:f}),v.createElement(k.WithCx,null,(function(e){return v.createElement(lt.o,null,v.createElement(lt.a,{display:"flex",alignItems:"center",height:"".concat(_.a,"px"),sm:{display:"flex",height:"".concat(_.c,"px")}},v.createElement(lt.a,{display:"flex",alignItems:"center",flexGrow:"1",zIndex:gt.a.metabar},v.createElement(S.a,{href:"https://".concat(F,"/"),ariaLabel:"Homepage"},v.createElement(x.a,{dark:z})),B===I.e.HEADER_SCALE_SMALL&&v.createElement(lt.a,{display:"flex",alignItems:"center",sm:{display:"none"}},v.createElement(lt.a,{marginTop:"1px",marginLeft:"16px",marginRight:"16px"},v.createElement(x.d,null)),v.createElement(S.a,{href:Y,"aria-label":Q},v.createElement(De,{customStyleSheet:f,publisher:m,withAltNameTreatment:j,withTextColorSubtle:z,withCustomSizing:!1})),!j&&v.createElement(lt.a,{marginLeft:"16px"},v.createElement(he,{publisher:m}))),V?v.createElement(w.a,{postId:b&&b.id,collectionSlug:"Collection"===m.__typename?m.slug:void 0,username:"Collection"===m.__typename?void 0:m.username}):null),v.createElement(lt.a,{flexGrow:"0",zIndex:gt.a.metabar},H?v.createElement(O.a,{withoutConversionButton:!0,post:b,publisher:m,hideAboutLink:A}):v.createElement(y.c,{post:b,publisher:m,withoutConversionButton:!0,hideAboutLink:A,setIsMetabarLocked:function(){}}))),B===I.e.HEADER_SCALE_SMALL&&v.createElement(lt.a,{display:"none",sm:{display:"flex",height:"".concat("NAME_TREATMENT_TEXT"===q?"50px":"60px"),alignItems:"center"},xs:{flexDirection:"column",alignItems:"flex-start",height:qt(j,q),justifyContent:j?"center":"space-evenly"}},v.createElement(S.a,{href:Y,"aria-label":Q},v.createElement(De,{customStyleSheet:f,publisher:m,withAltNameTreatment:j,withTextColorSubtle:z,withCustomSizing:!1})),!j&&v.createElement(lt.a,{xs:{marginBottom:"".concat("NAME_TREATMENT_TEXT"===q?"4px":"0"),marginTop:"".concat("NAME_TREATMENT_TEXT"===q?"0":"4px"),marginLeft:"0"},sm:{marginLeft:"16px"}},v.createElement(he,{publisher:m}))),B!==I.e.HEADER_SCALE_SMALL&&v.createElement("div",{className:e(K)},v.createElement(lt.a,{display:"flex",flexDirection:X?"column":"row",flexWrap:"wrap",alignItems:X?ne:"center"},v.createElement(lt.a,c()({display:"flex",flexDirection:X?"column":"row",alignItems:X?ne:"center"},te(Z),function(e,t){var n=e?Ae(t,e,L):{};return J&&n&&n.width&&"object"===d()(n.width)&&"xl"in n.width?{maxWidth:n.width.xl}:{maxWidth:"100%"}}(G,null!=W?W:M.logoScale)),T?v.createElement(S.a,{href:Y,"aria-label":Q},v.createElement(De,{customStyleSheet:f,publisher:m,withAltNameTreatment:j,withTextColorSubtle:!1,withCustomSizing:!0})):v.createElement(De,{customStyleSheet:f,publisher:m,withAltNameTreatment:j,withTextColorSubtle:!1,withCustomSizing:!0}),$&&v.createElement(lt.a,{paddingTop:J?"16px":"8px",minWidth:"300px",maxWidth:"80%"},v.createElement(Qe,{customStyleSheet:f,publisher:m,color:z?"LIGHTER":"DARKER"}))),v.createElement(lt.a,X?{}:re,v.createElement(he,{publisher:m,isSizeResponsive:!0})))))})))))},tn=h()(Wt(),y.b,ve,He,Ze,et.c,Ft),nn=h()(Gt(),H,Fe,We,Je,et.b,Ht),rn=(h()(zt(),y.a,O.b,Vt),function(e){var t,n=v.useState(!1),r=a()(n,2),o=r[0],s=r[1];return v.useEffect((function(){var t;if(null==e||null===(t=e.header)||void 0===t?void 0:t.headerScale){s(!0);var n=setTimeout((function(){s(!1)}),600);return function(){n&&clearTimeout(n)}}}),[null==e||null===(t=e.header)||void 0===t?void 0:t.headerScale]),o})},"./src/components/publisher/MetaHeaderThemeProvider.tsx":function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return E})),n.d(t,"e",(function(){return x})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return O}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/lodash/merge.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n("./src/components/session/useFlag.tsx"),d=n("./src/framework/style/index.ts"),m=n("./src/util/theme.ts");function p(){var e=o()(["\n  fragment MetaHeaderThemeProvider_publisher on Publisher {\n    __typename\n    customStyleSheet {\n      ...MetaHeaderThemeProvider_customStyleSheet\n    }\n    ... on Collection {\n      colorPalette {\n        ...customDefaultBackgroundTheme_colorPalette\n      }\n    }\n  }\n  ","\n  ","\n"]);return p=function(){return e},e}function f(){var e=o()(["\n  fragment MetaHeaderThemeProvider_customStyleSheet on CustomStyleSheet {\n    id\n    ...useMetaHeaderTheme_customStyleSheet\n  }\n  ","\n"]);return f=function(){return e},e}function g(){var e=o()(["\n  fragment useMetaHeaderTheme_customStyleSheet on CustomStyleSheet {\n    ...customDefaultBackgroundTheme_customStyleSheet\n    global {\n      colorPalette {\n        primary {\n          colorPalette {\n            tintBackgroundSpectrum {\n              ...ThemeUtil_colorSpectrum\n            }\n          }\n        }\n      }\n    }\n    header {\n      backgroundColor {\n        colorPalette {\n          tintBackgroundSpectrum {\n            ...ThemeUtil_colorSpectrum\n          }\n        }\n      }\n      postBackgroundColor {\n        colorPalette {\n          tintBackgroundSpectrum {\n            ...ThemeUtil_colorSpectrum\n          }\n        }\n      }\n    }\n  }\n  ","\n  ","\n"]);return g=function(){return e},e}var b=function(e,t){var n,r,o,a,s,i,l=null==e||null===(n=e.header)||void 0===n||null===(r=n.backgroundColor)||void 0===r||null===(o=r.colorPalette)||void 0===o?void 0:o.tintBackgroundSpectrum,c=null==e||null===(a=e.header)||void 0===a||null===(s=a.postBackgroundColor)||void 0===s||null===(i=s.colorPalette)||void 0===i?void 0:i.tintBackgroundSpectrum;return t&&null!=c?c:l},h=function(e){var t,n,r,o,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2?arguments[2]:void 0,i=Object(d.useTheme)(),l=Object(u.a)("enable_meta_header_v2"),c=b(e,a),p=null==e||null===(t=e.global)||void 0===t||null===(n=t.colorPalette)||void 0===n||null===(r=n.primary)||void 0===r||null===(o=r.colorPalette)||void 0===o?void 0:o.tintBackgroundSpectrum,f=c?Object(m.r)({tint:c,accentTint:p},i):Object(m.g)(e,i,s);return l?v(f):f},v=function(e){return s()({},e,{newFonts:{heading:{fontSize:{XL:80,L:64,M:48,S:36,XS:27},lineHeight:{XL:88,L:72,M:56,S:40,XS:34},weight:700}}})},E=function(e){var t=e.publisher,n=e.customStyleSheet,r=e.children,o=e.withAltBackground,a="Collection"===t.__typename?t.colorPalette:null,s=h(n,o,a);return c.createElement(d.ThemeProvider,{theme:s},r)},x=l()(g(),m.i,m.b),y=l()(f(),x),O=l()(p(),y,m.h)},"./src/components/publisher/publisherHelpers.tsx":function(e,t,n){"use strict";n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return y})),n.d(t,"b",(function(){return O})),n.d(t,"f",(function(){return w})),n.d(t,"a",(function(){return _}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),l=n("./node_modules/graphql-tag/src/index.js"),c=n.n(l),u=n("./node_modules/react/index.js"),d=n.n(u);function m(){var e=s()(["\n  mutation postSetPinnedByCreatorAt($postId: ID!, $isPinned: Boolean!) {\n    postSetPinnedByCreatorAt(targetPostId: $postId, isPinned: $isPinned) {\n      __typename\n      ... on Post {\n        id\n        pinnedByCreatorAt\n      }\n    }\n  }\n"]);return m=function(){return e},e}function p(){var e=s()(["\n  mutation setPinnedAt($postId: ID!, $collectionId: ID!, $pinnedAt: Boolean!) {\n    __typename\n    setPinnedAt(targetPostId: $postId, targetCollectionId: $collectionId, pinnedAt: $pinnedAt) {\n      __typename\n      ... on Post {\n        id\n        collection {\n          id\n        }\n        pendingCollection {\n          id\n        }\n        pinnedAt\n      }\n    }\n  }\n"]);return p=function(){return e},e}var f=c()(p()),g=c()(m()),b=n("./src/routes/RoutingContext.tsx"),h=n("./src/util/routes.ts");function v(){var e=s()(["\n  fragment useIsPinnedInContext_post on Post {\n    id\n    collection {\n      id\n    }\n    pendingCollection {\n      id\n    }\n    pinnedAt\n    pinnedByCreatorAt\n  }\n"]);return v=function(){return e},e}var E=c()(v()),x=function(e){var t=e.id,n=e.collection,r=e.pendingCollection,a=e.pinnedAt,s=(n||r||{id:""}).id,l=Object(i.d)(f,{optimisticResponse:{__typename:"Mutation",setPinnedAt:{__typename:"Post",id:t,collection:n,pendingCollection:r,pinnedAt:a?0:Date.now()}}}),c=o()(l,1)[0],u=d.a.useCallback((function(){return c({variables:{postId:t,collectionId:s,pinnedAt:!a}})}),[t,s,a,c]);return[a,u]},y=function(e){var t=e.id,n=e.pinnedByCreatorAt,r=Object(i.d)(g,{optimisticResponse:{postSetPinnedByCreatorAt:{__typename:"Post",id:t,pinnedByCreatorAt:n?0:Date.now()}}}),a=o()(r,1)[0],s=d.a.useCallback((function(){return a({variables:{postId:t,isPinned:!n}})}),[t,a,n]);return[n,s]},O=function(e,t){var n=x(e),r=o()(n,2),a=r[0],s=r[1],i=y(e),l=o()(i,2),c=l[0],u=l[1],m=d.a.useCallback((function(){return"Collection"===t?s():u()}),[t,s,u]);return["Collection"===t?a:c,m]},w=function(e){var t="Collection"===e.__typename?e.slug:null,n=Object(b.d)("ShowCollectionHome",t?{collectionSlug:t}:{collectionSlug:""});return"Collection"===e.__typename?n:"User"===e.__typename&&e.username?Object(h.yc)(e.username):""},_=function(e){switch(e.__typename){case"Collection":return"Publication";case"User":return"Author";default:return"Publisher"}}},"./src/components/publisher/theming/defaultStyleSheet.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n("./src/components/session/useFlag.tsx"),o=n("./src/schema-types/globalTypes.ts"),a=function(){return s(!!Object(r.a)("enable_meta_header_v2"))},s=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{horizontalAlignment:o.a.START,headerScale:e?o.e.HEADER_SCALE_SMALL:o.e.HEADER_SCALE_MEDIUM,logoScale:o.e.HEADER_SCALE_MEDIUM,backgroundColorDisplayMode:o.d.COLOR_DISPLAY_MODE_SOLID,backgroundImageDisplayMode:o.f.IMAGE_DISPLAY_MODE_FILL,backgroundImageVerticalAlignment:o.a.START,nameTreatment:o.j.NAME_TREATMENT_TEXT,postNameTreatment:o.j.NAME_TREATMENT_LOGO,taglineTreatment:o.v.TAGLINE_TREATMENT_SIDEBAR,backgroundColor:null,secondaryBackgroundColor:null,postBackgroundColor:null,taglineColor:null,backgroundImage:null,logoImage:null,nameColor:null}},i=function(){return l(!!Object(r.a)("enable_sohne"))},l=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{font1:{name:e?o.u.SANS_SERIF_1:o.u.SERIF_1},font2:{name:o.u.SANS_SERIF_1},font3:{name:o.u.SERIF_2}}}},"./src/components/read-next/ReadNext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return D}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),l=n.n(i),c=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),u=n("./node_modules/graphql-tag/src/index.js"),d=n.n(u),m=n("./node_modules/react/index.js"),p=n("./node_modules/react-redux/es/index.js"),f=n("./src/components/ui/image/index.ts"),g=n("./src/framework/design-system/components/index.ts"),b=n("./src/framework/design-system/type/Detail.tsx"),h=n("./src/framework/design-system/type/Overline.tsx"),v=n("./src/framework/style/index.ts"),E=n("./src/util/miroImage.ts"),x=n("./src/util/routes.ts");function y(){var e=o()(["\n  fragment ReadNextPostCard_post on Post {\n    id\n    title\n    mediumUrl\n    primaryTopic {\n      name\n      slug\n    }\n    collection {\n      id\n      name\n    }\n    previewImage {\n      id\n      alt\n      focusPercentX\n      focusPercentY\n    }\n  }\n"]);return y=function(){return e},e}var O=d()(y()),w=Object(p.c)((function(e){return{mediumOwnedAndOperatedCollectionIds:e.config.mediumOwnedAndOperatedCollectionIds,isCustomDomain:e.client.isCustomDomain}}))((function(e){var t=e.isCustomDomain,n=e.mediumOwnedAndOperatedCollectionIds,r=e.post,o=r&&r.previewImage||{},a=o.focusPercentX,s=o.focusPercentY,i=o.id,l=o.alt,c=r.collection||{},u=c.name,d=c.id,p=r.primaryTopic&&r.primaryTopic.name,y=d&&(n.includes(d)?u:p)||"",O=r&&r.title||"",w=Object(x.Gb)(r,t),_=Object(v.useCx)(),S=m.createElement(g.a,{marginBottom:"4px"},m.createElement(h.a,{tag:"span"},m.createElement(b.a,{scale:"S",color:"DARKER"},m.createElement("div",{className:_({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"})},y))));return m.createElement(g.d,{href:w},m.createElement(g.a,{display:"flex",flexDirection:"column",justifyContent:"center",marginTop:"20px"},S,m.createElement(g.a,{display:"flex",flexDirection:"row"},m.createElement(f.c,{miroId:i||"",alt:l||"",height:50,width:50,freezeGifs:!0,strategy:E.a.Crop,rules:{marginRight:"9px",marginTop:"4px"},focusPercentX:a||50,focusPercentY:s||50}),m.createElement(g.a,{display:"flex",flexDirection:"column",width:"130px"},m.createElement(b.a,{scale:"S",color:"DARKER",clamp:3},O)))))})),_=n("./src/components/session/WithViewer.tsx"),S=n("./src/framework/design-system/components/buttons/CloseButton.tsx"),j=n("./src/framework/design-system/type/index.ts"),P=n("./src/framework/reporter/index.ts"),C=n("./src/framework/source/index.ts"),k=n("./src/screens/helpers/visits.ts"),I=n("./src/util/constants.ts");function T(){var e=o()(["\n  query ReadNextQuery($postId: ID!) {\n    post(id: $postId) {\n      id\n      readNext {\n        ... on ReadNextItem {\n          reason\n          post {\n            ... on Post {\n              ...ReadNextPostCard_post\n            }\n          }\n        }\n      }\n    }\n  }\n  ","\n"]);return T=function(){return e},e}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L={display:"none"},M={":last-of-type":{xs:L,sm:L,md:L,lg:L,xl:{display:"block"}}},B=function(e){var t=e.isVisible,n=void 0===t||t,r=e.postId,o=m.useState(!1),a=l()(o,2),s=a[0],i=a[1],u=Object(c.e)(_.a).data,d=(u=void 0===u?{viewer:void 0}:u).viewer,p=Object(c.c)(N),f=l()(p,2),b=f[0],h=f[1],E=h.called,x=h.loading,y=h.error,O=h.data,I=(O=void 0===O?{post:void 0}:O).post,T=d&&D(d)&&!(Object(k.i)()||s),R=Object(P.c)(),L=Object(v.useCx)(),B=Object(C.e)(),U=I&&I.readNext;return m.useEffect((function(){x||!y||U&&U.length||R.event("readNextError",{post:I,postId:r,error:y,readNextLength:U&&U.length||0})}),[x]),m.useEffect((function(){n&&U&&(R.event("readNext.viewed",{position:"sidebar"}),U.slice(0,4).map((function(e,t){var n=e.post,r=e.reason;return R.event("post.clientPresented",{source:Object(C.c)(A({},B,{index:t,postFeedReason:r||void 0})),location:"post/".concat(n&&n.id)}),!0})))}),[n,U]),!E&&T&&b({variables:{postId:r||""}}),E&&!x&&!y&&I&&U&&U.length&&T?m.createElement(C.b,{source:{name:"read_next",sectionType:C.a.READ_NEXT_SIDEBAR},extendSource:!0},m.createElement(g.a,{width:"188px"},m.createElement(g.a,{md:{display:"none"},lg:{width:"780px",margin:"0 24px"},position:"relative",backgroundColor:"BACKGROUND",paddingBottom:"24px",paddingTop:"24px",width:"100%"},m.createElement(g.a,{position:"absolute",right:"0",top:"-4px"},m.createElement(S.a,{onClick:function(){Object(k.a)(),i(!0)},size:"SMALL",isPositionAbsolute:!1})),m.createElement(g.a,{width:"200px"},m.createElement(j.d,{scale:"XS"},"Your journey starts here.")),m.createElement(g.a,{display:"flex",flexDirection:"column",justifyContent:"space-between"},I.readNext.slice(0,4).map((function(e,t){var n=e.post;return m.createElement("div",{className:L(M),key:t},m.createElement(w,{key:t,post:n}))})))))):null};function D(e){return e&&e.createdAt+I.a>Date.now()}var N=d()(T(),O)},"./src/components/responses/MobileHideSpan.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/framework/design-system/components/index.ts"),c=function(e){var t=e.xs,n=e.sm,r=e.children,a=s()(e,["xs","sm","children"]);return i.createElement(l.a,o()({xs:{display:"none"},sm:{display:t?"inline-block":"none"},md:{display:t||n?"inline-block":"none"},lg:{display:"inline-block"},xl:{display:"inline-block"},tag:"span"},a),r)},u=function(e){var t=e.xs,n=e.sm,r=e.children,a=s()(e,["xs","sm","children"]);return i.createElement(l.a,o()({xs:{display:"inline-block"},sm:{display:t?"none":"inline-block"},md:{display:t||n?"none":"inline-block"},lg:{display:"none"},xl:{display:"none"},tag:"span"},a),r)}},"./src/components/responses/ReadOrEditSimpleResponseContext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/react/index.js"),o=r.createContext({isEditing:!1,setIsEditing:function(){return null},setEditingQuote:function(){return null}})},"./src/components/responses/ResponseQuote.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(a),i=n("./node_modules/graphql-tag/src/index.js"),l=n.n(i),c=n("./node_modules/react/index.js"),u=n("./src/components/post/paragraph/TextParagraph.tsx"),d=n("./src/framework/style/index.ts"),m=n("./src/schema-types/globalTypes.ts"),p=n("./src/util/quote.ts");function f(){var e=o()(["\n  fragment ResponseQuote_post on Post {\n    inResponseToMediaResource {\n      href\n      mediumQuote {\n        quoteId\n        startOffset\n        endOffset\n        paragraphs {\n          ...TextParagraph_paragraph\n        }\n        ...buildQuotePreviewParagraph_quote\n      }\n    }\n  }\n  ","\n  ","\n"]);return f=function(){return e},e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e){var t=e.inResponseToMediaResource,n=Object(d.useCx)(),r=null==t?void 0:t.mediumQuote;if(!r)return null;var o=Object(p.a)(r);if(!o||!o.type)return null;var a=o.type;return a===m.m.IMG||a===m.m.IFRAME||a===m.m.COVER_TITLE||a===m.m.HR||a===m.m.MIXTAPE_EMBED||a===m.m.SECTION_CAPTION?null:c.createElement("div",{onClick:function(){var e=null==t?void 0:t.href;if(e){var n=null==e?void 0:e.split("#")[1];if(n){var r=n.split("--")[0];if(r){var o=document.getElementById(r);if(o){var a=(null==o?void 0:o.offsetTop)-100;a&&window.scrollTo({top:a,behavior:"smooth"})}}}}},className:n({boxShadow:"0px 1px 4px rgba(0,0,0,0.04)",border:"1px solid rgba(0,0,0,0.1)",borderRadius:"3px",marginTop:"22px",marginBottom:"3px",padding:"20px 16px",cursor:"pointer"})},c.createElement(u.g,{paragraph:b({},o,{name:"embedded-quote-".concat(r.quoteId,"-").concat(o.name)}),paragraphStyle:a,spaceTop:4,richTextStyle:"STREAM"}))},v=l()(f(),p.c,u.d)},"./src/components/responses/ResponsesContext.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/react/index.js"),o=r.createContext({setIsSavingResponse:function(){return null},editingResponsesAtIndices:[],setEditingResponsesAtIndices:function(){return null},setInResponseToQuote:function(){return null}})},"./src/components/responses/ResponsesIconButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return _}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n.n(i),c=n("./src/components/responses/MobileHideSpan.tsx"),u=n("./src/framework/design-system/components/index.ts"),d=n("./src/framework/design-system/type/index.ts"),m=n("./src/framework/reporter/index.ts"),p=n("./src/framework/source/index.ts"),f=n("./src/framework/style/index.ts"),g=n("./src/svg/response-25px.svg");function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=l.a.createElement("path",{clipRule:"evenodd",d:"M24.28 25.5l.32-.29c2.11-1.94 3.4-4.61 3.4-7.56C28 11.83 22.92 7 16.5 7S5 11.83 5 17.65s5.08 10.66 11.5 10.66c1.22 0 2.4-.18 3.5-.5l.5-.15.41.33a8.86 8.86 0 0 0 4.68 2.1 7.34 7.34 0 0 1-1.3-4.15v-.43zm1 .45c0 1.5.46 2.62 1.69 4.44.22.32.01.75-.38.75a9.69 9.69 0 0 1-6.31-2.37c-1.2.35-2.46.54-3.78.54C9.6 29.3 4 24.09 4 17.65 4 11.22 9.6 6 16.5 6S29 11.22 29 17.65c0 3.25-1.42 6.18-3.72 8.3z"}),v=function(e){return l.a.createElement("svg",b({width:33,height:33,viewBox:"0 0 33 33",fill:"none"},e),h)},E=n("./src/util/hooks/useIsEligibleToViewNewResponses.tsx");function x(){var e=o()(["\n  fragment ResponsesIconButton_post on Post {\n    allowResponses\n    postResponses {\n      count\n    }\n  }\n"]);return x=function(){return e},e}var y=function(e){return{fill:e.baseColor.fill.normal}},O=function(e){return{fill:e.baseColor.fill.normal,opacity:.4,cursor:"not-allowed"}},w=function(e){var t=e.allowResponses,n=e.responsesCount,r=e.location,o=e.setIsResponsesSidebarVisible,a=e.postId,s=e.isLimitedState,l=e.shouldHideResponsesText,b=void 0!==l&&l,h=Object(f.useCx)(),x=Object(m.c)(),w=Object(p.d)(),_=Object(E.a)();if(!_||!t)return null;var S="sidebar"===r,j="preview"===r,P="response"===r,C=S||j?i.createElement(g.a,{className:h(y),"aria-label":"responses"}):P?i.createElement(u.a,{position:"relative",top:"2px"},i.createElement(g.a,{"aria-label":"responses"})):i.createElement(i.Fragment,null,i.createElement(c.a,{marginLeft:"-1px"},i.createElement(v,{className:h(y),"aria-label":"responses"})),i.createElement(c.b,{marginLeft:"-4px"},i.createElement(g.a,{className:h(y),"aria-label":"responses"}))),k=i.createElement(u.z,{darkTheme:!0,popoverRenderFn:function(){return i.createElement(u.a,{padding:"8px",whiteSpace:"nowrap"},"This feature is temporarily disabled.")},placement:"top",targetDistance:15},S||j?i.createElement(g.a,{className:h(O),"aria-label":"responses"}):P?i.createElement(u.a,{position:"relative",top:"2px"},i.createElement(g.a,{className:h(O),"aria-label":"responses"})):i.createElement(i.Fragment,null,i.createElement(c.a,{marginLeft:"-1px"},i.createElement(v,{className:h(O),"aria-label":"responses"})),i.createElement(c.b,{marginLeft:"-4px"},i.createElement(g.a,{className:h(O),"aria-label":"responses"})))),I={paddingLeft:S?"6px":P?"3px":"7px",top:S?void 0:P?"3.5px":j?"1px":"3px"},T={paddingLeft:S?"6px":"3px",top:P?"3.5px":j?"-1px":"3px"};return i.createElement("button",{onClick:_&&!s?function(){o(!0),x.event("responses.viewAllClicked",{postId:a,source:w})}:void 0,className:h({cursor:"pointer",border:0,padding:0})},i.createElement(u.a,{display:"flex",flexDirection:"row",alignItems:"center",paddingRight:n?"9px":"4px"},s?k:b?i.createElement(u.z,{darkTheme:!0,popoverRenderFn:function(){return i.createElement(d.b,{scale:"S"},i.createElement(u.a,{padding:"8px",whiteSpace:"nowrap"},i.createElement("span",{className:h({color:"white"})},"Responses")))},placement:"top",targetDistance:15},C):C,i.createElement(u.a,{position:"relative",xs:T,sm:T,md:T,lg:I,xl:I},!!n&&i.createElement(d.b,{scale:"M",color:S?"LIGHTER":"DARKER"},n||null," ",!S&&!P&&!s&&!b&&i.createElement(c.a,null,"response",1===n?"":"s")))))},_=s()(x())},"./src/components/responses/ResponsesSidebar.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return mt})),n.d(t,"a",(function(){return bt}));var r=n("./node_modules/@babel/runtime/helpers/toConsumableArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),l=n.n(i),c=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),u=n("./node_modules/react/index.js"),d=n.n(u),m=n("./src/components/responses/ReadOrEditSimpleResponseContext.tsx"),p=n("./src/components/responses/ResponsesContext.tsx"),f=n("./src/components/editor/editorHelpers.tsx"),g=n("./src/components/post/UgcContext.tsx"),b=n("./src/components/post/multivote/MultiVote.tsx"),h=n("./src/components/format/TimeAgo.tsx"),v=n("./src/framework/style/index.ts"),E=function(){var e=Object(v.useCx)();return u.createElement("div",{className:e((function(e){return{color:"white",backgroundColor:e.brandColor.sage.dark,borderRadius:"2px",fontSize:"11px",padding:"0px 6px",height:"16px",display:"flex",alignItems:"center",marginLeft:"8px"}}))},"AUTHOR")},x=n("./src/components/session/useFlag.tsx"),y=n("./src/components/session/useViewer.tsx"),O=n("./src/components/user/UserAvatar.tsx"),w=n("./src/framework/design-system/components/index.ts"),_=n("./src/framework/design-system/type/index.ts"),S=n("./src/framework/source/index.ts"),j=n("./src/svg/overflow-dots-filled-25px.svg"),P=n("./src/util/routes.ts"),C=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),k=n.n(C),I=n("./node_modules/graphql-tag/src/index.js"),T=n.n(I),R=n("./node_modules/react-redux/es/index.js"),A=n("./src/components/responses/ResponsesSidebar_PostResponsesQuery.tsx");function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var B=function(e,t){var n,r=null==e||null===(n=e.post)||void 0===n?void 0:n.postResponses;if(!e||!(null==r?void 0:r.responsesConnection)||null===(null==r?void 0:r.count))return null;var o=r.responsesConnection.stream,a=o.filter((function(e){var n;return(null===(n=e.itemType.post)||void 0===n?void 0:n.id)!==t}));return a.length===o.length?null:Object.assign({},e,{post:M({},e.post,{postResponses:M({},r,{count:r.count-1,responsesConnection:M({},r.responsesConnection,{stream:a})})})})},D=n("./src/components/ui/PopoverMenu.tsx"),N=n("./src/framework/reporter/index.ts"),U=n("./src/store/actions/navigation.ts");function F(){var e=k()(["\n  mutation DeleteResponseMutation($responseId: ID!) {\n    deletePost(targetPostId: $responseId)\n  }\n"]);return F=function(){return e},e}var H,V=T()(F()),z=function(e){var t,n=e.response,r=e.parentPostId,o=e.hidePopoverMenu,a=u.useState(!1),i=s()(a,2),l=i[0],d=i[1],m=Object(N.c)(),p=Object(S.d)(),f=Object(R.e)(),g=Object(y.b)(),b=Object(c.d)(V,{variables:{responseId:n.id},update:function(e){var t={postId:r,postResponsesPaging:{limit:10}},a=e.readQuery({query:A.a,variables:t}),s=B(a,n.id);null!==s&&(e.writeQuery({query:A.a,data:s,variables:t}),m.event("responses.removed",{postId:n.id,source:p}),f(Object(U.m)({message:"Successfully deleted response."})),o())}}),h=s()(b,1)[0];return(null==g?void 0:g.id)&&(null==g?void 0:g.id)===(null===(t=n.creator)||void 0===t?void 0:t.id)?u.createElement(u.Fragment,null,u.createElement(D.b,null,u.createElement(w.m,{onClick:function(){return d(!0)}},"Delete")),l&&u.createElement(w.g,{isVisible:l,hide:function(){return d(!1)},withCloseButton:!1,noPortal:!0,padding:50},u.createElement(w.a,{display:"flex",margin:"auto",flexDirection:"column",alignItems:"center",width:"100%",height:"100%"},u.createElement(_.c,{scale:"M"},"Delete"),u.createElement(w.a,{display:"flex",width:"100%",paddingRight:"5px",marginTop:"10px",marginBottom:"40px",textAlign:"center"},u.createElement(_.b,{scale:"M",color:"DARKER"},"Deleted responses are gone forever.",u.createElement("br",null),"Are you sure?")),u.createElement(w.a,{display:"flex",marginBottom:"20px"},u.createElement(w.m,{onClick:function(){return d(!1)}},u.createElement(_.b,{scale:"M",color:"DARKER"},"Cancel")),u.createElement(w.a,{marginLeft:"25px"},u.createElement(w.b,{buttonStyle:"ERROR",onClick:h,"data-test-id":"close-discussion-button"},"Delete Response")))))):null};!function(e){e.SIMPLE="SIMPLE",e.STORY="STORY"}(H||(H={}));var G=n("./src/framework/style/useCx.ts"),W=n("./src/components/user/UserBlockConfirmDialog.tsx");function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(){var e=k()(["\n  mutation UserBlockMutation($targetUserId: ID!, $userId: ID!) {\n    blockUser(userId: $userId, targetUserId: $targetUserId) {\n      id\n      isBlocking\n    }\n  }\n"]);return K=function(){return e},e}var Y=T()(K()),Q=function(e){var t,n,r=e.response,o=e.parentPost,a=e.hidePopoverMenu,i=Object(y.b)(),l=Object(N.c)(),d=Object(S.d)(),m=Object(R.e)(),p=u.useState(!1),f=s()(p,2),g=f[0],b=f[1],h=function(){return b(!1)},v=null==r||null===(t=r.creator)||void 0===t?void 0:t.id,E=Object(c.d)(Y,{variables:{targetUserId:v,userId:null==i?void 0:i.id},update:function(e){var t={postId:o.id,postResponsesPaging:{limit:10}},n=e.readQuery({query:A.a,variables:t}),r=X(n,v);null!==r&&e.writeQuery({query:A.a,data:r,variables:t})},optimisticResponse:{__typename:"Mutation",blockUser:{__typename:"User",id:v,isBlocking:!0}},onCompleted:function(){h(),m(Object(U.m)({message:"Responses by this user have been hidden from this story."}))}}),x=s()(E,1)[0],O=null===(n=o.creator)||void 0===n?void 0:n.id,_=(null==i?void 0:i.id)===O;return(null==i?void 0:i.id)===v?null:i&&v&&_?u.createElement(u.Fragment,null,u.createElement(D.b,null,u.createElement(w.m,{onClick:function(){b(!0)}},"Block this author")),g&&u.createElement(W.a,{onConfirm:function(){l.event("user.blocked",{userId:v,source:d}),x()},isVisible:g,isInResponsesSidebar:!0,hide:function(){h(),a()}})):null},X=function(e,t){var n,r=null==e||null===(n=e.post)||void 0===n?void 0:n.postResponses;if(!e||!t||!(null==r?void 0:r.responsesConnection)||null===(null==r?void 0:r.count))return null;var o=r.responsesConnection.stream,a=o.filter((function(e){var n,r;return(null===(n=e.itemType.post)||void 0===n||null===(r=n.creator)||void 0===r?void 0:r.id)!==t}));if(a.length===o.length)return null;var s=o.length-a.length;return $({},e,{post:$({},e.post,{postResponses:$({},r,{count:r.count-s,responsesConnection:$({},r.responsesConnection,{stream:a})})})})},J=function(e){var t,n=e.response,r=Object(y.b)(),o=u.useContext(m.a),a=o.setIsEditing,s=o.isEditing,i=o.setEditingQuote;return(null===(t=n.creator)||void 0===t?void 0:t.id)===(null==r?void 0:r.id)?u.createElement(D.b,null,u.createElement(w.m,{onClick:function(){n.inResponseToMediaResource&&i(n.inResponseToMediaResource.mediumQuote),a(!s)}},"Edit this response")):null};function Z(){var e=k()(["\n  mutation HidePostResponseOnParentMutation($parentPostId: ID!, $postResponseId: ID!) {\n    hidePostResponseOnParentPost(parentPostId: $parentPostId, postResponseId: $postResponseId)\n  }\n"]);return Z=function(){return e},e}var ee=T()(Z()),te=function(e){var t,n,r,o=e.responseToBeHidden,a=e.parentPost,i=e.hidePopoverMenu,l=Object(y.b)(),d=Object(R.e)(),m=Object(N.c)(),p=Object(S.d)(),f=(null==l?void 0:l.id)===(null===(t=a.creator)||void 0===t?void 0:t.id),g=null==a||null===(n=a.collection)||void 0===n?void 0:n.viewerIsEditor,b=(null==l?void 0:l.id)===(null===(r=o.creator)||void 0===r?void 0:r.id),h=Object(c.d)(ee,{variables:{postResponseId:o.id,parentPostId:a.id},update:function(e){var t={postId:a.id,postResponsesPaging:{limit:10}},n=e.readQuery({query:A.a,variables:t}),r=B(n,o.id);null!==r&&(e.writeQuery({query:A.a,data:r,variables:t}),m.event("response.hidden",{postId:o.id,source:p}),d(Object(U.m)({message:"",toastStyle:"HIDE_POST_RESPONSE",extraParams:{responseId:o.id,parentPostId:a.id}})),i())}}),v=s()(h,1)[0];return b?null:f||g?u.createElement(D.b,null,u.createElement(w.m,{onClick:v},"Hide this response")):null};function ne(){var e=k()(["\n  mutation UserReportStoryMutation(\n    $targetPostId: ID!\n    $targetAuthorId: ID!\n    $alsoBlockAuthor: Boolean!\n    $reason: String!\n  ) {\n    reportStoryAndMaybeBlockAuthor(\n      targetPostId: $targetPostId\n      targetAuthorId: $targetAuthorId\n      alsoBlockAuthor: $alsoBlockAuthor\n      reason: $reason\n    ) {\n      id\n      isBlocking\n    }\n  }\n"]);return ne=function(){return e},e}var re=T()(ne()),oe=n("./src/components/susi/SusiClickable.tsx"),ae=n("./src/components/user/UserReportStoryDialog.tsx"),se=function(e){var t,n=e.response,r=e.parentPost,o=e.hidePopoverMenu,a=Object(y.b)(),i=Object(N.c)(),l=Object(S.d)(),d=u.useState(!1),m=s()(d,2),p=m[0],f=m[1],g=function(e){var t,n,r=e.response,o=r.id,a=null===(t=r.creator)||void 0===t?void 0:t.id,i=null===(n=r.creator)||void 0===n?void 0:n.isBlocking,l=Object(R.e)(),d=Object(c.d)(re,{variables:{targetPostId:o,targetAuthorId:a,alsoBlockAuthor:!1,reason:"Spam"},onCompleted:function(){l(Object(U.m)({message:"Successfully reported post."}))}}),m=s()(d,2),p=m[0],f=m[1];return{reportStory:u.useCallback((function(e){var t=e.alsoBlockAuthor,n=void 0!==t&&t,r=e.reportReason;return p({variables:{targetPostId:o,targetAuthorId:a,alsoBlockAuthor:n,reason:void 0===r?"Spam":r},optimisticResponse:{__typename:"Mutation",reportStoryAndMaybeBlockAuthor:{__typename:"User",id:a,isBlocking:i||n}}})}),[r,p]),error:null==f?void 0:f.error,loading:null==f?void 0:f.loading}}({response:n}).reportStory,b=(null==a?void 0:a.id)===(null===(t=n.creator)||void 0===t?void 0:t.id);return!n.creator||b?null:u.createElement(u.Fragment,null,u.createElement(D.b,null,(null==a?void 0:a.id)?u.createElement(w.m,{onClick:function(){return f(!0)}},"Report this response"):u.createElement(S.b,{source:{susiEntry:"respond_sidebar"}},u.createElement(oe.a,{operation:"register",post:r},"Report this response"))),u.createElement(ae.a,{onSubmit:function(e,t){return i.event("response.flagged",{postId:n.id,reason:t,source:l}),g({alsoBlockAuthor:e,reportReason:t})},isVisible:p,hide:function(){f(!1),o()},isResponse:!0}))},ie=n("./src/components/post/multivote/ClapMutation.tsx"),le=n("./src/store/actions/multiVote.ts"),ce=n("./src/util/post/claps.ts"),ue=function(e){var t=e.response,n=e.hidePopoverMenu,r=Object(ie.b)(),o=Object(N.c)(),a=Object(y.b)(),s=Object(S.d)(),i=Object(R.f)((function(e){return e.multiVote.clapsPerPost})),l=Object(R.e)(),c=u.useCallback((function(e){return l(Object(le.d)(e))}),[l]),d=Object(ce.a)(i,t),m=d.clapCount,p=d.viewerClapCount;return(null==a?void 0:a.id)&&0!==m&&0!==p?u.createElement(D.b,null,u.createElement(w.m,{onClick:function(){r(t,(null==a?void 0:a.id)||"",-p),c({postId:t.id,clapCount:m-p,viewerClapCount:0,viewerHasClappedSinceFetch:!0}),o.event("post.clientUnvote",{postId:t.id,postIds:[t.id],unvoteCount:p,source:s}),n()}},"Undo applause for this response")):null},de={position:"absolute !important",top:"-16px",right:"0",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.1)",border:"1px solid rgba(0, 0, 0, 0.1)",borderRadius:"4px",zIndex:"1000",backgroundColor:"rgba(255, 255, 255, 1)",minWidth:"150px"},me=function(e){var t=e.response,n=e.responseType,r=e.parentPost,o=e.isPopoverMenuVisible,a=e.hidePopoverMenu,s=Object(G.a)(),i=Boolean(Object(x.a)("enable_responses_moderation")),l=t.creator,c=Boolean(Object(x.a)("enable_responses_edit_and_delete")),d=u.useRef(null);return u.useEffect((function(){var e=function(e){var t;(null==d||null===(t=d.current)||void 0===t?void 0:t.contains(e.target))||a()};if(o)return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}),[o]),t&&l?u.createElement("div",{className:s(de),ref:d},u.createElement(D.a,null,u.createElement(u.Fragment,null,u.createElement(se,{response:t,parentPost:r,hidePopoverMenu:a}),i&&u.createElement(u.Fragment,null,u.createElement(te,{responseToBeHidden:t,parentPost:r,hidePopoverMenu:a}),u.createElement(Q,{response:t,parentPost:r,hidePopoverMenu:a})),n===H.SIMPLE&&u.createElement(ue,{response:t,hidePopoverMenu:a})),c&&u.createElement(u.Fragment,null,n===H.SIMPLE&&u.createElement(J,{response:t}),u.createElement(z,{response:t,hidePopoverMenu:a,parentPostId:r.id})))):null},pe=function(e){return{cursor:"pointer",border:0,fill:e.baseColor.fill.light,":hover":{fill:e.baseColor.fill.dark},":focus":{outline:"none"}}},fe=function(e){var t,n=e.response,r=e.responseType,o=e.parentPost,a=Object(y.b)(),i=Object(v.useCx)(),l=n.creator,c=n.mediumUrl,d=n.createdAt,m=u.useState(!1),p=s()(m,2),f=p[0],g=p[1],b=Boolean(Object(x.a)("enable_responses_edit_and_delete"));if(!n||!l||!c)return null;var C=(null===(t=o.creator)||void 0===t?void 0:t.id)===l.id,k=(null==a?void 0:a.id)===l.id,I=!!b||!k,T=b&&function(e,t){return e&&t===H.SIMPLE}(n,r)&&(null==n?void 0:n.firstPublishedAt)!==(null==n?void 0:n.latestPublishedAt);return u.createElement(u.Fragment,null,u.createElement(w.a,{display:"flex",flexDirection:"row",justifyContent:"space-between"},u.createElement(w.a,{display:"flex",flexDirection:"row",alignItems:"center"},u.createElement(O.d,{scale:"XS",user:l}),u.createElement(w.a,{paddingLeft:"12px"},u.createElement(w.a,{display:"flex",flexDirection:"row"},u.createElement(w.m,{href:Object(P.yc)(l.username||"")},u.createElement(_.b,{scale:"M",color:"DARKER"},l.name)),C&&u.createElement(E,null)),u.createElement(w.m,{href:c,linkStyle:"SUBTLE",inline:!0,noFollow:!0},u.createElement(_.b,{scale:"M"},u.createElement(h.a,{timestamp:d}),T&&u.createElement(u.Fragment,null," (edited)"))))),I&&u.createElement(w.m,{onClick:function(e){e.nativeEvent.stopPropagation(),g(!f)},inline:!0,className:i(pe)},u.createElement(j.a,null))),f&&u.createElement("div",{className:i({position:"relative"})},u.createElement(S.b,{source:{susiEntry:"respond_sidebar"},extendSource:!0},u.createElement(me,{response:n,responseType:r,parentPost:o,isPopoverMenuVisible:f,hidePopoverMenu:function(){return g(!1)}}))))},ge=n("./src/components/responses/ResponseQuote.tsx"),be=n("./src/components/responses/ResponsesIconButton.tsx"),he=n("./src/components/post/markups/Markups.tsx"),ve=n("./src/schema-types/globalTypes.ts"),Ee=n("./src/util/string.ts");function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return"char"===e&&t>f.b||"line"===e&&n>f.c}function we(e){var t=e.paragraphs,n=e.truncateStrategy,r=e.isExpanded,o=Object(v.useCx)(),a=0,s=0,i="none"!==n&&!r;return u.createElement("pre",{className:o({whiteSpace:"pre-wrap"})},t.map((function(e){if(!r&&Oe(n,a,s))return null;var t=(null==e?void 0:e.text)||"";a+=t.length||0,s+=t.split("\n").length||0;var l=ye({},e,{dropCapImage:null,hasDropCap:null}),c=!r&&Oe(n,a,s);if(c&&"char"===n){var d=f.b-(a-t.length||0);l.markups=l.markups.reduce((function(e,t){if(t.start<d){var n=ye({},t);n.end>d&&(n.end=d),e.push(n)}return e}),[]),l.text=Object(Ee.b)(t,d)}return u.createElement(w.a,{padding:"5px 0px",key:e.name||e.id},u.createElement(_.b,{scale:"M",color:"DARKER"},u.createElement("div",{className:o({lineHeight:"24px"})},u.createElement(he.a,{paragraph:l,richTextStyle:"FULL_PAGE",paragraphStyle:ve.m.P}),i&&c&&"...")))})).filter((function(e){return!!e})))}var _e=n("./src/framework/track/index.ts"),Se=n("./src/framework/track/PostPresentationTracker.tsx"),je=n("./src/util/useragent.ts"),Pe=function(){return{paddingBottom:"5px",cursor:"pointer"}},Ce=function(e){var t,n=e.simpleResponse,r=e.parentPost,o=e.omitBottomBorder,a=n.creator,i=n.content,l=n.mediumUrl,c=n.isLimitedState,d=u.useState(!1),m=s()(d,2),p=m[0],h=m[1],E=u.useRef(null),x=Object(v.useCx)();Object(_e.h)(E,n);var y=null==i||null===(t=i.bodyModel)||void 0===t?void 0:t.paragraphs;if(!(a&&i&&y&&l))return null;var O,j=y.map((function(e){return e.text||""})),P=(O=j).join("").length>f.b?"char":O.join("\n").split("\n").length>f.c?"line":"none",C="none"!==P,k=C&&!p,I=Object(je.d)(navigator&&navigator.userAgent);return u.createElement(Se.b,{post:n,presentationContext:"POST_PREVIEW",isDisplayingFullPost:!C},u.createElement(w.a,{paddingTop:"25px",paddingBottom:I&&o?"48px":"16px",borderBottom:o?void 0:"BASE_LIGHTER",ref:E},u.createElement(fe,{response:n,responseType:H.SIMPLE,parentPost:r}),u.createElement(ge.a,{inResponseToMediaResource:n.inResponseToMediaResource}),u.createElement(w.a,{marginTop:"5px"},u.createElement(g.a.Provider,{value:!0},u.createElement(we,{paragraphs:y,truncateStrategy:P,isExpanded:p}))),k&&u.createElement("div",{onClick:function(){return h(!0)},className:x(Pe)},u.createElement(_.b,{scale:"S",color:"ACCENT"},"Read More")),u.createElement(w.a,{display:"flex",flexDirection:"row",alignItems:"center",marginTop:"14px"},u.createElement(S.b,{source:{susiEntry:"respond_sidebar"},extendSource:!0},u.createElement(b.a,{buttonStyle:"SUBTLE",post:n,shouldShowResponsiveLabelText:!0})),u.createElement(w.a,{width:"12px"}),u.createElement(w.m,{href:l+"?responsesOpen=true"},u.createElement(be.a,{location:"response",postId:n.id,responsesCount:n.responsesCount,setIsResponsesSidebarVisible:function(){},allowResponses:n.allowResponses,isLimitedState:c})))))},ke=n("./node_modules/react-loadable/lib/index.js"),Ie=n.n(ke),Te=n("./src/components/responses/editor/SimpleEditorType.tsx"),Re=n("./src/screens/ErrorScreen.tsx"),Ae=n("./src/screens/LoadingScreen.tsx");function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Me={delay:1e3,timeout:2e4,loading:function(e){return e.error?u.createElement(Re.a,{error:e.error}):e.timedOut?u.createElement(Re.a,{error:new Error("Loadable Screen component has timed out")}):e.pastDelay?u.createElement(Ae.a,null):null}},Be=Ie()(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Me,{loader:function(){return Promise.all([n.e(8),n.e(70)]).then(n.bind(null,"./src/components/responses/editor/InlineResponseEditor.tsx"))},modules:["src/components/responses/editor/InlineResponseEditor"],webpack:function(){return["./src/components/responses/editor/InlineResponseEditor.tsx"]},render:function(e,t){var n=e.InlineResponseEditor;return u.createElement(n,t)}})),De=function(e){var t=e.parentPostId,n=e.responseId,r=e.type,o=void 0===r?Te.a.create:r,a=e.initialValue;return u.createElement(Be,{parentPostId:t,responseId:n,type:o,initialValue:a})},Ne=function(e){var t,n,r,a,i=e.response,l=e.index,c=e.parentPost,d=e.omitBottomBorder,f=u.useState(!1),g=s()(f,2),b=g[0],h=g[1],v=u.useState(null),E=s()(v,2),x=E[0],y=E[1],O=u.useContext(p.a),w=O.editingResponsesAtIndices,_=O.setEditingResponsesAtIndices;return u.useEffect((function(){if(b&&!w.includes(l)&&_([].concat(o()(w),[l])),!b&&w.includes(l)){var e=w.filter((function(e){return e!==l}));_(e)}}),[b,w,_]),i.post?b?u.createElement(m.a.Provider,{value:{isEditing:b,setIsEditing:h,latestRev:null===(t=i.post)||void 0===t?void 0:t.latestRev,createdAt:null===(n=i.post)||void 0===n?void 0:n.createdAt,setEditingQuote:y,editingQuote:x}},u.createElement(S.b,{source:{index:l},key:i.post.id,extendSource:!0},u.createElement(De,{type:Te.a.edit,parentPostId:c.id,responseId:i.post.id,initialValue:null==i||null===(r=i.post)||void 0===r||null===(a=r.content)||void 0===a?void 0:a.bodyModel}))):u.createElement(m.a.Provider,{value:{isEditing:b,setIsEditing:h,setEditingQuote:y,editingQuote:x}},u.createElement(S.b,{source:{index:l},key:i.post.id,extendSource:!0},u.createElement(Ce,{parentPost:c,simpleResponse:i.post,omitBottomBorder:d}))):null},Ue={"0%":{opacity:"0.8"},"50%":{opacity:"0.5"},"100%":{opacity:"0.8"}},Fe=function(){var e=Object(v.useKeyframes)({shimmerKeyframesName:Ue}).shimmerKeyframesName,t=Object(v.useCx)();return u.createElement("div",{className:t((function(){return{animation:"".concat(e," 1.2s ease-in-out infinite"),padding:"32px 0"}}))},u.createElement(w.a,{display:"flex",flexDirection:"row"},u.createElement(w.a,{height:"32px",width:"32px",borderRadius:"100%",backgroundColor:"BASE_NORMAL"}),u.createElement(w.a,{marginLeft:"8px",marginTop:"4px"},u.createElement(w.a,{height:"8px",width:"120px",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),u.createElement(w.a,{height:"8px",width:"80px",backgroundColor:"BASE_NORMAL"}))),u.createElement(w.a,{marginTop:"12px"},u.createElement(w.a,{height:"10px",width:"100%",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),u.createElement(w.a,{height:"10px",width:"100%",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),u.createElement(w.a,{height:"10px",width:"90%",backgroundColor:"BASE_NORMAL"})))},He=n("./src/svg/clap-filled-19px.svg"),Ve=n("./src/svg/response-filled-19px.svg"),ze=n("./src/util/numbers.ts"),Ge=function(e){return{fill:e.baseColor.fill.lighter,float:"right"}},We=function(e){var t,n,r=e.storyResponse,o=e.parentPost,a=e.omitBottomBorder,s=Object(v.useCx)(),i=r.creator,l=r.previewContent,c=r.mediumUrl,d=r.clapCount,m=r.responsesCount,p=null==l||null===(t=l.bodyModel)||void 0===t?void 0:t.paragraphs;if(!(i&&l&&l.bodyModel&&c&&p))return null;var f=function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var i=a.value;if(i.text&&(t.push(i),t.length>=2))break}}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return{title:t[0],subtitle:t[1]}}(p);if(!f.title&&!f.subtitle)return null;var g,b=null!==(null===(n=r.inResponseToMediaResource)||void 0===n?void 0:n.mediumQuote),h=m||0;return u.createElement(Se.b,{post:r,presentationContext:"POST_PREVIEW",isDisplayingFullPost:!1},u.createElement(w.a,{paddingTop:"25px",paddingBottom:"20px",borderBottom:a?void 0:"BASE_LIGHTER"},u.createElement(fe,{response:r,responseType:H.STORY,parentPost:o}),u.createElement(ge.a,{inResponseToMediaResource:r.inResponseToMediaResource}),u.createElement(w.d,{href:Object(P.Gb)(r)},u.createElement("div",{className:s({boxShadow:"0px 1px 4px rgba(0,0,0,0.04)",border:"1px solid rgba(0,0,0,0.1)",borderRadius:"3px",padding:"12px",marginTop:b?"12px":"16px"})},u.createElement("div",{className:s(Ge)},u.createElement(_.b,{scale:"S",color:"LIGHTER"},u.createElement(w.a,{display:"flex",flexGrow:"0",alignItems:"center",marginLeft:d>0||h>0?"20px":"0"},d>0?u.createElement(w.a,{display:"flex",alignItems:"center"},u.createElement(w.a,{tag:He.a,marginRight:"2px"}),u.createElement("div",null,Object(ze.d)(d))):null,h>0?u.createElement(w.a,{display:"flex",alignItems:"center"},u.createElement(w.a,{tag:Ve.a,marginLeft:d?"8px":"0",marginRight:"2px"}),u.createElement("div",null,Object(ze.d)(h))):null))),u.createElement(_.b,{scale:"M",clamp:2,color:"DARKER"},f.title&&u.createElement(w.a,null,f.title.text),f.subtitle&&u.createElement("div",{className:s((g=f.title.type,function(e){return{color:g===ve.m.H3?e.baseColor.text.lighter:e.baseColor.text.normal}}))},f.subtitle.text))))))},qe=n("./src/components/responses/management-menu/CloseDiscussionMenuItem.tsx"),$e={position:"absolute !important",right:"0",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.1)",border:"1px solid rgba(0, 0, 0, 0.1)",borderRadius:"4px",zIndex:"1000",backgroundColor:"rgba(255, 255, 255, 1)",minWidth:"200px"},Ke=function(e){var t=e.parentPostId,n=e.responsesLocked,r=e.isPopoverMenuVisible,o=e.hidePopoverMenu,a=Object(G.a)(),s=Object(R.f)((function(e){return e.config.authDomain})),i=u.useRef(null);return u.useEffect((function(){var e=function(e){var t;(null==i||null===(t=i.current)||void 0===t?void 0:t.contains(e.target))||o()};if(r)return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}),[r]),u.createElement("div",{className:a($e),ref:i},u.createElement(D.a,null,u.createElement(D.b,null,u.createElement(w.m,{href:Object(P.Fb)(s,t)},"Manage responses")),u.createElement(qe.a,{parentPostId:t,responsesLocked:n,hidePopoverMenu:o})))},Ye=function(e){return{cursor:"pointer",border:0,fill:e.baseColor.fill.light,":hover":{fill:e.baseColor.fill.dark},":focus":{outline:"none"}}},Qe=function(e){var t,n,r=e.parentPost,o=e.responsesLocked,a=Object(G.a)(),i=Object(y.b)(),l=Object(R.f)((function(e){return e.config.authDomain})),c=Boolean(Object(x.a)("enable_lock_responses")),d=u.useState(!1),m=s()(d,2),p=m[0],f=m[1],g=(null==i?void 0:i.id)===(null===(t=r.creator)||void 0===t?void 0:t.id),b=null==r||null===(n=r.collection)||void 0===n?void 0:n.viewerIsEditor;return g||b?c?u.createElement(w.a,null,u.createElement(w.m,{onClick:function(e){e.nativeEvent.stopPropagation(),f(!p)},inline:!0,className:a(Ye)},u.createElement(j.a,null)),p&&u.createElement("div",{className:a({position:"relative"})},u.createElement(S.b,{source:{susiEntry:"respond_sidebar"},extendSource:!0},u.createElement(Ke,{parentPostId:r.id,responsesLocked:o,isPopoverMenuVisible:p,hidePopoverMenu:function(){return f(!1)}})))):u.createElement(w.a,{paddingRight:"8px"},u.createElement(w.m,{href:Object(P.Fb)(l,r.id),linkStyle:"OBVIOUS",inline:!0},u.createElement(_.b,{scale:"S",color:"LIGHTER"},"Manage responses"))):null},Xe=n("./src/components/session/RequireFlag.tsx"),Je=n("./src/framework/design-system/components/buttons/CloseButton.tsx");function Ze(){return(Ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var et,tt,nt=d.a.createElement("path",{d:"M3.85 5.15a.5.5 0 0 0-.7.7l4.35 4.36 4.35-4.36a.5.5 0 1 0-.7-.7L7.5 8.79 3.85 5.15z",fillRule:"evenodd"}),rt=function(e){return d.a.createElement("svg",Ze({width:15,height:15,viewBox:"0 0 15 15"},e),nt)};!function(e){e.StoryResponse="StreamItemPostStoryResponse",e.SimpleResponse="StreamItemPostSimpleResponse"}(et||(et={})),function(e){e.Recommended="Recommended",e.Oldest="Oldest",e.Newest="Newest"}(tt||(tt={}));var ot=[tt.Recommended,tt.Newest,tt.Oldest],at={height:"80vh",textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",fontStyle:"italic",fontWeight:200},st=function(e){var t,n,r,o=e.responses,a=e.parentPost,i=e.responsesLocked,l=e.isLockedResponse,c=e.isLoadingInitialContent,d=e.isFetchingNextSetOfResponses,m=e.isResponsesSidebarVisible,f=e.setIsResponsesSidebarVisible,g=e.inResponseToQuote,b=e.setInResponseToQuote,h=Object(v.useCx)(),E=u.useState(tt.Recommended),x=s()(E,2),y=x[0],O=x[1],j=u.useState(!1),P=s()(j,2),C=P[0],k=P[1],I=u.useState([]),T=s()(I,2),R=T[0],A=T[1],L=a.id,M=(null==o?void 0:o.count)&&0!==(null==o?void 0:o.count)?"(".concat(null==o?void 0:o.count,")"):"",B=null==o||null===(t=o.responsesConnection)||void 0===t?void 0:t.stream,N=null==o||null===(n=o.responsesConnection)||void 0===n||null===(r=n.pagingInfo)||void 0===r?void 0:r.next,U=B&&o&&o.count&&(null==B?void 0:B.length)<(null==o?void 0:o.count)-1,F=d&&N&&U;return u.createElement(p.a.Provider,{value:{setIsSavingResponse:k,responsesLocked:i,isLockedResponse:l,editingResponsesAtIndices:R,setEditingResponsesAtIndices:A,inResponseToQuote:g,setInResponseToQuote:b}},m&&C&&u.createElement(w.n,{horizontalOverride:{left:"calc(100vw - ".concat(mt,")")}}),u.createElement(w.a,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"24px",paddingBottom:"18px"},u.createElement(_.c,{scale:"S"},"Responses ",M),u.createElement(w.a,{display:"flex",flexDirection:"row"},u.createElement(Qe,{parentPost:a,responsesLocked:i}),u.createElement(w.a,{position:"relative",right:"-7px"},u.createElement(Je.a,{onClick:function(){return f(!1)},size:"REGULAR",isPositionAbsolute:!1})))),c?u.createElement(w.a,{padding:"0 24px"},u.createElement(Fe,null)):u.createElement(u.Fragment,null,u.createElement(De,{parentPostId:L}),u.createElement(Xe.a,{name:"enable_responses_sortby"},u.createElement(w.A,{initialVisibility:!0},(function(e){var t=e.isVisible,n=e.toggle,r=e.hide;return u.createElement(w.a,{backgroundColor:"BASE_LIGHT",padding:"10px 24px"},u.createElement(w.p,{isVisible:t,hide:r,customZIndex:530,popoverRenderFn:function(){return u.createElement(D.a,null,ot.map((function(e){return u.createElement(D.b,null,u.createElement(w.m,{linkStyle:"SUBTLE",onClick:function(){!function(e){O(e)}(e),r()}},e))})))}},u.createElement(w.m,{onClick:n},y,u.createElement(rt,{className:h({margin:"0px 5px"})}))))}))),o&&0!==(null==B?void 0:B.length)?u.createElement(w.a,{padding:"0 24px"},null==B?void 0:B.map((function(e,t){var n=e.itemType.__typename,r=R.includes(t+1),o=B.length-1===t;switch(n){case et.SimpleResponse:var s=e.itemType;return s.post?u.createElement(Ne,{key:s.post.id,response:s,index:t,parentPost:a,omitBottomBorder:r||o}):null;case et.StoryResponse:var i=e.itemType;return i.post?u.createElement(S.b,{source:{index:t},key:i.post.id,extendSource:!0},u.createElement(We,{storyResponse:i.post,parentPost:a,omitBottomBorder:r||o})):null;default:return null}})),F&&u.createElement(Fe,null)):u.createElement("div",{className:h(at)},u.createElement(_.b,{scale:"L",color:"LIGHTER"},"There are currently no responses for this story."),u.createElement(_.b,{scale:"L",color:"LIGHTER"},"Be the first to respond."))))},it=n("./src/components/style/BaseThemeProvider.tsx"),lt=n("./src/styles/breakpoints.ts");function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dt=function(){return{top:"0px",left:"0px",width:"100%",height:"100%",position:"fixed",backgroundColor:"rgba(0, 0, 0, 0.08)",zIndex:510,cursor:"pointer",opacity:0,transition:"opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0s",pointerEvents:"none"}},mt="414px",pt=function(e){return l()({width:mt,position:"fixed",zIndex:520,backgroundColor:"white",left:"100%",top:"0px",height:"100%",boxSizing:"border-box",overflow:"auto","-ms-overflow-style":"-ms-autohiding-scrollbar",boxShadow:"rgba(0, 0, 0, 0.15) 0px 4px 12px",opacity:1,transform:"translateX(0px)",transition:"transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0s, opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0s"},Object(lt.sm)(e),{left:0,width:"100%",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",transform:"translateY(100%)","-webkit-overflow-scrolling":"touch"})},ft=function(e,t){return function(n){if(e){var r=n.breakpoints.md-.02;return t<=r?{transform:"translateY(30px) !important"}:{transform:"translateX(-415px)"}}return{}}},gt=function(e){return e?{opacity:1,pointerEvents:"all"}:{}},bt=function(e){var t,n,r,o,a,i,l=e.setIsResponsesSidebarVisible,d=e.isResponsesSidebarVisible,m=e.inResponseToQuote,p=e.setInResponseToQuote,f=e.parentPost,g=Object(it.c)().baseTheme,b=Object(v.useCx)(),h=Object(c.e)(A.a,{variables:{postId:f.id,postResponsesPaging:{limit:10}},ssr:!1}),E=h.loading,x=h.data,y=h.fetchMore,O=null==x||null===(t=x.post)||void 0===t?void 0:t.responsesLocked,_=null==x||null===(n=x.post)||void 0===n?void 0:n.isLockedResponse,j=null==x||null===(r=x.post)||void 0===r?void 0:r.postResponses,P=u.useState(0),C=s()(P,2),k=C[0],I=C[1],T=u.useState(!1),R=s()(T,2),L=R[0],M=R[1];u.useEffect((function(){k||I(window.innerWidth)}),[]);var B=null==j||null===(o=j.responsesConnection)||void 0===o||null===(a=o.pagingInfo)||void 0===a?void 0:a.next;if(B){var D={postId:f.id,postResponsesPaging:{limit:B.limit,to:B.to}};i=function(){return y({variables:D,updateQuery:function(e,t){var n=t.fetchMoreResult;return M(!1),vt(e,n)}})}}return u.createElement(w.x,{theme:g},u.createElement(S.b,{source:{name:"responses",postId:f.id},extendSource:!0},u.createElement(w.a,{print:{display:"none"}},u.createElement("div",{className:b([dt,gt(d)]),onClick:function(){l(!1)},"aria-hidden":!d}),u.createElement("div",{className:b([pt,ft(d,k)]),"aria-hidden":!d,onScroll:function(e){return ht(e,B,L,M,i)}},u.createElement(st,{responses:j,parentPost:f,responsesLocked:O,isLockedResponse:_,isLoadingInitialContent:E,isFetchingNextSetOfResponses:L,isResponsesSidebarVisible:d,setIsResponsesSidebarVisible:l,inResponseToQuote:m,setInResponseToQuote:p})))))},ht=function(e,t,n,r,o){e.preventDefault();var a=e.currentTarget;a.scrollHeight-a.scrollTop-a.clientHeight<1.5*a.clientHeight&&t&&!n&&(r(!0),o())},vt=function(e,t){var n,r,a,s,i,l,c,u,d=null==t||null===(n=t.post)||void 0===n?void 0:n.postResponses,m=null==t?void 0:t.post;if(!m||!d||!(null===(r=d.responsesConnection)||void 0===r?void 0:r.stream))return e;var p=(null==e||null===(a=e.post)||void 0===a||null===(s=a.postResponses)||void 0===s||null===(i=s.responsesConnection)||void 0===i?void 0:i.stream)||[],f=(null==t||null===(l=t.post)||void 0===l||null===(c=l.postResponses)||void 0===c||null===(u=c.responsesConnection)||void 0===u?void 0:u.stream)||[];return{post:ut({},m,{postResponses:ut({},d,{responsesConnection:ut({},d.responsesConnection,{stream:[].concat(o()(p),o()(f))})})})}}},"./src/components/responses/ResponsesSidebar_PostResponsesQuery.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./src/components/responses/SimpleResponse_simpleResponse.tsx"),l=n("./src/components/user/UserAvatar.tsx"),c=n("./src/framework/track/PostPresentationTracker.tsx");function u(){var e=o()(["\n  fragment ResponseHeader_post on Post {\n    createdAt\n    creator {\n      ...UserAvatar_user\n      isBlocking\n    }\n    mediumUrl\n  }\n  ","\n"]);return u=function(){return e},e}var d=s()(u(),l.b),m=n("./src/components/responses/ResponseQuote.tsx");function p(){var e=o()(["\n  fragment StoryResponse_storyResponse on StreamItemPostStoryResponse {\n    post {\n      ...ResponseHeader_post\n      ...ResponseQuote_post\n      id\n      responsesCount\n      creator {\n        isBlocking\n      }\n      clapCount\n      ...PostPresentationTracker_post\n      previewContent {\n        bodyModel {\n          paragraphs {\n            text\n            type\n          }\n        }\n      }\n    }\n  }\n  ","\n  ","\n  ","\n  ","\n"]);return p=function(){return e},e}var f=s()(p(),d,l.b,c.a,m.b),g=n("./src/components/responses/management-menu/CloseDiscussionMenuItem.tsx");function b(){var e=o()(['\n  query PostResponsesQuery($postId: ID!, $postResponsesPaging: PagingOptions) {\n    post(id: $postId) {\n      id\n      ...CloseDiscussion_post\n      postResponses {\n        count\n        responsesConnection(paging: $postResponsesPaging) @connection(key: "responsesConnection") {\n          pagingInfo {\n            next {\n              limit\n              to\n            }\n          }\n          stream {\n            itemType {\n              __typename\n              ... on StreamItemPostStoryResponse {\n                ...StoryResponse_storyResponse\n              }\n              ... on StreamItemPostSimpleResponse {\n                ...SimpleResponse_simpleResponse\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n  ',"\n  ","\n  ","\n"]);return b=function(){return e},e}var h=s()(b(),g.b,f,i.a)},"./src/components/responses/SimpleResponse_simpleResponse.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./src/components/editor/getSlateBodyFromPostBodyModel_bodyModel.tsx"),l=n("./src/components/responses/ResponseQuote.tsx"),c=n("./src/framework/track/index.ts");function u(){var e=o()(["\n  fragment SimpleResponse_simpleResponse on StreamItemPostSimpleResponse {\n    post {\n      id\n      createdAt\n      firstPublishedAt\n      latestPublishedAt\n      title\n      creator {\n        id\n        name\n        username\n        imageId\n        mediumMemberAt\n        isBlocking\n      }\n      clapCount\n      viewerClapCount\n      isPublished\n      voterCount\n      responsesCount\n      allowResponses\n      latestRev\n      recommenders {\n        id\n        name\n      }\n      mediumUrl\n      content {\n        bodyModel {\n          paragraphs {\n            text\n          }\n          ...getSlateBodyFromPostBodyModel_bodyModel\n        }\n      }\n      collection {\n        id\n        slug\n      }\n      isLimitedState\n      ...PostPresentationTracker_post\n      ...PostScrollTracker_post\n      ...ResponseQuote_post\n    }\n  }\n  ","\n  ","\n  ","\n  ","\n"]);return u=function(){return e},e}var d=s()(u(),c.c,c.e,l.b,i.a)},"./src/components/responses/editor/SimpleEditorType.tsx":function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.edit="EDIT",e.create="CREATE"}(r||(r={}))},"./src/components/responses/management-menu/CloseDiscussionMenuItem.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return I}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),l=n.n(i),c=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),u=n("./node_modules/graphql-tag/src/index.js"),d=n.n(u),m=n("./node_modules/react/index.js"),p=n("./src/components/ui/PopoverMenu.tsx"),f=n("./src/framework/design-system/components/index.ts"),g=n("./src/framework/design-system/type/index.ts"),b=n("./src/framework/reporter/index.ts"),h=n("./src/framework/source/index.ts"),v=n("./src/framework/style/index.ts");function E(){var e=l()(["\n  query FetchPostResponsesLockedQuery($postId: ID!) {\n    post(id: $postId) {\n      id\n      ...CloseDiscussion_post\n    }\n  }\n  ","\n"]);return E=function(){return e},e}function x(){var e=l()(["\n  fragment CloseDiscussion_post on Post {\n    id\n    responsesLocked\n    isLockedResponse\n  }\n"]);return x=function(){return e},e}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(){var e=l()(["\n  mutation UnlockResponsesOnPostMutation($postId: ID!) {\n    unlockResponsesOnPost(postId: $postId)\n  }\n"]);return w=function(){return e},e}function _(){var e=l()(["\n  mutation LockResponsesOnPostMutation($postId: ID!) {\n    lockResponsesOnPost(postId: $postId)\n  }\n"]);return _=function(){return e},e}var S=function(){return{fontStyle:"italic",textAlign:"center"}},j=d()(_()),P=d()(w()),C=function(e){var t,n=e.parentPostId,r=e.responsesLocked,o=e.hidePopoverMenu,a=Object(v.useCx)(),i=Object(b.c)(),l=Object(h.d)(),u=m.useState(!1),d=s()(u,2),E=d[0],x=d[1],y=Object(c.d)(j,{variables:{postId:n},update:function(e){i.event("responses.locked",{postId:n,source:l}),k(e,n,!0,o)}}),O=s()(y,1)[0],w=Object(c.d)(P,{variables:{postId:n},update:function(e){k(e,n,!1,o)}}),_=s()(w,1)[0];return t=!0===r?m.createElement(f.m,{onClick:_},"Open discussion"):m.createElement(f.m,{onClick:function(){return x(!0)}},"Close discussion"),m.createElement(m.Fragment,null,m.createElement(p.b,null,t),E&&m.createElement(f.g,{isVisible:E,hide:function(){return x(!1)},withCloseButton:!1,noPortal:!0,padding:50},m.createElement(f.a,{display:"flex",margin:"auto",flexDirection:"column",alignItems:"center",width:"100%",height:"100%"},m.createElement(g.c,{scale:"M"},"Close Discussion"),m.createElement(f.a,{display:"flex",width:"100%",paddingRight:"5px",marginTop:"10px",marginBottom:"70px",textAlign:"center"},m.createElement(g.b,{scale:"M",color:"DARKER"},"Closing a discussion prevents responses from being added or edited on your story. Existing responses will remain on your story.")),m.createElement(f.a,{display:"flex",marginBottom:"20px"},m.createElement(f.m,{onClick:function(){return x(!1)}},m.createElement(g.b,{scale:"M",color:"DARKER"},"Cancel")),m.createElement(f.a,{marginLeft:"25px"},m.createElement(f.b,{buttonStyle:"ERROR",onClick:O,"data-test-id":"close-discussion-button"},"Close discussion"))),m.createElement("div",{className:a(S)},m.createElement(g.b,{scale:"M"},"You can reopen the discussion at any time.")))))},k=function(e,t,n,r){var o=e.readQuery({query:T,variables:{postId:t}});o&&(e.writeQuery({query:T,data:Object.assign({},o,{post:O({},o.post,{responsesLocked:n})}),variables:{postId:t}}),r())},I=d()(x()),T=d()(E(),I)},"./src/components/sequence/NormalizeSequenceBodyModel.ts":function(e,t,n){"use strict";n.d(t,"f",(function(){return f})),n.d(t,"c",(function(){return g}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(a),i=n("./node_modules/lodash/cloneDeep.js"),l=n.n(i),c=n("./node_modules/graphql-tag/src/index.js"),u=n.n(c),d=n("./src/components/post/NormalizePostBodyModel.ts");function m(){var e=o()(["\n  fragment NormalizeSequenceBodyModel_bodyModel on RichText {\n    ...GetFeaturedImageIndex_bodyModel\n    ...GetTitleIndexMap_bodyModel\n    sections {\n      name\n      startIndex\n    }\n  }\n  ","\n  ","\n"]);return m=function(){return e},e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){var t=Object(d.d)(e.paragraphs),n=[t.titleIndex,t.subtitleIndex,Object(d.c)(e.paragraphs)].filter((function(e){return null!=e})).sort(),r=e.paragraphs.slice(0),o=l()(e.sections);n.forEach((function(t,n){r.splice(t-n,1);for(var a=1;a<e.sections.length;a++){var s=e.sections[a],i=o[a];s.startIndex>=t&&(i.startIndex-=1)}}));var a=o.slice(1).filter((function(e){return e.startIndex>0}));return o.length>0&&a.unshift(o[0]),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{paragraphs:r,sections:a})}n.d(t,"e",(function(){return d.d})),n.d(t,"d",(function(){return d.c})),n.d(t,"b",(function(){return d.b})),n.d(t,"a",(function(){return d.a}));var g=u()(m(),d.a,d.b)},"./src/components/sequence/SequenceCoverImage.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/ui/image/index.ts"),c=n("./src/util/miroImage.ts");function u(){var e=o()(["\n  fragment SequenceCoverImage_sequence on Sequence {\n    title\n    coverImage {\n      id\n    }\n  }\n"]);return u=function(){return e},e}function d(e){var t=e.sequence,n=e.width,r=e.height,o=t.title,a=t.coverImage;return a?i.createElement("div",null,i.createElement(l.c,{miroId:a.id,alt:o||"Collection on Medium",width:n,height:r,strategy:c.a.Resample,freezeGifs:!1})):null}var m=s()(u())},"./src/components/sidebar/SidebarWrapper.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return E}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n("./src/components/metabar/constants.ts"),i=n("./src/components/session/useFlag.tsx"),l=n("./src/framework/design-system/components/index.ts"),c=n("./src/framework/style/index.ts"),u=n("./src/framework/track/DomMonitor.ts"),d=n("./src/styles/breakpoints.ts"),m=n("./src/styles/mediaTypes.ts"),p=n("./src/util/dom.ts"),f=131,g=function(e){var t=e.enableDifferentGrid,n=e.isFixed,r=void 0===n||n,a=e.disableTransition,i=void 0!==a&&a,l=e.scrollableRef,c=e.topOffset,u=e.visible,p=e.fixedWidth;return function(e){var n,a=d.lg(e);t&&(a=Object(m.a)(e,f,e.grid.xStep*e.grid.marginSteps.lg,l&&"current"in l?l.current:null));var g=void 0===c?s.a+54+40:c;return n={opacity:u?1:0,pointerEvents:"none",position:r?"fixed":"absolute",willChange:"opacity",width:p?"".concat(p,"px"):"100%",top:"".concat(g,"px")},o()(n,Object(m.c)("no-preference"),{transition:i?"opacity 0s":"opacity 200ms"}),o()(n,a,{display:"none"}),n}},b=function(e){return{pointerEvents:e?"auto":"none"}},h=function(e){var t=e.children,n=e.disableTransition,r=e.isFixed,o=e.scrollableRef,s=e.sidebarRef,u=e.testId,d=e.topOffset,m=e.visible,p=e.fixedWidth,h=!!Object(i.a)("enable_different_grid"),v=Object(c.useCx)();return a.createElement("div",{className:v(g({enableDifferentGrid:h,isFixed:r,scrollableRef:o,topOffset:d,visible:m,disableTransition:n,fixedWidth:p})),"data-test-id":u},a.createElement(l.o,{size:"outset"},a.createElement(l.a,{display:"flex",flexDirection:"column",width:"".concat(f,"px"),ref:s},a.createElement("div",{className:v(b(m))},t))))},v=function(e,t,n,r){var o=e.current;if(!o)return!1;var a=r.threshold||10,s=Array.from(t.values()).filter((function(e){var t,r=e.ref,o=e.opts;return n.includes(null!==(t=o.type)&&void 0!==t?t:"")&&!!r.current})).map((function(e){var t=e.ref,n=e.opts,r=n&&n.offset,o=Object(p.a)(t.current);return Object(p.h)(o,r)})),i=Object(p.a)(o);return!s.some((function(e){return Object(p.f)(e,i,a)}))},E=function(e,t){return function(){var n=Object(u.b)(t);return n.on("scroll_throttled",e),n.on("scroll_end",e),n.on("resize_throttled",e),function(){n.off("scroll_throttled",e),n.off("scroll_end",e),n.off("resize_throttled",e)}}}},"./src/components/social/ShareButton.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return te})),n.d(t,"a",(function(){return re}));var r=n("./node_modules/@babel/runtime/helpers/extends.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),l=n.n(i),c=n("./node_modules/graphql-tag/src/index.js"),u=n.n(c),d=n("./node_modules/react/index.js"),m=n.n(d),p=n("./node_modules/react-redux/es/index.js"),f=n("./src/framework/design-system/components/index.ts"),g=n("./src/framework/design-system/type/index.ts"),b=n("./src/framework/reporter/index.ts"),h=n("./src/framework/source/index.ts"),v=n("./src/framework/style/index.ts");function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var x=m.a.createElement("path",{d:"M18.26 10.55c0-4.3-3.47-7.79-7.75-7.79a7.77 7.77 0 0 0-7.75 7.79 7.77 7.77 0 0 0 6.54 7.68v-5.49H7.4v-2.2h1.9V8.92c0-1.88 1.14-2.9 2.8-2.9.8 0 1.49.06 1.69.08v1.97h-1.15c-.91 0-1.1.43-1.1 1.07v1.4h2.17l-.28 2.2h-1.88v5.52a7.77 7.77 0 0 0 6.7-7.71"}),y=function(e){return m.a.createElement("svg",E({width:21,height:21,viewBox:"0 0 21 21"},e),x)},O=n("./src/svg/facebook-square-25px.svg");function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _=m.a.createElement("path",{d:"M23.2 5H5.8a.8.8 0 0 0-.8.8V23.2c0 .44.35.8.8.8h9.3v-7.13h-2.38V13.9h2.38v-2.38c0-2.45 1.55-3.66 3.74-3.66 1.05 0 1.95.08 2.2.11v2.57h-1.5c-1.2 0-1.48.57-1.48 1.4v1.96h2.97l-.6 2.97h-2.37l.05 7.12h5.1a.8.8 0 0 0 .79-.8V5.8a.8.8 0 0 0-.8-.79"}),S=function(e){return m.a.createElement("svg",w({width:29,height:29},e),_)};function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var P=m.a.createElement("path",{d:"M3 4.07C3 3.48 3.5 3 4.1 3h12.8c.6 0 1.1.48 1.1 1.07v12.86c0 .59-.5 1.07-1.1 1.07H4.1A1.1 1.1 0 0 1 3 16.93V4.07z"}),C=m.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.55 15.56V8.78H5.28v6.78h2.27zM6.4 7.86c.8 0 1.29-.52 1.29-1.17-.02-.67-.5-1.17-1.27-1.17-.78 0-1.28.5-1.28 1.17 0 .65.49 1.17 1.25 1.17h.01zM8.8 15.56h2.27v-3.79a1.24 1.24 0 0 1 1.24-1.37c.81 0 1.14.62 1.14 1.53v3.63h2.27v-3.89c0-2.08-1.12-3.05-2.61-3.05-1.22 0-1.76.68-2.06 1.15h.02v-.99H8.8c.03.64 0 6.78 0 6.78z",fill:"#fff"}),k=function(e){return m.a.createElement("svg",j({width:21,height:21,viewBox:"0 0 21 21",fill:"none"},e),P,C)};function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var T=m.a.createElement("path",{d:"M4 5.22C4 4.55 4.56 4 5.26 4h14.48c.7 0 1.26.55 1.26 1.22v14.56c0 .67-.56 1.22-1.26 1.22H5.26C4.56 21 4 20.45 4 19.78V5.22z"}),R=m.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.15 18.23v-7.68H6.6v7.68h2.56zM7.87 9.51c.9 0 1.45-.6 1.45-1.33-.01-.75-.56-1.33-1.43-1.33-.88 0-1.46.58-1.46 1.33 0 .74.56 1.33 1.42 1.33h.02zM10.57 18.23h2.57v-4.29c0-.23.02-.45.09-.62.18-.46.6-.93 1.31-.93.93 0 1.3.7 1.3 1.73v4.11h2.57v-4.4c0-2.36-1.26-3.46-2.95-3.46-1.39 0-2 .77-2.34 1.3h.02v-1.12h-2.57c.04.72 0 7.68 0 7.68z",fill:"#fff"}),A=function(e){return m.a.createElement("svg",I({width:25,height:25,viewBox:"0 0 25 25",fill:"none"},e),T,R)};function L(){return(L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var M=m.a.createElement("path",{d:"M5 6.36C5 5.61 5.63 5 6.4 5h16.2c.77 0 1.4.61 1.4 1.36v16.28c0 .75-.63 1.36-1.4 1.36H6.4c-.77 0-1.4-.6-1.4-1.36V6.36z"}),B=m.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.76 20.9v-8.57H7.89v8.58h2.87zm-1.44-9.75c1 0 1.63-.65 1.63-1.48-.02-.84-.62-1.48-1.6-1.48-.99 0-1.63.64-1.63 1.48 0 .83.62 1.48 1.59 1.48h.01zM12.35 20.9h2.87v-4.79c0-.25.02-.5.1-.7.2-.5.67-1.04 1.46-1.04 1.04 0 1.46.8 1.46 1.95v4.59h2.87v-4.92c0-2.64-1.42-3.87-3.3-3.87-1.55 0-2.23.86-2.61 1.45h.02v-1.24h-2.87c.04.8 0 8.58 0 8.58z",fill:"#fff"}),D=function(e){return m.a.createElement("svg",L({width:29,height:29,viewBox:"0 0 29 29",fill:"none"},e),M,B)},N=n("./src/svg/twitter-filled-21px.svg"),U=n("./src/svg/twitter-filled-25px.svg");function F(){return(F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var H=m.a.createElement("path",{d:"M22.05 7.54a4.47 4.47 0 0 0-3.3-1.46 4.53 4.53 0 0 0-4.53 4.53c0 .35.04.7.08 1.05A12.9 12.9 0 0 1 5 6.89a5.1 5.1 0 0 0-.65 2.26c.03 1.6.83 2.99 2.02 3.79a4.3 4.3 0 0 1-2.02-.57v.08a4.55 4.55 0 0 0 3.63 4.44c-.4.08-.8.13-1.21.16l-.81-.08a4.54 4.54 0 0 0 4.2 3.15 9.56 9.56 0 0 1-5.66 1.94l-1.05-.08c2 1.27 4.38 2.02 6.94 2.02 8.3 0 12.86-6.9 12.84-12.85.02-.24 0-.43 0-.65a8.68 8.68 0 0 0 2.26-2.34c-.82.38-1.7.62-2.6.72a4.37 4.37 0 0 0 1.95-2.51c-.84.53-1.81.9-2.83 1.13z"}),V=function(e){return m.a.createElement("svg",F({width:29,height:29},e),H)},z=n("./src/util/hooks/useIsEligibleToViewNewResponses.tsx"),G=n("./src/util/routes.ts");function W(){var e=s()(["\n  fragment ShareButton_post on Post {\n    id\n  }\n"]);return W=function(){return e},e}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $={fill:"#3b5998"},K={fill:"#38a1f3"},Y={fill:"#292929"},Q=function(e){return{fill:e.baseColor.fill.lighter}},X=function(e){return{fill:e.baseColor.fill.normal}},J=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Q(e),{opacity:.25,cursor:"not-allowed"})},Z={marginRight:"8px"},ee={FACEBOOK:"Facebook",TWITTER:"Twitter",LINKEDIN:"LinkedIn"},te=u()(W());function ne(e){var t=e.buttonStyle,n=e.socialPlatform,r=Object(v.useCx)(),o=Object(z.a)();switch(t){case"LINK_DISABLED":switch(n){case"FACEBOOK":return d.createElement(S,{className:r(J)});case"TWITTER":return d.createElement(V,{className:r(J)});case"LINKEDIN":return d.createElement(D,{className:r(J)});default:return null}case"LINK":if(o)switch(n){case"FACEBOOK":return d.createElement(S,{className:r(Q)});case"TWITTER":return d.createElement(V,{className:r(Q)});case"LINKEDIN":return d.createElement(D,{className:r(Q)});default:return null}switch(n){case"FACEBOOK":return d.createElement(S,{className:r(X)});case"TWITTER":return d.createElement(V,{className:r(X)});case"LINKEDIN":return d.createElement(D,{className:r(X)});default:return null}case"LINK_INLINE":switch(n){case"FACEBOOK":return d.createElement(y,{className:r(Q)});case"TWITTER":return d.createElement(N.a,{className:r(Q)});case"LINKEDIN":return d.createElement(k,{className:r(Q)});default:return null}case"LINK_INLINE_SHORT_LABEL":switch(n){case"FACEBOOK":return d.createElement(O.a,{className:r(Q)});case"TWITTER":return d.createElement(U.a,{className:r(Q)});case"LINKEDIN":return d.createElement(A,{className:r(Q)});default:return null}case"BUTTON_BRANDED":switch(n){case"FACEBOOK":return d.createElement(y,{className:r([$,Z])});case"TWITTER":return d.createElement(N.a,{className:r([K,Z])});case"LINKEDIN":return d.createElement(k,{className:r([Y,Z])});default:return null}default:return null}}var re=Object(p.c)((function(e){var t=e.config;return{authDomain:t.authDomain,isAmp:t.isAmp}}))((function(e){var t,n=e.authDomain,r=e.isAmp,a=e.post,s=e.buttonStyle,i=e.socialPlatform,l=Object(b.c)(),c=Object(h.f)();if("FACEBOOK"===i)t=Object(G.U)(n,a.id);else if("TWITTER"===i)t=Object(G.mc)(n,a.id);else{if("LINKEDIN"!==i)return null;t=Object(G.ib)(n,a.id)}var u=ee[i];if(!u)return null;var m={href:t,onClick:function(){c&&l.event("post.shareOpen",{postId:a.id,source:c,dest:i.toLowerCase(),dialogType:"native"})},target:"_blank",noFollow:!0,ariaLabel:"Share on "+i.toLowerCase()};if(!r){delete m.href,delete m.target;var p=m.onClick;m.onClick=function(){p();var e=Math.max((window.outerHeight||200)/2-560,100),n=(window.outerWidth||200)/2-250;"LINKEDIN"===i?window.open(t,"LIP","resizable,scrollbars,status,top=".concat(e,",left=").concat(n,",height=").concat(560,",width=").concat(500)):window.open(t)}}switch(s){case"LINK_DISABLED":return d.createElement(f.z,{darkTheme:!0,popoverRenderFn:function(){return d.createElement(f.a,{padding:"8px",whiteSpace:"nowrap"},"This feature is temporarily disabled.")},placement:"top",targetDistance:15},d.createElement(ne,{buttonStyle:s,socialPlatform:i}));case"LINK":return d.createElement(f.m,m,d.createElement(ne,{buttonStyle:s,socialPlatform:i}));case"LINK_INLINE":return d.createElement(f.m,m,d.createElement(ne,{buttonStyle:s,socialPlatform:i}),d.createElement(f.a,{display:"inline",marginLeft:"8px",marginTop:"2px"},d.createElement(g.b,{scale:"S",tag:"span"},"Share on ",u)));case"LINK_INLINE_SHORT_LABEL":return d.createElement(f.m,m,d.createElement(ne,{buttonStyle:s,socialPlatform:i}),d.createElement(f.a,{display:"inline",marginLeft:"16px",marginTop:"2px"},d.createElement(g.b,{scale:"S",tag:"span"},u)));case"BUTTON_BRANDED":return d.createElement(f.b,o()({},m,{buttonStyle:"SOCIAL",size:"REGULAR",width:"212px"}),d.createElement(f.a,{display:"flex",alignItems:"center",justifyContent:"center"},d.createElement(ne,{buttonStyle:s,socialPlatform:i}),"Share with ".concat(u)));default:return null}}))},"./src/components/social/ShareButtons.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return p}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/social/ShareButton.tsx"),c=n("./src/framework/design-system/components/index.ts"),u=n("./src/framework/source/index.ts");function d(){var e=o()(["\n  fragment ShareButtons_post on Post {\n    id\n    isLimitedState\n    visibility\n    ...ShareButton_post\n  }\n  ","\n"]);return d=function(){return e},e}var m=s()(d(),l.b);function p(e){var t=e.post,n=e.source,r="UNLISTED"===t.visibility;return i.createElement(u.b,{source:n},i.createElement(c.a,{flexGrow:"0",paddingRight:"6px"},!r&&i.createElement(l.a,{socialPlatform:"TWITTER",buttonStyle:t.isLimitedState?"LINK_DISABLED":"LINK",post:t})),i.createElement(c.a,{flexGrow:"0",paddingRight:"6px"},!r&&i.createElement(l.a,{socialPlatform:"LINKEDIN",buttonStyle:t.isLimitedState?"LINK_DISABLED":"LINK",post:t})),i.createElement(c.a,{flexGrow:"0",paddingRight:"6px"},!r&&i.createElement(l.a,{socialPlatform:"FACEBOOK",buttonStyle:t.isLimitedState?"LINK_DISABLED":"LINK",post:t})))}},"./src/components/stream/Quote.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/createClass.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),u=n.n(c),d=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),m=n.n(d),p=n("./node_modules/@babel/runtime/helpers/inherits.js"),f=n.n(p),g=n("./node_modules/graphql-tag/src/index.js"),b=n.n(g),h=n("./node_modules/react/index.js"),v=n("./src/components/post/paragraph/TextParagraph.tsx"),E=n("./src/framework/design-system/components/index.ts"),x=n("./src/framework/design-system/type/index.ts"),y=n("./src/schema-types/globalTypes.ts"),O=n("./src/util/quote.ts"),w=n("./src/util/routes.ts");function _(){var e=o()(["\n  fragment Quote_quote on Quote {\n    quoteId\n    userId\n    post {\n      id\n      title\n      mediumUrl\n      creator {\n        id\n        username\n        name\n      }\n    }\n    startOffset\n    endOffset\n    paragraphs {\n      text\n      type\n      markups {\n        anchorType\n        end\n        href\n        rel\n        start\n        title\n        type\n        userId\n      }\n      ...TextParagraph_paragraph\n    }\n    ...buildQuotePreviewParagraph_quote\n  }\n  ","\n  ","\n"]);return _=function(){return e},e}var S=function(e){function t(){return s()(this,t),u()(this,m()(t).apply(this,arguments))}return f()(t,e),l()(t,[{key:"render",value:function(){var e=this.props.quote;if(!e||null==e.startOffset||null==e.endOffset||!e.post||!e.post.id)return null;var t=e.post.title,n=e.post.creator&&e.post.creator.name,r=e.post.creator&&e.post.creator.username;if(!n||!r)return null;var o=Object(O.b)(e),a=o&&o.type;return o&&a?a===y.m.IMG||a===y.m.IFRAME||a===y.m.COVER_TITLE||a===y.m.HR||a===y.m.MIXTAPE_EMBED||a===y.m.SECTION_CAPTION?null:h.createElement(E.a,{paddingLeft:"20px",paddingRight:"20px"},h.createElement(x.b,{scale:"M",tag:"span"},"From"," ",h.createElement(E.m,{href:Object(w.Gb)(e.post),inline:!0},t)," ","by"," ",h.createElement(E.m,{href:Object(w.yc)(r),inline:!0},n)),h.createElement(E.d,{href:Object(w.Gb)(e.post)},h.createElement(v.g,{paragraph:o,paragraphStyle:a,spaceTop:30,richTextStyle:"STREAM"}))):null}}]),t}(h.Component);t.b=S;var j=b()(_(),O.c,v.d)},"./src/components/style/UnboundFellThemeProvider.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/lodash/merge.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./src/components/session/useFlag.tsx"),c=n("./src/framework/style/index.ts"),u=n("./src/styles/font.ts"),d=n("./src/styles/theme.ts");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){var t=e.children,n=!!Object(l.a)("enable_unbound"),r=Object(c.useTheme)(),o=n?function(e){return s()({},e,{newFonts:{title:p({},d.a.newFonts.title,{family:u.o}),pullQuote:p({},d.a.newFonts.pullQuote,{family:u.o})}})}(r):r;return i.createElement(c.ThemeProvider,{theme:o},t)}},"./src/components/susi/RedirectToSignIn.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-redux/es/index.js"),a=n("./src/components/navigation/Redirect.tsx"),s=n("./src/util/navigation.ts"),i=n("./src/util/routes.ts"),l=function(e){var t=e.opt_isDraft,n=Object(o.f)((function(e){return{authDomain:e.config.authDomain,currentLocation:e.navigation.currentLocation}}),o.d),l=n.authDomain,c=n.currentLocation,u=Object(s.a)(Object(i.Sb)(l),{operation:"login",redirect:c,isDraft:t?"1":"0"});return r.createElement(a.a,{to:u,temporary:!0})}},"./src/components/susi/alternate-user/AlternateUserEmail.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),l=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),c=n("./node_modules/graphql-tag/src/index.js"),u=n.n(c),d=n("./node_modules/react/index.js"),m=n("./node_modules/react-redux/es/index.js"),p=n("./src/components/session/WithViewer.tsx"),f=n("./src/components/session/useFlag.tsx"),g=n("./src/components/susi/GoogleRecaptcha.tsx"),b=n("./src/components/susi/helpers/index.ts"),h=n("./src/framework/reporter/index.ts"),v=n("./src/framework/source/index.ts"),E=n("./src/screens/helpers/visits.ts");function x(){var e=s()(["\n  mutation SendAcctAuthEmailByUserId(\n    $userId: String!\n    $redirect: String\n    $fullName: String\n    $captchaValue: String\n  ) {\n    sendAcctAuthEmailByUserId(\n      userId: $userId\n      redirect: $redirect\n      fullName: $fullName\n      captchaValue: $captchaValue\n    ) {\n      ... on SusiMethod {\n        value\n      }\n      ... on BadRequest {\n        message\n      }\n      ... on FailedChallenge {\n        message\n      }\n      ... on NotFound {\n        message\n      }\n    }\n  }\n"]);return x=function(){return e},e}var y=u()(x()),O=function(e){var t=e.actionUrl,n=e.children,r=e.onSuccess,a=e.token,s=e.userId,c=Object(h.c)(),u=!!Object(f.a)("skip_sign_in_recaptcha"),x=d.useState(!1),O=o()(x,2),w=O[0],_=O[1],S=Object(m.f)((function(e){return e.navigation.currentLocation})),j=Object(m.f)((function(e){return e.session.user.id})),P=function(){_(!1)},C=Object(v.d)(),k=Object(v.g)(),I=t&&a?Object(b.a)(S,C,k,t,a):Object(b.a)(S,C,k),T=Object(l.e)(p.a),R=T.loading,A=T.error,L=T.data,M=(L=void 0===L?{viewer:void 0}:L).viewer;return R||A?d.createElement(d.Fragment,null):d.createElement(i.a,{mutation:y,onCompleted:function(e){switch(e.sendAcctAuthEmailByUserId.__typename){case"SusiMethod":c.event("site.loginLinkSent",{}),r&&r();break;case"FailedChallenge":c.event("site.loginByEmailCaptchaFailure",{}),_(!1);break;case"BadRequest":case"NotFound":default:P()}},onError:P},(function(e){var t=function(t){var n=M?M.id:j;Object(E.m)(!0,n,s,"Email",!1);c.event("susi.methodClicked",{entryPoint:k,operation:"login",susiMethod:"medium".toLowerCase(),alternateUserSuggestionShown:!0,alternateUserSuggestionAccountType:"medium".toLowerCase(),alternateUserSuggestionTargetUserId:s,alternateUserSuggestionSourceUserId:n}),e({variables:{userId:s,redirect:I,captchaValue:t}})};return d.createElement(d.Fragment,null,!u&&d.createElement(g.a,{callback:t,shouldExecuteRecaptcha:w}),n({handleSubmit:function(){return u?t(null):_(!0)}}))}))}},"./src/components/susi/alternate-user/AlternateUserSocial.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("./node_modules/react/index.js"),o=n("./src/components/susi/oauth-buttons/FacebookSusiButton.tsx"),a=n("./src/components/susi/oauth-buttons/GoogleSusiButton.tsx"),s=n("./src/components/susi/oauth-buttons/TwitterSusiButton.tsx"),i=n("./src/framework/track/SusiPresentationTracker.tsx"),l=function(e){var t=e.actionUrl,n=e.token,l=e.userSocialLogins,c={actionUrl:t||"",operation:"login",token:n||"",targetUserId:l.userId,alternateUserSuggestion:!0};return r.createElement(i.a,{eventData:{operation:c.operation}},l.google?r.createElement(a.a,c):l.facebook?r.createElement(o.a,c):l.twitter?r.createElement(s.a,c):r.createElement(r.Fragment,null))}},"./src/components/susi/alternate-user/NotYou.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),s=n("./node_modules/react/index.js"),i=n("./node_modules/react-redux/es/index.js"),l=n("./src/components/session/WithViewer.tsx"),c=n("./src/components/session/useFlag.tsx"),u=n("./src/framework/design-system/components/index.ts"),d=n("./src/framework/source/index.ts"),m=n("./src/store/actions/navigation.ts");function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var f=function(e){var t=e.declineSuggestedAccount,n=e.isSocial,r=Object(i.f)((function(e){return{hasRenderedAlternateUserBanner:e.navigation.hasRenderedAlternateUserBanner}}),i.d).hasRenderedAlternateUserBanner,f=!!Object(c.a)("enable_highlander_member_digest"),g=Object(d.g)(),b=Object(i.e)(),h=Object(a.e)(l.a),v=h.loading,E=h.error,x=h.data,y=(x=void 0===x?{viewer:void 0}:x).viewer;if(v||E)return s.createElement(s.Fragment,null);var O=function(e){return e?s.createElement(u.m,{onClick:function(){return w("SIGNIN_OPTIONS")},linkStyle:"OBVIOUS"},"See all login options"):s.createElement(s.Fragment,null,"Not you?"," ",s.createElement(u.m,{onClick:function(){return w("SIGNIN_OPTIONS")},linkStyle:"OBVIOUS"},"Sign in")," or ",s.createElement(u.m,{onClick:function(){return w("SIGNUP_OPTIONS")},linkStyle:"OBVIOUS"},"create an account"))},w=function(e){var n="SIGNIN_OPTIONS"===e?"login":"register";t(),b(Object(m.s)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({operation:n,step:e},!!g&&{susiEntry:g})))};return f&&r?O(y):y?s.createElement(u.m,{onClick:function(){return t()}},"Not me"):O(n)}},"./src/components/susi/alternate-user/SusiAlternateUserController.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),l=n.n(i),c=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),u=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),d=n("./node_modules/graphql-tag/src/index.js"),m=n.n(d),p=n("./node_modules/react/index.js"),f=n("./node_modules/react-redux/es/index.js"),g=n("./src/components/session/WithViewer.tsx"),b=n("./src/framework/reporter/index.ts"),h=n("./src/framework/source/index.ts"),v=n("./src/framework/source/SourceContext.tsx"),E=n("./src/screens/helpers/users.ts");function x(){var e=o()(["\n  query UserSocialLoginsQuery($userId: String!) {\n    userSocialLogins(userId: $userId) {\n      userId\n      twitter\n      facebook\n      google\n      redactedEmailAddress\n      isMember\n      emailAddress\n      userAvatar {\n        username\n        name\n        imageId\n        mediumMemberAt\n      }\n    }\n  }\n"]);return x=function(){return e},e}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=function(e){var t=e.children,n=e.postRenderCallback,r=Object(b.c)(),o=Object(h.g)(),a=Object(f.f)((function(e){return{referrerSource:e.navigation.referrerSource,sessionUserId:e.session.user.id}}),f.d),s=a.referrerSource,i=a.sessionUserId,d=Object(v.c)(s||""),m=d.userId,x=d.name,y=p.useState({shouldRun:!1,showSuggestedAccount:!1,userSocialLogins:{facebook:!1,google:!1,twitter:!1,redactedEmailAddress:"",emailAddress:"",userAvatar:{username:"",name:"",imageId:"",mediumMemberAt:0},userId:"",isMember:!1}}),w=l()(y,2),S=w[0],j=w[1];p.useEffect((function(){var e=S.shouldRun,t=S.showSuggestedAccount,r=S.userSocialLogins;e&&n(T,t,r)}),[S.shouldRun]);var P=Object(u.e)(g.a),C=P.loading,k=P.error,I=P.data,T=(I=void 0===I?{viewer:void 0}:I).viewer;if(C||k)return p.createElement(p.Fragment,null);var R=!("email"!==x||T&&T.mediumMemberAt||!m);return R&&m?p.createElement(c.b,{query:_,variables:{userId:m}},(function(e){var a=e.loading,s=e.error,l=e.data,c=(l=void 0===l?{}:l).userSocialLogins,u=!(a||s||!c||T&&!c.isMember||!c.facebook&&!c.google&&!c.twitter&&!c.redactedEmailAddress),d=O({loading:a,showSuggestedAccount:u},u&&{userSocialLogins:c,declineSuggestedAccount:function(){var e=Object(E.a)(c);r.event("susi.suggestNotYou",{entryPoint:o,susiMethod:e,alternateUserSuggestionAccountType:e,alternateUserSuggestionTargetUserId:null==c?void 0:c.userId,alternateUserSuggestionSourceUserId:T?T.id:i})}});return!n||a||S.shouldRun||j({shouldRun:!0,showSuggestedAccount:u,userSocialLogins:c}),t(d)})):(n&&!S.shouldRun&&j(O({},S,{shouldRun:!0})),t({showSuggestedAccount:R,loading:!1}))},_=m()(x())},"./src/components/susi/helpers/types.ts":function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.LOHighlightCTA="lo_highlight_cta",e.LIHighlightCTA="li_highlight_cta",e.RegWall="regwall",e.SyndicatedRegwall="syndicated_regwall"}(r||(r={}))},"./src/components/tns/SuspendedBannerLoader.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return p}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./src/store/actions/navigation.ts");function u(){var e=o()(["\n  fragment SuspendedBannerLoader_post on Post {\n    id\n    isSuspended\n  }\n"]);return u=function(){return e},e}function d(){var e=o()(["\n  fragment SuspendedBannerLoader_user on User {\n    id\n    isSuspended\n  }\n"]);return d=function(){return e},e}t.c=Object(l.c)()((function(e){var t=e.dispatch,n=e.user,r=e.post;return i.useEffect((function(){n&&n.isSuspended?t(Object(c.m)({duration:"NEXTPAGE",message:"",toastStyle:"USER_SUSPENDED"})):r&&r.isSuspended&&t(Object(c.m)({duration:"NEXTPAGE",message:"",toastStyle:"POST_SUSPENDED",extraParams:{postId:(null==r?void 0:r.id)||""}}))}),[]),null}));var m=s()(d()),p=s()(u())},"./src/components/ui/AndroidAppDownloadButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("./node_modules/react/index.js"),o=n("./src/components/ui/image/index.ts"),a=n("./src/framework/design-system/components/index.ts"),s=n("./src/framework/reporter/index.ts"),i=n("./src/util/miroImage.ts"),l=n("./src/util/routes.ts"),c=function(e){var t=e.entryPoint,n=e.height,c=void 0===n?41:n,u=e.width,d=void 0===u?135:u,m=Object(s.c)();return r.createElement(a.m,{href:Object(l.i)(),onClick:function(){m.event("googlePlay.appStoreButtonClicked",{entryPoint:t})}},r.createElement(o.c,{miroId:"1*W_RAPQ62h0em559zluJLdQ.png",width:d,height:c,strategy:i.a.Resample,alt:"A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store"}))}},"./src/components/ui/Card.tsx":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n("./src/framework/design-system/components/index.ts"),a=n("./src/framework/style/index.ts");t.a=function(e){var t=e.children,n=Object(a.useTheme)();return r.createElement(o.a,{backgroundColor:"BACKGROUND",border:"BASE_LIGHTER",borderRadius:"5px",boxShadow:"0 1px 4px ".concat(n.baseColor.border.lighter),marginBottom:"24px",padding:"23px 0"},t)}},"./src/components/ui/IosAppDownloadButton.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("./node_modules/react/index.js"),o=n("./src/components/ui/image/index.ts"),a=n("./src/framework/design-system/components/index.ts"),s=n("./src/framework/reporter/index.ts"),i=n("./src/framework/source/index.ts"),l=n("./src/util/miroImage.ts"),c=n("./src/util/navigation.ts"),u=n("./src/util/routes.ts"),d=function(e){var t=e.entryPoint,n=e.height,d=void 0===n?41:n,m=e.width,p=void 0===m?135:m,f=Object(s.c)(),g=Object(i.f)(),b=Object(c.a)(Object(u.fb)(),{ct:g});return r.createElement(a.m,{href:b,onClick:function(){f.event("apple.appStoreButtonClicked",{entryPoint:t})}},r.createElement(o.c,{miroId:"1*Crl55Tm6yDNMoucPo1tvDg.png",width:p,height:d,strategy:l.a.Resample,alt:"A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store"}))}},"./src/components/ui/banners/AlternateUserTopBanner.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),s=n("./node_modules/react/index.js"),i=n("./node_modules/react-redux/es/index.js"),l=n("./src/components/optimizely/OptimizelyWrapper.tsx"),c=n("./src/components/session/WithViewer.tsx"),u=n("./src/components/session/useFlag.tsx"),d=n("./src/components/style/BaseThemeProvider.tsx"),m=n("./src/components/susi/alternate-user/AlternateUserEmail.tsx"),p=n("./src/components/susi/alternate-user/AlternateUserSocial.tsx"),f=n("./src/components/susi/alternate-user/NotYou.tsx"),g=n("./src/components/susi/alternate-user/SusiAlternateUserController.tsx"),b=n("./src/components/susi/helpers/useReduxSusi.tsx"),h=n("./src/components/ui/banners/TopBanner.tsx"),v=n("./src/components/user/UserAvatar.tsx"),E=n("./src/framework/design-system/components/index.ts"),x=n("./src/framework/design-system/type/index.ts"),y=n("./src/framework/reporter/index.ts"),O=n("./src/framework/source/index.ts"),w=n("./src/screens/helpers/users.ts"),_=n("./src/store/actions/alternateUserTopBanner.ts"),S=n("./src/store/actions/googleOneTap.ts"),j=function(e){var t=e.userSocialLogins,n=Object(b.a)().openModal;return t.facebook||t.google||t.twitter?s.createElement(p.a,{userSocialLogins:t}):s.createElement(m.a,{onSuccess:function(){return n({step:"CHECK_YOUR_INBOX",operation:"login",susiEntry:"alternate_user_top_banner"})},userId:t.userId},(function(e){var t=e.handleSubmit;return s.createElement(E.b,{buttonStyle:"SOCIAL",size:"REGULAR",onClick:t},"Send login link")}))},P=function(){var e=Object(a.e)(c.a).data,t=(e=void 0===e?{viewer:void 0}:e).viewer,n=Object(i.f)((function(e){return e.session.user.id})),r=Object(i.e)(),m=Object(y.c)(),p=!!Object(u.a)("enable_highlander_member_digest"),b=s.useState(!1),P=o()(b,2),C=P[0],k=P[1],I=s.useState("loading"),T=o()(I,2),R=T[0],A=T[1];return s.useEffect((function(){r(Object(S.d)(!0)),k(!0)}),[]),s.useEffect((function(){"rendered"===R&&r(Object(_.b)(!0)),"not_eligible"===R&&r(Object(S.d)(!1))}),[R]),s.createElement(O.b,{source:{susiEntry:"alternate_user_top_banner"}},s.createElement(g.a,{postRenderCallback:function(e,t,r){A(t?"rendered":"not_eligible"),t&&(m.event("experiment.eligible",{experimentId:"358323e239a2"}),p&&m.event("alternateUserBanner.viewed",{alternateUserSuggestionAccountType:Object(w.a)(r),alternateUserSuggestionTargetUserId:r.userId,alternateUserSuggestionSourceUserId:e?e.id:n}))}},(function(e){var r,o=e.showSuggestedAccount,a=e.declineSuggestedAccount,i=e.userSocialLogins;return p&&C&&o&&a&&i?s.createElement(d.b,null,s.createElement(h.a,{onClose:function(){return m.event("alternateUserBanner.dismissed",{alternateUserSuggestionAccountType:Object(w.a)(i),alternateUserSuggestionTargetUserId:i.userId,alternateUserSuggestionSourceUserId:t?t.id:n})}},s.createElement(E.a,{alignItems:"flex-start",display:"flex",flexDirection:"column",sm:{alignItems:"center"}},s.createElement(E.a,{alignItems:"center",display:"flex",marginBottom:"21px",sm:{flexDirection:"column",margin:"0 21px 21px",textAlign:"center"}},!t&&(null===(r=i.userAvatar)||void 0===r?void 0:r.imageId)&&s.createElement(E.a,{display:"flex",marginRight:"20px",sm:{marginBottom:"18px",marginRight:"0"}},s.createElement(v.d,{scale:"S",user:i.userAvatar})),s.createElement(l.a,{featureString:"alternate-user-top-banner",target:"header"},s.createElement(x.b,{color:"DARKER",scale:"M"},function(e,t){var n=t.isMember,r=t.redactedEmailAddress;return s.createElement(s.Fragment,null,e?"Switch":"Sign in"," to your ",n?"member ":"","account (",s.createElement("b",null,r),") for",n?" unlimited access":" your personalized experience",".")}(t,i)))),s.createElement(E.a,{alignItems:"center",display:"flex",sm:{flexDirection:"column"}},s.createElement(j,{userSocialLogins:i}),s.createElement(E.a,{margin:"0 12px",sm:{margin:"24px 0 0"}},s.createElement(f.a,{declineSuggestedAccount:a,isSocial:!!(i.facebook||i.google||i.twitter)})))))):s.createElement(s.Fragment,null)})))}},"./src/components/ui/banners/SignInConfirmationBanner.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n("./node_modules/@babel/runtime/regenerator/index.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),s=n.n(a),i=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),l=n("./node_modules/react/index.js"),c=n("./node_modules/react-redux/es/index.js"),u=n("./src/components/optimizely/OptimizelyWrapper.tsx"),d=n("./src/components/session/WithViewer.tsx"),m=n("./src/components/session/useFlag.tsx"),p=n("./src/components/style/BaseThemeProvider.tsx"),f=n("./src/components/susi/helpers/useReduxSusi.tsx"),g=n("./src/components/ui/banners/TopBanner.tsx"),b=n("./src/components/user/UserAvatar.tsx"),h=n("./src/framework/design-system/components/index.ts"),v=n("./src/framework/design-system/type/index.ts"),E=n("./src/framework/reporter/index.ts"),x=n("./src/framework/source/index.ts"),y=n("./src/framework/source/SourceContext.tsx"),O=n("./src/screens/helpers/visits.ts"),w=n("./src/util/constants.ts"),_=function(){var e=Object(E.c)(),t=Object(f.a)().openModal,n=!!Object(m.a)("enable_confirm_sign_in"),r=l.useState(!1),a=s()(r,2),_=a[0],S=a[1],j=l.useState(!1),P=s()(j,2),C=P[0],k=P[1],I=l.useState(!0),T=s()(I,2),R=T[0],A=T[1],L=Object(i.e)(d.a).data,M=(L=void 0===L?{viewer:void 0}:L).viewer,B=Object(c.f)((function(e){return{referrerSource:e.navigation.referrerSource,xsrf:e.session.xsrf}}),c.d),D=B.referrerSource,N=B.xsrf,U=Object(y.c)(D||"").name;return l.useEffect((function(){return S(!0)}),[]),l.useEffect((function(){if(_&&M){e.event("experiment.eligible",{experimentId:"b4152480e71c"});o.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.awrap(Object(O.g)(null==M?void 0:M.id,N));case 2:t=e.sent,A(t);case 4:case"end":return e.stop()}})),n&&Object(O.n)(M.id,N)}var t}),[_]),l.useEffect((function(){C&&n&&e.event("signInConfirmationBanner.viewed",{})}),[C]),!(n&&_&&M&&U&&"login"===U&&M.createdAt)||Date.now()-M.createdAt<=5*w.c||R?null:(C||k(!0),l.createElement(x.b,{source:{susiEntry:"signin_confirmation_banner"},extendSource:!0},l.createElement(p.b,null,l.createElement(g.a,{onClose:function(){return e.event("signInConfirmationBanner.dismissed",{})}},l.createElement(h.a,{display:"flex",alignItems:"center"},l.createElement(h.a,{display:"none",marginRight:"20px",sm:{display:"flex"}},l.createElement(b.d,{scale:"S",user:M})),l.createElement(v.b,{color:"DARKER",scale:"M"},l.createElement(u.a,{featureString:"confirm-sign-in-banner",target:"header",tag:"span"},"Welcome back. You are signed"," ",M.mediumMemberAt?"into your member account ":"in as ",l.createElement("b",null,M.email),"."," "),l.createElement(h.m,{onClick:function(){e.event("signInConfirmationBanner.notYouClicked",{}),t({operation:"login",step:"SIGNIN_OPTIONS",susiEntry:"signin_confirmation_banner"})},linkStyle:"OBVIOUS"},"Not you?")))))))}},"./src/components/ui/banners/TopBanner.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("./node_modules/react/index.js"),o=n("./src/WatchBounds.tsx"),a=n("./src/framework/design-system/components/index.ts"),s=function(e){var t=e.children,n=e.onClose,s=r.useRef(null),i=r.useContext(o.b).updateWatchedBounds;return r.createElement(a.A,{initialVisibility:!0},(function(e){var o=e.isVisible,l=e.hide;return o&&r.createElement(a.a,{backgroundColor:"BASE_LIGHT",borderBottom:"BASE_LIGHTER",borderTop:"BASE_LIGHTER"},r.createElement(a.o,null,r.createElement(a.a,{display:"flex",justifyContent:"space-between",paddingBottom:"20px",paddingTop:"20px"},t,r.createElement(a.e,{onClick:function(){n&&n(),i("byline",s,{type:"header"}),l()},isPositionAbsolute:!1,size:"REGULAR"}))))}))}},"./src/components/user/UserReportStoryDialog.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),o=n.n(r),a=n("./node_modules/react/index.js"),s=n("./src/framework/design-system/components/index.ts"),i=n("./src/framework/design-system/type/index.ts");t.a=function(e){var t=e.isVisible,n=e.hide,r=e.onSubmit,l=e.isResponse,c=a.useState(!1),u=o()(c,2),d=u[0],m=u[1],p=a.useState("Spam"),f=o()(p,2),g=f[0],b=f[1],h=a.useCallback((function(e,t){return b(t)}),[]);return a.createElement(s.g,{isVisible:t,hide:n,noPortal:l,withCloseButton:!1,customBackgroundColor:l?"rgba(255, 255, 255, 0.97)":"rgba(255, 255, 255, 0.94)"},a.createElement(s.a,{height:"550px",width:l?"100%":"900px",background:l?"none":"white",borderRadius:"4px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxShadow:l?"none":"rgba(0, 0, 0, 0.15) 0px 2px 10px",padding:"18px",sm:{boxShadow:"none",background:"none"},xs:{boxShadow:"none",background:"none"}},!l&&a.createElement(s.a,{alignSelf:"flex-end"},a.createElement(s.e,{onClick:n,size:"LARGE",isPositionAbsolute:!1})),a.createElement(s.a,{display:"flex",margin:"auto",flexDirection:"column",alignItems:l?"flex-start":"center"},a.createElement(i.c,{scale:"M"},"Report ",l?"Response":"Story"),a.createElement(s.a,{display:"flex",flexDirection:"column",width:"100%",paddingRight:"5px",marginBottom:"30px"},a.createElement(s.a,{marginTop:"25px",marginBottom:"30px",padding:"5px 0"},a.createElement(s.r,{onChange:h,value:g,radioStyle:"SUBTLE",options:[{name:"Spam",value:"Spam"},{name:"Harassment",value:"Harassment"},{name:"Rules Violation",value:"Other"}]})),a.createElement(s.c,{checked:d,onChange:function(){m(!d)}},a.createElement(s.a,{paddingTop:l?"16px":"0"},"Also block the author of this ",l?"response":"story"))),a.createElement(s.a,{display:"flex",justifyContent:"center",marginBottom:"10px"},a.createElement(s.a,{marginRight:"8px"},a.createElement(s.b,{onClick:n},"Cancel")),a.createElement(s.b,{buttonStyle:"ERROR",onClick:function(){r(d,g),n()}},"Report")),a.createElement(s.a,{marginTop:"50px",textAlign:l?"left":"center"},a.createElement(i.b,{scale:"M",tag:"div"},"Report"," ",a.createElement(s.m,{href:"https://medium.com/policy/mediums-copyright-and-dmca-policy-d126f73695",linkStyle:"OBVIOUS",target:"_blank",inline:!0},"copyright infringement")," ","or"," ",a.createElement(s.m,{href:"https://medium.com/policy/mediums-trademark-policy-e3bb53df59a7",linkStyle:"OBVIOUS",target:"_blank",inline:!0},"trademark infringement"),". ",!l&&a.createElement("br",null),"Read"," ",a.createElement(s.m,{href:"https://medium.com/policy/medium-rules-30e5502c4eb4",linkStyle:"OBVIOUS",target:"_blank",inline:!0},"our rules"),".")))))}},"./src/components/user/UserUnblockButton.tsx":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/createClass.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),l=n.n(i),c=n("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),u=n.n(c),d=n("./node_modules/@babel/runtime/helpers/inherits.js"),m=n.n(d),p=n("./node_modules/react/index.js"),f=n("./src/components/mutations/UserUnblockMutation.tsx"),g=n("./src/components/session/WithViewer.tsx"),b=n("./src/framework/design-system/components/index.ts"),h=function(e){function t(e){var n;return o()(this,t),(n=l()(this,u()(t).call(this,e))).state={isHovering:!1},n}return m()(t,e),s()(t,[{key:"handleMouseEnter",value:function(){this.setState({isHovering:!0})}},{key:"handleMouseLeave",value:function(){this.setState({isHovering:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.buttonSize,r=t.targetUserId,o=this.state.isHovering;return p.createElement(g.b,null,(function(t){return p.createElement(f.a,{targetUserId:r,viewerId:t&&t.id},(function(t){var r=t.mutate;return p.createElement(b.b,{buttonStyle:o?"SUBTLE":"ERROR",onClick:r,size:n||"REGULAR",onMouseEnter:function(){return e.handleMouseEnter()},onMouseLeave:function(){return e.handleMouseLeave()}},o?"Unblock":"Blocked")}))}))}}]),t}(p.Component);t.a=h},"./src/framework/actions/ActionContext.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/react/index.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var i=a.createContext({}),l=function(){return a.useContext(i)},c=function(e){var t=e.context,n=e.extendContext,r=void 0!==n&&n,c=e.children,u=l();return r&&u&&(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u,{},t)),a.createElement(i.Provider,{value:t},c)}},"./src/handlers/EmbeddedPostHandler.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),s=n("./node_modules/graphql-tag/src/index.js"),i=n.n(s),l=n("./node_modules/react/index.js"),c=n("./src/framework/reporter/index.ts"),u=n("./src/components/post/body/PostBody.tsx");function d(){var e=o()(["\n  fragment PostContentScreen_post on Post {\n    id\n    title\n    # please note that the postMeteringOptions are defined in the postHandler file\n    content(postMeteringOptions: $postMeteringOptions) {\n      bodyModel {\n        ...PostBody_bodyModel\n      }\n    }\n    creator {\n      id\n      ...PostBody_creator\n    }\n  }\n  ","\n  ","\n"]);return d=function(){return e},e}function m(e){var t=e.post,n={bodyModel:t.content.bodyModel,creator:t.creator,postBodyInserts:null,ref:null,richTextStyle:"FULL_PAGE",customStyleSheet:null};return l.createElement(u.f,n)}var p=i()(d(),u.b,u.a);function f(){var e=o()(["\n  query EmbeddedPostHandler($postId: ID!, $postMeteringOptions: PostMeteringOptions) {\n    post(id: $postId) {\n      ...PostContentScreen_post\n    }\n  }\n  ","\n"]);return f=function(){return e},e}var g=i()(f(),p),b=function(e){var t=e.postId,n=e.children,r=Object(c.c)();return l.createElement(a.b,{query:g,variables:{postId:t,postMeteringOptions:{source:null,referrer:null,sk:null}}},(function(e){var o=e.loading,a=e.error,s=e.data,i=(s=void 0===s?{}:s).post;return o?n(null):a?(r.event("embeddedPost.error",{errorMessage:a.message,postId:t}),n(null)):i?(r.event("embeddedPost.postPresented",{postId:t}),n(l.createElement(m,{post:i}))):(r.event("embeddedPost.noPost",{postId:t}),n(null))}))}},"./src/handlers/PostHandler.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"PostHandlerQuery",(function(){return f})),n.d(t,"PostHandler",(function(){return g}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./node_modules/react/index.js"),l=n("./node_modules/react-redux/es/index.js"),c=n("./src/framework/source/index.ts"),u=n("./src/handlers/SharedPostHandler.tsx"),d=n("./src/screens/PostScreen.tsx"),m=n("./src/util/hooks/postRecircHooks.tsx");function p(){var e=o()(["\n  query PostHandler(\n    $postId: ID!\n    $postMeteringOptions: PostMeteringOptions\n    $includePostInternalLinks: Boolean!\n    $includePostRecirc: Boolean = false\n    $includeSequenceRecirc: Boolean = false\n    $postRecircPaging: PaginationLimit\n  ) {\n    meterPost(postId: $postId, postMeteringOptions: $postMeteringOptions) {\n      __typename\n      ... on MeteringInfo {\n        ...PostScreen_meteringInfo\n      }\n    }\n    postResult(id: $postId) {\n      __typename\n      ...SharedPostHandler_postResult\n      ... on Post {\n        ...PostScreen_post\n      }\n    }\n  }\n  ","\n  ","\n  ","\n"]);return p=function(){return e},e}var f=s()(p(),d.b,u.b,d.c),g=Object(l.c)((function(e){return{recircOptions:e.config.recircOptions}}))((function(e){var t,n,r=e.match,o=e.recircOptions,a=Object(m.a)(),s=(a?null==o||null===(t=o.v2)||void 0===t?void 0:t.limit:null==o||null===(n=o.v1)||void 0===n?void 0:n.limit)||3;return i.createElement(u.a,{match:r,query:f,extraVariables:{includePostInternalLinks:a,postRecircPaging:s}},(function(e){var t=e.meterPost,n=e.postId,r=e.postResult,o=e.viewer;return i.createElement(c.b,{source:{name:"post_page",postId:n}},i.createElement(d.a,{viewer:o,meteringInfo:t,post:r}))}))}))},"./src/handlers/SharedPostHandler.tsx":function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return I}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/@apollo/react-components/lib/react-components.esm.js"),l=n("./node_modules/graphql-tag/src/index.js"),c=n.n(l),u=n("./node_modules/react/index.js"),d=n("./node_modules/react-redux/es/index.js"),m=n("./src/components/error/PostResultError.tsx"),p=n("./node_modules/url/url.js"),f=n.n(p),g=n("./src/components/navigation/Redirect.tsx"),b=n("./src/util/navigation.ts");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(){var e=s()(["\n  fragment PostCanonicalizer_post on Post {\n    mediumUrl\n  }\n"]);return v=function(){return e},e}var E=c()(v()),x=function(e){var t=e.post,n=e.matchedPath,r=e.children,a=Object(d.f)((function(e){var t=e.navigation,n=t.host,r=t.referrerSource;return{currentHost:n,shareKey:t.shareKey,source:r}}),d.d),s=a.currentHost,i=a.shareKey,l=a.source,c=t.mediumUrl;if(!c)return r;var m=f.a.parse(decodeURIComponent(c)),p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l?{source:l}:{},{},i?{sk:i}:{});return s!==m.host?u.createElement(g.a,{to:Object(b.a)(c,p)}):m.path&&n!==m.path?u.createElement(g.a,{to:Object(b.a)(m.path,p)}):r},y=n("./src/components/session/WithViewer.tsx"),O=n("./src/handlers/SharedPostContext.tsx"),w=n("./src/screens/ErrorScreen.tsx"),_=n("./src/screens/LoadingScreen.tsx"),S=n("./src/screens/NotFoundScreen.tsx"),j=n("./src/util/routes.ts");function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(){var e=s()(["\n  fragment SharedPostHandler_postResult on PostResult {\n    __typename\n    ...PostResultError_postResult\n    ... on Post {\n      ...PostCanonicalizer_post\n    }\n  }\n  ","\n  ","\n"]);return C=function(){return e},e}var k=c()(C(),m.b,E),I=function(e){var t=e.children,n=e.match,r=e.query,a=e.extraVariables,s=void 0===a?{}:a,l=Object(d.f)((function(e){var t=e.navigation;return{source:t.referrerSource||void 0,referrer:t.referrer,shareKey:t.shareKey}}),d.d),c=l.source,p=l.referrer,f=l.shareKey,g=Object(j.Eb)(n);if(!g)return u.createElement(S.a,null);var b=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({postId:g,postMeteringOptions:{referrer:p,source:c,sk:f}},s);return u.createElement(i.b,{query:r,variables:b},(function(e){var r=e.loading,o=e.error,a=e.data,s=(a=void 0===a?{}:a).meterPost,i=a.postResult,l=e.refetch,c=e.fetchMore;return r?u.createElement(_.a,null):o?u.createElement(w.a,{error:o}):Object(m.c)(i)?u.createElement(m.a,{postResult:i}):u.createElement(O.a.Provider,{value:{refetch:l,fetchMore:c,postId:g}},u.createElement(x,{post:i,matchedPath:n.url,key:g},u.createElement(y.b,null,(function(e){return t({meterPost:s,postId:g,postResult:i,viewer:e})}))))}))}},"./src/screens/ContentErrorScreen.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-helmet-async/lib/index.module.js"),a=n("./node_modules/react-router/esm/react-router.js"),s=n("./src/components/error/ErrorCodeDisplay.tsx"),i=n("./src/components/metabar/Metabar.tsx"),l=n("./src/framework/design-system/components/index.ts"),c=n("./src/framework/style/index.ts"),u=n("./src/styles/font.ts"),d={fontSize:"24px"};function m(e){var t=e.code,n=e.title,m=e.description,p=e.lumenId,f=Object(c.useCx)();return r.createElement(a.b,{render:function(e){var a=e.staticContext;return a&&(a.statusCode=t),r.createElement("div",null,r.createElement(o.a,null,r.createElement("title",null,n)),r.createElement(i.a,null),r.createElement(l.a,{tag:"section",paddingTop:"60px",paddingBottom:"60px"},r.createElement(l.s,{columns:8},r.createElement(l.a,{display:"flex",alignItems:"flex-start",flexWrap:"wrap"},r.createElement(s.a,{errorCode:t}),r.createElement("div",{className:f(Object(u.k)())},r.createElement(l.a,{marginBottom:"28px"},r.createElement("div",{className:f(d)},m)),p?r.createElement("div",{className:f(d)},"A report is available on"," ",r.createElement(l.m,{href:"https://lumendatabase.org/notices/".concat(p),display:"inline-block",inline:!0,target:"_blank",linkStyle:"OBVIOUS"},"Lumen"),"."):null)))))}})}},"./src/screens/PostScreen.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return It})),n.d(t,"b",(function(){return Rt})),n.d(t,"c",(function(){return At}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/extends.js"),s=n.n(a),i=n("./node_modules/@babel/runtime/helpers/slicedToArray.js"),l=n.n(i),c=n("./node_modules/querystring-es3/index.js"),u=n("./node_modules/exenv/index.js"),d=n.n(u),m=n("./node_modules/graphql-tag/src/index.js"),p=n.n(m),f=n("./node_modules/react/index.js"),g=n.n(f),b=n("./node_modules/react-redux/es/index.js"),h=n("./node_modules/react-router/esm/react-router.js"),v=n("./src/WatchBounds.tsx"),E=n("./src/components/metabar/Logo.tsx"),x=n("./src/framework/design-system/type/useTypeRules.ts"),y=n("./src/framework/style/index.ts"),O=n("./src/util/routes.ts");function w(){var e=o()(["\n  fragment TopicList_topics on Topic {\n    id\n    slug\n    name\n  }\n"]);return w=function(){return e},e}var _={padding:0,margin:0},S={display:"inline-block",listStyleType:"none",marginRight:"8px",marginBottom:"8px"},j=function(e){return{border:"".concat(e.baseColor.border.light," 1px solid"),padding:"5px 10px",textDecoration:"none",color:e.baseColor.text.normal,display:"block",lineHeight:"22px"}};function P(e){var t=e.topics,n=Object(y.useCx)(),r=Object(b.f)((function(e){return{authDomain:e.config.authDomain}})).authDomain,o=Object(x.a)({name:"detail",scale:"S",color:"DARKER"});return t?f.createElement("ul",{className:n(_)},t.map((function(e){return e.id?f.createElement("li",{key:e.id,className:n(S)},f.createElement("a",{href:Object(O.ic)(r,e.slug||""),className:n([o,j])},e.name)):null}))):null}p()(w());var C=n("./src/components/session/WithViewer.tsx"),k=n("./src/components/susi/SusiClickable.tsx"),I=n("./src/components/user/UserAvatar.tsx"),T=n("./src/framework/design-system/components/index.ts"),R=n("./src/framework/design-system/type/Overline.tsx"),A=n("./src/framework/source/index.ts"),L=n("./src/svg/apple-25px.svg"),M=n("./src/svg/arrow-down-21px.svg"),B=n("./src/svg/bell-25px.svg"),D=n("./src/svg/bookmark-25px.svg"),N=n("./src/svg/response-25px.svg"),U="transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0s, opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0s, border 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0s",F=[{id:"a1",slug:"art",name:"Art"},{id:"b1",slug:"beauty",name:"Beauty"},{id:"c1",slug:"comics",name:"Comics"},{id:"c2",slug:"culture",name:"Culture"},{id:"f1",slug:"fiction",name:"Fiction"},{id:"f2",slug:"food",name:"Food"},{id:"h1",slug:"humor",name:"Humor"},{id:"m1",slug:"music",name:"Music"},{id:"s1",slug:"sports",name:"Sports"},{id:"w1",slug:"writing",name:"Writing"}],H=function(e){return{display:{xs:"none",sm:"none",md:"flex",lg:"flex",xl:"flex"},flexDirection:"column",justifyContent:"space-between",background:e.backgroundColor,borderRight:"".concat(e.baseColor.border.lighter," 1px solid"),position:"fixed",top:"0px",height:"100%",width:"".concat(250,"px")}},V={opacity:1,height:"100%",padding:"20px",overflow:"hidden",transition:U,zIndex:500},z=function(e){return{width:"100%",background:e.backgroundColor,borderTop:"".concat(e.baseColor.border.lighter," 1px solid"),padding:"15px",transition:U,zIndex:510,cursor:"pointer"}},G={margin:"0px 10px",opacity:1,transition:U,display:"block",width:"100%"},W={margin:"0px 10px",height:"35px",width:"35px"},q={fontSize:"24px",margin:"20px 0px",display:"block"},$=function(e){return e?{}:{transform:"translateX(-200px) !important",opacity:0}},K=function(e){return e?{}:{border:"none !important"}},Y=function(e){return e?{}:{opacity:"0 !important"}},Q=function(e){return e?{}:{border:"none !important"}},X=function(){var e=Object(b.f)((function(e){return e.config.authDomain})),t=Object(y.useCx)(),n=f.useState(!1),r=l()(n,2),o=r[0],a=r[1],s=f.useState(null),i=l()(s,2),c=i[0],u=i[1],d=function(){o?p():m()},m=function(){clearTimeout(c),a(!0),document.body.addEventListener("click",p)},p=function e(){var t=setTimeout((function(){a(!1)}),300);u(t),document.body.removeEventListener("click",e)};return f.createElement(A.b,{source:{name:"norway_sidebar"}},f.createElement(C.b,null,(function(n){return n?f.createElement("div",{className:t([H,K(o)])},f.createElement("div",{className:t([V,$(o)])},f.createElement(T.a,{margin:"20px 15px"},f.createElement(E.e,null)),f.createElement(T.m,{href:"/",className:t(q)},f.createElement(T.a,{display:"flex",alignItems:"center"},f.createElement(L.a,{className:t(W)}),f.createElement(f.Fragment,null,"Home"))),f.createElement(T.m,{href:Object(O.Gc)(e),className:t(q)},f.createElement(T.a,{display:"flex",alignItems:"center"},f.createElement(D.a,{className:t(W)}),f.createElement(f.Fragment,null,"Reading List"))),f.createElement(T.m,{href:Object(O.Dc)(e),className:t(q)},f.createElement(T.a,{display:"flex",alignItems:"center"},f.createElement(B.a,{className:t(W)}),f.createElement(f.Fragment,null,"Notifications"))),f.createElement(T.m,{href:Object(O.zc)(n.username||""),className:t(q)},f.createElement(T.a,{display:"flex",alignItems:"center"},f.createElement(N.a,{className:t(W)}),f.createElement(f.Fragment,null,"Responses")))),f.createElement(T.a,{display:"flex",flexGrow:"1",alignItems:"flex-end"},f.createElement("div",{className:t([z,Q(o)]),onClick:d},f.createElement(T.a,{display:"flex",flexDirection:"row",alignItems:"center"},f.createElement(I.d,{user:n,scale:"S"}),f.createElement("div",{className:t([G,Y(o)])},f.createElement(T.a,null,n.name),f.createElement(T.a,null,f.createElement(T.m,{href:Object(O.ob)(e,n.username||"")},"@",n.username))))))):f.createElement("div",{className:t([H,K(o)])},f.createElement("div",{className:t([V,$(o)])},f.createElement(T.a,{margin:"20px 15px"},f.createElement(E.e,null)),f.createElement(T.m,{href:Object(O.cb)(),className:t(q)},f.createElement(T.a,{display:"flex",alignItems:"center"},f.createElement(L.a,{className:t(W)}),f.createElement(f.Fragment,null,"Home"))),f.createElement(T.a,null,f.createElement(T.a,{margin:"20px"},f.createElement(R.a,{scale:"M",color:"LIGHTER"},"Trending Topics"),f.createElement(T.a,{marginTop:"10px"},f.createElement(P,{topics:F}))),f.createElement(T.a,{margin:"20px"},f.createElement(R.a,{scale:"M",color:"LIGHTER"},"Others in ...")))),f.createElement(T.a,{display:"flex",flexGrow:"1",alignItems:"flex-end"},f.createElement("div",{className:t([z,Q(o)]),onClick:d},f.createElement(T.a,{display:"flex",flexDirection:"row",alignItems:"center"},f.createElement(E.a,null),f.createElement("div",{className:t([G,Y(o)])},f.createElement(A.b,{source:{susiEntry:"post_sidebar"}},f.createElement(k.a,{operation:"login"},f.createElement(T.a,{display:"flex",justifyContent:"space-between"},"Log In or Sign Up"," ",f.createElement(M.a,{className:t({transform:"rotate(-90deg)"})})))))))))})))},J=n("./src/components/analytics/ParselyReporter.tsx"),Z=n("./src/components/branch-banner/helpers/index.ts"),ee=n("./src/components/collection/CollectionMetabar.tsx"),te=n("./src/components/collection/theming/CustomBackgroundWrapper.tsx"),ne=n("./src/components/collection/theming/CustomStyleWrapper.tsx"),re=n("./src/components/collection/theming/customStyleSheet.ts"),oe=n("./src/components/debug/GoogleAnalytics.tsx"),ae=n("./src/components/footer/GlobalFooter.tsx"),se=n("./src/components/metabar/Metabar.tsx"),ie=n("./src/components/metabar/MetabarLayout.tsx"),le=n("./src/components/meter/PayWall.tsx"),ce=n("./src/components/meter/RegWall.tsx"),ue=n("./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js"),de=n("./src/components/session/useViewer.tsx");function me(){var e=o()(["\n  mutation AddCollaboratorMutation($postId: ID!) {\n    addCollaborator(postId: $postId)\n  }\n"]);return me=function(){return e},e}function pe(){var e=o()(["\n  fragment AddCollaborator_post on Post {\n    isPublished\n    id\n  }\n"]);return pe=function(){return e},e}var fe=p()(pe()),ge=p()(me()),be=n("./src/components/optimizely/helpers/index.ts"),he=n("./src/components/post/MaybeRedirectToEditor.tsx");function ve(){var e=o()(["\n  fragment NextPostButton_post on Post {\n    id\n    nextPostId\n  }\n"]);return ve=function(){return e},e}var Ee={transform:"rotate(-90deg)",fill:"white"},xe={transition:"width 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0s",color:"white",width:"0px",overflow:"hidden",display:"inline",whiteSpace:"nowrap"},ye=function(e){return e?{width:"75px",margin:"0px 0px 0px 15px"}:{}},Oe=function(e){var t="undefined"!=typeof window?window.innerHeight:0,n="undefined"!=typeof window?window.innerWidth:0;return{transition:"margin 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0s",position:"fixed",top:"".concat(Math.max(t-50,0),"px"),left:"".concat(Math.max(n-50,0),"px"),backgroundColor:e.baseColor.fill.darker,borderRadius:"20px"}},we=function(e){var t,n=e.postId,r=Object(y.useCx)(),o=Object(b.f)((function(e){return{authDomain:e.config.authDomain}})).authDomain,a=f.useState(!1),s=l()(a,2),i=s[0],c=s[1];return"undefined"!=typeof window&&n?f.createElement("div",{className:r([Oe,(t=i,t?{margin:"0 0 0 -95px"}:{})]),onMouseOver:function(){return c(!0)},onMouseOut:function(){return c(!1)}},f.createElement(T.m,{href:Object(O.Ib)(o,n)},f.createElement("div",{className:r({display:"flex",alignItems:"center",justifyContent:"space-between"})},f.createElement("div",{className:r([xe,ye(i)])},"Next Story"),f.createElement(M.a,{className:r(Ee)})))):null},_e=p()(ve()),Se=n("./src/components/post/PostBodyInserts.tsx"),je=n("./src/components/post/PostHeader.tsx"),Pe=n("./src/components/post/PostMetadata.tsx"),Ce=n("./src/components/post/PostPublishedDialog.tsx"),ke=n("./src/components/publisher/auroraHooks.ts"),Ie=n("./src/components/session/useFlag.tsx"),Te=n("./src/components/style/UnboundFellThemeProvider.tsx"),Re=n("./src/util/theme.ts");function Ae(){var e=o()(["\n  fragment PostScreenThemeProvider_post on Post {\n    collection {\n      colorPalette {\n        ...customDefaultBackgroundTheme_colorPalette\n      }\n      ...auroraHooks_publisher\n    }\n    creator {\n      ...auroraHooks_publisher\n    }\n    customStyleSheet {\n      ...customDefaultBackgroundTheme_customStyleSheet\n      ...customStyleSheetFontTheme_customStyleSheet\n    }\n  }\n  ","\n  ","\n  ","\n  ","\n"]);return Ae=function(){return e},e}var Le=function(e){var t=e.children,n=e.post,r=Object(ke.b)(n.collection||n.creator),o=!!Object(Ie.a)("enable_sohne"),a=!!Object(Ie.a)("enable_unbound"),s=Object(y.useTheme)();if(r){var i,l=Object(Re.j)(n.customStyleSheet,Object(Re.g)(n.customStyleSheet,s,null===(i=n.collection)||void 0===i?void 0:i.colorPalette),o||a);return f.createElement(y.ThemeProvider,{theme:l},t)}var c,u=Object(Re.g)(null,s,null===(c=n.collection)||void 0===c?void 0:c.colorPalette);return f.createElement(y.ThemeProvider,{theme:u},f.createElement(Te.a,null,t))},Me=p()(Ae(),ke.a,Re.h,Re.i,Re.k),Be=n("./src/components/post/PostSidebar.tsx"),De=n("./src/components/post/ResponsesSidebarContext.tsx"),Ne=n("./src/components/post/TableOfContents.tsx"),Ue=n("./src/components/post/body/InteractivePostBody.tsx"),Fe=n("./src/components/post/bookmark/PostPageBookmarkContext.tsx"),He=n("./src/components/post/footer/PostFooter.tsx"),Ve=n("./src/components/post/helpers/loggedOutHistory.ts"),ze=n("./src/components/publisher/MetaHeader.tsx"),Ge=n("./src/components/responses/ResponsesSidebar.tsx"),We=n("./src/components/session/RequireFlag.tsx"),qe=n("./src/framework/design-system/type/index.ts"),$e=n("./src/store/actions/navigation.ts"),Ke=n("./src/styles/colors.ts");function Ye(){return(Ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Qe=g.a.createElement("path",{fill:"#fff",d:"M0 0h49v57H0z"}),Xe=g.a.createElement("path",{d:"M45.95 17.53v-.04l-.05-1.55a5.32 5.32 0 0 0-5.04-5.17c-5.8-.32-10.3-2.2-14.13-5.89l-.03-.03a3.26 3.26 0 0 0-4.4 0l-.03.03c-3.84 3.7-8.33 5.57-14.13 5.89-2.79.15-5 2.42-5.04 5.18l-.05 1.54v.1c-.11 5.84-.25 13.12 2.21 19.73 1.36 3.63 3.41 6.79 6.1 9.38 3.07 2.96 7.09 5.3 11.94 6.98a3.74 3.74 0 0 0 2.4 0c4.85-1.68 8.86-4.03 11.93-6.98 2.69-2.6 4.74-5.76 6.1-9.39 2.47-6.63 2.33-13.92 2.22-19.78zm-5 18.77c-2.6 6.96-7.9 11.74-16.23 14.62a.67.67 0 0 1-.45 0c-8.32-2.87-13.63-7.65-16.23-14.61-2.27-6.1-2.14-12.78-2.03-18.67v-.03c.03-.5.04-1.04.05-1.62.02-1.22 1-2.23 2.24-2.3 3.29-.18 6.17-.81 8.83-1.92 2.64-1.1 5-2.67 7.19-4.77.1-.1.25-.1.36 0a23.11 23.11 0 0 0 7.2 4.77 26.27 26.27 0 0 0 8.82 1.92 2.36 2.36 0 0 1 2.24 2.3c0 .58.02 1.12.05 1.62.11 5.9.24 12.59-2.04 18.69z",fill:"#757575"}),Je=g.a.createElement("path",{d:"M24.5 17.76c-7.11 0-12.9 5.4-12.9 12.04 0 6.64 5.79 12.04 12.9 12.04s12.9-5.4 12.9-12.04c0-6.64-5.79-12.04-12.9-12.04zm0 21.25c-5.44 0-9.86-4.13-9.86-9.2 0-5.08 4.42-9.21 9.86-9.21 5.44 0 9.86 4.13 9.86 9.2 0 5.08-4.42 9.2-9.86 9.2z",fill:"#757575"}),Ze=g.a.createElement("path",{d:"M28.08 25.1l-5.64 6.12-1.53-1.66c-.56-.6-1.46-.6-2.02 0-.55.6-.55 1.59 0 2.2l2.54 2.75c.28.3.65.45 1.01.45.37 0 .73-.15 1.01-.45l6.65-7.22c.55-.6.55-1.59 0-2.2-.56-.6-1.47-.6-2.02 0z",fill:"#757575"}),et=function(e){return g.a.createElement("svg",Ye({width:49,height:57,viewBox:"0 0 49 57",fill:"none"},e),Qe,Xe,Je,Ze)};var tt=Object(b.c)()((function(e){var t=e.dispatch,n=e.isVisible,r=e.hide;return f.createElement(T.g,{isVisible:n,hide:r,withCloseButton:!1,withTransparentOverlay:!0},f.createElement(T.a,{display:"flex",justifyContent:"center",paddingTop:"100px"},f.createElement(T.a,{display:"flex",flexDirection:"column",justifyContent:"center",position:"relative",textAlign:"center",background:Ke.B,boxShadow:"0 2px 10px ".concat(Object(Ke.y)(.15)),borderRadius:"4px",height:"550px",width:"900px",paddingBottom:"14px",md:{width:"600px",height:"auto",padding:"14px 8px"},sm:{width:"95vw !important",padding:"14px 8px"}},f.createElement(T.a,{display:"flex",flexDirection:"column",justifyContent:"center",height:"100%"},f.createElement(T.a,{paddingBottom:"24px"},f.createElement(et,null)),f.createElement(T.a,{paddingBottom:"24px",paddingRight:"24px",paddingLeft:"24px"},f.createElement(qe.c,{scale:"L"},"The following content was reported as a potential violation of Medium’s rules and is under investigation.")),f.createElement(T.a,{padding:"0 0 24px 0"},f.createElement(T.b,{buttonStyle:"BRAND",size:"REGULAR",onClick:function(){r(),t(Object($e.m)({duration:"FOREVER",message:"",toastStyle:"LIMITED_STATE_BANNER"}))}},"I understand and want to proceed anyway"),f.createElement(T.A,null,(function(e){var t=e.isVisible,n=e.toggle,r=e.hide;return f.createElement(T.p,{isVisible:t,hide:r,display:"block",customZIndex:800,popoverRenderFn:function(){return f.createElement(T.a,{padding:"15px 20px",width:"400px"},f.createElement(qe.b,{scale:"S"},"Anyone can publish on Medium, provided the content adheres to Medium’s rules and policies. When Medium is made aware of potential violations, the content is manually evaluated and appropriate action taken. Some features may be disabled while the content is under review."))},placement:"top",targetDistance:15},f.createElement(T.a,{paddingTop:"10px"},f.createElement(T.m,{onClick:n},f.createElement("u",null,f.createElement(qe.b,{scale:"S"},"Why am I seeing this?")))))})))),f.createElement(T.a,{display:"flex",justifyContent:"center"},f.createElement(qe.b,{scale:"M"},"View our"," ",f.createElement(T.m,{href:"https://medium.com/policy/medium-rules-30e5502c4eb4",linkStyle:"OBVIOUS",inline:!0},"Rules,")," ",f.createElement(T.m,{href:"https://medium.com/policy/medium-terms-of-service-9db0094a1e0f",linkStyle:"OBVIOUS",inline:!0},"Terms of Service")," ","&"," ",f.createElement(T.m,{href:"https://medium.com/policy/medium-partner-program-terms-fcfe9cf777b8",linkStyle:"OBVIOUS",inline:!0},"Partner Program Terms"))))))}));function nt(){var e=o()(["\n  fragment LimitedStateInterstitial_post on Post {\n    creator {\n      id\n    }\n    isLimitedState\n  }\n"]);return nt=function(){return e},e}var rt=function(e){return function(){return{filter:e?"blur(10px)":"blur(0)"}}};function ot(e){var t=e.post,n=t.creator,r=t.isLimitedState,o=e.viewerId,a=e.children,s=Object(y.useCx)(),i=f.useState(!1),c=l()(i,2),u=c[0],d=c[1];return f.useEffect((function(){d(!0)}),[]),r&&(n&&n.id)!==o?f.createElement(T.A,{initialVisibility:!0},(function(e){var t=e.isVisible,n=e.hide;return f.createElement(f.Fragment,null,f.createElement("div",{className:s(rt(t))},a),u&&f.createElement(tt,{isVisible:t,hide:n}))})):a}var at=p()(nt()),st=n("./src/components/tns/SuspendedBannerLoader.tsx"),it=n("./src/components/ui/banners/AlternateUserTopBanner.tsx"),lt=n("./src/components/ui/banners/SignInConfirmationBanner.tsx"),ct=n("./src/framework/reporter/index.ts"),ut=n("./src/framework/track/index.ts"),dt=n("./src/schema-types/globalTypes.ts"),mt=n("./src/screens/helpers/users.ts"),pt=n("./src/screens/helpers/visits.ts"),ft=n("./src/store/actions/auroraPage.ts"),gt=n("./src/store/actions/branch.ts"),bt=n("./node_modules/serialize-javascript/index.js"),ht=n.n(bt);function vt(e){var t={__html:'<script type="application/json">'.concat(ht()(e.json,{isJSON:!0}),"<\/script>")};return f.createElement("amp-analytics",{id:"medium-analytics",dangerouslySetInnerHTML:t})}var Et=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),xt=n.n(Et);function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){xt()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wt=Object(b.c)((function(e){return{googleAnalyticsCode:e.config.googleAnalyticsCode}}))((function(e){var t=e.googleAnalyticsCode,n=e.collectionGoogleAnalyticsId,r={triggers:Ot({},{trackPageview:{on:"visible",request:"pageview",vars:{account:t}}},{},n?{trackCollectionPageview:{on:"visible",request:"pageview",vars:{account:n}}}:{})},o={__html:'<script type="application/json">'.concat(ht()(r,{isJSON:!0}),"<\/script>")};return f.createElement("amp-analytics",{type:"googleanalytics",id:"google-analytics",dangerouslySetInnerHTML:o})}));function _t(){var e={__html:'<script type="application/json">'.concat(ht()({vars:{apikey:"medium.com"}},{isJSON:!0}),"<\/script>")};return f.createElement("amp-analytics",{type:"parsely",id:"parsely-amp-analytics",dangerouslySetInnerHTML:e})}var St=n("./src/util/hooks/useIsEligibleToViewNewResponses.tsx"),jt=n("./src/util/hooks/usePrevious.tsx"),Pt=n("./src/util/richText.ts");function Ct(){var e=o()(["\n  fragment PostScreen_post on Post {\n    id\n    canonicalUrl\n    collection {\n      id\n      domain\n      googleAnalyticsId\n      slug\n      ...CollectionMetabar_collection\n      ...MetaHeader_publisher\n      ...auroraHooks_publisher\n    }\n    # please note that the postMeteringOptions are defined in the postHandler file\n    content(postMeteringOptions: $postMeteringOptions) {\n      isLockedPreviewOnly\n      validatedShareKey\n    }\n    creator {\n      ...SuspendedBannerLoader_user\n      ...MetaHeader_publisher\n      ...auroraHooks_publisher\n    }\n    customStyleSheet {\n      id\n      postBody {\n        ...SupportedContainerStyles_styleNode\n      }\n      ...CustomBackgroundWrapper_customStyleSheet\n      ...InteractivePostBody_customStyleSheet\n      ...MetaHeader_customStyleSheet\n    }\n    firstPublishedAt\n    isLocked\n    isPublished\n    isShortform\n    isEmail\n    layerCake\n    primaryTopic {\n      name\n      slug\n    }\n    title\n    ...AddCollaborator_post\n    ...InteractivePostBody_post\n    ...LimitedStateInterstitial_post\n    ...MaybeRedirectToEditor_post\n    ...Metabar_post\n    ...PayWall_post\n    ...PostBodyInserts_post\n    ...PostFooter_post\n    ...PostHeader_post\n    ...PostMetadata_post\n    ...PostPublishedDialog_prerequisite_post\n    ...PostReadTracker_post\n    ...PostScreenThemeProvider_post\n    ...PostScrollTracker_post\n    ...PostSidebar_post\n    ...RegWall_post\n    ...SuspendedBannerLoader_post\n    ...buildBranchViewData_post\n    ...optimizelyData_post\n    ...TableOfContents_post\n    ...NextPostButton_post\n  }\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n"]);return Ct=function(){return e},e}function kt(){var e=o()(["\n  fragment PostScreen_meteringInfo on MeteringInfo {\n    __typename\n    postIds\n    maxUnlockCount\n    unlocksRemaining\n    ...PostHeader_meteringInfo\n    ...RegWall_meteringInfo\n    ...buildBranchViewData_meteringInfo\n  }\n  ","\n  ","\n  ","\n"]);return kt=function(){return e},e}function It(e){var t,n=e.meteringInfo,r=e.post,o=e.viewer,a=r.id,s=r.isPublished,i=r.isLocked,u=r.isShortform,m=r.isEmail,p=r.content,g=r.collection,E=r.canonicalUrl,x=Object(b.e)(),y=Object(ct.c)(),w=Object(b.f)((function(e){return{authDomain:e.config.authDomain,isAmp:e.config.isAmp,isBot:e.client.isBot,inAppBrowser:e.client.inAppBrowserName,currentHash:e.navigation.currentHash,postPublishedType:e.navigation.postPublishedType,referrer:e.navigation.referrer,referrerSource:e.navigation.referrerSource,responsesOpen:e.navigation.responsesOpen,sessionUserId:e.session.user.id}}),b.d),_=w.authDomain,S=w.currentHash,j=w.isAmp,P=w.isBot,C=w.inAppBrowser,k=w.postPublishedType,I=w.referrer,T=w.referrerSource,R=w.responsesOpen,A=w.sessionUserId,L=f.useState(!1),M=l()(L,2),B=M[0],D=M[1],N=f.useState(r.readingList===dt.r.READING_LIST_QUEUE||r.readingList===dt.r.READING_LIST_ARCHIVE),U=l()(N,2),F=U[0],H=U[1],V=f.useRef(null),z=!!o,G=g||{},W=G.id,q=G.slug,$=G.googleAnalyticsId,K=p||{},Y=K.isLockedPreviewOnly,Q=K.validatedShareKey,ee=$?[$]:null;Object(oe.b)(ee,P,j),Object(ut.h)(V,r),Object(ut.g)(!!z,V,r),function(e){var t=Object(de.b)(),n=Object(ue.d)(ge,{variables:{postId:e.id}}),r=l()(n,2),o=r[0],a=r[1].called;f.useEffect((function(){!e.isPublished&&(null==t?void 0:t.id)&&!a&&o()}),[t])}(r);var se=Object(Ie.a)("enable_norway_sidebar"),ie=Object(ke.b)(g||r.creator),me=u&&ie,pe=Object(jt.a)(ie),fe=Object(St.a)(),ve=fe&&R,Ee=f.useState(Boolean(ve)),xe=l()(Ee,2),ye=xe[0],Oe=xe[1],_e=f.useState(void 0),Te=l()(_e,2),Re=Te[0],Ae=Te[1],Me=f.useState(!1),Ne=l()(Me,2),ze=Ne[0],qe=Ne[1];ze||ut.a.on("load",(function(){return qe(!0)}));var Ke=Object(Se.b)(r);f.useEffect((function(){if(s){z||(r.isLocked?Object(pt.k)():Object(pt.l)());var e=Object(Z.a)({inAppBrowser:C,post:r,meteringInfo:n,referrer:I,referrerSource:T,viewer:o,currentUserId:A});g&&g.domain&&(e.data.$canonical_url=Object(O.Ib)(_,r.id));var t=o&&o.name?Object(mt.b)(o.name):void 0;Object(be.c)({post:r},t),Object(Z.g)(e),x(Object(gt.h)(e)),x(Object(gt.j)()),y.event("post.clientViewed",{postId:a,collectionId:W,collectionSlug:q,context:1,isFriendLink:!!Q})}else y.event("post.draftViewed",{postId:a});switch(z||Object(Ve.b)(a),k){case"initial":D(!m),x(Object($e.k)());break;case"repub":x(Object($e.m)({duration:3e3,message:"Your changes have been published."})),x(Object($e.k)())}return function(){x(Object(gt.g)())}}),[a,s]);var Ye=Object(h.g)().search,Qe=Object(c.parse)(Ye.slice(1));if(d.a.canUseDOM&&"string"==typeof Qe.readmore){var Xe=document.getElementById(Pt.i);if(Xe){var Je,Ze=window.matchMedia&&(null===(Je=window.matchMedia("(prefers-reduced-motion: reduce)"))||void 0===Je?void 0:Je.matches);setTimeout((function(){var e=Math.max(Xe.offsetTop-window.innerHeight/2,0);window.scrollY<=e&&window.scrollTo({top:e,behavior:Ze?void 0:"smooth"})}))}}pe!==ie&&x(Object(ft.b)(ie));var et,tt,nt,rt=Y&&(z?f.createElement(le.a,{post:r}):f.createElement(ce.a,{post:r,meteringInfo:n})),at=i?{className:"meteredContent"}:{};if(S){var bt=S.split("-");et=bt[0],tt=bt[1]}return f.createElement(f.Fragment,null,f.createElement(J.a,null),f.createElement(he.a,{post:r},f.createElement(Pe.b,{isAmp:j,post:r}),(null==o?void 0:o.id)===(null===(t=r.creator)||void 0===t?void 0:t.id)?f.createElement(st.c,{post:r,user:r.creator}):f.createElement(We.a,{name:"can_view_suspended_content"},f.createElement(st.c,{post:r,user:r.creator})),f.createElement(Le,{post:r},f.createElement(te.a,{customStyleSheet:r.customStyleSheet},f.createElement(Tt,{post:r}),fe&&ze&&f.createElement(Ge.a,{isResponsesSidebarVisible:ye,setIsResponsesSidebarVisible:Oe,inResponseToQuote:Re,parentPost:r,setInResponseToQuote:Ae}),f.createElement(ne.a,{rule:(nt=r.customStyleSheet,Object(re.j)(null==nt?void 0:nt.postBody))},f.createElement(v.c,null,f.createElement(Fe.a.Provider,{value:{isFirstLoadAndInReadingList:F,setIsFirstLoadAndInReadingList:H}},f.createElement(it.a,null),f.createElement(lt.a,null),f.createElement("article",at,f.createElement(je.a,{post:r,meteringInfo:n}),f.createElement(De.a.Provider,{value:{openSidebarToRespondToHighlight:function(e){Ae(e),Oe(!0)}}},f.createElement(ot,{post:r,viewerId:null==o?void 0:o.id},f.createElement(Ue.c,{activeGrafId:et,activeNoteId:tt,isAuroraPostPageEnabled:ie,post:r,postBodyInserts:Ke,customStyleSheet:r.customStyleSheet,ref:V})))),!Y&&!!s&&!me&&(se?f.createElement(X,null):f.createElement(Be.a,{post:r,setIsResponsesSidebarVisible:Oe})),rt,!Y&&f.createElement(He.c,{post:r,setIsResponsesSidebarVisible:Oe})))),f.createElement(Ce.a,{hide:function(){return D(!1)},isVisible:B,post:r}),!!s&&f.createElement(ae.a,{slimFooter:ie}),se&&f.createElement(we,{postId:r.nextPostId}))),j&&f.createElement(f.Fragment,null,f.createElement(vt,{json:{requests:{base:Object(O.g)(_),pageview:Object(O.d)(_),scrollPing:Object(O.f)(_)},vars:{postId:a,collectionId:W,canonicalUrl:E,referrer:I},triggers:{defaultPageview:{on:"visible",request:"pageview"},scrollDepths:{on:"scroll",scrollSpec:{verticalBoundaries:[0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100]},request:"scrollPing"}},transport:{beacon:!1,xhrpost:!1,image:!0}}}),f.createElement(wt,{collectionGoogleAnalyticsId:$}),f.createElement(_t,null))))}var Tt=function(e){var t=e.post,n=t.collection,r=n||t.creator,o=Object(ke.b)(r),a=Object(Ie.a)("enable_post_page_nav_stickiness_removal"),i=Object(b.f)((function(e){return e.config.isAmp}));if(Object(Ie.a)("enable_norway_sidebar"))return null;if(r&&o)return f.createElement(ze.a,{publisher:r,customStyleSheet:t.customStyleSheet,post:t,forceSmall:!0});var l={behavior:ie.b.Aggressive,isAmp:i,isFixed:!a,post:t};if(n)return f.createElement(ee.a,s()({},l,{collection:n}));var c=t.layerCake,u=t.primaryTopic,d=c&&(1===c||2===c||3===c),m=d?u:null;return f.createElement(se.a,s()({},l,{isMonogramOnly:!d,marginBottom:0,marginBottomSm:0,topic:m}))},Rt=p()(kt(),je.b,ce.b,Z.b),At=p()(Ct(),fe,ee.c,te.b,Ue.b,Ue.a,at,he.b,se.b,ze.b,ze.c,le.b,Se.a,He.b,je.c,Pe.a,Ce.b,ut.d,Me,ut.e,Be.c,ce.c,re.b,st.a,st.b,ke.a,Z.c,be.b,Ne.a,_e)},"./src/screens/SuspendedScreen.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("./node_modules/react/index.js"),o=n("./src/components/session/WithFlag.tsx"),a=n("./src/framework/design-system/components/index.ts"),s=n("./src/framework/design-system/type/index.ts"),i=n("./src/framework/reporter/index.ts"),l=n("./src/screens/ContentErrorScreen.tsx"),c=n("./src/util/routes.ts"),u=function(e){var t=e.suspension,n=Object(i.c)();return r.createElement(l.a,{code:410,title:"410 ".concat(t," suspended — Medium"),description:r.createElement(o.a,{name:"enable_new_suspended_page"},(function(e){return e?r.createElement(r.Fragment,null,r.createElement(a.a,{display:"flex",marginTop:"-30px"},r.createElement(s.f,{scale:"S"},"This ",t," is under investigation or was found in violation of the Medium Rules."," ")),r.createElement(a.a,{display:"flex",marginTop:"80px"},r.createElement(s.f,{color:"DARKER",scale:"M"},"There are thousands of stories to read on Medium. Visit our homepage ",r.createElement("br",null)," to find one that’s right for you.")),r.createElement(a.a,{display:"flex",marginTop:"15px"},r.createElement(a.b,{buttonStyle:"SUBTLE",href:Object(c.cb)(),onClick:function(){n.event("suspendedPage.backToHomeClicked",{})}},"Take me to Medium"))):r.createElement(r.Fragment,null,"This ",t," is under investigation or was found in violation of the"," ",r.createElement(a.m,{href:"https://medium.com/policy/30e5502c4eb4",display:"inline-block",inline:!0,target:"_blank",linkStyle:"OBVIOUS"},"Medium Rules"))}))})}},"./src/screens/helpers/users.ts":function(e,t,n){"use strict";function r(e){if((e.match(/ /g)||[]).length>1)return"";var t=e.indexOf(" ");return e.substring(0,t)}function o(e){return e.google?"google":e.facebook?"facebook":e.twitter?"twitter":"medium"}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},"./src/svg/arrow-down-21px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M4 7.33L10.03 14l.5.55.5-.55 5.96-6.6-.98-.9-5.98 6.6h1L4.98 6.45z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:21,height:21,viewBox:"0 0 21 21"},e),s)}},"./src/svg/audio-21px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("g",{strokeLinecap:"round",strokeLinejoin:"round"},o.a.createElement("path",{d:"M17.4 7s2.64 3.56 0 6.88M15 8.56s1.6 2.38 0 4.4"})),i=o.a.createElement("path",{d:"M11.9 3.01a.19.19 0 0 0-.19.04L6.47 7.7H3.2c-.09 0-.21.06-.21.14v5.28c0 .08.12.3.21.3h3.14L11.72 18h.18a.17.17 0 0 0 .1-.15V3.14a.14.14 0 0 0-.1-.14z"});t.a=function(e){return o.a.createElement("svg",a({width:21,height:21},e),s,i)}},"./src/svg/bookmark-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M19 6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14.66h.01c.01.1.05.2.12.28a.5.5 0 0 0 .7.03l5.67-4.12 5.66 4.13a.5.5 0 0 0 .71-.03.5.5 0 0 0 .12-.29H19V6zm-6.84 9.97L7 19.64V6a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v13.64l-5.16-3.67a.49.49 0 0 0-.68 0z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,viewBox:"0 0 25 25"},e),s)}},"./src/svg/bookmark-archive-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.47 9.95h17v-3h-17v3zm16 1h1a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-17a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h1v9a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1v-9zm-1 0h-13v9h13v-9z"}),i=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.47 12.45c0-.28.21-.5.48-.5h6.04c.27 0 .48.22.48.5 0 .27-.21.5-.48.5H9.95a.49.49 0 0 1-.48-.5z"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,viewBox:"0 1 25 25",fill:"#757575"},e),s,i)}},"./src/svg/bookmark-filled-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M19 6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14.66h.01c.01.1.05.2.12.28a.5.5 0 0 0 .7.03l5.67-4.12 5.66 4.13c.2.18.52.17.71-.03a.5.5 0 0 0 .12-.29H19V6z"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,viewBox:"0 0 25 25"},e),s)}},"./src/svg/bookmark-remove-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.48 7.45H3.46v10.13H16a.47.47 0 1 1 0 .94H3.46c-.54 0-.99-.42-.99-.94V7.45c0-.52.45-.93 1-.93h17c.55 0 1 .41 1 .93v5.57a.5.5 0 0 1-1 0V7.45zM5.47 10.02c0-.28.22-.5.5-.5h9.11a.5.5 0 1 1 0 1H5.97a.5.5 0 0 1-.5-.5zm.51 2.5a.5.5 0 0 0-.51.5c0 .27.23.5.51.5h5.98a.5.5 0 0 0 .51-.5.5.5 0 0 0-.51-.5H5.98zm12.52 3.02c.2-.2.5-.2.7 0l1.77 1.77 1.77-1.77a.5.5 0 1 1 .7.7l-1.76 1.78 1.76 1.76a.5.5 0 1 1-.7.71l-1.77-1.77-1.77 1.77a.5.5 0 0 1-.7-.7l1.76-1.77-1.76-1.77a.5.5 0 0 1 0-.7z"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,viewBox:"0 0 25 25",fill:"#757575"},e),s)}},"./src/svg/clap-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("path",{d:"M11.74 0l.76 2.97.76-2.97zM14.81 3.78l1.84-2.56-1.42-.47zM8.38 1.22l1.84 2.56L9.8.75zM20.38 21.62a5.11 5.11 0 0 1-3.16 1.61l.49-.45c2.88-2.89 3.45-5.98 1.69-9.21l-1.1-1.94-.96-2.02c-.31-.67-.23-1.18.25-1.55a.84.84 0 0 1 .66-.16c.34.05.66.28.88.6l2.85 5.02c1.18 1.97 1.38 5.12-1.6 8.1M7.1 21.1l-5.02-5.02a1 1 0 0 1 .7-1.7 1 1 0 0 1 .72.3l2.6 2.6a.44.44 0 0 0 .63-.62L4.1 14.04l-1.75-1.75a1 1 0 1 1 1.41-1.41l4.15 4.15a.44.44 0 0 0 .63 0 .44.44 0 0 0 0-.62L4.4 10.26 3.22 9.08a1 1 0 0 1 0-1.4 1.02 1.02 0 0 1 1.41 0l1.18 1.16L9.96 13a.44.44 0 0 0 .62 0 .44.44 0 0 0 0-.63L6.43 8.22a.99.99 0 0 1-.3-.7.99.99 0 0 1 .3-.7 1 1 0 0 1 1.41 0l7 6.98a.44.44 0 0 0 .7-.5l-1.35-2.85c-.31-.68-.23-1.19.25-1.56a.85.85 0 0 1 .66-.16c.34.06.66.28.88.6L18.63 14c1.57 2.88 1.07 5.54-1.55 8.16a5.62 5.62 0 0 1-5.06 1.65 9.35 9.35 0 0 1-4.93-2.72zM11 5.98l2.56 2.56c-.5.6-.56 1.41-.15 2.28l.26.56-4.25-4.25a.98.98 0 0 1-.12-.45 1 1 0 0 1 .29-.7 1.02 1.02 0 0 1 1.41 0zm8.89 2.06c-.38-.56-.9-.92-1.49-1.01a1.74 1.74 0 0 0-1.34.33c-.38.29-.61.65-.71 1.06a2.1 2.1 0 0 0-1.1-.56 1.78 1.78 0 0 0-.99.13l-2.64-2.64a1.88 1.88 0 0 0-2.65 0 1.86 1.86 0 0 0-.48.85 1.89 1.89 0 0 0-2.67-.01 1.87 1.87 0 0 0-.5.9c-.76-.75-2-.75-2.7-.04a1.88 1.88 0 0 0 0 2.66c-.3.12-.61.29-.87.55a1.88 1.88 0 0 0 0 2.66l.62.62a1.88 1.88 0 0 0-.9 3.16l5.01 5.02c1.6 1.6 3.52 2.64 5.4 2.96a7.16 7.16 0 0 0 1.18.1c1.03 0 2-.25 2.9-.7A5.9 5.9 0 0 0 21 22.24c3.34-3.34 3.08-6.93 1.74-9.17l-2.87-5.04z"}));t.a=function(e){return o.a.createElement("svg",a({width:25,height:25,viewBox:"0 0 25 25"},e),s)}},"./src/svg/clap-filled-19px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("path",{d:"M6.93 15.34l-2.06-2.06c-2.16-2.16-3.53-3.15-2.9-3.79.33-.32.8-.39 1.2 0l2.13 2.2c.08.08.16.07.38.13.21.05.36-.05.54-.23.17-.16.07-.6-.09-.77L3.5 8.2c-.37-.36-.5-1-.1-1.39.37-.37.8-.19 1.14.15.39.38 2.7 2.76 2.7 2.76a.42.42 0 0 0 .3.13.54.54 0 0 0 .33-.16c.17-.16.25-.46.09-.63 0 0-1.34-1.4-1.82-1.88-.71-.72-.77-1.22-.46-1.54.45-.44 1.05-.3 1.86.62l3.58 3.89-.75-1.95s-.47-1.25 0-1.5.84.4 1.17.9l1.86 3.34c1.01 1.65.69 3.8-.73 5.19-1.87 1.87-4.07.87-5.73-.78zM10.26.04H8.73l.77 3.3zM13.93 1.2L12.5.7l-.4 3.36zM6.5.57l-1.44.52L6.9 3.93z"}),o.a.createElement("path",{d:"M14.3 7.03c-.34-.5-.9-.52-1.25-.24-.25.19-.21.6-.2.9l1.51 2.64c1.17 1.9 1.33 3.66 0 5.45.4-.19.52-.23.9-.61 1.52-1.52 1.86-3.32.85-4.96l-1.8-3.18z"}));t.a=function(e){return o.a.createElement("svg",a({width:19,height:19,viewBox:"0 0 19 19"},e),s)}},"./src/svg/clap-filled-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("path",{d:"M11.74 0l.76 2.97.76-2.97zM16.63 1.22L15.2.75l-.4 3.03zM9.79.75l-1.43.47 1.84 2.56zM22.47 13.3L19.45 8c-.29-.43-.69-.7-1.12-.78a1.16 1.16 0 0 0-.91.22c-.3.23-.48.52-.54.84l.05.07 2.85 5c1.95 3.56 1.32 6.97-1.85 10.14a8.46 8.46 0 0 1-.55.5 5.75 5.75 0 0 0 3.36-1.76c3.26-3.27 3.04-6.75 1.73-8.91M12.58 9.89c-.16-.83.1-1.57.7-2.15l-2.5-2.49c-.5-.5-1.38-.5-1.88 0-.18.18-.27.4-.33.63l4.01 4z"}),o.a.createElement("path",{d:"M15.81 9.04a1.37 1.37 0 0 0-.88-.6.81.81 0 0 0-.64.15c-.18.13-.72.55-.24 1.56l1.43 3.03a.54.54 0 1 1-.87.61L7.2 6.38a.99.99 0 1 0-1.4 1.4l4.4 4.4a.54.54 0 1 1-.76.76l-4.4-4.4L3.8 7.3a.99.99 0 0 0-1.4 0 .98.98 0 0 0 0 1.39l1.25 1.24 4.4 4.4a.54.54 0 0 1 0 .76.54.54 0 0 1-.76 0l-4.4-4.4a1 1 0 0 0-1.4 0 .98.98 0 0 0 0 1.4l1.86 1.85 2.76 2.77a.54.54 0 0 1-.76.76L2.58 14.7a.98.98 0 0 0-1.4 0 .99.99 0 0 0 0 1.4l5.33 5.32c3.37 3.37 6.64 4.98 10.49 1.12 2.74-2.74 3.27-5.54 1.62-8.56l-2.8-4.94z"}));t.a=function(e){return o.a.createElement("svg",a({width:25,height:25},e),s)}},"./src/svg/creative-commons-by-21px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M10.48 2c2.4 0 4.4.82 6.04 2.46A8.2 8.2 0 0 1 19 10.5c0 2.39-.81 4.38-2.43 5.96A8.4 8.4 0 0 1 10.49 19c-2.3 0-4.3-.83-5.98-2.5C2.84 14.82 2 12.83 2 10.5s.83-4.34 2.5-6.04A8.14 8.14 0 0 1 10.48 2zm.03 1.53c-1.93 0-3.56.68-4.9 2.04a6.84 6.84 0 0 0-.01 9.82 6.71 6.71 0 0 0 4.92 2.06c1.89 0 3.54-.69 4.94-2.07a6.47 6.47 0 0 0 2-4.87c0-1.93-.67-3.57-2.03-4.93a6.72 6.72 0 0 0-4.91-2.03zM12.8 8.4v3.48h-.97v4.12H9.18v-4.12h-.97V8.39A.53.53 0 0 1 8.37 8a.53.53 0 0 1 .39-.16h3.49c.14 0 .27.06.38.16a.52.52 0 0 1 .16.39zM9.32 6.2c0-.8.39-1.2 1.18-1.2.79 0 1.18.4 1.18 1.2 0 .8-.4 1.19-1.18 1.19-.79 0-1.18-.4-1.18-1.18z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:21,height:21},e),s)}},"./src/svg/creative-commons-nc-21px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M10.48 2c2.4 0 4.4.82 6.04 2.46C18.18 6.1 19 8.11 19 10.5s-.81 4.38-2.43 5.96A8.4 8.4 0 0 1 10.49 19c-2.31 0-4.3-.84-5.98-2.52A8.16 8.16 0 0 1 2 10.5c0-2.33.83-4.34 2.5-6.04A8.14 8.14 0 0 1 10.48 2zM3.91 8.2a6.68 6.68 0 0 0-.38 2.3c0 1.88.7 3.51 2.07 4.89a6.77 6.77 0 0 0 4.92 2.05c1.9 0 3.56-.7 4.94-2.08a6.2 6.2 0 0 0 1.17-1.5l-3.2-1.42c-.1.54-.38.98-.8 1.32a2.8 2.8 0 0 1-1.53.58v1.3h-.98v-1.3a3.95 3.95 0 0 1-2.58-1.02l1.16-1.18c.56.51 1.19.77 1.9.77.3 0 .54-.07.75-.2.2-.13.31-.35.31-.65a.66.66 0 0 0-.23-.52l-.82-.35-1-.45-1.35-.6L3.92 8.2zm6.6-4.68a6.6 6.6 0 0 0-4.9 2.05 8 8 0 0 0-.94 1.14l3.25 1.45c.14-.44.41-.8.8-1.07a2.68 2.68 0 0 1 1.39-.44V5.33h.98v1.3c.78.04 1.49.3 2.13.8L12.1 8.56c-.48-.33-.96-.5-1.46-.5-.26 0-.5.05-.7.15-.21.1-.31.28-.31.52 0 .07.02.14.07.2l1.08.49.75.33 1.37.6 4.36 1.94c.14-.6.22-1.21.22-1.83 0-1.95-.67-3.6-2.03-4.93a6.64 6.64 0 0 0-4.92-2.05z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:21,height:21},e),s)}},"./src/svg/creative-commons-nd-21px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M10.48 2c2.38 0 4.4.82 6.04 2.47A8.17 8.17 0 0 1 19 10.5a8.1 8.1 0 0 1-2.43 5.98A8.39 8.39 0 0 1 10.49 19c-2.3 0-4.3-.83-5.99-2.5a8.18 8.18 0 0 1-2.5-6 8.3 8.3 0 0 1 2.5-6.03A8.15 8.15 0 0 1 10.48 2zm.03 1.53a6.6 6.6 0 0 0-4.9 2.05 6.78 6.78 0 0 0-2.08 4.92c0 1.9.7 3.52 2.07 4.89a6.71 6.71 0 0 0 4.91 2.06c1.9 0 3.55-.69 4.95-2.07a6.5 6.5 0 0 0 2-4.87c0-1.94-.67-3.58-2.03-4.9a6.67 6.67 0 0 0-4.91-2.06zm3.2 4.97v1.45H7.55V8.5h6.18zm0 2.73v1.45H7.55v-1.45h6.18z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:21,height:21},e),s)}},"./src/svg/creative-commons-sa-21px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M10.48 2c2.38 0 4.4.82 6.04 2.47A8.17 8.17 0 0 1 19 10.5a8.1 8.1 0 0 1-2.43 5.98A8.39 8.39 0 0 1 10.49 19c-2.3 0-4.3-.83-5.99-2.5a8.18 8.18 0 0 1-2.5-6c0-2.32.83-4.33 2.5-6.03A8.15 8.15 0 0 1 10.48 2zm.03 1.53a6.6 6.6 0 0 0-4.9 2.05 6.79 6.79 0 0 0-2.08 4.92c0 1.9.7 3.52 2.07 4.89a6.71 6.71 0 0 0 4.92 2.06c1.89 0 3.54-.7 4.94-2.08a6.5 6.5 0 0 0 2-4.87c0-1.94-.67-3.58-2.03-4.92a6.64 6.64 0 0 0-4.91-2.05zM6.72 9.3a3.8 3.8 0 0 1 1.26-2.42 3.7 3.7 0 0 1 2.47-.86c1.34 0 2.4.43 3.2 1.3a4.7 4.7 0 0 1 1.18 3.3c0 1.3-.41 2.4-1.23 3.26a4.2 4.2 0 0 1-3.2 1.3 3.8 3.8 0 0 1-2.48-.87 3.7 3.7 0 0 1-1.26-2.46H8.8c.05 1.03.67 1.55 1.87 1.55.6 0 1.08-.26 1.44-.78.36-.52.54-1.21.54-2.07 0-.9-.17-1.6-.5-2.06a1.68 1.68 0 0 0-1.45-.71c-1.14 0-1.77.5-1.92 1.5h.62l-1.68 1.68-1.68-1.68h.66z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:21,height:21},e),s)}},"./src/svg/creative-commons-zero-21px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("path",{d:"M10.5 5.68c-2.76 0-3.46 2.61-3.46 4.82 0 2.21.7 4.82 3.46 4.82s3.46-2.6 3.46-4.82c0-2.21-.7-4.82-3.46-4.82zm0 1.82c.11 0 .21 0 .31.04.2.17.3.4.1.73l-1.83 3.38A9.1 9.1 0 0 1 9 10.49c0-.98.07-3 1.5-3zm1.38 1.55c.1.52.1 1.06.1 1.44 0 .97-.06 3-1.48 3-.11 0-.22-.01-.31-.04l-.06-.02-.1-.03c-.31-.14-.51-.38-.22-.81l2.06-3.55z"}),o.a.createElement("path",{d:"M10.48 2c-2.36 0-4.34.82-5.96 2.47a8.6 8.6 0 0 0-1.88 2.8A8.35 8.35 0 0 0 2 10.5c0 1.13.21 2.21.64 3.23a8.58 8.58 0 0 0 1.85 2.76 8.84 8.84 0 0 0 2.76 1.87 8.4 8.4 0 0 0 3.23.64c1.13 0 2.22-.22 3.27-.66a8.7 8.7 0 0 0 2.82-1.88 7.72 7.72 0 0 0 1.81-2.68A8.62 8.62 0 0 0 19 10.5a8.6 8.6 0 0 0-.62-3.27 8.12 8.12 0 0 0-1.82-2.74A8.3 8.3 0 0 0 10.48 2zm.04 1.53a6.7 6.7 0 0 1 4.93 2.05 6.81 6.81 0 0 1 1.5 2.25 6.97 6.97 0 0 1 .52 2.67c0 1.95-.67 3.57-2 4.87a7.33 7.33 0 0 1-2.31 1.54 6.92 6.92 0 0 1-5.29 0 7.17 7.17 0 0 1-2.26-1.51 7.33 7.33 0 0 1-1.55-2.27 6.8 6.8 0 0 1 0-5.3 7.3 7.3 0 0 1 1.55-2.28 6.6 6.6 0 0 1 4.9-2.03z"}));t.a=function(e){return o.a.createElement("svg",a({width:21,height:21},e),s)}},"./src/svg/link-slim.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M16.94 1.1A3.7 3.7 0 0 0 14.3 0c-1 0-1.94.39-2.64 1.1L7.43 5.3c-.91.92-2.09 3.2 0 5.27a.75.75 0 0 0 .82.16c.09-.03.17-.09.24-.15a.74.74 0 0 0 0-1.06c-1.16-1.15-.77-2.39-.02-3.16l4.24-4.22a2.2 2.2 0 0 1 1.58-.65c.6 0 1.16.23 1.58.65.86.87.86 2.29 0 3.16L12.7 8.47a.74.74 0 0 0 1.04 1.05l3.17-3.16a3.73 3.73 0 0 0 0-5.27h.03zM9.54 7.4a.74.74 0 0 0 0 1.06c1.16 1.15.76 2.39 0 3.16l-4.22 4.22c-.42.42-.99.65-1.59.65a2.23 2.23 0 0 1-1.58-3.82l3.17-3.16A.73.73 0 0 0 5.54 9a.78.78 0 0 0-.22-.52.77.77 0 0 0-1.05 0L1.1 11.64A3.72 3.72 0 0 0 3.74 18c1 0 1.94-.39 2.65-1.1l4.23-4.2c.21-.22.94-1.02 1.13-2.2.18-1.12-.2-2.15-1.12-3.07-.27-.27-.78-.27-1.06 0l-.02-.02z",clipRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({fill:"none",viewBox:"0 0 18 18","aria-labelledby":"link-slim-svg"},e),s)}},"./src/svg/response-25px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M19.07 21.12a6.33 6.33 0 0 1-3.53-1.1 7.8 7.8 0 0 1-.7-.52c-.77.21-1.57.32-2.38.32-4.67 0-8.46-3.5-8.46-7.8C4 7.7 7.79 4.2 12.46 4.2c4.66 0 8.46 3.5 8.46 7.8 0 2.06-.85 3.99-2.4 5.45a6.28 6.28 0 0 0 1.14 2.59c.15.21.17.48.06.7a.69.69 0 0 1-.62.38h-.03zm0-1v.5l.03-.5h-.03zm-3.92-1.64l.21.2a6.09 6.09 0 0 0 3.24 1.54 7.14 7.14 0 0 1-.83-1.84 5.15 5.15 0 0 1-.16-.75 2.4 2.4 0 0 1-.02-.29v-.23l.18-.15a6.6 6.6 0 0 0 2.3-4.96c0-3.82-3.4-6.93-7.6-6.93-4.19 0-7.6 3.11-7.6 6.93 0 3.83 3.41 6.94 7.6 6.94.83 0 1.64-.12 2.41-.35l.28-.08z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:25,height:25},e),s)}},"./src/svg/response-filled-19px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M16.19 9.42c0 1.67-.72 2.84-2.03 4l-.1.09v.13a4.3 4.3 0 0 0 .15.85c.17.6.46 1.2.86 1.8a4.94 4.94 0 0 1-2.46-.84c-.26-.17-.33-.2-.54-.4l-.13-.12-.16.05c-.68.2-2.75.46-4.88-.16a5.9 5.9 0 0 1-4.1-5.4c0-3.37 3-6.12 6.7-6.12s6.69 2.75 6.69 6.12z",fillRule:"evenodd"});t.a=function(e){return o.a.createElement("svg",a({width:19,height:19,viewBox:"0 0 19 19"},e),s)}},"./src/svg/twitter-filled-21px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("path",{d:"M18.5 4.43a6.9 6.9 0 0 1-2.18.88 3.45 3.45 0 0 0-2.55-1.12 3.49 3.49 0 0 0-3.49 3.48c0 .28.03.55.07.81a9.91 9.91 0 0 1-7.17-3.67 3.9 3.9 0 0 0-.5 1.74 3.6 3.6 0 0 0 1.56 2.92 3.36 3.36 0 0 1-1.55-.44.15.15 0 0 0 0 .06c0 1.67 1.2 3.08 2.8 3.42-.3.06-.6.1-.94.12l-.62-.06A3.5 3.5 0 0 0 7.17 15a7.33 7.33 0 0 1-4.36 1.49L2 16.44A9.96 9.96 0 0 0 7.36 18c6.4 0 9.91-5.32 9.9-9.9v-.5A6.55 6.55 0 0 0 19 5.79a6.18 6.18 0 0 1-2 .56 3.33 3.33 0 0 0 1.5-1.93"});t.a=function(e){return o.a.createElement("svg",a({width:21,height:21,viewBox:"0 0 21 21"},e),s)}},"./src/svg/unlisted-19px.svg":function(e,t,n){"use strict";var r=n("./node_modules/react/index.js"),o=n.n(r);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("path",{d:"M4.13 12.21a15.4 15.4 0 0 1-2.54-2.28 6.61 6.61 0 0 1-.16-.2l-.25-.3.25-.3a13.08 13.08 0 0 1 .63-.7 15.4 15.4 0 0 1 1.7-1.51C5.55 5.54 7.5 4.7 9.51 4.7c.62 0 1.28.13 1.98.37l-.8.78a4.54 4.54 0 0 0-1.18-.18c-1.76 0-3.52.76-5.18 2.02-.58.45-1.12.93-1.58 1.41-.28.3-.28.36 0 .65a14.43 14.43 0 0 0 2.08 1.77l-.71.7zm3.05 1.57a6.32 6.32 0 0 0 4.61-.11c1-.38 2.04-.98 3.1-1.72a25.27 25.27 0 0 0 2.68-2.17l.37-.35-.37-.36a23.05 23.05 0 0 0-.76-.68 25.26 25.26 0 0 0-2.28-1.73l-.72.7a24.05 24.05 0 0 1 2.37 1.77c.2.17.2.42 0 .59-.57.49-1.2.97-1.84 1.43-1.01.7-2 1.26-2.9 1.61a5.4 5.4 0 0 1-1.92.42A6.6 6.6 0 0 1 8 13l-.81.78z"}),o.a.createElement("path",{d:"M12.05 9.06a2.68 2.68 0 0 1-2.7 3A2.74 2.74 0 0 1 9 12l3.06-2.96zM9.72 6.79a2.83 2.83 0 0 0-.37-.02 2.68 2.68 0 0 0-2.7 3l3.07-2.98zM3.6 14.3l-.35.34.68.7.35-.34 10.4-10.08.36-.34-.68-.7-.35.34z"}));t.a=function(e){return o.a.createElement("svg",a({width:19,height:19,viewBox:"0 0 19 19"},e),s)}},"./src/util/hooks/postRecircHooks.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./node_modules/react-redux/es/index.js"),o=n("./src/store/selectors/session.ts");function a(){var e=Object(r.f)((function(e){var t=e.session;return{user:t.user,isSpoofed:t.isSpoofed}})),t=e.user.id,n=e.isSpoofed;return!(t&&Object(o.a)(t)||n)}},"./src/util/hooks/useInterval.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/react/index.js");function o(e,t){var n=r.useRef(e);function o(){n.current&&n.current()}r.useEffect((function(){n.current=e}),[e]),r.useEffect((function(){if(null!==t){var e=setInterval(o,t);return function(){clearInterval(e)}}}),[t])}},"./src/util/hooks/useIsEligibleToViewNewResponses.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("./src/components/session/useFlag.tsx"),o=n("./src/components/session/useViewer.tsx"),a=function(){var e=Boolean(Object(r.a)("enable_responses_2")),t=Boolean(Object(r.a)("enable_responses_all")),n=Boolean(Object(r.a)("is_super_user")),a=Object(o.b)();return e&&(n||Boolean(null==a?void 0:a.isEligibleToViewNewResponses))||t}},"./src/util/hooks/usePrevious.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/react/index.js");function o(e){var t=r.useRef();return r.useEffect((function(){t.current=e}),[e]),t.current}},"./src/util/hooks/useTimer.tsx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("./node_modules/react/index.js"),o=function(){var e=r.useRef(null),t=function(){e.current&&clearTimeout(e.current)};return r.useEffect((function(){return t})),function(n,r){return t(),e.current=setTimeout(n,r),t}}},"./src/util/post/claps.ts":function(e,t,n){"use strict";function r(e,t){return!!t&&e[t.id]||{clapCount:(null==t?void 0:t.clapCount)||0,viewerClapCount:(null==t?void 0:t.viewerClapCount)||0,viewerHasClappedSinceFetch:!1}}n.d(t,"a",(function(){return r}))},"./src/util/post/metaDescription.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return b}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/graphql-tag/src/index.js"),s=n.n(a),i=n("./src/schema-types/globalTypes.ts"),l=n("./src/util/post/metaHelpers.ts"),c=n("./src/util/string.ts");function u(){var e=o()(["\n  fragment shortformPostMetaDescription_post on Post {\n    id\n    metaDescription\n    seoDescription\n    shortformType\n    title\n    ...getPostContentAsString_post\n  }\n  ","\n"]);return u=function(){return e},e}function d(){var e=o()(["\n  fragment postMetaDescription_post on Post {\n    id\n    title\n    seoDescription\n    metaDescription\n    creator {\n      id\n      name\n    }\n    collection {\n      id\n      name\n    }\n    previewContent {\n      subtitle\n    }\n    ...getPostContentAsString_post\n  }\n  ","\n"]);return d=function(){return e},e}var m=function(e){var t=e.metaDescription,n=e.seoDescription,r=e.title||"";if(n)return n;if(t)return t;var o=function(e){var t=Object(l.a)(e,250);return t&&Object(c.b)(t,200)}(e);if(o.length>150)return o;var a=e.previewContent&&e.previewContent.subtitle||"";if(a.length>140)return a;a.length>0&&(a+=".");var s=(r.length?r+". ":"")+a;if(s.length>140)return s;var i="“".concat(r,"” is published");return e.creator&&e.creator.name&&(i+=" by ".concat(e.creator.name)),e.collection&&e.collection.name&&(i+=" in ".concat(e.collection.name)),"".concat(a," ").concat(i,".")},p=function(e){return m(e).trim()},f=function(e,t){var n=e.metaDescription,r=e.seoDescription,o=e.shortformType,a=o===i.s.SHORTFORM_TYPE_NOTE||!o;if(r)return r;if(n)return n;if(a&&t){var s=Object(l.a)(e,350,0);return Object(c.b)(s,300)}return""},g=s()(d(),l.b),b=s()(u(),l.b)},"./src/util/post/metaHelpers.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return k})),n.d(t,"g",(function(){return R})),n.d(t,"h",(function(){return A})),n.d(t,"e",(function(){return L})),n.d(t,"f",(function(){return M})),n.d(t,"i",(function(){return B})),n.d(t,"j",(function(){return D})),n.d(t,"k",(function(){return N})),n.d(t,"l",(function(){return U}));var r=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),s=n.n(a),i=n("./node_modules/date-fns/index.js"),l=n("./node_modules/graphql-tag/src/index.js"),c=n.n(l),u=n("./src/components/post/NormalizePostBodyModel.ts"),d=n("./src/schema-types/globalTypes.ts"),m=n("./src/util/post/titleHelpers.ts"),p=n("./src/util/string.ts");function f(){var e=s()(["\n  fragment shouldIndex_post on Post {\n    id\n    firstPublishedAt\n    isLimitedState\n    isShortform\n    shortformType\n    visibility\n    ...getPostContentAsString_post\n  }\n  ","\n"]);return f=function(){return e},e}function g(){var e=s()(["\n  fragment shortformPostTitle_post on Post {\n    id\n    title\n    seoTitle\n    ...getPostContentAsString_post\n    ...appendPostContext_post\n    collection {\n      ...maybeAppendProductName_collection\n    }\n  }\n  ","\n  ","\n  ","\n"]);return g=function(){return e},e}function b(){var e=s()(["\n  fragment getTitleForPost_post on Post {\n    id\n    title\n    ...postTitle_post\n    ...getTitleDetails_post\n  }\n  ","\n  ","\n"]);return b=function(){return e},e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(){var e=s()(["\n  fragment postTitle_post on Post {\n    id\n    title\n    seoTitle\n    firstPublishedAt\n    ...getPostContentAsString_post\n    ...appendPostContext_post\n    collection {\n      id\n      name\n      domain\n      ...maybeAppendProductName_collection\n    }\n    creator {\n      name\n    }\n    previewContent {\n      subtitle\n    }\n  }\n  ","\n  ","\n  ","\n"]);return E=function(){return e},e}function x(){var e=s()(["\n  fragment maybeAppendProductName_collection on Collection {\n    id\n    domain\n  }\n"]);return x=function(){return e},e}function y(){var e=s()(["\n  fragment getTitleDetails_post on Post {\n    id\n    content(postMeteringOptions: $postMeteringOptions) {\n      bodyModel {\n        ...GetTitleIndexMap_bodyModel\n      }\n    }\n    ...getPostContentAsString_post\n  }\n  ","\n  ","\n"]);return y=function(){return e},e}function O(){var e=s()(["\n  fragment getPostContentAsString_post on Post {\n    content(postMeteringOptions: $postMeteringOptions) {\n      bodyModel {\n        paragraphs {\n          text\n          type\n          mixtapeMetadata {\n            href\n          }\n        }\n      }\n    }\n  }\n"]);return O=function(){return e},e}function w(){var e=s()(["\n  fragment appendPostContext_post on Post {\n    id\n    sequence {\n      title\n    }\n    collection {\n      name\n    }\n    creator {\n      name\n    }\n  }\n"]);return w=function(){return e},e}function _(e,t){var n,r,o;return(null===(n=t.sequence)||void 0===n?void 0:n.title)?e+=" - ".concat(t.sequence.title):(null===(r=t.collection)||void 0===r?void 0:r.name)?e+=" - ".concat(t.collection.name):(null===(o=t.creator)||void 0===o?void 0:o.name)&&(e+=" - ".concat(t.creator.name)),e}var S=c()(w());function j(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{includeMixtapeHref:!1},s=a.includeMixtapeHref,i=(null===(t=e.content)||void 0===t||null===(n=t.bodyModel)||void 0===n?void 0:n.paragraphs)||[],l="",c=!0,u=!1,d=void 0;try{for(var m,p=i[Symbol.iterator]();!(c=(m=p.next()).done);c=!0){var f=m.value,g=f.mixtapeMetadata,b=f.text,h=f.type;if(s&&(null==g?void 0:g.href)?l+=l?" ".concat(g.href):g.href:"P"===h&&b&&b.length>o&&(l+=l?" ".concat(b):b),l.length>r)break}}catch(e){u=!0,d=e}finally{try{c||null==p.return||p.return()}finally{if(u)throw d}}return l}var P=c()(O());function C(e){var t=!1,n="";if(e.content&&e.content.bodyModel&&e.content.bodyModel.paragraphs){var r=e.content.bodyModel.paragraphs,o=Object(u.d)(r).titleIndex;"number"==typeof o&&(n=r[o].text,t=!0)}return{hasTitleGraf:t,latestTitle:n}}var k=c()(y(),P,u.b);function I(e,t,n){return(null==n?void 0:n.domain)?e:"".concat(e," - ").concat(t)}var T=c()(x());function R(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.seoTitle,s=e.title||"",l=(null===(n=e.previewContent)||void 0===n?void 0:n.subtitle)||"";if(a)return Object(m.a)(a,e.collection&&e.collection.name,t);if(!o)return s.length>50?s:s=I(s=_(s,e),t,e.collection);s.length<33&&l&&(l=Object(p.b)(l,40),s+=". ".concat(l)),(null===(r=e.creator)||void 0===r?void 0:r.name)&&(s+=" | by ".concat(e.creator.name));var c="",u=Date.now()-5184e6;e.firstPublishedAt>=u&&(c=" | ".concat(Object(i.format)(e.firstPublishedAt,"MMM, YYYY")));var d=e.collection;return d?d.domain?s+="".concat(c," | ").concat(d.name):s+=" | ".concat(d.name).concat(c," | ").concat(t):s+="".concat(c," | ").concat(t),s}var A=c()(E(),P,S,T);function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C(e),r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.title||"",a=n.latestTitle||o,s=v({},e,{title:a});return R(s,t,r).trim()}var M=c()(b(),A,k);function B(e,t,n){var r=e.seoTitle,o=e.title||"";return r?Object(m.a)(r,e.collection&&e.collection.name,t):o=I(o=_(o=function(e,t,n){var r=t.shortformType,o=r===d.s.SHORTFORM_TYPE_NOTE||!r;return n||(o?e=j(t,250,0):r===d.s.SHORTFORM_TYPE_LINK&&(e=j(t,250,0,{includeMixtapeHref:!0}))),Object(p.b)(e,200)}(o,e,n),e),t,e.collection)}var D=c()(g(),P,S,T);function N(e){var t=e.firstPublishedAt,n=e.isLimitedState,r=e.isShortform,o=e.shortformType,a=e.visibility,s=o===d.s.SHORTFORM_TYPE_NOTE||!o;return!!t&&(("PUBLIC"===a||"LOCKED"===a)&&(!n&&(!r||(s?j(e,10,0).length>10:j(e,10,0).length>0))))}var U=c()(f(),P)},"./src/util/post/titleHelpers.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=function(e){return e||"Untitled story"},o=function(e,t,n){return t?"".concat(e," | ").concat(t):n?"".concat(e," | ").concat(n):e}},"./src/util/quote.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return b}));var r=n("./node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js"),o=n.n(r),a=n("./node_modules/@babel/runtime/helpers/defineProperty.js"),s=n.n(a),i=n("./node_modules/lodash/cloneDeep.js"),l=n.n(i),c=n("./node_modules/graphql-tag/src/index.js"),u=n.n(c),d=n("./src/schema-types/globalTypes.ts");function m(){var e=o()(["\n  fragment buildQuotePreviewParagraph_quote on Quote {\n    paragraphs {\n      id\n      text\n      type\n      markups {\n        end\n        start\n        type\n      }\n    }\n    startOffset\n    endOffset\n  }\n"]);return m=function(){return e},e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var f=function(e){if(1!==e.paragraphs.length)return null;var t=l()(e.paragraphs[0]),n=t.text||"",r=0,o=e.startOffset||0,a=e.endOffset||n.length;if(n.length-a>100&&(n=n.substring(0,a+100)+"…"),o>100){var s=o-100;n="…"+n.substring(s),r=s-1}t.text=n,t.type=d.m.P,t.markups.unshift({end:a,start:o,type:d.i.HIGHLIGHT});var i=!0,c=!1,u=void 0;try{for(var m,p=t.markups[Symbol.iterator]();!(i=(m=p.next()).done);i=!0){var f=m.value;f.start-=r,f.end-=r}}catch(e){c=!0,u=e}finally{try{i||null==p.return||p.return()}finally{if(c)throw u}}return t},g=function(e){if(1!==e.paragraphs.length)return null;var t=e.paragraphs[0].text||"",n=e.startOffset||0,r=e.endOffset||t.length,o=t.slice(n,r);return o.length>=185&&(o=o.substring(0,185)+"..."),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.paragraphs[0],{text:o,type:d.m.P,markups:[{end:o.length,start:0,type:d.i.HIGHLIGHT,anchorType:null,href:null,linkMetadata:null,userId:null}],hasDropCap:null,dropCapImage:null})},b=u()(m())},"./src/util/string.ts":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(e){return/^[\s\xa0]*$/.test(e)},o=function(e,t){if(e.length<t)return e;var n=e.substr(0,t),r=n.charCodeAt(n.length-1),o=n.charCodeAt(n.length-2);return r>=55296&&r<=57343&&!(o>=55296&&o<=57343)&&(n=n.substr(0,n.length-1)),(n=(n=n.replace(/(\s+\S+|\s+)$/,"")).replace(/[.,:;?!-]+$/,""))+"…"}}}]);
  //# sourceMappingURL=Post.cff8ee4b.chunk.js.map