1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6954,3099,5524],{92607:function(e,t,n){"use strict";n.r(t),n.d(t,{GenderInputField:function(){return GenderInputField},HeightDropdown:function(){return HeightDropdown},WeightDropdown:function(){return WeightDropdown}});var a=n(26705),r=n(20955),i=n(24606),l=n(8574),s=n(61396),o=n.n(s),c=n(41313),u=n(15794),d=n.n(u);n(55323);var p=n(80478),h=n(93046),m=n(11490),g=n(98524),x=n(43230),f=n(9385),y=n(24033),v=n(23496),b=n(19076);let w={india:"in",bangladesh:"bd",uae:"ae",oman:"om",kuwait:"kw",qatar:"qa"},j={name:"",phone:"",gender:"",age:"",height:"",weight:"",feet:"",inch:"",height_unit:"cm",weight_unit:"kg"};t.default=e=>{let{country:t,setIsNewData:n}=e,[l,s]=(0,r.useState)(""),[u,N]=(0,r.useState)(""),[k,C]=(0,r.useState)(!1),[B,S]=(0,r.useState)(!1),[_,E]=(0,r.useState)(!1),D=(0,h.v9)(e=>e.profile.name)||"",I=(0,h.v9)(e=>e.profile.phone)||"",P=(0,h.v9)(e=>e.auth.isAuthenticated),F=m.Z.get("authToken"),[A,Z]=(0,r.useState)({...j,name:D||"",phone:I||""});(0,r.useEffect)(()=>{Z({...A,name:D,phone:I})},[D,I,F,P]);let[L,T]=(0,r.useState)(0),[M,U]=(0,r.useState)({categoryName:"",categoryRange:""}),[R,q]=(0,r.useState)(!1),[O,W]=(0,r.useState)(!1),[H,V]=(0,r.useState)(!1),[G,z]=(0,r.useState)(!0),[Y,K]=(0,r.useState)(!0),[Q,X]=(0,r.useState)(!1),$=(0,h.v9)(e=>e.header.x_user_agent),J=(0,y.useSearchParams)(),ee=(0,y.usePathname)(),et=v.fD.find(e=>e===ee.split("/")[1]),handleInputChange=e=>{let{name:t,value:n}=e.target,a=["height","weight","feet","inch","age"],r=/^\d{0,3}(\.\d{0,2})?$/;Z(e=>a.includes(t)?""===n||r.test(n)?{...e,[t]:n}:e:{...e,[t]:n})},handleFormSubmit=async()=>{let e=Number(A.height);if("ft"===A.height_unit){let t=12*Number(A.feet)+Number(A.inch);e=2.54*t}let{feet:t,inch:a,...r}=A,i={...r,phone:"+"===A.phone.charAt(0)?A.phone:"+".concat(A.phone),height:e,height_unit:"ft"===A.height_unit?"cm":A.height_unit,type:"bmr"},l=0===["name","phone","gender","age","height","weight","height_unit","weight_unit"].filter(e=>!i[e]||"string"==typeof i[e]&&""===i[e].toString().trim()).length;if(K(l),l){W(!0);try{q(!0);let e=await (0,c.Ni)(i),t=e.bmi_result;if(T(t),null==e?void 0:e.id){n(e=>!e),Z({...j,name:D||A.name||"",phone:I||A.phone});let e=document.querySelector("#bmi-result-container");if(e){let t=e.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:t-150,behavior:"smooth"})}}}catch(e){console.error("Error submitting form:",e)}finally{W(!1),q(!1)}}},en={none:1.2,light:1.375,moderate:1.55,heavy:1.725,veryHeavy:1.9},getValue=e=>L&&L>0?(L*e).toFixed(2):"â",sendEvent=e=>{if("iosWebView"===$||"androidWebView"===$){let t;e.preventDefault();let n=J.get("store"),a=m.Z.get("store");"iosWebView"===$?t="ios":"androidWebView"===$&&(t="android");let r=(0,x.Z)(et,void 0,t,"app_SA",n||a||void 0);(0,f.t)("redirectToUrl",r)}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"relative wrapper !w-[100%] bg-[#F4EDE4] ",children:[(0,a.jsxs)("div",{className:"w-full lg:w-[1100px] lg:mx-auto flex flex-col lg:flex-row justify-between flex-wrap gap-6 lg:gap-2 p-[1rem] py-[30px] lg:px-0 ",children:[(0,a.jsxs)("div",{className:"w-full lg:flex-1 flex flex-col gap-8 ",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-[#4B4B4B] text-[30px] md:text-[50px] font-semibold ",children:"BMR Calculator"}),(0,a.jsx)("p",{className:"text-[#9B9B9B] text-lg md:text-xl ",children:"Enter the values and click the calculate button to know your Body Fat."})]}),(0,a.jsxs)("div",{id:"bmi-form",className:"max-w-[412px] flex flex-col gap-4",children:[(!F||""===D)&&(0,a.jsx)("div",{className:"w-full flex gap-1 items-center",children:(0,a.jsx)("input",{type:"text",id:"bmr-name",name:"name",onChange:handleInputChange,placeholder:"Enter Name*",min:"0",className:"bg-gray-50 h-[44px] border-[1px] border-[#D3D3D3] w-full px-2.5 py-4 placeholder:text-[#9B9B9B] rounded-lg outline-none ",required:!0})}),(!F||""===I)&&(0,a.jsxs)("div",{children:[(0,a.jsx)(d(),{country:w[t],value:A.phone,countryCodeEditable:!1,enableSearch:!0,disableDropdown:!0,onChange:e=>{e!==A.phone&&Z(t=>({...t,phone:e}))},onBlur:()=>{["india","uae"].includes(t)&&12===A.phone.length?z(!0):["kuwait","oman","qatar"].includes(t)&&11===A.phone.length?z(!0):A.phone.length>11?z(!0):z(!1)},containerClass:"!w-full",inputClass:"!bg-gray-50 !w-full !h-full border-none p-[14px] !rounded-[7px] bg-white flex items-center gap-2 !placeholder:text-[#9B9B9B]",buttonClass:" !rou
1nded-tl-[7px] !rounded-bl-[7px] ",masks:g.G}),!G&&(0,a.jsx)("span",{className:"text-sm text-red-400",children:"please enter a valid phone number!"})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(GenderInputField,{text:"female",Icon:i.c1L,formData:A,setFormData:Z}),(0,a.jsx)(GenderInputField,{text:"male",Icon:i.SxU,formData:A,setFormData:Z})]})}),(0,a.jsx)("div",{children:(0,a.jsx)("input",{type:"text",id:"bmr-age",name:"age",value:A.age,onChange:handleInputChange,placeholder:"Enter Age*",min:"0",className:"bg-gray-50 h-[44px] border-[1px] border-[#D3D3D3] w-full px-2.5 py-4 placeholder:text-[#9B9B9B] rounded-lg outline-none ",required:!0})}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"w-full flex gap-2 items-center",children:["ft"===A.height_unit?(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("input",{type:"text",id:"bmr-height",name:"feet",value:A.feet,onChange:handleInputChange,placeholder:"Enter Feet*",min:"0",className:"bg-gray-50 h-[44px] border-[1px] border-[#D3D3D3] w-full px-2.5 py-4 placeholder:text-[#9B9B9B] rounded-lg outline-none ",required:!0}),(0,a.jsx)("input",{type:"text",id:"bmr-height",name:"inch",value:A.inch,onChange:handleInputChange,placeholder:"Enter Inches",min:"0",className:"bg-gray-50 h-[44px] border-[1px] border-[#D3D3D3] w-full px-2.5 py-4 placeholder:text-[#9B9B9B] rounded-lg outline-none ",required:!0})]}):(0,a.jsx)("input",{type:"text",id:"bmr-height",name:"height",value:A.height,onChange:handleInputChange,placeholder:"Enter Height*",min:"0",className:"bg-gray-50 h-[44px] border-[1px] border-[#D3D3D3] w-full px-2.5 py-4 placeholder:text-[#9B9B9B] rounded-lg outline-none ",required:!0}),(0,a.jsx)(HeightDropdown,{formData:A,handleInputChange:handleInputChange})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"w-full flex gap-2 items-center",children:[(0,a.jsx)("input",{type:"text",id:"bmr-weight",name:"weight",value:A.weight,onChange:handleInputChange,placeholder:"Enter Weight*",min:"0",className:"bg-gray-50 h-[44px] border-[1px] border-[#D3D3D3] w-full px-2.5 py-4 placeholder:text-[#9B9B9B] rounded-lg outline-none ",required:!0}),(0,a.jsx)(WeightDropdown,{formData:A,handleInputChange:handleInputChange})]})}),!Y&&(0,a.jsx)("span",{className:" text-red-500 ",children:"All the fields are required!"}),(0,a.jsx)("button",{id:"bmr-calculate",className:" w-full h-[44px] bg-[#FF8D4C] text-white rounded-lg px-2.5 font-medium outline-none flex items-center justify-center ",onClick:handleFormSubmit,disabled:!!O,children:O?(0,a.jsx)(p.Z,{}):"Calculate BMR"})]})]}),(0,a.jsx)("div",{id:"bmi-result-container",className:" w-full lg:flex-1 flex lg:justify-end ",children:(0,a.jsxs)("div",{className:"w-full self-center bg-[#fff] rounded-3xl p-[1rem] lg:p-[30px] divide-y-[1px] text-[#4B4B4B] ",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold pb-[10px] ",children:"Your Results"}),(0,a.jsxs)("div",{className:"pt-[10px] flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-[#9B9B9B] text-base ",children:"Take the first step to unlocking a new you!"}),(0,a.jsx)("h5",{children:"Your BMR is"}),(0,a.jsx)("div",{className:"md:py-2 md:px-4 text-[#9B9B9B] text-base bg-gray-200 w-100 h-auto ".concat(R?"animate-pulse":""),children:(0,a.jsx)("p",{children:L})}),(0,a.jsx)("h5",{children:"Your TDEE is"}),(0,a.jsx)("div",{className:"overflow-x-auto w-full",children:(0,a.jsxs)("table",{className:"min-w-full border-collapse",children:[(0,a.jsx)("caption",{className:"sr-only",children:"Activity levels and corresponding calories"}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"bg-gray-200",children:[(0,a.jsx)("th",{className:"text-left px-4 py-3 text-sm font-medium text-gray-700",children:"Activity Level"}),(0,a.jsx)("th",{className:"text-left px-4 py-3 text-sm font-medium text-gray-700",children:"Calories"})]})}),(0,a.jsxs)("tbody",{children:[(0,a.jsxs)("tr",{className:"border-t",children:[(0,a.jsx)("td",{className:"px-4 py-3 text-sm text-gray-800",children:"Little to no exercise"}),(0,a.jsx)("td",{className:"px-4 py-3 text-sm text-gray-800 bg-gray-200 w-40 h-2 ".concat(R?"animate-pulse":""),children:getValue(en.none)})]}),(0,a.jsxs)("tr",{className:"border-t bg-white",children:[(0,a.jsx)("td",{className:"px-4 py-3 text-sm text-gray-800",children:"Light exercise (1â3 times per week)"}),(0,a.jsxs)("td",{className:"px-4 py-3 text-sm text-gray-800 bg-gray-200 w-40 h-2 ".concat(R?"animate-pulse":""),children:[" ",getValue(en.light)]})]}),(0,a.jsxs)("tr",{className:"border-t",children:[(0,a.jsx)("td",{className:"px-4 py-3 text-sm text-gray-800",children:"Moderate exercise (3â5 times per week)"}),(0,a.jsx)("td",{className:"px-4 py-3 text-sm text-gray-800 bg-gray-200 w-40 h-2".concat(R?"animate-pulse":""),children:getValue(en.moderate)})]}),(0,a.jsxs)("tr",{className:"border-t bg-white",children:[(0,a.jsx)("td",{className:"px-4 py-3 text-sm text-gray-800",children:"Heavy physical exercise (5â6 times per week)"}),(0,a.jsx)("td",{className:"px-4 py-3 text-sm text-gray-800 bg-gray-200 w-40 h-2 ".concat(R?"animate-pulse":""),children:getValue(en.heavy)})]}),(0,a.jsxs)("tr",{className:"border-t",children:[(0,a.jsx)("td",{className:"px-4 py-3 text-sm text-gray-800",children:"Very heavy physical exercise (6â7 times per week)"}),(0,a.jsx)("td",{className:"px-4 py-3 text-sm text-gray-800 bg-gray-200 w-40 h-2 ".concat(R?"animate-pulse":""),children:getValue(en.veryHeavy
1)})]})]})]})}),(0,a.jsx)("div",{})]})]})})]}),H&&(0,a.jsxs)("div",{className:"fixed inset-0 flex items-center justify-center z-50",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black opacity-50"}),(0,a.jsxs)("div",{className:"relative bg-white rounded-lg p-4 md:p-6 w-[90%] md:max-w-[450px] flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:Q?"Oh Yes!!!":"Ohhh!!!"}),(0,a.jsx)("p",{children:Q?(0,a.jsxs)(a.Fragment,{children:["Seems like your BMI is ",(0,a.jsx)("span",{className:"font-semibold",children:'"PERFECT"'}),". You are in great shape!"]}):(0,a.jsxs)(a.Fragment,{children:["Seems like you fall in the ",(0,a.jsxs)("span",{className:"font-semibold",children:['"',M.categoryName,'"']})," category."]})}),(0,a.jsx)("p",{children:Q?"So, let's get your skin tested for optimal health and beauty.":"Consult our doctor now!"})]}),Q?(0,a.jsx)(o(),{href:(0,x.Z)(et),onClick:e=>sendEvent(e),className:"w-full",children:(0,a.jsx)("button",{className:"w-full px-1 350:px-3 py-3 2md:py-[0.875rem] rounded-[0.4375rem] text-white ",style:{background:"linear-gradient(53deg, #F36F21 0%, #FF8F4E 100%)"},children:"SKIN ANALYSER"})}):(0,a.jsx)(o(),{href:"/book-appointment".concat((0,b._)()),className:"w-full",children:(0,a.jsx)("button",{className:"w-full px-1 350:px-3 py-3 2md:py-[0.875rem] rounded-[0.4375rem] text-white ",style:{background:"linear-gradient(53deg, #F36F21 0%, #FF8F4E 100%)"},children:"Book an Appointment"})})]})]})]})})};let GenderInputField=e=>{let{text:t,formData:n,setFormData:r,Icon:i}=e,handleGender=e=>{r(t=>({...t,gender:e}))};return(0,a.jsxs)("div",{id:"bmi-".concat(t.toLowerCase()),className:" flex-1 cursor-pointer text-[#4B4B4B] font-medium flex justify-center items-center gap-2 bg-gray-50 h-[44px] border-[1px] border-[#D3D3D3] w-full px-2.5 py-4 placeholder:text-[#9B9B9B] rounded-lg outline-none ".concat(n.gender===t?"!border-[#FF8D4C] !text-[#FF8D4C]":"bg-gray-50"," "),onClick:()=>{handleGender(t)},children:[(0,a.jsx)(i,{size:"24px"}),(0,a.jsx)("span",{className:" capitalize ",children:t})]})},WeightDropdown=e=>{let{formData:t,handleInputChange:n}=e;return(0,a.jsxs)("div",{className:"relative w-[86px] h-[44px] flex items-center cursor-pointer ",children:[(0,a.jsxs)("select",{className:"p-2.5 text-[#4B4B4B] bg-gray-50 h-[44px] border-[1px] border-[#D3D3D3] w-full px-2.5 rounded-lg outline-none appearance-none ",name:"weight_unit",onChange:n,value:t.weight_unit,children:[(0,a.jsx)("option",{className:"text-base font-medium p-4 ",value:"kg",children:"kg"}),(0,a.jsx)("option",{className:"p-4",value:"lbs",children:"lbs"})]}),(0,a.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none",children:(0,a.jsx)(l.FQI,{})})]})},HeightDropdown=e=>{let{formData:t,handleInputChange:n}=e;return(0,a.jsxs)("div",{className:"relative w-[86px] h-[44px] flex items-center cursor-pointer ",children:[(0,a.jsxs)("select",{className:"p-2.5 text-[#4B4B4B] bg-gray-50 h-[44px] border-[1px] border-[#D3D3D3] w-full px-2.5 rounded-lg outline-none appearance-none ",name:"height_unit",onChange:n,value:t.height_unit,children:[(0,a.jsx)("option",{className:"text-base font-medium p-4 ",value:"cm",children:"cm"}),(0,a.jsx)("option",{className:"p-4",value:"m",children:"m"}),(0,a.jsx)("option",{className:"p-4",value:"ft",children:"ft"})]}),(0,a.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none",children:(0,a.jsx)(l.FQI,{})})]})}},80478:function(e,t,n){"use strict";n.d(t,{e:function(){return SpinLoader}});var a=n(26705);n(20955);var r=n(13394);t.Z=()=>(0,a.jsx)("div",{className:"w-full flex justify-center ",children:(0,a.jsx)(r.iT,{height:20,width:20,color:"#F36F21",wrapperStyle:{},wrapperClass:"",visible:!0,ariaLabel:"oval-loading",secondaryColor:"#232429",strokeWidth:4,strokeWidthSecondary:2})});let SpinLoader=()=>(0,a.jsx)("div",{className:" flex justify-center m-auto ",children:(0,a.jsx)(r.iT,{height:50,width:50,color:"#F36F21",wrapperStyle:{},wrapperClass:"",visible:!0,ariaLabel:"oval-loading",secondaryColor:"#cecece",strokeWidth:4,strokeWidthSecondary:2})})},98524:function(e,t,n){"use strict";n.d(t,{G:function(){return u}});var a=n(26705),r=n(20955),i=n(33435),l=n(15794),s=n.n(l);n(55323);var o=n(20464),c=n(94995);let u={ae:"..-...-....",om:"....-....",kw:"....-....",qa:"....-...."};t.Z=e=>{let{userPhone:t="",defaultCountryCode:n="in",cookieKey:l="country",placeholder:d="Enter Your Phone Number*",enableSearch:p=!0,onChange:h,onValidityChange:m,containerClass:g="!w-full mb-[12px] text-[16px] text-[#3A3941]",inputClass:x="!w-full !h-full !bg-[#EEEEEE] border-none p-[14px] !rounded-[10px] bg-white flex items-center gap-2 !outline-none",buttonClass:f="!rounded-tl-[10px] p-[14px] !hover:bg-[#
1EEEEEE] !hover:rounded-bl-[10px] !hover:rounded-tl-[10px] !rounded-bl-[10px] ",dropdownClass:y="!rounded-[14px] !bg-[#EEEEEE] w-full",searchClass:v="!bg-[#EEEEEE] outline-none flex items-center !outline-none"}=e,[b,w]=(0,r.useState)(n),[j]=(0,i.fP)([l]),[N,k]=(0,r.useState)(!1),validatePhoneNumber=(e,t)=>{let a=(0,o.yf)(e,(null==t?void 0:t.countryCode)||n);k(a),m&&m(a)};return(0,r.useEffect)(()=>{let e=j[l];if(e){var t;let a=null===(t=(0,c.so)(e))||void 0===t?void 0:t.toLowerCase();w(a||n)}else w(n)},[j,l,n]),(0,a.jsx)("div",{children:(0,a.jsx)(s(),{country:b,value:t,placeholder:d,enableSearch:p,onChange:(e,t,n,a)=>{null==h||h(e,t,n,a),validatePhoneNumber(e,t)},containerClass:g,inputClass:x,buttonClass:f,dropdownClass:y,searchClass:v,countryCodeEditable:!1,masks:u})})}},41313:function(e,t,n){"use strict";n.d(t,{Ni:function(){return createBMILeadApi},Sf:function(){return getUserBMIHistoryApi},qb:function(){return postLeadData}});var a=n(26531);let postLeadData=async e=>{try{let t=await a.Z.post("bookings/booking/create-booking/",{...e});return t}catch(e){return e}},getUserBMIHistoryApi=async()=>{try{let e=await a.Z.get("bmis/bmi/");return e.data}catch(e){return e}},createBMILeadApi=async e=>{try{let t=await a.Z.post("bmis/bmi/",e);return t.data}catch(e){return e}}},83464:function(e,t,n){"use strict";n.d(t,{C1:function(){return i},PX:function(){return o},SV:function(){return s},az:function(){return l}});var a=n(23044),r=n(20955);let i=(0,r.cache)(async()=>{try{let e=await a.Z.post("/guest-carts",{});return e.data}catch(e){return null}}),l=(0,r.cache)(async(e,t)=>{try{let n=await a.Z.post("/guest-carts/".concat(e,"/items"),{cartItem:t});return n.data}catch(e){return null}}),s=(0,r.cache)(async e=>{try{let t=await a.Z.get("/api/guest/".concat(e,"/cart?store_id=").concat(1),{});return t.data}catch(e){if(e.response&&404===e.response.status)return{status:404};return null}}),o=(0,r.cache)(async e=>{try{let t=await a.Z.get("/api/etd/".concat(e),{});return t.data}catch(e){return null}})},26531:function(e,t,n){"use strict";var a=n(5231),r=n(66379),i=n(11490);let l=r.Z.create({baseURL:"".concat("https://vlcc-backend.vlcc.in/apis")});l.interceptors.request.use(e=>{let t=i.Z.get("authToken");t&&e.headers&&(e.headers.Authorization="token ".concat(t));let n=a.h.getState(),r=n.header.x_user_agent,l=i.Z.get("country");return r&&e.headers&&(e.headers={...e.headers,"X-User-Agent":r}),l&&e.headers&&(e.headers={...e.headers,"X-vlcc-country":l}),e.customBaseURL&&(e.baseURL=e.customBaseURL),e},e=>Promise.reject(e)),l.interceptors.response.use(e=>(200===e.status&&401===e.data.status&&i.Z.remove("authToken"),e),e=>Promise.reject(e)),t.Z=l},23044:function(e,t,n){"use strict";var a=n(66379);let r=a.Z.create({baseURL:"".concat("https://vlccbackend.happly.in/","rest/V1")});t.Z=r},9427:function(e,t,n){"use strict";n.d(t,{$u:function(){return h},BF:function(){return s},GO:function(){return u},Kq:function(){return g},Uu:function(){return m},e9:function(){return x},ex:function(){return p},g3:function(){return c},gy:function(){return o},o4:function(){return l}});var a=n(79686),r=n(11490);let i=(0,a.oM)({name:"Authentication",initialState:{token:null,isAuthenticated:!1,isNewCustomer:null,isLoginStepUsed:!1,userType:null,packageExists:!1,featureSwitchData:[]},reducers:{setToken:(e,t)=>{e.token=t.payload,null!==e.token&&r.Z.set("authToken",e.token,{expires:999})},setIsAuthenticated:(e,t)=>{e.isAuthenticated=t.payload},removeToken:e=>{r.Z.remove("authToken"),e.token=null},setIsNewCustomer:(e,t)=>{e.isNewCustomer=t.payload},setLoginStepUsed:(e,t)=>{e.isLoginStepUsed=t.payload},setLogout:e=>{e.isAuthenticated=!1,e.isLoginStepUsed=!1,e.isNewCustomer=null,e.token=null},setUserType:(e,t)=>{e.userType=t.payload},setPackageExists:(e,t)=>{e.packageExists=t.payload},setFeatureSwitchData:(e,t)=>{e.featureSwitchData=t.payload},setTokenForRedux:(e,t)=>{e.token=t.payload},setInitialStateAuthSlice:e=>{}}}),{setToken:l,setIsAuthenticated:s,removeToken:o,setIsNewCustomer:c,setLoginStepUsed:u,setLogout:d,setUserType:p,setPackageExists:h,setFeatureSwitchData:m,setTokenForRedux:g,setInitialStateAuthSlice:x}=i.actions;t.ZP=i.reducer},22954:function(e,t,n){"use strict";n.d(t,{AE:function(){return c},Hs:function(){return u},VO:function(){return o},Yy:function(){return d},gc:function(){return l},om:function(){return i},yn:function(){return s}});var a=n(79686);let r=(0,a.oM)({name:"Book_Appointment",initialState:{name:null,phone:null,email:null,centerId:null,centerAddress:null,centerType:null,serviceSlug:null,serviceName:null,dateTime:null,bookingId:null},reducers:{setBookAppCenter:(e,t)=>{e.centerId=t.payload.centerId,e.centerAddress=t.payload.centerAddress},setBookAppCenterType:(e,t)=>{e.centerType=t.payload},setBookAppService:(e,t)=>{e.serviceSlug=t.payload.serviceSlug,e.serviceName=t.payload.serviceName},setDateTime:(e,t)=>
1{e.dateTime=t.payload},setBookAppDetails:(e,t)=>{e.name=t.payload.name,e.phone="".concat(t.payload.phone),e.email=""!==t.payload.email?t.payload.email:null},setBookAppBookingId:(e,t)=>{e.bookingId=t.payload},setBookAppToNull:e=>{}}}),{setBookAppCenter:i,setBookAppService:l,setDateTime:s,setBookAppDetails:o,setBookAppBookingId:c,setBookAppToNull:u,setBookAppCenterType:d}=r.actions;t.ZP=r.reducer},9612:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var a=n(83464),r=n(79686);let i=(0,r.hg)("cart/fetchCartItems",async(e,t)=>{let{rejectWithValue:n}=t;try{let t=await (0,a.SV)(e);if(t&&t.cart)return t.cart;throw Error("No items in response")}catch(e){return n(e.message)}}),l=(0,r.oM)({name:"cart",initialState:{items:[],count:0,status:"idle",error:null},reducers:{},extraReducers:e=>{e.addCase(i.pending,e=>{e.status="loading"}).addCase(i.fulfilled,(e,t)=>{e.status="succeeded",e.items=t.payload;let n=0;for(let e of t.payload)n+=e.qty;e.count=n}).addCase(i.rejected,(e,t)=>{var n;e.status="failed",e.error=t.payload?String(t.payload):null!==(n=t.error.message)&&void 0!==n?n:null})}});t.Z=l.reducer},6919:function(e,t,n){"use strict";n.d(t,{S2:function(){return i},cQ:function(){return l},hW:function(){return s},vl:function(){return o}});var a=n(79686);let r=(0,a.oM)({name:"Forum_Slice",initialState:{currentPage:1,activeCateogry:"all"},reducers:{decrementCurrentPage:e=>{e.currentPage>1&&e.currentPage--},incrementCurrentPage:e=>{e.currentPage++},setForumInitialPage:e=>{e.currentPage=1,e.activeCateogry="all"},setForumActiveCategory:(e,t)=>{e.activeCateogry=t.payload}}}),{setForumInitialPage:i,decrementCurrentPage:l,incrementCurrentPage:s,setForumActiveCategory:o}=r.actions;t.ZP=r.reducer},59274:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var a=n(79686);let r=(0,a.oM)({name:"Header_slice",initialState:{x_user_agent:null},reducers:{setHeaderUserAgent:(e,t)=>{e.x_user_agent=t.payload}}}),{setHeaderUserAgent:i}=r.actions;t.Z=r.reducer},90562:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var a=n(79686);let r=(0,a.oM)({name:"Notification_Permission",initialState:{showNotificationPermissionModal:!1},reducers:{setShowNotificationPermissionModal:(e,t)=>{e.showNotificationPermissionModal=t.payload}}}),{setShowNotificationPermissionModal:i}=r.actions;t.Z=r.reducer},8260:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var a=n(79686);let r=(0,a.oM)({name:"PackageBook",initialState:{packageBookingId:null},reducers:{setPackageBookingId:(e,t)=>{e.packageBookingId=t.payload}}}),{setPackageBookingId:i}=r.actions;t.Z=r.reducer},44043:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var a=n(79686);let r=(0,a.oM)({name:"PaymentInterface",initialState:{paymentData:null,paymentId:null},reducers:{setPaymentData:(e,t)=>{e.paymentData=t.payload.payment_data,e.paymentId=t.payload.payment_id}}}),{setPaymentData:i}=r.actions;t.Z=r.reducer},4124:function(e,t,n){"use strict";n.d(t,{C$:function(){return d},KA:function(){return s},Tz:function(){return u},UI:function(){return l},fJ:function(){return i}});var a=n(79686);let r=(0,a.oM)({name:"Profile",initialState:{name:null,phone:null,email:null,country:null,country_name:null},reducers:{setProfileName:(e,t)=>{e.name=t.payload},setProfilePhone:(e,t)=>{e.phone=t.payload.includes("+")?t.payload:"+91".concat(t.payload)},setProfileEmail:(e,t)=>{e.email=t.payload},setProfileCountry:(e,t)=>{e.country=t.payload},setProfileCountryName:(e,t)=>{e.country_name=t.payload},setProfileDetails:(e,t)=>{e.name=t.payload.name,e.email=t.payload.email,e.phone=t.payload.phone,e.country=t.payload.country,e.country_name=t.payload.country_name},setInitialStateProfileSlice:e=>{}}}),{setProfileName:i,setProfilePhone:l,setProfileEmail:s,setProfileCountry:o,setProfileCountryName:c,setProfileDetails:u,setInitialStateProfileSlice:d}=r.actions;t.ZP=r.reducer},2861:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var a=n(79686);let r=(0,a.oM)({name:"WellnessProgram",initialState:{isInitalRender:!0},reducers:{setIsInitalRender:(e,t)=>{e.isInitalRender=t.payload}}}),{setIsInitalRender:i}=r.actions;t.Z=r.reducer},5231:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var a=n(79686),r=n(4124),i=n(9427),l=n(22954),s=n(44043),o=n(8260),c=n(90562),u=n(9612),d=n(59274),p=n(6919),h=n(2861);let m=(0,a.xC)({reducer:{profile:r.ZP,auth:i.ZP,bookApp:l.ZP,paymentInterface:s.Z,packageBooking:o.Z,notificationPermission:c.Z,cart:u.Z,header:d.Z,forum:p.ZP,wellnessProgram:h.Z}})},23496:function(e,t,n){"use strict";n.d(t,{fD:function(){return a},o_:function(){return r}}),n(11490),n(94995);let a=["uae","kuwait","oman","qatar"],r=["IN","AE","KW","OM","QA"]},94995:function(e,t,n){"use strict";n.d(t,{pD:function(){return getCountryName},qO:function(){return a},so:function(){return getCountryCode}});let a={IN:"india",AE:"uae",QA:"qatar",OM:"oman",KW:"kuwait",KE:"kenya"};function getCountryName(e){return e in a?a[e]:null}function getCountryCode(e){let t=Object.entries(a),n=t.find(t=>{let[n,a]=t;return a===e.toLowerCase()});return n?n[0]:void 0}},19076:function(e,t,n){"use strict";n.d(t,{_:function(){return generateUTMString},k:function(){return generateFullURL}});let generateUTMString=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"organic",a=generateFullURL(),r=new
1URLSearchParams({page_url:a,utm_medium:n,utm_content:"book_appointment"});return e&&r.set("utm_campaign",e),t&&r.set("utm_source",t),"?".concat(r.toString())},generateFullURL=()=>{let{origin:e,pathname:t}=window.location,n="".concat(e).concat(t);return encodeURIComponent(n)}},43230:function(e,t){"use strict";let n={india:"oIYksC3hqt",kuwait:"kuwaitvlcccom",oman:"omanvlcccom",qatar:"qatarvlcccom",uae:"uaevlcccom"};t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vlcc_services",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"vlcc_services_web",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"web_SA",i=arguments.length>4?arguments[4]:void 0,l=i||n[e||"india"];return"https://skin-analyzer.vlcc.com/analysis/?utm_source=".concat(t,"&utm_medium=").concat(a,"&utm_campaign=").concat(r,"&store=").concat(l)}},9385:function(e,t,n){"use strict";n.d(t,{t:function(){return sendDataFromWebview}});let sendDataFromWebview=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){if(window.Android){let n="string"!=typeof t?JSON.stringify(t):t;window.Android[e]&&window.Android[e](n)}if(window.webkit)try{window.webkit.messageHandlers&&window.webkit.messageHandlers[e]&&window.webkit.messageHandlers[e].postMessage(t)}catch(e){}}}},61396:function(e,t,n){e.exports=n(68326)},24033:function(e,t,n){e.exports=n(50094)},91172:function(e,t,n){"use strict";n.d(t,{w_:function(){return GenIcon}});var a=n(20955),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=a.createContext&&a.createContext(r),__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},__rest=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};function GenIcon(e){return function(t){return a.createElement(IconBase,__assign({attr:__assign({},e.attr)},t),function Tree2Element(e){return e&&e.map(function(e,t){return a.createElement(e.tag,__assign({key:t},e.attr),Tree2Element(e.child))})}(e.child))}}function IconBase(e){var elem=function(t){var n,r=e.attr,i=e.size,l=e.title,s=__rest(e,["attr","size","title"]),o=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),a.createElement("svg",__assign({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,s,{className:n,style:__assign(__assign({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),l&&a.createElement("title",null,l),e.children)};return void 0!==i?a.createElement(i.Consumer,null,function(e){return elem(e)}):elem(r)}}}]);
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.