"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9922],{RlaE:function(e,t,o){o.d(t,{EU:function(){return subotLandingPageClick},F3:function(){return subotLandingPageImpress},Ke:function(){return d},cD:function(){return sidisRiskScreenersId},pU:function(){return subotLandingPageMessage}});var i=o("q1tI"),n=o("09QT"),a=o("oQBk"),r=o("xIXX"),l=o("CJtR");let d=(0,i.createContext)({activeId:"",params:{},nodes:[],currentNode:void 0,trackingCommon:{},totalFlows:10}),subotLandingPageClick=async e=>{try{return await (0,r.t9)((0,l.jX)(a.y.SUBOT.POST_LANDING_PAGE_CLICK),"POST",{data:e})}catch(e){}},subotLandingPageImpress=async e=>{try{return await (0,r.t9)((0,l.jX)(a.y.SUBOT.POST_LANDING_PAGE_IMPRESSION),"POST",{data:e})}catch(e){}},subotLandingPageMessage=async e=>{try{return await (0,r.t9)((0,l.jX)(a.y.SUBOT.GET_LANDING_PAGE_NEXT_NODE),"POST",{data:e})}catch(e){}},sidisRiskScreenersId=async e=>{try{let t=await (0,n.d)(a.y.SIDIS.GET_SIDIS_RISK_SCREENERS_ID,{params:{id:e}},"sidis_frontend");return t}catch(e){}}},puFK:function(e,t,o){o.d(t,{b:function(){return n}});var i,n,a=o("BGKE"),r=o("q1tI"),l=o("20a2"),d=o("UNYN");(i=n||(n={})).NAME="block_name",i.NUMBER="block_number",i.SUBMIT_FLAG="submit_flag",t.Z=e=>{let{NodeComponent:t,node:o,indexNumber:i,isFromMyHealth:n,isMobile:s}=e,c=(0,l.useRouter)();return((0,r.useEffect)(()=>{let e={...c.query,block_number:i,block_name:(o.name||"").split(" ").filter(Boolean).join("-")};d.yd.includes(Number(o.type))&&(e.submit_flag=1),c.push({pathname:c.pathname,query:e},void 0,{shallow:!0})},[]),t&&o)?(0,a.tZ)(t,{node:o,indexNumber:i,isFromMyHealth:n,isMobile:s}):null}},"RS/w":function(e,t,o){o.d(t,{h:function(){return ArticleCardWrapper}});var i=o("BGKE"),n=o("q1tI"),a=o("Ztav"),r=o("bVHi"),l=o("TSYQ"),d=o.n(l),s=o("09QT"),c=o("oQBk"),u=o("iv2E"),m=o("rIrU"),p=o("05Ua"),g=o("o0qI"),v=o("9L6u"),_=o("rBCA");let b=(0,_.Z)("div",{target:"e16cnzyi0"})("background:#fff;.bot-related-article{.banner{width:140px;min-width:auto !important;height:100px !important;margin:0px 16px 0px 0px !important;}}.inner-content > .title{margin-top:0;a{color:inherit;}}.no-author-avt{.author > .avatar{display:none;}}.no-author-name{.author > .poster{display:none;}}.no-category-name{.inner-content > .label{display:none;}}"),ArticleCardWrapper=e=>{let{data:t,articleId:o,locale:l,isMobile:_,url:f}=e,{state:h,dispatch:y}=(0,n.useContext)(g.I),{userInfo:w}=h||{},{bookmarks:k=[]}=w||{},[I,E]=(0,n.useState)(!1),[S,x]=(0,n.useState)(-1!==k.indexOf(o)),getMetaData=(e,t)=>{if(t&&t.length>0){let o=t.filter(t=>t.key===e);if(o.length>0)return o[0].value}return""},M=l||"en-PH",bookmarkArticle=e=>{if(null==w?void 0:w.id)x(e=>!e),S?(async()=>{let t=await (0,s.d)(c.y.SSO.DELETE_BOOKMARK,{method:"DELETE",data:{host_name:u.domainLocales[M],post_ids:[e]}},"sso");(null==t?void 0:t._status)===1&&y({type:p.H.REMOVE_BOOKMARKS,payload:{bookmarks:[e],bookmarkId:e}})})():(async()=>{let t=await (0,s.d)(c.y.SSO.CREATE_BOOKMARK,{method:"POST",data:{host_name:u.domainLocales[M],post_ids:[e]}},"sso");(null==t?void 0:t._status)===1&&y({type:p.H.ADD_BOOKMARKS,payload:{bookmarks:[e],bookmarkId:e,isFirstTimeBookmark:null==t?void 0:t._data.first_time_bookmark}})})();else{let t=window.location.href,o=encodeURIComponent("".concat(t).concat(t.includes("?")?"&":"?","source=bookmark,").concat(e));m.Ew?r.u.getState().triggerLogin({source:"bookmark,".concat(e)}):window.location.href=m.MO?"".concat(m.MO,"?returnUrl=").concat(o):t}};(0,n.useEffect)(()=>{E(!0)},[]),(0,n.useEffect)(()=>{x(-1!==k.indexOf(o))},[k.length]);let C=getMetaData(m.Z3.REVIEWED_AVATAR_THUMBNAIL,t.meta),B=getMetaData(m.Z3.REVIEWED_DISPLAY_NAME,t.meta),T=getMetaData(m.Z3.CATEGORY_NAME,t.meta);return(0,i.tZ)(b,{children:(0,i.tZ)(a.T,{className:d()("bot-related-article",{"no-author-avt":!C,"no-author-name":!B,"no-category-name":!T}),authorName:B,avatarImg:C?(0,i.tZ)("img",{src:C,alt:getMetaData(m.Z3.REVIEWED_DISPLAY_NAME,t.meta),loading:"lazy"}):(0,i.tZ)(i.HY,{}),authorLink:getMetaData(m.Z3.REVIEWED_URL,t.meta),banner:(0,i.tZ)("img",{loading:"lazy",src:t.thumbnail,alt:t.title}),categoryName:T,categoryLink:getMetaData(m.Z3.CATEGORY_URL,t.meta),direction:"horizontal",isMobile:_,section:"normal",size:"md",styleLabel:{color:getMetaData(m.Z3.CATEGORY_TEXT_COLOR,t.meta)},articleLink:f,text:"",title:t.title,type:"author",uploadTime:(0,v.p6)(getMetaData(m.Z3.POST_MODIFIED,t.meta))||"",isBookmarkDisplayed:I,isBookmark:S,onBookmark:()=>bookmarkArticle(getMetaData(m.Z3.POST_ID,t.meta))})})}},"/5z9":function(e,t,o){o.d(t,{G:function(){return CareEmbeddedSubotLandingPage}});var i=o("BGKE"),n=o("q1tI"),a=o("l+Th"),r=o("MmHG"),l=o("LgdP"),d=o("dDsW"),s=o("+s09"),c=o("iz81"),u=o("rIrU"),m=o("rBCA"),p=o("iBNF");let g=(0,m.Z)("div",{target:"e1rlm3zo0"})("margin-bottom:32px;",c.yg,"{margin-bottom:24px;}"),v=(0,m.Z)("div",{target:"e1rlm3zo1"})("padding:24px;background-color:",p.r.colors.primary50,";.care-banner-img{max-width:100%;display:block;margin:auto;}button{margin-top:16px;}"),_=u.Mw?2569:1251;function CareBanner(e){let{title:t,bot_id:o}=e,{formatMessage:n}=(0,d.Z)();return o===_?(0,i.BX)(g,{children:[t&&(0,i.tZ)(c.yg,{children:(0,i.tZ)(r.T,{type:"bold",size:"lg",color:"#284A75",children:t})}),(0,i.BX)(v,{children:[(0,i.tZ)("img",{src:"/images/subot/subot_care_banner.png",alt:"subot-care-banner",className:"care-banner-img",loading:"lazy"}),(0,i.tZ)(r.T,{type:"bold",size:"lg",color:"#284A75",children:n({id:"subotLandingPage.exploreHelloCare",defaultMessage:"Explore HelloCare"})}),(0,i.tZ)(r.T,{size:"p2",children:n({id:"subotLandingPage.exploreHelloCare.description",defaultMessage:"We recommend the best doctors for you"})}),(0,i.tZ)(l.B,{size:"lg",isBlock:!0,onClick:e=>{e.preventDefault(),(0,s.C)("/care/semua/dokter/?specialtyId=232")},dataEventCategory:"Care",dataEventAction:"In Subot Care Embedded",dataEventLabel:window.location.href,children:n({id:"careBooking.bookAnAppointment",defaultMessage:"Book an appointment"})})]})]}):null}var b=o("RlaE");function CareEmbeddedSubotLandingPage(e){let{specialtyId:t,specialtyLabel:o,serviceTypeId:r,serviceTypeLabel:l,isMobile:d,area:s="article",showCareBannerIfEmpty:c,isBotSubmissionLowRisk:u}=e,{params:m}=(0,n.useContext)(b.Ke),[p,g]=(0,n.useState)({doctor:!1,service:!1,hospital:!1}),v=(0,n.useMemo)(()=>{if(!c)return!1;if(u)return!0;let e=p.doctor||!t,o=p.service||!r;return!!e&&!!o},[u,t,r,p.doctor,p.service]),_=(0,n.useCallback)((e,t)=>{g(o=>({...o,[t]:!((null==e?void 0:e.length)>0)}))},[]);return v?(0,i.tZ)(CareBanner,{title:o,bot_id:null==m?void 0:m.bot_id}):u?null:(0,i.BX)(i.HY,{children:[t&&(0,i.tZ)(a.default,{isMobile:d,type:"doctor",dataId:t.toString(),dataTitle:o||"",dataDescription:"",scrollColumns:1,scrollWidth:270,isDotsShown:!1,area:s,onFetchCompleted:_}),r&&(0,i.tZ)(a.default,{isMobile:d,type:"service",dataId:r.toString(),dataTitle:l||"",dataDescription:"",scrollColumns:1,scrollWidth:270,isDotsShown:!1,area:s,onFetchCompleted:_})]})}},W3BM:function(e,t,o){var i=o("BGKE"),n=o("rBCA"),a=o("DEkF"),r=o("iBNF"),l=o("xSvo"),d=o("ezJP");let s=(0,n.Z)(a.H,{target:"euhc6q30"})("display:flex;margin-bottom:8px;color:",r.r.colors.secondaryBase||"",";&::before{width:5px;margin-right:10px;background:",r.r.colors.primaryBase,";content:'';}p[data-size='lg']{line-height:26px;}"),c=(0,n.Z)("div",{target:"euhc6q31"})("position:relative;.arrow-left{left:-10px;}.arrow-right{right:-10px;}");t.Z=e=>{let{title:t,product_skus:o,no_follow:n,open_new_tab:a,sponsored:r,is_mobile:u}=e;return o.length?1===o.length?(0,i.tZ)(l.V,{isMobile:u,isCarousel:!1,productId:o[0],openNewTab:a,noFollow:n,sponsored:r,changeCollapseCarousel:()=>null,isCarouselCollapse:!0,isFocus:!0,title:t}):(0,i.BX)(c,{className:"lp--affiliate-product",children:[!!t&&(0,i.tZ)(s,{tag:"h5",children:t}),(0,i.tZ)(d.O,{isMobile:u,injectAffiliate:{productId:o.join(","),openNewTab:a,noFollow:n,sponsored:r,title:t},openNewTab:a,noFollow:n,sponsored:r})]}):null}},bF6T:function(e,t,o){o.d(t,{A2:function(){return d},AM:function(){return l},qb:function(){return r}});var i=o("rBCA"),n=o("uuQu"),a=o("iBNF");let r="\n width: 100%;\n max-width: 600px;\n padding: 16px;\n margin-right: auto;\n margin-left: auto;\n ".concat(n.M.mbDown," {\n max-width: 100%;\n }\n");a.r.colors.gray200,a.r.borderRadius,a.r.borderRadius,a.r.colors.gray100,a.r.borderRadius,n.M.mbUp,n.M.mbDown,n.M.mbUp,n.M.mbDown,n.M.mbUp,n.M.mbDown,n.M.mbUp,n.M.mbDown,a.r.colors.gray400,a.r.colors.primaryBase,a.r.colors.primary100,a.r.colors.primaryBase,a.r.colors.neutral50,a.r.colors.primaryBase,a.r.colors.primaryBase,a.r.colors.neutral50,a.r.colors.primaryBase;let l=(0,i.Z)("div",{target:"evmarvu4"})("position:relative;z-index:1;min-height:80vh;font-size:16px;line-height:24px;a{color:",a.r.colors.primaryBase,";text-decoration:none;transition:0.3s all ease;&:hover{color:",a.r.colors.primaryHover,";}}.title{",n.M.mbUp,"{font-size:22px;line-height:32px;margin-top:32px;margin-bottom:16px;}",n.M.mbDown,"{font-size:18px;line-height:26px;margin-top:24px;margin-bottom:16px;}}.lp_loading-container{position:absolute;z-index:12;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-color:rgba(255,255,255,0.4);opacity:0;pointer-events:none;transition:0.25s all linear;&.open{opacity:1;pointer-events:auto;transition:0.25s all linear;}.lp_loading-icon{}}.buttons-area{position:sticky;bottom:0;left:0;display:flex;width:100%;justify-content:center;border-top:4px solid #f7f9fc;background:#fff;&-container{width:100%;margin:0 auto;text-align:right;",n.M.mbUp,"{max-width:596px;padding:22px 14px;}",n.M.mbDown,"{max-width:100%;padding:16px;}h2{margin-bottom:20px;}}button{display:inline-block;svg{path{stroke:#fff !important;}}&.back-btn{svg{path{stroke:",a.r.colors.primaryBase," !important;}}&:hover{border-color:",a.r.colors.gray300,";background-color:",a.r.colors.gray300,";svg{path{stroke:#fff !important;}}}&:disabled{svg{path{stroke:#fff !important;}}}}&.next-btn{margin-left:10px;}}}.subot_landingpage_progress{position:absolute;top:-4px;left:0;right:0;}"),d=(0,i.Z)("div",{target:"evmarvu5"})("position:absolute;z-index:12;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:0.25s linear all;&:before{position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:",a.r.colors.neutral50||"#F7F9FC",";content:'';}&.loading{opacity:1;pointer-events:auto;transition:0.25s linear all;}")},WoKe:function(e,t,o){var i=o("BGKE"),n=o("q1tI"),a=o("EE8p"),r=o("TSYQ"),l=o.n(r),d=o("p46w"),s=o.n(d),c=o("oQBk"),u=o("xIXX"),m=o("ftPL"),p=o("CJtR"),g=o("KX2h"),v=o("GZTL"),_=o("raAP"),b=o("P5LW"),f=o("rIrU"),h=o("UNYN"),y=o("o0qI"),w=o("81CV"),k=o("bF6T"),I=o("RlaE"),E=o("s/p7"),S=o("hyOf"),x=o("puFK");let M=I.Ke;t.Z=e=>{var t;let{url:o,isMobile:r,initNodes:d,initActiveId:C="",initParams:B,accountIdFromLogs:T,firstTotalFlows:O}=e,D=(0,_.U)(),[A,Z]=(0,n.useState)(!!C),{locale:L,router:N}=(0,b.h)(),{state:{userInfo:P}}=(0,n.useContext)(y.I),R=(0,n.useRef)(null),[U,F]=(0,n.useState)(!0),[z,K]=(0,n.useState)({activeId:"",params:{},nodes:d&&d.length?d:[]}),[G,q]=(0,n.useState)(!1);(0,n.useEffect)(()=>{!async function(){let e=z.nodes;if(A&&z.params.mode){let t="in_progress",o=e[e.length-1];(null==o?void 0:o.type)&&h.yd.includes(o.type)&&(t="complete");let i=z.nodes.slice(1),n={...z,nodes:i,tracking:{full_url:window.location.href},unifiedAnswers:(0,v.Jh)(i),voucherAnswers:(0,v.Cw)(i,e[0])},a={cookie_id:(0,m.tc)(),account_id:T||(0,m.ld)()||null,bot_id:z.params.bot_id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(n),status:t,type:z.params.mode,market:f.fE[L]};try{let e=await (0,u.t9)((0,p.jX)(c.y.SUBOT.POST_SUBOT_CREATE_LOG),"POST",{data:a});if(!e.data._data)throw Error()}catch(e){}}}()},[z.nodes,A]);let H=(0,n.useMemo)(()=>z.nodes.find(e=>e.id==z.activeId),[z.nodes,z.activeId]),X=(0,n.useMemo)(()=>({"data-event-category":"Subot","data-event-label":D,"data-bot-id":z.params.bot_id,"data-bot-type":"Landing Page","data-question-id":"string"==typeof(null==H?void 0:H.id)?null==H?void 0:H.id:null}),[H,D,z.params.bot_id]),V=(0,n.useCallback)(()=>{var e;let t=window.gaData,i=o||(0,p.UC)(L)+window.location.pathname,n={bot_id:z.nodes.length?z.nodes[0].id:"",account_id:(0,m.ld)()||null,action_id:"",action_value:"",cookie_id:(0,m.tw)(null===(e=N.query)||void 0===e?void 0:e.cookie_id),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:t?Object.keys(t)[0]:"",ga_client_id:s().get("_ga")||"",is_new:!1,mode:"landing-page",node_id:"",selected_actions:{},title_url:document.title||"",url:i.replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover."),window_id:(0,u.ZY)(),total_flows:O};return(0,w.sk)(n,N.query)},[]),elementScrollIntoView=()=>{R.current&&R.current.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})},W=(0,n.useCallback)(function(e){let{event_action:t,response_id:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{window.gtag("event","interaction_click",{event:"interaction_click",...X,event_action:t||"Answer Click",response_id:(null==e?void 0:e.action_id)||o})}catch(e){}},[X]),onSubmit=async(e,t)=>{Z(!0);let o=JSON.parse(JSON.stringify({...z,nodes:[...z.nodes]}));if(t&&(null==t?void 0:t.node_id)){let e=o.nodes.findIndex(e=>{let{id:o}=e;return o==t.node_id});-1!==e&&(o.nodes[e]._message={...o.nodes[e]._message,...t},o.nodes=[...o.nodes.slice(0,e+1)])}if(F(!0),e){var i;let t=o.nodes.findIndex(t=>{let{id:o}=t;return o==(null==e?void 0:e.id)});if(-1===t)o.nodes=[...o.nodes,{...e}];else{let i={...o.nodes[t],...e,_message:{...o.nodes[t]._message,...null==e?void 0:e._message}};o.nodes=[...o.nodes.slice(0,t),{...i},...o.nodes.slice(t+1)]}o.activeId=e.id,o.params.total_flows=null===(i=e._message)||void 0===i?void 0:i.total_flows}setTimeout(()=>{K(o),F(!1),elementScrollIntoView()},300)},Y=(0,n.useCallback)(async e=>{if(e&&(null==e?void 0:e.node_id)){e.account_id=(null==P?void 0:P.id)||T||(0,m.ld)()||null;let t={...e,...(0,a.getCurrentTotalDynamicScore)(z.nodes,z.activeId,e.action_id)},o=await I.pU(t);if((null==o?void 0:o._status)===1){let{node:e,total_flows:i,...n}=null==o?void 0:o._data,a={...e,_message:{...n,total_flows:i,node_id:e.id}},r=z.nodes.findIndex(e=>{let{id:t}=e;return t===a.id});-1!==r?onSubmit(a):onSubmit(a,{...t});return}}let t=z.nodes.find(e=>{let{id:t}=e;return t==(null==z?void 0:z.activeId)});if(t&&!t.hasOwnProperty("type")&&(F(!0),z.nodes[0].id==(null==z?void 0:z.activeId))){var o,i,n,l,d,s,c,u;let e={cookie_id:null===(o=z.params)||void 0===o?void 0:o.cookie_id,window_id:null===(i=z.params)||void 0===i?void 0:i.window_id,bot_id:null===(n=z.params)||void 0===n?void 0:n.bot_id,title_url:null===(l=z.params)||void 0===l?void 0:l.title_url,url:null===(d=z.params)||void 0===d?void 0:d.url,gtm_id:null===(s=z.params)||void 0===s?void 0:s.gtm_id,ga_client_id:null===(c=z.params)||void 0===c?void 0:c.ga_client_id,device_id:r?2:1,account_id:(null===(u=z.params)||void 0===u?void 0:u.account_id)||(null==P?void 0:P.id)||null};I.EU(e),setTimeout(()=>{K({...z,activeId:z.nodes[1].id.toString()}),F(!1),elementScrollIntoView(),Z(!0)},250)}},[null==z?void 0:z.activeId]),checkFromMyHealth=e=>{var t;return void 0!==(null==e?void 0:e.source)&&((null==e?void 0:null===(t=e.source)||void 0===t?void 0:t.includes("my-health"))&&"string"==typeof(null==e?void 0:e.itemId)?null==e?void 0:e.itemId:void 0)},j=(0,n.useCallback)(async()=>{var e,t,o,i,n,r,l,d,c,u,m,p,g,v;let _=V(),b={...z,params:B?{...B,..._}:_},f=C||z.nodes[0].id.toString();F(!0);let h=checkFromMyHealth(N.query);if(h){let e=await I.cD(h);(null==e?void 0:e._status)===1&&(f=null==e?void 0:null===(r=e._data)||void 0===r?void 0:null===(n=r.payload)||void 0===n?void 0:n.id,b.nodes=[...b.nodes],b.nodes[1]={...null==e?void 0:null===(l=e._data)||void 0===l?void 0:l.payload}),K({...b,activeId:f}),q(!0),F(!1);return}if(F(!0),(null===(e=b.params)||void 0===e?void 0:e.action_id)&&(null===(t=b.params)||void 0===t?void 0:t.action_id)!==""&&(null===(o=b.params)||void 0===o?void 0:o.action_value)&&(null===(i=b.params)||void 0===i?void 0:i.action_value)!==""){let e={...b.params,...(0,a.getCurrentTotalDynamicScore)(b.nodes,f,b.params.action_id)},t=await I.pU(e);(null==t?void 0:t._status)===1&&t._data&&(f=t._data.node.id,b.nodes=[...b.nodes],b.nodes[b.nodes.length-1]={...t._data.node,message:{...t._data}},setTimeout(()=>{let e={...N.query};["current_score","current_selected","current_polls","current_tags","current_keys","current_node_index","total_node","node_id","bot_id","account_id","action_id","action_value","cookie_id","form_submit_meta","gtm_id","ga_client_id","is_new","mode","selected_actions","title_url","url","window_id"].forEach(t=>delete e[t]),N.replace({pathname:N.pathname,query:e},void 0,{shallow:!0})},200))}else I.F3({cookie_id:null===(d=b.params)||void 0===d?void 0:d.cookie_id,window_id:null===(c=b.params)||void 0===c?void 0:c.window_id,bot_id:null===(u=b.params)||void 0===u?void 0:u.bot_id,url:null===(m=b.params)||void 0===m?void 0:m.url,ga_client_id:(null===(p=b.params)||void 0===p?void 0:p.ga_client_id)||s().get("_ga")||"",title_url:null===(g=b.params)||void 0===g?void 0:g.title_url,account_id:null===(v=b.params)||void 0===v?void 0:v.account_id}).then(e=>{(null==e?void 0:e._status)===1&&console.log("* Subot Landing Page Impress")});K({...b,activeId:f}),F(!1)},[]);return(0,n.useEffect)(()=>{s().get(f.ch)?j():(0,w.YR)({condition:()=>!!s().get(f.ch),finished:j})},[]),(0,n.useEffect)(()=>{if(!z.nodes.length||!z.activeId)return;let e=z.nodes.find(e=>e.id==z.activeId);e||K(e=>({...e,activeId:z.nodes[0].id+""}))},[z.activeId]),(0,i.tZ)(M.Provider,{value:{...z,getParams:V,onChange:e=>{K(t=>{if(e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==(null==t?void 0:t.activeId)){let i=t.nodes.findIndex(e=>{let{id:o}=e;return o==(null==t?void 0:t.activeId)});if(-1!==i){var o;let n={...t.nodes[i],_message:{...null===(o=t.nodes[i])||void 0===o?void 0:o._message,...e}};t.nodes[i]=n}}return{...t}})},onSubmit,onPrev:()=>{var e;let t={...z},o=null===(e=t.nodes)||void 0===e?void 0:e.findIndex(e=>{let{id:o}=e;return o==t.activeId});if(o>1){let e=t.nodes[o-1];e&&(t.activeId=e.id.toString())}elementScrollIntoView(),K(t)},onNext:Y,onReset:()=>{F(!0),Z(!1),K(e=>(e.nodes=e.nodes.slice(0,2),e.nodes[1]={...e.nodes[1],_message:void 0},e.activeId=e.nodes[0].id.toString(),{...e})),setTimeout(()=>{F(!1),Z(!0)},250),elementScrollIntoView()},trackingCommon:X,currentNode:H,onGaTracking:W,userInfo:P},children:(0,i.BX)(k.AM,{children:[(0,i.tZ)("div",{ref:R,style:{position:"absolute",top:-150,pointerEvents:"none"}}),(0,i.BX)(k.A2,{className:l()(U&&"loading"),children:[(0,i.tZ)(g.g,{className:"lp_loading-icon"}),"Verifying..."]}),null===(t=z.nodes)||void 0===t?void 0:t.map((e,t)=>{if(e.id.toString()===(null==z?void 0:z.activeId)){if(!e.hasOwnProperty("type"))return(0,i.tZ)(S.Z,{node:e},e.id);{let o;return o=(null==e?void 0:e.position)===h.Ff.SSO?E.B[h.Ff[null==e?void 0:e.position].valueOf()]:E.B[h.Jq[null==e?void 0:e.type].valueOf()],(null==e?void 0:e.is_multi_select)&&e.type!==h.Jq.POLL&&(o=E.B.MULTIPLE),o?(0,i.tZ)(x.Z,{node:e,indexNumber:t,NodeComponent:o,isFromMyHealth:G,isMobile:r},e.id):null}}return null})]})})}}}]);