"use strict";(self.webpackChunkapp_container=self.webpackChunkapp_container||[]).push([[7021],{2475:(e,t,l)=>{l.r(t),l.d(t,{BackButtonComponent:()=>z,BackButtonWrapper:()=>d,CustomPageWrapper:()=>D,CustomerPageGreeting:()=>L,CustomerPageWrapper:()=>O,Divider:()=>Y,NavigationCustomLink:()=>A,NavigationCustomPage:()=>U,NavigationLink:()=>u,NavigationLinkWithBadge:()=>P,NavigationRouteWraper:()=>o,NavigationTotalWrapper:()=>b,NavigationWrapper:()=>y});var a=l(4914),n=l.n(a);const i={flits_account_body:"NavigationRouteWraperModule_flits_account_body__ZFQXd"},o=e=>n().createElement("div",{className:i.flits_account_body},null==e?void 0:e.children);var _=l(5605);const s={flits_menu_item:"NavigationLinkModule_flits_menu_item__elmFA",flits_menu_img:"NavigationLinkModule_flits_menu_img__JAE4i",flits_menu_img_custom_link_page:"NavigationLinkModule_flits_menu_img_custom_link_page__EoD6+",flits_menu_active:"NavigationLinkModule_flits_menu_active__Vd1CG",flits_menu_title:"NavigationLinkModule_flits_menu_title__bivDB",flits_badge:"NavigationLinkModule_flits_badge__NgYqi",flits_menu_badge:"NavigationLinkModule_flits_menu_badge__CNqXC",flits_slider_slide:"NavigationLinkModule_flits_slider_slide__0o40L"};var c=l(8330),r=l(8765);const u=e=>{let{item:t,handleLinkClick:l,index:i,activeLink:o}=e;const u=(0,c.useSelector)((e=>e.storeFrontHowToManageCredit.ruleData)),d=_.GlobalStore.Get()._globalActions.Helpers[0].useTranslationLanguage,{t:m}=d();return"fromAdmin"!==(null==t?void 0:t.path)||(()=>{for(let t=0;t<(null==u?void 0:u.length);t++){var e;if("flits_from_admin_rules"===(null===(e=u[t])||void 0===e?void 0:e.tab_to_append))return!0}return!1})()?n().createElement("div",{className:"".concat(s.flits_menu_item," ").concat(s.flits_slider_slide," ").concat(s.flits_slider_slide_current," ").concat(o===i?s.flits_menu_active:""," flits_navigation_").concat(null==t?void 0:t.path," flits_navigation_item"),key:i,name:null==t?void 0:t.remoteApp},n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(r.Link,{to:null==t?void 0:t.path,id:null==t?void 0:t.path,exact:"true",key:i,onClick:()=>{l(i)},className:"".concat(s.flits_nav_link," flits_navigation_link_").concat(null==t?void 0:t.path," flits_navigation_link")},null!=t&&t.duoSvg?"string"==typeof(null==t?void 0:t.duoSvg)?n().createElement("span",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.duoSvg},className:"".concat(s.flits_menu_img," flits_navigation_link_").concat(null==t?void 0:t.path,"_icon flits_navigation_link_icon")}):n().createElement("span",{className:"".concat(s.flits_menu_img," flits_navigation_link_").concat(null==t?void 0:t.path,"_icon flits_navigation_link_icon")},null==t?void 0:t.duoSvg):null,n().createElement("span",{className:"".concat(s.flits_menu_title," flits_navigation_link_").concat(null==t?void 0:t.path,"_label flits_navigation_link_label")},m(null==t?void 0:t.label[0],null==t?void 0:t.label[1]))))):null},d=e=>null,m={flits_account_box:"NavigationTotalWrapperModule_flits_account_box__UJ6yr",flits_with_boundary:"NavigationTotalWrapperModule_flits_with_boundary__S55fG",flits_container_box:"NavigationTotalWrapperModule_flits_container_box__43l3G",flits_mr:"NavigationTotalWrapperModule_flits_mr__t2o1n",flits_navigation_header:"NavigationTotalWrapperModule_flits_navigation_header__hMURM",flits_box_card:"NavigationTotalWrapperModule_flits_box_card__Od28G",flits_with_box_shadow:"NavigationTotalWrapperModule_flits_with_box_shadow__fx5aE",flits_box_shadow:"NavigationTotalWrapperModule_flits_box_shadow__FKl6C",flits_get:"NavigationTotalWrapperModule_flits_get__PyG43",flits_remove_box_shadow:"NavigationTotalWrapperModule_flits_remove_box_shadow__2Kpwa",flits_logout_button:"NavigationTotalWrapperModule_flits_logout_button__B9SFY",flits_px_15:"NavigationTotalWrapperModule_flits_px_15__bUkAd",flits_pb_15:"NavigationTotalWrapperModule_flits_pb_15__qK20R",flits_mt_25:"NavigationTotalWrapperModule_flits_mt_25__d1UZt",flits_user_avatar:"NavigationTotalWrapperModule_flits_user_avatar__hCxdX",flits_wishlist_product_list:"NavigationTotalWrapperModule_flits_wishlist_product_list__Znwo+",flits_navigation_header_content:"NavigationTotalWrapperModule_flits_navigation_header_content__fRJFI"};var v=l(2142),g=l(3327);const f=e=>{var t,l,i,o,_;const[s,r]=(0,a.useState)(window.innerWidth),u=(0,c.useSelector)((e=>e.storeFrontMyProfile.firstNameInitial)),d=(0,c.useSelector)((e=>e.storeFrontMyProfile.lastNameInitial));return(0,a.useEffect)((()=>{const e=()=>{r(window.innerWidth)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),null!=e&&e.notNeedWrapper&&s<=767?null==e?void 0:e.children:n().createElement("div",{className:"".concat(m.flits_account_box," ").concat(m.flits_with_boundary," ").concat(m.flits_account_box_active," ").concat(null!=e&&e.needMR?m.flits_mr:""," ").concat(null!=e&&e.notNeedBoxShadow?m.flits_box_shadow:"")},n().createElement("div",{className:"".concat(m.flits_navigation_header," ").concat(m.flits_with_box_shadow," ").concat(null!=e&&e.notNeedBoxShadow?m.flits_remove_box_shadow:"")},n().createElement("a",{href:null!==(t=null===(l=window)||void 0===l||null===(l=l.commonEndpoint)||void 0===l?void 0:l.logout)&&void 0!==t?t:"/account/logout",className:m.flits_logout_button,noInstant:"","data-no-instant":""},n().createElement(v.E,{svgString:null===(i=window)||void 0===i||null===(i=i.DuoIcon)||void 0===i?void 0:i.LogoutMobile})),n().createElement("div",{className:m.flits_user_avatar,"data-flits-name":"".concat((null==u?void 0:u.length)>0?u.charAt(0).toUpperCase():"").concat((null==d?void 0:d.length)>0?d.charAt(0).toUpperCase():"")}),n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(g.UserBox,{mt:!0}))),n().createElement("div",{className:"".concat(m.flits_container_box," ").concat("storeFrontDeliveryAddress"===(null==e||null===(o=e.item)||void 0===o?void 0:o.remoteApp)&&m.flits_px_15," ").concat("storeFrontDeliveryAddress"===(null==e||null===(_=e.item)||void 0===_?void 0:_.remoteApp)&&m.flits_pb_15," ").concat(m.flits_mt_25)},null==e?void 0:e.children))},p=e=>n().createElement("div",{className:"".concat(m.flits_account_box," ").concat(m.flits_account_box_active," ").concat(null!=e&&e.boundary?m.flits_get:"")},null==e?void 0:e.children),b=e=>"storeFrontMyProfile"===(null==e?void 0:e.remoteApp)||"storeFrontChangePassword"===(null==e?void 0:e.remoteApp)||"storeFrontTopOrderedProducts"===(null==e?void 0:e.remoteApp)||"storeFrontDeliveryAddress"===(null==e?void 0:e.remoteApp)?n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(f,e)):n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(p,e));var h=l(9819);const E={flits_menu_nav:"NavigationWrapperModule_flits_menu_nav__3a5iq",flits_menus_list_box:"NavigationWrapperModule_flits_menus_list_box__vGyqe",flits_menu_items:"NavigationWrapperModule_flits_menu_items__ypIFL",flits_mobile_navigation:"NavigationWrapperModule_flits_mobile_navigation__Niw0X",flits_slider_dots:"NavigationWrapperModule_flits_slider_dots__qq03q",flits_slider_active:"NavigationWrapperModule_flits_slider_active__L5tJ9",flits_bullet_class:"NavigationWrapperModule_flits_bullet_class__UWpaL",flits_active_class_style_bullet:"NavigationWrapperModule_flits_active_class_style_bullet__5UoEm",flits_desktop:"NavigationWrapperModule_flits_desktop__Av9+C",flits_slider:"NavigationWrapperModule_flits_slider__Eds+B",flits_swiper_button_parent:"NavigationWrapperModule_flits_swiper_button_parent__+0r-Y",flitsFadeIn:"NavigationWrapperModule_flitsFadeIn__G94ge"},k="NavigationHeadingModule_flits_d_flex__QScdf",N=e=>{const t="rotate("+e.hourAngle+" 10 10)",l="rotate("+e.minuteAngle+" 10 10)",a="rotate("+e.secondAngle+" 10 10)";return n().createElement("svg",{className:"".concat("Clock_flits_svg_clock__XqHxz"," flits_navigation_clock_svg")},n().createElement("g",null,n().createElement("circle",{className:"".concat("Clock_flits_clock_circle__tGYxK"," flits_navigation_clock_circle"),cx:"50%",cy:"50%",r:"45%"})),n().createElement("g",{className:"".concat("Clock_flits_clock_hande__DY5HP"," flits_navigation_clock_handle")},n().createElement("line",{x1:"50%",y1:"50%",x2:"50%",y2:"25%",id:"flits-hourhand",transform:t}),n().createElement("line",{x1:"50%",y1:"50%",x2:"50%",y2:"15%",id:"flits-minutehand",transform:l}),n().createElement("line",{x1:"50%",y1:"50%",x2:"50%",y2:"12%",id:"flits-secondhand",transform:a})),n().createElement("circle",{className:"".concat("Clock_flits_clock_hand_center__QYzLq"," flits_navigation_clock_handle_center"),cx:"50%",cy:"50%",r:"3%"}))},w=e=>n().createElement("p",{className:"".concat("Clock_flits_current_time__KTfXD"," flits_navigation_current_time_value")},e.formattedTime),M=()=>{const[e,t]=(0,a.useState)(""),[l,i]=(0,a.useState)(""),[o,_]=(0,a.useState)(""),[s,c]=(0,a.useState)("");return(0,a.useEffect)((()=>{setInterval((()=>{var e={datetime:new Date,hour:!0,minute:!0,second:!0,ampm:!0,hours12:!0,svgClock:!0};let l,a,n,o,s;l=e.datetime.getHours(),a=e.datetime.getMinutes(),n=e.datetime.getSeconds(),a=a<10?"0"+a:a,o=l>=12?"PM":"AM",e.hours12&&(l%=12,l=l||12),l=l<10?"0"+l:l,n=n<10?"0"+n:n,e.hour||(l=""),a=e.minute?":"+a:"",n=e.second?":"+n:"",e.hours12&&e.ampm||(o=""),s=l+a+n+" "+o;let r=e.datetime.getHours()%12*30+e.datetime.getMinutes()/2,u=6*e.datetime.getMinutes(),d=6*e.datetime.getSeconds();i(r),_(u),c(d),t(s)}),1e3)}),[]),""===e?null:n().createElement(n().Fragment,null,n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(N,{hourAngle:l,minuteAngle:o,secondAngle:s}),n().createElement(w,{formattedTime:e})))},C=()=>{const e=(0,c.useSelector)((e=>e.storeFrontMyProfile.firstNameInitial)),t=(0,c.useSelector)((e=>e.storeFrontMyProfile.lastNameInitial));return n().createElement("div",{className:"".concat("NavigationHeadingModule_flits_navigation_header__956E2"," ").concat("NavigationHeadingModule_flits_with_shadow__xOViZ"," flits_navigation_header_wrapper")},n().createElement("div",{className:"".concat("NavigationHeadingModule_flits_user_avatar__ndsEv"," flits_navigation_user_avatar_logo"),"data-flits-name":"".concat((null==e?void 0:e.length)>0?e.charAt(0).toUpperCase():"").concat((null==t?void 0:t.length)>0?t.charAt(0).toUpperCase():"")}),n().createElement("div",{className:"".concat("NavigationHeadingModule_flits_user_box__cfNB4"," flits_navigation_user_box")},n().createElement("div",{className:"".concat(k," flits_navigation_customer_full_name_wrapper")},n().createElement("p",{className:"".concat("NavigationHeadingModule_flits_h4__4hPpd"," ").concat("NavigationHeadingModule_flits_user_name__Aq0wV"," flits_navigation_customer_full_name")},"".concat(e," ").concat(t))),n().createElement("div",{className:"".concat(k," ").concat("NavigationHeadingModule_flits_align_items_center__ggVrV"," flits_navigation_clock_wrapper")},n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(M,null)))))};l(9425),l(3473),l(9071);var x=l(3578);const y=e=>{const t=(0,c.useSelector)((e=>e.storeFrontHowToManageCredit.ruleData));return(0,a.useEffect)((()=>{const e=document.getElementsByClassName("swiper-pagination-clickable");Array.from(e).forEach((e=>{e.classList.add("".concat(E.flits_swiper_button_parent))}))}),[]),n().createElement("div",{className:"".concat(E.flits_menu_nav," flits_navigation_main_wrapper")},n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(C,null)),n().createElement("div",{className:"".concat(E.flits_menus_list_box," flits_navigation_menu_box")},n().createElement("div",{className:"".concat(E.flits_menu_items," ").concat(E.flits_slider_initialized," ").concat(E.flits_slider," ").concat(E.flits_slider_dotted," flits_navigation_wrapper")},n().createElement("div",{className:"".concat(E.flits_desktop," flits_navigation_wrapper_desktop")},e.children),n().createElement("div",{className:"".concat(E.flits_mobile_navigation," flits_navigation_wrapper_mobile")},n().createElement(x.RC,{resizeObserver:!0,createElements:!0,style:{position:"static"},spaceBetween:0,freeMode:!0,breakpoints:{0:{slidesPerView:3,slidesPerGroup:3,spaceBetween:0},530:{slidesPerView:3,slidesPerGroup:3,spaceBetween:0},860:{spaceBetween:0,slidesPerGroup:3,slidesPerView:3}},pagination:{clickable:!0,bulletClass:E.flits_bullet_class,bulletActiveClass:E.flits_active_class_style_bullet},modules:[h.U1,h.dK]},a.Children.map(e.children,((e,l)=>{var i,o;return null!=e&&null!==(i=e.props)&&void 0!==i&&i.item&&0!==Object.keys(null==e?void 0:e.props).length&&("fromAdmin"!==(null==e||null===(o=e.props)||void 0===o||null===(o=o.item)||void 0===o?void 0:o.path)||(()=>{for(let l=0;l<(null==t?void 0:t.length);l++){var e;if("flits_from_admin_rules"===(null===(e=t[l])||void 0===e?void 0:e.tab_to_append))return!0}return!1})())?n().createElement(x.qr,{key:l,style:{display:"contents",justifyContent:"center"}},(0,a.cloneElement)(e)):null})))))))};function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t,l,a,i,o,c,r;let{item:u,handleLinkClick:d,index:m,activeLink:v}=e;const g=_.GlobalStore.Get()._globalActions.Helpers[0].useTranslationLanguage,{t:f}=g(),p=null!=u&&null!==(t=u.path)&&void 0!==t&&t.endsWith("logout")?{noInstant:"","data-no-instant":""}:{};return n().createElement("div",{className:"".concat(s.flits_menu_item," ").concat(s.flits_slider_slide," ").concat(s.flits_slider_slide_current," ").concat(v===m?s.flits_active:""," flits_navigation_").concat(null==u||null===(l=u.label)||void 0===l||null===(l=l[1])||void 0===l||null===(l=l.replaceAll(/\s+/g,"_"))||void 0===l||null===(l=l.replace("/","_"))||void 0===l?void 0:l.toLowerCase()," flits_navigation_item"),key:m,name:null==u?void 0:u.remoteApp},n().createElement("a",S({href:null==u?void 0:u.path,key:m,id:null==u?void 0:u.path,rel:"noreferrer",exact:"true",target:null!=u&&u.target?null==u?void 0:u.target:null!=u&&null!==(a=u.path)&&void 0!==a&&a.endsWith("logout")?"_self":"_blank",onClick:()=>{},className:"".concat(s.flits_nav_link," flits_navigation_link_").concat(null==u||null===(i=u.label)||void 0===i||null===(i=i[1])||void 0===i||null===(i=i.replaceAll(/\s+/g,"_"))||void 0===i||null===(i=i.replace("/","_"))||void 0===i?void 0:i.toLowerCase()," flits_navigation_link")},p),null!=u&&u.duoSvg?"string"==typeof(null==u?void 0:u.duoSvg)?n().createElement("span",{dangerouslySetInnerHTML:{__html:null==u?void 0:u.duoSvg},className:"".concat(s.flits_menu_img," ").concat(s.flits_menu_img_custom_link_page," flits_navigation_link_").concat(null==u||null===(o=u.label)||void 0===o||null===(o=o[1])||void 0===o||null===(o=o.replaceAll(/\s+/g,"_"))||void 0===o||null===(o=o.replace("/","_"))||void 0===o?void 0:o.toLowerCase(),"_icon flits_navigation_link_icon")}):n().createElement("span",{className:"".concat(s.flits_menu_img," ").concat(s.flits_menu_img_custom_link_page,"flits_navigation_link_").concat(null==u||null===(c=u.label)||void 0===c||null===(c=c[1])||void 0===c||null===(c=c.replaceAll(/\s+/g,"_"))||void 0===c||null===(c=c.replace("/","_"))||void 0===c?void 0:c.toLowerCase(),"_icon flits_navigation_link_icon")},null==u?void 0:u.duoSvg):null,n().createElement("span",{className:"".concat(s.flits_menu_title," flits_navigation_link_").concat(null==u||null===(r=u.label)||void 0===r||null===(r=r[1])||void 0===r||null===(r=r.replaceAll(/\s+/g,"_"))||void 0===r||null===(r=r.replace("/","_"))||void 0===r?void 0:r.toLowerCase(),"_label flits_navigation_link_label")},f(null==u?void 0:u.label[0],null==u?void 0:u.label[1]).toLowerCase())))},W={flits_greeting_header:"CustomerPageGreetingModule_flits_greeting_header__0cWXJ",flits_h1:"CustomerPageGreetingModule_flits_h1__sYJFk",flits_greeting_text:"CustomerPageGreetingModule_flits_greeting_text__aaYWI",flits_user_name:"CustomerPageGreetingModule_flits_user_name__LQmzj"},L=e=>{const t=(0,c.useSelector)((e=>e.storeFrontMyProfile.firstNameInitial)),[l,i]=(0,a.useState)("Hello"),o=_.GlobalStore.Get()._globalActions.Helpers[0].useTranslationLanguage,{t:s}=o();return(0,a.useEffect)((()=>{const e=()=>{const e=(new Date).getHours();var t;i("".concat((t=e)>=5&&t<12?s("flits.general.morning","Good Morning"):t>=12&&t<17?s("flits.general.afternoon","Good Afternoon"):t>=17&&t<=24||t>0&&t<5?s("flits.general.evening","Good Evening"):s("flits.general.morning","Good Morning"),"! "))};e();const t=setInterval(e,1e3);return()=>clearInterval(t)}),[s]),n().createElement("div",{className:"".concat(W.flits_greeting_header," flits_account_page_header")},n().createElement("p",{className:"".concat(W.flits_h1," ").concat(W.flits_greeting_text," flits_greeting_header_title")},n().createElement("span",{className:W.flits_greeting_title},l),n().createElement("span",{className:"".concat(W.flits_user_name," flits_customer_greeting_name")},t)))};var F=l(8610);const P=e=>{var t,l,i,o,u;let{item:d,handleLinkClick:m,index:v,activeLink:g}=e;const f=_.GlobalStore.Get()._globalActions.Helpers[0].useTranslationLanguage,p=(0,c.useSelector)((e=>e.storeFrontDeliveryAddress.addressCount));let b=parseInt(null===(t=window)||void 0===t||null===(t=t.flitsThemeAppExtensionObjects)||void 0===t||null===(t=t.customer)||void 0===t?void 0:t.order_count);var h;0===parseInt(null===(l=window)||void 0===l||null===(l=l.flitsThemeAppExtensionObjects)||void 0===l||null===(l=l.customer)||void 0===l?void 0:l.order_count)&&(b=parseInt(null===(h=window)||void 0===h||null===(h=h.flitsThemeAppExtensionObjects)||void 0===h||null===(h=h.customer)||void 0===h?void 0:h.orderSize));const E=(0,c.useSelector)((e=>e.storeFrontWishList.wishListCount)),{creditData:k,refundCreditApiData:N}=(0,c.useSelector)((e=>e.storeFrontCredit)),{t:w}=f();return n().createElement("div",{className:"".concat(s.flits_menu_item," ").concat(s.flits_slider_slide," ").concat(s.flits_slider_slide_current," ").concat(g===v?s.flits_menu_active:""," flits_navigation_").concat(null==d?void 0:d.path," flits_navigation_item"),key:v,name:null==d?void 0:d.remoteApp},n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(r.Link,{id:null==d?void 0:d.path,to:null==d?void 0:d.path,key:v,exact:"true",onClick:()=>{m(v)},className:"".concat(s.flits_nav_link," flits_navigation_link_").concat(null==d?void 0:d.path," flits_navigation_link")},null!=d&&d.duoSvg?"string"==typeof(null==d?void 0:d.duoSvg)?n().createElement("span",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.duoSvg},className:"".concat(s.flits_menu_img," flits_navigation_link_").concat(null==d?void 0:d.path,"_icon flits_navigation_link_icon")}):n().createElement("span",{className:"".concat(s.flits_menu_img," flits_navigation_link_").concat(null==d?void 0:d.path,"_icon flits_navigation_link_icon")},null==d?void 0:d.duoSvg):null,n().createElement("span",{className:"".concat(s.flits_menu_title," flits_navigation_link_").concat(null==d?void 0:d.path,"_label flits_navigation_link_label")},w(null==d?void 0:d.label[0],null==d?void 0:d.label[1])))),"storeFrontDeliveryAddress"===(null==d?void 0:d.remoteApp)&&n().createElement("span",{className:"".concat(s.flits_menu_badge," ").concat(s.flits_badge," flits_navigation_link_").concat(null==d?void 0:d.path,"_badge flits_navigation_link_badge"),style:{opacity:1}},p),"storeFrontOrder"===(null==d?void 0:d.remoteApp)&&n().createElement("span",{className:"".concat(s.flits_menu_badge," ").concat(s.flits_badge," flits_navigation_link_").concat(null==d?void 0:d.path,"_badge flits_navigation_link_badge"),style:{opacity:1}},b),"storeFrontCredit"===(null==d?void 0:d.remoteApp)&&k&&n().createElement("span",{className:"".concat(s.flits_menu_badge," ").concat(s.flits_badge," flits_navigation_link_").concat(null==d?void 0:d.path,"_badge flits_navigation_link_badge"),style:{opacity:1}},parseFloat(null==k||null===(i=k.customer)||void 0===i?void 0:i.credits)<0?"- ":"",n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(F.MoneyFormat,{price:Math.abs(null==k||null===(o=k.customer)||void 0===o?void 0:o.credits)/100}))),"storeFrontRefundCredit"===(null==d?void 0:d.remoteApp)&&N&&n().createElement("span",{className:"".concat(s.flits_menu_badge," ").concat(s.flits_badge," flits_navigation_link_").concat(null==d?void 0:d.path,"_badge flits_navigation_link_badge"),style:{opacity:1}},parseFloat(null==N?void 0:N.current_refund_credits)<0?"- ":"",n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(F.MoneyFormat,{price:Math.abs(null==N?void 0:N.current_refund_credits)/100}))),"storeFrontWishListPage"===(null==d?void 0:d.remoteApp)&&E&&n().createElement("span",{className:"".concat(s.flits_menu_badge," ").concat(s.flits_badge," flits_navigation_link_").concat(null==d?void 0:d.path,"_badge flits_navigation_link_badge"),style:{opacity:1}},null!==(u=null==E?void 0:E.count)&&void 0!==u?u:0))},T="CustomPageWrapperModule_flits_header_title__lHcHd",B="CustomPageWrapperModule_flits_container_box__UL3V+",G="CustomPageWrapperModule_flits_box_card__H2HnE",H="CustomPageWrapperModule_flits_mobile__-lKr3",I="CustomPageWrapperModule_flits_desktop__bv+9D",D=e=>{var t,l,i;const o=_.GlobalStore.Get(),s=(0,c.useSelector)((e=>e.storeFrontMyProfile.firstNameInitial)),r=(0,c.useSelector)((e=>e.storeFrontMyProfile.lastNameInitial)),[u,d]=(0,a.useState)(window.innerWidth),{t:m}=o._globalActions.Helpers[0].useTranslationLanguage();(0,a.useEffect)((()=>{const t=()=>{if("subscriptions/list"===(null==e?void 0:e.path)){var t;const e=null===(t=document)||void 0===t||null===(t=t.querySelectorAll(".AppstleCustomerPortal"))||void 0===t||null===(t=t[0])||void 0===t?void 0:t.children;0===(null==e?void 0:e.length)&&window.appstleSubscriptionCustomerPortalInit(".AppstleCustomerPortal")}d(window.innerWidth)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}),[]);const f=u<=767;return n().createElement(n().Fragment,null,f?n().createElement("div",null,n().createElement("div",{className:"".concat("CustomPageWrapperModule_flits_navigation_header__Cx0We"," ").concat("CustomPageWrapperModule_flits_with_box_shadow__JDY36"," ").concat(null!=e&&e.notNeedBoxShadow?"CustomPageWrapperModule_flits_remove_box_shadow__7qAAe":""," ").concat(H)},n().createElement("a",{href:null!==(t=null===(l=window)||void 0===l||null===(l=l.commonEndpoint)||void 0===l?void 0:l.logout)&&void 0!==t?t:"/account/logout",className:"CustomPageWrapperModule_flits_logout_button__q5dxO",noInstant:"","data-no-instant":""},n().createElement(v.E,{svgString:null===(i=window)||void 0===i||null===(i=i.DuoIcon)||void 0===i?void 0:i.LogoutMobile})),n().createElement("div",{className:"CustomPageWrapperModule_flits_user_avatar__ES8YC","data-flits-name":"".concat((null==s?void 0:s.length)>0?s.charAt(0).toUpperCase():"").concat((null==r?void 0:r.length)>0?r.charAt(0).toUpperCase():"")}),n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(g.UserBox,{mt:!0}))),n().createElement("div",{className:"".concat(G," ").concat(T," ").concat("CustomPageWrapperModule_flits_p_10__PYR8+"," ").concat(H)},m(null==e?void 0:e.label[0],null==e?void 0:e.label[1]).toLowerCase()),n().createElement("div",{className:"".concat(B," ").concat("CustomPageWrapperModule_flits_mt_25__JzAwb"," ").concat(H)},n().createElement("div",{className:"".concat(G," ").concat("CustomPageWrapperModule_flits_p_15__IbalG")},e.children))):n().createElement("div",null,n().createElement("div",{className:"".concat("CustomPageWrapperModule_flits_account_box_header__p6Sw3"," ").concat(I)},n().createElement("div",{className:T},m(null==e?void 0:e.label[0],null==e?void 0:e.label[1]).toLowerCase())),n().createElement("div",{className:"".concat(B," ").concat(I)},n().createElement("div",{className:G},e.children))))},U=e=>{let{item:t,handleLinkClick:l,index:i,activeLink:o}=e;const c=_.GlobalStore.Get()._globalActions.Helpers[0].useTranslationLanguage,{t:u}=c();return n().createElement("div",{className:"".concat(s.flits_menu_item," ").concat(o===i?s.flits_menu_active:""," flits_navigation_").concat(null==t?void 0:t.path," flits_navigation_item"),key:i,name:null==t?void 0:t.remoteApp},n().createElement(a.Suspense,{fallback:n().createElement(n().Fragment,null)},n().createElement(r.Link,{key:i,to:null==t?void 0:t.path,id:null==t?void 0:t.path,exact:"true",onClick:()=>{l(i)},className:"".concat(s.flits_nav_link," flits_navigation_link_").concat(null==t?void 0:t.path," flits_navigation_link")},null!=t&&t.duoSvg?"string"==typeof(null==t?void 0:t.duoSvg)?n().createElement("span",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.duoSvg},className:"".concat(s.flits_menu_img," ").concat(s.flits_menu_img_custom_link_page," flits_navigation_link_").concat(null==t?void 0:t.path,"_icon flits_navigation_link_icon")}):n().createElement("span",{className:"".concat(s.flits_menu_img," ").concat(s.flits_menu_img_custom_link_page," flits_navigation_link_").concat(null==t?void 0:t.path,"_icon flits_navigation_link_icon")},null==t?void 0:t.duoSvg):null,n().createElement("span",{className:"".concat(s.flits_menu_title," flits_navigation_link_").concat(null==t?void 0:t.path,"_label flits_navigation_link_label")},u(null==t?void 0:t.label[0],null==t?void 0:t.label[1]).toLowerCase()))))},q={flits_account_container:"CustomerPageWrapperModule_flits_account_container__wAEu7",flits_clearfix:"CustomerPageWrapperModule_flits_clearfix__OjUXn"},O=e=>n().createElement("div",{className:"".concat(q.flits_account_container," flits_duo_template")},n().createElement("div",{className:"".concat(q.flits_account_section," ").concat(q.flits_desktop_view)},null==e?void 0:e.children,n().createElement("div",{className:q.flits_clearfix}))),z=e=>{var t,l,a;const o=_.GlobalStore.Get()._globalActions.Helpers[0].useTranslationLanguage,{t:s}=o();return n().createElement(n().Fragment,null,n().createElement("button",{className:"BackButtonComponentModule_flits_back_btn__p5aDB",onClick:()=>{var e=E.flits_account_page_nav,t=i.flits_page_tabs,l=document.getElementsByClassName(e)[0],a=document.getElementsByClassName(t)[0];l&&l.classList.add("BackButtonComponentModule_flits_hide_route__Typnh"),a&&a.classList.add("BackButtonComponentModule_flits_hide_route2__c0Bp5")}},n().createElement("svg",{version:"1.1",id:"Capa_1",x:"0px",y:"0px",viewBox:"0 0 477.862 477.862",width:"512px",height:"512px",className:"hovered-paths"},n().createElement("path",{d:"M187.722,102.856V17.062C187.719,7.636,180.076-0.003,170.65,0c-4.834,0.001-9.44,2.053-12.676,5.644L4.375,176.311 c-5.617,6.256-5.842,15.67-0.529,22.187l153.6,187.733c5.968,7.295,16.72,8.371,24.016,2.403c3.952-3.233,6.249-8.066,6.26-13.172 v-85.043c134.827,4.386,218.965,62.02,256.888,175.787c2.326,6.96,8.841,11.653,16.179,11.656c0.920,0.003,1.840-0.072,2.748-0.222 c8.256-1.347,14.319-8.479,14.319-16.845C477.855,259.818,356.87,112.174,187.722,102.856z",dataoriginal:"#000000",className:"active-path",dataold_color:"#000000",fill:"#FFFFFF"})),"Back"),n().createElement("span",{className:"BackButtonComponentModule_flits_tab_box_title__K2oAF"},s(null==e||null===(t=e.item)||void 0===t?void 0:t.label[0],(null==e||null===(l=e.item)||void 0===l||null===(l=l.label)||void 0===l?void 0:l.length)>1?null==e||null===(a=e.item)||void 0===a?void 0:a.label[1]:"")),n().createElement("div",{className:"BackButtonComponentModule_flits_clearfix__TpSi8"}))},Y=()=>n().createElement("div",{className:"".concat("Divider_flits_menu_divider__b8XS5"," flits_navigation_link_divider")})}}]);