"use strict";
exports.id = 779;
exports.ids = [779];
exports.modules = {

/***/ 180:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Z": () => (/* binding */ JsonLd)
/* harmony export */ });
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);

function JsonLd({ data  }) {
    if (!data) {
        return null;
    }
    return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", {
        type: "application/ld+json",
        dangerouslySetInnerHTML: {
            __html: JSON.stringify(data)
        }
    });
}


/***/ }),

/***/ 4216:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Bj": () => (/* binding */ buildAuthorProfileSchema),
/* harmony export */   "Xc": () => (/* binding */ buildNewsArticleSchema),
/* harmony export */   "dl": () => (/* binding */ buildBreadcrumbSchema),
/* harmony export */   "tr": () => (/* binding */ buildHomePageSchema)
/* harmony export */ });
/* unused harmony export buildPublisherOrganization */
const publisherLogo = ()=>`${"https://trsondakika.com"}/static/trsondakika.png`;
function buildPublisherOrganization() {
    return {
        "@type": "Organization",
        name: "trsondakika",
        url: "https://trsondakika.com",
        logo: {
            "@type": "ImageObject",
            url: publisherLogo()
        }
    };
}
function buildNewsArticleSchema(item, pageUrl) {
    if (!item?.title) {
        return null;
    }
    const imageUrl = item.image ? `${"https://trsondakika-front.s3.amazonaws.com"}/${item.image}` : publisherLogo();
    const schema = {
        "@context": "https://schema.org",
        "@type": "NewsArticle",
        headline: item.title,
        description: item.description || item.spot || undefined,
        image: [
            imageUrl
        ],
        datePublished: item.published_at ? new Date(item.published_at).toISOString() : undefined,
        dateModified: item.updated_at ? new Date(item.updated_at).toISOString() : undefined,
        author: item.authorName ? {
            "@type": "Person",
            name: item.authorName,
            ...item.authorSlug && {
                url: `${"https://trsondakika.com"}/author/${item.authorSlug}`
            }
        } : undefined,
        publisher: buildPublisherOrganization(),
        mainEntityOfPage: {
            "@type": "WebPage",
            "@id": pageUrl
        }
    };
    if (item.category?.[0]?.title) {
        schema.articleSection = item.category[0].title;
    }
    return schema;
}
function buildHomePageSchema() {
    const organization = buildPublisherOrganization();
    return {
        "@context": "https://schema.org",
        "@graph": [
            organization,
            {
                "@type": "WebSite",
                name: "TRSondakika - Dünyadan Son Dakika Haberler, Spor, Dünya, Politika, Sağlık, Forex, Kripto, Ekonomi, Emlak",
                url: "https://trsondakika.com",
                description: "Haberler, son dakika haber, en güncel gelişmeler, magazin, ekonomi, spor, gündem ve tüm önemli Sıcak haberleri Trsondakika.com dan takip edin",
                publisher: organization,
                inLanguage: "tr-TR"
            }
        ]
    };
}
function buildBreadcrumbSchema(items) {
    if (!items?.length) {
        return null;
    }
    return {
        "@context": "https://schema.org",
        "@type": "BreadcrumbList",
        itemListElement: items.map((item, index)=>({
                "@type": "ListItem",
                position: index + 1,
                name: item.name,
                item: item.url
            }))
    };
}
function buildAuthorProfileSchema(authorData) {
    const user = authorData?.user;
    if (!user?.username) {
        return null;
    }
    const profileUrl = `${"https://trsondakika.com"}/author/${user.username}`;
    return {
        "@context": "https://schema.org",
        "@type": "ProfilePage",
        mainEntity: {
            "@type": "Person",
            name: user.name || user.username,
            description: user.about || undefined,
            url: profileUrl
        },
        url: profileUrl
    };
}


/***/ })

};
;