(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[7638],{"7/Cf":function(e,o,t){"use strict";t.d(o,{dh:function(){return getHhgIdFromCookie},lT:function(){return getSubotCookieId},VV:function(){return getUserIdFromCookie},Us:function(){return getUserInfoFromCookie}});var i=t("iVi/"),n=t("p46w"),l=t.n(n),r=t("Q6jF"),a=t("9brV"),d=window.atob&&window.atob.bind(window)||function(e){let o=String(e).replace(/=+$/,"");if(o.length%4==1)throw Error("'atob' failed: The string to be decoded is not correctly encoded.");let t="";for(let e=0,i=0,n,l=0;n=o.charAt(l++);~n&&(i=e%4?64*i+n:n,e++%4)&&(t+=String.fromCharCode(255&i>>(-2*e&6))))n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return t};let getUserIdFromCookie=e=>{let o=i.parse(e||""),t=o[a.ty],n=t||l().get(a.ty)||"";try{let e=n.split(".")[1],o=e.replace(/-/g,"+").replace(/_/g,"/"),t=decodeURIComponent(d(o).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(t).sub}catch(e){return""}},getUserInfoFromCookie=e=>{let o=i.parse(e||""),t=o[a.ty],n=t||l().get(a.ty)||"";try{let e=n.split(".")[1],o=e.replace(/-/g,"+").replace(/_/g,"/"),t=decodeURIComponent(d(o).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join("")),i=JSON.parse(t);return{email:i.email,id:i.sub}}catch(e){return{email:"",id:0}}},getHhgIdFromCookie=e=>{let o=i.parse(e||""),t=o["hhg-id"];return t||l().get("hhg-id")||""},getSubotCookieId=e=>{if(e)return l().set("hhg-id",e),e;let o=getHhgIdFromCookie();if(o)return o;let t=(0,r.A)();return l().set("hhg-id",t),t}},"/tE8":function(e,o,t){"use strict";t.d(o,{DT:function(){return validateEmail},NM:function(){return checkMobile},qU:function(){return validateURL}});var i=t("9brV");let n=/(?:phone|windows\s+phone|ipod|blackberry|(?:android|bb\d+|meego|silk|googlebot) .+? mobile|palm|windows\s+ce|opera mini|avantgo|mobilesafari|docomo|kaios)/i,l=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,r=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,checkMobile=e=>{if(i.kU)return n.test(e||"");let o=e||(i.kU?"":navigator.userAgent);return l.test(o)||r.test(o.substring(0,4))},validateEmail=e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase()),validateURL=e=>{try{return new URL(e),!0}catch(e){return!1}}},johO:function(e,o,t){"use strict";t.d(o,{R:function(){return Loading}});var i=t("BGKE"),n=t("tuDO"),l=t("dDsW"),r=t("rBCA");let a=(0,r.A)("div",{target:"e1tazl0y0"})("display:flex;align-items:center;justify-content:center;padding:1em;"),Loading=e=>{let{className:o,size:t="md"}=e,{formatMessage:r}=(0,l.A)(),d=r({id:"player.loading",defaultMessage:"Loading"});return(0,i.Y)(a,{className:o,children:(0,i.Y)(n.B,{size:t,color:"transparent",isLoading:!0,children:d})})}},"n/tb":function(e,o,t){"use strict";t.d(o,{D1:function(){return h},JV:function(){return f},Pe:function(){return p},QP:function(){return g},Se:function(){return r},TF:function(){return m},U9:function(){return c},Z9:function(){return d},Zu:function(){return u},cT:function(){return s},dr:function(){return b},fO:function(){return v},kt:function(){return x},yR:function(){return a}});var i=t("rBCA"),n=t("CL9C"),l=t("iBNF");let r=(0,i.A)("div",{target:"e1c6pofg0"})("margin:24px 0;.big-divider{border:0;height:8px;background-color:#f7f9fc;margin:24px 0;}"),a=(0,i.A)("div",{target:"e1c6pofg1"})("margin:12px 0 24px 0;",n.M.mbDown,"{width:calc(100% + 2rem);max-width:unset;margin-right:-1rem;margin-left:-1rem;}.container{",n.M.mbDown,"{padding:4px 16px 32px 16px;}",n.M.mbUp,"{padding:8px 4px 32px 4px;}}&[data-custom-columns='false']{.section{",n.M.mbUp,"{margin-right:24px;}}}.section{",n.M.mbDown,"{max-width:283px;margin:0 16p 0 0x;}.grid-layout{",n.M.mbUp,"{grid-column-gap:24px;padding:0 24px 0 0;height:100%;}",n.M.mbDown,"{grid-column-gap:12px;padding:0 12px 0 0;}}}&[data-column-count='3']{.section{.grid-layout{",n.M.mbUp,"{padding:0 54px 0 0;}}}}"),d=(0,i.A)("div",{target:"e1c6pofg2"})("width:100%;margin:0 0 8px 0;border-radius:",l.w.borderRadius,";box-shadow:0px 16px 24px rgba(0,0,0,0.06),0px 2px 8px rgba(0,0,0,0.04),0px 0px 1px rgba(0,0,0,0.04);overflow-x:hidden;",n.M.mbDown,"{max-width:271px;min-height:342px;}",n.M.mbUp,"{max-width:342px;min-height:388px;height:100%;}.post-divider{border-top:0.5px solid #e4e8ec;border-bottom:none;margin:0;}&[data-home='true']{",n.M.mbDown,"{max-width:271px;min-height:318px;}",n.M.mbUp,"{max-width:368px;min-height:294px;}}"),c=(0,i.A)("div",{target:"e1c6pofg3"})("position:absolute;top:0;display:block;width:100%;",n.M.mbDown,"{height:152px;}",n.M.mbUp,"{height:236px;}background-position:center;background-repeat:no-repeat;background-size:cover;border-radius:",l.w.borderRadius,";.thumbnail-container{display:flex;width:100%;height:100%;align-items:flex-end;justify-content:center;.thumbnail{position:absolute;z-index:10;bottom:0;",n.M.mbDown,"{width:80px;height:80px;}",n.M.mbUp,"{width:100px;height:100px;}margin:auto;border-radius:50%;}}&[data-home='true']{",n.M.mbUp,"{height:152px;}.thumbnail-container{.thumbnail{",n.M.mbDown,"{bottom:0;}",n.M.mbUp,"{bottom:33px;}}}}"),s=(0,i.A)("div",{target:"e1c6pofg4"})("position:relative;width:100%;a{text-decoration:none;}",n.M.mbDown,"{margin-top:112px;padding:56px 16px 16px 16px;}",n.M.mbUp,"{margin-top:176px;padding:69px 16px 16px 16px;}background:white;border-radius:20px 20px 6px 6px;text-align:center;.statictis{display:flex;justify-content:space-around;",n.M.mbDown,"{magin-top:4px;}",n.M.mbUp,"{margin-top:8px;}}.button{width:100%;margin-top:24px;}&[data-home='false']{.statictis-item{",n.M.mbUp,"{display:flex;flex-direction:column;flex:1;.number{margin-right:4px;}}}}&[data-home='true']{",n.M.mbUp,"{margin-top:77px;padding:54px 16px 16px 16px;}.statictis{",n.M.mbUp,"{margin-top:18px;}}}"),u=(0,i.A)("div",{target:"e1c6pofg5"})("display:flex;align-items:center;justify-content:space-between;",n.M.mbDown,"{padding:11px 8px;}",n.M.mbUp,"{padding:10px 16px;}.info{display:flex;align-items:center;text-decoration:none;}.topic-thumbnail{",n.M.mbDown,"{width:32px;height:32px;}",n.M.mbUp,"{width:40px;height:40px;}margin-right:8px;}.title{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-overflow:ellipsis;}&[data-custom]{.follow-btn{padding:6px 12px;border-color:",l.w.colors.primaryActive,";color:",l.w.colors.primaryActive,";font-size:13px;font-weight:bold;line-height:20px;white-space:nowrap;}}&[data-has-followed='true']{.follow-btn{span{display:flex;align-items:center;}img{width:18px;height:18px;margin-right:8px;}border-color:",l.w.colors.gray300,";color:",l.w.colors.gray800,";}}"),p=(0,i.A)("a",{target:"e1c6pofg6"})("display:flex;align-items:center;justify-content:center;padding:0 0 16px 0;text-decoration:none;p{color:",l.w.colors.primaryActive,";",n.M.mbDown,"{font-size:12px;font-weight:600;line-height:18px;}",n.M.mbUp,"{font-weight:bold;font-size:14px;line-height:22px;}}img{",n.M.mbDown,"{width:16px;height:16px;}",n.M.mbUp,"{width:18px;height:18px;}}"),g=(0,i.A)("div",{target:"e1c6pofg7"})("display:flex;.line{border-right:5px solid #2d87f3;margin:4px 0;margin-right:16px;}h5{color:",l.w.colors.gray800,";margin-bottom:4px;",n.M.mbUp,"{padding:0px 16px;}}"),m=(0,i.A)("div",{target:"e1c6pofg8"})("padding:16px;",n.M.mbDown,"{min-height:262px;}",n.M.mbUp,"{min-height:332px;}.post-title{display:-webkit-box;overflow:hidden;margin-top:16px;-webkit-box-orient:vertical;-webkit-line-clamp:2;}"),h=(0,i.A)("div",{target:"e1c6pofg9"})("display:flex;justify-content:space-between;.option-icon{width:32px;height:32px;cursor:pointer;}"),v=(0,i.A)("div",{target:"e1c6pofg10"})("display:flex;align-items:center;.avatar-container{position:relative;margin-right:8px;.avatar{width:40px;height:40px;border-radius:50%;}.badge{position:absolute;right:0;bottom:0;width:14px;height:14px;}}.author-info{.author-name{display:flex;align-items:center;.role{height:fit-content;padding:0 8px;margin-left:4px;background:#ff6f4d;border-radius:10px;color:white;font-size:8px;font-weight:600;line-height:18px;}}.speciality{.position-container{}}}"),f=(0,i.A)("div",{target:"e1c6pofg11"})("margin-top:8px;line-height:1.5;word-break:break-word;.post-content-replying{display:inline-block;margin-right:5px;color:",l.w.colors.primaryBase,";cursor:pointer;&.tag-only{margin-right:0;}}.post-content{display:inline;white-space:pre-wrap;/* > *:first-of-type,*/\n > mention:first-of-type ~ *{&:not(ul),&:not(ol){display:inline-block;}}> mention:first-of-type{margin-right:5px;}&.has-see-more{*:last-child{&:not(ul),&:not(ol){display:inline;}}}img{width:100%;height:unset;}ul,ol{display:block;padding-left:1rem;list-style-position:inside;}ol{list-style-type:decimal;}ul{list-style-type:disc;}mention{padding-right:4px;color:#1890ff;:hover{text-decoration:underline;}}}.see-more-text{cursor:pointer;}"),b=(0,i.A)("div",{target:"e1c6pofg13"})("display:flex;justify-content:space-between;padding:14px 16px;.like-comment{display:flex;.action{display:flex;align-items:center;margin-right:24px;color:",l.w.colors.gray800,";text-decoration:none;background:transparent;img{width:24px;height:24px;margin-right:4px;cursor:pointer;}}}.write-comment{display:flex;align-items:center;color:",l.w.colors.primaryActive,";cursor:pointer;font-size:14px;font-weight:bold;line-height:22px;text-decoration:none;img{width:18px;height:18px;}}"),x=(0,i.A)("div",{target:"e1c6pofg14"})("display:inline-block;width:3px;height:3px;margin-bottom:calc(0.5em - 3px);background-color:",l.w.colors.gray400,";border-radius:50%;")},jgjd:function(e,o,t){"use strict";var i=t("BGKE"),n=t("+OUp"),l=t("dDsW"),r=t("9brV");o.A=(0,n.forwardRef)((e,o)=>{let{onFinish:t,onClick:a,isFinished:d,resendLabel:c,className:s}=e,[u,p]=(0,n.useState)(r.H5),g=(0,n.useRef)(),m=(0,n.useRef)(),{formatMessage:h}=(0,l.A)();m.current=t;let v=(0,n.useCallback)(()=>{let e=r.H5;p(e),clearInterval(g.current),g.current=setInterval(()=>{if(p(e-=1),0===e){var o;null===(o=m.current)||void 0===o||o.call(m,!0),clearInterval(g.current)}},1e3)},[]),f=(0,n.useCallback)(()=>{p(0),clearInterval(g.current)},[]);return(0,n.useImperativeHandle)(o,()=>({reset:v,cancel:f,isFinished:0===u})),(0,n.useEffect)(()=>(v(),()=>{clearInterval(g.current)}),[]),(0,i.FD)("div",{className:s,onClick:a,children:[c||h({id:"subot.resendOTP.button",defaultMessage:"Resend"}),u>0&&!d&&" (".concat(u,"s)")]})})},XNaN:function(e,o,t){"use strict";t.d(o,{u:function(){return OTPInfoForm}});var i=t("BGKE"),n=t("+OUp"),l=t("tuDO"),r=t("E+oP"),a=t.n(r),d=t("wUmw"),c=t("dDsW"),s=t("RB7Y"),u=t("LSb+"),p=t("aVqH"),g=t("bPK4"),m=t("mYBQ"),h=t("4cPY"),v=t("PAs/"),f=t("Rlzi"),b=t.n(f),x=t("jgjd"),w=t("rBCA"),y=t("iBNF"),k=t("CL9C"),C=t("9brV");let A=(0,w.A)("div",{target:"e1hkw0jq0"})("margin:0 auto;background:#f7f9fc;border-radius:",y.w.borderRadius,";",k.M.mbDown,"{padding:16px;}",k.M.tdDown,"{padding:24px;}",k.M.mbUp,"{padding:32px;}.user-info-form{.input-row{",k.M.mbDown,"{margin-bottom:16px;}",k.M.tdDown,"{margin-bottom:18px;}",k.M.mbUp,"{margin-bottom:20px;}.address-dropdown > ul{z-index:20000;max-height:250px;overflow-y:auto;}&.error{margin-bottom:0;}}label{display:block;margin-bottom:6px;color:",y.w.colors.gray600,";font-size:13px;font-weight:bold;}input[type='tel'],input[type='number']{width:100%;padding:12px 16px;border:solid 1px ",y.w.colors.gray200,";background:#fff;border-radius:",y.w.borderRadius,";&[disabled]{background-color:",y.w.colors.gray100,";}}input[type='number']::-webkit-inner-spin-button,input[type='number']::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;}button{width:100%;}.error-message{display:block;padding-bottom:20px;color:",y.w.colors.red700,";font-weight:",y.w.sizes.fwRegular,";}.submit-btn{padding:12px 24px;background-color:",y.w.colors.primaryBase,";border-radius:",y.w.borderRadius,";color:#fff;cursor:pointer;font-size:16px;font-weight:700;line-height:24px;transition:background-color 0.3s,border-color 0.3s;display:flex;justify-content:center;&:hover{background-color:",y.w.colors.primaryHover,";}&[disabled]{background-color:",y.w.colors.gray200,";color:#bfbfbf;cursor:not-allowed;}.spinner{margin-right:20px;}}.submit-btn-row{",k.M.mbUp,"{margin-bottom:16px;}",k.M.tdDown,"{margin-bottom:14px;}",k.M.mbDown,"{margin-bottom:12px;}.subot-checkbox{display:flex;align-items:flex-start;margin:0;cursor:pointer;&__input{position:relative;display:block;overflow:hidden;width:18px;height:18px;box-sizing:border-box;padding:0;margin-right:10px;&:before{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;background-color:",y.w.colors.primaryBase,";background-image:url('",C.nS,"/checkbox.svg');background-position:center;background-repeat:no-repeat;background-size:120%;content:'';opacity:0;transition:0.3s all ease;}&:checked:before{opacity:1;transition:0.3s all ease;}}&__label{flex:1;font-weight:400;line-height:1.4;}}}}"),M=(0,w.A)("div",{target:"e1hkw0jq1"})("position:relative;.PhoneInputCountry{background-color:#f2f2f2;.PhoneInputCountrySelectArrow{display:none !important;}}.icon-edit-phone{width:1em;height:1em;position:absolute;right:16px;top:17px;cursor:pointer;path{fill:",y.w.colors.gray600,";}}");t("Dfpe");let OTPInfoForm=e=>{let{className:o,style:t,actions:r,countryCode:f,phoneNumber:w,areaCode:y,callBack:k}=e,C=(0,n.useRef)(),[P,S]=(0,n.useState)(!1),[D,_]=(0,n.useState)(!1),[Y,N]=(0,n.useState)(!1),[E,z]=(0,n.useState)(!1),{register:U,formState:{errors:I},control:T,trigger:L,getValues:F,setValue:B}=(0,d.mN)(),{formatMessage:R}=(0,c.A)(),handleSendOTP=async e=>{e.preventDefault();let o=F(),t=(0,s.lq)(o.phone||"");if((null==t?void 0:t.nationalNumber)&&(null==t?void 0:t.countryCallingCode)){_(!0);try{var i;let e=await (0,p.px)((0,g.PU)(u.PATHS.SUBOT.POST_SEND_OTP),"POST",{data:{phone_number:t.nationalNumber,area_code:"+".concat(t.countryCallingCode)}});if(_(!1),(null==e?void 0:e._status)===1){E&&(S(!1),C.current.reset()),z(!0),setTimeout(()=>{let e=document.querySelector(".input-otp-code");e&&(e.focus(),e.scrollIntoView({block:"center"}))},100);return}if((null==e?void 0:e._status)===0&&(null==e?void 0:null===(i=e._messages)||void 0===i?void 0:i[0])==="This phone number was verified"){C.current&&C.current.cancel(),(0,m.showNotification)({title:"",message:"Số điện thoại n\xe0y đ\xe3 được x\xe1c minh.",type:"success"});let e=r.find(e=>e.type===v.rQ.USER_SUBMIT_SEND);e&&k(e,o.phone);return}throw Error()}catch(e){_(!1),C.current&&C.current.cancel(),showMessageSomethingWrong()}}},handleOnVerify=async(e,o)=>{if(e.preventDefault(),N(!0),await L(),a()(I)){let e=F(),{number:t}=e,i=(0,s.lq)(e.phone||"");if((null==i?void 0:i.nationalNumber)&&(null==i?void 0:i.countryCallingCode))try{let n=await (0,p.px)((0,g.PU)(u.PATHS.SUBOT.POST_VERIFY_OTP),"POST",{data:{phone_number:i.nationalNumber,area_code:"+".concat(i.countryCallingCode),code:t}});if(N(!1),(null==n?void 0:n._status)===1){(0,m.showNotification)({title:"",message:R({id:"subot.verifyOTP.success.message"}),type:"success"}),k(o,e.phone);return}throw Error()}catch(e){(0,m.showNotification)({title:"",message:R({id:"validation.error.validOTP"}),type:"danger"}),N(!1)}}else N(!1)},showMessageSomethingWrong=()=>{(0,m.showNotification)({title:"",message:R({id:"notification.comment.somethingWrong"}),type:"danger"})},renderFormInput=e=>{if(!e.key)return null;switch(e.type){case v.rQ.USER_SUBMIT_PHONE:return(0,i.FD)("div",{className:"input-row",children:[(0,i.Y)("label",{htmlFor:e.key,children:e.label}),(0,i.Y)(d.xI,{name:e.key,control:T,rules:{required:!0,validate:e=>(0,s.h1)(e)},render:o=>{let{field:{onChange:t,value:n}}=o,r=!P&&E||D;return(0,i.FD)(M,{children:[(0,i.Y)(h.WK,{value:n,defaultValue:w,onChange:t,defaultCountry:f,id:e.id,className:"input-row ".concat(e.id),name:e.key,disabled:r,flagComponent:h.qX,placeholder:e.label}),r&&(0,i.Y)(b(),{viewBox:"0 0 24 24",className:"icon-edit-phone",onClick:()=>{var e;t(""),z(!1),N(!1),null===(e=C.current)||void 0===e||e.cancel()}}),e.key&&I[e.key]&&(0,i.Y)("p",{className:"error-message",children:R({id:"validation.error.validNumber",defaultMessage:"Please enter a valid number."})}),(0,i.Y)("div",{className:"submit-btn-row",children:(0,i.Y)(l.B,{className:"submit-btn",size:"lg",onClick:handleSendOTP,isDisabled:!P&&E||D,isLoading:D,children:E?(0,i.Y)(x.A,{ref:C,isFinished:P,onFinish:S}):(0,i.Y)("span",{children:R({id:"subot.sendOTP.button",defaultMessage:"Send OTP"})})})},e.id)]})}})]},e.id);case v.rQ.USER_SUBMIT_NUMBER:if(!E)return"";return(0,i.FD)("div",{className:"input-row",children:[(0,i.Y)("label",{htmlFor:e.key,children:e.label}),(0,i.Y)("input",{type:"tel",id:e.id,placeholder:e.label,...U(e.key,{required:!0,pattern:/^[0-9]{0,6}$/}),className:"input-otp-code"}),I[e.key]&&(0,i.Y)("p",{className:"error-message",children:R({id:"validation.error.validOTP",defaultMessage:"Invalid OTP provided"})})]},e.id);default:return""}},renderFormSubmitAndTerms=e=>e.type===v.rQ.USER_SUBMIT_SEND&&E?(0,i.Y)("div",{className:"submit-btn-row",children:(0,i.Y)(l.B,{className:"submit-btn",size:"lg",isDisabled:Y,isLoading:Y,onClick:o=>handleOnVerify(o,e),children:e.label})},e.id):"";return(0,n.useEffect)(()=>{if(w){let e=r.find(e=>e.type===v.rQ.USER_SUBMIT_PHONE);e&&e.key&&B(e.key,"+".concat(y).concat(w))}},[w,y]),(0,i.Y)(A,{className:o,style:t,children:(0,i.FD)("form",{className:"user-info-form",children:[r.map(e=>renderFormInput(e)),r.map(e=>renderFormSubmitAndTerms(e))]})})}},dJ4d:function(e,o,t){"use strict";t.d(o,{R:function(){return i}});let i="other"},"+6r0":function(e,o,t){"use strict";t.d(o,{M:function(){return i}});let i="stateInlineSSO"},iCAz:function(e,o,t){"use strict";t.d(o,{$Q:function(){return extractVoucherAnswers},KA:function(){return getPreviousStateFromStorage},Rx:function(){return extractUnifiedAnswers},ix:function(){return getSubotInlineLogs},xd:function(){return saveSubotInlineLogs}});var i=t("HG5m"),n=t("LSb+"),l=t("aVqH"),r=t("7/Cf"),a=t("bPK4"),d=t("9brV"),c=t("PAs/"),s=t("dJ4d"),u=t("+6r0");let getPreviousStateFromStorage=(e,o)=>{let{getParams:t}=o;try{if(!(0,r.VV)())return null;let o=JSON.parse(localStorage.getItem(u.M)||"");if((null==o?void 0:o.botId)===e&&o.listNodes&&o.activeId&&o.createdAt+18e5>Date.now()){localStorage.removeItem(u.M);let e=o.listNodes.slice(-1)[0].position===c.Ch.SSO;if(e)return{listNodes:o.listNodes,activeId:o.activeId,params:{...t(),...o.params,account_id:(0,r.VV)()||null,cookie_id:(0,r.lT)(o.params.cookie_id)}}}return null}catch(e){return null}},getSubotInlineLogs=async e=>{try{var o,t;if(!e)return null;let i=await (0,l.px)((0,a.PU)(n.PATHS.SUBOT.GET_SUBOT_LOG,{botId:e.id,cookieId:(0,r.lT)(),accountId:(0,r.VV)()||""}),"GET",{params:{type:"inline"}});if(!(null==i?void 0:null===(o=i._data)||void 0===o?void 0:o.data)||(null==i?void 0:null===(t=i._data)||void 0===t?void 0:t.type)!=="inline")return null;let d=JSON.parse(i._data.data),c=d.nodes,s="in_progress"===i._data.status,u="complete"===i._data.status;if(s||u)return{nodes:[e,...c],activeId:d.activeId,params:{...d.params,account_id:(0,r.VV)()||d.params.account_id||null}};return null}catch(e){return null}},getExtraLogsWithCarePath=()=>{try{let e=window.next,o=e.router.components["/[...slug]"].props.pageProps,t="services-connection"===o.template;if(!t)return{};return{project_id:"care-path",user_funnel:o.spotlight.additionalSlugActive||"",audience_name:o.spotlight.groupIdActive||""}}catch(e){return{}}},extractUnifiedAnswers=e=>{let o=e.filter(e=>"Unified Questions"===e.name),t=o.reduce((e,o)=>{var t,i,n,l,r,a,d,u,p,g,m,h,v,f,b,x,w,y,k,C,A;if(o.actions&&(null===(t=o._message)||void 0===t?void 0:t.action_id)&&(null===(i=o._message)||void 0===i?void 0:i.action_value)){let t=o._message.action_value;if(o.type===c.Z6.FORM){let t=["address","province","district","commune"],i=((null===(n=o._message)||void 0===n?void 0:n.form_submit_meta)||[]).filter(e=>!t.includes(e.control)),c=((null===(l=o._message)||void 0===l?void 0:l.form_submit_meta)||[]).filter(e=>t.includes(e.control)).reduce((e,o)=>(e[o.control]=o,e),{}),s=[null===(r=c.address)||void 0===r?void 0:r.value,null===(a=c.commune)||void 0===a?void 0:a.value,null===(d=c.district)||void 0===d?void 0:d.value,null===(u=c.province)||void 0===u?void 0:u.value].filter(Boolean).join(", ");s&&c.address?e.push({attribute:c.address.key,value:s,label_question:(null===(g=o.intents)||void 0===g?void 0:null===(p=g[0])||void 0===p?void 0:p.label)||""}):i.forEach(t=>{var i,n;e.push({attribute:t.key,value:t.value,label_question:(null===(n=o.intents)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:i.label)||""})})}if(o.type===c.Z6.TEXT){if(o.is_multi_select){let t=Object.keys(o._message.selected_actions||{}),i=o.actions.filter(e=>e.label&&t.includes(e.id)).map(e=>e.label);t.length&&e.push({attribute:o.actions[0].key||"",value:i,label_question:(null===(h=o.intents)||void 0===h?void 0:null===(m=h[0])||void 0===m?void 0:m.label)||""})}else{let i=o._message.action_id,n=o.actions.find(e=>e.id===i),l=null==n?void 0:n.label,r=null===(b=o._message)||void 0===b?void 0:null===(f=b.form_submit_meta)||void 0===f?void 0:null===(v=f.find(e=>e.key===s.R))||void 0===v?void 0:v.value,a=(null==n?void 0:n.type)===c.rQ.USER_CHOICE_TEXT_BY_INPUT;l&&i&&e.push({attribute:t,value:a&&r?r:l,label_question:(null===(w=o.intents)||void 0===w?void 0:null===(x=w[0])||void 0===x?void 0:x.label)||""})}}if(o.type===c.Z6.POLL){let t=o.id,i=(null===(k=o._message)||void 0===k?void 0:null===(y=k.current_polls)||void 0===y?void 0:y[t])||[],n=o.actions.filter(e=>e.label&&i.includes(e.id)).map(e=>e.label);i.length&&e.push({attribute:o.actions[0].key||"",value:n,label_question:(null===(A=o.intents)||void 0===A?void 0:null===(C=A[0])||void 0===C?void 0:C.label)||""})}}return e},[]);return t},extractVoucherAnswers=(e,o)=>{try{var t;if((null===(t=o.extra_settings)||void 0===t?void 0:t.subot_type)!==i.h.voucherAcuvue)return;let n="",l="",a="",d="",s="",u={},p=(0,r.Us)().email;if((e||[]).forEach(e=>{var o,t,i,r,g,m;let h=e._message;if(!h)return;let v=null===(o=e.actions)||void 0===o?void 0:o.find(e=>e.id===h.action_id);if("voucher_product"===h.action_value?n=(null==v?void 0:v.label)||"":"voucher_color"===h.action_value&&(l=(null==v?void 0:v.label)||""),e.type===c.Z6.FORM){let e=null===(t=h.form_submit_meta)||void 0===t?void 0:t.find(e=>"voucher_size"===e.key),o=null===(i=h.form_submit_meta)||void 0===i?void 0:i.find(e=>"voucher_location"===e.key),n=null===(r=h.form_submit_meta)||void 0===r?void 0:r.find(e=>"email"===e.control),l=null===(g=h.form_submit_meta)||void 0===g?void 0:g.find(e=>"tel"===e.control);e&&(a=e.value),o&&(d=o.value),n&&(p=n.value),l&&(s=l.value),null===(m=h.form_submit_meta)||void 0===m||m.filter(e=>!["voucher_size","voucher_location","email","tel"].includes(e.control)).forEach(e=>{u[e.key]=e.value})}}),"ACUVUE\xae OASYS (1-DAY) WITH HYDRALUXE\xae"===n&&p)return{...u,email:p,voucherName:n,voucher_product:n,voucher_location:d,voucher_size:a,voucher_color:l,phone:s};if(n&&l&&a&&p)return{...u,email:p,voucherName:"".concat(n,"|").concat(l,"|").concat(a),voucher_product:n,voucher_location:d,voucher_size:a,voucher_color:l,phone:s}}catch(e){console.log("ExtractVoucherAnswer",e)}},saveSubotInlineLogs=async e=>{let{nodes:o,activeId:t,params:i,accountIdFromLogs:s}=e;try{let e="in_progress",u=o[o.length-1];(null==u?void 0:u.type)&&c.sR.includes(u.type)&&(e="complete");let p=o.slice(1),g={activeId:t,params:i,nodes:p,tracking:{...getExtraLogsWithCarePath(),full_url:window.location.href},unifiedAnswers:extractUnifiedAnswers(p),voucherAnswers:extractVoucherAnswers(p,o[0])},m={cookie_id:(0,r.lT)(),account_id:s||(0,r.VV)()||null,bot_id:o[0].id,flow_uuid:o[0].flow_uuid,data:JSON.stringify(g),status:e,type:"inline",market:d.HL[l.Hg]};await (0,l.px)((0,a.PU)(n.PATHS.SUBOT.POST_SUBOT_CREATE_LOG),"POST",{data:m})}catch(e){}}},rp0m:function(e,o,t){"use strict";t.d(o,{_:function(){return VideoList}});var i=t("BGKE"),n=t("+OUp"),l=t.n(n),r=t("iBNF"),a=t("+YhV"),d=t("yUew"),c=t("P+HS"),s=t("a5L+"),u=t("rBCA"),p=t("CL9C"),g=t("U+Ez");let m=(0,u.A)("div",{target:"e1hasf570"})(p.M.mbDown,"{margin-left:-16px;margin-right:-16px;}"),h=(0,u.A)(c.Carousel,{target:"e1hasf571"})(),v=(0,u.A)(g.H,{target:"e1hasf572"})("margin-block:20px;padding-left:16px;border-left:5px solid ",null===r.w||void 0===r.w?void 0:r.w.colors.primaryBase,";"),VideoList=e=>{let{videos:o,title:t,description:n,slideToShow:u=1.2,isAutoPlay:p=!1,...g}=e,f=(0,s.a)();return(null==o?void 0:o.length)&&0!==o.length?1===o.length?(0,i.FD)(m,{...g,children:[t&&(l().isValidElement(t)?t:(0,i.Y)(v,{tag:"h2",color:r.w.colors.secondaryBase,children:t})),n&&(0,i.Y)(a.T,{size:"p3",style:{marginBottom:"16px"},children:n}),(0,i.Y)(d.S,{url:o[0].videoUrl||"",autoPlay:p})]}):(0,i.FD)(m,{...g,children:[t&&(l().isValidElement(t)?t:(0,i.Y)(v,{tag:"h2",color:r.w.colors.secondaryBase,children:t})),n&&(0,i.Y)(a.T,{size:"p3",style:{marginBottom:"16px"},children:n}),(0,i.Y)(h,{slidesToShow:u,slideGap:f?16:24,withIndicators:!1,controlSize:32,controlsOffset:5,draggable:!1,speed:8,children:o.map((e,o)=>(0,i.Y)(c.Carousel.Slide,{children:(0,i.Y)(d.S,{url:e.videoUrl||"",autoPlay:p})},o))})]}):null}},"4cPY":function(e,o,t){"use strict";t.d(o,{LR:function(){return PhoneInput},WK:function(){return PhoneInputWithCode},qX:function(){return FlagComponent}});var i=t("BGKE"),n=t("rBCA"),l=t("iBNF"),r=t("TSYQ"),a=t.n(r),d=t("RB7Y"),c=t("SSaT"),s=t.n(c);let u=(0,n.A)("div",{target:"egdqp8n0"})("display:flex;align-items:center;> svg,> img{width:24px;height:24px;margin-right:5px;border-radius:2px;}> div{color:",l.w.colors.gray800||"",";white-space:nowrap;}"),p=(0,n.A)(d.Ay,{target:"egdqp8n1"})("display:flex;border:1px solid ",l.w.colors.gray200||"",";border-radius:",l.w.borderRadius,";.PhoneInputCountry{position:relative;padding:12px 8px 12px 16px;border-right:1px solid ",l.w.colors.gray200||"",";background-color:",l.w.colors.gray100||"",";border-radius:6px 0 0 6px;color:",l.w.colors.gray800||"",";.PhoneInputCountrySelect{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;}.PhoneInputCountryIconImg{width:24px;height:16px;border-radius:2px;object-fit:cover;object-position:center;}}.PhoneInputInput{padding:0 16px;}&.has--error{border-color:",l.w.colors.red700||"",";}&.PhoneInput--focus{border-color:",l.w.colors.primaryBase||"",";box-shadow:0px 0px 2px 2px #91caff;}"),g=(0,n.A)(d.Ay,{target:"egdqp8n2"})("&.PhoneInput{.PhoneInputCountry{padding:10px;border:solid 1px ",l.w.colors.gray200,";border-right:none;margin:0;background-color:#f2f2f2;border-bottom-left-radius:6px;border-top-left-radius:6px;padding:0 15px;.PhoneInputCountrySelectArrow{transform:rotate(0deg);display:flex;align-items:center;border:none;margin-left:10px;width:auto;}}.PhoneInputInput{padding-left:10px;border:solid 1px ",l.w.colors.gray200,";margin:0;width:100%;padding:12px 16px;background:#fff;border-bottom-left-radius:0 !important;border-bottom-right-radius:6px !important;border-top-left-radius:0 !important;border-top-right-radius:6px !important;}.PhoneInputCountrySelect{+ .PhoneInputCountryIcon--border{border:none;box-shadow:none;}}&.PhoneInput--readOnly{.PhoneInputCountrySelect{pointer-events:none;}}}.PhoneInputCountryIcon{width:auto;height:auto;box-shadow:none;background-color:transparent;.PhoneInputCountryIconImg{width:24px;height:24px;}}"),FlagComponentPHOnly=e=>{let o="+("+(0,d.Ko)(e.country)+")";return(0,i.FD)(u,{children:[(0,i.Y)(s(),{}),(0,i.Y)("div",{children:o})]})},FlagComponent=e=>{var o;let t="+("+(0,d.Ko)(e.country)+")",n=null===(o=e.flagUrl)||void 0===o?void 0:o.replace("{XX}",e.country);return(0,i.FD)(u,{children:[(0,i.Y)("img",{className:"PhoneInputCountryIconImg",alt:e.countryName,src:n,loading:"lazy"}),(0,i.Y)("div",{children:t})]})},PhoneInput=e=>{let{className:o,error:t,...n}=e;return(0,i.Y)(p,{className:a()(o,{"has--error":!!t}),flagComponent:FlagComponentPHOnly,...n})},PhoneInputWithCode=e=>(0,i.Y)(g,{...e,flagComponent:FlagComponent})},YRaK:function(e,o,t){"use strict";t.d(o,{A:function(){return embedAffiliateProduct}});var i=t("BGKE"),n=t("rBCA"),l=t("U+Ez"),r=t("iBNF"),a=t("+OUp"),d=t("+YhV"),c=t("NQBa"),s=t("tuDO"),u=t("8BcA"),p=t.n(u),g=t("dDsW"),m=t("ROQx"),h=t("LSb+"),v=t("aVqH"),f=t("bPK4"),b=t("/sjq"),x=t("AG8C"),w=t("9brV"),y=t("CL9C"),k=t("ysNr");let C=(0,n.A)("div",{target:"evw5lgk0"})(y.M.mbDown,"{margin:32px 0 8px 0;}",y.M.mbUp,"{margin:48px 0 32px 0;}padding:16px;border-radius:",r.w.borderRadius,";box-shadow:0px 10px 16px rgba(0,0,0,0.04),0px 2px 8px rgba(0,0,0,0.04),0px 0px 1px rgba(0,0,0,0.04);.divider{border-top:8px solid #f7f9fc;border-bottom:none;margin:0;margin-left:-1rem;}"),A=(0,n.A)("div",{target:"evw5lgk1"})(y.M.mbUp,"{display:flex;justify-content:space-between;}",y.M.mbDown,"{padding-bottom:24px;}.collapse-button{width:100%;margin-top:16px;",y.M.mbUp,"{margin-top:8px;}.down-icon{width:18px;height:18px;margin-left:8px;vertical-align:middle;}.up-icon{width:18px;height:18px;margin-left:8px;vertical-align:text-top;}}&[data-is-carousel='true']{.container{padding:0;.section{",y.M.mbDown,"{padding:0 16px;}}.item-grid{padding:0;}}}"),M=(0,n.A)("div",{target:"evw5lgk2"})("display:flex;height:36px;align-items:center;margin-top:8px;"),P=(0,n.A)(d.T,{target:"evw5lgk3"})("margin-right:16px;font-size:18px;font-weight:600;line-height:26px;&[data-is-single-vendor='true']{overflow:hidden;width:35%;margin:0;}"),S=(0,n.A)(d.T,{target:"evw5lgk4"})(y.M.mbUp,"{min-height:51px;}margin-top:4px;font-size:18px;font-weight:600;line-height:26px;"),D=(0,n.A)("div",{target:"evw5lgk5"})(y.M.mbUp,"{width:calc(50% - 16px);}"),_=(0,n.A)("div",{target:"evw5lgk6"})(y.M.mbUp,"{width:50%;}"),Y=(0,n.A)("div",{target:"evw5lgk7"})("position:relative;"),N=(0,n.A)("div",{target:"evw5lgk8"})("position:absolute;z-index:10;top:5px;right:5px;height:26px;padding:4px 6px;background-color:",r.w.colors.red500,";border-radius:",r.w.borderRadius,";color:white;"),E=(0,n.A)(d.T,{target:"evw5lgk9"})("min-height:18px;",y.M.mbUp,"{min-height:25px;}"),z=(0,n.A)("a",{target:"evw5lgk10"})("color:",r.w.colors.gray400,";text-decoration:none;"),U=(0,n.A)("div",{target:"evw5lgk11"})("text-align:center;"),I=(0,n.A)("img",{target:"evw5lgk12"})("width:auto;max-width:100%;height:230px;",y.M.mbUp,"{height:208px;}"),T=(0,n.A)("div",{target:"evw5lgk13"})(y.M.mbUp,"{position:absolute;background:white;z-index:10;top:60px;width:100%;&[data-is-single-vendor='false']{&[data-is-shown-description='true']{overflow:visible;}}}transition:all 0.5s linear;overflow:hidden;box-sizing:border-box;&[data-is-collapse='true']{max-height:0;padding:0 16px;border:0px solid transparent;",y.M.mbDown,"{margin-top:0;}border-radius:",r.w.borderRadius,";}.event{pointer-events:none;align-items:center;}&[data-is-collapse='false']{max-height:310px;padding:8px 16px;border:1px solid #e4e8ec;",y.M.mbDown,"{margin-top:16px;}border-radius:",r.w.borderRadius,";}"),L=(0,n.A)("a",{target:"evw5lgk14"})("display:flex;align-items:center;justify-content:space-between;margin:8px 0;text-decoration:none;"),F=(0,n.A)("div",{target:"evw5lgk15"})("display:flex;align-items:center;gap:8px;"),B=(0,n.A)("img",{target:"evw5lgk16"})("max-width:32px;"),R=(0,n.A)(d.T,{target:"evw5lgk17"})("font-size:14px;font-weight:600;line-height:22px;"),O=(0,n.A)("div",{target:"evw5lgk18"})("margin-top:16px;",y.M.mbUp,"{position:relative;}a{text-decoration:none;}"),H=(0,n.A)("div",{target:"evw5lgk19"})("margin:16px 0;&[data-is-single-vendor='true']{flex-grow:1;margin:0;}"),V=(0,n.A)("div",{target:"evw5lgk20"})("color:",r.w.colors.primaryActive,";font-size:14px;font-weight:bold;line-height:22px;"),j=(0,n.A)("div",{target:"evw5lgk21"})("display:flex;align-items:center;"),q=(0,n.A)("div",{target:"evw5lgk22"})("width:28px;height:28px;cursor:pointer;"),W=(0,n.A)("div",{target:"evw5lgk23"})("width:calc(100% - 68px);box-sizing:border-box;padding:5px 8px;border:1px solid ",r.w.colors.gray400,";margin-right:8px;border-radius:",r.w.borderRadius,";"),Q=(0,n.A)("div",{target:"evw5lgk24"})("position:relative;display:flex;width:16px;align-items:center;margin-right:8px;&[data-is-shown-description='false']{&::before{display:none;}}"),K=(0,n.A)("img",{target:"evw5lgk25"})("width:16px;height:16px;margin-right:4px;&:hover{cursor:pointer;}"),G=(0,n.A)("div",{target:"evw5lgk26"})(y.M.mbUp,"{&::before{position:absolute;z-index:9;top:-3%;left:117px;content:' ';width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid ",r.w.colors.gray100,";}}&[data-is-shown-description='false']{display:none;}",y.M.mbUp,"{position:absolute;width:330px;z-index:10;top:130%;left:-116px;}box-sizing:border-box;border:1px solid ",r.w.colors.gray100,";background:",r.w.colors.neutral50,";border-radius:",r.w.borderRadius,";"),Z=(0,n.A)("div",{target:"evw5lgk27"})("margin:16px;.promotion-condition{.condition-content{ul{list-style:inside;}}}"),X=(0,n.A)("div",{target:"evw5lgk28"})("margin-bottom:17px;color:red;"),J=(0,n.A)("div",{target:"evw5lgk29"})("display:flex;align-items:center;justify-content:space-between;"),$=(0,n.A)(s.B,{target:"evw5lgk30"})("width:100%;margin-top:16px;"),ee=(0,n.A)("div",{target:"evw5lgk31"})(y.M.mbDown,"{position:fixed;left:50%;left:0;bottom:0;width:100%;background-color:",r.w.colors.white,";border-radius:",r.w.borderRadius,";transition:all 5s ease-in-out;box-shadow:0px 0px 4px ",r.w.colors.gray200,";&[data-open='true']{transition:all 5s ease-in-out;z-index:200;bottom:0;opacity:1;visibility:visible;width:100%;}}"),eo=(0,n.A)("div",{target:"evw5lgk32"})("position:fixed;z-index:110;top:0;left:0;width:100%;height:100%;align-items:center;background:rgba(38,38,38,0.3);&[data-open='false']{display:none;}"),et=(0,n.A)("div",{target:"evw5lgk33"})("position:absolute;z-index:10;top:210px;right:28px;width:calc(50% - 28px);.affiliate-scroll-list > .container{overflow-y:hidden;}"),ei=(0,n.A)("div",{target:"evw5lgk34"})("position:absolute;z-index:10;top:118px;right:28px;width:210px;transition-delay:0.4s;&[data-is-hidden='true']{opacity:0;transition:0s;visibility:hidden;}"),en=(0,n.A)(k.S,{target:"evw5lgk35"})(".image-gallery-wrapper .image-block{width:initial;}");var el=t("ECoa"),er=t("UQ/i"),ea=t("a5L+");let AffiliateSkeleton=()=>{let e=(0,ea.a)();return(0,i.FD)(C,{children:[e?(0,i.Y)(er.TQ,{type:"solid",className:"divider"}):null,(0,i.FD)(A,{children:[(0,i.Y)(D,{children:(0,i.Y)(Y,{children:(0,i.Y)(el.A,{height:e?306:277})})}),(0,i.FD)(_,{children:[(0,i.Y)(el.A,{width:100,height:21,style:{marginBottom:8}}),(0,i.Y)(el.A,{className:"product-title",height:51,style:{marginBottom:8}}),(0,i.Y)(el.A,{height:30,width:200,style:{marginBottom:8}}),(0,i.Y)(el.A,{height:45,className:"collapse-button collapse"})]})]}),e?(0,i.Y)(er.TQ,{type:"solid",className:"divider"}):null]})};var ed=t("n/tb");let AffiliatePromotion=e=>{var o,t,n,l,r;let{vendor:s,shownDescription:u,isMobile:m,isSingleVendor:h,isCopied:v,idxPromotion:f,setCopied:b,dataProductChannel:x,dataProductSku:y,dataProductBrand:k,dataProductName:C,dataProductPrice:A,dataProductCategory:M}=e,{formatMessage:P}=(0,g.A)(),[S,D]=(0,a.useState)(!1);(0,a.useEffect)(()=>{u(S)},[S]);let copyToClipboard=async e=>{try{b(-1),await navigator.clipboard.writeText(e),b(f)}catch(e){console.error("Failed to copy: ",e)}},DescriptionPromotion=()=>{var e,o,t,n,l;return(0,i.Y)(G,{"data-is-shown-description":S,"data-is-single-vendor":h,children:(0,i.FD)(Z,{children:[(0,i.Y)(X,{children:(0,i.Y)(d.T,{size:"p4",type:"bold",color:"#262626",style:{display:"inline"},children:null==s?void 0:null===(e=s.promotion)||void 0===e?void 0:e.name})}),(0,i.FD)(J,{children:[(0,i.Y)(d.T,{size:"n1",type:"bold",color:"#595959",style:{fontWeight:600},children:P({id:"affiliate.promotion.discountCode",defaultMessage:"Discount Code"})}),(0,i.Y)(d.T,{size:"n1",type:"bold",color:"#2685F1",children:null==s?void 0:null===(o=s.promotion)||void 0===o?void 0:o.code}),(0,i.Y)(q,{onClick:()=>{var e;return copyToClipboard(null==s?void 0:null===(e=s.promotion)||void 0===e?void 0:e.code)},children:(0,i.Y)("img",{loading:"lazy",src:v?"".concat(w.Mp,"/copy-success.svg"):"".concat(w.Mp,"/copy-blue.svg"),alt:"Copy Button","data-event-category":"Affiliates","data-event-action":"Copy Promotion Code","data-event-label":"".concat(null==s?void 0:null===(t=s.promotion)||void 0===t?void 0:t.name,": ").concat(null==s?void 0:null===(n=s.promotion)||void 0===n?void 0:n.code),"data-product-channel":x,"data-product-sku":y,"data-product-brand":k,"data-product-name":C,"data-product-price":A,"data-product-category":M})})]}),(0,i.Y)(c.D,{type:"solid"}),(0,i.FD)("div",{className:"promotion-end-date",children:[(0,i.Y)(d.T,{size:"n1",type:"bold",color:"#595959",style:{fontWeight:600},children:P({id:"affiliate.promotion.endDate",defaultMessage:"End Date"})}),(0,i.Y)(d.T,{size:"n1",color:"#737373",children:p()().format(w.K_)})]}),(0,i.Y)(c.D,{type:"solid"}),(0,i.FD)("div",{className:"promotion-condition",children:[(0,i.Y)(d.T,{size:"n1",type:"bold",color:"#595959",style:{fontWeight:600},children:P({id:"affiliate.promotion.condition",defaultMessage:"Condition"})}),(0,i.Y)(d.T,{size:"n1",color:"#737373",children:(0,i.Y)("span",{className:"condition-content",dangerouslySetInnerHTML:{__html:null==s?void 0:null===(l=s.promotion)||void 0===l?void 0:l.description}})})]}),m&&(0,i.Y)($,{color:"secondary",size:"md",onClick:()=>D(!1),children:P({id:"affiliate.promotion.close",defaultMessage:"Close"})})]})})};return(0,i.Y)(H,{"data-is-single-vendor":h,children:(0,i.FD)(j,{children:[(null==s?void 0:null===(o=s.promotion)||void 0===o?void 0:o.description)&&(0,i.FD)(Q,{"data-is-shown-description":S,onMouseEnter:()=>!m&&D(!0),onMouseLeave:()=>!m&&D(!1),onClick:()=>m&&D(!0),children:[(0,i.Y)(K,{src:"".concat(w.Mp,"/info-dark.svg"),alt:"Description Info"}),m?(0,i.FD)(i.FK,{children:[(0,i.Y)(ee,{"data-open":S,onClick:e=>e.stopPropagation(),children:(0,i.Y)(DescriptionPromotion,{})}),(0,i.Y)(eo,{"data-open":S,onClick:e=>{e.stopPropagation(),D(!1)}})]}):(0,i.Y)(DescriptionPromotion,{})]}),(0,i.FD)(W,{children:[(0,i.Y)(d.T,{size:"n1",style:{display:"inline"},children:"".concat(null==s?void 0:null===(t=s.promotion)||void 0===t?void 0:t.name,": ")}),(0,i.Y)(d.T,{size:"n1",type:"bold",color:"#737373",style:{display:"inline"},children:null==s?void 0:null===(n=s.promotion)||void 0===n?void 0:n.code})]}),(0,i.Y)(q,{onClick:()=>{var e;return copyToClipboard(null==s?void 0:null===(e=s.promotion)||void 0===e?void 0:e.code)},children:(0,i.Y)("img",{loading:"lazy",src:v?"".concat(w.Mp,"/copy-success.svg"):"".concat(w.Mp,"/copy.svg"),alt:"Copy Button","data-event-category":"Affiliates","data-event-action":"Copy Promotion Code","data-event-label":"".concat(null==s?void 0:null===(l=s.promotion)||void 0===l?void 0:l.name,": ").concat(null==s?void 0:null===(r=s.promotion)||void 0===r?void 0:r.code),"data-product-channel":x,"data-product-sku":y,"data-product-brand":k,"data-product-name":C,"data-product-price":A,"data-product-category":M})})]})})},Affiliate=e=>{var o,t,n,u,y,k,H,j,q,W,Q,K,G,Z,X,J,$,ee,eo,et,ei,el,er,ea,ec,es,eu,ep,eg,em,eh,ev,ef,eb,ex,ew,ey,ek,eC,eA,eM,eP,eS,eD,e_,eY,eN,eE,ez,eU,eI,eT,eL,eF,eB;let{productId:eR,isCarousel:eO,isMobile:eH,noFollow:eV,sponsored:ej,openNewTab:eq,changeCollapseCarousel:eW,isCarouselCollapse:eQ,idxAffiliate:eK,isFocus:eG,setFocus:eZ,title:eX=""}=e,[eJ,e$]=(0,a.useState)(!0),[e0,e1]=(0,a.useState)(null),[e2,e6]=(0,a.useState)(!1),[e5,e4]=(0,a.useState)(-1),[e3,e8]=(0,a.useState)(!1),{locale:e7,router:{asPath:e9}}=(0,x.$)(),{formatMessage:oe}=(0,g.A)();(0,a.useEffect)(()=>{eH||e$(!!eQ)},[eQ]),(0,a.useEffect)(()=>{e4(-1)},[eG]),(0,a.useEffect)(()=>{let fetchProductDetail=async()=>{var e,o;e8(!1);let t=await (0,v.px)((0,f.er)(h.PATHS.COMMON.GET_AFFILIATE_PRODUCT,{productId:eR}),"get");if(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e[0]){let e=(0,m.Og)(null==t?void 0:null===(o=t.data)||void 0===o?void 0:o[0],e7);e1(e)}e8(!0)};fetchProductDetail()},[]);let oo=(0,a.useRef)(null),ot=(0,a.useRef)(0);if((0,a.useEffect)(()=>{var e;let o=null===(e=oo.current)||void 0===e?void 0:e.previousElementSibling;for(;o;)"P"===o.tagName&&ot.current++,o=o.previousElementSibling;console.log("Number of

tags above the

:",ot.current)},[oo.current]),!e3)return(0,i.Y)(AffiliateSkeleton,{});if(!e0)return null;let isOverEndDate=e=>{if(!e)return!1;{let o=new Date;o.setHours(0,0,0,0);let t=p()(e,w.a7).toDate();return t{var o;return null!=e&&!!e.promotion&&!isOverEndDate(null==e?void 0:null===(o=e.promotion)||void 0===o?void 0:o.end_date)},getTheBestDiscount=e=>{let o=null==e?void 0:e.some(e=>hasPromotion(e));if(!o)return null;{let o=null==e?void 0:e.some(e=>{var o;return(null==e?void 0:e.promotion)&&(null==e?void 0:null===(o=e.promotion)||void 0===o?void 0:o.discount)!==""});if(!o)return"no-discount";{let o=null==e?void 0:e.map(e=>{var o,t;return(null==e?void 0:null===(o=e.promotion)||void 0===o?void 0:o.discount)?parseInt(null==e?void 0:null===(t=e.promotion.discount)||void 0===t?void 0:t.replace("%","")):0});return Math.max(...o)}}};return(0,i.FD)(C,{onClick:()=>{void 0!==eK&&eZ&&eZ(eK)},children:[eX&&(0,i.FD)(ed.QP,{style:{marginBottom:16},children:[(0,i.Y)("div",{className:"line"}),(0,i.Y)(l.H,{tag:"h5",color:r.w.colors.secondaryBase,children:eX})]}),(0,i.FD)(A,{"data-is-carousel":eO,"data-event-category":"Affiliates","data-event-action":"Impression","data-event-label":"https://".concat(b.domainLocales[e7]).concat(e9),"data-product-sku":null==e0?void 0:e0.sku,"data-product-brand":null==e0?void 0:null===(t=e0.brand)||void 0===t?void 0:null===(o=t[0])||void 0===o?void 0:o.name,"data-product-name":null==e0?void 0:e0.postName,"data-product-price":null==e0?void 0:null===(u=e0.channel)||void 0===u?void 0:null===(n=u[0])||void 0===n?void 0:n.price,children:[(0,i.Y)(D,{children:(0,i.FD)(Y,{children:[getTheBestDiscount(null==e0?void 0:e0.channel)&&(0,i.Y)(N,{children:"no-discount"===getTheBestDiscount(null==e0?void 0:e0.channel)?(0,i.Y)(d.T,{size:"n1",type:"bold",color:"#fffff",children:null==e0?void 0:null===(H=e0.channel)||void 0===H?void 0:null===(k=H.find(e=>hasPromotion(e)))||void 0===k?void 0:null===(y=k.promotion)||void 0===y?void 0:y.name}):(0,i.Y)(d.T,{size:"n1",type:"bold",color:"#fffff",children:oe({id:"affiliate.promotion.bestDiscount",defaultMessage:"Up to {promotionDiscount}"},{promotionDiscount:"".concat(getTheBestDiscount(null==e0?void 0:e0.channel),"%")})})}),Array.isArray(null==e0?void 0:e0.gallery)&&(null==e0?void 0:null===(j=e0.gallery)||void 0===j?void 0:j.length)>0&&(0,i.Y)(en,{column:1,row:1,isDotsShown:eH&&(null==e0?void 0:null===(q=e0.gallery)||void 0===q?void 0:q.length)>1,mode:"snapped",type:"separated",arrowType:"Care",isImageGalleryShown:!eH&&(null==e0?void 0:null===(W=e0.gallery)||void 0===W?void 0:W.length)>1,children:null==e0?void 0:e0.gallery.map(e=>(0,i.Y)(U,{children:(0,i.Y)(I,{src:e,alt:"Image"},e)},e))})]})}),(0,i.FD)(_,{children:[(0,i.Y)(E,{size:"c2",color:r.w.colors.gray400,type:"bold",children:null==e0?void 0:e0.brand.map((e,o)=>{var t;return(0,i.FD)(a.Fragment,{children:[(null==e?void 0:e.permalink)?(0,i.Y)(z,{href:null==e?void 0:e.permalink,className:"no-replace-click",target:"_blank",children:null==e?void 0:e.name},o):null==e?void 0:e.name,o<(null==e0?void 0:null===(t=e0.brand)||void 0===t?void 0:t.length)-1?", ":""]},o)})}),(0,i.Y)(S,{size:"p1",color:r.w.colors.gray800,children:null==e0?void 0:e0.postTitle}),(0,i.FD)(M,{children:[(0,i.Y)(P,{"data-is-single-vendor":!eH&&(null==e0?void 0:null===(Q=e0.channel)||void 0===Q?void 0:Q.length)===1&&hasPromotion(null==e0?void 0:null===(K=e0.channel)||void 0===K?void 0:K[0]),as:"div",size:"sm",children:(0,i.Y)(d.T,{size:"p3",color:r.w.colors.green700,children:null==e0?void 0:e0.priceRange})}),(null==e0?void 0:null===(G=e0.channel)||void 0===G?void 0:G.length)===1&&eH&&hasPromotion(null==e0?void 0:null===(Z=e0.channel)||void 0===Z?void 0:Z[0])&&(0,i.Y)(AffiliatePromotion,{vendor:null==e0?void 0:null===(X=e0.channel)||void 0===X?void 0:X[0],shownDescription:e=>e6(e),isMobile:eH,isSingleVendor:!0,isCopied:eG&&0===e5,idxPromotion:0,setCopied:e=>e4(e),dataProductChannel:null==e0?void 0:null===($=e0.channel)||void 0===$?void 0:null===(J=$[0])||void 0===J?void 0:J.name,dataProductSku:null==e0?void 0:e0.sku,dataProductBrand:null==e0?void 0:null===(eo=e0.brand)||void 0===eo?void 0:null===(ee=eo[0])||void 0===ee?void 0:ee.name,dataProductName:null==e0?void 0:e0.postName,dataProductPrice:(null==e0?void 0:e0.priceRange)?null==e0?void 0:e0.priceRange:null==e0?void 0:null===(ei=e0.channel)||void 0===ei?void 0:null===(et=ei[0])||void 0===et?void 0:et.price,dataProductCategory:null==e0?void 0:null===(er=e0.productCat)||void 0===er?void 0:null===(el=er[0])||void 0===el?void 0:el.name})]}),(0,i.FD)(O,{ref:oo,children:[(null==e0?void 0:null===(ea=e0.channel)||void 0===ea?void 0:ea.length)===1?(0,i.Y)("a",{"data-event-category":"Affiliates","data-event-action":"Click Shop Now","data-product-position":"p".concat(ot.current),"data-product-ui":"Slide","data-event-label":null==e0?void 0:null===(es=e0.channel)||void 0===es?void 0:null===(ec=es[0])||void 0===ec?void 0:ec.url,"data-product-channel":null==e0?void 0:null===(ep=e0.channel)||void 0===ep?void 0:null===(eu=ep[0])||void 0===eu?void 0:eu.name,"data-product-sku":null==e0?void 0:e0.sku,"data-product-brand":null==e0?void 0:null===(em=e0.brand)||void 0===em?void 0:null===(eg=em[0])||void 0===eg?void 0:eg.name,"data-product-name":null==e0?void 0:e0.postName,"data-product-price":(null==e0?void 0:e0.priceRange)?null==e0?void 0:e0.priceRange:null==e0?void 0:null===(ev=e0.channel)||void 0===ev?void 0:null===(eh=ev[0])||void 0===eh?void 0:eh.price,"data-product-category":null==e0?void 0:null===(eb=e0.productCat)||void 0===eb?void 0:null===(ef=eb[0])||void 0===ef?void 0:ef.name,href:null==e0?void 0:null===(ew=e0.channel)||void 0===ew?void 0:null===(ex=ew[0])||void 0===ex?void 0:ex.url,className:"no-replace-click",...eq?{target:"_blank"}:{},rel:"".concat(null==e0?void 0:null===(ek=e0.channel)||void 0===ek?void 0:null===(ey=ek[0])||void 0===ey?void 0:ey.url).concat(eV?" nofollow":"").concat(ej?" sponsored":""),children:(0,i.Y)(s.B,{dataEventCategory:"Affiliates",dataEventAction:"Click Shop Now","data-product-position":"p".concat(ot.current),"data-product-ui":"Slide",dataEventLabel:null==e0?void 0:null===(eA=e0.channel)||void 0===eA?void 0:null===(eC=eA[0])||void 0===eC?void 0:eC.url,dataProductChannel:null==e0?void 0:null===(eP=e0.channel)||void 0===eP?void 0:null===(eM=eP[0])||void 0===eM?void 0:eM.name,dataProductSku:null==e0?void 0:e0.sku,dataProductBrand:null==e0?void 0:null===(eD=e0.brand)||void 0===eD?void 0:null===(eS=eD[0])||void 0===eS?void 0:eS.name,dataProductName:null==e0?void 0:e0.postName,dataProductPrice:null==e0?void 0:null===(eY=e0.channel)||void 0===eY?void 0:null===(e_=eY[0])||void 0===e_?void 0:e_.price,color:"primary",size:"md",className:"collapse-button collapse",children:oe({id:"affiliate.collapseButton.shopAtVendor",defaultMessage:"Shop now at {vendor}"},{vendor:null==e0?void 0:null===(eE=e0.channel)||void 0===eE?void 0:null===(eN=eE[0])||void 0===eN?void 0:eN.name})})}):eJ?(0,i.FD)(s.B,{dataEventCategory:"Affiliates",dataEventAction:"Click To Expand",dataEventLabel:null==e0?void 0:null===(eU=e0.channel)||void 0===eU?void 0:null===(ez=eU[0])||void 0===ez?void 0:ez.url,dataProductSku:null==e0?void 0:e0.sku,dataProductName:null==e0?void 0:e0.postName,dataProductPrice:null==e0?void 0:null===(eT=e0.channel)||void 0===eT?void 0:null===(eI=eT[0])||void 0===eI?void 0:eI.price,color:"primary",size:"md",className:"collapse-button collapse",onClick:()=>{e$(!1),eO&&eW(!1)},children:[oe({id:"affiliate.collapseButton.showNow",defaultMessage:"Shop Now ({number} vendors)"},{number:null==e0?void 0:null===(eL=e0.channel)||void 0===eL?void 0:eL.length}),(0,i.Y)("div",{className:"down-icon",children:(0,i.Y)("img",{loading:"lazy",src:"".concat(w.nS,"/chevronDownWhite.svg"),alt:"chevron-down"})})]}):(0,i.FD)(s.B,{color:"secondary",size:"md",className:"collapse-button collapse",onClick:()=>{e$(!0),eO&&eW(!0)},children:[oe({id:"affiliate.collapseButton.collapse",defaultMessage:"Collapse"}),(0,i.Y)("img",{loading:"lazy",src:"".concat(w.nS,"/chevronUpBlue.svg"),alt:"chevron-down",className:"up-icon"})]}),(eH||!eO)&&(0,i.Y)(T,{"data-is-collapse":eJ,"data-is-carousel":eO,"data-is-shown-description":e2,"data-is-single-vendor":(null==e0?void 0:null===(eF=e0.channel)||void 0===eF?void 0:eF.length)===1,children:null==e0?void 0:null===(eB=e0.channel)||void 0===eB?void 0:eB.map((e,o)=>{var t,n,d,s,u,p,g,m,h,v;return(0,i.FD)(a.Fragment,{children:[(0,i.FD)(L,{"data-event-category":"Affiliates","data-event-action":"Click Shop Now","data-product-position":"p".concat(ot.current),"data-product-ui":"Slide","data-event-label":null==e?void 0:e.url,"data-product-channel":null==e?void 0:e.name,"data-product-sku":null==e0?void 0:e0.sku,"data-product-brand":null==e0?void 0:null===(n=e0.brand)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.name,"data-product-name":null==e0?void 0:e0.postName,"data-product-price":null==e?void 0:e.price,className:"no-replace-url",href:null==e?void 0:e.url,...eq?{target:"_blank"}:{},rel:"".concat(null==e?void 0:e.url).concat(eV?" nofollow":"").concat(ej?" sponsored":""),children:[(0,i.FD)(F,{className:"event",children:[(0,i.Y)(B,{src:null==e?void 0:e.icon,alt:"logo",className:"logo"}),(0,i.FD)("div",{children:[(0,i.Y)(l.H,{tag:"h5",children:null==e?void 0:e.name}),(null==e?void 0:e.price)&&(0,i.Y)(R,{size:"p3",color:r.w.colors.green700,children:null==e?void 0:e.price})]})]}),(0,i.Y)(V,{className:"event",children:oe({id:"affiliate.vendors.showNow",defaultMessage:"Shop Now"})})]}),hasPromotion(e)&&(0,i.Y)(AffiliatePromotion,{vendor:e,shownDescription:e=>e6(e),isMobile:eH,isCopied:eG&&e5===o,idxPromotion:o,setCopied:e=>e4(e),dataProductChannel:null==e0?void 0:null===(s=e0.channel)||void 0===s?void 0:null===(d=s[0])||void 0===d?void 0:d.name,dataProductSku:null==e0?void 0:e0.sku,dataProductBrand:null==e0?void 0:null===(p=e0.brand)||void 0===p?void 0:null===(u=p[0])||void 0===u?void 0:u.name,dataProductName:null==e0?void 0:e0.postName,dataProductPrice:(null==e0?void 0:e0.priceRange)?null==e0?void 0:e0.priceRange:null==e0?void 0:null===(m=e0.channel)||void 0===m?void 0:null===(g=m[0])||void 0===g?void 0:g.price,dataProductCategory:null==e0?void 0:null===(v=e0.productCat)||void 0===v?void 0:null===(h=v[0])||void 0===h?void 0:h.name}),o<(null==e0?void 0:e0.channel.length)-1?(0,i.Y)(c.D,{type:"dashed"}):null]},o)})})]})]})]})]})};var ec=t("99+y");let CarouselAffiliate=e=>{var o,t,n,d,s,u,b,x,y,C,A,M,P,S,D,_,Y,N,E,z,U,I,O,H,j,q,W;let{isMobile:Q,injectAffiliate:K,openNewTab:G,noFollow:Z,sponsored:X}=e,[J,$]=(0,a.useState)([]),[ee,eo]=(0,a.useState)(0),{locale:en="en-PH"}=(0,ec.useRouter)(),{formatMessage:el}=(0,g.A)(),[er,ea]=(0,a.useState)(!1),[ed,es]=(0,a.useState)(!0),[eu,ep]=(0,a.useState)(-1),[eg,em]=(0,a.useState)(-1),isOverEndDate=e=>{if(!e)return!1;{let o=new Date;o.setHours(0,0,0,0);let t=p()(e,w.a7).toDate();return t{var o;return null!=e&&!!e.promotion&&!isOverEndDate(null==e?void 0:null===(o=e.promotion)||void 0===o?void 0:o.end_date)},eh=null==K?void 0:null===(o=K.productId)||void 0===o?void 0:o.split(","),fetchProductDetail=async e=>{var o,t;let i=await (0,v.px)((0,f.er)(h.PATHS.COMMON.GET_AFFILIATE_PRODUCT,{productId:e}),"get");if(null==i?void 0:null===(o=i.data)||void 0===o?void 0:o[0]){let e=(0,m.Og)(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t[0],en);return e}};(0,a.useEffect)(()=>{Promise.all(null==eh?void 0:eh.map(async e=>{let o=await fetchProductDetail(e);return o})).then(e=>$(e))},[]);let ev=(0,a.useRef)(null),ef=(0,a.useRef)(0);return(0,a.useEffect)(()=>{var e;let o=null===(e=ev.current)||void 0===e?void 0:e.previousElementSibling;for(;o;)"P"===o.tagName&&ef.current++,o=o.previousElementSibling;console.log("Number of

tags above the

:",ef.current)},[ev.current]),(0,i.FD)(i.FK,{children:[!Q&&(0,i.Y)(et,{ref:ev,children:(0,i.Y)(T,{"data-is-collapse":ed,"data-is-carousel":!0,"data-is-shown-description":er,"data-is-single-vendor":(null==J?void 0:null===(n=J[ee])||void 0===n?void 0:null===(t=n.channel)||void 0===t?void 0:t.length)===1,children:null==J?void 0:null===(s=J[ee])||void 0===s?void 0:null===(d=s.channel)||void 0===d?void 0:d.map((e,o)=>{var t,n,d,s,u,p,g,m,h,v,f,b,x,w,y,k,C,A,M,P,S,D;return(0,i.FD)(a.Fragment,{children:[(0,i.FD)(L,{"data-event-category":"Affiliates","data-event-action":"Click Shop Now","data-product-position":"p".concat(ef.current),"data-product-ui":"Carousel","data-event-label":null==e?void 0:e.url,"data-product-channel":null==e?void 0:e.name,"data-product-sku":null==J?void 0:null===(t=J[ee])||void 0===t?void 0:t.sku,"data-product-brand":null==J?void 0:null===(s=J[ee])||void 0===s?void 0:null===(d=s.brand)||void 0===d?void 0:null===(n=d[0])||void 0===n?void 0:n.name,"data-product-name":null==J?void 0:null===(u=J[ee])||void 0===u?void 0:u.postName,"data-product-price":null==e?void 0:e.price,className:"no-replace-url",href:null==e?void 0:e.url,...G?{target:"_blank"}:{},rel:"".concat(null==e?void 0:e.url," ").concat(Z?" nofollow":"").concat(X?" sponsored":""),children:[(0,i.FD)(F,{className:"event",children:[(0,i.Y)(B,{src:null==e?void 0:e.icon,alt:"logo",className:"logo"}),(0,i.FD)("div",{children:[(0,i.Y)(l.H,{tag:"h5",children:null==e?void 0:e.name}),(null==e?void 0:e.price)&&(0,i.Y)(R,{size:"p3",color:r.w.colors.green700,children:null==e?void 0:e.price})]})]}),(0,i.Y)(V,{className:"event",children:el({id:"affiliate.vendors.showNow",defaultMessage:"Shop Now"})})]}),hasPromotion(e)&&(0,i.Y)(AffiliatePromotion,{vendor:e,shownDescription:e=>ea(e),isMobile:Q,isCopied:eg===o,idxPromotion:o,setCopied:e=>em(e),dataProductChannel:null==J?void 0:null===(m=J[ee])||void 0===m?void 0:null===(g=m.channel)||void 0===g?void 0:null===(p=g[0])||void 0===p?void 0:p.name,dataProductSku:null==J?void 0:null===(h=J[ee])||void 0===h?void 0:h.sku,dataProductBrand:null==J?void 0:null===(b=J[ee])||void 0===b?void 0:null===(f=b.brand)||void 0===f?void 0:null===(v=f[0])||void 0===v?void 0:v.name,dataProductName:null==J?void 0:null===(x=J[ee])||void 0===x?void 0:x.postName,dataProductPrice:(null==J?void 0:null===(w=J[ee])||void 0===w?void 0:w.priceRange)?null==J?void 0:null===(y=J[ee])||void 0===y?void 0:y.priceRange:null==J?void 0:null===(A=J[ee])||void 0===A?void 0:null===(C=A.channel)||void 0===C?void 0:null===(k=C[0])||void 0===k?void 0:k.price,dataProductCategory:null==J?void 0:null===(S=J[ee])||void 0===S?void 0:null===(P=S.productCat)||void 0===P?void 0:null===(M=P[0])||void 0===M?void 0:M.name}),o<(null==J?void 0:null===(D=J[ee])||void 0===D?void 0:D.channel.length)-1?(0,i.Y)(c.D,{type:"dashed"}):null]},o)})})}),!Q&&hasPromotion(null==J?void 0:null===(b=J[ee])||void 0===b?void 0:null===(u=b.channel)||void 0===u?void 0:u[0])&&(0,i.Y)(ei,{"data-is-hidden":(null==J?void 0:null===(y=J[ee])||void 0===y?void 0:null===(x=y.channel)||void 0===x?void 0:x.length)!==1,children:(0,i.Y)(AffiliatePromotion,{vendor:null==J?void 0:null===(A=J[ee])||void 0===A?void 0:null===(C=A.channel)||void 0===C?void 0:C[0],shownDescription:e=>ea(e),isMobile:Q,isCopied:0===eg,idxPromotion:0,setCopied:e=>em(e),isSingleVendor:!0,dataProductChannel:null==J?void 0:null===(S=J[ee])||void 0===S?void 0:null===(P=S.channel)||void 0===P?void 0:null===(M=P[0])||void 0===M?void 0:M.name,dataProductSku:null==J?void 0:null===(D=J[ee])||void 0===D?void 0:D.sku,dataProductBrand:null==J?void 0:null===(N=J[ee])||void 0===N?void 0:null===(Y=N.brand)||void 0===Y?void 0:null===(_=Y[0])||void 0===_?void 0:_.name,dataProductName:null==J?void 0:null===(E=J[ee])||void 0===E?void 0:E.postName,dataProductPrice:(null==J?void 0:null===(z=J[ee])||void 0===z?void 0:z.priceRange)?null==J?void 0:null===(U=J[ee])||void 0===U?void 0:U.priceRange:null==J?void 0:null===(H=J[ee])||void 0===H?void 0:null===(O=H.channel)||void 0===O?void 0:null===(I=O[0])||void 0===I?void 0:I.price,dataProductCategory:null==J?void 0:null===(W=J[ee])||void 0===W?void 0:null===(q=W.productCat)||void 0===q?void 0:null===(j=q[0])||void 0===j?void 0:j.name})}),(0,i.Y)(k.S,{className:"affiliate-scroll-list",column:1,row:1,distanceOverlappedLeft:{amount:16,unit:"pixel"},isDotsShown:!Q&&eh.length>1,mode:"infinity",type:"separated",isArrowShown:!0,onChangePage:e=>{eo(e),es(!0),em(-1)},arrowType:"Care",children:null==eh?void 0:eh.map((e,o)=>(0,i.Y)(Affiliate,{isCarousel:!0,isMobile:Q,productId:e,openNewTab:null==K?void 0:K.openNewTab,noFollow:null==K?void 0:K.noFollow,sponsored:null==K?void 0:K.sponsored,changeCollapseCarousel:e=>es(e),isCarouselCollapse:ed,isFocus:eu===o,setFocus:e=>ep(e),idxAffiliate:o},o))})]})},es=(0,n.A)(l.H,{target:"euhc6q30"})("display:flex;margin-bottom:8px;color:",r.w.colors.secondaryBase||"",";&::before{width:5px;margin-right:10px;background:",r.w.colors.primaryBase,";content:'';}p[data-size='lg']{line-height:26px;}"),eu=(0,n.A)("div",{target:"euhc6q31"})("position:relative;.arrow-left{left:-10px;}.arrow-right{right:-10px;}");var embedAffiliateProduct=e=>{let{title:o,product_skus:t,no_follow:n,open_new_tab:l,sponsored:r,is_mobile:a}=e;return t.length?1===t.length?(0,i.Y)(Affiliate,{isMobile:a,isCarousel:!1,productId:t[0],openNewTab:l,noFollow:n,sponsored:r,changeCollapseCarousel:()=>null,isCarouselCollapse:!0,isFocus:!0,title:o}):(0,i.FD)(eu,{className:"lp--affiliate-product",children:[!!o&&(0,i.Y)(es,{tag:"h5",children:o}),(0,i.Y)(CarouselAffiliate,{isMobile:a,injectAffiliate:{productId:t.join(","),openNewTab:l,noFollow:n,sponsored:r,title:o},openNewTab:l,noFollow:n,sponsored:r})]}):null}},"UQ/i":function(e,o,t){"use strict";t.d(o,{TQ:function(){return v},hk:function(){return f},r6:function(){return h}});var i=t("rBCA"),n=t("NQBa"),l=t("+u84"),r=t("P+HS"),a=t("CL9C"),d=t("iBNF"),c=t("vH4S"),s=t("rp0m"),u=t("9brV");a.M.mbUp,a.M.mbUp,u.cD,a.M.mbUp,d.w.colors.neutral100,u.Mu.articleAdContainer;let p=(0,i.A)("div",{target:"e17jxpc13"})("width:100%;.top-ad{margin-left:auto;margin-right:auto;> div{margin-bottom:1rem;}}.tpads-unit{display:none;}> span.end-of-article:empty{display:inline-block;height:0 !important;}"),g="\n display: block;\n width: 100%;\n border-spacing: 0;\n margin-block: 10px;\n max-width: 700px;\n overflow-x: auto;\n ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 100px;\n height: 4px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: ".concat(d.w.colors.gray200,";\n }\n thead,\n tbody {\n width: 100%;\n }\n th,\n td {\n min-width: 160px;\n width: 100%;\n text-align: left;\n }\n th {\n text-align: center;\n }\n"),m="\n table {\n ".concat("\n th,\n td {\n padding: 13px 12px;\n font-size: 14px;\n line-height: 22px;\n font-style: normal;\n p {\n margin-block-start: 1em;\n margin-block-end: 1em;\n }\n }\n th {\n font-weight: 600;\n text-align: center;\n }\n td {\n font-weight: 400;\n }\n","\n &[data-enable-scroll='1'] {\n ").concat(g,"\n }\n ").concat(a.M.mbDown," {\n ").concat(g,"\n }\n &.spine-table-light {\n thead {\n background-color: #f7f9fc;\n th {\n color: #737373;\n }\n }\n tbody {\n td {\n border-bottom: 1px solid #e4e8ec;\n }\n }\n }\n &.spine-table-dark {\n thead {\n background-color: #87909c;\n th {\n color: #ffffff;\n }\n }\n tbody {\n tr:nth-child(2n) {\n background-color: #f7f9fc;\n }\n }\n }\n &.spine-table-blue {\n thead {\n background-color: #45a4ff;\n th {\n color: #ffffff;\n }\n }\n tbody {\n tr {\n background-color: #f7f9fc;\n }\n td {\n background-color: #f0f8ff;\n border-bottom: 1px solid #bcdeff;\n }\n }\n }\n &.spine-table-pros-cons {\n display: inline-table;\n thead {\n th {\n text-align: center;\n color: #ffffff;\n &:nth-child(2n) {\n background-color: #45a4ff;\n }\n &:nth-child(2n + 1) {\n background-color: #bb82e1;\n }\n }\n }\n tbody {\n td {\n &::before {\n content: '•';\n margin-right: 4px;\n }\n &:nth-child(2n) {\n background-color: #e3f2ff;\n }\n &:nth-child(2n + 1) {\n background-color: #f5edff;\n }\n }\n }\n }\n }\n"),h=(0,i.A)(p,{target:"e17jxpc15"})("position:relative;line-height:1.7;overflow-wrap:break-word;white-space:pre-line;",a.M.mbUp,"{font-size:18px;}> *{max-width:100%;}&.disclaimer{padding-top:0;padding-bottom:0;}sup{position:relative;bottom:0.7em;font-size:0.7em !important;line-height:0 !important;vertical-align:baseline;}input{background:white;}img{display:block;width:100%;height:auto;max-width:100%;",a.M.mbDown,"{width:calc(100% + 2rem);margin-right:-1rem;margin-left:-1rem;max-width:unset;}}figure{figcaption.wp-caption-text{margin-top:",(0,c.rem)(8),";margin-bottom:",(0,c.rem)(24),";color:",d.w.colors.gray500,";font-size:",(0,c.rem)(14),";text-align:center;}}& >{p,ul,form{&:not(:last-child){margin-block:16px;}}",(0,r.getHeadingStyles)()," ",a.M.mbDown,"{",(0,r.getHeadingStyles)({mbDown:!0}),"}h2,h3,h4,h5{margin-block:16px;}h1,h2,h3,h4,h5,h6{> *{font-size:inherit;font-weight:inherit;}}div.article-image-alt{margin-top:-1.5em;margin-bottom:2em;color:",d.w.colors.gray500,";font-size:0.8em;text-align:center;}form{display:flex;align-items:center;}/* Colors */\n\n h1,h2,h3,h4,h5,h6,p{color:",d.w.colors.gray800,";}}ul{padding-left:1rem;/* margin-bottom:1em;*/\n margin-block:16px;list-style:inside;white-space:normal;}li{position:relative;padding-left:2em;margin-bottom:0.4em;list-style-type:none;&:before{position:absolute;top:0;left:0;margin-left:0.5em;color:",d.w.colors.primaryBase,";content:'•';font-size:1em;}ul{margin-top:0.5em;}}ol{margin-bottom:1em;list-style:decimal;li{padding-left:unset;margin-left:2em;list-style-type:unset;&:before{display:none;}&::marker{font-size:1.1em;font-weight:bold;}}}a{color:",d.w.colors.primaryBase,";text-decoration:none;}/* Scroll offset */\n h2[id],h3[id]{scroll-margin:70px;}.teads-player{position:relative;&::before{content:'';font-size:10px;line-height:12px;color:rgb(140,140,140);font-weight:400;position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding:3px 0;width:100%;text-align:center;z-index:",l.c-9e6,";background:rgb(248,249,252);}}&[data-locale='vi-VN']{.teads-player{&::before{content:'Quảng c\xe1o';}}}&[data-locale='en-PH'],&[data-locale='tl-PH'],&[data-locale='my-MM'],&[data-locale='hi-IN'],&[data-locale='zh-TW']{.teads-player{&::before{content:'Advertisement';}}}&[data-locale='id-ID']{.teads-player{&::before{content:'Iklan';}}}&[data-locale='ms-MY']{.teads-player{&::before{content:'Iklan';}}}&[data-locale='th-TH']{.teads-player{&::before{content:'โฆษณา';}}}&[data-locale='kh-KH']{.teads-player{&::before{content:'ផ្សព្វផ្សាយពាណិជ្ជកម្ម';}}}a[href*='typeform.com/'],[data-url*='typeform.com/']{display:block;iframe{height:100%;}}",m," /* Key take-away */\n\n iframe{aspect-ratio:16/9;min-height:0;width:100%;height:auto;max-width:unset;",a.M.mbDown,"{margin-inline:-16px !important;width:calc(100% + 32px) !important;}}& > p{margin-block:24px;",a.M.mbDown,"{margin-block:16px;}}.content-key-takeaways{padding:24px;margin:8px 0;background-image:url(",u.nS,"/key-takeaway-desktop.png);background-color:",d.w.colors.primary50,";background-size:100%;background-repeat:no-repeat;background-position:bottom;border-radius:",d.w.borderRadius,";.content{br:first-of-type{display:none;}> h2{margin-bottom:0;color:#284a75 !important;}}.title{margin-bottom:16px;h3{/* m/H2 24-32 Bold */\n\n font-family:'Inter';font-style:normal;font-weight:700;font-size:24px;line-height:32px;/* identical to box height,or 133% */\n\n letter-spacing:-0.8px;/* Secondary/Secondary */\n\n color:#284a75;margin:0;}}.key-takaway-logo-wrapper{display:flex;flex-direction:row-reverse;margin-top:12px;.key-takaway-logo{width:auto;height:24px;}}",a.M.mbDown,"{background-image:url(",u.nS,"/key-takeaway-mobile.png);padding:16px;ul{padding-left:0;}}}/* Quotation */\n\n .content-quotation{position:relative;padding:36px 0;margin:24px 0;",a.M.mbDown,"{padding:40px 0;}br:first-of-type{display:none;}&::before{position:absolute;top:0;display:block;width:24px;height:24px;content:url(",u.Mp,"/quote-left-small.svg);}&::after{position:absolute;right:0;bottom:0;display:block;width:24px;height:24px;content:url(",u.Mp,"/quote-right-small.svg);}.title{position:absolute;bottom:0;left:32px;display:flex;align-items:center;gap:8px;h3{margin:0;color:",d.w.colors.gray500," !important;font-size:16px !important;font-weight:normal;line-height:28px;}::before{width:24px;height:24px;content:url(",u.Mp,"/quote-minus.svg);}}.content{padding:0 24px;font-size:18px;font-weight:600;line-height:26px;}}.content-recommendation{display:flex;flex-direction:column;gap:12px;padding:24px;/* Yellow/Yellow-50 */\n\n background:#fff8e2;/* Yellow/Yellow-800 */\n\n border-bottom:2px solid #fe921d;border-radius:8px;br:first-of-type{display:none;}.title{h3{margin:0;font-family:'Inter';font-style:normal;font-weight:700;font-size:18px;line-height:28px;letter-spacing:-0.2px;/* Yellow/Yellow-800 */\n\n color:#fe921d;}}.content{font-family:'Inter';font-style:normal;font-weight:400;font-size:18px;line-height:28px;letter-spacing:-0.2px;/* Gray/Gray-800 */\n\n color:#262626;li{position:relative;&:before{position:absolute;top:0;left:0;color:#fe921d;content:'•';font-size:24px;}*:first-of-type{display:initial;}}}",a.M.mbDown,"{padding:16px;h3{font-size:16px;line-height:24px;}p,span,li{font-size:16px;line-height:28px;}}}/* Article summary */\n .content-summary{padding:24px;margin-block:16px;background:#f7f9fc;border-bottom:2px solid #2d87f3;border-radius:8px;.title{margin-bottom:12px;h3{font-family:'Inter';font-style:normal;font-weight:700;font-size:18px;line-height:28px;/* identical to box height,or 156% */\n\n letter-spacing:-0.2px;/* Primary/Primary */\n\n color:#2d87f3;margin:0;}}.content{> p,> span,h3{margin-bottom:8px;}font-family:'Inter';font-style:normal;font-weight:400;font-size:18px;line-height:28px;letter-spacing:-0.2px;li{color:#262626;padding-left:24px;&:before{position:absolute;top:0;left:0;color:",d.w.colors.primaryBase,";content:'•';font-size:24px;margin-left:0;}*:first-of-type{display:initial;}}}",a.M.mbDown,"{padding:16px;ul{padding-left:0;}p,span{font-weight:400;font-size:16px;line-height:28px;letter-spacing:-0.2px;}h3{font-size:16px;line-height:24px;}}}"),v=(0,i.A)(n.D,{target:"e17jxpc16"})(a.M.mbDown,"{margin-right:-16px;margin-left:-16px;}");a.M.mbDown,d.w.colors.secondaryBase,d.w.sizes.fwBold;let f=(0,i.A)(s._,{target:"e17jxpc19"})(a.M.mbDown,"{margin-inline:0;}")},PyNM:function(e,o,t){"use strict";var i=t("dDsW"),n=t("PAs/");o.A=e=>{let{node:o}=e,{formatMessage:t}=(0,i.A)(),l=t({id:"multiSelectError.required",defaultMessage:"You must choose one options"});return(null==o?void 0:o.multi_select_option)===n.RS.UNLIMITED&&(l=t({id:"multiSelectError.unlimited",defaultMessage:"You must choose at least one options"})),(null==o?void 0:o.multi_select_option)===n.RS.RANGE&&(l=t({id:"multiSelectError.range",defaultMessage:"You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)"},{from:o.from,to:o.to})),(null==o?void 0:o.multi_select_option)===n.RS.EXACT_NUMBER&&(l=t({id:"multiSelectError.exactNumber",defaultMessage:"You must choose {from} answers."},{from:o.from})),l}},"ydk+":function(e,o,t){"use strict";var i=t("dDsW"),n=t("mYBQ"),l=t("PAs/");o.A=()=>{let{formatMessage:e}=(0,i.A)();return{validateSelectActions:(o,t,i)=>{if((null==t?void 0:t.multi_select_option)===l.RS.EXACT_NUMBER&&o.length!==(null==t?void 0:t.from)){(0,n.showNotification)({message:e({id:"multiSelectError.exactNumber",defaultMessage:"You must choose {from} answers."},{from:t.from}),type:"warning"});return}if((null==t?void 0:t.multi_select_option)===l.RS.RANGE&&(o.length<(null==t?void 0:t.from)||o.length>(null==t?void 0:t.to))){(0,n.showNotification)({title:"",message:e({id:"multiSelectError.range",defaultMessage:"You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)"},{from:t.from,to:t.to}),type:"warning"});return}if(o.length)i();else{(0,n.showNotification)({title:"",message:e({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"});return}}}}},"Z6z+":function(e,o,t){var i=t("+OUp");function Checkbox(e){return i.createElement("svg",e,[i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z",fill:"#2D87F3",stroke:"#2D87F3",strokeWidth:"2",key:0}),i.createElement("path",{d:"M15.5714 8L9.67857 14L7 11.2727",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1})])}Checkbox.defaultProps={width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},e.exports=Checkbox,Checkbox.default=Checkbox},SSaT:function(e,o,t){var i=t("+OUp");function PH(e){return i.createElement("svg",e,[i.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z",key:0}),i.createElement("path",{fill:"#0052B4",d:"M512 85.337V256H256L0 85.337z",key:1}),i.createElement("path",{fill:"#D80027",d:"M512 256v170.663H0L256 256z",key:2}),i.createElement("g",{fill:"#FFDA44",key:3},i.createElement("path",{d:"m161.908 256-27.288-12.835 14.532-26.428-29.632 5.668-3.755-29.933-20.64 22.015-20.639-22.015-3.755 29.933-29.631-5.669 14.531 26.428L28.343 256l27.288 12.835L41.1 295.263l29.633-5.668 3.753 29.933 20.639-22.015 20.64 22.015 3.755-29.933 29.631 5.669-14.532-26.427zM21.789 117.607l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.694-14.809-4.932-9.268 12.559.117-15.608-14.809-4.934 14.88-4.712zM21.789 353.53l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.695-14.809-4.933-9.268 12.558.117-15.607-14.809-4.934 14.88-4.712zM210.395 235.569l-9.081 12.695-14.879-4.713 9.268 12.559-9.081 12.696 14.809-4.933 9.268 12.558-.117-15.607 14.809-4.934-14.88-4.713z"}))])}PH.defaultProps={viewBox:"0 85.333 512 341.333"},e.exports=PH,PH.default=PH},os9y:function(e,o,t){var i=t("+OUp");function ArrowLeft(e){return i.createElement("svg",e,i.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}))}ArrowLeft.defaultProps={width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.exports=ArrowLeft,ArrowLeft.default=ArrowLeft},pnd8:function(e,o,t){var i=t("+OUp");function ArrowRight(e){return i.createElement("svg",e,i.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}))}ArrowRight.defaultProps={width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},e.exports=ArrowRight,ArrowRight.default=ArrowRight},PSBK:function(e,o,t){var i=t("+OUp");function Check(e){return i.createElement("svg",e,i.createElement("path",{d:"M13.3346 4L6.0013 11.3333L2.66797 8",stroke:"#737373",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))}Check.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=Check,Check.default=Check},LHJM:function(e,o,t){var i=t("+OUp");function DislikeArticle(e){return i.createElement("svg",e,[i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0521 17.2971L11.8834 21L12.6635 20.9685C12.6635 20.9685 13.5407 20.9441 14.4487 20.4869C15.3568 20.0297 16.375 18.9507 16.375 17.3045C16.375 16.2391 16.1102 15.1613 15.8458 14.3295H20.125C21.1497 14.3295 22 13.4694 22 12.4327V10.1153C22 9.89545 21.9497 9.6706 21.8462 9.467L18.6437 3.0429C18.3261 2.40607 17.6767 2 16.9701 2H8.875C7.85025 2 7 2.86016 7 3.89685V12.9421C7 13.4984 7.24299 14.0285 7.66284 14.3888L11.0521 17.2971ZM13.4432 18.8429C13.4125 18.8472 13.3784 18.852 13.3263 18.8679L12.7422 16.2616L8.875 12.9421V3.89685H16.9701L20.125 10.2283V12.4327H13.0864L13.6357 13.7497C13.6357 13.7497 14.5 15.9876 14.5 17.3045C14.5 18.2589 14.1119 18.5374 13.6138 18.7882C13.5294 18.8307 13.4902 18.8362 13.4432 18.8429Z",fill:"#595959",key:0}),i.createElement("path",{d:"M2 12.5C2 13.328 2.672 14 3.5 14C4.328 14 5 13.328 5 12.5V3.5C5 2.672 4.328 2 3.5 2C2.672 2 2 2.672 2 3.5V12.5Z",fill:"#595959",key:1})])}DislikeArticle.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.exports=DislikeArticle,DislikeArticle.default=DislikeArticle},Rlzi:function(e,o,t){var i=t("+OUp");function IconEdit(e){return i.createElement("svg",e,i.createElement("path",{d:"M19.1719 2C18.4481 2 17.7244 2.27562 17.1719 2.82812L16 4L20 8L21.1719 6.82812C22.2759 5.72412 22.2759 3.93313 21.1719 2.82812C20.6194 2.27562 19.8956 2 19.1719 2ZM14.5 5.5L3 17V21H7L18.5 9.5L14.5 5.5Z",fill:"#2685F1"}))}IconEdit.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.exports=IconEdit,IconEdit.default=IconEdit},"/qnE":function(e,o,t){var i=t("+OUp");function LikeArticle(e){return i.createElement("svg",e,[i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0521 5.70293L11.8834 2L12.6635 2.03149C12.6635 2.03149 13.5407 2.05593 14.4487 2.51311C15.3568 2.9703 16.375 4.04935 16.375 5.69552C16.375 6.76085 16.1102 7.83874 15.8458 8.67047H20.125C21.1497 8.67047 22 9.53063 22 10.5673V12.8847C22 13.1046 21.9497 13.3294 21.8462 13.533L18.6437 19.9571C18.3261 20.5939 17.6767 21 16.9701 21H8.875C7.85025 21 7 20.1398 7 19.1031V10.0579C7 9.50164 7.24299 8.97147 7.66284 8.61119L11.0521 5.70293ZM13.4432 4.15712C13.4125 4.15279 13.3784 4.14799 13.3263 4.1321L12.7422 6.73842L8.875 10.0579V19.1031H16.9701L20.125 12.7717V10.5673H13.0864L13.6357 9.25027C13.6357 9.25027 14.5 7.01241 14.5 5.69552C14.5 4.74112 14.1119 4.46257 13.6138 4.21176C13.5294 4.16929 13.4902 4.16376 13.4432 4.15712Z",fill:"#595959",key:0}),i.createElement("path",{d:"M2 10.5C2 9.672 2.672 9 3.5 9C4.328 9 5 9.672 5 10.5V19.5C5 20.328 4.328 21 3.5 21C2.672 21 2 20.328 2 19.5V10.5Z",fill:"#595959",key:1})])}LikeArticle.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.exports=LikeArticle,LikeArticle.default=LikeArticle},lDcf:function(e,o,t){var i=t("+OUp");function RotateLeft(e){return i.createElement("svg",e,[i.createElement("g",{clipPath:"url(#clip0)",key:0},[i.createElement("path",{d:"M0.666626 2.6665V6.6665H4.66663",stroke:"#737373",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",key:0}),i.createElement("path",{d:"M2.33996 10.0001C2.77222 11.227 3.59152 12.2802 4.6744 13.001C5.75728 13.7218 7.04508 14.0712 8.34377 13.9964C9.64246 13.9217 10.8817 13.4269 11.8747 12.5866C12.8677 11.7464 13.5608 10.6061 13.8494 9.3377C14.1381 8.06929 14.0067 6.74143 13.475 5.55419C12.9434 4.36696 12.0403 3.38466 10.9018 2.7553C9.76339 2.12595 8.45123 1.88364 7.16308 2.06487C5.87493 2.24611 4.68057 2.84108 3.75996 3.76013L0.666626 6.6668",stroke:"#737373",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",key:1})]),i.createElement("defs",{key:1},i.createElement("clipPath",{id:"clip0"},i.createElement("rect",{width:"16",height:"16",fill:"white"})))])}RotateLeft.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=RotateLeft,RotateLeft.default=RotateLeft}}]);