PageSourceSearch

https://booking.healthtracka.com/_next/static/chunks/4835-213edc50be538104.js

js healthtracka.com collected 2026-09-24 11:52:03 UTC 6,611 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4835],{42480:function(){},8452:function(t,e,n){"use strict";n.d(e,{$9:function(){return w},$X:function(){return T},Bc:function(){return k},IY:function(){return a},LK:function(){return I},M8:function(){return v},VA:function(){return b},bL:function(){return C},bZ:function(){return c},fp:function(){return u},gk:function(){return l},hP:function(){return m},mx:function(){return d},py:function(){return A},sQ:function(){return s}});var r=n(67365),o=n(95956),i=n(49714);let a=(t,e)=>{"string"!=typeof e&&(e=JSON.stringify(e));try{return localStorage.setItem(t,e)}catch(t){(0,r.bZ)("storage error",t)}},u=t=>{try{return localStorage.getItem(t)}catch(t){return null}},c=t=>{localStorage.removeItem(t)},s=()=>localStorage.clear(),l=t=>sessionStorage.removeItem(t),d=()=>{sessionStorage.clear()},h=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;if("undefined"!=typeof document)try{let r="undefined"!=typeof location&&"https:"===location.protocol?"; Secure":"";document.cookie="".concat(t,"=").concat(encodeURIComponent(e),"; Path=/; Max-Age=").concat(86400*n,"; SameSite=Lax").concat(r)}catch(t){(0,r.bZ)("cookie set error",t)}},f=t=>{if("undefined"==typeof document)return null;try{let e=t.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1"),n=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return n?decodeURIComponent(n[1]):null}catch(t){return null}},p=t=>{if("undefined"!=typeof document)try{document.cookie="".concat(t,"=; Path=/; Max-Age=0; SameSite=Lax")}catch(t){(0,r.bZ)("cookie remove error",t)}},g="accessToken",v=t=>{h(g,t),a(g,t)},m=()=>f(g)||u(g),w=()=>{p(g);try{c(g)}catch(t){}},y=()=>{let t=m();if(!t)return!0;try{let{exp:e}=(0,i.o)(t);if(!e)return!0;return 1e3*e<=Date.now()+3e4}catch(t){return!0}},b=()=>!y(),S=!1,N=null,k=t=>{N=t},T=()=>S,x=!1,I=()=>{x=!0,void 0!==globalThis.window&&globalThis.window.setTimeout(()=>{x=!1},2e3)},C=()=>x,A=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Your session has expired. Please log in again.";if(void 0===globalThis.window||S)return;S=!0,w();try{null==N||N()}catch(t){}try{let t=globalThis.localStorage.getItem("persist:root");if(t){let e=JSON.parse(t);e.authReducer=JSON.stringify({accessToken:null,user:null,isLoading:!1,loginLoading:!1,error:null}),e.profileReducer=JSON.stringify({profiles:[],selectedProfile:null,isProfileSelectorOpened:!1,isLoading:!1}),globalThis.localStorage.setItem("persist:root",JSON.stringify(e))}}catch(t){console.error("Failed to parse persisted state",t)}try{globalThis.sessionStorage.clear()}catch(t){}o.toast.error(t);try{globalThis.localStorage.setItem("flash:auth",t),globalThis.sessionStorage.setItem("sessionToastShown","1")}catch(t){}let{pathname:e,search:n}=globalThis.location;if(!e.startsWith("/login")){let t=encodeURIComponent("".concat(e).concat(n));globalThis.window.dispatchEvent(new CustomEvent("session-expired",{detail:{redirectTo:t}}))}}},67365:function(t,e,n){"use strict";n.d(e,{$m:function(){return s},DG:function(){return l},EB:function(){return w},Ec:function(){return y},I0:function(){return u},NC:function(){return b},U6:function(){return p},aF:function(){return f},bZ:function(){return d},dN:function(){return c},hj:function(){return m},j4:function(){return h},k3:function(){return a},vQ:function(){return g},xH:function(){return v}});var r=n(95956),o=n(20920),i=n(49714);n(58110);let a=()=>{window.scrollTo(0,0)},u="₦",c=t=>{if(t||0===t)return t.toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g,",")},s={isFreqAvailable:!1,externalCustomerBooking:!1,cancelOrder:!1,takeQuiz:!1,isCovid:!1,viewCustomerOrder:!0,shareWithDoctor:!1,reOrder:!1,sessionTimeout:!1,inviteFriend:!1,isVercelProduction:!0},l="https://storage.googleapis.com/healthtracka-storage-bucket/",d=function(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n)return},h=t=>{var e;let n=null==t?void 0:null===(e=t.replace(/[^a-zA-Z0-9]/g,"-"))||void 0===e?void 0:e.toLowerCase();return"-"===(null==n?void 0:n.charAt(0))?null==n?void 0:n.substring(1):n},f=t=>{let{string:e="",length:n=30,ending:r="..."}=t;if(e&&n)return n>e.length?e:e.substring(0,n-r.length)+r},p=t=>{if((null==t?void 0:t.code)==="234"){let e=t.rawMobile;for(;(null==e?void 0:e.charAt(0))==="0";)e=e.substring(1);return{...t,rawMobile:e}}return t}
1,g=async(t,e)=>{try{await navigator.clipboard.writeText(t),r.toast.success(e?"".concat(e," copied"):"Text copied!")}catch(t){r.toast.error("Failed to write to clipboard, try again later")}},v=()=>(0,o.Z)(),m=t=>!isNaN(t)&&!isNaN(parseFloat(t)),w=t=>{if(null==t)return NaN;if("number"==typeof t)return t;let e=String(t).trim();if(!e)return NaN;let n=e.match(/-?\d+(?:\.\d+)?/);return n?parseFloat(n[0]):NaN},y=t=>!isNaN(w(t));function b(t){try{let e=(0,i.o)(t);if(!e.exp)return!0;let n=Date.now()/1e3;return e.exp<n}catch(t){return console.error("Invalid token:",t),!0}}},65975:function(t,e,n){"use strict";var r=n(38472),o=n(12491),i=n(8452);class a{isAuthEndpoint(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.toLowerCase();return e.includes("/auth/customer-website-login")||e.includes("/auth/customer-website-create-user-with-new-account")||e.includes("/auth/forget-password")||e.includes("/auth/reset-password")||e.includes("/auth/verify-email-otp")||e.includes("/auth/resend-email-otp")}constructor(){this.post=async t=>{let{url:e,body:n}=t;return(await this.http.post(e,n)).data},this.patch=async t=>{let{url:e,body:n}=t;return(await this.http.patch(e,n)).data},this.get=async t=>{let{url:e,query:n={}}=t,r=o.Z.stringify(n);return(await this.http.get("".concat(e,"?").concat(r))).data},this.delete=async t=>{let{url:e}=t;return(await this.http.delete(e)).data},this.put=async t=>{let{url:e,body:n}=t;return(await this.http.put(e,n)).data},this.http=r.Z.create({baseURL:"https://api-prod.healthtracka.com/api/v1",headers:{"Content-Type":"application/json"}}),this.http.interceptors.request.use(t=>{{let e=(0,i.hP)(),n=t.url||"",r=this.isAuthEndpoint(n);e&&t.headers&&!r&&(t.headers.Authorization="Bearer "+e)}return t},t=>Promise.reject(t)),this.http.interceptors.response.use(t=>t,t=>{var e,n,r,o,a,u;let c=String((null==t?void 0:null===(e=t.config)||void 0===e?void 0:e.url)||""),s=this.isAuthEndpoint(c),l=!!((null==t?void 0:null===(r=t.config)||void 0===r?void 0:null===(n=r.headers)||void 0===n?void 0:n.Authorization)||(null==t?void 0:null===(a=t.config)||void 0===a?void 0:null===(o=a.headers)||void 0===o?void 0:o.authorization));return(null===(u=t.response)||void 0===u?void 0:u.status)===401&&!s&&l&&(0,i.py)(),Promise.reject(t)})}}let u=new a;e.Z=u}}]);

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.