"use strict";
(() => {
var exports = {};
exports.id = 964;
exports.ids = [964];
exports.modules = {

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "getServerSideProps": () => (/* binding */ getServerSideProps)
/* 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__);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(968);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1664);
/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(765);
/* harmony import */ var _public_img_namaz_bg_png__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8442);





function index({ cities , url  }) {
    if (!cities) {
        return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {});
    }
    var currentTime = new Date();
    var month = currentTime.getMonth() + 1;
    var day = currentTime.getDate();
    const year = currentTime.getFullYear();
    return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
        children: [
            /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((next_head__WEBPACK_IMPORTED_MODULE_1___default()), {
                children: [
                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", {
                        children: "Namaz Vakitleri - G\xfcncel Ezan Saatleri ve Diyanet Namaz Vakti"
                    }),
                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", {
                        name: "description",
                        content: "Namaz Vakitleri - G\xfcncel Ezan Saatleri ve Diyanet Namaz Vakti"
                    }),
                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("link", {
                        rel: "canonical",
                        href: `${"https://trsondakika.com"}/namaz-vakitleri`
                    })
                ]
            }),
            /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                className: "container flex flex-col lg:flex-row md:mx-auto gap-4 mt-2 px-4 md:px-0 ",
                children: [
                    /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                        className: `lg:w-3/4  bg-white p-4 rounded shadow-md`,
                        children: [
                            /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("h1", {
                                className: "text-lg font-bold pb-2 mb-2 border-b-2 border-slate-200",
                                children: [
                                    "Namaz Vakitleri ",
                                    /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
                                        children: [
                                            "(",
                                            `${day}.${month}.${year}`,
                                            ")"
                                        ]
                                    })
                                ]
                            }),
                            /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
                                className: "p-4 my-4 gird gap-4 flex justify-center items-center",
                                style: {
                                    backgroundImage: `url(${_public_img_namaz_bg_png__WEBPACK_IMPORTED_MODULE_4__/* ["default"].src */ .Z.src})`,
                                    backgroundRepeat: "no-repeat",
                                    backgroundSize: "cover"
                                },
                                children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("select", {
                                    onChange: (e)=>{
                                        if (e.target.value != 0) {
                                            window.location.href = `/namaz-vakitleri/${e.target.value}`;
                                        }
                                    },
                                    className: "w-60 h-11 p-1",
                                    children: [
                                        /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", {
                                            value: 0,
                                            children: "Şehir Se\xe7iniz"
                                        }),
                                        cities.map((item, index)=>/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", {
                                                value: item,
                                                children: item
                                            }, index))
                                    ]
                                })
                            }),
                            /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                                className: " gap-4 grid lg:grid-cols-2 ",
                                children: [
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "İstanbul",
                                        city: "İstanbul",
                                        date: `${year}-${month}-${day}`
                                    }, "İstanbul"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Edirne",
                                        city: "Edirne",
                                        date: `${year}-${month}-${day}`
                                    }, "Edirne"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "İzmir",
                                        city: "İzmir",
                                        date: `${year}-${month}-${day}`
                                    }, "İzmir"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Afyonkarahisar",
                                        city: "Afyonkarahisar",
                                        date: `${year}-${month}-${day}`
                                    }, "Afyonkarahisar"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Antalya",
                                        city: "Antalya",
                                        date: `${year}-${month}-${day}`
                                    }, "Antalya"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Kilis",
                                        city: "Kilis",
                                        date: `${year}-${month}-${day}`
                                    }, "Kilis"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Ankara",
                                        city: "Ankara",
                                        date: `${year}-${month}-${day}`
                                    }, "Ankara"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Sivas",
                                        city: "Sivas",
                                        date: `${year}-${month}-${day}`
                                    }, "Sivas"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Sinop",
                                        city: "Sinop",
                                        date: `${year}-${month}-${day}`
                                    }, "Sinop"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Artvin",
                                        city: "Artvin",
                                        date: `${year}-${month}-${day}`
                                    }, "Artvin"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Malatya",
                                        city: "Malatya",
                                        date: `${year}-${month}-${day}`
                                    }, "Malatya"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Van",
                                        city: "Van",
                                        date: `${year}-${month}-${day}`
                                    }, "Van"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Gaziantep",
                                        city: "Gaziantep",
                                        date: `${year}-${month}-${day}`
                                    }, "Gaziantep"),
                                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_namaz_vakitleri_CityMiniCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
                                        timeStatus: false,
                                        region: "Diyarbakır",
                                        city: "Diyarbakır",
                                        date: `${year}-${month}-${day}`
                                    }, "Diyarbakır")
                                ]
                            })
                        ]
                    }),
                    /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
                        className: "lg:w-1/4 p-0 ",
                        children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
                            className: "bg-white rounded p-4 shadow-md sticky top-3 flex flex-col",
                            children: [
                                /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
                                    className: "text-lg font-bold pb-2 mb-2 border-b-2 border-slate-200 flex",
                                    children: "Şehir Se\xe7iniz"
                                }),
                                cities.map((item, index)=>/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((next_link__WEBPACK_IMPORTED_MODULE_2___default()), {
                                        className: "bg-slate-100 p-2 border-b-2 mb-2 hover:bg-slate-50",
                                        href: `/namaz-vakitleri/${item}`,
                                        children: [
                                            /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
                                                children: item
                                            }),
                                            " Namaz Vakitleri"
                                        ]
                                    }, index))
                            ]
                        })
                    })
                ]
            })
        ]
    });
}
async function getServerSideProps(context) {
    // console.log("context", context.params.url);
    const { params , query  } = context;
    let options = {
        method: "GET",
        headers: {
            "Content-Type": "application/json;charset=utf-8"
        }
    };
    try {
        const request = await fetch(`https://namaz-vakti.vercel.app/api/regions?country=Turkey`, {
            options
        });
        const response = await request.json();
        return {
            props: {
                cities: response
            }
        };
    } catch (err) {
        return {
            notFound: true
        };
    }
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (index);


/***/ }),

