PageSourceSearch

https://optikmelawai.com/_next/static/chunks/1353.72d46b2688286358.js

js optikmelawai.com collected 2026-09-24 23:45:10 UTC 42,227 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1353],{34597:function(e,a,t){"use strict";t.d(a,{v:function(){return r},$:function(){return l}});var s=t(78551),n=t(63781);const i="https://strapicms.optikmelawai.com/api",r=(e,a)=>{const t=(0,s.a)({queryKey:["getEduProject",e],queryFn:()=>(async e=>{const a="id"===e.locale?"id-ID":e.locale,t="id-ID"===a?"".concat(e.slug,"-id"):e.slug;return(await(0,n.RE)({method:n.Is.GET,overrideBaseUrl:i,subUrl:"/edu-product-pages/".concat(t,"?populate=deep&locale=").concat(a),useStrapi:!0})).data})(e),enabled:a});return t},l=e=>{const a=(0,s.a)({queryKey:["getHearTestStrapi",e],queryFn:()=>(async e=>(await(0,n.RE)({method:n.Is.GET,overrideBaseUrl:i,subUrl:"/onlin-hearing-test?populate=deep&locale=".concat(e.locale),useStrapi:!0})).data)(e)});return a}},81790:function(e,a,t){"use strict";t.d(a,{Z:function(){return r}});var s=t(85893),n=t(41664),i=t.n(n);function r(){return(0,s.jsxs)(i(),{className:"fixed bottom-[6.3rem] right-10 flex flex-col items-center justify-center w-16 h-16 rounded-full shadow-[0_0_50px_-12px_rgba(0,0,0,0.5)] ring-0 ring-offset-0 bg-white text-[#B51F1E] transition-transform duration-300 ease-in-out hover:scale-105 z-[9999] p-1 ",href:"https://api.whatsapp.com/send?phone=+6281519896286&text=Hello,%20Melawai%20PABD",target:"_blank",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75v-4.5m0 4.5h4.5m-4.5 0 6-6m-3 18c-8.284 0-15-6.716-15-15V4.5A2.25 2.25 0 0 1 4.5 2.25h1.372c.516 0 .966.351 1.091.852l1.106 4.423c.11.44-.054.902-.417 1.173l-1.293.97a1.062 1.062 0 0 0-.38 1.21 12.035 12.035 0 0 0 7.143 7.143c.441.162.928-.004 1.21-.38l.97-1.293a1.125 1.125 0 0 1 1.173-.417l4.423 1.106c.5.125.852.575.852 1.091V19.5a2.25 2.25 0 0 1-2.25 2.25h-2.25Z"})}),(0,s.jsx)("span",{className:"text-[10px] font-bold leading-tight mt-1 text-center break-words w-full",children:"Hearing Aid"})]})}},39375:function(e,a,t){"use strict";var s=t(85893),n=(t(67294),t(41664)),i=t.n(n);a.Z=e=>{let{hsTitle:a,hsDesc:t,hsCtaText:n,hsCtaUrl:r}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex items-end justify-between mt-10 mb-5 md:px-25 sm:px-15",children:(0,s.jsxs)("div",{className:"mb-0",children:[(0,s.jsx)("p",{className:"lg:text-4xl lg:w-auto md:text-4xl md:w-auto sm:text-3xl sm:w-32 font-bold font-epilogue text-black",children:a}),(0,s.jsx)("p",{className:"mb-0 text-base mt-3 sm:w-full",children:t}),r&&(0,s.jsxs)(i(),{href:r,className:"w-auto flex items-center uppercase text-black text-sm font-extrabold font-epilogue mt-4 hover:text-primary",children:[n,(0,s.jsx)("i",{className:"icon-ic-next text-[24px]"})]})]})})})}},31353:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return D}});var s=t(85893),n=t(67294),i=t(11163),r=t(11376),l=t(26413);var o=e=>{let{reset:a,setStepActive:t}=e;const{locale:n}=(0,i.useRouter)(),o=r.R[n];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:"text-xl font-epilogue text-center font-bold text-black lg:w-3/4 sm:w-full mx-auto",children:o.testResult}),(0,s.jsxs)("div",{className:"lg:w-3/4 md:w-full mx-auto mt-12",children:[(0,s.jsx)("div",{className:"flex",children:(0,s.jsxs)("div",{className:"flex flex-col items-center w-full",children:[(0,s.jsx)(l.Z,{src:"/assets/icons/test-failed.svg",alt:"",className:"w-[200px] h-auto"}),(0,s.jsx)("div",{className:"lg:w-1/2 md:w-1/2 sm:w-full mt-8",children:(0,s.jsx)("p",{className:"text-black text-base font-epilogue m-auto text-center",children:o.earPainMessage})})]})}),(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)("button",{onClick:()=>{t(1),a()},type:"button",className:"step-btn mt-10 border bg-primary border-white text-white hover:border-dark_red hover:text-dark_red font-bold py-2 px-4 m-auto uppercase min-w-[250px]",children:o.reTest})})]})]})},d=t(22920),u=t(40572),c=t.n(u);function m(e){let{Title:a,Desc:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:"text-xl font-epilogue text-center font-bold text-black lg:w-3/4 sm:w-full mx-auto",children:a}),(0,s.jsxs)("p",{className:"text-black text-base font-epilogue my-1 text-center lg:w-3/4 sm:w-full mx-auto",children:[t," "]})]})}var p=t(98029),h=t(63781);const x="https://api.optikmelawai.com",b=()=>(0,p.D)({mutationFn:e=>(async e=>(await(0,h.RE)({method:h.Is.POST,overrideBaseUrl:x,subUrl:"/api/v2/otp/request",useStrapi:!1,data:e})).data)(e)}),g=()=>(0,p.D)({mutationFn:e=>(async e=>(await(0,h.RE)({method:h.Is.POST,overrideBaseUrl:x,subUrl:"/api/v2/otp/verify",useStrapi:!1,data:e})).data)(e)});var N=e=>{let{formSubmit:a,setStepActive:t,setFormSubmit:l,hearStrapi:o}=e;var u,p;const{locale:h}
1=(0,i.useRouter)(),[x,N]=c()(1e4,100),f=r.R[h],[A,v]=(0,n.useState)(!0),[k,j]=(0,n.useState)(!1),[w,y]=(0,n.useState)(!1),E=b(),I=g(),T=()=>{const e={mobileNumber:a.mobile_number,purpose:"hearing-test",channel:"whatsapp"};E.mutate(e)};return(0,n.useEffect)(()=>{""==a.name||""==a.age||""==a.mobile_number||""==a.domicile?v(!0):v(!1)},[a]),(0,n.useEffect)(()=>{var e,a;E.isSuccess&&((null===(e=E.data)||void 0===e?void 0:e.status)&&(N.start(3e4),j(!0),y(!0)),(0,d.Am)((null==E||null===(a=E.data)||void 0===a?void 0:a.message)||"",{position:"bottom-right",autoClose:5e3,theme:"dark",closeButton:!1}))},[E.isSuccess]),(0,n.useEffect)(()=>{var e,a;I.isSuccess&&((null===(e=I.data)||void 0===e?void 0:e.status)&&t(2),(0,d.Am)((null==I||null===(a=I.data)||void 0===a?void 0:a.message)||"",{position:"bottom-right",autoClose:5e3,theme:"dark",closeButton:!1}))},[I.isSuccess]),(0,n.useEffect)(()=>{j(x>0)},[x]),(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsx)(m,{Title:null==o||null===(u=o.attributes)||void 0===u?void 0:u.personalDataTitle,Desc:null==o||null===(p=o.attributes)||void 0===p?void 0:p.personalDataDesc}),(0,s.jsxs)("div",{className:"lg:w-3/4 md:w-full mx-auto mt-12",children:[(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsxs)("label",{htmlFor:"name",className:"text-black text-md font-epilogue py-1 font-bold uppercase mb-3",children:[f.fullName,(0,s.jsx)("span",{className:"text-primary text-base",children:"*"})]}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("input",{type:"text",name:"name",id:"name",className:"name-input block w-full border-b-[1px] border-zinc-200 py-1.5 text-gray-900 sm:text-sm sm:leading-6 h-[40px]",placeholder:f.fullName,value:a.name,onChange:e=>l({...a,name:e.target.value})}),(0,s.jsx)("div",{className:"name-status text-priamry text-sm font-epilogue mt-2"})]})]}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsxs)("label",{htmlFor:"email",className:"text-black text-md font-epilogue py-1 font-bold uppercase mb-3",children:[f.age,(0,s.jsx)("span",{className:"text-primary text-base",children:"*"})]}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("input",{type:"number",name:"age",className:"email-input block w-full border-b-[1px] border-zinc-200 py-1.5 text-gray-900 sm:text-sm sm:leading-6 h-[40px]",placeholder:f.age,value:a.age,onChange:e=>l({...a,age:e.target.value})}),(0,s.jsx)("div",{className:"email-status text-priamry text-sm font-epilogue mt-2"})]})]}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsxs)("label",{htmlFor:"text",className:"text-black text-md font-epilogue py-1 font-bold uppercase mb-3",children:[f.phoneNumber," ",(0,s.jsx)("span",{className:"text-primary text-base",children:"*"})]}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("input",{type:"number",name:"phoneNumber",id:"phoneNumber",className:"object-input block w-full border-b-[1px] border-zinc-200 py-1.5 text-gray-900 sm:text-sm sm:leading-6 h-[40px]",placeholder:f.phoneNumber,value:a.mobile_number,onChange:e=>l({...a,mobile_number:e.target.value})}),(0,s.jsx)("div",{className:"object-status text-priamry text-sm font-epilogue mt-2"})]})]}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsxs)("label",{htmlFor:"text",className:"text-black text-md font-epilogue py-1 font-bold uppercase mb-3",children:[f.domicile," ",(0,s.jsx)("span",{className:"text-primary text-base",children:"*"})]}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("input",{type:"text",name:"domicile",id:"domicile",className:"object-input block w-full border-b-[1px] border-zinc-200 py-1.5 text-gray-900 sm:text-sm sm:leading-6 h-[40px]",placeholder:f.domicile,value:a.domicile,onChange:e=>l({...a,domicile:e.target.value})}),(0,s.jsx)("div",{className:"object-status text-priamry text-sm font-epilogue mt-2"})]})]}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsxs)("label",{htmlFor:"text",className:"text-black text-md font-epilogue py-1 font-bold uppercase mb-3",children:[f.earHurt," ",(0,s.jsx)("span",{className:"text-primary text-base",children:"*"})]}),(0,s.jsxs)("div",{className:"flex items-center mt-2",children:[(0,s.jsx)("input",{id:"earhurt-1",type:"radio",name:"earhurt",value:"false",className:"w-4 h-4 text-black bg-gray-100 border-gray-300 focus:ring-black focus:ring-1",autoComplete:"",checked:1==a.ear_pain,onChange:()=>{l({...a,ear_pain:!0})}}),(0,s.jsxs)("label",{htmlFor:"earhurt-1",className:"mb-0 ml-2 mt-1 font-epilogue text-md text-black leading-none uppercase",children:[f.yes," "]})]}),(0,s.jsxs)("div",{className:"flex items-center mt-2",children:[(0,s.jsx)("input",{id:"earhurt-2",type:"radio",name:"earhurt",value:"false",className:"w-4 h-4 text-black bg-gray-100 border-gray-300 focus:ring-black focus:ring-1",autoComplete:"",checked:0==a.ear_pain,onChange:()=>{l({...a,ear_pain:!1})}}),(0,s.jsxs)("label",{htmlFor:"earhurt-2",className:"mb-0 ml-2 mt-1 font-epilogue text-md text-black leading-none uppercase",children:[f.no," "]})]})]}),w&&(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsxs)("label",{htmlFor:"text",className:"text-black text-md font-epilogue py-1 font-bold uppercase mb-3",children:[f.otpLabel," ",(0,s.jsx)("span",{className:"text-primary text-base",children:"*"})]}),(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("input",{type:"text",name:"otp",id:"otp",maxLength:6,inputMode:"numeric",pattern:"[0-9]*",className:" object-input block w-full border-b-[1px] border-zinc-200 py-1.5 text-gray-900 sm:text-sm sm:leading-6 h-[40px] ",placeholder:f.otpLabel,value:a.otp,onChange:e=>{const t=e.target.value.replace(/\D/g,"");l({...a,otp:t})}}),(0,s.jsx)("div",{className:"object-status text-priamry text-sm font-epilogue mt-2"})]}),(0,s.jsxs)("div",{className:"text-black text-sm font-regular font-epilogue my-3 flex justify-between",children:[(0,s.jsxs)("p",{children:[f.dontReceiveCode,"  "," ",(0,s.jsxs)("button",{type:"button",disabled:x>0,onClick:T,children:[(0,s.jsxs)("span",{className:x>0?"font-light cursor-not-allowed":"font-bold",children:[f.resend," "]})," "]})]}),x>0&&(0,s.jsx)("p",{children:(e=>{const a=Math.floor(e/6e4),t=(e%6e4/1e3).toFixed(0);return a+":"+(parseInt(t)<10?"0":"")+t})(x)})]})]}),(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)("button",{disabled:A,onClick:()=>{(null==a?void 0:a.ear_pain)?t(2):w?(()=>{const e={mobileNumber:a.mobile_number,otp:a.otp,channel:"whatsapp"};I.mutate(e)}
1)():T()},type:"button",className:"".concat(A?"bg-gray":"bg-primary"," step-btn mt-10 border border-white text-white hover:border-dark_red hover:text-dark_red font-bold py-2 px-4 m-auto uppercase min-w-[250px]"),children:f.submit})})]})]})};var f=e=>{let{formSubmit:a,setStepActive:t,setFormSubmit:n,hearStrapi:l}=e;var o,d,u,c;const{locale:p}=(0,i.useRouter)(),h=r.R[p];return(0,s.jsx)(s.Fragment,{children:l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m,{Title:null==l||null===(o=l.attributes)||void 0===o?void 0:o.quickCheckTitle,Desc:null==l||null===(d=l.attributes)||void 0===d?void 0:d.quickCheckDesc}),(0,s.jsxs)("div",{className:"lg:w-3/4 md:w-full mx-auto mt-12",children:[null==l||null===(c=l.attributes)||void 0===c||null===(u=c.quickQuestion)||void 0===u?void 0:u.map(e=>{var t;return(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("label",{htmlFor:"question-".concat(e.id),className:"text-black text-md font-epilogue py-1 font-bold uppercase mb-3",children:e.question}),null===(t=e.Choices)||void 0===t?void 0:t.map(t=>(0,s.jsxs)("div",{className:"flex items-center mt-2",children:[(0,s.jsx)("input",{id:"choice-".concat(t.id),type:"radio",value:t.lText,name:"question-".concat(e.id),className:"w-4 h-4 text-black bg-gray-100 border-gray-300 focus:ring-black focus:ring-1",checked:-1!==a.questionnaires.findIndex(a=>a.question==e.question)&&a.questionnaires[a.questionnaires.findIndex(a=>a.question==e.question)].answer===t.lText,onChange:t=>{let s=(e=>{let t=a.questionnaires.findIndex(a=>a.question==e);return-1==t?{index:-1,value:""}:{index:t,value:(null===(s=a.questionnaires)||void 0===s?void 0:s[t].answer)||""};var s})(e.question);var i,r;-1===s.index?n({...a,questionnaires:[...a.questionnaires,{question:e.question,answer:t.target.value}]}):n({...a,questionnaires:[...null===(i=a.questionnaires)||void 0===i?void 0:i.slice(0,s.index),{...a.questionnaires[s.index],answer:t.target.value},...null===(r=a.questionnaires)||void 0===r?void 0:r.slice(s.index+1)]})}}),(0,s.jsx)("label",{htmlFor:"choice-".concat(t.id),className:"mb-0 ml-2 mt-1 font-epilogue text-md text-black leading-none uppercase",children:t.lText})]},t.id))]},e.id)}),(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)("button",{onClick:()=>{t(3)},type:"button",className:"step-btn mt-10 border bg-primary border-white text-white hover:border-dark_red hover:text-dark_red font-bold py-2 px-4 m-auto uppercase min-w-[250px]",children:h.submit})})]})]})})};var A=e=>{let{setStepActive:a,hearStrapi:t}=e;var o,d,u,c;const{locale:p}=(0,i.useRouter)(),h=r.R[p],[x,b]=(0,n.useState)(!1),g=(0,n.useRef)();return(0,s.jsx)(s.Fragment,{children:t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m,{Title:null==t||null===(o=t.attributes)||void 0===o?void 0:o.calibrationTitle,Desc:null==t||null===(d=t.attributes)||void 0===d?void 0:d.calibrationDesc}),(0,s.jsxs)("div",{className:"lg:w-3/4 md:w-full mx-auto mt-12",children:[(0,s.jsx)("div",{className:"mb-5",children:(0,s.jsx)("ul",{className:"list-decimal pl-5",children:null==t||null===(c=t.attributes)||void 0===c||null===(u=c.calibrationGuide)||void 0===u?void 0:u.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)("p",{className:"mb-0 text-black text-base font-epilogue uppercase",children:null==e?void 0:e.lText})},e.id))})}),(0,s.jsx)("div",{className:"mb-0",children:(0,s.jsxs)("div",{className:"h-[200px] flex items-center justify-center",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>{var e,a;0==x?g.current&&(b(!0),null===(e=g.current)||void 0===e||e.play()):g.current&&(b(!1),null===(a=g.current)||void 0===a||a.pause())},children:[x&&(0,s.jsx)(l.Z,{src:"/assets/icons/carbon_pause-fille.svg"}),!x&&(0,s.jsx)(l.Z,{src:"/assets/icons/ic-play-filled.svg"})]}),(0,s.jsx)("audio",{ref:g,src:"/assets/sound/click.mp3",loop:!0})]})}),(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)("button",{onClick:()=>{var e;a(4),b(!1),null===(e=g.current)||void 0===e||e.pause()},type:"button",className:"step-btn mt-10 border bg-primary border-white text-white hover:border-dark_red hover:text-dark_red font-bold py-2 px-4 m-auto uppercase min-w-[250px]",children:h.continue})})]})]})})};var v=e=>{let{stepActive:a,setStepActive:t,setLeftPoint:o,setRightPoint:d,onClickSubmit:u,hearStrapi:c}=e;var p,h;const{locale:x}
1=(0,i.useRouter)(),b=r.R[x],g=(0,n.useRef)(),[N,f]=(0,n.useState)(0),[A,v]=(0,n.useState)(0),[k,j]=(0,n.useState)(0);return(0,n.useEffect)(()=>{var e,t;4==a?(f(0),v(0),g.current&&(g.current.volume=0,null===(e=g.current)||void 0===e||e.play())):(v(0),null===(t=g.current)||void 0===t||t.pause())},[a]),(0,n.useEffect)(()=>{var e;4==a?k<=100?g.current&&(g.current.volume=0!=k?k/100:0):(A<=6?o(100):d(100),f(0),v(A+1),j(0)):(v(0),null===(e=g.current)||void 0===e||e.pause())},[k]),(0,n.useEffect)(()=>{var e,t;4==a?A<=13&&g.current&&(g.current.volume=k/100,null===(e=g.current)||void 0===e||e.play()):(v(0),null===(t=g.current)||void 0===t||t.pause())},[A]),(0,s.jsxs)(s.Fragment,{children:[c&&(0,s.jsx)(m,{Title:null==c||null===(p=c.attributes)||void 0===p?void 0:p.measurementTitle,Desc:null==c||null===(h=c.attributes)||void 0===h?void 0:h.measurementDesc}),(0,s.jsxs)("div",{className:"lg:w-3/4 md:w-full mx-auto mt-12",children:[(0,s.jsxs)("div",{className:"mb-5 grid grid-cols-3 items-center",children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("p",{className:"mb-0 text-black text-base font-epilogue uppercase",children:b.left}),(0,s.jsx)("div",{className:"lg:w-3/4 md:w-full m-auto bg-white h-[15px] border border-primary",children:(0,s.jsx)("div",{className:"bg-primary h-full",style:{width:"".concat(A<=6?0==A?0:A/7*100:"100","%")}})})]}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("button",{children:(0,s.jsx)(l.Z,{src:"/assets/icons/ic-headphone-fill.svg"})}),(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsxs)("span",{className:"text-black font-bold font-epilogue text-base border-b border-black",children:[k," dB"]})})]}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("p",{className:"mb-0 text-black text-base font-epilogue uppercase",children:b.right}),(0,s.jsxs)("div",{className:"lg:w-3/4 md:w-full m-auto bg-white h-[15px] border border-primary",children:[A<=13&&(0,s.jsx)("div",{className:"bg-primary h-full",style:{width:"".concat(A>=7?7==A?0:(A-7)/7*100:"0","%")}}),A>13&&(0,s.jsx)("div",{className:"bg-primary h-full",style:{width:"100%"}})]})]})]}),(0,s.jsxs)("div",{className:"text-center mt-10",children:[(0,s.jsx)("div",{className:"lg:w-3/4 md:w-full m-auto bg-white h-[15px] border border-primary",children:(0,s.jsx)("div",{className:"bg-primary h-full",style:{width:"".concat(k,"%")}})}),(0,s.jsx)("audio",{ref:g,src:["/assets/sound/left/250L.mp3","/assets/sound/left/500L.mp3","/assets/sound/left/1000L.mp3","/assets/sound/left/2000L.mp3","/assets/sound/left/4000L.mp3","/assets/sound/left/6000L.mp3","/assets/sound/left/8000L.mp3","/assets/sound/right/250R.mp3","/assets/sound/right/500R.mp3","/assets/sound/right/1000R.mp3","/assets/sound/right/2000R.mp3","/assets/sound/right/4000R.mp3","/assets/sound/right/6000R.mp3","/assets/sound/right/8000R.mp3"][A],loop:!0})]}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("p",{className:"mb-0 text-black text-base font-epilogue uppercase text-center mt-12",children:b.doYouHearSound}),(0,s.jsxs)("div",{className:"lg:w-1/2 md:w-full grid grid-cols-2 m-auto mt-5 gap-5",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("button",{type:"button",onClick:()=>{0!=k&&0==N?(j(k>4?k-5:k),f(1)):(f(0),v(A+1),j(0),A<=6?o(k):d(k))},className:"w-40 border border-primary text-primary hover:border-dark_red hover:text-dark_red font-bold py-2 px-4 uppercase",children:b.yes})}),(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("button",{type:"button",onClick:()=>{j(k+5)},className:"w-40 border border-primary text-primary hover:border-dark_red hover:text-dark_red font-bold py-2 px-4 uppercase",children:b.no})})]})]}),(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)("button",{onClick:()=>{t(5),u()},disabled:A<=13,type:"button",className:"".concat(A<=13?"bg-gray":"bg-primary"," step-btn mt-10 border border-white text-white hover:border-dark_red hover:text-dark_red font-bold py-2 px-4 m-auto uppercase min-w-[250px]"),children:b.finish})})]})]})};var k=e=>{let{reset:a,setStepActive:t,average:n,averageLeft:l,averageRight:o}=e;const{locale:d}=(0,i.useRouter)(),u=r.R[d];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:"text-xl font-epilogue text-center font-bold text-black lg:w-3/4 sm:w-full mx-auto",children:u.testResult}),(0,s.jsxs)("p",{className:"text-black text-base font-epilogue my-1 text-center lg:w-3/4 sm:w-full mx-auto",children:[u.yourHearingResult," L ",Math.floor(l)," dB, R ",Math.floor(o)," db ",u.andDegreeHearingLoss," "]}),(0,s.jsxs)("div",{className:"lg:w-3/4 md:w-full mx-auto mt-12",children:[n<=25?(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("h2",{className:"text-lg font-epilogue text-center font-bold text-black mb-2 uppercase",children:u.normal}),(0,s.jsx)("p",{className:"text-black text-base font-epilogue m-auto text-center",children:u.normalTestDesc})]}):n>25&&n<=40?(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("h2",{className:"text-lg font-epilogue text-center font-bold text-black mb-2 uppercase",children:u.minor}),(0,s.jsx)("p",{className:"text-black text-base font-epilogue m-auto text-center",children:u.minorTestDesc})]}):n>40&&n<=70?(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("h2",{className:"text-lg font-epilogue text-center font-bold text-black mb-2 uppercase",children:u.moderate}),(0,s.jsx)("p",{className:"text-black text-base font-epilogue m-auto text-center",children:u.moderateTestDesc})]}):n>70&&n<=90?(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("h2",{className:"text-lg font-epilogue text-center font-bold text-black mb-2 uppercase",children:u.severe}),(0,s.jsx)("p",{className:"text-black text-base font-epilogue m-auto text-center",children:u.severeTestDesc})]}):n>90?(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("h2",{className:"text-lg font-epilogue text-center font-bold text-black mb-2 uppercase",children:u.deaf}),(0,s.jsx)("p",{className:"text-black text-base font-epilogue m-auto text-center",children:u.deafTestDesc})]}):void 0,(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)("button",{onClick:()=>{t(1),a()},type:"button",className:"step-btn mt-10 border bg-primary border-white text-white hover:border-dark_red hover:text-dark_red font-bold py-2 px-4 m-auto uppercase min-w-[250px]",children:u.reTest})})]})]})},j=t(41664),w=t.n(j);const y=()=>(0,p.D)({mutationFn:e=>(async e=>(await(0,h.RE)({method:h.Is.POST,overrideBaseUrl:"https://api.optikmelawai.com",subUrl:"/api/v2/pabd-test",data:e,useStrapi:!1})).data)(e)});
1var E=t(34597),I=t(64394),T=t(39375),S=t(81790);var D=()=>{var e,a,t,l,d,u,c;const{locale:m}=(0,i.useRouter)(),{language:p}=(0,n.useContext)(I.A),h=r.R[m],[x,b]=(0,n.useState)(1),[g,j]=(0,n.useState)([]),[D,R]=(0,n.useState)([]),[C,H]=(0,n.useState)(0),[L,M]=(0,n.useState)(0),[O,P]=(0,n.useState)(0),[U,B]=(0,n.useState)({name:"",age:"",mobile_number:"",domicile:"",ear_pain:!0,questionnaires:[],left_ear:0,right_ear:0,result:"",otp:""}),F=y();(0,n.useEffect)(()=>{if(g.length>0&&D.length>0){const e=g.reduce((e,a)=>e+a,0),a=D.reduce((e,a)=>e+a,0);let t=0,s=0;e>0&&(t=e/g.length),a>0&&(s=a/D.length),H(t),M(s)}},[g,D]),(0,n.useEffect)(()=>{if(C>0&&L>0){let e=(C+L)/2;P((C+L)/2);let a="Normal";e>25&&e<=40?a="Ringan":e>40&&e<=70?a="Sedang":e>70&&e<=90?a="Berat":e>90&&(a="Tuli"),B({...U,left_ear:C,right_ear:L,result:a})}else P(0),B({...U,left_ear:C,right_ear:L,result:"Normal"})},[C,L]);const K=()=>{j([]),R([]),H(0),M(0),P(0)};(0,n.useEffect)(()=>{var e,a;x>1&&(null===(a=document)||void 0===a||null===(e=a.getElementById("questionSection"))||void 0===e||e.scrollIntoView({behavior:"smooth"}))},[x]),(0,n.useEffect)(()=>{U.ear_pain&&x>1&&b(-1)},[U.ear_pain,x]);const[G,_]=(0,n.useState)(),q=(0,E.$)({locale:p});return(0,n.useEffect)(()=>{var e;q.isSuccess&&_(null===(e=q.data)||void 0===e?void 0:e.data)},[q.isSuccess,q.isFetching]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("nav",{className:"flex justify-between w-screen md:p-25 sm: p-15","aria-label":"Breadcrumb",children:(0,s.jsxs)("ol",{className:"inline-flex items-center mb-3 sm:mb-0",children:[(0,s.jsx)("li",{children:(0,s.jsx)(w(),{href:"/",className:"text-xs tracking-2 font-epilogue font-bold text-black uppercase hover:text-primary",children:"OPTIK MELAWAI"})}),(0,s.jsx)("li",{children:(0,s.jsx)("span",{className:"mx-2 text-black font-bold",children:"/"})}),(0,s.jsx)("li",{children:(0,s.jsx)(w(),{href:"/services",className:"text-xs tracking-2 font-epilogue font-bold text-black uppercase hover:text-primary",children:h.services})}),(0,s.jsx)("li",{children:(0,s.jsx)("span",{className:"mx-2 text-black font-bold",children:"/"})}),(0,s.jsx)("li",{children:(0,s.jsx)(w(),{href:"#",className:"text-xs tracking-2 font-epilogue font-bold text-black hover:text-primary uppercase",children:h.onlineHearingTest})})]})}),(0,s.jsxs)("div",{className:"w-full",id:"questionSection",children:[G&&(0,s.jsx)(T.Z,{hsTitle:null==G||null===(e=G.attributes)||void 0===e?void 0:e.htTitle,hsDesc:null==G||null===(a=G.attributes)||void 0===a?void 0:a.htDesc}),F.isPending&&(0,s.jsx)("div",{className:"w-full text-center py-64",children:(0,s.jsx)("div",{className:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",role:"status",children:(0,s.jsx)("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",children:"Loading..."})})}),!F.isPending&&(0,s.jsx)("div",{className:"w-full py-10 m-auto flex flex-col items-center justify-center md:px-25 sm:px-15",children:(0,s.jsxs)("form",{className:"lg:w-3/4 md:w-full min-h-[500px]",children:[G&&(0,s.jsxs)("div",{className:"steps relative flex items-center justify-between min-[992px]:max-w-[800px] mx-auto",children:[(0,s.jsxs)("span",{className:"is-active relative text-center pagi",onClick:()=>{x>1&&5!=x&&(K(),b(1))},children:[(0,s.jsx)("span",{className:"uppercase text-md text-gray font-epilogue font-semibold",children:null==G||null===(t=G.attributes)||void 0===t?void 0:t.personalDataTitle}),(0,s.jsx)("span",{className:"dot relative w-[30px] h-[30px] rounded-full block border-5 mx-auto mt-2 bg-white"})]}),(0,s.jsxs)("span",{className:"".concat(x>=2&&"is-active"," relative text-center pagi"),onClick:()=>{x>2&&5!=x&&(K(),b(2))},children:[(0,s.jsx)("span",{className:"uppercase text-md text-gray font-epilogue font-semibold",children:null==G||null===(l=G.attributes)||void 0===l?void 0:l.quickCheckTitle}),(0,s.jsx)("span",{className:"dot relative w-[30px] h-[30px] rounded-full block border-5 mx-auto mt-2 bg-white"})]}),(0,s.jsxs)("span",{className:"".concat(x>=3&&"is-active"," relative text-center pagi"),onClick:()=>{x>3&&5!=x&&(K(),b(3))},children:[(0,s.jsx)("span",{className:"uppercase text-md text-gray font-epilogue font-semibold",children:null==G||null===(d=G.attributes)||void 0===d?void 0:d.calibrationTitle}),(0,s.jsx)("span",{className:"dot relative w-[30px] h-[30px] rounded-full block border-5 mx-auto mt-2 bg-white"})]}),(0,s.jsxs)("span",{className:"".concat(x>=4&&"is-active"," relative text-center pagi"),onClick:()=>{x>4&&5!=x&&b(4)},children:[(0,s.jsx)("span",{className:"uppercase text-md text-gray font-epilogue font-semibold",children:null==G||null===(u=G.attributes)||void 0===u?void 0:u.measurementTitle}),(0,s.jsx)("span",{className:"dot relative w-[30px] h-[30px] rounded-full block border-5 mx-auto mt-2 bg-white"})]}),(0,s.jsxs)("span",{className:"".concat(x>=5&&"is-active"," relative text-center pagi"),onClick:()=>{x>5&&b(5)},children:[(0,s.jsx)("span",{className:"uppercase text-md text-gray font-epilogue font-semibold",children:h.finish}),(0,s.jsx)("span",{className:"dot relative w-[30px] h-[30px] rounded-full block border-5 mx-auto mt-2 bg-white"})]})]}),(0,s.jsxs)("div",{className:"relative mt-12",children:[(0,s.jsx)("div",{className:"steps-body ".concat(-1==x&&"is-showing"),children:(0,s.jsx)(o,{setStepActive:e=>b(e),reset:()=>{K(),B({name:"",age:"",mobile_number:"",domicile:"",ear_pain:!0,questionnaires:[],left_ear:0,right_ear:0,result:"",otp:""})}})}),(0,s.jsx)("div",{className:"steps-body ".concat(1==x&&"is-showing"),children:(0,s.jsx)(N,{formSubmit:U,setStepActive:e=>b(e),setFormSubmit:e=>B(e),hearStrapi:G})}),(0,s.jsx)("div",{className:"steps-body ".concat(2==x&&"is-showing"),children:(0,s.jsx)(f,{formSubmit:U,setStepActive:e=>b(e),setFormSubmit:e=>B(e),hearStrapi:G})}),(0,s.jsx)("div",{className:"steps-body ".concat(3==x&&"is-showing"),children:(0,s.jsx)(A,{setStepActive:e=>b(e),hearStrapi:G})}),(0,s.jsx)("div",{className:"steps-body ".concat(4==x&&"is-showing"),children:(0,s.jsx)(v,{stepActive:x,setStepActive:e=>b(e),setLeftPoint:e=>j([...g,e]),setRightPoint:e=>R([...D,e]),onClickSubmit:()=>{F.mutate({...U,age:"string"==typeof U.age?parseInt(U.age):U.age,left_ear:Math.floor(C),right_ear:Math.floor(L)})},hearStrapi:G})}),(0,s.jsx)("div",{className:"steps-body ".concat(5==x&&"is-showing"),children:(0,s.jsx)(k,{setStepActive:e=>b(e),averageLeft:C,averageRight:L,average:O,reset:()=>{K(),B({name:"",age:"",mobile_number:"",domicile:"",ear_pain:!0,questionnaires:[],left_ear:0,right_ear:0,result:"",otp:""})}})})]})]})})]}),(null==G||null===(c=G.attributes)||void 0===c?void 0:c.pabd_page)&&(0,s.jsx)(S.Z,{})]})}},11376:function(e,a,t){"use strict";t.d(a,{R:function(){return s}});const s={id:{drawerHeading:"Daftarkan Diri Anda",subDrawerTitle:"Untuk mendapatkan informasi terbaru mengenai kesehatan pendengaran dan Alat Bantu Dengar Melawai",fieldName:"Nama Lengkap",fieldMobileNum:"Nomor Handphone",fieldAddress:"Domisili",fieldEmail
1:"Email",alertfieldName:"Nama Diperlukan",alertfieldMobileNum:"Nomor Handphone Diperlukan",alertfieldMobileNum2:"Nomor HP harus memiliki setidaknya 10-13 digit",alertfieldMobileNum3:"Nomor HP harus diawali dengan 62 atau 0",alertfieldAddress:"Domisili Diperlukan",alertfieldEmail:"Silakan Masukkan Email Anda",invalidEmail:"Format email tidak valid",btnSubmit:"Kirim",drawerDesc:"Formulir Anda telah terkirim",normal:"normal",normalTestDesc:"Pendengaran Anda masih dalam batas Normal, lakukan cek rutin setiap 6 bulan sekali. Segera Kunjungi Pusat Alat Bantu Dengar Melawai jika ada masalah dengan pendengaran Anda untuk mendapatkan Pemeriksaan dan Konsultasi Gratis",minor:"ringan",minorTestDesc:"Pada level ini anda akan mengalami kesulitan komunikasi ketika berada di lingkungan yang bising, atau ketika seseorang membelakangi atau berdiri agak jauh, anda dapat mendengar tetapi anda tidak dapat memahami isi percakapan dengan jelas. Segera kunjungi Pusat Alat Bantu Dengar Melawai terdekat untuk dapat dilakukan pemeriksaan lanjutan, konsultasi dan coba Alat Bantu Dengar gratis.",moderate:"moderate",moderateTestDesc:"Pada level ini Anda akan meminta orang untuk mengulangi kata-kata selama percakapan, baik secara langsung ataupun melalui telepon. Orang yang menderita gangguan pendengaran sedang mengalami masalah dalam banyak situasi dan akan mengalami kesulitan untuk mengikuti percakapan. Agar dapat berkomunikasi dengan lebih baik orang dengan gangguan pendengaran sedang sudah memerlukan Alat Bantu Dengar.  Segera kunjungi Pusat Alat Bantu Dengar Melawai terdekat untuk dapat dilakukan pemeriksaan lanjutan, konsultasi dan coba Alat Bantu Dengar gratis.",severe:"berat",severeTestDesc:"Pada level ini seseorang yang tuli berat harus membaca bibir atau menggunakan bahasa isyarat untuk berkomunikasi. Agar dapat mendengar dan berkomunikasi dengan baik maka orang dengan gangguan pendengaran berat sudah harus menggunakan Alat bantu dengar. Segera kunjungi Pusat Alat Bantu Dengar Melawai terdekat untuk dapat dilakukan pemeriksaan lanjutan, konsultasi dan coba Alat Bantu Dengar gratis.",deaf:"tuli",deafTestDesc:"Pada level ini Anda tidak akan mendengar sebagian besar suara sehari-hari tanpa amplifikasi (Alat Bantu Dengar), anda hanya akan mendengar suara dengan intensitas yang keras seperti suara Sirine Ambulans, suara pesawat terbang. Anda tidak dapat mendengar ada orang yang memanggil Anda dari belakang. Segera kunjungi Pusat Alat Bantu Dengar Melawai terdekat untuk dapat dilakukan pemeriksaan lanjutan, konsultasi dan coba Alat Bantu Dengar gratis.",personalInfo:"Info Data Diri",personalInfoDesc:"Sebelum mulai Tes kami perlu tahu sedikit tentang Anda, ini akan membantu kami mempersonalisasi hasil pemeriksaan Anda",fullName:"Nama lengkap",age:"Umur",phoneNumber:"Nomor HP",domicile:"Domisili",earHurt:"Apakah telinga anda terasa sakit?",yes:"Ya",no:"Tidak",submit:"Kirim",quickCheck:"Pemeriksaan cepat",quickCheckDesc:"Sebelum mulai Test kami perlu tahu sedikit tentang Anda, ini akan membantu kami mempersonalisasi hasil pemeriksaan Anda",describeHearingCondition:"BAGAIMANA ANDA MENGGAMBARKAN KONDISI PENDENGARAN ANDA SAAT INI?",fine:"Bagus",littleProblem:"Saya punya sedikit masalah",someProblems:"SAYA PUNYA BEBERAPA MASALAH",manyProblem:"SAYA PUNYA BANYAK MASALAH",conversationMumbling:"DALAM PERCAKAPAN DI LINGKUNGAN ATAU SITUASI YANG SEPI APAKAH ORANG-ORANG TAMPAK BERBICARA SEPERTI BERGUMAM?",always:"SELALU",sometimes:"KADANG-KADANG",never:"TIDAK PERNAH",diffcultTalkingPhone:"APAKAH ANDA MERASA KESULITAN UNTUK BERBICARA MELALUI TELEPON?",diffcultNoisyEnv:"APAKAH ANDA MERASA KESULITAN UNTUK MENGIKUTI PERCAKAPAN DI LINGKUNGAN YANG BISING? MISAL RESTORAN ATAU ATAU DITENGAH BANYAK ORANG?",toldHearingLoss:"ADAKAH YANG PERNAH MENGATAKAN BAHWA ANDA MUNGKIN MENGALAMI GANGGUAN PENDENGARAN?",earFeelBetterHearing:"TELINGA MANAKAH YANG ANDA RASA LEBIH BAIK UNTUK MENDENGAR?",right:"KANAN",left:"KIRI",equal:"SAMA",difficultComunicatingWith:"DENGAN SIAPA ANDA KESULITAN BERKOMUNIKASI?",male:"LAKI-LAKI",femaleChildren:"PEREMPUAN DAN ANAK-ANAK",everyone:"SEMUA ORANG",haveNoDiff:"SAYA TIDAK ADA KESULITAN",alwaysHaveTinnitus:"APAKAH TELINGA ANDA SELALU BERDENGING / BERDENGUNG (TINNITUS)?",whereDidHeardOnlineTest:"DARI MANA ANDA MENDENGAR TENTANG TES PENDENGARAN ONLINE MELAWAI?",ad:"IKLAN",CABMelawai:"CAB PABD MELAWAI",etc:"LAIN-LAIN",deviceCalibration:"Kalibrasi Perangkat",deviceCalibrationDesc:"Maksimalkan volume perangkat anda, umumnya perangkat anda mempunyai volume maksimum sekitar 100db",step3point1:"KLIK TOMBOL PLAY DI BAWAH INI UNTUK MEMAINKAN SUARA KLIK MOUSE DAN GESEKAN TELAPAK TANGAN.",step3point2:"BANDINGKAN DENGAN SUARA ASLI MOUSE DAN GESEKAN TELAPAK TANGAN ANDA.",step3point3:"APABILA SUARA KEDUANYA SAMA BESARNYA BERARTI PERANGKAT ANDA SUDAH SESUAI, LANJUTKAN DENGAN MENEKAN TOMBOL 'Kirim'.",step3point4:"Untuk hasil yang maksimal kami anjurkan agar pengetesan suara memakai alat bantu headset.",finish:"selesai",doYouHearSound:"APAKAH TERDENGAR SUARA?",measurement:"pengukuran",ifDontHearClick:"apabila anda tidak mendengar suara dan Klik",click:"klik",ifHear:"apabila anda mendengar suara",testResult:"Hasil Tes",yourHearingResult:"Hasil test pendengaran anda",andDegreeHearingLoss:"dan Derajat Gangguan Dengar",onlineHearingTest:"Tes Pendengaran Online",hearingTestDesc:"Tes pendengaran dilakukan untuk mendeteksi kemungkinan adanya gangguan pendengaran dan memastikan bahwa indra pendengaran berfungsi dengan baik. Selain itu, tes pendengaran juga dapat dilakukan untuk menentukan jenis gangguan pendengaran dan seberapa parah gangguan yang terjadi.",services:"layanan",continue:"lanjutkan",reTest:"ulangi",earPainMessage:"Anda belum bisa melanjutkan pemeriksaan ini, Harap kembali setelah telinga t
1idak terasa sakit",notFound:"Halaman tidak ditemukan",notAvailable:"Halaman tidak tersedia",currwithCategory:"Saat ini, halaman optik melawai dengan kategori",areNotAvail:"belum tersedia",backToList:"Kembali ke beranda",share:"Bagikan",otpLabel:"OTP",dontReceiveCode:"Tidak menerima kode OTP?",resend:"Kirim ulang"},en:{drawerHeading:"Register Yourself",subDrawerTitle:"To get the latest information on hearing health and Hearing Aids Melawai",fieldName:"Complete Name",fieldMobileNum:"Mobile Number",fieldAddress:"Your Address",fieldEmail:"Email",alertfieldName:"Name Is Required",alertfieldMobileNum:"Mobile Number Is Required",alertfieldMobileNum2:"Mobile numbers must have at least 10-13 digits",alertfieldMobileNum3:"Mobile numbers must begin with 62 or 0",alertfieldAddress:" Required",alertfieldEmail:"Please Input your Email",invalidEmail:"Invalid email format",btnSubmit:"Submit",drawerDesc:"Your Form is sent",normal:"normal",normalTestDesc:"Your hearing is still within the Normal limit, do a routine check every 6 months. Immediately visit the Melawai Hearing Aid Center if you have a problem with your hearing to get a Free Examination and Consultation",minor:"minor",minorTestDesc:"At this level you will have difficulty communicating when in a noisy environment, or when someone is facing away or standing a little far away, you can hear but you cannot understand the contents of the conversation clearly. Immediately visit the nearest Melawai Hearing Aid Center for further examination, consultation and free hearing aid trial.",moderate:"moderate",moderateTestDesc:"At this level you will ask people to repeat words during a conversation, either in person or over the phone. People with moderate hearing loss have problems in many situations and will have difficulty following conversations. In order to communicate better, people with moderate hearing loss already need a Hearing Aid. Immediately visit the nearest Melawai Hearing Aid Center for further examination, consultation and free Hearing Aid trial.",severe:"severe",severeTestDesc:"At this level, someone who is severely deaf must read lips or use sign language to communicate. In order to hear and communicate well, people with severe hearing loss must use hearing aids. Immediately visit the nearest Melawai Hearing Aid Center for further examination, consultation and free hearing aid trial.",deaf:"deaf",deafTestDesc:"At this level you will not hear most everyday sounds without amplification (Hearing Aid), you will only hear sounds with loud intensity such as Ambulance Siren, airplane sounds. You cannot hear anyone calling you from behind. Immediately visit the nearest Melawai Hearing Aid Center for further examination, consultation and free Hearing Aid trial.",personalInfo:"Personal Data Information",personalInfoDesc:"Before starting the Test we need to know a little about you, this will help us personalize your test results.",fullName:"Full Name",age:"Age",phoneNumber:"Mobile number",domicile:"Domicile",earHurt:"do your ears hurt?",yes:"Yes",no:"No",submit:"Submit",quickCheck:"Quick Check",quickCheckDesc:"Before starting the Test we need to know a little about you, this will help us personalize your assessment results.",describeHearingCondition:"HOW WOULD YOU DESCRIBE YOUR CURRENT HEARING CONDITION?",fine:"Fine",littleProblem:"I have a little problem",someProblems:"I HAVE SOME PROBLEMS",manyProblem:"I HAVE MANY PROBLEMS",conversationMumbling:"IN CONVERSATIONS IN QUIET ENVIRONMENTS OR SITUATIONS DO PEOPLE APPEAR TO BE SPEAKING AS IF THEY ARE MUMBLING?",always:"ALWAYS",sometimes:"SOMETIMES",never:"NEVER",diffcultTalkingPhone:"DO YOU FIND DIFFICULTY TALKING ON THE PHONE?",diffcultNoisyEnv:"DO YOU FIND DIFFICULTY FOLLOWING A CONVERSATION IN A NOISY ENVIRONMENT? SUCH AS A RESTAURANT OR IN A LOTS OF PEOPLE?",toldHearingLoss:"HAS ANYONE EVER TOLD YOU THAT YOU MIGHT HAVE HEARING LOSS?",earFeelBetterHearing:"WHICH EAR DO YOU FEEL BETTER FOR HEARING?",right:"RIGHT",left:"LEFT",equal:"EQUAL",difficultComunicatingWith:"WHO DO YOU HAVE DIFFICULTY COMMUNICATING WITH?",male:"MALE",femaleChildren:"WOMEN AND CH
1ILDREN",everyone:"EVERYONE",haveNoDiff:"I HAVE NO DIFFICULTIES",alwaysHaveTinnitus:"DO YOU ALWAYS HAVE A RINGING / BUZZING IN YOUR EARS (TINNITUS)?",whereDidHeardOnlineTest:"WHERE DID YOU HEARD ABOUT THE ONLINE HEARING TEST MELAWAI?",ad:"AD",CABMelawai:"CAB PABD MELAWAI",etc:"ETC",deviceCalibration:"Device Calibration",deviceCalibrationDesc:"Maximize the volume of your device, generally your device has a maximum volume of around 100db",step3point1:"CLICK THE PLAY BUTTON BELOW TO PLAY THE SOUND OF MOUSE CLICKS AND PALM FRICTION.",step3point2:"COMPARE WITH THE REAL SOUND OF YOUR MOUSE AND THE FRICTION OF YOUR PALM.",step3point3:"IF BOTH SOUNDS ARE THE SAME, IT MEANS THAT YOUR DEVICE IS COMPATIBLE, CONTINUE BY PRESSING THE 'SUBMIT' BUTTON.",step3point4:"For maximum results, we recommend that you use a headset to test your sound.",finish:"finish",doYouHearSound:"DO YOU HEAR SOUND?",measurement:"measurement",ifDontHearClick:"if you don't hear the sound and click",click:"click",ifHear:"if you hear the sound",testResult:"Test Results",yourHearingResult:"Your hearing test results",andDegreeHearingLoss:"and degree of hearing loss",onlineHearingTest:"Online Hearing Test",hearingTestDesc:"Hearing tests are performed to detect possible hearing loss and to ensure that the sense of hearing is functioning properly. In addition, hearing tests can also be performed to determine the type of hearing loss and how severe the hearing loss is.",services:"services",continue:"continue",reTest:"Retest",earPainMessage:"You cannot continue this examination yet. Please come back once your ear is no longer painful.",notFound:"Page not found",notAvailable:"Page not available",currwithCategory:"Currently, Melawai optics page with category",areNotAvail:"are not yet available",backToList:"Back to home",share:"Share",otpLabel:"OTP",dontReceiveCode:"Did not receive the OTP code?",resend:"Resend"}}},40572:function(e,a,t){var s,n=(s=t(67294))&&"object"==typeof s&&"default"in s?s.default:s;e.exports=function(e,a){void 0===e&&(e=6e4),void 0===a&&(a=1e3);var t=n.useState(0),s=t[0],i=t[1],r=n.useRef({}),l=function e(t){r.current.started||(r.current.started=t,r.current.lastInterval=t);var s=Math.min(a,r.current.timeLeft||1/0);t-r.current.lastInterval>=s&&(r.current.lastInterval+=s,i(function(e){return r.current.timeLeft=e-s,r.current.timeLeft})),t-r.current.started<r.current.timeToCount?r.current.requestId=window.requestAnimationFrame(e):(r.current={},i(0))},o=n.useCallback(function(a){window.cancelAnimationFrame(r.current.requestId);var t=void 0!==a?a:e;r.current.started=null,r.current.lastInterval=null,r.current.timeToCount=t,r.current.requestId=window.requestAnimationFrame(l),i(t)},[]),d=n.useCallback(function(){window.cancelAnimationFrame(r.current.requestId),r.current.started=null,r.current.lastInterval=null,r.current.timeToCount=r.current.timeLeft},[]),u=n.useCallback(function(){!r.current.started&&r.current.timeLeft>0&&(window.cancelAnimationFrame(r.current.requestId),r.current.requestId=window.requestAnimationFrame(l))},[]),c=n.useCallback(function(){r.current.timeLeft&&(window.cancelAnimationFrame(r.current.requestId),r.current={},i(0))},[]),m=n.useMemo(function(){return{start:o,pause:d,resume:u,reset:c}},[]);return n.useEffect(function(){return function(){return window.cancelAnimationFrame(r.current.requestId)}},[]),[s,m]}}}]);

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.