1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24071,67927,e=>{"use strict";var t=e.i(56420);let r=(0,t.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,r],24071);let s=(0,t.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,s],67927)},36317,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(57688),a=e.i(24071),n=e.i(67927),i=e.i(56420);let l=(0,i.default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]),o=(0,i.default)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),c=(0,i.default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),d=(0,i.default)("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),u=(0,i.default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),h=[{_id:"default-1",type:"video",url:"https://res.cloudinary.com/ddrhe6ojc/video/upload/q_auto:best,vc_h264,so_0/v1777625310/output2_kkrlhv.mp4",publicId:"output2_kkrlhv"}],f="https://res.cloudinary.com/ddrhe6ojc/image/upload/f_auto,q_auto/v1777627548/edited_banner_of_21_size_afwbz7.png",m=[{value:"13+ Years",label:"Clinical Excellence",icon:l},{value:"25,000+",label:"Happy Patients",icon:o},{value:"1 lakh+",label:"Successful Treatments",icon:c},{value:"Treatment",label:"by the Specialist Only",icon:d},{value:"Multiple",label:"Convenient Locations",icon:u}];e.s(["default",0,function({initialHeroItems:e=[]}){let[i,l]=(0,r.useState)(e.length>0?e:[]),[o,c]=(0,r.useState)(0),[d,u]=(0,r.useState)(!1),[p,x]=(0,r.useState)(e.length>0),b=(0,r.useRef)({}),v=(0,r.useRef)(null),g=(0,r.useCallback)(async()=>{if(!(e.length>0))try{let e=await fetch("/api/hero"),t=await e.json();Array.isArray(t)&&t.length>0?l(t):l(h)}catch(e){console.error("Failed to fetch hero items",e),l(h)}finally{x(!0)}},[e]);(0,r.useEffect)(()=>{let t=navigator.connection;if(t){let{effectiveType:e,saveData:r,downlink:s}=t;(r||["slow-2g","2g","3g"].includes(e)||s<1.5)&&u(!0)}0===e.length&&g()},[g,e]);let y=(0,r.useCallback)(()=>{c(e=>(e+1)%i.length)},[i.length]),w=(0,r.useCallback)(()=>{c(e=>(e-1+i.length)%i.length)},[i.length]);return(0,r.useEffect)(()=>{if(!(i.length<=1))return v.current=setTimeout(y,"video"===i[o].type?1e4:5e3),()=>{v.current&&clearTimeout(v.current)}},[o,i,y]),(0,r.useEffect)(()=>{let e=i[o];if(e?.type==="video"&&!d){let t=b.current[e._id];if(t){t.currentTime=0;let e=t.play();void 0!==e&&e.catch(e=>{"AbortError"!==e.name&&console.warn("Video play blocked:",e)})}}i.forEach((e,t)=>{if(t!==o&&"video"===e.type){let t=b.current[e._id];t&&!t.paused&&t.pause()}})},[o,i,d]),(0,t.jsxs)("section",{className:"bg-white pt-8 md:pt-14 pb-0",children:[(0,t.jsxs)("div",{className:"apple-container-narrow text-center mb-10 md:mb-14",children:[(0,t.jsx)("h1",{className:"apple-title-lg mb-4 leading-tight",children:"Experience Advanced Dental Treatments in A Comfortable and Modern Environment."}),(0,t.jsx)("p",{className:"apple-subtitle mb-6 text-[#6e6e73]",children:"Honest | Transparent | Affordable | World Class Treatments"})]}),(0,t.jsx)("div",{className:"w-full max-w-[1400px] mx-auto px-4 md:px-8 mb-10 md:mb-14",children:(0,t.jsxs)("div",{className:"relative aspect-[16/9] md:aspect-[21/9] w-full overflow-hidden bg-black rounded-2xl md:rounded-3xl shadow-xl",children:[p&&i.map((e,r)=>(0,t.jsx)("div",{className:`absolute inset-0 transition-opacity duration-1000 ease-in-out ${r===o?"opacity-100 z-10":"opacity-0 z-0"}`,children:"image"===e.type||"video"===e.type&&d?(0,t.jsx)(s.default,{src:"video"===e.type?f:e.url,alt:"Hero Slide",fill:!0,priority:0===r,sizes:"100vw",className:"object-cover"}):(0,t.jsx)("video",{ref:t=>{b.current[e._id]=t},src:e.url,className:"absolute inset-0 w-full h-full object-cover",muted:!0,loop:!0,playsInl
1ine:!0,preload:"auto"})},e._id)),!p&&(0,t.jsx)(s.default,{src:f,alt:"Hero Loading",fill:!0,priority:!0,className:"object-cover"}),i.length>1&&(0,t.jsx)("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 flex gap-2 z-20",children:i.map((e,r)=>(0,t.jsx)("button",{onClick:()=>c(r),className:`h-1.5 rounded-full transition-all duration-300 ${r===o?"w-8 bg-white":"w-1.5 bg-white/40"}`,"aria-label":`Go to slide ${r+1}`},r))}),i.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),w()},className:"absolute left-4 md:left-8 top-1/2 -translate-y-1/2 z-20 p-2 md:p-3 rounded-full bg-black/20 hover:bg-black/40 text-white backdrop-blur-sm transition-all group","aria-label":"Previous slide",children:(0,t.jsx)(a.ChevronLeft,{className:"w-5 h-5 md:w-6 md:h-6 group-hover:-translate-x-0.5 transition-transform"})}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),y()},className:"absolute right-4 md:right-8 top-1/2 -translate-y-1/2 z-20 p-2 md:p-3 rounded-full bg-black/20 hover:bg-black/40 text-white backdrop-blur-sm transition-all group","aria-label":"Next slide",children:(0,t.jsx)(n.ChevronRight,{className:"w-5 h-5 md:w-6 md:h-6 group-hover:translate-x-0.5 transition-transform"})})]})]})}),(0,t.jsx)("div",{className:"w-full bg-[#006A7F] py-8 md:py-10 shadow-lg mt-10 md:mt-16 mb-12 md:mb-16",children:(0,t.jsx)("div",{className:"max-w-[1200px] mx-auto px-[22px]",children:(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-6 md:gap-4 divide-y-0 md:divide-x divide-white/10",children:m.map((e,r)=>{let s=e.icon;return(0,t.jsxs)("div",{className:`flex flex-col lg:flex-row items-center justify-center text-center lg:text-left gap-3 lg:px-4 ${4===r?"col-span-2 md:col-span-1":""}`,children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full bg-white/10 flex items-center justify-center text-white flex-shrink-0",children:(0,t.jsx)(s,{className:"w-5 h-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-lg md:text-xl font-bold text-white tracking-tight block",children:e.value}),(0,t.jsx)("span",{className:"text-[11px] md:text-xs font-medium text-white/80 block leading-tight mt-0.5",children:e.label})]})]},r)})})})})]})}],36317)},81081,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(30299),s=s,a=e.i(32781),n=e.i(63676),i=e.i(22016);function l(e,t){return e===t}let o=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","#"];e.s(["default",0,function(){var e,c,d,u;let[h,f]=(0,r.useState)(null),[m,p]=(0,r.useState)(""),[x]=(e=(0,r.useRef)(m),c=(0,r.useState)({})[1],d=function(e,t,s,a){var n=this,i=(0,r.useRef)(null),l=(0,r.useRef)(0),o=(0,r.useRef)(0),c=(0,r.useRef)(null),d=(0,r.useRef)([]),u=(0,r.useRef)(),h=(0,r.useRef)(),f=(0,r.useRef)(e),m=(0,r.useRef)(!0),p=(0,r.useRef)(),x=(0,r.useRef)();f.current=e;var b="u">typeof window,v=!t&&0!==t&&b;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var g=!!(s=s||{}).leading,y=!("trailing"in s)||!!s.trailing,w=!!s.flushOnExit&&y,j="maxWait"in s,_="debounceOnServer"in s&&!!s.debounceOnServer,N=j?Math.max(+s.maxWait||0,t):null,S=(0,r.useMemo)(function(){var e=function(e){var t=d.current,r=u.current;return d.current=u.current=null,l.current=e,o.current=o.current||e,h.current=f.current.apply(r,t)},r=function(e,t){v&&cancelAnimationFrame(c.current),c.current=v?requestAnimationFrame(e):setTimeout(e,t)},s=function(e){if(!m.current)return!1;var r=e-i.current;return!i.current||r>=t||r<0||j&&e-l.current>=N},S=function(t){return c.current=null,y&&d.current?e(t):(d.current=u.current=null,h.current)},k=function e(){var a=Date.now();if(g&&o.current===l.current&&R(),s(a))return S(a);if(m.current){var n=t-(a-i.current);r(e,j?Math.min(n,N-(a-l.current)):n)}},R=function(){a&&a({})},C=function(){if(b||_){var a,o=Date.now(),f=s(o);if(d.current=[].slice.call(arguments),u.current=n,i.current=o,w&&!p.current&&(p.current=function(){var e;"hidden"===(null==(e=globalThis.document)?void 0:e.visibilityState)&&x.current.flush()},null==(a=globalThis.document)||null==a.addEventListener||a.addEventListener("visibilitychange",p.current)),f){if(!c.current&&m.current)return l.current=i.current,r(k,t),g?e(i.current):h.current;if(j)return r(k,t),e(i.current)}return c.current||r(k,t),h.current}};return C.cancel=function(){var e=c.current;e&&(v?cancelAnimationFrame(c.current):clearTimeout(c.current)),l.current=0,d.current=i.current=u.current=c.current=null,e&&a&&a({})},C.isPending=function(){return!!c.current},C.flush=function(){return c.current?S(Date.now()):h.current},C},[g,j,t,N,y,w,v,b,_,a]);return x.current=S,(0,r.useEffect)(function(){return m.current=!0,function(){var e;w&&x.current.flush(),p.current&&(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",p.current),p.current=null),m.current=!1}},[w]),S}((0,r.useCallback)(function(t){e.current=t,c({})},[c]),300,void 0,c),l((u=(0,r.useRef)(m)).current,m)||(d(m),u.current=m),[e.current,d]),[b,v]=(0,r.useState)([]),[g,y]=(0,r.useState)([]),[w,j]=(0,r.useState)(!1),[_,N]=(0,r.useState)(!1),[S,k]=(0,r.useState)(1),[R,C]=(0,r.useState)(!1),z=async(e,t,r=!1)=>{j(!0);try{let s=await fetch(`/api/diseases-conditions?letter=${encodeURIComponent(e)}&page=${t}&limit=12`),a=await s.json();s.ok?(r?v(e=>[...e,...a.diseases||[]]):v(a.diseases||[]),C(a.pagination.page<a.pagination.totalPages)):r||v([])}catch(e){console.error("Error fetching by letter:",e)}finally{j(!1)}};return(0,r.useEffect)(()=>{h?z(h,1,!1):v([])},[h]),(0,r.useEffect)(()=>{x.trim()?(async()=>{N(!0);try{let e=await fetch(`/api/search?q=${encodeURIComponent(x)}`),t=await e.json();e.ok?y(t.diseases||[]):y([])}catch(e){console.error("Error fetching search results:",e)}finally{N(!1)}})():y([])},[x]),(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row w-full max-w-7xl mx-auto p-4 md:p-6 lg:p-8 gap-12 lg:gap-20 items-start font-sans justify-center",children:[(0,t.jsxs)("div",{className:"flex-1 w-full max-w-[600px] relative",children:[(0,t.jsx)("h2",{className:"text-[17px] font-bold text-gray-900 mb-4 tracking-tight",children:"Find diseases & conditions by first letter"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2.5 mb-6",children:o.map(e=>(0,t.jsx)("button",{onClick:()=>{h===e?f(null):f(e),v([]),k(1)},className:`flex items-center justify-center w-[46px] h-[46px] rounded-full border transition-all duration-200 ${h===e?"bg-[#006A7F] text-white border-[#006A7F] shadow-sm":"bg-white text-[#006A7F] border-[#b2d3d9] hover:bg-[#f0f7f8] hover:border-[#006A7F]"} text-[15px] font-semibold`,children:e},e))}),h&&(0,t.jsxs)("div",{className:"bg-white rounded-2xl border border-[#d2d2d7] p-4 shadow-xl min-h-[100px] absolute w-full z-40 top-full -mt-2 animate-in fade-in slide-in-from-top-2 duration-200",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3 border-b pb-2",children:[(0,t.jsxs)("h3",{className:"font-semibold text-gray-800",children:['Results for "',h,'"']}
1),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[w&&(0,t.jsx)(a.Loader2,{className:"w-4 h-4 text-[#006A7F] animate-spin"}),(0,t.jsx)("button",{"aria-label":"Close search results",onClick:()=>f(null),className:"text-gray-400 hover:text-gray-600",children:(0,t.jsx)(n.X,{size:18})})]})]}),w||0!==b.length?(0,t.jsxs)("div",{className:"max-h-[400px] overflow-y-auto pr-2 custom-scrollbar",children:[(0,t.jsx)("ul",{className:"space-y-1",children:b.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{href:`/disease/${e.slug}`,className:"block px-3 py-2 rounded-lg text-[#006A7F] hover:bg-[#f5f5f7] transition-colors text-[15px]",children:e.name})},e.slug))}),R&&(0,t.jsx)("div",{className:"mt-4 text-center border-t pt-3",children:(0,t.jsx)("button",{onClick:()=>{if(h&&R&&!w){let e=S+1;k(e),z(h,e,!0)}},disabled:w,className:"text-[14px] text-[#006A7F] font-semibold hover:underline flex items-center justify-center w-full gap-2 py-2",children:w?(0,t.jsx)(a.Loader2,{className:"w-3 h-3 animate-spin"}):"Load more results â"})}),(0,t.jsx)("div",{className:"mt-3 text-center border-t pt-2.5",children:(0,t.jsx)(i.default,{href:"/disease",className:"text-[13px] text-[#006A7F] hover:underline font-medium",children:"View full conditions directory âº"})})]}):(0,t.jsxs)("p",{className:"text-gray-500 text-sm py-4 text-center",children:['No diseases found starting with "',h,'".']})]})]}),(0,t.jsxs)("div",{className:"flex-1 w-full lg:max-w-[500px] relative",children:[(0,t.jsx)("h2",{className:"text-[17px] font-medium text-gray-800 mb-4 tracking-tight",children:"Search diseases & conditions"}),(0,t.jsxs)("div",{className:"relative group mb-4",children:[(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none",children:_?(0,t.jsx)(a.Loader2,{className:"h-5 w-5 text-[#006A7F] animate-spin"}):(0,t.jsx)(s.default,{className:"h-5 w-5 text-gray-600 transition-colors group-focus-within:text-[#006A7F]"})}),(0,t.jsx)("input",{id:"disease-search-input",name:"disease-query","aria-label":"Search diseases and conditions",type:"text",value:m,onChange:e=>{p(e.target.value)},placeholder:"Search",className:"w-full pl-12 pr-5 py-3.5 rounded-full border border-gray-600 bg-white focus:outline-none focus:border-[#006A7F] focus:ring-1 focus:ring-[#006A7F] text-gray-800 placeholder-gray-500 text-[16px] transition-all duration-200 shadow-sm"})]}),m.trim().length>0&&(0,t.jsx)("div",{className:"bg-white rounded-2xl border border-[#d2d2d7] overflow-hidden shadow-md mt-2 absolute w-full lg:max-w-[500px] z-50",children:_||0!==g.length?(0,t.jsx)("ul",{className:"max-h-[300px] overflow-y-auto",children:g.map(e=>(0,t.jsx)("li",{className:"border-b last:border-b-0 border-gray-100",children:(0,t.jsx)(i.default,{href:`/disease/${e.slug}`,className:"block px-4 py-3 text-gray-800 hover:bg-[#f5f5f7] hover:text-[#006A7F] transition-colors text-[15px]",children:e.name})},e.slug))}):(0,t.jsx)("p",{className:"text-gray-500 text-sm py-4 text-center",children:"No matching diseases found."})})]})]})}],81081)},16015,(e,t,r)=>{},98547,(e,t,r)=>{var s=e.i(47167);e.r(16015);var a=e.r(71645),n=a&&"object"==typeof a&&"default"in a?a:{default:a},i=void 0!==s.default&&s.default.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,r=t.name,s=void 0===r?"stylesheet":r,a=t.optimizeForSpeed,n=void 0===a?i:a;c(l(s),"`name` must be a string"),this._name=s,this._deletedRulePlaceholder="#"+s+"-deleted-rule____{}",c("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(i||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(c(l(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return i||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var s=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,s))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var r="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(s){i||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var s=this._tags[e];c(s,"old rule at index `"+e+"` not found"),s.textContent=t}return e},r.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"u">
1typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&c(l(t),"makeStyleTag accepts only strings as second parameter");var s=document.createElement("style");this._nonce&&s.setAttribute("nonce",this._nonce),s.type="text/css",s.setAttribute("data-"+e,""),t&&s.appendChild(document.createTextNode(t));var a=document.head||document.getElementsByTagName("head")[0];return r?a.insertBefore(s,r):a.appendChild(s),s},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),s=e+r;return u[s]||(u[s]="jsx-"+d(e+"-"+r)),u[s]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return u[r]||(u[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[r]}var m=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,s=void 0===r?null:r,a=t.optimizeForSpeed,n=void 0!==a&&a;this._sheet=s||new o({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),s&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),s=r.styleId,a=r.rules;if(s in this._instancesCounts){this._instancesCounts[s]+=1;return}var n=a.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[s]=n,this._instancesCounts[s]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var s=this._fromServer&&this._fromServer[r];s?(s.parentNode.removeChild(s),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],s=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:s}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,s=e.id;if(r){var a=h(s,r);return{styleId:a,rules:Array.isArray(t)?t.map(function(e){return f(a,e)}):[f(a,t)]}}return{styleId:h(s),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=a.createContext(null);function x(){return new m}function b(){return a.useContext(p)}p.displayName="StyleSheetContext";var v=n.default.useInsertionEffect||n.default.useLayoutEffect,g="u">typeof window?x():void 0;function y(e){var t=g||b();return t&&("u"<typeof window?t.add(e):v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}y.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},r.StyleRegistry=function(e){var t=e.registry,r=e.children,s=a.useContext(p),i=a.useState(function(){return s||t||x()})[0];return n.default.createElement(p.Provider,{value:i},r)},r.createStyleRegistry=x,r.style=y,r.useStyleRegistry=b},37902,(e,t,r)=>{t.exports=e.r(98547).style},75929,e=>{"use strict";var t=e.i(43476),r=e.i(37902),s=e.i(71645);let a=(0,e.i(56420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);var n=e.i(26150),i=e.i(23827),l=e.i(24071),o=e.i(67927);let c=({testimonial:e})=>
1{let[r,l]=(0,s.useState)(!1),[o,c]=(0,s.useState)(!0),[d,u]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),m=(0,s.useRef)(null),p=(0,s.useRef)(null),x=(0,s.useRef)(null);(0,s.useEffect)(()=>{p.current=new Audio("https://www.soundjay.com/buttons/sounds/button-37a.mp3"),p.current.volume=.1;let e=new IntersectionObserver(([e])=>{e.isIntersecting&&e.intersectionRatio>.1&&l(!0)},{threshold:[0,.1,1],rootMargin:"100px"});return m.current&&e.observe(m.current),()=>e.disconnect()},[]);let b=`https://img.youtube.com/vi/${e.videoId}/maxresdefault.jpg`;return(0,t.jsx)("div",{ref:m,className:`flex-shrink-0 w-[240px] md:w-[280px] snap-start testimonial-card-wrapper ${d?"z-50":"z-10"}`,onMouseEnter:()=>{window.innerWidth>=768&&(u(!0),p.current&&(p.current.currentTime=0,p.current.play().catch(()=>{})))},onMouseLeave:()=>{u(!1)},children:(0,t.jsxs)("div",{className:"relative h-full w-full will-change-transform",children:[(0,t.jsxs)("div",{className:`apple-card relative overflow-hidden group cursor-pointer h-full testimonial-card ${d?"hovered":"shadow-xl"}`,style:{aspectRatio:"9/16",padding:0},onClick:()=>l(!0),children:[(0,t.jsx)("div",{className:"absolute inset-0 z-0",children:(0,t.jsx)("img",{src:b,alt:e.title||"Patient Testimonial",className:`w-full h-full object-cover transition-all duration-700 ease-in-out ${d?"scale-110":"scale-100"} ${h?"opacity-0":"opacity-100"}`,loading:"lazy",onError:t=>{t.target.src=`https://img.youtube.com/vi/${e.videoId}/hqdefault.jpg`}})}),r?(0,t.jsxs)("div",{className:"relative w-full h-full bg-black z-10",children:[(0,t.jsx)("iframe",{ref:x,src:`https://www.youtube-nocookie.com/embed/${e.videoId}?autoplay=1&mute=1&loop=1&playlist=${e.videoId}&controls=0&modestbranding=1&rel=0&iv_load_policy=3&enablejsapi=1`,title:e.title||"Best dental care Patient Testimonial",className:"w-full h-full border-0 pointer-events-none",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,onLoad:()=>f(!0)}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),x.current&&x.current.contentWindow&&(x.current.contentWindow.postMessage(JSON.stringify({event:"command",func:o?"unMute":"mute",args:[]}),"*"),c(!o))},className:"absolute top-4 right-4 z-20 p-2 bg-black/40 backdrop-blur-md hover:bg-black/60 rounded-full text-white transition-colors cursor-pointer",children:o?(0,t.jsx)(n.VolumeX,{size:16}):(0,t.jsx)(i.Volume2,{size:16})})]}):(0,t.jsx)("div",{className:`absolute inset-0 bg-black/10 transition-colors duration-500 ease-in-out flex items-center justify-center z-10 ${d?"bg-black/20":""}`,children:(0,t.jsx)("div",{className:`w-16 h-16 bg-white/90 rounded-full flex items-center justify-center shadow-xl testimonial-card-play ${d?"hovered":""}`,children:(0,t.jsx)(a,{className:"text-[#006A7F] fill-[#006A7F] ml-1",size:32})})})]}),(0,t.jsx)("div",{className:`absolute top-0 left-1/2 -translate-x-1/2 z-[60] pointer-events-none transition-all duration-500 ease-in-out ${d&&!r?"opacity-100 -translate-y-20 scale-110":"opacity-0 -translate-y-8 scale-90"}`,children:(0,t.jsxs)("div",{className:"bg-[#006A7F] text-white px-8 py-3 rounded-2xl shadow-[0_20px_40px_rgba(0,106,127,0.45)] border border-white/20 backdrop-blur-xl",children:[(0,t.jsx)("p",{className:"font-bold text-sm whitespace-nowrap tracking-wide",children:"Watch Success Story"}),(0,t.jsx)("div",{className:"absolute -bottom-2 left-1/2 -translate-x-1/2 w-4 h-4 bg-[#006A7F] rotate-45 border-r border-b border-white/10"})]})})]})})};
1e.s(["default",0,function(){let[e,a]=(0,s.useState)([]),[n,i]=(0,s.useState)(!0),[d,u]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!0),m=(0,s.useRef)(null),p=e=>{if(m.current){let t=m.current,r=t.querySelector(".testimonial-card-wrapper"),s=(r?r.clientWidth:280)+32,a="left"===e?t.scrollLeft-s:t.scrollLeft+s;t.scrollTo({left:a,behavior:"smooth"})}},x=()=>{if(m.current){let{scrollLeft:e,scrollWidth:t,clientWidth:r}=m.current;u(e>5),f(e+r<t-5)}};return((0,s.useEffect)(()=>{let e=document.createElement("link");e.rel="preconnect",e.href="https://www.youtube-nocookie.com";let t=document.createElement("link");return t.rel="preconnect",t.href="https://www.google.com",document.head.appendChild(e),document.head.appendChild(t),(async()=>{try{let e=await fetch("/api/testimonials");if(e.ok){let t=await e.json();a(t)}}catch(e){console.error("Failed to fetch testimonials:",e)}finally{i(!1)}})(),()=>{document.head.removeChild(e),document.head.removeChild(t)}},[]),(0,s.useEffect)(()=>{let e=m.current;if(e){e.addEventListener("scroll",x);let t=setTimeout(x,100);return()=>{e.removeEventListener("scroll",x),clearTimeout(t)}}},[e]),n||0!==e.length)?(0,t.jsxs)("section",{className:"jsx-f4d26bbcf14aacb7 apple-section !pt-20 !pb-24 overflow-visible",children:[(0,t.jsx)("div",{className:"jsx-f4d26bbcf14aacb7 apple-container",children:(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 apple-heading-group mb-8",children:[(0,t.jsx)("p",{className:"jsx-f4d26bbcf14aacb7 apple-eyebrow",children:"Real Stories."}),(0,t.jsx)("h2",{className:"jsx-f4d26bbcf14aacb7 apple-title-xl",children:"Smiles that speak for themselves."}),(0,t.jsx)("p",{className:"jsx-f4d26bbcf14aacb7 apple-subtitle mt-4",children:"Hear directly from our patients about their journey to a perfect smile."})]})}),(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 relative overflow-visible group/shelf",children:[(0,t.jsx)("button",{onClick:()=>p("left"),disabled:!d,style:{transform:"translateY(-50%)"},"aria-label":"Previous testimonials",className:`jsx-f4d26bbcf14aacb7 absolute left-4 md:left-8 top-1/2 -translate-y-1/2 z-[70] w-12 h-12 rounded-full border border-gray-200 bg-white/80 hover:bg-white active:scale-95 flex items-center justify-center text-[#1d1d1f] hover:text-[#006A7F] shadow-lg hover:shadow-xl transition-all duration-300 backdrop-blur-md hidden md:flex ${!d?"opacity-0 pointer-events-none":"opacity-80 hover:opacity-100"}`,children:(0,t.jsx)(l.ChevronLeft,{size:24})}),(0,t.jsx)("button",{onClick:()=>p("right"),disabled:!h,style:{transform:"translateY(-50%)"},"aria-label":"Next testimonials",className:`jsx-f4d26bbcf14aacb7 absolute right-4 md:right-8 top-1/2 -translate-y-1/2 z-[70] w-12 h-12 rounded-full border border-gray-200 bg-white/80 hover:bg-white active:scale-95 flex items-center justify-center text-[#1d1d1f] hover:text-[#006A7F] shadow-lg hover:shadow-xl transition-all duration-300 backdrop-blur-md hidden md:flex ${!h?"opacity-0 pointer-events-none":"opacity-80 hover:opacity-100"}`,children:(0,t.jsx)(o.ChevronRight,{size:24})}),(0,t.jsxs)("div",{ref:m,style:{WebkitOverflowScrolling:"touch"},className:"jsx-f4d26bbcf14aacb7 flex overflow-x-auto overflow-y-visible gap-8 px-[max(22px,calc((100%-980px)/2))] pt-24 pb-12 scrollbar-hide snap-x snap-mandatory scroll-smooth -mt-16",children:[n?[1,2,3].map(e=>(0,t.jsx)("div",{style:{aspectRatio:"9/16"},className:"jsx-f4d26bbcf14aacb7 flex-shrink-0 w-[320px] apple-card animate-pulse bg-apple-surface"},e)):e.map(e=>(0,t.jsx)(c,{testimonial:e},e._id)),(0,t.jsx)("div",{className:"jsx-f4d26bbcf14aacb7 flex-shrink-0 w-4 md:w-8"})]})]}),(0,t.jsx)("div",{className:"jsx-f4d26bbcf14aacb7 apple-container mt-12 md:mt-16",children:(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 bg-[#f5f5f7] rounded-[24px] p-8 md:p-10 flex flex-col md:flex-row items-center justify-between gap-8 hover:scale-[1.01] transition-transform duration-500 ease-in-out",children:[(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 flex flex-col items-center md:items-start text-center md:text-left gap-3",children:[(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 flex items-center gap-2",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jsx-f4d26bbcf14aacb7 w-5 h-5",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4",className:"jsx-f4d26bbcf14aacb7"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853",className:"jsx-f4d26bbcf14aacb7"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l3.66-2.85z",f
1ill:"#FBBC05",className:"jsx-f4d26bbcf14aacb7"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.85c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335",className:"jsx-f4d26bbcf14aacb7"})]}),(0,t.jsx)("span",{className:"jsx-f4d26bbcf14aacb7 font-semibold text-[13px] text-[#1d1d1f] tracking-wide uppercase opacity-80",children:"Google Maps Rating"})]}),(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 flex flex-col sm:flex-row items-center gap-4 mt-1",children:[(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 flex items-baseline gap-1",children:[(0,t.jsx)("span",{className:"jsx-f4d26bbcf14aacb7 text-4xl md:text-5xl font-bold tracking-tight text-[#1d1d1f]",children:"4.9"}),(0,t.jsx)("span",{className:"jsx-f4d26bbcf14aacb7 text-base text-[#6e6e73] font-medium",children:"/ 5"})]}),(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 flex flex-col items-center sm:items-start gap-1",children:[(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 flex gap-0.5",children:[[1,2,3,4].map(e=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"jsx-f4d26bbcf14aacb7 w-5 h-5 text-[#FBBC05] fill-current",children:(0,t.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",className:"jsx-f4d26bbcf14aacb7"})},e)),(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 relative w-5 h-5",children:[(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"jsx-f4d26bbcf14aacb7 absolute top-0 left-0 w-5 h-5 text-gray-300 fill-current",children:(0,t.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",className:"jsx-f4d26bbcf14aacb7"})}),(0,t.jsx)("div",{className:"jsx-f4d26bbcf14aacb7 absolute top-0 left-0 w-[90%] overflow-hidden",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"jsx-f4d26bbcf14aacb7 w-5 h-5 text-[#FBBC05] fill-current",children:(0,t.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",className:"jsx-f4d26bbcf14aacb7"})})})]})]}),(0,t.jsx)("span",{className:"jsx-f4d26bbcf14aacb7 text-xs text-[#6e6e73] font-medium tracking-tight",children:"Based on 500+ patient reviews"})]})]})]}),(0,t.jsxs)("div",{className:"jsx-f4d26bbcf14aacb7 flex flex-col sm:flex-row items-center gap-6 w-full md:w-auto justify-center",children:[(0,t.jsx)("a",{href:"https://maps.app.goo.gl/JTmZ62QsTwWWFYYK9",target:"_blank",rel:"noopener noreferrer",className:"jsx-f4d26bbcf14aacb7 apple-btn-primary w-full sm:w-auto text-center !text-[15px] !py-3.5 !px-8 hover:shadow-md transition-all duration-300 transform active:scale-95",children:"Read Reviews"}),(0,t.jsxs)("a",{href:"https://maps.app.goo.gl/JTmZ62QsTwWWFYYK9",target:"_blank",rel:"noopener noreferrer",className:"jsx-f4d26bbcf14aacb7 apple-btn-secondary w-full sm:w-auto text-center !text-[15px] font-medium flex items-center justify-center gap-1 group/btn",children:["Write a review",(0,t.jsx)("span",{className:"jsx-f4d26bbcf14aacb7 inline-block transform transition-transform group-hover/btn:translate-x-1 duration-300",children:"âº"})]})]})]})}),(0,t.jsx)(r.default,{id:"f4d26bbcf14aacb7",children:".scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.testimonial-card-wrapper{perspective:2000px;transition:transform .6s cubic-bezier(.16,1,.3,1)}.testimonial-card{transform-style:preserve-3d;transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .6s cubic-bezier(.16,1,.3,1)}.testimonial-card.hovered{transform:translateY(-16px)scale(1.05)rotateX(4deg)rotateY(-2deg);box-shadow:0 30px 60px #006a7f40}.testimonial-card-play{transition:transform .6s cubic-bezier(.16,1,.3,1),background-color .6s cubic-bezier(.16,1,.3,1)}.testimonial-card-play.hovered{transform:scale(1.1)translateZ(20px)}"})]}):null}],75929)},66043,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.s(["default",0,function(){let[e,s]=(0,r.useState)(null);return(0,t.jsx)("section",{className:"apple-section bg-[#f5f5f7]",children:(0,t.jsxs)("div",{className:"apple-container-narrow",children:[(0,t.jsx)("h2",{className:"text-3xl md:text-[40px] lg:text-[48px] font-semibold tracking-tight text-[#1d1d1f] leading-[1.10] text-center mb-12",children:"Frequently Asked Questions"}),(0,t.jsx)("div",{className:"space-y-6",children:[{question:"Who is the best dentist in Amritsar?",answer:"Singh Dental Care is widely recognized as the best dentist in Amritsar, offering super-specialty dental treatments. With over 10 years of experience, 3 state-of-the-art clinics across the city, and a team of more then 12 dedicated specialists, we have successfully treated over 50,000 patients. We specialize in advanced dental implants, clear aligners, and painless root canal therapy, maintaining complete transparency and affordable pricing."},{question:"What makes Singh Dental Care the top dental clinic in Punjab?",answer:"Our commitment to world-class care makes Singh Dental Care the top dental clinic in Punjab. We provide 8 distinct dental specialties under one roof, including pediatric dentistry, orthodontics, periodontics, and oral maxillofacial surgery. According to our internal records, 98% of our patients report a pain-free experience during advanced procedures like root canals and implant surgeries."}].map((r,a)=>{let n=e===a;return(0,t.jsxs)("div",{className:"bg-white p-6 md:p-8 rounded-[32px] shadow-sm cursor-pointer",onClick:()=>{s(e===a?null:a)},children:[(0,t.jsxs)("div",{className:"flex justify-between items-center font-semibold text-xl md:text-2xl text-[#1d1d1f]",children:[(0,t.jsx)("span",{children:r.question}),(0,t.jsx)("span",{className:`transition-transform duration-300 ease-in-out text-[#1d1d1f] shrink-0 ml-4 ${n?"rotate-180":"rotate-0"}`,children:(0,t.jsx)("svg",{className:"w-7 h-7",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M19 9l-7 7-7-7"})})})]}),(0,t.jsx)("div",{className:`grid transition-all duration-300 ease-in-out ${n?"grid-rows-[1fr] opacity-100 mt-4":"grid-rows-[0fr] opacity-0"}`,children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("p",{className:"text-[17px] md:text-[19px] text-[#6e6e73] leading-[1.5]",children:r.answer})})})]},a)})})]})})}])}]);
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.