(self.webpackChunklite=self.webpackChunklite||[]).push([[8565],{51814:(e,n,t)=>{"use strict";function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}t.d(n,{Z:()=>i})},72317:(e,n,t)=>{"use strict";t.d(n,{Z:()=>d});var i=t(77608),a=t(14665),o=t(51814);function l(e,n,t){return l=(0,o.Z)()?Reflect.construct.bind():function(e,n,t){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return t&&(0,a.Z)(o,t.prototype),o},l.apply(null,arguments)}function d(e){var n="function"==typeof Map?new Map:void 0;return d=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;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,o)}function o(){return l(e,arguments,(0,i.Z)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,a.Z)(o,e)},d(e)}},53690:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var i=t(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{Z:()=>l});var i=t(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{Z:()=>l});var i=t(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{Z:()=>l});var i=t(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{Z:()=>l});var i=t(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{Z:()=>l});var i=t(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{b:()=>r});var i=t(34699),a=t(67294),o=t(77355),l=t(93310),d=t(18627),r=function(e){var n=e.url,t=e.onCopy,r=e.children,c=e.flexGrow,s=e.linkStyle,m=e.postId,u=e.source,k=a.useState(!1),v=(0,i.Z)(k,2),p=v[0],f=v[1],h=a.useState(null),S=(0,i.Z)(h,2),g=S[0],N=S[1],y=a.useRef(null),F=(0,d.A)();a.useEffect((function(){return function(){g&&clearTimeout(g)}}),[]);var b=a.useCallback((function(){t&&t();var e=y.current;if(e){if(e.disabled=!1,e.select(),e){var n=document.createRange();n.selectNode(e);var i=window.getSelection();i&&i.addRange(n),e.setSelectionRange(0,e.value.length),document.execCommand("copy"),(i=window.getSelection())&&i.removeAllRanges()}e.disabled=!0,f(!0),g&&clearTimeout(g),N(setTimeout((function(){return f(!1)}),2e3))}}),[]);return a.createElement(o.x,{display:"flex",alignItems:"flex-start",flexGrow:c},a.createElement("form",null,a.createElement("input",{disabled:!0,readOnly:!0,type:"text",ref:y,value:n,style:{position:"fixed",top:"-100vh"}}),a.createElement(l.r,{onClick:function(e){e.preventDefault(),F.event("copyStoryLink.clicked",{postId:m,source:u}),b()},linkStyle:s||"OBVIOUS"},r(p))))}},97849:(e,n,t)=>{"use strict";t.d(n,{i:()=>o,m:()=>l});var i=t(87329),a=t(32934),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"postMetaDescription_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"seoDescription"}},{kind:"Field",name:{kind:"Name",value:"metaDescription"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"previewContent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subtitle"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}}]}}].concat((0,i.Z)(a.bh.definitions))},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"shortformPostMetaDescription_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metaDescription"}},{kind:"Field",name:{kind:"Name",value:"seoDescription"}},{kind:"Field",name:{kind:"Name",value:"shortformType"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}}]}}].concat((0,i.Z)(a.bh.definitions))}},22680:(e,n,t)=>{"use strict";t.d(n,{j:()=>l,O:()=>d});var i=t(75221),a=t(15085),o=t(42498),l=function(e){return function(e){var n=e.metaDescription,t=e.seoDescription,i=e.title||"";if(t)return t;if(n)return n;var l=function(e){var n=(0,a.r4)(e,250);return n&&(0,o.N8)(n,200)}(e);if(l.length>150)return l;var d=e.previewContent&&e.previewContent.subtitle||"";if(d.length>140)return d;d.length>0&&(d+=".");var r=(i.length?i+". ":"")+d;if(r.length>140)return r;var c="“".concat(i,"” is published");return e.creator&&e.creator.name&&(c+=" by ".concat(e.creator.name)),e.collection&&e.collection.name&&(c+=" in ".concat(e.collection.name)),"".concat(d," ").concat(c,".")}(e).trim()},d=function(e,n){var t=e.metaDescription,l=e.seoDescription,d=e.shortformType,r=d===i.po.SHORTFORM_TYPE_NOTE||!d;if(l)return l;if(t)return t;if(r&&n){var c=(0,a.r4)(e,350,0);return(0,o.N8)(c,300)}return""}},32934:(e,n,t)=>{"use strict";t.d(n,{bh:()=>a,dm:()=>r,bq:()=>c,Bg:()=>d,Pz:()=>s,HF:()=>m});var i=t(87329),a=([{kind:"FragmentDefinition",name:{kind:"Name",value:"GetFeaturedImageIndex_bodyModel"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RichText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GetFeaturedImageIndex_paragraph"}}]}}]}}].concat((0,i.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"GetFeaturedImageIndex_paragraph"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Paragraph"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isFeatured"}}]}}]}}])),{kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getPostContentAsString_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bodyModel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"mixtapeMetadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"}}]}}]}}]}}]}}]}}]}),o=[{kind:"FragmentDefinition",name:{kind:"Name",value:"appendPostContext_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"sequence"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}],l=[{kind:"FragmentDefinition",name:{kind:"Name",value:"maybeAppendProductName_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"domain"}}]}}],d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"postTitle_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"seoTitle"}},{kind:"Field",name:{kind:"Name",value:"firstPublishedAt"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"appendPostContext_post"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"FragmentSpread",name:{kind:"Name",value:"maybeAppendProductName_collection"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"previewContent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subtitle"}}]}}]}}].concat((0,i.Z)(a.definitions),(0,i.Z)(o),(0,i.Z)(l))},r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getTitleDetails_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bodyModel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GetTitleIndexMap_bodyModel"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}}]}}].concat((0,i.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"GetTitleIndexMap_bodyModel"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RichText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}}]}}]),(0,i.Z)(a.definitions))},c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getTitleForPost_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"FragmentSpread",name:{kind:"Name",value:"postTitle_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getTitleDetails_post"}}]}}].concat((0,i.Z)(d.definitions),(0,i.Z)(r.definitions))},s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"shortformPostTitle_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"seoTitle"}},{kind:"Field",name:{kind:"Name",value:"shortformType"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"appendPostContext_post"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"maybeAppendProductName_collection"}}]}}]}}].concat((0,i.Z)(a.definitions),(0,i.Z)(o),(0,i.Z)(l))},m={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"shouldIndexPost_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"firstPublishedAt"}},{kind:"Field",name:{kind:"Name",value:"isShortform"}},{kind:"Field",name:{kind:"Name",value:"shortformType"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}}]}}].concat((0,i.Z)(a.definitions))}},15085:(e,n,t)=>{"use strict";t.d(n,{r4:()=>v,yB:()=>p,lO:()=>h,_t:()=>S,oS:()=>g,c_:()=>N});var i=t(96156),a=t(49546),o=t(61796),l=t(75221),d=t(44987),r=t(42498);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:250,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,l=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{includeMixtapeHref:!1}).includeMixtapeHref,d="",r=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,d=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){d=!0,o=e},f:function(){try{l||null==t.return||t.return()}finally{if(d)throw o}}}}((null===(n=e.content)||void 0===n||null===(t=n.bodyModel)||void 0===t?void 0:t.paragraphs)||[]);try{for(r.s();!(i=r.n()).done;){var c=i.value,s=c.mixtapeMetadata,u=c.text,k=c.type;if(l&&null!=s&&s.href?d+=d?" ".concat(s.href):s.href:"P"===k&&u&&u.length>o&&(d+=d?" ".concat(u):u),d.length>a)break}}catch(e){r.e(e)}finally{r.f()}return d}function p(e){var n=!1,t="";if(e.content&&e.content.bodyModel&&e.content.bodyModel.paragraphs){var i=e.content.bodyModel.paragraphs,a=(0,o.L)(i).titleIndex;"number"==typeof a&&(t=i[a].text||"",n=!0)}return{hasTitleGraf:n,latestTitle:t}}function f(e,n,t){return null!=t&&t.domain?e:"".concat(e," - ").concat(n)}function h(e,n){var t,i,o,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=e.seoTitle,s=e.title||"",m=(null===(t=e.previewContent)||void 0===t?void 0:t.subtitle)||"";if(c)return(0,d.p)(c,e.collection&&e.collection.name,n);if(!l)return s.length>50?s:s=f(s=k(s,e),n,e.collection);s.length<33&&m&&(m=(0,r.N8)(m,40),s+=". ".concat(m)),null!==(i=e.creator)&&void 0!==i&&i.name&&(s+=" | by ".concat(e.creator.name));var u,v="",p=Date.now()-5184e6;(null!==(o=e.firstPublishedAt)&&void 0!==o?o:0)>=p&&(v=" | ".concat((0,a.Z)(null!==(u=e.firstPublishedAt)&&void 0!==u?u:0,"LLL, yyyy")));var h=e.collection;return h?h.domain?s+="".concat(v," | ").concat(h.name):s+=" | ".concat(h.name).concat(v," | ").concat(n):s+="".concat(v," | ").concat(n),s}function S(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p(e),i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.title||"",o=t.latestTitle||a;return h(s(s({},e),{},{title:o}),n,i).trim()}function g(e,n,t){var i=e.seoTitle,a=e.title||"";return i?(0,d.p)(i,e.collection&&e.collection.name,n):(a=function(e,n,t){var i=n.shortformType,a=i===l.po.SHORTFORM_TYPE_NOTE||!i;return t||(a?e=v(n,u+50,0):i===l.po.SHORTFORM_TYPE_LINK&&(e=v(n,u+50,0,{includeMixtapeHref:!0}))),(0,r.N8)(e,u)}(a,e,t),a=f(a=k(a,e),n,e.collection))}function N(e){var n=e.firstPublishedAt,t=e.isShortform,i=e.shortformType,a=e.visibility,o=e.id,d=i===l.po.SHORTFORM_TYPE_NOTE||!i;if(!n)return{shouldIndexPost:!1,indexReason:"v2: draft"};if("PUBLIC"!==a&&"LOCKED"!==a)return{shouldIndexPost:!1,indexReason:"v2: unlisted (PUBLIC | LOCKED)"};if("ea79ce491983"===o)return{shouldIndexPost:!1,indexReason:"legal"};if(t)if(d){if(v(e,10,0).length<=10)return{shouldIndexPost:!1,indexReason:"v2: insufficient content <=10 chars"}}else if(0===v(e,10,0).length)return{shouldIndexPost:!1,indexReason:"v2: shortform with no commentary"};return{shouldIndexPost:!0,indexReason:"v2: all checks passed"}}},44987:(e,n,t)=>{"use strict";t.d(n,{N:()=>i,p:()=>a});var i=function(e){return e||"Untitled story"},a=function(e,n,t){return n?"".concat(e," | ").concat(n):t?"".concat(e," | ").concat(t):e}}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/8565.ce53d42b.chunk.js.map