https://www.newdelhiairport.in/component---src-pages-atithya-and-services-js-cedc25ded5230391c27a.js
1/*! For license information please see component---src-pages-atithya-and-services-js-cedc25ded5230391c27a.js.LICENSE.txt */ 2"use strict";(self.webpackChunkdial_gatsby_site=self.webpackChunkdial_gatsby_site||[]).push([[3342],{2824:function(e,t,a){var l=a(96540),r=a(14173),n=a(96081);t.A=e=>{var t,a;let{formData:i,updateBillingField:o,formDataError:d,countries:s,title:m,states:v}=e;const u=function(e,t,a){void 0===a&&(a="text");const l=(0,r.o2)(t,a);o(e,l)};return l.createElement("div",{className:"mt-10"},l.createElement("h2",{className:"font-redhatBold mb-[1.2vw] text-primary text-[4vw] md:text-[2.5vw] xl:text-[1.5vw]"},"Billing Details"),l.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-4 mb-4"},l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Title*"),l.createElement("select",{value:i.billing.title,onChange:e=>o("title",e.target.value),className:`w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] ${n.u?"min-h-[44px]":null} focus:outline-none focus:ring-0`},l.createElement("option",{value:""},"Select"),m&&(null==m?void 0:m.map((e,t)=>l.createElement("option",{key:e.id,value:`${e.id}-${e.name}`},e.name)))),d.billing.title&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.title)),l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"First Name*"),l.createElement("input",{value:i.billing.firstName,onChange:e=>u("firstName",e.target.value,"name"),type:"text",placeholder:"Enter First Name",maxLength:50,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),d.billing.firstName&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.firstName)),l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Last Name*"),l.createElement("input",{value:i.billing.lastName,onChange:e=>u("lastName",e.target.value,"name"),type:"text",placeholder:"Enter Last Name",maxLength:50,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),d.billing.lastName&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.lastName))),l.createElement("div",{className:"grid grid-cols-2 gap-4 mb-4"},l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Country Code*"),l.createElement("select",{value:i.billing.countryCode,onChange:e=>o("countryCode",e.target.value),className:`w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] ${n.u?"min-h-[44px]":null} focus:outline-none focus:ring-0`},l.createElement("option",{value:""},"Select"),s&&(null==s?void 0:s.map((e,t)=>l.createElement("option",{key:e.id,value:e.phone_code},`+ ${e.phone_code}`)))),d.billing.countryCode&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.countryCode)),l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Mobile*"),l.createElement("input",{value:i.billing.mobile,onChange:e=>u("mobile",e.target.value,"numeric"),type:"text",placeholder:"Enter Mobile",maxLength:15,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),d.billing.mobile&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.mobile))),l.createElement("div",{className:"grid grid-cols-2 gap-4 mb-4"},l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Address*"),l.createElement("input",{value:i.billing.address,onChange:e=>o("address",e.target.value,"text"),type:"text",placeholder:"Enter Address",maxLength:200,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),d.billing.address&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.address)),l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"City*"),l.createElement("input",{value:i.billing.city,onChange:e=>u("city",e.target.value,"name"),type:"text",placeholder:"Enter City",maxLength:50,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),d.billing.city&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.city))),l.createElement("div",{className:"grid grid-cols-2 gap-4 mb-4"},l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Country*"),l.createElement("select",{value:i.billing.country,onChange:e=>o("country",e.target.value),className:`w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] ${n.u?"min-h-[44px]":null} focus:outline-none focus:ring-0`},l.createElement("option",{value:""},"Select"),s&&(null==s?void 0:s.map((e,t)=>l.createElement("option",{key:e.id,value:e.id},e.name)))),d.billing.country&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.country)),l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"State*"),v&&(null==v?void 0:v.length)>0?l.createElement("select",{value:null==i||null===(t=i.billing)||void 0===t?void 0:t.state,onChange:e=>o("state",e.target.value),className:`w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] ${n.u?"min-h-[44px]":null} focus:outline-none focus:ring-0`},l.createElement("option",{value:""},"Select State"),v&&v.map((e,t)=>l.createElement("option",{key:e.id,value:e.id},e.name))):l.createElement("input",{type:"text",placeholder:"Enter State",value:null==i||null===(a=i.billing)||void 0===a?void 0:a.state,onChange:e=>o("state",e.target.value),maxLength:50,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw]"}),d.billing.state&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.state))),l.createElement("div",{className:"grid grid-cols-2 gap-4 mb-4"},l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Pincode*"),l.createElement("input",{value:i.billing.pincode,onChange:e=>o("pincode",e.target.value),type:"text",placeholder:"Enter Pincode",maxLength:10,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),d.billing.pincode&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.pincode)),l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Email ID*"),l.createElement("input",{value:i.billing.email,onChange:e=>u("email",e.target.value,"text"),type:"email",placeholder:"Enter Email",maxLength:100,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),d.billing.email&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},d.billing.email))))}},7116:function(e,t,a){a.d(t,{A:function(){return r}});var l=a(96540);function r(e){let{totalAmount:t}=e;const{0:a,1:r}=(0,l.useState)({});return l.createElement("div",{className:"w-[100%] bg-[#fff5ef] px-[7vw] py-[5vw] xl:py-[3vw] mb-[1vw]"},l.createElement("div",{className:"flex flex-col xl:flex-row justify-start xl:items-center gap-[4vw]"},l.createElement("h2",{className:"text-[5vw] xl:text-[2vw] font-redhatMedium text-primary"},`Meet & Greet Serivces (Rs ${t||0})`),l.createElement("div",{className:"flex flex-wrap items-center gap-[1vw] text-[1vw] xl:text-[0.9vw]"},l.createElement("span",{className:"text-primary font-redhatRegular text-[3.5vw] md:text-[2.5vw] xl:text-[1.5vw]"},"Currency Converter"),l.createElement("select",{onChange:async e=>{const a=e.target.value,l=`/dial-api/hotel/currency/${a}`;try{const e=await fetch(l,{method:"GET",headers:{"Content-Type":"application/json"}}),n=await e.json(),i=function(e,t){const a=parseFloat(t.value),l=parseFloat(t.INR);return e*(a/l)}(t,n).toFixed(2);r({currency:a,value:i})}catch(n){console.error("Error:",n)}},className:"xl:w-[20vw] font-redhatRegular text-primary border border-gray-400 rounded px-[1vw] py-[0.4vw] text-[3.5vw] xl:text-[1vw] outline-none"},l.createElement("option",{value:"0"},"Select Currency"),l.createElement("option",{value:"AED"},"AED - United Arab Emirates Dirham"),l.createElement("option",{value:"AFN"},"AFN - Afghan Afghani"),l.createElement("option",{value:"ALL"},"ALL - Albanian Lek"),l.createElement("option",{value:"AMD"},"AMD - Armenian Dram"),l.createElement("option",{value:"ANG"},"ANG - Netherlands Antillean Guilder"),l.createElement("option",{value:"AOA"},"AOA - Angolan Kwanza"),l.createElement("option",{value:"ARS"},"ARS - Argentine Peso"),l.createElement("option",{value:"AUD"},"AUD - Australian Dollar"),l.createElement("option",{value:"AWG"},"AWG - Aruban Florin"),l.createElement("option",{value:"AZN"},"AZN - Azerbaijani Manat"),l.createElement("option",{value:"BAM"}
2,"BAM - Bosnia-Herzegovina Convertible Mark"),l.createElement("option",{value:"BBD"},"BBD - Barbadian Dollar"),l.createElement("option",{value:"BDT"},"BDT - Bangladeshi Taka"),l.createElement("option",{value:"BGN"},"BGN - Bulgarian Lev"),l.createElement("option",{value:"BHD"},"BHD - Bahraini Dinar"),l.createElement("option",{value:"BIF"},"BIF - Burundian Franc"),l.createElement("option",{value:"BMD"},"BMD - Bermudan Dollar"),l.createElement("option",{value:"BND"},"BND - Brunei Dollar"),l.createElement("option",{value:"BOB"},"BOB - Bolivian Boliviano"),l.createElement("option",{value:"BRL"},"BRL - Brazilian Real"),l.createElement("option",{value:"BSD"},"BSD - Bahamian Dollar"),l.createElement("option",{value:"BTN"},"BTN - Bhutanese Ngultrum"),l.createElement("option",{value:"BWP"},"BWP - Botswanan Pula"),l.createElement("option",{value:"BYN"},"BYN - New Belarusian Ruble"),l.createElement("option",{value:"BYR"},"BYR - Belarusian Ruble"),l.createElement("option",{value:"BZD"},"BZD - Belize Dollar"),l.createElement("option",{value:"CAD"},"CAD - Canadian Dollar"),l.createElement("option",{value:"CDF"},"CDF - Congolese Franc"),l.createElement("option",{value:"CHF"},"CHF - Swiss Franc"),l.createElement("option",{value:"CLF"},"CLF - Chilean Unit of Account (UF)"),l.createElement("option",{value:"CLP"},"CLP - Chilean Peso"),l.createElement("option",{value:"CNY"},"CNY - Chinese Yuan"),l.createElement("option",{value:"COP"},"COP - Colombian Peso"),l.createElement("option",{value:"CRC"},"CRC - Costa Rican Colón"),l.createElement("option",{value:"CUC"},"CUC - Cuban Convertible Peso"),l.createElement("option",{value:"CUP"},"CUP - Cuban Peso"),l.createElement("option",{value:"CVE"},"CVE - Cape Verdean Escudo"),l.createElement("option",{value:"CZK"},"CZK - Czech Republic Koruna"),l.createElement("option",{value:"DJF"},"DJF - Djiboutian Franc"),l.createElement("option",{value:"DKK"},"DKK - Danish Krone"),l.createElement("option",{value:"DOP"},"DOP - Dominican Peso"),l.createElement("option",{value:"DZD"},"DZD - Algerian Dinar"),l.createElement("option",{value:"EGP"},"EGP - Egyptian Pound"),l.createElement("option",{value:"ERN"},"ERN - Eritrean Nakfa"),l.createElement("option",{value:"ETB"},"ETB - Ethiopian Birr"),l.createElement("option",{value:"EUR"},"EUR - Euro"),l.createElement("option",{value:"FJD"},"FJD - Fijian Dollar"),l.createElement("option",{value:"FKP"},"FKP - Falkland Islands Pound"),l.createElement("option",{value:"GBP"},"GBP - British Pound Sterling"),l.createElement("option",{value:"GEL"},"GEL - Georgian Lari"),l.createElement("option",{value:"GGP"},"GGP - Guernsey Pound"),l.createElement("option",{value:"GHS"},"GHS - Ghanaian Cedi"),l.createElement("option",{value:"GIP"},"GIP - Gibraltar Pound"),l.createElement("option",{value:"GMD"},"GMD - Gambian Dalasi"),l.createElement("option",{value:"GNF"},"GNF - Guinean Franc"),l.createElement("option",{value:"GTQ"},"GTQ - Guatemalan Quetzal"),l.createElement("option",{value:"GYD"},"GYD - Guyanaese Dollar"),l.createElement("option",{value:"HKD"},"HKD - Hong Kong Dollar"),l.createElement("option",{value:"HNL"},"HNL - Honduran Lempira"),l.createElement("option",{value:"HRK"},"HRK - Croatian Kuna"),l.createElement("option",{value:"HTG"},"HTG - Haitian Gourde"),l.createElement("option",{value:"HUF"},"HUF - Hungarian Forint"),l.createElement("option",{value:"IDR"},"IDR - Indonesian Rupiah"),l.createElement("option",{value:"ILS"},"ILS - Israeli New Sheqel"),l.createElement("option",{value:"IMP"},"IMP - Manx pound"),l.createElement("option",{value:"IQD"},"IQD - Iraqi Dinar"),l.createElement("option",{value:"IRR"},"IRR - Iranian Rial"),l.createElement("option",{value:"ISK"},"ISK - Icelandic króna"),l.createElement("option",{value:"JEP"},"JEP - Jersey Pound"),l.createElement("option",{value:"JMD"},"JMD - Jamaican Dollar"),l.createElement("option",{value:"JOD"},"JOD - Jordanian Dinar"),l.createElement("option",{value:"JPY"},"JPY - Japanese Yen"),l.createElement("option",{value:"KES"},"KES - Kenyan Shilling"),l.createElement("option",{value:"KGS"},"KGS - Kyrgystani Som"),l.createElement("option",{value:"KHR"},"KHR - Cambodian Riel"),l.createElement("option",{value:"KMF"},"KMF - Comorian Franc"),l.createElement("option",{value:"KPW"},"KPW - North Korean Won"),l.createElement("option",{value:"KRW"},"KRW - South Korean Won"),l.createElement("option",{value:"KWD"}
2,"KWD - Kuwaiti Dinar"),l.createElement("option",{value:"KYD"},"KYD - Cayman Islands Dollar"),l.createElement("option",{value:"KZT"},"KZT - Kazakhstani Tenge"),l.createElement("option",{value:"LAK"},"LAK - Laotian Kip"),l.createElement("option",{value:"LBP"},"LBP - Lebanese Pound"),l.createElement("option",{value:"LKR"},"LKR - Sri Lankan Rupee"),l.createElement("option",{value:"LRD"},"LRD - Liberian Dollar"),l.createElement("option",{value:"LSL"},"LSL - Lesotho Loti"),l.createElement("option",{value:"LTL"},"LTL - Lithuanian Litas"),l.createElement("option",{value:"LVL"},"LVL - Latvian Lats"),l.createElement("option",{value:"LYD"},"LYD - Libyan Dinar"),l.createElement("option",{value:"MAD"},"MAD - Moroccan Dirham"),l.createElement("option",{value:"MDL"},"MDL - Moldovan Leu"),l.createElement("option",{value:"MGA"},"MGA - Malagasy Ariary"),l.createElement("option",{value:"MKD"},"MKD - Macedonian Denar"),l.createElement("option",{value:"MMK"},"MMK - Myanma Kyat"),l.createElement("option",{value:"MNT"},"MNT - Mongolian Tugrik"),l.createElement("option",{value:"MOP"},"MOP - Macanese Pataca"),l.createElement("option",{value:"MRO"},"MRO - Mauritanian Ouguiya"),l.createElement("option",{value:"MUR"},"MUR - Mauritian Rupee"),l.createElement("option",{value:"MVR"},"MVR - Maldivian Rufiyaa"),l.createElement("option",{value:"MWK"},"MWK - Malawian Kwacha"),l.createElement("option",{value:"MXN"},"MXN - Mexican Peso"),l.createElement("option",{value:"MYR"},"MYR - Malaysian Ringgit"),l.createElement("option",{value:"MZN"},"MZN - Mozambican Metical"),l.createElement("option",{value:"NAD"},"NAD - Namibian Dollar"),l.createElement("option",{value:"NGN"},"NGN - Nigerian Naira"),l.createElement("option",{value:"NIO"},"NIO - Nicaraguan Córdoba"),l.createElement("option",{value:"NOK"},"NOK - Norwegian Krone"),l.createElement("option",{value:"NPR"},"NPR - Nepalese Rupee"),l.createElement("option",{value:"NZD"},"NZD - New Zealand Dollar"),l.createElement("option",{value:"OMR"},"OMR - Omani Rial"),l.createElement("option",{value:"PAB"},"PAB - Panamanian Balboa"),l.createElement("option",{value:"PEN"},"PEN - Peruvian Nuevo Sol"),l.createElement("option",{value:"PGK"},"PGK - Papua New Guinean Kina"),l.createElement("option",{value:"PHP"},"PHP - Philippine Peso"),l.createElement("option",{value:"PKR"},"PKR - Pakistani Rupee"),l.createElement("option",{value:"PLN"},"PLN - Polish Zloty"),l.createElement("option",{value:"PYG"},"PYG - Paraguayan Guarani"),l.createElement("option",{value:"QAR"},"QAR - Qatari Rial"),l.createElement("option",{value:"RON"},"RON - Romanian Leu"),l.createElement("option",{value:"RSD"},"RSD - Serbian Dinar"),l.createElement("option",{value:"RUB"},"RUB - Russian Ruble"),l.createElement("option",{value:"RWF"},"RWF - Rwandan Franc"),l.createElement("option",{value:"SAR"},"SAR - Saudi Riyal"),l.createElement("option",{value:"SBD"},"SBD - Solomon Islands Dollar"),l.createElement("option",{value:"SCR"},"SCR - Seychellois Rupee"),l.createElement("option",{value:"SDG"},"SDG - South Sudanese Pound"),l.createElement("option",{value:"SEK"},"SEK - Swedish Krona"),l.createElement("option",{value:"SGD"},"SGD - Singapore Dollar"),l.createElement("option",{value:"SHP"}
2,"SHP - Saint Helena Pound"),l.createElement("option",{value:"SLE"},"SLE - Sierra Leonean Leone"),l.createElement("option",{value:"SLL"},"SLL - Sierra Leonean Leone"),l.createElement("option",{value:"SOS"},"SOS - Somali Shilling"),l.createElement("option",{value:"SRD"},"SRD - Surinamese Dollar"),l.createElement("option",{value:"STD"},"STD - São Tomé and PrÃncipe dobra"),l.createElement("option",{value:"SVC"},"SVC - Salvadoran Colón"),l.createElement("option",{value:"SYP"},"SYP - Syrian Pound"),l.createElement("option",{value:"SZL"},"SZL - Swazi Lilangeni"),l.createElement("option",{value:"THB"},"THB - Thai Baht"),l.createElement("option",{value:"TJS"},"TJS - Tajikistani Somoni"),l.createElement("option",{value:"TMT"},"TMT - Turkmenistani Manat"),l.createElement("option",{value:"TND"},"TND - Tunisian Dinar"),l.createElement("option",{value:"TOP"},"TOP - Tongan PaÊ»anga"),l.createElement("option",{value:"TRY"},"TRY - Turkish Lira"),l.createElement("option",{value:"TTD"},"TTD - Trinidad and Tobago Dollar"),l.createElement("option",{value:"TWD"},"TWD - New Taiwan Dollar"),l.createElement("option",{value:"TZS"},"TZS - Tanzanian Shilling"),l.createElement("option",{value:"UAH"},"UAH - Ukrainian Hryvnia"),l.createElement("option",{value:"UGX"},"UGX - Ugandan Shilling"),l.createElement("option",{value:"USD"},"USD - United States Dollar"),l.createElement("option",{value:"UYU"},"UYU - Uruguayan Peso"),l.createElement("option",{value:"UZS"},"UZS - Uzbekistan Som"),l.createElement("option",{value:"VEF"},"VEF - Venezuelan BolÃvar Fuerte"),l.createElement("option",{value:"VES"},"VES - Sovereign Bolivar"),l.createElement("option",{value:"VND"},"VND - Vietnamese Dong"),l.createElement("option",{value:"VUV"},"VUV - Vanuatu Vatu"),l.createElement("option",{value:"WST"},"WST - Samoan Tala"),l.createElement("option",{value:"XAF"},"XAF - CFA Franc BEAC"),l.createElement("option",{value:"XCD"},"XCD - East Caribbean Dollar"),l.createElement("option",{value:"XOF"},"XOF - CFA Franc BCEAO"),l.createElement("option",{value:"XPF"},"XPF - CFP Franc"),l.createElement("option",{value:"YER"},"YER - Yemeni Rial"),l.createElement("option",{value:"ZAR"},"ZAR - South African Rand"),l.createElement("option",{value:"ZMK"},"ZMK - Zambian Kwacha (pre-2013)"),l.createElement("option",{value:"ZMW"},"ZMW - Zambian Kwacha"),l.createElement("option",{value:"ZWL"},"ZWL - Zimbabwean Dollar")),l.createElement("span",{className:"text-[2.5vw] md:text-[3vw] xl:text-[1.2vw] font-redhatMedium text-primary"},null!=a&&a.value?`â${null==a?void 0:a.currency} ${null==a?void 0:a.value}`:null))),l.createElement("p",{className:" mt-[4vw] xl:mt-[2vw] text-[3.5vw] xl:text-[1.1vw] font-redhatRegular text-primary leading-tight"},"Disclaimer: The currency exchange rates provided by this calculator are for informational purposes only, and we do not guarantee their accuracy or suitability for any specific purpose. The currency converter does not include any fees, commissions, or charges that may apply to your transactions."))}},13511:function(e,t,a){a.a(e,async function(e,l){try{var r=a(96540),n=a(37589),i=a(14561),o=e([i]);i=(o.then?(await o)():o)[0];const d=e=>{var t,a,l,o,d,s,m,v,u,c;let{data:p,bookingData:x,addonCart:w,handleNext:g,nextStep:E,formData:f,setErrors:y,loggedInDetails:h}=e;const[b,N]=r.useState(!1),_=parseFloat(((null==p||null===(t=p.product)||void 0===t?void 0:t.list_price)*parseInt(null==x?void 0:x.adults)).toFixed(2)),S=null==p||null===(a=p.productVariant)||void 0===a?void 0:a.filter(e=>{var t;return"child"===(null==e||null===(t=e.variant)||void 0===t?void 0:t.toLowerCase())}),C=null==p||null===(l=p.productVariant)||void 0===l?void 0:l.filter(e=>{var t;return"adult"===(null==e||null===(t=e.variant)||void 0===t?void 0:t.toLowerCase())}),A=(null==x?void 0:x.child)>0&&Array.isArray(null==p?void 0:p.productVariant)&&S.length>0?parseFloat(((null==S||null===(o=S[0])||void 0===o?void 0:o.lst_price)*parseInt(x.child)).toFixed(2)):null,D=parseFloat(w&&Object.values(w).reduce((e,t)=>e+t.list_price*t.quantity,0).toFixed(2)),M=parseFloat(w&&Object.values(w).reduce((e,t)=>e+t.cgst*t.quantity,0).toFixed(2)),F=parseFloat(w&&Object.values(w).reduce((e,t)=>
2e+t.sgst*t.quantity,0).toFixed(2)),I=parseFloat(Array.isArray(null==p?void 0:p.productVariant)&&(null==C||null===(d=C[0])||void 0===d?void 0:d.sgst).toFixed(2)*parseInt(null==x?void 0:x.adults)),R=parseFloat(Array.isArray(null==p?void 0:p.productVariant)&&(null==C||null===(s=C[0])||void 0===s?void 0:s.cgst).toFixed(2)*parseInt(null==x?void 0:x.adults)),P=parseFloat(Array.isArray(null==p?void 0:p.productVariant)&&(null==S||null===(m=S[0])||void 0===m?void 0:m.cgst).toFixed(2)*parseInt(null==x?void 0:x.child)),L=parseFloat(Array.isArray(null==p?void 0:p.productVariant)&&(null==S||null===(v=S[0])||void 0===v?void 0:v.sgst).toFixed(2)*parseInt(null==x?void 0:x.child)),k=async()=>{let e,t;"undefined"!=typeof window&&window.sessionStorage&&(e=JSON.parse(sessionStorage.getItem("userBookingDetail"))),"undefined"!=typeof window&&window.sessionStorage&&(t=JSON.parse(sessionStorage.getItem("userOrderSummary")));if((null==f?void 0:f.password)!==(null==f?void 0:f.confirmPassword))return alert("Password and Confirm Password do not match"),!1;if((0,n.Ze)(f,y)){let l=(0,i.p7)(f,e,t);try{const e=await fetch("/dial-api/encalm/customer ",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}),t=await e.json();if("undefined"==typeof window||!window.sessionStorage||"ok"!==t.status||"success"!==t.message)return"ok"===t.status&&"user already exists"===t.message?(alert("user already exists! please login"),!1):(alert("Error in signup process, please try again later"),!1);{const e={...f,bookingId:t.bookingId,customerId:t.customerId};sessionStorage.setItem("userSignup",JSON.stringify(e)),g(4)}}catch(a){throw console.error("Error calling API:",a),a}}},T=async e=>{try{const t=await fetch("/dial-api/encalm/placeorder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await t.json();"ok"===a.status&&"success"===a.message?null!=a&&a.bookingOrderId&&("undefined"!=typeof window&&window.sessionStorage&&(sessionStorage.setItem("userGuestBillingData",JSON.stringify(f)),sessionStorage.setItem("PlaceOrderResult",JSON.stringify(a))),g(5)):alert("Error while placing order, please try again later")}catch(t){throw console.error("Error calling API:",t),t}},O=async e=>{N(!0);try{const a=await fetch("/dial-api/encalm/payment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),l=await a.json();if("ok"===(null==l?void 0:l.status)&&"success"===(null==l?void 0:l.message)){var t;const e=null==l||null===(t=l.data)||void 0===t?void 0:t.payment;let a=(0,n.No)(e);const r=document.createElement("div");r.innerHTML=a.trim();const i=r.querySelector("form");if(i){let e=i.getAttribute("action");if(e){e=e.replace(/['"]+/g,"");const t=e.match(/https?:\/\/[^\s]+/i);if(t){const e=t[0];e.includes("localhost")||e.includes("127.0.0.1")?console.warn("Ignored localhost action:",e):i.setAttribute("action",e)}else console.warn("No valid external URL found in action:",e)}i.setAttribute("method","POST"),i.setAttribute("target","_self"),document.body.appendChild(i),i.submit(),N(!1)}else console.error("No form found in payment HTML")}else N(!1),alert("Error in payment process, please try again later")}catch(a){throw N(!1),console.error("Error calling API:",a),a}};return(0,r.useEffect)(()=>{const e=e=>{e.persisted&&N(!1)};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[]),(0,r.useEffect)(()=>{N(!1)},[]),r.createElement("div",{className:"bg-[#E6EAEF] rounded-[0.5vw] font-redhatRegular"},r.createElement("h2",{className:"text-[3.5vw] md:text-[2.5vw] xl:text-[1.3vw] font-redhatBold mb-[1vw] px-[3vw] xl:px-[1.5vw] py-[3vw] xl:py-[2vw]"},"Order Summary"),r.createElement("div",{className:"space-y-[2vw] xl:space-y-[0.6vw] text-[3.5vw] md:text-[2vw] xl:text-[1vw]"},r.createElement("div",{className:"flex justify-between font-redhatMedium px-[3vw] xl:px-[1.5vw] py-[0.2vw]"},r.createElement("span",null,`${null==p||null===(u=p.product)||void 0===u?void 0:u.name}(${null==x?void 0:x.adults} Adult)`),r.createElement("span",null,`â¹ ${_}`)),null!=x&&x.child&&(null==p?void 0:p.productVariant.length)>0?r.createElement("div",{className:"flex justify-between font-redhatMedium px-[3vw] xl:px-[1.5vw] py-[0.2vw]"},r.createElement("span",null,`${null==p||null===(c=p.productVariant[1])||void 0===c?void 0:c.name}(${null==x?void 0:x.child} Child)`),r.createElement("span",null,`â¹ ${A}`)):null,w&&Object.entries(w).map((e,t)=>{let[a,l]=e;return r.createElement("div",{key:t,className:"flex justify-between font-redhatMedium px-[3vw] xl:px-[1.5vw] py-[0.2vw]"},r.createElement("span",null,a),r.createElement("span",null,"â¹ "+(null==l?void 0:l.list_price)*(null==l?void 0:l.quantity)))}),r.createElement("div",{className:"flex justify-between font-redhatMedium px-[3vw] xl:px-[1.5vw] py-[0.2vw]"},r.createElement("span",null,"Net Amount"),r.createElement("span",null,`â¹ ${(_+A+D).toFixed(2)}`)),r.createElement("div",{className:"flex justify-between font-redhatMedium px-[3vw] xl:px-[1.5vw] py-[0.2vw]"},r.createElement("span",null,"SGST (9%)"),r.createElement("span",null,`â¹ ${(I+F+L).toFixed(2)}`)),r.createElement("div",{className:"flex justify-between font-redhatMedium px-[3vw] xl:px-[1.5vw] py-[0.2vw]"},r.createElement("span",null,"CGST (9%)"),r.createElement("span",null,`â¹ ${(R+M+P).toFixed(2)}`)),r.createElement("div",{className:"flex bg-white justify-between font-redhatBold px-[3vw] xl:px-[1.5vw] py-[2vw]"},r.createElement("span",null,"Final Amount"),r.createElement("span",null,`â¹ ${Math.round(_+A+D+I+R+M+F+P+L)}`))),r.createElement("div",{className:"flex justify-center py-[3vw] xl:py-[1vw]"},r.createElement("button",{onClick:()=>
2{if("Login"===E){const e={product:p,addon:w,totalAmount:Math.round(_+A+D+R+I+M+F+P+L)};"undefined"!=typeof window&&window.sessionStorage&&sessionStorage.setItem("userOrderSummary",JSON.stringify(e)),g(3)}if("GuestDetails-Login"===E){return h&&"object"==typeof h&&!!h.customerId?("undefined"!=typeof window&&window.sessionStorage&&(sessionStorage.setItem("userLogin",JSON.stringify(h)),sessionStorage.removeItem("userSignup")),void g(4)):void alert("Please login to continue")}if("GuestDetails-Signup"===E)return"undefined"!=typeof window&&window.sessionStorage&&sessionStorage.removeItem("userLogin"),k(),!0;if("Checkout"===E){const e=(0,n._i)(f.guest,y.guestErrors),t=(0,n._i)(f.child,y.childErrors),a=(0,n._i)(f.infant,y.infantErrors),l=(0,n.NW)(f.billingFormData,y.billingErrors);if(!(e&&t&&a&&l))return!1;const r=(0,i.DJ)(f.user,f);T(r)}if("Payment"===E){var e,t,a,l,r,o;let n,i;"undefined"!=typeof window&&window.sessionStorage&&(n=JSON.parse(sessionStorage.getItem("userLogin"))),"undefined"!=typeof window&&window.sessionStorage&&(i=JSON.parse(sessionStorage.getItem("userSignup")));const d={bookingId:null!==(e=n)&&void 0!==e&&e.bookingId?null===(t=n)||void 0===t?void 0:t.bookingId:null===(a=i)||void 0===a?void 0:a.bookingId,customerId:null!==(l=n)&&void 0!==l&&l.customerId?null===(r=n)||void 0===r?void 0:r.customerId:null===(o=i)||void 0===o?void 0:o.customerId,paymentGateway:"RAZORPAY"};O(d)}},className:"mt-[2vw] w-[50%] bg-[#002C5F] text-white rounded-lg py-[0.8vw] font-redhatMedium hover:bg-[#004080] transition"},b?"Please Wait...":"Proceed")))};t.A=d,l()}catch(d){l(d)}})},14173:function(e,t,a){a.d(t,{Cx:function(){return r},NL:function(){return n},o2:function(){return i}});const l=["password","password123","12345","123456","1234567","12345678","123456789","1234567890","abc123","qwerty","qwerty123","letmein","welcome","admin","admin123","test","test123","guest","user","root"],r=e=>{const t=[];return(!e||e.length<12)&&t.push("Password must be at least 12 characters long"),/[A-Z]/.test(e)||t.push("Password must contain at least one uppercase letter"),/[a-z]/.test(e)||t.push("Password must contain at least one lowercase letter"),/[0-9]/.test(e)||t.push("Password must contain at least one number"),/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(e)||t.push("Password must contain at least one special character (!@#$%^&*...)"),l.includes(e.toLowerCase())&&t.push("This password is too common. Please choose a stronger password"),/(?:abcd|bcde|cdef|defg|efgh|fghi|ghij|hijk|ijkl|jklm|klmn|lmno|mnop|nopq|opqr|pqrs|qrst|rstu|stuv|tuvw|uvwx|vwxy|wxyz|0123|1234|2345|3456|4567|5678|6789)/i.test(e)&&t.push("Password should not contain 4 or more sequential characters"),{isValid:0===t.length,errors:t}},n=e=>{let t=0;if(!e)return{strength:"weak",score:0};e.length>=12&&(t+=1),e.length>=16&&(t+=1),e.length>=20&&(t+=1),/[a-z]/.test(e)&&(t+=1),/[A-Z]/.test(e)&&(t+=1),/[0-9]/.test(e)&&(t+=1),/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(e)&&(t+=1);return[/[a-z]/.test(e),/[A-Z]/.test(e),/[0-9]/.test(e),/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(e)].filter(Boolean).length>=4&&(t+=1),l.includes(e.toLowerCase())&&(t=0),/(.)\1{2,}/.test(e)&&(t-=1),t=Math.max(0,Math.min(10,t)),t<=3?{strength:"weak",score:t}:t<=6?{strength:"medium",score:t}:{strength:"strong",score:t}},i=(e,t)=>{if(!e)return"";let a=e;switch(a=a.replace(/<[^>]*>/g,""),a=a.replace(/<script[^>]*>.*?<\/script>/gi,""),a=a.replace(/<iframe[^>]*>.*?<\/iframe>/gi,""),a=a.replace(/javascript:/gi,""),a=a.replace(/on\w+=/gi,""),t){case"name":a=a.replace(/[^A-Za-z\s\-']/g,"");break;case"passport":case"pnr":a=a.replace(/[^A-Za-z0-9]/g,"").toUpperCase();break;case"numeric":a=a.replace(/[^0-9]/g,"")}return a}},14561:function(e,t,a){a.a(e,async function(e,l){try{a.d(t,{DJ:function(){return m},aL:function(){return s},p7:function(){return d}});var r=a(45458);const e=e=>{const t=e.split("T"),[a,l]=t,[r,n,i]=null==a?void 0:a.split("-");return`${i}-${n}-${r}`},n=async()=>{try{const e=await fetch("https://api.ipify.org?format=json");return(await e.json()).ip}catch(e){return console.error("Failed to get IP",e),null}},i={Arrival:"1",Departure:"2",Transit:"3"},o=await n(),d=(t,a,l)=>{var r,n,d,s,m,v,u,c,p,x,w,g,E,f,y,h,b,N,_,S,C,A,D,M,F,I,R,P;const L=Object.values((null==l?void 0:l.addon)||{}).map(e=>{var t;return{id:e.id,name:e.name,list_price:e.list_price,tax_price:e.tax_string,quantity:e.quantity,total:(null===(t=e.total)||void 0===t?void 0:t.toString())||"0"}}),k=(null==l||null===(r=l.product)||void 0===r||null===(n=r.product)||void 0===n?void 0:n.tax_price)*parseInt(null==a?void 0:a.adults),T=null==l||null===(d=l.product)||void 0===d||null===(s=d.productVariant)||void 0===s?void 0:s.filter(e=>{var t;return"child"===(null==e||null===(t=e.variant)||void 0===t?void 0:t.toLowerCase())}),O=null==l||null===(m=l.product)||void 0===m||null===(v=m.productVariant)||void 0===v?void 0:v.filter(e=>{var t;return"adult"===(null==e||null===(t=e.variant)||void 0===t?void 0:t.toLowerCase())}),B=k+((null==a?void 0:a.child)>0?(null==T||null===(u=T[0])||void 0===u?void 0:u.tax_price)*parseInt(null==a?void 0:a.child):0)+Object.values(null==l?void 0:l.addon).reduce((e,t)=>
2e+t.tax_price*t.quantity,0);return{parentOrderDetails:{category:a.type,travel_date:"Departure"===(null==a?void 0:a.type)?e(a.dateOfDeparture):e(a.dateOfArrival),sector:a.sector,no_of_adult:parseInt(a.adults),no_of_children:parseInt(a.child),no_of_infants:parseInt(a.infant),commitment_date:"Departure"===(null==a?void 0:a.type)?`${e(a.dateOfDeparture)} ${a.std}`:`${e(a.dateOfArrival)} ${a.sta}`,primary_product_id:null==l||null===(c=l.product)||void 0===c||null===(p=c.product)||void 0===p?void 0:p.id,terminal_id:"1",length_stay:0,pricelist_id:0,ipaddress:o||"109.38.225.250",save_sale_order_parent_id:0,airport:{airport_location_id:"8008",airport_terminal_id:"Domestic"===(null==a?void 0:a.sector)?"1":"2",airport_terminal_code:"Domestic"===(null==a?void 0:a.sector)?"90":"180",from_airport_id:"Departure"===(null==a?void 0:a.type)?"8008":a.originAirport,to_airport_id:"Arrival"===(null==a?void 0:a.type)?"8008":a.destinationAirport,service_category:"welcome_and_assist",service_type_id:i[null==a?void 0:a.type],booking_made_from:null},arrival:{arrival_flight_id:a.flight.id,arrival_flight_no:a.flight.name,arrival_airline_id:a.flight.airline_id[0],arrival_airline_name:a.flight.airline_id[1],arrival_time:a.sta,arrival_term:a.flight.arrival_term,arrival_from_airport:"Indira Gandhi International Airport",arrival_to_airport:null==a?void 0:a.originAirportName},departure:{departure_flight_id:"Transit"===(null==a?void 0:a.type)?null==a||null===(x=a.flight2)||void 0===x?void 0:x.id:null==a||null===(w=a.flight)||void 0===w?void 0:w.id,departure_flight_no:"Transit"===(null==a?void 0:a.type)?null==a||null===(g=a.flight2)||void 0===g?void 0:g.name:null==a||null===(E=a.flight)||void 0===E?void 0:E.name,departure_airline_id:"Transit"===(null==a?void 0:a.type)?null==a||null===(f=a.flight2)||void 0===f?void 0:f.airline_id[0]:null==a||null===(y=a.flight)||void 0===y?void 0:y.airline_id[0],departure_airline_name:"Transit"===(null==a?void 0:a.type)?null==a||null===(h=a.flight2)||void 0===h?void 0:h.airline_id[1]:null==a||null===(b=a.flight)||void 0===b?void 0:b.airline_id[1],departure_time:"Transit"===(null==a?void 0:a.type)?null==a?void 0:a.std:null==a?void 0:a.sta,departure_term:"Transit"===(null==a?void 0:a.type)?null==a||null===(N=a.flight2)||void 0===N?void 0:N.departure_term:null==a||null===(_=a.flight)||void 0===_?void 0:_.arrival_term,departure_from_airport:"Indira Gandhi International Airport",departure_to_airtport:null==a?void 0:a.destinationAirportName},transit:{transit_airport_service:null,transit_from_airtport:a.originAirport,transit_to_airtport:a.destinationAirport,transit_arrival_flight:a.flight.id,transit_departure_flight:a.flight2.id}},product:{data:[{product_id:null==O||null===(S=O[0])||void 0===S?void 0:S.id,name:null==O||null===(C=O[0])||void 0===C?void 0:C.name,product_uom_qty:a.adults.toString(),price_unit:parseFloat(null==O||null===(A=O[0])||void 0===A?void 0:A.lst_price).toFixed(2),price_subtotal:((null==O||null===(D=O[0])||void 0===D?void 0:D.tax_price)*a.adults).toString()},a.child&&a.child>0?{product_id:null==T||null===(M=T[0])||void 0===M?void 0:M.id,name:null==T||null===(F=T[0])||void 0===F?void 0:F.name,product_uom_qty:a.child.toString(),price_unit:parseFloat(null==T||null===(I=T[0])||void 0===I?void 0:I.lst_price).toFixed(2),price_subtotal:((null==T||null===(R=T[0])||void 0===R?void 0:R.tax_price)*a.child).toString()}:null]},addons:{data:L},paidAmount:B,userDetails:{save_sale_order_parent_id:"",title:null===(P=t.title)||void 0===P?void 0:P.split("-")[0],title_text:t.title_text,firstName:t.firstName,lastName:t.lastName,email:t.email,gender:t.gender,mobile:t.mobile,dob:t.dateOfBirth,countryCode:t.country,address:t.fullAddress,city:t.city,state:t.state,countryId:t.country,pincode:t.pincode,password:t.password,tnc:"yes",mkt_comm:"yes",consent:"true"}}},s=(t,a,l)=>{var r,n,d,s,m,v,u,c,p,x,w,g,E,f,y,h,b,N,_,S,C,A,D,M,F,I,R;const P=null==l||null===(r=l.product)||void 0===r||null===(n=r.productVariant)||void 0===n?void 0:n.filter(e=>{var t;return"child"===(null==e||null===(t=e.variant)||void 0===t?void 0:t.toLowerCase())}),L=null==l||null===(d=l.product)||void 0===d||null===(s=d.productVariant)||void 0===s?void 0:s.filter(e=>{var t;return"adult"===(null==e||null===(t=e.variant)||void 0===t?void 0:t.toLowerCase())}),k=(null==l||null===(m=l.product)||void 0===m||null===(v=m.product)||void 0===v?void 0:v.tax_price)*parseInt(null==a?void 0:a.adults)+((null==a?void 0:a.child)>0&&(null==P?void 0:P.length)>0?(null==P||null===(u=P[0])||void 0===u?void 0:u.tax_price)*parseInt(null==a?void 0:a.child):0)+Object.values(null==l?void 0:l.addon).reduce((e,t)=>
2e+t.tax_price*t.quantity,0),T=Object.values((null==l?void 0:l.addon)||{}).map(e=>{var t;return{id:e.id,name:e.name,list_price:e.list_price,tax_price:e.tax_string,quantity:e.quantity,total:(null===(t=e.total)||void 0===t?void 0:t.toString())||"0"}});return{parentOrderDetails:{category:a.type,travel_date:"Departure"===(null==a?void 0:a.type)?e(a.dateOfDeparture):e(a.dateOfArrival),sector:a.sector,no_of_adult:parseInt(a.adults),no_of_children:parseInt(a.child),no_of_infants:parseInt(a.infant),commitment_date:"Departure"===(null==a?void 0:a.type)?`${e(a.dateOfDeparture)} ${a.std}`:`${e(a.dateOfArrival)} ${a.sta}`,primary_product_id:null==l||null===(c=l.product)||void 0===c||null===(p=c.product)||void 0===p?void 0:p.id,terminal_id:"1",length_stay:0,pricelist_id:0,ipaddress:o||"109.38.225.250",save_sale_order_parent_id:0,airport:{airport_location_id:"8008",airport_terminal_id:"Domestic"===(null==a?void 0:a.sector)?"1":"2",airport_terminal_code:"Domestic"===(null==a?void 0:a.sector)?"90":"180",from_airport_id:"Departure"===(null==a?void 0:a.type)?"8008":a.originAirport,to_airport_id:"Arrival"===(null==a?void 0:a.type)?"8008":a.destinationAirport,service_category:"welcome_and_assist",service_type_id:i[null==a?void 0:a.type],booking_made_from:null},arrival:{arrival_flight_id:a.flight.id,arrival_flight_no:a.flight.name,arrival_airline_id:a.flight.airline_id[0],arrival_airline_name:a.flight.airline_id[1],arrival_time:a.sta,arrival_term:a.flight.arrival_term,arrival_from_airport:"Indira Gandhi International Airport",arrival_to_airport:null==a?void 0:a.originAirportName},departure:{departure_flight_id:"Transit"===(null==a?void 0:a.type)?null==a||null===(x=a.flight2)||void 0===x?void 0:x.id:null==a||null===(w=a.flight)||void 0===w?void 0:w.id,departure_flight_no:"Transit"===(null==a?void 0:a.type)?null==a||null===(g=a.flight2)||void 0===g?void 0:g.name:null==a||null===(E=a.flight)||void 0===E?void 0:E.name,departure_airline_id:"Transit"===(null==a?void 0:a.type)?null==a||null===(f=a.flight2)||void 0===f?void 0:f.airline_id[0]:null==a||null===(y=a.flight)||void 0===y?void 0:y.airline_id[0],departure_airline_name:"Transit"===(null==a?void 0:a.type)?null==a||null===(h=a.flight2)||void 0===h?void 0:h.airline_id[1]:null==a||null===(b=a.flight)||void 0===b?void 0:b.airline_id[1],departure_time:"Transit"===(null==a?void 0:a.type)?null==a?void 0:a.std:null==a?void 0:a.sta,departure_term:"Transit"===(null==a?void 0:a.type)?null==a||null===(N=a.flight2)||void 0===N?void 0:N.departure_term:null==a||null===(_=a.flight)||void 0===_?void 0:_.departure_term,departure_from_airport:"Indira Gandhi International Airport",departure_to_airtport:null==a?void 0:a.destinationAirportName},transit:{transit_airport_service:null,transit_from_airtport:a.originAirport,transit_to_airtport:a.destinationAirport,transit_arrival_flight:a.flight.id,transit_departure_flight:a.flight2.id}},product:{data:[{product_id:null==L||null===(S=L[0])||void 0===S?void 0:S.id,name:null==L||null===(C=L[0])||void 0===C?void 0:C.name,product_uom_qty:a.adults.toString(),price_unit:parseFloat(null==L||null===(A=L[0])||void 0===A?void 0:A.lst_price).toFixed(2),price_subtotal:((null==L||null===(D=L[0])||void 0===D?void 0:D.tax_price)*a.adults).toString()},a.child>0?{product_id:null==P||null===(M=P[0])||void 0===M?void 0:M.id,name:null==P||null===(F=P[0])||void 0===F?void 0:F.name,product_uom_qty:a.child.toString(),price_unit:parseFloat(null==P||null===(I=P[0])||void 0===I?void 0:I.lst_price).toFixed(2),price_subtotal:((null==P||null===(R=P[0])||void 0===R?void 0:R.tax_price)*a.child).toString()}:null]},addons:{data:T},credentials:{username:t.email,password:t.password},paidAmount:k}},m=(e,t)=>{var a,l,n,i,o,d,s,m,v,u,c,p,x,w,g,E,f,y,h,b,N,_,S,C,A,D,M,F,I,R,P,L,k,T,O,B,G,$;const j=t.guest.map(e=>({title:e.title.split("-")[0],title_text:e.title.split("-")[1]||"Mr/Ms",class_type:e.travelClass,gender:e.gender,first_name:e.first_name,last_name:e.last_name,age:e.age,pnr_no:e.pnr,passport_no:e.passport})),K=t.child?t.child.map(e=>({title:e.title.split("-")[0],title_text:e.title.split("-")[1]||"Mr/Ms",class_type:e.travelClass,gender:e.gender,first_name:e.first_name,last_name:e.last_name,age:e.age,pnr_no:e.pnr,passport_no:e.passport})):[],J=t.infant?t.infant.map(e=>({title:e.title.split("-")[0],title_text:e.title.split("-")[1]||"Mr/Ms",class_type:e.travelClass,gender:e.gender,first_name:e.first_name,last_name:e.last_name,age:e.age,pnr_no:e.pnr,passport_no:e.passport})):[];return{customerId:e.customerId,bookingId:e.bookingId,guests:[].concat((0,r.A)(j),(0,r.A)(K),(0,r.A)(J)),placard:{title:(null==t||null===(a=t.billingFormData)||void 0===a||null===(l=a.placard)||void 0===l?void 0:l.title.split("-")[0])||"",title_text:(null==t||null===(n=t.billingFormData)||void 0===n||null===(i=n.placard)||void 0===i?void 0:i.title.split("-")[1])||"Mr/Ms",first_name:null==t||null===(o=t.billingFormData)||void 0===o||null===(d=o.placard)||void 0===d?void 0:d.firstName,last_name:null==t||null===(s=t.billingFormData)||void 0===s||null===(m=s.placard)||void 0===m?void 0:m.lastName,country_code:null==t||null===(v=t.billingFormData)||void 0===v||null===(u=v.placard)||void 0===u?void 0:u.countryCode,mobile:null==t||null===(c=t.billingFormData)||void 0===c||null===(p=c.placard)||void 0===p?void 0:p.mobile,billing_title:null==t||null===(x=t.billingFormData)||void 0===x||null===(w=x.billing)||void 0===w?void 0:w.title,billing_name:null==t||null===(g=t.billingFormData)||void 0===g||null===(E=g.billing)||void 0===E?void 0:E.firstName,billing_last_name:null==t||null===(f=t.billingFormData)||void 0===f||null===(y=f.billing)||void 0===y?void 0:y.lastName,billing_country_code:null==t||null===(h=t.billingFormData)||void 0===h||null===(b=h.billing)||void 0===b?void 0:b.countryCode,billing_country_value:"India",billing_mobile:null==t||null===(N=t.billingFormData)||void 0===N||null===(_=N.billing)||void 0===_?void 0:_.mobile,billing_address:null==t||null===(S=t.billingFormData)||void 0===S||null===(C=S.billing)||void 0===C?void 0:C.address,billing_city:null==t||null===(A=t.billingFormData)||void 0===A||null===(D=A.billing)||void 0===D?void 0:D.city,billing_country:null==t||null===(M=t.billingFormData)||void 0===M||null===(F=M.billing)||void 0===F?void 0:F.country,billing_state:null==t||null===(I=t.billingFormData)||void 0===I||null===(R=I.billing)||void 0===R?void 0:R.state,billing_state_value:null==t||null===(P=t.billingFormData)||void 0===P||null===(L=P.billing)||void 0===L?void 0:L.state,billing_pincode:null==t||null===(k=t.billingFormData)||void 0===k||null===(T=k.billing)||void 0===T?void 0:T.pincode,billing_email_id:null==t||null===(O=t.billingFormData)||void 0===O||null===(B=O.billing)||void 0===B?void 0:B.email,billing_entity_name:null==t||null===(G=t.g
2st)||void 0===G?void 0:G.entityName,billing_gst_no:null==t||null===($=t.gst)||void 0===$?void 0:$.gstin}}};l()}catch(n){l(n)}},1)},15920:function(e,t,a){a.a(e,async function(e,l){try{var r=a(96540),n=a(13511),i=a(66379),o=a(14561),d=a(19103),s=a(88296),m=a(7116),v=e([n,o]);[n,o]=v.then?(await v)():v;const u=e=>{var t,a,l,v,u;let{handleNext:c,tabClass:p,activeStepTab:x}=e;const{0:w,1:g}=(0,r.useState)("Login");let E,f;"undefined"!=typeof window&&window.sessionStorage&&(E=JSON.parse(sessionStorage.getItem("userBookingDetail"))),"undefined"!=typeof window&&window.sessionStorage&&(f=JSON.parse(sessionStorage.getItem("userOrderSummary")));const{0:y,1:h}=(0,r.useState)(!1),{0:b,1:N}=(0,r.useState)({email:"",password:""}),{0:_,1:S}=(0,r.useState)({email:"",password:""}),{0:C,1:A}=(0,r.useState)({}),{0:D,1:M}=(0,r.useState)([]),{0:F,1:I}=(0,r.useState)([]),{0:R,1:P}=(0,r.useState)([]),{0:L,1:k}=(0,r.useState)(!1),{0:T,1:O}=(0,r.useState)({title:"",title_text:"",firstName:"",lastName:"",email:"",phoneCode:"",mobile:"",gender:"",dateOfBirth:"",country:"",state:"",city:"",pincode:"",fullAddress:"",password:"",confirmPassword:""}),{0:B,1:G}=(0,r.useState)({title:"",firstName:"",lastName:"",email:"",phoneCode:"",mobile:"",gender:"",dateOfBirth:"",country:"",state:"",city:"",pincode:"",fullAddress:"",password:"",confirmPassword:""}),$=(e,t)=>{N(a=>({...a,[e]:t})),S(t=>({...t,[e]:""}))},j=async e=>{const t=`/dial-api/encalm/states?country=${e}`;try{const e=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}),a=await e.json();"ok"===a.status&&I(null==a?void 0:a.states)}catch(a){throw console.error("Error calling API:",a),k(!1),a}};return(0,r.useEffect)(()=>{(async()=>{try{const a=await fetch("/dial-api/encalm/details",{method:"GET",headers:{"Content-Type":"application/json"}}),l=await a.json();var e,t;"ok"===l.status&&(P(null==l||null===(e=l.data)||void 0===e?void 0:e.salutation),M(null==l||null===(t=l.data)||void 0===t?void 0:t.country))}catch(a){throw console.error("Error calling API:",a),k(!1),a}})()},[]),r.createElement("div",null,r.createElement(m.A,{totalAmount:null===(t=f)||void 0===t?void 0:t.totalAmount}),r.createElement("div",{className:"px-[7vw] py-[2vw]"},r.createElement(s.A,{tabClass:p,activeTab:x}),r.createElement("div",{className:"flex flex-col xl:flex-row gap-[3vw] xl:gap-0 justify-between"},r.createElement("div",{className:"w-[100%] xl:w-[65%]"},r.createElement("div",{className:"flex gap-[2vw] font-redhatMedium"},r.createElement("button",{onClick:()=>g("Login"),className:"rounded-md text-[4vw] md:text-[2vw] xl:text-[1.2vw] px-[2vw] py-[0.5vw] "+("Login"===w?"bg-primary text-white":"bg-[#FDD7B4] text-black")},"I have an account"),r.createElement("button",{onClick:()=>g("Signup"),className:"rounded-md text-[4vw] md:text-[2vw] xl:text-[1.2vw] px-[2vw] py-[0.5vw] "+("Signup"===w?"bg-primary text-white":"bg-[#FDD7B4] text-black")},"I am a new user")),r.createElement("div",{className:"mt-[2vw]"},C&&null!=C&&C.user?r.createElement("div",{className:"flex flex-col gap-[1vw] border border-[#CACACA] rounded-lg p-[2vw] xl:p-[1vw] w-full xl:w-[60%] bg-[#fafafa]"},r.createElement("h2",{className:"text-primary font-redhatMedium text-[4vw] md:text-[2vw] xl:text-[1.2vw] mb-[1vw]"},"Logged In User Details"),Object.entries({Name:C.user.name,Email:C.user.email,Mobile:C.user.mobile,City:C.user.city,Country:null===(a=C.user.country_id)||void 0===a?void 0:a[1],State:null===(l=C.user.state_id)||void 0===l?void 0:l[1],Street:C.user.street,ZIP:C.user.zip,DOB:C.user.dob,Gender:C.user.gender}).map(e=>{let[t,a]=e;return r.createElement("div",{key:t,className:"flex justify-between border-b border-[#E0E0E0] py-[1vw]"},r.createElement("p",{className:"text-primary font-redhatMedium text-[3.5vw] md:text-[2vw] xl:text-[1vw]"},t),r.createElement("p",{className:"text-gray-600 font-redhatRegular text-[3.5vw] md:text-[2vw] xl:text-[1vw]"},a||"-"))})):"Login"===w?r.createElement("div",{className:"flex flex-col gap-[2vw]"},r.createElement("div",{className:"font-redhatRegular"},r.createElement("label",{className:"mb-[0.5vw] block font-redhatMedium text-[4vw] md:text-[2vw] xl:text-[1.2vw] text-primary"},"Email Id"),r.createElement("input",{value:b.email,onChange:e=>$("email",e.target.value),type:"email",className:"w-[100%] xl:w-[55%] border border-[#CACACA] font-redhatRegular text-primary text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] px-[3vw] md:px-[2vw] xl:px-[1vw] py-[2vw] md:py-[1vw] xl:py-[0.5vw] rounded outline-none"}),_.email&&r.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},_.email)),r.createElement("div",null,r.createElement("label",{className:"mb-[0.5vw] block font-redhatMedium text-[4vw] md:text-[2vw] xl:text-[1.2vw] text-primary"},"Password"),r.createElement("input",{value:b.password,onChange:e=>$("password",e.target.value),type:"password",className:"w-[100%] xl:w-[55%] border border-[#CACACA] font-redhatRegular text-primary text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] px-[3vw] md:px-[2vw] xl:px-[1vw] py-[2vw] md:py-[1vw] xl:py-[0.5vw] rounded outline-none"}),_.password&&r.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},_.password)),r.createElement("div",{className:"flex gap-[3vw] items-baseline"},r.createElement("button",{onClick:async()=>
2{if(!b.email&&!b.password)return void S(e=>({...e,email:"Please Enter Email",password:"Please Enter Password"}));if(!b.email)return void S(e=>({...e,email:"Please Enter Email"}));if(!b.password)return void S(e=>({...e,password:"Please Enter Password"}));k(!0);const e=(0,o.aL)(b,E,f);try{const t=await fetch("/dial-api/encalm/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await t.json();k(!1),"ok"===a.status?(A(a.data),S({email:"",password:""})):S(e=>({...e,email:"Invalid credentials. Please check your email and password.",password:""}))}catch(t){console.error("Error calling API:",t),k(!1),S(e=>({...e,email:"An error occurred. Please try again later.",password:""}))}},className:"rounded-md text-[4vw] md:text-[2vw] font-redhatMedium xl:text-[1.2vw] px-[2vw] py-[0.5vw] bg-primary text-white"},L?"Please Wait...":"Login"),r.createElement("p",{onClick:()=>h(!0),className:"underline text-[4vw] md:text-[2vw] font-redhatRegular xl:text-[1.2vw] text-primary cursor-pointer"},"Forgot Password")),y&&r.createElement(d.A,{setShowPopup:h})):r.createElement(i.A,{title:R,countries:D,states:F,formData:T,errors:B,updateFormField:(e,t)=>{if("title"===e&&O(e=>({...e,title_text:t.split("-")[1]})),"country"===e){const e=D.find(e=>e.id===parseInt(t));j(e.name)}if("state"===e||"city"===e){let a=t;return/[A-Za-z]/.test(t)&&(a=t.replace(/\d/g,"")),void O(t=>({...t,[e]:a}))}if("email"===e){const e=t.trim(),a=/^[^\s@]+@[^\s@.]+(\.[^\s@.]+)+$/;return O(t=>({...t,email:e})),e?void(a.test(e)?G(e=>({...e,email:""})):G(e=>({...e,email:"Invalid email format"}))):void G(e=>({...e,email:""}))}if("fullAddress"===e){const e=t;return O(e=>({...e,fullAddress:t})),e?/<[^>]*>/.test(e)?void G(e=>({...e,fullAddress:"HTML tags are not allowed"})):/^[a-zA-Z0-9\s.,!?'"()\-\/#]+$/.test(e)?void G(e=>({...e,fullAddress:""})):void G(e=>({...e,fullAddress:"Address cannot contain special characters."})):void G(e=>({...e,fullAddress:""}))}O(a=>({...a,[e]:t})),G(t=>({...t,[e]:""}))}}))),r.createElement("div",null,r.createElement(n.A,{data:null===(v=f)||void 0===v?void 0:v.product,addonCart:null===(u=f)||void 0===u?void 0:u.addon,bookingData:E,nextStep:`GuestDetails-${w}`,loggedInDetails:C,handleNext:c,formData:T,setErrors:G})))))};t.A=u,l()}catch(u){l(u)}})},19103:function(e,t,a){var l=a(96540);t.A=e=>{let{title:t,text:a,setShowPopup:r}=e;const{0:n,1:i}=(0,l.useState)(""),{0:o,1:d}=(0,l.useState)(!1),[s,m]=l.useState(!1),v=(0,l.useRef)(null);return(0,l.useEffect)(()=>{const e=e=>{v.current&&!v.current.contains(e.target)&&r(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]),l.createElement("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-40 z-20"},l.createElement("div",{ref:v,className:" w-[90%] xl:w-[70%] bg-white p-[6vw] xl:p-[3vw] rounded-lg shadow-lg text-center"},l.createElement("h2",{className:"font-redhatMedium text-[3.5vw] text-primary md:text-[2vw] xl:text-[1.5vw] text-left py-[0.8vw] xl:py-[0.5vw] mb-[2vw] xl:mb-[1vw] border-b border-primary"},"Enter Your Email"),o?l.createElement("div",null,l.createElement("p",{className:"font-redhatRegular text-[3.5vw] text-primary md:text-[2vw] xl:text-[1.5vw] mb-[0.5vw]"},"Thank You"),l.createElement("p",{className:"font-redhatRegular text-[3.5vw] text-primary md:text-[2vw] xl:text-[1.5vw] mb-[0.5vw]"},"Your password has been reset successfully & sent on your registered email id!"),l.createElement("p",{className:"font-redhatRegular text-[3.5vw] text-primary md:text-[2vw] xl:text-[1.5vw] mb-[0.5vw]"},"Your password has been reset successfully, please check your mail for new password."),l.createElement("button",{onClick:()=>r(!1),className:"mt-[3vw] px-[2.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] bg-primary text-white rounded"},"Ok")):l.createElement("div",null,l.createElement("div",null,l.createElement("input",{value:n,onChange:e=>i(e.target.value),type:"email",placeholder:"Enter Your Email",className:"w-[100%] xl:w-[55%] border border-[#CACACA] font-redhatRegular text-primary text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] px-[3vw] md:px-[2vw] xl:px-[1vw] py-[2vw] md:py-[1vw] xl:py-[0.5vw] rounded outline-none"})),l.createElement("button",{onClick:async()=>{m(!0);const e=`/dial-api/encalm/login/${n}`;try{const t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}});"success"===(await t.json()).message&&(d(!0),m(!1))}catch(t){throw console.error("Error calling API:",t),m(!1),t}},className:"mt-[3vw] px-[2.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] bg-primary text-white rounded"},s?"Please Wait...":"Reset Password"))))}},26885:function(e,t,a){var l=a(96540);t.A=e=>{let{title:t,text:a,setShowPopup:r}=e;const n=(0,l.useRef)(null);return(0,l.useEffect)(()=>{const e=e=>{n.current&&!n.current.contains(e.target)&&r(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]),l.createElement("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-40 z-20"},l.createElement("div",{ref:n,className:" w-[90%] xl:w-[70%] bg-white p-[6vw] xl:p-[3vw] rounded-lg shadow-lg text-center"},l.createElement("h2",{className:"font-redhatMedium text-[3.5vw] md:text-[2vw] xl:text-[1.5vw] text-left py-[0.8vw] xl:py-[0.5vw] mb-[2vw] xl:mb-[1vw] border-b border-primary"},t),l.createElement("div",{className:"prose max-w-none font-redhatRegular leading-relaxed text-left space-y-2 text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw]",dangerouslySetInnerHTML:{__html:a}}),l.createElement("button",{onClick:()=>r(!1),className:"mt-[3vw] px-[2.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] bg-blue-600 text-white rounded"},"OK")))}},35818:function(e,t,a){a(96540)},40621:function(e,t,a){a.a(e,async function(e,l){try{a.d(t,{z:function(){return w}});var r=a(45458),n=a(96540),i=a(62615),o=a(13511),d=a(7116),s=a(88296),m=a(14173),v=a(2824),u=a(88833),c=a(96081),p=e([o]);function w(e){var t,a,l,p,x,w,g,E,f,y,h,b,N,_,S,C,A,D,M,F,I,R,P,L,k,T,O;let{handleNext:B,tabClass:G,activeTab:$}=e;const{0:j,1:K}
2=(0,n.useState)([]),{0:J,1:Z}=(0,n.useState)([]),{0:V,1:U}=(0,n.useState)([]),{0:Y,1:z}=(0,n.useState)([]);let H,q,W,Q;"undefined"!=typeof window&&window.sessionStorage&&(H=JSON.parse(sessionStorage.getItem("userBookingDetail"))),"undefined"!=typeof window&&window.sessionStorage&&(q=JSON.parse(sessionStorage.getItem("userOrderSummary"))),"undefined"!=typeof window&&window.sessionStorage&&(W=JSON.parse(sessionStorage.getItem("userLogin"))),"undefined"!=typeof window&&window.sessionStorage&&(Q=JSON.parse(sessionStorage.getItem("userSignup")));const{0:X,1:ee}=(0,n.useState)(!1),{0:te,1:ae}=(0,n.useState)(!1);let le={id:0,title:"",title_text:"",first_name:"",last_name:"",gender:"",dob:"",passport:"",travelClass:"",age:"",pnr:""};const{0:re,1:ne}=(0,n.useState)([]),{0:ie,1:oe}=(0,n.useState)(Array.from({length:parseInt(H.adults)},(e,t)=>({...le,id:t+1}))),{0:de,1:se}=(0,n.useState)(Array.from({length:parseInt(H.child)},(e,t)=>({...le,id:t+1}))),{0:me,1:ve}=(0,n.useState)(Array.from({length:parseInt(H.child)},(e,t)=>({...le,id:t+1}))),{0:ue,1:ce}=(0,n.useState)(Array.from({length:parseInt(H.infant)},(e,t)=>({...le,id:t+1}))),{0:pe,1:xe}=(0,n.useState)(Array.from({length:parseInt(H.infant)},(e,t)=>({...le,id:t+1}))),{0:we,1:ge}=(0,n.useState)({placard:{title:"",firstName:"",lastName:"",countryCode:"",Mobile:""},billing:{title:"",firstName:(null===(t=W)||void 0===t||null===(a=t.user)||void 0===a?void 0:a.first_name)||"",lastName:(null===(l=W)||void 0===l||null===(p=l.user)||void 0===p?void 0:p.last_name)||"",countryCode:"",mobile:(null===(x=W)||void 0===x||null===(w=x.user)||void 0===w?void 0:w.mobile)||"",address:(null===(g=W)||void 0===g||null===(E=g.user)||void 0===E?void 0:E.street)||"",city:(null===(f=W)||void 0===f||null===(y=f.user)||void 0===y?void 0:y.city)||"",country:W?`${null===(h=W)||void 0===h||null===(b=h.user)||void 0===b?void 0:b.country_id[0]}`:"",state:W?`${null===(N=W)||void 0===N||null===(_=N.user)||void 0===_?void 0:_.state_id[0]}`:"",email:(null===(S=W)||void 0===S||null===(C=S.user)||void 0===C?void 0:C.email)||"",pincode:(null===(A=W)||void 0===A||null===(D=A.user)||void 0===D?void 0:D.zip)||""},gst:{entityName:"",gstin:""}}),{0:Ee,1:fe}=(0,n.useState)({placard:{title:"",firstName:"",lastName:"",countryCode:"",Mobile:""},billing:{title:"",firstName:"",lastName:"",countryCode:"",Mobile:"",address:"",city:"",country:"",state:"",pincode:"",email:""}}),ye=function(e,t,a){void 0===a&&(a="text");const l=(0,m.o2)(t,a);ge(t=>({...t,placard:{...t.placard,[e]:l}})),fe(t=>({...t,placard:{...t&&t.placard||{},[e]:""}}))},he=function(e,t,a){void 0===a&&(a="text");const l=(0,m.o2)(t,a);ge(t=>({...t,gst:{...t.gst,[e]:l}}))},be=e=>{ne(t=>{if(!t||0===t.length)return t;let a;if(e){var l,n,i,o,d;const e=(null===(l=Q)||void 0===l?void 0:l.dateOfBirth)||(null===(n=W)||void 0===n||null===(i=n.user)||void 0===i?void 0:i.dob),r=(e=>{if(!e)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(e)){const[t,a,l]=e.split("-").map(Number);return new Date(t,a-1,l)}if(/^\d{2}-\d{2}-\d{4}$/.test(e)){const[t,a,l]=e.split("-").map(Number);return new Date(l,a-1,t)}const t=new Date(e);return isNaN(t)?null:t})(e);if(!r)return void console.error("Invalid DOB format:",e);const s=new Date;let m=s.getFullYear()-r.getFullYear();const v=s.getMonth()-r.getMonth();(v<0||0===v&&s.getDate()<r.getDate())&&m--,a={...t[0],class_type:"",gender:"",first_name:Q?null===(o=Q)||void 0===o?void 0:o.firstName:W.user.first_name,last_name:Q?null===(d=Q)||void 0===d?void 0:d.lastName:W.user.last_name,age:m,pnr_no:"",passport_no:""}}else a={...t[0],class_type:"",gender:"",first_name:"",last_name:"",age:"",pnr_no:"",passport_no:""};return[a].concat((0,r.A)(t.slice(1)))}),ae(e)},Ne=async e=>{const t=`/dial-api/encalm/states?country=${e}`;try{const e=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json"}}),a=await e.json();"ok"===a.status&&Z(null==a?void 0:a.states)}catch(a){throw console.error("Error calling API:",a),a}},_e=e=>{if(!e)return"";const t=e.split("-");if(3!==t.length)return"";const a=parseInt(t[0],10),l=parseInt(t[1],10)-1,r=parseInt(t[2],10),n=new Date(a,l,r);if(isNaN(n.getTime()))return"";const i=new Date;if(n>i)return"";let o=i.getFullYear()-n.getFullYear();const d=i.getMonth()-n.getMonth();return(d<0||0===d&&i.getDate()<n.getDate())&&o--,o>=0?o:""};return(0,n.useEffect)(()=>{(async()=>{try{const a=await fetch("/dial-api/encalm/details",{method:"GET",headers:{"Content-Type":"application/json"}}),l=await a.json();if("ok"===l.status){var e,t;U(null==l||null===(e=l.data)||void 0===e?void 0:e.salutation);const a=(0,r.A)((null==l||null===(t=l.data)||void 0===t?void 0:t.country)||[]).sort((e,t)=>
2Number(e.phone_code)-Number(t.phone_code));K(a)}}catch(a){throw console.error("Error calling API:",a),a}})()},[]),(0,n.useEffect)(()=>{var e;const t=parseInt((null===(e=H)||void 0===e?void 0:e.adults)||0);if(!Y||0===Y.length){const e=Array.from({length:t},(e,t)=>({...le,id:t+1}));return void ne(e)}const a=Array.from({length:t},(e,t)=>{const a=Y[t];return a?{...le,id:t+1,title:"",title_text:"",first_name:a.first_name||"",last_name:a.last_name||"",gender:a.gender||"",dob:a.dob||"",passport:a.passportNo||"",age:_e(a.dob)}:{...le,id:t+1}});ne(a)},[H.adults,Y]),(0,n.useEffect)(()=>{var e,t,a,l;W&&(null===(e=W)||void 0===e||null===(t=e.user)||void 0===t?void 0:t.country_id.length)>0&&Ne(null===(a=W)||void 0===a||null===(l=a.user)||void 0===l?void 0:l.country_id[1])},[]),n.createElement("div",null,n.createElement(d.A,{totalAmount:null===(M=q)||void 0===M?void 0:M.totalAmount}),n.createElement("div",{className:"w-full px-[7vw] mt-[2vw] font-redhatRegular text-[#002C5F]"},n.createElement(s.A,{tabClass:G,activeTab:$})),n.createElement("div",{className:"flex flex-col xl:flex-row justify-between px-[7vw] py-6"},n.createElement("div",{className:"w-[100%] xl:w-[60%] text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] font-redhatRegular"},n.createElement("div",null,n.createElement("h2",{className:"font-redhatBold mb-[1.2vw] text-primary text-[4vw] md:text-[2.5vw] xl:text-[1.5vw]"},"Guest Details"),n.createElement("div",{className:"flex items-center gap-2 mb-4"},n.createElement("input",{type:"checkbox",checked:te,onChange:e=>be(e.target.checked),id:"iamGuest",className:"cursor-pointer"}),n.createElement("label",{htmlFor:"iamGuest",className:"text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"I am Guest"),n.createElement("span",{onClick:()=>ee(!0),className:"underline text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] cursor-pointer"},"My Guest List")),n.createElement("div",null,n.createElement(u.A,{title:V,forms:re,updateFormsData:(e,t,a)=>{const l=(0,r.A)(re);l[e][t]=a,ne(l);const n=(0,r.A)(ie);""!==a.trim()&&(n[e][t]=""),oe(n)},errors:ie,label:"Guest"})),parseInt(null===(F=H)||void 0===F?void 0:F.child)>0&&n.createElement("div",{className:"mt-[2vw]"},n.createElement("h2",{className:"font-redhatBold border-b border-primary mb-[1.2vw] text-primary text-[4vw] md:text-[2.5vw] xl:text-[1.5vw]"},"Child Details"),n.createElement(u.A,{title:V,forms:de,updateFormsData:(e,t,a)=>{const l=(0,r.A)(de);l[e][t]=a,se(l);const n=(0,r.A)(me);""!==a.trim()&&(n[e][t]=""),ve(n)},errors:me,label:"Child"})),parseInt(null===(I=H)||void 0===I?void 0:I.infant)>0&&n.createElement("div",{className:"mt-[2vw]"},n.createElement("h2",{className:"font-redhatBold border-b border-primary mb-[1.2vw] text-primary text-[4vw] md:text-[2.5vw] xl:text-[1.5vw]"},"Infant Details"),n.createElement(u.A,{title:V,label:"Infant",forms:ue,updateFormsData:(e,t,a)=>{const l=(0,r.A)(ue);l[e][t]=a,ce(l);const n=(0,r.A)(pe);""!==a.trim()&&(n[e][t]=""),xe(n)},errors:pe}))),n.createElement("div",{className:"mt-10"},n.createElement("h2",{className:"font-redhatBold mb-[1.2vw] text-primary text-[4vw] md:text-[2.5vw] xl:text-[1.5vw]"},"Placard Details"),n.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-4 mb-4"},n.createElement("div",null,n.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Title*"),n.createElement("select",{value:we.placard.title,onChange:e=>ye("title",e.target.value),className:`w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] ${c.u?"min-h-[44px]":null} focus:outline-none focus:ring-0`},n.createElement("option",{value:""},"Select"),V&&(null==V?void 0:V.map((e,t)=>n.createElement("option",{key:e.id,value:`${e.id}-${e.name}`},e.name)))),Ee.placard.title&&n.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},Ee.placard.title)),n.createElement("div",null,n.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"First Name*"),n.createElement("input",{value:we.placard.firstName,onChange:e=>ye("firstName",e.target.value,"name"),type:"text",placeholder:"Enter First Name",maxLength:50,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),Ee.placard.firstName&&n.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},Ee.placard.firstName)),n.createElement("div",null,n.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Last Name*"),n.createElement("input",{value:we.placard.lastName,onChange:e=>ye("lastName",e.target.value,"name"),type:"text",placeholder:"Enter Last Name",maxLength:50,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),Ee.placard.lastName&&n.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},Ee.placard.lastName))),n.createElement("div",{className:"grid grid-cols-2 gap-4"},n.createElement("div",null,n.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Country Code*"),n.createElement("select",{value:we.placard.countryCode,onChange:e=>ye("countryCode",e.target.value),className:`w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] ${c.u?"min-h-[44px]":null} focus:outline-none focus:ring-0`},n.createElement("option",{value:""},"Select"),j&&(null==j?void 0:j.map((e,t)=>n.createElement("option",{key:e.id,value:e.phone_code},`+ ${e.phone_code}`)))),Ee.placard.countryCode&&n.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},Ee.placard.countryCode)),n.createElement("div",null,n.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Mobile*"),n.createElement("input",{value:we.placard.mobile,onChange:e=>ye("mobile",e.target.value,"numeric"),type:"text",placeholder:"Enter Mobile",maxLength:15,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),Ee.placard.mobile&&n.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},Ee.placard.mobile)))),n.createElement(v.A,{formData:we,updateBillingField:(e,t)=>{if("country"===e){const e=j.find(e=>e.id===parseInt(t));Ne(null==e?void 0:e.name)}if("address"===e){const a=t;return ge(t=>({...t,billing:{...t.billing,[e]:a}})),a?/<[^>]*>/.test(a)?void fe(t=>({...t,billing:{...t&&t.billing||{},[e]:"HTML tags are not allowed"}})):/^[a-zA-Z0-9\s.,!?'"()\-\/#]+$/.test(a)?void fe(t=>({...t,billing:{...t&&t.billing||{},[e]:""}})):void fe(t=>({...t,billing:{...t&&t.billing||{},[e]:"Address cannot contain special characters."}})):void fe(t=>({...t,billing:{...t&&t.billing||{},[e]:""}}))}if("email"===e){const a=t.trim(),l=/^[^\s@]+@[^\s@.]+(\.[^\s@.]+)+$/;return ge(t=>({...t,billing:{...t.billing,[e]:a}})),a?void(l.test(a)?fe(t=>({...t,billing:{...t&&t.billing||{},[e]:""}})):fe(t=>({...t,billing:{...t&&t.billing||{},[e]:"Invalid email format"}}))):void fe(t=>({...t,billing:{...t&&t.billing||{},[e]:""}}))}if("state"===e||"city"===e){let a=t;return/[A-Za-z]/.test(t)&&(a=t.replace(/\d/g,"")),ge(t=>({...t,billing:{...t.billing,[e]:a}})),void fe(t=>({...t,billing:{...t&&t.billing||{},[e]:""}}))}ge(a=>({...a,billing:{...a.billing,[e]:t}})),fe(t=>({...t,billing:{...t&&t.billing||{},[e]:""}}))},formDataError:Ee,countries:j,title:V,states:J}),n.createElement("div",{className:"mt-[4vw] xl:mt-[2vw] mb-[4vw] xl:mb-[2vw]"},n.createElement("h2",{className:"font-redhatBold mb-[1.2vw] text-primary text-[4vw] md:text-[2.5vw] xl:text-[1.5vw]"},"Add GST Details"),n.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-4"},n.createElement("div",null,n.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Entity Name (Optional)"),n.createElement("input",{value:we.gst.entityName,onChange:e=>he("entityName",e.target.value,"name"),type:"text",placeholder:"Enter Entity Name",maxLength:100,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"})),n.createElement("div",null,n.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"GSTIN (Optional)"),n.createElement("input",{value:we.gst.gstin,onChange:e=>he("gstin",e.target.value,"text"),type:"text",placeholder:"Enter GSTIN",maxLength:15,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"})))),n.createElement(i.l,{isOpen:X,onClose:()=>ee(!1),setSelectedGuests:z,selectedGuests:Y,guestCount:null===(R=H)||void 0===R?void 0:R.adults,title:V,customerId:null!==(P=Q)&&void 0!==P&&P.customerId?null===(L=Q)||void 0===L?void 0:L.customerId:null===(k=W)||void 0===k?void 0:k.customerId})),n.createElement("div",{className:"w-[100%] xl:w-[35%]"},n.createElement(o.A,{data:null===(T=q)||void 0===T?void 0:T.product,addonCart:null===(O=q)||void 0===O?void 0:O.addon,bookingData:H,handleNext:B,nextStep:"Checkout",formData:{billingFormData:we,guest:re,child:de,infant:ue,user:W||Q},setErrors:{billingErrors:fe,guestErrors:oe,childErrors:ve,infantErrors:xe}}))))}o=(p.then?(await p)():p)[0],l()}catch(x){l(x)}})},42477:function(e,t,a){a(96540),a(59533),a(35818),a(79109)},44973:function(e,t,a){a.a(e,async function(e,l){try{var r=a(96540),n=a(90607),i=a(15920),o=a(552
268),d=a(40621),s=a(48263),m=(a(71949),a(63895)),v=e([n,i,d,s]);[n,i,d,s]=v.then?(await v)():v;const u=()=>{var e;let t,a,l;"undefined"!=typeof window&&window.sessionStorage&&(a=JSON.parse(sessionStorage.getItem("banner_section")),t=JSON.parse(sessionStorage.getItem("greetServiceData")),l=new URLSearchParams(window.location.search));const v=l&&(null===(e=l)||void 0===e?void 0:e.get("tab")),{0:u,1:c}=(0,r.useState)(parseInt(v)),p=e=>{if(c(e=>Math.min(e+1,5)),"undefined"!=typeof window){const t=new URLSearchParams(window.location.search);t.set("tab",e),(0,o.navigate)(`${window.location.pathname}?${t.toString()}`,{replace:!0})}},x=e=>e===u?"bg-primary text-white":e<u?"bg-orange-500 text-white":"bg-gray-300 text-black";return(0,r.useEffect)(()=>{if("undefined"!=typeof window){const e=new URLSearchParams(window.location.search).get("tab");e&&c(parseInt(e))}},[]),r.createElement("div",null,r.createElement(m.A,{banner_section:a}),r.createElement("div",{className:"w-full font-redhatRegular bg-right bg-no-repeat ",style:{backgroundImage:"url('https://d31szslsujr0rm.cloudfront.net/bg_1_954dccc7f3.svg')"}},2===u&&r.createElement(n.A,{data:t,activeTab:u,setActiveTab:c,handleNext:p,tabClass:x}),3===u&&r.createElement(i.A,{handleNext:p,tabClass:x,activeStepTab:u}),4===u&&r.createElement(d.z,{handleNext:p,tabClass:x,activeTab:u}),5===u&&r.createElement(s.A,{handleNext:p,tabClass:x,activeTab:u})))};t.A=u,l()}catch(u){l(u)}})},48263:function(e,t,a){a.a(e,async function(e,l){try{var r=a(96540),n=a(13511),i=(a(42477),a(88296)),o=a(7116),d=e([n]);function m(e){var t,a,l,d,s,m,v,u,c,p,x,w,g,E,f,y,h,b,N,_,S,C,A,D,M,F,I,R,P,L,k,T,O,B,G,$,j,K,J,Z,V,U,Y,z,H,q,W,Q,X,ee,te,ae,le,re,ne,ie,oe,de,se,me,ve,ue,ce,pe,xe,we,ge,Ee;let{handleNext:fe,tabClass:ye,activeTab:he}=e;const{0:be,1:Ne}=(0,r.useState)(null),{0:_e,1:Se}=(0,r.useState)(null);let Ce,Ae,De,Me,Fe,Ie;"undefined"!=typeof window&&window.sessionStorage&&(Ce=JSON.parse(sessionStorage.getItem("userBookingDetail")),Ae=JSON.parse(sessionStorage.getItem("userOrderSummary")),De=JSON.parse(sessionStorage.getItem("userGuestBillingData")),Me=JSON.parse(sessionStorage.getItem("userLogin")),Fe=JSON.parse(sessionStorage.getItem("userSignup")),Ie=JSON.parse(sessionStorage.getItem("PlaceOrderResult")));const Re="arrival"===(null===(t=Ce)||void 0===t||null===(a=t.type)||void 0===a?void 0:a.toLowerCase()),Pe="departure"===(null===(l=Ce)||void 0===l||null===(d=l.type)||void 0===d?void 0:d.toLowerCase()),Le="transit"===(null===(s=Ce)||void 0===s||null===(m=s.type)||void 0===m?void 0:m.toLowerCase()),ke={serviceDate:Pe?`${null===(v=Ce)||void 0===v||null===(u=v.dateOfDeparture)||void 0===u?void 0:u.split("T")[0]} ${null===(c=Ce)||void 0===c?void 0:c.std}`:`${null===(p=Ce)||void 0===p||null===(x=p.dateOfArrival)||void 0===x?void 0:x.split("T")[0]} ${null===(w=Ce)||void 0===w?void 0:w.sta}`,serviceType:null===(g=Ce)||void 0===g?void 0:g.type,serviceAirport:"Indira Gandhi International Airport",travelSector:null===(E=Ce)||void 0===E?void 0:E.sector,travelDate:"Arrival"===(null===(f=Ce)||void 0===f?void 0:f.type)?null===(y=Ce)||void 0===y||null===(h=y.dateOfArrival)||void 0===h?void 0:h.split("T")[0]:null===(b=Ce)||void 0===b||null===(N=b.dateOfDeparture)||void 0===N?void 0:N.split("T")[0],numberOfGuests:`${null===(_=Ce)||void 0===_?void 0:_.adults} Adults | ${null===(S=Ce)||void 0===S?void 0:S.child} Child | ${null===(C=Ce)||void 0===C?void 0:C.infant} Infant`,customerName:(null===(A=Me)||void 0===A||null===(D=A.user)||void 0===D?void 0:D.name)||`${(null===(M=Fe)||void 0===M?void 0:M.firstName)||""} ${(null===(F=Fe)||void 0===F?void 0:F.lastName)||""}`.trim(),mobileNumber:(null===(I=Me)||void 0===I||null===(R=I.user)||void 0===R?void 0:R.mobile)||(null===(P=Fe)||void 0===P?void 0:P.mobile)||"",placardName:`${(null===(L=De)||void 0===L||null===(k=L.billingFormData)||void 0===k||null===(T=k.placard)||void 0===T?void 0:T.firstName)||""} ${(null===(O=De)||void 0===O||null===(B=O.billingFormData)||void 0===B||null===(G=B.placard)||void 0===G?void 0:G.lastName)||""}`.trim(),placardMobile:(null===($=De)||void 0===$||null===(j=$.billingFormData)||void 0===j||null===(K=j.placard)||void 0===K?void 0:K.mobile)||""};let Te={};var Oe,Be,Ge,$e,je,Ke,Je;if(Re)Te={...ke,arrivalAirline:null===(Oe=Ce)||void 0===Oe||null===(Be=Oe.flight)||void 0===Be||null===(Ge=Be.airline_id)||void 0===Ge?void 0:Ge[1],fromAirport:null===($e=Ce)||void 0===$e?void 0:$e.originAirportName,toAirport:"Indira Gandhi International Airport",arrivalFlightNo:null===(je=Ce)||void 0===je||null===(Ke=je.flight)||void 0===Ke?void 0:Ke.flight_name,arrivalTime:null===(Je=Ce)||void 0===Je?void 0:Je.sta};else if(Pe){var Ze,Ve,Ue,Ye,ze,He,qe;Te={...ke,arrivalAirline:null===(Ze=Ce)||void 0===Ze||null===(Ve=Ze.flight)||void 0===Ve||null===(Ue=Ve.airline_id)||void 0===Ue?void 0:Ue[1],fromAirport:"Indira Gandhi International Airport",toAirport:null===(Ye=Ce)||void 0===Ye?void 0:Ye.de
2stinationAirportName,arrivalFlightNo:null===(ze=Ce)||void 0===ze||null===(He=ze.flight)||void 0===He?void 0:He.flight_name,arrivalTime:null===(qe=Ce)||void 0===qe?void 0:qe.sta}}else{var We,Qe,Xe,et,tt,at,lt,rt,nt,it,ot,dt,st,mt;Te={...ke,arrivalAirline:null===(We=Ce)||void 0===We||null===(Qe=We.flight)||void 0===Qe||null===(Xe=Qe.airline_id)||void 0===Xe?void 0:Xe[1],departureAirline:null===(et=Ce)||void 0===et||null===(tt=et.flight2)||void 0===tt||null===(at=tt.airline_id)||void 0===at?void 0:at[1],fromAirport:null===(lt=Ce)||void 0===lt?void 0:lt.originAirportName,toAirport:null===(rt=Ce)||void 0===rt?void 0:rt.destinationAirportName,arrivalFlightNo:null===(nt=Ce)||void 0===nt||null===(it=nt.flight)||void 0===it?void 0:it.flight_name,arrivalTime:null===(ot=Ce)||void 0===ot?void 0:ot.sta,departureFlightNo:null===(dt=Ce)||void 0===dt||null===(st=dt.flight2)||void 0===st?void 0:st.flight_name,departureTime:null===(mt=Ce)||void 0===mt?void 0:mt.std}}const vt=e=>{let{label:t,value:a}=e;return r.createElement("div",{className:"flex justify-between items-center w-full mb-[0.8vw]"},r.createElement("p",{className:"font-redhatRegular text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] text-primary w-[40%]"},t),r.createElement("p",{className:"font-redhatRegular text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] text-primary w-[60%] text-right"},a))};return r.createElement("div",null,r.createElement(o.A,{totalAmount:null===(J=Ae)||void 0===J?void 0:J.totalAmount}),r.createElement("div",{className:"w-full px-[7vw] mt-[2vw] font-redhatRegular text-[#002C5F]"},r.createElement(i.A,{tabClass:ye,activeTab:he})),r.createElement("div",{className:"flex flex-col xl:flex-row justify-between gap-[5vw] px-[7vw] py-[3vw]"},r.createElement("div",{className:"w-full xl:w-[65%]"},r.createElement("h2",{className:"font-redhatBold text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] text-primary mb-[1.2vw]"},"Checkout Details"),r.createElement("div",{className:"mb-[2.5vw]"},Ie&&r.createElement("div",null,r.createElement(vt,{label:"Booking No:",value:null===(Z=Ie)||void 0===Z?void 0:Z.bookingNumber}),r.createElement(vt,{label:"Booking Date:",value:null===(V=Ie)||void 0===V?void 0:V.bookingDate}),r.createElement(vt,{label:"Booking Time:",value:null===(U=Ie)||void 0===U?void 0:U.bookingTime})),r.createElement(vt,{label:"Service Date & Time:",value:null===(Y=Te)||void 0===Y?void 0:Y.serviceDate}),r.createElement(vt,{label:"Service Type:",value:null===(z=Te)||void 0===z?void 0:z.serviceType}),r.createElement(vt,{label:"Service Airport:",value:null===(H=Te)||void 0===H?void 0:H.serviceAirport}),r.createElement(vt,{label:"Travel Sector:",value:null===(q=Te)||void 0===q?void 0:q.travelSector}),r.createElement(vt,{label:"Travel Date:",value:Te.travelDate}),r.createElement(vt,{label:Pe?"Departure Airline:":"Arrival Airline:",value:null===(W=Te)||void 0===W?void 0:W.arrivalAirline}),Le&&r.createElement(vt,{label:"Departure Airline:",value:null===(Q=Te)||void 0===Q?void 0:Q.departureAirline}),r.createElement(vt,{label:"From Airport:",value:null===(X=Te)||void 0===X?void 0:X.fromAirport}),r.createElement(vt,{label:"To Airport:",value:null===(ee=Te)||void 0===ee?void 0:ee.toAirport}),r.createElement(vt,{label:Pe?"Departure Flight No:":"Arrival Flight No:",value:null===(te=Te)||void 0===te?void 0:te.arrivalFlightNo}),r.createElement(vt,{label:Pe?"Departure Time:":"Arrival Time:",value:null===(ae=Te)||void 0===ae?void 0:ae.arrivalTime}),Le&&r.createElement(vt,{label:"Departure Flight No:",value:null===(le=Te)||void 0===le?void 0:le.departureFlightNo}),Le&&r.createElement(vt,{label:"Departure Time:",value:null===(re=Te)||void 0===re?void 0:re.departureTime}),r.createElement(vt,{label:"Number of Guests:",value:null===(ne=Te)||void 0===ne?void 0:ne.numberOfGuests}),r.createElement(vt,{label:"Customer Name:",value:null===(ie=Te)||void 0===ie?void 0:ie.customerName}),r.createElement(vt,{label:"Mobile Number:",value:null===(oe=Te)||void 0===oe?void 0:oe.mobileNumber})),r.createElement("h2",{className:"font-redhatBold text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] text-primary mb-[1.2vw]"},"Guest Details"),null===(de=De)||void 0===de?void 0:de.guest.map((e,t)=>r.createElement("div",{className:"mb-[2.5vw] border-b border-primary pb-[2vw]",key:t},r.createElement(vt,{label:"Name:",value:`${null==e?void 0:e.first_name} ${null==e?void 0:e.last_name}`}),r.createElement(vt,{label:"Age:",value:null==e?void 0:e.age}),r.createElement(vt,{label:"Travel Class:",value:null==e?void 0:e.travelClass}),r.createElement(vt,{label:"PNR No:",value:null==e?void 0:e.pnr}),r.createElement(vt,{label:"Passport / Govt ID:",value:null==e?void 0:e.passport}))),(null===(se=De)||void 0===se?void 0:se.child)&&(null===(me=De)||void 0===me?void 0:me.child.length)>0&&r.createElement("div",null,r.createElement("h2",{className:"font-redhatBold text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] text-primary mb-[1.2vw]"},"Child Details"),De.child.map((e,t)=>r.createElement("div",{className:"mb-[2.5vw] border-b border-primary pb-[2vw]",key:t},r.createElement(vt,{label:"Name:",value:`${null==e?void 0:e.first_name} ${null==e?void 0:e.last_name}`}),r.createElement(vt,{label:"Age:",value:null==e?void 0:e.age}),r.createElement(vt,{label:"Travel Class:",value:null==e?void 0:e.travelClass}),r.createElement(vt,{label:"PNR No:",value:null==e?void 0:e.pnr}),r.createElement(vt,{label:"Passport / Govt ID:",value:null==e?void 0:e.passport})))),(null===(ve=De)||void 0===ve?void 0:ve.infant)&&(null===(ue=De)||void 0===ue?void 0:ue.infant.length)>0&&r.createElement("div",null,r.createElement("h2",{className:"font-redhatBold text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] text-primary mb-[1.2vw]"},"Child Details"),De.infant.map((e,t)=>r.createElement("div",{className:"mb-[2.5vw] border-b border-primary pb-[2vw]",key:t},r.createElement(vt,{label:"Name:",value:`${null==e?void 0:e.first_name} ${null==e?void 0:e.last_name}`}),r.createElement(vt,{label:"Age:",value:null==e?void 0:e.age}),r.createElement(vt,{label:"Travel Class:",value:null==e?void 0:e.travelClass}),r.createElement(vt,{label:"PNR No:",value:null==e?void 0:e.pnr}),r.createElement(vt,{label:"Passport / Govt ID:",value:null==e?void 0:e.passport})))),r.createElement("div",{className:"border-b border-primary mb-[2vw] md:mb-[1vw]"},r.createElement("h2",{className:"font-redhatBold text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] text-primary mb-[1.2vw]"},"Billing Details"),r.createElement("div",null,Object.entries(null===(ce=De)||void 0===ce||null===(pe=ce.billingFormData)||void 0===pe?void 0:pe.billing).map(e=>
2{let[t,a]=e;if(!a)return null;var l;if("country"!==t&&"state"!==t)return r.createElement(vt,{key:t,label:`${l=t,void 0===l&&(l=""),l.charAt(0).toUpperCase()+l.slice(1)}:`,value:String(a)})}))),r.createElement("h2",{className:"font-redhatBold text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw] text-primary mb-[1.2vw]"},"Placard Details"),r.createElement("div",null,r.createElement(vt,{label:"Placard Name:",value:null===(xe=Te)||void 0===xe?void 0:xe.placardName}),r.createElement(vt,{label:"Mobile No:",value:null===(we=Te)||void 0===we?void 0:we.placardMobile}))),r.createElement("div",{className:"w-full xl:w-[35%]"},r.createElement(n.A,{data:null===(ge=Ae)||void 0===ge?void 0:ge.product,addonCart:null===(Ee=Ae)||void 0===Ee?void 0:Ee.addon,bookingData:Ce,nextStep:"Payment",handleNext:fe}))))}n=(d.then?(await d)():d)[0],t.A=m,l()}catch(s){l(s)}})},49098:function(e,t,a){var l=a(96540);t.A=e=>{let{text:t,textColor:a,style:r}=e;return l.createElement("div",null,l.createElement("div",{className:`relative w-fit lg:border-b-[0.15vw] border-b-[0.5vw] \n border-[#F77D0D] lg:pb-[0.5vw] pb-[1vw] font-redhatBold \n lg:text-[3.55vw] md:text-[4.5vw] text-[7vw] lg:leading-[3.5vw] leading-tight ${r}`},l.createElement("div",{className:"absolute inset-0 rounded-md pointer-events-none"}),l.createElement("h1",{className:"relative text-white drop-shadow-lg"},t)))}},62615:function(e,t,a){a.d(t,{l:function(){return o}});var l=a(45458),r=a(96540),n=a(93318),i=(a(8151),a(37589));const o=e=>{let{isOpen:t,onClose:a,title:o,customerId:d,setSelectedGuests:s,selectedGuests:m,guestCount:v}=e;const u=(0,r.useRef)(null),{0:c,1:p}=(0,r.useState)(!1),{0:x,1:w}=(0,r.useState)({title:"",firstName:"",lastName:"",gender:"",dob:"",passport:""}),{0:g,1:E}=(0,r.useState)({title:"",firstName:"",lastName:"",gender:"",dob:"",passport:""}),{0:f,1:y}=(0,r.useState)([]),{0:h,1:b}=(0,r.useState)(null),{0:N,1:_}=(0,r.useState)({}),S=(e,t)=>{w(a=>({...a,[e]:t})),E(t=>({...t,[e]:""}))},C=async e=>{p(!0);try{const t=await fetch("/dial-api/encalm/guest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});"ok"===(await t.json()).status&&(w({title:"",firstName:"",lastName:"",gender:"",dob:"",passport:""}),A(),p(!1))}catch(t){console.error("Error calling API:",t)}},A=async()=>{const e=`/dial-api/encalm/guestlist?customerId=${d}`;try{const t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}}),a=await t.json();if("ok"===a.status)return y(a.guestList),a.guestList}catch(t){console.error("Error calling API:",t)}};return(0,r.useEffect)(()=>{A();const e=e=>{u.current&&!u.current.contains(e.target)&&a()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),t?r.createElement("div",{className:"fixed inset-0 flex justify-center items-center bg-black bg-opacity-50 z-50 "},r.createElement("div",{ref:u,className:"bg-white rounded-lg w-[90%] md:w-[80%] xl:w-[70%] p-[2vw] relative"},r.createElement("div",{className:"flex justify-between items-center mb-[2vw]"},r.createElement("h2",{className:"font-redhatBold text-primary text-[4.5vw] md:text-[3vw] xl:text-[2vw]"},"My Guest List"),r.createElement("button",{onClick:()=>{w({title:"",firstName:"",lastName:"",gender:"",dob:"",passport:""}),s([]),b(null),a()},className:"text-primary text-[6vw] md:text-[4vw] xl:text-[3vw]"},"Ã")),r.createElement("hr",{className:"mb-4"}),r.createElement("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-6 gap-3 mb-4"},r.createElement("div",null,r.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Title*"),r.createElement("select",{value:x.title,onChange:e=>S("title",e.target.value),className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] font-redhatRegular"},r.createElement("option",{value:""},"Select"),o&&(null==o?void 0:o.map((e,t)=>r.createElement("option",{key:e.id,value:e.id},e.name)))),g.title&&r.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},g.title)),r.createElement("div",null,r.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"First Name*"),r.createElement("input",{value:x.firstName,onChange:e=>S("firstName",e.target.value),placeholder:"Enter Name",className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] font-redhatRegular"}),g.firstName&&r.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},g.firstName)),r.createElement("div",null,r.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Last Name*"),r.createElement("input",{value:x.lastName,onChange:e=>S("lastName",e.target.value),placeholder:"Enter Name",className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] font-redhatRegular"}),g.lastName&&r.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},g.lastName)),r.createElement("div",null,r.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"}
2,"Gender*"),r.createElement("select",{value:x.gender,onChange:e=>S("gender",e.target.value),className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] font-redhatRegular"},r.createElement("option",{value:""},"Select"),r.createElement("option",null,"Male"),r.createElement("option",null,"Female"),r.createElement("option",null,"Other")),g.gender&&r.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},g.gender)),r.createElement("div",null,r.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Date of Birth*"),r.createElement(n.Ay,{selected:x.dob?new Date(x.dob.split("-").reverse().join("-")):null,onChange:e=>S("dob",e?e.toLocaleDateString("en-GB").replaceAll("/","-"):""),dateFormat:"yyyy-MM-dd",showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",maxDate:new Date,placeholderText:"Select DOB",className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] font-redhatRegular"}),g.dob&&r.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},g.dob)),r.createElement("div",null,r.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Passport/Govt ID*"),r.createElement("input",{value:x.passport,onChange:e=>S("passport",e.target.value),placeholder:"Enter ID",className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] font-redhatRegular"}),g.passport&&r.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},g.passport))),r.createElement("button",{onClick:()=>{if((0,i.JR)(x,E)){const e={title:x.title,firstName:x.firstName,lastName:x.lastName,gender:x.gender,dob:x.dob,passportNo:x.passport,customerId:d};C(e)}},className:"bg-primary text-white px-[2.5vw] xl:px-[1.5vw] py-[1vw] xl:py-[0.5vw] rounded font-redhatMedium mb-[3vw]"},c?"Adding Guest...":"+ Add"),f.length>0&&r.createElement("div",{className:"overflow-x-auto overflow-y-auto max-h-[40vh] mb-4"},r.createElement("table",{className:"w-full border text-left"},r.createElement("thead",{className:"bg-gray-100"},r.createElement("tr",null,r.createElement("th",{className:"p-2 border"},"Select"),r.createElement("th",{className:"p-2 border"},"Name"),r.createElement("th",{className:"p-2 border"},"Gender"),r.createElement("th",{className:"p-2 border"},"Date of Birth"),r.createElement("th",{className:"p-2 border"},"PassportNo/Govt ID"),r.createElement("th",{className:"p-2 border"},"Edit"))),r.createElement("tbody",null,f.map((e,t)=>r.createElement("tr",{key:e.id,className:"border-b"},r.createElement("td",{className:"p-2 border text-center"},r.createElement("input",{type:"checkbox",checked:m.some(t=>t.Id===e.Id),onChange:()=>(e=>{if(m.some(t=>t.Id===e.Id))s(t=>t.filter(t=>t.Id!==e.Id));else{if(m.length>=parseInt(v))return void alert(`You can select up to ${v} guests only.`);s(t=>[].concat((0,l.A)(t),[e]))}})(e)})),r.createElement("td",{className:"p-2 border"},h===e.Id?r.createElement("input",{value:N.first_name,onChange:e=>_({...N,first_name:e.target.value}),className:"border p-1 w-full"}):`${e.first_name} ${e.last_name}`),r.createElement("td",{className:"p-2 border"},h===e.Id?r.createElement("select",{value:N.gender,onChange:e=>_({...N,gender:e.target.value}),className:"border p-1 w-full"},r.createElement("option",null,"Male"),r.createElement("option",null,"Female"),r.createElement("option",null,"Other")):e.gender),r.createElement("td",{className:"p-2 border"},h===e.Id?r.createElement("input",{type:"text",value:N.dob,onChange:e=>_({...N,dob:e.target.value}),className:"border p-1 w-full"}):e.dob),r.createElement("td",{className:"p-2 border"},h===e.Id?r.createElement("input",{value:N.passportNo,onChange:e=>_({...N,passportNo:e.target.value}),className:"border p-1 w-full"}):e.passportNo),r.createElement("td",{className:"p-2 border text-center"},h===e.Id?r.createElement("button",{onClick:()=>{return t=e.Id,y(e=>e.map(e=>e.Id===t?{...e,...N}:e)),void b(null);var t},className:"text-green-600 font-bold"},"Save"):r.createElement("button",{onClick:()=>(e=>{b(e.Id),_({first_name:e.first_name,last_name:e.last_name,gender:e.gender,dob:e.dob,passportNo:e.passportNo})})(e),className:"text-blue-600 font-bold"},"Edit"))))))),r.createElement("hr",{className:"my-4"}),r.createElement("div",{className:"flex justify-end"},r.createElement("button",{onClick:()=>{0!==m.length?a():alert("Please select at least one guest.")},className:"flex items-center gap-2 bg-primary text-white px-[2.5vw] xl:px-[1.5vw] py-[1vw] xl:py-[0.5vw] rounded font-redhatMedium"},"â Select")))):null}},66379:function(e,t,a){a.d(t,{A:function(){return o}});var l=a(96540),r=a(93318);const n=(0,a(96085).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);var i=a(14173);var o=e=>{let{title:t,countries:a,states:o,formData:d,errors:s,updateFormField:m}=e;const v="bg-white appearance-none leading-normal min-h-[42px] xl:min-h-[2.85vw] pr-10",u={backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23002C5F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")",backgroundRepeat:"no-repeat",backgroundPosition:"right 0.75rem center",backgroundSize:"0.95rem 0.95rem"},{0:c,1:p}=(0,l.useState)({strength:"weak",score:0}),{0:x,1:w}=(0,l.useState)([]),{0:g,1:E}=(0,l.useState)(!1);(0,l.useEffect)(()=>
2{if(d.password){const e=(0,i.NL)(d.password);p(e);const t=(0,i.Cx)(d.password);w(t.errors)}else p({strength:"weak",score:0}),w([])},[d.password]);const f=function(e,t,a){void 0===a&&(a="text");const l=(0,i.o2)(t,a);m(e,l)},y=(0,l.forwardRef)((e,t)=>{let{value:a,onClick:r,placeholder:i}=e;return l.createElement("div",{className:"relative w-full cursor-pointer",onClick:r,ref:t},l.createElement("input",{value:a||"",readOnly:!0,placeholder:i,className:"w-full border border-primary rounded-[0.5vw] p-[1vw] pr-[3vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary"}),l.createElement(n,{className:"absolute right-[1vw] top-1/2 -translate-y-1/2 text-primary w-[4vw] md:w-[2.5vw] xl:w-[1.2vw]"}))});return l.createElement("div",null,l.createElement("form",{className:"w-full max-w-[80vw] mx-auto mt-[2vw]"},l.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-[2vw]"},l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Title*"),l.createElement("select",{onChange:e=>m("title",e.target.value),value:d.title,className:`border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary ${v}`,style:u},l.createElement("option",{value:""},"Select Title"),t&&(null==t?void 0:t.map((e,t)=>l.createElement("option",{key:e.id,value:`${e.id}-${e.name}`},e.name)))),s.title&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.title)),l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"First Name*"),l.createElement("input",{value:d.firstName,onChange:e=>f("firstName",e.target.value,"name"),type:"text",maxLength:50,className:"border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary",placeholder:"Enter first name"}),s.firstName&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.firstName)),l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Last Name*"),l.createElement("input",{value:d.lastName,onChange:e=>f("lastName",e.target.value,"name"),type:"text",maxLength:50,className:"border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary",placeholder:"Enter last name"}),s.lastName&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.lastName))),l.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-[2vw] mt-[2vw]"},l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Gender*"),l.createElement("select",{value:d.gender,onChange:e=>m("gender",e.target.value),className:`border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary ${v}`,style:u},l.createElement("option",{value:""},"Select Gender"),l.createElement("option",{value:"male"},"Male"),l.createElement("option",{value:"female"},"Female"),l.createElement("option",{value:"other"},"Other")),s.gender&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.gender)),l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Date of Birth*"),l.createElement(r.Ay,{selected:d.dateOfBirth?new Date(d.dateOfBirth.split("-").reverse().join("-")):null,onChange:e=>m("dateOfBirth",e?e.toLocaleDateString("en-GB").replaceAll("/","-"):""),dateFormat:"dd-MM-yyyy",showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",maxDate:new Date,placeholderText:"Select DOB",customInput:l.createElement(y,{placeholder:"Select DOB"}),className:"w-[100%] border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary"}),s.dateOfBirth&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.dateOfBirth)),l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Mobile*"),l.createElement("div",{className:"flex items-center border border-gray-400 rounded-[0.5vw] overflow-hidden"},l.createElement("select",{value:d.phone_code,onChange:e=>m("phoneCode",e.target.value),className:`px-[0.5vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1vw] bg-gray-100 border-r border-gray-400 outline-none text-primary ${v}`,defaultValue:"+91",style:u},l.createElement("option",{value:"+91"},"+91 (IN)"),a&&(null==a?void 0:a.map((e,t)=>l.createElement("option",{key:t,value:e.phone_code},e.phone_code)))),l.createElement("input",{value:d.mobile,onChange:e=>m("mobile",e.target.value),type:"tel",className:"flex-1 p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1vw] outline-none text-primary",placeholder:"Enter mobile number"})),s.mobile&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.mobile))),l.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-[2vw] mt-[2vw]"},l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Country*"),l.createElement("select",{value:d.country,onChange:e=>m("country",e.target.value),className:`border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary ${v}`,style:u},l.createElement("option",{value:""},"Select Country"),a&&(null==a?void 0:a.map((e,t)=>l.createElement("option",{key:t,value:e.id},e.name)))),s.country&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.country)),l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"State*"),o&&o.length>0?l.createElement("select",{value:d.state,onChange:e=>m("state",e.target.value),className:`border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary ${v}`,style:u},l.createElement("option",{value:""},"Select State"),o&&(null==o?void 0:o.map((e,t)=>l.createElement("option",{key:t,value:e.id},e.name)))):l.createElement("input",{value:d.state,onChange:e=>m("state",e.target.value),type:"text",placeholder:"Enter State",className:"border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary"}),s.state&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.state)),l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"City*"),l.createElement("input",{value:d.city,onChange:e=>{const t=e.target.value;/^[A-Za-z\s]*$/.test(t)&&m("city",t)},onPaste:e=>{const t=e.clipboardData.getData("text");/^[A-Za-z\s]*$/.test(t)||e.preventDefault()},type:"text",placeholder:"Enter City",className:"border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary"}),s.city&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.city))),l.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-[2vw] mt-[2vw]"},l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Pincode*"),l.createElement("input",{value:d.pincode,onChange:e=>m("pincode",e.target.value),type:"text",maxLength:10,placeholder:"Enter pincode",className:"border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary"}),s.pincode&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.pincode)),l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Email ID*"),l.createElement("input",{value:d.email,onChange:e=>m("email",e.target.value),type:"email",placeholder:"Enter email",className:"border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary"}),s.email&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.email))),l.createElement("div",{className:"flex flex-col mt-[2vw]"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Full Address ",l.createElement("span",{className:"font-redhatRegular text-[2.5vw] md:text-[1.5vw] xl:text-[0.8vw]"},"Allowed (# , / -)")),l.createElement("textarea",{value:d.fullAddress,onChange:e=>m("fullAddress",e.target.value),rows:"3",placeholder:"Enter full address",className:"border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary"}),s.fullAddress&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.fullAddress)),l.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-[2vw] mt-[2vw]"},l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Password*"),l.createElement("input",{value:d.password,onChange:e=>m("password",e.target.value),onFocus:()=>E(!0),type:"password",placeholder:"Enter Password",className:"border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary"}),d.password&&l.createElement("div",{className:"mt-[0.5vw]"},l.createElement("div",{className:"flex items-center justify-between mb-[0.3vw]"},l.createElement("span",{className:"text-[2.5vw] xl:text-[0.8vw] font-redhatRegular text-gray-600"},"Password Strength:"),l.createElement("span",{className:"text-[2.5vw] xl:text-[0.8vw] font-redhatMedium capitalize "+("weak"===c.strength?"text-red-500":"medium"===c.strength?"text-yellow-600":"text-green-600")},c.strength)),l.createElement("div",{className:"w-full bg-gray-200 rounded-full h-[0.5vw]"},l.createElement("div",{className:`h-[0.5vw] rounded-full transition-all duration-300 ${(e=>{switch(e){case"weak":return"bg-red-500";case"medium":return"bg-yellow-500";case"strong":return"bg-green-500";default:return"bg-gray-300"}})(c.strength)}`,style:{width:(h=c.score,h/10*100+"%")}}))),g&&l.createElement("div",{className:"mt-[0.5vw] p-[0.8vw] bg-blue-50 border border-blue-200 rounded-[0.3vw]"},l.createElement("p",{className:"text-[2.5vw] xl:text-[0.85vw] font-redhatMedium text-blue-800 mb-[0.3vw]"},"Password Requirements:"),l.createElement("ul",{className:"text-[2.3vw] xl:text-[0.75vw] text-blue-700 space-y-[0.2vw]"},l.createElement("li",{className:"flex items-start"},l.createElement("span",{className:"mr-[0.3vw]"},"â¢"),l.createElement("span",null,"At least 12 characters long")),l.createElement("li",{className:"flex items-start"},l.createElement("span",{className:"mr-[0.3vw]"},"â¢"),l.createElement("span",null,"One uppercase letter (A-Z)")),l.createElement("li",{className:"flex items-start"},l.createElement("span",{className:"mr-[0.3vw]"},"â¢"),l.createElement("span",null,"One lowercase letter (a-z)")),l.createElement("li",{className:"flex items-start"},l.createElement("span",{className:"mr-[0.3vw]"},"â¢"),l.createElement("span",null,"One number (0-9)")),l.createElement("li",{className:"flex items-start"},l.createElement("span",{className:"mr-[0.3vw]"},"â¢"),l.createElement("span",null,"One special character (!@#$%^&*...)")))),s.password&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.password)),l.createElement("div",{className:"flex flex-col"},l.createElement("label",{className:"font-redhatMedium text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] mb-[0.5vw] text-primary"},"Confirm Password*"),l.createElement("input",{value:d.confirmPassword,onChange:e=>m("confirmPassword",e.target.value),type:"password",placeholder:"Enter Confirm Password",className:"border border-primary rounded-[0.5vw] p-[1vw] text-[3.5vw] md:text-[2.5vw] xl:text-[1.1vw] outline-none text-primary"}),s.confirmPassword&&l.createElement("p",{className:"text-red-500 text-[3.5vw] md:text-[1.5vw] xl:text-[0.9vw] font-redhatRegular"},s.confirmPassword)))));var h}},66442:function(e,t,a){a.a(e,async function(e,l){try{a.r(t);var r=a(96540),n=a(78471),i=(a(8025),a(44973)),o=e([i]);i=(o.then?(await o)():o)[0];const d=e=>{let{pageContext:t}=e;const{breadcrumb:{crumbs:a}}=t;return r.createElement(n.A,{crumbs:a,crumbLabel:"Atithya Booking"},r.createElement(i.A,null))};t.default=d,l()}catch(d){l(d)}})},71949:function(e,t,a){var l=a(96540),r=a(59533),n=a(49098),i=a(79109);t.A=e=>{let{data:t,renderAiSummary:a=!0}=e;const{desktop_bg:o,heading:d,mobile_bg:s}=t||{};return l.createElement(l.Fragment,null,l.createElement("div",{className:"banner-section"},l.createElement("div",{className:"relative lg:h-[29.45vw] h-[80vw]"},l.createElement("div",{className:"img-overlay absolute top-0 left-0 w-full h-full bg-[#030A0C99] z-10"}),l.createElement("div",{className:"xl:block hidden h-full"},l.createElement(r.z,{Image:o,alt:(null==o?void 0:o.alternativeText)||"banner-image",tailwindStyle:"w-full object-cover h-full !static"})),l.createElement("div",{className:"xl:hidden block h-full"},l.createElement(r.z,{Image:s,alt:(null==s?void 0:s.alternativeText)||"banner-image",tailwindStyle:"object-cover h-full !static"})),l.createElement("div",{className:"absolute z-20 md:w-[90%] container top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] text-white text-center"},l.createElement("div",{className:"md:w-[90%] w-[100%] text-center mx-auto relative"},l.createElement("div",{className:"flex justify-center"},l.createElement(n.A,{text:d,textColor:"#FFFFFF"})))))),a?l.createElement(i.A,null):null)}},88296:function(e,t,a){var l=a(55268),r=a(96540);t.A=e=>{let{tabClass:t,activeTab:a}=e;return r.createElement("div",{className:"flex flex-row items-start mt-[2vw] md:mt-0"},r.createElement("div",{className:"flex flex-1 justify-center gap-[4vw] xl:gap-[1vw] mb-[4vw] xl:mb-[2vw]"},[1,2,3,4,5].map(e=>r.createElement("button",{key:e,className:`w-[8vw] md:w-[5vw] xl:w-[3vw] h-[8vw] md:h-[5vw] xl:h-[3vw] rounded-md text-[4vw] md:text-[2vw] xl:text-[1.2vw] ${t(e)}`},e))),a>1&&r.createElement("div",{className:"ml-auto items-center"},r.createElement(l.Link,{to:"/greet-services"},r.createElement("button",{className:"font-redhatMedium px-[2vw] py-[1.2vw] md:py-[0.5vw] rounded-md bg-primary text-white text-[3.5vw] md:text-[2vw] xl:text-[1.2vw]"},"Begin Again"))))}},88833:function(e,t,a){var l=a(96540),r=a(14173);t.A=e=>{let{forms:t,updateFormsData:a,errors:n,title:i,label:o}=e;const d="bg-white appearance-none leading-normal min-h-[42px] xl:min-h-[2.85vw] pr-10",s={backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23002C5F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")",backgroundRepeat:"no-repeat",backgroundPosition:"right 0.75rem center",backgroundSize:"0.95rem 0.95rem"},m=function(e,t,l,n){void 0===n&&(n="text");const i=(0,r.o2)(l,n);a(e,t,i)};return l.createElement("div",null,null==t?void 0:t.map((e,t)=>{var r,v,u,c,p,x,w,g;return l.createElement("div",{key:t,className:"pb-[2vw] mb-[1vw]"},l.createElement("h3",{className:"mt-[0.5vw] rounded-md mb-
2[1vw] p-[0.5vw] shadow-md shadow-primary border-b-[0.2vw] border-primary text-primary text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] font-redhatMedium"},o," ",t+1),l.createElement("div",{className:"grid grid-cols-1 md:grid-cols-12 xl:grid-cols-12 gap-4 mb-4"},l.createElement("div",{className:"col-span-5 md:col-span-2"},l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Title*"),l.createElement("select",{value:e.title,onChange:e=>a(t,"title",e.target.value),className:`w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] ${d}`,style:s},l.createElement("option",{value:""},"Select"),i&&(null==i?void 0:i.map((e,t)=>l.createElement("option",{key:t,value:`${e.id}-${e.name}`},e.name)))),(null===(r=n[t])||void 0===r?void 0:r.title)&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},n[t].title)),l.createElement("div",{className:"col-span-5"},l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"First Name*"),l.createElement("input",{value:e.first_name,onChange:e=>m(t,"first_name",e.target.value,"name"),type:"text",placeholder:"Enter First Name",maxLength:50,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),(null===(v=n[t])||void 0===v?void 0:v.first_name)&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},n[t].first_name)),l.createElement("div",{className:"col-span-5"},l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Last Name*"),l.createElement("input",{value:e.last_name,onChange:e=>m(t,"last_name",e.target.value,"name"),type:"text",placeholder:"Enter Last Name",maxLength:50,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),(null===(u=n[t])||void 0===u?void 0:u.last_name)&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},n[t].last_name))),l.createElement("div",{className:"grid grid-cols-2 gap-4 mb-4"},l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Travel Class*"),l.createElement("select",{value:e.travelClass,onChange:e=>a(t,"travelClass",e.target.value),className:`w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] focus:outline-none focus:ring-0 ${d}`,style:s},l.createElement("option",{value:""},"Select"),l.createElement("option",{value:"First"},"First"),l.createElement("option",{value:"Economy"},"Economy"),l.createElement("option",{value:"Business"},"Business")),(null===(c=n[t])||void 0===c?void 0:c.travelClass)&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},n[t].travelClass)),l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Age*"),l.createElement("input",{value:e.age,onChange:e=>m(t,"age",e.target.value,"numeric"),type:"text",placeholder:"Enter Age",maxLength:3,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),(null===(p=n[t])||void 0===p?void 0:p.age)&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},n[t].age))),l.createElement("div",{className:"grid grid-cols-2 gap-4 mb-4"},l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"Passport/Govt ID*"),l.createElement("input",{value:e.passport,onChange:e=>m(t,"passport",e.target.value,"passport"),type:"text",placeholder:"Enter Passport/Govt ID",maxLength:12,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),(null===(x=n[t])||void 0===x?void 0:x.passport)&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},n[t].passport)),l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"}
2,"Gender*"),l.createElement("select",{value:e.gender,onChange:e=>a(t,"gender",e.target.value),className:`w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] focus:outline-none focus:ring-0 ${d}`,style:s},l.createElement("option",{value:""},"Select"),l.createElement("option",{value:"Male"},"Male"),l.createElement("option",{value:"Female"},"Female"),l.createElement("option",{value:"Other"},"Other")),(null===(w=n[t])||void 0===w?void 0:w.gender)&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},n[t].gender))),l.createElement("div",null,l.createElement("label",{className:"font-redhatMedium text-primary text-[3.5vw] md:text-[2.2vw] xl:text-[1.1vw]"},"PNR No*"),l.createElement("input",{value:e.pnr,onChange:e=>m(t,"pnr",e.target.value,"pnr"),type:"text",placeholder:"Enter PNR No",maxLength:10,className:"w-full border border-primary text-primary rounded-md px-[1.5vw] xl:px-[1vw] py-[1.5vw] xl:py-[0.5vw] mt-[0.5vw] outline-none"}),(null===(g=n[t])||void 0===g?void 0:g.pnr)&&l.createElement("p",{className:"text-red-500 text-[3vw] md:text-[1.5vw] xl:text-[1vw] font-redhatRegular"},n[t].pnr)))}))}},90607:function(e,t,a){a.a(e,async function(e,l){try{var r=a(96540),n=a(7116),i=a(88296),o=a(13511),d=a(26885),s=e([o]);o=(s.then?(await s)():s)[0];const m=e=>{var t,a,l,n,i,o,s;let{data:m,type:v,quantities:u,handleQuantityChange:c,selectedProduct:p,setSelectedProduct:x,addonCart:w,setAddonCart:g,setQuantities:E}=e;const{0:f,1:y}=(0,r.useState)(!1),{0:h,1:b}=(0,r.useState)(!1);return r.createElement("div",{className:"flex flex-col xl:flex-row items-start gap-[2vw] py-[3vw] md:py-[1.5vw] mb-[3vw] md:mb-[1vw] border-b-[0.01vw] border-[#002C62]"},r.createElement("img",{src:`data:image/png;base64,${"service"===v?null==m||null===(t=m.product)||void 0===t?void 0:t.image_1920:null==m?void 0:m.image_1920}`,alt:"service"===v?null==m||null===(a=m.product)||void 0===a?void 0:a.name:null==m?void 0:m.name,className:"w-[35vw] md:w-[20vw] xl:w-[10vw] h-auto rounded-md object-cover border border-gray-300"}),r.createElement("div",{className:"flex-1 font-redhatRegular"},r.createElement("h3",{className:"text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] font-redhatMedium"},"service"===v?null==m||null===(l=m.product)||void 0===l?void 0:l.name:`${null==m?void 0:m.name} (â¹ ${null==m?void 0:m.tax_price} Per Unit)`),r.createElement("p",{className:"text-[3.5vw] md:text-[2vw] xl:text-[1vw] font-redhatRegular text-primary mt-[0.5vw]"},"service"===v?null==m||null===(n=m.product)||void 0===n?void 0:n.categ_id[1]:null==m?void 0:m.categ_id[1]),"service"===v&&r.createElement("p",{className:"text-[3.5vw] md:text-[2vw] xl:text-[1vw] mt-[0.5vw] text-[#002C5F] font-redhatMedium"},`â¹ ${(null==m||null===(i=m.product)||void 0===i?void 0:i.tax_price).toFixed(0,2)} for 1 adult`),"service"===v?r.createElement("div",{className:"flex gap-[1vw] mt-[1vw]"},r.createElement("button",{onClick:()=>y(!0),className:"border border-[#002C5F] text-[#002C5F] px-[2.5vw] md:px-[1.8vw] xl:px-[1.2vw] py-[0.8vw] md:py-[0.5vw] xl:py-[0.4vw] rounded-lg text-[3.5vw] md:text-[2vw] xl:text-[0.9vw] font-redhatMedium hover:bg-[#002C5F] hover:text-white transition"},"Details"),r.createElement("button",{onClick:()=>x(m),className:"px-[2.5vw] md:px-[1.8vw] xl:px-[1.2vw] py-[0.8vw] md:py-[0.5vw] xl:py-[0.4vw] rounded-lg text-[3.5vw] md:text-[2vw] xl:text-[0.9vw] font-redhatMedium "+(p&&p.id===m.id?"bg-[#002C5F] text-white":"border border-[#002C5F] text-[#002C5F] hover:bg-[#002C5F] hover:text-white transition")},null!=p&&p.product&&p.product.id===m.product.id?"Selected":"Select")):r.createElement("div",null,r.createElement("div",{className:"flex items-center gap-[1vw] mt-[1vw] mb-[0.5vw]"},r.createElement("p",{className:"text-[3.5vw] md:text-[2.5vw] xl:text-[1.2vw] font-redhatMedium"},"Quantity"),r.createElement("div",{className:"flex items-center border border-gray-400 rounded-md"},r.createElement("button",{disabled:h,onClick:()=>c(m.id,"decrease"),className:"px-[2vw] xl:px-[1vw] py-[0.5vw] xl:py-[0.2vw]"},"-"),r.createElement("span",{className:"px-[1vw]"},u[null==m?void 0:m.id]||1),r.createElement("button",{disabled:h,onClick:()=>c(m.id,"increase"),className:"px-[2vw] xl:px-[1vw] py-[0.5vw] xl:py-[0.2vw]"},"+"))),r.createElement("div",{className:"flex gap-[2vw] xl:gap-[1vw] mt-[2vw] xl:mt-[1vw]"},r.createElement("button",{onClick:()=>y(!0),className:"border border-[#002C5F] text-[#002C5F] px-[2.5vw] md:px-[1.8vw] xl:px-[1.2vw] py-[0.8vw] md:py-[0.5vw] xl:py-[0.4vw] rounded-lg text-[3.5vw] md:text-[2vw] xl:text-[0.9vw] font-redhatMedium hover:bg-[#002C5F] hover:text-white transition"},"Details"),r.createElement("button",{onClick:()=>(e=>{b(!0),g(t=>{const a=u[e.id]||1,l={id:e.id,name:e.name,list_price:e.list_price,tax_price:e.tax_price,tax_string:e.tax_string,cgst:e.cgst,sgst:e.sgst,quantity:a,total:a*e.tax_price};return{...t,[e.name]:l}})})(m),className:"border border-[#002C5F] px-[2.5vw] md:px-[1.8vw] xl:px-[1.2vw] py-[0.8vw] md:py-[0.5vw] xl:py-[0.4vw] rounded-lg text-[3.5vw] md:text-[2vw] xl:text-[0.9vw] font-redhatMedium bg-[#002C5F] text-white transition"},h?"Added":"Add"),h&&r.createElement("button",{onClick:()=>(e=>{b(!1),g(t=>Object.fromEntries(Object.entries(t).filter(t=>{let[a,l]=t;return l.id!==e.id}))),E(t=>
2({...t,[e.id]:1}))})(m),className:"border border-[#002C5F] px-[2.5vw] md:px-[1.8vw] xl:px-[1.2vw] py-[0.8vw] md:py-[0.5vw] xl:py-[0.4vw] rounded-lg text-[3.5vw] md:text-[2vw] xl:text-[0.9vw] font-redhatMedium bg-[#002C5F] text-white transition"},"Remove")))),f?r.createElement(d.A,{title:(null==m||null===(o=m.product)||void 0===o?void 0:o.name)||(null==m?void 0:m.name),text:(null==m||null===(s=m.product)||void 0===s?void 0:s.description)||(null==m?void 0:m.description),setShowPopup:y}):null)},v=e=>{var t,a,l,d,s,v,u,c,p,x,w,g,E,f,y,h,b;let{data:N,activeTab:_,setActiveTab:S,handleNext:C,tabClass:A}=e;const{0:D,1:M}=(0,r.useState)({}),{0:F,1:I}=(0,r.useState)(),{0:R,1:P}=(0,r.useState)({});let L;"undefined"!=typeof window&&window.sessionStorage&&(L=JSON.parse(sessionStorage.getItem("userBookingDetail")));const k=(e,t)=>{M(a=>{const l=a[e]||1;return"decrease"===t?{...a,[e]:Math.max(l-1,1)}:l>=3?(alert("Maximum quantity allowed is 3"),a):{...a,[e]:l+1}})},T=null==F||null===(t=F.productVariant)||void 0===t?void 0:t.filter(e=>{var t;return"child"===(null==e||null===(t=e.variant)||void 0===t?void 0:t.toLowerCase())}),O=null==F||null===(a=F.productVariant)||void 0===a?void 0:a.filter(e=>{var t;return"adult"===(null==e||null===(t=e.variant)||void 0===t?void 0:t.toLowerCase())}),B=(null==F||null===(l=F.product)||void 0===l?void 0:l.list_price)*parseInt(null===(d=L)||void 0===d?void 0:d.adults),G=(null===(s=L)||void 0===s?void 0:s.child)>0&&Array.isArray(null==F?void 0:F.productVariant)&&(null==T?void 0:T.length)>0?parseFloat(((null==T||null===(v=T[0])||void 0===v?void 0:v.lst_price)*parseInt(L.child)).toFixed(2)):null,$=R&&Object.values(R).reduce((e,t)=>e+t.list_price*t.quantity,0),j=parseFloat(Array.isArray(null==F?void 0:F.productVariant)&&(null==O||null===(u=O[0])||void 0===u?void 0:u.sgst).toFixed(2)*parseInt(null===(c=L)||void 0===c?void 0:c.adults)),K=parseFloat(Array.isArray(null==F?void 0:F.productVariant)&&(null==O||null===(p=O[0])||void 0===p?void 0:p.cgst).toFixed(2)*parseInt(null===(x=L)||void 0===x?void 0:x.adults)),J=parseFloat(Array.isArray(null==F?void 0:F.productVariant)&&(null==T||null===(w=T[0])||void 0===w?void 0:w.cgst).toFixed(2)*parseInt(null===(g=L)||void 0===g?void 0:g.child)),Z=parseFloat(Array.isArray(null==F?void 0:F.productVariant)&&(null==T||null===(E=T[0])||void 0===E?void 0:E.sgst).toFixed(2)*parseInt(null===(f=L)||void 0===f?void 0:f.child)),V=parseFloat(R&&Object.values(R).reduce((e,t)=>e+t.cgst*t.quantity,0).toFixed(2)),U=parseFloat(R&&Object.values(R).reduce((e,t)=>e+t.sgst*t.quantity,0).toFixed(2));return(0,r.useEffect)(()=>{var e;const t=N&&(null===(e=N[0])||void 0===e?void 0:e.addon.reduce((e,t)=>(e[t.id]=1,e),{}));M(t)},[]),r.createElement("div",null,r.createElement(n.A,{totalAmount:Math.round(B+G+$+K+j+V+U+J+Z)}),r.createElement("div",{className:"w-full px-[7vw] mt-[2vw] font-redhatRegular text-[#002C5F]"},r.createElement(i.A,{activeTab:_,setActiveTab:S,tabClass:A})),r.createElement("div",{className:"w-full px-[7vw] mt-[2vw] font-redhatRegular text-[#002C5F]"},r.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-[1fr_auto] gap-[4vw] xl:gap-[2vw]"},r.createElement("div",{className:"order-1 xl:order-1"},r.createElement("div",null,N&&(null==N?void 0:N.map(e=>{var t;return r.createElement(m,{key:null==e||null===(t=e.product)||void 0===t?void 0:t.id,data:e,type:"service",selectedProduct:F,setSelectedProduct:I})}))),r.createElement("div",{className:"mt-[4vw]"},r.createElement("h2",{className:"text-[4vw] md:text-[3vw] xl:text-[1.5vw] font-redhatBold mb-[2vw]"},"Add-Ons"),N&&(null===(y=N[0])||void 0===y?void 0:y.addon.length)>0&&(null===(h=N[0])||void 0===h||null===(b=h.addon)||void 0===b?void 0:b.map(e=>r.createElement(m,{key:e.id,data:e,type:"addon",quantities:D,handleQuantityChange:k,addonCart:R,setAddonCart:P,setQuantities:M}))))),F&&r.createElement("div",{className:"order-3 xl:order-2 xl:justify-self-end"},r.createElement(o.A,{bookingData:L,addonCart:R,data:F,handleNext:C,nextStep:"Login"})))))};t.A=v,l()}catch(m){l(m)}})},96081:function(e,t,a){a.d(t,{u:function(){return l}});const l="undefined"!=typeof window&&"undefined"!=typeof navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.userAgent.includes("Mac")&&"ontouchend"in window)}}]); 3//# sourceMappingURL=component---src-pages-atithya-and-services-js-cedc25ded5230391c27a.js.map
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.