/***/ 2245:
/***/ ((module) => {

module.exports = require("moment");

/***/ }),

/***/ 3280:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/app-router-context.js");

/***/ }),

/***/ 2796:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/head-manager-context.js");

/***/ }),

/***/ 4014:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");

/***/ }),

/***/ 8524:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/is-plain-object.js");

/***/ }),

/***/ 8020:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/mitt.js");

/***/ }),

/***/ 4406:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");

/***/ }),

/***/ 4964:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router-context.js");

/***/ }),

/***/ 1751:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");

/***/ }),

/***/ 6220:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");

/***/ }),

/***/ 299:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");

/***/ }),

/***/ 3938:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/format-url.js");

/***/ }),

/***/ 9565:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");

/***/ }),

/***/ 5789:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");

/***/ }),

/***/ 1897:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");

/***/ }),

/***/ 1428:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");

/***/ }),

/***/ 8854:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");

/***/ }),

/***/ 1292:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");

/***/ }),

/***/ 4567:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");

/***/ }),

/***/ 979:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/querystring.js");

/***/ }),

/***/ 3297:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");

/***/ }),

/***/ 6052:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");

/***/ }),

/***/ 4226:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");

/***/ }),

/***/ 5052:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");

/***/ }),

/***/ 9232:
/***/ ((module) => {

module.exports = require("next/dist/shared/lib/utils.js");

/***/ }),

/***/ 968:
/***/ ((module) => {

module.exports = require("next/head");

/***/ }),

/***/ 1853:
/***/ ((module) => {

module.exports = require("next/router");

/***/ }),

/***/ 6689:
/***/ ((module) => {

module.exports = require("react");

/***/ }),

/***/ 6405:
/***/ ((module) => {

module.exports = require("react-dom");

/***/ }),

/***/ 997:
/***/ ((module) => {

module.exports = require("react/jsx-runtime");

/***/ })

};
;

// load runtime
var __webpack_require__ = require("../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [398,505,664,656], () => (__webpack_exec__(8235)));
module.exports = __webpack_exports__;

})();