%PDF- %PDF-
Direktori : /var/www/html/.next/server/chunks/ |
Current File : /var/www/html/.next/server/chunks/24.js |
"use strict"; exports.id = 24; exports.ids = [24]; exports.modules = { /***/ 5024: /***/ ((module, __webpack_exports__, __webpack_require__) => { __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__) /* 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 react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__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 _Icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8777); /* harmony import */ var html_react_parser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2905); /* harmony import */ var _store_context_GlobalContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9592); var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([html_react_parser__WEBPACK_IMPORTED_MODULE_4__, _store_context_GlobalContext__WEBPACK_IMPORTED_MODULE_5__]); ([html_react_parser__WEBPACK_IMPORTED_MODULE_4__, _store_context_GlobalContext__WEBPACK_IMPORTED_MODULE_5__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__); function Footer() { const { 0: legalModal , 1: setLegalModal } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false); const { footer } = (0,_store_context_GlobalContext__WEBPACK_IMPORTED_MODULE_5__/* .useGlobalContext */ .b)(); const hideScroll = ()=>{ let html = document.querySelector("html"); html.classList.add("overflowHidden"); }; const showScroll = ()=>{ let html = document.querySelector("html"); html.classList.remove("overflowHidden"); }; return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "mainContact", children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "footer", style: { padding: "2rem 16.2rem" }, children: [ /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { href: "https://digitalpresent.io/", target: "_blank", rel: "noopener noreferrer", "aria-label": "developed by Digital Present", className: "developed", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { className: "developed__p", children: "Developed by" }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Icons__WEBPACK_IMPORTED_MODULE_3__/* .DPLogo */ .V7, { color: "#fff" }) ] }), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("p", { children: [ "Copyright ", new Date().getFullYear(), " ATV. All rights reserved." ] }), footer?.footer?.slice(0, 1).map((links, index)=>/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "legal", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { onClick: ()=>{ setLegalModal(true); hideScroll(); }, children: links?.title }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "legal-modal", style: { display: legalModal ? "flex" : "none" }, children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "legal-modal-content", children: [ /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { onClick: (e)=>{ setLegalModal(false); showScroll(); }, children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Icons__WEBPACK_IMPORTED_MODULE_3__/* .CloseIcon */ .Tw, {}) }), /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { children: (0,html_react_parser__WEBPACK_IMPORTED_MODULE_4__["default"])(footer?.legal) }) ] }) }) ] }, index)), footer?.footer?.slice(1).map((links, index)=>/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { className: "terms", children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_link__WEBPACK_IMPORTED_MODULE_2___default()), { href: `/${links.slug}`, passHref: true, children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { children: links.title }) }) }, index)), /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "icons", children: [ `${footer?.socials?.tw}` ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { href: `${footer?.socials?.tw}`, children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Icons__WEBPACK_IMPORTED_MODULE_3__/* .TwitterIcon */ .Zm, {}) }) : "", `${footer?.socials?.in}` ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { href: `${footer?.socials?.in}`, children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Icons__WEBPACK_IMPORTED_MODULE_3__/* .InstaIcon */ .kd, {}) }) : "", `${footer?.socials?.fb}` ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { href: `${footer?.socials?.fb}`, children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_Icons__WEBPACK_IMPORTED_MODULE_3__/* .FbIcon */ .BM, {}) }) : "" ] }) ] }) }); } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Footer); __webpack_async_result__(); } catch(e) { __webpack_async_result__(e); } }); /***/ }) }; ;