PageSourceSearch

https://dailyhive.com/_next/static/chunks/7398-a4fc2323e4aa9841.js

js dailyhive.com collected 2026-09-24 15:18:01 UTC 14,699 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7398],{57398:function(e,t,a){a.d(t,{Z:function(){return v}});var i=a(85893);a(67294);var s=a(26043),r=a(27484),n=a.n(r),c=a(70178),l=a.n(c),o=a(29387),h=a.n(o),d=a(11752),u=a.n(d),g=a(40302);let{publicRuntimeConfig:p}=u()(),{ASSETS_FOLDER:m,SITE_URL:_}=p;n().extend(l()),n().extend(h());class v{get getChannel(){return this.decider()}get getChannelName(){return this.channelName()}get getParentLocations(){return this.parentLocations()}get getCategories(){return this.allCategories()}get getCategoriesNames(){return this.allCategoriesNames()}get getParentCategories(){return this.parentCategories()}get getFacebookNewsTagCategories(){return this.facebookNewsTagCategories()}get getDate(){return this.articleDate()}get getTagsString(){return this.tagsString()}get getCanonLink(){return"".concat(_).concat(this.articleUrls().articleBaseUrl,"/").concat(this.slug)}get getArticlePageCanonLink(){return this.canonicalUrl||this.getCanonLink}getCanonCityLink(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(_).concat(this.articleUrls(e).articleBaseUrl,"/").concat(this.slug)}hasTag(e){return this.containsTagName(e)}getArticleUrls(e){return this.articleUrls(e)}get getCardTitle(){return this.cardTitle()}get getCardContent(){return this.cardContent()||""}get getFeaturedImage(){return this.featured_image&&this.featured_image.replace("http:","https:")||this.getCardLogo.placeholderx2}get getFeaturedImageThumbnail(){return this.featured_image_thumbnail&&this.featured_image_thumbnail.replace("http:","https:")||this.getCardLogo.placeholderx2}get getCardImage(){return this.cardImage()}get getCardImageCaption(){return this.cardImageCaption()}get getCardAuthor(){return this.cardAuthor()}get getCardLogo(){return this.cardLogo()}get hasVideo(){return this.video()}get isDhVideo(){return this.checkDhVideo()}getMainRouteName(e){return this.mainRouteName(e)}get disableAds(){return this.adsAreDisabled()}get disableComments(){return this.commentsAreDisabled()}get utcTime(){return this.createdAtUTC()}get viafouraEngagementDisabled(){var e;return(null===this||void 0===this?void 0:null===(e=this.customFields)||void 0===e?void 0:e.engagement_disabled)||!1}get viafouraEngagementTitle(){var e;return null===this||void 0===this?void 0:null===(e=this.customFields)||void 0===e?void 0:e.engagement_title}get viafouraEngagementDescription(){var e;return null===this||void 0===this?void 0:null===(e=this.customFields)||void 0===e?void 0:e.engagement_description}mainRouteName(e){let t=e||"";return this.grow_channel?t="grow":this.mapped_channel?t="mapped":this.canada_channel&&(t="canada"),t}parentLocations(){if(this.locations)return this.locations.filter(e=>"0"===e.parent_id||0===e.parent_id).sort((e,t)=>e.wp_location_id-t.wp_location_id)}checkDhVideo(){let e=this.allCategories(),t=!1;for(let a of e)if("dh-videos"===a.slug){t=!0;break}return t}allCategories(){if(this.categories)return this.categories.filter(e=>!!e.slug).sort((e,t)=>e.wp_category_id<t.wp_category_id?-1:e.wp_category_id>t.wp_category_id?1:0)}allCategoriesNames(){let e=this.allCategories();if(e)return e.map(e=>e.slug)}parentCategories(){if(this.categories)return this.categories.filter(e=>"0"===e.parent_id||0===e.parent_id).sort((e,t)=>e.wp_category_id>t.wp_category_id?-1:e.wp_category_id<t.wp_category_id?1:0)}toProperName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}channelName(){let e=this.decider();switch(e){case"dailyhive":return"Daily Hive";case"grow":return"Grow";case"mapped":return"Travel";case"canada":return"National";case"dished":return"Dished";case"urbanized":return"Urbanized";case"venture":return"Business & Tech";case"listed":return"Events";case"offside":return"Offside";case"news":return"News";case"curated":return"Lifestyle";default:return"".concat(e)}}deciderFilter(e){let t=this.allCategories();return!!(t&&t.filter(t=>t.slug===e)||[]).length}containsTagName(e){var t;if(!(null===(t=this.tags)||void 0===t?void 0:t[0]))return!1;{let t=!1;
1return this.tags.forEach(a=>{a.slug===e&&(t=!0)}),t}}findCategoryById(e){return(this.allCategories()||[]).find(t=>t.wp_category_id===e)}decider(){if(this.hasTag("whitepapers"))return"dailyhive";if(this.grow_channel)return"grow";if(this.mapped_channel)return"mapped";{if(this.canada_channel)return"canada";let e=this.findCategoryById(this.primary_category);if(e&&g.KC[e.slug])return g.KC[e.slug];if(this.deciderFilter("food"))return"dished";if(this.deciderFilter("urbanized"))return"urbanized";if(this.deciderFilter("venture"))return"venture";else if(this.deciderFilter("events"))return"listed";else if(this.deciderFilter("sports"))return"offside";else if(this.deciderFilter("news"))return"news";else return"curated"}}facebookNewsTagCategories(){let e=this.channelName(),t=this.allCategoriesNames(),a=[],i={"health-wellness-cannabis":"Health & Medical",coronavirus:"Health & Medical","travel-deals":"Travel & Leisure Activities",politics:"Politics","hollywood-north":"TV & Movies","movies-tv":"TV & Movies",arts:"Visual Arts, Architecture & Crafts","public-art":"Visual Arts, Architecture & Crafts",animals:"Animals & Pets",concerts:"Music & Audio",architecture:"Architecture",transportation:"Vehicles & Transportation",entrepreneurs:"Business, Finance, & Economics","cannabis-business":"Business, Finance, & Economics",jobs:"Business, Finance, & Economics",crime:"Crime & Tragedy",basketball:"Basketball",baseball:"Baseball",football:"Football (American Rules)",soccer:"Football (Association Rules, Soccer)","community-lifestyle":"Relationships, Friends, & Family","pop-culture":"Social Issues","cannabis-101":"Education & Learning","fashion-beauty":"Fashion & Style","health-fitness":"Fitness & Workouts",food:"Food & Drink",sports:"Sports","home-decor":"Home & Garden"};if(t&&t.length&&t.forEach(e=>{i[e]&&a.push(i[e])}),!a.length)switch(e){case"News":default:a.push("Social Issues");break;case"Dished":a.push("Food & Drink");break;case"Listed":a.push("Performing Arts");break;case"Urbanized":a.push("Home & Garden");break;case"Venture":a.push("Technology");break;case"Offside":a.push("Sports");break;case"Mapped":a.push("Travel & Leisure Activities");break;case"Grow":a.push("Education & Learning","Travel & Leisure Activities","Health & Medical");break;case"Curated":a.push("Social Media","Music & Audio","Home & Garden")}return a}cardTitle(){return this.title_two||this.title}cardImage(){return this.featured_image_thumbnail&&this.featured_image_thumbnail.replace("http:","https:")||this.featured_image&&this.featured_image.replace("http:","https:")||this.getCardLogo.placeholderx1}cardContent(){return this.excerpt}cardAuthor(){return!!this.authors&&!!this.authors[0]&&!!this.authors[0].display_name&&{display_name:this.authors[0].display_name,url_name:this.authors[0].display_name.toLowerCase().split(" ").join("_")}}cardImageCaption(){return this.featured_image_caption||this.title}articleDate(){let e=n()(this.created_at),t=n()().diff(this.created_at,"minutes");return{fromNow:t<60?"1 hour ago":t<720?"".concat(Math.ceil(t/60)," hours ago"):t<1440?"1 day ago":e.format("MMM D[,] YYYY"),month:e.format("MMM"),day:e.format("D"),year:e.format("YYYY"),time:e.format("h:mm a")}}cardLogo(){let e=this.getChannel,t={svg:(0,i.jsx)(s.Z,{channel:"dailyhive",solid:!0}),placeholderx1:"".concat(m,"/static/pictures/nav/channels/news-nav.jpg"),placeholderx2:"".concat(m,"/static/pictures/nav/channels/news-nav-2x.jpg"),caption:"Daily Hive"};if(this.containsTagName("whitepapers"))return t.svg=(0,i.jsx)(s.Z,{channel:"hivelabs",solid:!0}),t.caption="Hive Labs",t;switch(e&&(t.svg=(0,i.jsx)(s.Z,{channel:e,solid:!0})),e){case"news":t.placeholderx1="".concat(m,"/static/pictures/nav/channels/news-nav.jpg"),t.placeholderx2="".concat(m,"/static/pictures/nav/channels/news-nav-2x.jpg"),t.caption="Daily Hive News";break;case"grow":t.placeholderx1="".concat(m,"/static/pictures/nav/channels/grow-nav.jpg"),t.placeholderx2="".concat(m,"/static/pictures/nav/channels/grow-nav-2x.jpg"),t.caption="Grow";break;case"mapped":t.placeholderx1="".concat(m,"/static/pictures/nav/channels/mapped-nav.jpg"),t.placeholderx2="".concat(m,"/static/pictures/nav/channels/mapped-nav-2x.jpg"),t.caption="Mapped";break;case"urbanized":t.placeholderx1="".concat(m,"/static/pictures/nav/channels/urbanized-nav.jpg"),t.placeholderx2="".concat(m,"/static/pictures/nav/channels/urbanized-nav-2x.jpg"),t.caption="Urbanized";break;case"venture":t.placeholderx1="".concat(m,"/static/pictures/nav/channels/venture-nav.jpg"),t.placeholderx2="".concat(m,"/static/pictures/nav/channels/venture-nav-2x.jpg"),t.caption="Venture";break;case"dished":t.placeholderx1="".concat(m,"/static/pictures/nav/channels/dished-nav.jpg"),t.placeholderx2="".concat(m,"/static/pictures/nav/channels/dished-nav-2x.jpg"),t.caption="Dished";break;case"listed":t.placeholderx1="".concat(m,"/static/pictures/nav/channels/listed-nav.jpg"),t.placeholderx2="".concat(m,"/static/pictures/nav/channels/listed-nav-2x.jpg"),t.caption="Listed";break;case"curated":t.placeholderx1="".concat(m,"/static/pictures/nav/channels/curated-nav.jpg"),t.placeholderx2="".concat(m,"/static/pictures/nav/channels/curated-nav-2x.jpg"),t.caption="Curated";break;case"offside":t.placeholderx1="".concat(m,"/static/pictures/nav/channels/offside-nav.jpg"),t.placeholderx2="".concat(m,"/static/pictures/nav/channels/offside-nav-2x.jpg"),t.caption="Offside"}return t}articleUrls(e){let t=this.getChannel,a={cardChannelUrl:"",articleBaseUrl:""};return this.hasTag("whitepapers")?(a.articleBaseUrl="/hivelabs",a.cardChannelUrl="/hivelabs"):"grow"===t?(a.articleBaseUrl="/grow",a.cardChannelUrl="/grow"):"mapped"===t?(a.articleBaseUrl="/mapped",a.cardChannelUrl="/mapped"):"canada"===t?(a.articleBaseUrl="/canada",a.cardChannelUrl="/canada"):"dailyhive"===t?e?(a.articleBaseUrl="/".concat(e),a.cardChannelUrl="/".concat(e,"/curated")):this.getParentLocations&&this.getParentLocations[0]&&this.getParentLocations[0].slug?(a.articleBaseUrl="/".concat(this.getParentLocations[0].slug),a.cardChannelUrl="/".concat(this.getParentLocations[0].slug)):(a.articleBaseUrl="/vancouver",a.cardChannelUrl="/vancouver/curated"):e&&t?(a.articleBaseUrl="/".concat(e),a.cardChannelUrl="/".concat(e,"/").concat(t)):!e&&this.getParentLocations&&this.getParentLocations[0]&&this.getParentLocations[0].slug?(a.articleBaseUrl="/".concat(this.getParentLocations[0].slug),a.cardChannelUrl="/".concat(this.getParentLocations[0].slug,"/").concat(t)):e?(a.articleBaseUrl="/".concat(e),a.cardChannelUrl="/".concat(e,"/curated")):(a.articleBaseUrl="/vancouver",a.cardChannelUrl="/vancouver/curated"),a}analyzeFullUrl(){var e=/.+?\:\/\/.+?(\/.+?)?(?:#|\?|)?$/.exec(this.momentlyFullUrl)[1].split("/");let t=e[1],a=e[e.length-1];this.grow_channel="grow"===t,this.mapped_channel="mapped"===t,this.canada_channel="canada"===t,this.locations=[{parent_id:0,wp_location_id:0,slug:t}],this.slug=a}analyzeSections(){this.categories=[this.momentlySections].map((e,t)=>({wp_category_id:t,parent_id:0,slug:e.toLowerCase(),name:e}))}analyzeAuthors(){let e=this.momentlyAuthors.split(",");this.authors=e.map(e=>({display_name:e}))}tagsString(){let e=this.tags&&this.tags.length>0&&this.tags.map(e=>e.name);return e&&e.join(", ")||""}
1video(){return!!this.featured_video_type&&("youtube.com"===this.featured_video_type||"youtu.be"===this.featured_video_type?(0,i.jsx)("iframe",{className:"push-down-30",width:"100%",height:"500",src:"https://www.youtube.com/embed/".concat(this.featured_video.substring(this.featured_video.lastIndexOf("/")+1)),frameBorder:"0",allowFullScreen:!0}):"vimeo.com"===this.featured_video_type?(0,i.jsx)("iframe",{src:"https://player.vimeo.com/video/".concat(this.featured_video,"?title=0&byline=0&portrait=0"),width:"100%",height:"500",frameBorder:"0",webkitallowfullscreen:!0,mozallowfullscreen:!0,allowFullScreen:!0}):void 0)}locationSchema(){let e=this.parentLocations();if(e){let t=e.map(e=>e.slug);return this.grow_channel&&t.push("grow"),this.mapped_channel&&t.push("mapped"),t}}commentsAreDisabled(){return this.customFields&&this.customFields.disable_comments_on_post||!1}adsAreDisabled(){return this.customFields&&this.customFields.disable_ads_on_post||!1}createdAtUTC(){if(this.updated_at){let e=n()(this.updated_at).utc(!1).format("YYYY-MM-DD[T]HH:mm:ss[Z]");return n().tz(e,"YYYY-MM-DD[T]HH:mm:ss[Z]","UTC").utc().format("YYYY-MM-DD[T]HH:mm:ssZ")}if(!this.created_at)return"";{let e=n()(this.created_at).utc(!1).format("YYYY-MM-DD[T]HH:mm:ss[Z]");return n().tz(e,"YYYY-MM-DD[T]HH:mm:ss[Z]","UTC").utc().format("YYYY-MM-DD[T]HH:mm:ssZ")}}getFeaturedImageSrcSet(){return"".concat(this.getFeaturedImage," 1024w, ").concat(this.getFeaturedImageThumbnail," 550w")}getFeaturedImageSizes(){return"(max-width: 768px) 50vw, 100vw"}needsAgeGate(){var e;return!!(null===(e=this.customFields)||void 0===e?void 0:e.forceAgeGate)}constructor(e){var t,a,i;this.wp_post_id=e.wp_post_id,this.id=e.id,this.content=e.content,this.slug=e.slug,this.title=e.title,this.title_two=e.title_two,this.excerpt=e.excerpt,this.created_at=e.created_at,this.updated_at=e.updated_at,this.featured_image=e.featured_image,this.featured_image_thumbnail=e.featured_image_thumbnail,this.featured_image_caption=e.featured_image_caption,this.featured_image_url=e.featured_image_url,this.featured_video=e.featured_video,this.featured_video_type=e.featured_video_type,this.grow_channel=e.grow_channel,this.mapped_channel=e.mapped_channel,this.canada_channel=e.canada_channel,this.status=e.status,this.authors=e.authors,this.categories=e.categories,this.tags=e.tags,this.locations=e.locations,this.meta_title=e.meta_title,this.meta_description=e.meta_description,this.fb_meta_title=e.fb_meta_title,this.fb_meta_description=e.fb_meta_description,this.fb_meta_image=e.fb_meta_image,this.tw_meta_title=e.tw_meta_title,this.tw_meta_description=e.tw_meta_description,this.tw_meta_image=e.tw_meta_image,this.featured_image_filesize=e.featured_image_filesize,this.primary_category=null==e?void 0:null===(t=e.custom_fields)||void 0===t?void 0:t.primary_category,this.canonicalUrl=null==e?void 0:null===(a=e.custom_fields)||void 0===a?void 0:a.canonical,this.blurDataURL=null==e?void 0:null===(i=e.custom_fields)||void 0===i?void 0:i.placeholder,this.momentlyFullUrl=e.momentlyFullUrl,this.momentlyTags=e.momentlyTags,this.momentlySections=e.momentlySections,this.momentlyAuthors=e.momentlyAuthors,this.customFields=e.custom_fields,this.isPinned=!!(null==e?void 0:e._is_pinned),this.momentlyFullUrl&&this.analyzeFullUrl(),this.momentlySections&&this.analyzeSections(),this.momentlyAuthors&&this.analyzeAuthors()}}}}]);

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.