(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4766],{11024:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(33919),a=n(67294),o=n(75529);n(47856);const i=e=>{var{size:t="base",type:n="regular"}=e,i=(0,r._)(e,["size","type"]);return a.createElement(o.T,Object.assign({size:t,weight:"caption"===n?"bold":n,"data-size":t,"data-type":n,"data-word-wrap":i.wordWrap,"data-is-uppercase":i.isUppercase},i))}},76496:function(e,t,n){"use strict";n.d(t,{c:function(){return p},u:function(){return s}});var r=n(33919),a=n(67294),o=n(87474),i=n(14646),c=n(86826);function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const s=e=>{const t=(0,a.useRef)("");(0,a.useEffect)((()=>((0,r.a)(void 0,void 0,void 0,(function*(){var n,r,a,i,c;if(!t.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),t.current=e}if(null===(r=null===(n=window.localStorage)||void 0===n?void 0:n.setItem)||void 0===r||r.call(n,"fbClientIp",JSON.stringify({client_ip_address:(null===(a=t.current)||void 0===a?void 0:a.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null===e||void 0===e?void 0:e.id){const[t,n,r,a,s,u]=yield Promise.all([e.email?l(e.email):null,e.phone?l(e.phone):null,e.birthday?l(e.birthday.split("-").join("")):null,e.gender?"m":"f",e.city_name?l(e.city_name).then((e=>e.replace(/\s/g,""))):null,e.name?l(e.name):null]);(0,o.g)("_fbc"),(0,o.g)("_fbp");const d={user_id:e.id};u&&(d.fn=u),t&&(d.em=t),n&&(d.ph=n),r&&(d.db=r),s&&(d.ct=s),null===(c=null===(i=window.localStorage)||void 0===i?void 0:i.setItem)||void 0===c||c.call(i,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[e])},u={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"\u1796\u1796\u17c4\u17c7","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e23\u0e23\u0e20\u0e4c","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},d={[i.L.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[i.L.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[i.L.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[i.L.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[i.L.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.L.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.L.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[i.L.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[i.L.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[i.L.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};const p=e=>{const{locale:t}=(0,c.u)();return{isPregnancy:(0,a.useMemo)((()=>decodeURI(e.replace(/\//gi,"")).includes(u[t])),[]),isParenting:(0,a.useMemo)((()=>{var n;return decodeURI(e.replace(/\//gi,"")).includes(null===(n=d[t])||void 0===n?void 0:n.parenting)}),[]),type:(0,a.useMemo)((()=>function(e,t){const n=e.split("/");for(const r in t){const e=t[r];if(n.includes(e))return r}return null}(e,d[t])),[e,t])}}},56632:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(26265),a=n(85893),o=n(48560);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var c=function(e){return(0,a.jsx)(o.B,function(e){for(var t=1;t [data-type='confirm']{","{width:100%;max-width:100%;max-height:90%;transform:translateX(-50%);top:unset;&[data-open='false']{bottom:calc(-100% - 500px);}&[data-open='true']{bottom:0;overflow-y:auto;}}","{&[data-open='false']{top:calc(-150% - 500px);}}&[data-open='true']{height:unset;}}.popup-content{.close-button{","{display:none;}}.header{border-bottom:none;","{display:none;}}.content{display:flex;flex-direction:column;align-items:center;padding:1.5rem 2rem 2rem;","{padding:4rem 1rem 2rem;}.welcome-image{height:80px;margin-bottom:2rem;}.welcome-header-container{display:flex;flex-direction:column;align-items:center;margin-bottom:1.5rem;text-align:center;.welcome-title{margin-bottom:0.5rem;}.welcome-description{width:80%;}}.welcome-perks-container{padding:0 1rem;margin-bottom:2rem;.perk-item{display:flex;align-items:center;:not(:last-child){margin-bottom:1rem;}.perk-image{width:2rem;height:2rem;margin-right:1rem;border-radius:50%;object-fit:cover;}}}.welcome-button-container{width:100%;.welcome-button{width:100%;}}}}}"],x.M.mbDown,x.M.mbUp,x.M.mbDown,x.M.mbDown,x.M.mbDown),P=n(76278),S=n(26381),A=n(95983),I=n(50572),T=n(5886),L=n(18833),D=n(43196),U=n(13199),N=n(62383),R=n(34155);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t @hhgtech/hhg-components/lead"]}}),W=(0,f.default)((function(){return n.e(1018).then(n.bind(n,21018)).then((function(e){return e.LeadCss}))}),{ssr:!1,loadableGenerated:{webpack:function(){return[21018]},modules:["../components/templates/appWrappers/appSharedWrapper.tsx -> ./leadCss"]}}),H=(0,f.default)((function(){return Promise.all([n.e(6359),n.e(7026),n.e(5918)]).then(n.bind(n,63813)).then((function(e){return e.OnBoardingSSOModal}))}),{loading:function(){return null},ssr:!1,loadableGenerated:{webpack:function(){return[63813]},modules:["../components/templates/appWrappers/appSharedWrapper.tsx -> ../../organisms/onBoardingSSOModal"]}}),B=function(e){var t=e.isAdmin,n=e.children,r=(0,S.h)(),o=(0,g.Z)().formatMessage,f=r.locale,w=r.replace,O=r.query,x=r.asPath,_=(0,l.useContext)(T.I),j=_.state,E=_.pushNotifications,M=_.dispatch,B=j||{},z=B.userInfo,$=B.showQuestionForExperPopup,V=B.isLoggedIn,X=(0,l.useState)(!1),F=X[0],G=X[1],Q=(0,l.useState)(!1),q=Q[0],Y=Q[1];(0,l.useEffect)((function(){"on-boarding"===(null===O||void 0===O?void 0:O.source)&&(G(!0),(0,D.nP)(!0))}),[null===O||void 0===O?void 0:O.source]),(0,l.useEffect)((function(){V&&((null===z||void 0===z?void 0:z.email)||"").includes("@facebook.com")&&Y(!0)}),[z]),(0,l.useEffect)((function(){("expert"===(null===z||void 0===z?void 0:z.role)||"moderator"===(null===z||void 0===z?void 0:z.role))&&(0,c.Z)(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M({type:I.H.LOADING_QUESTION_FOR_EXPERT,payload:!0}),e.next=3,(0,y.cA)((0,y.cN)(v.yy.USERS.COUNT_EXPERT_QUESTIONS,{_locale:f}),"GET");case 3:r=e.sent,M({type:I.H.UPDATE_QUESTION_FOR_EXPERT,payload:(null===r||void 0===r||null===(t=r.data)||void 0===t||null===(n=t.total)||void 0===n?void 0:n.question)||0}),M({type:I.H.LOADING_QUESTION_FOR_EXPERT,payload:!1});case 6:case"end":return e.stop()}}),e)})))()}),[z]),(0,l.useEffect)((function(){return function(){localStorage.removeItem("paramsSSOTransfer")}}),[]),(0,u.u)(z);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(b.default,{children:[(0,a.jsx)("link",{rel:"preconnect",href:"https://cdn-together.".concat(P.domainLocales[f])}),(0,a.jsx)("link",{rel:"preconnect",href:"https://cdn.".concat(P.domainLocales[f]),crossOrigin:"true"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://id.hellobacsi.blog/",crossOrigin:"true"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com",crossOrigin:"true"}),(0,a.jsx)("link",{rel:"dns-prefetch",href:"https://cdn.".concat(P.domainLocales[f])}),(0,a.jsx)("link",{rel:"dns-prefetch",href:"https://id.hellobacsi.blog/"}),(0,a.jsx)("link",{rel:"dns-prefetch",href:"https://fonts.googleapis.com"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"true"}),(0,a.jsx)("script",{async:!0,src:"https://securepubads.g.doubleclick.net/tag/js/gpt.js"}),!t&&(0,a.jsx)("script",{src:"https://subot.hellobacsi.blog/"+"subot.js?v=".concat(1719376681605),async:!0,"data-api":"https://subot.hellobacsi.blog/","data-cookie-domain":P.domainLocales[f],"data-site-id":A.Mw?s.L[f].SITE_ID:1},"su-script")]}),(0,a.jsx)("script",{id:"gpt-init",async:!0,dangerouslySetInnerHTML:{__html:"\n window.googletag = window.googletag || { cmd: [] };\n googletag.cmd.push(function () {\n googletag.pubads().collapseEmptyDivs(true);\n // googletag.pubads().enableSingleRequest();\n googletag.pubads().enableLazyLoad({\n fetchMarginPercent: 300,\n renderMarginPercent: ".concat(f===m.L.Vietnam?40:30,",\n mobileScaling: 2.0,\n });\n googletag.enableServices();\n });\n ")}}),(0,a.jsx)(N.Z,{children:!t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{apiUrl:"https://lead.hellohealthgroup.com/",apiSubotUrl:(R.env.NEXT_PUBLIC_SUBOT_API||"https://subot.hellohealthgroup.com/frontend/api/").replace("frontend/api/",""),siteDomain:P.domainLocales[f],siteId:String(A.Mw?s.L[f].SITE_ID:1),locale:f}),(0,a.jsx)(W,{})]})}),(0,a.jsx)(L.EW,{children:(0,a.jsx)(d.tY,{locale:f,children:(0,a.jsxs)(p.a,{userInfo:z,locale:f,router:r,pushNotifications:E,sanitizeFunction:U.Nw,formatMessage:o,env:{togetherBasePath:"/community",publicSSO:"https://id.hellobacsi.blog/",togetherBaseApiUrl:"https://together.hellohealthgroup.com/",isMarryBaby:A.fn,subotApiUrl:"https://subot.hellohealthgroup.com/",careBaseApiUrl:"https://health-care.hellohealthgroup.com/",discoverBaseApiUrl:A.Vi.NEXT_PUBLIC_DISCOVER_BASE_API_URL,discoverBaseProdApiUrl:A.Vi.NEXT_PUBLIC_DISCOVER_BASE_PROD_API_URL,marryBabyApiUrl:A.Vi.NEXT_PUBLIC_DISCOVER_MARRY_BABY_BASE_API_URL,marryBabyProdApiUrl:A.Vi.NEXT_PUBLIC_DISCOVER_MARRY_BABY_BASE_PROD_API_URL,premiumBaseApiUrl:A.Vi.NEXT_PUBLIC_PREMIUM_URL},children:[n,q&&(0,a.jsx)(H,{initialEmailData:C(C({name:null===z||void 0===z?void 0:z.name},-1!==(null===z||void 0===z?void 0:z.gender)&&{gender:String(null===z||void 0===z?void 0:z.gender)}),{},{birthday:null===z||void 0===z?void 0:z.birthday}),onClose:function(){return Y(!1)}}),V&&("expert"===(null===z||void 0===z?void 0:z.role)||"moderator"===(null===z||void 0===z?void 0:z.role))&&(0,a.jsx)(h.x,{open:$,onClose:function(){return M({type:I.H.SHOW_QUESTION_FOR_EXPERT_POPUP,payload:!1})},profileModalProps:{zIndex:1e3},children:(0,a.jsx)(h.y,{authorProps:{userId:null===z||void 0===z?void 0:z._togetherUserId,avatar:null===z||void 0===z?void 0:z.avatar,name:null===z||void 0===z?void 0:z.name,username:null===z||void 0===z?void 0:z.username,role:null===z||void 0===z?void 0:z.role,title:null===z||void 0===z?void 0:z.title,hasQuickBooking:!0},selectedTab:h.z.Care,hideAnswerTab:-1===A.MN.indexOf(A.Vi.NEXT_PUBLIC_DEPLOY_LOCALE||""),hideQuestionTab:-1===A.MN.indexOf(A.Vi.NEXT_PUBLIC_DEPLOY_LOCALE||""),showSkipQuestionTag:!0,rolesToShowQuestionsTab:["expert","moderator"],currentPageUrl:(0,y.Ow)(f,x)})})]})})}),(0,a.jsx)(k,{isOpen:F,onClose:function(){G(!1),(0,D.nP)(!1);var e=new URLSearchParams(window.location.search);e.delete("source");var t=e.toString();w(window.location.pathname.slice(A.GW.length)+(t?"?"+e.toString():""),void 0,{shallow:!0})}}),(0,a.jsx)("div",{id:"mantine-modal-target",style:{position:"relative",zIndex:305}})]})}},62383:function(e,t,n){"use strict";var r=n(85893),a=n(74047),o=n(52700),i=n(4706),c=n(8127),l=n(44102),s=n(20775),u=n(26265);function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var a=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,l.Z)(this,n)}}var p=function(e){(0,c.Z)(n,e);var t=d(n);function n(){var e;(0,a.Z)(this,n);for(var r=arguments.length,o=new Array(r),c=0;c]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,b=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,g=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,v=/]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,y=/]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,w=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,O=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,x=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,_=/]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,j=/]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,k=function(e){var t=e.url,n=e.text,r=e.method,a=n.indexOf(n.trimStart()),o=n.trimEnd().length,i=n.substring(0,a),c=n.substring(a,o),l=n.substring(o);return"edit"===r?"".concat(i,'').concat(c,"").concat(l):"display"===r&&(t.startsWith("http://")||t.startsWith("https://"))?"".concat(i,'').concat(c,"").concat(l):n},E=function(e,t){return e.replace(g,(function(e,n,r){return k({text:r||n,url:n,method:t})})).replace(_,(function(e,n,r){return k({text:r||n,url:n,method:t})}))},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.replace(w,(function(e,n,r){var a=t.find((function(e){return String(e.id)===n}));if(!a){if(!r)return"";var o="";return r.replace(/\+name="([^<"]+)"/i,(function(e,t){return o=t,e})),'').concat(o,"")}return'').concat(a.name,"")}))},S=30,A=function(e,t){var n=[];return e.replace(v,(function(e,t,r){return n.push(t),e})).replace(w,(function(e,t,r){return n.push(t),e})),t?n:Array.from(new Set(n)).slice(0,S)},I=function(e){var t;return[].concat((0,c.Z)(function(e){var t=[];return e.replace(/(\&)+/g,"&").replace(b,(function(e,n,r){return'="'!==n&&'data-url="true">'!==n&&t.push(r),e})),t}(e)),(0,c.Z)((null===(t=e.match(f))||void 0===t?void 0:t.map((function(e){var t,n,r=null===(t=e.match(/data-href="([^"]*)"/im))||void 0===t?void 0:t[1],a=null===(n=e.match(/>(.*?)<\/mocka>/im))||void 0===n?void 0:n[1];return r||a})))||[])).filter((function(e){return!!e}))},T=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};var L=function(e){var t,n;return null===(t=e.replace(/(\ )+/g," "))||void 0===t||null===(n=t.replace(/(\u200c|‌)+/g,""))||void 0===n?void 0:n.replace(f,(function(e,t,n){var r,a=null===(r=t.match(/data-href="([^"]*)"/im))||void 0===r?void 0:r[1];return!a||a===n||n.match(O)?n:a?'').concat(n,""):'').concat(n,"")})).replace(b,(function(e,t,n){if('="'!==t&&'data-url="true">'!==t){var r=new URL(n),a=C.some((function(e){return r.origin.endsWith(e)}))?n:n.toLowerCase(),o=a.startsWith("http")?"":" https://",i="".concat(o).concat(a);return k({text:i,url:i,method:"edit"})}return e})).replace(_,(function(e,t,n){return k({text:n||t,url:t,method:"edit"})}))},D=function(e){return e.replace(j,(function(e,t){var n=document.createElement("div");n.innerHTML=e;var r=n.firstChild;return(null===r||void 0===r?void 0:r.innerText)!==(null===r||void 0===r?void 0:r.getAttribute("data-bad-word"))?t:e}))},U=function(e){return e.replace(j,"$1")},N=function(e){return e.replace(/]*>(.+)<\/font>/gim,(function(e,t){return t.replace(/]*>(.+)<\/u>/gim,"$1")}))},R=function(e){return function(e){var t;return m(null===(t=e.replace(/(\ )+/g," ").replace(/(\&)+/g,"&"))||void 0===t?void 0:t.replace(/(\u200c|‌)+/g,"").replace(b,(function(e,t,n){return'="'!==t&&'data-url="true">'!==t?'').concat(n,""):e})).replace(f,(function(e,t,n){var r,a=null===(r=t.match(/data-href="([^"]*)"/im))||void 0===r?void 0:r[1];return a?'').concat(n,""):'').concat(n,"")})))}(function(e){return e.replace(v,(function(e,t,n){return'[mention+id="'.concat(t,'"+name="').concat(n,'"]')}))}(U(e)))},M=["hellobacsi.blog","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn","hellohealth.questionpro.com","hellobacsivn.page.link","hellohealthquiz.typeform.com"].concat((0,c.Z)([])),C=["hellohealthquiz.typeform.com"],Z=function(e){return e.match(x)?e.startsWith("https://")||e.startsWith("http://")?e:"https://".concat(e):""},W=function(e,t){var n=t.filter(Boolean);return e&&n.length>0?U(e).replace(new RegExp("\\b(".concat(n.map((function(e){return T(e)})).join("|"),")\\b"),"gi"),(function(e,t){var n=document.createElement("mocka");return n.setAttribute("data-bad-word",t),n.setAttribute("data-error","true"),n.innerText=t,"".concat(n.outerHTML)})):e},H=function(e){return e.replace(y,(function(e,t,n,r){if(r!==n){var a=n.split(" "),o=a.findIndex((function(e,t){var n=a.slice(0,t+1).join(" ");return!r.startsWith(n)}));if(0===o)return"@".concat(r);var i=(o<0?a:a.slice(0,o)).join(" "),c=r.slice(i.length).trim();return console.log(o,i,c),'').concat(i," ").concat(c," ")}return e}))},B=function(e){var t;if(!e.includes("youtu"))return"";return(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""},z=function(e){var t="";return e.replace(/(?:https?:\/\/)?(?:www.|web.|m.)?facebook.com\/(?:video.php|photo.php|watch)?\/?\?v=(\d+)|\S+\/videos\/((\S+)\/(\d+)|(\d+))\/?/gim,(function(){for(var e=arguments.length,n=new Array(e),r=0;r2)return t[2]},V=function(e,t,r,o,c){return"string"===typeof e?Promise.resolve(e):(0,i.Z)(a().mark((function i(){var l,s,p,m,f,b,g,v;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(s=/image/i.test(e.type),p=s?"image":"video",m=new FormData,!s){a.next=17;break}if(!e.type.startsWith("image/gif")){a.next=8;break}m.append(p,e),a.next=15;break;case 8:return a.next=10,n.e(1741).then(n.bind(n,41741));case 10:return f=a.sent,a.next=13,f.default(e,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});case 13:b=a.sent,m.append(p,b);case 15:a.next=18;break;case 17:m.append(p,e);case 18:return g=r?d.Cl:d.cA,a.next=21,g((0,d.cN)(s?r?u.qf.COMMENT.IMAGE_UPLOAD:u.yy.COMMENT.IMAGE_UPLOAD:u.qf.VIDEO_UPLOAD,{_locale:t}),"POST",h({data:m,timeout:o||3e4},c));case 21:return v=a.sent,a.abrupt("return",(null===v||void 0===v||null===(l=v.data)||void 0===l?void 0:l[p])||"");case 23:case"end":return a.stop()}}),i)})))()}},4706:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},74047:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},52700:function(e,t,n){"use strict";function r(e,t){for(var n=0;n