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AAO,SAAUC,GACnB,IAKI/F,EALAO,EAAOqF,EAAMrF,KACfL,EAAO0F,EAAM1F,KACb8B,EAAQ4D,EAAM5D,MACdgE,EAAWd,EAAOU,EAAO,CAAC,OAAQ,OAAQ,UACxCK,EAAe/F,GAAQ6F,EAAK7F,MAAQ,MAIxC,OAFI6F,EAAK/F,YAAWA,EAAY+F,EAAK/F,WACjC4F,EAAM5F,YAAWA,GAAaA,EAAYA,EAAY,IAAM,IAAM4F,EAAM5F,WACrE,gBAAoB,MAAOwE,EAAS,CACzC0B,OAAQ,eACRC,KAAM,eACNC,YAAa,KACZL,EAAKxF,KAAMA,EAAMyF,EAAU,CAC5BhG,UAAWA,EACX+C,MAAOyB,EAASA,EAAS,CACvBf,MAAOmC,EAAMnC,OAASsC,EAAKtC,OAC1BsC,EAAKhD,OAAQ6C,EAAM7C,OACtBF,OAAQoD,EACRrD,MAAOqD,EACPI,MAAO,+BACLrE,GAAS,gBAAoB,QAAS,KAAMA,GAAQ4D,EAAMU,SAChE,EACA,YAAuBvE,IAAhBwC,EAA4B,gBAAoBA,EAAYgC,SAAU,MAAM,SAAUR,GAC3F,OAAOD,EAAKC,EACd,IAAKD,EAAKxB,EACZ","sources":["webpack://_N_E/./common/commonStyled.js","webpack://_N_E/./node_modules/js-cookie/dist/js.cookie.mjs","webpack://_N_E/./components/BannerAdd/index.js","webpack://_N_E/./components/BannerAdd/utils.js","webpack://_N_E/./components/common/breadcrum/useRouter.js","webpack://_N_E/./components/common/breadcrum/index.js","webpack://_N_E/./components/destination-list/style.js","webpack://_N_E/./components/destination-list/tailwindClasses.js","webpack://_N_E/./components/destination-list/index.js","webpack://_N_E/./utils/common.js","webpack://_N_E/./node_modules/react-icons/lib/esm/iconsManifest.js","webpack://_N_E/./node_modules/react-icons/lib/esm/iconContext.js","webpack://_N_E/./node_modules/react-icons/lib/esm/iconBase.js"],"sourcesContent":["import styled from \"styled-components\";\n\nexport const Gwrap = styled.div`\n background-image: linear-gradient(#c6e7f8, #67b6cb);\n .main-wrapper {\n @media (min-width: 670px) and (max-width: 1023px) {\n max-width: 670px;\n margin: 0 auto;\n }\n }\n`;\n\nexport const GalleryWrap = styled.div`\n position: relative;\n display: flex;\n .image-gallery-content {\n * {\n max-height: 545px;\n }\n &.fullscreen {\n * {\n max-height: calc(100vh - 80px);\n }\n }\n img {\n width: 688px;\n height: auto;\n max-height: none;\n }\n }\n overflow: hidden;\n .image-gallery {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n`;\n\nexport const Add = styled.div`\n .ad-box {\n background-color: #ffffff;\n border: 1px solid #ddd;\n border-radius: 8px;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\n padding: 20px;\n max-width: 300px;\n text-align: center;\n }\n\n .ad-title {\n font-size: 24px;\n margin-bottom: 10px;\n color: #333;\n }\n\n .ad-description {\n font-size: 16px;\n margin-bottom: 10px;\n color: #666;\n }\n\n .ad-message {\n font-size: 14px;\n margin-bottom: 20px;\n color: #bb1302;\n font-weight: bold;\n }\n\n .ad-contact a {\n color: #58a4ae;\n text-decoration: none;\n font-size: 16px;\n }\n\n .ad-contact a:hover {\n text-decoration: underline;\n }\n`;\n","/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (name, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n name = encodeURIComponent(name)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n name + '=' + converter.write(value, name) + stringifiedAttributes)\n }\n\n function get (name) {\n if (typeof document === 'undefined' || (arguments.length && !name)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n\n if (name === found) {\n break\n }\n } catch (e) {}\n }\n\n return name ? jar[name] : jar\n }\n\n return Object.create(\n {\n set,\n get,\n remove: function (name, attributes) {\n set(\n name,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n","// components/AdvertisementBanner.js\n\nimport { useEffect, useState } from \"react\";\nimport { BsInfoCircleFill } from \"react-icons/bs\";\nimport { FaMobileAlt } from \"react-icons/fa\";\nimport { MdLocationPin } from \"react-icons/md\";\nimport { RxCross1 } from \"react-icons/rx\";\nimport { canShowAdvertisement, updateVisitCount } from \"./utils\";\n\nconst data = {\n hotelName: \"Silver nest\",\n img: \"https://placehold.co/600x200\",\n contact_1: \"\",\n contact_2: \"\",\n offers_tex:\n \"Get the best service with world-class experince at The Leela Palace New Delhi\",\n hotelAddress: \"Leela palace New Delhi\",\n amenities: [\n \"swimming pool\",\n \"Free WiFi\",\n \"Fitness centre\",\n \"Free parking\",\n \"Spa and wellness centre\",\n \"restaurants\",\n \"Bar\",\n ],\n attraction: [\n {\n name: \"Minar\",\n distance: \"2km\",\n },\n {\n name: \"Mandir\",\n distance: \"0.5km\",\n },\n ],\n};\nconst AdvertisementBanner = ({ citySlug }) => {\n const [showBanner, setShowBanner] = useState(false);\n\n useEffect(() => {\n const visitCount = updateVisitCount(citySlug);\n\n if (\n visitCount === 1 ||\n visitCount === 2 ||\n canShowAdvertisement(citySlug)\n ) {\n setShowBanner(true);\n } else {\n setShowBanner(false);\n }\n }, [citySlug]);\n useEffect(() => {\n if (showBanner) {\n window.document.body.classList.remove(\"pb-[280px]\");\n } else {\n window.document.body.classList.add(\"pb-[240px]\");\n }\n }, [showBanner]);\n return (\n
\n {item?.image_title}\n
\n