(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[738,480],{6124:function(e,t,n){Promise.resolve().then(n.bind(n,7774)),Promise.resolve().then(n.bind(n,7837)),Promise.resolve().then(n.bind(n,4292)),Promise.resolve().then(n.t.bind(n,1749,23)),Promise.resolve().then(n.t.bind(n,5250,23)),Promise.resolve().then(n.bind(n,5321)),Promise.resolve().then(n.bind(n,5946)),Promise.resolve().then(n.bind(n,3417)),Promise.resolve().then(n.bind(n,7276)),Promise.resolve().then(n.bind(n,7632)),Promise.resolve().then(n.bind(n,8161))},7774:function(e,t,n){"use strict";n.r(t);var r=n(7437),u=n(9617);n(2265),t.default=e=>{let{children:t,popupTitle:n,ctaPopupImage:o,popupButtonTitle:i,className:a,ctaLabel:c,categoryContext:s,dynamicTreatmentFormData:l,doctorId:f,hospitalId:d,id:p,treatmentId:m,defaultDescription:v}=e,{setPopup:b,setCta:h,setCategoryContext:y,setDoctorId:g,setHospitalId:S,setDynamicTreatmentFormData:E,setTreatmentFormId:w}=(0,u.s)();return(0,r.jsx)("button",{id:p,className:a,onClick:e=>{e.preventDefault(),h(c,n,o,i,v),y(s),g(f),S(d),E(null!=l?l:[]),w(m),b()},children:t})}},4255:function(e,t,n){"use strict";n.d(t,{_:function(){return u}});var r=n(4033);let u=async(e,t,n,u,o)=>{var i;let a;switch(u){case"web":default:a="https://karetrip.com/karetrip-data-api/api";break;case"blog":a="https://mykarehealth.com/buzz-api/api";break;case"db":a="https://karetrip.com/karetrip-api"}let c={...t,headers:{"Content-type":"application/json"}},s=await fetch("".concat(a).concat(e),c);s.ok||console.error("<= Failed to fetch data,Error Message:".concat(n," =>"));let l=await s.json();return(null==l?void 0:null===(i=l.data)||void 0===i?void 0:i.length)||o||(0,r.notFound)(),l}},9617:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});let r=(0,n(4660).Ue)()(e=>({faqState:null,setFaqState:t=>e(e=>t===e.faqState?{faqState:null}:{faqState:t}),faqHiddenState:!1,setFaqHiddenState:()=>e(e=>({faqHiddenState:!e.faqHiddenState})),popup:!1,setPopup:()=>e(e=>({popup:!e.popup})),normalPopup:!1,setNormalPopup:()=>e(e=>({normalPopup:!e.normalPopup})),cta:{ctaLabel:"no cta label",ctaPopupTitle:"",ctaPopupImage:"",ctaButtonTitle:"Book Your Consultation",defaultDescription:""},setCta:(t,n,r,u,o)=>e(e=>({...e,cta:{ctaLabel:t,ctaPopupTitle:n,ctaPopupImage:r,ctaButtonTitle:u,defaultDescription:o}})),categoryContext:"TREATMENT",setCategoryContext:t=>e(e=>({categoryContext:t})),doctorId:void 0,setDoctorId:t=>e(e=>({doctorId:t})),hospitalId:void 0,setHospitalId:t=>e(e=>({hospitalId:t})),dynamicTreatmentFormData:[],setDynamicTreatmentFormData:t=>e(e=>({dynamicTreatmentFormData:t})),treatmentFormId:void 0,setTreatmentFormId:t=>e(e=>({...e,treatmentFormId:t})),referralCode:void 0,setReferralCode:t=>e(e=>({...e,referralCode:t})),searchVisibleInMobile:!1,setSearchVisibleInMobile:()=>e(e=>({searchVisibleInMobile:!e.searchVisibleInMobile}))}))},7447:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{unstable_getImgProps:function(){return c},default:function(){return s}});let r=n(1024),u=n(8630),o=n(6184),i=n(1749),a=r._(n(536)),c=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,u.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},s=i.Image},1829:function(e,t){"use strict";t.Z={src:"/_next/static/media/searchIcon.57192367.svg",height:24,width:25,blurWidth:0,blurHeight:0}},622:function(e,t,n){"use strict";var r=n(2265),u=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,o={},s=null,l=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)i.call(t,r)&&!c.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:u,type:e,key:s,ref:l,props:o,_owner:a.current}}t.Fragment=o,t.jsx=s,t.jsxs=s},7437:function(e,t,n){"use strict";e.exports=n(622)},6691:function(e,t,n){e.exports=n(7447)},1396:function(e,t,n){e.exports=n(5250)},4033:function(e,t,n){e.exports=n(5313)},2053:function(e,t,n){"use strict";n.d(t,{y1:function(){return u}});var r=n(2265);function u(e,t,n){var u=this,o=(0,r.useRef)(null),i=(0,r.useRef)(0),a=(0,r.useRef)(null),c=(0,r.useRef)([]),s=(0,r.useRef)(),l=(0,r.useRef)(),f=(0,r.useRef)(e),d=(0,r.useRef)(!0);f.current=e;var p="undefined"!=typeof window,m=!t&&0!==t&&p;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,h="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,g=h?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=c.current,n=s.current;return c.current=s.current=null,i.current=e,l.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(a.current),a.current=m?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!d.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||h&&e-i.current>=g},S=function(t){return a.current=null,b&&c.current?e(t):(c.current=s.current=null,l.current)},E=function e(){var u=Date.now();if(r(u))return S(u);if(d.current){var a=t-(u-o.current);n(e,h?Math.min(a,g-(u-i.current)):a)}},w=function(){if(p||y){var f=Date.now(),m=r(f);if(c.current=[].slice.call(arguments),s.current=u,o.current=f,m){if(!a.current&&d.current)return i.current=o.current,n(E,t),v?e(o.current):l.current;if(h)return n(E,t),e(o.current)}return a.current||n(E,t),l.current}};return w.cancel=function(){a.current&&(m?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,c.current=o.current=s.current=a.current=null},w.isPending=function(){return!!a.current},w.flush=function(){return a.current?S(Date.now()):l.current},w},[v,h,t,g,b,m,p,y])}},1853:function(e,t,n){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(2265),u="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,i=r.useEffect,a=r.useLayoutEffect,c=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!u(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),u=r[0].inst,l=r[1];return a(function(){u.value=n,u.getSnapshot=t,s(u)&&l({inst:u})},[e,n,t]),i(function(){return s(u)&&l({inst:u}),e(function(){s(u)&&l({inst:u})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},8704:function(e,t,n){"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(2265),u=n(6272),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=u.useSyncExternalStore,a=r.useRef,c=r.useEffect,s=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var f=a(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var p=i(e,(f=s(function(){function e(e){if(!c){if(c=!0,i=e,e=r(e),void 0!==u&&d.hasValue){var t=d.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(i=e,a=n)}var i,a,c=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,r,u]))[0],f[1]);return c(function(){d.hasValue=!0,d.value=p},[p]),l(p),p}},6272:function(e,t,n){"use strict";e.exports=n(1853)},5401:function(e,t,n){"use strict";e.exports=n(8704)},4660:function(e,t,n){"use strict";n.d(t,{Ue:function(){return f}});let r=e=>{let t;let n=new Set,r=(e,r)=>{let u="function"==typeof e?e(t):e;if(!Object.is(u,t)){let e=t;t=(null!=r?r:"object"!=typeof u||null===u)?u:Object.assign({},t,u),n.forEach(n=>n(t,e))}},u=()=>t,o={setState:r,getState:u,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,u,o),o},u=e=>e?r(e):r;var o=n(2265),i=n(5401);let{useDebugValue:a}=o,{useSyncExternalStoreWithSelector:c}=i,s=!1,l=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?u(e):e,n=(e,n)=>(function(e,t=e.getState,n){n&&!s&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),s=!0);let r=c(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return a(r),r})(t,e,n);return Object.assign(n,t),n},f=e=>e?l(e):l}},function(e){e.O(0,[647,805,971,938,744],function(){return e(e.s=6124)}),_N_E=e.O()}]);