UNPKG

@react-map/qatar

Version:

Beautiful, easy to use and interactive svg map component of Qatar for React

417 lines (410 loc) 32.6 kB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.ts var src_exports = {}; __export(src_exports, { default: () => src_default }); module.exports = __toCommonJS(src_exports); // src/Qatar.tsx var import_react2 = __toESM(require("react")); // src/constants.ts var constants = { WIDTH: 500, MAPCOLOR: "#ffffff", STROKE_COLOR: "#000000", STROKE_WIDTH: 0.5, HOVERCOLOR: "#303030", SELECTED_COLOR: "#ff0000" }; var stateCode = ["Ad Daw\u1E29ah", "Al Khawr wa adh Dhakh\u012Brah", "Ash Sham\u0101l", "Ar Rayy\u0101n", "Umm \u015Eal\u0101l", "Al Wakrah", "Az\u0327 Za\u0327`\u0101yin"]; var drawPath = { "Ad Daw\u1E29ah": "M232.42,361.13l-12.7,5.16l0,0l-10.85,-17.7l11.62,-7.36L232.42,361.13zM275.59,338.93h0.09l0,0H275.59zM238.27,337.72l-1.38,1.44l-4.31,-6.52l1.92,-1.1L238.27,337.72zM289.43,315.9l0.9,0.79v0.99l-0.54,0.49h-0.54l0.81,-0.69l-0.45,-0.89l-1.71,-0.1L289.43,315.9zM268.85,297.71l1.26,0.59l-0.09,3.96l-2.61,-1.58l-2.52,-0.59l0.9,-1.78l1.53,0.69L268.85,297.71zM262.65,275.16l0.18,0.79l3.33,1.39l0.72,0.79l0.18,1.48h-1.98L264,280.6l-0.09,-1.98l-1.08,-0.59l-0.18,-1.29l-0.72,-0.59L262.65,275.16zM275.59,338.93l-10.34,0.88l-8.87,2.87l0,0l-0.32,-1.54l-2.01,-0.38l-5.19,-2.75l-8.08,-5.82l-3.27,-1.8l3.95,-3.07l-6.93,-9.05l-2.02,-10.48l-1.72,-4.84l-4.35,-8.81l0,0l-0.49,-2.05l0,0l15.33,-10.03l-2.28,-6.24l-4.25,-20.45h11.84l0,0l0.54,2.95l6.02,4.65l0.99,0.3l0.63,-0.59l1.08,0.3l1.35,-0.89l-0.27,1.19l-0.81,0.1l0.45,1.29l-0.63,-0.4l-0.81,0.3l-5.03,-3.86l-2.16,-0.4l0.99,1.19l0.54,2.28l0.99,0.4l0.36,0.69l0.54,-0.1l-0.27,2.08l-0.54,0.4v0.5l0.54,0.2l0.09,1.39l-0.63,1.98l-0.18,-0.4l-0.72,0.1l-0.18,0.69l0.36,2.08l0.81,2.18l0.45,0.1l-0.45,3.86l0.81,2.47l-0.18,1.38l1.17,2.47l2.97,-0.69l0.27,0.3l-2.16,1.98l-0.09,0.69l-1.62,0.4l-0.27,1.58l1.35,1.39l-0.09,0.79l-2.43,-0.89l-0.18,1.09l-0.72,0.3l0.27,0.99l0.9,0.2l0.09,0.99l-0.99,0.5l-0.09,0.49l1.62,0.5l0.36,0.59v-0.99h1.26l0.18,0.79l-0.72,2.27l-2.07,1.88l-0.18,1.88l0.63,0.99l0.81,0.3l3.14,-0.4l1.71,2.57l-0.09,0.69h-0.9v2.08l-2.34,0.59l-1.89,-0.1l-1.71,1.48l-0.36,1.78l-0.45,0.3l-0.09,1.98l1.35,1.68l1.62,0.89l1.8,0.49l0.72,-1.28l0.36,0.4l-0.18,0.89l0.9,0.3l0.18,-1.38l2.25,-0.4l-0.54,-1.19l0.36,-0.59l0.54,0.1l0.36,0.89l0.81,-0.3l-0.18,-2.08l2.79,-1.28l0.99,2.17l-1.08,0.49l-0.81,-1.68l-1.17,0.49l1.35,3.16l-0.27,0.59l-0.54,-0.1l-0.45,-0.99l-0.36,0.49h-0.99v0.69l0.72,-0.2l-0.63,0.59l0.18,0.89l0.63,0.49l1.26,-0.1l0.09,0.79l0.81,0.4l0.99,-0.49l-0.81,-0.2l-0.09,-0.49l0.99,-0.3l0.54,0.5l0.54,-1.19l1.35,-0.89l-0.09,-0.79l1.8,1.09l0.99,-0.1v-2.08l0.36,-0.2l1.17,0.79l-0.54,2.07l0.18,1.78l0.99,0.1l0.09,0.89l0.9,0.3l1.17,-0.59l0.63,0.2l2.7,-3.16l0.9,-2.37l1.89,-0.59l0.9,2.47l0.72,0.69l0.27,1.68l2.61,6.62l1.08,1.28l0.09,1.58l-5.75,-14.03l-1.53,0.4l-0.72,1.98l-2.52,3.36l2.52,-1.58l1.17,1.19l-0.45,0.59l1.8,2.37l-0.54,1.48l0.45,2.47l-0.63,0.59l-0.36,2.27l3.77,0.4l2.16,0.99l0.72,-0.4l0.09,0.4l-0.81,0.3l-2.16,-0.99l-3.95,-0.39l0.09,2.27h-1.08l-1.17,0.89l0.81,0.69l-0.18,0.69l-0.81,0.2L275.59,338.93z", "Al Khawr wa adh Dhakh\u012Brah": "M266.96,152.59l-0.18,1.39h-0.63l0.09,-0.99L266.96,152.59zM266.61,150.81l-0.45,1.59l-0.36,-1.19L266.61,150.81zM272.99,150.31l0.54,0.4l-2.16,1.89l-1.98,0.89l0.17,-0.88l1.27,-0.01l1.35,-2.08L272.99,150.31zM214.22,80.09l0,-0.1l0,0L214.22,80.09zM214.22,80.09l2.34,1.69l5.03,2.09l0.09,0.4l1.35,-0.2l0.36,0.5l2.88,0.1l0.99,-1.09l0.99,0.3l0.99,-0.5l-0.09,-1.69l0.72,1.59l-1.53,0.99l10.15,-1.99l0.36,-2.58v2.68l2.61,-0.2l0.27,0.4l5.3,1.09l3.15,2.09l3.95,4.27l3.15,1.79l1.08,-0.2l3.95,1.69l3.95,2.38l0.9,-0.3l8,-7.45l1.08,0.1l6.29,2.88v0.4h-0.45l-5.3,-2.48l-1.53,-0.3l-3.23,2.98l-0.18,0.99l4.22,-1.39l1.17,1.89l-1.44,0.5l-0.54,-0.9l-1.08,0.3l-0.63,-0.4l-1.53,0.89l-3.68,3.18v0.6l0.63,0.4l-0.27,1.59l1.35,-0.2l9.44,-4.97l-0.54,-1.29l0.81,1.09l1.17,-0.6l0.18,-0.69l0.09,0.8l-11.14,5.96l-1.98,0.2l-0.81,0.6l0.18,1.89l-0.36,0.2l-0.45,3.58l0.27,4.07l0.9,0.99l0.36,3.97h0.81l-0.36,1.99l0.81,0.3l0.45,1.39h1.8l-1.71,0.3l0.81,2.88l-0.09,1.29l0.45,0.6l0.18,7.35l0.81,2.38h0.36l1.8,3.77v2.09l-0.81,1.09l-0.45,3.18l0.54,0.3v0.89l-1.08,1.49l0.72,1.29l-0.09,1.09l-1.8,1.89l-0.36,1.59l-1.44,0.2l-0.45,1.59l-1.17,0.6l-0.78,-0.97l1.23,-2.01l-0.99,0.1l-0.18,0.7l-0.27,-0.99l0.81,-1.09l-0.27,-1.49l0.54,-0.79l-1.62,-1.49h-1.26l0.9,0.99l-2.61,4.17l-0.27,3.37l-1.89,3.67l-2.16,0.1l-1.35,-1.49l-2.52,-1.19l0.18,2.18l0.63,0.89l1.26,-0.69l1.35,0.99l0.81,1.79l2.61,1.09l0.27,0.6l0.72,-0.3l1.89,0.69l0.27,0.69l0.09,-1.98l0.81,-1.09h1.08l0.18,-1.49h1.08v0.7l0.63,0.6l1.71,0.79l-0.72,1.19l2.88,2.78l0.18,1.39l-0.63,0.99l0.18,2.08l-0.54,-0.1l-1.26,1.89v0.79l0.72,0.6l-1.89,0.59l-0.72,0.89l0.09,1.19l1.26,0.1l-1.08,0.2l-0.18,0.79l1.35,-0.2l-1.17,0.79v2.38l-0.36,0.79l-1.53,0.59l0.27,1.29l-1.71,-1.39l-0.63,0.4l-0.63,-1.09l-1.17,-0.5l-5.48,0.5l-0.63,-2.38l0.81,-0.3l0.72,0.6l0.36,-0.2l-0.81,-1.39l-0.63,-1.29l0.27,-0.4l1.62,0.4l0.09,-0.4l-1.26,-2.08l-1.62,-0.69l0.09,-0.69l-0.9,0.5l-1.44,-0.2l-1.35,0.99l-0.72,-0.1l-2.06,1.29l-0.9,0.1l-1.08,1.09l-0.63,-0.89h-0.72l-2.6,1.39l-0.36,0.6l1.35,1.59l1.62,0.1l0.72,-0.69l0.27,1.19l3.15,-0.1l0.27,1.78l0.81,-1.39l3.23,0.2l-0.54,2.58l-1.35,0.2l-0.63,1.29l0.27,1.19l1.26,0.7l-0.18,1.79l0.81,0.1l0.54,-0.59l1.71,0.2v0.99l1.44,-0.59l0.27,0.69l1.26,0.2l-0.09,1.39l-1.17,1.49l0.54,4.76l-1.62,1.49l0.36,1.19l0,0l-7.65,-2.87l-10.16,-0.51l-11.43,-5.6l-4.27,2.55l-2.66,0.64l-7.16,7.13l-2.31,0.64l-1.96,-0.13l3.93,20.5l0,0l-30.94,1.78l-17.13,-10.16l0,0l-7.39,-12.22l4.86,-15.55l0.71,-10.5l-0.27,-2.46l4.8,-5.32l-51.19,-0.02v-20.4h-42.8l0,0l-0.72,-1.35l-0.63,-3.47l2.43,-0.89l1.08,-2.08l-0.36,-1.79l-1.71,-0.2l1.17,-3.18l-0.63,-1.59l0.27,-0.89l-0.9,-0.3l0.09,-1.09h-1.08l-0.27,-0.5l-1.71,0.4l-1.62,-0.2l-0.99,0.79l-0.27,-0.89l-0.63,0.1l-0.36,-1.19h-0.81l-0.63,-0.6v-1.19l-0.9,0.1l0.99,-0.6l-0.18,-2.68l1.08,-2.4l0,0h50.1V83.47h49.11l0.4,19.49l23.92,-0.08l1.63,16.51l1.58,-0.3l19.42,0.47L214.22,80.09z", "Ash Sham\u0101l": "M85.63,64.49l1.62,0.9l0.18,0.7l-0.45,0.3l-1.62,-0.3l-0.27,-1.09L85.63,64.49zM108.64,37.93l0.18,0.4l-0.54,0.5l-0.27,-0.8L108.64,37.93zM148.98,13.74l0.18,0.4l-1.08,0.2v-0.6H148.98zM161.74,9.16l2.61,1l0.36,0.6h0.45l-0.18,-0.9l0.36,0.3l1.62,-0.5l0.18,0.6l-1.17,-0.1l0.09,1l-0.54,-0.9l0.27,1.89l2.34,0.5l0.72,0.5l-0.27,0.4l1.53,0.5l0.54,1l2.79,0.5l2.16,1.19l1.35,-0.2l4.22,1.59l1.71,1.2l0.9,1.39l2.97,1.19l0.99,1.59l0.99,0.3l0.72,-0.3l0.18,1.19l1.62,1.49l1.44,0.2l1.35,1.39l2.88,1l0.63,1.59l-1.17,4.78l0.09,1.59l0.99,2.49l-0.99,1.39v1.39l2.34,0.1l0.36,0.9l-1.26,-0.7l-1.62,0.4l0.27,3.98l2.07,3.38l0.9,0.4l1.08,2.69l3.5,3.18l-0.36,0.5l-0.18,-0.5l-1.44,-0.6l-0.18,0.8l1.62,1.69l6.47,3.78l0.45,4.97l-0.54,3.08l0.72,2.39v4.97l0.72,1.19h0.99l1.88,1.39l0,0l0.01,0.1l0,0l0.15,39.46l-19.42,-0.47l-1.58,0.3l-1.63,-16.51l-23.92,0.09l-0.4,-19.49h-49.11v36.25H68.2l0,0l-0.18,-1.27l-0.81,-0.6l0.09,-0.79l2.16,-1.89l0.45,-1.09l-0.63,0.4v-0.6l0.9,-1.99l0.54,-0.3l0.54,0.3l-0.27,1.29l0.45,1.39h1.17l2.25,-1.39l0.18,-0.7l-1.35,-1.29l-0.09,-0.79l-1.71,-0.99l-0.45,-0.89l1.17,-0.5l0.18,-1.29l1.35,-0.6l-0.18,-2.28l-0.54,-0.5l1.35,0.4l1.17,-0.3l1.08,-0.99l-0.18,-0.79l0.99,-0.2l0.54,-1.49l-0.18,-1.19l0.45,-0.1l-0.54,-1.19l0.45,-0.1v-1.09l0.99,-1.09l-0.36,-2.09l0.54,-0.5l-0.63,-0.69l-0.63,-3.18l0.45,-3.38l-0.63,-1.59l0.45,-1.59l-0.27,-0.99l-1.08,-0.4l0.09,-3.18l-0.63,-0.6l-0.45,-2.09l0.9,-0.99v-2.09l0.54,0.4l0.27,-0.79l0.72,-0.2l0.36,0.99l0.9,0.7l0.81,-0.7v0.5l-1.08,0.9v0.6l1.08,1.09v1.29l-0.63,0.3l0.54,0.5l0.09,1.09l0.81,-0.2v1.09l0.54,0.89l0.63,0.1l-0.09,0.6l0.45,-0.3l0.81,0.3l-0.09,-0.99l0.63,-0.3V79.2h0.54l0.99,-1.09l0.45,0.4l1.89,-1.39l-0.45,-0.6v-1.79l0.81,-0.9l-0.36,-2.98l0.54,-0.2l1.26,0.79l1.89,-0.4l0.63,-0.79l-0.09,-0.5l-1.17,-0.6l0.54,-1.89l-0.54,-0.89l0.36,-1.49l-0.54,-0.5l1.08,-1.69l-0.36,-1.59l1.17,0.2l0.27,-0.4l0.09,-1.39l-0.81,-1.29l0.36,-0.5l-0.36,-1.19l0.72,-0.2l0.27,-1.19l-0.45,-0.7l0.81,-0.8l-0.45,-0.3l-0.27,-2.09l-1.62,-0.9l0.09,-0.4l2.25,-0.1l0.45,-0.6l1.17,-0.1l1.53,-1.19h0.72l0.18,-0.5l4.22,-0.9l2.43,-1.19l1.98,-1.69l-0.18,-1.09l1.44,-1.29l0.72,-1.49l2.07,0.2v0.8l1.26,0.8l1.98,-0.89l0.27,-1.29l0.99,-0.1l1.35,-2.39l2.07,0.3v0.7l0.9,0.9l0.18,1.49l1.26,0.3l1.35,-0.4l0.99,-1.09l1.98,-0.8l4.58,-3.08l0.63,-0.99l-0.09,-2.09l1.08,-1.49l-0.54,-1.09v-1.39l0.63,-2.39l4.04,-3.28l1.26,-0.2l0.09,-0.9l1.71,-0.5l0.9,-1.1l0.99,-0.2l0.9,-2.39h-0.99l-0.9,-1.29l0.36,-0.9l0.81,-0.2l0.54,-1.49l0.63,0.1l0.09,2.59l0.54,0.3l2.34,-0.7l3.32,0.2l1.08,-0.5l0.36,-0.9l0.72,-0.4l1.26,0.5l0.9,1.1h1.44l2.43,-1.49l0.63,-1.79l1.26,-1.49v-0.7l1.62,-0.8L161.74,9.16zM149.7,0l0.9,1.99l0.9,0.4l2.16,-0.1l4.31,-1.49l1.71,0.4l1.53,1.2l-2.43,-1.1h-1.35l-1.71,0.5l-0.36,0.5l-2.43,0.4l-1.71,1.19v1.79L150.6,4.68l0.18,-1.69l-0.9,-0.6l0.27,-0.53l-0.27,0.03l-0.45,-0.7L149.7,0z", "Ar Rayy\u0101n": "M10.42,233.88l0.27,0.69l-0.54,0.1l-0.27,-0.59L10.42,233.88zM54.81,200.79l0.45,0.79h0.63l0.18,0.6l0.9,0.3l0.18,1.29l-0.9,-0.3l-0.45,-1.09l-0.81,-0.1l-0.45,-1.09L54.81,200.79zM59.22,134.03l1.71,0.7l0.81,-0.2l0.81,1.79l0.72,0.2l0.45,-0.5l0.63,1.89l1.44,1.79l0.72,0.1l-0.18,0.79l0.63,0.1l0.54,1.19l0.45,0.1l-0.27,0.99l0.54,0.99l-0.09,1.09l-1.71,2.08v3.47l-0.81,-0.49l-0.45,0.4l0.18,0.7l0.36,-0.6l1.17,0.5l-0.18,-0.89l0.36,-0.3l1.8,0.2l1.62,-0.6l0.36,-0.69l-0.27,-1.49l1.98,0.3l1.71,-0.89l1.26,-1.33l0,0h42.8v20.4l51.19,0.02l-4.8,5.32l0.27,2.46l-0.71,10.5l-4.86,15.55l7.39,12.23l0,0l-0.05,70.06l21.95,0.54l9.12,1.02l12.59,4.32l0.02,8.21l6.78,0.1l-1,-4.54l1.06,-0.42l3.27,0.21l1.59,1.38l1.34,3.12l3,-1.71l0,0l4.35,8.81l1.72,4.84l2.02,10.48l6.93,9.05l-3.94,3.07l3.27,1.8l8.08,5.82l5.2,2.75l2.01,0.38l0.32,1.54l0,0l-3.87,1.25l2.4,8.26l-9.78,4.33l-12.7,4.6l0,0l-11.93,-19.9l-11.62,7.36l10.85,17.7l0,0l-2.15,1.61l-9.63,4.12l6.2,6.6l-0.11,24.2l-2.23,-1.18l-29,-9.82l-32.94,-9.38l-0.23,41.87H117.58l0.44,157.65l0.48,29.68l0,0L113.19,612l-33.6,-11.48l-22.4,-15.65l-23.21,-47.19l-15.24,-23.89l5.08,-1.26l4.39,-3.32l6.11,-3.44l1.44,-2.07l1.35,-5.9l1.26,-1.38l0.36,-3.84l-1.17,-3.35l-0.63,-0.1l-2.43,-3.15l-1.08,-3.94l0.18,-1.87l1.17,-1.38l-0.09,-1.58l1.08,-4.43v-1.08l-1.26,-1.87l0.72,-0.89l0.09,-3.15L36.21,465l-0.9,-0.59l0.27,-2.66l-0.81,-0.98l0.27,-3.74l-0.18,-0.49l-0.72,-0.1l-0.18,-1.08l-1.8,-1.77l0.36,-2.76l-2.34,-1.87l-0.72,-1.28l-0.72,-0.2l-0.36,-1.87l-0.99,-0.69l-1.62,-0.1l-0.99,-1.18l-1.35,-6.31l-2.61,-1.68l-0.54,-1.67l-1.26,-0.49l-2.34,-3.15l-0.09,-1.08l-1.35,-0.99l-0.27,-4.14l0.54,-1.77l-0.45,-0.59l0.09,-3.65l1.35,-3.25l-0.45,-0.49l0.9,-1.58l2.88,-2.56l0.72,-1.48l-0.81,-6.71l-1.71,-3.95v-2.07l-1.89,-2.27l-0.54,-1.38l-2.52,0.99l0.27,-0.59l2.07,-0.59l-0.63,-1.48l-3.15,-3.75l-4.13,-2.66l-0.9,-1.78l0.27,-4.14l0.81,-3.36l-0.18,-1.97l0.63,-1.78l-0.63,-1.78l0.72,-2.17l-0.36,-2.76l-2.25,-6.91l0.18,-0.59l-0.63,-0.2l0.36,-2.17l-0.9,-3.46l1.08,-2.57v-0.49l-0.63,-0.2l0.09,-1.68l-0.72,-0.89l1.26,-6.62l-1.17,-1.48l0.36,-0.89l-0.81,-4.05l0.27,-2.96l-0.54,-1.58l0.72,-1.38l-0.45,-3.16l0.27,-3.66l1.53,-2.27l0.36,-3.46l-1.08,-6.62l0.27,-2.67l-0.63,-0.59l0.36,-2.47l-0.27,-3.66l-0.45,-0.3l-1.08,0.4l-0.36,-0.49l0.99,-1.38l0.09,-2.67l-0.54,-0.59l0.45,-0.89l-1.17,-7.62l1.08,-0.89l0.45,-1.19l-1.44,-2.08l-1.89,-0.59l1.98,-4.35l-1.44,-2.27l-1.35,0.5L0,272.49V271.3l1.89,-3.46l-0.45,-2.67l1.17,-2.57l1.17,-4.55l0.09,-3.36l2.43,-6.14l-0.45,-0.79l0.18,-1.88l-0.81,-1.68l-1.35,-0.99l-1.35,1.49l-0.45,-1.58l1.26,-0.89l1.17,-1.88l3.69,-1.68l0.45,-0.89l1.62,-0.4l0.99,-1.29l1.35,-0.3l0.99,-1.09l-0.9,-0.4l0.36,-1.09l3.06,0.49l1.98,3.76l1.26,0.79l0.54,3.47l0.9,1.19l-0.36,0.79l0.36,1.58l2.34,0.89l0.72,3.17l-0.9,1.39l0.45,0.79l0.63,5.05l3.23,1.68l0.45,-0.5l1.26,0.2l2.88,-1.68l0.27,-0.99l-0.72,-0.69l0.45,-0.99l-1.08,-0.59l-0.54,0.2l-0.18,-1.39l-1.53,-1.19l-0.54,0.1l-0.27,-1.19l-0.9,-0.89l0.63,-0.3l-0.18,-0.49l1.08,0.3l0.72,-0.49l0.63,0.3l0.54,-0.3l-0.09,-0.69l-1.71,-1.98l0.18,-0.3l-1.89,-1.68l1.35,-1.29v-1.39l-1.62,-2.18l-0.99,-0.5l-0.63,-2.08l-2.16,0.2l-0.36,-0.49l0.36,-2.08l1.35,-2.77l-0.27,-1.19l2.16,-0.79l1.71,-3.17v-1.09l-1.08,-1.19l0.18,-0.69l1.26,-0.89l-0.27,-2.58l-0.45,-0.4l0.27,-0.79l-2.87,-6.04l0.72,-0.4l-0.18,-1.39l-1.26,-0.79l-2.52,0.1l-3.23,2.58l-1.35,-0.59l-0.99,0.1l-0.63,-0.59v-1.09l-0.9,-0.2l-0.36,-0.59l1.98,-3.57l-0.27,-0.4l0.72,-1.68l0.9,-0.2l0.72,0.5l0.9,-0.79l1.62,0.1l0.72,-0.59l-0.09,-1.09l0.54,-0.3l0.99,0.2v0.5l-0.72,0.5l0.18,0.69l0.9,-0.4l0.72,-1.78l1.53,0.4l2.25,-0.4l0.54,1.19l1.71,1.88l0.36,-0.1l-1.98,-2.18l-0.36,-1.39l2.25,-0.1l1.44,0.59l-0.09,-0.5l-1.8,-0.69l-0.09,-0.79l0.54,0.1l-0.54,-0.99l-1.44,-0.59l1.89,-0.5l0.27,-0.89l0.54,-0.2l-0.81,-1.09v-0.69l0.81,-0.5l-0.81,-1.59l0.27,-0.99l0.81,-0.6l0.81,0.2l-0.45,0.5l-0.09,1.39l0.9,2.78l2.25,0.3l0.45,-0.5l1.53,-0.1l0.81,0.5l0.63,1.49l-0.18,0.69l0.9,0.2l0.36,0.69h0.54l0.18,-0.79l0.45,-0.1l1.98,0.79l-0.18,2.18l-0.36,0.2l0.36,1.59l-0.54,1.49l-1.26,1.39l0.18,1.29l-0.9,2.08l0.09,0.99l-1.26,2.68l-1.26,0.59l-1.53,2.38l0.45,0.79l-0.27,2.58l1.53,0.99l1.62,-0.3l-0.09,1.39l0.81,1.88l-1.35,6.74l0.81,0.79l0.63,-0.59l2.16,-0.3l0.36,0.99l-0.63,-0.1l-0.09,0.59l0.72,1.09l1.26,-0.4l0.18,0.5l1.89,0.1l0.09,1.58l1.53,0.69l1.17,1.39l-0.63,2.87l3.6,2.48l0.18,-0.59l0.81,0.1l0.09,-0.89l-1.98,-2.08l0.18,-0.69l1.98,-1.39l0.63,-2.18l-0.81,-1.39l-0.99,-0.5l-0.36,-1.19l1.35,-1.19l-0.18,-1.98l0.72,-1.29v-2.67l2.16,-2.18l-1.62,-2.38l0.45,-1.19l-0.81,-1.19l1.35,-0.5l-1.08,-0.69h1.44l2.07,-2.28l-1.08,-0.2l0.36,-0.99l-1.26,-0.99l1.44,-1.59l-0.09,-0.4l1.53,0.3l1.44,-1.68l-0.36,-1.19l-1.08,-0.59l0.63,-0.5l0.54,0.3l0.9,-0.4l0.27,1.88l1.53,0.4l0.36,-0.99l-0.18,-0.69l-0.54,-0.1l0.09,-0.79l0.27,-0.2l0.36,0.7l0.54,-0.49l-0.27,1.98l1.35,1.19l0.63,1.98l0.99,0.1l0.72,1.19l3.95,-0.3l1.53,-1.49l-0.54,-3.47l-1.17,-0.69l0.45,-1.19l1.44,-0.79l0.99,-1.98l1.26,-0.59l0.36,-0.99l-0.72,-0.79l0.18,-0.99l-0.9,0.3l0.18,0.69l-0.54,1.09l-2.78,1.39l-1.35,-0.2l0.09,0.6l-3.14,-0.4l-1.8,-1.49l-2.69,2.08l-1.62,-0.4l-0.99,0.3l-1.26,-2.28l-1.98,-0.4l-0.18,-0.59l-1.89,-1.29l-1.26,-2.28l-0.72,0.3l0.09,-1.19l-1.62,-1.78l-0.09,-0.79l0.18,-1.19h0.81l-1.26,-2.48l0.18,-0.89l-0.72,-3.27l0.36,-2.18l0.81,-0.99l-1.08,-1.78l-0.72,-2.48l0.36,-0.79l-0.36,-0.4l0.72,-0.69l-0.99,-1.49l-1.44,-0.4l0.9,-0.99l-0.63,-0.3v-1.69l0.54,-1.39l0.81,-0.4l0.09,-0.99l1.71,-0.99l-0.27,-2.68l2.97,-1.09l0.36,-0.79l1.44,-0.79l-0.09,-1.29l0.63,-0.3l-0.63,-0.2v-0.69l0.63,-0.5l-1.71,-0.2l0.45,-0.99l-0.36,-0.5h-0.81l-0.09,-1.29l-0.72,-0.5l-0.54,-1.49l-0.36,-1.69l0.36,-0.69l-0.45,-0.3l0.81,-2.08l-0.36,-1.89l0.63,-0.5l-0.54,-0.69l0.54,-0.69l0.81,-0.3l0.45,0.3l0.36,-0.79l2.16,-0.99l0.63,-0.89l-0.18,-0.6l0.9,-0.2l1.62,-4.96L59.22,134.03zM232.57,332.64l4.31,6.52l1.39,-1.44l-3.77,-6.18L232.57,332.64z", "Umm \u015Eal\u0101l": "M166.77,211.88L183.9,222.04L214.84,220.25L214.84,220.25L213.12,239.31L213.41,261.99L214.47,266.97L225.93,292.11L225.93,292.11L226.42,294.15L226.42,294.15L223.42,295.86L222.08,292.74L220.49,291.36L217.22,291.15L216.16,291.57L217.17,296.12L210.38,296.02L210.37,287.81L197.78,283.5L188.66,282.48L166.72,281.94z", "Al Wakrah": "M159.5,549.04l-0.18,2.06l-0.63,-0.1l-0.63,-1.38L159.5,549.04zM275.59,339.03l0.09,1.88l0.81,0.99l0.27,1.38l0.9,0.79v0.69h0.99l1.98,2.07l1.08,0.3l0.18,1.28l1.53,0.4l-0.18,0.79l-0.9,-0.49l-0.81,0.4l-0.18,2.57l0.54,2.77l-1.17,1.78l0.36,1.09l-0.63,0.69v0.79l0.54,0.49l-2.16,0.99l0.81,0.89l-0.72,0.59v0.79l1.89,1.28l0.27,0.99l-1.71,-1.68l-0.81,0.2l-0.63,0.89l0.36,1.09l1.8,1.28l2.07,3.36l-0.27,1.88l-1.26,2.86l1.26,3.85l-0.18,4.24l-0.63,2.37l1.17,4.24l-0.54,0.49l-0.18,2.47l-0.54,1.78l-0.99,1.19l-0.36,1.97l-0.45,0.1l-0.27,1.28l-0.9,-0.2l-0.45,0.49l1.8,3.55l1.26,7.2l0.81,1.58l3.06,3.26l-0.72,2.66l-0.63,0.49l-0.45,4.04l-1.44,1.77l-2.07,0.59l-2.16,3.75l-1.26,-0.49l-0.81,1.08l-0.99,-0.1l-3.59,3.35l-0.9,1.68l-0.18,1.48l2.43,0.59l0.9,-0.79l1.08,1.18l-0.99,2.96l-2.88,3.55l-0.36,1.68l-1.44,1.87l-2.07,4.14l0.9,1.18l-0.54,0.1l-0.9,-0.89l-0.54,1.08l1.08,1.08l-1.26,-0.69l-1.98,3.45l0.72,0.89l-0.18,0.49l-0.54,0.1l-0.27,-0.69l-1.08,-0.3l-0.36,0.69l0.36,1.08l-0.99,1.18h-0.81l-3.86,5.42h-0.45l-1.62,3.15l-1.44,1.48l-0.9,0.2l-3.68,2.76l-1.53,2.27l-2.16,6.4l-3.77,6.7l-0.72,6.99l-2.7,4.92l0.09,7.09l-0.45,1.77l-0.81,2.26l-1.98,2.66l-0.99,2.16l-3.14,3.94l-2.87,5.81l-0.54,3.54l-2.43,6.59l-0.27,3.05l-2.07,6.39l-1.26,1.18l-0.81,0.2V545.6l-1.17,0.3l-1.98,4.13l-2.16,0.59l-1.98,-0.1l-1.98,1.08l-1.89,0.2l0.27,-1.47l-0.54,-1.47l-0.09,0.69l-0.45,0.1l0.45,2.06h-1.17l-0.27,-0.59l-1.17,0.69v2.16l-2.43,6.39l0.27,3.05l-0.45,0.49l0.72,2.56l-0.45,0.1h-0.99l0.27,2.26l-0.45,0.2l0.09,1.57l-1.35,0.79h-1.8l-0.54,0.4l-0.63,1.28l-0.9,0.1l-1.71,1.38l-0.72,1.47l-3.32,3.34l-1.17,0.3h-1.17l-0.09,-0.39l1.26,-0.69l0.72,-5.21l-0.9,-1.77l-1.53,-0.88l-0.18,-4.32l-1.17,-0.69l-0.45,-1.47l0.54,-1.48l-0.09,-2.46l1.17,-0.79l1.8,0.59l-0.36,0.69l0.18,1.28l1.71,0.59l0.18,1.08l1.08,0.3l-0.63,-4.91l1.8,-0.69l-0.36,2.16l-0.81,0.59l0.18,1.28l0.54,-0.49l0.45,-1.87l1.89,-1.67l0.63,-1.38l-0.45,-1.08l0.36,-0.79l-0.36,-1.38l0.81,-3.54l-0.81,-0.88l-0.81,0.79l0.18,1.87l-0.72,-0.3l0.27,3.15h-0.54l-0.63,-0.98l0.18,1.47l0.63,0.98l-0.36,1.18l-2.34,1.28v-2.75l0.9,-2.26l0.36,-4.52l-0.63,-0.49l0.45,-0.79l-0.54,-0.39l-0.09,-1.08l1.17,-0.59l0.09,-1.67l-0.9,-0.1l-0.36,1.38l-0.63,-0.1l-1.89,5.11l-0.72,-0.2l0.72,0.89l0.81,-0.1l0.36,1.18l0.9,0.49v0.39l-1.26,-0.39l0.9,1.38l-1.26,-0.39l-0.27,0.59l-0.72,-0.1l-0.45,-1.67l-1.98,-2.75l0.45,-0.69h-0.54l-0.18,-0.49l-1.08,0.59l0.36,1.48l-0.99,0.2l-1.26,-2.26l0.18,1.97l-1.17,-0.98l0.09,-0.79l-0.81,-0.59l-0.45,1.08l-0.72,-0.49l0.36,1.67l-0.81,0.2l-1.8,-2.26l0.18,-1.47l-1.08,-0.39l-0.18,-0.49l-1.08,0.79l-0.63,1.38l0.36,0.1l-0.36,2.26l-1.44,1.38l0.27,1.67l-0.54,0.3l-0.27,-1.08l-0.63,-0.1l0.09,-1.67l0.9,-1.08l0.63,0.59l0.63,-2.85l1.08,-1.77l-0.09,-1.47l0.54,-1.18l-0.63,-0.89l-0.09,-3.05l-0.54,-0.98l-1.35,0.79l1.08,2.07l0.09,1.08l-0.36,0.49l-0.54,-1.08l-0.81,-0.29l-0.09,-0.49l-0.45,0.1l0.36,2.26l0.27,0.39l-0.45,0.1l-0.36,3.54l-2.25,1.87h-0.36l0.36,-0.79l-0.18,-1.87l-1.17,-1.77h-1.17l-2.69,1.28l-0.45,0.89l0.18,1.38l-2.43,-1.57l-2.78,0.3l-0.99,0.59l-0.63,1.67l-0.72,0.1l-1.08,1.08l-1.62,-0.69v-1.38l-0.63,-0.69l-0.72,1.48l-0.81,-0.2l-0.18,0.49l0.54,0.89l0.72,-0.2l0.09,0.49l-1.98,0.89l-0.09,0.98l-0.63,0.1l-0.27,0.79v0.3h1.8l0.09,0.69l-0.9,0.89v0.89l0.36,0.1l-0.04,1.06l0.95,0.68l2.01,1.09l1.06,-0.3l1.46,1.11l1.52,0.15l2.81,-0.37l1.78,0.35l3.51,-1.49l1.25,0.61l0.82,1.31l0.88,0.15l2.19,-1.54l0.39,0.53l-0.44,0.66l0.05,2.12l3.26,1.11l1.82,4.04l2.26,-0.96l0.44,-2.2l0.52,-0.18l1.11,1.01l0.49,1.62l-0.37,1.08l-2.15,1.89l-0.43,2.15l-1.35,2.62l0.68,6.94l-0.37,4.58l0.31,3.37l-2.22,3.3l0.63,3.76l1.1,1.22l-59.36,13.86l0,0l-0.48,-29.68l-0.44,-157.65h32.04l0.23,-41.87l32.94,9.38l29,9.82l2.23,1.18l0.12,-24.19l-6.2,-6.6l9.63,-4.12l2.15,-1.61l0,0l12.7,-5.16l0,0l12.7,-4.6l9.78,-4.33l-2.4,-8.26l3.87,-1.25l0,0l8.88,-2.87l10.34,-0.88l0,0h0.09l0,0L275.59,339.03z", "Az\u0327 Za\u0327`\u0101yin": "M258.34,198.71L258.43,200.39L257.8,201.98L256.9,201.58L255.1,203.17L253.94,202.67L251.69,203.86L248.9,203.66L247.38,205.55L248.1,206.94L244.95,206.64L243.78,206.84L243.51,207.43L242.52,207.43L241.81,208.72L240.55,209.21L240.28,210.8L239.38,211.69L239.29,212.88L239.92,213.18L239.74,213.87L240.1,214.27L239.56,214.47L239.02,216.05L239.38,216.65L238.48,217.24L238.93,218.73L239.74,219.22L239.29,220.41L239.74,221.01L241.18,220.41L242.61,220.71L241.72,221.9L241.54,224.87L240.37,224.87L239.83,226.16L239.56,228.73L238.12,233.78L237.49,235.07L236.41,235.37L235.07,237.94L234.98,240.32L235.52,242.89L237.4,244.28L238.3,244.38L238.84,245.76L239.92,246.36L240.1,249.82L241.09,252.3L243.33,252.89L243.78,253.59L244.95,253.98L248.81,251.9L250.61,251.41L254.65,252.5L253.67,252.89L251.24,251.71L249.53,251.9L245.4,254.18L246.57,255.39L246.57,255.39L234.73,255.39L238.98,275.83L241.26,282.07L225.93,292.11L225.93,292.11L214.47,266.97L213.41,261.99L213.12,239.31L214.84,220.25L214.84,220.25L210.92,199.76L212.88,199.88L215.19,199.25L222.35,192.11L225,191.48L229.28,188.93L240.71,194.53L250.87,195.04L258.52,197.92L258.52,197.92z" }; // src/hooks/mouseTrack.ts var import_react = require("react"); var useMousePosition = () => { const [position, setPosition] = (0, import_react.useState)({ x: 0, y: 0 }); const updateMousePosition = (event) => { setPosition({ x: event.clientX, y: event.clientY }); }; (0, import_react.useEffect)(() => { window.addEventListener("mousemove", updateMousePosition); return () => { window.removeEventListener("mousemove", updateMousePosition); }; }, []); return position; }; var mouseTrack_default = useMousePosition; // src/Qatar.tsx var import_react3 = require("react"); var hintStyleBase = { position: "fixed", backgroundColor: "white", padding: "10px", borderRadius: 5, border: "1px solid #ccc", pointerEvents: "none", zIndex: 1e3 }; var getStrokeProperties = (borderStyle) => { switch (borderStyle) { case "dashed": return { strokeDasharray: "8 4" }; case "dotted": return { strokeDasharray: "2 2" }; case "dash-dot": return { strokeDasharray: "8 4 2 4" }; case "dash-double-dot": return { strokeDasharray: "8 4 2 4 2 4" }; default: return { strokeDasharray: "none" }; } }; var Qatar = ({ type, size = constants.WIDTH, mapColor = constants.MAPCOLOR, strokeColor = constants.STROKE_COLOR, strokeWidth = constants.STROKE_WIDTH, hoverColor, selectColor, hints, hintTextColor, hintBackgroundColor, hintPadding, hintBorderRadius, onSelect, cityColors = {}, disableClick = false, disableHover = false, borderStyle }) => { if (type === "select-single") { return /* @__PURE__ */ import_react2.default.createElement( QatarSingle, { type: "select-single", size, mapColor, strokeColor, strokeWidth, hoverColor, selectColor, hints, hintTextColor, hintBackgroundColor, hintPadding, hintBorderRadius, onSelect, cityColors, disableClick, disableHover, borderStyle } ); } else if (type === "select-multiple") { return /* @__PURE__ */ import_react2.default.createElement( QatarMultiple, { type: "select-multiple", size, mapColor, strokeColor, strokeWidth, hoverColor, selectColor, hints, hintTextColor, hintBackgroundColor, hintPadding, hintBorderRadius, onSelect, cityColors, disableClick, disableHover, borderStyle } ); } else { return null; } }; var QatarSingle = ({ size, mapColor, strokeColor, selectColor, strokeWidth, hoverColor, hints, onSelect, hintTextColor, hintBackgroundColor, hintPadding, hintBorderRadius, cityColors, disableClick, disableHover, borderStyle }) => { const instanceId = (0, import_react3.useId)().replace(/:/g, ""); const { x, y } = mouseTrack_default(); const [stateHovered, setStateHovered] = (0, import_react2.useState)(null); const [selectedState, setSelectedState] = (0, import_react2.useState)(null); const [viewBox, setViewBox] = (0, import_react2.useState)("0 0 100 100"); const strokeProps = (0, import_react2.useMemo)(() => getStrokeProperties(borderStyle), [borderStyle]); (0, import_react2.useEffect)(() => { const svg = document.getElementById(`svg2-${instanceId}`); if (svg) { const bbox = svg.getBBox(); setViewBox(`${bbox.x} ${bbox.y} ${bbox.width} ${bbox.height}`); } }, [instanceId]); const mapStyle = (0, import_react2.useMemo)( () => ({ width: size, stroke: strokeColor, strokeWidth, ...strokeProps }), [size, strokeColor, strokeWidth, strokeProps] ); const hintStyle = { ...hintStyleBase, backgroundColor: hintBackgroundColor || hintStyleBase.backgroundColor, padding: hintPadding || hintStyleBase.padding, borderRadius: hintBorderRadius || hintStyleBase.borderRadius, color: hintTextColor || "black", top: y + 20, left: x + 20 }; (0, import_react2.useEffect)(() => { stateCode.forEach((state) => { const path = document.getElementById(`${state}-${instanceId}`); if (path) { path.style.fill = cityColors[state] || mapColor; } }); }, [cityColors, mapColor, instanceId]); (0, import_react2.useEffect)(() => { if (selectedState) { const path = document.getElementById(`${selectedState}-${instanceId}`); if (path) { path.style.fill = selectColor || constants.SELECTED_COLOR; } } }, [selectedState, selectColor, instanceId]); const handleMouseEnter = (hoverStateId) => { const path = document.getElementById(`${hoverStateId}-${instanceId}`); setStateHovered(hoverStateId); if (path && !disableHover) { path.style.fill = selectedState === hoverStateId ? selectColor || constants.SELECTED_COLOR : hoverColor || constants.HOVERCOLOR; } }; const handleMouseLeave = (hoverStateId) => { const path = document.getElementById(`${hoverStateId}-${instanceId}`); setStateHovered(null); if (path && !disableHover) { path.style.fill = selectedState === hoverStateId ? selectColor || constants.SELECTED_COLOR : cityColors[hoverStateId] || mapColor; } }; const handleClick = (stateCode2) => { if (disableClick) return; if (selectedState === stateCode2) { const path = document.getElementById(`${stateCode2}-${instanceId}`); if (path) { path.style.fill = cityColors[stateCode2] || mapColor; } setSelectedState(null); if (onSelect) { onSelect(null); } } else { if (selectedState) { const previousPath = document.getElementById(`${selectedState}-${instanceId}`); if (previousPath) { previousPath.style.fill = cityColors[selectedState] || mapColor; } } setSelectedState(stateCode2); if (onSelect) { onSelect(stateCode2); } } }; return /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement("div", { className: "map", style: mapStyle }, /* @__PURE__ */ import_react2.default.createElement("svg", { version: "1.1", id: `svg2-${instanceId}`, x: "0px", y: "0px", viewBox }, stateCode?.map((code, index) => /* @__PURE__ */ import_react2.default.createElement( "path", { key: index, onClick: () => handleClick(code), onMouseEnter: () => handleMouseEnter(code), onMouseLeave: () => handleMouseLeave(code), id: `${code}-${instanceId}`, d: drawPath[code], style: { fill: cityColors[code] || mapColor, cursor: disableClick ? "default" : "pointer", ...strokeProps } } )))), hints && stateHovered && /* @__PURE__ */ import_react2.default.createElement("div", { style: hintStyle }, stateHovered)); }; var QatarMultiple = ({ size, mapColor, strokeColor, selectColor, strokeWidth, hoverColor, hints, hintTextColor, hintBackgroundColor, hintPadding, hintBorderRadius, onSelect, cityColors, disableClick, disableHover, borderStyle }) => { const instanceId = (0, import_react3.useId)().replace(/:/g, ""); const { x, y } = mouseTrack_default(); const [selectedStates, setSelectedStates] = (0, import_react2.useState)([]); const [stateHovered, setStateHovered] = (0, import_react2.useState)(null); const [viewBox, setViewBox] = (0, import_react2.useState)("0 0 100 100"); const strokeProps = (0, import_react2.useMemo)(() => getStrokeProperties(borderStyle), [borderStyle]); (0, import_react2.useEffect)(() => { const svg = document.getElementById(`svg2-${instanceId}`); if (svg) { const bbox = svg.getBBox(); setViewBox(`${bbox.x} ${bbox.y} ${bbox.width} ${bbox.height}`); } }, [instanceId]); const mapStyle = (0, import_react2.useMemo)( () => ({ width: size, stroke: strokeColor, strokeWidth, ...strokeProps }), [size, strokeColor, strokeWidth, strokeProps] ); const hintStyle = { ...hintStyleBase, backgroundColor: hintBackgroundColor || hintStyleBase.backgroundColor, padding: hintPadding || hintStyleBase.padding, borderRadius: hintBorderRadius || hintStyleBase.borderRadius, color: hintTextColor || "black", top: y + 20, left: x + 20 }; (0, import_react2.useEffect)(() => { stateCode.forEach((state) => { const path = document.getElementById(`${state}-${instanceId}`); if (path) { path.style.fill = cityColors[state] || mapColor; } }); }, [cityColors, mapColor, instanceId]); (0, import_react2.useEffect)(() => { selectedStates.forEach((selectedState) => { const path = document.getElementById(`${selectedState}-${instanceId}`); if (path) { path.style.fill = selectColor || constants.SELECTED_COLOR; } }); }, [selectedStates, selectColor, instanceId]); const handleMouseEnter = (hoverStateId) => { const path = document.getElementById(`${hoverStateId}-${instanceId}`); setStateHovered(hoverStateId); if (path && !disableHover) { path.style.fill = selectedStates.includes(hoverStateId) ? selectColor || constants.SELECTED_COLOR : hoverColor || constants.HOVERCOLOR; } }; const handleMouseLeave = (hoverStateId) => { const path = document.getElementById(`${hoverStateId}-${instanceId}`); setStateHovered(null); if (path && !disableHover) { path.style.fill = selectedStates.includes(hoverStateId) ? selectColor || constants.SELECTED_COLOR : cityColors[hoverStateId] || mapColor; } }; const handleClick = (stateCode2) => { if (disableClick) return; if (selectedStates.includes(stateCode2)) { const updatedSelectedStates = selectedStates.filter((state) => state !== stateCode2); const path = document.getElementById(`${stateCode2}-${instanceId}`); if (path) { path.style.fill = cityColors[stateCode2] || mapColor; } setSelectedStates(updatedSelectedStates); if (onSelect) { onSelect(stateCode2, updatedSelectedStates); } } else { setSelectedStates((prevStates) => { const updatedStates = [...prevStates, stateCode2]; const path = document.getElementById(`${stateCode2}-${instanceId}`); if (path) { path.style.fill = selectColor || constants.SELECTED_COLOR; } if (onSelect) { onSelect(stateCode2, updatedStates); } return updatedStates; }); } }; return /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement("div", { className: "map", style: mapStyle }, /* @__PURE__ */ import_react2.default.createElement("svg", { version: "1.1", id: `svg2-${instanceId}`, x: "0px", y: "0px", viewBox }, stateCode?.map((code, index) => /* @__PURE__ */ import_react2.default.createElement( "path", { key: index, onClick: () => handleClick(code), onMouseEnter: () => handleMouseEnter(code), onMouseLeave: () => handleMouseLeave(code), id: `${code}-${instanceId}`, d: drawPath[code], style: { fill: cityColors[code] || mapColor, cursor: disableClick ? "default" : "pointer", ...strokeProps } } )))), hints && stateHovered && /* @__PURE__ */ import_react2.default.createElement("div", { style: hintStyle }, stateHovered)); }; var Qatar_default = Qatar; // src/index.ts var src_default = Qatar_default;