PageSourceSearch

https://www.gokitetours.com/_next/static/chunks/7401.b8d5ee9bac11932b.js

js gokitetours.com collected 2026-10-02 12:59:07 UTC 9,637 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7401],{57401:(e,t,a)=>{a.r(t),a.d(t,{default:()=>C});var i=a(95155),r=a(12115),n=a(73701),s=a(93184),o=a(24252),l=a(93179),d=a(39746),c=a(53639),p=a(69433),u=a(83277),y=a(24665),m=a(67232),h=a(62478),g=a(87980),x=a(24127),f=a(30740),S=a(86402),I=a(42848);let v=e=>e&&Array.isArray(e)?e.map(e=>{if(e.type)return e;let t=(e.contentType||"").toUpperCase();return"BANNER"===t?{...e,type:"BANNER"}:"VISA"===t||"VISA_SLIDER"===t||"VISA_RULES"===t?"3"===e.subTypeId||3===e.subTypeId||"VISA_RULES"===t?{...e,type:"VISA_RULES"}:{...e,type:"VISA_SLIDER"}:"RTE"===t?{...e,type:"RTE"}:"HTML"===t?{...e,type:"HTML"}:{...e,type:t}}):[],C=({resolved:e,pageData:t})=>{let[a,C]=(0,r.useState)(v(t?.initialSections||[])),[j,w]=(0,r.useState)(!t?.initialSections),[b,N]=(0,r.useState)(null),A=(0,r.useRef)(!1),T=(0,r.useRef)(null),{getPageIdWithFallback:E,getPageSlug:R,loading:V,isAuthenticated:L}=(0,u.S)();(0,r.useEffect)(()=>{let e=R("visaLanding")||R("visa");if(e&&1)try{window.sessionStorage.setItem("currentPageSlug",e.replace(/^\//,""))}catch(e){console.error("Failed to store page slug:",e)}},[R]),(0,r.useEffect)(()=>{if(!t&&!e?.title)return;let a=(0,x.aK)(t?.seoMeta,{title:t?.title||e?.title||"Visa Services - GoKite",description:"Apply for your visa online with GoKite. Expert support for global destinations.",canonical:window.location.pathname,pageName:t?.title||"Visa Services"});(0,g.L)(a)},[t,e?.title]);let k=(0,x.aK)(t?.seoMeta,{title:t?.title||e?.title||"Visa Services - GoKite",description:"Apply for your visa online with GoKite.",pageName:t?.title||"Visa Services"}),_=e=>{if(e)return`https://gkprod.blob.core.windows.net/gokite-prod/cms/${String(e).split("/").map(encodeURIComponent).join("/")}`};return(0,r.useEffect)(()=>{(async()=>{let a=e?.pageId||null;if(T.current!==a&&(A.current=!1,T.current=a,C(v(t?.initialSections||[])),w(!t?.initialSections)),!A.current){if(t?.initialSections&&t.initialSections.length>0){let e=v(t.initialSections);A.current=!0,C(e),w(!1);return}A.current=!0;try{w(!0),N(null);let t=e?.pageId||E("visaLanding");if(!t)throw Error("Missing visa landing pageId");let a=await fetch("/api/cms/pages-sections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageId:t})});if(!a.ok)throw Error("Failed to fetch sections data");let i=(await a.json()).data||[],r=(await Promise.all(i.map(async e=>{let t=(e.contentType||"").toUpperCase();if("BANNER"===t){try{let t=await fetch("/api/cms/section-banners",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageSectionId:e.pageSectionId})});if(t.ok){let a=await t.json();return{...e,type:"BANNER",initialData:Array.isArray(a?.data)?a.data:[]}}}catch(e){console.error("Banner fetch error",e)}return{...e,type:"BANNER",initialData:[]}}if(("VISA"===t||"VISA_RULES"===t)&&("3"===e.subTypeId||3===e.subTypeId||"VISA_RULES"===t)){try{let t=await fetch("/api/cms/sections-visa-cards-rules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageSectionId:e.pageSectionId})});if(t.ok){let a=await t.json();return{...e,type:"VISA_RULES",data:(Array.isArray(a.data)?a.data:[]).map(e=>{let t=e.visaCardCountryId||e.visaCardJson?.countryCode||e.countryCode||"US";return{id:e.sectionVisaCardUniqueId||e.id,country:e.visaCardTitle||"Unknown Country",countryCode:t,title:e.title||e.visaCardJson?.title,description:e.visaCardJson?.description||"",cardImage:e.visaCardJson?.cardImage||"",flagImageUrl:_(e.visaCardJson?.flagImage),uniqueId:e.sectionVisaCardUniqueId}})}}}catch(t){console.error("[DynamicVisaPage] Failed to fetch visa rules data for section",e.pageSectionId,t)}return{...e,type:"VISA_RULES",data:[]}}if("VISA"===t||"VISA_SLIDER"===t){try{let t=await fetch("/api/cms/sections-visa-cards",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageSectionId:e.pageSectionId})});if(t.ok){let a=await t.json();return{...e,type:"VISA_SLIDER",data:(Array.isArray(a?.data)?a.data:[]).map(e=>{let t=e.visaCardJson?.countryCode||e.visaCardCountryId||e.countryCode||"US";return{id:e.visaCardCountryId||e.id,country:e.visaCardTitle||e.country,countryCode:t,price:parseFloat(e.newPrice||e.price||"0"),currency:e.currency||"₹",visaType:e.visaCardJson?.subTitle||"Tourist Visa",visaTime:e.visaCardJson?.visaTime||"",image:e.visaCardJson?.image||"",perAdult:e.visaCardJson?.perAdult||!0,eVisa:e.visaCardJson?.eVisa||!1,flagImageUrl:_(e.visaCardJson?.flagImage),subtitle:e.subtitle||"Get your Visa by 24 hours",priceContent:e.visaCardJson?.priceContent||void 0,slug:(0,h.gm)(e)}})}}}catch(e){console.error("Slider fetch error",e)}return{...e,type:"VISA_SLIDER",data:[]}}if("RTE"===t){try{let t=await fetch("/api/cms/cms-sections-rte",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sectionId:Number(e.pageSectionId)})});if(t.ok){let a=await t.json(),i=a?.rteContent||a?.data?.rteContent||a?.data?.[0]?.rteContent||a?.data?.data?.[0]?.rteContent||"";return{...e,type:"RTE",rteContent:i}}}catch(e){console.error("RTE fetch error",e)}return{...e,type:"RTE",rteContent:""}}if("HTML"===t){try{let t=await fetch("/api/cms/cms-sections-html",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sectionId:Number(e.pageSectionId)})});if(t.ok){let a=await t.json(),i=a?.htmlContent||a?.data?.htmlContent||a?.data?.[0]?.htmlContent||a?.data?.data?.[0]?.htmlContent||"";return{...e,type:"HTML",htmlContent:i}}}catch(e){console.error("HTML fetch error",e)}return{...e,type:"HTML",htmlContent:""}}return{...e,type:t}}))).sort((e,t)=>
1{let a=parseInt(e.displayOrder||"0",10),i=parseInt(t.displayOrder||"0",10);return a-i});C(r)}catch(e){console.error("Error loading data:",e),N(e.message||"Failed to load content"),A.current=!1}finally{w(!1)}}})()},[V,L,e?.pageId]),(0,i.jsxs)("div",{className:"min-h-screen bg-background text-foreground",children:[(0,i.jsx)(f.A,{...k}),(0,i.jsx)(n.A,{}),(0,i.jsxs)("main",{children:[(0,i.jsx)(o.A,{bannerSection:a.find(e=>"BANNER"===e.type)||t?.initialBannerData||null}),j?(0,i.jsx)(y.GU,{}):b?(0,i.jsx)("div",{className:"pt-20",children:(0,i.jsx)(m.A,{title:"Visa Services Unavailable",message:b,onRetry:()=>window.location.reload()})}):(0,i.jsxs)("div",{className:"space-y-0",children:[a.map(t=>{let a=t.type;return"BANNER"===a?null:"VISA_SLIDER"===a?t.data&&t.data.length>0?(0,i.jsx)(l.A,{title:t.title,sectionTitle:t.title,type:"popular",countries:t.data},t.pageSectionId):(0,i.jsx)("section",{className:"w-full px-6 py-6 transition-all duration-500 animate-in fade-in slide-in-from-bottom-2",children:(0,i.jsx)("div",{className:"max-w-[85rem] mx-auto",children:(0,i.jsxs)("div",{className:"relative group overflow-hidden flex flex-col items-center justify-center p-10 border border-gray-100 rounded-3xl bg-gradient-to-b from-gray-50/80 to-white shadow-sm hover:shadow-md transition-all duration-300",children:[(0,i.jsx)("div",{className:"absolute -top-10 -right-10 w-32 h-32 bg-blue-50 rounded-full opacity-0 group-hover:opacity-40 transition-opacity blur-3xl"}),(0,i.jsxs)("div",{className:"flex flex-col items-center text-center relative z-10",children:[(0,i.jsx)("div",{className:"w-16 h-16 mb-4 rounded-2xl bg-white border border-gray-100 flex items-center justify-center shadow-sm group-hover:scale-110 transition-transform duration-500",children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-blue-500",children:[(0,i.jsx)("path",{d:"M12 2v20"}),(0,i.jsx)("path",{d:"m4.93 4.93 14.14 14.14"}),(0,i.jsx)("path",{d:"M2 12h20"}),(0,i.jsx)("path",{d:"m19.07 4.93-14.14 14.14"}),(0,i.jsx)("circle",{cx:"12",cy:"12",r:"10",className:"opacity-20"}),(0,i.jsx)("path",{d:"M15 9h-6v6h6V9z",className:"fill-blue-100"})]})}),(0,i.jsxs)("h3",{className:"text-base font-bold text-gray-800 tracking-tight",children:["No ",t.title," Currently Listed"]}),(0,i.jsxs)("p",{className:"text-xs text-gray-500 mt-2 max-w-[280px] leading-relaxed",children:["We're currently updating our ",(0,i.jsx)("strong",{children:t.title.toLowerCase()})," database with the best offers. Check back soon for exclusive deals!"]}),(0,i.jsx)("div",{className:"mt-6 px-4 py-1.5 bg-blue-50 text-blue-600 text-[10px] font-bold uppercase tracking-wider rounded-full border border-blue-100/50",children:"Coming Soon"})]})]})})},t.pageSectionId):"VISA_RULES"===a?(0,i.jsx)(d.A,{visaRulesData:t.data,sectionTitle:t.title},t.pageSectionId):"RTE"===a?(0,i.jsx)("section",{className:"w-full py-8",children:(0,i.jsx)("div",{className:"max-w-[85rem] mx-auto px-6 lg:px-12 prose prose-blue max-w-none",children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t.rteContent||""}})})},t.pageSectionId):"HTML"===a?(0,i.jsx)("section",{className:"w-full py-8",children:(0,i.jsx)("div",{className:"max-w-[85rem] mx-auto px-6 lg:px-12",children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t.htmlContent||""}})})},t.pageSectionId):"CONTACT"===a?(0,i.jsx)("section",{className:"w-full",children:(0,i.jsx)(I.A,{rootMargin:"600px",minHeight:"500px",children:(0,i.jsx)(S.default,{contentType:e?.contentType||"VISA"})})},t.pageSectionId):null}),0===a.length&&(0,i.jsx)("section",{className:"w-full px-6 py-20",children:(0,i.jsx)("div",{className:"max-w-[85rem] mx-auto text-center bg-gray-50 rounded-2xl p-12",children:(0,i.jsx)("p",{className:"text-gray-500 italic",children:"No visa sections found in CMS for this page."})})})]}),(0,i.jsx)(c.A,{}),(0,i.jsx)(p.A,{})]}),(0,i.jsx)(s.default,{})]})}}}]);

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