PageSourceSearch

https://hype.news/js/StoryFull-vue.ec4d48ac.js

js hype.news collected 2026-09-24 06:33:27 UTC 29,122 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunk_hypefactors_hypenews"]=self["webpackChunk_hypefactors_hypenews"]||[]).push([[2094],{3607(t,e,s){var o=s(82839),r=o.match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},13709(t,e,s){var o=s(82839),r=o.match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},13763(t,e,s){var o=s(82839);t.exports=/MSIE|Trident/.test(o)},17959(t,e,s){s.d(e,{Z:()=>i});var o,r=s(7180),a=s(51466),n=function(){return""},i={setDependencies:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o=t.LambdaApi,n=t.getActiveBrandId||function(){return""}},fetchStories:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n();return a.F.get("stories",(0,r.A)({params:{brands:e}},t))},fetchStory:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.F.getData("stories/".concat(t),e)},deleteStory:function(t){return a.F["delete"]("stories/".concat(t))},createStory:function(t,e){return a.F.postData("stories",t,e)},updateStory:function(t,e,s){return a.F.patchData("stories/".concat(t),e,s)},publishStory:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{include:["categories","countries","tags"]};return a.F.postData("stories/".concat(t,"/publish"),{date:e},{params:s})},unpublishStory:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{include:["categories","countries","tags"]};return a.F.postData("stories/".concat(t,"/unpublish"),{},{params:e})},createContact:function(t){return a.F.postData("contacts",t)},updateContact:function(t,e){return a.F.putData("contacts/".concat(t),e)},fetchRelatedStories:function(t,e){return a.F.getData("/stories/".concat(t,"/related"),e)},fetchBrandContacts:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n();return a.F.getData("brands/".concat(t,"/contacts"))},fetchBrandFiles:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n();return a.F.getData("brands/".concat(e,"/files"),(0,r.A)({params:{sort:"newest"}},t))},fetchSuggestedTags:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n();return a.F.getData("brands/".concat(t,"/suggested-tags"))},detectLanguage:function(t){return o.post("/detect-language",{text:t}).then(function(t){var e=t.data;return e.languages?e.languages[0].code:null})}}},26910(t,e,s){var o=s(46518),r=s(79504),a=s(79306),n=s(48981),i=s(26198),c=s(84606),l=s(655),d=s(79039),u=s(74488),p=s(34598),m=s(13709),h=s(13763),f=s(39519),y=s(3607),g=[],v=r(g.sort),w=r(g.push),_=d(function(){g.sort(void 0)}),b=d(function(){g.sort(null)}),x=p("sort"),C=!d(function(){if(f)return f<70;if(!(m&&m>3)){if(h)return!0;if(y)return y<603;var t,e,s,o,r="";for(t=65;t<76;
1t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:s=3;break;case 68:case 71:s=4;break;default:s=2}for(o=0;o<47;o++)g.push({k:e+o,v:s})}for(g.sort(function(t,e){return e.v-t.v}),o=0;o<g.length;o++)e=g[o].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}),k=_||!b||!x||!C,S=function(t){return function(e,s){return void 0===s?-1:void 0===e?1:void 0!==t?+t(e,s)||0:l(e)>l(s)?1:-1}};o({target:"Array",proto:!0,forced:k},{sort:function(t){void 0!==t&&a(t);var e=n(this);if(C)return void 0===t?v(e):v(e,t);var s,o,r=[],l=i(e);for(o=0;o<l;o++)o in e&&w(r,e[o]);u(r,S(t)),s=i(r),o=0;while(o<s)e[o]=r[o++];while(o<l)c(e,o++);return e}})},46790(t,e,s){s.d(e,{A:()=>b});s(62010);var o=function(){var t=this,e=t._self._c;return e("article",{staticClass:"story hn-card group relative flex overflow-hidden rounded-card border border-solid border-line bg-surface",class:[t.extraClasses,t.shouldDisplayAsPinned?"flex-col md:flex-row":"flex-col"],attrs:{"data-testid":"StoryCard"}},[t.showCover?e("router-link",{staticClass:"story__thumb relative overflow-hidden bg-[#dfe6e3]",class:[t.isLarger?"aspect-[16/8.4]":"aspect-[16/10]",t.shouldDisplayAsPinned?"md:order-2 md:aspect-auto md:w-2/3":""],attrs:{to:t.linkPath}},[e("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.observeCallback,expression:"observeCallback"}],staticClass:"story__thumb-inner absolute inset-0 flex items-center justify-center bg-cover bg-center bg-no-repeat p-4 font-display text-lg font-semibold text-white",style:t.coverStyle},[t.newsroomLogo||t.hasCover?t._e():e("span",{staticClass:"rounded-md bg-black/45 px-3 py-1.5 text-center"},[t._v(t._s(t.newsroom.name))])])]):t._e(),e("div",{staticClass:"story__body flex flex-1 flex-col",class:[t.isLarger?"gap-3 p-8":"gap-2.5 px-[17px] pt-[15px] pb-[18px]",t.shouldDisplayAsPinned?"md:order-1 md:w-1/3":""]},[e("story-card-newsroom-head",{attrs:{newsroom:t.newsroom,story:t.story,"newsroom-path-name":t.newsroomPathName,"hide-date":t.hideDate||t.isEmbedded&&t.storySettings.dateStamp},scopedSlots:t._u([t.isLarger?{key:"meta",fn:function(){return[t.showStoryType?e("span",{staticClass:"story__type shrink-0 rounded-full bg-accent-soft px-2.5 py-1 font-display text-xs font-bold text-accent",attrs:{title:t.typeLabel}},[t._v(" "+t._s(t.typeLabel)+" ")]):t._e(),t.showCountry?e("div",{staticClass:"flex shrink-0 items-center gap-1.5 text-sm text-muted"},[t.newsroomCountry.iso_alpha2?e("country-flag",{attrs:{country:t.newsroomCountry.iso_alpha2}}):t._e(),e("span",{staticClass:"font-semibold"},[t._v(t._s(t.newsroomCountry.name))])],1):t._e()]},proxy:!0}:null],null,!0)},[t.isEditable?e("a",{staticClass:"story__action flex h-8 w-8 items-center justify-center rounded-full bg-bg text-muted transition-colors hover:bg-accent hover:text-white",attrs:{href:t.editUrl,target:"hn_story_edit","data-testid":"StoryCard__edit"}},[e("v-icon",{attrs:{type:"pencil"}})],1):t._e()]),e("router-link",{staticClass:"flex flex-1 flex-col gap-2.5",attrs:{to:t.linkPath,"data-testid":"StoryCard_StoryLink"}},[e("h3",{staticClass:"story__title font-display font-bold text-ink",class:t.isLarger?"text-[28px] leading-[1.1] tracking-[-0.03em]":"text-lg leading-[1.22] tracking-[-0.015em]",attrs:{title:t.story.headline}},[t._v(" "+t._s(t.truncate(t.story.headline,60))+" ")]),t.hideContent?t._e():e("p",{staticClass:"story__text hidden font-sans text-base leading-relaxed text-muted md:block"},[t._v(" "+t._s(t.stripHtml(t.truncate(t.secondaryContentToShow,t.copyTextChars)))+" ")]),t.isLarger||!t.showStoryType&&!t.showCountry?t._e():e("div",{staticClass:"mt-auto flex items-center gap-2"},[t.showCountry?e("div",{staticClass:"flex shrink-0 items-center gap-1.5 text-sm text-muted"},[t.newsroomCountry.iso_alpha2?e("country-flag",{attrs:{country:t.newsroomCountry.iso_alpha2}}):t._e(),e("span",{staticClass:"font-semibold"},[t._v(t._s(t.newsroomCountry.name))])],1):t._e(),t.showStoryType?e("span",{staticClass:"story__type ml-auto shrink-0 rounded-full bg-accent-soft px-2.5 py-1 font-display text-xs font-bold text-accent",attrs:{title:t.typeLabel}}
1,[t._v(" "+t._s(t.typeLabel)+" ")]):t._e()])])],1)],1)},r=[],a=s(7180),n=(s(28706),s(2892),s(95353)),i=s(72406),c=s(82601);const l={methods:{stripHtml:c.QZ}};var d=s(88359),u=function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex items-center gap-2"},[t.$isEmpty(t.newsroom)?t._e():e("router-link",{staticClass:"shrink-0",attrs:{to:t.newsroomPathConfig}},[e("round-avatar",{attrs:{"main-color":t.newsroom.main_color,src:t.newsroomLogo,"acronym-fallback":t.newsroom.name,size:"xsmall"}})],1),t.$isEmpty(t.newsroom)?t._e():e("router-link",{staticClass:"min-w-0 truncate font-display text-sm font-semibold text-ink transition-colors hover:text-accent",attrs:{title:t.newsroom.name,to:t.newsroomPathConfig,"data-testid":"StoryCard_NewsroomLink"}},[t._v(" "+t._s(t.newsroom.name)+" ")]),t.hideDate?t._e():e("time",{staticClass:"shrink-0 whitespace-nowrap font-display text-sm font-medium text-muted-faint",attrs:{datetime:t.story.published_at}},[t._v(" · "+t._s(t.datetime(t.story.published_at,"MMMM Do"))+" ")]),t._t("meta"),e("div",{staticClass:"ml-auto flex shrink-0 items-center gap-1.5"},[t._t("default")],2)],2)},p=[];const m={mixins:[i.A],props:{newsroom:{type:Object,required:!0},story:{type:Object,required:!0},newsroomPathName:{type:String,required:!0},hideDate:{type:Boolean,default:!1}},computed:{newsroomLogo:function(){return this.$safeGet(this.newsroom,"logo.cropped")},newsroomPathConfig:function(){return{name:this.newsroomPathName,params:{newsroomId:this.newsroom.id,newsroomSlug:this.story.newsroom_slug}}}}},h=m;var f=s(81656),y=(0,f.A)(h,u,p,!1,null,null,null);const g=y.exports,v={components:{StoryCardNewsroomHead:g},mixins:[i.A,l,d.A],props:{story:{type:Object,required:!0},isLarger:{type:Boolean,default:!1},newsroomProp:{type:Object,default:function(){return{}}},showLessInfo:{type:Boolean,default:!1},showPinnedPosts:{type:Boolean,default:!1},storyPathName:{type:String,default:"story"},newsroomPathName:{type:String,default:"newsroom.stories"},isEditable:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},copyTextChars:{type:Number,default:160}},data:function(){return{inViewport:!1,observeCallback:{callback:this.onViewportEnter,once:!0}}},computed:(0,a.A)((0,a.A)({},(0,n.L8)(["isEmbedded","storySettings"])),{},{coverStyle:function(){var t={};return this.inViewport&&(t={backgroundImage:"url('".concat(this.storyCover,"')")}),this.hasCover||(t=(0,a.A)((0,a.A)({},t),{},{borderColor:this.newsroom.main_color,backgroundColor:this.newsroom.main_color})),t},extraClasses:function(){return{"story--no-cover":!this.hasCover,"story--in-viewport":this.inViewport}},showCover:function(){return!(this.isEmbedded&&this.storySettings.storyImage)},shouldDisplayAsPinned:function(){return this.showPinnedPosts&&this.isPinned},isPinned:function(){return this.story.is_pinned},newsroom:function(){var t=this.$safeGet(this.story.newsroom,"data",{});return this.$isEmpty(t)?this.newsroomProp:t},hasCover:function(){return!!this.story.cover.cropped},storyCover:function(){return this.hasCover?(this.isLarger||this.shouldDisplayAsPinned)&&this.hasScaledSizes?this.$safeGet(this.story,"cover.scaled.medium.path",this.story.cover.cropped):this.story.cover.cropped:this.newsroomLogo},hasScaledSizes:function(){return!!this.story.cover.scaled},newsroomLogo:function(){return this.$safeGet(this.newsroom,"logo.cropped")},newsroomCountry:function(){return this.$safeGet(this.newsroom,"country.data",null)},typeLabel:function(){return this.$t("components.story_types."+this.story.type)},showStoryType:function(){return!!this.story.type&&!(this.isEmbedded&&this.storySettings.storyTypeTag)},showCountry:function(){return!!this.newsroomCountry&&!this.fromNewsroomPage},fromNewsroomPage:function(){return this.showLessInfo||!this.story.newsroom},pathParams:function(){return{storyId:this.story.id,storySlug:this.story.slug,newsroomId:this.newsroom.id,newsroomSlug:this.story.newsroom_slug}},linkPath:function(){return{name:this.storyPathName,params:this.pathParams}},secondaryContentToShow:function(){return this.story.subheadline||this.story.excerpt},editUrl:function(){return this.$getUrl("stories/story/".concat(this.story.id,"/edit?brand=").concat(this.newsroom.brand.id),"hypefactors",!1)}}),methods:{onViewportEnter:function(t,e){this.inViewport=t}}},w=v;var _=(0,f.A)(w,o,r,!1,null,null,null);const b=_.exports},72406(t,e,s){s.d(e,{A:()=>r});var o=s(41940);const r={methods:{datetime:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DD/MM/YYYY HH:mm";return(0,o.D3)(t,e)}}}},74488(t,e,s){var o=s(67680),r=Math.floor,a=function(t,e){var s=t.length;if(s<8){var n,i,c=1;while(c<s){i=c,n=t[c];while(i&&e(t[i-1],n)>0)t[i]=t[--i];i!==c++&&(t[i]=n)}}else{var l=r(s/2),d=a(o(t,0,l),e),u=a(o(t,l),e),p=d.length,m=u.length,h=0,f=0;while(h<p||f<m)t[h+f]=h<p&&f<m?e(d[h],u[f])<=0?d[h++]:u[f++]:h<p?d[h++]:u[f++]}return t};t.exports=a},84606(t,e,s){var o=s(16823),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw new r("Cannot delete property "+o(e)+" of "+o(t))}},88359(t,e,s){s.d(e,{A:()=>r});var o=s(82601);const r={methods:{truncate:o.xv}}},94209(t,e,s){s.d(e,{A:()=>l});s(62010);var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"contact-card w-full rounded-card border border-solid border-line bg-surface p-6 text-center shadow-sm"},[e("div",{staticClass:"mx-auto mb-4 h-[100px] w-[100px] rounded-full border border-solid border-line bg-transparent bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url(".concat(t.contact.
1image.cropped,")")}}),e("div",{staticClass:"font-display text-base font-semibold text-ink"},[t._v(" "+t._s(t.contact.name)+" ")]),e("div",{staticClass:"min-h-[1.44em] text-sm text-muted"},[t._v(" "+t._s(t.contact.job_description)+" ")]),e("div",{staticClass:"my-4 h-px bg-line"}),e("div",{staticClass:"text-left"},[e("div",{staticClass:"mb-2 font-display text-xs font-bold uppercase tracking-wider text-muted-faint"},[t._v(" Contact ")]),e("div",{staticClass:"text-sm"},[t.contact.email?e("div",{staticClass:"contact-card__contact-email flex items-center gap-2 leading-[1.8]"},[e("i",{staticClass:"hf hf-fw hf-lg hf-envelope shrink-0 text-brand"}),e("a",{staticClass:"min-w-0 truncate text-ink hover:text-accent",attrs:{href:"mailto:"+t.contact.email,title:t.contact.email}},[t._v(" "+t._s(t.contact.email)+" ")])]):t._e(),t.contact.phone?e("div",{staticClass:"contact-card__contact-phone flex items-center gap-2 leading-[1.8]"},[e("i",{staticClass:"hf hf-fw hf-lg hf-phone shrink-0 text-brand"}),e("a",{staticClass:"min-w-0 truncate text-ink hover:text-accent",attrs:{href:"mailto:"+t.contact.phone,title:t.contact.phone}},[t._v(" "+t._s(t.contact.phone)+" ")])]):t._e()])])])},r=[];const a={props:{contact:{type:Object,required:!0}}},n=a;var i=s(81656),c=(0,i.A)(n,o,r,!1,null,null,null);const l=c.exports},96292(t,e,s){s.r(e),s.d(e,{default:()=>Y});s(62010);var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"StoryFull"},[e("story-admin-bar",{attrs:{story:t.story}}),e("article",{directives:[{name:"loading",rawName:"v-loading",value:t.fetchingStory,expression:"fetchingStory"}],staticClass:"mx-auto max-w-[1040px] px-4 pb-4 pt-8 md:px-9 md:pt-10",attrs:{itemtype:"http://schema.org/NewsArticle",itemscope:""}},[e("meta",{attrs:{content:t.url,itemprop:"mainEntityOfPage"}}),e("div",{attrs:{itemprop:"publisher",itemscope:"",itemtype:"https://schema.org/Organization"}},[e("meta",{attrs:{itemprop:"name",content:"Hype.News"}}),e("div",{attrs:{itemprop:"logo",itemscope:"",itemtype:"https://schema.org/ImageObject"}},[e("meta",{attrs:{content:t.$asset("/assets/images/logo_234x60.png"),itemprop:"url"}}),e("meta",{attrs:{itemprop:"width",content:"234"}}),e("meta",{attrs:{itemprop:"height",content:"60"}})]),e("link",{attrs:{itemprop:"sameAs",href:"https://hype.news"}})]),t.newsroom.id?e("div",{staticClass:"mb-5 flex items-center gap-2.5",attrs:{itemprop:"author",itemscope:"",itemtype:"https://schema.org/Organization"}},[e("meta",{attrs:{content:t.newsroom.name,itemprop:"name"}}),e("router-link",{staticClass:"shrink-0",attrs:{to:{name:"newsroom.stories",params:{newsroomSlug:t.newsroom.slug}}}},[e("round-avatar",{attrs:{src:t.newsroomLogo,alt:t.newsroom.name,"acronym-fallback":t.newsroom.name,"main-color":t.newsroom.main_color,size:"xsmall"}})],1),e("router-link",{staticClass:"font-display text-sm font-bold text-ink transition-colors hover:text-accent",attrs:{to:{name:"newsroom.stories",params:{newsroomSlug:t.newsroom.slug}}}},[t._v(" "+t._s(t.newsroom.name)+" ")]),t.primaryCategory?e("span",{staticClass:"rounded-full bg-accent-soft px-3 py-1 font-display text-xs font-bold text-accent"},[t._v(" "+t._s(t.$t("categories."+t.primaryCategory.id))+" ")]):t._e()],1):t._e(),t.storyCroppedCover?e("figure",{staticClass:"m-0"},[e("div",{staticClass:"aspect-[16/8] w-full rounded-card bg-[#dfe6e3] bg-cover bg-center shadow-[0_14px_34px_-20px_rgba(22,34,30,.4)]",style:{backgroundImage:"url(".concat(t.storyCroppedCover,")")},attrs:{itemprop:"image",itemscope:"",itemtype:"http://schema.org/ImageObject"}},[e("meta",{attrs:{content:t.storyCroppedCover,itemprop:"url"}}),e("meta",{attrs:{itemprop:"width",content:"900"}}),e("meta",{attrs:{itemprop:"height",content:"506"}})]),t.story.cover_caption?e("figcaption",{staticClass:"mt-2.5 font-sans text-base text-muted-soft"},[t._v(" "+t._s(t.story.cover_caption)+" ")]):t._e()]):t._e(),e("div",{staticClass:"mt-8 grid grid-cols-1 gap-8 md:grid-cols-[200px_minmax(0,1fr)] md:items-start md:gap-11"},[e("aside",{staticClass:"order-2 md:order-1 md:sticky md:top-6 md:self-start"},[t.topCategories.length?[e("div",{staticClass:"mb-2.5 font-display text-xs font-bold uppercase tracking-wider text-muted-faint"},[t._v(" "+t._s(t.$t("pages.story.categories"))+" ")]),e("story-categories-list",{staticClass:"mb-6",attrs:{categories:t.topCategories}})]:t._e(),t.tags.length?[e("div",{staticClass:"mb-3 font-display text-xs font-bold uppercase tracking-wider text-muted-faint"},[t._v(" "+t._s(t.$t("pages.story.tags"))+" ")]),e("story-tags-list",{staticClass:"mb-6",attrs:{tags:t.tags,"tag-class":"rounded-full border border-solid border-line bg-white px-3 py-1.5 font-display text-xs font-semibold text-muted"}})]:t._e(),e("div",{staticClass:"mb-3 font-display text-xs font-bold uppercase tracking-wider text-muted-faint"},[t._v(" "+t._s(t.$t("pages.story.share"))+" ")]),e("ShareOn",{attrs:{url:t.url,t
1itle:t.story.title,description:t.story.boilerplate}})],2),e("div",{staticClass:"order-1 min-w-0 md:order-2 md:max-w-[680px]"},[e("header",{staticClass:"mb-8"},[e("h1",{staticClass:"font-display text-3xl font-extrabold leading-tight tracking-heading text-ink md:text-[42px] md:leading-[1.06]",attrs:{itemprop:"headline"}},[t._v(" "+t._s(t.story.headline)+" ")]),t.story.subheadline?e("p",{staticClass:"mt-4 font-sans text-lg leading-relaxed text-muted",attrs:{itemprop:"alternativeHeadline"},domProps:{innerHTML:t._s(t.story.subheadline)}}):t._e(),e("div",{staticClass:"mt-5 flex flex-wrap items-center gap-x-2 font-display text-sm font-semibold text-muted-faint"},[t.story.type?e("span",{attrs:{title:"Story Type"}},[t._v(" "+t._s(t.$t("components.story_types."+t.story.type))+" ")]):t._e(),t.story.type?e("span",{attrs:{"aria-hidden":"true"}},[t._v("·")]):t._e(),e("time",{attrs:{datetime:t.story.published_at,itemprop:"datePublished",title:"Published On"}},[t._v(" "+t._s(t.datetime(t.story.published_at,"DD MMMM YYYY"))+" ")]),e("meta",{attrs:{content:t.story.updated_at,itemprop:"dateModified"}})])]),e("div",{staticClass:"StoryFull__prose fr-view",attrs:{itemprop:"articleBody"},domProps:{innerHTML:t._s(t.story.copytext)}}),t.story.boilerplate?e("div",{staticClass:"StoryFull__prose mt-8 text-base text-muted",domProps:{innerHTML:t._s(t.story.boilerplate)}}):t._e(),t.story.contact?e("div",{staticClass:"StoryFull__prose mt-4 text-base text-muted",domProps:{innerHTML:t._s(t.story.contact)}}):t._e(),t.contacts.length?e("div",{staticClass:"mt-10"},[e("div",{staticClass:"mb-5 h-px bg-line"}),e("div",{staticClass:"mb-5"},[e("h2",{staticClass:"font-display text-lg font-bold tracking-heading text-ink"},[t._v(" "+t._s(t.$t("pages.story.contacts"))+" ")]),e("p",{staticClass:"mt-1 text-base text-muted"},[t._v(" "+t._s(t.$t("pages.story.for_more_info"))+" ")])]),e("div",{staticClass:"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3"},t._l(t.contacts,function(t){return e("contact-card",{key:t.id,attrs:{contact:t}})}),1)]):t._e(),t.hasAttachments?e("div",{staticClass:"StoryFull__attachments attachments mt-10"},[e("div",{staticClass:"mb-5 h-px bg-line"}),e("h2",{staticClass:"mb-4 font-display text-lg font-bold tracking-heading text-ink"},[t._v(" "+t._s(t.$t("pages.story.attachments"))+" ")]),e("Attachments",{attrs:{files:t.story.files.data}})],1):t._e(),t.newsroom.id?e("div",{staticClass:"mt-8 flex items-center gap-3.5 rounded-card border border-solid border-line bg-white p-4 shadow-sm"},[e("router-link",{staticClass:"shrink-0",attrs:{to:{name:"newsroom.stories",params:{newsroomSlug:t.newsroom.slug}}}},[e("round-avatar",{attrs:{src:t.newsroomLogo,alt:t.newsroom.name,"acronym-fallback":t.newsroom.name,"main-color":t.newsroom.main_color,size:"medium"}})],1),e("div",{staticClass:"min-w-0 flex-1"},[e("router-link",{staticClass:"block font-display text-base font-bold text-ink transition-colors hover:text-accent",attrs:{to:{name:"newsroom.stories",params:{newsroomSlug:t.newsroom.slug}}}},[t._v(" "+t._s(t.newsroom.name)+" ")]),t.newsroomCountsLabel?e("div",{staticClass:"font-display text-xs font-medium text-muted-soft"},[t._v(" "+t._s(t.newsroomCountsLabel)+" ")]):t._e()],1),e("follow-newsroom-button",{staticClass:"shrink-0",attrs:{newsroom:t.newsroom}})],1):t._e()])])]),t.hasRelatedStories?e("section",{staticClass:"mx-auto max-w-[1040px] px-4 pb-11 md:px-9"},[e("div",{staticClass:"h-px bg-line"}),e("div",{staticClass:"mb-4.5 mt-7 flex items-baseline justify-between"},[e("h2",{staticClass:"font-display text-xl font-extrabold tracking-heading text-ink"},[t._v(" "+t._s(t.$t("pages.story.related_stories"))+" ")]),e("router-link",{staticClass:"shrink-0 font-display text-base font-semibold text-accent transition-opacity hover:opacity-80",attrs:{to:t.$i18nRoute({name:"home"})}},[t._v(" "+t._s(t.$t("pages.story.more_from_read"))+" → ")])],1),e("div",{staticClass:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3"},t._l(t.relatedStories,function(t){return e("story",{key:t.id,attrs:{story:t,"show-less-info":!1}})}),1)]):t._e()],1)},r=[],a=s(9217),n=s(24634),i=s(7180),c=s(15060),l=(s(28706),s(2008),s(48598),s(44114),s(26910),s(18111),s(22489),s(26099),s(47764),s(11392),s(62953),s(94209)),d=s(46790),u=s(86780),p=function(){var t=this,e=t._self._c;return t.categories.length?e("div",{staticClass:"StoryCategoriesList flex flex-col gap-1 font-display text-sm leading-snug text-muted"},t._l(t.categories,function(s){return e("span",{key:s.id,staticClass:"Category"},[t._v(" "+t._s(t.$t("categories."+s.id))+" ")])}),0):t._e()},m=[];const h={name:"StoryCategoriesList",props:{categories:{type:Array,default:function(){return[]}}}},f=h;var y=s(81656),g=(0,y.A)(f,p,m,!1,null,null,null);const v=g.exports;var w=function(){var t=this,e=t._self._c;return e("div",{staticClass:"StoryTagsList flex flex-wrap gap-2"},t._l(t.tags,function(s){return e("span",{key:s.id,class:t.tagClass},[t._v(" "+t._s(s.title)+" ")])}),0)},_=[];const b={name:"StoryTagsList",props:{tags:{type:Array,default:function(){return[]}},tagClass:{type:String,default:""}}},x=b;var C=(0,y.A)(x,w,_,!1,null,null,null);const k=C.exports;var S=s(95353),A=(s(52675),s(89463),function(){var t=this,e=t._self._c;
1return e("social-sharing",{attrs:{url:t.url,title:t.title,description:t.description},inlineTemplate:{render:function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex flex-wrap gap-2"},[e("network",{attrs:{network:"linkedin"}},[e("button",{class:t.btnClass,attrs:{type:"button"}},[e("i",{staticClass:"hf hf-linkedin"})])]),e("network",{attrs:{network:"facebook"}},[e("button",{class:t.btnClass,attrs:{type:"button"}},[e("i",{staticClass:"hf hf-facebook"})])]),e("network",{attrs:{network:"twitter"}},[e("button",{class:t.btnClass,attrs:{type:"button"}},[e("v-icon",{attrs:{type:"twitter"}})],1)]),e("a",{class:t.btnClass,attrs:{href:"mailto:?subject="+encodeURIComponent(t.title)+"&body="+t.url,target:"_blank",title:"Email"}},[e("v-icon",{attrs:{type:"envelope"}})],1),e("el-tooltip",{staticClass:"item",attrs:{content:t.$t("general.copy_link_to_clipboard"),placement:"top-start"}},[e("button",{directives:[{name:"clipboard",rawName:"v-clipboard",value:t.url,expression:"url"}],staticClass:"Story__CopyLink",class:t.btnClass,attrs:{type:"button"},on:{success:function(e){t.$notify.success(t.$t("success.url_copied"))}}},[e("v-icon",{attrs:{type:"share-alt"}})],1)])],1)},staticRenderFns:[]}})}),$=[];const L={name:"ShareOn",props:{url:{type:String,default:function(){return this.$getUrl(this.$route.fullPath,"hypenews",null)}},title:{type:String,default:""},description:{type:String,default:""}},computed:{btnClass:function(){return"inline-flex h-9 w-9 cursor-pointer items-center justify-center rounded-[10px] border border-solid border-line bg-white text-muted transition-colors hover:border-outline hover:text-ink"}}},P=L;var T=(0,y.A)(P,A,$,!1,null,null,null);const D=T.exports;var F=function(){var t=this,e=t._self._c;return t.ownsStory?e("div",{staticClass:"StoryAdminBar w-full bg-white"},[e("div",{staticClass:"mx-auto max-w-screen-xl px-4"},[e("div",{staticClass:"flex justify-end py-4"},[e("a",{staticClass:"px-4 font-display text-sm font-semibold uppercase text-ink hover:text-accent",attrs:{href:t.editUrl,"data-testid":"StoryEditLink",target:"hf_story_edit"}},[t._v(" "+t._s(t.$t("forms.edit"))+" ")])])])]):t._e()},N=[];s(50113),s(20116);const I={name:"StoryAdminBar",props:{story:{type:Object,required:!0}},computed:(0,i.A)((0,i.A)({},(0,S.L8)("personalNewsrooms",["newsroomsFlat"])),{},{storyNewsroom:function(){var t=this;return this.newsroomsFlat.find(function(e){return e.slug===t.story.newsroom_slug})},ownsStory:function(){return!!this.storyNewsroom},editUrl:function(){if(this.ownsStory)return this.$getUrl("stories/story/".concat(this.story.id,"/edit?brand=").concat(this.storyNewsroom.brandId),"hypefactors",!1)}})},E=I;var M=(0,y.A)(E,F,N,!1,null,null,null);const j=M.exports;var G=s(17959),O=s(72406);const R={components:{StoryTagsList:k,StoryCategoriesList:v,StoryAdminBar:j,Story:d.A,ContactCard:l.A,ShareOn:D},mixins:[O.A],data:function(){return{story:{cover:{},categories:{data:[]},tags:{data:[]},contacts:{data:[]}},relatedStories:[],newsroom:{},fetchingStory:!0,cancelToken:null}},computed:{hasAttachments:function(){var t=this.story.files;return t&&t.data.length},hasRelatedStories:function(){return this.relatedStories.length>0},isStoryRoute:function(){return(this.$route.name||"").startsWith("story")},url:function(){return this.$getUrl(this.$route.fullPath,"hypenews",null)},tags:function(){return this.story.tags.data||[]},topCategories:function(){return this.story.categories.data.filter(function(t){return 2===t.depth})},primaryCategory:function(){var t=this.$safeGet(this.story,"categories.data",[]);return t.length?(0,c.A)(t).sort(function(t,e){return t.depth-e.depth})[0]:null},storyCroppedCover:function(){return this.largeImage||this.croppedImagePath},contacts:function(){return this.story.contacts.data||[]},newsroomLogo:function(){return this.$safeGet(this.newsroom,"logo.cropped")},newsroomCountsLabel:function(){var t=[];return this.newsroom.followers_count>0&&t.push("".concat(this.newsroom.followers_count.toLocaleString()," ").concat(this.$t("components.company_sidebar.followers"))),this.newsroom.stories_count>0&&t.push("".concat(this.newsroom.stories_count," ").concat(this.$t("components.c
1ompany_sidebar.stories"))),t.join(" · ")},largeImage:function(){return this.$safeGet(this.story,"cover.scaled.large.path",null)},croppedImagePath:function(){return this.$safeGet(this.story,"cover.cropped",null)}},watch:{$route:function(){this.isStoryRoute&&this.fetchStoryData(this.$route.params.storySlug)}},mounted:function(){this.fetchStoryData(this.$route.params.storySlug)},beforeDestroy:function(){this.cancelToken&&this.cancelToken.cancel()},methods:(0,i.A)((0,i.A)({},(0,S.PY)({setStory:"SET_STORY"})),{},{fetchStoryData:function(t){var e=this;return(0,n.A)((0,a.A)().m(function s(){var o,r;return(0,a.A)().w(function(s){while(1)switch(s.p=s.n){case 0:return e.startLoad(),e.cancelToken&&e.cancelToken.cancel(),e.cancelToken=e.$api.cancelToken(),e.fetchingStory=!0,s.p=1,s.n=2,Promise.all([e.fetchStory(t),e.fetchRelatedStories(t)]);case 2:if(o=(0,u.Hh)("LEGAL_WARNING",!1),!e.newsroom.legal_warning||o){s.n=6;break}return s.p=3,s.n=4,e.$confirm(e.$t("components.full_story.legal_warning"));case 4:(0,u.Zr)("LEGAL_WARNING",!0),s.n=6;break;case 5:s.p=5,s.v,e.$router.push({name:"newsroom.stories",params:{newsroomSlug:e.newsroom.slug}});case 6:e.stopLoad(),s.n=9;break;case 7:if(s.p=7,r=s.v,!e.$api.isCancelToken(r)){s.n=8;break}return s.a(2);
1case 8:e.$router.push(e.$i18nRoute({name:"home"})),e.stopLoadWithFail();case 9:return s.p=9,e.fetchingStory=!1,s.f(9);case 10:return s.a(2)}},s,null,[[3,5],[1,7,9,10]])}))()},fetchStory:function(t){var e=this;return G.Z.fetchStory(t,{params:{include:["newsroom.country","files","categories","tags","contacts"]},cancelToken:this.cancelToken.token}).then(function(t){e.story=t,e.setStory(t),e.newsroom=t.newsroom.data,e.changePageMetaTags(t)})["catch"](function(t){if(e.$api.isCancelToken(t))throw t;throw e.$displayRequestError(t,e.$t("errors.error"),5e3,[404]),t})},fetchRelatedStories:function(t){var e=this;return(0,n.A)((0,a.A)().m(function s(){return(0,a.A)().w(function(s){while(1)switch(s.n){case 0:return s.n=1,G.Z.fetchRelatedStories(t,{params:{limit:4,include:"newsroom.country"},cancelToken:e.cancelToken.token});case 1:e.relatedStories=s.v;case 2:return s.a(2)}},s)}))()},changePageMetaTags:function(t){(0,u.I5)(t.headline),(0,u.aG)(t.excerpt),(0,u.le)("title",t.headline),(0,u.le)("type","article"),(0,u.le)("url",this.url),this.$safeGet(t,"cover.cropped",!1)&&(0,u.le)("image",t.cover.cropped),(0,u.le)("description",t.copytext)}})},B=R;var H=(0,y.A)(B,o,r,!1,null,null,null);const Y=H.exports}}]);
2//# sourceMappingURL=StoryFull-vue.ec4d48ac.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.