PageSourceSearch

https://legateca.com/assets/index-BjbH06vn.js

js legateca.com collected 2026-10-06 13:43:18 UTC 137,276 bytes, 56 lines download raw bytes

1import{r as i,b as e,a1 as f,a7 as ge,a8 as $t,al as Xt,a6 as _t,u as ze,v as Me,w as ke,am as ea,a5 as yt,c as Ae,a3 as C,ad as it,an as jt,a4 as ta,R as aa,$ as ia}from"./vendor-CNlRBQKV.js";import{A as oa,s as P,f as na,b as sa,F as ra}from"./index-BLUlY5na.js";import{u as Tt}from"./index-DuR8OQyE.js";import{f as He}from"./vendor-lodash-B3EhnKIF.js";import{g as la}from"./stripeLoader-WB8xrQd3.js";import{HeroSection as da}from"./About-BUtDk5S4.js";/* empty css                       */import"./ImageWithText-DTIdaL76.js";const vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABoCAYAAADGpx+DAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAunSURBVHhe7Z1pcxPJGccfaTQ6fFs+ZBuMjQ+MDUnVsoFQlSIsHyDgVHi75KuldiuvA3m/wK7ZsEt2oVJrDp+A40PIhySfukbK8+/psWUvlWRXM2J6dn4gaaanp2em//P03e1AhSEfpQnKXx+F8UX0AL6IHsAX0QP4InoAX0QP4IvoAXwRPYAvogfwRfQAvogewBfRA/giegBfRA/gi+gBfBE9gC+iB/BF9AC+iB7AF9EDeHKgVLFUolRqndbWkrSWXKOtrTThMePxOPX29lBfXy91dnZSRNflGWX+qPs+e0rEra0tevHiJS39e5m2d3aEcKGQTroeEtuGYVCxWKRAgKipsYkGB8/Q+Pnz1NHRIUNQE0+ImMvl6PvvntKr2RnKFYoUiUQopGlCOBCAalVUCxqJ6HRuZIQuXbpEDQ0N0odaKC/i8uoKPZqaonQ6S3o4TKSFOGHkf4H/77HK5TIV8nlqa22ma9eu0alTp+QRdVBaxIXXr+mL+1+waREnmRHp+vMolYri98aNGzQydFZsq4KyuXkymRQCVgJBCoVrExAg7+R3mh48eEgrq2umoyIoKSLysqmpR1QpB2Tk20MoFKIyJ0wIO89JrCooKeL09DStb2xQGHlghQst+NhEmKsdW+ktev78uXRxP8qJiDrgzNw8F2IixIaIXJ2/7M3W8XLMzc1SkUu6KqCciKlUirLZLBdCQ2IfGtpnhyYaV08ymSwl3yWli7tRTkRErFE2hHBBBwQ0CZDB38nUO3PX5SgnYiad4cr70W0LS7Q3NRWJc0ALUDqTMR1cjnIiHhzsk1bVAmNzuUaA4DQK8bVyYr9ic55rN8qJWDHKxyzRKdBUVzYMrnLw9aSbW1FORNF6XQ9kMm22u7pbRuVEDAaDVGHrcBq0RupcAg643g4VFDEWjXIEyx0HQT6oR63mPD9PtJVonbqLYIlRfmFM/OTUFgwu0KBhOqCF2C7qE6m6HuZrrlLRKEkXd6JMV1QqtUF/+/s9ijU2UalQcFxGREskHKHdvR26efMP1JtIyCPuQxlLLBTyImvK5dC7AAnx7jn3/qFUmsujnhigfL5gOroUZUREpKJkimEXAdFE43wJFdfDdc1qhntRJ08sG2x3qOhb4uHWnY9cVPZR6XczyohY5OS0XEFkwgohXp2sgy9XlEM33Io6lmhwbIoORNyyc3nhSVDAMUrOJ921oIyIXV1dYjBUmasa9dIQI+EwZKOru0u6uBNlRGxvb6PzYyOUzx0I63CyZmSFn+fS6blzI9QZb5dH3IkyIoJLH31E8fZWjuAyW6XuiJAIE9aH35bWFrr8m4/lEfei3LjTnZ0dMRLtyXff0/LyihDTTjCSrq+vj67+9rIYa9PS3MyuiCL3VjOUskTQzJGKyTBa8GiYvp0gTIyx6ezokALC0b0CAuVEtNDDziSnHKjogrIQV3C3huqKGIvFHBERg4cbOexq3F3BUFjEs4MDXADROILLnNrZI6aVlJ7hsKtxuSGqK2JPIkE9PQkuiNjXOF0sljjMHjER1QIC+iI6yPmxMdTIbRuyWKkYNDY2SkGXN3ifRGkR4+3tFEInMQtZK8hekTy3t7dIF3VQWkQUbqKRiC0FHISBGcYNMfVmCystIir6kUhY7tUGWoFCHJ6YbawYSouISTUaRzz6GmulUq5QmMPTOXlWDaVFRAFEQ6Xfhm4NkZyyFQaDGvZMR0VQWkTMVdzf3yc7hvUHtSDtH+RENcP9lYrjKCsiLOfBlw/FLCk7pnyjkp/OZOn+w4dca/Et0XGEgBzZ8/MLnATG2G7ssRz0WiwsLNL9BxDS7Y1tRyjXFYVhhF9+9RUtLr7mkmmM80XMzeBHsDEFzOUOaGhwgK5fv141Cty9KCXiysoqPXr8D7H8VzSCyGUblN1EdrWfWhTyB1zxj9PVq1fpTP9p6epOlBBxc3OLpqef0+z8vOhRMGcrOQ8KTiipjo4O068vXKCOjk7zgMtwrYgYdb20tERzLNxaMsmWUaAwZilhQK+9qef/pFDMixcHje7DwyM0cOYMJ7O1L4BkF64T8d27d1y4WGABlymzvS061dGKUj0Ku54iWtcts0UWcnlR4Glta6XBgX4aGh6m3u4PP0fDFSLu7R+waG+5tDlP66mUSMY0rjbggxlQZmW+ai7UBxBRRBJHFaILQqILTAsFKcEijrJ1Dp4dpIYTncn14oOKiDVpZmbn6M3bJdrb2+OUMkDhkMbWF6QyR169k82fCnpPSoYhlt1sasL6qQNiiGOiq1v6qA91FxEXe/P6Db14+ZLzulUqFAzSI2HSgmizxCIH/LaLt58/LhexGrF+aqnIeadGvT09NDE+IUStx2Sc+onIV5lfmKd//TBN6+sbQig9HBLtn2ZCiQ/KnrzHGaFdFfh6g94QTMNDKwpGrV+8eIFGRkYdFbMuIia5sPLkyT9pdXVFNDBjXTaR1x3OcPKOiBYBfhaMYcW0g57eHrpy5YqwUDOy8fT2PZ/jIr6cmaWpqSneYsvTsSowJqgp3e7+kykUCqJAdO3a7+jC+Dg/P2LAvjhwNDZ3dnfp8TffcFISpDBbn0hSuPDySwNtspoWpG+/fULZ3R1bBQSOijgzNyuW8cLcBqtVTJ1mZXtBTwumH8y8eiVd7MMxEVH0XlhcpPDh2tyOZ72uB0IucpwUbJ606piIWK4kvZXlG8eYFeSDBurKbIq/vOTUAilSJrvNBbxV6WIPjon45u0bLpmZDci+FVbBJe+3b5fljj04IqLBdaUkV+R1HeNVkAviMo69L0oBa4QlonHALhyJWSQZOzu7FNLDVIdVLZUCy6rscqk9u70tXWrHkShOb6WpWMASzxx8xVexGlSzYIWbG5vSpXYciWH8xbR6LCyrMuvr63KrdhyJ6WRyTbTO+LwfVPwzmbTcqx1Hmt3+8tnnok/QtEYOni+Bi5iVC/P76KJm8/dxql2O3565FzhsPDjaMDk8frjDX1XBHZ4mfwVynA7CMu8UmO+3ecR0s46I8MUOfx1ev9oejnyaW2YoaOqHCxrJw1xe+POdO8K9VhwR8bPP/0rRWMxsZguUxRD5I04a//GWVNEwLh8amHvm+bJ53PzHTsKXiMT3HOftkxFtHjfPsz7iW4qIwVaG9Bs8lpefbGcKij/nYIVtHj3yH5Qu8GIdwxXQbmy6mty+fVtu1YYjIt69e5du3rwp98wHwUNU2+NJKU3gw5KMffJLgJX3rTGgKNkBTMmGdQup8F/6gS/4gS/rHPixrAta4VTcgSbDeh9Hd3l8uxorfPg4udS7FTLOxbVxp6hsmbCrCNRccNAOnBHx3l2avDUp934+hlHiivESDQ0Nif005yPoeO3utHrOMVSiIpZFaW1tFS6bW5ssVIU65cg0Mwp/LANGEuA8wyhSqWSIfU0LUXciIabLZbMZsVJHgCM6vZmmSDRKjY0NIi9D5CcSR7OJPzSOiHjv7j26NXmLt8QrJ9zAcTuTINk69IJj5jmZdJq+fvw1baxvUltbO3V1ddP09A/U0BAV/mPRGDU2NVJI00UnM/6kLOZlhMMhWllZoU8/vUPPnj0Vo+bS6Yz4a6cQ6ZNPfk+lYkkMvnr69Bk1NTfQdjZLYRYuGNBodnaWOuId1NXZQYVSnpKpFB3s5cTL0tzYSMViXrwwf/zT+5JCyzqrLcx6JmCP5Z3EkVCt5MvEejDEPdTCJas+x4zEOo5e/wgneTpdvPgrYREbG+s0MTFBo6Nj1NrSTvF4J50dHKZIJEoDAwPCOvSQTi0tbdTfP8D+NznF0thdE60k/f39dOpUnxAyzoJjQimybLwEbW1xGj8/IXri4S/eEadILMrCBdjqE3T69Gkx1KIr0U1j4xP08eUr4m5/jPVc1VQ/szM4lidOTiI5Na3qQ4A867/lOXhs5KXWr8o4IqJPfXHOxn3qhi+iB/BF9AC+iB7AF9ED+CJ6AF9ED+CL6AF8ET2AL6IH8EVUHqL/ANfDmyWQBu27AAAAAElFTkSuQmCC",wt=[{name:"Afghanistan",code:"AF",timezone:"Afghanistan Standard Time",utc:"UTC+04:30",mobileCode:"+93"},{name:"Åland Islands",code:"AX",timezone:"FLE Standard Time",utc:"UTC+02:00",mobileCode:"+358-18"},{name:"Albania",code:"AL",timezone:"Central Europe Standard Time",utc:"UTC+01:00",mobileCode:"+355"},{name:"Algeria",code:"DZ",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+213"},{name:"American Samoa",code:"AS",timezone:"UTC-11",utc:"UTC-11:00",mobileCode:"+1-684"},{name:"Andorra",code:"AD",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+376"},{name:"Angola",code:"AO",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+244"},{name:"Anguilla",code:"AI",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-264"},{name:"Antarctica",code:"AQ",timezone:"Pacific SA Standard Time",utc:"UTC-03:00",mobileCode:"+"},{name:"Antigua and Barbuda",code:"AG",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-268"},{name:"Argentina",code:"AR",timezone:"Argentina Standard Time",utc:"UTC-03:00",mobileCode:"+54"},{name:"Armenia",code:"AM",timezone:"Caucasus Standard Time",utc:"UTC+04:00",mobileCode:"+374"},{name:"Aruba",code:"AW",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+297"},{name:"Australia",code:"AU",timezone:"AUS Eastern Standard Time",utc:"UTC+10:00",mobileCode:"+61"},{name:"Austria",code:"AT",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+43"},{name:"Azerbaijan",code:"AZ",timezone:"Azerbaijan Standard Time",utc:"UTC+04:00",mobileCode:"+994"},{name:"Bahamas, The",code:"BS",timezone:"Eastern Standard Time",utc:"UTC-05:00",mobileCode:"+1-242"},{name:"Bahrain",code:"BH",timezone:"Arab Standard Time",utc:"UTC+03:00",mobileCode:"+973"},{name:"Bangladesh",code:"BD",timezone:"Bangladesh Standard Time",utc:"UTC+06:00",mobileCode:"+880"},{name:"Barbados",code:"BB",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-246"},{name:"Belarus",code:"BY",timezone:"Belarus Standard Time",utc:"UTC+03:00",mobileCode:"+375"},{name:"Belgium",code:"BE",timezone:"Romance Standard Time",utc:"UTC+01:00",mobileCode:"+32"}
1,{name:"Belize",code:"BZ",timezone:"Central America Standard Time",utc:"UTC-06:00",mobileCode:"+501"},{name:"Benin",code:"BJ",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+229"},{name:"Bermuda",code:"BM",timezone:"Atlantic Standard Time",utc:"UTC-04:00",mobileCode:"+1-441"},{name:"Bhutan",code:"BT",timezone:"Bangladesh Standard Time",utc:"UTC+06:00",mobileCode:"+975"},{name:"Bolivarian Republic of Venezuela",code:"VE",timezone:"Venezuela Standard Time",utc:"UTC-04:30",mobileCode:"+58"},{name:"Bolivia",code:"BO",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+591"},{name:"Bonaire, Sint Eustatius and Saba",code:"BQ",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+599"},{name:"Bosnia and Herzegovina",code:"BA",timezone:"Central European Standard Time",utc:"UTC+01:00",mobileCode:"+387"},{name:"Botswana",code:"BW",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+267"},{name:"Bouvet Island",code:"BV",timezone:"UTC",utc:"UTC",mobileCode:"+"},{name:"Brazil",code:"BR",timezone:"E. South America Standard Time",utc:"UTC-03:00",mobileCode:"+55"},{name:"British Indian Ocean Territory",code:"IO",timezone:"Central Asia Standard Time",utc:"UTC+06:00",mobileCode:"+246"},{name:"Brunei",code:"BN",timezone:"Singapore Standard Time",utc:"UTC+08:00",mobileCode:"+673"},{name:"Bulgaria",code:"BG",timezone:"FLE Standard Time",utc:"UTC+02:00",mobileCode:"+359"},{name:"Burkina Faso",code:"BF",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+226"},{name:"Burundi",code:"BI",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+257"},{name:"Cabo Verde",code:"CV",timezone:"Cape Verde Standard Time",utc:"UTC-01:00",mobileCode:"+238"},{name:"Cambodia",code:"KH",timezone:"SE Asia Standard Time",utc:"UTC+07:00",mobileCode:"+855"},{name:"Cameroon",code:"CM",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+237"},{name:"Canada",code:"CA",timezone:"Eastern Standard Time",utc:"UTC-05:00",mobileCode:"+1"},{name:"Cayman Islands",code:"KY",timezone:"SA Pacific Standard Time",utc:"UTC-05:00",mobileCode:"+1-345"},{name:"Central African Republic",code:"CF",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+236"},{name:"Chad",code:"TD",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+235"},{name:"Chile",code:"CL",timezone:"Pacific SA Standard Time",utc:"UTC-03:00",mobileCode:"+56"},{name:"China",code:"CN",timezone:"China Standard Time",utc:"UTC+08:00",mobileCode:"+86"},{name:"Christmas Island",code:"CX",timezone:"SE Asia Standard Time",utc:"UTC+07:00",mobileCode:"+61"},{name:"Cocos (Keeling) Islands",code:"CC",timezone:"Myanmar Standard Time",utc:"UTC+06:30",mobileCode:"+61"},{name:"Colombia",code:"CO",timezone:"SA Pacific Standard Time",utc:"UTC-05:00",mobileCode:"+57"},{name:"Comoros",code:"KM",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+269"},{name:"Congo",code:"CG",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+242"},{name:"Congo (DRC)",code:"CD",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+243"},{name:"Cook Islands",code:"CK",timezone:"Hawaiian Standard Time",utc:"UTC-10:00",mobileCode:"+682"},{name:"Costa Rica",code:"CR",timezone:"Central America Standard Time",utc:"UTC-06:00",mobileCode:"+506"},{name:"Côte d'Ivoire",code:"CI",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+225"},{name:"Croatia",code:"HR",timezone:"Central European Standard Time",utc:"UTC+01:00",mobileCode:"+385"},{name:"Cuba",code:"CU",timezone:"Eastern Standard Time",utc:"UTC-05:00",mobileCode:"+53"},{name:"Curaçao",code:"CW",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+599"},{name:"Cyprus",code:"CY",timezone:"E. Europe Standard Time",utc:"UTC+02:00",mobileCode:"+357"},{name:"Czech Republic",code:"CZ",timezone:"Central Europe Standard Time",utc:"UTC+01:00",mobileCode:"+420"},{name:"Democratic Republic of Timor-Leste",code:"TL",timezone:"Tokyo Standard Time",utc:"UTC+09:00",mobileCode:"+670"},{name:"Denmark",code:"DK",timezone:"Romance Standard Time",utc:"UTC+01:00",mobileCode:"+45"},{name:"Djibouti",code:"DJ",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+253"},{name:"Dominica",code:"DM",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-767"},{name:"Dominican Republic",code:"DO",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-809 and 1-829"},{name:"Ecuador",code:"EC",timezone:"SA Pacific Standard Time",utc:"UTC-05:00",mobileCode:"+593"},{name:"Egypt",code:"EG",timezone:"Egypt Standard Time",utc:"UTC+02:00",mobileCode:"+20"},{name:"El Salvador",code:"SV",timezone:"Central America Standard Time",utc:"UTC-06:00",mobileCode:"+503"},{name:"Equatorial Guinea",code:"GQ",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+240"},{name:"Eritrea",code:"ER",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+291"},{name:"Estonia",code:"EE",timezone:"FLE Standard Time",utc:"UTC+02:00",mobileCode:"+372"},{name:"Ethiopia",code:"ET",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+251"},{name:"Falkland Islands (Islas Malvinas)",code:"FK",timezone:"SA Eastern Standard Time",utc:"UTC-03:00",mobileCode:"+500"},{name:"Faroe Islands",code:"FO",timezone:"GMT Standard Time",utc:"UTC",mobileCode:"+298"},{name:"Fiji Islands",code:"FJ",timezone:"Fiji Standard Time",utc:"UTC+12:00",mobileCode:"+679"},{name:"Finland",code:"FI",timezone:"FLE Standard Time",utc:"UTC+02:00",mobileCode:"+358"},{name:"France",code:"FR",timezone:"Romance Standard Time",utc:"UTC+01:00",mobileCode:"+33"},{name:"French Guiana",code:"GF",timezone:"SA Eastern Standard Time",utc:"UTC-03:00",mobileCode:"+594"},{name:"French Polynesia",code:"PF",timezone:"Hawaiian Standard Time",utc:"UTC-10:00",mobileCode:"+689"},{name:"French Southern and Antarctic Lands",code:"TF",timezone:"West Asia Standard Time",utc:"UTC+05:00",mobileCode:"+"},{name:"Gabon",code:"GA",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+241"},{name:"Gambia, The",code:"GM",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+220"},{name:"Georgia",code:"GE",timezone:"Georgian Standard Time",utc:"UTC+04:00",mobileCode:"+995"},{name:"Germany",code:"DE",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+49"},{name:"Ghana",code:"GH",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+233"},{name:"Gibraltar",code:"GI",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+350"},{name:"Greece",code:"GR",timezone:"GTB Standard Time",utc:"UTC+02:00",mobileCode:"+30"}
1,{name:"Greenland",code:"GL",timezone:"Greenland Standard Time",utc:"UTC-03:00",mobileCode:"+299"},{name:"Grenada",code:"GD",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-473"},{name:"Guadeloupe",code:"GP",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+590"},{name:"Guam",code:"GU",timezone:"West Pacific Standard Time",utc:"UTC+10:00",mobileCode:"+1-671"},{name:"Guatemala",code:"GT",timezone:"Central America Standard Time",utc:"UTC-06:00",mobileCode:"+502"},{name:"Guernsey",code:"GG",timezone:"GMT Standard Time",utc:"UTC",mobileCode:"+44-1481"},{name:"Guinea",code:"GN",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+224"},{name:"Guinea-Bissau",code:"GW",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+245"},{name:"Guyana",code:"GY",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+592"},{name:"Haiti",code:"HT",timezone:"Eastern Standard Time",utc:"UTC-05:00",mobileCode:"+509"},{name:"Heard Island and McDonald Islands",code:"HM",timezone:"Mauritius Standard Time",utc:"UTC+04:00",mobileCode:"+ "},{name:"Honduras",code:"HN",timezone:"Central America Standard Time",utc:"UTC-06:00",mobileCode:"+504"},{name:"Hong Kong SAR",code:"HK",timezone:"China Standard Time",utc:"UTC+08:00",mobileCode:"+852"},{name:"Hungary",code:"HU",timezone:"Central Europe Standard Time",utc:"UTC+01:00",mobileCode:"+36"},{name:"Iceland",code:"IS",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+354"},{name:"India",code:"IN",timezone:"India Standard Time",utc:"UTC+05:30",mobileCode:"+91"},{name:"Indonesia",code:"ID",timezone:"SE Asia Standard Time",utc:"UTC+07:00",mobileCode:"+62"},{name:"Iran",code:"IR",timezone:"Iran Standard Time",utc:"UTC+03:30",mobileCode:"+98"},{name:"Iraq",code:"IQ",timezone:"Arabic Standard Time",utc:"UTC+03:00",mobileCode:"+964"},{name:"Ireland",code:"IE",timezone:"GMT Standard Time",utc:"UTC",mobileCode:"+353"},{name:"Israel",code:"IL",timezone:"Israel Standard Time",utc:"UTC+02:00",mobileCode:"+972"},{name:"Italy",code:"IT",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+39"},{name:"Jamaica",code:"JM",timezone:"SA Pacific Standard Time",utc:"UTC-05:00",mobileCode:"+1-876"},{name:"Jan Mayen",code:"SJ",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+47"},{name:"Japan",code:"JP",timezone:"Tokyo Standard Time",utc:"UTC+09:00",mobileCode:"+81"},{name:"Jersey",code:"JE",timezone:"GMT Standard Time",utc:"UTC",mobileCode:"+44-1534"},{name:"Jordan",code:"JO",timezone:"Jordan Standard Time",utc:"UTC+02:00",mobileCode:"+962"},{name:"Kazakhstan",code:"KZ",timezone:"Central Asia Standard Time",utc:"UTC+06:00",mobileCode:"+7"},{name:"Kenya",code:"KE",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+254"},{name:"Kiribati",code:"KI",timezone:"UTC+12",utc:"UTC+12:00",mobileCode:"+686"},{name:"Korea",code:"KR",timezone:"Korea Standard Time",utc:"UTC+09:00",mobileCode:"+82"},{name:"Kosovo",code:"XK",timezone:"Central European Standard Time",utc:"UTC+01:00",mobileCode:"+"},{name:"Kuwait",code:"KW",timezone:"Arab Standard Time",utc:"UTC+03:00",mobileCode:"+965"},{name:"Kyrgyzstan",code:"KG",timezone:"Central Asia Standard Time",utc:"UTC+06:00",mobileCode:"+996"},{name:"Laos",code:"LA",timezone:"SE Asia Standard Time",utc:"UTC+07:00",mobileCode:"+856"},{name:"Latvia",code:"LV",timezone:"FLE Standard Time",utc:"UTC+02:00",mobileCode:"+371"},{name:"Lebanon",code:"LB",timezone:"Middle East Standard Time",utc:"UTC+02:00",mobileCode:"+961"},{name:"Lesotho",code:"LS",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+266"},{name:"Liberia",code:"LR",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+231"},{name:"Libya",code:"LY",timezone:"E. Europe Standard Time",utc:"UTC+02:00",mobileCode:"+218"},{name:"Liechtenstein",code:"LI",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+423"},{name:"Lithuania",code:"LT",timezone:"FLE Standard Time",utc:"UTC+02:00",mobileCode:"+370"},{name:"Luxembourg",code:"LU",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+352"}
1,{name:"Macao SAR",code:"MO",timezone:"China Standard Time",utc:"UTC+08:00",mobileCode:"+853"},{name:"Macedonia, Former Yugoslav Republic of",code:"MK",timezone:"Central European Standard Time",utc:"UTC+01:00",mobileCode:"+389"},{name:"Madagascar",code:"MG",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+261"},{name:"Malawi",code:"MW",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+265"},{name:"Malaysia",code:"MY",timezone:"Singapore Standard Time",utc:"UTC+08:00",mobileCode:"+60"},{name:"Maldives",code:"MV",timezone:"West Asia Standard Time",utc:"UTC+05:00",mobileCode:"+960"},{name:"Mali",code:"ML",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+223"},{name:"Malta",code:"MT",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+356"},{name:"Man, Isle of",code:"IM",timezone:"GMT Standard Time",utc:"UTC",mobileCode:"+44-1624"},{name:"Marshall Islands",code:"MH",timezone:"UTC+12",utc:"UTC+12:00",mobileCode:"+692"},{name:"Martinique",code:"MQ",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+596"},{name:"Mauritania",code:"MR",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+222"},{name:"Mauritius",code:"MU",timezone:"Mauritius Standard Time",utc:"UTC+04:00",mobileCode:"+230"},{name:"Mayotte",code:"YT",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+262"},{name:"Mexico",code:"MX",timezone:"Central Standard Time (Mexico)",utc:"UTC-06:00",mobileCode:"+52"},{name:"Micronesia",code:"FM",timezone:"West Pacific Standard Time",utc:"UTC+10:00",mobileCode:"+691"},{name:"Moldova",code:"MD",timezone:"GTB Standard Time",utc:"UTC+02:00",mobileCode:"+373"},{name:"Monaco",code:"MC",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+377"},{name:"Mongolia",code:"MN",timezone:"Ulaanbaatar Standard Time",utc:"UTC+08:00",mobileCode:"+976"},{name:"Montenegro",code:"ME",timezone:"Central European Standard Time",utc:"UTC+01:00",mobileCode:"+382"},{name:"Montserrat",code:"MS",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-664"},{name:"Morocco",code:"MA",timezone:"Morocco Standard Time",utc:"UTC",mobileCode:"+212"},{name:"Mozambique",code:"MZ",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+258"},{name:"Myanmar",code:"MM",timezone:"Myanmar Standard Time",utc:"UTC+06:30",mobileCode:"+95"},{name:"Namibia",code:"NA",timezone:"Namibia Standard Time",utc:"UTC+01:00",mobileCode:"+264"},{name:"Nauru",code:"NR",timezone:"UTC+12",utc:"UTC+12:00",mobileCode:"+674"},{name:"Nepal",code:"NP",timezone:"Nepal Standard Time",utc:"UTC+05:45",mobileCode:"+977"},{name:"Netherlands",code:"NL",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+31"},{name:"New Caledonia",code:"NC",timezone:"Central Pacific Standard Time",utc:"UTC+11:00",mobileCode:"+687"},{name:"New Zealand",code:"NZ",timezone:"New Zealand Standard Time",utc:"UTC+12:00",mobileCode:"+64"},{name:"Nicaragua",code:"NI",timezone:"Central America Standard Time",utc:"UTC-06:00",mobileCode:"+505"},{name:"Niger",code:"NE",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+227"},{name:"Nigeria",code:"NG",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+234"},{name:"Niue",code:"NU",timezone:"UTC-11",utc:"UTC-11:00",mobileCode:"+683"},{name:"Norfolk Island",code:"NF",timezone:"Central Pacific Standard Time",utc:"UTC+11:00",mobileCode:"+672"},{name:"North Korea",code:"KP",timezone:"Korea Standard Time",utc:"UTC+09:00",mobileCode:"+850"},{name:"Northern Mariana Islands",code:"MP",timezone:"West Pacific Standard Time",utc:"UTC+10:00",mobileCode:"+1-670"},{name:"Norway",code:"NO",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+47"},{name:"Oman",code:"OM",timezone:"Arabian Standard Time",utc:"UTC+04:00",mobileCode:"+968"},{name:"Pakistan",code:"PK",timezone:"Pakistan Standard Time",utc:"UTC+05:00",mobileCode:"+92"},{name:"Palau",code:"PW",timezone:"Tokyo Standard Time",utc:"UTC+09:00",mobileCode:"+680"},{name:"Palestinian Authority",code:"PS",timezone:"Egypt Standard Time",utc:"UTC+02:00",mobileCode:"+970"},{name:"Panama",code:"PA",timezone:"SA Pacific Standard Time",utc:"UTC-05:00",mobileCode:"+507"},{name:"Papua New Guinea",code:"PG",timezone:"West Pacific Standard Time",utc:"UTC+10:00",mobileCode:"+675"},{name:"Paraguay",code:"PY",timezone:"Paraguay Standard Time",utc:"UTC-04:00",mobileCode:"+595"},{name:"Peru",code:"PE",timezone:"SA Pacific Standard Time",utc:"UTC-05:00",mobileCode:"+51"},{name:"Philippines",code:"PH",timezone:"Singapore Standard Time",utc:"UTC+08:00",mobileCode:"+63"},{name:"Pitcairn Islands",code:"PN",timezone:"Pacific Standard Time",utc:"UTC-08:00",mobileCode:"+870"},{name:"Poland",code:"PL",timezone:"Central European Standard Time",utc:"UTC+01:00",mobileCode:"+48"},{name:"Portugal",code:"PT",timezone:"GMT Standard Time",utc:"UTC",mobileCode:"+351"},{name:"Puerto Rico",code:"PR",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-787 and 1-939"},{name:"Qatar",code:"QA",timezone:"Arab Standard Time",utc:"UTC+03:00",mobileCode:"+974"},{name:"Reunion",code:"RE",timezone:"Mauritius Standard Time",utc:"UTC+04:00",mobileCode:"+262"},{name:"Romania",code:"RO",timezone:"GTB Standard Time",utc:"UTC+02:00",mobileCode:"+40"},{name:"Russia",code:"RU",timezone:"Russian Standard Time",utc:"UTC+03:00",mobileCode:"+7"},{name:"Rwanda",code:"RW",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+250"},{name:"Saint Barthélemy",code:"BL",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+590"},{name:"Saint Helena, Ascension and Tristan da Cunha",code:"SH",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+290"},{name:"Saint Kitts and Nevis",code:"KN",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-869"},{name:"Saint Lucia",code:"LC",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-758"},{name:"Saint Martin (French part)",code:"MF",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+590"},{name:"Saint Pierre and Miquelon",code:"PM",timezone:"Greenland Standard Time",utc:"UTC-03:00",mobileCode:"+508"},{name:"Saint Vincent and the Grenadines",code:"VC",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-784"},{name:"Samoa",code:"WS",timezone:"Samoa Standard Time",utc:"UTC+13:00",mobileCode:"+685"},{name:"San Marino",code:"SM",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+378"},{name:"São Tomé and Príncipe",code:"ST",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+239"},{name:"Saudi Arabia",code:"SA",timezone:"Arab Standard Time",utc:"UTC+03:00",mobileCode:"+966"},{name:"Senegal",code:"SN",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+221"},{name:"Serbia",code:"RS",timezone:"Central Europe Standard Time",utc:"UTC+01:00",mobileCode:"+381"},{name:"Seychelles",code:"SC",timezone:"Mauritius Standard Time",utc:"UTC+04:00",mobileCode:"+248"},{name:"Sierra Leone",code:"SL",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+232"},{name:"Singapore",code:"SG",timezone:"Singapore Standard Time",utc:"UTC+08:00",mobileCode:"+65"},{name:"Sint Maarten (Dutch part)",code:"SX",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+599"},{name:"Slovakia",code:"SK",timezone:"Central Europe Standard Time",utc:"UTC+01:00",mobileCode:"+421"},{name:"Slovenia",code:"SI",timezone:"Central Europe Standard Time",utc:"UTC+01:00",mobileCode:"+386"},{name:"Solomon Islands",code:"SB",timezone:"Central Pacific Standard Time",utc:"UTC+11:00",mobileCode:"+677"},{name:"Somalia",code:"SO",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+252"},{name:"South Africa",code:"ZA",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",timezone:"UTC-02",utc:"UTC-02:00",mobileCode:"+"},{name:"South Sudan",code:"SS",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+211"},{name:"Spain",code:"ES",timezone:"Romance Standard Time",utc:"UTC+01:00",mobileCode:"+34"},{name:"Sri Lanka",code:"LK",timezone:"Sri Lanka Standard Time",utc:"UTC+05:30",mobileCode:"+94"},{name:"Sudan",code:"SD",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+249"},{name:"Suriname",code:"SR",timezone:"SA Eastern Standard Time",utc:"UTC-03:00",mobileCode:"+597"},{name:"Svalbard",code:"SJ",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+47"},{name:"Swaziland",code:"SZ",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+268"},{name:"Sweden",code:"SE",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+46"},{name:"Switzerland",code:"CH",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+41"},{name:"Syria",code:"SY",timezone:"Syria Standard Time",utc:"UTC+02:00",mobileCode:"+963"},{name:"Taiwan",code:"TW",timezone:"Taipei Standard Time",utc:"UTC+08:00",mobileCode:"+886"},{name:"Tajikistan",code:"TJ",timezone:"West Asia Standard Time",utc:"UTC+05:00",mobileCode:"+992"},{name:"Tanzania",code:"TZ",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+255"},{name:"Thailand",code:"TH",timezone:"SE Asia Standard Time",utc:"UTC+07:00",mobileCode:"+66"},{name:"Togo",code:"TG",timezone:"Greenwich Standard Time",utc:"UTC",mobileCode:"+228"},{name:"Tokelau",code:"TK",timezone:"Tonga Standard Time",utc:"UTC+13:00",mobileCode:"+690"},{name:"Tonga",code:"TO",timezone:"Tonga Standard Time",utc:"UTC+13:00",mobileCode:"+676"},{name:"Trinidad and Tobago",code:"TT",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-868"},{name:"Tunisia",code:"TN",timezone:"W. Central Africa Standard Time",utc:"UTC+01:00",mobileCode:"+216"},{name:"Turkey",code:"TR",timezone:"Turkey Standard Time",utc:"UTC+02:00",mobileCode:"+90"},{name:"Turkmenistan",code:"TM",timezone:"West Asia Standard Time",utc:"UTC+05:00",mobileCode:"+993"},{name:"Turks and Caicos Islands",code:"TC",timezone:"Eastern Standard Time",utc:"UTC-05:00",mobileCode:"+1-649"}
1,{name:"Tuvalu",code:"TV",timezone:"UTC+12",utc:"UTC+12:00",mobileCode:"+688"},{name:"U.S. Minor Outlying Islands",code:"UM",timezone:"UTC-11",utc:"UTC-11:00",mobileCode:"+1"},{name:"Uganda",code:"UG",timezone:"E. Africa Standard Time",utc:"UTC+03:00",mobileCode:"+256"},{name:"Ukraine",code:"UA",timezone:"FLE Standard Time",utc:"UTC+02:00",mobileCode:"+380"},{name:"United Arab Emirates",code:"AE",timezone:"Arabian Standard Time",utc:"UTC+04:00",mobileCode:"+971"},{name:"United Kingdom",code:"GB",timezone:"GMT Standard Time",utc:"UTC",mobileCode:"+44"},{name:"United States",code:"US",timezone:"Pacific Standard Time",utc:"UTC-08:00",mobileCode:"+1"},{name:"Uruguay",code:"UY",timezone:"Montevideo Standard Time",utc:"UTC-03:00",mobileCode:"+598"},{name:"Uzbekistan",code:"UZ",timezone:"West Asia Standard Time",utc:"UTC+05:00",mobileCode:"+998"},{name:"Vanuatu",code:"VU",timezone:"Central Pacific Standard Time",utc:"UTC+11:00",mobileCode:"+678"},{name:"Vatican City",code:"VA",timezone:"W. Europe Standard Time",utc:"UTC+01:00",mobileCode:"+379"},{name:"Vietnam",code:"VN",timezone:"SE Asia Standard Time",utc:"UTC+07:00",mobileCode:"+84"},{name:"Virgin Islands, U.S.",code:"VI",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-340"},{name:"Virgin Islands, British",code:"VG",timezone:"SA Western Standard Time",utc:"UTC-04:00",mobileCode:"+1-284"},{name:"Wallis and Futuna",code:"WF",timezone:"UTC+12",utc:"UTC+12:00",mobileCode:"+681"},{name:"Yemen",code:"YE",timezone:"Arab Standard Time",utc:"UTC+03:00",mobileCode:"+967"},{name:"Zambia",code:"ZM",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+260"},{name:"Zimbabwe",code:"ZW",timezone:"South Africa Standard Time",utc:"UTC+02:00",mobileCode:"+263"}];let ot=a=>{var Ie,te,Ve,qe;const{handleSubmit:r,loading:u,auth:n,setCroppedImage:p,initialValues:m,selectedTimezone:h,selectedCountry:R,setSelectedCountry:S,changeTimezone:q}=a,[y,w]=i.useState(""),[b,D]=i.useState(""),[o,k]=i.useState(""),[j,Y]=i.useState({x:0,y:0}),[V,A]=i.useState(0),[z,ne]=i.useState(1),[J,$]=i.useState(""),[ue,be]=i.useState(null),[ee,L]=i.useState(!0),xe=i.useCallback((l,Z)=>{be(Z)},[]),se=l=>new Promise((Z,Ce)=>{const U=new Image;U.addEventListener("load",()=>Z(U)),U.addEventListener("error",ae=>Ce(ae)),U.setAttribute("crossOrigin","anonymous"),U.src=l});function Ee(l){return l*Math.PI/180}async function re(l,Z,Ce=0){const U=await se(l),ae=document.createElement("canvas"),E=ae.getContext("2d"),d=2*(Math.max(U.width,U.height)/2*Math.sqrt(2));ae.width=d,ae.height=d,E.translate(d/2,d/2),E.rotate(Ee(Ce)),E.translate(-d/2,-d/2),E.drawImage(U,d/2-U.width*.5,d/2-U.height*.5);const Ye=E.getImageData(0,0,d,d);return ae.width=Z.width,ae.height=Z.height,E.putImageData(Ye,Math.round(0-d/2+U.width*.5-Z.x),Math.round(0-d/2+U.height*.5-Z.y)),new Promise(Ze=>{ae.toBlob(Fe=>{$({blob:Fe}),Ze(URL.createObjectURL(Fe))},b.type)})}const M=i.useCallback(async()=>{try{const l=await re(o,ue,V);w(l),L(!0)}catch(l){console.error(l)}},[ue,V]);i.useCallback(()=>{p("")},[]),i.useEffect(()=>{if(J){const l=new File([J.blob],b.name,{type:b.contentType,lastModified:Date.now()});p(l)}},[J]),i.useEffect(()=>{var l;if((l=n.user)!=null&&l.country){let Z=wt.find(Ce=>{var U;return Ce.name===((U=n.user)==null?void 0:U.country)});if(!Z)return;we(Z)}},[n.user]);const[B,Te]=i.useState(!1),Le=()=>{Te(!B)},we=l=>{S(l),Te(!1)},[Se,Pe]=i.useState(!1),[ye,Ke]=i.useState(!1),[Re,pe]=i.useState(!1);return ee?e.jsx("form",{onSubmit:r,children:e.jsxs("div",{className:"profile_tab_content",children:[e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"w-full py-4 flex md:flex-row flex-col gap-6 md:gap-0 md:pl-[30px] px-6 md:pr-[26px] md:justify-between items-center",children:[e.jsxs("div",{className:"flex flex-col md:flex-row gap-3 items-center ",children:[e.jsxs("div",{style:{border:"1px dashed #006766"},className:"profile_edit  min-h-[100px] max-h-[100px] min-w-[100px] max-w-[100px] ",children:[e.jsx("img",{className:"!w-full !h-full rounded-full !object-cover",src:y||(m.profile_img?m.profile_img:vt),alt:"Avtar"}),e.jsxs("div",{className:"fileUploadEdit flex !flex-col !items-center !p-0 !justify-center",children:[e.jsx("input",{type:"file",id:"uploadImg",accept:"image/png, image/jpeg",name:"profilePic",onChange:l=>{["image/png","image/jpeg"].includes(l.target.files[0].type)?(k(URL.createObjectURL(l.target.files[0])),L(!1),D(l.target.files[0])):f.error("Only jpg or png image are allowed",{hideProgressBar:!0,autoClose:2e3})}}),"Change Photo"]})]}),e.jsxs("div",{className:"flex flex-col items-center md:items-start w-full ",children:[e.jsx("div",{className:"!text-[#006766] text-lg not-italic font-bold !leading-[31px] tracking-[0.36px] uppercase",children:((Ie=n.user)==null?void 0:Ie.firstName)+" "+((te=n.user)==null?void 0:te.lastName)}),e.jsx("div",{className:"!text-[#252525] text-base not-italic font-medium leading-[normal]",children:(Ve=n.user)==null?void 0:Ve.email}),e.jsxs("div",{className:"mt-3 text-[#252525]/40 flex items-center gap-[9px] ",children:[e.jsx("svg",{width:13,height:17,viewBox:"0 0 13 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.92554 6.42188C8.92554 7.82812 7.80054 8.92188 6.42554 8.92188C5.01929 8.92188 3.92554 7.82812 3.92554 6.42188C3.92554 5.04688 5.01929 3.92188 6.42554 3.92188C7.80054 3.92188 8.92554 5.04688 8.92554 6.42188ZM6.42554 5.42188C5.86304 5.42188 5.42554 5.89062 5.42554 6.42188C5.42554 6.98438 5.86304 7.42188 6.42554 7.42188C6.95679 7.42188 7.42554 6.98438 7.42554 6.42188C7.42554 5.89062 6.95679 5.42188 6.42554 5.42188ZM12.4255 6.42188C12.4255 9.17188 8.76929 14.0156 7.14429 16.0469C6.76929 16.5156 6.05054 16.5156 5.67554 16.0469C4.05054 14.0156 0.425537 9.17188 0.425537 6.42188C0.425537 3.10938 3.08179 0.421875 6.42554 0.421875C9.73804 0.421875 12.4255 3.10938 12.4255 6.42188ZM6.42554 1.92188C3.92554 1.92188 1.92554 3.95312 1.92554 6.42188C1.92554 6.82812 2.05054 7.42188 2.39429 8.23438C2.70679 8.98438 3.17554 9.85938 3.70679 10.7344C4.61304 12.1719 5.64429 13.5469 6.42554 14.5469C7.17554 13.5469 8.20679 12.1719 9.11304 10.7344C9.64429 9.85938 10.113 8.98438 10.4255 8.23438C10.7693 7.42188 10.9255 6.82812 10.9255 6.42188C10.9255 3.95312 8.89429 1.92188 6.42554 1.92188Z",fill:"currentColor"})}),e.jsx("span",{className:"text-inherit text-base not-italic font-medium leading-[normal] ",children:n.user.country?n.user.country:"Los Angeles, California, USA"})]})]})]}
1),(qe=n.user)!=null&&qe.isVerfied?e.jsxs("div",{className:"flex items-center gap-2 text-[#006766]",children:[e.jsx("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.01929 11.5469C7.67554 11.8906 7.14429 11.8906 6.80054 11.5469L4.80054 9.54688C4.45679 9.20312 4.45679 8.67188 4.80054 8.32812C5.14429 7.98438 5.67554 7.98438 6.01929 8.32812L7.42554 9.70312L10.8005 6.32812C11.1443 5.98438 11.6755 5.98438 12.0193 6.32812C12.363 6.67188 12.363 7.20312 12.0193 7.54688L8.01929 11.5469ZM16.4255 8.92188C16.4255 13.3594 12.8318 16.9219 8.42554 16.9219C3.98804 16.9219 0.425537 13.3594 0.425537 8.92188C0.425537 4.51562 3.98804 0.921875 8.42554 0.921875C12.8318 0.921875 16.4255 4.51562 16.4255 8.92188ZM8.42554 2.42188C4.83179 2.42188 1.92554 5.35938 1.92554 8.92188C1.92554 12.5156 4.83179 15.4219 8.42554 15.4219C11.988 15.4219 14.9255 12.5156 14.9255 8.92188C14.9255 5.35938 11.988 2.42188 8.42554 2.42188Z",fill:"currentColor"})}),e.jsx("span",{className:"text-inherit text-base not-italic font-medium leading-[normal]",children:"Account Verified"})]}):e.jsxs("div",{className:"flex items-center gap-2 text-[#CA0000]",children:[e.jsx("svg",{width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5.89429 5.46875C6.17554 5.1875 6.64429 5.1875 6.92554 5.46875L8.39429 6.96875L9.89429 5.46875C10.1755 5.1875 10.6443 5.1875 10.9255 5.46875C11.238 5.78125 11.238 6.25 10.9255 6.53125L9.45679 8L10.9255 9.46875C11.238 9.78125 11.238 10.25 10.9255 10.5312C10.6443 10.8438 10.1755 10.8438 9.89429 10.5312L8.39429 9.0625L6.92554 10.5312C6.64429 10.8438 6.17554 10.8438 5.89429 10.5312C5.58179 10.25 5.58179 9.78125 5.89429 9.46875L7.36304 8L5.89429 6.53125C5.58179 6.25 5.58179 5.78125 5.89429 5.46875ZM16.4255 8C16.4255 12.4375 12.8318 16 8.42554 16C3.98804 16 0.425537 12.4375 0.425537 8C0.425537 3.59375 3.98804 0 8.42554 0C12.8318 0 16.4255 3.59375 16.4255 8ZM8.42554 1.5C4.83179 1.5 1.92554 4.4375 1.92554 8C1.92554 11.5938 4.83179 14.5 8.42554 14.5C11.988 14.5 14.9255 11.5938 14.9255 8C14.9255 4.4375 11.988 1.5 8.42554 1.5Z",fill:"#CA0000"})}),e.jsx("span",{className:"text-inherit text-base not-italic font-medium leading-[normal]",children:"Not Verified"})]})]}),e.jsxs("div",{className:"py-[30px] px-[38px] flex flex-col gap-6 xl:max-h-[300px]",style:{borderRadius:"11px",border:"1px solid #EBEBEB"},children:[e.jsx(T,{varient:"green-head",children:"Personal Information"}),e.jsxs("div",{className:"grid-cont",children:[e.jsxs("div",{className:"fields_group",children:[e.jsx("label",{className:"text-[#252525]/40 text-center font-Montserrat text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase",children:"First Name"}),e.jsx(ge,{name:"firstName",component:"input",type:"text",className:"form-control font-Montserrat",required:!0})]}),e.jsxs("div",{className:"fields_group",children:[e.jsx("label",{className:"text-[#252525]/40 text-center text-sm not-italic font-Montserrat font-medium leading-[normal] tracking-[0.28px] uppercase",children:"Last Name"}),e.jsx(ge,{name:"lastName",component:"input",type:"text",className:"form-control font-Montserrat",required:!0})," "]}),e.jsxs("div",{className:"fields_group",children:[e.jsx("label",{className:"text-[#252525]/40 font-Montserrat text-center text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase",children:"Timezone"}),e.jsx($t,{value:h.label?h:m.timezone?m.timezone:{},onChange:q,className:"form-control font-Montserrat"})]})]}),e.jsxs("div",{className:"grid-cont",children:[e.jsxs("div",{className:"fields_group grow",children:[e.jsx("label",{className:"text-[#252525]/40 text-center font-Montserrat text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase",children:"EMAIL ADDRESS"}),e.jsx(ge,{name:"email",component:"input",type:"text",className:"form-control font-Montserrat",required:!0})]}),e.jsxs("div",{className:"fields_group grow",children:[e.jsx("label",{className:"text-[#252525]/40 text-center text-sm not-italic font-Montserrat font-medium leading-[normal] tracking-[0.28px] uppercase",children:"Phone"}),e.jsx(ge,{name:"contactNo",placeholder:"(123) 000 1234",component:"input",type:"text",className:"form-control font-Montserrat",required:!0})," "]}),e.jsxs("div",{className:"fields_group grow relative",children:[e.jsx("label",{className:"text-[#252525]/40 text-center text-sm not-italic font-Montserrat font-medium leading-[normal] tracking-[0.28px] uppercase",children:"Country"}),e.jsxs("div",{className:"dropdown ",children:[e.jsx("div",{className:"text-[#252525] form-control truncate  !p-[14px] !text-base !not-italic !font-medium !leading-[normal] !capitalize !font-Montserrat",onClick:Le,children:R?R.name:"Select a Country"}),B&&e.jsx("div",{className:"dropdown-content cursor-pointer max-h-[180px] overflow-auto flex flex-col gap-2 bg-white border px-3 py-2  border-[#e5e5e5]",children:wt.map(l=>e.jsx("div",{className:"country-item text-black",onClick:()=>we(l),children:l.name},l.code))}),e.jsx("svg",{className:`${B?"-rotate-180":""} right-4 top-5 absolute`,width:15,height:8,viewBox:"0 0 15 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M14.3259 1.68555L8.35715 7.4043C8.16965 7.56055 7.98215 7.62305 7.8259 7.62305C7.6384 7.62305 7.4509 7.56055 7.29465 7.43555L1.29465 1.68555C0.982147 1.4043 0.982147 0.904297 1.2634 0.623047C1.54465 0.310547 2.04465 0.310547 2.3259 0.591797L7.8259 5.8418L13.2946 0.591797C13.5759 0.310547 14.0759 0.310547 14.3571 0.623047C14.6384 0.904297 14.6384 1.4043 14.3259 1.68555Z",fill:"#252525"})})]})]})]}),e.jsx("div",{className:"flex md:flex-row flex-col gap-3 md:max-w-[516px] md:max-h-[74px]"})]}),e.jsxs("div",{className:"py-[30px] px-[38px] flex flex-col gap-6",style:{borderRadius:"11px",border:"1px solid #EBEBEB"},children:[e.jsx(T,{varient:"green-head",children:"Password & Security"}),e.jsxs("div",{className:"fields_group max-w-[536px] relative",children:[e.jsx("label",{className:"text-[#252525]/40 font-Montserrat text-start   text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase",children:"Current Password"}),e.jsx(ge,{name:"oldpassword",component:"input",type:Se?"text":"password",className:"form-control font-Montserrat"}),Se?e.jsx("svg",{onClick:()=>Pe(l=>!l),className:"cursor-pointer absolute right-2 top-11 max-[390px]:top-[3.75rem]",width:14,height:11,viewBox:"0 0 13 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.96484 4.74023C3.96484 3.37305 5.07812 2.24023 6.46484 2.24023C7.83203 2.24023 8.96484 3.37305 8.96484 4.74023C8.96484 
16.12695 7.83203 7.24023 6.46484 7.24023C5.07812 7.24023 3.96484 6.12695 3.96484 4.74023ZM6.46484 6.30273C7.32422 6.30273 8.02734 5.61914 8.02734 4.74023C8.02734 3.88086 7.32422 3.17773 6.46484 3.17773C6.44531 3.17773 6.42578 3.17773 6.40625 3.17773C6.44531 3.29492 6.46484 3.39258 6.46484 3.49023C6.46484 4.19336 5.89844 4.74023 5.21484 4.74023C5.09766 4.74023 5 4.74023 4.90234 4.70117C4.90234 4.7207 4.90234 4.74023 4.90234 4.74023C4.90234 5.61914 5.58594 6.30273 6.46484 6.30273ZM2.69531 1.94727C3.61328 1.08789 4.88281 0.365234 6.46484 0.365234C8.02734 0.365234 9.29688 1.08789 10.2148 1.94727C11.1328 2.78711 11.7383 3.80273 12.0312 4.50586C12.0898 4.66211 12.0898 4.83789 12.0312 4.99414C11.7383 5.67773 11.1328 6.69336 10.2148 7.55273C9.29688 8.41211 8.02734 9.11523 6.46484 9.11523C4.88281 9.11523 3.61328 8.41211 2.69531 7.55273C1.77734 6.69336 1.17188 5.67773 0.878906 4.99414C0.820312 4.83789 0.820312 4.66211 0.878906 4.50586C1.17188 3.80273 1.77734 2.78711 2.69531 1.94727ZM6.46484 1.30273C5.17578 1.30273 4.14062 1.88867 3.33984 2.63086C2.57812 3.33398 2.07031 4.1543 1.79688 4.74023C2.07031 5.32617 2.57812 6.16602 3.33984 6.86914C4.14062 7.61133 5.17578 8.17773 6.46484 8.17773C7.73438 8.17773 8.76953 7.61133 9.57031 6.86914C10.332 6.16602 10.8398 5.32617 11.1133 4.74023C10.8398 4.1543 10.332 3.33398 9.57031 2.63086C8.76953 1.88867 7.73438 1.30273 6.46484 1.30273Z",fill:"#707070"})}):e.jsx("svg",{onClick:()=>Pe(l=>!l),className:"cursor-pointer absolute right-2 top-11 max-[390px]:top-[3.75rem]",width:14,height:11,viewBox:"0 0 14 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.76953 1.90039C4.64844 1.23633 5.74219 0.708984 7.08984 0.708984C8.65234 0.708984 9.92188 1.43164 10.8398 2.29102C11.7578 3.13086 12.3633 4.14648 12.6562 4.84961C12.7148 5.00586 12.7148 5.18164 12.6562 5.33789C12.4023 5.96289 11.875 6.86133 11.0938 7.64258L13.1445 9.26367C13.3594 9.41992 13.3984 9.71289 13.2227 9.9082C13.0664 10.123 12.7734 10.1621 12.5781 9.98633L1.01562 0.923828C0.800781 0.767578 0.761719 0.474609 0.9375 0.279297C1.09375 0.0644531 1.38672 0.0253906 1.58203 0.201172L3.76953 1.90039ZM4.53125 2.50586L5.42969 3.20898C5.87891 2.81836 6.44531 2.58398 7.08984 2.58398C8.45703 2.58398 9.58984 3.7168 9.58984 5.08398C9.58984 5.51367 9.47266 5.9043 9.29688 6.23633L10.3516 7.05664C11.0156 6.39258 11.4844 5.63086 11.7383 5.08398C11.4648 4.49805 10.957 3.67773 10.1953 2.97461C9.39453 2.23242 8.35938 1.64648 7.08984 1.64648C6.09375 1.64648 5.23438 1.99805 4.53125 2.50586ZM8.53516 5.65039C8.61328 5.47461 8.65234 5.2793 8.65234 5.08398C8.65234 4.22461 7.94922 3.52148 7.08984 3.52148C7.07031 3.52148 7.05078 3.52148 7.03125 3.52148C7.07031 3.63867 7.08984 3.73633 7.08984 3.83398C7.08984 4.04883 7.03125 4.22461 6.95312 4.40039L8.53516 5.65039ZM8.73047 8.18945L9.55078 8.83398C8.82812 9.22461 8.00781 9.45898 7.08984 9.45898C5.50781 9.45898 4.23828 8.75586 3.32031 7.89648C2.40234 7.03711 1.79688 6.02148 1.50391 5.33789C1.44531 5.18164 1.44531 5.00586 1.50391 4.84961C1.69922 4.40039 2.01172 3.83398 2.46094 3.24805L3.18359 3.83398C2.83203 4.2832 2.57812 4.73242 2.42188 5.08398C2.69531 5.66992 3.20312 6.50977 3.96484 7.21289C4.76562 7.95508 5.80078 8.52148 7.08984 8.52148C7.67578 8.52148 8.22266 8.4043 8.73047 8.18945ZM4.58984 5.08398C4.58984 5.04492 4.58984 4.98633 4.58984 4.92773L5.68359 5.78711C5.87891 6.19727 6.26953 6.50977 6.73828 6.60742L7.83203 7.48633C7.59766 7.54492 7.34375 7.58398 7.07031 7.58398C5.70312 7.58398 4.57031 6.4707 4.57031 5.08398H4.58984Z",fill:"#707070"})})]}),e.jsxs("div",{className:"grid-cont max-w-[536px]",children:[e.jsxs("div",{className:"fields_group relative",children:[e.jsx("label",{className:"text-[#252525]/40 font-Montserrat  text-start   text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase",children:"New Password"}),e.jsx(ge,{name:"password",component:"input",type:ye?"text":"password",className:"form-control font-Montserrat"}),ye?e.jsx("svg",{onClick:()=>Ke(l=>!l),className:"cursor-pointer absolute right-2 top-11 max-[390px]:top-[3.75rem]",width:14,height:11,viewBox:"0 0 13 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.96484 4.74023C3.96484 3.37305 5.07812 2.24023 6.46484 2.24023C7.83203 2.24023 8.96484 3.37305 8.96484 4.74023C8.96484 
16.12695 7.83203 7.24023 6.46484 7.24023C5.07812 7.24023 3.96484 6.12695 3.96484 4.74023ZM6.46484 6.30273C7.32422 6.30273 8.02734 5.61914 8.02734 4.74023C8.02734 3.88086 7.32422 3.17773 6.46484 3.17773C6.44531 3.17773 6.42578 3.17773 6.40625 3.17773C6.44531 3.29492 6.46484 3.39258 6.46484 3.49023C6.46484 4.19336 5.89844 4.74023 5.21484 4.74023C5.09766 4.74023 5 4.74023 4.90234 4.70117C4.90234 4.7207 4.90234 4.74023 4.90234 4.74023C4.90234 5.61914 5.58594 6.30273 6.46484 6.30273ZM2.69531 1.94727C3.61328 1.08789 4.88281 0.365234 6.46484 0.365234C8.02734 0.365234 9.29688 1.08789 10.2148 1.94727C11.1328 2.78711 11.7383 3.80273 12.0312 4.50586C12.0898 4.66211 12.0898 4.83789 12.0312 4.99414C11.7383 5.67773 11.1328 6.69336 10.2148 7.55273C9.29688 8.41211 8.02734 9.11523 6.46484 9.11523C4.88281 9.11523 3.61328 8.41211 2.69531 7.55273C1.77734 6.69336 1.17188 5.67773 0.878906 4.99414C0.820312 4.83789 0.820312 4.66211 0.878906 4.50586C1.17188 3.80273 1.77734 2.78711 2.69531 1.94727ZM6.46484 1.30273C5.17578 1.30273 4.14062 1.88867 3.33984 2.63086C2.57812 3.33398 2.07031 4.1543 1.79688 4.74023C2.07031 5.32617 2.57812 6.16602 3.33984 6.86914C4.14062 7.61133 5.17578 8.17773 6.46484 8.17773C7.73438 8.17773 8.76953 7.61133 9.57031 6.86914C10.332 6.16602 10.8398 5.32617 11.1133 4.74023C10.8398 4.1543 10.332 3.33398 9.57031 2.63086C8.76953 1.88867 7.73438 1.30273 6.46484 1.30273Z",fill:"#707070"})}):e.jsx("svg",{onClick:()=>Ke(l=>!l),className:"cursor-pointer absolute right-2 top-11 max-[390px]:top-[3.75rem]",width:14,height:11,viewBox:"0 0 14 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.76953 1.90039C4.64844 1.23633 5.74219 0.708984 7.08984 0.708984C8.65234 0.708984 9.92188 1.43164 10.8398 2.29102C11.7578 3.13086 12.3633 4.14648 12.6562 4.84961C12.7148 5.00586 12.7148 5.18164 12.6562 5.33789C12.4023 5.96289 11.875 6.86133 11.0938 7.64258L13.1445 9.26367C13.3594 9.41992 13.3984 9.71289 13.2227 9.9082C13.0664 10.123 12.7734 10.1621 12.5781 9.98633L1.01562 0.923828C0.800781 0.767578 0.761719 0.474609 0.9375 0.279297C1.09375 0.0644531 1.38672 0.0253906 1.58203 0.201172L3.76953 1.90039ZM4.53125 2.50586L5.42969 3.20898C5.87891 2.81836 6.44531 2.58398 7.08984 2.58398C8.45703 2.58398 9.58984 3.7168 9.58984 5.08398C9.58984 5.51367 9.47266 5.9043 9.29688 6.23633L10.3516 7.05664C11.0156 6.39258 11.4844 5.63086 11.7383 5.08398C11.4648 4.49805 10.957 3.67773 10.1953 2.97461C9.39453 2.23242 8.35938 1.64648 7.08984 1.64648C6.09375 1.64648 5.23438 1.99805 4.53125 2.50586ZM8.53516 5.65039C8.61328 5.47461 8.65234 5.2793 8.65234 5.08398C8.65234 4.22461 7.94922 3.52148 7.08984 3.52148C7.07031 3.52148 7.05078 3.52148 7.03125 3.52148C7.07031 3.63867 7.08984 3.73633 7.08984 3.83398C7.08984 4.04883 7.03125 4.22461 6.95312 4.40039L8.53516 5.65039ZM8.73047 8.18945L9.55078 8.83398C8.82812 9.22461 8.00781 9.45898 7.08984 9.45898C5.50781 9.45898 4.23828 8.75586 3.32031 7.89648C2.40234 7.03711 1.79688 6.02148 1.50391 5.33789C1.44531 5.18164 1.44531 5.00586 1.50391 4.84961C1.69922 4.40039 2.01172 3.83398 2.46094 3.24805L3.18359 3.83398C2.83203 4.2832 2.57812 4.73242 2.42188 5.08398C2.69531 5.66992 3.20312 6.50977 3.96484 7.21289C4.76562 7.95508 5.80078 8.52148 7.08984 8.52148C7.67578 8.52148 8.22266 8.4043 8.73047 8.18945ZM4.58984 5.08398C4.58984 5.04492 4.58984 4.98633 4.58984 4.92773L5.68359 5.78711C5.87891 6.19727 6.26953 6.50977 6.73828 6.60742L7.83203 7.48633C7.59766 7.54492 7.34375 7.58398 7.07031 7.58398C5.70312 7.58398 4.57031 6.4707 4.57031 5.08398H4.58984Z",fill:"#707070"})})]}),e.jsxs("div",{className:"fields_group relative",children:[e.jsx("label",{className:"text-[#252525]/40 font-Montserrat  text-start   text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase",children:"Confirm Password"}),e.jsx(ge,{name:"confirmPassword",component:"input",type:Re?"text":"password",className:"form-control font-Montserrat"}),Re?e.jsx("svg",{onClick:()=>pe(l=>!l),className:"cursor-pointer absolute right-2 top-11 max-[390px]:top-[3.75rem]",width:14,height:11,viewBox:"0 0 13 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.96484 4.74023C3.96484 3.37305 5.07812 2.24023 6.46484 2.24023C7.83203 2.24023 8.96484 3.37305 8.96484 4.74023C8.96484 
16.12695 7.83203 7.24023 6.46484 7.24023C5.07812 7.24023 3.96484 6.12695 3.96484 4.74023ZM6.46484 6.30273C7.32422 6.30273 8.02734 5.61914 8.02734 4.74023C8.02734 3.88086 7.32422 3.17773 6.46484 3.17773C6.44531 3.17773 6.42578 3.17773 6.40625 3.17773C6.44531 3.29492 6.46484 3.39258 6.46484 3.49023C6.46484 4.19336 5.89844 4.74023 5.21484 4.74023C5.09766 4.74023 5 4.74023 4.90234 4.70117C4.90234 4.7207 4.90234 4.74023 4.90234 4.74023C4.90234 5.61914 5.58594 6.30273 6.46484 6.30273ZM2.69531 1.94727C3.61328 1.08789 4.88281 0.365234 6.46484 0.365234C8.02734 0.365234 9.29688 1.08789 10.2148 1.94727C11.1328 2.78711 11.7383 3.80273 12.0312 4.50586C12.0898 4.66211 12.0898 4.83789 12.0312 4.99414C11.7383 5.67773 11.1328 6.69336 10.2148 7.55273C9.29688 8.41211 8.02734 9.11523 6.46484 9.11523C4.88281 9.11523 3.61328 8.41211 2.69531 7.55273C1.77734 6.69336 1.17188 5.67773 0.878906 4.99414C0.820312 4.83789 0.820312 4.66211 0.878906 4.50586C1.17188 3.80273 1.77734 2.78711 2.69531 1.94727ZM6.46484 1.30273C5.17578 1.30273 4.14062 1.88867 3.33984 2.63086C2.57812 3.33398 2.07031 4.1543 1.79688 4.74023C2.07031 5.32617 2.57812 6.16602 3.33984 6.86914C4.14062 7.61133 5.17578 8.17773 6.46484 8.17773C7.73438 8.17773 8.76953 7.61133 9.57031 6.86914C10.332 6.16602 10.8398 5.32617 11.1133 4.74023C10.8398 4.1543 10.332 3.33398 9.57031 2.63086C8.76953 1.88867 7.73438 1.30273 6.46484 1.30273Z",fill:"#707070"})}):e.jsx("svg",{onClick:()=>pe(l=>!l),className:"cursor-pointer absolute right-2 top-11 max-[390px]:top-[3.75rem]",width:14,height:11,viewBox:"0 0 14 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.76953 1.90039C4.64844 1.23633 5.74219 0.708984 7.08984 0.708984C8.65234 0.708984 9.92188 1.43164 10.8398 2.29102C11.7578 3.13086 12.3633 4.14648 12.6562 4.84961C12.7148 5.00586 12.7148 5.18164 12.6562 5.33789C12.4023 5.96289 11.875 6.86133 11.0938 7.64258L13.1445 9.26367C13.3594 9.41992 13.3984 9.71289 13.2227 9.9082C13.0664 10.123 12.7734 10.1621 12.5781 9.98633L1.01562 0.923828C0.800781 0.767578 0.761719 0.474609 0.9375 0.279297C1.09375 0.0644531 1.38672 0.0253906 1.58203 0.201172L3.76953 1.90039ZM4.53125 2.50586L5.42969 3.20898C5.87891 2.81836 6.44531 2.58398 7.08984 2.58398C8.45703 2.58398 9.58984 3.7168 9.58984 5.08398C9.58984 5.51367 9.47266 5.9043 9.29688 6.23633L10.3516 7.05664C11.0156 6.39258 11.4844 5.63086 11.7383 5.08398C11.4648 4.49805 10.957 3.67773 10.1953 2.97461C9.39453 2.23242 8.35938 1.64648 7.08984 1.64648C6.09375 1.64648 5.23438 1.99805 4.53125 2.50586ZM8.53516 5.65039C8.61328 5.47461 8.65234 5.2793 8.65234 5.08398C8.65234 4.22461 7.94922 3.52148 7.08984 3.52148C7.07031 3.52148 7.05078 3.52148 7.03125 3.52148C7.07031 3.63867 7.08984 3.73633 7.08984 3.83398C7.08984 4.04883 7.03125 4.22461 6.95312 4.40039L8.53516 5.65039ZM8.73047 8.18945L9.55078 8.83398C8.82812 9.22461 8.00781 9.45898 7.08984 9.45898C5.50781 9.45898 4.23828 8.75586 3.32031 7.89648C2.40234 7.03711 1.79688 6.02148 1.50391 5.33789C1.44531 5.18164 1.44531 5.00586 1.50391 4.84961C1.69922 4.40039 2.01172 3.83398 2.46094 3.24805L3.18359 3.83398C2.83203 4.2832 2.57812 4.73242 2.42188 5.08398C2.69531 5.66992 3.20312 6.50977 3.96484 7.21289C4.76562 7.95508 5.80078 8.52148 7.08984 8.52148C7.67578 8.52148 8.22266 8.4043 8.73047 8.18945ZM4.58984 5.08398C4.58984 5.04492 4.58984 4.98633 4.58984 4.92773L5.68359 5.78711C5.87891 6.19727 6.26953 6.50977 6.73828 6.60742L7.83203 7.48633C7.59766 7.54492 7.34375 7.58398 7.07031 7.58398C5.70312 7.58398 4.57031 6.4707 4.57031 5.08398H4.58984Z",fill:"#707070"})})]})]}),e.jsx("div",{className:"max-w-[240px]",children:e.jsx(me,{type:"submit",children:"Update"})})]})]}),e.jsx("style",{children:`
2          
3.grid-cont{
4  display:grid;
5  grid-template-columns:repeat(auto-fit,minmax(min(10rem,100%),1fr)) ;
6  grid-gap:1rem;
7}
8          `})]})}):e.jsx(e.Fragment,{children:e.jsx("div",{className:"image-cropper42",children:e.jsxs("div",{className:"cropper-inner-area",children:[e.jsx(Xt,{image:o,crop:j,rotation:V,zoom:z,aspect:4/3,onCropChange:Y,onRotationChange:A,onCropComplete:xe,onZoomChange:ne}),e.jsx("div",{className:"text-center mt-3",children:e.jsx("button",{type:"button",onClick:M,variant:"contained",color:"primary",className:"getStarted w-auto",style:{borderRadius:"5px",backgroundColor:"#E3B576",display:"inline-flex",padding:"9px 28px",alignItems:"center",color:"white",gap:"21px",fontWeight:500,border:"none",textDecoration:"none"},children:"Show Result"})})]})})})};ot=_t({form:"profileForm",enableReinitialize:!0,destroyOnUnmount:!1})(ot);const ca=a=>{const r=ea(),u=i.useContext(oa),[n,p]=i.useState(!1),[m,h]=i.useState("");let R=localStorage.getItem("idToken");const[S,q]=i.useState({}),[y,w]=i.useState(null),b=async o=>
8{const{_id:k,password:j,confirmPassword:Y,oldpassword:V}=o;if(!j)delete o.password;else if(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*(\W|_)).{9,}$/.test(V))if(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*(\W|_)).{9,}$/.test(j))if(j!==Y){f.error("Password and Confirm password do not match!",{hideProgressBar:!0,autoClose:2e3});return}else D(V,j);else{f.error("Password must follow the policy i.e. should be more than 8 character, At least one uppercase letter, At least one lowercase letter, At least one digit, At least one special symbol",{hideProgressBar:!0,autoClose:2e3});return}else{f.error("Old password must follow the policy i.e. should be more than 8 character, At least one uppercase letter, At least one lowercase letter, At least one digit, At least one special symbol",{hideProgressBar:!0,autoClose:2e3});return}try{if(y===null){f.error("Country Has not been selected",{hideProgressBar:!0,autoClose:2e3});return}if(o.country=y.name,p(!0),m)try{let A=yt(),z=await Ae.get(`https://api.legateca.com/public-files?key=${A}.jpg&type=image/jpeg`,{headers:{Authorization:R}});if(z.status===200){if((await Ae.put(z.data.priSignUrl,m)).status===200){o.profile_img=`https://legateca-public-files-prod.s3.eu-west-2.amazonaws.com/${A}.jpg`,S.label&&(o.timezone=S);let J=await P.users.patch(k,o);const $=JSON.parse(sessionStorage.state);$.auth.user=Object.assign({},$.auth.user,J.value),r(Tt($.auth)),f.success("GeAneral info updated!",{hideProgressBar:!0,autoClose:2e3}),p(!1),localStorage.getItem("idToken")&&await P.authentication.create({strategy:"jwt",accessToken:localStorage.getItem("idToken")})}}else throw new Error("Something went wrong")}catch(A){p(!1),console.log(A)}else{S.label&&(o.timezone=S);let A=await P.users.patch(k,o);const z=JSON.parse(sessionStorage.state);z.auth.user=Object.assign({},z.auth.user,A.value),r(Tt(z.auth)),f.success("General info updated!",{hideProgressBar:!0,autoClose:2e3}),p(!1),localStorage.getItem("idToken")&&await P.authentication.create({strategy:"jwt",accessToken:localStorage.getItem("idToken")})}}catch(A){f.error(A.message,{hideProgressBar:!0,autoClose:2e3}),p(!1)}};let D=async(o,k)=>{try{let j=await u.changePassword(o,k)}catch{f.error("Unable to update password. Please try again later",{hideProgressBar:!0,autoClose:2e3})}};return e.jsx("div",{className:"general_profile_tab",children:e.jsx(ot,{loading:n,onSubmit:b,initialValues:a.user,auth:a.auth,selectedCountry:y,setSelectedCountry:w,setCroppedImage:h,history:a.history,changeTimezone:o=>q(o),selectedTimezone:S})})},ma=a=>({user:a.auth&&a.auth.user||{},auth:a.auth&&a.auth}),ua=ze(ke,Me(ma,{}))(ca),xa=a=>{i.useEffect(()=>{r()},[]);const r=async()=>{await P.users.get(a.auth._id)};return a.user.firstName?e.jsxs("div",{className:"flex flex-col  max-h-[620px] gap-6",children:[e.jsxs("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"py-[26px] pl-[30px] overflow-auto pr-[44px]",children:[e.jsx("div",{className:"flex lg:flex-row flex-col gap-3 lg:gap-0 items-start justify-between",children:e.jsx(T,{varient:"green-head",children:"Instant Advice"})}),a.user.prelegatePdf.length>0?e.jsxs("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"pt-[26px]  pl-[26px] pb-[20px] pr-[76px] mt-10 flex flex-col gap-4",children:[e.jsx(T,{varient:"black-head",children:"Please download your Summary"}),e.jsx(T,{varient:"para",children:"Here you will find the latest report. For previous reports, please check your email."}),He.reverse(a.user.prelegatePdf).slice(0,1).map(u=>e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("span",{className:"xl:max-w-[240px] xl:min-w-[240px]",children:e.jsx("span",{className:"text-right",children:e.jsx(St,{fileId:u.pdfKey})})}),e.jsxs("div",{className:"flex flex-col gap-[10px] items-start",children:[e.jsx(T,{varient:"light-head",children:"Created at"}),e.jsx(T,{varient:"black-head",children:e.jsx("span",{children:e.jsx("span",{children:C(u.createdAt).format("lll")})})})]})]}))]}):e.jsx("div",{className:"text-primary-tw mt-[20px] text-base not-italic font-semibold leading-[118.5%] capitalize",children:"Please use our prelegate service to get our free recommendation."})]}),e.jsxs("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"py-[26px] pl-[30px] overflow-auto pr-[44px]",children:[e.jsx("div",{className:"flex lg:flex-row flex-col gap-3 lg:gap-0 items-start justify-between",children:e.jsx(T,{varient:"green-head",children:"Instant Advice"})}),a.user.recommendatePdf.length>0?He.reverse(a.user.recommendatePdf).map(u=>e.jsxs("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"pt-[26px]  pl-[26px] pb-[20px] pr-[76px] mt-10 flex flex-col gap-4",children:[e.jsx(T,{varient:"black-head",children:"Please download your Summary"}),e.jsx(T,{varient:"para",children:"Here you will find the latest report. For previous reports, please check your email."}),e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("span",{className:"xl:max-w-[240px] xl:min-w-[240px]",children:e.jsx("span",{className:"text-right",children:e.jsx(St,{fileId:u.pdfKey})})}),e.jsxs("div",{className:"flex flex-col gap-[10px] items-start",children:[e.jsx(T,{varient:"light-head",children:"Created at"}),e.jsx(T,{varient:"black-head",children:e.jsx("span",{children:e.jsx("span",{children:C(u.createdAt).format("lll")})})})]})]})]})):e.jsx("div",{className:"text-primary-tw mt-[20px] text-base not-italic font-semibold leading-[118.5%] capitalize",children:"Please use our recommendate service to get our paid recommendation."})]})]}):""},pa=a=>({user:a.users&&a.users.data||{},auth:a.auth&&a.auth.user||{}}),Ca=ze(ke,Me(pa,{}))(xa);let St=({fileId:a})=>{let[r,u]=i.useState("");return i.useEffect(()=>{(async p=>{try{let m=p.split("/"),h=await Ae.get(`https://api.legateca.com/file/${m[m.length-1]}`);if(h.status===200)u(h.data.priSignUrl);else throw new Error("error")}catch(m){console.log(m.message)}})(a)},[]),r?e.jsx("button",{id:r,onClick:()=>{window.open(r).focus()},className:"text-white active:bg-ThemeSecondary border-none hover:bg-ThemePrimary w-full text-center px-[10px] py-[20px] rounded-md text-sm not-italic font-medium !leading-none tracking-[0.28px] uppercase bg-ThemeSecondary",children:"Download PDF"}):""};const ha=({lawyerData:a,user:r,ratings:u,auth:n,availabilityException:p,generalAvailability:m,bookingData:h})=>{var pt,Ct;const[R,S]=i.useState(!1),[q,y]=i.useState(!1),[w,b]=i.useState({rating:1});let D=5;const[o,k]=i.useState(!1),[j,Y]=i.useState(""),[V,A]=i.useState({}),[z,ne]=i.useState({reason:""}),[J,$]=i.useState(0),[ue,be]=i.useState(0),[ee,L]=i.useState(!1),[xe,se]=i.useState([]),[Ee,re]=i.useState(""),[M,B]=i.useState("00:00"),[Te,
8Le]=i.useState(!1),[we,Se]=i.useState(!1),[Pe,ye]=i.useState(!1),[Ke,Re]=i.useState(""),[pe,Ie]=i.useState(null),[te,Ve]=i.useState(""),[qe,l]=i.useState(""),[Z,Ce]=i.useState([]),[U,ae]=i.useState([]),[E,nt]=i.useState(""),[d,Ye]=i.useState(""),[Ze,Fe]=i.useState(""),[st,Je]=i.useState(!1),[je,Qe]=i.useState(null),[Nt,rt]=i.useState(!1),[$e,Ut]=i.useState(""),[At,Xe]=i.useState(!1),[_e,zt]=i.useState(0),[Mt,We]=i.useState(0),[v,F]=i.useState(null),[g,kt]=i.useState(null);console.log("audioUrl",je);const ie=i.useRef(null),he=i.useRef([]),et=i.useRef(null),Et=async()=>{if(Qe(null),Je(!0),Xe(!0),We(0),navigator.mediaDevices)try{he.current=[],We(0);const t=await navigator.mediaDevices.getUserMedia({audio:!0});ie.current=new MediaRecorder(t),ie.current.ondataavailable=s=>{he.current.push(s.data)},ie.current.onstop=()=>{const s=new Blob(he.current,{type:"audio/wav"}),c=URL.createObjectURL(s);Qe(c)},ie.current.start(),et.current=setInterval(()=>{We(s=>s>=300?(lt(),s):s+1)},1e3)}catch(t){console.error("Error accessing microphone:",t)}},lt=()=>{ie.current&&(ie.current.stop(),Je(!1),clearInterval(et.current))},It=()=>{ie.current&&ie.current.state!=="inactive"&&ie.current.stop(),he.current=[],Qe(null),Je(!1),Xe(!0),F(null),We(0),clearInterval(et.current)},Dt=t=>{const s=Math.floor(t/60),c=t%60;return`${String(s).padStart(2,"0")}:${String(c).padStart(2,"0")}`};async function Bt(){if(he.current.length>0){const t=new Blob(he.current,{type:"audio/wav"}),s=yt();try{rt(!0);const c=await Ae.get("https://api.legateca.com/public-files",{params:{key:`${s}.wav`,type:"audio/wav"},headers:{Authorization:n.token}});if(console.log("preSignUrlData",c),c.status===200){await Ae.put(c.data.priSignUrl,t,{headers:{"Content-Type":"audio/wav"}});const x=`https://legateca-files-prod.s3.eu-west-2.amazonaws.com/${s}.wav`;console.log("File uploaded successfully:",x),Xe(!0),f.success("Voice uploaded successfully!")}else throw new Error("Failed to get pre-signed URL")}catch(c){console.error("Error uploading audio:",c),f.error("Error uploading audio.")}finally{rt(!1)}}else f.error("No audio recorded to upload.")}const Ht=()=>ye(!1),Lt=async t=>{if(console.log("itemitem",t),!$e.trim()&&!je){f.error("Please add a description or record audio.");return}L(!0),At&&he.current.length>0&&await Bt();const s={userId:g==null?void 0:g.userId,lawyerId:g==null?void 0:g.lawyerId,slotId:g==null?void 0:g.slotId,date:g==null?void 0:g.date,startTime:g==null?void 0:g.startTime,endTime:g==null?void 0:g.endTime,StartDate:g==null?void 0:g.StartDate,caseDescription:{text:$e.trim()?$e.trim():je,isAudio:!!je}};try{if((await fetch(`https://api.legateca.com/booking/${g==null?void 0:g._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:n.token},body:JSON.stringify(s)})).ok)f.success("Booking saved successfully!"),ye(!1),F(null);else throw new Error("Failed to save booking")}catch(c){console.error("Error saving booking:",c),f.error("Failed to save booking."),F(null)}finally{L(!1),F(null)}},Pt=t=>{Se(!0),Ye(t)},dt=t=>{F(t),kt(t),ye(!0)};console.log("slotDetails",v);const Rt=()=>{Ie(null),F(null),Se(!1)};i.useEffect(()=>{if(r.timezone){const t=C.utc(Math.abs(r.timezone.offset)*3600*1e3).format("HH:mm");B(t)}},[r]),i.useEffect(()=>{De(),tt()},[]),i.useEffect(()=>{we||F(null)},[we]);const Vt=({selected:t})=>{$(t*D)};i.useEffect(()=>{De()},[J]),i.useEffect(()=>{a.queryResult&&be(Math.ceil(a.queryResult.total/D))},[a]);const De=()=>{try{localStorage.getItem("idToken")&&P.booking.find({query:{userId:r._id,$skip:J,$limit:D,$sort:{StartDate:-1}}})}catch{}},ct=async()=>{try{await P.ratings.update(w.appointmentId,w),!u.updatePending&&!u.isError&&(f.success("Success",{hideProgressBar:!0,autoClose:2e3}),y(!1))}catch(t){console.log({error:t})}},Ge=async(t,s,c)=>{const x=await P.ratings.get(c);try{x&&x.value.rating?b(N=>({rating:x.value.rating,review:x.value.review,userId:t,lawyerId:s,appointmentId:c})):b(N=>({rating:1,review:null,userId:t,lawyerId:s,appointmentId:c})),y(!0),b(N=>({...N,userId:t,lawyerId:s,appointmentId:c}))}catch(N){console.log("error",N.message)}},Zt=async()=>
8{if(!z.reason)A({reason:"Field is required"});else if(z.reason.trim()==="")A({reason:"Field is required"});else{let t=JSON.parse(JSON.stringify(j));t.status="dispute",t.disputeReason=z.reason,(await P.booking.patch(t._id,t,{headers:{type:"dispute"}})).action.type==="SERVICES_BOOKING_PATCH_FULFILLED"?(f.success("Dispute raised successfully",{hideProgressBar:!0,autoClose:2e3}),De(),tt()):f.error("Something went wrong. Please try again later",{hideProgressBar:!0,autoClose:2e3}),A(""),ne(""),Y(""),k(!1),De()}};let tt=async()=>{L(!0);let s=await Ae.get(`https://api.legateca.com/booking?userId=${n.user._id}&StartDate='2025-01-28 00:00:00.000Z'&$limit=1000&$skip=0`,{headers:{Authorization:n.token}});s.status===200?(L(!1),re(!1),se(s.data.data)):s.status===401?(L(!1),re(!0),se([]),f.error("Session Expired. Please Login Again.",{hideProgressBar:!0,autoClose:2e3})):(L(!1),re(!0),se([]),f.success("Something went Wrong. Please try again later.",{hideProgressBar:!0,autoClose:2e3}))};i.useEffect(()=>{De(),tt()},[n.user._id]),i.useEffect(()=>{if(r.timezone){const t=C.utc(Math.abs(r.timezone.offset)*3600*1e3).format("HH:mm");B(t)}},[r]),i.useEffect(()=>{(async()=>{try{const s=await P.users.get(d==null?void 0:d.lawyerId);console.log("User Data Response:",s),Fe(s)}catch(s){console.error("Error fetching user data:",s)}})()},[E]),i.useEffect(()=>{var c,x,N;let t=[],s=He.find((c=m.queryResult)==null?void 0:c.data,{day:U});if((x=h.queryResult)!=null&&x.data&&(s!=null&&s.slots)){for(let H of(N=h.queryResult)==null?void 0:N.data)He.find(s.slots,{_id:H.slotId})||t.push(H);Ce(t)}},[(pt=m.queryResult)==null?void 0:pt.data,(Ct=h.queryResult)==null?void 0:Ct.data]),i.useEffect(()=>{const t=new Date(C.utc().startOf("day").format("YYYY-MM-DD")).toISOString().split("T")[0];l(t),Ot(),Kt()},[E]),i.useEffect(()=>{if(m.queryResult.data.length>0){let t=He.find(m.queryResult.data,{day:C(E,"DD-MM-YYYY").format("ddd").toLocaleLowerCase()});Re(t),qt()}},[m,E]);const W="text-[#252525]/40 text-start text-base not-italic font-medium leading-[normal] tracking-[0.28px] uppercase",[at,mt]=i.useState(Array(20).fill(!1)),[Aa,za]=i.useState(Array(20).fill(!1)),[le,Ft]=i.useState({}),Wt=t=>{let s=at.map((c,x)=>t===x?!c:!1);mt(s)};function ut(t,s){const[c,x]=t.split(":").map(Number),[N,H]=s.split(":").map(Number),X=c*60+x;let Q=N*60+H-X;const oe=Math.floor(Q/60);return Q%=60,`${oe}h ${Q}Mins`}if(ut("17:30","18:00"),Object.keys(le).length){let t=function(G){if(!H)return"Loading";switch(G){case"name":const ce=H.toLowerCase();return ce.includes("zoom")?"Zoom":ce.includes("meet.google.com")?"Meet":ce.includes("teams.live.com")||ce.includes("teams.microsoft.com")?"Teams":"Video Meeting";default:return}};const{firstName:s,lastName:c,profile_img:x,occupation:N,meetingLink:H,perSessionFee:X,slug:de,_id:Q}=le.lawyerData,{endTime:oe,startTime:ve}=le;return e.jsxs("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"lg:pl-[50px] lg:pr-[30px] px-6 pt-[30px] pb-[40px] flex flex-col gap-[42px]",children:[e.jsx(T,{varient:"green-head",children:"Your Appointment with Lawyer"}),e.jsxs("div",{className:"flex flex-col gap-[32px] items-start",children:[e.jsxs("div",{className:"flex items-center gap-2 lg:gap-6",children:[e.jsx("img",{src:x,alt:"lawyer",className:"rounded-full object-contain w-[98px] h-[98px]"}),e.jsxs("div",{className:"flex flex-col items-start",children:[e.jsxs("div",{className:"text-[#006766] text-[28px] not-italic font-medium leading-[48px] tracking-[0.56px] uppercase",children:[s," ",c]}),e.jsxs("div",{className:"text-[#E3B576] text-sm not-italic font-medium tracking-[0.28px] uppercase",children:[N," (UK)"]})]})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M10.8477 5.98633C10.8477 5.40234 11.2969 4.9082 11.9258 4.9082C12.5098 4.9082 13.0039 5.40234 13.0039 5.98633V11.5566L16.8223 14.0723C17.3164 14.4316 17.4512 15.1055 17.0918 15.5996C16.7773 16.0938 16.1035 16.2285 15.6094 15.8691L11.2969 12.9941C11.0273 12.8145 10.8477 12.4551 10.8477 12.0957V5.98633ZM11.9258 0.595703C18.2598 0.595703 23.4258 5.76172 23.4258 12.0957C23.4258 18.4746 18.2598 23.5957 11.9258 23.5957C5.54688 23.5957 0.425781 18.4746 0.425781 12.0957C0.425781 5.76172 5.54688 0.595703 11.9258 0.595703ZM2.58203 12.0957C2.58203 17.2617 6.75977 21.4395 11.9258 21.4395C17.0469 21.4395 21.2695 17.2617 21.2695 12.0957C21.2695 6.97461 17.0469 2.75195 11.9258 2.75195C6.75977 2.75195 2.58203 6.97461 2.58203 12.0957Z",fill:"#006766"})}),e.jsx("div",{className:"text-[#707070] text-lg not-italic font-normal leading-[19.5px] tracking-[0.36px] uppercase",children:"60 min session"})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("svg",{width:27,height:18,viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M25.4473 2.22266C25.9863 2.53711 26.3008 3.12109 26.3008 3.70508V14.4863C26.3008 15.1152 25.9863 
815.6992 25.4473 16.0137C25.1777 16.1934 24.8184 16.3281 24.459 16.3281C24.2344 16.3281 23.9648 16.2383 23.7402 16.1484L19.1133 13.9922V14.8457C19.1133 16.4629 17.8105 17.7207 16.2383 17.7207H3.30078C1.68359 17.7207 0.425781 16.4629 0.425781 14.8457V3.3457C0.425781 1.77344 1.68359 0.470703 3.30078 0.470703H16.2383C17.8105 0.470703 19.1133 1.77344 19.1133 3.3457V4.19922L23.7402 2.08789C24.2793 1.81836 24.9531 1.86328 25.4473 2.22266ZM16.957 14.8457V3.3457C16.957 2.98633 16.5977 2.62695 16.2383 2.62695H3.30078C2.89648 2.62695 2.58203 2.98633 2.58203 3.3457V14.8457C2.58203 15.25 2.89648 15.5645 3.30078 15.5645H16.2383C16.5977 15.5645 16.957 15.25 16.957 14.8457ZM24.1445 13.9473V4.28906L19.1133 6.58008V11.6562L24.1445 13.9473Z",fill:"#006766"})}),e.jsx("span",{href:H,class:"!text-[#707070] font-Montserrat text-decoration-none text-lg not-italic font-normal leading-[19.5px] tracking-[0.36px] uppercase",children:t("name")})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("svg",{width:27,height:21,viewBox:"0 0 27 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.97266 13.6895C8.55664 13.6895 9.05078 14.1836 9.05078 14.7676C9.05078 15.3965 8.55664 15.8457 7.97266 15.8457H5.81641C5.1875 15.8457 4.73828 15.3965 4.73828 14.7676C4.73828 14.1836 5.1875 13.6895 5.81641 13.6895H7.97266ZM16.5977 13.6895C17.1816 13.6895 17.6758 14.1836 17.6758 14.7676C17.6758 15.3965 17.1816 15.8457 16.5977 15.8457H11.5664C10.9375 15.8457 10.4883 15.3965 10.4883 14.7676C10.4883 14.1836 10.9375 13.6895 11.5664 13.6895H16.5977ZM23.4258 0.0332031C24.998 0.0332031 26.3008 1.33594 26.3008 2.9082V17.2832C26.3008 18.9004 24.998 20.1582 23.4258 20.1582H3.30078C1.68359 20.1582 0.425781 18.9004 0.425781 17.2832V2.9082C0.425781 1.33594 1.68359 0.0332031 3.30078 0.0332031H23.4258ZM23.4258 2.18945H3.30078C2.89648 2.18945 2.58203 2.54883 2.58203 2.9082V4.3457H24.1445V2.9082C24.1445 2.54883 23.7852 2.18945 23.4258 2.18945ZM24.1445 8.6582H2.58203V17.2832C2.58203 17.6875 2.89648 18.002 3.30078 18.002H23.4258C23.7852 18.002 24.1445 17.6875 24.1445 17.2832V8.6582Z",fill:"#006766"})}),e.jsxs("div",{className:"text-[#707070] text-lg not-italic font-normal leading-[19.5px] tracking-[0.36px] uppercase",children:["£",X," (excl. VAT)"]})]})]}),e.jsxs("div",{className:"flex items-center overflow-auto  justify-between",children:[e.jsxs("div",{className:"flex flex-col min-w-[120px] max-w-[120px] items-start gap-[10px]",children:[e.jsx("div",{className:"text-[#707070] text-sm not-italic font-normal leading-[19.5px] tracking-[0.36px] uppercase",children:"Time slot"}),e.jsx("div",{className:"text-[#252525] text-base not-italic font-medium leading-[normal] capitalize",children:`${ve} -${oe}`})]}),e.jsxs("div",{className:"flex flex-col min-w-[190px] max-w-[190px] items-start gap-[10px]",children:[e.jsx("div",{className:"text-[#707070] text-sm not-italic font-normal leading-[19.5px] tracking-[0.36px] uppercase",children:"appointment date"}),e.jsx("div",{className:"text-[#252525] text-base not-italic font-medium leading-[normal] capitalize",children:le.date})]}),e.jsxs("div",{className:"flex flex-col min-w-[150px] max-w-[150px] items-start gap-[10px]",children:[e.jsx("div",{className:"text-[#707070] text-sm not-italic font-normal leading-[19.5px] tracking-[0.36px] uppercase",children:"Session Duration"}),e.jsx("div",{className:"text-[#252525] text-base not-italic font-medium leading-[normal] capitalize",children:ut(ve,oe)})]}),e.jsxs("div",{className:"flex flex-col min-w-[120px] max-w-[120px] items-start gap-[10px]",children:[e.jsx("div",{className:"text-[#707070] text-sm not-italic font-normal leading-[19.5px] tracking-[0.36px] uppercase",children:"Status"}),e.jsx("div",{className:"text-[#252525] text-base not-italic font-medium leading-[normal] capitalize",children:le.status})]}),e.jsxs("div",{className:"flex flex-col min-w-[140px] max-w-[140px] items-start gap-[10px]",children:[e.jsx("div",{className:"text-[#707070] text-sm not-italic font-normal leading-[19.5px] tracking-[0.36px] uppercase",children:"Fee"}),e.jsxs("div",{className:"text-[#252525] text-base not-italic font-medium leading-[normal] capitalize",children:["£",X,"(excl. VAT)"]})]})]}),e.jsxs("div",{className:"flex lg:flex-row flex-col gap-4 w-full max-w-[530px]",children:[e.jsx(me,{varient:"bgwhite",handleClick:()=>{y(!0),Ge(le.userId,le.lawyerId,le._id)},children:"Review Your Session"}),e.jsx(me,{handleClick:()=>{window.location.replace(`/lawyer-profile/${de}`)},children:"Book Again"})]}),e.jsx("div",{className:`${q?"fixed h-full w-full inset-0 backdrop-blur-sm backdrop-brightness-50 z-[20]":"hidden"}`,children:e.jsx("div",{className:"flex flex-col justify-center  items-center h-full ",children:e.jsxs("div",{className:"max-w-[862px] relative rounded-[10px] h-full m-auto bg-white max-h-[600px] px-[118px] pt-[100px] pb-[10px] ",children:[e.jsx("div",{className:"absolute top-[-60px] right-[330px] flex flex-col items-center justify-center  roun
8ded-full backdrop-brightness-50  min-w-[134px] min-h-[134px] ",children:e.jsx("img",{src:"/reviews-img.png",alt:"reviews",className:"  "})}),e.jsx("div",{className:"text-[#E3B576] text-center text-sm not-italic font-medium leading-[45px] tracking-[0.28px] uppercase",children:"Thank you for your time"}),e.jsx("div",{className:"text-[#006766] mb-6 text-center text-[42px] not-italic font-medium leading-[48px] tracking-[0.84px] uppercase",children:"RATE YOUR EXPERIENCE"}),e.jsxs("div",{className:"review-card-box",children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(it,{count:5,value:w.rating,onChange:G=>b({...w,rating:G}),size:74,activeColor:"#ffd700"})}),e.jsx("div",{className:"field-group"}),e.jsx("textarea",{className:"fom-control px-[18px] bg-white border border-[#ebebeb] pt-[15px] ",name:"review",type:"text",value:w.review,rows:20,onChange:G=>b({...w,review:G.target.value}),placeholder:"Write your review on your previous session with the lawyer."}),e.jsxs("div",{className:"content_LAuth_action flex flex-col gap-4",children:[e.jsx(me,{handleClick:ct,varient:"bgyellow",children:"Submit"}),e.jsxs("div",{onClick:()=>y(!1),className:"flex items-center justify-center gap-2 cursor-pointer",children:[e.jsx("svg",{width:13,height:12,viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M12.7207 6.14062C12.7207 6.52344 12.4199 6.82422 12.0645 6.82422H2.76758L6.4043 10.2695C6.67773 10.5156 6.67773 10.9531 6.43164 11.1992C6.18555 11.4727 5.77539 11.4727 5.50195 11.2266L0.689453 6.63281C0.552734 6.49609 0.498047 6.33203 0.498047 6.14062C0.498047 5.97656 0.552734 5.8125 0.689453 5.67578L5.50195 1.08203C5.77539 0.835938 6.18555 0.835938 6.43164 1.10938C6.67773 1.35547 6.67773 1.79297 6.4043 2.03906L2.76758 5.48438H12.0645C12.4473 5.48438 12.7207 5.78516 12.7207 6.14062Z",fill:"#252525"})}),e.jsx("div",{className:"text-[#252525] text-sm not-italic font-medium leading-[normal] tracking-[0.28px] capitalize",children:"GO BACK"})]})]})]})]})})})]})}const Gt=t=>{nt(t.target.value)},Ot=async()=>{try{const t=await P["general-availability"].find({query:{userId:d==null?void 0:d.lawyerId}});console.log("Response:",t),Ie(t)}catch(t){console.error("Error fetching availability data:",t)}},Kt=async()=>{await P["availability-exception"].find({query:{lawyerId:d==null?void 0:d.lawyerId,$limit:999}})},xt=t=>{const[s,c,x]=t.split("-");return`${x}-${c}-${s}`},qt=()=>{let t={query:{$limit:999,lawyerId:d==null?void 0:d.lawyerId,date:xt(E)}};P.booking.find(t)},Yt=t=>{Ve(t),console.log("tempSlotData",t==null?void 0:t.startTime,t==null?void 0:t.endTime)},Jt=async t=>{console.log("lawyerData1",d),L(!0);const s=new Date(E);`${String(s.getDate()).padStart(2,"0")}${String(s.getMonth()+1).padStart(2,"0")}${s.getFullYear()}`;const c={userId:d==null?void 0:d.userId,lawyerId:d==null?void 0:d.lawyerId,slotId:d==null?void 0:d.slotId,date:xt(E),startTime:te==null?void 0:te.startTime,endTime:te==null?void 0:te.endTime,StartDate:s};try{if((await fetch(`https://api.legateca.com/booking/${d==null?void 0:d._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:localStorage.idToken},body:JSON.stringify(c)})).ok)f.success("Booking saved successfully!"),Se(!1),F(null);else throw new Error("Failed to save booking")}catch(x){console.error("Error saving booking:",x),f.error("Failed to save booking."),F(null)}finally{L(!1),F(null)}};return e.jsxs("div",{className:"general_profile_tab",children:[e.jsx(T,{varient:"green-head",children:"Upcoming Appointments"}),ee===!1&&xe.length===0?e.jsx("div",{style:{padding:"20px 0"},children:"No record found"}):e.jsx("div",{className:"profile_tab_content",children:e.jsx("div",{className:"appointment_list",children:e.jsx("div",{className:"table-responsive",children:e.jsxs("table",{style:{minHeight:ee?"100px":"",maxHeight:ee?"100px":""},className:"table font-Montserrat relative",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{className:W+" !min-w-[120px] !max-w-[120px] font-Montserrat",children:"Lawyer"}),e.jsx("th",{className:W+" !min-w-[180px] !max-w-[180px] font-Montserrat",children:"Appointment Date"}),e.jsx("th",{className:W+" !min-w-[120px] !max-w-[120px] font-Montserrat",children:"Time slot"}),e.jsx("th",{className:W+" !min-w-[120px] !max-w-[120px] font-Montserrat",children:"Status"}),e.jsx("th",{className:W+" !min-w-[120px] !max-w-[120px] font-Montserrat",children:"Action"}),e.jsx("th",{}),e.jsx("th",{})]})}),ee?e.jsx("div",{className:"absolute bottom-0 flex items-center w-full justify-center",children:e.jsx("div",{class:"loader-loader "})}):e.jsx(e.Fragment,{children:xe.map((t,s)=>{var N,H,X,de,Q,oe,ve,G,ce,O,_,ht,gt;let c=t.startTime,x=t.endTime;return r.timezone&&(r.timezone.offset>=0?(c=C(t.startTime,"HH:mm").add(M,"HH:mm").format("HH:mm"),x=C(t.endTime,"HH:mm").add(M,"HH:mm").format("HH:mm")):(c=C(t.startTime,"HH:mm").subtract(M,"HH:mm").format("HH:mm"),x=C(t.endTime,"HH:mm").subtract(M,"HH:mm").format("HH:mm"))),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsxs("td",{className:"!pt-8 !pb-4 font-Montserrat  !min-w-[120px] !max-w-[120px] ",children:[t.lawyerData.firstName," ",t.lawyerData.lastName]}),e.jsx("td",{className:"!pt-8 !pb-4 font-Montserrat !min-w-[180px] !max-w-[180px] ",children:t.date}),e.jsxs("td",{className:"!pt-8 !pb-4 font-Montserrat !min-w-[120px] !max-w-[120px] ",children:[c," - ",x]}),e.jsx("td",{className:"!pt-8 !pb-4 font-Montserrat !min-w-[120px] !max-w-[120px] ",children:e.jsx("div",{className:"appointment-status",children:e.jsx("p",{className:"succuss",children:t.status})})}),e.jsx("td",{className:"!pt-8 !pb-4 font-Montserrat !min-w-[120px] !max-w-[120px] ",children:e.jsx("div",{className:"appointment-status",children:(t.status==="completed"||t.status==="pending")&&t.paymentData.isTrailPayment===!1?e.jsx("button",{className:"text-white",onClick:()=>{Y(t),k(!0)},children:"Dispute"}):(t.status==="completed"||t.status==="pending")&&t.paymentData.isTrailPayment===!0?e.jsxs("div",{className:"flex cursor-pointer gap-2 items-center",onClick:()=>Ge(t.userId,t.lawyerId,t._id),children:[e.jsx("svg",{width:19,height:15,viewBox:"0 0 19 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 7.52148C6 5.33398 7.78125 3.52148 10 3.52148C12.1875 3.52148 14 5.33398 14 7.52148C14 9.74023 12.1875 11.5215 10 11.5215C7.78125 11.5215 6 9.74023 6 7.52148ZM10 10.0215C11.375 10.0215 12.5 8.92773 12.5 7.52148C12.5 6.14648 11.375 5.02148 10 5.02148C9.96875 5.02148 9.9375 5.02148 9.90625 5.02148C9.96875 5.20898 10 5.36523 10 5.52148C10 6.64648 9.09375 7.52148 8 7.52148C7.8125 7.52148 7.65625 7.52148 7.5 7.45898C7.5 7.49023 7.5 7.52148 7.5 7.52148C7.5 8.92773 8.59375 10.0215 10 10.0215ZM3.96875 3.05273C5.4375 1.67773 7.46875 0.521484 10 0.521484C12.5 0.521484 14.5312 1.67773 16 3.05273C17.4688 4.39648 18.4375 6.02148 18.9062 7.14648C19 7.39648 19 7.67773 18.9062 7.92773C18.4375 9.02148 17.4688 10.6465 16 12.0215C14.5312 13.3965 12.5 14.5215 10 14.5215C7.46875 14.5215 5.4375 13.3965 3.96875 12.0215C2.5 10.6465 1.53125 9.02148 1.0625 7.92773C0.96875 7.67773 0.9687
85 7.39648 1.0625 7.14648C1.53125 6.02148 2.5 4.39648 3.96875 3.05273ZM10 2.02148C7.9375 2.02148 6.28125 2.95898 5 4.14648C3.78125 5.27148 2.96875 6.58398 2.53125 7.52148C2.96875 8.45898 3.78125 9.80273 5 10.9277C6.28125 12.1152 7.9375 13.0215 10 13.0215C12.0312 13.0215 13.6875 12.1152 14.9688 10.9277C16.1875 9.80273 17 8.45898 17.4375 7.52148C17 6.58398 16.1875 5.27148 14.9688 4.14648C13.6875 2.95898 12.0312 2.02148 10 2.02148Z",fill:"#006766"})}),e.jsx("span",{children:"View"})]}):t.status==="completed"&&t.paymentData.isTrailPayment===!1?e.jsxs("div",{className:"flex cursor-pointer gap-2 items-center",onClick:()=>Ge(t.userId,t.lawyerId,t._id),children:[e.jsx("svg",{width:19,height:15,viewBox:"0 0 19 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 7.52148C6 5.33398 7.78125 3.52148 10 3.52148C12.1875 3.52148 14 5.33398 14 7.52148C14 9.74023 12.1875 11.5215 10 11.5215C7.78125 11.5215 6 9.74023 6 7.52148ZM10 10.0215C11.375 10.0215 12.5 8.92773 12.5 7.52148C12.5 6.14648 11.375 5.02148 10 5.02148C9.96875 5.02148 9.9375 5.02148 9.90625 5.02148C9.96875 5.20898 10 5.36523 10 5.52148C10 6.64648 9.09375 7.52148 8 7.52148C7.8125 7.52148 7.65625 7.52148 7.5 7.45898C7.5 7.49023 7.5 7.52148 7.5 7.52148C7.5 8.92773 8.59375 10.0215 10 10.0215ZM3.96875 3.05273C5.4375 1.67773 7.46875 0.521484 10 0.521484C12.5 0.521484 14.5312 1.67773 16 3.05273C17.4688 4.39648 18.4375 6.02148 18.9062 7.14648C19 7.39648 19 7.67773 18.9062 7.92773C18.4375 9.02148 17.4688 10.6465 16 12.0215C14.5312 13.3965 12.5 14.5215 10 14.5215C7.46875 14.5215 5.4375 13.3965 3.96875 12.0215C2.5 10.6465 1.53125 9.02148 1.0625 7.92773C0.96875 7.67773 0.96875 7.39648 1.0625 7.14648C1.53125 6.02148 2.5 4.39648 3.96875 3.05273ZM10 2.02148C7.9375 2.02148 6.28125 2.95898 5 4.14648C3.78125 5.27148 2.96875 6.58398 2.53125 7.52148C2.96875 8.45898 3.78125 9.80273 5 10.9277C6.28125 12.1152 7.9375 13.0215 10 13.0215C12.0312 13.0215 13.6875 12.1152 14.9688 10.9277C16.1875 9.80273 17 8.45898 17.4375 7.52148C17 6.58398 16.1875 5.27148 14.9688 4.14648C13.6875 2.95898 12.0312 2.02148 10 2.02148Z",fill:"#006766"})}),e.jsx("span",{children:"View"})]}):e.jsxs("div",{className:"flex cursor-pointer gap-2 items-center",onClick:()=>Ge(t.userId,t.lawyerId,t._id),children:[e.jsx("svg",{width:19,height:15,viewBox:"0 0 19 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 7.52148C6 5.33398 7.78125 3.52148 10 3.52148C12.1875 3.52148 14 5.33398 14 7.52148C14 9.74023 12.1875 11.5215 10 11.5215C7.78125 11.5215 6 9.74023 6 7.52148ZM10 10.0215C11.375 10.0215 12.5 8.92773 12.5 7.52148C12.5 6.14648 11.375 5.02148 10 5.02148C9.96875 5.02148 9.9375 5.02148 9.90625 5.02148C9.96875 5.20898 10 5.36523 10 5.52148C10 6.64648 9.09375 7.52148 8 7.52148C7.8125 7.52148 7.65625 7.52148 7.5 7.45898C7.5 7.49023 7.5 7.52148 7.5 7.52148C7.5 8.92773 8.59375 10.0215 10 10.0215ZM3.96875 3.05273C5.4375 1.67773 7.46875 0.521484 10 0.521484C12.5 0.521484 14.5312 1.67773 16 3.05273C17.4688 4.39648 18.4375 6.02148 18.9062 7.14648C19 7.39648 19 7.67773 18.9062 7.92773C18.4375 9.02148 17.4688 10.6465 16 12.0215C14.5312 13.3965 12.5 14.5215 10 14.5215C7.46875 14.5215 5.4375 13.3965 3.96875 12.0215C2.5 10.6465 1.53125 9.02148 1.0625 7.92773C0.96875 7.67773 0.96875 7.39648 1.0625 7.14648C1.53125 6.02148 2.5 4.39648 3.96875 3.05273ZM10 2.02148C7.9375 2.02148 6.28125 2.95898 5 4.14648C3.78125 5.27148 2.96875 6.58398 2.53125 7.52148C2.96875 8.45898 3.78125 9.80273 5 10.9277C6.28125 12.1152 7.9375 13.0215 10 13.0215C12.0312 13.0215 13.6875 12.1152 14.9688 10.9277C16.1875 9.80273 17 8.45898 17.4375 7.52148C17 6.58398 16.1875 5.27148 14.9688 4.14648C13.6875 2.95898 12.0312 2.02148 10 2.02148Z",fill:"#006766"})}),e.jsx("span",{children:"View"})]})})}),e.jsx("td",{className:"!pt-8 !pb-4 font-Montserrat ",children:e.jsx("div",{className:"flex flex-col items-start bg-red-400",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"cursor-pointer",onClick:()=>Pt(t),children:e.jsx("svg",{fill:"#006765",width:"23px",height:"18px",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",stroke:"#006765",children:e.jsx("path",{d:"M478,256A222,222,0,0,1,99,413,220.55,220.55,0,0,1,34,256H63.92c0,105.91,86.17,192.08,192.08,192.08S448.08,361.91,448.08,256,361.91,63.92,256,63.92A191.8,191.8,0,0,0,116.58,124H175v29.92H70V49H99.93v49.3A221.93,221.93,0,0,1,478,256ZM250,139V280H373V250H280V139Z"})})}),we&&e.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-25 z-50",children:e.jsxs("div",{className:"bg-white w-[700px] p-6 rounded shadow-lg",children:[e.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Reschedule Appointment"}),e.jsxs("form",{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:"rescheduleDate",className:"block text-sm font-medium text-gray-700",children:"Select Date"}),e.jsx("input",{type:"date",id:"rescheduleDate",value:E,onChange:Gt,className:"mt-1 block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#006765] focus:border-[#006765] text-sm font-medium text-gray-800 placeholder-gray-400 hover:border-[#006765] transition-all duration-300 ease-in-out"})]}),e.jsxs("div",{className:"flex justify-end",children:[e.jsx("button",{onClick:Rt,className:"bg-white !text-[#828282] border  px-4 py-[10px] rounded",children:"Cancel"}),e.jsx("button",{onClick:()=>Jt(),className:"bg-[#006765] text-white border border-transparent px-4 py-[10px] rounded hover:bg-[#e5b576]",children:"Save"})]})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 ga
8p-2 mx-auto max-w-full",children:pe&&E&&((H=(N=pe==null?void 0:pe.value)==null?void 0:N.data[0])==null?void 0:H.slots.map(I=>(I.startTime,I.endTime,Ze.timezone&&(Ze.timezone.offset>=0?(C(I.startTime,"HH:mm").add(M,"HH:mm").format("HH:mm"),C(I.endTime,"HH:mm").add(M,"HH:mm").format("HH:mm")):(C(I.startTime,"HH:mm").subtract(M,"HH:mm").format("HH:mm"),C(I.endTime,"HH:mm").subtract(M,"HH:mm").format("HH:mm"))),e.jsxs("div",{onClick:()=>{I.isBooked||Yt(I)},id:I.slotId,className:`py-2 mt-3 px-auto font-semibold text-center text-base whitespace-nowrap rounded-xl cursor-pointer ${I.isLawyerBooked?"bg-[#0067660F] text-[#006766]":I.isBooked?"text-[#94A3B8] border border-[#94A3B8]":"bg-[#0067660F] text-[#006766]"}`,children:[I.startTime," -"," ",I.endTime]},I.slotId))))})]})})]})})}),e.jsx("td",{className:"!pt-8 !pb-4 font-Montserrat ",children:e.jsx("div",{className:"flex flex-col items-start bg-red-400",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"cursor-pointer text-ThemeSecondary pb-1",onClick:()=>dt(t),children:"Add Details"}),Pe&&e.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-25 z-50",children:e.jsxs("div",{className:"bg-white w-[1200px] px-8 py-10 rounded-lg shadow-2xl relative",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-800 mb-6 text-center",children:"Upload Appointment Details"}),e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("div",{className:"flex-1 bg-gray-100 p-6 rounded-lg shadow-sm",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4 text-gray-700",children:"Record Voice"}),e.jsxs("div",{className:"flex flex-col items-center justify-center",children:[e.jsxs("div",{className:"bg-red-500 w-full flex gap-2",children:[st?e.jsx("button",{onClick:lt,className:"bg-[#e5b576] text-white px-6 py-2 rounded-full text-lg hover:bg-[#006765] transition-all",children:"Stop Recording"}):e.jsx("button",{onClick:Et,className:"bg-[#006765] text-white px-6 py-2 rounded-full text-lg hover:bg-[#e5b576] transition-all",children:"Start Recording"})," ",e.jsx("button",{onClick:It,className:"bg-[#939494] text-white border-none px-6 py-2 rounded-full text-lg hover:bg-[#9fa0a0] transition-all",children:"Re-Record"})]}),e.jsx("p",{className:"mt-2 text-gray-500",children:st?`Recording... Duration: ${Dt(Mt)}`:"Press to start recording your voice."}),je||(de=(X=v==null?void 0:v.caseDescription)==null?void 0:X.text)!=null&&de.startsWith("blob:")?e.jsxs("audio",{controls:!0,className:"mt-4 w-full",children:[e.jsx("source",{src:(oe=(Q=v==null?void 0:v.caseDescription)==null?void 0:Q.text)!=null&&oe.startsWith("blob:")?URL.createObjectURL(new Blob([v.caseDescription.text])):je,type:"audio/wav"}),"Your browser does not support the audio element."]}):e.jsx("p",{className:"text-gray-500",children:"Nothing Recorded Yet"})]})]}),e.jsxs("div",{className:"flex-1 bg-gray-100 p-6 rounded-lg shadow-sm",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4 text-gray-700",children:"Add Text Description"}),e.jsx("textarea",{defaultValue:(G=(ve=v==null?void 0:v.caseDescription)==null?void 0:ve.text)!=null&&G.startsWith("blob:")||(O=(ce=v==null?void 0:v.caseDescription)==null?void 0:ce.text)!=null&&O.startsWith("http")||(ht=(_=v==null?void 0:v.caseDescription)==null?void 0:_.text)!=null&&ht.startsWith("https")?"":(gt=v==null?void 0:v.caseDescription)==null?void 0:gt.text,onChange:I=>{const ft=I.target.value,bt=ft.split(/\s+/).filter(Qt=>Qt.length>0).length;bt<=800?(Ut(ft),zt(bt)):(f.dismiss(),f.error("Word limit exceeded! Maximum 800 words allowed."))},className:"w-full h-[200px] p-4 border border-gray-700 rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-[#006765]",placeholder:"Write a detailed description..."}),e.jsxs("p",{className:`mt-2 ${_e>800?"text-red-500":"text-gray-500"}`,children:[_e,"/800 words"]})]})]}),e.jsxs("div",{className:"flex justify-end items-center mt-6",children:[e.jsx("button",{onClick:Ht,className:"bg-white text-gray-700 text-black px-6 py-2 rounded-md mr-4 transition-all",children:"Cancel"}),e.jsx("button",{disabled:_e>800,onClick:()=>Lt(t),className:"bg-[#006765] text-white px-6 py-2 rounded-md hover:bg-[#006765]/80 transition-all",children:Nt?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"loader border-t-white border-4 rounded-full w-4 h-4 animate-spin"}),"Uploading..."]}):"Save"})]})]})})]})})})]})},s)})})]})})})}),e.jsxs("div",{className:"flex flex-col gap-10",children:[e.jsx(T,{varient:"green-head",children:"All Appointments"}),a.queryResult&&a.queryResult.data.length===0?e.jsx("div",{style:{padding:"20px"},children:"No record found"}):e.jsxs("div",{className:" relative",children:[e.jsx("div",{className:"table-responsive ",children:e.jsx("div",{className:"flex flex-col gap-3 w-full",onClick:()=>{at.every(t=>t===!1)||mt(Array(20).fill(!1))},children:a.queryResult&&a.queryResult.data.map((t,s)=>{let c=t.endTime;r.timezone&&(r.timezone.offset>=0?c=C(t.endTime,"HH:mm").add(M,"HH:mm").format("HH:mm"):c=C(t.endTime,"HH:mm").subtract(M,"HH:mm").format("HH:mm"));let x=t.date,N=t.startTime;const H=t.date.split("-"),X=`${H[2]}-${H[1]}-${H[0]}T${t.startTime}:00`,de=C(X);if(r.timezone)if(r.timezone.offset>=0){const _=C(de).add(M,"HH:mm").format("DD-MM-YYYY,HH:mm");x=_.split(",")[0],N=_.split(",")[1]}else{const _=C(de).subtract(M,"HH:mm").format("DD-MM-YYYY,HH:mm");x=_.split(",")[0],N=_.split(",")[1]}const Q=x.split("-"),oe=C([Q[2],Q[1],Q[0]]),G=C().format("YYYY/MM/DD").split("/"),O=C([G[0],G[1],G[2]]).diff(oe,"days");return e.jsxs("div",{style:{border:"1px solid #EBEBEB"}
8,className:"flex hover:!border-[#E3B576] overflow-auto scroll-cont w-full items-center py-[30px] px-[20px] rounded-md  justify-between font-Montserrat",children:[e.jsxs("div",{className:"flex flex-col min-w-[120px] max-w-[120px] items-start gap-[10px]",children:[e.jsx("div",{className:W,children:"Lawyer"}),e.jsxs("div",{className:"font-Montserrat text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:[" ",t.lawyerData.firstName," ",t.lawyerData.lastName]})]}),e.jsxs("div",{className:"flex flex-col min-w-[190px] max-w-[190px] items-start gap-[10px]",children:[e.jsx("div",{className:W,children:"appointment date"}),e.jsxs("div",{className:"font-Montserrat text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:["a ",x]})]}),e.jsxs("div",{className:"flex flex-col min-w-[120px] max-w-[120px] items-start gap-[10px]",children:[e.jsx("div",{className:W,children:"TIme slot"}),e.jsxs("div",{className:"font-Montserrat text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:[N," - ",c]})]}),e.jsxs("div",{className:"flex flex-col min-w-[120px] max-w-[120px] items-start gap-[10px]",children:[e.jsx("div",{className:W,children:"Status"}),e.jsxs("div",{className:"font-Montserrat text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:[" ",t.status==="canceled"?"cancelled":t.status]})]}),e.jsxs("div",{className:"flex flex-col min-w-[120px] max-w-[120px] items-start gap-[10px]",children:[e.jsx("div",{className:W,children:"Timeline"}),e.jsx("div",{className:"font-Montserrat text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:O===-1?"One day left":O===1?"One day ago":O===0?"Today":O>1?`${O} days ago`:O<1?`${Math.abs(O)} days left`:null})]}),e.jsxs("div",{className:"flex flex-col min-w-[120px] max-w-[120px] items-start ",children:[e.jsx("div",{className:W,children:"Action"}),e.jsx("div",{className:"font-Montserrat text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:e.jsx(it,{count:5,value:w.rating,onChange:_=>{b({...w,rating:_}),y(!0)},size:24,activeColor:"#ffd700"})})]}),e.jsxs("div",{className:"flex flex-col items-start gap-[10px] ",children:[e.jsx("div",{className:W}),e.jsx("div",{className:"cursor-pointer",onClick:()=>Wt(s),children:e.jsx("svg",{width:4,height:14,viewBox:"0 0 4 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2 10.0215C2.8125 10.0215 3.5 10.709 3.5 11.5215C3.5 12.3652 2.8125 13.0215 2 13.0215C1.15625 13.0215 0.5 12.3652 0.5 11.5215C0.5 10.709 1.15625 10.0215 2 10.0215ZM2 5.02148C2.8125 5.02148 3.5 5.70898 3.5 6.52148C3.5 7.36523 2.8125 8.02148 2 8.02148C1.15625 8.02148 0.5 7.36523 0.5 6.52148C0.5 5.70898 1.15625 5.02148 2 5.02148ZM2 3.02148C1.15625 3.02148 0.5 2.36523 0.5 1.52148C0.5 0.708984 1.15625 0.0214844 2 0.0214844C2.8125 0.0214844 3.5 0.708984 3.5 1.52148C3.5 2.36523 2.8125 3.02148 2 3.02148Z",fill:"#006766"})})}),at[s]&&e.jsxs("div",{className:"right-[1.5rem] b dd z-10 flex flex-col gap-2 py-2 bg-white px-3 absolute",children:[e.jsx("div",{onClick:()=>Ft(t),className:"cursor-pointer",children:"View"}),e.jsx("div",{className:"appointment-status",children:(t.status==="completed"||t.status==="pending")&&t.paymentData.isTrailPayment===!1&&O<7?e.jsx("button",{onClick:()=>{Y(t),k(!0)},children:"Dispute"}):(t.status==="completed"||t.status==="pending"||t.status==="paidOut")&&t.paymentData.isTrailPayment===!0?e.jsx("div",{className:"flex cursor-pointer gap-2 items-center",onClick:()=>{y(!0),b({...w,userId:t.userId,lawyerId:t.lawyerId,appointmentId:t._id})},children:e.jsx("span",{children:"Review"})}):t.status==="completed"&&t.paymentData.isTrailPayment===!1&&O>=7?e.jsx("div",{className:"flex cursor-pointer gap-2 items-center",onClick:()=>{y(!0),b({...w,userId:t.userId,lawyerId:t.lawyerId,appointmentId:t._id})},children:e.jsx("span",{children:"Review"})}):t.status==="canceled"||t.status==="paidOut"||t.status==="dispute"?e.jsx("div",{className:"flex cursor-pointer gap-2 items-center",onClick:()=>{y(!0),b({...w,userId:t.userId,lawyerId:t.lawyerId,appointmentId:t._id})},children:e.jsx("span",{children:"Review"})}):""}),e.jsx("div",{className:"cursor-pointer",onClick:()=>{Y(t),k(!0)},children:"Dispute"}),e.jsx("div",{className:"cursor-pointer",onClick:()=>dt(t),children:"Add Details"})]})]}),e.jsx("style",{children:`
9                    /* Style for the scroll bar */
10                    .scroll-cont::-webkit-scrollbar {
11                        height: 6px; /* Set the width of the scrollbar */
12                    }
13            
14                    /* Track style */
15                    .scroll-cont::-webkit-scrollbar-track {
16                        background-color: #f1f1f1; /* Set the background color of the scrollbar track */
17                    }
18            
19                    /* Handle style */
20                    .scroll-cont::-webkit-scrollbar-thumb {
21                        background-color: #006766; /* Set the color of the scrollbar handle */
22                    }
23            
24                    /* Handle on hover */
25                    .scroll-cont::-webkit-scrollbar-thumb:hover {
26                        background-color: #555; /* Set the color of the scrollbar handle on hover */
27                    }
28  
29                    `})]},s)})})}),e.jsx(jt,{previousLabel:"previous",nextLabel:"next",breakLabel:"...",breakClassName:"break-me",pageCount:ue,marginPagesDisplayed:2,pageRangeDisplayed:5,onPageChange:Vt,containerClassName:"pagination",activeClassName:"active"})]})]}),e.jsx("div",{className:`${q?"fixed h-full w-full inset-0 backdrop-blur-sm backdrop-brightness-50 z-[20]":"hidden"}`,children:e.jsx("div",{onClick:t=>{t.stopPropagation(),t.target,t.currentTarget},className:"flex flex-col justify-center  items-center h-full ",children:e.jsxs("div",{className:"max-w-[862px] flex flex-col justify-center relative rounded-[10px] h-full m-auto bg-white max-h-[560px] px-[118px]",children:[e.jsx("div",{className:"absolute top-[-60px] right-[330px] flex flex-col items-center justify-center  rounded-full backdrop-brightness-50  min-w-[134px] min-h-[134px] ",children:e.jsx("img",{src:"/reviews-img.png",alt:"reviews",className:"  "})}),e.jsxs("div",{className:"flex flex-col gap-3 mt-[4.5rem]",children:[e.jsx("div",{className:"text-[#E3B576] text-center text-sm not-italic font-medium leading-[45px] tracking-[0.28px] uppercase",children:"Thank you for your time"}),e.jsx("div",{className:"text-[#006766] mb-6 text-center text-[42px] not-italic font-medium leading-[48px] tracking-[0.84px] uppercase",children:"RATE YOUR EXPERIENCE"}),e.jsxs("div",{className:"review-card-box",children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(it,{count:5,value:w.rating,onChange:t=>b({...w,rating:t}),size:74,activeColor:"#ffd700"})}),e.jsx("div",{className:"field-group"}),e.jsx("textarea",{className:"fom-control px-[18px] bg-white border border-[#ebebeb] pt-[15px] ",name:"review",type:"text",value:w.review,rows:20,onChange:t=>b({...w,review:t.target.value}),placeholder:"Write your review on your previous session with the lawyer."}),e.jsxs("div",{className:"content_LAuth_action flex flex-col gap-4",children:[e.jsx(me,{handleClick:ct,varient:"bgyellow",children:"Submit"}),e.jsxs("div",{onClick:()=>y(!1),className:"flex items-center justify-center gap-2 cursor-pointer",children:[e.jsx("svg",{width:13,height:12,viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M12.7207 6.14062C12.7207 6.52344 12.4199 6.82422 12.0645 6.82422H2.76758L6.4043 10.2695C6.67773 10.5156 6.67773 10.9531 6.43164 11.1992C6.18555 11.4727 5.77539 11.4727 5.50195 11.2266L0.689453 6.63281C0.552734 6.49609 0.498047 6.33203 0.498047 6.14062C0.498047 5.97656 0.552734 5.8125 0.689453 5.67578L5.50195 1.08203C5.77539 0.835938 6.18555 0.835938 6.43164 1.10938C6.67773 1.35547 6.67773 1.79297 6.4043 2.03906L2.76758 5.48438H12.0645C12.4473 5.48438 12.7207 5.78516 12.7207 6.14062Z",fill:"#252525"})}),e.jsx("div",{className:"text-[#252525] text-sm not-italic font-medium leading-[normal] tracking-[0.28px] capitalize",children:"GO BACK"})]})]})]})]})]})})}),e.jsx("div",{className:`${o?"fixed inset-0 backdrop-blur-sm backdrop-brightness-50 z-[20]":"hidden"} flex flex-col justify-center items-center h-full w-full `,children:e.jsx("div",{className:"bg-white w-full px-[158px] flex flex-col justify-center max-w-[862px] h-full max-h-[430px] m-auto",children:e.jsxs("div",{className:"flex flex-col gap-3 w-full",children:[e.jsxs("div",{className:"content_LAuth pt-2",children:[e.jsx("div",{className:"text-[#E3B576] text-center text-sm not-italic font-medium leading-[45px] tracking-[0.28px] uppercase",children:"We are sorry"}),e.jsx("div",{className:"text-[#006766] mb-6 text-center text-[42px] n
29ot-italic font-medium leading-[48px] tracking-[0.84px] uppercase",children:"Raise a dispute"}),e.jsx("textarea",{name:"reason",type:"text",rows:5,className:"form-control  !bg-white placeholder:text-[#252525]/40 px-[18px] bg-white border border-[#ebebeb] pt-[15px] text-[#252525] text-sm not-italic font-medium leading-[normal] tracking-[0.28px] capitalize",value:z.reason,onChange:t=>ne({...z,reason:t.target.value}),placeholder:"Please write and explain the reason to raise the dispute."}),V.reason&&e.jsx("span",{className:"required",style:{color:"#ff5a5a"},children:V.reason})]}),e.jsx("div",{className:"content_LAuth_action",children:e.jsx(me,{handleClick:Zt,varient:"bgyellow",children:"Submit"})}),e.jsxs("div",{onClick:()=>k(!1),className:"flex items-center justify-center gap-2 cursor-pointer",children:[e.jsx("svg",{width:13,height:12,viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M12.7207 6.14062C12.7207 6.52344 12.4199 6.82422 12.0645 6.82422H2.76758L6.4043 10.2695C6.67773 10.5156 6.67773 10.9531 6.43164 11.1992C6.18555 11.4727 5.77539 11.4727 5.50195 11.2266L0.689453 6.63281C0.552734 6.49609 0.498047 6.33203 0.498047 6.14062C0.498047 5.97656 0.552734 5.8125 0.689453 5.67578L5.50195 1.08203C5.77539 0.835938 6.18555 0.835938 6.43164 1.10938C6.67773 1.35547 6.67773 1.79297 6.4043 2.03906L2.76758 5.48438H12.0645C12.4473 5.48438 12.7207 5.78516 12.7207 6.14062Z",fill:"#252525"})}),e.jsx("div",{className:"text-[#252525] text-sm not-italic font-medium leading-[normal] tracking-[0.28px] capitalize",children:"GO BACK"})]})]})})}),e.jsx("style",{children:`
30      .react-responsive-modal-modal{
31      min-width:862px;
32      max-width:862px;
33      min-height:460px;
34      max-height:460px;
35      `})]})},ga=a=>({lawyerData:a.booking&&a.booking||{},user:a.auth&&a.auth.user||{},auth:a.auth&&a.auth||{},ratings:a.ratings&&a.ratings||{},bookingData:a.booking&&a.booking||{},generalAvailability:a["general-availability"]&&a["general-availability"]||{},availabilityException:a["availability-exception"]&&a["availability-exception"]||{}}),fa=ze(ke,Me(ga,{}))(ha),ba=a=>{const[r,u]=i.useState(!1),n=()=>u(!1);let p=5;const[m,h]=i.useState(0),[R,S]=i.useState(0),[q,y]=i.useState(0);i.useEffect(()=>{b()},[]);const w=({selected:o})=>{h(o*p),y(o)};i.useEffect(()=>{b()},[m]),i.useEffect(()=>{S(Math.ceil(a.accountancyData.queryResult&&a.accountancyData.queryResult.total/p))},[a.accountancyData]);const b=async()=>{try{localStorage.getItem("idToken")&&P.accountancy.find({query:{id:a.user._id,role:"user",skip:m,limit:p}})}catch{}},D="text-[#252525]/40 text-start text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase";return e.jsxs("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"pt-[30px] lg:pl-[50px] px-[20px] lg:pr-[40px]",children:[e.jsx(T,{varient:"green-head",children:"Payment Against Appointment"}),e.jsxs("div",{className:"",children:[e.jsx("div",{className:"table-responsive",children:a.transactionsData.isLoading?e.jsx("div",{children:"Laoding..."}):a.accountancyData.queryResult&&a.accountancyData.queryResult.total===0?e.jsx("div",{children:"No record found"}):a.accountancyData.queryResult&&a.accountancyData.queryResult.total>0?e.jsx(e.Fragment,{children:e.jsx("div",{className:"flex gap-3 items-center flex-col mt-[20px]",children:a.accountancyData.queryResult.data.map((o,k)=>{var V,A,z,ne,J,$,ue,be,ee,L,xe,se,Ee,re,M;let j,Y;if(o.groupDetails[0].metaDataObject&&o.groupDetails[0].paymentFor==="lawyer"&&!o.groupDetails[0].metaDataObject.trailPayment){const B=o.groupDetails[0].metaDataObject,Te=B.totalLawyerFee+B.totalSessionCommission,Le=Te*B.vat;Y=Te+Le}else if(o.groupDetails[0].metaDataObject&&o.groupDetails[0].paymentFor==="lawyer"&&o.groupDetails[0].metaDataObject.trailPayment)j=0;else if(o.groupDetails[0].paymentFor==="recommendate"){let B;o.groupDetails[0].metaDataObject.discountAmount?B=o.groupDetails[0].metaDataObject.discountAmount:B=o.groupDetails[0].metaDataObject.amount,j=(parseFloat(B)+parseFloat(B*((A=(V=o==null?void 0:o.groupDetails[0])==null?void 0:V.metaDataObject)==null?void 0:A.vat))).toFixed(2)}return e.jsxs("div",{style:{border:"1px solid #EBEBEB"}
35,className:"flex overflow-auto hover:!border-[#E3B576] scroll-cont items-center py-[30px] px-[20px] rounded-md  justify-between w-full font-Montserrat",children:[e.jsxs("div",{className:"flex flex-col min-w-[120px] max-w-[120px] items-start gap-[10px]",children:[e.jsx("div",{className:D,children:"Date"}),e.jsxs("div",{className:"font-Montserrat min-w-[120px] max-w-[120px] text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:[" ",C(o.groupDetails[0].createdAt).format("lll").slice(0,12)]})]}),e.jsxs("div",{className:"flex flex-col min-w-[150px] max-w-[150px] items-start gap-[10px]",children:[e.jsx("div",{className:D,children:((z=o.groupDetails[0].lawyerData[0])==null?void 0:z.role)||"Lawyer"}),e.jsx("div",{className:"font-Montserrat min-w-[150px] max-w-[150px] text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:o.groupDetails[0].lawyerData.length?o.groupDetails[0].lawyerData[0].firstName+" "+o.groupDetails[0].lawyerData[0].lastName:"N/A"})]}),e.jsxs("div",{className:"flex flex-col min-w-[140px] max-w-[140px] items-start gap-[10px]",children:[e.jsx("div",{className:D,children:"Description"}),e.jsxs("div",{title:o.groupDetails[0].paymentFor==="lawyer"?`Payment for session booking service ${(J=(ne=o.groupDetails[0])==null?void 0:ne.lawyerData[0])!=null&&J.firstName?"- "+((ue=($=o.groupDetails[0])==null?void 0:$.lawyerData[0])==null?void 0:ue.firstName)+" "+((ee=(be=o.groupDetails[0])==null?void 0:be.lawyerData[0])==null?void 0:ee.lastName):""}`:"Payment for recommendation service",className:"font-Montserrat min-w-[140px] truncate max-w-[140px] text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:[" ",o.groupDetails[0].paymentFor==="lawyer"?`Payment for session booking service ${(xe=(L=o.groupDetails[0])==null?void 0:L.lawyerData[0])!=null&&xe.firstName?"- "+((Ee=(se=o.groupDetails[0])==null?void 0:se.lawyerData[0])==null?void 0:Ee.firstName)+" "+((M=(re=o.groupDetails[0])==null?void 0:re.lawyerData[0])==null?void 0:M.lastName):""}`:"Payment for recommendation service"]})]}),e.jsxs("div",{className:"flex flex-col min-w-[140px] max-w-[140px] items-start gap-[10px]",children:[e.jsx("div",{className:D,children:"Fee Payment"}),e.jsxs("div",{className:"font-Montserrat min-w-[140px] max-w-[140px] text-[#252525] text-base not-italic font-medium leading-[normal] capitalize ",children:["£",o.groupDetails[0].paymentFor==="lawyer"?parseFloat(Y).toFixed(2):parseFloat(j).toFixed(2),"(VAT INCL.)"]})]}),e.jsx("style",{children:`
36                    /* Style for the scroll bar */
37                    .scroll-cont::-webkit-scrollbar {
38                        height: 6px; /* Set the width of the scrollbar */
39                    }
40            
41                    /* Track style */
42                    .scroll-cont::-webkit-scrollbar-track {
43                        background-color: #f1f1f1; /* Set the background color of the scrollbar track */
44                    }
45            
46                    /* Handle style */
47                    .scroll-cont::-webkit-scrollbar-thumb {
48                        background-color: #006766; /* Set the color of the scrollbar handle */
49                    }
50            
51                    /* Handle on hover */
52                    .scroll-cont::-webkit-scrollbar-thumb:hover {
53                        background-color: #555; /* Set the color of the scrollbar handle on hover */
54                    }
55  
56                    `})]},k)})})}):e.jsx(e.Fragment,{children:"No payment History found"})}),e.jsx("div",{children:e.jsx(jt,{previousLabel:"previous",nextLabel:"next",breakLabel:"...",breakClassName:"break-me",pageCount:R,marginPagesDisplayed:2,pageRangeDisplayed:5,onPageChange:w,containerClassName:"pagination",activeClassName:"active"})})]}),e.jsx(ta,{open:r,onClose:n,center:!0,children:e.jsxs("div",{className:"raised-Modal-form",children:[e.jsx("div",{className:"modal-header",children:e.jsx("h2",{children:"Raised Amount"})}),e.jsx("div",{className:"modal-content",children:e.jsxs("form",{action:"",children:[e.jsxs("div",{className:"form-group",children:[e.jsx("label",{htmlFor:"lawyerName",children:"User Name"}),e.jsx("input",{type:"text",placeholder:"Enter username",className:"form-control"})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{htmlFor:"lawyerName",children:"Email Address "}),e.jsx("input",{type:"text",placeholder:"Enter email",className:"form-control"})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{htmlFor:"lawyerName",children:"You Want Refund ?"}),e.jsxs("select",{className:"form-control",children:[e.jsx("option",{value:"yes",children:"Yes"}),e.jsx("option",{value:"yes",children:"No"})]})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{htmlFor:"lawyerName",children:"Amount"}),e.jsx("input",{type:"text",placeholder:"Enter Amount",className:"form-control"})]}),e.jsxs("div",{className:"form-group fullWidth",children:[e.jsx("label",{htmlFor:"lawyerName",children:"Reason"}),e.jsx("textarea",{type:"text",placeholder:"Write Your reasion",className:"form-control"})]}),e.jsx("div",{className:"form-group mb-1 fullWidth text-center",children:e.jsx("button",{type:"button",className:"btn getStarted w-auto",children:"Submit"})})]})})]})})]})},Ta=a=>({user:a.auth&&a.auth.user||{},transactionsData:a.transactions&&a.transactions||{},accountancyData:a.accountancy&&a.accountancy||{}}),wa=ze(ke,Me(Ta,{}))(ba);let Ne,Oe,Be,fe=0;function Ue(a){let r=a+"=",n=decodeURIComponent(document.cookie).split(";");for(let p=0;p<n.length;p++){let m=n[p];for(;m.charAt(0)==" ";)m=m.substring(1);if(m.indexOf(r)==0)return m.substring(r.length,m.length)}return""}class Sa extends aa.Component{constructor(r){super(r),this.state={submitted:!1},this.handleClick=this.handleClick.bind(this)}async componentDidMount(){const r=await la();this.setState({stripe:r})}async handleClick(r){r.preventDefault();const{stripe:u}=this.state;if(!u)return;const n=JSON.parse(sessionStorage.getItem("state")),p=await fetch("https://api.legateca.com/stripe_verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:n.auth.user._id,token:n.auth.token,email:n.auth.user.email,fname:n.auth.user.firstName,lname:n.auth.user.lastName})});Ne=n.auth.user.stripeVerifiedAt,Be=n.auth.user.stripeVerifiedAt;const m=await p.json(),h=await u.verifyIdentity(m.client_secret),{error:R}=h;if(R)console.log("[error]",R.message);else{const y=Ue("uid");if(fe=parseInt(Ue("click")),n.auth.user._id!=y){const o=new Date;var S=30;o.setTime(o.getTime()+S*60*1e3);let k="expires="+o.toUTCString();document.cookie="click=0;"+k+";path=/; secure;"}var q=parseInt(Ue("click"));if(q>=0){fe=parseInt(Ue("click"));const o=new Date;var S=30;o.setTime(o.getTime()+S*60*1e3);let j="expires="+o.toUTCString();fe=fe+1,document.cookie="click="+fe+";"+j+";path=/; secure;",document.cookie="uid="+n.auth.user._id+";"+j+";path=/; secure;"}else{const o=new Date;var S=30;o.setTime(o.getTime()+S*60*1e3);let j="expires="+o.toUTCString();document.cookie="click=0;"+j+";path=/; secure;",document.cookie="uid="+n.auth.user._id+";"+j+";path=/; secure;"}const b=await(await fetch(`https://api.legateca.com/users/${n.auth.user._id}`)).json(),D=JSON.parse(sessionStorage.getItem("state"));D.auth.user=b,sessionStorage.setItem("state",JSON.stringify(D)),Oe=b.stripeVerifiedAt,this.setState({submitted:!0})}}render(){const{stripe:r,submitted:u}=this.state,n=JSON.parse(sessionStorage.getItem("state")),p=Ue("uid");if(fe=parseInt(Ue("click")),fe>3&&n.auth.user._id==p)return e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("br",{}),e.jsx("center",{children:e.jsx("img",{src:"../../cross.png",width:"200",height:"200"})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("h2",{children:"You have reached the limit for the number of attempts for now"}),e.jsx("ul",{children:e.jsx("li",{children:"Please try again later."})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("br",{})]});if(u)return sessionStorage.setItem("processing","true"),e.jsxs(e.Fragment,{children:[e.jsx("h2",{children:"Thank y
56ou for submitting you Identity details."}),e.jsxs("ul",{children:[e.jsx("li",{children:"We are processing your request. Please dont attempt multiple times to avoid any issues."}),e.jsx("li",{children:"You will be able to see the status after sometime. We will also send a response at your registered email address."})]})]});if(typeof n.auth.user.stripeVerifiedid=="undefined"&&(n.auth.user.stripeVerifiedStatus=!1,n.auth.user.stripeVerifiedAt="1800-01-01T00:00:00.355+00:00",n.auth.user.stripeVerifiedExpiration="Not Verified",n.auth.user.stripeVerifiedid="Not Verified",sessionStorage.setItem("state",JSON.stringify(n))),typeof Ne=="undefined"){const h=JSON.parse(sessionStorage.getItem("state"));Ne=h.auth.user.stripeVerifiedAt,Oe=h.auth.user.stripeVerifiedAt,Be=h.auth.user.stripeVerifiedStatus.toString()}const m=C(Ne).add(1,"years");return C().isAfter(m)==!0&&Be=="true"?e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("button",{className:"button-ver cursor-pointer bg-[#006766]! CaptchaSubmit 3xl:py-10! py-[20px]! text-white! text-center! 3xl:text-[30px]! text-sm! not-italic! hover:bg-[#e3b576]! border-none! font-medium! rounded-md! mt-[30px]! mb-[20px]! tracking-[0.28px]!",role:"link",disabled:!r,onClick:this.handleClick,children:"Your identity check has expired. Click here to verify again."}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{className:"text-black",children:"Before starting the verification process, here’s what you need:"}),e.jsx("br",{}),e.jsxs("ul",{children:[e.jsx("li",{children:"A valid government-issued photo ID document. Not a photocopy or a picture of an ID document. Ensure that the ID document is not expired."}),e.jsx("li",{children:"A device with a camera, if possible, use a mobile device. Cameras on mobile devices typically take higher-quality photos than a webcam."})]}),e.jsx("span",{className:"text-black",children:"The quality of the images captured affects success rates dramatically. Below are a few best practices to help ensure that your verification succeeds:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Capture a clear image. Make sure that the images are not too dark or bright, and don’t have a glare. Hold steady and allow your camera to focus to avoid blurry photos."}),e.jsx("li",{children:"Do not block any part of your ID document in the image. Ideally you can lay it flat to take the photo."}),e.jsx("li",{children:"Do not block any part of your face. Remove sunglasses, masks, or other accessories."}),e.jsx("li",{children:"Find a location with ambient lighting. Avoid spaces with strong overhead lights that cast a shadow on your face or ID document. Avoid sitting directly in front of a bright light which can wash out your face and add a glare to your ID document."})]})]}):C(Ne).isSame(Oe)==!0&&Be=="false"?e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"py-[26px] pl-[30px] pr-[44px]",children:[e.jsx(T,{varient:"green-head",children:"ID Verification"}),e.jsxs("div",{className:"pt-[26px] flex flex-col gap-3",children:[e.jsx(T,{varient:"black-head",children:"Before starting the verification process, here’s what you need"}),e.jsxs("div",{children:[e.jsx(K,{children:"A valid government-issued photo ID document. Not a photocopy or a picture of an ID document. Ensure that the ID document is not expired."}),e.jsx(K,{children:"A device with a camera, if possible, use a mobile device. Cameras on mobile devices typically take higher-quality photos than a webcam."})]})]})]}),e.jsx("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"py-[26px] pl-[30px] pr-[44px]",children:e.jsxs("div",{className:"pt-[26px] flex flex-col gap-3",children:[e.jsx(T,{varient:"black-head",children:"The quality of the images captured affects success rates dramatically. Below are a few best practices to help ensure that your verification succeeds"}),e.jsxs("div",{children:[e.jsx(K,{children:"Capture a clear image. Make sure that the images are not too dark or bright, and don’t have a glare. Hold steady and allow your camera to focus to avoid blurry photos."}),e.jsx(K,{children:"Do not block any part of your ID document in the image. Ideally you can lay it flat to take the photo."}),e.jsx(K,{children:"Do not block any part of your face. Remove sunglasses, masks, or other accessories."}),e.jsx(K,{children:"Find a location with ambient lighting. Avoid spaces with strong overhead lights that cast a shadow on your face or ID document. Avoid sitting directly in front of a bright light which can wash out your face and add a glare to your ID document."})]})]})}),e.jsx("div",{className:"pt-7 lg:max-w-[240px]",children:e.jsx(me,{disabled:!r,handleClick:this.handleClick,children:"Verify your identity"})})]}):C(Ne).isSame(Oe)==!0&&Be=="true"?e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("br",{}),e.jsx("center",{children:e.jsx("img",{src:"../../check.png",width:"200",height:"200"})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("h2",{children:"Your ID is verified."}),e.jsxs("ul",{children:[e.jsx("li",{children:"We may ask you to verify your ID periodically as per the Terms and Conditions."}),e.jsxs("li",{children:["Please check ",e.jsx("a",{href:"/faq",children:"FAQs"})," or"," ",e.jsx("a",{href:"/contact-us",children:"contact us"})," if you need any clarification."]})]}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("br",{})]}):sessionStorage.getItem("processing")=="true"||u?(sessionStorage.setItem("processing","true"),e.jsxs(e.Fragment,{children:[e.jsx("h2",{children:"Thanks for submitting your identity document"}),e.jsx("ul",{children:e.jsx("li",{children:"We are process your documents."})})]})):e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"py-[26px] pl-[30px] pr-[44px]",children:[e.jsx(T,{varient:"green-head",children:"ID Verification"}),e.jsxs("div",{className:"pt-[26px] flex flex-col gap-3",children:[e.jsx(T,{varient:"black-head",children:"Before starting the verification process, here’s what you need"}),e.jsxs("div",{children:[e.jsx(K,{children:"A valid government-issued photo ID document. Not a photocopy or a picture of an ID document. Ensure that the ID document is not expired."}),e.jsx(K,{children:"A device with a camera, if possible, use a mobile device. Cameras on mobile devices typically take higher-quality photos than a webcam."})]})]})]}),e.jsx("div",{style:{borderRadius:"11px",border:"1px solid #EBEBEB"},className:"py-[26px] pl-[30px] pr-[44px]",children:e.jsxs("div",{className:"pt-[26px] flex flex-col gap-3",children:[e.jsx(T,{varient:"black-head",children:"The quality of the images captured affects success rates dramatically. Below are a few best practices to help ensure that your verification succeeds"}),e.jsxs("div",{children:[e.jsx(K,{children:"Capture a clear image. Make sure that the images are not too dark or bright, and don’t have a glare. Hold steady and allow your camera to focus to avoid blurry photos."}),e.jsx(K,{children:"Do not block any part of your ID document in the image. Ideally you can lay it flat to take the photo."}),e.jsx(K,{children:"Do not block any part of your face. Remove sunglasses, masks, or other accessories."}),e.jsx(K,{children:"Find a location with ambient lighting. Avoid spaces with strong overhead lights that cast a shadow on your face or ID document. Avoid sitting directly in front of a bright light which can wash out your face and add a glare to your ID document."})]})]})}),e.jsx("div",{className:"pt-7 lg:max-w-[240px]",children:e.jsx(me,{disabled:!r,handleClick:this.handleClick,children:"Verify your identity"})})]})}}const ya=()=>e.jsx(Sa,{}),ja=a=>({user:a.auth&&a.auth.user||{},transactionsData:a.transactions&&a.transactions||{}}),va=ze(ke,Me(ja,{}))(ya),Na=a=>{const[r,u]=i.useState(vt),[n,p]=i.useState("My profile");i.useEffect(()=>{a.user.email||a.history.push({pathname:"/login",state:window.location.pathname})},[a]),i.useEffect(()=>{a.user.role==="user"&&u(a.user.profile_img),a.userData.role==="user"&&u(a.userData.profile_img)},[a.user,a.userData]);const m=[{title:"My profile",svg:e.jsx("svg",{width:15,height:17,viewBox:"0 0 15 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.60376 9.66602C11.635 9.66602 14.1038 12.1348 14.1038 15.166C14.1038 15.7285 13.635 16.166 13.1038 16.166H1.10376C0.54126 16.166 0.10376 15.7285 0.10376 15.166C0.10376 12.1348 2.54126 9.66602 5.60376 9.66602H8.60376ZM1.60376 14.666H12.5725C12.3225 12.6973 10.635 11.166 8.60376 11.166H5.60376C3.54126 11.166 1.85376 12.6973 1.60376 14.666ZM7.10376 8.16602C4.88501 8.16602 3.10376 6.38477 3.10376 4.16602C3.10376 1.97852 4.88501 0.166016 7.10376 0.166016C9.29126 0.166016 11.1038 1.97852 11.1038 4.16602C11.1038 6.38477 9.29126 8.16602 7.10376 8.16602ZM7.10376 1.66602C5.69751 1.66602 4.60376 2.79102 4.60376 4.16602C4.60376 5.57227 5.69751 6.66602 7.10376 6.66602C8.47876 6.66602 9.60376 5.57227 9.60376 4.16602C9.60376 2.79102 8.47876 1.66602 7.10376 1.66602Z",fill:"currentColor"})})},{title:"ID Verification",svg:e.jsx("svg",{width:15,height:17,viewBox:"0 0 15 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M12.1038 0.458984C13.1975 0.458984 14.1038 1.36523 14.1038 2.45898V14.459C14.1038 15.584 13.1975 16.459 12.1038 16.459H2.10376C0.97876 16.459 0.10376 15.584 0.10376 14.459V2.45898C0.10376 1.36523 0.97876 0.458984 2.10376 0.458984H12.1038ZM12.6038 14.459V2.45898C12.6038 2.20898 12.3538 1.95898 12.1038 1.95898H2.10376C1.82251 1.95898 1.60376 2.20898 1.60376 2.45898V14.459C1.60376 14.7402 1.82251 14.959 2.10376 14.959H12.1038C12.3538 14.959 12.6038 14.7402 12.6038 14.459ZM10.6038 12.459C10.8538 12.459 11.1038 12.709 11.1038 12.959C11.1038 13.2402 10.8538 13.459 10.6038 13.459H3.60376C3.32251 13.459 3.10376 13.2402 3.10376 12.959C3.10376 12.709 3.32251 12.459 3.60376 12.459H10.6038ZM7.10376 10.709C5.01001 10.709 3.35376 9.05273 3.35376 6.95898C3.35376 4.89648 5.01001 3.20898 7.10376 3.20898C9.16626 3.20898 10.8538 4.89648 10.8538 6.95898C10.8538 9.05273 9.16626 10.709 7.10376 10.709ZM9.79126 6.45898C9.63501 5.61523 9.07251 4.89648 8.32251 4.52148C8.54126 5.05273 8.66626 5.74023 8.69751 6.45898H9.79126ZM8.69751 7.45898C8.66626 8.20898 8.51001 8.86523 8.32251 9.42773C9.07251 9.02148 9.63501 8.33398 9.79126 7.45898H8.69751ZM7.10376 4.30273C6.88501 4.55273 6.54126 5.30273 6.47876 6.45898H
567.72876C7.63501 5.30273 7.29126 4.55273 7.10376 4.30273ZM7.72876 7.45898H6.47876C6.54126 8.64648 6.88501 9.39648 7.10376 9.64648C7.29126 9.39648 7.63501 8.64648 7.72876 7.45898ZM5.85376 4.52148C5.10376 4.89648 4.54126 5.61523 4.38501 6.45898H5.47876C5.51001 5.74023 5.63501 5.05273 5.85376 4.52148ZM5.47876 7.45898H4.38501C4.54126 8.33398 5.10376 9.02148 5.85376 9.42773C5.63501 8.86523 5.51001 8.20898 5.47876 7.45898Z",fill:"currentColor"})})},{title:"My Documents",svg:e.jsx("svg",{width:13,height:17,viewBox:"0 0 13 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M0.10376 2.25195C0.10376 1.1582 0.97876 0.251953 2.10376 0.251953H7.26001C7.79126 0.251953 8.29126 0.470703 8.66626 0.845703L11.51 3.68945C11.885 4.06445 12.1038 4.56445 12.1038 5.0957V14.252C12.1038 15.377 11.1975 16.252 10.1038 16.252H2.10376C0.97876 16.252 0.10376 15.377 0.10376 14.252V2.25195ZM10.6038 14.252V5.25195H8.10376C7.54126 5.25195 7.10376 4.81445 7.10376 4.25195V1.75195H2.10376C1.82251 1.75195 1.60376 2.00195 1.60376 2.25195V14.252C1.60376 14.5332 1.82251 14.752 2.10376 14.752H10.1038C10.3538 14.752 10.6038 14.5332 10.6038 14.252Z",fill:"currentColor"})})},{title:"My appointments",svg:e.jsx("svg",{width:"15",height:"17",viewBox:"0 0 15 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.85376 2.04492H9.35376V0.794922C9.35376 0.388672 9.66626 0.0449219 10.1038 0.0449219C10.51 0.0449219 10.8538 0.388672 10.8538 0.794922V2.04492H12.1038C13.1975 2.04492 14.1038 2.95117 14.1038 4.04492V14.0449C14.1038 15.1699 13.1975 16.0449 12.1038 16.0449H2.10376C0.97876 16.0449 0.10376 15.1699 0.10376 14.0449V4.04492C0.10376 2.95117 0.97876 2.04492 2.10376 2.04492H3.35376V0.794922C3.35376 0.388672 3.66626 0.0449219 4.10376 0.0449219C4.51001 0.0449219 4.85376 0.388672 4.85376 0.794922V2.04492ZM1.60376 14.0449C1.60376 14.3262 1.82251 14.5449 2.10376 14.5449H12.1038C12.3538 14.5449 12.6038 14.3262 12.6038 14.0449V6.04492H1.60376V14.0449Z",fill:"currentColor"})})},{title:"Payment history",svg:e.jsx("svg",{width:19,height:15,viewBox:"0 0 19 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5.35376 10.3379C5.76001 10.3379 6.10376 10.6816 6.10376 11.0879C6.10376 11.5254 5.76001 11.8379 5.35376 11.8379H3.85376C3.41626 11.8379 3.10376 11.5254 3.10376 11.0879C3.10376 10.6816 3.41626 10.3379 3.85376 10.3379H5.35376ZM11.3538 10.3379C11.76 10.3379 12.1038 10.6816 12.1038 11.0879C12.1038 11.5254 11.76 11.8379 11.3538 11.8379H7.85376C7.41626 11.8379 7.10376 11.5254 7.10376 11.0879C7.10376 10.6816 7.41626 10.3379 7.85376 10.3379H11.3538ZM16.1038 0.837891C17.1975 0.837891 18.1038 1.74414 18.1038 2.83789V12.8379C18.1038 13.9629 17.1975 14.8379 16.1038 14.8379H2.10376C0.97876 14.8379 0.10376 13.9629 0.10376 12.8379V2.83789C0.10376 1.74414 0.97876 0.837891 2.10376 0.837891H16.1038ZM16.1038 2.33789H2.10376C1.82251 2.33789 1.60376 2.58789 1.60376 2.83789V3.83789H16.6038V2.83789C16.6038 2.58789 16.3538 2.33789 16.1038 2.33789ZM16.6038 6.83789H1.60376V12.8379C1.60376 13.1191 1.82251 13.3379 2.10376 13.3379H16.1038C16.3538 13.3379 16.6038 13.1191 16.6038 12.8379V6.83789Z",fill:"currentColor"})})}];function h(){switch(n){case"My profile":default:return e.jsx(ua,{history:a.history});case"ID Verification":return e.jsx(va,{history:a.history});case"My Documents":return e.jsx(Ca,{history:a.history});case"My appointments":return e.jsx(fa,{history:a.history});case"Payment history":return e.jsx(wa,{history:a.history})}}function R(){switch(n){default:return;case"ID Verification":return"864px";case"My Documents":return"700px";case"My appointments":return"660px";case"Payment history":return"646px"}}return a.user.email?e.jsxs(sa,{children:[e.jsxs(ia,{children:[e.jsx("link",{rel:"canonical",href:"https://legateca.com/profile"}),e.jsx("meta",{name:"robots",content:"INDEX,FOLLOW"}),e.jsx("meta",{name:"description",content:"Legateca provides professional legal advice and services for individuals, businesses, organizations, and more. Get the best legal advice and support from us!"})]}),e.jsx(da,{bgImg:"/dashboard.png",heading:"My Account"}),e.jsxs("div",{className:"xl:py-[80px] xl:px-0 px-8 flex flex-col gap-[54px] py-[50px] w-full max-w-[1240px] 3xl:max-w-[2400px] mx-auto",children:[e.jsx("div",{className:"text-[32px] text-values-align text-ThemeSecondary not-italic font-medium leading-[48px] tracking-[0.64px] uppercase",children:"Account settings"}),e.jsxs("div",{style:{minHeight:R()},className:"border-2 border-ThemeSecondary flex xl:flex-row flex-col rounded-lg",children:[e.jsxs("div",{className:"w-full py-[72px] px-[34px] flex flex-col xl:justify-between xl:min-w-[270px] xl:max-w-[270px] xl:border-r border-[#
56EBEBEB]",children:[e.jsxs("ul",{className:"list-none !p-0 flex flex-col gap-[38px]",children:[m.map((S,q)=>e.jsxs("li",{onClick:()=>p(S.title),className:` ${S.title!==n?"text-[#252525]":"!text-ThemeSecondary font-[600]"} cursor-pointer flex items-center gap-6 text-base not-italic  leading-[118.5%] capitalize`,children:[S.svg,S.title]},q)),e.jsxs("li",{onClick:()=>{a.logout(),localStorage.clear(),a.history.push("/")},className:"cursor-pointer xl:hidden flex items-center gap-6 text-base not-italic  leading-[118.5%] capitalize",children:[e.jsx("svg",{width:17,height:15,viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6.10376 13.373C6.10376 13.8105 5.76001 14.123 5.35376 14.123H3.10376C1.41626 14.123 0.10376 12.8105 0.10376 11.123V3.12305C0.10376 1.4668 1.41626 0.123047 3.10376 0.123047H5.35376C5.76001 0.123047 6.10376 0.466797 6.10376 0.873047C6.10376 1.31055 5.76001 1.62305 5.35376 1.62305H3.10376C2.26001 1.62305 1.60376 2.31055 1.60376 3.12305V11.123C1.60376 11.9668 2.26001 12.623 3.10376 12.623H5.35376C5.76001 12.623 6.10376 12.9668 6.10376 13.373ZM15.885 6.62305L11.9163 2.37305C11.635 2.06055 11.1663 2.06055 10.8538 2.3418C10.5413 2.62305 10.5413 3.0918 10.8225 3.4043L13.6038 6.37305H5.82251C5.41626 6.37305 5.10376 6.7168 5.10376 7.12305C5.10376 7.56055 5.41626 7.87305 5.82251 7.87305H13.5725L10.76 10.873C10.4788 11.1855 10.4788 11.6543 10.7913 11.9355C10.9788 12.0605 11.1663 12.123 11.3225 12.123C11.51 12.123 11.6975 12.0605 11.8538 11.9043L15.8225 7.6543C16.1663 7.37305 16.1663 6.9043 15.885 6.62305Z",fill:"#252525"})}),"Logout"]})]}),e.jsxs("div",{onClick:()=>{a.logout(),localStorage.clear(),a.history.push("/")},className:"xl:flex hidden cursor-pointer items-center gap-2",children:[e.jsx("svg",{width:17,height:15,viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6.10376 13.373C6.10376 13.8105 5.76001 14.123 5.35376 14.123H3.10376C1.41626 14.123 0.10376 12.8105 0.10376 11.123V3.12305C0.10376 1.4668 1.41626 0.123047 3.10376 0.123047H5.35376C5.76001 0.123047 6.10376 0.466797 6.10376 0.873047C6.10376 1.31055 5.76001 1.62305 5.35376 1.62305H3.10376C2.26001 1.62305 1.60376 2.31055 1.60376 3.12305V11.123C1.60376 11.9668 2.26001 12.623 3.10376 12.623H5.35376C5.76001 12.623 6.10376 12.9668 6.10376 13.373ZM15.885 6.62305L11.9163 2.37305C11.635 2.06055 11.1663 2.06055 10.8538 2.3418C10.5413 2.62305 10.5413 3.0918 10.8225 3.4043L13.6038 6.37305H5.82251C5.41626 6.37305 5.10376 6.7168 5.10376 7.12305C5.10376 7.56055 5.41626 7.87305 5.82251 7.87305H13.5725L10.76 10.873C10.4788 11.1855 10.4788 11.6543 10.7913 11.9355C10.9788 12.0605 11.1663 12.123 11.3225 12.123C11.51 12.123 11.6975 12.0605 11.8538 11.9043L15.8225 7.6543C16.1663 7.37305 16.1663 6.9043 15.885 6.62305Z",fill:"#252525"})}),"Logout"]})]}),e.jsxs("div",{className:"w-full px-[10px] md:px-[30px] xl:pt-[70px] pb-[42px] flex flex-col gap-[38px]",children:[n==="ID Verification"?e.jsxs("div",{className:"flex sm:flex-row flex-col items-start gap-2 sm:gap-0 sm:items-center justify-between",children:[e.jsx("div",{className:"text-[#006766] text-2xl not-italic font-bold leading-[31px] tracking-[0.48px] uppercase",children:n}),e.jsxs("div",{className:"flex items-center gap-[15px]",children:[e.jsx("div",{className:" text-[#252525]/40 text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase",children:"STATUS"}),e.jsxs("div",{className:"flex items-center gap-2 text-[#CA0000]",children:[e.jsx("svg",{width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5.89429 5.46875C6.17554 5.1875 6.64429 5.1875 6.92554 5.46875L8.39429 6.96875L9.89429 5.46875C10.1755 5.1875 10.6443 5.1875 10.9255 5.46875C11.238 5.78125 11.238 6.25 10.9255 6.53125L9.45679 8L10.9255 9.46875C11.238 9.78125 11.238 10.25 10.9255 10.5312C10.6443 10.8438 10.1755 10.8438 9.89429 10.5312L8.39429 9.0625L6.92554 10.5312C6.64429 10.8438 6.17554 10.8438 5.89429 10.5312C5.58179 10.25 5.58179 9.78125 5.89429 9.46875L7.36304 8L5.89429 6.53125C5.58179 6.25 5.58179 5.78125 5.89429 5.46875ZM16.4255 8C16.4255 12.4375 12.8318 16 8.42554 16C3.98804 16 0.425537 12.4375 0.425537 8C0.425537 3.59375 3.98804 0 8.42554 0C12.8318 0 16.4255 3.59375 16.4255 8ZM8.42554 1.5C4.83179 1.5 1.92554 4.4375 1.92554 8C1.92554 11.5938 4.83179 14.5 8.42554 14.5C11.988 14.5 14.9255 11.5938 14.9255 8C14.9255 4.4375 11.988 1.5 8.42554 1.5Z",fill:"currentColor"})}),e.jsx("span",{className:"text-inherit text-base not-italic font-medium leading-[normal]",children:"ID Not Verified"})]})]})]}):e.jsx("div",{className:"text-[#006766] text-2xl not-italic font-bold leading-[31px] tracking-[0.48px] uppercase",children:n}),e.jsx("div",{className:"w-full h-full",children:h()})]})]})]}),e.jsx(ra,{})]}):""},Ua=a=>({user:a.auth&&a.auth.user||{},userData:a.users&&a.users.data||{}}),Za=ze(ke,Me(Ua,{logout:na.logout}))(Na),T=({varient:a,children:r})=>{function u(){switch(a){case"green-head":return"text-[#006766] text-base not-italic font-semibold leading-[118.5%] capitalize";case"black-head":return"text-primary-tw text-base not-italic font-semibold leading-[118.5%] capitalize";case"light-head":return"text-[#252525]/40 text-center text-sm not-italic font-medium leading-[normal] tracking-[0.28px] uppercase";case"para":return"text-[#252525] flex gap-2 items-start text-sm not-italic font-normal leading-[26px] tracking-[0.28px]";default:return}}return e.jsx("div",{className:u(),children:r})},K=({children:a})=>e.jsxs(T,{varient:"para",children:[e.jsxs("svg",{className:"mt-[11px] min-h-[3px] min-w-[5px] max-h-[3px] max-w-[5px]",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",fill:"none",children:[e.jsx("path",{d:"M8.52742 1.45643C6.5
56703 -0.492032 3.40462 -0.484208 1.4569 1.4724C-0.49177 3.42962 -0.484572 6.59549 1.47223 8.54333C3.42997 10.4918 6.59628 10.4846 8.54369 8.52737C10.4914 6.57014 10.4848 3.40396 8.52742 1.45643Z",fill:"#030104"}),e.jsx("path",{d:"M4.15794 7.47839L3.60467 9.10795C4.40798 9.36739 5.27294 9.38523 6.08501 9.16116L5.87691 7.46618C5.3227 7.66335 4.71466 7.66741 4.15794 7.47839ZM2.54068 4.1066L0.774141 3.83777C0.542254 4.67211 0.565725 5.56341 0.844553 6.38617L2.5629 5.95586C2.33163 5.36343 2.3235 4.7034 2.54068 4.1066ZM9.00066 3.54672L7.44692 4.07092C7.69665 4.73001 7.67098 5.46921 7.36963 6.11202L9.04416 6.32233C9.33362 5.42007 9.31892 4.44177 9.00066 3.54672ZM3.56524 0.902236L3.88381 2.63226C4.51813 2.3337 5.24697 2.30365 5.89975 2.54213L6.39514 0.93447C5.48323 0.607118 4.4834 0.596477 3.56524 0.902236Z",fill:"#030104"}),e.jsx("path",{d:"M5.00018 6.91416C6.05739 6.91416 6.91442 6.05707 6.91442 4.9998C6.91442 3.94253 6.05739 3.08545 5.00018 3.08545C3.94297 3.08545 3.08594 3.94253 3.08594 4.9998C3.08594 6.05707 3.94297 6.91416 5.00018 6.91416Z",fill:"#030104"})]}),a]}),me=({role:a,handleClick:r,disabled:u,type:n,children:p,varient:m})=>{function h(){switch(m&&m){default:return;case void 0:return"active:bg-ThemeSecondary hover:bg-ThemePrimary bg-ThemeSecondary text-white";case"bgwhite":return"border hover:!text-ThemeSecondary hover:!bg-white border-ThemeSecondary bg-white text-ThemeSecondary";case"bgyellow":return"hover:!text-white hover:!bg-ThemePrimary  bg-ThemePrimary text-white"}}return e.jsx(e.Fragment,{children:a?e.jsx("div",{onClick:r,className:` ${h()} border-none ${u?"pointer-events-none":""} cursor-pointer w-full text-center px-[10px] py-[20px] rounded-md text-sm not-italic font-medium !leading-none tracking-[0.28px] uppercase `,children:p}):e.jsx("button",{type:n||"text",disabled:u,onClick:r,className:` ${h()} border-none  w-full text-center px-[10px] py-[20px] rounded-md text-sm not-italic font-medium !leading-none tracking-[0.28px] uppercase `,children:p})})};export{me as ButtonForDashboard,K as ParaComp,T as Typography,Za as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.