(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-edc744ba"],{"178c":function(e,t,s){"use strict";s.r(t);s("7f7f");var r=function(){var e=this,t=e._self._c;return t("li",[t("a",{class:e.className,attrs:{href:e.url,title:e.item.name,target:e.isBlank},on:{click:e.toggle}},[e._v(e._s(e.item.name))]),e.isChildren?t("transition",{attrs:{name:"nested"},on:{"before-enter":e.beforeEnter,enter:e.enter,"before-leave":e.beforeLeave,leave:e.leave}},[t("ul",{directives:[{name:"show",rawName:"v-show",value:e.collapse,expression:"collapse"}],staticClass:"nested"},e._l(e.item.children,(function(e,s){return t("MenuMemberList",{key:s,attrs:{item:e}})})),1)]):e._e(),e.item.new?t("span",{staticClass:"new"},[e._v("NEW")]):e._e()],1)},i=[],n=(s("8e6e"),s("ac6a"),s("456d"),s("bd86")),a=s("2f62");function o(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,r)}return s}function l(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?o(Object(s),!0).forEach((function(t){Object(n["a"])(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var c={name:"menu-member-list",components:{MenuMemberList:function(){return Promise.resolve().then(s.bind(null,"178c"))}},props:{item:{type:Object,default:function(){}}},data:function(){return{collapse:!0}},computed:l(l({},Object(a["e"])(["SOCIOLLA_WEB_URL","BJ_WEB_URL","SOCO_WEB_URL","REVIEW_WEB_URL","LULLA_WEB_URL","userProfile"])),{},{isChildren:function(){return this.item.children&&this.item.children.length},isBlank:function(){return!!this.item.key&&(!(this.item.key.indexOf("BJ_WEB_URL")>-1)&&"_blank")},url:function(){var e=this.item.key,t=this.item.path;return e?(t=t.indexOf("/timeline")>-1?"/"+this.userProfile.user_name:t,this[e]+t):"javascript:"},className:function(){return Object(n["a"])(Object(n["a"])({},this.item.icon,this.item.icon),"collapse",this.collapse)}}),methods:{toggle:function(){this.item.url&&(this.$store.commit("closeOffCanvas"),this.$SO.size(this.userProfile)?Boolean(this.userProfile.beauty&&this.userProfile.beauty.length)?this.$router.push("/our-curated-selection"):this.$store.commit("toggleModalGlobalState",{modalName:"confirmBP"}):this.$store.commit("modalAuth",1)),this.isChildren&&(this.collapse=!this.collapse)},beforeEnter:function(e){e.style.height=0},enter:function(e){e.style.height=e.scrollHeight+"px"},beforeLeave:function(e){e.style.height=e.scrollHeight+"px",getComputedStyle(e).height},leave:function(e){e.style.height=0}}},u=c,m=s("2877"),p=Object(m["a"])(u,r,i,!1,null,null,null);t["default"]=p.exports},5098:function(e,t,s){},"69d1":function(e,t,s){"use strict";s("5098")},e328:function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"drawer"},[e.auth.loggedin?t("MenuMember",{attrs:{items:e.menu.member,profile:e.profile}}):t("MenuGuest",{attrs:{items:e.menu.guest}})],1)},i=[],n=(s("8e6e"),s("ac6a"),s("456d"),s("bd86")),a=s("2f62"),o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"member"},[t("div",{staticClass:"profile"},[t("span",{staticClass:"drop-down-menu profile-wrap"},[t("div",{staticClass:"profile-img"},[t("GImageUser",{staticClass:"img-user",attrs:{username:e.profile.user_name||null,src:e.profile.image,"class-name":"avatar",alt:e.profile.user_name||"icon-default-avatar","user-level":e.profile.user_level,"is-expert-review":e.isExpertReview,user:e.auth||null}})],1),t("div",{staticClass:"profile-detail"},[t("p",{staticClass:"name"},[e._v(e._s(e.profile.first_name+" "+e.profile.last_name))]),t("div",{staticClass:"username-wrapper"},[t("a",{staticClass:"username"},[e._v("@"+e._s(e.profile.user_name))]),e.profile.expert_role?t("div",{staticClass:"expert-role"},[e._v("\n            "+e._s(e.convertName(e.profile.expert_role))+"\n          ")]):e._e()]),t("a",{staticClass:"txt-danger",attrs:{href:"".concat(e.$store.state.SOCO_WEB_URL,"/").concat(e.profile.user_name,"/timeline")}},[e._v(" View profile ")])])]),t("div",{staticClass:"soco-level-points",attrs:{id:"soco-level-points"}},[t("a",{attrs:{href:"".concat(e.$store.state.SOCO_WEB_URL,"/profile/points-rewards"),target:"_blank"}},[t("section",{staticClass:"soco-level"},[e.userLevelKebabCase?t("img",{staticClass:"lazy-img",attrs:{src:"/assets/img/loyalty-point/".concat(e.userLevelKebabCase,".svg")}}):t("img",{staticClass:"lazy-img",attrs:{src:"/assets/img/loyalty-point/soco-star.svg"}}),t("section",[t("p",[e._v("Your Beauty Star")]),e.userLevelKebabCase?t("img",{staticClass:"lazy-img user-level-caption",attrs:{src:"/assets/img/loyalty-point/".concat(e.userLevelKebabCase,"-caption.svg")}}):t("img",{staticClass:"lazy-img user-level-caption",attrs:{src:"/assets/img/loyalty-point/soco-star-caption.svg"}})])]),t("section",{staticClass:"soco-points"},[t("section",[e._m(0),t("span",{staticClass:"points"},[e._v(e._s(e.auth.points.count||0))])])]),t("img",{attrs:{src:"/assets/img/arrow-right-red.svg",width:"24"}})])])]),e._l(e.items,(function(s,r){return t("ul",{key:r,staticClass:"menu"},e._l(s,(function(e,s){return t("MenuMemberList",{key:s,attrs:{item:e}})})),1)})),t("ul",{staticClass:"menu"},[t("li",[t("a",{staticClass:"logout",attrs:{href:"javascript:"},on:{click:e.logout}},[e._v(e._s(e.logoutText))])])])],2)},l=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"points-container"},[t("img",{staticClass:"lazy-img sp-icon",attrs:{src:"/assets/img/icon_sp.svg"}}),t("p",[e._v("Soco Points")])])}],c=(s("28a5"),s("178c")),u=s("200d"),m={name:"menu-member",components:{MenuMemberList:c["default"]},props:{items:{type:Array,default:function(){return[]}},profile:{type:Object,default:function(){}}},data:function(){return{isLogout:!1}},computed:{logoutText:function(){return this.isLogout?"Logging out...":"Logout"},auth:function(){return this.$store.state.auth},isExpertReview:function(){return this.$store.state.auth.userProfile.is_expert_reviewer},userLevelKebabCase:function(){return this.$store.state.auth&&this.$store.state.auth.userProfile&&this.$store.state.auth.userProfile.user_level?this.$store.state.auth.userProfile.user_level.toLowerCase().split(" ").join("-"):"soco-star"}},methods:{logout:function(){this.isLogout=!0,u["a"].logout(this)},convertName:function(e){var t="";return t=e.split("_").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" "),t}}},p=m,f=s("2877"),h=Object(f["a"])(p,o,l,!1,null,null,null),b=h.exports,_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"member"},[t("button",{staticClass:"btn btn-loadmore btn-block"},[t("a",{staticClass:"login",attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.setModalState(1)}}},[e._v(" LOGIN WITH ")]),t("SvgImg",{attrs:{id:"logo-header-small-soco",name:"logo-header-small-soco",width:"44",height:"10"}})],1),e._l(e.items,(function(s,r){return t("ul",{key:r,staticClass:"menu"},e._l(s,(function(e,s){return t("MenuMemberList",{key:s,attrs:{item:e}})})),1)}))],2)},g=[];function v(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,r)}return s}function O(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?v(Object(s),!0).forEach((function(t){Object(n["a"])(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):v(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var d={name:"menu-guest",components:{MenuMemberList:c["default"]},props:{items:{type:Array,default:function(){return[]}}},methods:O(O({},Object(a["d"])(["closeOffCanvas","modalAuth"])),{},{showModal:function(e){this.closeOffCanvas(),this.$store.commit("setDataModal",{modalName:"loginPage",value:e})},setModalState:function(e){this.$store.commit("setDataModal",{modalName:"loginPage",value:e})}})},y=d,w=Object(f["a"])(y,_,g,!1,null,null,null),j=w.exports,C={menu:{member:[[{name:"Meet Our Experts",icon:"expert",key:"REVIEW_WEB_URL",path:"/expert/users",children:[],new:!1},{name:"My Review",icon:"my-review",key:"SOCO_WEB_URL",path:"/journal/review",children:[]},{name:"Bookmark",icon:"bookmark",key:"SOCO_WEB_URL",path:"/journal/bookmark",children:[]},{name:"Wishlist",icon:"wishlist",key:"SOCO_WEB_URL",path:"/shopping/wishlist",children:[]}],[{key:"SOCIOLLA_WEB_URL",name:"Sociolla",icon:"s-web",path:""},{key:"BJ_WEB_URL",name:"Beauty Journal",icon:"bj-web",path:""},{key:"LULLA_WEB_URL",name:"lilla",icon:"l-web",path:""}]],guest:[[{name:"Meet Our Experts",icon:"expert",key:"REVIEW_WEB_URL",path:"/expert/users",children:[],new:!1}],[{key:"SOCIOLLA_WEB_URL",name:"Sociolla",icon:"s-web",path:""},{key:"BJ_WEB_URL",name:"Beauty Journal",icon:"bj-web",path:""},{key:"LULLA_WEB_URL",name:"lilla",icon:"l-web",path:""}]]}},L=C;function k(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,r)}return s}function P(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?k(Object(s),!0).forEach((function(t){Object(n["a"])(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):k(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var E={name:"the-drawer",components:{MenuMember:b,MenuGuest:j},data:function(){return P({},L)},computed:P(P({},Object(a["e"])(["auth"])),Object(a["e"])({profile:function(e){var t=e.userProfile,s=t.image,r=t.user_name,i=t.points,n=t.expert_role,a=t.user_level,o=t.first_name,l=t.last_name;return{image:s,user_name:r,points:i,expert_role:n,user_level:a,first_name:o,last_name:l}}}))},B=E,x=(s("69d1"),Object(f["a"])(B,r,i,!1,null,"0be40150",null));t["default"]=x.exports}}]);
//# sourceMappingURL=chunk-edc744ba.5a35c67eae5480bce876-1730203539510.js.map